@dereekb/util 12.6.21 → 12.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fetch/index.cjs.js +62 -148
- package/fetch/index.esm.js +62 -148
- package/fetch/package.json +1 -1
- package/index.cjs.js +116 -199
- package/index.esm.js +116 -199
- package/package.json +1 -1
- package/src/lib/key.d.ts +4 -0
- package/src/lib/promise/promise.d.ts +2 -2
- package/test/CHANGELOG.md +4 -0
- package/test/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -21,7 +21,7 @@ var global$b =
|
|
|
21
21
|
|
|
22
22
|
var objectGetOwnPropertyDescriptor = {};
|
|
23
23
|
|
|
24
|
-
var fails$
|
|
24
|
+
var fails$c = function (exec) {
|
|
25
25
|
try {
|
|
26
26
|
return !!exec();
|
|
27
27
|
} catch (error) {
|
|
@@ -29,17 +29,17 @@ var fails$d = function (exec) {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var fails$
|
|
32
|
+
var fails$b = fails$c;
|
|
33
33
|
|
|
34
34
|
// Detect IE8's incomplete defineProperty implementation
|
|
35
|
-
var descriptors = !fails$
|
|
35
|
+
var descriptors = !fails$b(function () {
|
|
36
36
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
37
37
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
var fails$
|
|
40
|
+
var fails$a = fails$c;
|
|
41
41
|
|
|
42
|
-
var functionBindNative = !fails$
|
|
42
|
+
var functionBindNative = !fails$a(function () {
|
|
43
43
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
44
44
|
var test = (function () { /* empty */ }).bind();
|
|
45
45
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -58,15 +58,15 @@ var objectPropertyIsEnumerable = {};
|
|
|
58
58
|
|
|
59
59
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
60
60
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
61
|
-
var getOwnPropertyDescriptor$
|
|
61
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
62
62
|
|
|
63
63
|
// Nashorn ~ JDK8 bug
|
|
64
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
64
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
65
65
|
|
|
66
66
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
67
67
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
68
68
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
69
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
69
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
70
70
|
return !!descriptor && descriptor.enumerable;
|
|
71
71
|
} : $propertyIsEnumerable;
|
|
72
72
|
|
|
@@ -101,19 +101,19 @@ var classofRaw$2 = function (it) {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
var uncurryThis$c = functionUncurryThis;
|
|
104
|
-
var fails$
|
|
105
|
-
var classof$
|
|
104
|
+
var fails$9 = fails$c;
|
|
105
|
+
var classof$2 = classofRaw$2;
|
|
106
106
|
|
|
107
107
|
var $Object$4 = Object;
|
|
108
108
|
var split = uncurryThis$c(''.split);
|
|
109
109
|
|
|
110
110
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
111
|
-
var indexedObject = fails$
|
|
111
|
+
var indexedObject = fails$9(function () {
|
|
112
112
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
113
113
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
114
114
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
115
115
|
}) ? function (it) {
|
|
116
|
-
return classof$
|
|
116
|
+
return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
117
117
|
} : $Object$4;
|
|
118
118
|
|
|
119
119
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -124,12 +124,12 @@ var isNullOrUndefined$3 = function (it) {
|
|
|
124
124
|
|
|
125
125
|
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
126
126
|
|
|
127
|
-
var $TypeError$
|
|
127
|
+
var $TypeError$b = TypeError;
|
|
128
128
|
|
|
129
129
|
// `RequireObjectCoercible` abstract operation
|
|
130
130
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
131
131
|
var requireObjectCoercible$2 = function (it) {
|
|
132
|
-
if (isNullOrUndefined$2(it)) throw new $TypeError$
|
|
132
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
|
|
133
133
|
return it;
|
|
134
134
|
};
|
|
135
135
|
|
|
@@ -206,13 +206,13 @@ var engineV8Version = version;
|
|
|
206
206
|
|
|
207
207
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
208
208
|
var V8_VERSION = engineV8Version;
|
|
209
|
-
var fails$
|
|
209
|
+
var fails$8 = fails$c;
|
|
210
210
|
var global$8 = global$b;
|
|
211
211
|
|
|
212
212
|
var $String$3 = global$8.String;
|
|
213
213
|
|
|
214
214
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
215
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
215
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
216
216
|
var symbol = Symbol('symbol detection');
|
|
217
217
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
218
218
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -257,12 +257,12 @@ var tryToString$3 = function (argument) {
|
|
|
257
257
|
var isCallable$a = isCallable$e;
|
|
258
258
|
var tryToString$2 = tryToString$3;
|
|
259
259
|
|
|
260
|
-
var $TypeError$
|
|
260
|
+
var $TypeError$a = TypeError;
|
|
261
261
|
|
|
262
262
|
// `Assert: IsCallable(argument) is true`
|
|
263
263
|
var aCallable$a = function (argument) {
|
|
264
264
|
if (isCallable$a(argument)) return argument;
|
|
265
|
-
throw new $TypeError$
|
|
265
|
+
throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
var aCallable$9 = aCallable$a;
|
|
@@ -279,7 +279,7 @@ var call$a = functionCall;
|
|
|
279
279
|
var isCallable$9 = isCallable$e;
|
|
280
280
|
var isObject$5 = isObject$6;
|
|
281
281
|
|
|
282
|
-
var $TypeError$
|
|
282
|
+
var $TypeError$9 = TypeError;
|
|
283
283
|
|
|
284
284
|
// `OrdinaryToPrimitive` abstract operation
|
|
285
285
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -288,7 +288,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
288
288
|
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
289
289
|
if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
|
|
290
290
|
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
291
|
-
throw new $TypeError$
|
|
291
|
+
throw new $TypeError$9("Can't convert object to primitive value");
|
|
292
292
|
};
|
|
293
293
|
|
|
294
294
|
var sharedStore = {exports: {}};
|
|
@@ -336,12 +336,12 @@ var $Object$2 = Object;
|
|
|
336
336
|
|
|
337
337
|
// `ToObject` abstract operation
|
|
338
338
|
// https://tc39.es/ecma262/#sec-toobject
|
|
339
|
-
var toObject$
|
|
339
|
+
var toObject$2 = function (argument) {
|
|
340
340
|
return $Object$2(requireObjectCoercible(argument));
|
|
341
341
|
};
|
|
342
342
|
|
|
343
343
|
var uncurryThis$a = functionUncurryThis;
|
|
344
|
-
var toObject$
|
|
344
|
+
var toObject$1 = toObject$2;
|
|
345
345
|
|
|
346
346
|
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
347
347
|
|
|
@@ -349,7 +349,7 @@ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
|
349
349
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
350
350
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
351
351
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
352
|
-
return hasOwnProperty(toObject$
|
|
352
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
353
353
|
};
|
|
354
354
|
|
|
355
355
|
var uncurryThis$9 = functionUncurryThis;
|
|
@@ -388,7 +388,7 @@ var getMethod$3 = getMethod$4;
|
|
|
388
388
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
389
389
|
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
390
390
|
|
|
391
|
-
var $TypeError$
|
|
391
|
+
var $TypeError$8 = TypeError;
|
|
392
392
|
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
393
393
|
|
|
394
394
|
// `ToPrimitive` abstract operation
|
|
@@ -401,7 +401,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
401
401
|
if (pref === undefined) pref = 'default';
|
|
402
402
|
result = call$9(exoticToPrim, input, pref);
|
|
403
403
|
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
404
|
-
throw new $TypeError$
|
|
404
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
405
405
|
}
|
|
406
406
|
if (pref === undefined) pref = 'number';
|
|
407
407
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -428,19 +428,19 @@ var documentCreateElement$1 = function (it) {
|
|
|
428
428
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
429
429
|
};
|
|
430
430
|
|
|
431
|
-
var DESCRIPTORS$
|
|
432
|
-
var fails$
|
|
431
|
+
var DESCRIPTORS$9 = descriptors;
|
|
432
|
+
var fails$7 = fails$c;
|
|
433
433
|
var createElement = documentCreateElement$1;
|
|
434
434
|
|
|
435
435
|
// Thanks to IE8 for its funny defineProperty
|
|
436
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
436
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
|
|
437
437
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
438
438
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
439
439
|
get: function () { return 7; }
|
|
440
440
|
}).a !== 7;
|
|
441
441
|
});
|
|
442
442
|
|
|
443
|
-
var DESCRIPTORS$
|
|
443
|
+
var DESCRIPTORS$8 = descriptors;
|
|
444
444
|
var call$8 = functionCall;
|
|
445
445
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
446
446
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
@@ -454,7 +454,7 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
454
454
|
|
|
455
455
|
// `Object.getOwnPropertyDescriptor` method
|
|
456
456
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
457
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
457
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
458
458
|
O = toIndexedObject$3(O);
|
|
459
459
|
P = toPropertyKey$1(P);
|
|
460
460
|
if (IE8_DOM_DEFINE$1) try {
|
|
@@ -465,12 +465,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
465
465
|
|
|
466
466
|
var objectDefineProperty = {};
|
|
467
467
|
|
|
468
|
-
var DESCRIPTORS$
|
|
469
|
-
var fails$
|
|
468
|
+
var DESCRIPTORS$7 = descriptors;
|
|
469
|
+
var fails$6 = fails$c;
|
|
470
470
|
|
|
471
471
|
// V8 ~ Chrome 36-
|
|
472
472
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
473
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
473
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
|
|
474
474
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
475
475
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
476
476
|
value: 42,
|
|
@@ -481,21 +481,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
|
|
|
481
481
|
var isObject$2 = isObject$6;
|
|
482
482
|
|
|
483
483
|
var $String$1 = String;
|
|
484
|
-
var $TypeError$
|
|
484
|
+
var $TypeError$7 = TypeError;
|
|
485
485
|
|
|
486
486
|
// `Assert: Type(argument) is Object`
|
|
487
487
|
var anObject$f = function (argument) {
|
|
488
488
|
if (isObject$2(argument)) return argument;
|
|
489
|
-
throw new $TypeError$
|
|
489
|
+
throw new $TypeError$7($String$1(argument) + ' is not an object');
|
|
490
490
|
};
|
|
491
491
|
|
|
492
|
-
var DESCRIPTORS$
|
|
492
|
+
var DESCRIPTORS$6 = descriptors;
|
|
493
493
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
494
494
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
495
495
|
var anObject$e = anObject$f;
|
|
496
496
|
var toPropertyKey = toPropertyKey$2;
|
|
497
497
|
|
|
498
|
-
var $TypeError$
|
|
498
|
+
var $TypeError$6 = TypeError;
|
|
499
499
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
500
500
|
var $defineProperty = Object.defineProperty;
|
|
501
501
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -506,7 +506,7 @@ var WRITABLE = 'writable';
|
|
|
506
506
|
|
|
507
507
|
// `Object.defineProperty` method
|
|
508
508
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
509
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
509
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
510
510
|
anObject$e(O);
|
|
511
511
|
P = toPropertyKey(P);
|
|
512
512
|
anObject$e(Attributes);
|
|
@@ -528,16 +528,16 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
528
528
|
if (IE8_DOM_DEFINE) try {
|
|
529
529
|
return $defineProperty(O, P, Attributes);
|
|
530
530
|
} catch (error) { /* empty */ }
|
|
531
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
531
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
|
|
532
532
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
533
533
|
return O;
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
-
var DESCRIPTORS$
|
|
536
|
+
var DESCRIPTORS$5 = descriptors;
|
|
537
537
|
var definePropertyModule$4 = objectDefineProperty;
|
|
538
538
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
539
539
|
|
|
540
|
-
var createNonEnumerableProperty$3 = DESCRIPTORS$
|
|
540
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
541
541
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
542
542
|
} : function (object, key, value) {
|
|
543
543
|
object[key] = value;
|
|
@@ -546,17 +546,17 @@ var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value
|
|
|
546
546
|
|
|
547
547
|
var makeBuiltIn$3 = {exports: {}};
|
|
548
548
|
|
|
549
|
-
var DESCRIPTORS$
|
|
549
|
+
var DESCRIPTORS$4 = descriptors;
|
|
550
550
|
var hasOwn$6 = hasOwnProperty_1;
|
|
551
551
|
|
|
552
552
|
var FunctionPrototype = Function.prototype;
|
|
553
553
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
554
|
-
var getDescriptor = DESCRIPTORS$
|
|
554
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
555
555
|
|
|
556
556
|
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
|
557
557
|
// additional protection from minified / mangled / dropped function names
|
|
558
558
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
559
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
559
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
560
560
|
|
|
561
561
|
var functionName = {
|
|
562
562
|
EXISTS: EXISTS,
|
|
@@ -669,10 +669,10 @@ var internalState = {
|
|
|
669
669
|
};
|
|
670
670
|
|
|
671
671
|
var uncurryThis$7 = functionUncurryThis;
|
|
672
|
-
var fails$
|
|
672
|
+
var fails$5 = fails$c;
|
|
673
673
|
var isCallable$6 = isCallable$e;
|
|
674
674
|
var hasOwn$4 = hasOwnProperty_1;
|
|
675
|
-
var DESCRIPTORS$
|
|
675
|
+
var DESCRIPTORS$3 = descriptors;
|
|
676
676
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
677
677
|
var inspectSource = inspectSource$1;
|
|
678
678
|
var InternalStateModule$1 = internalState;
|
|
@@ -686,7 +686,7 @@ var stringSlice = uncurryThis$7(''.slice);
|
|
|
686
686
|
var replace = uncurryThis$7(''.replace);
|
|
687
687
|
var join = uncurryThis$7([].join);
|
|
688
688
|
|
|
689
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
689
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
|
|
690
690
|
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
691
691
|
});
|
|
692
692
|
|
|
@@ -699,7 +699,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
699
699
|
if (options && options.getter) name = 'get ' + name;
|
|
700
700
|
if (options && options.setter) name = 'set ' + name;
|
|
701
701
|
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
702
|
-
if (DESCRIPTORS$
|
|
702
|
+
if (DESCRIPTORS$3) defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
703
703
|
else value.name = name;
|
|
704
704
|
}
|
|
705
705
|
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
|
@@ -707,7 +707,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
707
707
|
}
|
|
708
708
|
try {
|
|
709
709
|
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
|
710
|
-
if (DESCRIPTORS$
|
|
710
|
+
if (DESCRIPTORS$3) defineProperty$1(value, 'prototype', { writable: false });
|
|
711
711
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
712
712
|
} else if (value.prototype) value.prototype = undefined;
|
|
713
713
|
} catch (error) { /* empty */ }
|
|
@@ -804,19 +804,19 @@ var toLength = toLength$1;
|
|
|
804
804
|
|
|
805
805
|
// `LengthOfArrayLike` abstract operation
|
|
806
806
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
807
|
-
var lengthOfArrayLike$
|
|
807
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
808
808
|
return toLength(obj.length);
|
|
809
809
|
};
|
|
810
810
|
|
|
811
811
|
var toIndexedObject$2 = toIndexedObject$4;
|
|
812
812
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
813
|
-
var lengthOfArrayLike$
|
|
813
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
814
814
|
|
|
815
815
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
816
816
|
var createMethod = function (IS_INCLUDES) {
|
|
817
817
|
return function ($this, el, fromIndex) {
|
|
818
818
|
var O = toIndexedObject$2($this);
|
|
819
|
-
var length = lengthOfArrayLike$
|
|
819
|
+
var length = lengthOfArrayLike$1(O);
|
|
820
820
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
821
821
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
822
822
|
var value;
|
|
@@ -923,7 +923,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
925
|
|
|
926
|
-
var fails$
|
|
926
|
+
var fails$4 = fails$c;
|
|
927
927
|
var isCallable$4 = isCallable$e;
|
|
928
928
|
|
|
929
929
|
var replacement = /#|\.prototype\./;
|
|
@@ -932,7 +932,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
932
932
|
var value = data[normalize(feature)];
|
|
933
933
|
return value === POLYFILL ? true
|
|
934
934
|
: value === NATIVE ? false
|
|
935
|
-
: isCallable$4(detection) ? fails$
|
|
935
|
+
: isCallable$4(detection) ? fails$4(detection)
|
|
936
936
|
: !!detection;
|
|
937
937
|
};
|
|
938
938
|
|
|
@@ -947,7 +947,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
947
947
|
var isForced_1 = isForced$1;
|
|
948
948
|
|
|
949
949
|
var global$2 = global$b;
|
|
950
|
-
var getOwnPropertyDescriptor
|
|
950
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
951
951
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
952
952
|
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
953
953
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
@@ -984,7 +984,7 @@ var _export = function (options, source) {
|
|
|
984
984
|
if (target) for (key in source) {
|
|
985
985
|
sourceProperty = source[key];
|
|
986
986
|
if (options.dontCallGetSet) {
|
|
987
|
-
descriptor = getOwnPropertyDescriptor
|
|
987
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
988
988
|
targetProperty = descriptor && descriptor.value;
|
|
989
989
|
} else targetProperty = target[key];
|
|
990
990
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
@@ -1003,16 +1003,16 @@ var _export = function (options, source) {
|
|
|
1003
1003
|
|
|
1004
1004
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1005
1005
|
|
|
1006
|
-
var $TypeError$
|
|
1006
|
+
var $TypeError$5 = TypeError;
|
|
1007
1007
|
|
|
1008
1008
|
var anInstance$1 = function (it, Prototype) {
|
|
1009
1009
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1010
|
-
throw new $TypeError$
|
|
1010
|
+
throw new $TypeError$5('Incorrect invocation');
|
|
1011
1011
|
};
|
|
1012
1012
|
|
|
1013
|
-
var fails$
|
|
1013
|
+
var fails$3 = fails$c;
|
|
1014
1014
|
|
|
1015
|
-
var correctPrototypeGetter = !fails$
|
|
1015
|
+
var correctPrototypeGetter = !fails$3(function () {
|
|
1016
1016
|
function F() { /* empty */ }
|
|
1017
1017
|
F.prototype.constructor = null;
|
|
1018
1018
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1021,7 +1021,7 @@ var correctPrototypeGetter = !fails$4(function () {
|
|
|
1021
1021
|
|
|
1022
1022
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1023
1023
|
var isCallable$3 = isCallable$e;
|
|
1024
|
-
var toObject
|
|
1024
|
+
var toObject = toObject$2;
|
|
1025
1025
|
var sharedKey$1 = sharedKey$3;
|
|
1026
1026
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1027
1027
|
|
|
@@ -1033,7 +1033,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1033
1033
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1034
1034
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1035
1035
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1036
|
-
var object = toObject
|
|
1036
|
+
var object = toObject(O);
|
|
1037
1037
|
if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
1038
1038
|
var constructor = object.constructor;
|
|
1039
1039
|
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
@@ -1050,12 +1050,12 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
1050
1050
|
return defineProperty.f(target, name, descriptor);
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
|
-
var DESCRIPTORS$
|
|
1053
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1054
1054
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1055
1055
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1056
1056
|
|
|
1057
1057
|
var createProperty$1 = function (object, key, value) {
|
|
1058
|
-
if (DESCRIPTORS$
|
|
1058
|
+
if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
|
|
1059
1059
|
else object[key] = value;
|
|
1060
1060
|
};
|
|
1061
1061
|
|
|
@@ -1071,7 +1071,7 @@ var objectKeys$1 = Object.keys || function keys(O) {
|
|
|
1071
1071
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1072
1072
|
};
|
|
1073
1073
|
|
|
1074
|
-
var DESCRIPTORS$
|
|
1074
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1075
1075
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1076
1076
|
var definePropertyModule = objectDefineProperty;
|
|
1077
1077
|
var anObject$c = anObject$f;
|
|
@@ -1081,7 +1081,7 @@ var objectKeys = objectKeys$1;
|
|
|
1081
1081
|
// `Object.defineProperties` method
|
|
1082
1082
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1083
1083
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1084
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1084
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1085
1085
|
anObject$c(O);
|
|
1086
1086
|
var props = toIndexedObject(Properties);
|
|
1087
1087
|
var keys = objectKeys(Properties);
|
|
@@ -1180,7 +1180,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1180
1180
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1181
1181
|
};
|
|
1182
1182
|
|
|
1183
|
-
var fails$
|
|
1183
|
+
var fails$2 = fails$c;
|
|
1184
1184
|
var isCallable$2 = isCallable$e;
|
|
1185
1185
|
var isObject = isObject$6;
|
|
1186
1186
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1205,7 +1205,7 @@ if ([].keys) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$
|
|
1208
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$2(function () {
|
|
1209
1209
|
var test = {};
|
|
1210
1210
|
// FF44- legacy iterators case
|
|
1211
1211
|
return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
|
|
@@ -1226,7 +1226,7 @@ var iteratorsCore = {
|
|
|
1226
1226
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
1227
1227
|
};
|
|
1228
1228
|
|
|
1229
|
-
var $$
|
|
1229
|
+
var $$c = _export;
|
|
1230
1230
|
var global$1 = global$b;
|
|
1231
1231
|
var anInstance = anInstance$1;
|
|
1232
1232
|
var anObject$a = anObject$f;
|
|
@@ -1234,32 +1234,32 @@ var isCallable$1 = isCallable$e;
|
|
|
1234
1234
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1235
1235
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1236
1236
|
var createProperty = createProperty$1;
|
|
1237
|
-
var fails$
|
|
1237
|
+
var fails$1 = fails$c;
|
|
1238
1238
|
var hasOwn = hasOwnProperty_1;
|
|
1239
1239
|
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1240
1240
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1241
|
-
var DESCRIPTORS
|
|
1241
|
+
var DESCRIPTORS = descriptors;
|
|
1242
1242
|
|
|
1243
1243
|
var CONSTRUCTOR = 'constructor';
|
|
1244
1244
|
var ITERATOR$2 = 'Iterator';
|
|
1245
1245
|
var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
|
|
1246
1246
|
|
|
1247
|
-
var $TypeError$
|
|
1247
|
+
var $TypeError$4 = TypeError;
|
|
1248
1248
|
var NativeIterator = global$1[ITERATOR$2];
|
|
1249
1249
|
|
|
1250
1250
|
// FF56- have non-standard global helper `Iterator`
|
|
1251
|
-
var FORCED
|
|
1251
|
+
var FORCED = !isCallable$1(NativeIterator)
|
|
1252
1252
|
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
1253
1253
|
// FF44- non-standard `Iterator` passes previous tests
|
|
1254
|
-
|| !fails$
|
|
1254
|
+
|| !fails$1(function () { NativeIterator({}); });
|
|
1255
1255
|
|
|
1256
1256
|
var IteratorConstructor = function Iterator() {
|
|
1257
1257
|
anInstance(this, IteratorPrototype$1);
|
|
1258
|
-
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$
|
|
1258
|
+
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$4('Abstract class Iterator not directly constructable');
|
|
1259
1259
|
};
|
|
1260
1260
|
|
|
1261
1261
|
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
1262
|
-
if (DESCRIPTORS
|
|
1262
|
+
if (DESCRIPTORS) {
|
|
1263
1263
|
defineBuiltInAccessor(IteratorPrototype$1, key, {
|
|
1264
1264
|
configurable: true,
|
|
1265
1265
|
get: function () {
|
|
@@ -1267,7 +1267,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
1267
1267
|
},
|
|
1268
1268
|
set: function (replacement) {
|
|
1269
1269
|
anObject$a(this);
|
|
1270
|
-
if (this === IteratorPrototype$1) throw new $TypeError$
|
|
1270
|
+
if (this === IteratorPrototype$1) throw new $TypeError$4("You can't redefine this property");
|
|
1271
1271
|
if (hasOwn(this, key)) this[key] = replacement;
|
|
1272
1272
|
else createProperty(this, key, replacement);
|
|
1273
1273
|
}
|
|
@@ -1277,7 +1277,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
1277
1277
|
|
|
1278
1278
|
if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
|
|
1279
1279
|
|
|
1280
|
-
if (FORCED
|
|
1280
|
+
if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
1281
1281
|
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
@@ -1285,7 +1285,7 @@ IteratorConstructor.prototype = IteratorPrototype$1;
|
|
|
1285
1285
|
|
|
1286
1286
|
// `Iterator` constructor
|
|
1287
1287
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1288
|
-
$$
|
|
1288
|
+
$$c({ global: true, constructor: true, forced: FORCED }, {
|
|
1289
1289
|
Iterator: IteratorConstructor
|
|
1290
1290
|
});
|
|
1291
1291
|
|
|
@@ -1424,7 +1424,7 @@ var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
|
|
1427
|
-
var $$
|
|
1427
|
+
var $$b = _export;
|
|
1428
1428
|
var call$5 = functionCall;
|
|
1429
1429
|
var aCallable$8 = aCallable$a;
|
|
1430
1430
|
var anObject$7 = anObject$f;
|
|
@@ -1449,7 +1449,7 @@ var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
|
1449
1449
|
|
|
1450
1450
|
// `Iterator.prototype.filter` method
|
|
1451
1451
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1452
|
-
$$
|
|
1452
|
+
$$b({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
1453
1453
|
filter: function filter(predicate) {
|
|
1454
1454
|
anObject$7(this);
|
|
1455
1455
|
aCallable$8(predicate);
|
|
@@ -1524,7 +1524,7 @@ var tryGet = function (it, key) {
|
|
|
1524
1524
|
};
|
|
1525
1525
|
|
|
1526
1526
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1527
|
-
var classof$
|
|
1527
|
+
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1528
1528
|
var O, tag, result;
|
|
1529
1529
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1530
1530
|
// @@toStringTag case
|
|
@@ -1535,7 +1535,7 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1535
1535
|
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1536
1536
|
};
|
|
1537
1537
|
|
|
1538
|
-
var classof
|
|
1538
|
+
var classof = classof$1;
|
|
1539
1539
|
var getMethod = getMethod$4;
|
|
1540
1540
|
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1541
1541
|
var Iterators = iterators;
|
|
@@ -1546,7 +1546,7 @@ var ITERATOR = wellKnownSymbol('iterator');
|
|
|
1546
1546
|
var getIteratorMethod$2 = function (it) {
|
|
1547
1547
|
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
1548
1548
|
|| getMethod(it, '@@iterator')
|
|
1549
|
-
|| Iterators[classof
|
|
1549
|
+
|| Iterators[classof(it)];
|
|
1550
1550
|
};
|
|
1551
1551
|
|
|
1552
1552
|
var call$4 = functionCall;
|
|
@@ -1555,12 +1555,12 @@ var anObject$6 = anObject$f;
|
|
|
1555
1555
|
var tryToString$1 = tryToString$3;
|
|
1556
1556
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1557
1557
|
|
|
1558
|
-
var $TypeError$
|
|
1558
|
+
var $TypeError$3 = TypeError;
|
|
1559
1559
|
|
|
1560
1560
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1561
1561
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1562
1562
|
if (aCallable$6(iteratorMethod)) return anObject$6(call$4(iteratorMethod, argument));
|
|
1563
|
-
throw new $TypeError$
|
|
1563
|
+
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
1564
1564
|
};
|
|
1565
1565
|
|
|
1566
1566
|
var bind = functionBindContext;
|
|
@@ -1568,13 +1568,13 @@ var call$3 = functionCall;
|
|
|
1568
1568
|
var anObject$5 = anObject$f;
|
|
1569
1569
|
var tryToString = tryToString$3;
|
|
1570
1570
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1571
|
-
var lengthOfArrayLike
|
|
1571
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1572
1572
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
1573
1573
|
var getIterator = getIterator$1;
|
|
1574
1574
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1575
1575
|
var iteratorClose$2 = iteratorClose$5;
|
|
1576
1576
|
|
|
1577
|
-
var $TypeError$
|
|
1577
|
+
var $TypeError$2 = TypeError;
|
|
1578
1578
|
|
|
1579
1579
|
var Result = function (stopped, result) {
|
|
1580
1580
|
this.stopped = stopped;
|
|
@@ -1610,10 +1610,10 @@ var iterate$6 = function (iterable, unboundFunction, options) {
|
|
|
1610
1610
|
iterator = iterable;
|
|
1611
1611
|
} else {
|
|
1612
1612
|
iterFn = getIteratorMethod(iterable);
|
|
1613
|
-
if (!iterFn) throw new $TypeError$
|
|
1613
|
+
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
|
|
1614
1614
|
// optimisation for array iterators
|
|
1615
1615
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1616
|
-
for (index = 0, length = lengthOfArrayLike
|
|
1616
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1617
1617
|
result = callFn(iterable[index]);
|
|
1618
1618
|
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1619
1619
|
} return new Result(false);
|
|
@@ -1632,7 +1632,7 @@ var iterate$6 = function (iterable, unboundFunction, options) {
|
|
|
1632
1632
|
} return new Result(false);
|
|
1633
1633
|
};
|
|
1634
1634
|
|
|
1635
|
-
var $$
|
|
1635
|
+
var $$a = _export;
|
|
1636
1636
|
var iterate$5 = iterate$6;
|
|
1637
1637
|
var aCallable$5 = aCallable$a;
|
|
1638
1638
|
var anObject$4 = anObject$f;
|
|
@@ -1640,7 +1640,7 @@ var getIteratorDirect$4 = getIteratorDirect$6;
|
|
|
1640
1640
|
|
|
1641
1641
|
// `Iterator.prototype.forEach` method
|
|
1642
1642
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1643
|
-
$$
|
|
1643
|
+
$$a({ target: 'Iterator', proto: true, real: true }, {
|
|
1644
1644
|
forEach: function forEach(fn) {
|
|
1645
1645
|
anObject$4(this);
|
|
1646
1646
|
aCallable$5(fn);
|
|
@@ -1676,13 +1676,13 @@ var iteratorMap = function map(mapper) {
|
|
|
1676
1676
|
});
|
|
1677
1677
|
};
|
|
1678
1678
|
|
|
1679
|
-
var $$
|
|
1679
|
+
var $$9 = _export;
|
|
1680
1680
|
var map = iteratorMap;
|
|
1681
1681
|
var IS_PURE = isPure;
|
|
1682
1682
|
|
|
1683
1683
|
// `Iterator.prototype.map` method
|
|
1684
1684
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1685
|
-
$$
|
|
1685
|
+
$$9({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
1686
1686
|
map: map
|
|
1687
1687
|
});
|
|
1688
1688
|
|
|
@@ -1773,7 +1773,7 @@ var getIteratorDirect$2 = getIteratorDirect$6;
|
|
|
1773
1773
|
|
|
1774
1774
|
var INVALID_SIZE = 'Invalid size';
|
|
1775
1775
|
var $RangeError = RangeError;
|
|
1776
|
-
var $TypeError$
|
|
1776
|
+
var $TypeError$1 = TypeError;
|
|
1777
1777
|
var max = Math.max;
|
|
1778
1778
|
|
|
1779
1779
|
var SetRecord = function (set, intSize) {
|
|
@@ -1799,7 +1799,7 @@ var getSetRecord$7 = function (obj) {
|
|
|
1799
1799
|
var numSize = +obj.size;
|
|
1800
1800
|
// NOTE: If size is undefined, then numSize will be NaN
|
|
1801
1801
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1802
|
-
if (numSize !== numSize) throw new $TypeError$
|
|
1802
|
+
if (numSize !== numSize) throw new $TypeError$1(INVALID_SIZE);
|
|
1803
1803
|
var intSize = toIntegerOrInfinity(numSize);
|
|
1804
1804
|
if (intSize < 0) throw new $RangeError(INVALID_SIZE);
|
|
1805
1805
|
return new SetRecord(obj, intSize);
|
|
@@ -1866,13 +1866,13 @@ var setMethodAcceptSetLike$7 = function (name) {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
};
|
|
1868
1868
|
|
|
1869
|
-
var $$
|
|
1869
|
+
var $$8 = _export;
|
|
1870
1870
|
var difference = setDifference;
|
|
1871
1871
|
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
1872
1872
|
|
|
1873
1873
|
// `Set.prototype.difference` method
|
|
1874
1874
|
// https://github.com/tc39/proposal-set-methods
|
|
1875
|
-
$$
|
|
1875
|
+
$$8({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
|
|
1876
1876
|
difference: difference
|
|
1877
1877
|
});
|
|
1878
1878
|
|
|
@@ -1907,19 +1907,19 @@ var setIntersection = function intersection(other) {
|
|
|
1907
1907
|
return result;
|
|
1908
1908
|
};
|
|
1909
1909
|
|
|
1910
|
-
var $$
|
|
1911
|
-
var fails
|
|
1910
|
+
var $$7 = _export;
|
|
1911
|
+
var fails = fails$c;
|
|
1912
1912
|
var intersection = setIntersection;
|
|
1913
1913
|
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
1914
1914
|
|
|
1915
|
-
var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails
|
|
1915
|
+
var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails(function () {
|
|
1916
1916
|
// eslint-disable-next-line es/no-array-from, es/no-set -- testing
|
|
1917
1917
|
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
1918
1918
|
});
|
|
1919
1919
|
|
|
1920
1920
|
// `Set.prototype.intersection` method
|
|
1921
1921
|
// https://github.com/tc39/proposal-set-methods
|
|
1922
|
-
$$
|
|
1922
|
+
$$7({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
1923
1923
|
intersection: intersection
|
|
1924
1924
|
});
|
|
1925
1925
|
|
|
@@ -1945,13 +1945,13 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
|
1945
1945
|
}) !== false;
|
|
1946
1946
|
};
|
|
1947
1947
|
|
|
1948
|
-
var $$
|
|
1948
|
+
var $$6 = _export;
|
|
1949
1949
|
var isDisjointFrom = setIsDisjointFrom;
|
|
1950
1950
|
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
1951
1951
|
|
|
1952
1952
|
// `Set.prototype.isDisjointFrom` method
|
|
1953
1953
|
// https://github.com/tc39/proposal-set-methods
|
|
1954
|
-
$$
|
|
1954
|
+
$$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
|
|
1955
1955
|
isDisjointFrom: isDisjointFrom
|
|
1956
1956
|
});
|
|
1957
1957
|
|
|
@@ -1971,13 +1971,13 @@ var setIsSubsetOf = function isSubsetOf(other) {
|
|
|
1971
1971
|
}, true) !== false;
|
|
1972
1972
|
};
|
|
1973
1973
|
|
|
1974
|
-
var $$
|
|
1974
|
+
var $$5 = _export;
|
|
1975
1975
|
var isSubsetOf = setIsSubsetOf;
|
|
1976
1976
|
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
1977
1977
|
|
|
1978
1978
|
// `Set.prototype.isSubsetOf` method
|
|
1979
1979
|
// https://github.com/tc39/proposal-set-methods
|
|
1980
|
-
$$
|
|
1980
|
+
$$5({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
|
|
1981
1981
|
isSubsetOf: isSubsetOf
|
|
1982
1982
|
});
|
|
1983
1983
|
|
|
@@ -2000,13 +2000,13 @@ var setIsSupersetOf = function isSupersetOf(other) {
|
|
|
2000
2000
|
}) !== false;
|
|
2001
2001
|
};
|
|
2002
2002
|
|
|
2003
|
-
var $$
|
|
2003
|
+
var $$4 = _export;
|
|
2004
2004
|
var isSupersetOf = setIsSupersetOf;
|
|
2005
2005
|
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
2006
2006
|
|
|
2007
2007
|
// `Set.prototype.isSupersetOf` method
|
|
2008
2008
|
// https://github.com/tc39/proposal-set-methods
|
|
2009
|
-
$$
|
|
2009
|
+
$$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
|
|
2010
2010
|
isSupersetOf: isSupersetOf
|
|
2011
2011
|
});
|
|
2012
2012
|
|
|
@@ -2033,13 +2033,13 @@ var setSymmetricDifference = function symmetricDifference(other) {
|
|
|
2033
2033
|
return result;
|
|
2034
2034
|
};
|
|
2035
2035
|
|
|
2036
|
-
var $$
|
|
2036
|
+
var $$3 = _export;
|
|
2037
2037
|
var symmetricDifference = setSymmetricDifference;
|
|
2038
2038
|
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
2039
2039
|
|
|
2040
2040
|
// `Set.prototype.symmetricDifference` method
|
|
2041
2041
|
// https://github.com/tc39/proposal-set-methods
|
|
2042
|
-
$$
|
|
2042
|
+
$$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
|
|
2043
2043
|
symmetricDifference: symmetricDifference
|
|
2044
2044
|
});
|
|
2045
2045
|
|
|
@@ -2061,102 +2061,16 @@ var setUnion = function union(other) {
|
|
|
2061
2061
|
return result;
|
|
2062
2062
|
};
|
|
2063
2063
|
|
|
2064
|
-
var $$
|
|
2064
|
+
var $$2 = _export;
|
|
2065
2065
|
var union = setUnion;
|
|
2066
2066
|
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
2067
2067
|
|
|
2068
2068
|
// `Set.prototype.union` method
|
|
2069
2069
|
// https://github.com/tc39/proposal-set-methods
|
|
2070
|
-
$$
|
|
2070
|
+
$$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
2071
2071
|
union: union
|
|
2072
2072
|
});
|
|
2073
2073
|
|
|
2074
|
-
var classof = classofRaw$2;
|
|
2075
|
-
|
|
2076
|
-
// `IsArray` abstract operation
|
|
2077
|
-
// https://tc39.es/ecma262/#sec-isarray
|
|
2078
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2079
|
-
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
2080
|
-
return classof(argument) === 'Array';
|
|
2081
|
-
};
|
|
2082
|
-
|
|
2083
|
-
var DESCRIPTORS = descriptors;
|
|
2084
|
-
var isArray = isArray$1;
|
|
2085
|
-
|
|
2086
|
-
var $TypeError$2 = TypeError;
|
|
2087
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2088
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2089
|
-
|
|
2090
|
-
// Safari < 13 does not throw an error in this case
|
|
2091
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
2092
|
-
// makes no sense without proper strict mode support
|
|
2093
|
-
if (this !== undefined) return true;
|
|
2094
|
-
try {
|
|
2095
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2096
|
-
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2097
|
-
} catch (error) {
|
|
2098
|
-
return error instanceof TypeError;
|
|
2099
|
-
}
|
|
2100
|
-
}();
|
|
2101
|
-
|
|
2102
|
-
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2103
|
-
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
2104
|
-
throw new $TypeError$2('Cannot set read only .length');
|
|
2105
|
-
} return O.length = length;
|
|
2106
|
-
} : function (O, length) {
|
|
2107
|
-
return O.length = length;
|
|
2108
|
-
};
|
|
2109
|
-
|
|
2110
|
-
var $TypeError$1 = TypeError;
|
|
2111
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2112
|
-
|
|
2113
|
-
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2114
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
|
|
2115
|
-
return it;
|
|
2116
|
-
};
|
|
2117
|
-
|
|
2118
|
-
var $$2 = _export;
|
|
2119
|
-
var toObject = toObject$3;
|
|
2120
|
-
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
2121
|
-
var setArrayLength = arraySetLength;
|
|
2122
|
-
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2123
|
-
var fails = fails$d;
|
|
2124
|
-
|
|
2125
|
-
var INCORRECT_TO_LENGTH = fails(function () {
|
|
2126
|
-
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2127
|
-
});
|
|
2128
|
-
|
|
2129
|
-
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
2130
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
2131
|
-
var properErrorOnNonWritableLength = function () {
|
|
2132
|
-
try {
|
|
2133
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2134
|
-
Object.defineProperty([], 'length', { writable: false }).push();
|
|
2135
|
-
} catch (error) {
|
|
2136
|
-
return error instanceof TypeError;
|
|
2137
|
-
}
|
|
2138
|
-
};
|
|
2139
|
-
|
|
2140
|
-
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
2141
|
-
|
|
2142
|
-
// `Array.prototype.push` method
|
|
2143
|
-
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2144
|
-
$$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
2145
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2146
|
-
push: function push(item) {
|
|
2147
|
-
var O = toObject(this);
|
|
2148
|
-
var len = lengthOfArrayLike(O);
|
|
2149
|
-
var argCount = arguments.length;
|
|
2150
|
-
doesNotExceedSafeInteger(len + argCount);
|
|
2151
|
-
for (var i = 0; i < argCount; i++) {
|
|
2152
|
-
O[len] = arguments[i];
|
|
2153
|
-
len++;
|
|
2154
|
-
}
|
|
2155
|
-
setArrayLength(O, len);
|
|
2156
|
-
return len;
|
|
2157
|
-
}
|
|
2158
|
-
});
|
|
2159
|
-
|
|
2160
2074
|
var $$1 = _export;
|
|
2161
2075
|
var iterate$2 = iterate$6;
|
|
2162
2076
|
var aCallable$1 = aCallable$a;
|
|
@@ -11738,7 +11652,10 @@ function performTasksInParallelFunction(config) {
|
|
|
11738
11652
|
* @param config
|
|
11739
11653
|
*/
|
|
11740
11654
|
function performTasksFromFactoryInParallelFunction(config) {
|
|
11741
|
-
|
|
11655
|
+
/**
|
|
11656
|
+
* By default returns null
|
|
11657
|
+
*/
|
|
11658
|
+
const defaultNonConcurrentTaskKeyFactory = () => null;
|
|
11742
11659
|
const {
|
|
11743
11660
|
taskFactory,
|
|
11744
11661
|
sequential,
|