@dereekb/util 12.6.21 → 13.0.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.
Files changed (67) hide show
  1. package/LICENSE +1 -1
  2. package/fetch/LICENSE +1 -1
  3. package/fetch/index.cjs.js +42 -2529
  4. package/fetch/index.esm.js +44 -2530
  5. package/fetch/package.json +21 -16
  6. package/fetch/src/lib/fetch.page.d.ts +0 -4
  7. package/fetch/src/lib/fetch.url.d.ts +0 -8
  8. package/fetch/src/lib/provider.d.ts +0 -4
  9. package/index.cjs.js +36 -2354
  10. package/index.esm.js +39 -2344
  11. package/package.json +18 -7
  12. package/src/lib/array/array.boolean.d.ts +0 -11
  13. package/src/lib/array/array.value.d.ts +0 -18
  14. package/src/lib/boolean.d.ts +1 -1
  15. package/src/lib/date/date.d.ts +0 -8
  16. package/src/lib/date/date.unix.d.ts +6 -30
  17. package/src/lib/date/expires.d.ts +4 -4
  18. package/src/lib/date/hour.d.ts +1 -1
  19. package/src/lib/date/time.d.ts +0 -4
  20. package/src/lib/key.d.ts +4 -0
  21. package/src/lib/object/object.map.d.ts +0 -9
  22. package/src/lib/page/index.d.ts +0 -1
  23. package/src/lib/promise/promise.d.ts +2 -3
  24. package/src/lib/set/set.hashset.d.ts +4 -4
  25. package/src/lib/storage/storage.d.ts +2 -2
  26. package/src/lib/string/mimetype.d.ts +0 -8
  27. package/src/lib/string/replace.d.ts +11 -1
  28. package/src/lib/tree/tree.flatten.d.ts +0 -10
  29. package/src/lib/value/indexed.d.ts +1 -1
  30. package/src/lib/value/maybe.type.d.ts +3 -3
  31. package/src/lib/value/point.d.ts +2 -2
  32. package/test/LICENSE +21 -0
  33. package/test/index.cjs.js +707 -0
  34. package/test/index.esm.js +664 -0
  35. package/test/package.json +20 -6
  36. package/test/src/lib/index.d.ts +1 -3
  37. package/test/src/lib/jest/index.d.ts +4 -0
  38. package/test/src/lib/jest/jest.d.ts +55 -0
  39. package/test/src/lib/jest/jest.fail.d.ts +72 -0
  40. package/test/src/lib/jest/jest.function.d.ts +41 -0
  41. package/test/src/lib/jest/jest.wrap.d.ts +24 -0
  42. package/test/src/lib/shared/index.d.ts +4 -0
  43. package/test/src/lib/shared/shared.d.ts +154 -0
  44. package/test/src/lib/shared/shared.fail.d.ts +83 -0
  45. package/test/src/lib/shared/shared.function.d.ts +25 -0
  46. package/test/src/lib/{jest.wrap.d.ts → shared/shared.wrap.d.ts} +9 -9
  47. package/index.esm.d.ts +0 -1
  48. package/src/lib/page/page.calculator.d.ts +0 -29
  49. package/test/CHANGELOG.md +0 -1956
  50. package/test/src/index.js +0 -5
  51. package/test/src/index.js.map +0 -1
  52. package/test/src/lib/index.js +0 -8
  53. package/test/src/lib/index.js.map +0 -1
  54. package/test/src/lib/jest.d.ts +0 -100
  55. package/test/src/lib/jest.fail.d.ts +0 -104
  56. package/test/src/lib/jest.fail.js +0 -224
  57. package/test/src/lib/jest.fail.js.map +0 -1
  58. package/test/src/lib/jest.function.d.ts +0 -25
  59. package/test/src/lib/jest.function.js +0 -21
  60. package/test/src/lib/jest.function.js.map +0 -1
  61. package/test/src/lib/jest.js +0 -113
  62. package/test/src/lib/jest.js.map +0 -1
  63. package/test/src/lib/jest.wrap.js +0 -70
  64. package/test/src/lib/jest.wrap.js.map +0 -1
  65. /package/fetch/{index.cjs.d.ts → index.d.ts} +0 -0
  66. /package/{fetch/index.esm.d.ts → index.d.ts} +0 -0
  67. /package/{index.cjs.d.ts → test/index.d.ts} +0 -0
package/index.cjs.js CHANGED
@@ -1,2196 +1,19 @@
1
1
  'use strict';
2
2
 
3
+ require('core-js/modules/es.iterator.constructor.js');
4
+ require('core-js/modules/es.iterator.filter.js');
5
+ require('core-js/modules/es.iterator.for-each.js');
6
+ require('core-js/modules/es.iterator.map.js');
7
+ require('core-js/modules/es.map.get-or-insert.js');
8
+ require('core-js/modules/es.map.get-or-insert-computed.js');
9
+ require('core-js/modules/es.set.difference.v2.js');
10
+ require('core-js/modules/es.set.symmetric-difference.v2.js');
11
+ require('core-js/modules/es.set.union.v2.js');
12
+ require('core-js/modules/es.iterator.reduce.js');
3
13
  var extraSet = require('extra-set');
14
+ require('core-js/modules/es.iterator.find.js');
4
15
  var makeError = require('make-error');
5
16
 
