@archbee/app-widget 1.1.26 → 1.1.27
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.esm.js +265 -165
- package/package.json +1 -1
- package/src/lib/scripts/initScripts.d.ts +1 -1
- package/src/lib/types.d.ts +3 -2
package/index.esm.js
CHANGED
|
@@ -16,12 +16,13 @@ var global$b =
|
|
|
16
16
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
17
17
|
check(typeof self == 'object' && self) ||
|
|
18
18
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
19
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
19
20
|
// eslint-disable-next-line no-new-func -- fallback
|
|
20
|
-
(function () { return this; })() ||
|
|
21
|
+
(function () { return this; })() || Function('return this')();
|
|
21
22
|
|
|
22
23
|
var objectGetOwnPropertyDescriptor = {};
|
|
23
24
|
|
|
24
|
-
var fails$
|
|
25
|
+
var fails$d = function (exec) {
|
|
25
26
|
try {
|
|
26
27
|
return !!exec();
|
|
27
28
|
} catch (error) {
|
|
@@ -29,17 +30,17 @@ var fails$c = function (exec) {
|
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
|
|
32
|
-
var fails$
|
|
33
|
+
var fails$c = fails$d;
|
|
33
34
|
|
|
34
35
|
// Detect IE8's incomplete defineProperty implementation
|
|
35
|
-
var descriptors = !fails$
|
|
36
|
+
var descriptors = !fails$c(function () {
|
|
36
37
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
37
38
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
38
39
|
});
|
|
39
40
|
|
|
40
|
-
var fails$
|
|
41
|
+
var fails$b = fails$d;
|
|
41
42
|
|
|
42
|
-
var functionBindNative = !fails$
|
|
43
|
+
var functionBindNative = !fails$b(function () {
|
|
43
44
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
44
45
|
var test = (function () { /* empty */ }).bind();
|
|
45
46
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -58,15 +59,15 @@ var objectPropertyIsEnumerable = {};
|
|
|
58
59
|
|
|
59
60
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
60
61
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
61
|
-
var getOwnPropertyDescriptor$
|
|
62
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
62
63
|
|
|
63
64
|
// Nashorn ~ JDK8 bug
|
|
64
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
65
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
65
66
|
|
|
66
67
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
67
68
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
68
69
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
69
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
70
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
70
71
|
return !!descriptor && descriptor.enumerable;
|
|
71
72
|
} : $propertyIsEnumerable;
|
|
72
73
|
|
|
@@ -101,19 +102,19 @@ var classofRaw$1 = function (it) {
|
|
|
101
102
|
};
|
|
102
103
|
|
|
103
104
|
var uncurryThis$9 = functionUncurryThis;
|
|
104
|
-
var fails$
|
|
105
|
-
var classof$
|
|
105
|
+
var fails$a = fails$d;
|
|
106
|
+
var classof$4 = classofRaw$1;
|
|
106
107
|
|
|
107
108
|
var $Object$4 = Object;
|
|
108
109
|
var split = uncurryThis$9(''.split);
|
|
109
110
|
|
|
110
111
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
111
|
-
var indexedObject = fails$
|
|
112
|
+
var indexedObject = fails$a(function () {
|
|
112
113
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
113
114
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
114
115
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
115
116
|
}) ? function (it) {
|
|
116
|
-
return classof$
|
|
117
|
+
return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
117
118
|
} : $Object$4;
|
|
118
119
|
|
|
119
120
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -124,12 +125,12 @@ var isNullOrUndefined$2 = function (it) {
|
|
|
124
125
|
|
|
125
126
|
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
126
127
|
|
|
127
|
-
var $TypeError$
|
|
128
|
+
var $TypeError$8 = TypeError;
|
|
128
129
|
|
|
129
130
|
// `RequireObjectCoercible` abstract operation
|
|
130
131
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
131
132
|
var requireObjectCoercible$3 = function (it) {
|
|
132
|
-
if (isNullOrUndefined$1(it)) throw new $TypeError$
|
|
133
|
+
if (isNullOrUndefined$1(it)) throw new $TypeError$8("Can't call method on " + it);
|
|
133
134
|
return it;
|
|
134
135
|
};
|
|
135
136
|
|
|
@@ -141,37 +142,21 @@ var toIndexedObject$4 = function (it) {
|
|
|
141
142
|
return IndexedObject$1(requireObjectCoercible$2(it));
|
|
142
143
|
};
|
|
143
144
|
|
|
144
|
-
var documentAll$2 = typeof document == 'object' && document.all;
|
|
145
|
-
|
|
146
145
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
147
|
-
|
|
148
|
-
var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
|
|
149
|
-
|
|
150
|
-
var documentAll_1 = {
|
|
151
|
-
all: documentAll$2,
|
|
152
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
var $documentAll$1 = documentAll_1;
|
|
156
|
-
|
|
157
|
-
var documentAll$1 = $documentAll$1.all;
|
|
146
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
158
147
|
|
|
159
148
|
// `IsCallable` abstract operation
|
|
160
149
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
161
|
-
|
|
162
|
-
|
|
150
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
151
|
+
var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
152
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
163
153
|
} : function (argument) {
|
|
164
154
|
return typeof argument == 'function';
|
|
165
155
|
};
|
|
166
156
|
|
|
167
157
|
var isCallable$b = isCallable$c;
|
|
168
|
-
var $documentAll = documentAll_1;
|
|
169
158
|
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
173
|
-
return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
|
|
174
|
-
} : function (it) {
|
|
159
|
+
var isObject$7 = function (it) {
|
|
175
160
|
return typeof it == 'object' ? it !== null : isCallable$b(it);
|
|
176
161
|
};
|
|
177
162
|
|
|
@@ -222,13 +207,13 @@ var engineV8Version = version;
|
|
|
222
207
|
|
|
223
208
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
224
209
|
var V8_VERSION = engineV8Version;
|
|
225
|
-
var fails$
|
|
210
|
+
var fails$9 = fails$d;
|
|
226
211
|
var global$8 = global$b;
|
|
227
212
|
|
|
228
213
|
var $String$4 = global$8.String;
|
|
229
214
|
|
|
230
215
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
231
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
216
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
|
|
232
217
|
var symbol = Symbol('symbol detection');
|
|
233
218
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
234
219
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -273,12 +258,12 @@ var tryToString$1 = function (argument) {
|
|
|
273
258
|
var isCallable$8 = isCallable$c;
|
|
274
259
|
var tryToString = tryToString$1;
|
|
275
260
|
|
|
276
|
-
var $TypeError$
|
|
261
|
+
var $TypeError$7 = TypeError;
|
|
277
262
|
|
|
278
263
|
// `Assert: IsCallable(argument) is true`
|
|
279
264
|
var aCallable$1 = function (argument) {
|
|
280
265
|
if (isCallable$8(argument)) return argument;
|
|
281
|
-
throw new $TypeError$
|
|
266
|
+
throw new $TypeError$7(tryToString(argument) + ' is not a function');
|
|
282
267
|
};
|
|
283
268
|
|
|
284
269
|
var aCallable = aCallable$1;
|
|
@@ -295,7 +280,7 @@ var call$4 = functionCall;
|
|
|
295
280
|
var isCallable$7 = isCallable$c;
|
|
296
281
|
var isObject$6 = isObject$7;
|
|
297
282
|
|
|
298
|
-
var $TypeError$
|
|
283
|
+
var $TypeError$6 = TypeError;
|
|
299
284
|
|
|
300
285
|
// `OrdinaryToPrimitive` abstract operation
|
|
301
286
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -304,56 +289,56 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
304
289
|
if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$4(fn, input))) return val;
|
|
305
290
|
if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$4(fn, input))) return val;
|
|
306
291
|
if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$4(fn, input))) return val;
|
|
307
|
-
throw new $TypeError$
|
|
292
|
+
throw new $TypeError$6("Can't convert object to primitive value");
|
|
308
293
|
};
|
|
309
294
|
|
|
310
|
-
var
|
|
295
|
+
var sharedStore = {exports: {}};
|
|
311
296
|
|
|
312
297
|
var global$7 = global$b;
|
|
313
298
|
|
|
314
299
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
315
|
-
var defineProperty$
|
|
300
|
+
var defineProperty$4 = Object.defineProperty;
|
|
316
301
|
|
|
317
302
|
var defineGlobalProperty$3 = function (key, value) {
|
|
318
303
|
try {
|
|
319
|
-
defineProperty$
|
|
304
|
+
defineProperty$4(global$7, key, { value: value, configurable: true, writable: true });
|
|
320
305
|
} catch (error) {
|
|
321
306
|
global$7[key] = value;
|
|
322
307
|
} return value;
|
|
323
308
|
};
|
|
324
309
|
|
|
325
|
-
var
|
|
310
|
+
var globalThis$1 = global$b;
|
|
326
311
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
327
312
|
|
|
328
313
|
var SHARED = '__core-js_shared__';
|
|
329
|
-
var store$3 =
|
|
330
|
-
|
|
331
|
-
var sharedStore = store$3;
|
|
332
|
-
|
|
333
|
-
var store$2 = sharedStore;
|
|
314
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
334
315
|
|
|
335
|
-
(
|
|
336
|
-
|
|
337
|
-
})('versions', []).push({
|
|
338
|
-
version: '3.33.2',
|
|
316
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
317
|
+
version: '3.36.1',
|
|
339
318
|
mode: 'global',
|
|
340
|
-
copyright: '© 2014-
|
|
341
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
319
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
320
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
342
321
|
source: 'https://github.com/zloirock/core-js'
|
|
343
322
|
});
|
|
344
323
|
|
|
324
|
+
var store$2 = sharedStore.exports;
|
|
325
|
+
|
|
326
|
+
var shared$3 = function (key, value) {
|
|
327
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
328
|
+
};
|
|
329
|
+
|
|
345
330
|
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
346
331
|
|
|
347
332
|
var $Object$2 = Object;
|
|
348
333
|
|
|
349
334
|
// `ToObject` abstract operation
|
|
350
335
|
// https://tc39.es/ecma262/#sec-toobject
|
|
351
|
-
var toObject$
|
|
336
|
+
var toObject$4 = function (argument) {
|
|
352
337
|
return $Object$2(requireObjectCoercible$1(argument));
|
|
353
338
|
};
|
|
354
339
|
|
|
355
340
|
var uncurryThis$7 = functionUncurryThis;
|
|
356
|
-
var toObject$
|
|
341
|
+
var toObject$3 = toObject$4;
|
|
357
342
|
|
|
358
343
|
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
359
344
|
|
|
@@ -361,7 +346,7 @@ var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
|
361
346
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
362
347
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
363
348
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
364
|
-
return hasOwnProperty(toObject$
|
|
349
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
365
350
|
};
|
|
366
351
|
|
|
367
352
|
var uncurryThis$6 = functionUncurryThis;
|
|
@@ -374,20 +359,20 @@ var uid$2 = function (key) {
|
|
|
374
359
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
|
375
360
|
};
|
|
376
361
|
|
|
377
|
-
var global$
|
|
378
|
-
var shared$2 = shared$3
|
|
379
|
-
var hasOwn$
|
|
362
|
+
var global$6 = global$b;
|
|
363
|
+
var shared$2 = shared$3;
|
|
364
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
380
365
|
var uid$1 = uid$2;
|
|
381
366
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
382
367
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
383
368
|
|
|
384
|
-
var Symbol$1 = global$
|
|
369
|
+
var Symbol$1 = global$6.Symbol;
|
|
385
370
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
386
371
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
387
372
|
|
|
388
|
-
var wellKnownSymbol$
|
|
389
|
-
if (!hasOwn$
|
|
390
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
373
|
+
var wellKnownSymbol$7 = function (name) {
|
|
374
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
|
375
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
|
|
391
376
|
? Symbol$1[name]
|
|
392
377
|
: createWellKnownSymbol('Symbol.' + name);
|
|
393
378
|
} return WellKnownSymbolsStore[name];
|
|
@@ -398,10 +383,10 @@ var isObject$5 = isObject$7;
|
|
|
398
383
|
var isSymbol$1 = isSymbol$2;
|
|
399
384
|
var getMethod = getMethod$1;
|
|
400
385
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
401
|
-
var wellKnownSymbol$
|
|
386
|
+
var wellKnownSymbol$6 = wellKnownSymbol$7;
|
|
402
387
|
|
|
403
|
-
var $TypeError$
|
|
404
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
388
|
+
var $TypeError$5 = TypeError;
|
|
389
|
+
var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
|
|
405
390
|
|
|
406
391
|
// `ToPrimitive` abstract operation
|
|
407
392
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
@@ -413,7 +398,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
413
398
|
if (pref === undefined) pref = 'default';
|
|
414
399
|
result = call$3(exoticToPrim, input, pref);
|
|
415
400
|
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
416
|
-
throw new $TypeError$
|
|
401
|
+
throw new $TypeError$5("Can't convert object to primitive value");
|
|
417
402
|
}
|
|
418
403
|
if (pref === undefined) pref = 'number';
|
|
419
404
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -429,10 +414,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
429
414
|
return isSymbol(key) ? key : key + '';
|
|
430
415
|
};
|
|
431
416
|
|
|
432
|
-
var global$
|
|
417
|
+
var global$5 = global$b;
|
|
433
418
|
var isObject$4 = isObject$7;
|
|
434
419
|
|
|
435
|
-
var document$1 = global$
|
|
420
|
+
var document$1 = global$5.document;
|
|
436
421
|
// typeof document.createElement is 'object' in old IE
|
|
437
422
|
var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
438
423
|
|
|
@@ -440,25 +425,25 @@ var documentCreateElement$1 = function (it) {
|
|
|
440
425
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
441
426
|
};
|
|
442
427
|
|
|
443
|
-
var DESCRIPTORS$
|
|
444
|
-
var fails$
|
|
428
|
+
var DESCRIPTORS$9 = descriptors;
|
|
429
|
+
var fails$8 = fails$d;
|
|
445
430
|
var createElement = documentCreateElement$1;
|
|
446
431
|
|
|
447
432
|
// Thanks to IE8 for its funny defineProperty
|
|
448
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
433
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$8(function () {
|
|
449
434
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
450
435
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
451
436
|
get: function () { return 7; }
|
|
452
437
|
}).a !== 7;
|
|
453
438
|
});
|
|
454
439
|
|
|
455
|
-
var DESCRIPTORS$
|
|
440
|
+
var DESCRIPTORS$8 = descriptors;
|
|
456
441
|
var call$2 = functionCall;
|
|
457
442
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
458
443
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
459
444
|
var toIndexedObject$3 = toIndexedObject$4;
|
|
460
445
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
461
|
-
var hasOwn$
|
|
446
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
462
447
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
463
448
|
|
|
464
449
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -466,23 +451,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
466
451
|
|
|
467
452
|
// `Object.getOwnPropertyDescriptor` method
|
|
468
453
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
469
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
454
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
470
455
|
O = toIndexedObject$3(O);
|
|
471
456
|
P = toPropertyKey$1(P);
|
|
472
457
|
if (IE8_DOM_DEFINE$1) try {
|
|
473
458
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
474
459
|
} catch (error) { /* empty */ }
|
|
475
|
-
if (hasOwn$
|
|
460
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
476
461
|
};
|
|
477
462
|
|
|
478
463
|
var objectDefineProperty = {};
|
|
479
464
|
|
|
480
|
-
var DESCRIPTORS$
|
|
481
|
-
var fails$
|
|
465
|
+
var DESCRIPTORS$7 = descriptors;
|
|
466
|
+
var fails$7 = fails$d;
|
|
482
467
|
|
|
483
468
|
// V8 ~ Chrome 36-
|
|
484
469
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
485
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
470
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$7(function () {
|
|
486
471
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
487
472
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
488
473
|
value: 42,
|
|
@@ -493,21 +478,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$6(function () {
|
|
|
493
478
|
var isObject$3 = isObject$7;
|
|
494
479
|
|
|
495
480
|
var $String$2 = String;
|
|
496
|
-
var $TypeError$
|
|
481
|
+
var $TypeError$4 = TypeError;
|
|
497
482
|
|
|
498
483
|
// `Assert: Type(argument) is Object`
|
|
499
484
|
var anObject$5 = function (argument) {
|
|
500
485
|
if (isObject$3(argument)) return argument;
|
|
501
|
-
throw new $TypeError$
|
|
486
|
+
throw new $TypeError$4($String$2(argument) + ' is not an object');
|
|
502
487
|
};
|
|
503
488
|
|
|
504
|
-
var DESCRIPTORS$
|
|
489
|
+
var DESCRIPTORS$6 = descriptors;
|
|
505
490
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
506
491
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
507
492
|
var anObject$4 = anObject$5;
|
|
508
493
|
var toPropertyKey = toPropertyKey$2;
|
|
509
494
|
|
|
510
|
-
var $TypeError$
|
|
495
|
+
var $TypeError$3 = TypeError;
|
|
511
496
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
512
497
|
var $defineProperty = Object.defineProperty;
|
|
513
498
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -518,7 +503,7 @@ var WRITABLE = 'writable';
|
|
|
518
503
|
|
|
519
504
|
// `Object.defineProperty` method
|
|
520
505
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
521
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
506
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
522
507
|
anObject$4(O);
|
|
523
508
|
P = toPropertyKey(P);
|
|
524
509
|
anObject$4(Attributes);
|
|
@@ -540,16 +525,16 @@ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
540
525
|
if (IE8_DOM_DEFINE) try {
|
|
541
526
|
return $defineProperty(O, P, Attributes);
|
|
542
527
|
} catch (error) { /* empty */ }
|
|
543
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
528
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$3('Accessors not supported');
|
|
544
529
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
545
530
|
return O;
|
|
546
531
|
};
|
|
547
532
|
|
|
548
|
-
var DESCRIPTORS$
|
|
533
|
+
var DESCRIPTORS$5 = descriptors;
|
|
549
534
|
var definePropertyModule$4 = objectDefineProperty;
|
|
550
535
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
551
536
|
|
|
552
|
-
var createNonEnumerableProperty$2 = DESCRIPTORS$
|
|
537
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
553
538
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
554
539
|
} : function (object, key, value) {
|
|
555
540
|
object[key] = value;
|
|
@@ -558,17 +543,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value
|
|
|
558
543
|
|
|
559
544
|
var makeBuiltIn$2 = {exports: {}};
|
|
560
545
|
|
|
561
|
-
var DESCRIPTORS$
|
|
562
|
-
var hasOwn$
|
|
546
|
+
var DESCRIPTORS$4 = descriptors;
|
|
547
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
563
548
|
|
|
564
549
|
var FunctionPrototype = Function.prototype;
|
|
565
550
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
566
|
-
var getDescriptor = DESCRIPTORS$
|
|
551
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
567
552
|
|
|
568
|
-
var EXISTS = hasOwn$
|
|
553
|
+
var EXISTS = hasOwn$7(FunctionPrototype, 'name');
|
|
569
554
|
// additional protection from minified / mangled / dropped function names
|
|
570
555
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
571
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
556
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
572
557
|
|
|
573
558
|
var functionName = {
|
|
574
559
|
EXISTS: EXISTS,
|
|
@@ -578,7 +563,7 @@ var functionName = {
|
|
|
578
563
|
|
|
579
564
|
var uncurryThis$5 = functionUncurryThis;
|
|
580
565
|
var isCallable$6 = isCallable$c;
|
|
581
|
-
var store$1 = sharedStore;
|
|
566
|
+
var store$1 = sharedStore.exports;
|
|
582
567
|
|
|
583
568
|
var functionToString = uncurryThis$5(Function.toString);
|
|
584
569
|
|
|
@@ -591,14 +576,14 @@ if (!isCallable$6(store$1.inspectSource)) {
|
|
|
591
576
|
|
|
592
577
|
var inspectSource$1 = store$1.inspectSource;
|
|
593
578
|
|
|
594
|
-
var global$
|
|
579
|
+
var global$4 = global$b;
|
|
595
580
|
var isCallable$5 = isCallable$c;
|
|
596
581
|
|
|
597
|
-
var WeakMap$1 = global$
|
|
582
|
+
var WeakMap$1 = global$4.WeakMap;
|
|
598
583
|
|
|
599
584
|
var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
600
585
|
|
|
601
|
-
var shared$1 = shared$3
|
|
586
|
+
var shared$1 = shared$3;
|
|
602
587
|
var uid = uid$2;
|
|
603
588
|
|
|
604
589
|
var keys = shared$1('keys');
|
|
@@ -610,17 +595,17 @@ var sharedKey$3 = function (key) {
|
|
|
610
595
|
var hiddenKeys$4 = {};
|
|
611
596
|
|
|
612
597
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
613
|
-
var global$
|
|
598
|
+
var global$3 = global$b;
|
|
614
599
|
var isObject$2 = isObject$7;
|
|
615
600
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
616
|
-
var hasOwn$
|
|
617
|
-
var shared = sharedStore;
|
|
601
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
602
|
+
var shared = sharedStore.exports;
|
|
618
603
|
var sharedKey$2 = sharedKey$3;
|
|
619
604
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
620
605
|
|
|
621
606
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
622
|
-
var TypeError$1 = global$
|
|
623
|
-
var WeakMap = global$
|
|
607
|
+
var TypeError$1 = global$3.TypeError;
|
|
608
|
+
var WeakMap = global$3.WeakMap;
|
|
624
609
|
var set$1, get, has;
|
|
625
610
|
|
|
626
611
|
var enforce = function (it) {
|
|
@@ -659,16 +644,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
659
644
|
var STATE = sharedKey$2('state');
|
|
660
645
|
hiddenKeys$3[STATE] = true;
|
|
661
646
|
set$1 = function (it, metadata) {
|
|
662
|
-
if (hasOwn$
|
|
647
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
663
648
|
metadata.facade = it;
|
|
664
649
|
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
665
650
|
return metadata;
|
|
666
651
|
};
|
|
667
652
|
get = function (it) {
|
|
668
|
-
return hasOwn$
|
|
653
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
669
654
|
};
|
|
670
655
|
has = function (it) {
|
|
671
|
-
return hasOwn$
|
|
656
|
+
return hasOwn$6(it, STATE);
|
|
672
657
|
};
|
|
673
658
|
}
|
|
674
659
|
|
|
@@ -681,10 +666,10 @@ var internalState = {
|
|
|
681
666
|
};
|
|
682
667
|
|
|
683
668
|
var uncurryThis$4 = functionUncurryThis;
|
|
684
|
-
var fails$
|
|
669
|
+
var fails$6 = fails$d;
|
|
685
670
|
var isCallable$4 = isCallable$c;
|
|
686
|
-
var hasOwn$
|
|
687
|
-
var DESCRIPTORS$
|
|
671
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
672
|
+
var DESCRIPTORS$3 = descriptors;
|
|
688
673
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
689
674
|
var inspectSource = inspectSource$1;
|
|
690
675
|
var InternalStateModule = internalState;
|
|
@@ -693,38 +678,38 @@ var enforceInternalState = InternalStateModule.enforce;
|
|
|
693
678
|
var getInternalState = InternalStateModule.get;
|
|
694
679
|
var $String$1 = String;
|
|
695
680
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
696
|
-
var defineProperty$
|
|
681
|
+
var defineProperty$3 = Object.defineProperty;
|
|
697
682
|
var stringSlice = uncurryThis$4(''.slice);
|
|
698
683
|
var replace = uncurryThis$4(''.replace);
|
|
699
684
|
var join = uncurryThis$4([].join);
|
|
700
685
|
|
|
701
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
702
|
-
return defineProperty$
|
|
686
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$6(function () {
|
|
687
|
+
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
703
688
|
});
|
|
704
689
|
|
|
705
690
|
var TEMPLATE = String(String).split('String');
|
|
706
691
|
|
|
707
692
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
708
693
|
if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
|
|
709
|
-
name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)
|
|
694
|
+
name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
710
695
|
}
|
|
711
696
|
if (options && options.getter) name = 'get ' + name;
|
|
712
697
|
if (options && options.setter) name = 'set ' + name;
|
|
713
|
-
if (!hasOwn$
|
|
714
|
-
if (DESCRIPTORS$
|
|
698
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
699
|
+
if (DESCRIPTORS$3) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
715
700
|
else value.name = name;
|
|
716
701
|
}
|
|
717
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
718
|
-
defineProperty$
|
|
702
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
703
|
+
defineProperty$3(value, 'length', { value: options.arity });
|
|
719
704
|
}
|
|
720
705
|
try {
|
|
721
|
-
if (options && hasOwn$
|
|
722
|
-
if (DESCRIPTORS$
|
|
706
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
707
|
+
if (DESCRIPTORS$3) defineProperty$3(value, 'prototype', { writable: false });
|
|
723
708
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
724
709
|
} else if (value.prototype) value.prototype = undefined;
|
|
725
710
|
} catch (error) { /* empty */ }
|
|
726
711
|
var state = enforceInternalState(value);
|
|
727
|
-
if (!hasOwn$
|
|
712
|
+
if (!hasOwn$5(state, 'source')) {
|
|
728
713
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
729
714
|
} return value;
|
|
730
715
|
};
|
|
@@ -806,26 +791,28 @@ var min = Math.min;
|
|
|
806
791
|
// `ToLength` abstract operation
|
|
807
792
|
// https://tc39.es/ecma262/#sec-tolength
|
|
808
793
|
var toLength$1 = function (argument) {
|
|
809
|
-
|
|
794
|
+
var len = toIntegerOrInfinity(argument);
|
|
795
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
810
796
|
};
|
|
811
797
|
|
|
812
798
|
var toLength = toLength$1;
|
|
813
799
|
|
|
814
800
|
// `LengthOfArrayLike` abstract operation
|
|
815
801
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
816
|
-
var lengthOfArrayLike$
|
|
802
|
+
var lengthOfArrayLike$2 = function (obj) {
|
|
817
803
|
return toLength(obj.length);
|
|
818
804
|
};
|
|
819
805
|
|
|
820
806
|
var toIndexedObject$2 = toIndexedObject$4;
|
|
821
807
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
822
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
808
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
823
809
|
|
|
824
810
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
825
811
|
var createMethod = function (IS_INCLUDES) {
|
|
826
812
|
return function ($this, el, fromIndex) {
|
|
827
813
|
var O = toIndexedObject$2($this);
|
|
828
|
-
var length = lengthOfArrayLike(O);
|
|
814
|
+
var length = lengthOfArrayLike$1(O);
|
|
815
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
829
816
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
830
817
|
var value;
|
|
831
818
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -851,7 +838,7 @@ var arrayIncludes = {
|
|
|
851
838
|
};
|
|
852
839
|
|
|
853
840
|
var uncurryThis$3 = functionUncurryThis;
|
|
854
|
-
var hasOwn$
|
|
841
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
855
842
|
var toIndexedObject$1 = toIndexedObject$4;
|
|
856
843
|
var indexOf = arrayIncludes.indexOf;
|
|
857
844
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -863,9 +850,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
863
850
|
var i = 0;
|
|
864
851
|
var result = [];
|
|
865
852
|
var key;
|
|
866
|
-
for (key in O) !hasOwn$
|
|
853
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
|
|
867
854
|
// Don't enum bug & hidden keys
|
|
868
|
-
while (names.length > i) if (hasOwn$
|
|
855
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
869
856
|
~indexOf(result, key) || push(result, key);
|
|
870
857
|
}
|
|
871
858
|
return result;
|
|
@@ -914,7 +901,7 @@ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
914
901
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
915
902
|
};
|
|
916
903
|
|
|
917
|
-
var hasOwn$
|
|
904
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
918
905
|
var ownKeys = ownKeys$1;
|
|
919
906
|
var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
|
|
920
907
|
var definePropertyModule$2 = objectDefineProperty;
|
|
@@ -925,13 +912,13 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
925
912
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
|
|
926
913
|
for (var i = 0; i < keys.length; i++) {
|
|
927
914
|
var key = keys[i];
|
|
928
|
-
if (!hasOwn$
|
|
915
|
+
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
|
929
916
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
930
917
|
}
|
|
931
918
|
}
|
|
932
919
|
};
|
|
933
920
|
|
|
934
|
-
var fails$
|
|
921
|
+
var fails$5 = fails$d;
|
|
935
922
|
var isCallable$2 = isCallable$c;
|
|
936
923
|
|
|
937
924
|
var replacement = /#|\.prototype\./;
|
|
@@ -940,7 +927,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
940
927
|
var value = data[normalize(feature)];
|
|
941
928
|
return value === POLYFILL ? true
|
|
942
929
|
: value === NATIVE ? false
|
|
943
|
-
: isCallable$2(detection) ? fails$
|
|
930
|
+
: isCallable$2(detection) ? fails$5(detection)
|
|
944
931
|
: !!detection;
|
|
945
932
|
};
|
|
946
933
|
|
|
@@ -954,8 +941,8 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
954
941
|
|
|
955
942
|
var isForced_1 = isForced$1;
|
|
956
943
|
|
|
957
|
-
var global$
|
|
958
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
944
|
+
var global$2 = global$b;
|
|
945
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
959
946
|
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
960
947
|
var defineBuiltIn = defineBuiltIn$1;
|
|
961
948
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
@@ -983,16 +970,16 @@ var _export = function (options, source) {
|
|
|
983
970
|
var STATIC = options.stat;
|
|
984
971
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
985
972
|
if (GLOBAL) {
|
|
986
|
-
target = global$
|
|
973
|
+
target = global$2;
|
|
987
974
|
} else if (STATIC) {
|
|
988
|
-
target = global$
|
|
975
|
+
target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
|
|
989
976
|
} else {
|
|
990
|
-
target =
|
|
977
|
+
target = global$2[TARGET] && global$2[TARGET].prototype;
|
|
991
978
|
}
|
|
992
979
|
if (target) for (key in source) {
|
|
993
980
|
sourceProperty = source[key];
|
|
994
981
|
if (options.dontCallGetSet) {
|
|
995
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
982
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
996
983
|
targetProperty = descriptor && descriptor.value;
|
|
997
984
|
} else targetProperty = target[key];
|
|
998
985
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
@@ -1009,6 +996,92 @@ var _export = function (options, source) {
|
|
|
1009
996
|
}
|
|
1010
997
|
};
|
|
1011
998
|
|
|
999
|
+
var classof$3 = classofRaw$1;
|
|
1000
|
+
|
|
1001
|
+
// `IsArray` abstract operation
|
|
1002
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
1003
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
1004
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
1005
|
+
return classof$3(argument) === 'Array';
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1009
|
+
var isArray = isArray$1;
|
|
1010
|
+
|
|
1011
|
+
var $TypeError$2 = TypeError;
|
|
1012
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1013
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1014
|
+
|
|
1015
|
+
// Safari < 13 does not throw an error in this case
|
|
1016
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$2 && !function () {
|
|
1017
|
+
// makes no sense without proper strict mode support
|
|
1018
|
+
if (this !== undefined) return true;
|
|
1019
|
+
try {
|
|
1020
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1021
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
1022
|
+
} catch (error) {
|
|
1023
|
+
return error instanceof TypeError;
|
|
1024
|
+
}
|
|
1025
|
+
}();
|
|
1026
|
+
|
|
1027
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
1028
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
1029
|
+
throw new $TypeError$2('Cannot set read only .length');
|
|
1030
|
+
} return O.length = length;
|
|
1031
|
+
} : function (O, length) {
|
|
1032
|
+
return O.length = length;
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
var $TypeError$1 = TypeError;
|
|
1036
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
1037
|
+
|
|
1038
|
+
var doesNotExceedSafeInteger$1 = function (it) {
|
|
1039
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
|
|
1040
|
+
return it;
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
var $$5 = _export;
|
|
1044
|
+
var toObject$2 = toObject$4;
|
|
1045
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1046
|
+
var setArrayLength = arraySetLength;
|
|
1047
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
1048
|
+
var fails$4 = fails$d;
|
|
1049
|
+
|
|
1050
|
+
var INCORRECT_TO_LENGTH = fails$4(function () {
|
|
1051
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
1052
|
+
});
|
|
1053
|
+
|
|
1054
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
1055
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
1056
|
+
var properErrorOnNonWritableLength = function () {
|
|
1057
|
+
try {
|
|
1058
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1059
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
1060
|
+
} catch (error) {
|
|
1061
|
+
return error instanceof TypeError;
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
1066
|
+
|
|
1067
|
+
// `Array.prototype.push` method
|
|
1068
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
1069
|
+
$$5({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
1070
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
1071
|
+
push: function push(item) {
|
|
1072
|
+
var O = toObject$2(this);
|
|
1073
|
+
var len = lengthOfArrayLike(O);
|
|
1074
|
+
var argCount = arguments.length;
|
|
1075
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
1076
|
+
for (var i = 0; i < argCount; i++) {
|
|
1077
|
+
O[len] = arguments[i];
|
|
1078
|
+
len++;
|
|
1079
|
+
}
|
|
1080
|
+
setArrayLength(O, len);
|
|
1081
|
+
return len;
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
|
|
1012
1085
|
var internalObjectKeys = objectKeysInternal;
|
|
1013
1086
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
1014
1087
|
|
|
@@ -1022,27 +1095,27 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1022
1095
|
var DESCRIPTORS$1 = descriptors;
|
|
1023
1096
|
var uncurryThis$1 = functionUncurryThis;
|
|
1024
1097
|
var call$1 = functionCall;
|
|
1025
|
-
var fails$3 = fails$
|
|
1098
|
+
var fails$3 = fails$d;
|
|
1026
1099
|
var objectKeys$1 = objectKeys$2;
|
|
1027
1100
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1028
1101
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1029
|
-
var toObject$1 = toObject$
|
|
1102
|
+
var toObject$1 = toObject$4;
|
|
1030
1103
|
var IndexedObject = indexedObject;
|
|
1031
1104
|
|
|
1032
1105
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1033
1106
|
var $assign = Object.assign;
|
|
1034
1107
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1035
|
-
var defineProperty$
|
|
1108
|
+
var defineProperty$2 = Object.defineProperty;
|
|
1036
1109
|
var concat = uncurryThis$1([].concat);
|
|
1037
1110
|
|
|
1038
1111
|
// `Object.assign` method
|
|
1039
1112
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1040
1113
|
var objectAssign = !$assign || fails$3(function () {
|
|
1041
1114
|
// should have correct order of operations (Edge bug)
|
|
1042
|
-
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$
|
|
1115
|
+
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
1043
1116
|
enumerable: true,
|
|
1044
1117
|
get: function () {
|
|
1045
|
-
defineProperty$
|
|
1118
|
+
defineProperty$2(this, 'b', {
|
|
1046
1119
|
value: 3,
|
|
1047
1120
|
enumerable: false
|
|
1048
1121
|
});
|
|
@@ -1076,13 +1149,13 @@ var objectAssign = !$assign || fails$3(function () {
|
|
|
1076
1149
|
} return T;
|
|
1077
1150
|
} : $assign;
|
|
1078
1151
|
|
|
1079
|
-
var $$
|
|
1152
|
+
var $$4 = _export;
|
|
1080
1153
|
var assign = objectAssign;
|
|
1081
1154
|
|
|
1082
1155
|
// `Object.assign` method
|
|
1083
1156
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1084
1157
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1085
|
-
$$
|
|
1158
|
+
$$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1086
1159
|
assign: assign
|
|
1087
1160
|
});
|
|
1088
1161
|
|
|
@@ -1122,9 +1195,9 @@ const initScripts = () => {
|
|
|
1122
1195
|
var _a;
|
|
1123
1196
|
const widgetcsslink = document.createElement('link');
|
|
1124
1197
|
const link = document.getElementsByTagName('link')[0];
|
|
1125
|
-
const
|
|
1198
|
+
const mainUrl = "https://widget.archbee.com/v1";
|
|
1126
1199
|
widgetcsslink['rel'] = 'stylesheet';
|
|
1127
|
-
widgetcsslink['href'] = `${
|
|
1200
|
+
widgetcsslink['href'] = `${mainUrl}/main.css`;
|
|
1128
1201
|
if (!link) {
|
|
1129
1202
|
document.getElementsByTagName('head')[0].append(widgetcsslink);
|
|
1130
1203
|
}
|
|
@@ -1139,7 +1212,7 @@ const initJsScripts = loadingStrategy => {
|
|
|
1139
1212
|
const script = document.getElementsByTagName('script')[0];
|
|
1140
1213
|
(_a = script === null || script === void 0 ? void 0 : script.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(scripttag, script);
|
|
1141
1214
|
};
|
|
1142
|
-
const createArchbeeWidget = (spaceId, jwt, shareableToken, loadingStrategy = 'lazy', bubble = 'invisible', anchor) => {
|
|
1215
|
+
const createArchbeeWidget = (spaceId, jwt, shareableToken, loadingStrategy = 'lazy', bubble = 'invisible', bubblePlaceholder, anchor) => {
|
|
1143
1216
|
if (!window._archbee) {
|
|
1144
1217
|
window._archbee = window._archbee || {
|
|
1145
1218
|
queue: [],
|
|
@@ -1153,6 +1226,7 @@ const createArchbeeWidget = (spaceId, jwt, shareableToken, loadingStrategy = 'la
|
|
|
1153
1226
|
jwt,
|
|
1154
1227
|
shareableToken,
|
|
1155
1228
|
bubble,
|
|
1229
|
+
bubblePlaceholder,
|
|
1156
1230
|
anchor
|
|
1157
1231
|
});
|
|
1158
1232
|
initJsScripts(loadingStrategy);
|
|
@@ -1160,13 +1234,36 @@ const createArchbeeWidget = (spaceId, jwt, shareableToken, loadingStrategy = 'la
|
|
|
1160
1234
|
return window._archbee;
|
|
1161
1235
|
};
|
|
1162
1236
|
|
|
1237
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1238
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1239
|
+
var wellKnownSymbol$5 = wellKnownSymbol$7;
|
|
1240
|
+
|
|
1241
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$5('toStringTag');
|
|
1242
|
+
|
|
1243
|
+
var setToStringTag$1 = function (target, TAG, STATIC) {
|
|
1244
|
+
if (target && !STATIC) target = target.prototype;
|
|
1245
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
|
|
1246
|
+
defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
var $$3 = _export;
|
|
1251
|
+
var global$1 = global$b;
|
|
1252
|
+
var setToStringTag = setToStringTag$1;
|
|
1253
|
+
|
|
1254
|
+
$$3({ global: true }, { Reflect: {} });
|
|
1255
|
+
|
|
1256
|
+
// Reflect[@@toStringTag] property
|
|
1257
|
+
// https://tc39.es/ecma262/#sec-reflect-@@tostringtag
|
|
1258
|
+
setToStringTag(global$1.Reflect, 'Reflect', true);
|
|
1259
|
+
|
|
1163
1260
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1164
1261
|
|
|
1165
1262
|
var isDataDescriptor$1 = function (descriptor) {
|
|
1166
1263
|
return descriptor !== undefined && (hasOwn$1(descriptor, 'value') || hasOwn$1(descriptor, 'writable'));
|
|
1167
1264
|
};
|
|
1168
1265
|
|
|
1169
|
-
var fails$2 = fails$
|
|
1266
|
+
var fails$2 = fails$d;
|
|
1170
1267
|
|
|
1171
1268
|
var correctPrototypeGetter = !fails$2(function () {
|
|
1172
1269
|
function F() { /* empty */ }
|
|
@@ -1177,7 +1274,7 @@ var correctPrototypeGetter = !fails$2(function () {
|
|
|
1177
1274
|
|
|
1178
1275
|
var hasOwn = hasOwnProperty_1;
|
|
1179
1276
|
var isCallable$1 = isCallable$c;
|
|
1180
|
-
var toObject = toObject$
|
|
1277
|
+
var toObject = toObject$4;
|
|
1181
1278
|
var sharedKey$1 = sharedKey$3;
|
|
1182
1279
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1183
1280
|
|
|
@@ -1202,7 +1299,7 @@ var call = functionCall;
|
|
|
1202
1299
|
var anObject$2 = anObject$5;
|
|
1203
1300
|
var isObject$1 = isObject$7;
|
|
1204
1301
|
var isDataDescriptor = isDataDescriptor$1;
|
|
1205
|
-
var fails$1 = fails$
|
|
1302
|
+
var fails$1 = fails$d;
|
|
1206
1303
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1207
1304
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1208
1305
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
@@ -1358,7 +1455,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1358
1455
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1359
1456
|
};
|
|
1360
1457
|
|
|
1361
|
-
var wellKnownSymbol$4 = wellKnownSymbol$
|
|
1458
|
+
var wellKnownSymbol$4 = wellKnownSymbol$7;
|
|
1362
1459
|
var create = objectCreate;
|
|
1363
1460
|
var defineProperty = objectDefineProperty.f;
|
|
1364
1461
|
|
|
@@ -1381,7 +1478,7 @@ var addToUnscopables$1 = function (key) {
|
|
|
1381
1478
|
|
|
1382
1479
|
var $$1 = _export;
|
|
1383
1480
|
var $includes = arrayIncludes.includes;
|
|
1384
|
-
var fails = fails$
|
|
1481
|
+
var fails = fails$d;
|
|
1385
1482
|
var addToUnscopables = addToUnscopables$1;
|
|
1386
1483
|
|
|
1387
1484
|
// FF99+ bug
|
|
@@ -1403,7 +1500,7 @@ addToUnscopables('includes');
|
|
|
1403
1500
|
|
|
1404
1501
|
var isObject = isObject$7;
|
|
1405
1502
|
var classof$2 = classofRaw$1;
|
|
1406
|
-
var wellKnownSymbol$3 = wellKnownSymbol$
|
|
1503
|
+
var wellKnownSymbol$3 = wellKnownSymbol$7;
|
|
1407
1504
|
|
|
1408
1505
|
var MATCH$1 = wellKnownSymbol$3('match');
|
|
1409
1506
|
|
|
@@ -1424,7 +1521,7 @@ var notARegexp = function (it) {
|
|
|
1424
1521
|
} return it;
|
|
1425
1522
|
};
|
|
1426
1523
|
|
|
1427
|
-
var wellKnownSymbol$2 = wellKnownSymbol$
|
|
1524
|
+
var wellKnownSymbol$2 = wellKnownSymbol$7;
|
|
1428
1525
|
|
|
1429
1526
|
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
1430
1527
|
var test = {};
|
|
@@ -1436,7 +1533,7 @@ var toStringTagSupport = String(test) === '[object z]';
|
|
|
1436
1533
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1437
1534
|
var isCallable = isCallable$c;
|
|
1438
1535
|
var classofRaw = classofRaw$1;
|
|
1439
|
-
var wellKnownSymbol$1 = wellKnownSymbol$
|
|
1536
|
+
var wellKnownSymbol$1 = wellKnownSymbol$7;
|
|
1440
1537
|
|
|
1441
1538
|
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
1442
1539
|
var $Object = Object;
|
|
@@ -1472,7 +1569,7 @@ var toString$1 = function (argument) {
|
|
|
1472
1569
|
return $String(argument);
|
|
1473
1570
|
};
|
|
1474
1571
|
|
|
1475
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
1572
|
+
var wellKnownSymbol = wellKnownSymbol$7;
|
|
1476
1573
|
|
|
1477
1574
|
var MATCH = wellKnownSymbol('match');
|
|
1478
1575
|
|
|
@@ -1550,17 +1647,19 @@ const loadWidget = (widg, render) => {
|
|
|
1550
1647
|
}
|
|
1551
1648
|
};
|
|
1552
1649
|
const createContainer = () => {
|
|
1553
|
-
var _a
|
|
1650
|
+
var _a;
|
|
1554
1651
|
if (document.getElementsByClassName('ab-widget').length) return;
|
|
1652
|
+
const widget = (_a = window._archbee) === null || _a === void 0 ? void 0 : _a.widget;
|
|
1555
1653
|
const abDiv = document.createElement('div');
|
|
1556
|
-
abDiv.style.cssText =
|
|
1654
|
+
abDiv.style.cssText = `visibility:hidden;${widget.bubble === 'ask' ? '' : 'z-index:-2147483001;'}`;
|
|
1557
1655
|
abDiv.className = `ab-widget ab-id-${Date.now()}`;
|
|
1558
|
-
if (!(
|
|
1656
|
+
if (!(widget === null || widget === void 0 ? void 0 : widget.anchor)) {
|
|
1559
1657
|
document.body.appendChild(abDiv);
|
|
1560
1658
|
return;
|
|
1561
1659
|
}
|
|
1562
|
-
const anchor = document.querySelector(
|
|
1660
|
+
const anchor = document.querySelector(widget === null || widget === void 0 ? void 0 : widget.anchor);
|
|
1563
1661
|
if (!anchor) return;
|
|
1662
|
+
abDiv.className = `${abDiv.className} ab-absolute`;
|
|
1564
1663
|
anchor.appendChild(abDiv);
|
|
1565
1664
|
};
|
|
1566
1665
|
|
|
@@ -1639,15 +1738,16 @@ const ArchbeeAppWidget = /*#__PURE__*/forwardRef((_a, ref) => {
|
|
|
1639
1738
|
onWidgetOpen,
|
|
1640
1739
|
onWidgetClose,
|
|
1641
1740
|
bubble,
|
|
1741
|
+
bubblePlaceholder,
|
|
1642
1742
|
anchor,
|
|
1643
1743
|
children
|
|
1644
1744
|
} = _a,
|
|
1645
|
-
rest = __rest(_a, ["className", "spaceId", "jwt", "shareableToken", "docId", "blockId", "widgetType", "loadingStrategy", "onWidgetOpen", "onWidgetClose", "bubble", "anchor", "children"]);
|
|
1745
|
+
rest = __rest(_a, ["className", "spaceId", "jwt", "shareableToken", "docId", "blockId", "widgetType", "loadingStrategy", "onWidgetOpen", "onWidgetClose", "bubble", "bubblePlaceholder", "anchor", "children"]);
|
|
1646
1746
|
const elementRef = useRef(null);
|
|
1647
1747
|
const widgetInstance = useMemo(() => {
|
|
1648
1748
|
if (typeof window === 'undefined') return;
|
|
1649
|
-
return createArchbeeWidget(spaceId, jwt, shareableToken, loadingStrategy, bubble, anchor);
|
|
1650
|
-
}, [spaceId, jwt, shareableToken, loadingStrategy, bubble]);
|
|
1749
|
+
return createArchbeeWidget(spaceId, jwt, shareableToken, loadingStrategy, bubble, bubblePlaceholder, anchor);
|
|
1750
|
+
}, [spaceId, jwt, shareableToken, loadingStrategy, bubble, bubblePlaceholder, anchor]);
|
|
1651
1751
|
useImperativeHandle(ref, () => {
|
|
1652
1752
|
return {
|
|
1653
1753
|
open: onOpenWidget,
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BubbleType, LoadingStrategy } from '../types';
|
|
2
2
|
export declare const initScripts: () => void;
|
|
3
3
|
export declare const initJsScripts: (loadingStrategy: LoadingStrategy) => void;
|
|
4
|
-
export declare const createArchbeeWidget: (spaceId: string, jwt?: string, shareableToken?: string, loadingStrategy?: LoadingStrategy, bubble?: BubbleType, anchor?: string) => any;
|
|
4
|
+
export declare const createArchbeeWidget: (spaceId: string, jwt?: string, shareableToken?: string, loadingStrategy?: LoadingStrategy, bubble?: BubbleType, bubblePlaceholder?: string, anchor?: string) => any;
|
package/src/lib/types.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface AbWidgetData {
|
|
|
24
24
|
shareableToken?: string;
|
|
25
25
|
widgetType?: WidgetType;
|
|
26
26
|
bubble?: BubbleType;
|
|
27
|
+
bubblePlaceholder?: string;
|
|
27
28
|
anchor?: string;
|
|
28
29
|
loadingStrategy?: LoadingStrategy;
|
|
29
30
|
}
|
|
@@ -34,11 +35,11 @@ export interface AbWidgetAction {
|
|
|
34
35
|
metadata: any;
|
|
35
36
|
}
|
|
36
37
|
export interface AbWidgetOpenAction extends AbWidgetAction {
|
|
37
|
-
type:
|
|
38
|
+
type: AbWidgetActionType;
|
|
38
39
|
metadata: AbWidgetData;
|
|
39
40
|
}
|
|
40
41
|
export interface AbWidgetCloseAction extends AbWidgetAction {
|
|
41
|
-
type:
|
|
42
|
+
type: AbWidgetActionType;
|
|
42
43
|
metadata: undefined;
|
|
43
44
|
}
|
|
44
45
|
export type BubbleType = 'ask' | 'invisible';
|