docviewhelper 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js ADDED
@@ -0,0 +1,3249 @@
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ var check = function (it) {
4
+ return it && it.Math == Math && it;
5
+ };
6
+
7
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
8
+ var global$F =
9
+ // eslint-disable-next-line es/no-global-this -- safe
10
+ check(typeof globalThis == 'object' && globalThis) ||
11
+ check(typeof window == 'object' && window) ||
12
+ // eslint-disable-next-line no-restricted-globals -- safe
13
+ check(typeof self == 'object' && self) ||
14
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
15
+ // eslint-disable-next-line no-new-func -- fallback
16
+ (function () { return this; })() || Function('return this')();
17
+
18
+ var objectGetOwnPropertyDescriptor = {};
19
+
20
+ var fails$d = function (exec) {
21
+ try {
22
+ return !!exec();
23
+ } catch (error) {
24
+ return true;
25
+ }
26
+ };
27
+
28
+ var fails$c = fails$d;
29
+
30
+ // Detect IE8's incomplete defineProperty implementation
31
+ var descriptors = !fails$c(function () {
32
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
33
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
34
+ });
35
+
36
+ var call$e = Function.prototype.call;
37
+
38
+ var functionCall = call$e.bind ? call$e.bind(call$e) : function () {
39
+ return call$e.apply(call$e, arguments);
40
+ };
41
+
42
+ var objectPropertyIsEnumerable = {};
43
+
44
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
45
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
46
+ var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
47
+
48
+ // Nashorn ~ JDK8 bug
49
+ var NASHORN_BUG = getOwnPropertyDescriptor$4 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
50
+
51
+ // `Object.prototype.propertyIsEnumerable` method implementation
52
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
53
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
54
+ var descriptor = getOwnPropertyDescriptor$4(this, V);
55
+ return !!descriptor && descriptor.enumerable;
56
+ } : $propertyIsEnumerable;
57
+
58
+ var createPropertyDescriptor$3 = function (bitmap, value) {
59
+ return {
60
+ enumerable: !(bitmap & 1),
61
+ configurable: !(bitmap & 2),
62
+ writable: !(bitmap & 4),
63
+ value: value
64
+ };
65
+ };
66
+
67
+ var FunctionPrototype$2 = Function.prototype;
68
+ var bind$6 = FunctionPrototype$2.bind;
69
+ var call$d = FunctionPrototype$2.call;
70
+ var callBind = bind$6 && bind$6.bind(call$d);
71
+
72
+ var functionUncurryThis = bind$6 ? function (fn) {
73
+ return fn && callBind(call$d, fn);
74
+ } : function (fn) {
75
+ return fn && function () {
76
+ return call$d.apply(fn, arguments);
77
+ };
78
+ };
79
+
80
+ var uncurryThis$k = functionUncurryThis;
81
+
82
+ var toString$9 = uncurryThis$k({}.toString);
83
+ var stringSlice$6 = uncurryThis$k(''.slice);
84
+
85
+ var classofRaw$1 = function (it) {
86
+ return stringSlice$6(toString$9(it), 8, -1);
87
+ };
88
+
89
+ var global$E = global$F;
90
+ var uncurryThis$j = functionUncurryThis;
91
+ var fails$b = fails$d;
92
+ var classof$7 = classofRaw$1;
93
+
94
+ var Object$4 = global$E.Object;
95
+ var split = uncurryThis$j(''.split);
96
+
97
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
98
+ var indexedObject = fails$b(function () {
99
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
100
+ // eslint-disable-next-line no-prototype-builtins -- safe
101
+ return !Object$4('z').propertyIsEnumerable(0);
102
+ }) ? function (it) {
103
+ return classof$7(it) == 'String' ? split(it, '') : Object$4(it);
104
+ } : Object$4;
105
+
106
+ var global$D = global$F;
107
+
108
+ var TypeError$f = global$D.TypeError;
109
+
110
+ // `RequireObjectCoercible` abstract operation
111
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
112
+ var requireObjectCoercible$8 = function (it) {
113
+ if (it == undefined) throw TypeError$f("Can't call method on " + it);
114
+ return it;
115
+ };
116
+
117
+ // toObject with fallback for non-array-like ES3 strings
118
+ var IndexedObject = indexedObject;
119
+ var requireObjectCoercible$7 = requireObjectCoercible$8;
120
+
121
+ var toIndexedObject$4 = function (it) {
122
+ return IndexedObject(requireObjectCoercible$7(it));
123
+ };
124
+
125
+ // `IsCallable` abstract operation
126
+ // https://tc39.es/ecma262/#sec-iscallable
127
+ var isCallable$g = function (argument) {
128
+ return typeof argument == 'function';
129
+ };
130
+
131
+ var isCallable$f = isCallable$g;
132
+
133
+ var isObject$8 = function (it) {
134
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
135
+ };
136
+
137
+ var global$C = global$F;
138
+ var isCallable$e = isCallable$g;
139
+
140
+ var aFunction = function (argument) {
141
+ return isCallable$e(argument) ? argument : undefined;
142
+ };
143
+
144
+ var getBuiltIn$7 = function (namespace, method) {
145
+ return arguments.length < 2 ? aFunction(global$C[namespace]) : global$C[namespace] && global$C[namespace][method];
146
+ };
147
+
148
+ var uncurryThis$i = functionUncurryThis;
149
+
150
+ var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
151
+
152
+ var getBuiltIn$6 = getBuiltIn$7;
153
+
154
+ var engineUserAgent = getBuiltIn$6('navigator', 'userAgent') || '';
155
+
156
+ var global$B = global$F;
157
+ var userAgent$3 = engineUserAgent;
158
+
159
+ var process$3 = global$B.process;
160
+ var Deno = global$B.Deno;
161
+ var versions = process$3 && process$3.versions || Deno && Deno.version;
162
+ var v8 = versions && versions.v8;
163
+ var match, version;
164
+
165
+ if (v8) {
166
+ match = v8.split('.');
167
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
168
+ // but their correct versions are not interesting for us
169
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
170
+ }
171
+
172
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
173
+ // so check `userAgent` even if `.v8` exists, but 0
174
+ if (!version && userAgent$3) {
175
+ match = userAgent$3.match(/Edge\/(\d+)/);
176
+ if (!match || match[1] >= 74) {
177
+ match = userAgent$3.match(/Chrome\/(\d+)/);
178
+ if (match) version = +match[1];
179
+ }
180
+ }
181
+
182
+ var engineV8Version = version;
183
+
184
+ /* eslint-disable es/no-symbol -- required for testing */
185
+
186
+ var V8_VERSION$1 = engineV8Version;
187
+ var fails$a = fails$d;
188
+
189
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
190
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$a(function () {
191
+ var symbol = Symbol();
192
+ // Chrome 38 Symbol has incorrect toString conversion
193
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
194
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
195
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
196
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
197
+ });
198
+
199
+ /* eslint-disable es/no-symbol -- required for testing */
200
+
201
+ var NATIVE_SYMBOL$1 = nativeSymbol;
202
+
203
+ var useSymbolAsUid = NATIVE_SYMBOL$1
204
+ && !Symbol.sham
205
+ && typeof Symbol.iterator == 'symbol';
206
+
207
+ var global$A = global$F;
208
+ var getBuiltIn$5 = getBuiltIn$7;
209
+ var isCallable$d = isCallable$g;
210
+ var isPrototypeOf$2 = objectIsPrototypeOf;
211
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
212
+
213
+ var Object$3 = global$A.Object;
214
+
215
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
216
+ return typeof it == 'symbol';
217
+ } : function (it) {
218
+ var $Symbol = getBuiltIn$5('Symbol');
219
+ return isCallable$d($Symbol) && isPrototypeOf$2($Symbol.prototype, Object$3(it));
220
+ };
221
+
222
+ var global$z = global$F;
223
+
224
+ var String$5 = global$z.String;
225
+
226
+ var tryToString$4 = function (argument) {
227
+ try {
228
+ return String$5(argument);
229
+ } catch (error) {
230
+ return 'Object';
231
+ }
232
+ };
233
+
234
+ var global$y = global$F;
235
+ var isCallable$c = isCallable$g;
236
+ var tryToString$3 = tryToString$4;
237
+
238
+ var TypeError$e = global$y.TypeError;
239
+
240
+ // `Assert: IsCallable(argument) is true`
241
+ var aCallable$5 = function (argument) {
242
+ if (isCallable$c(argument)) return argument;
243
+ throw TypeError$e(tryToString$3(argument) + ' is not a function');
244
+ };
245
+
246
+ var aCallable$4 = aCallable$5;
247
+
248
+ // `GetMethod` abstract operation
249
+ // https://tc39.es/ecma262/#sec-getmethod
250
+ var getMethod$6 = function (V, P) {
251
+ var func = V[P];
252
+ return func == null ? undefined : aCallable$4(func);
253
+ };
254
+
255
+ var global$x = global$F;
256
+ var call$c = functionCall;
257
+ var isCallable$b = isCallable$g;
258
+ var isObject$7 = isObject$8;
259
+
260
+ var TypeError$d = global$x.TypeError;
261
+
262
+ // `OrdinaryToPrimitive` abstract operation
263
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
264
+ var ordinaryToPrimitive$1 = function (input, pref) {
265
+ var fn, val;
266
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
267
+ if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$c(fn, input))) return val;
268
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
269
+ throw TypeError$d("Can't convert object to primitive value");
270
+ };
271
+
272
+ var shared$4 = {exports: {}};
273
+
274
+ var global$w = global$F;
275
+
276
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
277
+ var defineProperty$1 = Object.defineProperty;
278
+
279
+ var setGlobal$3 = function (key, value) {
280
+ try {
281
+ defineProperty$1(global$w, key, { value: value, configurable: true, writable: true });
282
+ } catch (error) {
283
+ global$w[key] = value;
284
+ } return value;
285
+ };
286
+
287
+ var global$v = global$F;
288
+ var setGlobal$2 = setGlobal$3;
289
+
290
+ var SHARED = '__core-js_shared__';
291
+ var store$3 = global$v[SHARED] || setGlobal$2(SHARED, {});
292
+
293
+ var sharedStore = store$3;
294
+
295
+ var store$2 = sharedStore;
296
+
297
+ (shared$4.exports = function (key, value) {
298
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
299
+ })('versions', []).push({
300
+ version: '3.20.1',
301
+ mode: 'global',
302
+ copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
303
+ });
304
+
305
+ var global$u = global$F;
306
+ var requireObjectCoercible$6 = requireObjectCoercible$8;
307
+
308
+ var Object$2 = global$u.Object;
309
+
310
+ // `ToObject` abstract operation
311
+ // https://tc39.es/ecma262/#sec-toobject
312
+ var toObject$2 = function (argument) {
313
+ return Object$2(requireObjectCoercible$6(argument));
314
+ };
315
+
316
+ var uncurryThis$h = functionUncurryThis;
317
+ var toObject$1 = toObject$2;
318
+
319
+ var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
320
+
321
+ // `HasOwnProperty` abstract operation
322
+ // https://tc39.es/ecma262/#sec-hasownproperty
323
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
324
+ return hasOwnProperty(toObject$1(it), key);
325
+ };
326
+
327
+ var uncurryThis$g = functionUncurryThis;
328
+
329
+ var id = 0;
330
+ var postfix = Math.random();
331
+ var toString$8 = uncurryThis$g(1.0.toString);
332
+
333
+ var uid$2 = function (key) {
334
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id + postfix, 36);
335
+ };
336
+
337
+ var global$t = global$F;
338
+ var shared$3 = shared$4.exports;
339
+ var hasOwn$8 = hasOwnProperty_1;
340
+ var uid$1 = uid$2;
341
+ var NATIVE_SYMBOL = nativeSymbol;
342
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
343
+
344
+ var WellKnownSymbolsStore = shared$3('wks');
345
+ var Symbol$1 = global$t.Symbol;
346
+ var symbolFor = Symbol$1 && Symbol$1['for'];
347
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
348
+
349
+ var wellKnownSymbol$e = function (name) {
350
+ if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
351
+ var description = 'Symbol.' + name;
352
+ if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
353
+ WellKnownSymbolsStore[name] = Symbol$1[name];
354
+ } else if (USE_SYMBOL_AS_UID && symbolFor) {
355
+ WellKnownSymbolsStore[name] = symbolFor(description);
356
+ } else {
357
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
358
+ }
359
+ } return WellKnownSymbolsStore[name];
360
+ };
361
+
362
+ var global$s = global$F;
363
+ var call$b = functionCall;
364
+ var isObject$6 = isObject$8;
365
+ var isSymbol$1 = isSymbol$2;
366
+ var getMethod$5 = getMethod$6;
367
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
368
+ var wellKnownSymbol$d = wellKnownSymbol$e;
369
+
370
+ var TypeError$c = global$s.TypeError;
371
+ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
372
+
373
+ // `ToPrimitive` abstract operation
374
+ // https://tc39.es/ecma262/#sec-toprimitive
375
+ var toPrimitive$1 = function (input, pref) {
376
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
377
+ var exoticToPrim = getMethod$5(input, TO_PRIMITIVE);
378
+ var result;
379
+ if (exoticToPrim) {
380
+ if (pref === undefined) pref = 'default';
381
+ result = call$b(exoticToPrim, input, pref);
382
+ if (!isObject$6(result) || isSymbol$1(result)) return result;
383
+ throw TypeError$c("Can't convert object to primitive value");
384
+ }
385
+ if (pref === undefined) pref = 'number';
386
+ return ordinaryToPrimitive(input, pref);
387
+ };
388
+
389
+ var toPrimitive = toPrimitive$1;
390
+ var isSymbol = isSymbol$2;
391
+
392
+ // `ToPropertyKey` abstract operation
393
+ // https://tc39.es/ecma262/#sec-topropertykey
394
+ var toPropertyKey$3 = function (argument) {
395
+ var key = toPrimitive(argument, 'string');
396
+ return isSymbol(key) ? key : key + '';
397
+ };
398
+
399
+ var global$r = global$F;
400
+ var isObject$5 = isObject$8;
401
+
402
+ var document$3 = global$r.document;
403
+ // typeof document.createElement is 'object' in old IE
404
+ var EXISTS$1 = isObject$5(document$3) && isObject$5(document$3.createElement);
405
+
406
+ var documentCreateElement$1 = function (it) {
407
+ return EXISTS$1 ? document$3.createElement(it) : {};
408
+ };
409
+
410
+ var DESCRIPTORS$6 = descriptors;
411
+ var fails$9 = fails$d;
412
+ var createElement$1 = documentCreateElement$1;
413
+
414
+ // Thank's IE8 for his funny defineProperty
415
+ var ie8DomDefine = !DESCRIPTORS$6 && !fails$9(function () {
416
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
417
+ return Object.defineProperty(createElement$1('div'), 'a', {
418
+ get: function () { return 7; }
419
+ }).a != 7;
420
+ });
421
+
422
+ var DESCRIPTORS$5 = descriptors;
423
+ var call$a = functionCall;
424
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
425
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
426
+ var toIndexedObject$3 = toIndexedObject$4;
427
+ var toPropertyKey$2 = toPropertyKey$3;
428
+ var hasOwn$7 = hasOwnProperty_1;
429
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
430
+
431
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
432
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
433
+
434
+ // `Object.getOwnPropertyDescriptor` method
435
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
436
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
437
+ O = toIndexedObject$3(O);
438
+ P = toPropertyKey$2(P);
439
+ if (IE8_DOM_DEFINE$1) try {
440
+ return $getOwnPropertyDescriptor(O, P);
441
+ } catch (error) { /* empty */ }
442
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule.f, O, P), O[P]);
443
+ };
444
+
445
+ var objectDefineProperty = {};
446
+
447
+ var global$q = global$F;
448
+ var isObject$4 = isObject$8;
449
+
450
+ var String$4 = global$q.String;
451
+ var TypeError$b = global$q.TypeError;
452
+
453
+ // `Assert: Type(argument) is Object`
454
+ var anObject$f = function (argument) {
455
+ if (isObject$4(argument)) return argument;
456
+ throw TypeError$b(String$4(argument) + ' is not an object');
457
+ };
458
+
459
+ var global$p = global$F;
460
+ var DESCRIPTORS$4 = descriptors;
461
+ var IE8_DOM_DEFINE = ie8DomDefine;
462
+ var anObject$e = anObject$f;
463
+ var toPropertyKey$1 = toPropertyKey$3;
464
+
465
+ var TypeError$a = global$p.TypeError;
466
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
467
+ var $defineProperty = Object.defineProperty;
468
+
469
+ // `Object.defineProperty` method
470
+ // https://tc39.es/ecma262/#sec-object.defineproperty
471
+ objectDefineProperty.f = DESCRIPTORS$4 ? $defineProperty : function defineProperty(O, P, Attributes) {
472
+ anObject$e(O);
473
+ P = toPropertyKey$1(P);
474
+ anObject$e(Attributes);
475
+ if (IE8_DOM_DEFINE) try {
476
+ return $defineProperty(O, P, Attributes);
477
+ } catch (error) { /* empty */ }
478
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$a('Accessors not supported');
479
+ if ('value' in Attributes) O[P] = Attributes.value;
480
+ return O;
481
+ };
482
+
483
+ var DESCRIPTORS$3 = descriptors;
484
+ var definePropertyModule$4 = objectDefineProperty;
485
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
486
+
487
+ var createNonEnumerableProperty$4 = DESCRIPTORS$3 ? function (object, key, value) {
488
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
489
+ } : function (object, key, value) {
490
+ object[key] = value;
491
+ return object;
492
+ };
493
+
494
+ var redefine$4 = {exports: {}};
495
+
496
+ var uncurryThis$f = functionUncurryThis;
497
+ var isCallable$a = isCallable$g;
498
+ var store$1 = sharedStore;
499
+
500
+ var functionToString = uncurryThis$f(Function.toString);
501
+
502
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
503
+ if (!isCallable$a(store$1.inspectSource)) {
504
+ store$1.inspectSource = function (it) {
505
+ return functionToString(it);
506
+ };
507
+ }
508
+
509
+ var inspectSource$4 = store$1.inspectSource;
510
+
511
+ var global$o = global$F;
512
+ var isCallable$9 = isCallable$g;
513
+ var inspectSource$3 = inspectSource$4;
514
+
515
+ var WeakMap$1 = global$o.WeakMap;
516
+
517
+ var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
518
+
519
+ var shared$2 = shared$4.exports;
520
+ var uid = uid$2;
521
+
522
+ var keys = shared$2('keys');
523
+
524
+ var sharedKey$2 = function (key) {
525
+ return keys[key] || (keys[key] = uid(key));
526
+ };
527
+
528
+ var hiddenKeys$4 = {};
529
+
530
+ var NATIVE_WEAK_MAP = nativeWeakMap;
531
+ var global$n = global$F;
532
+ var uncurryThis$e = functionUncurryThis;
533
+ var isObject$3 = isObject$8;
534
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
535
+ var hasOwn$6 = hasOwnProperty_1;
536
+ var shared$1 = sharedStore;
537
+ var sharedKey$1 = sharedKey$2;
538
+ var hiddenKeys$3 = hiddenKeys$4;
539
+
540
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
541
+ var TypeError$9 = global$n.TypeError;
542
+ var WeakMap = global$n.WeakMap;
543
+ var set$1, get, has;
544
+
545
+ var enforce = function (it) {
546
+ return has(it) ? get(it) : set$1(it, {});
547
+ };
548
+
549
+ var getterFor = function (TYPE) {
550
+ return function (it) {
551
+ var state;
552
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
553
+ throw TypeError$9('Incompatible receiver, ' + TYPE + ' required');
554
+ } return state;
555
+ };
556
+ };
557
+
558
+ if (NATIVE_WEAK_MAP || shared$1.state) {
559
+ var store = shared$1.state || (shared$1.state = new WeakMap());
560
+ var wmget = uncurryThis$e(store.get);
561
+ var wmhas = uncurryThis$e(store.has);
562
+ var wmset = uncurryThis$e(store.set);
563
+ set$1 = function (it, metadata) {
564
+ if (wmhas(store, it)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
565
+ metadata.facade = it;
566
+ wmset(store, it, metadata);
567
+ return metadata;
568
+ };
569
+ get = function (it) {
570
+ return wmget(store, it) || {};
571
+ };
572
+ has = function (it) {
573
+ return wmhas(store, it);
574
+ };
575
+ } else {
576
+ var STATE = sharedKey$1('state');
577
+ hiddenKeys$3[STATE] = true;
578
+ set$1 = function (it, metadata) {
579
+ if (hasOwn$6(it, STATE)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
580
+ metadata.facade = it;
581
+ createNonEnumerableProperty$3(it, STATE, metadata);
582
+ return metadata;
583
+ };
584
+ get = function (it) {
585
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
586
+ };
587
+ has = function (it) {
588
+ return hasOwn$6(it, STATE);
589
+ };
590
+ }
591
+
592
+ var internalState = {
593
+ set: set$1,
594
+ get: get,
595
+ has: has,
596
+ enforce: enforce,
597
+ getterFor: getterFor
598
+ };
599
+
600
+ var DESCRIPTORS$2 = descriptors;
601
+ var hasOwn$5 = hasOwnProperty_1;
602
+
603
+ var FunctionPrototype$1 = Function.prototype;
604
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
605
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
606
+
607
+ var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
608
+ // additional protection from minified / mangled / dropped function names
609
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
610
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
611
+
612
+ var functionName = {
613
+ EXISTS: EXISTS,
614
+ PROPER: PROPER,
615
+ CONFIGURABLE: CONFIGURABLE
616
+ };
617
+
618
+ var global$m = global$F;
619
+ var isCallable$8 = isCallable$g;
620
+ var hasOwn$4 = hasOwnProperty_1;
621
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
622
+ var setGlobal$1 = setGlobal$3;
623
+ var inspectSource$2 = inspectSource$4;
624
+ var InternalStateModule$1 = internalState;
625
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
626
+
627
+ var getInternalState$2 = InternalStateModule$1.get;
628
+ var enforceInternalState = InternalStateModule$1.enforce;
629
+ var TEMPLATE = String(String).split('String');
630
+
631
+ (redefine$4.exports = function (O, key, value, options) {
632
+ var unsafe = options ? !!options.unsafe : false;
633
+ var simple = options ? !!options.enumerable : false;
634
+ var noTargetGet = options ? !!options.noTargetGet : false;
635
+ var name = options && options.name !== undefined ? options.name : key;
636
+ var state;
637
+ if (isCallable$8(value)) {
638
+ if (String(name).slice(0, 7) === 'Symbol(') {
639
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
640
+ }
641
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
642
+ createNonEnumerableProperty$2(value, 'name', name);
643
+ }
644
+ state = enforceInternalState(value);
645
+ if (!state.source) {
646
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
647
+ }
648
+ }
649
+ if (O === global$m) {
650
+ if (simple) O[key] = value;
651
+ else setGlobal$1(key, value);
652
+ return;
653
+ } else if (!unsafe) {
654
+ delete O[key];
655
+ } else if (!noTargetGet && O[key]) {
656
+ simple = true;
657
+ }
658
+ if (simple) O[key] = value;
659
+ else createNonEnumerableProperty$2(O, key, value);
660
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
661
+ })(Function.prototype, 'toString', function toString() {
662
+ return isCallable$8(this) && getInternalState$2(this).source || inspectSource$2(this);
663
+ });
664
+
665
+ var objectGetOwnPropertyNames = {};
666
+
667
+ var ceil = Math.ceil;
668
+ var floor$1 = Math.floor;
669
+
670
+ // `ToIntegerOrInfinity` abstract operation
671
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
672
+ var toIntegerOrInfinity$4 = function (argument) {
673
+ var number = +argument;
674
+ // eslint-disable-next-line no-self-compare -- safe
675
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
676
+ };
677
+
678
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
679
+
680
+ var max$2 = Math.max;
681
+ var min$5 = Math.min;
682
+
683
+ // Helper for a popular repeating case of the spec:
684
+ // Let integer be ? ToInteger(index).
685
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
686
+ var toAbsoluteIndex$2 = function (index, length) {
687
+ var integer = toIntegerOrInfinity$3(index);
688
+ return integer < 0 ? max$2(integer + length, 0) : min$5(integer, length);
689
+ };
690
+
691
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
692
+
693
+ var min$4 = Math.min;
694
+
695
+ // `ToLength` abstract operation
696
+ // https://tc39.es/ecma262/#sec-tolength
697
+ var toLength$6 = function (argument) {
698
+ return argument > 0 ? min$4(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
699
+ };
700
+
701
+ var toLength$5 = toLength$6;
702
+
703
+ // `LengthOfArrayLike` abstract operation
704
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
705
+ var lengthOfArrayLike$3 = function (obj) {
706
+ return toLength$5(obj.length);
707
+ };
708
+
709
+ var toIndexedObject$2 = toIndexedObject$4;
710
+ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
711
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
712
+
713
+ // `Array.prototype.{ indexOf, includes }` methods implementation
714
+ var createMethod$1 = function (IS_INCLUDES) {
715
+ return function ($this, el, fromIndex) {
716
+ var O = toIndexedObject$2($this);
717
+ var length = lengthOfArrayLike$2(O);
718
+ var index = toAbsoluteIndex$1(fromIndex, length);
719
+ var value;
720
+ // Array#includes uses SameValueZero equality algorithm
721
+ // eslint-disable-next-line no-self-compare -- NaN check
722
+ if (IS_INCLUDES && el != el) while (length > index) {
723
+ value = O[index++];
724
+ // eslint-disable-next-line no-self-compare -- NaN check
725
+ if (value != value) return true;
726
+ // Array#indexOf ignores holes, Array#includes - not
727
+ } else for (;length > index; index++) {
728
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
729
+ } return !IS_INCLUDES && -1;
730
+ };
731
+ };
732
+
733
+ var arrayIncludes = {
734
+ // `Array.prototype.includes` method
735
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
736
+ includes: createMethod$1(true),
737
+ // `Array.prototype.indexOf` method
738
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
739
+ indexOf: createMethod$1(false)
740
+ };
741
+
742
+ var uncurryThis$d = functionUncurryThis;
743
+ var hasOwn$3 = hasOwnProperty_1;
744
+ var toIndexedObject$1 = toIndexedObject$4;
745
+ var indexOf$1 = arrayIncludes.indexOf;
746
+ var hiddenKeys$2 = hiddenKeys$4;
747
+
748
+ var push$2 = uncurryThis$d([].push);
749
+
750
+ var objectKeysInternal = function (object, names) {
751
+ var O = toIndexedObject$1(object);
752
+ var i = 0;
753
+ var result = [];
754
+ var key;
755
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$2(result, key);
756
+ // Don't enum bug & hidden keys
757
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
758
+ ~indexOf$1(result, key) || push$2(result, key);
759
+ }
760
+ return result;
761
+ };
762
+
763
+ // IE8- don't enum bug keys
764
+ var enumBugKeys$3 = [
765
+ 'constructor',
766
+ 'hasOwnProperty',
767
+ 'isPrototypeOf',
768
+ 'propertyIsEnumerable',
769
+ 'toLocaleString',
770
+ 'toString',
771
+ 'valueOf'
772
+ ];
773
+
774
+ var internalObjectKeys$1 = objectKeysInternal;
775
+ var enumBugKeys$2 = enumBugKeys$3;
776
+
777
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
778
+
779
+ // `Object.getOwnPropertyNames` method
780
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
781
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
782
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
783
+ return internalObjectKeys$1(O, hiddenKeys$1);
784
+ };
785
+
786
+ var objectGetOwnPropertySymbols = {};
787
+
788
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
789
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
790
+
791
+ var getBuiltIn$4 = getBuiltIn$7;
792
+ var uncurryThis$c = functionUncurryThis;
793
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
794
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
795
+ var anObject$d = anObject$f;
796
+
797
+ var concat$1 = uncurryThis$c([].concat);
798
+
799
+ // all object keys, includes non-enumerable and symbols
800
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
801
+ var keys = getOwnPropertyNamesModule.f(anObject$d(it));
802
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
803
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
804
+ };
805
+
806
+ var hasOwn$2 = hasOwnProperty_1;
807
+ var ownKeys = ownKeys$1;
808
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
809
+ var definePropertyModule$3 = objectDefineProperty;
810
+
811
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
812
+ var keys = ownKeys(source);
813
+ var defineProperty = definePropertyModule$3.f;
814
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
815
+ for (var i = 0; i < keys.length; i++) {
816
+ var key = keys[i];
817
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
818
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
819
+ }
820
+ }
821
+ };
822
+
823
+ var fails$8 = fails$d;
824
+ var isCallable$7 = isCallable$g;
825
+
826
+ var replacement = /#|\.prototype\./;
827
+
828
+ var isForced$2 = function (feature, detection) {
829
+ var value = data[normalize(feature)];
830
+ return value == POLYFILL ? true
831
+ : value == NATIVE ? false
832
+ : isCallable$7(detection) ? fails$8(detection)
833
+ : !!detection;
834
+ };
835
+
836
+ var normalize = isForced$2.normalize = function (string) {
837
+ return String(string).replace(replacement, '.').toLowerCase();
838
+ };
839
+
840
+ var data = isForced$2.data = {};
841
+ var NATIVE = isForced$2.NATIVE = 'N';
842
+ var POLYFILL = isForced$2.POLYFILL = 'P';
843
+
844
+ var isForced_1 = isForced$2;
845
+
846
+ var global$l = global$F;
847
+ var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
848
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
849
+ var redefine$3 = redefine$4.exports;
850
+ var setGlobal = setGlobal$3;
851
+ var copyConstructorProperties = copyConstructorProperties$1;
852
+ var isForced$1 = isForced_1;
853
+
854
+ /*
855
+ options.target - name of the target object
856
+ options.global - target is the global object
857
+ options.stat - export as static methods of target
858
+ options.proto - export as prototype methods of target
859
+ options.real - real prototype method for the `pure` version
860
+ options.forced - export even if the native feature is available
861
+ options.bind - bind methods to the target, required for the `pure` version
862
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
863
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
864
+ options.sham - add a flag to not completely full polyfills
865
+ options.enumerable - export as enumerable property
866
+ options.noTargetGet - prevent calling a getter on target
867
+ options.name - the .name of the function if it does not match the key
868
+ */
869
+ var _export = function (options, source) {
870
+ var TARGET = options.target;
871
+ var GLOBAL = options.global;
872
+ var STATIC = options.stat;
873
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
874
+ if (GLOBAL) {
875
+ target = global$l;
876
+ } else if (STATIC) {
877
+ target = global$l[TARGET] || setGlobal(TARGET, {});
878
+ } else {
879
+ target = (global$l[TARGET] || {}).prototype;
880
+ }
881
+ if (target) for (key in source) {
882
+ sourceProperty = source[key];
883
+ if (options.noTargetGet) {
884
+ descriptor = getOwnPropertyDescriptor$3(target, key);
885
+ targetProperty = descriptor && descriptor.value;
886
+ } else targetProperty = target[key];
887
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
888
+ // contained in target
889
+ if (!FORCED && targetProperty !== undefined) {
890
+ if (typeof sourceProperty == typeof targetProperty) continue;
891
+ copyConstructorProperties(sourceProperty, targetProperty);
892
+ }
893
+ // add a flag to not completely full polyfills
894
+ if (options.sham || (targetProperty && targetProperty.sham)) {
895
+ createNonEnumerableProperty$1(sourceProperty, 'sham', true);
896
+ }
897
+ // extend global
898
+ redefine$3(target, key, sourceProperty, options);
899
+ }
900
+ };
901
+
902
+ var global$k = global$F;
903
+
904
+ var nativePromiseConstructor = global$k.Promise;
905
+
906
+ var redefine$2 = redefine$4.exports;
907
+
908
+ var redefineAll$1 = function (target, src, options) {
909
+ for (var key in src) redefine$2(target, key, src[key], options);
910
+ return target;
911
+ };
912
+
913
+ var global$j = global$F;
914
+ var isCallable$6 = isCallable$g;
915
+
916
+ var String$3 = global$j.String;
917
+ var TypeError$8 = global$j.TypeError;
918
+
919
+ var aPossiblePrototype$1 = function (argument) {
920
+ if (typeof argument == 'object' || isCallable$6(argument)) return argument;
921
+ throw TypeError$8("Can't set " + String$3(argument) + ' as a prototype');
922
+ };
923
+
924
+ /* eslint-disable no-proto -- safe */
925
+
926
+ var uncurryThis$b = functionUncurryThis;
927
+ var anObject$c = anObject$f;
928
+ var aPossiblePrototype = aPossiblePrototype$1;
929
+
930
+ // `Object.setPrototypeOf` method
931
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
932
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
933
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
934
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
935
+ var CORRECT_SETTER = false;
936
+ var test = {};
937
+ var setter;
938
+ try {
939
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
940
+ setter = uncurryThis$b(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
941
+ setter(test, []);
942
+ CORRECT_SETTER = test instanceof Array;
943
+ } catch (error) { /* empty */ }
944
+ return function setPrototypeOf(O, proto) {
945
+ anObject$c(O);
946
+ aPossiblePrototype(proto);
947
+ if (CORRECT_SETTER) setter(O, proto);
948
+ else O.__proto__ = proto;
949
+ return O;
950
+ };
951
+ }() : undefined);
952
+
953
+ var defineProperty = objectDefineProperty.f;
954
+ var hasOwn$1 = hasOwnProperty_1;
955
+ var wellKnownSymbol$c = wellKnownSymbol$e;
956
+
957
+ var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
958
+
959
+ var setToStringTag$1 = function (target, TAG, STATIC) {
960
+ if (target && !STATIC) target = target.prototype;
961
+ if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
962
+ defineProperty(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
963
+ }
964
+ };
965
+
966
+ var getBuiltIn$3 = getBuiltIn$7;
967
+ var definePropertyModule$2 = objectDefineProperty;
968
+ var wellKnownSymbol$b = wellKnownSymbol$e;
969
+ var DESCRIPTORS$1 = descriptors;
970
+
971
+ var SPECIES$3 = wellKnownSymbol$b('species');
972
+
973
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
974
+ var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
975
+ var defineProperty = definePropertyModule$2.f;
976
+
977
+ if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$3]) {
978
+ defineProperty(Constructor, SPECIES$3, {
979
+ configurable: true,
980
+ get: function () { return this; }
981
+ });
982
+ }
983
+ };
984
+
985
+ var global$i = global$F;
986
+ var isPrototypeOf$1 = objectIsPrototypeOf;
987
+
988
+ var TypeError$7 = global$i.TypeError;
989
+
990
+ var anInstance$1 = function (it, Prototype) {
991
+ if (isPrototypeOf$1(Prototype, it)) return it;
992
+ throw TypeError$7('Incorrect invocation');
993
+ };
994
+
995
+ var uncurryThis$a = functionUncurryThis;
996
+ var aCallable$3 = aCallable$5;
997
+
998
+ var bind$5 = uncurryThis$a(uncurryThis$a.bind);
999
+
1000
+ // optional / simple context binding
1001
+ var functionBindContext = function (fn, that) {
1002
+ aCallable$3(fn);
1003
+ return that === undefined ? fn : bind$5 ? bind$5(fn, that) : function (/* ...args */) {
1004
+ return fn.apply(that, arguments);
1005
+ };
1006
+ };
1007
+
1008
+ var iterators = {};
1009
+
1010
+ var wellKnownSymbol$a = wellKnownSymbol$e;
1011
+ var Iterators$1 = iterators;
1012
+
1013
+ var ITERATOR$2 = wellKnownSymbol$a('iterator');
1014
+ var ArrayPrototype = Array.prototype;
1015
+
1016
+ // check on default Array iterator
1017
+ var isArrayIteratorMethod$1 = function (it) {
1018
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1019
+ };
1020
+
1021
+ var wellKnownSymbol$9 = wellKnownSymbol$e;
1022
+
1023
+ var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
1024
+ var test = {};
1025
+
1026
+ test[TO_STRING_TAG$1] = 'z';
1027
+
1028
+ var toStringTagSupport = String(test) === '[object z]';
1029
+
1030
+ var global$h = global$F;
1031
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1032
+ var isCallable$5 = isCallable$g;
1033
+ var classofRaw = classofRaw$1;
1034
+ var wellKnownSymbol$8 = wellKnownSymbol$e;
1035
+
1036
+ var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
1037
+ var Object$1 = global$h.Object;
1038
+
1039
+ // ES3 wrong here
1040
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1041
+
1042
+ // fallback for IE11 Script Access Denied error
1043
+ var tryGet = function (it, key) {
1044
+ try {
1045
+ return it[key];
1046
+ } catch (error) { /* empty */ }
1047
+ };
1048
+
1049
+ // getting tag from ES6+ `Object.prototype.toString`
1050
+ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1051
+ var O, tag, result;
1052
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1053
+ // @@toStringTag case
1054
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1055
+ // builtinTag case
1056
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1057
+ // ES3 arguments fallback
1058
+ : (result = classofRaw(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1059
+ };
1060
+
1061
+ var classof$5 = classof$6;
1062
+ var getMethod$4 = getMethod$6;
1063
+ var Iterators = iterators;
1064
+ var wellKnownSymbol$7 = wellKnownSymbol$e;
1065
+
1066
+ var ITERATOR$1 = wellKnownSymbol$7('iterator');
1067
+
1068
+ var getIteratorMethod$2 = function (it) {
1069
+ if (it != undefined) return getMethod$4(it, ITERATOR$1)
1070
+ || getMethod$4(it, '@@iterator')
1071
+ || Iterators[classof$5(it)];
1072
+ };
1073
+
1074
+ var global$g = global$F;
1075
+ var call$9 = functionCall;
1076
+ var aCallable$2 = aCallable$5;
1077
+ var anObject$b = anObject$f;
1078
+ var tryToString$2 = tryToString$4;
1079
+ var getIteratorMethod$1 = getIteratorMethod$2;
1080
+
1081
+ var TypeError$6 = global$g.TypeError;
1082
+
1083
+ var getIterator$1 = function (argument, usingIterator) {
1084
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1085
+ if (aCallable$2(iteratorMethod)) return anObject$b(call$9(iteratorMethod, argument));
1086
+ throw TypeError$6(tryToString$2(argument) + ' is not iterable');
1087
+ };
1088
+
1089
+ var call$8 = functionCall;
1090
+ var anObject$a = anObject$f;
1091
+ var getMethod$3 = getMethod$6;
1092
+
1093
+ var iteratorClose$1 = function (iterator, kind, value) {
1094
+ var innerResult, innerError;
1095
+ anObject$a(iterator);
1096
+ try {
1097
+ innerResult = getMethod$3(iterator, 'return');
1098
+ if (!innerResult) {
1099
+ if (kind === 'throw') throw value;
1100
+ return value;
1101
+ }
1102
+ innerResult = call$8(innerResult, iterator);
1103
+ } catch (error) {
1104
+ innerError = true;
1105
+ innerResult = error;
1106
+ }
1107
+ if (kind === 'throw') throw value;
1108
+ if (innerError) throw innerResult;
1109
+ anObject$a(innerResult);
1110
+ return value;
1111
+ };
1112
+
1113
+ var global$f = global$F;
1114
+ var bind$4 = functionBindContext;
1115
+ var call$7 = functionCall;
1116
+ var anObject$9 = anObject$f;
1117
+ var tryToString$1 = tryToString$4;
1118
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1119
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1120
+ var isPrototypeOf = objectIsPrototypeOf;
1121
+ var getIterator = getIterator$1;
1122
+ var getIteratorMethod = getIteratorMethod$2;
1123
+ var iteratorClose = iteratorClose$1;
1124
+
1125
+ var TypeError$5 = global$f.TypeError;
1126
+
1127
+ var Result = function (stopped, result) {
1128
+ this.stopped = stopped;
1129
+ this.result = result;
1130
+ };
1131
+
1132
+ var ResultPrototype = Result.prototype;
1133
+
1134
+ var iterate$1 = function (iterable, unboundFunction, options) {
1135
+ var that = options && options.that;
1136
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1137
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1138
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1139
+ var fn = bind$4(unboundFunction, that);
1140
+ var iterator, iterFn, index, length, result, next, step;
1141
+
1142
+ var stop = function (condition) {
1143
+ if (iterator) iteratorClose(iterator, 'normal', condition);
1144
+ return new Result(true, condition);
1145
+ };
1146
+
1147
+ var callFn = function (value) {
1148
+ if (AS_ENTRIES) {
1149
+ anObject$9(value);
1150
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1151
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1152
+ };
1153
+
1154
+ if (IS_ITERATOR) {
1155
+ iterator = iterable;
1156
+ } else {
1157
+ iterFn = getIteratorMethod(iterable);
1158
+ if (!iterFn) throw TypeError$5(tryToString$1(iterable) + ' is not iterable');
1159
+ // optimisation for array iterators
1160
+ if (isArrayIteratorMethod(iterFn)) {
1161
+ for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
1162
+ result = callFn(iterable[index]);
1163
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1164
+ } return new Result(false);
1165
+ }
1166
+ iterator = getIterator(iterable, iterFn);
1167
+ }
1168
+
1169
+ next = iterator.next;
1170
+ while (!(step = call$7(next, iterator)).done) {
1171
+ try {
1172
+ result = callFn(step.value);
1173
+ } catch (error) {
1174
+ iteratorClose(iterator, 'throw', error);
1175
+ }
1176
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1177
+ } return new Result(false);
1178
+ };
1179
+
1180
+ var wellKnownSymbol$6 = wellKnownSymbol$e;
1181
+
1182
+ var ITERATOR = wellKnownSymbol$6('iterator');
1183
+ var SAFE_CLOSING = false;
1184
+
1185
+ try {
1186
+ var called = 0;
1187
+ var iteratorWithReturn = {
1188
+ next: function () {
1189
+ return { done: !!called++ };
1190
+ },
1191
+ 'return': function () {
1192
+ SAFE_CLOSING = true;
1193
+ }
1194
+ };
1195
+ iteratorWithReturn[ITERATOR] = function () {
1196
+ return this;
1197
+ };
1198
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
1199
+ Array.from(iteratorWithReturn, function () { throw 2; });
1200
+ } catch (error) { /* empty */ }
1201
+
1202
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
1203
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
1204
+ var ITERATION_SUPPORT = false;
1205
+ try {
1206
+ var object = {};
1207
+ object[ITERATOR] = function () {
1208
+ return {
1209
+ next: function () {
1210
+ return { done: ITERATION_SUPPORT = true };
1211
+ }
1212
+ };
1213
+ };
1214
+ exec(object);
1215
+ } catch (error) { /* empty */ }
1216
+ return ITERATION_SUPPORT;
1217
+ };
1218
+
1219
+ var uncurryThis$9 = functionUncurryThis;
1220
+ var fails$7 = fails$d;
1221
+ var isCallable$4 = isCallable$g;
1222
+ var classof$4 = classof$6;
1223
+ var getBuiltIn$2 = getBuiltIn$7;
1224
+ var inspectSource$1 = inspectSource$4;
1225
+
1226
+ var noop = function () { /* empty */ };
1227
+ var empty = [];
1228
+ var construct = getBuiltIn$2('Reflect', 'construct');
1229
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1230
+ var exec$2 = uncurryThis$9(constructorRegExp.exec);
1231
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1232
+
1233
+ var isConstructorModern = function isConstructor(argument) {
1234
+ if (!isCallable$4(argument)) return false;
1235
+ try {
1236
+ construct(noop, empty, argument);
1237
+ return true;
1238
+ } catch (error) {
1239
+ return false;
1240
+ }
1241
+ };
1242
+
1243
+ var isConstructorLegacy = function isConstructor(argument) {
1244
+ if (!isCallable$4(argument)) return false;
1245
+ switch (classof$4(argument)) {
1246
+ case 'AsyncFunction':
1247
+ case 'GeneratorFunction':
1248
+ case 'AsyncGeneratorFunction': return false;
1249
+ }
1250
+ try {
1251
+ // we can't check .prototype since constructors produced by .bind haven't it
1252
+ // `Function#toString` throws on some built-it function in some legacy engines
1253
+ // (for example, `DOMQuad` and similar in FF41-)
1254
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource$1(argument));
1255
+ } catch (error) {
1256
+ return true;
1257
+ }
1258
+ };
1259
+
1260
+ isConstructorLegacy.sham = true;
1261
+
1262
+ // `IsConstructor` abstract operation
1263
+ // https://tc39.es/ecma262/#sec-isconstructor
1264
+ var isConstructor$1 = !construct || fails$7(function () {
1265
+ var called;
1266
+ return isConstructorModern(isConstructorModern.call)
1267
+ || !isConstructorModern(Object)
1268
+ || !isConstructorModern(function () { called = true; })
1269
+ || called;
1270
+ }) ? isConstructorLegacy : isConstructorModern;
1271
+
1272
+ var global$e = global$F;
1273
+ var isConstructor = isConstructor$1;
1274
+ var tryToString = tryToString$4;
1275
+
1276
+ var TypeError$4 = global$e.TypeError;
1277
+
1278
+ // `Assert: IsConstructor(argument) is true`
1279
+ var aConstructor$1 = function (argument) {
1280
+ if (isConstructor(argument)) return argument;
1281
+ throw TypeError$4(tryToString(argument) + ' is not a constructor');
1282
+ };
1283
+
1284
+ var anObject$8 = anObject$f;
1285
+ var aConstructor = aConstructor$1;
1286
+ var wellKnownSymbol$5 = wellKnownSymbol$e;
1287
+
1288
+ var SPECIES$2 = wellKnownSymbol$5('species');
1289
+
1290
+ // `SpeciesConstructor` abstract operation
1291
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1292
+ var speciesConstructor$2 = function (O, defaultConstructor) {
1293
+ var C = anObject$8(O).constructor;
1294
+ var S;
1295
+ return C === undefined || (S = anObject$8(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
1296
+ };
1297
+
1298
+ var FunctionPrototype = Function.prototype;
1299
+ var apply$3 = FunctionPrototype.apply;
1300
+ var bind$3 = FunctionPrototype.bind;
1301
+ var call$6 = FunctionPrototype.call;
1302
+
1303
+ // eslint-disable-next-line es/no-reflect -- safe
1304
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (bind$3 ? call$6.bind(apply$3) : function () {
1305
+ return call$6.apply(apply$3, arguments);
1306
+ });
1307
+
1308
+ var getBuiltIn$1 = getBuiltIn$7;
1309
+
1310
+ var html$2 = getBuiltIn$1('document', 'documentElement');
1311
+
1312
+ var uncurryThis$8 = functionUncurryThis;
1313
+
1314
+ var arraySlice$2 = uncurryThis$8([].slice);
1315
+
1316
+ var userAgent$2 = engineUserAgent;
1317
+
1318
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1319
+
1320
+ var classof$3 = classofRaw$1;
1321
+ var global$d = global$F;
1322
+
1323
+ var engineIsNode = classof$3(global$d.process) == 'process';
1324
+
1325
+ var global$c = global$F;
1326
+ var apply$2 = functionApply;
1327
+ var bind$2 = functionBindContext;
1328
+ var isCallable$3 = isCallable$g;
1329
+ var hasOwn = hasOwnProperty_1;
1330
+ var fails$6 = fails$d;
1331
+ var html$1 = html$2;
1332
+ var arraySlice$1 = arraySlice$2;
1333
+ var createElement = documentCreateElement$1;
1334
+ var IS_IOS$1 = engineIsIos;
1335
+ var IS_NODE$2 = engineIsNode;
1336
+
1337
+ var set = global$c.setImmediate;
1338
+ var clear = global$c.clearImmediate;
1339
+ var process$2 = global$c.process;
1340
+ var Dispatch = global$c.Dispatch;
1341
+ var Function$1 = global$c.Function;
1342
+ var MessageChannel = global$c.MessageChannel;
1343
+ var String$2 = global$c.String;
1344
+ var counter = 0;
1345
+ var queue$1 = {};
1346
+ var ONREADYSTATECHANGE = 'onreadystatechange';
1347
+ var location, defer, channel, port;
1348
+
1349
+ try {
1350
+ // Deno throws a ReferenceError on `location` access without `--location` flag
1351
+ location = global$c.location;
1352
+ } catch (error) { /* empty */ }
1353
+
1354
+ var run = function (id) {
1355
+ if (hasOwn(queue$1, id)) {
1356
+ var fn = queue$1[id];
1357
+ delete queue$1[id];
1358
+ fn();
1359
+ }
1360
+ };
1361
+
1362
+ var runner = function (id) {
1363
+ return function () {
1364
+ run(id);
1365
+ };
1366
+ };
1367
+
1368
+ var listener = function (event) {
1369
+ run(event.data);
1370
+ };
1371
+
1372
+ var post = function (id) {
1373
+ // old engines have not location.origin
1374
+ global$c.postMessage(String$2(id), location.protocol + '//' + location.host);
1375
+ };
1376
+
1377
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1378
+ if (!set || !clear) {
1379
+ set = function setImmediate(fn) {
1380
+ var args = arraySlice$1(arguments, 1);
1381
+ queue$1[++counter] = function () {
1382
+ apply$2(isCallable$3(fn) ? fn : Function$1(fn), undefined, args);
1383
+ };
1384
+ defer(counter);
1385
+ return counter;
1386
+ };
1387
+ clear = function clearImmediate(id) {
1388
+ delete queue$1[id];
1389
+ };
1390
+ // Node.js 0.8-
1391
+ if (IS_NODE$2) {
1392
+ defer = function (id) {
1393
+ process$2.nextTick(runner(id));
1394
+ };
1395
+ // Sphere (JS game engine) Dispatch API
1396
+ } else if (Dispatch && Dispatch.now) {
1397
+ defer = function (id) {
1398
+ Dispatch.now(runner(id));
1399
+ };
1400
+ // Browsers with MessageChannel, includes WebWorkers
1401
+ // except iOS - https://github.com/zloirock/core-js/issues/624
1402
+ } else if (MessageChannel && !IS_IOS$1) {
1403
+ channel = new MessageChannel();
1404
+ port = channel.port2;
1405
+ channel.port1.onmessage = listener;
1406
+ defer = bind$2(port.postMessage, port);
1407
+ // Browsers with postMessage, skip WebWorkers
1408
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1409
+ } else if (
1410
+ global$c.addEventListener &&
1411
+ isCallable$3(global$c.postMessage) &&
1412
+ !global$c.importScripts &&
1413
+ location && location.protocol !== 'file:' &&
1414
+ !fails$6(post)
1415
+ ) {
1416
+ defer = post;
1417
+ global$c.addEventListener('message', listener, false);
1418
+ // IE8-
1419
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
1420
+ defer = function (id) {
1421
+ html$1.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1422
+ html$1.removeChild(this);
1423
+ run(id);
1424
+ };
1425
+ };
1426
+ // Rest old browsers
1427
+ } else {
1428
+ defer = function (id) {
1429
+ setTimeout(runner(id), 0);
1430
+ };
1431
+ }
1432
+ }
1433
+
1434
+ var task$1 = {
1435
+ set: set,
1436
+ clear: clear
1437
+ };
1438
+
1439
+ var userAgent$1 = engineUserAgent;
1440
+ var global$b = global$F;
1441
+
1442
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$b.Pebble !== undefined;
1443
+
1444
+ var userAgent = engineUserAgent;
1445
+
1446
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1447
+
1448
+ var global$a = global$F;
1449
+ var bind$1 = functionBindContext;
1450
+ var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1451
+ var macrotask = task$1.set;
1452
+ var IS_IOS = engineIsIos;
1453
+ var IS_IOS_PEBBLE = engineIsIosPebble;
1454
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1455
+ var IS_NODE$1 = engineIsNode;
1456
+
1457
+ var MutationObserver = global$a.MutationObserver || global$a.WebKitMutationObserver;
1458
+ var document$2 = global$a.document;
1459
+ var process$1 = global$a.process;
1460
+ var Promise$1 = global$a.Promise;
1461
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1462
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor$2(global$a, 'queueMicrotask');
1463
+ var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1464
+
1465
+ var flush, head, last, notify$1, toggle, node, promise, then;
1466
+
1467
+ // modern engines have queueMicrotask method
1468
+ if (!queueMicrotask) {
1469
+ flush = function () {
1470
+ var parent, fn;
1471
+ if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
1472
+ while (head) {
1473
+ fn = head.fn;
1474
+ head = head.next;
1475
+ try {
1476
+ fn();
1477
+ } catch (error) {
1478
+ if (head) notify$1();
1479
+ else last = undefined;
1480
+ throw error;
1481
+ }
1482
+ } last = undefined;
1483
+ if (parent) parent.enter();
1484
+ };
1485
+
1486
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1487
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1488
+ if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1489
+ toggle = true;
1490
+ node = document$2.createTextNode('');
1491
+ new MutationObserver(flush).observe(node, { characterData: true });
1492
+ notify$1 = function () {
1493
+ node.data = toggle = !toggle;
1494
+ };
1495
+ // environments with maybe non-completely correct, but existent Promise
1496
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1497
+ // Promise.resolve without an argument throws an error in LG WebOS 2
1498
+ promise = Promise$1.resolve(undefined);
1499
+ // workaround of WebKit ~ iOS Safari 10.1 bug
1500
+ promise.constructor = Promise$1;
1501
+ then = bind$1(promise.then, promise);
1502
+ notify$1 = function () {
1503
+ then(flush);
1504
+ };
1505
+ // Node.js without promises
1506
+ } else if (IS_NODE$1) {
1507
+ notify$1 = function () {
1508
+ process$1.nextTick(flush);
1509
+ };
1510
+ // for other environments - macrotask based on:
1511
+ // - setImmediate
1512
+ // - MessageChannel
1513
+ // - window.postMessag
1514
+ // - onreadystatechange
1515
+ // - setTimeout
1516
+ } else {
1517
+ // strange IE + webpack dev server bug - use .bind(global)
1518
+ macrotask = bind$1(macrotask, global$a);
1519
+ notify$1 = function () {
1520
+ macrotask(flush);
1521
+ };
1522
+ }
1523
+ }
1524
+
1525
+ var microtask$1 = queueMicrotask || function (fn) {
1526
+ var task = { fn: fn, next: undefined };
1527
+ if (last) last.next = task;
1528
+ if (!head) {
1529
+ head = task;
1530
+ notify$1();
1531
+ } last = task;
1532
+ };
1533
+
1534
+ var newPromiseCapability$2 = {};
1535
+
1536
+ var aCallable$1 = aCallable$5;
1537
+
1538
+ var PromiseCapability = function (C) {
1539
+ var resolve, reject;
1540
+ this.promise = new C(function ($$resolve, $$reject) {
1541
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
1542
+ resolve = $$resolve;
1543
+ reject = $$reject;
1544
+ });
1545
+ this.resolve = aCallable$1(resolve);
1546
+ this.reject = aCallable$1(reject);
1547
+ };
1548
+
1549
+ // `NewPromiseCapability` abstract operation
1550
+ // https://tc39.es/ecma262/#sec-newpromisecapability
1551
+ newPromiseCapability$2.f = function (C) {
1552
+ return new PromiseCapability(C);
1553
+ };
1554
+
1555
+ var anObject$7 = anObject$f;
1556
+ var isObject$2 = isObject$8;
1557
+ var newPromiseCapability$1 = newPromiseCapability$2;
1558
+
1559
+ var promiseResolve$1 = function (C, x) {
1560
+ anObject$7(C);
1561
+ if (isObject$2(x) && x.constructor === C) return x;
1562
+ var promiseCapability = newPromiseCapability$1.f(C);
1563
+ var resolve = promiseCapability.resolve;
1564
+ resolve(x);
1565
+ return promiseCapability.promise;
1566
+ };
1567
+
1568
+ var global$9 = global$F;
1569
+
1570
+ var hostReportErrors$1 = function (a, b) {
1571
+ var console = global$9.console;
1572
+ if (console && console.error) {
1573
+ arguments.length == 1 ? console.error(a) : console.error(a, b);
1574
+ }
1575
+ };
1576
+
1577
+ var perform$1 = function (exec) {
1578
+ try {
1579
+ return { error: false, value: exec() };
1580
+ } catch (error) {
1581
+ return { error: true, value: error };
1582
+ }
1583
+ };
1584
+
1585
+ var Queue$1 = function () {
1586
+ this.head = null;
1587
+ this.tail = null;
1588
+ };
1589
+
1590
+ Queue$1.prototype = {
1591
+ add: function (item) {
1592
+ var entry = { item: item, next: null };
1593
+ if (this.head) this.tail.next = entry;
1594
+ else this.head = entry;
1595
+ this.tail = entry;
1596
+ },
1597
+ get: function () {
1598
+ var entry = this.head;
1599
+ if (entry) {
1600
+ this.head = entry.next;
1601
+ if (this.tail === entry) this.tail = null;
1602
+ return entry.item;
1603
+ }
1604
+ }
1605
+ };
1606
+
1607
+ var queue = Queue$1;
1608
+
1609
+ var engineIsBrowser = typeof window == 'object';
1610
+
1611
+ var $$3 = _export;
1612
+ var global$8 = global$F;
1613
+ var getBuiltIn = getBuiltIn$7;
1614
+ var call$5 = functionCall;
1615
+ var NativePromise = nativePromiseConstructor;
1616
+ var redefine$1 = redefine$4.exports;
1617
+ var redefineAll = redefineAll$1;
1618
+ var setPrototypeOf = objectSetPrototypeOf;
1619
+ var setToStringTag = setToStringTag$1;
1620
+ var setSpecies = setSpecies$1;
1621
+ var aCallable = aCallable$5;
1622
+ var isCallable$2 = isCallable$g;
1623
+ var isObject$1 = isObject$8;
1624
+ var anInstance = anInstance$1;
1625
+ var inspectSource = inspectSource$4;
1626
+ var iterate = iterate$1;
1627
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
1628
+ var speciesConstructor$1 = speciesConstructor$2;
1629
+ var task = task$1.set;
1630
+ var microtask = microtask$1;
1631
+ var promiseResolve = promiseResolve$1;
1632
+ var hostReportErrors = hostReportErrors$1;
1633
+ var newPromiseCapabilityModule = newPromiseCapability$2;
1634
+ var perform = perform$1;
1635
+ var Queue = queue;
1636
+ var InternalStateModule = internalState;
1637
+ var isForced = isForced_1;
1638
+ var wellKnownSymbol$4 = wellKnownSymbol$e;
1639
+ var IS_BROWSER = engineIsBrowser;
1640
+ var IS_NODE = engineIsNode;
1641
+ var V8_VERSION = engineV8Version;
1642
+
1643
+ var SPECIES$1 = wellKnownSymbol$4('species');
1644
+ var PROMISE = 'Promise';
1645
+
1646
+ var getInternalState$1 = InternalStateModule.getterFor(PROMISE);
1647
+ var setInternalState = InternalStateModule.set;
1648
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1649
+ var NativePromisePrototype = NativePromise && NativePromise.prototype;
1650
+ var PromiseConstructor = NativePromise;
1651
+ var PromisePrototype = NativePromisePrototype;
1652
+ var TypeError$3 = global$8.TypeError;
1653
+ var document$1 = global$8.document;
1654
+ var process = global$8.process;
1655
+ var newPromiseCapability = newPromiseCapabilityModule.f;
1656
+ var newGenericPromiseCapability = newPromiseCapability;
1657
+
1658
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$8.dispatchEvent);
1659
+ var NATIVE_REJECTION_EVENT = isCallable$2(global$8.PromiseRejectionEvent);
1660
+ var UNHANDLED_REJECTION = 'unhandledrejection';
1661
+ var REJECTION_HANDLED = 'rejectionhandled';
1662
+ var PENDING = 0;
1663
+ var FULFILLED = 1;
1664
+ var REJECTED = 2;
1665
+ var HANDLED = 1;
1666
+ var UNHANDLED = 2;
1667
+ var SUBCLASSING = false;
1668
+
1669
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1670
+
1671
+ var FORCED = isForced(PROMISE, function () {
1672
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
1673
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
1674
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1675
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1676
+ // We can't detect it synchronously, so just check versions
1677
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1678
+ // We can't use @@species feature detection in V8 since it causes
1679
+ // deoptimization and performance degradation
1680
+ // https://github.com/zloirock/core-js/issues/679
1681
+ if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
1682
+ // Detect correctness of subclassing with @@species support
1683
+ var promise = new PromiseConstructor(function (resolve) { resolve(1); });
1684
+ var FakePromise = function (exec) {
1685
+ exec(function () { /* empty */ }, function () { /* empty */ });
1686
+ };
1687
+ var constructor = promise.constructor = {};
1688
+ constructor[SPECIES$1] = FakePromise;
1689
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1690
+ if (!SUBCLASSING) return true;
1691
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1692
+ return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
1693
+ });
1694
+
1695
+ var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
1696
+ PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
1697
+ });
1698
+
1699
+ // helpers
1700
+ var isThenable = function (it) {
1701
+ var then;
1702
+ return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
1703
+ };
1704
+
1705
+ var callReaction = function (reaction, state) {
1706
+ var value = state.value;
1707
+ var ok = state.state == FULFILLED;
1708
+ var handler = ok ? reaction.ok : reaction.fail;
1709
+ var resolve = reaction.resolve;
1710
+ var reject = reaction.reject;
1711
+ var domain = reaction.domain;
1712
+ var result, then, exited;
1713
+ try {
1714
+ if (handler) {
1715
+ if (!ok) {
1716
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1717
+ state.rejection = HANDLED;
1718
+ }
1719
+ if (handler === true) result = value;
1720
+ else {
1721
+ if (domain) domain.enter();
1722
+ result = handler(value); // can throw
1723
+ if (domain) {
1724
+ domain.exit();
1725
+ exited = true;
1726
+ }
1727
+ }
1728
+ if (result === reaction.promise) {
1729
+ reject(TypeError$3('Promise-chain cycle'));
1730
+ } else if (then = isThenable(result)) {
1731
+ call$5(then, result, resolve, reject);
1732
+ } else resolve(result);
1733
+ } else reject(value);
1734
+ } catch (error) {
1735
+ if (domain && !exited) domain.exit();
1736
+ reject(error);
1737
+ }
1738
+ };
1739
+
1740
+ var notify = function (state, isReject) {
1741
+ if (state.notified) return;
1742
+ state.notified = true;
1743
+ microtask(function () {
1744
+ var reactions = state.reactions;
1745
+ var reaction;
1746
+ while (reaction = reactions.get()) {
1747
+ callReaction(reaction, state);
1748
+ }
1749
+ state.notified = false;
1750
+ if (isReject && !state.rejection) onUnhandled(state);
1751
+ });
1752
+ };
1753
+
1754
+ var dispatchEvent = function (name, promise, reason) {
1755
+ var event, handler;
1756
+ if (DISPATCH_EVENT) {
1757
+ event = document$1.createEvent('Event');
1758
+ event.promise = promise;
1759
+ event.reason = reason;
1760
+ event.initEvent(name, false, true);
1761
+ global$8.dispatchEvent(event);
1762
+ } else event = { promise: promise, reason: reason };
1763
+ if (!NATIVE_REJECTION_EVENT && (handler = global$8['on' + name])) handler(event);
1764
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1765
+ };
1766
+
1767
+ var onUnhandled = function (state) {
1768
+ call$5(task, global$8, function () {
1769
+ var promise = state.facade;
1770
+ var value = state.value;
1771
+ var IS_UNHANDLED = isUnhandled(state);
1772
+ var result;
1773
+ if (IS_UNHANDLED) {
1774
+ result = perform(function () {
1775
+ if (IS_NODE) {
1776
+ process.emit('unhandledRejection', value, promise);
1777
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1778
+ });
1779
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1780
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
1781
+ if (result.error) throw result.value;
1782
+ }
1783
+ });
1784
+ };
1785
+
1786
+ var isUnhandled = function (state) {
1787
+ return state.rejection !== HANDLED && !state.parent;
1788
+ };
1789
+
1790
+ var onHandleUnhandled = function (state) {
1791
+ call$5(task, global$8, function () {
1792
+ var promise = state.facade;
1793
+ if (IS_NODE) {
1794
+ process.emit('rejectionHandled', promise);
1795
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1796
+ });
1797
+ };
1798
+
1799
+ var bind = function (fn, state, unwrap) {
1800
+ return function (value) {
1801
+ fn(state, value, unwrap);
1802
+ };
1803
+ };
1804
+
1805
+ var internalReject = function (state, value, unwrap) {
1806
+ if (state.done) return;
1807
+ state.done = true;
1808
+ if (unwrap) state = unwrap;
1809
+ state.value = value;
1810
+ state.state = REJECTED;
1811
+ notify(state, true);
1812
+ };
1813
+
1814
+ var internalResolve = function (state, value, unwrap) {
1815
+ if (state.done) return;
1816
+ state.done = true;
1817
+ if (unwrap) state = unwrap;
1818
+ try {
1819
+ if (state.facade === value) throw TypeError$3("Promise can't be resolved itself");
1820
+ var then = isThenable(value);
1821
+ if (then) {
1822
+ microtask(function () {
1823
+ var wrapper = { done: false };
1824
+ try {
1825
+ call$5(then, value,
1826
+ bind(internalResolve, wrapper, state),
1827
+ bind(internalReject, wrapper, state)
1828
+ );
1829
+ } catch (error) {
1830
+ internalReject(wrapper, error, state);
1831
+ }
1832
+ });
1833
+ } else {
1834
+ state.value = value;
1835
+ state.state = FULFILLED;
1836
+ notify(state, false);
1837
+ }
1838
+ } catch (error) {
1839
+ internalReject({ done: false }, error, state);
1840
+ }
1841
+ };
1842
+
1843
+ // constructor polyfill
1844
+ if (FORCED) {
1845
+ // 25.4.3.1 Promise(executor)
1846
+ PromiseConstructor = function Promise(executor) {
1847
+ anInstance(this, PromisePrototype);
1848
+ aCallable(executor);
1849
+ call$5(Internal, this);
1850
+ var state = getInternalState$1(this);
1851
+ try {
1852
+ executor(bind(internalResolve, state), bind(internalReject, state));
1853
+ } catch (error) {
1854
+ internalReject(state, error);
1855
+ }
1856
+ };
1857
+ PromisePrototype = PromiseConstructor.prototype;
1858
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1859
+ Internal = function Promise(executor) {
1860
+ setInternalState(this, {
1861
+ type: PROMISE,
1862
+ done: false,
1863
+ notified: false,
1864
+ parent: false,
1865
+ reactions: new Queue(),
1866
+ rejection: false,
1867
+ state: PENDING,
1868
+ value: undefined
1869
+ });
1870
+ };
1871
+ Internal.prototype = redefineAll(PromisePrototype, {
1872
+ // `Promise.prototype.then` method
1873
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
1874
+ then: function then(onFulfilled, onRejected) {
1875
+ var state = getInternalPromiseState(this);
1876
+ var reaction = newPromiseCapability(speciesConstructor$1(this, PromiseConstructor));
1877
+ state.parent = true;
1878
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
1879
+ reaction.fail = isCallable$2(onRejected) && onRejected;
1880
+ reaction.domain = IS_NODE ? process.domain : undefined;
1881
+ if (state.state == PENDING) state.reactions.add(reaction);
1882
+ else microtask(function () {
1883
+ callReaction(reaction, state);
1884
+ });
1885
+ return reaction.promise;
1886
+ },
1887
+ // `Promise.prototype.catch` method
1888
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
1889
+ 'catch': function (onRejected) {
1890
+ return this.then(undefined, onRejected);
1891
+ }
1892
+ });
1893
+ OwnPromiseCapability = function () {
1894
+ var promise = new Internal();
1895
+ var state = getInternalState$1(promise);
1896
+ this.promise = promise;
1897
+ this.resolve = bind(internalResolve, state);
1898
+ this.reject = bind(internalReject, state);
1899
+ };
1900
+ newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
1901
+ return C === PromiseConstructor || C === PromiseWrapper
1902
+ ? new OwnPromiseCapability(C)
1903
+ : newGenericPromiseCapability(C);
1904
+ };
1905
+
1906
+ if (isCallable$2(NativePromise) && NativePromisePrototype !== Object.prototype) {
1907
+ nativeThen = NativePromisePrototype.then;
1908
+
1909
+ if (!SUBCLASSING) {
1910
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1911
+ redefine$1(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
1912
+ var that = this;
1913
+ return new PromiseConstructor(function (resolve, reject) {
1914
+ call$5(nativeThen, that, resolve, reject);
1915
+ }).then(onFulfilled, onRejected);
1916
+ // https://github.com/zloirock/core-js/issues/640
1917
+ }, { unsafe: true });
1918
+
1919
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
1920
+ redefine$1(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
1921
+ }
1922
+
1923
+ // make `.constructor === Promise` work for native promise-based APIs
1924
+ try {
1925
+ delete NativePromisePrototype.constructor;
1926
+ } catch (error) { /* empty */ }
1927
+
1928
+ // make `instanceof Promise` work for native promise-based APIs
1929
+ if (setPrototypeOf) {
1930
+ setPrototypeOf(NativePromisePrototype, PromisePrototype);
1931
+ }
1932
+ }
1933
+ }
1934
+
1935
+ $$3({ global: true, wrap: true, forced: FORCED }, {
1936
+ Promise: PromiseConstructor
1937
+ });
1938
+
1939
+ setToStringTag(PromiseConstructor, PROMISE, false);
1940
+ setSpecies(PROMISE);
1941
+
1942
+ PromiseWrapper = getBuiltIn(PROMISE);
1943
+
1944
+ // statics
1945
+ $$3({ target: PROMISE, stat: true, forced: FORCED }, {
1946
+ // `Promise.reject` method
1947
+ // https://tc39.es/ecma262/#sec-promise.reject
1948
+ reject: function reject(r) {
1949
+ var capability = newPromiseCapability(this);
1950
+ call$5(capability.reject, undefined, r);
1951
+ return capability.promise;
1952
+ }
1953
+ });
1954
+
1955
+ $$3({ target: PROMISE, stat: true, forced: FORCED }, {
1956
+ // `Promise.resolve` method
1957
+ // https://tc39.es/ecma262/#sec-promise.resolve
1958
+ resolve: function resolve(x) {
1959
+ return promiseResolve(this, x);
1960
+ }
1961
+ });
1962
+
1963
+ $$3({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1964
+ // `Promise.all` method
1965
+ // https://tc39.es/ecma262/#sec-promise.all
1966
+ all: function all(iterable) {
1967
+ var C = this;
1968
+ var capability = newPromiseCapability(C);
1969
+ var resolve = capability.resolve;
1970
+ var reject = capability.reject;
1971
+ var result = perform(function () {
1972
+ var $promiseResolve = aCallable(C.resolve);
1973
+ var values = [];
1974
+ var counter = 0;
1975
+ var remaining = 1;
1976
+ iterate(iterable, function (promise) {
1977
+ var index = counter++;
1978
+ var alreadyCalled = false;
1979
+ remaining++;
1980
+ call$5($promiseResolve, C, promise).then(function (value) {
1981
+ if (alreadyCalled) return;
1982
+ alreadyCalled = true;
1983
+ values[index] = value;
1984
+ --remaining || resolve(values);
1985
+ }, reject);
1986
+ });
1987
+ --remaining || resolve(values);
1988
+ });
1989
+ if (result.error) reject(result.value);
1990
+ return capability.promise;
1991
+ },
1992
+ // `Promise.race` method
1993
+ // https://tc39.es/ecma262/#sec-promise.race
1994
+ race: function race(iterable) {
1995
+ var C = this;
1996
+ var capability = newPromiseCapability(C);
1997
+ var reject = capability.reject;
1998
+ var result = perform(function () {
1999
+ var $promiseResolve = aCallable(C.resolve);
2000
+ iterate(iterable, function (promise) {
2001
+ call$5($promiseResolve, C, promise).then(capability.resolve, reject);
2002
+ });
2003
+ });
2004
+ if (result.error) reject(result.value);
2005
+ return capability.promise;
2006
+ }
2007
+ });
2008
+
2009
+ var global$7 = global$F;
2010
+ var classof$2 = classof$6;
2011
+
2012
+ var String$1 = global$7.String;
2013
+
2014
+ var toString$7 = function (argument) {
2015
+ if (classof$2(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2016
+ return String$1(argument);
2017
+ };
2018
+
2019
+ var anObject$6 = anObject$f;
2020
+
2021
+ // `RegExp.prototype.flags` getter implementation
2022
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2023
+ var regexpFlags$1 = function () {
2024
+ var that = anObject$6(this);
2025
+ var result = '';
2026
+ if (that.global) result += 'g';
2027
+ if (that.ignoreCase) result += 'i';
2028
+ if (that.multiline) result += 'm';
2029
+ if (that.dotAll) result += 's';
2030
+ if (that.unicode) result += 'u';
2031
+ if (that.sticky) result += 'y';
2032
+ return result;
2033
+ };
2034
+
2035
+ var fails$5 = fails$d;
2036
+ var global$6 = global$F;
2037
+
2038
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2039
+ var $RegExp$2 = global$6.RegExp;
2040
+
2041
+ var UNSUPPORTED_Y$2 = fails$5(function () {
2042
+ var re = $RegExp$2('a', 'y');
2043
+ re.lastIndex = 2;
2044
+ return re.exec('abcd') != null;
2045
+ });
2046
+
2047
+ // UC Browser bug
2048
+ // https://github.com/zloirock/core-js/issues/1008
2049
+ var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$5(function () {
2050
+ return !$RegExp$2('a', 'y').sticky;
2051
+ });
2052
+
2053
+ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$5(function () {
2054
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2055
+ var re = $RegExp$2('^r', 'gy');
2056
+ re.lastIndex = 2;
2057
+ return re.exec('str') != null;
2058
+ });
2059
+
2060
+ var regexpStickyHelpers = {
2061
+ BROKEN_CARET: BROKEN_CARET,
2062
+ MISSED_STICKY: MISSED_STICKY,
2063
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2
2064
+ };
2065
+
2066
+ var internalObjectKeys = objectKeysInternal;
2067
+ var enumBugKeys$1 = enumBugKeys$3;
2068
+
2069
+ // `Object.keys` method
2070
+ // https://tc39.es/ecma262/#sec-object.keys
2071
+ // eslint-disable-next-line es/no-object-keys -- safe
2072
+ var objectKeys$1 = Object.keys || function keys(O) {
2073
+ return internalObjectKeys(O, enumBugKeys$1);
2074
+ };
2075
+
2076
+ var DESCRIPTORS = descriptors;
2077
+ var definePropertyModule$1 = objectDefineProperty;
2078
+ var anObject$5 = anObject$f;
2079
+ var toIndexedObject = toIndexedObject$4;
2080
+ var objectKeys = objectKeys$1;
2081
+
2082
+ // `Object.defineProperties` method
2083
+ // https://tc39.es/ecma262/#sec-object.defineproperties
2084
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
2085
+ var objectDefineProperties = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
2086
+ anObject$5(O);
2087
+ var props = toIndexedObject(Properties);
2088
+ var keys = objectKeys(Properties);
2089
+ var length = keys.length;
2090
+ var index = 0;
2091
+ var key;
2092
+ while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
2093
+ return O;
2094
+ };
2095
+
2096
+ /* global ActiveXObject -- old IE, WSH */
2097
+
2098
+ var anObject$4 = anObject$f;
2099
+ var defineProperties = objectDefineProperties;
2100
+ var enumBugKeys = enumBugKeys$3;
2101
+ var hiddenKeys = hiddenKeys$4;
2102
+ var html = html$2;
2103
+ var documentCreateElement = documentCreateElement$1;
2104
+ var sharedKey = sharedKey$2;
2105
+
2106
+ var GT = '>';
2107
+ var LT = '<';
2108
+ var PROTOTYPE = 'prototype';
2109
+ var SCRIPT = 'script';
2110
+ var IE_PROTO = sharedKey('IE_PROTO');
2111
+
2112
+ var EmptyConstructor = function () { /* empty */ };
2113
+
2114
+ var scriptTag = function (content) {
2115
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2116
+ };
2117
+
2118
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2119
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
2120
+ activeXDocument.write(scriptTag(''));
2121
+ activeXDocument.close();
2122
+ var temp = activeXDocument.parentWindow.Object;
2123
+ activeXDocument = null; // avoid memory leak
2124
+ return temp;
2125
+ };
2126
+
2127
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
2128
+ var NullProtoObjectViaIFrame = function () {
2129
+ // Thrash, waste and sodomy: IE GC bug
2130
+ var iframe = documentCreateElement('iframe');
2131
+ var JS = 'java' + SCRIPT + ':';
2132
+ var iframeDocument;
2133
+ iframe.style.display = 'none';
2134
+ html.appendChild(iframe);
2135
+ // https://github.com/zloirock/core-js/issues/475
2136
+ iframe.src = String(JS);
2137
+ iframeDocument = iframe.contentWindow.document;
2138
+ iframeDocument.open();
2139
+ iframeDocument.write(scriptTag('document.F=Object'));
2140
+ iframeDocument.close();
2141
+ return iframeDocument.F;
2142
+ };
2143
+
2144
+ // Check for document.domain and active x support
2145
+ // No need to use active x approach when document.domain is not set
2146
+ // see https://github.com/es-shims/es5-shim/issues/150
2147
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2148
+ // avoid IE GC bug
2149
+ var activeXDocument;
2150
+ var NullProtoObject = function () {
2151
+ try {
2152
+ activeXDocument = new ActiveXObject('htmlfile');
2153
+ } catch (error) { /* ignore */ }
2154
+ NullProtoObject = typeof document != 'undefined'
2155
+ ? document.domain && activeXDocument
2156
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2157
+ : NullProtoObjectViaIFrame()
2158
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
2159
+ var length = enumBugKeys.length;
2160
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2161
+ return NullProtoObject();
2162
+ };
2163
+
2164
+ hiddenKeys[IE_PROTO] = true;
2165
+
2166
+ // `Object.create` method
2167
+ // https://tc39.es/ecma262/#sec-object.create
2168
+ var objectCreate = Object.create || function create(O, Properties) {
2169
+ var result;
2170
+ if (O !== null) {
2171
+ EmptyConstructor[PROTOTYPE] = anObject$4(O);
2172
+ result = new EmptyConstructor();
2173
+ EmptyConstructor[PROTOTYPE] = null;
2174
+ // add "__proto__" for Object.getPrototypeOf polyfill
2175
+ result[IE_PROTO] = O;
2176
+ } else result = NullProtoObject();
2177
+ return Properties === undefined ? result : defineProperties(result, Properties);
2178
+ };
2179
+
2180
+ var fails$4 = fails$d;
2181
+ var global$5 = global$F;
2182
+
2183
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2184
+ var $RegExp$1 = global$5.RegExp;
2185
+
2186
+ var regexpUnsupportedDotAll = fails$4(function () {
2187
+ var re = $RegExp$1('.', 's');
2188
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
2189
+ });
2190
+
2191
+ var fails$3 = fails$d;
2192
+ var global$4 = global$F;
2193
+
2194
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2195
+ var $RegExp = global$4.RegExp;
2196
+
2197
+ var regexpUnsupportedNcg = fails$3(function () {
2198
+ var re = $RegExp('(?<a>b)', 'g');
2199
+ return re.exec('b').groups.a !== 'b' ||
2200
+ 'b'.replace(re, '$<a>c') !== 'bc';
2201
+ });
2202
+
2203
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2204
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
2205
+ var call$4 = functionCall;
2206
+ var uncurryThis$7 = functionUncurryThis;
2207
+ var toString$6 = toString$7;
2208
+ var regexpFlags = regexpFlags$1;
2209
+ var stickyHelpers$1 = regexpStickyHelpers;
2210
+ var shared = shared$4.exports;
2211
+ var create = objectCreate;
2212
+ var getInternalState = internalState.get;
2213
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
2214
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2215
+
2216
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
2217
+ var nativeExec = RegExp.prototype.exec;
2218
+ var patchedExec = nativeExec;
2219
+ var charAt$3 = uncurryThis$7(''.charAt);
2220
+ var indexOf = uncurryThis$7(''.indexOf);
2221
+ var replace$1 = uncurryThis$7(''.replace);
2222
+ var stringSlice$5 = uncurryThis$7(''.slice);
2223
+
2224
+ var UPDATES_LAST_INDEX_WRONG = (function () {
2225
+ var re1 = /a/;
2226
+ var re2 = /b*/g;
2227
+ call$4(nativeExec, re1, 'a');
2228
+ call$4(nativeExec, re2, 'a');
2229
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2230
+ })();
2231
+
2232
+ var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
2233
+
2234
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
2235
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2236
+
2237
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2238
+
2239
+ if (PATCH) {
2240
+ patchedExec = function exec(string) {
2241
+ var re = this;
2242
+ var state = getInternalState(re);
2243
+ var str = toString$6(string);
2244
+ var raw = state.raw;
2245
+ var result, reCopy, lastIndex, match, i, object, group;
2246
+
2247
+ if (raw) {
2248
+ raw.lastIndex = re.lastIndex;
2249
+ result = call$4(patchedExec, raw, str);
2250
+ re.lastIndex = raw.lastIndex;
2251
+ return result;
2252
+ }
2253
+
2254
+ var groups = state.groups;
2255
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
2256
+ var flags = call$4(regexpFlags, re);
2257
+ var source = re.source;
2258
+ var charsAdded = 0;
2259
+ var strCopy = str;
2260
+
2261
+ if (sticky) {
2262
+ flags = replace$1(flags, 'y', '');
2263
+ if (indexOf(flags, 'g') === -1) {
2264
+ flags += 'g';
2265
+ }
2266
+
2267
+ strCopy = stringSlice$5(str, re.lastIndex);
2268
+ // Support anchored sticky behavior.
2269
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2270
+ source = '(?: ' + source + ')';
2271
+ strCopy = ' ' + strCopy;
2272
+ charsAdded++;
2273
+ }
2274
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
2275
+ // simulate the 'y' flag.
2276
+ reCopy = new RegExp('^(?:' + source + ')', flags);
2277
+ }
2278
+
2279
+ if (NPCG_INCLUDED) {
2280
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2281
+ }
2282
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2283
+
2284
+ match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
2285
+
2286
+ if (sticky) {
2287
+ if (match) {
2288
+ match.input = stringSlice$5(match.input, charsAdded);
2289
+ match[0] = stringSlice$5(match[0], charsAdded);
2290
+ match.index = re.lastIndex;
2291
+ re.lastIndex += match[0].length;
2292
+ } else re.lastIndex = 0;
2293
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
2294
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2295
+ }
2296
+ if (NPCG_INCLUDED && match && match.length > 1) {
2297
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
2298
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
2299
+ call$4(nativeReplace, match[0], reCopy, function () {
2300
+ for (i = 1; i < arguments.length - 2; i++) {
2301
+ if (arguments[i] === undefined) match[i] = undefined;
2302
+ }
2303
+ });
2304
+ }
2305
+
2306
+ if (match && groups) {
2307
+ match.groups = object = create(null);
2308
+ for (i = 0; i < groups.length; i++) {
2309
+ group = groups[i];
2310
+ object[group[0]] = match[group[1]];
2311
+ }
2312
+ }
2313
+
2314
+ return match;
2315
+ };
2316
+ }
2317
+
2318
+ var regexpExec$3 = patchedExec;
2319
+
2320
+ var $$2 = _export;
2321
+ var exec$1 = regexpExec$3;
2322
+
2323
+ // `RegExp.prototype.exec` method
2324
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2325
+ $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
2326
+ exec: exec$1
2327
+ });
2328
+
2329
+ // TODO: Remove from `core-js@4` since it's moved to entry points
2330
+
2331
+ var uncurryThis$6 = functionUncurryThis;
2332
+ var redefine = redefine$4.exports;
2333
+ var regexpExec$2 = regexpExec$3;
2334
+ var fails$2 = fails$d;
2335
+ var wellKnownSymbol$3 = wellKnownSymbol$e;
2336
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
2337
+
2338
+ var SPECIES = wellKnownSymbol$3('species');
2339
+ var RegExpPrototype = RegExp.prototype;
2340
+
2341
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2342
+ var SYMBOL = wellKnownSymbol$3(KEY);
2343
+
2344
+ var DELEGATES_TO_SYMBOL = !fails$2(function () {
2345
+ // String methods call symbol-named RegEp methods
2346
+ var O = {};
2347
+ O[SYMBOL] = function () { return 7; };
2348
+ return ''[KEY](O) != 7;
2349
+ });
2350
+
2351
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
2352
+ // Symbol-named RegExp methods call .exec
2353
+ var execCalled = false;
2354
+ var re = /a/;
2355
+
2356
+ if (KEY === 'split') {
2357
+ // We can't use real regex here since it causes deoptimization
2358
+ // and serious performance degradation in V8
2359
+ // https://github.com/zloirock/core-js/issues/306
2360
+ re = {};
2361
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
2362
+ // a new one. We need to return the patched regex when creating the new one.
2363
+ re.constructor = {};
2364
+ re.constructor[SPECIES] = function () { return re; };
2365
+ re.flags = '';
2366
+ re[SYMBOL] = /./[SYMBOL];
2367
+ }
2368
+
2369
+ re.exec = function () { execCalled = true; return null; };
2370
+
2371
+ re[SYMBOL]('');
2372
+ return !execCalled;
2373
+ });
2374
+
2375
+ if (
2376
+ !DELEGATES_TO_SYMBOL ||
2377
+ !DELEGATES_TO_EXEC ||
2378
+ FORCED
2379
+ ) {
2380
+ var uncurriedNativeRegExpMethod = uncurryThis$6(/./[SYMBOL]);
2381
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2382
+ var uncurriedNativeMethod = uncurryThis$6(nativeMethod);
2383
+ var $exec = regexp.exec;
2384
+ if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
2385
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2386
+ // The native String method already delegates to @@method (this
2387
+ // polyfilled function), leasing to infinite recursion.
2388
+ // We avoid it by directly calling the native @@method method.
2389
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
2390
+ }
2391
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
2392
+ }
2393
+ return { done: false };
2394
+ });
2395
+
2396
+ redefine(String.prototype, KEY, methods[0]);
2397
+ redefine(RegExpPrototype, SYMBOL, methods[1]);
2398
+ }
2399
+
2400
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2401
+ };
2402
+
2403
+ var isObject = isObject$8;
2404
+ var classof$1 = classofRaw$1;
2405
+ var wellKnownSymbol$2 = wellKnownSymbol$e;
2406
+
2407
+ var MATCH$1 = wellKnownSymbol$2('match');
2408
+
2409
+ // `IsRegExp` abstract operation
2410
+ // https://tc39.es/ecma262/#sec-isregexp
2411
+ var isRegexp = function (it) {
2412
+ var isRegExp;
2413
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
2414
+ };
2415
+
2416
+ var uncurryThis$5 = functionUncurryThis;
2417
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2418
+ var toString$5 = toString$7;
2419
+ var requireObjectCoercible$5 = requireObjectCoercible$8;
2420
+
2421
+ var charAt$2 = uncurryThis$5(''.charAt);
2422
+ var charCodeAt = uncurryThis$5(''.charCodeAt);
2423
+ var stringSlice$4 = uncurryThis$5(''.slice);
2424
+
2425
+ var createMethod = function (CONVERT_TO_STRING) {
2426
+ return function ($this, pos) {
2427
+ var S = toString$5(requireObjectCoercible$5($this));
2428
+ var position = toIntegerOrInfinity$1(pos);
2429
+ var size = S.length;
2430
+ var first, second;
2431
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2432
+ first = charCodeAt(S, position);
2433
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
2434
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2435
+ ? CONVERT_TO_STRING
2436
+ ? charAt$2(S, position)
2437
+ : first
2438
+ : CONVERT_TO_STRING
2439
+ ? stringSlice$4(S, position, position + 2)
2440
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2441
+ };
2442
+ };
2443
+
2444
+ var stringMultibyte = {
2445
+ // `String.prototype.codePointAt` method
2446
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2447
+ codeAt: createMethod(false),
2448
+ // `String.prototype.at` method
2449
+ // https://github.com/mathiasbynens/String.prototype.at
2450
+ charAt: createMethod(true)
2451
+ };
2452
+
2453
+ var charAt$1 = stringMultibyte.charAt;
2454
+
2455
+ // `AdvanceStringIndex` abstract operation
2456
+ // https://tc39.es/ecma262/#sec-advancestringindex
2457
+ var advanceStringIndex$3 = function (S, index, unicode) {
2458
+ return index + (unicode ? charAt$1(S, index).length : 1);
2459
+ };
2460
+
2461
+ var toPropertyKey = toPropertyKey$3;
2462
+ var definePropertyModule = objectDefineProperty;
2463
+ var createPropertyDescriptor = createPropertyDescriptor$3;
2464
+
2465
+ var createProperty$1 = function (object, key, value) {
2466
+ var propertyKey = toPropertyKey(key);
2467
+ if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
2468
+ else object[propertyKey] = value;
2469
+ };
2470
+
2471
+ var global$3 = global$F;
2472
+ var toAbsoluteIndex = toAbsoluteIndex$2;
2473
+ var lengthOfArrayLike = lengthOfArrayLike$3;
2474
+ var createProperty = createProperty$1;
2475
+
2476
+ var Array$1 = global$3.Array;
2477
+ var max$1 = Math.max;
2478
+
2479
+ var arraySliceSimple = function (O, start, end) {
2480
+ var length = lengthOfArrayLike(O);
2481
+ var k = toAbsoluteIndex(start, length);
2482
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
2483
+ var result = Array$1(max$1(fin - k, 0));
2484
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
2485
+ result.length = n;
2486
+ return result;
2487
+ };
2488
+
2489
+ var global$2 = global$F;
2490
+ var call$3 = functionCall;
2491
+ var anObject$3 = anObject$f;
2492
+ var isCallable$1 = isCallable$g;
2493
+ var classof = classofRaw$1;
2494
+ var regexpExec$1 = regexpExec$3;
2495
+
2496
+ var TypeError$2 = global$2.TypeError;
2497
+
2498
+ // `RegExpExec` abstract operation
2499
+ // https://tc39.es/ecma262/#sec-regexpexec
2500
+ var regexpExecAbstract = function (R, S) {
2501
+ var exec = R.exec;
2502
+ if (isCallable$1(exec)) {
2503
+ var result = call$3(exec, R, S);
2504
+ if (result !== null) anObject$3(result);
2505
+ return result;
2506
+ }
2507
+ if (classof(R) === 'RegExp') return call$3(regexpExec$1, R, S);
2508
+ throw TypeError$2('RegExp#exec called on incompatible receiver');
2509
+ };
2510
+
2511
+ var apply$1 = functionApply;
2512
+ var call$2 = functionCall;
2513
+ var uncurryThis$4 = functionUncurryThis;
2514
+ var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
2515
+ var isRegExp$1 = isRegexp;
2516
+ var anObject$2 = anObject$f;
2517
+ var requireObjectCoercible$4 = requireObjectCoercible$8;
2518
+ var speciesConstructor = speciesConstructor$2;
2519
+ var advanceStringIndex$2 = advanceStringIndex$3;
2520
+ var toLength$4 = toLength$6;
2521
+ var toString$4 = toString$7;
2522
+ var getMethod$2 = getMethod$6;
2523
+ var arraySlice = arraySliceSimple;
2524
+ var callRegExpExec = regexpExecAbstract;
2525
+ var regexpExec = regexpExec$3;
2526
+ var stickyHelpers = regexpStickyHelpers;
2527
+ var fails$1 = fails$d;
2528
+
2529
+ var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
2530
+ var MAX_UINT32 = 0xFFFFFFFF;
2531
+ var min$3 = Math.min;
2532
+ var $push = [].push;
2533
+ var exec = uncurryThis$4(/./.exec);
2534
+ var push$1 = uncurryThis$4($push);
2535
+ var stringSlice$3 = uncurryThis$4(''.slice);
2536
+
2537
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
2538
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
2539
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$1(function () {
2540
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
2541
+ var re = /(?:)/;
2542
+ var originalExec = re.exec;
2543
+ re.exec = function () { return originalExec.apply(this, arguments); };
2544
+ var result = 'ab'.split(re);
2545
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
2546
+ });
2547
+
2548
+ // @@split logic
2549
+ fixRegExpWellKnownSymbolLogic$2('split', function (SPLIT, nativeSplit, maybeCallNative) {
2550
+ var internalSplit;
2551
+ if (
2552
+ 'abbc'.split(/(b)*/)[1] == 'c' ||
2553
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
2554
+ 'test'.split(/(?:)/, -1).length != 4 ||
2555
+ 'ab'.split(/(?:ab)*/).length != 2 ||
2556
+ '.'.split(/(.?)(.?)/).length != 4 ||
2557
+ // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
2558
+ '.'.split(/()()/).length > 1 ||
2559
+ ''.split(/.?/).length
2560
+ ) {
2561
+ // based on es5-shim implementation, need to rework it
2562
+ internalSplit = function (separator, limit) {
2563
+ var string = toString$4(requireObjectCoercible$4(this));
2564
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2565
+ if (lim === 0) return [];
2566
+ if (separator === undefined) return [string];
2567
+ // If `separator` is not a regex, use native split
2568
+ if (!isRegExp$1(separator)) {
2569
+ return call$2(nativeSplit, string, separator, lim);
2570
+ }
2571
+ var output = [];
2572
+ var flags = (separator.ignoreCase ? 'i' : '') +
2573
+ (separator.multiline ? 'm' : '') +
2574
+ (separator.unicode ? 'u' : '') +
2575
+ (separator.sticky ? 'y' : '');
2576
+ var lastLastIndex = 0;
2577
+ // Make `global` and avoid `lastIndex` issues by working with a copy
2578
+ var separatorCopy = new RegExp(separator.source, flags + 'g');
2579
+ var match, lastIndex, lastLength;
2580
+ while (match = call$2(regexpExec, separatorCopy, string)) {
2581
+ lastIndex = separatorCopy.lastIndex;
2582
+ if (lastIndex > lastLastIndex) {
2583
+ push$1(output, stringSlice$3(string, lastLastIndex, match.index));
2584
+ if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice(match, 1));
2585
+ lastLength = match[0].length;
2586
+ lastLastIndex = lastIndex;
2587
+ if (output.length >= lim) break;
2588
+ }
2589
+ if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
2590
+ }
2591
+ if (lastLastIndex === string.length) {
2592
+ if (lastLength || !exec(separatorCopy, '')) push$1(output, '');
2593
+ } else push$1(output, stringSlice$3(string, lastLastIndex));
2594
+ return output.length > lim ? arraySlice(output, 0, lim) : output;
2595
+ };
2596
+ // Chakra, V8
2597
+ } else if ('0'.split(undefined, 0).length) {
2598
+ internalSplit = function (separator, limit) {
2599
+ return separator === undefined && limit === 0 ? [] : call$2(nativeSplit, this, separator, limit);
2600
+ };
2601
+ } else internalSplit = nativeSplit;
2602
+
2603
+ return [
2604
+ // `String.prototype.split` method
2605
+ // https://tc39.es/ecma262/#sec-string.prototype.split
2606
+ function split(separator, limit) {
2607
+ var O = requireObjectCoercible$4(this);
2608
+ var splitter = separator == undefined ? undefined : getMethod$2(separator, SPLIT);
2609
+ return splitter
2610
+ ? call$2(splitter, separator, O, limit)
2611
+ : call$2(internalSplit, toString$4(O), separator, limit);
2612
+ },
2613
+ // `RegExp.prototype[@@split]` method
2614
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
2615
+ //
2616
+ // NOTE: This cannot be properly polyfilled in engines that don't support
2617
+ // the 'y' flag.
2618
+ function (string, limit) {
2619
+ var rx = anObject$2(this);
2620
+ var S = toString$4(string);
2621
+ var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
2622
+
2623
+ if (res.done) return res.value;
2624
+
2625
+ var C = speciesConstructor(rx, RegExp);
2626
+
2627
+ var unicodeMatching = rx.unicode;
2628
+ var flags = (rx.ignoreCase ? 'i' : '') +
2629
+ (rx.multiline ? 'm' : '') +
2630
+ (rx.unicode ? 'u' : '') +
2631
+ (UNSUPPORTED_Y ? 'g' : 'y');
2632
+
2633
+ // ^(? + rx + ) is needed, in combination with some S slicing, to
2634
+ // simulate the 'y' flag.
2635
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
2636
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2637
+ if (lim === 0) return [];
2638
+ if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
2639
+ var p = 0;
2640
+ var q = 0;
2641
+ var A = [];
2642
+ while (q < S.length) {
2643
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
2644
+ var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$3(S, q) : S);
2645
+ var e;
2646
+ if (
2647
+ z === null ||
2648
+ (e = min$3(toLength$4(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
2649
+ ) {
2650
+ q = advanceStringIndex$2(S, q, unicodeMatching);
2651
+ } else {
2652
+ push$1(A, stringSlice$3(S, p, q));
2653
+ if (A.length === lim) return A;
2654
+ for (var i = 1; i <= z.length - 1; i++) {
2655
+ push$1(A, z[i]);
2656
+ if (A.length === lim) return A;
2657
+ }
2658
+ q = p = e;
2659
+ }
2660
+ }
2661
+ push$1(A, stringSlice$3(S, p));
2662
+ return A;
2663
+ }
2664
+ ];
2665
+ }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
2666
+
2667
+ var call$1 = functionCall;
2668
+ var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2669
+ var anObject$1 = anObject$f;
2670
+ var toLength$3 = toLength$6;
2671
+ var toString$3 = toString$7;
2672
+ var requireObjectCoercible$3 = requireObjectCoercible$8;
2673
+ var getMethod$1 = getMethod$6;
2674
+ var advanceStringIndex$1 = advanceStringIndex$3;
2675
+ var regExpExec$1 = regexpExecAbstract;
2676
+
2677
+ // @@match logic
2678
+ fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
2679
+ return [
2680
+ // `String.prototype.match` method
2681
+ // https://tc39.es/ecma262/#sec-string.prototype.match
2682
+ function match(regexp) {
2683
+ var O = requireObjectCoercible$3(this);
2684
+ var matcher = regexp == undefined ? undefined : getMethod$1(regexp, MATCH);
2685
+ return matcher ? call$1(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$3(O));
2686
+ },
2687
+ // `RegExp.prototype[@@match]` method
2688
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
2689
+ function (string) {
2690
+ var rx = anObject$1(this);
2691
+ var S = toString$3(string);
2692
+ var res = maybeCallNative(nativeMatch, rx, S);
2693
+
2694
+ if (res.done) return res.value;
2695
+
2696
+ if (!rx.global) return regExpExec$1(rx, S);
2697
+
2698
+ var fullUnicode = rx.unicode;
2699
+ rx.lastIndex = 0;
2700
+ var A = [];
2701
+ var n = 0;
2702
+ var result;
2703
+ while ((result = regExpExec$1(rx, S)) !== null) {
2704
+ var matchStr = toString$3(result[0]);
2705
+ A[n] = matchStr;
2706
+ if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$3(rx.lastIndex), fullUnicode);
2707
+ n++;
2708
+ }
2709
+ return n === 0 ? null : A;
2710
+ }
2711
+ ];
2712
+ });
2713
+
2714
+ var uncurryThis$3 = functionUncurryThis;
2715
+ var toObject = toObject$2;
2716
+
2717
+ var floor = Math.floor;
2718
+ var charAt = uncurryThis$3(''.charAt);
2719
+ var replace = uncurryThis$3(''.replace);
2720
+ var stringSlice$2 = uncurryThis$3(''.slice);
2721
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2722
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2723
+
2724
+ // `GetSubstitution` abstract operation
2725
+ // https://tc39.es/ecma262/#sec-getsubstitution
2726
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2727
+ var tailPos = position + matched.length;
2728
+ var m = captures.length;
2729
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2730
+ if (namedCaptures !== undefined) {
2731
+ namedCaptures = toObject(namedCaptures);
2732
+ symbols = SUBSTITUTION_SYMBOLS;
2733
+ }
2734
+ return replace(replacement, symbols, function (match, ch) {
2735
+ var capture;
2736
+ switch (charAt(ch, 0)) {
2737
+ case '$': return '$';
2738
+ case '&': return matched;
2739
+ case '`': return stringSlice$2(str, 0, position);
2740
+ case "'": return stringSlice$2(str, tailPos);
2741
+ case '<':
2742
+ capture = namedCaptures[stringSlice$2(ch, 1, -1)];
2743
+ break;
2744
+ default: // \d\d?
2745
+ var n = +ch;
2746
+ if (n === 0) return match;
2747
+ if (n > m) {
2748
+ var f = floor(n / 10);
2749
+ if (f === 0) return match;
2750
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2751
+ return match;
2752
+ }
2753
+ capture = captures[n - 1];
2754
+ }
2755
+ return capture === undefined ? '' : capture;
2756
+ });
2757
+ };
2758
+
2759
+ var apply = functionApply;
2760
+ var call = functionCall;
2761
+ var uncurryThis$2 = functionUncurryThis;
2762
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2763
+ var fails = fails$d;
2764
+ var anObject = anObject$f;
2765
+ var isCallable = isCallable$g;
2766
+ var toIntegerOrInfinity = toIntegerOrInfinity$4;
2767
+ var toLength$2 = toLength$6;
2768
+ var toString$2 = toString$7;
2769
+ var requireObjectCoercible$2 = requireObjectCoercible$8;
2770
+ var advanceStringIndex = advanceStringIndex$3;
2771
+ var getMethod = getMethod$6;
2772
+ var getSubstitution = getSubstitution$1;
2773
+ var regExpExec = regexpExecAbstract;
2774
+ var wellKnownSymbol$1 = wellKnownSymbol$e;
2775
+
2776
+ var REPLACE = wellKnownSymbol$1('replace');
2777
+ var max = Math.max;
2778
+ var min$2 = Math.min;
2779
+ var concat = uncurryThis$2([].concat);
2780
+ var push = uncurryThis$2([].push);
2781
+ var stringIndexOf = uncurryThis$2(''.indexOf);
2782
+ var stringSlice$1 = uncurryThis$2(''.slice);
2783
+
2784
+ var maybeToString = function (it) {
2785
+ return it === undefined ? it : String(it);
2786
+ };
2787
+
2788
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
2789
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2790
+ var REPLACE_KEEPS_$0 = (function () {
2791
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2792
+ return 'a'.replace(/./, '$0') === '$0';
2793
+ })();
2794
+
2795
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2796
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2797
+ if (/./[REPLACE]) {
2798
+ return /./[REPLACE]('a', '$0') === '';
2799
+ }
2800
+ return false;
2801
+ })();
2802
+
2803
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2804
+ var re = /./;
2805
+ re.exec = function () {
2806
+ var result = [];
2807
+ result.groups = { a: '7' };
2808
+ return result;
2809
+ };
2810
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2811
+ return ''.replace(re, '$<a>') !== '7';
2812
+ });
2813
+
2814
+ // @@replace logic
2815
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
2816
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2817
+
2818
+ return [
2819
+ // `String.prototype.replace` method
2820
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
2821
+ function replace(searchValue, replaceValue) {
2822
+ var O = requireObjectCoercible$2(this);
2823
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
2824
+ return replacer
2825
+ ? call(replacer, searchValue, O, replaceValue)
2826
+ : call(nativeReplace, toString$2(O), searchValue, replaceValue);
2827
+ },
2828
+ // `RegExp.prototype[@@replace]` method
2829
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2830
+ function (string, replaceValue) {
2831
+ var rx = anObject(this);
2832
+ var S = toString$2(string);
2833
+
2834
+ if (
2835
+ typeof replaceValue == 'string' &&
2836
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2837
+ stringIndexOf(replaceValue, '$<') === -1
2838
+ ) {
2839
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2840
+ if (res.done) return res.value;
2841
+ }
2842
+
2843
+ var functionalReplace = isCallable(replaceValue);
2844
+ if (!functionalReplace) replaceValue = toString$2(replaceValue);
2845
+
2846
+ var global = rx.global;
2847
+ if (global) {
2848
+ var fullUnicode = rx.unicode;
2849
+ rx.lastIndex = 0;
2850
+ }
2851
+ var results = [];
2852
+ while (true) {
2853
+ var result = regExpExec(rx, S);
2854
+ if (result === null) break;
2855
+
2856
+ push(results, result);
2857
+ if (!global) break;
2858
+
2859
+ var matchStr = toString$2(result[0]);
2860
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$2(rx.lastIndex), fullUnicode);
2861
+ }
2862
+
2863
+ var accumulatedResult = '';
2864
+ var nextSourcePosition = 0;
2865
+ for (var i = 0; i < results.length; i++) {
2866
+ result = results[i];
2867
+
2868
+ var matched = toString$2(result[0]);
2869
+ var position = max(min$2(toIntegerOrInfinity(result.index), S.length), 0);
2870
+ var captures = [];
2871
+ // NOTE: This is equivalent to
2872
+ // captures = result.slice(1).map(maybeToString)
2873
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2874
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2875
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2876
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
2877
+ var namedCaptures = result.groups;
2878
+ if (functionalReplace) {
2879
+ var replacerArgs = concat([matched], captures, position, S);
2880
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2881
+ var replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
2882
+ } else {
2883
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2884
+ }
2885
+ if (position >= nextSourcePosition) {
2886
+ accumulatedResult += stringSlice$1(S, nextSourcePosition, position) + replacement;
2887
+ nextSourcePosition = position + matched.length;
2888
+ }
2889
+ }
2890
+ return accumulatedResult + stringSlice$1(S, nextSourcePosition);
2891
+ }
2892
+ ];
2893
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2894
+
2895
+ var global$1 = global$F;
2896
+ var isRegExp = isRegexp;
2897
+
2898
+ var TypeError$1 = global$1.TypeError;
2899
+
2900
+ var notARegexp = function (it) {
2901
+ if (isRegExp(it)) {
2902
+ throw TypeError$1("The method doesn't accept regular expressions");
2903
+ } return it;
2904
+ };
2905
+
2906
+ var wellKnownSymbol = wellKnownSymbol$e;
2907
+
2908
+ var MATCH = wellKnownSymbol('match');
2909
+
2910
+ var correctIsRegexpLogic = function (METHOD_NAME) {
2911
+ var regexp = /./;
2912
+ try {
2913
+ '/./'[METHOD_NAME](regexp);
2914
+ } catch (error1) {
2915
+ try {
2916
+ regexp[MATCH] = false;
2917
+ return '/./'[METHOD_NAME](regexp);
2918
+ } catch (error2) { /* empty */ }
2919
+ } return false;
2920
+ };
2921
+
2922
+ var $$1 = _export;
2923
+ var uncurryThis$1 = functionUncurryThis;
2924
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
2925
+ var toLength$1 = toLength$6;
2926
+ var toString$1 = toString$7;
2927
+ var notARegExp$1 = notARegexp;
2928
+ var requireObjectCoercible$1 = requireObjectCoercible$8;
2929
+ var correctIsRegExpLogic$1 = correctIsRegexpLogic;
2930
+
2931
+ // eslint-disable-next-line es/no-string-prototype-startswith -- safe
2932
+ var un$StartsWith = uncurryThis$1(''.startsWith);
2933
+ var stringSlice = uncurryThis$1(''.slice);
2934
+ var min$1 = Math.min;
2935
+
2936
+ var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$1('startsWith');
2937
+ // https://github.com/zloirock/core-js/pull/702
2938
+ var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () {
2939
+ var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'startsWith');
2940
+ return descriptor && !descriptor.writable;
2941
+ }();
2942
+
2943
+ // `String.prototype.startsWith` method
2944
+ // https://tc39.es/ecma262/#sec-string.prototype.startswith
2945
+ $$1({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, {
2946
+ startsWith: function startsWith(searchString /* , position = 0 */) {
2947
+ var that = toString$1(requireObjectCoercible$1(this));
2948
+ notARegExp$1(searchString);
2949
+ var index = toLength$1(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length));
2950
+ var search = toString$1(searchString);
2951
+ return un$StartsWith
2952
+ ? un$StartsWith(that, search, index)
2953
+ : stringSlice(that, index, index + search.length) === search;
2954
+ }
2955
+ });
2956
+
2957
+ var $ = _export;
2958
+ var uncurryThis = functionUncurryThis;
2959
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2960
+ var toLength = toLength$6;
2961
+ var toString = toString$7;
2962
+ var notARegExp = notARegexp;
2963
+ var requireObjectCoercible = requireObjectCoercible$8;
2964
+ var correctIsRegExpLogic = correctIsRegexpLogic;
2965
+
2966
+ // eslint-disable-next-line es/no-string-prototype-endswith -- safe
2967
+ var un$EndsWith = uncurryThis(''.endsWith);
2968
+ var slice = uncurryThis(''.slice);
2969
+ var min = Math.min;
2970
+
2971
+ var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
2972
+ // https://github.com/zloirock/core-js/pull/702
2973
+ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
2974
+ var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
2975
+ return descriptor && !descriptor.writable;
2976
+ }();
2977
+
2978
+ // `String.prototype.endsWith` method
2979
+ // https://tc39.es/ecma262/#sec-string.prototype.endswith
2980
+ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
2981
+ endsWith: function endsWith(searchString /* , endPosition = @length */) {
2982
+ var that = toString(requireObjectCoercible(this));
2983
+ notARegExp(searchString);
2984
+ var endPosition = arguments.length > 1 ? arguments[1] : undefined;
2985
+ var len = that.length;
2986
+ var end = endPosition === undefined ? len : min(toLength(endPosition), len);
2987
+ var search = toString(searchString);
2988
+ return un$EndsWith
2989
+ ? un$EndsWith(that, search, end)
2990
+ : slice(that, end - search.length, end) === search;
2991
+ }
2992
+ });
2993
+
2994
+ /*! *****************************************************************************
2995
+ Copyright (c) Microsoft Corporation.
2996
+
2997
+ Permission to use, copy, modify, and/or distribute this software for any
2998
+ purpose with or without fee is hereby granted.
2999
+
3000
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3001
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3002
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3003
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3004
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3005
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3006
+ PERFORMANCE OF THIS SOFTWARE.
3007
+ ***************************************************************************** */
3008
+
3009
+ function __awaiter(thisArg, _arguments, P, generator) {
3010
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3011
+ return new (P || (P = Promise))(function (resolve, reject) {
3012
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3013
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3014
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3015
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
3016
+ });
3017
+ }
3018
+
3019
+ const fileToArray = url => {
3020
+ return new Promise((resolve, reject) => {
3021
+ try {
3022
+ const request = new XMLHttpRequest();
3023
+ request.open('GET', url, true);
3024
+ request.responseType = 'blob';
3025
+
3026
+ request.onload = () => {
3027
+ const reader = new FileReader();
3028
+ reader.readAsArrayBuffer(request.response);
3029
+
3030
+ reader.onloadend = () => {
3031
+ resolve(reader.result);
3032
+ };
3033
+ };
3034
+
3035
+ request.send();
3036
+ } catch (_a) {
3037
+ reject(`error while retrieving file ${url}.`);
3038
+ }
3039
+ });
3040
+ };
3041
+
3042
+ const reloadIFrame = iframe => {
3043
+ if (iframe) {
3044
+ console.log('reloading..'); // eslint-disable-next-line no-self-assign
3045
+
3046
+ iframe.src = iframe.src;
3047
+ }
3048
+ }; // eslint-disable-next-line @typescript-eslint/no-explicit-any
3049
+
3050
+
3051
+ const handleFileUpload = fileInput => {
3052
+ return new Promise((resolve, reject) => {
3053
+ if (fileInput.target.files && fileInput.target.files[0]) {
3054
+ const reader = new FileReader(); // eslint-disable-next-line @typescript-eslint/no-explicit-any
3055
+
3056
+ reader.onload = e => {
3057
+ resolve(e.target.result);
3058
+ };
3059
+
3060
+ reader.readAsDataURL(fileInput.target.files[0]);
3061
+ } else {
3062
+ reject('no files selected');
3063
+ }
3064
+ });
3065
+ };
3066
+ const getbaseUrl = () => {
3067
+ const pathArray = window.location.href.split('/');
3068
+ const protocol = pathArray[0];
3069
+ const host = pathArray[2];
3070
+ return protocol + '//' + host;
3071
+ };
3072
+ const getLocation = href => {
3073
+ // eslint-disable-next-line no-useless-escape
3074
+ const match = href.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
3075
+ return match && {
3076
+ href,
3077
+ protocol: match[1],
3078
+ host: match[2],
3079
+ hostname: match[3],
3080
+ port: match[4],
3081
+ pathname: match[5],
3082
+ search: match[6],
3083
+ hash: match[7]
3084
+ };
3085
+ };
3086
+ const getDocxToHtml = url => __awaiter(void 0, void 0, void 0, function* () {
3087
+ if (!mammoth) {
3088
+ console.error('Please install mammoth and make sure mammoth.browser.min.js is loaded.');
3089
+ }
3090
+
3091
+ const arrayBuffer = yield fileToArray(url);
3092
+ const resultObject = yield mammoth.convertToHtml({
3093
+ arrayBuffer
3094
+ });
3095
+ return resultObject.value;
3096
+ });
3097
+ const googleCheckSubscription = () => {
3098
+ let subscription = null;
3099
+ let checkCount = 0;
3100
+ return {
3101
+ subscribe: (iframe, interval = 3000, maxChecks = 5) => {
3102
+ if (!iframeIsLoaded(iframe)) {
3103
+ subscription = setInterval(() => {
3104
+ checkCount++;
3105
+
3106
+ if (checkCount >= maxChecks) {
3107
+ clearInterval(subscription);
3108
+ }
3109
+
3110
+ reloadIFrame(iframe);
3111
+ }, interval);
3112
+ return subscription;
3113
+ } else {
3114
+ if (subscription) {
3115
+ clearInterval(subscription);
3116
+ }
3117
+ }
3118
+ },
3119
+ unsubscribe: () => {
3120
+ if (subscription) {
3121
+ clearInterval(subscription);
3122
+ }
3123
+ }
3124
+ };
3125
+ };
3126
+ const iframeIsLoaded = iframe => {
3127
+ var _a; // its #document <html><head></head><body></body></html> when google is returning a 204
3128
+ // so if contentDocument = null then it's loaded.
3129
+
3130
+
3131
+ let isLoaded = false;
3132
+
3133
+ try {
3134
+ if (!internetExplorer()) {
3135
+ isLoaded = !(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument);
3136
+ } else {
3137
+ isLoaded = !((_a = iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document);
3138
+ }
3139
+ } catch (_b) {// ignore message Blocked a frame with origin "http://..." from accessing a cross-origin frame.
3140
+ }
3141
+
3142
+ return isLoaded;
3143
+ };
3144
+
3145
+ const internetExplorer = () => /MSIE (\d+\.\d+);/.test(navigator.userAgent) || navigator.userAgent.indexOf("Trident/") > -1;
3146
+
3147
+ const getViewerDetails = (url, configuredViewer = 'google', queryParams = '', viewerUrl = '') => {
3148
+ switch (configuredViewer) {
3149
+ case 'google':
3150
+ viewerUrl = `https://docs.google.com/gview?url=%URL%&embedded=true`;
3151
+ break;
3152
+
3153
+ case 'office':
3154
+ {
3155
+ viewerUrl = `https://view.officeapps.live.com/op/embed.aspx?src=%URL%`;
3156
+ break;
3157
+ }
3158
+
3159
+ case 'pdf':
3160
+ {
3161
+ viewerUrl = '';
3162
+ break;
3163
+ }
3164
+ }
3165
+
3166
+ const externalViewer = configuredViewer === 'google' || configuredViewer === 'office' || configuredViewer === 'url';
3167
+ const u = (url === null || url === void 0 ? void 0 : url.indexOf('/')) ? encodeURIComponent(url) : url;
3168
+ let fullUrl = viewerUrl ? viewerUrl.replace('%URL%', u) : url;
3169
+
3170
+ if (queryParams && externalViewer && configuredViewer !== 'url') {
3171
+ const start = queryParams.startsWith('&') ? '' : '&';
3172
+ fullUrl = `${fullUrl}${start}${queryParams}`;
3173
+ }
3174
+
3175
+ return {
3176
+ url: fullUrl,
3177
+ externalViewer
3178
+ };
3179
+ };
3180
+ const replaceLocalUrl = (url, overrideLocalhost) => {
3181
+ const loc = getLocation(url);
3182
+ const locReplace = getLocation(overrideLocalhost);
3183
+
3184
+ if (loc && locReplace) {
3185
+ return url.replace(loc.port ? `${loc.hostname}:${loc.port}` : loc.hostname, locReplace.port ? `${locReplace.hostname}:${locReplace.port}` : locReplace.hostname);
3186
+ }
3187
+
3188
+ return url;
3189
+ };
3190
+
3191
+ const getBlobFromUrl = url => {
3192
+ return new Promise((resolve, reject) => {
3193
+ const request = new XMLHttpRequest();
3194
+ request.open('GET', url, true);
3195
+ request.responseType = 'blob';
3196
+
3197
+ request.onload = () => {
3198
+ resolve(request.response);
3199
+ };
3200
+
3201
+ request.onerror = reject;
3202
+ request.send();
3203
+ });
3204
+ };
3205
+
3206
+ const uploadToCloud = (fileUrl, api) => new Promise((resolve, reject) => {
3207
+ getBlobFromUrl(fileUrl).then(blob => {
3208
+ var _a, _b;
3209
+
3210
+ const loc = getLocation(fileUrl);
3211
+ const name = (loc === null || loc === void 0 ? void 0 : loc.pathname) ? (_a = loc === null || loc === void 0 ? void 0 : loc.pathname) === null || _a === void 0 ? void 0 : _a.split('/')[((_b = loc === null || loc === void 0 ? void 0 : loc.pathname) === null || _b === void 0 ? void 0 : _b.split('/').length) - 1] : '';
3212
+ const formData = new FormData();
3213
+ const request = new XMLHttpRequest();
3214
+ formData.append('file', blob, name);
3215
+
3216
+ request.onreadystatechange = e => {
3217
+ if (request.readyState === XMLHttpRequest.DONE) {
3218
+ if (request.status === 200) {
3219
+ resolve(request.responseText);
3220
+ } else {
3221
+ reject(request.responseText);
3222
+ }
3223
+ }
3224
+ };
3225
+
3226
+ request.onerror = reject;
3227
+ request.open('post', api, true);
3228
+ request.send(formData);
3229
+ });
3230
+ });
3231
+ const isLocalFile = file => {
3232
+ const loc = getLocation(file);
3233
+ const hostname = (loc === null || loc === void 0 ? void 0 : loc.hostname) || '';
3234
+ return ['localhost', '127.0.0.1', '', '::1'].includes(hostname) || hostname.startsWith('192.168.') || hostname.startsWith('10.0.') || hostname.endsWith('.local');
3235
+ };
3236
+
3237
+ const defaultProps = {
3238
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
3239
+ loaded: () => {},
3240
+ disableContent: 'none',
3241
+ googleCheckContentLoaded: true,
3242
+ googleCheckInterval: 3000,
3243
+ queryParams: '',
3244
+ url: '',
3245
+ viewer: 'google',
3246
+ viewerUrl: ''
3247
+ };
3248
+
3249
+ export { defaultProps, fileToArray, getDocxToHtml, getLocation, getViewerDetails, getbaseUrl, googleCheckSubscription, handleFileUpload, iframeIsLoaded, isLocalFile, replaceLocalUrl, uploadToCloud };