@vonage/vivid 3.0.0-next.18 → 3.0.0-next.20

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/shared/icon.js CHANGED
@@ -1,19 +1,13 @@
1
- import { i as global$e, r as redefine$3, w as wellKnownSymbol$8, A as getBuiltIn$4, a as objectDefineProperty, d as descriptors, B as objectIsPrototypeOf, C as functionUncurryThis, D as functionBindNative, E as aCallable$4, p as iterators, F as classofRaw$1, k as isCallable$5, G as getMethod$2, x as functionCall, b as anObject$5, H as tryToString$3, I as lengthOfArrayLike$1, g as fails$4, J as inspectSource$2, K as engineUserAgent, c as html$1, f as documentCreateElement, j as hasOwnProperty_1, L as objectGetOwnPropertyDescriptor, M as isObject$2, _ as _export, q as objectSetPrototypeOf, n as setToStringTag$1, N as isForced_1, O as engineV8Version, z as internalState, P as requireObjectCoercible$1, y as functionName } from './object-set-prototype-of.js';
1
+ import { A as classofRaw$1, z as global$8, w as wellKnownSymbol$8, B as getBuiltIn$5, a as objectDefineProperty, d as descriptors, C as objectIsPrototypeOf, j as isCallable$7, D as functionUncurryThis, g as fails$4, E as inspectSource$2, F as tryToString$3, b as anObject$5, G as functionBindNative, H as aCallable$6, I as engineUserAgent, c as html$1, f as documentCreateElement, i as hasOwnProperty_1, J as objectGetOwnPropertyDescriptor, K as isForced_1, L as engineV8Version, _ as _export, l as defineBuiltIn$3, q as objectSetPrototypeOf, n as setToStringTag$1, u as functionCall, M as isObject$2, y as internalState, p as iterators, N as getMethod$2, O as lengthOfArrayLike$1, P as requireObjectCoercible$1, x as functionName } from './object-set-prototype-of.js';
2
2
  import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
3
3
  import { _ as _curry1, a as _curry2, b as _has } from './_has.js';
4
4
 
5
- var global$d = global$e;
5
+ var classof$4 = classofRaw$1;
6
+ var global$7 = global$8;
6
7
 
7
- var nativePromiseConstructor = global$d.Promise;
8
+ var engineIsNode = classof$4(global$7.process) == 'process';
8
9
 
9
- var redefine$2 = redefine$3.exports;
10
-
11
- var redefineAll$1 = function (target, src, options) {
12
- for (var key in src) redefine$2(target, key, src[key], options);
13
- return target;
14
- };
15
-
16
- var getBuiltIn$3 = getBuiltIn$4;
10
+ var getBuiltIn$4 = getBuiltIn$5;
17
11
  var definePropertyModule = objectDefineProperty;
18
12
  var wellKnownSymbol$7 = wellKnownSymbol$8;
19
13
  var DESCRIPTORS = descriptors;
@@ -21,7 +15,7 @@ var DESCRIPTORS = descriptors;
21
15
  var SPECIES$2 = wellKnownSymbol$7('species');
22
16
 
23
17
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
24
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
18
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
25
19
  var defineProperty = definePropertyModule.f;
26
20
 
27
21
  if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
@@ -32,58 +26,31 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
32
26
  }
33
27
  };
34
28
 
35
- var global$c = global$e;
36
29
  var isPrototypeOf$1 = objectIsPrototypeOf;
37
30
 
38
- var TypeError$6 = global$c.TypeError;
31
+ var $TypeError$4 = TypeError;
39
32
 
40
33
  var anInstance$1 = function (it, Prototype) {
41
34
  if (isPrototypeOf$1(Prototype, it)) return it;
42
- throw TypeError$6('Incorrect invocation');
43
- };
44
-
45
- var uncurryThis$3 = functionUncurryThis;
46
- var aCallable$3 = aCallable$4;
47
- var NATIVE_BIND$1 = functionBindNative;
48
-
49
- var bind$4 = uncurryThis$3(uncurryThis$3.bind);
50
-
51
- // optional / simple context binding
52
- var functionBindContext = function (fn, that) {
53
- aCallable$3(fn);
54
- return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
55
- return fn.apply(that, arguments);
56
- };
35
+ throw $TypeError$4('Incorrect invocation');
57
36
  };
58
37
 
59
38
  var wellKnownSymbol$6 = wellKnownSymbol$8;
60
- var Iterators$1 = iterators;
61
-
62
- var ITERATOR$2 = wellKnownSymbol$6('iterator');
63
- var ArrayPrototype = Array.prototype;
64
39
 
65
- // check on default Array iterator
66
- var isArrayIteratorMethod$1 = function (it) {
67
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
68
- };
69
-
70
- var wellKnownSymbol$5 = wellKnownSymbol$8;
71
-
72
- var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
40
+ var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
73
41
  var test = {};
74
42
 
75
43
  test[TO_STRING_TAG$1] = 'z';
76
44
 
77
45
  var toStringTagSupport = String(test) === '[object z]';
78
46
 
79
- var global$b = global$e;
80
47
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
81
- var isCallable$4 = isCallable$5;
48
+ var isCallable$6 = isCallable$7;
82
49
  var classofRaw = classofRaw$1;
83
- var wellKnownSymbol$4 = wellKnownSymbol$8;
50
+ var wellKnownSymbol$5 = wellKnownSymbol$8;
84
51
 
85
- var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
86
- var Object$1 = global$b.Object;
52
+ var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
53
+ var $Object = Object;
87
54
 
88
55
  // ES3 wrong here
89
56
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
@@ -96,191 +63,33 @@ var tryGet = function (it, key) {
96
63
  };
97
64
 
98
65
  // getting tag from ES6+ `Object.prototype.toString`
99
- var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
66
+ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
100
67
  var O, tag, result;
101
68
  return it === undefined ? 'Undefined' : it === null ? 'Null'
102
69
  // @@toStringTag case
103
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
70
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
104
71
  // builtinTag case
105
72
  : CORRECT_ARGUMENTS ? classofRaw(O)
106
73
  // ES3 arguments fallback
107
- : (result = classofRaw(O)) == 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
108
- };
109
-
110
- var classof$3 = classof$4;
111
- var getMethod$1 = getMethod$2;
112
- var Iterators = iterators;
113
- var wellKnownSymbol$3 = wellKnownSymbol$8;
114
-
115
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
116
-
117
- var getIteratorMethod$2 = function (it) {
118
- if (it != undefined) return getMethod$1(it, ITERATOR$1)
119
- || getMethod$1(it, '@@iterator')
120
- || Iterators[classof$3(it)];
121
- };
122
-
123
- var global$a = global$e;
124
- var call$4 = functionCall;
125
- var aCallable$2 = aCallable$4;
126
- var anObject$4 = anObject$5;
127
- var tryToString$2 = tryToString$3;
128
- var getIteratorMethod$1 = getIteratorMethod$2;
129
-
130
- var TypeError$5 = global$a.TypeError;
131
-
132
- var getIterator$1 = function (argument, usingIterator) {
133
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
134
- if (aCallable$2(iteratorMethod)) return anObject$4(call$4(iteratorMethod, argument));
135
- throw TypeError$5(tryToString$2(argument) + ' is not iterable');
74
+ : (result = classofRaw(O)) == 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
136
75
  };
