@ninetailed/experience.js 4.2.0-beta.2 → 4.2.0-beta.4

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.
Files changed (3) hide show
  1. package/index.cjs +279 -179
  2. package/index.js +279 -175
  3. package/package.json +3 -4
package/index.cjs CHANGED
@@ -2,21 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var unionBy = require('lodash/unionBy');
6
5
  var experience_jsShared = require('@ninetailed/experience.js-shared');
7
6
  var Analytics = require('analytics');
8
- var flatten = require('lodash/flatten');
9
- var find = require('lodash/find');
10
- var includes = require('lodash/includes');
11
7
  var zod = require('zod');
12
8
 
13
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
10
 
15
- var unionBy__default = /*#__PURE__*/_interopDefaultLegacy(unionBy);
16
11
  var Analytics__default = /*#__PURE__*/_interopDefaultLegacy(Analytics);
17
- var flatten__default = /*#__PURE__*/_interopDefaultLegacy(flatten);
18
- var find__default = /*#__PURE__*/_interopDefaultLegacy(find);
19
- var includes__default = /*#__PURE__*/_interopDefaultLegacy(includes);
20
12
 
21
13
  const HAS_SEEN_EXPERIENCE = 'has_seen_experience';
22
14
  const HAS_SEEN_COMPONENT = 'has_seen_component';
