reacthub-pixitweenjs 0.2.109-alpha.3 → 0.2.109-alpha.4

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
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import React__default, { useEffect, useState, useRef, useLayoutEffect, useCallback, useMemo, Fragment, useContext, useReducer } from "react";
3
- import { useApp, TilingSprite, Sprite, withFilters, Container as Container$1, AnimatedSprite, Text, useTick } from "@pixi/react";
3
+ import { useApp, TilingSprite, Sprite, Container as Container$1, AnimatedSprite, Text, useTick } from "@pixi/react";
4
4
  import * as PIXI from "pixi.js";
5
5
  import { Transformer } from "reacthub-react-bindings";
6
6
  import gsap$2 from "gsap";
@@ -56,7 +56,7 @@ reactJsxRuntime_production_min.Fragment = l$6;
56
56
  reactJsxRuntime_production_min.jsx = q;
57
57
  reactJsxRuntime_production_min.jsxs = q;
58
58
  jsxRuntime.exports = reactJsxRuntime_production_min;
59
- var jsxRuntimeExports = jsxRuntime.exports, Effects = /* @__PURE__ */ ((A) => (A.BlackAndWhite = "BlackAndWhite", A.Sepia = "Sepia", A.RetroVintage = "RetroVintage", A.NightVision = "NightVision", A.Normal = "Normal", A.Vignette = "Vignette", A.None = "Normal", A))(Effects || {}), Waveforms = /* @__PURE__ */ ((A) => (A.NONE = "none", A.EQUALIZER = "equalizer", A.ROUNDBARS = "roundbars", A.LED = "led", A.RADIAL_SPECTRUM = "radial_spectrum", A.LUMI_BARS = "lumi_bars", A))(Waveforms || {});
59
+ var jsxRuntimeExports = jsxRuntime.exports, Effects = /* @__PURE__ */ ((A) => (A.BlackAndWhite = "BlackAndWhite", A.Sepia = "Sepia", A.RetroVintage = "RetroVintage", A.NightVision = "NightVision", A.Normal = "Normal", A.Vignette = "Vignette", A.None = "Normal", A.CYAN = "CYAN", A))(Effects || {}), Waveforms = /* @__PURE__ */ ((A) => (A.NONE = "none", A.EQUALIZER = "equalizer", A.ROUNDBARS = "roundbars", A.LED = "led", A.RADIAL_SPECTRUM = "radial_spectrum", A.LUMI_BARS = "lumi_bars", A))(Waveforms || {});
60
60
  let targetElement;
