@ninetailed/experience.js 1.0.0-beta.8 → 1.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.esm.js +904 -501
- package/index.umd.js +252 -304
- package/lib/Ninetailed.d.ts +12 -2
- package/lib/analytics/get-analytics-plugin.d.ts +2 -1
- package/lib/selectVariant.d.ts +5 -4
- package/lib/types.d.ts +0 -5
- package/package.json +3 -3
package/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash/get'), require('lodash/throttle'), require('lodash/unionBy'), require('@ninetailed/experience.js-shared'), require('tty'), require('util'), require('os'), require('analytics'), require('lodash/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'lodash/get', 'lodash/throttle', 'lodash/unionBy', '@ninetailed/experience.js-shared', 'tty', 'util', 'os', 'analytics', 'lodash/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Javascript = {}, global.get$2, global.throttle, global.unionBy, global.experience_jsShared, global.require$$1, global.require$$1$1, global.require$$0, global.Analytics, global.
|
|
5
|
-
})(this, (function (exports, get$2, throttle, unionBy, experience_jsShared, require$$1, require$$1$1, require$$0, Analytics,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash/get'), require('lodash/throttle'), require('lodash/unionBy'), require('@ninetailed/experience.js-shared'), require('tty'), require('util'), require('os'), require('analytics'), require('lodash/flatten'), require('lodash/find'), require('lodash/includes')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'lodash/get', 'lodash/throttle', 'lodash/unionBy', '@ninetailed/experience.js-shared', 'tty', 'util', 'os', 'analytics', 'lodash/flatten', 'lodash/find', 'lodash/includes'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Javascript = {}, global.get$2, global.throttle, global.unionBy, global.experience_jsShared, global.require$$1, global.require$$1$1, global.require$$0, global.Analytics, global.flatten, global.find, global.includes));
|
|
5
|
+
})(this, (function (exports, get$2, throttle, unionBy, experience_jsShared, require$$1, require$$1$1, require$$0, Analytics, flatten, find, includes) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
|
|
14
14
|
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
15
15
|
var Analytics__default = /*#__PURE__*/_interopDefaultLegacy(Analytics);
|
|
16
|
-
var
|
|
16
|
+
var flatten__default = /*#__PURE__*/_interopDefaultLegacy(flatten);
|
|
17
17
|
var find__default = /*#__PURE__*/_interopDefaultLegacy(find);
|
|
18
|
+
var includes__default = /*#__PURE__*/_interopDefaultLegacy(includes);
|
|
18
19
|
|
|
19
20
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
20
21
|
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
26
|
-
var global$
|
|
27
|
+
var global$z =
|
|
27
28
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
28
29
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
29
30
|
check(typeof window == 'object' && window) ||
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
|
|
36
37
|
var objectGetOwnPropertyDescriptor = {};
|
|
37
38
|
|
|
38
|
-
var fails$
|
|
39
|
+
var fails$a = function (exec) {
|
|
39
40
|
try {
|
|
40
41
|
return !!exec();
|
|
41
42
|
} catch (error) {
|
|
@@ -43,17 +44,17 @@
|
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
46
|
|
|
46
|
-
var fails$
|
|
47
|
+
var fails$9 = fails$a;
|
|
47
48
|
|
|
48
49
|
// Detect IE8's incomplete defineProperty implementation
|
|
49
|
-
var descriptors = !fails$
|
|
50
|
+
var descriptors = !fails$9(function () {
|
|
50
51
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
51
52
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
52
53
|
});
|
|
53
54
|
|
|
54
|
-
var fails$
|
|
55
|
+
var fails$8 = fails$a;
|
|
55
56
|
|
|
56
|
-
var functionBindNative = !fails$
|
|
57
|
+
var functionBindNative = !fails$8(function () {
|
|
57
58
|
var test = (function () { /* empty */ }).bind();
|
|
58
59
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
59
60
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -116,16 +117,16 @@
|
|
|
116
117
|
return stringSlice(toString$1(it), 8, -1);
|
|
117
118
|
};
|
|
118
119
|
|
|
119
|
-
var global$
|
|
120
|
+
var global$y = global$z;
|
|
120
121
|
var uncurryThis$c = functionUncurryThis;
|
|
121
|
-
var fails$
|
|
122
|
+
var fails$7 = fails$a;
|
|
122
123
|
var classof$4 = classofRaw$1;
|
|
123
124
|
|
|
124
|
-
var Object$4 = global$
|
|
125
|
+
var Object$4 = global$y.Object;
|
|
125
126
|
var split = uncurryThis$c(''.split);
|
|
126
127
|
|
|
127
128
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
128
|
-
var indexedObject = fails$
|
|
129
|
+
var indexedObject = fails$7(function () {
|
|
129
130
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
130
131
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
131
132
|
return !Object$4('z').propertyIsEnumerable(0);
|
|
@@ -133,23 +134,23 @@
|
|
|
133
134
|
return classof$4(it) == 'String' ? split(it, '') : Object$4(it);
|
|
134
135
|
} : Object$4;
|
|
135
136
|
|
|
136
|
-
var global$
|
|
137
|
+
var global$x = global$z;
|
|
137
138
|
|
|
138
|
-
var TypeError$
|
|
139
|
+
var TypeError$e = global$x.TypeError;
|
|
139
140
|
|
|
140
141
|
// `RequireObjectCoercible` abstract operation
|
|
141
142
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
142
143
|
var requireObjectCoercible$2 = function (it) {
|
|
143
|
-
if (it == undefined) throw TypeError$
|
|
144
|
+
if (it == undefined) throw TypeError$e("Can't call method on " + it);
|
|
144
145
|
return it;
|
|
145
146
|
};
|
|
146
147
|
|
|
147
148
|
// toObject with fallback for non-array-like ES3 strings
|
|
148
|
-
var IndexedObject$
|
|
149
|
+
var IndexedObject$1 = indexedObject;
|
|
149
150
|
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
150
151
|
|
|
151
152
|
var toIndexedObject$3 = function (it) {
|
|
152
|
-
return IndexedObject$
|
|
153
|
+
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
153
154
|
};
|
|
154
155
|
|
|
155
156
|
// `IsCallable` abstract operation
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
165
166
|
};
|
|
166
167
|
|
|
167
|
-
var global$
|
|
168
|
+
var global$w = global$z;
|
|
168
169
|
var isCallable$c = isCallable$e;
|
|
169
170
|
|
|
170
171
|
var aFunction = function (argument) {
|
|
@@ -172,7 +173,7 @@
|
|
|
172
173
|
};
|
|
173
174
|
|
|
174
175
|
var getBuiltIn$7 = function (namespace, method) {
|
|
175
|
-
return arguments.length < 2 ? aFunction(global$
|
|
176
|
+
return arguments.length < 2 ? aFunction(global$w[namespace]) : global$w[namespace] && global$w[namespace][method];
|
|
176
177
|
};
|
|
177
178
|
|
|
178
179
|
var uncurryThis$b = functionUncurryThis;
|
|
@@ -183,11 +184,11 @@
|
|
|
183
184
|
|
|
184
185
|
var engineUserAgent = getBuiltIn$6('navigator', 'userAgent') || '';
|
|
185
186
|
|
|
186
|
-
var global$
|
|
187
|
+
var global$v = global$z;
|
|
187
188
|
var userAgent$3 = engineUserAgent;
|
|
188
189
|
|
|
189
|
-
var process$4 = global$
|
|
190
|
-
var Deno = global$
|
|
190
|
+
var process$4 = global$v.process;
|
|
191
|
+
var Deno = global$v.Deno;
|
|
191
192
|
var versions = process$4 && process$4.versions || Deno && Deno.version;
|
|
192
193
|
var v8 = versions && versions.v8;
|
|
193
194
|
var match, version;
|
|
@@ -214,10 +215,10 @@
|
|
|
214
215
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
215
216
|
|
|
216
217
|
var V8_VERSION$1 = engineV8Version;
|
|
217
|
-
var fails$
|
|
218
|
+
var fails$6 = fails$a;
|
|
218
219
|
|
|
219
220
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
220
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
221
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
|
|
221
222
|
var symbol = Symbol();
|
|
222
223
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
223
224
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -234,13 +235,13 @@
|
|
|
234
235
|
&& !Symbol.sham
|
|
235
236
|
&& typeof Symbol.iterator == 'symbol';
|
|
236
237
|
|
|
237
|
-
var global$
|
|
238
|
+
var global$u = global$z;
|
|
238
239
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
239
240
|
var isCallable$b = isCallable$e;
|
|
240
241
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
241
242
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
242
243
|
|
|
243
|
-
var Object$3 = global$
|
|
244
|
+
var Object$3 = global$u.Object;
|
|
244
245
|
|
|
245
246
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
246
247
|
return typeof it == 'symbol';
|
|
@@ -249,9 +250,9 @@
|
|
|
249
250
|
return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, Object$3(it));
|
|
250
251
|
};
|
|
251
252
|
|
|
252
|
-
var global$
|
|
253
|
+
var global$t = global$z;
|
|
253
254
|
|
|
254
|
-
var String$4 = global$
|
|
255
|
+
var String$4 = global$t.String;
|
|
255
256
|
|
|
256
257
|
var tryToString$4 = function (argument) {
|
|
257
258
|
try {
|
|
@@ -261,33 +262,33 @@
|
|
|
261
262
|
}
|
|
262
263
|
};
|
|
263
264
|
|
|
264
|
-
var global$
|
|
265
|
+
var global$s = global$z;
|
|
265
266
|
var isCallable$a = isCallable$e;
|
|
266
267
|
var tryToString$3 = tryToString$4;
|
|
267
268
|
|
|
268
|
-
var TypeError$
|
|
269
|
+
var TypeError$d = global$s.TypeError;
|
|
269
270
|
|
|
270
271
|
// `Assert: IsCallable(argument) is true`
|
|
271
|
-
var aCallable$
|
|
272
|
+
var aCallable$5 = function (argument) {
|
|
272
273
|
if (isCallable$a(argument)) return argument;
|
|
273
|
-
throw TypeError$
|
|
274
|
+
throw TypeError$d(tryToString$3(argument) + ' is not a function');
|
|
274
275
|
};
|
|
275
276
|
|
|
276
|
-
var aCallable$
|
|
277
|
+
var aCallable$4 = aCallable$5;
|
|
277
278
|
|
|
278
279
|
// `GetMethod` abstract operation
|
|
279
280
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
280
281
|
var getMethod$3 = function (V, P) {
|
|
281
282
|
var func = V[P];
|
|
282
|
-
return func == null ? undefined : aCallable$
|
|
283
|
+
return func == null ? undefined : aCallable$4(func);
|
|
283
284
|
};
|
|
284
285
|
|
|
285
|
-
var global$
|
|
286
|
+
var global$r = global$z;
|
|
286
287
|
var call$8 = functionCall;
|
|
287
288
|
var isCallable$9 = isCallable$e;
|
|
288
289
|
var isObject$6 = isObject$7;
|
|
289
290
|
|
|
290
|
-
var TypeError$
|
|
291
|
+
var TypeError$c = global$r.TypeError;
|
|
291
292
|
|
|
292
293
|
// `OrdinaryToPrimitive` abstract operation
|
|
293
294
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -296,29 +297,29 @@
|
|
|
296
297
|
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$6(val = call$8(fn, input))) return val;
|
|
297
298
|
if (isCallable$9(fn = input.valueOf) && !isObject$6(val = call$8(fn, input))) return val;
|
|
298
299
|
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$6(val = call$8(fn, input))) return val;
|
|
299
|
-
throw TypeError$
|
|
300
|
+
throw TypeError$c("Can't convert object to primitive value");
|
|
300
301
|
};
|
|
301
302
|
|
|
302
303
|
var shared$3 = {exports: {}};
|
|
303
304
|
|
|
304
|
-
var global$
|
|
305
|
+
var global$q = global$z;
|
|
305
306
|
|
|
306
307
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
307
308
|
var defineProperty$2 = Object.defineProperty;
|
|
308
309
|
|
|
309
310
|
var setGlobal$3 = function (key, value) {
|
|
310
311
|
try {
|
|
311
|
-
defineProperty$2(global$
|
|
312
|
+
defineProperty$2(global$q, key, { value: value, configurable: true, writable: true });
|
|
312
313
|
} catch (error) {
|
|
313
|
-
global$
|
|
314
|
+
global$q[key] = value;
|
|
314
315
|
} return value;
|
|
315
316
|
};
|
|
316
317
|
|
|
317
|
-
var global$
|
|
318
|
+
var global$p = global$z;
|
|
318
319
|
var setGlobal$2 = setGlobal$3;
|
|
319
320
|
|
|
320
321
|
var SHARED = '__core-js_shared__';
|
|
321
|
-
var store$3 = global$
|
|
322
|
+
var store$3 = global$p[SHARED] || setGlobal$2(SHARED, {});
|
|
322
323
|
|
|
323
324
|
var sharedStore = store$3;
|
|
324
325
|
|
|
@@ -334,26 +335,26 @@
|
|
|
334
335
|
source: 'https://github.com/zloirock/core-js'
|
|
335
336
|
});
|
|
336
337
|
|
|
337
|
-
var global$
|
|
338
|
+
var global$o = global$z;
|
|
338
339
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
339
340
|
|
|
340
|
-
var Object$2 = global$
|
|
341
|
+
var Object$2 = global$o.Object;
|
|
341
342
|
|
|
342
343
|
// `ToObject` abstract operation
|
|
343
344
|
// https://tc39.es/ecma262/#sec-toobject
|
|
344
|
-
var toObject$
|
|
345
|
+
var toObject$2 = function (argument) {
|
|
345
346
|
return Object$2(requireObjectCoercible(argument));
|
|
346
347
|
};
|
|
347
348
|
|
|
348
349
|
var uncurryThis$a = functionUncurryThis;
|
|
349
|
-
var toObject$
|
|
350
|
+
var toObject$1 = toObject$2;
|
|
350
351
|
|
|
351
352
|
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
352
353
|
|
|
353
354
|
// `HasOwnProperty` abstract operation
|
|
354
355
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
355
356
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
356
|
-
return hasOwnProperty(toObject$
|
|
357
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
357
358
|
};
|
|
358
359
|
|
|
359
360
|
var uncurryThis$9 = functionUncurryThis;
|
|
@@ -366,7 +367,7 @@
|
|
|
366
367
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
367
368
|
};
|
|
368
369
|
|
|
369
|
-
var global$
|
|
370
|
+
var global$n = global$z;
|
|
370
371
|
var shared$2 = shared$3.exports;
|
|
371
372
|
var hasOwn$8 = hasOwnProperty_1;
|
|
372
373
|
var uid$1 = uid$2;
|
|
@@ -374,7 +375,7 @@
|
|
|
374
375
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
375
376
|
|
|
376
377
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
377
|
-
var Symbol$1 = global$
|
|
378
|
+
var Symbol$1 = global$n.Symbol;
|
|
378
379
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
379
380
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
380
381
|
|
|
@@ -391,7 +392,7 @@
|
|
|
391
392
|
} return WellKnownSymbolsStore[name];
|
|
392
393
|
};
|
|
393
394
|
|
|
394
|
-
var global$
|
|
395
|
+
var global$m = global$z;
|
|
395
396
|
var call$7 = functionCall;
|
|
396
397
|
var isObject$5 = isObject$7;
|
|
397
398
|
var isSymbol$1 = isSymbol$2;
|
|
@@ -399,7 +400,7 @@
|
|
|
399
400
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
400
401
|
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
401
402
|
|
|
402
|
-
var TypeError$
|
|
403
|
+
var TypeError$b = global$m.TypeError;
|
|
403
404
|
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
404
405
|
|
|
405
406
|
// `ToPrimitive` abstract operation
|
|
@@ -412,7 +413,7 @@
|
|
|
412
413
|
if (pref === undefined) pref = 'default';
|
|
413
414
|
result = call$7(exoticToPrim, input, pref);
|
|
414
415
|
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
415
|
-
throw TypeError$
|
|
416
|
+
throw TypeError$b("Can't convert object to primitive value");
|
|
416
417
|
}
|
|
417
418
|
if (pref === undefined) pref = 'number';
|
|
418
419
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -428,10 +429,10 @@
|
|
|
428
429
|
return isSymbol(key) ? key : key + '';
|
|
429
430
|
};
|
|
430
431
|
|
|
431
|
-
var global$
|
|
432
|
+
var global$l = global$z;
|
|
432
433
|
var isObject$4 = isObject$7;
|
|
433
434
|
|
|
434
|
-
var document$3 = global$
|
|
435
|
+
var document$3 = global$l.document;
|
|
435
436
|
// typeof document.createElement is 'object' in old IE
|
|
436
437
|
var EXISTS$1 = isObject$4(document$3) && isObject$4(document$3.createElement);
|
|
437
438
|
|
|
@@ -440,11 +441,11 @@
|
|
|
440
441
|
};
|
|
441
442
|
|
|
442
443
|
var DESCRIPTORS$7 = descriptors;
|
|
443
|
-
var fails$
|
|
444
|
+
var fails$5 = fails$a;
|
|
444
445
|
var createElement$1 = documentCreateElement;
|
|
445
446
|
|
|
446
447
|
// Thanks to IE8 for its funny defineProperty
|
|
447
|
-
var ie8DomDefine = !DESCRIPTORS$7 && !fails$
|
|
448
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$5(function () {
|
|
448
449
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
449
450
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
450
451
|
get: function () { return 7; }
|
|
@@ -477,11 +478,11 @@
|
|
|
477
478
|
var objectDefineProperty = {};
|
|
478
479
|
|
|
479
480
|
var DESCRIPTORS$5 = descriptors;
|
|
480
|
-
var fails$
|
|
481
|
+
var fails$4 = fails$a;
|
|
481
482
|
|
|
482
483
|
// V8 ~ Chrome 36-
|
|
483
484
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
484
|
-
var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$
|
|
485
|
+
var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$4(function () {
|
|
485
486
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
486
487
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
487
488
|
value: 42,
|
|
@@ -489,26 +490,26 @@
|
|
|
489
490
|
}).prototype != 42;
|
|
490
491
|
});
|
|
491
492
|
|
|
492
|
-
var global$
|
|
493
|
+
var global$k = global$z;
|
|
493
494
|
var isObject$3 = isObject$7;
|
|
494
495
|
|
|
495
|
-
var String$3 = global$
|
|
496
|
-
var TypeError$
|
|
496
|
+
var String$3 = global$k.String;
|
|
497
|
+
var TypeError$a = global$k.TypeError;
|
|
497
498
|
|
|
498
499
|
// `Assert: Type(argument) is Object`
|
|
499
500
|
var anObject$8 = function (argument) {
|
|
500
501
|
if (isObject$3(argument)) return argument;
|
|
501
|
-
throw TypeError$
|
|
502
|
+
throw TypeError$a(String$3(argument) + ' is not an object');
|
|
502
503
|
};
|
|
503
504
|
|
|
504
|
-
var global$
|
|
505
|
+
var global$j = global$z;
|
|
505
506
|
var DESCRIPTORS$4 = descriptors;
|
|
506
507
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
507
508
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
508
509
|
var anObject$7 = anObject$8;
|
|
509
510
|
var toPropertyKey = toPropertyKey$2;
|
|
510
511
|
|
|
511
|
-
var TypeError$
|
|
512
|
+
var TypeError$9 = global$j.TypeError;
|
|
512
513
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
513
514
|
var $defineProperty = Object.defineProperty;
|
|
514
515
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -541,7 +542,7 @@
|
|
|
541
542
|
if (IE8_DOM_DEFINE) try {
|
|
542
543
|
return $defineProperty(O, P, Attributes);
|
|
543
544
|
} catch (error) { /* empty */ }
|
|
544
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
545
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$9('Accessors not supported');
|
|
545
546
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
546
547
|
return O;
|
|
547
548
|
};
|
|
@@ -574,11 +575,11 @@
|
|
|
574
575
|
|
|
575
576
|
var inspectSource$4 = store$1.inspectSource;
|
|
576
577
|
|
|
577
|
-
var global$
|
|
578
|
+
var global$i = global$z;
|
|
578
579
|
var isCallable$7 = isCallable$e;
|
|
579
580
|
var inspectSource$3 = inspectSource$4;
|
|
580
581
|
|
|
581
|
-
var WeakMap$1 = global$
|
|
582
|
+
var WeakMap$1 = global$i.WeakMap;
|
|
582
583
|
|
|
583
584
|
var nativeWeakMap = isCallable$7(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
584
585
|
|
|
@@ -594,7 +595,7 @@
|
|
|
594
595
|
var hiddenKeys$3 = {};
|
|
595
596
|
|
|
596
597
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
597
|
-
var global$
|
|
598
|
+
var global$h = global$z;
|
|
598
599
|
var uncurryThis$7 = functionUncurryThis;
|
|
599
600
|
var isObject$2 = isObject$7;
|
|
600
601
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
@@ -604,8 +605,8 @@
|
|
|
604
605
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
605
606
|
|
|
606
607
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
607
|
-
var TypeError$
|
|
608
|
-
var WeakMap = global$
|
|
608
|
+
var TypeError$8 = global$h.TypeError;
|
|
609
|
+
var WeakMap = global$h.WeakMap;
|
|
609
610
|
var set$2, get$1, has;
|
|
610
611
|
|
|
611
612
|
var enforce = function (it) {
|
|
@@ -616,7 +617,7 @@
|
|
|
616
617
|
return function (it) {
|
|
617
618
|
var state;
|
|
618
619
|
if (!isObject$2(it) || (state = get$1(it)).type !== TYPE) {
|
|
619
|
-
throw TypeError$
|
|
620
|
+
throw TypeError$8('Incompatible receiver, ' + TYPE + ' required');
|
|
620
621
|
} return state;
|
|
621
622
|
};
|
|
622
623
|
};
|
|
@@ -627,7 +628,7 @@
|
|
|
627
628
|
var wmhas = uncurryThis$7(store.has);
|
|
628
629
|
var wmset = uncurryThis$7(store.set);
|
|
629
630
|
set$2 = function (it, metadata) {
|
|
630
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
631
|
+
if (wmhas(store, it)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED);
|
|
631
632
|
metadata.facade = it;
|
|
632
633
|
wmset(store, it, metadata);
|
|
633
634
|
return metadata;
|
|
@@ -642,7 +643,7 @@
|
|
|
642
643
|
var STATE = sharedKey('state');
|
|
643
644
|
hiddenKeys$2[STATE] = true;
|
|
644
645
|
set$2 = function (it, metadata) {
|
|
645
|
-
if (hasOwn$6(it, STATE)) throw new TypeError$
|
|
646
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED);
|
|
646
647
|
metadata.facade = it;
|
|
647
648
|
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
648
649
|
return metadata;
|
|
@@ -681,7 +682,7 @@
|
|
|
681
682
|
CONFIGURABLE: CONFIGURABLE
|
|
682
683
|
};
|
|
683
684
|
|
|
684
|
-
var global$
|
|
685
|
+
var global$g = global$z;
|
|
685
686
|
var isCallable$6 = isCallable$e;
|
|
686
687
|
var hasOwn$4 = hasOwnProperty_1;
|
|
687
688
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
@@ -712,7 +713,7 @@
|
|
|
712
713
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
713
714
|
}
|
|
714
715
|
}
|
|
715
|
-
if (O === global$
|
|
716
|
+
if (O === global$g) {
|
|
716
717
|
if (simple) O[key] = value;
|
|
717
718
|
else setGlobal$1(key, value);
|
|
718
719
|
return;
|
|
@@ -768,19 +769,19 @@
|
|
|
768
769
|
|
|
769
770
|
// `LengthOfArrayLike` abstract operation
|
|
770
771
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
771
|
-
var lengthOfArrayLike$
|
|
772
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
772
773
|
return toLength(obj.length);
|
|
773
774
|
};
|
|
774
775
|
|
|
775
776
|
var toIndexedObject$1 = toIndexedObject$3;
|
|
776
777
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
777
|
-
var lengthOfArrayLike$
|
|
778
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
778
779
|
|
|
779
780
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
780
|
-
var createMethod
|
|
781
|
+
var createMethod = function (IS_INCLUDES) {
|
|
781
782
|
return function ($this, el, fromIndex) {
|
|
782
783
|
var O = toIndexedObject$1($this);
|
|
783
|
-
var length = lengthOfArrayLike$
|
|
784
|
+
var length = lengthOfArrayLike$1(O);
|
|
784
785
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
785
786
|
var value;
|
|
786
787
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -799,10 +800,10 @@
|
|
|
799
800
|
var arrayIncludes = {
|
|
800
801
|
// `Array.prototype.includes` method
|
|
801
802
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
802
|
-
includes: createMethod
|
|
803
|
+
includes: createMethod(true),
|
|
803
804
|
// `Array.prototype.indexOf` method
|
|
804
805
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
805
|
-
indexOf: createMethod
|
|
806
|
+
indexOf: createMethod(false)
|
|
806
807
|
};
|
|
807
808
|
|
|
808
809
|
var uncurryThis$6 = functionUncurryThis;
|
|
@@ -886,7 +887,7 @@
|
|
|
886
887
|
}
|
|
887
888
|
};
|
|
888
889
|
|
|
889
|
-
var fails$
|
|
890
|
+
var fails$3 = fails$a;
|
|
890
891
|
var isCallable$5 = isCallable$e;
|
|
891
892
|
|
|
892
893
|
var replacement = /#|\.prototype\./;
|
|
@@ -895,7 +896,7 @@
|
|
|
895
896
|
var value = data[normalize(feature)];
|
|
896
897
|
return value == POLYFILL ? true
|
|
897
898
|
: value == NATIVE ? false
|
|
898
|
-
: isCallable$5(detection) ? fails$
|
|
899
|
+
: isCallable$5(detection) ? fails$3(detection)
|
|
899
900
|
: !!detection;
|
|
900
901
|
};
|
|
901
902
|
|
|
@@ -909,7 +910,7 @@
|
|
|
909
910
|
|
|
910
911
|
var isForced_1 = isForced$2;
|
|
911
912
|
|
|
912
|
-
var global$
|
|
913
|
+
var global$f = global$z;
|
|
913
914
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
914
915
|
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
915
916
|
var redefine$2 = redefine$3.exports;
|
|
@@ -938,11 +939,11 @@
|
|
|
938
939
|
var STATIC = options.stat;
|
|
939
940
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
940
941
|
if (GLOBAL) {
|
|
941
|
-
target = global$
|
|
942
|
+
target = global$f;
|
|
942
943
|
} else if (STATIC) {
|
|
943
|
-
target = global$
|
|
944
|
+
target = global$f[TARGET] || setGlobal(TARGET, {});
|
|
944
945
|
} else {
|
|
945
|
-
target = (global$
|
|
946
|
+
target = (global$f[TARGET] || {}).prototype;
|
|
946
947
|
}
|
|
947
948
|
if (target) for (key in source) {
|
|
948
949
|
sourceProperty = source[key];
|
|
@@ -965,9 +966,9 @@
|
|
|
965
966
|
}
|
|
966
967
|
};
|
|
967
968
|
|
|
968
|
-
var global$
|
|
969
|
+
var global$e = global$z;
|
|
969
970
|
|
|
970
|
-
var nativePromiseConstructor = global$
|
|
971
|
+
var nativePromiseConstructor = global$e.Promise;
|
|
971
972
|
|
|
972
973
|
var redefine$1 = redefine$3.exports;
|
|
973
974
|
|
|
@@ -976,15 +977,15 @@
|
|
|
976
977
|
return target;
|
|
977
978
|
};
|
|
978
979
|
|
|
979
|
-
var global$
|
|
980
|
+
var global$d = global$z;
|
|
980
981
|
var isCallable$4 = isCallable$e;
|
|
981
982
|
|
|
982
|
-
var String$2 = global$
|
|
983
|
-
var TypeError$
|
|
983
|
+
var String$2 = global$d.String;
|
|
984
|
+
var TypeError$7 = global$d.TypeError;
|
|
984
985
|
|
|
985
986
|
var aPossiblePrototype$1 = function (argument) {
|
|
986
987
|
if (typeof argument == 'object' || isCallable$4(argument)) return argument;
|
|
987
|
-
throw TypeError$
|
|
988
|
+
throw TypeError$7("Can't set " + String$2(argument) + ' as a prototype');
|
|
988
989
|
};
|
|
989
990
|
|
|
990
991
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1048,25 +1049,25 @@
|
|
|
1048
1049
|
}
|
|
1049
1050
|
};
|
|
1050
1051
|
|
|
1051
|
-
var global$
|
|
1052
|
+
var global$c = global$z;
|
|
1052
1053
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1053
1054
|
|
|
1054
|
-
var TypeError$
|
|
1055
|
+
var TypeError$6 = global$c.TypeError;
|
|
1055
1056
|
|
|
1056
1057
|
var anInstance$1 = function (it, Prototype) {
|
|
1057
1058
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1058
|
-
throw TypeError$
|
|
1059
|
+
throw TypeError$6('Incorrect invocation');
|
|
1059
1060
|
};
|
|
1060
1061
|
|
|
1061
1062
|
var uncurryThis$3 = functionUncurryThis;
|
|
1062
|
-
var aCallable$
|
|
1063
|
+
var aCallable$3 = aCallable$5;
|
|
1063
1064
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1064
1065
|
|
|
1065
1066
|
var bind$4 = uncurryThis$3(uncurryThis$3.bind);
|
|
1066
1067
|
|
|
1067
1068
|
// optional / simple context binding
|
|
1068
1069
|
var functionBindContext = function (fn, that) {
|
|
1069
|
-
aCallable$
|
|
1070
|
+
aCallable$3(fn);
|
|
1070
1071
|
return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
|
|
1071
1072
|
return fn.apply(that, arguments);
|
|
1072
1073
|
};
|
|
@@ -1094,14 +1095,14 @@
|
|
|
1094
1095
|
|
|
1095
1096
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1096
1097
|
|
|
1097
|
-
var global$
|
|
1098
|
+
var global$b = global$z;
|
|
1098
1099
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1099
1100
|
var isCallable$3 = isCallable$e;
|
|
1100
1101
|
var classofRaw = classofRaw$1;
|
|
1101
1102
|
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1102
1103
|
|
|
1103
1104
|
var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
|
|
1104
|
-
var Object$1 = global$
|
|
1105
|
+
var Object$1 = global$b.Object;
|
|
1105
1106
|
|
|
1106
1107
|
// ES3 wrong here
|
|
1107
1108
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1138,19 +1139,19 @@
|
|
|
1138
1139
|
|| Iterators[classof$2(it)];
|
|
1139
1140
|
};
|
|
1140
1141
|
|
|
1141
|
-
var global$
|
|
1142
|
+
var global$a = global$z;
|
|
1142
1143
|
var call$5 = functionCall;
|
|
1143
|
-
var aCallable$
|
|
1144
|
+
var aCallable$2 = aCallable$5;
|
|
1144
1145
|
var anObject$4 = anObject$8;
|
|
1145
1146
|
var tryToString$2 = tryToString$4;
|
|
1146
1147
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1147
1148
|
|
|
1148
|
-
var TypeError$
|
|
1149
|
+
var TypeError$5 = global$a.TypeError;
|
|
1149
1150
|
|
|
1150
1151
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1151
1152
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1152
|
-
if (aCallable$
|
|
1153
|
-
throw TypeError$
|
|
1153
|
+
if (aCallable$2(iteratorMethod)) return anObject$4(call$5(iteratorMethod, argument));
|
|
1154
|
+
throw TypeError$5(tryToString$2(argument) + ' is not iterable');
|
|
1154
1155
|
};
|
|
1155
1156
|
|
|
1156
1157
|
var call$4 = functionCall;
|
|
@@ -1177,19 +1178,19 @@
|
|
|
1177
1178
|
return value;
|
|
1178
1179
|
};
|
|
1179
1180
|
|
|
1180
|
-
var global$
|
|
1181
|
+
var global$9 = global$z;
|
|
1181
1182
|
var bind$3 = functionBindContext;
|
|
1182
1183
|
var call$3 = functionCall;
|
|
1183
1184
|
var anObject$2 = anObject$8;
|
|
1184
1185
|
var tryToString$1 = tryToString$4;
|
|
1185
1186
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1186
|
-
var lengthOfArrayLike
|
|
1187
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1187
1188
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
1188
1189
|
var getIterator = getIterator$1;
|
|
1189
1190
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1190
1191
|
var iteratorClose = iteratorClose$1;
|
|
1191
1192
|
|
|
1192
|
-
var TypeError$
|
|
1193
|
+
var TypeError$4 = global$9.TypeError;
|
|
1193
1194
|
|
|
1194
1195
|
var Result = function (stopped, result) {
|
|
1195
1196
|
this.stopped = stopped;
|
|
@@ -1222,10 +1223,10 @@
|
|
|
1222
1223
|
iterator = iterable;
|
|
1223
1224
|
} else {
|
|
1224
1225
|
iterFn = getIteratorMethod(iterable);
|
|
1225
|
-
if (!iterFn) throw TypeError$
|
|
1226
|
+
if (!iterFn) throw TypeError$4(tryToString$1(iterable) + ' is not iterable');
|
|
1226
1227
|
// optimisation for array iterators
|
|
1227
1228
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1228
|
-
for (index = 0, length = lengthOfArrayLike
|
|
1229
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1229
1230
|
result = callFn(iterable[index]);
|
|
1230
1231
|
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1231
1232
|
} return new Result(false);
|
|
@@ -1284,7 +1285,7 @@
|
|
|
1284
1285
|
};
|
|
1285
1286
|
|
|
1286
1287
|
var uncurryThis$2 = functionUncurryThis;
|
|
1287
|
-
var fails$
|
|
1288
|
+
var fails$2 = fails$a;
|
|
1288
1289
|
var isCallable$2 = isCallable$e;
|
|
1289
1290
|
var classof$1 = classof$3;
|
|
1290
1291
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
@@ -1328,7 +1329,7 @@
|
|
|
1328
1329
|
|
|
1329
1330
|
// `IsConstructor` abstract operation
|
|
1330
1331
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1331
|
-
var isConstructor$1 = !construct || fails$
|
|
1332
|
+
var isConstructor$1 = !construct || fails$2(function () {
|
|
1332
1333
|
var called;
|
|
1333
1334
|
return isConstructorModern(isConstructorModern.call)
|
|
1334
1335
|
|| !isConstructorModern(Object)
|
|
@@ -1336,16 +1337,16 @@
|
|
|
1336
1337
|
|| called;
|
|
1337
1338
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1338
1339
|
|
|
1339
|
-
var global$
|
|
1340
|
+
var global$8 = global$z;
|
|
1340
1341
|
var isConstructor = isConstructor$1;
|
|
1341
1342
|
var tryToString = tryToString$4;
|
|
1342
1343
|
|
|
1343
|
-
var TypeError$
|
|
1344
|
+
var TypeError$3 = global$8.TypeError;
|
|
1344
1345
|
|
|
1345
1346
|
// `Assert: IsConstructor(argument) is true`
|
|
1346
1347
|
var aConstructor$1 = function (argument) {
|
|
1347
1348
|
if (isConstructor(argument)) return argument;
|
|
1348
|
-
throw TypeError$
|
|
1349
|
+
throw TypeError$3(tryToString(argument) + ' is not a constructor');
|
|
1349
1350
|
};
|
|
1350
1351
|
|
|
1351
1352
|
var anObject$1 = anObject$8;
|
|
@@ -1381,12 +1382,12 @@
|
|
|
1381
1382
|
|
|
1382
1383
|
var arraySlice$1 = uncurryThis$1([].slice);
|
|
1383
1384
|
|
|
1384
|
-
var global$
|
|
1385
|
+
var global$7 = global$z;
|
|
1385
1386
|
|
|
1386
|
-
var TypeError$
|
|
1387
|
+
var TypeError$2 = global$7.TypeError;
|
|
1387
1388
|
|
|
1388
1389
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
1389
|
-
if (passed < required) throw TypeError$
|
|
1390
|
+
if (passed < required) throw TypeError$2('Not enough arguments');
|
|
1390
1391
|
return passed;
|
|
1391
1392
|
};
|
|
1392
1393
|
|
|
@@ -1395,30 +1396,30 @@
|
|
|
1395
1396
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1396
1397
|
|
|
1397
1398
|
var classof = classofRaw$1;
|
|
1398
|
-
var global$
|
|
1399
|
+
var global$6 = global$z;
|
|
1399
1400
|
|
|
1400
|
-
var engineIsNode = classof(global$
|
|
1401
|
+
var engineIsNode = classof(global$6.process) == 'process';
|
|
1401
1402
|
|
|
1402
|
-
var global$
|
|
1403
|
+
var global$5 = global$z;
|
|
1403
1404
|
var apply = functionApply;
|
|
1404
1405
|
var bind$2 = functionBindContext;
|
|
1405
1406
|
var isCallable$1 = isCallable$e;
|
|
1406
1407
|
var hasOwn = hasOwnProperty_1;
|
|
1407
|
-
var fails$
|
|
1408
|
+
var fails$1 = fails$a;
|
|
1408
1409
|
var html = html$1;
|
|
1409
1410
|
var arraySlice = arraySlice$1;
|
|
1410
1411
|
var createElement = documentCreateElement;
|
|
1411
1412
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1412
1413
|
var IS_IOS$1 = engineIsIos;
|
|
1413
|
-
var IS_NODE$
|
|
1414
|
-
|
|
1415
|
-
var set$1 = global$
|
|
1416
|
-
var clear = global$
|
|
1417
|
-
var process$3 = global$
|
|
1418
|
-
var Dispatch = global$
|
|
1419
|
-
var Function$1 = global$
|
|
1420
|
-
var MessageChannel = global$
|
|
1421
|
-
var String$1 = global$
|
|
1414
|
+
var IS_NODE$2 = engineIsNode;
|
|
1415
|
+
|
|
1416
|
+
var set$1 = global$5.setImmediate;
|
|
1417
|
+
var clear = global$5.clearImmediate;
|
|
1418
|
+
var process$3 = global$5.process;
|
|
1419
|
+
var Dispatch = global$5.Dispatch;
|
|
1420
|
+
var Function$1 = global$5.Function;
|
|
1421
|
+
var MessageChannel = global$5.MessageChannel;
|
|
1422
|
+
var String$1 = global$5.String;
|
|
1422
1423
|
var counter = 0;
|
|
1423
1424
|
var queue$1 = {};
|
|
1424
1425
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -1426,7 +1427,7 @@
|
|
|
1426
1427
|
|
|
1427
1428
|
try {
|
|
1428
1429
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1429
|
-
location = global$
|
|
1430
|
+
location = global$5.location;
|
|
1430
1431
|
} catch (error) { /* empty */ }
|
|
1431
1432
|
|
|
1432
1433
|
var run = function (id) {
|
|
@@ -1449,7 +1450,7 @@
|
|
|
1449
1450
|
|
|
1450
1451
|
var post = function (id) {
|
|
1451
1452
|
// old engines have not location.origin
|
|
1452
|
-
global$
|
|
1453
|
+
global$5.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
1453
1454
|
};
|
|
1454
1455
|
|
|
1455
1456
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -1468,7 +1469,7 @@
|
|
|
1468
1469
|
delete queue$1[id];
|
|
1469
1470
|
};
|
|
1470
1471
|
// Node.js 0.8-
|
|
1471
|
-
if (IS_NODE$
|
|
1472
|
+
if (IS_NODE$2) {
|
|
1472
1473
|
defer = function (id) {
|
|
1473
1474
|
process$3.nextTick(runner(id));
|
|
1474
1475
|
};
|
|
@@ -1487,14 +1488,14 @@
|
|
|
1487
1488
|
// Browsers with postMessage, skip WebWorkers
|
|
1488
1489
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
1489
1490
|
} else if (
|
|
1490
|
-
global$
|
|
1491
|
-
isCallable$1(global$
|
|
1492
|
-
!global$
|
|
1491
|
+
global$5.addEventListener &&
|
|
1492
|
+
isCallable$1(global$5.postMessage) &&
|
|
1493
|
+
!global$5.importScripts &&
|
|
1493
1494
|
location && location.protocol !== 'file:' &&
|
|
1494
|
-
!fails$
|
|
1495
|
+
!fails$1(post)
|
|
1495
1496
|
) {
|
|
1496
1497
|
defer = post;
|
|
1497
|
-
global$
|
|
1498
|
+
global$5.addEventListener('message', listener, false);
|
|
1498
1499
|
// IE8-
|
|
1499
1500
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
1500
1501
|
defer = function (id) {
|
|
@@ -1517,29 +1518,29 @@
|
|
|
1517
1518
|
};
|
|
1518
1519
|
|
|
1519
1520
|
var userAgent$1 = engineUserAgent;
|
|
1520
|
-
var global$
|
|
1521
|
+
var global$4 = global$z;
|
|
1521
1522
|
|
|
1522
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
1523
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$4.Pebble !== undefined;
|
|
1523
1524
|
|
|
1524
1525
|
var userAgent = engineUserAgent;
|
|
1525
1526
|
|
|
1526
1527
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1527
1528
|
|
|
1528
|
-
var global$
|
|
1529
|
+
var global$3 = global$z;
|
|
1529
1530
|
var bind$1 = functionBindContext;
|
|
1530
1531
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1531
1532
|
var macrotask = task$1.set;
|
|
1532
1533
|
var IS_IOS = engineIsIos;
|
|
1533
1534
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
1534
1535
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
1535
|
-
var IS_NODE$
|
|
1536
|
+
var IS_NODE$1 = engineIsNode;
|
|
1536
1537
|
|
|
1537
|
-
var MutationObserver = global$
|
|
1538
|
-
var document$2 = global$
|
|
1539
|
-
var process$2 = global$
|
|
1540
|
-
var Promise$1 = global$
|
|
1538
|
+
var MutationObserver = global$3.MutationObserver || global$3.WebKitMutationObserver;
|
|
1539
|
+
var document$2 = global$3.document;
|
|
1540
|
+
var process$2 = global$3.process;
|
|
1541
|
+
var Promise$1 = global$3.Promise;
|
|
1541
1542
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
1542
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
1543
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$3, 'queueMicrotask');
|
|
1543
1544
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
1544
1545
|
|
|
1545
1546
|
var flush, head, last, notify$1, toggle, node$1, promise, then;
|
|
@@ -1548,7 +1549,7 @@
|
|
|
1548
1549
|
if (!queueMicrotask) {
|
|
1549
1550
|
flush = function () {
|
|
1550
1551
|
var parent, fn;
|
|
1551
|
-
if (IS_NODE$
|
|
1552
|
+
if (IS_NODE$1 && (parent = process$2.domain)) parent.exit();
|
|
1552
1553
|
while (head) {
|
|
1553
1554
|
fn = head.fn;
|
|
1554
1555
|
head = head.next;
|
|
@@ -1565,7 +1566,7 @@
|
|
|
1565
1566
|
|
|
1566
1567
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
1567
1568
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
1568
|
-
if (!IS_IOS && !IS_NODE$
|
|
1569
|
+
if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
1569
1570
|
toggle = true;
|
|
1570
1571
|
node$1 = document$2.createTextNode('');
|
|
1571
1572
|
new MutationObserver(flush).observe(node$1, { characterData: true });
|
|
@@ -1583,7 +1584,7 @@
|
|
|
1583
1584
|
then(flush);
|
|
1584
1585
|
};
|
|
1585
1586
|
// Node.js without promises
|
|
1586
|
-
} else if (IS_NODE$
|
|
1587
|
+
} else if (IS_NODE$1) {
|
|
1587
1588
|
notify$1 = function () {
|
|
1588
1589
|
process$2.nextTick(flush);
|
|
1589
1590
|
};
|
|
@@ -1595,7 +1596,7 @@
|
|
|
1595
1596
|
// - setTimeout
|
|
1596
1597
|
} else {
|
|
1597
1598
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
1598
|
-
macrotask = bind$1(macrotask, global$
|
|
1599
|
+
macrotask = bind$1(macrotask, global$3);
|
|
1599
1600
|
notify$1 = function () {
|
|
1600
1601
|
macrotask(flush);
|
|
1601
1602
|
};
|
|
@@ -1613,7 +1614,7 @@
|
|
|
1613
1614
|
|
|
1614
1615
|
var newPromiseCapability$2 = {};
|
|
1615
1616
|
|
|
1616
|
-
var aCallable$
|
|
1617
|
+
var aCallable$1 = aCallable$5;
|
|
1617
1618
|
|
|
1618
1619
|
var PromiseCapability = function (C) {
|
|
1619
1620
|
var resolve, reject;
|
|
@@ -1622,8 +1623,8 @@
|
|
|
1622
1623
|
resolve = $$resolve;
|
|
1623
1624
|
reject = $$reject;
|
|
1624
1625
|
});
|
|
1625
|
-
this.resolve = aCallable$
|
|
1626
|
-
this.reject = aCallable$
|
|
1626
|
+
this.resolve = aCallable$1(resolve);
|
|
1627
|
+
this.reject = aCallable$1(reject);
|
|
1627
1628
|
};
|
|
1628
1629
|
|
|
1629
1630
|
// `NewPromiseCapability` abstract operation
|
|
@@ -1645,10 +1646,10 @@
|
|
|
1645
1646
|
return promiseCapability.promise;
|
|
1646
1647
|
};
|
|
1647
1648
|
|
|
1648
|
-
var global$
|
|
1649
|
+
var global$2 = global$z;
|
|
1649
1650
|
|
|
1650
1651
|
var hostReportErrors$1 = function (a, b) {
|
|
1651
|
-
var console = global$
|
|
1652
|
+
var console = global$2.console;
|
|
1652
1653
|
if (console && console.error) {
|
|
1653
1654
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
1654
1655
|
}
|
|
@@ -1688,8 +1689,8 @@
|
|
|
1688
1689
|
|
|
1689
1690
|
var engineIsBrowser = typeof window == 'object';
|
|
1690
1691
|
|
|
1691
|
-
var $$
|
|
1692
|
-
var global$
|
|
1692
|
+
var $$1 = _export;
|
|
1693
|
+
var global$1 = global$z;
|
|
1693
1694
|
var getBuiltIn = getBuiltIn$7;
|
|
1694
1695
|
var call$1 = functionCall;
|
|
1695
1696
|
var NativePromise = nativePromiseConstructor;
|
|
@@ -1698,7 +1699,7 @@
|
|
|
1698
1699
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1699
1700
|
var setToStringTag = setToStringTag$1;
|
|
1700
1701
|
var setSpecies = setSpecies$1;
|
|
1701
|
-
var aCallable
|
|
1702
|
+
var aCallable = aCallable$5;
|
|
1702
1703
|
var isCallable = isCallable$e;
|
|
1703
1704
|
var isObject = isObject$7;
|
|
1704
1705
|
var anInstance = anInstance$1;
|
|
@@ -1717,7 +1718,7 @@
|
|
|
1717
1718
|
var isForced = isForced_1;
|
|
1718
1719
|
var wellKnownSymbol = wellKnownSymbol$a;
|
|
1719
1720
|
var IS_BROWSER = engineIsBrowser;
|
|
1720
|
-
var IS_NODE
|
|
1721
|
+
var IS_NODE = engineIsNode;
|
|
1721
1722
|
var V8_VERSION = engineV8Version;
|
|
1722
1723
|
|
|
1723
1724
|
var SPECIES = wellKnownSymbol('species');
|
|
@@ -1729,14 +1730,14 @@
|
|
|
1729
1730
|
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
1730
1731
|
var PromiseConstructor = NativePromise;
|
|
1731
1732
|
var PromisePrototype = NativePromisePrototype;
|
|
1732
|
-
var TypeError$
|
|
1733
|
-
var document$1 = global$
|
|
1734
|
-
var process$1 = global$
|
|
1733
|
+
var TypeError$1 = global$1.TypeError;
|
|
1734
|
+
var document$1 = global$1.document;
|
|
1735
|
+
var process$1 = global$1.process;
|
|
1735
1736
|
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
1736
1737
|
var newGenericPromiseCapability = newPromiseCapability;
|
|
1737
1738
|
|
|
1738
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
1739
|
-
var NATIVE_REJECTION_EVENT = isCallable(global$
|
|
1739
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
|
|
1740
|
+
var NATIVE_REJECTION_EVENT = isCallable(global$1.PromiseRejectionEvent);
|
|
1740
1741
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
1741
1742
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
1742
1743
|
var PENDING = 0;
|
|
@@ -1806,7 +1807,7 @@
|
|
|
1806
1807
|
}
|
|
1807
1808
|
}
|
|
1808
1809
|
if (result === reaction.promise) {
|
|
1809
|
-
reject(TypeError$
|
|
1810
|
+
reject(TypeError$1('Promise-chain cycle'));
|
|
1810
1811
|
} else if (then = isThenable(result)) {
|
|
1811
1812
|
call$1(then, result, resolve, reject);
|
|
1812
1813
|
} else resolve(result);
|
|
@@ -1838,26 +1839,26 @@
|
|
|
1838
1839
|
event.promise = promise;
|
|
1839
1840
|
event.reason = reason;
|
|
1840
1841
|
event.initEvent(name, false, true);
|
|
1841
|
-
global$
|
|
1842
|
+
global$1.dispatchEvent(event);
|
|
1842
1843
|
} else event = { promise: promise, reason: reason };
|
|
1843
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global$
|
|
1844
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
|
|
1844
1845
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
1845
1846
|
};
|
|
1846
1847
|
|
|
1847
1848
|
var onUnhandled = function (state) {
|
|
1848
|
-
call$1(task, global$
|
|
1849
|
+
call$1(task, global$1, function () {
|
|
1849
1850
|
var promise = state.facade;
|
|
1850
1851
|
var value = state.value;
|
|
1851
1852
|
var IS_UNHANDLED = isUnhandled(state);
|
|
1852
1853
|
var result;
|
|
1853
1854
|
if (IS_UNHANDLED) {
|
|
1854
1855
|
result = perform(function () {
|
|
1855
|
-
if (IS_NODE
|
|
1856
|
+
if (IS_NODE) {
|
|
1856
1857
|
process$1.emit('unhandledRejection', value, promise);
|
|
1857
1858
|
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
1858
1859
|
});
|
|
1859
1860
|
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
1860
|
-
state.rejection = IS_NODE
|
|
1861
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
1861
1862
|
if (result.error) throw result.value;
|
|
1862
1863
|
}
|
|
1863
1864
|
});
|
|
@@ -1868,9 +1869,9 @@
|
|
|
1868
1869
|
};
|
|
1869
1870
|
|
|
1870
1871
|
var onHandleUnhandled = function (state) {
|
|
1871
|
-
call$1(task, global$
|
|
1872
|
+
call$1(task, global$1, function () {
|
|
1872
1873
|
var promise = state.facade;
|
|
1873
|
-
if (IS_NODE
|
|
1874
|
+
if (IS_NODE) {
|
|
1874
1875
|
process$1.emit('rejectionHandled', promise);
|
|
1875
1876
|
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
1876
1877
|
});
|
|
@@ -1896,7 +1897,7 @@
|
|
|
1896
1897
|
state.done = true;
|
|
1897
1898
|
if (unwrap) state = unwrap;
|
|
1898
1899
|
try {
|
|
1899
|
-
if (state.facade === value) throw TypeError$
|
|
1900
|
+
if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
|
|
1900
1901
|
var then = isThenable(value);
|
|
1901
1902
|
if (then) {
|
|
1902
1903
|
microtask(function () {
|
|
@@ -1925,7 +1926,7 @@
|
|
|
1925
1926
|
// 25.4.3.1 Promise(executor)
|
|
1926
1927
|
PromiseConstructor = function Promise(executor) {
|
|
1927
1928
|
anInstance(this, PromisePrototype);
|
|
1928
|
-
aCallable
|
|
1929
|
+
aCallable(executor);
|
|
1929
1930
|
call$1(Internal, this);
|
|
1930
1931
|
var state = getInternalState(this);
|
|
1931
1932
|
try {
|
|
@@ -1958,7 +1959,7 @@
|
|
|
1958
1959
|
state.parent = true;
|
|
1959
1960
|
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
|
1960
1961
|
reaction.fail = isCallable(onRejected) && onRejected;
|
|
1961
|
-
reaction.domain = IS_NODE
|
|
1962
|
+
reaction.domain = IS_NODE ? process$1.domain : undefined;
|
|
1962
1963
|
if (state.state == PENDING) state.reactions.add(reaction);
|
|
1963
1964
|
else microtask(function () {
|
|
1964
1965
|
callReaction(reaction, state);
|
|
@@ -2013,7 +2014,7 @@
|
|
|
2013
2014
|
}
|
|
2014
2015
|
}
|
|
2015
2016
|
|
|
2016
|
-
$$
|
|
2017
|
+
$$1({ global: true, wrap: true, forced: FORCED }, {
|
|
2017
2018
|
Promise: PromiseConstructor
|
|
2018
2019
|
});
|
|
2019
2020
|
|
|
@@ -2023,7 +2024,7 @@
|
|
|
2023
2024
|
PromiseWrapper = getBuiltIn(PROMISE);
|
|
2024
2025
|
|
|
2025
2026
|
// statics
|
|
2026
|
-
$$
|
|
2027
|
+
$$1({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
2027
2028
|
// `Promise.reject` method
|
|
2028
2029
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2029
2030
|
reject: function reject(r) {
|
|
@@ -2033,7 +2034,7 @@
|
|
|
2033
2034
|
}
|
|
2034
2035
|
});
|
|
2035
2036
|
|
|
2036
|
-
$$
|
|
2037
|
+
$$1({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
2037
2038
|
// `Promise.resolve` method
|
|
2038
2039
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2039
2040
|
resolve: function resolve(x) {
|
|
@@ -2041,7 +2042,7 @@
|
|
|
2041
2042
|
}
|
|
2042
2043
|
});
|
|
2043
2044
|
|
|
2044
|
-
$$
|
|
2045
|
+
$$1({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
2045
2046
|
// `Promise.all` method
|
|
2046
2047
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2047
2048
|
all: function all(iterable) {
|
|
@@ -2050,7 +2051,7 @@
|
|
|
2050
2051
|
var resolve = capability.resolve;
|
|
2051
2052
|
var reject = capability.reject;
|
|
2052
2053
|
var result = perform(function () {
|
|
2053
|
-
var $promiseResolve = aCallable
|
|
2054
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
2054
2055
|
var values = [];
|
|
2055
2056
|
var counter = 0;
|
|
2056
2057
|
var remaining = 1;
|
|
@@ -2077,7 +2078,7 @@
|
|
|
2077
2078
|
var capability = newPromiseCapability(C);
|
|
2078
2079
|
var reject = capability.reject;
|
|
2079
2080
|
var result = perform(function () {
|
|
2080
|
-
var $promiseResolve = aCallable
|
|
2081
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
2081
2082
|
iterate(iterable, function (promise) {
|
|
2082
2083
|
call$1($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2083
2084
|
});
|
|
@@ -2100,12 +2101,12 @@
|
|
|
2100
2101
|
var DESCRIPTORS = descriptors;
|
|
2101
2102
|
var uncurryThis = functionUncurryThis;
|
|
2102
2103
|
var call = functionCall;
|
|
2103
|
-
var fails
|
|
2104
|
+
var fails = fails$a;
|
|
2104
2105
|
var objectKeys = objectKeys$1;
|
|
2105
2106
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2106
2107
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2107
|
-
var toObject
|
|
2108
|
-
var IndexedObject
|
|
2108
|
+
var toObject = toObject$2;
|
|
2109
|
+
var IndexedObject = indexedObject;
|
|
2109
2110
|
|
|
2110
2111
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
2111
2112
|
var $assign = Object.assign;
|
|
@@ -2115,7 +2116,7 @@
|
|
|
2115
2116
|
|
|
2116
2117
|
// `Object.assign` method
|
|
2117
2118
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2118
|
-
var objectAssign = !$assign || fails
|
|
2119
|
+
var objectAssign = !$assign || fails(function () {
|
|
2119
2120
|
// should have correct order of operations (Edge bug)
|
|
2120
2121
|
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
2121
2122
|
enumerable: true,
|
|
@@ -2136,13 +2137,13 @@
|
|
|
2136
2137
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2137
2138
|
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
2138
2139
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2139
|
-
var T = toObject
|
|
2140
|
+
var T = toObject(target);
|
|
2140
2141
|
var argumentsLength = arguments.length;
|
|
2141
2142
|
var index = 1;
|
|
2142
2143
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
2143
2144
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
2144
2145
|
while (argumentsLength > index) {
|
|
2145
|
-
var S = IndexedObject
|
|
2146
|
+
var S = IndexedObject(arguments[index++]);
|
|
2146
2147
|
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
2147
2148
|
var length = keys.length;
|
|
2148
2149
|
var j = 0;
|
|
@@ -2154,13 +2155,13 @@
|
|
|
2154
2155
|
} return T;
|
|
2155
2156
|
} : $assign;
|
|
2156
2157
|
|
|
2157
|
-
var
|
|
2158
|
+
var $ = _export;
|
|
2158
2159
|
var assign = objectAssign;
|
|
2159
2160
|
|
|
2160
2161
|
// `Object.assign` method
|
|
2161
2162
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2162
2163
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
2163
|
-
|
|
2164
|
+
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
2164
2165
|
assign: assign
|
|
2165
2166
|
});
|
|
2166
2167
|
|
|
@@ -2226,6 +2227,16 @@
|
|
|
2226
2227
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
2227
2228
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
2228
2229
|
}
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
function __spreadArray(to, from, pack) {
|
|
2233
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2234
|
+
if (ar || !(i in from)) {
|
|
2235
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2236
|
+
ar[i] = from[i];
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2229
2240
|
}
|
|
2230
2241
|
|
|
2231
2242
|
var NINETAILED_CACHE_KEY = '__nt-cache__';
|
|
@@ -3538,10 +3549,13 @@
|
|
|
3538
3549
|
var ninetailedPlugin = function ninetailedPlugin(_a) {
|
|
3539
3550
|
var clientId = _a.clientId,
|
|
3540
3551
|
environment = _a.environment,
|
|
3552
|
+
_b = _a.preview,
|
|
3553
|
+
preview = _b === void 0 ? false : _b,
|
|
3541
3554
|
url = _a.url,
|
|
3542
3555
|
profile = _a.profile,
|
|
3543
3556
|
locale = _a.locale;
|
|
3544
3557
|
var isFirstEvent = true;
|
|
3558
|
+
var isInitialized = false;
|
|
3545
3559
|
var apiClient = new NinetailedApiClient({
|
|
3546
3560
|
clientId: clientId,
|
|
3547
3561
|
environment: environment,
|
|
@@ -3584,10 +3598,11 @@
|
|
|
3584
3598
|
traits: get__default["default"](cache, 'traits', {}),
|
|
3585
3599
|
traitsUpdatedAt: get__default["default"](cache, 'traitsUpdatedAt', new Date().toISOString()),
|
|
3586
3600
|
localOnly: localOnly,
|
|
3601
|
+
preview: preview,
|
|
3587
3602
|
options: {
|
|
3588
3603
|
locale: locale || 'en'
|
|
3589
3604
|
},
|
|
3590
|
-
sessions: cache
|
|
3605
|
+
sessions: get__default["default"](cache, 'sessions', [])
|
|
3591
3606
|
})];
|
|
3592
3607
|
|
|
3593
3608
|
case 2:
|
|
@@ -3691,6 +3706,8 @@
|
|
|
3691
3706
|
id: anonymousId
|
|
3692
3707
|
}));
|
|
3693
3708
|
}
|
|
3709
|
+
|
|
3710
|
+
isInitialized = true;
|
|
3694
3711
|
},
|
|
3695
3712
|
page: function (_a) {
|
|
3696
3713
|
var payload = _a.payload,
|
|
@@ -3791,7 +3808,7 @@
|
|
|
3791
3808
|
});
|
|
3792
3809
|
},
|
|
3793
3810
|
loaded: function () {
|
|
3794
|
-
return
|
|
3811
|
+
return isInitialized;
|
|
3795
3812
|
},
|
|
3796
3813
|
methods: {
|
|
3797
3814
|
reset: function () {
|
|
@@ -3855,80 +3872,6 @@
|
|
|
3855
3872
|
};
|
|
3856
3873
|
};
|
|
3857
3874
|
|
|
3858
|
-
var global$1 = global$A;
|
|
3859
|
-
var aCallable = aCallable$6;
|
|
3860
|
-
var toObject = toObject$3;
|
|
3861
|
-
var IndexedObject = indexedObject;
|
|
3862
|
-
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
3863
|
-
|
|
3864
|
-
var TypeError$1 = global$1.TypeError;
|
|
3865
|
-
|
|
3866
|
-
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
3867
|
-
var createMethod = function (IS_RIGHT) {
|
|
3868
|
-
return function (that, callbackfn, argumentsLength, memo) {
|
|
3869
|
-
aCallable(callbackfn);
|
|
3870
|
-
var O = toObject(that);
|
|
3871
|
-
var self = IndexedObject(O);
|
|
3872
|
-
var length = lengthOfArrayLike(O);
|
|
3873
|
-
var index = IS_RIGHT ? length - 1 : 0;
|
|
3874
|
-
var i = IS_RIGHT ? -1 : 1;
|
|
3875
|
-
if (argumentsLength < 2) while (true) {
|
|
3876
|
-
if (index in self) {
|
|
3877
|
-
memo = self[index];
|
|
3878
|
-
index += i;
|
|
3879
|
-
break;
|
|
3880
|
-
}
|
|
3881
|
-
index += i;
|
|
3882
|
-
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
3883
|
-
throw TypeError$1('Reduce of empty array with no initial value');
|
|
3884
|
-
}
|
|
3885
|
-
}
|
|
3886
|
-
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
3887
|
-
memo = callbackfn(memo, self[index], index, O);
|
|
3888
|
-
}
|
|
3889
|
-
return memo;
|
|
3890
|
-
};
|
|
3891
|
-
};
|
|
3892
|
-
|
|
3893
|
-
var arrayReduce = {
|
|
3894
|
-
// `Array.prototype.reduce` method
|
|
3895
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
3896
|
-
left: createMethod(false),
|
|
3897
|
-
// `Array.prototype.reduceRight` method
|
|
3898
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
3899
|
-
right: createMethod(true)
|
|
3900
|
-
};
|
|
3901
|
-
|
|
3902
|
-
var fails = fails$b;
|
|
3903
|
-
|
|
3904
|
-
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
3905
|
-
var method = [][METHOD_NAME];
|
|
3906
|
-
return !!method && fails(function () {
|
|
3907
|
-
// eslint-disable-next-line no-useless-call -- required for testing
|
|
3908
|
-
method.call(null, argument || function () { return 1; }, 1);
|
|
3909
|
-
});
|
|
3910
|
-
};
|
|
3911
|
-
|
|
3912
|
-
var $ = _export;
|
|
3913
|
-
var $reduce = arrayReduce.left;
|
|
3914
|
-
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
3915
|
-
var CHROME_VERSION = engineV8Version;
|
|
3916
|
-
var IS_NODE = engineIsNode;
|
|
3917
|
-
|
|
3918
|
-
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
3919
|
-
// Chrome 80-82 has a critical bug
|
|
3920
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
3921
|
-
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
3922
|
-
|
|
3923
|
-
// `Array.prototype.reduce` method
|
|
3924
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
3925
|
-
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
3926
|
-
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
3927
|
-
var length = arguments.length;
|
|
3928
|
-
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
3929
|
-
}
|
|
3930
|
-
});
|
|
3931
|
-
|
|
3932
3875
|
var Ninetailed =
|
|
3933
3876
|
/** @class */
|
|
3934
3877
|
function () {
|
|
@@ -3952,6 +3895,15 @@
|
|
|
3952
3895
|
return _this.instance.track(event, payload, _this.buildOptions(options));
|
|
3953
3896
|
};
|
|
3954
3897
|
|
|
3898
|
+
this.trackHasSeenComponent = function (payload) {
|
|
3899
|
+
return _this.track('hasSeenComponent', payload, {
|
|
3900
|
+
plugins: {
|
|
3901
|
+
all: true,
|
|
3902
|
+
ninetailed: false
|
|
3903
|
+
}
|
|
3904
|
+
});
|
|
3905
|
+
};
|
|
3906
|
+
|
|
3955
3907
|
this.identify = function (uid, traits, options) {
|
|
3956
3908
|
return _this.instance.identify(uid, traits, _this.buildOptions(options));
|
|
3957
3909
|
};
|
|
@@ -3975,7 +3927,7 @@
|
|
|
3975
3927
|
});
|
|
3976
3928
|
};
|
|
3977
3929
|
|
|
3978
|
-
this.plugins = plugins || [];
|
|
3930
|
+
this.plugins = flatten__default["default"](plugins || []);
|
|
3979
3931
|
this._profileState = {
|
|
3980
3932
|
loading: !profile,
|
|
3981
3933
|
profile: profile,
|
|
@@ -3984,26 +3936,14 @@
|
|
|
3984
3936
|
};
|
|
3985
3937
|
this.instance = Analytics__default["default"]({
|
|
3986
3938
|
app: 'ninetailed',
|
|
3987
|
-
plugins: [ninetailedPlugin({
|
|
3939
|
+
plugins: __spreadArray(__spreadArray([], this.plugins, true), [ninetailedPlugin({
|
|
3988
3940
|
clientId: clientId,
|
|
3989
3941
|
environment: environment,
|
|
3990
3942
|
url: url,
|
|
3991
3943
|
profile: profile,
|
|
3992
3944
|
locale: locale
|
|
3993
|
-
})]
|
|
3994
|
-
}); //
|
|
3995
|
-
// const additionalPlugins: AnalyticsPlugin[] = useMemo(() => {
|
|
3996
|
-
// const importedPlugins = [];
|
|
3997
|
-
// if (options.analyticsPlugins?.googleAnalytics) {
|
|
3998
|
-
// importedPlugins.push(
|
|
3999
|
-
// googleAnalytics({
|
|
4000
|
-
// trackingId: options.analyticsPlugins.googleAnalytics.trackingId,
|
|
4001
|
-
// })
|
|
4002
|
-
// );
|
|
4003
|
-
// }
|
|
4004
|
-
// return importedPlugins;
|
|
4005
|
-
// }, []);
|
|
4006
|
-
// put in private method
|
|
3945
|
+
})], false)
|
|
3946
|
+
}); // put in private method
|
|
4007
3947
|
|
|
4008
3948
|
this.onProfileChange(function (profileState) {
|
|
4009
3949
|
_this._profileState = profileState;
|
|
@@ -4024,20 +3964,7 @@
|
|
|
4024
3964
|
options = {};
|
|
4025
3965
|
}
|
|
4026
3966
|
|
|
4027
|
-
return __assign(
|
|
4028
|
-
plugins: __assign(__assign({
|
|
4029
|
-
all: false,
|
|
4030
|
-
ninetailed: true
|
|
4031
|
-
}, this.plugins.map(function (plugin) {
|
|
4032
|
-
return plugin;
|
|
4033
|
-
}).filter(function (plugin) {
|
|
4034
|
-
return includes__default["default"](plugin.name, 'ninetailed:');
|
|
4035
|
-
}).reduce(function (acc, curr) {
|
|
4036
|
-
var _a;
|
|
4037
|
-
|
|
4038
|
-
return __assign(__assign({}, acc), (_a = {}, _a[curr.name] = true, _a));
|
|
4039
|
-
}, {})), get__default["default"](options, 'plugins'))
|
|
4040
|
-
});
|
|
3967
|
+
return __assign({}, options);
|
|
4041
3968
|
};
|
|
4042
3969
|
|
|
4043
3970
|
Ninetailed.prototype.registerWindowHandlers = function () {
|
|
@@ -4045,6 +3972,7 @@
|
|
|
4045
3972
|
window.ninetailed = Object.assign({}, window.ninetailed, {
|
|
4046
3973
|
page: this.page.bind(this),
|
|
4047
3974
|
track: this.track.bind(this),
|
|
3975
|
+
trackHasSeenComponent: this.trackHasSeenComponent.bind(this),
|
|
4048
3976
|
identify: this.identify.bind(this),
|
|
4049
3977
|
reset: this.reset.bind(this),
|
|
4050
3978
|
debug: this.debug.bind(this)
|
|
@@ -4069,7 +3997,12 @@
|
|
|
4069
3997
|
if (loading) {
|
|
4070
3998
|
return {
|
|
4071
3999
|
loading: true,
|
|
4072
|
-
variant:
|
|
4000
|
+
variant: __assign({
|
|
4001
|
+
id: 'baseline',
|
|
4002
|
+
audience: {
|
|
4003
|
+
id: 'baseline'
|
|
4004
|
+
}
|
|
4005
|
+
}, baseline),
|
|
4073
4006
|
audience: {
|
|
4074
4007
|
id: 'baseline'
|
|
4075
4008
|
},
|
|
@@ -4081,7 +4014,12 @@
|
|
|
4081
4014
|
if (error) {
|
|
4082
4015
|
return {
|
|
4083
4016
|
loading: false,
|
|
4084
|
-
variant:
|
|
4017
|
+
variant: __assign({
|
|
4018
|
+
id: 'baseline',
|
|
4019
|
+
audience: {
|
|
4020
|
+
id: 'baseline'
|
|
4021
|
+
}
|
|
4022
|
+
}, baseline),
|
|
4085
4023
|
audience: {
|
|
4086
4024
|
id: 'baseline'
|
|
4087
4025
|
},
|
|
@@ -4100,7 +4038,12 @@
|
|
|
4100
4038
|
if (options.holdout > profile.random) {
|
|
4101
4039
|
return {
|
|
4102
4040
|
loading: false,
|
|
4103
|
-
variant:
|
|
4041
|
+
variant: __assign({
|
|
4042
|
+
id: 'baseline',
|
|
4043
|
+
audience: {
|
|
4044
|
+
id: 'baseline'
|
|
4045
|
+
}
|
|
4046
|
+
}, baseline),
|
|
4104
4047
|
audience: {
|
|
4105
4048
|
id: variant.audience.id
|
|
4106
4049
|
},
|
|
@@ -4126,7 +4069,12 @@
|
|
|
4126
4069
|
|
|
4127
4070
|
return {
|
|
4128
4071
|
loading: false,
|
|
4129
|
-
variant:
|
|
4072
|
+
variant: __assign({
|
|
4073
|
+
id: 'baseline',
|
|
4074
|
+
audience: {
|
|
4075
|
+
id: 'baseline'
|
|
4076
|
+
}
|
|
4077
|
+
}, baseline),
|
|
4130
4078
|
audience: {
|
|
4131
4079
|
id: 'baseline'
|
|
4132
4080
|
},
|