@dereekb/firebase 10.0.14 → 10.0.16
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/index.cjs.js +227 -274
- package/index.esm.js +240 -286
- package/package.json +1 -1
- package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +36 -24
- package/src/lib/common/storage/storage.d.ts +5 -0
- package/src/lib/common/storage/types.d.ts +6 -2
- package/test/CHANGELOG.md +8 -0
- package/test/package.json +1 -1
- package/test/src/lib/common/firestore/test.driver.accessor.js +45 -1
- package/test/src/lib/common/firestore/test.driver.accessor.js.map +1 -1
- package/test/src/lib/common/mock/mock.item.d.ts +3 -0
- package/test/src/lib/common/mock/mock.item.js +1 -0
- package/test/src/lib/common/mock/mock.item.js.map +1 -1
- package/test/src/lib/common/storage/test.driver.accessor.js +8 -2
- package/test/src/lib/common/storage/test.driver.accessor.js.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -101,10 +101,10 @@ var functionBindNative = !fails$i(function () {
|
|
|
101
101
|
|
|
102
102
|
var NATIVE_BIND$3 = functionBindNative;
|
|
103
103
|
|
|
104
|
-
var call$
|
|
104
|
+
var call$j = Function.prototype.call;
|
|
105
105
|
|
|
106
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
107
|
-
return call$
|
|
106
|
+
var functionCall = NATIVE_BIND$3 ? call$j.bind(call$j) : function () {
|
|
107
|
+
return call$j.apply(call$j, arguments);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
var objectPropertyIsEnumerable = {};
|
|
@@ -135,30 +135,30 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
135
135
|
var NATIVE_BIND$2 = functionBindNative;
|
|
136
136
|
|
|
137
137
|
var FunctionPrototype$2 = Function.prototype;
|
|
138
|
-
var call$
|
|
139
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
138
|
+
var call$i = FunctionPrototype$2.call;
|
|
139
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$i, call$i);
|
|
140
140
|
|
|
141
141
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
142
142
|
return function () {
|
|
143
|
-
return call$
|
|
143
|
+
return call$i.apply(fn, arguments);
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
-
var uncurryThis$
|
|
147
|
+
var uncurryThis$k = functionUncurryThis;
|
|
148
148
|
|
|
149
|
-
var toString$6 = uncurryThis$
|
|
150
|
-
var stringSlice$6 = uncurryThis$
|
|
149
|
+
var toString$6 = uncurryThis$k({}.toString);
|
|
150
|
+
var stringSlice$6 = uncurryThis$k(''.slice);
|
|
151
151
|
|
|
152
152
|
var classofRaw$2 = function (it) {
|
|
153
153
|
return stringSlice$6(toString$6(it), 8, -1);
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
var uncurryThis$
|
|
156
|
+
var uncurryThis$j = functionUncurryThis;
|
|
157
157
|
var fails$h = fails$k;
|
|
158
|
-
var classof$
|
|
158
|
+
var classof$7 = classofRaw$2;
|
|
159
159
|
|
|
160
160
|
var $Object$4 = Object;
|
|
161
|
-
var split = uncurryThis$
|
|
161
|
+
var split = uncurryThis$j(''.split);
|
|
162
162
|
|
|
163
163
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
164
164
|
var indexedObject = fails$h(function () {
|
|
@@ -166,7 +166,7 @@ var indexedObject = fails$h(function () {
|
|
|
166
166
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
167
167
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
168
168
|
}) ? function (it) {
|
|
169
|
-
return classof$
|
|
169
|
+
return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
170
170
|
} : $Object$4;
|
|
171
171
|
|
|
172
172
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -208,7 +208,7 @@ var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefine
|
|
|
208
208
|
|
|
209
209
|
var isCallable$k = isCallable$l;
|
|
210
210
|
|
|
211
|
-
var isObject$
|
|
211
|
+
var isObject$a = function (it) {
|
|
212
212
|
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
213
213
|
};
|
|
214
214
|
|
|
@@ -223,9 +223,9 @@ var getBuiltIn$7 = function (namespace, method) {
|
|
|
223
223
|
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
var uncurryThis$
|
|
226
|
+
var uncurryThis$i = functionUncurryThis;
|
|
227
227
|
|
|
228
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
228
|
+
var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
|
|
229
229
|
|
|
230
230
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
231
231
|
|
|
@@ -328,9 +328,9 @@ var getMethod$5 = function (V, P) {
|
|
|
328
328
|
return isNullOrUndefined$4(func) ? undefined : aCallable$7(func);
|
|
329
329
|
};
|
|
330
330
|
|
|
331
|
-
var call$
|
|
331
|
+
var call$h = functionCall;
|
|
332
332
|
var isCallable$g = isCallable$l;
|
|
333
|
-
var isObject$
|
|
333
|
+
var isObject$9 = isObject$a;
|
|
334
334
|
|
|
335
335
|
var $TypeError$c = TypeError;
|
|
336
336
|
|
|
@@ -338,9 +338,9 @@ var $TypeError$c = TypeError;
|
|
|
338
338
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
339
339
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
340
340
|
var fn, val;
|
|
341
|
-
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$
|
|
342
|
-
if (isCallable$g(fn = input.valueOf) && !isObject$
|
|
343
|
-
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$
|
|
341
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
|
342
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
|
|
343
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
|
344
344
|
throw new $TypeError$c("Can't convert object to primitive value");
|
|
345
345
|
};
|
|
346
346
|
|
|
@@ -372,10 +372,10 @@ var store$2 = sharedStore;
|
|
|
372
372
|
(shared$4.exports = function (key, value) {
|
|
373
373
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
374
374
|
})('versions', []).push({
|
|
375
|
-
version: '3.35.
|
|
375
|
+
version: '3.35.1',
|
|
376
376
|
mode: 'global',
|
|
377
|
-
copyright: '© 2014-
|
|
378
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.35.
|
|
377
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
378
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
|
|
379
379
|
source: 'https://github.com/zloirock/core-js'
|
|
380
380
|
});
|
|
381
381
|
|
|
@@ -389,10 +389,10 @@ var toObject$5 = function (argument) {
|
|
|
389
389
|
return $Object$2(requireObjectCoercible$3(argument));
|
|
390
390
|
};
|
|
391
391
|
|
|
392
|
-
var uncurryThis$
|
|
392
|
+
var uncurryThis$h = functionUncurryThis;
|
|
393
393
|
var toObject$4 = toObject$5;
|
|
394
394
|
|
|
395
|
-
var hasOwnProperty = uncurryThis$
|
|
395
|
+
var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
|
|
396
396
|
|
|
397
397
|
// `HasOwnProperty` abstract operation
|
|
398
398
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -401,11 +401,11 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
401
401
|
return hasOwnProperty(toObject$4(it), key);
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
var uncurryThis$
|
|
404
|
+
var uncurryThis$g = functionUncurryThis;
|
|
405
405
|
|
|
406
406
|
var id = 0;
|
|
407
407
|
var postfix = Math.random();
|
|
408
|
-
var toString$5 = uncurryThis$
|
|
408
|
+
var toString$5 = uncurryThis$g(1.0.toString);
|
|
409
409
|
|
|
410
410
|
var uid$2 = function (key) {
|
|
411
411
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
@@ -422,7 +422,7 @@ var Symbol$1 = global$g.Symbol;
|
|
|
422
422
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
423
423
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
424
424
|
|
|
425
|
-
var wellKnownSymbol$
|
|
425
|
+
var wellKnownSymbol$h = function (name) {
|
|
426
426
|
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
427
427
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
|
|
428
428
|
? Symbol$1[name]
|
|
@@ -430,26 +430,26 @@ var wellKnownSymbol$i = function (name) {
|
|
|
430
430
|
} return WellKnownSymbolsStore[name];
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
var call$
|
|
434
|
-
var isObject$
|
|
433
|
+
var call$g = functionCall;
|
|
434
|
+
var isObject$8 = isObject$a;
|
|
435
435
|
var isSymbol$1 = isSymbol$2;
|
|
436
436
|
var getMethod$4 = getMethod$5;
|
|
437
437
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
438
|
-
var wellKnownSymbol$
|
|
438
|
+
var wellKnownSymbol$g = wellKnownSymbol$h;
|
|
439
439
|
|
|
440
440
|
var $TypeError$b = TypeError;
|
|
441
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
441
|
+
var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
|
|
442
442
|
|
|
443
443
|
// `ToPrimitive` abstract operation
|
|
444
444
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
445
445
|
var toPrimitive$1 = function (input, pref) {
|
|
446
|
-
if (!isObject$
|
|
446
|
+
if (!isObject$8(input) || isSymbol$1(input)) return input;
|
|
447
447
|
var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
|
|
448
448
|
var result;
|
|
449
449
|
if (exoticToPrim) {
|
|
450
450
|
if (pref === undefined) pref = 'default';
|
|
451
|
-
result = call$
|
|
452
|
-
if (!isObject$
|
|
451
|
+
result = call$g(exoticToPrim, input, pref);
|
|
452
|
+
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
|
453
453
|
throw new $TypeError$b("Can't convert object to primitive value");
|
|
454
454
|
}
|
|
455
455
|
if (pref === undefined) pref = 'number';
|
|
@@ -467,11 +467,11 @@ var toPropertyKey$2 = function (argument) {
|
|
|
467
467
|
};
|
|
468
468
|
|
|
469
469
|
var global$f = global$m;
|
|
470
|
-
var isObject$
|
|
470
|
+
var isObject$7 = isObject$a;
|
|
471
471
|
|
|
472
472
|
var document$3 = global$f.document;
|
|
473
473
|
// typeof document.createElement is 'object' in old IE
|
|
474
|
-
var EXISTS$1 = isObject$
|
|
474
|
+
var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
|
|
475
475
|
|
|
476
476
|
var documentCreateElement$2 = function (it) {
|
|
477
477
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
@@ -490,7 +490,7 @@ var ie8DomDefine = !DESCRIPTORS$b && !fails$f(function () {
|
|
|
490
490
|
});
|
|
491
491
|
|
|
492
492
|
var DESCRIPTORS$a = descriptors;
|
|
493
|
-
var call$
|
|
493
|
+
var call$f = functionCall;
|
|
494
494
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
495
495
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
496
496
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -509,7 +509,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 :
|
|
|
509
509
|
if (IE8_DOM_DEFINE$1) try {
|
|
510
510
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
511
511
|
} catch (error) { /* empty */ }
|
|
512
|
-
if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$
|
|
512
|
+
if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
513
513
|
};
|
|
514
514
|
|
|
515
515
|
var objectDefineProperty = {};
|
|
@@ -527,14 +527,14 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$e(function () {
|
|
|
527
527
|
}).prototype !== 42;
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
var isObject$
|
|
530
|
+
var isObject$6 = isObject$a;
|
|
531
531
|
|
|
532
532
|
var $String$3 = String;
|
|
533
533
|
var $TypeError$a = TypeError;
|
|
534
534
|
|
|
535
535
|
// `Assert: Type(argument) is Object`
|
|
536
536
|
var anObject$f = function (argument) {
|
|
537
|
-
if (isObject$
|
|
537
|
+
if (isObject$6(argument)) return argument;
|
|
538
538
|
throw new $TypeError$a($String$3(argument) + ' is not an object');
|
|
539
539
|
};
|
|
540
540
|
|
|
@@ -613,11 +613,11 @@ var functionName = {
|
|
|
613
613
|
CONFIGURABLE: CONFIGURABLE
|
|
614
614
|
};
|
|
615
615
|
|
|
616
|
-
var uncurryThis$
|
|
616
|
+
var uncurryThis$f = functionUncurryThis;
|
|
617
617
|
var isCallable$f = isCallable$l;
|
|
618
618
|
var store$1 = sharedStore;
|
|
619
619
|
|
|
620
|
-
var functionToString = uncurryThis$
|
|
620
|
+
var functionToString = uncurryThis$f(Function.toString);
|
|
621
621
|
|
|
622
622
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
623
623
|
if (!isCallable$f(store$1.inspectSource)) {
|
|
@@ -648,7 +648,7 @@ var hiddenKeys$4 = {};
|
|
|
648
648
|
|
|
649
649
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
650
650
|
var global$d = global$m;
|
|
651
|
-
var isObject$
|
|
651
|
+
var isObject$5 = isObject$a;
|
|
652
652
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
653
653
|
var hasOwn$7 = hasOwnProperty_1;
|
|
654
654
|
var shared$1 = sharedStore;
|
|
@@ -667,7 +667,7 @@ var enforce = function (it) {
|
|
|
667
667
|
var getterFor = function (TYPE) {
|
|
668
668
|
return function (it) {
|
|
669
669
|
var state;
|
|
670
|
-
if (!isObject$
|
|
670
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
671
671
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
672
672
|
} return state;
|
|
673
673
|
};
|
|
@@ -717,7 +717,7 @@ var internalState = {
|
|
|
717
717
|
getterFor: getterFor
|
|
718
718
|
};
|
|
719
719
|
|
|
720
|
-
var uncurryThis$
|
|
720
|
+
var uncurryThis$e = functionUncurryThis;
|
|
721
721
|
var fails$d = fails$k;
|
|
722
722
|
var isCallable$d = isCallable$l;
|
|
723
723
|
var hasOwn$6 = hasOwnProperty_1;
|
|
@@ -731,9 +731,9 @@ var getInternalState$2 = InternalStateModule$2.get;
|
|
|
731
731
|
var $String$2 = String;
|
|
732
732
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
733
733
|
var defineProperty$5 = Object.defineProperty;
|
|
734
|
-
var stringSlice$5 = uncurryThis$
|
|
735
|
-
var replace$2 = uncurryThis$
|
|
736
|
-
var join = uncurryThis$
|
|
734
|
+
var stringSlice$5 = uncurryThis$e(''.slice);
|
|
735
|
+
var replace$2 = uncurryThis$e(''.replace);
|
|
736
|
+
var join = uncurryThis$e([].join);
|
|
737
737
|
|
|
738
738
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$d(function () {
|
|
739
739
|
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -743,7 +743,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
743
743
|
|
|
744
744
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
745
745
|
if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
|
|
746
|
-
name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)
|
|
746
|
+
name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
747
747
|
}
|
|
748
748
|
if (options && options.getter) name = 'get ' + name;
|
|
749
749
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -843,7 +843,8 @@ var min$2 = Math.min;
|
|
|
843
843
|
// `ToLength` abstract operation
|
|
844
844
|
// https://tc39.es/ecma262/#sec-tolength
|
|
845
845
|
var toLength$3 = function (argument) {
|
|
846
|
-
|
|
846
|
+
var len = toIntegerOrInfinity$3(argument);
|
|
847
|
+
return len > 0 ? min$2(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
847
848
|
};
|
|
848
849
|
|
|
849
850
|
var toLength$2 = toLength$3;
|
|
@@ -887,13 +888,13 @@ var arrayIncludes = {
|
|
|
887
888
|
indexOf: createMethod$1(false)
|
|
888
889
|
};
|
|
889
890
|
|
|
890
|
-
var uncurryThis$
|
|
891
|
+
var uncurryThis$d = functionUncurryThis;
|
|
891
892
|
var hasOwn$5 = hasOwnProperty_1;
|
|
892
893
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
893
894
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
894
895
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
895
896
|
|
|
896
|
-
var push$2 = uncurryThis$
|
|
897
|
+
var push$2 = uncurryThis$d([].push);
|
|
897
898
|
|
|
898
899
|
var objectKeysInternal = function (object, names) {
|
|
899
900
|
var O = toIndexedObject$2(object);
|
|
@@ -937,12 +938,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
937
938
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
938
939
|
|
|
939
940
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
940
|
-
var uncurryThis$
|
|
941
|
+
var uncurryThis$c = functionUncurryThis;
|
|
941
942
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
942
943
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
943
944
|
var anObject$d = anObject$f;
|
|
944
945
|
|
|
945
|
-
var concat$2 = uncurryThis$
|
|
946
|
+
var concat$2 = uncurryThis$c([].concat);
|
|
946
947
|
|
|
947
948
|
// all object keys, includes non-enumerable and symbols
|
|
948
949
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -1024,7 +1025,7 @@ var _export = function (options, source) {
|
|
|
1024
1025
|
} else if (STATIC) {
|
|
1025
1026
|
target = global$c[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1026
1027
|
} else {
|
|
1027
|
-
target =
|
|
1028
|
+
target = global$c[TARGET] && global$c[TARGET].prototype;
|
|
1028
1029
|
}
|
|
1029
1030
|
if (target) for (key in source) {
|
|
1030
1031
|
sourceProperty = source[key];
|
|
@@ -1047,24 +1048,24 @@ var _export = function (options, source) {
|
|
|
1047
1048
|
};
|
|
1048
1049
|
|
|
1049
1050
|
var global$b = global$m;
|
|
1050
|
-
var classof$
|
|
1051
|
+
var classof$6 = classofRaw$2;
|
|
1051
1052
|
|
|
1052
|
-
var engineIsNode = classof$
|
|
1053
|
+
var engineIsNode = classof$6(global$b.process) === 'process';
|
|
1053
1054
|
|
|
1054
|
-
var uncurryThis$
|
|
1055
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1055
1056
|
var aCallable$6 = aCallable$8;
|
|
1056
1057
|
|
|
1057
1058
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1058
1059
|
try {
|
|
1059
1060
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1060
|
-
return uncurryThis$
|
|
1061
|
+
return uncurryThis$b(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1061
1062
|
} catch (error) { /* empty */ }
|
|
1062
1063
|
};
|
|
1063
1064
|
|
|
1064
|
-
var isObject$
|
|
1065
|
+
var isObject$4 = isObject$a;
|
|
1065
1066
|
|
|
1066
1067
|
var isPossiblePrototype$1 = function (argument) {
|
|
1067
|
-
return isObject$
|
|
1068
|
+
return isObject$4(argument) || argument === null;
|
|
1068
1069
|
};
|
|
1069
1070
|
|
|
1070
1071
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
@@ -1106,9 +1107,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1106
1107
|
|
|
1107
1108
|
var defineProperty$4 = objectDefineProperty.f;
|
|
1108
1109
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1109
|
-
var wellKnownSymbol$
|
|
1110
|
+
var wellKnownSymbol$f = wellKnownSymbol$h;
|
|
1110
1111
|
|
|
1111
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1112
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$f('toStringTag');
|
|
1112
1113
|
|
|
1113
1114
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1114
1115
|
if (target && !STATIC) target = target.prototype;
|
|
@@ -1128,10 +1129,10 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
1128
1129
|
|
|
1129
1130
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
1130
1131
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1131
|
-
var wellKnownSymbol$
|
|
1132
|
+
var wellKnownSymbol$e = wellKnownSymbol$h;
|
|
1132
1133
|
var DESCRIPTORS$4 = descriptors;
|
|
1133
1134
|
|
|
1134
|
-
var SPECIES$4 = wellKnownSymbol$
|
|
1135
|
+
var SPECIES$4 = wellKnownSymbol$e('species');
|
|
1135
1136
|
|
|
1136
1137
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1137
1138
|
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
@@ -1153,9 +1154,9 @@ var anInstance$1 = function (it, Prototype) {
|
|
|
1153
1154
|
throw new $TypeError$7('Incorrect invocation');
|
|
1154
1155
|
};
|
|
1155
1156
|
|
|
1156
|
-
var wellKnownSymbol$
|
|
1157
|
+
var wellKnownSymbol$d = wellKnownSymbol$h;
|
|
1157
1158
|
|
|
1158
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1159
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$d('toStringTag');
|
|
1159
1160
|
var test$1 = {};
|
|
1160
1161
|
|
|
1161
1162
|
test$1[TO_STRING_TAG$1] = 'z';
|
|
@@ -1165,9 +1166,9 @@ var toStringTagSupport = String(test$1) === '[object z]';
|
|
|
1165
1166
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1166
1167
|
var isCallable$a = isCallable$l;
|
|
1167
1168
|
var classofRaw$1 = classofRaw$2;
|
|
1168
|
-
var wellKnownSymbol$
|
|
1169
|
+
var wellKnownSymbol$c = wellKnownSymbol$h;
|
|
1169
1170
|
|
|
1170
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1171
|
+
var TO_STRING_TAG = wellKnownSymbol$c('toStringTag');
|
|
1171
1172
|
var $Object$1 = Object;
|
|
1172
1173
|
|
|
1173
1174
|
// ES3 wrong here
|
|
@@ -1181,7 +1182,7 @@ var tryGet = function (it, key) {
|
|
|
1181
1182
|
};
|
|
1182
1183
|
|
|
1183
1184
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1184
|
-
var classof$
|
|
1185
|
+
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1185
1186
|
var O, tag, result;
|
|
1186
1187
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1187
1188
|
// @@toStringTag case
|
|
@@ -1192,24 +1193,23 @@ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1192
1193
|
: (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
1193
1194
|
};
|
|
1194
1195
|
|
|
1195
|
-
var uncurryThis$
|
|
1196
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1196
1197
|
var fails$b = fails$k;
|
|
1197
1198
|
var isCallable$9 = isCallable$l;
|
|
1198
|
-
var classof$
|
|
1199
|
+
var classof$4 = classof$5;
|
|
1199
1200
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
1200
1201
|
var inspectSource$1 = inspectSource$3;
|
|
1201
1202
|
|
|
1202
1203
|
var noop = function () { /* empty */ };
|
|
1203
|
-
var empty = [];
|
|
1204
1204
|
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
1205
1205
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1206
|
-
var exec$
|
|
1206
|
+
var exec$1 = uncurryThis$a(constructorRegExp.exec);
|
|
1207
1207
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1208
1208
|
|
|
1209
1209
|
var isConstructorModern = function isConstructor(argument) {
|
|
1210
1210
|
if (!isCallable$9(argument)) return false;
|
|
1211
1211
|
try {
|
|
1212
|
-
construct(noop,
|
|
1212
|
+
construct(noop, [], argument);
|
|
1213
1213
|
return true;
|
|
1214
1214
|
} catch (error) {
|
|
1215
1215
|
return false;
|
|
@@ -1218,7 +1218,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1218
1218
|
|
|
1219
1219
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1220
1220
|
if (!isCallable$9(argument)) return false;
|
|
1221
|
-
switch (classof$
|
|
1221
|
+
switch (classof$4(argument)) {
|
|
1222
1222
|
case 'AsyncFunction':
|
|
1223
1223
|
case 'GeneratorFunction':
|
|
1224
1224
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1227,7 +1227,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
1227
1227
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1228
1228
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1229
1229
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
1230
|
-
return INCORRECT_TO_STRING || !!exec$
|
|
1230
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
1231
1231
|
} catch (error) {
|
|
1232
1232
|
return true;
|
|
1233
1233
|
}
|
|
@@ -1259,9 +1259,9 @@ var aConstructor$1 = function (argument) {
|
|
|
1259
1259
|
var anObject$b = anObject$f;
|
|
1260
1260
|
var aConstructor = aConstructor$1;
|
|
1261
1261
|
var isNullOrUndefined$3 = isNullOrUndefined$6;
|
|
1262
|
-
var wellKnownSymbol$
|
|
1262
|
+
var wellKnownSymbol$b = wellKnownSymbol$h;
|
|
1263
1263
|
|
|
1264
|
-
var SPECIES$3 = wellKnownSymbol$
|
|
1264
|
+
var SPECIES$3 = wellKnownSymbol$b('species');
|
|
1265
1265
|
|
|
1266
1266
|
// `SpeciesConstructor` abstract operation
|
|
1267
1267
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
@@ -1274,29 +1274,29 @@ var speciesConstructor$2 = function (O, defaultConstructor) {
|
|
|
1274
1274
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1275
1275
|
|
|
1276
1276
|
var FunctionPrototype = Function.prototype;
|
|
1277
|
-
var apply$
|
|
1278
|
-
var call$
|
|
1277
|
+
var apply$2 = FunctionPrototype.apply;
|
|
1278
|
+
var call$e = FunctionPrototype.call;
|
|
1279
1279
|
|
|
1280
1280
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1281
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
1282
|
-
return call$
|
|
1281
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$e.bind(apply$2) : function () {
|
|
1282
|
+
return call$e.apply(apply$2, arguments);
|
|
1283
1283
|
});
|
|
1284
1284
|
|
|
1285
1285
|
var classofRaw = classofRaw$2;
|
|
1286
|
-
var uncurryThis$
|
|
1286
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1287
1287
|
|
|
1288
1288
|
var functionUncurryThisClause = function (fn) {
|
|
1289
1289
|
// Nashorn bug:
|
|
1290
1290
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1291
1291
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1292
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
1292
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
|
|
1293
1293
|
};
|
|
1294
1294
|
|
|
1295
|
-
var uncurryThis$
|
|
1295
|
+
var uncurryThis$8 = functionUncurryThisClause;
|
|
1296
1296
|
var aCallable$5 = aCallable$8;
|
|
1297
1297
|
var NATIVE_BIND = functionBindNative;
|
|
1298
1298
|
|
|
1299
|
-
var bind$5 = uncurryThis$
|
|
1299
|
+
var bind$5 = uncurryThis$8(uncurryThis$8.bind);
|
|
1300
1300
|
|
|
1301
1301
|
// optional / simple context binding
|
|
1302
1302
|
var functionBindContext = function (fn, that) {
|
|
@@ -1310,9 +1310,9 @@ var getBuiltIn$2 = getBuiltIn$7;
|
|
|
1310
1310
|
|
|
1311
1311
|
var html$2 = getBuiltIn$2('document', 'documentElement');
|
|
1312
1312
|
|
|
1313
|
-
var uncurryThis$
|
|
1313
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1314
1314
|
|
|
1315
|
-
var arraySlice$
|
|
1315
|
+
var arraySlice$1 = uncurryThis$7([].slice);
|
|
1316
1316
|
|
|
1317
1317
|
var $TypeError$5 = TypeError;
|
|
1318
1318
|
|
|
@@ -1327,13 +1327,13 @@ var userAgent$2 = engineUserAgent;
|
|
|
1327
1327
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1328
1328
|
|
|
1329
1329
|
var global$a = global$m;
|
|
1330
|
-
var apply$
|
|
1330
|
+
var apply$1 = functionApply;
|
|
1331
1331
|
var bind$4 = functionBindContext;
|
|
1332
1332
|
var isCallable$8 = isCallable$l;
|
|
1333
1333
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1334
1334
|
var fails$a = fails$k;
|
|
1335
1335
|
var html$1 = html$2;
|
|
1336
|
-
var arraySlice
|
|
1336
|
+
var arraySlice = arraySlice$1;
|
|
1337
1337
|
var createElement = documentCreateElement$2;
|
|
1338
1338
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1339
1339
|
var IS_IOS$1 = engineIsIos;
|
|
@@ -1384,9 +1384,9 @@ if (!set || !clear) {
|
|
|
1384
1384
|
set = function setImmediate(handler) {
|
|
1385
1385
|
validateArgumentsLength(arguments.length, 1);
|
|
1386
1386
|
var fn = isCallable$8(handler) ? handler : Function$1(handler);
|
|
1387
|
-
var args = arraySlice
|
|
1387
|
+
var args = arraySlice(arguments, 1);
|
|
1388
1388
|
queue$2[++counter] = function () {
|
|
1389
|
-
apply$
|
|
1389
|
+
apply$1(fn, undefined, args);
|
|
1390
1390
|
};
|
|
1391
1391
|
defer(counter);
|
|
1392
1392
|
return counter;
|
|
@@ -1602,13 +1602,13 @@ var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
|
1602
1602
|
var isCallable$7 = isCallable$l;
|
|
1603
1603
|
var isForced = isForced_1;
|
|
1604
1604
|
var inspectSource = inspectSource$3;
|
|
1605
|
-
var wellKnownSymbol$
|
|
1605
|
+
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
1606
1606
|
var IS_BROWSER = engineIsBrowser;
|
|
1607
1607
|
var IS_DENO = engineIsDeno;
|
|
1608
1608
|
var V8_VERSION = engineV8Version;
|
|
1609
1609
|
|
|
1610
1610
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
1611
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
1611
|
+
var SPECIES$2 = wellKnownSymbol$a('species');
|
|
1612
1612
|
var SUBCLASSING = false;
|
|
1613
1613
|
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$7(global$6.PromiseRejectionEvent);
|
|
1614
1614
|
|
|
@@ -1668,14 +1668,14 @@ newPromiseCapability$2.f = function (C) {
|
|
|
1668
1668
|
var $$a = _export;
|
|
1669
1669
|
var IS_NODE = engineIsNode;
|
|
1670
1670
|
var global$5 = global$m;
|
|
1671
|
-
var call$
|
|
1671
|
+
var call$d = functionCall;
|
|
1672
1672
|
var defineBuiltIn$5 = defineBuiltIn$7;
|
|
1673
1673
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1674
1674
|
var setToStringTag$3 = setToStringTag$4;
|
|
1675
1675
|
var setSpecies = setSpecies$1;
|
|
1676
1676
|
var aCallable$3 = aCallable$8;
|
|
1677
1677
|
var isCallable$6 = isCallable$l;
|
|
1678
|
-
var isObject$
|
|
1678
|
+
var isObject$3 = isObject$a;
|
|
1679
1679
|
var anInstance = anInstance$1;
|
|
1680
1680
|
var speciesConstructor$1 = speciesConstructor$2;
|
|
1681
1681
|
var task = task$1.set;
|
|
@@ -1717,7 +1717,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
1717
1717
|
// helpers
|
|
1718
1718
|
var isThenable = function (it) {
|
|
1719
1719
|
var then;
|
|
1720
|
-
return isObject$
|
|
1720
|
+
return isObject$3(it) && isCallable$6(then = it.then) ? then : false;
|
|
1721
1721
|
};
|
|
1722
1722
|
|
|
1723
1723
|
var callReaction = function (reaction, state) {
|
|
@@ -1746,7 +1746,7 @@ var callReaction = function (reaction, state) {
|
|
|
1746
1746
|
if (result === reaction.promise) {
|
|
1747
1747
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
1748
1748
|
} else if (then = isThenable(result)) {
|
|
1749
|
-
call$
|
|
1749
|
+
call$d(then, result, resolve, reject);
|
|
1750
1750
|
} else resolve(result);
|
|
1751
1751
|
} else reject(value);
|
|
1752
1752
|
} catch (error) {
|
|
@@ -1783,7 +1783,7 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
1783
1783
|
};
|
|
1784
1784
|
|
|
1785
1785
|
var onUnhandled = function (state) {
|
|
1786
|
-
call$
|
|
1786
|
+
call$d(task, global$5, function () {
|
|
1787
1787
|
var promise = state.facade;
|
|
1788
1788
|
var value = state.value;
|
|
1789
1789
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -1806,7 +1806,7 @@ var isUnhandled = function (state) {
|
|
|
1806
1806
|
};
|
|
1807
1807
|
|
|
1808
1808
|
var onHandleUnhandled = function (state) {
|
|
1809
|
-
call$
|
|
1809
|
+
call$d(task, global$5, function () {
|
|
1810
1810
|
var promise = state.facade;
|
|
1811
1811
|
if (IS_NODE) {
|
|
1812
1812
|
process.emit('rejectionHandled', promise);
|
|
@@ -1840,7 +1840,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
1840
1840
|
microtask(function () {
|
|
1841
1841
|
var wrapper = { done: false };
|
|
1842
1842
|
try {
|
|
1843
|
-
call$
|
|
1843
|
+
call$d(then, value,
|
|
1844
1844
|
bind$2(internalResolve, wrapper, state),
|
|
1845
1845
|
bind$2(internalReject, wrapper, state)
|
|
1846
1846
|
);
|
|
@@ -1864,7 +1864,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1864
1864
|
PromiseConstructor = function Promise(executor) {
|
|
1865
1865
|
anInstance(this, PromisePrototype);
|
|
1866
1866
|
aCallable$3(executor);
|
|
1867
|
-
call$
|
|
1867
|
+
call$d(Internal, this);
|
|
1868
1868
|
var state = getInternalPromiseState(this);
|
|
1869
1869
|
try {
|
|
1870
1870
|
executor(bind$2(internalResolve, state), bind$2(internalReject, state));
|
|
@@ -1927,7 +1927,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1927
1927
|
defineBuiltIn$5(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
1928
1928
|
var that = this;
|
|
1929
1929
|
return new PromiseConstructor(function (resolve, reject) {
|
|
1930
|
-
call$
|
|
1930
|
+
call$d(nativeThen, that, resolve, reject);
|
|
1931
1931
|
}).then(onFulfilled, onRejected);
|
|
1932
1932
|
// https://github.com/zloirock/core-js/issues/640
|
|
1933
1933
|
}, { unsafe: true });
|
|
@@ -1954,10 +1954,10 @@ setSpecies(PROMISE);
|
|
|
1954
1954
|
|
|
1955
1955
|
var iterators = {};
|
|
1956
1956
|
|
|
1957
|
-
var wellKnownSymbol$
|
|
1957
|
+
var wellKnownSymbol$9 = wellKnownSymbol$h;
|
|
1958
1958
|
var Iterators$4 = iterators;
|
|
1959
1959
|
|
|
1960
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
1960
|
+
var ITERATOR$5 = wellKnownSymbol$9('iterator');
|
|
1961
1961
|
var ArrayPrototype$1 = Array.prototype;
|
|
1962
1962
|
|
|
1963
1963
|
// check on default Array iterator
|
|
@@ -1965,21 +1965,21 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
1965
1965
|
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
|
|
1966
1966
|
};
|
|
1967
1967
|
|
|
1968
|
-
var classof$
|
|
1968
|
+
var classof$3 = classof$5;
|
|
1969
1969
|
var getMethod$3 = getMethod$5;
|
|
1970
1970
|
var isNullOrUndefined$2 = isNullOrUndefined$6;
|
|
1971
1971
|
var Iterators$3 = iterators;
|
|
1972
|
-
var wellKnownSymbol$
|
|
1972
|
+
var wellKnownSymbol$8 = wellKnownSymbol$h;
|
|
1973
1973
|
|
|
1974
|
-
var ITERATOR$4 = wellKnownSymbol$
|
|
1974
|
+
var ITERATOR$4 = wellKnownSymbol$8('iterator');
|
|
1975
1975
|
|
|
1976
1976
|
var getIteratorMethod$2 = function (it) {
|
|
1977
1977
|
if (!isNullOrUndefined$2(it)) return getMethod$3(it, ITERATOR$4)
|
|
1978
1978
|
|| getMethod$3(it, '@@iterator')
|
|
1979
|
-
|| Iterators$3[classof$
|
|
1979
|
+
|| Iterators$3[classof$3(it)];
|
|
1980
1980
|
};
|
|
1981
1981
|
|
|
1982
|
-
var call$
|
|
1982
|
+
var call$c = functionCall;
|
|
1983
1983
|
var aCallable$2 = aCallable$8;
|
|
1984
1984
|
var anObject$a = anObject$f;
|
|
1985
1985
|
var tryToString$1 = tryToString$4;
|
|
@@ -1989,11 +1989,11 @@ var $TypeError$3 = TypeError;
|
|
|
1989
1989
|
|
|
1990
1990
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1991
1991
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1992
|
-
if (aCallable$2(iteratorMethod)) return anObject$a(call$
|
|
1992
|
+
if (aCallable$2(iteratorMethod)) return anObject$a(call$c(iteratorMethod, argument));
|
|
1993
1993
|
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
1994
1994
|
};
|
|
1995
1995
|
|
|
1996
|
-
var call$
|
|
1996
|
+
var call$b = functionCall;
|
|
1997
1997
|
var anObject$9 = anObject$f;
|
|
1998
1998
|
var getMethod$2 = getMethod$5;
|
|
1999
1999
|
|
|
@@ -2006,7 +2006,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
2006
2006
|
if (kind === 'throw') throw value;
|
|
2007
2007
|
return value;
|
|
2008
2008
|
}
|
|
2009
|
-
innerResult = call$
|
|
2009
|
+
innerResult = call$b(innerResult, iterator);
|
|
2010
2010
|
} catch (error) {
|
|
2011
2011
|
innerError = true;
|
|
2012
2012
|
innerResult = error;
|
|
@@ -2018,7 +2018,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
2018
2018
|
};
|
|
2019
2019
|
|
|
2020
2020
|
var bind$1 = functionBindContext;
|
|
2021
|
-
var call$
|
|
2021
|
+
var call$a = functionCall;
|
|
2022
2022
|
var anObject$8 = anObject$f;
|
|
2023
2023
|
var tryToString = tryToString$4;
|
|
2024
2024
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
@@ -2076,7 +2076,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
|
|
2078
2078
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2079
|
-
while (!(step = call$
|
|
2079
|
+
while (!(step = call$a(next, iterator)).done) {
|
|
2080
2080
|
try {
|
|
2081
2081
|
result = callFn(step.value);
|
|
2082
2082
|
} catch (error) {
|
|
@@ -2086,9 +2086,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2086
2086
|
} return new Result(false);
|
|
2087
2087
|
};
|
|
2088
2088
|
|
|
2089
|
-
var wellKnownSymbol$
|
|
2089
|
+
var wellKnownSymbol$7 = wellKnownSymbol$h;
|
|
2090
2090
|
|
|
2091
|
-
var ITERATOR$3 = wellKnownSymbol$
|
|
2091
|
+
var ITERATOR$3 = wellKnownSymbol$7('iterator');
|
|
2092
2092
|
var SAFE_CLOSING = false;
|
|
2093
2093
|
|
|
2094
2094
|
try {
|
|
@@ -2136,7 +2136,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2136
2136
|
});
|
|
2137
2137
|
|
|
2138
2138
|
var $$9 = _export;
|
|
2139
|
-
var call$
|
|
2139
|
+
var call$9 = functionCall;
|
|
2140
2140
|
var aCallable$1 = aCallable$8;
|
|
2141
2141
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2142
2142
|
var perform$1 = perform$3;
|
|
@@ -2160,7 +2160,7 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2160
2160
|
var index = counter++;
|
|
2161
2161
|
var alreadyCalled = false;
|
|
2162
2162
|
remaining++;
|
|
2163
|
-
call$
|
|
2163
|
+
call$9($promiseResolve, C, promise).then(function (value) {
|
|
2164
2164
|
if (alreadyCalled) return;
|
|
2165
2165
|
alreadyCalled = true;
|
|
2166
2166
|
values[index] = value;
|
|
@@ -2200,7 +2200,7 @@ if (isCallable$5(NativePromiseConstructor)) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
2202
2202
|
var $$7 = _export;
|
|
2203
|
-
var call$
|
|
2203
|
+
var call$8 = functionCall;
|
|
2204
2204
|
var aCallable = aCallable$8;
|
|
2205
2205
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2206
2206
|
var perform = perform$3;
|
|
@@ -2217,7 +2217,7 @@ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2217
2217
|
var result = perform(function () {
|
|
2218
2218
|
var $promiseResolve = aCallable(C.resolve);
|
|
2219
2219
|
iterate(iterable, function (promise) {
|
|
2220
|
-
call$
|
|
2220
|
+
call$8($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2221
2221
|
});
|
|
2222
2222
|
});
|
|
2223
2223
|
if (result.error) reject(result.value);
|
|
@@ -2241,12 +2241,12 @@ $$6({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
2241
2241
|
});
|
|
2242
2242
|
|
|
2243
2243
|
var anObject$7 = anObject$f;
|
|
2244
|
-
var isObject$
|
|
2244
|
+
var isObject$2 = isObject$a;
|
|
2245
2245
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2246
2246
|
|
|
2247
2247
|
var promiseResolve$1 = function (C, x) {
|
|
2248
2248
|
anObject$7(C);
|
|
2249
|
-
if (isObject$
|
|
2249
|
+
if (isObject$2(x) && x.constructor === C) return x;
|
|
2250
2250
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2251
2251
|
var resolve = promiseCapability.resolve;
|
|
2252
2252
|
resolve(x);
|
|
@@ -2326,8 +2326,8 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
|
|
2328
2328
|
var DESCRIPTORS$2 = descriptors;
|
|
2329
|
-
var uncurryThis$
|
|
2330
|
-
var call$
|
|
2329
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2330
|
+
var call$7 = functionCall;
|
|
2331
2331
|
var fails$9 = fails$k;
|
|
2332
2332
|
var objectKeys$1 = objectKeys$2;
|
|
2333
2333
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
@@ -2339,7 +2339,7 @@ var IndexedObject = indexedObject;
|
|
|
2339
2339
|
var $assign = Object.assign;
|
|
2340
2340
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
2341
2341
|
var defineProperty$2 = Object.defineProperty;
|
|
2342
|
-
var concat$1 = uncurryThis$
|
|
2342
|
+
var concat$1 = uncurryThis$6([].concat);
|
|
2343
2343
|
|
|
2344
2344
|
// `Object.assign` method
|
|
2345
2345
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
@@ -2377,7 +2377,7 @@ var objectAssign = !$assign || fails$9(function () {
|
|
|
2377
2377
|
var key;
|
|
2378
2378
|
while (length > j) {
|
|
2379
2379
|
key = keys[j++];
|
|
2380
|
-
if (!DESCRIPTORS$2 || call$
|
|
2380
|
+
if (!DESCRIPTORS$2 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2381
2381
|
}
|
|
2382
2382
|
} return T;
|
|
2383
2383
|
} : $assign;
|
|
@@ -3042,12 +3042,12 @@ function dataFromDocumentSnapshots() {
|
|
|
3042
3042
|
return rxjs.map(x => getDataFromDocumentSnapshots(x));
|
|
3043
3043
|
}
|
|
3044
3044
|
|
|
3045
|
-
var classof$
|
|
3045
|
+
var classof$2 = classof$5;
|
|
3046
3046
|
|
|
3047
3047
|
var $String = String;
|
|
3048
3048
|
|
|
3049
3049
|
var toString$4 = function (argument) {
|
|
3050
|
-
if (classof$
|
|
3050
|
+
if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
3051
3051
|
return $String(argument);
|
|
3052
3052
|
};
|
|
3053
3053
|
|
|
@@ -3069,7 +3069,7 @@ var regexpFlags$1 = function () {
|
|
|
3069
3069
|
return result;
|
|
3070
3070
|
};
|
|
3071
3071
|
|
|
3072
|
-
var call$
|
|
3072
|
+
var call$6 = functionCall;
|
|
3073
3073
|
var hasOwn$1 = hasOwnProperty_1;
|
|
3074
3074
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
3075
3075
|
var regExpFlags = regexpFlags$1;
|
|
@@ -3079,7 +3079,7 @@ var RegExpPrototype$2 = RegExp.prototype;
|
|
|
3079
3079
|
var regexpGetFlags = function (R) {
|
|
3080
3080
|
var flags = R.flags;
|
|
3081
3081
|
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf(RegExpPrototype$2, R)
|
|
3082
|
-
? call$
|
|
3082
|
+
? call$6(regExpFlags, R) : flags;
|
|
3083
3083
|
};
|
|
3084
3084
|
|
|
3085
3085
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
@@ -3273,11 +3273,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
3273
3273
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
3274
3274
|
};
|
|
3275
3275
|
|
|
3276
|
-
var wellKnownSymbol$
|
|
3276
|
+
var wellKnownSymbol$6 = wellKnownSymbol$h;
|
|
3277
3277
|
var create$2 = objectCreate;
|
|
3278
3278
|
var defineProperty$1 = objectDefineProperty.f;
|
|
3279
3279
|
|
|
3280
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
3280
|
+
var UNSCOPABLES = wellKnownSymbol$6('unscopables');
|
|
3281
3281
|
var ArrayPrototype = Array.prototype;
|
|
3282
3282
|
|
|
3283
3283
|
// Array.prototype[@@unscopables]
|
|
@@ -3327,12 +3327,12 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
3327
3327
|
|
|
3328
3328
|
var fails$6 = fails$k;
|
|
3329
3329
|
var isCallable$3 = isCallable$l;
|
|
3330
|
-
var isObject$
|
|
3330
|
+
var isObject$1 = isObject$a;
|
|
3331
3331
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
3332
3332
|
var defineBuiltIn$2 = defineBuiltIn$7;
|
|
3333
|
-
var wellKnownSymbol$
|
|
3333
|
+
var wellKnownSymbol$5 = wellKnownSymbol$h;
|
|
3334
3334
|
|
|
3335
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
3335
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
3336
3336
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
3337
3337
|
|
|
3338
3338
|
// `%IteratorPrototype%` object
|
|
@@ -3350,7 +3350,7 @@ if ([].keys) {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
3352
|
|
|
3353
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
3353
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$6(function () {
|
|
3354
3354
|
var test = {};
|
|
3355
3355
|
// FF44- legacy iterators case
|
|
3356
3356
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -3388,7 +3388,7 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
3388
3388
|
};
|
|
3389
3389
|
|
|
3390
3390
|
var $$3 = _export;
|
|
3391
|
-
var call$
|
|
3391
|
+
var call$5 = functionCall;
|
|
3392
3392
|
var FunctionName = functionName;
|
|
3393
3393
|
var isCallable$2 = isCallable$l;
|
|
3394
3394
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -3397,7 +3397,7 @@ var setPrototypeOf = objectSetPrototypeOf;
|
|
|
3397
3397
|
var setToStringTag$1 = setToStringTag$4;
|
|
3398
3398
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
3399
3399
|
var defineBuiltIn$1 = defineBuiltIn$7;
|
|
3400
|
-
var wellKnownSymbol$
|
|
3400
|
+
var wellKnownSymbol$4 = wellKnownSymbol$h;
|
|
3401
3401
|
var Iterators$1 = iterators;
|
|
3402
3402
|
var IteratorsCore = iteratorsCore;
|
|
3403
3403
|
|
|
@@ -3405,7 +3405,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
|
3405
3405
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
3406
3406
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
3407
3407
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
3408
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
3408
|
+
var ITERATOR$1 = wellKnownSymbol$4('iterator');
|
|
3409
3409
|
var KEYS = 'keys';
|
|
3410
3410
|
var VALUES = 'values';
|
|
3411
3411
|
var ENTRIES = 'entries';
|
|
@@ -3460,7 +3460,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
3460
3460
|
createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
|
|
3461
3461
|
} else {
|
|
3462
3462
|
INCORRECT_VALUES_NAME = true;
|
|
3463
|
-
defaultIterator = function values() { return call$
|
|
3463
|
+
defaultIterator = function values() { return call$5(nativeIterator, this); };
|
|
3464
3464
|
}
|
|
3465
3465
|
}
|
|
3466
3466
|
|
|
@@ -3604,9 +3604,9 @@ var DOMTokenListPrototype = domTokenListPrototype;
|
|
|
3604
3604
|
var ArrayIteratorMethods = es_array_iterator;
|
|
3605
3605
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
3606
3606
|
var setToStringTag = setToStringTag$4;
|
|
3607
|
-
var wellKnownSymbol$
|
|
3607
|
+
var wellKnownSymbol$3 = wellKnownSymbol$h;
|
|
3608
3608
|
|
|
3609
|
-
var ITERATOR = wellKnownSymbol$
|
|
3609
|
+
var ITERATOR = wellKnownSymbol$3('iterator');
|
|
3610
3610
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
3611
3611
|
|
|
3612
3612
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
@@ -3665,19 +3665,29 @@ function firestorePassThroughField() {
|
|
|
3665
3665
|
return FIRESTORE_PASSTHROUGH_FIELD;
|
|
3666
3666
|
}
|
|
3667
3667
|
function optionalFirestoreField(config) {
|
|
3668
|
+
// NOTE: Typings for this function internally is weird due to the support for both the one and two type transforms.
|
|
3668
3669
|
if (config) {
|
|
3670
|
+
const inputConfig = config !== null && config !== void 0 ? config : {};
|
|
3669
3671
|
const {
|
|
3670
3672
|
dontStoreDefaultReadValue,
|
|
3671
|
-
|
|
3673
|
+
dontStoreValueIf: inputDontStoreValueIf,
|
|
3672
3674
|
dontStoreIfValue: inputDontStoreIfValue,
|
|
3675
|
+
transformData: inputTransformData
|
|
3676
|
+
} = inputConfig; // might be defined.
|
|
3677
|
+
const {
|
|
3678
|
+
defaultReadValue: inputDefaultReadValue,
|
|
3673
3679
|
dontStoreIf: inputDontStoreIf = inputDontStoreIfValue,
|
|
3674
|
-
transformData: inputTransformData,
|
|
3675
3680
|
transformFromData,
|
|
3676
3681
|
transformToData
|
|
3677
|
-
} =
|
|
3682
|
+
} = inputConfig;
|
|
3678
3683
|
const transformData = inputTransformData !== null && inputTransformData !== void 0 ? inputTransformData : util.passThrough;
|
|
3679
3684
|
const transformFrom = transformFromData !== null && transformFromData !== void 0 ? transformFromData : transformData;
|
|
3680
|
-
const
|
|
3685
|
+
const baseTransformTo = transformToData !== null && transformToData !== void 0 ? transformToData : transformData;
|
|
3686
|
+
const dontStoreValueIf = inputDontStoreValueIf != null ? util.isEqualToValueDecisionFunction(inputDontStoreValueIf) : null;
|
|
3687
|
+
const transformTo = dontStoreValueIf != null ? value => {
|
|
3688
|
+
const dontStoreCheck = dontStoreValueIf(value);
|
|
3689
|
+
return dontStoreCheck ? null : baseTransformTo(value);
|
|
3690
|
+
} : baseTransformTo;
|
|
3681
3691
|
let loadDefaultReadValueFn; // set if a default read value is provided
|
|
3682
3692
|
// setup fromData
|
|
3683
3693
|
let fromData;
|
|
@@ -3696,12 +3706,9 @@ function optionalFirestoreField(config) {
|
|
|
3696
3706
|
// setup toData
|
|
3697
3707
|
let dontStoreIf;
|
|
3698
3708
|
if (inputDontStoreIf != null) {
|
|
3699
|
-
|
|
3700
|
-
dontStoreIf = inputDontStoreIf;
|
|
3701
|
-
} else {
|
|
3702
|
-
dontStoreIf = x => inputDontStoreIf === x;
|
|
3703
|
-
}
|
|
3709
|
+
dontStoreIf = util.isEqualToValueDecisionFunction(inputDontStoreIf);
|
|
3704
3710
|
} else if (dontStoreDefaultReadValue && loadDefaultReadValueFn != null) {
|
|
3711
|
+
// only applicable to one-type transforms.
|
|
3705
3712
|
dontStoreIf = x => x === loadDefaultReadValueFn();
|
|
3706
3713
|
}
|
|
3707
3714
|
let toData;
|
|
@@ -3777,16 +3784,22 @@ function firestoreDate(config = {}) {
|
|
|
3777
3784
|
toData: input => date.toISODateString(input)
|
|
3778
3785
|
});
|
|
3779
3786
|
}
|
|
3780
|
-
function optionalFirestoreDate() {
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3787
|
+
function optionalFirestoreDate(config) {
|
|
3788
|
+
const inputDontStoreValueIf = config === null || config === void 0 ? void 0 : config.dontStoreValueIf;
|
|
3789
|
+
let dontStoreValueIf = inputDontStoreValueIf;
|
|
3790
|
+
if (dontStoreValueIf != null && util.isDate(dontStoreValueIf)) {
|
|
3791
|
+
const comparisonDate = dontStoreValueIf;
|
|
3792
|
+
dontStoreValueIf = x => date.isSameDate(x, comparisonDate);
|
|
3793
|
+
}
|
|
3794
|
+
return optionalFirestoreField(Object.assign(Object.assign({}, config), {
|
|
3795
|
+
dontStoreValueIf,
|
|
3796
|
+
transformFromData: input => {
|
|
3797
|
+
return date.toJsDate(input);
|
|
3785
3798
|
},
|
|
3786
|
-
|
|
3799
|
+
transformToData: input => {
|
|
3787
3800
|
return date.toISODateString(input);
|
|
3788
3801
|
}
|
|
3789
|
-
});
|
|
3802
|
+
}));
|
|
3790
3803
|
}
|
|
3791
3804
|
function firestoreBoolean(config) {
|
|
3792
3805
|
return firestoreField({
|
|
@@ -5097,8 +5110,8 @@ var regexpUnsupportedNcg = fails$3(function () {
|
|
|
5097
5110
|
|
|
5098
5111
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
5099
5112
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
5100
|
-
var call$
|
|
5101
|
-
var uncurryThis$
|
|
5113
|
+
var call$4 = functionCall;
|
|
5114
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
5102
5115
|
var toString$3 = toString$4;
|
|
5103
5116
|
var regexpFlags = regexpFlags$1;
|
|
5104
5117
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
@@ -5111,16 +5124,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
5111
5124
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
5112
5125
|
var nativeExec = RegExp.prototype.exec;
|
|
5113
5126
|
var patchedExec = nativeExec;
|
|
5114
|
-
var charAt$3 = uncurryThis$
|
|
5115
|
-
var indexOf = uncurryThis$
|
|
5116
|
-
var replace$1 = uncurryThis$
|
|
5117
|
-
var stringSlice$4 = uncurryThis$
|
|
5127
|
+
var charAt$3 = uncurryThis$5(''.charAt);
|
|
5128
|
+
var indexOf = uncurryThis$5(''.indexOf);
|
|
5129
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
5130
|
+
var stringSlice$4 = uncurryThis$5(''.slice);
|
|
5118
5131
|
|
|
5119
5132
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
5120
5133
|
var re1 = /a/;
|
|
5121
5134
|
var re2 = /b*/g;
|
|
5122
|
-
call$
|
|
5123
|
-
call$
|
|
5135
|
+
call$4(nativeExec, re1, 'a');
|
|
5136
|
+
call$4(nativeExec, re2, 'a');
|
|
5124
5137
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
5125
5138
|
})();
|
|
5126
5139
|
|
|
@@ -5141,14 +5154,14 @@ if (PATCH) {
|
|
|
5141
5154
|
|
|
5142
5155
|
if (raw) {
|
|
5143
5156
|
raw.lastIndex = re.lastIndex;
|
|
5144
|
-
result = call$
|
|
5157
|
+
result = call$4(patchedExec, raw, str);
|
|
5145
5158
|
re.lastIndex = raw.lastIndex;
|
|
5146
5159
|
return result;
|
|
5147
5160
|
}
|
|
5148
5161
|
|
|
5149
5162
|
var groups = state.groups;
|
|
5150
5163
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
5151
|
-
var flags = call$
|
|
5164
|
+
var flags = call$4(regexpFlags, re);
|
|
5152
5165
|
var source = re.source;
|
|
5153
5166
|
var charsAdded = 0;
|
|
5154
5167
|
var strCopy = str;
|
|
@@ -5176,7 +5189,7 @@ if (PATCH) {
|
|
|
5176
5189
|
}
|
|
5177
5190
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
5178
5191
|
|
|
5179
|
-
match = call$
|
|
5192
|
+
match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
|
|
5180
5193
|
|
|
5181
5194
|
if (sticky) {
|
|
5182
5195
|
if (match) {
|
|
@@ -5191,7 +5204,7 @@ if (PATCH) {
|
|
|
5191
5204
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
5192
5205
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
5193
5206
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
5194
|
-
call$
|
|
5207
|
+
call$4(nativeReplace, match[0], reCopy, function () {
|
|
5195
5208
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
5196
5209
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
5197
5210
|
}
|
|
@@ -5210,34 +5223,34 @@ if (PATCH) {
|
|
|
5210
5223
|
};
|
|
5211
5224
|
}
|
|
5212
5225
|
|
|
5213
|
-
var regexpExec$
|
|
5226
|
+
var regexpExec$2 = patchedExec;
|
|
5214
5227
|
|
|
5215
5228
|
var $$2 = _export;
|
|
5216
|
-
var exec
|
|
5229
|
+
var exec = regexpExec$2;
|
|
5217
5230
|
|
|
5218
5231
|
// `RegExp.prototype.exec` method
|
|
5219
5232
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
5220
|
-
$$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec
|
|
5221
|
-
exec: exec
|
|
5233
|
+
$$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
5234
|
+
exec: exec
|
|
5222
5235
|
});
|
|
5223
5236
|
|
|
5224
5237
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
5225
5238
|
|
|
5226
|
-
var
|
|
5239
|
+
var call$3 = functionCall;
|
|
5227
5240
|
var defineBuiltIn = defineBuiltIn$7;
|
|
5228
|
-
var regexpExec$
|
|
5241
|
+
var regexpExec$1 = regexpExec$2;
|
|
5229
5242
|
var fails$2 = fails$k;
|
|
5230
|
-
var wellKnownSymbol$
|
|
5243
|
+
var wellKnownSymbol$2 = wellKnownSymbol$h;
|
|
5231
5244
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
5232
5245
|
|
|
5233
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
5246
|
+
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
5234
5247
|
var RegExpPrototype = RegExp.prototype;
|
|
5235
5248
|
|
|
5236
5249
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
5237
|
-
var SYMBOL = wellKnownSymbol$
|
|
5250
|
+
var SYMBOL = wellKnownSymbol$2(KEY);
|
|
5238
5251
|
|
|
5239
5252
|
var DELEGATES_TO_SYMBOL = !fails$2(function () {
|
|
5240
|
-
// String methods call symbol-named
|
|
5253
|
+
// String methods call symbol-named RegExp methods
|
|
5241
5254
|
var O = {};
|
|
5242
5255
|
O[SYMBOL] = function () { return 7; };
|
|
5243
5256
|
return ''[KEY](O) !== 7;
|
|
@@ -5275,18 +5288,17 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
5275
5288
|
!DELEGATES_TO_EXEC ||
|
|
5276
5289
|
FORCED
|
|
5277
5290
|
) {
|
|
5278
|
-
var
|
|
5291
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
5279
5292
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
5280
|
-
var uncurriedNativeMethod = uncurryThis$5(nativeMethod);
|
|
5281
5293
|
var $exec = regexp.exec;
|
|
5282
|
-
if ($exec === regexpExec$
|
|
5294
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
5283
5295
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
5284
5296
|
// The native String method already delegates to @@method (this
|
|
5285
5297
|
// polyfilled function), leasing to infinite recursion.
|
|
5286
5298
|
// We avoid it by directly calling the native @@method method.
|
|
5287
|
-
return { done: true, value:
|
|
5299
|
+
return { done: true, value: call$3(nativeRegExpMethod, regexp, str, arg2) };
|
|
5288
5300
|
}
|
|
5289
|
-
return { done: true, value:
|
|
5301
|
+
return { done: true, value: call$3(nativeMethod, str, regexp, arg2) };
|
|
5290
5302
|
}
|
|
5291
5303
|
return { done: false };
|
|
5292
5304
|
});
|
|
@@ -5298,19 +5310,6 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
5298
5310
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
5299
5311
|
};
|
|
5300
5312
|
|
|
5301
|
-
var isObject$1 = isObject$b;
|
|
5302
|
-
var classof$2 = classofRaw$2;
|
|
5303
|
-
var wellKnownSymbol$2 = wellKnownSymbol$i;
|
|
5304
|
-
|
|
5305
|
-
var MATCH = wellKnownSymbol$2('match');
|
|
5306
|
-
|
|
5307
|
-
// `IsRegExp` abstract operation
|
|
5308
|
-
// https://tc39.es/ecma262/#sec-isregexp
|
|
5309
|
-
var isRegexp = function (it) {
|
|
5310
|
-
var isRegExp;
|
|
5311
|
-
return isObject$1(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof$2(it) === 'RegExp');
|
|
5312
|
-
};
|
|
5313
|
-
|
|
5314
5313
|
var uncurryThis$4 = functionUncurryThis;
|
|
5315
5314
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
|
|
5316
5315
|
var toString$2 = toString$4;
|
|
@@ -5360,7 +5359,7 @@ var call$2 = functionCall;
|
|
|
5360
5359
|
var anObject$2 = anObject$f;
|
|
5361
5360
|
var isCallable$1 = isCallable$l;
|
|
5362
5361
|
var classof$1 = classofRaw$2;
|
|
5363
|
-
var regexpExec
|
|
5362
|
+
var regexpExec = regexpExec$2;
|
|
5364
5363
|
|
|
5365
5364
|
var $TypeError$1 = TypeError;
|
|
5366
5365
|
|
|
@@ -5373,35 +5372,29 @@ var regexpExecAbstract = function (R, S) {
|
|
|
5373
5372
|
if (result !== null) anObject$2(result);
|
|
5374
5373
|
return result;
|
|
5375
5374
|
}
|
|
5376
|
-
if (classof$1(R) === 'RegExp') return call$2(regexpExec
|
|
5375
|
+
if (classof$1(R) === 'RegExp') return call$2(regexpExec, R, S);
|
|
5377
5376
|
throw new $TypeError$1('RegExp#exec called on incompatible receiver');
|
|
5378
5377
|
};
|
|
5379
5378
|
|
|
5380
|
-
var apply$1 = functionApply;
|
|
5381
5379
|
var call$1 = functionCall;
|
|
5382
5380
|
var uncurryThis$3 = functionUncurryThis;
|
|
5383
5381
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
5384
5382
|
var anObject$1 = anObject$f;
|
|
5385
5383
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
5386
|
-
var isRegExp = isRegexp;
|
|
5387
5384
|
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
5388
5385
|
var speciesConstructor = speciesConstructor$2;
|
|
5389
5386
|
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
5390
5387
|
var toLength$1 = toLength$3;
|
|
5391
5388
|
var toString$1 = toString$4;
|
|
5392
5389
|
var getMethod$1 = getMethod$5;
|
|
5393
|
-
var
|
|
5394
|
-
var callRegExpExec = regexpExecAbstract;
|
|
5395
|
-
var regexpExec = regexpExec$3;
|
|
5390
|
+
var regExpExec$1 = regexpExecAbstract;
|
|
5396
5391
|
var stickyHelpers = regexpStickyHelpers;
|
|
5397
5392
|
var fails$1 = fails$k;
|
|
5398
5393
|
|
|
5399
5394
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
5400
5395
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
5401
5396
|
var min$1 = Math.min;
|
|
5402
|
-
var $
|
|
5403
|
-
var exec = uncurryThis$3(/./.exec);
|
|
5404
|
-
var push$1 = uncurryThis$3($push);
|
|
5397
|
+
var push$1 = uncurryThis$3([].push);
|
|
5405
5398
|
var stringSlice$2 = uncurryThis$3(''.slice);
|
|
5406
5399
|
|
|
5407
5400
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
@@ -5415,60 +5408,20 @@ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$1(function () {
|
|
|
5415
5408
|
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
5416
5409
|
});
|
|
5417
5410
|
|
|
5411
|
+
var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
5412
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
5413
|
+
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
5414
|
+
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
5415
|
+
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
5416
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
5417
|
+
'.'.split(/()()/).length > 1 ||
|
|
5418
|
+
''.split(/.?/).length;
|
|
5419
|
+
|
|
5418
5420
|
// @@split logic
|
|
5419
5421
|
fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
5420
|
-
var internalSplit
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
5424
|
-
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
5425
|
-
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
5426
|
-
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
5427
|
-
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
5428
|
-
'.'.split(/()()/).length > 1 ||
|
|
5429
|
-
''.split(/.?/).length
|
|
5430
|
-
) {
|
|
5431
|
-
// based on es5-shim implementation, need to rework it
|
|
5432
|
-
internalSplit = function (separator, limit) {
|
|
5433
|
-
var string = toString$1(requireObjectCoercible$1(this));
|
|
5434
|
-
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
5435
|
-
if (lim === 0) return [];
|
|
5436
|
-
if (separator === undefined) return [string];
|
|
5437
|
-
// If `separator` is not a regex, use native split
|
|
5438
|
-
if (!isRegExp(separator)) {
|
|
5439
|
-
return call$1(nativeSplit, string, separator, lim);
|
|
5440
|
-
}
|
|
5441
|
-
var output = [];
|
|
5442
|
-
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
5443
|
-
(separator.multiline ? 'm' : '') +
|
|
5444
|
-
(separator.unicode ? 'u' : '') +
|
|
5445
|
-
(separator.sticky ? 'y' : '');
|
|
5446
|
-
var lastLastIndex = 0;
|
|
5447
|
-
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
5448
|
-
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
5449
|
-
var match, lastIndex, lastLength;
|
|
5450
|
-
while (match = call$1(regexpExec, separatorCopy, string)) {
|
|
5451
|
-
lastIndex = separatorCopy.lastIndex;
|
|
5452
|
-
if (lastIndex > lastLastIndex) {
|
|
5453
|
-
push$1(output, stringSlice$2(string, lastLastIndex, match.index));
|
|
5454
|
-
if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice(match, 1));
|
|
5455
|
-
lastLength = match[0].length;
|
|
5456
|
-
lastLastIndex = lastIndex;
|
|
5457
|
-
if (output.length >= lim) break;
|
|
5458
|
-
}
|
|
5459
|
-
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
5460
|
-
}
|
|
5461
|
-
if (lastLastIndex === string.length) {
|
|
5462
|
-
if (lastLength || !exec(separatorCopy, '')) push$1(output, '');
|
|
5463
|
-
} else push$1(output, stringSlice$2(string, lastLastIndex));
|
|
5464
|
-
return output.length > lim ? arraySlice(output, 0, lim) : output;
|
|
5465
|
-
};
|
|
5466
|
-
// Chakra, V8
|
|
5467
|
-
} else if ('0'.split(undefined, 0).length) {
|
|
5468
|
-
internalSplit = function (separator, limit) {
|
|
5469
|
-
return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit);
|
|
5470
|
-
};
|
|
5471
|
-
} else internalSplit = nativeSplit;
|
|
5422
|
+
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
5423
|
+
return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit);
|
|
5424
|
+
} : nativeSplit;
|
|
5472
5425
|
|
|
5473
5426
|
return [
|
|
5474
5427
|
// `String.prototype.split` method
|
|
@@ -5488,30 +5441,30 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
|
|
|
5488
5441
|
function (string, limit) {
|
|
5489
5442
|
var rx = anObject$1(this);
|
|
5490
5443
|
var S = toString$1(string);
|
|
5491
|
-
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
5492
5444
|
|
|
5493
|
-
if (
|
|
5445
|
+
if (!BUGGY) {
|
|
5446
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
5447
|
+
if (res.done) return res.value;
|
|
5448
|
+
}
|
|
5494
5449
|
|
|
5495
5450
|
var C = speciesConstructor(rx, RegExp);
|
|
5496
|
-
|
|
5497
5451
|
var unicodeMatching = rx.unicode;
|
|
5498
5452
|
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
5499
5453
|
(rx.multiline ? 'm' : '') +
|
|
5500
5454
|
(rx.unicode ? 'u' : '') +
|
|
5501
5455
|
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
5502
|
-
|
|
5503
5456
|
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
5504
5457
|
// simulate the 'y' flag.
|
|
5505
5458
|
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
5506
5459
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
5507
5460
|
if (lim === 0) return [];
|
|
5508
|
-
if (S.length === 0) return
|
|
5461
|
+
if (S.length === 0) return regExpExec$1(splitter, S) === null ? [S] : [];
|
|
5509
5462
|
var p = 0;
|
|
5510
5463
|
var q = 0;
|
|
5511
5464
|
var A = [];
|
|
5512
5465
|
while (q < S.length) {
|
|
5513
5466
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
5514
|
-
var z =
|
|
5467
|
+
var z = regExpExec$1(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
|
|
5515
5468
|
var e;
|
|
5516
5469
|
if (
|
|
5517
5470
|
z === null ||
|
|
@@ -5532,7 +5485,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
|
|
|
5532
5485
|
return A;
|
|
5533
5486
|
}
|
|
5534
5487
|
];
|
|
5535
|
-
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
5488
|
+
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
5536
5489
|
|
|
5537
5490
|
var uncurryThis$2 = functionUncurryThis;
|
|
5538
5491
|
var toObject$1 = toObject$5;
|
|
@@ -5596,7 +5549,7 @@ var advanceStringIndex = advanceStringIndex$2;
|
|
|
5596
5549
|
var getMethod = getMethod$5;
|
|
5597
5550
|
var getSubstitution = getSubstitution$1;
|
|
5598
5551
|
var regExpExec = regexpExecAbstract;
|
|
5599
|
-
var wellKnownSymbol$1 = wellKnownSymbol$
|
|
5552
|
+
var wellKnownSymbol$1 = wellKnownSymbol$h;
|
|
5600
5553
|
|
|
5601
5554
|
var REPLACE = wellKnownSymbol$1('replace');
|
|
5602
5555
|
var max = Math.max;
|
|
@@ -6384,8 +6337,8 @@ var flattenIntoArray_1 = flattenIntoArray$1;
|
|
|
6384
6337
|
|
|
6385
6338
|
var isArray = isArray$3;
|
|
6386
6339
|
var isConstructor = isConstructor$2;
|
|
6387
|
-
var isObject = isObject$
|
|
6388
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
6340
|
+
var isObject = isObject$a;
|
|
6341
|
+
var wellKnownSymbol = wellKnownSymbol$h;
|
|
6389
6342
|
|
|
6390
6343
|
var SPECIES = wellKnownSymbol('species');
|
|
6391
6344
|
var $Array = Array;
|