@ninetailed/experience.js 3.0.0-beta.15 → 3.0.0-beta.16

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.
@@ -1,5 +1,5 @@
1
1
  import unionBy from 'lodash/unionBy';
2
- import { NinetailedApiClient, logger, ConsoleLogSink, buildTrackEvent, buildIdentifyEvent, buildPageEvent, OnLogLogSink, OnErrorLogSink } from '@ninetailed/experience.js-shared';
2
+ import { NinetailedApiClient, logger, ConsoleLogSink, buildPageEvent, buildTrackEvent, buildIdentifyEvent, OnLogLogSink, OnErrorLogSink } from '@ninetailed/experience.js-shared';
3
3
  import Analytics from 'analytics';
4
4
  import flatten from 'lodash/flatten';
5
5
  import find from 'lodash/find';
@@ -14,7 +14,7 @@ var check = function (it) {
14
14
  };
15
15
 
16
16
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
17
- var global$K =
17
+ var global$n =
18
18
  // eslint-disable-next-line es/no-global-this -- safe
19
19
  check(typeof globalThis == 'object' && globalThis) ||
20
20
  check(typeof window == 'object' && window) ||
@@ -26,7 +26,7 @@ var global$K =
26
26
 
27
27
  var objectGetOwnPropertyDescriptor = {};
28
28
 
