@vention/machine-logic-ui-sdk 0.27.7 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import require$$0, { useState, useRef, useEffect, useMemo, createContext, useContext } from 'react';
2
3
  import { tss } from 'tss-react/mui';
3
- import { jsx } from 'react/jsx-runtime';
4
4
  import mqtt from 'mqtt';
5
5
 
6
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -27,7 +27,7 @@ var globalThis_1 =
27
27
 
28
28
  var objectGetOwnPropertyDescriptor = {};
29
29
 
30
- var fails$p = function (exec) {
30
+ var fails$n = function (exec) {
31
31
  try {
32
32
  return !!exec();
33
33
  } catch (error) {
@@ -35,17 +35,17 @@ var fails$p = function (exec) {
35
35
  }
36
36
  };
37
37
 
38
- var fails$o = fails$p;
38
+ var fails$m = fails$n;
39
39
 
40
40
  // Detect IE8's incomplete defineProperty implementation
41
- var descriptors = !fails$o(function () {
41
+ var descriptors = !fails$m(function () {
42
42
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
43
43
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
44
44
  });
45
45
 
46
- var fails$n = fails$p;
46
+ var fails$l = fails$n;
47
47
 
48
- var functionBindNative = !fails$n(function () {
48
+ var functionBindNative = !fails$l(function () {
49
49
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
50
50
  var test = function () { /* empty */ }.bind();
51
51
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -54,25 +54,25 @@ var functionBindNative = !fails$n(function () {
54
54
 
55
55
  var NATIVE_BIND$3 = functionBindNative;
56
56
 
57
- var call$p = Function.prototype.call;
57
+ var call$m = Function.prototype.call;
58
58
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
59
- var functionCall = NATIVE_BIND$3 ? call$p.bind(call$p) : function () {
60
- return call$p.apply(call$p, arguments);
59
+ var functionCall = NATIVE_BIND$3 ? call$m.bind(call$m) : function () {
60
+ return call$m.apply(call$m, arguments);
61
61
  };
62
62
 
63
63
  var objectPropertyIsEnumerable = {};
64
64
 
65
65
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
66
66
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
67
- var getOwnPropertyDescriptor$5 = Object.getOwnPropertyDescriptor;
67
+ var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
68
68
 
69
69
  // Nashorn ~ JDK8 bug
70
- var NASHORN_BUG = getOwnPropertyDescriptor$5 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
70
+ var NASHORN_BUG = getOwnPropertyDescriptor$4 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
71
71
 
72
72
  // `Object.prototype.propertyIsEnumerable` method implementation
73
73
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
74
74
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
75
- var descriptor = getOwnPropertyDescriptor$5(this, V);
75
+ var descriptor = getOwnPropertyDescriptor$4(this, V);
76
76
  return !!descriptor && descriptor.enumerable;
77
77
  } : $propertyIsEnumerable;
78
78
 
@@ -88,55 +88,55 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
88
88
  var NATIVE_BIND$2 = functionBindNative;
89
89
 
90
90
  var FunctionPrototype$2 = Function.prototype;
91
- var call$o = FunctionPrototype$2.call;
91
+ var call$l = FunctionPrototype$2.call;
92
92
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
93
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$o, call$o);
93
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$l, call$l);
94
94
 
95
95
  var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
96
96
  return function () {
97
- return call$o.apply(fn, arguments);
97
+ return call$l.apply(fn, arguments);
98
98
  };
99
99
  };
100
100
 
101
- var uncurryThis$o = functionUncurryThis;
101
+ var uncurryThis$m = functionUncurryThis;
102
102
 
103
- var toString$a = uncurryThis$o({}.toString);
104
- var stringSlice$6 = uncurryThis$o(''.slice);
103
+ var toString$a = uncurryThis$m({}.toString);
104
+ var stringSlice$6 = uncurryThis$m(''.slice);
105
105
 
106
106
  var classofRaw$2 = function (it) {
107
107
  return stringSlice$6(toString$a(it), 8, -1);
108
108
  };
109
109
 
110
- var uncurryThis$n = functionUncurryThis;
111
- var fails$m = fails$p;
112
- var classof$8 = classofRaw$2;
110
+ var uncurryThis$l = functionUncurryThis;
111
+ var fails$k = fails$n;
112
+ var classof$6 = classofRaw$2;
113
113
 
114
114
  var $Object$4 = Object;
115
- var split = uncurryThis$n(''.split);
115
+ var split = uncurryThis$l(''.split);
116
116
 
117
117
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
118
- var indexedObject = fails$m(function () {
118
+ var indexedObject = fails$k(function () {
119
119
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
120
120
  // eslint-disable-next-line no-prototype-builtins -- safe
121
121
  return !$Object$4('z').propertyIsEnumerable(0);
122
122
  }) ? function (it) {
123
- return classof$8(it) === 'String' ? split(it, '') : $Object$4(it);
123
+ return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
124
124
  } : $Object$4;
125
125
 
126
126
  // we can't use just `it == null` since of `document.all` special case
127
127
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
128
- var isNullOrUndefined$4 = function (it) {
128
+ var isNullOrUndefined$3 = function (it) {
129
129
  return it === null || it === undefined;
130
130
  };
131
131
 
132
- var isNullOrUndefined$3 = isNullOrUndefined$4;
132
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
133
133
 
134
- var $TypeError$i = TypeError;
134
+ var $TypeError$f = TypeError;
135
135
 
136
136
  // `RequireObjectCoercible` abstract operation
137
137
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
138
138
  var requireObjectCoercible$8 = function (it) {
139
- if (isNullOrUndefined$3(it)) throw new $TypeError$i("Can't call method on " + it);
139
+ if (isNullOrUndefined$2(it)) throw new $TypeError$f("Can't call method on " + it);
140
140
  return it;
141
141
  };
142
142
 
@@ -154,46 +154,46 @@ var documentAll = typeof document == 'object' && document.all;
154
154
  // `IsCallable` abstract operation
155
155
  // https://tc39.es/ecma262/#sec-iscallable
156
156
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
157
- var isCallable$o = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
157
+ var isCallable$j = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
158
158
  return typeof argument == 'function' || argument === documentAll;
159
159
  } : function (argument) {
160
160
  return typeof argument == 'function';
161
161
  };
162
162
 
163
- var isCallable$n = isCallable$o;
163
+ var isCallable$i = isCallable$j;
164
164
 
165
- var isObject$e = function (it) {
166
- return typeof it == 'object' ? it !== null : isCallable$n(it);
165
+ var isObject$c = function (it) {
166
+ return typeof it == 'object' ? it !== null : isCallable$i(it);
167
167
  };
168
168
 
169
- var globalThis$r = globalThis_1;
170
- var isCallable$m = isCallable$o;
169
+ var globalThis$j = globalThis_1;
170
+ var isCallable$h = isCallable$j;
171
171
 
172
172
  var aFunction = function (argument) {
173
- return isCallable$m(argument) ? argument : undefined;
173
+ return isCallable$h(argument) ? argument : undefined;
174
174
  };
175
175
 
176
- var getBuiltIn$9 = function (namespace, method) {
177
- return arguments.length < 2 ? aFunction(globalThis$r[namespace]) : globalThis$r[namespace] && globalThis$r[namespace][method];
176
+ var getBuiltIn$5 = function (namespace, method) {
177
+ return arguments.length < 2 ? aFunction(globalThis$j[namespace]) : globalThis$j[namespace] && globalThis$j[namespace][method];
178
178
  };
179
179
 
180
- var uncurryThis$m = functionUncurryThis;
180
+ var uncurryThis$k = functionUncurryThis;
181
181
 
182
- var objectIsPrototypeOf = uncurryThis$m({}.isPrototypeOf);
182
+ var objectIsPrototypeOf = uncurryThis$k({}.isPrototypeOf);
183
183
 
184
- var globalThis$q = globalThis_1;
184
+ var globalThis$i = globalThis_1;
185
185
 
186
- var navigator$1 = globalThis$q.navigator;
187
- var userAgent$5 = navigator$1 && navigator$1.userAgent;
186
+ var navigator$1 = globalThis$i.navigator;
187
+ var userAgent$1 = navigator$1 && navigator$1.userAgent;
188
188
 
189
- var environmentUserAgent = userAgent$5 ? String(userAgent$5) : '';
189
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
190
190
 
191
- var globalThis$p = globalThis_1;
192
- var userAgent$4 = environmentUserAgent;
191
+ var globalThis$h = globalThis_1;
192
+ var userAgent = environmentUserAgent;
193
193
 
194
- var process$3 = globalThis$p.process;
195
- var Deno$1 = globalThis$p.Deno;
196
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
194
+ var process = globalThis$h.process;
195
+ var Deno$1 = globalThis$h.Deno;
196
+ var versions = process && process.versions || Deno$1 && Deno$1.version;
197
197
  var v8 = versions && versions.v8;
198
198
  var match, version;
199
199
 
@@ -206,10 +206,10 @@ if (v8) {
206
206
 
207
207
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
208
208
  // so check `userAgent` even if `.v8` exists, but 0
209
- if (!version && userAgent$4) {
210
- match = userAgent$4.match(/Edge\/(\d+)/);
209
+ if (!version && userAgent) {
210
+ match = userAgent.match(/Edge\/(\d+)/);
211
211
  if (!match || match[1] >= 74) {
212
- match = userAgent$4.match(/Chrome\/(\d+)/);
212
+ match = userAgent.match(/Chrome\/(\d+)/);
213
213
  if (match) version = +match[1];
214
214
  }
215
215
  }
@@ -217,14 +217,14 @@ if (!version && userAgent$4) {
217
217
  var environmentV8Version = version;
218
218
 
219
219
  /* eslint-disable es/no-symbol -- required for testing */
220
- var V8_VERSION$1 = environmentV8Version;
221
- var fails$l = fails$p;
222
- var globalThis$o = globalThis_1;
220
+ var V8_VERSION = environmentV8Version;
221
+ var fails$j = fails$n;
222
+ var globalThis$g = globalThis_1;
223
223
 
224
- var $String$5 = globalThis$o.String;
224
+ var $String$5 = globalThis$g.String;
225
225
 
226
226
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
227
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$l(function () {
227
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$j(function () {
228
228
  var symbol = Symbol('symbol detection');
229
229
  // Chrome 38 Symbol has incorrect toString conversion
230
230
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -232,7 +232,7 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$l(func
232
232
  // of course, fail.
233
233
  return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
234
234
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
235
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
235
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
236
236
  });
237
237
 
238
238
  /* eslint-disable es/no-symbol -- required for testing */
@@ -242,8 +242,8 @@ var useSymbolAsUid = NATIVE_SYMBOL$2 &&
242
242
  !Symbol.sham &&
243
243
  typeof Symbol.iterator == 'symbol';
244
244
 
245
- var getBuiltIn$8 = getBuiltIn$9;
246
- var isCallable$l = isCallable$o;
245
+ var getBuiltIn$4 = getBuiltIn$5;
246
+ var isCallable$g = isCallable$j;
247
247
  var isPrototypeOf$3 = objectIsPrototypeOf;
248
248
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
249
249
 
@@ -252,13 +252,13 @@ var $Object$3 = Object;
252
252
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
253
253
  return typeof it == 'symbol';
254
254
  } : function (it) {
255
- var $Symbol = getBuiltIn$8('Symbol');
256
- return isCallable$l($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
255
+ var $Symbol = getBuiltIn$4('Symbol');
256
+ return isCallable$g($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
257
257
  };
258
258
 
259
259
  var $String$4 = String;
260
260
 
261
- var tryToString$4 = function (argument) {
261
+ var tryToString$3 = function (argument) {
262
262
  try {
263
263
  return $String$4(argument);
264
264
  } catch (error) {
@@ -266,63 +266,63 @@ var tryToString$4 = function (argument) {
266
266
  }
267
267
  };
268
268
 
269
- var isCallable$k = isCallable$o;
270
- var tryToString$3 = tryToString$4;
269
+ var isCallable$f = isCallable$j;
270
+ var tryToString$2 = tryToString$3;
271
271
 
272
- var $TypeError$h = TypeError;
272
+ var $TypeError$e = TypeError;
273
273
 
274
274
  // `Assert: IsCallable(argument) is true`
275
- var aCallable$b = function (argument) {
276
- if (isCallable$k(argument)) return argument;
277
- throw new $TypeError$h(tryToString$3(argument) + ' is not a function');
275
+ var aCallable$7 = function (argument) {
276
+ if (isCallable$f(argument)) return argument;
277
+ throw new $TypeError$e(tryToString$2(argument) + ' is not a function');
278
278
  };
279
279
 
280
- var aCallable$a = aCallable$b;
281
- var isNullOrUndefined$2 = isNullOrUndefined$4;
280
+ var aCallable$6 = aCallable$7;
281
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
282
282
 
283
283
  // `GetMethod` abstract operation
284
284
  // https://tc39.es/ecma262/#sec-getmethod
285
285
  var getMethod$6 = function (V, P) {
286
286
  var func = V[P];
287
- return isNullOrUndefined$2(func) ? undefined : aCallable$a(func);
287
+ return isNullOrUndefined$1(func) ? undefined : aCallable$6(func);
288
288
  };
289
289
 
290
- var call$n = functionCall;
291
- var isCallable$j = isCallable$o;
292
- var isObject$d = isObject$e;
290
+ var call$k = functionCall;
291
+ var isCallable$e = isCallable$j;
292
+ var isObject$b = isObject$c;
293
293
 
294
- var $TypeError$g = TypeError;
294
+ var $TypeError$d = TypeError;
295
295
 
296
296
  // `OrdinaryToPrimitive` abstract operation
297
297
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
298
298
  var ordinaryToPrimitive$1 = function (input, pref) {
299
299
  var fn, val;
300
- if (pref === 'string' && isCallable$j(fn = input.toString) && !isObject$d(val = call$n(fn, input))) return val;
301
- if (isCallable$j(fn = input.valueOf) && !isObject$d(val = call$n(fn, input))) return val;
302
- if (pref !== 'string' && isCallable$j(fn = input.toString) && !isObject$d(val = call$n(fn, input))) return val;
303
- throw new $TypeError$g("Can't convert object to primitive value");
300
+ if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$k(fn, input))) return val;
301
+ if (isCallable$e(fn = input.valueOf) && !isObject$b(val = call$k(fn, input))) return val;
302
+ if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$k(fn, input))) return val;
303
+ throw new $TypeError$d("Can't convert object to primitive value");
304
304
  };
305
305
 
306
306
  var sharedStore = {exports: {}};
307
307
 
308
- var globalThis$n = globalThis_1;
308
+ var globalThis$f = globalThis_1;
309
309
 
310
310
  // eslint-disable-next-line es/no-object-defineproperty -- safe
311
311
  var defineProperty$5 = Object.defineProperty;
312
312
 
313
313
  var defineGlobalProperty$3 = function (key, value) {
314
314
  try {
315
- defineProperty$5(globalThis$n, key, { value: value, configurable: true, writable: true });
315
+ defineProperty$5(globalThis$f, key, { value: value, configurable: true, writable: true });
316
316
  } catch (error) {
317
- globalThis$n[key] = value;
317
+ globalThis$f[key] = value;
318
318
  } return value;
319
319
  };
320
320
 
321
- var globalThis$m = globalThis_1;
321
+ var globalThis$e = globalThis_1;
322
322
  var defineGlobalProperty$2 = defineGlobalProperty$3;
323
323
 
324
324
  var SHARED = '__core-js_shared__';
325
- var store$3 = sharedStore.exports = globalThis$m[SHARED] || defineGlobalProperty$2(SHARED, {});
325
+ var store$3 = sharedStore.exports = globalThis$e[SHARED] || defineGlobalProperty$2(SHARED, {});
326
326
 
327
327
  (store$3.versions || (store$3.versions = [])).push({
328
328
  version: '3.49.0',
@@ -350,10 +350,10 @@ var toObject$4 = function (argument) {
350
350
  return $Object$2(requireObjectCoercible$6(argument));
351
351
  };
352
352
 
353
- var uncurryThis$l = functionUncurryThis;
353
+ var uncurryThis$j = functionUncurryThis;
354
354
  var toObject$3 = toObject$4;
355
355
 
356
- var hasOwnProperty = uncurryThis$l({}.hasOwnProperty);
356
+ var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
357
357
 
358
358
  // `HasOwnProperty` abstract operation
359
359
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -362,56 +362,56 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
362
362
  return hasOwnProperty(toObject$3(it), key);
363
363
  };
364
364
 
365
- var uncurryThis$k = functionUncurryThis;
365
+ var uncurryThis$i = functionUncurryThis;
366
366
 
367
367
  var id = 0;
368
368
  var postfix = Math.random();
369
- var toString$9 = uncurryThis$k(1.1.toString);
369
+ var toString$9 = uncurryThis$i(1.1.toString);
370
370
 
371
371
  var uid$2 = function (key) {
372
372
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
373
373
  };
374
374
 
375
- var globalThis$l = globalThis_1;
375
+ var globalThis$d = globalThis_1;
376
376
  var shared$3 = shared$4;
377
- var hasOwn$d = hasOwnProperty_1;
377
+ var hasOwn$c = hasOwnProperty_1;
378
378
  var uid$1 = uid$2;
379
379
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
380
380
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
381
381
 
382
- var Symbol$1 = globalThis$l.Symbol;
382
+ var Symbol$1 = globalThis$d.Symbol;
383
383
  var WellKnownSymbolsStore = shared$3('wks');
384
384
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
385
385
 
386
- var wellKnownSymbol$k = function (name) {
387
- if (!hasOwn$d(WellKnownSymbolsStore, name)) {
388
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$d(Symbol$1, name)
386
+ var wellKnownSymbol$g = function (name) {
387
+ if (!hasOwn$c(WellKnownSymbolsStore, name)) {
388
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$c(Symbol$1, name)
389
389
  ? Symbol$1[name]
390
390
  : createWellKnownSymbol('Symbol.' + name);
391
391
  } return WellKnownSymbolsStore[name];
392
392
  };
393
393
 
394
- var call$m = functionCall;
395
- var isObject$c = isObject$e;
394
+ var call$j = functionCall;
395
+ var isObject$a = isObject$c;
396
396
  var isSymbol$1 = isSymbol$2;
397
397
  var getMethod$5 = getMethod$6;
398
398
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
399
- var wellKnownSymbol$j = wellKnownSymbol$k;
399
+ var wellKnownSymbol$f = wellKnownSymbol$g;
400
400
 
401
- var $TypeError$f = TypeError;
402
- var TO_PRIMITIVE = wellKnownSymbol$j('toPrimitive');
401
+ var $TypeError$c = TypeError;
402
+ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
403
403
 
404
404
  // `ToPrimitive` abstract operation
405
405
  // https://tc39.es/ecma262/#sec-toprimitive
406
406
  var toPrimitive$1 = function (input, pref) {
407
- if (!isObject$c(input) || isSymbol$1(input)) return input;
407
+ if (!isObject$a(input) || isSymbol$1(input)) return input;
408
408
  var exoticToPrim = getMethod$5(input, TO_PRIMITIVE);
409
409
  var result;
410
410
  if (exoticToPrim) {
411
411
  if (pref === undefined) pref = 'default';
412
- result = call$m(exoticToPrim, input, pref);
413
- if (!isObject$c(result) || isSymbol$1(result)) return result;
414
- throw new $TypeError$f("Can't convert object to primitive value");
412
+ result = call$j(exoticToPrim, input, pref);
413
+ if (!isObject$a(result) || isSymbol$1(result)) return result;
414
+ throw new $TypeError$c("Can't convert object to primitive value");
415
415
  }
416
416
  if (pref === undefined) pref = 'number';
417
417
  return ordinaryToPrimitive(input, pref);
@@ -427,36 +427,36 @@ var toPropertyKey$2 = function (argument) {
427
427
  return isSymbol(key) ? key : key + '';
428
428
  };
429
429
 
430
- var globalThis$k = globalThis_1;
431
- var isObject$b = isObject$e;
430
+ var globalThis$c = globalThis_1;
431
+ var isObject$9 = isObject$c;
432
432
 
433
- var document$3 = globalThis$k.document;
433
+ var document$1 = globalThis$c.document;
434
434
  // typeof document.createElement is 'object' in old IE
435
- var EXISTS$1 = isObject$b(document$3) && isObject$b(document$3.createElement);
435
+ var EXISTS$1 = isObject$9(document$1) && isObject$9(document$1.createElement);
436
436
 
437
437
  var documentCreateElement$2 = function (it) {
438
- return EXISTS$1 ? document$3.createElement(it) : {};
438
+ return EXISTS$1 ? document$1.createElement(it) : {};
439
439
  };
440
440
 
441
- var DESCRIPTORS$e = descriptors;
442
- var fails$k = fails$p;
443
- var createElement$1 = documentCreateElement$2;
441
+ var DESCRIPTORS$c = descriptors;
442
+ var fails$i = fails$n;
443
+ var createElement = documentCreateElement$2;
444
444
 
445
445
  // Thanks to IE8 for its funny defineProperty
446
- var ie8DomDefine = !DESCRIPTORS$e && !fails$k(function () {
446
+ var ie8DomDefine = !DESCRIPTORS$c && !fails$i(function () {
447
447
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
448
- return Object.defineProperty(createElement$1('div'), 'a', {
448
+ return Object.defineProperty(createElement('div'), 'a', {
449
449
  get: function () { return 7; }
450
450
  }).a !== 7;
451
451
  });
452
452
 
453
- var DESCRIPTORS$d = descriptors;
454
- var call$l = functionCall;
453
+ var DESCRIPTORS$b = descriptors;
454
+ var call$i = functionCall;
455
455
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
456
456
  var createPropertyDescriptor$3 = createPropertyDescriptor$4;
457
457
  var toIndexedObject$4 = toIndexedObject$5;
458
458
  var toPropertyKey$1 = toPropertyKey$2;
459
- var hasOwn$c = hasOwnProperty_1;
459
+ var hasOwn$b = hasOwnProperty_1;
460
460
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
461
461
 
462
462
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -464,23 +464,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
464
464
 
465
465
  // `Object.getOwnPropertyDescriptor` method
466
466
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
467
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
467
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
468
468
  O = toIndexedObject$4(O);
469
469
  P = toPropertyKey$1(P);
470
470
  if (IE8_DOM_DEFINE$1) try {
471
471
  return $getOwnPropertyDescriptor$1(O, P);
472
472
  } catch (error) { /* empty */ }
473
- if (hasOwn$c(O, P)) return createPropertyDescriptor$3(!call$l(propertyIsEnumerableModule.f, O, P), O[P]);
473
+ if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$i(propertyIsEnumerableModule.f, O, P), O[P]);
474
474
  };
475
475
 
476
476
  var objectDefineProperty = {};
477
477
 
478
- var DESCRIPTORS$c = descriptors;
479
- var fails$j = fails$p;
478
+ var DESCRIPTORS$a = descriptors;
479
+ var fails$h = fails$n;
480
480
 
481
481
  // V8 ~ Chrome 36-
482
482
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
483
- var v8PrototypeDefineBug = DESCRIPTORS$c && fails$j(function () {
483
+ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$h(function () {
484
484
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
485
485
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
486
486
  value: 42,
@@ -488,24 +488,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$j(function () {
488
488
  }).prototype !== 42;
489
489
  });
490
490
 
491
- var isObject$a = isObject$e;
491
+ var isObject$8 = isObject$c;
492
492
 
493
493
  var $String$3 = String;
494
- var $TypeError$e = TypeError;
494
+ var $TypeError$b = TypeError;
495
495
 
496
496
  // `Assert: Type(argument) is Object`
497
- var anObject$k = function (argument) {
498
- if (isObject$a(argument)) return argument;
499
- throw new $TypeError$e($String$3(argument) + ' is not an object');
497
+ var anObject$i = function (argument) {
498
+ if (isObject$8(argument)) return argument;
499
+ throw new $TypeError$b($String$3(argument) + ' is not an object');
500
500
  };
501
501
 
502
- var DESCRIPTORS$b = descriptors;
502
+ var DESCRIPTORS$9 = descriptors;
503
503
  var IE8_DOM_DEFINE = ie8DomDefine;
504
504
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
505
- var anObject$j = anObject$k;
505
+ var anObject$h = anObject$i;
506
506
  var toPropertyKey = toPropertyKey$2;
507
507
 
508
- var $TypeError$d = TypeError;
508
+ var $TypeError$a = TypeError;
509
509
  // eslint-disable-next-line es/no-object-defineproperty -- safe
510
510
  var $defineProperty = Object.defineProperty;
511
511
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -516,10 +516,10 @@ var WRITABLE = 'writable';
516
516
 
517
517
  // `Object.defineProperty` method
518
518
  // https://tc39.es/ecma262/#sec-object.defineproperty
519
- objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
520
- anObject$j(O);
519
+ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
520
+ anObject$h(O);
521
521
  P = toPropertyKey(P);
522
- anObject$j(Attributes);
522
+ anObject$h(Attributes);
523
523
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
524
524
  var current = $getOwnPropertyDescriptor(O, P);
525
525
  if (current && current[WRITABLE]) {
@@ -532,22 +532,22 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
532
532
  }
533
533
  } return $defineProperty(O, P, Attributes);
534
534
  } : $defineProperty : function defineProperty(O, P, Attributes) {
535
- anObject$j(O);
535
+ anObject$h(O);
536
536
  P = toPropertyKey(P);
537
- anObject$j(Attributes);
537
+ anObject$h(Attributes);
538
538
  if (IE8_DOM_DEFINE) try {
539
539
  return $defineProperty(O, P, Attributes);
540
540
  } catch (error) { /* empty */ }
541
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$d('Accessors not supported');
541
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$a('Accessors not supported');
542
542
  if ('value' in Attributes) O[P] = Attributes.value;
543
543
  return O;
544
544
  };
545
545
 
546
- var DESCRIPTORS$a = descriptors;
546
+ var DESCRIPTORS$8 = descriptors;
547
547
  var definePropertyModule$4 = objectDefineProperty;
548
548
  var createPropertyDescriptor$2 = createPropertyDescriptor$4;
549
549
 
550
- var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
550
+ var createNonEnumerableProperty$6 = DESCRIPTORS$8 ? function (object, key, value) {
551
551
  return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
552
552
  } : function (object, key, value) {
553
553
  object[key] = value;
@@ -556,44 +556,44 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value
556
556
 
557
557
  var makeBuiltIn$3 = {exports: {}};
558
558
 
559
- var DESCRIPTORS$9 = descriptors;
560
- var hasOwn$b = hasOwnProperty_1;
559
+ var DESCRIPTORS$7 = descriptors;
560
+ var hasOwn$a = hasOwnProperty_1;
561
561
 
562
562
  var FunctionPrototype$1 = Function.prototype;
563
563
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
564
- var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
564
+ var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
565
565
 
566
- var EXISTS = hasOwn$b(FunctionPrototype$1, 'name');
566
+ var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
567
567
  // additional protection from minified / mangled / dropped function names
568
568
  var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
569
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype$1, 'name').configurable));
569
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
570
570
 
571
571
  var functionName = {
572
572
  PROPER: PROPER,
573
573
  CONFIGURABLE: CONFIGURABLE
574
574
  };
575
575
 
576
- var uncurryThis$j = functionUncurryThis;
577
- var isCallable$i = isCallable$o;
576
+ var uncurryThis$h = functionUncurryThis;
577
+ var isCallable$d = isCallable$j;
578
578
  var store$1 = sharedStoreExports;
579
579
 
580
- var functionToString = uncurryThis$j(Function.toString);
580
+ var functionToString = uncurryThis$h(Function.toString);
581
581
 
582
582
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
583
- if (!isCallable$i(store$1.inspectSource)) {
583
+ if (!isCallable$d(store$1.inspectSource)) {
584
584
  store$1.inspectSource = function (it) {
585
585
  return functionToString(it);
586
586
  };
587
587
  }
588
588
 
589
- var inspectSource$3 = store$1.inspectSource;
589
+ var inspectSource$1 = store$1.inspectSource;
590
590
 
591
- var globalThis$j = globalThis_1;
592
- var isCallable$h = isCallable$o;
591
+ var globalThis$b = globalThis_1;
592
+ var isCallable$c = isCallable$j;
593
593
 
594
- var WeakMap$1 = globalThis$j.WeakMap;
594
+ var WeakMap$1 = globalThis$b.WeakMap;
595
595
 
596
- var weakMapBasicDetection = isCallable$h(WeakMap$1) && /native code/.test(String(WeakMap$1));
596
+ var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
597
597
 
598
598
  var shared$2 = shared$4;
599
599
  var uid = uid$2;
@@ -607,28 +607,28 @@ var sharedKey$3 = function (key) {
607
607
  var hiddenKeys$4 = {};
608
608
 
609
609
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
610
- var globalThis$i = globalThis_1;
611
- var isObject$9 = isObject$e;
610
+ var globalThis$a = globalThis_1;
611
+ var isObject$7 = isObject$c;
612
612
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
613
- var hasOwn$a = hasOwnProperty_1;
613
+ var hasOwn$9 = hasOwnProperty_1;
614
614
  var shared$1 = sharedStoreExports;
615
615
  var sharedKey$2 = sharedKey$3;
616
616
  var hiddenKeys$3 = hiddenKeys$4;
617
617
 
618
618
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
619
- var TypeError$2 = globalThis$i.TypeError;
620
- var WeakMap = globalThis$i.WeakMap;
621
- var set$1, get, has$6;
619
+ var TypeError$1 = globalThis$a.TypeError;
620
+ var WeakMap = globalThis$a.WeakMap;
621
+ var set, get, has$6;
622
622
 
623
623
  var enforce = function (it) {
624
- return has$6(it) ? get(it) : set$1(it, {});
624
+ return has$6(it) ? get(it) : set(it, {});
625
625
  };
626
626
 
627
627
  var getterFor = function (TYPE) {
628
628
  return function (it) {
629
629
  var state;
630
- if (!isObject$9(it) || (state = get(it)).type !== TYPE) {
631
- throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
630
+ if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
631
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
632
632
  } return state;
633
633
  };
634
634
  };
@@ -640,8 +640,8 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
640
640
  store.has = store.has;
641
641
  store.set = store.set;
642
642
  /* eslint-enable no-self-assign -- prototype methods protection */
643
- set$1 = function (it, metadata) {
644
- if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
643
+ set = function (it, metadata) {
644
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
645
645
  metadata.facade = it;
646
646
  store.set(it, metadata);
647
647
  return metadata;
@@ -655,47 +655,47 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
655
655
  } else {
656
656
  var STATE = sharedKey$2('state');
657
657
  hiddenKeys$3[STATE] = true;
658
- set$1 = function (it, metadata) {
659
- if (hasOwn$a(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
658
+ set = function (it, metadata) {
659
+ if (hasOwn$9(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
660
660
  metadata.facade = it;
661
661
  createNonEnumerableProperty$5(it, STATE, metadata);
662
662
  return metadata;
663
663
  };
664
664
  get = function (it) {
665
- return hasOwn$a(it, STATE) ? it[STATE] : {};
665
+ return hasOwn$9(it, STATE) ? it[STATE] : {};
666
666
  };
667
667
  has$6 = function (it) {
668
- return hasOwn$a(it, STATE);
668
+ return hasOwn$9(it, STATE);
669
669
  };
670
670
  }
671
671
 
672
672
  var internalState = {
673
- set: set$1,
673
+ set: set,
674
674
  get: get,
675
675
  has: has$6,
676
676
  enforce: enforce,
677
677
  getterFor: getterFor
678
678
  };
679
679
 
680
- var uncurryThis$i = functionUncurryThis;
681
- var fails$i = fails$p;
682
- var isCallable$g = isCallable$o;
683
- var hasOwn$9 = hasOwnProperty_1;
684
- var DESCRIPTORS$8 = descriptors;
680
+ var uncurryThis$g = functionUncurryThis;
681
+ var fails$g = fails$n;
682
+ var isCallable$b = isCallable$j;
683
+ var hasOwn$8 = hasOwnProperty_1;
684
+ var DESCRIPTORS$6 = descriptors;
685
685
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
686
- var inspectSource$2 = inspectSource$3;
687
- var InternalStateModule$3 = internalState;
686
+ var inspectSource = inspectSource$1;
687
+ var InternalStateModule$2 = internalState;
688
688
 
689
- var enforceInternalState = InternalStateModule$3.enforce;
690
- var getInternalState$2 = InternalStateModule$3.get;
689
+ var enforceInternalState = InternalStateModule$2.enforce;
690
+ var getInternalState$2 = InternalStateModule$2.get;
691
691
  var $String$2 = String;
692
692
  // eslint-disable-next-line es/no-object-defineproperty -- safe
693
693
  var defineProperty$4 = Object.defineProperty;
694
- var stringSlice$5 = uncurryThis$i(''.slice);
695
- var replace$2 = uncurryThis$i(''.replace);
696
- var join = uncurryThis$i([].join);
694
+ var stringSlice$5 = uncurryThis$g(''.slice);
695
+ var replace$2 = uncurryThis$g(''.replace);
696
+ var join = uncurryThis$g([].join);
697
697
 
698
- var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$i(function () {
698
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$g(function () {
699
699
  return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
700
700
  });
701
701
 
@@ -707,21 +707,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
707
707
  }
708
708
  if (options && options.getter) name = 'get ' + name;
709
709
  if (options && options.setter) name = 'set ' + name;
710
- if (!hasOwn$9(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
711
- if (DESCRIPTORS$8) defineProperty$4(value, 'name', { value: name, configurable: true });
710
+ if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
711
+ if (DESCRIPTORS$6) defineProperty$4(value, 'name', { value: name, configurable: true });
712
712
  else value.name = name;
713
713
  }
714
- if (CONFIGURABLE_LENGTH && options && hasOwn$9(options, 'arity') && value.length !== options.arity) {
714
+ if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
715
715
  defineProperty$4(value, 'length', { value: options.arity });
716
716
  }
717
717
  try {
718
- if (options && hasOwn$9(options, 'constructor') && options.constructor) {
719
- if (DESCRIPTORS$8) defineProperty$4(value, 'prototype', { writable: false });
718
+ if (options && hasOwn$8(options, 'constructor') && options.constructor) {
719
+ if (DESCRIPTORS$6) defineProperty$4(value, 'prototype', { writable: false });
720
720
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
721
721
  } else if (value.prototype) value.prototype = undefined;
722
722
  } catch (error) { /* empty */ }
723
723
  var state = enforceInternalState(value);
724
- if (!hasOwn$9(state, 'source')) {
724
+ if (!hasOwn$8(state, 'source')) {
725
725
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
726
726
  } return value;
727
727
  };
@@ -729,21 +729,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
729
729
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
730
730
  // eslint-disable-next-line no-extend-native -- required
731
731
  Function.prototype.toString = makeBuiltIn$2(function toString() {
732
- return isCallable$g(this) && getInternalState$2(this).source || inspectSource$2(this);
732
+ return isCallable$b(this) && getInternalState$2(this).source || inspectSource(this);
733
733
  }, 'toString');
734
734
 
735
735
  var makeBuiltInExports = makeBuiltIn$3.exports;
736
736
 
737
- var isCallable$f = isCallable$o;
737
+ var isCallable$a = isCallable$j;
738
738
  var definePropertyModule$3 = objectDefineProperty;
739
739
  var makeBuiltIn$1 = makeBuiltInExports;
740
740
  var defineGlobalProperty$1 = defineGlobalProperty$3;
741
741
 
742
- var defineBuiltIn$8 = function (O, key, value, options) {
742
+ var defineBuiltIn$6 = function (O, key, value, options) {
743
743
  if (!options) options = {};
744
744
  var simple = options.enumerable;
745
745
  var name = options.name !== undefined ? options.name : key;
746
- if (isCallable$f(value)) makeBuiltIn$1(value, name, options);
746
+ if (isCallable$a(value)) makeBuiltIn$1(value, name, options);
747
747
  if (options.global) {
748
748
  if (simple) O[key] = value;
749
749
  else defineGlobalProperty$1(key, value);
@@ -851,22 +851,22 @@ var arrayIncludes = {
851
851
  indexOf: createMethod$1(false)
852
852
  };
853
853
 
854
- var uncurryThis$h = functionUncurryThis;
855
- var hasOwn$8 = hasOwnProperty_1;
854
+ var uncurryThis$f = functionUncurryThis;
855
+ var hasOwn$7 = hasOwnProperty_1;
856
856
  var toIndexedObject$2 = toIndexedObject$5;
857
857
  var indexOf$1 = arrayIncludes.indexOf;
858
858
  var hiddenKeys$2 = hiddenKeys$4;
859
859
 
860
- var push$2 = uncurryThis$h([].push);
860
+ var push$2 = uncurryThis$f([].push);
861
861
 
862
862
  var objectKeysInternal = function (object, names) {
863
863
  var O = toIndexedObject$2(object);
864
864
  var i = 0;
865
865
  var result = [];
866
866
  var key;
867
- for (key in O) !hasOwn$8(hiddenKeys$2, key) && hasOwn$8(O, key) && push$2(result, key);
867
+ for (key in O) !hasOwn$7(hiddenKeys$2, key) && hasOwn$7(O, key) && push$2(result, key);
868
868
  // Don't enum bug & hidden keys
869
- while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
869
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
870
870
  ~indexOf$1(result, key) || push$2(result, key);
871
871
  }
872
872
  return result;
@@ -900,22 +900,22 @@ var objectGetOwnPropertySymbols = {};
900
900
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
901
901
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
902
902
 
903
- var getBuiltIn$7 = getBuiltIn$9;
904
- var uncurryThis$g = functionUncurryThis;
903
+ var getBuiltIn$3 = getBuiltIn$5;
904
+ var uncurryThis$e = functionUncurryThis;
905
905
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
906
906
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
907
- var anObject$i = anObject$k;
907
+ var anObject$g = anObject$i;
908
908
 
909
- var concat$1 = uncurryThis$g([].concat);
909
+ var concat$1 = uncurryThis$e([].concat);
910
910
 
911
911
  // all object keys, includes non-enumerable and symbols
912
- var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
913
- var keys = getOwnPropertyNamesModule.f(anObject$i(it));
912
+ var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
913
+ var keys = getOwnPropertyNamesModule.f(anObject$g(it));
914
914
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
915
915
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
916
916
  };
917
917
 
918
- var hasOwn$7 = hasOwnProperty_1;
918
+ var hasOwn$6 = hasOwnProperty_1;
919
919
  var ownKeys = ownKeys$1;
920
920
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
921
921
  var definePropertyModule$2 = objectDefineProperty;
@@ -926,42 +926,42 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
926
926
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
927
927
  for (var i = 0; i < keys.length; i++) {
928
928
  var key = keys[i];
929
- if (!hasOwn$7(target, key) && !(exceptions && hasOwn$7(exceptions, key))) {
929
+ if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {
930
930
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
931
931
  }
932
932
  }
933
933
  };
934
934
 
935
- var fails$h = fails$p;
936
- var isCallable$e = isCallable$o;
935
+ var fails$f = fails$n;
936
+ var isCallable$9 = isCallable$j;
937
937
 
938
938
  var replacement = /#|\.prototype\./;
939
939
 
940
- var isForced$2 = function (feature, detection) {
940
+ var isForced$1 = function (feature, detection) {
941
941
  var value = data[normalize(feature)];
942
942
  return value === POLYFILL ? true
943
943
  : value === NATIVE ? false
944
- : isCallable$e(detection) ? fails$h(detection)
944
+ : isCallable$9(detection) ? fails$f(detection)
945
945
  : !!detection;
946
946
  };
947
947
 
948
- var normalize = isForced$2.normalize = function (string) {
948
+ var normalize = isForced$1.normalize = function (string) {
949
949
  return String(string).replace(replacement, '.').toLowerCase();
950
950
  };
951
951
 
952
- var data = isForced$2.data = {};
953
- var NATIVE = isForced$2.NATIVE = 'N';
954
- var POLYFILL = isForced$2.POLYFILL = 'P';
952
+ var data = isForced$1.data = {};
953
+ var NATIVE = isForced$1.NATIVE = 'N';
954
+ var POLYFILL = isForced$1.POLYFILL = 'P';
955
955
 
956
- var isForced_1 = isForced$2;
956
+ var isForced_1 = isForced$1;
957
957
 
958
- var globalThis$h = globalThis_1;
959
- var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;
958
+ var globalThis$9 = globalThis_1;
959
+ var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
960
960
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
961
- var defineBuiltIn$7 = defineBuiltIn$8;
961
+ var defineBuiltIn$5 = defineBuiltIn$6;
962
962
  var defineGlobalProperty = defineGlobalProperty$3;
963
963
  var copyConstructorProperties = copyConstructorProperties$1;
964
- var isForced$1 = isForced_1;
964
+ var isForced = isForced_1;
965
965
 
966
966
  /*
967
967
  options.target - name of the target object
@@ -984,19 +984,19 @@ var _export = function (options, source) {
984
984
  var STATIC = options.stat;
985
985
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
986
986
  if (GLOBAL) {
987
- target = globalThis$h;
987
+ target = globalThis$9;
988
988
  } else if (STATIC) {
989
- target = globalThis$h[TARGET] || defineGlobalProperty(TARGET, {});
989
+ target = globalThis$9[TARGET] || defineGlobalProperty(TARGET, {});
990
990
  } else {
991
- target = globalThis$h[TARGET] && globalThis$h[TARGET].prototype;
991
+ target = globalThis$9[TARGET] && globalThis$9[TARGET].prototype;
992
992
  }
993
993
  if (target) for (key in source) {
994
994
  sourceProperty = source[key];
995
995
  if (options.dontCallGetSet) {
996
- descriptor = getOwnPropertyDescriptor$4(target, key);
996
+ descriptor = getOwnPropertyDescriptor$3(target, key);
997
997
  targetProperty = descriptor && descriptor.value;
998
998
  } else targetProperty = target[key];
999
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
999
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1000
1000
  // contained in target
1001
1001
  if (!FORCED && targetProperty !== undefined) {
1002
1002
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1006,7 +1006,7 @@ var _export = function (options, source) {
1006
1006
  if (options.sham || (targetProperty && targetProperty.sham)) {
1007
1007
  createNonEnumerableProperty$4(sourceProperty, 'sham', true);
1008
1008
  }
1009
- defineBuiltIn$7(target, key, sourceProperty, options);
1009
+ defineBuiltIn$5(target, key, sourceProperty, options);
1010
1010
  }
1011
1011
  };
1012
1012
 
@@ -1022,18 +1022,18 @@ var objectKeys$1 = Object.keys || function keys(O) {
1022
1022
  return internalObjectKeys(O, enumBugKeys$1);
1023
1023
  };
1024
1024
 
1025
- var DESCRIPTORS$7 = descriptors;
1025
+ var DESCRIPTORS$5 = descriptors;
1026
1026
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1027
1027
  var definePropertyModule$1 = objectDefineProperty;
1028
- var anObject$h = anObject$k;
1028
+ var anObject$f = anObject$i;
1029
1029
  var toIndexedObject$1 = toIndexedObject$5;
1030
1030
  var objectKeys = objectKeys$1;
1031
1031
 
1032
1032
  // `Object.defineProperties` method
1033
1033
  // https://tc39.es/ecma262/#sec-object.defineproperties
1034
1034
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1035
- objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1036
- anObject$h(O);
1035
+ objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1036
+ anObject$f(O);
1037
1037
  var props = toIndexedObject$1(Properties);
1038
1038
  var keys = objectKeys(Properties);
1039
1039
  var length = keys.length;
@@ -1043,16 +1043,16 @@ objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1043
1043
  return O;
1044
1044
  };
1045
1045
 
1046
- var getBuiltIn$6 = getBuiltIn$9;
1046
+ var getBuiltIn$2 = getBuiltIn$5;
1047
1047
 
1048
- var html$2 = getBuiltIn$6('document', 'documentElement');
1048
+ var html$1 = getBuiltIn$2('document', 'documentElement');
1049
1049
 
1050
1050
  /* global ActiveXObject -- old IE, WSH */
1051
- var anObject$g = anObject$k;
1051
+ var anObject$e = anObject$i;
1052
1052
  var definePropertiesModule = objectDefineProperties;
1053
1053
  var enumBugKeys = enumBugKeys$3;
1054
1054
  var hiddenKeys = hiddenKeys$4;
1055
- var html$1 = html$2;
1055
+ var html = html$1;
1056
1056
  var documentCreateElement$1 = documentCreateElement$2;
1057
1057
  var sharedKey$1 = sharedKey$3;
1058
1058
 
@@ -1085,7 +1085,7 @@ var NullProtoObjectViaIFrame = function () {
1085
1085
  var JS = 'java' + SCRIPT + ':';
1086
1086
  var iframeDocument;
1087
1087
  iframe.style.display = 'none';
1088
- html$1.appendChild(iframe);
1088
+ html.appendChild(iframe);
1089
1089
  // https://github.com/zloirock/core-js/issues/475
1090
1090
  iframe.src = String(JS);
1091
1091
  iframeDocument = iframe.contentWindow.document;
@@ -1123,7 +1123,7 @@ hiddenKeys[IE_PROTO$1] = true;
1123
1123
  var objectCreate = Object.create || function create(O, Properties) {
1124
1124
  var result;
1125
1125
  if (O !== null) {
1126
- EmptyConstructor[PROTOTYPE] = anObject$g(O);
1126
+ EmptyConstructor[PROTOTYPE] = anObject$e(O);
1127
1127
  result = new EmptyConstructor();
1128
1128
  EmptyConstructor[PROTOTYPE] = null;
1129
1129
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1132,11 +1132,11 @@ var objectCreate = Object.create || function create(O, Properties) {
1132
1132
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1133
1133
  };
1134
1134
 
1135
- var wellKnownSymbol$i = wellKnownSymbol$k;
1135
+ var wellKnownSymbol$e = wellKnownSymbol$g;
1136
1136
  var create$3 = objectCreate;
1137
1137
  var defineProperty$3 = objectDefineProperty.f;
1138
1138
 
1139
- var UNSCOPABLES = wellKnownSymbol$i('unscopables');
1139
+ var UNSCOPABLES = wellKnownSymbol$e('unscopables');
1140
1140
  var ArrayPrototype$1 = Array.prototype;
1141
1141
 
1142
1142
  // Array.prototype[@@unscopables]
@@ -1153,26 +1153,26 @@ var addToUnscopables$2 = function (key) {
1153
1153
  ArrayPrototype$1[UNSCOPABLES][key] = true;
1154
1154
  };
1155
1155
 
1156
- var $$n = _export;
1156
+ var $$h = _export;
1157
1157
  var $includes = arrayIncludes.includes;
1158
- var fails$g = fails$p;
1158
+ var fails$e = fails$n;
1159
1159
  var addToUnscopables$1 = addToUnscopables$2;
1160
1160
 
1161
1161
  // FF99+ bug
1162
- var BROKEN_ON_SPARSE = fails$g(function () {
1162
+ var BROKEN_ON_SPARSE = fails$e(function () {
1163
1163
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
1164
1164
  return !Array(1).includes();
1165
1165
  });
1166
1166
 
1167
1167
  // Safari 26.4- bug
1168
- var BROKEN_ON_SPARSE_WITH_FROM_INDEX = fails$g(function () {
1168
+ var BROKEN_ON_SPARSE_WITH_FROM_INDEX = fails$e(function () {
1169
1169
  // eslint-disable-next-line no-sparse-arrays, es/no-array-prototype-includes -- detection
1170
1170
  return [, 1].includes(undefined, 1);
1171
1171
  });
1172
1172
 
1173
1173
  // `Array.prototype.includes` method
1174
1174
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1175
- $$n({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {
1175
+ $$h({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {
1176
1176
  includes: function includes(el /* , fromIndex = 0 */) {
1177
1177
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1178
1178
  }
@@ -1183,17 +1183,17 @@ addToUnscopables$1('includes');
1183
1183
 
1184
1184
  var iterators = {};
1185
1185
 
1186
- var fails$f = fails$p;
1186
+ var fails$d = fails$n;
1187
1187
 
1188
- var correctPrototypeGetter = !fails$f(function () {
1188
+ var correctPrototypeGetter = !fails$d(function () {
1189
1189
  function F() { /* empty */ }
1190
1190
  F.prototype.constructor = null;
1191
1191
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1192
1192
  return Object.getPrototypeOf(new F()) !== F.prototype;
1193
1193
  });
1194
1194
 
1195
- var hasOwn$6 = hasOwnProperty_1;
1196
- var isCallable$d = isCallable$o;
1195
+ var hasOwn$5 = hasOwnProperty_1;
1196
+ var isCallable$8 = isCallable$j;
1197
1197
  var toObject$2 = toObject$4;
1198
1198
  var sharedKey = sharedKey$3;
1199
1199
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
@@ -1207,21 +1207,21 @@ var ObjectPrototype = $Object$1.prototype;
1207
1207
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1208
1208
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1209
1209
  var object = toObject$2(O);
1210
- if (hasOwn$6(object, IE_PROTO)) return object[IE_PROTO];
1210
+ if (hasOwn$5(object, IE_PROTO)) return object[IE_PROTO];
1211
1211
  var constructor = object.constructor;
1212
- if (isCallable$d(constructor) && object instanceof constructor) {
1212
+ if (isCallable$8(constructor) && object instanceof constructor) {
1213
1213
  return constructor.prototype;
1214
1214
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1215
1215
  };
1216
1216
 
1217
- var fails$e = fails$p;
1218
- var isCallable$c = isCallable$o;
1219
- var isObject$8 = isObject$e;
1217
+ var fails$c = fails$n;
1218
+ var isCallable$7 = isCallable$j;
1219
+ var isObject$6 = isObject$c;
1220
1220
  var getPrototypeOf$2 = objectGetPrototypeOf;
1221
- var defineBuiltIn$6 = defineBuiltIn$8;
1222
- var wellKnownSymbol$h = wellKnownSymbol$k;
1221
+ var defineBuiltIn$4 = defineBuiltIn$6;
1222
+ var wellKnownSymbol$d = wellKnownSymbol$g;
1223
1223
 
1224
- var ITERATOR$6 = wellKnownSymbol$h('iterator');
1224
+ var ITERATOR$5 = wellKnownSymbol$d('iterator');
1225
1225
  var BUGGY_SAFARI_ITERATORS$1 = false;
1226
1226
 
1227
1227
  // `%IteratorPrototype%` object
@@ -1239,18 +1239,18 @@ if ([].keys) {
1239
1239
  }
1240
1240
  }
1241
1241
 
1242
- var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$4) || fails$e(function () {
1242
+ var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$4) || fails$c(function () {
1243
1243
  var test = {};
1244
1244
  // FF44- legacy iterators case
1245
- return IteratorPrototype$4[ITERATOR$6].call(test) !== test;
1245
+ return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
1246
1246
  });
1247
1247
 
1248
1248
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
1249
1249
 
1250
1250
  // `%IteratorPrototype%[@@iterator]()` method
1251
1251
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1252
- if (!isCallable$c(IteratorPrototype$4[ITERATOR$6])) {
1253
- defineBuiltIn$6(IteratorPrototype$4, ITERATOR$6, function () {
1252
+ if (!isCallable$7(IteratorPrototype$4[ITERATOR$5])) {
1253
+ defineBuiltIn$4(IteratorPrototype$4, ITERATOR$5, function () {
1254
1254
  return this;
1255
1255
  });
1256
1256
  }
@@ -1261,14 +1261,14 @@ var iteratorsCore = {
1261
1261
  };
1262
1262
 
1263
1263
  var defineProperty$2 = objectDefineProperty.f;
1264
- var hasOwn$5 = hasOwnProperty_1;
1265
- var wellKnownSymbol$g = wellKnownSymbol$k;
1264
+ var hasOwn$4 = hasOwnProperty_1;
1265
+ var wellKnownSymbol$c = wellKnownSymbol$g;
1266
1266
 
1267
- var TO_STRING_TAG$4 = wellKnownSymbol$g('toStringTag');
1267
+ var TO_STRING_TAG$4 = wellKnownSymbol$c('toStringTag');
1268
1268
 
1269
- var setToStringTag$4 = function (target, TAG, STATIC) {
1269
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1270
1270
  if (target && !STATIC) target = target.prototype;
1271
- if (target && !hasOwn$5(target, TO_STRING_TAG$4)) {
1271
+ if (target && !hasOwn$4(target, TO_STRING_TAG$4)) {
1272
1272
  defineProperty$2(target, TO_STRING_TAG$4, { configurable: true, value: TAG });
1273
1273
  }
1274
1274
  };
@@ -1276,7 +1276,7 @@ var setToStringTag$4 = function (target, TAG, STATIC) {
1276
1276
  var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
1277
1277
  var create$2 = objectCreate;
1278
1278
  var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1279
- var setToStringTag$3 = setToStringTag$4;
1279
+ var setToStringTag$2 = setToStringTag$3;
1280
1280
  var Iterators$4 = iterators;
1281
1281
 
1282
1282
  var returnThis$1 = function () { return this; };
@@ -1284,40 +1284,40 @@ var returnThis$1 = function () { return this; };
1284
1284
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1285
1285
  var TO_STRING_TAG = NAME + ' Iterator';
1286
1286
  IteratorConstructor.prototype = create$2(IteratorPrototype$3, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1287
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1287
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1288
1288
  Iterators$4[TO_STRING_TAG] = returnThis$1;
1289
1289
  return IteratorConstructor;
1290
1290
  };
1291
1291
 
1292
- var uncurryThis$f = functionUncurryThis;
1293
- var aCallable$9 = aCallable$b;
1292
+ var uncurryThis$d = functionUncurryThis;
1293
+ var aCallable$5 = aCallable$7;
1294
1294
 
1295
1295
  var functionUncurryThisAccessor = function (object, key, method) {
1296
1296
  try {
1297
1297
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1298
- return uncurryThis$f(aCallable$9(Object.getOwnPropertyDescriptor(object, key)[method]));
1298
+ return uncurryThis$d(aCallable$5(Object.getOwnPropertyDescriptor(object, key)[method]));
1299
1299
  } catch (error) { /* empty */ }
1300
1300
  };
1301
1301
 
1302
- var isObject$7 = isObject$e;
1302
+ var isObject$5 = isObject$c;
1303
1303
 
1304
1304
  var isPossiblePrototype$1 = function (argument) {
1305
- return isObject$7(argument) || argument === null;
1305
+ return isObject$5(argument) || argument === null;
1306
1306
  };
1307
1307
 
1308
1308
  var isPossiblePrototype = isPossiblePrototype$1;
1309
1309
 
1310
1310
  var $String$1 = String;
1311
- var $TypeError$c = TypeError;
1311
+ var $TypeError$9 = TypeError;
1312
1312
 
1313
1313
  var aPossiblePrototype$1 = function (argument) {
1314
1314
  if (isPossiblePrototype(argument)) return argument;
1315
- throw new $TypeError$c("Can't set " + $String$1(argument) + ' as a prototype');
1315
+ throw new $TypeError$9("Can't set " + $String$1(argument) + ' as a prototype');
1316
1316
  };
1317
1317
 
1318
1318
  /* eslint-disable no-proto -- safe */
1319
1319
  var uncurryThisAccessor$1 = functionUncurryThisAccessor;
1320
- var isObject$6 = isObject$e;
1320
+ var isObject$4 = isObject$c;
1321
1321
  var requireObjectCoercible$5 = requireObjectCoercible$8;
1322
1322
  var aPossiblePrototype = aPossiblePrototype$1;
1323
1323
 
@@ -1337,24 +1337,24 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1337
1337
  return function setPrototypeOf(O, proto) {
1338
1338
  requireObjectCoercible$5(O);
1339
1339
  aPossiblePrototype(proto);
1340
- if (!isObject$6(O)) return O;
1340
+ if (!isObject$4(O)) return O;
1341
1341
  if (CORRECT_SETTER) setter(O, proto);
1342
1342
  else O.__proto__ = proto;
1343
1343
  return O;
1344
1344
  };
1345
1345
  }() : undefined);
1346
1346
 
1347
- var $$m = _export;
1348
- var call$k = functionCall;
1347
+ var $$g = _export;
1348
+ var call$h = functionCall;
1349
1349
  var FunctionName = functionName;
1350
- var isCallable$b = isCallable$o;
1350
+ var isCallable$6 = isCallable$j;
1351
1351
  var createIteratorConstructor = iteratorCreateConstructor;
1352
1352
  var getPrototypeOf$1 = objectGetPrototypeOf;
1353
- var setPrototypeOf$1 = objectSetPrototypeOf;
1354
- var setToStringTag$2 = setToStringTag$4;
1353
+ var setPrototypeOf = objectSetPrototypeOf;
1354
+ var setToStringTag$1 = setToStringTag$3;
1355
1355
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
1356
- var defineBuiltIn$5 = defineBuiltIn$8;
1357
- var wellKnownSymbol$f = wellKnownSymbol$k;
1356
+ var defineBuiltIn$3 = defineBuiltIn$6;
1357
+ var wellKnownSymbol$b = wellKnownSymbol$g;
1358
1358
  var Iterators$3 = iterators;
1359
1359
  var IteratorsCore = iteratorsCore;
1360
1360
 
@@ -1362,7 +1362,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1362
1362
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1363
1363
  var IteratorPrototype$2 = IteratorsCore.IteratorPrototype;
1364
1364
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1365
- var ITERATOR$5 = wellKnownSymbol$f('iterator');
1365
+ var ITERATOR$4 = wellKnownSymbol$b('iterator');
1366
1366
  var KEYS = 'keys';
1367
1367
  var VALUES = 'values';
1368
1368
  var ENTRIES = 'entries';
@@ -1388,7 +1388,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1388
1388
  var TO_STRING_TAG = NAME + ' Iterator';
1389
1389
  var INCORRECT_VALUES_NAME = false;
1390
1390
  var IterablePrototype = Iterable.prototype;
1391
- var nativeIterator = IterablePrototype[ITERATOR$5]
1391
+ var nativeIterator = IterablePrototype[ITERATOR$4]
1392
1392
  || IterablePrototype['@@iterator']
1393
1393
  || DEFAULT && IterablePrototype[DEFAULT];
1394
1394
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
@@ -1400,14 +1400,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1400
1400
  CurrentIteratorPrototype = getPrototypeOf$1(anyNativeIterator.call(new Iterable()));
1401
1401
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1402
1402
  if (getPrototypeOf$1(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1403
- if (setPrototypeOf$1) {
1404
- setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype$2);
1405
- } else if (!isCallable$b(CurrentIteratorPrototype[ITERATOR$5])) {
1406
- defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$5, returnThis);
1403
+ if (setPrototypeOf) {
1404
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1405
+ } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1406
+ defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1407
1407
  }
1408
1408
  }
1409
1409
  // Set @@toStringTag to native iterators
1410
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1410
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1411
1411
  }
1412
1412
  }
1413
1413
 
@@ -1417,7 +1417,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1417
1417
  createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
1418
1418
  } else {
1419
1419
  INCORRECT_VALUES_NAME = true;
1420
- defaultIterator = function values() { return call$k(nativeIterator, this); };
1420
+ defaultIterator = function values() { return call$h(nativeIterator, this); };
1421
1421
  }
1422
1422
  }
1423
1423
 
@@ -1430,14 +1430,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1430
1430
  };
1431
1431
  if (FORCED) for (KEY in methods) {
1432
1432
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1433
- defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
1433
+ defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1434
1434
  }
1435
- } else $$m({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1435
+ } else $$g({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1436
1436
  }
1437
1437
 
1438
1438
  // define iterator
1439
- if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
1440
- defineBuiltIn$5(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
1439
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1440
+ defineBuiltIn$3(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1441
1441
  }
1442
1442
  Iterators$3[NAME] = defaultIterator;
1443
1443
 
@@ -1453,15 +1453,15 @@ var createIterResultObject$2 = function (value, done) {
1453
1453
  var toIndexedObject = toIndexedObject$5;
1454
1454
  var addToUnscopables = addToUnscopables$2;
1455
1455
  var Iterators$2 = iterators;
1456
- var InternalStateModule$2 = internalState;
1456
+ var InternalStateModule$1 = internalState;
1457
1457
  var defineProperty$1 = objectDefineProperty.f;
1458
1458
  var defineIterator = iteratorDefine;
1459
1459
  var createIterResultObject$1 = createIterResultObject$2;
1460
- var DESCRIPTORS$6 = descriptors;
1460
+ var DESCRIPTORS$4 = descriptors;
1461
1461
 
1462
1462
  var ARRAY_ITERATOR = 'Array Iterator';
1463
- var setInternalState$2 = InternalStateModule$2.set;
1464
- var getInternalState$1 = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
1463
+ var setInternalState$1 = InternalStateModule$1.set;
1464
+ var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1465
1465
 
1466
1466
  // `Array.prototype.entries` method
1467
1467
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -1474,7 +1474,7 @@ var getInternalState$1 = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
1474
1474
  // `CreateArrayIterator` internal method
1475
1475
  // https://tc39.es/ecma262/#sec-createarrayiterator
1476
1476
  var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1477
- setInternalState$2(this, {
1477
+ setInternalState$1(this, {
1478
1478
  type: ARRAY_ITERATOR,
1479
1479
  target: toIndexedObject(iterated), // target
1480
1480
  index: 0, // next index
@@ -1507,13 +1507,13 @@ addToUnscopables('values');
1507
1507
  addToUnscopables('entries');
1508
1508
 
1509
1509
  // V8 ~ Chrome 45- bug
1510
- if (DESCRIPTORS$6 && values.name !== 'values') try {
1510
+ if (DESCRIPTORS$4 && values.name !== 'values') try {
1511
1511
  defineProperty$1(values, 'name', { value: 'values' });
1512
1512
  } catch (error) { /* empty */ }
1513
1513
 
1514
- var wellKnownSymbol$e = wellKnownSymbol$k;
1514
+ var wellKnownSymbol$a = wellKnownSymbol$g;
1515
1515
 
1516
- var TO_STRING_TAG$3 = wellKnownSymbol$e('toStringTag');
1516
+ var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
1517
1517
  var test = {};
1518
1518
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
1519
1519
  test[TO_STRING_TAG$3] = 'z';
@@ -1521,11 +1521,11 @@ test[TO_STRING_TAG$3] = 'z';
1521
1521
  var toStringTagSupport = String(test) === '[object z]';
1522
1522
 
1523
1523
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1524
- var isCallable$a = isCallable$o;
1524
+ var isCallable$5 = isCallable$j;
1525
1525
  var classofRaw$1 = classofRaw$2;
1526
- var wellKnownSymbol$d = wellKnownSymbol$k;
1526
+ var wellKnownSymbol$9 = wellKnownSymbol$g;
1527
1527
 
1528
- var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
1528
+ var TO_STRING_TAG$2 = wellKnownSymbol$9('toStringTag');
1529
1529
  var $Object = Object;
1530
1530
 
1531
1531
  // ES3 wrong here
@@ -1539,7 +1539,7 @@ var tryGet = function (it, key) {
1539
1539
  };
1540
1540
 
1541
1541
  // getting tag from ES6+ `Object.prototype.toString`
1542
- var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1542
+ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1543
1543
  var O, tag, result;
1544
1544
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1545
1545
  // @@toStringTag case
@@ -1547,24 +1547,24 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1547
1547
  // builtinTag case
1548
1548
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1549
1549
  // ES3 arguments fallback
1550
- : (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
1550
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1551
1551
  };
1552
1552
 
1553
- var classof$6 = classof$7;
1553
+ var classof$4 = classof$5;
1554
1554
 
1555
1555
  var $String = String;
1556
1556
 
1557
1557
  var toString$8 = function (argument) {
1558
- if (classof$6(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1558
+ if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1559
1559
  return $String(argument);
1560
1560
  };
1561
1561
 
1562
- var anObject$f = anObject$k;
1562
+ var anObject$d = anObject$i;
1563
1563
 
1564
1564
  // `RegExp.prototype.flags` getter implementation
1565
1565
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1566
1566
  var regexpFlags$1 = function () {
1567
- var that = anObject$f(this);
1567
+ var that = anObject$d(this);
1568
1568
  var result = '';
1569
1569
  if (that.hasIndices) result += 'd';
1570
1570
  if (that.global) result += 'g';
@@ -1577,13 +1577,13 @@ var regexpFlags$1 = function () {
1577
1577
  return result;
1578
1578
  };
1579
1579
 
1580
- var fails$d = fails$p;
1581
- var globalThis$g = globalThis_1;
1580
+ var fails$b = fails$n;
1581
+ var globalThis$8 = globalThis_1;
1582
1582
 
1583
1583
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1584
- var $RegExp$2 = globalThis$g.RegExp;
1584
+ var $RegExp$2 = globalThis$8.RegExp;
1585
1585
 
1586
- var UNSUPPORTED_Y$1 = fails$d(function () {
1586
+ var UNSUPPORTED_Y$1 = fails$b(function () {
1587
1587
  var re = $RegExp$2('a', 'y');
1588
1588
  re.lastIndex = 2;
1589
1589
  return re.exec('abcd') !== null;
@@ -1591,11 +1591,11 @@ var UNSUPPORTED_Y$1 = fails$d(function () {
1591
1591
 
1592
1592
  // UC Browser bug
1593
1593
  // https://github.com/zloirock/core-js/issues/1008
1594
- UNSUPPORTED_Y$1 || fails$d(function () {
1594
+ UNSUPPORTED_Y$1 || fails$b(function () {
1595
1595
  return !$RegExp$2('a', 'y').sticky;
1596
1596
  });
1597
1597
 
1598
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$d(function () {
1598
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$b(function () {
1599
1599
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1600
1600
  var re = $RegExp$2('^r', 'gy');
1601
1601
  re.lastIndex = 2;
@@ -1605,24 +1605,24 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$d(function () {
1605
1605
  var regexpStickyHelpers = {
1606
1606
  BROKEN_CARET: BROKEN_CARET};
1607
1607
 
1608
- var fails$c = fails$p;
1609
- var globalThis$f = globalThis_1;
1608
+ var fails$a = fails$n;
1609
+ var globalThis$7 = globalThis_1;
1610
1610
 
1611
1611
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1612
- var $RegExp$1 = globalThis$f.RegExp;
1612
+ var $RegExp$1 = globalThis$7.RegExp;
1613
1613
 
1614
- var regexpUnsupportedDotAll = fails$c(function () {
1614
+ var regexpUnsupportedDotAll = fails$a(function () {
1615
1615
  var re = $RegExp$1('.', 's');
1616
1616
  return !(re.dotAll && re.test('\n') && re.flags === 's');
1617
1617
  });
1618
1618
 
1619
- var fails$b = fails$p;
1620
- var globalThis$e = globalThis_1;
1619
+ var fails$9 = fails$n;
1620
+ var globalThis$6 = globalThis_1;
1621
1621
 
1622
1622
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1623
- var $RegExp = globalThis$e.RegExp;
1623
+ var $RegExp = globalThis$6.RegExp;
1624
1624
 
1625
- var regexpUnsupportedNcg = fails$b(function () {
1625
+ var regexpUnsupportedNcg = fails$9(function () {
1626
1626
  var re = $RegExp('(?<a>b)', 'g');
1627
1627
  return re.exec('b').groups.a !== 'b' ||
1628
1628
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -1630,8 +1630,8 @@ var regexpUnsupportedNcg = fails$b(function () {
1630
1630
 
1631
1631
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1632
1632
  /* eslint-disable regexp/no-useless-quantifier -- testing */
1633
- var call$j = functionCall;
1634
- var uncurryThis$e = functionUncurryThis;
1633
+ var call$g = functionCall;
1634
+ var uncurryThis$c = functionUncurryThis;
1635
1635
  var toString$7 = toString$8;
1636
1636
  var regexpFlags = regexpFlags$1;
1637
1637
  var stickyHelpers = regexpStickyHelpers;
@@ -1644,16 +1644,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1644
1644
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
1645
1645
  var nativeExec = RegExp.prototype.exec;
1646
1646
  var patchedExec = nativeExec;
1647
- var charAt$3 = uncurryThis$e(''.charAt);
1648
- var indexOf = uncurryThis$e(''.indexOf);
1649
- var replace$1 = uncurryThis$e(''.replace);
1650
- var stringSlice$4 = uncurryThis$e(''.slice);
1647
+ var charAt$3 = uncurryThis$c(''.charAt);
1648
+ var indexOf = uncurryThis$c(''.indexOf);
1649
+ var replace$1 = uncurryThis$c(''.replace);
1650
+ var stringSlice$4 = uncurryThis$c(''.slice);
1651
1651
 
1652
1652
  var UPDATES_LAST_INDEX_WRONG = (function () {
1653
1653
  var re1 = /a/;
1654
1654
  var re2 = /b*/g;
1655
- call$j(nativeExec, re1, 'a');
1656
- call$j(nativeExec, re2, 'a');
1655
+ call$g(nativeExec, re1, 'a');
1656
+ call$g(nativeExec, re2, 'a');
1657
1657
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1658
1658
  })();
1659
1659
 
@@ -1682,7 +1682,7 @@ if (PATCH) {
1682
1682
 
1683
1683
  if (raw) {
1684
1684
  raw.lastIndex = re.lastIndex;
1685
- result = call$j(patchedExec, raw, str);
1685
+ result = call$g(patchedExec, raw, str);
1686
1686
  re.lastIndex = raw.lastIndex;
1687
1687
 
1688
1688
  if (result && state.groups) setGroups(result, state.groups);
@@ -1692,7 +1692,7 @@ if (PATCH) {
1692
1692
 
1693
1693
  var groups = state.groups;
1694
1694
  var sticky = UNSUPPORTED_Y && re.sticky;
1695
- var flags = call$j(regexpFlags, re);
1695
+ var flags = call$g(regexpFlags, re);
1696
1696
  var source = re.source;
1697
1697
  var charsAdded = 0;
1698
1698
  var strCopy = str;
@@ -1722,7 +1722,7 @@ if (PATCH) {
1722
1722
  }
1723
1723
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1724
1724
 
1725
- var match = call$j(nativeExec, sticky ? reCopy : re, strCopy);
1725
+ var match = call$g(nativeExec, sticky ? reCopy : re, strCopy);
1726
1726
 
1727
1727
  if (sticky) {
1728
1728
  if (match) {
@@ -1737,7 +1737,7 @@ if (PATCH) {
1737
1737
  if (NPCG_INCLUDED && match && match.length > 1) {
1738
1738
  // Fix browsers whose `exec` methods don't consistently return `undefined`
1739
1739
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1740
- call$j(nativeReplace, match[0], reCopy, function () {
1740
+ call$g(nativeReplace, match[0], reCopy, function () {
1741
1741
  for (var i = 1; i < arguments.length - 2; i++) {
1742
1742
  if (arguments[i] === undefined) match[i] = undefined;
1743
1743
  }
@@ -1752,22 +1752,22 @@ if (PATCH) {
1752
1752
 
1753
1753
  var regexpExec$2 = patchedExec;
1754
1754
 
1755
- var $$l = _export;
1756
- var exec$3 = regexpExec$2;
1755
+ var $$f = _export;
1756
+ var exec$2 = regexpExec$2;
1757
1757
 
1758
1758
  // `RegExp.prototype.exec` method
1759
1759
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1760
- $$l({ target: 'RegExp', proto: true, forced: /./.exec !== exec$3 }, {
1761
- exec: exec$3
1760
+ $$f({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
1761
+ exec: exec$2
1762
1762
  });
1763
1763
 
1764
- var globalThis$d = globalThis_1;
1765
- var fails$a = fails$p;
1764
+ var globalThis$5 = globalThis_1;
1765
+ var fails$8 = fails$n;
1766
1766
 
1767
1767
  // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
1768
- var RegExp$1 = globalThis$d.RegExp;
1768
+ var RegExp$1 = globalThis$5.RegExp;
1769
1769
 
1770
- var FLAGS_GETTER_IS_CORRECT = !fails$a(function () {
1770
+ var FLAGS_GETTER_IS_CORRECT = !fails$8(function () {
1771
1771
  var INDICES_SUPPORT = true;
1772
1772
  try {
1773
1773
  RegExp$1('.', 'd');
@@ -1808,8 +1808,8 @@ var FLAGS_GETTER_IS_CORRECT = !fails$a(function () {
1808
1808
 
1809
1809
  var regexpFlagsDetection = { correct: FLAGS_GETTER_IS_CORRECT };
1810
1810
 
1811
- var call$i = functionCall;
1812
- var hasOwn$4 = hasOwnProperty_1;
1811
+ var call$f = functionCall;
1812
+ var hasOwn$3 = hasOwnProperty_1;
1813
1813
  var isPrototypeOf$2 = objectIsPrototypeOf;
1814
1814
  var regExpFlagsDetection = regexpFlagsDetection;
1815
1815
  var regExpFlagsGetterImplementation = regexpFlags$1;
@@ -1819,63 +1819,63 @@ var RegExpPrototype$2 = RegExp.prototype;
1819
1819
  var regexpGetFlags = regExpFlagsDetection.correct ? function (it) {
1820
1820
  return it.flags;
1821
1821
  } : function (it) {
1822
- return (!regExpFlagsDetection.correct && isPrototypeOf$2(RegExpPrototype$2, it) && !hasOwn$4(it, 'flags'))
1823
- ? call$i(regExpFlagsGetterImplementation, it)
1822
+ return (!regExpFlagsDetection.correct && isPrototypeOf$2(RegExpPrototype$2, it) && !hasOwn$3(it, 'flags'))
1823
+ ? call$f(regExpFlagsGetterImplementation, it)
1824
1824
  : it.flags;
1825
1825
  };
1826
1826
 
1827
1827
  var PROPER_FUNCTION_NAME = functionName.PROPER;
1828
- var defineBuiltIn$4 = defineBuiltIn$8;
1829
- var anObject$e = anObject$k;
1828
+ var defineBuiltIn$2 = defineBuiltIn$6;
1829
+ var anObject$c = anObject$i;
1830
1830
  var $toString = toString$8;
1831
- var fails$9 = fails$p;
1831
+ var fails$7 = fails$n;
1832
1832
  var getRegExpFlags$2 = regexpGetFlags;
1833
1833
 
1834
1834
  var TO_STRING = 'toString';
1835
1835
  var RegExpPrototype$1 = RegExp.prototype;
1836
1836
  var nativeToString = RegExpPrototype$1[TO_STRING];
1837
1837
 
1838
- var NOT_GENERIC = fails$9(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1838
+ var NOT_GENERIC = fails$7(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1839
1839
  // FF44- RegExp#toString has a wrong name
1840
1840
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
1841
1841
 
1842
1842
  // `RegExp.prototype.toString` method
1843
1843
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1844
1844
  if (NOT_GENERIC || INCORRECT_NAME) {
1845
- defineBuiltIn$4(RegExpPrototype$1, TO_STRING, function toString() {
1846
- var R = anObject$e(this);
1845
+ defineBuiltIn$2(RegExpPrototype$1, TO_STRING, function toString() {
1846
+ var R = anObject$c(this);
1847
1847
  var pattern = $toString(R.source);
1848
1848
  var flags = $toString(getRegExpFlags$2(R));
1849
1849
  return '/' + pattern + '/' + flags;
1850
1850
  }, { unsafe: true });
1851
1851
  }
1852
1852
 
1853
- var isObject$5 = isObject$e;
1854
- var classof$5 = classofRaw$2;
1855
- var wellKnownSymbol$c = wellKnownSymbol$k;
1853
+ var isObject$3 = isObject$c;
1854
+ var classof$3 = classofRaw$2;
1855
+ var wellKnownSymbol$8 = wellKnownSymbol$g;
1856
1856
 
1857
- var MATCH$1 = wellKnownSymbol$c('match');
1857
+ var MATCH$1 = wellKnownSymbol$8('match');
1858
1858
 
1859
1859
  // `IsRegExp` abstract operation
1860
1860
  // https://tc39.es/ecma262/#sec-isregexp
1861
1861
  var isRegexp = function (it) {
1862
1862
  var isRegExp;
1863
- return isObject$5(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
1863
+ return isObject$3(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) === 'RegExp');
1864
1864
  };
1865
1865
 
1866
1866
  var isRegExp = isRegexp;
1867
1867
 
1868
- var $TypeError$b = TypeError;
1868
+ var $TypeError$8 = TypeError;
1869
1869
 
1870
1870
  var notARegexp = function (it) {
1871
1871
  if (isRegExp(it)) {
1872
- throw new $TypeError$b("The method doesn't accept regular expressions");
1872
+ throw new $TypeError$8("The method doesn't accept regular expressions");
1873
1873
  } return it;
1874
1874
  };
1875
1875
 
1876
- var wellKnownSymbol$b = wellKnownSymbol$k;
1876
+ var wellKnownSymbol$7 = wellKnownSymbol$g;
1877
1877
 
1878
- var MATCH = wellKnownSymbol$b('match');
1878
+ var MATCH = wellKnownSymbol$7('match');
1879
1879
 
1880
1880
  var correctIsRegexpLogic = function (METHOD_NAME) {
1881
1881
  var regexp = /./;
@@ -1889,18 +1889,18 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
1889
1889
  } return false;
1890
1890
  };
1891
1891
 
1892
- var $$k = _export;
1893
- var uncurryThis$d = functionUncurryThis;
1892
+ var $$e = _export;
1893
+ var uncurryThis$b = functionUncurryThis;
1894
1894
  var notARegExp$1 = notARegexp;
1895
1895
  var requireObjectCoercible$4 = requireObjectCoercible$8;
1896
1896
  var toString$6 = toString$8;
1897
1897
  var correctIsRegExpLogic$1 = correctIsRegexpLogic;
1898
1898
 
1899
- var stringIndexOf$2 = uncurryThis$d(''.indexOf);
1899
+ var stringIndexOf$2 = uncurryThis$b(''.indexOf);
1900
1900
 
1901
1901
  // `String.prototype.includes` method
1902
1902
  // https://tc39.es/ecma262/#sec-string.prototype.includes
1903
- $$k({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
1903
+ $$e({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
1904
1904
  includes: function includes(searchString /* , position = 0 */) {
1905
1905
  return !!~stringIndexOf$2(
1906
1906
  toString$6(requireObjectCoercible$4(this)),
@@ -1912,20 +1912,20 @@ $$k({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes')
1912
1912
 
1913
1913
  // TODO: Remove from `core-js@4` since it's moved to entry points
1914
1914
 
1915
- var call$h = functionCall;
1916
- var defineBuiltIn$3 = defineBuiltIn$8;
1915
+ var call$e = functionCall;
1916
+ var defineBuiltIn$1 = defineBuiltIn$6;
1917
1917
  var regexpExec$1 = regexpExec$2;
1918
- var fails$8 = fails$p;
1919
- var wellKnownSymbol$a = wellKnownSymbol$k;
1918
+ var fails$6 = fails$n;
1919
+ var wellKnownSymbol$6 = wellKnownSymbol$g;
1920
1920
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
1921
1921
 
1922
- var SPECIES$3 = wellKnownSymbol$a('species');
1922
+ var SPECIES = wellKnownSymbol$6('species');
1923
1923
  var RegExpPrototype = RegExp.prototype;
1924
1924
 
1925
1925
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1926
- var SYMBOL = wellKnownSymbol$a(KEY);
1926
+ var SYMBOL = wellKnownSymbol$6(KEY);
1927
1927
 
1928
- var DELEGATES_TO_SYMBOL = !fails$8(function () {
1928
+ var DELEGATES_TO_SYMBOL = !fails$6(function () {
1929
1929
  // String methods call symbol-named RegExp methods
1930
1930
  var O = {};
1931
1931
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
@@ -1933,7 +1933,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1933
1933
  return ''[KEY](O) !== 7;
1934
1934
  });
1935
1935
 
1936
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$8(function () {
1936
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
1937
1937
  // Symbol-named RegExp methods call .exec
1938
1938
  var execCalled = false;
1939
1939
  var re = /a/;
@@ -1946,7 +1946,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1946
1946
  // a new one. We need to return the patched regex when creating the new one.
1947
1947
  var constructor = {};
1948
1948
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
1949
- constructor[SPECIES$3] = function () { return re; };
1949
+ constructor[SPECIES] = function () { return re; };
1950
1950
  re = { constructor: constructor, flags: '' };
1951
1951
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
1952
1952
  re[SYMBOL] = /./[SYMBOL];
@@ -1974,28 +1974,28 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1974
1974
  // The native String method already delegates to @@method (this
1975
1975
  // polyfilled function), leasing to infinite recursion.
1976
1976
  // We avoid it by directly calling the native @@method method.
1977
- return { done: true, value: call$h(nativeRegExpMethod, regexp, str, arg2) };
1977
+ return { done: true, value: call$e(nativeRegExpMethod, regexp, str, arg2) };
1978
1978
  }
1979
- return { done: true, value: call$h(nativeMethod, str, regexp, arg2) };
1979
+ return { done: true, value: call$e(nativeMethod, str, regexp, arg2) };
1980
1980
  }
1981
1981
  return { done: false };
1982
1982
  });
1983
1983
 
1984
- defineBuiltIn$3(String.prototype, KEY, methods[0]);
1985
- defineBuiltIn$3(RegExpPrototype, SYMBOL, methods[1]);
1984
+ defineBuiltIn$1(String.prototype, KEY, methods[0]);
1985
+ defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
1986
1986
  }
1987
1987
 
1988
1988
  if (SHAM) createNonEnumerableProperty$2(RegExpPrototype[SYMBOL], 'sham', true);
1989
1989
  };
1990
1990
 
1991
- var uncurryThis$c = functionUncurryThis;
1991
+ var uncurryThis$a = functionUncurryThis;
1992
1992
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
1993
1993
  var toString$5 = toString$8;
1994
1994
  var requireObjectCoercible$3 = requireObjectCoercible$8;
1995
1995
 
1996
- var charAt$2 = uncurryThis$c(''.charAt);
1997
- var charCodeAt = uncurryThis$c(''.charCodeAt);
1998
- var stringSlice$3 = uncurryThis$c(''.slice);
1996
+ var charAt$2 = uncurryThis$a(''.charAt);
1997
+ var charCodeAt = uncurryThis$a(''.charCodeAt);
1998
+ var stringSlice$3 = uncurryThis$a(''.slice);
1999
1999
 
2000
2000
  var createMethod = function (CONVERT_TO_STRING) {
2001
2001
  return function ($this, pos) {
@@ -2030,32 +2030,32 @@ var advanceStringIndex$2 = function (S, index, unicode) {
2030
2030
  return index + (unicode ? charAt$1(S, index).length || 1 : 1);
2031
2031
  };
2032
2032
 
2033
- var call$g = functionCall;
2034
- var anObject$d = anObject$k;
2035
- var isCallable$9 = isCallable$o;
2036
- var classof$4 = classofRaw$2;
2033
+ var call$d = functionCall;
2034
+ var anObject$b = anObject$i;
2035
+ var isCallable$4 = isCallable$j;
2036
+ var classof$2 = classofRaw$2;
2037
2037
  var regexpExec = regexpExec$2;
2038
2038
 
2039
- var $TypeError$a = TypeError;
2039
+ var $TypeError$7 = TypeError;
2040
2040
 
2041
2041
  // `RegExpExec` abstract operation
2042
2042
  // https://tc39.es/ecma262/#sec-regexpexec
2043
2043
  var regexpExecAbstract = function (R, S) {
2044
2044
  var exec = R.exec;
2045
- if (isCallable$9(exec)) {
2046
- var result = call$g(exec, R, S);
2047
- if (result !== null) anObject$d(result);
2045
+ if (isCallable$4(exec)) {
2046
+ var result = call$d(exec, R, S);
2047
+ if (result !== null) anObject$b(result);
2048
2048
  return result;
2049
2049
  }
2050
- if (classof$4(R) === 'RegExp') return call$g(regexpExec, R, S);
2051
- throw new $TypeError$a('RegExp#exec called on incompatible receiver');
2050
+ if (classof$2(R) === 'RegExp') return call$d(regexpExec, R, S);
2051
+ throw new $TypeError$7('RegExp#exec called on incompatible receiver');
2052
2052
  };
2053
2053
 
2054
- var call$f = functionCall;
2055
- var uncurryThis$b = functionUncurryThis;
2054
+ var call$c = functionCall;
2055
+ var uncurryThis$9 = functionUncurryThis;
2056
2056
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2057
- var anObject$c = anObject$k;
2058
- var isObject$4 = isObject$e;
2057
+ var anObject$a = anObject$i;
2058
+ var isObject$2 = isObject$c;
2059
2059
  var toLength$2 = toLength$4;
2060
2060
  var toString$4 = toString$8;
2061
2061
  var requireObjectCoercible$2 = requireObjectCoercible$8;
@@ -2064,7 +2064,7 @@ var advanceStringIndex$1 = advanceStringIndex$2;
2064
2064
  var getRegExpFlags$1 = regexpGetFlags;
2065
2065
  var regExpExec$1 = regexpExecAbstract;
2066
2066
 
2067
- var stringIndexOf$1 = uncurryThis$b(''.indexOf);
2067
+ var stringIndexOf$1 = uncurryThis$9(''.indexOf);
2068
2068
 
2069
2069
  // @@match logic
2070
2070
  fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
@@ -2073,13 +2073,13 @@ fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCall
2073
2073
  // https://tc39.es/ecma262/#sec-string.prototype.match
2074
2074
  function match(regexp) {
2075
2075
  var O = requireObjectCoercible$2(this);
2076
- var matcher = isObject$4(regexp) ? getMethod$4(regexp, MATCH) : undefined;
2077
- return matcher ? call$f(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$4(O));
2076
+ var matcher = isObject$2(regexp) ? getMethod$4(regexp, MATCH) : undefined;
2077
+ return matcher ? call$c(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$4(O));
2078
2078
  },
2079
2079
  // `RegExp.prototype[@@match]` method
2080
2080
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
2081
2081
  function (string) {
2082
- var rx = anObject$c(this);
2082
+ var rx = anObject$a(this);
2083
2083
  var S = toString$4(string);
2084
2084
  var res = maybeCallNative(nativeMatch, rx, S);
2085
2085
 
@@ -2149,26 +2149,26 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
2149
2149
 
2150
2150
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2151
2151
 
2152
- var globalThis$c = globalThis_1;
2152
+ var globalThis$4 = globalThis_1;
2153
2153
  var DOMIterables = domIterables;
2154
2154
  var DOMTokenListPrototype = domTokenListPrototype;
2155
2155
  var ArrayIteratorMethods = es_array_iterator;
2156
2156
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
2157
- var setToStringTag$1 = setToStringTag$4;
2158
- var wellKnownSymbol$9 = wellKnownSymbol$k;
2157
+ var setToStringTag = setToStringTag$3;
2158
+ var wellKnownSymbol$5 = wellKnownSymbol$g;
2159
2159
 
2160
- var ITERATOR$4 = wellKnownSymbol$9('iterator');
2160
+ var ITERATOR$3 = wellKnownSymbol$5('iterator');
2161
2161
  var ArrayValues = ArrayIteratorMethods.values;
2162
2162
 
2163
2163
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2164
2164
  if (CollectionPrototype) {
2165
2165
  // some Chrome versions have non-configurable methods on DOMTokenList
2166
- if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
2167
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$4, ArrayValues);
2166
+ if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
2167
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$3, ArrayValues);
2168
2168
  } catch (error) {
2169
- CollectionPrototype[ITERATOR$4] = ArrayValues;
2169
+ CollectionPrototype[ITERATOR$3] = ArrayValues;
2170
2170
  }
2171
- setToStringTag$1(CollectionPrototype, COLLECTION_NAME, true);
2171
+ setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
2172
2172
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2173
2173
  // some Chrome versions have non-configurable methods on DOMTokenList
2174
2174
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
@@ -2181,7 +2181,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2181
2181
  };
2182
2182
 
2183
2183
  for (var COLLECTION_NAME in DOMIterables) {
2184
- handlePrototype(globalThis$c[COLLECTION_NAME] && globalThis$c[COLLECTION_NAME].prototype, COLLECTION_NAME);
2184
+ handlePrototype(globalThis$4[COLLECTION_NAME] && globalThis$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
2185
2185
  }
2186
2186
 
2187
2187
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -2190,7 +2190,7 @@ var build = {exports: {}};
2190
2190
 
2191
2191
  /*!
2192
2192
  *
2193
- * react-simple-keyboard v3.8.196
2193
+ * react-simple-keyboard v3.8.198
2194
2194
  * https://github.com/hodgef/react-simple-keyboard
2195
2195
  *
2196
2196
  * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
@@ -2207,21 +2207,22 @@ var build = {exports: {}};
2207
2207
  var buildExports = build.exports;
2208
2208
  var Keyboard = /*@__PURE__*/getDefaultExportFromCjs(buildExports);
2209
2209
 
2210
- let KeyboardLayoutName = /*#__PURE__*/function (KeyboardLayoutName) {
2210
+ var KeyboardLayoutName;
2211
+ (function (KeyboardLayoutName) {
2211
2212
  KeyboardLayoutName["DEFAULT"] = "default";
2212
- KeyboardLayoutName["SHIFT"] = "shift"; // To enable the shift layout, you must include a KeyboardKey.SHIFT or KeyboardKey.CAPS_LOCK button in your default layout
2213
- return KeyboardLayoutName;
2214
- }({});
2215
- let KeyboardKey = /*#__PURE__*/function (KeyboardKey) {
2213
+ KeyboardLayoutName["SHIFT"] = "shift";
2214
+ })(KeyboardLayoutName || (KeyboardLayoutName = {}));
2215
+ var KeyboardKey;
2216
+ (function (KeyboardKey) {
2216
2217
  KeyboardKey["SHIFT"] = "{shift}";
2217
2218
  KeyboardKey["CAPS_LOCK"] = "{lock}";
2218
2219
  KeyboardKey["BACKSPACE"] = "{bksp}";
2219
2220
  KeyboardKey["ENTER"] = "{enter}";
2220
2221
  KeyboardKey["SUBMIT"] = "{submit}";
2221
2222
  KeyboardKey["TAB"] = "{tab}";
2222
- KeyboardKey["SPACE"] = "{space}"; // All the other keys should be a literal of what they represent
2223
- return KeyboardKey;
2224
- }({});
2223
+ KeyboardKey["SPACE"] = "{space}";
2224
+ // All the other keys should be a literal of what they represent
2225
+ })(KeyboardKey || (KeyboardKey = {}));
2225
2226
  const TEXT = {
2226
2227
  default: [`\` 1 2 3 4 5 6 7 8 9 0 - = ${KeyboardKey.BACKSPACE}`, `${KeyboardKey.TAB} q w e r t y u i o p [ ] \\`, `${KeyboardKey.CAPS_LOCK} a s d f g h j k l ; ' ${KeyboardKey.SUBMIT}`, `${KeyboardKey.SHIFT} z x c v b n m , . / ${KeyboardKey.ENTER}`, `${KeyboardKey.SPACE}`],
2227
2228
  shift: [`~ ! @ # $ % ^ & * ( ) _ + ${KeyboardKey.BACKSPACE}`, `${KeyboardKey.TAB} Q W E R T Y U I O P { } |`, `${KeyboardKey.CAPS_LOCK} A S D F G H J K L : " ${KeyboardKey.SUBMIT}`, `${KeyboardKey.SHIFT} Z X C V B N M < > ? ${KeyboardKey.ENTER}`, `${KeyboardKey.SPACE}`]
@@ -2246,13 +2247,11 @@ const KeyboardLayoutsByInputType = {
2246
2247
  // Input type number cannot be supported because we cannot set the cursor position on number inputs
2247
2248
  // Use type "tel" instead
2248
2249
  // number: KeyboardLayout.NUMERIC,
2249
-
2250
2250
  tel: KeyboardLayout.NUMERIC,
2251
2251
  date: KeyboardLayout.NUMERIC,
2252
2252
  // Never tested, might not work very well
2253
2253
  week: KeyboardLayout.NUMERIC,
2254
2254
  // Never tested, might not work very well
2255
-
2256
2255
  text: KeyboardLayout.TEXT,
2257
2256
  password: KeyboardLayout.TEXT,
2258
2257
  "datetime-local": KeyboardLayout.TEXT,
@@ -2325,6 +2324,7 @@ const VirtualKeyboard = () => {
2325
2324
  }, [isKeyboardVisible, focusedTextInput]);
2326
2325
  useEffect(function attachToFocusedTextInput() {
2327
2326
  const setFocusedInputIfFocusedElementIsInput = event => {
2327
+ var _a;
2328
2328
  const eventTarget = event.target;
2329
2329
  if (eventTarget.type === "number") {
2330
2330
  console.warn("The VirtualKeyboard cannot support an input of type number. Use type 'tel' instead.", eventTarget);
@@ -2332,12 +2332,11 @@ const VirtualKeyboard = () => {
2332
2332
  }
2333
2333
  const targetKeyboardLayout = KeyboardLayoutsByInputType[eventTarget.type];
2334
2334
  if (targetKeyboardLayout !== undefined) {
2335
- var _virtualKeyboardRef$c;
2336
2335
  setKeyboardLayout(targetKeyboardLayout);
2337
2336
  setKeyboardLayoutName(KeyboardLayoutName.DEFAULT);
2338
2337
  setFocusedTextInput(eventTarget);
2339
2338
  setInitialInputValue(eventTarget.value);
2340
- (_virtualKeyboardRef$c = virtualKeyboardRef.current) == null || _virtualKeyboardRef$c.setInput(eventTarget.value);
2339
+ (_a = virtualKeyboardRef.current) === null || _a === void 0 ? void 0 : _a.setInput(eventTarget.value);
2341
2340
  }
2342
2341
  };
2343
2342
  document.addEventListener("focus", setFocusedInputIfFocusedElementIsInput, {
@@ -2371,18 +2370,16 @@ const VirtualKeyboard = () => {
2371
2370
  }
2372
2371
  };
2373
2372
  }, [focusedTextInput, initialInputValue, isKeyboardVisible]);
2374
-
2375
2373
  // Stay in sync with external changes originating from code or physical keyboard
2376
2374
  useEffect(function syncExternalChangesFromCodeOrKeyboard() {
2377
2375
  if (focusedTextInput === undefined) {
2378
2376
  return;
2379
2377
  }
2380
2378
  const updateKeyboardInput = () => {
2381
- var _virtualKeyboardRef$c2, _virtualKeyboardRef$c3;
2382
- (_virtualKeyboardRef$c2 = virtualKeyboardRef.current) == null || _virtualKeyboardRef$c2.setInput(focusedTextInput.value);
2383
- (_virtualKeyboardRef$c3 = virtualKeyboardRef.current) == null || _virtualKeyboardRef$c3.setCaretPosition(focusedTextInput.selectionStart, focusedTextInput.selectionEnd);
2379
+ var _a, _b;
2380
+ (_a = virtualKeyboardRef.current) === null || _a === void 0 ? void 0 : _a.setInput(focusedTextInput.value);
2381
+ (_b = virtualKeyboardRef.current) === null || _b === void 0 ? void 0 : _b.setCaretPosition(focusedTextInput.selectionStart, focusedTextInput.selectionEnd);
2384
2382
  };
2385
-
2386
2383
  /** Without adding a click event listener, moving the caret by tapping somewhere on your input does not work correctly with inputs in a shadow dom.
2387
2384
  * the caret position needs to be explicitly set on click */
2388
2385
  focusedTextInput.addEventListener("input", updateKeyboardInput, {
@@ -2425,7 +2422,6 @@ const VirtualKeyboard = () => {
2425
2422
  setKeyboardLayoutName(toggleLayout(keyboardLayoutName));
2426
2423
  setToggleLayoutOnInput(false);
2427
2424
  }
2428
-
2429
2425
  // For number inputs only:
2430
2426
  // If you enter - or . more than once, it will take the most recent character as the input value (same as a normal keyboard)
2431
2427
  const isNewValueOnlyDashesAndPoints = newValue.match("^[.-]{2,}$");
@@ -2464,13 +2460,13 @@ const VirtualKeyboard = () => {
2464
2460
  if (!isKeyboardVisible) {
2465
2461
  return null;
2466
2462
  }
2467
- return /*#__PURE__*/jsx("div", {
2463
+ return jsx("div", {
2468
2464
  id: "virtual_keyboard",
2469
2465
  ref: keyboardContainerRef,
2470
2466
  onMouseDown: handleKeyboardContainerEvents,
2471
2467
  onTouchStart: handleKeyboardContainerEvents,
2472
2468
  className: classes.virtualKeyboard,
2473
- children: /*#__PURE__*/jsx(Keyboard, {
2469
+ children: jsx(Keyboard, {
2474
2470
  keyboardRef: ref => {
2475
2471
  virtualKeyboardRef.current = ref;
2476
2472
  },
@@ -2503,7 +2499,6 @@ const VirtualKeyboard = () => {
2503
2499
  })
2504
2500
  });
2505
2501
  };
2506
-
2507
2502
  /**
2508
2503
  * Sets the input value in a way that can be picked up by React if the element is managed by React.
2509
2504
  *
@@ -2511,10 +2506,10 @@ const VirtualKeyboard = () => {
2511
2506
  * - https://stackoverflow.com/questions/42550341/react-trigger-onchange-if-input-value-is-changing-by-state/59939017#59939017
2512
2507
  */
2513
2508
  function setInputValue(inputElement, inputValue, caretPosition) {
2514
- var _Object$getOwnPropert, _Object$getOwnPropert2;
2515
- const valueSetter = (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(inputElement, "value")) == null ? void 0 : _Object$getOwnPropert.set;
2509
+ var _a, _b;
2510
+ const valueSetter = (_a = Object.getOwnPropertyDescriptor(inputElement, "value")) === null || _a === void 0 ? void 0 : _a.set;
2516
2511
  const inputPrototype = Object.getPrototypeOf(inputElement);
2517
- const prototypeValueSetter = (_Object$getOwnPropert2 = Object.getOwnPropertyDescriptor(inputPrototype, "value")) == null ? void 0 : _Object$getOwnPropert2.set;
2512
+ const prototypeValueSetter = (_b = Object.getOwnPropertyDescriptor(inputPrototype, "value")) === null || _b === void 0 ? void 0 : _b.set;
2518
2513
  if (valueSetter !== undefined && prototypeValueSetter !== undefined && valueSetter !== prototypeValueSetter) {
2519
2514
  prototypeValueSetter.call(inputElement, inputValue);
2520
2515
  } else if (valueSetter !== undefined) {
@@ -2523,7 +2518,6 @@ function setInputValue(inputElement, inputValue, caretPosition) {
2523
2518
  // Not managed by React, set it the normal way
2524
2519
  inputElement.value = inputValue;
2525
2520
  }
2526
-
2527
2521
  // The input caret position doesn't stay in sync after setting the value programmatically, so we set it
2528
2522
  inputElement.setSelectionRange(caretPosition, caretPosition);
2529
2523
  inputElement.dispatchEvent(new Event("input")); // Some jQuery handlers use on("input", handler)
@@ -2539,7 +2533,7 @@ function isTextSelected(inputElement) {
2539
2533
  return inputElement.selectionStart === 0 && inputElement.selectionEnd === inputElement.value.length;
2540
2534
  } else if (typeof window.getSelection != "undefined") {
2541
2535
  const selection = window.getSelection();
2542
- return (selection == null ? void 0 : selection.toString()) === inputElement.value;
2536
+ return (selection === null || selection === void 0 ? void 0 : selection.toString()) === inputElement.value;
2543
2537
  }
2544
2538
  }
2545
2539
  const useStyles = tss.create({
@@ -2577,1229 +2571,108 @@ const useStyles = tss.create({
2577
2571
  }
2578
2572
  });
2579
2573
 
2580
- /* global Bun, Deno -- detection */
2581
- var globalThis$b = globalThis_1;
2582
- var userAgent$3 = environmentUserAgent;
2583
- var classof$3 = classofRaw$2;
2584
-
2585
- var userAgentStartsWith = function (string) {
2586
- return userAgent$3.slice(0, string.length) === string;
2587
- };
2588
-
2589
- var environment = (function () {
2590
- if (userAgentStartsWith('Bun/')) return 'BUN';
2591
- if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
2592
- if (userAgentStartsWith('Deno/')) return 'DENO';
2593
- if (userAgentStartsWith('Node.js/')) return 'NODE';
2594
- if (globalThis$b.Bun && typeof Bun.version == 'string') return 'BUN';
2595
- if (globalThis$b.Deno && typeof Deno.version == 'object') return 'DENO';
2596
- if (classof$3(globalThis$b.process) === 'process') return 'NODE';
2597
- if (globalThis$b.window && globalThis$b.document) return 'BROWSER';
2598
- return 'REST';
2599
- })();
2600
-
2601
- var ENVIRONMENT$1 = environment;
2602
-
2603
- var environmentIsNode = ENVIRONMENT$1 === 'NODE';
2604
-
2605
- var globalThis$a = globalThis_1;
2606
-
2607
- var path$1 = globalThis$a;
2608
-
2609
- var makeBuiltIn = makeBuiltInExports;
2610
- var defineProperty = objectDefineProperty;
2574
+ var NATIVE_BIND$1 = functionBindNative;
2611
2575
 
2612
- var defineBuiltInAccessor$2 = function (target, name, descriptor) {
2613
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2614
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2615
- return defineProperty.f(target, name, descriptor);
2616
- };
2576
+ var FunctionPrototype = Function.prototype;
2577
+ var apply$1 = FunctionPrototype.apply;
2578
+ var call$b = FunctionPrototype.call;
2617
2579
 
2618
- var getBuiltIn$5 = getBuiltIn$9;
2619
- var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
2620
- var wellKnownSymbol$8 = wellKnownSymbol$k;
2621
- var DESCRIPTORS$5 = descriptors;
2580
+ // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
2581
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$b.bind(apply$1) : function () {
2582
+ return call$b.apply(apply$1, arguments);
2583
+ });
2622
2584
 
2623
- var SPECIES$2 = wellKnownSymbol$8('species');
2585
+ var uncurryThis$8 = functionUncurryThis;
2586
+ var toObject$1 = toObject$4;
2624
2587
 
2625
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2626
- var Constructor = getBuiltIn$5(CONSTRUCTOR_NAME);
2588
+ var floor = Math.floor;
2589
+ var charAt = uncurryThis$8(''.charAt);
2590
+ var replace = uncurryThis$8(''.replace);
2591
+ var stringSlice$2 = uncurryThis$8(''.slice);
2592
+ // eslint-disable-next-line redos/no-vulnerable -- safe
2593
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2594
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2627
2595
 
2628
- if (DESCRIPTORS$5 && Constructor && !Constructor[SPECIES$2]) {
2629
- defineBuiltInAccessor$1(Constructor, SPECIES$2, {
2630
- configurable: true,
2631
- get: function () { return this; }
2632
- });
2596
+ // `GetSubstitution` abstract operation
2597
+ // https://tc39.es/ecma262/#sec-getsubstitution
2598
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2599
+ var tailPos = position + matched.length;
2600
+ var m = captures.length;
2601
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2602
+ if (namedCaptures !== undefined) {
2603
+ namedCaptures = toObject$1(namedCaptures);
2604
+ symbols = SUBSTITUTION_SYMBOLS;
2633
2605
  }
2606
+ return replace(replacement, symbols, function (match, ch) {
2607
+ var capture;
2608
+ switch (charAt(ch, 0)) {
2609
+ case '$': return '$';
2610
+ case '&': return matched;
2611
+ case '`': return stringSlice$2(str, 0, position);
2612
+ case "'": return stringSlice$2(str, tailPos);
2613
+ case '<':
2614
+ capture = namedCaptures[stringSlice$2(ch, 1, -1)];
2615
+ break;
2616
+ default: // \d\d?
2617
+ var n = +ch;
2618
+ if (n === 0) return match;
2619
+ if (n > m) {
2620
+ var f = floor(n / 10);
2621
+ if (f === 0) return match;
2622
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2623
+ return match;
2624
+ }
2625
+ capture = captures[n - 1];
2626
+ }
2627
+ return capture === undefined ? '' : capture;
2628
+ });
2634
2629
  };
2635
2630
 
2636
- var isPrototypeOf$1 = objectIsPrototypeOf;
2631
+ var apply = functionApply;
2632
+ var call$a = functionCall;
2633
+ var uncurryThis$7 = functionUncurryThis;
2634
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2635
+ var fails$5 = fails$n;
2636
+ var anObject$9 = anObject$i;
2637
+ var isCallable$3 = isCallable$j;
2638
+ var isObject$1 = isObject$c;
2639
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
2640
+ var toLength$1 = toLength$4;
2641
+ var toString$3 = toString$8;
2642
+ var requireObjectCoercible$1 = requireObjectCoercible$8;
2643
+ var advanceStringIndex = advanceStringIndex$2;
2644
+ var getMethod$3 = getMethod$6;
2645
+ var getSubstitution = getSubstitution$1;
2646
+ var getRegExpFlags = regexpGetFlags;
2647
+ var regExpExec = regexpExecAbstract;
2648
+ var wellKnownSymbol$4 = wellKnownSymbol$g;
2637
2649
 
2638
- var $TypeError$9 = TypeError;
2650
+ var REPLACE = wellKnownSymbol$4('replace');
2651
+ var max$1 = Math.max;
2652
+ var min$1 = Math.min;
2653
+ var concat = uncurryThis$7([].concat);
2654
+ var push$1 = uncurryThis$7([].push);
2655
+ var stringIndexOf = uncurryThis$7(''.indexOf);
2656
+ var stringSlice$1 = uncurryThis$7(''.slice);
2639
2657
 
2640
- var anInstance$2 = function (it, Prototype) {
2641
- if (isPrototypeOf$1(Prototype, it)) return it;
2642
- throw new $TypeError$9('Incorrect invocation');
2658
+ var maybeToString = function (it) {
2659
+ return it === undefined ? it : String(it);
2643
2660
  };
2644
2661
 
2645
- var uncurryThis$a = functionUncurryThis;
2646
- var fails$7 = fails$p;
2647
- var isCallable$8 = isCallable$o;
2648
- var classof$2 = classof$7;
2649
- var getBuiltIn$4 = getBuiltIn$9;
2650
- var inspectSource$1 = inspectSource$3;
2651
-
2652
- var noop = function () { /* empty */ };
2653
- var construct = getBuiltIn$4('Reflect', 'construct');
2654
- var constructorRegExp = /^\s*(?:class|function)\b/;
2655
- var exec$2 = uncurryThis$a(constructorRegExp.exec);
2656
- var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2657
-
2658
- var isConstructorModern = function isConstructor(argument) {
2659
- if (!isCallable$8(argument)) return false;
2660
- try {
2661
- construct(noop, [], argument);
2662
- return true;
2663
- } catch (error) {
2664
- return false;
2665
- }
2666
- };
2662
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
2663
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2664
+ var REPLACE_KEEPS_$0 = (function () {
2665
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2666
+ return 'a'.replace(/./, '$0') === '$0';
2667
+ })();
2667
2668
 
2668
- var isConstructorLegacy = function isConstructor(argument) {
2669
- if (!isCallable$8(argument)) return false;
2670
- switch (classof$2(argument)) {
2671
- case 'AsyncFunction':
2672
- case 'GeneratorFunction':
2673
- case 'AsyncGeneratorFunction': return false;
2674
- }
2675
- try {
2676
- // we can't check .prototype since constructors produced by .bind haven't it
2677
- // `Function#toString` throws on some built-it function in some legacy engines
2678
- // (for example, `DOMQuad` and similar in FF41-)
2679
- return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource$1(argument));
2680
- } catch (error) {
2681
- return true;
2669
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2670
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2671
+ if (/./[REPLACE]) {
2672
+ return /./[REPLACE]('a', '$0') === '';
2682
2673
  }
2683
- };
2684
-
2685
- isConstructorLegacy.sham = true;
2686
-
2687
- // `IsConstructor` abstract operation
2688
- // https://tc39.es/ecma262/#sec-isconstructor
2689
- var isConstructor$1 = !construct || fails$7(function () {
2690
- var called;
2691
- return isConstructorModern(isConstructorModern.call)
2692
- || !isConstructorModern(Object)
2693
- || !isConstructorModern(function () { called = true; })
2694
- || called;
2695
- }) ? isConstructorLegacy : isConstructorModern;
2696
-
2697
- var isConstructor = isConstructor$1;
2698
- var tryToString$2 = tryToString$4;
2699
-
2700
- var $TypeError$8 = TypeError;
2701
-
2702
- // `Assert: IsConstructor(argument) is true`
2703
- var aConstructor$1 = function (argument) {
2704
- if (isConstructor(argument)) return argument;
2705
- throw new $TypeError$8(tryToString$2(argument) + ' is not a constructor');
2706
- };
2707
-
2708
- var anObject$b = anObject$k;
2709
- var aConstructor = aConstructor$1;
2710
- var isNullOrUndefined$1 = isNullOrUndefined$4;
2711
- var wellKnownSymbol$7 = wellKnownSymbol$k;
2712
-
2713
- var SPECIES$1 = wellKnownSymbol$7('species');
2714
-
2715
- // `SpeciesConstructor` abstract operation
2716
- // https://tc39.es/ecma262/#sec-speciesconstructor
2717
- var speciesConstructor$1 = function (O, defaultConstructor) {
2718
- var C = anObject$b(O).constructor;
2719
- var S;
2720
- return C === undefined || isNullOrUndefined$1(S = anObject$b(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2721
- };
2722
-
2723
- var NATIVE_BIND$1 = functionBindNative;
2724
-
2725
- var FunctionPrototype = Function.prototype;
2726
- var apply$2 = FunctionPrototype.apply;
2727
- var call$e = FunctionPrototype.call;
2728
-
2729
- // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
2730
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$e.bind(apply$2) : function () {
2731
- return call$e.apply(apply$2, arguments);
2732
- });
2733
-
2734
- var classofRaw = classofRaw$2;
2735
- var uncurryThis$9 = functionUncurryThis;
2736
-
2737
- var functionUncurryThisClause = function (fn) {
2738
- // Nashorn bug:
2739
- // https://github.com/zloirock/core-js/issues/1128
2740
- // https://github.com/zloirock/core-js/issues/1130
2741
- if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
2742
- };
2743
-
2744
- var uncurryThis$8 = functionUncurryThisClause;
2745
- var aCallable$8 = aCallable$b;
2746
- var NATIVE_BIND = functionBindNative;
2747
-
2748
- var bind$4 = uncurryThis$8(uncurryThis$8.bind);
2749
-
2750
- // optional / simple context binding
2751
- var functionBindContext = function (fn, that) {
2752
- aCallable$8(fn);
2753
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
2754
- return fn.apply(that, arguments);
2755
- };
2756
- };
2757
-
2758
- var uncurryThis$7 = functionUncurryThis;
2759
-
2760
- var arraySlice$1 = uncurryThis$7([].slice);
2761
-
2762
- var $TypeError$7 = TypeError;
2763
-
2764
- var validateArgumentsLength$1 = function (passed, required) {
2765
- if (passed < required) throw new $TypeError$7('Not enough arguments');
2766
- return passed;
2767
- };
2768
-
2769
- var userAgent$2 = environmentUserAgent;
2770
-
2771
- var environmentIsIos = /ipad|iphone|ipod/i.test(userAgent$2) && /applewebkit/i.test(userAgent$2);
2772
-
2773
- var globalThis$9 = globalThis_1;
2774
- var apply$1 = functionApply;
2775
- var bind$3 = functionBindContext;
2776
- var isCallable$7 = isCallable$o;
2777
- var hasOwn$3 = hasOwnProperty_1;
2778
- var fails$6 = fails$p;
2779
- var html = html$2;
2780
- var arraySlice = arraySlice$1;
2781
- var createElement = documentCreateElement$2;
2782
- var validateArgumentsLength = validateArgumentsLength$1;
2783
- var IS_IOS$1 = environmentIsIos;
2784
- var IS_NODE$2 = environmentIsNode;
2785
-
2786
- var set = globalThis$9.setImmediate;
2787
- var clear = globalThis$9.clearImmediate;
2788
- var process$2 = globalThis$9.process;
2789
- var Dispatch = globalThis$9.Dispatch;
2790
- var Function$1 = globalThis$9.Function;
2791
- var MessageChannel = globalThis$9.MessageChannel;
2792
- var String$1 = globalThis$9.String;
2793
- var counter = 0;
2794
- var queue$2 = {};
2795
- var ONREADYSTATECHANGE = 'onreadystatechange';
2796
- var $location, defer, channel, port;
2797
-
2798
- fails$6(function () {
2799
- // Deno throws a ReferenceError on `location` access without `--location` flag
2800
- $location = globalThis$9.location;
2801
- });
2802
-
2803
- var run = function (id) {
2804
- if (hasOwn$3(queue$2, id)) {
2805
- var fn = queue$2[id];
2806
- delete queue$2[id];
2807
- fn();
2808
- }
2809
- };
2810
-
2811
- var runner = function (id) {
2812
- return function () {
2813
- run(id);
2814
- };
2815
- };
2816
-
2817
- var eventListener = function (event) {
2818
- run(event.data);
2819
- };
2820
-
2821
- var globalPostMessageDefer = function (id) {
2822
- // old engines have not location.origin
2823
- globalThis$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2824
- };
2825
-
2826
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2827
- if (!set || !clear) {
2828
- set = function setImmediate(handler) {
2829
- validateArgumentsLength(arguments.length, 1);
2830
- var fn = isCallable$7(handler) ? handler : Function$1(handler);
2831
- var args = arraySlice(arguments, 1);
2832
- queue$2[++counter] = function () {
2833
- apply$1(fn, undefined, args);
2834
- };
2835
- defer(counter);
2836
- return counter;
2837
- };
2838
- clear = function clearImmediate(id) {
2839
- delete queue$2[id];
2840
- };
2841
- // Node.js 0.8-
2842
- if (IS_NODE$2) {
2843
- defer = function (id) {
2844
- process$2.nextTick(runner(id));
2845
- };
2846
- // Sphere (JS game engine) Dispatch API
2847
- } else if (Dispatch && Dispatch.now) {
2848
- defer = function (id) {
2849
- Dispatch.now(runner(id));
2850
- };
2851
- // Browsers with MessageChannel, includes WebWorkers
2852
- // except iOS - https://github.com/zloirock/core-js/issues/624
2853
- } else if (MessageChannel && !IS_IOS$1) {
2854
- channel = new MessageChannel();
2855
- port = channel.port2;
2856
- channel.port1.onmessage = eventListener;
2857
- defer = bind$3(port.postMessage, port);
2858
- // Browsers with postMessage, skip WebWorkers
2859
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2860
- } else if (
2861
- globalThis$9.addEventListener &&
2862
- isCallable$7(globalThis$9.postMessage) &&
2863
- !globalThis$9.importScripts &&
2864
- $location && $location.protocol !== 'file:' &&
2865
- !fails$6(globalPostMessageDefer)
2866
- ) {
2867
- defer = globalPostMessageDefer;
2868
- globalThis$9.addEventListener('message', eventListener, false);
2869
- // IE8-
2870
- } else if (ONREADYSTATECHANGE in createElement('script')) {
2871
- defer = function (id) {
2872
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2873
- html.removeChild(this);
2874
- run(id);
2875
- };
2876
- };
2877
- // Rest old browsers
2878
- } else {
2879
- defer = function (id) {
2880
- setTimeout(runner(id), 0);
2881
- };
2882
- }
2883
- }
2884
-
2885
- var task$1 = {
2886
- set: set};
2887
-
2888
- var globalThis$8 = globalThis_1;
2889
- var DESCRIPTORS$4 = descriptors;
2890
-
2891
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2892
- var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
2893
-
2894
- // Avoid NodeJS experimental warning
2895
- var safeGetBuiltIn$1 = function (name) {
2896
- if (!DESCRIPTORS$4) return globalThis$8[name];
2897
- var descriptor = getOwnPropertyDescriptor$3(globalThis$8, name);
2898
- return descriptor && descriptor.value;
2899
- };
2900
-
2901
- var Queue$2 = function () {
2902
- this.head = null;
2903
- this.tail = null;
2904
- };
2905
-
2906
- Queue$2.prototype = {
2907
- add: function (item) {
2908
- var entry = { item: item, next: null };
2909
- var tail = this.tail;
2910
- if (tail) tail.next = entry;
2911
- else this.head = entry;
2912
- this.tail = entry;
2913
- },
2914
- get: function () {
2915
- var entry = this.head;
2916
- if (entry) {
2917
- var next = this.head = entry.next;
2918
- if (next === null) this.tail = null;
2919
- return entry.item;
2920
- }
2921
- }
2922
- };
2923
-
2924
- var queue$1 = Queue$2;
2925
-
2926
- var userAgent$1 = environmentUserAgent;
2927
-
2928
- var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2929
-
2930
- var userAgent = environmentUserAgent;
2931
-
2932
- var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2933
-
2934
- var globalThis$7 = globalThis_1;
2935
- var safeGetBuiltIn = safeGetBuiltIn$1;
2936
- var bind$2 = functionBindContext;
2937
- var macrotask = task$1.set;
2938
- var Queue$1 = queue$1;
2939
- var IS_IOS = environmentIsIos;
2940
- var IS_IOS_PEBBLE = environmentIsIosPebble;
2941
- var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
2942
- var IS_NODE$1 = environmentIsNode;
2943
-
2944
- var MutationObserver = globalThis$7.MutationObserver || globalThis$7.WebKitMutationObserver;
2945
- var document$2 = globalThis$7.document;
2946
- var process$1 = globalThis$7.process;
2947
- var Promise$1 = globalThis$7.Promise;
2948
- var microtask$1 = safeGetBuiltIn('queueMicrotask');
2949
- var notify$1, toggle, node, promise, then;
2950
-
2951
- // modern engines have queueMicrotask method
2952
- if (!microtask$1) {
2953
- var queue = new Queue$1();
2954
-
2955
- var flush = function () {
2956
- var parent, fn;
2957
- if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
2958
- while (fn = queue.get()) try {
2959
- fn();
2960
- } catch (error) {
2961
- if (queue.head) notify$1();
2962
- throw error;
2963
- }
2964
- if (parent) parent.enter();
2965
- };
2966
-
2967
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2968
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2969
- if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2970
- toggle = true;
2971
- node = document$2.createTextNode('');
2972
- new MutationObserver(flush).observe(node, { characterData: true });
2973
- notify$1 = function () {
2974
- node.data = toggle = !toggle;
2975
- };
2976
- // environments with maybe non-completely correct, but existent Promise
2977
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2978
- // Promise.resolve without an argument throws an error in LG WebOS 2
2979
- promise = Promise$1.resolve(undefined);
2980
- // workaround of WebKit ~ iOS Safari 10.1 bug
2981
- promise.constructor = Promise$1;
2982
- then = bind$2(promise.then, promise);
2983
- notify$1 = function () {
2984
- then(flush);
2985
- };
2986
- // Node.js without promises
2987
- } else if (IS_NODE$1) {
2988
- notify$1 = function () {
2989
- process$1.nextTick(flush);
2990
- };
2991
- // for other environments - macrotask based on:
2992
- // - setImmediate
2993
- // - MessageChannel
2994
- // - window.postMessage
2995
- // - onreadystatechange
2996
- // - setTimeout
2997
- } else {
2998
- // `webpack` dev server bug on IE global methods - use bind(fn, global)
2999
- macrotask = bind$2(macrotask, globalThis$7);
3000
- notify$1 = function () {
3001
- macrotask(flush);
3002
- };
3003
- }
3004
-
3005
- microtask$1 = function (fn) {
3006
- if (!queue.head) notify$1();
3007
- queue.add(fn);
3008
- };
3009
- }
3010
-
3011
- var microtask_1 = microtask$1;
3012
-
3013
- var hostReportErrors$1 = function (a, b) {
3014
- try {
3015
- // eslint-disable-next-line no-console -- safe
3016
- arguments.length === 1 ? console.error(a) : console.error(a, b);
3017
- } catch (error) { /* empty */ }
3018
- };
3019
-
3020
- var perform$3 = function (exec) {
3021
- try {
3022
- return { error: false, value: exec() };
3023
- } catch (error) {
3024
- return { error: true, value: error };
3025
- }
3026
- };
3027
-
3028
- var globalThis$6 = globalThis_1;
3029
-
3030
- var promiseNativeConstructor = globalThis$6.Promise;
3031
-
3032
- var globalThis$5 = globalThis_1;
3033
- var NativePromiseConstructor$3 = promiseNativeConstructor;
3034
- var isCallable$6 = isCallable$o;
3035
- var isForced = isForced_1;
3036
- var inspectSource = inspectSource$3;
3037
- var wellKnownSymbol$6 = wellKnownSymbol$k;
3038
- var ENVIRONMENT = environment;
3039
- var V8_VERSION = environmentV8Version;
3040
-
3041
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
3042
- var SPECIES = wellKnownSymbol$6('species');
3043
- var SUBCLASSING = false;
3044
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$6(globalThis$5.PromiseRejectionEvent);
3045
-
3046
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
3047
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
3048
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
3049
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
3050
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
3051
- // We can't detect it synchronously, so just check versions
3052
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
3053
- // We can't use @@species feature detection in V8 since it causes
3054
- // deoptimization and performance degradation
3055
- // https://github.com/zloirock/core-js/issues/679
3056
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
3057
- // Detect correctness of subclassing with @@species support
3058
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
3059
- var FakePromise = function (exec) {
3060
- exec(function () { /* empty */ }, function () { /* empty */ });
3061
- };
3062
- var constructor = promise.constructor = {};
3063
- constructor[SPECIES] = FakePromise;
3064
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
3065
- if (!SUBCLASSING) return true;
3066
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
3067
- } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT$1;
3068
- });
3069
-
3070
- var promiseConstructorDetection = {
3071
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
3072
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
3073
- SUBCLASSING: SUBCLASSING
3074
- };
3075
-
3076
- var newPromiseCapability$2 = {};
3077
-
3078
- var aCallable$7 = aCallable$b;
3079
-
3080
- var $TypeError$6 = TypeError;
3081
-
3082
- var PromiseCapability = function (C) {
3083
- var resolve, reject;
3084
- this.promise = new C(function ($$resolve, $$reject) {
3085
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$6('Bad Promise constructor');
3086
- resolve = $$resolve;
3087
- reject = $$reject;
3088
- });
3089
- this.resolve = aCallable$7(resolve);
3090
- this.reject = aCallable$7(reject);
3091
- };
3092
-
3093
- // `NewPromiseCapability` abstract operation
3094
- // https://tc39.es/ecma262/#sec-newpromisecapability
3095
- newPromiseCapability$2.f = function (C) {
3096
- return new PromiseCapability(C);
3097
- };
3098
-
3099
- var $$j = _export;
3100
- var IS_NODE = environmentIsNode;
3101
- var globalThis$4 = globalThis_1;
3102
- var path = path$1;
3103
- var call$d = functionCall;
3104
- var defineBuiltIn$2 = defineBuiltIn$8;
3105
- var setPrototypeOf = objectSetPrototypeOf;
3106
- var setToStringTag = setToStringTag$4;
3107
- var setSpecies = setSpecies$1;
3108
- var aCallable$6 = aCallable$b;
3109
- var isCallable$5 = isCallable$o;
3110
- var isObject$3 = isObject$e;
3111
- var anInstance$1 = anInstance$2;
3112
- var speciesConstructor = speciesConstructor$1;
3113
- var task = task$1.set;
3114
- var microtask = microtask_1;
3115
- var hostReportErrors = hostReportErrors$1;
3116
- var perform$2 = perform$3;
3117
- var Queue = queue$1;
3118
- var InternalStateModule$1 = internalState;
3119
- var NativePromiseConstructor$2 = promiseNativeConstructor;
3120
- var PromiseConstructorDetection = promiseConstructorDetection;
3121
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
3122
-
3123
- var PROMISE = 'Promise';
3124
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
3125
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
3126
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
3127
- var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
3128
- var setInternalState$1 = InternalStateModule$1.set;
3129
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
3130
- var PromiseConstructor = NativePromiseConstructor$2;
3131
- var PromisePrototype = NativePromisePrototype$1;
3132
- var TypeError$1 = globalThis$4.TypeError;
3133
- var document$1 = globalThis$4.document;
3134
- var process = globalThis$4.process;
3135
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
3136
- var newGenericPromiseCapability = newPromiseCapability$1;
3137
-
3138
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$4.dispatchEvent);
3139
- var UNHANDLED_REJECTION = 'unhandledrejection';
3140
- var REJECTION_HANDLED = 'rejectionhandled';
3141
- var PENDING = 0;
3142
- var FULFILLED = 1;
3143
- var REJECTED = 2;
3144
- var HANDLED = 1;
3145
- var UNHANDLED = 2;
3146
-
3147
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
3148
-
3149
- // helpers
3150
- var isThenable = function (it) {
3151
- var then;
3152
- return isObject$3(it) && isCallable$5(then = it.then) ? then : false;
3153
- };
3154
-
3155
- var callReaction = function (reaction, state) {
3156
- var value = state.value;
3157
- var ok = state.state === FULFILLED;
3158
- var handler = ok ? reaction.ok : reaction.fail;
3159
- var resolve = reaction.resolve;
3160
- var reject = reaction.reject;
3161
- var domain = reaction.domain;
3162
- var result, then, exited;
3163
- try {
3164
- if (handler) {
3165
- if (!ok) {
3166
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
3167
- state.rejection = HANDLED;
3168
- }
3169
- if (handler === true) result = value;
3170
- else {
3171
- if (domain) domain.enter();
3172
- result = handler(value); // can throw
3173
- if (domain) {
3174
- domain.exit();
3175
- exited = true;
3176
- }
3177
- }
3178
- if (result === reaction.promise) {
3179
- reject(new TypeError$1('Promise-chain cycle'));
3180
- } else if (then = isThenable(result)) {
3181
- call$d(then, result, resolve, reject);
3182
- } else resolve(result);
3183
- } else reject(value);
3184
- } catch (error) {
3185
- if (domain && !exited) domain.exit();
3186
- reject(error);
3187
- }
3188
- };
3189
-
3190
- var notify = function (state, isReject) {
3191
- if (state.notified) return;
3192
- state.notified = true;
3193
- microtask(function () {
3194
- var reactions = state.reactions;
3195
- var reaction;
3196
- while (reaction = reactions.get()) {
3197
- callReaction(reaction, state);
3198
- }
3199
- state.notified = false;
3200
- if (isReject && !state.rejection) onUnhandled(state);
3201
- });
3202
- };
3203
-
3204
- var dispatchEvent = function (name, promise, reason) {
3205
- var event, handler;
3206
- if (DISPATCH_EVENT) {
3207
- event = document$1.createEvent('Event');
3208
- event.promise = promise;
3209
- event.reason = reason;
3210
- event.initEvent(name, false, true);
3211
- globalThis$4.dispatchEvent(event);
3212
- } else event = { promise: promise, reason: reason };
3213
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$4['on' + name])) handler(event);
3214
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
3215
- };
3216
-
3217
- var onUnhandled = function (state) {
3218
- call$d(task, globalThis$4, function () {
3219
- var promise = state.facade;
3220
- var value = state.value;
3221
- var IS_UNHANDLED = isUnhandled(state);
3222
- var result;
3223
- if (IS_UNHANDLED) {
3224
- result = perform$2(function () {
3225
- if (IS_NODE) {
3226
- process.emit('unhandledRejection', value, promise);
3227
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
3228
- });
3229
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
3230
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
3231
- if (result.error) throw result.value;
3232
- }
3233
- });
3234
- };
3235
-
3236
- var isUnhandled = function (state) {
3237
- return state.rejection !== HANDLED && !state.parent;
3238
- };
3239
-
3240
- var onHandleUnhandled = function (state) {
3241
- call$d(task, globalThis$4, function () {
3242
- var promise = state.facade;
3243
- if (IS_NODE) {
3244
- process.emit('rejectionHandled', promise);
3245
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
3246
- });
3247
- };
3248
-
3249
- var bind$1 = function (fn, state, unwrap) {
3250
- return function (value) {
3251
- fn(state, value, unwrap);
3252
- };
3253
- };
3254
-
3255
- var internalReject = function (state, value, unwrap) {
3256
- if (state.done) return;
3257
- state.done = true;
3258
- if (unwrap) state = unwrap;
3259
- state.value = value;
3260
- state.state = REJECTED;
3261
- notify(state, true);
3262
- };
3263
-
3264
- var internalResolve = function (state, value, unwrap) {
3265
- if (state.done) return;
3266
- state.done = true;
3267
- if (unwrap) state = unwrap;
3268
- try {
3269
- if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
3270
- var then = isThenable(value);
3271
- if (then) {
3272
- microtask(function () {
3273
- var wrapper = { done: false };
3274
- try {
3275
- call$d(then, value,
3276
- bind$1(internalResolve, wrapper, state),
3277
- bind$1(internalReject, wrapper, state)
3278
- );
3279
- } catch (error) {
3280
- internalReject(wrapper, error, state);
3281
- }
3282
- });
3283
- } else {
3284
- state.value = value;
3285
- state.state = FULFILLED;
3286
- notify(state, false);
3287
- }
3288
- } catch (error) {
3289
- internalReject({ done: false }, error, state);
3290
- }
3291
- };
3292
-
3293
- // constructor polyfill
3294
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
3295
- // 25.4.3.1 Promise(executor)
3296
- PromiseConstructor = function Promise(executor) {
3297
- anInstance$1(this, PromisePrototype);
3298
- aCallable$6(executor);
3299
- call$d(Internal, this);
3300
- var state = getInternalPromiseState(this);
3301
- try {
3302
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
3303
- } catch (error) {
3304
- internalReject(state, error);
3305
- }
3306
- };
3307
-
3308
- PromisePrototype = PromiseConstructor.prototype;
3309
-
3310
- // eslint-disable-next-line no-unused-vars -- required for `.length`
3311
- Internal = function Promise(executor) {
3312
- setInternalState$1(this, {
3313
- type: PROMISE,
3314
- done: false,
3315
- notified: false,
3316
- parent: false,
3317
- reactions: new Queue(),
3318
- rejection: false,
3319
- state: PENDING,
3320
- value: null
3321
- });
3322
- };
3323
-
3324
- // `Promise.prototype.then` method
3325
- // https://tc39.es/ecma262/#sec-promise.prototype.then
3326
- Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
3327
- var state = getInternalPromiseState(this);
3328
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
3329
- state.parent = true;
3330
- reaction.ok = isCallable$5(onFulfilled) ? onFulfilled : true;
3331
- reaction.fail = isCallable$5(onRejected) && onRejected;
3332
- reaction.domain = IS_NODE ? process.domain : undefined;
3333
- if (state.state === PENDING) state.reactions.add(reaction);
3334
- else microtask(function () {
3335
- callReaction(reaction, state);
3336
- });
3337
- return reaction.promise;
3338
- });
3339
-
3340
- OwnPromiseCapability = function () {
3341
- var promise = new Internal();
3342
- var state = getInternalPromiseState(promise);
3343
- this.promise = promise;
3344
- this.resolve = bind$1(internalResolve, state);
3345
- this.reject = bind$1(internalReject, state);
3346
- };
3347
-
3348
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
3349
- return C === PromiseConstructor || C === PromiseWrapper
3350
- ? new OwnPromiseCapability(C)
3351
- : newGenericPromiseCapability(C);
3352
- };
3353
-
3354
- if (isCallable$5(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
3355
- nativeThen = NativePromisePrototype$1.then;
3356
-
3357
- if (!NATIVE_PROMISE_SUBCLASSING) {
3358
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
3359
- defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
3360
- var that = this;
3361
- return new PromiseConstructor(function (resolve, reject) {
3362
- call$d(nativeThen, that, resolve, reject);
3363
- }).then(onFulfilled, onRejected);
3364
- // https://github.com/zloirock/core-js/issues/640
3365
- }, { unsafe: true });
3366
- }
3367
-
3368
- // make `.constructor === Promise` work for native promise-based APIs
3369
- try {
3370
- delete NativePromisePrototype$1.constructor;
3371
- } catch (error) { /* empty */ }
3372
-
3373
- // make `instanceof Promise` work for native promise-based APIs
3374
- if (setPrototypeOf) {
3375
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
3376
- }
3377
- }
3378
- }
3379
-
3380
- // `Promise` constructor
3381
- // https://tc39.es/ecma262/#sec-promise-executor
3382
- $$j({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3383
- Promise: PromiseConstructor
3384
- });
3385
-
3386
- PromiseWrapper = path.Promise;
3387
-
3388
- setToStringTag(PromiseConstructor, PROMISE, false);
3389
- setSpecies(PROMISE);
3390
-
3391
- var wellKnownSymbol$5 = wellKnownSymbol$k;
3392
- var Iterators$1 = iterators;
3393
-
3394
- var ITERATOR$3 = wellKnownSymbol$5('iterator');
3395
- var ArrayPrototype = Array.prototype;
3396
-
3397
- // check on default Array iterator
3398
- var isArrayIteratorMethod$1 = function (it) {
3399
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
3400
- };
3401
-
3402
- var classof$1 = classof$7;
3403
- var getMethod$3 = getMethod$6;
3404
- var isNullOrUndefined = isNullOrUndefined$4;
3405
- var Iterators = iterators;
3406
- var wellKnownSymbol$4 = wellKnownSymbol$k;
3407
-
3408
- var ITERATOR$2 = wellKnownSymbol$4('iterator');
3409
-
3410
- var getIteratorMethod$2 = function (it) {
3411
- if (!isNullOrUndefined(it)) return getMethod$3(it, ITERATOR$2)
3412
- || getMethod$3(it, '@@iterator')
3413
- || Iterators[classof$1(it)];
3414
- };
3415
-
3416
- var call$c = functionCall;
3417
- var aCallable$5 = aCallable$b;
3418
- var anObject$a = anObject$k;
3419
- var tryToString$1 = tryToString$4;
3420
- var getIteratorMethod$1 = getIteratorMethod$2;
3421
-
3422
- var $TypeError$5 = TypeError;
3423
-
3424
- var getIterator$1 = function (argument, usingIterator) {
3425
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3426
- if (aCallable$5(iteratorMethod)) return anObject$a(call$c(iteratorMethod, argument));
3427
- throw new $TypeError$5(tryToString$1(argument) + ' is not iterable');
3428
- };
3429
-
3430
- var call$b = functionCall;
3431
- var anObject$9 = anObject$k;
3432
- var getMethod$2 = getMethod$6;
3433
-
3434
- var iteratorClose$8 = function (iterator, kind, value) {
3435
- var innerResult, innerError;
3436
- anObject$9(iterator);
3437
- try {
3438
- innerResult = getMethod$2(iterator, 'return');
3439
- if (!innerResult) {
3440
- if (kind === 'throw') throw value;
3441
- return value;
3442
- }
3443
- innerResult = call$b(innerResult, iterator);
3444
- } catch (error) {
3445
- innerError = true;
3446
- innerResult = error;
3447
- }
3448
- if (kind === 'throw') throw value;
3449
- if (innerError) throw innerResult;
3450
- anObject$9(innerResult);
3451
- return value;
3452
- };
3453
-
3454
- var bind = functionBindContext;
3455
- var call$a = functionCall;
3456
- var anObject$8 = anObject$k;
3457
- var tryToString = tryToString$4;
3458
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
3459
- var lengthOfArrayLike$2 = lengthOfArrayLike$4;
3460
- var isPrototypeOf = objectIsPrototypeOf;
3461
- var getIterator = getIterator$1;
3462
- var getIteratorMethod = getIteratorMethod$2;
3463
- var iteratorClose$7 = iteratorClose$8;
3464
-
3465
- var $TypeError$4 = TypeError;
3466
-
3467
- var Result = function (stopped, result) {
3468
- this.stopped = stopped;
3469
- this.result = result;
3470
- };
3471
-
3472
- var ResultPrototype = Result.prototype;
3473
-
3474
- var iterate$5 = function (iterable, unboundFunction, options) {
3475
- var that = options && options.that;
3476
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3477
- var IS_RECORD = !!(options && options.IS_RECORD);
3478
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3479
- var INTERRUPTED = !!(options && options.INTERRUPTED);
3480
- var fn = bind(unboundFunction, that);
3481
- var iterator, iterFn, index, length, result, next, step;
3482
-
3483
- var stop = function (condition) {
3484
- var $iterator = iterator;
3485
- iterator = undefined;
3486
- if ($iterator) iteratorClose$7($iterator, 'normal');
3487
- return new Result(true, condition);
3488
- };
3489
-
3490
- var callFn = function (value) {
3491
- if (AS_ENTRIES) {
3492
- anObject$8(value);
3493
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3494
- } return INTERRUPTED ? fn(value, stop) : fn(value);
3495
- };
3496
-
3497
- if (IS_RECORD) {
3498
- iterator = iterable.iterator;
3499
- } else if (IS_ITERATOR) {
3500
- iterator = iterable;
3501
- } else {
3502
- iterFn = getIteratorMethod(iterable);
3503
- if (!iterFn) throw new $TypeError$4(tryToString(iterable) + ' is not iterable');
3504
- // optimisation for array iterators
3505
- if (isArrayIteratorMethod(iterFn)) {
3506
- for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
3507
- result = callFn(iterable[index]);
3508
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
3509
- } return new Result(false);
3510
- }
3511
- iterator = getIterator(iterable, iterFn);
3512
- }
3513
-
3514
- next = IS_RECORD ? iterable.next : iterator.next;
3515
- while (!(step = call$a(next, iterator)).done) {
3516
- // `IteratorValue` errors should propagate without closing the iterator
3517
- var value = step.value;
3518
- try {
3519
- result = callFn(value);
3520
- } catch (error) {
3521
- if (iterator) iteratorClose$7(iterator, 'throw', error);
3522
- else throw error;
3523
- }
3524
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
3525
- } return new Result(false);
3526
- };
3527
-
3528
- var wellKnownSymbol$3 = wellKnownSymbol$k;
3529
-
3530
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
3531
- var SAFE_CLOSING = false;
3532
-
3533
- try {
3534
- var called = 0;
3535
- var iteratorWithReturn = {
3536
- next: function () {
3537
- return { done: !!called++ };
3538
- },
3539
- 'return': function () {
3540
- SAFE_CLOSING = true;
3541
- }
3542
- };
3543
- // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
3544
- iteratorWithReturn[ITERATOR$1] = function () {
3545
- return this;
3546
- };
3547
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
3548
- Array.from(iteratorWithReturn, function () { throw 2; });
3549
- } catch (error) { /* empty */ }
3550
-
3551
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3552
- try {
3553
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3554
- } catch (error) { return false; } // workaround of old WebKit + `eval` bug
3555
- var ITERATION_SUPPORT = false;
3556
- try {
3557
- var object = {};
3558
- // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
3559
- object[ITERATOR$1] = function () {
3560
- return {
3561
- next: function () {
3562
- return { done: ITERATION_SUPPORT = true };
3563
- }
3564
- };
3565
- };
3566
- exec(object);
3567
- } catch (error) { /* empty */ }
3568
- return ITERATION_SUPPORT;
3569
- };
3570
-
3571
- var NativePromiseConstructor$1 = promiseNativeConstructor;
3572
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
3573
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
3574
-
3575
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
3576
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3577
- });
3578
-
3579
- var $$i = _export;
3580
- var call$9 = functionCall;
3581
- var aCallable$4 = aCallable$b;
3582
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3583
- var perform$1 = perform$3;
3584
- var iterate$4 = iterate$5;
3585
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3586
-
3587
- // `Promise.all` method
3588
- // https://tc39.es/ecma262/#sec-promise.all
3589
- $$i({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3590
- all: function all(iterable) {
3591
- var C = this;
3592
- var capability = newPromiseCapabilityModule$2.f(C);
3593
- var resolve = capability.resolve;
3594
- var reject = capability.reject;
3595
- var result = perform$1(function () {
3596
- var $promiseResolve = aCallable$4(C.resolve);
3597
- var values = [];
3598
- var counter = 0;
3599
- var remaining = 1;
3600
- iterate$4(iterable, function (promise) {
3601
- var index = counter++;
3602
- var alreadyCalled = false;
3603
- remaining++;
3604
- call$9($promiseResolve, C, promise).then(function (value) {
3605
- if (alreadyCalled) return;
3606
- alreadyCalled = true;
3607
- values[index] = value;
3608
- --remaining || resolve(values);
3609
- }, reject);
3610
- });
3611
- --remaining || resolve(values);
3612
- });
3613
- if (result.error) reject(result.value);
3614
- return capability.promise;
3615
- }
3616
- });
3617
-
3618
- var $$h = _export;
3619
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3620
- var NativePromiseConstructor = promiseNativeConstructor;
3621
- var getBuiltIn$3 = getBuiltIn$9;
3622
- var isCallable$4 = isCallable$o;
3623
- var defineBuiltIn$1 = defineBuiltIn$8;
3624
-
3625
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
3626
-
3627
- // `Promise.prototype.catch` method
3628
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
3629
- $$h({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3630
- 'catch': function (onRejected) {
3631
- return this.then(undefined, onRejected);
3632
- }
3633
- });
3634
-
3635
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
3636
- if (isCallable$4(NativePromiseConstructor)) {
3637
- var method = getBuiltIn$3('Promise').prototype['catch'];
3638
- if (NativePromisePrototype['catch'] !== method) {
3639
- defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
3640
- }
3641
- }
3642
-
3643
- var $$g = _export;
3644
- var call$8 = functionCall;
3645
- var aCallable$3 = aCallable$b;
3646
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3647
- var perform = perform$3;
3648
- var iterate$3 = iterate$5;
3649
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3650
-
3651
- // `Promise.race` method
3652
- // https://tc39.es/ecma262/#sec-promise.race
3653
- $$g({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3654
- race: function race(iterable) {
3655
- var C = this;
3656
- var capability = newPromiseCapabilityModule$1.f(C);
3657
- var reject = capability.reject;
3658
- var result = perform(function () {
3659
- var $promiseResolve = aCallable$3(C.resolve);
3660
- iterate$3(iterable, function (promise) {
3661
- call$8($promiseResolve, C, promise).then(capability.resolve, reject);
3662
- });
3663
- });
3664
- if (result.error) reject(result.value);
3665
- return capability.promise;
3666
- }
3667
- });
3668
-
3669
- var $$f = _export;
3670
- var newPromiseCapabilityModule = newPromiseCapability$2;
3671
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3672
-
3673
- // `Promise.reject` method
3674
- // https://tc39.es/ecma262/#sec-promise.reject
3675
- $$f({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3676
- reject: function reject(r) {
3677
- var capability = newPromiseCapabilityModule.f(this);
3678
- var capabilityReject = capability.reject;
3679
- capabilityReject(r);
3680
- return capability.promise;
3681
- }
3682
- });
3683
-
3684
- var anObject$7 = anObject$k;
3685
- var isObject$2 = isObject$e;
3686
- var newPromiseCapability = newPromiseCapability$2;
3687
-
3688
- var promiseResolve$1 = function (C, x) {
3689
- anObject$7(C);
3690
- if (isObject$2(x) && x.constructor === C) return x;
3691
- var promiseCapability = newPromiseCapability.f(C);
3692
- var resolve = promiseCapability.resolve;
3693
- resolve(x);
3694
- return promiseCapability.promise;
3695
- };
3696
-
3697
- var $$e = _export;
3698
- var getBuiltIn$2 = getBuiltIn$9;
3699
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3700
- var promiseResolve = promiseResolve$1;
3701
-
3702
- getBuiltIn$2('Promise');
3703
-
3704
- // `Promise.resolve` method
3705
- // https://tc39.es/ecma262/#sec-promise.resolve
3706
- $$e({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3707
- resolve: function resolve(x) {
3708
- return promiseResolve(this, x);
3709
- }
3710
- });
3711
-
3712
- var uncurryThis$6 = functionUncurryThis;
3713
- var toObject$1 = toObject$4;
3714
-
3715
- var floor = Math.floor;
3716
- var charAt = uncurryThis$6(''.charAt);
3717
- var replace = uncurryThis$6(''.replace);
3718
- var stringSlice$2 = uncurryThis$6(''.slice);
3719
- // eslint-disable-next-line redos/no-vulnerable -- safe
3720
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
3721
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
3722
-
3723
- // `GetSubstitution` abstract operation
3724
- // https://tc39.es/ecma262/#sec-getsubstitution
3725
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
3726
- var tailPos = position + matched.length;
3727
- var m = captures.length;
3728
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
3729
- if (namedCaptures !== undefined) {
3730
- namedCaptures = toObject$1(namedCaptures);
3731
- symbols = SUBSTITUTION_SYMBOLS;
3732
- }
3733
- return replace(replacement, symbols, function (match, ch) {
3734
- var capture;
3735
- switch (charAt(ch, 0)) {
3736
- case '$': return '$';
3737
- case '&': return matched;
3738
- case '`': return stringSlice$2(str, 0, position);
3739
- case "'": return stringSlice$2(str, tailPos);
3740
- case '<':
3741
- capture = namedCaptures[stringSlice$2(ch, 1, -1)];
3742
- break;
3743
- default: // \d\d?
3744
- var n = +ch;
3745
- if (n === 0) return match;
3746
- if (n > m) {
3747
- var f = floor(n / 10);
3748
- if (f === 0) return match;
3749
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
3750
- return match;
3751
- }
3752
- capture = captures[n - 1];
3753
- }
3754
- return capture === undefined ? '' : capture;
3755
- });
3756
- };
3757
-
3758
- var apply = functionApply;
3759
- var call$7 = functionCall;
3760
- var uncurryThis$5 = functionUncurryThis;
3761
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3762
- var fails$5 = fails$p;
3763
- var anObject$6 = anObject$k;
3764
- var isCallable$3 = isCallable$o;
3765
- var isObject$1 = isObject$e;
3766
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
3767
- var toLength$1 = toLength$4;
3768
- var toString$3 = toString$8;
3769
- var requireObjectCoercible$1 = requireObjectCoercible$8;
3770
- var advanceStringIndex = advanceStringIndex$2;
3771
- var getMethod$1 = getMethod$6;
3772
- var getSubstitution = getSubstitution$1;
3773
- var getRegExpFlags = regexpGetFlags;
3774
- var regExpExec = regexpExecAbstract;
3775
- var wellKnownSymbol$2 = wellKnownSymbol$k;
3776
-
3777
- var REPLACE = wellKnownSymbol$2('replace');
3778
- var max$1 = Math.max;
3779
- var min$1 = Math.min;
3780
- var concat = uncurryThis$5([].concat);
3781
- var push$1 = uncurryThis$5([].push);
3782
- var stringIndexOf = uncurryThis$5(''.indexOf);
3783
- var stringSlice$1 = uncurryThis$5(''.slice);
3784
-
3785
- var maybeToString = function (it) {
3786
- return it === undefined ? it : String(it);
3787
- };
3788
-
3789
- // IE <= 11 replaces $0 with the whole match, as if it was $&
3790
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
3791
- var REPLACE_KEEPS_$0 = (function () {
3792
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
3793
- return 'a'.replace(/./, '$0') === '$0';
3794
- })();
3795
-
3796
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
3797
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
3798
- if (/./[REPLACE]) {
3799
- return /./[REPLACE]('a', '$0') === '';
3800
- }
3801
- return false;
3802
- })();
2674
+ return false;
2675
+ })();
3803
2676
 
3804
2677
  var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$5(function () {
3805
2678
  var re = /./;
@@ -3821,15 +2694,15 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
3821
2694
  // https://tc39.es/ecma262/#sec-string.prototype.replace
3822
2695
  function replace(searchValue, replaceValue) {
3823
2696
  var O = requireObjectCoercible$1(this);
3824
- var replacer = isObject$1(searchValue) ? getMethod$1(searchValue, REPLACE) : undefined;
2697
+ var replacer = isObject$1(searchValue) ? getMethod$3(searchValue, REPLACE) : undefined;
3825
2698
  return replacer
3826
- ? call$7(replacer, searchValue, O, replaceValue)
3827
- : call$7(nativeReplace, toString$3(O), searchValue, replaceValue);
2699
+ ? call$a(replacer, searchValue, O, replaceValue)
2700
+ : call$a(nativeReplace, toString$3(O), searchValue, replaceValue);
3828
2701
  },
3829
2702
  // `RegExp.prototype[@@replace]` method
3830
2703
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
3831
2704
  function (string, replaceValue) {
3832
- var rx = anObject$6(this);
2705
+ var rx = anObject$9(this);
3833
2706
  var S = toString$3(string);
3834
2707
 
3835
2708
  var functionalReplace = isCallable$3(replaceValue);
@@ -3900,8 +2773,18 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
3900
2773
  ];
3901
2774
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
3902
2775
 
2776
+ var classofRaw = classofRaw$2;
2777
+ var uncurryThis$6 = functionUncurryThis;
2778
+
2779
+ var functionUncurryThisClause = function (fn) {
2780
+ // Nashorn bug:
2781
+ // https://github.com/zloirock/core-js/issues/1128
2782
+ // https://github.com/zloirock/core-js/issues/1130
2783
+ if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
2784
+ };
2785
+
3903
2786
  var $$d = _export;
3904
- var uncurryThis$4 = functionUncurryThisClause;
2787
+ var uncurryThis$5 = functionUncurryThisClause;
3905
2788
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
3906
2789
  var toLength = toLength$4;
3907
2790
  var toString$2 = toString$8;
@@ -3909,7 +2792,7 @@ var notARegExp = notARegexp;
3909
2792
  var requireObjectCoercible = requireObjectCoercible$8;
3910
2793
  var correctIsRegExpLogic = correctIsRegexpLogic;
3911
2794
 
3912
- var stringSlice = uncurryThis$4(''.slice);
2795
+ var stringSlice = uncurryThis$5(''.slice);
3913
2796
  var min = Math.min;
3914
2797
 
3915
2798
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
@@ -3931,19 +2814,51 @@ $$d({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
3931
2814
  }
3932
2815
  });
3933
2816
 
3934
- var classof = classofRaw$2;
2817
+ /******************************************************************************
2818
+ Copyright (c) Microsoft Corporation.
2819
+
2820
+ Permission to use, copy, modify, and/or distribute this software for any
2821
+ purpose with or without fee is hereby granted.
2822
+
2823
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2824
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2825
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2826
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2827
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2828
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2829
+ PERFORMANCE OF THIS SOFTWARE.
2830
+ ***************************************************************************** */
2831
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
2832
+
2833
+
2834
+ function __awaiter(thisArg, _arguments, P, generator) {
2835
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2836
+ return new (P || (P = Promise))(function (resolve, reject) {
2837
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2838
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2839
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2840
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
2841
+ });
2842
+ }
2843
+
2844
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2845
+ var e = new Error(message);
2846
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2847
+ };
2848
+
2849
+ var classof$1 = classofRaw$2;
3935
2850
 
3936
2851
  // `IsArray` abstract operation
3937
2852
  // https://tc39.es/ecma262/#sec-isarray
3938
2853
  // eslint-disable-next-line es/no-array-isarray -- safe
3939
2854
  var isArray$2 = Array.isArray || function isArray(argument) {
3940
- return classof(argument) === 'Array';
2855
+ return classof$1(argument) === 'Array';
3941
2856
  };
3942
2857
 
3943
2858
  var DESCRIPTORS$3 = descriptors;
3944
2859
  var isArray$1 = isArray$2;
3945
2860
 
3946
- var $TypeError$3 = TypeError;
2861
+ var $TypeError$6 = TypeError;
3947
2862
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3948
2863
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
3949
2864
 
@@ -3961,26 +2876,26 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
3961
2876
 
3962
2877
  var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
3963
2878
  if (isArray$1(O) && !getOwnPropertyDescriptor$1(O, 'length').writable) {
3964
- throw new $TypeError$3('Cannot set read only .length');
2879
+ throw new $TypeError$6('Cannot set read only .length');
3965
2880
  } return O.length = length;
3966
2881
  } : function (O, length) {
3967
2882
  return O.length = length;
3968
2883
  };
3969
2884
 
3970
- var $TypeError$2 = TypeError;
2885
+ var $TypeError$5 = TypeError;
3971
2886
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
3972
2887
 
3973
2888
  var doesNotExceedSafeInteger$1 = function (it) {
3974
- if (it > MAX_SAFE_INTEGER) throw new $TypeError$2('Maximum allowed index exceeded');
2889
+ if (it > MAX_SAFE_INTEGER) throw new $TypeError$5('Maximum allowed index exceeded');
3975
2890
  return it;
3976
2891
  };
3977
2892
 
3978
2893
  var $$c = _export;
3979
2894
  var toObject = toObject$4;
3980
- var lengthOfArrayLike$1 = lengthOfArrayLike$4;
2895
+ var lengthOfArrayLike$2 = lengthOfArrayLike$4;
3981
2896
  var setArrayLength = arraySetLength;
3982
2897
  var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
3983
- var fails$4 = fails$p;
2898
+ var fails$4 = fails$n;
3984
2899
 
3985
2900
  var INCORRECT_TO_LENGTH = fails$4(function () {
3986
2901
  return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
@@ -4005,7 +2920,7 @@ $$c({ target: 'Array', proto: true, arity: 1, forced: FORCED$5 }, {
4005
2920
  // eslint-disable-next-line no-unused-vars -- required for `.length`
4006
2921
  push: function push(item) {
4007
2922
  var O = toObject(this);
4008
- var len = lengthOfArrayLike$1(O);
2923
+ var len = lengthOfArrayLike$2(O);
4009
2924
  var argCount = arguments.length;
4010
2925
  doesNotExceedSafeInteger(len + argCount);
4011
2926
  for (var i = 0; i < argCount; i++) {
@@ -4017,6 +2932,24 @@ $$c({ target: 'Array', proto: true, arity: 1, forced: FORCED$5 }, {
4017
2932
  }
4018
2933
  });
4019
2934
 
2935
+ var isPrototypeOf$1 = objectIsPrototypeOf;
2936
+
2937
+ var $TypeError$4 = TypeError;
2938
+
2939
+ var anInstance$1 = function (it, Prototype) {
2940
+ if (isPrototypeOf$1(Prototype, it)) return it;
2941
+ throw new $TypeError$4('Incorrect invocation');
2942
+ };
2943
+
2944
+ var makeBuiltIn = makeBuiltInExports;
2945
+ var defineProperty = objectDefineProperty;
2946
+
2947
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
2948
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2949
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2950
+ return defineProperty.f(target, name, descriptor);
2951
+ };
2952
+
4020
2953
  var DESCRIPTORS$2 = descriptors;
4021
2954
  var definePropertyModule = objectDefineProperty;
4022
2955
  var createPropertyDescriptor = createPropertyDescriptor$4;
@@ -4028,24 +2961,24 @@ var createProperty$2 = function (object, key, value) {
4028
2961
 
4029
2962
  var $$b = _export;
4030
2963
  var globalThis$3 = globalThis_1;
4031
- var anInstance = anInstance$2;
4032
- var anObject$5 = anObject$k;
4033
- var isCallable$2 = isCallable$o;
2964
+ var anInstance = anInstance$1;
2965
+ var anObject$8 = anObject$i;
2966
+ var isCallable$2 = isCallable$j;
4034
2967
  var getPrototypeOf = objectGetPrototypeOf;
4035
- var defineBuiltInAccessor = defineBuiltInAccessor$2;
2968
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
4036
2969
  var createProperty$1 = createProperty$2;
4037
- var fails$3 = fails$p;
2970
+ var fails$3 = fails$n;
4038
2971
  var hasOwn$2 = hasOwnProperty_1;
4039
- var wellKnownSymbol$1 = wellKnownSymbol$k;
2972
+ var wellKnownSymbol$3 = wellKnownSymbol$g;
4040
2973
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
4041
2974
  var DESCRIPTORS$1 = descriptors;
4042
2975
 
4043
2976
  var CONSTRUCTOR = 'constructor';
4044
- var ITERATOR = 'Iterator';
4045
- var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
2977
+ var ITERATOR$2 = 'Iterator';
2978
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
4046
2979
 
4047
- var $TypeError$1 = TypeError;
4048
- var NativeIterator = globalThis$3[ITERATOR];
2980
+ var $TypeError$3 = TypeError;
2981
+ var NativeIterator = globalThis$3[ITERATOR$2];
4049
2982
 
4050
2983
  // FF56- have non-standard global helper `Iterator`
4051
2984
  var FORCED$4 = !isCallable$2(NativeIterator)
@@ -4055,7 +2988,7 @@ var FORCED$4 = !isCallable$2(NativeIterator)
4055
2988
 
4056
2989
  var IteratorConstructor = function Iterator() {
4057
2990
  anInstance(this, IteratorPrototype$1);
4058
- if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$1('Abstract class Iterator not directly constructable');
2991
+ if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$3('Abstract class Iterator not directly constructable');
4059
2992
  };
4060
2993
 
4061
2994
  var defineIteratorPrototypeAccessor = function (key, value) {
@@ -4066,8 +2999,8 @@ var defineIteratorPrototypeAccessor = function (key, value) {
4066
2999
  return value;
4067
3000
  },
4068
3001
  set: function (replacement) {
4069
- anObject$5(this);
4070
- if (this === IteratorPrototype$1) throw new $TypeError$1("You can't redefine this property");
3002
+ anObject$8(this);
3003
+ if (this === IteratorPrototype$1) throw new $TypeError$3("You can't redefine this property");
4071
3004
  if (hasOwn$2(this, key)) this[key] = replacement;
4072
3005
  else createProperty$1(this, key, replacement);
4073
3006
  }
@@ -4075,7 +3008,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
4075
3008
  } else IteratorPrototype$1[key] = value;
4076
3009
  };
4077
3010
 
4078
- if (!hasOwn$2(IteratorPrototype$1, TO_STRING_TAG$1)) defineIteratorPrototypeAccessor(TO_STRING_TAG$1, ITERATOR);
3011
+ if (!hasOwn$2(IteratorPrototype$1, TO_STRING_TAG$1)) defineIteratorPrototypeAccessor(TO_STRING_TAG$1, ITERATOR$2);
4079
3012
 
4080
3013
  if (FORCED$4 || !hasOwn$2(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
4081
3014
  defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
@@ -4099,20 +3032,44 @@ var getIteratorDirect$3 = function (obj) {
4099
3032
  };
4100
3033
  };
4101
3034
 
4102
- var defineBuiltIn = defineBuiltIn$8;
3035
+ var defineBuiltIn = defineBuiltIn$6;
4103
3036
 
4104
3037
  var defineBuiltIns$1 = function (target, src, options) {
4105
3038
  for (var key in src) defineBuiltIn(target, key, src[key], options);
4106
3039
  return target;
4107
3040
  };
4108
3041
 
4109
- var iteratorClose$6 = iteratorClose$8;
3042
+ var call$9 = functionCall;
3043
+ var anObject$7 = anObject$i;
3044
+ var getMethod$2 = getMethod$6;
3045
+
3046
+ var iteratorClose$8 = function (iterator, kind, value) {
3047
+ var innerResult, innerError;
3048
+ anObject$7(iterator);
3049
+ try {
3050
+ innerResult = getMethod$2(iterator, 'return');
3051
+ if (!innerResult) {
3052
+ if (kind === 'throw') throw value;
3053
+ return value;
3054
+ }
3055
+ innerResult = call$9(innerResult, iterator);
3056
+ } catch (error) {
3057
+ innerError = true;
3058
+ innerResult = error;
3059
+ }
3060
+ if (kind === 'throw') throw value;
3061
+ if (innerError) throw innerResult;
3062
+ anObject$7(innerResult);
3063
+ return value;
3064
+ };
3065
+
3066
+ var iteratorClose$7 = iteratorClose$8;
4110
3067
 
4111
3068
  var iteratorCloseAll$1 = function (iters, kind, value) {
4112
3069
  for (var i = iters.length - 1; i >= 0; i--) {
4113
3070
  if (iters[i] === undefined) continue;
4114
3071
  try {
4115
- value = iteratorClose$6(iters[i].iterator, kind, value);
3072
+ value = iteratorClose$7(iters[i].iterator, kind, value);
4116
3073
  } catch (error) {
4117
3074
  kind = 'throw';
4118
3075
  value = error;
@@ -4122,19 +3079,19 @@ var iteratorCloseAll$1 = function (iters, kind, value) {
4122
3079
  return value;
4123
3080
  };
4124
3081
 
4125
- var call$6 = functionCall;
3082
+ var call$8 = functionCall;
4126
3083
  var create = objectCreate;
4127
3084
  var createNonEnumerableProperty = createNonEnumerableProperty$6;
4128
3085
  var defineBuiltIns = defineBuiltIns$1;
4129
- var wellKnownSymbol = wellKnownSymbol$k;
3086
+ var wellKnownSymbol$2 = wellKnownSymbol$g;
4130
3087
  var InternalStateModule = internalState;
4131
- var getMethod = getMethod$6;
3088
+ var getMethod$1 = getMethod$6;
4132
3089
  var IteratorPrototype = iteratorsCore.IteratorPrototype;
4133
3090
  var createIterResultObject = createIterResultObject$2;
4134
- var iteratorClose$5 = iteratorClose$8;
3091
+ var iteratorClose$6 = iteratorClose$8;
4135
3092
  var iteratorCloseAll = iteratorCloseAll$1;
4136
3093
 
4137
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3094
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
4138
3095
  var ITERATOR_HELPER = 'IteratorHelper';
4139
3096
  var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
4140
3097
  var NORMAL = 'normal';
@@ -4166,22 +3123,22 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
4166
3123
  var done = state.done;
4167
3124
  state.done = true;
4168
3125
  if (IS_ITERATOR) {
4169
- var returnMethod = getMethod(iterator, 'return');
4170
- return returnMethod ? call$6(returnMethod, iterator) : createIterResultObject(undefined, true);
3126
+ var returnMethod = getMethod$1(iterator, 'return');
3127
+ return returnMethod ? call$8(returnMethod, iterator) : createIterResultObject(undefined, true);
4171
3128
  }
4172
3129
  if (done) return createIterResultObject(undefined, true);
4173
3130
  if (state.inner) try {
4174
- iteratorClose$5(state.inner.iterator, NORMAL);
3131
+ iteratorClose$6(state.inner.iterator, NORMAL);
4175
3132
  } catch (error) {
4176
- return iteratorClose$5(iterator, THROW, error);
3133
+ return iteratorClose$6(iterator, THROW, error);
4177
3134
  }
4178
3135
  if (state.openIters) try {
4179
3136
  iteratorCloseAll(state.openIters, NORMAL);
4180
3137
  } catch (error) {
4181
- if (iterator) return iteratorClose$5(iterator, THROW, error);
3138
+ if (iterator) return iteratorClose$6(iterator, THROW, error);
4182
3139
  throw error;
4183
3140
  }
4184
- if (iterator) iteratorClose$5(iterator, NORMAL);
3141
+ if (iterator) iteratorClose$6(iterator, NORMAL);
4185
3142
  return createIterResultObject(undefined, true);
4186
3143
  }
4187
3144
  });
@@ -4211,15 +3168,15 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RES
4211
3168
  return IteratorProxy;
4212
3169
  };
4213
3170
 
4214
- var anObject$4 = anObject$k;
4215
- var iteratorClose$4 = iteratorClose$8;
3171
+ var anObject$6 = anObject$i;
3172
+ var iteratorClose$5 = iteratorClose$8;
4216
3173
 
4217
3174
  // call something on iterator step with safe closing on error
4218
3175
  var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
4219
3176
  try {
4220
- return ENTRIES ? fn(anObject$4(value)[0], value[1]) : fn(value);
3177
+ return ENTRIES ? fn(anObject$6(value)[0], value[1]) : fn(value);
4221
3178
  } catch (error) {
4222
- iteratorClose$4(iterator, 'throw', error);
3179
+ iteratorClose$5(iterator, 'throw', error);
4223
3180
  }
4224
3181
  };
4225
3182
 
@@ -4259,13 +3216,13 @@ var iteratorHelperWithoutClosingOnEarlyError$2 = function (METHOD_NAME, Expected
4259
3216
  };
4260
3217
 
4261
3218
  var $$a = _export;
4262
- var call$5 = functionCall;
4263
- var aCallable$2 = aCallable$b;
4264
- var anObject$3 = anObject$k;
3219
+ var call$7 = functionCall;
3220
+ var aCallable$4 = aCallable$7;
3221
+ var anObject$5 = anObject$i;
4265
3222
  var getIteratorDirect$2 = getIteratorDirect$3;
4266
3223
  var createIteratorProxy = iteratorCreateProxy;
4267
3224
  var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
4268
- var iteratorClose$3 = iteratorClose$8;
3225
+ var iteratorClose$4 = iteratorClose$8;
4269
3226
  var iteratorHelperThrowsOnInvalidIterator = iteratorHelperThrowsOnInvalidIterator$1;
4270
3227
  var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$2;
4271
3228
 
@@ -4281,7 +3238,7 @@ var IteratorProxy = createIteratorProxy(function () {
4281
3238
  var next = this.next;
4282
3239
  var result, done, value;
4283
3240
  while (true) {
4284
- result = anObject$3(call$5(next, iterator));
3241
+ result = anObject$5(call$7(next, iterator));
4285
3242
  done = this.done = !!result.done;
4286
3243
  if (done) return;
4287
3244
  value = result.value;
@@ -4293,14 +3250,14 @@ var IteratorProxy = createIteratorProxy(function () {
4293
3250
  // https://tc39.es/ecma262/#sec-iterator.prototype.filter
4294
3251
  $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
4295
3252
  filter: function filter(predicate) {
4296
- anObject$3(this);
3253
+ anObject$5(this);
4297
3254
  try {
4298
- aCallable$2(predicate);
3255
+ aCallable$4(predicate);
4299
3256
  } catch (error) {
4300
- iteratorClose$3(this, 'throw', error);
3257
+ iteratorClose$4(this, 'throw', error);
4301
3258
  }
4302
3259
 
4303
- if (filterWithoutClosingOnEarlyError) return call$5(filterWithoutClosingOnEarlyError, this, predicate);
3260
+ if (filterWithoutClosingOnEarlyError) return call$7(filterWithoutClosingOnEarlyError, this, predicate);
4304
3261
 
4305
3262
  return new IteratorProxy(getIteratorDirect$2(this), {
4306
3263
  predicate: predicate
@@ -4308,11 +3265,138 @@ $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
4308
3265
  }
4309
3266
  });
4310
3267
 
3268
+ var uncurryThis$4 = functionUncurryThisClause;
3269
+ var aCallable$3 = aCallable$7;
3270
+ var NATIVE_BIND = functionBindNative;
3271
+
3272
+ var bind$1 = uncurryThis$4(uncurryThis$4.bind);
3273
+
3274
+ // optional / simple context binding
3275
+ var functionBindContext = function (fn, that) {
3276
+ aCallable$3(fn);
3277
+ return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
3278
+ return fn.apply(that, arguments);
3279
+ };
3280
+ };
3281
+
3282
+ var wellKnownSymbol$1 = wellKnownSymbol$g;
3283
+ var Iterators$1 = iterators;
3284
+
3285
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
3286
+ var ArrayPrototype = Array.prototype;
3287
+
3288
+ // check on default Array iterator
3289
+ var isArrayIteratorMethod$1 = function (it) {
3290
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
3291
+ };
3292
+
3293
+ var classof = classof$5;
3294
+ var getMethod = getMethod$6;
3295
+ var isNullOrUndefined = isNullOrUndefined$3;
3296
+ var Iterators = iterators;
3297
+ var wellKnownSymbol = wellKnownSymbol$g;
3298
+
3299
+ var ITERATOR = wellKnownSymbol('iterator');
3300
+
3301
+ var getIteratorMethod$2 = function (it) {
3302
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
3303
+ || getMethod(it, '@@iterator')
3304
+ || Iterators[classof(it)];
3305
+ };
3306
+
3307
+ var call$6 = functionCall;
3308
+ var aCallable$2 = aCallable$7;
3309
+ var anObject$4 = anObject$i;
3310
+ var tryToString$1 = tryToString$3;
3311
+ var getIteratorMethod$1 = getIteratorMethod$2;
3312
+
3313
+ var $TypeError$2 = TypeError;
3314
+
3315
+ var getIterator$1 = function (argument, usingIterator) {
3316
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3317
+ if (aCallable$2(iteratorMethod)) return anObject$4(call$6(iteratorMethod, argument));
3318
+ throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
3319
+ };
3320
+
3321
+ var bind = functionBindContext;
3322
+ var call$5 = functionCall;
3323
+ var anObject$3 = anObject$i;
3324
+ var tryToString = tryToString$3;
3325
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
3326
+ var lengthOfArrayLike$1 = lengthOfArrayLike$4;
3327
+ var isPrototypeOf = objectIsPrototypeOf;
3328
+ var getIterator = getIterator$1;
3329
+ var getIteratorMethod = getIteratorMethod$2;
3330
+ var iteratorClose$3 = iteratorClose$8;
3331
+
3332
+ var $TypeError$1 = TypeError;
3333
+
3334
+ var Result = function (stopped, result) {
3335
+ this.stopped = stopped;
3336
+ this.result = result;
3337
+ };
3338
+
3339
+ var ResultPrototype = Result.prototype;
3340
+
3341
+ var iterate$3 = function (iterable, unboundFunction, options) {
3342
+ var that = options && options.that;
3343
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3344
+ var IS_RECORD = !!(options && options.IS_RECORD);
3345
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3346
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
3347
+ var fn = bind(unboundFunction, that);
3348
+ var iterator, iterFn, index, length, result, next, step;
3349
+
3350
+ var stop = function (condition) {
3351
+ var $iterator = iterator;
3352
+ iterator = undefined;
3353
+ if ($iterator) iteratorClose$3($iterator, 'normal');
3354
+ return new Result(true, condition);
3355
+ };
3356
+
3357
+ var callFn = function (value) {
3358
+ if (AS_ENTRIES) {
3359
+ anObject$3(value);
3360
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3361
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
3362
+ };
3363
+
3364
+ if (IS_RECORD) {
3365
+ iterator = iterable.iterator;
3366
+ } else if (IS_ITERATOR) {
3367
+ iterator = iterable;
3368
+ } else {
3369
+ iterFn = getIteratorMethod(iterable);
3370
+ if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
3371
+ // optimisation for array iterators
3372
+ if (isArrayIteratorMethod(iterFn)) {
3373
+ for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
3374
+ result = callFn(iterable[index]);
3375
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
3376
+ } return new Result(false);
3377
+ }
3378
+ iterator = getIterator(iterable, iterFn);
3379
+ }
3380
+
3381
+ next = IS_RECORD ? iterable.next : iterator.next;
3382
+ while (!(step = call$5(next, iterator)).done) {
3383
+ // `IteratorValue` errors should propagate without closing the iterator
3384
+ var value = step.value;
3385
+ try {
3386
+ result = callFn(value);
3387
+ } catch (error) {
3388
+ if (iterator) iteratorClose$3(iterator, 'throw', error);
3389
+ else throw error;
3390
+ }
3391
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
3392
+ } return new Result(false);
3393
+ };
3394
+
4311
3395
  var $$9 = _export;
4312
3396
  var call$4 = functionCall;
4313
- var iterate$2 = iterate$5;
4314
- var aCallable$1 = aCallable$b;
4315
- var anObject$2 = anObject$k;
3397
+ var iterate$2 = iterate$3;
3398
+ var aCallable$1 = aCallable$7;
3399
+ var anObject$2 = anObject$i;
4316
3400
  var getIteratorDirect$1 = getIteratorDirect$3;
4317
3401
  var iteratorClose$2 = iteratorClose$8;
4318
3402
  var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2;
@@ -4344,8 +3428,8 @@ $$9({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosing
4344
3428
 
4345
3429
  var $$8 = _export;
4346
3430
  var call$3 = functionCall;
4347
- var isCallable$1 = isCallable$o;
4348
- var anObject$1 = anObject$k;
3431
+ var isCallable$1 = isCallable$j;
3432
+ var anObject$1 = anObject$i;
4349
3433
  var toString$1 = toString$8;
4350
3434
 
4351
3435
  var DELEGATES_TO_EXEC = function () {
@@ -4379,13 +3463,11 @@ const MQTT_TIMEOUT_SECONDS = 3;
4379
3463
  const MQTT_TIMEOUT_MS = MQTT_TIMEOUT_SECONDS * 1000;
4380
3464
  const KEEP_ALIVE_SECONDS = 5;
4381
3465
  const RECONNECT_INTERVAL_MS = 1 * 1000; // 1 second
4382
-
4383
3466
  function getClientId() {
4384
3467
  return "pendant_" + Math.random().toString(16).substr(2, 8);
4385
3468
  }
4386
3469
  class MqttClient {
4387
3470
  constructor(url, connectCallback) {
4388
- this.mqttClient = void 0;
4389
3471
  this.subscriptions = [];
4390
3472
  this.connect(url, connectCallback);
4391
3473
  }
@@ -4398,12 +3480,12 @@ class MqttClient {
4398
3480
  };
4399
3481
  this.mqttClient = mqtt.connect(url, options);
4400
3482
  this.mqttClient.on("connect", () => {
4401
- connectCallback == null || connectCallback();
3483
+ connectCallback === null || connectCallback === void 0 ? void 0 : connectCallback();
4402
3484
  });
4403
3485
  this.mqttClient.on("close", () => {
4404
- var _this$mqttClient;
3486
+ var _a;
4405
3487
  console.warn("MQTT connection closed");
4406
- (_this$mqttClient = this.mqttClient) == null || _this$mqttClient.end(true, {}, () => {
3488
+ (_a = this.mqttClient) === null || _a === void 0 ? void 0 : _a.end(true, {}, () => {
4407
3489
  console.log("MQTT connection ended");
4408
3490
  this.mqttClient = undefined;
4409
3491
  setTimeout(() => this.connect(url, connectCallback), RECONNECT_INTERVAL_MS);
@@ -4421,12 +3503,12 @@ class MqttClient {
4421
3503
  });
4422
3504
  }
4423
3505
  subscribe(topic, regex, cb) {
4424
- var _this$mqttClient2;
3506
+ var _a;
4425
3507
  this.subscriptions.push({
4426
3508
  pattern: regex,
4427
3509
  callback: cb
4428
3510
  });
4429
- (_this$mqttClient2 = this.mqttClient) == null || _this$mqttClient2.subscribe(topic, err => {
3511
+ (_a = this.mqttClient) === null || _a === void 0 ? void 0 : _a.subscribe(topic, err => {
4430
3512
  if (err) {
4431
3513
  this.subscriptions = this.subscriptions.filter(sub => sub.pattern !== regex || sub.callback !== cb);
4432
3514
  console.error("Unable to subscribe to MQTT broker with error: ", err);
@@ -4434,19 +3516,19 @@ class MqttClient {
4434
3516
  });
4435
3517
  }
4436
3518
  unsubscribe(topic, regex, cb) {
3519
+ var _a;
4437
3520
  this.subscriptions = this.subscriptions.filter(sub => sub.pattern !== regex || sub.callback !== cb);
4438
3521
  const sameTopicSubscriptions = this.subscriptions.filter(sub => String(sub.pattern) === String(regex));
4439
3522
  if (sameTopicSubscriptions.length <= 0) {
4440
- var _this$mqttClient3;
4441
- (_this$mqttClient3 = this.mqttClient) == null || _this$mqttClient3.unsubscribe(topic);
3523
+ (_a = this.mqttClient) === null || _a === void 0 ? void 0 : _a.unsubscribe(topic);
4442
3524
  }
4443
3525
  }
4444
3526
  publish(topic, message, retain = false) {
4445
- var _this$mqttClient4;
3527
+ var _a;
4446
3528
  const options = {
4447
3529
  retain
4448
3530
  };
4449
- (_this$mqttClient4 = this.mqttClient) == null || _this$mqttClient4.publish(topic, message, options);
3531
+ (_a = this.mqttClient) === null || _a === void 0 ? void 0 : _a.publish(topic, message, options);
4450
3532
  }
4451
3533
  }
4452
3534
 
@@ -4457,14 +3539,14 @@ const isOnEdge = () => {
4457
3539
  const getExecutionEngineHttpUrl = () => {
4458
3540
  return isOnEdge() ? `http://${window.location.hostname}:3100` : getExecutionEngineUrlGivenUiIframeUrl(window.location.href);
4459
3541
  };
4460
- const getMqttWsUrl = async (version = "v2") => {
3542
+ const getMqttWsUrl = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (version = "v2") {
4461
3543
  const urlOnEdge = version === "v2" ? "ws://192.168.5.2:9001" : `ws://${window.location.hostname}:9001`;
4462
3544
  return isOnEdge() ? urlOnEdge : getMqttWsUrlGivenUiIframeUrl(window.location.href);
4463
- };
4464
- const connectToMqttAndGetClient = async () => {
4465
- const websocketUrl = await getMqttWsUrl();
3545
+ });
3546
+ const connectToMqttAndGetClient = () => __awaiter(void 0, void 0, void 0, function* () {
3547
+ const websocketUrl = yield getMqttWsUrl();
4466
3548
  return new MqttClient(websocketUrl, () => console.log("Connected to MQTT Broker"));
4467
- };
3549
+ });
4468
3550
  const getMachineCodeProcessHttpUrl = processName => {
4469
3551
  const executionEngineHttpUrl = getExecutionEngineHttpUrl();
4470
3552
  return `${executionEngineHttpUrl}/v1/machineCode/services/${processName}`;
@@ -4560,8 +3642,8 @@ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function
4560
3642
  return set.size;
4561
3643
  };
4562
3644
 
4563
- var aCallable = aCallable$b;
4564
- var anObject = anObject$k;
3645
+ var aCallable = aCallable$7;
3646
+ var anObject = anObject$i;
4565
3647
  var call$1 = functionCall;
4566
3648
  var toIntegerOrInfinity = toIntegerOrInfinity$5;
4567
3649
  var getIteratorDirect = getIteratorDirect$3;
@@ -4626,7 +3708,7 @@ var setDifference = function difference(other) {
4626
3708
  return result;
4627
3709
  };
4628
3710
 
4629
- var getBuiltIn$1 = getBuiltIn$9;
3711
+ var getBuiltIn$1 = getBuiltIn$5;
4630
3712
 
4631
3713
  var createSetLike = function (size) {
4632
3714
  return {
@@ -4686,7 +3768,7 @@ var setMethodAcceptSetLike$7 = function (name, callback) {
4686
3768
 
4687
3769
  var $$7 = _export;
4688
3770
  var difference = setDifference;
4689
- var fails$2 = fails$p;
3771
+ var fails$2 = fails$n;
4690
3772
  var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
4691
3773
 
4692
3774
  var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
@@ -4753,7 +3835,7 @@ var setIntersection = function intersection(other) {
4753
3835
  };
4754
3836
 
4755
3837
  var $$6 = _export;
4756
- var fails$1 = fails$p;
3838
+ var fails$1 = fails$n;
4757
3839
  var intersection = setIntersection;
4758
3840
  var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
4759
3841
 
@@ -4993,37 +4075,39 @@ const MqttProvider = props => {
4993
4075
  removeSubscribedTopic
4994
4076
  }), [mqttClient, connectionStatus, subscribedTopics]);
4995
4077
  useEffect(function mqttConnection() {
4996
- async function connectToMqtt() {
4997
- var _props$version;
4998
- console.log("Connecting to MQTT");
4999
- const client = mqtt.connect(await getMqttWsUrl((_props$version = props.version) != null ? _props$version : defaultProps.version));
5000
- client.on("connect", () => {
5001
- setConnectionStatus("connected");
5002
- console.log("Connected to MQTT");
5003
- setMqttClient(client);
5004
- subscribedTopics.current = new Set();
5005
- });
5006
- client.on("error", error => {
5007
- setConnectionStatus("error");
5008
- console.error("MQTT error:", error);
5009
- });
5010
- client.on("offline", () => {
5011
- setConnectionStatus("disconnected");
5012
- });
5013
- client.on("end", () => {
5014
- setConnectionStatus("disconnected");
4078
+ function connectToMqtt() {
4079
+ return __awaiter(this, void 0, void 0, function* () {
4080
+ var _a;
4081
+ console.log("Connecting to MQTT");
4082
+ const client = mqtt.connect(yield getMqttWsUrl((_a = props.version) !== null && _a !== void 0 ? _a : defaultProps.version));
4083
+ client.on("connect", () => {
4084
+ setConnectionStatus("connected");
4085
+ console.log("Connected to MQTT");
4086
+ setMqttClient(client);
4087
+ subscribedTopics.current = new Set();
4088
+ });
4089
+ client.on("error", error => {
4090
+ setConnectionStatus("error");
4091
+ console.error("MQTT error:", error);
4092
+ });
4093
+ client.on("offline", () => {
4094
+ setConnectionStatus("disconnected");
4095
+ });
4096
+ client.on("end", () => {
4097
+ setConnectionStatus("disconnected");
4098
+ });
4099
+ return function cleanup() {
4100
+ client.unsubscribe(Array.from(subscribedTopics.current));
4101
+ client.removeAllListeners();
4102
+ setMqttClient(null);
4103
+ setConnectionStatus("disconnected");
4104
+ client.end();
4105
+ };
5015
4106
  });
5016
- return function cleanup() {
5017
- client.unsubscribe(Array.from(subscribedTopics.current));
5018
- client.removeAllListeners();
5019
- setMqttClient(null);
5020
- setConnectionStatus("disconnected");
5021
- client.end();
5022
- };
5023
4107
  }
5024
4108
  connectToMqtt();
5025
4109
  }, [props.version, subscribedTopics]);
5026
- return /*#__PURE__*/jsx(mqttContext.Provider, {
4110
+ return jsx(mqttContext.Provider, {
5027
4111
  value: contextValue,
5028
4112
  children: props.children
5029
4113
  });
@@ -5088,17 +4172,17 @@ var parseJsonString = function (source, i) {
5088
4172
  var $ = _export;
5089
4173
  var DESCRIPTORS = descriptors;
5090
4174
  var globalThis$1 = globalThis_1;
5091
- var getBuiltIn = getBuiltIn$9;
4175
+ var getBuiltIn = getBuiltIn$5;
5092
4176
  var uncurryThis = functionUncurryThis;
5093
4177
  var call = functionCall;
5094
- var isCallable = isCallable$o;
5095
- var isObject = isObject$e;
4178
+ var isCallable = isCallable$j;
4179
+ var isObject = isObject$c;
5096
4180
  var isArray = isArray$2;
5097
4181
  var hasOwn = hasOwnProperty_1;
5098
4182
  var toString = toString$8;
5099
4183
  var lengthOfArrayLike = lengthOfArrayLike$4;
5100
4184
  var createProperty = createProperty$2;
5101
- var fails = fails$p;
4185
+ var fails = fails$n;
5102
4186
  var parseJSONString = parseJsonString;
5103
4187
  var NATIVE_SYMBOL = symbolConstructorDetection;
5104
4188
 
@@ -5352,24 +4436,22 @@ const useMqttSubscription = props => {
5352
4436
  const mqtt = useContext(mqttContext);
5353
4437
  const [message, setMessage] = useState();
5354
4438
  useEffect(function subscribeToTopics() {
5355
- var _mqtt$subscribedTopic, _mqtt$client2;
4439
+ var _a, _b, _c;
5356
4440
  if (mqtt.connectionStatus !== "connected" || !mqtt.client) return;
5357
4441
  const handleMessage = (topic, message) => {
5358
4442
  if (topic === props.topic) setMessage(JSON.parse(message.toString()));
5359
4443
  };
5360
- if (!((_mqtt$subscribedTopic = mqtt.subscribedTopics) != null && _mqtt$subscribedTopic.current.has(props.topic))) {
5361
- var _mqtt$client;
4444
+ if (!((_a = mqtt.subscribedTopics) === null || _a === void 0 ? void 0 : _a.current.has(props.topic))) {
5362
4445
  mqtt.addSubscribedTopic(props.topic);
5363
- (_mqtt$client = mqtt.client) == null || _mqtt$client.subscribe(props.topic);
4446
+ (_b = mqtt.client) === null || _b === void 0 ? void 0 : _b.subscribe(props.topic);
5364
4447
  }
5365
- (_mqtt$client2 = mqtt.client) == null || _mqtt$client2.on("message", handleMessage);
4448
+ (_c = mqtt.client) === null || _c === void 0 ? void 0 : _c.on("message", handleMessage);
5366
4449
  return function cleanup() {
5367
- var _mqtt$client3;
5368
- (_mqtt$client3 = mqtt.client) == null || _mqtt$client3.off("message", handleMessage);
4450
+ var _a, _b;
4451
+ (_a = mqtt.client) === null || _a === void 0 ? void 0 : _a.off("message", handleMessage);
5369
4452
  if (props.unsubscribeOnUnmount) {
5370
- var _mqtt$client4;
5371
4453
  mqtt.removeSubscribedTopic(props.topic);
5372
- (_mqtt$client4 = mqtt.client) == null || _mqtt$client4.unsubscribe(props.topic);
4454
+ (_b = mqtt.client) === null || _b === void 0 ? void 0 : _b.unsubscribe(props.topic);
5373
4455
  }
5374
4456
  };
5375
4457
  }, [mqtt, props.topic, props.unsubscribeOnUnmount]);