@trackunit/react-core-hooks 0.0.57 → 0.0.58

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.js CHANGED
@@ -1,13 +1,13 @@
1
- import { jsx, Fragment } from 'react/jsx-runtime';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { useFlags } from 'launchdarkly-react-client-sdk';
3
3
  import * as React from 'react';
4
4
  import React__default, { useContext, createContext } from 'react';
5
- import { useLocation, useNavigate, generatePath, createSearchParams, BrowserRouter } from 'react-router-dom';
6
5
  import { NavigationRuntime, AssetRuntime, CustomFieldRuntime, RestRuntime } from '@trackunit/iris-app-runtime-core';
6
+ import { useLocation } from 'react-router-dom';
7
7
 
8
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
9
 
10
- var fails$k = function (exec) {
10
+ var fails$f = function (exec) {
11
11
  try {
12
12
  return !!exec();
13
13
  } catch (error) {
@@ -15,70 +15,70 @@ var fails$k = function (exec) {
15
15
  }
16
16
  };
17
17
 
18
- var fails$j = fails$k;
18
+ var fails$e = fails$f;
19
19
 
20
- var functionBindNative = !fails$j(function () {
20
+ var functionBindNative = !fails$e(function () {
21
21
  // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22
22
  var test = (function () { /* empty */ }).bind();
23
23
  // eslint-disable-next-line no-prototype-builtins -- safe
24
24
  return typeof test != 'function' || test.hasOwnProperty('prototype');
25
25
  });
26
26
 
27
- var NATIVE_BIND$3 = functionBindNative;
27
+ var NATIVE_BIND$1 = functionBindNative;
28
28
 
29
- var FunctionPrototype$2 = Function.prototype;
30
- var bind$5 = FunctionPrototype$2.bind;
31
- var call$j = FunctionPrototype$2.call;
32
- var uncurryThis$k = NATIVE_BIND$3 && bind$5.bind(call$j, call$j);
29
+ var FunctionPrototype$1 = Function.prototype;
30
+ var bind = FunctionPrototype$1.bind;
31
+ var call$9 = FunctionPrototype$1.call;
32
+ var uncurryThis$d = NATIVE_BIND$1 && bind.bind(call$9, call$9);
33
33
 
34
- var functionUncurryThis = NATIVE_BIND$3 ? function (fn) {
35
- return fn && uncurryThis$k(fn);
34
+ var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
35
+ return fn && uncurryThis$d(fn);
36
36
  } : function (fn) {
37
37
  return fn && function () {
38
- return call$j.apply(fn, arguments);
38
+ return call$9.apply(fn, arguments);
39
39
  };
40
40
  };
41
41
 
42
- var uncurryThis$j = functionUncurryThis;
42
+ var uncurryThis$c = functionUncurryThis;
43
43
 
44
- var toString$7 = uncurryThis$j({}.toString);
45
- var stringSlice$4 = uncurryThis$j(''.slice);
44
+ var toString$4 = uncurryThis$c({}.toString);
45
+ var stringSlice$1 = uncurryThis$c(''.slice);
46
46
 
47
47
  var classofRaw$1 = function (it) {
48
- return stringSlice$4(toString$7(it), 8, -1);
48
+ return stringSlice$1(toString$4(it), 8, -1);
49
49
  };
50
50
 
51
- var uncurryThis$i = functionUncurryThis;
52
- var fails$i = fails$k;
53
- var classof$7 = classofRaw$1;
51
+ var uncurryThis$b = functionUncurryThis;
52
+ var fails$d = fails$f;
53
+ var classof$3 = classofRaw$1;
54
54
 
55
55
  var $Object$4 = Object;
56
- var split = uncurryThis$i(''.split);
56
+ var split = uncurryThis$b(''.split);
57
57
 
58
58
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
59
- var indexedObject = fails$i(function () {
59
+ var indexedObject = fails$d(function () {
60
60
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
61
61
  // eslint-disable-next-line no-prototype-builtins -- safe
62
62
  return !$Object$4('z').propertyIsEnumerable(0);
63
63
  }) ? function (it) {
64
- return classof$7(it) == 'String' ? split(it, '') : $Object$4(it);
64
+ return classof$3(it) == 'String' ? split(it, '') : $Object$4(it);
65
65
  } : $Object$4;
66
66
 
67
- var $TypeError$d = TypeError;
67
+ var $TypeError$7 = TypeError;
68
68
 
69
69
  // `RequireObjectCoercible` abstract operation
70
70
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
71
- var requireObjectCoercible$6 = function (it) {
72
- if (it == undefined) throw $TypeError$d("Can't call method on " + it);
71
+ var requireObjectCoercible$3 = function (it) {
72
+ if (it == undefined) throw $TypeError$7("Can't call method on " + it);
73
73
  return it;
74
74
  };
75
75
 
76
76
  // toObject with fallback for non-array-like ES3 strings
77
77
  var IndexedObject$1 = indexedObject;
78
- var requireObjectCoercible$5 = requireObjectCoercible$6;
78
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
79
79
 
80
80
  var toIndexedObject$5 = function (it) {
81
- return IndexedObject$1(requireObjectCoercible$5(it));
81
+ return IndexedObject$1(requireObjectCoercible$2(it));
82
82
  };
83
83
 
84
84
  var check = function (it) {
@@ -86,7 +86,7 @@ var check = function (it) {
86
86
  };
87
87
 
88
88
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
89
- var global$m =
89
+ var global$e =
90
90
  // eslint-disable-next-line es-x/no-global-this -- safe
91
91
  check(typeof globalThis == 'object' && globalThis) ||
92
92
  check(typeof window == 'object' && window) ||
@@ -98,24 +98,24 @@ var global$m =
98
98
 
99
99
  var shared$4 = {exports: {}};
100
100
 
101
- var global$l = global$m;
101
+ var global$d = global$e;
102
102
 
103
103
  // eslint-disable-next-line es-x/no-object-defineproperty -- safe
104
104
  var defineProperty$5 = Object.defineProperty;
105
105
 
106
106
  var defineGlobalProperty$3 = function (key, value) {
107
107
  try {
108
- defineProperty$5(global$l, key, { value: value, configurable: true, writable: true });
108
+ defineProperty$5(global$d, key, { value: value, configurable: true, writable: true });
109
109
  } catch (error) {
110
- global$l[key] = value;
110
+ global$d[key] = value;
111
111
  } return value;
112
112
  };
113
113
 
114
- var global$k = global$m;
114
+ var global$c = global$e;
115
115
  var defineGlobalProperty$2 = defineGlobalProperty$3;
116
116
 
117
117
  var SHARED = '__core-js_shared__';
118
- var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {});
118
+ var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
119
119
 
120
120
  var sharedStore = store$3;
121
121
 
@@ -131,65 +131,65 @@ var store$2 = sharedStore;
131
131
  source: 'https://github.com/zloirock/core-js'
132
132
  });
133
133
 
134
- var requireObjectCoercible$4 = requireObjectCoercible$6;
134
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
135
135
 
136
136
  var $Object$3 = Object;
137
137
 
138
138
  // `ToObject` abstract operation
139
139
  // https://tc39.es/ecma262/#sec-toobject
140
- var toObject$4 = function (argument) {
141
- return $Object$3(requireObjectCoercible$4(argument));
140
+ var toObject$3 = function (argument) {
141
+ return $Object$3(requireObjectCoercible$1(argument));
142
142
  };
143
143
 
144
- var uncurryThis$h = functionUncurryThis;
145
- var toObject$3 = toObject$4;
144
+ var uncurryThis$a = functionUncurryThis;
145
+ var toObject$2 = toObject$3;
146
146
 
147
- var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
147
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
148
148
 
149
149
  // `HasOwnProperty` abstract operation
150
150
  // https://tc39.es/ecma262/#sec-hasownproperty
151
151
  // eslint-disable-next-line es-x/no-object-hasown -- safe
152
152
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
153
- return hasOwnProperty(toObject$3(it), key);
153
+ return hasOwnProperty(toObject$2(it), key);
154
154
  };
155
155
 
156
- var uncurryThis$g = functionUncurryThis;
156
+ var uncurryThis$9 = functionUncurryThis;
157
157
 
158
158
  var id = 0;
159
159
  var postfix = Math.random();
160
- var toString$6 = uncurryThis$g(1.0.toString);
160
+ var toString$3 = uncurryThis$9(1.0.toString);
161
161
 
162
162
  var uid$2 = function (key) {
163
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
163
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
164
164
  };
165
165
 
166
166
  // `IsCallable` abstract operation
167
167
  // https://tc39.es/ecma262/#sec-iscallable
168
- var isCallable$n = function (argument) {
168
+ var isCallable$g = function (argument) {
169
169
  return typeof argument == 'function';
170
170
  };
171
171
 
172
- var global$j = global$m;
173
- var isCallable$m = isCallable$n;
172
+ var global$b = global$e;
173
+ var isCallable$f = isCallable$g;
174
174
 
175
175
  var aFunction = function (argument) {
176
- return isCallable$m(argument) ? argument : undefined;
176
+ return isCallable$f(argument) ? argument : undefined;
177
177
  };
178
178
 
179
- var getBuiltIn$9 = function (namespace, method) {
180
- return arguments.length < 2 ? aFunction(global$j[namespace]) : global$j[namespace] && global$j[namespace][method];
179
+ var getBuiltIn$4 = function (namespace, method) {
180
+ return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
181
181
  };
182
182
 
183
- var getBuiltIn$8 = getBuiltIn$9;
183
+ var getBuiltIn$3 = getBuiltIn$4;
184
184
 
185
- var engineUserAgent = getBuiltIn$8('navigator', 'userAgent') || '';
185
+ var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
186
186
 
187
- var global$i = global$m;
188
- var userAgent$3 = engineUserAgent;
187
+ var global$a = global$e;
188
+ var userAgent = engineUserAgent;
189
189
 
190
- var process$3 = global$i.process;
191
- var Deno$1 = global$i.Deno;
192
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
190
+ var process = global$a.process;
191
+ var Deno = global$a.Deno;
192
+ var versions = process && process.versions || Deno && Deno.version;
193
193
  var v8 = versions && versions.v8;
194
194
  var match, version;
195
195
 
@@ -202,10 +202,10 @@ if (v8) {
202
202
 
203
203
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
204
204
  // so check `userAgent` even if `.v8` exists, but 0
205
- if (!version && userAgent$3) {
206
- match = userAgent$3.match(/Edge\/(\d+)/);
205
+ if (!version && userAgent) {
206
+ match = userAgent.match(/Edge\/(\d+)/);
207
207
  if (!match || match[1] >= 74) {
208
- match = userAgent$3.match(/Chrome\/(\d+)/);
208
+ match = userAgent.match(/Chrome\/(\d+)/);
209
209
  if (match) version = +match[1];
210
210
  }
211
211
  }
@@ -214,17 +214,17 @@ var engineV8Version = version;
214
214
 
215
215
  /* eslint-disable es-x/no-symbol -- required for testing */
216
216
 
217
- var V8_VERSION$1 = engineV8Version;
218
- var fails$h = fails$k;
217
+ var V8_VERSION = engineV8Version;
218
+ var fails$c = fails$f;
219
219
 
220
220
  // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
221
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$h(function () {
221
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$c(function () {
222
222
  var symbol = Symbol();
223
223
  // Chrome 38 Symbol has incorrect toString conversion
224
224
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
225
225
  return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
226
226
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
227
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
227
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
228
228
  });
229
229
 
230
230
  /* eslint-disable es-x/no-symbol -- required for testing */
@@ -235,22 +235,22 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
235
235
  && !Symbol.sham
236
236
  && typeof Symbol.iterator == 'symbol';
237
237
 
238
- var global$h = global$m;
238
+ var global$9 = global$e;
239
239
  var shared$3 = shared$4.exports;
240
- var hasOwn$a = hasOwnProperty_1;
240
+ var hasOwn$8 = hasOwnProperty_1;
241
241
  var uid$1 = uid$2;
242
242
  var NATIVE_SYMBOL = nativeSymbol;
243
243
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
244
244
 
245
245
  var WellKnownSymbolsStore = shared$3('wks');
246
- var Symbol$1 = global$h.Symbol;
246
+ var Symbol$1 = global$9.Symbol;
247
247
  var symbolFor = Symbol$1 && Symbol$1['for'];
248
248
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
249
249
 
250
- var wellKnownSymbol$i = function (name) {
251
- if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
250
+ var wellKnownSymbol$9 = function (name) {
251
+ if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
252
252
  var description = 'Symbol.' + name;
253
- if (NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)) {
253
+ if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
254
254
  WellKnownSymbolsStore[name] = Symbol$1[name];
255
255
  } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
256
256
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -260,39 +260,39 @@ var wellKnownSymbol$i = function (name) {
260
260
  } return WellKnownSymbolsStore[name];
261
261
  };
262
262
 
263
- var isCallable$l = isCallable$n;
263
+ var isCallable$e = isCallable$g;
264
264
 
265
- var isObject$8 = function (it) {
266
- return typeof it == 'object' ? it !== null : isCallable$l(it);
265
+ var isObject$5 = function (it) {
266
+ return typeof it == 'object' ? it !== null : isCallable$e(it);
267
267
  };
268
268
 
269
- var isObject$7 = isObject$8;
269
+ var isObject$4 = isObject$5;
270
270
 
271
271
  var $String$3 = String;
272
- var $TypeError$c = TypeError;
272
+ var $TypeError$6 = TypeError;
273
273
 
274
274
  // `Assert: Type(argument) is Object`
275
- var anObject$f = function (argument) {
276
- if (isObject$7(argument)) return argument;
277
- throw $TypeError$c($String$3(argument) + ' is not an object');
275
+ var anObject$8 = function (argument) {
276
+ if (isObject$4(argument)) return argument;
277
+ throw $TypeError$6($String$3(argument) + ' is not an object');
278
278
  };
279
279
 
280
280
  var objectDefineProperties = {};
281
281
 
282
- var fails$g = fails$k;
282
+ var fails$b = fails$f;
283
283
 
284
284
  // Detect IE8's incomplete defineProperty implementation
285
- var descriptors = !fails$g(function () {
285
+ var descriptors = !fails$b(function () {
286
286
  // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
287
287
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
288
288
  });
289
289
 
290
- var DESCRIPTORS$a = descriptors;
291
- var fails$f = fails$k;
290
+ var DESCRIPTORS$9 = descriptors;
291
+ var fails$a = fails$f;
292
292
 
293
293
  // V8 ~ Chrome 36-
294
294
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
295
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$f(function () {
295
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$a(function () {
296
296
  // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
297
297
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
298
298
  value: 42,
@@ -302,44 +302,44 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$f(function () {
302
302
 
303
303
  var objectDefineProperty = {};
304
304
 
305
- var global$g = global$m;
306
- var isObject$6 = isObject$8;
305
+ var global$8 = global$e;
306
+ var isObject$3 = isObject$5;
307
307
 
308
- var document$3 = global$g.document;
308
+ var document$1 = global$8.document;
309
309
  // typeof document.createElement is 'object' in old IE
310
- var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
310
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
311
311
 
312
312
  var documentCreateElement$2 = function (it) {
313
- return EXISTS$1 ? document$3.createElement(it) : {};
313
+ return EXISTS$1 ? document$1.createElement(it) : {};
314
314
  };
315
315
 
316
- var DESCRIPTORS$9 = descriptors;
317
- var fails$e = fails$k;
318
- var createElement$1 = documentCreateElement$2;
316
+ var DESCRIPTORS$8 = descriptors;
317
+ var fails$9 = fails$f;
318
+ var createElement = documentCreateElement$2;
319
319
 
320
320
  // Thanks to IE8 for its funny defineProperty
321
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$e(function () {
321
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
322
322
  // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
323
- return Object.defineProperty(createElement$1('div'), 'a', {
323
+ return Object.defineProperty(createElement('div'), 'a', {
324
324
  get: function () { return 7; }
325
325
  }).a != 7;
326
326
  });
327
327
 
328
- var NATIVE_BIND$2 = functionBindNative;
328
+ var NATIVE_BIND = functionBindNative;
329
329
 
330
- var call$i = Function.prototype.call;
330
+ var call$8 = Function.prototype.call;
331
331
 
332
- var functionCall = NATIVE_BIND$2 ? call$i.bind(call$i) : function () {
333
- return call$i.apply(call$i, arguments);
332
+ var functionCall = NATIVE_BIND ? call$8.bind(call$8) : function () {
333
+ return call$8.apply(call$8, arguments);
334
334
  };
335
335
 
336
- var uncurryThis$f = functionUncurryThis;
336
+ var uncurryThis$8 = functionUncurryThis;
337
337
 
338
- var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
338
+ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
339
339
 
340
- var getBuiltIn$7 = getBuiltIn$9;
341
- var isCallable$k = isCallable$n;
342
- var isPrototypeOf$3 = objectIsPrototypeOf;
340
+ var getBuiltIn$2 = getBuiltIn$4;
341
+ var isCallable$d = isCallable$g;
342
+ var isPrototypeOf = objectIsPrototypeOf;
343
343
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
344
344
 
345
345
  var $Object$2 = Object;
@@ -347,13 +347,13 @@ var $Object$2 = Object;
347
347
  var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
348
348
  return typeof it == 'symbol';
349
349
  } : function (it) {
350
- var $Symbol = getBuiltIn$7('Symbol');
351
- return isCallable$k($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it));
350
+ var $Symbol = getBuiltIn$2('Symbol');
351
+ return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
352
352
  };
353
353
 
354
354
  var $String$2 = String;
355
355
 
356
- var tryToString$4 = function (argument) {
356
+ var tryToString$1 = function (argument) {
357
357
  try {
358
358
  return $String$2(argument);
359
359
  } catch (error) {
@@ -361,63 +361,63 @@ var tryToString$4 = function (argument) {
361
361
  }
362
362
  };
363
363
 
364
- var isCallable$j = isCallable$n;
365
- var tryToString$3 = tryToString$4;
364
+ var isCallable$c = isCallable$g;
365
+ var tryToString = tryToString$1;
366
366
 
367
- var $TypeError$b = TypeError;
367
+ var $TypeError$5 = TypeError;
368
368
 
369
369
  // `Assert: IsCallable(argument) is true`
370
- var aCallable$7 = function (argument) {
371
- if (isCallable$j(argument)) return argument;
372
- throw $TypeError$b(tryToString$3(argument) + ' is not a function');
370
+ var aCallable$1 = function (argument) {
371
+ if (isCallable$c(argument)) return argument;
372
+ throw $TypeError$5(tryToString(argument) + ' is not a function');
373
373
  };
374
374
 
375
- var aCallable$6 = aCallable$7;
375
+ var aCallable = aCallable$1;
376
376
 
377
377
  // `GetMethod` abstract operation
378
378
  // https://tc39.es/ecma262/#sec-getmethod
379
- var getMethod$5 = function (V, P) {
379
+ var getMethod$2 = function (V, P) {
380
380
  var func = V[P];
381
- return func == null ? undefined : aCallable$6(func);
381
+ return func == null ? undefined : aCallable(func);
382
382
  };
383
383
 
384
- var call$h = functionCall;
385
- var isCallable$i = isCallable$n;
386
- var isObject$5 = isObject$8;
384
+ var call$7 = functionCall;
385
+ var isCallable$b = isCallable$g;
386
+ var isObject$2 = isObject$5;
387
387
 
388
- var $TypeError$a = TypeError;
388
+ var $TypeError$4 = TypeError;
389
389
 
390
390
  // `OrdinaryToPrimitive` abstract operation
391
391
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
392
392
  var ordinaryToPrimitive$1 = function (input, pref) {
393
393
  var fn, val;
394
- if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$5(val = call$h(fn, input))) return val;
395
- if (isCallable$i(fn = input.valueOf) && !isObject$5(val = call$h(fn, input))) return val;
396
- if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$5(val = call$h(fn, input))) return val;
397
- throw $TypeError$a("Can't convert object to primitive value");
394
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$7(fn, input))) return val;
395
+ if (isCallable$b(fn = input.valueOf) && !isObject$2(val = call$7(fn, input))) return val;
396
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$7(fn, input))) return val;
397
+ throw $TypeError$4("Can't convert object to primitive value");
398
398
  };
399
399
 
400
- var call$g = functionCall;
401
- var isObject$4 = isObject$8;
400
+ var call$6 = functionCall;
401
+ var isObject$1 = isObject$5;
402
402
  var isSymbol$1 = isSymbol$2;
403
- var getMethod$4 = getMethod$5;
403
+ var getMethod$1 = getMethod$2;
404
404
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
405
- var wellKnownSymbol$h = wellKnownSymbol$i;
405
+ var wellKnownSymbol$8 = wellKnownSymbol$9;
406
406
 
407
- var $TypeError$9 = TypeError;
408
- var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive');
407
+ var $TypeError$3 = TypeError;
408
+ var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
409
409
 
410
410
  // `ToPrimitive` abstract operation
411
411
  // https://tc39.es/ecma262/#sec-toprimitive
412
412
  var toPrimitive$1 = function (input, pref) {
413
- if (!isObject$4(input) || isSymbol$1(input)) return input;
414
- var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
413
+ if (!isObject$1(input) || isSymbol$1(input)) return input;
414
+ var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
415
415
  var result;
416
416
  if (exoticToPrim) {
417
417
  if (pref === undefined) pref = 'default';
418
- result = call$g(exoticToPrim, input, pref);
419
- if (!isObject$4(result) || isSymbol$1(result)) return result;
420
- throw $TypeError$9("Can't convert object to primitive value");
418
+ result = call$6(exoticToPrim, input, pref);
419
+ if (!isObject$1(result) || isSymbol$1(result)) return result;
420
+ throw $TypeError$3("Can't convert object to primitive value");
421
421
  }
422
422
  if (pref === undefined) pref = 'number';
423
423
  return ordinaryToPrimitive(input, pref);
@@ -433,13 +433,13 @@ var toPropertyKey$2 = function (argument) {
433
433
  return isSymbol(key) ? key : key + '';
434
434
  };
435
435
 
436
- var DESCRIPTORS$8 = descriptors;
436
+ var DESCRIPTORS$7 = descriptors;
437
437
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
438
438
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
439
- var anObject$e = anObject$f;
439
+ var anObject$7 = anObject$8;
440
440
  var toPropertyKey$1 = toPropertyKey$2;
441
441
 
442
- var $TypeError$8 = TypeError;
442
+ var $TypeError$2 = TypeError;
443
443
  // eslint-disable-next-line es-x/no-object-defineproperty -- safe
444
444
  var $defineProperty = Object.defineProperty;
445
445
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
@@ -450,10 +450,10 @@ var WRITABLE = 'writable';
450
450
 
451
451
  // `Object.defineProperty` method
452
452
  // https://tc39.es/ecma262/#sec-object.defineproperty
453
- objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
454
- anObject$e(O);
453
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
454
+ anObject$7(O);
455
455
  P = toPropertyKey$1(P);
456
- anObject$e(Attributes);
456
+ anObject$7(Attributes);
457
457
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
458
458
  var current = $getOwnPropertyDescriptor$1(O, P);
459
459
  if (current && current[WRITABLE]) {
@@ -466,78 +466,78 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
466
466
  }
467
467
  } return $defineProperty(O, P, Attributes);
468
468
  } : $defineProperty : function defineProperty(O, P, Attributes) {
469
- anObject$e(O);
469
+ anObject$7(O);
470
470
  P = toPropertyKey$1(P);
471
- anObject$e(Attributes);
471
+ anObject$7(Attributes);
472
472
  if (IE8_DOM_DEFINE$1) try {
473
473
  return $defineProperty(O, P, Attributes);
474
474
  } catch (error) { /* empty */ }
475
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$8('Accessors not supported');
475
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
476
476
  if ('value' in Attributes) O[P] = Attributes.value;
477
477
  return O;
478
478
  };
479
479
 
480
480
  var ceil = Math.ceil;
481
- var floor$1 = Math.floor;
481
+ var floor = Math.floor;
482
482
 
483
483
  // `Math.trunc` method
484
484
  // https://tc39.es/ecma262/#sec-math.trunc
485
485
  // eslint-disable-next-line es-x/no-math-trunc -- safe
486
486
  var mathTrunc = Math.trunc || function trunc(x) {
487
487
  var n = +x;
488
- return (n > 0 ? floor$1 : ceil)(n);
488
+ return (n > 0 ? floor : ceil)(n);
489
489
  };
490
490
 
491
491
  var trunc = mathTrunc;
492
492
 
493
493
  // `ToIntegerOrInfinity` abstract operation
494
494
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
495
- var toIntegerOrInfinity$4 = function (argument) {
495
+ var toIntegerOrInfinity$2 = function (argument) {
496
496
  var number = +argument;
497
497
  // eslint-disable-next-line no-self-compare -- NaN check
498
498
  return number !== number || number === 0 ? 0 : trunc(number);
499
499
  };
500
500
 
501
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
501
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
502
502
 
503
- var max$1 = Math.max;
504
- var min$2 = Math.min;
503
+ var max = Math.max;
504
+ var min$1 = Math.min;
505
505
 
506
506
  // Helper for a popular repeating case of the spec:
507
507
  // Let integer be ? ToInteger(index).
508
508
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
509
509
  var toAbsoluteIndex$1 = function (index, length) {
510
- var integer = toIntegerOrInfinity$3(index);
511
- return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
510
+ var integer = toIntegerOrInfinity$1(index);
511
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
512
512
  };
513
513
 
514
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
514
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
515
515
 
516
- var min$1 = Math.min;
516
+ var min = Math.min;
517
517
 
518
518
  // `ToLength` abstract operation
519
519
  // https://tc39.es/ecma262/#sec-tolength
520
- var toLength$2 = function (argument) {
521
- return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
520
+ var toLength$1 = function (argument) {
521
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
522
522
  };
523
523
 
524
- var toLength$1 = toLength$2;
524
+ var toLength = toLength$1;
525
525
 
526
526
  // `LengthOfArrayLike` abstract operation
527
527
  // https://tc39.es/ecma262/#sec-lengthofarraylike
528
- var lengthOfArrayLike$2 = function (obj) {
529
- return toLength$1(obj.length);
528
+ var lengthOfArrayLike$1 = function (obj) {
529
+ return toLength(obj.length);
530
530
  };
531
531
 
532
532
  var toIndexedObject$4 = toIndexedObject$5;
533
533
  var toAbsoluteIndex = toAbsoluteIndex$1;
534
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
534
+ var lengthOfArrayLike = lengthOfArrayLike$1;
535
535
 
536
536
  // `Array.prototype.{ indexOf, includes }` methods implementation
537
- var createMethod$1 = function (IS_INCLUDES) {
537
+ var createMethod = function (IS_INCLUDES) {
538
538
  return function ($this, el, fromIndex) {
539
539
  var O = toIndexedObject$4($this);
540
- var length = lengthOfArrayLike$1(O);
540
+ var length = lengthOfArrayLike(O);
541
541
  var index = toAbsoluteIndex(fromIndex, length);
542
542
  var value;
543
543
  // Array#includes uses SameValueZero equality algorithm
@@ -556,31 +556,31 @@ var createMethod$1 = function (IS_INCLUDES) {
556
556
  var arrayIncludes = {
557
557
  // `Array.prototype.includes` method
558
558
  // https://tc39.es/ecma262/#sec-array.prototype.includes
559
- includes: createMethod$1(true),
559
+ includes: createMethod(true),
560
560
  // `Array.prototype.indexOf` method
561
561
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
562
- indexOf: createMethod$1(false)
562
+ indexOf: createMethod(false)
563
563
  };
564
564
 
565
565
  var hiddenKeys$4 = {};
566
566
 
567
- var uncurryThis$e = functionUncurryThis;
568
- var hasOwn$9 = hasOwnProperty_1;
567
+ var uncurryThis$7 = functionUncurryThis;
568
+ var hasOwn$7 = hasOwnProperty_1;
569
569
  var toIndexedObject$3 = toIndexedObject$5;
570
570
  var indexOf$1 = arrayIncludes.indexOf;
571
571
  var hiddenKeys$3 = hiddenKeys$4;
572
572
 
573
- var push$1 = uncurryThis$e([].push);
573
+ var push = uncurryThis$7([].push);
574
574
 
575
575
  var objectKeysInternal = function (object, names) {
576
576
  var O = toIndexedObject$3(object);
577
577
  var i = 0;
578
578
  var result = [];
579
579
  var key;
580
- for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$1(result, key);
580
+ for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
581
581
  // Don't enum bug & hidden keys
582
- while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
583
- ~indexOf$1(result, key) || push$1(result, key);
582
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
583
+ ~indexOf$1(result, key) || push(result, key);
584
584
  }
585
585
  return result;
586
586
  };
@@ -606,30 +606,30 @@ var objectKeys$2 = Object.keys || function keys(O) {
606
606
  return internalObjectKeys$1(O, enumBugKeys$2);
607
607
  };
608
608
 
609
- var DESCRIPTORS$7 = descriptors;
609
+ var DESCRIPTORS$6 = descriptors;
610
610
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
611
- var definePropertyModule$4 = objectDefineProperty;
612
- var anObject$d = anObject$f;
611
+ var definePropertyModule$3 = objectDefineProperty;
612
+ var anObject$6 = anObject$8;
613
613
  var toIndexedObject$2 = toIndexedObject$5;
614
614
  var objectKeys$1 = objectKeys$2;
615
615
 
616
616
  // `Object.defineProperties` method
617
617
  // https://tc39.es/ecma262/#sec-object.defineproperties
618
618
  // eslint-disable-next-line es-x/no-object-defineproperties -- safe
619
- objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
620
- anObject$d(O);
619
+ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
620
+ anObject$6(O);
621
621
  var props = toIndexedObject$2(Properties);
622
622
  var keys = objectKeys$1(Properties);
623
623
  var length = keys.length;
624
624
  var index = 0;
625
625
  var key;
626
- while (length > index) definePropertyModule$4.f(O, key = keys[index++], props[key]);
626
+ while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
627
627
  return O;
628
628
  };
629
629
 
630
- var getBuiltIn$6 = getBuiltIn$9;
630
+ var getBuiltIn$1 = getBuiltIn$4;
631
631
 
632
- var html$2 = getBuiltIn$6('document', 'documentElement');
632
+ var html$1 = getBuiltIn$1('document', 'documentElement');
633
633
 
634
634
  var shared$2 = shared$4.exports;
635
635
  var uid = uid$2;
@@ -642,11 +642,11 @@ var sharedKey$3 = function (key) {
642
642
 
643
643
  /* global ActiveXObject -- old IE, WSH */
644
644
 
645
- var anObject$c = anObject$f;
645
+ var anObject$5 = anObject$8;
646
646
  var definePropertiesModule = objectDefineProperties;
647
647
  var enumBugKeys$1 = enumBugKeys$3;
648
648
  var hiddenKeys$2 = hiddenKeys$4;
649
- var html$1 = html$2;
649
+ var html = html$1;
650
650
  var documentCreateElement$1 = documentCreateElement$2;
651
651
  var sharedKey$2 = sharedKey$3;
652
652
 
@@ -678,7 +678,7 @@ var NullProtoObjectViaIFrame = function () {
678
678
  var JS = 'java' + SCRIPT + ':';
679
679
  var iframeDocument;
680
680
  iframe.style.display = 'none';
681
- html$1.appendChild(iframe);
681
+ html.appendChild(iframe);
682
682
  // https://github.com/zloirock/core-js/issues/475
683
683
  iframe.src = String(JS);
684
684
  iframeDocument = iframe.contentWindow.document;
@@ -716,7 +716,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
716
716
  var objectCreate = Object.create || function create(O, Properties) {
717
717
  var result;
718
718
  if (O !== null) {
719
- EmptyConstructor[PROTOTYPE] = anObject$c(O);
719
+ EmptyConstructor[PROTOTYPE] = anObject$5(O);
720
720
  result = new EmptyConstructor();
721
721
  EmptyConstructor[PROTOTYPE] = null;
722
722
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -725,17 +725,17 @@ var objectCreate = Object.create || function create(O, Properties) {
725
725
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
726
726
  };
727
727
 
728
- var wellKnownSymbol$g = wellKnownSymbol$i;
728
+ var wellKnownSymbol$7 = wellKnownSymbol$9;
729
729
  var create$2 = objectCreate;
730
730
  var defineProperty$4 = objectDefineProperty.f;
731
731
 
732
- var UNSCOPABLES = wellKnownSymbol$g('unscopables');
733
- var ArrayPrototype$1 = Array.prototype;
732
+ var UNSCOPABLES = wellKnownSymbol$7('unscopables');
733
+ var ArrayPrototype = Array.prototype;
734
734
 
735
735
  // Array.prototype[@@unscopables]
736
736
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
737
- if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
738
- defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
737
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
738
+ defineProperty$4(ArrayPrototype, UNSCOPABLES, {
739
739
  configurable: true,
740
740
  value: create$2(null)
741
741
  });
@@ -743,33 +743,33 @@ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
743
743
 
744
744
  // add a key to Array.prototype[@@unscopables]
745
745
  var addToUnscopables$1 = function (key) {
746
- ArrayPrototype$1[UNSCOPABLES][key] = true;
746
+ ArrayPrototype[UNSCOPABLES][key] = true;
747
747
  };
748
748
 
749
749
  var iterators = {};
750
750
 
751
- var uncurryThis$d = functionUncurryThis;
752
- var isCallable$h = isCallable$n;
751
+ var uncurryThis$6 = functionUncurryThis;
752
+ var isCallable$a = isCallable$g;
753
753
  var store$1 = sharedStore;
754
754
 
755
- var functionToString = uncurryThis$d(Function.toString);
755
+ var functionToString = uncurryThis$6(Function.toString);
756
756
 
757
757
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
758
- if (!isCallable$h(store$1.inspectSource)) {
758
+ if (!isCallable$a(store$1.inspectSource)) {
759
759
  store$1.inspectSource = function (it) {
760
760
  return functionToString(it);
761
761
  };
762
762
  }
763
763
 
764
- var inspectSource$4 = store$1.inspectSource;
764
+ var inspectSource$2 = store$1.inspectSource;
765
765
 
766
- var global$f = global$m;
767
- var isCallable$g = isCallable$n;
768
- var inspectSource$3 = inspectSource$4;
766
+ var global$7 = global$e;
767
+ var isCallable$9 = isCallable$g;
768
+ var inspectSource$1 = inspectSource$2;
769
769
 
770
- var WeakMap$1 = global$f.WeakMap;
770
+ var WeakMap$1 = global$7.WeakMap;
771
771
 
772
- var nativeWeakMap = isCallable$g(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
772
+ var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
773
773
 
774
774
  var createPropertyDescriptor$3 = function (bitmap, value) {
775
775
  return {
@@ -780,52 +780,52 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
780
780
  };
781
781
  };
782
782
 
783
- var DESCRIPTORS$6 = descriptors;
784
- var definePropertyModule$3 = objectDefineProperty;
783
+ var DESCRIPTORS$5 = descriptors;
784
+ var definePropertyModule$2 = objectDefineProperty;
785
785
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
786
786
 
787
- var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
788
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$2(1, value));
787
+ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
788
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
789
789
  } : function (object, key, value) {
790
790
  object[key] = value;
791
791
  return object;
792
792
  };
793
793
 
794
794
  var NATIVE_WEAK_MAP = nativeWeakMap;
795
- var global$e = global$m;
796
- var uncurryThis$c = functionUncurryThis;
797
- var isObject$3 = isObject$8;
795
+ var global$6 = global$e;
796
+ var uncurryThis$5 = functionUncurryThis;
797
+ var isObject = isObject$5;
798
798
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
799
- var hasOwn$8 = hasOwnProperty_1;
799
+ var hasOwn$6 = hasOwnProperty_1;
800
800
  var shared$1 = sharedStore;
801
801
  var sharedKey$1 = sharedKey$3;
802
802
  var hiddenKeys$1 = hiddenKeys$4;
803
803
 
804
804
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
805
- var TypeError$2 = global$e.TypeError;
806
- var WeakMap = global$e.WeakMap;
807
- var set$1, get, has;
805
+ var TypeError$1 = global$6.TypeError;
806
+ var WeakMap = global$6.WeakMap;
807
+ var set, get, has;
808
808
 
809
809
  var enforce = function (it) {
810
- return has(it) ? get(it) : set$1(it, {});
810
+ return has(it) ? get(it) : set(it, {});
811
811
  };
812
812
 
813
813
  var getterFor = function (TYPE) {
814
814
  return function (it) {
815
815
  var state;
816
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
817
- throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
816
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
817
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
818
818
  } return state;
819
819
  };
820
820
  };
821
821
 
822
822
  if (NATIVE_WEAK_MAP || shared$1.state) {
823
823
  var store = shared$1.state || (shared$1.state = new WeakMap());
824
- var wmget = uncurryThis$c(store.get);
825
- var wmhas = uncurryThis$c(store.has);
826
- var wmset = uncurryThis$c(store.set);
827
- set$1 = function (it, metadata) {
828
- if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
824
+ var wmget = uncurryThis$5(store.get);
825
+ var wmhas = uncurryThis$5(store.has);
826
+ var wmset = uncurryThis$5(store.set);
827
+ set = function (it, metadata) {
828
+ if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
829
829
  metadata.facade = it;
830
830
  wmset(store, it, metadata);
831
831
  return metadata;
@@ -839,22 +839,22 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
839
839
  } else {
840
840
  var STATE = sharedKey$1('state');
841
841
  hiddenKeys$1[STATE] = true;
842
- set$1 = function (it, metadata) {
843
- if (hasOwn$8(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
842
+ set = function (it, metadata) {
843
+ if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
844
844
  metadata.facade = it;
845
845
  createNonEnumerableProperty$4(it, STATE, metadata);
846
846
  return metadata;
847
847
  };
848
848
  get = function (it) {
849
- return hasOwn$8(it, STATE) ? it[STATE] : {};
849
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
850
850
  };
851
851
  has = function (it) {
852
- return hasOwn$8(it, STATE);
852
+ return hasOwn$6(it, STATE);
853
853
  };
854
854
  }
855
855
 
856
856
  var internalState = {
857
- set: set$1,
857
+ set: set,
858
858
  get: get,
859
859
  has: has,
860
860
  enforce: enforce,
@@ -867,25 +867,25 @@ var objectPropertyIsEnumerable = {};
867
867
 
868
868
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
869
869
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
870
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
870
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
871
871
 
872
872
  // Nashorn ~ JDK8 bug
873
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
873
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
874
874
 
875
875
  // `Object.prototype.propertyIsEnumerable` method implementation
876
876
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
877
877
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
878
- var descriptor = getOwnPropertyDescriptor$2(this, V);
878
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
879
879
  return !!descriptor && descriptor.enumerable;
880
880
  } : $propertyIsEnumerable;
881
881
 
882
- var DESCRIPTORS$5 = descriptors;
883
- var call$f = functionCall;
882
+ var DESCRIPTORS$4 = descriptors;
883
+ var call$5 = functionCall;
884
884
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
885
885
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
886
886
  var toIndexedObject$1 = toIndexedObject$5;
887
887
  var toPropertyKey = toPropertyKey$2;
888
- var hasOwn$7 = hasOwnProperty_1;
888
+ var hasOwn$5 = hasOwnProperty_1;
889
889
  var IE8_DOM_DEFINE = ie8DomDefine;
890
890
 
891
891
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
@@ -893,28 +893,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
893
893
 
894
894
  // `Object.getOwnPropertyDescriptor` method
895
895
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
896
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
896
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
897
897
  O = toIndexedObject$1(O);
898
898
  P = toPropertyKey(P);
899
899
  if (IE8_DOM_DEFINE) try {
900
900
  return $getOwnPropertyDescriptor(O, P);
901
901
  } catch (error) { /* empty */ }
902
- if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
902
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
903
903
  };
904
904
 
905
905
  var makeBuiltIn$2 = {exports: {}};
906
906
 
907
- var DESCRIPTORS$4 = descriptors;
908
- var hasOwn$6 = hasOwnProperty_1;
907
+ var DESCRIPTORS$3 = descriptors;
908
+ var hasOwn$4 = hasOwnProperty_1;
909
909
 
910
- var FunctionPrototype$1 = Function.prototype;
910
+ var FunctionPrototype = Function.prototype;
911
911
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
912
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
912
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
913
913
 
914
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
914
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
915
915
  // additional protection from minified / mangled / dropped function names
916
916
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
917
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
917
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
918
918
 
919
919
  var functionName = {
920
920
  EXISTS: EXISTS,
@@ -922,20 +922,20 @@ var functionName = {
922
922
  CONFIGURABLE: CONFIGURABLE
923
923
  };
924
924
 
925
- var fails$d = fails$k;
926
- var isCallable$f = isCallable$n;
927
- var hasOwn$5 = hasOwnProperty_1;
928
- var DESCRIPTORS$3 = descriptors;
925
+ var fails$8 = fails$f;
926
+ var isCallable$8 = isCallable$g;
927
+ var hasOwn$3 = hasOwnProperty_1;
928
+ var DESCRIPTORS$2 = descriptors;
929
929
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
930
- var inspectSource$2 = inspectSource$4;
931
- var InternalStateModule$2 = internalState;
930
+ var inspectSource = inspectSource$2;
931
+ var InternalStateModule$1 = internalState;
932
932
 
933
- var enforceInternalState = InternalStateModule$2.enforce;
934
- var getInternalState$2 = InternalStateModule$2.get;
933
+ var enforceInternalState = InternalStateModule$1.enforce;
934
+ var getInternalState$2 = InternalStateModule$1.get;
935
935
  // eslint-disable-next-line es-x/no-object-defineproperty -- safe
936
936
  var defineProperty$3 = Object.defineProperty;
937
937
 
938
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$d(function () {
938
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$8(function () {
939
939
  return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
940
940
  });
941
941
 
@@ -947,21 +947,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
947
947
  }
948
948
  if (options && options.getter) name = 'get ' + name;
949
949
  if (options && options.setter) name = 'set ' + name;
950
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
951
- if (DESCRIPTORS$3) defineProperty$3(value, 'name', { value: name, configurable: true });
950
+ if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
951
+ if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
952
952
  else value.name = name;
953
953
  }
954
- if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
954
+ if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
955
955
  defineProperty$3(value, 'length', { value: options.arity });
956
956
  }
957
957
  try {
958
- if (options && hasOwn$5(options, 'constructor') && options.constructor) {
959
- if (DESCRIPTORS$3) defineProperty$3(value, 'prototype', { writable: false });
958
+ if (options && hasOwn$3(options, 'constructor') && options.constructor) {
959
+ if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
960
960
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
961
961
  } else if (value.prototype) value.prototype = undefined;
962
962
  } catch (error) { /* empty */ }
963
963
  var state = enforceInternalState(value);
964
- if (!hasOwn$5(state, 'source')) {
964
+ if (!hasOwn$3(state, 'source')) {
965
965
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
966
966
  } return value;
967
967
  };
@@ -969,19 +969,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
969
969
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
970
970
  // eslint-disable-next-line no-extend-native -- required
971
971
  Function.prototype.toString = makeBuiltIn$1(function toString() {
972
- return isCallable$f(this) && getInternalState$2(this).source || inspectSource$2(this);
972
+ return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
973
973
  }, 'toString');
974
974
 
975
- var isCallable$e = isCallable$n;
976
- var definePropertyModule$2 = objectDefineProperty;
975
+ var isCallable$7 = isCallable$g;
976
+ var definePropertyModule$1 = objectDefineProperty;
977
977
  var makeBuiltIn = makeBuiltIn$2.exports;
978
978
  var defineGlobalProperty$1 = defineGlobalProperty$3;
979
979
 
980
- var defineBuiltIn$8 = function (O, key, value, options) {
980
+ var defineBuiltIn$4 = function (O, key, value, options) {
981
981
  if (!options) options = {};
982
982
  var simple = options.enumerable;
983
983
  var name = options.name !== undefined ? options.name : key;
984
- if (isCallable$e(value)) makeBuiltIn(value, name, options);
984
+ if (isCallable$7(value)) makeBuiltIn(value, name, options);
985
985
  if (options.global) {
986
986
  if (simple) O[key] = value;
987
987
  else defineGlobalProperty$1(key, value);
@@ -991,7 +991,7 @@ var defineBuiltIn$8 = function (O, key, value, options) {
991
991
  else if (O[key]) simple = true;
992
992
  } catch (error) { /* empty */ }
993
993
  if (simple) O[key] = value;
994
- else definePropertyModule$2.f(O, key, {
994
+ else definePropertyModule$1.f(O, key, {
995
995
  value: value,
996
996
  enumerable: false,
997
997
  configurable: !options.nonConfigurable,
@@ -1019,68 +1019,68 @@ var objectGetOwnPropertySymbols = {};
1019
1019
  // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
1020
1020
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1021
1021
 
1022
- var getBuiltIn$5 = getBuiltIn$9;
1023
- var uncurryThis$b = functionUncurryThis;
1022
+ var getBuiltIn = getBuiltIn$4;
1023
+ var uncurryThis$4 = functionUncurryThis;
1024
1024
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1025
1025
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1026
- var anObject$b = anObject$f;
1026
+ var anObject$4 = anObject$8;
1027
1027
 
1028
- var concat$2 = uncurryThis$b([].concat);
1028
+ var concat$1 = uncurryThis$4([].concat);
1029
1029
 
1030
1030
  // all object keys, includes non-enumerable and symbols
1031
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
1032
- var keys = getOwnPropertyNamesModule.f(anObject$b(it));
1031
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1032
+ var keys = getOwnPropertyNamesModule.f(anObject$4(it));
1033
1033
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1034
- return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1034
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1035
1035
  };
1036
1036
 
1037
- var hasOwn$4 = hasOwnProperty_1;
1037
+ var hasOwn$2 = hasOwnProperty_1;
1038
1038
  var ownKeys = ownKeys$1;
1039
1039
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1040
- var definePropertyModule$1 = objectDefineProperty;
1040
+ var definePropertyModule = objectDefineProperty;
1041
1041
 
1042
1042
  var copyConstructorProperties$1 = function (target, source, exceptions) {
1043
1043
  var keys = ownKeys(source);
1044
- var defineProperty = definePropertyModule$1.f;
1044
+ var defineProperty = definePropertyModule.f;
1045
1045
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1046
1046
  for (var i = 0; i < keys.length; i++) {
1047
1047
  var key = keys[i];
1048
- if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
1048
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1049
1049
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1050
1050
  }
1051
1051
  }
1052
1052
  };
1053
1053
 
1054
- var fails$c = fails$k;
1055
- var isCallable$d = isCallable$n;
1054
+ var fails$7 = fails$f;
1055
+ var isCallable$6 = isCallable$g;
1056
1056
 
1057
1057
  var replacement = /#|\.prototype\./;
1058
1058
 
1059
- var isForced$2 = function (feature, detection) {
1059
+ var isForced$1 = function (feature, detection) {
1060
1060
  var value = data[normalize(feature)];
1061
1061
  return value == POLYFILL ? true
1062
1062
  : value == NATIVE ? false
1063
- : isCallable$d(detection) ? fails$c(detection)
1063
+ : isCallable$6(detection) ? fails$7(detection)
1064
1064
  : !!detection;
1065
1065
  };
1066
1066
 
1067
- var normalize = isForced$2.normalize = function (string) {
1067
+ var normalize = isForced$1.normalize = function (string) {
1068
1068
  return String(string).replace(replacement, '.').toLowerCase();
1069
1069
  };
1070
1070
 
1071
- var data = isForced$2.data = {};
1072
- var NATIVE = isForced$2.NATIVE = 'N';
1073
- var POLYFILL = isForced$2.POLYFILL = 'P';
1071
+ var data = isForced$1.data = {};
1072
+ var NATIVE = isForced$1.NATIVE = 'N';
1073
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1074
1074
 
1075
- var isForced_1 = isForced$2;
1075
+ var isForced_1 = isForced$1;
1076
1076
 
1077
- var global$d = global$m;
1078
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1077
+ var global$5 = global$e;
1078
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1079
1079
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1080
- var defineBuiltIn$7 = defineBuiltIn$8;
1080
+ var defineBuiltIn$3 = defineBuiltIn$4;
1081
1081
  var defineGlobalProperty = defineGlobalProperty$3;
1082
1082
  var copyConstructorProperties = copyConstructorProperties$1;
1083
- var isForced$1 = isForced_1;
1083
+ var isForced = isForced_1;
1084
1084
 
1085
1085
  /*
1086
1086
  options.target - name of the target object
@@ -1103,19 +1103,19 @@ var _export = function (options, source) {
1103
1103
  var STATIC = options.stat;
1104
1104
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1105
1105
  if (GLOBAL) {
1106
- target = global$d;
1106
+ target = global$5;
1107
1107
  } else if (STATIC) {
1108
- target = global$d[TARGET] || defineGlobalProperty(TARGET, {});
1108
+ target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
1109
1109
  } else {
1110
- target = (global$d[TARGET] || {}).prototype;
1110
+ target = (global$5[TARGET] || {}).prototype;
1111
1111
  }
1112
1112
  if (target) for (key in source) {
1113
1113
  sourceProperty = source[key];
1114
1114
  if (options.dontCallGetSet) {
1115
- descriptor = getOwnPropertyDescriptor$1(target, key);
1115
+ descriptor = getOwnPropertyDescriptor(target, key);
1116
1116
  targetProperty = descriptor && descriptor.value;
1117
1117
  } else targetProperty = target[key];
1118
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1118
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1119
1119
  // contained in target
1120
1120
  if (!FORCED && targetProperty !== undefined) {
1121
1121
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1125,22 +1125,22 @@ var _export = function (options, source) {
1125
1125
  if (options.sham || (targetProperty && targetProperty.sham)) {
1126
1126
  createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1127
1127
  }
1128
- defineBuiltIn$7(target, key, sourceProperty, options);
1128
+ defineBuiltIn$3(target, key, sourceProperty, options);
1129
1129
  }
1130
1130
  };
1131
1131
 
1132
- var fails$b = fails$k;
1132
+ var fails$6 = fails$f;
1133
1133
 
1134
- var correctPrototypeGetter = !fails$b(function () {
1134
+ var correctPrototypeGetter = !fails$6(function () {
1135
1135
  function F() { /* empty */ }
1136
1136
  F.prototype.constructor = null;
1137
1137
  // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
1138
1138
  return Object.getPrototypeOf(new F()) !== F.prototype;
1139
1139
  });
1140
1140
 
1141
- var hasOwn$3 = hasOwnProperty_1;
1142
- var isCallable$c = isCallable$n;
1143
- var toObject$2 = toObject$4;
1141
+ var hasOwn$1 = hasOwnProperty_1;
1142
+ var isCallable$5 = isCallable$g;
1143
+ var toObject$1 = toObject$3;
1144
1144
  var sharedKey = sharedKey$3;
1145
1145
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1146
1146
 
@@ -1152,21 +1152,21 @@ var ObjectPrototype = $Object$1.prototype;
1152
1152
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1153
1153
  // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
1154
1154
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1155
- var object = toObject$2(O);
1156
- if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
1155
+ var object = toObject$1(O);
1156
+ if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1157
1157
  var constructor = object.constructor;
1158
- if (isCallable$c(constructor) && object instanceof constructor) {
1158
+ if (isCallable$5(constructor) && object instanceof constructor) {
1159
1159
  return constructor.prototype;
1160
1160
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1161
1161
  };
1162
1162
 
1163
- var fails$a = fails$k;
1164
- var isCallable$b = isCallable$n;
1163
+ var fails$5 = fails$f;
1164
+ var isCallable$4 = isCallable$g;
1165
1165
  var getPrototypeOf$1 = objectGetPrototypeOf;
1166
- var defineBuiltIn$6 = defineBuiltIn$8;
1167
- var wellKnownSymbol$f = wellKnownSymbol$i;
1166
+ var defineBuiltIn$2 = defineBuiltIn$4;
1167
+ var wellKnownSymbol$6 = wellKnownSymbol$9;
1168
1168
 
1169
- var ITERATOR$5 = wellKnownSymbol$f('iterator');
1169
+ var ITERATOR$2 = wellKnownSymbol$6('iterator');
1170
1170
  var BUGGY_SAFARI_ITERATORS$1 = false;
1171
1171
 
1172
1172
  // `%IteratorPrototype%` object
@@ -1184,18 +1184,18 @@ if ([].keys) {
1184
1184
  }
1185
1185
  }
1186
1186
 
1187
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$a(function () {
1187
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$5(function () {
1188
1188
  var test = {};
1189
1189
  // FF44- legacy iterators case
1190
- return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1190
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1191
1191
  });
1192
1192
 
1193
1193
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1194
1194
 
1195
1195
  // `%IteratorPrototype%[@@iterator]()` method
1196
1196
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1197
- if (!isCallable$b(IteratorPrototype$2[ITERATOR$5])) {
1198
- defineBuiltIn$6(IteratorPrototype$2, ITERATOR$5, function () {
1197
+ if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1198
+ defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1199
1199
  return this;
1200
1200
  });
1201
1201
  }
@@ -1206,14 +1206,14 @@ var iteratorsCore = {
1206
1206
  };
1207
1207
 
1208
1208
  var defineProperty$2 = objectDefineProperty.f;
1209
- var hasOwn$2 = hasOwnProperty_1;
1210
- var wellKnownSymbol$e = wellKnownSymbol$i;
1209
+ var hasOwn = hasOwnProperty_1;
1210
+ var wellKnownSymbol$5 = wellKnownSymbol$9;
1211
1211
 
1212
- var TO_STRING_TAG$3 = wellKnownSymbol$e('toStringTag');
1212
+ var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1213
1213
 
1214
- var setToStringTag$3 = function (target, TAG, STATIC) {
1214
+ var setToStringTag$2 = function (target, TAG, STATIC) {
1215
1215
  if (target && !STATIC) target = target.prototype;
1216
- if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1216
+ if (target && !hasOwn(target, TO_STRING_TAG$3)) {
1217
1217
  defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1218
1218
  }
1219
1219
  };
@@ -1221,33 +1221,33 @@ var setToStringTag$3 = function (target, TAG, STATIC) {
1221
1221
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1222
1222
  var create$1 = objectCreate;
1223
1223
  var createPropertyDescriptor = createPropertyDescriptor$3;
1224
- var setToStringTag$2 = setToStringTag$3;
1225
- var Iterators$4 = iterators;
1224
+ var setToStringTag$1 = setToStringTag$2;
1225
+ var Iterators$2 = iterators;
1226
1226
 
1227
1227
  var returnThis$1 = function () { return this; };
1228
1228
 
1229
1229
  var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1230
1230
  var TO_STRING_TAG = NAME + ' Iterator';
1231
1231
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1232
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1233
- Iterators$4[TO_STRING_TAG] = returnThis$1;
1232
+ setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1233
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
1234
1234
  return IteratorConstructor;
1235
1235
  };
1236
1236
 
1237
- var isCallable$a = isCallable$n;
1237
+ var isCallable$3 = isCallable$g;
1238
1238
 
1239
1239
  var $String$1 = String;
1240
- var $TypeError$7 = TypeError;
1240
+ var $TypeError$1 = TypeError;
1241
1241
 
1242
1242
  var aPossiblePrototype$1 = function (argument) {
1243
- if (typeof argument == 'object' || isCallable$a(argument)) return argument;
1244
- throw $TypeError$7("Can't set " + $String$1(argument) + ' as a prototype');
1243
+ if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1244
+ throw $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
1245
1245
  };
1246
1246
 
1247
1247
  /* eslint-disable no-proto -- safe */
1248
1248
 
1249
- var uncurryThis$a = functionUncurryThis;
1250
- var anObject$a = anObject$f;
1249
+ var uncurryThis$3 = functionUncurryThis;
1250
+ var anObject$3 = anObject$8;
1251
1251
  var aPossiblePrototype = aPossiblePrototype$1;
1252
1252
 
1253
1253
  // `Object.setPrototypeOf` method
@@ -1260,12 +1260,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1260
1260
  var setter;
1261
1261
  try {
1262
1262
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1263
- setter = uncurryThis$a(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1263
+ setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1264
1264
  setter(test, []);
1265
1265
  CORRECT_SETTER = test instanceof Array;
1266
1266
  } catch (error) { /* empty */ }
1267
1267
  return function setPrototypeOf(O, proto) {
1268
- anObject$a(O);
1268
+ anObject$3(O);
1269
1269
  aPossiblePrototype(proto);
1270
1270
  if (CORRECT_SETTER) setter(O, proto);
1271
1271
  else O.__proto__ = proto;
@@ -1273,25 +1273,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1273
1273
  };
1274
1274
  }() : undefined);
1275
1275
 
1276
- var $$a = _export;
1277
- var call$e = functionCall;
1276
+ var $$2 = _export;
1277
+ var call$4 = functionCall;
1278
1278
  var FunctionName = functionName;
1279
- var isCallable$9 = isCallable$n;
1279
+ var isCallable$2 = isCallable$g;
1280
1280
  var createIteratorConstructor = createIteratorConstructor$1;
1281
1281
  var getPrototypeOf = objectGetPrototypeOf;
1282
- var setPrototypeOf$1 = objectSetPrototypeOf;
1283
- var setToStringTag$1 = setToStringTag$3;
1282
+ var setPrototypeOf = objectSetPrototypeOf;
1283
+ var setToStringTag = setToStringTag$2;
1284
1284
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1285
- var defineBuiltIn$5 = defineBuiltIn$8;
1286
- var wellKnownSymbol$d = wellKnownSymbol$i;
1287
- var Iterators$3 = iterators;
1285
+ var defineBuiltIn$1 = defineBuiltIn$4;
1286
+ var wellKnownSymbol$4 = wellKnownSymbol$9;
1287
+ var Iterators$1 = iterators;
1288
1288
  var IteratorsCore = iteratorsCore;
1289
1289
 
1290
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1290
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1291
1291
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1292
1292
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1293
1293
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1294
- var ITERATOR$4 = wellKnownSymbol$d('iterator');
1294
+ var ITERATOR$1 = wellKnownSymbol$4('iterator');
1295
1295
  var KEYS = 'keys';
1296
1296
  var VALUES = 'values';
1297
1297
  var ENTRIES = 'entries';
@@ -1314,7 +1314,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1314
1314
  var TO_STRING_TAG = NAME + ' Iterator';
1315
1315
  var INCORRECT_VALUES_NAME = false;
1316
1316
  var IterablePrototype = Iterable.prototype;
1317
- var nativeIterator = IterablePrototype[ITERATOR$4]
1317
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1318
1318
  || IterablePrototype['@@iterator']
1319
1319
  || DEFAULT && IterablePrototype[DEFAULT];
1320
1320
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
@@ -1326,24 +1326,24 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1326
1326
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1327
1327
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1328
1328
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1329
- if (setPrototypeOf$1) {
1330
- setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1331
- } else if (!isCallable$9(CurrentIteratorPrototype[ITERATOR$4])) {
1332
- defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1329
+ if (setPrototypeOf) {
1330
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1331
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
1332
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1333
1333
  }
1334
1334
  }
1335
1335
  // Set @@toStringTag to native iterators
1336
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1336
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1337
1337
  }
1338
1338
  }
1339
1339
 
1340
1340
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1341
- if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1341
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1342
1342
  if (CONFIGURABLE_FUNCTION_NAME) {
1343
1343
  createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1344
1344
  } else {
1345
1345
  INCORRECT_VALUES_NAME = true;
1346
- defaultIterator = function values() { return call$e(nativeIterator, this); };
1346
+ defaultIterator = function values() { return call$4(nativeIterator, this); };
1347
1347
  }
1348
1348
  }
1349
1349
 
@@ -1356,31 +1356,31 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1356
1356
  };
1357
1357
  if (FORCED) for (KEY in methods) {
1358
1358
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1359
- defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
1359
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1360
1360
  }
1361
- } else $$a({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1361
+ } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1362
1362
  }
1363
1363
 
1364
1364
  // define iterator
1365
- if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1366
- defineBuiltIn$5(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1365
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1366
+ defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1367
1367
  }
1368
- Iterators$3[NAME] = defaultIterator;
1368
+ Iterators$1[NAME] = defaultIterator;
1369
1369
 
1370
1370
  return methods;
1371
1371
  };
1372
1372
 
1373
1373
  var toIndexedObject = toIndexedObject$5;
1374
1374
  var addToUnscopables = addToUnscopables$1;
1375
- var Iterators$2 = iterators;
1376
- var InternalStateModule$1 = internalState;
1375
+ var Iterators = iterators;
1376
+ var InternalStateModule = internalState;
1377
1377
  var defineProperty$1 = objectDefineProperty.f;
1378
1378
  var defineIterator = defineIterator$1;
1379
- var DESCRIPTORS$2 = descriptors;
1379
+ var DESCRIPTORS$1 = descriptors;
1380
1380
 
1381
1381
  var ARRAY_ITERATOR = 'Array Iterator';
1382
- var setInternalState$1 = InternalStateModule$1.set;
1383
- var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1382
+ var setInternalState = InternalStateModule.set;
1383
+ var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1384
1384
 
1385
1385
  // `Array.prototype.entries` method
1386
1386
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -1393,7 +1393,7 @@ var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1393
1393
  // `CreateArrayIterator` internal method
1394
1394
  // https://tc39.es/ecma262/#sec-createarrayiterator
1395
1395
  var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1396
- setInternalState$1(this, {
1396
+ setInternalState(this, {
1397
1397
  type: ARRAY_ITERATOR,
1398
1398
  target: toIndexedObject(iterated), // target
1399
1399
  index: 0, // next index
@@ -1418,7 +1418,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1418
1418
  // argumentsList[@@iterator] is %ArrayProto_values%
1419
1419
  // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1420
1420
  // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1421
- var values = Iterators$2.Arguments = Iterators$2.Array;
1421
+ var values = Iterators.Arguments = Iterators.Array;
1422
1422
 
1423
1423
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1424
1424
  addToUnscopables('keys');
@@ -1426,7 +1426,7 @@ addToUnscopables('values');
1426
1426
  addToUnscopables('entries');
1427
1427
 
1428
1428
  // V8 ~ Chrome 45- bug
1429
- if (DESCRIPTORS$2 && values.name !== 'values') try {
1429
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1430
1430
  defineProperty$1(values, 'name', { value: 'values' });
1431
1431
  } catch (error) { /* empty */ }
1432
1432
 
@@ -1474,24 +1474,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1474
1474
 
1475
1475
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1476
1476
 
1477
- var global$c = global$m;
1477
+ var global$4 = global$e;
1478
1478
  var DOMIterables = domIterables;
1479
1479
  var DOMTokenListPrototype = domTokenListPrototype;
1480
1480
  var ArrayIteratorMethods = es_array_iterator;
1481
1481
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1482
- var wellKnownSymbol$c = wellKnownSymbol$i;
1482
+ var wellKnownSymbol$3 = wellKnownSymbol$9;
1483
1483
 
1484
- var ITERATOR$3 = wellKnownSymbol$c('iterator');
1485
- var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1484
+ var ITERATOR = wellKnownSymbol$3('iterator');
1485
+ var TO_STRING_TAG$2 = wellKnownSymbol$3('toStringTag');
1486
1486
  var ArrayValues = ArrayIteratorMethods.values;
1487
1487
 
1488
1488
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1489
1489
  if (CollectionPrototype) {
1490
1490
  // some Chrome versions have non-configurable methods on DOMTokenList
1491
- if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
1492
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$3, ArrayValues);
1491
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1492
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1493
1493
  } catch (error) {
1494
- CollectionPrototype[ITERATOR$3] = ArrayValues;
1494
+ CollectionPrototype[ITERATOR] = ArrayValues;
1495
1495
  }
1496
1496
  if (!CollectionPrototype[TO_STRING_TAG$2]) {
1497
1497
  createNonEnumerableProperty$1(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
@@ -1508,32 +1508,32 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1508
1508
  };
1509
1509
 
1510
1510
  for (var COLLECTION_NAME in DOMIterables) {
1511
- handlePrototype(global$c[COLLECTION_NAME] && global$c[COLLECTION_NAME].prototype, COLLECTION_NAME);
1511
+ handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1512
1512
  }
1513
1513
 
1514
1514
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1515
1515
 
1516
- var DESCRIPTORS$1 = descriptors;
1517
- var uncurryThis$9 = functionUncurryThis;
1518
- var call$d = functionCall;
1519
- var fails$9 = fails$k;
1516
+ var DESCRIPTORS = descriptors;
1517
+ var uncurryThis$2 = functionUncurryThis;
1518
+ var call$3 = functionCall;
1519
+ var fails$4 = fails$f;
1520
1520
  var objectKeys = objectKeys$2;
1521
1521
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1522
1522
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1523
- var toObject$1 = toObject$4;
1523
+ var toObject = toObject$3;
1524
1524
  var IndexedObject = indexedObject;
1525
1525
 
1526
1526
  // eslint-disable-next-line es-x/no-object-assign -- safe
1527
1527
  var $assign = Object.assign;
1528
1528
  // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
1529
1529
  var defineProperty = Object.defineProperty;
1530
- var concat$1 = uncurryThis$9([].concat);
1530
+ var concat = uncurryThis$2([].concat);
1531
1531
 
1532
1532
  // `Object.assign` method
1533
1533
  // https://tc39.es/ecma262/#sec-object.assign
1534
- var objectAssign = !$assign || fails$9(function () {
1534
+ var objectAssign = !$assign || fails$4(function () {
1535
1535
  // should have correct order of operations (Edge bug)
1536
- if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1536
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1537
1537
  enumerable: true,
1538
1538
  get: function () {
1539
1539
  defineProperty(this, 'b', {
@@ -1552,31 +1552,31 @@ var objectAssign = !$assign || fails$9(function () {
1552
1552
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1553
1553
  return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1554
1554
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1555
- var T = toObject$1(target);
1555
+ var T = toObject(target);
1556
1556
  var argumentsLength = arguments.length;
1557
1557
  var index = 1;
1558
1558
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1559
1559
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
1560
1560
  while (argumentsLength > index) {
1561
1561
  var S = IndexedObject(arguments[index++]);
1562
- var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1562
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1563
1563
  var length = keys.length;
1564
1564
  var j = 0;
1565
1565
  var key;
1566
1566
  while (length > j) {
1567
1567
  key = keys[j++];
1568
- if (!DESCRIPTORS$1 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
1568
+ if (!DESCRIPTORS || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1569
1569
  }
1570
1570
  } return T;
1571
1571
  } : $assign;
1572
1572
 
1573
- var $$9 = _export;
1573
+ var $$1 = _export;
1574
1574
  var assign = objectAssign;
1575
1575
 
1576
1576
  // `Object.assign` method
1577
1577
  // https://tc39.es/ecma262/#sec-object.assign
1578
1578
  // eslint-disable-next-line es-x/no-object-assign -- required for testing
1579
- $$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1579
+ $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1580
1580
  assign: assign
1581
1581
  });
1582
1582
 
@@ -1631,42 +1631,9 @@ const useEnvironment = () => {
1631
1631
  return context;
1632
1632
  };
1633
1633
 
1634
- var classof$6 = classofRaw$1;
1635
- var global$b = global$m;
1636
-
1637
- var engineIsNode = classof$6(global$b.process) == 'process';
1638
-
1639
- var getBuiltIn$4 = getBuiltIn$9;
1640
- var definePropertyModule = objectDefineProperty;
1641
- var wellKnownSymbol$b = wellKnownSymbol$i;
1642
- var DESCRIPTORS = descriptors;
1643
-
1644
- var SPECIES$3 = wellKnownSymbol$b('species');
1645
-
1646
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1647
- var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1648
- var defineProperty = definePropertyModule.f;
1649
-
1650
- if (DESCRIPTORS && Constructor && !Constructor[SPECIES$3]) {
1651
- defineProperty(Constructor, SPECIES$3, {
1652
- configurable: true,
1653
- get: function () { return this; }
1654
- });
1655
- }
1656
- };
1657
-
1658
- var isPrototypeOf$2 = objectIsPrototypeOf;
1659
-
1660
- var $TypeError$6 = TypeError;
1661
-
1662
- var anInstance$1 = function (it, Prototype) {
1663
- if (isPrototypeOf$2(Prototype, it)) return it;
1664
- throw $TypeError$6('Incorrect invocation');
1665
- };
1666
-
1667
- var wellKnownSymbol$a = wellKnownSymbol$i;
1634
+ var wellKnownSymbol$2 = wellKnownSymbol$9;
1668
1635
 
1669
- var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
1636
+ var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1670
1637
  var test = {};
1671
1638
 
1672
1639
  test[TO_STRING_TAG$1] = 'z';
@@ -1674,11 +1641,11 @@ test[TO_STRING_TAG$1] = 'z';
1674
1641
  var toStringTagSupport = String(test) === '[object z]';
1675
1642
 
1676
1643
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1677
- var isCallable$8 = isCallable$n;
1644
+ var isCallable$1 = isCallable$g;
1678
1645
  var classofRaw = classofRaw$1;
1679
- var wellKnownSymbol$9 = wellKnownSymbol$i;
1646
+ var wellKnownSymbol$1 = wellKnownSymbol$9;
1680
1647
 
1681
- var TO_STRING_TAG = wellKnownSymbol$9('toStringTag');
1648
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1682
1649
  var $Object = Object;
1683
1650
 
1684
1651
  // ES3 wrong here
@@ -1692,7 +1659,7 @@ var tryGet = function (it, key) {
1692
1659
  };
1693
1660
 
1694
1661
  // getting tag from ES6+ `Object.prototype.toString`
1695
- var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1662
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1696
1663
  var O, tag, result;
1697
1664
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1698
1665
  // @@toStringTag case
@@ -1700,1309 +1667,157 @@ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1700
1667
  // builtinTag case
1701
1668
  : CORRECT_ARGUMENTS ? classofRaw(O)
1702
1669
  // ES3 arguments fallback
1703
- : (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1704
- };
1705
-
1706
- var uncurryThis$8 = functionUncurryThis;
1707
- var fails$8 = fails$k;
1708
- var isCallable$7 = isCallable$n;
1709
- var classof$4 = classof$5;
1710
- var getBuiltIn$3 = getBuiltIn$9;
1711
- var inspectSource$1 = inspectSource$4;
1712
-
1713
- var noop = function () { /* empty */ };
1714
- var empty = [];
1715
- var construct = getBuiltIn$3('Reflect', 'construct');
1716
- var constructorRegExp = /^\s*(?:class|function)\b/;
1717
- var exec$1 = uncurryThis$8(constructorRegExp.exec);
1718
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1719
-
1720
- var isConstructorModern = function isConstructor(argument) {
1721
- if (!isCallable$7(argument)) return false;
1722
- try {
1723
- construct(noop, empty, argument);
1724
- return true;
1725
- } catch (error) {
1726
- return false;
1727
- }
1728
- };
1729
-
1730
- var isConstructorLegacy = function isConstructor(argument) {
1731
- if (!isCallable$7(argument)) return false;
1732
- switch (classof$4(argument)) {
1733
- case 'AsyncFunction':
1734
- case 'GeneratorFunction':
1735
- case 'AsyncGeneratorFunction': return false;
1736
- }
1737
- try {
1738
- // we can't check .prototype since constructors produced by .bind haven't it
1739
- // `Function#toString` throws on some built-it function in some legacy engines
1740
- // (for example, `DOMQuad` and similar in FF41-)
1741
- return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
1742
- } catch (error) {
1743
- return true;
1744
- }
1670
+ : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1745
1671
  };
1746
1672
 
1747
- isConstructorLegacy.sham = true;
1673
+ var classof$1 = classof$2;
1748
1674
 
1749
- // `IsConstructor` abstract operation
1750
- // https://tc39.es/ecma262/#sec-isconstructor
1751
- var isConstructor$1 = !construct || fails$8(function () {
1752
- var called;
1753
- return isConstructorModern(isConstructorModern.call)
1754
- || !isConstructorModern(Object)
1755
- || !isConstructorModern(function () { called = true; })
1756
- || called;
1757
- }) ? isConstructorLegacy : isConstructorModern;
1758
-
1759
- var isConstructor = isConstructor$1;
1760
- var tryToString$2 = tryToString$4;
1761
-
1762
- var $TypeError$5 = TypeError;
1675
+ var $String = String;
1763
1676
 
1764
- // `Assert: IsConstructor(argument) is true`
1765
- var aConstructor$1 = function (argument) {
1766
- if (isConstructor(argument)) return argument;
1767
- throw $TypeError$5(tryToString$2(argument) + ' is not a constructor');
1677
+ var toString$2 = function (argument) {
1678
+ if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1679
+ return $String(argument);
1768
1680
  };
1769
1681
 
1770
- var anObject$9 = anObject$f;
1771
- var aConstructor = aConstructor$1;
1772
- var wellKnownSymbol$8 = wellKnownSymbol$i;
1682
+ var anObject$2 = anObject$8;
1773
1683
 
1774
- var SPECIES$2 = wellKnownSymbol$8('species');
1775
-
1776
- // `SpeciesConstructor` abstract operation
1777
- // https://tc39.es/ecma262/#sec-speciesconstructor
1778
- var speciesConstructor$2 = function (O, defaultConstructor) {
1779
- var C = anObject$9(O).constructor;
1780
- var S;
1781
- return C === undefined || (S = anObject$9(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
1684
+ // `RegExp.prototype.flags` getter implementation
1685
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1686
+ var regexpFlags$1 = function () {
1687
+ var that = anObject$2(this);
1688
+ var result = '';
1689
+ if (that.hasIndices) result += 'd';
1690
+ if (that.global) result += 'g';
1691
+ if (that.ignoreCase) result += 'i';
1692
+ if (that.multiline) result += 'm';
1693
+ if (that.dotAll) result += 's';
1694
+ if (that.unicode) result += 'u';
1695
+ if (that.unicodeSets) result += 'v';
1696
+ if (that.sticky) result += 'y';
1697
+ return result;
1782
1698
  };
1783
1699
 
1784
- var NATIVE_BIND$1 = functionBindNative;
1700
+ var fails$3 = fails$f;
1701
+ var global$3 = global$e;
1785
1702
 
1786
- var FunctionPrototype = Function.prototype;
1787
- var apply$2 = FunctionPrototype.apply;
1788
- var call$c = FunctionPrototype.call;
1703
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1704
+ var $RegExp$2 = global$3.RegExp;
1789
1705
 
1790
- // eslint-disable-next-line es-x/no-reflect -- safe
1791
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$c.bind(apply$2) : function () {
1792
- return call$c.apply(apply$2, arguments);
1706
+ var UNSUPPORTED_Y$1 = fails$3(function () {
1707
+ var re = $RegExp$2('a', 'y');
1708
+ re.lastIndex = 2;
1709
+ return re.exec('abcd') != null;
1793
1710
  });
1794
1711
 
1795
- var uncurryThis$7 = functionUncurryThis;
1796
- var aCallable$5 = aCallable$7;
1797
- var NATIVE_BIND = functionBindNative;
1712
+ // UC Browser bug
1713
+ // https://github.com/zloirock/core-js/issues/1008
1714
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$3(function () {
1715
+ return !$RegExp$2('a', 'y').sticky;
1716
+ });
1798
1717
 
1799
- var bind$4 = uncurryThis$7(uncurryThis$7.bind);
1718
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$3(function () {
1719
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1720
+ var re = $RegExp$2('^r', 'gy');
1721
+ re.lastIndex = 2;
1722
+ return re.exec('str') != null;
1723
+ });
1800
1724
 
1801
- // optional / simple context binding
1802
- var functionBindContext = function (fn, that) {
1803
- aCallable$5(fn);
1804
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1805
- return fn.apply(that, arguments);
1806
- };
1725
+ var regexpStickyHelpers = {
1726
+ BROKEN_CARET: BROKEN_CARET,
1727
+ MISSED_STICKY: MISSED_STICKY,
1728
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
1807
1729
  };
1808
1730
 
1809
- var uncurryThis$6 = functionUncurryThis;
1810
-
1811
- var arraySlice$1 = uncurryThis$6([].slice);
1812
-
1813
- var $TypeError$4 = TypeError;
1731
+ var fails$2 = fails$f;
1732
+ var global$2 = global$e;
1814
1733
 
1815
- var validateArgumentsLength$1 = function (passed, required) {
1816
- if (passed < required) throw $TypeError$4('Not enough arguments');
1817
- return passed;
1818
- };
1734
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1735
+ var $RegExp$1 = global$2.RegExp;
1819
1736
 
1820
- var userAgent$2 = engineUserAgent;
1737
+ var regexpUnsupportedDotAll = fails$2(function () {
1738
+ var re = $RegExp$1('.', 's');
1739
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
1740
+ });
1821
1741
 
1822
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1742
+ var fails$1 = fails$f;
1743
+ var global$1 = global$e;
1823
1744
 
1824
- var global$a = global$m;
1825
- var apply$1 = functionApply;
1826
- var bind$3 = functionBindContext;
1827
- var isCallable$6 = isCallable$n;
1828
- var hasOwn$1 = hasOwnProperty_1;
1829
- var fails$7 = fails$k;
1830
- var html = html$2;
1831
- var arraySlice = arraySlice$1;
1832
- var createElement = documentCreateElement$2;
1833
- var validateArgumentsLength = validateArgumentsLength$1;
1834
- var IS_IOS$1 = engineIsIos;
1835
- var IS_NODE$3 = engineIsNode;
1836
-
1837
- var set = global$a.setImmediate;
1838
- var clear = global$a.clearImmediate;
1839
- var process$2 = global$a.process;
1840
- var Dispatch = global$a.Dispatch;
1841
- var Function$1 = global$a.Function;
1842
- var MessageChannel = global$a.MessageChannel;
1843
- var String$1 = global$a.String;
1844
- var counter = 0;
1845
- var queue$1 = {};
1846
- var ONREADYSTATECHANGE = 'onreadystatechange';
1847
- var location, defer, channel, port;
1848
-
1849
- try {
1850
- // Deno throws a ReferenceError on `location` access without `--location` flag
1851
- location = global$a.location;
1852
- } catch (error) { /* empty */ }
1745
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1746
+ var $RegExp = global$1.RegExp;
1853
1747
 
1854
- var run = function (id) {
1855
- if (hasOwn$1(queue$1, id)) {
1856
- var fn = queue$1[id];
1857
- delete queue$1[id];
1858
- fn();
1859
- }
1860
- };
1748
+ var regexpUnsupportedNcg = fails$1(function () {
1749
+ var re = $RegExp('(?<a>b)', 'g');
1750
+ return re.exec('b').groups.a !== 'b' ||
1751
+ 'b'.replace(re, '$<a>c') !== 'bc';
1752
+ });
1861
1753
 
1862
- var runner = function (id) {
1863
- return function () {
1864
- run(id);
1865
- };
1866
- };
1754
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1755
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1756
+ var call$2 = functionCall;
1757
+ var uncurryThis$1 = functionUncurryThis;
1758
+ var toString$1 = toString$2;
1759
+ var regexpFlags = regexpFlags$1;
1760
+ var stickyHelpers = regexpStickyHelpers;
1761
+ var shared = shared$4.exports;
1762
+ var create = objectCreate;
1763
+ var getInternalState = internalState.get;
1764
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1765
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1867
1766
 
1868
- var listener = function (event) {
1869
- run(event.data);
1870
- };
1767
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1768
+ var nativeExec = RegExp.prototype.exec;
1769
+ var patchedExec = nativeExec;
1770
+ var charAt = uncurryThis$1(''.charAt);
1771
+ var indexOf = uncurryThis$1(''.indexOf);
1772
+ var replace = uncurryThis$1(''.replace);
1773
+ var stringSlice = uncurryThis$1(''.slice);
1871
1774
 
1872
- var post = function (id) {
1873
- // old engines have not location.origin
1874
- global$a.postMessage(String$1(id), location.protocol + '//' + location.host);
1875
- };
1775
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1776
+ var re1 = /a/;
1777
+ var re2 = /b*/g;
1778
+ call$2(nativeExec, re1, 'a');
1779
+ call$2(nativeExec, re2, 'a');
1780
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1781
+ })();
1876
1782
 
1877
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1878
- if (!set || !clear) {
1879
- set = function setImmediate(handler) {
1880
- validateArgumentsLength(arguments.length, 1);
1881
- var fn = isCallable$6(handler) ? handler : Function$1(handler);
1882
- var args = arraySlice(arguments, 1);
1883
- queue$1[++counter] = function () {
1884
- apply$1(fn, undefined, args);
1885
- };
1886
- defer(counter);
1887
- return counter;
1888
- };
1889
- clear = function clearImmediate(id) {
1890
- delete queue$1[id];
1891
- };
1892
- // Node.js 0.8-
1893
- if (IS_NODE$3) {
1894
- defer = function (id) {
1895
- process$2.nextTick(runner(id));
1896
- };
1897
- // Sphere (JS game engine) Dispatch API
1898
- } else if (Dispatch && Dispatch.now) {
1899
- defer = function (id) {
1900
- Dispatch.now(runner(id));
1901
- };
1902
- // Browsers with MessageChannel, includes WebWorkers
1903
- // except iOS - https://github.com/zloirock/core-js/issues/624
1904
- } else if (MessageChannel && !IS_IOS$1) {
1905
- channel = new MessageChannel();
1906
- port = channel.port2;
1907
- channel.port1.onmessage = listener;
1908
- defer = bind$3(port.postMessage, port);
1909
- // Browsers with postMessage, skip WebWorkers
1910
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1911
- } else if (
1912
- global$a.addEventListener &&
1913
- isCallable$6(global$a.postMessage) &&
1914
- !global$a.importScripts &&
1915
- location && location.protocol !== 'file:' &&
1916
- !fails$7(post)
1917
- ) {
1918
- defer = post;
1919
- global$a.addEventListener('message', listener, false);
1920
- // IE8-
1921
- } else if (ONREADYSTATECHANGE in createElement('script')) {
1922
- defer = function (id) {
1923
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1924
- html.removeChild(this);
1925
- run(id);
1926
- };
1927
- };
1928
- // Rest old browsers
1929
- } else {
1930
- defer = function (id) {
1931
- setTimeout(runner(id), 0);
1932
- };
1933
- }
1934
- }
1783
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1935
1784
 
1936
- var task$1 = {
1937
- set: set,
1938
- clear: clear
1939
- };
1785
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1786
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1940
1787
 
1941
- var userAgent$1 = engineUserAgent;
1942
- var global$9 = global$m;
1788
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1943
1789
 
1944
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$9.Pebble !== undefined;
1790
+ if (PATCH) {
1791
+ patchedExec = function exec(string) {
1792
+ var re = this;
1793
+ var state = getInternalState(re);
1794
+ var str = toString$1(string);
1795
+ var raw = state.raw;
1796
+ var result, reCopy, lastIndex, match, i, object, group;
1945
1797
 
1946
- var userAgent = engineUserAgent;
1798
+ if (raw) {
1799
+ raw.lastIndex = re.lastIndex;
1800
+ result = call$2(patchedExec, raw, str);
1801
+ re.lastIndex = raw.lastIndex;
1802
+ return result;
1803
+ }
1947
1804
 
1948
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1949
-
1950
- var global$8 = global$m;
1951
- var bind$2 = functionBindContext;
1952
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1953
- var macrotask = task$1.set;
1954
- var IS_IOS = engineIsIos;
1955
- var IS_IOS_PEBBLE = engineIsIosPebble;
1956
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1957
- var IS_NODE$2 = engineIsNode;
1958
-
1959
- var MutationObserver = global$8.MutationObserver || global$8.WebKitMutationObserver;
1960
- var document$2 = global$8.document;
1961
- var process$1 = global$8.process;
1962
- var Promise$1 = global$8.Promise;
1963
- // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1964
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$8, 'queueMicrotask');
1965
- var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1966
-
1967
- var flush, head, last, notify$1, toggle, node, promise, then;
1968
-
1969
- // modern engines have queueMicrotask method
1970
- if (!queueMicrotask) {
1971
- flush = function () {
1972
- var parent, fn;
1973
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1974
- while (head) {
1975
- fn = head.fn;
1976
- head = head.next;
1977
- try {
1978
- fn();
1979
- } catch (error) {
1980
- if (head) notify$1();
1981
- else last = undefined;
1982
- throw error;
1983
- }
1984
- } last = undefined;
1985
- if (parent) parent.enter();
1986
- };
1987
-
1988
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1989
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1990
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1991
- toggle = true;
1992
- node = document$2.createTextNode('');
1993
- new MutationObserver(flush).observe(node, { characterData: true });
1994
- notify$1 = function () {
1995
- node.data = toggle = !toggle;
1996
- };
1997
- // environments with maybe non-completely correct, but existent Promise
1998
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1999
- // Promise.resolve without an argument throws an error in LG WebOS 2
2000
- promise = Promise$1.resolve(undefined);
2001
- // workaround of WebKit ~ iOS Safari 10.1 bug
2002
- promise.constructor = Promise$1;
2003
- then = bind$2(promise.then, promise);
2004
- notify$1 = function () {
2005
- then(flush);
2006
- };
2007
- // Node.js without promises
2008
- } else if (IS_NODE$2) {
2009
- notify$1 = function () {
2010
- process$1.nextTick(flush);
2011
- };
2012
- // for other environments - macrotask based on:
2013
- // - setImmediate
2014
- // - MessageChannel
2015
- // - window.postMessage
2016
- // - onreadystatechange
2017
- // - setTimeout
2018
- } else {
2019
- // strange IE + webpack dev server bug - use .bind(global)
2020
- macrotask = bind$2(macrotask, global$8);
2021
- notify$1 = function () {
2022
- macrotask(flush);
2023
- };
2024
- }
2025
- }
2026
-
2027
- var microtask$1 = queueMicrotask || function (fn) {
2028
- var task = { fn: fn, next: undefined };
2029
- if (last) last.next = task;
2030
- if (!head) {
2031
- head = task;
2032
- notify$1();
2033
- } last = task;
2034
- };
2035
-
2036
- var global$7 = global$m;
2037
-
2038
- var hostReportErrors$1 = function (a, b) {
2039
- var console = global$7.console;
2040
- if (console && console.error) {
2041
- arguments.length == 1 ? console.error(a) : console.error(a, b);
2042
- }
2043
- };
2044
-
2045
- var perform$3 = function (exec) {
2046
- try {
2047
- return { error: false, value: exec() };
2048
- } catch (error) {
2049
- return { error: true, value: error };
2050
- }
2051
- };
2052
-
2053
- var Queue$1 = function () {
2054
- this.head = null;
2055
- this.tail = null;
2056
- };
2057
-
2058
- Queue$1.prototype = {
2059
- add: function (item) {
2060
- var entry = { item: item, next: null };
2061
- if (this.head) this.tail.next = entry;
2062
- else this.head = entry;
2063
- this.tail = entry;
2064
- },
2065
- get: function () {
2066
- var entry = this.head;
2067
- if (entry) {
2068
- this.head = entry.next;
2069
- if (this.tail === entry) this.tail = null;
2070
- return entry.item;
2071
- }
2072
- }
2073
- };
2074
-
2075
- var queue = Queue$1;
2076
-
2077
- var global$6 = global$m;
2078
-
2079
- var promiseNativeConstructor = global$6.Promise;
2080
-
2081
- /* global Deno -- Deno case */
2082
-
2083
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2084
-
2085
- var IS_DENO$1 = engineIsDeno;
2086
- var IS_NODE$1 = engineIsNode;
2087
-
2088
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2089
- && typeof window == 'object'
2090
- && typeof document == 'object';
2091
-
2092
- var global$5 = global$m;
2093
- var NativePromiseConstructor$4 = promiseNativeConstructor;
2094
- var isCallable$5 = isCallable$n;
2095
- var isForced = isForced_1;
2096
- var inspectSource = inspectSource$4;
2097
- var wellKnownSymbol$7 = wellKnownSymbol$i;
2098
- var IS_BROWSER = engineIsBrowser;
2099
- var IS_DENO = engineIsDeno;
2100
- var V8_VERSION = engineV8Version;
2101
-
2102
- NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
2103
- var SPECIES$1 = wellKnownSymbol$7('species');
2104
- var SUBCLASSING = false;
2105
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$5.PromiseRejectionEvent);
2106
-
2107
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2108
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$4);
2109
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$4);
2110
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2111
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2112
- // We can't detect it synchronously, so just check versions
2113
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2114
- // We can't use @@species feature detection in V8 since it causes
2115
- // deoptimization and performance degradation
2116
- // https://github.com/zloirock/core-js/issues/679
2117
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2118
- // Detect correctness of subclassing with @@species support
2119
- var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
2120
- var FakePromise = function (exec) {
2121
- exec(function () { /* empty */ }, function () { /* empty */ });
2122
- };
2123
- var constructor = promise.constructor = {};
2124
- constructor[SPECIES$1] = FakePromise;
2125
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2126
- if (!SUBCLASSING) return true;
2127
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2128
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2129
- });
2130
-
2131
- var promiseConstructorDetection = {
2132
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2133
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2134
- SUBCLASSING: SUBCLASSING
2135
- };
2136
-
2137
- var newPromiseCapability$2 = {};
2138
-
2139
- var aCallable$4 = aCallable$7;
2140
-
2141
- var PromiseCapability = function (C) {
2142
- var resolve, reject;
2143
- this.promise = new C(function ($$resolve, $$reject) {
2144
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
2145
- resolve = $$resolve;
2146
- reject = $$reject;
2147
- });
2148
- this.resolve = aCallable$4(resolve);
2149
- this.reject = aCallable$4(reject);
2150
- };
2151
-
2152
- // `NewPromiseCapability` abstract operation
2153
- // https://tc39.es/ecma262/#sec-newpromisecapability
2154
- newPromiseCapability$2.f = function (C) {
2155
- return new PromiseCapability(C);
2156
- };
2157
-
2158
- var $$8 = _export;
2159
- var IS_NODE = engineIsNode;
2160
- var global$4 = global$m;
2161
- var call$b = functionCall;
2162
- var defineBuiltIn$4 = defineBuiltIn$8;
2163
- var setPrototypeOf = objectSetPrototypeOf;
2164
- var setToStringTag = setToStringTag$3;
2165
- var setSpecies = setSpecies$1;
2166
- var aCallable$3 = aCallable$7;
2167
- var isCallable$4 = isCallable$n;
2168
- var isObject$2 = isObject$8;
2169
- var anInstance = anInstance$1;
2170
- var speciesConstructor$1 = speciesConstructor$2;
2171
- var task = task$1.set;
2172
- var microtask = microtask$1;
2173
- var hostReportErrors = hostReportErrors$1;
2174
- var perform$2 = perform$3;
2175
- var Queue = queue;
2176
- var InternalStateModule = internalState;
2177
- var NativePromiseConstructor$3 = promiseNativeConstructor;
2178
- var PromiseConstructorDetection = promiseConstructorDetection;
2179
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2180
-
2181
- var PROMISE = 'Promise';
2182
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2183
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2184
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2185
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2186
- var setInternalState = InternalStateModule.set;
2187
- var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2188
- var PromiseConstructor = NativePromiseConstructor$3;
2189
- var PromisePrototype = NativePromisePrototype$2;
2190
- var TypeError$1 = global$4.TypeError;
2191
- var document$1 = global$4.document;
2192
- var process = global$4.process;
2193
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2194
- var newGenericPromiseCapability = newPromiseCapability$1;
2195
-
2196
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
2197
- var UNHANDLED_REJECTION = 'unhandledrejection';
2198
- var REJECTION_HANDLED = 'rejectionhandled';
2199
- var PENDING = 0;
2200
- var FULFILLED = 1;
2201
- var REJECTED = 2;
2202
- var HANDLED = 1;
2203
- var UNHANDLED = 2;
2204
-
2205
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2206
-
2207
- // helpers
2208
- var isThenable = function (it) {
2209
- var then;
2210
- return isObject$2(it) && isCallable$4(then = it.then) ? then : false;
2211
- };
2212
-
2213
- var callReaction = function (reaction, state) {
2214
- var value = state.value;
2215
- var ok = state.state == FULFILLED;
2216
- var handler = ok ? reaction.ok : reaction.fail;
2217
- var resolve = reaction.resolve;
2218
- var reject = reaction.reject;
2219
- var domain = reaction.domain;
2220
- var result, then, exited;
2221
- try {
2222
- if (handler) {
2223
- if (!ok) {
2224
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2225
- state.rejection = HANDLED;
2226
- }
2227
- if (handler === true) result = value;
2228
- else {
2229
- if (domain) domain.enter();
2230
- result = handler(value); // can throw
2231
- if (domain) {
2232
- domain.exit();
2233
- exited = true;
2234
- }
2235
- }
2236
- if (result === reaction.promise) {
2237
- reject(TypeError$1('Promise-chain cycle'));
2238
- } else if (then = isThenable(result)) {
2239
- call$b(then, result, resolve, reject);
2240
- } else resolve(result);
2241
- } else reject(value);
2242
- } catch (error) {
2243
- if (domain && !exited) domain.exit();
2244
- reject(error);
2245
- }
2246
- };
2247
-
2248
- var notify = function (state, isReject) {
2249
- if (state.notified) return;
2250
- state.notified = true;
2251
- microtask(function () {
2252
- var reactions = state.reactions;
2253
- var reaction;
2254
- while (reaction = reactions.get()) {
2255
- callReaction(reaction, state);
2256
- }
2257
- state.notified = false;
2258
- if (isReject && !state.rejection) onUnhandled(state);
2259
- });
2260
- };
2261
-
2262
- var dispatchEvent = function (name, promise, reason) {
2263
- var event, handler;
2264
- if (DISPATCH_EVENT) {
2265
- event = document$1.createEvent('Event');
2266
- event.promise = promise;
2267
- event.reason = reason;
2268
- event.initEvent(name, false, true);
2269
- global$4.dispatchEvent(event);
2270
- } else event = { promise: promise, reason: reason };
2271
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
2272
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2273
- };
2274
-
2275
- var onUnhandled = function (state) {
2276
- call$b(task, global$4, function () {
2277
- var promise = state.facade;
2278
- var value = state.value;
2279
- var IS_UNHANDLED = isUnhandled(state);
2280
- var result;
2281
- if (IS_UNHANDLED) {
2282
- result = perform$2(function () {
2283
- if (IS_NODE) {
2284
- process.emit('unhandledRejection', value, promise);
2285
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2286
- });
2287
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2288
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2289
- if (result.error) throw result.value;
2290
- }
2291
- });
2292
- };
2293
-
2294
- var isUnhandled = function (state) {
2295
- return state.rejection !== HANDLED && !state.parent;
2296
- };
2297
-
2298
- var onHandleUnhandled = function (state) {
2299
- call$b(task, global$4, function () {
2300
- var promise = state.facade;
2301
- if (IS_NODE) {
2302
- process.emit('rejectionHandled', promise);
2303
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2304
- });
2305
- };
2306
-
2307
- var bind$1 = function (fn, state, unwrap) {
2308
- return function (value) {
2309
- fn(state, value, unwrap);
2310
- };
2311
- };
2312
-
2313
- var internalReject = function (state, value, unwrap) {
2314
- if (state.done) return;
2315
- state.done = true;
2316
- if (unwrap) state = unwrap;
2317
- state.value = value;
2318
- state.state = REJECTED;
2319
- notify(state, true);
2320
- };
2321
-
2322
- var internalResolve = function (state, value, unwrap) {
2323
- if (state.done) return;
2324
- state.done = true;
2325
- if (unwrap) state = unwrap;
2326
- try {
2327
- if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
2328
- var then = isThenable(value);
2329
- if (then) {
2330
- microtask(function () {
2331
- var wrapper = { done: false };
2332
- try {
2333
- call$b(then, value,
2334
- bind$1(internalResolve, wrapper, state),
2335
- bind$1(internalReject, wrapper, state)
2336
- );
2337
- } catch (error) {
2338
- internalReject(wrapper, error, state);
2339
- }
2340
- });
2341
- } else {
2342
- state.value = value;
2343
- state.state = FULFILLED;
2344
- notify(state, false);
2345
- }
2346
- } catch (error) {
2347
- internalReject({ done: false }, error, state);
2348
- }
2349
- };
2350
-
2351
- // constructor polyfill
2352
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
2353
- // 25.4.3.1 Promise(executor)
2354
- PromiseConstructor = function Promise(executor) {
2355
- anInstance(this, PromisePrototype);
2356
- aCallable$3(executor);
2357
- call$b(Internal, this);
2358
- var state = getInternalPromiseState(this);
2359
- try {
2360
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2361
- } catch (error) {
2362
- internalReject(state, error);
2363
- }
2364
- };
2365
-
2366
- PromisePrototype = PromiseConstructor.prototype;
2367
-
2368
- // eslint-disable-next-line no-unused-vars -- required for `.length`
2369
- Internal = function Promise(executor) {
2370
- setInternalState(this, {
2371
- type: PROMISE,
2372
- done: false,
2373
- notified: false,
2374
- parent: false,
2375
- reactions: new Queue(),
2376
- rejection: false,
2377
- state: PENDING,
2378
- value: undefined
2379
- });
2380
- };
2381
-
2382
- // `Promise.prototype.then` method
2383
- // https://tc39.es/ecma262/#sec-promise.prototype.then
2384
- Internal.prototype = defineBuiltIn$4(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2385
- var state = getInternalPromiseState(this);
2386
- var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
2387
- state.parent = true;
2388
- reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
2389
- reaction.fail = isCallable$4(onRejected) && onRejected;
2390
- reaction.domain = IS_NODE ? process.domain : undefined;
2391
- if (state.state == PENDING) state.reactions.add(reaction);
2392
- else microtask(function () {
2393
- callReaction(reaction, state);
2394
- });
2395
- return reaction.promise;
2396
- });
2397
-
2398
- OwnPromiseCapability = function () {
2399
- var promise = new Internal();
2400
- var state = getInternalPromiseState(promise);
2401
- this.promise = promise;
2402
- this.resolve = bind$1(internalResolve, state);
2403
- this.reject = bind$1(internalReject, state);
2404
- };
2405
-
2406
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2407
- return C === PromiseConstructor || C === PromiseWrapper
2408
- ? new OwnPromiseCapability(C)
2409
- : newGenericPromiseCapability(C);
2410
- };
2411
-
2412
- if (isCallable$4(NativePromiseConstructor$3) && NativePromisePrototype$2 !== Object.prototype) {
2413
- nativeThen = NativePromisePrototype$2.then;
2414
-
2415
- if (!NATIVE_PROMISE_SUBCLASSING) {
2416
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2417
- defineBuiltIn$4(NativePromisePrototype$2, 'then', function then(onFulfilled, onRejected) {
2418
- var that = this;
2419
- return new PromiseConstructor(function (resolve, reject) {
2420
- call$b(nativeThen, that, resolve, reject);
2421
- }).then(onFulfilled, onRejected);
2422
- // https://github.com/zloirock/core-js/issues/640
2423
- }, { unsafe: true });
2424
- }
2425
-
2426
- // make `.constructor === Promise` work for native promise-based APIs
2427
- try {
2428
- delete NativePromisePrototype$2.constructor;
2429
- } catch (error) { /* empty */ }
2430
-
2431
- // make `instanceof Promise` work for native promise-based APIs
2432
- if (setPrototypeOf) {
2433
- setPrototypeOf(NativePromisePrototype$2, PromisePrototype);
2434
- }
2435
- }
2436
- }
2437
-
2438
- $$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2439
- Promise: PromiseConstructor
2440
- });
2441
-
2442
- setToStringTag(PromiseConstructor, PROMISE, false);
2443
- setSpecies(PROMISE);
2444
-
2445
- var wellKnownSymbol$6 = wellKnownSymbol$i;
2446
- var Iterators$1 = iterators;
2447
-
2448
- var ITERATOR$2 = wellKnownSymbol$6('iterator');
2449
- var ArrayPrototype = Array.prototype;
2450
-
2451
- // check on default Array iterator
2452
- var isArrayIteratorMethod$1 = function (it) {
2453
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2454
- };
2455
-
2456
- var classof$3 = classof$5;
2457
- var getMethod$3 = getMethod$5;
2458
- var Iterators = iterators;
2459
- var wellKnownSymbol$5 = wellKnownSymbol$i;
2460
-
2461
- var ITERATOR$1 = wellKnownSymbol$5('iterator');
2462
-
2463
- var getIteratorMethod$2 = function (it) {
2464
- if (it != undefined) return getMethod$3(it, ITERATOR$1)
2465
- || getMethod$3(it, '@@iterator')
2466
- || Iterators[classof$3(it)];
2467
- };
2468
-
2469
- var call$a = functionCall;
2470
- var aCallable$2 = aCallable$7;
2471
- var anObject$8 = anObject$f;
2472
- var tryToString$1 = tryToString$4;
2473
- var getIteratorMethod$1 = getIteratorMethod$2;
2474
-
2475
- var $TypeError$3 = TypeError;
2476
-
2477
- var getIterator$1 = function (argument, usingIterator) {
2478
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2479
- if (aCallable$2(iteratorMethod)) return anObject$8(call$a(iteratorMethod, argument));
2480
- throw $TypeError$3(tryToString$1(argument) + ' is not iterable');
2481
- };
2482
-
2483
- var call$9 = functionCall;
2484
- var anObject$7 = anObject$f;
2485
- var getMethod$2 = getMethod$5;
2486
-
2487
- var iteratorClose$1 = function (iterator, kind, value) {
2488
- var innerResult, innerError;
2489
- anObject$7(iterator);
2490
- try {
2491
- innerResult = getMethod$2(iterator, 'return');
2492
- if (!innerResult) {
2493
- if (kind === 'throw') throw value;
2494
- return value;
2495
- }
2496
- innerResult = call$9(innerResult, iterator);
2497
- } catch (error) {
2498
- innerError = true;
2499
- innerResult = error;
2500
- }
2501
- if (kind === 'throw') throw value;
2502
- if (innerError) throw innerResult;
2503
- anObject$7(innerResult);
2504
- return value;
2505
- };
2506
-
2507
- var bind = functionBindContext;
2508
- var call$8 = functionCall;
2509
- var anObject$6 = anObject$f;
2510
- var tryToString = tryToString$4;
2511
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
2512
- var lengthOfArrayLike = lengthOfArrayLike$2;
2513
- var isPrototypeOf$1 = objectIsPrototypeOf;
2514
- var getIterator = getIterator$1;
2515
- var getIteratorMethod = getIteratorMethod$2;
2516
- var iteratorClose = iteratorClose$1;
2517
-
2518
- var $TypeError$2 = TypeError;
2519
-
2520
- var Result = function (stopped, result) {
2521
- this.stopped = stopped;
2522
- this.result = result;
2523
- };
2524
-
2525
- var ResultPrototype = Result.prototype;
2526
-
2527
- var iterate$2 = function (iterable, unboundFunction, options) {
2528
- var that = options && options.that;
2529
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2530
- var IS_RECORD = !!(options && options.IS_RECORD);
2531
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2532
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2533
- var fn = bind(unboundFunction, that);
2534
- var iterator, iterFn, index, length, result, next, step;
2535
-
2536
- var stop = function (condition) {
2537
- if (iterator) iteratorClose(iterator, 'normal', condition);
2538
- return new Result(true, condition);
2539
- };
2540
-
2541
- var callFn = function (value) {
2542
- if (AS_ENTRIES) {
2543
- anObject$6(value);
2544
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2545
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2546
- };
2547
-
2548
- if (IS_RECORD) {
2549
- iterator = iterable.iterator;
2550
- } else if (IS_ITERATOR) {
2551
- iterator = iterable;
2552
- } else {
2553
- iterFn = getIteratorMethod(iterable);
2554
- if (!iterFn) throw $TypeError$2(tryToString(iterable) + ' is not iterable');
2555
- // optimisation for array iterators
2556
- if (isArrayIteratorMethod(iterFn)) {
2557
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2558
- result = callFn(iterable[index]);
2559
- if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
2560
- } return new Result(false);
2561
- }
2562
- iterator = getIterator(iterable, iterFn);
2563
- }
2564
-
2565
- next = IS_RECORD ? iterable.next : iterator.next;
2566
- while (!(step = call$8(next, iterator)).done) {
2567
- try {
2568
- result = callFn(step.value);
2569
- } catch (error) {
2570
- iteratorClose(iterator, 'throw', error);
2571
- }
2572
- if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
2573
- } return new Result(false);
2574
- };
2575
-
2576
- var wellKnownSymbol$4 = wellKnownSymbol$i;
2577
-
2578
- var ITERATOR = wellKnownSymbol$4('iterator');
2579
- var SAFE_CLOSING = false;
2580
-
2581
- try {
2582
- var called = 0;
2583
- var iteratorWithReturn = {
2584
- next: function () {
2585
- return { done: !!called++ };
2586
- },
2587
- 'return': function () {
2588
- SAFE_CLOSING = true;
2589
- }
2590
- };
2591
- iteratorWithReturn[ITERATOR] = function () {
2592
- return this;
2593
- };
2594
- // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
2595
- Array.from(iteratorWithReturn, function () { throw 2; });
2596
- } catch (error) { /* empty */ }
2597
-
2598
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2599
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2600
- var ITERATION_SUPPORT = false;
2601
- try {
2602
- var object = {};
2603
- object[ITERATOR] = function () {
2604
- return {
2605
- next: function () {
2606
- return { done: ITERATION_SUPPORT = true };
2607
- }
2608
- };
2609
- };
2610
- exec(object);
2611
- } catch (error) { /* empty */ }
2612
- return ITERATION_SUPPORT;
2613
- };
2614
-
2615
- var NativePromiseConstructor$2 = promiseNativeConstructor;
2616
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2617
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2618
-
2619
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2620
- NativePromiseConstructor$2.all(iterable).then(undefined, function () { /* empty */ });
2621
- });
2622
-
2623
- var $$7 = _export;
2624
- var call$7 = functionCall;
2625
- var aCallable$1 = aCallable$7;
2626
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2627
- var perform$1 = perform$3;
2628
- var iterate$1 = iterate$2;
2629
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2630
-
2631
- // `Promise.all` method
2632
- // https://tc39.es/ecma262/#sec-promise.all
2633
- $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2634
- all: function all(iterable) {
2635
- var C = this;
2636
- var capability = newPromiseCapabilityModule$2.f(C);
2637
- var resolve = capability.resolve;
2638
- var reject = capability.reject;
2639
- var result = perform$1(function () {
2640
- var $promiseResolve = aCallable$1(C.resolve);
2641
- var values = [];
2642
- var counter = 0;
2643
- var remaining = 1;
2644
- iterate$1(iterable, function (promise) {
2645
- var index = counter++;
2646
- var alreadyCalled = false;
2647
- remaining++;
2648
- call$7($promiseResolve, C, promise).then(function (value) {
2649
- if (alreadyCalled) return;
2650
- alreadyCalled = true;
2651
- values[index] = value;
2652
- --remaining || resolve(values);
2653
- }, reject);
2654
- });
2655
- --remaining || resolve(values);
2656
- });
2657
- if (result.error) reject(result.value);
2658
- return capability.promise;
2659
- }
2660
- });
2661
-
2662
- var $$6 = _export;
2663
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2664
- var NativePromiseConstructor$1 = promiseNativeConstructor;
2665
- var getBuiltIn$2 = getBuiltIn$9;
2666
- var isCallable$3 = isCallable$n;
2667
- var defineBuiltIn$3 = defineBuiltIn$8;
2668
-
2669
- var NativePromisePrototype$1 = NativePromiseConstructor$1 && NativePromiseConstructor$1.prototype;
2670
-
2671
- // `Promise.prototype.catch` method
2672
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2673
- $$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2674
- 'catch': function (onRejected) {
2675
- return this.then(undefined, onRejected);
2676
- }
2677
- });
2678
-
2679
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2680
- if (isCallable$3(NativePromiseConstructor$1)) {
2681
- var method$1 = getBuiltIn$2('Promise').prototype['catch'];
2682
- if (NativePromisePrototype$1['catch'] !== method$1) {
2683
- defineBuiltIn$3(NativePromisePrototype$1, 'catch', method$1, { unsafe: true });
2684
- }
2685
- }
2686
-
2687
- var $$5 = _export;
2688
- var call$6 = functionCall;
2689
- var aCallable = aCallable$7;
2690
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2691
- var perform = perform$3;
2692
- var iterate = iterate$2;
2693
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2694
-
2695
- // `Promise.race` method
2696
- // https://tc39.es/ecma262/#sec-promise.race
2697
- $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2698
- race: function race(iterable) {
2699
- var C = this;
2700
- var capability = newPromiseCapabilityModule$1.f(C);
2701
- var reject = capability.reject;
2702
- var result = perform(function () {
2703
- var $promiseResolve = aCallable(C.resolve);
2704
- iterate(iterable, function (promise) {
2705
- call$6($promiseResolve, C, promise).then(capability.resolve, reject);
2706
- });
2707
- });
2708
- if (result.error) reject(result.value);
2709
- return capability.promise;
2710
- }
2711
- });
2712
-
2713
- var $$4 = _export;
2714
- var call$5 = functionCall;
2715
- var newPromiseCapabilityModule = newPromiseCapability$2;
2716
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2717
-
2718
- // `Promise.reject` method
2719
- // https://tc39.es/ecma262/#sec-promise.reject
2720
- $$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2721
- reject: function reject(r) {
2722
- var capability = newPromiseCapabilityModule.f(this);
2723
- call$5(capability.reject, undefined, r);
2724
- return capability.promise;
2725
- }
2726
- });
2727
-
2728
- var anObject$5 = anObject$f;
2729
- var isObject$1 = isObject$8;
2730
- var newPromiseCapability = newPromiseCapability$2;
2731
-
2732
- var promiseResolve$2 = function (C, x) {
2733
- anObject$5(C);
2734
- if (isObject$1(x) && x.constructor === C) return x;
2735
- var promiseCapability = newPromiseCapability.f(C);
2736
- var resolve = promiseCapability.resolve;
2737
- resolve(x);
2738
- return promiseCapability.promise;
2739
- };
2740
-
2741
- var $$3 = _export;
2742
- var getBuiltIn$1 = getBuiltIn$9;
2743
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2744
- var promiseResolve$1 = promiseResolve$2;
2745
-
2746
- getBuiltIn$1('Promise');
2747
-
2748
- // `Promise.resolve` method
2749
- // https://tc39.es/ecma262/#sec-promise.resolve
2750
- $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2751
- resolve: function resolve(x) {
2752
- return promiseResolve$1(this, x);
2753
- }
2754
- });
2755
-
2756
- var $$2 = _export;
2757
- var NativePromiseConstructor = promiseNativeConstructor;
2758
- var fails$6 = fails$k;
2759
- var getBuiltIn = getBuiltIn$9;
2760
- var isCallable$2 = isCallable$n;
2761
- var speciesConstructor = speciesConstructor$2;
2762
- var promiseResolve = promiseResolve$2;
2763
- var defineBuiltIn$2 = defineBuiltIn$8;
2764
-
2765
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2766
-
2767
- // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
2768
- var NON_GENERIC = !!NativePromiseConstructor && fails$6(function () {
2769
- // eslint-disable-next-line unicorn/no-thenable -- required for testing
2770
- NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
2771
- });
2772
-
2773
- // `Promise.prototype.finally` method
2774
- // https://tc39.es/ecma262/#sec-promise.prototype.finally
2775
- $$2({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
2776
- 'finally': function (onFinally) {
2777
- var C = speciesConstructor(this, getBuiltIn('Promise'));
2778
- var isFunction = isCallable$2(onFinally);
2779
- return this.then(
2780
- isFunction ? function (x) {
2781
- return promiseResolve(C, onFinally()).then(function () { return x; });
2782
- } : onFinally,
2783
- isFunction ? function (e) {
2784
- return promiseResolve(C, onFinally()).then(function () { throw e; });
2785
- } : onFinally
2786
- );
2787
- }
2788
- });
2789
-
2790
- // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
2791
- if (isCallable$2(NativePromiseConstructor)) {
2792
- var method = getBuiltIn('Promise').prototype['finally'];
2793
- if (NativePromisePrototype['finally'] !== method) {
2794
- defineBuiltIn$2(NativePromisePrototype, 'finally', method, { unsafe: true });
2795
- }
2796
- }
2797
-
2798
- var isObject = isObject$8;
2799
- var classof$2 = classofRaw$1;
2800
- var wellKnownSymbol$3 = wellKnownSymbol$i;
2801
-
2802
- var MATCH$1 = wellKnownSymbol$3('match');
2803
-
2804
- // `IsRegExp` abstract operation
2805
- // https://tc39.es/ecma262/#sec-isregexp
2806
- var isRegexp = function (it) {
2807
- var isRegExp;
2808
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
2809
- };
2810
-
2811
- var isRegExp = isRegexp;
2812
-
2813
- var $TypeError$1 = TypeError;
2814
-
2815
- var notARegexp = function (it) {
2816
- if (isRegExp(it)) {
2817
- throw $TypeError$1("The method doesn't accept regular expressions");
2818
- } return it;
2819
- };
2820
-
2821
- var classof$1 = classof$5;
2822
-
2823
- var $String = String;
2824
-
2825
- var toString$5 = function (argument) {
2826
- if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2827
- return $String(argument);
2828
- };
2829
-
2830
- var wellKnownSymbol$2 = wellKnownSymbol$i;
2831
-
2832
- var MATCH = wellKnownSymbol$2('match');
2833
-
2834
- var correctIsRegexpLogic = function (METHOD_NAME) {
2835
- var regexp = /./;
2836
- try {
2837
- '/./'[METHOD_NAME](regexp);
2838
- } catch (error1) {
2839
- try {
2840
- regexp[MATCH] = false;
2841
- return '/./'[METHOD_NAME](regexp);
2842
- } catch (error2) { /* empty */ }
2843
- } return false;
2844
- };
2845
-
2846
- var $$1 = _export;
2847
- var uncurryThis$5 = functionUncurryThis;
2848
- var notARegExp = notARegexp;
2849
- var requireObjectCoercible$3 = requireObjectCoercible$6;
2850
- var toString$4 = toString$5;
2851
- var correctIsRegExpLogic = correctIsRegexpLogic;
2852
-
2853
- var stringIndexOf$1 = uncurryThis$5(''.indexOf);
2854
-
2855
- // `String.prototype.includes` method
2856
- // https://tc39.es/ecma262/#sec-string.prototype.includes
2857
- $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2858
- includes: function includes(searchString /* , position = 0 */) {
2859
- return !!~stringIndexOf$1(
2860
- toString$4(requireObjectCoercible$3(this)),
2861
- toString$4(notARegExp(searchString)),
2862
- arguments.length > 1 ? arguments[1] : undefined
2863
- );
2864
- }
2865
- });
2866
-
2867
- var anObject$4 = anObject$f;
2868
-
2869
- // `RegExp.prototype.flags` getter implementation
2870
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2871
- var regexpFlags$1 = function () {
2872
- var that = anObject$4(this);
2873
- var result = '';
2874
- if (that.hasIndices) result += 'd';
2875
- if (that.global) result += 'g';
2876
- if (that.ignoreCase) result += 'i';
2877
- if (that.multiline) result += 'm';
2878
- if (that.dotAll) result += 's';
2879
- if (that.unicode) result += 'u';
2880
- if (that.unicodeSets) result += 'v';
2881
- if (that.sticky) result += 'y';
2882
- return result;
2883
- };
2884
-
2885
- var fails$5 = fails$k;
2886
- var global$3 = global$m;
2887
-
2888
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2889
- var $RegExp$2 = global$3.RegExp;
2890
-
2891
- var UNSUPPORTED_Y$1 = fails$5(function () {
2892
- var re = $RegExp$2('a', 'y');
2893
- re.lastIndex = 2;
2894
- return re.exec('abcd') != null;
2895
- });
2896
-
2897
- // UC Browser bug
2898
- // https://github.com/zloirock/core-js/issues/1008
2899
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$5(function () {
2900
- return !$RegExp$2('a', 'y').sticky;
2901
- });
2902
-
2903
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
2904
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2905
- var re = $RegExp$2('^r', 'gy');
2906
- re.lastIndex = 2;
2907
- return re.exec('str') != null;
2908
- });
2909
-
2910
- var regexpStickyHelpers = {
2911
- BROKEN_CARET: BROKEN_CARET,
2912
- MISSED_STICKY: MISSED_STICKY,
2913
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
2914
- };
2915
-
2916
- var fails$4 = fails$k;
2917
- var global$2 = global$m;
2918
-
2919
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2920
- var $RegExp$1 = global$2.RegExp;
2921
-
2922
- var regexpUnsupportedDotAll = fails$4(function () {
2923
- var re = $RegExp$1('.', 's');
2924
- return !(re.dotAll && re.exec('\n') && re.flags === 's');
2925
- });
2926
-
2927
- var fails$3 = fails$k;
2928
- var global$1 = global$m;
2929
-
2930
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2931
- var $RegExp = global$1.RegExp;
2932
-
2933
- var regexpUnsupportedNcg = fails$3(function () {
2934
- var re = $RegExp('(?<a>b)', 'g');
2935
- return re.exec('b').groups.a !== 'b' ||
2936
- 'b'.replace(re, '$<a>c') !== 'bc';
2937
- });
2938
-
2939
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2940
- /* eslint-disable regexp/no-useless-quantifier -- testing */
2941
- var call$4 = functionCall;
2942
- var uncurryThis$4 = functionUncurryThis;
2943
- var toString$3 = toString$5;
2944
- var regexpFlags = regexpFlags$1;
2945
- var stickyHelpers = regexpStickyHelpers;
2946
- var shared = shared$4.exports;
2947
- var create = objectCreate;
2948
- var getInternalState = internalState.get;
2949
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
2950
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2951
-
2952
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
2953
- var nativeExec = RegExp.prototype.exec;
2954
- var patchedExec = nativeExec;
2955
- var charAt$3 = uncurryThis$4(''.charAt);
2956
- var indexOf = uncurryThis$4(''.indexOf);
2957
- var replace$1 = uncurryThis$4(''.replace);
2958
- var stringSlice$3 = uncurryThis$4(''.slice);
2959
-
2960
- var UPDATES_LAST_INDEX_WRONG = (function () {
2961
- var re1 = /a/;
2962
- var re2 = /b*/g;
2963
- call$4(nativeExec, re1, 'a');
2964
- call$4(nativeExec, re2, 'a');
2965
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2966
- })();
2967
-
2968
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
2969
-
2970
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
2971
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2972
-
2973
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2974
-
2975
- if (PATCH) {
2976
- patchedExec = function exec(string) {
2977
- var re = this;
2978
- var state = getInternalState(re);
2979
- var str = toString$3(string);
2980
- var raw = state.raw;
2981
- var result, reCopy, lastIndex, match, i, object, group;
2982
-
2983
- if (raw) {
2984
- raw.lastIndex = re.lastIndex;
2985
- result = call$4(patchedExec, raw, str);
2986
- re.lastIndex = raw.lastIndex;
2987
- return result;
2988
- }
2989
-
2990
- var groups = state.groups;
2991
- var sticky = UNSUPPORTED_Y && re.sticky;
2992
- var flags = call$4(regexpFlags, re);
2993
- var source = re.source;
2994
- var charsAdded = 0;
2995
- var strCopy = str;
1805
+ var groups = state.groups;
1806
+ var sticky = UNSUPPORTED_Y && re.sticky;
1807
+ var flags = call$2(regexpFlags, re);
1808
+ var source = re.source;
1809
+ var charsAdded = 0;
1810
+ var strCopy = str;
2996
1811
 
2997
1812
  if (sticky) {
2998
- flags = replace$1(flags, 'y', '');
1813
+ flags = replace(flags, 'y', '');
2999
1814
  if (indexOf(flags, 'g') === -1) {
3000
1815
  flags += 'g';
3001
1816
  }
3002
1817
 
3003
- strCopy = stringSlice$3(str, re.lastIndex);
1818
+ strCopy = stringSlice(str, re.lastIndex);
3004
1819
  // Support anchored sticky behavior.
3005
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1820
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
3006
1821
  source = '(?: ' + source + ')';
3007
1822
  strCopy = ' ' + strCopy;
3008
1823
  charsAdded++;
@@ -3017,12 +1832,12 @@ if (PATCH) {
3017
1832
  }
3018
1833
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
3019
1834
 
3020
- match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
1835
+ match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
3021
1836
 
3022
1837
  if (sticky) {
3023
1838
  if (match) {
3024
- match.input = stringSlice$3(match.input, charsAdded);
3025
- match[0] = stringSlice$3(match[0], charsAdded);
1839
+ match.input = stringSlice(match.input, charsAdded);
1840
+ match[0] = stringSlice(match[0], charsAdded);
3026
1841
  match.index = re.lastIndex;
3027
1842
  re.lastIndex += match[0].length;
3028
1843
  } else re.lastIndex = 0;
@@ -3032,7 +1847,7 @@ if (PATCH) {
3032
1847
  if (NPCG_INCLUDED && match && match.length > 1) {
3033
1848
  // Fix browsers whose `exec` methods don't consistently return `undefined`
3034
1849
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
3035
- call$4(nativeReplace, match[0], reCopy, function () {
1850
+ call$2(nativeReplace, match[0], reCopy, function () {
3036
1851
  for (i = 1; i < arguments.length - 2; i++) {
3037
1852
  if (arguments[i] === undefined) match[i] = undefined;
3038
1853
  }
@@ -3064,27 +1879,27 @@ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
3064
1879
 
3065
1880
  // TODO: Remove from `core-js@4` since it's moved to entry points
3066
1881
 
3067
- var uncurryThis$3 = functionUncurryThis;
3068
- var defineBuiltIn$1 = defineBuiltIn$8;
1882
+ var uncurryThis = functionUncurryThis;
1883
+ var defineBuiltIn = defineBuiltIn$4;
3069
1884
  var regexpExec$1 = regexpExec$2;
3070
- var fails$2 = fails$k;
3071
- var wellKnownSymbol$1 = wellKnownSymbol$i;
1885
+ var fails = fails$f;
1886
+ var wellKnownSymbol = wellKnownSymbol$9;
3072
1887
  var createNonEnumerableProperty = createNonEnumerableProperty$5;
3073
1888
 
3074
- var SPECIES = wellKnownSymbol$1('species');
3075
- var RegExpPrototype$2 = RegExp.prototype;
1889
+ var SPECIES = wellKnownSymbol('species');
1890
+ var RegExpPrototype = RegExp.prototype;
3076
1891
 
3077
1892
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3078
- var SYMBOL = wellKnownSymbol$1(KEY);
1893
+ var SYMBOL = wellKnownSymbol(KEY);
3079
1894
 
3080
- var DELEGATES_TO_SYMBOL = !fails$2(function () {
1895
+ var DELEGATES_TO_SYMBOL = !fails(function () {
3081
1896
  // String methods call symbol-named RegEp methods
3082
1897
  var O = {};
3083
1898
  O[SYMBOL] = function () { return 7; };
3084
1899
  return ''[KEY](O) != 7;
3085
1900
  });
3086
1901
 
3087
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
1902
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
3088
1903
  // Symbol-named RegExp methods call .exec
3089
1904
  var execCalled = false;
3090
1905
  var re = /a/;
@@ -3113,11 +1928,11 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3113
1928
  !DELEGATES_TO_EXEC ||
3114
1929
  FORCED
3115
1930
  ) {
3116
- var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
1931
+ var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
3117
1932
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
3118
- var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
1933
+ var uncurriedNativeMethod = uncurryThis(nativeMethod);
3119
1934
  var $exec = regexp.exec;
3120
- if ($exec === regexpExec$1 || $exec === RegExpPrototype$2.exec) {
1935
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
3121
1936
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
3122
1937
  // The native String method already delegates to @@method (this
3123
1938
  // polyfilled function), leasing to infinite recursion.
@@ -3129,106 +1944,24 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3129
1944
  return { done: false };
3130
1945
  });
3131
1946
 
3132
- defineBuiltIn$1(String.prototype, KEY, methods[0]);
3133
- defineBuiltIn$1(RegExpPrototype$2, SYMBOL, methods[1]);
1947
+ defineBuiltIn(String.prototype, KEY, methods[0]);
1948
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
3134
1949
  }
3135
1950
 
3136
- if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
1951
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
3137
1952
  };
3138
1953
 
3139
- var uncurryThis$2 = functionUncurryThis;
3140
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
3141
- var toString$2 = toString$5;
3142
- var requireObjectCoercible$2 = requireObjectCoercible$6;
3143
-
3144
- var charAt$2 = uncurryThis$2(''.charAt);
3145
- var charCodeAt = uncurryThis$2(''.charCodeAt);
3146
- var stringSlice$2 = uncurryThis$2(''.slice);
3147
-
3148
- var createMethod = function (CONVERT_TO_STRING) {
3149
- return function ($this, pos) {
3150
- var S = toString$2(requireObjectCoercible$2($this));
3151
- var position = toIntegerOrInfinity$1(pos);
3152
- var size = S.length;
3153
- var first, second;
3154
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
3155
- first = charCodeAt(S, position);
3156
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
3157
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
3158
- ? CONVERT_TO_STRING
3159
- ? charAt$2(S, position)
3160
- : first
3161
- : CONVERT_TO_STRING
3162
- ? stringSlice$2(S, position, position + 2)
3163
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
3164
- };
3165
- };
3166
-
3167
- var stringMultibyte = {
3168
- // `String.prototype.codePointAt` method
3169
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
3170
- codeAt: createMethod(false),
3171
- // `String.prototype.at` method
3172
- // https://github.com/mathiasbynens/String.prototype.at
3173
- charAt: createMethod(true)
3174
- };
3175
-
3176
- var charAt$1 = stringMultibyte.charAt;
3177
-
3178
- // `AdvanceStringIndex` abstract operation
3179
- // https://tc39.es/ecma262/#sec-advancestringindex
3180
- var advanceStringIndex$1 = function (S, index, unicode) {
3181
- return index + (unicode ? charAt$1(S, index).length : 1);
3182
- };
3183
-
3184
- var uncurryThis$1 = functionUncurryThis;
3185
- var toObject = toObject$4;
3186
-
3187
- var floor = Math.floor;
3188
- var charAt = uncurryThis$1(''.charAt);
3189
- var replace = uncurryThis$1(''.replace);
3190
- var stringSlice$1 = uncurryThis$1(''.slice);
3191
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
3192
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
3193
-
3194
- // `GetSubstitution` abstract operation
3195
- // https://tc39.es/ecma262/#sec-getsubstitution
3196
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
3197
- var tailPos = position + matched.length;
3198
- var m = captures.length;
3199
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
3200
- if (namedCaptures !== undefined) {
3201
- namedCaptures = toObject(namedCaptures);
3202
- symbols = SUBSTITUTION_SYMBOLS;
3203
- }
3204
- return replace(replacement, symbols, function (match, ch) {
3205
- var capture;
3206
- switch (charAt(ch, 0)) {
3207
- case '$': return '$';
3208
- case '&': return matched;
3209
- case '`': return stringSlice$1(str, 0, position);
3210
- case "'": return stringSlice$1(str, tailPos);
3211
- case '<':
3212
- capture = namedCaptures[stringSlice$1(ch, 1, -1)];
3213
- break;
3214
- default: // \d\d?
3215
- var n = +ch;
3216
- if (n === 0) return match;
3217
- if (n > m) {
3218
- var f = floor(n / 10);
3219
- if (f === 0) return match;
3220
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
3221
- return match;
3222
- }
3223
- capture = captures[n - 1];
3224
- }
3225
- return capture === undefined ? '' : capture;
3226
- });
1954
+ // `SameValue` abstract operation
1955
+ // https://tc39.es/ecma262/#sec-samevalue
1956
+ // eslint-disable-next-line es-x/no-object-is -- safe
1957
+ var sameValue$1 = Object.is || function is(x, y) {
1958
+ // eslint-disable-next-line no-self-compare -- NaN check
1959
+ return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
3227
1960
  };
3228
1961
 
3229
- var call$3 = functionCall;
3230
- var anObject$3 = anObject$f;
3231
- var isCallable$1 = isCallable$n;
1962
+ var call$1 = functionCall;
1963
+ var anObject$1 = anObject$8;
1964
+ var isCallable = isCallable$g;
3232
1965
  var classof = classofRaw$1;
3233
1966
  var regexpExec = regexpExec$2;
3234
1967
 
@@ -3238,205 +1971,22 @@ var $TypeError = TypeError;
3238
1971
  // https://tc39.es/ecma262/#sec-regexpexec
3239
1972
  var regexpExecAbstract = function (R, S) {
3240
1973
  var exec = R.exec;
3241
- if (isCallable$1(exec)) {
3242
- var result = call$3(exec, R, S);
3243
- if (result !== null) anObject$3(result);
1974
+ if (isCallable(exec)) {
1975
+ var result = call$1(exec, R, S);
1976
+ if (result !== null) anObject$1(result);
3244
1977
  return result;
3245
1978
  }
3246
- if (classof(R) === 'RegExp') return call$3(regexpExec, R, S);
1979
+ if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
3247
1980
  throw $TypeError('RegExp#exec called on incompatible receiver');
3248
1981
  };
3249
1982
 
3250
- var apply = functionApply;
3251
- var call$2 = functionCall;
3252
- var uncurryThis = functionUncurryThis;
3253
- var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
3254
- var fails$1 = fails$k;
3255
- var anObject$2 = anObject$f;
3256
- var isCallable = isCallable$n;
3257
- var toIntegerOrInfinity = toIntegerOrInfinity$4;
3258
- var toLength = toLength$2;
3259
- var toString$1 = toString$5;
3260
- var requireObjectCoercible$1 = requireObjectCoercible$6;
3261
- var advanceStringIndex = advanceStringIndex$1;
3262
- var getMethod$1 = getMethod$5;
3263
- var getSubstitution = getSubstitution$1;
3264
- var regExpExec$1 = regexpExecAbstract;
3265
- var wellKnownSymbol = wellKnownSymbol$i;
3266
-
3267
- var REPLACE = wellKnownSymbol('replace');
3268
- var max = Math.max;
3269
- var min = Math.min;
3270
- var concat = uncurryThis([].concat);
3271
- var push = uncurryThis([].push);
3272
- var stringIndexOf = uncurryThis(''.indexOf);
3273
- var stringSlice = uncurryThis(''.slice);
3274
-
3275
- var maybeToString = function (it) {
3276
- return it === undefined ? it : String(it);
3277
- };
3278
-
3279
- // IE <= 11 replaces $0 with the whole match, as if it was $&
3280
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
3281
- var REPLACE_KEEPS_$0 = (function () {
3282
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
3283
- return 'a'.replace(/./, '$0') === '$0';
3284
- })();
3285
-
3286
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
3287
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
3288
- if (/./[REPLACE]) {
3289
- return /./[REPLACE]('a', '$0') === '';
3290
- }
3291
- return false;
3292
- })();
3293
-
3294
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$1(function () {
3295
- var re = /./;
3296
- re.exec = function () {
3297
- var result = [];
3298
- result.groups = { a: '7' };
3299
- return result;
3300
- };
3301
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
3302
- return ''.replace(re, '$<a>') !== '7';
3303
- });
3304
-
3305
- // @@replace logic
3306
- fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCallNative) {
3307
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
3308
-
3309
- return [
3310
- // `String.prototype.replace` method
3311
- // https://tc39.es/ecma262/#sec-string.prototype.replace
3312
- function replace(searchValue, replaceValue) {
3313
- var O = requireObjectCoercible$1(this);
3314
- var replacer = searchValue == undefined ? undefined : getMethod$1(searchValue, REPLACE);
3315
- return replacer
3316
- ? call$2(replacer, searchValue, O, replaceValue)
3317
- : call$2(nativeReplace, toString$1(O), searchValue, replaceValue);
3318
- },
3319
- // `RegExp.prototype[@@replace]` method
3320
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
3321
- function (string, replaceValue) {
3322
- var rx = anObject$2(this);
3323
- var S = toString$1(string);
3324
-
3325
- if (
3326
- typeof replaceValue == 'string' &&
3327
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
3328
- stringIndexOf(replaceValue, '$<') === -1
3329
- ) {
3330
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
3331
- if (res.done) return res.value;
3332
- }
3333
-
3334
- var functionalReplace = isCallable(replaceValue);
3335
- if (!functionalReplace) replaceValue = toString$1(replaceValue);
3336
-
3337
- var global = rx.global;
3338
- if (global) {
3339
- var fullUnicode = rx.unicode;
3340
- rx.lastIndex = 0;
3341
- }
3342
- var results = [];
3343
- while (true) {
3344
- var result = regExpExec$1(rx, S);
3345
- if (result === null) break;
3346
-
3347
- push(results, result);
3348
- if (!global) break;
3349
-
3350
- var matchStr = toString$1(result[0]);
3351
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
3352
- }
3353
-
3354
- var accumulatedResult = '';
3355
- var nextSourcePosition = 0;
3356
- for (var i = 0; i < results.length; i++) {
3357
- result = results[i];
3358
-
3359
- var matched = toString$1(result[0]);
3360
- var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
3361
- var captures = [];
3362
- // NOTE: This is equivalent to
3363
- // captures = result.slice(1).map(maybeToString)
3364
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
3365
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
3366
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
3367
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
3368
- var namedCaptures = result.groups;
3369
- if (functionalReplace) {
3370
- var replacerArgs = concat([matched], captures, position, S);
3371
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
3372
- var replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
3373
- } else {
3374
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
3375
- }
3376
- if (position >= nextSourcePosition) {
3377
- accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
3378
- nextSourcePosition = position + matched.length;
3379
- }
3380
- }
3381
- return accumulatedResult + stringSlice(S, nextSourcePosition);
3382
- }
3383
- ];
3384
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
3385
-
3386
- var call$1 = functionCall;
3387
- var hasOwn = hasOwnProperty_1;
3388
- var isPrototypeOf = objectIsPrototypeOf;
3389
- var regExpFlags = regexpFlags$1;
3390
-
3391
- var RegExpPrototype$1 = RegExp.prototype;
3392
-
3393
- var regexpGetFlags = function (R) {
3394
- var flags = R.flags;
3395
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
3396
- ? call$1(regExpFlags, R) : flags;
3397
- };
3398
-
3399
- var PROPER_FUNCTION_NAME = functionName.PROPER;
3400
- var defineBuiltIn = defineBuiltIn$8;
3401
- var anObject$1 = anObject$f;
3402
- var $toString = toString$5;
3403
- var fails = fails$k;
3404
- var getRegExpFlags = regexpGetFlags;
3405
-
3406
- var TO_STRING = 'toString';
3407
- var RegExpPrototype = RegExp.prototype;
3408
- var n$ToString = RegExpPrototype[TO_STRING];
3409
-
3410
- var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
3411
- // FF44- RegExp#toString has a wrong name
3412
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
3413
-
3414
- // `RegExp.prototype.toString` method
3415
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
3416
- if (NOT_GENERIC || INCORRECT_NAME) {
3417
- defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
3418
- var R = anObject$1(this);
3419
- var pattern = $toString(R.source);
3420
- var flags = $toString(getRegExpFlags(R));
3421
- return '/' + pattern + '/' + flags;
3422
- }, { unsafe: true });
3423
- }
3424
-
3425
- // `SameValue` abstract operation
3426
- // https://tc39.es/ecma262/#sec-samevalue
3427
- // eslint-disable-next-line es-x/no-object-is -- safe
3428
- var sameValue$1 = Object.is || function is(x, y) {
3429
- // eslint-disable-next-line no-self-compare -- NaN check
3430
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
3431
- };
3432
-
3433
1983
  var call = functionCall;
3434
1984
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3435
- var anObject = anObject$f;
3436
- var requireObjectCoercible = requireObjectCoercible$6;
1985
+ var anObject = anObject$8;
1986
+ var requireObjectCoercible = requireObjectCoercible$3;
3437
1987
  var sameValue = sameValue$1;
3438
- var toString = toString$5;
3439
- var getMethod = getMethod$5;
1988
+ var toString = toString$2;
1989
+ var getMethod = getMethod$2;
3440
1990
  var regExpExec = regexpExecAbstract;
3441
1991
 
3442
1992
  // @@search logic
@@ -3467,35 +2017,6 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
3467
2017
  ];
3468
2018
  });
3469
2019
 
3470
- /**
3471
- * A hook to allow your Iris App to render specific url passed from host
3472
- */
3473
-
3474
- const useDeepLink = () => {
3475
- const [loading, setLoading] = React__default.useState(true);
3476
- const [synced, setSynced] = React__default.useState(false);
3477
- const {
3478
- pathname
3479
- } = useLocation();
3480
- const navigate = useNavigate();
3481
- NavigationRuntime.getDeepLink().then(deepLink => {
3482
- if (!pathname.includes(deepLink.pathname) && !synced) {
3483
- setSynced(true);
3484
- const newPath = generatePath(":url?:queryString#:hashParams", {
3485
- url: deepLink.path,
3486
- queryString: createSearchParams(deepLink.search).toString(),
3487
- hashParams: createSearchParams(deepLink.hash.slice(1)).toString()
3488
- }).replace("runLocal=", "runLocal");
3489
- navigate(newPath);
3490
- }
3491
- }).finally(() => {
3492
- setLoading(false);
3493
- });
3494
- return {
3495
- loading
3496
- };
3497
- };
3498
-
3499
2020
  /**
3500
2021
  * A react hook for notifying host about location change
3501
2022
  *
@@ -3504,38 +2025,16 @@ const useDeepLink = () => {
3504
2025
  const useURLSynchronization = () => {
3505
2026
  const location = useLocation();
3506
2027
  React__default.useEffect(() => {
3507
- NavigationRuntime.setDeepLink({
2028
+ const deepLink = {
3508
2029
  path: location.pathname,
3509
2030
  search: location.search,
3510
2031
  hash: location.hash,
3511
2032
  pathname: ""
3512
- });
2033
+ };
2034
+ NavigationRuntime.setDeepLink(deepLink);
3513
2035
  }, [location]);
3514
2036
  };
3515
2037
 
3516
- const HostNavigator = ({
3517
- children
3518
- }) => {
3519
- const {
3520
- loading
3521
- } = useDeepLink();
3522
- useURLSynchronization(); // eslint-disable-next-line react/jsx-no-useless-fragment
3523
-
3524
- return loading ? null : jsx(Fragment, {
3525
- children: children
3526
- });
3527
- };
3528
-
3529
- const TrackunitRouter = ({
3530
- children
3531
- }) => {
3532
- return jsx(BrowserRouter, {
3533
- children: jsx(HostNavigator, {
3534
- children: children
3535
- })
3536
- });
3537
- };
3538
-
3539
2038
  /**
3540
2039
  * A hook to expose asset runtime for React components
3541
2040
  *
@@ -3620,4 +2119,4 @@ const useCurrentUser = () => {
3620
2119
  return context;
3621
2120
  };
3622
2121
 
3623
- export { CurrentUserProvider, DeveloperSettingsContext, DeveloperSettingsProvider, EnvironmentContextProvider, ToastProvider, TokenProvider, TrackunitRouter, UserSubscriptionProvider, useAssetRuntime, useCurrentUser, useCustomFieldRuntime, useDeepLink, useDeveloperSettings, useEnvironment, useRestRuntime, useToast, useToken, useURLSynchronization, useUserSubscription };
2122
+ export { CurrentUserProvider, DeveloperSettingsContext, DeveloperSettingsProvider, EnvironmentContextProvider, ToastProvider, TokenProvider, UserSubscriptionProvider, useAssetRuntime, useCurrentUser, useCustomFieldRuntime, useDeveloperSettings, useEnvironment, useRestRuntime, useToast, useToken, useURLSynchronization, useUserSubscription };