61
61
  function getElement() {
62
62
  return targetElement = document.body, targetElement;
@@ -243,19 +243,19 @@ const GsapPixieContext = React.createContext({}), Events = {
243
243
  ), Fe = React.useCallback(() => {
244
244
  if (E.current === null)
245
245
  return;
246
- const ke = E.current.x, Le = E.current.y, Ge = E.current.width, He = E.current.height, Be = E.current.rotation, je = [
246
+ const ke = E.current.x, Le = E.current.y, Ge = E.current.width, Ue = E.current.height, Be = E.current.rotation, je = [
247
247
  E.current.scale.x,
248
248
  E.current.scale.y
249
- ], Ue = je[0] < 0 ? -1 : 1, ze = je[1] < 0 ? -1 : 1;
249
+ ], Ve = je[0] < 0 ? -1 : 1, ze = je[1] < 0 ? -1 : 1;
250
250
  R && (R({
251
251
  uniqueId: V,
252
252
  transformation: {
253
253
  x: Math.round(ke),
254
254
  y: Math.round(Le),
255
255
  width: Math.round(Math.max(5, Ge)),
256
- height: Math.round(Math.max(5, He)),
256
+ height: Math.round(Math.max(5, Ue)),
257
257
  rotation: Be,
258
- scale: X ? je : [Ue, ze]
258
+ scale: X ? je : [Ve, ze]
259
259
  // @todo: fix this for text
260
260
  }
261
261
  }), emitCustomEvent(Events.TRANSFORMER_DRAG_END, { uniqueId: "timeline" })), Y.current.isDragging = !1;
@@ -541,22 +541,22 @@ function arcToSegment(A, E, C, R, I, B, U, V, X) {
541
541
  we > 1 && (C = _sqrt(we) * C, R = _sqrt(we) * R);
542
542
  var Ie = C * C, Fe = R * R, ke = (Ie * Fe - Ie * Te - Fe * Ae) / (Ie * Te + Fe * Ae);
543
543
  ke < 0 && (ke = 0);
544
- var Le = (B === U ? -1 : 1) * _sqrt(ke), Ge = Le * (C * Ee / R), He = Le * -(R * Pe / C), Be = (A + V) / 2, je = (E + X) / 2, Ue = Be + (J * Ge - Y * He), ze = je + (Y * Ge + J * He), Ve = (Pe - Ge) / C, Oe = (Ee - He) / R, $e = (-Pe - Ge) / C, Re = (-Ee - He) / R, Me = Ve * Ve + Oe * Oe, Ne = (Oe < 0 ? -1 : 1) * Math.acos(Ve / _sqrt(Me)), De = (Ve * Re - Oe * $e < 0 ? -1 : 1) * Math.acos((Ve * $e + Oe * Re) / _sqrt(Me * ($e * $e + Re * Re)));
544
+ var Le = (B === U ? -1 : 1) * _sqrt(ke), Ge = Le * (C * Ee / R), Ue = Le * -(R * Pe / C), Be = (A + V) / 2, je = (E + X) / 2, Ve = Be + (J * Ge - Y * Ue), ze = je + (Y * Ge + J * Ue), He = (Pe - Ge) / C, Oe = (Ee - Ue) / R, $e = (-Pe - Ge) / C, Re = (-Ee - Ue) / R, Me = He * He + Oe * Oe, Ne = (Oe < 0 ? -1 : 1) * Math.acos(He / _sqrt(Me)), De = (He * Re - Oe * $e < 0 ? -1 : 1) * Math.acos((He * $e + Oe * Re) / _sqrt(Me * ($e * $e + Re * Re)));
545
545
  isNaN(De) && (De = Z), !U && De > 0 ? De -= _e : U && De < 0 && (De += _e), Ne %= _e, De %= _e;
546
546
  var Xe = Math.ceil(_abs(De) / (_e / 4)), qe = [], Ye = De / Xe, Je = 4 / 3 * _sin(Ye / 2) / (1 + _cos(Ye / 2)), Ke = J * C, rt = Y * C, nt = Y * -R, Qe = J * R, Ze;
547
547
  for (Ze = 0; Ze < Xe; Ze++)
548
- I = Ne + Ze * Ye, Pe = _cos(I), Ee = _sin(I), Ve = _cos(I += Ye), Oe = _sin(I), qe.push(Pe - Je * Ee, Ee + Je * Pe, Ve + Je * Oe, Oe - Je * Ve, Ve, Oe);
548
+ I = Ne + Ze * Ye, Pe = _cos(I), Ee = _sin(I), He = _cos(I += Ye), Oe = _sin(I), qe.push(Pe - Je * Ee, Ee + Je * Pe, He + Je * Oe, Oe - Je * He, He, Oe);
549
549
  for (Ze = 0; Ze < qe.length; Ze += 2)
550
- Pe = qe[Ze], Ee = qe[Ze + 1], qe[Ze] = Pe * Ke + Ee * nt + Ue, qe[Ze + 1] = Pe * rt + Ee * Qe + ze;
550
+ Pe = qe[Ze], Ee = qe[Ze + 1], qe[Ze] = Pe * Ke + Ee * nt + Ve, qe[Ze + 1] = Pe * rt + Ee * Qe + ze;
551
551
  return qe[Ze - 2] = V, qe[Ze - 1] = X, qe;
552
552
  }
553
553
  }
554
554
  function stringToRawPath(A) {
555
555
  var E = (A + "").replace(_scientific, function(Ge) {
556
- var He = +Ge;
557
- return He < 1e-4 && He > -1e-4 ? 0 : He;
558
- }).match(_svgPathExp) || [], C = [], R = 0, I = 0, B = 2 / 3, U = E.length, V = 0, X = "ERROR: malformed path: " + A, K, J, Y, Z, _e, xe, Se, Pe, Ee, Ae, Te, we, Ie, Fe, ke, Le = function(He, Be, je, Ue) {
559
- Ae = (je - He) / 3, Te = (Ue - Be) / 3, Se.push(He + Ae, Be + Te, je - Ae, Ue - Te, je, Ue);
556
+ var Ue = +Ge;
557
+ return Ue < 1e-4 && Ue > -1e-4 ? 0 : Ue;
558
+ }).match(_svgPathExp) || [], C = [], R = 0, I = 0, B = 2 / 3, U = E.length, V = 0, X = "ERROR: malformed path: " + A, K, J, Y, Z, _e, xe, Se, Pe, Ee, Ae, Te, we, Ie, Fe, ke, Le = function(Ue, Be, je, Ve) {
559
+ Ae = (je - Ue) / 3, Te = (Ve - Be) / 3, Se.push(Ue + Ae, Be + Te, je - Ae, Ve - Te, je, Ve);
560
560
  };
561
561
  if (!A || !isNaN(E[0]) || isNaN(E[1]))
562
562
  return console.log(X), C;
@@ -622,7 +622,7 @@ var gsap$1, _coreInitted, _getGSAP$1 = function() {
622
622
  for (X ? X = 1 / X : X = -V, K = 0; K < U; K += 2)
623
623
  E[K] = (+E[K] + I) * V, E[K + 1] = (+E[K + 1] + B) * X;
624
624
  }, _bezierToPoints = function A(E, C, R, I, B, U, V, X, K, J, Y) {
625
- var Z = (E + R) / 2, _e = (C + I) / 2, xe = (R + B) / 2, Se = (I + U) / 2, Pe = (B + V) / 2, Ee = (U + X) / 2, Ae = (Z + xe) / 2, Te = (_e + Se) / 2, we = (xe + Pe) / 2, Ie = (Se + Ee) / 2, Fe = (Ae + we) / 2, ke = (Te + Ie) / 2, Le = V - E, Ge = X - C, He = Math.abs((R - V) * Ge - (I - X) * Le), Be = Math.abs((B - V) * Ge - (U - X) * Le), je;
625
+ var Z = (E + R) / 2, _e = (C + I) / 2, xe = (R + B) / 2, Se = (I + U) / 2, Pe = (B + V) / 2, Ee = (U + X) / 2, Ae = (Z + xe) / 2, Te = (_e + Se) / 2, we = (xe + Pe) / 2, Ie = (Se + Ee) / 2, Fe = (Ae + we) / 2, ke = (Te + Ie) / 2, Le = V - E, Ge = X - C, Ue = Math.abs((R - V) * Ge - (I - X) * Le), Be = Math.abs((B - V) * Ge - (U - X) * Le), je;
626
626
  return J || (J = [{
627
627
  x: E,
628
628
  y: C
@@ -632,7 +632,7 @@ var gsap$1, _coreInitted, _getGSAP$1 = function() {
632
632
  }], Y = 1), J.splice(Y || J.length - 1, 0, {
633
633
  x: Fe,
634
634
  y: ke
635
- }), (He + Be) * (He + Be) > K * (Le * Le + Ge * Ge) && (je = J.length, A(E, C, Z, _e, Ae, Te, Fe, ke, K, J, Y), A(Fe, ke, we, Ie, Pe, Ee, V, X, K, J, Y + 1 + (J.length - je))), J;
635
+ }), (Ue + Be) * (Ue + Be) > K * (Le * Le + Ge * Ge) && (je = J.length, A(E, C, Z, _e, Ae, Te, Fe, ke, K, J, Y), A(Fe, ke, we, Ie, Pe, Ee, V, X, K, J, Y + 1 + (J.length - je))), J;
636
636
  }, CustomEase = /* @__PURE__ */ function() {
637
637
  function A(C, R, I) {
638
638
  _coreInitted || _initCore$1(), this.id = C, this.setData(R, I);
@@ -1712,7 +1712,7 @@ punycode$1.exports;
1712
1712
  qe[Xe] = De(Ne[Xe]);
1713
1713
  return qe;
1714
1714
  }
1715
- function He(Ne, De) {
1715
+ function Ue(Ne, De) {
1716
1716
  var Xe = Ne.split("@"), qe = "";
1717
1717
  Xe.length > 1 && (qe = Xe[0] + "@", Ne = Xe[1]), Ne = Ne.replace(Ae, ".");
1718
1718
  var Ye = Ne.split("."), Je = Ge(Ye, De).join(".");
@@ -1729,13 +1729,13 @@ punycode$1.exports;
1729
1729
  return De > 65535 && (De -= 65536, Xe += Fe(De >>> 10 & 1023 | 55296), De = 56320 | De & 1023), Xe += Fe(De), Xe;
1730
1730
  }).join("");
1731
1731
  }
1732
- function Ue(Ne) {
1732
+ function Ve(Ne) {
1733
1733
  return Ne - 48 < 10 ? Ne - 22 : Ne - 65 < 26 ? Ne - 65 : Ne - 97 < 26 ? Ne - 97 : X;
1734
1734
  }
1735
1735
  function ze(Ne, De) {
1736
1736
  return Ne + 22 + 75 * (Ne < 26) - ((De != 0) << 5);
1737
1737
  }
1738
- function Ve(Ne, De, Xe) {
1738
+ function He(Ne, De, Xe) {
1739
1739
  var qe = 0;
1740
1740
  for (Ne = Xe ? Ie(Ne / Z) : Ne >> 1, Ne += Ie(Ne / De); Ne > we * J >> 1; qe += X)
1741
1741
  Ne = Ie(Ne / we);
@@ -1746,14 +1746,14 @@ punycode$1.exports;
1746
1746
  for (rt = Ne.lastIndexOf(Se), rt < 0 && (rt = 0), nt = 0; nt < rt; ++nt)
1747
1747
  Ne.charCodeAt(nt) >= 128 && Le("not-basic"), De.push(Ne.charCodeAt(nt));
1748
1748
  for (Qe = rt > 0 ? rt + 1 : 0; Qe < Xe; ) {
1749
- for (Ze = Ye, tt = 1, st = X; Qe >= Xe && Le("invalid-input"), et = Ue(Ne.charCodeAt(Qe++)), (et >= X || et > Ie((V - Ye) / tt)) && Le("overflow"), Ye += et * tt, We = st <= Ke ? K : st >= Ke + J ? J : st - Ke, !(et < We); st += X)
1749
+ for (Ze = Ye, tt = 1, st = X; Qe >= Xe && Le("invalid-input"), et = Ve(Ne.charCodeAt(Qe++)), (et >= X || et > Ie((V - Ye) / tt)) && Le("overflow"), Ye += et * tt, We = st <= Ke ? K : st >= Ke + J ? J : st - Ke, !(et < We); st += X)
1750
1750
  it = X - We, tt > Ie(V / it) && Le("overflow"), tt *= it;
1751
- qe = De.length + 1, Ke = Ve(Ye - Ze, qe, Ze == 0), Ie(Ye / qe) > V - Je && Le("overflow"), Je += Ie(Ye / qe), Ye %= qe, De.splice(Ye++, 0, Je);
1751
+ qe = De.length + 1, Ke = He(Ye - Ze, qe, Ze == 0), Ie(Ye / qe) > V - Je && Le("overflow"), Je += Ie(Ye / qe), Ye %= qe, De.splice(Ye++, 0, Je);
1752
1752
  }
1753
1753
  return je(De);
1754
1754
  }
1755
1755
  function $e(Ne) {
1756
- var De, Xe, qe, Ye, Je, Ke, rt, nt, Qe, Ze, tt, st = [], et, We, it, ot;
1756
+ var De, Xe, qe, Ye, Je, Ke, rt, nt, Qe, Ze, tt, st = [], et, We, it, lt;
1757
1757
  for (Ne = Be(Ne), et = Ne.length, De = xe, Xe = 0, Je = _e, Ke = 0; Ke < et; ++Ke)
1758
1758
  tt = Ne[Ke], tt < 128 && st.push(Fe(tt));
1759
1759
  for (qe = Ye = st.length, Ye && st.push(Se); qe < et; ) {
@@ -1762,22 +1762,22 @@ punycode$1.exports;
1762
1762
  for (We = qe + 1, rt - De > Ie((V - Xe) / We) && Le("overflow"), Xe += (rt - De) * We, De = rt, Ke = 0; Ke < et; ++Ke)
1763
1763
  if (tt = Ne[Ke], tt < De && ++Xe > V && Le("overflow"), tt == De) {
1764
1764
  for (nt = Xe, Qe = X; Ze = Qe <= Je ? K : Qe >= Je + J ? J : Qe - Je, !(nt < Ze); Qe += X)
1765
- ot = nt - Ze, it = X - Ze, st.push(
1766
- Fe(ze(Ze + ot % it, 0))
1767
- ), nt = Ie(ot / it);
1768
- st.push(Fe(ze(nt, 0))), Je = Ve(Xe, We, qe == Ye), Xe = 0, ++qe;
1765
+ lt = nt - Ze, it = X - Ze, st.push(
1766
+ Fe(ze(Ze + lt % it, 0))
1767
+ ), nt = Ie(lt / it);
1768
+ st.push(Fe(ze(nt, 0))), Je = He(Xe, We, qe == Ye), Xe = 0, ++qe;
1769
1769
  }
1770
1770
  ++Xe, ++De;
1771
1771
  }
1772
1772
  return st.join("");
1773
1773
  }
1774
1774
  function Re(Ne) {
1775
- return He(Ne, function(De) {
1775
+ return Ue(Ne, function(De) {
1776
1776
  return Pe.test(De) ? Oe(De.slice(4).toLowerCase()) : De;
1777
1777
  });
1778
1778
  }
1779
1779
  function Me(Ne) {
1780
- return He(Ne, function(De) {
1780
+ return Ue(Ne, function(De) {
1781
1781
  return Ee.test(De) ? "xn--" + $e(De) : De;
1782
1782
  });
1783
1783
  }
@@ -1882,14 +1882,14 @@ var utilInspect = require$$0, inspectCustom = utilInspect.custom, inspectSymbol
1882
1882
  I = [];
1883
1883
  else if (indexOf(I, E) >= 0)
1884
1884
  return "[Circular]";
1885
- function Z(Ue, ze, Ve) {
1886
- if (ze && (I = $arrSlice.call(I), I.push(ze)), Ve) {
1885
+ function Z(Ve, ze, He) {
1886
+ if (ze && (I = $arrSlice.call(I), I.push(ze)), He) {
1887
1887
  var Oe = {
1888
1888
  depth: B.depth
1889
1889
  };
1890
- return has$3(B, "quoteStyle") && (Oe.quoteStyle = B.quoteStyle), A(Ue, Oe, R + 1, I);
1890
+ return has$3(B, "quoteStyle") && (Oe.quoteStyle = B.quoteStyle), A(Ve, Oe, R + 1, I);
1891
1891
  }
1892
- return A(Ue, B, R + 1, I);
1892
+ return A(Ve, B, R + 1, I);
1893
1893
  }
1894
1894
  if (typeof E == "function" && !isRegExp$1(E)) {
1895
1895
  var _e = nameOf(E), xe = arrObjKeys(E, Z);
@@ -1922,14 +1922,14 @@ var utilInspect = require$$0, inspectCustom = utilInspect.custom, inspectSymbol
1922
1922
  }
1923
1923
  if (isMap(E)) {
1924
1924
  var Ie = [];
1925
- return mapForEach && mapForEach.call(E, function(Ue, ze) {
1926
- Ie.push(Z(ze, E, !0) + " => " + Z(Ue, E));
1925
+ return mapForEach && mapForEach.call(E, function(Ve, ze) {
1926
+ Ie.push(Z(ze, E, !0) + " => " + Z(Ve, E));
1927
1927
  }), collectionOf("Map", mapSize$1.call(E), Ie, Y);
1928
1928
  }
1929
1929
  if (isSet(E)) {
1930
1930
  var Fe = [];
1931
- return setForEach && setForEach.call(E, function(Ue) {
1932
- Fe.push(Z(Ue, E));
1931
+ return setForEach && setForEach.call(E, function(Ve) {
1932
+ Fe.push(Z(Ve, E));
1933
1933
  }), collectionOf("Set", setSize.call(E), Fe, Y);
1934
1934
  }
1935
1935
  if (isWeakMap(E))
@@ -1951,7 +1951,7 @@ var utilInspect = require$$0, inspectCustom = utilInspect.custom, inspectSymbol
1951
1951
  if (typeof globalThis < "u" && E === globalThis || typeof commonjsGlobal$1 < "u" && E === commonjsGlobal$1)
1952
1952
  return "{ [object globalThis] }";
1953
1953
  if (!isDate(E) && !isRegExp$1(E)) {
1954
- var ke = arrObjKeys(E, Z), Le = gPO ? gPO(E) === Object.prototype : E instanceof Object || E.constructor === Object, Ge = E instanceof Object ? "" : "null prototype", He = !Le && toStringTag && Object(E) === E && toStringTag in E ? $slice.call(toStr(E), 8, -1) : Ge ? "Object" : "", Be = Le || typeof E.constructor != "function" ? "" : E.constructor.name ? E.constructor.name + " " : "", je = Be + (He || Ge ? "[" + $join.call($concat$1.call([], He || [], Ge || []), ": ") + "] " : "");
1954
+ var ke = arrObjKeys(E, Z), Le = gPO ? gPO(E) === Object.prototype : E instanceof Object || E.constructor === Object, Ge = E instanceof Object ? "" : "null prototype", Ue = !Le && toStringTag && Object(E) === E && toStringTag in E ? $slice.call(toStr(E), 8, -1) : Ge ? "Object" : "", Be = Le || typeof E.constructor != "function" ? "" : E.constructor.name ? E.constructor.name + " " : "", je = Be + (Ue || Ge ? "[" + $join.call($concat$1.call([], Ue || [], Ge || []), ": ") + "] " : "");
1955
1955
  return ke.length === 0 ? je + "{}" : Y ? je + "{" + indentedJoin(ke, Y) + "}" : je + "{ " + $join.call(ke, ", ") + " }";
1956
1956
  }
1957
1957
  return String(E);
@@ -2930,22 +2930,22 @@ function() {
2930
2930
  var Ge = [];
2931
2931
  if (typeof Te > "u")
2932
2932
  return Ge;
2933
- var He;
2933
+ var Ue;
2934
2934
  if (R === "comma" && isArray$a(Te))
2935
- Pe && K && (Te = utils$1.maybeMap(Te, K)), He = [{ value: Te.length > 0 ? Te.join(",") || null : void 0 }];
2935
+ Pe && K && (Te = utils$1.maybeMap(Te, K)), Ue = [{ value: Te.length > 0 ? Te.join(",") || null : void 0 }];
2936
2936
  else if (isArray$a(J))
2937
- He = J;
2937
+ Ue = J;
2938
2938
  else {
2939
2939
  var Be = Object.keys(Te);
2940
- He = Y ? Be.sort(Y) : Be;
2940
+ Ue = Y ? Be.sort(Y) : Be;
2941
2941
  }
2942
- var je = X ? String(C).replace(/\./g, "%2E") : String(C), Ue = I && isArray$a(Te) && Te.length === 1 ? je + "[]" : je;
2942
+ var je = X ? String(C).replace(/\./g, "%2E") : String(C), Ve = I && isArray$a(Te) && Te.length === 1 ? je + "[]" : je;
2943
2943
  if (B && isArray$a(Te) && Te.length === 0)
2944
- return Ue + "[]";
2945
- for (var ze = 0; ze < He.length; ++ze) {
2946
- var Ve = He[ze], Oe = typeof Ve == "object" && Ve && typeof Ve.value < "u" ? Ve.value : Te[Ve];
2944
+ return Ve + "[]";
2945
+ for (var ze = 0; ze < Ue.length; ++ze) {
2946
+ var He = Ue[ze], Oe = typeof He == "object" && He && typeof He.value < "u" ? He.value : Te[He];
2947
2947
  if (!(V && Oe === null)) {
2948
- var $e = Z && X ? String(Ve).replace(/\./g, "%2E") : String(Ve), Re = isArray$a(Te) ? typeof R == "function" ? R(Ue, $e) : Ue : Ue + (Z ? "." + $e : "[" + $e + "]");
2948
+ var $e = Z && X ? String(He).replace(/\./g, "%2E") : String(He), Re = isArray$a(Te) ? typeof R == "function" ? R(Ve, $e) : Ve : Ve + (Z ? "." + $e : "[" + $e + "]");
2949
2949
  Ae.set(E, Ie);
2950
2950
  var Me = getSideChannel();
2951
2951
  Me.set(sentinel, Ae), pushToArray(Ge, A(
@@ -3299,8 +3299,8 @@ Url.prototype.parse = function(A, E, C) {
3299
3299
  for (var Ie = "", Fe = 0, ke = we.length; Fe < ke; Fe++)
3300
3300
  we.charCodeAt(Fe) > 127 ? Ie += "x" : Ie += we[Fe];
3301
3301
  if (!Ie.match(hostnamePartPattern)) {
3302
- var Le = Ae.slice(0, _e), Ge = Ae.slice(_e + 1), He = we.match(hostnamePartStart);
3303
- He && (Le.push(He[1]), Ge.unshift(He[2])), Ge.length && (V = "/" + Ge.join(".") + V), this.hostname = Le.join(".");
3302
+ var Le = Ae.slice(0, _e), Ge = Ae.slice(_e + 1), Ue = we.match(hostnamePartStart);
3303
+ Ue && (Le.push(Ue[1]), Ge.unshift(Ue[2])), Ge.length && (V = "/" + Ge.join(".") + V), this.hostname = Le.join(".");
3304
3304
  break;
3305
3305
  }
3306
3306
  }
@@ -3311,14 +3311,14 @@ Url.prototype.parse = function(A, E, C) {
3311
3311
  }
3312
3312
  if (!unsafeProtocol[J])
3313
3313
  for (var _e = 0, Te = autoEscape.length; _e < Te; _e++) {
3314
- var Ue = autoEscape[_e];
3315
- if (V.indexOf(Ue) !== -1) {
3316
- var ze = encodeURIComponent(Ue);
3317
- ze === Ue && (ze = escape(Ue)), V = V.split(Ue).join(ze);
3314
+ var Ve = autoEscape[_e];
3315
+ if (V.indexOf(Ve) !== -1) {
3316
+ var ze = encodeURIComponent(Ve);
3317
+ ze === Ve && (ze = escape(Ve)), V = V.split(Ve).join(ze);
3318
3318
  }
3319
3319
  }
3320
- var Ve = V.indexOf("#");
3321
- Ve !== -1 && (this.hash = V.substr(Ve), V = V.slice(0, Ve));
3320
+ var He = V.indexOf("#");
3321
+ He !== -1 && (this.hash = V.substr(He), V = V.slice(0, He));
3322
3322
  var Oe = V.indexOf("?");
3323
3323
  if (Oe !== -1 ? (this.search = V.substr(Oe), this.query = V.substr(Oe + 1), E && (this.query = querystring.parse(this.query)), V = V.slice(0, Oe)) : E && (this.search = "", this.query = {}), V && (this.pathname = V), slashedProtocol[J] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3324
3324
  var Be = this.pathname || "", $e = this.search || "";
@@ -3401,13 +3401,13 @@ Url.prototype.resolveObject = function(A) {
3401
3401
  for (; Le--; Le)
3402
3402
  Ae.unshift("..");
3403
3403
  Pe && Ae[0] !== "" && (!Ae[0] || Ae[0].charAt(0) !== "/") && Ae.unshift(""), ke && Ae.join("/").substr(-1) !== "/" && Ae.push("");
3404
- var He = Ae[0] === "" || Ae[0] && Ae[0].charAt(0) === "/";
3404
+ var Ue = Ae[0] === "" || Ae[0] && Ae[0].charAt(0) === "/";
3405
3405
  if (we) {
3406
- C.hostname = He ? "" : Ae.length ? Ae.shift() : "", C.host = C.hostname;
3406
+ C.hostname = Ue ? "" : Ae.length ? Ae.shift() : "", C.host = C.hostname;
3407
3407
  var Ie = C.host && C.host.indexOf("@") > 0 ? C.host.split("@") : !1;
3408
3408
  Ie && (C.auth = Ie.shift(), C.hostname = Ie.shift(), C.host = C.hostname);
3409
3409
  }
3410
- return Pe = Pe || C.host && Ae.length, Pe && !He && Ae.unshift(""), Ae.length > 0 ? C.pathname = Ae.join("/") : (C.pathname = null, C.path = null), (C.pathname !== null || C.search !== null) && (C.path = (C.pathname ? C.pathname : "") + (C.search ? C.search : "")), C.auth = A.auth || C.auth, C.slashes = C.slashes || A.slashes, C.href = C.format(), C;
3410
+ return Pe = Pe || C.host && Ae.length, Pe && !Ue && Ae.unshift(""), Ae.length > 0 ? C.pathname = Ae.join("/") : (C.pathname = null, C.path = null), (C.pathname !== null || C.search !== null) && (C.path = (C.pathname ? C.pathname : "") + (C.search ? C.search : "")), C.auth = A.auth || C.auth, C.slashes = C.slashes || A.slashes, C.href = C.format(), C;
3411
3411
  };
3412
3412
  Url.prototype.parseHost = function() {
3413
3413
  var A = this.host, E = portPattern.exec(A);
@@ -13204,15 +13204,15 @@ v$1.parse = function() {
13204
13204
  function U($e, Re, Me) {
13205
13205
  return V(Re, function(Ne) {
13206
13206
  var De = Me();
13207
- return De && (Ve(A.comma) || C("Missing comma before color stops")), { type: $e, orientation: De, colorStops: Te(we) };
13207
+ return De && (He(A.comma) || C("Missing comma before color stops")), { type: $e, orientation: De, colorStops: Te(we) };
13208
13208
  });
13209
13209
  }
13210
13210
  function V($e, Re) {
13211
- var Me = Ve($e);
13211
+ var Me = He($e);
13212
13212
  if (Me) {
13213
- Ve(A.startCall) || C("Missing (");
13213
+ He(A.startCall) || C("Missing (");
13214
13214
  var Ne = Re(Me);
13215
- return Ve(A.endCall) || C("Missing )"), Ne;
13215
+ return He(A.endCall) || C("Missing )"), Ne;
13216
13216
  }
13217
13217
  }
13218
13218
  function X() {
@@ -13226,7 +13226,7 @@ v$1.parse = function() {
13226
13226
  }
13227
13227
  function Y() {
13228
13228
  var $e, Re = Z(), Me;
13229
- return Re && ($e = [], $e.push(Re), Me = E, Ve(A.comma) && (Re = Z(), Re ? $e.push(Re) : E = Me)), $e;
13229
+ return Re && ($e = [], $e.push(Re), Me = E, He(A.comma) && (Re = Z(), Re ? $e.push(Re) : E = Me)), $e;
13230
13230
  }
13231
13231
  function Z() {
13232
13232
  var $e = _e() || xe();
@@ -13247,7 +13247,7 @@ v$1.parse = function() {
13247
13247
  }
13248
13248
  function _e() {
13249
13249
  var $e = ze("shape", /^(circle)/i, 0);
13250
- return $e && ($e.style = Ue() || Se()), $e;
13250
+ return $e && ($e.style = Ve() || Se()), $e;
13251
13251
  }
13252
13252
  function xe() {
13253
13253
  var $e = ze("shape", /^(ellipse)/i, 0);
@@ -13273,7 +13273,7 @@ v$1.parse = function() {
13273
13273
  function Te($e) {
13274
13274
  var Re = $e(), Me = [];
13275
13275
  if (Re)
13276
- for (Me.push(Re); Ve(A.comma); )
13276
+ for (Me.push(Re); He(A.comma); )
13277
13277
  Re = $e(), Re ? Me.push(Re) : C("One extra comma");
13278
13278
  return Me;
13279
13279
  }
@@ -13292,32 +13292,32 @@ v$1.parse = function() {
13292
13292
  }
13293
13293
  function Le() {
13294
13294
  return V(A.rgbColor, function() {
13295
- return { type: "rgb", value: Te(He) };
13295
+ return { type: "rgb", value: Te(Ue) };
13296
13296
  });
13297
13297
  }
13298
13298
  function Ge() {
13299
13299
  return V(A.rgbaColor, function() {
13300
- return { type: "rgba", value: Te(He) };
13300
+ return { type: "rgba", value: Te(Ue) };
13301
13301
  });
13302
13302
  }
13303
- function He() {
13304
- return Ve(A.number)[1];
13303
+ function Ue() {
13304
+ return He(A.number)[1];
13305
13305
  }
13306
13306
  function Be() {
13307
- return ze("%", A.percentageValue, 1) || je() || Ue();
13307
+ return ze("%", A.percentageValue, 1) || je() || Ve();
13308
13308
  }
13309
13309
  function je() {
13310
13310
  return ze("position-keyword", A.positionKeywords, 1);
13311
13311
  }
13312
- function Ue() {
13312
+ function Ve() {
13313
13313
  return ze("px", A.pixelValue, 1) || ze("em", A.emValue, 1);
13314
13314
  }
13315
13315
  function ze($e, Re, Me) {
13316
- var Ne = Ve(Re);
13316
+ var Ne = He(Re);
13317
13317
  if (Ne)
13318
13318
  return { type: $e, value: Ne[Me] };
13319
13319
  }
13320
- function Ve($e) {
13320
+ function He($e) {
13321
13321
  var Re, Me;
13322
13322
  return Me = /^[\n\r\t\s]+/.exec(E), Me && Oe(Me[0].length), Re = $e.exec(E), Re && Oe(Re[0].length), Re;
13323
13323
  }
@@ -15821,8 +15821,8 @@ var _excluded$4 = ["prefixCls", "placement", "label", "value", "className", "sty
15821
15821
  function Ee(ke, Le) {
15822
15822
  var Ge = (Le || ke.target.value).trim().replace(/^#/, "");
15823
15823
  validHex(Ge) && J && J(ke, Ge);
15824
- var He = getNumberValue(Ge);
15825
- isNaN(He) || J && J(ke, He), Se(Ge);
15824
+ var Ue = getNumberValue(Ge);
15825
+ isNaN(Ue) || J && J(ke, Ue), Se(Ge);
15826
15826
  }
15827
15827
  function Ae(ke) {
15828
15828
  Pe.current = !1, Se(A.value), Y && Y(ke);
@@ -16438,7 +16438,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16438
16438
  action: () => console.log("send backward"),
16439
16439
  label: "Send Backward"
16440
16440
  }
16441
- ], He = (Ie + Fe) * Le.length + ke * 2 - Fe, Be = Ie + ke * 2, je = useCallback(
16441
+ ], Ue = (Ie + Fe) * Le.length + ke * 2 - Fe, Be = Ie + ke * 2, je = useCallback(
16442
16442
  (Me, Ne) => {
16443
16443
  xe((De) => !De), Pe({
16444
16444
  x: V.x + Me,
@@ -16446,7 +16446,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16446
16446
  });
16447
16447
  },
16448
16448
  [V, Ie]
16449
- ), Ue = useCallback(() => {
16449
+ ), Ve = useCallback(() => {
16450
16450
  R.current && (R.current.unmount(), K(!1)), we.current && we.current.parent && (we.current.parent.removeChild(we.current), we.current = null, xe(!1));
16451
16451
  }, []), ze = useCallback(() => {
16452
16452
  const Me = document.createElement("div");
@@ -16457,7 +16457,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16457
16457
  useEffect(() => {
16458
16458
  ze();
16459
16459
  }, []);
16460
- const Ve = useCallback((Me) => {
16460
+ const He = useCallback((Me) => {
16461
16461
  Y(Me), Ae((Ne) => {
16462
16462
  const De = [Me, ...Ne.filter((Xe) => Xe !== Me)].slice(
16463
16463
  0,
@@ -16476,21 +16476,21 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16476
16476
  {
16477
16477
  position: { x: Me, y: Ne },
16478
16478
  color: J,
16479
- onChange: Ve,
16479
+ onChange: He,
16480
16480
  onClose: Oe,
16481
16481
  recentColors: Ee
16482
16482
  }
16483
16483
  )
16484
16484
  ));
16485
16485
  },
16486
- [J, Ve, Oe]
16486
+ [J, He, Oe]
16487
16487
  );
16488
16488
  useEffect(() => {
16489
16489
  const Me = () => {
16490
16490
  if (A.current) {
16491
16491
  const De = A.current.getBounds();
16492
16492
  X({
16493
- x: De.x + De.width / 2 - He / 2,
16493
+ x: De.x + De.width / 2 - Ue / 2,
16494
16494
  y: De.y + De.height
16495
16495
  });
16496
16496
  }
@@ -16502,33 +16502,33 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16502
16502
  };
16503
16503
  }, []);
16504
16504
  const Re = useCallback(() => {
16505
- if (Ue(), A.current) {
16505
+ if (Ve(), A.current) {
16506
16506
  const Me = A.current.getBounds();
16507
16507
  X({
16508
- x: Me.x + Me.width / 2 - He / 2,
16508
+ x: Me.x + Me.width / 2 - Ue / 2,
16509
16509
  y: Me.y + Me.height
16510
16510
  });
16511
16511
  }
16512
- }, [Ue]);
16512
+ }, [Ve]);
16513
16513
  return useEffect(() => {
16514
16514
  const Me = (Ne) => {
16515
16515
  if (C.current) {
16516
16516
  const De = C.current.firstChild;
16517
- De && !De.contains(Ne.target) && Ue();
16517
+ De && !De.contains(Ne.target) && Ve();
16518
16518
  }
16519
- (Ne.type === "resize" || Ne.type === "scroll") && Ue();
16519
+ (Ne.type === "resize" || Ne.type === "scroll") && Ve();
16520
16520
  };
16521
16521
  return window.addEventListener("click", Me), window.addEventListener("resize", Me), window.addEventListener("scroll", Me), () => {
16522
16522
  window.removeEventListener("click", Me), window.removeEventListener("resize", Me), window.removeEventListener("scroll", Me);
16523
16523
  };
16524
- }, [Ue]), useEffect(() => {
16524
+ }, [Ve]), useEffect(() => {
16525
16525
  var qe;
16526
16526
  if (!I || !B || !A.current || !E.current)
16527
16527
  return;
16528
16528
  const Me = A.current, Ne = new PIXI.Container();
16529
16529
  (qe = E.current) == null || qe.addChild(Ne), Me.addListener("transformchange", Re);
16530
16530
  const De = new PIXI.Graphics();
16531
- De.beginFill(16777215, 0.9), De.lineStyle(1, 14540253), De.drawRoundedRect(0, 0, He, Be, 4), De.endFill(), Ne.addChild(De);
16531
+ De.beginFill(16777215, 0.9), De.lineStyle(1, 14540253), De.drawRoundedRect(0, 0, Ue, Be, 4), De.endFill(), Ne.addChild(De);
16532
16532
  const Xe = new F();
16533
16533
  return Xe.alpha = 0.2, Xe.blur = 2, Xe.distance = 3, Ne.filters = [Xe], Le.forEach((Ye, Je) => {
16534
16534
  const Ke = new PIXI.Container(), rt = ke + (Ie + Fe) * Je, nt = ke, Qe = new PIXI.Graphics();
@@ -16559,7 +16559,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16559
16559
  B,
16560
16560
  V,
16561
16561
  Le,
16562
- He,
16562
+ Ue,
16563
16563
  Be,
16564
16564
  J
16565
16565
  ]), useEffect(() => Te(
@@ -16567,9 +16567,162 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16567
16567
  Ge,
16568
16568
  Se
16569
16569
  ), [_e, Ge, Se]), useEffect(() => () => {
16570
- Ue();
16571
- }, [Ue]), /* @__PURE__ */ jsxRuntimeExports.jsx(Sprite, { texture: PIXI.Texture.EMPTY, ref: E, x: 10, y: 10 });
16572
- }, CYAN = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], initalTransforms$1 = {
16570
+ Ve();
16571
+ }, [Ve]), /* @__PURE__ */ jsxRuntimeExports.jsx(Sprite, { texture: PIXI.Texture.EMPTY, ref: E, x: 10, y: 10 });
16572
+ }, CYAN_MATRIX = [
16573
+ 1,
16574
+ 0,
16575
+ 0,
16576
+ 0,
16577
+ 0,
16578
+ 0,
16579
+ 1,
16580
+ 0,
16581
+ 0,
16582
+ 0,
16583
+ 0,
16584
+ 0,
16585
+ 1,
16586
+ 0,
16587
+ 0,
16588
+ 0,
16589
+ 0,
16590
+ 0,
16591
+ 1,
16592
+ 0
16593
+ ], withFiltersHook = (A) => {
16594
+ const {
16595
+ contrast: E = 1,
16596
+ saturation: C = 1,
16597
+ brightness: R = 1,
16598
+ alpha: I = 1,
16599
+ red: B = 1,
16600
+ blue: U = 1,
16601
+ gamma: V = 1,
16602
+ green: X = 1,
16603
+ blurRadius: K = 0,
16604
+ temperature: J = 0,
16605
+ hue: Y = 0,
16606
+ sharpness: Z = 0,
16607
+ vignette: _e = 0,
16608
+ noise: xe = 0,
16609
+ effect: Se = Effects.Normal
16610
+ // outline = 0,
16611
+ // outlineColor = 0x000000,
16612
+ } = A || {}, Pe = new PIXI.ColorMatrixFilter();
16613
+ if (J !== 0) {
16614
+ const $e = Pe.matrix, Re = J / 100;
16615
+ $e[0] += Re, $e[10] -= Re, Pe.matrix = $e;
16616
+ }
16617
+ const Ee = new n$3([
16618
+ 0,
16619
+ -Z,
16620
+ 0,
16621
+ -Z,
16622
+ 1 + 4 * Z,
16623
+ -Z,
16624
+ 0,
16625
+ -Z,
16626
+ 0
16627
+ ]), Ae = new n$2({
16628
+ hue: Y,
16629
+ saturation: 0,
16630
+ lightness: 0
16631
+ }), Te = new _$1(K, 1, !0), we = new r$2({
16632
+ vignetting: _e
16633
+ }), Ie = new PIXI.NoiseFilter(xe), Fe = new n$2({
16634
+ hue: 0,
16635
+ saturation: -1,
16636
+ // Complete desaturation
16637
+ lightness: 0
16638
+ }), ke = new PIXI.ColorMatrixFilter();
16639
+ ke.sepia(!0);
16640
+ const Le = new PIXI.ColorMatrixFilter();
16641
+ Le.negative(!1), Le.sepia(!0);
16642
+ const Ge = new l$3({
16643
+ distance: 10,
16644
+ outerStrength: 1,
16645
+ innerStrength: 1,
16646
+ color: 65280,
16647
+ // Green glow for night vision
16648
+ quality: 0.5
16649
+ }), Ue = new PIXI.ColorMatrixFilter(), Be = [
16650
+ 0.1,
16651
+ 0.5,
16652
+ 0.1,
16653
+ 0,
16654
+ 0,
16655
+ 0.1,
16656
+ 0.8,
16657
+ 0.1,
16658
+ 0,
16659
+ 0,
16660
+ 0.1,
16661
+ 0.5,
16662
+ 0.1,
16663
+ 0,
16664
+ 0,
16665
+ 0,
16666
+ 0,
16667
+ 0,
16668
+ 1,
16669
+ 0
16670
+ ];
16671
+ Ue.matrix[0] = Be[0], Ue.matrix[1] = Be[1], Ue.matrix[2] = Be[2], Ue.matrix[3] = Be[3], Ue.matrix[4] = Be[4], Ue.matrix[5] = Be[5], Ue.matrix[6] = Be[6], Ue.matrix[7] = Be[7], Ue.matrix[8] = Be[8], Ue.matrix[9] = Be[9], Ue.matrix[10] = Be[10], Ue.matrix[11] = Be[11], Ue.matrix[12] = Be[12], Ue.matrix[13] = Be[13], Ue.matrix[14] = Be[14], Ue.matrix[15] = Be[15], Ue.matrix[16] = Be[16], Ue.matrix[17] = Be[17], Ue.matrix[18] = Be[18], Ue.matrix[19] = Be[19];
16672
+ const je = new PIXI.ColorMatrixFilter();
16673
+ for (let $e = 0; $e < CYAN_MATRIX.length; $e++)
16674
+ je.matrix[$e] = CYAN_MATRIX[$e];
16675
+ const Ve = new PIXI.ColorMatrixFilter();
16676
+ Ve.reset();
16677
+ const ze = new s$4({
16678
+ ...V && { gamma: V },
16679
+ ...R && { brightness: R },
16680
+ ...E && { contrast: E },
16681
+ ...C && { saturation: C },
16682
+ ...B && { red: B },
16683
+ ...X && { green: X },
16684
+ ...U && { blue: U },
16685
+ ...I && { alpha: I }
16686
+ }), Oe = (() => {
16687
+ switch (Se) {
16688
+ case Effects.BlackAndWhite:
16689
+ return Fe;
16690
+ case Effects.Sepia:
16691
+ return ke;
16692
+ case Effects.RetroVintage:
16693
+ return Le;
16694
+ case Effects.NightVision:
16695
+ return [Ge, Ue];
16696
+ case Effects.Normal:
16697
+ case Effects.None:
16698
+ return Ve;
16699
+ case Effects.Vignette:
16700
+ return we;
16701
+ case Effects.CYAN:
16702
+ return je;
16703
+ default:
16704
+ return null;
16705
+ }
16706
+ })();
16707
+ return {
16708
+ adjustmentFilter: ze,
16709
+ blurFilter: Te,
16710
+ hslFilter: Ae,
16711
+ sharpnessFilter: Ee,
16712
+ temperatureFilter: Pe,
16713
+ vignetteFilter: we,
16714
+ noiseFilter: Ie,
16715
+ effectFilter: Oe,
16716
+ blackAndWhiteFilter: Fe,
16717
+ sepiaFilter: ke,
16718
+ retroVintageFilter: Le,
16719
+ nightVisionFilter: Ge,
16720
+ nightVisionColorMatrix: Ue,
16721
+ cyanFilter: je,
16722
+ normalFilter: Ve
16723
+ // outlineFilter,
16724
+ };
16725
+ }, initalTransforms$1 = {
16573
16726
  x: 0,
16574
16727
  y: 0,
16575
16728
  width: 0,
@@ -16593,12 +16746,12 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16593
16746
  transformation: ke = initalTransforms$1,
16594
16747
  applyTransformer: Le,
16595
16748
  disabled: Ge,
16596
- pointerdown: He,
16749
+ pointerdown: Ue,
16597
16750
  pointerout: Be,
16598
16751
  pointerover: je,
16599
- isText: Ue,
16752
+ isText: Ve,
16600
16753
  isDragging: ze,
16601
- isGif: Ve,
16754
+ isGif: He,
16602
16755
  onDoubleClick: Oe,
16603
16756
  isTextEditMode: $e,
16604
16757
  handleDragFontSize: Re,
@@ -16640,21 +16793,21 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16640
16793
  if (J.current) {
16641
16794
  if (Pe.current && V) {
16642
16795
  console.log("transforms 1001", V);
16643
- const { x: ot, y: ht, animation: gt, maxX: pt, maxY: ft } = V || {}, mt = Pe.current.progress(), ct = Ze.updateEffect(
16796
+ const { x: ht, y: dt, animation: mt, maxX: ct, maxY: pt } = V || {}, yt = Pe.current.progress(), gt = Ze.updateEffect(
16644
16797
  K.current,
16645
- gt,
16798
+ mt,
16646
16799
  {
16647
16800
  immediateRender: !1,
16648
- x: ot,
16649
- y: ht,
16801
+ x: ht,
16802
+ y: dt,
16650
16803
  overwrite: !0,
16651
- maxX: pt,
16652
- maxY: ft
16804
+ maxX: ct,
16805
+ maxY: pt
16653
16806
  }
16654
16807
  );
16655
- console.log("transforms 10012x", V), _e.current && (Pe.current.remove(_e.current), _e.current.progress(0).kill()), mt > 0.1 ? (ct.eventCallback("onComplete", () => {
16656
- ct.remove("onComplete"), Pe.current.add(ct, Fe), _e.current = ct;
16657
- }), ct.play()) : (ct.progress(1), Pe.current.add(ct, Fe), _e.current = ct);
16808
+ console.log("transforms 10012x", V), _e.current && (Pe.current.remove(_e.current), _e.current.progress(0).kill()), yt > 0.1 ? (gt.eventCallback("onComplete", () => {
16809
+ gt.remove("onComplete"), Pe.current.add(gt, Fe), _e.current = gt;
16810
+ }), gt.play()) : (gt.progress(1), Pe.current.add(gt, Fe), _e.current = gt);
16658
16811
  } else
16659
16812
  _e.current && _e.current.progress(0).kill();
16660
16813
  return () => {
@@ -16663,41 +16816,39 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16663
16816
  }, [Fe, V]);
16664
16817
  const tt = React.useCallback(() => {
16665
16818
  U(!0), je && !Se.current.isDragging && je();
16666
- }, []), st = (ot) => parseFloat(ot.toFixed(2)), et = React.useCallback(() => {
16667
- var gt, pt;
16819
+ }, []), st = (ht) => parseFloat(ht.toFixed(2)), et = React.useCallback(() => {
16820
+ var mt, ct;
16668
16821
  Se.current.isDragging = !0;
16669
- const { width: ot } = K.current, ht = {
16670
- x: st(Number((gt = K.current) == null ? void 0 : gt.scale.x)),
16671
- y: st(Number((pt = K.current) == null ? void 0 : pt.scale.y))
16822
+ const { width: ht } = K.current, dt = {
16823
+ x: st(Number((mt = K.current) == null ? void 0 : mt.scale.x)),
16824
+ y: st(Number((ct = K.current) == null ? void 0 : ct.scale.y))
16672
16825
  };
16673
- if (Ue) {
16674
- if (ht.x !== 1 && ht.y !== 1 && Y.current) {
16675
- const ft = Qe * ht.x;
16676
- Re && Re(ot, ft, ht);
16677
- } else if (ht.x !== 1)
16678
- Me && Me(ot, ht);
16679
- else if (ht.y !== 1) {
16680
- const ft = Qe * ht.x;
16681
- Re && Re(ot, ft, ht);
16682
- }
16683
- }
16684
- }, [Ue, Qe, Re, Me]), We = React.useCallback(
16685
- (ot) => {
16686
- var bt, It;
16687
- const { x: ht, y: gt, width: pt, height: ft, rotation: mt } = K.current, ct = {
16688
- x: st(Number((bt = K.current) == null ? void 0 : bt.scale.x)),
16689
- y: st(Number((It = K.current) == null ? void 0 : It.scale.y))
16826
+ if (Ve) {
16827
+ if (dt.x !== 1 && dt.y !== 1 && Y.current) {
16828
+ const pt = Qe * dt.x;
16829
+ Re && Re(ht, pt, dt);
16830
+ } else if (dt.x !== 1)
16831
+ Me && Me(ht, dt);
16832
+ else if (dt.y !== 1) {
16833
+ const pt = Qe * dt.x;
16834
+ Re && Re(ht, pt, dt);
16835
+ }
16836
+ }
16837
+ }, [Ve, Qe, Re, Me]), We = React.useCallback(
16838
+ (ht) => {
16839
+ var It, St;
16840
+ const { x: dt, y: mt, width: ct, height: pt, rotation: yt } = K.current, gt = {
16841
+ x: st(Number((It = K.current) == null ? void 0 : It.scale.x)),
16842
+ y: st(Number((St = K.current) == null ? void 0 : St.scale.y))
16690
16843
  };
16691
16844
  let xt = Qe;
16692
- Ue && ct.x !== 1 && ct.y !== 1 ? (xt = Qe * ct.x, Re && Re(pt, xt, ct)) : Ue && ct.x !== 1 && Me && Me(pt, ct), A.onAnchorTransformationEnd && A.onAnchorTransformationEnd({
16845
+ Ve && gt.x !== 1 && gt.y !== 1 ? (xt = Qe * gt.x, Re && Re(ct, xt, gt)) : Ve && gt.x !== 1 && Me && Me(ct, gt), A.onAnchorTransformationEnd && A.onAnchorTransformationEnd({
16693
16846
  uniqueId: we,
16694
- transformation: { ...ot.transformation, fontSize: xt }
16847
+ transformation: { ...ht.transformation, fontSize: xt }
16695
16848
  }), Se.current.isDragging = !1;
16696
16849
  },
16697
- [Ue, we, Qe, Re, Me]
16698
- ), it = withFilters(Container$1, {
16699
- matrix: PIXI.filters.ColorMatrixFilter
16700
- });
16850
+ [Ve, we, Qe, Re, Me]
16851
+ ), { effectFilter: it } = withFiltersHook({ effect: Ke }), lt = React.useMemo(() => it ? Array.isArray(it) ? it.filter((ht) => ht != null) : [it] : [], [it]);
16701
16852
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: J, children: [
16702
16853
  /* @__PURE__ */ jsxRuntimeExports.jsx(
16703
16854
  Container$1,
@@ -16712,27 +16863,13 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16712
16863
  ...!Ge && Ie && !I && !ze && {
16713
16864
  interactive: !0,
16714
16865
  buttonMode: !0,
16715
- pointerdown: He,
16866
+ pointerdown: Ue,
16716
16867
  pointerover: je,
16717
16868
  pointerout: Be
16718
16869
  },
16719
16870
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: xe, children: [
16720
- !Ve && /* @__PURE__ */ jsxRuntimeExports.jsx(
16721
- it,
16722
- {
16723
- scale: 1,
16724
- apply: ({ matrix: ot }) => {
16725
- Ke === Effects.BlackAndWhite ? ot.desaturate() : Ke === Effects.Sepia ? ot.sepia() : Ke === Effects.RetroVintage || Ke === Effects.NightVision ? ot.negative() : Ke === Effects.Normal && ot.reset();
16726
- },
16727
- matrix: {
16728
- enabled: !0,
16729
- // @ts-ignore
16730
- matrix: CYAN
16731
- },
16732
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: Y, children: A.children })
16733
- }
16734
- ),
16735
- Ve && /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: Y, children: A.children }),
16871
+ !He && /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { scale: 1, filters: lt, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: Y, children: A.children }) }),
16872
+ He && /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: Y, children: A.children }),
16736
16873
  !isEmpty$2(rt) && rt !== OverlayTypes.NONE && rt !== OverlayTypes.NORMAL && /* @__PURE__ */ jsxRuntimeExports.jsx(
16737
16874
  PixiOverlayTilingSprite,
16738
16875
  {
@@ -16770,7 +16907,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16770
16907
  transformChange: et,
16771
16908
  mouseoverEvent: tt,
16772
16909
  uniqueId: we,
16773
- isText: Ue,
16910
+ isText: Ve,
16774
16911
  onDoubleClick: Oe
16775
16912
  }
16776
16913
  ),
@@ -16779,133 +16916,12 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16779
16916
  {
16780
16917
  PixiTransformer: Z,
16781
16918
  uniqueId: we,
16782
- isText: !!Ue
16919
+ isText: !!Ve
16783
16920
  }
16784
16921
  )
16785
16922
  ] })
16786
16923
  ] });
16787
- }), withFiltersHook = (A) => {
16788
- const {
16789
- contrast: E = 1,
16790
- saturation: C = 1,
16791
- brightness: R = 1,
16792
- alpha: I = 1,
16793
- red: B = 1,
16794
- blue: U = 1,
16795
- gamma: V = 1,
16796
- green: X = 1,
16797
- blurRadius: K = 0,
16798
- temperature: J = 0,
16799
- hue: Y = 0,
16800
- sharpness: Z = 0,
16801
- vignette: _e = 0,
16802
- noise: xe = 0
16803
- // outline = 0,
16804
- // outlineColor = 0x000000,
16805
- } = A || {}, Se = new PIXI.Filter(
16806
- // @ts-ignore
16807
- null,
16808
- `
16809
- precision mediump float;
16810
- varying vec2 vTextureCoord;
16811
- uniform sampler2D uSampler;
16812
- uniform float temperature;
16813
-
16814
- void main() {
16815
- vec4 color = texture2D(uSampler, vTextureCoord);
16816
- color.r = color.r + (temperature / 100.0);
16817
- color.b = color.b - (temperature / 100.0);
16818
- gl_FragColor = color;
16819
- }
16820
- `
16821
- );
16822
- Se.uniforms.temperature = J;
16823
- const Pe = new n$3([
16824
- 0,
16825
- -Z,
16826
- 0,
16827
- -Z,
16828
- 1 + 4 * Z,
16829
- -Z,
16830
- 0,
16831
- -Z,
16832
- 0
16833
- ]), Ee = new PIXI.filters.ColorMatrixFilter();
16834
- Ee.hue(Y, !1);
16835
- const Ae = new _$1(K, 1, !0), Te = new r$2({
16836
- vignetting: _e
16837
- }), we = new PIXI.filters.NoiseFilter(xe);
16838
- return {
16839
- adjustmentFilter: new s$4({
16840
- ...V && { gamma: V },
16841
- ...R && { brightness: R },
16842
- ...E && { contrast: E },
16843
- ...C && { saturation: C },
16844
- ...B && { red: B },
16845
- ...X && { green: X },
16846
- ...U && { blue: U },
16847
- ...I && { alpha: I }
16848
- }),
16849
- blurFilter: Ae,
16850
- hueFilter: Ee,
16851
- sharpnessFilter: Pe,
16852
- temperatureFilter: Se,
16853
- vignetteFilter: Te,
16854
- noiseFilter: we
16855
- // outlineFilter,
16856
- };
16857
- }, withEffectsHooks = () => {
16858
- const A = new PIXI.Filter(
16859
- // @ts-ignore
16860
- null,
16861
- `
16862
- precision mediump float;
16863
- uniform mat3 uNightVisionMatrix;
16864
- varying vec2 vTextureCoord;
16865
- uniform sampler2D uSampler;
16866
-
16867
- void main(void) {
16868
- vec4 texColor = texture2D(uSampler, vTextureCoord);
16869
- vec3 color = texColor.rgb;
16870
- gl_FragColor = vec4(uNightVisionMatrix * vec3(color), texColor.a);
16871
- }
16872
- `
16873
- ), E = [
16874
- 0.393,
16875
- 0.769,
16876
- 0.189,
16877
- 0.349,
16878
- 0.686,
16879
- 0.168,
16880
- 0.272,
16881
- 0.534,
16882
- 0.131
16883
- ];
16884
- A.uniforms.uNightVisionMatrix = E;
16885
- const C = new PIXI.Filter(
16886
- // @ts-ignore
16887
- null,
16888
- `
16889
- precision mediump float;
16890
- varying vec2 vTextureCoord;
16891
- uniform sampler2D uSampler;
16892
- uniform vec4 vignetteColor;
16893
- uniform float vignetteSize;
16894
- uniform float vignetteStrength;
16895
-
16896
- void main(void) {
16897
- vec4 texColor = texture2D(uSampler, vTextureCoord);
16898
- vec2 delta = vTextureCoord - vec2(0.5);
16899
- float vignette = 1.0 - smoothstep(vignetteSize, 0.5, length(delta));
16900
- gl_FragColor = texColor * vignetteColor * vignetteStrength * vignette;
16901
- }
16902
- `
16903
- );
16904
- return C.uniforms.vignetteColor = [0, 0, 0, 1], C.uniforms.vignetteSize = 0.7, C.uniforms.vignetteStrength = 0.6, {
16905
- nightVisionFilter: A,
16906
- vignetteFilter: C
16907
- };
16908
- }, PixiImageSprite = React.forwardRef((A, E) => {
16924
+ }), PixiImageSprite = React.forwardRef((A, E) => {
16909
16925
  const C = useRef(null), R = useRef(null), {
16910
16926
  src: I,
16911
16927
  visible: B,
@@ -16925,19 +16941,33 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16925
16941
  vignette: Pe = 0,
16926
16942
  noise: Ee = 0
16927
16943
  // outline = 0,
16928
- } = Z, {
16929
- temperatureFilter: Ae,
16930
- sharpnessFilter: Te,
16931
- hueFilter: we,
16932
- blurFilter: Ie,
16933
- adjustmentFilter: Fe,
16934
- vignetteFilter: ke,
16935
- noiseFilter: Le
16944
+ } = Z, Ae = {
16945
+ ...Z,
16946
+ effect: _e
16947
+ }, {
16948
+ temperatureFilter: Te,
16949
+ sharpnessFilter: we,
16950
+ hslFilter: Ie,
16951
+ blurFilter: Fe,
16952
+ adjustmentFilter: ke,
16953
+ vignetteFilter: Le,
16954
+ noiseFilter: Ge,
16955
+ effectFilter: Ue
16936
16956
  // outlineFilter,
16937
- } = withFiltersHook(Z), { nightVisionFilter: Ge } = withEffectsHooks();
16938
- return React.useEffect(() => () => {
16957
+ } = withFiltersHook(Ae);
16958
+ React.useEffect(() => () => {
16939
16959
  console.log("PixiImageSprite unmounting");
16940
- }, []), /* @__PURE__ */ jsxRuntimeExports.jsx(AbstractContainer, { ...A, ref: E, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: R, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
16960
+ }, []);
16961
+ const Be = () => {
16962
+ const je = [
16963
+ Te,
16964
+ we,
16965
+ Ie,
16966
+ ke
16967
+ ];
16968
+ return Ue && (Array.isArray(Ue) ? je.push(...Ue) : je.push(Ue)), Se > 0 && je.push(Fe), Pe > 0 && !Ue && je.push(Le), Ee > 0 && je.push(Ge), je;
16969
+ };
16970
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(AbstractContainer, { ...A, ref: E, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: R, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
16941
16971
  Sprite,
16942
16972
  {
16943
16973
  image: I,
@@ -16949,22 +16979,7 @@ const Sketch$1 = Sketch, ColorPickerPortal = ({
16949
16979
  x: V,
16950
16980
  y: X,
16951
16981
  ...!U && B && { interactive: !0, pointerdown: xe },
16952
- filters: [
16953
- Ae,
16954
- Te,
16955
- we,
16956
- Fe,
16957
- // conditionally add blur filter
16958
- ...Se > 0 ? [Ie] : [],
16959
- // conditionally add night vision filter
16960
- ..._e === Effects.NightVision ? [Ge] : [],
16961
- // conditionally add vignette filter
16962
- ...Pe > 0 ? [ke] : [],
16963
- // conditionally add noise filter
16964
- ...Ee > 0 ? [Le] : []
16965
- // conditionally add outline filter
16966
- // ...(outline > 0 ? [outlineFilter] : []),
16967
- ]
16982
+ filters: Be()
16968
16983
  }
16969
16984
  ) }) });
16970
16985
  });
@@ -17154,12 +17169,12 @@ class ArcUtils {
17154
17169
  const V = U[U.length - 2], X = U[U.length - 1] - C, K = V - E, J = I - C, Y = R - E, Z = Math.abs(X * Y - K * J);
17155
17170
  if (Z < 1e-8 || B === 0)
17156
17171
  return (U[U.length - 2] !== E || U[U.length - 1] !== C) && U.push(E, C), null;
17157
- const _e = X * X + K * K, xe = J * J + Y * Y, Se = X * J + K * Y, Pe = B * Math.sqrt(_e) / Z, Ee = B * Math.sqrt(xe) / Z, Ae = Pe * Se / _e, Te = Ee * Se / xe, we = Pe * Y + Ee * K, Ie = Pe * J + Ee * X, Fe = K * (Ee + Ae), ke = X * (Ee + Ae), Le = Y * (Pe + Te), Ge = J * (Pe + Te), He = Math.atan2(ke - Ie, Fe - we), Be = Math.atan2(Ge - Ie, Le - we);
17172
+ const _e = X * X + K * K, xe = J * J + Y * Y, Se = X * J + K * Y, Pe = B * Math.sqrt(_e) / Z, Ee = B * Math.sqrt(xe) / Z, Ae = Pe * Se / _e, Te = Ee * Se / xe, we = Pe * Y + Ee * K, Ie = Pe * J + Ee * X, Fe = K * (Ee + Ae), ke = X * (Ee + Ae), Le = Y * (Pe + Te), Ge = J * (Pe + Te), Ue = Math.atan2(ke - Ie, Fe - we), Be = Math.atan2(Ge - Ie, Le - we);
17158
17173
  return {
17159
17174
  cx: we + E,
17160
17175
  cy: Ie + C,
17161
17176
  radius: B,
17162
- startAngle: He,
17177
+ startAngle: Ue,
17163
17178
  endAngle: Be,
17164
17179
  anticlockwise: K * J > Y * X
17165
17180
  };
@@ -17345,54 +17360,54 @@ function buildNonNativeLine(A, E) {
17345
17360
  const J = E.points, Y = R.length / 2;
17346
17361
  let Z = R.length;
17347
17362
  const _e = J.length / 2, xe = B.width / 2, Se = xe * xe, Pe = B.miterLimit * B.miterLimit;
17348
- let Ee = R[0], Ae = R[1], Te = R[2], we = R[3], Ie = 0, Fe = 0, ke = -(Ae - we), Le = Ee - Te, Ge = 0, He = 0, Be = Math.sqrt(ke * ke + Le * Le);
17363
+ let Ee = R[0], Ae = R[1], Te = R[2], we = R[3], Ie = 0, Fe = 0, ke = -(Ae - we), Le = Ee - Te, Ge = 0, Ue = 0, Be = Math.sqrt(ke * ke + Le * Le);
17349
17364
  ke /= Be, Le /= Be, ke *= xe, Le *= xe;
17350
- const je = B.alignment, Ue = (1 - je) * 2, ze = je * 2;
17365
+ const je = B.alignment, Ve = (1 - je) * 2, ze = je * 2;
17351
17366
  X || (B.cap === LINE_CAP.ROUND ? Z += round(
17352
- Ee - ke * (Ue - ze) * 0.5,
17353
- Ae - Le * (Ue - ze) * 0.5,
17354
- Ee - ke * Ue,
17355
- Ae - Le * Ue,
17367
+ Ee - ke * (Ve - ze) * 0.5,
17368
+ Ae - Le * (Ve - ze) * 0.5,
17369
+ Ee - ke * Ve,
17370
+ Ae - Le * Ve,
17356
17371
  Ee + ke * ze,
17357
17372
  Ae + Le * ze,
17358
17373
  J,
17359
17374
  !0
17360
- ) + 2 : B.cap === LINE_CAP.SQUARE && (Z += square(Ee, Ae, ke, Le, Ue, ze, !0, J))), J.push(
17361
- Ee - ke * Ue,
17362
- Ae - Le * Ue,
17375
+ ) + 2 : B.cap === LINE_CAP.SQUARE && (Z += square(Ee, Ae, ke, Le, Ve, ze, !0, J))), J.push(
17376
+ Ee - ke * Ve,
17377
+ Ae - Le * Ve,
17363
17378
  Ee + ke * ze,
17364
17379
  Ae + Le * ze
17365
17380
  );
17366
17381
  for (let $e = 1; $e < Y - 1; ++$e) {
17367
- Ee = R[($e - 1) * 2], Ae = R[($e - 1) * 2 + 1], Te = R[$e * 2], we = R[$e * 2 + 1], Ie = R[($e + 1) * 2], Fe = R[($e + 1) * 2 + 1], ke = -(Ae - we), Le = Ee - Te, Be = Math.sqrt(ke * ke + Le * Le), ke /= Be, Le /= Be, ke *= xe, Le *= xe, Ge = -(we - Fe), He = Te - Ie, Be = Math.sqrt(Ge * Ge + He * He), Ge /= Be, He /= Be, Ge *= xe, He *= xe;
17382
+ Ee = R[($e - 1) * 2], Ae = R[($e - 1) * 2 + 1], Te = R[$e * 2], we = R[$e * 2 + 1], Ie = R[($e + 1) * 2], Fe = R[($e + 1) * 2 + 1], ke = -(Ae - we), Le = Ee - Te, Be = Math.sqrt(ke * ke + Le * Le), ke /= Be, Le /= Be, ke *= xe, Le *= xe, Ge = -(we - Fe), Ue = Te - Ie, Be = Math.sqrt(Ge * Ge + Ue * Ue), Ge /= Be, Ue /= Be, Ge *= xe, Ue *= xe;
17368
17383
  const Re = Te - Ee, Me = Ae - we, Ne = Te - Ie, De = Fe - we, Xe = Re * Ne + Me * De, qe = Me * Ne - De * Re, Ye = qe < 0;
17369
17384
  if (Math.abs(qe) < 1e-3 * Math.abs(Xe)) {
17370
17385
  J.push(
17371
- Te - ke * Ue,
17372
- we - Le * Ue,
17386
+ Te - ke * Ve,
17387
+ we - Le * Ve,
17373
17388
  Te + ke * ze,
17374
17389
  we + Le * ze
17375
17390
  ), Xe >= 0 && (B.join === LINE_JOIN.ROUND ? Z += round(
17376
17391
  Te,
17377
17392
  we,
17378
- Te - ke * Ue,
17379
- we - Le * Ue,
17380
- Te - Ge * Ue,
17381
- we - He * Ue,
17393
+ Te - ke * Ve,
17394
+ we - Le * Ve,
17395
+ Te - Ge * Ve,
17396
+ we - Ue * Ve,
17382
17397
  J,
17383
17398
  !1
17384
17399
  ) + 4 : Z += 2, J.push(
17385
17400
  Te - Ge * ze,
17386
- we - He * ze,
17387
- Te + Ge * Ue,
17388
- we + He * Ue
17401
+ we - Ue * ze,
17402
+ Te + Ge * Ve,
17403
+ we + Ue * Ve
17389
17404
  ));
17390
17405
  continue;
17391
17406
  }
17392
- const Je = (-ke + Ee) * (-Le + we) - (-ke + Te) * (-Le + Ae), Ke = (-Ge + Ie) * (-He + we) - (-Ge + Te) * (-He + Fe), rt = (Re * Ke - Ne * Je) / qe, nt = (De * Je - Me * Ke) / qe, Qe = (rt - Te) * (rt - Te) + (nt - we) * (nt - we), Ze = Te + (rt - Te) * Ue, tt = we + (nt - we) * Ue, st = Te - (rt - Te) * ze, et = we - (nt - we) * ze, We = Math.min(Re * Re + Me * Me, Ne * Ne + De * De), it = Ye ? Ue : ze, ot = We + it * it * Se, ht = Qe <= ot;
17393
- let gt = B.join;
17394
- if (gt === LINE_JOIN.MITER && Qe / Se > Pe && (gt = LINE_JOIN.BEVEL), ht)
17395
- switch (gt) {
17407
+ const Je = (-ke + Ee) * (-Le + we) - (-ke + Te) * (-Le + Ae), Ke = (-Ge + Ie) * (-Ue + we) - (-Ge + Te) * (-Ue + Fe), rt = (Re * Ke - Ne * Je) / qe, nt = (De * Je - Me * Ke) / qe, Qe = (rt - Te) * (rt - Te) + (nt - we) * (nt - we), Ze = Te + (rt - Te) * Ve, tt = we + (nt - we) * Ve, st = Te - (rt - Te) * ze, et = we - (nt - we) * ze, We = Math.min(Re * Re + Me * Me, Ne * Ne + De * De), it = Ye ? Ve : ze, lt = We + it * it * Se, ht = Qe <= lt;
17408
+ let dt = B.join;
17409
+ if (dt === LINE_JOIN.MITER && Qe / Se > Pe && (dt = LINE_JOIN.BEVEL), ht)
17410
+ switch (dt) {
17396
17411
  case LINE_JOIN.MITER: {
17397
17412
  J.push(
17398
17413
  Ze,
@@ -17414,16 +17429,16 @@ function buildNonNativeLine(A, E) {
17414
17429
  tt,
17415
17430
  // inner miter point
17416
17431
  Te + Ge * ze,
17417
- we + He * ze
17432
+ we + Ue * ze
17418
17433
  ) : J.push(
17419
- Te - ke * Ue,
17420
- we - Le * Ue,
17434
+ Te - ke * Ve,
17435
+ we - Le * Ve,
17421
17436
  // first segment's inner vertex
17422
17437
  st,
17423
17438
  et,
17424
17439
  // outer miter point
17425
- Te - Ge * Ue,
17426
- we - He * Ue,
17440
+ Te - Ge * Ve,
17441
+ we - Ue * Ve,
17427
17442
  // second segment's outer vertex
17428
17443
  st,
17429
17444
  et
@@ -17442,31 +17457,31 @@ function buildNonNativeLine(A, E) {
17442
17457
  Te + ke * ze,
17443
17458
  we + Le * ze,
17444
17459
  Te + Ge * ze,
17445
- we + He * ze,
17460
+ we + Ue * ze,
17446
17461
  J,
17447
17462
  !0
17448
17463
  ) + 4, J.push(
17449
17464
  Ze,
17450
17465
  tt,
17451
17466
  Te + Ge * ze,
17452
- we + He * ze
17467
+ we + Ue * ze
17453
17468
  )) : (J.push(
17454
- Te - ke * Ue,
17455
- we - Le * Ue,
17469
+ Te - ke * Ve,
17470
+ we - Le * Ve,
17456
17471
  st,
17457
17472
  et
17458
17473
  ), Z += round(
17459
17474
  Te,
17460
17475
  we,
17461
- Te - ke * Ue,
17462
- we - Le * Ue,
17463
- Te - Ge * Ue,
17464
- we - He * Ue,
17476
+ Te - ke * Ve,
17477
+ we - Le * Ve,
17478
+ Te - Ge * Ve,
17479
+ we - Ue * Ve,
17465
17480
  J,
17466
17481
  !1
17467
17482
  ) + 4, J.push(
17468
- Te - Ge * Ue,
17469
- we - He * Ue,
17483
+ Te - Ge * Ve,
17484
+ we - Ue * Ve,
17470
17485
  st,
17471
17486
  et
17472
17487
  ));
@@ -17475,12 +17490,12 @@ function buildNonNativeLine(A, E) {
17475
17490
  }
17476
17491
  else {
17477
17492
  switch (J.push(
17478
- Te - ke * Ue,
17479
- we - Le * Ue,
17493
+ Te - ke * Ve,
17494
+ we - Le * Ve,
17480
17495
  // first segment's inner vertex
17481
17496
  Te + ke * ze,
17482
17497
  we + Le * ze
17483
- ), gt) {
17498
+ ), dt) {
17484
17499
  case LINE_JOIN.MITER: {
17485
17500
  Ye ? J.push(
17486
17501
  st,
@@ -17504,16 +17519,16 @@ function buildNonNativeLine(A, E) {
17504
17519
  Te + ke * ze,
17505
17520
  we + Le * ze,
17506
17521
  Te + Ge * ze,
17507
- we + He * ze,
17522
+ we + Ue * ze,
17508
17523
  J,
17509
17524
  !0
17510
17525
  ) + 2 : Z += round(
17511
17526
  Te,
17512
17527
  we,
17513
- Te - ke * Ue,
17514
- we - Le * Ue,
17515
- Te - Ge * Ue,
17516
- we - He * Ue,
17528
+ Te - ke * Ve,
17529
+ we - Le * Ve,
17530
+ Te - Ge * Ve,
17531
+ we - Ue * Ve,
17517
17532
  J,
17518
17533
  !1
17519
17534
  ) + 2;
@@ -17521,32 +17536,32 @@ function buildNonNativeLine(A, E) {
17521
17536
  }
17522
17537
  }
17523
17538
  J.push(
17524
- Te - Ge * Ue,
17525
- we - He * Ue,
17539
+ Te - Ge * Ve,
17540
+ we - Ue * Ve,
17526
17541
  // second segment's inner vertex
17527
17542
  Te + Ge * ze,
17528
- we + He * ze
17543
+ we + Ue * ze
17529
17544
  ), Z += 2;
17530
17545
  }
17531
17546
  }
17532
17547
  Ee = R[(Y - 2) * 2], Ae = R[(Y - 2) * 2 + 1], Te = R[(Y - 1) * 2], we = R[(Y - 1) * 2 + 1], ke = -(Ae - we), Le = Ee - Te, Be = Math.sqrt(ke * ke + Le * Le), ke /= Be, Le /= Be, ke *= xe, Le *= xe, J.push(
17533
- Te - ke * Ue,
17534
- we - Le * Ue,
17548
+ Te - ke * Ve,
17549
+ we - Le * Ve,
17535
17550
  Te + ke * ze,
17536
17551
  we + Le * ze
17537
17552
  ), X || (B.cap === LINE_CAP.ROUND ? Z += round(
17538
- Te - ke * (Ue - ze) * 0.5,
17539
- we - Le * (Ue - ze) * 0.5,
17540
- Te - ke * Ue,
17541
- we - Le * Ue,
17553
+ Te - ke * (Ve - ze) * 0.5,
17554
+ we - Le * (Ve - ze) * 0.5,
17555
+ Te - ke * Ve,
17556
+ we - Le * Ve,
17542
17557
  Te + ke * ze,
17543
17558
  we + Le * ze,
17544
17559
  J,
17545
17560
  !1
17546
- ) + 2 : B.cap === LINE_CAP.SQUARE && (Z += square(Te, we, ke, Le, Ue, ze, !1, J)));
17547
- const Ve = E.indices, Oe = curves.epsilon * curves.epsilon;
17561
+ ) + 2 : B.cap === LINE_CAP.SQUARE && (Z += square(Te, we, ke, Le, Ve, ze, !1, J)));
17562
+ const He = E.indices, Oe = curves.epsilon * curves.epsilon;
17548
17563
  for (let $e = _e; $e < Z + _e - 2; ++$e)
17549
- Ee = J[$e * 2], Ae = J[$e * 2 + 1], Te = J[($e + 1) * 2], we = J[($e + 1) * 2 + 1], Ie = J[($e + 2) * 2], Fe = J[($e + 2) * 2 + 1], !(Math.abs(Ee * (we - Fe) + Te * (Fe - Ae) + Ie * (Ae - we)) < Oe) && Ve.push($e, $e + 1, $e + 2);
17564
+ Ee = J[$e * 2], Ae = J[$e * 2 + 1], Te = J[($e + 1) * 2], we = J[($e + 1) * 2 + 1], Ie = J[($e + 2) * 2], Fe = J[($e + 2) * 2 + 1], !(Math.abs(Ee * (we - Fe) + Te * (Fe - Ae) + Ie * (Ae - we)) < Oe) && He.push($e, $e + 1, $e + 2);
17550
17565
  }
17551
17566
  function buildNativeLine(A, E) {
17552
17567
  let C = 0;
@@ -20225,8 +20240,8 @@ var _slicedToArray = function() {
20225
20240
  }, getArcCenter = function(E, C, R, I, B, U, V, X, K, J, Y, Z) {
20226
20241
  var _e = Math.pow(B, 2), xe = Math.pow(U, 2), Se = Math.pow(Y, 2), Pe = Math.pow(Z, 2), Ee = _e * xe - _e * Pe - xe * Se;
20227
20242
  Ee < 0 && (Ee = 0), Ee /= _e * Pe + xe * Se, Ee = Math.sqrt(Ee) * (V === X ? -1 : 1);
20228
- var Ae = Ee * B / U * Z, Te = Ee * -U / B * Y, we = J * Ae - K * Te + (E + R) / 2, Ie = K * Ae + J * Te + (C + I) / 2, Fe = (Y - Ae) / B, ke = (Z - Te) / U, Le = (-Y - Ae) / B, Ge = (-Z - Te) / U, He = vectorAngle(1, 0, Fe, ke), Be = vectorAngle(Fe, ke, Le, Ge);
20229
- return X === 0 && Be > 0 && (Be -= TAU$2), X === 1 && Be < 0 && (Be += TAU$2), [we, Ie, He, Be];
20243
+ var Ae = Ee * B / U * Z, Te = Ee * -U / B * Y, we = J * Ae - K * Te + (E + R) / 2, Ie = K * Ae + J * Te + (C + I) / 2, Fe = (Y - Ae) / B, ke = (Z - Te) / U, Le = (-Y - Ae) / B, Ge = (-Z - Te) / U, Ue = vectorAngle(1, 0, Fe, ke), Be = vectorAngle(Fe, ke, Le, Ge);
20244
+ return X === 0 && Be > 0 && (Be -= TAU$2), X === 1 && Be < 0 && (Be += TAU$2), [we, Ie, Ue, Be];
20230
20245
  }, arcToBezier = function(E) {
20231
20246
  var C = E.px, R = E.py, I = E.cx, B = E.cy, U = E.rx, V = E.ry, X = E.xAxisRotation, K = X === void 0 ? 0 : X, J = E.largeArcFlag, Y = J === void 0 ? 0 : J, Z = E.sweepFlag, _e = Z === void 0 ? 0 : Z, xe = [];
20232
20247
  if (U === 0 || V === 0)
@@ -20237,15 +20252,15 @@ var _slicedToArray = function() {
20237
20252
  U = Math.abs(U), V = Math.abs(V);
20238
20253
  var Te = Math.pow(Ee, 2) / Math.pow(U, 2) + Math.pow(Ae, 2) / Math.pow(V, 2);
20239
20254
  Te > 1 && (U *= Math.sqrt(Te), V *= Math.sqrt(Te));
20240
- var we = getArcCenter(C, R, I, B, U, V, Y, _e, Se, Pe, Ee, Ae), Ie = _slicedToArray(we, 4), Fe = Ie[0], ke = Ie[1], Le = Ie[2], Ge = Ie[3], He = Math.abs(Ge) / (TAU$2 / 4);
20241
- Math.abs(1 - He) < 1e-7 && (He = 1);
20242
- var Be = Math.max(Math.ceil(He), 1);
20255
+ var we = getArcCenter(C, R, I, B, U, V, Y, _e, Se, Pe, Ee, Ae), Ie = _slicedToArray(we, 4), Fe = Ie[0], ke = Ie[1], Le = Ie[2], Ge = Ie[3], Ue = Math.abs(Ge) / (TAU$2 / 4);
20256
+ Math.abs(1 - Ue) < 1e-7 && (Ue = 1);
20257
+ var Be = Math.max(Math.ceil(Ue), 1);
20243
20258
  Ge /= Be;
20244
20259
  for (var je = 0; je < Be; je++)
20245
20260
  xe.push(approxUnitArc(Le, Ge)), Le += Ge;
20246
- return xe.map(function(Ue) {
20247
- var ze = mapToEllipse(Ue[0], U, V, Pe, Se, Fe, ke), Ve = ze.x, Oe = ze.y, $e = mapToEllipse(Ue[1], U, V, Pe, Se, Fe, ke), Re = $e.x, Me = $e.y, Ne = mapToEllipse(Ue[2], U, V, Pe, Se, Fe, ke), De = Ne.x, Xe = Ne.y;
20248
- return { x1: Ve, y1: Oe, x2: Re, y2: Me, x: De, y: Xe };
20261
+ return xe.map(function(Ve) {
20262
+ var ze = mapToEllipse(Ve[0], U, V, Pe, Se, Fe, ke), He = ze.x, Oe = ze.y, $e = mapToEllipse(Ve[1], U, V, Pe, Se, Fe, ke), Re = $e.x, Me = $e.y, Ne = mapToEllipse(Ve[2], U, V, Pe, Se, Fe, ke), De = Ne.x, Xe = Ne.y;
20263
+ return { x1: He, y1: Oe, x2: Re, y2: Me, x: De, y: Xe };
20249
20264
  });
20250
20265
  };
20251
20266
  class SVG extends Graphics {
@@ -20787,8 +20802,8 @@ function unit_vector_angle(A, E, C, R) {
20787
20802
  function get_arc_center(A, E, C, R, I, B, U, V, X, K) {
20788
20803
  var J = K * (A - C) / 2 + X * (E - R) / 2, Y = -X * (A - C) / 2 + K * (E - R) / 2, Z = U * U, _e = V * V, xe = J * J, Se = Y * Y, Pe = Z * _e - Z * Se - _e * xe;
20789
20804
  Pe < 0 && (Pe = 0), Pe /= Z * Se + _e * xe, Pe = Math.sqrt(Pe) * (I === B ? -1 : 1);
20790
- var Ee = Pe * U / V * Y, Ae = Pe * -V / U * J, Te = K * Ee - X * Ae + (A + C) / 2, we = X * Ee + K * Ae + (E + R) / 2, Ie = (J - Ee) / U, Fe = (Y - Ae) / V, ke = (-J - Ee) / U, Le = (-Y - Ae) / V, Ge = unit_vector_angle(1, 0, Ie, Fe), He = unit_vector_angle(Ie, Fe, ke, Le);
20791
- return B === 0 && He > 0 && (He -= TAU$1), B === 1 && He < 0 && (He += TAU$1), [Te, we, Ge, He];
20805
+ var Ee = Pe * U / V * Y, Ae = Pe * -V / U * J, Te = K * Ee - X * Ae + (A + C) / 2, we = X * Ee + K * Ae + (E + R) / 2, Ie = (J - Ee) / U, Fe = (Y - Ae) / V, ke = (-J - Ee) / U, Le = (-Y - Ae) / V, Ge = unit_vector_angle(1, 0, Ie, Fe), Ue = unit_vector_angle(Ie, Fe, ke, Le);
20806
+ return B === 0 && Ue > 0 && (Ue -= TAU$1), B === 1 && Ue < 0 && (Ue += TAU$1), [Te, we, Ge, Ue];
20792
20807
  }
20793
20808
  function approximate_unit_arc(A, E) {
20794
20809
  var C = 1.3333333333333333 * Math.tan(E / 4), R = Math.cos(A), I = Math.sin(A), B = Math.cos(A + E), U = Math.sin(A + E);
@@ -20811,8 +20826,8 @@ var a2c$1 = function(E, C, R, I, B, U, V, X, K) {
20811
20826
  for (var Fe = 0; Fe < Ie.length; Fe += 2) {
20812
20827
  var ke = Ie[Fe + 0], Le = Ie[Fe + 1];
20813
20828
  ke *= V, Le *= X;
20814
- var Ge = Y * ke - J * Le, He = J * ke + Y * Le;
20815
- Ie[Fe + 0] = Ge + Se[0], Ie[Fe + 1] = He + Se[1];
20829
+ var Ge = Y * ke - J * Le, Ue = J * ke + Y * Le;
20830
+ Ie[Fe + 0] = Ge + Se[0], Ie[Fe + 1] = Ue + Se[1];
20816
20831
  }
20817
20832
  return Ie;
20818
20833
  });
@@ -21099,12 +21114,12 @@ const svgpath$1 = /* @__PURE__ */ getDefaultExportFromCjs(svgpath), PixiSvgPathS
21099
21114
  } = A, Fe = useApp(), {
21100
21115
  temperatureFilter: ke,
21101
21116
  sharpnessFilter: Le,
21102
- hueFilter: Ge,
21103
- blurFilter: He,
21117
+ hslFilter: Ge,
21118
+ blurFilter: Ue,
21104
21119
  adjustmentFilter: Be,
21105
21120
  vignetteFilter: je,
21106
- noiseFilter: Ue
21107
- } = withFiltersHook(Te), { blurRadius: ze = 0, vignette: Ve = 0, noise: Oe = 0 } = Te;
21121
+ noiseFilter: Ve
21122
+ } = withFiltersHook(Te), { blurRadius: ze = 0, vignette: He = 0, noise: Oe = 0 } = Te;
21108
21123
  return React.useEffect(() => {
21109
21124
  const $e = svgpath$1(V).scale(5).translate(0, 0).toString(), Re = `<svg xmlns="http://www.w3.org/2000/svg" width="${Z}" height="${_e}">
21110
21125
  <path stroke="${Ee}" stroke-width="${Ae}" fill="${Se || Pe}" d="${$e}">
@@ -21134,11 +21149,11 @@ const svgpath$1 = /* @__PURE__ */ getDefaultExportFromCjs(svgpath), PixiSvgPathS
21134
21149
  Ge,
21135
21150
  Be,
21136
21151
  // conditionally add blur filter
21137
- ...ze > 0 ? [He] : [],
21152
+ ...ze > 0 ? [Ue] : [],
21138
21153
  // conditionally add vignette filter
21139
- ...Ve > 0 ? [je] : [],
21154
+ ...He > 0 ? [je] : [],
21140
21155
  // conditionally add noise filter
21141
- ...Oe > 0 ? [Ue] : []
21156
+ ...Oe > 0 ? [Ve] : []
21142
21157
  ]
21143
21158
  }
21144
21159
  ) }) }) });
@@ -21486,14 +21501,14 @@ var howler = {};
21486
21501
  }
21487
21502
  var Ge = Ee._node;
21488
21503
  if (_e._webAudio) {
21489
- var He = function() {
21504
+ var Ue = function() {
21490
21505
  _e._playLock = !1, Le(), _e._refreshBuffer(Ee);
21491
21506
  var ze = Ee._muted || _e._muted ? 0 : Ee._volume;
21492
21507
  Ge.gain.setValueAtTime(ze, C.ctx.currentTime), Ee._playStart = C.ctx.currentTime, typeof Ge.bufferSource.start > "u" ? Ee._loop ? Ge.bufferSource.noteGrainOn(0, Te, 86400) : Ge.bufferSource.noteGrainOn(0, Te, we) : Ee._loop ? Ge.bufferSource.start(0, Te, 86400) : Ge.bufferSource.start(0, Te, we), Ie !== 1 / 0 && (_e._endTimers[Ee._id] = setTimeout(_e._ended.bind(_e, Ee), Ie)), Z || setTimeout(function() {
21493
21508
  _e._emit("play", Ee._id), _e._loadQueue();
21494
21509
  }, 0);
21495
21510
  };
21496
- C.state === "running" && C.ctx.state !== "interrupted" ? He() : (_e._playLock = !0, _e.once("resume", He), _e._clearTimer(Ee._id));
21511
+ C.state === "running" && C.ctx.state !== "interrupted" ? Ue() : (_e._playLock = !0, _e.once("resume", Ue), _e._clearTimer(Ee._id));
21497
21512
  } else {
21498
21513
  var Be = function() {
21499
21514
  Ge.currentTime = Te, Ge.muted = Ee._muted || _e._muted || C._muted || Ge.muted, Ge.volume = Ee._volume * C.volume(), Ge.playbackRate = Ee._rate;
@@ -21510,8 +21525,8 @@ var howler = {};
21510
21525
  Y !== "__default" || Ee._loop ? _e._endTimers[Ee._id] = setTimeout(_e._ended.bind(_e, Ee), Ie) : (_e._endTimers[Ee._id] = function() {
21511
21526
  _e._ended(Ee), Ge.removeEventListener("ended", _e._endTimers[Ee._id], !1);
21512
21527
  }, Ge.addEventListener("ended", _e._endTimers[Ee._id], !1));
21513
- } catch (Ve) {
21514
- _e._emit("playerror", Ee._id, Ve);
21528
+ } catch (He) {
21529
+ _e._emit("playerror", Ee._id, He);
21515
21530
  }
21516
21531
  };
21517
21532
  Ge.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (Ge.src = _e._src, Ge.load());
@@ -21520,10 +21535,10 @@ var howler = {};
21520
21535
  Be();
21521
21536
  else {
21522
21537
  _e._playLock = !0, _e._state = "loading";
21523
- var Ue = function() {
21524
- _e._state = "loaded", Be(), Ge.removeEventListener(C._canPlayEvent, Ue, !1);
21538
+ var Ve = function() {
21539
+ _e._state = "loaded", Be(), Ge.removeEventListener(C._canPlayEvent, Ve, !1);
21525
21540
  };
21526
- Ge.addEventListener(C._canPlayEvent, Ue, !1), _e._clearTimer(Ee._id);
21541
+ Ge.addEventListener(C._canPlayEvent, Ve, !1), _e._clearTimer(Ee._id);
21527
21542
  }
21528
21543
  }
21529
21544
  return Ee._id;
@@ -23101,9 +23116,9 @@ class AudioMotionAnalyzer {
23101
23116
  this._flg = { isAlpha: !1, isBands: !1, isLeds: !1, isLumi: !1, isOctaves: !1, isOutline: !1, isRound: !1, noLedGap: !1 };
23102
23117
  return;
23103
23118
  }
23104
- const { _ansiBands: C, _barSpace: R, canvas: I, _chLayout: B, _maxFreq: U, _minFreq: V, _mirror: X, _mode: K, _radial: J, _radialInvert: Y, _reflexRatio: Z } = this, _e = I.width >> 1, xe = I.height >> 1, Se = B == CHANNEL_VERTICAL && !J, Pe = B == CHANNEL_HORIZONTAL, Ee = K % 10 != 0, Ae = Ee && this._frequencyScale == SCALE_LOG, Te = this._showLeds && Ee && !J, we = this._lumiBars && Ee && !J, Ie = this._alphaBars && !we && K != MODE_GRAPH, Fe = this._outlineBars && Ee && !we && !Te, ke = this._roundBars && Ee && !we && !Te, Le = B != CHANNEL_VERTICAL || Z > 0 && !we, Ge = I.height - (Se && !Te ? 0.5 : 0) >> Se, He = Ge * (we || J ? 1 : 1 - Z) | 0, Be = I.width - _e * (Pe || X != 0), je = Se ? I.height - Ge * 2 : 0, Ue = _e * (X == -1 && !Pe && !J);
23105
- let ze = Math.min(I.width, I.height) * 0.375 * (B == CHANNEL_VERTICAL ? 1 : this._radius) | 0, Ve = Math.min(_e, xe);
23106
- Y && B != CHANNEL_VERTICAL && ([ze, Ve] = [Ve, ze]);
23119
+ const { _ansiBands: C, _barSpace: R, canvas: I, _chLayout: B, _maxFreq: U, _minFreq: V, _mirror: X, _mode: K, _radial: J, _radialInvert: Y, _reflexRatio: Z } = this, _e = I.width >> 1, xe = I.height >> 1, Se = B == CHANNEL_VERTICAL && !J, Pe = B == CHANNEL_HORIZONTAL, Ee = K % 10 != 0, Ae = Ee && this._frequencyScale == SCALE_LOG, Te = this._showLeds && Ee && !J, we = this._lumiBars && Ee && !J, Ie = this._alphaBars && !we && K != MODE_GRAPH, Fe = this._outlineBars && Ee && !we && !Te, ke = this._roundBars && Ee && !we && !Te, Le = B != CHANNEL_VERTICAL || Z > 0 && !we, Ge = I.height - (Se && !Te ? 0.5 : 0) >> Se, Ue = Ge * (we || J ? 1 : 1 - Z) | 0, Be = I.width - _e * (Pe || X != 0), je = Se ? I.height - Ge * 2 : 0, Ve = _e * (X == -1 && !Pe && !J);
23120
+ let ze = Math.min(I.width, I.height) * 0.375 * (B == CHANNEL_VERTICAL ? 1 : this._radius) | 0, He = Math.min(_e, xe);
23121
+ Y && B != CHANNEL_VERTICAL && ([ze, He] = [He, ze]);
23107
23122
  const Oe = (Je) => E.push({ ...Je, peak: [0, 0], hold: [0], alpha: [0], value: [0] }), $e = (Je) => {
23108
23123
  const Ke = this._freqToBin(Je, "floor"), rt = this._binToFreq(Ke), nt = this._binToFreq(Ke + 1), Qe = Math.log2(Je / rt) / Math.log2(nt / rt);
23109
23124
  return [Ke, Qe];
@@ -23111,19 +23126,19 @@ class AudioMotionAnalyzer {
23111
23126
  let Re, Me, Ne;
23112
23127
  if (Ae) {
23113
23128
  const Je = (et, We, it) => +et.toPrecision(it ? Math.max(We, 1 + Math.log10(et) | 0) : We), Ke = (et) => {
23114
- const We = [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], it = Math.log10(et) | 0, ot = et / 10 ** it;
23129
+ const We = [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], it = Math.log10(et) | 0, lt = et / 10 ** it;
23115
23130
  let ht = 1;
23116
- for (; ht < We.length && ot > We[ht]; )
23131
+ for (; ht < We.length && lt > We[ht]; )
23117
23132
  ht++;
23118
- return ot - We[ht - 1] < We[ht] - ot && ht--, (We[ht] * 10 ** (it + 5) | 0) / 1e5;
23133
+ return lt - We[ht - 1] < We[ht] - lt && ht--, (We[ht] * 10 ** (it + 5) | 0) / 1e5;
23119
23134
  }, rt = [0, 24, 12, 8, 6, 4, 3, 2, 1][K], nt = C ? 10 ** (3 / (rt * 10)) : 2 ** (1 / rt), Qe = nt ** 0.5;
23120
23135
  let Ze = C ? 7.94328235 / (rt % 2 ? 1 : Qe) : C_1;
23121
23136
  do {
23122
23137
  let et = Ze;
23123
- const We = Je(et / Qe, 4, !0), it = Je(et * Qe, 4, !0), [ot, ht] = $e(We), [gt, pt] = $e(it);
23124
- C ? et = rt < 4 ? Ke(et) : Je(et, et.toString()[0] < 5 ? 3 : 2) : et = Je(et, 4, !0), et >= V && Oe({ posX: 0, freq: et, freqLo: We, freqHi: it, binLo: ot, binHi: gt, ratioLo: ht, ratioHi: pt }), Ze *= nt;
23138
+ const We = Je(et / Qe, 4, !0), it = Je(et * Qe, 4, !0), [lt, ht] = $e(We), [dt, mt] = $e(it);
23139
+ C ? et = rt < 4 ? Ke(et) : Je(et, et.toString()[0] < 5 ? 3 : 2) : et = Je(et, 4, !0), et >= V && Oe({ posX: 0, freq: et, freqLo: We, freqHi: it, binLo: lt, binHi: dt, ratioLo: ht, ratioHi: mt }), Ze *= nt;
23125
23140
  } while (Ze <= U);
23126
- Re = Be / E.length, E.forEach((et, We) => et.posX = Ue + We * Re);
23141
+ Re = Be / E.length, E.forEach((et, We) => et.posX = Ve + We * Re);
23127
23142
  const tt = E[0], st = E[E.length - 1];
23128
23143
  Me = this._freqScaling(tt.freqLo), Ne = Be / (this._freqScaling(st.freqHi) - Me), tt.freqLo < V && (tt.freqLo = V, [tt.binLo, tt.ratioLo] = $e(V)), st.freqHi > U && (st.freqHi = U, [st.binHi, st.ratioHi] = $e(U));
23129
23144
  } else if (Ee) {
@@ -23140,14 +23155,14 @@ class AudioMotionAnalyzer {
23140
23155
  Re = Be / Je, Me = this._freqScaling(V), Ne = Be / (this._freqScaling(U) - Me);
23141
23156
  for (let rt = 0, nt = 0; rt < Je; rt++, nt += Re) {
23142
23157
  const Qe = Ke(Me + nt / Ne), Ze = Ke(Me + (nt + Re / 2) / Ne), tt = Ke(Me + (nt + Re) / Ne), [st, et] = $e(Qe), [We, it] = $e(tt);
23143
- Oe({ posX: Ue + nt, freq: Ze, freqLo: Qe, freqHi: tt, binLo: st, binHi: We, ratioLo: et, ratioHi: it });
23158
+ Oe({ posX: Ve + nt, freq: Ze, freqLo: Qe, freqHi: tt, binLo: st, binHi: We, ratioLo: et, ratioHi: it });
23144
23159
  }
23145
23160
  } else {
23146
23161
  Re = 1, Me = this._freqScaling(V), Ne = Be / (this._freqScaling(U) - Me);
23147
23162
  const Je = this._freqToBin(V, "floor"), Ke = this._freqToBin(U);
23148
23163
  let rt = -999;
23149
23164
  for (let nt = Je; nt <= Ke; nt++) {
23150
- const Qe = this._binToFreq(nt), Ze = Ue + Math.round(Ne * (this._freqScaling(Qe) - Me));
23165
+ const Qe = this._binToFreq(nt), Ze = Ve + Math.round(Ne * (this._freqScaling(Qe) - Me));
23151
23166
  if (Ze > rt)
23152
23167
  Oe({ posX: Ze, freq: Qe, freqLo: Qe, freqHi: Qe, binLo: nt, binHi: nt, ratioLo: 0, ratioHi: 0 }), rt = Ze;
23153
23168
  else if (E.length) {
@@ -23177,7 +23192,7 @@ class AudioMotionAnalyzer {
23177
23192
  [24, 16, 0.125]
23178
23193
  // mode 8
23179
23194
  ], rt = this._ledParams, [nt, Qe, Ze] = rt || Ke[K];
23180
- let tt, st = He;
23195
+ let tt, st = Ue;
23181
23196
  if (rt) {
23182
23197
  const et = 2 * Je;
23183
23198
  let We;
@@ -23204,10 +23219,10 @@ class AudioMotionAnalyzer {
23204
23219
  });
23205
23220
  const Ye = [];
23206
23221
  for (const Je of [0, 1]) {
23207
- const Ke = B == CHANNEL_VERTICAL ? (Ge + je) * Je : 0, rt = Ke + Ge, nt = Ke + He - (!Te || Le ? 0 : Xe);
23222
+ const Ke = B == CHANNEL_VERTICAL ? (Ge + je) * Je : 0, rt = Ke + Ge, nt = Ke + Ue - (!Te || Le ? 0 : Xe);
23208
23223
  Ye.push({ channelTop: Ke, channelBottom: rt, analyzerBottom: nt });
23209
23224
  }
23210
- this._aux = { analyzerHeight: He, analyzerWidth: Be, centerX: _e, centerY: xe, channelCoords: Ye, channelHeight: Ge, channelGap: je, initialX: Ue, innerRadius: ze, outerRadius: Ve, scaleMin: Me, unitWidth: Ne }, this._flg = { isAlpha: Ie, isBands: Ee, isLeds: Te, isLumi: we, isOctaves: Ae, isOutline: Fe, isRound: ke, noLedGap: Le }, this._createScales();
23225
+ this._aux = { analyzerHeight: Ue, analyzerWidth: Be, centerX: _e, centerY: xe, channelCoords: Ye, channelHeight: Ge, channelGap: je, initialX: Ve, innerRadius: ze, outerRadius: He, scaleMin: Me, unitWidth: Ne }, this._flg = { isAlpha: Ie, isBands: Ee, isLeds: Te, isLumi: we, isOctaves: Ae, isOutline: Fe, isRound: ke, noLedGap: Le }, this._createScales();
23211
23226
  }
23212
23227
  /**
23213
23228
  * Generate the X-axis and radial scales in auxiliary canvases
@@ -23219,32 +23234,32 @@ class AudioMotionAnalyzer {
23219
23234
  if (!K && (this._ansiBands || V != SCALE_LOG))
23220
23235
  Se.push(16, 31.5, 63, 125, 250, 500, 1e3, 2e3, 4e3), V == SCALE_LINEAR ? Se.push(6e3, 8e3, 1e4, 12e3, 14e3, 16e3, 18e3, 2e4, 22e3) : Se.push(8e3, 16e3);
23221
23236
  else {
23222
- let Ve = C_1;
23237
+ let He = C_1;
23223
23238
  for (let Oe = -1; Oe < 11; Oe++)
23224
23239
  for (let $e = 0; $e < 12; $e++) {
23225
- if (Ve >= this._minFreq && Ve <= this._maxFreq) {
23240
+ if (He >= this._minFreq && He <= this._maxFreq) {
23226
23241
  const Re = Te[$e], Me = Re == "C";
23227
- (Re && K && !X && !Pe || Me) && Se.push(K ? [Ve, Re + (Me ? Oe : "")] : Ve);
23242
+ (Re && K && !X && !Pe || Me) && Se.push(K ? [He, Re + (Me ? Oe : "")] : He);
23228
23243
  }
23229
- Ve *= Ge;
23244
+ He *= Ge;
23230
23245
  }
23231
23246
  }
23232
23247
  xe.width = xe.height = Math.max(Ae * 0.15, (R << 1) + Ee * we);
23233
- const He = xe.width >> 1, Be = He - we * 0.7, je = (Ve, Oe) => {
23234
- const $e = TAU * (Ve / U.width), Re = $e - HALF_PI, Me = Be * Math.cos(Re), Ne = Be * Math.sin(Re);
23235
- Z.save(), Z.translate(He + Me, He + Ne), Z.rotate($e), Z.fillText(Oe, 0, 0), Z.restore();
23248
+ const Ue = xe.width >> 1, Be = Ue - we * 0.7, je = (He, Oe) => {
23249
+ const $e = TAU * (He / U.width), Re = $e - HALF_PI, Me = Be * Math.cos(Re), Ne = Be * Math.sin(Re);
23250
+ Z.save(), Z.translate(Ue + Me, Ue + Ne), Z.rotate($e), Z.fillText(Oe, 0, 0), Z.restore();
23236
23251
  };
23237
- _e.width |= 0, Y.fillStyle = Z.strokeStyle = SCALEX_BACKGROUND_COLOR, Y.fillRect(0, 0, _e.width, _e.height), Z.arc(He, He, He - we / 2, 0, TAU), Z.lineWidth = we, Z.stroke(), Y.fillStyle = Z.fillStyle = SCALEX_LABEL_COLOR, Y.font = `${Ie}px ${FONT_FAMILY}`, Z.font = `${Fe}px ${FONT_FAMILY}`, Y.textAlign = Z.textAlign = "center";
23238
- let Ue = -ke / 4, ze = -Le;
23239
- for (const Ve of Se) {
23240
- const [Oe, $e] = Array.isArray(Ve) ? Ve : [Ve, Ve < 1e3 ? Ve | 0 : `${(Ve / 100 | 0) / 10}k`], Re = B * (this._freqScaling(Oe) - I), Me = _e.height * 0.75, Ne = $e[0] == "C", De = Ie * (K && !X && !Pe ? Ne ? 1.2 : 0.6 : 3);
23252
+ _e.width |= 0, Y.fillStyle = Z.strokeStyle = SCALEX_BACKGROUND_COLOR, Y.fillRect(0, 0, _e.width, _e.height), Z.arc(Ue, Ue, Ue - we / 2, 0, TAU), Z.lineWidth = we, Z.stroke(), Y.fillStyle = Z.fillStyle = SCALEX_LABEL_COLOR, Y.font = `${Ie}px ${FONT_FAMILY}`, Z.font = `${Fe}px ${FONT_FAMILY}`, Y.textAlign = Z.textAlign = "center";
23253
+ let Ve = -ke / 4, ze = -Le;
23254
+ for (const He of Se) {
23255
+ const [Oe, $e] = Array.isArray(He) ? He : [He, He < 1e3 ? He | 0 : `${(He / 100 | 0) / 10}k`], Re = B * (this._freqScaling(Oe) - I), Me = _e.height * 0.75, Ne = $e[0] == "C", De = Ie * (K && !X && !Pe ? Ne ? 1.2 : 0.6 : 3);
23241
23256
  if (Y.fillStyle = Z.fillStyle = Ne && !X && !Pe ? SCALEX_HIGHLIGHT_COLOR : SCALEX_LABEL_COLOR, K) {
23242
23257
  const Xe = V == SCALE_LOG, qe = V == SCALE_LINEAR;
23243
23258
  let Ye = ["C"];
23244
23259
  if ((Xe || Oe > 2e3 || !qe && Oe > 250 || (!J || Ee) && (!qe && Oe > 125 || Oe > 1e3)) && Ye.push("G"), (Xe || Oe > 4e3 || !qe && Oe > 500 || (!J || Ee) && (!qe && Oe > 250 || Oe > 2e3)) && Ye.push("E"), (qe && Oe > 4e3 || (!J || Ee) && (Xe || Oe > 2e3 || !qe && Oe > 500)) && Ye.push("D", "F", "A", "B"), !Ye.includes($e[0]))
23245
23260
  continue;
23246
23261
  }
23247
- Re >= Ue + ke / 2 && Re <= E && (Y.fillText($e, Pe && X == -1 ? E - Re : C + Re, Me, De), (Pe || X && (Re > ke || X == 1)) && Y.fillText($e, Pe && X != 1 ? E + Re : (C || U.width) - Re, Me, De), Ue = Re + Math.min(De, Y.measureText($e).width) / 2), Re >= ze + Le && Re < E - Le && (je(Pe && X == 1 ? E - Re : Re, $e), (Pe || X && (Re > Le || X == 1)) && je(Pe && X != -1 ? E + Re : -Re, $e), ze = Re);
23262
+ Re >= Ve + ke / 2 && Re <= E && (Y.fillText($e, Pe && X == -1 ? E - Re : C + Re, Me, De), (Pe || X && (Re > ke || X == 1)) && Y.fillText($e, Pe && X != 1 ? E + Re : (C || U.width) - Re, Me, De), Ve = Re + Math.min(De, Y.measureText($e).width) / 2), Re >= ze + Le && Re < E - Le && (je(Pe && X == 1 ? E - Re : Re, $e), (Pe || X && (Re > Le || X == 1)) && je(Pe && X != -1 ? E + Re : -Re, $e), ze = Re);
23248
23263
  }
23249
23264
  }
23250
23265
  /**
@@ -23281,12 +23296,12 @@ class AudioMotionAnalyzer {
23281
23296
  canvas: ke,
23282
23297
  _canvasGradients: Le,
23283
23298
  _chLayout: Ge,
23284
- _colorMode: He,
23299
+ _colorMode: Ue,
23285
23300
  _ctx: Be,
23286
23301
  _energy: je,
23287
- _fadePeaks: Ue,
23302
+ _fadePeaks: Ve,
23288
23303
  fillAlpha: ze,
23289
- _fps: Ve,
23304
+ _fps: He,
23290
23305
  _linearAmplitude: Oe,
23291
23306
  _lineWidth: $e,
23292
23307
  maxDecibels: Re,
@@ -23299,12 +23314,12 @@ class AudioMotionAnalyzer {
23299
23314
  showPeaks: Je,
23300
23315
  useCanvas: Ke,
23301
23316
  _weightingFilter: rt
23302
- } = this, nt = this._scaleX.canvas, Qe = this._scaleR.canvas, Ze = Ve * this._peakFadeTime / 1e3, tt = Ve ** 2, st = this._gravity * 1e3, et = Ve * this._peakHoldTime / 1e3, We = Ge == CHANNEL_COMBINED, it = Ge == CHANNEL_HORIZONTAL, ot = Ge == CHANNEL_VERTICAL, ht = Ge == CHANNEL_SINGLE, gt = V && this._trueLeds && He == COLOR_GRADIENT, pt = qe ? ke.width : this._aux.analyzerWidth, ft = Te + pt, mt = Je && this._peakLine && De == MODE_GRAPH, ct = qe ? Ie - we : _e, xt = ct / this._pixelRatio, [bt, It, Et, Ft] = this._leds || [];
23303
- je.val > 0 && Ve > 0 && (this._spinAngle += this._spinSpeed * TAU / 60 / Ve);
23317
+ } = this, nt = this._scaleX.canvas, Qe = this._scaleR.canvas, Ze = He * this._peakFadeTime / 1e3, tt = He ** 2, st = this._gravity * 1e3, et = He * this._peakHoldTime / 1e3, We = Ge == CHANNEL_COMBINED, it = Ge == CHANNEL_HORIZONTAL, lt = Ge == CHANNEL_VERTICAL, ht = Ge == CHANNEL_SINGLE, dt = V && this._trueLeds && Ue == COLOR_GRADIENT, mt = qe ? ke.width : this._aux.analyzerWidth, ct = Te + mt, pt = Je && this._peakLine && De == MODE_GRAPH, yt = qe ? Ie - we : _e, gt = yt / this._pixelRatio, [xt, It, St, Mt] = this._leds || [];
23318
+ je.val > 0 && He > 0 && (this._spinAngle += this._spinSpeed * TAU / 60 / He);
23304
23319
  const qt = (at) => {
23305
23320
  if (this._reflexRatio > 0 && !X && !qe) {
23306
23321
  let vt, Lt;
23307
- this.reflexFit || ot ? (vt = ot && at == 0 ? Ee + Ae : 0, Lt = Ee - _e) : (vt = ke.height - _e * 2, Lt = _e), Be.save(), Be.globalAlpha = this.reflexAlpha, this.reflexBright != 1 && (Be.filter = `brightness(${this.reflexBright})`), Be.setTransform(1, 0, 0, -1, 0, ke.height), Be.drawImage(ke, 0, Pe[at].channelTop, ke.width, _e, 0, vt, ke.width, Lt), Be.restore();
23322
+ this.reflexFit || lt ? (vt = lt && at == 0 ? Ee + Ae : 0, Lt = Ee - _e) : (vt = ke.height - _e * 2, Lt = _e), Be.save(), Be.globalAlpha = this.reflexAlpha, this.reflexBright != 1 && (Be.filter = `brightness(${this.reflexBright})`), Be.setTransform(1, 0, 0, -1, 0, ke.height), Be.drawImage(ke, 0, Pe[at].channelTop, ke.width, _e, 0, vt, ke.width, Lt), Be.restore();
23308
23323
  }
23309
23324
  }, Wt = () => {
23310
23325
  this.showScaleX && (qe ? (Be.save(), Be.translate(xe, Se), this._spinSpeed && Be.rotate(this._spinAngle + HALF_PI), Be.drawImage(Qe, -Qe.width >> 1, -Qe.width >> 1), Be.restore()) : Be.drawImage(nt, 0, ke.height - nt.height));
@@ -23335,131 +23350,131 @@ class AudioMotionAnalyzer {
23335
23350
  const vt = Be.globalAlpha;
23336
23351
  Be.globalAlpha = 1, Be.stroke(), Be.globalAlpha = vt;
23337
23352
  }
23338
- }, Ut = (at) => Math.max(0, (at * bt | 0) * (Ft + Et) - Et), Ir = (at) => {
23353
+ }, Ut = (at) => Math.max(0, (at * xt | 0) * (Mt + St) - St), Ir = (at) => {
23339
23354
  je.val = at, je.peak > 0 && (je.hold--, je.hold < 0 && (je.peak += je.hold * st / tt / ke.height * this._pixelRatio)), at >= je.peak && (je.peak = at, je.hold = et);
23340
23355
  };
23341
23356
  Xe && Be.clearRect(0, 0, ke.width, ke.height);
23342
23357
  let Sr = 0;
23343
23358
  const Er = Fe.length, Tr = ht ? 1 : 2;
23344
23359
  for (let at = 0; at < Tr; at++) {
23345
- const { channelTop: vt, channelBottom: Lt, analyzerBottom: At } = Pe[at], ir = this._gradients[this._selectedGrads[at]], Dt = ir.colorStops, Nt = Dt.length, Vt = !Ye || V && !Xe ? "#000" : ir.bgColor, Ht = ot && qe && at ? -1 : 1, zt = !at && Ne == -1 || at && Ne == 1, pr = !it || at && Ne != 1 ? 0 : pt >> (at || !zt), nr = it && zt ? -1 : 1, mr = () => {
23346
- const lt = nt.height, ut = lt >> 1, dt = Oe ? 100 : Re, _t = Oe ? 0 : Me, St = Oe ? 20 : 5, Pt = _e / (dt - _t), $t = Ne != -1 && (!it || at == 0 || Ne == 1), Bt = Ne != 1 && (!it || at != Ne);
23360
+ const { channelTop: vt, channelBottom: Lt, analyzerBottom: At } = Pe[at], ir = this._gradients[this._selectedGrads[at]], Dt = ir.colorStops, Nt = Dt.length, Vt = !Ye || V && !Xe ? "#000" : ir.bgColor, Ht = lt && qe && at ? -1 : 1, zt = !at && Ne == -1 || at && Ne == 1, pr = !it || at && Ne != 1 ? 0 : mt >> (at || !zt), nr = it && zt ? -1 : 1, mr = () => {
23361
+ const ot = nt.height, ut = ot >> 1, ft = Oe ? 100 : Re, bt = Oe ? 0 : Me, Et = Oe ? 20 : 5, Pt = _e / (ft - bt), $t = Ne != -1 && (!it || at == 0 || Ne == 1), Bt = Ne != 1 && (!it || at != Ne);
23347
23362
  Be.save(), Be.fillStyle = SCALEY_LABEL_COLOR, Be.font = `${ut}px ${FONT_FAMILY}`, Be.textAlign = "right", Be.lineWidth = 1;
23348
- for (let Gt = dt; Gt > _t; Gt -= St) {
23349
- const Kt = vt + (dt - Gt) * Pt, Tt = Gt % 2 == 0 | 0;
23363
+ for (let Gt = ft; Gt > bt; Gt -= Et) {
23364
+ const Kt = vt + (ft - Gt) * Pt, Tt = Gt % 2 == 0 | 0;
23350
23365
  if (Tt) {
23351
23366
  const Ct = Kt + ut * (Kt == vt ? 0.8 : 0.35);
23352
- $t && Be.fillText(Gt, lt * 0.85, Ct), Bt && Be.fillText(Gt, (it ? pt : ke.width) - lt * 0.1, Ct), Be.strokeStyle = SCALEY_LABEL_COLOR, Be.setLineDash([2, 4]), Be.lineDashOffset = 0;
23367
+ $t && Be.fillText(Gt, ot * 0.85, Ct), Bt && Be.fillText(Gt, (it ? mt : ke.width) - ot * 0.1, Ct), Be.strokeStyle = SCALEY_LABEL_COLOR, Be.setLineDash([2, 4]), Be.lineDashOffset = 0;
23353
23368
  } else
23354
23369
  Be.strokeStyle = SCALEY_MIDLINE_COLOR, Be.setLineDash([2, 8]), Be.lineDashOffset = 1;
23355
- Be.beginPath(), Be.moveTo(Te + lt * Tt * $t, ~~Kt + 0.5), Be.lineTo(ft - lt * Tt * Bt, ~~Kt + 0.5), Be.stroke();
23370
+ Be.beginPath(), Be.moveTo(Te + ot * Tt * $t, ~~Kt + 0.5), Be.lineTo(ct - ot * Tt * Bt, ~~Kt + 0.5), Be.stroke();
23356
23371
  }
23357
23372
  Be.restore();
23358
- }, sr = (lt, ut) => {
23359
- const dt = kt[lt] + (lt < kt.length - 1 ? (kt[lt + 1] - kt[lt]) * ut : 0);
23360
- return isNaN(dt) ? -1 / 0 : dt;
23361
- }, jt = (lt, ut = nr) => ut * TAU * ((lt + pr) / ke.width) + this._spinAngle, wt = (lt, ut, dt) => {
23362
- const _t = we + ut * Ht, St = jt(lt, dt);
23363
- return [xe + _t * Math.cos(St), Se + _t * Math.sin(St)];
23364
- }, gr = (lt, ut, dt, _t, St) => {
23373
+ }, sr = (ot, ut) => {
23374
+ const ft = kt[ot] + (ot < kt.length - 1 ? (kt[ot + 1] - kt[ot]) * ut : 0);
23375
+ return isNaN(ft) ? -1 / 0 : ft;
23376
+ }, jt = (ot, ut = nr) => ut * TAU * ((ot + pr) / ke.width) + this._spinAngle, wt = (ot, ut, ft) => {
23377
+ const bt = we + ut * Ht, Et = jt(ot, ft);
23378
+ return [xe + bt * Math.cos(Et), Se + bt * Math.sin(Et)];
23379
+ }, gr = (ot, ut, ft, bt, Et) => {
23365
23380
  Be.beginPath();
23366
23381
  for (const Pt of Ne && !it ? [1, -1] : [nr]) {
23367
- const [$t, Bt] = Y ? [jt(lt, Pt), jt(lt + dt, Pt)] : [];
23368
- Be.moveTo(...wt(lt, ut, Pt)), Be.lineTo(...wt(lt, ut + _t, Pt)), Y ? Be.arc(xe, Se, we + (ut + _t) * Ht, $t, Bt, Pt != 1) : Be.lineTo(...wt(lt + dt, ut + _t, Pt)), Be.lineTo(...wt(lt + dt, ut, Pt)), Y && !St && Be.arc(xe, Se, we + ut * Ht, Bt, $t, Pt == 1);
23369
- }
23370
- dr(St), Be.fill();
23371
- }, vr = (lt = 0, ut = 0) => {
23372
- let dt;
23373
- if (He == COLOR_GRADIENT && !gt || De == MODE_GRAPH)
23374
- dt = Le[at];
23382
+ const [$t, Bt] = Y ? [jt(ot, Pt), jt(ot + ft, Pt)] : [];
23383
+ Be.moveTo(...wt(ot, ut, Pt)), Be.lineTo(...wt(ot, ut + bt, Pt)), Y ? Be.arc(xe, Se, we + (ut + bt) * Ht, $t, Bt, Pt != 1) : Be.lineTo(...wt(ot + ft, ut + bt, Pt)), Be.lineTo(...wt(ot + ft, ut, Pt)), Y && !Et && Be.arc(xe, Se, we + ut * Ht, Bt, $t, Pt == 1);
23384
+ }
23385
+ dr(Et), Be.fill();
23386
+ }, vr = (ot = 0, ut = 0) => {
23387
+ let ft;
23388
+ if (Ue == COLOR_GRADIENT && !dt || De == MODE_GRAPH)
23389
+ ft = Le[at];
23375
23390
  else {
23376
- const _t = He == COLOR_BAR_INDEX ? ut % Nt : Dt.findLastIndex((St) => V ? Ut(lt) <= Ut(St.level) : lt <= St.level);
23377
- dt = Dt[_t].color;
23391
+ const bt = Ue == COLOR_BAR_INDEX ? ut % Nt : Dt.findLastIndex((Et) => V ? Ut(ot) <= Ut(Et.level) : ot <= Et.level);
23392
+ ft = Dt[bt].color;
23378
23393
  }
23379
- Be.fillStyle = Be.strokeStyle = dt;
23394
+ Be.fillStyle = Be.strokeStyle = ft;
23380
23395
  };
23381
23396
  if (Ke) {
23382
23397
  if (it && !qe) {
23383
- const lt = pt * (at + zt), ut = zt ? -1 : 1;
23384
- Be.setTransform(ut, 0, 0, 1, lt, 0);
23398
+ const ot = mt * (at + zt), ut = zt ? -1 : 1;
23399
+ Be.setTransform(ut, 0, 0, 1, ot, 0);
23385
23400
  }
23386
- if ((!Xe || Ye) && (Xe && (Be.globalAlpha = this.bgAlpha), Be.fillStyle = Vt, (at == 0 || !qe && !We) && Be.fillRect(Te, vt - Ae, pt, (Xe && this.reflexAlpha == 1 ? _e : Ee) + Ae), Be.globalAlpha = 1), this.showScaleY && !X && !qe && (at == 0 || !We) && mr(), V ? (Be.setLineDash([Ft, Et]), Be.lineWidth = Fe[0].width) : Be.lineWidth = J ? Math.min($e, Fe[0].width / 2) : $e, Be.save(), !qe) {
23387
- const lt = new Path2D();
23388
- lt.rect(0, vt, ke.width, _e), Be.clip(lt);
23401
+ if ((!Xe || Ye) && (Xe && (Be.globalAlpha = this.bgAlpha), Be.fillStyle = Vt, (at == 0 || !qe && !We) && Be.fillRect(Te, vt - Ae, mt, (Xe && this.reflexAlpha == 1 ? _e : Ee) + Ae), Be.globalAlpha = 1), this.showScaleY && !X && !qe && (at == 0 || !We) && mr(), V ? (Be.setLineDash([Mt, St]), Be.lineWidth = Fe[0].width) : Be.lineWidth = J ? Math.min($e, Fe[0].width / 2) : $e, Be.save(), !qe) {
23402
+ const ot = new Path2D();
23403
+ ot.rect(0, vt, ke.width, _e), Be.clip(ot);
23389
23404
  }
23390
23405
  }
23391
23406
  let kt = this._fftData[at];
23392
- this._analyzer[at].getFloatFrequencyData(kt), rt && (kt = kt.map((lt, ut) => lt + Yt(this._binToFreq(ut)))), Be.beginPath();
23407
+ this._analyzer[at].getFloatFrequencyData(kt), rt && (kt = kt.map((ot, ut) => ot + Yt(this._binToFreq(ut)))), Be.beginPath();
23393
23408
  let er = [];
23394
- for (let lt = 0; lt < Er; lt++) {
23395
- const ut = Fe[lt], { posX: dt, barCenter: _t, width: St, freq: Pt, binLo: $t, binHi: Bt, ratioLo: Gt, ratioHi: Kt } = ut;
23409
+ for (let ot = 0; ot < Er; ot++) {
23410
+ const ut = Fe[ot], { posX: ft, barCenter: bt, width: Et, freq: Pt, binLo: $t, binHi: Bt, ratioLo: Gt, ratioHi: Kt } = ut;
23396
23411
  let Tt = Math.max(sr($t, Gt), sr(Bt, Kt));
23397
- for (let yt = $t + 1; yt < Bt; yt++)
23398
- kt[yt] > Tt && (Tt = kt[yt]);
23412
+ for (let _t = $t + 1; _t < Bt; _t++)
23413
+ kt[_t] > Tt && (Tt = kt[_t]);
23399
23414
  if (Tt = this._normalizedB(Tt), ut.value[at] = Tt, Sr += Tt, ut.peak[at] > 0 && ut.alpha[at] > 0 && (ut.hold[at]--, ut.hold[at] < 0)) {
23400
- if (Ue && !mt) {
23401
- const yt = !B || J && $e > 0 ? 1 : B ? ut.peak[at] : ze;
23402
- ut.alpha[at] = yt * (1 + ut.hold[at] / Ze);
23415
+ if (Ve && !pt) {
23416
+ const _t = !B || J && $e > 0 ? 1 : B ? ut.peak[at] : ze;
23417
+ ut.alpha[at] = _t * (1 + ut.hold[at] / Ze);
23403
23418
  } else
23404
- ut.peak[at] += ut.hold[at] * st / tt / xt;
23419
+ ut.peak[at] += ut.hold[at] * st / tt / gt;
23405
23420
  ut.alpha[at] <= 0 && (ut.peak[at] = 0);
23406
23421
  }
23407
23422
  if (Tt >= ut.peak[at] && (ut.peak[at] = Tt, ut.hold[at] = et, ut.alpha[at] = !B || J && $e > 0 ? 1 : B ? Tt : ze), !Ke)
23408
23423
  continue;
23409
- Be.globalAlpha = X || B ? Tt : J ? ze : 1, vr(Tt, lt);
23410
- const Ct = X ? ct : V ? Ut(Tt) : Tt * ct | 0;
23424
+ Be.globalAlpha = X || B ? Tt : J ? ze : 1, vr(Tt, ot);
23425
+ const Ct = X ? yt : V ? Ut(Tt) : Tt * yt | 0;
23411
23426
  if (De == MODE_GRAPH) {
23412
- const yt = lt ? 0 : (this._normalizedB(kt[Fe[1].binLo]) * ct + Ct) / 2;
23427
+ const _t = ot ? 0 : (this._normalizedB(kt[Fe[1].binLo]) * yt + Ct) / 2;
23413
23428
  if (qe) {
23414
- if (lt == 0 && (it && Be.moveTo(...wt(0, 0)), Be.lineTo(...wt(0, dt < 0 ? yt : Ct))), dt >= 0) {
23415
- const Mt = [dt, Ct];
23416
- Be.lineTo(...wt(...Mt)), er.push(Mt);
23429
+ if (ot == 0 && (it && Be.moveTo(...wt(0, 0)), Be.lineTo(...wt(0, ft < 0 ? _t : Ct))), ft >= 0) {
23430
+ const Ft = [ft, Ct];
23431
+ Be.lineTo(...wt(...Ft)), er.push(Ft);
23417
23432
  }
23418
23433
  } else {
23419
- if (lt == 0)
23434
+ if (ot == 0)
23420
23435
  if (Ne == -1 && !it)
23421
- Be.moveTo(Te, At - (dt < Te ? yt : Ct));
23436
+ Be.moveTo(Te, At - (ft < Te ? _t : Ct));
23422
23437
  else {
23423
- const Mt = $t ? this._normalizedB(kt[$t - 1]) * ct : Ct;
23424
- Be.moveTo(Te - $e, At - Mt);
23438
+ const Ft = $t ? this._normalizedB(kt[$t - 1]) * yt : Ct;
23439
+ Be.moveTo(Te - $e, At - Ft);
23425
23440
  }
23426
- (it || Ne != -1 || dt >= Te) && Be.lineTo(dt, At - Ct);
23441
+ (it || Ne != -1 || ft >= Te) && Be.lineTo(ft, At - Ct);
23427
23442
  }
23428
23443
  } else if (V) {
23429
23444
  if (Ye && !Xe && (at == 0 || !We)) {
23430
- const yt = Be.globalAlpha;
23431
- Be.strokeStyle = LEDS_UNLIT_COLOR, Be.globalAlpha = 1, fr(_t, vt, At), Be.strokeStyle = Be.fillStyle, Be.globalAlpha = yt;
23445
+ const _t = Be.globalAlpha;
23446
+ Be.strokeStyle = LEDS_UNLIT_COLOR, Be.globalAlpha = 1, fr(bt, vt, At), Be.strokeStyle = Be.fillStyle, Be.globalAlpha = _t;
23432
23447
  }
23433
- if (gt) {
23434
- const yt = X ? 0 : Dt.findLastIndex((Xt) => Ut(Tt) <= Ut(Xt.level));
23435
- let Mt = At;
23436
- for (let Xt = Nt - 1; Xt >= yt; Xt--) {
23448
+ if (dt) {
23449
+ const _t = X ? 0 : Dt.findLastIndex((Xt) => Ut(Tt) <= Ut(Xt.level));
23450
+ let Ft = At;
23451
+ for (let Xt = Nt - 1; Xt >= _t; Xt--) {
23437
23452
  Be.strokeStyle = Dt[Xt].color;
23438
- let Cr = At - (Xt == yt ? Ct : Ut(Dt[Xt].level));
23439
- fr(_t, Mt, Cr), Mt = Cr - Et;
23453
+ let Cr = At - (Xt == _t ? Ct : Ut(Dt[Xt].level));
23454
+ fr(bt, Ft, Cr), Ft = Cr - St;
23440
23455
  }
23441
23456
  } else
23442
- fr(_t, At, At - Ct);
23443
- } else if (dt >= Te)
23457
+ fr(bt, At, At - Ct);
23458
+ } else if (ft >= Te)
23444
23459
  if (qe)
23445
- gr(dt, 0, St, Ct, J);
23460
+ gr(ft, 0, Et, Ct, J);
23446
23461
  else if (Y) {
23447
- const yt = St / 2, Mt = At + yt;
23448
- Be.beginPath(), Be.moveTo(dt, Mt), Be.lineTo(dt, Mt - Ct), Be.arc(_t, Mt - Ct, yt, PI, TAU), Be.lineTo(dt + St, Mt), dr(J), Be.fill();
23462
+ const _t = Et / 2, Ft = At + _t;
23463
+ Be.beginPath(), Be.moveTo(ft, Ft), Be.lineTo(ft, Ft - Ct), Be.arc(bt, Ft - Ct, _t, PI, TAU), Be.lineTo(ft + Et, Ft), dr(J), Be.fill();
23449
23464
  } else {
23450
- const yt = J ? Be.lineWidth : 0;
23451
- Be.beginPath(), Be.rect(dt, At + yt, St, -Ct - yt), dr(J), Be.fill();
23465
+ const _t = J ? Be.lineWidth : 0;
23466
+ Be.beginPath(), Be.rect(ft, At + _t, Et, -Ct - _t), dr(J), Be.fill();
23452
23467
  }
23453
23468
  const Zt = ut.peak[at], Ar = ut.alpha[at];
23454
- if (Zt > 0 && Ar > 0 && Je && !mt && !X && dt >= Te && dt < ft) {
23455
- if (Ue ? Be.globalAlpha = Ar : J && $e > 0 ? Be.globalAlpha = 1 : B && (Be.globalAlpha = Zt), (He == COLOR_BAR_LEVEL || gt) && vr(Zt), V) {
23456
- const yt = Ut(Zt);
23457
- yt >= Et && Be.fillRect(dt, At - yt, St, Ft);
23469
+ if (Zt > 0 && Ar > 0 && Je && !pt && !X && ft >= Te && ft < ct) {
23470
+ if (Ve ? Be.globalAlpha = Ar : J && $e > 0 ? Be.globalAlpha = 1 : B && (Be.globalAlpha = Zt), (Ue == COLOR_BAR_LEVEL || dt) && vr(Zt), V) {
23471
+ const _t = Ut(Zt);
23472
+ _t >= St && Be.fillRect(ft, At - _t, Et, Mt);
23458
23473
  } else if (!qe)
23459
- Be.fillRect(dt, At - Zt * ct, St, 2);
23474
+ Be.fillRect(ft, At - Zt * yt, Et, 2);
23460
23475
  else if (De != MODE_GRAPH) {
23461
- const yt = Zt * ct;
23462
- gr(dt, yt, St, !this._radialInvert || ot || yt + we >= 2 ? -2 : 2);
23476
+ const _t = Zt * yt;
23477
+ gr(ft, _t, Et, !this._radialInvert || lt || _t + we >= 2 ? -2 : 2);
23463
23478
  }
23464
23479
  }
23465
23480
  }
@@ -23467,31 +23482,31 @@ class AudioMotionAnalyzer {
23467
23482
  if (Be.globalAlpha = 1, De == MODE_GRAPH) {
23468
23483
  if (vr(), qe && !it) {
23469
23484
  if (Ne) {
23470
- let lt;
23471
- for (; lt = er.pop(); )
23472
- Be.lineTo(...wt(...lt, -1));
23485
+ let ot;
23486
+ for (; ot = er.pop(); )
23487
+ Be.lineTo(...wt(...ot, -1));
23473
23488
  }
23474
23489
  Be.closePath();
23475
23490
  }
23476
23491
  if ($e > 0 && Be.stroke(), ze > 0) {
23477
23492
  if (qe) {
23478
- const lt = it ? jt(pt >> 1) : 0, ut = it ? jt(pt) : TAU;
23479
- Be.moveTo(...wt(it ? pt >> 1 : 0, 0)), Be.arc(xe, Se, we, lt, ut, it ? !zt : !0);
23493
+ const ot = it ? jt(mt >> 1) : 0, ut = it ? jt(mt) : TAU;
23494
+ Be.moveTo(...wt(it ? mt >> 1 : 0, 0)), Be.arc(xe, Se, we, ot, ut, it ? !zt : !0);
23480
23495
  } else
23481
- Be.lineTo(ft, At), Be.lineTo(Te, At);
23496
+ Be.lineTo(ct, At), Be.lineTo(Te, At);
23482
23497
  Be.globalAlpha = ze, Be.fill(), Be.globalAlpha = 1;
23483
23498
  }
23484
- if ((mt || qe && Je) && (er = [], Be.beginPath(), Fe.forEach((lt, ut) => {
23485
- let dt = lt.posX, _t = lt.peak[at], St = ut ? "lineTo" : "moveTo";
23486
- if (qe && dt < 0) {
23499
+ if ((pt || qe && Je) && (er = [], Be.beginPath(), Fe.forEach((ot, ut) => {
23500
+ let ft = ot.posX, bt = ot.peak[at], Et = ut ? "lineTo" : "moveTo";
23501
+ if (qe && ft < 0) {
23487
23502
  const Pt = Fe[ut + 1];
23488
- _t = findY(dt, _t, Pt.posX, Pt.peak[at], 0), dt = 0;
23503
+ bt = findY(ft, bt, Pt.posX, Pt.peak[at], 0), ft = 0;
23489
23504
  }
23490
- _t *= ct, mt ? (Be[St](...qe ? wt(dt, _t) : [dt, At - _t]), qe && Ne && !it && er.push([dt, _t])) : _t > 0 && gr(dt, _t, 1, -2);
23491
- }), mt)) {
23492
- let lt;
23493
- for (; lt = er.pop(); )
23494
- Be.lineTo(...wt(...lt, -1));
23505
+ bt *= yt, pt ? (Be[Et](...qe ? wt(ft, bt) : [ft, At - bt]), qe && Ne && !it && er.push([ft, bt])) : bt > 0 && gr(ft, bt, 1, -2);
23506
+ }), pt)) {
23507
+ let ot;
23508
+ for (; ot = er.pop(); )
23509
+ Be.lineTo(...wt(...ot, -1));
23495
23510
  Be.lineWidth = 1, Be.stroke();
23496
23511
  }
23497
23512
  }
@@ -23500,7 +23515,7 @@ class AudioMotionAnalyzer {
23500
23515
  }
23501
23516
  if (Ir(Sr / (Er << Tr - 1)), Ke && (Ne && !qe && !it && (Be.setTransform(-1, 0, 0, 1, ke.width - Te, 0), Be.drawImage(ke, Te, 0, xe, ke.height, 0, 0, xe, ke.height), Be.setTransform(1, 0, 0, 1, 0, 0)), Be.setLineDash([]), Wt()), this.showFPS) {
23502
23517
  const at = nt.height;
23503
- Be.font = `bold ${at}px ${FONT_FAMILY}`, Be.fillStyle = FPS_COLOR, Be.textAlign = "right", Be.fillText(Math.round(Ve), ke.width - at, at * 2);
23518
+ Be.font = `bold ${at}px ${FONT_FAMILY}`, Be.fillStyle = FPS_COLOR, Be.textAlign = "right", Be.fillText(Math.round(He), ke.width - at, at * 2);
23504
23519
  }
23505
23520
  this.onCanvasDraw && (Be.save(), Be.fillStyle = Be.strokeStyle = Le[0], this.onCanvasDraw(this, { timestamp: E, canvasGradients: Le }), Be.restore());
23506
23521
  }
@@ -23544,8 +23559,8 @@ class AudioMotionAnalyzer {
23544
23559
  let Ge = ke.pos;
23545
23560
  if (we && (Ge /= 2), Z && !Y && !R && !Ae && (Ge *= _e, !we && Ge > 0.5 * _e && (Ge += 0.5 * I)), Ie == 1)
23546
23561
  if (R || Y) {
23547
- const He = Fe - Le;
23548
- ke = Ee[He], Ge = 1 - ke.pos / 2;
23562
+ const Ue = Fe - Le;
23563
+ ke = Ee[Ue], Ge = 1 - ke.pos / 2;
23549
23564
  } else
23550
23565
  Le == 0 && Ge > 0 && Te.addColorStop(0.5, ke.color), Ge += 0.5;
23551
23566
  Te.addColorStop(Ge, ke.color), Z && Le == Fe && Ge < 0.5 && Te.addColorStop(0.5, ke.color);
@@ -23764,10 +23779,10 @@ const waveConfig = {
23764
23779
  } = A, {
23765
23780
  width: Le = 300,
23766
23781
  height: Ge = 300,
23767
- x: He = 100,
23782
+ x: Ue = 100,
23768
23783
  y: Be = 100,
23769
23784
  waveform: je = Waveforms.NONE
23770
- } = ke || {}, { audioMotionRef: Ue, blobUrl: ze, canvasRef: Ve } = useAudioVisualizer({
23785
+ } = ke || {}, { audioMotionRef: Ve, blobUrl: ze, canvasRef: He } = useAudioVisualizer({
23771
23786
  uniqueId: xe,
23772
23787
  src: Se,
23773
23788
  transformation: ke
@@ -23839,21 +23854,21 @@ const waveConfig = {
23839
23854
  /// volume: !mute && visible ? 1 : 0,
23840
23855
  onload: () => {
23841
23856
  var Ne;
23842
- if (V.current.loaded = !0, K.current && (we > 0 && K.current.seek(we), K.current.volume(!Ae && Fe ? 1 : 0), K.current.rate(Te || 1), K.current.pause(), V.current.isPlaying = !1, V.current.completed = !1, Ue.current && K.current)) {
23857
+ if (V.current.loaded = !0, K.current && (we > 0 && K.current.seek(we), K.current.volume(!Ae && Fe ? 1 : 0), K.current.rate(Te || 1), K.current.pause(), V.current.isPlaying = !1, V.current.completed = !1, Ve.current && K.current)) {
23843
23858
  console.log("reconnecting the audio motion analyser");
23844
23859
  try {
23845
- Ue.current.connectInput(
23860
+ Ve.current.connectInput(
23846
23861
  // @ts-ignore
23847
23862
  K.current._sounds[0]._node
23848
23863
  );
23849
23864
  } catch (Xe) {
23850
23865
  console.log("error connecting audio motion"), console.log(Xe);
23851
23866
  }
23852
- const De = PIXI.Texture.from(Ue.current._fsEl, {
23867
+ const De = PIXI.Texture.from(Ve.current._fsEl, {
23853
23868
  // @ts-ignore
23854
- pixiIdPrefix: `${(Ne = Ue.current._container) == null ? void 0 : Ne.id}`
23869
+ pixiIdPrefix: `${(Ne = Ve.current._container) == null ? void 0 : Ne.id}`
23855
23870
  });
23856
- Y.current = De, Ve.current && Ve.current.setAttribute("style", "display:none"), B(!0);
23871
+ Y.current = De, He.current && He.current.setAttribute("style", "display:none"), B(!0);
23857
23872
  }
23858
23873
  },
23859
23874
  onend: () => {
@@ -23871,7 +23886,7 @@ const waveConfig = {
23871
23886
  }), Howler.ctx.resume().then(() => {
23872
23887
  console.log("audio ctx resumed");
23873
23888
  })), () => {
23874
- console.log("unmounting the howler useeffect"), Ue.current, K.current && (K.current.stop(), K.current.unload(), K.current = void 0);
23889
+ console.log("unmounting the howler useeffect"), Ve.current, K.current && (K.current.stop(), K.current.unload(), K.current = void 0);
23875
23890
  }), [
23876
23891
  xe,
23877
23892
  Se,
@@ -23900,7 +23915,7 @@ const waveConfig = {
23900
23915
  width: Le,
23901
23916
  height: Ge,
23902
23917
  anchor: 0.5,
23903
- x: He,
23918
+ x: Ue,
23904
23919
  y: Be,
23905
23920
  ref: J,
23906
23921
  alpha: Fe ? 1 : 0
@@ -24850,14 +24865,14 @@ Object.defineProperty(lzw$1, "__esModule", {
24850
24865
  });
24851
24866
  lzw$1.lzw = void 0;
24852
24867
  var lzw = function(E, C, R) {
24853
- var I = 4096, B = -1, U = R, V, X, K, J, Y, Z, _e, Fe, xe, Se, Ie, Pe, ke, Le, He, Ge, Ee = new Array(R), Ae = new Array(I), Te = new Array(I), we = new Array(I + 1);
24868
+ var I = 4096, B = -1, U = R, V, X, K, J, Y, Z, _e, Fe, xe, Se, Ie, Pe, ke, Le, Ue, Ge, Ee = new Array(R), Ae = new Array(I), Te = new Array(I), we = new Array(I + 1);
24854
24869
  for (Pe = E, X = 1 << Pe, Y = X + 1, V = X + 2, _e = B, J = Pe + 1, K = (1 << J) - 1, xe = 0; xe < X; xe++)
24855
24870
  Ae[xe] = 0, Te[xe] = xe;
24856
- var Ie, Fe, ke, Le, Ge, He;
24857
- for (Ie = Fe = ke = Le = Ge = He = 0, Se = 0; Se < U; ) {
24871
+ var Ie, Fe, ke, Le, Ge, Ue;
24872
+ for (Ie = Fe = ke = Le = Ge = Ue = 0, Se = 0; Se < U; ) {
24858
24873
  if (Le === 0) {
24859
24874
  if (Fe < J) {
24860
- Ie += C[He] << Fe, Fe += 8, He++;
24875
+ Ie += C[Ue] << Fe, Fe += 8, Ue++;
24861
24876
  continue;
24862
24877
  }
24863
24878
  if (xe = Ie & K, Ie >>= J, Fe -= J, xe > V || xe == Y)
@@ -25050,24 +25065,24 @@ const genearate = (A) => ({
25050
25065
  loop: we,
25051
25066
  visible: Ie,
25052
25067
  disabled: Fe,
25053
- transformation: { width: ke = 0, height: Le = 0, x: Ge, y: He, colorCorrection: Be = {} },
25068
+ transformation: { width: ke = 0, height: Le = 0, x: Ge, y: Ue, colorCorrection: Be = {} },
25054
25069
  pointerdown: je
25055
- } = A, { frames: Ue, delays: ze } = Y;
25070
+ } = A, { frames: Ve, delays: ze } = Y;
25056
25071
  useWorkerParser(xe, Z);
25057
25072
  const {
25058
- temperatureFilter: Ve,
25073
+ temperatureFilter: He,
25059
25074
  sharpnessFilter: Oe,
25060
- hueFilter: $e,
25075
+ hslFilter: $e,
25061
25076
  blurFilter: Re,
25062
25077
  adjustmentFilter: Me,
25063
25078
  vignetteFilter: Ne,
25064
25079
  noiseFilter: De
25065
25080
  } = withFiltersHook(Be), { blurRadius: Xe = 0, vignette: qe = 0, noise: Ye = 0 } = Be, Je = 0.1;
25066
25081
  React.useEffect(() => {
25067
- if (!isEmpty$2(Ue)) {
25068
- const Ze = map$1(Ue, (st) => {
25069
- const { data: et, width: We, height: it } = st, ot = new Uint8Array(et);
25070
- return PIXI.Texture.fromBuffer(ot, We, it);
25082
+ if (!isEmpty$2(Ve)) {
25083
+ const Ze = map$1(Ve, (st) => {
25084
+ const { data: et, width: We, height: it } = st, lt = new Uint8Array(et);
25085
+ return PIXI.Texture.fromBuffer(lt, We, it);
25071
25086
  }).map(
25072
25087
  (st, et) => ({
25073
25088
  texture: st,
@@ -25078,9 +25093,9 @@ const genearate = (A) => ({
25078
25093
  let tt = 0;
25079
25094
  ze.forEach((st) => {
25080
25095
  tt += st;
25081
- }), R(tt / 1e3), K.current.totalDuration = tt, K.current.totalFrames = Ue.length;
25096
+ }), R(tt / 1e3), K.current.totalDuration = tt, K.current.totalFrames = Ve.length;
25082
25097
  }
25083
- }, [Se, Ue, ze]);
25098
+ }, [Se, Ve, ze]);
25084
25099
  const Ke = () => {
25085
25100
  V.current && (V.current.stop(), K.current.isPlaying = !1);
25086
25101
  }, rt = () => {
@@ -25139,7 +25154,7 @@ const genearate = (A) => ({
25139
25154
  PixiAnimatedSprite,
25140
25155
  {
25141
25156
  x: Ge,
25142
- y: He,
25157
+ y: Ue,
25143
25158
  width: ke,
25144
25159
  height: Le,
25145
25160
  animationSpeed: 1,
@@ -25151,7 +25166,7 @@ const genearate = (A) => ({
25151
25166
  forwardRef: V,
25152
25167
  ...!Fe && Ie && { interactive: !0, pointerdown: je },
25153
25168
  filters: [
25154
- Ve,
25169
+ He,
25155
25170
  Oe,
25156
25171
  $e,
25157
25172
  Me,
@@ -25189,13 +25204,13 @@ const genearate = (A) => ({
25189
25204
  // fill
25190
25205
  fill: Ge = "black",
25191
25206
  // stroke
25192
- stroke: He,
25207
+ stroke: Ue,
25193
25208
  strokeThickness: Be = 0,
25194
25209
  // drop shadow
25195
25210
  blurRadius: je = 0,
25196
- blurEnabled: Ue = !1,
25211
+ blurEnabled: Ve = !1,
25197
25212
  dropShadowColor: ze = null,
25198
- dropShadow: Ve = !1,
25213
+ dropShadow: He = !1,
25199
25214
  dropShadowBlur: Oe = 0,
25200
25215
  // multiline
25201
25216
  wordWrapWidth: $e = 5e7,
@@ -25208,7 +25223,7 @@ const genearate = (A) => ({
25208
25223
  } = Z, {
25209
25224
  temperatureFilter: Ye,
25210
25225
  sharpnessFilter: Je,
25211
- hueFilter: Ke,
25226
+ hslFilter: Ke,
25212
25227
  blurFilter: rt,
25213
25228
  adjustmentFilter: nt
25214
25229
  } = withFiltersHook(Ne), { blurRadius: Qe = 0 } = Ne;
@@ -25229,8 +25244,8 @@ const genearate = (A) => ({
25229
25244
  fontSize: ke,
25230
25245
  fill: Ge || "white",
25231
25246
  //[color, '#00ff99'], // gradient
25232
- ...He && Be > 0 && {
25233
- stroke: He,
25247
+ ...Ue && Be > 0 && {
25248
+ stroke: Ue,
25234
25249
  strokeThickness: Be
25235
25250
  },
25236
25251
  ...Ze && {
@@ -25243,14 +25258,14 @@ const genearate = (A) => ({
25243
25258
  fontWeight: st
25244
25259
  },
25245
25260
  ...et && { letterSpacing: et },
25246
- ...Ue && {
25261
+ ...Ve && {
25247
25262
  dropShadow: !0,
25248
25263
  dropShadowBlur: Number(je),
25249
25264
  dropShadowColor: (ze == null ? void 0 : ze.toString()) || "black",
25250
25265
  dropShadowAngle: 0.5235987755982988,
25251
25266
  dropShadowDistance: 5
25252
25267
  },
25253
- ...Ve && {
25268
+ ...He && {
25254
25269
  dropShadow: !0,
25255
25270
  dropShadowBlur: Number(Oe),
25256
25271
  dropShadowColor: (ze == null ? void 0 : ze.toString()) || "black",
@@ -25263,7 +25278,7 @@ const genearate = (A) => ({
25263
25278
  leading: Re || 0
25264
25279
  // lineHeight: lineHeight,
25265
25280
  }), [
25266
- Ue,
25281
+ Ve,
25267
25282
  je,
25268
25283
  Ge,
25269
25284
  we,
@@ -25275,10 +25290,10 @@ const genearate = (A) => ({
25275
25290
  tt,
25276
25291
  et,
25277
25292
  ze,
25278
- He,
25293
+ Ue,
25279
25294
  Be,
25280
25295
  $e,
25281
- Ve,
25296
+ He,
25282
25297
  Oe
25283
25298
  ]);
25284
25299
  React.useEffect(() => {
@@ -25288,18 +25303,18 @@ const genearate = (A) => ({
25288
25303
  }, [Z]), React.useImperativeHandle(
25289
25304
  E,
25290
25305
  () => ({
25291
- setWordWrap: (ft, mt = { x: 1, y: 1 }) => {
25306
+ setWordWrap: (ct, pt = { x: 1, y: 1 }) => {
25292
25307
  if (I.current) {
25293
- I.current.style.wordWrapWidth = ft, I.current.dirty = !0;
25294
- const ct = 1 / mt.x, xt = 1 / mt.y;
25295
- I.current.scale.set(ct, xt), I.current.updateText(!0);
25308
+ I.current.style.wordWrapWidth = ct, I.current.dirty = !0;
25309
+ const yt = 1 / pt.x, gt = 1 / pt.y;
25310
+ I.current.scale.set(yt, gt), I.current.updateText(!0);
25296
25311
  }
25297
25312
  },
25298
- setFontSizeAndTransform: (ft, mt, ct = { x: 1, y: 1 }) => {
25313
+ setFontSizeAndTransform: (ct, pt, yt = { x: 1, y: 1 }) => {
25299
25314
  if (I.current) {
25300
- I.current.style.wordWrapWidth = ft, I.current.style.fontSize = mt, I.current.dirty = !0;
25301
- const xt = 1 / ct.x, bt = 1 / ct.y;
25302
- I.current.scale.set(xt, bt), I.current.updateText(!0);
25315
+ I.current.style.wordWrapWidth = ct, I.current.style.fontSize = pt, I.current.dirty = !0;
25316
+ const gt = 1 / yt.x, xt = 1 / yt.y;
25317
+ I.current.scale.set(gt, xt), I.current.updateText(!0);
25303
25318
  }
25304
25319
  },
25305
25320
  resetScale: () => {
@@ -25308,21 +25323,21 @@ const genearate = (A) => ({
25308
25323
  }),
25309
25324
  [Se, Pe, Ee]
25310
25325
  );
25311
- const ot = React.useCallback(
25312
- (ft, mt = { x: 1, y: 1 }) => {
25326
+ const lt = React.useCallback(
25327
+ (ct, pt = { x: 1, y: 1 }) => {
25313
25328
  if (I.current) {
25314
- I.current.style.wordWrapWidth = ft, I.current.dirty = !0;
25315
- const ct = 1 / mt.x, xt = 1 / mt.y;
25316
- I.current.scale.set(ct, xt), I.current.updateText(!0);
25329
+ I.current.style.wordWrapWidth = ct, I.current.dirty = !0;
25330
+ const yt = 1 / pt.x, gt = 1 / pt.y;
25331
+ I.current.scale.set(yt, gt), I.current.updateText(!0);
25317
25332
  }
25318
25333
  },
25319
25334
  [I.current]
25320
25335
  ), ht = React.useCallback(
25321
- (ft, mt, ct = { x: 1, y: 1 }) => {
25336
+ (ct, pt, yt = { x: 1, y: 1 }) => {
25322
25337
  if (I.current) {
25323
- I.current.style.wordWrapWidth = ft, I.current.style.fontSize = mt, I.current.dirty = !0;
25324
- const xt = 1 / ct.x, bt = 1 / ct.y;
25325
- I.current.scale.set(xt, bt), I.current.updateText(!0);
25338
+ I.current.style.wordWrapWidth = ct, I.current.style.fontSize = pt, I.current.dirty = !0;
25339
+ const gt = 1 / yt.x, xt = 1 / yt.y;
25340
+ I.current.scale.set(gt, xt), I.current.updateText(!0);
25326
25341
  }
25327
25342
  },
25328
25343
  [I.current, U.current]
@@ -25330,13 +25345,13 @@ const genearate = (A) => ({
25330
25345
  React.useEffect(() => {
25331
25346
  if (We === null || We === 0)
25332
25347
  return;
25333
- const ft = new PIXI.Graphics();
25334
- ft.beginFill(We || 16724736), ft.drawRect(0, 0, Xe, qe), ft.endFill(), V.current && (V.current.texture = X.renderer.generateTexture(ft), V.current.texture.update());
25348
+ const ct = new PIXI.Graphics();
25349
+ ct.beginFill(We || 16724736), ct.drawRect(0, 0, Xe, qe), ct.endFill(), V.current && (V.current.texture = X.renderer.generateTexture(ct), V.current.texture.update());
25335
25350
  }, [We, Xe, qe]);
25336
- const gt = () => {
25337
- const ft = (/* @__PURE__ */ new Date()).getTime();
25338
- ft - R.current < 300 && xe ? xe() : _e && _e(), R.current = ft;
25339
- }, pt = () => {
25351
+ const dt = () => {
25352
+ const ct = (/* @__PURE__ */ new Date()).getTime();
25353
+ ct - R.current < 300 && xe ? xe() : _e && _e(), R.current = ct;
25354
+ }, mt = () => {
25340
25355
  !Y && xe && xe();
25341
25356
  };
25342
25357
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -25345,8 +25360,8 @@ const genearate = (A) => ({
25345
25360
  ...A,
25346
25361
  ref: E,
25347
25362
  isText: !0,
25348
- onDoubleClick: pt,
25349
- handleDragWordWrap: ot,
25363
+ onDoubleClick: mt,
25364
+ handleDragWordWrap: lt,
25350
25365
  handleDragFontSize: ht,
25351
25366
  children: [
25352
25367
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -25374,7 +25389,7 @@ const genearate = (A) => ({
25374
25389
  ...K && !Y && {
25375
25390
  interactive: !0,
25376
25391
  buttonMode: !0,
25377
- pointerdown: gt
25392
+ pointerdown: dt
25378
25393
  },
25379
25394
  ref: I,
25380
25395
  filters: [
@@ -25515,15 +25530,15 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
25515
25530
  transformation: { x: Te, y: we, width: Ie, height: Fe, animation: ke, colorCorrection: Le = {} },
25516
25531
  pointerdown: Ge = () => {
25517
25532
  },
25518
- pointerout: He = () => {
25533
+ pointerout: Ue = () => {
25519
25534
  },
25520
25535
  pointerover: Be = () => {
25521
25536
  },
25522
25537
  fps: je = 0
25523
- } = A, { tl: Ue, dragModeRef: ze, isRemotion: Ve } = useContext(GsapPixieContext), { onPointerDown: Oe, onPointerOut: $e, onPointerOver: Re } = useDebouncedPointerEvents(Be, Ge, He, 1), { blurRadius: Me = 0, vignette: Ne = 0, noise: De = 0 } = Le, {
25538
+ } = A, { tl: Ve, dragModeRef: ze, isRemotion: He } = useContext(GsapPixieContext), { onPointerDown: Oe, onPointerOut: $e, onPointerOver: Re } = useDebouncedPointerEvents(Be, Ge, Ue, 1), { blurRadius: Me = 0, vignette: Ne = 0, noise: De = 0 } = Le, {
25524
25539
  temperatureFilter: Xe,
25525
25540
  sharpnessFilter: qe,
25526
- hueFilter: Ye,
25541
+ hslFilter: Ye,
25527
25542
  blurFilter: Je,
25528
25543
  adjustmentFilter: Ke,
25529
25544
  vignetteFilter: rt,
@@ -25542,8 +25557,8 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
25542
25557
  const tt = (it) => {
25543
25558
  if (V.current) {
25544
25559
  if (V.current.currentTime = Number(it), !ze.current) {
25545
- const ot = V.current, ht = ot.currentTime > 0 && !ot.paused && !ot.ended && ot.readyState > ot.HAVE_CURRENT_DATA;
25546
- Ue.current && Ue.current.isActive() && K.current && K.current.isActive() && (ht || V.current.play(), X.current.isPlaying = !0);
25560
+ const lt = V.current, ht = lt.currentTime > 0 && !lt.paused && !lt.ended && lt.readyState > lt.HAVE_CURRENT_DATA;
25561
+ Ve.current && Ve.current.isActive() && K.current && K.current.isActive() && (ht || V.current.play(), X.current.isPlaying = !0);
25547
25562
  }
25548
25563
  X.current.progress = 0;
25549
25564
  }
@@ -25554,19 +25569,19 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
25554
25569
  }
25555
25570
  }, et = () => {
25556
25571
  }, We = () => {
25557
- var it, ot;
25572
+ var it, lt;
25558
25573
  if (K.current && (X.current.progress = K.current.progress()), V.current && K.current) {
25559
- const ht = Se + ((it = K == null ? void 0 : K.current) == null ? void 0 : it.time()), gt = Math.abs(
25574
+ const ht = Se + ((it = K == null ? void 0 : K.current) == null ? void 0 : it.time()), dt = Math.abs(
25560
25575
  V.current.currentTime - ht
25561
- ), pt = V.current, ft = pt.currentTime > 0 && !pt.paused && !pt.ended && pt.readyState > pt.HAVE_CURRENT_DATA;
25562
- ze.current && I.current ? (V.current.currentTime = ht, I.current.update(), X.current.isPlaying = !1) : (ft !== X.current.isPlaying || !ft) && X.current.progress > 0.01 && X.current.progress < 0.99 ? (ot = Ue.current) != null && ot.isActive() && K.current && K.current.isActive() && (ft || V.current.play(), X.current.isPlaying = !0) : gt > 0.3 && X.current.progress > 0.01 && X.current.progress < 0.99 && (V.current.currentTime = ht);
25576
+ ), mt = V.current, ct = mt.currentTime > 0 && !mt.paused && !mt.ended && mt.readyState > mt.HAVE_CURRENT_DATA;
25577
+ ze.current && I.current ? (V.current.currentTime = ht, I.current.update(), X.current.isPlaying = !1) : (ct !== X.current.isPlaying || !ct) && X.current.progress > 0.01 && X.current.progress < 0.99 ? (lt = Ve.current) != null && lt.isActive() && K.current && K.current.isActive() && (ct || V.current.play(), X.current.isPlaying = !0) : dt > 0.3 && X.current.progress > 0.01 && X.current.progress < 0.99 && (V.current.currentTime = ht);
25563
25578
  }
25564
25579
  };
25565
25580
  return useEffect(() => {
25566
25581
  let it = gsap$2.context(() => {
25567
25582
  });
25568
- if (U.current && Ue.current) {
25569
- const ot = {
25583
+ if (U.current && Ve.current) {
25584
+ const lt = {
25570
25585
  duration: Number(xe) - Number(_e),
25571
25586
  onStart: tt,
25572
25587
  onComplete: st,
@@ -25591,13 +25606,13 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
25591
25606
  console.log("onKill video sprite kill", J);
25592
25607
  }
25593
25608
  };
25594
- K.current && (K.current.kill(), Ue.current.remove(K.current)), it = gsap$2.context(() => {
25609
+ K.current && (K.current.kill(), Ve.current.remove(K.current)), it = gsap$2.context(() => {
25595
25610
  K.current = gsap$2.to(
25596
25611
  U.current,
25597
25612
  // @ts-ignore
25598
- ot,
25613
+ lt,
25599
25614
  Se
25600
- ), Ue.current.add(K.current, _e);
25615
+ ), Ve.current.add(K.current, _e);
25601
25616
  });
25602
25617
  }
25603
25618
  return () => {
@@ -25612,35 +25627,35 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
25612
25627
  clearTimeout(it);
25613
25628
  };
25614
25629
  }, [Y]), React.useEffect(() => {
25615
- const it = Math.round((Number(Se) + Number.EPSILON) * 100) / 100, ot = function() {
25630
+ const it = Math.round((Number(Se) + Number.EPSILON) * 100) / 100, lt = function() {
25616
25631
  V.current && (V.current.currentTime = it, V.current.muted = Y);
25617
25632
  }, ht = function() {
25618
25633
  X.current.isWaiting = !1, X.current.isStalled = !1;
25619
- }, gt = function() {
25634
+ }, dt = function() {
25620
25635
  X.current.isWaiting = !0, X.current.isStalled = !1;
25621
- }, pt = function() {
25636
+ }, mt = function() {
25622
25637
  X.current.isWaiting = !1, X.current.isStalled = !1;
25623
- }, ft = function() {
25638
+ }, ct = function() {
25624
25639
  X.current.isWaiting = !1, X.current.isStalled = !0;
25625
- }, mt = Math.round((Number(Se) + Number.EPSILON) * 100) / 100, ct = Math.round((Number(Pe) + Number.EPSILON) * 100) / 100, xt = `${Qe}#t=${mt},${ct}`;
25626
- return PIXI.Texture.fromLoader(Ze, xt, J, {
25640
+ }, pt = Math.round((Number(Se) + Number.EPSILON) * 100) / 100, yt = Math.round((Number(Pe) + Number.EPSILON) * 100) / 100, gt = `${Qe}#t=${pt},${yt}`;
25641
+ return PIXI.Texture.fromLoader(Ze, gt, J, {
25627
25642
  pixiIdPrefix: J,
25628
25643
  resourceOptions: {
25629
25644
  autoPlay: !1,
25630
25645
  crossorigin: "Anonymus",
25631
25646
  updateFPS: je ? Math.max(120, Number(je)) : 30
25632
25647
  }
25633
- }).then((bt) => {
25634
- bt && (I.current = bt, R(!0), V.current = bt.baseTexture.resource.source, V.current.id = J, V.current.addEventListener("loadedmetadata", ot), V.current.addEventListener("ended", ht), V.current.addEventListener("loadstart", gt), V.current.addEventListener("canplaythrough", pt), V.current.addEventListener("stalled", ft));
25648
+ }).then((xt) => {
25649
+ xt && (I.current = xt, R(!0), V.current = xt.baseTexture.resource.source, V.current.id = J, V.current.addEventListener("loadedmetadata", lt), V.current.addEventListener("ended", ht), V.current.addEventListener("loadstart", dt), V.current.addEventListener("canplaythrough", mt), V.current.addEventListener("stalled", ct));
25635
25650
  }), () => {
25636
- V.current && (V.current.pause(), V.current.removeEventListener("loadedmetadata", ot), V.current.removeEventListener("ended", ht), V.current.removeEventListener("loadstart", gt), V.current.removeEventListener(
25651
+ V.current && (V.current.pause(), V.current.removeEventListener("loadedmetadata", lt), V.current.removeEventListener("ended", ht), V.current.removeEventListener("loadstart", dt), V.current.removeEventListener(
25637
25652
  "canplaythrough",
25638
- pt
25639
- ), V.current.removeEventListener("stalled", ft));
25653
+ mt
25654
+ ), V.current.removeEventListener("stalled", ct));
25640
25655
  };
25641
25656
  }, [Qe, J, Se, Pe, Ze]), React.useEffect(() => {
25642
25657
  const it = setTimeout(() => {
25643
- C && I.current && K.current && Ue.current && K.current.progress() < 0.1 && V.current && !K.current.isActive() && !Ve && (V.current.currentTime = Se, I.current.update());
25658
+ C && I.current && K.current && Ve.current && K.current.progress() < 0.1 && V.current && !K.current.isActive() && !He && (V.current.currentTime = Se, I.current.update());
25644
25659
  }, 30);
25645
25660
  return () => {
25646
25661
  clearTimeout(it);
@@ -25701,12 +25716,12 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((A, E) => {
25701
25716
  canvasImageRef: Pe
25702
25717
  } = A, Ee = Pe && (Pe == null ? void 0 : Pe.getCanvas()), Ae = useApp(), { onPointerDown: Te, onPointerOut: we, onPointerOver: Ie } = useDebouncedPointerEvents(Se, _e, xe, 1), { blurRadius: Fe = 0, vignette: ke = 0, noise: Le = 0 } = Z, {
25703
25718
  temperatureFilter: Ge,
25704
- sharpnessFilter: He,
25705
- hueFilter: Be,
25719
+ sharpnessFilter: Ue,
25720
+ hslFilter: Be,
25706
25721
  blurFilter: je,
25707
- adjustmentFilter: Ue,
25722
+ adjustmentFilter: Ve,
25708
25723
  vignetteFilter: ze,
25709
- noiseFilter: Ve
25724
+ noiseFilter: He
25710
25725
  } = withFiltersHook(Z);
25711
25726
  return useTick(() => {
25712
25727
  if (I.current && I.current.texture) {
@@ -25741,15 +25756,15 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((A, E) => {
25741
25756
  ...!V && U && { interactive: !0, pointerdown: _e },
25742
25757
  filters: [
25743
25758
  Ge,
25744
- He,
25745
- Be,
25746
25759
  Ue,
25760
+ Be,
25761
+ Ve,
25747
25762
  // conditionally add blur filter
25748
25763
  ...Fe > 0 ? [je] : [],
25749
25764
  // conditionally add vignette filter
25750
25765
  ...ke > 0 ? [ze] : [],
25751
25766
  // conditionally add noise filter
25752
- ...Le > 0 ? [Ve] : []
25767
+ ...Le > 0 ? [He] : []
25753
25768
  ]
25754
25769
  }
25755
25770
  ) })
@@ -25808,12 +25823,12 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((A, E) => {
25808
25823
  canvasImageRef: Pe
25809
25824
  } = A, Ee = Pe && (Pe == null ? void 0 : Pe.getCanvas()), Ae = useApp(), { onPointerDown: Te, onPointerOut: we, onPointerOver: Ie } = useDebouncedPointerEvents(Se, _e, xe, 1), { blurRadius: Fe = 0, vignette: ke = 0, noise: Le = 0 } = Z, {
25810
25825
  temperatureFilter: Ge,
25811
- sharpnessFilter: He,
25812
- hueFilter: Be,
25826
+ sharpnessFilter: Ue,
25827
+ hslFilter: Be,
25813
25828
  blurFilter: je,
25814
- adjustmentFilter: Ue,
25829
+ adjustmentFilter: Ve,
25815
25830
  vignetteFilter: ze,
25816
- noiseFilter: Ve
25831
+ noiseFilter: He
25817
25832
  } = withFiltersHook(Z);
25818
25833
  return useTick(() => {
25819
25834
  if (I.current && I.current.texture) {
@@ -25848,15 +25863,15 @@ const PixiVideoCanvasSyncSprite = React.forwardRef((A, E) => {
25848
25863
  ...!V && U && { interactive: !0, pointerdown: _e },
25849
25864
  filters: [
25850
25865
  Ge,
25851
- He,
25852
- Be,
25853
25866
  Ue,
25867
+ Be,
25868
+ Ve,
25854
25869
  // conditionally add blur filter
25855
25870
  ...Fe > 0 ? [je] : [],
25856
25871
  // conditionally add vignette filter
25857
25872
  ...ke > 0 ? [ze] : [],
25858
25873
  // conditionally add noise filter
25859
- ...Le > 0 ? [Ve] : []
25874
+ ...Le > 0 ? [He] : []
25860
25875
  ]
25861
25876
  }
25862
25877
  ) })
@@ -26160,10 +26175,10 @@ var lottie$1 = { exports: {} };
26160
26175
  function V() {
26161
26176
  R || (R = U(function(_e) {
26162
26177
  function xe() {
26163
- function Pe(Ve, Oe) {
26164
- var $e, Re, Me = Ve.length, Ne, De, Xe, qe;
26178
+ function Pe(He, Oe) {
26179
+ var $e, Re, Me = He.length, Ne, De, Xe, qe;
26165
26180
  for (Re = 0; Re < Me; Re += 1)
26166
- if ($e = Ve[Re], "ks" in $e && !$e.completed) {
26181
+ if ($e = He[Re], "ks" in $e && !$e.completed) {
26167
26182
  if ($e.completed = !0, $e.hasMask) {
26168
26183
  var Ye = $e.masksProperties;
26169
26184
  for (De = Ye.length, Ne = 0; Ne < De; Ne += 1)
@@ -26173,51 +26188,51 @@ var lottie$1 = { exports: {} };
26173
26188
  for (qe = Ye[Ne].pt.k.length, Xe = 0; Xe < qe; Xe += 1)
26174
26189
  Ye[Ne].pt.k[Xe].s && Ie(Ye[Ne].pt.k[Xe].s[0]), Ye[Ne].pt.k[Xe].e && Ie(Ye[Ne].pt.k[Xe].e[0]);
26175
26190
  }
26176
- $e.ty === 0 ? ($e.layers = Te($e.refId, Oe), Pe($e.layers, Oe)) : $e.ty === 4 ? we($e.shapes) : $e.ty === 5 && Ue($e);
26191
+ $e.ty === 0 ? ($e.layers = Te($e.refId, Oe), Pe($e.layers, Oe)) : $e.ty === 4 ? we($e.shapes) : $e.ty === 5 && Ve($e);
26177
26192
  }
26178
26193
  }
26179
- function Ee(Ve, Oe) {
26180
- if (Ve) {
26181
- var $e = 0, Re = Ve.length;
26194
+ function Ee(He, Oe) {
26195
+ if (He) {
26196
+ var $e = 0, Re = He.length;
26182
26197
  for ($e = 0; $e < Re; $e += 1)
26183
- Ve[$e].t === 1 && (Ve[$e].data.layers = Te(Ve[$e].data.refId, Oe), Pe(Ve[$e].data.layers, Oe));
26198
+ He[$e].t === 1 && (He[$e].data.layers = Te(He[$e].data.refId, Oe), Pe(He[$e].data.layers, Oe));
26184
26199
  }
26185
26200
  }
26186
- function Ae(Ve, Oe) {
26201
+ function Ae(He, Oe) {
26187
26202
  for (var $e = 0, Re = Oe.length; $e < Re; ) {
26188
- if (Oe[$e].id === Ve)
26203
+ if (Oe[$e].id === He)
26189
26204
  return Oe[$e];
26190
26205
  $e += 1;
26191
26206
  }
26192
26207
  return null;
26193
26208
  }
26194
- function Te(Ve, Oe) {
26195
- var $e = Ae(Ve, Oe);
26209
+ function Te(He, Oe) {
26210
+ var $e = Ae(He, Oe);
26196
26211
  return $e ? $e.layers.__used ? JSON.parse(JSON.stringify($e.layers)) : ($e.layers.__used = !0, $e.layers) : null;
26197
26212
  }
26198
- function we(Ve) {
26199
- var Oe, $e = Ve.length, Re, Me;
26213
+ function we(He) {
26214
+ var Oe, $e = He.length, Re, Me;
26200
26215
  for (Oe = $e - 1; Oe >= 0; Oe -= 1)
26201
- if (Ve[Oe].ty === "sh")
26202
- if (Ve[Oe].ks.k.i)
26203
- Ie(Ve[Oe].ks.k);
26216
+ if (He[Oe].ty === "sh")
26217
+ if (He[Oe].ks.k.i)
26218
+ Ie(He[Oe].ks.k);
26204
26219
  else
26205
- for (Me = Ve[Oe].ks.k.length, Re = 0; Re < Me; Re += 1)
26206
- Ve[Oe].ks.k[Re].s && Ie(Ve[Oe].ks.k[Re].s[0]), Ve[Oe].ks.k[Re].e && Ie(Ve[Oe].ks.k[Re].e[0]);
26220
+ for (Me = He[Oe].ks.k.length, Re = 0; Re < Me; Re += 1)
26221
+ He[Oe].ks.k[Re].s && Ie(He[Oe].ks.k[Re].s[0]), He[Oe].ks.k[Re].e && Ie(He[Oe].ks.k[Re].e[0]);
26207
26222
  else
26208
- Ve[Oe].ty === "gr" && we(Ve[Oe].it);
26223
+ He[Oe].ty === "gr" && we(He[Oe].it);
26209
26224
  }
26210
- function Ie(Ve) {
26211
- var Oe, $e = Ve.i.length;
26225
+ function Ie(He) {
26226
+ var Oe, $e = He.i.length;
26212
26227
  for (Oe = 0; Oe < $e; Oe += 1)
26213
- Ve.i[Oe][0] += Ve.v[Oe][0], Ve.i[Oe][1] += Ve.v[Oe][1], Ve.o[Oe][0] += Ve.v[Oe][0], Ve.o[Oe][1] += Ve.v[Oe][1];
26228
+ He.i[Oe][0] += He.v[Oe][0], He.i[Oe][1] += He.v[Oe][1], He.o[Oe][0] += He.v[Oe][0], He.o[Oe][1] += He.v[Oe][1];
26214
26229
  }
26215
- function Fe(Ve, Oe) {
26230
+ function Fe(He, Oe) {
26216
26231
  var $e = Oe ? Oe.split(".") : [100, 100, 100];
26217
- return Ve[0] > $e[0] ? !0 : $e[0] > Ve[0] ? !1 : Ve[1] > $e[1] ? !0 : $e[1] > Ve[1] ? !1 : Ve[2] > $e[2] ? !0 : $e[2] > Ve[2] ? !1 : null;
26232
+ return He[0] > $e[0] ? !0 : $e[0] > He[0] ? !1 : He[1] > $e[1] ? !0 : $e[1] > He[1] ? !1 : He[2] > $e[2] ? !0 : $e[2] > He[2] ? !1 : null;
26218
26233
  }
26219
26234
  var ke = function() {
26220
- var Ve = [4, 4, 14];
26235
+ var He = [4, 4, 14];
26221
26236
  function Oe(Re) {
26222
26237
  var Me = Re.t.d;
26223
26238
  Re.t.d = {
@@ -26233,16 +26248,16 @@ var lottie$1 = { exports: {} };
26233
26248
  Re[Me].ty === 5 && Oe(Re[Me]);
26234
26249
  }
26235
26250
  return function(Re) {
26236
- if (Fe(Ve, Re.v) && ($e(Re.layers), Re.assets)) {
26251
+ if (Fe(He, Re.v) && ($e(Re.layers), Re.assets)) {
26237
26252
  var Me, Ne = Re.assets.length;
26238
26253
  for (Me = 0; Me < Ne; Me += 1)
26239
26254
  Re.assets[Me].layers && $e(Re.assets[Me].layers);
26240
26255
  }
26241
26256
  };
26242
26257
  }(), Le = function() {
26243
- var Ve = [4, 7, 99];
26258
+ var He = [4, 7, 99];
26244
26259
  return function(Oe) {
26245
- if (Oe.chars && !Fe(Ve, Oe.v)) {
26260
+ if (Oe.chars && !Fe(He, Oe.v)) {
26246
26261
  var $e, Re = Oe.chars.length;
26247
26262
  for ($e = 0; $e < Re; $e += 1) {
26248
26263
  var Me = Oe.chars[$e];
@@ -26304,7 +26319,7 @@ var lottie$1 = { exports: {} };
26304
26319
  }
26305
26320
  };
26306
26321
  }(), Ge = function() {
26307
- var Ve = [5, 7, 15];
26322
+ var He = [5, 7, 15];
26308
26323
  function Oe(Re) {
26309
26324
  var Me = Re.t.p;
26310
26325
  typeof Me.a == "number" && (Me.a = {
@@ -26324,14 +26339,14 @@ var lottie$1 = { exports: {} };
26324
26339
  Re[Me].ty === 5 && Oe(Re[Me]);
26325
26340
  }
26326
26341
  return function(Re) {
26327
- if (Fe(Ve, Re.v) && ($e(Re.layers), Re.assets)) {
26342
+ if (Fe(He, Re.v) && ($e(Re.layers), Re.assets)) {
26328
26343
  var Me, Ne = Re.assets.length;
26329
26344
  for (Me = 0; Me < Ne; Me += 1)
26330
26345
  Re.assets[Me].layers && $e(Re.assets[Me].layers);
26331
26346
  }
26332
26347
  };
26333
- }(), He = function() {
26334
- var Ve = [4, 1, 9];
26348
+ }(), Ue = function() {
26349
+ var He = [4, 1, 9];
26335
26350
  function Oe(Re) {
26336
26351
  var Me, Ne = Re.length, De, Xe;
26337
26352
  for (Me = 0; Me < Ne; Me += 1)
@@ -26350,14 +26365,14 @@ var lottie$1 = { exports: {} };
26350
26365
  Re[Me].ty === 4 && Oe(Re[Me].shapes);
26351
26366
  }
26352
26367
  return function(Re) {
26353
- if (Fe(Ve, Re.v) && ($e(Re.layers), Re.assets)) {
26368
+ if (Fe(He, Re.v) && ($e(Re.layers), Re.assets)) {
26354
26369
  var Me, Ne = Re.assets.length;
26355
26370
  for (Me = 0; Me < Ne; Me += 1)
26356
26371
  Re.assets[Me].layers && $e(Re.assets[Me].layers);
26357
26372
  }
26358
26373
  };
26359
26374
  }(), Be = function() {
26360
- var Ve = [4, 4, 18];
26375
+ var He = [4, 4, 18];
26361
26376
  function Oe(Re) {
26362
26377
  var Me, Ne = Re.length, De, Xe;
26363
26378
  for (Me = Ne - 1; Me >= 0; Me -= 1)
@@ -26386,21 +26401,21 @@ var lottie$1 = { exports: {} };
26386
26401
  }
26387
26402
  }
26388
26403
  return function(Re) {
26389
- if (Fe(Ve, Re.v) && ($e(Re.layers), Re.assets)) {
26404
+ if (Fe(He, Re.v) && ($e(Re.layers), Re.assets)) {
26390
26405
  var Me, Ne = Re.assets.length;
26391
26406
  for (Me = 0; Me < Ne; Me += 1)
26392
26407
  Re.assets[Me].layers && $e(Re.assets[Me].layers);
26393
26408
  }
26394
26409
  };
26395
26410
  }();
26396
- function je(Ve) {
26397
- Ve.__complete || (He(Ve), ke(Ve), Le(Ve), Ge(Ve), Be(Ve), Pe(Ve.layers, Ve.assets), Ee(Ve.chars, Ve.assets), Ve.__complete = !0);
26411
+ function je(He) {
26412
+ He.__complete || (Ue(He), ke(He), Le(He), Ge(He), Be(He), Pe(He.layers, He.assets), Ee(He.chars, He.assets), He.__complete = !0);
26398
26413
  }
26399
- function Ue(Ve) {
26400
- Ve.t.a.length === 0 && "m" in Ve.t.p;
26414
+ function Ve(He) {
26415
+ He.t.a.length === 0 && "m" in He.t.p;
26401
26416
  }
26402
26417
  var ze = {};
26403
- return ze.completeData = je, ze.checkColors = He, ze.checkChars = Le, ze.checkPathProperties = Ge, ze.checkShapes = Be, ze.completeLayers = Pe, ze;
26418
+ return ze.completeData = je, ze.checkColors = Ue, ze.checkChars = Le, ze.checkPathProperties = Ge, ze.checkShapes = Be, ze.completeLayers = Pe, ze;
26404
26419
  }
26405
26420
  if (B.dataManager || (B.dataManager = xe()), B.assetLoader || (B.assetLoader = function() {
26406
26421
  function Pe(Ae) {
@@ -26973,7 +26988,7 @@ var lottie$1 = { exports: {} };
26973
26988
  return Re;
26974
26989
  }
26975
26990
  function J() {
26976
- I += 1, He();
26991
+ I += 1, Ue();
26977
26992
  }
26978
26993
  function Y() {
26979
26994
  I -= 1;
@@ -27054,16 +27069,16 @@ var lottie$1 = { exports: {} };
27054
27069
  for (Oe = 0; Oe < R; Oe += 1)
27055
27070
  E[Oe].animation.resize();
27056
27071
  }
27057
- function He() {
27072
+ function Ue() {
27058
27073
  !U && I && B && (window.requestAnimationFrame(Ae), B = !1);
27059
27074
  }
27060
27075
  function Be() {
27061
27076
  U = !0;
27062
27077
  }
27063
27078
  function je() {
27064
- U = !1, He();
27079
+ U = !1, Ue();
27065
27080
  }
27066
- function Ue(Oe, $e) {
27081
+ function Ve(Oe, $e) {
27067
27082
  var Re;
27068
27083
  for (Re = 0; Re < R; Re += 1)
27069
27084
  E[Re].animation.setVolume(Oe, $e);
@@ -27073,12 +27088,12 @@ var lottie$1 = { exports: {} };
27073
27088
  for ($e = 0; $e < R; $e += 1)
27074
27089
  E[$e].animation.mute(Oe);
27075
27090
  }
27076
- function Ve(Oe) {
27091
+ function He(Oe) {
27077
27092
  var $e;
27078
27093
  for ($e = 0; $e < R; $e += 1)
27079
27094
  E[$e].animation.unmute(Oe);
27080
27095
  }
27081
- return A.registerAnimation = X, A.loadAnimation = _e, A.setSpeed = xe, A.setDirection = Se, A.play = Pe, A.pause = Te, A.stop = Ie, A.togglePause = Fe, A.searchAnimations = Le, A.resize = Ge, A.goToAndStop = we, A.destroy = ke, A.freeze = Be, A.unfreeze = je, A.setVolume = Ue, A.mute = ze, A.unmute = Ve, A.getRegisteredAnimations = K, A;
27096
+ return A.registerAnimation = X, A.loadAnimation = _e, A.setSpeed = xe, A.setDirection = Se, A.play = Pe, A.pause = Te, A.stop = Ie, A.togglePause = Fe, A.searchAnimations = Le, A.resize = Ge, A.goToAndStop = we, A.destroy = ke, A.freeze = Be, A.unfreeze = je, A.setVolume = Ve, A.mute = ze, A.unmute = He, A.getRegisteredAnimations = K, A;
27082
27097
  }(), BezierFactory = function() {
27083
27098
  var A = {};
27084
27099
  A.getBezierEasing = C;
@@ -27147,7 +27162,7 @@ var lottie$1 = { exports: {} };
27147
27162
  for (var we = this._p[0], Ie = this._p[2], Fe = this._mSampleValues, ke = 0, Le = 1, Ge = V - 1; Le !== Ge && Fe[Le] <= Te; ++Le)
27148
27163
  ke += X;
27149
27164
  --Le;
27150
- var He = (Te - Fe[Le]) / (Fe[Le + 1] - Fe[Le]), Be = ke + He * X, je = xe(Be, we, Ie);
27165
+ var Ue = (Te - Fe[Le]) / (Fe[Le + 1] - Fe[Le]), Be = ke + Ue * X, je = xe(Be, we, Ie);
27151
27166
  return je >= I ? Pe(Te, Be, we, Ie) : je === 0 ? Be : Se(Te, ke, ke + X, we, Ie);
27152
27167
  }
27153
27168
  }, A;
@@ -27211,13 +27226,13 @@ var lottie$1 = { exports: {} };
27211
27226
  }
27212
27227
  var R = function() {
27213
27228
  return function(Z, _e, xe, Se) {
27214
- var Pe = getDefaultCurveSegments(), Ee, Ae, Te, we, Ie, Fe = 0, ke, Le = [], Ge = [], He = bezierLengthPool.newElement();
27229
+ var Pe = getDefaultCurveSegments(), Ee, Ae, Te, we, Ie, Fe = 0, ke, Le = [], Ge = [], Ue = bezierLengthPool.newElement();
27215
27230
  for (Te = xe.length, Ee = 0; Ee < Pe; Ee += 1) {
27216
27231
  for (Ie = Ee / (Pe - 1), ke = 0, Ae = 0; Ae < Te; Ae += 1)
27217
27232
  we = bmPow(1 - Ie, 3) * Z[Ae] + 3 * bmPow(1 - Ie, 2) * Ie * xe[Ae] + 3 * (1 - Ie) * bmPow(Ie, 2) * Se[Ae] + bmPow(Ie, 3) * _e[Ae], Le[Ae] = we, Ge[Ae] !== null && (ke += bmPow(Le[Ae] - Ge[Ae], 2)), Ge[Ae] = Le[Ae];
27218
- ke && (ke = bmSqrt(ke), Fe += ke), He.percents[Ee] = Ie, He.lengths[Ee] = Fe;
27233
+ ke && (ke = bmSqrt(ke), Fe += ke), Ue.percents[Ee] = Ie, Ue.lengths[Ee] = Fe;
27219
27234
  }
27220
- return He.addedLength = Fe, He;
27235
+ return Ue.addedLength = Fe, Ue;
27221
27236
  };
27222
27237
  }();
27223
27238
  function I(Z) {
@@ -27237,13 +27252,13 @@ var lottie$1 = { exports: {} };
27237
27252
  return function(_e, xe, Se, Pe) {
27238
27253
  var Ee = (_e[0] + "_" + _e[1] + "_" + xe[0] + "_" + xe[1] + "_" + Se[0] + "_" + Se[1] + "_" + Pe[0] + "_" + Pe[1]).replace(/\./g, "p");
27239
27254
  if (!Z[Ee]) {
27240
- var Ae = getDefaultCurveSegments(), Te, we, Ie, Fe, ke, Le = 0, Ge, He, Be = null;
27255
+ var Ae = getDefaultCurveSegments(), Te, we, Ie, Fe, ke, Le = 0, Ge, Ue, Be = null;
27241
27256
  _e.length === 2 && (_e[0] !== xe[0] || _e[1] !== xe[1]) && E(_e[0], _e[1], xe[0], xe[1], _e[0] + Se[0], _e[1] + Se[1]) && E(_e[0], _e[1], xe[0], xe[1], xe[0] + Pe[0], xe[1] + Pe[1]) && (Ae = 2);
27242
27257
  var je = new B(Ae);
27243
27258
  for (Ie = Se.length, Te = 0; Te < Ae; Te += 1) {
27244
- for (He = createSizedArray(Ie), ke = Te / (Ae - 1), Ge = 0, we = 0; we < Ie; we += 1)
27245
- Fe = bmPow(1 - ke, 3) * _e[we] + 3 * bmPow(1 - ke, 2) * ke * (_e[we] + Se[we]) + 3 * (1 - ke) * bmPow(ke, 2) * (xe[we] + Pe[we]) + bmPow(ke, 3) * xe[we], He[we] = Fe, Be !== null && (Ge += bmPow(He[we] - Be[we], 2));
27246
- Ge = bmSqrt(Ge), Le += Ge, je.points[Te] = new U(Ge, He), Be = He;
27259
+ for (Ue = createSizedArray(Ie), ke = Te / (Ae - 1), Ge = 0, we = 0; we < Ie; we += 1)
27260
+ Fe = bmPow(1 - ke, 3) * _e[we] + 3 * bmPow(1 - ke, 2) * ke * (_e[we] + Se[we]) + 3 * (1 - ke) * bmPow(ke, 2) * (xe[we] + Pe[we]) + bmPow(ke, 3) * xe[we], Ue[we] = Fe, Be !== null && (Ge += bmPow(Ue[we] - Be[we], 2));
27261
+ Ge = bmSqrt(Ge), Le += Ge, je.points[Te] = new U(Ge, Ue), Be = Ue;
27247
27262
  }
27248
27263
  je.segmentLength = Le, Z[Ee] = je;
27249
27264
  }
@@ -27271,9 +27286,9 @@ var lottie$1 = { exports: {} };
27271
27286
  Pe < 0 ? Pe = 0 : Pe > 1 && (Pe = 1);
27272
27287
  var Te = X(Pe, Ae);
27273
27288
  Ee = Ee > 1 ? 1 : Ee;
27274
- var we = X(Ee, Ae), Ie, Fe = Z.length, ke = 1 - Te, Le = 1 - we, Ge = ke * ke * ke, He = Te * ke * ke * 3, Be = Te * Te * ke * 3, je = Te * Te * Te, Ue = ke * ke * Le, ze = Te * ke * Le + ke * Te * Le + ke * ke * we, Ve = Te * Te * Le + ke * Te * we + Te * ke * we, Oe = Te * Te * we, $e = ke * Le * Le, Re = Te * Le * Le + ke * we * Le + ke * Le * we, Me = Te * we * Le + ke * we * we + Te * Le * we, Ne = Te * we * we, De = Le * Le * Le, Xe = we * Le * Le + Le * we * Le + Le * Le * we, qe = we * we * Le + Le * we * we + we * Le * we, Ye = we * we * we;
27289
+ var we = X(Ee, Ae), Ie, Fe = Z.length, ke = 1 - Te, Le = 1 - we, Ge = ke * ke * ke, Ue = Te * ke * ke * 3, Be = Te * Te * ke * 3, je = Te * Te * Te, Ve = ke * ke * Le, ze = Te * ke * Le + ke * Te * Le + ke * ke * we, He = Te * Te * Le + ke * Te * we + Te * ke * we, Oe = Te * Te * we, $e = ke * Le * Le, Re = Te * Le * Le + ke * we * Le + ke * Le * we, Me = Te * we * Le + ke * we * we + Te * Le * we, Ne = Te * we * we, De = Le * Le * Le, Xe = we * Le * Le + Le * we * Le + Le * Le * we, qe = we * we * Le + Le * we * we + we * Le * we, Ye = we * we * we;
27275
27290
  for (Ie = 0; Ie < Fe; Ie += 1)
27276
- J[Ie * 4] = A.round((Ge * Z[Ie] + He * xe[Ie] + Be * Se[Ie] + je * _e[Ie]) * 1e3) / 1e3, J[Ie * 4 + 1] = A.round((Ue * Z[Ie] + ze * xe[Ie] + Ve * Se[Ie] + Oe * _e[Ie]) * 1e3) / 1e3, J[Ie * 4 + 2] = A.round(($e * Z[Ie] + Re * xe[Ie] + Me * Se[Ie] + Ne * _e[Ie]) * 1e3) / 1e3, J[Ie * 4 + 3] = A.round((De * Z[Ie] + Xe * xe[Ie] + qe * Se[Ie] + Ye * _e[Ie]) * 1e3) / 1e3;
27291
+ J[Ie * 4] = A.round((Ge * Z[Ie] + Ue * xe[Ie] + Be * Se[Ie] + je * _e[Ie]) * 1e3) / 1e3, J[Ie * 4 + 1] = A.round((Ve * Z[Ie] + ze * xe[Ie] + He * Se[Ie] + Oe * _e[Ie]) * 1e3) / 1e3, J[Ie * 4 + 2] = A.round(($e * Z[Ie] + Re * xe[Ie] + Me * Se[Ie] + Ne * _e[Ie]) * 1e3) / 1e3, J[Ie * 4 + 3] = A.round((De * Z[Ie] + Xe * xe[Ie] + qe * Se[Ie] + Ye * _e[Ie]) * 1e3) / 1e3;
27277
27292
  return J;
27278
27293
  }
27279
27294
  return {
@@ -27327,19 +27342,19 @@ var lottie$1 = { exports: {} };
27327
27342
  E._lastPoint = Se, E._lastAddedLength = Le - we.points[Se].partialLength, E._lastKeyframeIndex = B;
27328
27343
  }
27329
27344
  } else {
27330
- var Ge, He, Be, je, Ue;
27345
+ var Ge, Ue, Be, je, Ve;
27331
27346
  if (U = X.s.length, Te = K.s || X.e, this.sh && X.h !== 1)
27332
27347
  if (A >= Ee)
27333
27348
  R[0] = Te[0], R[1] = Te[1], R[2] = Te[2];
27334
27349
  else if (A <= Ae)
27335
27350
  R[0] = X.s[0], R[1] = X.s[1], R[2] = X.s[2];
27336
27351
  else {
27337
- var ze = createQuaternion(X.s), Ve = createQuaternion(Te), Oe = (A - Ae) / (Ee - Ae);
27338
- quaternionToEuler(R, slerp(ze, Ve, Oe));
27352
+ var ze = createQuaternion(X.s), He = createQuaternion(Te), Oe = (A - Ae) / (Ee - Ae);
27353
+ quaternionToEuler(R, slerp(ze, He, Oe));
27339
27354
  }
27340
27355
  else
27341
27356
  for (B = 0; B < U; B += 1)
27342
- X.h !== 1 && (A >= Ee ? _e = 1 : A < Ae ? _e = 0 : (X.o.x.constructor === Array ? (J.__fnct || (J.__fnct = []), J.__fnct[B] ? Pe = J.__fnct[B] : (Ge = X.o.x[B] === void 0 ? X.o.x[0] : X.o.x[B], He = X.o.y[B] === void 0 ? X.o.y[0] : X.o.y[B], Be = X.i.x[B] === void 0 ? X.i.x[0] : X.i.x[B], je = X.i.y[B] === void 0 ? X.i.y[0] : X.i.y[B], Pe = BezierFactory.getBezierEasing(Ge, He, Be, je).get, J.__fnct[B] = Pe)) : J.__fnct ? Pe = J.__fnct : (Ge = X.o.x, He = X.o.y, Be = X.i.x, je = X.i.y, Pe = BezierFactory.getBezierEasing(Ge, He, Be, je).get, X.keyframeMetadata = Pe), _e = Pe((A - Ae) / (Ee - Ae)))), Te = K.s || X.e, Ue = X.h === 1 ? X.s[B] : X.s[B] + (Te[B] - X.s[B]) * _e, this.propType === "multidimensional" ? R[B] = Ue : R = Ue;
27357
+ X.h !== 1 && (A >= Ee ? _e = 1 : A < Ae ? _e = 0 : (X.o.x.constructor === Array ? (J.__fnct || (J.__fnct = []), J.__fnct[B] ? Pe = J.__fnct[B] : (Ge = X.o.x[B] === void 0 ? X.o.x[0] : X.o.x[B], Ue = X.o.y[B] === void 0 ? X.o.y[0] : X.o.y[B], Be = X.i.x[B] === void 0 ? X.i.x[0] : X.i.x[B], je = X.i.y[B] === void 0 ? X.i.y[0] : X.i.y[B], Pe = BezierFactory.getBezierEasing(Ge, Ue, Be, je).get, J.__fnct[B] = Pe)) : J.__fnct ? Pe = J.__fnct : (Ge = X.o.x, Ue = X.o.y, Be = X.i.x, je = X.i.y, Pe = BezierFactory.getBezierEasing(Ge, Ue, Be, je).get, X.keyframeMetadata = Pe), _e = Pe((A - Ae) / (Ee - Ae)))), Te = K.s || X.e, Ve = X.h === 1 ? X.s[B] : X.s[B] + (Te[B] - X.s[B]) * _e, this.propType === "multidimensional" ? R[B] = Ve : R = Ve;
27343
27358
  }
27344
27359
  return E.lastIndex = I, R;
27345
27360
  }
@@ -27560,15 +27575,15 @@ var lottie$1 = { exports: {} };
27560
27575
  }(), ShapePropertyFactory = function() {
27561
27576
  var A = -999999;
27562
27577
  function E(Ee, Ae, Te) {
27563
- var we = Te.lastIndex, Ie, Fe, ke, Le, Ge, He, Be, je, Ue, ze = this.keyframes;
27578
+ var we = Te.lastIndex, Ie, Fe, ke, Le, Ge, Ue, Be, je, Ve, ze = this.keyframes;
27564
27579
  if (Ee < ze[0].t - this.offsetTime)
27565
27580
  Ie = ze[0].s[0], ke = !0, we = 0;
27566
27581
  else if (Ee >= ze[ze.length - 1].t - this.offsetTime)
27567
27582
  Ie = ze[ze.length - 1].s ? ze[ze.length - 1].s[0] : ze[ze.length - 2].e[0], ke = !0;
27568
27583
  else {
27569
- for (var Ve = we, Oe = ze.length - 1, $e = !0, Re, Me, Ne; $e && (Re = ze[Ve], Me = ze[Ve + 1], !(Me.t - this.offsetTime > Ee)); )
27570
- Ve < Oe - 1 ? Ve += 1 : $e = !1;
27571
- if (Ne = this.keyframesMetadata[Ve] || {}, ke = Re.h === 1, we = Ve, !ke) {
27584
+ for (var He = we, Oe = ze.length - 1, $e = !0, Re, Me, Ne; $e && (Re = ze[He], Me = ze[He + 1], !(Me.t - this.offsetTime > Ee)); )
27585
+ He < Oe - 1 ? He += 1 : $e = !1;
27586
+ if (Ne = this.keyframesMetadata[He] || {}, ke = Re.h === 1, we = He, !ke) {
27572
27587
  if (Ee >= Me.t - this.offsetTime)
27573
27588
  je = 1;
27574
27589
  else if (Ee < Re.t - this.offsetTime)
@@ -27581,9 +27596,9 @@ var lottie$1 = { exports: {} };
27581
27596
  }
27582
27597
  Ie = Re.s[0];
27583
27598
  }
27584
- for (He = Ae._length, Be = Ie.i[0].length, Te.lastIndex = we, Le = 0; Le < He; Le += 1)
27599
+ for (Ue = Ae._length, Be = Ie.i[0].length, Te.lastIndex = we, Le = 0; Le < Ue; Le += 1)
27585
27600
  for (Ge = 0; Ge < Be; Ge += 1)
27586
- Ue = ke ? Ie.i[Le][Ge] : Ie.i[Le][Ge] + (Fe.i[Le][Ge] - Ie.i[Le][Ge]) * je, Ae.i[Le][Ge] = Ue, Ue = ke ? Ie.o[Le][Ge] : Ie.o[Le][Ge] + (Fe.o[Le][Ge] - Ie.o[Le][Ge]) * je, Ae.o[Le][Ge] = Ue, Ue = ke ? Ie.v[Le][Ge] : Ie.v[Le][Ge] + (Fe.v[Le][Ge] - Ie.v[Le][Ge]) * je, Ae.v[Le][Ge] = Ue;
27601
+ Ve = ke ? Ie.i[Le][Ge] : Ie.i[Le][Ge] + (Fe.i[Le][Ge] - Ie.i[Le][Ge]) * je, Ae.i[Le][Ge] = Ve, Ve = ke ? Ie.o[Le][Ge] : Ie.o[Le][Ge] + (Fe.o[Le][Ge] - Ie.o[Le][Ge]) * je, Ae.o[Le][Ge] = Ve, Ve = ke ? Ie.v[Le][Ge] : Ie.v[Le][Ge] + (Fe.v[Le][Ge] - Ie.v[Le][Ge]) * je, Ae.v[Le][Ge] = Ve;
27587
27602
  }
27588
27603
  function C() {
27589
27604
  var Ee = this.comp.renderedFrame - this.offsetTime, Ae = this.keyframes[0].t - this.offsetTime, Te = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, we = this._caching.lastFrame;
@@ -27666,20 +27681,20 @@ var lottie$1 = { exports: {} };
27666
27681
  this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
27667
27682
  },
27668
27683
  convertStarToPath: function() {
27669
- var Te = Math.floor(this.pt.v) * 2, we = Math.PI * 2 / Te, Ie = !0, Fe = this.or.v, ke = this.ir.v, Le = this.os.v, Ge = this.is.v, He = 2 * Math.PI * Fe / (Te * 2), Be = 2 * Math.PI * ke / (Te * 2), je, Ue, ze, Ve, Oe = -Math.PI / 2;
27684
+ var Te = Math.floor(this.pt.v) * 2, we = Math.PI * 2 / Te, Ie = !0, Fe = this.or.v, ke = this.ir.v, Le = this.os.v, Ge = this.is.v, Ue = 2 * Math.PI * Fe / (Te * 2), Be = 2 * Math.PI * ke / (Te * 2), je, Ve, ze, He, Oe = -Math.PI / 2;
27670
27685
  Oe += this.r.v;
27671
27686
  var $e = this.data.d === 3 ? -1 : 1;
27672
27687
  for (this.v._length = 0, je = 0; je < Te; je += 1) {
27673
- Ue = Ie ? Fe : ke, ze = Ie ? Le : Ge, Ve = Ie ? He : Be;
27674
- var Re = Ue * Math.cos(Oe), Me = Ue * Math.sin(Oe), Ne = Re === 0 && Me === 0 ? 0 : Me / Math.sqrt(Re * Re + Me * Me), De = Re === 0 && Me === 0 ? 0 : -Re / Math.sqrt(Re * Re + Me * Me);
27675
- Re += +this.p.v[0], Me += +this.p.v[1], this.v.setTripleAt(Re, Me, Re - Ne * Ve * ze * $e, Me - De * Ve * ze * $e, Re + Ne * Ve * ze * $e, Me + De * Ve * ze * $e, je, !0), Ie = !Ie, Oe += we * $e;
27688
+ Ve = Ie ? Fe : ke, ze = Ie ? Le : Ge, He = Ie ? Ue : Be;
27689
+ var Re = Ve * Math.cos(Oe), Me = Ve * Math.sin(Oe), Ne = Re === 0 && Me === 0 ? 0 : Me / Math.sqrt(Re * Re + Me * Me), De = Re === 0 && Me === 0 ? 0 : -Re / Math.sqrt(Re * Re + Me * Me);
27690
+ Re += +this.p.v[0], Me += +this.p.v[1], this.v.setTripleAt(Re, Me, Re - Ne * He * ze * $e, Me - De * He * ze * $e, Re + Ne * He * ze * $e, Me + De * He * ze * $e, je, !0), Ie = !Ie, Oe += we * $e;
27676
27691
  }
27677
27692
  },
27678
27693
  convertPolygonToPath: function() {
27679
- var Te = Math.floor(this.pt.v), we = Math.PI * 2 / Te, Ie = this.or.v, Fe = this.os.v, ke = 2 * Math.PI * Ie / (Te * 4), Le, Ge = -Math.PI * 0.5, He = this.data.d === 3 ? -1 : 1;
27694
+ var Te = Math.floor(this.pt.v), we = Math.PI * 2 / Te, Ie = this.or.v, Fe = this.os.v, ke = 2 * Math.PI * Ie / (Te * 4), Le, Ge = -Math.PI * 0.5, Ue = this.data.d === 3 ? -1 : 1;
27680
27695
  for (Ge += this.r.v, this.v._length = 0, Le = 0; Le < Te; Le += 1) {
27681
- var Be = Ie * Math.cos(Ge), je = Ie * Math.sin(Ge), Ue = Be === 0 && je === 0 ? 0 : je / Math.sqrt(Be * Be + je * je), ze = Be === 0 && je === 0 ? 0 : -Be / Math.sqrt(Be * Be + je * je);
27682
- Be += +this.p.v[0], je += +this.p.v[1], this.v.setTripleAt(Be, je, Be - Ue * ke * Fe * He, je - ze * ke * Fe * He, Be + Ue * ke * Fe * He, je + ze * ke * Fe * He, Le, !0), Ge += we * He;
27696
+ var Be = Ie * Math.cos(Ge), je = Ie * Math.sin(Ge), Ve = Be === 0 && je === 0 ? 0 : je / Math.sqrt(Be * Be + je * je), ze = Be === 0 && je === 0 ? 0 : -Be / Math.sqrt(Be * Be + je * je);
27697
+ Be += +this.p.v[0], je += +this.p.v[1], this.v.setTripleAt(Be, je, Be - Ve * ke * Fe * Ue, je - ze * ke * Fe * Ue, Be + Ve * ke * Fe * Ue, je + ze * ke * Fe * Ue, Le, !0), Ge += we * Ue;
27683
27698
  }
27684
27699
  this.paths.length = 0, this.paths[0] = this.v;
27685
27700
  }
@@ -27777,8 +27792,8 @@ var lottie$1 = { exports: {} };
27777
27792
  var We = this.props;
27778
27793
  if (Re === 1 && Me === 0 && Ne === 0 && De === 0 && Xe === 0 && qe === 1 && Ye === 0 && Je === 0 && Ke === 0 && rt === 0 && nt === 1 && Qe === 0)
27779
27794
  return We[12] = We[12] * Re + We[15] * Ze, We[13] = We[13] * qe + We[15] * tt, We[14] = We[14] * nt + We[15] * st, We[15] *= et, this._identityCalculated = !1, this;
27780
- var it = We[0], ot = We[1], ht = We[2], gt = We[3], pt = We[4], ft = We[5], mt = We[6], ct = We[7], xt = We[8], bt = We[9], It = We[10], Et = We[11], Ft = We[12], qt = We[13], Wt = We[14], Yt = We[15];
27781
- return We[0] = it * Re + ot * Xe + ht * Ke + gt * Ze, We[1] = it * Me + ot * qe + ht * rt + gt * tt, We[2] = it * Ne + ot * Ye + ht * nt + gt * st, We[3] = it * De + ot * Je + ht * Qe + gt * et, We[4] = pt * Re + ft * Xe + mt * Ke + ct * Ze, We[5] = pt * Me + ft * qe + mt * rt + ct * tt, We[6] = pt * Ne + ft * Ye + mt * nt + ct * st, We[7] = pt * De + ft * Je + mt * Qe + ct * et, We[8] = xt * Re + bt * Xe + It * Ke + Et * Ze, We[9] = xt * Me + bt * qe + It * rt + Et * tt, We[10] = xt * Ne + bt * Ye + It * nt + Et * st, We[11] = xt * De + bt * Je + It * Qe + Et * et, We[12] = Ft * Re + qt * Xe + Wt * Ke + Yt * Ze, We[13] = Ft * Me + qt * qe + Wt * rt + Yt * tt, We[14] = Ft * Ne + qt * Ye + Wt * nt + Yt * st, We[15] = Ft * De + qt * Je + Wt * Qe + Yt * et, this._identityCalculated = !1, this;
27795
+ var it = We[0], lt = We[1], ht = We[2], dt = We[3], mt = We[4], ct = We[5], pt = We[6], yt = We[7], gt = We[8], xt = We[9], It = We[10], St = We[11], Mt = We[12], qt = We[13], Wt = We[14], Yt = We[15];
27796
+ return We[0] = it * Re + lt * Xe + ht * Ke + dt * Ze, We[1] = it * Me + lt * qe + ht * rt + dt * tt, We[2] = it * Ne + lt * Ye + ht * nt + dt * st, We[3] = it * De + lt * Je + ht * Qe + dt * et, We[4] = mt * Re + ct * Xe + pt * Ke + yt * Ze, We[5] = mt * Me + ct * qe + pt * rt + yt * tt, We[6] = mt * Ne + ct * Ye + pt * nt + yt * st, We[7] = mt * De + ct * Je + pt * Qe + yt * et, We[8] = gt * Re + xt * Xe + It * Ke + St * Ze, We[9] = gt * Me + xt * qe + It * rt + St * tt, We[10] = gt * Ne + xt * Ye + It * nt + St * st, We[11] = gt * De + xt * Je + It * Qe + St * et, We[12] = Mt * Re + qt * Xe + Wt * Ke + Yt * Ze, We[13] = Mt * Me + qt * qe + Wt * rt + Yt * tt, We[14] = Mt * Ne + qt * Ye + Wt * nt + Yt * st, We[15] = Mt * De + qt * Je + Wt * Qe + Yt * et, this._identityCalculated = !1, this;
27782
27797
  }
27783
27798
  function Pe(Re) {
27784
27799
  var Me = Re.props;
@@ -27826,14 +27841,14 @@ var lottie$1 = { exports: {} };
27826
27841
  var Re = this.props[0] * this.props[5] - this.props[1] * this.props[4], Me = this.props[5] / Re, Ne = -this.props[1] / Re, De = -this.props[4] / Re, Xe = this.props[0] / Re, qe = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / Re, Ye = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / Re, Je = new Matrix();
27827
27842
  return Je.props[0] = Me, Je.props[1] = Ne, Je.props[4] = De, Je.props[5] = Xe, Je.props[12] = qe, Je.props[13] = Ye, Je;
27828
27843
  }
27829
- function He(Re) {
27844
+ function Ue(Re) {
27830
27845
  var Me = this.getInverseMatrix();
27831
27846
  return Me.applyToPointArray(Re[0], Re[1], Re[2] || 0);
27832
27847
  }
27833
27848
  function Be(Re) {
27834
27849
  var Me, Ne = Re.length, De = [];
27835
27850
  for (Me = 0; Me < Ne; Me += 1)
27836
- De[Me] = He(Re[Me]);
27851
+ De[Me] = Ue(Re[Me]);
27837
27852
  return De;
27838
27853
  }
27839
27854
  function je(Re, Me, Ne) {
@@ -27846,7 +27861,7 @@ var lottie$1 = { exports: {} };
27846
27861
  }
27847
27862
  return De;
27848
27863
  }
27849
- function Ue(Re, Me, Ne) {
27864
+ function Ve(Re, Me, Ne) {
27850
27865
  var De;
27851
27866
  return this.isIdentity() ? De = [Re, Me, Ne] : De = [Re * this.props[0] + Me * this.props[4] + Ne * this.props[8] + this.props[12], Re * this.props[1] + Me * this.props[5] + Ne * this.props[9] + this.props[13], Re * this.props[2] + Me * this.props[6] + Ne * this.props[10] + this.props[14]], De;
27852
27867
  }
@@ -27856,7 +27871,7 @@ var lottie$1 = { exports: {} };
27856
27871
  var Ne = this.props;
27857
27872
  return Math.round((Re * Ne[0] + Me * Ne[4] + Ne[12]) * 100) / 100 + "," + Math.round((Re * Ne[1] + Me * Ne[5] + Ne[13]) * 100) / 100;
27858
27873
  }
27859
- function Ve() {
27874
+ function He() {
27860
27875
  for (var Re = 0, Me = this.props, Ne = "matrix3d(", De = 1e4; Re < 16; )
27861
27876
  Ne += R(Me[Re] * De) / De, Ne += Re === 15 ? ")" : ",", Re += 1;
27862
27877
  return Ne;
@@ -27870,7 +27885,7 @@ var lottie$1 = { exports: {} };
27870
27885
  return "matrix(" + Me + "," + Ne + "," + De + "," + Xe + "," + qe + "," + Ye + ")";
27871
27886
  }
27872
27887
  return function() {
27873
- this.reset = I, this.rotate = B, this.rotateX = U, this.rotateY = V, this.rotateZ = X, this.skew = J, this.skewFromAxis = Y, this.shear = K, this.scale = Z, this.setTransform = _e, this.translate = xe, this.transform = Se, this.multiply = Pe, this.applyToPoint = Ie, this.applyToX = Fe, this.applyToY = ke, this.applyToZ = Le, this.applyToPointArray = Ue, this.applyToTriplePoints = je, this.applyToPointStringified = ze, this.toCSS = Ve, this.to2dCSS = $e, this.clone = Te, this.cloneFromProps = we, this.equals = Ae, this.inversePoints = Be, this.inversePoint = He, this.getInverseMatrix = Ge, this._t = this.transform, this.isIdentity = Ee, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
27888
+ this.reset = I, this.rotate = B, this.rotateX = U, this.rotateY = V, this.rotateZ = X, this.skew = J, this.skewFromAxis = Y, this.shear = K, this.scale = Z, this.setTransform = _e, this.translate = xe, this.transform = Se, this.multiply = Pe, this.applyToPoint = Ie, this.applyToX = Fe, this.applyToY = ke, this.applyToZ = Le, this.applyToPointArray = Ve, this.applyToTriplePoints = je, this.applyToPointStringified = ze, this.toCSS = He, this.to2dCSS = $e, this.clone = Te, this.cloneFromProps = we, this.equals = Ae, this.inversePoints = Be, this.inversePoint = Ue, this.getInverseMatrix = Ge, this._t = this.transform, this.isIdentity = Ee, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
27874
27889
  };
27875
27890
  }();
27876
27891
  function _typeof$3(A) {
@@ -28848,7 +28863,7 @@ var lottie$1 = { exports: {} };
28848
28863
  var $e = Ie(Oe);
28849
28864
  return $e >= K && $e <= J;
28850
28865
  }
28851
- function He(Oe) {
28866
+ function Ue(Oe) {
28852
28867
  return Ge(Oe.substr(0, 2)) && Ge(Oe.substr(2, 2));
28853
28868
  }
28854
28869
  function Be(Oe) {
@@ -28866,23 +28881,23 @@ var lottie$1 = { exports: {} };
28866
28881
  }
28867
28882
  return Ie(Oe.substr($e, 2)) === I;
28868
28883
  }
28869
- function Ue() {
28884
+ function Ve() {
28870
28885
  this.isLoaded = !0;
28871
28886
  }
28872
28887
  var ze = function() {
28873
28888
  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);
28874
28889
  };
28875
- ze.isModifier = Fe, ze.isZeroWidthJoiner = ke, ze.isFlagEmoji = He, ze.isRegionalCode = Ge, ze.isCombinedCharacter = Be, ze.isRegionalFlag = je, ze.isVariationSelector = Le, ze.BLACK_FLAG_CODE_POINT = R;
28876
- var Ve = {
28890
+ ze.isModifier = Fe, ze.isZeroWidthJoiner = ke, ze.isFlagEmoji = Ue, ze.isRegionalCode = Ge, ze.isCombinedCharacter = Be, ze.isRegionalFlag = je, ze.isVariationSelector = Le, ze.BLACK_FLAG_CODE_POINT = R;
28891
+ var He = {
28877
28892
  addChars: Ee,
28878
28893
  addFonts: Pe,
28879
28894
  getCharData: Ae,
28880
28895
  getFontByName: we,
28881
28896
  measureText: Te,
28882
28897
  checkLoadedFonts: xe,
28883
- setIsLoaded: Ue
28898
+ setIsLoaded: Ve
28884
28899
  };
28885
- return ze.prototype = Ve, ze;
28900
+ return ze.prototype = He, ze;
28886
28901
  }();
28887
28902
  function SlotManager(A) {
28888
28903
  this.animationData = A;
@@ -29876,9 +29891,9 @@ var lottie$1 = { exports: {} };
29876
29891
  Le = Ie[Fe], Le.setAttribute("offset", Ge[Fe * 4] + "%"), Le.setAttribute("stop-color", "rgb(" + Ge[Fe * 4 + 1] + "," + Ge[Fe * 4 + 2] + "," + Ge[Fe * 4 + 3] + ")");
29877
29892
  }
29878
29893
  if (Se && (Z.g._omdf || _e)) {
29879
- var He = Z.g.o;
29894
+ var Ue = Z.g.o;
29880
29895
  for (Z.g._collapsable ? Ie = Z.cst : Ie = Z.ost, ke = Ie.length, Fe = 0; Fe < ke; Fe += 1)
29881
- Le = Ie[Fe], Z.g._collapsable || Le.setAttribute("offset", He[Fe * 2] + "%"), Le.setAttribute("stop-opacity", He[Fe * 2 + 1]);
29896
+ Le = Ie[Fe], Z.g._collapsable || Le.setAttribute("offset", Ue[Fe * 2] + "%"), Le.setAttribute("stop-opacity", Ue[Fe * 2 + 1]);
29882
29897
  }
29883
29898
  if (Y.t === 1)
29884
29899
  (Z.e._mdf || _e) && (xe.setAttribute("x2", Ee[0]), xe.setAttribute("y2", Ee[1]), Se && !Z.g._collapsable && (Z.of.setAttribute("x2", Ee[0]), Z.of.setAttribute("y2", Ee[1])));
@@ -29886,10 +29901,10 @@ var lottie$1 = { exports: {} };
29886
29901
  var Be;
29887
29902
  if ((Z.s._mdf || Z.e._mdf || _e) && (Be = Math.sqrt(Math.pow(Pe[0] - Ee[0], 2) + Math.pow(Pe[1] - Ee[1], 2)), xe.setAttribute("r", Be), Se && !Z.g._collapsable && Z.of.setAttribute("r", Be)), Z.e._mdf || Z.h._mdf || Z.a._mdf || _e) {
29888
29903
  Be || (Be = Math.sqrt(Math.pow(Pe[0] - Ee[0], 2) + Math.pow(Pe[1] - Ee[1], 2)));
29889
- var je = Math.atan2(Ee[1] - Pe[1], Ee[0] - Pe[0]), Ue = Z.h.v;
29890
- Ue >= 1 ? Ue = 0.99 : Ue <= -1 && (Ue = -0.99);
29891
- var ze = Be * Ue, Ve = Math.cos(je + Z.a.v) * ze + Pe[0], Oe = Math.sin(je + Z.a.v) * ze + Pe[1];
29892
- xe.setAttribute("fx", Ve), xe.setAttribute("fy", Oe), Se && !Z.g._collapsable && (Z.of.setAttribute("fx", Ve), Z.of.setAttribute("fy", Oe));
29904
+ var je = Math.atan2(Ee[1] - Pe[1], Ee[0] - Pe[0]), Ve = Z.h.v;
29905
+ Ve >= 1 ? Ve = 0.99 : Ve <= -1 && (Ve = -0.99);
29906
+ var ze = Be * Ve, He = Math.cos(je + Z.a.v) * ze + Pe[0], Oe = Math.sin(je + Z.a.v) * ze + Pe[1];
29907
+ xe.setAttribute("fx", He), xe.setAttribute("fy", Oe), Se && !Z.g._collapsable && (Z.of.setAttribute("fx", He), Z.of.setAttribute("fy", Oe));
29893
29908
  }
29894
29909
  }
29895
29910
  }
@@ -30084,17 +30099,17 @@ var lottie$1 = { exports: {} };
30084
30099
  A.fWeight = Ie.weight, A.fStyle = Ie.style, A.finalSize = A.s, A.finalText = this.buildFinalText(A.t), B = A.finalText.length, A.finalLineHeight = A.lh;
30085
30100
  var Fe = A.tr / 1e3 * A.finalSize, ke;
30086
30101
  if (A.sz)
30087
- for (var Le = !0, Ge = A.sz[0], He = A.sz[1], Be, je; Le; ) {
30102
+ for (var Le = !0, Ge = A.sz[0], Ue = A.sz[1], Be, je; Le; ) {
30088
30103
  je = this.buildFinalText(A.t), Be = 0, xe = 0, B = je.length, Fe = A.tr / 1e3 * A.finalSize;
30089
- var Ue = -1;
30104
+ var Ve = -1;
30090
30105
  for (I = 0; I < B; I += 1)
30091
- ke = je[I].charCodeAt(0), U = !1, je[I] === " " ? Ue = I : (ke === 13 || ke === 3) && (xe = 0, U = !0, Be += A.finalLineHeight || A.finalSize * 1.2), E.chars ? (Te = E.getCharData(je[I], Ae.fStyle, Ae.fFamily), we = U ? 0 : Te.w * A.finalSize / 100) : we = E.measureText(je[I], A.f, A.finalSize), xe + we > Ge && je[I] !== " " ? (Ue === -1 ? B += 1 : I = Ue, Be += A.finalLineHeight || A.finalSize * 1.2, je.splice(I, Ue === I ? 1 : 0, "\r"), Ue = -1, xe = 0) : (xe += we, xe += Fe);
30092
- Be += Ae.ascent * A.finalSize / 100, this.canResize && A.finalSize > this.minimumFontSize && He < Be ? (A.finalSize -= 1, A.finalLineHeight = A.finalSize * A.lh / A.s) : (A.finalText = je, B = A.finalText.length, Le = !1);
30106
+ ke = je[I].charCodeAt(0), U = !1, je[I] === " " ? Ve = I : (ke === 13 || ke === 3) && (xe = 0, U = !0, Be += A.finalLineHeight || A.finalSize * 1.2), E.chars ? (Te = E.getCharData(je[I], Ae.fStyle, Ae.fFamily), we = U ? 0 : Te.w * A.finalSize / 100) : we = E.measureText(je[I], A.f, A.finalSize), xe + we > Ge && je[I] !== " " ? (Ve === -1 ? B += 1 : I = Ve, Be += A.finalLineHeight || A.finalSize * 1.2, je.splice(I, Ve === I ? 1 : 0, "\r"), Ve = -1, xe = 0) : (xe += we, xe += Fe);
30107
+ Be += Ae.ascent * A.finalSize / 100, this.canResize && A.finalSize > this.minimumFontSize && Ue < Be ? (A.finalSize -= 1, A.finalLineHeight = A.finalSize * A.lh / A.s) : (A.finalText = je, B = A.finalText.length, Le = !1);
30093
30108
  }
30094
30109
  xe = -Fe, we = 0;
30095
- var ze = 0, Ve;
30110
+ var ze = 0, He;
30096
30111
  for (I = 0; I < B; I += 1)
30097
- if (U = !1, Ve = A.finalText[I], ke = Ve.charCodeAt(0), ke === 13 || ke === 3 ? (ze = 0, _e.push(xe), Se = xe > Se ? xe : Se, xe = -2 * Fe, X = "", U = !0, Z += 1) : X = Ve, E.chars ? (Te = E.getCharData(Ve, Ae.fStyle, E.getFontByName(A.f).fFamily), we = U ? 0 : Te.w * A.finalSize / 100) : we = E.measureText(X, A.f, A.finalSize), Ve === " " ? ze += we + Fe : (xe += we + Fe + ze, ze = 0), R.push({
30112
+ if (U = !1, He = A.finalText[I], ke = He.charCodeAt(0), ke === 13 || ke === 3 ? (ze = 0, _e.push(xe), Se = xe > Se ? xe : Se, xe = -2 * Fe, X = "", U = !0, Z += 1) : X = He, E.chars ? (Te = E.getCharData(He, Ae.fStyle, E.getFontByName(A.f).fFamily), we = U ? 0 : Te.w * A.finalSize / 100) : we = E.measureText(X, A.f, A.finalSize), He === " " ? ze += we + Fe : (xe += we + Fe + ze, ze = 0), R.push({
30098
30113
  l: we,
30099
30114
  an: we,
30100
30115
  add: J,
@@ -30265,7 +30280,7 @@ var lottie$1 = { exports: {} };
30265
30280
  }, TextAnimatorProperty.prototype.getMeasures = function(A, E) {
30266
30281
  if (this.lettersChangedFlag = E, !(!this._mdf && !this._isFirstFrame && !E && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
30267
30282
  this._isFirstFrame = !1;
30268
- var C = this._moreOptions.alignment.v, R = this._animatorsData, I = this._textData, B = this.mHelper, U = this._renderType, V = this.renderedLetters.length, X, K, J, Y, Z = A.l, _e, xe, Se, Pe, Ee, Ae, Te, we, Ie, Fe, ke, Le, Ge, He, Be;
30283
+ var C = this._moreOptions.alignment.v, R = this._animatorsData, I = this._textData, B = this.mHelper, U = this._renderType, V = this.renderedLetters.length, X, K, J, Y, Z = A.l, _e, xe, Se, Pe, Ee, Ae, Te, we, Ie, Fe, ke, Le, Ge, Ue, Be;
30269
30284
  if (this._hasMaskedPath) {
30270
30285
  if (Be = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
30271
30286
  var je = Be.v;
@@ -30273,10 +30288,10 @@ var lottie$1 = { exports: {} };
30273
30288
  tLength: 0,
30274
30289
  segments: []
30275
30290
  }, Y = je._length - 1;
30276
- var Ue;
30291
+ var Ve;
30277
30292
  for (Le = 0, J = 0; J < Y; J += 1)
30278
- Ue = bez.buildBezierData(je.v[J], je.v[J + 1], [je.o[J][0] - je.v[J][0], je.o[J][1] - je.v[J][1]], [je.i[J + 1][0] - je.v[J + 1][0], je.i[J + 1][1] - je.v[J + 1][1]]), _e.tLength += Ue.segmentLength, _e.segments.push(Ue), Le += Ue.segmentLength;
30279
- J = Y, Be.v.c && (Ue = bez.buildBezierData(je.v[J], je.v[0], [je.o[J][0] - je.v[J][0], je.o[J][1] - je.v[J][1]], [je.i[0][0] - je.v[0][0], je.i[0][1] - je.v[0][1]]), _e.tLength += Ue.segmentLength, _e.segments.push(Ue), Le += Ue.segmentLength), this._pathData.pi = _e;
30293
+ Ve = bez.buildBezierData(je.v[J], je.v[J + 1], [je.o[J][0] - je.v[J][0], je.o[J][1] - je.v[J][1]], [je.i[J + 1][0] - je.v[J + 1][0], je.i[J + 1][1] - je.v[J + 1][1]]), _e.tLength += Ve.segmentLength, _e.segments.push(Ve), Le += Ve.segmentLength;
30294
+ J = Y, Be.v.c && (Ve = bez.buildBezierData(je.v[J], je.v[0], [je.o[J][0] - je.v[J][0], je.o[J][1] - je.v[J][1]], [je.i[0][0] - je.v[0][0], je.i[0][1] - je.v[0][1]]), _e.tLength += Ve.segmentLength, _e.segments.push(Ve), Le += Ve.segmentLength), this._pathData.pi = _e;
30280
30295
  }
30281
30296
  if (_e = this._pathData.pi, xe = this._pathData.f.v, Te = 0, Ae = 1, Pe = 0, Ee = !0, Fe = _e.segments, xe < 0 && Be.v.c)
30282
30297
  for (_e.tLength < Math.abs(xe) && (xe = -Math.abs(xe) % _e.tLength), Te = Fe.length - 1, Ie = Fe[Te].points, Ae = Ie.length - 1; xe < 0; )
@@ -30284,27 +30299,27 @@ var lottie$1 = { exports: {} };
30284
30299
  Ie = Fe[Te].points, we = Ie[Ae - 1], Se = Ie[Ae], ke = Se.partialLength;
30285
30300
  }
30286
30301
  Y = Z.length, X = 0, K = 0;
30287
- var ze = A.finalSize * 1.2 * 0.714, Ve = !0, Oe, $e, Re, Me, Ne;
30302
+ var ze = A.finalSize * 1.2 * 0.714, He = !0, Oe, $e, Re, Me, Ne;
30288
30303
  Me = R.length;
30289
- var De, Xe = -1, qe, Ye, Je, Ke = xe, rt = Te, nt = Ae, Qe = -1, Ze, tt, st, et, We, it, ot, ht, gt = "", pt = this.defaultPropsArray, ft;
30304
+ var De, Xe = -1, qe, Ye, Je, Ke = xe, rt = Te, nt = Ae, Qe = -1, Ze, tt, st, et, We, it, lt, ht, dt = "", mt = this.defaultPropsArray, ct;
30290
30305
  if (A.j === 2 || A.j === 1) {
30291
- var mt = 0, ct = 0, xt = A.j === 2 ? -0.5 : -1, bt = 0, It = !0;
30306
+ var pt = 0, yt = 0, gt = A.j === 2 ? -0.5 : -1, xt = 0, It = !0;
30292
30307
  for (J = 0; J < Y; J += 1)
30293
30308
  if (Z[J].n) {
30294
- for (mt && (mt += ct); bt < J; )
30295
- Z[bt].animatorJustifyOffset = mt, bt += 1;
30296
- mt = 0, It = !0;
30309
+ for (pt && (pt += yt); xt < J; )
30310
+ Z[xt].animatorJustifyOffset = pt, xt += 1;
30311
+ pt = 0, It = !0;
30297
30312
  } else {
30298
30313
  for (Re = 0; Re < Me; Re += 1)
30299
- Oe = R[Re].a, Oe.t.propType && (It && A.j === 2 && (ct += Oe.t.v * xt), $e = R[Re].s, De = $e.getMult(Z[J].anIndexes[Re], I.a[Re].s.totalChars), De.length ? mt += Oe.t.v * De[0] * xt : mt += Oe.t.v * De * xt);
30314
+ Oe = R[Re].a, Oe.t.propType && (It && A.j === 2 && (yt += Oe.t.v * gt), $e = R[Re].s, De = $e.getMult(Z[J].anIndexes[Re], I.a[Re].s.totalChars), De.length ? pt += Oe.t.v * De[0] * gt : pt += Oe.t.v * De * gt);
30300
30315
  It = !1;
30301
30316
  }
30302
- for (mt && (mt += ct); bt < J; )
30303
- Z[bt].animatorJustifyOffset = mt, bt += 1;
30317
+ for (pt && (pt += yt); xt < J; )
30318
+ Z[xt].animatorJustifyOffset = pt, xt += 1;
30304
30319
  }
30305
30320
  for (J = 0; J < Y; J += 1) {
30306
30321
  if (B.reset(), Ze = 1, Z[J].n)
30307
- X = 0, K += A.yOffset, K += Ve ? 1 : 0, xe = Ke, Ve = !1, this._hasMaskedPath && (Te = rt, Ae = nt, Ie = Fe[Te].points, we = Ie[Ae - 1], Se = Ie[Ae], ke = Se.partialLength, Pe = 0), gt = "", ht = "", it = "", ft = "", pt = this.defaultPropsArray;
30322
+ X = 0, K += A.yOffset, K += He ? 1 : 0, xe = Ke, He = !1, this._hasMaskedPath && (Te = rt, Ae = nt, Ie = Fe[Te].points, we = Ie[Ae - 1], Se = Ie[Ae], ke = Se.partialLength, Pe = 0), dt = "", ht = "", it = "", ct = "", mt = this.defaultPropsArray;
30308
30323
  else {
30309
30324
  if (this._hasMaskedPath) {
30310
30325
  if (Qe !== Z[J].line) {
@@ -30319,11 +30334,11 @@ var lottie$1 = { exports: {} };
30319
30334
  Qe = Z[J].line;
30320
30335
  }
30321
30336
  Xe !== Z[J].ind && (Z[Xe] && (xe += Z[Xe].extra), xe += Z[J].an / 2, Xe = Z[J].ind), xe += C[0] * Z[J].an * 5e-3;
30322
- var Et = 0;
30337
+ var St = 0;
30323
30338
  for (Re = 0; Re < Me; Re += 1)
30324
- Oe = R[Re].a, Oe.p.propType && ($e = R[Re].s, De = $e.getMult(Z[J].anIndexes[Re], I.a[Re].s.totalChars), De.length ? Et += Oe.p.v[0] * De[0] : Et += Oe.p.v[0] * De), Oe.a.propType && ($e = R[Re].s, De = $e.getMult(Z[J].anIndexes[Re], I.a[Re].s.totalChars), De.length ? Et += Oe.a.v[0] * De[0] : Et += Oe.a.v[0] * De);
30339
+ Oe = R[Re].a, Oe.p.propType && ($e = R[Re].s, De = $e.getMult(Z[J].anIndexes[Re], I.a[Re].s.totalChars), De.length ? St += Oe.p.v[0] * De[0] : St += Oe.p.v[0] * De), Oe.a.propType && ($e = R[Re].s, De = $e.getMult(Z[J].anIndexes[Re], I.a[Re].s.totalChars), De.length ? St += Oe.a.v[0] * De[0] : St += Oe.a.v[0] * De);
30325
30340
  for (Ee = !0, this._pathData.a.v && (xe = Z[0].an * 0.5 + (Le - this._pathData.f.v - Z[0].an * 0.5 - Z[Z.length - 1].an * 0.5) * Xe / (Y - 1), xe += this._pathData.f.v); Ee; )
30326
- Pe + ke >= xe + Et || !Ie ? (Ge = (xe + Et - Pe) / Se.partialLength, Ye = we.point[0] + (Se.point[0] - we.point[0]) * Ge, Je = we.point[1] + (Se.point[1] - we.point[1]) * Ge, B.translate(-C[0] * Z[J].an * 5e-3, -(C[1] * ze) * 0.01), Ee = !1) : Ie && (Pe += Se.partialLength, Ae += 1, Ae >= Ie.length && (Ae = 0, Te += 1, Fe[Te] ? Ie = Fe[Te].points : Be.v.c ? (Ae = 0, Te = 0, Ie = Fe[Te].points) : (Pe -= Se.partialLength, Ie = null)), Ie && (we = Se, Se = Ie[Ae], ke = Se.partialLength));
30341
+ Pe + ke >= xe + St || !Ie ? (Ge = (xe + St - Pe) / Se.partialLength, Ye = we.point[0] + (Se.point[0] - we.point[0]) * Ge, Je = we.point[1] + (Se.point[1] - we.point[1]) * Ge, B.translate(-C[0] * Z[J].an * 5e-3, -(C[1] * ze) * 0.01), Ee = !1) : Ie && (Pe += Se.partialLength, Ae += 1, Ae >= Ie.length && (Ae = 0, Te += 1, Fe[Te] ? Ie = Fe[Te].points : Be.v.c ? (Ae = 0, Te = 0, Ie = Fe[Te].points) : (Pe -= Se.partialLength, Ie = null)), Ie && (we = Se, Se = Ie[Ae], ke = Se.partialLength));
30327
30342
  qe = Z[J].an / 2 - Z[J].add, B.translate(-qe, 0, 0);
30328
30343
  } else
30329
30344
  qe = Z[J].an / 2 - Z[J].add, B.translate(-qe, 0, 0), B.translate(-C[0] * Z[J].an * 5e-3, -C[1] * ze * 0.01, 0);
@@ -30346,11 +30361,11 @@ var lottie$1 = { exports: {} };
30346
30361
  }
30347
30362
  for (Re = 0; Re < Me; Re += 1)
30348
30363
  Oe = R[Re].a, Oe.p.propType && ($e = R[Re].s, De = $e.getMult(Z[J].anIndexes[Re], I.a[Re].s.totalChars), this._hasMaskedPath ? De.length ? B.translate(0, Oe.p.v[1] * De[0], -Oe.p.v[2] * De[1]) : B.translate(0, Oe.p.v[1] * De, -Oe.p.v[2] * De) : De.length ? B.translate(Oe.p.v[0] * De[0], Oe.p.v[1] * De[1], -Oe.p.v[2] * De[2]) : B.translate(Oe.p.v[0] * De, Oe.p.v[1] * De, -Oe.p.v[2] * De));
30349
- if (A.strokeWidthAnim && (it = st < 0 ? 0 : st), A.strokeColorAnim && (ot = "rgb(" + Math.round(tt[0] * 255) + "," + Math.round(tt[1] * 255) + "," + Math.round(tt[2] * 255) + ")"), A.fillColorAnim && A.fc && (ht = "rgb(" + Math.round(et[0] * 255) + "," + Math.round(et[1] * 255) + "," + Math.round(et[2] * 255) + ")"), this._hasMaskedPath) {
30364
+ if (A.strokeWidthAnim && (it = st < 0 ? 0 : st), A.strokeColorAnim && (lt = "rgb(" + Math.round(tt[0] * 255) + "," + Math.round(tt[1] * 255) + "," + Math.round(tt[2] * 255) + ")"), A.fillColorAnim && A.fc && (ht = "rgb(" + Math.round(et[0] * 255) + "," + Math.round(et[1] * 255) + "," + Math.round(et[2] * 255) + ")"), this._hasMaskedPath) {
30350
30365
  if (B.translate(0, -A.ls), B.translate(0, C[1] * ze * 0.01 + K, 0), this._pathData.p.v) {
30351
- He = (Se.point[1] - we.point[1]) / (Se.point[0] - we.point[0]);
30352
- var Ft = Math.atan(He) * 180 / Math.PI;
30353
- Se.point[0] < we.point[0] && (Ft += 180), B.rotate(-Ft * Math.PI / 180);
30366
+ Ue = (Se.point[1] - we.point[1]) / (Se.point[0] - we.point[0]);
30367
+ var Mt = Math.atan(Ue) * 180 / Math.PI;
30368
+ Se.point[0] < we.point[0] && (Mt += 180), B.rotate(-Mt * Math.PI / 180);
30354
30369
  }
30355
30370
  B.translate(Ye, Je, 0), xe -= C[0] * Z[J].an * 5e-3, Z[J + 1] && Xe !== Z[J + 1].ind && (xe += Z[J].an / 2, xe += A.tr * 1e-3 * A.finalSize);
30356
30371
  } else {
@@ -30364,9 +30379,9 @@ var lottie$1 = { exports: {} };
30364
30379
  }
30365
30380
  B.translate(0, -A.ls), B.translate(qe, 0, 0), B.translate(C[0] * Z[J].an * 5e-3, C[1] * ze * 0.01, 0), X += Z[J].l + A.tr * 1e-3 * A.finalSize;
30366
30381
  }
30367
- U === "html" ? gt = B.toCSS() : U === "svg" ? gt = B.to2dCSS() : pt = [B.props[0], B.props[1], B.props[2], B.props[3], B.props[4], B.props[5], B.props[6], B.props[7], B.props[8], B.props[9], B.props[10], B.props[11], B.props[12], B.props[13], B.props[14], B.props[15]], ft = Ze;
30382
+ U === "html" ? dt = B.toCSS() : U === "svg" ? dt = B.to2dCSS() : mt = [B.props[0], B.props[1], B.props[2], B.props[3], B.props[4], B.props[5], B.props[6], B.props[7], B.props[8], B.props[9], B.props[10], B.props[11], B.props[12], B.props[13], B.props[14], B.props[15]], ct = Ze;
30368
30383
  }
30369
- V <= J ? (Ne = new LetterProps(ft, it, ot, ht, gt, pt), this.renderedLetters.push(Ne), V += 1, this.lettersChangedFlag = !0) : (Ne = this.renderedLetters[J], this.lettersChangedFlag = Ne.update(ft, it, ot, ht, gt, pt) || this.lettersChangedFlag);
30384
+ V <= J ? (Ne = new LetterProps(ct, it, lt, ht, dt, mt), this.renderedLetters.push(Ne), V += 1, this.lettersChangedFlag = !0) : (Ne = this.renderedLetters[J], this.lettersChangedFlag = Ne.update(ct, it, lt, ht, dt, mt) || this.lettersChangedFlag);
30370
30385
  }
30371
30386
  }
30372
30387
  }, TextAnimatorProperty.prototype.getValue = function() {
@@ -31865,20 +31880,20 @@ var lottie$1 = { exports: {} };
31865
31880
  entropy: !0
31866
31881
  } : we || {};
31867
31882
  var ke = Pe(Se(we.entropy ? [Te, Ae(A)] : Te === null ? Ee() : Te, 3), Fe), Le = new _e(Fe), Ge = function() {
31868
- for (var Be = Le.g(I), je = V, Ue = 0; Be < X; )
31869
- Be = (Be + Ue) * R, je *= R, Ue = Le.g(1);
31883
+ for (var Be = Le.g(I), je = V, Ve = 0; Be < X; )
31884
+ Be = (Be + Ve) * R, je *= R, Ve = Le.g(1);
31870
31885
  for (; Be >= K; )
31871
- Be /= 2, je /= 2, Ue >>>= 1;
31872
- return (Be + Ue) / je;
31886
+ Be /= 2, je /= 2, Ve >>>= 1;
31887
+ return (Be + Ve) / je;
31873
31888
  };
31874
31889
  return Ge.int32 = function() {
31875
31890
  return Le.g(4) | 0;
31876
31891
  }, Ge.quick = function() {
31877
31892
  return Le.g(4) / 4294967296;
31878
- }, Ge.double = Ge, Pe(Ae(Le.S), A), (we.pass || Ie || function(He, Be, je, Ue) {
31879
- return Ue && (Ue.S && xe(Ue, Le), He.state = function() {
31893
+ }, Ge.double = Ge, Pe(Ae(Le.S), A), (we.pass || Ie || function(Ue, Be, je, Ve) {
31894
+ return Ve && (Ve.S && xe(Ve, Le), Ue.state = function() {
31880
31895
  return xe(Le, {});
31881
- }), je ? (E[U] = He, Be) : He;
31896
+ }), je ? (E[U] = Ue, Be) : Ue;
31882
31897
  })(Ge, ke, "global" in we ? we.global : this == E, we.state);
31883
31898
  }
31884
31899
  E["seed" + U] = Z;
@@ -31888,10 +31903,10 @@ var lottie$1 = { exports: {} };
31888
31903
  Ge[ke] = ke++;
31889
31904
  for (ke = 0; ke < R; ke++)
31890
31905
  Ge[ke] = Ge[Le = J & Le + Te[ke % Ie] + (we = Ge[ke])], Ge[Le] = we;
31891
- Fe.g = function(He) {
31892
- for (var Be, je = 0, Ue = Fe.i, ze = Fe.j, Ve = Fe.S; He--; )
31893
- Be = Ve[Ue = J & Ue + 1], je = je * R + Ve[J & (Ve[Ue] = Ve[ze = J & ze + Be]) + (Ve[ze] = Be)];
31894
- return Fe.i = Ue, Fe.j = ze, je;
31906
+ Fe.g = function(Ue) {
31907
+ for (var Be, je = 0, Ve = Fe.i, ze = Fe.j, He = Fe.S; Ue--; )
31908
+ Be = He[Ve = J & Ve + 1], je = je * R + He[J & (He[Ve] = He[ze = J & ze + Be]) + (He[ze] = Be)];
31909
+ return Fe.i = Ve, Fe.j = ze, je;
31895
31910
  };
31896
31911
  }
31897
31912
  function xe(Te, we) {
@@ -33099,21 +33114,21 @@ var lottie$1 = { exports: {} };
33099
33114
  if (ke % 2 !== 0)
33100
33115
  return this.getValueAtTime((Ae - (Se - Te) % Ae + Te) / this.comp.globalData.frameRate, 0);
33101
33116
  } else if (Z === "offset") {
33102
- var Le = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), Ge = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), He = this.getValueAtTime(((Se - Te) % Ae + Te) / this.comp.globalData.frameRate, 0), Be = Math.floor((Se - Te) / Ae);
33117
+ var Le = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), Ge = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), Ue = this.getValueAtTime(((Se - Te) % Ae + Te) / this.comp.globalData.frameRate, 0), Be = Math.floor((Se - Te) / Ae);
33103
33118
  if (this.pv.length) {
33104
33119
  for (Fe = new Array(Le.length), Ie = Fe.length, we = 0; we < Ie; we += 1)
33105
- Fe[we] = (Ge[we] - Le[we]) * Be + He[we];
33120
+ Fe[we] = (Ge[we] - Le[we]) * Be + Ue[we];
33106
33121
  return Fe;
33107
33122
  }
33108
- return (Ge - Le) * Be + He;
33123
+ return (Ge - Le) * Be + Ue;
33109
33124
  } else if (Z === "continue") {
33110
- var je = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), Ue = this.getValueAtTime((Ee - 1e-3) / this.comp.globalData.frameRate, 0);
33125
+ var je = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), Ve = this.getValueAtTime((Ee - 1e-3) / this.comp.globalData.frameRate, 0);
33111
33126
  if (this.pv.length) {
33112
33127
  for (Fe = new Array(je.length), Ie = Fe.length, we = 0; we < Ie; we += 1)
33113
- Fe[we] = je[we] + (je[we] - Ue[we]) * ((Se - Ee) / this.comp.globalData.frameRate) / 5e-4;
33128
+ Fe[we] = je[we] + (je[we] - Ve[we]) * ((Se - Ee) / this.comp.globalData.frameRate) / 5e-4;
33114
33129
  return Fe;
33115
33130
  }
33116
- return je + (je - Ue) * ((Se - Ee) / 1e-3);
33131
+ return je + (je - Ve) * ((Se - Ee) / 1e-3);
33117
33132
  }
33118
33133
  return this.getValueAtTime(((Se - Te) % Ae + Te) / this.comp.globalData.frameRate, 0);
33119
33134
  }
@@ -33132,21 +33147,21 @@ var lottie$1 = { exports: {} };
33132
33147
  if (ke % 2 === 0)
33133
33148
  return this.getValueAtTime(((Ee - Se) % Ae + Ee) / this.comp.globalData.frameRate, 0);
33134
33149
  } else if (Z === "offset") {
33135
- var Le = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), Ge = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), He = this.getValueAtTime((Ae - (Ee - Se) % Ae + Ee) / this.comp.globalData.frameRate, 0), Be = Math.floor((Ee - Se) / Ae) + 1;
33150
+ var Le = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), Ge = this.getValueAtTime(Te / this.comp.globalData.frameRate, 0), Ue = this.getValueAtTime((Ae - (Ee - Se) % Ae + Ee) / this.comp.globalData.frameRate, 0), Be = Math.floor((Ee - Se) / Ae) + 1;
33136
33151
  if (this.pv.length) {
33137
33152
  for (Fe = new Array(Le.length), Ie = Fe.length, we = 0; we < Ie; we += 1)
33138
- Fe[we] = He[we] - (Ge[we] - Le[we]) * Be;
33153
+ Fe[we] = Ue[we] - (Ge[we] - Le[we]) * Be;
33139
33154
  return Fe;
33140
33155
  }
33141
- return He - (Ge - Le) * Be;
33156
+ return Ue - (Ge - Le) * Be;
33142
33157
  } else if (Z === "continue") {
33143
- var je = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), Ue = this.getValueAtTime((Ee + 1e-3) / this.comp.globalData.frameRate, 0);
33158
+ var je = this.getValueAtTime(Ee / this.comp.globalData.frameRate, 0), Ve = this.getValueAtTime((Ee + 1e-3) / this.comp.globalData.frameRate, 0);
33144
33159
  if (this.pv.length) {
33145
33160
  for (Fe = new Array(je.length), Ie = Fe.length, we = 0; we < Ie; we += 1)
33146
- Fe[we] = je[we] + (je[we] - Ue[we]) * (Ee - Se) / 1e-3;
33161
+ Fe[we] = je[we] + (je[we] - Ve[we]) * (Ee - Se) / 1e-3;
33147
33162
  return Fe;
33148
33163
  }
33149
- return je + (je - Ue) * (Ee - Se) / 1e-3;
33164
+ return je + (je - Ve) * (Ee - Se) / 1e-3;
33150
33165
  }
33151
33166
  return this.getValueAtTime((Ae - ((Ee - Se) % Ae + Ee)) / this.comp.globalData.frameRate, 0);
33152
33167
  }
@@ -33204,8 +33219,8 @@ var lottie$1 = { exports: {} };
33204
33219
  } else
33205
33220
  _e.translate(ke * this.px.mult, Le * this.py.mult, 0);
33206
33221
  } else {
33207
- var He = this.p.getValueAtTime(Z);
33208
- _e.translate(He[0] * this.p.mult, He[1] * this.p.mult, -He[2] * this.p.mult);
33222
+ var Ue = this.p.getValueAtTime(Z);
33223
+ _e.translate(Ue[0] * this.p.mult, Ue[1] * this.p.mult, -Ue[2] * this.p.mult);
33209
33224
  }
33210
33225
  return _e;
33211
33226
  }
@@ -33563,28 +33578,28 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
33563
33578
  visible: we,
33564
33579
  disabled: Ie,
33565
33580
  loop: Fe = !1,
33566
- transformation: { x: ke, y: Le, width: Ge, height: He, colorCorrection: Be = {} },
33581
+ transformation: { x: ke, y: Le, width: Ge, height: Ue, colorCorrection: Be = {} },
33567
33582
  pointerdown: je = () => {
33568
33583
  },
33569
- pointerout: Ue = () => {
33584
+ pointerout: Ve = () => {
33570
33585
  },
33571
33586
  pointerover: ze = () => {
33572
33587
  }
33573
- } = A, { tl: Ve } = useContext(GsapPixieContext);
33588
+ } = A, { tl: He } = useContext(GsapPixieContext);
33574
33589
  useCustomEventListener(Events.PAUSE, () => {
33575
33590
  K.current && K.current.pause();
33576
33591
  });
33577
- const { onPointerDown: Oe, onPointerOut: $e, onPointerOver: Re } = useDebouncedPointerEvents(ze, je, Ue, 1), { blurRadius: Me = 0, vignette: Ne = 0, noise: De = 0 } = Be, {
33592
+ const { onPointerDown: Oe, onPointerOut: $e, onPointerOver: Re } = useDebouncedPointerEvents(ze, je, Ve, 1), { blurRadius: Me = 0, vignette: Ne = 0, noise: De = 0 } = Be, {
33578
33593
  temperatureFilter: Xe,
33579
33594
  sharpnessFilter: qe,
33580
- hueFilter: Ye,
33595
+ hslFilter: Ye,
33581
33596
  blurFilter: Je,
33582
33597
  adjustmentFilter: Ke,
33583
33598
  vignetteFilter: rt,
33584
33599
  noiseFilter: nt
33585
33600
  } = withFiltersHook(Be);
33586
33601
  React.useLayoutEffect(() => {
33587
- X.current = document.createElement("canvas"), X.current.setAttribute("id", "lottieContainersvg"), X.current.setAttribute("id", `${xe}lottieContainer`), X.current.setAttribute("width", `${Ge}`), X.current.setAttribute("height", `${He}`);
33602
+ X.current = document.createElement("canvas"), X.current.setAttribute("id", "lottieContainersvg"), X.current.setAttribute("id", `${xe}lottieContainer`), X.current.setAttribute("width", `${Ge}`), X.current.setAttribute("height", `${Ue}`);
33588
33603
  const Ze = _e.current;
33589
33604
  return Ze.appendChild(X.current), () => {
33590
33605
  X.current && Ze.removeChild(X.current);
@@ -33639,9 +33654,9 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
33639
33654
  return React.useEffect(() => {
33640
33655
  let Ze = gsap$2.context(() => {
33641
33656
  });
33642
- if (V.current && Ve.current && C > 0) {
33657
+ if (V.current && He.current && C > 0) {
33643
33658
  const tt = Number(Ee) - Number(Pe);
33644
- J.current && (J.current.kill(), Ve.current.remove(J.current)), Ze = gsap$2.context(() => {
33659
+ J.current && (J.current.kill(), He.current.remove(J.current)), Ze = gsap$2.context(() => {
33645
33660
  const st = gsap$2.utils.wrap(Pe, C);
33646
33661
  J.current = gsap$2.timeline({}).to(
33647
33662
  V.current,
@@ -33651,7 +33666,7 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
33651
33666
  onUpdateParams: [st, Ae, Te]
33652
33667
  },
33653
33668
  Ae
33654
- ), Ve.current.add(J.current, Pe);
33669
+ ), He.current.add(J.current, Pe);
33655
33670
  });
33656
33671
  }
33657
33672
  return () => {
@@ -33679,7 +33694,7 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
33679
33694
  {
33680
33695
  texture: Z.current,
33681
33696
  width: Ge,
33682
- height: He,
33697
+ height: Ue,
33683
33698
  anchor: 0.5,
33684
33699
  x: ke,
33685
33700
  y: Le,