@dynamic-labs/react-native-extension 2.1.0-alpha.2 → 2.1.0-alpha.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/index.js CHANGED
@@ -1,9 +1,12 @@
1
- import { useEffect, useRef } from 'react';
1
+ import { useEffect, useRef, useState } from 'react';
2
2
  import { WebView as WebView$1 } from 'react-native-webview';
3
- import { parseMessageTransportData } from '@dynamic-labs/message-transport';
3
+ import { parseMessageTransportData, createRequestChannel } from '@dynamic-labs/message-transport';
4
4
  import { Logger } from '@dynamic-labs/logger';
5
5
  import { StyleSheet } from 'react-native';
6
6
  import { jsx } from 'react/jsx-runtime';
7
+ import { createPasskey, PasskeyStamper } from '@turnkey/react-native-passkey-stamper';
8
+
9
+ var version$1 = "2.1.0-alpha.20";
7
10
 
8
11
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
12
 
@@ -12,7 +15,7 @@ var check = function (it) {
12
15
  };
13
16
 
14
17
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
15
- var global$a =
18
+ var global$j =
16
19
  // eslint-disable-next-line es/no-global-this -- safe
17
20
  check(typeof globalThis == 'object' && globalThis) ||
18
21
  check(typeof window == 'object' && window) ||
@@ -24,7 +27,7 @@ var global$a =
24
27
 
25
28
  var objectGetOwnPropertyDescriptor = {};
26
29
 
