@unisphere/genie-types 1.47.1 → 1.47.3

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
@@ -92,21 +92,21 @@ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
92
92
  };
93
93
  };
94
94
 
95
- var uncurryThis$e = functionUncurryThis;
95
+ var uncurryThis$f = functionUncurryThis;
96
96
 
97
- var toString$1 = uncurryThis$e({}.toString);
98
- var stringSlice$1 = uncurryThis$e(''.slice);
97
+ var toString$3 = uncurryThis$f({}.toString);
98
+ var stringSlice$1 = uncurryThis$f(''.slice);
99
99
 
100
100
  var classofRaw$2 = function (it) {
101
- return stringSlice$1(toString$1(it), 8, -1);
101
+ return stringSlice$1(toString$3(it), 8, -1);
102
102
  };
103
103
 
104
- var uncurryThis$d = functionUncurryThis;
104
+ var uncurryThis$e = functionUncurryThis;
105
105
  var fails$c = fails$f;
106
- var classof$2 = classofRaw$2;
106
+ var classof$4 = classofRaw$2;
107
107
 
108
108
  var $Object$4 = Object;
109
- var split = uncurryThis$d(''.split);
109
+ var split = uncurryThis$e(''.split);
110
110
 
111
111
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
112
  var indexedObject = fails$c(function () {
@@ -114,7 +114,7 @@ var indexedObject = fails$c(function () {
114
114
  // eslint-disable-next-line no-prototype-builtins -- safe
115
115
  return !$Object$4('z').propertyIsEnumerable(0);
116
116
  }) ? function (it) {
117
- return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
117
+ return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
118
118
  } : $Object$4;
119
119
 
120
120
  // we can't use just `it == null` since of `document.all` special case
@@ -125,21 +125,21 @@ var isNullOrUndefined$3 = function (it) {
125
125
 
126
126
  var isNullOrUndefined$2 = isNullOrUndefined$3;
127
127
 
128
- var $TypeError$b = TypeError;
128
+ var $TypeError$c = TypeError;
129
129
 
130
130
  // `RequireObjectCoercible` abstract operation
131
131
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
- var requireObjectCoercible$3 = function (it) {
133
- if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
132
+ var requireObjectCoercible$4 = function (it) {
133
+ if (isNullOrUndefined$2(it)) throw new $TypeError$c("Can't call method on " + it);
134
134
  return it;
135
135
  };
136
136
 
137
137
  // toObject with fallback for non-array-like ES3 strings
138
138
  var IndexedObject$1 = indexedObject;
139
- var requireObjectCoercible$2 = requireObjectCoercible$3;
139
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
140
140
 
141
141
  var toIndexedObject$5 = function (it) {
142
- return IndexedObject$1(requireObjectCoercible$2(it));
142
+ return IndexedObject$1(requireObjectCoercible$3(it));
143
143
  };
144
144
 
145
145
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -156,7 +156,7 @@ var isCallable$f = typeof documentAll == 'undefined' && documentAll !== undefine
156
156
 
157
157
  var isCallable$e = isCallable$f;
158
158
 
159
- var isObject$8 = function (it) {
159
+ var isObject$9 = function (it) {
160
160
  return typeof it == 'object' ? it !== null : isCallable$e(it);
161
161
  };
162
162
 
@@ -171,9 +171,9 @@ var getBuiltIn$4 = function (namespace, method) {
171
171
  return arguments.length < 2 ? aFunction(globalThis$e[namespace]) : globalThis$e[namespace] && globalThis$e[namespace][method];
172
172
  };
173
173
 
174
- var uncurryThis$c = functionUncurryThis;
174
+ var uncurryThis$d = functionUncurryThis;
175
175
 
176
- var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
176
+ var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
177
177
 
178
178
  var globalThis$d = globalThis_1;
179
179
 
@@ -215,7 +215,7 @@ var V8_VERSION = environmentV8Version;
215
215
  var fails$b = fails$f;
216
216
  var globalThis$b = globalThis_1;
217
217
 
218
- var $String$4 = globalThis$b.String;
218
+ var $String$5 = globalThis$b.String;
219
219
 
220
220
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
221
221
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
@@ -224,7 +224,7 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(func
224
224
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
225
225
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
226
226
  // of course, fail.
227
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
227
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
228
228
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
229
229
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
230
230
  });
@@ -250,11 +250,11 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
250
250
  return isCallable$c($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
251
251
  };
252
252
 
253
- var $String$3 = String;
253
+ var $String$4 = String;
254
254
 
255
255
  var tryToString$3 = function (argument) {
256
256
  try {
257
- return $String$3(argument);
257
+ return $String$4(argument);
258
258
  } catch (error) {
259
259
  return 'Object';
260
260
  }
@@ -263,12 +263,12 @@ var tryToString$3 = function (argument) {
263
263
  var isCallable$b = isCallable$f;
264
264
  var tryToString$2 = tryToString$3;
265
265
 
266
- var $TypeError$a = TypeError;
266
+ var $TypeError$b = TypeError;
267
267
 
268
268
  // `Assert: IsCallable(argument) is true`
269
269
  var aCallable$6 = function (argument) {
270
270
  if (isCallable$b(argument)) return argument;
271
- throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
271
+ throw new $TypeError$b(tryToString$2(argument) + ' is not a function');
272
272
  };
273
273
 
274
274
  var aCallable$5 = aCallable$6;
@@ -283,18 +283,18 @@ var getMethod$3 = function (V, P) {
283
283
 
284
284
  var call$a = functionCall;
285
285
  var isCallable$a = isCallable$f;
286
- var isObject$7 = isObject$8;
286
+ var isObject$8 = isObject$9;
287
287
 
288
- var $TypeError$9 = TypeError;
288
+ var $TypeError$a = TypeError;
289
289
 
290
290
  // `OrdinaryToPrimitive` abstract operation
291
291
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
292
292
  var ordinaryToPrimitive$1 = function (input, pref) {
293
293
  var fn, val;
294
- if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
295
- if (isCallable$a(fn = input.valueOf) && !isObject$7(val = call$a(fn, input))) return val;
296
- if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
297
- throw new $TypeError$9("Can't convert object to primitive value");
294
+ if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val;
295
+ if (isCallable$a(fn = input.valueOf) && !isObject$8(val = call$a(fn, input))) return val;
296
+ if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val;
297
+ throw new $TypeError$a("Can't convert object to primitive value");
298
298
  };
299
299
 
300
300
  var sharedStore = {exports: {}};
@@ -334,20 +334,20 @@ var shared$3 = function (key, value) {
334
334
  return store$2[key] || (store$2[key] = value || {});
335
335
  };
336
336
 
337
- var requireObjectCoercible$1 = requireObjectCoercible$3;
337
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
338
338
 
339
339
  var $Object$2 = Object;
340
340
 
341
341
  // `ToObject` abstract operation
342
342
  // https://tc39.es/ecma262/#sec-toobject
343
343
  var toObject$3 = function (argument) {
344
- return $Object$2(requireObjectCoercible$1(argument));
344
+ return $Object$2(requireObjectCoercible$2(argument));
345
345
  };
346
346
 
347
- var uncurryThis$b = functionUncurryThis;
347
+ var uncurryThis$c = functionUncurryThis;
348
348
  var toObject$2 = toObject$3;
349
349
 
350
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
350
+ var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
351
351
 
352
352
  // `HasOwnProperty` abstract operation
353
353
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -356,14 +356,14 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
356
356
  return hasOwnProperty(toObject$2(it), key);
357
357
  };
358
358
 
359
- var uncurryThis$a = functionUncurryThis;
359
+ var uncurryThis$b = functionUncurryThis;
360
360
 
361
361
  var id = 0;
362
362
  var postfix = Math.random();
363
- var toString = uncurryThis$a(1.1.toString);
363
+ var toString$2 = uncurryThis$b(1.1.toString);
364
364
 
365
365
  var uid$2 = function (key) {
366
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
366
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
367
367
  };
368
368
 
369
369
  var globalThis$8 = globalThis_1;
@@ -377,7 +377,7 @@ var Symbol$1 = globalThis$8.Symbol;
377
377
  var WellKnownSymbolsStore = shared$2('wks');
378
378
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
379
379
 
380
- var wellKnownSymbol$b = function (name) {
380
+ var wellKnownSymbol$d = function (name) {
381
381
  if (!hasOwn$9(WellKnownSymbolsStore, name)) {
382
382
  WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
383
383
  ? Symbol$1[name]
@@ -386,26 +386,26 @@ var wellKnownSymbol$b = function (name) {
386
386
  };
387
387
 
388
388
  var call$9 = functionCall;
389
- var isObject$6 = isObject$8;
389
+ var isObject$7 = isObject$9;
390
390
  var isSymbol$1 = isSymbol$2;
391
391
  var getMethod$2 = getMethod$3;
392
392
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
393
- var wellKnownSymbol$a = wellKnownSymbol$b;
393
+ var wellKnownSymbol$c = wellKnownSymbol$d;
394
394
 
395
- var $TypeError$8 = TypeError;
396
- var TO_PRIMITIVE = wellKnownSymbol$a('toPrimitive');
395
+ var $TypeError$9 = TypeError;
396
+ var TO_PRIMITIVE = wellKnownSymbol$c('toPrimitive');
397
397
 
398
398
  // `ToPrimitive` abstract operation
399
399
  // https://tc39.es/ecma262/#sec-toprimitive
400
400
  var toPrimitive$1 = function (input, pref) {
401
- if (!isObject$6(input) || isSymbol$1(input)) return input;
401
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
402
402
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
403
403
  var result;
404
404
  if (exoticToPrim) {
405
405
  if (pref === undefined) pref = 'default';
406
406
  result = call$9(exoticToPrim, input, pref);
407
- if (!isObject$6(result) || isSymbol$1(result)) return result;
408
- throw new $TypeError$8("Can't convert object to primitive value");
407
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
408
+ throw new $TypeError$9("Can't convert object to primitive value");
409
409
  }
410
410
  if (pref === undefined) pref = 'number';
411
411
  return ordinaryToPrimitive(input, pref);
@@ -422,11 +422,11 @@ var toPropertyKey$2 = function (argument) {
422
422
  };
423
423
 
424
424
  var globalThis$7 = globalThis_1;
425
- var isObject$5 = isObject$8;
425
+ var isObject$6 = isObject$9;
426
426
 
427
427
  var document$1 = globalThis$7.document;
428
428
  // typeof document.createElement is 'object' in old IE
429
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
429
+ var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
430
430
 
431
431
  var documentCreateElement$2 = function (it) {
432
432
  return EXISTS$1 ? document$1.createElement(it) : {};
@@ -482,15 +482,15 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$9(function () {
482
482
  }).prototype !== 42;
483
483
  });
484
484
 
485
- var isObject$4 = isObject$8;
485
+ var isObject$5 = isObject$9;
486
486
 
487
- var $String$2 = String;
488
- var $TypeError$7 = TypeError;
487
+ var $String$3 = String;
488
+ var $TypeError$8 = TypeError;
489
489
 
490
490
  // `Assert: Type(argument) is Object`
491
491
  var anObject$a = function (argument) {
492
- if (isObject$4(argument)) return argument;
493
- throw new $TypeError$7($String$2(argument) + ' is not an object');
492
+ if (isObject$5(argument)) return argument;
493
+ throw new $TypeError$8($String$3(argument) + ' is not an object');
494
494
  };
495
495
 
496
496
  var DESCRIPTORS$8 = descriptors;
@@ -499,7 +499,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
499
499
  var anObject$9 = anObject$a;
500
500
  var toPropertyKey = toPropertyKey$2;
501
501
 
502
- var $TypeError$6 = TypeError;
502
+ var $TypeError$7 = TypeError;
503
503
  // eslint-disable-next-line es/no-object-defineproperty -- safe
504
504
  var $defineProperty = Object.defineProperty;
505
505
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -532,7 +532,7 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
532
532
  if (IE8_DOM_DEFINE) try {
533
533
  return $defineProperty(O, P, Attributes);
534
534
  } catch (error) { /* empty */ }
535
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
535
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
536
536
  if ('value' in Attributes) O[P] = Attributes.value;
537
537
  return O;
538
538
  };
@@ -567,11 +567,11 @@ var functionName = {
567
567
  CONFIGURABLE: CONFIGURABLE
568
568
  };
569
569
 
570
- var uncurryThis$9 = functionUncurryThis;
570
+ var uncurryThis$a = functionUncurryThis;
571
571
  var isCallable$9 = isCallable$f;
572
572
  var store$1 = sharedStoreExports;
573
573
 
574
- var functionToString = uncurryThis$9(Function.toString);
574
+ var functionToString = uncurryThis$a(Function.toString);
575
575
 
576
576
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
577
577
  if (!isCallable$9(store$1.inspectSource)) {
@@ -602,7 +602,7 @@ var hiddenKeys$4 = {};
602
602
 
603
603
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
604
604
  var globalThis$5 = globalThis_1;
605
- var isObject$3 = isObject$8;
605
+ var isObject$4 = isObject$9;
606
606
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
607
607
  var hasOwn$6 = hasOwnProperty_1;
608
608
  var shared = sharedStoreExports;
@@ -621,7 +621,7 @@ var enforce = function (it) {
621
621
  var getterFor = function (TYPE) {
622
622
  return function (it) {
623
623
  var state;
624
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
624
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
625
625
  throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
626
626
  } return state;
627
627
  };
@@ -671,7 +671,7 @@ var internalState = {
671
671
  getterFor: getterFor
672
672
  };
673
673
 
674
- var uncurryThis$8 = functionUncurryThis;
674
+ var uncurryThis$9 = functionUncurryThis;
675
675
  var fails$8 = fails$f;
676
676
  var isCallable$7 = isCallable$f;
677
677
  var hasOwn$5 = hasOwnProperty_1;
@@ -682,12 +682,12 @@ var InternalStateModule$1 = internalState;
682
682
 
683
683
  var enforceInternalState = InternalStateModule$1.enforce;
684
684
  var getInternalState$1 = InternalStateModule$1.get;
685
- var $String$1 = String;
685
+ var $String$2 = String;
686
686
  // eslint-disable-next-line es/no-object-defineproperty -- safe
687
687
  var defineProperty$5 = Object.defineProperty;
688
- var stringSlice = uncurryThis$8(''.slice);
689
- var replace = uncurryThis$8(''.replace);
690
- var join = uncurryThis$8([].join);
688
+ var stringSlice = uncurryThis$9(''.slice);
689
+ var replace = uncurryThis$9(''.replace);
690
+ var join = uncurryThis$9([].join);
691
691
 
692
692
  var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$8(function () {
693
693
  return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -696,8 +696,8 @@ var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$8(function () {
696
696
  var TEMPLATE = String(String).split('String');
697
697
 
698
698
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
699
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
700
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
699
+ if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
700
+ name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
701
701
  }
702
702
  if (options && options.getter) name = 'get ' + name;
703
703
  if (options && options.setter) name = 'set ' + name;
@@ -845,13 +845,13 @@ var arrayIncludes = {
845
845
  indexOf: createMethod(false)
846
846
  };
847
847
 
848
- var uncurryThis$7 = functionUncurryThis;
848
+ var uncurryThis$8 = functionUncurryThis;
849
849
  var hasOwn$4 = hasOwnProperty_1;
850
850
  var toIndexedObject$2 = toIndexedObject$5;
851
851
  var indexOf = arrayIncludes.indexOf;
852
852
  var hiddenKeys$2 = hiddenKeys$4;
853
853
 
854
- var push = uncurryThis$7([].push);
854
+ var push = uncurryThis$8([].push);
855
855
 
856
856
  var objectKeysInternal = function (object, names) {
857
857
  var O = toIndexedObject$2(object);
@@ -895,12 +895,12 @@ var objectGetOwnPropertySymbols = {};
895
895
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
896
896
 
897
897
  var getBuiltIn$2 = getBuiltIn$4;
898
- var uncurryThis$6 = functionUncurryThis;
898
+ var uncurryThis$7 = functionUncurryThis;
899
899
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
900
900
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
901
901
  var anObject$8 = anObject$a;
902
902
 
903
- var concat$1 = uncurryThis$6([].concat);
903
+ var concat$1 = uncurryThis$7([].concat);
904
904
 
905
905
  // all object keys, includes non-enumerable and symbols
906
906
  var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1015,7 +1015,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
1015
1015
  };
1016
1016
 
1017
1017
  var DESCRIPTORS$4 = descriptors;
1018
- var uncurryThis$5 = functionUncurryThis;
1018
+ var uncurryThis$6 = functionUncurryThis;
1019
1019
  var call$7 = functionCall;
1020
1020
  var fails$6 = fails$f;
1021
1021
  var objectKeys$1 = objectKeys$2;
@@ -1028,7 +1028,7 @@ var IndexedObject = indexedObject;
1028
1028
  var $assign = Object.assign;
1029
1029
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1030
1030
  var defineProperty$4 = Object.defineProperty;
1031
- var concat = uncurryThis$5([].concat);
1031
+ var concat = uncurryThis$6([].concat);
1032
1032
 
1033
1033
  // `Object.assign` method
1034
1034
  // https://tc39.es/ecma262/#sec-object.assign
@@ -1072,13 +1072,13 @@ var objectAssign = !$assign || fails$6(function () {
1072
1072
  } return T;
1073
1073
  } : $assign;
1074
1074
 
1075
- var $$b = _export;
1075
+ var $$c = _export;
1076
1076
  var assign = objectAssign;
1077
1077
 
1078
1078
  // `Object.assign` method
1079
1079
  // https://tc39.es/ecma262/#sec-object.assign
1080
1080
  // eslint-disable-next-line es/no-object-assign -- required for testing
1081
- $$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1081
+ $$c({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1082
1082
  assign: assign
1083
1083
  });
1084
1084
 
@@ -2297,11 +2297,11 @@ var objectCreate = Object.create || function create(O, Properties) {
2297
2297
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2298
2298
  };
2299
2299
 
2300
- var wellKnownSymbol$9 = wellKnownSymbol$b;
2300
+ var wellKnownSymbol$b = wellKnownSymbol$d;
2301
2301
  var create$1 = objectCreate;
2302
2302
  var defineProperty$3 = objectDefineProperty.f;
2303
2303
 
2304
- var UNSCOPABLES = wellKnownSymbol$9('unscopables');
2304
+ var UNSCOPABLES = wellKnownSymbol$b('unscopables');
2305
2305
  var ArrayPrototype$1 = Array.prototype;
2306
2306
 
2307
2307
  // Array.prototype[@@unscopables]
@@ -2318,7 +2318,7 @@ var addToUnscopables$2 = function (key) {
2318
2318
  ArrayPrototype$1[UNSCOPABLES][key] = true;
2319
2319
  };
2320
2320
 
2321
- var $$a = _export;
2321
+ var $$b = _export;
2322
2322
  var $includes = arrayIncludes.includes;
2323
2323
  var fails$5 = fails$f;
2324
2324
  var addToUnscopables$1 = addToUnscopables$2;
@@ -2331,7 +2331,7 @@ var BROKEN_ON_SPARSE = fails$5(function () {
2331
2331
 
2332
2332
  // `Array.prototype.includes` method
2333
2333
  // https://tc39.es/ecma262/#sec-array.prototype.includes
2334
- $$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2334
+ $$b({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2335
2335
  includes: function includes(el /* , fromIndex = 0 */) {
2336
2336
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2337
2337
  }
@@ -2340,6 +2340,138 @@ $$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2340
2340
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2341
2341
  addToUnscopables$1('includes');
2342
2342
 
2343
+ var isObject$3 = isObject$9;
2344
+ var classof$3 = classofRaw$2;
2345
+ var wellKnownSymbol$a = wellKnownSymbol$d;
2346
+
2347
+ var MATCH$1 = wellKnownSymbol$a('match');
2348
+
2349
+ // `IsRegExp` abstract operation
2350
+ // https://tc39.es/ecma262/#sec-isregexp
2351
+ var isRegexp = function (it) {
2352
+ var isRegExp;
2353
+ return isObject$3(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) === 'RegExp');
2354
+ };
2355
+
2356
+ var isRegExp = isRegexp;
2357
+
2358
+ var $TypeError$6 = TypeError;
2359
+
2360
+ var notARegexp = function (it) {
2361
+ if (isRegExp(it)) {
2362
+ throw new $TypeError$6("The method doesn't accept regular expressions");
2363
+ } return it;
2364
+ };
2365
+
2366
+ var wellKnownSymbol$9 = wellKnownSymbol$d;
2367
+
2368
+ var TO_STRING_TAG$3 = wellKnownSymbol$9('toStringTag');
2369
+ var test = {};
2370
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
2371
+ test[TO_STRING_TAG$3] = 'z';
2372
+
2373
+ var toStringTagSupport = String(test) === '[object z]';
2374
+
2375
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2376
+ var isCallable$4 = isCallable$f;
2377
+ var classofRaw$1 = classofRaw$2;
2378
+ var wellKnownSymbol$8 = wellKnownSymbol$d;
2379
+
2380
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
2381
+ var $Object$1 = Object;
2382
+
2383
+ // ES3 wrong here
2384
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
2385
+
2386
+ // fallback for IE11 Script Access Denied error
2387
+ var tryGet = function (it, key) {
2388
+ try {
2389
+ return it[key];
2390
+ } catch (error) { /* empty */ }
2391
+ };
2392
+
2393
+ // getting tag from ES6+ `Object.prototype.toString`
2394
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
2395
+ var O, tag, result;
2396
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
2397
+ // @@toStringTag case
2398
+ : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == 'string' ? tag
2399
+ // builtinTag case
2400
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
2401
+ // ES3 arguments fallback
2402
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
2403
+ };
2404
+
2405
+ var classof$1 = classof$2;
2406
+
2407
+ var $String$1 = String;
2408
+
2409
+ var toString$1 = function (argument) {
2410
+ if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
2411
+ return $String$1(argument);
2412
+ };
2413
+
2414
+ var wellKnownSymbol$7 = wellKnownSymbol$d;
2415
+
2416
+ var MATCH = wellKnownSymbol$7('match');
2417
+
2418
+ var correctIsRegexpLogic = function (METHOD_NAME) {
2419
+ var regexp = /./;
2420
+ try {
2421
+ '/./'[METHOD_NAME](regexp);
2422
+ } catch (error1) {
2423
+ try {
2424
+ regexp[MATCH] = false;
2425
+ return '/./'[METHOD_NAME](regexp);
2426
+ } catch (error2) { /* empty */ }
2427
+ } return false;
2428
+ };
2429
+
2430
+ var $$a = _export;
2431
+ var uncurryThis$5 = functionUncurryThis;
2432
+ var notARegExp = notARegexp;
2433
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
2434
+ var toString = toString$1;
2435
+ var correctIsRegExpLogic = correctIsRegexpLogic;
2436
+
2437
+ var stringIndexOf = uncurryThis$5(''.indexOf);
2438
+
2439
+ // `String.prototype.includes` method
2440
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
2441
+ $$a({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2442
+ includes: function includes(searchString /* , position = 0 */) {
2443
+ return !!~stringIndexOf(
2444
+ toString(requireObjectCoercible$1(this)),
2445
+ toString(notARegExp(searchString)),
2446
+ arguments.length > 1 ? arguments[1] : undefined
2447
+ );
2448
+ }
2449
+ });
2450
+
2451
+ // Client-facing capability returned by the Genie `/status` API. When on, the
2452
+ // server expects the browser timezone in `request_vars.timezone`.
2453
+ const INCLUDE_TIME_CAPABILITY = 'include_time';
2454
+ const TIMEZONE_VARIABLE_NAME = 'timezone';
2455
+ // IANA zone name (e.g. "Asia/Tokyo"), or undefined when Intl can't resolve it.
2456
+ const getBrowserTimezone = () => {
2457
+ try {
2458
+ return Intl.DateTimeFormat().resolvedOptions().timeZone || undefined;
2459
+ } catch (_a) {
2460
+ return undefined;
2461
+ }
2462
+ };
2463
+ // Request variables the client adds on its own, based on the capabilities the
2464
+ // server reported. Empty when the server didn't report any (older servers).
2465
+ const buildClientRequestVars = serverCapabilities => {
2466
+ if (!(serverCapabilities === null || serverCapabilities === void 0 ? void 0 : serverCapabilities.includes(INCLUDE_TIME_CAPABILITY))) {
2467
+ return {};
2468
+ }
2469
+ const timezone = getBrowserTimezone();
2470
+ return timezone ? {
2471
+ [TIMEZONE_VARIABLE_NAME]: timezone
2472
+ } : {};
2473
+ };
2474
+
2343
2475
  /**
2344
2476
  This list is closed and SHOULD NOT be updates.
2345
2477
  it contains the tools that we had prior to moving them to new experience
@@ -2398,6 +2530,14 @@ const kalturaSchema = {
2398
2530
  allowUnknownProperties: true,
2399
2531
  properties: {}
2400
2532
  },
2533
+ serverCapabilities: {
2534
+ type: 'array',
2535
+ optional: true,
2536
+ items: {
2537
+ type: 'primitive',
2538
+ value: 'string'
2539
+ }
2540
+ },
2401
2541
  // @deprecated - kept for backward compatibility
2402
2542
  entryId: {
2403
2543
  type: 'primitive',
@@ -2702,35 +2842,35 @@ var correctPrototypeGetter = !fails$4(function () {
2702
2842
  });
2703
2843
 
2704
2844
  var hasOwn$2 = hasOwnProperty_1;
2705
- var isCallable$4 = isCallable$f;
2845
+ var isCallable$3 = isCallable$f;
2706
2846
  var toObject = toObject$3;
2707
2847
  var sharedKey = sharedKey$3;
2708
2848
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2709
2849
 
2710
2850
  var IE_PROTO = sharedKey('IE_PROTO');
2711
- var $Object$1 = Object;
2712
- var ObjectPrototype = $Object$1.prototype;
2851
+ var $Object = Object;
2852
+ var ObjectPrototype = $Object.prototype;
2713
2853
 
2714
2854
  // `Object.getPrototypeOf` method
2715
2855
  // https://tc39.es/ecma262/#sec-object.getprototypeof
2716
2856
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
2717
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
2857
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2718
2858
  var object = toObject(O);
2719
2859
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
2720
2860
  var constructor = object.constructor;
2721
- if (isCallable$4(constructor) && object instanceof constructor) {
2861
+ if (isCallable$3(constructor) && object instanceof constructor) {
2722
2862
  return constructor.prototype;
2723
- } return object instanceof $Object$1 ? ObjectPrototype : null;
2863
+ } return object instanceof $Object ? ObjectPrototype : null;
2724
2864
  };
2725
2865
 
2726
2866
  var fails$3 = fails$f;
2727
- var isCallable$3 = isCallable$f;
2728
- var isObject$2 = isObject$8;
2867
+ var isCallable$2 = isCallable$f;
2868
+ var isObject$2 = isObject$9;
2729
2869
  var getPrototypeOf$2 = objectGetPrototypeOf;
2730
2870
  var defineBuiltIn$1 = defineBuiltIn$3;
2731
- var wellKnownSymbol$8 = wellKnownSymbol$b;
2871
+ var wellKnownSymbol$6 = wellKnownSymbol$d;
2732
2872
 
2733
- var ITERATOR$5 = wellKnownSymbol$8('iterator');
2873
+ var ITERATOR$5 = wellKnownSymbol$6('iterator');
2734
2874
  var BUGGY_SAFARI_ITERATORS$1 = false;
2735
2875
 
2736
2876
  // `%IteratorPrototype%` object
@@ -2758,7 +2898,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$3 = {};
2758
2898
 
2759
2899
  // `%IteratorPrototype%[@@iterator]()` method
2760
2900
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2761
- if (!isCallable$3(IteratorPrototype$3[ITERATOR$5])) {
2901
+ if (!isCallable$2(IteratorPrototype$3[ITERATOR$5])) {
2762
2902
  defineBuiltIn$1(IteratorPrototype$3, ITERATOR$5, function () {
2763
2903
  return this;
2764
2904
  });
@@ -2771,14 +2911,14 @@ var iteratorsCore = {
2771
2911
 
2772
2912
  var defineProperty$2 = objectDefineProperty.f;
2773
2913
  var hasOwn$1 = hasOwnProperty_1;
2774
- var wellKnownSymbol$7 = wellKnownSymbol$b;
2914
+ var wellKnownSymbol$5 = wellKnownSymbol$d;
2775
2915
 
2776
- var TO_STRING_TAG$3 = wellKnownSymbol$7('toStringTag');
2916
+ var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
2777
2917
 
2778
2918
  var setToStringTag$3 = function (target, TAG, STATIC) {
2779
2919
  if (target && !STATIC) target = target.prototype;
2780
- if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
2781
- defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
2920
+ if (target && !hasOwn$1(target, TO_STRING_TAG$1)) {
2921
+ defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
2782
2922
  }
2783
2923
  };
2784
2924
 
@@ -2808,7 +2948,7 @@ var functionUncurryThisAccessor = function (object, key, method) {
2808
2948
  } catch (error) { /* empty */ }
2809
2949
  };
2810
2950
 
2811
- var isObject$1 = isObject$8;
2951
+ var isObject$1 = isObject$9;
2812
2952
 
2813
2953
  var isPossiblePrototype$1 = function (argument) {
2814
2954
  return isObject$1(argument) || argument === null;
@@ -2826,8 +2966,8 @@ var aPossiblePrototype$1 = function (argument) {
2826
2966
 
2827
2967
  /* eslint-disable no-proto -- safe */
2828
2968
  var uncurryThisAccessor$1 = functionUncurryThisAccessor;
2829
- var isObject = isObject$8;
2830
- var requireObjectCoercible = requireObjectCoercible$3;
2969
+ var isObject = isObject$9;
2970
+ var requireObjectCoercible = requireObjectCoercible$4;
2831
2971
  var aPossiblePrototype = aPossiblePrototype$1;
2832
2972
 
2833
2973
  // `Object.setPrototypeOf` method
@@ -2856,14 +2996,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
2856
2996
  var $$9 = _export;
2857
2997
  var call$6 = functionCall;
2858
2998
  var FunctionName = functionName;
2859
- var isCallable$2 = isCallable$f;
2999
+ var isCallable$1 = isCallable$f;
2860
3000
  var createIteratorConstructor = iteratorCreateConstructor;
2861
3001
  var getPrototypeOf$1 = objectGetPrototypeOf;
2862
3002
  var setPrototypeOf = objectSetPrototypeOf;
2863
3003
  var setToStringTag$1 = setToStringTag$3;
2864
3004
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
2865
3005
  var defineBuiltIn = defineBuiltIn$3;
2866
- var wellKnownSymbol$6 = wellKnownSymbol$b;
3006
+ var wellKnownSymbol$4 = wellKnownSymbol$d;
2867
3007
  var Iterators$3 = iterators;
2868
3008
  var IteratorsCore = iteratorsCore;
2869
3009
 
@@ -2871,7 +3011,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2871
3011
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2872
3012
  var IteratorPrototype$1 = IteratorsCore.IteratorPrototype;
2873
3013
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2874
- var ITERATOR$4 = wellKnownSymbol$6('iterator');
3014
+ var ITERATOR$4 = wellKnownSymbol$4('iterator');
2875
3015
  var KEYS = 'keys';
2876
3016
  var VALUES = 'values';
2877
3017
  var ENTRIES = 'entries';
@@ -2911,7 +3051,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2911
3051
  if (getPrototypeOf$1(CurrentIteratorPrototype) !== IteratorPrototype$1) {
2912
3052
  if (setPrototypeOf) {
2913
3053
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$1);
2914
- } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$4])) {
3054
+ } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$4])) {
2915
3055
  defineBuiltIn(CurrentIteratorPrototype, ITERATOR$4, returnThis);
2916
3056
  }
2917
3057
  }
@@ -3579,9 +3719,9 @@ var DOMTokenListPrototype = domTokenListPrototype;
3579
3719
  var ArrayIteratorMethods = es_array_iterator;
3580
3720
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
3581
3721
  var setToStringTag = setToStringTag$3;
3582
- var wellKnownSymbol$5 = wellKnownSymbol$b;
3722
+ var wellKnownSymbol$3 = wellKnownSymbol$d;
3583
3723
 
3584
- var ITERATOR$3 = wellKnownSymbol$5('iterator');
3724
+ var ITERATOR$3 = wellKnownSymbol$3('iterator');
3585
3725
  var ArrayValues = ArrayIteratorMethods.values;
3586
3726
 
3587
3727
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -3739,25 +3879,25 @@ var $$1 = _export;
3739
3879
  var globalThis$2 = globalThis_1;
3740
3880
  var anInstance = anInstance$1;
3741
3881
  var anObject$3 = anObject$a;
3742
- var isCallable$1 = isCallable$f;
3882
+ var isCallable = isCallable$f;
3743
3883
  var getPrototypeOf = objectGetPrototypeOf;
3744
3884
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
3745
3885
  var createProperty = createProperty$1;
3746
3886
  var fails = fails$f;
3747
3887
  var hasOwn = hasOwnProperty_1;
3748
- var wellKnownSymbol$4 = wellKnownSymbol$b;
3888
+ var wellKnownSymbol$2 = wellKnownSymbol$d;
3749
3889
  var IteratorPrototype = iteratorsCore.IteratorPrototype;
3750
3890
  var DESCRIPTORS = descriptors;
3751
3891
 
3752
3892
  var CONSTRUCTOR = 'constructor';
3753
3893
  var ITERATOR$2 = 'Iterator';
3754
- var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
3894
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
3755
3895
 
3756
3896
  var $TypeError$2 = TypeError;
3757
3897
  var NativeIterator = globalThis$2[ITERATOR$2];
3758
3898
 
3759
3899
  // FF56- have non-standard global helper `Iterator`
3760
- var FORCED = !isCallable$1(NativeIterator)
3900
+ var FORCED = !isCallable(NativeIterator)
3761
3901
  || NativeIterator.prototype !== IteratorPrototype
3762
3902
  // FF44- non-standard `Iterator` passes previous tests
3763
3903
  || !fails(function () { NativeIterator({}); });
@@ -3784,7 +3924,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
3784
3924
  } else IteratorPrototype[key] = value;
3785
3925
  };
3786
3926
 
3787
- if (!hasOwn(IteratorPrototype, TO_STRING_TAG$2)) defineIteratorPrototypeAccessor(TO_STRING_TAG$2, ITERATOR$2);
3927
+ if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR$2);
3788
3928
 
3789
3929
  if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
3790
3930
  defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
@@ -3798,14 +3938,14 @@ $$1({ global: true, constructor: true, forced: FORCED }, {
3798
3938
  Iterator: IteratorConstructor
3799
3939
  });
3800
3940
 
3801
- var classofRaw$1 = classofRaw$2;
3941
+ var classofRaw = classofRaw$2;
3802
3942
  var uncurryThis$1 = functionUncurryThis;
3803
3943
 
3804
3944
  var functionUncurryThisClause = function (fn) {
3805
3945
  // Nashorn bug:
3806
3946
  // https://github.com/zloirock/core-js/issues/1128
3807
3947
  // https://github.com/zloirock/core-js/issues/1130
3808
- if (classofRaw$1(fn) === 'Function') return uncurryThis$1(fn);
3948
+ if (classofRaw(fn) === 'Function') return uncurryThis$1(fn);
3809
3949
  };
3810
3950
 
3811
3951
  var uncurryThis = functionUncurryThisClause;
@@ -3822,10 +3962,10 @@ var functionBindContext = function (fn, that) {
3822
3962
  };
3823
3963
  };
3824
3964
 
3825
- var wellKnownSymbol$3 = wellKnownSymbol$b;
3965
+ var wellKnownSymbol$1 = wellKnownSymbol$d;
3826
3966
  var Iterators$1 = iterators;
3827
3967
 
3828
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
3968
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
3829
3969
  var ArrayPrototype = Array.prototype;
3830
3970
 
3831
3971
  // check on default Array iterator
@@ -3833,50 +3973,11 @@ var isArrayIteratorMethod$1 = function (it) {
3833
3973
  return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
3834
3974
  };
3835
3975
 
3836
- var wellKnownSymbol$2 = wellKnownSymbol$b;
3837
-
3838
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
3839
- var test = {};
3840
- // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
3841
- test[TO_STRING_TAG$1] = 'z';
3842
-
3843
- var toStringTagSupport = String(test) === '[object z]';
3844
-
3845
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
3846
- var isCallable = isCallable$f;
3847
- var classofRaw = classofRaw$2;
3848
- var wellKnownSymbol$1 = wellKnownSymbol$b;
3849
-
3850
- var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
3851
- var $Object = Object;
3852
-
3853
- // ES3 wrong here
3854
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
3855
-
3856
- // fallback for IE11 Script Access Denied error
3857
- var tryGet = function (it, key) {
3858
- try {
3859
- return it[key];
3860
- } catch (error) { /* empty */ }
3861
- };
3862
-
3863
- // getting tag from ES6+ `Object.prototype.toString`
3864
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
3865
- var O, tag, result;
3866
- return it === undefined ? 'Undefined' : it === null ? 'Null'
3867
- // @@toStringTag case
3868
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
3869
- // builtinTag case
3870
- : CORRECT_ARGUMENTS ? classofRaw(O)
3871
- // ES3 arguments fallback
3872
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
3873
- };
3874
-
3875
- var classof = classof$1;
3976
+ var classof = classof$2;
3876
3977
  var getMethod = getMethod$3;
3877
3978
  var isNullOrUndefined = isNullOrUndefined$3;
3878
3979
  var Iterators = iterators;
3879
- var wellKnownSymbol = wellKnownSymbol$b;
3980
+ var wellKnownSymbol = wellKnownSymbol$d;
3880
3981
 
3881
3982
  var ITERATOR = wellKnownSymbol('iterator');
3882
3983
 
@@ -4059,4 +4160,4 @@ function isTextBlock(b) {
4059
4160
  }
4060
4161
  const hasSources = blocks => blocks.some(b => b.type === 'unisphere-tool' && b.runtimeName === 'sources-tool');
4061
4162
 
4062
- export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, SUPPORTED_LAYOUT_TYPES, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeConnectSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatCustomizationSchemaProperties, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, hasSources, integrationsSchema, isAvatarConnectionProxyInternalType, isFlashcardBlock, isFlashcardElement, isFollowupsBlock, isFollowupsElement, isPDFSourceItem, isSourcesBlock, isSourcesElement, isTextBlock, isTextFlashcard, isVideoGalleryFlashcard, isVideoSourceItem, multipleAvatarBehaviorSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
4163
+ export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, INCLUDE_TIME_CAPABILITY, SUPPORTED_LAYOUT_TYPES, TIMEZONE_VARIABLE_NAME, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeConnectSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, buildClientRequestVars, chatContextSchema, chatCustomizationSchema, chatCustomizationSchemaProperties, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getBrowserTimezone, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, hasSources, integrationsSchema, isAvatarConnectionProxyInternalType, isFlashcardBlock, isFlashcardElement, isFollowupsBlock, isFollowupsElement, isPDFSourceItem, isSourcesBlock, isSourcesElement, isTextBlock, isTextFlashcard, isVideoGalleryFlashcard, isVideoSourceItem, multipleAvatarBehaviorSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.47.1",
3
+ "version": "1.47.3",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -160,6 +160,8 @@ export type AvatarRuntimeSettings = {
160
160
  everywhere?: boolean;
161
161
  /** Genie capability overrides — defaults applied per API if absent */
162
162
  capabilities?: GenieCapabilities;
163
+ /** Client-facing capabilities turned on for the partner, as returned by the Genie `/status` API (e.g. `include_time`) */
164
+ serverCapabilities?: string[];
163
165
  /** Kaltura server URI */
164
166
  kalturaServerURI?: string;
165
167
  /** Kaltura partner ID */
@@ -1,5 +1,6 @@
1
1
  import { AvatarContentData } from './shared-types';
2
2
  import { UnisphereVisualBridgeType } from '@unisphere/runtime-js';
3
+ import { TinyDataStoreConsumer } from '@unisphere/core';
3
4
  export type SlotMode = 'append' | 'replace';
4
5
  export type SlotMount = (container: HTMLElement) => () => void;
5
6
  export type SlotType = 'controls' | 'avatar';
@@ -36,6 +37,9 @@ export interface VisualBehavior {
36
37
  hideMicControls?: boolean;
37
38
  tapToTalkLabels?: TapToTalkLabels;
38
39
  }
40
+ export interface AgentBehavior extends Omit<VisualBehavior, 'pauseAfterSpeaking' | 'pauseImmediately'> {
41
+ layout?: LayoutType;
42
+ }
39
43
  export interface VisualTypeConfig {
40
44
  behavior?: VisualBehavior;
41
45
  layout?: LayoutConfig;
@@ -61,4 +65,7 @@ export interface ActionContext {
61
65
  }
62
66
  export interface AvatarVisualBridgeType extends UnisphereVisualBridgeType<VisualTypeConfig, ResolvedCapabilities> {
63
67
  getActionContext(): ActionContext | null;
68
+ readonly agentBehavior: TinyDataStoreConsumer<AgentBehavior | null>;
69
+ setAgentBehavior(patch: AgentBehavior): void;
70
+ clearAgentBehavior(): void;
64
71
  }
@@ -0,0 +1,4 @@
1
+ export declare const INCLUDE_TIME_CAPABILITY = "include_time";
2
+ export declare const TIMEZONE_VARIABLE_NAME = "timezone";
3
+ export declare const getBrowserTimezone: () => string | undefined;
4
+ export declare const buildClientRequestVars: (serverCapabilities: string[] | undefined) => Record<string, string>;
@@ -2,3 +2,4 @@ export * from './runtime-types';
2
2
  export * from './runtime-player-plugin-types';
3
3
  export * from './visuals-types';
4
4
  export * from './shared-settings';
5
+ export * from './client-request-vars';