@unisphere/genie-types 1.17.0 → 1.18.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.esm.js CHANGED
@@ -1,6 +1,1105 @@
1
1
  /** Widget name constant for all Genie experiences */
2
2
  const widgetName = 'unisphere.widget.genie';
3
3
 
4
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
+
6
+ var check = function (it) {
7
+ return it && it.Math === Math && it;
8
+ };
9
+
10
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
11
+ var globalThis_1 =
12
+ // eslint-disable-next-line es/no-global-this -- safe
13
+ check(typeof globalThis == 'object' && globalThis) ||
14
+ check(typeof window == 'object' && window) ||
15
+ // eslint-disable-next-line no-restricted-globals -- safe
16
+ check(typeof self == 'object' && self) ||
17
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
18
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
+ // eslint-disable-next-line no-new-func -- fallback
20
+ (function () { return this; })() || Function('return this')();
21
+
22
+ var objectGetOwnPropertyDescriptor = {};
23
+
24
+ var fails$9 = function (exec) {
25
+ try {
26
+ return !!exec();
27
+ } catch (error) {
28
+ return true;
29
+ }
30
+ };
31
+
32
+ var fails$8 = fails$9;
33
+
34
+ // Detect IE8's incomplete defineProperty implementation
35
+ var descriptors = !fails$8(function () {
36
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
37
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
38
+ });
39
+
40
+ var fails$7 = fails$9;
41
+
42
+ var functionBindNative = !fails$7(function () {
43
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
44
+ var test = (function () { /* empty */ }).bind();
45
+ // eslint-disable-next-line no-prototype-builtins -- safe
46
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
47
+ });
48
+
49
+ var NATIVE_BIND$1 = functionBindNative;
50
+
51
+ var call$5 = Function.prototype.call;
52
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
53
+ var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
54
+ return call$5.apply(call$5, arguments);
55
+ };
56
+
57
+ var objectPropertyIsEnumerable = {};
58
+
59
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
60
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
61
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
62
+
63
+ // Nashorn ~ JDK8 bug
64
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
65
+
66
+ // `Object.prototype.propertyIsEnumerable` method implementation
67
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
68
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
69
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
70
+ return !!descriptor && descriptor.enumerable;
71
+ } : $propertyIsEnumerable;
72
+
73
+ var createPropertyDescriptor$2 = function (bitmap, value) {
74
+ return {
75
+ enumerable: !(bitmap & 1),
76
+ configurable: !(bitmap & 2),
77
+ writable: !(bitmap & 4),
78
+ value: value
79
+ };
80
+ };
81
+
82
+ var NATIVE_BIND = functionBindNative;
83
+
84
+ var FunctionPrototype$1 = Function.prototype;
85
+ var call$4 = FunctionPrototype$1.call;
86
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
87
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
88
+
89
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
90
+ return function () {
91
+ return call$4.apply(fn, arguments);
92
+ };
93
+ };
94
+
95
+ var uncurryThis$9 = functionUncurryThis;
96
+
97
+ var toString$1 = uncurryThis$9({}.toString);
98
+ var stringSlice$1 = uncurryThis$9(''.slice);
99
+
100
+ var classofRaw = function (it) {
101
+ return stringSlice$1(toString$1(it), 8, -1);
102
+ };
103
+
104
+ var uncurryThis$8 = functionUncurryThis;
105
+ var fails$6 = fails$9;
106
+ var classof = classofRaw;
107
+
108
+ var $Object$2 = Object;
109
+ var split = uncurryThis$8(''.split);
110
+
111
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
+ var indexedObject = fails$6(function () {
113
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
+ // eslint-disable-next-line no-prototype-builtins -- safe
115
+ return !$Object$2('z').propertyIsEnumerable(0);
116
+ }) ? function (it) {
117
+ return classof(it) === 'String' ? split(it, '') : $Object$2(it);
118
+ } : $Object$2;
119
+
120
+ // we can't use just `it == null` since of `document.all` special case
121
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
+ var isNullOrUndefined$2 = function (it) {
123
+ return it === null || it === undefined;
124
+ };
125
+
126
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
127
+
128
+ var $TypeError$5 = TypeError;
129
+
130
+ // `RequireObjectCoercible` abstract operation
131
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
+ var requireObjectCoercible$2 = function (it) {
133
+ if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
134
+ return it;
135
+ };
136
+
137
+ // toObject with fallback for non-array-like ES3 strings
138
+ var IndexedObject$1 = indexedObject;
139
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
140
+
141
+ var toIndexedObject$3 = function (it) {
142
+ return IndexedObject$1(requireObjectCoercible$1(it));
143
+ };
144
+
145
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
146
+ var documentAll = typeof document == 'object' && document.all;
147
+
148
+ // `IsCallable` abstract operation
149
+ // https://tc39.es/ecma262/#sec-iscallable
150
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
+ var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
+ return typeof argument == 'function' || argument === documentAll;
153
+ } : function (argument) {
154
+ return typeof argument == 'function';
155
+ };
156
+
157
+ var isCallable$9 = isCallable$a;
158
+
159
+ var isObject$4 = function (it) {
160
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
161
+ };
162
+
163
+ var globalThis$b = globalThis_1;
164
+ var isCallable$8 = isCallable$a;
165
+
166
+ var aFunction = function (argument) {
167
+ return isCallable$8(argument) ? argument : undefined;
168
+ };
169
+
170
+ var getBuiltIn$2 = function (namespace, method) {
171
+ return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
172
+ };
173
+
174
+ var uncurryThis$7 = functionUncurryThis;
175
+
176
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
177
+
178
+ var globalThis$a = globalThis_1;
179
+
180
+ var navigator = globalThis$a.navigator;
181
+ var userAgent$1 = navigator && navigator.userAgent;
182
+
183
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
184
+
185
+ var globalThis$9 = globalThis_1;
186
+ var userAgent = environmentUserAgent;
187
+
188
+ var process = globalThis$9.process;
189
+ var Deno = globalThis$9.Deno;
190
+ var versions = process && process.versions || Deno && Deno.version;
191
+ var v8 = versions && versions.v8;
192
+ var match, version;
193
+
194
+ if (v8) {
195
+ match = v8.split('.');
196
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
197
+ // but their correct versions are not interesting for us
198
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
199
+ }
200
+
201
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
202
+ // so check `userAgent` even if `.v8` exists, but 0
203
+ if (!version && userAgent) {
204
+ match = userAgent.match(/Edge\/(\d+)/);
205
+ if (!match || match[1] >= 74) {
206
+ match = userAgent.match(/Chrome\/(\d+)/);
207
+ if (match) version = +match[1];
208
+ }
209
+ }
210
+
211
+ var environmentV8Version = version;
212
+
213
+ /* eslint-disable es/no-symbol -- required for testing */
214
+ var V8_VERSION = environmentV8Version;
215
+ var fails$5 = fails$9;
216
+ var globalThis$8 = globalThis_1;
217
+
218
+ var $String$3 = globalThis$8.String;
219
+
220
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
221
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
222
+ var symbol = Symbol('symbol detection');
223
+ // Chrome 38 Symbol has incorrect toString conversion
224
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
225
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
226
+ // of course, fail.
227
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
228
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
229
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
230
+ });
231
+
232
+ /* eslint-disable es/no-symbol -- required for testing */
233
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
234
+
235
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
236
+ !Symbol.sham &&
237
+ typeof Symbol.iterator == 'symbol';
238
+
239
+ var getBuiltIn$1 = getBuiltIn$2;
240
+ var isCallable$7 = isCallable$a;
241
+ var isPrototypeOf = objectIsPrototypeOf;
242
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
243
+
244
+ var $Object$1 = Object;
245
+
246
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
247
+ return typeof it == 'symbol';
248
+ } : function (it) {
249
+ var $Symbol = getBuiltIn$1('Symbol');
250
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
251
+ };
252
+
253
+ var $String$2 = String;
254
+
255
+ var tryToString$1 = function (argument) {
256
+ try {
257
+ return $String$2(argument);
258
+ } catch (error) {
259
+ return 'Object';
260
+ }
261
+ };
262
+
263
+ var isCallable$6 = isCallable$a;
264
+ var tryToString = tryToString$1;
265
+
266
+ var $TypeError$4 = TypeError;
267
+
268
+ // `Assert: IsCallable(argument) is true`
269
+ var aCallable$1 = function (argument) {
270
+ if (isCallable$6(argument)) return argument;
271
+ throw new $TypeError$4(tryToString(argument) + ' is not a function');
272
+ };
273
+
274
+ var aCallable = aCallable$1;
275
+ var isNullOrUndefined = isNullOrUndefined$2;
276
+
277
+ // `GetMethod` abstract operation
278
+ // https://tc39.es/ecma262/#sec-getmethod
279
+ var getMethod$1 = function (V, P) {
280
+ var func = V[P];
281
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
282
+ };
283
+
284
+ var call$3 = functionCall;
285
+ var isCallable$5 = isCallable$a;
286
+ var isObject$3 = isObject$4;
287
+
288
+ var $TypeError$3 = TypeError;
289
+
290
+ // `OrdinaryToPrimitive` abstract operation
291
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
292
+ var ordinaryToPrimitive$1 = function (input, pref) {
293
+ var fn, val;
294
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
295
+ if (isCallable$5(fn = input.valueOf) && !isObject$3(val = call$3(fn, input))) return val;
296
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
297
+ throw new $TypeError$3("Can't convert object to primitive value");
298
+ };
299
+
300
+ var sharedStore = {exports: {}};
301
+
302
+ var globalThis$7 = globalThis_1;
303
+
304
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
305
+ var defineProperty$2 = Object.defineProperty;
306
+
307
+ var defineGlobalProperty$3 = function (key, value) {
308
+ try {
309
+ defineProperty$2(globalThis$7, key, { value: value, configurable: true, writable: true });
310
+ } catch (error) {
311
+ globalThis$7[key] = value;
312
+ } return value;
313
+ };
314
+
315
+ var globalThis$6 = globalThis_1;
316
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
317
+
318
+ var SHARED = '__core-js_shared__';
319
+ var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
320
+
321
+ (store$3.versions || (store$3.versions = [])).push({
322
+ version: '3.48.0',
323
+ mode: 'global',
324
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
325
+ license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
326
+ source: 'https://github.com/zloirock/core-js'
327
+ });
328
+
329
+ var sharedStoreExports = sharedStore.exports;
330
+
331
+ var store$2 = sharedStoreExports;
332
+
333
+ var shared$3 = function (key, value) {
334
+ return store$2[key] || (store$2[key] = value || {});
335
+ };
336
+
337
+ var requireObjectCoercible = requireObjectCoercible$2;
338
+
339
+ var $Object = Object;
340
+
341
+ // `ToObject` abstract operation
342
+ // https://tc39.es/ecma262/#sec-toobject
343
+ var toObject$2 = function (argument) {
344
+ return $Object(requireObjectCoercible(argument));
345
+ };
346
+
347
+ var uncurryThis$6 = functionUncurryThis;
348
+ var toObject$1 = toObject$2;
349
+
350
+ var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
351
+
352
+ // `HasOwnProperty` abstract operation
353
+ // https://tc39.es/ecma262/#sec-hasownproperty
354
+ // eslint-disable-next-line es/no-object-hasown -- safe
355
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
356
+ return hasOwnProperty(toObject$1(it), key);
357
+ };
358
+
359
+ var uncurryThis$5 = functionUncurryThis;
360
+
361
+ var id = 0;
362
+ var postfix = Math.random();
363
+ var toString = uncurryThis$5(1.1.toString);
364
+
365
+ var uid$2 = function (key) {
366
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
367
+ };
368
+
369
+ var globalThis$5 = globalThis_1;
370
+ var shared$2 = shared$3;
371
+ var hasOwn$6 = hasOwnProperty_1;
372
+ var uid$1 = uid$2;
373
+ var NATIVE_SYMBOL = symbolConstructorDetection;
374
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
375
+
376
+ var Symbol$1 = globalThis$5.Symbol;
377
+ var WellKnownSymbolsStore = shared$2('wks');
378
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
379
+
380
+ var wellKnownSymbol$1 = function (name) {
381
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
382
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
383
+ ? Symbol$1[name]
384
+ : createWellKnownSymbol('Symbol.' + name);
385
+ } return WellKnownSymbolsStore[name];
386
+ };
387
+
388
+ var call$2 = functionCall;
389
+ var isObject$2 = isObject$4;
390
+ var isSymbol$1 = isSymbol$2;
391
+ var getMethod = getMethod$1;
392
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
393
+ var wellKnownSymbol = wellKnownSymbol$1;
394
+
395
+ var $TypeError$2 = TypeError;
396
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
397
+
398
+ // `ToPrimitive` abstract operation
399
+ // https://tc39.es/ecma262/#sec-toprimitive
400
+ var toPrimitive$1 = function (input, pref) {
401
+ if (!isObject$2(input) || isSymbol$1(input)) return input;
402
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
403
+ var result;
404
+ if (exoticToPrim) {
405
+ if (pref === undefined) pref = 'default';
406
+ result = call$2(exoticToPrim, input, pref);
407
+ if (!isObject$2(result) || isSymbol$1(result)) return result;
408
+ throw new $TypeError$2("Can't convert object to primitive value");
409
+ }
410
+ if (pref === undefined) pref = 'number';
411
+ return ordinaryToPrimitive(input, pref);
412
+ };
413
+
414
+ var toPrimitive = toPrimitive$1;
415
+ var isSymbol = isSymbol$2;
416
+
417
+ // `ToPropertyKey` abstract operation
418
+ // https://tc39.es/ecma262/#sec-topropertykey
419
+ var toPropertyKey$2 = function (argument) {
420
+ var key = toPrimitive(argument, 'string');
421
+ return isSymbol(key) ? key : key + '';
422
+ };
423
+
424
+ var globalThis$4 = globalThis_1;
425
+ var isObject$1 = isObject$4;
426
+
427
+ var document$1 = globalThis$4.document;
428
+ // typeof document.createElement is 'object' in old IE
429
+ var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
430
+
431
+ var documentCreateElement = function (it) {
432
+ return EXISTS$1 ? document$1.createElement(it) : {};
433
+ };
434
+
435
+ var DESCRIPTORS$7 = descriptors;
436
+ var fails$4 = fails$9;
437
+ var createElement = documentCreateElement;
438
+
439
+ // Thanks to IE8 for its funny defineProperty
440
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
441
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
442
+ return Object.defineProperty(createElement('div'), 'a', {
443
+ get: function () { return 7; }
444
+ }).a !== 7;
445
+ });
446
+
447
+ var DESCRIPTORS$6 = descriptors;
448
+ var call$1 = functionCall;
449
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
450
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
451
+ var toIndexedObject$2 = toIndexedObject$3;
452
+ var toPropertyKey$1 = toPropertyKey$2;
453
+ var hasOwn$5 = hasOwnProperty_1;
454
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
455
+
456
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
457
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
458
+
459
+ // `Object.getOwnPropertyDescriptor` method
460
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
461
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
462
+ O = toIndexedObject$2(O);
463
+ P = toPropertyKey$1(P);
464
+ if (IE8_DOM_DEFINE$1) try {
465
+ return $getOwnPropertyDescriptor$1(O, P);
466
+ } catch (error) { /* empty */ }
467
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
468
+ };
469
+
470
+ var objectDefineProperty = {};
471
+
472
+ var DESCRIPTORS$5 = descriptors;
473
+ var fails$3 = fails$9;
474
+
475
+ // V8 ~ Chrome 36-
476
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
477
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
478
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
479
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
480
+ value: 42,
481
+ writable: false
482
+ }).prototype !== 42;
483
+ });
484
+
485
+ var isObject = isObject$4;
486
+
487
+ var $String$1 = String;
488
+ var $TypeError$1 = TypeError;
489
+
490
+ // `Assert: Type(argument) is Object`
491
+ var anObject$2 = function (argument) {
492
+ if (isObject(argument)) return argument;
493
+ throw new $TypeError$1($String$1(argument) + ' is not an object');
494
+ };
495
+
496
+ var DESCRIPTORS$4 = descriptors;
497
+ var IE8_DOM_DEFINE = ie8DomDefine;
498
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
499
+ var anObject$1 = anObject$2;
500
+ var toPropertyKey = toPropertyKey$2;
501
+
502
+ var $TypeError = TypeError;
503
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
504
+ var $defineProperty = Object.defineProperty;
505
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
506
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
507
+ var ENUMERABLE = 'enumerable';
508
+ var CONFIGURABLE$1 = 'configurable';
509
+ var WRITABLE = 'writable';
510
+
511
+ // `Object.defineProperty` method
512
+ // https://tc39.es/ecma262/#sec-object.defineproperty
513
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
514
+ anObject$1(O);
515
+ P = toPropertyKey(P);
516
+ anObject$1(Attributes);
517
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
518
+ var current = $getOwnPropertyDescriptor(O, P);
519
+ if (current && current[WRITABLE]) {
520
+ O[P] = Attributes.value;
521
+ Attributes = {
522
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
523
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
524
+ writable: false
525
+ };
526
+ }
527
+ } return $defineProperty(O, P, Attributes);
528
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
529
+ anObject$1(O);
530
+ P = toPropertyKey(P);
531
+ anObject$1(Attributes);
532
+ if (IE8_DOM_DEFINE) try {
533
+ return $defineProperty(O, P, Attributes);
534
+ } catch (error) { /* empty */ }
535
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
536
+ if ('value' in Attributes) O[P] = Attributes.value;
537
+ return O;
538
+ };
539
+
540
+ var DESCRIPTORS$3 = descriptors;
541
+ var definePropertyModule$2 = objectDefineProperty;
542
+ var createPropertyDescriptor = createPropertyDescriptor$2;
543
+
544
+ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
545
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
546
+ } : function (object, key, value) {
547
+ object[key] = value;
548
+ return object;
549
+ };
550
+
551
+ var makeBuiltIn$2 = {exports: {}};
552
+
553
+ var DESCRIPTORS$2 = descriptors;
554
+ var hasOwn$4 = hasOwnProperty_1;
555
+
556
+ var FunctionPrototype = Function.prototype;
557
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
558
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
559
+
560
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
561
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
562
+
563
+ var functionName = {
564
+ CONFIGURABLE: CONFIGURABLE
565
+ };
566
+
567
+ var uncurryThis$4 = functionUncurryThis;
568
+ var isCallable$4 = isCallable$a;
569
+ var store$1 = sharedStoreExports;
570
+
571
+ var functionToString = uncurryThis$4(Function.toString);
572
+
573
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
574
+ if (!isCallable$4(store$1.inspectSource)) {
575
+ store$1.inspectSource = function (it) {
576
+ return functionToString(it);
577
+ };
578
+ }
579
+
580
+ var inspectSource$1 = store$1.inspectSource;
581
+
582
+ var globalThis$3 = globalThis_1;
583
+ var isCallable$3 = isCallable$a;
584
+
585
+ var WeakMap$1 = globalThis$3.WeakMap;
586
+
587
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
588
+
589
+ var shared$1 = shared$3;
590
+ var uid = uid$2;
591
+
592
+ var keys = shared$1('keys');
593
+
594
+ var sharedKey$1 = function (key) {
595
+ return keys[key] || (keys[key] = uid(key));
596
+ };
597
+
598
+ var hiddenKeys$3 = {};
599
+
600
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
601
+ var globalThis$2 = globalThis_1;
602
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
603
+ var hasOwn$3 = hasOwnProperty_1;
604
+ var shared = sharedStoreExports;
605
+ var sharedKey = sharedKey$1;
606
+ var hiddenKeys$2 = hiddenKeys$3;
607
+
608
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
609
+ var TypeError$1 = globalThis$2.TypeError;
610
+ var WeakMap = globalThis$2.WeakMap;
611
+ var set, get, has;
612
+
613
+ var enforce = function (it) {
614
+ return has(it) ? get(it) : set(it, {});
615
+ };
616
+
617
+ if (NATIVE_WEAK_MAP || shared.state) {
618
+ var store = shared.state || (shared.state = new WeakMap());
619
+ /* eslint-disable no-self-assign -- prototype methods protection */
620
+ store.get = store.get;
621
+ store.has = store.has;
622
+ store.set = store.set;
623
+ /* eslint-enable no-self-assign -- prototype methods protection */
624
+ set = function (it, metadata) {
625
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
626
+ metadata.facade = it;
627
+ store.set(it, metadata);
628
+ return metadata;
629
+ };
630
+ get = function (it) {
631
+ return store.get(it) || {};
632
+ };
633
+ has = function (it) {
634
+ return store.has(it);
635
+ };
636
+ } else {
637
+ var STATE = sharedKey('state');
638
+ hiddenKeys$2[STATE] = true;
639
+ set = function (it, metadata) {
640
+ if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
641
+ metadata.facade = it;
642
+ createNonEnumerableProperty$1(it, STATE, metadata);
643
+ return metadata;
644
+ };
645
+ get = function (it) {
646
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
647
+ };
648
+ has = function (it) {
649
+ return hasOwn$3(it, STATE);
650
+ };
651
+ }
652
+
653
+ var internalState = {
654
+ get: get,
655
+ enforce: enforce};
656
+
657
+ var uncurryThis$3 = functionUncurryThis;
658
+ var fails$2 = fails$9;
659
+ var isCallable$2 = isCallable$a;
660
+ var hasOwn$2 = hasOwnProperty_1;
661
+ var DESCRIPTORS$1 = descriptors;
662
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
663
+ var inspectSource = inspectSource$1;
664
+ var InternalStateModule = internalState;
665
+
666
+ var enforceInternalState = InternalStateModule.enforce;
667
+ var getInternalState = InternalStateModule.get;
668
+ var $String = String;
669
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
670
+ var defineProperty$1 = Object.defineProperty;
671
+ var stringSlice = uncurryThis$3(''.slice);
672
+ var replace = uncurryThis$3(''.replace);
673
+ var join = uncurryThis$3([].join);
674
+
675
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
676
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
677
+ });
678
+
679
+ var TEMPLATE = String(String).split('String');
680
+
681
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
682
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
683
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
684
+ }
685
+ if (options && options.getter) name = 'get ' + name;
686
+ if (options && options.setter) name = 'set ' + name;
687
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
688
+ if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
689
+ else value.name = name;
690
+ }
691
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
692
+ defineProperty$1(value, 'length', { value: options.arity });
693
+ }
694
+ try {
695
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
696
+ if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
697
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
698
+ } else if (value.prototype) value.prototype = undefined;
699
+ } catch (error) { /* empty */ }
700
+ var state = enforceInternalState(value);
701
+ if (!hasOwn$2(state, 'source')) {
702
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
703
+ } return value;
704
+ };
705
+
706
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
707
+ // eslint-disable-next-line no-extend-native -- required
708
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
709
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
710
+ }, 'toString');
711
+
712
+ var makeBuiltInExports = makeBuiltIn$2.exports;
713
+
714
+ var isCallable$1 = isCallable$a;
715
+ var definePropertyModule$1 = objectDefineProperty;
716
+ var makeBuiltIn = makeBuiltInExports;
717
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
718
+
719
+ var defineBuiltIn$1 = function (O, key, value, options) {
720
+ if (!options) options = {};
721
+ var simple = options.enumerable;
722
+ var name = options.name !== undefined ? options.name : key;
723
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
724
+ if (options.global) {
725
+ if (simple) O[key] = value;
726
+ else defineGlobalProperty$1(key, value);
727
+ } else {
728
+ try {
729
+ if (!options.unsafe) delete O[key];
730
+ else if (O[key]) simple = true;
731
+ } catch (error) { /* empty */ }
732
+ if (simple) O[key] = value;
733
+ else definePropertyModule$1.f(O, key, {
734
+ value: value,
735
+ enumerable: false,
736
+ configurable: !options.nonConfigurable,
737
+ writable: !options.nonWritable
738
+ });
739
+ } return O;
740
+ };
741
+
742
+ var objectGetOwnPropertyNames = {};
743
+
744
+ var ceil = Math.ceil;
745
+ var floor = Math.floor;
746
+
747
+ // `Math.trunc` method
748
+ // https://tc39.es/ecma262/#sec-math.trunc
749
+ // eslint-disable-next-line es/no-math-trunc -- safe
750
+ var mathTrunc = Math.trunc || function trunc(x) {
751
+ var n = +x;
752
+ return (n > 0 ? floor : ceil)(n);
753
+ };
754
+
755
+ var trunc = mathTrunc;
756
+
757
+ // `ToIntegerOrInfinity` abstract operation
758
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
759
+ var toIntegerOrInfinity$2 = function (argument) {
760
+ var number = +argument;
761
+ // eslint-disable-next-line no-self-compare -- NaN check
762
+ return number !== number || number === 0 ? 0 : trunc(number);
763
+ };
764
+
765
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
766
+
767
+ var max = Math.max;
768
+ var min$1 = Math.min;
769
+
770
+ // Helper for a popular repeating case of the spec:
771
+ // Let integer be ? ToInteger(index).
772
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
773
+ var toAbsoluteIndex$1 = function (index, length) {
774
+ var integer = toIntegerOrInfinity$1(index);
775
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
776
+ };
777
+
778
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
779
+
780
+ var min = Math.min;
781
+
782
+ // `ToLength` abstract operation
783
+ // https://tc39.es/ecma262/#sec-tolength
784
+ var toLength$1 = function (argument) {
785
+ var len = toIntegerOrInfinity(argument);
786
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
787
+ };
788
+
789
+ var toLength = toLength$1;
790
+
791
+ // `LengthOfArrayLike` abstract operation
792
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
793
+ var lengthOfArrayLike$1 = function (obj) {
794
+ return toLength(obj.length);
795
+ };
796
+
797
+ var toIndexedObject$1 = toIndexedObject$3;
798
+ var toAbsoluteIndex = toAbsoluteIndex$1;
799
+ var lengthOfArrayLike = lengthOfArrayLike$1;
800
+
801
+ // `Array.prototype.{ indexOf, includes }` methods implementation
802
+ var createMethod = function (IS_INCLUDES) {
803
+ return function ($this, el, fromIndex) {
804
+ var O = toIndexedObject$1($this);
805
+ var length = lengthOfArrayLike(O);
806
+ if (length === 0) return !IS_INCLUDES && -1;
807
+ var index = toAbsoluteIndex(fromIndex, length);
808
+ var value;
809
+ // Array#includes uses SameValueZero equality algorithm
810
+ // eslint-disable-next-line no-self-compare -- NaN check
811
+ if (IS_INCLUDES && el !== el) while (length > index) {
812
+ value = O[index++];
813
+ // eslint-disable-next-line no-self-compare -- NaN check
814
+ if (value !== value) return true;
815
+ // Array#indexOf ignores holes, Array#includes - not
816
+ } else for (;length > index; index++) {
817
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
818
+ } return !IS_INCLUDES && -1;
819
+ };
820
+ };
821
+
822
+ var arrayIncludes = {
823
+ // `Array.prototype.indexOf` method
824
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
825
+ indexOf: createMethod(false)
826
+ };
827
+
828
+ var uncurryThis$2 = functionUncurryThis;
829
+ var hasOwn$1 = hasOwnProperty_1;
830
+ var toIndexedObject = toIndexedObject$3;
831
+ var indexOf = arrayIncludes.indexOf;
832
+ var hiddenKeys$1 = hiddenKeys$3;
833
+
834
+ var push = uncurryThis$2([].push);
835
+
836
+ var objectKeysInternal = function (object, names) {
837
+ var O = toIndexedObject(object);
838
+ var i = 0;
839
+ var result = [];
840
+ var key;
841
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
842
+ // Don't enum bug & hidden keys
843
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
844
+ ~indexOf(result, key) || push(result, key);
845
+ }
846
+ return result;
847
+ };
848
+
849
+ // IE8- don't enum bug keys
850
+ var enumBugKeys$2 = [
851
+ 'constructor',
852
+ 'hasOwnProperty',
853
+ 'isPrototypeOf',
854
+ 'propertyIsEnumerable',
855
+ 'toLocaleString',
856
+ 'toString',
857
+ 'valueOf'
858
+ ];
859
+
860
+ var internalObjectKeys$1 = objectKeysInternal;
861
+ var enumBugKeys$1 = enumBugKeys$2;
862
+
863
+ var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
864
+
865
+ // `Object.getOwnPropertyNames` method
866
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
867
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
868
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
869
+ return internalObjectKeys$1(O, hiddenKeys);
870
+ };
871
+
872
+ var objectGetOwnPropertySymbols = {};
873
+
874
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
875
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
876
+
877
+ var getBuiltIn = getBuiltIn$2;
878
+ var uncurryThis$1 = functionUncurryThis;
879
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
880
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
881
+ var anObject = anObject$2;
882
+
883
+ var concat$1 = uncurryThis$1([].concat);
884
+
885
+ // all object keys, includes non-enumerable and symbols
886
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
887
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
888
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
889
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
890
+ };
891
+
892
+ var hasOwn = hasOwnProperty_1;
893
+ var ownKeys = ownKeys$1;
894
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
895
+ var definePropertyModule = objectDefineProperty;
896
+
897
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
898
+ var keys = ownKeys(source);
899
+ var defineProperty = definePropertyModule.f;
900
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
901
+ for (var i = 0; i < keys.length; i++) {
902
+ var key = keys[i];
903
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
904
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
905
+ }
906
+ }
907
+ };
908
+
909
+ var fails$1 = fails$9;
910
+ var isCallable = isCallable$a;
911
+
912
+ var replacement = /#|\.prototype\./;
913
+
914
+ var isForced$1 = function (feature, detection) {
915
+ var value = data[normalize(feature)];
916
+ return value === POLYFILL ? true
917
+ : value === NATIVE ? false
918
+ : isCallable(detection) ? fails$1(detection)
919
+ : !!detection;
920
+ };
921
+
922
+ var normalize = isForced$1.normalize = function (string) {
923
+ return String(string).replace(replacement, '.').toLowerCase();
924
+ };
925
+
926
+ var data = isForced$1.data = {};
927
+ var NATIVE = isForced$1.NATIVE = 'N';
928
+ var POLYFILL = isForced$1.POLYFILL = 'P';
929
+
930
+ var isForced_1 = isForced$1;
931
+
932
+ var globalThis$1 = globalThis_1;
933
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
934
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
935
+ var defineBuiltIn = defineBuiltIn$1;
936
+ var defineGlobalProperty = defineGlobalProperty$3;
937
+ var copyConstructorProperties = copyConstructorProperties$1;
938
+ var isForced = isForced_1;
939
+
940
+ /*
941
+ options.target - name of the target object
942
+ options.global - target is the global object
943
+ options.stat - export as static methods of target
944
+ options.proto - export as prototype methods of target
945
+ options.real - real prototype method for the `pure` version
946
+ options.forced - export even if the native feature is available
947
+ options.bind - bind methods to the target, required for the `pure` version
948
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
949
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
950
+ options.sham - add a flag to not completely full polyfills
951
+ options.enumerable - export as enumerable property
952
+ options.dontCallGetSet - prevent calling a getter on target
953
+ options.name - the .name of the function if it does not match the key
954
+ */
955
+ var _export = function (options, source) {
956
+ var TARGET = options.target;
957
+ var GLOBAL = options.global;
958
+ var STATIC = options.stat;
959
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
960
+ if (GLOBAL) {
961
+ target = globalThis$1;
962
+ } else if (STATIC) {
963
+ target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
964
+ } else {
965
+ target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
966
+ }
967
+ if (target) for (key in source) {
968
+ sourceProperty = source[key];
969
+ if (options.dontCallGetSet) {
970
+ descriptor = getOwnPropertyDescriptor(target, key);
971
+ targetProperty = descriptor && descriptor.value;
972
+ } else targetProperty = target[key];
973
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
974
+ // contained in target
975
+ if (!FORCED && targetProperty !== undefined) {
976
+ if (typeof sourceProperty == typeof targetProperty) continue;
977
+ copyConstructorProperties(sourceProperty, targetProperty);
978
+ }
979
+ // add a flag to not completely full polyfills
980
+ if (options.sham || (targetProperty && targetProperty.sham)) {
981
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
982
+ }
983
+ defineBuiltIn(target, key, sourceProperty, options);
984
+ }
985
+ };
986
+
987
+ var internalObjectKeys = objectKeysInternal;
988
+ var enumBugKeys = enumBugKeys$2;
989
+
990
+ // `Object.keys` method
991
+ // https://tc39.es/ecma262/#sec-object.keys
992
+ // eslint-disable-next-line es/no-object-keys -- safe
993
+ var objectKeys$1 = Object.keys || function keys(O) {
994
+ return internalObjectKeys(O, enumBugKeys);
995
+ };
996
+
997
+ var DESCRIPTORS = descriptors;
998
+ var uncurryThis = functionUncurryThis;
999
+ var call = functionCall;
1000
+ var fails = fails$9;
1001
+ var objectKeys = objectKeys$1;
1002
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1003
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1004
+ var toObject = toObject$2;
1005
+ var IndexedObject = indexedObject;
1006
+
1007
+ // eslint-disable-next-line es/no-object-assign -- safe
1008
+ var $assign = Object.assign;
1009
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1010
+ var defineProperty = Object.defineProperty;
1011
+ var concat = uncurryThis([].concat);
1012
+
1013
+ // `Object.assign` method
1014
+ // https://tc39.es/ecma262/#sec-object.assign
1015
+ var objectAssign = !$assign || fails(function () {
1016
+ // should have correct order of operations (Edge bug)
1017
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1018
+ enumerable: true,
1019
+ get: function () {
1020
+ defineProperty(this, 'b', {
1021
+ value: 3,
1022
+ enumerable: false
1023
+ });
1024
+ }
1025
+ }), { b: 2 })).b !== 1) return true;
1026
+ // should work with symbols and should have deterministic property order (V8 bug)
1027
+ var A = {};
1028
+ var B = {};
1029
+ // eslint-disable-next-line es/no-symbol -- safe
1030
+ var symbol = Symbol('assign detection');
1031
+ var alphabet = 'abcdefghijklmnopqrst';
1032
+ A[symbol] = 7;
1033
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1034
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1035
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1036
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1037
+ var T = toObject(target);
1038
+ var argumentsLength = arguments.length;
1039
+ var index = 1;
1040
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1041
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1042
+ while (argumentsLength > index) {
1043
+ var S = IndexedObject(arguments[index++]);
1044
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1045
+ var length = keys.length;
1046
+ var j = 0;
1047
+ var key;
1048
+ while (length > j) {
1049
+ key = keys[j++];
1050
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1051
+ }
1052
+ } return T;
1053
+ } : $assign;
1054
+
1055
+ var $ = _export;
1056
+ var assign = objectAssign;
1057
+
1058
+ // `Object.assign` method
1059
+ // https://tc39.es/ecma262/#sec-object.assign
1060
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1061
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1062
+ assign: assign
1063
+ });
1064
+
1065
+ const CHAT_DEFAULT_CAPABILITIES = {
1066
+ use_knowledge_base: 'on',
1067
+ use_content_search: 'on',
1068
+ use_get_entry_content: 'on',
1069
+ generate_followup_questions: 'on',
1070
+ include_sources: 'on',
1071
+ use_related_files: 'on'
1072
+ };
1073
+ const AVATAR_DEFAULT_CAPABILITIES = {
1074
+ use_knowledge_base: 'on',
1075
+ use_content_search: 'off',
1076
+ use_get_entry_content: 'off',
1077
+ include_sources: 'off',
1078
+ generate_followup_questions: 'off',
1079
+ use_related_files: 'off',
1080
+ avatar: 'on'
1081
+ };
1082
+ const getChatDefaultCapabilities = context => {
1083
+ if ((context === null || context === void 0 ? void 0 : context.type) === 'entry') {
1084
+ return Object.assign(Object.assign({}, CHAT_DEFAULT_CAPABILITIES), {
1085
+ use_knowledge_base: 'off',
1086
+ use_content_search: 'off',
1087
+ use_get_entry_content: 'off',
1088
+ generate_followup_questions: 'off',
1089
+ include_sources: 'off',
1090
+ use_related_files: 'off'
1091
+ });
1092
+ }
1093
+ return CHAT_DEFAULT_CAPABILITIES;
1094
+ };
1095
+ const getAvatarDefaultCapabilities = context => {
1096
+ if ((context === null || context === void 0 ? void 0 : context.type) === 'entry') {
1097
+ return Object.assign(Object.assign({}, AVATAR_DEFAULT_CAPABILITIES), {
1098
+ use_knowledge_base: 'off'
1099
+ });
1100
+ }
1101
+ return AVATAR_DEFAULT_CAPABILITIES;
1102
+ };
4
1103
  const integrationsSchema = {
5
1104
  type: 'object',
6
1105
  properties: {
@@ -51,6 +1150,8 @@ const getSourceUrlSchema = {
51
1150
  optional: true
52
1151
  };
53
1152
 
1153
+ /** Runtime name constant for chat experiences */
1154
+ const ChatRuntimeName = 'chat';
54
1155
  const chatRuntimeSettingsSchema = {
55
1156
  type: 'object',
56
1157
  properties: {
@@ -165,10 +1266,26 @@ const chatRuntimeSettingsSchema = {
165
1266
  },
166
1267
  optional: true
167
1268
  },
1269
+ context: {
1270
+ type: 'object',
1271
+ optional: true,
1272
+ properties: {
1273
+ type: {
1274
+ type: 'enum',
1275
+ values: ['entry', 'category']
1276
+ },
1277
+ id: {
1278
+ type: 'primitive',
1279
+ value: 'string'
1280
+ }
1281
+ }
1282
+ },
1283
+ // @deprecated - kept for backward compatibility
168
1284
  entryId: {
169
1285
  type: 'primitive',
170
1286
  value: 'string',
171
- optional: true
1287
+ optional: true,
1288
+ deprecationMessage: 'Use context instead: { type: "entry", id: "your-entry-id" }'
172
1289
  },
173
1290
  agentMode: {
174
1291
  type: 'primitive',
@@ -206,9 +1323,26 @@ const chatRuntimePlayerPluginSettingsSchema = {
206
1323
  value: 'string',
207
1324
  optional: true
208
1325
  },
1326
+ context: {
1327
+ type: 'object',
1328
+ optional: true,
1329
+ properties: {
1330
+ type: {
1331
+ type: 'enum',
1332
+ values: ['entry', 'category']
1333
+ },
1334
+ id: {
1335
+ type: 'primitive',
1336
+ value: 'string'
1337
+ }
1338
+ }
1339
+ },
1340
+ // @deprecated - kept for backward compatibility
209
1341
  entryId: {
210
1342
  type: 'primitive',
211
- value: 'string'
1343
+ value: 'string',
1344
+ optional: true,
1345
+ deprecationMessage: 'Use context instead: { type: "entry", id: "your-entry-id" }'
212
1346
  },
213
1347
  integrations: integrationsSchema,
214
1348
  shareUrl: shareUrlSchema,
@@ -248,6 +1382,7 @@ const chatCustomizationSchema = {
248
1382
  optional: true,
249
1383
  allowUnknownProperties: true,
250
1384
  properties: {
1385
+ // @deprecated - no longer supported
251
1386
  context: {
252
1387
  type: 'orByType',
253
1388
  optional: true,
@@ -308,6 +1443,7 @@ const chatCustomizationSchema = {
308
1443
  }
309
1444
  }
310
1445
  },
1446
+ // @deprecated - no longer supported
311
1447
  scroll: {
312
1448
  type: 'enum',
313
1449
  values: ['body', 'container', 'modal'],
@@ -382,6 +1518,49 @@ const chatCustomizationSchema = {
382
1518
  }
383
1519
  };
384
1520
 
1521
+ const everywhereVisualSettingsSchema = {
1522
+ type: 'object',
1523
+ properties: {
1524
+ schemaVersion: {
1525
+ type: 'literal',
1526
+ value: '1',
1527
+ optional: true
1528
+ },
1529
+ customization: chatCustomizationSchema,
1530
+ onRequestClose: {
1531
+ type: 'function',
1532
+ optional: true
1533
+ },
1534
+ onExpand: {
1535
+ type: 'function',
1536
+ optional: true
1537
+ },
1538
+ isExpanded: {
1539
+ type: 'primitive',
1540
+ value: 'boolean',
1541
+ optional: true
1542
+ },
1543
+ scroll: {
1544
+ type: 'enum',
1545
+ values: ['body', 'container', 'modal'],
1546
+ optional: true
1547
+ },
1548
+ context: {
1549
+ type: 'object',
1550
+ optional: true,
1551
+ properties: {
1552
+ type: {
1553
+ type: 'enum',
1554
+ values: ['entry', 'category', 'ancestor-category']
1555
+ },
1556
+ id: {
1557
+ type: 'primitive',
1558
+ value: 'string'
1559
+ }
1560
+ }
1561
+ }
1562
+ }
1563
+ };
385
1564
  const pageVisualSettingsSchema = {
386
1565
  type: 'object',
387
1566
  properties: {
@@ -390,6 +1569,11 @@ const pageVisualSettingsSchema = {
390
1569
  value: '1',
391
1570
  optional: true
392
1571
  },
1572
+ scroll: {
1573
+ type: 'enum',
1574
+ values: ['body', 'container', 'modal'],
1575
+ optional: true
1576
+ },
393
1577
  customization: chatCustomizationSchema,
394
1578
  initialQuestion: {
395
1579
  type: 'object',
@@ -467,6 +1651,11 @@ const popupVisualSettingsSchema = {
467
1651
  value: '1',
468
1652
  optional: true
469
1653
  },
1654
+ scroll: {
1655
+ type: 'enum',
1656
+ values: ['body', 'container', 'modal'],
1657
+ optional: true
1658
+ },
470
1659
  customization: chatCustomizationSchema,
471
1660
  initialQuestion: {
472
1661
  type: 'object',
@@ -486,9 +1675,6 @@ const popupVisualSettingsSchema = {
486
1675
  }
487
1676
  };
488
1677
 
489
- /** Runtime name constant for chat experiences */
490
- const ChatRuntimeName = 'chat';
491
-
492
1678
  /** Runtime name constant for flashcards tool */
493
1679
  const FlashcardsToolRuntimeName = 'flashcards-tool';
494
1680
  const flashcardsToolRuntimeSettingsSchema = {
@@ -861,10 +2047,32 @@ const avatarRuntimeSettingsSchema = {
861
2047
  type: 'primitive',
862
2048
  value: 'string'
863
2049
  },
2050
+ context: {
2051
+ type: 'object',
2052
+ optional: true,
2053
+ properties: {
2054
+ type: {
2055
+ type: 'enum',
2056
+ values: ['entry', 'category']
2057
+ },
2058
+ id: {
2059
+ type: 'primitive',
2060
+ value: 'string'
2061
+ }
2062
+ }
2063
+ },
2064
+ capabilities: {
2065
+ type: 'object',
2066
+ optional: true,
2067
+ allowUnknownProperties: true,
2068
+ properties: {}
2069
+ },
2070
+ // @deprecated - kept for backward compatibility
864
2071
  entryId: {
865
2072
  type: 'primitive',
866
2073
  value: 'string',
867
- optional: true
2074
+ optional: true,
2075
+ deprecationMessage: 'Use context instead: { type: "entry", id: "your-entry-id" }'
868
2076
  },
869
2077
  kalturaServerURI: {
870
2078
  type: 'primitive',
@@ -1943,4 +3151,4 @@ const contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema = {
1943
3151
  }
1944
3152
  };
1945
3153
 
1946
- export { AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, ChatRuntimeName, ContentGalleryToolRuntimeName, DeviceType, DisconnectReasons, FlashcardsToolRuntimeName, FollowupsToolRuntimeName, GenUiComponentsToolRuntimeName, GenUiComposerToolRuntimeName, GtcAgendaListToolRuntimeName, GtcAgendaToolRuntimeName, KalturaVideoPlayerToolRuntimeName, Nvidia2026EventToolRuntimeName, SourcesToolRuntimeName, SummaryToolRuntimeName, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeAgentVisualSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, contentGalleryToolRuntimeAvatarVisualSettingsSchema, contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema, contentGalleryToolRuntimeSettingsSchema, flashcardsToolRuntimeSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genUiComponentsToolRuntimeCardVisualSettingsSchema, genUiComponentsToolRuntimeLoginVisualSettingsSchema, genUiComponentsToolRuntimeMarkdownVisualSettingsSchema, genUiComponentsToolRuntimePlayerVisualSettingsSchema, genUiComponentsToolRuntimeQuestionsPresetsVisualSettingsSchema, genUiComponentsToolRuntimeSettingsSchema, genUiComposerToolRuntimeAvatarVisualSettingsSchema, genUiComposerToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getSourceUrlSchema, gtcAgendaListToolRuntimeAvatarVisualSettingsSchema, gtcAgendaListToolRuntimeSettingsSchema, gtcAgendaToolRuntimeAvatarVisualSettingsSchema, gtcAgendaToolRuntimeSettingsSchema, integrationsSchema, isAvatarConnectionProxyInternalType, kalturaVideoPlayerToolRuntimeAvatarVisualSettingsSchema, kalturaVideoPlayerToolRuntimeSettingsSchema, nvidia2026EventToolRuntimeSettingsSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, slideSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, widgetName };
3154
+ export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ContentGalleryToolRuntimeName, DeviceType, DisconnectReasons, FlashcardsToolRuntimeName, FollowupsToolRuntimeName, GenUiComponentsToolRuntimeName, GenUiComposerToolRuntimeName, GtcAgendaListToolRuntimeName, GtcAgendaToolRuntimeName, KalturaVideoPlayerToolRuntimeName, Nvidia2026EventToolRuntimeName, SourcesToolRuntimeName, SummaryToolRuntimeName, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeAgentVisualSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, contentGalleryToolRuntimeAvatarVisualSettingsSchema, contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema, contentGalleryToolRuntimeSettingsSchema, everywhereVisualSettingsSchema, flashcardsToolRuntimeSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genUiComponentsToolRuntimeCardVisualSettingsSchema, genUiComponentsToolRuntimeLoginVisualSettingsSchema, genUiComponentsToolRuntimeMarkdownVisualSettingsSchema, genUiComponentsToolRuntimePlayerVisualSettingsSchema, genUiComponentsToolRuntimeQuestionsPresetsVisualSettingsSchema, genUiComponentsToolRuntimeSettingsSchema, genUiComposerToolRuntimeAvatarVisualSettingsSchema, genUiComposerToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getSourceUrlSchema, gtcAgendaListToolRuntimeAvatarVisualSettingsSchema, gtcAgendaListToolRuntimeSettingsSchema, gtcAgendaToolRuntimeAvatarVisualSettingsSchema, gtcAgendaToolRuntimeSettingsSchema, integrationsSchema, isAvatarConnectionProxyInternalType, kalturaVideoPlayerToolRuntimeAvatarVisualSettingsSchema, kalturaVideoPlayerToolRuntimeSettingsSchema, nvidia2026EventToolRuntimeSettingsSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, slideSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, widgetName };