schnee effeckt und fehler Korektur
This commit is contained in:
231
node_modules/object.assign/dist/browser.js
generated
vendored
231
node_modules/object.assign/dist/browser.js
generated
vendored
@@ -10,14 +10,11 @@ module.exports = assign.shim();
|
||||
|
||||
delete assign.shim;
|
||||
|
||||
},{"./":3,"object-keys":14}],2:[function(require,module,exports){
|
||||
},{"./":3,"object-keys":15}],2:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
// modified from https://github.com/es-shims/es6-shim
|
||||
var keys = require('object-keys');
|
||||
var canBeObject = function (obj) {
|
||||
return typeof obj !== 'undefined' && obj !== null;
|
||||
};
|
||||
var objectKeys = require('object-keys');
|
||||
var hasSymbols = require('has-symbols/shams')();
|
||||
var callBound = require('call-bind/callBound');
|
||||
var toObject = Object;
|
||||
@@ -27,34 +24,41 @@ var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function assign(target, source1) {
|
||||
if (!canBeObject(target)) { throw new TypeError('target must be an object'); }
|
||||
var objTarget = toObject(target);
|
||||
var s, source, i, props, syms, value, key;
|
||||
for (s = 1; s < arguments.length; ++s) {
|
||||
source = toObject(arguments[s]);
|
||||
props = keys(source);
|
||||
if (target == null) { throw new TypeError('target must be an object'); }
|
||||
var to = toObject(target); // step 1
|
||||
if (arguments.length === 1) {
|
||||
return to; // step 2
|
||||
}
|
||||
for (var s = 1; s < arguments.length; ++s) {
|
||||
var from = toObject(arguments[s]); // step 3.a.i
|
||||
|
||||
// step 3.a.ii:
|
||||
var keys = objectKeys(from);
|
||||
var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
|
||||
if (getSymbols) {
|
||||
syms = getSymbols(source);
|
||||
for (i = 0; i < syms.length; ++i) {
|
||||
key = syms[i];
|
||||
if ($propIsEnumerable(source, key)) {
|
||||
$push(props, key);
|
||||
var syms = getSymbols(from);
|
||||
for (var j = 0; j < syms.length; ++j) {
|
||||
var key = syms[j];
|
||||
if ($propIsEnumerable(from, key)) {
|
||||
$push(keys, key);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (i = 0; i < props.length; ++i) {
|
||||
key = props[i];
|
||||
value = source[key];
|
||||
if ($propIsEnumerable(source, key)) {
|
||||
objTarget[key] = value;
|
||||
|
||||
// step 3.a.iii:
|
||||
for (var i = 0; i < keys.length; ++i) {
|
||||
var nextKey = keys[i];
|
||||
if ($propIsEnumerable(from, nextKey)) { // step 3.a.iii.2
|
||||
var propValue = from[nextKey]; // step 3.a.iii.2.a
|
||||
to[nextKey] = propValue; // step 3.a.iii.2.b
|
||||
}
|
||||
}
|
||||
}
|
||||
return objTarget;
|
||||
|
||||
return to; // step 4
|
||||
};
|
||||
|
||||
},{"call-bind/callBound":4,"has-symbols/shams":11,"object-keys":14}],3:[function(require,module,exports){
|
||||
},{"call-bind/callBound":4,"has-symbols/shams":12,"object-keys":15}],3:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var defineProperties = require('define-properties');
|
||||
@@ -78,7 +82,7 @@ defineProperties(bound, {
|
||||
|
||||
module.exports = bound;
|
||||
|
||||
},{"./implementation":2,"./polyfill":16,"./shim":17,"call-bind":5,"define-properties":6}],4:[function(require,module,exports){
|
||||
},{"./implementation":2,"./polyfill":17,"./shim":18,"call-bind":5,"define-properties":6}],4:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
@@ -105,7 +109,9 @@ var $apply = GetIntrinsic('%Function.prototype.apply%');
|
||||
var $call = GetIntrinsic('%Function.prototype.call%');
|
||||
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
||||
|
||||
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
||||
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
||||
var $max = GetIntrinsic('%Math.max%');
|
||||
|
||||
if ($defineProperty) {
|
||||
try {
|
||||
@@ -116,8 +122,20 @@ if ($defineProperty) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = function callBind() {
|
||||
return $reflectApply(bind, $call, arguments);
|
||||
module.exports = function callBind(originalFunction) {
|
||||
var func = $reflectApply(bind, $call, arguments);
|
||||
if ($gOPD && $defineProperty) {
|
||||
var desc = $gOPD(func, 'length');
|
||||
if (desc.configurable) {
|
||||
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
||||
$defineProperty(
|
||||
func,
|
||||
'length',
|
||||
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
||||
);
|
||||
}
|
||||
}
|
||||
return func;
|
||||
};
|
||||
|
||||
var applyBind = function applyBind() {
|
||||
@@ -144,20 +162,9 @@ var isFunction = function (fn) {
|
||||
return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
|
||||
};
|
||||
|
||||
var arePropertyDescriptorsSupported = function () {
|
||||
var obj = {};
|
||||
try {
|
||||
origDefineProperty(obj, 'x', { enumerable: false, value: obj });
|
||||
// eslint-disable-next-line no-unused-vars, no-restricted-syntax
|
||||
for (var _ in obj) { // jscs:ignore disallowUnusedVariables
|
||||
return false;
|
||||
}
|
||||
return obj.x === obj;
|
||||
} catch (e) { /* this is IE 8. */
|
||||
return false;
|
||||
}
|
||||
};
|
||||
var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
|
||||
var hasPropertyDescriptors = require('has-property-descriptors')();
|
||||
|
||||
var supportsDescriptors = origDefineProperty && hasPropertyDescriptors;
|
||||
|
||||
var defineProperty = function (object, name, value, predicate) {
|
||||
if (name in object && (!isFunction(predicate) || !predicate())) {
|
||||
@@ -171,7 +178,7 @@ var defineProperty = function (object, name, value, predicate) {
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
object[name] = value;
|
||||
object[name] = value; // eslint-disable-line no-param-reassign
|
||||
}
|
||||
};
|
||||
|
||||
@@ -190,7 +197,7 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
|
||||
|
||||
module.exports = defineProperties;
|
||||
|
||||
},{"object-keys":14}],7:[function(require,module,exports){
|
||||
},{"has-property-descriptors":10,"object-keys":15}],7:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
/* eslint no-invalid-this: 1 */
|
||||
@@ -254,14 +261,6 @@ module.exports = Function.prototype.bind || implementation;
|
||||
},{"./implementation":7}],9:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
/* globals
|
||||
AggregateError,
|
||||
Atomics,
|
||||
FinalizationRegistry,
|
||||
SharedArrayBuffer,
|
||||
WeakRef,
|
||||
*/
|
||||
|
||||
var undefined;
|
||||
|
||||
var $SyntaxError = SyntaxError;
|
||||
@@ -271,8 +270,7 @@ var $TypeError = TypeError;
|
||||
// eslint-disable-next-line consistent-return
|
||||
var getEvalledConstructor = function (expressionSyntax) {
|
||||
try {
|
||||
// eslint-disable-next-line no-new-func
|
||||
return Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
||||
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
||||
} catch (e) {}
|
||||
};
|
||||
|
||||
@@ -309,9 +307,7 @@ var hasSymbols = require('has-symbols')();
|
||||
|
||||
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
||||
|
||||
var asyncGenFunction = getEvalledConstructor('async function* () {}');
|
||||
var asyncGenFunctionPrototype = asyncGenFunction ? asyncGenFunction.prototype : undefined;
|
||||
var asyncGenPrototype = asyncGenFunctionPrototype ? asyncGenFunctionPrototype.prototype : undefined;
|
||||
var needsEval = {};
|
||||
|
||||
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
||||
|
||||
@@ -321,10 +317,10 @@ var INTRINSICS = {
|
||||
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
||||
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
||||
'%AsyncFromSyncIteratorPrototype%': undefined,
|
||||
'%AsyncFunction%': getEvalledConstructor('async function () {}'),
|
||||
'%AsyncGenerator%': asyncGenFunctionPrototype,
|
||||
'%AsyncGeneratorFunction%': asyncGenFunction,
|
||||
'%AsyncIteratorPrototype%': asyncGenPrototype ? getProto(asyncGenPrototype) : undefined,
|
||||
'%AsyncFunction%': needsEval,
|
||||
'%AsyncGenerator%': needsEval,
|
||||
'%AsyncGeneratorFunction%': needsEval,
|
||||
'%AsyncIteratorPrototype%': needsEval,
|
||||
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
||||
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
||||
'%Boolean%': Boolean,
|
||||
@@ -341,7 +337,7 @@ var INTRINSICS = {
|
||||
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
||||
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
||||
'%Function%': $Function,
|
||||
'%GeneratorFunction%': getEvalledConstructor('function* () {}'),
|
||||
'%GeneratorFunction%': needsEval,
|
||||
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
||||
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
||||
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
||||
@@ -382,6 +378,31 @@ var INTRINSICS = {
|
||||
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
||||
};
|
||||
|
||||
var doEval = function doEval(name) {
|
||||
var value;
|
||||
if (name === '%AsyncFunction%') {
|
||||
value = getEvalledConstructor('async function () {}');
|
||||
} else if (name === '%GeneratorFunction%') {
|
||||
value = getEvalledConstructor('function* () {}');
|
||||
} else if (name === '%AsyncGeneratorFunction%') {
|
||||
value = getEvalledConstructor('async function* () {}');
|
||||
} else if (name === '%AsyncGenerator%') {
|
||||
var fn = doEval('%AsyncGeneratorFunction%');
|
||||
if (fn) {
|
||||
value = fn.prototype;
|
||||
}
|
||||
} else if (name === '%AsyncIteratorPrototype%') {
|
||||
var gen = doEval('%AsyncGenerator%');
|
||||
if (gen) {
|
||||
value = getProto(gen.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
INTRINSICS[name] = value;
|
||||
|
||||
return value;
|
||||
};
|
||||
|
||||
var LEGACY_ALIASES = {
|
||||
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
||||
'%ArrayPrototype%': ['Array', 'prototype'],
|
||||
@@ -441,11 +462,19 @@ var hasOwn = require('has');
|
||||
var $concat = bind.call(Function.call, Array.prototype.concat);
|
||||
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
||||
var $replace = bind.call(Function.call, String.prototype.replace);
|
||||
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
||||
|
||||
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
||||
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
||||
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
||||
var stringToPath = function stringToPath(string) {
|
||||
var first = $strSlice(string, 0, 1);
|
||||
var last = $strSlice(string, -1);
|
||||
if (first === '%' && last !== '%') {
|
||||
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
||||
} else if (last === '%' && first !== '%') {
|
||||
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
||||
}
|
||||
var result = [];
|
||||
$replace(string, rePropName, function (match, number, quote, subString) {
|
||||
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
||||
@@ -464,6 +493,9 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
||||
|
||||
if (hasOwn(INTRINSICS, intrinsicName)) {
|
||||
var value = INTRINSICS[intrinsicName];
|
||||
if (value === needsEval) {
|
||||
value = doEval(intrinsicName);
|
||||
}
|
||||
if (typeof value === 'undefined' && !allowMissing) {
|
||||
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
||||
}
|
||||
@@ -502,6 +534,17 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
||||
|
||||
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
||||
var part = parts[i];
|
||||
var first = $strSlice(part, 0, 1);
|
||||
var last = $strSlice(part, -1);
|
||||
if (
|
||||
(
|
||||
(first === '"' || first === "'" || first === '`')
|
||||
|| (last === '"' || last === "'" || last === '`')
|
||||
)
|
||||
&& first !== last
|
||||
) {
|
||||
throw new $SyntaxError('property names with quotes must have matching quotes');
|
||||
}
|
||||
if (part === 'constructor' || !isOwn) {
|
||||
skipFurtherCaching = true;
|
||||
}
|
||||
@@ -512,13 +555,16 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
||||
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
||||
value = INTRINSICS[intrinsicRealName];
|
||||
} else if (value != null) {
|
||||
if (!(part in value)) {
|
||||
if (!allowMissing) {
|
||||
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
||||
}
|
||||
return void undefined;
|
||||
}
|
||||
if ($gOPD && (i + 1) >= parts.length) {
|
||||
var desc = $gOPD(value, part);
|
||||
isOwn = !!desc;
|
||||
|
||||
if (!allowMissing && !(part in value)) {
|
||||
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
||||
}
|
||||
// By convention, when a data property is converted to an accessor
|
||||
// property to emulate a data property that does not suffer from
|
||||
// the override mistake, that accessor's getter is marked with
|
||||
@@ -544,11 +590,45 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
||||
return value;
|
||||
};
|
||||
|
||||
},{"function-bind":8,"has":12,"has-symbols":10}],10:[function(require,module,exports){
|
||||
(function (global){(function (){
|
||||
},{"function-bind":8,"has":13,"has-symbols":11}],10:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var origSymbol = global.Symbol;
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
||||
|
||||
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
||||
if ($defineProperty) {
|
||||
try {
|
||||
$defineProperty({}, 'a', { value: 1 });
|
||||
return true;
|
||||
} catch (e) {
|
||||
// IE 8 has a broken defineProperty
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
||||
// node v0.6 has a bug where array lengths can be Set but not Defined
|
||||
if (!hasPropertyDescriptors()) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
||||
} catch (e) {
|
||||
// In Firefox 4-22, defining length on an array throws an exception.
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = hasPropertyDescriptors;
|
||||
|
||||
},{"get-intrinsic":9}],11:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
||||
var hasSymbolSham = require('./shams');
|
||||
|
||||
module.exports = function hasNativeSymbols() {
|
||||
@@ -560,8 +640,7 @@ module.exports = function hasNativeSymbols() {
|
||||
return hasSymbolSham();
|
||||
};
|
||||
|
||||
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
||||
},{"./shams":11}],11:[function(require,module,exports){
|
||||
},{"./shams":12}],12:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
||||
@@ -587,7 +666,7 @@ module.exports = function hasSymbols() {
|
||||
|
||||
var symVal = 42;
|
||||
obj[sym] = symVal;
|
||||
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
||||
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
||||
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
||||
|
||||
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
||||
@@ -605,14 +684,14 @@ module.exports = function hasSymbols() {
|
||||
return true;
|
||||
};
|
||||
|
||||
},{}],12:[function(require,module,exports){
|
||||
},{}],13:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var bind = require('function-bind');
|
||||
|
||||
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
||||
|
||||
},{"function-bind":8}],13:[function(require,module,exports){
|
||||
},{"function-bind":8}],14:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var keysShim;
|
||||
@@ -736,7 +815,7 @@ if (!Object.keys) {
|
||||
}
|
||||
module.exports = keysShim;
|
||||
|
||||
},{"./isArguments":15}],14:[function(require,module,exports){
|
||||
},{"./isArguments":16}],15:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var slice = Array.prototype.slice;
|
||||
@@ -770,7 +849,7 @@ keysShim.shim = function shimObjectKeys() {
|
||||
|
||||
module.exports = keysShim;
|
||||
|
||||
},{"./implementation":13,"./isArguments":15}],15:[function(require,module,exports){
|
||||
},{"./implementation":14,"./isArguments":16}],16:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var toStr = Object.prototype.toString;
|
||||
@@ -789,7 +868,7 @@ module.exports = function isArguments(value) {
|
||||
return isArgs;
|
||||
};
|
||||
|
||||
},{}],16:[function(require,module,exports){
|
||||
},{}],17:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var implementation = require('./implementation');
|
||||
@@ -846,7 +925,7 @@ module.exports = function getPolyfill() {
|
||||
return Object.assign;
|
||||
};
|
||||
|
||||
},{"./implementation":2}],17:[function(require,module,exports){
|
||||
},{"./implementation":2}],18:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
var define = require('define-properties');
|
||||
@@ -862,4 +941,4 @@ module.exports = function shimAssign() {
|
||||
return polyfill;
|
||||
};
|
||||
|
||||
},{"./polyfill":16,"define-properties":6}]},{},[1]);
|
||||
},{"./polyfill":17,"define-properties":6}]},{},[1]);
|
||||
|
||||
Reference in New Issue
Block a user