reacthub-pixitweenjs 0.2.107-test.0 → 0.2.107-test.1

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/dist/index.es.js CHANGED
@@ -241,19 +241,19 @@ const GsapPixieContext = React.createContext({}), Events = {
241
241
  ), Oe = React.useCallback(() => {
242
242
  if (E.current === null)
243
243
  return;
244
- const Le = E.current.x, Ne = E.current.y, Ve = E.current.width, Xe = E.current.height, Ue = E.current.rotation, We = [
244
+ const Le = E.current.x, Ne = E.current.y, Ve = E.current.width, We = E.current.height, Ue = E.current.rotation, Xe = [
245
245
  E.current.scale.x,
246
246
  E.current.scale.y
247
- ], He = We[0] < 0 ? -1 : 1, ze = We[1] < 0 ? -1 : 1;
247
+ ], ze = Xe[0] < 0 ? -1 : 1, He = Xe[1] < 0 ? -1 : 1;
248
248
  B && (B({
249
249
  uniqueId: Y,
250
250
  transformation: {
251
251
  x: Math.round(Le),
252
252
  y: Math.round(Ne),
253
253
  width: Math.round(Math.max(5, Ve)),
254
- height: Math.round(Math.max(5, Xe)),
254
+ height: Math.round(Math.max(5, We)),
255
255
  rotation: Ue,
256
- scale: K ? We : [He, ze]
256
+ scale: K ? Xe : [ze, He]
257
257
  // @todo: fix this for text
258
258
  }
259
259
  }), emitCustomEvent(Events.TRANSFORMER_DRAG_END, { uniqueId: "timeline" })), Z.current.isDragging = !1;
@@ -283,75 +283,29 @@ const GsapPixieContext = React.createContext({}), Events = {
283
283
  }
284
284
  );
285
285
  };
286
- function listCacheClear$1() {
287
- this.__data__ = [], this.size = 0;
288
- }
289
- var _listCacheClear = listCacheClear$1;
290
- function eq$2(C, E) {
291
- return C === E || C !== C && E !== E;
292
- }
293
- var eq_1 = eq$2, eq$1 = eq_1;
294
- function assocIndexOf$4(C, E) {
295
- for (var I = C.length; I--; )
296
- if (eq$1(C[I][0], E))
297
- return I;
298
- return -1;
299
- }
300
- var _assocIndexOf = assocIndexOf$4, assocIndexOf$3 = _assocIndexOf, arrayProto = Array.prototype, splice = arrayProto.splice;
301
- function listCacheDelete$1(C) {
302
- var E = this.__data__, I = assocIndexOf$3(E, C);
303
- if (I < 0)
304
- return !1;
305
- var B = E.length - 1;
306
- return I == B ? E.pop() : splice.call(E, I, 1), --this.size, !0;
307
- }
308
- var _listCacheDelete = listCacheDelete$1, assocIndexOf$2 = _assocIndexOf;
309
- function listCacheGet$1(C) {
310
- var E = this.__data__, I = assocIndexOf$2(E, C);
311
- return I < 0 ? void 0 : E[I][1];
312
- }
313
- var _listCacheGet = listCacheGet$1, assocIndexOf$1 = _assocIndexOf;
314
- function listCacheHas$1(C) {
315
- return assocIndexOf$1(this.__data__, C) > -1;
316
- }
317
- var _listCacheHas = listCacheHas$1, assocIndexOf = _assocIndexOf;
318
- function listCacheSet$1(C, E) {
319
- var I = this.__data__, B = assocIndexOf(I, C);
320
- return B < 0 ? (++this.size, I.push([C, E])) : I[B][1] = E, this;
321
- }
322
- var _listCacheSet = listCacheSet$1, listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
323
- function ListCache$4(C) {
324
- var E = -1, I = C == null ? 0 : C.length;
325
- for (this.clear(); ++E < I; ) {
326
- var B = C[E];
327
- this.set(B[0], B[1]);
328
- }
329
- }
330
- ListCache$4.prototype.clear = listCacheClear;
331
- ListCache$4.prototype.delete = listCacheDelete;
332
- ListCache$4.prototype.get = listCacheGet;
333
- ListCache$4.prototype.has = listCacheHas;
334
- ListCache$4.prototype.set = listCacheSet;
335
- var _ListCache = ListCache$4, ListCache$3 = _ListCache;
336
- function stackClear$1() {
337
- this.__data__ = new ListCache$3(), this.size = 0;
338
- }
339
- var _stackClear = stackClear$1;
340
- function stackDelete$1(C) {
341
- var E = this.__data__, I = E.delete(C);
342
- return this.size = E.size, I;
286
+ var objectProto$c = Object.prototype;
287
+ function isPrototype$2(C) {
288
+ var E = C && C.constructor, I = typeof E == "function" && E.prototype || objectProto$c;
289
+ return C === I;
343
290
  }
344
- var _stackDelete = stackDelete$1;
345
- function stackGet$1(C) {
346
- return this.__data__.get(C);
291
+ var _isPrototype = isPrototype$2;
292
+ function overArg$1(C, E) {
293
+ return function(I) {
294
+ return C(E(I));
295
+ };
347
296
  }
348
- var _stackGet = stackGet$1;
349
- function stackHas$1(C) {
350
- return this.__data__.has(C);
297
+ var _overArg = overArg$1, overArg = _overArg, nativeKeys$1 = overArg(Object.keys, Object), _nativeKeys = nativeKeys$1, isPrototype$1 = _isPrototype, nativeKeys = _nativeKeys, objectProto$b = Object.prototype, hasOwnProperty$9 = objectProto$b.hasOwnProperty;
298
+ function baseKeys$2(C) {
299
+ if (!isPrototype$1(C))
300
+ return nativeKeys(C);
301
+ var E = [];
302
+ for (var I in Object(C))
303
+ hasOwnProperty$9.call(C, I) && I != "constructor" && E.push(I);
304
+ return E;
351
305
  }
352
- var _stackHas = stackHas$1, freeGlobal$1 = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1, _freeGlobal = freeGlobal$1, freeGlobal = _freeGlobal, freeSelf = typeof self == "object" && self && self.Object === Object && self, root$9 = freeGlobal || freeSelf || Function("return this")(), _root = root$9, root$8 = _root, Symbol$5 = root$8.Symbol, _Symbol = Symbol$5, Symbol$4 = _Symbol, objectProto$c = Object.prototype, hasOwnProperty$9 = objectProto$c.hasOwnProperty, nativeObjectToString$1 = objectProto$c.toString, symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : void 0;
306
+ var _baseKeys = baseKeys$2, freeGlobal$1 = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1, _freeGlobal = freeGlobal$1, freeGlobal = _freeGlobal, freeSelf = typeof self == "object" && self && self.Object === Object && self, root$9 = freeGlobal || freeSelf || Function("return this")(), _root = root$9, root$8 = _root, Symbol$5 = root$8.Symbol, _Symbol = Symbol$5, Symbol$4 = _Symbol, objectProto$a = Object.prototype, hasOwnProperty$8 = objectProto$a.hasOwnProperty, nativeObjectToString$1 = objectProto$a.toString, symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : void 0;
353
307
  function getRawTag$1(C) {
354
- var E = hasOwnProperty$9.call(C, symToStringTag$1), I = C[symToStringTag$1];
308
+ var E = hasOwnProperty$8.call(C, symToStringTag$1), I = C[symToStringTag$1];
355
309
  try {
356
310
  C[symToStringTag$1] = void 0;
357
311
  var B = !0;
@@ -360,7 +314,7 @@ function getRawTag$1(C) {
360
314
  var U = nativeObjectToString$1.call(C);
361
315
  return B && (E ? C[symToStringTag$1] = I : delete C[symToStringTag$1]), U;
362
316
  }
363
- var _getRawTag = getRawTag$1, objectProto$b = Object.prototype, nativeObjectToString = objectProto$b.toString;
317
+ var _getRawTag = getRawTag$1, objectProto$9 = Object.prototype, nativeObjectToString = objectProto$9.toString;
364
318
  function objectToString$2(C) {
365
319
  return nativeObjectToString.call(C);
366
320
  }
@@ -401,8 +355,8 @@ function toSource$2(C) {
401
355
  }
402
356
  return "";
403
357
  }
404
- var _toSource = toSource$2, isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource, reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto = Function.prototype, objectProto$a = Object.prototype, funcToString = funcProto.toString, hasOwnProperty$8 = objectProto$a.hasOwnProperty, reIsNative = RegExp(
405
- "^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
358
+ var _toSource = toSource$2, isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource, reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto = Function.prototype, objectProto$8 = Object.prototype, funcToString = funcProto.toString, hasOwnProperty$7 = objectProto$8.hasOwnProperty, reIsNative = RegExp(
359
+ "^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
406
360
  );
407
361
  function baseIsNative$1(C) {
408
362
  if (!isObject$3(C) || isMasked(C))
@@ -419,718 +373,333 @@ function getNative$6(C, E) {
419
373
  var I = getValue(C, E);
420
374
  return baseIsNative(I) ? I : void 0;
421
375
  }
422
- var _getNative = getNative$6, getNative$5 = _getNative, root$6 = _root, Map$4 = getNative$5(root$6, "Map"), _Map = Map$4, getNative$4 = _getNative, nativeCreate$4 = getNative$4(Object, "create"), _nativeCreate = nativeCreate$4, nativeCreate$3 = _nativeCreate;
423
- function hashClear$1() {
424
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}, this.size = 0;
376
+ var _getNative = getNative$6, getNative$5 = _getNative, root$6 = _root, DataView$2 = getNative$5(root$6, "DataView"), _DataView = DataView$2, getNative$4 = _getNative, root$5 = _root, Map$4 = getNative$4(root$5, "Map"), _Map = Map$4, getNative$3 = _getNative, root$4 = _root, Promise$2 = getNative$3(root$4, "Promise"), _Promise = Promise$2, getNative$2 = _getNative, root$3 = _root, Set$2 = getNative$2(root$3, "Set"), _Set = Set$2, getNative$1 = _getNative, root$2 = _root, WeakMap$2 = getNative$1(root$2, "WeakMap"), _WeakMap = WeakMap$2, DataView$1 = _DataView, Map$3 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag$3 = _baseGetTag, toSource = _toSource, mapTag$3 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]", dataViewTag$2 = "[object DataView]", dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$3), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1), getTag$2 = baseGetTag$3;
377
+ (DataView$1 && getTag$2(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 || Map$3 && getTag$2(new Map$3()) != mapTag$3 || Promise$1 && getTag$2(Promise$1.resolve()) != promiseTag || Set$1 && getTag$2(new Set$1()) != setTag$3 || WeakMap$1 && getTag$2(new WeakMap$1()) != weakMapTag$1) && (getTag$2 = function(C) {
378
+ var E = baseGetTag$3(C), I = E == objectTag$2 ? C.constructor : void 0, B = I ? toSource(I) : "";
379
+ if (B)
380
+ switch (B) {
381
+ case dataViewCtorString:
382
+ return dataViewTag$2;
383
+ case mapCtorString:
384
+ return mapTag$3;
385
+ case promiseCtorString:
386
+ return promiseTag;
387
+ case setCtorString:
388
+ return setTag$3;
389
+ case weakMapCtorString:
390
+ return weakMapTag$1;
391
+ }
392
+ return E;
393
+ });
394
+ var _getTag = getTag$2;
395
+ function isObjectLike$5(C) {
396
+ return C != null && typeof C == "object";
425
397
  }
426
- var _hashClear = hashClear$1;
427
- function hashDelete$1(C) {
428
- var E = this.has(C) && delete this.__data__[C];
429
- return this.size -= E ? 1 : 0, E;
398
+ var isObjectLike_1 = isObjectLike$5, baseGetTag$2 = _baseGetTag, isObjectLike$4 = isObjectLike_1, argsTag$2 = "[object Arguments]";
399
+ function baseIsArguments$1(C) {
400
+ return isObjectLike$4(C) && baseGetTag$2(C) == argsTag$2;
430
401
  }
431
- var _hashDelete = hashDelete$1, nativeCreate$2 = _nativeCreate, HASH_UNDEFINED$2 = "__lodash_hash_undefined__", objectProto$9 = Object.prototype, hasOwnProperty$7 = objectProto$9.hasOwnProperty;
432
- function hashGet$1(C) {
433
- var E = this.__data__;
434
- if (nativeCreate$2) {
435
- var I = E[C];
436
- return I === HASH_UNDEFINED$2 ? void 0 : I;
437
- }
438
- return hasOwnProperty$7.call(E, C) ? E[C] : void 0;
402
+ var _baseIsArguments = baseIsArguments$1, baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1, objectProto$7 = Object.prototype, hasOwnProperty$6 = objectProto$7.hasOwnProperty, propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable, isArguments$3 = baseIsArguments(function() {
403
+ return arguments;
404
+ }()) ? baseIsArguments : function(C) {
405
+ return isObjectLike$3(C) && hasOwnProperty$6.call(C, "callee") && !propertyIsEnumerable$1.call(C, "callee");
406
+ }, isArguments_1 = isArguments$3, isArray$e = Array.isArray, isArray_1 = isArray$e, MAX_SAFE_INTEGER$1 = 9007199254740991;
407
+ function isLength$3(C) {
408
+ return typeof C == "number" && C > -1 && C % 1 == 0 && C <= MAX_SAFE_INTEGER$1;
439
409
  }
440
- var _hashGet = hashGet$1, nativeCreate$1 = _nativeCreate, objectProto$8 = Object.prototype, hasOwnProperty$6 = objectProto$8.hasOwnProperty;
441
- function hashHas$1(C) {
442
- var E = this.__data__;
443
- return nativeCreate$1 ? E[C] !== void 0 : hasOwnProperty$6.call(E, C);
410
+ var isLength_1 = isLength$3, isFunction = isFunction_1, isLength$2 = isLength_1;
411
+ function isArrayLike$4(C) {
412
+ return C != null && isLength$2(C.length) && !isFunction(C);
444
413
  }
445
- var _hashHas = hashHas$1, nativeCreate = _nativeCreate, HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
446
- function hashSet$1(C, E) {
447
- var I = this.__data__;
448
- return this.size += this.has(C) ? 0 : 1, I[C] = nativeCreate && E === void 0 ? HASH_UNDEFINED$1 : E, this;
414
+ var isArrayLike_1 = isArrayLike$4, isBuffer$4 = { exports: {} };
415
+ function stubFalse() {
416
+ return !1;
449
417
  }
450
- var _hashSet = hashSet$1, hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
451
- function Hash$1(C) {
452
- var E = -1, I = C == null ? 0 : C.length;
453
- for (this.clear(); ++E < I; ) {
454
- var B = C[E];
455
- this.set(B[0], B[1]);
456
- }
418
+ var stubFalse_1 = stubFalse;
419
+ isBuffer$4.exports;
420
+ (function(C, E) {
421
+ var I = _root, B = stubFalse_1, U = E && !E.nodeType && E, V = U && !0 && C && !C.nodeType && C, X = V && V.exports === U, Y = X ? I.Buffer : void 0, K = Y ? Y.isBuffer : void 0, J = K || B;
422
+ C.exports = J;
423
+ })(isBuffer$4, isBuffer$4.exports);
424
+ var isBufferExports = isBuffer$4.exports, baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$2 = isObjectLike_1, argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag = "[object WeakMap]", arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", typedArrayTags = {};
425
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = !0;
426
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag] = !1;
427
+ function baseIsTypedArray$1(C) {
428
+ return isObjectLike$2(C) && isLength$1(C.length) && !!typedArrayTags[baseGetTag$1(C)];
457
429
  }
458
- Hash$1.prototype.clear = hashClear;
459
- Hash$1.prototype.delete = hashDelete;
460
- Hash$1.prototype.get = hashGet;
461
- Hash$1.prototype.has = hashHas;
462
- Hash$1.prototype.set = hashSet;
463
- var _Hash = Hash$1, Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
464
- function mapCacheClear$1() {
465
- this.size = 0, this.__data__ = {
466
- hash: new Hash(),
467
- map: new (Map$3 || ListCache$2)(),
468
- string: new Hash()
430
+ var _baseIsTypedArray = baseIsTypedArray$1;
431
+ function baseUnary$1(C) {
432
+ return function(E) {
433
+ return C(E);
469
434
  };
470
435
  }
471
- var _mapCacheClear = mapCacheClear$1;
472
- function isKeyable$1(C) {
473
- var E = typeof C;
474
- return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? C !== "__proto__" : C === null;
475
- }
476
- var _isKeyable = isKeyable$1, isKeyable = _isKeyable;
477
- function getMapData$4(C, E) {
478
- var I = C.__data__;
479
- return isKeyable(E) ? I[typeof E == "string" ? "string" : "hash"] : I.map;
480
- }
481
- var _getMapData = getMapData$4, getMapData$3 = _getMapData;
482
- function mapCacheDelete$1(C) {
483
- var E = getMapData$3(this, C).delete(C);
484
- return this.size -= E ? 1 : 0, E;
485
- }
486
- var _mapCacheDelete = mapCacheDelete$1, getMapData$2 = _getMapData;
487
- function mapCacheGet$1(C) {
488
- return getMapData$2(this, C).get(C);
489
- }
490
- var _mapCacheGet = mapCacheGet$1, getMapData$1 = _getMapData;
491
- function mapCacheHas$1(C) {
492
- return getMapData$1(this, C).has(C);
493
- }
494
- var _mapCacheHas = mapCacheHas$1, getMapData = _getMapData;
495
- function mapCacheSet$1(C, E) {
496
- var I = getMapData(this, C), B = I.size;
497
- return I.set(C, E), this.size += I.size == B ? 0 : 1, this;
498
- }
499
- var _mapCacheSet = mapCacheSet$1, mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
500
- function MapCache$3(C) {
501
- var E = -1, I = C == null ? 0 : C.length;
502
- for (this.clear(); ++E < I; ) {
503
- var B = C[E];
504
- this.set(B[0], B[1]);
505
- }
436
+ var _baseUnary = baseUnary$1, _nodeUtil = { exports: {} };
437
+ _nodeUtil.exports;
438
+ (function(C, E) {
439
+ var I = _freeGlobal, B = E && !E.nodeType && E, U = B && !0 && C && !C.nodeType && C, V = U && U.exports === B, X = V && I.process, Y = function() {
440
+ try {
441
+ var K = U && U.require && U.require("util").types;
442
+ return K || X && X.binding && X.binding("util");
443
+ } catch {
444
+ }
445
+ }();
446
+ C.exports = Y;
447
+ })(_nodeUtil, _nodeUtil.exports);
448
+ var _nodeUtilExports = _nodeUtil.exports, baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray, isTypedArray_1 = isTypedArray$3, baseKeys$1 = _baseKeys, getTag$1 = _getTag, isArguments$2 = isArguments_1, isArray$d = isArray_1, isArrayLike$3 = isArrayLike_1, isBuffer$3 = isBufferExports, isPrototype = _isPrototype, isTypedArray$2 = isTypedArray_1, mapTag$1 = "[object Map]", setTag$1 = "[object Set]", objectProto$6 = Object.prototype, hasOwnProperty$5 = objectProto$6.hasOwnProperty;
449
+ function isEmpty(C) {
450
+ if (C == null)
451
+ return !0;
452
+ if (isArrayLike$3(C) && (isArray$d(C) || typeof C == "string" || typeof C.splice == "function" || isBuffer$3(C) || isTypedArray$2(C) || isArguments$2(C)))
453
+ return !C.length;
454
+ var E = getTag$1(C);
455
+ if (E == mapTag$1 || E == setTag$1)
456
+ return !C.size;
457
+ if (isPrototype(C))
458
+ return !baseKeys$1(C).length;
459
+ for (var I in C)
460
+ if (hasOwnProperty$5.call(C, I))
461
+ return !1;
462
+ return !0;
506
463
  }
507
- MapCache$3.prototype.clear = mapCacheClear;
508
- MapCache$3.prototype.delete = mapCacheDelete;
509
- MapCache$3.prototype.get = mapCacheGet;
510
- MapCache$3.prototype.has = mapCacheHas;
511
- MapCache$3.prototype.set = mapCacheSet;
512
- var _MapCache = MapCache$3, ListCache$1 = _ListCache, Map$2 = _Map, MapCache$2 = _MapCache, LARGE_ARRAY_SIZE = 200;
513
- function stackSet$1(C, E) {
514
- var I = this.__data__;
515
- if (I instanceof ListCache$1) {
516
- var B = I.__data__;
517
- if (!Map$2 || B.length < LARGE_ARRAY_SIZE - 1)
518
- return B.push([C, E]), this.size = ++I.size, this;
519
- I = this.__data__ = new MapCache$2(B);
464
+ var isEmpty_1 = isEmpty;
465
+ const isEmpty$1 = /* @__PURE__ */ getDefaultExportFromCjs(isEmpty_1);
466
+ var OverlayTypes = /* @__PURE__ */ ((C) => (C.NONE = "none", C.NORMAL = "normal", C.LENSFLARE = "lensflare", C.FILMSTRIP = "filmstrip", C.GRUNGE = "grunge", C.BRICKS = "bricks", C))(OverlayTypes || {});
467
+ const overlays = {
468
+ normal: {
469
+ src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",
470
+ blendmode: "ADD",
471
+ alpha: 0
472
+ // opacity 0 - 1
473
+ },
474
+ lensflare: {
475
+ src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",
476
+ blendmode: "ADD",
477
+ alpha: 1
478
+ // opacity 0 - 1
479
+ },
480
+ filmstrip: {
481
+ src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",
482
+ blendmode: "ADD",
483
+ alpha: 1
484
+ // opacity 0 - 1
485
+ },
486
+ grunge: {
487
+ src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",
488
+ blendmode: "ADD",
489
+ alpha: 1
490
+ // opacity 0 - 1
491
+ },
492
+ bricks: {
493
+ src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",
494
+ blendmode: "MULTIPLY",
495
+ alpha: 1
496
+ // opacity 0 - 1
520
497
  }
521
- return I.set(C, E), this.size = I.size, this;
522
- }
523
- var _stackSet = stackSet$1, ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
524
- function Stack$2(C) {
525
- var E = this.__data__ = new ListCache(C);
526
- this.size = E.size;
527
- }
528
- Stack$2.prototype.clear = stackClear;
529
- Stack$2.prototype.delete = stackDelete;
530
- Stack$2.prototype.get = stackGet;
531
- Stack$2.prototype.has = stackHas;
532
- Stack$2.prototype.set = stackSet;
533
- var _Stack = Stack$2, HASH_UNDEFINED = "__lodash_hash_undefined__";
534
- function setCacheAdd$1(C) {
535
- return this.__data__.set(C, HASH_UNDEFINED), this;
536
- }
537
- var _setCacheAdd = setCacheAdd$1;
538
- function setCacheHas$1(C) {
539
- return this.__data__.has(C);
540
- }
541
- var _setCacheHas = setCacheHas$1, MapCache$1 = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
542
- function SetCache$1(C) {
543
- var E = -1, I = C == null ? 0 : C.length;
544
- for (this.__data__ = new MapCache$1(); ++E < I; )
545
- this.add(C[E]);
546
- }
547
- SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
548
- SetCache$1.prototype.has = setCacheHas;
549
- var _SetCache = SetCache$1;
550
- function arraySome$1(C, E) {
551
- for (var I = -1, B = C == null ? 0 : C.length; ++I < B; )
552
- if (E(C[I], I, C))
553
- return !0;
554
- return !1;
555
- }
556
- var _arraySome = arraySome$1;
557
- function cacheHas$1(C, E) {
558
- return C.has(E);
559
- }
560
- var _cacheHas = cacheHas$1, SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas, COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
561
- function equalArrays$2(C, E, I, B, U, V) {
562
- var X = I & COMPARE_PARTIAL_FLAG$5, Y = C.length, K = E.length;
563
- if (Y != K && !(X && K > Y))
564
- return !1;
565
- var J = V.get(C), xe = V.get(E);
566
- if (J && xe)
567
- return J == E && xe == C;
568
- var Z = -1, _e = !0, Se = I & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
569
- for (V.set(C, E), V.set(E, C); ++Z < Y; ) {
570
- var Ee = C[Z], Ae = E[Z];
571
- if (B)
572
- var Re = X ? B(Ae, Ee, Z, E, C, V) : B(Ee, Ae, Z, C, E, V);
573
- if (Re !== void 0) {
574
- if (Re)
575
- continue;
576
- _e = !1;
577
- break;
578
- }
579
- if (Se) {
580
- if (!arraySome(E, function(Te, we) {
581
- if (!cacheHas(Se, we) && (Ee === Te || U(Ee, Te, I, B, V)))
582
- return Se.push(we);
583
- })) {
584
- _e = !1;
585
- break;
586
- }
587
- } else if (!(Ee === Ae || U(Ee, Ae, I, B, V))) {
588
- _e = !1;
589
- break;
498
+ }, PixiOverlayTilingSprite = (C) => {
499
+ const { overlay: E, width: I, height: B, x: U, y: V } = C, { src: X, blendmode: Y } = overlays[E] || overlays.normal;
500
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
501
+ TilingSprite,
502
+ {
503
+ image: X,
504
+ width: I,
505
+ height: B,
506
+ x: U,
507
+ y: V,
508
+ tilePosition: { x: 0, y: 0 },
509
+ tileScale: 0.5,
510
+ alpha: 0.5,
511
+ anchor: 0.5
590
512
  }
591
- }
592
- return V.delete(C), V.delete(E), _e;
593
- }
594
- var _equalArrays = equalArrays$2, root$5 = _root, Uint8Array$2 = root$5.Uint8Array, _Uint8Array = Uint8Array$2;
595
- function mapToArray$1(C) {
596
- var E = -1, I = Array(C.size);
597
- return C.forEach(function(B, U) {
598
- I[++E] = [U, B];
599
- }), I;
600
- }
601
- var _mapToArray = mapToArray$1;
602
- function setToArray$1(C) {
603
- var E = -1, I = Array(C.size);
604
- return C.forEach(function(B) {
605
- I[++E] = B;
606
- }), I;
513
+ );
514
+ };
515
+ /*!
516
+ * paths 3.11.5
517
+ * https://greensock.com
518
+ *
519
+ * Copyright 2008-2023, GreenSock. All rights reserved.
520
+ * Subject to the terms at https://greensock.com/standard-license or for
521
+ * Club GreenSock members, the agreement issued with that membership.
522
+ * @author: Jack Doyle, jack@greensock.com
523
+ */
524
+ var _svgPathExp = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, _scientific = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, _DEG2RAD$1 = Math.PI / 180, _sin = Math.sin, _cos = Math.cos, _abs = Math.abs, _sqrt = Math.sqrt, _isNumber = function(E) {
525
+ return typeof E == "number";
526
+ }, _roundingNum = 1e5, _round$1 = function(E) {
527
+ return Math.round(E * _roundingNum) / _roundingNum || 0;
528
+ };
529
+ function transformRawPath(C, E, I, B, U, V, X) {
530
+ for (var Y = C.length, K, J, xe, Z, _e; --Y > -1; )
531
+ for (K = C[Y], J = K.length, xe = 0; xe < J; xe += 2)
532
+ Z = K[xe], _e = K[xe + 1], K[xe] = Z * E + _e * B + V, K[xe + 1] = Z * I + _e * U + X;
533
+ return C._dirty = 1, C;
607
534
  }
608
- var _setToArray = setToArray$1, Symbol$2 = _Symbol, Uint8Array$1 = _Uint8Array, eq = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray, COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2, boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]", arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
609
- function equalByTag$1(C, E, I, B, U, V, X) {
610
- switch (I) {
611
- case dataViewTag$2:
612
- if (C.byteLength != E.byteLength || C.byteOffset != E.byteOffset)
613
- return !1;
614
- C = C.buffer, E = E.buffer;
615
- case arrayBufferTag$1:
616
- return !(C.byteLength != E.byteLength || !V(new Uint8Array$1(C), new Uint8Array$1(E)));
617
- case boolTag$1:
618
- case dateTag$1:
619
- case numberTag$1:
620
- return eq(+C, +E);
621
- case errorTag$1:
622
- return C.name == E.name && C.message == E.message;
623
- case regexpTag$1:
624
- case stringTag$1:
625
- return C == E + "";
626
- case mapTag$3:
627
- var Y = mapToArray;
628
- case setTag$3:
629
- var K = B & COMPARE_PARTIAL_FLAG$4;
630
- if (Y || (Y = setToArray), C.size != E.size && !K)
631
- return !1;
632
- var J = X.get(C);
633
- if (J)
634
- return J == E;
635
- B |= COMPARE_UNORDERED_FLAG$2, X.set(C, E);
636
- var xe = equalArrays$1(Y(C), Y(E), B, U, V, X);
637
- return X.delete(C), xe;
638
- case symbolTag$1:
639
- if (symbolValueOf)
640
- return symbolValueOf.call(C) == symbolValueOf.call(E);
535
+ function arcToSegment(C, E, I, B, U, V, X, Y, K) {
536
+ if (!(C === Y && E === K)) {
537
+ I = _abs(I), B = _abs(B);
538
+ var J = U % 360 * _DEG2RAD$1, xe = _cos(J), Z = _sin(J), _e = Math.PI, Se = _e * 2, Ee = (C - Y) / 2, Ae = (E - K) / 2, Re = xe * Ee + Z * Ae, Te = -Z * Ee + xe * Ae, we = Re * Re, Pe = Te * Te, Ie = we / (I * I) + Pe / (B * B);
539
+ Ie > 1 && (I = _sqrt(Ie) * I, B = _sqrt(Ie) * B);
540
+ var Me = I * I, Oe = B * B, Le = (Me * Oe - Me * Pe - Oe * we) / (Me * Pe + Oe * we);
541
+ Le < 0 && (Le = 0);
542
+ var Ne = (V === X ? -1 : 1) * _sqrt(Le), Ve = Ne * (I * Te / B), We = Ne * -(B * Re / I), Ue = (C + Y) / 2, Xe = (E + K) / 2, ze = Ue + (xe * Ve - Z * We), He = Xe + (Z * Ve + xe * We), je = (Re - Ve) / I, $e = (Te - We) / B, De = (-Re - Ve) / I, Fe = (-Te - We) / B, ke = je * je + $e * $e, Ge = ($e < 0 ? -1 : 1) * Math.acos(je / _sqrt(ke)), Be = (je * Fe - $e * De < 0 ? -1 : 1) * Math.acos((je * De + $e * Fe) / _sqrt(ke * (De * De + Fe * Fe)));
543
+ isNaN(Be) && (Be = _e), !X && Be > 0 ? Be -= Se : X && Be < 0 && (Be += Se), Ge %= Se, Be %= Se;
544
+ var qe = Math.ceil(_abs(Be) / (Se / 4)), Ke = [], Ye = Be / qe, Qe = 4 / 3 * _sin(Ye / 2) / (1 + _cos(Ye / 2)), Ze = xe * I, it = Z * I, at = Z * -B, st = xe * B, Je;
545
+ for (Je = 0; Je < qe; Je++)
546
+ U = Ge + Je * Ye, Re = _cos(U), Te = _sin(U), je = _cos(U += Ye), $e = _sin(U), Ke.push(Re - Qe * Te, Te + Qe * Re, je + Qe * $e, $e - Qe * je, je, $e);
547
+ for (Je = 0; Je < Ke.length; Je += 2)
548
+ Re = Ke[Je], Te = Ke[Je + 1], Ke[Je] = Re * Ze + Te * at + ze, Ke[Je + 1] = Re * it + Te * st + He;
549
+ return Ke[Je - 2] = Y, Ke[Je - 1] = K, Ke;
641
550
  }
642
- return !1;
643
- }
644
- var _equalByTag = equalByTag$1;
645
- function arrayPush$1(C, E) {
646
- for (var I = -1, B = E.length, U = C.length; ++I < B; )
647
- C[U + I] = E[I];
648
- return C;
649
551
  }
650
- var _arrayPush = arrayPush$1, isArray$e = Array.isArray, isArray_1 = isArray$e, arrayPush = _arrayPush, isArray$d = isArray_1;
651
- function baseGetAllKeys$1(C, E, I) {
652
- var B = E(C);
653
- return isArray$d(C) ? B : arrayPush(B, I(C));
552
+ function stringToRawPath(C) {
553
+ var E = (C + "").replace(_scientific, function(Ve) {
554
+ var We = +Ve;
555
+ return We < 1e-4 && We > -1e-4 ? 0 : We;
556
+ }).match(_svgPathExp) || [], I = [], B = 0, U = 0, V = 2 / 3, X = E.length, Y = 0, K = "ERROR: malformed path: " + C, J, xe, Z, _e, Se, Ee, Ae, Re, Te, we, Pe, Ie, Me, Oe, Le, Ne = function(We, Ue, Xe, ze) {
557
+ we = (Xe - We) / 3, Pe = (ze - Ue) / 3, Ae.push(We + we, Ue + Pe, Xe - we, ze - Pe, Xe, ze);
558
+ };
559
+ if (!C || !isNaN(E[0]) || isNaN(E[1]))
560
+ return console.log(K), I;
561
+ for (J = 0; J < X; J++)
562
+ if (Me = Se, isNaN(E[J]) ? (Se = E[J].toUpperCase(), Ee = Se !== E[J]) : J--, Z = +E[J + 1], _e = +E[J + 2], Ee && (Z += B, _e += U), J || (Re = Z, Te = _e), Se === "M")
563
+ Ae && (Ae.length < 8 ? I.length -= 1 : Y += Ae.length), B = Re = Z, U = Te = _e, Ae = [Z, _e], I.push(Ae), J += 2, Se = "L";
564
+ else if (Se === "C")
565
+ Ae || (Ae = [0, 0]), Ee || (B = U = 0), Ae.push(Z, _e, B + E[J + 3] * 1, U + E[J + 4] * 1, B += E[J + 5] * 1, U += E[J + 6] * 1), J += 6;
566
+ else if (Se === "S")
567
+ we = B, Pe = U, (Me === "C" || Me === "S") && (we += B - Ae[Ae.length - 4], Pe += U - Ae[Ae.length - 3]), Ee || (B = U = 0), Ae.push(we, Pe, Z, _e, B += E[J + 3] * 1, U += E[J + 4] * 1), J += 4;
568
+ else if (Se === "Q")
569
+ we = B + (Z - B) * V, Pe = U + (_e - U) * V, Ee || (B = U = 0), B += E[J + 3] * 1, U += E[J + 4] * 1, Ae.push(we, Pe, B + (Z - B) * V, U + (_e - U) * V, B, U), J += 4;
570
+ else if (Se === "T")
571
+ we = B - Ae[Ae.length - 4], Pe = U - Ae[Ae.length - 3], Ae.push(B + we, U + Pe, Z + (B + we * 1.5 - Z) * V, _e + (U + Pe * 1.5 - _e) * V, B = Z, U = _e), J += 2;
572
+ else if (Se === "H")
573
+ Ne(B, U, B = Z, U), J += 1;
574
+ else if (Se === "V")
575
+ Ne(B, U, B, U = Z + (Ee ? U - B : 0)), J += 1;
576
+ else if (Se === "L" || Se === "Z")
577
+ Se === "Z" && (Z = Re, _e = Te, Ae.closed = !0), (Se === "L" || _abs(B - Z) > 0.5 || _abs(U - _e) > 0.5) && (Ne(B, U, Z, _e), Se === "L" && (J += 2)), B = Z, U = _e;
578
+ else if (Se === "A") {
579
+ if (Oe = E[J + 4], Le = E[J + 5], we = E[J + 6], Pe = E[J + 7], xe = 7, Oe.length > 1 && (Oe.length < 3 ? (Pe = we, we = Le, xe--) : (Pe = Le, we = Oe.substr(2), xe -= 2), Le = Oe.charAt(1), Oe = Oe.charAt(0)), Ie = arcToSegment(B, U, +E[J + 1], +E[J + 2], +E[J + 3], +Oe, +Le, (Ee ? B : 0) + we * 1, (Ee ? U : 0) + Pe * 1), J += xe, Ie)
580
+ for (xe = 0; xe < Ie.length; xe++)
581
+ Ae.push(Ie[xe]);
582
+ B = Ae[Ae.length - 2], U = Ae[Ae.length - 1];
583
+ } else
584
+ console.log(K);
585
+ return J = Ae.length, J < 6 ? (I.pop(), J = 0) : Ae[0] === Ae[J - 2] && Ae[1] === Ae[J - 1] && (Ae.closed = !0), I.totalPoints = Y + J, I;
654
586
  }
655
- var _baseGetAllKeys = baseGetAllKeys$1;
656
- function arrayFilter$1(C, E) {
657
- for (var I = -1, B = C == null ? 0 : C.length, U = 0, V = []; ++I < B; ) {
658
- var X = C[I];
659
- E(X, I, C) && (V[U++] = X);
587
+ function rawPathToString(C) {
588
+ _isNumber(C[0]) && (C = [C]);
589
+ var E = "", I = C.length, B, U, V, X;
590
+ for (U = 0; U < I; U++) {
591
+ for (X = C[U], E += "M" + _round$1(X[0]) + "," + _round$1(X[1]) + " C", B = X.length, V = 2; V < B; V++)
592
+ E += _round$1(X[V++]) + "," + _round$1(X[V++]) + " " + _round$1(X[V++]) + "," + _round$1(X[V++]) + " " + _round$1(X[V++]) + "," + _round$1(X[V]) + " ";
593
+ X.closed && (E += "z");
660
594
  }
661
- return V;
662
- }
663
- var _arrayFilter = arrayFilter$1;
664
- function stubArray$1() {
665
- return [];
595
+ return E;
666
596
  }
667
- var stubArray_1 = stubArray$1, arrayFilter = _arrayFilter, stubArray = stubArray_1, objectProto$7 = Object.prototype, propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, getSymbols$1 = nativeGetSymbols ? function(C) {
668
- return C == null ? [] : (C = Object(C), arrayFilter(nativeGetSymbols(C), function(E) {
669
- return propertyIsEnumerable$1.call(C, E);
670
- }));
671
- } : stubArray, _getSymbols = getSymbols$1;
672
- function baseTimes$1(C, E) {
673
- for (var I = -1, B = Array(C); ++I < C; )
674
- B[I] = E(I);
597
+ /*!
598
+ * CustomEase 3.11.5
599
+ * https://greensock.com
600
+ *
601
+ * @license Copyright 2008-2023, GreenSock. All rights reserved.
602
+ * Subject to the terms at https://greensock.com/standard-license or for
603
+ * Club GreenSock members, the agreement issued with that membership.
604
+ * @author: Jack Doyle, jack@greensock.com
605
+ */
606
+ var gsap$1, _coreInitted, _getGSAP$1 = function() {
607
+ return gsap$1 || typeof window < "u" && (gsap$1 = window.gsap) && gsap$1.registerPlugin && gsap$1;
608
+ }, _initCore$1 = function() {
609
+ gsap$1 = _getGSAP$1(), gsap$1 ? (gsap$1.registerEase("_CE", CustomEase.create), _coreInitted = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
610
+ }, _bigNum = 1e20, _round = function(E) {
611
+ return ~~(E * 1e3 + (E < 0 ? -0.5 : 0.5)) / 1e3;
612
+ }, _numExp = /[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi, _needsParsingExp = /[cLlsSaAhHvVtTqQ]/g, _findMinimum = function(E) {
613
+ var I = E.length, B = _bigNum, U;
614
+ for (U = 1; U < I; U += 6)
615
+ +E[U] < B && (B = +E[U]);
675
616
  return B;
676
- }
677
- var _baseTimes = baseTimes$1;
678
- function isObjectLike$5(C) {
679
- return C != null && typeof C == "object";
680
- }
681
- var isObjectLike_1 = isObjectLike$5, baseGetTag$3 = _baseGetTag, isObjectLike$4 = isObjectLike_1, argsTag$2 = "[object Arguments]";
682
- function baseIsArguments$1(C) {
683
- return isObjectLike$4(C) && baseGetTag$3(C) == argsTag$2;
684
- }
685
- var _baseIsArguments = baseIsArguments$1, baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1, objectProto$6 = Object.prototype, hasOwnProperty$5 = objectProto$6.hasOwnProperty, propertyIsEnumerable = objectProto$6.propertyIsEnumerable, isArguments$3 = baseIsArguments(function() {
686
- return arguments;
687
- }()) ? baseIsArguments : function(C) {
688
- return isObjectLike$3(C) && hasOwnProperty$5.call(C, "callee") && !propertyIsEnumerable.call(C, "callee");
689
- }, isArguments_1 = isArguments$3, isBuffer$4 = { exports: {} };
690
- function stubFalse() {
691
- return !1;
692
- }
693
- var stubFalse_1 = stubFalse;
694
- isBuffer$4.exports;
695
- (function(C, E) {
696
- var I = _root, B = stubFalse_1, U = E && !E.nodeType && E, V = U && !0 && C && !C.nodeType && C, X = V && V.exports === U, Y = X ? I.Buffer : void 0, K = Y ? Y.isBuffer : void 0, J = K || B;
697
- C.exports = J;
698
- })(isBuffer$4, isBuffer$4.exports);
699
- var isBufferExports = isBuffer$4.exports, MAX_SAFE_INTEGER$1 = 9007199254740991, reIsUint = /^(?:0|[1-9]\d*)$/;
700
- function isIndex$2(C, E) {
701
- var I = typeof C;
702
- return E = E ?? MAX_SAFE_INTEGER$1, !!E && (I == "number" || I != "symbol" && reIsUint.test(C)) && C > -1 && C % 1 == 0 && C < E;
703
- }
704
- var _isIndex = isIndex$2, MAX_SAFE_INTEGER = 9007199254740991;
705
- function isLength$3(C) {
706
- return typeof C == "number" && C > -1 && C % 1 == 0 && C <= MAX_SAFE_INTEGER;
707
- }
708
- var isLength_1 = isLength$3, baseGetTag$2 = _baseGetTag, isLength$2 = isLength_1, isObjectLike$2 = isObjectLike_1, argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag = "[object Number]", objectTag$2 = "[object Object]", regexpTag = "[object RegExp]", setTag$2 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", typedArrayTags = {};
709
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = !0;
710
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] = typedArrayTags[setTag$2] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = !1;
711
- function baseIsTypedArray$1(C) {
712
- return isObjectLike$2(C) && isLength$2(C.length) && !!typedArrayTags[baseGetTag$2(C)];
713
- }
714
- var _baseIsTypedArray = baseIsTypedArray$1;
715
- function baseUnary$1(C) {
716
- return function(E) {
717
- return C(E);
718
- };
719
- }
720
- var _baseUnary = baseUnary$1, _nodeUtil = { exports: {} };
721
- _nodeUtil.exports;
722
- (function(C, E) {
723
- var I = _freeGlobal, B = E && !E.nodeType && E, U = B && !0 && C && !C.nodeType && C, V = U && U.exports === B, X = V && I.process, Y = function() {
724
- try {
725
- var K = U && U.require && U.require("util").types;
726
- return K || X && X.binding && X.binding("util");
727
- } catch {
728
- }
729
- }();
730
- C.exports = Y;
731
- })(_nodeUtil, _nodeUtil.exports);
732
- var _nodeUtilExports = _nodeUtil.exports, baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray, isTypedArray_1 = isTypedArray$3, baseTimes = _baseTimes, isArguments$2 = isArguments_1, isArray$c = isArray_1, isBuffer$3 = isBufferExports, isIndex$1 = _isIndex, isTypedArray$2 = isTypedArray_1, objectProto$5 = Object.prototype, hasOwnProperty$4 = objectProto$5.hasOwnProperty;
733
- function arrayLikeKeys$1(C, E) {
734
- var I = isArray$c(C), B = !I && isArguments$2(C), U = !I && !B && isBuffer$3(C), V = !I && !B && !U && isTypedArray$2(C), X = I || B || U || V, Y = X ? baseTimes(C.length, String) : [], K = Y.length;
735
- for (var J in C)
736
- (E || hasOwnProperty$4.call(C, J)) && !(X && // Safari 9 has enumerable `arguments.length` in strict mode.
737
- (J == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
738
- U && (J == "offset" || J == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
739
- V && (J == "buffer" || J == "byteLength" || J == "byteOffset") || // Skip index properties.
740
- isIndex$1(J, K))) && Y.push(J);
741
- return Y;
742
- }
743
- var _arrayLikeKeys = arrayLikeKeys$1, objectProto$4 = Object.prototype;
744
- function isPrototype$2(C) {
745
- var E = C && C.constructor, I = typeof E == "function" && E.prototype || objectProto$4;
746
- return C === I;
747
- }
748
- var _isPrototype = isPrototype$2;
749
- function overArg$1(C, E) {
750
- return function(I) {
751
- return C(E(I));
752
- };
753
- }
754
- var _overArg = overArg$1, overArg = _overArg, nativeKeys$1 = overArg(Object.keys, Object), _nativeKeys = nativeKeys$1, isPrototype$1 = _isPrototype, nativeKeys = _nativeKeys, objectProto$3 = Object.prototype, hasOwnProperty$3 = objectProto$3.hasOwnProperty;
755
- function baseKeys$2(C) {
756
- if (!isPrototype$1(C))
757
- return nativeKeys(C);
758
- var E = [];
759
- for (var I in Object(C))
760
- hasOwnProperty$3.call(C, I) && I != "constructor" && E.push(I);
761
- return E;
762
- }
763
- var _baseKeys = baseKeys$2, isFunction = isFunction_1, isLength$1 = isLength_1;
764
- function isArrayLike$4(C) {
765
- return C != null && isLength$1(C.length) && !isFunction(C);
766
- }
767
- var isArrayLike_1 = isArrayLike$4, arrayLikeKeys = _arrayLikeKeys, baseKeys$1 = _baseKeys, isArrayLike$3 = isArrayLike_1;
768
- function keys$3(C) {
769
- return isArrayLike$3(C) ? arrayLikeKeys(C) : baseKeys$1(C);
770
- }
771
- var keys_1 = keys$3, baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys$2 = keys_1;
772
- function getAllKeys$1(C) {
773
- return baseGetAllKeys(C, keys$2, getSymbols);
774
- }
775
- var _getAllKeys = getAllKeys$1, getAllKeys = _getAllKeys, COMPARE_PARTIAL_FLAG$3 = 1, objectProto$2 = Object.prototype, hasOwnProperty$2 = objectProto$2.hasOwnProperty;
776
- function equalObjects$1(C, E, I, B, U, V) {
777
- var X = I & COMPARE_PARTIAL_FLAG$3, Y = getAllKeys(C), K = Y.length, J = getAllKeys(E), xe = J.length;
778
- if (K != xe && !X)
779
- return !1;
780
- for (var Z = K; Z--; ) {
781
- var _e = Y[Z];
782
- if (!(X ? _e in E : hasOwnProperty$2.call(E, _e)))
783
- return !1;
784
- }
785
- var Se = V.get(C), Ee = V.get(E);
786
- if (Se && Ee)
787
- return Se == E && Ee == C;
788
- var Ae = !0;
789
- V.set(C, E), V.set(E, C);
790
- for (var Re = X; ++Z < K; ) {
791
- _e = Y[Z];
792
- var Te = C[_e], we = E[_e];
793
- if (B)
794
- var Pe = X ? B(we, Te, _e, E, C, V) : B(Te, we, _e, C, E, V);
795
- if (!(Pe === void 0 ? Te === we || U(Te, we, I, B, V) : Pe)) {
796
- Ae = !1;
797
- break;
798
- }
799
- Re || (Re = _e == "constructor");
800
- }
801
- if (Ae && !Re) {
802
- var Ie = C.constructor, Me = E.constructor;
803
- Ie != Me && "constructor" in C && "constructor" in E && !(typeof Ie == "function" && Ie instanceof Ie && typeof Me == "function" && Me instanceof Me) && (Ae = !1);
804
- }
805
- return V.delete(C), V.delete(E), Ae;
806
- }
807
- var _equalObjects = equalObjects$1, getNative$3 = _getNative, root$4 = _root, DataView$2 = getNative$3(root$4, "DataView"), _DataView = DataView$2, getNative$2 = _getNative, root$3 = _root, Promise$2 = getNative$2(root$3, "Promise"), _Promise = Promise$2, getNative$1 = _getNative, root$2 = _root, Set$2 = getNative$1(root$2, "Set"), _Set = Set$2, getNative = _getNative, root$1 = _root, WeakMap$2 = getNative(root$1, "WeakMap"), _WeakMap = WeakMap$2, DataView$1 = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource, mapTag$1 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$1 = "[object Set]", weakMapTag = "[object WeakMap]", dataViewTag = "[object DataView]", dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1), getTag$2 = baseGetTag$1;
808
- (DataView$1 && getTag$2(new DataView$1(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag$2(new Map$1()) != mapTag$1 || Promise$1 && getTag$2(Promise$1.resolve()) != promiseTag || Set$1 && getTag$2(new Set$1()) != setTag$1 || WeakMap$1 && getTag$2(new WeakMap$1()) != weakMapTag) && (getTag$2 = function(C) {
809
- var E = baseGetTag$1(C), I = E == objectTag$1 ? C.constructor : void 0, B = I ? toSource(I) : "";
810
- if (B)
811
- switch (B) {
812
- case dataViewCtorString:
813
- return dataViewTag;
814
- case mapCtorString:
815
- return mapTag$1;
816
- case promiseCtorString:
817
- return promiseTag;
818
- case setCtorString:
819
- return setTag$1;
820
- case weakMapCtorString:
821
- return weakMapTag;
822
- }
823
- return E;
824
- });
825
- var _getTag = getTag$2, Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag$1 = _getTag, isArray$b = isArray_1, isBuffer$2 = isBufferExports, isTypedArray$1 = isTypedArray_1, COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto$1 = Object.prototype, hasOwnProperty$1 = objectProto$1.hasOwnProperty;
826
- function baseIsEqualDeep$1(C, E, I, B, U, V) {
827
- var X = isArray$b(C), Y = isArray$b(E), K = X ? arrayTag : getTag$1(C), J = Y ? arrayTag : getTag$1(E);
828
- K = K == argsTag ? objectTag : K, J = J == argsTag ? objectTag : J;
829
- var xe = K == objectTag, Z = J == objectTag, _e = K == J;
830
- if (_e && isBuffer$2(C)) {
831
- if (!isBuffer$2(E))
832
- return !1;
833
- X = !0, xe = !1;
617
+ }, _normalize = function(E, I, B) {
618
+ !B && B !== 0 && (B = Math.max(+E[E.length - 1], +E[1]));
619
+ var U = +E[0] * -1, V = -B, X = E.length, Y = 1 / (+E[X - 2] + U), K = -I || (Math.abs(+E[X - 1] - +E[1]) < 0.01 * (+E[X - 2] - +E[0]) ? _findMinimum(E) + V : +E[X - 1] + V), J;
620
+ for (K ? K = 1 / K : K = -Y, J = 0; J < X; J += 2)
621
+ E[J] = (+E[J] + U) * Y, E[J + 1] = (+E[J + 1] + V) * K;
622
+ }, _bezierToPoints = function C(E, I, B, U, V, X, Y, K, J, xe, Z) {
623
+ var _e = (E + B) / 2, Se = (I + U) / 2, Ee = (B + V) / 2, Ae = (U + X) / 2, Re = (V + Y) / 2, Te = (X + K) / 2, we = (_e + Ee) / 2, Pe = (Se + Ae) / 2, Ie = (Ee + Re) / 2, Me = (Ae + Te) / 2, Oe = (we + Ie) / 2, Le = (Pe + Me) / 2, Ne = Y - E, Ve = K - I, We = Math.abs((B - Y) * Ve - (U - K) * Ne), Ue = Math.abs((V - Y) * Ve - (X - K) * Ne), Xe;
624
+ return xe || (xe = [{
625
+ x: E,
626
+ y: I
627
+ }, {
628
+ x: Y,
629
+ y: K
630
+ }], Z = 1), xe.splice(Z || xe.length - 1, 0, {
631
+ x: Oe,
632
+ y: Le
633
+ }), (We + Ue) * (We + Ue) > J * (Ne * Ne + Ve * Ve) && (Xe = xe.length, C(E, I, _e, Se, we, Pe, Oe, Le, J, xe, Z), C(Oe, Le, Ie, Me, Re, Te, Y, K, J, xe, Z + 1 + (xe.length - Xe))), xe;
634
+ }, CustomEase = /* @__PURE__ */ function() {
635
+ function C(I, B, U) {
636
+ _coreInitted || _initCore$1(), this.id = I, this.setData(B, U);
834
637
  }
835
- if (_e && !xe)
836
- return V || (V = new Stack$1()), X || isTypedArray$1(C) ? equalArrays(C, E, I, B, U, V) : equalByTag(C, E, K, I, B, U, V);
837
- if (!(I & COMPARE_PARTIAL_FLAG$2)) {
838
- var Se = xe && hasOwnProperty$1.call(C, "__wrapped__"), Ee = Z && hasOwnProperty$1.call(E, "__wrapped__");
839
- if (Se || Ee) {
840
- var Ae = Se ? C.value() : C, Re = Ee ? E.value() : E;
841
- return V || (V = new Stack$1()), U(Ae, Re, I, B, V);
638
+ var E = C.prototype;
639
+ return E.setData = function(B, U) {
640
+ U = U || {}, B = B || "0,0,1,1";
641
+ var V = B.match(_numExp), X = 1, Y = [], K = [], J = U.precision || 1, xe = J <= 1, Z, _e, Se, Ee, Ae, Re, Te, we, Pe;
642
+ if (this.data = B, (_needsParsingExp.test(B) || ~B.indexOf("M") && B.indexOf("C") < 0) && (V = stringToRawPath(B)[0]), Z = V.length, Z === 4)
643
+ V.unshift(0, 0), V.push(1, 1), Z = 8;
644
+ else if ((Z - 2) % 6)
645
+ throw "Invalid CustomEase";
646
+ for ((+V[0] != 0 || +V[Z - 2] != 1) && _normalize(V, U.height, U.originY), this.segment = V, Ee = 2; Ee < Z; Ee += 6)
647
+ _e = {
648
+ x: +V[Ee - 2],
649
+ y: +V[Ee - 1]
650
+ }, Se = {
651
+ x: +V[Ee + 4],
652
+ y: +V[Ee + 5]
653
+ }, Y.push(_e, Se), _bezierToPoints(_e.x, _e.y, +V[Ee], +V[Ee + 1], +V[Ee + 2], +V[Ee + 3], Se.x, Se.y, 1 / (J * 2e5), Y, Y.length - 1);
654
+ for (Z = Y.length, Ee = 0; Ee < Z; Ee++)
655
+ Te = Y[Ee], we = Y[Ee - 1] || Te, (Te.x > we.x || we.y !== Te.y && we.x === Te.x || Te === we) && Te.x <= 1 ? (we.cx = Te.x - we.x, we.cy = Te.y - we.y, we.n = Te, we.nx = Te.x, xe && Ee > 1 && Math.abs(we.cy / we.cx - Y[Ee - 2].cy / Y[Ee - 2].cx) > 2 && (xe = 0), we.cx < X && (we.cx ? X = we.cx : (we.cx = 1e-3, Ee === Z - 1 && (we.x -= 1e-3, X = Math.min(X, 1e-3), xe = 0)))) : (Y.splice(Ee--, 1), Z--);
656
+ if (Z = 1 / X + 1 | 0, Ae = 1 / Z, Re = 0, Te = Y[0], xe) {
657
+ for (Ee = 0; Ee < Z; Ee++)
658
+ Pe = Ee * Ae, Te.nx < Pe && (Te = Y[++Re]), _e = Te.y + (Pe - Te.x) / Te.cx * Te.cy, K[Ee] = {
659
+ x: Pe,
660
+ cx: Ae,
661
+ y: _e,
662
+ cy: 0,
663
+ nx: 9
664
+ }, Ee && (K[Ee - 1].cy = _e - K[Ee - 1].y);
665
+ K[Z - 1].cy = Y[Y.length - 1].y - _e;
666
+ } else {
667
+ for (Ee = 0; Ee < Z; Ee++)
668
+ Te.nx < Ee * Ae && (Te = Y[++Re]), K[Ee] = Te;
669
+ Re < Y.length - 1 && (K[Ee - 1] = Y[Y.length - 2]);
842
670
  }
843
- }
844
- return _e ? (V || (V = new Stack$1()), equalObjects(C, E, I, B, U, V)) : !1;
845
- }
846
- var _baseIsEqualDeep = baseIsEqualDeep$1, baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$1 = isObjectLike_1;
847
- function baseIsEqual$3(C, E, I, B, U) {
848
- return C === E ? !0 : C == null || E == null || !isObjectLike$1(C) && !isObjectLike$1(E) ? C !== C && E !== E : baseIsEqualDeep(C, E, I, B, baseIsEqual$3, U);
849
- }
850
- var _baseIsEqual = baseIsEqual$3, baseIsEqual$2 = _baseIsEqual;
851
- function isEqual(C, E) {
852
- return baseIsEqual$2(C, E);
853
- }
854
- var isEqual_1 = isEqual;
855
- const isEqual$1 = /* @__PURE__ */ getDefaultExportFromCjs(isEqual_1), useDeepEffect = (C, E) => {
856
- const I = useRef(!0), B = useRef(E);
857
- useEffect(() => {
858
- const U = B.current.every(
859
- (V, X) => isEqual$1(V, E[X])
860
- );
861
- (I.current || !U) && C(), I.current = !1, B.current = E;
862
- }, E);
863
- };
864
- function useDebounce(C, E = 700) {
865
- const [I, B] = useState(C);
866
- return useDeepEffect(
867
- () => {
868
- const U = setTimeout(() => {
869
- B(C);
870
- }, E);
871
- return () => {
872
- clearTimeout(U);
873
- };
874
- },
875
- [C, E]
876
- // Only re-call effect if value or delay changes
877
- ), I;
878
- }
879
- var baseKeys = _baseKeys, getTag = _getTag, isArguments$1 = isArguments_1, isArray$a = isArray_1, isArrayLike$2 = isArrayLike_1, isBuffer$1 = isBufferExports, isPrototype = _isPrototype, isTypedArray = isTypedArray_1, mapTag = "[object Map]", setTag = "[object Set]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
880
- function isEmpty(C) {
881
- if (C == null)
882
- return !0;
883
- if (isArrayLike$2(C) && (isArray$a(C) || typeof C == "string" || typeof C.splice == "function" || isBuffer$1(C) || isTypedArray(C) || isArguments$1(C)))
884
- return !C.length;
885
- var E = getTag(C);
886
- if (E == mapTag || E == setTag)
887
- return !C.size;
888
- if (isPrototype(C))
889
- return !baseKeys(C).length;
890
- for (var I in C)
891
- if (hasOwnProperty.call(C, I))
892
- return !1;
893
- return !0;
894
- }
895
- var isEmpty_1 = isEmpty;
896
- const isEmpty$1 = /* @__PURE__ */ getDefaultExportFromCjs(isEmpty_1);
897
- var OverlayTypes = /* @__PURE__ */ ((C) => (C.NONE = "none", C.NORMAL = "normal", C.LENSFLARE = "lensflare", C.FILMSTRIP = "filmstrip", C.GRUNGE = "grunge", C.BRICKS = "bricks", C))(OverlayTypes || {});
898
- const overlays = {
899
- normal: {
900
- src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",
901
- blendmode: "ADD",
902
- alpha: 0
903
- // opacity 0 - 1
904
- },
905
- lensflare: {
906
- src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",
907
- blendmode: "ADD",
908
- alpha: 1
909
- // opacity 0 - 1
910
- },
911
- filmstrip: {
912
- src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",
913
- blendmode: "ADD",
914
- alpha: 1
915
- // opacity 0 - 1
916
- },
917
- grunge: {
918
- src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",
919
- blendmode: "ADD",
920
- alpha: 1
921
- // opacity 0 - 1
922
- },
923
- bricks: {
924
- src: "https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",
925
- blendmode: "MULTIPLY",
926
- alpha: 1
927
- // opacity 0 - 1
928
- }
929
- }, PixiOverlayTilingSprite = (C) => {
930
- const { overlay: E, width: I, height: B, x: U, y: V } = C, { src: X, blendmode: Y } = overlays[E] || overlays.normal;
931
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
932
- TilingSprite,
933
- {
934
- image: X,
935
- width: I,
936
- height: B,
937
- x: U,
938
- y: V,
939
- tilePosition: { x: 0, y: 0 },
940
- tileScale: 0.5,
941
- alpha: 0.5,
942
- anchor: 0.5
671
+ return this.ease = function(Ie) {
672
+ var Me = K[Ie * Z | 0] || K[Z - 1];
673
+ return Me.nx < Ie && (Me = Me.n), Me.y + (Ie - Me.x) / Me.cx * Me.cy;
674
+ }, this.ease.custom = this, this.id && gsap$1 && gsap$1.registerEase(this.id, this.ease), this;
675
+ }, E.getSVGData = function(B) {
676
+ return C.getSVGData(this, B);
677
+ }, C.create = function(B, U, V) {
678
+ return new C(B, U, V).ease;
679
+ }, C.register = function(B) {
680
+ gsap$1 = B, _initCore$1();
681
+ }, C.get = function(B) {
682
+ return gsap$1.parseEase(B);
683
+ }, C.getSVGData = function(B, U) {
684
+ U = U || {};
685
+ var V = U.width || 100, X = U.height || 100, Y = U.x || 0, K = (U.y || 0) + X, J = gsap$1.utils.toArray(U.path)[0], xe, Z, _e, Se, Ee, Ae, Re, Te, we, Pe;
686
+ if (U.invert && (X = -X, K = 0), typeof B == "string" && (B = gsap$1.parseEase(B)), B.custom && (B = B.custom), B instanceof C)
687
+ xe = rawPathToString(transformRawPath([B.segment], V, 0, 0, -X, Y, K));
688
+ else {
689
+ for (xe = [Y, K], Re = Math.max(5, (U.precision || 1) * 200), Se = 1 / Re, Re += 2, Te = 5 / Re, we = _round(Y + Se * V), Pe = _round(K + B(Se) * -X), Z = (Pe - K) / (we - Y), _e = 2; _e < Re; _e++)
690
+ Ee = _round(Y + _e * Se * V), Ae = _round(K + B(_e * Se) * -X), (Math.abs((Ae - Pe) / (Ee - we) - Z) > Te || _e === Re - 1) && (xe.push(we, Pe), Z = (Ae - Pe) / (Ee - we)), we = Ee, Pe = Ae;
691
+ xe = "M" + xe.join(",");
943
692
  }
944
- );
945
- };
693
+ return J && J.setAttribute("d", xe), xe;
694
+ }, C;
695
+ }();
696
+ _getGSAP$1() && gsap$1.registerPlugin(CustomEase);
697
+ CustomEase.version = "3.11.5";
946
698
  /*!
947
- * paths 3.11.5
699
+ * PixiPlugin 3.11.5
948
700
  * https://greensock.com
949
701
  *
950
- * Copyright 2008-2023, GreenSock. All rights reserved.
951
- * Subject to the terms at https://greensock.com/standard-license or for
952
- * Club GreenSock members, the agreement issued with that membership.
953
- * @author: Jack Doyle, jack@greensock.com
954
- */
955
- var _svgPathExp = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, _scientific = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, _DEG2RAD$1 = Math.PI / 180, _sin = Math.sin, _cos = Math.cos, _abs = Math.abs, _sqrt = Math.sqrt, _isNumber = function(E) {
956
- return typeof E == "number";
957
- }, _roundingNum = 1e5, _round$1 = function(E) {
958
- return Math.round(E * _roundingNum) / _roundingNum || 0;
959
- };
960
- function transformRawPath(C, E, I, B, U, V, X) {
961
- for (var Y = C.length, K, J, xe, Z, _e; --Y > -1; )
962
- for (K = C[Y], J = K.length, xe = 0; xe < J; xe += 2)
963
- Z = K[xe], _e = K[xe + 1], K[xe] = Z * E + _e * B + V, K[xe + 1] = Z * I + _e * U + X;
964
- return C._dirty = 1, C;
965
- }
966
- function arcToSegment(C, E, I, B, U, V, X, Y, K) {
967
- if (!(C === Y && E === K)) {
968
- I = _abs(I), B = _abs(B);
969
- var J = U % 360 * _DEG2RAD$1, xe = _cos(J), Z = _sin(J), _e = Math.PI, Se = _e * 2, Ee = (C - Y) / 2, Ae = (E - K) / 2, Re = xe * Ee + Z * Ae, Te = -Z * Ee + xe * Ae, we = Re * Re, Pe = Te * Te, Ie = we / (I * I) + Pe / (B * B);
970
- Ie > 1 && (I = _sqrt(Ie) * I, B = _sqrt(Ie) * B);
971
- var Me = I * I, Oe = B * B, Le = (Me * Oe - Me * Pe - Oe * we) / (Me * Pe + Oe * we);
972
- Le < 0 && (Le = 0);
973
- var Ne = (V === X ? -1 : 1) * _sqrt(Le), Ve = Ne * (I * Te / B), Xe = Ne * -(B * Re / I), Ue = (C + Y) / 2, We = (E + K) / 2, He = Ue + (xe * Ve - Z * Xe), ze = We + (Z * Ve + xe * Xe), je = (Re - Ve) / I, $e = (Te - Xe) / B, De = (-Re - Ve) / I, Fe = (-Te - Xe) / B, ke = je * je + $e * $e, Ge = ($e < 0 ? -1 : 1) * Math.acos(je / _sqrt(ke)), Be = (je * Fe - $e * De < 0 ? -1 : 1) * Math.acos((je * De + $e * Fe) / _sqrt(ke * (De * De + Fe * Fe)));
974
- isNaN(Be) && (Be = _e), !X && Be > 0 ? Be -= Se : X && Be < 0 && (Be += Se), Ge %= Se, Be %= Se;
975
- var qe = Math.ceil(_abs(Be) / (Se / 4)), Ke = [], Ye = Be / qe, Qe = 4 / 3 * _sin(Ye / 2) / (1 + _cos(Ye / 2)), Ze = xe * I, it = Z * I, at = Z * -B, st = xe * B, Je;
976
- for (Je = 0; Je < qe; Je++)
977
- U = Ge + Je * Ye, Re = _cos(U), Te = _sin(U), je = _cos(U += Ye), $e = _sin(U), Ke.push(Re - Qe * Te, Te + Qe * Re, je + Qe * $e, $e - Qe * je, je, $e);
978
- for (Je = 0; Je < Ke.length; Je += 2)
979
- Re = Ke[Je], Te = Ke[Je + 1], Ke[Je] = Re * Ze + Te * at + He, Ke[Je + 1] = Re * it + Te * st + ze;
980
- return Ke[Je - 2] = Y, Ke[Je - 1] = K, Ke;
981
- }
982
- }
983
- function stringToRawPath(C) {
984
- var E = (C + "").replace(_scientific, function(Ve) {
985
- var Xe = +Ve;
986
- return Xe < 1e-4 && Xe > -1e-4 ? 0 : Xe;
987
- }).match(_svgPathExp) || [], I = [], B = 0, U = 0, V = 2 / 3, X = E.length, Y = 0, K = "ERROR: malformed path: " + C, J, xe, Z, _e, Se, Ee, Ae, Re, Te, we, Pe, Ie, Me, Oe, Le, Ne = function(Xe, Ue, We, He) {
988
- we = (We - Xe) / 3, Pe = (He - Ue) / 3, Ae.push(Xe + we, Ue + Pe, We - we, He - Pe, We, He);
989
- };
990
- if (!C || !isNaN(E[0]) || isNaN(E[1]))
991
- return console.log(K), I;
992
- for (J = 0; J < X; J++)
993
- if (Me = Se, isNaN(E[J]) ? (Se = E[J].toUpperCase(), Ee = Se !== E[J]) : J--, Z = +E[J + 1], _e = +E[J + 2], Ee && (Z += B, _e += U), J || (Re = Z, Te = _e), Se === "M")
994
- Ae && (Ae.length < 8 ? I.length -= 1 : Y += Ae.length), B = Re = Z, U = Te = _e, Ae = [Z, _e], I.push(Ae), J += 2, Se = "L";
995
- else if (Se === "C")
996
- Ae || (Ae = [0, 0]), Ee || (B = U = 0), Ae.push(Z, _e, B + E[J + 3] * 1, U + E[J + 4] * 1, B += E[J + 5] * 1, U += E[J + 6] * 1), J += 6;
997
- else if (Se === "S")
998
- we = B, Pe = U, (Me === "C" || Me === "S") && (we += B - Ae[Ae.length - 4], Pe += U - Ae[Ae.length - 3]), Ee || (B = U = 0), Ae.push(we, Pe, Z, _e, B += E[J + 3] * 1, U += E[J + 4] * 1), J += 4;
999
- else if (Se === "Q")
1000
- we = B + (Z - B) * V, Pe = U + (_e - U) * V, Ee || (B = U = 0), B += E[J + 3] * 1, U += E[J + 4] * 1, Ae.push(we, Pe, B + (Z - B) * V, U + (_e - U) * V, B, U), J += 4;
1001
- else if (Se === "T")
1002
- we = B - Ae[Ae.length - 4], Pe = U - Ae[Ae.length - 3], Ae.push(B + we, U + Pe, Z + (B + we * 1.5 - Z) * V, _e + (U + Pe * 1.5 - _e) * V, B = Z, U = _e), J += 2;
1003
- else if (Se === "H")
1004
- Ne(B, U, B = Z, U), J += 1;
1005
- else if (Se === "V")
1006
- Ne(B, U, B, U = Z + (Ee ? U - B : 0)), J += 1;
1007
- else if (Se === "L" || Se === "Z")
1008
- Se === "Z" && (Z = Re, _e = Te, Ae.closed = !0), (Se === "L" || _abs(B - Z) > 0.5 || _abs(U - _e) > 0.5) && (Ne(B, U, Z, _e), Se === "L" && (J += 2)), B = Z, U = _e;
1009
- else if (Se === "A") {
1010
- if (Oe = E[J + 4], Le = E[J + 5], we = E[J + 6], Pe = E[J + 7], xe = 7, Oe.length > 1 && (Oe.length < 3 ? (Pe = we, we = Le, xe--) : (Pe = Le, we = Oe.substr(2), xe -= 2), Le = Oe.charAt(1), Oe = Oe.charAt(0)), Ie = arcToSegment(B, U, +E[J + 1], +E[J + 2], +E[J + 3], +Oe, +Le, (Ee ? B : 0) + we * 1, (Ee ? U : 0) + Pe * 1), J += xe, Ie)
1011
- for (xe = 0; xe < Ie.length; xe++)
1012
- Ae.push(Ie[xe]);
1013
- B = Ae[Ae.length - 2], U = Ae[Ae.length - 1];
1014
- } else
1015
- console.log(K);
1016
- return J = Ae.length, J < 6 ? (I.pop(), J = 0) : Ae[0] === Ae[J - 2] && Ae[1] === Ae[J - 1] && (Ae.closed = !0), I.totalPoints = Y + J, I;
1017
- }
1018
- function rawPathToString(C) {
1019
- _isNumber(C[0]) && (C = [C]);
1020
- var E = "", I = C.length, B, U, V, X;
1021
- for (U = 0; U < I; U++) {
1022
- for (X = C[U], E += "M" + _round$1(X[0]) + "," + _round$1(X[1]) + " C", B = X.length, V = 2; V < B; V++)
1023
- E += _round$1(X[V++]) + "," + _round$1(X[V++]) + " " + _round$1(X[V++]) + "," + _round$1(X[V++]) + " " + _round$1(X[V++]) + "," + _round$1(X[V]) + " ";
1024
- X.closed && (E += "z");
1025
- }
1026
- return E;
1027
- }
1028
- /*!
1029
- * CustomEase 3.11.5
1030
- * https://greensock.com
1031
- *
1032
- * @license Copyright 2008-2023, GreenSock. All rights reserved.
1033
- * Subject to the terms at https://greensock.com/standard-license or for
1034
- * Club GreenSock members, the agreement issued with that membership.
1035
- * @author: Jack Doyle, jack@greensock.com
1036
- */
1037
- var gsap$1, _coreInitted, _getGSAP$1 = function() {
1038
- return gsap$1 || typeof window < "u" && (gsap$1 = window.gsap) && gsap$1.registerPlugin && gsap$1;
1039
- }, _initCore$1 = function() {
1040
- gsap$1 = _getGSAP$1(), gsap$1 ? (gsap$1.registerEase("_CE", CustomEase.create), _coreInitted = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
1041
- }, _bigNum = 1e20, _round = function(E) {
1042
- return ~~(E * 1e3 + (E < 0 ? -0.5 : 0.5)) / 1e3;
1043
- }, _numExp = /[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi, _needsParsingExp = /[cLlsSaAhHvVtTqQ]/g, _findMinimum = function(E) {
1044
- var I = E.length, B = _bigNum, U;
1045
- for (U = 1; U < I; U += 6)
1046
- +E[U] < B && (B = +E[U]);
1047
- return B;
1048
- }, _normalize = function(E, I, B) {
1049
- !B && B !== 0 && (B = Math.max(+E[E.length - 1], +E[1]));
1050
- var U = +E[0] * -1, V = -B, X = E.length, Y = 1 / (+E[X - 2] + U), K = -I || (Math.abs(+E[X - 1] - +E[1]) < 0.01 * (+E[X - 2] - +E[0]) ? _findMinimum(E) + V : +E[X - 1] + V), J;
1051
- for (K ? K = 1 / K : K = -Y, J = 0; J < X; J += 2)
1052
- E[J] = (+E[J] + U) * Y, E[J + 1] = (+E[J + 1] + V) * K;
1053
- }, _bezierToPoints = function C(E, I, B, U, V, X, Y, K, J, xe, Z) {
1054
- var _e = (E + B) / 2, Se = (I + U) / 2, Ee = (B + V) / 2, Ae = (U + X) / 2, Re = (V + Y) / 2, Te = (X + K) / 2, we = (_e + Ee) / 2, Pe = (Se + Ae) / 2, Ie = (Ee + Re) / 2, Me = (Ae + Te) / 2, Oe = (we + Ie) / 2, Le = (Pe + Me) / 2, Ne = Y - E, Ve = K - I, Xe = Math.abs((B - Y) * Ve - (U - K) * Ne), Ue = Math.abs((V - Y) * Ve - (X - K) * Ne), We;
1055
- return xe || (xe = [{
1056
- x: E,
1057
- y: I
1058
- }, {
1059
- x: Y,
1060
- y: K
1061
- }], Z = 1), xe.splice(Z || xe.length - 1, 0, {
1062
- x: Oe,
1063
- y: Le
1064
- }), (Xe + Ue) * (Xe + Ue) > J * (Ne * Ne + Ve * Ve) && (We = xe.length, C(E, I, _e, Se, we, Pe, Oe, Le, J, xe, Z), C(Oe, Le, Ie, Me, Re, Te, Y, K, J, xe, Z + 1 + (xe.length - We))), xe;
1065
- }, CustomEase = /* @__PURE__ */ function() {
1066
- function C(I, B, U) {
1067
- _coreInitted || _initCore$1(), this.id = I, this.setData(B, U);
1068
- }
1069
- var E = C.prototype;
1070
- return E.setData = function(B, U) {
1071
- U = U || {}, B = B || "0,0,1,1";
1072
- var V = B.match(_numExp), X = 1, Y = [], K = [], J = U.precision || 1, xe = J <= 1, Z, _e, Se, Ee, Ae, Re, Te, we, Pe;
1073
- if (this.data = B, (_needsParsingExp.test(B) || ~B.indexOf("M") && B.indexOf("C") < 0) && (V = stringToRawPath(B)[0]), Z = V.length, Z === 4)
1074
- V.unshift(0, 0), V.push(1, 1), Z = 8;
1075
- else if ((Z - 2) % 6)
1076
- throw "Invalid CustomEase";
1077
- for ((+V[0] != 0 || +V[Z - 2] != 1) && _normalize(V, U.height, U.originY), this.segment = V, Ee = 2; Ee < Z; Ee += 6)
1078
- _e = {
1079
- x: +V[Ee - 2],
1080
- y: +V[Ee - 1]
1081
- }, Se = {
1082
- x: +V[Ee + 4],
1083
- y: +V[Ee + 5]
1084
- }, Y.push(_e, Se), _bezierToPoints(_e.x, _e.y, +V[Ee], +V[Ee + 1], +V[Ee + 2], +V[Ee + 3], Se.x, Se.y, 1 / (J * 2e5), Y, Y.length - 1);
1085
- for (Z = Y.length, Ee = 0; Ee < Z; Ee++)
1086
- Te = Y[Ee], we = Y[Ee - 1] || Te, (Te.x > we.x || we.y !== Te.y && we.x === Te.x || Te === we) && Te.x <= 1 ? (we.cx = Te.x - we.x, we.cy = Te.y - we.y, we.n = Te, we.nx = Te.x, xe && Ee > 1 && Math.abs(we.cy / we.cx - Y[Ee - 2].cy / Y[Ee - 2].cx) > 2 && (xe = 0), we.cx < X && (we.cx ? X = we.cx : (we.cx = 1e-3, Ee === Z - 1 && (we.x -= 1e-3, X = Math.min(X, 1e-3), xe = 0)))) : (Y.splice(Ee--, 1), Z--);
1087
- if (Z = 1 / X + 1 | 0, Ae = 1 / Z, Re = 0, Te = Y[0], xe) {
1088
- for (Ee = 0; Ee < Z; Ee++)
1089
- Pe = Ee * Ae, Te.nx < Pe && (Te = Y[++Re]), _e = Te.y + (Pe - Te.x) / Te.cx * Te.cy, K[Ee] = {
1090
- x: Pe,
1091
- cx: Ae,
1092
- y: _e,
1093
- cy: 0,
1094
- nx: 9
1095
- }, Ee && (K[Ee - 1].cy = _e - K[Ee - 1].y);
1096
- K[Z - 1].cy = Y[Y.length - 1].y - _e;
1097
- } else {
1098
- for (Ee = 0; Ee < Z; Ee++)
1099
- Te.nx < Ee * Ae && (Te = Y[++Re]), K[Ee] = Te;
1100
- Re < Y.length - 1 && (K[Ee - 1] = Y[Y.length - 2]);
1101
- }
1102
- return this.ease = function(Ie) {
1103
- var Me = K[Ie * Z | 0] || K[Z - 1];
1104
- return Me.nx < Ie && (Me = Me.n), Me.y + (Ie - Me.x) / Me.cx * Me.cy;
1105
- }, this.ease.custom = this, this.id && gsap$1 && gsap$1.registerEase(this.id, this.ease), this;
1106
- }, E.getSVGData = function(B) {
1107
- return C.getSVGData(this, B);
1108
- }, C.create = function(B, U, V) {
1109
- return new C(B, U, V).ease;
1110
- }, C.register = function(B) {
1111
- gsap$1 = B, _initCore$1();
1112
- }, C.get = function(B) {
1113
- return gsap$1.parseEase(B);
1114
- }, C.getSVGData = function(B, U) {
1115
- U = U || {};
1116
- var V = U.width || 100, X = U.height || 100, Y = U.x || 0, K = (U.y || 0) + X, J = gsap$1.utils.toArray(U.path)[0], xe, Z, _e, Se, Ee, Ae, Re, Te, we, Pe;
1117
- if (U.invert && (X = -X, K = 0), typeof B == "string" && (B = gsap$1.parseEase(B)), B.custom && (B = B.custom), B instanceof C)
1118
- xe = rawPathToString(transformRawPath([B.segment], V, 0, 0, -X, Y, K));
1119
- else {
1120
- for (xe = [Y, K], Re = Math.max(5, (U.precision || 1) * 200), Se = 1 / Re, Re += 2, Te = 5 / Re, we = _round(Y + Se * V), Pe = _round(K + B(Se) * -X), Z = (Pe - K) / (we - Y), _e = 2; _e < Re; _e++)
1121
- Ee = _round(Y + _e * Se * V), Ae = _round(K + B(_e * Se) * -X), (Math.abs((Ae - Pe) / (Ee - we) - Z) > Te || _e === Re - 1) && (xe.push(we, Pe), Z = (Ae - Pe) / (Ee - we)), we = Ee, Pe = Ae;
1122
- xe = "M" + xe.join(",");
1123
- }
1124
- return J && J.setAttribute("d", xe), xe;
1125
- }, C;
1126
- }();
1127
- _getGSAP$1() && gsap$1.registerPlugin(CustomEase);
1128
- CustomEase.version = "3.11.5";
1129
- /*!
1130
- * PixiPlugin 3.11.5
1131
- * https://greensock.com
1132
- *
1133
- * @license Copyright 2008-2023, GreenSock. All rights reserved.
702
+ * @license Copyright 2008-2023, GreenSock. All rights reserved.
1134
703
  * Subject to the terms at https://greensock.com/standard-license or for
1135
704
  * Club GreenSock members, the agreement issued with that membership.
1136
705
  * @author: Jack Doyle, jack@greensock.com
@@ -2081,7 +1650,7 @@ punycode$1.exports;
2081
1650
  Ke[qe] = Be(Ge[qe]);
2082
1651
  return Ke;
2083
1652
  }
2084
- function Xe(Ge, Be) {
1653
+ function We(Ge, Be) {
2085
1654
  var qe = Ge.split("@"), Ke = "";
2086
1655
  qe.length > 1 && (Ke = qe[0] + "@", Ge = qe[1]), Ge = Ge.replace(we, ".");
2087
1656
  var Ye = Ge.split("."), Qe = Ve(Ye, Be).join(".");
@@ -2092,16 +1661,16 @@ punycode$1.exports;
2092
1661
  Ye = Ge.charCodeAt(qe++), Ye >= 55296 && Ye <= 56319 && qe < Ke ? (Qe = Ge.charCodeAt(qe++), (Qe & 64512) == 56320 ? Be.push(((Ye & 1023) << 10) + (Qe & 1023) + 65536) : (Be.push(Ye), qe--)) : Be.push(Ye);
2093
1662
  return Be;
2094
1663
  }
2095
- function We(Ge) {
1664
+ function Xe(Ge) {
2096
1665
  return Ve(Ge, function(Be) {
2097
1666
  var qe = "";
2098
1667
  return Be > 65535 && (Be -= 65536, qe += Oe(Be >>> 10 & 1023 | 55296), Be = 56320 | Be & 1023), qe += Oe(Be), qe;
2099
1668
  }).join("");
2100
1669
  }
2101
- function He(Ge) {
1670
+ function ze(Ge) {
2102
1671
  return Ge - 48 < 10 ? Ge - 22 : Ge - 65 < 26 ? Ge - 65 : Ge - 97 < 26 ? Ge - 97 : K;
2103
1672
  }
2104
- function ze(Ge, Be) {
1673
+ function He(Ge, Be) {
2105
1674
  return Ge + 22 + 75 * (Ge < 26) - ((Be != 0) << 5);
2106
1675
  }
2107
1676
  function je(Ge, Be, qe) {
@@ -2111,42 +1680,42 @@ punycode$1.exports;
2111
1680
  return Me(Ke + (Ie + 1) * Ge / (Ge + Z));
2112
1681
  }
2113
1682
  function $e(Ge) {
2114
- var Be = [], qe = Ge.length, Ke, Ye = 0, Qe = Ee, Ze = Se, it, at, st, Je, et, nt, rt, tt, ot;
1683
+ var Be = [], qe = Ge.length, Ke, Ye = 0, Qe = Ee, Ze = Se, it, at, st, Je, et, rt, nt, tt, ot;
2115
1684
  for (it = Ge.lastIndexOf(Ae), it < 0 && (it = 0), at = 0; at < it; ++at)
2116
1685
  Ge.charCodeAt(at) >= 128 && Ne("not-basic"), Be.push(Ge.charCodeAt(at));
2117
1686
  for (st = it > 0 ? it + 1 : 0; st < qe; ) {
2118
- for (Je = Ye, et = 1, nt = K; st >= qe && Ne("invalid-input"), rt = He(Ge.charCodeAt(st++)), (rt >= K || rt > Me((Y - Ye) / et)) && Ne("overflow"), Ye += rt * et, tt = nt <= Ze ? J : nt >= Ze + xe ? xe : nt - Ze, !(rt < tt); nt += K)
1687
+ for (Je = Ye, et = 1, rt = K; st >= qe && Ne("invalid-input"), nt = ze(Ge.charCodeAt(st++)), (nt >= K || nt > Me((Y - Ye) / et)) && Ne("overflow"), Ye += nt * et, tt = rt <= Ze ? J : rt >= Ze + xe ? xe : rt - Ze, !(nt < tt); rt += K)
2119
1688
  ot = K - tt, et > Me(Y / ot) && Ne("overflow"), et *= ot;
2120
1689
  Ke = Be.length + 1, Ze = je(Ye - Je, Ke, Je == 0), Me(Ye / Ke) > Y - Qe && Ne("overflow"), Qe += Me(Ye / Ke), Ye %= Ke, Be.splice(Ye++, 0, Qe);
2121
1690
  }
2122
- return We(Be);
1691
+ return Xe(Be);
2123
1692
  }
2124
1693
  function De(Ge) {
2125
- var Be, qe, Ke, Ye, Qe, Ze, it, at, st, Je, et, nt = [], rt, tt, ot, ut;
2126
- for (Ge = Ue(Ge), rt = Ge.length, Be = Ee, qe = 0, Qe = Se, Ze = 0; Ze < rt; ++Ze)
2127
- et = Ge[Ze], et < 128 && nt.push(Oe(et));
2128
- for (Ke = Ye = nt.length, Ye && nt.push(Ae); Ke < rt; ) {
2129
- for (it = Y, Ze = 0; Ze < rt; ++Ze)
1694
+ var Be, qe, Ke, Ye, Qe, Ze, it, at, st, Je, et, rt = [], nt, tt, ot, ut;
1695
+ for (Ge = Ue(Ge), nt = Ge.length, Be = Ee, qe = 0, Qe = Se, Ze = 0; Ze < nt; ++Ze)
1696
+ et = Ge[Ze], et < 128 && rt.push(Oe(et));
1697
+ for (Ke = Ye = rt.length, Ye && rt.push(Ae); Ke < nt; ) {
1698
+ for (it = Y, Ze = 0; Ze < nt; ++Ze)
2130
1699
  et = Ge[Ze], et >= Be && et < it && (it = et);
2131
- for (tt = Ke + 1, it - Be > Me((Y - qe) / tt) && Ne("overflow"), qe += (it - Be) * tt, Be = it, Ze = 0; Ze < rt; ++Ze)
1700
+ for (tt = Ke + 1, it - Be > Me((Y - qe) / tt) && Ne("overflow"), qe += (it - Be) * tt, Be = it, Ze = 0; Ze < nt; ++Ze)
2132
1701
  if (et = Ge[Ze], et < Be && ++qe > Y && Ne("overflow"), et == Be) {
2133
1702
  for (at = qe, st = K; Je = st <= Qe ? J : st >= Qe + xe ? xe : st - Qe, !(at < Je); st += K)
2134
- ut = at - Je, ot = K - Je, nt.push(
2135
- Oe(ze(Je + ut % ot, 0))
1703
+ ut = at - Je, ot = K - Je, rt.push(
1704
+ Oe(He(Je + ut % ot, 0))
2136
1705
  ), at = Me(ut / ot);
2137
- nt.push(Oe(ze(at, 0))), Qe = je(qe, tt, Ke == Ye), qe = 0, ++Ke;
1706
+ rt.push(Oe(He(at, 0))), Qe = je(qe, tt, Ke == Ye), qe = 0, ++Ke;
2138
1707
  }
2139
1708
  ++qe, ++Be;
2140
1709
  }
2141
- return nt.join("");
1710
+ return rt.join("");
2142
1711
  }
2143
1712
  function Fe(Ge) {
2144
- return Xe(Ge, function(Be) {
1713
+ return We(Ge, function(Be) {
2145
1714
  return Re.test(Be) ? $e(Be.slice(4).toLowerCase()) : Be;
2146
1715
  });
2147
1716
  }
2148
1717
  function ke(Ge) {
2149
- return Xe(Ge, function(Be) {
1718
+ return We(Ge, function(Be) {
2150
1719
  return Te.test(Be) ? "xn--" + De(Be) : Be;
2151
1720
  });
2152
1721
  }
@@ -2166,7 +1735,7 @@ punycode$1.exports;
2166
1735
  */
2167
1736
  ucs2: {
2168
1737
  decode: Ue,
2169
- encode: We
1738
+ encode: Xe
2170
1739
  },
2171
1740
  decode: $e,
2172
1741
  encode: De,
@@ -2542,20 +2111,20 @@ var utilInspect = require$$0, inspectCustom = utilInspect.custom, inspectSymbol
2542
2111
  }
2543
2112
  var xe = typeof V.depth > "u" ? 5 : V.depth;
2544
2113
  if (typeof B > "u" && (B = 0), B >= xe && xe > 0 && typeof E == "object")
2545
- return isArray$9(E) ? "[Array]" : "[Object]";
2114
+ return isArray$c(E) ? "[Array]" : "[Object]";
2546
2115
  var Z = getIndent(V, B);
2547
2116
  if (typeof U > "u")
2548
2117
  U = [];
2549
2118
  else if (indexOf(U, E) >= 0)
2550
2119
  return "[Circular]";
2551
- function _e(He, ze, je) {
2552
- if (ze && (U = $arrSlice.call(U), U.push(ze)), je) {
2120
+ function _e(ze, He, je) {
2121
+ if (He && (U = $arrSlice.call(U), U.push(He)), je) {
2553
2122
  var $e = {
2554
2123
  depth: V.depth
2555
2124
  };
2556
- return has$3(V, "quoteStyle") && ($e.quoteStyle = V.quoteStyle), C(He, $e, B + 1, U);
2125
+ return has$3(V, "quoteStyle") && ($e.quoteStyle = V.quoteStyle), C(ze, $e, B + 1, U);
2557
2126
  }
2558
- return C(He, V, B + 1, U);
2127
+ return C(ze, V, B + 1, U);
2559
2128
  }
2560
2129
  if (typeof E == "function" && !isRegExp$1(E)) {
2561
2130
  var Se = nameOf(E), Ee = arrObjKeys(E, _e);
@@ -2570,7 +2139,7 @@ var utilInspect = require$$0, inspectCustom = utilInspect.custom, inspectSymbol
2570
2139
  Re += " " + Te[we].name + "=" + wrapQuotes(quote(Te[we].value), "double", V);
2571
2140
  return Re += ">", E.childNodes && E.childNodes.length && (Re += "..."), Re += "</" + $toLowerCase.call(String(E.nodeName)) + ">", Re;
2572
2141
  }
2573
- if (isArray$9(E)) {
2142
+ if (isArray$c(E)) {
2574
2143
  if (E.length === 0)
2575
2144
  return "[]";
2576
2145
  var Pe = arrObjKeys(E, _e);
@@ -2588,14 +2157,14 @@ var utilInspect = require$$0, inspectCustom = utilInspect.custom, inspectSymbol
2588
2157
  }
2589
2158
  if (isMap(E)) {
2590
2159
  var Me = [];
2591
- return mapForEach && mapForEach.call(E, function(He, ze) {
2592
- Me.push(_e(ze, E, !0) + " => " + _e(He, E));
2160
+ return mapForEach && mapForEach.call(E, function(ze, He) {
2161
+ Me.push(_e(He, E, !0) + " => " + _e(ze, E));
2593
2162
  }), collectionOf("Map", mapSize$1.call(E), Me, Z);
2594
2163
  }
2595
2164
  if (isSet(E)) {
2596
2165
  var Oe = [];
2597
- return setForEach && setForEach.call(E, function(He) {
2598
- Oe.push(_e(He, E));
2166
+ return setForEach && setForEach.call(E, function(ze) {
2167
+ Oe.push(_e(ze, E));
2599
2168
  }), collectionOf("Set", setSize.call(E), Oe, Z);
2600
2169
  }
2601
2170
  if (isWeakMap(E))
@@ -2613,8 +2182,8 @@ var utilInspect = require$$0, inspectCustom = utilInspect.custom, inspectSymbol
2613
2182
  if (isString(E))
2614
2183
  return markBoxed(_e(String(E)));
2615
2184
  if (!isDate(E) && !isRegExp$1(E)) {
2616
- var Le = arrObjKeys(E, _e), Ne = gPO ? gPO(E) === Object.prototype : E instanceof Object || E.constructor === Object, Ve = E instanceof Object ? "" : "null prototype", Xe = !Ne && toStringTag && Object(E) === E && toStringTag in E ? $slice.call(toStr(E), 8, -1) : Ve ? "Object" : "", Ue = Ne || typeof E.constructor != "function" ? "" : E.constructor.name ? E.constructor.name + " " : "", We = Ue + (Xe || Ve ? "[" + $join.call($concat.call([], Xe || [], Ve || []), ": ") + "] " : "");
2617
- return Le.length === 0 ? We + "{}" : Z ? We + "{" + indentedJoin(Le, Z) + "}" : We + "{ " + $join.call(Le, ", ") + " }";
2185
+ var Le = arrObjKeys(E, _e), Ne = gPO ? gPO(E) === Object.prototype : E instanceof Object || E.constructor === Object, Ve = E instanceof Object ? "" : "null prototype", We = !Ne && toStringTag && Object(E) === E && toStringTag in E ? $slice.call(toStr(E), 8, -1) : Ve ? "Object" : "", Ue = Ne || typeof E.constructor != "function" ? "" : E.constructor.name ? E.constructor.name + " " : "", Xe = Ue + (We || Ve ? "[" + $join.call($concat.call([], We || [], Ve || []), ": ") + "] " : "");
2186
+ return Le.length === 0 ? Xe + "{}" : Z ? Xe + "{" + indentedJoin(Le, Z) + "}" : Xe + "{ " + $join.call(Le, ", ") + " }";
2618
2187
  }
2619
2188
  return String(E);
2620
2189
  };
@@ -2625,7 +2194,7 @@ function wrapQuotes(C, E, I) {
2625
2194
  function quote(C) {
2626
2195
  return $replace.call(String(C), /"/g, "&quot;");
2627
2196
  }
2628
- function isArray$9(C) {
2197
+ function isArray$c(C) {
2629
2198
  return toStr(C) === "[object Array]" && (!toStringTag || !(typeof C == "object" && toStringTag in C));
2630
2199
  }
2631
2200
  function isDate(C) {
@@ -2820,7 +2389,7 @@ function indentedJoin(C, E) {
2820
2389
  ` + E.prev;
2821
2390
  }
2822
2391
  function arrObjKeys(C, E) {
2823
- var I = isArray$9(C), B = [];
2392
+ var I = isArray$c(C), B = [];
2824
2393
  if (I) {
2825
2394
  B.length = C.length;
2826
2395
  for (var U = 0; U < C.length; U++)
@@ -2903,14 +2472,14 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
2903
2472
  },
2904
2473
  RFC1738: Format.RFC1738,
2905
2474
  RFC3986: Format.RFC3986
2906
- }, formats$2 = formats$3, has$2 = Object.prototype.hasOwnProperty, isArray$8 = Array.isArray, hexTable = function() {
2475
+ }, formats$2 = formats$3, has$2 = Object.prototype.hasOwnProperty, isArray$b = Array.isArray, hexTable = function() {
2907
2476
  for (var C = [], E = 0; E < 256; ++E)
2908
2477
  C.push("%" + ((E < 16 ? "0" : "") + E.toString(16)).toUpperCase());
2909
2478
  return C;
2910
2479
  }(), compactQueue = function(E) {
2911
2480
  for (; E.length > 1; ) {
2912
2481
  var I = E.pop(), B = I.obj[I.prop];
2913
- if (isArray$8(B)) {
2482
+ if (isArray$b(B)) {
2914
2483
  for (var U = [], V = 0; V < B.length; ++V)
2915
2484
  typeof B[V] < "u" && U.push(B[V]);
2916
2485
  I.obj[I.prop] = U;
@@ -2924,7 +2493,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
2924
2493
  if (!I)
2925
2494
  return E;
2926
2495
  if (typeof I != "object") {
2927
- if (isArray$8(E))
2496
+ if (isArray$b(E))
2928
2497
  E.push(I);
2929
2498
  else if (E && typeof E == "object")
2930
2499
  (B && (B.plainObjects || B.allowPrototypes) || !has$2.call(Object.prototype, I)) && (E[I] = !0);
@@ -2935,7 +2504,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
2935
2504
  if (!E || typeof E != "object")
2936
2505
  return [E].concat(I);
2937
2506
  var U = E;
2938
- return isArray$8(E) && !isArray$8(I) && (U = arrayToObject(E, B)), isArray$8(E) && isArray$8(I) ? (I.forEach(function(V, X) {
2507
+ return isArray$b(E) && !isArray$b(I) && (U = arrayToObject(E, B)), isArray$b(E) && isArray$b(I) ? (I.forEach(function(V, X) {
2939
2508
  if (has$2.call(E, X)) {
2940
2509
  var Y = E[X];
2941
2510
  Y && typeof Y == "object" && V && typeof V == "object" ? E[X] = C(Y, V, B) : E.push(V);
@@ -2996,12 +2565,12 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
2996
2565
  return compactQueue(I), E;
2997
2566
  }, isRegExp = function(E) {
2998
2567
  return Object.prototype.toString.call(E) === "[object RegExp]";
2999
- }, isBuffer = function(E) {
2568
+ }, isBuffer$2 = function(E) {
3000
2569
  return !E || typeof E != "object" ? !1 : !!(E.constructor && E.constructor.isBuffer && E.constructor.isBuffer(E));
3001
2570
  }, combine$1 = function(E, I) {
3002
2571
  return [].concat(E, I);
3003
2572
  }, maybeMap = function(E, I) {
3004
- if (isArray$8(E)) {
2573
+ if (isArray$b(E)) {
3005
2574
  for (var B = [], U = 0; U < E.length; U += 1)
3006
2575
  B.push(I(E[U]));
3007
2576
  return B;
@@ -3014,7 +2583,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3014
2583
  compact,
3015
2584
  decode,
3016
2585
  encode,
3017
- isBuffer,
2586
+ isBuffer: isBuffer$2,
3018
2587
  isRegExp,
3019
2588
  maybeMap,
3020
2589
  merge
@@ -3029,8 +2598,8 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3029
2598
  repeat: function(E) {
3030
2599
  return E;
3031
2600
  }
3032
- }, isArray$7 = Array.isArray, push = Array.prototype.push, pushToArray = function(C, E) {
3033
- push.apply(C, isArray$7(E) ? E : [E]);
2601
+ }, isArray$a = Array.isArray, push = Array.prototype.push, pushToArray = function(C, E) {
2602
+ push.apply(C, isArray$a(E) ? E : [E]);
3034
2603
  }, toISO = Date.prototype.toISOString, defaultFormat = formats$1.default, defaults$1 = {
3035
2604
  addQueryPrefix: !1,
3036
2605
  allowDots: !1,
@@ -3061,7 +2630,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3061
2630
  }
3062
2631
  typeof we.get(sentinel) > "u" && (Pe = 0);
3063
2632
  }
3064
- if (typeof K == "function" ? Te = K(I, Te) : Te instanceof Date ? Te = Z(Te) : B === "comma" && isArray$7(Te) && (Te = utils$1.maybeMap(Te, function($e) {
2633
+ if (typeof K == "function" ? Te = K(I, Te) : Te instanceof Date ? Te = Z(Te) : B === "comma" && isArray$a(Te) && (Te = utils$1.maybeMap(Te, function($e) {
3065
2634
  return $e instanceof Date ? Z($e) : $e;
3066
2635
  })), Te === null) {
3067
2636
  if (V)
@@ -3079,28 +2648,28 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3079
2648
  if (typeof Te > "u")
3080
2649
  return Le;
3081
2650
  var Ne;
3082
- if (B === "comma" && isArray$7(Te))
2651
+ if (B === "comma" && isArray$a(Te))
3083
2652
  Ee && Y && (Te = utils$1.maybeMap(Te, Y)), Ne = [{ value: Te.length > 0 ? Te.join(",") || null : void 0 }];
3084
- else if (isArray$7(K))
2653
+ else if (isArray$a(K))
3085
2654
  Ne = K;
3086
2655
  else {
3087
2656
  var Ve = Object.keys(Te);
3088
2657
  Ne = J ? Ve.sort(J) : Ve;
3089
2658
  }
3090
- for (var Xe = U && isArray$7(Te) && Te.length === 1 ? I + "[]" : I, Ue = 0; Ue < Ne.length; ++Ue) {
3091
- var We = Ne[Ue], He = typeof We == "object" && typeof We.value < "u" ? We.value : Te[We];
3092
- if (!(X && He === null)) {
3093
- var ze = isArray$7(Te) ? typeof B == "function" ? B(Xe, We) : Xe : Xe + (xe ? "." + We : "[" + We + "]");
2659
+ for (var We = U && isArray$a(Te) && Te.length === 1 ? I + "[]" : I, Ue = 0; Ue < Ne.length; ++Ue) {
2660
+ var Xe = Ne[Ue], ze = typeof Xe == "object" && typeof Xe.value < "u" ? Xe.value : Te[Xe];
2661
+ if (!(X && ze === null)) {
2662
+ var He = isArray$a(Te) ? typeof B == "function" ? B(We, Xe) : We : We + (xe ? "." + Xe : "[" + Xe + "]");
3094
2663
  Re.set(E, Pe);
3095
2664
  var je = getSideChannel();
3096
2665
  je.set(sentinel, Re), pushToArray(Le, C(
3097
- He,
3098
2666
  ze,
2667
+ He,
3099
2668
  B,
3100
2669
  U,
3101
2670
  V,
3102
2671
  X,
3103
- B === "comma" && Ee && isArray$7(Te) ? null : Y,
2672
+ B === "comma" && Ee && isArray$a(Te) ? null : Y,
3104
2673
  K,
3105
2674
  J,
3106
2675
  xe,
@@ -3129,7 +2698,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3129
2698
  B = E.format;
3130
2699
  }
3131
2700
  var U = formats$1.formatters[B], V = defaults$1.filter;
3132
- return (typeof E.filter == "function" || isArray$7(E.filter)) && (V = E.filter), {
2701
+ return (typeof E.filter == "function" || isArray$a(E.filter)) && (V = E.filter), {
3133
2702
  addQueryPrefix: typeof E.addQueryPrefix == "boolean" ? E.addQueryPrefix : defaults$1.addQueryPrefix,
3134
2703
  allowDots: typeof E.allowDots > "u" ? defaults$1.allowDots : !!E.allowDots,
3135
2704
  charset: I,
@@ -3148,7 +2717,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3148
2717
  };
3149
2718
  }, stringify_1 = function(C, E) {
3150
2719
  var I = C, B = normalizeStringifyOptions(E), U, V;
3151
- typeof B.filter == "function" ? (V = B.filter, I = V("", I)) : isArray$7(B.filter) && (V = B.filter, U = V);
2720
+ typeof B.filter == "function" ? (V = B.filter, I = V("", I)) : isArray$a(B.filter) && (V = B.filter, U = V);
3152
2721
  var X = [];
3153
2722
  if (typeof I != "object" || I === null)
3154
2723
  return "";
@@ -3182,7 +2751,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3182
2751
  }
3183
2752
  var Se = X.join(B.delimiter), Ee = B.addQueryPrefix === !0 ? "?" : "";
3184
2753
  return B.charsetSentinel && (B.charset === "iso-8859-1" ? Ee += "utf8=%26%2310003%3B&" : Ee += "utf8=%E2%9C%93&"), Se.length > 0 ? Ee + Se : "";
3185
- }, utils = utils$2, has = Object.prototype.hasOwnProperty, isArray$6 = Array.isArray, defaults = {
2754
+ }, utils = utils$2, has = Object.prototype.hasOwnProperty, isArray$9 = Array.isArray, defaults = {
3186
2755
  allowDots: !1,
3187
2756
  allowPrototypes: !1,
3188
2757
  allowSparse: !1,
@@ -3218,7 +2787,7 @@ var GetIntrinsic = getIntrinsic, callBound = callBound$1, inspect = objectInspec
3218
2787
  function(Ae) {
3219
2788
  return I.decoder(Ae, defaults.decoder, J, "value");
3220
2789
  }
3221
- )), Ee && I.interpretNumericEntities && J === "iso-8859-1" && (Ee = interpretNumericEntities(Ee)), xe.indexOf("[]=") > -1 && (Ee = isArray$6(Ee) ? [Ee] : Ee), has.call(B, Se) ? B[Se] = utils.combine(B[Se], Ee) : B[Se] = Ee;
2790
+ )), Ee && I.interpretNumericEntities && J === "iso-8859-1" && (Ee = interpretNumericEntities(Ee)), xe.indexOf("[]=") > -1 && (Ee = isArray$9(Ee) ? [Ee] : Ee), has.call(B, Se) ? B[Se] = utils.combine(B[Se], Ee) : B[Se] = Ee;
3222
2791
  }
3223
2792
  return B;
3224
2793
  }, parseObject = function(C, E, I, B) {
@@ -3385,22 +2954,22 @@ Url.prototype.parse = function(C, E, I) {
3385
2954
  for (var Me = "", Oe = 0, Le = Ie.length; Oe < Le; Oe++)
3386
2955
  Ie.charCodeAt(Oe) > 127 ? Me += "x" : Me += Ie[Oe];
3387
2956
  if (!Me.match(hostnamePartPattern)) {
3388
- var Ne = we.slice(0, Se), Ve = we.slice(Se + 1), Xe = Ie.match(hostnamePartStart);
3389
- Xe && (Ne.push(Xe[1]), Ve.unshift(Xe[2])), Ve.length && (Y = "/" + Ve.join(".") + Y), this.hostname = Ne.join(".");
2957
+ var Ne = we.slice(0, Se), Ve = we.slice(Se + 1), We = Ie.match(hostnamePartStart);
2958
+ We && (Ne.push(We[1]), Ve.unshift(We[2])), Ve.length && (Y = "/" + Ve.join(".") + Y), this.hostname = Ne.join(".");
3390
2959
  break;
3391
2960
  }
3392
2961
  }
3393
2962
  }
3394
2963
  this.hostname.length > hostnameMaxLen ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), Te || (this.hostname = punycode.toASCII(this.hostname));
3395
- var Ue = this.port ? ":" + this.port : "", We = this.hostname || "";
3396
- this.host = We + Ue, this.href += this.host, Te && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), Y[0] !== "/" && (Y = "/" + Y));
2964
+ var Ue = this.port ? ":" + this.port : "", Xe = this.hostname || "";
2965
+ this.host = Xe + Ue, this.href += this.host, Te && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), Y[0] !== "/" && (Y = "/" + Y));
3397
2966
  }
3398
2967
  if (!unsafeProtocol[xe])
3399
2968
  for (var Se = 0, Pe = autoEscape.length; Se < Pe; Se++) {
3400
- var He = autoEscape[Se];
3401
- if (Y.indexOf(He) !== -1) {
3402
- var ze = encodeURIComponent(He);
3403
- ze === He && (ze = escape(He)), Y = Y.split(He).join(ze);
2969
+ var ze = autoEscape[Se];
2970
+ if (Y.indexOf(ze) !== -1) {
2971
+ var He = encodeURIComponent(ze);
2972
+ He === ze && (He = escape(ze)), Y = Y.split(ze).join(He);
3404
2973
  }
3405
2974
  }
3406
2975
  var je = Y.indexOf("#");
@@ -3490,13 +3059,13 @@ Url.prototype.resolveObject = function(C) {
3490
3059
  for (; Ne--; Ne)
3491
3060
  we.unshift("..");
3492
3061
  Re && we[0] !== "" && (!we[0] || we[0].charAt(0) !== "/") && we.unshift(""), Le && we.join("/").substr(-1) !== "/" && we.push("");
3493
- var Xe = we[0] === "" || we[0] && we[0].charAt(0) === "/";
3062
+ var We = we[0] === "" || we[0] && we[0].charAt(0) === "/";
3494
3063
  if (Ie) {
3495
- I.hostname = Xe ? "" : we.length ? we.shift() : "", I.host = I.hostname;
3064
+ I.hostname = We ? "" : we.length ? we.shift() : "", I.host = I.hostname;
3496
3065
  var Me = I.host && I.host.indexOf("@") > 0 ? I.host.split("@") : !1;
3497
3066
  Me && (I.auth = Me.shift(), I.hostname = Me.shift(), I.host = I.hostname);
3498
3067
  }
3499
- return Re = Re || I.host && we.length, Re && !Xe && we.unshift(""), we.length > 0 ? I.pathname = we.join("/") : (I.pathname = null, I.path = null), (I.pathname !== null || I.search !== null) && (I.path = (I.pathname ? I.pathname : "") + (I.search ? I.search : "")), I.auth = C.auth || I.auth, I.slashes = I.slashes || C.slashes, I.href = I.format(), I;
3068
+ return Re = Re || I.host && we.length, Re && !We && we.unshift(""), we.length > 0 ? I.pathname = we.join("/") : (I.pathname = null, I.path = null), (I.pathname !== null || I.search !== null) && (I.path = (I.pathname ? I.pathname : "") + (I.search ? I.search : "")), I.auth = C.auth || I.auth, I.slashes = I.slashes || C.slashes, I.href = I.format(), I;
3500
3069
  };
3501
3070
  Url.prototype.parseHost = function() {
3502
3071
  var C = this.host, E = portPattern.exec(C);
@@ -4622,8 +4191,8 @@ class Rectangle {
4622
4191
  const Ne = this.x < E.x ? E.x : this.x;
4623
4192
  if ((this.right > E.right ? E.right : this.right) <= Ne)
4624
4193
  return !1;
4625
- const Xe = this.y < E.y ? E.y : this.y;
4626
- return (this.bottom > E.bottom ? E.bottom : this.bottom) > Xe;
4194
+ const We = this.y < E.y ? E.y : this.y;
4195
+ return (this.bottom > E.bottom ? E.bottom : this.bottom) > We;
4627
4196
  }
4628
4197
  const B = this.left, U = this.right, V = this.top, X = this.bottom;
4629
4198
  if (U <= B || X <= V)
@@ -9730,10 +9299,10 @@ v$1.parse = function() {
9730
9299
  return J() || xe();
9731
9300
  }
9732
9301
  function J() {
9733
- return ze("directional", C.sideOrCorner, 1);
9302
+ return He("directional", C.sideOrCorner, 1);
9734
9303
  }
9735
9304
  function xe() {
9736
- return ze("angular", C.angleValue, 1);
9305
+ return He("angular", C.angleValue, 1);
9737
9306
  }
9738
9307
  function Z() {
9739
9308
  var De, Fe = _e(), ke;
@@ -9757,18 +9326,18 @@ v$1.parse = function() {
9757
9326
  return De;
9758
9327
  }
9759
9328
  function Se() {
9760
- var De = ze("shape", /^(circle)/i, 0);
9761
- return De && (De.style = He() || Ae()), De;
9329
+ var De = He("shape", /^(circle)/i, 0);
9330
+ return De && (De.style = ze() || Ae()), De;
9762
9331
  }
9763
9332
  function Ee() {
9764
- var De = ze("shape", /^(ellipse)/i, 0);
9333
+ var De = He("shape", /^(ellipse)/i, 0);
9765
9334
  return De && (De.style = Ue() || Ae()), De;
9766
9335
  }
9767
9336
  function Ae() {
9768
- return ze("extent-keyword", C.extentKeywords, 1);
9337
+ return He("extent-keyword", C.extentKeywords, 1);
9769
9338
  }
9770
9339
  function Re() {
9771
- if (ze("position", /^at/, 0)) {
9340
+ if (He("position", /^at/, 0)) {
9772
9341
  var De = Te();
9773
9342
  return De || I("Missing positioning value"), De;
9774
9343
  }
@@ -9796,34 +9365,34 @@ v$1.parse = function() {
9796
9365
  return Le() || Ve() || Ne() || Oe();
9797
9366
  }
9798
9367
  function Oe() {
9799
- return ze("literal", C.literalColor, 0);
9368
+ return He("literal", C.literalColor, 0);
9800
9369
  }
9801
9370
  function Le() {
9802
- return ze("hex", C.hexColor, 1);
9371
+ return He("hex", C.hexColor, 1);
9803
9372
  }
9804
9373
  function Ne() {
9805
9374
  return Y(C.rgbColor, function() {
9806
- return { type: "rgb", value: Pe(Xe) };
9375
+ return { type: "rgb", value: Pe(We) };
9807
9376
  });
9808
9377
  }
9809
9378
  function Ve() {
9810
9379
  return Y(C.rgbaColor, function() {
9811
- return { type: "rgba", value: Pe(Xe) };
9380
+ return { type: "rgba", value: Pe(We) };
9812
9381
  });
9813
9382
  }
9814
- function Xe() {
9383
+ function We() {
9815
9384
  return je(C.number)[1];
9816
9385
  }
9817
9386
  function Ue() {
9818
- return ze("%", C.percentageValue, 1) || We() || He();
9387
+ return He("%", C.percentageValue, 1) || Xe() || ze();
9819
9388
  }
9820
- function We() {
9821
- return ze("position-keyword", C.positionKeywords, 1);
9389
+ function Xe() {
9390
+ return He("position-keyword", C.positionKeywords, 1);
9822
9391
  }
9823
- function He() {
9824
- return ze("px", C.pixelValue, 1) || ze("em", C.emValue, 1);
9392
+ function ze() {
9393
+ return He("px", C.pixelValue, 1) || He("em", C.emValue, 1);
9825
9394
  }
9826
- function ze(De, Fe, ke) {
9395
+ function He(De, Fe, ke) {
9827
9396
  var Ge = je(Fe);
9828
9397
  if (Ge)
9829
9398
  return { type: De, value: Ge[ke] };
@@ -12894,7 +12463,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
12894
12463
  {
12895
12464
  icon: MENUS_ICONS.ARROW_DOWN,
12896
12465
  action: (ke, Ge) => {
12897
- We(ke, Ge);
12466
+ Xe(ke, Ge);
12898
12467
  },
12899
12468
  tooltip: "Alignment Options"
12900
12469
  }
@@ -12924,7 +12493,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
12924
12493
  action: () => console.log("send backward"),
12925
12494
  label: "Send Backward"
12926
12495
  }
12927
- ], Xe = (Me + Oe) * Ne.length + Le * 2 - Oe, Ue = Me + Le * 2, We = useCallback(
12496
+ ], We = (Me + Oe) * Ne.length + Le * 2 - Oe, Ue = Me + Le * 2, Xe = useCallback(
12928
12497
  (ke, Ge) => {
12929
12498
  Ee((Be) => !Be), Re({
12930
12499
  x: Y.x + ke,
@@ -12932,16 +12501,16 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
12932
12501
  });
12933
12502
  },
12934
12503
  [Y, Me]
12935
- ), He = useCallback(() => {
12504
+ ), ze = useCallback(() => {
12936
12505
  B.current && (B.current.unmount(), J(!1)), Ie.current && Ie.current.parent && (Ie.current.parent.removeChild(Ie.current), Ie.current = null, Ee(!1));
12937
- }, []), ze = useCallback(() => {
12506
+ }, []), He = useCallback(() => {
12938
12507
  const ke = document.createElement("div");
12939
12508
  return ke.id = "color-picker-portal", document.body.appendChild(ke), I.current = ke, B.current = createRoot(ke), () => {
12940
12509
  ke && ke.parentNode && document.body.removeChild(ke);
12941
12510
  };
12942
12511
  }, []);
12943
12512
  useEffect(() => {
12944
- ze();
12513
+ He();
12945
12514
  }, []);
12946
12515
  const je = useCallback((ke) => {
12947
12516
  Z(ke), we((Ge) => {
@@ -12956,7 +12525,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
12956
12525
  }, []), De = useCallback(
12957
12526
  (ke, Ge) => {
12958
12527
  I.current && B.current && (_e({ x: ke, y: Ge }), J(!0), (!B.current || // @ts-ignore
12959
- !B.current._internalRoot) && ze(), B.current.render(
12528
+ !B.current._internalRoot) && He(), B.current.render(
12960
12529
  /* @__PURE__ */ jsxRuntimeExports.jsx(
12961
12530
  ColorPickerPortal,
12962
12531
  {
@@ -12976,7 +12545,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
12976
12545
  if (C.current) {
12977
12546
  const Be = C.current.getBounds();
12978
12547
  K({
12979
- x: Be.x + Be.width / 2 - Xe / 2,
12548
+ x: Be.x + Be.width / 2 - We / 2,
12980
12549
  y: Be.y + Be.height
12981
12550
  });
12982
12551
  }
@@ -12988,33 +12557,33 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
12988
12557
  };
12989
12558
  }, []);
12990
12559
  const Fe = useCallback(() => {
12991
- if (He(), C.current) {
12560
+ if (ze(), C.current) {
12992
12561
  const ke = C.current.getBounds();
12993
12562
  K({
12994
- x: ke.x + ke.width / 2 - Xe / 2,
12563
+ x: ke.x + ke.width / 2 - We / 2,
12995
12564
  y: ke.y + ke.height
12996
12565
  });
12997
12566
  }
12998
- }, [He]);
12567
+ }, [ze]);
12999
12568
  return useEffect(() => {
13000
12569
  const ke = (Ge) => {
13001
12570
  if (I.current) {
13002
12571
  const Be = I.current.firstChild;
13003
- Be && !Be.contains(Ge.target) && He();
12572
+ Be && !Be.contains(Ge.target) && ze();
13004
12573
  }
13005
- (Ge.type === "resize" || Ge.type === "scroll") && He();
12574
+ (Ge.type === "resize" || Ge.type === "scroll") && ze();
13006
12575
  };
13007
12576
  return window.addEventListener("click", ke), window.addEventListener("resize", ke), window.addEventListener("scroll", ke), () => {
13008
12577
  window.removeEventListener("click", ke), window.removeEventListener("resize", ke), window.removeEventListener("scroll", ke);
13009
12578
  };
13010
- }, [He]), useEffect(() => {
12579
+ }, [ze]), useEffect(() => {
13011
12580
  var Ke;
13012
12581
  if (!U || !V || !C.current || !E.current)
13013
12582
  return;
13014
12583
  const ke = C.current, Ge = new PIXI.Container();
13015
12584
  (Ke = E.current) == null || Ke.addChild(Ge), ke.addListener("transformchange", Fe);
13016
12585
  const Be = new PIXI.Graphics();
13017
- Be.beginFill(16777215, 0.9), Be.lineStyle(1, 14540253), Be.drawRoundedRect(0, 0, Xe, Ue, 4), Be.endFill(), Ge.addChild(Be);
12586
+ Be.beginFill(16777215, 0.9), Be.lineStyle(1, 14540253), Be.drawRoundedRect(0, 0, We, Ue, 4), Be.endFill(), Ge.addChild(Be);
13018
12587
  const qe = new F();
13019
12588
  return qe.alpha = 0.2, qe.blur = 2, qe.distance = 3, Ge.filters = [qe], Ne.forEach((Ye, Qe) => {
13020
12589
  const Ze = new PIXI.Container(), it = Le + (Me + Oe) * Qe, at = Le, st = new PIXI.Graphics();
@@ -13045,7 +12614,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
13045
12614
  V,
13046
12615
  Y,
13047
12616
  Ne,
13048
- Xe,
12617
+ We,
13049
12618
  Ue,
13050
12619
  xe
13051
12620
  ]), useEffect(() => Pe(
@@ -13053,8 +12622,8 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
13053
12622
  Ve,
13054
12623
  Ae
13055
12624
  ), [Se, Ve, Ae]), useEffect(() => () => {
13056
- He();
13057
- }, [He]), /* @__PURE__ */ jsxRuntimeExports.jsx(Sprite, { texture: PIXI.Texture.EMPTY, ref: E, x: 10, y: 10 });
12625
+ ze();
12626
+ }, [ze]), /* @__PURE__ */ jsxRuntimeExports.jsx(Sprite, { texture: PIXI.Texture.EMPTY, ref: E, x: 10, y: 10 });
13058
12627
  }, CYAN = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], initalTransforms$1 = {
13059
12628
  x: 0,
13060
12629
  y: 0,
@@ -13069,161 +12638,161 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
13069
12638
  effect: Effects.Normal,
13070
12639
  overlay: OverlayTypes.NONE
13071
12640
  }, AbstractContainer = React.forwardRef((C, E) => {
13072
- const [I, B] = React.useState(!1), [U, V] = useState(!1), [X, Y] = useState(!1), [K, J] = useState(), xe = useDebounce(K, 300), Z = useRef(null), _e = useRef(null), Se = useRef(null), Ee = useRef(null), Ae = useRef(null), Re = useRef(null), { tl: Te } = useContext(GsapPixieContext), we = useApp(), Pe = we.screen.width, Ie = we.screen.height, {
13073
- uniqueId: Me,
13074
- visible: Oe,
13075
- startAt: Le,
13076
- transformation: Ne = initalTransforms$1,
13077
- applyTransformer: Ve,
13078
- disabled: Xe,
13079
- pointerdown: Ue,
13080
- pointerout: We,
13081
- pointerover: He,
13082
- isText: ze,
13083
- isDragging: je,
13084
- isGif: $e,
13085
- onDoubleClick: De,
13086
- isTextEditMode: Fe
13087
- } = C, {
13088
- x: ke = 0,
13089
- y: Ge = 0,
13090
- width: Be,
13091
- height: qe,
13092
- scale: Ke = [1, 1],
13093
- rotation: Ye = 0,
13094
- effect: Qe,
13095
- overlay: Ze,
13096
- animation: it = Animations.NONE
13097
- } = Ne, at = useGsapEffect();
12641
+ const {
12642
+ uniqueId: I,
12643
+ visible: B = !0,
12644
+ startAt: U = 0,
12645
+ transformation: V = initalTransforms$1,
12646
+ applyTransformer: X = !1,
12647
+ disabled: Y = !1,
12648
+ pointerdown: K,
12649
+ pointerout: J,
12650
+ pointerover: xe,
12651
+ isText: Z = !1,
12652
+ isDragging: _e = !1,
12653
+ isGif: Se = !1,
12654
+ onDoubleClick: Ee,
12655
+ isTextEditMode: Ae = !1
12656
+ } = C, [Re, Te] = React.useState(!1), [we, Pe] = useState(!1), [Ie, Me] = useState(!1), [Oe, Le] = useState(), Ne = useRef(null), Ve = useRef(null), We = useRef(null), Ue = useRef(null), Xe = useRef(null), ze = useRef(null), { tl: He } = useContext(GsapPixieContext), je = useApp(), $e = je.screen.width, De = je.screen.height, {
12657
+ x: Fe = 0,
12658
+ y: ke = 0,
12659
+ width: Ge,
12660
+ height: Be,
12661
+ scale: qe = [1, 1],
12662
+ rotation: Ke = 0,
12663
+ effect: Ye,
12664
+ overlay: Qe,
12665
+ animation: Ze = Animations.NONE
12666
+ } = V, it = useGsapEffect();
13098
12667
  useCustomEventListener(Events.COMPLETE, () => {
13099
- Z.current;
12668
+ Ne.current;
13100
12669
  }), React.useImperativeHandle(
13101
12670
  E,
13102
12671
  () => ({
13103
- getIsTransformerDragging: () => U,
13104
- getIsMouseOverTransformer: () => X
12672
+ getIsTransformerDragging: () => we,
12673
+ getIsMouseOverTransformer: () => Ie
13105
12674
  }),
13106
- [U, X]
12675
+ [we, Ie]
13107
12676
  ), React.useEffect(() => {
13108
- Z.current && B(!0);
12677
+ Ne.current && Te(!0);
13109
12678
  }, []), React.useEffect(() => {
13110
- J({
13111
- x: ke,
13112
- y: Ge,
13113
- width: Be,
13114
- height: qe,
13115
- animation: it,
13116
- maxX: Pe,
13117
- maxY: Ie
12679
+ Le({
12680
+ x: Fe,
12681
+ y: ke,
12682
+ width: Ge,
12683
+ height: Be,
12684
+ animation: Ze,
12685
+ maxX: $e,
12686
+ maxY: De
13118
12687
  });
13119
- }, [it, ke, Ge, Be, qe, Pe, Ie]), React.useEffect(() => {
13120
- if (!_e.current)
12688
+ }, [Ze, Fe, ke, Ge, Be, $e, De]), React.useEffect(() => {
12689
+ if (!Ve.current)
13121
12690
  return;
13122
12691
  const rt = gsap$2.context(() => {
13123
- if (Te.current && xe) {
13124
- const { x: tt, y: ot, animation: ut, maxX: mt, maxY: pt } = xe || {}, yt = Te.current.progress(), gt = at.updateEffect(
13125
- Z.current,
13126
- ut,
12692
+ if (He.current && Oe) {
12693
+ const { x: nt, y: tt, animation: ot, maxX: ut, maxY: mt } = Oe || {}, pt = He.current.progress(), gt = it.updateEffect(
12694
+ Ne.current,
12695
+ ot,
13127
12696
  {
13128
12697
  immediateRender: !1,
13129
- x: tt,
13130
- y: ot,
12698
+ x: nt,
12699
+ y: tt,
13131
12700
  overwrite: !0,
13132
- maxX: mt,
13133
- maxY: pt
12701
+ maxX: ut,
12702
+ maxY: mt
13134
12703
  }
13135
12704
  );
13136
- Ae.current && (Te.current.remove(Ae.current), Ae.current.progress(0).kill()), yt > 0.1 ? (gt.eventCallback("onComplete", () => {
13137
- gt.remove("onComplete"), Te.current.add(gt, Le), Ae.current = gt;
13138
- }), gt.play()) : (gt.progress(1), Te.current.add(gt, Le), Ae.current = gt);
12705
+ Xe.current && (He.current.remove(Xe.current), Xe.current.progress(0).kill()), pt > 0.1 ? (gt.eventCallback("onComplete", () => {
12706
+ gt.remove("onComplete"), He.current.add(gt, U), Xe.current = gt;
12707
+ }), gt.play()) : (gt.progress(1), He.current.add(gt, U), Xe.current = gt);
13139
12708
  } else
13140
- Ae.current && Ae.current.progress(0).kill();
13141
- }, _e.current);
12709
+ Xe.current && Xe.current.progress(0).kill();
12710
+ }, Ve.current);
13142
12711
  return () => {
13143
12712
  rt.revert();
13144
12713
  };
13145
- }, [Le, xe]);
13146
- const st = React.useCallback(() => {
13147
- Y(!0), He && He();
13148
- }, []), Je = React.useCallback(() => {
13149
- V(!0);
13150
- }, []), et = React.useCallback(
12714
+ }, [U, Oe]);
12715
+ const at = React.useCallback(() => {
12716
+ Me(!0), xe && xe();
12717
+ }, []), st = React.useCallback(() => {
12718
+ Pe(!0);
12719
+ }, []), Je = React.useCallback(
13151
12720
  (rt) => {
13152
- C.onAnchorTransformationEnd && C.onAnchorTransformationEnd(rt), V(!1);
12721
+ C.onAnchorTransformationEnd && C.onAnchorTransformationEnd(rt), Pe(!1);
13153
12722
  },
13154
12723
  []
13155
- ), nt = withFilters(Container$1, {
12724
+ ), et = withFilters(Container$1, {
13156
12725
  matrix: PIXI.filters.ColorMatrixFilter
13157
12726
  });
13158
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: _e, children: [
12727
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: Ve, children: [
13159
12728
  /* @__PURE__ */ jsxRuntimeExports.jsx(
13160
12729
  Container$1,
13161
12730
  {
13162
- ref: Z,
13163
- position: [ke, Ge],
13164
- pivot: [ke, Ge],
13165
- width: Be,
13166
- height: qe,
13167
- scale: Ke,
13168
- rotation: Ye,
13169
- ...!Xe && Oe && !U && !je && {
12731
+ ref: Ne,
12732
+ position: [Fe, ke],
12733
+ pivot: [Fe, ke],
12734
+ width: Ge,
12735
+ height: Be,
12736
+ scale: qe,
12737
+ rotation: Ke,
12738
+ ...!Y && B && !we && !_e && {
13170
12739
  interactive: !0,
13171
12740
  buttonMode: !0,
13172
- pointerdown: Ue,
13173
- pointerover: He,
13174
- pointerout: We
12741
+ pointerdown: K,
12742
+ pointerover: xe,
12743
+ pointerout: J
13175
12744
  },
13176
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: Re, children: [
13177
- !$e && /* @__PURE__ */ jsxRuntimeExports.jsx(
13178
- nt,
12745
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: ze, children: [
12746
+ !Se && /* @__PURE__ */ jsxRuntimeExports.jsx(
12747
+ et,
13179
12748
  {
13180
12749
  scale: 1,
13181
12750
  apply: ({ matrix: rt }) => {
13182
- Qe === Effects.BlackAndWhite ? rt.desaturate() : Qe === Effects.Sepia ? rt.sepia() : Qe === Effects.RetroVintage || Qe === Effects.NightVision ? rt.negative() : Qe === Effects.Normal && rt.reset();
12751
+ Ye === Effects.BlackAndWhite ? rt.desaturate() : Ye === Effects.Sepia ? rt.sepia() : Ye === Effects.RetroVintage || Ye === Effects.NightVision ? rt.negative() : Ye === Effects.Normal && rt.reset();
13183
12752
  },
13184
12753
  matrix: {
13185
12754
  enabled: !0,
13186
12755
  // @ts-ignore
13187
12756
  matrix: CYAN
13188
12757
  },
13189
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: Se, children: C.children })
12758
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: We, children: C.children })
13190
12759
  }
13191
12760
  ),
13192
- $e && /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: Se, children: C.children }),
13193
- !isEmpty$1(Ze) && Ze !== OverlayTypes.NONE && Ze !== OverlayTypes.NORMAL && /* @__PURE__ */ jsxRuntimeExports.jsx(
12761
+ Se && /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: We, children: C.children }),
12762
+ !isEmpty$1(Qe) && Qe !== OverlayTypes.NONE && Qe !== OverlayTypes.NORMAL && /* @__PURE__ */ jsxRuntimeExports.jsx(
13194
12763
  PixiOverlayTilingSprite,
13195
12764
  {
13196
- overlay: Ze,
13197
- width: Be,
13198
- height: qe,
13199
- x: ke,
13200
- y: Ge
12765
+ overlay: Qe,
12766
+ width: Ge,
12767
+ height: Be,
12768
+ x: Fe,
12769
+ y: ke
13201
12770
  }
13202
12771
  )
13203
12772
  ] })
13204
12773
  }
13205
12774
  ),
13206
- Ve && Oe && !Fe && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
12775
+ X && B && !Ae && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
13207
12776
  /* @__PURE__ */ jsxRuntimeExports.jsx(
13208
12777
  PixiTransformer,
13209
12778
  {
13210
- pixiTransformerRef: Ee,
13211
- imageRef: Z,
13212
- isMounted: I,
13213
- transformCommit: et,
13214
- transformChange: Je,
13215
- mouseoverEvent: st,
13216
- uniqueId: Me,
13217
- isText: ze,
13218
- onDoubleClick: De
12779
+ pixiTransformerRef: Ue,
12780
+ imageRef: Ne,
12781
+ isMounted: Re,
12782
+ transformCommit: Je,
12783
+ transformChange: st,
12784
+ mouseoverEvent: at,
12785
+ uniqueId: I,
12786
+ isText: Z,
12787
+ onDoubleClick: Ee
13219
12788
  }
13220
12789
  ),
13221
12790
  /* @__PURE__ */ jsxRuntimeExports.jsx(
13222
12791
  TransformerMenu,
13223
12792
  {
13224
- PixiTransformer: Ee,
13225
- uniqueId: Me,
13226
- isText: !!ze
12793
+ PixiTransformer: Ue,
12794
+ uniqueId: I,
12795
+ isText: !!Z
13227
12796
  }
13228
12797
  )
13229
12798
  ] })
@@ -13559,13 +13128,13 @@ class ArcUtils {
13559
13128
  const Y = X[X.length - 2], J = X[X.length - 1] - I, xe = Y - E, Z = U - I, _e = B - E, Se = Math.abs(J * _e - xe * Z);
13560
13129
  if (Se < 1e-8 || V === 0)
13561
13130
  return (X[X.length - 2] !== E || X[X.length - 1] !== I) && X.push(E, I), null;
13562
- const Ee = J * J + xe * xe, Ae = Z * Z + _e * _e, Re = J * Z + xe * _e, Te = V * Math.sqrt(Ee) / Se, we = V * Math.sqrt(Ae) / Se, Pe = Te * Re / Ee, Ie = we * Re / Ae, Me = Te * _e + we * xe, Oe = Te * Z + we * J, Le = xe * (we + Pe), Ne = J * (we + Pe), Ve = _e * (Te + Ie), Xe = Z * (Te + Ie), Ue = Math.atan2(Ne - Oe, Le - Me), We = Math.atan2(Xe - Oe, Ve - Me);
13131
+ const Ee = J * J + xe * xe, Ae = Z * Z + _e * _e, Re = J * Z + xe * _e, Te = V * Math.sqrt(Ee) / Se, we = V * Math.sqrt(Ae) / Se, Pe = Te * Re / Ee, Ie = we * Re / Ae, Me = Te * _e + we * xe, Oe = Te * Z + we * J, Le = xe * (we + Pe), Ne = J * (we + Pe), Ve = _e * (Te + Ie), We = Z * (Te + Ie), Ue = Math.atan2(Ne - Oe, Le - Me), Xe = Math.atan2(We - Oe, Ve - Me);
13563
13132
  return {
13564
13133
  cx: Me + E,
13565
13134
  cy: Oe + I,
13566
13135
  radius: V,
13567
13136
  startAngle: Ue,
13568
- endAngle: We,
13137
+ endAngle: Xe,
13569
13138
  anticlockwise: xe * Z > _e * J
13570
13139
  };
13571
13140
  }
@@ -13649,49 +13218,49 @@ function buildNonNativeLine(C, E) {
13649
13218
  const xe = E.points, Z = B.length / 2;
13650
13219
  let _e = B.length;
13651
13220
  const Se = xe.length / 2, Ee = V.width / 2, Ae = Ee * Ee, Re = V.miterLimit * V.miterLimit;
13652
- let Te = B[0], we = B[1], Pe = B[2], Ie = B[3], Me = 0, Oe = 0, Le = -(we - Ie), Ne = Te - Pe, Ve = 0, Xe = 0, Ue = Math.sqrt(Le * Le + Ne * Ne);
13221
+ let Te = B[0], we = B[1], Pe = B[2], Ie = B[3], Me = 0, Oe = 0, Le = -(we - Ie), Ne = Te - Pe, Ve = 0, We = 0, Ue = Math.sqrt(Le * Le + Ne * Ne);
13653
13222
  Le /= Ue, Ne /= Ue, Le *= Ee, Ne *= Ee;
13654
- const We = V.alignment, He = (1 - We) * 2, ze = We * 2;
13655
- K || (V.cap === LINE_CAP.ROUND ? _e += round(Te - Le * (He - ze) * 0.5, we - Ne * (He - ze) * 0.5, Te - Le * He, we - Ne * He, Te + Le * ze, we + Ne * ze, xe, !0) + 2 : V.cap === LINE_CAP.SQUARE && (_e += square(Te, we, Le, Ne, He, ze, !0, xe))), xe.push(Te - Le * He, we - Ne * He, Te + Le * ze, we + Ne * ze);
13223
+ const Xe = V.alignment, ze = (1 - Xe) * 2, He = Xe * 2;
13224
+ K || (V.cap === LINE_CAP.ROUND ? _e += round(Te - Le * (ze - He) * 0.5, we - Ne * (ze - He) * 0.5, Te - Le * ze, we - Ne * ze, Te + Le * He, we + Ne * He, xe, !0) + 2 : V.cap === LINE_CAP.SQUARE && (_e += square(Te, we, Le, Ne, ze, He, !0, xe))), xe.push(Te - Le * ze, we - Ne * ze, Te + Le * He, we + Ne * He);
13656
13225
  for (let De = 1; De < Z - 1; ++De) {
13657
- Te = B[(De - 1) * 2], we = B[(De - 1) * 2 + 1], Pe = B[De * 2], Ie = B[De * 2 + 1], Me = B[(De + 1) * 2], Oe = B[(De + 1) * 2 + 1], Le = -(we - Ie), Ne = Te - Pe, Ue = Math.sqrt(Le * Le + Ne * Ne), Le /= Ue, Ne /= Ue, Le *= Ee, Ne *= Ee, Ve = -(Ie - Oe), Xe = Pe - Me, Ue = Math.sqrt(Ve * Ve + Xe * Xe), Ve /= Ue, Xe /= Ue, Ve *= Ee, Xe *= Ee;
13226
+ Te = B[(De - 1) * 2], we = B[(De - 1) * 2 + 1], Pe = B[De * 2], Ie = B[De * 2 + 1], Me = B[(De + 1) * 2], Oe = B[(De + 1) * 2 + 1], Le = -(we - Ie), Ne = Te - Pe, Ue = Math.sqrt(Le * Le + Ne * Ne), Le /= Ue, Ne /= Ue, Le *= Ee, Ne *= Ee, Ve = -(Ie - Oe), We = Pe - Me, Ue = Math.sqrt(Ve * Ve + We * We), Ve /= Ue, We /= Ue, Ve *= Ee, We *= Ee;
13658
13227
  const Fe = Pe - Te, ke = we - Ie, Ge = Pe - Me, Be = Oe - Ie, qe = Fe * Ge + ke * Be, Ke = ke * Ge - Be * Fe, Ye = Ke < 0;
13659
13228
  if (Math.abs(Ke) < 1e-3 * Math.abs(qe)) {
13660
- xe.push(Pe - Le * He, Ie - Ne * He, Pe + Le * ze, Ie + Ne * ze), qe >= 0 && (V.join === LINE_JOIN.ROUND ? _e += round(Pe, Ie, Pe - Le * He, Ie - Ne * He, Pe - Ve * He, Ie - Xe * He, xe, !1) + 4 : _e += 2, xe.push(Pe - Ve * ze, Ie - Xe * ze, Pe + Ve * He, Ie + Xe * He));
13229
+ xe.push(Pe - Le * ze, Ie - Ne * ze, Pe + Le * He, Ie + Ne * He), qe >= 0 && (V.join === LINE_JOIN.ROUND ? _e += round(Pe, Ie, Pe - Le * ze, Ie - Ne * ze, Pe - Ve * ze, Ie - We * ze, xe, !1) + 4 : _e += 2, xe.push(Pe - Ve * He, Ie - We * He, Pe + Ve * ze, Ie + We * ze));
13661
13230
  continue;
13662
13231
  }
13663
- const Qe = (-Le + Te) * (-Ne + Ie) - (-Le + Pe) * (-Ne + we), Ze = (-Ve + Me) * (-Xe + Ie) - (-Ve + Pe) * (-Xe + Oe), it = (Fe * Ze - Ge * Qe) / Ke, at = (Be * Qe - ke * Ze) / Ke, st = (it - Pe) * (it - Pe) + (at - Ie) * (at - Ie), Je = Pe + (it - Pe) * He, et = Ie + (at - Ie) * He, nt = Pe - (it - Pe) * ze, rt = Ie - (at - Ie) * ze, tt = Math.min(Fe * Fe + ke * ke, Ge * Ge + Be * Be), ot = Ye ? He : ze, ut = tt + ot * ot * Ae, mt = st <= ut;
13232
+ const Qe = (-Le + Te) * (-Ne + Ie) - (-Le + Pe) * (-Ne + we), Ze = (-Ve + Me) * (-We + Ie) - (-Ve + Pe) * (-We + Oe), it = (Fe * Ze - Ge * Qe) / Ke, at = (Be * Qe - ke * Ze) / Ke, st = (it - Pe) * (it - Pe) + (at - Ie) * (at - Ie), Je = Pe + (it - Pe) * ze, et = Ie + (at - Ie) * ze, rt = Pe - (it - Pe) * He, nt = Ie - (at - Ie) * He, tt = Math.min(Fe * Fe + ke * ke, Ge * Ge + Be * Be), ot = Ye ? ze : He, ut = tt + ot * ot * Ae, mt = st <= ut;
13664
13233
  let pt = V.join;
13665
13234
  if (pt === LINE_JOIN.MITER && st / Ae > Re && (pt = LINE_JOIN.BEVEL), mt)
13666
13235
  switch (pt) {
13667
13236
  case LINE_JOIN.MITER: {
13668
- xe.push(Je, et, nt, rt);
13237
+ xe.push(Je, et, rt, nt);
13669
13238
  break;
13670
13239
  }
13671
13240
  case LINE_JOIN.BEVEL: {
13672
- Ye ? xe.push(Je, et, Pe + Le * ze, Ie + Ne * ze, Je, et, Pe + Ve * ze, Ie + Xe * ze) : xe.push(Pe - Le * He, Ie - Ne * He, nt, rt, Pe - Ve * He, Ie - Xe * He, nt, rt), _e += 2;
13241
+ Ye ? xe.push(Je, et, Pe + Le * He, Ie + Ne * He, Je, et, Pe + Ve * He, Ie + We * He) : xe.push(Pe - Le * ze, Ie - Ne * ze, rt, nt, Pe - Ve * ze, Ie - We * ze, rt, nt), _e += 2;
13673
13242
  break;
13674
13243
  }
13675
13244
  case LINE_JOIN.ROUND: {
13676
- Ye ? (xe.push(Je, et, Pe + Le * ze, Ie + Ne * ze), _e += round(Pe, Ie, Pe + Le * ze, Ie + Ne * ze, Pe + Ve * ze, Ie + Xe * ze, xe, !0) + 4, xe.push(Je, et, Pe + Ve * ze, Ie + Xe * ze)) : (xe.push(Pe - Le * He, Ie - Ne * He, nt, rt), _e += round(Pe, Ie, Pe - Le * He, Ie - Ne * He, Pe - Ve * He, Ie - Xe * He, xe, !1) + 4, xe.push(Pe - Ve * He, Ie - Xe * He, nt, rt));
13245
+ Ye ? (xe.push(Je, et, Pe + Le * He, Ie + Ne * He), _e += round(Pe, Ie, Pe + Le * He, Ie + Ne * He, Pe + Ve * He, Ie + We * He, xe, !0) + 4, xe.push(Je, et, Pe + Ve * He, Ie + We * He)) : (xe.push(Pe - Le * ze, Ie - Ne * ze, rt, nt), _e += round(Pe, Ie, Pe - Le * ze, Ie - Ne * ze, Pe - Ve * ze, Ie - We * ze, xe, !1) + 4, xe.push(Pe - Ve * ze, Ie - We * ze, rt, nt));
13677
13246
  break;
13678
13247
  }
13679
13248
  }
13680
13249
  else {
13681
- switch (xe.push(Pe - Le * He, Ie - Ne * He, Pe + Le * ze, Ie + Ne * ze), pt) {
13250
+ switch (xe.push(Pe - Le * ze, Ie - Ne * ze, Pe + Le * He, Ie + Ne * He), pt) {
13682
13251
  case LINE_JOIN.MITER: {
13683
- Ye ? xe.push(nt, rt, nt, rt) : xe.push(Je, et, Je, et), _e += 2;
13252
+ Ye ? xe.push(rt, nt, rt, nt) : xe.push(Je, et, Je, et), _e += 2;
13684
13253
  break;
13685
13254
  }
13686
13255
  case LINE_JOIN.ROUND: {
13687
- Ye ? _e += round(Pe, Ie, Pe + Le * ze, Ie + Ne * ze, Pe + Ve * ze, Ie + Xe * ze, xe, !0) + 2 : _e += round(Pe, Ie, Pe - Le * He, Ie - Ne * He, Pe - Ve * He, Ie - Xe * He, xe, !1) + 2;
13256
+ Ye ? _e += round(Pe, Ie, Pe + Le * He, Ie + Ne * He, Pe + Ve * He, Ie + We * He, xe, !0) + 2 : _e += round(Pe, Ie, Pe - Le * ze, Ie - Ne * ze, Pe - Ve * ze, Ie - We * ze, xe, !1) + 2;
13688
13257
  break;
13689
13258
  }
13690
13259
  }
13691
- xe.push(Pe - Ve * He, Ie - Xe * He, Pe + Ve * ze, Ie + Xe * ze), _e += 2;
13260
+ xe.push(Pe - Ve * ze, Ie - We * ze, Pe + Ve * He, Ie + We * He), _e += 2;
13692
13261
  }
13693
13262
  }
13694
- Te = B[(Z - 2) * 2], we = B[(Z - 2) * 2 + 1], Pe = B[(Z - 1) * 2], Ie = B[(Z - 1) * 2 + 1], Le = -(we - Ie), Ne = Te - Pe, Ue = Math.sqrt(Le * Le + Ne * Ne), Le /= Ue, Ne /= Ue, Le *= Ee, Ne *= Ee, xe.push(Pe - Le * He, Ie - Ne * He, Pe + Le * ze, Ie + Ne * ze), K || (V.cap === LINE_CAP.ROUND ? _e += round(Pe - Le * (He - ze) * 0.5, Ie - Ne * (He - ze) * 0.5, Pe - Le * He, Ie - Ne * He, Pe + Le * ze, Ie + Ne * ze, xe, !1) + 2 : V.cap === LINE_CAP.SQUARE && (_e += square(Pe, Ie, Le, Ne, He, ze, !1, xe)));
13263
+ Te = B[(Z - 2) * 2], we = B[(Z - 2) * 2 + 1], Pe = B[(Z - 1) * 2], Ie = B[(Z - 1) * 2 + 1], Le = -(we - Ie), Ne = Te - Pe, Ue = Math.sqrt(Le * Le + Ne * Ne), Le /= Ue, Ne /= Ue, Le *= Ee, Ne *= Ee, xe.push(Pe - Le * ze, Ie - Ne * ze, Pe + Le * He, Ie + Ne * He), K || (V.cap === LINE_CAP.ROUND ? _e += round(Pe - Le * (ze - He) * 0.5, Ie - Ne * (ze - He) * 0.5, Pe - Le * ze, Ie - Ne * ze, Pe + Le * He, Ie + Ne * He, xe, !1) + 2 : V.cap === LINE_CAP.SQUARE && (_e += square(Pe, Ie, Le, Ne, ze, He, !1, xe)));
13695
13264
  const je = E.indices, $e = curves.epsilon * curves.epsilon;
13696
13265
  for (let De = Se; De < _e + Se - 2; ++De)
13697
13266
  Te = xe[De * 2], we = xe[De * 2 + 1], Pe = xe[(De + 1) * 2], Ie = xe[(De + 1) * 2 + 1], Me = xe[(De + 2) * 2], Oe = xe[(De + 2) * 2 + 1], !(Math.abs(Te * (Ie - Oe) + Pe * (Oe - we) + Me * (we - Ie)) < $e) && je.push(De, De + 1, De + 2);
@@ -15497,8 +15066,8 @@ var _slicedToArray = function() {
15497
15066
  }, getArcCenter = function(E, I, B, U, V, X, Y, K, J, xe, Z, _e) {
15498
15067
  var Se = Math.pow(V, 2), Ee = Math.pow(X, 2), Ae = Math.pow(Z, 2), Re = Math.pow(_e, 2), Te = Se * Ee - Se * Re - Ee * Ae;
15499
15068
  Te < 0 && (Te = 0), Te /= Se * Re + Ee * Ae, Te = Math.sqrt(Te) * (Y === K ? -1 : 1);
15500
- var we = Te * V / X * _e, Pe = Te * -X / V * Z, Ie = xe * we - J * Pe + (E + B) / 2, Me = J * we + xe * Pe + (I + U) / 2, Oe = (Z - we) / V, Le = (_e - Pe) / X, Ne = (-Z - we) / V, Ve = (-_e - Pe) / X, Xe = vectorAngle(1, 0, Oe, Le), Ue = vectorAngle(Oe, Le, Ne, Ve);
15501
- return K === 0 && Ue > 0 && (Ue -= TAU$2), K === 1 && Ue < 0 && (Ue += TAU$2), [Ie, Me, Xe, Ue];
15069
+ var we = Te * V / X * _e, Pe = Te * -X / V * Z, Ie = xe * we - J * Pe + (E + B) / 2, Me = J * we + xe * Pe + (I + U) / 2, Oe = (Z - we) / V, Le = (_e - Pe) / X, Ne = (-Z - we) / V, Ve = (-_e - Pe) / X, We = vectorAngle(1, 0, Oe, Le), Ue = vectorAngle(Oe, Le, Ne, Ve);
15070
+ return K === 0 && Ue > 0 && (Ue -= TAU$2), K === 1 && Ue < 0 && (Ue += TAU$2), [Ie, Me, We, Ue];
15502
15071
  }, arcToBezier = function(E) {
15503
15072
  var I = E.px, B = E.py, U = E.cx, V = E.cy, X = E.rx, Y = E.ry, K = E.xAxisRotation, J = K === void 0 ? 0 : K, xe = E.largeArcFlag, Z = xe === void 0 ? 0 : xe, _e = E.sweepFlag, Se = _e === void 0 ? 0 : _e, Ee = [];
15504
15073
  if (X === 0 || Y === 0)
@@ -15509,14 +15078,14 @@ var _slicedToArray = function() {
15509
15078
  X = Math.abs(X), Y = Math.abs(Y);
15510
15079
  var Pe = Math.pow(Te, 2) / Math.pow(X, 2) + Math.pow(we, 2) / Math.pow(Y, 2);
15511
15080
  Pe > 1 && (X *= Math.sqrt(Pe), Y *= Math.sqrt(Pe));
15512
- var Ie = getArcCenter(I, B, U, V, X, Y, Z, Se, Ae, Re, Te, we), Me = _slicedToArray(Ie, 4), Oe = Me[0], Le = Me[1], Ne = Me[2], Ve = Me[3], Xe = Math.abs(Ve) / (TAU$2 / 4);
15513
- Math.abs(1 - Xe) < 1e-7 && (Xe = 1);
15514
- var Ue = Math.max(Math.ceil(Xe), 1);
15081
+ var Ie = getArcCenter(I, B, U, V, X, Y, Z, Se, Ae, Re, Te, we), Me = _slicedToArray(Ie, 4), Oe = Me[0], Le = Me[1], Ne = Me[2], Ve = Me[3], We = Math.abs(Ve) / (TAU$2 / 4);
15082
+ Math.abs(1 - We) < 1e-7 && (We = 1);
15083
+ var Ue = Math.max(Math.ceil(We), 1);
15515
15084
  Ve /= Ue;
15516
- for (var We = 0; We < Ue; We++)
15085
+ for (var Xe = 0; Xe < Ue; Xe++)
15517
15086
  Ee.push(approxUnitArc(Ne, Ve)), Ne += Ve;
15518
- return Ee.map(function(He) {
15519
- var ze = mapToEllipse(He[0], X, Y, Re, Ae, Oe, Le), je = ze.x, $e = ze.y, De = mapToEllipse(He[1], X, Y, Re, Ae, Oe, Le), Fe = De.x, ke = De.y, Ge = mapToEllipse(He[2], X, Y, Re, Ae, Oe, Le), Be = Ge.x, qe = Ge.y;
15087
+ return Ee.map(function(ze) {
15088
+ var He = mapToEllipse(ze[0], X, Y, Re, Ae, Oe, Le), je = He.x, $e = He.y, De = mapToEllipse(ze[1], X, Y, Re, Ae, Oe, Le), Fe = De.x, ke = De.y, Ge = mapToEllipse(ze[2], X, Y, Re, Ae, Oe, Le), Be = Ge.x, qe = Ge.y;
15520
15089
  return { x1: je, y1: $e, x2: Fe, y2: ke, x: Be, y: qe };
15521
15090
  });
15522
15091
  };
@@ -16059,8 +15628,8 @@ function unit_vector_angle(C, E, I, B) {
16059
15628
  function get_arc_center(C, E, I, B, U, V, X, Y, K, J) {
16060
15629
  var xe = J * (C - I) / 2 + K * (E - B) / 2, Z = -K * (C - I) / 2 + J * (E - B) / 2, _e = X * X, Se = Y * Y, Ee = xe * xe, Ae = Z * Z, Re = _e * Se - _e * Ae - Se * Ee;
16061
15630
  Re < 0 && (Re = 0), Re /= _e * Ae + Se * Ee, Re = Math.sqrt(Re) * (U === V ? -1 : 1);
16062
- var Te = Re * X / Y * Z, we = Re * -Y / X * xe, Pe = J * Te - K * we + (C + I) / 2, Ie = K * Te + J * we + (E + B) / 2, Me = (xe - Te) / X, Oe = (Z - we) / Y, Le = (-xe - Te) / X, Ne = (-Z - we) / Y, Ve = unit_vector_angle(1, 0, Me, Oe), Xe = unit_vector_angle(Me, Oe, Le, Ne);
16063
- return V === 0 && Xe > 0 && (Xe -= TAU$1), V === 1 && Xe < 0 && (Xe += TAU$1), [Pe, Ie, Ve, Xe];
15631
+ var Te = Re * X / Y * Z, we = Re * -Y / X * xe, Pe = J * Te - K * we + (C + I) / 2, Ie = K * Te + J * we + (E + B) / 2, Me = (xe - Te) / X, Oe = (Z - we) / Y, Le = (-xe - Te) / X, Ne = (-Z - we) / Y, Ve = unit_vector_angle(1, 0, Me, Oe), We = unit_vector_angle(Me, Oe, Le, Ne);
15632
+ return V === 0 && We > 0 && (We -= TAU$1), V === 1 && We < 0 && (We += TAU$1), [Pe, Ie, Ve, We];
16064
15633
  }
16065
15634
  function approximate_unit_arc(C, E) {
16066
15635
  var I = 1.3333333333333333 * Math.tan(E / 4), B = Math.cos(C), U = Math.sin(C), V = Math.cos(C + E), X = Math.sin(C + E);
@@ -16083,8 +15652,8 @@ var a2c$1 = function(E, I, B, U, V, X, Y, K, J) {
16083
15652
  for (var Oe = 0; Oe < Me.length; Oe += 2) {
16084
15653
  var Le = Me[Oe + 0], Ne = Me[Oe + 1];
16085
15654
  Le *= Y, Ne *= K;
16086
- var Ve = Z * Le - xe * Ne, Xe = xe * Le + Z * Ne;
16087
- Me[Oe + 0] = Ve + Ae[0], Me[Oe + 1] = Xe + Ae[1];
15655
+ var Ve = Z * Le - xe * Ne, We = xe * Le + Z * Ne;
15656
+ Me[Oe + 0] = Ve + Ae[0], Me[Oe + 1] = We + Ae[1];
16088
15657
  }
16089
15658
  return Me;
16090
15659
  });
@@ -16372,11 +15941,11 @@ const svgpath$1 = /* @__PURE__ */ getDefaultExportFromCjs(svgpath), PixiSvgPathS
16372
15941
  temperatureFilter: Le,
16373
15942
  sharpnessFilter: Ne,
16374
15943
  hueFilter: Ve,
16375
- blurFilter: Xe,
15944
+ blurFilter: We,
16376
15945
  adjustmentFilter: Ue,
16377
- vignetteFilter: We,
16378
- noiseFilter: He
16379
- } = withFiltersHook(Pe), { blurRadius: ze = 0, vignette: je = 0, noise: $e = 0 } = Pe;
15946
+ vignetteFilter: Xe,
15947
+ noiseFilter: ze
15948
+ } = withFiltersHook(Pe), { blurRadius: He = 0, vignette: je = 0, noise: $e = 0 } = Pe;
16380
15949
  return React.useEffect(() => {
16381
15950
  const De = svgpath$1(Y).scale(5).translate(0, 0).toString(), Fe = `<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${Se}">
16382
15951
  <path stroke="${Te}" stroke-width="${we}" fill="${Ae || Re}" d="${De}">
@@ -16406,11 +15975,11 @@ const svgpath$1 = /* @__PURE__ */ getDefaultExportFromCjs(svgpath), PixiSvgPathS
16406
15975
  Ve,
16407
15976
  Ue,
16408
15977
  // conditionally add blur filter
16409
- ...ze > 0 ? [Xe] : [],
15978
+ ...He > 0 ? [We] : [],
16410
15979
  // conditionally add vignette filter
16411
- ...je > 0 ? [We] : [],
15980
+ ...je > 0 ? [Xe] : [],
16412
15981
  // conditionally add noise filter
16413
- ...$e > 0 ? [He] : []
15982
+ ...$e > 0 ? [ze] : []
16414
15983
  ]
16415
15984
  }
16416
15985
  ) }) }) });
@@ -16758,20 +16327,20 @@ var howler = {};
16758
16327
  }
16759
16328
  var Ve = Te._node;
16760
16329
  if (Se._webAudio) {
16761
- var Xe = function() {
16330
+ var We = function() {
16762
16331
  Se._playLock = !1, Ne(), Se._refreshBuffer(Te);
16763
- var ze = Te._muted || Se._muted ? 0 : Te._volume;
16764
- Ve.gain.setValueAtTime(ze, I.ctx.currentTime), Te._playStart = I.ctx.currentTime, typeof Ve.bufferSource.start > "u" ? Te._loop ? Ve.bufferSource.noteGrainOn(0, Pe, 86400) : Ve.bufferSource.noteGrainOn(0, Pe, Ie) : Te._loop ? Ve.bufferSource.start(0, Pe, 86400) : Ve.bufferSource.start(0, Pe, Ie), Me !== 1 / 0 && (Se._endTimers[Te._id] = setTimeout(Se._ended.bind(Se, Te), Me)), _e || setTimeout(function() {
16332
+ var He = Te._muted || Se._muted ? 0 : Te._volume;
16333
+ Ve.gain.setValueAtTime(He, I.ctx.currentTime), Te._playStart = I.ctx.currentTime, typeof Ve.bufferSource.start > "u" ? Te._loop ? Ve.bufferSource.noteGrainOn(0, Pe, 86400) : Ve.bufferSource.noteGrainOn(0, Pe, Ie) : Te._loop ? Ve.bufferSource.start(0, Pe, 86400) : Ve.bufferSource.start(0, Pe, Ie), Me !== 1 / 0 && (Se._endTimers[Te._id] = setTimeout(Se._ended.bind(Se, Te), Me)), _e || setTimeout(function() {
16765
16334
  Se._emit("play", Te._id), Se._loadQueue();
16766
16335
  }, 0);
16767
16336
  };
16768
- I.state === "running" && I.ctx.state !== "interrupted" ? Xe() : (Se._playLock = !0, Se.once("resume", Xe), Se._clearTimer(Te._id));
16337
+ I.state === "running" && I.ctx.state !== "interrupted" ? We() : (Se._playLock = !0, Se.once("resume", We), Se._clearTimer(Te._id));
16769
16338
  } else {
16770
16339
  var Ue = function() {
16771
16340
  Ve.currentTime = Pe, Ve.muted = Te._muted || Se._muted || I._muted || Ve.muted, Ve.volume = Te._volume * I.volume(), Ve.playbackRate = Te._rate;
16772
16341
  try {
16773
- var ze = Ve.play();
16774
- if (ze && typeof Promise < "u" && (ze instanceof Promise || typeof ze.then == "function") ? (Se._playLock = !0, Ne(), ze.then(function() {
16342
+ var He = Ve.play();
16343
+ if (He && typeof Promise < "u" && (He instanceof Promise || typeof He.then == "function") ? (Se._playLock = !0, Ne(), He.then(function() {
16775
16344
  Se._playLock = !1, Ve._unlocked = !0, _e ? Se._loadQueue() : Se._emit("play", Te._id);
16776
16345
  }).catch(function() {
16777
16346
  Se._playLock = !1, Se._emit("playerror", Te._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."), Te._ended = !0, Te._paused = !0;
@@ -16787,15 +16356,15 @@ var howler = {};
16787
16356
  }
16788
16357
  };
16789
16358
  Ve.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (Ve.src = Se._src, Ve.load());
16790
- var We = window && window.ejecta || !Ve.readyState && I._navigator.isCocoonJS;
16791
- if (Ve.readyState >= 3 || We)
16359
+ var Xe = window && window.ejecta || !Ve.readyState && I._navigator.isCocoonJS;
16360
+ if (Ve.readyState >= 3 || Xe)
16792
16361
  Ue();
16793
16362
  else {
16794
16363
  Se._playLock = !0, Se._state = "loading";
16795
- var He = function() {
16796
- Se._state = "loaded", Ue(), Ve.removeEventListener(I._canPlayEvent, He, !1);
16364
+ var ze = function() {
16365
+ Se._state = "loaded", Ue(), Ve.removeEventListener(I._canPlayEvent, ze, !1);
16797
16366
  };
16798
- Ve.addEventListener(I._canPlayEvent, He, !1), Se._clearTimer(Te._id);
16367
+ Ve.addEventListener(I._canPlayEvent, ze, !1), Se._clearTimer(Te._id);
16799
16368
  }
16800
16369
  }
16801
16370
  return Te._id;
@@ -18263,28 +17832,28 @@ class AudioMotionAnalyzer {
18263
17832
  this._flg = { isAlpha: !1, isBands: !1, isLeds: !1, isLumi: !1, isOctaves: !1, isOutline: !1, isRound: !1, noLedGap: !1 };
18264
17833
  return;
18265
17834
  }
18266
- const { _ansiBands: I, _barSpace: B, canvas: U, _chLayout: V, _maxFreq: X, _minFreq: Y, _mirror: K, _mode: J, _radial: xe, _reflexRatio: Z } = this, _e = U.width >> 1, Se = U.height >> 1, Ee = V == CHANNEL_VERTICAL && !xe, Ae = V == CHANNEL_HORIZONTAL, Re = J % 10 != 0, Te = Re && this._frequencyScale == SCALE_LOG, we = this._showLeds && Re && !xe, Pe = this._lumiBars && Re && !xe, Ie = this._alphaBars && !Pe && J != MODE_GRAPH, Me = this._outlineBars && Re && !Pe && !we, Oe = this._roundBars && Re && !Pe && !we, Le = V != CHANNEL_VERTICAL || Z > 0 && !Pe, Ne = U.height - (Ee && !we ? 0.5 : 0) >> Ee, Ve = Ne * (Pe || xe ? 1 : 1 - Z) | 0, Xe = U.width - _e * (Ae || K != 0), Ue = Ee ? U.height - Ne * 2 : 0, We = _e * (K == -1 && !Ae && !xe), He = Math.min(U.width, U.height) * (V == CHANNEL_VERTICAL ? 0.375 : 0.125) | 0, ze = Math.min(_e, Se), je = (Ye) => E.push({ ...Ye, peak: [0, 0], hold: [0], value: [0] }), $e = (Ye) => {
17835
+ const { _ansiBands: I, _barSpace: B, canvas: U, _chLayout: V, _maxFreq: X, _minFreq: Y, _mirror: K, _mode: J, _radial: xe, _reflexRatio: Z } = this, _e = U.width >> 1, Se = U.height >> 1, Ee = V == CHANNEL_VERTICAL && !xe, Ae = V == CHANNEL_HORIZONTAL, Re = J % 10 != 0, Te = Re && this._frequencyScale == SCALE_LOG, we = this._showLeds && Re && !xe, Pe = this._lumiBars && Re && !xe, Ie = this._alphaBars && !Pe && J != MODE_GRAPH, Me = this._outlineBars && Re && !Pe && !we, Oe = this._roundBars && Re && !Pe && !we, Le = V != CHANNEL_VERTICAL || Z > 0 && !Pe, Ne = U.height - (Ee && !we ? 0.5 : 0) >> Ee, Ve = Ne * (Pe || xe ? 1 : 1 - Z) | 0, We = U.width - _e * (Ae || K != 0), Ue = Ee ? U.height - Ne * 2 : 0, Xe = _e * (K == -1 && !Ae && !xe), ze = Math.min(U.width, U.height) * (V == CHANNEL_VERTICAL ? 0.375 : 0.125) | 0, He = Math.min(_e, Se), je = (Ye) => E.push({ ...Ye, peak: [0, 0], hold: [0], value: [0] }), $e = (Ye) => {
18267
17836
  const Qe = this._freqToBin(Ye, "floor"), Ze = this._binToFreq(Qe), it = this._binToFreq(Qe + 1), at = Math.log2(Ye / Ze) / Math.log2(it / Ze);
18268
17837
  return [Qe, at];
18269
17838
  };
18270
17839
  let De, Fe, ke;
18271
17840
  if (Te) {
18272
- const Ye = (nt, rt, tt) => +nt.toPrecision(tt ? Math.max(rt, 1 + Math.log10(nt) | 0) : rt), Qe = (nt) => {
18273
- const rt = [1, 1.12, 1.25, 1.4, 1.6, 1.8, 2, 2.24, 2.5, 2.8, 3.15, 3.55, 4, 4.5, 5, 5.6, 6.3, 7.1, 8, 9, 10], tt = Math.log10(nt) | 0, ot = nt / 10 ** tt;
17841
+ const Ye = (rt, nt, tt) => +rt.toPrecision(tt ? Math.max(nt, 1 + Math.log10(rt) | 0) : nt), Qe = (rt) => {
17842
+ const nt = [1, 1.12, 1.25, 1.4, 1.6, 1.8, 2, 2.24, 2.5, 2.8, 3.15, 3.55, 4, 4.5, 5, 5.6, 6.3, 7.1, 8, 9, 10], tt = Math.log10(rt) | 0, ot = rt / 10 ** tt;
18274
17843
  let ut = 1;
18275
- for (; ut < rt.length && ot > rt[ut]; )
17844
+ for (; ut < nt.length && ot > nt[ut]; )
18276
17845
  ut++;
18277
- return ot - rt[ut - 1] < rt[ut] - ot && ut--, (rt[ut] * 10 ** (tt + 5) | 0) / 1e5;
17846
+ return ot - nt[ut - 1] < nt[ut] - ot && ut--, (nt[ut] * 10 ** (tt + 5) | 0) / 1e5;
18278
17847
  }, Ze = [0, 24, 12, 8, 6, 4, 3, 2, 1][J], it = I ? 10 ** (3 / (Ze * 10)) : 2 ** (1 / Ze), at = it ** 0.5;
18279
17848
  let st = I ? 7.94328235 / (Ze % 2 ? 1 : at) : C_1;
18280
17849
  do {
18281
- let nt = st;
18282
- const rt = Ye(nt / at, 4, !0), tt = Ye(nt * at, 4, !0), [ot, ut] = $e(rt), [mt, pt] = $e(tt);
18283
- I ? nt = Ze < 4 ? Qe(nt) : Ye(nt, nt.toString()[0] < 5 ? 3 : 2) : nt = Ye(nt, 4, !0), nt >= Y && je({ posX: 0, freq: nt, freqLo: rt, freqHi: tt, binLo: ot, binHi: mt, ratioLo: ut, ratioHi: pt }), st *= it;
17850
+ let rt = st;
17851
+ const nt = Ye(rt / at, 4, !0), tt = Ye(rt * at, 4, !0), [ot, ut] = $e(nt), [mt, pt] = $e(tt);
17852
+ I ? rt = Ze < 4 ? Qe(rt) : Ye(rt, rt.toString()[0] < 5 ? 3 : 2) : rt = Ye(rt, 4, !0), rt >= Y && je({ posX: 0, freq: rt, freqLo: nt, freqHi: tt, binLo: ot, binHi: mt, ratioLo: ut, ratioHi: pt }), st *= it;
18284
17853
  } while (st <= X);
18285
- De = Xe / E.length, E.forEach((nt, rt) => nt.posX = We + rt * De);
17854
+ De = We / E.length, E.forEach((rt, nt) => rt.posX = Xe + nt * De);
18286
17855
  const Je = E[0], et = E[E.length - 1];
18287
- Fe = this._freqScaling(Je.freqLo), ke = Xe / (this._freqScaling(et.freqHi) - Fe), Je.freqLo < Y && (Je.freqLo = Y, [Je.binLo, Je.ratioLo] = $e(Y)), et.freqHi > X && (et.freqHi = X, [et.binHi, et.ratioHi] = $e(X));
17856
+ Fe = this._freqScaling(Je.freqLo), ke = We / (this._freqScaling(et.freqHi) - Fe), Je.freqLo < Y && (Je.freqLo = Y, [Je.binLo, Je.ratioLo] = $e(Y)), et.freqHi > X && (et.freqHi = X, [et.binHi, et.ratioHi] = $e(X));
18288
17857
  } else if (Re) {
18289
17858
  const Ye = [0, 24, 12, 8, 6, 4, 3, 2, 1][J] * 10, Qe = (Ze) => {
18290
17859
  switch (this._frequencyScale) {
@@ -18296,17 +17865,17 @@ class AudioMotionAnalyzer {
18296
17865
  return Ze;
18297
17866
  }
18298
17867
  };
18299
- De = Xe / Ye, Fe = this._freqScaling(Y), ke = Xe / (this._freqScaling(X) - Fe);
17868
+ De = We / Ye, Fe = this._freqScaling(Y), ke = We / (this._freqScaling(X) - Fe);
18300
17869
  for (let Ze = 0, it = 0; Ze < Ye; Ze++, it += De) {
18301
- const at = Qe(Fe + it / ke), st = Qe(Fe + (it + De / 2) / ke), Je = Qe(Fe + (it + De) / ke), [et, nt] = $e(at), [rt, tt] = $e(Je);
18302
- je({ posX: We + it, freq: st, freqLo: at, freqHi: Je, binLo: et, binHi: rt, ratioLo: nt, ratioHi: tt });
17870
+ const at = Qe(Fe + it / ke), st = Qe(Fe + (it + De / 2) / ke), Je = Qe(Fe + (it + De) / ke), [et, rt] = $e(at), [nt, tt] = $e(Je);
17871
+ je({ posX: Xe + it, freq: st, freqLo: at, freqHi: Je, binLo: et, binHi: nt, ratioLo: rt, ratioHi: tt });
18303
17872
  }
18304
17873
  } else {
18305
- De = 1, Fe = this._freqScaling(Y), ke = Xe / (this._freqScaling(X) - Fe);
17874
+ De = 1, Fe = this._freqScaling(Y), ke = We / (this._freqScaling(X) - Fe);
18306
17875
  const Ye = this._freqToBin(Y, "floor"), Qe = this._freqToBin(X);
18307
17876
  let Ze = -999;
18308
17877
  for (let it = Ye; it <= Qe; it++) {
18309
- const at = this._binToFreq(it), st = We + Math.round(ke * (this._freqScaling(at) - Fe));
17878
+ const at = this._binToFreq(it), st = Xe + Math.round(ke * (this._freqScaling(at) - Fe));
18310
17879
  if (st > Ze)
18311
17880
  je({ posX: st, freq: at, freqLo: at, freqHi: at, binLo: it, binHi: it, ratioLo: 0, ratioHi: 0 }), Ze = st;
18312
17881
  else if (E.length) {
@@ -18338,15 +17907,15 @@ class AudioMotionAnalyzer {
18338
17907
  ], Ze = this._ledParams, [it, at, st] = Ze || Qe[J];
18339
17908
  let Je, et = Ve;
18340
17909
  if (Ze) {
18341
- const nt = 2 * Ye;
18342
- let rt;
17910
+ const rt = 2 * Ye;
17911
+ let nt;
18343
17912
  Je = it + 1;
18344
17913
  do
18345
- Je--, rt = et / Je / (1 + at), Be = rt * at;
18346
- while ((rt < nt || Be < nt) && Je > 1);
17914
+ Je--, nt = et / Je / (1 + at), Be = nt * at;
17915
+ while ((nt < rt || Be < rt) && Je > 1);
18347
17916
  } else {
18348
- const nt = 540 / at;
18349
- Be = Math.min(at * Ye, Math.max(2, et / nt + 0.1 | 0));
17917
+ const rt = 540 / at;
17918
+ Be = Math.min(at * Ye, Math.max(2, et / rt + 0.1 | 0));
18350
17919
  }
18351
17920
  Le && (et += Be), Ze || (Je = Math.min(it, et / (Be * 2) | 0)), Ge = st >= 1 ? st : De * st, this._leds = [
18352
17921
  Je,
@@ -18366,7 +17935,7 @@ class AudioMotionAnalyzer {
18366
17935
  const Qe = V == CHANNEL_VERTICAL ? (Ne + Ue) * Ye : 0, Ze = Qe + Ne, it = Qe + Ve - (!we || Le ? 0 : Be);
18367
17936
  Ke.push({ channelTop: Qe, channelBottom: Ze, analyzerBottom: it });
18368
17937
  }
18369
- this._aux = { analyzerHeight: Ve, analyzerWidth: Xe, centerX: _e, centerY: Se, channelCoords: Ke, channelHeight: Ne, channelGap: Ue, initialX: We, innerRadius: He, outerRadius: ze, scaleMin: Fe, unitWidth: ke }, this._flg = { isAlpha: Ie, isBands: Re, isLeds: we, isLumi: Pe, isOctaves: Te, isOutline: Me, isRound: Oe, noLedGap: Le }, this._createScales();
17938
+ this._aux = { analyzerHeight: Ve, analyzerWidth: We, centerX: _e, centerY: Se, channelCoords: Ke, channelHeight: Ne, channelGap: Ue, initialX: Xe, innerRadius: ze, outerRadius: He, scaleMin: Fe, unitWidth: ke }, this._flg = { isAlpha: Ie, isBands: Re, isLeds: we, isLumi: Pe, isOctaves: Te, isOutline: Me, isRound: Oe, noLedGap: Le }, this._createScales();
18370
17939
  }
18371
17940
  /**
18372
17941
  * Generate the X-axis and radial scales in auxiliary canvases
@@ -18378,32 +17947,32 @@ class AudioMotionAnalyzer {
18378
17947
  if (!J && (this._ansiBands || Y != SCALE_LOG))
18379
17948
  Ae.push(16, 31.5, 63, 125, 250, 500, 1e3, 2e3, 4e3), Y == SCALE_LINEAR ? Ae.push(6e3, 8e3, 1e4, 12e3, 14e3, 16e3, 18e3, 2e4, 22e3) : Ae.push(8e3, 16e3);
18380
17949
  else {
18381
- let ze = C_1;
17950
+ let He = C_1;
18382
17951
  for (let je = -1; je < 11; je++)
18383
17952
  for (let $e = 0; $e < 12; $e++) {
18384
- if (ze >= this._minFreq && ze <= this._maxFreq) {
17953
+ if (He >= this._minFreq && He <= this._maxFreq) {
18385
17954
  const De = we[$e], Fe = De == "C";
18386
- (De && J && !K && !Re || Fe) && Ae.push(J ? [ze, De + (Fe ? je : "")] : ze);
17955
+ (De && J && !K && !Re || Fe) && Ae.push(J ? [He, De + (Fe ? je : "")] : He);
18387
17956
  }
18388
- ze *= Ne;
17957
+ He *= Ne;
18389
17958
  }
18390
17959
  }
18391
17960
  Ee.width = Ee.height = (B << 1) + Te * Pe;
18392
- const Ve = Ee.width >> 1, Xe = Ve - Pe * 0.7, Ue = (ze, je) => {
18393
- const $e = TAU * (ze / X.width), De = $e - HALF_PI, Fe = Xe * Math.cos(De), ke = Xe * Math.sin(De);
17961
+ const Ve = Ee.width >> 1, We = Ve - Pe * 0.7, Ue = (He, je) => {
17962
+ const $e = TAU * (He / X.width), De = $e - HALF_PI, Fe = We * Math.cos(De), ke = We * Math.sin(De);
18394
17963
  _e.save(), _e.translate(Ve + Fe, Ve + ke), _e.rotate($e), _e.fillText(je, 0, 0), _e.restore();
18395
17964
  };
18396
17965
  Se.width |= 0, Z.fillStyle = _e.strokeStyle = SCALEX_BACKGROUND_COLOR, Z.fillRect(0, 0, Se.width, Se.height), _e.arc(Ve, Ve, Ve - Pe / 2, 0, TAU), _e.lineWidth = Pe, _e.stroke(), Z.fillStyle = _e.fillStyle = SCALEX_LABEL_COLOR, Z.font = `${Ie}px ${FONT_FAMILY}`, _e.font = `${Me}px ${FONT_FAMILY}`, Z.textAlign = _e.textAlign = "center";
18397
- let We = -Oe / 4, He = -Le;
18398
- for (const ze of Ae) {
18399
- const [je, $e] = Array.isArray(ze) ? ze : [ze, ze < 1e3 ? ze | 0 : `${(ze / 100 | 0) / 10}k`], De = V * (this._freqScaling(je) - U), Fe = Se.height * 0.75, ke = $e[0] == "C", Ge = Ie * (J && !K && !Re ? ke ? 1.2 : 0.6 : 3);
17966
+ let Xe = -Oe / 4, ze = -Le;
17967
+ for (const He of Ae) {
17968
+ const [je, $e] = Array.isArray(He) ? He : [He, He < 1e3 ? He | 0 : `${(He / 100 | 0) / 10}k`], De = V * (this._freqScaling(je) - U), Fe = Se.height * 0.75, ke = $e[0] == "C", Ge = Ie * (J && !K && !Re ? ke ? 1.2 : 0.6 : 3);
18400
17969
  if (Z.fillStyle = _e.fillStyle = ke && !K && !Re ? SCALEX_HIGHLIGHT_COLOR : SCALEX_LABEL_COLOR, J) {
18401
17970
  const Be = Y == SCALE_LOG, qe = Y == SCALE_LINEAR;
18402
17971
  let Ke = ["C"];
18403
17972
  if ((Be || je > 2e3 || !qe && je > 250 || (!xe || Te) && (!qe && je > 125 || je > 1e3)) && Ke.push("G"), (Be || je > 4e3 || !qe && je > 500 || (!xe || Te) && (!qe && je > 250 || je > 2e3)) && Ke.push("E"), (qe && je > 4e3 || (!xe || Te) && (Be || je > 2e3 || !qe && je > 500)) && Ke.push("D", "F", "A", "B"), !Ke.includes($e[0]))
18404
17973
  continue;
18405
17974
  }
18406
- De >= We + Oe / 2 && De <= E && (Z.fillText($e, Re && K == -1 ? E - De : I + De, Fe, Ge), (Re || K && (De > Oe || K == 1)) && Z.fillText($e, Re && K != 1 ? E + De : (I || X.width) - De, Fe, Ge), We = De + Math.min(Ge, Z.measureText($e).width) / 2), De >= He + Le && De < E - Le && (Ue(Re && K == 1 ? E - De : De, $e), (Re || K && (De > Le || K == 1)) && Ue(Re && K != -1 ? E + De : -De, $e), He = De);
17975
+ De >= Xe + Oe / 2 && De <= E && (Z.fillText($e, Re && K == -1 ? E - De : I + De, Fe, Ge), (Re || K && (De > Oe || K == 1)) && Z.fillText($e, Re && K != 1 ? E + De : (I || X.width) - De, Fe, Ge), Xe = De + Math.min(Ge, Z.measureText($e).width) / 2), De >= ze + Le && De < E - Le && (Ue(Re && K == 1 ? E - De : De, $e), (Re || K && (De > Le || K == 1)) && Ue(Re && K != -1 ? E + De : -De, $e), ze = De);
18407
17976
  }
18408
17977
  }
18409
17978
  /**
@@ -18440,11 +18009,11 @@ class AudioMotionAnalyzer {
18440
18009
  canvas: Le,
18441
18010
  _canvasGradients: Ne,
18442
18011
  _chLayout: Ve,
18443
- _colorMode: Xe,
18012
+ _colorMode: We,
18444
18013
  _ctx: Ue,
18445
- _energy: We,
18446
- fillAlpha: He,
18447
- _fps: ze,
18014
+ _energy: Xe,
18015
+ fillAlpha: ze,
18016
+ _fps: He,
18448
18017
  _linearAmplitude: je,
18449
18018
  _lineWidth: $e,
18450
18019
  maxDecibels: De,
@@ -18457,12 +18026,12 @@ class AudioMotionAnalyzer {
18457
18026
  showPeaks: Ye,
18458
18027
  useCanvas: Qe,
18459
18028
  _weightingFilter: Ze
18460
- } = this, it = this._scaleX.canvas, at = this._scaleR.canvas, st = ze >> 1, Je = Ve == CHANNEL_COMBINED, et = Ve == CHANNEL_HORIZONTAL, nt = Ve == CHANNEL_VERTICAL, rt = Ve == CHANNEL_SINGLE, tt = Y && this._trueLeds && Xe == COLOR_GRADIENT, ot = qe ? Le.width : this._aux.analyzerWidth, ut = Pe + ot, mt = Ye && this._peakLine && Ge == MODE_GRAPH, pt = qe ? Me - Ie : Se, [yt, gt, _t, Pt] = this._leds || [];
18461
- We.val > 0 && (this._spinAngle += this._spinSpeed * TAU / (60 * ze));
18029
+ } = this, it = this._scaleX.canvas, at = this._scaleR.canvas, st = He >> 1, Je = Ve == CHANNEL_COMBINED, et = Ve == CHANNEL_HORIZONTAL, rt = Ve == CHANNEL_VERTICAL, nt = Ve == CHANNEL_SINGLE, tt = Y && this._trueLeds && We == COLOR_GRADIENT, ot = qe ? Le.width : this._aux.analyzerWidth, ut = Pe + ot, mt = Ye && this._peakLine && Ge == MODE_GRAPH, pt = qe ? Me - Ie : Se, [gt, bt, yt, Pt] = this._leds || [];
18030
+ Xe.val > 0 && (this._spinAngle += this._spinSpeed * TAU / (60 * He));
18462
18031
  const It = (lt) => {
18463
18032
  if (this._reflexRatio > 0 && !K && !qe) {
18464
18033
  let dt, $t;
18465
- this.reflexFit || nt ? (dt = nt && lt == 0 ? Te + we : 0, $t = Te - Se) : (dt = Le.height - Se * 2, $t = Se), Ue.save(), Ue.globalAlpha = this.reflexAlpha, this.reflexBright != 1 && (Ue.filter = `brightness(${this.reflexBright})`), Ue.setTransform(1, 0, 0, -1, 0, Le.height), Ue.drawImage(Le, 0, Re[lt].channelTop, Le.width, Se, 0, dt, Le.width, $t), Ue.restore();
18034
+ this.reflexFit || rt ? (dt = rt && lt == 0 ? Te + we : 0, $t = Te - Se) : (dt = Le.height - Se * 2, $t = Se), Ue.save(), Ue.globalAlpha = this.reflexAlpha, this.reflexBright != 1 && (Ue.filter = `brightness(${this.reflexBright})`), Ue.setTransform(1, 0, 0, -1, 0, Le.height), Ue.drawImage(Le, 0, Re[lt].channelTop, Le.width, Se, 0, dt, Le.width, $t), Ue.restore();
18466
18035
  }
18467
18036
  }, St = () => {
18468
18037
  this.showScaleX && (qe ? (Ue.save(), Ue.translate(Ee, Ae), this._spinSpeed && Ue.rotate(this._spinAngle + HALF_PI), Ue.drawImage(at, -at.width >> 1, -at.width >> 1), Ue.restore()) : Ue.drawImage(it, 0, Le.height - it.height));
@@ -18493,17 +18062,17 @@ class AudioMotionAnalyzer {
18493
18062
  const dt = Ue.globalAlpha;
18494
18063
  Ue.globalAlpha = 1, Ue.stroke(), Ue.globalAlpha = dt;
18495
18064
  }
18496
- }, Mt = (lt) => Math.max(0, (lt * yt | 0) * (Pt + _t) - _t), qt = (lt) => {
18497
- We.val = lt, We.peak > 0 && (We.hold--, We.hold < 0 && (We.peak += We.hold / (st * st / 2))), lt >= We.peak && (We.peak = lt, We.hold = st);
18065
+ }, Mt = (lt) => Math.max(0, (lt * gt | 0) * (Pt + yt) - yt), qt = (lt) => {
18066
+ Xe.val = lt, Xe.peak > 0 && (Xe.hold--, Xe.hold < 0 && (Xe.peak += Xe.hold / (st * st / 2))), lt >= Xe.peak && (Xe.peak = lt, Xe.hold = st);
18498
18067
  };
18499
18068
  Be && Ue.clearRect(0, 0, Le.width, Le.height);
18500
18069
  let Vt = 0;
18501
- const ar = Oe.length, or = rt ? 1 : 2;
18070
+ const ar = Oe.length, or = nt ? 1 : 2;
18502
18071
  for (let lt = 0; lt < or; lt++) {
18503
- const { channelTop: dt, channelBottom: $t, analyzerBottom: Et } = Re[lt], Jt = this._gradients[this._selectedGrads[lt]], Bt = Jt.colorStops, Dt = Bt.length, Ht = !Ke || Y && !Be ? "#000" : Jt.bgColor, zt = nt && qe && lt ? -1 : 1, jt = !lt && ke == -1 || lt && ke == 1, rr = !et || lt && ke != 1 ? 0 : ot >> (lt || !jt), Qt = et && jt ? -1 : 1, ir = () => {
18504
- const ht = it.height, ft = ht >> 1, ct = je ? 100 : De, vt = je ? 0 : Fe, bt = je ? 20 : 5, wt = Se / (ct - vt), Nt = ke != -1 && (!et || lt == 0 || ke == 1), Gt = ke != 1 && (!et || lt != ke);
18072
+ const { channelTop: dt, channelBottom: $t, analyzerBottom: Et } = Re[lt], Jt = this._gradients[this._selectedGrads[lt]], Bt = Jt.colorStops, Dt = Bt.length, Ht = !Ke || Y && !Be ? "#000" : Jt.bgColor, zt = rt && qe && lt ? -1 : 1, jt = !lt && ke == -1 || lt && ke == 1, rr = !et || lt && ke != 1 ? 0 : ot >> (lt || !jt), Qt = et && jt ? -1 : 1, ir = () => {
18073
+ const ht = it.height, ft = ht >> 1, ct = je ? 100 : De, vt = je ? 0 : Fe, xt = je ? 20 : 5, wt = Se / (ct - vt), Nt = ke != -1 && (!et || lt == 0 || ke == 1), Gt = ke != 1 && (!et || lt != ke);
18505
18074
  Ue.save(), Ue.fillStyle = SCALEY_LABEL_COLOR, Ue.font = `${ft}px ${FONT_FAMILY}`, Ue.textAlign = "right", Ue.lineWidth = 1;
18506
- for (let Ut = ct; Ut > vt; Ut -= bt) {
18075
+ for (let Ut = ct; Ut > vt; Ut -= xt) {
18507
18076
  const Yt = dt + (ct - Ut) * wt, Tt = Ut % 2 == 0 | 0;
18508
18077
  if (Tt) {
18509
18078
  const Ct = Yt + ft * (Yt == dt ? 0.8 : 0.35);
@@ -18517,21 +18086,21 @@ class AudioMotionAnalyzer {
18517
18086
  const ct = Ot[ht] + (ht < Ot.length - 1 ? (Ot[ht + 1] - Ot[ht]) * ft : 0);
18518
18087
  return isNaN(ct) ? -1 / 0 : ct;
18519
18088
  }, Xt = (ht, ft = Qt) => ft * TAU * ((ht + rr) / Le.width) + this._spinAngle, Rt = (ht, ft, ct) => {
18520
- const vt = Ie + ft * zt, bt = Xt(ht, ct);
18521
- return [Ee + vt * Math.cos(bt), Ae + vt * Math.sin(bt)];
18522
- }, sr = (ht, ft, ct, vt, bt) => {
18089
+ const vt = Ie + ft * zt, xt = Xt(ht, ct);
18090
+ return [Ee + vt * Math.cos(xt), Ae + vt * Math.sin(xt)];
18091
+ }, sr = (ht, ft, ct, vt, xt) => {
18523
18092
  Ue.beginPath();
18524
18093
  for (const wt of ke && !et ? [1, -1] : [Qt]) {
18525
18094
  const [Nt, Gt] = Z ? [Xt(ht, wt), Xt(ht + ct, wt)] : [];
18526
- Ue.moveTo(...Rt(ht, ft, wt)), Ue.lineTo(...Rt(ht, ft + vt, wt)), Z ? Ue.arc(Ee, Ae, Ie + (ft + vt) * zt, Nt, Gt, wt != 1) : Ue.lineTo(...Rt(ht + ct, ft + vt, wt)), Ue.lineTo(...Rt(ht + ct, ft, wt)), Z && !bt && Ue.arc(Ee, Ae, Ie + ft * zt, Gt, Nt, wt == 1);
18095
+ Ue.moveTo(...Rt(ht, ft, wt)), Ue.lineTo(...Rt(ht, ft + vt, wt)), Z ? Ue.arc(Ee, Ae, Ie + (ft + vt) * zt, Nt, Gt, wt != 1) : Ue.lineTo(...Rt(ht + ct, ft + vt, wt)), Ue.lineTo(...Rt(ht + ct, ft, wt)), Z && !xt && Ue.arc(Ee, Ae, Ie + ft * zt, Gt, Nt, wt == 1);
18527
18096
  }
18528
- kt(bt), Ue.fill();
18097
+ kt(xt), Ue.fill();
18529
18098
  }, nr = (ht = 0, ft = 0) => {
18530
18099
  let ct;
18531
- if (Xe == COLOR_GRADIENT && !tt || Ge == MODE_GRAPH)
18100
+ if (We == COLOR_GRADIENT && !tt || Ge == MODE_GRAPH)
18532
18101
  ct = Ne[lt];
18533
18102
  else {
18534
- const vt = Xe == COLOR_BAR_INDEX ? ft % Dt : Bt.findLastIndex((bt) => Y ? Mt(ht) <= Mt(bt.level) : ht <= bt.level);
18103
+ const vt = We == COLOR_BAR_INDEX ? ft % Dt : Bt.findLastIndex((xt) => Y ? Mt(ht) <= Mt(xt.level) : ht <= xt.level);
18535
18104
  ct = Bt[vt].color;
18536
18105
  }
18537
18106
  Ue.fillStyle = Ue.strokeStyle = ct;
@@ -18541,7 +18110,7 @@ class AudioMotionAnalyzer {
18541
18110
  const ht = ot * (lt + jt), ft = jt ? -1 : 1;
18542
18111
  Ue.setTransform(ft, 0, 0, 1, ht, 0);
18543
18112
  }
18544
- if ((!Be || Ke) && (Be && (Ue.globalAlpha = this.bgAlpha), Ue.fillStyle = Ht, (lt == 0 || !qe && !Je) && Ue.fillRect(Pe, dt - we, ot, (Be && this.reflexAlpha == 1 ? Se : Te) + we), Ue.globalAlpha = 1), this.showScaleY && !K && !qe && (lt == 0 || !Je) && ir(), Y ? (Ue.setLineDash([Pt, _t]), Ue.lineWidth = Oe[0].width) : Ue.lineWidth = xe ? Math.min($e, Oe[0].width / 2) : $e, Ue.save(), !qe) {
18113
+ if ((!Be || Ke) && (Be && (Ue.globalAlpha = this.bgAlpha), Ue.fillStyle = Ht, (lt == 0 || !qe && !Je) && Ue.fillRect(Pe, dt - we, ot, (Be && this.reflexAlpha == 1 ? Se : Te) + we), Ue.globalAlpha = 1), this.showScaleY && !K && !qe && (lt == 0 || !Je) && ir(), Y ? (Ue.setLineDash([Pt, yt]), Ue.lineWidth = Oe[0].width) : Ue.lineWidth = xe ? Math.min($e, Oe[0].width / 2) : $e, Ue.save(), !qe) {
18545
18114
  const ht = new Path2D();
18546
18115
  ht.rect(0, dt, Le.width, Se), Ue.clip(ht);
18547
18116
  }
@@ -18550,25 +18119,25 @@ class AudioMotionAnalyzer {
18550
18119
  this._analyzer[lt].getFloatFrequencyData(Ot), Ze && (Ot = Ot.map((ht, ft) => ht + Lt(this._binToFreq(ft)))), Ue.beginPath();
18551
18120
  let Zt = [];
18552
18121
  for (let ht = 0; ht < ar; ht++) {
18553
- const ft = Oe[ht], { posX: ct, barCenter: vt, width: bt, freq: wt, binLo: Nt, binHi: Gt, ratioLo: Ut, ratioHi: Yt } = ft;
18122
+ const ft = Oe[ht], { posX: ct, barCenter: vt, width: xt, freq: wt, binLo: Nt, binHi: Gt, ratioLo: Ut, ratioHi: Yt } = ft;
18554
18123
  let Tt = Math.max(er(Nt, Ut), er(Gt, Yt));
18555
- for (let xt = Nt + 1; xt < Gt; xt++)
18556
- Ot[xt] > Tt && (Tt = Ot[xt]);
18124
+ for (let _t = Nt + 1; _t < Gt; _t++)
18125
+ Ot[_t] > Tt && (Tt = Ot[_t]);
18557
18126
  if (Tt = this._normalizedB(Tt), ft.value[lt] = Tt, Vt += Tt, ft.peak[lt] > 0 && (ft.hold[lt]--, ft.hold[lt] < 0 && (ft.peak[lt] += ft.hold[lt] / (st * st / 2))), Tt >= ft.peak[lt] && (ft.peak[lt] = Tt, ft.hold[lt] = st), !Qe)
18558
18127
  continue;
18559
- K || V ? Ue.globalAlpha = Tt : xe && (Ue.globalAlpha = He), nr(Tt, ht);
18128
+ K || V ? Ue.globalAlpha = Tt : xe && (Ue.globalAlpha = ze), nr(Tt, ht);
18560
18129
  const Ct = K ? pt : Y ? Mt(Tt) : Tt * pt | 0;
18561
18130
  if (Ge == MODE_GRAPH) {
18562
- const xt = ht ? 0 : (this._normalizedB(Ot[Oe[1].binLo]) * pt + Ct) / 2;
18131
+ const _t = ht ? 0 : (this._normalizedB(Ot[Oe[1].binLo]) * pt + Ct) / 2;
18563
18132
  if (qe) {
18564
- if (ht == 0 && (et && Ue.moveTo(...Rt(0, 0)), Ue.lineTo(...Rt(0, ct < 0 ? xt : Ct))), ct >= 0) {
18133
+ if (ht == 0 && (et && Ue.moveTo(...Rt(0, 0)), Ue.lineTo(...Rt(0, ct < 0 ? _t : Ct))), ct >= 0) {
18565
18134
  const Ft = [ct, Ct];
18566
18135
  Ue.lineTo(...Rt(...Ft)), Zt.push(Ft);
18567
18136
  }
18568
18137
  } else {
18569
18138
  if (ht == 0)
18570
18139
  if (ke == -1 && !et)
18571
- Ue.moveTo(Pe, Et - (ct < Pe ? xt : Ct));
18140
+ Ue.moveTo(Pe, Et - (ct < Pe ? _t : Ct));
18572
18141
  else {
18573
18142
  const Ft = Nt ? this._normalizedB(Ot[Nt - 1]) * pt : Ct;
18574
18143
  Ue.moveTo(Pe - $e, Et - Ft);
@@ -18577,36 +18146,36 @@ class AudioMotionAnalyzer {
18577
18146
  }
18578
18147
  } else if (Y) {
18579
18148
  if (Ke && !Be && (lt == 0 || !Je)) {
18580
- const xt = Ue.globalAlpha;
18581
- Ue.strokeStyle = LEDS_UNLIT_COLOR, Ue.globalAlpha = 1, At(vt, dt, Et), Ue.strokeStyle = Ue.fillStyle, Ue.globalAlpha = xt;
18149
+ const _t = Ue.globalAlpha;
18150
+ Ue.strokeStyle = LEDS_UNLIT_COLOR, Ue.globalAlpha = 1, At(vt, dt, Et), Ue.strokeStyle = Ue.fillStyle, Ue.globalAlpha = _t;
18582
18151
  }
18583
18152
  if (tt) {
18584
- const xt = K ? 0 : Bt.findLastIndex((Wt) => Mt(Tt) <= Mt(Wt.level));
18153
+ const _t = K ? 0 : Bt.findLastIndex((Wt) => Mt(Tt) <= Mt(Wt.level));
18585
18154
  let Ft = Et;
18586
- for (let Wt = Dt - 1; Wt >= xt; Wt--) {
18155
+ for (let Wt = Dt - 1; Wt >= _t; Wt--) {
18587
18156
  Ue.strokeStyle = Bt[Wt].color;
18588
- let lr = Et - (Wt == xt ? Ct : Mt(Bt[Wt].level));
18589
- At(vt, Ft, lr), Ft = lr - _t;
18157
+ let lr = Et - (Wt == _t ? Ct : Mt(Bt[Wt].level));
18158
+ At(vt, Ft, lr), Ft = lr - yt;
18590
18159
  }
18591
18160
  } else
18592
18161
  At(vt, Et, Et - Ct);
18593
18162
  } else if (ct >= Pe)
18594
18163
  if (qe)
18595
- sr(ct, 0, bt, Ct, xe);
18164
+ sr(ct, 0, xt, Ct, xe);
18596
18165
  else if (Z) {
18597
- const xt = bt / 2, Ft = Et + xt;
18598
- Ue.beginPath(), Ue.moveTo(ct, Ft), Ue.lineTo(ct, Ft - Ct), Ue.arc(vt, Ft - Ct, xt, PI, TAU), Ue.lineTo(ct + bt, Ft), kt(xe), Ue.fill();
18166
+ const _t = xt / 2, Ft = Et + _t;
18167
+ Ue.beginPath(), Ue.moveTo(ct, Ft), Ue.lineTo(ct, Ft - Ct), Ue.arc(vt, Ft - Ct, _t, PI, TAU), Ue.lineTo(ct + xt, Ft), kt(xe), Ue.fill();
18599
18168
  } else {
18600
- const xt = xe ? Ue.lineWidth : 0;
18601
- Ue.beginPath(), Ue.rect(ct, Et + xt, bt, -Ct - xt), kt(xe), Ue.fill();
18169
+ const _t = xe ? Ue.lineWidth : 0;
18170
+ Ue.beginPath(), Ue.rect(ct, Et + _t, xt, -Ct - _t), kt(xe), Ue.fill();
18602
18171
  }
18603
18172
  const Kt = ft.peak[lt];
18604
18173
  if (Kt > 0 && Ye && !mt && !K && ct >= Pe && ct < ut)
18605
- if (xe && $e > 0 ? Ue.globalAlpha = 1 : V && (Ue.globalAlpha = Kt), (Xe == COLOR_BAR_LEVEL || tt) && nr(Kt), Y) {
18606
- const xt = Mt(Kt);
18607
- xt >= _t && Ue.fillRect(ct, Et - xt, bt, Pt);
18174
+ if (xe && $e > 0 ? Ue.globalAlpha = 1 : V && (Ue.globalAlpha = Kt), (We == COLOR_BAR_LEVEL || tt) && nr(Kt), Y) {
18175
+ const _t = Mt(Kt);
18176
+ _t >= yt && Ue.fillRect(ct, Et - _t, xt, Pt);
18608
18177
  } else
18609
- qe ? Ge != MODE_GRAPH && sr(ct, Kt * pt, bt, -2) : Ue.fillRect(ct, Et - Kt * pt, bt, 2);
18178
+ qe ? Ge != MODE_GRAPH && sr(ct, Kt * pt, xt, -2) : Ue.fillRect(ct, Et - Kt * pt, xt, 2);
18610
18179
  }
18611
18180
  if (Qe) {
18612
18181
  if (Ue.globalAlpha = 1, Ge == MODE_GRAPH) {
@@ -18618,21 +18187,21 @@ class AudioMotionAnalyzer {
18618
18187
  }
18619
18188
  Ue.closePath();
18620
18189
  }
18621
- if ($e > 0 && Ue.stroke(), He > 0) {
18190
+ if ($e > 0 && Ue.stroke(), ze > 0) {
18622
18191
  if (qe) {
18623
18192
  const ht = et ? Xt(ot >> 1) : 0, ft = et ? Xt(ot) : TAU;
18624
18193
  Ue.moveTo(...Rt(et ? ot >> 1 : 0, 0)), Ue.arc(Ee, Ae, Ie, ht, ft, et ? !jt : !0);
18625
18194
  } else
18626
18195
  Ue.lineTo(ut, Et), Ue.lineTo(Pe, Et);
18627
- Ue.globalAlpha = He, Ue.fill(), Ue.globalAlpha = 1;
18196
+ Ue.globalAlpha = ze, Ue.fill(), Ue.globalAlpha = 1;
18628
18197
  }
18629
18198
  if ((mt || qe && Ye) && (Zt = [], Ue.beginPath(), Oe.forEach((ht, ft) => {
18630
- let ct = ht.posX, vt = ht.peak[lt], bt = ft ? "lineTo" : "moveTo";
18199
+ let ct = ht.posX, vt = ht.peak[lt], xt = ft ? "lineTo" : "moveTo";
18631
18200
  if (qe && ct < 0) {
18632
18201
  const wt = Oe[ft + 1];
18633
18202
  vt = findY(ct, vt, wt.posX, wt.peak[lt], 0), ct = 0;
18634
18203
  }
18635
- vt *= pt, mt ? (Ue[bt](...qe ? Rt(ct, vt) : [ct, Et - vt]), qe && ke && !et && Zt.push([ct, vt])) : vt > 0 && sr(ct, vt, 1, -2);
18204
+ vt *= pt, mt ? (Ue[xt](...qe ? Rt(ct, vt) : [ct, Et - vt]), qe && ke && !et && Zt.push([ct, vt])) : vt > 0 && sr(ct, vt, 1, -2);
18636
18205
  }), mt)) {
18637
18206
  let ht;
18638
18207
  for (; ht = Zt.pop(); )
@@ -18645,7 +18214,7 @@ class AudioMotionAnalyzer {
18645
18214
  }
18646
18215
  if (qt(Vt / (ar << or - 1)), Qe && (ke && !qe && !et && (Ue.setTransform(-1, 0, 0, 1, Le.width - Pe, 0), Ue.drawImage(Le, Pe, 0, Ee, Le.height, 0, 0, Ee, Le.height), Ue.setTransform(1, 0, 0, 1, 0, 0)), Ue.setLineDash([]), St()), this.showFPS) {
18647
18216
  const lt = it.height;
18648
- Ue.font = `bold ${lt}px ${FONT_FAMILY}`, Ue.fillStyle = FPS_COLOR, Ue.textAlign = "right", Ue.fillText(Math.round(ze), Le.width - lt, lt * 2);
18217
+ Ue.font = `bold ${lt}px ${FONT_FAMILY}`, Ue.fillStyle = FPS_COLOR, Ue.textAlign = "right", Ue.fillText(Math.round(He), Le.width - lt, lt * 2);
18649
18218
  }
18650
18219
  this.onCanvasDraw && (Ue.save(), Ue.fillStyle = Ue.strokeStyle = Ne[0], this.onCanvasDraw(this, { timestamp: E, _canvasGradients: Ne }), Ue.restore());
18651
18220
  }
@@ -18689,8 +18258,8 @@ class AudioMotionAnalyzer {
18689
18258
  let Ve = Le.pos;
18690
18259
  if (Ie && (Ve /= 2), _e && !Z && !B && !we && (Ve *= Se, !Ie && Ve > 0.5 * Se && (Ve += 0.5 * U)), Me == 1)
18691
18260
  if (B || Z) {
18692
- const Xe = Oe - Ne;
18693
- Le = Te[Xe], Ve = 1 - Le.pos / 2;
18261
+ const We = Oe - Ne;
18262
+ Le = Te[We], Ve = 1 - Le.pos / 2;
18694
18263
  } else
18695
18264
  Ne == 0 && Ve > 0 && Pe.addColorStop(0.5, Le.color), Ve += 0.5;
18696
18265
  Pe.addColorStop(Ve, Le.color), _e && Ne == Oe && Ve < 0.5 && Pe.addColorStop(0.5, Le.color);
@@ -18956,10 +18525,10 @@ const waveConfig = {
18956
18525
  } = C, {
18957
18526
  width: Ne = 300,
18958
18527
  height: Ve = 300,
18959
- x: Xe = 100,
18528
+ x: We = 100,
18960
18529
  y: Ue = 100,
18961
- waveform: We = Waveforms.NONE
18962
- } = Le || {}, { audioMotionRef: He, blobUrl: ze, canvasRef: je } = useAudioVisualizer({
18530
+ waveform: Xe = Waveforms.NONE
18531
+ } = Le || {}, { audioMotionRef: ze, blobUrl: He, canvasRef: je } = useAudioVisualizer({
18963
18532
  uniqueId: Ee,
18964
18533
  src: Ae,
18965
18534
  transformation: Le
@@ -19010,103 +18579,506 @@ const waveConfig = {
19010
18579
  ), _e.current.to(X.current, { alpha: 1, duration: 0.01 }, Re).to(X.current, { alpha: 0, duration: 0.1 }, Number(Te)), _e.current.add(K.current, Re);
19011
18580
  });
19012
18581
  }
19013
- return () => {
19014
- K.current && (K.current.kill(), gsap$2.killTweensOf(K.current)), Ge.revert();
19015
- };
19016
- }, [Re, Te, Ie, Me, Ee]), React.useEffect(() => (X.current && B(!0), () => {
19017
- console.log("unmounting audio sprite", Ee), console.log("audioContainerRef.current", J.current);
19018
- }), []), React.useEffect(() => (Z.current && Z.current.update(), () => {
19019
- }), [U]), React.useEffect(() => (isEmpty$1(ze) || (J.current = new howler.Howl({
19020
- src: [ze],
19021
- // sprite: {
19022
- // [uniqueId]: [audioStartAt * 1000, (audioEndAt - audioStartAt) * 1000],
19023
- // },
19024
- format: ["mp3"],
19025
- // Specify the audio format(s) you're using
19026
- html5: !0,
19027
- // Use HTML5 audio
19028
- autoplay: !1,
19029
- loop: !1,
19030
- rate: Pe || 1,
19031
- /// volume: !mute && visible ? 1 : 0,
19032
- onload: () => {
19033
- var Ge;
19034
- if (Y.current.loaded = !0, J.current && (Ie > 0 && J.current.seek(Ie), J.current.volume(!we && Oe ? 1 : 0), J.current.rate(Pe || 1), J.current.pause(), Y.current.isPlaying = !1, Y.current.completed = !1, He.current && J.current)) {
19035
- console.log("reconnecting the audio motion analyser");
19036
- try {
19037
- He.current.connectInput(
19038
- // @ts-ignore
19039
- J.current._sounds[0]._node
19040
- );
19041
- } catch (qe) {
19042
- console.log("error connecting audio motion"), console.log(qe);
19043
- }
19044
- const Be = PIXI.Texture.from(He.current._fsEl, {
19045
- // @ts-ignore
19046
- pixiIdPrefix: `${(Ge = He.current._container) == null ? void 0 : Ge.id}`
19047
- });
19048
- Z.current = Be, je.current && je.current.setAttribute("style", "display:none"), V(!0);
18582
+ return () => {
18583
+ K.current && (K.current.kill(), gsap$2.killTweensOf(K.current)), Ge.revert();
18584
+ };
18585
+ }, [Re, Te, Ie, Me, Ee]), React.useEffect(() => (X.current && B(!0), () => {
18586
+ console.log("unmounting audio sprite", Ee), console.log("audioContainerRef.current", J.current);
18587
+ }), []), React.useEffect(() => (Z.current && Z.current.update(), () => {
18588
+ }), [U]), React.useEffect(() => (isEmpty$1(He) || (J.current = new howler.Howl({
18589
+ src: [He],
18590
+ // sprite: {
18591
+ // [uniqueId]: [audioStartAt * 1000, (audioEndAt - audioStartAt) * 1000],
18592
+ // },
18593
+ format: ["mp3"],
18594
+ // Specify the audio format(s) you're using
18595
+ html5: !0,
18596
+ // Use HTML5 audio
18597
+ autoplay: !1,
18598
+ loop: !1,
18599
+ rate: Pe || 1,
18600
+ /// volume: !mute && visible ? 1 : 0,
18601
+ onload: () => {
18602
+ var Ge;
18603
+ if (Y.current.loaded = !0, J.current && (Ie > 0 && J.current.seek(Ie), J.current.volume(!we && Oe ? 1 : 0), J.current.rate(Pe || 1), J.current.pause(), Y.current.isPlaying = !1, Y.current.completed = !1, ze.current && J.current)) {
18604
+ console.log("reconnecting the audio motion analyser");
18605
+ try {
18606
+ ze.current.connectInput(
18607
+ // @ts-ignore
18608
+ J.current._sounds[0]._node
18609
+ );
18610
+ } catch (qe) {
18611
+ console.log("error connecting audio motion"), console.log(qe);
18612
+ }
18613
+ const Be = PIXI.Texture.from(ze.current._fsEl, {
18614
+ // @ts-ignore
18615
+ pixiIdPrefix: `${(Ge = ze.current._container) == null ? void 0 : Ge.id}`
18616
+ });
18617
+ Z.current = Be, je.current && je.current.setAttribute("style", "display:none"), V(!0);
18618
+ }
18619
+ },
18620
+ onend: () => {
18621
+ console.log("end of playing audio sprite" + Ee), Y.current.isPlaying = !1, Y.current.completed = !0;
18622
+ },
18623
+ onplay: () => {
18624
+ console.log("play of playing audio sprite" + Ee), Y.current.isPlaying = !0;
18625
+ },
18626
+ onpause: () => {
18627
+ console.log("pause of playing audio sprite" + Ee), Y.current.isPlaying = !1;
18628
+ },
18629
+ onstop: () => {
18630
+ console.log("stop of playing audio sprite" + Ee), Y.current.isPlaying = !1;
18631
+ }
18632
+ }), Howler.ctx.resume().then(() => {
18633
+ console.log("audio ctx resumed");
18634
+ })), () => {
18635
+ console.log("unmounting the howler useeffect"), ze.current, J.current && (J.current.stop(), J.current.unload(), J.current = void 0);
18636
+ }), [
18637
+ Ee,
18638
+ Ae,
18639
+ Re,
18640
+ Te,
18641
+ Ie,
18642
+ Me,
18643
+ we,
18644
+ Oe,
18645
+ Pe,
18646
+ He
18647
+ ]), React.useEffect(() => {
18648
+ J.current && (console.log("running updateEffect 2002", Ee, Me), J.current.volume(!we && Oe ? 1 : 0), J.current.rate(Pe || 1), Y.current.isPlaying = !0);
18649
+ }, [we, Oe, Pe]), // @ts-ignore
18650
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: X, children: Xe !== Waveforms.NONE && U && Z.current && /* @__PURE__ */ jsxRuntimeExports.jsx(
18651
+ AbstractContainer,
18652
+ {
18653
+ ...C,
18654
+ ref: E,
18655
+ ignoreTlForVideo: !0,
18656
+ isGif: !0,
18657
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
18658
+ Sprite,
18659
+ {
18660
+ texture: Z.current,
18661
+ width: Ne,
18662
+ height: Ve,
18663
+ anchor: 0.5,
18664
+ x: We,
18665
+ y: Ue,
18666
+ ref: xe,
18667
+ alpha: Oe ? 1 : 0
18668
+ }
18669
+ )
18670
+ }
18671
+ ) });
18672
+ });
18673
+ function arrayMap$2(C, E) {
18674
+ for (var I = -1, B = C == null ? 0 : C.length, U = Array(B); ++I < B; )
18675
+ U[I] = E(C[I], I, C);
18676
+ return U;
18677
+ }
18678
+ var _arrayMap = arrayMap$2;
18679
+ function listCacheClear$1() {
18680
+ this.__data__ = [], this.size = 0;
18681
+ }
18682
+ var _listCacheClear = listCacheClear$1;
18683
+ function eq$2(C, E) {
18684
+ return C === E || C !== C && E !== E;
18685
+ }
18686
+ var eq_1 = eq$2, eq$1 = eq_1;
18687
+ function assocIndexOf$4(C, E) {
18688
+ for (var I = C.length; I--; )
18689
+ if (eq$1(C[I][0], E))
18690
+ return I;
18691
+ return -1;
18692
+ }
18693
+ var _assocIndexOf = assocIndexOf$4, assocIndexOf$3 = _assocIndexOf, arrayProto = Array.prototype, splice = arrayProto.splice;
18694
+ function listCacheDelete$1(C) {
18695
+ var E = this.__data__, I = assocIndexOf$3(E, C);
18696
+ if (I < 0)
18697
+ return !1;
18698
+ var B = E.length - 1;
18699
+ return I == B ? E.pop() : splice.call(E, I, 1), --this.size, !0;
18700
+ }
18701
+ var _listCacheDelete = listCacheDelete$1, assocIndexOf$2 = _assocIndexOf;
18702
+ function listCacheGet$1(C) {
18703
+ var E = this.__data__, I = assocIndexOf$2(E, C);
18704
+ return I < 0 ? void 0 : E[I][1];
18705
+ }
18706
+ var _listCacheGet = listCacheGet$1, assocIndexOf$1 = _assocIndexOf;
18707
+ function listCacheHas$1(C) {
18708
+ return assocIndexOf$1(this.__data__, C) > -1;
18709
+ }
18710
+ var _listCacheHas = listCacheHas$1, assocIndexOf = _assocIndexOf;
18711
+ function listCacheSet$1(C, E) {
18712
+ var I = this.__data__, B = assocIndexOf(I, C);
18713
+ return B < 0 ? (++this.size, I.push([C, E])) : I[B][1] = E, this;
18714
+ }
18715
+ var _listCacheSet = listCacheSet$1, listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
18716
+ function ListCache$4(C) {
18717
+ var E = -1, I = C == null ? 0 : C.length;
18718
+ for (this.clear(); ++E < I; ) {
18719
+ var B = C[E];
18720
+ this.set(B[0], B[1]);
18721
+ }
18722
+ }
18723
+ ListCache$4.prototype.clear = listCacheClear;
18724
+ ListCache$4.prototype.delete = listCacheDelete;
18725
+ ListCache$4.prototype.get = listCacheGet;
18726
+ ListCache$4.prototype.has = listCacheHas;
18727
+ ListCache$4.prototype.set = listCacheSet;
18728
+ var _ListCache = ListCache$4, ListCache$3 = _ListCache;
18729
+ function stackClear$1() {
18730
+ this.__data__ = new ListCache$3(), this.size = 0;
18731
+ }
18732
+ var _stackClear = stackClear$1;
18733
+ function stackDelete$1(C) {
18734
+ var E = this.__data__, I = E.delete(C);
18735
+ return this.size = E.size, I;
18736
+ }
18737
+ var _stackDelete = stackDelete$1;
18738
+ function stackGet$1(C) {
18739
+ return this.__data__.get(C);
18740
+ }
18741
+ var _stackGet = stackGet$1;
18742
+ function stackHas$1(C) {
18743
+ return this.__data__.has(C);
18744
+ }
18745
+ var _stackHas = stackHas$1, getNative = _getNative, nativeCreate$4 = getNative(Object, "create"), _nativeCreate = nativeCreate$4, nativeCreate$3 = _nativeCreate;
18746
+ function hashClear$1() {
18747
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}, this.size = 0;
18748
+ }
18749
+ var _hashClear = hashClear$1;
18750
+ function hashDelete$1(C) {
18751
+ var E = this.has(C) && delete this.__data__[C];
18752
+ return this.size -= E ? 1 : 0, E;
18753
+ }
18754
+ var _hashDelete = hashDelete$1, nativeCreate$2 = _nativeCreate, HASH_UNDEFINED$2 = "__lodash_hash_undefined__", objectProto$5 = Object.prototype, hasOwnProperty$4 = objectProto$5.hasOwnProperty;
18755
+ function hashGet$1(C) {
18756
+ var E = this.__data__;
18757
+ if (nativeCreate$2) {
18758
+ var I = E[C];
18759
+ return I === HASH_UNDEFINED$2 ? void 0 : I;
18760
+ }
18761
+ return hasOwnProperty$4.call(E, C) ? E[C] : void 0;
18762
+ }
18763
+ var _hashGet = hashGet$1, nativeCreate$1 = _nativeCreate, objectProto$4 = Object.prototype, hasOwnProperty$3 = objectProto$4.hasOwnProperty;
18764
+ function hashHas$1(C) {
18765
+ var E = this.__data__;
18766
+ return nativeCreate$1 ? E[C] !== void 0 : hasOwnProperty$3.call(E, C);
18767
+ }
18768
+ var _hashHas = hashHas$1, nativeCreate = _nativeCreate, HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
18769
+ function hashSet$1(C, E) {
18770
+ var I = this.__data__;
18771
+ return this.size += this.has(C) ? 0 : 1, I[C] = nativeCreate && E === void 0 ? HASH_UNDEFINED$1 : E, this;
18772
+ }
18773
+ var _hashSet = hashSet$1, hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
18774
+ function Hash$1(C) {
18775
+ var E = -1, I = C == null ? 0 : C.length;
18776
+ for (this.clear(); ++E < I; ) {
18777
+ var B = C[E];
18778
+ this.set(B[0], B[1]);
18779
+ }
18780
+ }
18781
+ Hash$1.prototype.clear = hashClear;
18782
+ Hash$1.prototype.delete = hashDelete;
18783
+ Hash$1.prototype.get = hashGet;
18784
+ Hash$1.prototype.has = hashHas;
18785
+ Hash$1.prototype.set = hashSet;
18786
+ var _Hash = Hash$1, Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
18787
+ function mapCacheClear$1() {
18788
+ this.size = 0, this.__data__ = {
18789
+ hash: new Hash(),
18790
+ map: new (Map$2 || ListCache$2)(),
18791
+ string: new Hash()
18792
+ };
18793
+ }
18794
+ var _mapCacheClear = mapCacheClear$1;
18795
+ function isKeyable$1(C) {
18796
+ var E = typeof C;
18797
+ return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? C !== "__proto__" : C === null;
18798
+ }
18799
+ var _isKeyable = isKeyable$1, isKeyable = _isKeyable;
18800
+ function getMapData$4(C, E) {
18801
+ var I = C.__data__;
18802
+ return isKeyable(E) ? I[typeof E == "string" ? "string" : "hash"] : I.map;
18803
+ }
18804
+ var _getMapData = getMapData$4, getMapData$3 = _getMapData;
18805
+ function mapCacheDelete$1(C) {
18806
+ var E = getMapData$3(this, C).delete(C);
18807
+ return this.size -= E ? 1 : 0, E;
18808
+ }
18809
+ var _mapCacheDelete = mapCacheDelete$1, getMapData$2 = _getMapData;
18810
+ function mapCacheGet$1(C) {
18811
+ return getMapData$2(this, C).get(C);
18812
+ }
18813
+ var _mapCacheGet = mapCacheGet$1, getMapData$1 = _getMapData;
18814
+ function mapCacheHas$1(C) {
18815
+ return getMapData$1(this, C).has(C);
18816
+ }
18817
+ var _mapCacheHas = mapCacheHas$1, getMapData = _getMapData;
18818
+ function mapCacheSet$1(C, E) {
18819
+ var I = getMapData(this, C), B = I.size;
18820
+ return I.set(C, E), this.size += I.size == B ? 0 : 1, this;
18821
+ }
18822
+ var _mapCacheSet = mapCacheSet$1, mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
18823
+ function MapCache$3(C) {
18824
+ var E = -1, I = C == null ? 0 : C.length;
18825
+ for (this.clear(); ++E < I; ) {
18826
+ var B = C[E];
18827
+ this.set(B[0], B[1]);
18828
+ }
18829
+ }
18830
+ MapCache$3.prototype.clear = mapCacheClear;
18831
+ MapCache$3.prototype.delete = mapCacheDelete;
18832
+ MapCache$3.prototype.get = mapCacheGet;
18833
+ MapCache$3.prototype.has = mapCacheHas;
18834
+ MapCache$3.prototype.set = mapCacheSet;
18835
+ var _MapCache = MapCache$3, ListCache$1 = _ListCache, Map$1 = _Map, MapCache$2 = _MapCache, LARGE_ARRAY_SIZE = 200;
18836
+ function stackSet$1(C, E) {
18837
+ var I = this.__data__;
18838
+ if (I instanceof ListCache$1) {
18839
+ var B = I.__data__;
18840
+ if (!Map$1 || B.length < LARGE_ARRAY_SIZE - 1)
18841
+ return B.push([C, E]), this.size = ++I.size, this;
18842
+ I = this.__data__ = new MapCache$2(B);
18843
+ }
18844
+ return I.set(C, E), this.size = I.size, this;
18845
+ }
18846
+ var _stackSet = stackSet$1, ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
18847
+ function Stack$2(C) {
18848
+ var E = this.__data__ = new ListCache(C);
18849
+ this.size = E.size;
18850
+ }
18851
+ Stack$2.prototype.clear = stackClear;
18852
+ Stack$2.prototype.delete = stackDelete;
18853
+ Stack$2.prototype.get = stackGet;
18854
+ Stack$2.prototype.has = stackHas;
18855
+ Stack$2.prototype.set = stackSet;
18856
+ var _Stack = Stack$2, HASH_UNDEFINED = "__lodash_hash_undefined__";
18857
+ function setCacheAdd$1(C) {
18858
+ return this.__data__.set(C, HASH_UNDEFINED), this;
18859
+ }
18860
+ var _setCacheAdd = setCacheAdd$1;
18861
+ function setCacheHas$1(C) {
18862
+ return this.__data__.has(C);
18863
+ }
18864
+ var _setCacheHas = setCacheHas$1, MapCache$1 = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
18865
+ function SetCache$1(C) {
18866
+ var E = -1, I = C == null ? 0 : C.length;
18867
+ for (this.__data__ = new MapCache$1(); ++E < I; )
18868
+ this.add(C[E]);
18869
+ }
18870
+ SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
18871
+ SetCache$1.prototype.has = setCacheHas;
18872
+ var _SetCache = SetCache$1;
18873
+ function arraySome$1(C, E) {
18874
+ for (var I = -1, B = C == null ? 0 : C.length; ++I < B; )
18875
+ if (E(C[I], I, C))
18876
+ return !0;
18877
+ return !1;
18878
+ }
18879
+ var _arraySome = arraySome$1;
18880
+ function cacheHas$1(C, E) {
18881
+ return C.has(E);
18882
+ }
18883
+ var _cacheHas = cacheHas$1, SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas, COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
18884
+ function equalArrays$2(C, E, I, B, U, V) {
18885
+ var X = I & COMPARE_PARTIAL_FLAG$5, Y = C.length, K = E.length;
18886
+ if (Y != K && !(X && K > Y))
18887
+ return !1;
18888
+ var J = V.get(C), xe = V.get(E);
18889
+ if (J && xe)
18890
+ return J == E && xe == C;
18891
+ var Z = -1, _e = !0, Se = I & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
18892
+ for (V.set(C, E), V.set(E, C); ++Z < Y; ) {
18893
+ var Ee = C[Z], Ae = E[Z];
18894
+ if (B)
18895
+ var Re = X ? B(Ae, Ee, Z, E, C, V) : B(Ee, Ae, Z, C, E, V);
18896
+ if (Re !== void 0) {
18897
+ if (Re)
18898
+ continue;
18899
+ _e = !1;
18900
+ break;
18901
+ }
18902
+ if (Se) {
18903
+ if (!arraySome(E, function(Te, we) {
18904
+ if (!cacheHas(Se, we) && (Ee === Te || U(Ee, Te, I, B, V)))
18905
+ return Se.push(we);
18906
+ })) {
18907
+ _e = !1;
18908
+ break;
19049
18909
  }
19050
- },
19051
- onend: () => {
19052
- console.log("end of playing audio sprite" + Ee), Y.current.isPlaying = !1, Y.current.completed = !0;
19053
- },
19054
- onplay: () => {
19055
- console.log("play of playing audio sprite" + Ee), Y.current.isPlaying = !0;
19056
- },
19057
- onpause: () => {
19058
- console.log("pause of playing audio sprite" + Ee), Y.current.isPlaying = !1;
19059
- },
19060
- onstop: () => {
19061
- console.log("stop of playing audio sprite" + Ee), Y.current.isPlaying = !1;
18910
+ } else if (!(Ee === Ae || U(Ee, Ae, I, B, V))) {
18911
+ _e = !1;
18912
+ break;
19062
18913
  }
19063
- }), Howler.ctx.resume().then(() => {
19064
- console.log("audio ctx resumed");
19065
- })), () => {
19066
- console.log("unmounting the howler useeffect"), He.current, J.current && (J.current.stop(), J.current.unload(), J.current = void 0);
19067
- }), [
19068
- Ee,
19069
- Ae,
19070
- Re,
19071
- Te,
19072
- Ie,
19073
- Me,
19074
- we,
19075
- Oe,
19076
- Pe,
19077
- ze
19078
- ]), React.useEffect(() => {
19079
- J.current && (console.log("running updateEffect 2002", Ee, Me), J.current.volume(!we && Oe ? 1 : 0), J.current.rate(Pe || 1), Y.current.isPlaying = !0);
19080
- }, [we, Oe, Pe]), // @ts-ignore
19081
- /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: X, children: We !== Waveforms.NONE && U && Z.current && /* @__PURE__ */ jsxRuntimeExports.jsx(
19082
- AbstractContainer,
19083
- {
19084
- ...C,
19085
- ref: E,
19086
- ignoreTlForVideo: !0,
19087
- isGif: !0,
19088
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19089
- Sprite,
19090
- {
19091
- texture: Z.current,
19092
- width: Ne,
19093
- height: Ve,
19094
- anchor: 0.5,
19095
- x: Xe,
19096
- y: Ue,
19097
- ref: xe,
19098
- alpha: Oe ? 1 : 0
19099
- }
19100
- )
18914
+ }
18915
+ return V.delete(C), V.delete(E), _e;
18916
+ }
18917
+ var _equalArrays = equalArrays$2, root$1 = _root, Uint8Array$2 = root$1.Uint8Array, _Uint8Array = Uint8Array$2;
18918
+ function mapToArray$1(C) {
18919
+ var E = -1, I = Array(C.size);
18920
+ return C.forEach(function(B, U) {
18921
+ I[++E] = [U, B];
18922
+ }), I;
18923
+ }
18924
+ var _mapToArray = mapToArray$1;
18925
+ function setToArray$1(C) {
18926
+ var E = -1, I = Array(C.size);
18927
+ return C.forEach(function(B) {
18928
+ I[++E] = B;
18929
+ }), I;
18930
+ }
18931
+ var _setToArray = setToArray$1, Symbol$2 = _Symbol, Uint8Array$1 = _Uint8Array, eq = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray, COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
18932
+ function equalByTag$1(C, E, I, B, U, V, X) {
18933
+ switch (I) {
18934
+ case dataViewTag:
18935
+ if (C.byteLength != E.byteLength || C.byteOffset != E.byteOffset)
18936
+ return !1;
18937
+ C = C.buffer, E = E.buffer;
18938
+ case arrayBufferTag:
18939
+ return !(C.byteLength != E.byteLength || !V(new Uint8Array$1(C), new Uint8Array$1(E)));
18940
+ case boolTag:
18941
+ case dateTag:
18942
+ case numberTag:
18943
+ return eq(+C, +E);
18944
+ case errorTag:
18945
+ return C.name == E.name && C.message == E.message;
18946
+ case regexpTag:
18947
+ case stringTag:
18948
+ return C == E + "";
18949
+ case mapTag:
18950
+ var Y = mapToArray;
18951
+ case setTag:
18952
+ var K = B & COMPARE_PARTIAL_FLAG$4;
18953
+ if (Y || (Y = setToArray), C.size != E.size && !K)
18954
+ return !1;
18955
+ var J = X.get(C);
18956
+ if (J)
18957
+ return J == E;
18958
+ B |= COMPARE_UNORDERED_FLAG$2, X.set(C, E);
18959
+ var xe = equalArrays$1(Y(C), Y(E), B, U, V, X);
18960
+ return X.delete(C), xe;
18961
+ case symbolTag$1:
18962
+ if (symbolValueOf)
18963
+ return symbolValueOf.call(C) == symbolValueOf.call(E);
18964
+ }
18965
+ return !1;
18966
+ }
18967
+ var _equalByTag = equalByTag$1;
18968
+ function arrayPush$1(C, E) {
18969
+ for (var I = -1, B = E.length, U = C.length; ++I < B; )
18970
+ C[U + I] = E[I];
18971
+ return C;
18972
+ }
18973
+ var _arrayPush = arrayPush$1, arrayPush = _arrayPush, isArray$8 = isArray_1;
18974
+ function baseGetAllKeys$1(C, E, I) {
18975
+ var B = E(C);
18976
+ return isArray$8(C) ? B : arrayPush(B, I(C));
18977
+ }
18978
+ var _baseGetAllKeys = baseGetAllKeys$1;
18979
+ function arrayFilter$1(C, E) {
18980
+ for (var I = -1, B = C == null ? 0 : C.length, U = 0, V = []; ++I < B; ) {
18981
+ var X = C[I];
18982
+ E(X, I, C) && (V[U++] = X);
18983
+ }
18984
+ return V;
18985
+ }
18986
+ var _arrayFilter = arrayFilter$1;
18987
+ function stubArray$1() {
18988
+ return [];
18989
+ }
18990
+ var stubArray_1 = stubArray$1, arrayFilter = _arrayFilter, stubArray = stubArray_1, objectProto$3 = Object.prototype, propertyIsEnumerable = objectProto$3.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, getSymbols$1 = nativeGetSymbols ? function(C) {
18991
+ return C == null ? [] : (C = Object(C), arrayFilter(nativeGetSymbols(C), function(E) {
18992
+ return propertyIsEnumerable.call(C, E);
18993
+ }));
18994
+ } : stubArray, _getSymbols = getSymbols$1;
18995
+ function baseTimes$1(C, E) {
18996
+ for (var I = -1, B = Array(C); ++I < C; )
18997
+ B[I] = E(I);
18998
+ return B;
18999
+ }
19000
+ var _baseTimes = baseTimes$1, MAX_SAFE_INTEGER = 9007199254740991, reIsUint = /^(?:0|[1-9]\d*)$/;
19001
+ function isIndex$2(C, E) {
19002
+ var I = typeof C;
19003
+ return E = E ?? MAX_SAFE_INTEGER, !!E && (I == "number" || I != "symbol" && reIsUint.test(C)) && C > -1 && C % 1 == 0 && C < E;
19004
+ }
19005
+ var _isIndex = isIndex$2, baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$7 = isArray_1, isBuffer$1 = isBufferExports, isIndex$1 = _isIndex, isTypedArray$1 = isTypedArray_1, objectProto$2 = Object.prototype, hasOwnProperty$2 = objectProto$2.hasOwnProperty;
19006
+ function arrayLikeKeys$1(C, E) {
19007
+ var I = isArray$7(C), B = !I && isArguments$1(C), U = !I && !B && isBuffer$1(C), V = !I && !B && !U && isTypedArray$1(C), X = I || B || U || V, Y = X ? baseTimes(C.length, String) : [], K = Y.length;
19008
+ for (var J in C)
19009
+ (E || hasOwnProperty$2.call(C, J)) && !(X && // Safari 9 has enumerable `arguments.length` in strict mode.
19010
+ (J == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
19011
+ U && (J == "offset" || J == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
19012
+ V && (J == "buffer" || J == "byteLength" || J == "byteOffset") || // Skip index properties.
19013
+ isIndex$1(J, K))) && Y.push(J);
19014
+ return Y;
19015
+ }
19016
+ var _arrayLikeKeys = arrayLikeKeys$1, arrayLikeKeys = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$2 = isArrayLike_1;
19017
+ function keys$3(C) {
19018
+ return isArrayLike$2(C) ? arrayLikeKeys(C) : baseKeys(C);
19019
+ }
19020
+ var keys_1 = keys$3, baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys$2 = keys_1;
19021
+ function getAllKeys$1(C) {
19022
+ return baseGetAllKeys(C, keys$2, getSymbols);
19023
+ }
19024
+ var _getAllKeys = getAllKeys$1, getAllKeys = _getAllKeys, COMPARE_PARTIAL_FLAG$3 = 1, objectProto$1 = Object.prototype, hasOwnProperty$1 = objectProto$1.hasOwnProperty;
19025
+ function equalObjects$1(C, E, I, B, U, V) {
19026
+ var X = I & COMPARE_PARTIAL_FLAG$3, Y = getAllKeys(C), K = Y.length, J = getAllKeys(E), xe = J.length;
19027
+ if (K != xe && !X)
19028
+ return !1;
19029
+ for (var Z = K; Z--; ) {
19030
+ var _e = Y[Z];
19031
+ if (!(X ? _e in E : hasOwnProperty$1.call(E, _e)))
19032
+ return !1;
19033
+ }
19034
+ var Se = V.get(C), Ee = V.get(E);
19035
+ if (Se && Ee)
19036
+ return Se == E && Ee == C;
19037
+ var Ae = !0;
19038
+ V.set(C, E), V.set(E, C);
19039
+ for (var Re = X; ++Z < K; ) {
19040
+ _e = Y[Z];
19041
+ var Te = C[_e], we = E[_e];
19042
+ if (B)
19043
+ var Pe = X ? B(we, Te, _e, E, C, V) : B(Te, we, _e, C, E, V);
19044
+ if (!(Pe === void 0 ? Te === we || U(Te, we, I, B, V) : Pe)) {
19045
+ Ae = !1;
19046
+ break;
19101
19047
  }
19102
- ) });
19103
- });
19104
- function arrayMap$2(C, E) {
19105
- for (var I = -1, B = C == null ? 0 : C.length, U = Array(B); ++I < B; )
19106
- U[I] = E(C[I], I, C);
19107
- return U;
19048
+ Re || (Re = _e == "constructor");
19049
+ }
19050
+ if (Ae && !Re) {
19051
+ var Ie = C.constructor, Me = E.constructor;
19052
+ Ie != Me && "constructor" in C && "constructor" in E && !(typeof Ie == "function" && Ie instanceof Ie && typeof Me == "function" && Me instanceof Me) && (Ae = !1);
19053
+ }
19054
+ return V.delete(C), V.delete(E), Ae;
19055
+ }
19056
+ var _equalObjects = equalObjects$1, Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$6 = isArray_1, isBuffer = isBufferExports, isTypedArray = isTypedArray_1, COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
19057
+ function baseIsEqualDeep$1(C, E, I, B, U, V) {
19058
+ var X = isArray$6(C), Y = isArray$6(E), K = X ? arrayTag : getTag(C), J = Y ? arrayTag : getTag(E);
19059
+ K = K == argsTag ? objectTag : K, J = J == argsTag ? objectTag : J;
19060
+ var xe = K == objectTag, Z = J == objectTag, _e = K == J;
19061
+ if (_e && isBuffer(C)) {
19062
+ if (!isBuffer(E))
19063
+ return !1;
19064
+ X = !0, xe = !1;
19065
+ }
19066
+ if (_e && !xe)
19067
+ return V || (V = new Stack$1()), X || isTypedArray(C) ? equalArrays(C, E, I, B, U, V) : equalByTag(C, E, K, I, B, U, V);
19068
+ if (!(I & COMPARE_PARTIAL_FLAG$2)) {
19069
+ var Se = xe && hasOwnProperty.call(C, "__wrapped__"), Ee = Z && hasOwnProperty.call(E, "__wrapped__");
19070
+ if (Se || Ee) {
19071
+ var Ae = Se ? C.value() : C, Re = Ee ? E.value() : E;
19072
+ return V || (V = new Stack$1()), U(Ae, Re, I, B, V);
19073
+ }
19074
+ }
19075
+ return _e ? (V || (V = new Stack$1()), equalObjects(C, E, I, B, U, V)) : !1;
19076
+ }
19077
+ var _baseIsEqualDeep = baseIsEqualDeep$1, baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$1 = isObjectLike_1;
19078
+ function baseIsEqual$2(C, E, I, B, U) {
19079
+ return C === E ? !0 : C == null || E == null || !isObjectLike$1(C) && !isObjectLike$1(E) ? C !== C && E !== E : baseIsEqualDeep(C, E, I, B, baseIsEqual$2, U);
19108
19080
  }
19109
- var _arrayMap = arrayMap$2, Stack = _Stack, baseIsEqual$1 = _baseIsEqual, COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
19081
+ var _baseIsEqual = baseIsEqual$2, Stack = _Stack, baseIsEqual$1 = _baseIsEqual, COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
19110
19082
  function baseIsMatch$1(C, E, I, B) {
19111
19083
  var U = I.length, V = U, X = !B;
19112
19084
  if (C == null)
@@ -19639,14 +19611,14 @@ Object.defineProperty(lzw$1, "__esModule", {
19639
19611
  });
19640
19612
  lzw$1.lzw = void 0;
19641
19613
  var lzw = function(E, I, B) {
19642
- var U = 4096, V = -1, X = B, Y, K, J, xe, Z, _e, Se, Oe, Ee, Ae, Me, Re, Le, Ne, Xe, Ve, Te = new Array(B), we = new Array(U), Pe = new Array(U), Ie = new Array(U + 1);
19614
+ var U = 4096, V = -1, X = B, Y, K, J, xe, Z, _e, Se, Oe, Ee, Ae, Me, Re, Le, Ne, We, Ve, Te = new Array(B), we = new Array(U), Pe = new Array(U), Ie = new Array(U + 1);
19643
19615
  for (Re = E, K = 1 << Re, Z = K + 1, Y = K + 2, Se = V, xe = Re + 1, J = (1 << xe) - 1, Ee = 0; Ee < K; Ee++)
19644
19616
  we[Ee] = 0, Pe[Ee] = Ee;
19645
- var Me, Oe, Le, Ne, Ve, Xe;
19646
- for (Me = Oe = Le = Ne = Ve = Xe = 0, Ae = 0; Ae < X; ) {
19617
+ var Me, Oe, Le, Ne, Ve, We;
19618
+ for (Me = Oe = Le = Ne = Ve = We = 0, Ae = 0; Ae < X; ) {
19647
19619
  if (Ne === 0) {
19648
19620
  if (Oe < xe) {
19649
- Me += I[Xe] << Oe, Oe += 8, Xe++;
19621
+ Me += I[We] << Oe, Oe += 8, We++;
19650
19622
  continue;
19651
19623
  }
19652
19624
  if (Ee = Me & J, Me >>= xe, Oe -= xe, Ee > Y || Ee == Z)
@@ -19839,9 +19811,9 @@ const genearate = (C) => ({
19839
19811
  loop: Ie,
19840
19812
  visible: Me,
19841
19813
  disabled: Oe,
19842
- transformation: { width: Le = 0, height: Ne = 0, x: Ve, y: Xe, colorCorrection: Ue = {} },
19843
- pointerdown: We
19844
- } = C, { frames: He, delays: ze } = Z;
19814
+ transformation: { width: Le = 0, height: Ne = 0, x: Ve, y: We, colorCorrection: Ue = {} },
19815
+ pointerdown: Xe
19816
+ } = C, { frames: ze, delays: He } = Z;
19845
19817
  useWorkerParser(Ee, _e);
19846
19818
  const {
19847
19819
  temperatureFilter: je,
@@ -19853,23 +19825,23 @@ const genearate = (C) => ({
19853
19825
  noiseFilter: Be
19854
19826
  } = withFiltersHook(Ue), { blurRadius: qe = 0, vignette: Ke = 0, noise: Ye = 0 } = Ue, Qe = 0.1;
19855
19827
  React.useEffect(() => {
19856
- if (!isEmpty$1(He)) {
19857
- const Je = map$1(He, (nt) => {
19858
- const { data: rt, width: tt, height: ot } = nt, ut = new Uint8Array(rt);
19828
+ if (!isEmpty$1(ze)) {
19829
+ const Je = map$1(ze, (rt) => {
19830
+ const { data: nt, width: tt, height: ot } = rt, ut = new Uint8Array(nt);
19859
19831
  return PIXI.Texture.fromBuffer(ut, tt, ot);
19860
19832
  }).map(
19861
- (nt, rt) => ({
19862
- texture: nt,
19863
- time: ze[rt]
19833
+ (rt, nt) => ({
19834
+ texture: rt,
19835
+ time: He[nt]
19864
19836
  })
19865
19837
  );
19866
19838
  V(Je);
19867
19839
  let et = 0;
19868
- ze.forEach((nt) => {
19869
- et += nt;
19870
- }), B(et / 1e3), J.current.totalDuration = et, J.current.totalFrames = He.length;
19840
+ He.forEach((rt) => {
19841
+ et += rt;
19842
+ }), B(et / 1e3), J.current.totalDuration = et, J.current.totalFrames = ze.length;
19871
19843
  }
19872
- }, [Ae, He, ze]);
19844
+ }, [Ae, ze, He]);
19873
19845
  const Ze = () => {
19874
19846
  Y.current && (Y.current.stop(), J.current.isPlaying = !1);
19875
19847
  }, it = () => {
@@ -19892,12 +19864,12 @@ const genearate = (C) => ({
19892
19864
  onInterrupt: Ze,
19893
19865
  onUpdate: it,
19894
19866
  onUpdateParams: [we, Pe]
19895
- }, et = Number(Te) - Number(Re), nt = Math.max(
19867
+ }, et = Number(Te) - Number(Re), rt = Math.max(
19896
19868
  0,
19897
19869
  Math.floor(et / I) - 1
19898
19870
  );
19899
19871
  xe.current && xe.current.kill(), st = gsap$2.context(() => {
19900
- xe.current = gsap$2.timeline({ repeat: Ie ? nt : 0, repeatDelay: 0 }).from(
19872
+ xe.current = gsap$2.timeline({ repeat: Ie ? rt : 0, repeatDelay: 0 }).from(
19901
19873
  K.current,
19902
19874
  // @ts-ignore
19903
19875
  Je,
@@ -19928,7 +19900,7 @@ const genearate = (C) => ({
19928
19900
  PixiAnimatedSprite,
19929
19901
  {
19930
19902
  x: Ve,
19931
- y: Xe,
19903
+ y: We,
19932
19904
  width: Le,
19933
19905
  height: Ne,
19934
19906
  animationSpeed: 1,
@@ -19938,7 +19910,7 @@ const genearate = (C) => ({
19938
19910
  onComplete: at,
19939
19911
  anchor: 0.5,
19940
19912
  forwardRef: Y,
19941
- ...!Oe && Me && { interactive: !0, pointerdown: We },
19913
+ ...!Oe && Me && { interactive: !0, pointerdown: Xe },
19942
19914
  filters: [
19943
19915
  je,
19944
19916
  $e,
@@ -19979,12 +19951,12 @@ const genearate = (C) => ({
19979
19951
  strokeThickness: Ne = 0,
19980
19952
  // drop shadow
19981
19953
  blurRadius: Ve = 0,
19982
- blurEnabled: Xe = !1,
19954
+ blurEnabled: We = !1,
19983
19955
  dropShadowColor: Ue = null,
19984
- dropShadow: We = !1,
19985
- dropShadowBlur: He = 0,
19956
+ dropShadow: Xe = !1,
19957
+ dropShadowBlur: ze = 0,
19986
19958
  // multiline
19987
- wordWrapWidth: ze = 5e7,
19959
+ wordWrapWidth: He = 5e7,
19988
19960
  leading: je = 0,
19989
19961
  letterSpacing: $e,
19990
19962
  colorCorrection: De = {}
@@ -20024,27 +19996,27 @@ const genearate = (C) => ({
20024
19996
  fontWeight: Ze
20025
19997
  },
20026
19998
  ...it && { letterSpacing: it },
20027
- ...Xe && {
19999
+ ...We && {
20028
20000
  dropShadow: !0,
20029
20001
  dropShadowBlur: Number(Ve),
20030
20002
  dropShadowColor: (Ue == null ? void 0 : Ue.toString()) || "black",
20031
20003
  dropShadowAngle: 0.5235987755982988,
20032
20004
  dropShadowDistance: 5
20033
20005
  },
20034
- ...We && {
20006
+ ...Xe && {
20035
20007
  dropShadow: !0,
20036
- dropShadowBlur: Number(He),
20008
+ dropShadowBlur: Number(ze),
20037
20009
  dropShadowColor: (Ue == null ? void 0 : Ue.toString()) || "black",
20038
20010
  dropShadowAngle: 0.5235987755982988,
20039
20011
  dropShadowDistance: 5
20040
20012
  },
20041
20013
  wordWrap: !0,
20042
20014
  breakWords: !0,
20043
- wordWrapWidth: ze || 500,
20015
+ wordWrapWidth: He || 500,
20044
20016
  leading: je || 0
20045
20017
  // lineHeight: lineHeight,
20046
20018
  }), [
20047
- Xe,
20019
+ We,
20048
20020
  Ve,
20049
20021
  Oe,
20050
20022
  Te,
@@ -20058,9 +20030,9 @@ const genearate = (C) => ({
20058
20030
  Ue,
20059
20031
  Le,
20060
20032
  Ne,
20061
- ze,
20062
- We,
20063
- He
20033
+ He,
20034
+ Xe,
20035
+ ze
20064
20036
  ]);
20065
20037
  React.useEffect(() => {
20066
20038
  K.current = {
@@ -20232,12 +20204,12 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
20232
20204
  transformation: { x: Pe, y: Ie, width: Me, height: Oe, animation: Le, colorCorrection: Ne = {} },
20233
20205
  pointerdown: Ve = () => {
20234
20206
  },
20235
- pointerout: Xe = () => {
20207
+ pointerout: We = () => {
20236
20208
  },
20237
20209
  pointerover: Ue = () => {
20238
20210
  },
20239
- fps: We = 0
20240
- } = C, { tl: He, dragModeRef: ze, isRemotion: je } = useContext(GsapPixieContext), { onPointerDown: $e, onPointerOut: De, onPointerOver: Fe } = useDebouncedPointerEvents(Ue, Ve, Xe, 1), { blurRadius: ke = 0, vignette: Ge = 0, noise: Be = 0 } = Ne, {
20211
+ fps: Xe = 0
20212
+ } = C, { tl: ze, dragModeRef: He, isRemotion: je } = useContext(GsapPixieContext), { onPointerDown: $e, onPointerOut: De, onPointerOver: Fe } = useDebouncedPointerEvents(Ue, Ve, We, 1), { blurRadius: ke = 0, vignette: Ge = 0, noise: Be = 0 } = Ne, {
20241
20213
  temperatureFilter: qe,
20242
20214
  sharpnessFilter: Ke,
20243
20215
  hueFilter: Ye,
@@ -20258,38 +20230,38 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
20258
20230
  });
20259
20231
  const et = (ot) => {
20260
20232
  if (Y.current) {
20261
- if (Y.current.currentTime = Number(ot), !ze.current) {
20233
+ if (Y.current.currentTime = Number(ot), !He.current) {
20262
20234
  const ut = Y.current, mt = ut.currentTime > 0 && !ut.paused && !ut.ended && ut.readyState > ut.HAVE_CURRENT_DATA;
20263
- He.current && He.current.isActive() && J.current && J.current.isActive() && (mt || Y.current.play(), K.current.isPlaying = !0);
20235
+ ze.current && ze.current.isActive() && J.current && J.current.isActive() && (mt || Y.current.play(), K.current.isPlaying = !0);
20264
20236
  }
20265
20237
  K.current.progress = 0;
20266
20238
  }
20267
- }, nt = () => {
20239
+ }, rt = () => {
20268
20240
  if (Y.current) {
20269
20241
  const ot = Y.current;
20270
20242
  ot.currentTime > 0 && !ot.paused && !ot.ended && ot.readyState > ot.HAVE_CURRENT_DATA && Y.current.pause(), K.current.isPlaying = !1, J.current && (K.current.progress = J.current.progress());
20271
20243
  }
20272
- }, rt = () => {
20244
+ }, nt = () => {
20273
20245
  }, tt = () => {
20274
20246
  var ot, ut;
20275
20247
  if (J.current && (K.current.progress = J.current.progress()), Y.current && J.current) {
20276
20248
  const mt = Ae + ((ot = J == null ? void 0 : J.current) == null ? void 0 : ot.time()), pt = Math.abs(
20277
20249
  Y.current.currentTime - mt
20278
- ), yt = Y.current, gt = yt.currentTime > 0 && !yt.paused && !yt.ended && yt.readyState > yt.HAVE_CURRENT_DATA;
20279
- ze.current && U.current ? (Y.current.currentTime = mt, U.current.update(), K.current.isPlaying = !1) : (gt !== K.current.isPlaying || !gt) && K.current.progress > 0.01 && K.current.progress < 0.99 ? (ut = He.current) != null && ut.isActive() && J.current && J.current.isActive() && (gt || Y.current.play(), K.current.isPlaying = !0) : pt > 0.3 && K.current.progress > 0.01 && K.current.progress < 0.99 && (Y.current.currentTime = mt);
20250
+ ), gt = Y.current, bt = gt.currentTime > 0 && !gt.paused && !gt.ended && gt.readyState > gt.HAVE_CURRENT_DATA;
20251
+ He.current && U.current ? (Y.current.currentTime = mt, U.current.update(), K.current.isPlaying = !1) : (bt !== K.current.isPlaying || !bt) && K.current.progress > 0.01 && K.current.progress < 0.99 ? (ut = ze.current) != null && ut.isActive() && J.current && J.current.isActive() && (bt || Y.current.play(), K.current.isPlaying = !0) : pt > 0.3 && K.current.progress > 0.01 && K.current.progress < 0.99 && (Y.current.currentTime = mt);
20280
20252
  }
20281
20253
  };
20282
20254
  return useEffect(() => {
20283
20255
  let ot = gsap$2.context(() => {
20284
20256
  });
20285
- if (X.current && He.current) {
20257
+ if (X.current && ze.current) {
20286
20258
  const ut = {
20287
20259
  duration: Number(Ee) - Number(Se),
20288
20260
  onStart: et,
20289
- onComplete: nt,
20261
+ onComplete: rt,
20290
20262
  onStartParams: [Ae, Re],
20291
20263
  onCompleteParams: [],
20292
- onInterrupt: rt,
20264
+ onInterrupt: nt,
20293
20265
  onUpdate: tt,
20294
20266
  onUpdateParams: [Ae, Re],
20295
20267
  onPause: () => {
@@ -20308,13 +20280,13 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
20308
20280
  console.log("onKill video sprite kill", xe);
20309
20281
  }
20310
20282
  };
20311
- J.current && (J.current.kill(), He.current.remove(J.current)), ot = gsap$2.context(() => {
20283
+ J.current && (J.current.kill(), ze.current.remove(J.current)), ot = gsap$2.context(() => {
20312
20284
  J.current = gsap$2.to(
20313
20285
  X.current,
20314
20286
  // @ts-ignore
20315
20287
  ut,
20316
20288
  Ae
20317
- ), He.current.add(J.current, Se);
20289
+ ), ze.current.add(J.current, Se);
20318
20290
  });
20319
20291
  }
20320
20292
  return () => {
@@ -20335,29 +20307,29 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
20335
20307
  K.current.isWaiting = !1, K.current.isStalled = !1;
20336
20308
  }, pt = function() {
20337
20309
  K.current.isWaiting = !0, K.current.isStalled = !1;
20338
- }, yt = function() {
20339
- K.current.isWaiting = !1, K.current.isStalled = !1;
20340
20310
  }, gt = function() {
20311
+ K.current.isWaiting = !1, K.current.isStalled = !1;
20312
+ }, bt = function() {
20341
20313
  K.current.isWaiting = !1, K.current.isStalled = !0;
20342
- }, _t = Math.round((Number(Ae) + Number.EPSILON) * 100) / 100, Pt = Math.round((Number(Re) + Number.EPSILON) * 100) / 100, It = `${st}#t=${_t},${Pt}`;
20314
+ }, yt = Math.round((Number(Ae) + Number.EPSILON) * 100) / 100, Pt = Math.round((Number(Re) + Number.EPSILON) * 100) / 100, It = `${st}#t=${yt},${Pt}`;
20343
20315
  return PIXI.Texture.fromLoader(Je, It, xe, {
20344
20316
  pixiIdPrefix: xe,
20345
20317
  resourceOptions: {
20346
20318
  autoPlay: !1,
20347
20319
  crossorigin: "Anonymus",
20348
- updateFPS: We ? Math.max(120, Number(We)) : 30
20320
+ updateFPS: Xe ? Math.max(120, Number(Xe)) : 30
20349
20321
  }
20350
20322
  }).then((St) => {
20351
- St && (U.current = St, B(!0), Y.current = St.baseTexture.resource.source, Y.current.id = xe, Y.current.addEventListener("loadedmetadata", ut), Y.current.addEventListener("ended", mt), Y.current.addEventListener("loadstart", pt), Y.current.addEventListener("canplaythrough", yt), Y.current.addEventListener("stalled", gt));
20323
+ St && (U.current = St, B(!0), Y.current = St.baseTexture.resource.source, Y.current.id = xe, Y.current.addEventListener("loadedmetadata", ut), Y.current.addEventListener("ended", mt), Y.current.addEventListener("loadstart", pt), Y.current.addEventListener("canplaythrough", gt), Y.current.addEventListener("stalled", bt));
20352
20324
  }), () => {
20353
20325
  Y.current && (Y.current.pause(), Y.current.removeEventListener("loadedmetadata", ut), Y.current.removeEventListener("ended", mt), Y.current.removeEventListener("loadstart", pt), Y.current.removeEventListener(
20354
20326
  "canplaythrough",
20355
- yt
20356
- ), Y.current.removeEventListener("stalled", gt));
20327
+ gt
20328
+ ), Y.current.removeEventListener("stalled", bt));
20357
20329
  };
20358
20330
  }, [st, xe, Ae, Re, Je]), React.useEffect(() => {
20359
20331
  const ot = setTimeout(() => {
20360
- I && U.current && J.current && He.current && J.current.progress() < 0.1 && Y.current && !J.current.isActive() && !je && (Y.current.currentTime = Ae, U.current.update());
20332
+ I && U.current && J.current && ze.current && J.current.progress() < 0.1 && Y.current && !J.current.isActive() && !je && (Y.current.currentTime = Ae, U.current.update());
20361
20333
  }, 30);
20362
20334
  return () => {
20363
20335
  clearTimeout(ot);
@@ -20418,11 +20390,11 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((C, E) => {
20418
20390
  canvasImageRef: Re
20419
20391
  } = C, Te = Re && (Re == null ? void 0 : Re.getCanvas()), we = useApp(), { onPointerDown: Pe, onPointerOut: Ie, onPointerOver: Me } = useDebouncedPointerEvents(Ae, Se, Ee, 1), { blurRadius: Oe = 0, vignette: Le = 0, noise: Ne = 0 } = _e, {
20420
20392
  temperatureFilter: Ve,
20421
- sharpnessFilter: Xe,
20393
+ sharpnessFilter: We,
20422
20394
  hueFilter: Ue,
20423
- blurFilter: We,
20424
- adjustmentFilter: He,
20425
- vignetteFilter: ze,
20395
+ blurFilter: Xe,
20396
+ adjustmentFilter: ze,
20397
+ vignetteFilter: He,
20426
20398
  noiseFilter: je
20427
20399
  } = withFiltersHook(_e);
20428
20400
  return useTick(() => {
@@ -20458,13 +20430,13 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((C, E) => {
20458
20430
  ...!Y && X && { interactive: !0, pointerdown: Se },
20459
20431
  filters: [
20460
20432
  Ve,
20461
- Xe,
20433
+ We,
20462
20434
  Ue,
20463
- He,
20435
+ ze,
20464
20436
  // conditionally add blur filter
20465
- ...Oe > 0 ? [We] : [],
20437
+ ...Oe > 0 ? [Xe] : [],
20466
20438
  // conditionally add vignette filter
20467
- ...Le > 0 ? [ze] : [],
20439
+ ...Le > 0 ? [He] : [],
20468
20440
  // conditionally add noise filter
20469
20441
  ...Ne > 0 ? [je] : []
20470
20442
  ]
@@ -20525,11 +20497,11 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((C, E) => {
20525
20497
  canvasImageRef: Re
20526
20498
  } = C, Te = Re && (Re == null ? void 0 : Re.getCanvas()), we = useApp(), { onPointerDown: Pe, onPointerOut: Ie, onPointerOver: Me } = useDebouncedPointerEvents(Ae, Se, Ee, 1), { blurRadius: Oe = 0, vignette: Le = 0, noise: Ne = 0 } = _e, {
20527
20499
  temperatureFilter: Ve,
20528
- sharpnessFilter: Xe,
20500
+ sharpnessFilter: We,
20529
20501
  hueFilter: Ue,
20530
- blurFilter: We,
20531
- adjustmentFilter: He,
20532
- vignetteFilter: ze,
20502
+ blurFilter: Xe,
20503
+ adjustmentFilter: ze,
20504
+ vignetteFilter: He,
20533
20505
  noiseFilter: je
20534
20506
  } = withFiltersHook(_e);
20535
20507
  return useTick(() => {
@@ -20565,13 +20537,13 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((C, E) => {
20565
20537
  ...!Y && X && { interactive: !0, pointerdown: Se },
20566
20538
  filters: [
20567
20539
  Ve,
20568
- Xe,
20540
+ We,
20569
20541
  Ue,
20570
- He,
20542
+ ze,
20571
20543
  // conditionally add blur filter
20572
- ...Oe > 0 ? [We] : [],
20544
+ ...Oe > 0 ? [Xe] : [],
20573
20545
  // conditionally add vignette filter
20574
- ...Le > 0 ? [ze] : [],
20546
+ ...Le > 0 ? [He] : [],
20575
20547
  // conditionally add noise filter
20576
20548
  ...Ne > 0 ? [je] : []
20577
20549
  ]
@@ -20890,7 +20862,7 @@ var lottie$1 = { exports: {} };
20890
20862
  for (Ke = Ye[Ge].pt.k.length, qe = 0; qe < Ke; qe += 1)
20891
20863
  Ye[Ge].pt.k[qe].s && Me(Ye[Ge].pt.k[qe].s[0]), Ye[Ge].pt.k[qe].e && Me(Ye[Ge].pt.k[qe].e[0]);
20892
20864
  }
20893
- De.ty === 0 ? (De.layers = Pe(De.refId, $e), Re(De.layers, $e)) : De.ty === 4 ? Ie(De.shapes) : De.ty === 5 && He(De);
20865
+ De.ty === 0 ? (De.layers = Pe(De.refId, $e), Re(De.layers, $e)) : De.ty === 4 ? Ie(De.shapes) : De.ty === 5 && ze(De);
20894
20866
  }
20895
20867
  }
20896
20868
  function Te(je, $e) {
@@ -21047,7 +21019,7 @@ var lottie$1 = { exports: {} };
21047
21019
  Fe.assets[ke].layers && De(Fe.assets[ke].layers);
21048
21020
  }
21049
21021
  };
21050
- }(), Xe = function() {
21022
+ }(), We = function() {
21051
21023
  var je = [4, 1, 9];
21052
21024
  function $e(Fe) {
21053
21025
  var ke, Ge = Fe.length, Be, qe;
@@ -21110,14 +21082,14 @@ var lottie$1 = { exports: {} };
21110
21082
  }
21111
21083
  };
21112
21084
  }();
21113
- function We(je) {
21114
- je.__complete || (Xe(je), Le(je), Ne(je), Ve(je), Ue(je), Re(je.layers, je.assets), Te(je.chars, je.assets), je.__complete = !0);
21085
+ function Xe(je) {
21086
+ je.__complete || (We(je), Le(je), Ne(je), Ve(je), Ue(je), Re(je.layers, je.assets), Te(je.chars, je.assets), je.__complete = !0);
21115
21087
  }
21116
- function He(je) {
21088
+ function ze(je) {
21117
21089
  je.t.a.length === 0 && "m" in je.t.p;
21118
21090
  }
21119
- var ze = {};
21120
- return ze.completeData = We, ze.checkColors = Xe, ze.checkChars = Ne, ze.checkPathProperties = Ve, ze.checkShapes = Ue, ze.completeLayers = Re, ze;
21091
+ var He = {};
21092
+ return He.completeData = Xe, He.checkColors = We, He.checkChars = Ne, He.checkPathProperties = Ve, He.checkShapes = Ue, He.completeLayers = Re, He;
21121
21093
  }
21122
21094
  if (V.dataManager || (V.dataManager = Ee()), V.assetLoader || (V.assetLoader = function() {
21123
21095
  function Re(we) {
@@ -21690,7 +21662,7 @@ var lottie$1 = { exports: {} };
21690
21662
  return Fe;
21691
21663
  }
21692
21664
  function xe() {
21693
- U += 1, Xe();
21665
+ U += 1, We();
21694
21666
  }
21695
21667
  function Z() {
21696
21668
  U -= 1;
@@ -21771,21 +21743,21 @@ var lottie$1 = { exports: {} };
21771
21743
  for ($e = 0; $e < B; $e += 1)
21772
21744
  E[$e].animation.resize();
21773
21745
  }
21774
- function Xe() {
21746
+ function We() {
21775
21747
  !X && U && V && (window.requestAnimationFrame(we), V = !1);
21776
21748
  }
21777
21749
  function Ue() {
21778
21750
  X = !0;
21779
21751
  }
21780
- function We() {
21781
- X = !1, Xe();
21752
+ function Xe() {
21753
+ X = !1, We();
21782
21754
  }
21783
- function He($e, De) {
21755
+ function ze($e, De) {
21784
21756
  var Fe;
21785
21757
  for (Fe = 0; Fe < B; Fe += 1)
21786
21758
  E[Fe].animation.setVolume($e, De);
21787
21759
  }
21788
- function ze($e) {
21760
+ function He($e) {
21789
21761
  var De;
21790
21762
  for (De = 0; De < B; De += 1)
21791
21763
  E[De].animation.mute($e);
@@ -21795,7 +21767,7 @@ var lottie$1 = { exports: {} };
21795
21767
  for (De = 0; De < B; De += 1)
21796
21768
  E[De].animation.unmute($e);
21797
21769
  }
21798
- return C.registerAnimation = K, C.loadAnimation = Se, C.setSpeed = Ee, C.setDirection = Ae, C.play = Re, C.pause = Pe, C.stop = Me, C.togglePause = Oe, C.searchAnimations = Ne, C.resize = Ve, C.goToAndStop = Ie, C.destroy = Le, C.freeze = Ue, C.unfreeze = We, C.setVolume = He, C.mute = ze, C.unmute = je, C.getRegisteredAnimations = J, C;
21770
+ return C.registerAnimation = K, C.loadAnimation = Se, C.setSpeed = Ee, C.setDirection = Ae, C.play = Re, C.pause = Pe, C.stop = Me, C.togglePause = Oe, C.searchAnimations = Ne, C.resize = Ve, C.goToAndStop = Ie, C.destroy = Le, C.freeze = Ue, C.unfreeze = Xe, C.setVolume = ze, C.mute = He, C.unmute = je, C.getRegisteredAnimations = J, C;
21799
21771
  }(), BezierFactory = function() {
21800
21772
  var C = {};
21801
21773
  C.getBezierEasing = I;
@@ -21864,8 +21836,8 @@ var lottie$1 = { exports: {} };
21864
21836
  for (var Ie = this._p[0], Me = this._p[2], Oe = this._mSampleValues, Le = 0, Ne = 1, Ve = Y - 1; Ne !== Ve && Oe[Ne] <= Pe; ++Ne)
21865
21837
  Le += K;
21866
21838
  --Ne;
21867
- var Xe = (Pe - Oe[Ne]) / (Oe[Ne + 1] - Oe[Ne]), Ue = Le + Xe * K, We = Ee(Ue, Ie, Me);
21868
- return We >= U ? Re(Pe, Ue, Ie, Me) : We === 0 ? Ue : Ae(Pe, Le, Le + K, Ie, Me);
21839
+ var We = (Pe - Oe[Ne]) / (Oe[Ne + 1] - Oe[Ne]), Ue = Le + We * K, Xe = Ee(Ue, Ie, Me);
21840
+ return Xe >= U ? Re(Pe, Ue, Ie, Me) : Xe === 0 ? Ue : Ae(Pe, Le, Le + K, Ie, Me);
21869
21841
  }
21870
21842
  }, C;
21871
21843
  }(), pooling = function() {
@@ -21928,13 +21900,13 @@ var lottie$1 = { exports: {} };
21928
21900
  }
21929
21901
  var B = function() {
21930
21902
  return function(_e, Se, Ee, Ae) {
21931
- var Re = getDefaultCurveSegments(), Te, we, Pe, Ie, Me, Oe = 0, Le, Ne = [], Ve = [], Xe = bezierLengthPool.newElement();
21903
+ var Re = getDefaultCurveSegments(), Te, we, Pe, Ie, Me, Oe = 0, Le, Ne = [], Ve = [], We = bezierLengthPool.newElement();
21932
21904
  for (Pe = Ee.length, Te = 0; Te < Re; Te += 1) {
21933
21905
  for (Me = Te / (Re - 1), Le = 0, we = 0; we < Pe; we += 1)
21934
21906
  Ie = bmPow(1 - Me, 3) * _e[we] + 3 * bmPow(1 - Me, 2) * Me * Ee[we] + 3 * (1 - Me) * bmPow(Me, 2) * Ae[we] + bmPow(Me, 3) * Se[we], Ne[we] = Ie, Ve[we] !== null && (Le += bmPow(Ne[we] - Ve[we], 2)), Ve[we] = Ne[we];
21935
- Le && (Le = bmSqrt(Le), Oe += Le), Xe.percents[Te] = Me, Xe.lengths[Te] = Oe;
21907
+ Le && (Le = bmSqrt(Le), Oe += Le), We.percents[Te] = Me, We.lengths[Te] = Oe;
21936
21908
  }
21937
- return Xe.addedLength = Oe, Xe;
21909
+ return We.addedLength = Oe, We;
21938
21910
  };
21939
21911
  }();
21940
21912
  function U(_e) {
@@ -21954,15 +21926,15 @@ var lottie$1 = { exports: {} };
21954
21926
  return function(Se, Ee, Ae, Re) {
21955
21927
  var Te = (Se[0] + "_" + Se[1] + "_" + Ee[0] + "_" + Ee[1] + "_" + Ae[0] + "_" + Ae[1] + "_" + Re[0] + "_" + Re[1]).replace(/\./g, "p");
21956
21928
  if (!_e[Te]) {
21957
- var we = getDefaultCurveSegments(), Pe, Ie, Me, Oe, Le, Ne = 0, Ve, Xe, Ue = null;
21929
+ var we = getDefaultCurveSegments(), Pe, Ie, Me, Oe, Le, Ne = 0, Ve, We, Ue = null;
21958
21930
  Se.length === 2 && (Se[0] !== Ee[0] || Se[1] !== Ee[1]) && E(Se[0], Se[1], Ee[0], Ee[1], Se[0] + Ae[0], Se[1] + Ae[1]) && E(Se[0], Se[1], Ee[0], Ee[1], Ee[0] + Re[0], Ee[1] + Re[1]) && (we = 2);
21959
- var We = new V(we);
21931
+ var Xe = new V(we);
21960
21932
  for (Me = Ae.length, Pe = 0; Pe < we; Pe += 1) {
21961
- for (Xe = createSizedArray(Me), Le = Pe / (we - 1), Ve = 0, Ie = 0; Ie < Me; Ie += 1)
21962
- Oe = bmPow(1 - Le, 3) * Se[Ie] + 3 * bmPow(1 - Le, 2) * Le * (Se[Ie] + Ae[Ie]) + 3 * (1 - Le) * bmPow(Le, 2) * (Ee[Ie] + Re[Ie]) + bmPow(Le, 3) * Ee[Ie], Xe[Ie] = Oe, Ue !== null && (Ve += bmPow(Xe[Ie] - Ue[Ie], 2));
21963
- Ve = bmSqrt(Ve), Ne += Ve, We.points[Pe] = new X(Ve, Xe), Ue = Xe;
21933
+ for (We = createSizedArray(Me), Le = Pe / (we - 1), Ve = 0, Ie = 0; Ie < Me; Ie += 1)
21934
+ Oe = bmPow(1 - Le, 3) * Se[Ie] + 3 * bmPow(1 - Le, 2) * Le * (Se[Ie] + Ae[Ie]) + 3 * (1 - Le) * bmPow(Le, 2) * (Ee[Ie] + Re[Ie]) + bmPow(Le, 3) * Ee[Ie], We[Ie] = Oe, Ue !== null && (Ve += bmPow(We[Ie] - Ue[Ie], 2));
21935
+ Ve = bmSqrt(Ve), Ne += Ve, Xe.points[Pe] = new X(Ve, We), Ue = We;
21964
21936
  }
21965
- We.segmentLength = Ne, _e[Te] = We;
21937
+ Xe.segmentLength = Ne, _e[Te] = Xe;
21966
21938
  }
21967
21939
  return _e[Te];
21968
21940
  };
@@ -21988,9 +21960,9 @@ var lottie$1 = { exports: {} };
21988
21960
  Re < 0 ? Re = 0 : Re > 1 && (Re = 1);
21989
21961
  var Pe = K(Re, we);
21990
21962
  Te = Te > 1 ? 1 : Te;
21991
- var Ie = K(Te, we), Me, Oe = _e.length, Le = 1 - Pe, Ne = 1 - Ie, Ve = Le * Le * Le, Xe = Pe * Le * Le * 3, Ue = Pe * Pe * Le * 3, We = Pe * Pe * Pe, He = Le * Le * Ne, ze = Pe * Le * Ne + Le * Pe * Ne + Le * Le * Ie, je = Pe * Pe * Ne + Le * Pe * Ie + Pe * Le * Ie, $e = Pe * Pe * Ie, De = Le * Ne * Ne, Fe = Pe * Ne * Ne + Le * Ie * Ne + Le * Ne * Ie, ke = Pe * Ie * Ne + Le * Ie * Ie + Pe * Ne * Ie, Ge = Pe * Ie * Ie, Be = Ne * Ne * Ne, qe = Ie * Ne * Ne + Ne * Ie * Ne + Ne * Ne * Ie, Ke = Ie * Ie * Ne + Ne * Ie * Ie + Ie * Ne * Ie, Ye = Ie * Ie * Ie;
21963
+ var Ie = K(Te, we), Me, Oe = _e.length, Le = 1 - Pe, Ne = 1 - Ie, Ve = Le * Le * Le, We = Pe * Le * Le * 3, Ue = Pe * Pe * Le * 3, Xe = Pe * Pe * Pe, ze = Le * Le * Ne, He = Pe * Le * Ne + Le * Pe * Ne + Le * Le * Ie, je = Pe * Pe * Ne + Le * Pe * Ie + Pe * Le * Ie, $e = Pe * Pe * Ie, De = Le * Ne * Ne, Fe = Pe * Ne * Ne + Le * Ie * Ne + Le * Ne * Ie, ke = Pe * Ie * Ne + Le * Ie * Ie + Pe * Ne * Ie, Ge = Pe * Ie * Ie, Be = Ne * Ne * Ne, qe = Ie * Ne * Ne + Ne * Ie * Ne + Ne * Ne * Ie, Ke = Ie * Ie * Ne + Ne * Ie * Ie + Ie * Ne * Ie, Ye = Ie * Ie * Ie;
21992
21964
  for (Me = 0; Me < Oe; Me += 1)
21993
- xe[Me * 4] = C.round((Ve * _e[Me] + Xe * Ee[Me] + Ue * Ae[Me] + We * Se[Me]) * 1e3) / 1e3, xe[Me * 4 + 1] = C.round((He * _e[Me] + ze * Ee[Me] + je * Ae[Me] + $e * Se[Me]) * 1e3) / 1e3, xe[Me * 4 + 2] = C.round((De * _e[Me] + Fe * Ee[Me] + ke * Ae[Me] + Ge * Se[Me]) * 1e3) / 1e3, xe[Me * 4 + 3] = C.round((Be * _e[Me] + qe * Ee[Me] + Ke * Ae[Me] + Ye * Se[Me]) * 1e3) / 1e3;
21965
+ xe[Me * 4] = C.round((Ve * _e[Me] + We * Ee[Me] + Ue * Ae[Me] + Xe * Se[Me]) * 1e3) / 1e3, xe[Me * 4 + 1] = C.round((ze * _e[Me] + He * Ee[Me] + je * Ae[Me] + $e * Se[Me]) * 1e3) / 1e3, xe[Me * 4 + 2] = C.round((De * _e[Me] + Fe * Ee[Me] + ke * Ae[Me] + Ge * Se[Me]) * 1e3) / 1e3, xe[Me * 4 + 3] = C.round((Be * _e[Me] + qe * Ee[Me] + Ke * Ae[Me] + Ye * Se[Me]) * 1e3) / 1e3;
21994
21966
  return xe;
21995
21967
  }
21996
21968
  return {
@@ -22044,19 +22016,19 @@ var lottie$1 = { exports: {} };
22044
22016
  E._lastPoint = Ae, E._lastAddedLength = Ne - Ie.points[Ae].partialLength, E._lastKeyframeIndex = V;
22045
22017
  }
22046
22018
  } else {
22047
- var Ve, Xe, Ue, We, He;
22019
+ var Ve, We, Ue, Xe, ze;
22048
22020
  if (X = K.s.length, Pe = J.s || K.e, this.sh && K.h !== 1)
22049
22021
  if (C >= Te)
22050
22022
  B[0] = Pe[0], B[1] = Pe[1], B[2] = Pe[2];
22051
22023
  else if (C <= we)
22052
22024
  B[0] = K.s[0], B[1] = K.s[1], B[2] = K.s[2];
22053
22025
  else {
22054
- var ze = createQuaternion(K.s), je = createQuaternion(Pe), $e = (C - we) / (Te - we);
22055
- quaternionToEuler(B, slerp(ze, je, $e));
22026
+ var He = createQuaternion(K.s), je = createQuaternion(Pe), $e = (C - we) / (Te - we);
22027
+ quaternionToEuler(B, slerp(He, je, $e));
22056
22028
  }
22057
22029
  else
22058
22030
  for (V = 0; V < X; V += 1)
22059
- K.h !== 1 && (C >= Te ? Se = 1 : C < we ? Se = 0 : (K.o.x.constructor === Array ? (xe.__fnct || (xe.__fnct = []), xe.__fnct[V] ? Re = xe.__fnct[V] : (Ve = K.o.x[V] === void 0 ? K.o.x[0] : K.o.x[V], Xe = K.o.y[V] === void 0 ? K.o.y[0] : K.o.y[V], Ue = K.i.x[V] === void 0 ? K.i.x[0] : K.i.x[V], We = K.i.y[V] === void 0 ? K.i.y[0] : K.i.y[V], Re = BezierFactory.getBezierEasing(Ve, Xe, Ue, We).get, xe.__fnct[V] = Re)) : xe.__fnct ? Re = xe.__fnct : (Ve = K.o.x, Xe = K.o.y, Ue = K.i.x, We = K.i.y, Re = BezierFactory.getBezierEasing(Ve, Xe, Ue, We).get, K.keyframeMetadata = Re), Se = Re((C - we) / (Te - we)))), Pe = J.s || K.e, He = K.h === 1 ? K.s[V] : K.s[V] + (Pe[V] - K.s[V]) * Se, this.propType === "multidimensional" ? B[V] = He : B = He;
22031
+ K.h !== 1 && (C >= Te ? Se = 1 : C < we ? Se = 0 : (K.o.x.constructor === Array ? (xe.__fnct || (xe.__fnct = []), xe.__fnct[V] ? Re = xe.__fnct[V] : (Ve = K.o.x[V] === void 0 ? K.o.x[0] : K.o.x[V], We = K.o.y[V] === void 0 ? K.o.y[0] : K.o.y[V], Ue = K.i.x[V] === void 0 ? K.i.x[0] : K.i.x[V], Xe = K.i.y[V] === void 0 ? K.i.y[0] : K.i.y[V], Re = BezierFactory.getBezierEasing(Ve, We, Ue, Xe).get, xe.__fnct[V] = Re)) : xe.__fnct ? Re = xe.__fnct : (Ve = K.o.x, We = K.o.y, Ue = K.i.x, Xe = K.i.y, Re = BezierFactory.getBezierEasing(Ve, We, Ue, Xe).get, K.keyframeMetadata = Re), Se = Re((C - we) / (Te - we)))), Pe = J.s || K.e, ze = K.h === 1 ? K.s[V] : K.s[V] + (Pe[V] - K.s[V]) * Se, this.propType === "multidimensional" ? B[V] = ze : B = ze;
22060
22032
  }
22061
22033
  return E.lastIndex = U, B;
22062
22034
  }
@@ -22277,30 +22249,30 @@ var lottie$1 = { exports: {} };
22277
22249
  }(), ShapePropertyFactory = function() {
22278
22250
  var C = -999999;
22279
22251
  function E(Te, we, Pe) {
22280
- var Ie = Pe.lastIndex, Me, Oe, Le, Ne, Ve, Xe, Ue, We, He, ze = this.keyframes;
22281
- if (Te < ze[0].t - this.offsetTime)
22282
- Me = ze[0].s[0], Le = !0, Ie = 0;
22283
- else if (Te >= ze[ze.length - 1].t - this.offsetTime)
22284
- Me = ze[ze.length - 1].s ? ze[ze.length - 1].s[0] : ze[ze.length - 2].e[0], Le = !0;
22252
+ var Ie = Pe.lastIndex, Me, Oe, Le, Ne, Ve, We, Ue, Xe, ze, He = this.keyframes;
22253
+ if (Te < He[0].t - this.offsetTime)
22254
+ Me = He[0].s[0], Le = !0, Ie = 0;
22255
+ else if (Te >= He[He.length - 1].t - this.offsetTime)
22256
+ Me = He[He.length - 1].s ? He[He.length - 1].s[0] : He[He.length - 2].e[0], Le = !0;
22285
22257
  else {
22286
- for (var je = Ie, $e = ze.length - 1, De = !0, Fe, ke, Ge; De && (Fe = ze[je], ke = ze[je + 1], !(ke.t - this.offsetTime > Te)); )
22258
+ for (var je = Ie, $e = He.length - 1, De = !0, Fe, ke, Ge; De && (Fe = He[je], ke = He[je + 1], !(ke.t - this.offsetTime > Te)); )
22287
22259
  je < $e - 1 ? je += 1 : De = !1;
22288
22260
  if (Ge = this.keyframesMetadata[je] || {}, Le = Fe.h === 1, Ie = je, !Le) {
22289
22261
  if (Te >= ke.t - this.offsetTime)
22290
- We = 1;
22262
+ Xe = 1;
22291
22263
  else if (Te < Fe.t - this.offsetTime)
22292
- We = 0;
22264
+ Xe = 0;
22293
22265
  else {
22294
22266
  var Be;
22295
- Ge.__fnct ? Be = Ge.__fnct : (Be = BezierFactory.getBezierEasing(Fe.o.x, Fe.o.y, Fe.i.x, Fe.i.y).get, Ge.__fnct = Be), We = Be((Te - (Fe.t - this.offsetTime)) / (ke.t - this.offsetTime - (Fe.t - this.offsetTime)));
22267
+ Ge.__fnct ? Be = Ge.__fnct : (Be = BezierFactory.getBezierEasing(Fe.o.x, Fe.o.y, Fe.i.x, Fe.i.y).get, Ge.__fnct = Be), Xe = Be((Te - (Fe.t - this.offsetTime)) / (ke.t - this.offsetTime - (Fe.t - this.offsetTime)));
22296
22268
  }
22297
22269
  Oe = ke.s ? ke.s[0] : Fe.e[0];
22298
22270
  }
22299
22271
  Me = Fe.s[0];
22300
22272
  }
22301
- for (Xe = we._length, Ue = Me.i[0].length, Pe.lastIndex = Ie, Ne = 0; Ne < Xe; Ne += 1)
22273
+ for (We = we._length, Ue = Me.i[0].length, Pe.lastIndex = Ie, Ne = 0; Ne < We; Ne += 1)
22302
22274
  for (Ve = 0; Ve < Ue; Ve += 1)
22303
- He = Le ? Me.i[Ne][Ve] : Me.i[Ne][Ve] + (Oe.i[Ne][Ve] - Me.i[Ne][Ve]) * We, we.i[Ne][Ve] = He, He = Le ? Me.o[Ne][Ve] : Me.o[Ne][Ve] + (Oe.o[Ne][Ve] - Me.o[Ne][Ve]) * We, we.o[Ne][Ve] = He, He = Le ? Me.v[Ne][Ve] : Me.v[Ne][Ve] + (Oe.v[Ne][Ve] - Me.v[Ne][Ve]) * We, we.v[Ne][Ve] = He;
22275
+ ze = Le ? Me.i[Ne][Ve] : Me.i[Ne][Ve] + (Oe.i[Ne][Ve] - Me.i[Ne][Ve]) * Xe, we.i[Ne][Ve] = ze, ze = Le ? Me.o[Ne][Ve] : Me.o[Ne][Ve] + (Oe.o[Ne][Ve] - Me.o[Ne][Ve]) * Xe, we.o[Ne][Ve] = ze, ze = Le ? Me.v[Ne][Ve] : Me.v[Ne][Ve] + (Oe.v[Ne][Ve] - Me.v[Ne][Ve]) * Xe, we.v[Ne][Ve] = ze;
22304
22276
  }
22305
22277
  function I() {
22306
22278
  var Te = this.comp.renderedFrame - this.offsetTime, we = this.keyframes[0].t - this.offsetTime, Pe = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, Ie = this._caching.lastFrame;
@@ -22383,20 +22355,20 @@ var lottie$1 = { exports: {} };
22383
22355
  this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
22384
22356
  },
22385
22357
  convertStarToPath: function() {
22386
- var Pe = Math.floor(this.pt.v) * 2, Ie = Math.PI * 2 / Pe, Me = !0, Oe = this.or.v, Le = this.ir.v, Ne = this.os.v, Ve = this.is.v, Xe = 2 * Math.PI * Oe / (Pe * 2), Ue = 2 * Math.PI * Le / (Pe * 2), We, He, ze, je, $e = -Math.PI / 2;
22358
+ var Pe = Math.floor(this.pt.v) * 2, Ie = Math.PI * 2 / Pe, Me = !0, Oe = this.or.v, Le = this.ir.v, Ne = this.os.v, Ve = this.is.v, We = 2 * Math.PI * Oe / (Pe * 2), Ue = 2 * Math.PI * Le / (Pe * 2), Xe, ze, He, je, $e = -Math.PI / 2;
22387
22359
  $e += this.r.v;
22388
22360
  var De = this.data.d === 3 ? -1 : 1;
22389
- for (this.v._length = 0, We = 0; We < Pe; We += 1) {
22390
- He = Me ? Oe : Le, ze = Me ? Ne : Ve, je = Me ? Xe : Ue;
22391
- var Fe = He * Math.cos($e), ke = He * Math.sin($e), Ge = Fe === 0 && ke === 0 ? 0 : ke / Math.sqrt(Fe * Fe + ke * ke), Be = Fe === 0 && ke === 0 ? 0 : -Fe / Math.sqrt(Fe * Fe + ke * ke);
22392
- Fe += +this.p.v[0], ke += +this.p.v[1], this.v.setTripleAt(Fe, ke, Fe - Ge * je * ze * De, ke - Be * je * ze * De, Fe + Ge * je * ze * De, ke + Be * je * ze * De, We, !0), Me = !Me, $e += Ie * De;
22361
+ for (this.v._length = 0, Xe = 0; Xe < Pe; Xe += 1) {
22362
+ ze = Me ? Oe : Le, He = Me ? Ne : Ve, je = Me ? We : Ue;
22363
+ var Fe = ze * Math.cos($e), ke = ze * Math.sin($e), Ge = Fe === 0 && ke === 0 ? 0 : ke / Math.sqrt(Fe * Fe + ke * ke), Be = Fe === 0 && ke === 0 ? 0 : -Fe / Math.sqrt(Fe * Fe + ke * ke);
22364
+ Fe += +this.p.v[0], ke += +this.p.v[1], this.v.setTripleAt(Fe, ke, Fe - Ge * je * He * De, ke - Be * je * He * De, Fe + Ge * je * He * De, ke + Be * je * He * De, Xe, !0), Me = !Me, $e += Ie * De;
22393
22365
  }
22394
22366
  },
22395
22367
  convertPolygonToPath: function() {
22396
- var Pe = Math.floor(this.pt.v), Ie = Math.PI * 2 / Pe, Me = this.or.v, Oe = this.os.v, Le = 2 * Math.PI * Me / (Pe * 4), Ne, Ve = -Math.PI * 0.5, Xe = this.data.d === 3 ? -1 : 1;
22368
+ var Pe = Math.floor(this.pt.v), Ie = Math.PI * 2 / Pe, Me = this.or.v, Oe = this.os.v, Le = 2 * Math.PI * Me / (Pe * 4), Ne, Ve = -Math.PI * 0.5, We = this.data.d === 3 ? -1 : 1;
22397
22369
  for (Ve += this.r.v, this.v._length = 0, Ne = 0; Ne < Pe; Ne += 1) {
22398
- var Ue = Me * Math.cos(Ve), We = Me * Math.sin(Ve), He = Ue === 0 && We === 0 ? 0 : We / Math.sqrt(Ue * Ue + We * We), ze = Ue === 0 && We === 0 ? 0 : -Ue / Math.sqrt(Ue * Ue + We * We);
22399
- Ue += +this.p.v[0], We += +this.p.v[1], this.v.setTripleAt(Ue, We, Ue - He * Le * Oe * Xe, We - ze * Le * Oe * Xe, Ue + He * Le * Oe * Xe, We + ze * Le * Oe * Xe, Ne, !0), Ve += Ie * Xe;
22370
+ var Ue = Me * Math.cos(Ve), Xe = Me * Math.sin(Ve), ze = Ue === 0 && Xe === 0 ? 0 : Xe / Math.sqrt(Ue * Ue + Xe * Xe), He = Ue === 0 && Xe === 0 ? 0 : -Ue / Math.sqrt(Ue * Ue + Xe * Xe);
22371
+ Ue += +this.p.v[0], Xe += +this.p.v[1], this.v.setTripleAt(Ue, Xe, Ue - ze * Le * Oe * We, Xe - He * Le * Oe * We, Ue + ze * Le * Oe * We, Xe + He * Le * Oe * We, Ne, !0), Ve += Ie * We;
22400
22372
  }
22401
22373
  this.paths.length = 0, this.paths[0] = this.v;
22402
22374
  }
@@ -22484,18 +22456,18 @@ var lottie$1 = { exports: {} };
22484
22456
  function _e(Fe, ke, Ge) {
22485
22457
  return !Ge && Ge !== 0 && (Ge = 1), Fe === 1 && ke === 1 && Ge === 1 ? this : this._t(Fe, 0, 0, 0, 0, ke, 0, 0, 0, 0, Ge, 0, 0, 0, 0, 1);
22486
22458
  }
22487
- function Se(Fe, ke, Ge, Be, qe, Ke, Ye, Qe, Ze, it, at, st, Je, et, nt, rt) {
22488
- return this.props[0] = Fe, this.props[1] = ke, this.props[2] = Ge, this.props[3] = Be, this.props[4] = qe, this.props[5] = Ke, this.props[6] = Ye, this.props[7] = Qe, this.props[8] = Ze, this.props[9] = it, this.props[10] = at, this.props[11] = st, this.props[12] = Je, this.props[13] = et, this.props[14] = nt, this.props[15] = rt, this;
22459
+ function Se(Fe, ke, Ge, Be, qe, Ke, Ye, Qe, Ze, it, at, st, Je, et, rt, nt) {
22460
+ return this.props[0] = Fe, this.props[1] = ke, this.props[2] = Ge, this.props[3] = Be, this.props[4] = qe, this.props[5] = Ke, this.props[6] = Ye, this.props[7] = Qe, this.props[8] = Ze, this.props[9] = it, this.props[10] = at, this.props[11] = st, this.props[12] = Je, this.props[13] = et, this.props[14] = rt, this.props[15] = nt, this;
22489
22461
  }
22490
22462
  function Ee(Fe, ke, Ge) {
22491
22463
  return Ge = Ge || 0, Fe !== 0 || ke !== 0 || Ge !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, Fe, ke, Ge, 1) : this;
22492
22464
  }
22493
- function Ae(Fe, ke, Ge, Be, qe, Ke, Ye, Qe, Ze, it, at, st, Je, et, nt, rt) {
22465
+ function Ae(Fe, ke, Ge, Be, qe, Ke, Ye, Qe, Ze, it, at, st, Je, et, rt, nt) {
22494
22466
  var tt = this.props;
22495
22467
  if (Fe === 1 && ke === 0 && Ge === 0 && Be === 0 && qe === 0 && Ke === 1 && Ye === 0 && Qe === 0 && Ze === 0 && it === 0 && at === 1 && st === 0)
22496
- return tt[12] = tt[12] * Fe + tt[15] * Je, tt[13] = tt[13] * Ke + tt[15] * et, tt[14] = tt[14] * at + tt[15] * nt, tt[15] *= rt, this._identityCalculated = !1, this;
22497
- var ot = tt[0], ut = tt[1], mt = tt[2], pt = tt[3], yt = tt[4], gt = tt[5], _t = tt[6], Pt = tt[7], It = tt[8], St = tt[9], Lt = tt[10], At = tt[11], kt = tt[12], Mt = tt[13], qt = tt[14], Vt = tt[15];
22498
- return tt[0] = ot * Fe + ut * qe + mt * Ze + pt * Je, tt[1] = ot * ke + ut * Ke + mt * it + pt * et, tt[2] = ot * Ge + ut * Ye + mt * at + pt * nt, tt[3] = ot * Be + ut * Qe + mt * st + pt * rt, tt[4] = yt * Fe + gt * qe + _t * Ze + Pt * Je, tt[5] = yt * ke + gt * Ke + _t * it + Pt * et, tt[6] = yt * Ge + gt * Ye + _t * at + Pt * nt, tt[7] = yt * Be + gt * Qe + _t * st + Pt * rt, tt[8] = It * Fe + St * qe + Lt * Ze + At * Je, tt[9] = It * ke + St * Ke + Lt * it + At * et, tt[10] = It * Ge + St * Ye + Lt * at + At * nt, tt[11] = It * Be + St * Qe + Lt * st + At * rt, tt[12] = kt * Fe + Mt * qe + qt * Ze + Vt * Je, tt[13] = kt * ke + Mt * Ke + qt * it + Vt * et, tt[14] = kt * Ge + Mt * Ye + qt * at + Vt * nt, tt[15] = kt * Be + Mt * Qe + qt * st + Vt * rt, this._identityCalculated = !1, this;
22468
+ return tt[12] = tt[12] * Fe + tt[15] * Je, tt[13] = tt[13] * Ke + tt[15] * et, tt[14] = tt[14] * at + tt[15] * rt, tt[15] *= nt, this._identityCalculated = !1, this;
22469
+ var ot = tt[0], ut = tt[1], mt = tt[2], pt = tt[3], gt = tt[4], bt = tt[5], yt = tt[6], Pt = tt[7], It = tt[8], St = tt[9], Lt = tt[10], At = tt[11], kt = tt[12], Mt = tt[13], qt = tt[14], Vt = tt[15];
22470
+ return tt[0] = ot * Fe + ut * qe + mt * Ze + pt * Je, tt[1] = ot * ke + ut * Ke + mt * it + pt * et, tt[2] = ot * Ge + ut * Ye + mt * at + pt * rt, tt[3] = ot * Be + ut * Qe + mt * st + pt * nt, tt[4] = gt * Fe + bt * qe + yt * Ze + Pt * Je, tt[5] = gt * ke + bt * Ke + yt * it + Pt * et, tt[6] = gt * Ge + bt * Ye + yt * at + Pt * rt, tt[7] = gt * Be + bt * Qe + yt * st + Pt * nt, tt[8] = It * Fe + St * qe + Lt * Ze + At * Je, tt[9] = It * ke + St * Ke + Lt * it + At * et, tt[10] = It * Ge + St * Ye + Lt * at + At * rt, tt[11] = It * Be + St * Qe + Lt * st + At * nt, tt[12] = kt * Fe + Mt * qe + qt * Ze + Vt * Je, tt[13] = kt * ke + Mt * Ke + qt * it + Vt * et, tt[14] = kt * Ge + Mt * Ye + qt * at + Vt * rt, tt[15] = kt * Be + Mt * Qe + qt * st + Vt * nt, this._identityCalculated = !1, this;
22499
22471
  }
22500
22472
  function Re(Fe) {
22501
22473
  var ke = Fe.props;
@@ -22543,17 +22515,17 @@ var lottie$1 = { exports: {} };
22543
22515
  var Fe = this.props[0] * this.props[5] - this.props[1] * this.props[4], ke = this.props[5] / Fe, Ge = -this.props[1] / Fe, Be = -this.props[4] / Fe, qe = this.props[0] / Fe, Ke = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / Fe, Ye = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / Fe, Qe = new Matrix();
22544
22516
  return Qe.props[0] = ke, Qe.props[1] = Ge, Qe.props[4] = Be, Qe.props[5] = qe, Qe.props[12] = Ke, Qe.props[13] = Ye, Qe;
22545
22517
  }
22546
- function Xe(Fe) {
22518
+ function We(Fe) {
22547
22519
  var ke = this.getInverseMatrix();
22548
22520
  return ke.applyToPointArray(Fe[0], Fe[1], Fe[2] || 0);
22549
22521
  }
22550
22522
  function Ue(Fe) {
22551
22523
  var ke, Ge = Fe.length, Be = [];
22552
22524
  for (ke = 0; ke < Ge; ke += 1)
22553
- Be[ke] = Xe(Fe[ke]);
22525
+ Be[ke] = We(Fe[ke]);
22554
22526
  return Be;
22555
22527
  }
22556
- function We(Fe, ke, Ge) {
22528
+ function Xe(Fe, ke, Ge) {
22557
22529
  var Be = createTypedArray("float32", 6);
22558
22530
  if (this.isIdentity())
22559
22531
  Be[0] = Fe[0], Be[1] = Fe[1], Be[2] = ke[0], Be[3] = ke[1], Be[4] = Ge[0], Be[5] = Ge[1];
@@ -22563,11 +22535,11 @@ var lottie$1 = { exports: {} };
22563
22535
  }
22564
22536
  return Be;
22565
22537
  }
22566
- function He(Fe, ke, Ge) {
22538
+ function ze(Fe, ke, Ge) {
22567
22539
  var Be;
22568
22540
  return this.isIdentity() ? Be = [Fe, ke, Ge] : Be = [Fe * this.props[0] + ke * this.props[4] + Ge * this.props[8] + this.props[12], Fe * this.props[1] + ke * this.props[5] + Ge * this.props[9] + this.props[13], Fe * this.props[2] + ke * this.props[6] + Ge * this.props[10] + this.props[14]], Be;
22569
22541
  }
22570
- function ze(Fe, ke) {
22542
+ function He(Fe, ke) {
22571
22543
  if (this.isIdentity())
22572
22544
  return Fe + "," + ke;
22573
22545
  var Ge = this.props;
@@ -22587,7 +22559,7 @@ var lottie$1 = { exports: {} };
22587
22559
  return "matrix(" + ke + "," + Ge + "," + Be + "," + qe + "," + Ke + "," + Ye + ")";
22588
22560
  }
22589
22561
  return function() {
22590
- this.reset = U, this.rotate = V, this.rotateX = X, this.rotateY = Y, this.rotateZ = K, this.skew = xe, this.skewFromAxis = Z, this.shear = J, this.scale = _e, this.setTransform = Se, this.translate = Ee, this.transform = Ae, this.multiply = Re, this.applyToPoint = Me, this.applyToX = Oe, this.applyToY = Le, this.applyToZ = Ne, this.applyToPointArray = He, this.applyToTriplePoints = We, this.applyToPointStringified = ze, this.toCSS = je, this.to2dCSS = De, this.clone = Pe, this.cloneFromProps = Ie, this.equals = we, this.inversePoints = Ue, this.inversePoint = Xe, this.getInverseMatrix = Ve, this._t = this.transform, this.isIdentity = Te, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
22562
+ this.reset = U, this.rotate = V, this.rotateX = X, this.rotateY = Y, this.rotateZ = K, this.skew = xe, this.skewFromAxis = Z, this.shear = J, this.scale = _e, this.setTransform = Se, this.translate = Ee, this.transform = Ae, this.multiply = Re, this.applyToPoint = Me, this.applyToX = Oe, this.applyToY = Le, this.applyToZ = Ne, this.applyToPointArray = ze, this.applyToTriplePoints = Xe, this.applyToPointStringified = He, this.toCSS = je, this.to2dCSS = De, this.clone = Pe, this.cloneFromProps = Ie, this.equals = we, this.inversePoints = Ue, this.inversePoint = We, this.getInverseMatrix = Ve, this._t = this.transform, this.isIdentity = Te, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
22591
22563
  };
22592
22564
  }();
22593
22565
  function _typeof$3(C) {
@@ -23565,13 +23537,13 @@ var lottie$1 = { exports: {} };
23565
23537
  var De = Me($e);
23566
23538
  return De >= J && De <= xe;
23567
23539
  }
23568
- function Xe($e) {
23540
+ function We($e) {
23569
23541
  return Ve($e.substr(0, 2)) && Ve($e.substr(2, 2));
23570
23542
  }
23571
23543
  function Ue($e) {
23572
23544
  return I.indexOf($e) !== -1;
23573
23545
  }
23574
- function We($e, De) {
23546
+ function Xe($e, De) {
23575
23547
  var Fe = Me($e.substr(De, 2));
23576
23548
  if (Fe !== B)
23577
23549
  return !1;
@@ -23583,13 +23555,13 @@ var lottie$1 = { exports: {} };
23583
23555
  }
23584
23556
  return Me($e.substr(De, 2)) === U;
23585
23557
  }
23586
- function He() {
23558
+ function ze() {
23587
23559
  this.isLoaded = !0;
23588
23560
  }
23589
- var ze = function() {
23561
+ var He = function() {
23590
23562
  this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
23591
23563
  };
23592
- ze.isModifier = Oe, ze.isZeroWidthJoiner = Le, ze.isFlagEmoji = Xe, ze.isRegionalCode = Ve, ze.isCombinedCharacter = Ue, ze.isRegionalFlag = We, ze.isVariationSelector = Ne, ze.BLACK_FLAG_CODE_POINT = B;
23564
+ He.isModifier = Oe, He.isZeroWidthJoiner = Le, He.isFlagEmoji = We, He.isRegionalCode = Ve, He.isCombinedCharacter = Ue, He.isRegionalFlag = Xe, He.isVariationSelector = Ne, He.BLACK_FLAG_CODE_POINT = B;
23593
23565
  var je = {
23594
23566
  addChars: Te,
23595
23567
  addFonts: Re,
@@ -23597,9 +23569,9 @@ var lottie$1 = { exports: {} };
23597
23569
  getFontByName: Ie,
23598
23570
  measureText: Pe,
23599
23571
  checkLoadedFonts: Ee,
23600
- setIsLoaded: He
23572
+ setIsLoaded: ze
23601
23573
  };
23602
- return ze.prototype = je, ze;
23574
+ return He.prototype = je, He;
23603
23575
  }();
23604
23576
  function SlotManager(C) {
23605
23577
  this.animationData = C;
@@ -24593,9 +24565,9 @@ var lottie$1 = { exports: {} };
24593
24565
  Ne = Me[Oe], Ne.setAttribute("offset", Ve[Oe * 4] + "%"), Ne.setAttribute("stop-color", "rgb(" + Ve[Oe * 4 + 1] + "," + Ve[Oe * 4 + 2] + "," + Ve[Oe * 4 + 3] + ")");
24594
24566
  }
24595
24567
  if (Ae && (_e.g._omdf || Se)) {
24596
- var Xe = _e.g.o;
24568
+ var We = _e.g.o;
24597
24569
  for (_e.g._collapsable ? Me = _e.cst : Me = _e.ost, Le = Me.length, Oe = 0; Oe < Le; Oe += 1)
24598
- Ne = Me[Oe], _e.g._collapsable || Ne.setAttribute("offset", Xe[Oe * 2] + "%"), Ne.setAttribute("stop-opacity", Xe[Oe * 2 + 1]);
24570
+ Ne = Me[Oe], _e.g._collapsable || Ne.setAttribute("offset", We[Oe * 2] + "%"), Ne.setAttribute("stop-opacity", We[Oe * 2 + 1]);
24599
24571
  }
24600
24572
  if (Z.t === 1)
24601
24573
  (_e.e._mdf || Se) && (Ee.setAttribute("x2", Te[0]), Ee.setAttribute("y2", Te[1]), Ae && !_e.g._collapsable && (_e.of.setAttribute("x2", Te[0]), _e.of.setAttribute("y2", Te[1])));
@@ -24603,9 +24575,9 @@ var lottie$1 = { exports: {} };
24603
24575
  var Ue;
24604
24576
  if ((_e.s._mdf || _e.e._mdf || Se) && (Ue = Math.sqrt(Math.pow(Re[0] - Te[0], 2) + Math.pow(Re[1] - Te[1], 2)), Ee.setAttribute("r", Ue), Ae && !_e.g._collapsable && _e.of.setAttribute("r", Ue)), _e.e._mdf || _e.h._mdf || _e.a._mdf || Se) {
24605
24577
  Ue || (Ue = Math.sqrt(Math.pow(Re[0] - Te[0], 2) + Math.pow(Re[1] - Te[1], 2)));
24606
- var We = Math.atan2(Te[1] - Re[1], Te[0] - Re[0]), He = _e.h.v;
24607
- He >= 1 ? He = 0.99 : He <= -1 && (He = -0.99);
24608
- var ze = Ue * He, je = Math.cos(We + _e.a.v) * ze + Re[0], $e = Math.sin(We + _e.a.v) * ze + Re[1];
24578
+ var Xe = Math.atan2(Te[1] - Re[1], Te[0] - Re[0]), ze = _e.h.v;
24579
+ ze >= 1 ? ze = 0.99 : ze <= -1 && (ze = -0.99);
24580
+ var He = Ue * ze, je = Math.cos(Xe + _e.a.v) * He + Re[0], $e = Math.sin(Xe + _e.a.v) * He + Re[1];
24609
24581
  Ee.setAttribute("fx", je), Ee.setAttribute("fy", $e), Ae && !_e.g._collapsable && (_e.of.setAttribute("fx", je), _e.of.setAttribute("fy", $e));
24610
24582
  }
24611
24583
  }
@@ -24801,17 +24773,17 @@ var lottie$1 = { exports: {} };
24801
24773
  C.fWeight = Me.weight, C.fStyle = Me.style, C.finalSize = C.s, C.finalText = this.buildFinalText(C.t), V = C.finalText.length, C.finalLineHeight = C.lh;
24802
24774
  var Oe = C.tr / 1e3 * C.finalSize, Le;
24803
24775
  if (C.sz)
24804
- for (var Ne = !0, Ve = C.sz[0], Xe = C.sz[1], Ue, We; Ne; ) {
24805
- We = this.buildFinalText(C.t), Ue = 0, Ee = 0, V = We.length, Oe = C.tr / 1e3 * C.finalSize;
24806
- var He = -1;
24776
+ for (var Ne = !0, Ve = C.sz[0], We = C.sz[1], Ue, Xe; Ne; ) {
24777
+ Xe = this.buildFinalText(C.t), Ue = 0, Ee = 0, V = Xe.length, Oe = C.tr / 1e3 * C.finalSize;
24778
+ var ze = -1;
24807
24779
  for (U = 0; U < V; U += 1)
24808
- Le = We[U].charCodeAt(0), X = !1, We[U] === " " ? He = U : (Le === 13 || Le === 3) && (Ee = 0, X = !0, Ue += C.finalLineHeight || C.finalSize * 1.2), E.chars ? (Pe = E.getCharData(We[U], we.fStyle, we.fFamily), Ie = X ? 0 : Pe.w * C.finalSize / 100) : Ie = E.measureText(We[U], C.f, C.finalSize), Ee + Ie > Ve && We[U] !== " " ? (He === -1 ? V += 1 : U = He, Ue += C.finalLineHeight || C.finalSize * 1.2, We.splice(U, He === U ? 1 : 0, "\r"), He = -1, Ee = 0) : (Ee += Ie, Ee += Oe);
24809
- Ue += we.ascent * C.finalSize / 100, this.canResize && C.finalSize > this.minimumFontSize && Xe < Ue ? (C.finalSize -= 1, C.finalLineHeight = C.finalSize * C.lh / C.s) : (C.finalText = We, V = C.finalText.length, Ne = !1);
24780
+ Le = Xe[U].charCodeAt(0), X = !1, Xe[U] === " " ? ze = U : (Le === 13 || Le === 3) && (Ee = 0, X = !0, Ue += C.finalLineHeight || C.finalSize * 1.2), E.chars ? (Pe = E.getCharData(Xe[U], we.fStyle, we.fFamily), Ie = X ? 0 : Pe.w * C.finalSize / 100) : Ie = E.measureText(Xe[U], C.f, C.finalSize), Ee + Ie > Ve && Xe[U] !== " " ? (ze === -1 ? V += 1 : U = ze, Ue += C.finalLineHeight || C.finalSize * 1.2, Xe.splice(U, ze === U ? 1 : 0, "\r"), ze = -1, Ee = 0) : (Ee += Ie, Ee += Oe);
24781
+ Ue += we.ascent * C.finalSize / 100, this.canResize && C.finalSize > this.minimumFontSize && We < Ue ? (C.finalSize -= 1, C.finalLineHeight = C.finalSize * C.lh / C.s) : (C.finalText = Xe, V = C.finalText.length, Ne = !1);
24810
24782
  }
24811
24783
  Ee = -Oe, Ie = 0;
24812
- var ze = 0, je;
24784
+ var He = 0, je;
24813
24785
  for (U = 0; U < V; U += 1)
24814
- if (X = !1, je = C.finalText[U], Le = je.charCodeAt(0), Le === 13 || Le === 3 ? (ze = 0, Se.push(Ee), Ae = Ee > Ae ? Ee : Ae, Ee = -2 * Oe, K = "", X = !0, _e += 1) : K = je, E.chars ? (Pe = E.getCharData(je, we.fStyle, E.getFontByName(C.f).fFamily), Ie = X ? 0 : Pe.w * C.finalSize / 100) : Ie = E.measureText(K, C.f, C.finalSize), je === " " ? ze += Ie + Oe : (Ee += Ie + Oe + ze, ze = 0), B.push({
24786
+ if (X = !1, je = C.finalText[U], Le = je.charCodeAt(0), Le === 13 || Le === 3 ? (He = 0, Se.push(Ee), Ae = Ee > Ae ? Ee : Ae, Ee = -2 * Oe, K = "", X = !0, _e += 1) : K = je, E.chars ? (Pe = E.getCharData(je, we.fStyle, E.getFontByName(C.f).fFamily), Ie = X ? 0 : Pe.w * C.finalSize / 100) : Ie = E.measureText(K, C.f, C.finalSize), je === " " ? He += Ie + Oe : (Ee += Ie + Oe + He, He = 0), B.push({
24815
24787
  l: Ie,
24816
24788
  an: Ie,
24817
24789
  add: xe,
@@ -24982,18 +24954,18 @@ var lottie$1 = { exports: {} };
24982
24954
  }, TextAnimatorProperty.prototype.getMeasures = function(C, E) {
24983
24955
  if (this.lettersChangedFlag = E, !(!this._mdf && !this._isFirstFrame && !E && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
24984
24956
  this._isFirstFrame = !1;
24985
- var I = this._moreOptions.alignment.v, B = this._animatorsData, U = this._textData, V = this.mHelper, X = this._renderType, Y = this.renderedLetters.length, K, J, xe, Z, _e = C.l, Se, Ee, Ae, Re, Te, we, Pe, Ie, Me, Oe, Le, Ne, Ve, Xe, Ue;
24957
+ var I = this._moreOptions.alignment.v, B = this._animatorsData, U = this._textData, V = this.mHelper, X = this._renderType, Y = this.renderedLetters.length, K, J, xe, Z, _e = C.l, Se, Ee, Ae, Re, Te, we, Pe, Ie, Me, Oe, Le, Ne, Ve, We, Ue;
24986
24958
  if (this._hasMaskedPath) {
24987
24959
  if (Ue = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
24988
- var We = Ue.v;
24989
- this._pathData.r.v && (We = We.reverse()), Se = {
24960
+ var Xe = Ue.v;
24961
+ this._pathData.r.v && (Xe = Xe.reverse()), Se = {
24990
24962
  tLength: 0,
24991
24963
  segments: []
24992
- }, Z = We._length - 1;
24993
- var He;
24964
+ }, Z = Xe._length - 1;
24965
+ var ze;
24994
24966
  for (Ne = 0, xe = 0; xe < Z; xe += 1)
24995
- He = bez.buildBezierData(We.v[xe], We.v[xe + 1], [We.o[xe][0] - We.v[xe][0], We.o[xe][1] - We.v[xe][1]], [We.i[xe + 1][0] - We.v[xe + 1][0], We.i[xe + 1][1] - We.v[xe + 1][1]]), Se.tLength += He.segmentLength, Se.segments.push(He), Ne += He.segmentLength;
24996
- xe = Z, Ue.v.c && (He = bez.buildBezierData(We.v[xe], We.v[0], [We.o[xe][0] - We.v[xe][0], We.o[xe][1] - We.v[xe][1]], [We.i[0][0] - We.v[0][0], We.i[0][1] - We.v[0][1]]), Se.tLength += He.segmentLength, Se.segments.push(He), Ne += He.segmentLength), this._pathData.pi = Se;
24967
+ ze = bez.buildBezierData(Xe.v[xe], Xe.v[xe + 1], [Xe.o[xe][0] - Xe.v[xe][0], Xe.o[xe][1] - Xe.v[xe][1]], [Xe.i[xe + 1][0] - Xe.v[xe + 1][0], Xe.i[xe + 1][1] - Xe.v[xe + 1][1]]), Se.tLength += ze.segmentLength, Se.segments.push(ze), Ne += ze.segmentLength;
24968
+ xe = Z, Ue.v.c && (ze = bez.buildBezierData(Xe.v[xe], Xe.v[0], [Xe.o[xe][0] - Xe.v[xe][0], Xe.o[xe][1] - Xe.v[xe][1]], [Xe.i[0][0] - Xe.v[0][0], Xe.i[0][1] - Xe.v[0][1]]), Se.tLength += ze.segmentLength, Se.segments.push(ze), Ne += ze.segmentLength), this._pathData.pi = Se;
24997
24969
  }
24998
24970
  if (Se = this._pathData.pi, Ee = this._pathData.f.v, Pe = 0, we = 1, Re = 0, Te = !0, Oe = Se.segments, Ee < 0 && Ue.v.c)
24999
24971
  for (Se.tLength < Math.abs(Ee) && (Ee = -Math.abs(Ee) % Se.tLength), Pe = Oe.length - 1, Me = Oe[Pe].points, we = Me.length - 1; Ee < 0; )
@@ -25001,27 +24973,27 @@ var lottie$1 = { exports: {} };
25001
24973
  Me = Oe[Pe].points, Ie = Me[we - 1], Ae = Me[we], Le = Ae.partialLength;
25002
24974
  }
25003
24975
  Z = _e.length, K = 0, J = 0;
25004
- var ze = C.finalSize * 1.2 * 0.714, je = !0, $e, De, Fe, ke, Ge;
24976
+ var He = C.finalSize * 1.2 * 0.714, je = !0, $e, De, Fe, ke, Ge;
25005
24977
  ke = B.length;
25006
- var Be, qe = -1, Ke, Ye, Qe, Ze = Ee, it = Pe, at = we, st = -1, Je, et, nt, rt, tt, ot, ut, mt, pt = "", yt = this.defaultPropsArray, gt;
24978
+ var Be, qe = -1, Ke, Ye, Qe, Ze = Ee, it = Pe, at = we, st = -1, Je, et, rt, nt, tt, ot, ut, mt, pt = "", gt = this.defaultPropsArray, bt;
25007
24979
  if (C.j === 2 || C.j === 1) {
25008
- var _t = 0, Pt = 0, It = C.j === 2 ? -0.5 : -1, St = 0, Lt = !0;
24980
+ var yt = 0, Pt = 0, It = C.j === 2 ? -0.5 : -1, St = 0, Lt = !0;
25009
24981
  for (xe = 0; xe < Z; xe += 1)
25010
24982
  if (_e[xe].n) {
25011
- for (_t && (_t += Pt); St < xe; )
25012
- _e[St].animatorJustifyOffset = _t, St += 1;
25013
- _t = 0, Lt = !0;
24983
+ for (yt && (yt += Pt); St < xe; )
24984
+ _e[St].animatorJustifyOffset = yt, St += 1;
24985
+ yt = 0, Lt = !0;
25014
24986
  } else {
25015
24987
  for (Fe = 0; Fe < ke; Fe += 1)
25016
- $e = B[Fe].a, $e.t.propType && (Lt && C.j === 2 && (Pt += $e.t.v * It), De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), Be.length ? _t += $e.t.v * Be[0] * It : _t += $e.t.v * Be * It);
24988
+ $e = B[Fe].a, $e.t.propType && (Lt && C.j === 2 && (Pt += $e.t.v * It), De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), Be.length ? yt += $e.t.v * Be[0] * It : yt += $e.t.v * Be * It);
25017
24989
  Lt = !1;
25018
24990
  }
25019
- for (_t && (_t += Pt); St < xe; )
25020
- _e[St].animatorJustifyOffset = _t, St += 1;
24991
+ for (yt && (yt += Pt); St < xe; )
24992
+ _e[St].animatorJustifyOffset = yt, St += 1;
25021
24993
  }
25022
24994
  for (xe = 0; xe < Z; xe += 1) {
25023
24995
  if (V.reset(), Je = 1, _e[xe].n)
25024
- K = 0, J += C.yOffset, J += je ? 1 : 0, Ee = Ze, je = !1, this._hasMaskedPath && (Pe = it, we = at, Me = Oe[Pe].points, Ie = Me[we - 1], Ae = Me[we], Le = Ae.partialLength, Re = 0), pt = "", mt = "", ot = "", gt = "", yt = this.defaultPropsArray;
24996
+ K = 0, J += C.yOffset, J += je ? 1 : 0, Ee = Ze, je = !1, this._hasMaskedPath && (Pe = it, we = at, Me = Oe[Pe].points, Ie = Me[we - 1], Ae = Me[we], Le = Ae.partialLength, Re = 0), pt = "", mt = "", ot = "", bt = "", gt = this.defaultPropsArray;
25025
24997
  else {
25026
24998
  if (this._hasMaskedPath) {
25027
24999
  if (st !== _e[xe].line) {
@@ -25040,33 +25012,33 @@ var lottie$1 = { exports: {} };
25040
25012
  for (Fe = 0; Fe < ke; Fe += 1)
25041
25013
  $e = B[Fe].a, $e.p.propType && (De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), Be.length ? At += $e.p.v[0] * Be[0] : At += $e.p.v[0] * Be), $e.a.propType && (De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), Be.length ? At += $e.a.v[0] * Be[0] : At += $e.a.v[0] * Be);
25042
25014
  for (Te = !0, this._pathData.a.v && (Ee = _e[0].an * 0.5 + (Ne - this._pathData.f.v - _e[0].an * 0.5 - _e[_e.length - 1].an * 0.5) * qe / (Z - 1), Ee += this._pathData.f.v); Te; )
25043
- Re + Le >= Ee + At || !Me ? (Ve = (Ee + At - Re) / Ae.partialLength, Ye = Ie.point[0] + (Ae.point[0] - Ie.point[0]) * Ve, Qe = Ie.point[1] + (Ae.point[1] - Ie.point[1]) * Ve, V.translate(-I[0] * _e[xe].an * 5e-3, -(I[1] * ze) * 0.01), Te = !1) : Me && (Re += Ae.partialLength, we += 1, we >= Me.length && (we = 0, Pe += 1, Oe[Pe] ? Me = Oe[Pe].points : Ue.v.c ? (we = 0, Pe = 0, Me = Oe[Pe].points) : (Re -= Ae.partialLength, Me = null)), Me && (Ie = Ae, Ae = Me[we], Le = Ae.partialLength));
25015
+ Re + Le >= Ee + At || !Me ? (Ve = (Ee + At - Re) / Ae.partialLength, Ye = Ie.point[0] + (Ae.point[0] - Ie.point[0]) * Ve, Qe = Ie.point[1] + (Ae.point[1] - Ie.point[1]) * Ve, V.translate(-I[0] * _e[xe].an * 5e-3, -(I[1] * He) * 0.01), Te = !1) : Me && (Re += Ae.partialLength, we += 1, we >= Me.length && (we = 0, Pe += 1, Oe[Pe] ? Me = Oe[Pe].points : Ue.v.c ? (we = 0, Pe = 0, Me = Oe[Pe].points) : (Re -= Ae.partialLength, Me = null)), Me && (Ie = Ae, Ae = Me[we], Le = Ae.partialLength));
25044
25016
  Ke = _e[xe].an / 2 - _e[xe].add, V.translate(-Ke, 0, 0);
25045
25017
  } else
25046
- Ke = _e[xe].an / 2 - _e[xe].add, V.translate(-Ke, 0, 0), V.translate(-I[0] * _e[xe].an * 5e-3, -I[1] * ze * 0.01, 0);
25018
+ Ke = _e[xe].an / 2 - _e[xe].add, V.translate(-Ke, 0, 0), V.translate(-I[0] * _e[xe].an * 5e-3, -I[1] * He * 0.01, 0);
25047
25019
  for (Fe = 0; Fe < ke; Fe += 1)
25048
25020
  $e = B[Fe].a, $e.t.propType && (De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), (K !== 0 || C.j !== 0) && (this._hasMaskedPath ? Be.length ? Ee += $e.t.v * Be[0] : Ee += $e.t.v * Be : Be.length ? K += $e.t.v * Be[0] : K += $e.t.v * Be));
25049
- for (C.strokeWidthAnim && (nt = C.sw || 0), C.strokeColorAnim && (C.sc ? et = [C.sc[0], C.sc[1], C.sc[2]] : et = [0, 0, 0]), C.fillColorAnim && C.fc && (rt = [C.fc[0], C.fc[1], C.fc[2]]), Fe = 0; Fe < ke; Fe += 1)
25021
+ for (C.strokeWidthAnim && (rt = C.sw || 0), C.strokeColorAnim && (C.sc ? et = [C.sc[0], C.sc[1], C.sc[2]] : et = [0, 0, 0]), C.fillColorAnim && C.fc && (nt = [C.fc[0], C.fc[1], C.fc[2]]), Fe = 0; Fe < ke; Fe += 1)
25050
25022
  $e = B[Fe].a, $e.a.propType && (De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), Be.length ? V.translate(-$e.a.v[0] * Be[0], -$e.a.v[1] * Be[1], $e.a.v[2] * Be[2]) : V.translate(-$e.a.v[0] * Be, -$e.a.v[1] * Be, $e.a.v[2] * Be));
25051
25023
  for (Fe = 0; Fe < ke; Fe += 1)
25052
25024
  $e = B[Fe].a, $e.s.propType && (De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), Be.length ? V.scale(1 + ($e.s.v[0] - 1) * Be[0], 1 + ($e.s.v[1] - 1) * Be[1], 1) : V.scale(1 + ($e.s.v[0] - 1) * Be, 1 + ($e.s.v[1] - 1) * Be, 1));
25053
25025
  for (Fe = 0; Fe < ke; Fe += 1) {
25054
- if ($e = B[Fe].a, De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), $e.sk.propType && (Be.length ? V.skewFromAxis(-$e.sk.v * Be[0], $e.sa.v * Be[1]) : V.skewFromAxis(-$e.sk.v * Be, $e.sa.v * Be)), $e.r.propType && (Be.length ? V.rotateZ(-$e.r.v * Be[2]) : V.rotateZ(-$e.r.v * Be)), $e.ry.propType && (Be.length ? V.rotateY($e.ry.v * Be[1]) : V.rotateY($e.ry.v * Be)), $e.rx.propType && (Be.length ? V.rotateX($e.rx.v * Be[0]) : V.rotateX($e.rx.v * Be)), $e.o.propType && (Be.length ? Je += ($e.o.v * Be[0] - Je) * Be[0] : Je += ($e.o.v * Be - Je) * Be), C.strokeWidthAnim && $e.sw.propType && (Be.length ? nt += $e.sw.v * Be[0] : nt += $e.sw.v * Be), C.strokeColorAnim && $e.sc.propType)
25026
+ if ($e = B[Fe].a, De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), $e.sk.propType && (Be.length ? V.skewFromAxis(-$e.sk.v * Be[0], $e.sa.v * Be[1]) : V.skewFromAxis(-$e.sk.v * Be, $e.sa.v * Be)), $e.r.propType && (Be.length ? V.rotateZ(-$e.r.v * Be[2]) : V.rotateZ(-$e.r.v * Be)), $e.ry.propType && (Be.length ? V.rotateY($e.ry.v * Be[1]) : V.rotateY($e.ry.v * Be)), $e.rx.propType && (Be.length ? V.rotateX($e.rx.v * Be[0]) : V.rotateX($e.rx.v * Be)), $e.o.propType && (Be.length ? Je += ($e.o.v * Be[0] - Je) * Be[0] : Je += ($e.o.v * Be - Je) * Be), C.strokeWidthAnim && $e.sw.propType && (Be.length ? rt += $e.sw.v * Be[0] : rt += $e.sw.v * Be), C.strokeColorAnim && $e.sc.propType)
25055
25027
  for (tt = 0; tt < 3; tt += 1)
25056
25028
  Be.length ? et[tt] += ($e.sc.v[tt] - et[tt]) * Be[0] : et[tt] += ($e.sc.v[tt] - et[tt]) * Be;
25057
25029
  if (C.fillColorAnim && C.fc) {
25058
25030
  if ($e.fc.propType)
25059
25031
  for (tt = 0; tt < 3; tt += 1)
25060
- Be.length ? rt[tt] += ($e.fc.v[tt] - rt[tt]) * Be[0] : rt[tt] += ($e.fc.v[tt] - rt[tt]) * Be;
25061
- $e.fh.propType && (Be.length ? rt = addHueToRGB(rt, $e.fh.v * Be[0]) : rt = addHueToRGB(rt, $e.fh.v * Be)), $e.fs.propType && (Be.length ? rt = addSaturationToRGB(rt, $e.fs.v * Be[0]) : rt = addSaturationToRGB(rt, $e.fs.v * Be)), $e.fb.propType && (Be.length ? rt = addBrightnessToRGB(rt, $e.fb.v * Be[0]) : rt = addBrightnessToRGB(rt, $e.fb.v * Be));
25032
+ Be.length ? nt[tt] += ($e.fc.v[tt] - nt[tt]) * Be[0] : nt[tt] += ($e.fc.v[tt] - nt[tt]) * Be;
25033
+ $e.fh.propType && (Be.length ? nt = addHueToRGB(nt, $e.fh.v * Be[0]) : nt = addHueToRGB(nt, $e.fh.v * Be)), $e.fs.propType && (Be.length ? nt = addSaturationToRGB(nt, $e.fs.v * Be[0]) : nt = addSaturationToRGB(nt, $e.fs.v * Be)), $e.fb.propType && (Be.length ? nt = addBrightnessToRGB(nt, $e.fb.v * Be[0]) : nt = addBrightnessToRGB(nt, $e.fb.v * Be));
25062
25034
  }
25063
25035
  }
25064
25036
  for (Fe = 0; Fe < ke; Fe += 1)
25065
25037
  $e = B[Fe].a, $e.p.propType && (De = B[Fe].s, Be = De.getMult(_e[xe].anIndexes[Fe], U.a[Fe].s.totalChars), this._hasMaskedPath ? Be.length ? V.translate(0, $e.p.v[1] * Be[0], -$e.p.v[2] * Be[1]) : V.translate(0, $e.p.v[1] * Be, -$e.p.v[2] * Be) : Be.length ? V.translate($e.p.v[0] * Be[0], $e.p.v[1] * Be[1], -$e.p.v[2] * Be[2]) : V.translate($e.p.v[0] * Be, $e.p.v[1] * Be, -$e.p.v[2] * Be));
25066
- if (C.strokeWidthAnim && (ot = nt < 0 ? 0 : nt), C.strokeColorAnim && (ut = "rgb(" + Math.round(et[0] * 255) + "," + Math.round(et[1] * 255) + "," + Math.round(et[2] * 255) + ")"), C.fillColorAnim && C.fc && (mt = "rgb(" + Math.round(rt[0] * 255) + "," + Math.round(rt[1] * 255) + "," + Math.round(rt[2] * 255) + ")"), this._hasMaskedPath) {
25067
- if (V.translate(0, -C.ls), V.translate(0, I[1] * ze * 0.01 + J, 0), this._pathData.p.v) {
25068
- Xe = (Ae.point[1] - Ie.point[1]) / (Ae.point[0] - Ie.point[0]);
25069
- var kt = Math.atan(Xe) * 180 / Math.PI;
25038
+ if (C.strokeWidthAnim && (ot = rt < 0 ? 0 : rt), C.strokeColorAnim && (ut = "rgb(" + Math.round(et[0] * 255) + "," + Math.round(et[1] * 255) + "," + Math.round(et[2] * 255) + ")"), C.fillColorAnim && C.fc && (mt = "rgb(" + Math.round(nt[0] * 255) + "," + Math.round(nt[1] * 255) + "," + Math.round(nt[2] * 255) + ")"), this._hasMaskedPath) {
25039
+ if (V.translate(0, -C.ls), V.translate(0, I[1] * He * 0.01 + J, 0), this._pathData.p.v) {
25040
+ We = (Ae.point[1] - Ie.point[1]) / (Ae.point[0] - Ie.point[0]);
25041
+ var kt = Math.atan(We) * 180 / Math.PI;
25070
25042
  Ae.point[0] < Ie.point[0] && (kt += 180), V.rotate(-kt * Math.PI / 180);
25071
25043
  }
25072
25044
  V.translate(Ye, Qe, 0), Ee -= I[0] * _e[xe].an * 5e-3, _e[xe + 1] && qe !== _e[xe + 1].ind && (Ee += _e[xe].an / 2, Ee += C.tr * 1e-3 * C.finalSize);
@@ -25079,11 +25051,11 @@ var lottie$1 = { exports: {} };
25079
25051
  V.translate(_e[xe].animatorJustifyOffset + C.justifyOffset + (C.boxWidth - C.lineWidths[_e[xe].line]) / 2, 0, 0);
25080
25052
  break;
25081
25053
  }
25082
- V.translate(0, -C.ls), V.translate(Ke, 0, 0), V.translate(I[0] * _e[xe].an * 5e-3, I[1] * ze * 0.01, 0), K += _e[xe].l + C.tr * 1e-3 * C.finalSize;
25054
+ V.translate(0, -C.ls), V.translate(Ke, 0, 0), V.translate(I[0] * _e[xe].an * 5e-3, I[1] * He * 0.01, 0), K += _e[xe].l + C.tr * 1e-3 * C.finalSize;
25083
25055
  }
25084
- X === "html" ? pt = V.toCSS() : X === "svg" ? pt = V.to2dCSS() : yt = [V.props[0], V.props[1], V.props[2], V.props[3], V.props[4], V.props[5], V.props[6], V.props[7], V.props[8], V.props[9], V.props[10], V.props[11], V.props[12], V.props[13], V.props[14], V.props[15]], gt = Je;
25056
+ X === "html" ? pt = V.toCSS() : X === "svg" ? pt = V.to2dCSS() : gt = [V.props[0], V.props[1], V.props[2], V.props[3], V.props[4], V.props[5], V.props[6], V.props[7], V.props[8], V.props[9], V.props[10], V.props[11], V.props[12], V.props[13], V.props[14], V.props[15]], bt = Je;
25085
25057
  }
25086
- Y <= xe ? (Ge = new LetterProps(gt, ot, ut, mt, pt, yt), this.renderedLetters.push(Ge), Y += 1, this.lettersChangedFlag = !0) : (Ge = this.renderedLetters[xe], this.lettersChangedFlag = Ge.update(gt, ot, ut, mt, pt, yt) || this.lettersChangedFlag);
25058
+ Y <= xe ? (Ge = new LetterProps(bt, ot, ut, mt, pt, gt), this.renderedLetters.push(Ge), Y += 1, this.lettersChangedFlag = !0) : (Ge = this.renderedLetters[xe], this.lettersChangedFlag = Ge.update(bt, ot, ut, mt, pt, gt) || this.lettersChangedFlag);
25087
25059
  }
25088
25060
  }
25089
25061
  }, TextAnimatorProperty.prototype.getValue = function() {
@@ -26582,20 +26554,20 @@ var lottie$1 = { exports: {} };
26582
26554
  entropy: !0
26583
26555
  } : Ie || {};
26584
26556
  var Le = Re(Ae(Ie.entropy ? [Pe, we(C)] : Pe === null ? Te() : Pe, 3), Oe), Ne = new Se(Oe), Ve = function() {
26585
- for (var Ue = Ne.g(U), We = Y, He = 0; Ue < K; )
26586
- Ue = (Ue + He) * B, We *= B, He = Ne.g(1);
26557
+ for (var Ue = Ne.g(U), Xe = Y, ze = 0; Ue < K; )
26558
+ Ue = (Ue + ze) * B, Xe *= B, ze = Ne.g(1);
26587
26559
  for (; Ue >= J; )
26588
- Ue /= 2, We /= 2, He >>>= 1;
26589
- return (Ue + He) / We;
26560
+ Ue /= 2, Xe /= 2, ze >>>= 1;
26561
+ return (Ue + ze) / Xe;
26590
26562
  };
26591
26563
  return Ve.int32 = function() {
26592
26564
  return Ne.g(4) | 0;
26593
26565
  }, Ve.quick = function() {
26594
26566
  return Ne.g(4) / 4294967296;
26595
- }, Ve.double = Ve, Re(we(Ne.S), C), (Ie.pass || Me || function(Xe, Ue, We, He) {
26596
- return He && (He.S && Ee(He, Ne), Xe.state = function() {
26567
+ }, Ve.double = Ve, Re(we(Ne.S), C), (Ie.pass || Me || function(We, Ue, Xe, ze) {
26568
+ return ze && (ze.S && Ee(ze, Ne), We.state = function() {
26597
26569
  return Ee(Ne, {});
26598
- }), We ? (E[X] = Xe, Ue) : Xe;
26570
+ }), Xe ? (E[X] = We, Ue) : We;
26599
26571
  })(Ve, Le, "global" in Ie ? Ie.global : this == E, Ie.state);
26600
26572
  }
26601
26573
  E["seed" + X] = _e;
@@ -26605,10 +26577,10 @@ var lottie$1 = { exports: {} };
26605
26577
  Ve[Le] = Le++;
26606
26578
  for (Le = 0; Le < B; Le++)
26607
26579
  Ve[Le] = Ve[Ne = xe & Ne + Pe[Le % Me] + (Ie = Ve[Le])], Ve[Ne] = Ie;
26608
- Oe.g = function(Xe) {
26609
- for (var Ue, We = 0, He = Oe.i, ze = Oe.j, je = Oe.S; Xe--; )
26610
- Ue = je[He = xe & He + 1], We = We * B + je[xe & (je[He] = je[ze = xe & ze + Ue]) + (je[ze] = Ue)];
26611
- return Oe.i = He, Oe.j = ze, We;
26580
+ Oe.g = function(We) {
26581
+ for (var Ue, Xe = 0, ze = Oe.i, He = Oe.j, je = Oe.S; We--; )
26582
+ Ue = je[ze = xe & ze + 1], Xe = Xe * B + je[xe & (je[ze] = je[He = xe & He + Ue]) + (je[He] = Ue)];
26583
+ return Oe.i = ze, Oe.j = He, Xe;
26612
26584
  };
26613
26585
  }
26614
26586
  function Ee(Pe, Ie) {
@@ -27816,21 +27788,21 @@ var lottie$1 = { exports: {} };
27816
27788
  if (Le % 2 !== 0)
27817
27789
  return this.getValueAtTime((we - (Ae - Pe) % we + Pe) / this.comp.globalData.frameRate, 0);
27818
27790
  } else if (_e === "offset") {
27819
- var Ne = this.getValueAtTime(Pe / this.comp.globalData.frameRate, 0), Ve = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), Xe = this.getValueAtTime(((Ae - Pe) % we + Pe) / this.comp.globalData.frameRate, 0), Ue = Math.floor((Ae - Pe) / we);
27791
+ var Ne = this.getValueAtTime(Pe / this.comp.globalData.frameRate, 0), Ve = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), We = this.getValueAtTime(((Ae - Pe) % we + Pe) / this.comp.globalData.frameRate, 0), Ue = Math.floor((Ae - Pe) / we);
27820
27792
  if (this.pv.length) {
27821
27793
  for (Oe = new Array(Ne.length), Me = Oe.length, Ie = 0; Ie < Me; Ie += 1)
27822
- Oe[Ie] = (Ve[Ie] - Ne[Ie]) * Ue + Xe[Ie];
27794
+ Oe[Ie] = (Ve[Ie] - Ne[Ie]) * Ue + We[Ie];
27823
27795
  return Oe;
27824
27796
  }
27825
- return (Ve - Ne) * Ue + Xe;
27797
+ return (Ve - Ne) * Ue + We;
27826
27798
  } else if (_e === "continue") {
27827
- var We = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), He = this.getValueAtTime((Te - 1e-3) / this.comp.globalData.frameRate, 0);
27799
+ var Xe = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), ze = this.getValueAtTime((Te - 1e-3) / this.comp.globalData.frameRate, 0);
27828
27800
  if (this.pv.length) {
27829
- for (Oe = new Array(We.length), Me = Oe.length, Ie = 0; Ie < Me; Ie += 1)
27830
- Oe[Ie] = We[Ie] + (We[Ie] - He[Ie]) * ((Ae - Te) / this.comp.globalData.frameRate) / 5e-4;
27801
+ for (Oe = new Array(Xe.length), Me = Oe.length, Ie = 0; Ie < Me; Ie += 1)
27802
+ Oe[Ie] = Xe[Ie] + (Xe[Ie] - ze[Ie]) * ((Ae - Te) / this.comp.globalData.frameRate) / 5e-4;
27831
27803
  return Oe;
27832
27804
  }
27833
- return We + (We - He) * ((Ae - Te) / 1e-3);
27805
+ return Xe + (Xe - ze) * ((Ae - Te) / 1e-3);
27834
27806
  }
27835
27807
  return this.getValueAtTime(((Ae - Pe) % we + Pe) / this.comp.globalData.frameRate, 0);
27836
27808
  }
@@ -27849,21 +27821,21 @@ var lottie$1 = { exports: {} };
27849
27821
  if (Le % 2 === 0)
27850
27822
  return this.getValueAtTime(((Te - Ae) % we + Te) / this.comp.globalData.frameRate, 0);
27851
27823
  } else if (_e === "offset") {
27852
- var Ne = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), Ve = this.getValueAtTime(Pe / this.comp.globalData.frameRate, 0), Xe = this.getValueAtTime((we - (Te - Ae) % we + Te) / this.comp.globalData.frameRate, 0), Ue = Math.floor((Te - Ae) / we) + 1;
27824
+ var Ne = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), Ve = this.getValueAtTime(Pe / this.comp.globalData.frameRate, 0), We = this.getValueAtTime((we - (Te - Ae) % we + Te) / this.comp.globalData.frameRate, 0), Ue = Math.floor((Te - Ae) / we) + 1;
27853
27825
  if (this.pv.length) {
27854
27826
  for (Oe = new Array(Ne.length), Me = Oe.length, Ie = 0; Ie < Me; Ie += 1)
27855
- Oe[Ie] = Xe[Ie] - (Ve[Ie] - Ne[Ie]) * Ue;
27827
+ Oe[Ie] = We[Ie] - (Ve[Ie] - Ne[Ie]) * Ue;
27856
27828
  return Oe;
27857
27829
  }
27858
- return Xe - (Ve - Ne) * Ue;
27830
+ return We - (Ve - Ne) * Ue;
27859
27831
  } else if (_e === "continue") {
27860
- var We = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), He = this.getValueAtTime((Te + 1e-3) / this.comp.globalData.frameRate, 0);
27832
+ var Xe = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), ze = this.getValueAtTime((Te + 1e-3) / this.comp.globalData.frameRate, 0);
27861
27833
  if (this.pv.length) {
27862
- for (Oe = new Array(We.length), Me = Oe.length, Ie = 0; Ie < Me; Ie += 1)
27863
- Oe[Ie] = We[Ie] + (We[Ie] - He[Ie]) * (Te - Ae) / 1e-3;
27834
+ for (Oe = new Array(Xe.length), Me = Oe.length, Ie = 0; Ie < Me; Ie += 1)
27835
+ Oe[Ie] = Xe[Ie] + (Xe[Ie] - ze[Ie]) * (Te - Ae) / 1e-3;
27864
27836
  return Oe;
27865
27837
  }
27866
- return We + (We - He) * (Te - Ae) / 1e-3;
27838
+ return Xe + (Xe - ze) * (Te - Ae) / 1e-3;
27867
27839
  }
27868
27840
  return this.getValueAtTime((we - ((Te - Ae) % we + Te)) / this.comp.globalData.frameRate, 0);
27869
27841
  }
@@ -27921,8 +27893,8 @@ var lottie$1 = { exports: {} };
27921
27893
  } else
27922
27894
  Se.translate(Le * this.px.mult, Ne * this.py.mult, 0);
27923
27895
  } else {
27924
- var Xe = this.p.getValueAtTime(_e);
27925
- Se.translate(Xe[0] * this.p.mult, Xe[1] * this.p.mult, -Xe[2] * this.p.mult);
27896
+ var We = this.p.getValueAtTime(_e);
27897
+ Se.translate(We[0] * this.p.mult, We[1] * this.p.mult, -We[2] * this.p.mult);
27926
27898
  }
27927
27899
  return Se;
27928
27900
  }
@@ -28280,18 +28252,18 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
28280
28252
  visible: Ie,
28281
28253
  disabled: Me,
28282
28254
  loop: Oe = !1,
28283
- transformation: { x: Le, y: Ne, width: Ve, height: Xe, colorCorrection: Ue = {} },
28284
- pointerdown: We = () => {
28255
+ transformation: { x: Le, y: Ne, width: Ve, height: We, colorCorrection: Ue = {} },
28256
+ pointerdown: Xe = () => {
28285
28257
  },
28286
- pointerout: He = () => {
28258
+ pointerout: ze = () => {
28287
28259
  },
28288
- pointerover: ze = () => {
28260
+ pointerover: He = () => {
28289
28261
  }
28290
28262
  } = C, { tl: je } = useContext(GsapPixieContext);
28291
28263
  useCustomEventListener(Events.PAUSE, () => {
28292
28264
  J.current && J.current.pause();
28293
28265
  });
28294
- const { onPointerDown: $e, onPointerOut: De, onPointerOver: Fe } = useDebouncedPointerEvents(ze, We, He, 1), { blurRadius: ke = 0, vignette: Ge = 0, noise: Be = 0 } = Ue, {
28266
+ const { onPointerDown: $e, onPointerOut: De, onPointerOver: Fe } = useDebouncedPointerEvents(He, Xe, ze, 1), { blurRadius: ke = 0, vignette: Ge = 0, noise: Be = 0 } = Ue, {
28295
28267
  temperatureFilter: qe,
28296
28268
  sharpnessFilter: Ke,
28297
28269
  hueFilter: Ye,
@@ -28301,7 +28273,7 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
28301
28273
  noiseFilter: at
28302
28274
  } = withFiltersHook(Ue);
28303
28275
  React.useLayoutEffect(() => {
28304
- K.current = document.createElement("canvas"), K.current.setAttribute("id", "lottieContainersvg"), K.current.setAttribute("id", `${Ee}lottieContainer`), K.current.setAttribute("width", `${Ve}`), K.current.setAttribute("height", `${Xe}`);
28276
+ K.current = document.createElement("canvas"), K.current.setAttribute("id", "lottieContainersvg"), K.current.setAttribute("id", `${Ee}lottieContainer`), K.current.setAttribute("width", `${Ve}`), K.current.setAttribute("height", `${We}`);
28305
28277
  const Je = Se.current;
28306
28278
  return Je.appendChild(K.current), () => {
28307
28279
  K.current && Je.removeChild(K.current);
@@ -28326,10 +28298,10 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
28326
28298
  if (K.current && K.current.setAttribute("style", "display:none"), J.current && J.current.renderer.canvasContext) {
28327
28299
  const et = J.current.totalFrames;
28328
28300
  Z.current.totalFrames = et;
28329
- const nt = J.current.getDuration();
28330
- Z.current.totalDuration = nt;
28331
- const rt = J.current.renderer.canvasContext.canvas, tt = PIXI.Texture.from(rt);
28332
- _e.current = tt, V(!0), B(nt);
28301
+ const rt = J.current.getDuration();
28302
+ Z.current.totalDuration = rt;
28303
+ const nt = J.current.renderer.canvasContext.canvas, tt = PIXI.Texture.from(nt);
28304
+ _e.current = tt, V(!0), B(rt);
28333
28305
  }
28334
28306
  }), J.current.addEventListener("loaded_images", () => {
28335
28307
  }), J.current.addEventListener("complete", () => {
@@ -28348,9 +28320,9 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
28348
28320
  }), [U]);
28349
28321
  const st = (Je) => {
28350
28322
  if (J.current && X.current && xe.current) {
28351
- const nt = Je(xe.current.time()) / xe.current.duration() * Z.current.totalFrames, rt = Z.current.totalFrames;
28352
- let tt = nt;
28353
- tt = Math.round(Math.floor(tt)), tt >= rt ? (J.current.goToAndStop(0, !0), _e.current && _e.current.update(), Z.current.isPlaying = !1) : (J.current.goToAndStop(tt, !0), _e.current && _e.current.update(), Z.current.isPlaying = !0);
28323
+ const rt = Je(xe.current.time()) / xe.current.duration() * Z.current.totalFrames, nt = Z.current.totalFrames;
28324
+ let tt = rt;
28325
+ tt = Math.round(Math.floor(tt)), tt >= nt ? (J.current.goToAndStop(0, !0), _e.current && _e.current.update(), Z.current.isPlaying = !1) : (J.current.goToAndStop(tt, !0), _e.current && _e.current.update(), Z.current.isPlaying = !0);
28354
28326
  }
28355
28327
  };
28356
28328
  return React.useEffect(() => {
@@ -28359,13 +28331,13 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
28359
28331
  if (Y.current && je.current && I > 0) {
28360
28332
  const et = Number(Te) - Number(Re);
28361
28333
  xe.current && (xe.current.kill(), je.current.remove(xe.current)), Je = gsap$2.context(() => {
28362
- const nt = gsap$2.utils.wrap(Re, I);
28334
+ const rt = gsap$2.utils.wrap(Re, I);
28363
28335
  xe.current = gsap$2.timeline({}).to(
28364
28336
  Y.current,
28365
28337
  {
28366
28338
  duration: Number(et),
28367
28339
  onUpdate: st,
28368
- onUpdateParams: [nt, we, Pe]
28340
+ onUpdateParams: [rt, we, Pe]
28369
28341
  },
28370
28342
  we
28371
28343
  ), je.current.add(xe.current, Re);
@@ -28396,13 +28368,13 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
28396
28368
  {
28397
28369
  texture: _e.current,
28398
28370
  width: Ve,
28399
- height: Xe,
28371
+ height: We,
28400
28372
  anchor: 0.5,
28401
28373
  x: Le,
28402
28374
  y: Ne,
28403
28375
  ref: X,
28404
28376
  alpha: Ie ? 1 : 0,
28405
- ...!Me && Ie && { interactive: !0, pointerdown: We },
28377
+ ...!Me && Ie && { interactive: !0, pointerdown: Xe },
28406
28378
  filters: [
28407
28379
  qe,
28408
28380
  Ke,