@@ -121,7 +113,7 @@ var classofRaw$2 = function (it) {
121
113
 
122
114
  var uncurryThis$f = functionUncurryThis;
123
115
  var fails$e = fails$h;
124
- var classof$6 = classofRaw$2;
116
+ var classof$7 = classofRaw$2;
125
117
 
126
118
  var $Object$4 = Object;
127
119
  var split = uncurryThis$f(''.split);
@@ -132,7 +124,7 @@ var indexedObject = fails$e(function () {
132
124
  // eslint-disable-next-line no-prototype-builtins -- safe
133
125
  return !$Object$4('z').propertyIsEnumerable(0);
134
126
  }) ? function (it) {
135
- return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
127
+ return classof$7(it) == 'String' ? split(it, '') : $Object$4(it);
136
128
  } : $Object$4;
137
129
 
138
130
  // we can't use just `it == null` since of `document.all` special case
@@ -143,12 +135,12 @@ var isNullOrUndefined$4 = function (it) {
143
135
 
144
136
  var isNullOrUndefined$3 = isNullOrUndefined$4;
145
137
 
146
- var $TypeError$e = TypeError;
138
+ var $TypeError$f = TypeError;
147
139
 
148
140
  // `RequireObjectCoercible` abstract operation
149
141
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
150
142
  var requireObjectCoercible$4 = function (it) {
151
- if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
143
+ if (isNullOrUndefined$3(it)) throw $TypeError$f("Can't call method on " + it);
152
144
  return it;
153
145
  };
154
146
 
@@ -187,7 +179,7 @@ var $documentAll = documentAll_1;
187
179
 
188
180
  var documentAll = $documentAll.all;
189
181
 
190
- var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
182
+ var isObject$a = $documentAll.IS_HTMLDDA ? function (it) {
191
183
  return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
192
184
  } : function (it) {
193
185
  return typeof it == 'object' ? it !== null : isCallable$j(it);
@@ -290,12 +282,12 @@ var tryToString$4 = function (argument) {
290
282
  var isCallable$g = isCallable$k;
291
283
  var tryToString$3 = tryToString$4;
292
284
 
293
- var $TypeError$d = TypeError;
285
+ var $TypeError$e = TypeError;
294
286
 
295
287
  // `Assert: IsCallable(argument) is true`
296
288
  var aCallable$8 = function (argument) {
297
289
  if (isCallable$g(argument)) return argument;
298
- throw $TypeError$d(tryToString$3(argument) + ' is not a function');
290
+ throw $TypeError$e(tryToString$3(argument) + ' is not a function');
299
291
  };
300
292
 
301
293
  var aCallable$7 = aCallable$8;
@@ -310,18 +302,18 @@ var getMethod$3 = function (V, P) {
310
302
 
311
303
  var call$d = functionCall;
312
304
  var isCallable$f = isCallable$k;
313
- var isObject$8 = isObject$9;
305
+ var isObject$9 = isObject$a;
314
306
 
315
- var $TypeError$c = TypeError;
307
+ var $TypeError$d = TypeError;
316
308
 
317
309
  // `OrdinaryToPrimitive` abstract operation
318
310
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
319
311
  var ordinaryToPrimitive$1 = function (input, pref) {
320
312
  var fn, val;
321
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
322
- if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$d(fn, input))) return val;
323
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
324
- throw $TypeError$c("Can't convert object to primitive value");
313
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$9(val = call$d(fn, input))) return val;
314
+ if (isCallable$f(fn = input.valueOf) && !isObject$9(val = call$d(fn, input))) return val;
315
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$9(val = call$d(fn, input))) return val;
316
+ throw $TypeError$d("Can't convert object to primitive value");
325
317
  };
326
318
 
327
319
  var shared$3 = {exports: {}};
@@ -365,12 +357,12 @@ var $Object$2 = Object;
365
357
 
366
358
  // `ToObject` abstract operation
367
359
  // https://tc39.es/ecma262/#sec-toobject
368
- var toObject$4 = function (argument) {
360
+ var toObject$5 = function (argument) {
369
361
  return $Object$2(requireObjectCoercible$2(argument));
370
362
  };
371
363
 
372
364
  var uncurryThis$d = functionUncurryThis;
373
- var toObject$3 = toObject$4;
365
+ var toObject$4 = toObject$5;
374
366
 
375
367
  var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
376
368
 
@@ -378,7 +370,7 @@ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
378
370
  // https://tc39.es/ecma262/#sec-hasownproperty
379
371
  // eslint-disable-next-line es/no-object-hasown -- safe
380
372
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
381
- return hasOwnProperty(toObject$3(it), key);
373
+ return hasOwnProperty(toObject$4(it), key);
382
374
  };
383
375
 
384
376
  var uncurryThis$c = functionUncurryThis;
@@ -403,7 +395,7 @@ var Symbol$2 = global$f.Symbol;
403
395
  var symbolFor = Symbol$2 && Symbol$2['for'];
404
396
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
405
397
 
406
- var wellKnownSymbol$g = function (name) {
398
+ var wellKnownSymbol$h = function (name) {
407
399
  if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
408
400
  var description = 'Symbol.' + name;
409
401
  if (NATIVE_SYMBOL && hasOwn$a(Symbol$2, name)) {
@@ -417,26 +409,26 @@ var wellKnownSymbol$g = function (name) {
417
409
  };
418
410
 
419
411
  var call$c = functionCall;
420
- var isObject$7 = isObject$9;
412
+ var isObject$8 = isObject$a;
421
413
  var isSymbol$1 = isSymbol$2;
422
414
  var getMethod$2 = getMethod$3;
423
415
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
424
- var wellKnownSymbol$f = wellKnownSymbol$g;
416
+ var wellKnownSymbol$g = wellKnownSymbol$h;
425
417
 
426
- var $TypeError$b = TypeError;
427
- var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
418
+ var $TypeError$c = TypeError;
419
+ var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
428
420
 
429
421
  // `ToPrimitive` abstract operation
430
422
  // https://tc39.es/ecma262/#sec-toprimitive
431
423
  var toPrimitive$1 = function (input, pref) {
432
- if (!isObject$7(input) || isSymbol$1(input)) return input;
424
+ if (!isObject$8(input) || isSymbol$1(input)) return input;
433
425
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
434
426
  var result;
435
427
  if (exoticToPrim) {
436
428
  if (pref === undefined) pref = 'default';
437
429
  result = call$c(exoticToPrim, input, pref);
438
- if (!isObject$7(result) || isSymbol$1(result)) return result;
439
- throw $TypeError$b("Can't convert object to primitive value");
430
+ if (!isObject$8(result) || isSymbol$1(result)) return result;
431
+ throw $TypeError$c("Can't convert object to primitive value");
440
432
  }
441
433
  if (pref === undefined) pref = 'number';
442
434
  return ordinaryToPrimitive(input, pref);
@@ -453,11 +445,11 @@ var toPropertyKey$2 = function (argument) {
453
445
  };
454
446
 
455
447
  var global$e = global$k;
456
- var isObject$6 = isObject$9;
448
+ var isObject$7 = isObject$a;
457
449
 
458
450
  var document$3 = global$e.document;
459
451
  // typeof document.createElement is 'object' in old IE
460
- var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
452
+ var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
461
453
 
462
454
  var documentCreateElement$2 = function (it) {
463
455
  return EXISTS$1 ? document$3.createElement(it) : {};
@@ -513,15 +505,15 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
513
505
  }).prototype != 42;
514
506
  });
515
507
 
516
- var isObject$5 = isObject$9;
508
+ var isObject$6 = isObject$a;
517
509
 
518
510
  var $String$2 = String;
519
- var $TypeError$a = TypeError;
511
+ var $TypeError$b = TypeError;
520
512
 
521
513
  // `Assert: Type(argument) is Object`
522
514
  var anObject$c = function (argument) {
523
- if (isObject$5(argument)) return argument;
524
- throw $TypeError$a($String$2(argument) + ' is not an object');
515
+ if (isObject$6(argument)) return argument;
516
+ throw $TypeError$b($String$2(argument) + ' is not an object');
525
517
  };
526
518
 
527
519
  var DESCRIPTORS$7 = descriptors;
@@ -530,7 +522,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
530
522
  var anObject$b = anObject$c;
531
523
  var toPropertyKey = toPropertyKey$2;
532
524
 
533
- var $TypeError$9 = TypeError;
525
+ var $TypeError$a = TypeError;
534
526
  // eslint-disable-next-line es/no-object-defineproperty -- safe
535
527
  var $defineProperty = Object.defineProperty;
536
528
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -563,7 +555,7 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
563
555
  if (IE8_DOM_DEFINE) try {
564
556
  return $defineProperty(O, P, Attributes);
565
557
  } catch (error) { /* empty */ }
566
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
558
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$a('Accessors not supported');
567
559
  if ('value' in Attributes) O[P] = Attributes.value;
568
560
  return O;
569
561
  };
@@ -634,7 +626,7 @@ var hiddenKeys$4 = {};
634
626
 
635
627
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
636
628
  var global$c = global$k;
637
- var isObject$4 = isObject$9;
629
+ var isObject$5 = isObject$a;
638
630
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
639
631
  var hasOwn$7 = hasOwnProperty_1;
640
632
  var shared = sharedStore;
@@ -653,7 +645,7 @@ var enforce = function (it) {
653
645
  var getterFor = function (TYPE) {
654
646
  return function (it) {
655
647
  var state;
656
- if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
648
+ if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
657
649
  throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
658
650
  } return state;
659
651
  };
@@ -798,13 +790,13 @@ var trunc = mathTrunc;
798
790
 
799
791
  // `ToIntegerOrInfinity` abstract operation
800
792
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
801
- var toIntegerOrInfinity$2 = function (argument) {
793
+ var toIntegerOrInfinity$3 = function (argument) {
802
794
  var number = +argument;
803
795
  // eslint-disable-next-line no-self-compare -- NaN check
804
796
  return number !== number || number === 0 ? 0 : trunc(number);
805
797
  };
806
798
 
807
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
799
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
808
800
 
809
801
  var max = Math.max;
810
802
  var min$1 = Math.min;
@@ -813,37 +805,37 @@ var min$1 = Math.min;
813
805
  // Let integer be ? ToInteger(index).
814
806
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
815
807
  var toAbsoluteIndex$1 = function (index, length) {
816
- var integer = toIntegerOrInfinity$1(index);
808
+ var integer = toIntegerOrInfinity$2(index);
817
809
  return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
818
810
  };
819
811
 
820
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
812
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
821
813
 
822
814
  var min = Math.min;
823
815
 
824
816
  // `ToLength` abstract operation
825
817
  // https://tc39.es/ecma262/#sec-tolength
826
818
  var toLength$1 = function (argument) {
827
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
819
+ return argument > 0 ? min(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
828
820
  };
829
821
 
830
822
  var toLength = toLength$1;
831
823
 
832
824
  // `LengthOfArrayLike` abstract operation
833
825
  // https://tc39.es/ecma262/#sec-lengthofarraylike
834
- var lengthOfArrayLike$3 = function (obj) {
826
+ var lengthOfArrayLike$5 = function (obj) {
835
827
  return toLength(obj.length);
836
828
  };
837
829
 
838
830
  var toIndexedObject$3 = toIndexedObject$5;
839
831
  var toAbsoluteIndex = toAbsoluteIndex$1;
840
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
832
+ var lengthOfArrayLike$4 = lengthOfArrayLike$5;
841
833
 
842
834
  // `Array.prototype.{ indexOf, includes }` methods implementation
843
835
  var createMethod$2 = function (IS_INCLUDES) {
844
836
  return function ($this, el, fromIndex) {
845
837
  var O = toIndexedObject$3($this);
846
- var length = lengthOfArrayLike$2(O);
838
+ var length = lengthOfArrayLike$4(O);
847
839
  var index = toAbsoluteIndex(fromIndex, length);
848
840
  var value;
849
841
  // Array#includes uses SameValueZero equality algorithm
@@ -1027,19 +1019,19 @@ var _export = function (options, source) {
1027
1019
  }
1028
1020
  };
1029
1021
 
1030
- var classof$5 = classofRaw$2;
1022
+ var classof$6 = classofRaw$2;
1031
1023
  var global$a = global$k;
1032
1024
 
1033
- var engineIsNode = classof$5(global$a.process) == 'process';
1025
+ var engineIsNode = classof$6(global$a.process) == 'process';
1034
1026
 
1035
1027
  var isCallable$9 = isCallable$k;
1036
1028
 
1037
1029
  var $String$1 = String;
1038
- var $TypeError$8 = TypeError;
1030
+ var $TypeError$9 = TypeError;
1039
1031
 
1040
1032
  var aPossiblePrototype$1 = function (argument) {
1041
1033
  if (typeof argument == 'object' || isCallable$9(argument)) return argument;
1042
- throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
1034
+ throw $TypeError$9("Can't set " + $String$1(argument) + ' as a prototype');
1043
1035
  };
1044
1036
 
1045
1037
  /* eslint-disable no-proto -- safe */
@@ -1073,9 +1065,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1073
1065
 
1074
1066
  var defineProperty$3 = objectDefineProperty.f;
1075
1067
  var hasOwn$3 = hasOwnProperty_1;
1076
- var wellKnownSymbol$e = wellKnownSymbol$g;
1068
+ var wellKnownSymbol$f = wellKnownSymbol$h;
1077
1069
 
1078
- var TO_STRING_TAG$3 = wellKnownSymbol$e('toStringTag');
1070
+ var TO_STRING_TAG$3 = wellKnownSymbol$f('toStringTag');
1079
1071
 
1080
1072
  var setToStringTag$3 = function (target, TAG, STATIC) {
1081
1073
  if (target && !STATIC) target = target.prototype;
@@ -1086,17 +1078,17 @@ var setToStringTag$3 = function (target, TAG, STATIC) {
1086
1078
 
1087
1079
  var getBuiltIn$4 = getBuiltIn$8;
1088
1080
  var definePropertyModule$1 = objectDefineProperty;
1089
- var wellKnownSymbol$d = wellKnownSymbol$g;
1081
+ var wellKnownSymbol$e = wellKnownSymbol$h;
1090
1082
  var DESCRIPTORS$3 = descriptors;
1091
1083
 
1092
- var SPECIES$2 = wellKnownSymbol$d('species');
1084
+ var SPECIES$3 = wellKnownSymbol$e('species');
1093
1085
 
1094
1086
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1095
1087
  var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1096
1088
  var defineProperty = definePropertyModule$1.f;
1097
1089
 
1098
- if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) {
1099
- defineProperty(Constructor, SPECIES$2, {
1090
+ if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
1091
+ defineProperty(Constructor, SPECIES$3, {
1100
1092
  configurable: true,
1101
1093
  get: function () { return this; }
1102
1094
  });
@@ -1105,16 +1097,16 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1105
1097
 
1106
1098
  var isPrototypeOf$2 = objectIsPrototypeOf;
1107
1099
 
1108
- var $TypeError$7 = TypeError;
1100
+ var $TypeError$8 = TypeError;
1109
1101
 
1110
1102
  var anInstance$1 = function (it, Prototype) {
1111
1103
  if (isPrototypeOf$2(Prototype, it)) return it;
1112
- throw $TypeError$7('Incorrect invocation');
1104
+ throw $TypeError$8('Incorrect invocation');
1113
1105
  };
1114
1106
 
1115
- var wellKnownSymbol$c = wellKnownSymbol$g;
1107
+ var wellKnownSymbol$d = wellKnownSymbol$h;
1116
1108
 
1117
- var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1109
+ var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
1118
1110
  var test = {};
1119
1111
 
1120
1112
  test[TO_STRING_TAG$2] = 'z';
@@ -1124,9 +1116,9 @@ var toStringTagSupport = String(test) === '[object z]';
1124
1116
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1125
1117
  var isCallable$8 = isCallable$k;
1126
1118
  var classofRaw$1 = classofRaw$2;
1127
- var wellKnownSymbol$b = wellKnownSymbol$g;
1119
+ var wellKnownSymbol$c = wellKnownSymbol$h;
1128
1120
 
1129
- var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1121
+ var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
1130
1122
  var $Object$1 = Object;
1131
1123
 
1132
1124
  // ES3 wrong here
@@ -1140,7 +1132,7 @@ var tryGet = function (it, key) {
1140
1132
  };
1141
1133
 
1142
1134
  // getting tag from ES6+ `Object.prototype.toString`
1143
- var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1135
+ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1144
1136
  var O, tag, result;
1145
1137
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1146
1138
  // @@toStringTag case
@@ -1154,7 +1146,7 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1154
1146
  var uncurryThis$7 = functionUncurryThis;
1155
1147
  var fails$8 = fails$h;
1156
1148
  var isCallable$7 = isCallable$k;
1157
- var classof$3 = classof$4;
1149
+ var classof$4 = classof$5;
1158
1150
  var getBuiltIn$3 = getBuiltIn$8;
1159
1151
  var inspectSource$1 = inspectSource$3;
1160
1152
 
@@ -1177,7 +1169,7 @@ var isConstructorModern = function isConstructor(argument) {
1177
1169
 
1178
1170
  var isConstructorLegacy = function isConstructor(argument) {
1179
1171
  if (!isCallable$7(argument)) return false;
1180
- switch (classof$3(argument)) {
1172
+ switch (classof$4(argument)) {
1181
1173
  case 'AsyncFunction':
1182
1174
  case 'GeneratorFunction':
1183
1175
  case 'AsyncGeneratorFunction': return false;
@@ -1196,7 +1188,7 @@ isConstructorLegacy.sham = true;
1196
1188
 
1197
1189
  // `IsConstructor` abstract operation
1198
1190
  // https://tc39.es/ecma262/#sec-isconstructor
1199
- var isConstructor$1 = !construct || fails$8(function () {
1191
+ var isConstructor$2 = !construct || fails$8(function () {
1200
1192
  var called;
1201
1193
  return isConstructorModern(isConstructorModern.call)
1202
1194
  || !isConstructorModern(Object)
@@ -1204,30 +1196,30 @@ var isConstructor$1 = !construct || fails$8(function () {
1204
1196
  || called;
1205
1197
  }) ? isConstructorLegacy : isConstructorModern;
1206
1198
 
1207
- var isConstructor = isConstructor$1;
1199
+ var isConstructor$1 = isConstructor$2;
1208
1200
  var tryToString$2 = tryToString$4;
1209
1201
 
1210
- var $TypeError$6 = TypeError;
1202
+ var $TypeError$7 = TypeError;
1211
1203
 
1212
1204
  // `Assert: IsConstructor(argument) is true`
1213
1205
  var aConstructor$1 = function (argument) {
1214
- if (isConstructor(argument)) return argument;
1215
- throw $TypeError$6(tryToString$2(argument) + ' is not a constructor');
1206
+ if (isConstructor$1(argument)) return argument;
1207
+ throw $TypeError$7(tryToString$2(argument) + ' is not a constructor');
1216
1208
  };
1217
1209
 
1218
1210
  var anObject$8 = anObject$c;
1219
1211
  var aConstructor = aConstructor$1;
1220
1212
  var isNullOrUndefined$1 = isNullOrUndefined$4;
1221
- var wellKnownSymbol$a = wellKnownSymbol$g;
1213
+ var wellKnownSymbol$b = wellKnownSymbol$h;
1222
1214
 
1223
- var SPECIES$1 = wellKnownSymbol$a('species');
1215
+ var SPECIES$2 = wellKnownSymbol$b('species');
1224
1216
 
1225
1217
  // `SpeciesConstructor` abstract operation
1226
1218
  // https://tc39.es/ecma262/#sec-speciesconstructor
1227
1219
  var speciesConstructor$1 = function (O, defaultConstructor) {
1228
1220
  var C = anObject$8(O).constructor;
1229
1221
  var S;
1230
- return C === undefined || isNullOrUndefined$1(S = anObject$8(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1222
+ return C === undefined || isNullOrUndefined$1(S = anObject$8(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
1231
1223
  };
1232
1224
 
1233
1225
  var NATIVE_BIND$1 = functionBindNative;
@@ -1255,12 +1247,12 @@ var uncurryThis$5 = functionUncurryThisClause;
1255
1247
  var aCallable$6 = aCallable$8;
1256
1248
  var NATIVE_BIND = functionBindNative;
1257
1249
 
1258
- var bind$4 = uncurryThis$5(uncurryThis$5.bind);
1250
+ var bind$5 = uncurryThis$5(uncurryThis$5.bind);
1259
1251
 
1260
1252
  // optional / simple context binding
1261
1253
  var functionBindContext = function (fn, that) {
1262
1254
  aCallable$6(fn);
1263
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1255
+ return that === undefined ? fn : NATIVE_BIND ? bind$5(fn, that) : function (/* ...args */) {
1264
1256
  return fn.apply(that, arguments);
1265
1257
  };
1266
1258
  };
@@ -1273,10 +1265,10 @@ var uncurryThis$4 = functionUncurryThis;
1273
1265
 
1274
1266
  var arraySlice$1 = uncurryThis$4([].slice);
1275
1267
 
1276
- var $TypeError$5 = TypeError;
1268
+ var $TypeError$6 = TypeError;
1277
1269
 
1278
1270
  var validateArgumentsLength$1 = function (passed, required) {
1279
- if (passed < required) throw $TypeError$5('Not enough arguments');
1271
+ if (passed < required) throw $TypeError$6('Not enough arguments');
1280
1272
  return passed;
1281
1273
  };
1282
1274
 
@@ -1286,7 +1278,7 @@ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1286
1278
 
1287
1279
  var global$9 = global$k;
1288
1280
  var apply = functionApply;
1289
- var bind$3 = functionBindContext;
1281
+ var bind$4 = functionBindContext;
1290
1282
  var isCallable$6 = isCallable$k;
1291
1283
  var hasOwn$2 = hasOwnProperty_1;
1292
1284
  var fails$7 = fails$h;
@@ -1368,7 +1360,7 @@ if (!set || !clear) {
1368
1360
  channel = new MessageChannel();
1369
1361
  port = channel.port2;
1370
1362
  channel.port1.onmessage = listener;
1371
- defer = bind$3(port.postMessage, port);
1363
+ defer = bind$4(port.postMessage, port);
1372
1364
  // Browsers with postMessage, skip WebWorkers
1373
1365
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1374
1366
  } else if (
@@ -1411,7 +1403,7 @@ var userAgent = engineUserAgent;
1411
1403
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1412
1404
 
1413
1405
  var global$7 = global$k;
1414
- var bind$2 = functionBindContext;
1406
+ var bind$3 = functionBindContext;
1415
1407
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1416
1408
  var macrotask = task$1.set;
1417
1409
  var IS_IOS = engineIsIos;
@@ -1463,7 +1455,7 @@ if (!queueMicrotask) {
1463
1455
  promise = Promise$1.resolve(undefined);
1464
1456
  // workaround of WebKit ~ iOS Safari 10.1 bug
1465
1457
  promise.constructor = Promise$1;
1466
- then = bind$2(promise.then, promise);
1458
+ then = bind$3(promise.then, promise);
1467
1459
  notify$1 = function () {
1468
1460
  then(flush);
1469
1461
  };
@@ -1480,7 +1472,7 @@ if (!queueMicrotask) {
1480
1472
  // - setTimeout
1481
1473
  } else {
1482
1474
  // strange IE + webpack dev server bug - use .bind(global)
1483
- macrotask = bind$2(macrotask, global$7);
1475
+ macrotask = bind$3(macrotask, global$7);
1484
1476
  notify$1 = function () {
1485
1477
  macrotask(flush);
1486
1478
  };
@@ -1557,13 +1549,13 @@ var NativePromiseConstructor$3 = promiseNativeConstructor;
1557
1549
  var isCallable$5 = isCallable$k;
1558
1550
  var isForced = isForced_1;
1559
1551
  var inspectSource = inspectSource$3;
1560
- var wellKnownSymbol$9 = wellKnownSymbol$g;
1552
+ var wellKnownSymbol$a = wellKnownSymbol$h;
1561
1553
  var IS_BROWSER = engineIsBrowser;
1562
1554
  var IS_DENO = engineIsDeno;
1563
1555
  var V8_VERSION = engineV8Version;
1564
1556
 
1565
1557
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1566
- var SPECIES = wellKnownSymbol$9('species');
1558
+ var SPECIES$1 = wellKnownSymbol$a('species');
1567
1559
  var SUBCLASSING = false;
1568
1560
  var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$4.PromiseRejectionEvent);
1569
1561
 
@@ -1584,7 +1576,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1584
1576
  exec(function () { /* empty */ }, function () { /* empty */ });
1585
1577
  };
1586
1578
  var constructor = promise.constructor = {};
1587
- constructor[SPECIES] = FakePromise;
1579
+ constructor[SPECIES$1] = FakePromise;
1588
1580
  SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1589
1581
  if (!SUBCLASSING) return true;
1590
1582
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
@@ -1601,12 +1593,12 @@ var newPromiseCapability$2 = {};
1601
1593
 
1602
1594
  var aCallable$5 = aCallable$8;
1603
1595
 
1604
- var $TypeError$4 = TypeError;
1596
+ var $TypeError$5 = TypeError;
1605
1597
 
1606
1598
  var PromiseCapability = function (C) {
1607
1599
  var resolve, reject;
1608
1600
  this.promise = new C(function ($$resolve, $$reject) {
1609
- if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
1601
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$5('Bad Promise constructor');
1610
1602
  resolve = $$resolve;
1611
1603
  reject = $$reject;
1612
1604
  });
@@ -1620,7 +1612,7 @@ newPromiseCapability$2.f = function (C) {
1620
1612
  return new PromiseCapability(C);
1621
1613
  };
1622
1614
 
1623
- var $$b = _export;
1615
+ var $$c = _export;
1624
1616
  var IS_NODE$1 = engineIsNode;
1625
1617
  var global$3 = global$k;
1626
1618
  var call$9 = functionCall;
@@ -1630,7 +1622,7 @@ var setToStringTag$2 = setToStringTag$3;
1630
1622
  var setSpecies = setSpecies$1;
1631
1623
  var aCallable$4 = aCallable$8;
1632
1624
  var isCallable$4 = isCallable$k;
1633
- var isObject$3 = isObject$9;
1625
+ var isObject$4 = isObject$a;
1634
1626
  var anInstance = anInstance$1;
1635
1627
  var speciesConstructor = speciesConstructor$1;
1636
1628
  var task = task$1.set;
@@ -1672,7 +1664,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1672
1664
  // helpers
1673
1665
  var isThenable = function (it) {
1674
1666
  var then;
1675
- return isObject$3(it) && isCallable$4(then = it.then) ? then : false;
1667
+ return isObject$4(it) && isCallable$4(then = it.then) ? then : false;
1676
1668
  };
1677
1669
 
1678
1670
  var callReaction = function (reaction, state) {
@@ -1769,7 +1761,7 @@ var onHandleUnhandled = function (state) {
1769
1761
  });
1770
1762
  };
1771
1763
 
1772
- var bind$1 = function (fn, state, unwrap) {
1764
+ var bind$2 = function (fn, state, unwrap) {
1773
1765
  return function (value) {
1774
1766
  fn(state, value, unwrap);
1775
1767
  };
@@ -1796,8 +1788,8 @@ var internalResolve = function (state, value, unwrap) {
1796
1788
  var wrapper = { done: false };
1797
1789
  try {
1798
1790
  call$9(then, value,
1799
- bind$1(internalResolve, wrapper, state),
1800
- bind$1(internalReject, wrapper, state)
1791
+ bind$2(internalResolve, wrapper, state),
1792
+ bind$2(internalReject, wrapper, state)
1801
1793
  );
1802
1794
  } catch (error) {
1803
1795
  internalReject(wrapper, error, state);
@@ -1822,7 +1814,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1822
1814
  call$9(Internal, this);
1823
1815
  var state = getInternalPromiseState(this);
1824
1816
  try {
1825
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
1817
+ executor(bind$2(internalResolve, state), bind$2(internalReject, state));
1826
1818
  } catch (error) {
1827
1819
  internalReject(state, error);
1828
1820
  }
@@ -1864,8 +1856,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1864
1856
  var promise = new Internal();
1865
1857
  var state = getInternalPromiseState(promise);
1866
1858
  this.promise = promise;
1867
- this.resolve = bind$1(internalResolve, state);
1868
- this.reject = bind$1(internalReject, state);
1859
+ this.resolve = bind$2(internalResolve, state);
1860
+ this.reject = bind$2(internalReject, state);
1869
1861
  };
1870
1862
 
1871
1863
  newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
@@ -1900,7 +1892,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1900
1892
  }
1901
1893
  }
1902
1894
 
1903
- $$b({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1895
+ $$c({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1904
1896
  Promise: PromiseConstructor
1905
1897
  });
1906
1898
 
@@ -1909,10 +1901,10 @@ setSpecies(PROMISE);
1909
1901
 
1910
1902
  var iterators = {};
1911
1903
 
1912
- var wellKnownSymbol$8 = wellKnownSymbol$g;
1904
+ var wellKnownSymbol$9 = wellKnownSymbol$h;
1913
1905
  var Iterators$4 = iterators;
1914
1906
 
1915
- var ITERATOR$6 = wellKnownSymbol$8('iterator');
1907
+ var ITERATOR$6 = wellKnownSymbol$9('iterator');
1916
1908
  var ArrayPrototype$1 = Array.prototype;
1917
1909
 
1918
1910
  // check on default Array iterator
@@ -1920,18 +1912,18 @@ var isArrayIteratorMethod$1 = function (it) {
1920
1912
  return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$6] === it);
1921
1913
  };
1922
1914
 
1923
- var classof$2 = classof$4;
1915
+ var classof$3 = classof$5;
1924
1916
  var getMethod$1 = getMethod$3;
1925
1917
  var isNullOrUndefined = isNullOrUndefined$4;
1926
1918
  var Iterators$3 = iterators;
1927
- var wellKnownSymbol$7 = wellKnownSymbol$g;
1919
+ var wellKnownSymbol$8 = wellKnownSymbol$h;
1928
1920
 
1929
- var ITERATOR$5 = wellKnownSymbol$7('iterator');
1921
+ var ITERATOR$5 = wellKnownSymbol$8('iterator');
1930
1922
 
1931
1923
  var getIteratorMethod$2 = function (it) {
1932
1924
  if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$5)
1933
1925
  || getMethod$1(it, '@@iterator')
1934
- || Iterators$3[classof$2(it)];
1926
+ || Iterators$3[classof$3(it)];
1935
1927
  };
1936
1928
 
1937
1929
  var call$8 = functionCall;
@@ -1940,12 +1932,12 @@ var anObject$7 = anObject$c;
1940
1932
  var tryToString$1 = tryToString$4;
1941
1933
  var getIteratorMethod$1 = getIteratorMethod$2;
1942
1934
 
1943
- var $TypeError$3 = TypeError;
1935
+ var $TypeError$4 = TypeError;
1944
1936
 
1945
1937
  var getIterator$1 = function (argument, usingIterator) {
1946
1938
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1947
1939
  if (aCallable$3(iteratorMethod)) return anObject$7(call$8(iteratorMethod, argument));
1948
- throw $TypeError$3(tryToString$1(argument) + ' is not iterable');
1940
+ throw $TypeError$4(tryToString$1(argument) + ' is not iterable');
1949
1941
  };
1950
1942
 
1951
1943
  var call$7 = functionCall;
@@ -1972,18 +1964,18 @@ var iteratorClose$1 = function (iterator, kind, value) {
1972
1964
  return value;
1973
1965
  };
1974
1966
 
1975
- var bind = functionBindContext;
1967
+ var bind$1 = functionBindContext;
1976
1968
  var call$6 = functionCall;
1977
1969
  var anObject$5 = anObject$c;
1978
1970
  var tryToString = tryToString$4;
1979
1971
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
1980
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1972
+ var lengthOfArrayLike$3 = lengthOfArrayLike$5;
1981
1973
  var isPrototypeOf$1 = objectIsPrototypeOf;
1982
1974
  var getIterator = getIterator$1;
1983
1975
  var getIteratorMethod = getIteratorMethod$2;
1984
1976
  var iteratorClose = iteratorClose$1;
1985
1977
 
1986
- var $TypeError$2 = TypeError;
1978
+ var $TypeError$3 = TypeError;
1987
1979
 
1988
1980
  var Result = function (stopped, result) {
1989
1981
  this.stopped = stopped;
@@ -1998,7 +1990,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
1998
1990
  var IS_RECORD = !!(options && options.IS_RECORD);
1999
1991
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2000
1992
  var INTERRUPTED = !!(options && options.INTERRUPTED);
2001
- var fn = bind(unboundFunction, that);
1993
+ var fn = bind$1(unboundFunction, that);
2002
1994
  var iterator, iterFn, index, length, result, next, step;
2003
1995
 
2004
1996
  var stop = function (condition) {
@@ -2019,10 +2011,10 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2019
2011
  iterator = iterable;
2020
2012
  } else {
2021
2013
  iterFn = getIteratorMethod(iterable);
2022
- if (!iterFn) throw $TypeError$2(tryToString(iterable) + ' is not iterable');
2014
+ if (!iterFn) throw $TypeError$3(tryToString(iterable) + ' is not iterable');
2023
2015
  // optimisation for array iterators
2024
2016
  if (isArrayIteratorMethod(iterFn)) {
2025
- for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
2017
+ for (index = 0, length = lengthOfArrayLike$3(iterable); length > index; index++) {
2026
2018
  result = callFn(iterable[index]);
2027
2019
  if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
2028
2020
  } return new Result(false);
@@ -2041,9 +2033,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2041
2033
  } return new Result(false);
2042
2034
  };
2043
2035
 
2044
- var wellKnownSymbol$6 = wellKnownSymbol$g;
2036
+ var wellKnownSymbol$7 = wellKnownSymbol$h;
2045
2037
 
2046
- var ITERATOR$4 = wellKnownSymbol$6('iterator');
2038
+ var ITERATOR$4 = wellKnownSymbol$7('iterator');
2047
2039
  var SAFE_CLOSING = false;
2048
2040
 
2049
2041
  try {
@@ -2088,7 +2080,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2088
2080
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2089
2081
  });
2090
2082
 
2091
- var $$a = _export;
2083
+ var $$b = _export;
2092
2084
  var call$5 = functionCall;
2093
2085
  var aCallable$2 = aCallable$8;
2094
2086
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
@@ -2098,7 +2090,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2098
2090
 
2099
2091
  // `Promise.all` method
2100
2092
  // https://tc39.es/ecma262/#sec-promise.all
2101
- $$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2093
+ $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2102
2094
  all: function all(iterable) {
2103
2095
  var C = this;
2104
2096
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -2127,7 +2119,7 @@ $$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2127
2119
  }
2128
2120
  });
2129
2121
 
2130
- var $$9 = _export;
2122
+ var $$a = _export;
2131
2123
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2132
2124
  var NativePromiseConstructor = promiseNativeConstructor;
2133
2125
  var getBuiltIn$1 = getBuiltIn$8;
@@ -2138,7 +2130,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
2138
2130
 
2139
2131
  // `Promise.prototype.catch` method
2140
2132
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2141
- $$9({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2133
+ $$a({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2142
2134
  'catch': function (onRejected) {
2143
2135
  return this.then(undefined, onRejected);
2144
2136
  }
@@ -2152,7 +2144,7 @@ if (isCallable$3(NativePromiseConstructor)) {
2152
2144
  }
2153
2145
  }
2154
2146
 
2155
- var $$8 = _export;
2147
+ var $$9 = _export;
2156
2148
  var call$4 = functionCall;
2157
2149
  var aCallable$1 = aCallable$8;
2158
2150
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
@@ -2162,7 +2154,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2162
2154
 
2163
2155
  // `Promise.race` method
2164
2156
  // https://tc39.es/ecma262/#sec-promise.race
2165
- $$8({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2157
+ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2166
2158
  race: function race(iterable) {
2167
2159
  var C = this;
2168
2160
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -2178,14 +2170,14 @@ $$8({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2178
2170
  }
2179
2171
  });
2180
2172
 
2181
- var $$7 = _export;
2173
+ var $$8 = _export;
2182
2174
  var call$3 = functionCall;
2183
2175
  var newPromiseCapabilityModule = newPromiseCapability$2;
2184
2176
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2185
2177
 
2186
2178
  // `Promise.reject` method
2187
2179
  // https://tc39.es/ecma262/#sec-promise.reject
2188
- $$7({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2180
+ $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2189
2181
  reject: function reject(r) {
2190
2182
  var capability = newPromiseCapabilityModule.f(this);
2191
2183
  call$3(capability.reject, undefined, r);
@@ -2194,19 +2186,19 @@ $$7({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2194
2186
  });
2195
2187
 
2196
2188
  var anObject$4 = anObject$c;
2197
- var isObject$2 = isObject$9;
2189
+ var isObject$3 = isObject$a;
2198
2190
  var newPromiseCapability = newPromiseCapability$2;
2199
2191
 
2200
2192
  var promiseResolve$1 = function (C, x) {
2201
2193
  anObject$4(C);
2202
- if (isObject$2(x) && x.constructor === C) return x;
2194
+ if (isObject$3(x) && x.constructor === C) return x;
2203
2195
  var promiseCapability = newPromiseCapability.f(C);
2204
2196
  var resolve = promiseCapability.resolve;
2205
2197
  resolve(x);
2206
2198
  return promiseCapability.promise;
2207
2199
  };
2208
2200
 
2209
- var $$6 = _export;
2201
+ var $$7 = _export;
2210
2202
  var getBuiltIn = getBuiltIn$8;
2211
2203
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2212
2204
  var promiseResolve = promiseResolve$1;
@@ -2215,7 +2207,7 @@ getBuiltIn('Promise');
2215
2207
 
2216
2208
  // `Promise.resolve` method
2217
2209
  // https://tc39.es/ecma262/#sec-promise.resolve
2218
- $$6({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2210
+ $$7({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2219
2211
  resolve: function resolve(x) {
2220
2212
  return promiseResolve(this, x);
2221
2213
  }
@@ -2238,7 +2230,7 @@ var fails$6 = fails$h;
2238
2230
  var objectKeys$1 = objectKeys$2;
2239
2231
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2240
2232
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2241
- var toObject$2 = toObject$4;
2233
+ var toObject$3 = toObject$5;
2242
2234
  var IndexedObject$1 = indexedObject;
2243
2235
 
2244
2236
  // eslint-disable-next-line es/no-object-assign -- safe
@@ -2270,7 +2262,7 @@ var objectAssign = !$assign || fails$6(function () {
2270
2262
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2271
2263
  return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
2272
2264
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2273
- var T = toObject$2(target);
2265
+ var T = toObject$3(target);
2274
2266
  var argumentsLength = arguments.length;
2275
2267
  var index = 1;
2276
2268
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -2288,13 +2280,13 @@ var objectAssign = !$assign || fails$6(function () {
2288
2280
  } return T;
2289
2281
  } : $assign;
2290
2282
 
2291
- var $$5 = _export;
2283
+ var $$6 = _export;
2292
2284
  var assign = objectAssign;
2293
2285
 
2294
2286
  // `Object.assign` method
2295
2287
  // https://tc39.es/ecma262/#sec-object.assign
2296
2288
  // eslint-disable-next-line es/no-object-assign -- required for testing
2297
- $$5({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2289
+ $$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2298
2290
  assign: assign
2299
2291
  });
2300
2292
 
@@ -2406,11 +2398,11 @@ var objectCreate = Object.create || function create(O, Properties) {
2406
2398
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2407
2399
  };
2408
2400
 
2409
- var wellKnownSymbol$5 = wellKnownSymbol$g;
2401
+ var wellKnownSymbol$6 = wellKnownSymbol$h;
2410
2402
  var create$1 = objectCreate;
2411
2403
  var defineProperty$1 = objectDefineProperty.f;
2412
2404
 
2413
- var UNSCOPABLES = wellKnownSymbol$5('unscopables');
2405
+ var UNSCOPABLES = wellKnownSymbol$6('unscopables');
2414
2406
  var ArrayPrototype = Array.prototype;
2415
2407
 
2416
2408
  // Array.prototype[@@unscopables]
@@ -2423,14 +2415,14 @@ if (ArrayPrototype[UNSCOPABLES] == undefined) {
2423
2415
  }
2424
2416
 
2425
2417
  // add a key to Array.prototype[@@unscopables]
2426
- var addToUnscopables$2 = function (key) {
2418
+ var addToUnscopables$3 = function (key) {
2427
2419
  ArrayPrototype[UNSCOPABLES][key] = true;
2428
2420
  };
2429
2421
 
2430
- var $$4 = _export;
2422
+ var $$5 = _export;
2431
2423
  var $includes = arrayIncludes.includes;
2432
2424
  var fails$5 = fails$h;
2433
- var addToUnscopables$1 = addToUnscopables$2;
2425
+ var addToUnscopables$2 = addToUnscopables$3;
2434
2426
 
2435
2427
  // FF99+ bug
2436
2428
  var BROKEN_ON_SPARSE = fails$5(function () {
@@ -2439,50 +2431,50 @@ var BROKEN_ON_SPARSE = fails$5(function () {
2439
2431
 
2440
2432
  // `Array.prototype.includes` method
2441
2433
  // https://tc39.es/ecma262/#sec-array.prototype.includes
2442
- $$4({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2434
+ $$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2443
2435
  includes: function includes(el /* , fromIndex = 0 */) {
2444
2436
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2445
2437
  }
2446
2438
  });
2447
2439
 
2448
2440
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2449
- addToUnscopables$1('includes');
2441
+ addToUnscopables$2('includes');
2450
2442
 
2451
- var isObject$1 = isObject$9;
2452
- var classof$1 = classofRaw$2;
2453
- var wellKnownSymbol$4 = wellKnownSymbol$g;
2443
+ var isObject$2 = isObject$a;
2444
+ var classof$2 = classofRaw$2;
2445
+ var wellKnownSymbol$5 = wellKnownSymbol$h;
2454
2446
 
2455
- var MATCH$1 = wellKnownSymbol$4('match');
2447
+ var MATCH$1 = wellKnownSymbol$5('match');
2456
2448
 
2457
2449
  // `IsRegExp` abstract operation
2458
2450
  // https://tc39.es/ecma262/#sec-isregexp
2459
2451
  var isRegexp = function (it) {
2460
2452
  var isRegExp;
2461
- return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
2453
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
2462
2454
  };
2463
2455
 
2464
2456
  var isRegExp = isRegexp;
2465
2457
 
2466
- var $TypeError$1 = TypeError;
2458
+ var $TypeError$2 = TypeError;
2467
2459
 
2468
2460
  var notARegexp = function (it) {
2469
2461
  if (isRegExp(it)) {
2470
- throw $TypeError$1("The method doesn't accept regular expressions");
2462
+ throw $TypeError$2("The method doesn't accept regular expressions");
2471
2463
  } return it;
2472
2464
  };
2473
2465
 
2474
- var classof = classof$4;
2466
+ var classof$1 = classof$5;
2475
2467
 
2476
2468
  var $String = String;
2477
2469
 
2478
2470
  var toString$3 = function (argument) {
2479
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2471
+ if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2480
2472
  return $String(argument);
2481
2473
  };
2482
2474
 
2483
- var wellKnownSymbol$3 = wellKnownSymbol$g;
2475
+ var wellKnownSymbol$4 = wellKnownSymbol$h;
2484
2476
 
2485
- var MATCH = wellKnownSymbol$3('match');
2477
+ var MATCH = wellKnownSymbol$4('match');
2486
2478
 
2487
2479
  var correctIsRegexpLogic = function (METHOD_NAME) {
2488
2480
  var regexp = /./;
@@ -2496,7 +2488,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
2496
2488
  } return false;
2497
2489
  };
2498
2490
 
2499
- var $$3 = _export;
2491
+ var $$4 = _export;
2500
2492
  var uncurryThis$2 = functionUncurryThis;
2501
2493
  var notARegExp = notARegexp;
2502
2494
  var requireObjectCoercible$1 = requireObjectCoercible$4;
@@ -2507,7 +2499,7 @@ var stringIndexOf = uncurryThis$2(''.indexOf);
2507
2499
 
2508
2500
  // `String.prototype.includes` method
2509
2501
  // https://tc39.es/ecma262/#sec-string.prototype.includes
2510
- $$3({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2502
+ $$4({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2511
2503
  includes: function includes(searchString /* , position = 0 */) {
2512
2504
  return !!~stringIndexOf(
2513
2505
  toString$2(requireObjectCoercible$1(this)),
@@ -2660,7 +2652,7 @@ const ninetailedPlugin = ({
2660
2652
  }
2661
2653
  });
2662
2654
  const enqueueEvent = event => __awaiter(void 0, void 0, void 0, function* () {
2663
- queue = unionBy__default["default"]([event], queue, 'messageId');
2655
+ queue = experience_jsShared.unionBy([event], queue, 'messageId');
2664
2656
  });
2665
2657
  const abortNonClientEvents = ({
2666
2658
  abort,
@@ -2862,7 +2854,7 @@ var correctPrototypeGetter = !fails$3(function () {
2862
2854
 
2863
2855
  var hasOwn = hasOwnProperty_1;
2864
2856
  var isCallable$2 = isCallable$k;
2865
- var toObject$1 = toObject$4;
2857
+ var toObject$2 = toObject$5;
2866
2858
  var sharedKey = sharedKey$3;
2867
2859
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2868
2860
 
@@ -2874,7 +2866,7 @@ var ObjectPrototype = $Object.prototype;
2874
2866
  // https://tc39.es/ecma262/#sec-object.getprototypeof
2875
2867
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
2876
2868
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2877
- var object = toObject$1(O);
2869
+ var object = toObject$2(O);
2878
2870
  if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
2879
2871
  var constructor = object.constructor;
2880
2872
  if (isCallable$2(constructor) && object instanceof constructor) {
@@ -2884,12 +2876,12 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
2884
2876
 
2885
2877
  var fails$2 = fails$h;
2886
2878
  var isCallable$1 = isCallable$k;
2887
- var isObject = isObject$9;
2879
+ var isObject$1 = isObject$a;
2888
2880
  var getPrototypeOf$1 = objectGetPrototypeOf;
2889
2881
  var defineBuiltIn$1 = defineBuiltIn$6;
2890
- var wellKnownSymbol$2 = wellKnownSymbol$g;
2882
+ var wellKnownSymbol$3 = wellKnownSymbol$h;
2891
2883
 
2892
- var ITERATOR$3 = wellKnownSymbol$2('iterator');
2884
+ var ITERATOR$3 = wellKnownSymbol$3('iterator');
2893
2885
  var BUGGY_SAFARI_ITERATORS$1 = false;
2894
2886
 
2895
2887
  // `%IteratorPrototype%` object
@@ -2907,7 +2899,7 @@ if ([].keys) {
2907
2899
  }
2908
2900
  }
2909
2901
 
2910
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$2(function () {
2902
+ var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$2(function () {
2911
2903
  var test = {};
2912
2904
  // FF44- legacy iterators case
2913
2905
  return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
@@ -2944,7 +2936,7 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
2944
2936
  return IteratorConstructor;
2945
2937
  };
2946
2938
 
2947
- var $$2 = _export;
2939
+ var $$3 = _export;
2948
2940
  var call = functionCall;
2949
2941
  var FunctionName = functionName;
2950
2942
  var isCallable = isCallable$k;
@@ -2954,7 +2946,7 @@ var setPrototypeOf = objectSetPrototypeOf;
2954
2946
  var setToStringTag = setToStringTag$3;
2955
2947
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
2956
2948
  var defineBuiltIn = defineBuiltIn$6;
2957
- var wellKnownSymbol$1 = wellKnownSymbol$g;
2949
+ var wellKnownSymbol$2 = wellKnownSymbol$h;
2958
2950
  var Iterators$1 = iterators;
2959
2951
  var IteratorsCore = iteratorsCore;
2960
2952
 
@@ -2962,7 +2954,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2962
2954
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2963
2955
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
2964
2956
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2965
- var ITERATOR$2 = wellKnownSymbol$1('iterator');
2957
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
2966
2958
  var KEYS = 'keys';
2967
2959
  var VALUES = 'values';
2968
2960
  var ENTRIES = 'entries';
@@ -3029,7 +3021,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
3029
3021
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
3030
3022
  defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
3031
3023
  }
3032
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3024
+ } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3033
3025
  }
3034
3026
 
3035
3027
  // define iterator
@@ -3048,7 +3040,7 @@ var createIterResultObject$1 = function (value, done) {
3048
3040
  };
3049
3041
 
3050
3042
  var toIndexedObject = toIndexedObject$5;
3051
- var addToUnscopables = addToUnscopables$2;
3043
+ var addToUnscopables$1 = addToUnscopables$3;
3052
3044
  var Iterators = iterators;
3053
3045
  var InternalStateModule = internalState;
3054
3046
  var defineProperty = objectDefineProperty.f;
@@ -3099,9 +3091,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
3099
3091
  var values = Iterators.Arguments = Iterators.Array;
3100
3092
 
3101
3093
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3102
- addToUnscopables('keys');
3103
- addToUnscopables('values');
3104
- addToUnscopables('entries');
3094
+ addToUnscopables$1('keys');
3095
+ addToUnscopables$1('values');
3096
+ addToUnscopables$1('entries');
3105
3097
 
3106
3098
  // V8 ~ Chrome 45- bug
3107
3099
  if (DESCRIPTORS && values.name !== 'values') try {
@@ -3157,10 +3149,10 @@ var DOMIterables = domIterables;
3157
3149
  var DOMTokenListPrototype = domTokenListPrototype;
3158
3150
  var ArrayIteratorMethods = es_array_iterator;
3159
3151
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
3160
- var wellKnownSymbol = wellKnownSymbol$g;
3152
+ var wellKnownSymbol$1 = wellKnownSymbol$h;
3161
3153
 
3162
- var ITERATOR$1 = wellKnownSymbol('iterator');
3163
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3154
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
3155
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
3164
3156
  var ArrayValues = ArrayIteratorMethods.values;
3165
3157
 
3166
3158
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -3191,6 +3183,115 @@ for (var COLLECTION_NAME in DOMIterables) {
3191
3183
 
3192
3184
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
3193
3185
 
3186
+ var classof = classofRaw$2;
3187
+
3188
+ // `IsArray` abstract operation
3189
+ // https://tc39.es/ecma262/#sec-isarray
3190
+ // eslint-disable-next-line es/no-array-isarray -- safe
3191
+ var isArray$2 = Array.isArray || function isArray(argument) {
3192
+ return classof(argument) == 'Array';
3193
+ };
3194
+
3195
+ var $TypeError$1 = TypeError;
3196
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
3197
+
3198
+ var doesNotExceedSafeInteger$1 = function (it) {
3199
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
3200
+ return it;
3201
+ };
3202
+
3203
+ var isArray$1 = isArray$2;
3204
+ var lengthOfArrayLike$2 = lengthOfArrayLike$5;
3205
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
3206
+ var bind = functionBindContext;
3207
+
3208
+ // `FlattenIntoArray` abstract operation
3209
+ // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
3210
+ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
3211
+ var targetIndex = start;
3212
+ var sourceIndex = 0;
3213
+ var mapFn = mapper ? bind(mapper, thisArg) : false;
3214
+ var element, elementLen;
3215
+
3216
+ while (sourceIndex < sourceLen) {
3217
+ if (sourceIndex in source) {
3218
+ element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
3219
+
3220
+ if (depth > 0 && isArray$1(element)) {
3221
+ elementLen = lengthOfArrayLike$2(element);
3222
+ targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
3223
+ } else {
3224
+ doesNotExceedSafeInteger(targetIndex + 1);
3225
+ target[targetIndex] = element;
3226
+ }
3227
+
3228
+ targetIndex++;
3229
+ }
3230
+ sourceIndex++;
3231
+ }
3232
+ return targetIndex;
3233
+ };
3234
+
3235
+ var flattenIntoArray_1 = flattenIntoArray$1;
3236
+
3237
+ var isArray = isArray$2;
3238
+ var isConstructor = isConstructor$2;
3239
+ var isObject = isObject$a;
3240
+ var wellKnownSymbol = wellKnownSymbol$h;
3241
+
3242
+ var SPECIES = wellKnownSymbol('species');
3243
+ var $Array = Array;
3244
+
3245
+ // a part of `ArraySpeciesCreate` abstract operation
3246
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
3247
+ var arraySpeciesConstructor$1 = function (originalArray) {
3248
+ var C;
3249
+ if (isArray(originalArray)) {
3250
+ C = originalArray.constructor;
3251
+ // cross-realm fallback
3252
+ if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
3253
+ else if (isObject(C)) {
3254
+ C = C[SPECIES];
3255
+ if (C === null) C = undefined;
3256
+ }
3257
+ } return C === undefined ? $Array : C;
3258
+ };
3259
+
3260
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
3261
+
3262
+ // `ArraySpeciesCreate` abstract operation
3263
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
3264
+ var arraySpeciesCreate$1 = function (originalArray, length) {
3265
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
3266
+ };
3267
+
3268
+ var $$2 = _export;
3269
+ var flattenIntoArray = flattenIntoArray_1;
3270
+ var toObject$1 = toObject$5;
3271
+ var lengthOfArrayLike$1 = lengthOfArrayLike$5;
3272
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
3273
+ var arraySpeciesCreate = arraySpeciesCreate$1;
3274
+
3275
+ // `Array.prototype.flat` method
3276
+ // https://tc39.es/ecma262/#sec-array.prototype.flat
3277
+ $$2({ target: 'Array', proto: true }, {
3278
+ flat: function flat(/* depthArg = 1 */) {
3279
+ var depthArg = arguments.length ? arguments[0] : undefined;
3280
+ var O = toObject$1(this);
3281
+ var sourceLen = lengthOfArrayLike$1(O);
3282
+ var A = arraySpeciesCreate(O, 0);
3283
+ A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
3284
+ return A;
3285
+ }
3286
+ });
3287
+
3288
+ // this method was added to unscopables after implementation
3289
+ // in popular engines, so it's moved to a separate module
3290
+ var addToUnscopables = addToUnscopables$3;
3291
+
3292
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3293
+ addToUnscopables('flat');
3294
+
3194
3295
  class Ninetailed {
3195
3296
  constructor(ninetailedApiClientInstanceOrOptions, {
3196
3297
  plugins,
@@ -3330,8 +3431,7 @@ class Ninetailed {
3330
3431
  preview
3331
3432
  });
3332
3433
  }
3333
- /*this.plugins = flatten<NinetailedPlugin>(plugins || []);*/
3334
- this.plugins = [...flatten__default["default"](plugins || []).map(plugin => {
3434
+ this.plugins = [...(plugins || []).map(plugin => {
3335
3435
  if ('setCredentials' in plugin && typeof plugin['setCredentials'] === 'function') {
3336
3436
  plugin['setCredentials']({
3337
3437
  clientId: this.clientId,
@@ -3339,7 +3439,7 @@ class Ninetailed {
3339
3439
  });
3340
3440
  }
3341
3441
  return plugin;
3342
- })];
3442
+ }).flat()];
3343
3443
  if (profile) {
3344
3444
  this._profileState = {
3345
3445
  status: 'success',
@@ -3450,9 +3550,9 @@ const selectVariant = (baseline, variants, {
3450
3550
  error: error
3451
3551
  };
3452
3552
  }
3453
- const variant = find__default["default"](variants, variant => {
3454
- var _a;
3455
- return includes__default["default"](profile === null || profile === void 0 ? void 0 : profile.audiences, (_a = variant.audience) === null || _a === void 0 ? void 0 : _a.id);
3553
+ const variant = variants.find(variant => {
3554
+ var _a, _b;
3555
+ return (_a = profile === null || profile === void 0 ? void 0 : profile.audiences) === null || _a === void 0 ? void 0 : _a.includes((_b = variant.audience) === null || _b === void 0 ? void 0 : _b.id);
3456
3556
  });
3457
3557
  if (variant) {
3458
3558
  if ((options === null || options === void 0 ? void 0 : options.holdout) || -1 > (profile === null || profile === void 0 ? void 0 : profile.random)) {
@@ -3533,9 +3633,9 @@ const TrackComponentProperties = zod.z.object({
3533
3633
  class NinetailedPlugin {}
3534
3634
 
3535
3635
  var aCallable = aCallable$8;
3536
- var toObject = toObject$4;
3636
+ var toObject = toObject$5;
3537
3637
  var IndexedObject = indexedObject;
3538
- var lengthOfArrayLike = lengthOfArrayLike$3;
3638
+ var lengthOfArrayLike = lengthOfArrayLike$5;
3539
3639
 
3540
3640
  var $TypeError = TypeError;
3541
3641