29
- var fails$k = function (exec) {
29
+ var fails$l = function (exec) {
30
30
  try {
31
31
  return !!exec();
32
32
  } catch (error) {
@@ -34,17 +34,18 @@ var fails$k = function (exec) {
34
34
  }
35
35
  };
36
36
 
37
- var fails$j = fails$k;
37
+ var fails$k = fails$l;
38
38
 
39
39
  // Detect IE8's incomplete defineProperty implementation
40
- var descriptors = !fails$j(function () {
40
+ var descriptors = !fails$k(function () {
41
41
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
42
42
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
43
43
  });
44
44
 
45
- var fails$i = fails$k;
45
+ var fails$j = fails$l;
46
46
 
47
- var functionBindNative = !fails$i(function () {
47
+ var functionBindNative = !fails$j(function () {
48
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
48
49
  var test = (function () { /* empty */ }).bind();
49
50
  // eslint-disable-next-line no-prototype-builtins -- safe
50
51
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -52,10 +53,10 @@ var functionBindNative = !fails$i(function () {
52
53
 
53
54
  var NATIVE_BIND$3 = functionBindNative;
54
55
 
55
- var call$f = Function.prototype.call;
56
+ var call$h = Function.prototype.call;
56
57
 
57
- var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () {
58
- return call$f.apply(call$f, arguments);
58
+ var functionCall = NATIVE_BIND$3 ? call$h.bind(call$h) : function () {
59
+ return call$h.apply(call$h, arguments);
59
60
  };
60
61
 
61
62
  var objectPropertyIsEnumerable = {};
@@ -74,7 +75,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
74
75
  return !!descriptor && descriptor.enumerable;
75
76
  } : $propertyIsEnumerable;
76
77
 
77
- var createPropertyDescriptor$4 = function (bitmap, value) {
78
+ var createPropertyDescriptor$3 = function (bitmap, value) {
78
79
  return {
79
80
  enumerable: !(bitmap & 1),
80
81
  configurable: !(bitmap & 2),
@@ -86,100 +87,123 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
86
87
  var NATIVE_BIND$2 = functionBindNative;
87
88
 
88
89
  var FunctionPrototype$2 = Function.prototype;
89
- var bind$5 = FunctionPrototype$2.bind;
90
- var call$e = FunctionPrototype$2.call;
91
- var uncurryThis$o = NATIVE_BIND$2 && bind$5.bind(call$e, call$e);
92
-
93
- var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
94
- return fn && uncurryThis$o(fn);
95
- } : function (fn) {
96
- return fn && function () {
97
- return call$e.apply(fn, arguments);
90
+ var call$g = FunctionPrototype$2.call;
91
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$g, call$g);
92
+
93
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
94
+ return function () {
95
+ return call$g.apply(fn, arguments);
98
96
  };
99
97
  };
100
98
 
101
- var uncurryThis$n = functionUncurryThis;
99
+ var uncurryThis$m = functionUncurryThis;
102
100
 
103
- var toString$a = uncurryThis$n({}.toString);
104
- var stringSlice$6 = uncurryThis$n(''.slice);
101
+ var toString$9 = uncurryThis$m({}.toString);
102
+ var stringSlice$5 = uncurryThis$m(''.slice);
105
103
 
106
- var classofRaw$1 = function (it) {
107
- return stringSlice$6(toString$a(it), 8, -1);
104
+ var classofRaw$2 = function (it) {
105
+ return stringSlice$5(toString$9(it), 8, -1);
108
106
  };
109
107
 
110
- var global$J = global$K;
111
- var uncurryThis$m = functionUncurryThis;
112
- var fails$h = fails$k;
113
- var classof$7 = classofRaw$1;
108
+ var uncurryThis$l = functionUncurryThis;
109
+ var fails$i = fails$l;
110
+ var classof$7 = classofRaw$2;
114
111
 
115
- var Object$5 = global$J.Object;
116
- var split = uncurryThis$m(''.split);
112
+ var $Object$4 = Object;
113
+ var split = uncurryThis$l(''.split);
117
114
 
118
115
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
119
- var indexedObject = fails$h(function () {
116
+ var indexedObject = fails$i(function () {
120
117
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
121
118
  // eslint-disable-next-line no-prototype-builtins -- safe
122
- return !Object$5('z').propertyIsEnumerable(0);
119
+ return !$Object$4('z').propertyIsEnumerable(0);
123
120
  }) ? function (it) {
124
- return classof$7(it) == 'String' ? split(it, '') : Object$5(it);
125
- } : Object$5;
121
+ return classof$7(it) == 'String' ? split(it, '') : $Object$4(it);
122
+ } : $Object$4;
123
+
124
+ // we can't use just `it == null` since of `document.all` special case
125
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
126
+ var isNullOrUndefined$5 = function (it) {
127
+ return it === null || it === undefined;
128
+ };
126
129
 
127
- var global$I = global$K;
130
+ var isNullOrUndefined$4 = isNullOrUndefined$5;
128
131
 
129
- var TypeError$h = global$I.TypeError;
132
+ var $TypeError$f = TypeError;
130
133
 
131
134
  // `RequireObjectCoercible` abstract operation
132
135
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
- var requireObjectCoercible$8 = function (it) {
134
- if (it == undefined) throw TypeError$h("Can't call method on " + it);
136
+ var requireObjectCoercible$7 = function (it) {
137
+ if (isNullOrUndefined$4(it)) throw $TypeError$f("Can't call method on " + it);
135
138
  return it;
136
139
  };
137
140
 
138
141
  // toObject with fallback for non-array-like ES3 strings
139
142
  var IndexedObject$2 = indexedObject;
140
- var requireObjectCoercible$7 = requireObjectCoercible$8;
143
+ var requireObjectCoercible$6 = requireObjectCoercible$7;
141
144
 
142
145
  var toIndexedObject$5 = function (it) {
143
- return IndexedObject$2(requireObjectCoercible$7(it));
146
+ return IndexedObject$2(requireObjectCoercible$6(it));
147
+ };
148
+
149
+ var documentAll$2 = typeof document == 'object' && document.all;
150
+
151
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
152
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
153
+
154
+ var documentAll_1 = {
155
+ all: documentAll$2,
156
+ IS_HTMLDDA: IS_HTMLDDA
144
157
  };
145
158
 
159
+ var $documentAll$1 = documentAll_1;
160
+
161
+ var documentAll$1 = $documentAll$1.all;
162
+
146
163
  // `IsCallable` abstract operation
147
164
  // https://tc39.es/ecma262/#sec-iscallable
148
- var isCallable$j = function (argument) {
165
+ var isCallable$m = $documentAll$1.IS_HTMLDDA ? function (argument) {
166
+ return typeof argument == 'function' || argument === documentAll$1;
167
+ } : function (argument) {
149
168
  return typeof argument == 'function';
150
169
  };
151
170
 
152
- var isCallable$i = isCallable$j;
171
+ var isCallable$l = isCallable$m;
172
+ var $documentAll = documentAll_1;
173
+
174
+ var documentAll = $documentAll.all;
153
175
 
154
- var isObject$8 = function (it) {
155
- return typeof it == 'object' ? it !== null : isCallable$i(it);
176
+ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
177
+ return typeof it == 'object' ? it !== null : isCallable$l(it) || it === documentAll;
178
+ } : function (it) {
179
+ return typeof it == 'object' ? it !== null : isCallable$l(it);
156
180
  };
157
181
 
158
- var global$H = global$K;
159
- var isCallable$h = isCallable$j;
182
+ var global$m = global$n;
183
+ var isCallable$k = isCallable$m;
160
184
 
161
185
  var aFunction = function (argument) {
162
- return isCallable$h(argument) ? argument : undefined;
186
+ return isCallable$k(argument) ? argument : undefined;
163
187
  };
164
188
 
165
- var getBuiltIn$7 = function (namespace, method) {
166
- return arguments.length < 2 ? aFunction(global$H[namespace]) : global$H[namespace] && global$H[namespace][method];
189
+ var getBuiltIn$8 = function (namespace, method) {
190
+ return arguments.length < 2 ? aFunction(global$m[namespace]) : global$m[namespace] && global$m[namespace][method];
167
191
  };
168
192
 
169
- var uncurryThis$l = functionUncurryThis;
193
+ var uncurryThis$k = functionUncurryThis;
170
194
 
171
- var objectIsPrototypeOf = uncurryThis$l({}.isPrototypeOf);
195
+ var objectIsPrototypeOf = uncurryThis$k({}.isPrototypeOf);
172
196
 
173
- var getBuiltIn$6 = getBuiltIn$7;
197
+ var getBuiltIn$7 = getBuiltIn$8;
174
198
 
175
- var engineUserAgent = getBuiltIn$6('navigator', 'userAgent') || '';
199
+ var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
176
200
 
177
- var global$G = global$K;
201
+ var global$l = global$n;
178
202
  var userAgent$3 = engineUserAgent;
179
203
 
180
- var process$3 = global$G.process;
181
- var Deno = global$G.Deno;
182
- var versions = process$3 && process$3.versions || Deno && Deno.version;
204
+ var process$3 = global$l.process;
205
+ var Deno$1 = global$l.Deno;
206
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
183
207
  var v8 = versions && versions.v8;
184
208
  var match, version;
185
209
 
@@ -205,10 +229,10 @@ var engineV8Version = version;
205
229
  /* eslint-disable es/no-symbol -- required for testing */
206
230
 
207
231
  var V8_VERSION$1 = engineV8Version;
208
- var fails$g = fails$k;
232
+ var fails$h = fails$l;
209
233
 
210
234
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
211
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$g(function () {
235
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
212
236
  var symbol = Symbol();
213
237
  // Chrome 38 Symbol has incorrect toString conversion
214
238
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -219,97 +243,93 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$g(function () {
219
243
 
220
244
  /* eslint-disable es/no-symbol -- required for testing */
221
245
 
222
- var NATIVE_SYMBOL$1 = nativeSymbol;
246
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
223
247
 
224
248
  var useSymbolAsUid = NATIVE_SYMBOL$1
225
249
  && !Symbol.sham
226
250
  && typeof Symbol.iterator == 'symbol';
227
251
 
228
- var global$F = global$K;
229
- var getBuiltIn$5 = getBuiltIn$7;
230
- var isCallable$g = isCallable$j;
252
+ var getBuiltIn$6 = getBuiltIn$8;
253
+ var isCallable$j = isCallable$m;
231
254
  var isPrototypeOf$2 = objectIsPrototypeOf;
232
255
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
233
256
 
234
- var Object$4 = global$F.Object;
257
+ var $Object$3 = Object;
235
258
 
236
259
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
237
260
  return typeof it == 'symbol';
238
261
  } : function (it) {
239
- var $Symbol = getBuiltIn$5('Symbol');
240
- return isCallable$g($Symbol) && isPrototypeOf$2($Symbol.prototype, Object$4(it));
262
+ var $Symbol = getBuiltIn$6('Symbol');
263
+ return isCallable$j($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
241
264
  };
242
265
 
243
- var global$E = global$K;
244
-
245
- var String$5 = global$E.String;
266
+ var $String$3 = String;
246
267
 
247
268
  var tryToString$4 = function (argument) {
248
269
  try {
249
- return String$5(argument);
270
+ return $String$3(argument);
250
271
  } catch (error) {
251
272
  return 'Object';
252
273
  }
253
274
  };
254
275
 
255
- var global$D = global$K;
256
- var isCallable$f = isCallable$j;
276
+ var isCallable$i = isCallable$m;
257
277
  var tryToString$3 = tryToString$4;
258
278
 
259
- var TypeError$g = global$D.TypeError;
279
+ var $TypeError$e = TypeError;
260
280
 
261
281
  // `Assert: IsCallable(argument) is true`
262
- var aCallable$6 = function (argument) {
263
- if (isCallable$f(argument)) return argument;
264
- throw TypeError$g(tryToString$3(argument) + ' is not a function');
282
+ var aCallable$8 = function (argument) {
283
+ if (isCallable$i(argument)) return argument;
284
+ throw $TypeError$e(tryToString$3(argument) + ' is not a function');
265
285
  };
266
286
 
267
- var aCallable$5 = aCallable$6;
287
+ var aCallable$7 = aCallable$8;
288
+ var isNullOrUndefined$3 = isNullOrUndefined$5;
268
289
 
269
290
  // `GetMethod` abstract operation
270
291
  // https://tc39.es/ecma262/#sec-getmethod
271
- var getMethod$5 = function (V, P) {
292
+ var getMethod$4 = function (V, P) {
272
293
  var func = V[P];
273
- return func == null ? undefined : aCallable$5(func);
294
+ return isNullOrUndefined$3(func) ? undefined : aCallable$7(func);
274
295
  };
275
296
 
276
- var global$C = global$K;
277
- var call$d = functionCall;
278
- var isCallable$e = isCallable$j;
279
- var isObject$7 = isObject$8;
297
+ var call$f = functionCall;
298
+ var isCallable$h = isCallable$m;
299
+ var isObject$8 = isObject$9;
280
300
 
281
- var TypeError$f = global$C.TypeError;
301
+ var $TypeError$d = TypeError;
282
302
 
283
303
  // `OrdinaryToPrimitive` abstract operation
284
304
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
285
305
  var ordinaryToPrimitive$1 = function (input, pref) {
286
306
  var fn, val;
287
- if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$7(val = call$d(fn, input))) return val;
288
- if (isCallable$e(fn = input.valueOf) && !isObject$7(val = call$d(fn, input))) return val;
289
- if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$7(val = call$d(fn, input))) return val;
290
- throw TypeError$f("Can't convert object to primitive value");
307
+ if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$8(val = call$f(fn, input))) return val;
308
+ if (isCallable$h(fn = input.valueOf) && !isObject$8(val = call$f(fn, input))) return val;
309
+ if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$8(val = call$f(fn, input))) return val;
310
+ throw $TypeError$d("Can't convert object to primitive value");
291
311
  };
292
312
 
293
313
  var shared$4 = {exports: {}};
294
314
 
295
- var global$B = global$K;
315
+ var global$k = global$n;
296
316
 
297
317
  // eslint-disable-next-line es/no-object-defineproperty -- safe
298
- var defineProperty$3 = Object.defineProperty;
318
+ var defineProperty$5 = Object.defineProperty;
299
319
 
300
- var setGlobal$3 = function (key, value) {
320
+ var defineGlobalProperty$3 = function (key, value) {
301
321
  try {
302
- defineProperty$3(global$B, key, { value: value, configurable: true, writable: true });
322
+ defineProperty$5(global$k, key, { value: value, configurable: true, writable: true });
303
323
  } catch (error) {
304
- global$B[key] = value;
324
+ global$k[key] = value;
305
325
  } return value;
306
326
  };
307
327
 
308
- var global$A = global$K;
309
- var setGlobal$2 = setGlobal$3;
328
+ var global$j = global$n;
329
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
310
330
 
311
331
  var SHARED = '__core-js_shared__';
312
- var store$3 = global$A[SHARED] || setGlobal$2(SHARED, {});
332
+ var store$3 = global$j[SHARED] || defineGlobalProperty$2(SHARED, {});
313
333
 
314
334
  var sharedStore = store$3;
315
335
 
@@ -318,54 +338,54 @@ var store$2 = sharedStore;
318
338
  (shared$4.exports = function (key, value) {
319
339
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
320
340
  })('versions', []).push({
321
- version: '3.21.1',
341
+ version: '3.26.1',
322
342
  mode: 'global',
323
343
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
324
- license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
344
+ license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
325
345
  source: 'https://github.com/zloirock/core-js'
326
346
  });
327
347
 
328
- var global$z = global$K;
329
- var requireObjectCoercible$6 = requireObjectCoercible$8;
348
+ var requireObjectCoercible$5 = requireObjectCoercible$7;
330
349
 
331
- var Object$3 = global$z.Object;
350
+ var $Object$2 = Object;
332
351
 
333
352
  // `ToObject` abstract operation
334
353
  // https://tc39.es/ecma262/#sec-toobject
335
354
  var toObject$5 = function (argument) {
336
- return Object$3(requireObjectCoercible$6(argument));
355
+ return $Object$2(requireObjectCoercible$5(argument));
337
356
  };
338
357
 
339
- var uncurryThis$k = functionUncurryThis;
358
+ var uncurryThis$j = functionUncurryThis;
340
359
  var toObject$4 = toObject$5;
341
360
 
342
- var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
361
+ var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
343
362
 
344
363
  // `HasOwnProperty` abstract operation
345
364
  // https://tc39.es/ecma262/#sec-hasownproperty
365
+ // eslint-disable-next-line es/no-object-hasown -- safe
346
366
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
347
367
  return hasOwnProperty(toObject$4(it), key);
348
368
  };
349
369
 
350
- var uncurryThis$j = functionUncurryThis;
370
+ var uncurryThis$i = functionUncurryThis;
351
371
 
352
372
  var id = 0;
353
373
  var postfix = Math.random();
354
- var toString$9 = uncurryThis$j(1.0.toString);
374
+ var toString$8 = uncurryThis$i(1.0.toString);
355
375
 
356
376
  var uid$2 = function (key) {
357
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
377
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id + postfix, 36);
358
378
  };
359
379
 
360
- var global$y = global$K;
380
+ var global$i = global$n;
361
381
  var shared$3 = shared$4.exports;
362
382
  var hasOwn$9 = hasOwnProperty_1;
363
383
  var uid$1 = uid$2;
364
- var NATIVE_SYMBOL = nativeSymbol;
384
+ var NATIVE_SYMBOL = symbolConstructorDetection;
365
385
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
366
386
 
367
387
  var WellKnownSymbolsStore = shared$3('wks');
368
- var Symbol$2 = global$y.Symbol;
388
+ var Symbol$2 = global$i.Symbol;
369
389
  var symbolFor = Symbol$2 && Symbol$2['for'];
370
390
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
371
391
 
@@ -382,28 +402,27 @@ var wellKnownSymbol$i = function (name) {
382
402
  } return WellKnownSymbolsStore[name];
383
403
  };
384
404
 
385
- var global$x = global$K;
386
- var call$c = functionCall;
387
- var isObject$6 = isObject$8;
405
+ var call$e = functionCall;
406
+ var isObject$7 = isObject$9;
388
407
  var isSymbol$1 = isSymbol$2;
389
- var getMethod$4 = getMethod$5;
408
+ var getMethod$3 = getMethod$4;
390
409
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
391
410
  var wellKnownSymbol$h = wellKnownSymbol$i;
392
411
 
393
- var TypeError$e = global$x.TypeError;
412
+ var $TypeError$c = TypeError;
394
413
  var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive');
395
414
 
396
415
  // `ToPrimitive` abstract operation
397
416
  // https://tc39.es/ecma262/#sec-toprimitive
398
417
  var toPrimitive$1 = function (input, pref) {
399
- if (!isObject$6(input) || isSymbol$1(input)) return input;
400
- var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
418
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
419
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
401
420
  var result;
402
421
  if (exoticToPrim) {
403
422
  if (pref === undefined) pref = 'default';
404
- result = call$c(exoticToPrim, input, pref);
405
- if (!isObject$6(result) || isSymbol$1(result)) return result;
406
- throw TypeError$e("Can't convert object to primitive value");
423
+ result = call$e(exoticToPrim, input, pref);
424
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
425
+ throw $TypeError$c("Can't convert object to primitive value");
407
426
  }
408
427
  if (pref === undefined) pref = 'number';
409
428
  return ordinaryToPrimitive(input, pref);
@@ -414,40 +433,40 @@ var isSymbol = isSymbol$2;
414
433
 
415
434
  // `ToPropertyKey` abstract operation
416
435
  // https://tc39.es/ecma262/#sec-topropertykey
417
- var toPropertyKey$3 = function (argument) {
436
+ var toPropertyKey$2 = function (argument) {
418
437
  var key = toPrimitive(argument, 'string');
419
438
  return isSymbol(key) ? key : key + '';
420
439
  };
421
440
 
422
- var global$w = global$K;
423
- var isObject$5 = isObject$8;
441
+ var global$h = global$n;
442
+ var isObject$6 = isObject$9;
424
443
 
425
- var document$3 = global$w.document;
444
+ var document$3 = global$h.document;
426
445
  // typeof document.createElement is 'object' in old IE
427
- var EXISTS$1 = isObject$5(document$3) && isObject$5(document$3.createElement);
446
+ var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
428
447
 
429
448
  var documentCreateElement$2 = function (it) {
430
449
  return EXISTS$1 ? document$3.createElement(it) : {};
431
450
  };
432
451
 
433
- var DESCRIPTORS$9 = descriptors;
434
- var fails$f = fails$k;
452
+ var DESCRIPTORS$a = descriptors;
453
+ var fails$g = fails$l;
435
454
  var createElement$1 = documentCreateElement$2;
436
455
 
437
456
  // Thanks to IE8 for its funny defineProperty
438
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$f(function () {
457
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$g(function () {
439
458
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
440
459
  return Object.defineProperty(createElement$1('div'), 'a', {
441
460
  get: function () { return 7; }
442
461
  }).a != 7;
443
462
  });
444
463
 
445
- var DESCRIPTORS$8 = descriptors;
446
- var call$b = functionCall;
464
+ var DESCRIPTORS$9 = descriptors;
465
+ var call$d = functionCall;
447
466
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
448
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
467
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
449
468
  var toIndexedObject$4 = toIndexedObject$5;
450
- var toPropertyKey$2 = toPropertyKey$3;
469
+ var toPropertyKey$1 = toPropertyKey$2;
451
470
  var hasOwn$8 = hasOwnProperty_1;
452
471
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
453
472
 
@@ -456,23 +475,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
456
475
 
457
476
  // `Object.getOwnPropertyDescriptor` method
458
477
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
459
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
478
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
460
479
  O = toIndexedObject$4(O);
461
- P = toPropertyKey$2(P);
480
+ P = toPropertyKey$1(P);
462
481
  if (IE8_DOM_DEFINE$1) try {
463
482
  return $getOwnPropertyDescriptor$1(O, P);
464
483
  } catch (error) { /* empty */ }
465
- if (hasOwn$8(O, P)) return createPropertyDescriptor$3(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
484
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$d(propertyIsEnumerableModule$1.f, O, P), O[P]);
466
485
  };
467
486
 
468
487
  var objectDefineProperty = {};
469
488
 
470
- var DESCRIPTORS$7 = descriptors;
471
- var fails$e = fails$k;
489
+ var DESCRIPTORS$8 = descriptors;
490
+ var fails$f = fails$l;
472
491
 
473
492
  // V8 ~ Chrome 36-
474
493
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
475
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
494
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$f(function () {
476
495
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
477
496
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
478
497
  value: 42,
@@ -480,26 +499,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
480
499
  }).prototype != 42;
481
500
  });
482
501
 
483
- var global$v = global$K;
484
- var isObject$4 = isObject$8;
502
+ var isObject$5 = isObject$9;
485
503
 
486
- var String$4 = global$v.String;
487
- var TypeError$d = global$v.TypeError;
504
+ var $String$2 = String;
505
+ var $TypeError$b = TypeError;
488
506
 
489
507
  // `Assert: Type(argument) is Object`
490
- var anObject$e = function (argument) {
491
- if (isObject$4(argument)) return argument;
492
- throw TypeError$d(String$4(argument) + ' is not an object');
508
+ var anObject$d = function (argument) {
509
+ if (isObject$5(argument)) return argument;
510
+ throw $TypeError$b($String$2(argument) + ' is not an object');
493
511
  };
494
512
 
495
- var global$u = global$K;
496
- var DESCRIPTORS$6 = descriptors;
513
+ var DESCRIPTORS$7 = descriptors;
497
514
  var IE8_DOM_DEFINE = ie8DomDefine;
498
515
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
499
- var anObject$d = anObject$e;
500
- var toPropertyKey$1 = toPropertyKey$3;
516
+ var anObject$c = anObject$d;
517
+ var toPropertyKey = toPropertyKey$2;
501
518
 
502
- var TypeError$c = global$u.TypeError;
519
+ var $TypeError$a = TypeError;
503
520
  // eslint-disable-next-line es/no-object-defineproperty -- safe
504
521
  var $defineProperty = Object.defineProperty;
505
522
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -510,10 +527,10 @@ var WRITABLE = 'writable';
510
527
 
511
528
  // `Object.defineProperty` method
512
529
  // https://tc39.es/ecma262/#sec-object.defineproperty
513
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
514
- anObject$d(O);
515
- P = toPropertyKey$1(P);
516
- anObject$d(Attributes);
530
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
531
+ anObject$c(O);
532
+ P = toPropertyKey(P);
533
+ anObject$c(Attributes);
517
534
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
518
535
  var current = $getOwnPropertyDescriptor(O, P);
519
536
  if (current && current[WRITABLE]) {
@@ -526,52 +543,69 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
526
543
  }
527
544
  } return $defineProperty(O, P, Attributes);
528
545
  } : $defineProperty : function defineProperty(O, P, Attributes) {
529
- anObject$d(O);
530
- P = toPropertyKey$1(P);
531
- anObject$d(Attributes);
546
+ anObject$c(O);
547
+ P = toPropertyKey(P);
548
+ anObject$c(Attributes);
532
549
  if (IE8_DOM_DEFINE) try {
533
550
  return $defineProperty(O, P, Attributes);
534
551
  } catch (error) { /* empty */ }
535
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$c('Accessors not supported');
552
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$a('Accessors not supported');
536
553
  if ('value' in Attributes) O[P] = Attributes.value;
537
554
  return O;
538
555
  };
539
556
 
540
- var DESCRIPTORS$5 = descriptors;
541
- var definePropertyModule$5 = objectDefineProperty;
542
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
557
+ var DESCRIPTORS$6 = descriptors;
558
+ var definePropertyModule$4 = objectDefineProperty;
559
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
543
560
 
544
- var createNonEnumerableProperty$6 = DESCRIPTORS$5 ? function (object, key, value) {
545
- return definePropertyModule$5.f(object, key, createPropertyDescriptor$2(1, value));
561
+ var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
562
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
546
563
  } : function (object, key, value) {
547
564
  object[key] = value;
548
565
  return object;
549
566
  };
550
567
 
551
- var redefine$6 = {exports: {}};
568
+ var makeBuiltIn$2 = {exports: {}};
552
569
 
553
- var uncurryThis$i = functionUncurryThis;
554
- var isCallable$d = isCallable$j;
570
+ var DESCRIPTORS$5 = descriptors;
571
+ var hasOwn$7 = hasOwnProperty_1;
572
+
573
+ var FunctionPrototype$1 = Function.prototype;
574
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
575
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
576
+
577
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
578
+ // additional protection from minified / mangled / dropped function names
579
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
580
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
581
+
582
+ var functionName = {
583
+ EXISTS: EXISTS,
584
+ PROPER: PROPER,
585
+ CONFIGURABLE: CONFIGURABLE
586
+ };
587
+
588
+ var uncurryThis$h = functionUncurryThis;
589
+ var isCallable$g = isCallable$m;
555
590
  var store$1 = sharedStore;
556
591
 
557
- var functionToString = uncurryThis$i(Function.toString);
592
+ var functionToString = uncurryThis$h(Function.toString);
558
593
 
559
594
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
560
- if (!isCallable$d(store$1.inspectSource)) {
595
+ if (!isCallable$g(store$1.inspectSource)) {
561
596
  store$1.inspectSource = function (it) {
562
597
  return functionToString(it);
563
598
  };
564
599
  }
565
600
 
566
- var inspectSource$4 = store$1.inspectSource;
601
+ var inspectSource$3 = store$1.inspectSource;
567
602
 
568
- var global$t = global$K;
569
- var isCallable$c = isCallable$j;
570
- var inspectSource$3 = inspectSource$4;
603
+ var global$g = global$n;
604
+ var isCallable$f = isCallable$m;
571
605
 
572
- var WeakMap$1 = global$t.WeakMap;
606
+ var WeakMap$1 = global$g.WeakMap;
573
607
 
574
- var nativeWeakMap = isCallable$c(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
608
+ var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
575
609
 
576
610
  var shared$2 = shared$4.exports;
577
611
  var uid = uid$2;
@@ -584,19 +618,18 @@ var sharedKey$3 = function (key) {
584
618
 
585
619
  var hiddenKeys$4 = {};
586
620
 
587
- var NATIVE_WEAK_MAP = nativeWeakMap;
588
- var global$s = global$K;
589
- var uncurryThis$h = functionUncurryThis;
590
- var isObject$3 = isObject$8;
591
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
592
- var hasOwn$7 = hasOwnProperty_1;
621
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
622
+ var global$f = global$n;
623
+ var isObject$4 = isObject$9;
624
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
625
+ var hasOwn$6 = hasOwnProperty_1;
593
626
  var shared$1 = sharedStore;
594
627
  var sharedKey$2 = sharedKey$3;
595
628
  var hiddenKeys$3 = hiddenKeys$4;
596
629
 
597
630
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
598
- var TypeError$b = global$s.TypeError;
599
- var WeakMap = global$s.WeakMap;
631
+ var TypeError$2 = global$f.TypeError;
632
+ var WeakMap = global$f.WeakMap;
600
633
  var set$1, get, has;
601
634
 
602
635
  var enforce = function (it) {
@@ -606,43 +639,45 @@ var enforce = function (it) {
606
639
  var getterFor = function (TYPE) {
607
640
  return function (it) {
608
641
  var state;
609
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
610
- throw TypeError$b('Incompatible receiver, ' + TYPE + ' required');
642
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
643
+ throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
611
644
  } return state;
612
645
  };
613
646
  };
614
647
 
615
648
  if (NATIVE_WEAK_MAP || shared$1.state) {
616
649
  var store = shared$1.state || (shared$1.state = new WeakMap());
617
- var wmget = uncurryThis$h(store.get);
618
- var wmhas = uncurryThis$h(store.has);
619
- var wmset = uncurryThis$h(store.set);
650
+ /* eslint-disable no-self-assign -- prototype methods protection */
651
+ store.get = store.get;
652
+ store.has = store.has;
653
+ store.set = store.set;
654
+ /* eslint-enable no-self-assign -- prototype methods protection */
620
655
  set$1 = function (it, metadata) {
621
- if (wmhas(store, it)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
656
+ if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
622
657
  metadata.facade = it;
623
- wmset(store, it, metadata);
658
+ store.set(it, metadata);
624
659
  return metadata;
625
660
  };
626
661
  get = function (it) {
627
- return wmget(store, it) || {};
662
+ return store.get(it) || {};
628
663
  };
629
664
  has = function (it) {
630
- return wmhas(store, it);
665
+ return store.has(it);
631
666
  };
632
667
  } else {
633
668
  var STATE = sharedKey$2('state');
634
669
  hiddenKeys$3[STATE] = true;
635
670
  set$1 = function (it, metadata) {
636
- if (hasOwn$7(it, STATE)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
671
+ if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
637
672
  metadata.facade = it;
638
- createNonEnumerableProperty$5(it, STATE, metadata);
673
+ createNonEnumerableProperty$4(it, STATE, metadata);
639
674
  return metadata;
640
675
  };
641
676
  get = function (it) {
642
- return hasOwn$7(it, STATE) ? it[STATE] : {};
677
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
643
678
  };
644
679
  has = function (it) {
645
- return hasOwn$7(it, STATE);
680
+ return hasOwn$6(it, STATE);
646
681
  };
647
682
  }
648
683
 
@@ -654,125 +689,148 @@ var internalState = {
654
689
  getterFor: getterFor
655
690
  };
656
691
 
657
- var DESCRIPTORS$4 = descriptors;
658
- var hasOwn$6 = hasOwnProperty_1;
659
-
660
- var FunctionPrototype$1 = Function.prototype;
661
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
662
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
663
-
664
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
665
- // additional protection from minified / mangled / dropped function names
666
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
667
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
668
-
669
- var functionName = {
670
- EXISTS: EXISTS,
671
- PROPER: PROPER,
672
- CONFIGURABLE: CONFIGURABLE
673
- };
674
-
675
- var global$r = global$K;
676
- var isCallable$b = isCallable$j;
692
+ var fails$e = fails$l;
693
+ var isCallable$e = isCallable$m;
677
694
  var hasOwn$5 = hasOwnProperty_1;
678
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
679
- var setGlobal$1 = setGlobal$3;
680
- var inspectSource$2 = inspectSource$4;
681
- var InternalStateModule$2 = internalState;
695
+ var DESCRIPTORS$4 = descriptors;
682
696
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
697
+ var inspectSource$2 = inspectSource$3;
698
+ var InternalStateModule$2 = internalState;
683
699
 
684
- var getInternalState$3 = InternalStateModule$2.get;
685
700
  var enforceInternalState = InternalStateModule$2.enforce;
701
+ var getInternalState$2 = InternalStateModule$2.get;
702
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
703
+ var defineProperty$4 = Object.defineProperty;
704
+
705
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$e(function () {
706
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
707
+ });
708
+
686
709
  var TEMPLATE = String(String).split('String');
687
710
 
688
- (redefine$6.exports = function (O, key, value, options) {
689
- var unsafe = options ? !!options.unsafe : false;
690
- var simple = options ? !!options.enumerable : false;
691
- var noTargetGet = options ? !!options.noTargetGet : false;
692
- var name = options && options.name !== undefined ? options.name : key;
693
- var state;
694
- if (isCallable$b(value)) {
695
- if (String(name).slice(0, 7) === 'Symbol(') {
696
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
697
- }
698
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
699
- createNonEnumerableProperty$4(value, 'name', name);
700
- }
701
- state = enforceInternalState(value);
702
- if (!state.source) {
703
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
704
- }
711
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
712
+ if (String(name).slice(0, 7) === 'Symbol(') {
713
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
705
714
  }
706
- if (O === global$r) {
707
- if (simple) O[key] = value;
708
- else setGlobal$1(key, value);
709
- return;
710
- } else if (!unsafe) {
711
- delete O[key];
712
- } else if (!noTargetGet && O[key]) {
713
- simple = true;
715
+ if (options && options.getter) name = 'get ' + name;
716
+ if (options && options.setter) name = 'set ' + name;
717
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
718
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
719
+ else value.name = name;
714
720
  }
715
- if (simple) O[key] = value;
716
- else createNonEnumerableProperty$4(O, key, value);
721
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
722
+ defineProperty$4(value, 'length', { value: options.arity });
723
+ }
724
+ try {
725
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
726
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
727
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
728
+ } else if (value.prototype) value.prototype = undefined;
729
+ } catch (error) { /* empty */ }
730
+ var state = enforceInternalState(value);
731
+ if (!hasOwn$5(state, 'source')) {
732
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
733
+ } return value;
734
+ };
735
+
717
736
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
718
- })(Function.prototype, 'toString', function toString() {
719
- return isCallable$b(this) && getInternalState$3(this).source || inspectSource$2(this);
720
- });
737
+ // eslint-disable-next-line no-extend-native -- required
738
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
739
+ return isCallable$e(this) && getInternalState$2(this).source || inspectSource$2(this);
740
+ }, 'toString');
741
+
742
+ var isCallable$d = isCallable$m;
743
+ var definePropertyModule$3 = objectDefineProperty;
744
+ var makeBuiltIn = makeBuiltIn$2.exports;
745
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
746
+
747
+ var defineBuiltIn$6 = function (O, key, value, options) {
748
+ if (!options) options = {};
749
+ var simple = options.enumerable;
750
+ var name = options.name !== undefined ? options.name : key;
751
+ if (isCallable$d(value)) makeBuiltIn(value, name, options);
752
+ if (options.global) {
753
+ if (simple) O[key] = value;
754
+ else defineGlobalProperty$1(key, value);
755
+ } else {
756
+ try {
757
+ if (!options.unsafe) delete O[key];
758
+ else if (O[key]) simple = true;
759
+ } catch (error) { /* empty */ }
760
+ if (simple) O[key] = value;
761
+ else definePropertyModule$3.f(O, key, {
762
+ value: value,
763
+ enumerable: false,
764
+ configurable: !options.nonConfigurable,
765
+ writable: !options.nonWritable
766
+ });
767
+ } return O;
768
+ };
721
769
 
722
770
  var objectGetOwnPropertyNames = {};
723
771
 
724
772
  var ceil = Math.ceil;
725
773
  var floor$1 = Math.floor;
726
774
 
775
+ // `Math.trunc` method
776
+ // https://tc39.es/ecma262/#sec-math.trunc
777
+ // eslint-disable-next-line es/no-math-trunc -- safe
778
+ var mathTrunc = Math.trunc || function trunc(x) {
779
+ var n = +x;
780
+ return (n > 0 ? floor$1 : ceil)(n);
781
+ };
782
+
783
+ var trunc = mathTrunc;
784
+
727
785
  // `ToIntegerOrInfinity` abstract operation
728
786
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
729
787
  var toIntegerOrInfinity$4 = function (argument) {
730
788
  var number = +argument;
731
- // eslint-disable-next-line no-self-compare -- safe
732
- return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
789
+ // eslint-disable-next-line no-self-compare -- NaN check
790
+ return number !== number || number === 0 ? 0 : trunc(number);
733
791
  };
734
792
 
735
793
  var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
736
794
 
737
- var max$2 = Math.max;
738
- var min$4 = Math.min;
795
+ var max$1 = Math.max;
796
+ var min$3 = Math.min;
739
797
 
740
798
  // Helper for a popular repeating case of the spec:
741
799
  // Let integer be ? ToInteger(index).
742
800
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
743
- var toAbsoluteIndex$2 = function (index, length) {
801
+ var toAbsoluteIndex$1 = function (index, length) {
744
802
  var integer = toIntegerOrInfinity$3(index);
745
- return integer < 0 ? max$2(integer + length, 0) : min$4(integer, length);
803
+ return integer < 0 ? max$1(integer + length, 0) : min$3(integer, length);
746
804
  };
747
805
 
748
806
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
749
807
 
750
- var min$3 = Math.min;
808
+ var min$2 = Math.min;
751
809
 
752
810
  // `ToLength` abstract operation
753
811
  // https://tc39.es/ecma262/#sec-tolength
754
- var toLength$4 = function (argument) {
755
- return argument > 0 ? min$3(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
812
+ var toLength$3 = function (argument) {
813
+ return argument > 0 ? min$2(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
756
814
  };
757
815
 
758
- var toLength$3 = toLength$4;
816
+ var toLength$2 = toLength$3;
759
817
 
760
818
  // `LengthOfArrayLike` abstract operation
761
819
  // https://tc39.es/ecma262/#sec-lengthofarraylike
762
- var lengthOfArrayLike$4 = function (obj) {
763
- return toLength$3(obj.length);
820
+ var lengthOfArrayLike$3 = function (obj) {
821
+ return toLength$2(obj.length);
764
822
  };
765
823
 
766
824
  var toIndexedObject$3 = toIndexedObject$5;
767
- var toAbsoluteIndex$1 = toAbsoluteIndex$2;
768
- var lengthOfArrayLike$3 = lengthOfArrayLike$4;
825
+ var toAbsoluteIndex = toAbsoluteIndex$1;
826
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
769
827
 
770
828
  // `Array.prototype.{ indexOf, includes }` methods implementation
771
829
  var createMethod$3 = function (IS_INCLUDES) {
772
830
  return function ($this, el, fromIndex) {
773
831
  var O = toIndexedObject$3($this);
774
- var length = lengthOfArrayLike$3(O);
775
- var index = toAbsoluteIndex$1(fromIndex, length);
832
+ var length = lengthOfArrayLike$2(O);
833
+ var index = toAbsoluteIndex(fromIndex, length);
776
834
  var value;
777
835
  // Array#includes uses SameValueZero equality algorithm
778
836
  // eslint-disable-next-line no-self-compare -- NaN check
@@ -802,17 +860,17 @@ var toIndexedObject$2 = toIndexedObject$5;
802
860
  var indexOf$1 = arrayIncludes.indexOf;
803
861
  var hiddenKeys$2 = hiddenKeys$4;
804
862
 
805
- var push$2 = uncurryThis$g([].push);
863
+ var push$1 = uncurryThis$g([].push);
806
864
 
807
865
  var objectKeysInternal = function (object, names) {
808
866
  var O = toIndexedObject$2(object);
809
867
  var i = 0;
810
868
  var result = [];
811
869
  var key;
812
- for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$2(result, key);
870
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
813
871
  // Don't enum bug & hidden keys
814
872
  while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
815
- ~indexOf$1(result, key) || push$2(result, key);
873
+ ~indexOf$1(result, key) || push$1(result, key);
816
874
  }
817
875
  return result;
818
876
  };
@@ -845,17 +903,17 @@ var objectGetOwnPropertySymbols = {};
845
903
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
846
904
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
847
905
 
848
- var getBuiltIn$4 = getBuiltIn$7;
906
+ var getBuiltIn$5 = getBuiltIn$8;
849
907
  var uncurryThis$f = functionUncurryThis;
850
908
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
851
909
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
852
- var anObject$c = anObject$e;
910
+ var anObject$b = anObject$d;
853
911
 
854
912
  var concat$2 = uncurryThis$f([].concat);
855
913
 
856
914
  // all object keys, includes non-enumerable and symbols
857
- var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
858
- var keys = getOwnPropertyNamesModule.f(anObject$c(it));
915
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
916
+ var keys = getOwnPropertyNamesModule.f(anObject$b(it));
859
917
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
860
918
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
861
919
  };
@@ -863,11 +921,11 @@ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
863
921
  var hasOwn$3 = hasOwnProperty_1;
864
922
  var ownKeys = ownKeys$1;
865
923
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
866
- var definePropertyModule$4 = objectDefineProperty;
924
+ var definePropertyModule$2 = objectDefineProperty;
867
925
 
868
926
  var copyConstructorProperties$1 = function (target, source, exceptions) {
869
927
  var keys = ownKeys(source);
870
- var defineProperty = definePropertyModule$4.f;
928
+ var defineProperty = definePropertyModule$2.f;
871
929
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
872
930
  for (var i = 0; i < keys.length; i++) {
873
931
  var key = keys[i];
@@ -877,8 +935,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
877
935
  }
878
936
  };
879
937
 
880
- var fails$d = fails$k;
881
- var isCallable$a = isCallable$j;
938
+ var fails$d = fails$l;
939
+ var isCallable$c = isCallable$m;
882
940
 
883
941
  var replacement = /#|\.prototype\./;
884
942
 
@@ -886,7 +944,7 @@ var isForced$2 = function (feature, detection) {
886
944
  var value = data[normalize$1(feature)];
887
945
  return value == POLYFILL ? true
888
946
  : value == NATIVE ? false
889
- : isCallable$a(detection) ? fails$d(detection)
947
+ : isCallable$c(detection) ? fails$d(detection)
890
948
  : !!detection;
891
949
  };
892
950
 
@@ -900,28 +958,28 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
900
958
 
901
959
  var isForced_1 = isForced$2;
902
960
 
903
- var global$q = global$K;
961
+ var global$e = global$n;
904
962
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
905
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
906
- var redefine$5 = redefine$6.exports;
907
- var setGlobal = setGlobal$3;
963
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
964
+ var defineBuiltIn$5 = defineBuiltIn$6;
965
+ var defineGlobalProperty = defineGlobalProperty$3;
908
966
  var copyConstructorProperties = copyConstructorProperties$1;
909
967
  var isForced$1 = isForced_1;
910
968
 
911
969
  /*
912
- options.target - name of the target object
913
- options.global - target is the global object
914
- options.stat - export as static methods of target
915
- options.proto - export as prototype methods of target
916
- options.real - real prototype method for the `pure` version
917
- options.forced - export even if the native feature is available
918
- options.bind - bind methods to the target, required for the `pure` version
919
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
920
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
921
- options.sham - add a flag to not completely full polyfills
922
- options.enumerable - export as enumerable property
923
- options.noTargetGet - prevent calling a getter on target
924
- options.name - the .name of the function if it does not match the key
970
+ options.target - name of the target object
971
+ options.global - target is the global object
972
+ options.stat - export as static methods of target
973
+ options.proto - export as prototype methods of target
974
+ options.real - real prototype method for the `pure` version
975
+ options.forced - export even if the native feature is available
976
+ options.bind - bind methods to the target, required for the `pure` version
977
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
978
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
979
+ options.sham - add a flag to not completely full polyfills
980
+ options.enumerable - export as enumerable property
981
+ options.dontCallGetSet - prevent calling a getter on target
982
+ options.name - the .name of the function if it does not match the key
925
983
  */
926
984
  var _export = function (options, source) {
927
985
  var TARGET = options.target;
@@ -929,15 +987,15 @@ var _export = function (options, source) {
929
987
  var STATIC = options.stat;
930
988
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
931
989
  if (GLOBAL) {
932
- target = global$q;
990
+ target = global$e;
933
991
  } else if (STATIC) {
934
- target = global$q[TARGET] || setGlobal(TARGET, {});
992
+ target = global$e[TARGET] || defineGlobalProperty(TARGET, {});
935
993
  } else {
936
- target = (global$q[TARGET] || {}).prototype;
994
+ target = (global$e[TARGET] || {}).prototype;
937
995
  }
938
996
  if (target) for (key in source) {
939
997
  sourceProperty = source[key];
940
- if (options.noTargetGet) {
998
+ if (options.dontCallGetSet) {
941
999
  descriptor = getOwnPropertyDescriptor$2(target, key);
942
1000
  targetProperty = descriptor && descriptor.value;
943
1001
  } else targetProperty = target[key];
@@ -951,37 +1009,29 @@ var _export = function (options, source) {
951
1009
  if (options.sham || (targetProperty && targetProperty.sham)) {
952
1010
  createNonEnumerableProperty$3(sourceProperty, 'sham', true);
953
1011
  }
954
- // extend global
955
- redefine$5(target, key, sourceProperty, options);
1012
+ defineBuiltIn$5(target, key, sourceProperty, options);
956
1013
  }
957
1014
  };
958
1015
 
959
- var global$p = global$K;
960
-
961
- var nativePromiseConstructor = global$p.Promise;
1016
+ var classof$6 = classofRaw$2;
1017
+ var global$d = global$n;
962
1018
 
963
- var redefine$4 = redefine$6.exports;
964
-
965
- var redefineAll$1 = function (target, src, options) {
966
- for (var key in src) redefine$4(target, key, src[key], options);
967
- return target;
968
- };
1019
+ var engineIsNode = classof$6(global$d.process) == 'process';
969
1020
 
970
- var global$o = global$K;
971
- var isCallable$9 = isCallable$j;
1021
+ var isCallable$b = isCallable$m;
972
1022
 
973
- var String$3 = global$o.String;
974
- var TypeError$a = global$o.TypeError;
1023
+ var $String$1 = String;
1024
+ var $TypeError$9 = TypeError;
975
1025
 
976
1026
  var aPossiblePrototype$1 = function (argument) {
977
- if (typeof argument == 'object' || isCallable$9(argument)) return argument;
978
- throw TypeError$a("Can't set " + String$3(argument) + ' as a prototype');
1027
+ if (typeof argument == 'object' || isCallable$b(argument)) return argument;
1028
+ throw $TypeError$9("Can't set " + $String$1(argument) + ' as a prototype');
979
1029
  };
980
1030
 
981
1031
  /* eslint-disable no-proto -- safe */
982
1032
 
983
1033
  var uncurryThis$e = functionUncurryThis;
984
- var anObject$b = anObject$e;
1034
+ var anObject$a = anObject$d;
985
1035
  var aPossiblePrototype = aPossiblePrototype$1;
986
1036
 
987
1037
  // `Object.setPrototypeOf` method
@@ -999,7 +1049,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
999
1049
  CORRECT_SETTER = test instanceof Array;
1000
1050
  } catch (error) { /* empty */ }
1001
1051
  return function setPrototypeOf(O, proto) {
1002
- anObject$b(O);
1052
+ anObject$a(O);
1003
1053
  aPossiblePrototype(proto);
1004
1054
  if (CORRECT_SETTER) setter(O, proto);
1005
1055
  else O.__proto__ = proto;
@@ -1007,7 +1057,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1007
1057
  };
1008
1058
  }() : undefined);
1009
1059
 
1010
- var defineProperty$2 = objectDefineProperty.f;
1060
+ var defineProperty$3 = objectDefineProperty.f;
1011
1061
  var hasOwn$2 = hasOwnProperty_1;
1012
1062
  var wellKnownSymbol$g = wellKnownSymbol$i;
1013
1063
 
@@ -1016,20 +1066,20 @@ var TO_STRING_TAG$3 = wellKnownSymbol$g('toStringTag');
1016
1066
  var setToStringTag$3 = function (target, TAG, STATIC) {
1017
1067
  if (target && !STATIC) target = target.prototype;
1018
1068
  if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1019
- defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1069
+ defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1020
1070
  }
1021
1071
  };
1022
1072
 
1023
- var getBuiltIn$3 = getBuiltIn$7;
1024
- var definePropertyModule$3 = objectDefineProperty;
1073
+ var getBuiltIn$4 = getBuiltIn$8;
1074
+ var definePropertyModule$1 = objectDefineProperty;
1025
1075
  var wellKnownSymbol$f = wellKnownSymbol$i;
1026
1076
  var DESCRIPTORS$3 = descriptors;
1027
1077
 
1028
1078
  var SPECIES$3 = wellKnownSymbol$f('species');
1029
1079
 
1030
1080
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1031
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1032
- var defineProperty = definePropertyModule$3.f;
1081
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1082
+ var defineProperty = definePropertyModule$1.f;
1033
1083
 
1034
1084
  if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
1035
1085
  defineProperty(Constructor, SPECIES$3, {
@@ -1039,63 +1089,34 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1039
1089
  }
1040
1090
  };
1041
1091
 
1042
- var global$n = global$K;
1043
1092
  var isPrototypeOf$1 = objectIsPrototypeOf;
1044
1093
 
1045
- var TypeError$9 = global$n.TypeError;
1094
+ var $TypeError$8 = TypeError;
1046
1095
 
1047
1096
  var anInstance$1 = function (it, Prototype) {
1048
1097
  if (isPrototypeOf$1(Prototype, it)) return it;
1049
- throw TypeError$9('Incorrect invocation');
1050
- };
1051
-
1052
- var uncurryThis$d = functionUncurryThis;
1053
- var aCallable$4 = aCallable$6;
1054
- var NATIVE_BIND$1 = functionBindNative;
1055
-
1056
- var bind$4 = uncurryThis$d(uncurryThis$d.bind);
1057
-
1058
- // optional / simple context binding
1059
- var functionBindContext = function (fn, that) {
1060
- aCallable$4(fn);
1061
- return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
1062
- return fn.apply(that, arguments);
1063
- };
1098
+ throw $TypeError$8('Incorrect invocation');
1064
1099
  };
1065
1100
 
1066
- var iterators = {};
1067
-
1068
1101
  var wellKnownSymbol$e = wellKnownSymbol$i;
1069
- var Iterators$4 = iterators;
1070
-
1071
- var ITERATOR$6 = wellKnownSymbol$e('iterator');
1072
- var ArrayPrototype$1 = Array.prototype;
1073
-
1074
- // check on default Array iterator
1075
- var isArrayIteratorMethod$1 = function (it) {
1076
- return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$6] === it);
1077
- };
1078
-
1079
- var wellKnownSymbol$d = wellKnownSymbol$i;
1080
1102
 
1081
- var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
1103
+ var TO_STRING_TAG$2 = wellKnownSymbol$e('toStringTag');
1082
1104
  var test = {};
1083
1105
 
1084
1106
  test[TO_STRING_TAG$2] = 'z';
1085
1107
 
1086
1108
  var toStringTagSupport = String(test) === '[object z]';
1087
1109
 
1088
- var global$m = global$K;
1089
1110
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1090
- var isCallable$8 = isCallable$j;
1091
- var classofRaw = classofRaw$1;
1092
- var wellKnownSymbol$c = wellKnownSymbol$i;
1111
+ var isCallable$a = isCallable$m;
1112
+ var classofRaw$1 = classofRaw$2;
1113
+ var wellKnownSymbol$d = wellKnownSymbol$i;
1093
1114
 
1094
- var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
1095
- var Object$2 = global$m.Object;
1115
+ var TO_STRING_TAG$1 = wellKnownSymbol$d('toStringTag');
1116
+ var $Object$1 = Object;
1096
1117
 
1097
1118
  // ES3 wrong here
1098
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1119
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1099
1120
 
1100
1121
  // fallback for IE11 Script Access Denied error
1101
1122
  var tryGet = function (it, key) {
@@ -1105,279 +1126,143 @@ var tryGet = function (it, key) {
1105
1126
  };
1106
1127
 
1107
1128
  // getting tag from ES6+ `Object.prototype.toString`
1108
- var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1129
+ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1109
1130
  var O, tag, result;
1110
1131
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1111
1132
  // @@toStringTag case
1112
- : typeof (tag = tryGet(O = Object$2(it), TO_STRING_TAG$1)) == 'string' ? tag
1133
+ : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1113
1134
  // builtinTag case
1114
- : CORRECT_ARGUMENTS ? classofRaw(O)
1135
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1115
1136
  // ES3 arguments fallback
1116
- : (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1137
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
1117
1138
  };
1118
1139
 
1119
- var classof$5 = classof$6;
1120
- var getMethod$3 = getMethod$5;
1121
- var Iterators$3 = iterators;
1122
- var wellKnownSymbol$b = wellKnownSymbol$i;
1140
+ var uncurryThis$d = functionUncurryThis;
1141
+ var fails$c = fails$l;
1142
+ var isCallable$9 = isCallable$m;
1143
+ var classof$4 = classof$5;
1144
+ var getBuiltIn$3 = getBuiltIn$8;
1145
+ var inspectSource$1 = inspectSource$3;
1123
1146
 
1124
- var ITERATOR$5 = wellKnownSymbol$b('iterator');
1147
+ var noop = function () { /* empty */ };
1148
+ var empty = [];
1149
+ var construct = getBuiltIn$3('Reflect', 'construct');
1150
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1151
+ var exec$2 = uncurryThis$d(constructorRegExp.exec);
1152
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1125
1153
 
1126
- var getIteratorMethod$2 = function (it) {
1127
- if (it != undefined) return getMethod$3(it, ITERATOR$5)
1128
- || getMethod$3(it, '@@iterator')
1129
- || Iterators$3[classof$5(it)];
1154
+ var isConstructorModern = function isConstructor(argument) {
1155
+ if (!isCallable$9(argument)) return false;
1156
+ try {
1157
+ construct(noop, empty, argument);
1158
+ return true;
1159
+ } catch (error) {
1160
+ return false;
1161
+ }
1130
1162
  };
1131
1163
 
1132
- var global$l = global$K;
1133
- var call$a = functionCall;
1134
- var aCallable$3 = aCallable$6;
1135
- var anObject$a = anObject$e;
1164
+ var isConstructorLegacy = function isConstructor(argument) {
1165
+ if (!isCallable$9(argument)) return false;
1166
+ switch (classof$4(argument)) {
1167
+ case 'AsyncFunction':
1168
+ case 'GeneratorFunction':
1169
+ case 'AsyncGeneratorFunction': return false;
1170
+ }
1171
+ try {
1172
+ // we can't check .prototype since constructors produced by .bind haven't it
1173
+ // `Function#toString` throws on some built-it function in some legacy engines
1174
+ // (for example, `DOMQuad` and similar in FF41-)
1175
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource$1(argument));
1176
+ } catch (error) {
1177
+ return true;
1178
+ }
1179
+ };
1180
+
1181
+ isConstructorLegacy.sham = true;
1182
+
1183
+ // `IsConstructor` abstract operation
1184
+ // https://tc39.es/ecma262/#sec-isconstructor
1185
+ var isConstructor$1 = !construct || fails$c(function () {
1186
+ var called;
1187
+ return isConstructorModern(isConstructorModern.call)
1188
+ || !isConstructorModern(Object)
1189
+ || !isConstructorModern(function () { called = true; })
1190
+ || called;
1191
+ }) ? isConstructorLegacy : isConstructorModern;
1192
+
1193
+ var isConstructor = isConstructor$1;
1136
1194
  var tryToString$2 = tryToString$4;
1137
- var getIteratorMethod$1 = getIteratorMethod$2;
1138
1195
 
1139
- var TypeError$8 = global$l.TypeError;
1196
+ var $TypeError$7 = TypeError;
1140
1197
 
1141
- var getIterator$1 = function (argument, usingIterator) {
1142
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1143
- if (aCallable$3(iteratorMethod)) return anObject$a(call$a(iteratorMethod, argument));
1144
- throw TypeError$8(tryToString$2(argument) + ' is not iterable');
1198
+ // `Assert: IsConstructor(argument) is true`
1199
+ var aConstructor$1 = function (argument) {
1200
+ if (isConstructor(argument)) return argument;
1201
+ throw $TypeError$7(tryToString$2(argument) + ' is not a constructor');
1145
1202
  };
1146
1203
 
1147
- var call$9 = functionCall;
1148
- var anObject$9 = anObject$e;
1149
- var getMethod$2 = getMethod$5;
1204
+ var anObject$9 = anObject$d;
1205
+ var aConstructor = aConstructor$1;
1206
+ var isNullOrUndefined$2 = isNullOrUndefined$5;
1207
+ var wellKnownSymbol$c = wellKnownSymbol$i;
1150
1208
 
1151
- var iteratorClose$1 = function (iterator, kind, value) {
1152
- var innerResult, innerError;
1153
- anObject$9(iterator);
1154
- try {
1155
- innerResult = getMethod$2(iterator, 'return');
1156
- if (!innerResult) {
1157
- if (kind === 'throw') throw value;
1158
- return value;
1159
- }
1160
- innerResult = call$9(innerResult, iterator);
1161
- } catch (error) {
1162
- innerError = true;
1163
- innerResult = error;
1164
- }
1165
- if (kind === 'throw') throw value;
1166
- if (innerError) throw innerResult;
1167
- anObject$9(innerResult);
1168
- return value;
1209
+ var SPECIES$2 = wellKnownSymbol$c('species');
1210
+
1211
+ // `SpeciesConstructor` abstract operation
1212
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1213
+ var speciesConstructor$1 = function (O, defaultConstructor) {
1214
+ var C = anObject$9(O).constructor;
1215
+ var S;
1216
+ return C === undefined || isNullOrUndefined$2(S = anObject$9(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
1169
1217
  };
1170
1218
 
1171
- var global$k = global$K;
1172
- var bind$3 = functionBindContext;
1173
- var call$8 = functionCall;
1174
- var anObject$8 = anObject$e;
1175
- var tryToString$1 = tryToString$4;
1176
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1177
- var lengthOfArrayLike$2 = lengthOfArrayLike$4;
1178
- var isPrototypeOf = objectIsPrototypeOf;
1179
- var getIterator = getIterator$1;
1180
- var getIteratorMethod = getIteratorMethod$2;
1181
- var iteratorClose = iteratorClose$1;
1219
+ var NATIVE_BIND$1 = functionBindNative;
1182
1220
 
1183
- var TypeError$7 = global$k.TypeError;
1221
+ var FunctionPrototype = Function.prototype;
1222
+ var apply$2 = FunctionPrototype.apply;
1223
+ var call$c = FunctionPrototype.call;
1184
1224
 
1185
- var Result = function (stopped, result) {
1186
- this.stopped = stopped;
1187
- this.result = result;
1225
+ // eslint-disable-next-line es/no-reflect -- safe
1226
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$c.bind(apply$2) : function () {
1227
+ return call$c.apply(apply$2, arguments);
1228
+ });
1229
+
1230
+ var classofRaw = classofRaw$2;
1231
+ var uncurryThis$c = functionUncurryThis;
1232
+
1233
+ var functionUncurryThisClause = function (fn) {
1234
+ // Nashorn bug:
1235
+ // https://github.com/zloirock/core-js/issues/1128
1236
+ // https://github.com/zloirock/core-js/issues/1130
1237
+ if (classofRaw(fn) === 'Function') return uncurryThis$c(fn);
1188
1238
  };
1189
1239
 
1190
- var ResultPrototype = Result.prototype;
1240
+ var uncurryThis$b = functionUncurryThisClause;
1241
+ var aCallable$6 = aCallable$8;
1242
+ var NATIVE_BIND = functionBindNative;
1191
1243
 
1192
- var iterate$1 = function (iterable, unboundFunction, options) {
1193
- var that = options && options.that;
1194
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1195
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1196
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1197
- var fn = bind$3(unboundFunction, that);
1198
- var iterator, iterFn, index, length, result, next, step;
1244
+ var bind$4 = uncurryThis$b(uncurryThis$b.bind);
1199
1245
 
1200
- var stop = function (condition) {
1201
- if (iterator) iteratorClose(iterator, 'normal', condition);
1202
- return new Result(true, condition);
1246
+ // optional / simple context binding
1247
+ var functionBindContext = function (fn, that) {
1248
+ aCallable$6(fn);
1249
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1250
+ return fn.apply(that, arguments);
1203
1251
  };
1252
+ };
1204
1253
 
1205
- var callFn = function (value) {
1206
- if (AS_ENTRIES) {
1207
- anObject$8(value);
1208
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1209
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1210
- };
1254
+ var getBuiltIn$2 = getBuiltIn$8;
1211
1255
 
1212
- if (IS_ITERATOR) {
1213
- iterator = iterable;
1214
- } else {
1215
- iterFn = getIteratorMethod(iterable);
1216
- if (!iterFn) throw TypeError$7(tryToString$1(iterable) + ' is not iterable');
1217
- // optimisation for array iterators
1218
- if (isArrayIteratorMethod(iterFn)) {
1219
- for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
1220
- result = callFn(iterable[index]);
1221
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1222
- } return new Result(false);
1223
- }
1224
- iterator = getIterator(iterable, iterFn);
1225
- }
1226
-
1227
- next = iterator.next;
1228
- while (!(step = call$8(next, iterator)).done) {
1229
- try {
1230
- result = callFn(step.value);
1231
- } catch (error) {
1232
- iteratorClose(iterator, 'throw', error);
1233
- }
1234
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1235
- } return new Result(false);
1236
- };
1237
-
1238
- var wellKnownSymbol$a = wellKnownSymbol$i;
1239
-
1240
- var ITERATOR$4 = wellKnownSymbol$a('iterator');
1241
- var SAFE_CLOSING = false;
1242
-
1243
- try {
1244
- var called = 0;
1245
- var iteratorWithReturn = {
1246
- next: function () {
1247
- return { done: !!called++ };
1248
- },
1249
- 'return': function () {
1250
- SAFE_CLOSING = true;
1251
- }
1252
- };
1253
- iteratorWithReturn[ITERATOR$4] = function () {
1254
- return this;
1255
- };
1256
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
1257
- Array.from(iteratorWithReturn, function () { throw 2; });
1258
- } catch (error) { /* empty */ }
1259
-
1260
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
1261
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
1262
- var ITERATION_SUPPORT = false;
1263
- try {
1264
- var object = {};
1265
- object[ITERATOR$4] = function () {
1266
- return {
1267
- next: function () {
1268
- return { done: ITERATION_SUPPORT = true };
1269
- }
1270
- };
1271
- };
1272
- exec(object);
1273
- } catch (error) { /* empty */ }
1274
- return ITERATION_SUPPORT;
1275
- };
1276
-
1277
- var uncurryThis$c = functionUncurryThis;
1278
- var fails$c = fails$k;
1279
- var isCallable$7 = isCallable$j;
1280
- var classof$4 = classof$6;
1281
- var getBuiltIn$2 = getBuiltIn$7;
1282
- var inspectSource$1 = inspectSource$4;
1283
-
1284
- var noop = function () { /* empty */ };
1285
- var empty = [];
1286
- var construct = getBuiltIn$2('Reflect', 'construct');
1287
- var constructorRegExp = /^\s*(?:class|function)\b/;
1288
- var exec$3 = uncurryThis$c(constructorRegExp.exec);
1289
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1290
-
1291
- var isConstructorModern = function isConstructor(argument) {
1292
- if (!isCallable$7(argument)) return false;
1293
- try {
1294
- construct(noop, empty, argument);
1295
- return true;
1296
- } catch (error) {
1297
- return false;
1298
- }
1299
- };
1300
-
1301
- var isConstructorLegacy = function isConstructor(argument) {
1302
- if (!isCallable$7(argument)) return false;
1303
- switch (classof$4(argument)) {
1304
- case 'AsyncFunction':
1305
- case 'GeneratorFunction':
1306
- case 'AsyncGeneratorFunction': return false;
1307
- }
1308
- try {
1309
- // we can't check .prototype since constructors produced by .bind haven't it
1310
- // `Function#toString` throws on some built-it function in some legacy engines
1311
- // (for example, `DOMQuad` and similar in FF41-)
1312
- return INCORRECT_TO_STRING || !!exec$3(constructorRegExp, inspectSource$1(argument));
1313
- } catch (error) {
1314
- return true;
1315
- }
1316
- };
1317
-
1318
- isConstructorLegacy.sham = true;
1319
-
1320
- // `IsConstructor` abstract operation
1321
- // https://tc39.es/ecma262/#sec-isconstructor
1322
- var isConstructor$1 = !construct || fails$c(function () {
1323
- var called;
1324
- return isConstructorModern(isConstructorModern.call)
1325
- || !isConstructorModern(Object)
1326
- || !isConstructorModern(function () { called = true; })
1327
- || called;
1328
- }) ? isConstructorLegacy : isConstructorModern;
1329
-
1330
- var global$j = global$K;
1331
- var isConstructor = isConstructor$1;
1332
- var tryToString = tryToString$4;
1256
+ var html$2 = getBuiltIn$2('document', 'documentElement');
1333
1257
 
1334
- var TypeError$6 = global$j.TypeError;
1335
-
1336
- // `Assert: IsConstructor(argument) is true`
1337
- var aConstructor$1 = function (argument) {
1338
- if (isConstructor(argument)) return argument;
1339
- throw TypeError$6(tryToString(argument) + ' is not a constructor');
1340
- };
1341
-
1342
- var anObject$7 = anObject$e;
1343
- var aConstructor = aConstructor$1;
1344
- var wellKnownSymbol$9 = wellKnownSymbol$i;
1345
-
1346
- var SPECIES$2 = wellKnownSymbol$9('species');
1347
-
1348
- // `SpeciesConstructor` abstract operation
1349
- // https://tc39.es/ecma262/#sec-speciesconstructor
1350
- var speciesConstructor$2 = function (O, defaultConstructor) {
1351
- var C = anObject$7(O).constructor;
1352
- var S;
1353
- return C === undefined || (S = anObject$7(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
1354
- };
1355
-
1356
- var NATIVE_BIND = functionBindNative;
1357
-
1358
- var FunctionPrototype = Function.prototype;
1359
- var apply$3 = FunctionPrototype.apply;
1360
- var call$7 = FunctionPrototype.call;
1361
-
1362
- // eslint-disable-next-line es/no-reflect -- safe
1363
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$7.bind(apply$3) : function () {
1364
- return call$7.apply(apply$3, arguments);
1365
- });
1366
-
1367
- var getBuiltIn$1 = getBuiltIn$7;
1368
-
1369
- var html$2 = getBuiltIn$1('document', 'documentElement');
1370
-
1371
- var uncurryThis$b = functionUncurryThis;
1372
-
1373
- var arraySlice$2 = uncurryThis$b([].slice);
1258
+ var uncurryThis$a = functionUncurryThis;
1374
1259
 
1375
- var global$i = global$K;
1260
+ var arraySlice$1 = uncurryThis$a([].slice);
1376
1261
 
1377
- var TypeError$5 = global$i.TypeError;
1262
+ var $TypeError$6 = TypeError;
1378
1263
 
1379
1264
  var validateArgumentsLength$1 = function (passed, required) {
1380
- if (passed < required) throw TypeError$5('Not enough arguments');
1265
+ if (passed < required) throw $TypeError$6('Not enough arguments');
1381
1266
  return passed;
1382
1267
  };
1383
1268
 
@@ -1385,39 +1270,34 @@ var userAgent$2 = engineUserAgent;
1385
1270
 
1386
1271
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1387
1272
 
1388
- var classof$3 = classofRaw$1;
1389
- var global$h = global$K;
1390
-
1391
- var engineIsNode = classof$3(global$h.process) == 'process';
1392
-
1393
- var global$g = global$K;
1394
- var apply$2 = functionApply;
1395
- var bind$2 = functionBindContext;
1396
- var isCallable$6 = isCallable$j;
1273
+ var global$c = global$n;
1274
+ var apply$1 = functionApply;
1275
+ var bind$3 = functionBindContext;
1276
+ var isCallable$8 = isCallable$m;
1397
1277
  var hasOwn$1 = hasOwnProperty_1;
1398
- var fails$b = fails$k;
1278
+ var fails$b = fails$l;
1399
1279
  var html$1 = html$2;
1400
- var arraySlice$1 = arraySlice$2;
1280
+ var arraySlice = arraySlice$1;
1401
1281
  var createElement = documentCreateElement$2;
1402
1282
  var validateArgumentsLength = validateArgumentsLength$1;
1403
1283
  var IS_IOS$1 = engineIsIos;
1404
- var IS_NODE$3 = engineIsNode;
1405
-
1406
- var set = global$g.setImmediate;
1407
- var clear = global$g.clearImmediate;
1408
- var process$2 = global$g.process;
1409
- var Dispatch = global$g.Dispatch;
1410
- var Function$1 = global$g.Function;
1411
- var MessageChannel = global$g.MessageChannel;
1412
- var String$2 = global$g.String;
1284
+ var IS_NODE$4 = engineIsNode;
1285
+
1286
+ var set = global$c.setImmediate;
1287
+ var clear = global$c.clearImmediate;
1288
+ var process$2 = global$c.process;
1289
+ var Dispatch = global$c.Dispatch;
1290
+ var Function$1 = global$c.Function;
1291
+ var MessageChannel = global$c.MessageChannel;
1292
+ var String$1 = global$c.String;
1413
1293
  var counter = 0;
1414
1294
  var queue$1 = {};
1415
1295
  var ONREADYSTATECHANGE = 'onreadystatechange';
1416
- var location, defer, channel, port;
1296
+ var $location, defer, channel, port;
1417
1297
 
1418
1298
  try {
1419
1299
  // Deno throws a ReferenceError on `location` access without `--location` flag
1420
- location = global$g.location;
1300
+ $location = global$c.location;
1421
1301
  } catch (error) { /* empty */ }
1422
1302
 
1423
1303
  var run = function (id) {
@@ -1440,17 +1320,17 @@ var listener = function (event) {
1440
1320
 
1441
1321
  var post = function (id) {
1442
1322
  // old engines have not location.origin
1443
- global$g.postMessage(String$2(id), location.protocol + '//' + location.host);
1323
+ global$c.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1444
1324
  };
1445
1325
 
1446
1326
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1447
1327
  if (!set || !clear) {
1448
1328
  set = function setImmediate(handler) {
1449
1329
  validateArgumentsLength(arguments.length, 1);
1450
- var fn = isCallable$6(handler) ? handler : Function$1(handler);
1451
- var args = arraySlice$1(arguments, 1);
1330
+ var fn = isCallable$8(handler) ? handler : Function$1(handler);
1331
+ var args = arraySlice(arguments, 1);
1452
1332
  queue$1[++counter] = function () {
1453
- apply$2(fn, undefined, args);
1333
+ apply$1(fn, undefined, args);
1454
1334
  };
1455
1335
  defer(counter);
1456
1336
  return counter;
@@ -1459,7 +1339,7 @@ if (!set || !clear) {
1459
1339
  delete queue$1[id];
1460
1340
  };
1461
1341
  // Node.js 0.8-
1462
- if (IS_NODE$3) {
1342
+ if (IS_NODE$4) {
1463
1343
  defer = function (id) {
1464
1344
  process$2.nextTick(runner(id));
1465
1345
  };
@@ -1474,18 +1354,18 @@ if (!set || !clear) {
1474
1354
  channel = new MessageChannel();
1475
1355
  port = channel.port2;
1476
1356
  channel.port1.onmessage = listener;
1477
- defer = bind$2(port.postMessage, port);
1357
+ defer = bind$3(port.postMessage, port);
1478
1358
  // Browsers with postMessage, skip WebWorkers
1479
1359
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1480
1360
  } else if (
1481
- global$g.addEventListener &&
1482
- isCallable$6(global$g.postMessage) &&
1483
- !global$g.importScripts &&
1484
- location && location.protocol !== 'file:' &&
1361
+ global$c.addEventListener &&
1362
+ isCallable$8(global$c.postMessage) &&
1363
+ !global$c.importScripts &&
1364
+ $location && $location.protocol !== 'file:' &&
1485
1365
  !fails$b(post)
1486
1366
  ) {
1487
1367
  defer = post;
1488
- global$g.addEventListener('message', listener, false);
1368
+ global$c.addEventListener('message', listener, false);
1489
1369
  // IE8-
1490
1370
  } else if (ONREADYSTATECHANGE in createElement('script')) {
1491
1371
  defer = function (id) {
@@ -1508,29 +1388,29 @@ var task$1 = {
1508
1388
  };
1509
1389
 
1510
1390
  var userAgent$1 = engineUserAgent;
1511
- var global$f = global$K;
1391
+ var global$b = global$n;
1512
1392
 
1513
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$f.Pebble !== undefined;
1393
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$b.Pebble !== undefined;
1514
1394
 
1515
1395
  var userAgent = engineUserAgent;
1516
1396
 
1517
1397
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1518
1398
 
1519
- var global$e = global$K;
1520
- var bind$1 = functionBindContext;
1399
+ var global$a = global$n;
1400
+ var bind$2 = functionBindContext;
1521
1401
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1522
1402
  var macrotask = task$1.set;
1523
1403
  var IS_IOS = engineIsIos;
1524
1404
  var IS_IOS_PEBBLE = engineIsIosPebble;
1525
1405
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1526
- var IS_NODE$2 = engineIsNode;
1406
+ var IS_NODE$3 = engineIsNode;
1527
1407
 
1528
- var MutationObserver = global$e.MutationObserver || global$e.WebKitMutationObserver;
1529
- var document$2 = global$e.document;
1530
- var process$1 = global$e.process;
1531
- var Promise$1 = global$e.Promise;
1408
+ var MutationObserver = global$a.MutationObserver || global$a.WebKitMutationObserver;
1409
+ var document$2 = global$a.document;
1410
+ var process$1 = global$a.process;
1411
+ var Promise$1 = global$a.Promise;
1532
1412
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1533
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$e, 'queueMicrotask');
1413
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$a, 'queueMicrotask');
1534
1414
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1535
1415
 
1536
1416
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -1539,7 +1419,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
1539
1419
  if (!queueMicrotask) {
1540
1420
  flush = function () {
1541
1421
  var parent, fn;
1542
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1422
+ if (IS_NODE$3 && (parent = process$1.domain)) parent.exit();
1543
1423
  while (head) {
1544
1424
  fn = head.fn;
1545
1425
  head = head.next;
@@ -1556,7 +1436,7 @@ if (!queueMicrotask) {
1556
1436
 
1557
1437
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1558
1438
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1559
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1439
+ if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1560
1440
  toggle = true;
1561
1441
  node = document$2.createTextNode('');
1562
1442
  new MutationObserver(flush).observe(node, { characterData: true });
@@ -1569,24 +1449,24 @@ if (!queueMicrotask) {
1569
1449
  promise = Promise$1.resolve(undefined);
1570
1450
  // workaround of WebKit ~ iOS Safari 10.1 bug
1571
1451
  promise.constructor = Promise$1;
1572
- then = bind$1(promise.then, promise);
1452
+ then = bind$2(promise.then, promise);
1573
1453
  notify$1 = function () {
1574
1454
  then(flush);
1575
1455
  };
1576
1456
  // Node.js without promises
1577
- } else if (IS_NODE$2) {
1457
+ } else if (IS_NODE$3) {
1578
1458
  notify$1 = function () {
1579
1459
  process$1.nextTick(flush);
1580
1460
  };
1581
1461
  // for other environments - macrotask based on:
1582
1462
  // - setImmediate
1583
1463
  // - MessageChannel
1584
- // - window.postMessag
1464
+ // - window.postMessage
1585
1465
  // - onreadystatechange
1586
1466
  // - setTimeout
1587
1467
  } else {
1588
1468
  // strange IE + webpack dev server bug - use .bind(global)
1589
- macrotask = bind$1(macrotask, global$e);
1469
+ macrotask = bind$2(macrotask, global$a);
1590
1470
  notify$1 = function () {
1591
1471
  macrotask(flush);
1592
1472
  };
@@ -1602,50 +1482,16 @@ var microtask$1 = queueMicrotask || function (fn) {
1602
1482
  } last = task;
1603
1483
  };
1604
1484
 
1605
- var newPromiseCapability$2 = {};
1606
-
1607
- var aCallable$2 = aCallable$6;
1608
-
1609
- var PromiseCapability = function (C) {
1610
- var resolve, reject;
1611
- this.promise = new C(function ($$resolve, $$reject) {
1612
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
1613
- resolve = $$resolve;
1614
- reject = $$reject;
1615
- });
1616
- this.resolve = aCallable$2(resolve);
1617
- this.reject = aCallable$2(reject);
1618
- };
1619
-
1620
- // `NewPromiseCapability` abstract operation
1621
- // https://tc39.es/ecma262/#sec-newpromisecapability
1622
- newPromiseCapability$2.f = function (C) {
1623
- return new PromiseCapability(C);
1624
- };
1625
-
1626
- var anObject$6 = anObject$e;
1627
- var isObject$2 = isObject$8;
1628
- var newPromiseCapability$1 = newPromiseCapability$2;
1629
-
1630
- var promiseResolve$1 = function (C, x) {
1631
- anObject$6(C);
1632
- if (isObject$2(x) && x.constructor === C) return x;
1633
- var promiseCapability = newPromiseCapability$1.f(C);
1634
- var resolve = promiseCapability.resolve;
1635
- resolve(x);
1636
- return promiseCapability.promise;
1637
- };
1638
-
1639
- var global$d = global$K;
1485
+ var global$9 = global$n;
1640
1486
 
1641
1487
  var hostReportErrors$1 = function (a, b) {
1642
- var console = global$d.console;
1488
+ var console = global$9.console;
1643
1489
  if (console && console.error) {
1644
1490
  arguments.length == 1 ? console.error(a) : console.error(a, b);
1645
1491
  }
1646
1492
  };
1647
1493
 
1648
- var perform$1 = function (exec) {
1494
+ var perform$3 = function (exec) {
1649
1495
  try {
1650
1496
  return { error: false, value: exec() };
1651
1497
  } catch (error) {
@@ -1677,57 +1523,128 @@ Queue$1.prototype = {
1677
1523
 
1678
1524
  var queue = Queue$1;
1679
1525
 
1680
- var engineIsBrowser = typeof window == 'object';
1526
+ var global$8 = global$n;
1681
1527
 
1682
- var $$7 = _export;
1683
- var global$c = global$K;
1684
- var getBuiltIn = getBuiltIn$7;
1685
- var call$6 = functionCall;
1686
- var NativePromise = nativePromiseConstructor;
1687
- var redefine$3 = redefine$6.exports;
1688
- var redefineAll = redefineAll$1;
1528
+ var promiseNativeConstructor = global$8.Promise;
1529
+
1530
+ /* global Deno -- Deno case */
1531
+
1532
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1533
+
1534
+ var IS_DENO$1 = engineIsDeno;
1535
+ var IS_NODE$2 = engineIsNode;
1536
+
1537
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
1538
+ && typeof window == 'object'
1539
+ && typeof document == 'object';
1540
+
1541
+ var global$7 = global$n;
1542
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
1543
+ var isCallable$7 = isCallable$m;
1544
+ var isForced = isForced_1;
1545
+ var inspectSource = inspectSource$3;
1546
+ var wellKnownSymbol$b = wellKnownSymbol$i;
1547
+ var IS_BROWSER = engineIsBrowser;
1548
+ var IS_DENO = engineIsDeno;
1549
+ var V8_VERSION = engineV8Version;
1550
+
1551
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1552
+ var SPECIES$1 = wellKnownSymbol$b('species');
1553
+ var SUBCLASSING = false;
1554
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$7(global$7.PromiseRejectionEvent);
1555
+
1556
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1557
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1558
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1559
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1560
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1561
+ // We can't detect it synchronously, so just check versions
1562
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1563
+ // We can't use @@species feature detection in V8 since it causes
1564
+ // deoptimization and performance degradation
1565
+ // https://github.com/zloirock/core-js/issues/679
1566
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
1567
+ // Detect correctness of subclassing with @@species support
1568
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1569
+ var FakePromise = function (exec) {
1570
+ exec(function () { /* empty */ }, function () { /* empty */ });
1571
+ };
1572
+ var constructor = promise.constructor = {};
1573
+ constructor[SPECIES$1] = FakePromise;
1574
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1575
+ if (!SUBCLASSING) return true;
1576
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1577
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
1578
+ });
1579
+
1580
+ var promiseConstructorDetection = {
1581
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
1582
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
1583
+ SUBCLASSING: SUBCLASSING
1584
+ };
1585
+
1586
+ var newPromiseCapability$2 = {};
1587
+
1588
+ var aCallable$5 = aCallable$8;
1589
+
1590
+ var $TypeError$5 = TypeError;
1591
+
1592
+ var PromiseCapability = function (C) {
1593
+ var resolve, reject;
1594
+ this.promise = new C(function ($$resolve, $$reject) {
1595
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$5('Bad Promise constructor');
1596
+ resolve = $$resolve;
1597
+ reject = $$reject;
1598
+ });
1599
+ this.resolve = aCallable$5(resolve);
1600
+ this.reject = aCallable$5(reject);
1601
+ };
1602
+
1603
+ // `NewPromiseCapability` abstract operation
1604
+ // https://tc39.es/ecma262/#sec-newpromisecapability
1605
+ newPromiseCapability$2.f = function (C) {
1606
+ return new PromiseCapability(C);
1607
+ };
1608
+
1609
+ var $$d = _export;
1610
+ var IS_NODE$1 = engineIsNode;
1611
+ var global$6 = global$n;
1612
+ var call$b = functionCall;
1613
+ var defineBuiltIn$4 = defineBuiltIn$6;
1689
1614
  var setPrototypeOf$1 = objectSetPrototypeOf;
1690
1615
  var setToStringTag$2 = setToStringTag$3;
1691
1616
  var setSpecies = setSpecies$1;
1692
- var aCallable$1 = aCallable$6;
1693
- var isCallable$5 = isCallable$j;
1694
- var isObject$1 = isObject$8;
1617
+ var aCallable$4 = aCallable$8;
1618
+ var isCallable$6 = isCallable$m;
1619
+ var isObject$3 = isObject$9;
1695
1620
  var anInstance = anInstance$1;
1696
- var inspectSource = inspectSource$4;
1697
- var iterate = iterate$1;
1698
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
1699
- var speciesConstructor$1 = speciesConstructor$2;
1621
+ var speciesConstructor = speciesConstructor$1;
1700
1622
  var task = task$1.set;
1701
1623
  var microtask = microtask$1;
1702
- var promiseResolve = promiseResolve$1;
1703
1624
  var hostReportErrors = hostReportErrors$1;
1704
- var newPromiseCapabilityModule = newPromiseCapability$2;
1705
- var perform = perform$1;
1625
+ var perform$2 = perform$3;
1706
1626
  var Queue = queue;
1707
1627
  var InternalStateModule$1 = internalState;
1708
- var isForced = isForced_1;
1709
- var wellKnownSymbol$8 = wellKnownSymbol$i;
1710
- var IS_BROWSER = engineIsBrowser;
1711
- var IS_NODE$1 = engineIsNode;
1712
- var V8_VERSION = engineV8Version;
1628
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
1629
+ var PromiseConstructorDetection = promiseConstructorDetection;
1630
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1713
1631
 
1714
- var SPECIES$1 = wellKnownSymbol$8('species');
1715
1632
  var PROMISE = 'Promise';
1716
-
1717
- var getInternalState$2 = InternalStateModule$1.getterFor(PROMISE);
1718
- var setInternalState$1 = InternalStateModule$1.set;
1633
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1634
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1635
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1719
1636
  var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
1720
- var NativePromisePrototype = NativePromise && NativePromise.prototype;
1721
- var PromiseConstructor = NativePromise;
1722
- var PromisePrototype = NativePromisePrototype;
1723
- var TypeError$4 = global$c.TypeError;
1724
- var document$1 = global$c.document;
1725
- var process = global$c.process;
1726
- var newPromiseCapability = newPromiseCapabilityModule.f;
1727
- var newGenericPromiseCapability = newPromiseCapability;
1728
-
1729
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$c.dispatchEvent);
1730
- var NATIVE_REJECTION_EVENT = isCallable$5(global$c.PromiseRejectionEvent);
1637
+ var setInternalState$1 = InternalStateModule$1.set;
1638
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1639
+ var PromiseConstructor = NativePromiseConstructor$2;
1640
+ var PromisePrototype = NativePromisePrototype$1;
1641
+ var TypeError$1 = global$6.TypeError;
1642
+ var document$1 = global$6.document;
1643
+ var process = global$6.process;
1644
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1645
+ var newGenericPromiseCapability = newPromiseCapability$1;
1646
+
1647
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$6.dispatchEvent);
1731
1648
  var UNHANDLED_REJECTION = 'unhandledrejection';
1732
1649
  var REJECTION_HANDLED = 'rejectionhandled';
1733
1650
  var PENDING = 0;
@@ -1735,42 +1652,13 @@ var FULFILLED = 1;
1735
1652
  var REJECTED = 2;
1736
1653
  var HANDLED = 1;
1737
1654
  var UNHANDLED = 2;
1738
- var SUBCLASSING = false;
1739
1655
 
1740
1656
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1741
1657
 
1742
- var FORCED$1 = isForced(PROMISE, function () {
1743
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
1744
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
1745
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1746
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1747
- // We can't detect it synchronously, so just check versions
1748
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1749
- // We can't use @@species feature detection in V8 since it causes
1750
- // deoptimization and performance degradation
1751
- // https://github.com/zloirock/core-js/issues/679
1752
- if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
1753
- // Detect correctness of subclassing with @@species support
1754
- var promise = new PromiseConstructor(function (resolve) { resolve(1); });
1755
- var FakePromise = function (exec) {
1756
- exec(function () { /* empty */ }, function () { /* empty */ });
1757
- };
1758
- var constructor = promise.constructor = {};
1759
- constructor[SPECIES$1] = FakePromise;
1760
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1761
- if (!SUBCLASSING) return true;
1762
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1763
- return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
1764
- });
1765
-
1766
- var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration(function (iterable) {
1767
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
1768
- });
1769
-
1770
1658
  // helpers
1771
1659
  var isThenable = function (it) {
1772
1660
  var then;
1773
- return isObject$1(it) && isCallable$5(then = it.then) ? then : false;
1661
+ return isObject$3(it) && isCallable$6(then = it.then) ? then : false;
1774
1662
  };
1775
1663
 
1776
1664
  var callReaction = function (reaction, state) {
@@ -1797,9 +1685,9 @@ var callReaction = function (reaction, state) {
1797
1685
  }
1798
1686
  }
1799
1687
  if (result === reaction.promise) {
1800
- reject(TypeError$4('Promise-chain cycle'));
1688
+ reject(TypeError$1('Promise-chain cycle'));
1801
1689
  } else if (then = isThenable(result)) {
1802
- call$6(then, result, resolve, reject);
1690
+ call$b(then, result, resolve, reject);
1803
1691
  } else resolve(result);
1804
1692
  } else reject(value);
1805
1693
  } catch (error) {
@@ -1829,20 +1717,20 @@ var dispatchEvent = function (name, promise, reason) {
1829
1717
  event.promise = promise;
1830
1718
  event.reason = reason;
1831
1719
  event.initEvent(name, false, true);
1832
- global$c.dispatchEvent(event);
1720
+ global$6.dispatchEvent(event);
1833
1721
  } else event = { promise: promise, reason: reason };
1834
- if (!NATIVE_REJECTION_EVENT && (handler = global$c['on' + name])) handler(event);
1722
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$6['on' + name])) handler(event);
1835
1723
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1836
1724
  };
1837
1725
 
1838
1726
  var onUnhandled = function (state) {
1839
- call$6(task, global$c, function () {
1727
+ call$b(task, global$6, function () {
1840
1728
  var promise = state.facade;
1841
1729
  var value = state.value;
1842
1730
  var IS_UNHANDLED = isUnhandled(state);
1843
1731
  var result;
1844
1732
  if (IS_UNHANDLED) {
1845
- result = perform(function () {
1733
+ result = perform$2(function () {
1846
1734
  if (IS_NODE$1) {
1847
1735
  process.emit('unhandledRejection', value, promise);
1848
1736
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
@@ -1859,7 +1747,7 @@ var isUnhandled = function (state) {
1859
1747
  };
1860
1748
 
1861
1749
  var onHandleUnhandled = function (state) {
1862
- call$6(task, global$c, function () {
1750
+ call$b(task, global$6, function () {
1863
1751
  var promise = state.facade;
1864
1752
  if (IS_NODE$1) {
1865
1753
  process.emit('rejectionHandled', promise);
@@ -1867,7 +1755,7 @@ var onHandleUnhandled = function (state) {
1867
1755
  });
1868
1756
  };
1869
1757
 
1870
- var bind = function (fn, state, unwrap) {
1758
+ var bind$1 = function (fn, state, unwrap) {
1871
1759
  return function (value) {
1872
1760
  fn(state, value, unwrap);
1873
1761
  };
@@ -1887,15 +1775,15 @@ var internalResolve = function (state, value, unwrap) {
1887
1775
  state.done = true;
1888
1776
  if (unwrap) state = unwrap;
1889
1777
  try {
1890
- if (state.facade === value) throw TypeError$4("Promise can't be resolved itself");
1778
+ if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
1891
1779
  var then = isThenable(value);
1892
1780
  if (then) {
1893
1781
  microtask(function () {
1894
1782
  var wrapper = { done: false };
1895
1783
  try {
1896
- call$6(then, value,
1897
- bind(internalResolve, wrapper, state),
1898
- bind(internalReject, wrapper, state)
1784
+ call$b(then, value,
1785
+ bind$1(internalResolve, wrapper, state),
1786
+ bind$1(internalReject, wrapper, state)
1899
1787
  );
1900
1788
  } catch (error) {
1901
1789
  internalReject(wrapper, error, state);
@@ -1912,20 +1800,22 @@ var internalResolve = function (state, value, unwrap) {
1912
1800
  };
1913
1801
 
1914
1802
  // constructor polyfill
1915
- if (FORCED$1) {
1803
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1916
1804
  // 25.4.3.1 Promise(executor)
1917
1805
  PromiseConstructor = function Promise(executor) {
1918
1806
  anInstance(this, PromisePrototype);
1919
- aCallable$1(executor);
1920
- call$6(Internal, this);
1921
- var state = getInternalState$2(this);
1807
+ aCallable$4(executor);
1808
+ call$b(Internal, this);
1809
+ var state = getInternalPromiseState(this);
1922
1810
  try {
1923
- executor(bind(internalResolve, state), bind(internalReject, state));
1811
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
1924
1812
  } catch (error) {
1925
1813
  internalReject(state, error);
1926
1814
  }
1927
1815
  };
1816
+
1928
1817
  PromisePrototype = PromiseConstructor.prototype;
1818
+
1929
1819
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1930
1820
  Internal = function Promise(executor) {
1931
1821
  setInternalState$1(this, {
@@ -1939,117 +1829,277 @@ if (FORCED$1) {
1939
1829
  value: undefined
1940
1830
  });
1941
1831
  };
1942
- Internal.prototype = redefineAll(PromisePrototype, {
1943
- // `Promise.prototype.then` method
1944
- // https://tc39.es/ecma262/#sec-promise.prototype.then
1945
- // eslint-disable-next-line unicorn/no-thenable -- safe
1946
- then: function then(onFulfilled, onRejected) {
1947
- var state = getInternalPromiseState(this);
1948
- var reaction = newPromiseCapability(speciesConstructor$1(this, PromiseConstructor));
1949
- state.parent = true;
1950
- reaction.ok = isCallable$5(onFulfilled) ? onFulfilled : true;
1951
- reaction.fail = isCallable$5(onRejected) && onRejected;
1952
- reaction.domain = IS_NODE$1 ? process.domain : undefined;
1953
- if (state.state == PENDING) state.reactions.add(reaction);
1954
- else microtask(function () {
1955
- callReaction(reaction, state);
1956
- });
1957
- return reaction.promise;
1958
- },
1959
- // `Promise.prototype.catch` method
1960
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
1961
- 'catch': function (onRejected) {
1962
- return this.then(undefined, onRejected);
1963
- }
1832
+
1833
+ // `Promise.prototype.then` method
1834
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
1835
+ Internal.prototype = defineBuiltIn$4(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1836
+ var state = getInternalPromiseState(this);
1837
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1838
+ state.parent = true;
1839
+ reaction.ok = isCallable$6(onFulfilled) ? onFulfilled : true;
1840
+ reaction.fail = isCallable$6(onRejected) && onRejected;
1841
+ reaction.domain = IS_NODE$1 ? process.domain : undefined;
1842
+ if (state.state == PENDING) state.reactions.add(reaction);
1843
+ else microtask(function () {
1844
+ callReaction(reaction, state);
1845
+ });
1846
+ return reaction.promise;
1964
1847
  });
1848
+
1965
1849
  OwnPromiseCapability = function () {
1966
1850
  var promise = new Internal();
1967
- var state = getInternalState$2(promise);
1851
+ var state = getInternalPromiseState(promise);
1968
1852
  this.promise = promise;
1969
- this.resolve = bind(internalResolve, state);
1970
- this.reject = bind(internalReject, state);
1853
+ this.resolve = bind$1(internalResolve, state);
1854
+ this.reject = bind$1(internalReject, state);
1971
1855
  };
1972
- newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
1856
+
1857
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1973
1858
  return C === PromiseConstructor || C === PromiseWrapper
1974
1859
  ? new OwnPromiseCapability(C)
1975
1860
  : newGenericPromiseCapability(C);
1976
1861
  };
1977
1862
 
1978
- if (isCallable$5(NativePromise) && NativePromisePrototype !== Object.prototype) {
1979
- nativeThen = NativePromisePrototype.then;
1863
+ if (isCallable$6(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1864
+ nativeThen = NativePromisePrototype$1.then;
1980
1865
 
1981
- if (!SUBCLASSING) {
1866
+ if (!NATIVE_PROMISE_SUBCLASSING) {
1982
1867
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1983
- redefine$3(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
1868
+ defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1984
1869
  var that = this;
1985
1870
  return new PromiseConstructor(function (resolve, reject) {
1986
- call$6(nativeThen, that, resolve, reject);
1871
+ call$b(nativeThen, that, resolve, reject);
1987
1872
  }).then(onFulfilled, onRejected);
1988
1873
  // https://github.com/zloirock/core-js/issues/640
1989
1874
  }, { unsafe: true });
1990
-
1991
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
1992
- redefine$3(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
1993
1875
  }
1994
1876
 
1995
1877
  // make `.constructor === Promise` work for native promise-based APIs
1996
1878
  try {
1997
- delete NativePromisePrototype.constructor;
1879
+ delete NativePromisePrototype$1.constructor;
1998
1880
  } catch (error) { /* empty */ }
1999
1881
 
2000
1882
  // make `instanceof Promise` work for native promise-based APIs
2001
1883
  if (setPrototypeOf$1) {
2002
- setPrototypeOf$1(NativePromisePrototype, PromisePrototype);
1884
+ setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
2003
1885
  }
2004
1886
  }
2005
1887
  }
2006
1888
 
2007
- $$7({ global: true, wrap: true, forced: FORCED$1 }, {
1889
+ $$d({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2008
1890
  Promise: PromiseConstructor
2009
1891
  });
2010
1892
 
2011
1893
  setToStringTag$2(PromiseConstructor, PROMISE, false);
2012
1894
  setSpecies(PROMISE);
2013
1895
 
2014
- PromiseWrapper = getBuiltIn(PROMISE);
1896
+ var iterators = {};
2015
1897
 
2016
- // statics
2017
- $$7({ target: PROMISE, stat: true, forced: FORCED$1 }, {
2018
- // `Promise.reject` method
2019
- // https://tc39.es/ecma262/#sec-promise.reject
2020
- reject: function reject(r) {
2021
- var capability = newPromiseCapability(this);
2022
- call$6(capability.reject, undefined, r);
2023
- return capability.promise;
2024
- }
2025
- });
1898
+ var wellKnownSymbol$a = wellKnownSymbol$i;
1899
+ var Iterators$4 = iterators;
2026
1900
 
2027
- $$7({ target: PROMISE, stat: true, forced: FORCED$1 }, {
2028
- // `Promise.resolve` method
2029
- // https://tc39.es/ecma262/#sec-promise.resolve
2030
- resolve: function resolve(x) {
2031
- return promiseResolve(this, x);
2032
- }
2033
- });
1901
+ var ITERATOR$6 = wellKnownSymbol$a('iterator');
1902
+ var ArrayPrototype$1 = Array.prototype;
2034
1903
 
2035
- $$7({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
2036
- // `Promise.all` method
2037
- // https://tc39.es/ecma262/#sec-promise.all
2038
- all: function all(iterable) {
2039
- var C = this;
2040
- var capability = newPromiseCapability(C);
2041
- var resolve = capability.resolve;
1904
+ // check on default Array iterator
1905
+ var isArrayIteratorMethod$1 = function (it) {
1906
+ return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$6] === it);
1907
+ };
1908
+
1909
+ var classof$3 = classof$5;
1910
+ var getMethod$2 = getMethod$4;
1911
+ var isNullOrUndefined$1 = isNullOrUndefined$5;
1912
+ var Iterators$3 = iterators;
1913
+ var wellKnownSymbol$9 = wellKnownSymbol$i;
1914
+
1915
+ var ITERATOR$5 = wellKnownSymbol$9('iterator');
1916
+
1917
+ var getIteratorMethod$2 = function (it) {
1918
+ if (!isNullOrUndefined$1(it)) return getMethod$2(it, ITERATOR$5)
1919
+ || getMethod$2(it, '@@iterator')
1920
+ || Iterators$3[classof$3(it)];
1921
+ };
1922
+
1923
+ var call$a = functionCall;
1924
+ var aCallable$3 = aCallable$8;
1925
+ var anObject$8 = anObject$d;
1926
+ var tryToString$1 = tryToString$4;
1927
+ var getIteratorMethod$1 = getIteratorMethod$2;
1928
+
1929
+ var $TypeError$4 = TypeError;
1930
+
1931
+ var getIterator$1 = function (argument, usingIterator) {
1932
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1933
+ if (aCallable$3(iteratorMethod)) return anObject$8(call$a(iteratorMethod, argument));
1934
+ throw $TypeError$4(tryToString$1(argument) + ' is not iterable');
1935
+ };
1936
+
1937
+ var call$9 = functionCall;
1938
+ var anObject$7 = anObject$d;
1939
+ var getMethod$1 = getMethod$4;
1940
+
1941
+ var iteratorClose$1 = function (iterator, kind, value) {
1942
+ var innerResult, innerError;
1943
+ anObject$7(iterator);
1944
+ try {
1945
+ innerResult = getMethod$1(iterator, 'return');
1946
+ if (!innerResult) {
1947
+ if (kind === 'throw') throw value;
1948
+ return value;
1949
+ }
1950
+ innerResult = call$9(innerResult, iterator);
1951
+ } catch (error) {
1952
+ innerError = true;
1953
+ innerResult = error;
1954
+ }
1955
+ if (kind === 'throw') throw value;
1956
+ if (innerError) throw innerResult;
1957
+ anObject$7(innerResult);
1958
+ return value;
1959
+ };
1960
+
1961
+ var bind = functionBindContext;
1962
+ var call$8 = functionCall;
1963
+ var anObject$6 = anObject$d;
1964
+ var tryToString = tryToString$4;
1965
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1966
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1967
+ var isPrototypeOf = objectIsPrototypeOf;
1968
+ var getIterator = getIterator$1;
1969
+ var getIteratorMethod = getIteratorMethod$2;
1970
+ var iteratorClose = iteratorClose$1;
1971
+
1972
+ var $TypeError$3 = TypeError;
1973
+
1974
+ var Result = function (stopped, result) {
1975
+ this.stopped = stopped;
1976
+ this.result = result;
1977
+ };
1978
+
1979
+ var ResultPrototype = Result.prototype;
1980
+
1981
+ var iterate$2 = function (iterable, unboundFunction, options) {
1982
+ var that = options && options.that;
1983
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1984
+ var IS_RECORD = !!(options && options.IS_RECORD);
1985
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1986
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1987
+ var fn = bind(unboundFunction, that);
1988
+ var iterator, iterFn, index, length, result, next, step;
1989
+
1990
+ var stop = function (condition) {
1991
+ if (iterator) iteratorClose(iterator, 'normal', condition);
1992
+ return new Result(true, condition);
1993
+ };
1994
+
1995
+ var callFn = function (value) {
1996
+ if (AS_ENTRIES) {
1997
+ anObject$6(value);
1998
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1999
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
2000
+ };
2001
+
2002
+ if (IS_RECORD) {
2003
+ iterator = iterable.iterator;
2004
+ } else if (IS_ITERATOR) {
2005
+ iterator = iterable;
2006
+ } else {
2007
+ iterFn = getIteratorMethod(iterable);
2008
+ if (!iterFn) throw $TypeError$3(tryToString(iterable) + ' is not iterable');
2009
+ // optimisation for array iterators
2010
+ if (isArrayIteratorMethod(iterFn)) {
2011
+ for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
2012
+ result = callFn(iterable[index]);
2013
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
2014
+ } return new Result(false);
2015
+ }
2016
+ iterator = getIterator(iterable, iterFn);
2017
+ }
2018
+
2019
+ next = IS_RECORD ? iterable.next : iterator.next;
2020
+ while (!(step = call$8(next, iterator)).done) {
2021
+ try {
2022
+ result = callFn(step.value);
2023
+ } catch (error) {
2024
+ iteratorClose(iterator, 'throw', error);
2025
+ }
2026
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2027
+ } return new Result(false);
2028
+ };
2029
+
2030
+ var wellKnownSymbol$8 = wellKnownSymbol$i;
2031
+
2032
+ var ITERATOR$4 = wellKnownSymbol$8('iterator');
2033
+ var SAFE_CLOSING = false;
2034
+
2035
+ try {
2036
+ var called = 0;
2037
+ var iteratorWithReturn = {
2038
+ next: function () {
2039
+ return { done: !!called++ };
2040
+ },
2041
+ 'return': function () {
2042
+ SAFE_CLOSING = true;
2043
+ }
2044
+ };
2045
+ iteratorWithReturn[ITERATOR$4] = function () {
2046
+ return this;
2047
+ };
2048
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2049
+ Array.from(iteratorWithReturn, function () { throw 2; });
2050
+ } catch (error) { /* empty */ }
2051
+
2052
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2053
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2054
+ var ITERATION_SUPPORT = false;
2055
+ try {
2056
+ var object = {};
2057
+ object[ITERATOR$4] = function () {
2058
+ return {
2059
+ next: function () {
2060
+ return { done: ITERATION_SUPPORT = true };
2061
+ }
2062
+ };
2063
+ };
2064
+ exec(object);
2065
+ } catch (error) { /* empty */ }
2066
+ return ITERATION_SUPPORT;
2067
+ };
2068
+
2069
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
2070
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2071
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2072
+
2073
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2074
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2075
+ });
2076
+
2077
+ var $$c = _export;
2078
+ var call$7 = functionCall;
2079
+ var aCallable$2 = aCallable$8;
2080
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2081
+ var perform$1 = perform$3;
2082
+ var iterate$1 = iterate$2;
2083
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2084
+
2085
+ // `Promise.all` method
2086
+ // https://tc39.es/ecma262/#sec-promise.all
2087
+ $$c({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2088
+ all: function all(iterable) {
2089
+ var C = this;
2090
+ var capability = newPromiseCapabilityModule$2.f(C);
2091
+ var resolve = capability.resolve;
2042
2092
  var reject = capability.reject;
2043
- var result = perform(function () {
2044
- var $promiseResolve = aCallable$1(C.resolve);
2093
+ var result = perform$1(function () {
2094
+ var $promiseResolve = aCallable$2(C.resolve);
2045
2095
  var values = [];
2046
2096
  var counter = 0;
2047
2097
  var remaining = 1;
2048
- iterate(iterable, function (promise) {
2098
+ iterate$1(iterable, function (promise) {
2049
2099
  var index = counter++;
2050
2100
  var alreadyCalled = false;
2051
2101
  remaining++;
2052
- call$6($promiseResolve, C, promise).then(function (value) {
2102
+ call$7($promiseResolve, C, promise).then(function (value) {
2053
2103
  if (alreadyCalled) return;
2054
2104
  alreadyCalled = true;
2055
2105
  values[index] = value;
@@ -2060,12 +2110,48 @@ $$7({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
2060
2110
  });
2061
2111
  if (result.error) reject(result.value);
2062
2112
  return capability.promise;
2063
- },
2064
- // `Promise.race` method
2065
- // https://tc39.es/ecma262/#sec-promise.race
2113
+ }
2114
+ });
2115
+
2116
+ var $$b = _export;
2117
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2118
+ var NativePromiseConstructor = promiseNativeConstructor;
2119
+ var getBuiltIn$1 = getBuiltIn$8;
2120
+ var isCallable$5 = isCallable$m;
2121
+ var defineBuiltIn$3 = defineBuiltIn$6;
2122
+
2123
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2124
+
2125
+ // `Promise.prototype.catch` method
2126
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2127
+ $$b({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2128
+ 'catch': function (onRejected) {
2129
+ return this.then(undefined, onRejected);
2130
+ }
2131
+ });
2132
+
2133
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2134
+ if (isCallable$5(NativePromiseConstructor)) {
2135
+ var method = getBuiltIn$1('Promise').prototype['catch'];
2136
+ if (NativePromisePrototype['catch'] !== method) {
2137
+ defineBuiltIn$3(NativePromisePrototype, 'catch', method, { unsafe: true });
2138
+ }
2139
+ }
2140
+
2141
+ var $$a = _export;
2142
+ var call$6 = functionCall;
2143
+ var aCallable$1 = aCallable$8;
2144
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2145
+ var perform = perform$3;
2146
+ var iterate = iterate$2;
2147
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2148
+
2149
+ // `Promise.race` method
2150
+ // https://tc39.es/ecma262/#sec-promise.race
2151
+ $$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2066
2152
  race: function race(iterable) {
2067
2153
  var C = this;
2068
- var capability = newPromiseCapability(C);
2154
+ var capability = newPromiseCapabilityModule$1.f(C);
2069
2155
  var reject = capability.reject;
2070
2156
  var result = perform(function () {
2071
2157
  var $promiseResolve = aCallable$1(C.resolve);
@@ -2078,6 +2164,49 @@ $$7({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
2078
2164
  }
2079
2165
  });
2080
2166
 
2167
+ var $$9 = _export;
2168
+ var call$5 = functionCall;
2169
+ var newPromiseCapabilityModule = newPromiseCapability$2;
2170
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2171
+
2172
+ // `Promise.reject` method
2173
+ // https://tc39.es/ecma262/#sec-promise.reject
2174
+ $$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2175
+ reject: function reject(r) {
2176
+ var capability = newPromiseCapabilityModule.f(this);
2177
+ call$5(capability.reject, undefined, r);
2178
+ return capability.promise;
2179
+ }
2180
+ });
2181
+
2182
+ var anObject$5 = anObject$d;
2183
+ var isObject$2 = isObject$9;
2184
+ var newPromiseCapability = newPromiseCapability$2;
2185
+
2186
+ var promiseResolve$1 = function (C, x) {
2187
+ anObject$5(C);
2188
+ if (isObject$2(x) && x.constructor === C) return x;
2189
+ var promiseCapability = newPromiseCapability.f(C);
2190
+ var resolve = promiseCapability.resolve;
2191
+ resolve(x);
2192
+ return promiseCapability.promise;
2193
+ };
2194
+
2195
+ var $$8 = _export;
2196
+ var getBuiltIn = getBuiltIn$8;
2197
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2198
+ var promiseResolve = promiseResolve$1;
2199
+
2200
+ getBuiltIn('Promise');
2201
+
2202
+ // `Promise.resolve` method
2203
+ // https://tc39.es/ecma262/#sec-promise.resolve
2204
+ $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2205
+ resolve: function resolve(x) {
2206
+ return promiseResolve(this, x);
2207
+ }
2208
+ });
2209
+
2081
2210
  var internalObjectKeys = objectKeysInternal;
2082
2211
  var enumBugKeys$1 = enumBugKeys$3;
2083
2212
 
@@ -2089,9 +2218,9 @@ var objectKeys$2 = Object.keys || function keys(O) {
2089
2218
  };
2090
2219
 
2091
2220
  var DESCRIPTORS$2 = descriptors;
2092
- var uncurryThis$a = functionUncurryThis;
2093
- var call$5 = functionCall;
2094
- var fails$a = fails$k;
2221
+ var uncurryThis$9 = functionUncurryThis;
2222
+ var call$4 = functionCall;
2223
+ var fails$a = fails$l;
2095
2224
  var objectKeys$1 = objectKeys$2;
2096
2225
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2097
2226
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -2101,17 +2230,17 @@ var IndexedObject$1 = indexedObject;
2101
2230
  // eslint-disable-next-line es/no-object-assign -- safe
2102
2231
  var $assign = Object.assign;
2103
2232
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2104
- var defineProperty$1 = Object.defineProperty;
2105
- var concat$1 = uncurryThis$a([].concat);
2233
+ var defineProperty$2 = Object.defineProperty;
2234
+ var concat$1 = uncurryThis$9([].concat);
2106
2235
 
2107
2236
  // `Object.assign` method
2108
2237
  // https://tc39.es/ecma262/#sec-object.assign
2109
2238
  var objectAssign = !$assign || fails$a(function () {
2110
2239
  // should have correct order of operations (Edge bug)
2111
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
2240
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
2112
2241
  enumerable: true,
2113
2242
  get: function () {
2114
- defineProperty$1(this, 'b', {
2243
+ defineProperty$2(this, 'b', {
2115
2244
  value: 3,
2116
2245
  enumerable: false
2117
2246
  });
@@ -2140,58 +2269,206 @@ var objectAssign = !$assign || fails$a(function () {
2140
2269
  var key;
2141
2270
  while (length > j) {
2142
2271
  key = keys[j++];
2143
- if (!DESCRIPTORS$2 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
2272
+ if (!DESCRIPTORS$2 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
2144
2273
  }
2145
2274
  } return T;
2146
2275
  } : $assign;
2147
2276
 
2148
- var $$6 = _export;
2277
+ var $$7 = _export;
2149
2278
  var assign = objectAssign;
2150
2279
 
2151
2280
  // `Object.assign` method
2152
2281
  // https://tc39.es/ecma262/#sec-object.assign
2153
2282
  // eslint-disable-next-line es/no-object-assign -- required for testing
2154
- $$6({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
2283
+ $$7({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2155
2284
  assign: assign
2156
2285
  });
2157
2286
 
2158
- var isObject = isObject$8;
2159
- var classof$2 = classofRaw$1;
2287
+ var objectDefineProperties = {};
2288
+
2289
+ var DESCRIPTORS$1 = descriptors;
2290
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2291
+ var definePropertyModule = objectDefineProperty;
2292
+ var anObject$4 = anObject$d;
2293
+ var toIndexedObject$1 = toIndexedObject$5;
2294
+ var objectKeys = objectKeys$2;
2295
+
2296
+ // `Object.defineProperties` method
2297
+ // https://tc39.es/ecma262/#sec-object.defineproperties
2298
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
2299
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2300
+ anObject$4(O);
2301
+ var props = toIndexedObject$1(Properties);
2302
+ var keys = objectKeys(Properties);
2303
+ var length = keys.length;
2304
+ var index = 0;
2305
+ var key;
2306
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
2307
+ return O;
2308
+ };
2309
+
2310
+ /* global ActiveXObject -- old IE, WSH */
2311
+
2312
+ var anObject$3 = anObject$d;
2313
+ var definePropertiesModule = objectDefineProperties;
2314
+ var enumBugKeys = enumBugKeys$3;
2315
+ var hiddenKeys = hiddenKeys$4;
2316
+ var html = html$2;
2317
+ var documentCreateElement$1 = documentCreateElement$2;
2318
+ var sharedKey$1 = sharedKey$3;
2319
+
2320
+ var GT = '>';
2321
+ var LT = '<';
2322
+ var PROTOTYPE = 'prototype';
2323
+ var SCRIPT = 'script';
2324
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
2325
+
2326
+ var EmptyConstructor = function () { /* empty */ };
2327
+
2328
+ var scriptTag = function (content) {
2329
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2330
+ };
2331
+
2332
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2333
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
2334
+ activeXDocument.write(scriptTag(''));
2335
+ activeXDocument.close();
2336
+ var temp = activeXDocument.parentWindow.Object;
2337
+ activeXDocument = null; // avoid memory leak
2338
+ return temp;
2339
+ };
2340
+
2341
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
2342
+ var NullProtoObjectViaIFrame = function () {
2343
+ // Thrash, waste and sodomy: IE GC bug
2344
+ var iframe = documentCreateElement$1('iframe');
2345
+ var JS = 'java' + SCRIPT + ':';
2346
+ var iframeDocument;
2347
+ iframe.style.display = 'none';
2348
+ html.appendChild(iframe);
2349
+ // https://github.com/zloirock/core-js/issues/475
2350
+ iframe.src = String(JS);
2351
+ iframeDocument = iframe.contentWindow.document;
2352
+ iframeDocument.open();
2353
+ iframeDocument.write(scriptTag('document.F=Object'));
2354
+ iframeDocument.close();
2355
+ return iframeDocument.F;
2356
+ };
2357
+
2358
+ // Check for document.domain and active x support
2359
+ // No need to use active x approach when document.domain is not set
2360
+ // see https://github.com/es-shims/es5-shim/issues/150
2361
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2362
+ // avoid IE GC bug
2363
+ var activeXDocument;
2364
+ var NullProtoObject = function () {
2365
+ try {
2366
+ activeXDocument = new ActiveXObject('htmlfile');
2367
+ } catch (error) { /* ignore */ }
2368
+ NullProtoObject = typeof document != 'undefined'
2369
+ ? document.domain && activeXDocument
2370
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2371
+ : NullProtoObjectViaIFrame()
2372
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
2373
+ var length = enumBugKeys.length;
2374
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2375
+ return NullProtoObject();
2376
+ };
2377
+
2378
+ hiddenKeys[IE_PROTO$1] = true;
2379
+
2380
+ // `Object.create` method
2381
+ // https://tc39.es/ecma262/#sec-object.create
2382
+ // eslint-disable-next-line es/no-object-create -- safe
2383
+ var objectCreate = Object.create || function create(O, Properties) {
2384
+ var result;
2385
+ if (O !== null) {
2386
+ EmptyConstructor[PROTOTYPE] = anObject$3(O);
2387
+ result = new EmptyConstructor();
2388
+ EmptyConstructor[PROTOTYPE] = null;
2389
+ // add "__proto__" for Object.getPrototypeOf polyfill
2390
+ result[IE_PROTO$1] = O;
2391
+ } else result = NullProtoObject();
2392
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2393
+ };
2394
+
2160
2395
  var wellKnownSymbol$7 = wellKnownSymbol$i;
2396
+ var create$2 = objectCreate;
2397
+ var defineProperty$1 = objectDefineProperty.f;
2161
2398
 
2162
- var MATCH$1 = wellKnownSymbol$7('match');
2399
+ var UNSCOPABLES = wellKnownSymbol$7('unscopables');
2400
+ var ArrayPrototype = Array.prototype;
2401
+
2402
+ // Array.prototype[@@unscopables]
2403
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2404
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
2405
+ defineProperty$1(ArrayPrototype, UNSCOPABLES, {
2406
+ configurable: true,
2407
+ value: create$2(null)
2408
+ });
2409
+ }
2410
+
2411
+ // add a key to Array.prototype[@@unscopables]
2412
+ var addToUnscopables$2 = function (key) {
2413
+ ArrayPrototype[UNSCOPABLES][key] = true;
2414
+ };
2415
+
2416
+ var $$6 = _export;
2417
+ var $includes = arrayIncludes.includes;
2418
+ var fails$9 = fails$l;
2419
+ var addToUnscopables$1 = addToUnscopables$2;
2420
+
2421
+ // FF99+ bug
2422
+ var BROKEN_ON_SPARSE = fails$9(function () {
2423
+ return !Array(1).includes();
2424
+ });
2425
+
2426
+ // `Array.prototype.includes` method
2427
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
2428
+ $$6({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2429
+ includes: function includes(el /* , fromIndex = 0 */) {
2430
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2431
+ }
2432
+ });
2433
+
2434
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2435
+ addToUnscopables$1('includes');
2436
+
2437
+ var isObject$1 = isObject$9;
2438
+ var classof$2 = classofRaw$2;
2439
+ var wellKnownSymbol$6 = wellKnownSymbol$i;
2440
+
2441
+ var MATCH$1 = wellKnownSymbol$6('match');
2163
2442
 
2164
2443
  // `IsRegExp` abstract operation
2165
2444
  // https://tc39.es/ecma262/#sec-isregexp
2166
2445
  var isRegexp = function (it) {
2167
2446
  var isRegExp;
2168
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
2447
+ return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
2169
2448
  };
2170
2449
 
2171
- var global$b = global$K;
2172
- var isRegExp$1 = isRegexp;
2450
+ var isRegExp = isRegexp;
2173
2451
 
2174
- var TypeError$3 = global$b.TypeError;
2452
+ var $TypeError$2 = TypeError;
2175
2453
 
2176
2454
  var notARegexp = function (it) {
2177
- if (isRegExp$1(it)) {
2178
- throw TypeError$3("The method doesn't accept regular expressions");
2455
+ if (isRegExp(it)) {
2456
+ throw $TypeError$2("The method doesn't accept regular expressions");
2179
2457
  } return it;
2180
2458
  };
2181
2459
 
2182
- var global$a = global$K;
2183
- var classof$1 = classof$6;
2460
+ var classof$1 = classof$5;
2184
2461
 
2185
- var String$1 = global$a.String;
2462
+ var $String = String;
2186
2463
 
2187
- var toString$8 = function (argument) {
2464
+ var toString$7 = function (argument) {
2188
2465
  if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2189
- return String$1(argument);
2466
+ return $String(argument);
2190
2467
  };
2191
2468
 
2192
- var wellKnownSymbol$6 = wellKnownSymbol$i;
2469
+ var wellKnownSymbol$5 = wellKnownSymbol$i;
2193
2470
 
2194
- var MATCH = wellKnownSymbol$6('match');
2471
+ var MATCH = wellKnownSymbol$5('match');
2195
2472
 
2196
2473
  var correctIsRegexpLogic = function (METHOD_NAME) {
2197
2474
  var regexp = /./;
@@ -2206,27 +2483,27 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
2206
2483
  };
2207
2484
 
2208
2485
  var $$5 = _export;
2209
- var uncurryThis$9 = functionUncurryThis;
2486
+ var uncurryThis$8 = functionUncurryThis;
2210
2487
  var notARegExp$1 = notARegexp;
2211
- var requireObjectCoercible$5 = requireObjectCoercible$8;
2212
- var toString$7 = toString$8;
2488
+ var requireObjectCoercible$4 = requireObjectCoercible$7;
2489
+ var toString$6 = toString$7;
2213
2490
  var correctIsRegExpLogic$1 = correctIsRegexpLogic;
2214
2491
 
2215
- var stringIndexOf$1 = uncurryThis$9(''.indexOf);
2492
+ var stringIndexOf$1 = uncurryThis$8(''.indexOf);
2216
2493
 
2217
2494
  // `String.prototype.includes` method
2218
2495
  // https://tc39.es/ecma262/#sec-string.prototype.includes
2219
2496
  $$5({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
2220
2497
  includes: function includes(searchString /* , position = 0 */) {
2221
2498
  return !!~stringIndexOf$1(
2222
- toString$7(requireObjectCoercible$5(this)),
2223
- toString$7(notARegExp$1(searchString)),
2499
+ toString$6(requireObjectCoercible$4(this)),
2500
+ toString$6(notARegExp$1(searchString)),
2224
2501
  arguments.length > 1 ? arguments[1] : undefined
2225
2502
  );
2226
2503
  }
2227
2504
  });
2228
2505
 
2229
- /*! *****************************************************************************
2506
+ /******************************************************************************
2230
2507
  Copyright (c) Microsoft Corporation.
2231
2508
 
2232
2509
  Permission to use, copy, modify, and/or distribute this software for any
@@ -2268,7 +2545,6 @@ const buildClientNinetailedRequestContext = () => ({
2268
2545
  * wait time because you can simply await `Promise.timeout` inside `fn`
2269
2546
  * to wait some time before the next call.
2270
2547
  */
2271
-
2272
2548
  function asyncThrottle(fn) {
2273
2549
  let runningPromise;
2274
2550
  let queuedPromise;
@@ -2276,7 +2552,6 @@ function asyncThrottle(fn) {
2276
2552
  return args => __awaiter(this, void 0, void 0, function* () {
2277
2553
  if (runningPromise) {
2278
2554
  nextArgs = args;
2279
-
2280
2555
  if (queuedPromise) {
2281
2556
  return queuedPromise;
2282
2557
  } else {
@@ -2304,16 +2579,13 @@ const NINETAILED_TRACKER_EVENTS = {
2304
2579
  * `profile` - Fires when the profile is returned by the cdp API.
2305
2580
  */
2306
2581
  profile: 'profile',
2307
-
2308
2582
  /**
2309
2583
  * `reset` - gets fired when the profile gets reset, so other plugins can react.
2310
2584
  */
2311
2585
  reset: 'reset-profile'
2312
2586
  };
2313
2587
  const PLUGIN_NAME = 'ninetailed';
2314
-
2315
2588
  const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
2316
-
2317
2589
  const ninetailedPlugin = ({
2318
2590
  clientId,
2319
2591
  environment,
@@ -2328,16 +2600,13 @@ const ninetailedPlugin = ({
2328
2600
  url
2329
2601
  });
2330
2602
  let queue = [];
2331
-
2332
2603
  const flush = instance => __awaiter(void 0, void 0, void 0, function* () {
2333
2604
  const events = Object.assign([], queue);
2334
2605
  logger.info('Start flushing events.');
2335
2606
  queue = [];
2336
-
2337
2607
  if (!events.length) {
2338
2608
  return;
2339
2609
  }
2340
-
2341
2610
  try {
2342
2611
  const anonymousId = instance.storage.getItem(ANONYMOUS_ID);
2343
2612
  const profile = yield apiClient.upsertProfile({
@@ -2356,7 +2625,6 @@ const ninetailedPlugin = ({
2356
2625
  } catch (error) {
2357
2626
  logger.debug('An error occurred during flushing the events: ', error);
2358
2627
  const fallbackProfile = instance.storage.getItem(PROFILE_FALLBACK_CACHE);
2359
-
2360
2628
  if (fallbackProfile) {
2361
2629
  logger.debug('Found a fallback profile - will use this.');
2362
2630
  instance.dispatch({
@@ -2371,19 +2639,15 @@ const ninetailedPlugin = ({
2371
2639
  error
2372
2640
  });
2373
2641
  }
2374
- } // This is necessary to make sure that the cache is updated before the next flush is performed
2375
-
2376
-
2642
+ }
2643
+ // This is necessary to make sure that the cache is updated before the next flush is performed
2377
2644
  yield delay(20);
2378
2645
  });
2379
-
2380
2646
  const throttledFlush = asyncThrottle(flush);
2381
-
2382
2647
  const enqueueEvent = (event, instance) => __awaiter(void 0, void 0, void 0, function* () {
2383
2648
  queue = unionBy([event], queue, 'messageId');
2384
2649
  throttledFlush(instance);
2385
2650
  });
2386
-
2387
2651
  const abortNonClientEvents = ({
2388
2652
  abort,
2389
2653
  payload
@@ -2391,10 +2655,8 @@ const ninetailedPlugin = ({
2391
2655
  if (typeof window !== 'object') {
2392
2656
  return abort();
2393
2657
  }
2394
-
2395
2658
  return payload;
2396
2659
  };
2397
-
2398
2660
  return {
2399
2661
  name: 'ninetailed',
2400
2662
  config: {},
@@ -2404,21 +2666,17 @@ const ninetailedPlugin = ({
2404
2666
  if (instance.storage.getItem(DEBUG_FLAG)) {
2405
2667
  logger.addSink(new ConsoleLogSink());
2406
2668
  logger.info('Ninetailed Debug Mode is enabled.');
2407
- } // legacy support for the old anonymousId
2408
-
2409
-
2669
+ }
2670
+ // legacy support for the old anonymousId
2410
2671
  const legacyAnonymousId = instance.storage.getItem(LEGACY_ANONYMOUS_ID);
2411
-
2412
2672
  if (legacyAnonymousId) {
2413
2673
  logger.debug('Found legacy anonymousId, migrating to new one.', legacyAnonymousId);
2414
2674
  instance.storage.setItem(ANONYMOUS_ID, legacyAnonymousId);
2415
2675
  instance.storage.removeItem(LEGACY_ANONYMOUS_ID);
2416
2676
  }
2417
-
2418
2677
  if (profile) {
2419
2678
  instance.storage.setItem(ANONYMOUS_ID, profile.id);
2420
2679
  }
2421
-
2422
2680
  logger.debug('Ninetailed Core plugin initialized.');
2423
2681
  },
2424
2682
  pageStart: params => {
@@ -2479,7 +2737,6 @@ const ninetailedPlugin = ({
2479
2737
  if (![ANONYMOUS_ID, DEBUG_FLAG, PROFILE_FALLBACK_CACHE].includes(payload.key)) {
2480
2738
  return abort();
2481
2739
  }
2482
-
2483
2740
  return payload;
2484
2741
  },
2485
2742
  methods: {
@@ -2492,8 +2749,8 @@ const ninetailedPlugin = ({
2492
2749
  });
2493
2750
  yield instance.storage.removeItem(ANONYMOUS_ID);
2494
2751
  yield instance.storage.removeItem(PROFILE_FALLBACK_CACHE);
2495
- logger.debug('Removed old profile data from localstorage.'); // sending a new page event, when no anonymousId is set will create a new profile.
2496
-
2752
+ logger.debug('Removed old profile data from localstorage.');
2753
+ // sending a new page event, when no anonymousId is set will create a new profile.
2497
2754
  yield instance.page();
2498
2755
  logger.info('Profile reset successful.');
2499
2756
  yield delay(10);
@@ -2502,7 +2759,6 @@ const ninetailedPlugin = ({
2502
2759
  const enabled = args[0];
2503
2760
  const instance = args[args.length - 1];
2504
2761
  const consoleLogSink = new ConsoleLogSink();
2505
-
2506
2762
  if (enabled) {
2507
2763
  yield instance.storage.setItem(DEBUG_FLAG, true);
2508
2764
  logger.addSink(consoleLogSink);
@@ -2517,169 +2773,42 @@ const ninetailedPlugin = ({
2517
2773
  };
2518
2774
  };
2519
2775
 
2520
- var objectDefineProperties = {};
2521
-
2522
- var DESCRIPTORS$1 = descriptors;
2523
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2524
- var definePropertyModule$2 = objectDefineProperty;
2525
- var anObject$5 = anObject$e;
2526
- var toIndexedObject$1 = toIndexedObject$5;
2527
- var objectKeys = objectKeys$2;
2528
-
2529
- // `Object.defineProperties` method
2530
- // https://tc39.es/ecma262/#sec-object.defineproperties
2531
- // eslint-disable-next-line es/no-object-defineproperties -- safe
2532
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2533
- anObject$5(O);
2534
- var props = toIndexedObject$1(Properties);
2535
- var keys = objectKeys(Properties);
2536
- var length = keys.length;
2537
- var index = 0;
2538
- var key;
2539
- while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
2540
- return O;
2541
- };
2542
-
2543
- /* global ActiveXObject -- old IE, WSH */
2544
-
2545
- var anObject$4 = anObject$e;
2546
- var definePropertiesModule = objectDefineProperties;
2547
- var enumBugKeys = enumBugKeys$3;
2548
- var hiddenKeys = hiddenKeys$4;
2549
- var html = html$2;
2550
- var documentCreateElement$1 = documentCreateElement$2;
2551
- var sharedKey$1 = sharedKey$3;
2552
-
2553
- var GT = '>';
2554
- var LT = '<';
2555
- var PROTOTYPE = 'prototype';
2556
- var SCRIPT = 'script';
2557
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
2558
-
2559
- var EmptyConstructor = function () { /* empty */ };
2560
-
2561
- var scriptTag = function (content) {
2562
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2563
- };
2564
-
2565
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2566
- var NullProtoObjectViaActiveX = function (activeXDocument) {
2567
- activeXDocument.write(scriptTag(''));
2568
- activeXDocument.close();
2569
- var temp = activeXDocument.parentWindow.Object;
2570
- activeXDocument = null; // avoid memory leak
2571
- return temp;
2572
- };
2573
-
2574
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
2575
- var NullProtoObjectViaIFrame = function () {
2576
- // Thrash, waste and sodomy: IE GC bug
2577
- var iframe = documentCreateElement$1('iframe');
2578
- var JS = 'java' + SCRIPT + ':';
2579
- var iframeDocument;
2580
- iframe.style.display = 'none';
2581
- html.appendChild(iframe);
2582
- // https://github.com/zloirock/core-js/issues/475
2583
- iframe.src = String(JS);
2584
- iframeDocument = iframe.contentWindow.document;
2585
- iframeDocument.open();
2586
- iframeDocument.write(scriptTag('document.F=Object'));
2587
- iframeDocument.close();
2588
- return iframeDocument.F;
2589
- };
2590
-
2591
- // Check for document.domain and active x support
2592
- // No need to use active x approach when document.domain is not set
2593
- // see https://github.com/es-shims/es5-shim/issues/150
2594
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2595
- // avoid IE GC bug
2596
- var activeXDocument;
2597
- var NullProtoObject = function () {
2598
- try {
2599
- activeXDocument = new ActiveXObject('htmlfile');
2600
- } catch (error) { /* ignore */ }
2601
- NullProtoObject = typeof document != 'undefined'
2602
- ? document.domain && activeXDocument
2603
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2604
- : NullProtoObjectViaIFrame()
2605
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
2606
- var length = enumBugKeys.length;
2607
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2608
- return NullProtoObject();
2609
- };
2610
-
2611
- hiddenKeys[IE_PROTO$1] = true;
2612
-
2613
- // `Object.create` method
2614
- // https://tc39.es/ecma262/#sec-object.create
2615
- var objectCreate = Object.create || function create(O, Properties) {
2616
- var result;
2617
- if (O !== null) {
2618
- EmptyConstructor[PROTOTYPE] = anObject$4(O);
2619
- result = new EmptyConstructor();
2620
- EmptyConstructor[PROTOTYPE] = null;
2621
- // add "__proto__" for Object.getPrototypeOf polyfill
2622
- result[IE_PROTO$1] = O;
2623
- } else result = NullProtoObject();
2624
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2625
- };
2626
-
2627
- var wellKnownSymbol$5 = wellKnownSymbol$i;
2628
- var create$2 = objectCreate;
2629
- var definePropertyModule$1 = objectDefineProperty;
2630
-
2631
- var UNSCOPABLES = wellKnownSymbol$5('unscopables');
2632
- var ArrayPrototype = Array.prototype;
2633
-
2634
- // Array.prototype[@@unscopables]
2635
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2636
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
2637
- definePropertyModule$1.f(ArrayPrototype, UNSCOPABLES, {
2638
- configurable: true,
2639
- value: create$2(null)
2640
- });
2641
- }
2642
-
2643
- // add a key to Array.prototype[@@unscopables]
2644
- var addToUnscopables$1 = function (key) {
2645
- ArrayPrototype[UNSCOPABLES][key] = true;
2646
- };
2647
-
2648
- var fails$9 = fails$k;
2776
+ var fails$8 = fails$l;
2649
2777
 
2650
- var correctPrototypeGetter = !fails$9(function () {
2778
+ var correctPrototypeGetter = !fails$8(function () {
2651
2779
  function F() { /* empty */ }
2652
2780
  F.prototype.constructor = null;
2653
2781
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2654
2782
  return Object.getPrototypeOf(new F()) !== F.prototype;
2655
2783
  });
2656
2784
 
2657
- var global$9 = global$K;
2658
2785
  var hasOwn = hasOwnProperty_1;
2659
- var isCallable$4 = isCallable$j;
2786
+ var isCallable$4 = isCallable$m;
2660
2787
  var toObject$2 = toObject$5;
2661
2788
  var sharedKey = sharedKey$3;
2662
2789
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2663
2790
 
2664
2791
  var IE_PROTO = sharedKey('IE_PROTO');
2665
- var Object$1 = global$9.Object;
2666
- var ObjectPrototype = Object$1.prototype;
2792
+ var $Object = Object;
2793
+ var ObjectPrototype = $Object.prototype;
2667
2794
 
2668
2795
  // `Object.getPrototypeOf` method
2669
2796
  // https://tc39.es/ecma262/#sec-object.getprototypeof
2670
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
2797
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
2798
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2671
2799
  var object = toObject$2(O);
2672
2800
  if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
2673
2801
  var constructor = object.constructor;
2674
2802
  if (isCallable$4(constructor) && object instanceof constructor) {
2675
2803
  return constructor.prototype;
2676
- } return object instanceof Object$1 ? ObjectPrototype : null;
2804
+ } return object instanceof $Object ? ObjectPrototype : null;
2677
2805
  };
2678
2806
 
2679
- var fails$8 = fails$k;
2680
- var isCallable$3 = isCallable$j;
2807
+ var fails$7 = fails$l;
2808
+ var isCallable$3 = isCallable$m;
2809
+ var isObject = isObject$9;
2681
2810
  var getPrototypeOf$1 = objectGetPrototypeOf;
2682
- var redefine$2 = redefine$6.exports;
2811
+ var defineBuiltIn$2 = defineBuiltIn$6;
2683
2812
  var wellKnownSymbol$4 = wellKnownSymbol$i;
2684
2813
 
2685
2814
  var ITERATOR$3 = wellKnownSymbol$4('iterator');
@@ -2700,7 +2829,7 @@ if ([].keys) {
2700
2829
  }
2701
2830
  }
2702
2831
 
2703
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$8(function () {
2832
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$7(function () {
2704
2833
  var test = {};
2705
2834
  // FF44- legacy iterators case
2706
2835
  return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
@@ -2711,7 +2840,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
2711
2840
  // `%IteratorPrototype%[@@iterator]()` method
2712
2841
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2713
2842
  if (!isCallable$3(IteratorPrototype$2[ITERATOR$3])) {
2714
- redefine$2(IteratorPrototype$2, ITERATOR$3, function () {
2843
+ defineBuiltIn$2(IteratorPrototype$2, ITERATOR$3, function () {
2715
2844
  return this;
2716
2845
  });
2717
2846
  }
@@ -2723,30 +2852,30 @@ var iteratorsCore = {
2723
2852
 
2724
2853
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
2725
2854
  var create$1 = objectCreate;
2726
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
2855
+ var createPropertyDescriptor = createPropertyDescriptor$3;
2727
2856
  var setToStringTag$1 = setToStringTag$3;
2728
2857
  var Iterators$2 = iterators;
2729
2858
 
2730
2859
  var returnThis$1 = function () { return this; };
2731
2860
 
2732
- var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2861
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2733
2862
  var TO_STRING_TAG = NAME + ' Iterator';
2734
- IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
2863
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
2735
2864
  setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
2736
2865
  Iterators$2[TO_STRING_TAG] = returnThis$1;
2737
2866
  return IteratorConstructor;
2738
2867
  };
2739
2868
 
2740
2869
  var $$4 = _export;
2741
- var call$4 = functionCall;
2870
+ var call$3 = functionCall;
2742
2871
  var FunctionName = functionName;
2743
- var isCallable$2 = isCallable$j;
2744
- var createIteratorConstructor = createIteratorConstructor$1;
2872
+ var isCallable$2 = isCallable$m;
2873
+ var createIteratorConstructor = iteratorCreateConstructor;
2745
2874
  var getPrototypeOf = objectGetPrototypeOf;
2746
2875
  var setPrototypeOf = objectSetPrototypeOf;
2747
2876
  var setToStringTag = setToStringTag$3;
2748
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
2749
- var redefine$1 = redefine$6.exports;
2877
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
2878
+ var defineBuiltIn$1 = defineBuiltIn$6;
2750
2879
  var wellKnownSymbol$3 = wellKnownSymbol$i;
2751
2880
  var Iterators$1 = iterators;
2752
2881
  var IteratorsCore = iteratorsCore;
@@ -2762,7 +2891,7 @@ var ENTRIES = 'entries';
2762
2891
 
2763
2892
  var returnThis = function () { return this; };
2764
2893
 
2765
- var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2894
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2766
2895
  createIteratorConstructor(IteratorConstructor, NAME, next);
2767
2896
 
2768
2897
  var getIterationMethod = function (KIND) {
@@ -2793,7 +2922,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
2793
2922
  if (setPrototypeOf) {
2794
2923
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2795
2924
  } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$2])) {
2796
- redefine$1(CurrentIteratorPrototype, ITERATOR$2, returnThis);
2925
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$2, returnThis);
2797
2926
  }
2798
2927
  }
2799
2928
  // Set @@toStringTag to native iterators
@@ -2807,7 +2936,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
2807
2936
  createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
2808
2937
  } else {
2809
2938
  INCORRECT_VALUES_NAME = true;
2810
- defaultIterator = function values() { return call$4(nativeIterator, this); };
2939
+ defaultIterator = function values() { return call$3(nativeIterator, this); };
2811
2940
  }
2812
2941
  }
2813
2942
 
@@ -2820,26 +2949,33 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
2820
2949
  };
2821
2950
  if (FORCED) for (KEY in methods) {
2822
2951
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2823
- redefine$1(IterablePrototype, KEY, methods[KEY]);
2952
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
2824
2953
  }
2825
2954
  } else $$4({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2826
2955
  }
2827
2956
 
2828
2957
  // define iterator
2829
2958
  if (IterablePrototype[ITERATOR$2] !== defaultIterator) {
2830
- redefine$1(IterablePrototype, ITERATOR$2, defaultIterator, { name: DEFAULT });
2959
+ defineBuiltIn$1(IterablePrototype, ITERATOR$2, defaultIterator, { name: DEFAULT });
2831
2960
  }
2832
2961
  Iterators$1[NAME] = defaultIterator;
2833
2962
 
2834
2963
  return methods;
2835
2964
  };
2836
2965
 
2966
+ // `CreateIterResultObject` abstract operation
2967
+ // https://tc39.es/ecma262/#sec-createiterresultobject
2968
+ var createIterResultObject$1 = function (value, done) {
2969
+ return { value: value, done: done };
2970
+ };
2971
+
2837
2972
  var toIndexedObject = toIndexedObject$5;
2838
- var addToUnscopables = addToUnscopables$1;
2973
+ var addToUnscopables = addToUnscopables$2;
2839
2974
  var Iterators = iterators;
2840
2975
  var InternalStateModule = internalState;
2841
2976
  var defineProperty = objectDefineProperty.f;
2842
- var defineIterator = defineIterator$1;
2977
+ var defineIterator = iteratorDefine;
2978
+ var createIterResultObject = createIterResultObject$1;
2843
2979
  var DESCRIPTORS = descriptors;
2844
2980
 
2845
2981
  var ARRAY_ITERATOR = 'Array Iterator';
@@ -2872,11 +3008,11 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
2872
3008
  var index = state.index++;
2873
3009
  if (!target || index >= target.length) {
2874
3010
  state.target = undefined;
2875
- return { value: undefined, done: true };
3011
+ return createIterResultObject(undefined, true);
2876
3012
  }
2877
- if (kind == 'keys') return { value: index, done: false };
2878
- if (kind == 'values') return { value: target[index], done: false };
2879
- return { value: [index, target[index]], done: false };
3013
+ if (kind == 'keys') return createIterResultObject(index, false);
3014
+ if (kind == 'values') return createIterResultObject(target[index], false);
3015
+ return createIterResultObject([index, target[index]], false);
2880
3016
  }, 'values');
2881
3017
 
2882
3018
  // argumentsList[@@iterator] is %ArrayProto_values%
@@ -2938,11 +3074,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
2938
3074
 
2939
3075
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2940
3076
 
2941
- var global$8 = global$K;
3077
+ var global$5 = global$n;
2942
3078
  var DOMIterables = domIterables;
2943
3079
  var DOMTokenListPrototype = domTokenListPrototype;
2944
3080
  var ArrayIteratorMethods = es_array_iterator;
2945
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
3081
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
2946
3082
  var wellKnownSymbol$2 = wellKnownSymbol$i;
2947
3083
 
2948
3084
  var ITERATOR$1 = wellKnownSymbol$2('iterator');
@@ -2972,7 +3108,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2972
3108
  };
2973
3109
 
2974
3110
  for (var COLLECTION_NAME in DOMIterables) {
2975
- handlePrototype(global$8[COLLECTION_NAME] && global$8[COLLECTION_NAME].prototype, COLLECTION_NAME);
3111
+ handlePrototype(global$5[COLLECTION_NAME] && global$5[COLLECTION_NAME].prototype, COLLECTION_NAME);
2976
3112
  }
2977
3113
 
2978
3114
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -2992,17 +3128,14 @@ class Ninetailed {
2992
3128
  onError
2993
3129
  } = {}) {
2994
3130
  this.isInitialized = false;
2995
-
2996
3131
  this.page = (data, options) => __awaiter(this, void 0, void 0, function* () {
2997
3132
  yield this.waitUntilInitialized();
2998
3133
  return this.instance.page(data, this.buildOptions(options));
2999
3134
  });
3000
-
3001
3135
  this.track = (event, payload, options) => __awaiter(this, void 0, void 0, function* () {
3002
3136
  yield this.waitUntilInitialized();
3003
3137
  return this.instance.track(event, payload, this.buildOptions(options));
3004
3138
  });
3005
-
3006
3139
  this.trackHasSeenComponent = payload => __awaiter(this, void 0, void 0, function* () {
3007
3140
  return this.track('hasSeenComponent', payload, {
3008
3141
  plugins: {
@@ -3011,7 +3144,6 @@ class Ninetailed {
3011
3144
  }
3012
3145
  });
3013
3146
  });
3014
-
3015
3147
  this.trackExperience = payload => {
3016
3148
  return this.track('nt_experience', payload, {
3017
3149
  plugins: {
@@ -3020,14 +3152,11 @@ class Ninetailed {
3020
3152
  }
3021
3153
  });
3022
3154
  };
3023
-
3024
3155
  this.identify = (uid, traits, options) => __awaiter(this, void 0, void 0, function* () {
3025
3156
  yield this.waitUntilInitialized();
3026
3157
  /*console.log("Identify triggered");*/
3027
-
3028
3158
  return this.instance.identify(uid, traits, this.buildOptions(options));
3029
3159
  });
3030
-
3031
3160
  this.reset = () => {
3032
3161
  this.onIsInitialized(() => {
3033
3162
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -3035,7 +3164,6 @@ class Ninetailed {
3035
3164
  this.instance.plugins[PLUGIN_NAME].reset();
3036
3165
  });
3037
3166
  };
3038
-
3039
3167
  this.debug = enabled => {
3040
3168
  this.onIsInitialized(() => {
3041
3169
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -3043,7 +3171,6 @@ class Ninetailed {
3043
3171
  this.instance.plugins[PLUGIN_NAME].debug(enabled);
3044
3172
  });
3045
3173
  };
3046
-
3047
3174
  this.onProfileChange = cb => {
3048
3175
  cb(this.profileState);
3049
3176
  return this.instance.on(NINETAILED_TRACKER_EVENTS.profile, ({
@@ -3064,7 +3191,6 @@ class Ninetailed {
3064
3191
  }
3065
3192
  });
3066
3193
  };
3067
-
3068
3194
  this.onIsInitialized = onIsInitialized => {
3069
3195
  if (typeof onIsInitialized === 'function') {
3070
3196
  if (this.isInitialized) {
@@ -3077,15 +3203,12 @@ class Ninetailed {
3077
3203
  }
3078
3204
  }
3079
3205
  };
3080
-
3081
3206
  this.waitUntilInitialized = () => {
3082
3207
  return new Promise(resolve => {
3083
3208
  this.onIsInitialized(resolve);
3084
3209
  });
3085
3210
  };
3086
-
3087
3211
  this.plugins = flatten(plugins || []);
3088
-
3089
3212
  if (profile) {
3090
3213
  this._profileState = {
3091
3214
  status: 'success',
@@ -3101,15 +3224,12 @@ class Ninetailed {
3101
3224
  from: 'api'
3102
3225
  };
3103
3226
  }
3104
-
3105
3227
  if (typeof onLog === 'function') {
3106
3228
  logger.addSink(new OnLogLogSink(onLog));
3107
3229
  }
3108
-
3109
3230
  if (typeof onError === 'function') {
3110
3231
  logger.addSink(new OnErrorLogSink(onError));
3111
3232
  }
3112
-
3113
3233
  this.logger = logger;
3114
3234
  this.instance = Analytics({
3115
3235
  app: 'ninetailed',
@@ -3127,22 +3247,19 @@ class Ninetailed {
3127
3247
  this.isInitialized = true;
3128
3248
  logger.info('Ninetailed Experience.js SDK is completely initialized.');
3129
3249
  detachOnReadyListener();
3130
- }); // put in private method
3131
-
3250
+ });
3251
+ // put in private method
3132
3252
  this.onProfileChange(profileState => {
3133
3253
  this._profileState = profileState;
3134
3254
  });
3135
3255
  this.registerWindowHandlers();
3136
3256
  }
3137
-
3138
3257
  get profileState() {
3139
3258
  return this._profileState;
3140
3259
  }
3141
-
3142
3260
  buildOptions(options = {}) {
3143
3261
  return Object.assign({}, options);
3144
3262
  }
3145
-
3146
3263
  registerWindowHandlers() {
3147
3264
  if (typeof window !== 'undefined') {
3148
3265
  window.ninetailed = Object.assign({}, window.ninetailed, {
@@ -3155,7 +3272,6 @@ class Ninetailed {
3155
3272
  });
3156
3273
  }
3157
3274
  }
3158
-
3159
3275
  }
3160
3276
 
3161
3277
  const selectVariant$1 = (baseline, variants, {
@@ -3181,7 +3297,6 @@ const selectVariant$1 = (baseline, variants, {
3181
3297
  error: null
3182
3298
  };
3183
3299
  }
3184
-
3185
3300
  if (status === 'error') {
3186
3301
  return {
3187
3302
  loading: false,
@@ -3198,13 +3313,10 @@ const selectVariant$1 = (baseline, variants, {
3198
3313
  error: error
3199
3314
  };
3200
3315
  }
3201
-
3202
3316
  const variant = find(variants, variant => {
3203
3317
  var _a;
3204
-
3205
3318
  return includes(profile === null || profile === void 0 ? void 0 : profile.audiences, (_a = variant.audience) === null || _a === void 0 ? void 0 : _a.id);
3206
3319
  });
3207
-
3208
3320
  if (variant) {
3209
3321
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3210
3322
  // @ts-ignore
@@ -3223,7 +3335,6 @@ const selectVariant$1 = (baseline, variants, {
3223
3335
  error: null
3224
3336
  };
3225
3337
  }
3226
-
3227
3338
  return {
3228
3339
  loading: false,
3229
3340
  variant,
@@ -3237,8 +3348,6 @@ const selectVariant$1 = (baseline, variants, {
3237
3348
  /**
3238
3349
  * There was no matching audience found.
3239
3350
  */
3240
-
3241
-
3242
3351
  return {
3243
3352
  loading: false,
3244
3353
  variant: Object.assign(Object.assign({}, baseline), {
@@ -3259,17 +3368,14 @@ const EXPERIENCE_TRAIT_PREFIX = 'nt_experiment_';
3259
3368
 
3260
3369
  const selectBaselineWithVariants = (experience, baseline) => {
3261
3370
  var _a;
3262
-
3263
3371
  return (_a = experience.components.find(baselineWithVariants => baselineWithVariants.baseline.id === baseline.id)) !== null && _a !== void 0 ? _a : null;
3264
3372
  };
3265
3373
 
3266
3374
  const selectVariants = (experience, baseline) => {
3267
3375
  const baselineWithVariants = selectBaselineWithVariants(experience, baseline);
3268
-
3269
3376
  if (!baselineWithVariants) {
3270
3377
  return [];
3271
3378
  }
3272
-
3273
3379
  return baselineWithVariants.variants;
3274
3380
  };
3275
3381
 
@@ -3279,18 +3385,18 @@ const selectHasVariants = (experience, baseline) => {
3279
3385
  };
3280
3386
 
3281
3387
  var $$3 = _export;
3282
- var uncurryThis$8 = functionUncurryThis;
3388
+ var uncurryThis$7 = functionUncurryThisClause;
3283
3389
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3284
- var toLength$2 = toLength$4;
3285
- var toString$6 = toString$8;
3390
+ var toLength$1 = toLength$3;
3391
+ var toString$5 = toString$7;
3286
3392
  var notARegExp = notARegexp;
3287
- var requireObjectCoercible$4 = requireObjectCoercible$8;
3393
+ var requireObjectCoercible$3 = requireObjectCoercible$7;
3288
3394
  var correctIsRegExpLogic = correctIsRegexpLogic;
3289
3395
 
3290
3396
  // eslint-disable-next-line es/no-string-prototype-startswith -- safe
3291
- var un$StartsWith = uncurryThis$8(''.startsWith);
3292
- var stringSlice$5 = uncurryThis$8(''.slice);
3293
- var min$2 = Math.min;
3397
+ var nativeStartsWith = uncurryThis$7(''.startsWith);
3398
+ var stringSlice$4 = uncurryThis$7(''.slice);
3399
+ var min$1 = Math.min;
3294
3400
 
3295
3401
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
3296
3402
  // https://github.com/zloirock/core-js/pull/702
@@ -3303,39 +3409,41 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
3303
3409
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
3304
3410
  $$3({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
3305
3411
  startsWith: function startsWith(searchString /* , position = 0 */) {
3306
- var that = toString$6(requireObjectCoercible$4(this));
3412
+ var that = toString$5(requireObjectCoercible$3(this));
3307
3413
  notARegExp(searchString);
3308
- var index = toLength$2(min$2(arguments.length > 1 ? arguments[1] : undefined, that.length));
3309
- var search = toString$6(searchString);
3310
- return un$StartsWith
3311
- ? un$StartsWith(that, search, index)
3312
- : stringSlice$5(that, index, index + search.length) === search;
3414
+ var index = toLength$1(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length));
3415
+ var search = toString$5(searchString);
3416
+ return nativeStartsWith
3417
+ ? nativeStartsWith(that, search, index)
3418
+ : stringSlice$4(that, index, index + search.length) === search;
3313
3419
  }
3314
3420
  });
3315
3421
 
3316
- var anObject$3 = anObject$e;
3422
+ var anObject$2 = anObject$d;
3317
3423
 
3318
3424
  // `RegExp.prototype.flags` getter implementation
3319
3425
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
3320
3426
  var regexpFlags$1 = function () {
3321
- var that = anObject$3(this);
3427
+ var that = anObject$2(this);
3322
3428
  var result = '';
3429
+ if (that.hasIndices) result += 'd';
3323
3430
  if (that.global) result += 'g';
3324
3431
  if (that.ignoreCase) result += 'i';
3325
3432
  if (that.multiline) result += 'm';
3326
3433
  if (that.dotAll) result += 's';
3327
3434
  if (that.unicode) result += 'u';
3435
+ if (that.unicodeSets) result += 'v';
3328
3436
  if (that.sticky) result += 'y';
3329
3437
  return result;
3330
3438
  };
3331
3439
 
3332
- var fails$7 = fails$k;
3333
- var global$7 = global$K;
3440
+ var fails$6 = fails$l;
3441
+ var global$4 = global$n;
3334
3442
 
3335
3443
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
3336
- var $RegExp$2 = global$7.RegExp;
3444
+ var $RegExp$2 = global$4.RegExp;
3337
3445
 
3338
- var UNSUPPORTED_Y$2 = fails$7(function () {
3446
+ var UNSUPPORTED_Y$1 = fails$6(function () {
3339
3447
  var re = $RegExp$2('a', 'y');
3340
3448
  re.lastIndex = 2;
3341
3449
  return re.exec('abcd') != null;
@@ -3343,11 +3451,11 @@ var UNSUPPORTED_Y$2 = fails$7(function () {
3343
3451
 
3344
3452
  // UC Browser bug
3345
3453
  // https://github.com/zloirock/core-js/issues/1008
3346
- var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$7(function () {
3454
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$6(function () {
3347
3455
  return !$RegExp$2('a', 'y').sticky;
3348
3456
  });
3349
3457
 
3350
- var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$7(function () {
3458
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
3351
3459
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
3352
3460
  var re = $RegExp$2('^r', 'gy');
3353
3461
  re.lastIndex = 2;
@@ -3357,27 +3465,27 @@ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$7(function () {
3357
3465
  var regexpStickyHelpers = {
3358
3466
  BROKEN_CARET: BROKEN_CARET,
3359
3467
  MISSED_STICKY: MISSED_STICKY,
3360
- UNSUPPORTED_Y: UNSUPPORTED_Y$2
3468
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
3361
3469
  };
3362
3470
 
3363
- var fails$6 = fails$k;
3364
- var global$6 = global$K;
3471
+ var fails$5 = fails$l;
3472
+ var global$3 = global$n;
3365
3473
 
3366
3474
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3367
- var $RegExp$1 = global$6.RegExp;
3475
+ var $RegExp$1 = global$3.RegExp;
3368
3476
 
3369
- var regexpUnsupportedDotAll = fails$6(function () {
3477
+ var regexpUnsupportedDotAll = fails$5(function () {
3370
3478
  var re = $RegExp$1('.', 's');
3371
3479
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
3372
3480
  });
3373
3481
 
3374
- var fails$5 = fails$k;
3375
- var global$5 = global$K;
3482
+ var fails$4 = fails$l;
3483
+ var global$2 = global$n;
3376
3484
 
3377
3485
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3378
- var $RegExp = global$5.RegExp;
3486
+ var $RegExp = global$2.RegExp;
3379
3487
 
3380
- var regexpUnsupportedNcg = fails$5(function () {
3488
+ var regexpUnsupportedNcg = fails$4(function () {
3381
3489
  var re = $RegExp('(?<a>b)', 'g');
3382
3490
  return re.exec('b').groups.a !== 'b' ||
3383
3491
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -3385,11 +3493,11 @@ var regexpUnsupportedNcg = fails$5(function () {
3385
3493
 
3386
3494
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
3387
3495
  /* eslint-disable regexp/no-useless-quantifier -- testing */
3388
- var call$3 = functionCall;
3389
- var uncurryThis$7 = functionUncurryThis;
3390
- var toString$5 = toString$8;
3496
+ var call$2 = functionCall;
3497
+ var uncurryThis$6 = functionUncurryThis;
3498
+ var toString$4 = toString$7;
3391
3499
  var regexpFlags = regexpFlags$1;
3392
- var stickyHelpers$1 = regexpStickyHelpers;
3500
+ var stickyHelpers = regexpStickyHelpers;
3393
3501
  var shared = shared$4.exports;
3394
3502
  var create = objectCreate;
3395
3503
  var getInternalState = internalState.get;
@@ -3399,44 +3507,44 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
3399
3507
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
3400
3508
  var nativeExec = RegExp.prototype.exec;
3401
3509
  var patchedExec = nativeExec;
3402
- var charAt$3 = uncurryThis$7(''.charAt);
3403
- var indexOf = uncurryThis$7(''.indexOf);
3404
- var replace$2 = uncurryThis$7(''.replace);
3405
- var stringSlice$4 = uncurryThis$7(''.slice);
3510
+ var charAt$3 = uncurryThis$6(''.charAt);
3511
+ var indexOf = uncurryThis$6(''.indexOf);
3512
+ var replace$2 = uncurryThis$6(''.replace);
3513
+ var stringSlice$3 = uncurryThis$6(''.slice);
3406
3514
 
3407
3515
  var UPDATES_LAST_INDEX_WRONG = (function () {
3408
3516
  var re1 = /a/;
3409
3517
  var re2 = /b*/g;
3410
- call$3(nativeExec, re1, 'a');
3411
- call$3(nativeExec, re2, 'a');
3518
+ call$2(nativeExec, re1, 'a');
3519
+ call$2(nativeExec, re2, 'a');
3412
3520
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
3413
3521
  })();
3414
3522
 
3415
- var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
3523
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
3416
3524
 
3417
3525
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
3418
3526
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
3419
3527
 
3420
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
3528
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
3421
3529
 
3422
3530
  if (PATCH) {
3423
3531
  patchedExec = function exec(string) {
3424
3532
  var re = this;
3425
3533
  var state = getInternalState(re);
3426
- var str = toString$5(string);
3534
+ var str = toString$4(string);
3427
3535
  var raw = state.raw;
3428
3536
  var result, reCopy, lastIndex, match, i, object, group;
3429
3537
 
3430
3538
  if (raw) {
3431
3539
  raw.lastIndex = re.lastIndex;
3432
- result = call$3(patchedExec, raw, str);
3540
+ result = call$2(patchedExec, raw, str);
3433
3541
  re.lastIndex = raw.lastIndex;
3434
3542
  return result;
3435
3543
  }
3436
3544
 
3437
3545
  var groups = state.groups;
3438
- var sticky = UNSUPPORTED_Y$1 && re.sticky;
3439
- var flags = call$3(regexpFlags, re);
3546
+ var sticky = UNSUPPORTED_Y && re.sticky;
3547
+ var flags = call$2(regexpFlags, re);
3440
3548
  var source = re.source;
3441
3549
  var charsAdded = 0;
3442
3550
  var strCopy = str;
@@ -3447,7 +3555,7 @@ if (PATCH) {
3447
3555
  flags += 'g';
3448
3556
  }
3449
3557
 
3450
- strCopy = stringSlice$4(str, re.lastIndex);
3558
+ strCopy = stringSlice$3(str, re.lastIndex);
3451
3559
  // Support anchored sticky behavior.
3452
3560
  if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
3453
3561
  source = '(?: ' + source + ')';
@@ -3464,12 +3572,12 @@ if (PATCH) {
3464
3572
  }
3465
3573
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
3466
3574
 
3467
- match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
3575
+ match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
3468
3576
 
3469
3577
  if (sticky) {
3470
3578
  if (match) {
3471
- match.input = stringSlice$4(match.input, charsAdded);
3472
- match[0] = stringSlice$4(match[0], charsAdded);
3579
+ match.input = stringSlice$3(match.input, charsAdded);
3580
+ match[0] = stringSlice$3(match[0], charsAdded);
3473
3581
  match.index = re.lastIndex;
3474
3582
  re.lastIndex += match[0].length;
3475
3583
  } else re.lastIndex = 0;
@@ -3478,8 +3586,8 @@ if (PATCH) {
3478
3586
  }
3479
3587
  if (NPCG_INCLUDED && match && match.length > 1) {
3480
3588
  // Fix browsers whose `exec` methods don't consistently return `undefined`
3481
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
3482
- call$3(nativeReplace, match[0], reCopy, function () {
3589
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
3590
+ call$2(nativeReplace, match[0], reCopy, function () {
3483
3591
  for (i = 1; i < arguments.length - 2; i++) {
3484
3592
  if (arguments[i] === undefined) match[i] = undefined;
3485
3593
  }
@@ -3498,25 +3606,25 @@ if (PATCH) {
3498
3606
  };
3499
3607
  }
3500
3608
 
3501
- var regexpExec$3 = patchedExec;
3609
+ var regexpExec$2 = patchedExec;
3502
3610
 
3503
3611
  var $$2 = _export;
3504
- var exec$2 = regexpExec$3;
3612
+ var exec$1 = regexpExec$2;
3505
3613
 
3506
3614
  // `RegExp.prototype.exec` method
3507
3615
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
3508
- $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
3509
- exec: exec$2
3616
+ $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
3617
+ exec: exec$1
3510
3618
  });
3511
3619
 
3512
3620
  // TODO: Remove from `core-js@4` since it's moved to entry points
3513
3621
 
3514
- var uncurryThis$6 = functionUncurryThis;
3515
- var redefine = redefine$6.exports;
3516
- var regexpExec$2 = regexpExec$3;
3517
- var fails$4 = fails$k;
3622
+ var uncurryThis$5 = functionUncurryThisClause;
3623
+ var defineBuiltIn = defineBuiltIn$6;
3624
+ var regexpExec$1 = regexpExec$2;
3625
+ var fails$3 = fails$l;
3518
3626
  var wellKnownSymbol$1 = wellKnownSymbol$i;
3519
- var createNonEnumerableProperty = createNonEnumerableProperty$6;
3627
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
3520
3628
 
3521
3629
  var SPECIES = wellKnownSymbol$1('species');
3522
3630
  var RegExpPrototype = RegExp.prototype;
@@ -3524,14 +3632,14 @@ var RegExpPrototype = RegExp.prototype;
3524
3632
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3525
3633
  var SYMBOL = wellKnownSymbol$1(KEY);
3526
3634
 
3527
- var DELEGATES_TO_SYMBOL = !fails$4(function () {
3635
+ var DELEGATES_TO_SYMBOL = !fails$3(function () {
3528
3636
  // String methods call symbol-named RegEp methods
3529
3637
  var O = {};
3530
3638
  O[SYMBOL] = function () { return 7; };
3531
3639
  return ''[KEY](O) != 7;
3532
3640
  });
3533
3641
 
3534
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$4(function () {
3642
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
3535
3643
  // Symbol-named RegExp methods call .exec
3536
3644
  var execCalled = false;
3537
3645
  var re = /a/;
@@ -3560,11 +3668,11 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3560
3668
  !DELEGATES_TO_EXEC ||
3561
3669
  FORCED
3562
3670
  ) {
3563
- var uncurriedNativeRegExpMethod = uncurryThis$6(/./[SYMBOL]);
3671
+ var uncurriedNativeRegExpMethod = uncurryThis$5(/./[SYMBOL]);
3564
3672
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
3565
- var uncurriedNativeMethod = uncurryThis$6(nativeMethod);
3673
+ var uncurriedNativeMethod = uncurryThis$5(nativeMethod);
3566
3674
  var $exec = regexp.exec;
3567
- if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
3675
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
3568
3676
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
3569
3677
  // The native String method already delegates to @@method (this
3570
3678
  // polyfilled function), leasing to infinite recursion.
@@ -3576,25 +3684,25 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3576
3684
  return { done: false };
3577
3685
  });
3578
3686
 
3579
- redefine(String.prototype, KEY, methods[0]);
3580
- redefine(RegExpPrototype, SYMBOL, methods[1]);
3687
+ defineBuiltIn(String.prototype, KEY, methods[0]);
3688
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
3581
3689
  }
3582
3690
 
3583
3691
  if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
3584
3692
  };
3585
3693
 
3586
- var uncurryThis$5 = functionUncurryThis;
3694
+ var uncurryThis$4 = functionUncurryThis;
3587
3695
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
3588
- var toString$4 = toString$8;
3589
- var requireObjectCoercible$3 = requireObjectCoercible$8;
3696
+ var toString$3 = toString$7;
3697
+ var requireObjectCoercible$2 = requireObjectCoercible$7;
3590
3698
 
3591
- var charAt$2 = uncurryThis$5(''.charAt);
3592
- var charCodeAt = uncurryThis$5(''.charCodeAt);
3593
- var stringSlice$3 = uncurryThis$5(''.slice);
3699
+ var charAt$2 = uncurryThis$4(''.charAt);
3700
+ var charCodeAt = uncurryThis$4(''.charCodeAt);
3701
+ var stringSlice$2 = uncurryThis$4(''.slice);
3594
3702
 
3595
3703
  var createMethod$2 = function (CONVERT_TO_STRING) {
3596
3704
  return function ($this, pos) {
3597
- var S = toString$4(requireObjectCoercible$3($this));
3705
+ var S = toString$3(requireObjectCoercible$2($this));
3598
3706
  var position = toIntegerOrInfinity$1(pos);
3599
3707
  var size = S.length;
3600
3708
  var first, second;
@@ -3606,7 +3714,7 @@ var createMethod$2 = function (CONVERT_TO_STRING) {
3606
3714
  ? charAt$2(S, position)
3607
3715
  : first
3608
3716
  : CONVERT_TO_STRING
3609
- ? stringSlice$3(S, position, position + 2)
3717
+ ? stringSlice$2(S, position, position + 2)
3610
3718
  : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
3611
3719
  };
3612
3720
  };
@@ -3624,17 +3732,17 @@ var charAt$1 = stringMultibyte.charAt;
3624
3732
 
3625
3733
  // `AdvanceStringIndex` abstract operation
3626
3734
  // https://tc39.es/ecma262/#sec-advancestringindex
3627
- var advanceStringIndex$2 = function (S, index, unicode) {
3735
+ var advanceStringIndex$1 = function (S, index, unicode) {
3628
3736
  return index + (unicode ? charAt$1(S, index).length : 1);
3629
3737
  };
3630
3738
 
3631
- var uncurryThis$4 = functionUncurryThis;
3739
+ var uncurryThis$3 = functionUncurryThis;
3632
3740
  var toObject$1 = toObject$5;
3633
3741
 
3634
3742
  var floor = Math.floor;
3635
- var charAt = uncurryThis$4(''.charAt);
3636
- var replace$1 = uncurryThis$4(''.replace);
3637
- var stringSlice$2 = uncurryThis$4(''.slice);
3743
+ var charAt = uncurryThis$3(''.charAt);
3744
+ var replace$1 = uncurryThis$3(''.replace);
3745
+ var stringSlice$1 = uncurryThis$3(''.slice);
3638
3746
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
3639
3747
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
3640
3748
 
@@ -3653,10 +3761,10 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
3653
3761
  switch (charAt(ch, 0)) {
3654
3762
  case '$': return '$';
3655
3763
  case '&': return matched;
3656
- case '`': return stringSlice$2(str, 0, position);
3657
- case "'": return stringSlice$2(str, tailPos);
3764
+ case '`': return stringSlice$1(str, 0, position);
3765
+ case "'": return stringSlice$1(str, tailPos);
3658
3766
  case '<':
3659
- capture = namedCaptures[stringSlice$2(ch, 1, -1)];
3767
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
3660
3768
  break;
3661
3769
  default: // \d\d?
3662
3770
  var n = +ch;
@@ -3673,52 +3781,52 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
3673
3781
  });
3674
3782
  };
3675
3783
 
3676
- var global$4 = global$K;
3677
- var call$2 = functionCall;
3678
- var anObject$2 = anObject$e;
3679
- var isCallable$1 = isCallable$j;
3680
- var classof = classofRaw$1;
3681
- var regexpExec$1 = regexpExec$3;
3784
+ var call$1 = functionCall;
3785
+ var anObject$1 = anObject$d;
3786
+ var isCallable$1 = isCallable$m;
3787
+ var classof = classofRaw$2;
3788
+ var regexpExec = regexpExec$2;
3682
3789
 
3683
- var TypeError$2 = global$4.TypeError;
3790
+ var $TypeError$1 = TypeError;
3684
3791
 
3685
3792
  // `RegExpExec` abstract operation
3686
3793
  // https://tc39.es/ecma262/#sec-regexpexec
3687
3794
  var regexpExecAbstract = function (R, S) {
3688
3795
  var exec = R.exec;
3689
3796
  if (isCallable$1(exec)) {
3690
- var result = call$2(exec, R, S);
3691
- if (result !== null) anObject$2(result);
3797
+ var result = call$1(exec, R, S);
3798
+ if (result !== null) anObject$1(result);
3692
3799
  return result;
3693
3800
  }
3694
- if (classof(R) === 'RegExp') return call$2(regexpExec$1, R, S);
3695
- throw TypeError$2('RegExp#exec called on incompatible receiver');
3801
+ if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
3802
+ throw $TypeError$1('RegExp#exec called on incompatible receiver');
3696
3803
  };
3697
3804
 
3698
- var apply$1 = functionApply;
3699
- var call$1 = functionCall;
3700
- var uncurryThis$3 = functionUncurryThis;
3701
- var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
3702
- var fails$3 = fails$k;
3703
- var anObject$1 = anObject$e;
3704
- var isCallable = isCallable$j;
3805
+ var apply = functionApply;
3806
+ var call = functionCall;
3807
+ var uncurryThis$2 = functionUncurryThis;
3808
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3809
+ var fails$2 = fails$l;
3810
+ var anObject = anObject$d;
3811
+ var isCallable = isCallable$m;
3812
+ var isNullOrUndefined = isNullOrUndefined$5;
3705
3813
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
3706
- var toLength$1 = toLength$4;
3707
- var toString$3 = toString$8;
3708
- var requireObjectCoercible$2 = requireObjectCoercible$8;
3709
- var advanceStringIndex$1 = advanceStringIndex$2;
3710
- var getMethod$1 = getMethod$5;
3814
+ var toLength = toLength$3;
3815
+ var toString$2 = toString$7;
3816
+ var requireObjectCoercible$1 = requireObjectCoercible$7;
3817
+ var advanceStringIndex = advanceStringIndex$1;
3818
+ var getMethod = getMethod$4;
3711
3819
  var getSubstitution = getSubstitution$1;
3712
3820
  var regExpExec = regexpExecAbstract;
3713
3821
  var wellKnownSymbol = wellKnownSymbol$i;
3714
3822
 
3715
3823
  var REPLACE = wellKnownSymbol('replace');
3716
- var max$1 = Math.max;
3717
- var min$1 = Math.min;
3718
- var concat = uncurryThis$3([].concat);
3719
- var push$1 = uncurryThis$3([].push);
3720
- var stringIndexOf = uncurryThis$3(''.indexOf);
3721
- var stringSlice$1 = uncurryThis$3(''.slice);
3824
+ var max = Math.max;
3825
+ var min = Math.min;
3826
+ var concat = uncurryThis$2([].concat);
3827
+ var push = uncurryThis$2([].push);
3828
+ var stringIndexOf = uncurryThis$2(''.indexOf);
3829
+ var stringSlice = uncurryThis$2(''.slice);
3722
3830
 
3723
3831
  var maybeToString = function (it) {
3724
3832
  return it === undefined ? it : String(it);
@@ -3739,7 +3847,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
3739
3847
  return false;
3740
3848
  })();
3741
3849
 
3742
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$3(function () {
3850
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$2(function () {
3743
3851
  var re = /./;
3744
3852
  re.exec = function () {
3745
3853
  var result = [];
@@ -3751,24 +3859,24 @@ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$3(function () {
3751
3859
  });
3752
3860
 
3753
3861
  // @@replace logic
3754
- fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCallNative) {
3862
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
3755
3863
  var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
3756
3864
 
3757
3865
  return [
3758
3866
  // `String.prototype.replace` method
3759
3867
  // https://tc39.es/ecma262/#sec-string.prototype.replace
3760
3868
  function replace(searchValue, replaceValue) {
3761
- var O = requireObjectCoercible$2(this);
3762
- var replacer = searchValue == undefined ? undefined : getMethod$1(searchValue, REPLACE);
3869
+ var O = requireObjectCoercible$1(this);
3870
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
3763
3871
  return replacer
3764
- ? call$1(replacer, searchValue, O, replaceValue)
3765
- : call$1(nativeReplace, toString$3(O), searchValue, replaceValue);
3872
+ ? call(replacer, searchValue, O, replaceValue)
3873
+ : call(nativeReplace, toString$2(O), searchValue, replaceValue);
3766
3874
  },
3767
3875
  // `RegExp.prototype[@@replace]` method
3768
3876
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
3769
3877
  function (string, replaceValue) {
3770
- var rx = anObject$1(this);
3771
- var S = toString$3(string);
3878
+ var rx = anObject(this);
3879
+ var S = toString$2(string);
3772
3880
 
3773
3881
  if (
3774
3882
  typeof replaceValue == 'string' &&
@@ -3780,7 +3888,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
3780
3888
  }
3781
3889
 
3782
3890
  var functionalReplace = isCallable(replaceValue);
3783
- if (!functionalReplace) replaceValue = toString$3(replaceValue);
3891
+ if (!functionalReplace) replaceValue = toString$2(replaceValue);
3784
3892
 
3785
3893
  var global = rx.global;
3786
3894
  if (global) {
@@ -3792,11 +3900,11 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
3792
3900
  var result = regExpExec(rx, S);
3793
3901
  if (result === null) break;
3794
3902
 
3795
- push$1(results, result);
3903
+ push(results, result);
3796
3904
  if (!global) break;
3797
3905
 
3798
- var matchStr = toString$3(result[0]);
3799
- if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
3906
+ var matchStr = toString$2(result[0]);
3907
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
3800
3908
  }
3801
3909
 
3802
3910
  var accumulatedResult = '';
@@ -3804,37 +3912,37 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
3804
3912
  for (var i = 0; i < results.length; i++) {
3805
3913
  result = results[i];
3806
3914
 
3807
- var matched = toString$3(result[0]);
3808
- var position = max$1(min$1(toIntegerOrInfinity(result.index), S.length), 0);
3915
+ var matched = toString$2(result[0]);
3916
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
3809
3917
  var captures = [];
3810
3918
  // NOTE: This is equivalent to
3811
3919
  // captures = result.slice(1).map(maybeToString)
3812
3920
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
3813
3921
  // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
3814
3922
  // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
3815
- for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
3923
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
3816
3924
  var namedCaptures = result.groups;
3817
3925
  if (functionalReplace) {
3818
3926
  var replacerArgs = concat([matched], captures, position, S);
3819
- if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
3820
- var replacement = toString$3(apply$1(replaceValue, undefined, replacerArgs));
3927
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
3928
+ var replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
3821
3929
  } else {
3822
3930
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
3823
3931
  }
3824
3932
  if (position >= nextSourcePosition) {
3825
- accumulatedResult += stringSlice$1(S, nextSourcePosition, position) + replacement;
3933
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
3826
3934
  nextSourcePosition = position + matched.length;
3827
3935
  }
3828
3936
  }
3829
- return accumulatedResult + stringSlice$1(S, nextSourcePosition);
3937
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
3830
3938
  }
3831
3939
  ];
3832
3940
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
3833
3941
 
3834
3942
  const selectActiveExperiments = (experiments, profile) => {
3835
3943
  const experimentTraits = pickBy(profile.traits, (value, key) => key.startsWith(EXPERIENCE_TRAIT_PREFIX) && value === true);
3836
- const experimentTraitsIds = Object.keys(experimentTraits).map(id => id.replace(EXPERIENCE_TRAIT_PREFIX, '')); // a experiment is active when the use has it set as a true value on the traits and the experiment config is still active
3837
-
3944
+ const experimentTraitsIds = Object.keys(experimentTraits).map(id => id.replace(EXPERIENCE_TRAIT_PREFIX, ''));
3945
+ // a experiment is active when the use has it set as a true value on the traits and the experiment config is still active
3838
3946
  const activeExperiments = experiments.filter(experiment => includes(experimentTraitsIds, experiment.id));
3839
3947
  return activeExperiments;
3840
3948
  };
@@ -3844,7 +3952,6 @@ const selectActiveExperiments = (experiments, profile) => {
3844
3952
  * When going for an experiment we can only select a active experiment when 1 or more experiments are active
3845
3953
  * If the profile is not in any active experiments, we can select any expermiment
3846
3954
  */
3847
-
3848
3955
  const selectEligibleExperiences = ({
3849
3956
  experiences,
3850
3957
  activeExperiments
@@ -3856,15 +3963,12 @@ const selectEligibleExperiences = ({
3856
3963
 
3857
3964
  const LOWER_BOUND = 0;
3858
3965
  const UPPER_BOUND = 4294967295;
3859
-
3860
3966
  const normalize = (val, min, max) => (val - min) / (max - min);
3861
-
3862
3967
  const getRandom = text => {
3863
3968
  const hash = murmur3(text, 0);
3864
3969
  const random = normalize(hash, LOWER_BOUND, UPPER_BOUND);
3865
3970
  return random;
3866
3971
  };
3867
-
3868
3972
  const getTrafficRandom = (profile, experience) => getRandom(`traffic-${experience.id}-${profile.id}`);
3869
3973
  const getDistributionRandom = (profile, experience) => getRandom(`distribution-${experience.id}-${profile.id}`);
3870
3974
 
@@ -3883,7 +3987,8 @@ const isExperienceMatch = ({
3883
3987
  logger.info(`Is the profile in traffic allocation range? ${isInTrafficRange ? 'yes' : 'no'}.\n
3884
3988
  Does the profile match the audience of the experience? ${matchesAudience ? 'yes' : 'no'}.\n
3885
3989
  Is there an active experiment for this profile? ${hasActiveExperiment ? 'yes' : 'no'}.`);
3886
- return isInTrafficRange && (matchesAudience || // if the expriment is active already then it's selectible without further contraints to be fullfilled
3990
+ return isInTrafficRange && (matchesAudience ||
3991
+ // if the expriment is active already then it's selectible without further contraints to be fullfilled
3887
3992
  hasActiveExperiment);
3888
3993
  };
3889
3994
 
@@ -3924,7 +4029,6 @@ const selectDistribution = ({
3924
4029
  end: 1
3925
4030
  };
3926
4031
  }
3927
-
3928
4032
  return distribution;
3929
4033
  };
3930
4034
 
@@ -3934,50 +4038,40 @@ const selectVariant = ({
3934
4038
  profile
3935
4039
  }) => {
3936
4040
  const variants = selectVariants(experience, baseline);
3937
-
3938
4041
  if (!variants.length) {
3939
4042
  return null;
3940
4043
  }
3941
-
3942
4044
  const distribution = selectDistribution({
3943
4045
  experience,
3944
4046
  profile
3945
4047
  });
3946
-
3947
4048
  if (!distribution) {
3948
4049
  return null;
3949
4050
  }
3950
-
3951
4051
  if (distribution.index === 0) {
3952
4052
  return Object.assign(Object.assign({}, baseline), {
3953
4053
  hidden: false
3954
4054
  });
3955
4055
  }
3956
-
3957
4056
  const correctedVariantIndex = distribution.index - 1;
3958
-
3959
4057
  if (variants.length <= correctedVariantIndex) {
3960
4058
  console.warn("A distribution for a variant was selected but it's metadata could not be found.");
3961
4059
  return null;
3962
4060
  }
3963
-
3964
4061
  const variant = variants[correctedVariantIndex];
3965
-
3966
4062
  if (!variant) {
3967
4063
  console.warn("A distribution for a variant was selected but it's metadata could not be found.");
3968
4064
  return null;
3969
4065
  }
3970
-
3971
4066
  return variant;
3972
4067
  };
3973
4068
 
3974
- var global$3 = global$K;
3975
- var aCallable = aCallable$6;
4069
+ var aCallable = aCallable$8;
3976
4070
  var toObject = toObject$5;
3977
4071
  var IndexedObject = indexedObject;
3978
- var lengthOfArrayLike$1 = lengthOfArrayLike$4;
4072
+ var lengthOfArrayLike = lengthOfArrayLike$3;
3979
4073
 
3980
- var TypeError$1 = global$3.TypeError;
4074
+ var $TypeError = TypeError;
3981
4075
 
3982
4076
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
3983
4077
  var createMethod$1 = function (IS_RIGHT) {
@@ -3985,7 +4079,7 @@ var createMethod$1 = function (IS_RIGHT) {
3985
4079
  aCallable(callbackfn);
3986
4080
  var O = toObject(that);
3987
4081
  var self = IndexedObject(O);
3988
- var length = lengthOfArrayLike$1(O);
4082
+ var length = lengthOfArrayLike(O);
3989
4083
  var index = IS_RIGHT ? length - 1 : 0;
3990
4084
  var i = IS_RIGHT ? -1 : 1;
3991
4085
  if (argumentsLength < 2) while (true) {
@@ -3996,7 +4090,7 @@ var createMethod$1 = function (IS_RIGHT) {
3996
4090
  }
3997
4091
  index += i;
3998
4092
  if (IS_RIGHT ? index < 0 : length <= index) {
3999
- throw TypeError$1('Reduce of empty array with no initial value');
4093
+ throw $TypeError('Reduce of empty array with no initial value');
4000
4094
  }
4001
4095
  }
4002
4096
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -4015,11 +4109,11 @@ var arrayReduce = {
4015
4109
  right: createMethod$1(true)
4016
4110
  };
4017
4111
 
4018
- var fails$2 = fails$k;
4112
+ var fails$1 = fails$l;
4019
4113
 
4020
4114
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
4021
4115
  var method = [][METHOD_NAME];
4022
- return !!method && fails$2(function () {
4116
+ return !!method && fails$1(function () {
4023
4117
  // eslint-disable-next-line no-useless-call -- required for testing
4024
4118
  method.call(null, argument || function () { return 1; }, 1);
4025
4119
  });
@@ -4045,197 +4139,13 @@ $$1({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
4045
4139
  }
4046
4140
  });
4047
4141
 
4048
- var toPropertyKey = toPropertyKey$3;
4049
- var definePropertyModule = objectDefineProperty;
4050
- var createPropertyDescriptor = createPropertyDescriptor$4;
4051
-
4052
- var createProperty$1 = function (object, key, value) {
4053
- var propertyKey = toPropertyKey(key);
4054
- if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
4055
- else object[propertyKey] = value;
4056
- };
4057
-
4058
- var global$2 = global$K;
4059
- var toAbsoluteIndex = toAbsoluteIndex$2;
4060
- var lengthOfArrayLike = lengthOfArrayLike$4;
4061
- var createProperty = createProperty$1;
4062
-
4063
- var Array$1 = global$2.Array;
4064
- var max = Math.max;
4065
-
4066
- var arraySliceSimple = function (O, start, end) {
4067
- var length = lengthOfArrayLike(O);
4068
- var k = toAbsoluteIndex(start, length);
4069
- var fin = toAbsoluteIndex(end === undefined ? length : end, length);
4070
- var result = Array$1(max(fin - k, 0));
4071
- for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
4072
- result.length = n;
4073
- return result;
4074
- };
4075
-
4076
- var apply = functionApply;
4077
- var call = functionCall;
4078
- var uncurryThis$2 = functionUncurryThis;
4079
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
4080
- var isRegExp = isRegexp;
4081
- var anObject = anObject$e;
4082
- var requireObjectCoercible$1 = requireObjectCoercible$8;
4083
- var speciesConstructor = speciesConstructor$2;
4084
- var advanceStringIndex = advanceStringIndex$2;
4085
- var toLength = toLength$4;
4086
- var toString$2 = toString$8;
4087
- var getMethod = getMethod$5;
4088
- var arraySlice = arraySliceSimple;
4089
- var callRegExpExec = regexpExecAbstract;
4090
- var regexpExec = regexpExec$3;
4091
- var stickyHelpers = regexpStickyHelpers;
4092
- var fails$1 = fails$k;
4093
-
4094
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
4095
- var MAX_UINT32 = 0xFFFFFFFF;
4096
- var min = Math.min;
4097
- var $push = [].push;
4098
- var exec$1 = uncurryThis$2(/./.exec);
4099
- var push = uncurryThis$2($push);
4100
- var stringSlice = uncurryThis$2(''.slice);
4101
-
4102
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
4103
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
4104
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$1(function () {
4105
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
4106
- var re = /(?:)/;
4107
- var originalExec = re.exec;
4108
- re.exec = function () { return originalExec.apply(this, arguments); };
4109
- var result = 'ab'.split(re);
4110
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
4111
- });
4112
-
4113
- // @@split logic
4114
- fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
4115
- var internalSplit;
4116
- if (
4117
- 'abbc'.split(/(b)*/)[1] == 'c' ||
4118
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
4119
- 'test'.split(/(?:)/, -1).length != 4 ||
4120
- 'ab'.split(/(?:ab)*/).length != 2 ||
4121
- '.'.split(/(.?)(.?)/).length != 4 ||
4122
- // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
4123
- '.'.split(/()()/).length > 1 ||
4124
- ''.split(/.?/).length
4125
- ) {
4126
- // based on es5-shim implementation, need to rework it
4127
- internalSplit = function (separator, limit) {
4128
- var string = toString$2(requireObjectCoercible$1(this));
4129
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
4130
- if (lim === 0) return [];
4131
- if (separator === undefined) return [string];
4132
- // If `separator` is not a regex, use native split
4133
- if (!isRegExp(separator)) {
4134
- return call(nativeSplit, string, separator, lim);
4135
- }
4136
- var output = [];
4137
- var flags = (separator.ignoreCase ? 'i' : '') +
4138
- (separator.multiline ? 'm' : '') +
4139
- (separator.unicode ? 'u' : '') +
4140
- (separator.sticky ? 'y' : '');
4141
- var lastLastIndex = 0;
4142
- // Make `global` and avoid `lastIndex` issues by working with a copy
4143
- var separatorCopy = new RegExp(separator.source, flags + 'g');
4144
- var match, lastIndex, lastLength;
4145
- while (match = call(regexpExec, separatorCopy, string)) {
4146
- lastIndex = separatorCopy.lastIndex;
4147
- if (lastIndex > lastLastIndex) {
4148
- push(output, stringSlice(string, lastLastIndex, match.index));
4149
- if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));
4150
- lastLength = match[0].length;
4151
- lastLastIndex = lastIndex;
4152
- if (output.length >= lim) break;
4153
- }
4154
- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
4155
- }
4156
- if (lastLastIndex === string.length) {
4157
- if (lastLength || !exec$1(separatorCopy, '')) push(output, '');
4158
- } else push(output, stringSlice(string, lastLastIndex));
4159
- return output.length > lim ? arraySlice(output, 0, lim) : output;
4160
- };
4161
- // Chakra, V8
4162
- } else if ('0'.split(undefined, 0).length) {
4163
- internalSplit = function (separator, limit) {
4164
- return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
4165
- };
4166
- } else internalSplit = nativeSplit;
4167
-
4168
- return [
4169
- // `String.prototype.split` method
4170
- // https://tc39.es/ecma262/#sec-string.prototype.split
4171
- function split(separator, limit) {
4172
- var O = requireObjectCoercible$1(this);
4173
- var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
4174
- return splitter
4175
- ? call(splitter, separator, O, limit)
4176
- : call(internalSplit, toString$2(O), separator, limit);
4177
- },
4178
- // `RegExp.prototype[@@split]` method
4179
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
4180
- //
4181
- // NOTE: This cannot be properly polyfilled in engines that don't support
4182
- // the 'y' flag.
4183
- function (string, limit) {
4184
- var rx = anObject(this);
4185
- var S = toString$2(string);
4186
- var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
4187
-
4188
- if (res.done) return res.value;
4189
-
4190
- var C = speciesConstructor(rx, RegExp);
4191
-
4192
- var unicodeMatching = rx.unicode;
4193
- var flags = (rx.ignoreCase ? 'i' : '') +
4194
- (rx.multiline ? 'm' : '') +
4195
- (rx.unicode ? 'u' : '') +
4196
- (UNSUPPORTED_Y ? 'g' : 'y');
4197
-
4198
- // ^(? + rx + ) is needed, in combination with some S slicing, to
4199
- // simulate the 'y' flag.
4200
- var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
4201
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
4202
- if (lim === 0) return [];
4203
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
4204
- var p = 0;
4205
- var q = 0;
4206
- var A = [];
4207
- while (q < S.length) {
4208
- splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
4209
- var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
4210
- var e;
4211
- if (
4212
- z === null ||
4213
- (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
4214
- ) {
4215
- q = advanceStringIndex(S, q, unicodeMatching);
4216
- } else {
4217
- push(A, stringSlice(S, p, q));
4218
- if (A.length === lim) return A;
4219
- for (var i = 1; i <= z.length - 1; i++) {
4220
- push(A, z[i]);
4221
- if (A.length === lim) return A;
4222
- }
4223
- q = p = e;
4224
- }
4225
- }
4226
- push(A, stringSlice(S, p));
4227
- return A;
4228
- }
4229
- ];
4230
- }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
4231
-
4232
4142
  // a string of all valid unicode whitespaces
4233
4143
  var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
4234
4144
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
4235
4145
 
4236
4146
  var uncurryThis$1 = functionUncurryThis;
4237
- var requireObjectCoercible = requireObjectCoercible$8;
4238
- var toString$1 = toString$8;
4147
+ var requireObjectCoercible = requireObjectCoercible$7;
4148
+ var toString$1 = toString$7;
4239
4149
  var whitespaces$1 = whitespaces$2;
4240
4150
 
4241
4151
  var replace = uncurryThis$1(''.replace);
@@ -4265,10 +4175,10 @@ var stringTrim = {
4265
4175
  trim: createMethod(3)
4266
4176
  };
4267
4177
 
4268
- var global$1 = global$K;
4269
- var fails = fails$k;
4178
+ var global$1 = global$n;
4179
+ var fails = fails$l;
4270
4180
  var uncurryThis = functionUncurryThis;
4271
- var toString = toString$8;
4181
+ var toString = toString$7;
4272
4182
  var trim = stringTrim.trim;
4273
4183
  var whitespaces = whitespaces$2;
4274
4184
 
@@ -4301,11 +4211,9 @@ const decodeExperienceVariantsMap = encodedExperienceVariantsMap => {
4301
4211
  return encodedExperienceVariantsMap.split(',').map(experienceIdWithVariant => {
4302
4212
  const [experienceId, _variantIndex] = experienceIdWithVariant.split('=');
4303
4213
  const variantIndex = parseInt(_variantIndex);
4304
-
4305
4214
  if (!experienceId || !variantIndex) {
4306
4215
  return null;
4307
4216
  }
4308
-
4309
4217
  return {
4310
4218
  experienceId,
4311
4219
  variantIndex