27
- var fails$9 = function (exec) {
30
+ var fails$d = function (exec) {
28
31
  try {
29
32
  return !!exec();
30
33
  } catch (error) {
@@ -32,48 +35,48 @@ var fails$9 = function (exec) {
32
35
  }
33
36
  };
34
37
 
35
- var fails$8 = fails$9;
38
+ var fails$c = fails$d;
36
39
 
37
40
  // Detect IE8's incomplete defineProperty implementation
38
- var descriptors = !fails$8(function () {
41
+ var descriptors = !fails$c(function () {
39
42
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
40
43
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
41
44
  });
42
45
 
43
- var fails$7 = fails$9;
46
+ var fails$b = fails$d;
44
47
 
45
- var functionBindNative = !fails$7(function () {
48
+ var functionBindNative = !fails$b(function () {
46
49
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
47
50
  var test = (function () { /* empty */ }).bind();
48
51
  // eslint-disable-next-line no-prototype-builtins -- safe
49
52
  return typeof test != 'function' || test.hasOwnProperty('prototype');
50
53
  });
51
54
 
52
- var NATIVE_BIND$1 = functionBindNative;
55
+ var NATIVE_BIND$3 = functionBindNative;
53
56
 
54
- var call$5 = Function.prototype.call;
57
+ var call$e = Function.prototype.call;
55
58
 
56
- var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
57
- return call$5.apply(call$5, arguments);
59
+ var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () {
60
+ return call$e.apply(call$e, arguments);
58
61
  };
59
62
 
60
63
  var objectPropertyIsEnumerable = {};
61
64
 
62
65
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
63
66
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
64
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
67
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
65
68
 
66
69
  // Nashorn ~ JDK8 bug
67
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
70
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
68
71
 
69
72
  // `Object.prototype.propertyIsEnumerable` method implementation
70
73
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
71
74
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
72
- var descriptor = getOwnPropertyDescriptor$1(this, V);
75
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
73
76
  return !!descriptor && descriptor.enumerable;
74
77
  } : $propertyIsEnumerable;
75
78
 
76
- var createPropertyDescriptor$2 = function (bitmap, value) {
79
+ var createPropertyDescriptor$4 = function (bitmap, value) {
77
80
  return {
78
81
  enumerable: !(bitmap & 1),
79
82
  configurable: !(bitmap & 2),
@@ -82,57 +85,57 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
82
85
  };
83
86
  };
84
87
 
85
- var NATIVE_BIND = functionBindNative;
88
+ var NATIVE_BIND$2 = functionBindNative;
86
89
 
87
- var FunctionPrototype$1 = Function.prototype;
88
- var call$4 = FunctionPrototype$1.call;
89
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
90
+ var FunctionPrototype$2 = Function.prototype;
91
+ var call$d = FunctionPrototype$2.call;
92
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$d, call$d);
90
93
 
91
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
94
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
92
95
  return function () {
93
- return call$4.apply(fn, arguments);
96
+ return call$d.apply(fn, arguments);
94
97
  };
95
98
  };
96
99
 
97
- var uncurryThis$8 = functionUncurryThis;
100
+ var uncurryThis$d = functionUncurryThis;
98
101
 
99
- var toString$1 = uncurryThis$8({}.toString);
100
- var stringSlice = uncurryThis$8(''.slice);
102
+ var toString$1 = uncurryThis$d({}.toString);
103
+ var stringSlice = uncurryThis$d(''.slice);
101
104
 
102
- var classofRaw = function (it) {
105
+ var classofRaw$2 = function (it) {
103
106
  return stringSlice(toString$1(it), 8, -1);
104
107
  };
105
108
 
106
- var uncurryThis$7 = functionUncurryThis;
107
- var fails$6 = fails$9;
108
- var classof = classofRaw;
109
+ var uncurryThis$c = functionUncurryThis;
110
+ var fails$a = fails$d;
111
+ var classof$4 = classofRaw$2;
109
112
 
110
- var $Object$2 = Object;
111
- var split = uncurryThis$7(''.split);
113
+ var $Object$4 = Object;
114
+ var split = uncurryThis$c(''.split);
112
115
 
113
116
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
114
- var indexedObject = fails$6(function () {
117
+ var indexedObject = fails$a(function () {
115
118
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
116
119
  // eslint-disable-next-line no-prototype-builtins -- safe
117
- return !$Object$2('z').propertyIsEnumerable(0);
120
+ return !$Object$4('z').propertyIsEnumerable(0);
118
121
  }) ? function (it) {
119
- return classof(it) == 'String' ? split(it, '') : $Object$2(it);
120
- } : $Object$2;
122
+ return classof$4(it) == 'String' ? split(it, '') : $Object$4(it);
123
+ } : $Object$4;
121
124
 
122
125
  // we can't use just `it == null` since of `document.all` special case
123
126
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
124
- var isNullOrUndefined$2 = function (it) {
127
+ var isNullOrUndefined$4 = function (it) {
125
128
  return it === null || it === undefined;
126
129
  };
127
130
 
128
- var isNullOrUndefined$1 = isNullOrUndefined$2;
131
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
129
132
 
130
- var $TypeError$5 = TypeError;
133
+ var $TypeError$c = TypeError;
131
134
 
132
135
  // `RequireObjectCoercible` abstract operation
133
136
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
134
137
  var requireObjectCoercible$2 = function (it) {
135
- if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
138
+ if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
136
139
  return it;
137
140
  };
138
141
 
@@ -140,7 +143,7 @@ var requireObjectCoercible$2 = function (it) {
140
143
  var IndexedObject$1 = indexedObject;
141
144
  var requireObjectCoercible$1 = requireObjectCoercible$2;
142
145
 
143
- var toIndexedObject$3 = function (it) {
146
+ var toIndexedObject$5 = function (it) {
144
147
  return IndexedObject$1(requireObjectCoercible$1(it));
145
148
  };
146
149
 
@@ -161,48 +164,48 @@ var documentAll$1 = $documentAll$1.all;
161
164
 
162
165
  // `IsCallable` abstract operation
163
166
  // https://tc39.es/ecma262/#sec-iscallable
164
- var isCallable$a = $documentAll$1.IS_HTMLDDA ? function (argument) {
167
+ var isCallable$k = $documentAll$1.IS_HTMLDDA ? function (argument) {
165
168
  return typeof argument == 'function' || argument === documentAll$1;
166
169
  } : function (argument) {
167
170
  return typeof argument == 'function';
168
171
  };
169
172
 
170
- var isCallable$9 = isCallable$a;
173
+ var isCallable$j = isCallable$k;
171
174
  var $documentAll = documentAll_1;
172
175
 
173
176
  var documentAll = $documentAll.all;
174
177
 
175
- var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
176
- return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
178
+ var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
179
+ return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
177
180
  } : function (it) {
178
- return typeof it == 'object' ? it !== null : isCallable$9(it);
181
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
179
182
  };
180
183
 
181
- var global$9 = global$a;
182
- var isCallable$8 = isCallable$a;
184
+ var global$i = global$j;
185
+ var isCallable$i = isCallable$k;
183
186
 
184
187
  var aFunction = function (argument) {
185
- return isCallable$8(argument) ? argument : undefined;
188
+ return isCallable$i(argument) ? argument : undefined;
186
189
  };
187
190
 
188
- var getBuiltIn$3 = function (namespace, method) {
189
- return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
191
+ var getBuiltIn$8 = function (namespace, method) {
192
+ return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
190
193
  };
191
194
 
192
- var uncurryThis$6 = functionUncurryThis;
195
+ var uncurryThis$b = functionUncurryThis;
193
196
 
194
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
197
+ var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
195
198
 
196
- var getBuiltIn$2 = getBuiltIn$3;
199
+ var getBuiltIn$7 = getBuiltIn$8;
197
200
 
198
- var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
201
+ var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
199
202
 
200
- var global$8 = global$a;
201
- var userAgent = engineUserAgent;
203
+ var global$h = global$j;
204
+ var userAgent$3 = engineUserAgent;
202
205
 
203
- var process = global$8.process;
204
- var Deno = global$8.Deno;
205
- var versions = process && process.versions || Deno && Deno.version;
206
+ var process$3 = global$h.process;
207
+ var Deno$1 = global$h.Deno;
208
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
206
209
  var v8 = versions && versions.v8;
207
210
  var match, version;
208
211
 
@@ -215,10 +218,10 @@ if (v8) {
215
218
 
216
219
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
217
220
  // so check `userAgent` even if `.v8` exists, but 0
218
- if (!version && userAgent) {
219
- match = userAgent.match(/Edge\/(\d+)/);
221
+ if (!version && userAgent$3) {
222
+ match = userAgent$3.match(/Edge\/(\d+)/);
220
223
  if (!match || match[1] >= 74) {
221
- match = userAgent.match(/Chrome\/(\d+)/);
224
+ match = userAgent$3.match(/Chrome\/(\d+)/);
222
225
  if (match) version = +match[1];
223
226
  }
224
227
  }
@@ -227,17 +230,17 @@ var engineV8Version = version;
227
230
 
228
231
  /* eslint-disable es/no-symbol -- required for testing */
229
232
 
230
- var V8_VERSION = engineV8Version;
231
- var fails$5 = fails$9;
233
+ var V8_VERSION$1 = engineV8Version;
234
+ var fails$9 = fails$d;
232
235
 
233
236
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
234
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
237
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
235
238
  var symbol = Symbol();
236
239
  // Chrome 38 Symbol has incorrect toString conversion
237
240
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
238
241
  return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
239
242
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
240
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
243
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
241
244
  });
242
245
 
243
246
  /* eslint-disable es/no-symbol -- required for testing */
@@ -248,87 +251,87 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
248
251
  && !Symbol.sham
249
252
  && typeof Symbol.iterator == 'symbol';
250
253
 
251
- var getBuiltIn$1 = getBuiltIn$3;
252
- var isCallable$7 = isCallable$a;
253
- var isPrototypeOf = objectIsPrototypeOf;
254
+ var getBuiltIn$6 = getBuiltIn$8;
255
+ var isCallable$h = isCallable$k;
256
+ var isPrototypeOf$2 = objectIsPrototypeOf;
254
257
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
255
258
 
256
- var $Object$1 = Object;
259
+ var $Object$3 = Object;
257
260
 
258
261
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
259
262
  return typeof it == 'symbol';
260
263
  } : function (it) {
261
- var $Symbol = getBuiltIn$1('Symbol');
262
- return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
264
+ var $Symbol = getBuiltIn$6('Symbol');
265
+ return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
263
266
  };
264
267
 
265
- var $String$1 = String;
268
+ var $String$2 = String;
266
269
 
267
- var tryToString$1 = function (argument) {
270
+ var tryToString$4 = function (argument) {
268
271
  try {
269
- return $String$1(argument);
272
+ return $String$2(argument);
270
273
  } catch (error) {
271
274
  return 'Object';
272
275
  }
273
276
  };
274
277
 
275
- var isCallable$6 = isCallable$a;
276
- var tryToString = tryToString$1;
278
+ var isCallable$g = isCallable$k;
279
+ var tryToString$3 = tryToString$4;
277
280
 
278
- var $TypeError$4 = TypeError;
281
+ var $TypeError$b = TypeError;
279
282
 
280
283
  // `Assert: IsCallable(argument) is true`
281
- var aCallable$1 = function (argument) {
282
- if (isCallable$6(argument)) return argument;
283
- throw $TypeError$4(tryToString(argument) + ' is not a function');
284
+ var aCallable$7 = function (argument) {
285
+ if (isCallable$g(argument)) return argument;
286
+ throw $TypeError$b(tryToString$3(argument) + ' is not a function');
284
287
  };
285
288
 
286
- var aCallable = aCallable$1;
287
- var isNullOrUndefined = isNullOrUndefined$2;
289
+ var aCallable$6 = aCallable$7;
290
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
288
291
 
289
292
  // `GetMethod` abstract operation
290
293
  // https://tc39.es/ecma262/#sec-getmethod
291
- var getMethod$1 = function (V, P) {
294
+ var getMethod$3 = function (V, P) {
292
295
  var func = V[P];
293
- return isNullOrUndefined(func) ? undefined : aCallable(func);
296
+ return isNullOrUndefined$2(func) ? undefined : aCallable$6(func);
294
297
  };
295
298
 
296
- var call$3 = functionCall;
297
- var isCallable$5 = isCallable$a;
298
- var isObject$4 = isObject$5;
299
+ var call$c = functionCall;
300
+ var isCallable$f = isCallable$k;
301
+ var isObject$7 = isObject$8;
299
302
 
300
- var $TypeError$3 = TypeError;
303
+ var $TypeError$a = TypeError;
301
304
 
302
305
  // `OrdinaryToPrimitive` abstract operation
303
306
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
304
307
  var ordinaryToPrimitive$1 = function (input, pref) {
305
308
  var fn, val;
306
- if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
307
- if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$3(fn, input))) return val;
308
- if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
309
- throw $TypeError$3("Can't convert object to primitive value");
309
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
310
+ if (isCallable$f(fn = input.valueOf) && !isObject$7(val = call$c(fn, input))) return val;
311
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
312
+ throw $TypeError$a("Can't convert object to primitive value");
310
313
  };
311
314
 
312
315
  var shared$3 = {exports: {}};
313
316
 
314
- var global$7 = global$a;
317
+ var global$g = global$j;
315
318
 
316
319
  // eslint-disable-next-line es/no-object-defineproperty -- safe
317
- var defineProperty$2 = Object.defineProperty;
320
+ var defineProperty$5 = Object.defineProperty;
318
321
 
319
322
  var defineGlobalProperty$3 = function (key, value) {
320
323
  try {
321
- defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
324
+ defineProperty$5(global$g, key, { value: value, configurable: true, writable: true });
322
325
  } catch (error) {
323
- global$7[key] = value;
326
+ global$g[key] = value;
324
327
  } return value;
325
328
  };
326
329
 
327
- var global$6 = global$a;
330
+ var global$f = global$j;
328
331
  var defineGlobalProperty$2 = defineGlobalProperty$3;
329
332
 
330
333
  var SHARED = '__core-js_shared__';
331
- var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
334
+ var store$3 = global$f[SHARED] || defineGlobalProperty$2(SHARED, {});
332
335
 
333
336
  var sharedStore = store$3;
334
337
 
@@ -346,52 +349,52 @@ var store$2 = sharedStore;
346
349
 
347
350
  var requireObjectCoercible = requireObjectCoercible$2;
348
351
 
349
- var $Object = Object;
352
+ var $Object$2 = Object;
350
353
 
351
354
  // `ToObject` abstract operation
352
355
  // https://tc39.es/ecma262/#sec-toobject
353
- var toObject$2 = function (argument) {
354
- return $Object(requireObjectCoercible(argument));
356
+ var toObject$3 = function (argument) {
357
+ return $Object$2(requireObjectCoercible(argument));
355
358
  };
356
359
 
357
- var uncurryThis$5 = functionUncurryThis;
358
- var toObject$1 = toObject$2;
360
+ var uncurryThis$a = functionUncurryThis;
361
+ var toObject$2 = toObject$3;
359
362
 
360
- var hasOwnProperty = uncurryThis$5({}.hasOwnProperty);
363
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
361
364
 
362
365
  // `HasOwnProperty` abstract operation
363
366
  // https://tc39.es/ecma262/#sec-hasownproperty
364
367
  // eslint-disable-next-line es/no-object-hasown -- safe
365
368
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
366
- return hasOwnProperty(toObject$1(it), key);
369
+ return hasOwnProperty(toObject$2(it), key);
367
370
  };
368
371
 
369
- var uncurryThis$4 = functionUncurryThis;
372
+ var uncurryThis$9 = functionUncurryThis;
370
373
 
371
374
  var id = 0;
372
375
  var postfix = Math.random();
373
- var toString = uncurryThis$4(1.0.toString);
376
+ var toString = uncurryThis$9(1.0.toString);
374
377
 
375
378
  var uid$2 = function (key) {
376
379
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
377
380
  };
378
381
 
379
- var global$5 = global$a;
382
+ var global$e = global$j;
380
383
  var shared$2 = shared$3.exports;
381
- var hasOwn$6 = hasOwnProperty_1;
384
+ var hasOwn$9 = hasOwnProperty_1;
382
385
  var uid$1 = uid$2;
383
386
  var NATIVE_SYMBOL = symbolConstructorDetection;
384
387
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
385
388
 
386
389
  var WellKnownSymbolsStore = shared$2('wks');
387
- var Symbol$1 = global$5.Symbol;
390
+ var Symbol$1 = global$e.Symbol;
388
391
  var symbolFor = Symbol$1 && Symbol$1['for'];
389
392
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
390
393
 
391
- var wellKnownSymbol$1 = function (name) {
392
- if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
394
+ var wellKnownSymbol$e = function (name) {
395
+ if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
393
396
  var description = 'Symbol.' + name;
394
- if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
397
+ if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
395
398
  WellKnownSymbolsStore[name] = Symbol$1[name];
396
399
  } else if (USE_SYMBOL_AS_UID && symbolFor) {
397
400
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -401,27 +404,27 @@ var wellKnownSymbol$1 = function (name) {
401
404
  } return WellKnownSymbolsStore[name];
402
405
  };
403
406
 
404
- var call$2 = functionCall;
405
- var isObject$3 = isObject$5;
407
+ var call$b = functionCall;
408
+ var isObject$6 = isObject$8;
406
409
  var isSymbol$1 = isSymbol$2;
407
- var getMethod = getMethod$1;
410
+ var getMethod$2 = getMethod$3;
408
411
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
409
- var wellKnownSymbol = wellKnownSymbol$1;
412
+ var wellKnownSymbol$d = wellKnownSymbol$e;
410
413
 
411
- var $TypeError$2 = TypeError;
412
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
414
+ var $TypeError$9 = TypeError;
415
+ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
413
416
 
414
417
  // `ToPrimitive` abstract operation
415
418
  // https://tc39.es/ecma262/#sec-toprimitive
416
419
  var toPrimitive$1 = function (input, pref) {
417
- if (!isObject$3(input) || isSymbol$1(input)) return input;
418
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
420
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
421
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
419
422
  var result;
420
423
  if (exoticToPrim) {
421
424
  if (pref === undefined) pref = 'default';
422
- result = call$2(exoticToPrim, input, pref);
423
- if (!isObject$3(result) || isSymbol$1(result)) return result;
424
- throw $TypeError$2("Can't convert object to primitive value");
425
+ result = call$b(exoticToPrim, input, pref);
426
+ if (!isObject$6(result) || isSymbol$1(result)) return result;
427
+ throw $TypeError$9("Can't convert object to primitive value");
425
428
  }
426
429
  if (pref === undefined) pref = 'number';
427
430
  return ordinaryToPrimitive(input, pref);
@@ -432,41 +435,41 @@ var isSymbol = isSymbol$2;
432
435
 
433
436
  // `ToPropertyKey` abstract operation
434
437
  // https://tc39.es/ecma262/#sec-topropertykey
435
- var toPropertyKey$2 = function (argument) {
438
+ var toPropertyKey$3 = function (argument) {
436
439
  var key = toPrimitive(argument, 'string');
437
440
  return isSymbol(key) ? key : key + '';
438
441
  };
439
442
 
440
- var global$4 = global$a;
441
- var isObject$2 = isObject$5;
443
+ var global$d = global$j;
444
+ var isObject$5 = isObject$8;
442
445
 
443
- var document$1 = global$4.document;
446
+ var document$3 = global$d.document;
444
447
  // typeof document.createElement is 'object' in old IE
445
- var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
448
+ var EXISTS$1 = isObject$5(document$3) && isObject$5(document$3.createElement);
446
449
 
447
- var documentCreateElement = function (it) {
448
- return EXISTS$1 ? document$1.createElement(it) : {};
450
+ var documentCreateElement$2 = function (it) {
451
+ return EXISTS$1 ? document$3.createElement(it) : {};
449
452
  };
450
453
 
451
- var DESCRIPTORS$7 = descriptors;
452
- var fails$4 = fails$9;
453
- var createElement = documentCreateElement;
454
+ var DESCRIPTORS$a = descriptors;
455
+ var fails$8 = fails$d;
456
+ var createElement$1 = documentCreateElement$2;
454
457
 
455
458
  // Thanks to IE8 for its funny defineProperty
456
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
459
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
457
460
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
458
- return Object.defineProperty(createElement('div'), 'a', {
461
+ return Object.defineProperty(createElement$1('div'), 'a', {
459
462
  get: function () { return 7; }
460
463
  }).a != 7;
461
464
  });
462
465
 
463
- var DESCRIPTORS$6 = descriptors;
464
- var call$1 = functionCall;
466
+ var DESCRIPTORS$9 = descriptors;
467
+ var call$a = functionCall;
465
468
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
466
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
467
- var toIndexedObject$2 = toIndexedObject$3;
468
- var toPropertyKey$1 = toPropertyKey$2;
469
- var hasOwn$5 = hasOwnProperty_1;
469
+ var createPropertyDescriptor$3 = createPropertyDescriptor$4;
470
+ var toIndexedObject$4 = toIndexedObject$5;
471
+ var toPropertyKey$2 = toPropertyKey$3;
472
+ var hasOwn$8 = hasOwnProperty_1;
470
473
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
471
474
 
472
475
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -474,23 +477,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
474
477
 
475
478
  // `Object.getOwnPropertyDescriptor` method
476
479
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
477
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
478
- O = toIndexedObject$2(O);
479
- P = toPropertyKey$1(P);
480
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
481
+ O = toIndexedObject$4(O);
482
+ P = toPropertyKey$2(P);
480
483
  if (IE8_DOM_DEFINE$1) try {
481
484
  return $getOwnPropertyDescriptor$1(O, P);
482
485
  } catch (error) { /* empty */ }
483
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
486
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$3(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
484
487
  };
485
488
 
486
489
  var objectDefineProperty = {};
487
490
 
488
- var DESCRIPTORS$5 = descriptors;
489
- var fails$3 = fails$9;
491
+ var DESCRIPTORS$8 = descriptors;
492
+ var fails$7 = fails$d;
490
493
 
491
494
  // V8 ~ Chrome 36-
492
495
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
493
- var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
496
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
494
497
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
495
498
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
496
499
  value: 42,
@@ -498,24 +501,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
498
501
  }).prototype != 42;
499
502
  });
500
503
 
501
- var isObject$1 = isObject$5;
504
+ var isObject$4 = isObject$8;
502
505
 
503
- var $String = String;
504
- var $TypeError$1 = TypeError;
506
+ var $String$1 = String;
507
+ var $TypeError$8 = TypeError;
505
508
 
506
509
  // `Assert: Type(argument) is Object`
507
- var anObject$2 = function (argument) {
508
- if (isObject$1(argument)) return argument;
509
- throw $TypeError$1($String(argument) + ' is not an object');
510
+ var anObject$a = function (argument) {
511
+ if (isObject$4(argument)) return argument;
512
+ throw $TypeError$8($String$1(argument) + ' is not an object');
510
513
  };
511
514
 
512
- var DESCRIPTORS$4 = descriptors;
515
+ var DESCRIPTORS$7 = descriptors;
513
516
  var IE8_DOM_DEFINE = ie8DomDefine;
514
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
515
- var anObject$1 = anObject$2;
516
- var toPropertyKey = toPropertyKey$2;
517
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
518
+ var anObject$9 = anObject$a;
519
+ var toPropertyKey$1 = toPropertyKey$3;
517
520
 
518
- var $TypeError = TypeError;
521
+ var $TypeError$7 = TypeError;
519
522
  // eslint-disable-next-line es/no-object-defineproperty -- safe
520
523
  var $defineProperty = Object.defineProperty;
521
524
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -526,10 +529,10 @@ var WRITABLE = 'writable';
526
529
 
527
530
  // `Object.defineProperty` method
528
531
  // https://tc39.es/ecma262/#sec-object.defineproperty
529
- objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
530
- anObject$1(O);
531
- P = toPropertyKey(P);
532
- anObject$1(Attributes);
532
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
533
+ anObject$9(O);
534
+ P = toPropertyKey$1(P);
535
+ anObject$9(Attributes);
533
536
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
534
537
  var current = $getOwnPropertyDescriptor(O, P);
535
538
  if (current && current[WRITABLE]) {
@@ -542,23 +545,23 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
542
545
  }
543
546
  } return $defineProperty(O, P, Attributes);
544
547
  } : $defineProperty : function defineProperty(O, P, Attributes) {
545
- anObject$1(O);
546
- P = toPropertyKey(P);
547
- anObject$1(Attributes);
548
+ anObject$9(O);
549
+ P = toPropertyKey$1(P);
550
+ anObject$9(Attributes);
548
551
  if (IE8_DOM_DEFINE) try {
549
552
  return $defineProperty(O, P, Attributes);
550
553
  } catch (error) { /* empty */ }
551
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
554
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
552
555
  if ('value' in Attributes) O[P] = Attributes.value;
553
556
  return O;
554
557
  };
555
558
 
556
- var DESCRIPTORS$3 = descriptors;
557
- var definePropertyModule$2 = objectDefineProperty;
558
- var createPropertyDescriptor = createPropertyDescriptor$2;
559
+ var DESCRIPTORS$6 = descriptors;
560
+ var definePropertyModule$5 = objectDefineProperty;
561
+ var createPropertyDescriptor$2 = createPropertyDescriptor$4;
559
562
 
560
- var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
561
- return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
563
+ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
564
+ return definePropertyModule$5.f(object, key, createPropertyDescriptor$2(1, value));
562
565
  } : function (object, key, value) {
563
566
  object[key] = value;
564
567
  return object;
@@ -566,17 +569,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value
566
569
 
567
570
  var makeBuiltIn$2 = {exports: {}};
568
571
 
569
- var DESCRIPTORS$2 = descriptors;
570
- var hasOwn$4 = hasOwnProperty_1;
572
+ var DESCRIPTORS$5 = descriptors;
573
+ var hasOwn$7 = hasOwnProperty_1;
571
574
 
572
- var FunctionPrototype = Function.prototype;
575
+ var FunctionPrototype$1 = Function.prototype;
573
576
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
574
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
577
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
575
578
 
576
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
579
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
577
580
  // additional protection from minified / mangled / dropped function names
578
581
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
579
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
582
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
580
583
 
581
584
  var functionName = {
582
585
  EXISTS: EXISTS,
@@ -584,62 +587,62 @@ var functionName = {
584
587
  CONFIGURABLE: CONFIGURABLE
585
588
  };
586
589
 
587
- var uncurryThis$3 = functionUncurryThis;
588
- var isCallable$4 = isCallable$a;
590
+ var uncurryThis$8 = functionUncurryThis;
591
+ var isCallable$e = isCallable$k;
589
592
  var store$1 = sharedStore;
590
593
 
591
- var functionToString = uncurryThis$3(Function.toString);
594
+ var functionToString = uncurryThis$8(Function.toString);
592
595
 
593
596
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
594
- if (!isCallable$4(store$1.inspectSource)) {
597
+ if (!isCallable$e(store$1.inspectSource)) {
595
598
  store$1.inspectSource = function (it) {
596
599
  return functionToString(it);
597
600
  };
598
601
  }
599
602
 
600
- var inspectSource$1 = store$1.inspectSource;
603
+ var inspectSource$3 = store$1.inspectSource;
601
604
 
602
- var global$3 = global$a;
603
- var isCallable$3 = isCallable$a;
605
+ var global$c = global$j;
606
+ var isCallable$d = isCallable$k;
604
607
 
605
- var WeakMap$1 = global$3.WeakMap;
608
+ var WeakMap$1 = global$c.WeakMap;
606
609
 
607
- var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
610
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
608
611
 
609
612
  var shared$1 = shared$3.exports;
610
613
  var uid = uid$2;
611
614
 
612
615
  var keys = shared$1('keys');
613
616
 
614
- var sharedKey$1 = function (key) {
617
+ var sharedKey$3 = function (key) {
615
618
  return keys[key] || (keys[key] = uid(key));
616
619
  };
617
620
 
618
- var hiddenKeys$3 = {};
621
+ var hiddenKeys$4 = {};
619
622
 
620
623
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
621
- var global$2 = global$a;
622
- var isObject = isObject$5;
623
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
624
- var hasOwn$3 = hasOwnProperty_1;
624
+ var global$b = global$j;
625
+ var isObject$3 = isObject$8;
626
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
627
+ var hasOwn$6 = hasOwnProperty_1;
625
628
  var shared = sharedStore;
626
- var sharedKey = sharedKey$1;
627
- var hiddenKeys$2 = hiddenKeys$3;
629
+ var sharedKey$2 = sharedKey$3;
630
+ var hiddenKeys$3 = hiddenKeys$4;
628
631
 
629
632
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
630
- var TypeError$1 = global$2.TypeError;
631
- var WeakMap = global$2.WeakMap;
632
- var set, get, has;
633
+ var TypeError$2 = global$b.TypeError;
634
+ var WeakMap = global$b.WeakMap;
635
+ var set$1, get, has;
633
636
 
634
637
  var enforce = function (it) {
635
- return has(it) ? get(it) : set(it, {});
638
+ return has(it) ? get(it) : set$1(it, {});
636
639
  };
637
640
 
638
641
  var getterFor = function (TYPE) {
639
642
  return function (it) {
640
643
  var state;
641
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
642
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
644
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
645
+ throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
643
646
  } return state;
644
647
  };
645
648
  };
@@ -651,8 +654,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
651
654
  store.has = store.has;
652
655
  store.set = store.set;
653
656
  /* eslint-enable no-self-assign -- prototype methods protection */
654
- set = function (it, metadata) {
655
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
657
+ set$1 = function (it, metadata) {
658
+ if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
656
659
  metadata.facade = it;
657
660
  store.set(it, metadata);
658
661
  return metadata;
@@ -664,45 +667,45 @@ if (NATIVE_WEAK_MAP || shared.state) {
664
667
  return store.has(it);
665
668
  };
666
669
  } else {
667
- var STATE = sharedKey('state');
668
- hiddenKeys$2[STATE] = true;
669
- set = function (it, metadata) {
670
- if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
670
+ var STATE = sharedKey$2('state');
671
+ hiddenKeys$3[STATE] = true;
672
+ set$1 = function (it, metadata) {
673
+ if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
671
674
  metadata.facade = it;
672
- createNonEnumerableProperty$1(it, STATE, metadata);
675
+ createNonEnumerableProperty$3(it, STATE, metadata);
673
676
  return metadata;
674
677
  };
675
678
  get = function (it) {
676
- return hasOwn$3(it, STATE) ? it[STATE] : {};
679
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
677
680
  };
678
681
  has = function (it) {
679
- return hasOwn$3(it, STATE);
682
+ return hasOwn$6(it, STATE);
680
683
  };
681
684
  }
682
685
 
683
686
  var internalState = {
684
- set: set,
687
+ set: set$1,
685
688
  get: get,
686
689
  has: has,
687
690
  enforce: enforce,
688
691
  getterFor: getterFor
689
692
  };
690
693
 
691
- var fails$2 = fails$9;
692
- var isCallable$2 = isCallable$a;
693
- var hasOwn$2 = hasOwnProperty_1;
694
- var DESCRIPTORS$1 = descriptors;
695
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
696
- var inspectSource = inspectSource$1;
697
- var InternalStateModule = internalState;
694
+ var fails$6 = fails$d;
695
+ var isCallable$c = isCallable$k;
696
+ var hasOwn$5 = hasOwnProperty_1;
697
+ var DESCRIPTORS$4 = descriptors;
698
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
699
+ var inspectSource$2 = inspectSource$3;
700
+ var InternalStateModule$2 = internalState;
698
701
 
699
- var enforceInternalState = InternalStateModule.enforce;
700
- var getInternalState = InternalStateModule.get;
702
+ var enforceInternalState = InternalStateModule$2.enforce;
703
+ var getInternalState$1 = InternalStateModule$2.get;
701
704
  // eslint-disable-next-line es/no-object-defineproperty -- safe
702
- var defineProperty$1 = Object.defineProperty;
705
+ var defineProperty$4 = Object.defineProperty;
703
706
 
704
- var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
705
- return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
707
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$6(function () {
708
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
706
709
  });
707
710
 
708
711
  var TEMPLATE = String(String).split('String');
@@ -713,21 +716,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
713
716
  }
714
717
  if (options && options.getter) name = 'get ' + name;
715
718
  if (options && options.setter) name = 'set ' + name;
716
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
717
- if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
719
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
720
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
718
721
  else value.name = name;
719
722
  }
720
- if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
721
- defineProperty$1(value, 'length', { value: options.arity });
723
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
724
+ defineProperty$4(value, 'length', { value: options.arity });
722
725
  }
723
726
  try {
724
- if (options && hasOwn$2(options, 'constructor') && options.constructor) {
725
- if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
727
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
728
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
726
729
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
727
730
  } else if (value.prototype) value.prototype = undefined;
728
731
  } catch (error) { /* empty */ }
729
732
  var state = enforceInternalState(value);
730
- if (!hasOwn$2(state, 'source')) {
733
+ if (!hasOwn$5(state, 'source')) {
731
734
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
732
735
  } return value;
733
736
  };
@@ -735,19 +738,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
735
738
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
736
739
  // eslint-disable-next-line no-extend-native -- required
737
740
  Function.prototype.toString = makeBuiltIn$1(function toString() {
738
- return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
741
+ return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
739
742
  }, 'toString');
740
743
 
741
- var isCallable$1 = isCallable$a;
742
- var definePropertyModule$1 = objectDefineProperty;
744
+ var isCallable$b = isCallable$k;
745
+ var definePropertyModule$4 = objectDefineProperty;
743
746
  var makeBuiltIn = makeBuiltIn$2.exports;
744
747
  var defineGlobalProperty$1 = defineGlobalProperty$3;
745
748
 
746
- var defineBuiltIn$1 = function (O, key, value, options) {
749
+ var defineBuiltIn$5 = function (O, key, value, options) {
747
750
  if (!options) options = {};
748
751
  var simple = options.enumerable;
749
752
  var name = options.name !== undefined ? options.name : key;
750
- if (isCallable$1(value)) makeBuiltIn(value, name, options);
753
+ if (isCallable$b(value)) makeBuiltIn(value, name, options);
751
754
  if (options.global) {
752
755
  if (simple) O[key] = value;
753
756
  else defineGlobalProperty$1(key, value);
@@ -757,7 +760,7 @@ var defineBuiltIn$1 = function (O, key, value, options) {
757
760
  else if (O[key]) simple = true;
758
761
  } catch (error) { /* empty */ }
759
762
  if (simple) O[key] = value;
760
- else definePropertyModule$1.f(O, key, {
763
+ else definePropertyModule$4.f(O, key, {
761
764
  value: value,
762
765
  enumerable: false,
763
766
  configurable: !options.nonConfigurable,
@@ -816,19 +819,19 @@ var toLength = toLength$1;
816
819
 
817
820
  // `LengthOfArrayLike` abstract operation
818
821
  // https://tc39.es/ecma262/#sec-lengthofarraylike
819
- var lengthOfArrayLike$1 = function (obj) {
822
+ var lengthOfArrayLike$2 = function (obj) {
820
823
  return toLength(obj.length);
821
824
  };
822
825
 
823
- var toIndexedObject$1 = toIndexedObject$3;
826
+ var toIndexedObject$3 = toIndexedObject$5;
824
827
  var toAbsoluteIndex = toAbsoluteIndex$1;
825
- var lengthOfArrayLike = lengthOfArrayLike$1;
828
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
826
829
 
827
830
  // `Array.prototype.{ indexOf, includes }` methods implementation
828
831
  var createMethod = function (IS_INCLUDES) {
829
832
  return function ($this, el, fromIndex) {
830
- var O = toIndexedObject$1($this);
831
- var length = lengthOfArrayLike(O);
833
+ var O = toIndexedObject$3($this);
834
+ var length = lengthOfArrayLike$1(O);
832
835
  var index = toAbsoluteIndex(fromIndex, length);
833
836
  var value;
834
837
  // Array#includes uses SameValueZero equality algorithm
@@ -853,29 +856,29 @@ var arrayIncludes = {
853
856
  indexOf: createMethod(false)
854
857
  };
855
858
 
856
- var uncurryThis$2 = functionUncurryThis;
857
- var hasOwn$1 = hasOwnProperty_1;
858
- var toIndexedObject = toIndexedObject$3;
859
+ var uncurryThis$7 = functionUncurryThis;
860
+ var hasOwn$4 = hasOwnProperty_1;
861
+ var toIndexedObject$2 = toIndexedObject$5;
859
862
  var indexOf = arrayIncludes.indexOf;
860
- var hiddenKeys$1 = hiddenKeys$3;
863
+ var hiddenKeys$2 = hiddenKeys$4;
861
864
 
862
- var push = uncurryThis$2([].push);
865
+ var push = uncurryThis$7([].push);
863
866
 
864
867
  var objectKeysInternal = function (object, names) {
865
- var O = toIndexedObject(object);
868
+ var O = toIndexedObject$2(object);
866
869
  var i = 0;
867
870
  var result = [];
868
871
  var key;
869
- for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
872
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
870
873
  // Don't enum bug & hidden keys
871
- while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
874
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
872
875
  ~indexOf(result, key) || push(result, key);
873
876
  }
874
877
  return result;
875
878
  };
876
879
 
877
880
  // IE8- don't enum bug keys
878
- var enumBugKeys$2 = [
881
+ var enumBugKeys$3 = [
879
882
  'constructor',
880
883
  'hasOwnProperty',
881
884
  'isPrototypeOf',
@@ -886,15 +889,15 @@ var enumBugKeys$2 = [
886
889
  ];
887
890
 
888
891
  var internalObjectKeys$1 = objectKeysInternal;
889
- var enumBugKeys$1 = enumBugKeys$2;
892
+ var enumBugKeys$2 = enumBugKeys$3;
890
893
 
891
- var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
894
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
892
895
 
893
896
  // `Object.getOwnPropertyNames` method
894
897
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
895
898
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
896
899
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
897
- return internalObjectKeys$1(O, hiddenKeys);
900
+ return internalObjectKeys$1(O, hiddenKeys$1);
898
901
  };
899
902
 
900
903
  var objectGetOwnPropertySymbols = {};
@@ -902,68 +905,68 @@ var objectGetOwnPropertySymbols = {};
902
905
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
903
906
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
904
907
 
905
- var getBuiltIn = getBuiltIn$3;
906
- var uncurryThis$1 = functionUncurryThis;
908
+ var getBuiltIn$5 = getBuiltIn$8;
909
+ var uncurryThis$6 = functionUncurryThis;
907
910
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
908
911
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
909
- var anObject = anObject$2;
912
+ var anObject$8 = anObject$a;
910
913
 
911
- var concat$1 = uncurryThis$1([].concat);
914
+ var concat$1 = uncurryThis$6([].concat);
912
915
 
913
916
  // all object keys, includes non-enumerable and symbols
914
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
915
- var keys = getOwnPropertyNamesModule.f(anObject(it));
917
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
918
+ var keys = getOwnPropertyNamesModule.f(anObject$8(it));
916
919
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
917
920
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
918
921
  };
919
922
 
920
- var hasOwn = hasOwnProperty_1;
923
+ var hasOwn$3 = hasOwnProperty_1;
921
924
  var ownKeys = ownKeys$1;
922
925
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
923
- var definePropertyModule = objectDefineProperty;
926
+ var definePropertyModule$3 = objectDefineProperty;
924
927
 
925
928
  var copyConstructorProperties$1 = function (target, source, exceptions) {
926
929
  var keys = ownKeys(source);
927
- var defineProperty = definePropertyModule.f;
930
+ var defineProperty = definePropertyModule$3.f;
928
931
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
929
932
  for (var i = 0; i < keys.length; i++) {
930
933
  var key = keys[i];
931
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
934
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
932
935
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
933
936
  }
934
937
  }
935
938
  };
936
939
 
937
- var fails$1 = fails$9;
938
- var isCallable = isCallable$a;
940
+ var fails$5 = fails$d;
941
+ var isCallable$a = isCallable$k;
939
942
 
940
943
  var replacement = /#|\.prototype\./;
941
944
 
942
- var isForced$1 = function (feature, detection) {
945
+ var isForced$2 = function (feature, detection) {
943
946
  var value = data[normalize(feature)];
944
947
  return value == POLYFILL ? true
945
948
  : value == NATIVE ? false
946
- : isCallable(detection) ? fails$1(detection)
949
+ : isCallable$a(detection) ? fails$5(detection)
947
950
  : !!detection;
948
951
  };
949
952
 
950
- var normalize = isForced$1.normalize = function (string) {
953
+ var normalize = isForced$2.normalize = function (string) {
951
954
  return String(string).replace(replacement, '.').toLowerCase();
952
955
  };
953
956
 
954
- var data = isForced$1.data = {};
955
- var NATIVE = isForced$1.NATIVE = 'N';
956
- var POLYFILL = isForced$1.POLYFILL = 'P';
957
+ var data = isForced$2.data = {};
958
+ var NATIVE = isForced$2.NATIVE = 'N';
959
+ var POLYFILL = isForced$2.POLYFILL = 'P';
957
960
 
958
- var isForced_1 = isForced$1;
961
+ var isForced_1 = isForced$2;
959
962
 
960
- var global$1 = global$a;
961
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
962
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
963
- var defineBuiltIn = defineBuiltIn$1;
963
+ var global$a = global$j;
964
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
965
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
966
+ var defineBuiltIn$4 = defineBuiltIn$5;
964
967
  var defineGlobalProperty = defineGlobalProperty$3;
965
968
  var copyConstructorProperties = copyConstructorProperties$1;
966
- var isForced = isForced_1;
969
+ var isForced$1 = isForced_1;
967
970
 
968
971
  /*
969
972
  options.target - name of the target object
@@ -986,19 +989,19 @@ var _export = function (options, source) {
986
989
  var STATIC = options.stat;
987
990
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
988
991
  if (GLOBAL) {
989
- target = global$1;
992
+ target = global$a;
990
993
  } else if (STATIC) {
991
- target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
994
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
992
995
  } else {
993
- target = (global$1[TARGET] || {}).prototype;
996
+ target = (global$a[TARGET] || {}).prototype;
994
997
  }
995
998
  if (target) for (key in source) {
996
999
  sourceProperty = source[key];
997
1000
  if (options.dontCallGetSet) {
998
- descriptor = getOwnPropertyDescriptor(target, key);
1001
+ descriptor = getOwnPropertyDescriptor$1(target, key);
999
1002
  targetProperty = descriptor && descriptor.value;
1000
1003
  } else targetProperty = target[key];
1001
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1004
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1002
1005
  // contained in target
1003
1006
  if (!FORCED && targetProperty !== undefined) {
1004
1007
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1006,46 +1009,46 @@ var _export = function (options, source) {
1006
1009
  }
1007
1010
  // add a flag to not completely full polyfills
1008
1011
  if (options.sham || (targetProperty && targetProperty.sham)) {
1009
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1012
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1010
1013
  }
1011
- defineBuiltIn(target, key, sourceProperty, options);
1014
+ defineBuiltIn$4(target, key, sourceProperty, options);
1012
1015
  }
1013
1016
  };
1014
1017
 
1015
1018
  var internalObjectKeys = objectKeysInternal;
1016
- var enumBugKeys = enumBugKeys$2;
1019
+ var enumBugKeys$1 = enumBugKeys$3;
1017
1020
 
1018
1021
  // `Object.keys` method
1019
1022
  // https://tc39.es/ecma262/#sec-object.keys
1020
1023
  // eslint-disable-next-line es/no-object-keys -- safe
1021
- var objectKeys$1 = Object.keys || function keys(O) {
1022
- return internalObjectKeys(O, enumBugKeys);
1024
+ var objectKeys$2 = Object.keys || function keys(O) {
1025
+ return internalObjectKeys(O, enumBugKeys$1);
1023
1026
  };
1024
1027
 
1025
- var DESCRIPTORS = descriptors;
1026
- var uncurryThis = functionUncurryThis;
1027
- var call = functionCall;
1028
- var fails = fails$9;
1029
- var objectKeys = objectKeys$1;
1028
+ var DESCRIPTORS$3 = descriptors;
1029
+ var uncurryThis$5 = functionUncurryThis;
1030
+ var call$9 = functionCall;
1031
+ var fails$4 = fails$d;
1032
+ var objectKeys$1 = objectKeys$2;
1030
1033
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1031
1034
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1032
- var toObject = toObject$2;
1035
+ var toObject$1 = toObject$3;
1033
1036
  var IndexedObject = indexedObject;
1034
1037
 
1035
1038
  // eslint-disable-next-line es/no-object-assign -- safe
1036
1039
  var $assign = Object.assign;
1037
1040
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1038
- var defineProperty = Object.defineProperty;
1039
- var concat = uncurryThis([].concat);
1041
+ var defineProperty$3 = Object.defineProperty;
1042
+ var concat = uncurryThis$5([].concat);
1040
1043
 
1041
1044
  // `Object.assign` method
1042
1045
  // https://tc39.es/ecma262/#sec-object.assign
1043
- var objectAssign = !$assign || fails(function () {
1046
+ var objectAssign = !$assign || fails$4(function () {
1044
1047
  // should have correct order of operations (Edge bug)
1045
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1048
+ if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1046
1049
  enumerable: true,
1047
1050
  get: function () {
1048
- defineProperty(this, 'b', {
1051
+ defineProperty$3(this, 'b', {
1049
1052
  value: 3,
1050
1053
  enumerable: false
1051
1054
  });
@@ -1059,33 +1062,33 @@ var objectAssign = !$assign || fails(function () {
1059
1062
  var alphabet = 'abcdefghijklmnopqrst';
1060
1063
  A[symbol] = 7;
1061
1064
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1062
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1065
+ return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1063
1066
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1064
- var T = toObject(target);
1067
+ var T = toObject$1(target);
1065
1068
  var argumentsLength = arguments.length;
1066
1069
  var index = 1;
1067
1070
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1068
1071
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
1069
1072
  while (argumentsLength > index) {
1070
1073
  var S = IndexedObject(arguments[index++]);
1071
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1074
+ var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1072
1075
  var length = keys.length;
1073
1076
  var j = 0;
1074
1077
  var key;
1075
1078
  while (length > j) {
1076
1079
  key = keys[j++];
1077
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1080
+ if (!DESCRIPTORS$3 || call$9(propertyIsEnumerable, S, key)) T[key] = S[key];
1078
1081
  }
1079
1082
  } return T;
1080
1083
  } : $assign;
1081
1084
 
1082
- var $ = _export;
1085
+ var $$8 = _export;
1083
1086
  var assign = objectAssign;
1084
1087
 
1085
1088
  // `Object.assign` method
1086
1089
  // https://tc39.es/ecma262/#sec-object.assign
1087
1090
  // eslint-disable-next-line es/no-object-assign -- required for testing
1088
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1091
+ $$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1089
1092
  assign: assign
1090
1093
  });
1091
1094
 
@@ -1139,6 +1142,542 @@ const useMessageTransportWebViewBridge = (core, webViewRef) => {
1139
1142
  };
1140
1143
  };
1141
1144
 
1145
+ var objectDefineProperties = {};
1146
+
1147
+ var DESCRIPTORS$2 = descriptors;
1148
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1149
+ var definePropertyModule$2 = objectDefineProperty;
1150
+ var anObject$7 = anObject$a;
1151
+ var toIndexedObject$1 = toIndexedObject$5;
1152
+ var objectKeys = objectKeys$2;
1153
+
1154
+ // `Object.defineProperties` method
1155
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1156
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1157
+ objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1158
+ anObject$7(O);
1159
+ var props = toIndexedObject$1(Properties);
1160
+ var keys = objectKeys(Properties);
1161
+ var length = keys.length;
1162
+ var index = 0;
1163
+ var key;
1164
+ while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
1165
+ return O;
1166
+ };
1167
+
1168
+ var getBuiltIn$4 = getBuiltIn$8;
1169
+
1170
+ var html$2 = getBuiltIn$4('document', 'documentElement');
1171
+
1172
+ /* global ActiveXObject -- old IE, WSH */
1173
+
1174
+ var anObject$6 = anObject$a;
1175
+ var definePropertiesModule = objectDefineProperties;
1176
+ var enumBugKeys = enumBugKeys$3;
1177
+ var hiddenKeys = hiddenKeys$4;
1178
+ var html$1 = html$2;
1179
+ var documentCreateElement$1 = documentCreateElement$2;
1180
+ var sharedKey$1 = sharedKey$3;
1181
+
1182
+ var GT = '>';
1183
+ var LT = '<';
1184
+ var PROTOTYPE = 'prototype';
1185
+ var SCRIPT = 'script';
1186
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1187
+
1188
+ var EmptyConstructor = function () { /* empty */ };
1189
+
1190
+ var scriptTag = function (content) {
1191
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1192
+ };
1193
+
1194
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1195
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1196
+ activeXDocument.write(scriptTag(''));
1197
+ activeXDocument.close();
1198
+ var temp = activeXDocument.parentWindow.Object;
1199
+ activeXDocument = null; // avoid memory leak
1200
+ return temp;
1201
+ };
1202
+
1203
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1204
+ var NullProtoObjectViaIFrame = function () {
1205
+ // Thrash, waste and sodomy: IE GC bug
1206
+ var iframe = documentCreateElement$1('iframe');
1207
+ var JS = 'java' + SCRIPT + ':';
1208
+ var iframeDocument;
1209
+ iframe.style.display = 'none';
1210
+ html$1.appendChild(iframe);
1211
+ // https://github.com/zloirock/core-js/issues/475
1212
+ iframe.src = String(JS);
1213
+ iframeDocument = iframe.contentWindow.document;
1214
+ iframeDocument.open();
1215
+ iframeDocument.write(scriptTag('document.F=Object'));
1216
+ iframeDocument.close();
1217
+ return iframeDocument.F;
1218
+ };
1219
+
1220
+ // Check for document.domain and active x support
1221
+ // No need to use active x approach when document.domain is not set
1222
+ // see https://github.com/es-shims/es5-shim/issues/150
1223
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1224
+ // avoid IE GC bug
1225
+ var activeXDocument;
1226
+ var NullProtoObject = function () {
1227
+ try {
1228
+ activeXDocument = new ActiveXObject('htmlfile');
1229
+ } catch (error) { /* ignore */ }
1230
+ NullProtoObject = typeof document != 'undefined'
1231
+ ? document.domain && activeXDocument
1232
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1233
+ : NullProtoObjectViaIFrame()
1234
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1235
+ var length = enumBugKeys.length;
1236
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1237
+ return NullProtoObject();
1238
+ };
1239
+
1240
+ hiddenKeys[IE_PROTO$1] = true;
1241
+
1242
+ // `Object.create` method
1243
+ // https://tc39.es/ecma262/#sec-object.create
1244
+ // eslint-disable-next-line es/no-object-create -- safe
1245
+ var objectCreate = Object.create || function create(O, Properties) {
1246
+ var result;
1247
+ if (O !== null) {
1248
+ EmptyConstructor[PROTOTYPE] = anObject$6(O);
1249
+ result = new EmptyConstructor();
1250
+ EmptyConstructor[PROTOTYPE] = null;
1251
+ // add "__proto__" for Object.getPrototypeOf polyfill
1252
+ result[IE_PROTO$1] = O;
1253
+ } else result = NullProtoObject();
1254
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1255
+ };
1256
+
1257
+ var wellKnownSymbol$c = wellKnownSymbol$e;
1258
+ var create$1 = objectCreate;
1259
+ var defineProperty$2 = objectDefineProperty.f;
1260
+
1261
+ var UNSCOPABLES = wellKnownSymbol$c('unscopables');
1262
+ var ArrayPrototype$1 = Array.prototype;
1263
+
1264
+ // Array.prototype[@@unscopables]
1265
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1266
+ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
1267
+ defineProperty$2(ArrayPrototype$1, UNSCOPABLES, {
1268
+ configurable: true,
1269
+ value: create$1(null)
1270
+ });
1271
+ }
1272
+
1273
+ // add a key to Array.prototype[@@unscopables]
1274
+ var addToUnscopables$1 = function (key) {
1275
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
1276
+ };
1277
+
1278
+ var iterators = {};
1279
+
1280
+ var fails$3 = fails$d;
1281
+
1282
+ var correctPrototypeGetter = !fails$3(function () {
1283
+ function F() { /* empty */ }
1284
+ F.prototype.constructor = null;
1285
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1286
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1287
+ });
1288
+
1289
+ var hasOwn$2 = hasOwnProperty_1;
1290
+ var isCallable$9 = isCallable$k;
1291
+ var toObject = toObject$3;
1292
+ var sharedKey = sharedKey$3;
1293
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1294
+
1295
+ var IE_PROTO = sharedKey('IE_PROTO');
1296
+ var $Object$1 = Object;
1297
+ var ObjectPrototype = $Object$1.prototype;
1298
+
1299
+ // `Object.getPrototypeOf` method
1300
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1301
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1302
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1303
+ var object = toObject(O);
1304
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1305
+ var constructor = object.constructor;
1306
+ if (isCallable$9(constructor) && object instanceof constructor) {
1307
+ return constructor.prototype;
1308
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1309
+ };
1310
+
1311
+ var fails$2 = fails$d;
1312
+ var isCallable$8 = isCallable$k;
1313
+ var isObject$2 = isObject$8;
1314
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1315
+ var defineBuiltIn$3 = defineBuiltIn$5;
1316
+ var wellKnownSymbol$b = wellKnownSymbol$e;
1317
+
1318
+ var ITERATOR$5 = wellKnownSymbol$b('iterator');
1319
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1320
+
1321
+ // `%IteratorPrototype%` object
1322
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1323
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1324
+
1325
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1326
+ if ([].keys) {
1327
+ arrayIterator = [].keys();
1328
+ // Safari 8 has buggy iterators w/o `next`
1329
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1330
+ else {
1331
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1332
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1333
+ }
1334
+ }
1335
+
1336
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$2(function () {
1337
+ var test = {};
1338
+ // FF44- legacy iterators case
1339
+ return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1340
+ });
1341
+
1342
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1343
+
1344
+ // `%IteratorPrototype%[@@iterator]()` method
1345
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1346
+ if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) {
1347
+ defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
1348
+ return this;
1349
+ });
1350
+ }
1351
+
1352
+ var iteratorsCore = {
1353
+ IteratorPrototype: IteratorPrototype$2,
1354
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1355
+ };
1356
+
1357
+ var defineProperty$1 = objectDefineProperty.f;
1358
+ var hasOwn$1 = hasOwnProperty_1;
1359
+ var wellKnownSymbol$a = wellKnownSymbol$e;
1360
+
1361
+ var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
1362
+
1363
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1364
+ if (target && !STATIC) target = target.prototype;
1365
+ if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
1366
+ defineProperty$1(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1367
+ }
1368
+ };
1369
+
1370
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1371
+ var create = objectCreate;
1372
+ var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1373
+ var setToStringTag$2 = setToStringTag$3;
1374
+ var Iterators$4 = iterators;
1375
+
1376
+ var returnThis$1 = function () { return this; };
1377
+
1378
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1379
+ var TO_STRING_TAG = NAME + ' Iterator';
1380
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1381
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1382
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1383
+ return IteratorConstructor;
1384
+ };
1385
+
1386
+ var isCallable$7 = isCallable$k;
1387
+
1388
+ var $String = String;
1389
+ var $TypeError$6 = TypeError;
1390
+
1391
+ var aPossiblePrototype$1 = function (argument) {
1392
+ if (typeof argument == 'object' || isCallable$7(argument)) return argument;
1393
+ throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1394
+ };
1395
+
1396
+ /* eslint-disable no-proto -- safe */
1397
+
1398
+ var uncurryThis$4 = functionUncurryThis;
1399
+ var anObject$5 = anObject$a;
1400
+ var aPossiblePrototype = aPossiblePrototype$1;
1401
+
1402
+ // `Object.setPrototypeOf` method
1403
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1404
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1405
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1406
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1407
+ var CORRECT_SETTER = false;
1408
+ var test = {};
1409
+ var setter;
1410
+ try {
1411
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1412
+ setter = uncurryThis$4(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1413
+ setter(test, []);
1414
+ CORRECT_SETTER = test instanceof Array;
1415
+ } catch (error) { /* empty */ }
1416
+ return function setPrototypeOf(O, proto) {
1417
+ anObject$5(O);
1418
+ aPossiblePrototype(proto);
1419
+ if (CORRECT_SETTER) setter(O, proto);
1420
+ else O.__proto__ = proto;
1421
+ return O;
1422
+ };
1423
+ }() : undefined);
1424
+
1425
+ var $$7 = _export;
1426
+ var call$8 = functionCall;
1427
+ var FunctionName = functionName;
1428
+ var isCallable$6 = isCallable$k;
1429
+ var createIteratorConstructor = iteratorCreateConstructor;
1430
+ var getPrototypeOf = objectGetPrototypeOf;
1431
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1432
+ var setToStringTag$1 = setToStringTag$3;
1433
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1434
+ var defineBuiltIn$2 = defineBuiltIn$5;
1435
+ var wellKnownSymbol$9 = wellKnownSymbol$e;
1436
+ var Iterators$3 = iterators;
1437
+ var IteratorsCore = iteratorsCore;
1438
+
1439
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1440
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1441
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1442
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1443
+ var ITERATOR$4 = wellKnownSymbol$9('iterator');
1444
+ var KEYS = 'keys';
1445
+ var VALUES = 'values';
1446
+ var ENTRIES = 'entries';
1447
+
1448
+ var returnThis = function () { return this; };
1449
+
1450
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1451
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1452
+
1453
+ var getIterationMethod = function (KIND) {
1454
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1455
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1456
+ switch (KIND) {
1457
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1458
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1459
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1460
+ } return function () { return new IteratorConstructor(this); };
1461
+ };
1462
+
1463
+ var TO_STRING_TAG = NAME + ' Iterator';
1464
+ var INCORRECT_VALUES_NAME = false;
1465
+ var IterablePrototype = Iterable.prototype;
1466
+ var nativeIterator = IterablePrototype[ITERATOR$4]
1467
+ || IterablePrototype['@@iterator']
1468
+ || DEFAULT && IterablePrototype[DEFAULT];
1469
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1470
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1471
+ var CurrentIteratorPrototype, methods, KEY;
1472
+
1473
+ // fix native
1474
+ if (anyNativeIterator) {
1475
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1476
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1477
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1478
+ if (setPrototypeOf$1) {
1479
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1480
+ } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1481
+ defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1482
+ }
1483
+ }
1484
+ // Set @@toStringTag to native iterators
1485
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1486
+ }
1487
+ }
1488
+
1489
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1490
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1491
+ if (CONFIGURABLE_FUNCTION_NAME) {
1492
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1493
+ } else {
1494
+ INCORRECT_VALUES_NAME = true;
1495
+ defaultIterator = function values() { return call$8(nativeIterator, this); };
1496
+ }
1497
+ }
1498
+
1499
+ // export additional methods
1500
+ if (DEFAULT) {
1501
+ methods = {
1502
+ values: getIterationMethod(VALUES),
1503
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1504
+ entries: getIterationMethod(ENTRIES)
1505
+ };
1506
+ if (FORCED) for (KEY in methods) {
1507
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1508
+ defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1509
+ }
1510
+ } else $$7({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1511
+ }
1512
+
1513
+ // define iterator
1514
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1515
+ defineBuiltIn$2(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1516
+ }
1517
+ Iterators$3[NAME] = defaultIterator;
1518
+
1519
+ return methods;
1520
+ };
1521
+
1522
+ // `CreateIterResultObject` abstract operation
1523
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1524
+ var createIterResultObject$1 = function (value, done) {
1525
+ return { value: value, done: done };
1526
+ };
1527
+
1528
+ var toIndexedObject = toIndexedObject$5;
1529
+ var addToUnscopables = addToUnscopables$1;
1530
+ var Iterators$2 = iterators;
1531
+ var InternalStateModule$1 = internalState;
1532
+ var defineProperty = objectDefineProperty.f;
1533
+ var defineIterator = iteratorDefine;
1534
+ var createIterResultObject = createIterResultObject$1;
1535
+ var DESCRIPTORS$1 = descriptors;
1536
+
1537
+ var ARRAY_ITERATOR = 'Array Iterator';
1538
+ var setInternalState$1 = InternalStateModule$1.set;
1539
+ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1540
+
1541
+ // `Array.prototype.entries` method
1542
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1543
+ // `Array.prototype.keys` method
1544
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1545
+ // `Array.prototype.values` method
1546
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1547
+ // `Array.prototype[@@iterator]` method
1548
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1549
+ // `CreateArrayIterator` internal method
1550
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1551
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1552
+ setInternalState$1(this, {
1553
+ type: ARRAY_ITERATOR,
1554
+ target: toIndexedObject(iterated), // target
1555
+ index: 0, // next index
1556
+ kind: kind // kind
1557
+ });
1558
+ // `%ArrayIteratorPrototype%.next` method
1559
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1560
+ }, function () {
1561
+ var state = getInternalState(this);
1562
+ var target = state.target;
1563
+ var kind = state.kind;
1564
+ var index = state.index++;
1565
+ if (!target || index >= target.length) {
1566
+ state.target = undefined;
1567
+ return createIterResultObject(undefined, true);
1568
+ }
1569
+ if (kind == 'keys') return createIterResultObject(index, false);
1570
+ if (kind == 'values') return createIterResultObject(target[index], false);
1571
+ return createIterResultObject([index, target[index]], false);
1572
+ }, 'values');
1573
+
1574
+ // argumentsList[@@iterator] is %ArrayProto_values%
1575
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1576
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1577
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1578
+
1579
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1580
+ addToUnscopables('keys');
1581
+ addToUnscopables('values');
1582
+ addToUnscopables('entries');
1583
+
1584
+ // V8 ~ Chrome 45- bug
1585
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1586
+ defineProperty(values, 'name', { value: 'values' });
1587
+ } catch (error) { /* empty */ }
1588
+
1589
+ // iterable DOM collections
1590
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1591
+ var domIterables = {
1592
+ CSSRuleList: 0,
1593
+ CSSStyleDeclaration: 0,
1594
+ CSSValueList: 0,
1595
+ ClientRectList: 0,
1596
+ DOMRectList: 0,
1597
+ DOMStringList: 0,
1598
+ DOMTokenList: 1,
1599
+ DataTransferItemList: 0,
1600
+ FileList: 0,
1601
+ HTMLAllCollection: 0,
1602
+ HTMLCollection: 0,
1603
+ HTMLFormElement: 0,
1604
+ HTMLSelectElement: 0,
1605
+ MediaList: 0,
1606
+ MimeTypeArray: 0,
1607
+ NamedNodeMap: 0,
1608
+ NodeList: 1,
1609
+ PaintRequestList: 0,
1610
+ Plugin: 0,
1611
+ PluginArray: 0,
1612
+ SVGLengthList: 0,
1613
+ SVGNumberList: 0,
1614
+ SVGPathSegList: 0,
1615
+ SVGPointList: 0,
1616
+ SVGStringList: 0,
1617
+ SVGTransformList: 0,
1618
+ SourceBufferList: 0,
1619
+ StyleSheetList: 0,
1620
+ TextTrackCueList: 0,
1621
+ TextTrackList: 0,
1622
+ TouchList: 0
1623
+ };
1624
+
1625
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1626
+ var documentCreateElement = documentCreateElement$2;
1627
+
1628
+ var classList = documentCreateElement('span').classList;
1629
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1630
+
1631
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1632
+
1633
+ var global$9 = global$j;
1634
+ var DOMIterables = domIterables;
1635
+ var DOMTokenListPrototype = domTokenListPrototype;
1636
+ var ArrayIteratorMethods = es_array_iterator;
1637
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
1638
+ var wellKnownSymbol$8 = wellKnownSymbol$e;
1639
+
1640
+ var ITERATOR$3 = wellKnownSymbol$8('iterator');
1641
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1642
+ var ArrayValues = ArrayIteratorMethods.values;
1643
+
1644
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1645
+ if (CollectionPrototype) {
1646
+ // some Chrome versions have non-configurable methods on DOMTokenList
1647
+ if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
1648
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
1649
+ } catch (error) {
1650
+ CollectionPrototype[ITERATOR$3] = ArrayValues;
1651
+ }
1652
+ if (!CollectionPrototype[TO_STRING_TAG$2]) {
1653
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1654
+ }
1655
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1656
+ // some Chrome versions have non-configurable methods on DOMTokenList
1657
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1658
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1659
+ } catch (error) {
1660
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1661
+ }
1662
+ }
1663
+ }
1664
+ };
1665
+
1666
+ for (var COLLECTION_NAME in DOMIterables) {
1667
+ handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
1668
+ }
1669
+
1670
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1671
+
1672
+ const useWebViewVisibility = core => {
1673
+ const webViewVisibilityRequestChannelRef = useRef(createRequestChannel(core.messageTransport));
1674
+ const [visible, setVisible] = useState(false);
1675
+ useEffect(() => webViewVisibilityRequestChannelRef.current.handle('setVisibility', setVisible), [setVisible]);
1676
+ return {
1677
+ visible
1678
+ };
1679
+ };
1680
+
1142
1681
  const styles = StyleSheet.create({
1143
1682
  container: {
1144
1683
  backgroundColor: 'transparent',
@@ -1172,10 +1711,13 @@ const WebView = ({
1172
1711
  webviewDebuggingEnabled: _webviewDebuggingEnabled = false
1173
1712
  }) => {
1174
1713
  const webViewRef = useRef(null);
1714
+ const {
1715
+ visible
1716
+ } = useWebViewVisibility(core);
1175
1717
  const {
1176
1718
  onMessageHandler
1177
1719
  } = useMessageTransportWebViewBridge(core, webViewRef);
1178
- const containerStyles = [styles['container'], styles.hide];
1720
+ const containerStyles = [styles['container'], visible ? styles.show : styles.hide];
1179
1721
  return /*#__PURE__*/jsx(WebView$1, {
1180
1722
  ref: webViewRef,
1181
1723
  source: {
@@ -1185,7 +1727,8 @@ const WebView = ({
1185
1727
  style: styles['webview'],
1186
1728
  onMessage: onMessageHandler,
1187
1729
  hideKeyboardAccessoryView: true,
1188
- webviewDebuggingEnabled: _webviewDebuggingEnabled
1730
+ webviewDebuggingEnabled: _webviewDebuggingEnabled,
1731
+ onError: () => core.initialization.error = new Error('Could not load Dynamic WebView')
1189
1732
  }, 'webview');
1190
1733
  };
1191
1734
  const createWebView = props => {
@@ -1193,17 +1736,1262 @@ const createWebView = props => {
1193
1736
  return WebViewWrapper;
1194
1737
  };
1195
1738
 
1196
- const ReactNativeExtension = ({
1197
- webviewUrl: _webviewUrl = 'http://localhost:4201',
1198
- webviewDebuggingEnabled
1199
- } = {}) => (_, core) => ({
1200
- reactNative: {
1201
- WebView: createWebView({
1202
- core,
1203
- webviewDebuggingEnabled,
1204
- webviewUrl: _webviewUrl
1205
- })
1739
+ /******************************************************************************
1740
+ Copyright (c) Microsoft Corporation.
1741
+
1742
+ Permission to use, copy, modify, and/or distribute this software for any
1743
+ purpose with or without fee is hereby granted.
1744
+
1745
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1746
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1747
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1748
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1749
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1750
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1751
+ PERFORMANCE OF THIS SOFTWARE.
1752
+ ***************************************************************************** */
1753
+
1754
+ function __awaiter(thisArg, _arguments, P, generator) {
1755
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1756
+ return new (P || (P = Promise))(function (resolve, reject) {
1757
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1758
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1759
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1760
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1761
+ });
1762
+ }
1763
+
1764
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1765
+ var e = new Error(message);
1766
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1767
+ };
1768
+
1769
+ const setupPasskeyHandler = core => {
1770
+ const passkeysRequestChannel = createRequestChannel(core.messageTransport);
1771
+ passkeysRequestChannel.handle('createPasskey', _a => __awaiter(void 0, [_a], void 0, function* ({
1772
+ publicKey
1773
+ }) {
1774
+ try {
1775
+ const {
1776
+ attestation
1777
+ } = yield createPasskey(publicKey);
1778
+ return {
1779
+ attestation
1780
+ };
1781
+ } catch (err) {
1782
+ logger.error(err);
1783
+ throw err;
1784
+ }
1785
+ }));
1786
+ passkeysRequestChannel.handle('passkeyStamp', (rpId, payload) => __awaiter(void 0, void 0, void 0, function* () {
1787
+ try {
1788
+ const stamper = new PasskeyStamper({
1789
+ rpId
1790
+ });
1791
+ const stamped = yield stamper.stamp(payload);
1792
+ return stamped;
1793
+ } catch (err) {
1794
+ logger.error(err);
1795
+ throw err;
1796
+ }
1797
+ }));
1798
+ };
1799
+
1800
+ var classof$3 = classofRaw$2;
1801
+ var global$8 = global$j;
1802
+
1803
+ var engineIsNode = classof$3(global$8.process) == 'process';
1804
+
1805
+ var getBuiltIn$3 = getBuiltIn$8;
1806
+ var definePropertyModule$1 = objectDefineProperty;
1807
+ var wellKnownSymbol$7 = wellKnownSymbol$e;
1808
+ var DESCRIPTORS = descriptors;
1809
+
1810
+ var SPECIES$2 = wellKnownSymbol$7('species');
1811
+
1812
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1813
+ var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1814
+ var defineProperty = definePropertyModule$1.f;
1815
+
1816
+ if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
1817
+ defineProperty(Constructor, SPECIES$2, {
1818
+ configurable: true,
1819
+ get: function () { return this; }
1820
+ });
1206
1821
  }
1207
- });
1822
+ };
1823
+
1824
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1825
+
1826
+ var $TypeError$5 = TypeError;
1827
+
1828
+ var anInstance$1 = function (it, Prototype) {
1829
+ if (isPrototypeOf$1(Prototype, it)) return it;
1830
+ throw $TypeError$5('Incorrect invocation');
1831
+ };
1832
+
1833
+ var wellKnownSymbol$6 = wellKnownSymbol$e;
1834
+
1835
+ var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1836
+ var test = {};
1837
+
1838
+ test[TO_STRING_TAG$1] = 'z';
1839
+
1840
+ var toStringTagSupport = String(test) === '[object z]';
1841
+
1842
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1843
+ var isCallable$5 = isCallable$k;
1844
+ var classofRaw$1 = classofRaw$2;
1845
+ var wellKnownSymbol$5 = wellKnownSymbol$e;
1846
+
1847
+ var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1848
+ var $Object = Object;
1849
+
1850
+ // ES3 wrong here
1851
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1852
+
1853
+ // fallback for IE11 Script Access Denied error
1854
+ var tryGet = function (it, key) {
1855
+ try {
1856
+ return it[key];
1857
+ } catch (error) { /* empty */ }
1858
+ };
1859
+
1860
+ // getting tag from ES6+ `Object.prototype.toString`
1861
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1862
+ var O, tag, result;
1863
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1864
+ // @@toStringTag case
1865
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1866
+ // builtinTag case
1867
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1868
+ // ES3 arguments fallback
1869
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1870
+ };
1871
+
1872
+ var uncurryThis$3 = functionUncurryThis;
1873
+ var fails$1 = fails$d;
1874
+ var isCallable$4 = isCallable$k;
1875
+ var classof$1 = classof$2;
1876
+ var getBuiltIn$2 = getBuiltIn$8;
1877
+ var inspectSource$1 = inspectSource$3;
1878
+
1879
+ var noop = function () { /* empty */ };
1880
+ var empty = [];
1881
+ var construct = getBuiltIn$2('Reflect', 'construct');
1882
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1883
+ var exec = uncurryThis$3(constructorRegExp.exec);
1884
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1885
+
1886
+ var isConstructorModern = function isConstructor(argument) {
1887
+ if (!isCallable$4(argument)) return false;
1888
+ try {
1889
+ construct(noop, empty, argument);
1890
+ return true;
1891
+ } catch (error) {
1892
+ return false;
1893
+ }
1894
+ };
1895
+
1896
+ var isConstructorLegacy = function isConstructor(argument) {
1897
+ if (!isCallable$4(argument)) return false;
1898
+ switch (classof$1(argument)) {
1899
+ case 'AsyncFunction':
1900
+ case 'GeneratorFunction':
1901
+ case 'AsyncGeneratorFunction': return false;
1902
+ }
1903
+ try {
1904
+ // we can't check .prototype since constructors produced by .bind haven't it
1905
+ // `Function#toString` throws on some built-it function in some legacy engines
1906
+ // (for example, `DOMQuad` and similar in FF41-)
1907
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1908
+ } catch (error) {
1909
+ return true;
1910
+ }
1911
+ };
1912
+
1913
+ isConstructorLegacy.sham = true;
1914
+
1915
+ // `IsConstructor` abstract operation
1916
+ // https://tc39.es/ecma262/#sec-isconstructor
1917
+ var isConstructor$1 = !construct || fails$1(function () {
1918
+ var called;
1919
+ return isConstructorModern(isConstructorModern.call)
1920
+ || !isConstructorModern(Object)
1921
+ || !isConstructorModern(function () { called = true; })
1922
+ || called;
1923
+ }) ? isConstructorLegacy : isConstructorModern;
1924
+
1925
+ var isConstructor = isConstructor$1;
1926
+ var tryToString$2 = tryToString$4;
1927
+
1928
+ var $TypeError$4 = TypeError;
1929
+
1930
+ // `Assert: IsConstructor(argument) is true`
1931
+ var aConstructor$1 = function (argument) {
1932
+ if (isConstructor(argument)) return argument;
1933
+ throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1934
+ };
1935
+
1936
+ var anObject$4 = anObject$a;
1937
+ var aConstructor = aConstructor$1;
1938
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1939
+ var wellKnownSymbol$4 = wellKnownSymbol$e;
1940
+
1941
+ var SPECIES$1 = wellKnownSymbol$4('species');
1942
+
1943
+ // `SpeciesConstructor` abstract operation
1944
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1945
+ var speciesConstructor$1 = function (O, defaultConstructor) {
1946
+ var C = anObject$4(O).constructor;
1947
+ var S;
1948
+ return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1949
+ };
1950
+
1951
+ var NATIVE_BIND$1 = functionBindNative;
1952
+
1953
+ var FunctionPrototype = Function.prototype;
1954
+ var apply$1 = FunctionPrototype.apply;
1955
+ var call$7 = FunctionPrototype.call;
1956
+
1957
+ // eslint-disable-next-line es/no-reflect -- safe
1958
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
1959
+ return call$7.apply(apply$1, arguments);
1960
+ });
1961
+
1962
+ var classofRaw = classofRaw$2;
1963
+ var uncurryThis$2 = functionUncurryThis;
1964
+
1965
+ var functionUncurryThisClause = function (fn) {
1966
+ // Nashorn bug:
1967
+ // https://github.com/zloirock/core-js/issues/1128
1968
+ // https://github.com/zloirock/core-js/issues/1130
1969
+ if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1970
+ };
1971
+
1972
+ var uncurryThis$1 = functionUncurryThisClause;
1973
+ var aCallable$5 = aCallable$7;
1974
+ var NATIVE_BIND = functionBindNative;
1975
+
1976
+ var bind$4 = uncurryThis$1(uncurryThis$1.bind);
1977
+
1978
+ // optional / simple context binding
1979
+ var functionBindContext = function (fn, that) {
1980
+ aCallable$5(fn);
1981
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1982
+ return fn.apply(that, arguments);
1983
+ };
1984
+ };
1985
+
1986
+ var uncurryThis = functionUncurryThis;
1987
+
1988
+ var arraySlice$1 = uncurryThis([].slice);
1989
+
1990
+ var $TypeError$3 = TypeError;
1991
+
1992
+ var validateArgumentsLength$1 = function (passed, required) {
1993
+ if (passed < required) throw $TypeError$3('Not enough arguments');
1994
+ return passed;
1995
+ };
1996
+
1997
+ var userAgent$2 = engineUserAgent;
1998
+
1999
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2000
+
2001
+ var global$7 = global$j;
2002
+ var apply = functionApply;
2003
+ var bind$3 = functionBindContext;
2004
+ var isCallable$3 = isCallable$k;
2005
+ var hasOwn = hasOwnProperty_1;
2006
+ var fails = fails$d;
2007
+ var html = html$2;
2008
+ var arraySlice = arraySlice$1;
2009
+ var createElement = documentCreateElement$2;
2010
+ var validateArgumentsLength = validateArgumentsLength$1;
2011
+ var IS_IOS$1 = engineIsIos;
2012
+ var IS_NODE$3 = engineIsNode;
2013
+
2014
+ var set = global$7.setImmediate;
2015
+ var clear = global$7.clearImmediate;
2016
+ var process$2 = global$7.process;
2017
+ var Dispatch = global$7.Dispatch;
2018
+ var Function$1 = global$7.Function;
2019
+ var MessageChannel = global$7.MessageChannel;
2020
+ var String$1 = global$7.String;
2021
+ var counter = 0;
2022
+ var queue$1 = {};
2023
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2024
+ var $location, defer, channel, port;
2025
+
2026
+ try {
2027
+ // Deno throws a ReferenceError on `location` access without `--location` flag
2028
+ $location = global$7.location;
2029
+ } catch (error) { /* empty */ }
2030
+
2031
+ var run = function (id) {
2032
+ if (hasOwn(queue$1, id)) {
2033
+ var fn = queue$1[id];
2034
+ delete queue$1[id];
2035
+ fn();
2036
+ }
2037
+ };
2038
+
2039
+ var runner = function (id) {
2040
+ return function () {
2041
+ run(id);
2042
+ };
2043
+ };
2044
+
2045
+ var listener = function (event) {
2046
+ run(event.data);
2047
+ };
2048
+
2049
+ var post = function (id) {
2050
+ // old engines have not location.origin
2051
+ global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2052
+ };
2053
+
2054
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2055
+ if (!set || !clear) {
2056
+ set = function setImmediate(handler) {
2057
+ validateArgumentsLength(arguments.length, 1);
2058
+ var fn = isCallable$3(handler) ? handler : Function$1(handler);
2059
+ var args = arraySlice(arguments, 1);
2060
+ queue$1[++counter] = function () {
2061
+ apply(fn, undefined, args);
2062
+ };
2063
+ defer(counter);
2064
+ return counter;
2065
+ };
2066
+ clear = function clearImmediate(id) {
2067
+ delete queue$1[id];
2068
+ };
2069
+ // Node.js 0.8-
2070
+ if (IS_NODE$3) {
2071
+ defer = function (id) {
2072
+ process$2.nextTick(runner(id));
2073
+ };
2074
+ // Sphere (JS game engine) Dispatch API
2075
+ } else if (Dispatch && Dispatch.now) {
2076
+ defer = function (id) {
2077
+ Dispatch.now(runner(id));
2078
+ };
2079
+ // Browsers with MessageChannel, includes WebWorkers
2080
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2081
+ } else if (MessageChannel && !IS_IOS$1) {
2082
+ channel = new MessageChannel();
2083
+ port = channel.port2;
2084
+ channel.port1.onmessage = listener;
2085
+ defer = bind$3(port.postMessage, port);
2086
+ // Browsers with postMessage, skip WebWorkers
2087
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2088
+ } else if (
2089
+ global$7.addEventListener &&
2090
+ isCallable$3(global$7.postMessage) &&
2091
+ !global$7.importScripts &&
2092
+ $location && $location.protocol !== 'file:' &&
2093
+ !fails(post)
2094
+ ) {
2095
+ defer = post;
2096
+ global$7.addEventListener('message', listener, false);
2097
+ // IE8-
2098
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
2099
+ defer = function (id) {
2100
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2101
+ html.removeChild(this);
2102
+ run(id);
2103
+ };
2104
+ };
2105
+ // Rest old browsers
2106
+ } else {
2107
+ defer = function (id) {
2108
+ setTimeout(runner(id), 0);
2109
+ };
2110
+ }
2111
+ }
2112
+
2113
+ var task$1 = {
2114
+ set: set,
2115
+ clear: clear
2116
+ };
2117
+
2118
+ var userAgent$1 = engineUserAgent;
2119
+ var global$6 = global$j;
2120
+
2121
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
2122
+
2123
+ var userAgent = engineUserAgent;
2124
+
2125
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2126
+
2127
+ var global$5 = global$j;
2128
+ var bind$2 = functionBindContext;
2129
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2130
+ var macrotask = task$1.set;
2131
+ var IS_IOS = engineIsIos;
2132
+ var IS_IOS_PEBBLE = engineIsIosPebble;
2133
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2134
+ var IS_NODE$2 = engineIsNode;
2135
+
2136
+ var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
2137
+ var document$2 = global$5.document;
2138
+ var process$1 = global$5.process;
2139
+ var Promise$1 = global$5.Promise;
2140
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
2141
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
2142
+ var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
2143
+
2144
+ var flush, head, last, notify$1, toggle, node, promise, then;
2145
+
2146
+ // modern engines have queueMicrotask method
2147
+ if (!queueMicrotask) {
2148
+ flush = function () {
2149
+ var parent, fn;
2150
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2151
+ while (head) {
2152
+ fn = head.fn;
2153
+ head = head.next;
2154
+ try {
2155
+ fn();
2156
+ } catch (error) {
2157
+ if (head) notify$1();
2158
+ else last = undefined;
2159
+ throw error;
2160
+ }
2161
+ } last = undefined;
2162
+ if (parent) parent.enter();
2163
+ };
2164
+
2165
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2166
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2167
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2168
+ toggle = true;
2169
+ node = document$2.createTextNode('');
2170
+ new MutationObserver(flush).observe(node, { characterData: true });
2171
+ notify$1 = function () {
2172
+ node.data = toggle = !toggle;
2173
+ };
2174
+ // environments with maybe non-completely correct, but existent Promise
2175
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2176
+ // Promise.resolve without an argument throws an error in LG WebOS 2
2177
+ promise = Promise$1.resolve(undefined);
2178
+ // workaround of WebKit ~ iOS Safari 10.1 bug
2179
+ promise.constructor = Promise$1;
2180
+ then = bind$2(promise.then, promise);
2181
+ notify$1 = function () {
2182
+ then(flush);
2183
+ };
2184
+ // Node.js without promises
2185
+ } else if (IS_NODE$2) {
2186
+ notify$1 = function () {
2187
+ process$1.nextTick(flush);
2188
+ };
2189
+ // for other environments - macrotask based on:
2190
+ // - setImmediate
2191
+ // - MessageChannel
2192
+ // - window.postMessage
2193
+ // - onreadystatechange
2194
+ // - setTimeout
2195
+ } else {
2196
+ // strange IE + webpack dev server bug - use .bind(global)
2197
+ macrotask = bind$2(macrotask, global$5);
2198
+ notify$1 = function () {
2199
+ macrotask(flush);
2200
+ };
2201
+ }
2202
+ }
2203
+
2204
+ var microtask$1 = queueMicrotask || function (fn) {
2205
+ var task = { fn: fn, next: undefined };
2206
+ if (last) last.next = task;
2207
+ if (!head) {
2208
+ head = task;
2209
+ notify$1();
2210
+ } last = task;
2211
+ };
2212
+
2213
+ var global$4 = global$j;
2214
+
2215
+ var hostReportErrors$1 = function (a, b) {
2216
+ var console = global$4.console;
2217
+ if (console && console.error) {
2218
+ arguments.length == 1 ? console.error(a) : console.error(a, b);
2219
+ }
2220
+ };
2221
+
2222
+ var perform$3 = function (exec) {
2223
+ try {
2224
+ return { error: false, value: exec() };
2225
+ } catch (error) {
2226
+ return { error: true, value: error };
2227
+ }
2228
+ };
2229
+
2230
+ var Queue$1 = function () {
2231
+ this.head = null;
2232
+ this.tail = null;
2233
+ };
2234
+
2235
+ Queue$1.prototype = {
2236
+ add: function (item) {
2237
+ var entry = { item: item, next: null };
2238
+ if (this.head) this.tail.next = entry;
2239
+ else this.head = entry;
2240
+ this.tail = entry;
2241
+ },
2242
+ get: function () {
2243
+ var entry = this.head;
2244
+ if (entry) {
2245
+ this.head = entry.next;
2246
+ if (this.tail === entry) this.tail = null;
2247
+ return entry.item;
2248
+ }
2249
+ }
2250
+ };
2251
+
2252
+ var queue = Queue$1;
2253
+
2254
+ var global$3 = global$j;
2255
+
2256
+ var promiseNativeConstructor = global$3.Promise;
2257
+
2258
+ /* global Deno -- Deno case */
2259
+
2260
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2261
+
2262
+ var IS_DENO$1 = engineIsDeno;
2263
+ var IS_NODE$1 = engineIsNode;
2264
+
2265
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2266
+ && typeof window == 'object'
2267
+ && typeof document == 'object';
2268
+
2269
+ var global$2 = global$j;
2270
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
2271
+ var isCallable$2 = isCallable$k;
2272
+ var isForced = isForced_1;
2273
+ var inspectSource = inspectSource$3;
2274
+ var wellKnownSymbol$3 = wellKnownSymbol$e;
2275
+ var IS_BROWSER = engineIsBrowser;
2276
+ var IS_DENO = engineIsDeno;
2277
+ var V8_VERSION = engineV8Version;
2278
+
2279
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2280
+ var SPECIES = wellKnownSymbol$3('species');
2281
+ var SUBCLASSING = false;
2282
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
2283
+
2284
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2285
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
2286
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
2287
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2288
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2289
+ // We can't detect it synchronously, so just check versions
2290
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2291
+ // We can't use @@species feature detection in V8 since it causes
2292
+ // deoptimization and performance degradation
2293
+ // https://github.com/zloirock/core-js/issues/679
2294
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2295
+ // Detect correctness of subclassing with @@species support
2296
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2297
+ var FakePromise = function (exec) {
2298
+ exec(function () { /* empty */ }, function () { /* empty */ });
2299
+ };
2300
+ var constructor = promise.constructor = {};
2301
+ constructor[SPECIES] = FakePromise;
2302
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2303
+ if (!SUBCLASSING) return true;
2304
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2305
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2306
+ });
2307
+
2308
+ var promiseConstructorDetection = {
2309
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2310
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2311
+ SUBCLASSING: SUBCLASSING
2312
+ };
2313
+
2314
+ var newPromiseCapability$2 = {};
2315
+
2316
+ var aCallable$4 = aCallable$7;
2317
+
2318
+ var $TypeError$2 = TypeError;
2319
+
2320
+ var PromiseCapability = function (C) {
2321
+ var resolve, reject;
2322
+ this.promise = new C(function ($$resolve, $$reject) {
2323
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
2324
+ resolve = $$resolve;
2325
+ reject = $$reject;
2326
+ });
2327
+ this.resolve = aCallable$4(resolve);
2328
+ this.reject = aCallable$4(reject);
2329
+ };
2330
+
2331
+ // `NewPromiseCapability` abstract operation
2332
+ // https://tc39.es/ecma262/#sec-newpromisecapability
2333
+ newPromiseCapability$2.f = function (C) {
2334
+ return new PromiseCapability(C);
2335
+ };
2336
+
2337
+ var $$6 = _export;
2338
+ var IS_NODE = engineIsNode;
2339
+ var global$1 = global$j;
2340
+ var call$6 = functionCall;
2341
+ var defineBuiltIn$1 = defineBuiltIn$5;
2342
+ var setPrototypeOf = objectSetPrototypeOf;
2343
+ var setToStringTag = setToStringTag$3;
2344
+ var setSpecies = setSpecies$1;
2345
+ var aCallable$3 = aCallable$7;
2346
+ var isCallable$1 = isCallable$k;
2347
+ var isObject$1 = isObject$8;
2348
+ var anInstance = anInstance$1;
2349
+ var speciesConstructor = speciesConstructor$1;
2350
+ var task = task$1.set;
2351
+ var microtask = microtask$1;
2352
+ var hostReportErrors = hostReportErrors$1;
2353
+ var perform$2 = perform$3;
2354
+ var Queue = queue;
2355
+ var InternalStateModule = internalState;
2356
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
2357
+ var PromiseConstructorDetection = promiseConstructorDetection;
2358
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2359
+
2360
+ var PROMISE = 'Promise';
2361
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2362
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2363
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2364
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2365
+ var setInternalState = InternalStateModule.set;
2366
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2367
+ var PromiseConstructor = NativePromiseConstructor$2;
2368
+ var PromisePrototype = NativePromisePrototype$1;
2369
+ var TypeError$1 = global$1.TypeError;
2370
+ var document$1 = global$1.document;
2371
+ var process = global$1.process;
2372
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2373
+ var newGenericPromiseCapability = newPromiseCapability$1;
2374
+
2375
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
2376
+ var UNHANDLED_REJECTION = 'unhandledrejection';
2377
+ var REJECTION_HANDLED = 'rejectionhandled';
2378
+ var PENDING = 0;
2379
+ var FULFILLED = 1;
2380
+ var REJECTED = 2;
2381
+ var HANDLED = 1;
2382
+ var UNHANDLED = 2;
2383
+
2384
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2385
+
2386
+ // helpers
2387
+ var isThenable = function (it) {
2388
+ var then;
2389
+ return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
2390
+ };
2391
+
2392
+ var callReaction = function (reaction, state) {
2393
+ var value = state.value;
2394
+ var ok = state.state == FULFILLED;
2395
+ var handler = ok ? reaction.ok : reaction.fail;
2396
+ var resolve = reaction.resolve;
2397
+ var reject = reaction.reject;
2398
+ var domain = reaction.domain;
2399
+ var result, then, exited;
2400
+ try {
2401
+ if (handler) {
2402
+ if (!ok) {
2403
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2404
+ state.rejection = HANDLED;
2405
+ }
2406
+ if (handler === true) result = value;
2407
+ else {
2408
+ if (domain) domain.enter();
2409
+ result = handler(value); // can throw
2410
+ if (domain) {
2411
+ domain.exit();
2412
+ exited = true;
2413
+ }
2414
+ }
2415
+ if (result === reaction.promise) {
2416
+ reject(TypeError$1('Promise-chain cycle'));
2417
+ } else if (then = isThenable(result)) {
2418
+ call$6(then, result, resolve, reject);
2419
+ } else resolve(result);
2420
+ } else reject(value);
2421
+ } catch (error) {
2422
+ if (domain && !exited) domain.exit();
2423
+ reject(error);
2424
+ }
2425
+ };
2426
+
2427
+ var notify = function (state, isReject) {
2428
+ if (state.notified) return;
2429
+ state.notified = true;
2430
+ microtask(function () {
2431
+ var reactions = state.reactions;
2432
+ var reaction;
2433
+ while (reaction = reactions.get()) {
2434
+ callReaction(reaction, state);
2435
+ }
2436
+ state.notified = false;
2437
+ if (isReject && !state.rejection) onUnhandled(state);
2438
+ });
2439
+ };
2440
+
2441
+ var dispatchEvent = function (name, promise, reason) {
2442
+ var event, handler;
2443
+ if (DISPATCH_EVENT) {
2444
+ event = document$1.createEvent('Event');
2445
+ event.promise = promise;
2446
+ event.reason = reason;
2447
+ event.initEvent(name, false, true);
2448
+ global$1.dispatchEvent(event);
2449
+ } else event = { promise: promise, reason: reason };
2450
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
2451
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2452
+ };
2453
+
2454
+ var onUnhandled = function (state) {
2455
+ call$6(task, global$1, function () {
2456
+ var promise = state.facade;
2457
+ var value = state.value;
2458
+ var IS_UNHANDLED = isUnhandled(state);
2459
+ var result;
2460
+ if (IS_UNHANDLED) {
2461
+ result = perform$2(function () {
2462
+ if (IS_NODE) {
2463
+ process.emit('unhandledRejection', value, promise);
2464
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2465
+ });
2466
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2467
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2468
+ if (result.error) throw result.value;
2469
+ }
2470
+ });
2471
+ };
2472
+
2473
+ var isUnhandled = function (state) {
2474
+ return state.rejection !== HANDLED && !state.parent;
2475
+ };
2476
+
2477
+ var onHandleUnhandled = function (state) {
2478
+ call$6(task, global$1, function () {
2479
+ var promise = state.facade;
2480
+ if (IS_NODE) {
2481
+ process.emit('rejectionHandled', promise);
2482
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2483
+ });
2484
+ };
2485
+
2486
+ var bind$1 = function (fn, state, unwrap) {
2487
+ return function (value) {
2488
+ fn(state, value, unwrap);
2489
+ };
2490
+ };
2491
+
2492
+ var internalReject = function (state, value, unwrap) {
2493
+ if (state.done) return;
2494
+ state.done = true;
2495
+ if (unwrap) state = unwrap;
2496
+ state.value = value;
2497
+ state.state = REJECTED;
2498
+ notify(state, true);
2499
+ };
2500
+
2501
+ var internalResolve = function (state, value, unwrap) {
2502
+ if (state.done) return;
2503
+ state.done = true;
2504
+ if (unwrap) state = unwrap;
2505
+ try {
2506
+ if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
2507
+ var then = isThenable(value);
2508
+ if (then) {
2509
+ microtask(function () {
2510
+ var wrapper = { done: false };
2511
+ try {
2512
+ call$6(then, value,
2513
+ bind$1(internalResolve, wrapper, state),
2514
+ bind$1(internalReject, wrapper, state)
2515
+ );
2516
+ } catch (error) {
2517
+ internalReject(wrapper, error, state);
2518
+ }
2519
+ });
2520
+ } else {
2521
+ state.value = value;
2522
+ state.state = FULFILLED;
2523
+ notify(state, false);
2524
+ }
2525
+ } catch (error) {
2526
+ internalReject({ done: false }, error, state);
2527
+ }
2528
+ };
2529
+
2530
+ // constructor polyfill
2531
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2532
+ // 25.4.3.1 Promise(executor)
2533
+ PromiseConstructor = function Promise(executor) {
2534
+ anInstance(this, PromisePrototype);
2535
+ aCallable$3(executor);
2536
+ call$6(Internal, this);
2537
+ var state = getInternalPromiseState(this);
2538
+ try {
2539
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2540
+ } catch (error) {
2541
+ internalReject(state, error);
2542
+ }
2543
+ };
2544
+
2545
+ PromisePrototype = PromiseConstructor.prototype;
2546
+
2547
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2548
+ Internal = function Promise(executor) {
2549
+ setInternalState(this, {
2550
+ type: PROMISE,
2551
+ done: false,
2552
+ notified: false,
2553
+ parent: false,
2554
+ reactions: new Queue(),
2555
+ rejection: false,
2556
+ state: PENDING,
2557
+ value: undefined
2558
+ });
2559
+ };
2560
+
2561
+ // `Promise.prototype.then` method
2562
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
2563
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2564
+ var state = getInternalPromiseState(this);
2565
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2566
+ state.parent = true;
2567
+ reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
2568
+ reaction.fail = isCallable$1(onRejected) && onRejected;
2569
+ reaction.domain = IS_NODE ? process.domain : undefined;
2570
+ if (state.state == PENDING) state.reactions.add(reaction);
2571
+ else microtask(function () {
2572
+ callReaction(reaction, state);
2573
+ });
2574
+ return reaction.promise;
2575
+ });
2576
+
2577
+ OwnPromiseCapability = function () {
2578
+ var promise = new Internal();
2579
+ var state = getInternalPromiseState(promise);
2580
+ this.promise = promise;
2581
+ this.resolve = bind$1(internalResolve, state);
2582
+ this.reject = bind$1(internalReject, state);
2583
+ };
2584
+
2585
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2586
+ return C === PromiseConstructor || C === PromiseWrapper
2587
+ ? new OwnPromiseCapability(C)
2588
+ : newGenericPromiseCapability(C);
2589
+ };
2590
+
2591
+ if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2592
+ nativeThen = NativePromisePrototype$1.then;
2593
+
2594
+ if (!NATIVE_PROMISE_SUBCLASSING) {
2595
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2596
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2597
+ var that = this;
2598
+ return new PromiseConstructor(function (resolve, reject) {
2599
+ call$6(nativeThen, that, resolve, reject);
2600
+ }).then(onFulfilled, onRejected);
2601
+ // https://github.com/zloirock/core-js/issues/640
2602
+ }, { unsafe: true });
2603
+ }
2604
+
2605
+ // make `.constructor === Promise` work for native promise-based APIs
2606
+ try {
2607
+ delete NativePromisePrototype$1.constructor;
2608
+ } catch (error) { /* empty */ }
2609
+
2610
+ // make `instanceof Promise` work for native promise-based APIs
2611
+ if (setPrototypeOf) {
2612
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
2613
+ }
2614
+ }
2615
+ }
2616
+
2617
+ $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2618
+ Promise: PromiseConstructor
2619
+ });
2620
+
2621
+ setToStringTag(PromiseConstructor, PROMISE, false);
2622
+ setSpecies(PROMISE);
2623
+
2624
+ var wellKnownSymbol$2 = wellKnownSymbol$e;
2625
+ var Iterators$1 = iterators;
2626
+
2627
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
2628
+ var ArrayPrototype = Array.prototype;
2629
+
2630
+ // check on default Array iterator
2631
+ var isArrayIteratorMethod$1 = function (it) {
2632
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2633
+ };
2634
+
2635
+ var classof = classof$2;
2636
+ var getMethod$1 = getMethod$3;
2637
+ var isNullOrUndefined = isNullOrUndefined$4;
2638
+ var Iterators = iterators;
2639
+ var wellKnownSymbol$1 = wellKnownSymbol$e;
2640
+
2641
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
2642
+
2643
+ var getIteratorMethod$2 = function (it) {
2644
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
2645
+ || getMethod$1(it, '@@iterator')
2646
+ || Iterators[classof(it)];
2647
+ };
2648
+
2649
+ var call$5 = functionCall;
2650
+ var aCallable$2 = aCallable$7;
2651
+ var anObject$3 = anObject$a;
2652
+ var tryToString$1 = tryToString$4;
2653
+ var getIteratorMethod$1 = getIteratorMethod$2;
2654
+
2655
+ var $TypeError$1 = TypeError;
2656
+
2657
+ var getIterator$1 = function (argument, usingIterator) {
2658
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2659
+ if (aCallable$2(iteratorMethod)) return anObject$3(call$5(iteratorMethod, argument));
2660
+ throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
2661
+ };
2662
+
2663
+ var call$4 = functionCall;
2664
+ var anObject$2 = anObject$a;
2665
+ var getMethod = getMethod$3;
2666
+
2667
+ var iteratorClose$1 = function (iterator, kind, value) {
2668
+ var innerResult, innerError;
2669
+ anObject$2(iterator);
2670
+ try {
2671
+ innerResult = getMethod(iterator, 'return');
2672
+ if (!innerResult) {
2673
+ if (kind === 'throw') throw value;
2674
+ return value;
2675
+ }
2676
+ innerResult = call$4(innerResult, iterator);
2677
+ } catch (error) {
2678
+ innerError = true;
2679
+ innerResult = error;
2680
+ }
2681
+ if (kind === 'throw') throw value;
2682
+ if (innerError) throw innerResult;
2683
+ anObject$2(innerResult);
2684
+ return value;
2685
+ };
2686
+
2687
+ var bind = functionBindContext;
2688
+ var call$3 = functionCall;
2689
+ var anObject$1 = anObject$a;
2690
+ var tryToString = tryToString$4;
2691
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
2692
+ var lengthOfArrayLike = lengthOfArrayLike$2;
2693
+ var isPrototypeOf = objectIsPrototypeOf;
2694
+ var getIterator = getIterator$1;
2695
+ var getIteratorMethod = getIteratorMethod$2;
2696
+ var iteratorClose = iteratorClose$1;
2697
+
2698
+ var $TypeError = TypeError;
2699
+
2700
+ var Result = function (stopped, result) {
2701
+ this.stopped = stopped;
2702
+ this.result = result;
2703
+ };
2704
+
2705
+ var ResultPrototype = Result.prototype;
2706
+
2707
+ var iterate$3 = function (iterable, unboundFunction, options) {
2708
+ var that = options && options.that;
2709
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2710
+ var IS_RECORD = !!(options && options.IS_RECORD);
2711
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2712
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
2713
+ var fn = bind(unboundFunction, that);
2714
+ var iterator, iterFn, index, length, result, next, step;
2715
+
2716
+ var stop = function (condition) {
2717
+ if (iterator) iteratorClose(iterator, 'normal', condition);
2718
+ return new Result(true, condition);
2719
+ };
2720
+
2721
+ var callFn = function (value) {
2722
+ if (AS_ENTRIES) {
2723
+ anObject$1(value);
2724
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2725
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
2726
+ };
2727
+
2728
+ if (IS_RECORD) {
2729
+ iterator = iterable.iterator;
2730
+ } else if (IS_ITERATOR) {
2731
+ iterator = iterable;
2732
+ } else {
2733
+ iterFn = getIteratorMethod(iterable);
2734
+ if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2735
+ // optimisation for array iterators
2736
+ if (isArrayIteratorMethod(iterFn)) {
2737
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2738
+ result = callFn(iterable[index]);
2739
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
2740
+ } return new Result(false);
2741
+ }
2742
+ iterator = getIterator(iterable, iterFn);
2743
+ }
2744
+
2745
+ next = IS_RECORD ? iterable.next : iterator.next;
2746
+ while (!(step = call$3(next, iterator)).done) {
2747
+ try {
2748
+ result = callFn(step.value);
2749
+ } catch (error) {
2750
+ iteratorClose(iterator, 'throw', error);
2751
+ }
2752
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2753
+ } return new Result(false);
2754
+ };
2755
+
2756
+ var wellKnownSymbol = wellKnownSymbol$e;
2757
+
2758
+ var ITERATOR = wellKnownSymbol('iterator');
2759
+ var SAFE_CLOSING = false;
2760
+
2761
+ try {
2762
+ var called = 0;
2763
+ var iteratorWithReturn = {
2764
+ next: function () {
2765
+ return { done: !!called++ };
2766
+ },
2767
+ 'return': function () {
2768
+ SAFE_CLOSING = true;
2769
+ }
2770
+ };
2771
+ iteratorWithReturn[ITERATOR] = function () {
2772
+ return this;
2773
+ };
2774
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2775
+ Array.from(iteratorWithReturn, function () { throw 2; });
2776
+ } catch (error) { /* empty */ }
2777
+
2778
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2779
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2780
+ var ITERATION_SUPPORT = false;
2781
+ try {
2782
+ var object = {};
2783
+ object[ITERATOR] = function () {
2784
+ return {
2785
+ next: function () {
2786
+ return { done: ITERATION_SUPPORT = true };
2787
+ }
2788
+ };
2789
+ };
2790
+ exec(object);
2791
+ } catch (error) { /* empty */ }
2792
+ return ITERATION_SUPPORT;
2793
+ };
2794
+
2795
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
2796
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2797
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2798
+
2799
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2800
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2801
+ });
2802
+
2803
+ var $$5 = _export;
2804
+ var call$2 = functionCall;
2805
+ var aCallable$1 = aCallable$7;
2806
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2807
+ var perform$1 = perform$3;
2808
+ var iterate$2 = iterate$3;
2809
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2810
+
2811
+ // `Promise.all` method
2812
+ // https://tc39.es/ecma262/#sec-promise.all
2813
+ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2814
+ all: function all(iterable) {
2815
+ var C = this;
2816
+ var capability = newPromiseCapabilityModule$2.f(C);
2817
+ var resolve = capability.resolve;
2818
+ var reject = capability.reject;
2819
+ var result = perform$1(function () {
2820
+ var $promiseResolve = aCallable$1(C.resolve);
2821
+ var values = [];
2822
+ var counter = 0;
2823
+ var remaining = 1;
2824
+ iterate$2(iterable, function (promise) {
2825
+ var index = counter++;
2826
+ var alreadyCalled = false;
2827
+ remaining++;
2828
+ call$2($promiseResolve, C, promise).then(function (value) {
2829
+ if (alreadyCalled) return;
2830
+ alreadyCalled = true;
2831
+ values[index] = value;
2832
+ --remaining || resolve(values);
2833
+ }, reject);
2834
+ });
2835
+ --remaining || resolve(values);
2836
+ });
2837
+ if (result.error) reject(result.value);
2838
+ return capability.promise;
2839
+ }
2840
+ });
2841
+
2842
+ var $$4 = _export;
2843
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2844
+ var NativePromiseConstructor = promiseNativeConstructor;
2845
+ var getBuiltIn$1 = getBuiltIn$8;
2846
+ var isCallable = isCallable$k;
2847
+ var defineBuiltIn = defineBuiltIn$5;
2848
+
2849
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2850
+
2851
+ // `Promise.prototype.catch` method
2852
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2853
+ $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2854
+ 'catch': function (onRejected) {
2855
+ return this.then(undefined, onRejected);
2856
+ }
2857
+ });
2858
+
2859
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2860
+ if (isCallable(NativePromiseConstructor)) {
2861
+ var method = getBuiltIn$1('Promise').prototype['catch'];
2862
+ if (NativePromisePrototype['catch'] !== method) {
2863
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2864
+ }
2865
+ }
2866
+
2867
+ var $$3 = _export;
2868
+ var call$1 = functionCall;
2869
+ var aCallable = aCallable$7;
2870
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2871
+ var perform = perform$3;
2872
+ var iterate$1 = iterate$3;
2873
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2874
+
2875
+ // `Promise.race` method
2876
+ // https://tc39.es/ecma262/#sec-promise.race
2877
+ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2878
+ race: function race(iterable) {
2879
+ var C = this;
2880
+ var capability = newPromiseCapabilityModule$1.f(C);
2881
+ var reject = capability.reject;
2882
+ var result = perform(function () {
2883
+ var $promiseResolve = aCallable(C.resolve);
2884
+ iterate$1(iterable, function (promise) {
2885
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
2886
+ });
2887
+ });
2888
+ if (result.error) reject(result.value);
2889
+ return capability.promise;
2890
+ }
2891
+ });
2892
+
2893
+ var $$2 = _export;
2894
+ var call = functionCall;
2895
+ var newPromiseCapabilityModule = newPromiseCapability$2;
2896
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2897
+
2898
+ // `Promise.reject` method
2899
+ // https://tc39.es/ecma262/#sec-promise.reject
2900
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2901
+ reject: function reject(r) {
2902
+ var capability = newPromiseCapabilityModule.f(this);
2903
+ call(capability.reject, undefined, r);
2904
+ return capability.promise;
2905
+ }
2906
+ });
2907
+
2908
+ var anObject = anObject$a;
2909
+ var isObject = isObject$8;
2910
+ var newPromiseCapability = newPromiseCapability$2;
2911
+
2912
+ var promiseResolve$1 = function (C, x) {
2913
+ anObject(C);
2914
+ if (isObject(x) && x.constructor === C) return x;
2915
+ var promiseCapability = newPromiseCapability.f(C);
2916
+ var resolve = promiseCapability.resolve;
2917
+ resolve(x);
2918
+ return promiseCapability.promise;
2919
+ };
2920
+
2921
+ var $$1 = _export;
2922
+ var getBuiltIn = getBuiltIn$8;
2923
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2924
+ var promiseResolve = promiseResolve$1;
2925
+
2926
+ getBuiltIn('Promise');
2927
+
2928
+ // `Promise.resolve` method
2929
+ // https://tc39.es/ecma262/#sec-promise.resolve
2930
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2931
+ resolve: function resolve(x) {
2932
+ return promiseResolve(this, x);
2933
+ }
2934
+ });
2935
+
2936
+ var toPropertyKey = toPropertyKey$3;
2937
+ var definePropertyModule = objectDefineProperty;
2938
+ var createPropertyDescriptor = createPropertyDescriptor$4;
2939
+
2940
+ var createProperty$1 = function (object, key, value) {
2941
+ var propertyKey = toPropertyKey(key);
2942
+ if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
2943
+ else object[propertyKey] = value;
2944
+ };
2945
+
2946
+ var $ = _export;
2947
+ var iterate = iterate$3;
2948
+ var createProperty = createProperty$1;
2949
+
2950
+ // `Object.fromEntries` method
2951
+ // https://github.com/tc39/proposal-object-from-entries
2952
+ $({ target: 'Object', stat: true }, {
2953
+ fromEntries: function fromEntries(iterable) {
2954
+ var obj = {};
2955
+ iterate(iterable, function (k, v) {
2956
+ createProperty(obj, k, v);
2957
+ }, { AS_ENTRIES: true });
2958
+ return obj;
2959
+ }
2960
+ });
2961
+
2962
+ const setupFetchHandler = core => {
2963
+ const fetchRequestChannel = createRequestChannel(core.messageTransport);
2964
+ fetchRequestChannel.handle('fetch', (input, init) => __awaiter(void 0, void 0, void 0, function* () {
2965
+ const response = yield fetch(input, init);
2966
+ const responseBody = yield response.text();
2967
+ return {
2968
+ body: responseBody,
2969
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2970
+ headers: Object.fromEntries(response.headers.entries()),
2971
+ status: response.status,
2972
+ statusText: response.statusText
2973
+ };
2974
+ }));
2975
+ };
2976
+
2977
+ const defaultWebviewUrl = `https://webview.dynamicauth.com/${version$1}`;
2978
+ const ReactNativeExtension = ({
2979
+ webviewUrl: _webviewUrl = defaultWebviewUrl,
2980
+ webviewDebuggingEnabled,
2981
+ appOrigin
2982
+ } = {}) => (_, core) => {
2983
+ if (appOrigin) core.manifest.setAppOrigin(appOrigin);
2984
+ setupPasskeyHandler(core);
2985
+ setupFetchHandler(core);
2986
+ return {
2987
+ reactNative: {
2988
+ WebView: createWebView({
2989
+ core,
2990
+ webviewDebuggingEnabled,
2991
+ webviewUrl: _webviewUrl
2992
+ })
2993
+ }
2994
+ };
2995
+ };
1208
2996
 
1209
2997
  export { ReactNativeExtension };