137
76
 
138
- var call$3 = functionCall;
139
- var anObject$3 = anObject$5;
140
- var getMethod = getMethod$2;
141
-
142
- var iteratorClose$1 = function (iterator, kind, value) {
143
- var innerResult, innerError;
144
- anObject$3(iterator);
145
- try {
146
- innerResult = getMethod(iterator, 'return');
147
- if (!innerResult) {
148
- if (kind === 'throw') throw value;
149
- return value;
150
- }
151
- innerResult = call$3(innerResult, iterator);
152
- } catch (error) {
153
- innerError = true;
154
- innerResult = error;
155
- }
156
- if (kind === 'throw') throw value;
157
- if (innerError) throw innerResult;
158
- anObject$3(innerResult);
159
- return value;
160
- };
161
-
162
- var global$9 = global$e;
163
- var bind$3 = functionBindContext;
164
- var call$2 = functionCall;
165
- var anObject$2 = anObject$5;
166
- var tryToString$1 = tryToString$3;
167
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
168
- var lengthOfArrayLike = lengthOfArrayLike$1;
169
- var isPrototypeOf = objectIsPrototypeOf;
170
- var getIterator = getIterator$1;
171
- var getIteratorMethod = getIteratorMethod$2;
172
- var iteratorClose = iteratorClose$1;
173
-
174
- var TypeError$4 = global$9.TypeError;
175
-
176
- var Result = function (stopped, result) {
177
- this.stopped = stopped;
178
- this.result = result;
179
- };
180
-
181
- var ResultPrototype = Result.prototype;
182
-
183
- var iterate$1 = function (iterable, unboundFunction, options) {
184
- var that = options && options.that;
185
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
186
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
187
- var INTERRUPTED = !!(options && options.INTERRUPTED);
188
- var fn = bind$3(unboundFunction, that);
189
- var iterator, iterFn, index, length, result, next, step;
190
-
191
- var stop = function (condition) {
192
- if (iterator) iteratorClose(iterator, 'normal', condition);
193
- return new Result(true, condition);
194
- };
195
-
196
- var callFn = function (value) {
197
- if (AS_ENTRIES) {
198
- anObject$2(value);
199
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
200
- } return INTERRUPTED ? fn(value, stop) : fn(value);
201
- };
202
-
203
- if (IS_ITERATOR) {
204
- iterator = iterable;
205
- } else {
206
- iterFn = getIteratorMethod(iterable);
207
- if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
208
- // optimisation for array iterators
209
- if (isArrayIteratorMethod(iterFn)) {
210
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
211
- result = callFn(iterable[index]);
212
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
213
- } return new Result(false);
214
- }
215
- iterator = getIterator(iterable, iterFn);
216
- }
217
-
218
- next = iterator.next;
219
- while (!(step = call$2(next, iterator)).done) {
220
- try {
221
- result = callFn(step.value);
222
- } catch (error) {
223
- iteratorClose(iterator, 'throw', error);
224
- }
225
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
226
- } return new Result(false);
227
- };
228
-
229
- var wellKnownSymbol$2 = wellKnownSymbol$8;
230
-
231
- var ITERATOR = wellKnownSymbol$2('iterator');
232
- var SAFE_CLOSING = false;
233
-
234
- try {
235
- var called = 0;
236
- var iteratorWithReturn = {
237
- next: function () {
238
- return { done: !!called++ };
239
- },
240
- 'return': function () {
241
- SAFE_CLOSING = true;
242
- }
243
- };
244
- iteratorWithReturn[ITERATOR] = function () {
245
- return this;
246
- };
247
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
248
- Array.from(iteratorWithReturn, function () { throw 2; });
249
- } catch (error) { /* empty */ }
250
-
251
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
252
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
253
- var ITERATION_SUPPORT = false;
254
- try {
255
- var object = {};
256
- object[ITERATOR] = function () {
257
- return {
258
- next: function () {
259
- return { done: ITERATION_SUPPORT = true };
260
- }
261
- };
262
- };
263
- exec(object);
264
- } catch (error) { /* empty */ }
265
- return ITERATION_SUPPORT;
266
- };
267
-
268
- var uncurryThis$2 = functionUncurryThis;
77
+ var uncurryThis$3 = functionUncurryThis;
269
78
  var fails$3 = fails$4;
270
- var isCallable$3 = isCallable$5;
271
- var classof$2 = classof$4;
272
- var getBuiltIn$2 = getBuiltIn$4;
79
+ var isCallable$5 = isCallable$7;
80
+ var classof$2 = classof$3;
81
+ var getBuiltIn$3 = getBuiltIn$5;
273
82
  var inspectSource$1 = inspectSource$2;
274
83
 
275
84
  var noop = function () { /* empty */ };
276
85
  var empty = [];
277
- var construct = getBuiltIn$2('Reflect', 'construct');
86
+ var construct = getBuiltIn$3('Reflect', 'construct');
278
87
  var constructorRegExp = /^\s*(?:class|function)\b/;
279
- var exec = uncurryThis$2(constructorRegExp.exec);
88
+ var exec = uncurryThis$3(constructorRegExp.exec);
280
89
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
281
90
 