6
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
-
8
- var check = function (it) {
9
- return it && it.Math === Math && it;
10
- };
11
-
12
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
13
- var global$b =
14
- // eslint-disable-next-line es/no-global-this -- safe
15
- check(typeof globalThis == 'object' && globalThis) ||
16
- check(typeof window == 'object' && window) ||
17
- // eslint-disable-next-line no-restricted-globals -- safe
18
- check(typeof self == 'object' && self) ||
19
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
21
- // eslint-disable-next-line no-new-func -- fallback
22
- (function () { return this; })() || Function('return this')();
23
-
24
- var objectGetOwnPropertyDescriptor = {};
25
-
26
- var fails$d = function (exec) {
27
- try {
28
- return !!exec();
29
- } catch (error) {
30
- return true;
31
- }
32
- };
33
-
34
- var fails$c = fails$d;
35
-
36
- // Detect IE8's incomplete defineProperty implementation
37
- var descriptors = !fails$c(function () {
38
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
39
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
40
- });
41
-
42
- var fails$b = fails$d;
43
-
44
- var functionBindNative = !fails$b(function () {
45
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
46
- var test = (function () { /* empty */ }).bind();
47
- // eslint-disable-next-line no-prototype-builtins -- safe
48
- return typeof test != 'function' || test.hasOwnProperty('prototype');
49
- });
50
-
51
- var NATIVE_BIND$2 = functionBindNative;
52
-
53
- var call$c = Function.prototype.call;
54
-
55
- var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
56
- return call$c.apply(call$c, arguments);
57
- };
58
-
59
- var objectPropertyIsEnumerable = {};
60
-
61
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
62
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
63
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
64
-
65
- // Nashorn ~ JDK8 bug
66
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
67
-
68
- // `Object.prototype.propertyIsEnumerable` method implementation
69
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
70
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
71
- var descriptor = getOwnPropertyDescriptor$2(this, V);
72
- return !!descriptor && descriptor.enumerable;
73
- } : $propertyIsEnumerable;
74
-
75
- var createPropertyDescriptor$3 = function (bitmap, value) {
76
- return {
77
- enumerable: !(bitmap & 1),
78
- configurable: !(bitmap & 2),
79
- writable: !(bitmap & 4),
80
- value: value
81
- };
82
- };
83
-
84
- var NATIVE_BIND$1 = functionBindNative;
85
-
86
- var FunctionPrototype$1 = Function.prototype;
87
- var call$b = FunctionPrototype$1.call;
88
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$b, call$b);
89
-
90
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
91
- return function () {
92
- return call$b.apply(fn, arguments);
93
- };
94
- };
95
-
96
- var uncurryThis$d = functionUncurryThis;
97
-
98
- var toString$1 = uncurryThis$d({}.toString);
99
- var stringSlice$1 = uncurryThis$d(''.slice);
100
-
101
- var classofRaw$2 = function (it) {
102
- return stringSlice$1(toString$1(it), 8, -1);
103
- };
104
-
105
- var uncurryThis$c = functionUncurryThis;
106
- var fails$a = fails$d;
107
- var classof$3 = classofRaw$2;
108
-
109
- var $Object$4 = Object;
110
- var split = uncurryThis$c(''.split);
111
-
112
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
113
- var indexedObject = fails$a(function () {
114
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
115
- // eslint-disable-next-line no-prototype-builtins -- safe
116
- return !$Object$4('z').propertyIsEnumerable(0);
117
- }) ? function (it) {
118
- return classof$3(it) === 'String' ? split(it, '') : $Object$4(it);
119
- } : $Object$4;
120
-
121
- // we can't use just `it == null` since of `document.all` special case
122
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
123
- var isNullOrUndefined$3 = function (it) {
124
- return it === null || it === undefined;
125
- };
126
-
127
- var isNullOrUndefined$2 = isNullOrUndefined$3;
128
-
129
- var $TypeError$d = TypeError;
130
-
131
- // `RequireObjectCoercible` abstract operation
132
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
- var requireObjectCoercible$2 = function (it) {
134
- if (isNullOrUndefined$2(it)) throw new $TypeError$d("Can't call method on " + it);
135
- return it;
136
- };
137
-
138
- // toObject with fallback for non-array-like ES3 strings
139
- var IndexedObject = indexedObject;
140
- var requireObjectCoercible$1 = requireObjectCoercible$2;
141
-
142
- var toIndexedObject$4 = function (it) {
143
- return IndexedObject(requireObjectCoercible$1(it));
144
- };
145
-
146
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
147
- var documentAll = typeof document == 'object' && document.all;
148
-
149
- // `IsCallable` abstract operation
150
- // https://tc39.es/ecma262/#sec-iscallable
151
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
152
- var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
153
- return typeof argument == 'function' || argument === documentAll;
154
- } : function (argument) {
155
- return typeof argument == 'function';
156
- };
157
-
158
- var isCallable$d = isCallable$e;
159
-
160
- var isObject$6 = function (it) {
161
- return typeof it == 'object' ? it !== null : isCallable$d(it);
162
- };
163
-
164
- var global$a = global$b;
165
- var isCallable$c = isCallable$e;
166
-
167
- var aFunction = function (argument) {
168
- return isCallable$c(argument) ? argument : undefined;
169
- };
170
-
171
- var getBuiltIn$4 = function (namespace, method) {
172
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
173
- };
174
-
175
- var uncurryThis$b = functionUncurryThis;
176
-
177
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
178
-
179
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
180
-
181
- var global$9 = global$b;
182
- var userAgent = engineUserAgent;
183
-
184
- var process = global$9.process;
185
- var Deno = global$9.Deno;
186
- var versions = process && process.versions || Deno && Deno.version;
187
- var v8 = versions && versions.v8;
188
- var match, version;
189
-
190
- if (v8) {
191
- match = v8.split('.');
192
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
193
- // but their correct versions are not interesting for us
194
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
195
- }
196
-
197
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
198
- // so check `userAgent` even if `.v8` exists, but 0
199
- if (!version && userAgent) {
200
- match = userAgent.match(/Edge\/(\d+)/);
201
- if (!match || match[1] >= 74) {
202
- match = userAgent.match(/Chrome\/(\d+)/);
203
- if (match) version = +match[1];
204
- }
205
- }
206
-
207
- var engineV8Version = version;
208
-
209
- /* eslint-disable es/no-symbol -- required for testing */
210
- var V8_VERSION = engineV8Version;
211
- var fails$9 = fails$d;
212
- var global$8 = global$b;
213
-
214
- var $String$3 = global$8.String;
215
-
216
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
217
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
218
- var symbol = Symbol('symbol detection');
219
- // Chrome 38 Symbol has incorrect toString conversion
220
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
221
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
222
- // of course, fail.
223
- return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
224
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
225
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
226
- });
227
-
228
- /* eslint-disable es/no-symbol -- required for testing */
229
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
230
-
231
- var useSymbolAsUid = NATIVE_SYMBOL$1
232
- && !Symbol.sham
233
- && typeof Symbol.iterator == 'symbol';
234
-
235
- var getBuiltIn$3 = getBuiltIn$4;
236
- var isCallable$b = isCallable$e;
237
- var isPrototypeOf$2 = objectIsPrototypeOf;
238
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
239
-
240
- var $Object$3 = Object;
241
-
242
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
243
- return typeof it == 'symbol';
244
- } : function (it) {
245
- var $Symbol = getBuiltIn$3('Symbol');
246
- return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
247
- };
248
-
249
- var $String$2 = String;
250
-
251
- var tryToString$3 = function (argument) {
252
- try {
253
- return $String$2(argument);
254
- } catch (error) {
255
- return 'Object';
256
- }
257
- };
258
-
259
- var isCallable$a = isCallable$e;
260
- var tryToString$2 = tryToString$3;
261
-
262
- var $TypeError$c = TypeError;
263
-
264
- // `Assert: IsCallable(argument) is true`
265
- var aCallable$a = function (argument) {
266
- if (isCallable$a(argument)) return argument;
267
- throw new $TypeError$c(tryToString$2(argument) + ' is not a function');
268
- };
269
-
270
- var aCallable$9 = aCallable$a;
271
- var isNullOrUndefined$1 = isNullOrUndefined$3;
272
-
273
- // `GetMethod` abstract operation
274
- // https://tc39.es/ecma262/#sec-getmethod
275
- var getMethod$4 = function (V, P) {
276
- var func = V[P];
277
- return isNullOrUndefined$1(func) ? undefined : aCallable$9(func);
278
- };
279
-
280
- var call$a = functionCall;
281
- var isCallable$9 = isCallable$e;
282
- var isObject$5 = isObject$6;
283
-
284
- var $TypeError$b = TypeError;
285
-
286
- // `OrdinaryToPrimitive` abstract operation
287
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
288
- var ordinaryToPrimitive$1 = function (input, pref) {
289
- var fn, val;
290
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
291
- if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
292
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
293
- throw new $TypeError$b("Can't convert object to primitive value");
294
- };
295
-
296
- var sharedStore = {exports: {}};
297
-
298
- var isPure = false;
299
-
300
- var global$7 = global$b;
301
-
302
- // eslint-disable-next-line es/no-object-defineproperty -- safe
303
- var defineProperty$2 = Object.defineProperty;
304
-
305
- var defineGlobalProperty$3 = function (key, value) {
306
- try {
307
- defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
308
- } catch (error) {
309
- global$7[key] = value;
310
- } return value;
311
- };
312
-
313
- var globalThis$1 = global$b;
314
- var defineGlobalProperty$2 = defineGlobalProperty$3;
315
-
316
- var SHARED = '__core-js_shared__';
317
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
318
-
319
- (store$3.versions || (store$3.versions = [])).push({
320
- version: '3.36.1',
321
- mode: 'global',
322
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
323
- license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
324
- source: 'https://github.com/zloirock/core-js'
325
- });
326
-
327
- var sharedStoreExports = sharedStore.exports;
328
-
329
- var store$2 = sharedStoreExports;
330
-
331
- var shared$3 = function (key, value) {
332
- return store$2[key] || (store$2[key] = value || {});
333
- };
334
-
335
- var requireObjectCoercible = requireObjectCoercible$2;
336
-
337
- var $Object$2 = Object;
338
-
339
- // `ToObject` abstract operation
340
- // https://tc39.es/ecma262/#sec-toobject
341
- var toObject$3 = function (argument) {
342
- return $Object$2(requireObjectCoercible(argument));
343
- };
344
-
345
- var uncurryThis$a = functionUncurryThis;
346
- var toObject$2 = toObject$3;
347
-
348
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
349
-
350
- // `HasOwnProperty` abstract operation
351
- // https://tc39.es/ecma262/#sec-hasownproperty
352
- // eslint-disable-next-line es/no-object-hasown -- safe
353
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
354
- return hasOwnProperty(toObject$2(it), key);
355
- };
356
-
357
- var uncurryThis$9 = functionUncurryThis;
358
-
359
- var id = 0;
360
- var postfix = Math.random();
361
- var toString = uncurryThis$9(1.0.toString);
362
-
363
- var uid$2 = function (key) {
364
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
365
- };
366
-
367
- var global$6 = global$b;
368
- var shared$2 = shared$3;
369
- var hasOwn$8 = hasOwnProperty_1;
370
- var uid$1 = uid$2;
371
- var NATIVE_SYMBOL = symbolConstructorDetection;
372
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
373
-
374
- var Symbol$1 = global$6.Symbol;
375
- var WellKnownSymbolsStore = shared$2('wks');
376
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
377
-
378
- var wellKnownSymbol$8 = function (name) {
379
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
380
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
381
- ? Symbol$1[name]
382
- : createWellKnownSymbol('Symbol.' + name);
383
- } return WellKnownSymbolsStore[name];
384
- };
385
-
386
- var call$9 = functionCall;
387
- var isObject$4 = isObject$6;
388
- var isSymbol$1 = isSymbol$2;
389
- var getMethod$3 = getMethod$4;
390
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
391
- var wellKnownSymbol$7 = wellKnownSymbol$8;
392
-
393
- var $TypeError$a = TypeError;
394
- var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
395
-
396
- // `ToPrimitive` abstract operation
397
- // https://tc39.es/ecma262/#sec-toprimitive
398
- var toPrimitive$1 = function (input, pref) {
399
- if (!isObject$4(input) || isSymbol$1(input)) return input;
400
- var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
401
- var result;
402
- if (exoticToPrim) {
403
- if (pref === undefined) pref = 'default';
404
- result = call$9(exoticToPrim, input, pref);
405
- if (!isObject$4(result) || isSymbol$1(result)) return result;
406
- throw new $TypeError$a("Can't convert object to primitive value");
407
- }
408
- if (pref === undefined) pref = 'number';
409
- return ordinaryToPrimitive(input, pref);
410
- };
411
-
412
- var toPrimitive = toPrimitive$1;
413
- var isSymbol = isSymbol$2;
414
-
415
- // `ToPropertyKey` abstract operation
416
- // https://tc39.es/ecma262/#sec-topropertykey
417
- var toPropertyKey$2 = function (argument) {
418
- var key = toPrimitive(argument, 'string');
419
- return isSymbol(key) ? key : key + '';
420
- };
421
-
422
- var global$5 = global$b;
423
- var isObject$3 = isObject$6;
424
-
425
- var document$1 = global$5.document;
426
- // typeof document.createElement is 'object' in old IE
427
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
428
-
429
- var documentCreateElement$1 = function (it) {
430
- return EXISTS$1 ? document$1.createElement(it) : {};
431
- };
432
-
433
- var DESCRIPTORS$a = descriptors;
434
- var fails$8 = fails$d;
435
- var createElement = documentCreateElement$1;
436
-
437
- // Thanks to IE8 for its funny defineProperty
438
- var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
439
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
440
- return Object.defineProperty(createElement('div'), 'a', {
441
- get: function () { return 7; }
442
- }).a !== 7;
443
- });
444
-
445
- var DESCRIPTORS$9 = descriptors;
446
- var call$8 = functionCall;
447
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
448
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
449
- var toIndexedObject$3 = toIndexedObject$4;
450
- var toPropertyKey$1 = toPropertyKey$2;
451
- var hasOwn$7 = hasOwnProperty_1;
452
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
453
-
454
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
455
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
456
-
457
- // `Object.getOwnPropertyDescriptor` method
458
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
459
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
460
- O = toIndexedObject$3(O);
461
- P = toPropertyKey$1(P);
462
- if (IE8_DOM_DEFINE$1) try {
463
- return $getOwnPropertyDescriptor$1(O, P);
464
- } catch (error) { /* empty */ }
465
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$8(propertyIsEnumerableModule.f, O, P), O[P]);
466
- };
467
-
468
- var objectDefineProperty = {};
469
-
470
- var DESCRIPTORS$8 = descriptors;
471
- var fails$7 = fails$d;
472
-
473
- // V8 ~ Chrome 36-
474
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
475
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
476
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
477
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
478
- value: 42,
479
- writable: false
480
- }).prototype !== 42;
481
- });
482
-
483
- var isObject$2 = isObject$6;
484
-
485
- var $String$1 = String;
486
- var $TypeError$9 = TypeError;
487
-
488
- // `Assert: Type(argument) is Object`
489
- var anObject$f = function (argument) {
490
- if (isObject$2(argument)) return argument;
491
- throw new $TypeError$9($String$1(argument) + ' is not an object');
492
- };
493
-
494
- var DESCRIPTORS$7 = descriptors;
495
- var IE8_DOM_DEFINE = ie8DomDefine;
496
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
497
- var anObject$e = anObject$f;
498
- var toPropertyKey = toPropertyKey$2;
499
-
500
- var $TypeError$8 = TypeError;
501
- // eslint-disable-next-line es/no-object-defineproperty -- safe
502
- var $defineProperty = Object.defineProperty;
503
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
504
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
505
- var ENUMERABLE = 'enumerable';
506
- var CONFIGURABLE$1 = 'configurable';
507
- var WRITABLE = 'writable';
508
-
509
- // `Object.defineProperty` method
510
- // https://tc39.es/ecma262/#sec-object.defineproperty
511
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
512
- anObject$e(O);
513
- P = toPropertyKey(P);
514
- anObject$e(Attributes);
515
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
516
- var current = $getOwnPropertyDescriptor(O, P);
517
- if (current && current[WRITABLE]) {
518
- O[P] = Attributes.value;
519
- Attributes = {
520
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
521
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
522
- writable: false
523
- };
524
- }
525
- } return $defineProperty(O, P, Attributes);
526
- } : $defineProperty : function defineProperty(O, P, Attributes) {
527
- anObject$e(O);
528
- P = toPropertyKey(P);
529
- anObject$e(Attributes);
530
- if (IE8_DOM_DEFINE) try {
531
- return $defineProperty(O, P, Attributes);
532
- } catch (error) { /* empty */ }
533
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
534
- if ('value' in Attributes) O[P] = Attributes.value;
535
- return O;
536
- };
537
-
538
- var DESCRIPTORS$6 = descriptors;
539
- var definePropertyModule$4 = objectDefineProperty;
540
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
541
-
542
- var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
543
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
544
- } : function (object, key, value) {
545
- object[key] = value;
546
- return object;
547
- };
548
-
549
- var makeBuiltIn$3 = {exports: {}};
550
-
551
- var DESCRIPTORS$5 = descriptors;
552
- var hasOwn$6 = hasOwnProperty_1;
553
-
554
- var FunctionPrototype = Function.prototype;
555
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
556
- var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
557
-
558
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
559
- // additional protection from minified / mangled / dropped function names
560
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
561
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
562
-
563
- var functionName = {
564
- EXISTS: EXISTS,
565
- PROPER: PROPER,
566
- CONFIGURABLE: CONFIGURABLE
567
- };
568
-
569
- var uncurryThis$8 = functionUncurryThis;
570
- var isCallable$8 = isCallable$e;
571
- var store$1 = sharedStoreExports;
572
-
573
- var functionToString = uncurryThis$8(Function.toString);
574
-
575
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
576
- if (!isCallable$8(store$1.inspectSource)) {
577
- store$1.inspectSource = function (it) {
578
- return functionToString(it);
579
- };
580
- }
581
-
582
- var inspectSource$1 = store$1.inspectSource;
583
-
584
- var global$4 = global$b;
585
- var isCallable$7 = isCallable$e;
586
-
587
- var WeakMap$1 = global$4.WeakMap;
588
-
589
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
590
-
591
- var shared$1 = shared$3;
592
- var uid = uid$2;
593
-
594
- var keys$1 = shared$1('keys');
595
-
596
- var sharedKey$3 = function (key) {
597
- return keys$1[key] || (keys$1[key] = uid(key));
598
- };
599
-
600
- var hiddenKeys$4 = {};
601
-
602
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
603
- var global$3 = global$b;
604
- var isObject$1 = isObject$6;
605
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
606
- var hasOwn$5 = hasOwnProperty_1;
607
- var shared = sharedStoreExports;
608
- var sharedKey$2 = sharedKey$3;
609
- var hiddenKeys$3 = hiddenKeys$4;
610
-
611
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
612
- var TypeError$1 = global$3.TypeError;
613
- var WeakMap = global$3.WeakMap;
614
- var set, get, has$6;
615
-
616
- var enforce = function (it) {
617
- return has$6(it) ? get(it) : set(it, {});
618
- };
619
-
620
- var getterFor = function (TYPE) {
621
- return function (it) {
622
- var state;
623
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
624
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
625
- } return state;
626
- };
627
- };
628
-
629
- if (NATIVE_WEAK_MAP || shared.state) {
630
- var store = shared.state || (shared.state = new WeakMap());
631
- /* eslint-disable no-self-assign -- prototype methods protection */
632
- store.get = store.get;
633
- store.has = store.has;
634
- store.set = store.set;
635
- /* eslint-enable no-self-assign -- prototype methods protection */
636
- set = function (it, metadata) {
637
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
638
- metadata.facade = it;
639
- store.set(it, metadata);
640
- return metadata;
641
- };
642
- get = function (it) {
643
- return store.get(it) || {};
644
- };
645
- has$6 = function (it) {
646
- return store.has(it);
647
- };
648
- } else {
649
- var STATE = sharedKey$2('state');
650
- hiddenKeys$3[STATE] = true;
651
- set = function (it, metadata) {
652
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
653
- metadata.facade = it;
654
- createNonEnumerableProperty$2(it, STATE, metadata);
655
- return metadata;
656
- };
657
- get = function (it) {
658
- return hasOwn$5(it, STATE) ? it[STATE] : {};
659
- };
660
- has$6 = function (it) {
661
- return hasOwn$5(it, STATE);
662
- };
663
- }
664
-
665
- var internalState = {
666
- set: set,
667
- get: get,
668
- has: has$6,
669
- enforce: enforce,
670
- getterFor: getterFor
671
- };
672
-
673
- var uncurryThis$7 = functionUncurryThis;
674
- var fails$6 = fails$d;
675
- var isCallable$6 = isCallable$e;
676
- var hasOwn$4 = hasOwnProperty_1;
677
- var DESCRIPTORS$4 = descriptors;
678
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
679
- var inspectSource = inspectSource$1;
680
- var InternalStateModule$1 = internalState;
681
-
682
- var enforceInternalState = InternalStateModule$1.enforce;
683
- var getInternalState = InternalStateModule$1.get;
684
- var $String = String;
685
- // eslint-disable-next-line es/no-object-defineproperty -- safe
686
- var defineProperty$1 = Object.defineProperty;
687
- var stringSlice = uncurryThis$7(''.slice);
688
- var replace = uncurryThis$7(''.replace);
689
- var join = uncurryThis$7([].join);
690
-
691
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$6(function () {
692
- return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
693
- });
694
-
695
- var TEMPLATE = String(String).split('String');
696
-
697
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
698
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
699
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
700
- }
701
- if (options && options.getter) name = 'get ' + name;
702
- if (options && options.setter) name = 'set ' + name;
703
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
704
- if (DESCRIPTORS$4) defineProperty$1(value, 'name', { value: name, configurable: true });
705
- else value.name = name;
706
- }
707
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
708
- defineProperty$1(value, 'length', { value: options.arity });
709
- }
710
- try {
711
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
712
- if (DESCRIPTORS$4) defineProperty$1(value, 'prototype', { writable: false });
713
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
714
- } else if (value.prototype) value.prototype = undefined;
715
- } catch (error) { /* empty */ }
716
- var state = enforceInternalState(value);
717
- if (!hasOwn$4(state, 'source')) {
718
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
719
- } return value;
720
- };
721
-
722
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
723
- // eslint-disable-next-line no-extend-native -- required
724
- Function.prototype.toString = makeBuiltIn$2(function toString() {
725
- return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
726
- }, 'toString');
727
-
728
- var makeBuiltInExports = makeBuiltIn$3.exports;
729
-
730
- var isCallable$5 = isCallable$e;
731
- var definePropertyModule$3 = objectDefineProperty;
732
- var makeBuiltIn$1 = makeBuiltInExports;
733
- var defineGlobalProperty$1 = defineGlobalProperty$3;
734
-
735
- var defineBuiltIn$3 = function (O, key, value, options) {
736
- if (!options) options = {};
737
- var simple = options.enumerable;
738
- var name = options.name !== undefined ? options.name : key;
739
- if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
740
- if (options.global) {
741
- if (simple) O[key] = value;
742
- else defineGlobalProperty$1(key, value);
743
- } else {
744
- try {
745
- if (!options.unsafe) delete O[key];
746
- else if (O[key]) simple = true;
747
- } catch (error) { /* empty */ }
748
- if (simple) O[key] = value;
749
- else definePropertyModule$3.f(O, key, {
750
- value: value,
751
- enumerable: false,
752
- configurable: !options.nonConfigurable,
753
- writable: !options.nonWritable
754
- });
755
- } return O;
756
- };
757
-
758
- var objectGetOwnPropertyNames = {};
759
-
760
- var ceil = Math.ceil;
761
- var floor = Math.floor;
762
-
763
- // `Math.trunc` method
764
- // https://tc39.es/ecma262/#sec-math.trunc
765
- // eslint-disable-next-line es/no-math-trunc -- safe
766
- var mathTrunc = Math.trunc || function trunc(x) {
767
- var n = +x;
768
- return (n > 0 ? floor : ceil)(n);
769
- };
770
-
771
- var trunc = mathTrunc;
772
-
773
- // `ToIntegerOrInfinity` abstract operation
774
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
775
- var toIntegerOrInfinity$3 = function (argument) {
776
- var number = +argument;
777
- // eslint-disable-next-line no-self-compare -- NaN check
778
- return number !== number || number === 0 ? 0 : trunc(number);
779
- };
780
-
781
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
782
-
783
- var max$1 = Math.max;
784
- var min$1 = Math.min;
785
-
786
- // Helper for a popular repeating case of the spec:
787
- // Let integer be ? ToInteger(index).
788
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
789
- var toAbsoluteIndex$1 = function (index, length) {
790
- var integer = toIntegerOrInfinity$2(index);
791
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
792
- };
793
-
794
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
795
-
796
- var min = Math.min;
797
-
798
- // `ToLength` abstract operation
799
- // https://tc39.es/ecma262/#sec-tolength
800
- var toLength$1 = function (argument) {
801
- var len = toIntegerOrInfinity$1(argument);
802
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
803
- };
804
-
805
- var toLength = toLength$1;
806
-
807
- // `LengthOfArrayLike` abstract operation
808
- // https://tc39.es/ecma262/#sec-lengthofarraylike
809
- var lengthOfArrayLike$3 = function (obj) {
810
- return toLength(obj.length);
811
- };
812
-
813
- var toIndexedObject$2 = toIndexedObject$4;
814
- var toAbsoluteIndex = toAbsoluteIndex$1;
815
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
816
-
817
- // `Array.prototype.{ indexOf, includes }` methods implementation
818
- var createMethod = function (IS_INCLUDES) {
819
- return function ($this, el, fromIndex) {
820
- var O = toIndexedObject$2($this);
821
- var length = lengthOfArrayLike$2(O);
822
- if (length === 0) return !IS_INCLUDES && -1;
823
- var index = toAbsoluteIndex(fromIndex, length);
824
- var value;
825
- // Array#includes uses SameValueZero equality algorithm
826
- // eslint-disable-next-line no-self-compare -- NaN check
827
- if (IS_INCLUDES && el !== el) while (length > index) {
828
- value = O[index++];
829
- // eslint-disable-next-line no-self-compare -- NaN check
830
- if (value !== value) return true;
831
- // Array#indexOf ignores holes, Array#includes - not
832
- } else for (;length > index; index++) {
833
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
834
- } return !IS_INCLUDES && -1;
835
- };
836
- };
837
-
838
- var arrayIncludes = {
839
- // `Array.prototype.includes` method
840
- // https://tc39.es/ecma262/#sec-array.prototype.includes
841
- includes: createMethod(true),
842
- // `Array.prototype.indexOf` method
843
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
844
- indexOf: createMethod(false)
845
- };
846
-
847
- var uncurryThis$6 = functionUncurryThis;
848
- var hasOwn$3 = hasOwnProperty_1;
849
- var toIndexedObject$1 = toIndexedObject$4;
850
- var indexOf = arrayIncludes.indexOf;
851
- var hiddenKeys$2 = hiddenKeys$4;
852
-
853
- var push = uncurryThis$6([].push);
854
-
855
- var objectKeysInternal = function (object, names) {
856
- var O = toIndexedObject$1(object);
857
- var i = 0;
858
- var result = [];
859
- var key;
860
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
861
- // Don't enum bug & hidden keys
862
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
863
- ~indexOf(result, key) || push(result, key);
864
- }
865
- return result;
866
- };
867
-
868
- // IE8- don't enum bug keys
869
- var enumBugKeys$3 = [
870
- 'constructor',
871
- 'hasOwnProperty',
872
- 'isPrototypeOf',
873
- 'propertyIsEnumerable',
874
- 'toLocaleString',
875
- 'toString',
876
- 'valueOf'
877
- ];
878
-
879
- var internalObjectKeys$1 = objectKeysInternal;
880
- var enumBugKeys$2 = enumBugKeys$3;
881
-
882
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
883
-
884
- // `Object.getOwnPropertyNames` method
885
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
886
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
887
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
888
- return internalObjectKeys$1(O, hiddenKeys$1);
889
- };
890
-
891
- var objectGetOwnPropertySymbols = {};
892
-
893
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
894
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
895
-
896
- var getBuiltIn$2 = getBuiltIn$4;
897
- var uncurryThis$5 = functionUncurryThis;
898
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
899
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
900
- var anObject$d = anObject$f;
901
-
902
- var concat = uncurryThis$5([].concat);
903
-
904
- // all object keys, includes non-enumerable and symbols
905
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
906
- var keys = getOwnPropertyNamesModule.f(anObject$d(it));
907
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
908
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
909
- };
910
-
911
- var hasOwn$2 = hasOwnProperty_1;
912
- var ownKeys = ownKeys$1;
913
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
914
- var definePropertyModule$2 = objectDefineProperty;
915
-
916
- var copyConstructorProperties$1 = function (target, source, exceptions) {
917
- var keys = ownKeys(source);
918
- var defineProperty = definePropertyModule$2.f;
919
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
920
- for (var i = 0; i < keys.length; i++) {
921
- var key = keys[i];
922
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
923
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
924
- }
925
- }
926
- };
927
-
928
- var fails$5 = fails$d;
929
- var isCallable$4 = isCallable$e;
930
-
931
- var replacement = /#|\.prototype\./;
932
-
933
- var isForced$1 = function (feature, detection) {
934
- var value = data[normalize(feature)];
935
- return value === POLYFILL ? true
936
- : value === NATIVE ? false
937
- : isCallable$4(detection) ? fails$5(detection)
938
- : !!detection;
939
- };
940
-
941
- var normalize = isForced$1.normalize = function (string) {
942
- return String(string).replace(replacement, '.').toLowerCase();
943
- };
944
-
945
- var data = isForced$1.data = {};
946
- var NATIVE = isForced$1.NATIVE = 'N';
947
- var POLYFILL = isForced$1.POLYFILL = 'P';
948
-
949
- var isForced_1 = isForced$1;
950
-
951
- var global$2 = global$b;
952
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
953
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
954
- var defineBuiltIn$2 = defineBuiltIn$3;
955
- var defineGlobalProperty = defineGlobalProperty$3;
956
- var copyConstructorProperties = copyConstructorProperties$1;
957
- var isForced = isForced_1;
958
-
959
- /*
960
- options.target - name of the target object
961
- options.global - target is the global object
962
- options.stat - export as static methods of target
963
- options.proto - export as prototype methods of target
964
- options.real - real prototype method for the `pure` version
965
- options.forced - export even if the native feature is available
966
- options.bind - bind methods to the target, required for the `pure` version
967
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
968
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
969
- options.sham - add a flag to not completely full polyfills
970
- options.enumerable - export as enumerable property
971
- options.dontCallGetSet - prevent calling a getter on target
972
- options.name - the .name of the function if it does not match the key
973
- */
974
- var _export = function (options, source) {
975
- var TARGET = options.target;
976
- var GLOBAL = options.global;
977
- var STATIC = options.stat;
978
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
979
- if (GLOBAL) {
980
- target = global$2;
981
- } else if (STATIC) {
982
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
983
- } else {
984
- target = global$2[TARGET] && global$2[TARGET].prototype;
985
- }
986
- if (target) for (key in source) {
987
- sourceProperty = source[key];
988
- if (options.dontCallGetSet) {
989
- descriptor = getOwnPropertyDescriptor$1(target, key);
990
- targetProperty = descriptor && descriptor.value;
991
- } else targetProperty = target[key];
992
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
993
- // contained in target
994
- if (!FORCED && targetProperty !== undefined) {
995
- if (typeof sourceProperty == typeof targetProperty) continue;
996
- copyConstructorProperties(sourceProperty, targetProperty);
997
- }
998
- // add a flag to not completely full polyfills
999
- if (options.sham || (targetProperty && targetProperty.sham)) {
1000
- createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1001
- }
1002
- defineBuiltIn$2(target, key, sourceProperty, options);
1003
- }
1004
- };
1005
-
1006
- var isPrototypeOf$1 = objectIsPrototypeOf;
1007
-
1008
- var $TypeError$7 = TypeError;
1009
-
1010
- var anInstance$1 = function (it, Prototype) {
1011
- if (isPrototypeOf$1(Prototype, it)) return it;
1012
- throw new $TypeError$7('Incorrect invocation');
1013
- };
1014
-
1015
- var fails$4 = fails$d;
1016
-
1017
- var correctPrototypeGetter = !fails$4(function () {
1018
- function F() { /* empty */ }
1019
- F.prototype.constructor = null;
1020
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1021
- return Object.getPrototypeOf(new F()) !== F.prototype;
1022
- });
1023
-
1024
- var hasOwn$1 = hasOwnProperty_1;
1025
- var isCallable$3 = isCallable$e;
1026
- var toObject$1 = toObject$3;
1027
- var sharedKey$1 = sharedKey$3;
1028
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1029
-
1030
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1031
- var $Object$1 = Object;
1032
- var ObjectPrototype = $Object$1.prototype;
1033
-
1034
- // `Object.getPrototypeOf` method
1035
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1036
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1037
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1038
- var object = toObject$1(O);
1039
- if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
1040
- var constructor = object.constructor;
1041
- if (isCallable$3(constructor) && object instanceof constructor) {
1042
- return constructor.prototype;
1043
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1044
- };
1045
-
1046
- var makeBuiltIn = makeBuiltInExports;
1047
- var defineProperty = objectDefineProperty;
1048
-
1049
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1050
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1051
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1052
- return defineProperty.f(target, name, descriptor);
1053
- };
1054
-
1055
- var DESCRIPTORS$3 = descriptors;
1056
- var definePropertyModule$1 = objectDefineProperty;
1057
- var createPropertyDescriptor = createPropertyDescriptor$3;
1058
-
1059
- var createProperty$1 = function (object, key, value) {
1060
- if (DESCRIPTORS$3) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
1061
- else object[key] = value;
1062
- };
1063
-
1064
- var objectDefineProperties = {};
1065
-
1066
- var internalObjectKeys = objectKeysInternal;
1067
- var enumBugKeys$1 = enumBugKeys$3;
1068
-
1069
- // `Object.keys` method
1070
- // https://tc39.es/ecma262/#sec-object.keys
1071
- // eslint-disable-next-line es/no-object-keys -- safe
1072
- var objectKeys$1 = Object.keys || function keys(O) {
1073
- return internalObjectKeys(O, enumBugKeys$1);
1074
- };
1075
-
1076
- var DESCRIPTORS$2 = descriptors;
1077
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1078
- var definePropertyModule = objectDefineProperty;
1079
- var anObject$c = anObject$f;
1080
- var toIndexedObject = toIndexedObject$4;
1081
- var objectKeys = objectKeys$1;
1082
-
1083
- // `Object.defineProperties` method
1084
- // https://tc39.es/ecma262/#sec-object.defineproperties
1085
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1086
- objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1087
- anObject$c(O);
1088
- var props = toIndexedObject(Properties);
1089
- var keys = objectKeys(Properties);
1090
- var length = keys.length;
1091
- var index = 0;
1092
- var key;
1093
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1094
- return O;
1095
- };
1096
-
1097
- var getBuiltIn$1 = getBuiltIn$4;
1098
-
1099
- var html$1 = getBuiltIn$1('document', 'documentElement');
1100
-
1101
- /* global ActiveXObject -- old IE, WSH */
1102
- var anObject$b = anObject$f;
1103
- var definePropertiesModule = objectDefineProperties;
1104
- var enumBugKeys = enumBugKeys$3;
1105
- var hiddenKeys = hiddenKeys$4;
1106
- var html = html$1;
1107
- var documentCreateElement = documentCreateElement$1;
1108
- var sharedKey = sharedKey$3;
1109
-
1110
- var GT = '>';
1111
- var LT = '<';
1112
- var PROTOTYPE = 'prototype';
1113
- var SCRIPT = 'script';
1114
- var IE_PROTO = sharedKey('IE_PROTO');
1115
-
1116
- var EmptyConstructor = function () { /* empty */ };
1117
-
1118
- var scriptTag = function (content) {
1119
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1120
- };
1121
-
1122
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1123
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1124
- activeXDocument.write(scriptTag(''));
1125
- activeXDocument.close();
1126
- var temp = activeXDocument.parentWindow.Object;
1127
- activeXDocument = null; // avoid memory leak
1128
- return temp;
1129
- };
1130
-
1131
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1132
- var NullProtoObjectViaIFrame = function () {
1133
- // Thrash, waste and sodomy: IE GC bug
1134
- var iframe = documentCreateElement('iframe');
1135
- var JS = 'java' + SCRIPT + ':';
1136
- var iframeDocument;
1137
- iframe.style.display = 'none';
1138
- html.appendChild(iframe);
1139
- // https://github.com/zloirock/core-js/issues/475
1140
- iframe.src = String(JS);
1141
- iframeDocument = iframe.contentWindow.document;
1142
- iframeDocument.open();
1143
- iframeDocument.write(scriptTag('document.F=Object'));
1144
- iframeDocument.close();
1145
- return iframeDocument.F;
1146
- };
1147
-
1148
- // Check for document.domain and active x support
1149
- // No need to use active x approach when document.domain is not set
1150
- // see https://github.com/es-shims/es5-shim/issues/150
1151
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1152
- // avoid IE GC bug
1153
- var activeXDocument;
1154
- var NullProtoObject = function () {
1155
- try {
1156
- activeXDocument = new ActiveXObject('htmlfile');
1157
- } catch (error) { /* ignore */ }
1158
- NullProtoObject = typeof document != 'undefined'
1159
- ? document.domain && activeXDocument
1160
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1161
- : NullProtoObjectViaIFrame()
1162
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1163
- var length = enumBugKeys.length;
1164
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1165
- return NullProtoObject();
1166
- };
1167
-
1168
- hiddenKeys[IE_PROTO] = true;
1169
-
1170
- // `Object.create` method
1171
- // https://tc39.es/ecma262/#sec-object.create
1172
- // eslint-disable-next-line es/no-object-create -- safe
1173
- var objectCreate = Object.create || function create(O, Properties) {
1174
- var result;
1175
- if (O !== null) {
1176
- EmptyConstructor[PROTOTYPE] = anObject$b(O);
1177
- result = new EmptyConstructor();
1178
- EmptyConstructor[PROTOTYPE] = null;
1179
- // add "__proto__" for Object.getPrototypeOf polyfill
1180
- result[IE_PROTO] = O;
1181
- } else result = NullProtoObject();
1182
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1183
- };
1184
-
1185
- var fails$3 = fails$d;
1186
- var isCallable$2 = isCallable$e;
1187
- var isObject = isObject$6;
1188
- var getPrototypeOf$1 = objectGetPrototypeOf;
1189
- var defineBuiltIn$1 = defineBuiltIn$3;
1190
- var wellKnownSymbol$6 = wellKnownSymbol$8;
1191
-
1192
- var ITERATOR$3 = wellKnownSymbol$6('iterator');
1193
- var BUGGY_SAFARI_ITERATORS = false;
1194
-
1195
- // `%IteratorPrototype%` object
1196
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1197
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1198
-
1199
- /* eslint-disable es/no-array-prototype-keys -- safe */
1200
- if ([].keys) {
1201
- arrayIterator = [].keys();
1202
- // Safari 8 has buggy iterators w/o `next`
1203
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1204
- else {
1205
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1206
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1207
- }
1208
- }
1209
-
1210
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$3(function () {
1211
- var test = {};
1212
- // FF44- legacy iterators case
1213
- return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1214
- });
1215
-
1216
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1217
-
1218
- // `%IteratorPrototype%[@@iterator]()` method
1219
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1220
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
1221
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
1222
- return this;
1223
- });
1224
- }
1225
-
1226
- var iteratorsCore = {
1227
- IteratorPrototype: IteratorPrototype$2,
1228
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1229
- };
1230
-
1231
- var $$d = _export;
1232
- var global$1 = global$b;
1233
- var anInstance = anInstance$1;
1234
- var anObject$a = anObject$f;
1235
- var isCallable$1 = isCallable$e;
1236
- var getPrototypeOf = objectGetPrototypeOf;
1237
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1238
- var createProperty = createProperty$1;
1239
- var fails$2 = fails$d;
1240
- var hasOwn = hasOwnProperty_1;
1241
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1242
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1243
- var DESCRIPTORS$1 = descriptors;
1244
-
1245
- var CONSTRUCTOR = 'constructor';
1246
- var ITERATOR$2 = 'Iterator';
1247
- var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1248
-
1249
- var $TypeError$6 = TypeError;
1250
- var NativeIterator = global$1[ITERATOR$2];
1251
-
1252
- // FF56- have non-standard global helper `Iterator`
1253
- var FORCED$1 = !isCallable$1(NativeIterator)
1254
- || NativeIterator.prototype !== IteratorPrototype$1
1255
- // FF44- non-standard `Iterator` passes previous tests
1256
- || !fails$2(function () { NativeIterator({}); });
1257
-
1258
- var IteratorConstructor = function Iterator() {
1259
- anInstance(this, IteratorPrototype$1);
1260
- if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$6('Abstract class Iterator not directly constructable');
1261
- };
1262
-
1263
- var defineIteratorPrototypeAccessor = function (key, value) {
1264
- if (DESCRIPTORS$1) {
1265
- defineBuiltInAccessor(IteratorPrototype$1, key, {
1266
- configurable: true,
1267
- get: function () {
1268
- return value;
1269
- },
1270
- set: function (replacement) {
1271
- anObject$a(this);
1272
- if (this === IteratorPrototype$1) throw new $TypeError$6("You can't redefine this property");
1273
- if (hasOwn(this, key)) this[key] = replacement;
1274
- else createProperty(this, key, replacement);
1275
- }
1276
- });
1277
- } else IteratorPrototype$1[key] = value;
1278
- };
1279
-
1280
- if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
1281
-
1282
- if (FORCED$1 || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1283
- defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1284
- }
1285
-
1286
- IteratorConstructor.prototype = IteratorPrototype$1;
1287
-
1288
- // `Iterator` constructor
1289
- // https://github.com/tc39/proposal-iterator-helpers
1290
- $$d({ global: true, constructor: true, forced: FORCED$1 }, {
1291
- Iterator: IteratorConstructor
1292
- });
1293
-
1294
- // `GetIteratorDirect(obj)` abstract operation
1295
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1296
- var getIteratorDirect$6 = function (obj) {
1297
- return {
1298
- iterator: obj,
1299
- next: obj.next,
1300
- done: false
1301
- };
1302
- };
1303
-
1304
- var defineBuiltIn = defineBuiltIn$3;
1305
-
1306
- var defineBuiltIns$1 = function (target, src, options) {
1307
- for (var key in src) defineBuiltIn(target, key, src[key], options);
1308
- return target;
1309
- };
1310
-
1311
- // `CreateIterResultObject` abstract operation
1312
- // https://tc39.es/ecma262/#sec-createiterresultobject
1313
- var createIterResultObject$1 = function (value, done) {
1314
- return { value: value, done: done };
1315
- };
1316
-
1317
- var call$7 = functionCall;
1318
- var anObject$9 = anObject$f;
1319
- var getMethod$2 = getMethod$4;
1320
-
1321
- var iteratorClose$5 = function (iterator, kind, value) {
1322
- var innerResult, innerError;
1323
- anObject$9(iterator);
1324
- try {
1325
- innerResult = getMethod$2(iterator, 'return');
1326
- if (!innerResult) {
1327
- if (kind === 'throw') throw value;
1328
- return value;
1329
- }
1330
- innerResult = call$7(innerResult, iterator);
1331
- } catch (error) {
1332
- innerError = true;
1333
- innerResult = error;
1334
- }
1335
- if (kind === 'throw') throw value;
1336
- if (innerError) throw innerResult;
1337
- anObject$9(innerResult);
1338
- return value;
1339
- };
1340
-
1341
- var call$6 = functionCall;
1342
- var create = objectCreate;
1343
- var createNonEnumerableProperty = createNonEnumerableProperty$3;
1344
- var defineBuiltIns = defineBuiltIns$1;
1345
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1346
- var InternalStateModule = internalState;
1347
- var getMethod$1 = getMethod$4;
1348
- var IteratorPrototype = iteratorsCore.IteratorPrototype;
1349
- var createIterResultObject = createIterResultObject$1;
1350
- var iteratorClose$4 = iteratorClose$5;
1351
-
1352
- var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1353
- var ITERATOR_HELPER = 'IteratorHelper';
1354
- var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1355
- var setInternalState = InternalStateModule.set;
1356
-
1357
- var createIteratorProxyPrototype = function (IS_ITERATOR) {
1358
- var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1359
-
1360
- return defineBuiltIns(create(IteratorPrototype), {
1361
- next: function next() {
1362
- var state = getInternalState(this);
1363
- // for simplification:
1364
- // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
1365
- // for `%IteratorHelperPrototype%.next` - just a value
1366
- if (IS_ITERATOR) return state.nextHandler();
1367
- try {
1368
- var result = state.done ? undefined : state.nextHandler();
1369
- return createIterResultObject(result, state.done);
1370
- } catch (error) {
1371
- state.done = true;
1372
- throw error;
1373
- }
1374
- },
1375
- 'return': function () {
1376
- var state = getInternalState(this);
1377
- var iterator = state.iterator;
1378
- state.done = true;
1379
- if (IS_ITERATOR) {
1380
- var returnMethod = getMethod$1(iterator, 'return');
1381
- return returnMethod ? call$6(returnMethod, iterator) : createIterResultObject(undefined, true);
1382
- }
1383
- if (state.inner) try {
1384
- iteratorClose$4(state.inner.iterator, 'normal');
1385
- } catch (error) {
1386
- return iteratorClose$4(iterator, 'throw', error);
1387
- }
1388
- iteratorClose$4(iterator, 'normal');
1389
- return createIterResultObject(undefined, true);
1390
- }
1391
- });
1392
- };
1393
-
1394
- var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1395
- var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1396
-
1397
- createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG$2, 'Iterator Helper');
1398
-
1399
- var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1400
- var IteratorProxy = function Iterator(record, state) {
1401
- if (state) {
1402
- state.iterator = record.iterator;
1403
- state.next = record.next;
1404
- } else state = record;
1405
- state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1406
- state.nextHandler = nextHandler;
1407
- state.counter = 0;
1408
- state.done = false;
1409
- setInternalState(this, state);
1410
- };
1411
-
1412
- IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1413
-
1414
- return IteratorProxy;
1415
- };
1416
-
1417
- var anObject$8 = anObject$f;
1418
- var iteratorClose$3 = iteratorClose$5;
1419
-
1420
- // call something on iterator step with safe closing on error
1421
- var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
1422
- try {
1423
- return ENTRIES ? fn(anObject$8(value)[0], value[1]) : fn(value);
1424
- } catch (error) {
1425
- iteratorClose$3(iterator, 'throw', error);
1426
- }
1427
- };
1428
-
1429
- var $$c = _export;
1430
- var call$5 = functionCall;
1431
- var aCallable$8 = aCallable$a;
1432
- var anObject$7 = anObject$f;
1433
- var getIteratorDirect$5 = getIteratorDirect$6;
1434
- var createIteratorProxy$1 = iteratorCreateProxy;
1435
- var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
1436
- var IS_PURE$1 = isPure;
1437
-
1438
- var IteratorProxy$1 = createIteratorProxy$1(function () {
1439
- var iterator = this.iterator;
1440
- var predicate = this.predicate;
1441
- var next = this.next;
1442
- var result, done, value;
1443
- while (true) {
1444
- result = anObject$7(call$5(next, iterator));
1445
- done = this.done = !!result.done;
1446
- if (done) return;
1447
- value = result.value;
1448
- if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
1449
- }
1450
- });
1451
-
1452
- // `Iterator.prototype.filter` method
1453
- // https://github.com/tc39/proposal-iterator-helpers
1454
- $$c({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1455
- filter: function filter(predicate) {
1456
- anObject$7(this);
1457
- aCallable$8(predicate);
1458
- return new IteratorProxy$1(getIteratorDirect$5(this), {
1459
- predicate: predicate
1460
- });
1461
- }
1462
- });
1463
-
1464
- var classofRaw$1 = classofRaw$2;
1465
- var uncurryThis$4 = functionUncurryThis;
1466
-
1467
- var functionUncurryThisClause = function (fn) {
1468
- // Nashorn bug:
1469
- // https://github.com/zloirock/core-js/issues/1128
1470
- // https://github.com/zloirock/core-js/issues/1130
1471
- if (classofRaw$1(fn) === 'Function') return uncurryThis$4(fn);
1472
- };
1473
-
1474
- var uncurryThis$3 = functionUncurryThisClause;
1475
- var aCallable$7 = aCallable$a;
1476
- var NATIVE_BIND = functionBindNative;
1477
-
1478
- var bind$1 = uncurryThis$3(uncurryThis$3.bind);
1479
-
1480
- // optional / simple context binding
1481
- var functionBindContext = function (fn, that) {
1482
- aCallable$7(fn);
1483
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1484
- return fn.apply(that, arguments);
1485
- };
1486
- };
1487
-
1488
- var iterators = {};
1489
-
1490
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1491
- var Iterators$1 = iterators;
1492
-
1493
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
1494
- var ArrayPrototype = Array.prototype;
1495
-
1496
- // check on default Array iterator
1497
- var isArrayIteratorMethod$1 = function (it) {
1498
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
1499
- };
1500
-
1501
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1502
-
1503
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1504
- var test = {};
1505
-
1506
- test[TO_STRING_TAG$1] = 'z';
1507
-
1508
- var toStringTagSupport = String(test) === '[object z]';
1509
-
1510
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1511
- var isCallable = isCallable$e;
1512
- var classofRaw = classofRaw$2;
1513
- var wellKnownSymbol$1 = wellKnownSymbol$8;
1514
-
1515
- var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1516
- var $Object = Object;
1517
-
1518
- // ES3 wrong here
1519
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1520
-
1521
- // fallback for IE11 Script Access Denied error
1522
- var tryGet = function (it, key) {
1523
- try {
1524
- return it[key];
1525
- } catch (error) { /* empty */ }
1526
- };
1527
-
1528
- // getting tag from ES6+ `Object.prototype.toString`
1529
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1530
- var O, tag, result;
1531
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1532
- // @@toStringTag case
1533
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1534
- // builtinTag case
1535
- : CORRECT_ARGUMENTS ? classofRaw(O)
1536
- // ES3 arguments fallback
1537
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1538
- };
1539
-
1540
- var classof$1 = classof$2;
1541
- var getMethod = getMethod$4;
1542
- var isNullOrUndefined = isNullOrUndefined$3;
1543
- var Iterators = iterators;
1544
- var wellKnownSymbol = wellKnownSymbol$8;
1545
-
1546
- var ITERATOR = wellKnownSymbol('iterator');
1547
-
1548
- var getIteratorMethod$2 = function (it) {
1549
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
1550
- || getMethod(it, '@@iterator')
1551
- || Iterators[classof$1(it)];
1552
- };
1553
-
1554
- var call$4 = functionCall;
1555
- var aCallable$6 = aCallable$a;
1556
- var anObject$6 = anObject$f;
1557
- var tryToString$1 = tryToString$3;
1558
- var getIteratorMethod$1 = getIteratorMethod$2;
1559
-
1560
- var $TypeError$5 = TypeError;
1561
-
1562
- var getIterator$1 = function (argument, usingIterator) {
1563
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1564
- if (aCallable$6(iteratorMethod)) return anObject$6(call$4(iteratorMethod, argument));
1565
- throw new $TypeError$5(tryToString$1(argument) + ' is not iterable');
1566
- };
1567
-
1568
- var bind = functionBindContext;
1569
- var call$3 = functionCall;
1570
- var anObject$5 = anObject$f;
1571
- var tryToString = tryToString$3;
1572
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1573
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1574
- var isPrototypeOf = objectIsPrototypeOf;
1575
- var getIterator = getIterator$1;
1576
- var getIteratorMethod = getIteratorMethod$2;
1577
- var iteratorClose$2 = iteratorClose$5;
1578
-
1579
- var $TypeError$4 = TypeError;
1580
-
1581
- var Result = function (stopped, result) {
1582
- this.stopped = stopped;
1583
- this.result = result;
1584
- };
1585
-
1586
- var ResultPrototype = Result.prototype;
1587
-
1588
- var iterate$6 = function (iterable, unboundFunction, options) {
1589
- var that = options && options.that;
1590
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1591
- var IS_RECORD = !!(options && options.IS_RECORD);
1592
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1593
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1594
- var fn = bind(unboundFunction, that);
1595
- var iterator, iterFn, index, length, result, next, step;
1596
-
1597
- var stop = function (condition) {
1598
- if (iterator) iteratorClose$2(iterator, 'normal', condition);
1599
- return new Result(true, condition);
1600
- };
1601
-
1602
- var callFn = function (value) {
1603
- if (AS_ENTRIES) {
1604
- anObject$5(value);
1605
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1606
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1607
- };
1608
-
1609
- if (IS_RECORD) {
1610
- iterator = iterable.iterator;
1611
- } else if (IS_ITERATOR) {
1612
- iterator = iterable;
1613
- } else {
1614
- iterFn = getIteratorMethod(iterable);
1615
- if (!iterFn) throw new $TypeError$4(tryToString(iterable) + ' is not iterable');
1616
- // optimisation for array iterators
1617
- if (isArrayIteratorMethod(iterFn)) {
1618
- for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
1619
- result = callFn(iterable[index]);
1620
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1621
- } return new Result(false);
1622
- }
1623
- iterator = getIterator(iterable, iterFn);
1624
- }
1625
-
1626
- next = IS_RECORD ? iterable.next : iterator.next;
1627
- while (!(step = call$3(next, iterator)).done) {
1628
- try {
1629
- result = callFn(step.value);
1630
- } catch (error) {
1631
- iteratorClose$2(iterator, 'throw', error);
1632
- }
1633
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1634
- } return new Result(false);
1635
- };
1636
-
1637
- var $$b = _export;
1638
- var iterate$5 = iterate$6;
1639
- var aCallable$5 = aCallable$a;
1640
- var anObject$4 = anObject$f;
1641
- var getIteratorDirect$4 = getIteratorDirect$6;
1642
-
1643
- // `Iterator.prototype.forEach` method
1644
- // https://github.com/tc39/proposal-iterator-helpers
1645
- $$b({ target: 'Iterator', proto: true, real: true }, {
1646
- forEach: function forEach(fn) {
1647
- anObject$4(this);
1648
- aCallable$5(fn);
1649
- var record = getIteratorDirect$4(this);
1650
- var counter = 0;
1651
- iterate$5(record, function (value) {
1652
- fn(value, counter++);
1653
- }, { IS_RECORD: true });
1654
- }
1655
- });
1656
-
1657
- var call$2 = functionCall;
1658
- var aCallable$4 = aCallable$a;
1659
- var anObject$3 = anObject$f;
1660
- var getIteratorDirect$3 = getIteratorDirect$6;
1661
- var createIteratorProxy = iteratorCreateProxy;
1662
- var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
1663
-
1664
- var IteratorProxy = createIteratorProxy(function () {
1665
- var iterator = this.iterator;
1666
- var result = anObject$3(call$2(this.next, iterator));
1667
- var done = this.done = !!result.done;
1668
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1669
- });
1670
-
1671
- // `Iterator.prototype.map` method
1672
- // https://github.com/tc39/proposal-iterator-helpers
1673
- var iteratorMap = function map(mapper) {
1674
- anObject$3(this);
1675
- aCallable$4(mapper);
1676
- return new IteratorProxy(getIteratorDirect$3(this), {
1677
- mapper: mapper
1678
- });
1679
- };
1680
-
1681
- var $$a = _export;
1682
- var map = iteratorMap;
1683
- var IS_PURE = isPure;
1684
-
1685
- // `Iterator.prototype.map` method
1686
- // https://github.com/tc39/proposal-iterator-helpers
1687
- $$a({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
1688
- map: map
1689
- });
1690
-
1691
- var uncurryThis$2 = functionUncurryThis;
1692
-
1693
- // eslint-disable-next-line es/no-set -- safe
1694
- var SetPrototype$1 = Set.prototype;
1695
-
1696
- var setHelpers = {
1697
- // eslint-disable-next-line es/no-set -- safe
1698
- Set: Set,
1699
- add: uncurryThis$2(SetPrototype$1.add),
1700
- has: uncurryThis$2(SetPrototype$1.has),
1701
- remove: uncurryThis$2(SetPrototype$1['delete']),
1702
- proto: SetPrototype$1
1703
- };
1704
-
1705
- var has$5 = setHelpers.has;
1706
-
1707
- // Perform ? RequireInternalSlot(M, [[SetData]])
1708
- var aSet$7 = function (it) {
1709
- has$5(it);
1710
- return it;
1711
- };
1712
-
1713
- var call$1 = functionCall;
1714
-
1715
- var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
1716
- var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
1717
- var next = record.next;
1718
- var step, result;
1719
- while (!(step = call$1(next, iterator)).done) {
1720
- result = fn(step.value);
1721
- if (result !== undefined) return result;
1722
- }
1723
- };
1724
-
1725
- var uncurryThis$1 = functionUncurryThis;
1726
- var iterateSimple$6 = iterateSimple$7;
1727
- var SetHelpers$5 = setHelpers;
1728
-
1729
- var Set$3 = SetHelpers$5.Set;
1730
- var SetPrototype = SetHelpers$5.proto;
1731
- var forEach = uncurryThis$1(SetPrototype.forEach);
1732
- var keys = uncurryThis$1(SetPrototype.keys);
1733
- var next = keys(new Set$3()).next;
1734
-
1735
- var setIterate = function (set, fn, interruptible) {
1736
- return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
1737
- };
1738
-
1739
- var SetHelpers$4 = setHelpers;
1740
- var iterate$4 = setIterate;
1741
-
1742
- var Set$2 = SetHelpers$4.Set;
1743
- var add$3 = SetHelpers$4.add;
1744
-
1745
- var setClone = function (set) {
1746
- var result = new Set$2();
1747
- iterate$4(set, function (it) {
1748
- add$3(result, it);
1749
- });
1750
- return result;
1751
- };
1752
-
1753
- var uncurryThis = functionUncurryThis;
1754
- var aCallable$3 = aCallable$a;
1755
-
1756
- var functionUncurryThisAccessor = function (object, key, method) {
1757
- try {
1758
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1759
- return uncurryThis(aCallable$3(Object.getOwnPropertyDescriptor(object, key)[method]));
1760
- } catch (error) { /* empty */ }
1761
- };
1762
-
1763
- var uncurryThisAccessor = functionUncurryThisAccessor;
1764
- var SetHelpers$3 = setHelpers;
1765
-
1766
- var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
1767
- return set.size;
1768
- };
1769
-
1770
- var aCallable$2 = aCallable$a;
1771
- var anObject$2 = anObject$f;
1772
- var call = functionCall;
1773
- var toIntegerOrInfinity = toIntegerOrInfinity$3;
1774
- var getIteratorDirect$2 = getIteratorDirect$6;
1775
-
1776
- var INVALID_SIZE = 'Invalid size';
1777
- var $RangeError = RangeError;
1778
- var $TypeError$3 = TypeError;
1779
- var max = Math.max;
1780
-
1781
- var SetRecord = function (set, intSize) {
1782
- this.set = set;
1783
- this.size = max(intSize, 0);
1784
- this.has = aCallable$2(set.has);
1785
- this.keys = aCallable$2(set.keys);
1786
- };
1787
-
1788
- SetRecord.prototype = {
1789
- getIterator: function () {
1790
- return getIteratorDirect$2(anObject$2(call(this.keys, this.set)));
1791
- },
1792
- includes: function (it) {
1793
- return call(this.has, this.set, it);
1794
- }
1795
- };
1796
-
1797
- // `GetSetRecord` abstract operation
1798
- // https://tc39.es/proposal-set-methods/#sec-getsetrecord
1799
- var getSetRecord$7 = function (obj) {
1800
- anObject$2(obj);
1801
- var numSize = +obj.size;
1802
- // NOTE: If size is undefined, then numSize will be NaN
1803
- // eslint-disable-next-line no-self-compare -- NaN check
1804
- if (numSize !== numSize) throw new $TypeError$3(INVALID_SIZE);
1805
- var intSize = toIntegerOrInfinity(numSize);
1806
- if (intSize < 0) throw new $RangeError(INVALID_SIZE);
1807
- return new SetRecord(obj, intSize);
1808
- };
1809
-
1810
- var aSet$6 = aSet$7;
1811
- var SetHelpers$2 = setHelpers;
1812
- var clone$2 = setClone;
1813
- var size$4 = setSize;
1814
- var getSetRecord$6 = getSetRecord$7;
1815
- var iterateSet$2 = setIterate;
1816
- var iterateSimple$5 = iterateSimple$7;
1817
-
1818
- var has$4 = SetHelpers$2.has;
1819
- var remove$1 = SetHelpers$2.remove;
1820
-
1821
- // `Set.prototype.difference` method
1822
- // https://github.com/tc39/proposal-set-methods
1823
- var setDifference = function difference(other) {
1824
- var O = aSet$6(this);
1825
- var otherRec = getSetRecord$6(other);
1826
- var result = clone$2(O);
1827
- if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
1828
- if (otherRec.includes(e)) remove$1(result, e);
1829
- });
1830
- else iterateSimple$5(otherRec.getIterator(), function (e) {
1831
- if (has$4(O, e)) remove$1(result, e);
1832
- });
1833
- return result;
1834
- };
1835
-
1836
- var getBuiltIn = getBuiltIn$4;
1837
-
1838
- var createSetLike = function (size) {
1839
- return {
1840
- size: size,
1841
- has: function () {
1842
- return false;
1843
- },
1844
- keys: function () {
1845
- return {
1846
- next: function () {
1847
- return { done: true };
1848
- }
1849
- };
1850
- }
1851
- };
1852
- };
1853
-
1854
- var setMethodAcceptSetLike$7 = function (name) {
1855
- var Set = getBuiltIn('Set');
1856
- try {
1857
- new Set()[name](createSetLike(0));
1858
- try {
1859
- // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
1860
- // https://github.com/tc39/proposal-set-methods/pull/88
1861
- new Set()[name](createSetLike(-1));
1862
- return false;
1863
- } catch (error2) {
1864
- return true;
1865
- }
1866
- } catch (error) {
1867
- return false;
1868
- }
1869
- };
1870
-
1871
- var $$9 = _export;
1872
- var difference = setDifference;
1873
- var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
1874
-
1875
- // `Set.prototype.difference` method
1876
- // https://github.com/tc39/proposal-set-methods
1877
- $$9({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
1878
- difference: difference
1879
- });
1880
-
1881
- var aSet$5 = aSet$7;
1882
- var SetHelpers$1 = setHelpers;
1883
- var size$3 = setSize;
1884
- var getSetRecord$5 = getSetRecord$7;
1885
- var iterateSet$1 = setIterate;
1886
- var iterateSimple$4 = iterateSimple$7;
1887
-
1888
- var Set$1 = SetHelpers$1.Set;
1889
- var add$2 = SetHelpers$1.add;
1890
- var has$3 = SetHelpers$1.has;
1891
-
1892
- // `Set.prototype.intersection` method
1893
- // https://github.com/tc39/proposal-set-methods
1894
- var setIntersection = function intersection(other) {
1895
- var O = aSet$5(this);
1896
- var otherRec = getSetRecord$5(other);
1897
- var result = new Set$1();
1898
-
1899
- if (size$3(O) > otherRec.size) {
1900
- iterateSimple$4(otherRec.getIterator(), function (e) {
1901
- if (has$3(O, e)) add$2(result, e);
1902
- });
1903
- } else {
1904
- iterateSet$1(O, function (e) {
1905
- if (otherRec.includes(e)) add$2(result, e);
1906
- });
1907
- }
1908
-
1909
- return result;
1910
- };
1911
-
1912
- var $$8 = _export;
1913
- var fails$1 = fails$d;
1914
- var intersection = setIntersection;
1915
- var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
1916
-
1917
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$1(function () {
1918
- // eslint-disable-next-line es/no-array-from, es/no-set -- testing
1919
- return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
1920
- });
1921
-
1922
- // `Set.prototype.intersection` method
1923
- // https://github.com/tc39/proposal-set-methods
1924
- $$8({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
1925
- intersection: intersection
1926
- });
1927
-
1928
- var aSet$4 = aSet$7;
1929
- var has$2 = setHelpers.has;
1930
- var size$2 = setSize;
1931
- var getSetRecord$4 = getSetRecord$7;
1932
- var iterateSet = setIterate;
1933
- var iterateSimple$3 = iterateSimple$7;
1934
- var iteratorClose$1 = iteratorClose$5;
1935
-
1936
- // `Set.prototype.isDisjointFrom` method
1937
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
1938
- var setIsDisjointFrom = function isDisjointFrom(other) {
1939
- var O = aSet$4(this);
1940
- var otherRec = getSetRecord$4(other);
1941
- if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
1942
- if (otherRec.includes(e)) return false;
1943
- }, true) !== false;
1944
- var iterator = otherRec.getIterator();
1945
- return iterateSimple$3(iterator, function (e) {
1946
- if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
1947
- }) !== false;
1948
- };
1949
-
1950
- var $$7 = _export;
1951
- var isDisjointFrom = setIsDisjointFrom;
1952
- var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
1953
-
1954
- // `Set.prototype.isDisjointFrom` method
1955
- // https://github.com/tc39/proposal-set-methods
1956
- $$7({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
1957
- isDisjointFrom: isDisjointFrom
1958
- });
1959
-
1960
- var aSet$3 = aSet$7;
1961
- var size$1 = setSize;
1962
- var iterate$3 = setIterate;
1963
- var getSetRecord$3 = getSetRecord$7;
1964
-
1965
- // `Set.prototype.isSubsetOf` method
1966
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
1967
- var setIsSubsetOf = function isSubsetOf(other) {
1968
- var O = aSet$3(this);
1969
- var otherRec = getSetRecord$3(other);
1970
- if (size$1(O) > otherRec.size) return false;
1971
- return iterate$3(O, function (e) {
1972
- if (!otherRec.includes(e)) return false;
1973
- }, true) !== false;
1974
- };
1975
-
1976
- var $$6 = _export;
1977
- var isSubsetOf = setIsSubsetOf;
1978
- var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
1979
-
1980
- // `Set.prototype.isSubsetOf` method
1981
- // https://github.com/tc39/proposal-set-methods
1982
- $$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
1983
- isSubsetOf: isSubsetOf
1984
- });
1985
-
1986
- var aSet$2 = aSet$7;
1987
- var has$1 = setHelpers.has;
1988
- var size = setSize;
1989
- var getSetRecord$2 = getSetRecord$7;
1990
- var iterateSimple$2 = iterateSimple$7;
1991
- var iteratorClose = iteratorClose$5;
1992
-
1993
- // `Set.prototype.isSupersetOf` method
1994
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
1995
- var setIsSupersetOf = function isSupersetOf(other) {
1996
- var O = aSet$2(this);
1997
- var otherRec = getSetRecord$2(other);
1998
- if (size(O) < otherRec.size) return false;
1999
- var iterator = otherRec.getIterator();
2000
- return iterateSimple$2(iterator, function (e) {
2001
- if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
2002
- }) !== false;
2003
- };
2004
-
2005
- var $$5 = _export;
2006
- var isSupersetOf = setIsSupersetOf;
2007
- var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
2008
-
2009
- // `Set.prototype.isSupersetOf` method
2010
- // https://github.com/tc39/proposal-set-methods
2011
- $$5({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
2012
- isSupersetOf: isSupersetOf
2013
- });
2014
-
2015
- var aSet$1 = aSet$7;
2016
- var SetHelpers = setHelpers;
2017
- var clone$1 = setClone;
2018
- var getSetRecord$1 = getSetRecord$7;
2019
- var iterateSimple$1 = iterateSimple$7;
2020
-
2021
- var add$1 = SetHelpers.add;
2022
- var has = SetHelpers.has;
2023
- var remove = SetHelpers.remove;
2024
-
2025
- // `Set.prototype.symmetricDifference` method
2026
- // https://github.com/tc39/proposal-set-methods
2027
- var setSymmetricDifference = function symmetricDifference(other) {
2028
- var O = aSet$1(this);
2029
- var keysIter = getSetRecord$1(other).getIterator();
2030
- var result = clone$1(O);
2031
- iterateSimple$1(keysIter, function (e) {
2032
- if (has(O, e)) remove(result, e);
2033
- else add$1(result, e);
2034
- });
2035
- return result;
2036
- };
2037
-
2038
- var $$4 = _export;
2039
- var symmetricDifference = setSymmetricDifference;
2040
- var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
2041
-
2042
- // `Set.prototype.symmetricDifference` method
2043
- // https://github.com/tc39/proposal-set-methods
2044
- $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
2045
- symmetricDifference: symmetricDifference
2046
- });
2047
-
2048
- var aSet = aSet$7;
2049
- var add = setHelpers.add;
2050
- var clone = setClone;
2051
- var getSetRecord = getSetRecord$7;
2052
- var iterateSimple = iterateSimple$7;
2053
-
2054
- // `Set.prototype.union` method
2055
- // https://github.com/tc39/proposal-set-methods
2056
- var setUnion = function union(other) {
2057
- var O = aSet(this);
2058
- var keysIter = getSetRecord(other).getIterator();
2059
- var result = clone(O);
2060
- iterateSimple(keysIter, function (it) {
2061
- add(result, it);
2062
- });
2063
- return result;
2064
- };
2065
-
2066
- var $$3 = _export;
2067
- var union = setUnion;
2068
- var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
2069
-
2070
- // `Set.prototype.union` method
2071
- // https://github.com/tc39/proposal-set-methods
2072
- $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
2073
- union: union
2074
- });
2075
-
2076
- var classof = classofRaw$2;
2077
-
2078
- // `IsArray` abstract operation
2079
- // https://tc39.es/ecma262/#sec-isarray
2080
- // eslint-disable-next-line es/no-array-isarray -- safe
2081
- var isArray$1 = Array.isArray || function isArray(argument) {
2082
- return classof(argument) === 'Array';
2083
- };
2084
-
2085
- var DESCRIPTORS = descriptors;
2086
- var isArray = isArray$1;
2087
-
2088
- var $TypeError$2 = TypeError;
2089
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2090
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2091
-
2092
- // Safari < 13 does not throw an error in this case
2093
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
2094
- // makes no sense without proper strict mode support
2095
- if (this !== undefined) return true;
2096
- try {
2097
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2098
- Object.defineProperty([], 'length', { writable: false }).length = 1;
2099
- } catch (error) {
2100
- return error instanceof TypeError;
2101
- }
2102
- }();
2103
-
2104
- var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2105
- if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
2106
- throw new $TypeError$2('Cannot set read only .length');
2107
- } return O.length = length;
2108
- } : function (O, length) {
2109
- return O.length = length;
2110
- };
2111
-
2112
- var $TypeError$1 = TypeError;
2113
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2114
-
2115
- var doesNotExceedSafeInteger$1 = function (it) {
2116
- if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
2117
- return it;
2118
- };
2119
-
2120
- var $$2 = _export;
2121
- var toObject = toObject$3;
2122
- var lengthOfArrayLike = lengthOfArrayLike$3;
2123
- var setArrayLength = arraySetLength;
2124
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2125
- var fails = fails$d;
2126
-
2127
- var INCORRECT_TO_LENGTH = fails(function () {
2128
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
2129
- });
2130
-
2131
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
2132
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
2133
- var properErrorOnNonWritableLength = function () {
2134
- try {
2135
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2136
- Object.defineProperty([], 'length', { writable: false }).push();
2137
- } catch (error) {
2138
- return error instanceof TypeError;
2139
- }
2140
- };
2141
-
2142
- var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
2143
-
2144
- // `Array.prototype.push` method
2145
- // https://tc39.es/ecma262/#sec-array.prototype.push
2146
- $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
2147
- // eslint-disable-next-line no-unused-vars -- required for `.length`
2148
- push: function push(item) {
2149
- var O = toObject(this);
2150
- var len = lengthOfArrayLike(O);
2151
- var argCount = arguments.length;
2152
- doesNotExceedSafeInteger(len + argCount);
2153
- for (var i = 0; i < argCount; i++) {
2154
- O[len] = arguments[i];
2155
- len++;
2156
- }
2157
- setArrayLength(O, len);
2158
- return len;
2159
- }
2160
- });
2161
-
2162
- var $$1 = _export;
2163
- var iterate$2 = iterate$6;
2164
- var aCallable$1 = aCallable$a;
2165
- var anObject$1 = anObject$f;
2166
- var getIteratorDirect$1 = getIteratorDirect$6;
2167
-
2168
- var $TypeError = TypeError;
2169
-
2170
- // `Iterator.prototype.reduce` method
2171
- // https://github.com/tc39/proposal-iterator-helpers
2172
- $$1({ target: 'Iterator', proto: true, real: true }, {
2173
- reduce: function reduce(reducer /* , initialValue */) {
2174
- anObject$1(this);
2175
- aCallable$1(reducer);
2176
- var record = getIteratorDirect$1(this);
2177
- var noInitial = arguments.length < 2;
2178
- var accumulator = noInitial ? undefined : arguments[1];
2179
- var counter = 0;
2180
- iterate$2(record, function (value) {
2181
- if (noInitial) {
2182
- noInitial = false;
2183
- accumulator = value;
2184
- } else {
2185
- accumulator = reducer(accumulator, value, counter);
2186
- }
2187
- counter++;
2188
- }, { IS_RECORD: true });
2189
- if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value');
2190
- return accumulator;
2191
- }
2192
- });
2193
-
2194
17
  // MARK: Functions