282
91
  var isConstructorModern = function isConstructor(argument) {
283
- if (!isCallable$3(argument)) return false;
92
+ if (!isCallable$5(argument)) return false;
284
93
  try {
285
94
  construct(noop, empty, argument);
286
95
  return true;
@@ -290,7 +99,7 @@ var isConstructorModern = function isConstructor(argument) {
290
99
  };
291
100
 
292
101
  var isConstructorLegacy = function isConstructor(argument) {
293
- if (!isCallable$3(argument)) return false;
102
+ if (!isCallable$5(argument)) return false;
294
103
  switch (classof$2(argument)) {
295
104
  case 'AsyncFunction':
296
105
  case 'GeneratorFunction':
@@ -318,53 +127,64 @@ var isConstructor$1 = !construct || fails$3(function () {
318
127
  || called;
319
128
  }) ? isConstructorLegacy : isConstructorModern;
320
129
 
321
- var global$8 = global$e;
322
130
  var isConstructor = isConstructor$1;
323
- var tryToString = tryToString$3;
131
+ var tryToString$2 = tryToString$3;
324
132
 
325
- var TypeError$3 = global$8.TypeError;
133
+ var $TypeError$3 = TypeError;
326
134
 
327
135
  // `Assert: IsConstructor(argument) is true`
328
136
  var aConstructor$1 = function (argument) {
329
137
  if (isConstructor(argument)) return argument;
330
- throw TypeError$3(tryToString(argument) + ' is not a constructor');
138
+ throw $TypeError$3(tryToString$2(argument) + ' is not a constructor');
331
139
  };
332
140
 
333
- var anObject$1 = anObject$5;
141
+ var anObject$4 = anObject$5;
334
142
  var aConstructor = aConstructor$1;
335
- var wellKnownSymbol$1 = wellKnownSymbol$8;
143
+ var wellKnownSymbol$4 = wellKnownSymbol$8;
336
144
 
337
- var SPECIES$1 = wellKnownSymbol$1('species');
145
+ var SPECIES$1 = wellKnownSymbol$4('species');
338
146
 
339
147
  // `SpeciesConstructor` abstract operation
340
148
  // https://tc39.es/ecma262/#sec-speciesconstructor
341
149
  var speciesConstructor$2 = function (O, defaultConstructor) {
342
- var C = anObject$1(O).constructor;
150
+ var C = anObject$4(O).constructor;
343
151
  var S;
344
- return C === undefined || (S = anObject$1(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
152
+ return C === undefined || (S = anObject$4(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
345
153
  };
346
154
 
347
- var NATIVE_BIND = functionBindNative;
155
+ var NATIVE_BIND$1 = functionBindNative;
348
156
 
349
157
  var FunctionPrototype = Function.prototype;
350
158
  var apply$1 = FunctionPrototype.apply;
351
- var call$1 = FunctionPrototype.call;
159
+ var call$7 = FunctionPrototype.call;
352
160
 
353
- // eslint-disable-next-line es/no-reflect -- safe
354
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
355
- return call$1.apply(apply$1, arguments);
161
+ // eslint-disable-next-line es-x/no-reflect -- safe
162
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
163
+ return call$7.apply(apply$1, arguments);
356
164
  });
357
165
 
166
+ var uncurryThis$2 = functionUncurryThis;
167
+ var aCallable$5 = aCallable$6;
168
+ var NATIVE_BIND = functionBindNative;
169
+
170
+ var bind$4 = uncurryThis$2(uncurryThis$2.bind);
171
+
172
+ // optional / simple context binding
173
+ var functionBindContext = function (fn, that) {
174
+ aCallable$5(fn);
175
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
176
+ return fn.apply(that, arguments);
177
+ };
178
+ };
179
+
358
180
  var uncurryThis$1 = functionUncurryThis;
359
181
 
360
182
  var arraySlice$1 = uncurryThis$1([].slice);
361
183
 
362
- var global$7 = global$e;
363
-
364
- var TypeError$2 = global$7.TypeError;
184
+ var $TypeError$2 = TypeError;
365
185
 
366
186
  var validateArgumentsLength$1 = function (passed, required) {
367
- if (passed < required) throw TypeError$2('Not enough arguments');
187
+ if (passed < required) throw $TypeError$2('Not enough arguments');
368
188
  return passed;
369
189
  };
370
190
 
@@ -372,15 +192,10 @@ var userAgent$2 = engineUserAgent;
372
192
 
373
193
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
374
194
 
375
- var classof$1 = classofRaw$1;
376
- var global$6 = global$e;
377
-
378
- var engineIsNode = classof$1(global$6.process) == 'process';
379
-
380
- var global$5 = global$e;
195
+ var global$6 = global$8;
381
196
  var apply = functionApply;
382
- var bind$2 = functionBindContext;
383
- var isCallable$2 = isCallable$5;
197
+ var bind$3 = functionBindContext;
198
+ var isCallable$4 = isCallable$7;
384
199
  var hasOwn = hasOwnProperty_1;
385
200
  var fails$2 = fails$4;
386
201
  var html = html$1;
@@ -390,13 +205,13 @@ var validateArgumentsLength = validateArgumentsLength$1;
390
205
  var IS_IOS$1 = engineIsIos;
391
206
  var IS_NODE$2 = engineIsNode;
392
207
 
393
- var set = global$5.setImmediate;
394
- var clear = global$5.clearImmediate;
395
- var process$2 = global$5.process;
396
- var Dispatch = global$5.Dispatch;
397
- var Function$1 = global$5.Function;
398
- var MessageChannel = global$5.MessageChannel;
399
- var String$2 = global$5.String;
208
+ var set = global$6.setImmediate;
209
+ var clear = global$6.clearImmediate;
210
+ var process$2 = global$6.process;
211
+ var Dispatch = global$6.Dispatch;
212
+ var Function$1 = global$6.Function;
213
+ var MessageChannel = global$6.MessageChannel;
214
+ var String$1 = global$6.String;
400
215
  var counter = 0;
401
216
  var queue$1 = {};
402
217
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -404,7 +219,7 @@ var location, defer, channel, port;
404
219
 
405
220
  try {
406
221
  // Deno throws a ReferenceError on `location` access without `--location` flag
407
- location = global$5.location;
222
+ location = global$6.location;
408
223
  } catch (error) { /* empty */ }
409
224
 
410
225
  var run = function (id) {
@@ -427,14 +242,14 @@ var listener = function (event) {
427
242
 
428
243
  var post = function (id) {
429
244
  // old engines have not location.origin
430
- global$5.postMessage(String$2(id), location.protocol + '//' + location.host);
245
+ global$6.postMessage(String$1(id), location.protocol + '//' + location.host);
431
246
  };
432
247
 
433
248
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
434
249
  if (!set || !clear) {
435
250
  set = function setImmediate(handler) {
436
251
  validateArgumentsLength(arguments.length, 1);
437
- var fn = isCallable$2(handler) ? handler : Function$1(handler);
252
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
438
253
  var args = arraySlice(arguments, 1);
439
254
  queue$1[++counter] = function () {
440
255
  apply(fn, undefined, args);
@@ -461,18 +276,18 @@ if (!set || !clear) {
461
276
  channel = new MessageChannel();
462
277
  port = channel.port2;
463
278
  channel.port1.onmessage = listener;
464
- defer = bind$2(port.postMessage, port);
279
+ defer = bind$3(port.postMessage, port);
465
280
  // Browsers with postMessage, skip WebWorkers
466
281
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
467
282
  } else if (
468
- global$5.addEventListener &&
469
- isCallable$2(global$5.postMessage) &&
470
- !global$5.importScripts &&
283
+ global$6.addEventListener &&
284
+ isCallable$4(global$6.postMessage) &&
285
+ !global$6.importScripts &&
471
286
  location && location.protocol !== 'file:' &&
472
287
  !fails$2(post)
473
288
  ) {
474
289
  defer = post;
475
- global$5.addEventListener('message', listener, false);
290
+ global$6.addEventListener('message', listener, false);
476
291
  // IE8-
477
292
  } else if (ONREADYSTATECHANGE in createElement('script')) {
478
293
  defer = function (id) {
@@ -495,16 +310,16 @@ var task$1 = {
495
310
  };
496
311
 
497
312
  var userAgent$1 = engineUserAgent;
498
- var global$4 = global$e;
313
+ var global$5 = global$8;
499
314
 
500
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$4.Pebble !== undefined;
315
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$5.Pebble !== undefined;
501
316
 
502
317
  var userAgent = engineUserAgent;
503
318
 
504
319
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
505
320
 
506
- var global$3 = global$e;
507
- var bind$1 = functionBindContext;
321
+ var global$4 = global$8;
322
+ var bind$2 = functionBindContext;
508
323
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
509
324
  var macrotask = task$1.set;
510
325
  var IS_IOS = engineIsIos;
@@ -512,12 +327,12 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
512
327
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
513
328
  var IS_NODE$1 = engineIsNode;
514
329
 
515
- var MutationObserver = global$3.MutationObserver || global$3.WebKitMutationObserver;
516
- var document$1 = global$3.document;
517
- var process$1 = global$3.process;
518
- var Promise$1 = global$3.Promise;
330
+ var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
331
+ var document$1 = global$4.document;
332
+ var process$1 = global$4.process;
333
+ var Promise$1 = global$4.Promise;
519
334
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
520
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$3, 'queueMicrotask');
335
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$4, 'queueMicrotask');
521
336
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
522
337
 
523
338
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -556,7 +371,7 @@ if (!queueMicrotask) {
556
371
  promise = Promise$1.resolve(undefined);
557
372
  // workaround of WebKit ~ iOS Safari 10.1 bug
558
373
  promise.constructor = Promise$1;
559
- then = bind$1(promise.then, promise);
374
+ then = bind$2(promise.then, promise);
560
375
  notify$1 = function () {
561
376
  then(flush);
562
377
  };
@@ -568,12 +383,12 @@ if (!queueMicrotask) {
568
383
  // for other environments - macrotask based on:
569
384
  // - setImmediate
570
385
  // - MessageChannel
571
- // - window.postMessag
386
+ // - window.postMessage
572
387
  // - onreadystatechange
573
388
  // - setTimeout
574
389
  } else {
575
390
  // strange IE + webpack dev server bug - use .bind(global)
576
- macrotask = bind$1(macrotask, global$3);
391
+ macrotask = bind$2(macrotask, global$4);
577
392
  notify$1 = function () {
578
393
  macrotask(flush);
579
394
  };
@@ -589,50 +404,16 @@ var microtask$1 = queueMicrotask || function (fn) {
589
404
  } last = task;
590
405
  };
591
406
 
592
- var newPromiseCapability$2 = {};
593
-
594
- var aCallable$1 = aCallable$4;
595
-
596
- var PromiseCapability = function (C) {
597
- var resolve, reject;
598
- this.promise = new C(function ($$resolve, $$reject) {
599
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
600
- resolve = $$resolve;
601
- reject = $$reject;
602
- });
603
- this.resolve = aCallable$1(resolve);
604
- this.reject = aCallable$1(reject);
605
- };
606
-
607
- // `NewPromiseCapability` abstract operation
608
- // https://tc39.es/ecma262/#sec-newpromisecapability
609
- newPromiseCapability$2.f = function (C) {
610
- return new PromiseCapability(C);
611
- };
612
-
613
- var anObject = anObject$5;
614
- var isObject$1 = isObject$2;
615
- var newPromiseCapability$1 = newPromiseCapability$2;
616
-
617
- var promiseResolve$2 = function (C, x) {
618
- anObject(C);
619
- if (isObject$1(x) && x.constructor === C) return x;
620
- var promiseCapability = newPromiseCapability$1.f(C);
621
- var resolve = promiseCapability.resolve;
622
- resolve(x);
623
- return promiseCapability.promise;
624
- };
625
-
626
- var global$2 = global$e;
407
+ var global$3 = global$8;
627
408
 
628
409
  var hostReportErrors$1 = function (a, b) {
629
- var console = global$2.console;
410
+ var console = global$3.console;
630
411
  if (console && console.error) {
631
412
  arguments.length == 1 ? console.error(a) : console.error(a, b);
632
413
  }
633
414
  };
634
415
 
635
- var perform$1 = function (exec) {
416
+ var perform$3 = function (exec) {
636
417
  try {
637
418
  return { error: false, value: exec() };
638
419
  } catch (error) {
@@ -664,71 +445,29 @@ Queue$1.prototype = {
664
445
 
665
446
  var queue = Queue$1;
666
447
 
667
- var engineIsBrowser = typeof window == 'object';
448
+ var global$2 = global$8;
668
449
 
669
- var $$2 = _export;
670
- var global$1 = global$e;
671
- var getBuiltIn$1 = getBuiltIn$4;
672
- var call = functionCall;
673
- var NativePromise$1 = nativePromiseConstructor;
674
- var redefine$1 = redefine$3.exports;
675
- var redefineAll = redefineAll$1;
676
- var setPrototypeOf = objectSetPrototypeOf;
677
- var setToStringTag = setToStringTag$1;
678
- var setSpecies = setSpecies$1;
679
- var aCallable = aCallable$4;
680
- var isCallable$1 = isCallable$5;
681
- var isObject = isObject$2;
682
- var anInstance = anInstance$1;
683
- var inspectSource = inspectSource$2;
684
- var iterate = iterate$1;
685
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
686
- var speciesConstructor$1 = speciesConstructor$2;
687
- var task = task$1.set;
688
- var microtask = microtask$1;
689
- var promiseResolve$1 = promiseResolve$2;
690
- var hostReportErrors = hostReportErrors$1;
691
- var newPromiseCapabilityModule = newPromiseCapability$2;
692
- var perform = perform$1;
693
- var Queue = queue;
694
- var InternalStateModule = internalState;
450
+ var promiseNativeConstructor = global$2.Promise;
451
+
452
+ var engineIsBrowser = typeof window == 'object' && typeof Deno != 'object';
453
+
454
+ var global$1 = global$8;
455
+ var NativePromiseConstructor$4 = promiseNativeConstructor;
456
+ var isCallable$3 = isCallable$7;
695
457
  var isForced = isForced_1;
696
- var wellKnownSymbol = wellKnownSymbol$8;
458
+ var inspectSource = inspectSource$2;
459
+ var wellKnownSymbol$3 = wellKnownSymbol$8;
697
460
  var IS_BROWSER = engineIsBrowser;
698
- var IS_NODE = engineIsNode;
699
461
  var V8_VERSION = engineV8Version;
700
462
 
701
- var SPECIES = wellKnownSymbol('species');
702
- var PROMISE = 'Promise';
703
-
704
- var getInternalState = InternalStateModule.getterFor(PROMISE);
705
- var setInternalState = InternalStateModule.set;
706
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
707
- var NativePromisePrototype = NativePromise$1 && NativePromise$1.prototype;
708
- var PromiseConstructor = NativePromise$1;
709
- var PromisePrototype = NativePromisePrototype;
710
- var TypeError$1 = global$1.TypeError;
711
- var document = global$1.document;
712
- var process = global$1.process;
713
- var newPromiseCapability = newPromiseCapabilityModule.f;
714
- var newGenericPromiseCapability = newPromiseCapability;
715
-
716
- var DISPATCH_EVENT = !!(document && document.createEvent && global$1.dispatchEvent);
717
- var NATIVE_REJECTION_EVENT = isCallable$1(global$1.PromiseRejectionEvent);
718
- var UNHANDLED_REJECTION = 'unhandledrejection';
719
- var REJECTION_HANDLED = 'rejectionhandled';
720
- var PENDING = 0;
721
- var FULFILLED = 1;
722
- var REJECTED = 2;
723
- var HANDLED = 1;
724
- var UNHANDLED = 2;
463
+ NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
464
+ var SPECIES = wellKnownSymbol$3('species');
725
465
  var SUBCLASSING = false;
466
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$1.PromiseRejectionEvent);
726
467
 
727
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
728
-
729
- var FORCED = isForced(PROMISE, function () {
730
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
731
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
468
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
469
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$4);
470
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$4);
732
471
  // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
733
472
  // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
734
473
  // We can't detect it synchronously, so just check versions
@@ -738,7 +477,7 @@ var FORCED = isForced(PROMISE, function () {
738
477
  // https://github.com/zloirock/core-js/issues/679
739
478
  if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
740
479
  // Detect correctness of subclassing with @@species support
741
- var promise = new PromiseConstructor(function (resolve) { resolve(1); });
480
+ var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
742
481
  var FakePromise = function (exec) {
743
482
  exec(function () { /* empty */ }, function () { /* empty */ });
744
483
  };
@@ -747,17 +486,89 @@ var FORCED = isForced(PROMISE, function () {
747
486
  SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
748
487
  if (!SUBCLASSING) return true;
749
488
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
750
- return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
489
+ return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
751
490
  });
752
491
 
753
- var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
754
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
755
- });
492
+ var promiseConstructorDetection = {
493
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
494
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
495
+ SUBCLASSING: SUBCLASSING
496
+ };
497
+
498
+ var newPromiseCapability$2 = {};
499
+
500
+ var aCallable$4 = aCallable$6;
501
+
502
+ var PromiseCapability = function (C) {
503
+ var resolve, reject;
504
+ this.promise = new C(function ($$resolve, $$reject) {
505
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
506
+ resolve = $$resolve;
507
+ reject = $$reject;
508
+ });
509
+ this.resolve = aCallable$4(resolve);
510
+ this.reject = aCallable$4(reject);
511
+ };
512
+
513
+ // `NewPromiseCapability` abstract operation
514
+ // https://tc39.es/ecma262/#sec-newpromisecapability
515
+ newPromiseCapability$2.f = function (C) {
516
+ return new PromiseCapability(C);
517
+ };
518
+
519
+ var $$7 = _export;
520
+ var IS_NODE = engineIsNode;
521
+ var global = global$8;
522
+ var call$6 = functionCall;
523
+ var defineBuiltIn$2 = defineBuiltIn$3;
524
+ var setPrototypeOf = objectSetPrototypeOf;
525
+ var setToStringTag = setToStringTag$1;
526
+ var setSpecies = setSpecies$1;
527
+ var aCallable$3 = aCallable$6;
528
+ var isCallable$2 = isCallable$7;
529
+ var isObject$1 = isObject$2;
530
+ var anInstance = anInstance$1;
531
+ var speciesConstructor$1 = speciesConstructor$2;
532
+ var task = task$1.set;
533
+ var microtask = microtask$1;
534
+ var hostReportErrors = hostReportErrors$1;
535
+ var perform$2 = perform$3;
536
+ var Queue = queue;
537
+ var InternalStateModule = internalState;
538
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
539
+ var PromiseConstructorDetection = promiseConstructorDetection;
540
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
541
+
542
+ var PROMISE = 'Promise';
543
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
544
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
545
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
546
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
547
+ var setInternalState = InternalStateModule.set;
548
+ var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
549
+ var PromiseConstructor = NativePromiseConstructor$3;
550
+ var PromisePrototype = NativePromisePrototype$2;
551
+ var TypeError$1 = global.TypeError;
552
+ var document = global.document;
553
+ var process = global.process;
554
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
555
+ var newGenericPromiseCapability = newPromiseCapability$1;
556
+
557
+ var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
558
+ var UNHANDLED_REJECTION = 'unhandledrejection';
559
+ var REJECTION_HANDLED = 'rejectionhandled';
560
+ var PENDING = 0;
561
+ var FULFILLED = 1;
562
+ var REJECTED = 2;
563
+ var HANDLED = 1;
564
+ var UNHANDLED = 2;
565
+
566
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
756
567
 
757
568
  // helpers
758
569
  var isThenable = function (it) {
759
570
  var then;
760
- return isObject(it) && isCallable$1(then = it.then) ? then : false;
571
+ return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
761
572
  };
762
573
 
763
574
  var callReaction = function (reaction, state) {
@@ -786,7 +597,7 @@ var callReaction = function (reaction, state) {
786
597
  if (result === reaction.promise) {
787
598
  reject(TypeError$1('Promise-chain cycle'));
788
599
  } else if (then = isThenable(result)) {
789
- call(then, result, resolve, reject);
600
+ call$6(then, result, resolve, reject);
790
601
  } else resolve(result);
791
602
  } else reject(value);
792
603
  } catch (error) {
@@ -816,20 +627,20 @@ var dispatchEvent = function (name, promise, reason) {
816
627
  event.promise = promise;
817
628
  event.reason = reason;
818
629
  event.initEvent(name, false, true);
819
- global$1.dispatchEvent(event);
630
+ global.dispatchEvent(event);
820
631
  } else event = { promise: promise, reason: reason };
821
- if (!NATIVE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
632
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
822
633
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
823
634
  };
824
635
 
825
636
  var onUnhandled = function (state) {
826
- call(task, global$1, function () {
637
+ call$6(task, global, function () {
827
638
  var promise = state.facade;
828
639
  var value = state.value;
829
640
  var IS_UNHANDLED = isUnhandled(state);
830
641
  var result;
831
642
  if (IS_UNHANDLED) {
832
- result = perform(function () {
643
+ result = perform$2(function () {
833
644
  if (IS_NODE) {
834
645
  process.emit('unhandledRejection', value, promise);
835
646
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
@@ -846,7 +657,7 @@ var isUnhandled = function (state) {
846
657
  };
847
658
 
848
659
  var onHandleUnhandled = function (state) {
849
- call(task, global$1, function () {
660
+ call$6(task, global, function () {
850
661
  var promise = state.facade;
851
662
  if (IS_NODE) {
852
663
  process.emit('rejectionHandled', promise);
@@ -854,7 +665,7 @@ var onHandleUnhandled = function (state) {
854
665
  });
855
666
  };
856
667
 
857
- var bind = function (fn, state, unwrap) {
668
+ var bind$1 = function (fn, state, unwrap) {
858
669
  return function (value) {
859
670
  fn(state, value, unwrap);
860
671
  };
@@ -880,9 +691,9 @@ var internalResolve = function (state, value, unwrap) {
880
691
  microtask(function () {
881
692
  var wrapper = { done: false };
882
693
  try {
883
- call(then, value,
884
- bind(internalResolve, wrapper, state),
885
- bind(internalReject, wrapper, state)
694
+ call$6(then, value,
695
+ bind$1(internalResolve, wrapper, state),
696
+ bind$1(internalReject, wrapper, state)
886
697
  );
887
698
  } catch (error) {
888
699
  internalReject(wrapper, error, state);
@@ -899,20 +710,22 @@ var internalResolve = function (state, value, unwrap) {
899
710
  };
900
711
 
901
712
  // constructor polyfill
902
- if (FORCED) {
713
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
903
714
  // 25.4.3.1 Promise(executor)
904
715
  PromiseConstructor = function Promise(executor) {
905
716
  anInstance(this, PromisePrototype);
906
- aCallable(executor);
907
- call(Internal, this);
908
- var state = getInternalState(this);
717
+ aCallable$3(executor);
718
+ call$6(Internal, this);
719
+ var state = getInternalPromiseState(this);
909
720
  try {
910
- executor(bind(internalResolve, state), bind(internalReject, state));
721
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
911
722
  } catch (error) {
912
723
  internalReject(state, error);
913
724
  }
914
725
  };
726
+
915
727
  PromisePrototype = PromiseConstructor.prototype;
728
+
916
729
  // eslint-disable-next-line no-unused-vars -- required for `.length`
917
730
  Internal = function Promise(executor) {
918
731
  setInternalState(this, {
@@ -926,117 +739,271 @@ if (FORCED) {
926
739
  value: undefined
927
740
  });
928
741
  };
929
- Internal.prototype = redefineAll(PromisePrototype, {
930
- // `Promise.prototype.then` method
931
- // https://tc39.es/ecma262/#sec-promise.prototype.then
932
- // eslint-disable-next-line unicorn/no-thenable -- safe
933
- then: function then(onFulfilled, onRejected) {
934
- var state = getInternalPromiseState(this);
935
- var reaction = newPromiseCapability(speciesConstructor$1(this, PromiseConstructor));
936
- state.parent = true;
937
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
938
- reaction.fail = isCallable$1(onRejected) && onRejected;
939
- reaction.domain = IS_NODE ? process.domain : undefined;
940
- if (state.state == PENDING) state.reactions.add(reaction);
941
- else microtask(function () {
942
- callReaction(reaction, state);
943
- });
944
- return reaction.promise;
945
- },
946
- // `Promise.prototype.catch` method
947
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
948
- 'catch': function (onRejected) {
949
- return this.then(undefined, onRejected);
950
- }
742
+
743
+ // `Promise.prototype.then` method
744
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
745
+ Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
746
+ var state = getInternalPromiseState(this);
747
+ var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
748
+ state.parent = true;
749
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
750
+ reaction.fail = isCallable$2(onRejected) && onRejected;
751
+ reaction.domain = IS_NODE ? process.domain : undefined;
752
+ if (state.state == PENDING) state.reactions.add(reaction);
753
+ else microtask(function () {
754
+ callReaction(reaction, state);
755
+ });
756
+ return reaction.promise;
951
757
  });
758
+
952
759
  OwnPromiseCapability = function () {
953
760
  var promise = new Internal();
954
- var state = getInternalState(promise);
761
+ var state = getInternalPromiseState(promise);
955
762
  this.promise = promise;
956
- this.resolve = bind(internalResolve, state);
957
- this.reject = bind(internalReject, state);
763
+ this.resolve = bind$1(internalResolve, state);
764
+ this.reject = bind$1(internalReject, state);
958
765
  };
959
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
766
+
767
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
960
768
  return C === PromiseConstructor || C === PromiseWrapper
961
769
  ? new OwnPromiseCapability(C)
962
770
  : newGenericPromiseCapability(C);
963
771
  };
964
772
 
965
- if (isCallable$1(NativePromise$1) && NativePromisePrototype !== Object.prototype) {
966
- nativeThen = NativePromisePrototype.then;
773
+ if (isCallable$2(NativePromiseConstructor$3) && NativePromisePrototype$2 !== Object.prototype) {
774
+ nativeThen = NativePromisePrototype$2.then;
967
775
 
968
- if (!SUBCLASSING) {
776
+ if (!NATIVE_PROMISE_SUBCLASSING) {
969
777
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
970
- redefine$1(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
778
+ defineBuiltIn$2(NativePromisePrototype$2, 'then', function then(onFulfilled, onRejected) {
971
779
  var that = this;
972
780
  return new PromiseConstructor(function (resolve, reject) {
973
- call(nativeThen, that, resolve, reject);
781
+ call$6(nativeThen, that, resolve, reject);
974
782
  }).then(onFulfilled, onRejected);
975
783
  // https://github.com/zloirock/core-js/issues/640
976
784
  }, { unsafe: true });
977
-
978
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
979
- redefine$1(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
980
785
  }
981
786
 
982
787
  // make `.constructor === Promise` work for native promise-based APIs
983
788
  try {
984
- delete NativePromisePrototype.constructor;
789
+ delete NativePromisePrototype$2.constructor;
985
790
  } catch (error) { /* empty */ }
986
791
 
987
792
  // make `instanceof Promise` work for native promise-based APIs
988
793
  if (setPrototypeOf) {
989
- setPrototypeOf(NativePromisePrototype, PromisePrototype);
794
+ setPrototypeOf(NativePromisePrototype$2, PromisePrototype);
990
795
  }
991
796
  }
992
797
  }
993
798
 
994
- $$2({ global: true, wrap: true, forced: FORCED }, {
799
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
995
800
  Promise: PromiseConstructor
996
801
  });
997
802
 
998
803
  setToStringTag(PromiseConstructor, PROMISE, false);
999
804
  setSpecies(PROMISE);
1000
805
 
1001
- PromiseWrapper = getBuiltIn$1(PROMISE);
806
+ var wellKnownSymbol$2 = wellKnownSymbol$8;
807
+ var Iterators$1 = iterators;
1002
808
 
1003
- // statics
1004
- $$2({ target: PROMISE, stat: true, forced: FORCED }, {
1005
- // `Promise.reject` method
1006
- // https://tc39.es/ecma262/#sec-promise.reject
1007
- reject: function reject(r) {
1008
- var capability = newPromiseCapability(this);
1009
- call(capability.reject, undefined, r);
1010
- return capability.promise;
809
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
810
+ var ArrayPrototype = Array.prototype;
811
+
812
+ // check on default Array iterator
813
+ var isArrayIteratorMethod$1 = function (it) {
814
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
815
+ };
816
+
817
+ var classof$1 = classof$3;
818
+ var getMethod$1 = getMethod$2;
819
+ var Iterators = iterators;
820
+ var wellKnownSymbol$1 = wellKnownSymbol$8;
821
+
822
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
823
+
824
+ var getIteratorMethod$2 = function (it) {
825
+ if (it != undefined) return getMethod$1(it, ITERATOR$1)
826
+ || getMethod$1(it, '@@iterator')
827
+ || Iterators[classof$1(it)];
828
+ };
829
+
830
+ var call$5 = functionCall;
831
+ var aCallable$2 = aCallable$6;
832
+ var anObject$3 = anObject$5;
833
+ var tryToString$1 = tryToString$3;
834
+ var getIteratorMethod$1 = getIteratorMethod$2;
835
+
836
+ var $TypeError$1 = TypeError;
837
+
838
+ var getIterator$1 = function (argument, usingIterator) {
839
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
840
+ if (aCallable$2(iteratorMethod)) return anObject$3(call$5(iteratorMethod, argument));
841
+ throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
842
+ };
843
+
844
+ var call$4 = functionCall;
845
+ var anObject$2 = anObject$5;
846
+ var getMethod = getMethod$2;
847
+
848
+ var iteratorClose$1 = function (iterator, kind, value) {
849
+ var innerResult, innerError;
850
+ anObject$2(iterator);
851
+ try {
852
+ innerResult = getMethod(iterator, 'return');
853
+ if (!innerResult) {
854
+ if (kind === 'throw') throw value;
855
+ return value;
856
+ }
857
+ innerResult = call$4(innerResult, iterator);
858
+ } catch (error) {
859
+ innerError = true;
860
+ innerResult = error;
1011
861
  }
1012
- });
862
+ if (kind === 'throw') throw value;
863
+ if (innerError) throw innerResult;
864
+ anObject$2(innerResult);
865
+ return value;
866
+ };
1013
867
 
1014
- $$2({ target: PROMISE, stat: true, forced: FORCED }, {
1015
- // `Promise.resolve` method
1016
- // https://tc39.es/ecma262/#sec-promise.resolve
1017
- resolve: function resolve(x) {
1018
- return promiseResolve$1(this, x);
868
+ var bind = functionBindContext;
869
+ var call$3 = functionCall;
870
+ var anObject$1 = anObject$5;
871
+ var tryToString = tryToString$3;
872
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
873
+ var lengthOfArrayLike = lengthOfArrayLike$1;
874
+ var isPrototypeOf = objectIsPrototypeOf;
875
+ var getIterator = getIterator$1;
876
+ var getIteratorMethod = getIteratorMethod$2;
877
+ var iteratorClose = iteratorClose$1;
878
+
879
+ var $TypeError = TypeError;
880
+
881
+ var Result = function (stopped, result) {
882
+ this.stopped = stopped;
883
+ this.result = result;
884
+ };
885
+
886
+ var ResultPrototype = Result.prototype;
887
+
888
+ var iterate$2 = function (iterable, unboundFunction, options) {
889
+ var that = options && options.that;
890
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
891
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
892
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
893
+ var fn = bind(unboundFunction, that);
894
+ var iterator, iterFn, index, length, result, next, step;
895
+
896
+ var stop = function (condition) {
897
+ if (iterator) iteratorClose(iterator, 'normal', condition);
898
+ return new Result(true, condition);
899
+ };
900
+
901
+ var callFn = function (value) {
902
+ if (AS_ENTRIES) {
903
+ anObject$1(value);
904
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
905
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
906
+ };
907
+
908
+ if (IS_ITERATOR) {
909
+ iterator = iterable;
910
+ } else {
911
+ iterFn = getIteratorMethod(iterable);
912
+ if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
913
+ // optimisation for array iterators
914
+ if (isArrayIteratorMethod(iterFn)) {
915
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
916
+ result = callFn(iterable[index]);
917
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
918
+ } return new Result(false);
919
+ }
920
+ iterator = getIterator(iterable, iterFn);
1019
921
  }
922
+
923
+ next = iterator.next;
924
+ while (!(step = call$3(next, iterator)).done) {
925
+ try {
926
+ result = callFn(step.value);
927
+ } catch (error) {
928
+ iteratorClose(iterator, 'throw', error);
929
+ }
930
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
931
+ } return new Result(false);
932
+ };
933
+
934
+ var wellKnownSymbol = wellKnownSymbol$8;
935
+
936
+ var ITERATOR = wellKnownSymbol('iterator');
937
+ var SAFE_CLOSING = false;
938
+
939
+ try {
940
+ var called = 0;
941
+ var iteratorWithReturn = {
942
+ next: function () {
943
+ return { done: !!called++ };
944
+ },
945
+ 'return': function () {
946
+ SAFE_CLOSING = true;
947
+ }
948
+ };
949
+ iteratorWithReturn[ITERATOR] = function () {
950
+ return this;
951
+ };
952
+ // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
953
+ Array.from(iteratorWithReturn, function () { throw 2; });
954
+ } catch (error) { /* empty */ }
955
+
956
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
957
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
958
+ var ITERATION_SUPPORT = false;
959
+ try {
960
+ var object = {};
961
+ object[ITERATOR] = function () {
962
+ return {
963
+ next: function () {
964
+ return { done: ITERATION_SUPPORT = true };
965
+ }
966
+ };
967
+ };
968
+ exec(object);
969
+ } catch (error) { /* empty */ }
970
+ return ITERATION_SUPPORT;
971
+ };
972
+
973
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
974
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
975
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
976
+
977
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
978
+ NativePromiseConstructor$2.all(iterable).then(undefined, function () { /* empty */ });
1020
979
  });
1021
980
 
1022
- $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1023
- // `Promise.all` method
1024
- // https://tc39.es/ecma262/#sec-promise.all
981
+ var $$6 = _export;
982
+ var call$2 = functionCall;
983
+ var aCallable$1 = aCallable$6;
984
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
985
+ var perform$1 = perform$3;
986
+ var iterate$1 = iterate$2;
987
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
988
+
989
+ // `Promise.all` method
990
+ // https://tc39.es/ecma262/#sec-promise.all
991
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
1025
992
  all: function all(iterable) {
1026
993
  var C = this;
1027
- var capability = newPromiseCapability(C);
994
+ var capability = newPromiseCapabilityModule$2.f(C);
1028
995
  var resolve = capability.resolve;
1029
996
  var reject = capability.reject;
1030
- var result = perform(function () {
1031
- var $promiseResolve = aCallable(C.resolve);
997
+ var result = perform$1(function () {
998
+ var $promiseResolve = aCallable$1(C.resolve);
1032
999
  var values = [];
1033
1000
  var counter = 0;
1034
1001
  var remaining = 1;
1035
- iterate(iterable, function (promise) {
1002
+ iterate$1(iterable, function (promise) {
1036
1003
  var index = counter++;
1037
1004
  var alreadyCalled = false;
1038
1005
  remaining++;
1039
- call($promiseResolve, C, promise).then(function (value) {
1006
+ call$2($promiseResolve, C, promise).then(function (value) {
1040
1007
  if (alreadyCalled) return;
1041
1008
  alreadyCalled = true;
1042
1009
  values[index] = value;
@@ -1047,17 +1014,53 @@ $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1047
1014
  });
1048
1015
  if (result.error) reject(result.value);
1049
1016
  return capability.promise;
1050
- },
1051
- // `Promise.race` method
1052
- // https://tc39.es/ecma262/#sec-promise.race
1017
+ }
1018
+ });
1019
+
1020
+ var $$5 = _export;
1021
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
1022
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
1023
+ var getBuiltIn$2 = getBuiltIn$5;
1024
+ var isCallable$1 = isCallable$7;
1025
+ var defineBuiltIn$1 = defineBuiltIn$3;
1026
+
1027
+ var NativePromisePrototype$1 = NativePromiseConstructor$1 && NativePromiseConstructor$1.prototype;
1028
+
1029
+ // `Promise.prototype.catch` method
1030
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
1031
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
1032
+ 'catch': function (onRejected) {
1033
+ return this.then(undefined, onRejected);
1034
+ }
1035
+ });
1036
+
1037
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
1038
+ if (isCallable$1(NativePromiseConstructor$1)) {
1039
+ var method$1 = getBuiltIn$2('Promise').prototype['catch'];
1040
+ if (NativePromisePrototype$1['catch'] !== method$1) {
1041
+ defineBuiltIn$1(NativePromisePrototype$1, 'catch', method$1, { unsafe: true });
1042
+ }
1043
+ }
1044
+
1045
+ var $$4 = _export;
1046
+ var call$1 = functionCall;
1047
+ var aCallable = aCallable$6;
1048
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
1049
+ var perform = perform$3;
1050
+ var iterate = iterate$2;
1051
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
1052
+
1053
+ // `Promise.race` method
1054
+ // https://tc39.es/ecma262/#sec-promise.race
1055
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
1053
1056
  race: function race(iterable) {
1054
1057
  var C = this;
1055
- var capability = newPromiseCapability(C);
1058
+ var capability = newPromiseCapabilityModule$1.f(C);
1056
1059
  var reject = capability.reject;
1057
1060
  var result = perform(function () {
1058
1061
  var $promiseResolve = aCallable(C.resolve);
1059
1062
  iterate(iterable, function (promise) {
1060
- call($promiseResolve, C, promise).then(capability.resolve, reject);
1063
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
1061
1064
  });
1062
1065
  });
1063
1066
  if (result.error) reject(result.value);
@@ -1065,14 +1068,56 @@ $$2({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
1065
1068
  }
1066
1069
  });
1067
1070
 
1068
- var global = global$e;
1069
- var classof = classof$4;
1071
+ var $$3 = _export;
1072
+ var call = functionCall;
1073
+ var newPromiseCapabilityModule = newPromiseCapability$2;
1074
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
1075
+
1076
+ // `Promise.reject` method
1077
+ // https://tc39.es/ecma262/#sec-promise.reject
1078
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
1079
+ reject: function reject(r) {
1080
+ var capability = newPromiseCapabilityModule.f(this);
1081
+ call(capability.reject, undefined, r);
1082
+ return capability.promise;
1083
+ }
1084
+ });
1070
1085
 
1071
- var String$1 = global.String;
1086
+ var anObject = anObject$5;
1087
+ var isObject = isObject$2;
1088
+ var newPromiseCapability = newPromiseCapability$2;
1089
+
1090
+ var promiseResolve$2 = function (C, x) {
1091
+ anObject(C);
1092
+ if (isObject(x) && x.constructor === C) return x;
1093
+ var promiseCapability = newPromiseCapability.f(C);
1094
+ var resolve = promiseCapability.resolve;
1095
+ resolve(x);
1096
+ return promiseCapability.promise;
1097
+ };
1098
+
1099
+ var $$2 = _export;
1100
+ var getBuiltIn$1 = getBuiltIn$5;
1101
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
1102
+ var promiseResolve$1 = promiseResolve$2;
1103
+
1104
+ getBuiltIn$1('Promise');
1105
+
1106
+ // `Promise.resolve` method
1107
+ // https://tc39.es/ecma262/#sec-promise.resolve
1108
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
1109
+ resolve: function resolve(x) {
1110
+ return promiseResolve$1(this, x);
1111
+ }
1112
+ });
1113
+
1114
+ var classof = classof$3;
1115
+
1116
+ var $String = String;
1072
1117
 
1073
1118
  var toString$1 = function (argument) {
1074
1119
  if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1075
- return String$1(argument);
1120
+ return $String(argument);
1076
1121
  };
1077
1122
 
1078
1123
  // a string of all valid unicode whitespaces
@@ -1140,18 +1185,20 @@ $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1140
1185
  });
1141
1186
 
1142
1187
  var $ = _export;
1143
- var NativePromise = nativePromiseConstructor;
1188
+ var NativePromiseConstructor = promiseNativeConstructor;
1144
1189
  var fails = fails$4;
1145
- var getBuiltIn = getBuiltIn$4;
1146
- var isCallable = isCallable$5;
1190
+ var getBuiltIn = getBuiltIn$5;
1191
+ var isCallable = isCallable$7;
1147
1192
  var speciesConstructor = speciesConstructor$2;
1148
1193
  var promiseResolve = promiseResolve$2;
1149
- var redefine = redefine$3.exports;
1194
+ var defineBuiltIn = defineBuiltIn$3;
1195
+
1196
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
1150
1197
 
1151
1198
  // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
1152
- var NON_GENERIC = !!NativePromise && fails(function () {
1199
+ var NON_GENERIC = !!NativePromiseConstructor && fails(function () {
1153
1200
  // eslint-disable-next-line unicorn/no-thenable -- required for testing
1154
- NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1201
+ NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1155
1202
  });
1156
1203
 
1157
1204
  // `Promise.prototype.finally` method
@@ -1172,10 +1219,10 @@ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
1172
1219
  });
1173
1220
 
1174
1221
  // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
1175
- if (isCallable(NativePromise)) {
1222
+ if (isCallable(NativePromiseConstructor)) {
1176
1223
  var method = getBuiltIn('Promise').prototype['finally'];
1177
- if (NativePromise.prototype['finally'] !== method) {
1178
- redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
1224
+ if (NativePromisePrototype['finally'] !== method) {
1225
+ defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
1179
1226
  }
1180
1227
  }
1181
1228