2195
18
  function asIterable(values, treatStringAsIterable) {
2196
19
  let iterable;
@@ -3328,25 +1151,6 @@ function allValuesAreMaybeNot(values) {
3328
1151
  function allValuesAreNotMaybe(values) {
3329
1152
  return values.findIndex(x => x == null) === -1;
3330
1153
  }
3331
- // MARK: Compat
3332
- /**
3333
- * Filters all maybe values from the input array. If a maybe value is input, returns an empty array.
3334
- *
3335
- * @param values
3336
- * @returns
3337
- *
3338
- * @deprecated use filterMaybeArrayValues instead.
3339
- */
3340
- const filterMaybeValues = filterMaybeArrayValues;
3341
- /**
3342
- * Filters all empty and maybe values from the input array. If a maybe value is input, returns an empty array.
3343
- *
3344
- * @param values
3345
- * @returns
3346
- *
3347
- * @deprecated use filterEmptyArrayValues instead.
3348
- */
3349
- const filterEmptyValues = filterEmptyArrayValues;
3350
1154
 
3351
1155
  /**
3352
1156
  * Convenience function that is used to "build" an object of a specific type.
@@ -3777,31 +1581,6 @@ function booleanKeyArrayUtility(readKey) {
3777
1581
  * Utility for working with boolean string key arrays.
3778
1582
  */
3779
1583
  const BooleanStringKeyArrayUtility = booleanKeyArrayUtility(x => x ? x : undefined);
3780
- // MARK: Compat
3781
- /**
3782
- * @Deprecated use BooleanStringKeyArrayUtility instead
3783
- */
3784
- const BooleanStringKeyArrayUtilityInstance = BooleanStringKeyArrayUtility;
3785
-
3786
- var $ = _export;
3787
- var iterate$1 = iterate$6;
3788
- var aCallable = aCallable$a;
3789
- var anObject = anObject$f;
3790
- var getIteratorDirect = getIteratorDirect$6;
3791
-
3792
- // `Iterator.prototype.find` method
3793
- // https://github.com/tc39/proposal-iterator-helpers
3794
- $({ target: 'Iterator', proto: true, real: true }, {
3795
- find: function find(predicate) {
3796
- anObject(this);
3797
- aCallable(predicate);
3798
- var record = getIteratorDirect(this);
3799
- var counter = 0;
3800
- return iterate$1(record, function (value, stop) {
3801
- if (predicate(value, counter++)) return stop(value);
3802
- }, { IS_RECORD: true, INTERRUPTED: true }).result;
3803
- }
3804
- });
3805
1584
 
3806
1585
  /**
3807
1586
  * Set that is implemented internally using a Map, and input values have their keys read.
@@ -9456,10 +7235,10 @@ function getOverlappingRectangle(a, b) {
9456
7235
  };
9457
7236
  }
9458
7237
 
9459
- const MIN_LATITUDE_VALUE = -90.0;
7238
+ const MIN_LATITUDE_VALUE = -90;
9460
7239
  const MAX_LATITUDE_VALUE = 90.0;
9461
7240
  const TOTAL_LATITUDE_RANGE = MAX_LATITUDE_VALUE - MIN_LATITUDE_VALUE;
9462
- const MIN_LONGITUDE_VALUE = -180.0;
7241
+ const MIN_LONGITUDE_VALUE = -180;
9463
7242
  const MAX_LONGITUDE_VALUE = 180.0;
9464
7243
  const TOTAL_LONGITUDE_RANGE = MAX_LONGITUDE_VALUE - MIN_LONGITUDE_VALUE;
9465
7244
  function isLatLngPoint(input) {
@@ -11088,26 +8867,6 @@ function dateFromDateOrTimeSecondsNumber(input) {
11088
8867
  function unixDateTimeSecondsNumberToDate(dateTimeNumber) {
11089
8868
  return dateTimeNumber != null ? new Date(dateTimeNumber * 1000) : dateTimeNumber;
11090
8869
  }
11091
- /**
11092
- * @deprecated use unixDateTimeSecondsNumberFromDateOrTimeNumber instead
11093
- */
11094
- const unixTimeNumberFromDateOrTimeNumber = unixDateTimeSecondsNumberFromDateOrTimeNumber;
11095
- /**
11096
- * @deprecated use unixDateTimeSecondsNumberForNow instead
11097
- */
11098
- const unixTimeNumberForNow = unixDateTimeSecondsNumberForNow;
11099
- /**
11100
- * @deprecated use unixDateTimeSecondsNumberFromDate instead
11101
- */
11102
- const unixTimeNumberFromDate = unixDateTimeSecondsNumberFromDate;
11103
- /**
11104
- * @deprecated use dateFromDateOrTimeSecondsNumber instead
11105
- */
11106
- const dateFromDateOrTimeNumber = dateFromDateOrTimeSecondsNumber;
11107
- /**
11108
- * @deprecated use unixDateTimeSecondsNumberToDate instead
11109
- */
11110
- const unixTimeNumberToDate = unixDateTimeSecondsNumberToDate;
11111
8870
 
11112
8871
  /**
11113
8872
  * Returns expiration details for the input configuration.
@@ -11740,7 +9499,10 @@ function performTasksInParallelFunction(config) {
11740
9499
  * @param config
11741
9500
  */
11742
9501
  function performTasksFromFactoryInParallelFunction(config) {
11743
- const defaultNonConcurrentTaskKeyFactory = makeDefaultNonConcurrentTaskKeyFactory();
9502
+ /**
9503
+ * By default returns null
9504
+ */
9505
+ const defaultNonConcurrentTaskKeyFactory = () => null;
11744
9506
  const {
11745
9507
  taskFactory,
11746
9508
  sequential,
@@ -11851,7 +9613,6 @@ function performTasksFromFactoryInParallelFunction(config) {
11851
9613
  // un-reserve the key from each parallel task
11852
9614
  currentParellelTaskKeys.delete(key);
11853
9615
  const waitingForKey = waitingConcurrentTasks.get(key);
11854
- // eslint-disable-next-line no-constant-condition
11855
9616
  while (true) {
11856
9617
  const nextWaitingTask = waitingForKey.shift(); // take from the front to retain unique task order
11857
9618
  if (nextWaitingTask) {
@@ -12378,11 +10139,6 @@ function approximateTimerEndDate(timer) {
12378
10139
  return null;
12379
10140
  }
12380
10141
  }
12381
- // MARK: Compat
12382
- /**
12383
- * @deprecated use makeTimer instead of timer.
12384
- */
12385
- const timer = makeTimer;
12386
10142
 
12387
10143
  /**
12388
10144
  * Enumeration of AM/PM time indicators.
@@ -12658,16 +10414,6 @@ const mapObjectKeysToLowercase = mapObjectKeysFunction(key => {
12658
10414
  }
12659
10415
  return nextKey;
12660
10416
  });
12661
- // MARK: Compat
12662
- /**
12663
- * Converts an ObjectMap into tuples.
12664
- *
12665
- * @deprecated use Object.entries instead.
12666
- *
12667
- * @param object
12668
- * @returns
12669
- */
12670
- const objectToTuples = Object.entries;
12671
10417
 
12672
10418
  function makeCopyModelFieldFunction(key, inputConfig) {
12673
10419
  const config = inputConfig ?? {};
@@ -13569,10 +11315,6 @@ function fileExtensionForMimeType(mimeType) {
13569
11315
  const result = imageFileExtensionForMimeType(mimeType) ?? documentFileExtensionForMimeType(mimeType) ?? applicationFileExtensionForMimeType(mimeType);
13570
11316
  return result;
13571
11317
  }
13572
- /**
13573
- * @deprecated Use mimeTypeForImageFileExtension instead.
13574
- */
13575
- const mimetypeForImageType = mimeTypeForImageFileExtension;
13576
11318
 
13577
11319
  /**
13578
11320
  * Creates a CharacterPrefixSuffixInstance
@@ -14077,20 +11819,6 @@ function flattenTreeToArrayFunction(mapNodeFnOrConfig, defaultAddNodeFn) {
14077
11819
  return array;
14078
11820
  };
14079
11821
  }
14080
- /**
14081
- * Convenience function for flattening multiple trees with a single configured flatten function.
14082
- *
14083
- * @deprecated FlattenTreeFunction now supports an array of trees.
14084
- *
14085
- * @param trees
14086
- * @param flattenFn
14087
- * @returns
14088
- */
14089
- function flattenTrees(trees, flattenFn, addNodeFn) {
14090
- const array = [];
14091
- flattenFn(trees, array, addNodeFn);
14092
- return array;
14093
- }
14094
11822
 
14095
11823
  /*eslint @typescript-eslint/no-explicit-any:"off"*/
14096
11824
  // any is used with intent here, as the recursive TreeNode value requires its use to terminate.
@@ -14109,7 +11837,7 @@ function flattenTrees(trees, flattenFn, addNodeFn) {
14109
11837
  */
14110
11838
  function expandFlattenTreeFunction(expand, flatten) {
14111
11839
  return values => {
14112
- return flattenTrees(expandTrees(values, expand), flatten);
11840
+ return flatten(expandTrees(values, expand));
14113
11841
  };
14114
11842
  }
14115
11843
 
@@ -14200,20 +11928,24 @@ function randomBoolean(chance = 50) {
14200
11928
  }
14201
11929
  function stringToBoolean(value, defaultValue) {
14202
11930
  let result = defaultValue;
14203
- if (value) {
14204
- switch (value.toLowerCase()) {
14205
- case 'y':
14206
- case 'yes':
14207
- case 't':
14208
- case 'true':
14209
- result = true;
14210
- break;
14211
- case 'n':
14212
- case 'no':
14213
- case 'f':
14214
- case 'false':
14215
- result = false;
14216
- break;
11931
+ if (value != null) {
11932
+ if (typeof value === 'boolean') {
11933
+ result = value;
11934
+ } else {
11935
+ switch (value.toLowerCase()) {
11936
+ case 'y':
11937
+ case 'yes':
11938
+ case 't':
11939
+ case 'true':
11940
+ result = true;
11941
+ break;
11942
+ case 'n':
11943
+ case 'no':
11944
+ case 'f':
11945
+ case 'false':
11946
+ result = false;
11947
+ break;
11948
+ }
14217
11949
  }
14218
11950
  }
14219
11951
  return result;
@@ -14322,43 +12054,6 @@ function isFinalPage(page) {
14322
12054
  return page?.page === FINAL_PAGE;
14323
12055
  }
14324
12056
 
14325
- /**
14326
- * Page calculation context for calculating the amount to skip/etc.
14327
- *
14328
- * @deprecated
14329
- */
14330
- class PageCalculator {
14331
- constructor(config) {
14332
- this.pageSize = void 0;
14333
- this.limitKey = void 0;
14334
- this.skipKey = void 0;
14335
- this.pageSize = config.pageSize;
14336
- if (!this.pageSize) {
14337
- throw new Error('Page size is required.');
14338
- }
14339
- this.limitKey = config.limitKey ?? 'limit';
14340
- this.skipKey = config.skipKey ?? 'skip';
14341
- }
14342
- get limit() {
14343
- return this.pageSize;
14344
- }
14345
- calcWithPage(page) {
14346
- return this.calc(page?.page);
14347
- }
14348
- calc(page = 0) {
14349
- return {
14350
- [this.limitKey]: this.pageSize,
14351
- [this.skipKey]: this.calcSkip(page)
14352
- };
14353
- }
14354
- calcSkipWithPage(page) {
14355
- return this.calcSkip(page?.page);
14356
- }
14357
- calcSkip(page = 0) {
14358
- return (page ?? 0) * this.pageSize;
14359
- }
14360
- }
14361
-
14362
12057
  /**
14363
12058
  * Creates a FilteredPage.
14364
12059
  *
@@ -14473,7 +12168,6 @@ exports.AssertMin = AssertMin;
14473
12168
  exports.AssertionError = AssertionError;
14474
12169
  exports.AssertionIssueHandler = AssertionIssueHandler;
14475
12170
  exports.BooleanStringKeyArrayUtility = BooleanStringKeyArrayUtility;
14476
- exports.BooleanStringKeyArrayUtilityInstance = BooleanStringKeyArrayUtilityInstance;
14477
12171
  exports.CATCH_ALL_HANDLE_RESULT_KEY = CATCH_ALL_HANDLE_RESULT_KEY;
14478
12172
  exports.COMMA_JOINER = COMMA_JOINER;
14479
12173
  exports.CSV_MIME_TYPE = CSV_MIME_TYPE;
@@ -14561,7 +12255,6 @@ exports.PDF_MIME_TYPE = PDF_MIME_TYPE;
14561
12255
  exports.PHONE_EXTENSION_NUMBER_REGEX = PHONE_EXTENSION_NUMBER_REGEX;
14562
12256
  exports.PNG_MIME_TYPE = PNG_MIME_TYPE;
14563
12257
  exports.PRIMATIVE_KEY_DENCODER_VALUE = PRIMATIVE_KEY_DENCODER_VALUE;
14564
- exports.PageCalculator = PageCalculator;
14565
12258
  exports.PropertyDescriptorUtility = PropertyDescriptorUtility;
14566
12259
  exports.RAW_MIME_TYPE = RAW_MIME_TYPE;
14567
12260
  exports.REGEX_SPECIAL_CHARACTERS = REGEX_SPECIAL_CHARACTERS;
@@ -14732,7 +12425,6 @@ exports.cutValueToInteger = cutValueToInteger;
14732
12425
  exports.cutValueToPrecision = cutValueToPrecision;
14733
12426
  exports.cutValueToPrecisionFunction = cutValueToPrecisionFunction;
14734
12427
  exports.dateFromDateOrTimeMillisecondsNumber = dateFromDateOrTimeMillisecondsNumber;
14735
- exports.dateFromDateOrTimeNumber = dateFromDateOrTimeNumber;
14736
12428
  exports.dateFromDateOrTimeSecondsNumber = dateFromDateOrTimeSecondsNumber;
14737
12429
  exports.dateFromLogicalDate = dateFromLogicalDate;
14738
12430
  exports.dateFromMinuteOfDay = dateFromMinuteOfDay;
@@ -14787,7 +12479,6 @@ exports.fileExtensionForMimeType = fileExtensionForMimeType;
14787
12479
  exports.filterAndMapFunction = filterAndMapFunction;
14788
12480
  exports.filterEmptyArrayValues = filterEmptyArrayValues;
14789
12481
  exports.filterEmptyPojoValues = filterEmptyPojoValues;
14790
- exports.filterEmptyValues = filterEmptyValues;
14791
12482
  exports.filterFalsyAndEmptyValues = filterFalsyAndEmptyValues;
14792
12483
  exports.filterFromIterable = filterFromIterable;
14793
12484
  exports.filterFromPOJO = filterFromPOJO;
@@ -14799,7 +12490,6 @@ exports.filterKeyValueTuplesInputToFilter = filterKeyValueTuplesInputToFilter;
14799
12490
  exports.filterKeysOnPOJOFunction = filterKeysOnPOJOFunction;
14800
12491
  exports.filterMaybeArrayFunction = filterMaybeArrayFunction;
14801
12492
  exports.filterMaybeArrayValues = filterMaybeArrayValues;
14802
- exports.filterMaybeValues = filterMaybeValues;
14803
12493
  exports.filterNullAndUndefinedValues = filterNullAndUndefinedValues;
14804
12494
  exports.filterOnlyUndefinedValues = filterOnlyUndefinedValues;
14805
12495
  exports.filterTuplesOnPOJOFunction = filterTuplesOnPOJOFunction;
@@ -14849,7 +12539,6 @@ exports.flattenArrayUniqueCaseInsensitiveStrings = flattenArrayUniqueCaseInsensi
14849
12539
  exports.flattenTree = flattenTree;
14850
12540
  exports.flattenTreeToArray = flattenTreeToArray;
14851
12541
  exports.flattenTreeToArrayFunction = flattenTreeToArrayFunction;
14852
- exports.flattenTrees = flattenTrees;
14853
12542
  exports.flattenWhitespace = flattenWhitespace;
14854
12543
  exports.forEachInIterable = forEachInIterable;
14855
12544
  exports.forEachKeyValue = forEachKeyValue;
@@ -15101,7 +12790,6 @@ exports.mimeTypeForApplicationFileExtension = mimeTypeForApplicationFileExtensio
15101
12790
  exports.mimeTypeForDocumentFileExtension = mimeTypeForDocumentFileExtension;
15102
12791
  exports.mimeTypeForFileExtension = mimeTypeForFileExtension;
15103
12792
  exports.mimeTypeForImageFileExtension = mimeTypeForImageFileExtension;
15104
- exports.mimetypeForImageType = mimetypeForImageType;
15105
12793
  exports.minAndMaxFunction = minAndMaxFunction;
15106
12794
  exports.minAndMaxIndex = minAndMaxIndex;
15107
12795
  exports.minAndMaxIndexFunction = minAndMaxIndexFunction;
@@ -15141,7 +12829,6 @@ exports.objectKeyEqualityComparatorFunction = objectKeyEqualityComparatorFunctio
15141
12829
  exports.objectKeysEqualityComparatorFunction = objectKeysEqualityComparatorFunction;
15142
12830
  exports.objectMergeMatrix = objectMergeMatrix;
15143
12831
  exports.objectToMap = objectToMap;
15144
- exports.objectToTuples = objectToTuples;
15145
12832
  exports.overlapsLatLngBoundFunction = overlapsLatLngBoundFunction;
15146
12833
  exports.overrideInObject = overrideInObject;
15147
12834
  exports.overrideInObjectFunctionFactory = overrideInObjectFunctionFactory;
@@ -15347,7 +13034,6 @@ exports.telUrlStringForE164PhoneNumberPair = telUrlStringForE164PhoneNumberPair;
15347
13034
  exports.terminatingFactoryFromArray = terminatingFactoryFromArray;
15348
13035
  exports.throwKeyIsRequired = throwKeyIsRequired;
15349
13036
  exports.timePeriodCounter = timePeriodCounter;
15350
- exports.timer = timer;
15351
13037
  exports.toAbsoluteSlashPathStartType = toAbsoluteSlashPathStartType;
15352
13038
  exports.toCaseInsensitiveStringArray = toCaseInsensitiveStringArray;
15353
13039
  exports.toMinuteOfDay = toMinuteOfDay;
@@ -15378,10 +13064,6 @@ exports.unixDateTimeSecondsNumberFromDate = unixDateTimeSecondsNumberFromDate;
15378
13064
  exports.unixDateTimeSecondsNumberFromDateOrTimeNumber = unixDateTimeSecondsNumberFromDateOrTimeNumber;
15379
13065
  exports.unixDateTimeSecondsNumberToDate = unixDateTimeSecondsNumberToDate;
15380
13066
  exports.unixMillisecondsNumberToDate = unixMillisecondsNumberToDate;
15381
- exports.unixTimeNumberForNow = unixTimeNumberForNow;
15382
- exports.unixTimeNumberFromDate = unixTimeNumberFromDate;
15383
- exports.unixTimeNumberFromDateOrTimeNumber = unixTimeNumberFromDateOrTimeNumber;
15384
- exports.unixTimeNumberToDate = unixTimeNumberToDate;
15385
13067
  exports.updateMaybeValue = updateMaybeValue;
15386
13068
  exports.urlWithoutParameters = urlWithoutParameters;
15387
13069
  exports.useAsync = useAsync;