reacthub-pixitweenjs 0.2.107-alpha.98 → 0.2.107-alpha.99

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
- import * as D from "react";
1
+ import * as L from "react";
2
2
  import Lh, { useEffect as Ft, useState as qt, useRef as V, useLayoutEffect as _u, useCallback as De, useContext as Fr, useReducer as Dh } from "react";
3
- import { TilingSprite as Bh, useApp as yn, withFilters as Uh, Container as Ae, Sprite as gi, AnimatedSprite as $h, Text as Gh, useTick as yu } from "@pixi/react";
3
+ import { useApp as gi, TilingSprite as Bh, withFilters as Uh, Container as Ae, Sprite as vi, AnimatedSprite as $h, Text as Gh, useTick as yu } from "@pixi/react";
4
4
  import * as Ge from "pixi.js";
5
5
  import N from "gsap";
6
6
  import { Transformer as zh } from "reacthub-react-bindings";
@@ -88,7 +88,7 @@ function UC() {
88
88
  t == null || t.dispatchEvent(n);
89
89
  }, e;
90
90
  }
91
- const tr = D.createContext({}), Te = {
91
+ const tr = L.createContext({}), Te = {
92
92
  STOP: "GSAP_STOP",
93
93
  PAUSE: "GSAP_PAUSE",
94
94
  PLAY: "GSAP_PLAY",
@@ -219,43 +219,46 @@ const tr = D.createContext({}), Te = {
219
219
  uniqueId: o = "",
220
220
  isText: u = !1
221
221
  }) => {
222
- const h = Ge.utils.string2hex("#F3C409"), d = Ge.utils.string2hex("#F3C409"), l = D.useRef({
222
+ const h = Ge.utils.string2hex("#F3C409"), d = Ge.utils.string2hex("#F3C409"), l = L.useRef({
223
223
  isDragging: !1
224
- }), c = 300, f = D.useRef(0), p = D.useCallback(() => {
224
+ }), c = gi(), f = c.screen.width, p = c.screen.height, m = L.useMemo(() => {
225
+ const b = Math.min(f, p) / 800;
226
+ return 1.5 * b < 2 ? 2 : 1.5 * b;
227
+ }, [f, p]), v = 300, g = L.useRef(0), y = L.useCallback(() => {
225
228
  s && !l.current.isDragging && s(!0);
226
- }, [s]), m = D.useCallback(() => {
229
+ }, [s]), _ = L.useCallback(() => {
227
230
  s && !l.current.isDragging && s(!1);
228
- }, [s]), v = D.useCallback(() => {
231
+ }, [s]), x = L.useCallback(() => {
229
232
  l.current.isDragging = !0;
230
- const _ = (/* @__PURE__ */ new Date()).getTime();
231
- _ - f.current < c && a && a(), f.current = _;
232
- }, []), g = D.useCallback(
233
- (_) => {
234
- l.current.isDragging = !0, n && n(_), Kr(Te.TRANSFORMER_DRAG_START, { uniqueId: "timeline" });
233
+ const b = (/* @__PURE__ */ new Date()).getTime();
234
+ b - g.current < v && a && a(), g.current = b;
235
+ }, []), T = L.useCallback(
236
+ (b) => {
237
+ l.current.isDragging = !0, n && n(b), Kr(Te.TRANSFORMER_DRAG_START, { uniqueId: "timeline" });
235
238
  },
236
239
  [n]
237
- ), y = D.useCallback(() => {
240
+ ), w = L.useCallback(() => {
238
241
  if (e.current === null)
239
242
  return;
240
- const _ = e.current.x, x = e.current.y, b = e.current.width, T = e.current.height, w = e.current.rotation, S = [
243
+ const b = e.current.x, S = e.current.y, A = e.current.width, I = e.current.height, P = e.current.rotation, k = [
241
244
  e.current.scale.x,
242
245
  e.current.scale.y
243
- ], A = S[0] < 0 ? -1 : 1, I = S[1] < 0 ? -1 : 1;
246
+ ], E = k[0] < 0 ? -1 : 1, C = k[1] < 0 ? -1 : 1;
244
247
  i && (i({
245
248
  uniqueId: o,
246
249
  transformation: {
247
- x: Math.round(_),
248
- y: Math.round(x),
249
- width: Math.round(Math.max(5, b)),
250
- height: Math.round(Math.max(5, T)),
251
- rotation: w,
252
- scale: u ? S : [A, I]
250
+ x: Math.round(b),
251
+ y: Math.round(S),
252
+ width: Math.round(Math.max(5, A)),
253
+ height: Math.round(Math.max(5, I)),
254
+ rotation: P,
255
+ scale: u ? k : [E, C]
253
256
  // @todo: fix this for text
254
257
  }
255
258
  }), Kr(Te.TRANSFORMER_DRAG_END, { uniqueId: "timeline" })), l.current.isDragging = !1;
256
259
  }, [i]);
257
- return D.useEffect(() => (t.current && (t.current.on("mouseover", p), t.current.on("mouseout", m), t.current.on("mousedown", v)), () => {
258
- t.current && (t.current.off("mouseover", p), t.current.off("mouseout", m), t.current.off("mousedown", v));
260
+ return L.useEffect(() => (t.current && (t.current.on("mouseover", y), t.current.on("mouseout", _), t.current.on("mousedown", x)), () => {
261
+ t.current && (t.current.off("mouseover", y), t.current.off("mouseout", _), t.current.off("mousedown", x));
259
262
  }), []), /* @__PURE__ */ Z.jsx(
260
263
  zh,
261
264
  {
@@ -265,7 +268,7 @@ const tr = D.createContext({}), Te = {
265
268
  boxRotationEnabled: !0,
266
269
  centeredScaling: !0,
267
270
  boxScalingEnabled: !0,
268
- wireframeStyle: { thickness: 2, color: d },
271
+ wireframeStyle: { thickness: m, color: d },
269
272
  lockAspectRatio: !0,
270
273
  scaleEnabled: !0,
271
274
  handleStyle: {
@@ -274,8 +277,8 @@ const tr = D.createContext({}), Te = {
274
277
  shape: "circle",
275
278
  radius: 10
276
279
  },
277
- transformchange: g,
278
- transformcommit: y
280
+ transformchange: T,
281
+ transformcommit: w
279
282
  }
280
283
  );
281
284
  };
@@ -364,12 +367,12 @@ var Hf = jf, Ja = wn, Vf = $f, Xf = Hf, Wf = "[object Null]", qf = "[object Unde
364
367
  function Yf(t) {
365
368
  return t == null ? t === void 0 ? qf : Wf : eo && eo in Object(t) ? Vf(t) : Xf(t);
366
369
  }
367
- var vi = Yf;
370
+ var _i = Yf;
368
371
  function Kf(t) {
369
372
  var e = typeof t;
370
373
  return t != null && (e == "object" || e == "function");
371
374
  }
372
- var _i = Kf, Zf = vi, Qf = _i, Jf = "[object AsyncFunction]", ed = "[object Function]", td = "[object GeneratorFunction]", rd = "[object Proxy]";
375
+ var yi = Kf, Zf = _i, Qf = yi, Jf = "[object AsyncFunction]", ed = "[object Function]", td = "[object GeneratorFunction]", rd = "[object Proxy]";
373
376
  function id(t) {
374
377
  if (!Qf(t))
375
378
  return !1;
@@ -397,7 +400,7 @@ function hd(t) {
397
400
  }
398
401
  return "";
399
402
  }
400
- var Cu = hd, fd = Eu, dd = ld, pd = _i, md = Cu, gd = /[\\^$.*+?()[\]{}|]/g, vd = /^\[object .+?Constructor\]$/, _d = Function.prototype, yd = Object.prototype, xd = _d.toString, bd = yd.hasOwnProperty, Td = RegExp(
403
+ var Cu = hd, fd = Eu, dd = ld, pd = yi, md = Cu, gd = /[\\^$.*+?()[\]{}|]/g, vd = /^\[object .+?Constructor\]$/, _d = Function.prototype, yd = Object.prototype, xd = _d.toString, bd = yd.hasOwnProperty, Td = RegExp(
401
404
  "^" + xd.call(bd).replace(gd, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
402
405
  );
403
406
  function wd(t) {
@@ -535,14 +538,14 @@ function Xp(t) {
535
538
  return this.__data__.has(t);
536
539
  }
537
540
  var Wp = Xp, qp = _a, Yp = Vp, Kp = Wp;
538
- function rn(t) {
541
+ function nn(t) {
539
542
  var e = -1, r = t == null ? 0 : t.length;
540
543
  for (this.__data__ = new qp(); ++e < r; )
541
544
  this.add(t[e]);
542
545
  }
543
- rn.prototype.add = rn.prototype.push = Yp;
544
- rn.prototype.has = Kp;
545
- var Zp = rn;
546
+ nn.prototype.add = nn.prototype.push = Yp;
547
+ nn.prototype.has = Kp;
548
+ var Zp = nn;
546
549
  function Qp(t, e) {
547
550
  for (var r = -1, i = t == null ? 0 : t.length; ++r < i; )
548
551
  if (e(t[r], r, t))
@@ -674,25 +677,25 @@ var Qm = Zm;
674
677
  function Jm(t) {
675
678
  return t != null && typeof t == "object";
676
679
  }
677
- var yi = Jm, e0 = vi, t0 = yi, r0 = "[object Arguments]";
680
+ var xi = Jm, e0 = _i, t0 = xi, r0 = "[object Arguments]";
678
681
  function i0(t) {
679
682
  return t0(t) && e0(t) == r0;
680
683
  }
681
- var n0 = i0, lo = n0, s0 = yi, Mu = Object.prototype, a0 = Mu.hasOwnProperty, o0 = Mu.propertyIsEnumerable, l0 = lo(function() {
684
+ var n0 = i0, lo = n0, s0 = xi, Mu = Object.prototype, a0 = Mu.hasOwnProperty, o0 = Mu.propertyIsEnumerable, l0 = lo(function() {
682
685
  return arguments;
683
686
  }()) ? lo : function(t) {
684
687
  return s0(t) && a0.call(t, "callee") && !o0.call(t, "callee");
685
- }, ya = l0, nn = { exports: {} };
688
+ }, ya = l0, sn = { exports: {} };
686
689
  function u0() {
687
690
  return !1;
688
691
  }
689
692
  var c0 = u0;
690
- nn.exports;
693
+ sn.exports;
691
694
  (function(t, e) {
692
695
  var r = vt, i = c0, n = e && !e.nodeType && e, s = n && !0 && t && !t.nodeType && t, a = s && s.exports === n, o = a ? r.Buffer : void 0, u = o ? o.isBuffer : void 0, h = u || i;
693
696
  t.exports = h;
694
- })(nn, nn.exports);
695
- var xa = nn.exports, h0 = 9007199254740991, f0 = /^(?:0|[1-9]\d*)$/;
697
+ })(sn, sn.exports);
698
+ var xa = sn.exports, h0 = 9007199254740991, f0 = /^(?:0|[1-9]\d*)$/;
696
699
  function d0(t, e) {
697
700
  var r = typeof t;
698
701
  return e = e ?? h0, !!e && (r == "number" || r != "symbol" && f0.test(t)) && t > -1 && t % 1 == 0 && t < e;
@@ -701,7 +704,7 @@ var Pu = d0, p0 = 9007199254740991;
701
704
  function m0(t) {
702
705
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= p0;
703
706
  }
704
- var ba = m0, g0 = vi, v0 = ba, _0 = yi, y0 = "[object Arguments]", x0 = "[object Array]", b0 = "[object Boolean]", T0 = "[object Date]", w0 = "[object Error]", S0 = "[object Function]", A0 = "[object Map]", E0 = "[object Number]", C0 = "[object Object]", I0 = "[object RegExp]", R0 = "[object Set]", M0 = "[object String]", P0 = "[object WeakMap]", F0 = "[object ArrayBuffer]", O0 = "[object DataView]", N0 = "[object Float32Array]", k0 = "[object Float64Array]", L0 = "[object Int8Array]", D0 = "[object Int16Array]", B0 = "[object Int32Array]", U0 = "[object Uint8Array]", $0 = "[object Uint8ClampedArray]", G0 = "[object Uint16Array]", z0 = "[object Uint32Array]", ge = {};
707
+ var ba = m0, g0 = _i, v0 = ba, _0 = xi, y0 = "[object Arguments]", x0 = "[object Array]", b0 = "[object Boolean]", T0 = "[object Date]", w0 = "[object Error]", S0 = "[object Function]", A0 = "[object Map]", E0 = "[object Number]", C0 = "[object Object]", I0 = "[object RegExp]", R0 = "[object Set]", M0 = "[object String]", P0 = "[object WeakMap]", F0 = "[object ArrayBuffer]", O0 = "[object DataView]", N0 = "[object Float32Array]", k0 = "[object Float64Array]", L0 = "[object Int8Array]", D0 = "[object Int16Array]", B0 = "[object Int32Array]", U0 = "[object Uint8Array]", $0 = "[object Uint8ClampedArray]", G0 = "[object Uint16Array]", z0 = "[object Uint32Array]", ge = {};
705
708
  ge[N0] = ge[k0] = ge[L0] = ge[D0] = ge[B0] = ge[U0] = ge[$0] = ge[G0] = ge[z0] = !0;
706
709
  ge[y0] = ge[x0] = ge[F0] = ge[b0] = ge[O0] = ge[T0] = ge[w0] = ge[S0] = ge[A0] = ge[E0] = ge[C0] = ge[I0] = ge[R0] = ge[M0] = ge[P0] = !1;
707
710
  function j0(t) {
@@ -713,8 +716,8 @@ function V0(t) {
713
716
  return t(e);
714
717
  };
715
718
  }
716
- var X0 = V0, sn = { exports: {} };
717
- sn.exports;
719
+ var X0 = V0, an = { exports: {} };
720
+ an.exports;
718
721
  (function(t, e) {
719
722
  var r = Su, i = e && !e.nodeType && e, n = i && !0 && t && !t.nodeType && t, s = n && n.exports === i, a = s && r.process, o = function() {
720
723
  try {
@@ -724,8 +727,8 @@ sn.exports;
724
727
  }
725
728
  }();
726
729
  t.exports = o;
727
- })(sn, sn.exports);
728
- var W0 = sn.exports, q0 = H0, Y0 = X0, uo = W0, co = uo && uo.isTypedArray, K0 = co ? Y0(co) : q0, Ta = K0, Z0 = Qm, Q0 = ya, J0 = _t, eg = xa, tg = Pu, rg = Ta, ig = Object.prototype, ng = ig.hasOwnProperty;
730
+ })(an, an.exports);
731
+ var W0 = an.exports, q0 = H0, Y0 = X0, uo = W0, co = uo && uo.isTypedArray, K0 = co ? Y0(co) : q0, Ta = K0, Z0 = Qm, Q0 = ya, J0 = _t, eg = xa, tg = Pu, rg = Ta, ig = Object.prototype, ng = ig.hasOwnProperty;
729
732
  function sg(t, e) {
730
733
  var r = J0(t), i = !r && Q0(t), n = !r && !i && eg(t), s = !r && !i && !n && rg(t), a = r || i || n || s, o = a ? Z0(t.length, String) : [], u = o.length;
731
734
  for (var h in t)
@@ -795,12 +798,12 @@ function Ng(t, e, r, i, n, s) {
795
798
  v || (v = c == "constructor");
796
799
  }
797
800
  if (m && !v) {
798
- var x = t.constructor, b = e.constructor;
799
- x != b && "constructor" in t && "constructor" in e && !(typeof x == "function" && x instanceof x && typeof b == "function" && b instanceof b) && (m = !1);
801
+ var x = t.constructor, T = e.constructor;
802
+ x != T && "constructor" in t && "constructor" in e && !(typeof x == "function" && x instanceof x && typeof T == "function" && T instanceof T) && (m = !1);
800
803
  }
801
804
  return s.delete(t), s.delete(e), m;
802
805
  }
803
- var kg = Ng, Lg = Nr, Dg = vt, Bg = Lg(Dg, "DataView"), Ug = Bg, $g = Nr, Gg = vt, zg = $g(Gg, "Promise"), jg = zg, Hg = Nr, Vg = vt, Xg = Hg(Vg, "Set"), Wg = Xg, qg = Nr, Yg = vt, Kg = qg(Yg, "WeakMap"), Zg = Kg, Ps = Ug, Fs = va, Os = jg, Ns = Wg, ks = Zg, Nu = vi, Br = Cu, fo = "[object Map]", Qg = "[object Object]", po = "[object Promise]", mo = "[object Set]", go = "[object WeakMap]", vo = "[object DataView]", Jg = Br(Ps), ev = Br(Fs), tv = Br(Os), rv = Br(Ns), iv = Br(ks), Bt = Nu;
806
+ var kg = Ng, Lg = Nr, Dg = vt, Bg = Lg(Dg, "DataView"), Ug = Bg, $g = Nr, Gg = vt, zg = $g(Gg, "Promise"), jg = zg, Hg = Nr, Vg = vt, Xg = Hg(Vg, "Set"), Wg = Xg, qg = Nr, Yg = vt, Kg = qg(Yg, "WeakMap"), Zg = Kg, Ps = Ug, Fs = va, Os = jg, Ns = Wg, ks = Zg, Nu = _i, Br = Cu, fo = "[object Map]", Qg = "[object Object]", po = "[object Promise]", mo = "[object Set]", go = "[object WeakMap]", vo = "[object DataView]", Jg = Br(Ps), ev = Br(Fs), tv = Br(Os), rv = Br(Ns), iv = Br(ks), Bt = Nu;
804
807
  (Ps && Bt(new Ps(new ArrayBuffer(1))) != vo || Fs && Bt(new Fs()) != fo || Os && Bt(Os.resolve()) != po || Ns && Bt(new Ns()) != mo || ks && Bt(new ks()) != go) && (Bt = function(t) {
805
808
  var e = Nu(t), r = e == Qg ? t.constructor : void 0, i = r ? Br(r) : "";
806
809
  if (i)
@@ -818,11 +821,11 @@ var kg = Ng, Lg = Nr, Dg = vt, Bg = Lg(Dg, "DataView"), Ug = Bg, $g = Nr, Gg = v
818
821
  }
819
822
  return e;
820
823
  });
821
- var ku = Bt, Yn = Iu, nv = Ru, sv = Om, av = kg, _o = ku, yo = _t, xo = xa, ov = Ta, lv = 1, bo = "[object Arguments]", To = "[object Array]", wi = "[object Object]", uv = Object.prototype, wo = uv.hasOwnProperty;
824
+ var ku = Bt, Yn = Iu, nv = Ru, sv = Om, av = kg, _o = ku, yo = _t, xo = xa, ov = Ta, lv = 1, bo = "[object Arguments]", To = "[object Array]", Si = "[object Object]", uv = Object.prototype, wo = uv.hasOwnProperty;
822
825
  function cv(t, e, r, i, n, s) {
823
826
  var a = yo(t), o = yo(e), u = a ? To : _o(t), h = o ? To : _o(e);
824
- u = u == bo ? wi : u, h = h == bo ? wi : h;
825
- var d = u == wi, l = h == wi, c = u == h;
827
+ u = u == bo ? Si : u, h = h == bo ? Si : h;
828
+ var d = u == Si, l = h == Si, c = u == h;
826
829
  if (c && xo(t)) {
827
830
  if (!xo(e))
828
831
  return !1;
@@ -839,7 +842,7 @@ function cv(t, e, r, i, n, s) {
839
842
  }
840
843
  return c ? (s || (s = new Yn()), av(t, e, r, i, n, s)) : !1;
841
844
  }
842
- var hv = cv, fv = hv, So = yi;
845
+ var hv = cv, fv = hv, So = xi;
843
846
  function Lu(t, e, r, i, n) {
844
847
  return t === e ? !0 : t == null || e == null || !So(t) && !So(e) ? t !== t && e !== e : fv(t, e, r, i, Lu, n);
845
848
  }
@@ -948,7 +951,7 @@ const Ao = {
948
951
  * Club GreenSock members, the agreement issued with that membership.
949
952
  * @author: Jack Doyle, jack@greensock.com
950
953
  */
951
- var Nv = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, kv = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, Lv = Math.PI / 180, Si = Math.sin, Ai = Math.cos, Zr = Math.abs, zr = Math.sqrt, Dv = function(e) {
954
+ var Nv = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, kv = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, Lv = Math.PI / 180, Ai = Math.sin, Ei = Math.cos, Zr = Math.abs, zr = Math.sqrt, Dv = function(e) {
952
955
  return typeof e == "number";
953
956
  }, Eo = 1e5, At = function(e) {
954
957
  return Math.round(e * Eo) / Eo || 0;
@@ -962,15 +965,15 @@ function Bv(t, e, r, i, n, s, a) {
962
965
  function Uv(t, e, r, i, n, s, a, o, u) {
963
966
  if (!(t === o && e === u)) {
964
967
  r = Zr(r), i = Zr(i);
965
- var h = n % 360 * Lv, d = Ai(h), l = Si(h), c = Math.PI, f = c * 2, p = (t - o) / 2, m = (e - u) / 2, v = d * p + l * m, g = -l * p + d * m, y = v * v, _ = g * g, x = y / (r * r) + _ / (i * i);
968
+ var h = n % 360 * Lv, d = Ei(h), l = Ai(h), c = Math.PI, f = c * 2, p = (t - o) / 2, m = (e - u) / 2, v = d * p + l * m, g = -l * p + d * m, y = v * v, _ = g * g, x = y / (r * r) + _ / (i * i);
966
969
  x > 1 && (r = zr(x) * r, i = zr(x) * i);
967
- var b = r * r, T = i * i, w = (b * T - b * _ - T * y) / (b * _ + T * y);
968
- w < 0 && (w = 0);
969
- var S = (s === a ? -1 : 1) * zr(w), A = S * (r * g / i), I = S * -(i * v / r), P = (t + o) / 2, U = (e + u) / 2, E = P + (d * A - l * I), C = U + (l * A + d * I), B = (v - A) / r, $ = (g - I) / i, R = (-v - A) / r, L = (-g - I) / i, X = B * B + $ * $, M = ($ < 0 ? -1 : 1) * Math.acos(B / zr(X)), F = (B * L - $ * R < 0 ? -1 : 1) * Math.acos((B * R + $ * L) / zr(X * (R * R + L * L)));
970
+ var T = r * r, w = i * i, b = (T * w - T * _ - w * y) / (T * _ + w * y);
971
+ b < 0 && (b = 0);
972
+ var S = (s === a ? -1 : 1) * zr(b), A = S * (r * g / i), I = S * -(i * v / r), P = (t + o) / 2, k = (e + u) / 2, E = P + (d * A - l * I), C = k + (l * A + d * I), U = (v - A) / r, $ = (g - I) / i, R = (-v - A) / r, B = (-g - I) / i, X = U * U + $ * $, M = ($ < 0 ? -1 : 1) * Math.acos(U / zr(X)), F = (U * B - $ * R < 0 ? -1 : 1) * Math.acos((U * R + $ * B) / zr(X * (R * R + B * B)));
970
973
  isNaN(F) && (F = c), !a && F > 0 ? F -= f : a && F < 0 && (F += f), M %= f, F %= f;
971
- var z = Math.ceil(Zr(F) / (f / 4)), H = [], W = F / z, re = 4 / 3 * Si(W / 2) / (1 + Ai(W / 2)), ne = d * r, oe = l * r, de = l * -i, ue = d * i, G;
974
+ var z = Math.ceil(Zr(F) / (f / 4)), H = [], W = F / z, re = 4 / 3 * Ai(W / 2) / (1 + Ei(W / 2)), ne = d * r, oe = l * r, de = l * -i, ue = d * i, G;
972
975
  for (G = 0; G < z; G++)
973
- n = M + G * W, v = Ai(n), g = Si(n), B = Ai(n += W), $ = Si(n), H.push(v - re * g, g + re * v, B + re * $, $ - re * B, B, $);
976
+ n = M + G * W, v = Ei(n), g = Ai(n), U = Ei(n += W), $ = Ai(n), H.push(v - re * g, g + re * v, U + re * $, $ - re * U, U, $);
974
977
  for (G = 0; G < H.length; G += 2)
975
978
  v = H[G], g = H[G + 1], H[G] = v * ne + g * de + E, H[G + 1] = v * oe + g * ue + C;
976
979
  return H[G - 2] = o, H[G - 1] = u, H;
@@ -980,18 +983,18 @@ function $v(t) {
980
983
  var e = (t + "").replace(kv, function(A) {
981
984
  var I = +A;
982
985
  return I < 1e-4 && I > -1e-4 ? 0 : I;
983
- }).match(Nv) || [], r = [], i = 0, n = 0, s = 2 / 3, a = e.length, o = 0, u = "ERROR: malformed path: " + t, h, d, l, c, f, p, m, v, g, y, _, x, b, T, w, S = function(I, P, U, E) {
984
- y = (U - I) / 3, _ = (E - P) / 3, m.push(I + y, P + _, U - y, E - _, U, E);
986
+ }).match(Nv) || [], r = [], i = 0, n = 0, s = 2 / 3, a = e.length, o = 0, u = "ERROR: malformed path: " + t, h, d, l, c, f, p, m, v, g, y, _, x, T, w, b, S = function(I, P, k, E) {
987
+ y = (k - I) / 3, _ = (E - P) / 3, m.push(I + y, P + _, k - y, E - _, k, E);
985
988
  };
986
989
  if (!t || !isNaN(e[0]) || isNaN(e[1]))
987
990
  return console.log(u), r;
988
991
  for (h = 0; h < a; h++)
989
- if (b = f, isNaN(e[h]) ? (f = e[h].toUpperCase(), p = f !== e[h]) : h--, l = +e[h + 1], c = +e[h + 2], p && (l += i, c += n), h || (v = l, g = c), f === "M")
992
+ if (T = f, isNaN(e[h]) ? (f = e[h].toUpperCase(), p = f !== e[h]) : h--, l = +e[h + 1], c = +e[h + 2], p && (l += i, c += n), h || (v = l, g = c), f === "M")
990
993
  m && (m.length < 8 ? r.length -= 1 : o += m.length), i = v = l, n = g = c, m = [l, c], r.push(m), h += 2, f = "L";
991
994
  else if (f === "C")
992
995
  m || (m = [0, 0]), p || (i = n = 0), m.push(l, c, i + e[h + 3] * 1, n + e[h + 4] * 1, i += e[h + 5] * 1, n += e[h + 6] * 1), h += 6;
993
996
  else if (f === "S")
994
- y = i, _ = n, (b === "C" || b === "S") && (y += i - m[m.length - 4], _ += n - m[m.length - 3]), p || (i = n = 0), m.push(y, _, l, c, i += e[h + 3] * 1, n += e[h + 4] * 1), h += 4;
997
+ y = i, _ = n, (T === "C" || T === "S") && (y += i - m[m.length - 4], _ += n - m[m.length - 3]), p || (i = n = 0), m.push(y, _, l, c, i += e[h + 3] * 1, n += e[h + 4] * 1), h += 4;
995
998
  else if (f === "Q")
996
999
  y = i + (l - i) * s, _ = n + (c - n) * s, p || (i = n = 0), i += e[h + 3] * 1, n += e[h + 4] * 1, m.push(y, _, i + (l - i) * s, n + (c - n) * s, i, n), h += 4;
997
1000
  else if (f === "T")
@@ -1003,7 +1006,7 @@ function $v(t) {
1003
1006
  else if (f === "L" || f === "Z")
1004
1007
  f === "Z" && (l = v, c = g, m.closed = !0), (f === "L" || Zr(i - l) > 0.5 || Zr(n - c) > 0.5) && (S(i, n, l, c), f === "L" && (h += 2)), i = l, n = c;
1005
1008
  else if (f === "A") {
1006
- if (T = e[h + 4], w = e[h + 5], y = e[h + 6], _ = e[h + 7], d = 7, T.length > 1 && (T.length < 3 ? (_ = y, y = w, d--) : (_ = w, y = T.substr(2), d -= 2), w = T.charAt(1), T = T.charAt(0)), x = Uv(i, n, +e[h + 1], +e[h + 2], +e[h + 3], +T, +w, (p ? i : 0) + y * 1, (p ? n : 0) + _ * 1), h += d, x)
1009
+ if (w = e[h + 4], b = e[h + 5], y = e[h + 6], _ = e[h + 7], d = 7, w.length > 1 && (w.length < 3 ? (_ = y, y = b, d--) : (_ = b, y = w.substr(2), d -= 2), b = w.charAt(1), w = w.charAt(0)), x = Uv(i, n, +e[h + 1], +e[h + 2], +e[h + 3], +w, +b, (p ? i : 0) + y * 1, (p ? n : 0) + _ * 1), h += d, x)
1007
1010
  for (d = 0; d < x.length; d++)
1008
1011
  m.push(x[d]);
1009
1012
  i = m[m.length - 2], n = m[m.length - 1];
@@ -1033,8 +1036,8 @@ function Gv(t) {
1033
1036
  var $e, Du, Bu = function() {
1034
1037
  return $e || typeof window < "u" && ($e = window.gsap) && $e.registerPlugin && $e;
1035
1038
  }, Co = function() {
1036
- $e = Bu(), $e ? ($e.registerEase("_CE", xi.create), Du = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
1037
- }, zv = 1e20, Ei = function(e) {
1039
+ $e = Bu(), $e ? ($e.registerEase("_CE", bi.create), Du = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
1040
+ }, zv = 1e20, Ci = function(e) {
1038
1041
  return ~~(e * 1e3 + (e < 0 ? -0.5 : 0.5)) / 1e3;
1039
1042
  }, jv = /[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi, Hv = /[cLlsSaAhHvVtTqQ]/g, Vv = function(e) {
1040
1043
  var r = e.length, i = zv, n;
@@ -1047,7 +1050,7 @@ var $e, Du, Bu = function() {
1047
1050
  for (u ? u = 1 / u : u = -o, h = 0; h < a; h += 2)
1048
1051
  e[h] = (+e[h] + n) * o, e[h + 1] = (+e[h + 1] + s) * u;
1049
1052
  }, Wv = function t(e, r, i, n, s, a, o, u, h, d, l) {
1050
- var c = (e + i) / 2, f = (r + n) / 2, p = (i + s) / 2, m = (n + a) / 2, v = (s + o) / 2, g = (a + u) / 2, y = (c + p) / 2, _ = (f + m) / 2, x = (p + v) / 2, b = (m + g) / 2, T = (y + x) / 2, w = (_ + b) / 2, S = o - e, A = u - r, I = Math.abs((i - o) * A - (n - u) * S), P = Math.abs((s - o) * A - (a - u) * S), U;
1053
+ var c = (e + i) / 2, f = (r + n) / 2, p = (i + s) / 2, m = (n + a) / 2, v = (s + o) / 2, g = (a + u) / 2, y = (c + p) / 2, _ = (f + m) / 2, x = (p + v) / 2, T = (m + g) / 2, w = (y + x) / 2, b = (_ + T) / 2, S = o - e, A = u - r, I = Math.abs((i - o) * A - (n - u) * S), P = Math.abs((s - o) * A - (a - u) * S), k;
1051
1054
  return d || (d = [{
1052
1055
  x: e,
1053
1056
  y: r
@@ -1055,10 +1058,10 @@ var $e, Du, Bu = function() {
1055
1058
  x: o,
1056
1059
  y: u
1057
1060
  }], l = 1), d.splice(l || d.length - 1, 0, {
1058
- x: T,
1059
- y: w
1060
- }), (I + P) * (I + P) > h * (S * S + A * A) && (U = d.length, t(e, r, c, f, y, _, T, w, h, d, l), t(T, w, x, b, v, g, o, u, h, d, l + 1 + (d.length - U))), d;
1061
- }, xi = /* @__PURE__ */ function() {
1061
+ x: w,
1062
+ y: b
1063
+ }), (I + P) * (I + P) > h * (S * S + A * A) && (k = d.length, t(e, r, c, f, y, _, w, b, h, d, l), t(w, b, x, T, v, g, o, u, h, d, l + 1 + (d.length - k))), d;
1064
+ }, bi = /* @__PURE__ */ function() {
1062
1065
  function t(r, i, n) {
1063
1066
  Du || Co(), this.id = r, this.setData(i, n);
1064
1067
  }
@@ -1096,8 +1099,8 @@ var $e, Du, Bu = function() {
1096
1099
  v < o.length - 1 && (u[p - 1] = o[o.length - 2]);
1097
1100
  }
1098
1101
  return this.ease = function(x) {
1099
- var b = u[x * l | 0] || u[l - 1];
1100
- return b.nx < x && (b = b.n), b.y + (x - b.x) / b.cx * b.cy;
1102
+ var T = u[x * l | 0] || u[l - 1];
1103
+ return T.nx < x && (T = T.n), T.y + (x - T.x) / T.cx * T.cy;
1101
1104
  }, this.ease.custom = this, this.id && $e && $e.registerEase(this.id, this.ease), this;
1102
1105
  }, e.getSVGData = function(i) {
1103
1106
  return t.getSVGData(this, i);
@@ -1113,15 +1116,15 @@ var $e, Du, Bu = function() {
1113
1116
  if (n.invert && (a = -a, u = 0), typeof i == "string" && (i = $e.parseEase(i)), i.custom && (i = i.custom), i instanceof t)
1114
1117
  d = Gv(Bv([i.segment], s, 0, 0, -a, o, u));
1115
1118
  else {
1116
- for (d = [o, u], v = Math.max(5, (n.precision || 1) * 200), f = 1 / v, v += 2, g = 5 / v, y = Ei(o + f * s), _ = Ei(u + i(f) * -a), l = (_ - u) / (y - o), c = 2; c < v; c++)
1117
- p = Ei(o + c * f * s), m = Ei(u + i(c * f) * -a), (Math.abs((m - _) / (p - y) - l) > g || c === v - 1) && (d.push(y, _), l = (m - _) / (p - y)), y = p, _ = m;
1119
+ for (d = [o, u], v = Math.max(5, (n.precision || 1) * 200), f = 1 / v, v += 2, g = 5 / v, y = Ci(o + f * s), _ = Ci(u + i(f) * -a), l = (_ - u) / (y - o), c = 2; c < v; c++)
1120
+ p = Ci(o + c * f * s), m = Ci(u + i(c * f) * -a), (Math.abs((m - _) / (p - y) - l) > g || c === v - 1) && (d.push(y, _), l = (m - _) / (p - y)), y = p, _ = m;
1118
1121
  d = "M" + d.join(",");
1119
1122
  }
1120
1123
  return h && h.setAttribute("d", d), d;
1121
1124
  }, t;
1122
1125
  }();
1123
- Bu() && $e.registerPlugin(xi);
1124
- xi.version = "3.11.5";
1126
+ Bu() && $e.registerPlugin(bi);
1127
+ bi.version = "3.11.5";
1125
1128
  /*!
1126
1129
  * PixiPlugin 3.11.5
1127
1130
  * https://greensock.com
@@ -1131,7 +1134,7 @@ xi.version = "3.11.5";
1131
1134
  * Club GreenSock members, the agreement issued with that membership.
1132
1135
  * @author: Jack Doyle, jack@greensock.com
1133
1136
  */
1134
- var It, Io, an, Ke, Qr, Uu, Ds, $u = function() {
1137
+ var It, Io, on, Ke, Qr, Uu, Ds, $u = function() {
1135
1138
  return typeof window < "u";
1136
1139
  }, Gu = function() {
1137
1140
  return It || $u() && (It = window.gsap) && It.registerPlugin && It;
@@ -1151,7 +1154,7 @@ var It, Io, an, Ke, Qr, Uu, Ds, $u = function() {
1151
1154
  var i = 1 - r, n = i * Xe, s = i * We, a = i * qe;
1152
1155
  return Cn([n + r, s, a, 0, 0, n, s + r, a, 0, 0, n, s, a + r, 0, 0, 0, 0, 0, 1, 0], e);
1153
1156
  }, Po = function(e, r, i) {
1154
- var n = an(r), s = n[0] / 255, a = n[1] / 255, o = n[2] / 255, u = 1 - i;
1157
+ var n = on(r), s = n[0] / 255, a = n[1] / 255, o = n[2] / 255, u = 1 - i;
1155
1158
  return Cn([u + i * s * Xe, i * s * We, i * s * qe, 0, 0, i * a * Xe, u + i * a * We, i * a * qe, 0, 0, i * o * Xe, i * o * We, u + i * o * qe, 0, 0, 0, 0, 0, 1, 0], e);
1156
1159
  }, Fo = function(e, r) {
1157
1160
  r *= Math.PI / 180;
@@ -1196,7 +1199,7 @@ var It, Io, an, Ke, Qr, Uu, Ds, $u = function() {
1196
1199
  }, e_ = function(e, r) {
1197
1200
  r.t.visible = !!r.t.alpha;
1198
1201
  }, ko = function(e, r, i, n) {
1199
- var s = e[r], a = an(Ro(s) ? e[r.indexOf("set") || !Ro(e["get" + r.substr(3)]) ? r : "get" + r.substr(3)]() : s), o = an(i);
1202
+ var s = e[r], a = on(Ro(s) ? e[r.indexOf("set") || !Ro(e["get" + r.substr(3)]) ? r : "get" + r.substr(3)]() : s), o = on(i);
1200
1203
  n._pt = new Qr(n._pt, e, r, 0, 0, Qv, {
1201
1204
  t: e,
1202
1205
  p: r,
@@ -1221,22 +1224,22 @@ var It, Io, an, Ke, Qr, Uu, Ds, $u = function() {
1221
1224
  colorizeAmount: 1,
1222
1225
  brightness: 1,
1223
1226
  combineCMF: 1
1224
- }, on = Math.PI / 180, ju = function(e) {
1227
+ }, ln = Math.PI / 180, ju = function(e) {
1225
1228
  return typeof e == "string";
1226
1229
  }, i_ = function(e) {
1227
- return ju(e) && e.charAt(1) === "=" ? e.substr(0, 2) + parseFloat(e.substr(2)) * on : e * on;
1230
+ return ju(e) && e.charAt(1) === "=" ? e.substr(0, 2) + parseFloat(e.substr(2)) * ln : e * ln;
1228
1231
  }, n_ = function(e, r) {
1229
1232
  return r.set(r.t, r.p, e === 1 ? r.e : Math.round((r.s + r.c * e) * 1e5) / 1e5, r);
1230
1233
  }, s_ = function(e, r, i, n, s, a) {
1231
- var o = 360 * (a ? on : 1), u = ju(s), h = u && s.charAt(1) === "=" ? +(s.charAt(0) + "1") : 0, d = parseFloat(h ? s.substr(2) : s) * (a ? on : 1), l = h ? d * h : d - n, c = n + l, f, p;
1234
+ var o = 360 * (a ? ln : 1), u = ju(s), h = u && s.charAt(1) === "=" ? +(s.charAt(0) + "1") : 0, d = parseFloat(h ? s.substr(2) : s) * (a ? ln : 1), l = h ? d * h : d - n, c = n + l, f, p;
1232
1235
  return u && (f = s.split("_")[1], f === "short" && (l %= o, l !== l % (o / 2) && (l += l < 0 ? o : -o)), f === "cw" && l < 0 ? l = (l + o * 1e10) % o - ~~(l / o) * o : f === "ccw" && l > 0 && (l = (l - o * 1e10) % o - ~~(l / o) * o)), e._pt = p = new Qr(e._pt, r, i, n, l, n_), p.e = c, p;
1233
1236
  }, Do = function() {
1234
- $u() && (Io = window, It = Gu(), Ke = Ke || Io.PIXI, Ds = Ke && Ke.VERSION && Ke.VERSION.charAt(0) === "4", an = function(r) {
1237
+ $u() && (Io = window, It = Gu(), Ke = Ke || Io.PIXI, Ds = Ke && Ke.VERSION && Ke.VERSION.charAt(0) === "4", on = function(r) {
1235
1238
  return It.utils.splitColor((r + "").substr(0, 2) === "0x" ? "#" + r.substr(2) : r);
1236
1239
  });
1237
- }, Ci, jr;
1238
- for (Ci = 0; Ci < Lo.length; Ci++)
1239
- jr = Lo[Ci], Bs[jr + "X"] = jr, Bs[jr + "Y"] = jr;
1240
+ }, Ii, jr;
1241
+ for (Ii = 0; Ii < Lo.length; Ii++)
1242
+ jr = Lo[Ii], Bs[jr + "X"] = jr, Bs[jr + "Y"] = jr;
1240
1243
  var Aa = {
1241
1244
  version: "3.11.5",
1242
1245
  name: "pixi",
@@ -1280,8 +1283,8 @@ var Aa = {
1280
1283
  Gu() && It.registerPlugin(Aa);
1281
1284
  N.registerPlugin(Aa);
1282
1285
  Aa.registerPIXI(Ge);
1283
- N.registerPlugin(xi);
1284
- xi.create("springBounce", "0.32, 1.06, 0.61, 0.93");
1286
+ N.registerPlugin(bi);
1287
+ bi.create("springBounce", "0.32, 1.06, 0.61, 0.93");
1285
1288
  N.registerEffect({
1286
1289
  name: "PULSE",
1287
1290
  effect(t, e) {
@@ -1587,24 +1590,24 @@ function a_() {
1587
1590
  ) };
1588
1591
  }
1589
1592
  var Hu = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.FLASH = "FLASH", t.PULSE = "PULSE", t.SHAKE = "SHAKE", t.SWING = "SWING", t.JELLO = "JELLO", t.WOOBLE = "WOOBLE", t.FADE_IN = "FADE_IN", t.FADE_OUT = "FADE_OUT", t.FADE_IN_OUT = "FADE_IN_OUT", t.SLIDE_IN_LEFT = "SLIDE_IN_LEFT", t.SLIDE_IN_RIGHT = "SLIDE_IN_RIGHT", t.SLIDE_IN_TOP = "SLIDE_IN_TOP", t.SLIDE_IN_BOTTOM = "SLIDE_IN_BOTTOM", t.SLIDE_OUT_LEFT = "SLIDE_OUT_LEFT", t.SLIDE_OUT_RIGHT = "SLIDE_OUT_RIGHT", t.SLIDE_OUT_TOP = "SLIDE_OUT_TOP", t.SLIDE_OUT_BOTTOM = "SLIDE_OUT_BOTTOM", t.ZOOM_IN = "ZOOM_IN", t.ZOOM_OUT = "ZOOM_OUT", t.ZOOM_IN_OUT = "ZOOM_IN_OUT", t.BOUNCE_IN = "BOUNCE_IN", t.BOUNCE_OUT = "BOUNCE_OUT", t.BOUNCE_IN_OUT = "BOUNCE_IN_OUT", t.BOUNCE_IN_DOWN = "BOUNCE_IN_DOWN", t.BOUNCE_IN_LEFT = "BOUNCE_IN_LEFT", t.BOUNCE_IN_RIGHT = "BOUNCE_IN_RIGHT", t.BOUNCE_IN_UP = "BOUNCE_IN_UP", t.BOUNCE_OUT_DOWN = "BOUNCE_OUT_DOWN", t.BOUNCE_OUT_LEFT = "BOUNCE_OUT_LEFT", t.BOUNCE_OUT_RIGHT = "BOUNCE_OUT_RIGHT", t.BOUNCE_OUT_UP = "BOUNCE_OUT_UP", t.FADE_IN_DOWN = "FADE_IN_DOWN", t.FADE_IN_LEFT = "FADE_IN_LEFT", t.FADE_IN_RIGHT = "FADE_IN_RIGHT", t.FADE_IN_UP = "FADE_IN_UP", t.FADE_OUT_DOWN = "FADE_OUT_DOWN", t.FADE_OUT_LEFT = "FADE_OUT_LEFT", t.FADE_OUT_RIGHT = "FADE_OUT_RIGHT", t.FADE_OUT_UP = "FADE_OUT_UP", t.ELASTIC_IN = "ELASTIC_IN", t.ELASTIC_OUT = "ELASTIC_OUT", t.ELASTIC_IN_OUT = "ELASTIC_IN_OUT", t.BACK_IN = "BACK_IN", t.BACK_OUT = "BACK_OUT", t.BACK_IN_OUT = "BACK_IN_OUT", t.CIRCULAR_IN = "CIRCULAR_IN", t.CIRCULAR_OUT = "CIRCULAR_OUT", t.CIRCULAR_IN_OUT = "CIRCULAR_IN_OUT", t.EXPO_IN = "EXPO_IN", t.EXPO_OUT = "EXPO_OUT", t.EXPO_IN_OUT = "EXPO_IN_OUT", t.SINE_IN = "SINE_IN", t.SINE_OUT = "SINE_OUT", t.SINE_IN_OUT = "SINE_IN_OUT", t.BOUNCE = "BOUNCE", t.ELASTIC = "ELASTIC", t.BACK = "BACK", t.CIRCULAR = "CIRCULAR", t.EXPO = "EXPO", t.SINE = "SINE", t))(Hu || {});
1590
- const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.forwardRef((t, e) => {
1591
- const [r, i] = D.useState(!1), [n, s] = qt(!1), [a, o] = qt(!1), [u, h] = qt(), d = _v(u, 300), l = V(null), c = V(null), f = V(null), p = V(null), m = V(null), v = V(null), { tl: g } = Fr(tr), y = yn(), _ = y.screen.width, x = y.screen.height, {
1592
- uniqueId: b,
1593
- visible: T,
1594
- startAt: w,
1593
+ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = L.forwardRef((t, e) => {
1594
+ const [r, i] = L.useState(!1), [n, s] = qt(!1), [a, o] = qt(!1), [u, h] = qt(), d = _v(u, 300), l = V(null), c = V(null), f = V(null), p = V(null), m = V(null), v = V(null), { tl: g } = Fr(tr), y = gi(), _ = y.screen.width, x = y.screen.height, {
1595
+ uniqueId: T,
1596
+ visible: w,
1597
+ startAt: b,
1595
1598
  transformation: {
1596
1599
  x: S,
1597
1600
  y: A,
1598
1601
  width: I,
1599
1602
  height: P,
1600
- scale: U = [1, 1],
1603
+ scale: k = [1, 1],
1601
1604
  rotation: E = 0,
1602
1605
  effect: C,
1603
- overlay: B,
1606
+ overlay: U,
1604
1607
  animation: $ = Hu.NONE
1605
1608
  },
1606
1609
  applyTransformer: R,
1607
- disabled: L,
1610
+ disabled: B,
1608
1611
  pointerdown: X,
1609
1612
  pointerout: M,
1610
1613
  pointerover: F,
@@ -1616,16 +1619,16 @@ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.
1616
1619
  } = t, oe = a_();
1617
1620
  Le(Te.COMPLETE, () => {
1618
1621
  l.current;
1619
- }), D.useImperativeHandle(
1622
+ }), L.useImperativeHandle(
1620
1623
  e,
1621
1624
  () => ({
1622
1625
  getIsTransformerDragging: () => n,
1623
1626
  getIsMouseOverTransformer: () => a
1624
1627
  }),
1625
1628
  [n, a]
1626
- ), D.useEffect(() => {
1629
+ ), L.useEffect(() => {
1627
1630
  l.current && i(!0);
1628
- }, []), D.useEffect(() => {
1631
+ }, []), L.useEffect(() => {
1629
1632
  h({
1630
1633
  x: S,
1631
1634
  y: A,
@@ -1635,7 +1638,7 @@ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.
1635
1638
  maxX: _,
1636
1639
  maxY: x
1637
1640
  });
1638
- }, [$, S, A, I, P, _, x]), D.useEffect(() => {
1641
+ }, [$, S, A, I, P, _, x]), L.useEffect(() => {
1639
1642
  if (!c.current)
1640
1643
  return;
1641
1644
  const Y = N.context(() => {
@@ -1653,20 +1656,20 @@ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.
1653
1656
  }
1654
1657
  );
1655
1658
  m.current && (g.current.remove(m.current), m.current.progress(0).kill()), Je > 0.1 ? (Me.eventCallback("onComplete", () => {
1656
- Me.remove("onComplete"), g.current.add(Me, w), m.current = Me;
1657
- }), Me.play()) : (Me.progress(1), g.current.add(Me, w), m.current = Me);
1659
+ Me.remove("onComplete"), g.current.add(Me, b), m.current = Me;
1660
+ }), Me.play()) : (Me.progress(1), g.current.add(Me, b), m.current = Me);
1658
1661
  } else
1659
1662
  m.current && m.current.progress(0).kill();
1660
1663
  }, c.current);
1661
1664
  return () => {
1662
1665
  Y.revert();
1663
1666
  };
1664
- }, [w, d]);
1665
- const de = D.useCallback(() => {
1667
+ }, [b, d]);
1668
+ const de = L.useCallback(() => {
1666
1669
  o(!0), F && F();
1667
- }, []), ue = D.useCallback(() => {
1670
+ }, []), ue = L.useCallback(() => {
1668
1671
  s(!0);
1669
- }, []), G = D.useCallback(
1672
+ }, []), G = L.useCallback(
1670
1673
  (Y) => {
1671
1674
  t.onAnchorTransformationEnd && t.onAnchorTransformationEnd(Y), s(!1);
1672
1675
  },
@@ -1683,9 +1686,9 @@ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.
1683
1686
  pivot: [S, A],
1684
1687
  width: I,
1685
1688
  height: P,
1686
- scale: U,
1689
+ scale: k,
1687
1690
  rotation: E,
1688
- ...!L && T && !n && !H && {
1691
+ ...!B && w && !n && !H && {
1689
1692
  interactive: !0,
1690
1693
  buttonMode: !0,
1691
1694
  pointerdown: X,
@@ -1709,10 +1712,10 @@ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.
1709
1712
  }
1710
1713
  ),
1711
1714
  W && /* @__PURE__ */ Z.jsx(Ae, { ref: f, children: t.children }),
1712
- !Sr(B) && B !== Ls.NONE && B !== Ls.NORMAL && /* @__PURE__ */ Z.jsx(
1715
+ !Sr(U) && U !== Ls.NONE && U !== Ls.NORMAL && /* @__PURE__ */ Z.jsx(
1713
1716
  Ov,
1714
1717
  {
1715
- overlay: B,
1718
+ overlay: U,
1716
1719
  width: I,
1717
1720
  height: P,
1718
1721
  x: S,
@@ -1722,7 +1725,7 @@ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.
1722
1725
  ] })
1723
1726
  }
1724
1727
  ),
1725
- R && T && !ne && /* @__PURE__ */ Z.jsx(
1728
+ R && w && !ne && /* @__PURE__ */ Z.jsx(
1726
1729
  Kh,
1727
1730
  {
1728
1731
  pixiTransformerRef: p,
@@ -1731,7 +1734,7 @@ const o_ = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], rr = D.
1731
1734
  transformCommit: G,
1732
1735
  transformChange: ue,
1733
1736
  mouseoverEvent: de,
1734
- uniqueId: b,
1737
+ uniqueId: T,
1735
1738
  isText: z,
1736
1739
  onDoubleClick: re
1737
1740
  }
@@ -1757,7 +1760,7 @@ const l_ = {
1757
1760
  CREATE_IMAGE_BITMAP: !1,
1758
1761
  ROUND_PIXELS: !1
1759
1762
  };
1760
- var Kn = /iPhone/i, Bo = /iPod/i, Uo = /iPad/i, $o = /\biOS-universal(?:.+)Mac\b/i, Zn = /\bAndroid(?:.+)Mobile\b/i, Go = /Android/i, or = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Ii = /Silk/i, yt = /Windows Phone/i, zo = /\bWindows(?:.+)ARM\b/i, jo = /BlackBerry/i, Ho = /BB10/i, Vo = /Opera Mini/i, Xo = /\b(CriOS|Chrome)(?:.+)Mobile/i, Wo = /Mobile(?:.+)Firefox\b/i, qo = function(t) {
1763
+ var Kn = /iPhone/i, Bo = /iPod/i, Uo = /iPad/i, $o = /\biOS-universal(?:.+)Mac\b/i, Zn = /\bAndroid(?:.+)Mobile\b/i, Go = /Android/i, or = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Ri = /Silk/i, yt = /Windows Phone/i, zo = /\bWindows(?:.+)ARM\b/i, jo = /BlackBerry/i, Ho = /BB10/i, Vo = /Opera Mini/i, Xo = /\b(CriOS|Chrome)(?:.+)Mobile/i, Wo = /Mobile(?:.+)Firefox\b/i, qo = function(t) {
1761
1764
  return typeof t < "u" && t.platform === "MacIntel" && typeof t.maxTouchPoints == "number" && t.maxTouchPoints > 1 && typeof MSStream > "u";
1762
1765
  };
1763
1766
  function u_(t) {
@@ -1792,13 +1795,13 @@ function Yo(t) {
1792
1795
  },
1793
1796
  amazon: {
1794
1797
  phone: n(or),
1795
- tablet: !n(or) && n(Ii),
1796
- device: n(or) || n(Ii)
1798
+ tablet: !n(or) && n(Ri),
1799
+ device: n(or) || n(Ri)
1797
1800
  },
1798
1801
  android: {
1799
1802
  phone: !n(yt) && n(or) || !n(yt) && n(Zn),
1800
- tablet: !n(yt) && !n(or) && !n(Zn) && (n(Ii) || n(Go)),
1801
- device: !n(yt) && (n(or) || n(Ii) || n(Zn) || n(Go)) || n(/\bokhttp\b/i)
1803
+ tablet: !n(yt) && !n(or) && !n(Zn) && (n(Ri) || n(Go)),
1804
+ device: !n(yt) && (n(or) || n(Ri) || n(Zn) || n(Go)) || n(/\bokhttp\b/i)
1802
1805
  },
1803
1806
  windows: {
1804
1807
  phone: n(yt),
@@ -1886,7 +1889,7 @@ var Xu = { exports: {} };
1886
1889
  y[_ - 1] = arguments[_];
1887
1890
  v.fn.apply(v.context, y);
1888
1891
  } else {
1889
- var x = v.length, b;
1892
+ var x = v.length, T;
1890
1893
  for (_ = 0; _ < x; _++)
1891
1894
  switch (v[_].once && this.removeListener(h, v[_].fn, void 0, !0), g) {
1892
1895
  case 1:
@@ -1903,8 +1906,8 @@ var Xu = { exports: {} };
1903
1906
  break;
1904
1907
  default:
1905
1908
  if (!y)
1906
- for (b = 1, y = new Array(g - 1); b < g; b++)
1907
- y[b - 1] = arguments[b];
1909
+ for (T = 1, y = new Array(g - 1); T < g; T++)
1910
+ y[T - 1] = arguments[T];
1908
1911
  v[_].fn.apply(v[_].context, y);
1909
1912
  }
1910
1913
  }
@@ -2133,13 +2136,13 @@ function Mn(t, e) {
2133
2136
  return t.x === e.x && t.y === e.y;
2134
2137
  }
2135
2138
  function qu(t, e, r, i) {
2136
- var n = Mi(ye(t, e, r)), s = Mi(ye(t, e, i)), a = Mi(ye(r, i, t)), o = Mi(ye(r, i, e));
2137
- return !!(n !== s && a !== o || n === 0 && Ri(t, r, e) || s === 0 && Ri(t, i, e) || a === 0 && Ri(r, t, i) || o === 0 && Ri(r, e, i));
2139
+ var n = Pi(ye(t, e, r)), s = Pi(ye(t, e, i)), a = Pi(ye(r, i, t)), o = Pi(ye(r, i, e));
2140
+ return !!(n !== s && a !== o || n === 0 && Mi(t, r, e) || s === 0 && Mi(t, i, e) || a === 0 && Mi(r, t, i) || o === 0 && Mi(r, e, i));
2138
2141
  }
2139
- function Ri(t, e, r) {
2142
+ function Mi(t, e, r) {
2140
2143
  return e.x <= Math.max(t.x, r.x) && e.x >= Math.min(t.x, r.x) && e.y <= Math.max(t.y, r.y) && e.y >= Math.min(t.y, r.y);
2141
2144
  }
2142
- function Mi(t) {
2145
+ function Pi(t) {
2143
2146
  return t > 0 ? 1 : t < 0 ? -1 : 0;
2144
2147
  }
2145
2148
  function A_(t, e) {
@@ -2207,9 +2210,9 @@ Rn.flatten = function(t) {
2207
2210
  };
2208
2211
  var C_ = Ca.exports;
2209
2212
  const I_ = /* @__PURE__ */ er(C_);
2210
- var ln = { exports: {} };
2213
+ var un = { exports: {} };
2211
2214
  /*! https://mths.be/punycode v1.4.1 by @mathias */
2212
- ln.exports;
2215
+ un.exports;
2213
2216
  (function(t, e) {
2214
2217
  (function(r) {
2215
2218
  var i = e && !e.nodeType && e, n = t && !t.nodeType && t, s = typeof Ye == "object" && Ye;
@@ -2218,7 +2221,7 @@ ln.exports;
2218
2221
  overflow: "Overflow: input needs wider integers to process",
2219
2222
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2220
2223
  "invalid-input": "Invalid input"
2221
- }, x = u - h, b = Math.floor, T = String.fromCharCode, w;
2224
+ }, x = u - h, T = Math.floor, w = String.fromCharCode, b;
2222
2225
  function S(M) {
2223
2226
  throw new RangeError(_[M]);
2224
2227
  }
@@ -2238,10 +2241,10 @@ ln.exports;
2238
2241
  W = M.charCodeAt(z++), W >= 55296 && W <= 56319 && z < H ? (re = M.charCodeAt(z++), (re & 64512) == 56320 ? F.push(((W & 1023) << 10) + (re & 1023) + 65536) : (F.push(W), z--)) : F.push(W);
2239
2242
  return F;
2240
2243
  }
2241
- function U(M) {
2244
+ function k(M) {
2242
2245
  return A(M, function(F) {
2243
2246
  var z = "";
2244
- return F > 65535 && (F -= 65536, z += T(F >>> 10 & 1023 | 55296), F = 56320 | F & 1023), z += T(F), z;
2247
+ return F > 65535 && (F -= 65536, z += w(F >>> 10 & 1023 | 55296), F = 56320 | F & 1023), z += w(F), z;
2245
2248
  }).join("");
2246
2249
  }
2247
2250
  function E(M) {
@@ -2250,43 +2253,43 @@ ln.exports;
2250
2253
  function C(M, F) {
2251
2254
  return M + 22 + 75 * (M < 26) - ((F != 0) << 5);
2252
2255
  }
2253
- function B(M, F, z) {
2256
+ function U(M, F, z) {
2254
2257
  var H = 0;
2255
- for (M = z ? b(M / c) : M >> 1, M += b(M / F); M > x * d >> 1; H += u)
2256
- M = b(M / x);
2257
- return b(H + (x + 1) * M / (M + l));
2258
+ for (M = z ? T(M / c) : M >> 1, M += T(M / F); M > x * d >> 1; H += u)
2259
+ M = T(M / x);
2260
+ return T(H + (x + 1) * M / (M + l));
2258
2261
  }
2259
2262
  function $(M) {
2260
2263
  var F = [], z = M.length, H, W = 0, re = p, ne = f, oe, de, ue, G, q, Y, he, Fe, K;
2261
2264
  for (oe = M.lastIndexOf(m), oe < 0 && (oe = 0), de = 0; de < oe; ++de)
2262
2265
  M.charCodeAt(de) >= 128 && S("not-basic"), F.push(M.charCodeAt(de));
2263
2266
  for (ue = oe > 0 ? oe + 1 : 0; ue < z; ) {
2264
- for (G = W, q = 1, Y = u; ue >= z && S("invalid-input"), he = E(M.charCodeAt(ue++)), (he >= u || he > b((o - W) / q)) && S("overflow"), W += he * q, Fe = Y <= ne ? h : Y >= ne + d ? d : Y - ne, !(he < Fe); Y += u)
2265
- K = u - Fe, q > b(o / K) && S("overflow"), q *= K;
2266
- H = F.length + 1, ne = B(W - G, H, G == 0), b(W / H) > o - re && S("overflow"), re += b(W / H), W %= H, F.splice(W++, 0, re);
2267
+ for (G = W, q = 1, Y = u; ue >= z && S("invalid-input"), he = E(M.charCodeAt(ue++)), (he >= u || he > T((o - W) / q)) && S("overflow"), W += he * q, Fe = Y <= ne ? h : Y >= ne + d ? d : Y - ne, !(he < Fe); Y += u)
2268
+ K = u - Fe, q > T(o / K) && S("overflow"), q *= K;
2269
+ H = F.length + 1, ne = U(W - G, H, G == 0), T(W / H) > o - re && S("overflow"), re += T(W / H), W %= H, F.splice(W++, 0, re);
2267
2270
  }
2268
- return U(F);
2271
+ return k(F);
2269
2272
  }
2270
2273
  function R(M) {
2271
2274
  var F, z, H, W, re, ne, oe, de, ue, G, q, Y = [], he, Fe, K, me;
2272
2275
  for (M = P(M), he = M.length, F = p, z = 0, re = f, ne = 0; ne < he; ++ne)
2273
- q = M[ne], q < 128 && Y.push(T(q));
2276
+ q = M[ne], q < 128 && Y.push(w(q));
2274
2277
  for (H = W = Y.length, W && Y.push(m); H < he; ) {
2275
2278
  for (oe = o, ne = 0; ne < he; ++ne)
2276
2279
  q = M[ne], q >= F && q < oe && (oe = q);
2277
- for (Fe = H + 1, oe - F > b((o - z) / Fe) && S("overflow"), z += (oe - F) * Fe, F = oe, ne = 0; ne < he; ++ne)
2280
+ for (Fe = H + 1, oe - F > T((o - z) / Fe) && S("overflow"), z += (oe - F) * Fe, F = oe, ne = 0; ne < he; ++ne)
2278
2281
  if (q = M[ne], q < F && ++z > o && S("overflow"), q == F) {
2279
2282
  for (de = z, ue = u; G = ue <= re ? h : ue >= re + d ? d : ue - re, !(de < G); ue += u)
2280
2283
  me = de - G, K = u - G, Y.push(
2281
- T(C(G + me % K, 0))
2282
- ), de = b(me / K);
2283
- Y.push(T(C(de, 0))), re = B(z, Fe, H == W), z = 0, ++H;
2284
+ w(C(G + me % K, 0))
2285
+ ), de = T(me / K);
2286
+ Y.push(w(C(de, 0))), re = U(z, Fe, H == W), z = 0, ++H;
2284
2287
  }
2285
2288
  ++z, ++F;
2286
2289
  }
2287
2290
  return Y.join("");
2288
2291
  }
2289
- function L(M) {
2292
+ function B(M) {
2290
2293
  return I(M, function(F) {
2291
2294
  return v.test(F) ? $(F.slice(4).toLowerCase()) : F;
2292
2295
  });
@@ -2312,23 +2315,23 @@ ln.exports;
2312
2315
  */
2313
2316
  ucs2: {
2314
2317
  decode: P,
2315
- encode: U
2318
+ encode: k
2316
2319
  },
2317
2320
  decode: $,
2318
2321
  encode: R,
2319
2322
  toASCII: X,
2320
- toUnicode: L
2323
+ toUnicode: B
2321
2324
  }, i && n)
2322
2325
  if (t.exports == i)
2323
2326
  n.exports = a;
2324
2327
  else
2325
- for (w in a)
2326
- a.hasOwnProperty(w) && (i[w] = a[w]);
2328
+ for (b in a)
2329
+ a.hasOwnProperty(b) && (i[b] = a[b]);
2327
2330
  else
2328
2331
  r.punycode = a;
2329
2332
  })(Ye);
2330
- })(ln, ln.exports);
2331
- var R_ = ln.exports, M_ = function() {
2333
+ })(un, un.exports);
2334
+ var R_ = un.exports, M_ = function() {
2332
2335
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2333
2336
  return !1;
2334
2337
  if (typeof Symbol.iterator == "symbol")
@@ -2551,8 +2554,8 @@ var X_ = function t(e) {
2551
2554
  "%URIErrorPrototype%": ["URIError", "prototype"],
2552
2555
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2553
2556
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2554
- }, bi = Ia, un = G_, W_ = bi.call(Function.call, Array.prototype.concat), q_ = bi.call(Function.apply, Array.prototype.splice), el = bi.call(Function.call, String.prototype.replace), cn = bi.call(Function.call, String.prototype.slice), Y_ = bi.call(Function.call, RegExp.prototype.exec), K_ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Z_ = /\\(\\)?/g, Q_ = function(e) {
2555
- var r = cn(e, 0, 1), i = cn(e, -1);
2557
+ }, Ti = Ia, cn = G_, W_ = Ti.call(Function.call, Array.prototype.concat), q_ = Ti.call(Function.apply, Array.prototype.splice), el = Ti.call(Function.call, String.prototype.replace), hn = Ti.call(Function.call, String.prototype.slice), Y_ = Ti.call(Function.call, RegExp.prototype.exec), K_ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Z_ = /\\(\\)?/g, Q_ = function(e) {
2558
+ var r = hn(e, 0, 1), i = hn(e, -1);
2556
2559
  if (r === "%" && i !== "%")
2557
2560
  throw new Ar("invalid intrinsic syntax, expected closing `%`");
2558
2561
  if (i === "%" && r !== "%")
@@ -2563,7 +2566,7 @@ var X_ = function t(e) {
2563
2566
  }), n;
2564
2567
  }, J_ = function(e, r) {
2565
2568
  var i = e, n;
2566
- if (un(Jo, i) && (n = Jo[i], i = "%" + n[0] + "%"), un(Kt, i)) {
2569
+ if (cn(Jo, i) && (n = Jo[i], i = "%" + n[0] + "%"), cn(Kt, i)) {
2567
2570
  var s = Kt[i];
2568
2571
  if (s === dr && (s = X_(i)), typeof s > "u" && !r)
2569
2572
  throw new xr("intrinsic " + e + " exists, but is not available. Please file an issue!");
@@ -2584,10 +2587,10 @@ var X_ = function t(e) {
2584
2587
  var i = Q_(e), n = i.length > 0 ? i[0] : "", s = J_("%" + n + "%", r), a = s.name, o = s.value, u = !1, h = s.alias;
2585
2588
  h && (n = h[0], q_(i, W_([0, 1], h)));
2586
2589
  for (var d = 1, l = !0; d < i.length; d += 1) {
2587
- var c = i[d], f = cn(c, 0, 1), p = cn(c, -1);
2590
+ var c = i[d], f = hn(c, 0, 1), p = hn(c, -1);
2588
2591
  if ((f === '"' || f === "'" || f === "`" || p === '"' || p === "'" || p === "`") && f !== p)
2589
2592
  throw new Ar("property names with quotes must have matching quotes");
2590
- if ((c === "constructor" || !l) && (u = !0), n += "." + c, a = "%" + n + "%", un(Kt, a))
2593
+ if ((c === "constructor" || !l) && (u = !0), n += "." + c, a = "%" + n + "%", cn(Kt, a))
2591
2594
  o = Kt[a];
2592
2595
  else if (o != null) {
2593
2596
  if (!(c in o)) {
@@ -2599,7 +2602,7 @@ var X_ = function t(e) {
2599
2602
  var m = Yt(o, c);
2600
2603
  l = !!m, l && "get" in m && !("originalValue" in m.get) ? o = m.get : o = o[c];
2601
2604
  } else
2602
- l = un(o, c), o = o[c];
2605
+ l = cn(o, c), o = o[c];
2603
2606
  l && !u && (Kt[a] = o);
2604
2607
  }
2605
2608
  }
@@ -2638,7 +2641,7 @@ const iy = {}, ny = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2638
2641
  __proto__: null,
2639
2642
  default: iy
2640
2643
  }, Symbol.toStringTag, { value: "Module" })), sy = /* @__PURE__ */ jh(ny);
2641
- var Ma = typeof Map == "function" && Map.prototype, ts = Object.getOwnPropertyDescriptor && Ma ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, hn = Ma && ts && typeof ts.get == "function" ? ts.get : null, tl = Ma && Map.prototype.forEach, Pa = typeof Set == "function" && Set.prototype, rs = Object.getOwnPropertyDescriptor && Pa ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, fn = Pa && rs && typeof rs.get == "function" ? rs.get : null, rl = Pa && Set.prototype.forEach, ay = typeof WeakMap == "function" && WeakMap.prototype, Jr = ay ? WeakMap.prototype.has : null, oy = typeof WeakSet == "function" && WeakSet.prototype, ei = oy ? WeakSet.prototype.has : null, ly = typeof WeakRef == "function" && WeakRef.prototype, il = ly ? WeakRef.prototype.deref : null, uy = Boolean.prototype.valueOf, cy = Object.prototype.toString, hy = Function.prototype.toString, fy = String.prototype.match, Fa = String.prototype.slice, Mt = String.prototype.replace, dy = String.prototype.toUpperCase, nl = String.prototype.toLowerCase, ec = RegExp.prototype.test, sl = Array.prototype.concat, pt = Array.prototype.join, py = Array.prototype.slice, al = Math.floor, Hs = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, is = Object.getOwnPropertySymbols, Vs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Er = typeof Symbol == "function" && typeof Symbol.iterator == "object", ke = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Er || "symbol") ? Symbol.toStringTag : null, tc = Object.prototype.propertyIsEnumerable, ol = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2644
+ var Ma = typeof Map == "function" && Map.prototype, ts = Object.getOwnPropertyDescriptor && Ma ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, fn = Ma && ts && typeof ts.get == "function" ? ts.get : null, tl = Ma && Map.prototype.forEach, Pa = typeof Set == "function" && Set.prototype, rs = Object.getOwnPropertyDescriptor && Pa ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, dn = Pa && rs && typeof rs.get == "function" ? rs.get : null, rl = Pa && Set.prototype.forEach, ay = typeof WeakMap == "function" && WeakMap.prototype, Jr = ay ? WeakMap.prototype.has : null, oy = typeof WeakSet == "function" && WeakSet.prototype, ei = oy ? WeakSet.prototype.has : null, ly = typeof WeakRef == "function" && WeakRef.prototype, il = ly ? WeakRef.prototype.deref : null, uy = Boolean.prototype.valueOf, cy = Object.prototype.toString, hy = Function.prototype.toString, fy = String.prototype.match, Fa = String.prototype.slice, Mt = String.prototype.replace, dy = String.prototype.toUpperCase, nl = String.prototype.toLowerCase, ec = RegExp.prototype.test, sl = Array.prototype.concat, pt = Array.prototype.join, py = Array.prototype.slice, al = Math.floor, Hs = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, is = Object.getOwnPropertySymbols, Vs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Er = typeof Symbol == "function" && typeof Symbol.iterator == "object", ke = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Er || "symbol") ? Symbol.toStringTag : null, tc = Object.prototype.propertyIsEnumerable, ol = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2642
2645
  return t.__proto__;
2643
2646
  } : null);
2644
2647
  function ll(t, e) {
@@ -2694,8 +2697,8 @@ var Xs = sy, ul = Xs.custom, cl = ic(ul) ? ul : null, my = function t(e, r, i, n
2694
2697
  n = [];
2695
2698
  else if (nc(n, e) >= 0)
2696
2699
  return "[Circular]";
2697
- function c(E, C, B) {
2698
- if (C && (n = py.call(n), n.push(C)), B) {
2700
+ function c(E, C, U) {
2701
+ if (C && (n = py.call(n), n.push(C)), U) {
2699
2702
  var $ = {
2700
2703
  depth: s.depth
2701
2704
  };
@@ -2704,7 +2707,7 @@ var Xs = sy, ul = Xs.custom, cl = ic(ul) ? ul : null, my = function t(e, r, i, n
2704
2707
  return t(E, s, i + 1, n);
2705
2708
  }
2706
2709
  if (typeof e == "function" && !hl(e)) {
2707
- var f = Sy(e), p = Pi(e, c);
2710
+ var f = Sy(e), p = Fi(e, c);
2708
2711
  return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (p.length > 0 ? " { " + pt.call(p, ", ") + " }" : "");
2709
2712
  }
2710
2713
  if (ic(e)) {
@@ -2719,11 +2722,11 @@ var Xs = sy, ul = Xs.custom, cl = ic(ul) ? ul : null, my = function t(e, r, i, n
2719
2722
  if (Ws(e)) {
2720
2723
  if (e.length === 0)
2721
2724
  return "[]";
2722
- var _ = Pi(e, c);
2725
+ var _ = Fi(e, c);
2723
2726
  return l && !Fy(_) ? "[" + qs(_, l) + "]" : "[ " + pt.call(_, ", ") + " ]";
2724
2727
  }
2725
2728
  if (_y(e)) {
2726
- var x = Pi(e, c);
2729
+ var x = Fi(e, c);
2727
2730
  return !("cause" in Error.prototype) && "cause" in e && !tc.call(e, "cause") ? "{ [" + String(e) + "] " + pt.call(sl.call("[cause]: " + c(e.cause), x), ", ") + " }" : x.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + pt.call(x, ", ") + " }";
2728
2731
  }
2729
2732
  if (typeof e == "object" && a) {
@@ -2733,16 +2736,16 @@ var Xs = sy, ul = Xs.custom, cl = ic(ul) ? ul : null, my = function t(e, r, i, n
2733
2736
  return e.inspect();
2734
2737
  }
2735
2738
  if (Ay(e)) {
2736
- var b = [];
2739
+ var T = [];
2737
2740
  return tl && tl.call(e, function(E, C) {
2738
- b.push(c(C, e, !0) + " => " + c(E, e));
2739
- }), fl("Map", hn.call(e), b, l);
2741
+ T.push(c(C, e, !0) + " => " + c(E, e));
2742
+ }), fl("Map", fn.call(e), T, l);
2740
2743
  }
2741
2744
  if (Iy(e)) {
2742
- var T = [];
2745
+ var w = [];
2743
2746
  return rl && rl.call(e, function(E) {
2744
- T.push(c(E, e));
2745
- }), fl("Set", fn.call(e), T, l);
2747
+ w.push(c(E, e));
2748
+ }), fl("Set", dn.call(e), w, l);
2746
2749
  }
2747
2750
  if (Ey(e))
2748
2751
  return ns("WeakMap");
@@ -2759,8 +2762,8 @@ var Xs = sy, ul = Xs.custom, cl = ic(ul) ? ul : null, my = function t(e, r, i, n
2759
2762
  if (yy(e))
2760
2763
  return Hr(c(String(e)));
2761
2764
  if (!vy(e) && !hl(e)) {
2762
- var w = Pi(e, c), S = ol ? ol(e) === Object.prototype : e instanceof Object || e.constructor === Object, A = e instanceof Object ? "" : "null prototype", I = !S && ke && Object(e) === e && ke in e ? Fa.call(Nt(e), 8, -1) : A ? "Object" : "", P = S || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", U = P + (I || A ? "[" + pt.call(sl.call([], I || [], A || []), ": ") + "] " : "");
2763
- return w.length === 0 ? U + "{}" : l ? U + "{" + qs(w, l) + "}" : U + "{ " + pt.call(w, ", ") + " }";
2765
+ var b = Fi(e, c), S = ol ? ol(e) === Object.prototype : e instanceof Object || e.constructor === Object, A = e instanceof Object ? "" : "null prototype", I = !S && ke && Object(e) === e && ke in e ? Fa.call(Nt(e), 8, -1) : A ? "Object" : "", P = S || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = P + (I || A ? "[" + pt.call(sl.call([], I || [], A || []), ": ") + "] " : "");
2766
+ return b.length === 0 ? k + "{}" : l ? k + "{" + qs(b, l) + "}" : k + "{ " + pt.call(b, ", ") + " }";
2764
2767
  }
2765
2768
  return String(e);
2766
2769
  };
@@ -2838,12 +2841,12 @@ function nc(t, e) {
2838
2841
  return -1;
2839
2842
  }
2840
2843
  function Ay(t) {
2841
- if (!hn || !t || typeof t != "object")
2844
+ if (!fn || !t || typeof t != "object")
2842
2845
  return !1;
2843
2846
  try {
2844
- hn.call(t);
2847
+ fn.call(t);
2845
2848
  try {
2846
- fn.call(t);
2849
+ dn.call(t);
2847
2850
  } catch {
2848
2851
  return !0;
2849
2852
  }
@@ -2877,12 +2880,12 @@ function Cy(t) {
2877
2880
  return !1;
2878
2881
  }
2879
2882
  function Iy(t) {
2880
- if (!fn || !t || typeof t != "object")
2883
+ if (!dn || !t || typeof t != "object")
2881
2884
  return !1;
2882
2885
  try {
2883
- fn.call(t);
2886
+ dn.call(t);
2884
2887
  try {
2885
- hn.call(t);
2888
+ fn.call(t);
2886
2889
  } catch {
2887
2890
  return !0;
2888
2891
  }
@@ -2965,7 +2968,7 @@ function qs(t, e) {
2965
2968
  return r + pt.call(t, "," + r) + `
2966
2969
  ` + e.prev;
2967
2970
  }
2968
- function Pi(t, e) {
2971
+ function Fi(t, e) {
2969
2972
  var r = Ws(t), i = [];
2970
2973
  if (r) {
2971
2974
  i.length = t.length;
@@ -2985,7 +2988,7 @@ function Pi(t, e) {
2985
2988
  tc.call(t, s[h]) && i.push("[" + e(s[h]) + "]: " + e(t[s[h]], t));
2986
2989
  return i;
2987
2990
  }
2988
- var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0), Oi = Oa("%Map%", !0), Ly = Ur("WeakMap.prototype.get", !0), Dy = Ur("WeakMap.prototype.set", !0), By = Ur("WeakMap.prototype.has", !0), Uy = Ur("Map.prototype.get", !0), $y = Ur("Map.prototype.set", !0), Gy = Ur("Map.prototype.has", !0), Na = function(t, e) {
2991
+ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Oi = Oa("%WeakMap%", !0), Ni = Oa("%Map%", !0), Ly = Ur("WeakMap.prototype.get", !0), Dy = Ur("WeakMap.prototype.set", !0), By = Ur("WeakMap.prototype.has", !0), Uy = Ur("Map.prototype.get", !0), $y = Ur("Map.prototype.set", !0), Gy = Ur("Map.prototype.has", !0), Na = function(t, e) {
2989
2992
  for (var r = t, i; (i = r.next) !== null; r = i)
2990
2993
  if (i.key === e)
2991
2994
  return r.next = i.next, i.next = t.next, t.next = i, i;
@@ -3009,20 +3012,20 @@ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0),
3009
3012
  throw new ky("Side channel does not contain " + Ny(s));
3010
3013
  },
3011
3014
  get: function(s) {
3012
- if (Fi && s && (typeof s == "object" || typeof s == "function")) {
3015
+ if (Oi && s && (typeof s == "object" || typeof s == "function")) {
3013
3016
  if (e)
3014
3017
  return Ly(e, s);
3015
- } else if (Oi) {
3018
+ } else if (Ni) {
3016
3019
  if (r)
3017
3020
  return Uy(r, s);
3018
3021
  } else if (i)
3019
3022
  return zy(i, s);
3020
3023
  },
3021
3024
  has: function(s) {
3022
- if (Fi && s && (typeof s == "object" || typeof s == "function")) {
3025
+ if (Oi && s && (typeof s == "object" || typeof s == "function")) {
3023
3026
  if (e)
3024
3027
  return By(e, s);
3025
- } else if (Oi) {
3028
+ } else if (Ni) {
3026
3029
  if (r)
3027
3030
  return Gy(r, s);
3028
3031
  } else if (i)
@@ -3030,7 +3033,7 @@ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0),
3030
3033
  return !1;
3031
3034
  },
3032
3035
  set: function(s, a) {
3033
- Fi && s && (typeof s == "object" || typeof s == "function") ? (e || (e = new Fi()), Dy(e, s, a)) : Oi ? (r || (r = new Oi()), $y(r, s, a)) : (i || (i = { key: {}, next: null }), jy(i, s, a));
3036
+ Oi && s && (typeof s == "object" || typeof s == "function") ? (e || (e = new Oi()), Dy(e, s, a)) : Ni ? (r || (r = new Ni()), $y(r, s, a)) : (i || (i = { key: {}, next: null }), jy(i, s, a));
3034
3037
  }
3035
3038
  };
3036
3039
  return n;
@@ -3164,7 +3167,7 @@ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0),
3164
3167
  isRegExp: tx,
3165
3168
  maybeMap: nx,
3166
3169
  merge: Ky
3167
- }, lc = Vy, Xi = oc, ti = ka, sx = Object.prototype.hasOwnProperty, dl = {
3170
+ }, lc = Vy, Wi = oc, ti = ka, sx = Object.prototype.hasOwnProperty, dl = {
3168
3171
  brackets: function(e) {
3169
3172
  return e + "[]";
3170
3173
  },
@@ -3184,7 +3187,7 @@ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0),
3184
3187
  charsetSentinel: !1,
3185
3188
  delimiter: "&",
3186
3189
  encode: !0,
3187
- encoder: Xi.encode,
3190
+ encoder: Wi.encode,
3188
3191
  encodeValuesOnly: !1,
3189
3192
  format: pl,
3190
3193
  formatter: ti.formatters[pl],
@@ -3199,34 +3202,34 @@ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0),
3199
3202
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
3200
3203
  }, os = {}, ux = function t(e, r, i, n, s, a, o, u, h, d, l, c, f, p, m, v) {
3201
3204
  for (var g = e, y = v, _ = 0, x = !1; (y = y.get(os)) !== void 0 && !x; ) {
3202
- var b = y.get(e);
3203
- if (_ += 1, typeof b < "u") {
3204
- if (b === _)
3205
+ var T = y.get(e);
3206
+ if (_ += 1, typeof T < "u") {
3207
+ if (T === _)
3205
3208
  throw new RangeError("Cyclic object value");
3206
3209
  x = !0;
3207
3210
  }
3208
3211
  typeof y.get(os) > "u" && (_ = 0);
3209
3212
  }
3210
- if (typeof u == "function" ? g = u(r, g) : g instanceof Date ? g = l(g) : i === "comma" && Tt(g) && (g = Xi.maybeMap(g, function($) {
3213
+ if (typeof u == "function" ? g = u(r, g) : g instanceof Date ? g = l(g) : i === "comma" && Tt(g) && (g = Wi.maybeMap(g, function($) {
3211
3214
  return $ instanceof Date ? l($) : $;
3212
3215
  })), g === null) {
3213
3216
  if (s)
3214
3217
  return o && !p ? o(r, Oe.encoder, m, "key", c) : r;
3215
3218
  g = "";
3216
3219
  }
3217
- if (lx(g) || Xi.isBuffer(g)) {
3220
+ if (lx(g) || Wi.isBuffer(g)) {
3218
3221
  if (o) {
3219
- var T = p ? r : o(r, Oe.encoder, m, "key", c);
3220
- return [f(T) + "=" + f(o(g, Oe.encoder, m, "value", c))];
3222
+ var w = p ? r : o(r, Oe.encoder, m, "key", c);
3223
+ return [f(w) + "=" + f(o(g, Oe.encoder, m, "value", c))];
3221
3224
  }
3222
3225
  return [f(r) + "=" + f(String(g))];
3223
3226
  }
3224
- var w = [];
3227
+ var b = [];
3225
3228
  if (typeof g > "u")
3226
- return w;
3229
+ return b;
3227
3230
  var S;
3228
3231
  if (i === "comma" && Tt(g))
3229
- p && o && (g = Xi.maybeMap(g, o)), S = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
3232
+ p && o && (g = Wi.maybeMap(g, o)), S = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
3230
3233
  else if (Tt(u))
3231
3234
  S = u;
3232
3235
  else {
@@ -3234,12 +3237,12 @@ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0),
3234
3237
  S = h ? A.sort(h) : A;
3235
3238
  }
3236
3239
  for (var I = n && Tt(g) && g.length === 1 ? r + "[]" : r, P = 0; P < S.length; ++P) {
3237
- var U = S[P], E = typeof U == "object" && typeof U.value < "u" ? U.value : g[U];
3240
+ var k = S[P], E = typeof k == "object" && typeof k.value < "u" ? k.value : g[k];
3238
3241
  if (!(a && E === null)) {
3239
- var C = Tt(g) ? typeof i == "function" ? i(I, U) : I : I + (d ? "." + U : "[" + U + "]");
3242
+ var C = Tt(g) ? typeof i == "function" ? i(I, k) : I : I + (d ? "." + k : "[" + k + "]");
3240
3243
  v.set(e, _);
3241
- var B = lc();
3242
- B.set(os, v), uc(w, t(
3244
+ var U = lc();
3245
+ U.set(os, v), uc(b, t(
3243
3246
  E,
3244
3247
  C,
3245
3248
  i,
@@ -3255,11 +3258,11 @@ var Oa = Ra, Ur = ry, Ny = my, ky = Oa("%TypeError%"), Fi = Oa("%WeakMap%", !0),
3255
3258
  f,
3256
3259
  p,
3257
3260
  m,
3258
- B
3261
+ U
3259
3262
  ));
3260
3263
  }
3261
3264
  }
3262
- return w;
3265
+ return b;
3263
3266
  }, cx = function(e) {
3264
3267
  if (!e)
3265
3268
  return Oe;
@@ -3528,9 +3531,9 @@ ot.prototype.parse = function(t, e, r) {
3528
3531
  for (var y = this.hostname.split(/\./), f = 0, _ = y.length; f < _; f++) {
3529
3532
  var x = y[f];
3530
3533
  if (x && !x.match(vl)) {
3531
- for (var b = "", T = 0, w = x.length; T < w; T++)
3532
- x.charCodeAt(T) > 127 ? b += "x" : b += x[T];
3533
- if (!b.match(vl)) {
3534
+ for (var T = "", w = 0, b = x.length; w < b; w++)
3535
+ x.charCodeAt(w) > 127 ? T += "x" : T += x[w];
3536
+ if (!T.match(vl)) {
3534
3537
  var S = y.slice(0, f), A = y.slice(f + 1), I = x.match(Fx);
3535
3538
  I && (S.push(I[1]), A.unshift(I[2])), A.length && (o = "/" + A.join(".") + o), this.hostname = S.join(".");
3536
3539
  break;
@@ -3538,8 +3541,8 @@ ot.prototype.parse = function(t, e, r) {
3538
3541
  }
3539
3542
  }
3540
3543
  this.hostname.length > Px ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), g || (this.hostname = Ax.toASCII(this.hostname));
3541
- var P = this.port ? ":" + this.port : "", U = this.hostname || "";
3542
- this.host = U + P, this.href += this.host, g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
3544
+ var P = this.port ? ":" + this.port : "", k = this.hostname || "";
3545
+ this.host = k + P, this.href += this.host, g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
3543
3546
  }
3544
3547
  if (!Ox[d])
3545
3548
  for (var f = 0, _ = Ks.length; f < _; f++) {
@@ -3549,8 +3552,8 @@ ot.prototype.parse = function(t, e, r) {
3549
3552
  C === E && (C = escape(E)), o = o.split(E).join(C);
3550
3553
  }
3551
3554
  }
3552
- var B = o.indexOf("#");
3553
- B !== -1 && (this.hash = o.substr(B), o = o.slice(0, B));
3555
+ var U = o.indexOf("#");
3556
+ U !== -1 && (this.hash = o.substr(U), o = o.slice(0, U));
3554
3557
  var $ = o.indexOf("?");
3555
3558
  if ($ !== -1 ? (this.search = o.substr($), this.query = o.substr($ + 1), e && (this.query = Qs.parse(this.query)), o = o.slice(0, $)) : e && (this.search = "", this.query = {}), o && (this.pathname = o), br[d] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3556
3559
  var P = this.pathname || "", R = this.search || "";
@@ -3623,24 +3626,24 @@ ot.prototype.resolveObject = function(t) {
3623
3626
  else if (t.search != null) {
3624
3627
  if (x) {
3625
3628
  r.host = y.shift(), r.hostname = r.host;
3626
- var b = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3627
- b && (r.auth = b.shift(), r.hostname = b.shift(), r.host = r.hostname);
3629
+ var T = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3630
+ T && (r.auth = T.shift(), r.hostname = T.shift(), r.host = r.hostname);
3628
3631
  }
3629
3632
  return r.search = t.search, r.query = t.query, (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.href = r.format(), r;
3630
3633
  }
3631
3634
  if (!y.length)
3632
3635
  return r.pathname = null, r.search ? r.path = "/" + r.search : r.path = null, r.href = r.format(), r;
3633
- for (var T = y.slice(-1)[0], w = (r.host || t.host || y.length > 1) && (T === "." || T === "..") || T === "", S = 0, A = y.length; A >= 0; A--)
3634
- T = y[A], T === "." ? y.splice(A, 1) : T === ".." ? (y.splice(A, 1), S++) : S && (y.splice(A, 1), S--);
3636
+ for (var w = y.slice(-1)[0], b = (r.host || t.host || y.length > 1) && (w === "." || w === "..") || w === "", S = 0, A = y.length; A >= 0; A--)
3637
+ w = y[A], w === "." ? y.splice(A, 1) : w === ".." ? (y.splice(A, 1), S++) : S && (y.splice(A, 1), S--);
3635
3638
  if (!v && !g)
3636
3639
  for (; S--; S)
3637
3640
  y.unshift("..");
3638
- v && y[0] !== "" && (!y[0] || y[0].charAt(0) !== "/") && y.unshift(""), w && y.join("/").substr(-1) !== "/" && y.push("");
3641
+ v && y[0] !== "" && (!y[0] || y[0].charAt(0) !== "/") && y.unshift(""), b && y.join("/").substr(-1) !== "/" && y.push("");
3639
3642
  var I = y[0] === "" || y[0] && y[0].charAt(0) === "/";
3640
3643
  if (x) {
3641
3644
  r.hostname = I ? "" : y.length ? y.shift() : "", r.host = r.hostname;
3642
- var b = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3643
- b && (r.auth = b.shift(), r.hostname = b.shift(), r.host = r.hostname);
3645
+ var T = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3646
+ T && (r.auth = T.shift(), r.hostname = T.shift(), r.host = r.hostname);
3644
3647
  }
3645
3648
  return v = v || r.host && y.length, v && !I && y.unshift(""), y.length > 0 ? r.pathname = y.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = t.auth || r.auth, r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
3646
3649
  };
@@ -3701,7 +3704,7 @@ var Gx = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, xt = function(t) {
3701
3704
  return { r: Qe(t.r, 0, 255), g: Qe(t.g, 0, 255), b: Qe(t.b, 0, 255), a: Qe(t.a) };
3702
3705
  }, us = function(t) {
3703
3706
  return { r: Re(t.r), g: Re(t.g), b: Re(t.b), a: Re(t.a, 3) };
3704
- }, zx = /^#([0-9a-f]{3,8})$/i, Ni = function(t) {
3707
+ }, zx = /^#([0-9a-f]{3,8})$/i, ki = function(t) {
3705
3708
  var e = t.toString(16);
3706
3709
  return e.length < 2 ? "0" + e : e;
3707
3710
  }, fc = function(t) {
@@ -3781,7 +3784,7 @@ var Gx = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, xt = function(t) {
3781
3784
  }, t.prototype.isLight = function() {
3782
3785
  return hs(this.rgba) >= 0.5;
3783
3786
  }, t.prototype.toHex = function() {
3784
- return e = us(this.rgba), r = e.r, i = e.g, n = e.b, a = (s = e.a) < 1 ? Ni(Re(255 * s)) : "", "#" + Ni(r) + Ni(i) + Ni(n) + a;
3787
+ return e = us(this.rgba), r = e.r, i = e.g, n = e.b, a = (s = e.a) < 1 ? ki(Re(255 * s)) : "", "#" + ki(r) + ki(i) + ki(n) + a;
3785
3788
  var e, r, i, n, s, a;
3786
3789
  }, t.prototype.toRgb = function() {
3787
3790
  return us(this.rgba);
@@ -4040,7 +4043,7 @@ function pc(t) {
4040
4043
  return "Uint8Array";
4041
4044
  return null;
4042
4045
  }
4043
- function dn(t) {
4046
+ function pn(t) {
4044
4047
  return t += t === 0 ? 1 : 0, --t, t |= t >>> 1, t |= t >>> 2, t |= t >>> 4, t |= t >>> 8, t |= t >>> 16, t + 1;
4045
4048
  }
4046
4049
  function El(t) {
@@ -4052,7 +4055,7 @@ function Cl(t) {
4052
4055
  let r = (t > 255 ? 1 : 0) << 3;
4053
4056
  return t >>>= r, e |= r, r = (t > 15 ? 1 : 0) << 2, t >>>= r, e |= r, r = (t > 3 ? 1 : 0) << 1, t >>>= r, e |= r, e | t >> 1;
4054
4057
  }
4055
- function Wi(t, e, r) {
4058
+ function qi(t, e, r) {
4056
4059
  const i = t.length;
4057
4060
  let n;
4058
4061
  if (e >= i || r === 0)
@@ -4068,12 +4071,12 @@ function hi() {
4068
4071
  return ++Qx;
4069
4072
  }
4070
4073
  const Il = {}, dt = /* @__PURE__ */ Object.create(null), Et = /* @__PURE__ */ Object.create(null);
4071
- let ki;
4074
+ let Li;
4072
4075
  function Jx(t, e = globalThis.location) {
4073
4076
  if (t.startsWith("data:"))
4074
4077
  return "";
4075
- e = e || globalThis.location, ki || (ki = document.createElement("a")), ki.href = t;
4076
- const r = Ux.parse(ki.href), i = !r.port && e.port === "" || r.port === e.port;
4078
+ e = e || globalThis.location, Li || (Li = document.createElement("a")), Li.href = t;
4079
+ const r = Ux.parse(Li.href), i = !r.port && e.port === "" || r.port === e.port;
4077
4080
  return r.hostname !== e.hostname || !i || r.protocol !== e.protocol ? "anonymous" : "";
4078
4081
  }
4079
4082
  function Rl(t, e = 1) {
@@ -4555,7 +4558,7 @@ class Be {
4555
4558
  return e instanceof Array && (e = new Float32Array(e)), new Be(e);
4556
4559
  }
4557
4560
  }
4558
- class pn {
4561
+ class mn {
4559
4562
  constructor(e, r = 0, i = !1, n = se.FLOAT, s, a, o, u = 1) {
4560
4563
  this.buffer = e, this.size = r, this.normalized = i, this.type = n, this.stride = s, this.start = a, this.instance = o, this.divisor = u;
4561
4564
  }
@@ -4563,7 +4566,7 @@ class pn {
4563
4566
  this.buffer = null;
4564
4567
  }
4565
4568
  static from(e, r, i, n, s) {
4566
- return new pn(e, r, i, n, s);
4569
+ return new mn(e, r, i, n, s);
4567
4570
  }
4568
4571
  }
4569
4572
  const ab = {
@@ -4614,7 +4617,7 @@ class Ir {
4614
4617
  return this;
4615
4618
  }
4616
4619
  let d = this.buffers.indexOf(r);
4617
- return d === -1 && (this.buffers.push(r), d = this.buffers.length - 1), this.attributes[e] = new pn(d, i, n, s, a, o, u), this.instanced = this.instanced || u, this;
4620
+ return d === -1 && (this.buffers.push(r), d = this.buffers.length - 1), this.attributes[e] = new mn(d, i, n, s, a, o, u), this.instanced = this.instanced || u, this;
4618
4621
  }
4619
4622
  getAttribute(e) {
4620
4623
  return this.attributes[e];
@@ -4660,7 +4663,7 @@ class Ir {
4660
4663
  e.buffers[r] = new Be(this.buffers[r].data.slice(0));
4661
4664
  for (const r in this.attributes) {
4662
4665
  const i = this.attributes[r];
4663
- e.attributes[r] = new pn(i.buffer, i.size, i.normalized, i.type, i.stride, i.start, i.instance);
4666
+ e.attributes[r] = new mn(i.buffer, i.size, i.normalized, i.type, i.stride, i.start, i.instance);
4664
4667
  }
4665
4668
  return this.indexBuffer && (e.indexBuffer = e.buffers[this.buffers.indexOf(this.indexBuffer)], e.indexBuffer.type = gt.ELEMENT_ARRAY_BUFFER), e;
4666
4669
  }
@@ -4706,7 +4709,7 @@ class vc extends Ir {
4706
4709
  super(), this._buffer = new Be(null, e, !1), this._indexBuffer = new Be(null, e, !0), this.addAttribute("aVertexPosition", this._buffer, 2, !1, se.FLOAT).addAttribute("aTextureCoord", this._buffer, 2, !1, se.FLOAT).addAttribute("aColor", this._buffer, 4, !0, se.UNSIGNED_BYTE).addAttribute("aTextureId", this._buffer, 1, !0, se.FLOAT).addIndex(this._indexBuffer);
4707
4710
  }
4708
4711
  }
4709
- const mn = Math.PI * 2, cb = 180 / Math.PI, di = Math.PI / 180;
4712
+ const gn = Math.PI * 2, cb = 180 / Math.PI, di = Math.PI / 180;
4710
4713
  var Pe = /* @__PURE__ */ ((t) => (t[t.POLY = 0] = "POLY", t[t.RECT = 1] = "RECT", t[t.CIRC = 2] = "CIRC", t[t.ELIP = 3] = "ELIP", t[t.RREC = 4] = "RREC", t))(Pe || {});
4711
4714
  class pe {
4712
4715
  constructor(e = 0, r = 0) {
@@ -4731,7 +4734,7 @@ class pe {
4731
4734
  return `[@pixi/math:Point x=${this.x} y=${this.y}]`;
4732
4735
  }
4733
4736
  }
4734
- const Li = [new pe(), new pe(), new pe(), new pe()];
4737
+ const Di = [new pe(), new pe(), new pe(), new pe()];
4735
4738
  class fe {
4736
4739
  constructor(e = 0, r = 0, i = 0, n = 0) {
4737
4740
  this.x = Number(e), this.y = Number(r), this.width = Number(i), this.height = Number(n), this.type = Pe.RECT;
@@ -4774,7 +4777,7 @@ class fe {
4774
4777
  const i = this.left, n = this.right, s = this.top, a = this.bottom;
4775
4778
  if (n <= i || a <= s)
4776
4779
  return !1;
4777
- const o = Li[0].set(e.left, e.top), u = Li[1].set(e.left, e.bottom), h = Li[2].set(e.right, e.top), d = Li[3].set(e.right, e.bottom);
4780
+ const o = Di[0].set(e.left, e.top), u = Di[1].set(e.left, e.bottom), h = Di[2].set(e.right, e.top), d = Di[3].set(e.right, e.bottom);
4778
4781
  if (h.x <= o.x || u.y <= o.y)
4779
4782
  return !1;
4780
4783
  const l = Math.sign(r.a * r.d - r.b * r.c);
@@ -4783,8 +4786,8 @@ class fe {
4783
4786
  const c = l * (u.y - o.y), f = l * (o.x - u.x), p = c * i + f * s, m = c * n + f * s, v = c * i + f * a, g = c * n + f * a;
4784
4787
  if (Math.max(p, m, v, g) <= c * o.x + f * o.y || Math.min(p, m, v, g) >= c * d.x + f * d.y)
4785
4788
  return !1;
4786
- const y = l * (o.y - h.y), _ = l * (h.x - o.x), x = y * i + _ * s, b = y * n + _ * s, T = y * i + _ * a, w = y * n + _ * a;
4787
- return !(Math.max(x, b, T, w) <= y * o.x + _ * o.y || Math.min(x, b, T, w) >= y * d.x + _ * d.y);
4789
+ const y = l * (o.y - h.y), _ = l * (h.x - o.x), x = y * i + _ * s, T = y * n + _ * s, w = y * i + _ * a, b = y * n + _ * a;
4790
+ return !(Math.max(x, T, w, b) <= y * o.x + _ * o.y || Math.min(x, T, w, b) >= y * d.x + _ * d.y);
4788
4791
  }
4789
4792
  pad(e = 0, r = e) {
4790
4793
  return this.x -= e, this.y -= r, this.width += e * 2, this.height += r * 2, this;
@@ -4899,7 +4902,7 @@ class Ua {
4899
4902
  return `[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`;
4900
4903
  }
4901
4904
  }
4902
- let Ue = class qi {
4905
+ let Ue = class Yi {
4903
4906
  constructor(e = 1, r = 0, i = 0, n = 1, s = 0, a = 0) {
4904
4907
  this.array = null, this.a = e, this.b = r, this.c = i, this.d = n, this.tx = s, this.ty = a;
4905
4908
  }
@@ -4951,7 +4954,7 @@ let Ue = class qi {
4951
4954
  }
4952
4955
  decompose(e) {
4953
4956
  const r = this.a, i = this.b, n = this.c, s = this.d, a = e.pivot, o = -Math.atan2(-n, s), u = Math.atan2(i, r), h = Math.abs(o + u);
4954
- return h < 1e-5 || Math.abs(mn - h) < 1e-5 ? (e.rotation = u, e.skew.x = e.skew.y = 0) : (e.rotation = 0, e.skew.x = o, e.skew.y = u), e.scale.x = Math.sqrt(r * r + i * i), e.scale.y = Math.sqrt(n * n + s * s), e.position.x = this.tx + (a.x * r + a.y * n), e.position.y = this.ty + (a.x * i + a.y * s), e;
4957
+ return h < 1e-5 || Math.abs(gn - h) < 1e-5 ? (e.rotation = u, e.skew.x = e.skew.y = 0) : (e.rotation = 0, e.skew.x = o, e.skew.y = u), e.scale.x = Math.sqrt(r * r + i * i), e.scale.y = Math.sqrt(n * n + s * s), e.position.x = this.tx + (a.x * r + a.y * n), e.position.y = this.ty + (a.x * i + a.y * s), e;
4955
4958
  }
4956
4959
  invert() {
4957
4960
  const e = this.a, r = this.b, i = this.c, n = this.d, s = this.tx, a = e * n - r * i;
@@ -4961,7 +4964,7 @@ let Ue = class qi {
4961
4964
  return this.a = 1, this.b = 0, this.c = 0, this.d = 1, this.tx = 0, this.ty = 0, this;
4962
4965
  }
4963
4966
  clone() {
4964
- const e = new qi();
4967
+ const e = new Yi();
4965
4968
  return e.a = this.a, e.b = this.b, e.c = this.c, e.d = this.d, e.tx = this.tx, e.ty = this.ty, e;
4966
4969
  }
4967
4970
  copyTo(e) {
@@ -4974,19 +4977,19 @@ let Ue = class qi {
4974
4977
  return `[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`;
4975
4978
  }
4976
4979
  static get IDENTITY() {
4977
- return new qi();
4980
+ return new Yi();
4978
4981
  }
4979
4982
  static get TEMP_MATRIX() {
4980
- return new qi();
4983
+ return new Yi();
4981
4984
  }
4982
4985
  };
4983
- const $t = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Gt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], zt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], jt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], na = [], yc = [], Di = Math.sign;
4986
+ const $t = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Gt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], zt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], jt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], na = [], yc = [], Bi = Math.sign;
4984
4987
  function fb() {
4985
4988
  for (let t = 0; t < 16; t++) {
4986
4989
  const e = [];
4987
4990
  na.push(e);
4988
4991
  for (let r = 0; r < 16; r++) {
4989
- const i = Di($t[t] * $t[r] + zt[t] * Gt[r]), n = Di(Gt[t] * $t[r] + jt[t] * Gt[r]), s = Di($t[t] * zt[r] + zt[t] * jt[r]), a = Di(Gt[t] * zt[r] + jt[t] * jt[r]);
4992
+ const i = Bi($t[t] * $t[r] + zt[t] * Gt[r]), n = Bi(Gt[t] * $t[r] + jt[t] * Gt[r]), s = Bi($t[t] * zt[r] + zt[t] * jt[r]), a = Bi(Gt[t] * zt[r] + jt[t] * jt[r]);
4990
4993
  for (let o = 0; o < 16; o++)
4991
4994
  if ($t[o] === i && Gt[o] === n && zt[o] === s && jt[o] === a) {
4992
4995
  e.push(o);
@@ -5596,14 +5599,14 @@ function _b() {
5596
5599
  }
5597
5600
  return ur;
5598
5601
  }
5599
- let Bi;
5602
+ let Ui;
5600
5603
  function yb() {
5601
- if (!Bi) {
5602
- Bi = Ze.MEDIUM;
5604
+ if (!Ui) {
5605
+ Ui = Ze.MEDIUM;
5603
5606
  const t = _b();
5604
- t && t.getShaderPrecisionFormat && (Bi = t.getShaderPrecisionFormat(t.FRAGMENT_SHADER, t.HIGH_FLOAT).precision ? Ze.HIGH : Ze.MEDIUM);
5607
+ t && t.getShaderPrecisionFormat && (Ui = t.getShaderPrecisionFormat(t.FRAGMENT_SHADER, t.HIGH_FLOAT).precision ? Ze.HIGH : Ze.MEDIUM);
5605
5608
  }
5606
- return Bi;
5609
+ return Ui;
5607
5610
  }
5608
5611
  function Ol(t, e) {
5609
5612
  const r = t.getShaderSource(e).split(`
@@ -5644,7 +5647,7 @@ const bb = {
5644
5647
  function wc(t) {
5645
5648
  return bb[t];
5646
5649
  }
5647
- let Ui = null;
5650
+ let $i = null;
5648
5651
  const Nl = {
5649
5652
  FLOAT: "float",
5650
5653
  FLOAT_VEC2: "vec2",
@@ -5676,15 +5679,15 @@ const Nl = {
5676
5679
  UNSIGNED_INT_SAMPLER_2D_ARRAY: "sampler2DArray"
5677
5680
  };
5678
5681
  function Sc(t, e) {
5679
- if (!Ui) {
5682
+ if (!$i) {
5680
5683
  const r = Object.keys(Nl);
5681
- Ui = {};
5684
+ $i = {};
5682
5685
  for (let i = 0; i < r.length; ++i) {
5683
5686
  const n = r[i];
5684
- Ui[t[n]] = Nl[n];
5687
+ $i[t[n]] = Nl[n];
5685
5688
  }
5686
5689
  }
5687
- return Ui[e];
5690
+ return $i[e];
5688
5691
  }
5689
5692
  function kl(t, e, r) {
5690
5693
  if (t.substring(0, 9) !== "precision") {
@@ -5707,9 +5710,9 @@ function Tb() {
5707
5710
  return Vr;
5708
5711
  }
5709
5712
  let wb = 0;
5710
- const $i = {}, mr = class {
5713
+ const Gi = {}, mr = class {
5711
5714
  constructor(t, e, r = "pixi-shader", i = {}) {
5712
- this.extra = {}, this.id = wb++, this.vertexSrc = t || mr.defaultVertexSrc, this.fragmentSrc = e || mr.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.extra = i, this.vertexSrc.substring(0, 8) !== "#version" && (r = r.replace(/\s+/g, "-"), $i[r] ? ($i[r]++, r += `-${$i[r]}`) : $i[r] = 1, this.vertexSrc = `#define SHADER_NAME ${r}
5715
+ this.extra = {}, this.id = wb++, this.vertexSrc = t || mr.defaultVertexSrc, this.fragmentSrc = e || mr.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.extra = i, this.vertexSrc.substring(0, 8) !== "#version" && (r = r.replace(/\s+/g, "-"), Gi[r] ? (Gi[r]++, r += `-${Gi[r]}`) : Gi[r] = 1, this.vertexSrc = `#define SHADER_NAME ${r}
5713
5716
  ${this.vertexSrc}`, this.fragmentSrc = `#define SHADER_NAME ${r}
5714
5717
  ${this.fragmentSrc}`, this.vertexSrc = kl(this.vertexSrc, mr.defaultVertexPrecision, Ze.HIGH), this.fragmentSrc = kl(this.fragmentSrc, mr.defaultFragmentPrecision, yb())), this.glPrograms = {}, this.syncUniforms = null;
5715
5718
  }
@@ -5749,7 +5752,7 @@ class ut {
5749
5752
  return new ut(e, r ?? !0, !0);
5750
5753
  }
5751
5754
  }
5752
- class Ti {
5755
+ class wi {
5753
5756
  constructor(e, r) {
5754
5757
  this.uniformBindCount = 0, this.program = e, r ? r instanceof ut ? this.uniformGroup = r : this.uniformGroup = new ut(r) : this.uniformGroup = new ut({}), this.disposeRunner = new lt("disposeShader");
5755
5758
  }
@@ -5771,7 +5774,7 @@ class Ti {
5771
5774
  }
5772
5775
  static from(e, r, i) {
5773
5776
  const n = wt.from(e, r);
5774
- return new Ti(n, i);
5777
+ return new wi(n, i);
5775
5778
  }
5776
5779
  }
5777
5780
  class Ab {
@@ -5795,7 +5798,7 @@ class Ab {
5795
5798
  translationMatrix: new Ue(),
5796
5799
  default: this.defaultGroupCache[e]
5797
5800
  };
5798
- return new Ti(this.programCache[e], r);
5801
+ return new wi(this.programCache[e], r);
5799
5802
  }
5800
5803
  generateSampleSrc(e) {
5801
5804
  let r = "";
@@ -6014,13 +6017,13 @@ const et = class extends Ac {
6014
6017
  this.renderer.off("prerender", this.onPrerender, this), this._aBuffers = null, this._iBuffers = null, this._packedGeometries = null, this._attributeBuffer = null, this._indexBuffer = null, this._shader && (this._shader.destroy(), this._shader = null), super.destroy();
6015
6018
  }
6016
6019
  getAttributeBuffer(t) {
6017
- const e = dn(Math.ceil(t / 8)), r = Cl(e), i = e * 8;
6020
+ const e = pn(Math.ceil(t / 8)), r = Cl(e), i = e * 8;
6018
6021
  this._aBuffers.length <= r && (this._iBuffers.length = r + 1);
6019
6022
  let n = this._aBuffers[i];
6020
6023
  return n || (this._aBuffers[i] = n = new eb(i * this.vertexSize * 4)), n;
6021
6024
  }
6022
6025
  getIndexBuffer(t) {
6023
- const e = dn(Math.ceil(t / 12)), r = Cl(e), i = e * 12;
6026
+ const e = pn(Math.ceil(t / 12)), r = Cl(e), i = e * 12;
6024
6027
  this._iBuffers.length <= r && (this._iBuffers.length = r + 1);
6025
6028
  let n = this._iBuffers[r];
6026
6029
  return n || (this._iBuffers[r] = n = new Uint16Array(i)), n;
@@ -6079,7 +6082,7 @@ void main(void)
6079
6082
  vTextureCoord = filterTextureCoord();
6080
6083
  }
6081
6084
  `;
6082
- const Wr = class extends Ti {
6085
+ const Wr = class extends wi {
6083
6086
  constructor(t, e, r) {
6084
6087
  const i = wt.from(t || Wr.defaultVertexSrc, e || Wr.defaultFragmentSrc);
6085
6088
  super(i, r), this.padding = 0, this.resolution = Wr.defaultResolution, this.multisample = Wr.defaultMultisample, this.enabled = !0, this.autoFit = !0, this.state = new On();
@@ -6493,7 +6496,7 @@ class Rc {
6493
6496
  }
6494
6497
  }
6495
6498
  const Dl = new Rc();
6496
- function Gi(t) {
6499
+ function zi(t) {
6497
6500
  t.destroy = function() {
6498
6501
  }, t.on = function() {
6499
6502
  }, t.once = function() {
@@ -6627,12 +6630,12 @@ class ie extends In {
6627
6630
  return this.baseTexture;
6628
6631
  }
6629
6632
  static get EMPTY() {
6630
- return ie._EMPTY || (ie._EMPTY = new ie(new ae()), Gi(ie._EMPTY), Gi(ie._EMPTY.baseTexture)), ie._EMPTY;
6633
+ return ie._EMPTY || (ie._EMPTY = new ie(new ae()), zi(ie._EMPTY), zi(ie._EMPTY.baseTexture)), ie._EMPTY;
6631
6634
  }
6632
6635
  static get WHITE() {
6633
6636
  if (!ie._WHITE) {
6634
6637
  const e = Q.ADAPTER.createCanvas(16, 16), r = e.getContext("2d");
6635
- e.width = 16, e.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16), ie._WHITE = new ie(ae.from(e)), Gi(ie._WHITE), Gi(ie._WHITE.baseTexture);
6638
+ e.width = 16, e.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16), ie._WHITE = new ie(ae.from(e)), zi(ie._WHITE), zi(ie._WHITE.baseTexture);
6636
6639
  }
6637
6640
  return ie._WHITE;
6638
6641
  }
@@ -6677,7 +6680,7 @@ class Mc {
6677
6680
  }
6678
6681
  getOptimalTexture(e, r, i = 1, n = we.NONE) {
6679
6682
  let s;
6680
- e = Math.ceil(e * i - 1e-6), r = Math.ceil(r * i - 1e-6), !this.enableFullScreen || e !== this._pixelsWidth || r !== this._pixelsHeight ? (e = dn(e), r = dn(r), s = ((e & 65535) << 16 | r & 65535) >>> 0, n > 1 && (s += n * 4294967296)) : s = n > 1 ? -n : -1, this.texturePool[s] || (this.texturePool[s] = []);
6683
+ e = Math.ceil(e * i - 1e-6), r = Math.ceil(r * i - 1e-6), !this.enableFullScreen || e !== this._pixelsWidth || r !== this._pixelsHeight ? (e = pn(e), r = pn(r), s = ((e & 65535) << 16 | r & 65535) >>> 0, n > 1 && (s += n * 4294967296)) : s = n > 1 ? -n : -1, this.texturePool[s] || (this.texturePool[s] = []);
6681
6684
  let a = this.texturePool[s].pop();
6682
6685
  return a || (a = this.createTexture(e, r, n)), a.filterPoolKey = s, a.setResolution(i), a;
6683
6686
  }
@@ -6771,7 +6774,7 @@ class kb {
6771
6774
  this.target = null, this.filters = null, this.renderTexture = null;
6772
6775
  }
6773
6776
  }
6774
- const zi = [new pe(), new pe(), new pe(), new pe()], ys = new Ue();
6777
+ const ji = [new pe(), new pe(), new pe(), new pe()], ys = new Ue();
6775
6778
  class Pc {
6776
6779
  constructor(e) {
6777
6780
  this.renderer = e, this.defaultFilterStack = [{}], this.texturePool = new Mc(), this.statePool = [], this.quad = new Ob(), this.quadUv = new Nb(), this.tempRect = new fe(), this.activeState = {}, this.globalUniforms = new ut({
@@ -6873,7 +6876,7 @@ class Pc {
6873
6876
  this.texturePool.setScreenSize(this.renderer.view);
6874
6877
  }
6875
6878
  transformAABB(e, r) {
6876
- const i = zi[0], n = zi[1], s = zi[2], a = zi[3];
6879
+ const i = ji[0], n = ji[1], s = ji[2], a = ji[3];
6877
6880
  i.set(r.left, r.top), n.set(r.left, r.bottom), s.set(r.right, r.top), a.set(r.right, r.bottom), e.apply(i, i), e.apply(n, n), e.apply(s, s), e.apply(a, a);
6878
6881
  const o = Math.min(i.x, n.x, s.x, a.x), u = Math.min(i.y, n.y, s.y, a.y), h = Math.max(i.x, n.x, s.x, a.x), d = Math.max(i.y, n.y, s.y, a.y);
6879
6882
  r.x = o, r.y = u, r.width = h - o, r.height = d - u;
@@ -7403,7 +7406,7 @@ class kc {
7403
7406
  this.renderer = null, this.maskStack = null;
7404
7407
  }
7405
7408
  }
7406
- const Ul = new Ue(), $l = [], Yi = class extends kc {
7409
+ const Ul = new Ue(), $l = [], Ki = class extends kc {
7407
7410
  constructor(t) {
7408
7411
  super(t), this.glConst = Q.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST;
7409
7412
  }
@@ -7425,14 +7428,14 @@ const Ul = new Ue(), $l = [], Yi = class extends kc {
7425
7428
  }
7426
7429
  testScissor(t) {
7427
7430
  const { maskObject: e } = t;
7428
- if (!e.isFastRect || !e.isFastRect() || Yi.isMatrixRotated(e.worldTransform) || Yi.isMatrixRotated(this.renderer.projection.transform))
7431
+ if (!e.isFastRect || !e.isFastRect() || Ki.isMatrixRotated(e.worldTransform) || Ki.isMatrixRotated(this.renderer.projection.transform))
7429
7432
  return !1;
7430
7433
  this.calcScissorRect(t);
7431
7434
  const r = t._scissorRectLocal;
7432
7435
  return r.width > 0 && r.height > 0;
7433
7436
  }
7434
7437
  roundFrameToPixels(t, e, r, i, n) {
7435
- Yi.isMatrixRotated(n) || (n = n ? Ul.copyFrom(n) : Ul.identity(), n.translate(-r.x, -r.y).scale(i.width / r.width, i.height / r.height).translate(i.x, i.y), this.renderer.filter.transformAABB(n, t), t.fit(i), t.x = Math.round(t.x * e), t.y = Math.round(t.y * e), t.width = Math.round(t.width * e), t.height = Math.round(t.height * e));
7438
+ Ki.isMatrixRotated(n) || (n = n ? Ul.copyFrom(n) : Ul.identity(), n.translate(-r.x, -r.y).scale(i.width / r.width, i.height / r.height).translate(i.x, i.y), this.renderer.filter.transformAABB(n, t), t.fit(i), t.x = Math.round(t.x * e), t.y = Math.round(t.y * e), t.width = Math.round(t.width * e), t.height = Math.round(t.height * e));
7436
7439
  }
7437
7440
  push(t) {
7438
7441
  t._scissorRectLocal || this.calcScissorRect(t);
@@ -7449,7 +7452,7 @@ const Ul = new Ue(), $l = [], Yi = class extends kc {
7449
7452
  this.renderer.renderTexture.current ? e = t.y : e = this.renderer.height - t.height - t.y, this.renderer.gl.scissor(t.x, e, t.width, t.height);
7450
7453
  }
7451
7454
  };
7452
- let Lc = Yi;
7455
+ let Lc = Ki;
7453
7456
  Lc.extension = {
7454
7457
  type: ee.RendererSystem,
7455
7458
  name: "scissor"
@@ -7839,7 +7842,7 @@ function Qb(t, e) {
7839
7842
  };
7840
7843
  }
7841
7844
  let Jb = 0;
7842
- const ji = { textureCount: 0, uboCount: 0 };
7845
+ const Hi = { textureCount: 0, uboCount: 0 };
7843
7846
  class jc {
7844
7847
  constructor(e) {
7845
7848
  this.destroyed = !1, this.renderer = e, this.systemCheck(), this.gl = null, this.shader = null, this.program = null, this.cache = {}, this._uboCache = {}, this.id = Jb++;
@@ -7854,7 +7857,7 @@ class jc {
7854
7857
  bind(e, r) {
7855
7858
  e.disposeRunner.add(this), e.uniforms.globals = this.renderer.globalUniforms;
7856
7859
  const i = e.program, n = i.glPrograms[this.renderer.CONTEXT_UID] || this.generateProgram(e);
7857
- return this.shader = e, this.program !== i && (this.program = i, this.gl.useProgram(n.program)), r || (ji.textureCount = 0, ji.uboCount = 0, this.syncUniformGroup(e.uniformGroup, ji)), n;
7860
+ return this.shader = e, this.program !== i && (this.program = i, this.gl.useProgram(n.program)), r || (Hi.textureCount = 0, Hi.uboCount = 0, this.syncUniformGroup(e.uniformGroup, Hi)), n;
7858
7861
  }
7859
7862
  setUniforms(e) {
7860
7863
  const r = this.shader.program, i = r.glPrograms[this.renderer.CONTEXT_UID];
@@ -7876,7 +7879,7 @@ class jc {
7876
7879
  if (!e.static || e.dirtyId !== 0 || !i.uniformGroups[e.id]) {
7877
7880
  e.dirtyId = 0;
7878
7881
  const n = i.uniformGroups[e.id] || this.createSyncBufferGroup(e, i, r);
7879
- e.buffer.update(), n(i.uniformData, e.uniforms, this.renderer, ji, e.buffer);
7882
+ e.buffer.update(), n(i.uniformData, e.uniforms, this.renderer, Hi, e.buffer);
7880
7883
  }
7881
7884
  this.renderer.buffer.bindBufferBase(e.buffer, i.uniformBufferBindings[r]);
7882
7885
  }
@@ -8062,9 +8065,9 @@ class o1 extends In {
8062
8065
  }), this._systemsHash = {};
8063
8066
  }
8064
8067
  }
8065
- const Ki = class {
8068
+ const Zi = class {
8066
8069
  constructor(t) {
8067
- this.renderer = t, this.count = 0, this.checkCount = 0, this.maxIdle = Ki.defaultMaxIdle, this.checkCountMax = Ki.defaultCheckCountMax, this.mode = Ki.defaultMode;
8070
+ this.renderer = t, this.count = 0, this.checkCount = 0, this.maxIdle = Zi.defaultMaxIdle, this.checkCountMax = Zi.defaultCheckCountMax, this.mode = Zi.defaultMode;
8068
8071
  }
8069
8072
  postrender() {
8070
8073
  this.renderer.objectRenderer.renderingToScreen && (this.count++, this.mode !== Ea.MANUAL && (this.checkCount++, this.checkCount > this.checkCountMax && (this.checkCount = 0, this.run())));
@@ -8093,7 +8096,7 @@ const Ki = class {
8093
8096
  this.renderer = null;
8094
8097
  }
8095
8098
  };
8096
- let nt = Ki;
8099
+ let nt = Zi;
8097
8100
  nt.defaultMode = Ea.AUTO;
8098
8101
  nt.defaultMaxIdle = 60 * 60;
8099
8102
  nt.defaultCheckCountMax = 60 * 10;
@@ -8294,7 +8297,7 @@ class Vc {
8294
8297
  const { gl: i } = this;
8295
8298
  if (e = e.castToBaseTexture(), e._glTextures[this.CONTEXT_UID] && (this.unbind(e), i.deleteTexture(e._glTextures[this.CONTEXT_UID].texture), e.off("dispose", this.destroyTexture, this), delete e._glTextures[this.CONTEXT_UID], !r)) {
8296
8299
  const n = this.managedTextures.indexOf(e);
8297
- n !== -1 && Wi(this.managedTextures, n, 1);
8300
+ n !== -1 && qi(this.managedTextures, n, 1);
8298
8301
  }
8299
8302
  }
8300
8303
  updateTextureStyle(e) {
@@ -8532,7 +8535,7 @@ Object.defineProperties(Q, {
8532
8535
  }
8533
8536
  }
8534
8537
  });
8535
- var gn = /* @__PURE__ */ ((t) => (t[t.INTERACTION = 50] = "INTERACTION", t[t.HIGH = 25] = "HIGH", t[t.NORMAL = 0] = "NORMAL", t[t.LOW = -25] = "LOW", t[t.UTILITY = -50] = "UTILITY", t))(gn || {});
8538
+ var vn = /* @__PURE__ */ ((t) => (t[t.INTERACTION = 50] = "INTERACTION", t[t.HIGH = 25] = "HIGH", t[t.NORMAL = 0] = "NORMAL", t[t.LOW = -25] = "LOW", t[t.UTILITY = -50] = "UTILITY", t))(vn || {});
8536
8539
  class Ts {
8537
8540
  constructor(e, r = null, i = 0, n = !1) {
8538
8541
  this.next = null, this.previous = null, this._destroyed = !1, this.fn = e, this.context = r, this.priority = i, this.once = n;
@@ -8569,10 +8572,10 @@ const je = class {
8569
8572
  _startIfPossible() {
8570
8573
  this.started ? this._requestIfNeeded() : this.autoStart && this.start();
8571
8574
  }
8572
- add(t, e, r = gn.NORMAL) {
8575
+ add(t, e, r = vn.NORMAL) {
8573
8576
  return this._addListener(new Ts(t, e, r));
8574
8577
  }
8575
- addOnce(t, e, r = gn.NORMAL) {
8578
+ addOnce(t, e, r = vn.NORMAL) {
8576
8579
  return this._addListener(new Ts(t, e, r, !0));
8577
8580
  }
8578
8581
  _addListener(t) {
@@ -8694,7 +8697,7 @@ class Wc {
8694
8697
  sharedTicker: !1
8695
8698
  }, e), Object.defineProperty(this, "ticker", {
8696
8699
  set(r) {
8697
- this._ticker && this._ticker.remove(this.render, this), this._ticker = r, r && r.add(this.render, this, gn.LOW);
8700
+ this._ticker && this._ticker.remove(this.render, this), this._ticker = r, r && r.add(this.render, this, vn.LOW);
8698
8701
  },
8699
8702
  get() {
8700
8703
  return this._ticker;
@@ -9137,7 +9140,7 @@ class _r extends Pt {
9137
9140
  return _r._EMPTY = _r._EMPTY ?? Q.ADAPTER.createCanvas(0, 0), _r._EMPTY;
9138
9141
  }
9139
9142
  }
9140
- const Zi = class extends Pt {
9143
+ const Qi = class extends Pt {
9141
9144
  constructor(t, e) {
9142
9145
  e = e || {}, super(Q.ADAPTER.createCanvas()), this._width = 0, this._height = 0, this.svg = t, this.scale = e.scale || 1, this._overrideWidth = e.width, this._overrideHeight = e.height, this._resolve = null, this._crossorigin = e.crossorigin, this._load = null, e.autoLoad !== !1 && this.load();
9143
9146
  }
@@ -9145,7 +9148,7 @@ const Zi = class extends Pt {
9145
9148
  return this._load ? this._load : (this._load = new Promise((t) => {
9146
9149
  if (this._resolve = () => {
9147
9150
  this.resize(this.source.width, this.source.height), t(this);
9148
- }, Zi.SVG_XML.test(this.svg.trim())) {
9151
+ }, Qi.SVG_XML.test(this.svg.trim())) {
9149
9152
  if (!btoa)
9150
9153
  throw new Error("Your browser doesn't support base64 conversions.");
9151
9154
  this.svg = `data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`;
@@ -9170,17 +9173,17 @@ const Zi = class extends Pt {
9170
9173
  };
9171
9174
  }
9172
9175
  static getSize(t) {
9173
- const e = Zi.SVG_SIZE.exec(t), r = {};
9176
+ const e = Qi.SVG_SIZE.exec(t), r = {};
9174
9177
  return e && (r[e[1]] = Math.round(parseFloat(e[3])), r[e[5]] = Math.round(parseFloat(e[7]))), r;
9175
9178
  }
9176
9179
  dispose() {
9177
9180
  super.dispose(), this._resolve = null, this._crossorigin = null;
9178
9181
  }
9179
9182
  static test(t, e) {
9180
- return e === "svg" || typeof t == "string" && t.startsWith("data:image/svg+xml") || typeof t == "string" && Zi.SVG_XML.test(t);
9183
+ return e === "svg" || typeof t == "string" && t.startsWith("data:image/svg+xml") || typeof t == "string" && Qi.SVG_XML.test(t);
9181
9184
  }
9182
9185
  };
9183
- let Ga = Zi;
9186
+ let Ga = Qi;
9184
9187
  Ga.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m;
9185
9188
  Ga.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;
9186
9189
  const ua = class extends Pt {
@@ -9845,8 +9848,8 @@ var nr = nr || {};
9845
9848
  nr.parse = function() {
9846
9849
  var t = { linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i, repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i, radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i, repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i, sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i, extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/, positionKeywords: /^(left|center|right|top|bottom)/i, pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/, percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/, emValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/, angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/, startCall: /^\(/, endCall: /^\)/, comma: /^,/, hexColor: /^\#([0-9a-fA-F]+)/, literalColor: /^([a-zA-Z]+)/, rgbColor: /^rgb/i, rgbaColor: /^rgba/i, number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/ }, e = "";
9847
9850
  function r(R) {
9848
- var L = new Error(e + ": " + R);
9849
- throw L.source = e, L;
9851
+ var B = new Error(e + ": " + R);
9852
+ throw B.source = e, B;
9850
9853
  }
9851
9854
  function i() {
9852
9855
  var R = n();
@@ -9858,18 +9861,18 @@ nr.parse = function() {
9858
9861
  function s() {
9859
9862
  return a("linear-gradient", t.linearGradient, u) || a("repeating-linear-gradient", t.repeatingLinearGradient, u) || a("radial-gradient", t.radialGradient, l) || a("repeating-radial-gradient", t.repeatingRadialGradient, l);
9860
9863
  }
9861
- function a(R, L, X) {
9862
- return o(L, function(M) {
9864
+ function a(R, B, X) {
9865
+ return o(B, function(M) {
9863
9866
  var F = X();
9864
- return F && (B(t.comma) || r("Missing comma before color stops")), { type: R, orientation: F, colorStops: _(x) };
9867
+ return F && (U(t.comma) || r("Missing comma before color stops")), { type: R, orientation: F, colorStops: _(x) };
9865
9868
  });
9866
9869
  }
9867
- function o(R, L) {
9868
- var X = B(R);
9870
+ function o(R, B) {
9871
+ var X = U(R);
9869
9872
  if (X) {
9870
- B(t.startCall) || r("Missing (");
9871
- var M = L(X);
9872
- return B(t.endCall) || r("Missing )"), M;
9873
+ U(t.startCall) || r("Missing (");
9874
+ var M = B(X);
9875
+ return U(t.endCall) || r("Missing )"), M;
9873
9876
  }
9874
9877
  }
9875
9878
  function u() {
@@ -9882,17 +9885,17 @@ nr.parse = function() {
9882
9885
  return C("angular", t.angleValue, 1);
9883
9886
  }
9884
9887
  function l() {
9885
- var R, L = c(), X;
9886
- return L && (R = [], R.push(L), X = e, B(t.comma) && (L = c(), L ? R.push(L) : e = X)), R;
9888
+ var R, B = c(), X;
9889
+ return B && (R = [], R.push(B), X = e, U(t.comma) && (B = c(), B ? R.push(B) : e = X)), R;
9887
9890
  }
9888
9891
  function c() {
9889
9892
  var R = f() || p();
9890
9893
  if (R)
9891
9894
  R.at = v();
9892
9895
  else {
9893
- var L = m();
9894
- if (L) {
9895
- R = L;
9896
+ var B = m();
9897
+ if (B) {
9898
+ R = B;
9896
9899
  var X = v();
9897
9900
  X && (R.at = X);
9898
9901
  } else {
@@ -9928,23 +9931,23 @@ nr.parse = function() {
9928
9931
  return { x: P(), y: P() };
9929
9932
  }
9930
9933
  function _(R) {
9931
- var L = R(), X = [];
9932
- if (L)
9933
- for (X.push(L); B(t.comma); )
9934
- L = R(), L ? X.push(L) : r("One extra comma");
9934
+ var B = R(), X = [];
9935
+ if (B)
9936
+ for (X.push(B); U(t.comma); )
9937
+ B = R(), B ? X.push(B) : r("One extra comma");
9935
9938
  return X;
9936
9939
  }
9937
9940
  function x() {
9938
- var R = b();
9941
+ var R = T();
9939
9942
  return R || r("Expected color definition"), R.length = P(), R;
9940
9943
  }
9941
- function b() {
9942
- return w() || A() || S() || T();
9943
- }
9944
9944
  function T() {
9945
- return C("literal", t.literalColor, 0);
9945
+ return b() || A() || S() || w();
9946
9946
  }
9947
9947
  function w() {
9948
+ return C("literal", t.literalColor, 0);
9949
+ }
9950
+ function b() {
9948
9951
  return C("hex", t.hexColor, 1);
9949
9952
  }
9950
9953
  function S() {
@@ -9958,25 +9961,25 @@ nr.parse = function() {
9958
9961
  });
9959
9962
  }
9960
9963
  function I() {
9961
- return B(t.number)[1];
9964
+ return U(t.number)[1];
9962
9965
  }
9963
9966
  function P() {
9964
- return C("%", t.percentageValue, 1) || U() || E();
9967
+ return C("%", t.percentageValue, 1) || k() || E();
9965
9968
  }
9966
- function U() {
9969
+ function k() {
9967
9970
  return C("position-keyword", t.positionKeywords, 1);
9968
9971
  }
9969
9972
  function E() {
9970
9973
  return C("px", t.pixelValue, 1) || C("em", t.emValue, 1);
9971
9974
  }
9972
- function C(R, L, X) {
9973
- var M = B(L);
9975
+ function C(R, B, X) {
9976
+ var M = U(B);
9974
9977
  if (M)
9975
9978
  return { type: R, value: M[X] };
9976
9979
  }
9977
- function B(R) {
9978
- var L, X;
9979
- return X = /^[\n\r\t\s]+/.exec(e), X && $(X[0].length), L = R.exec(e), L && $(L[0].length), L;
9980
+ function U(R) {
9981
+ var B, X;
9982
+ return X = /^[\n\r\t\s]+/.exec(e), X && $(X[0].length), B = R.exec(e), B && $(B[0].length), B;
9980
9983
  }
9981
9984
  function $(R) {
9982
9985
  e = e.substr(R);
@@ -10206,8 +10209,8 @@ const ja = class extends le {
10206
10209
  return this.uniforms.uMaxColors;
10207
10210
  }
10208
10211
  };
10209
- let Hi = ja;
10210
- Hi.LINEAR = 0, Hi.RADIAL = 1, Hi.CONIC = 2, Hi.defaults = { type: ja.LINEAR, stops: [{ offset: 0, color: 16711680, alpha: 1 }, { offset: 1, color: 255, alpha: 1 }], alpha: 1, angle: 90, maxColors: 0 };
10212
+ let Vi = ja;
10213
+ Vi.LINEAR = 0, Vi.RADIAL = 1, Vi.CONIC = 2, Vi.defaults = { type: ja.LINEAR, stops: [{ offset: 0, color: 16711680, alpha: 1 }, { offset: 1, color: 255, alpha: 1 }], alpha: 1, angle: 90, maxColors: 0 };
10211
10214
  var Y1 = `attribute vec2 aVertexPosition;
10212
10215
  attribute vec2 aTextureCoord;
10213
10216
 
@@ -11402,12 +11405,12 @@ void main(void) {
11402
11405
  gl_FragColor = contentColor + outlineColor;
11403
11406
  }
11404
11407
  `;
11405
- const Qi = class extends le {
11408
+ const Ji = class extends le {
11406
11409
  constructor(e = 1, r = 0, i = 0.1, n = 1, s = !1) {
11407
- super(bT, TT.replace(/\$\{angleStep\}/, Qi.getAngleStep(i))), this._thickness = 1, this._alpha = 1, this._knockout = !1, this.uniforms.uThickness = new Float32Array([0, 0]), this.uniforms.uColor = new Float32Array([0, 0, 0, 1]), this.uniforms.uAlpha = n, this.uniforms.uKnockout = s, Object.assign(this, { thickness: e, color: r, quality: i, alpha: n, knockout: s });
11410
+ super(bT, TT.replace(/\$\{angleStep\}/, Ji.getAngleStep(i))), this._thickness = 1, this._alpha = 1, this._knockout = !1, this.uniforms.uThickness = new Float32Array([0, 0]), this.uniforms.uColor = new Float32Array([0, 0, 0, 1]), this.uniforms.uAlpha = n, this.uniforms.uKnockout = s, Object.assign(this, { thickness: e, color: r, quality: i, alpha: n, knockout: s });
11408
11411
  }
11409
11412
  static getAngleStep(e) {
11410
- const r = Math.max(e * Qi.MAX_SAMPLES, Qi.MIN_SAMPLES);
11413
+ const r = Math.max(e * Ji.MAX_SAMPLES, Ji.MIN_SAMPLES);
11411
11414
  return (Math.PI * 2 / r).toFixed(7);
11412
11415
  }
11413
11416
  apply(e, r, i, n) {
@@ -11438,7 +11441,7 @@ const Qi = class extends le {
11438
11441
  this._thickness = e, this.padding = e;
11439
11442
  }
11440
11443
  };
11441
- let Yl = Qi;
11444
+ let Yl = Ji;
11442
11445
  Yl.MIN_SAMPLES = 1, Yl.MAX_SAMPLES = 100;
11443
11446
  var wT = `attribute vec2 aVertexPosition;
11444
11447
  attribute vec2 aTextureCoord;
@@ -12145,7 +12148,7 @@ const sr = (t) => {
12145
12148
  nightVisionFilter: t,
12146
12149
  vignetteFilter: r
12147
12150
  };
12148
- }, HT = D.forwardRef((t, e) => {
12151
+ }, HT = L.forwardRef((t, e) => {
12149
12152
  const r = V(null), i = V(null), {
12150
12153
  src: n,
12151
12154
  visible: s,
@@ -12169,16 +12172,16 @@ const sr = (t) => {
12169
12172
  temperatureFilter: y,
12170
12173
  sharpnessFilter: _,
12171
12174
  hueFilter: x,
12172
- blurFilter: b,
12173
- adjustmentFilter: T,
12174
- vignetteFilter: w,
12175
+ blurFilter: T,
12176
+ adjustmentFilter: w,
12177
+ vignetteFilter: b,
12175
12178
  noiseFilter: S
12176
12179
  // outlineFilter,
12177
12180
  } = sr(c), { nightVisionFilter: A } = jT();
12178
- return D.useEffect(() => () => {
12181
+ return L.useEffect(() => () => {
12179
12182
  console.log("PixiImageSprite unmounting");
12180
12183
  }, []), /* @__PURE__ */ Z.jsx(rr, { ...t, ref: e, children: /* @__PURE__ */ Z.jsx(Ae, { ref: i, children: /* @__PURE__ */ Z.jsx(
12181
- gi,
12184
+ vi,
12182
12185
  {
12183
12186
  image: n,
12184
12187
  width: h,
@@ -12193,13 +12196,13 @@ const sr = (t) => {
12193
12196
  y,
12194
12197
  _,
12195
12198
  x,
12196
- T,
12199
+ w,
12197
12200
  // conditionally add blur filter
12198
- ...m > 0 ? [b] : [],
12201
+ ...m > 0 ? [T] : [],
12199
12202
  // conditionally add night vision filter
12200
12203
  ...f === Ht.NightVision ? [A] : [],
12201
12204
  // conditionally add vignette filter
12202
- ...v > 0 ? [w] : [],
12205
+ ...v > 0 ? [b] : [],
12203
12206
  // conditionally add noise filter
12204
12207
  ...g > 0 ? [S] : []
12205
12208
  // conditionally add outline filter
@@ -12212,7 +12215,7 @@ HT.whyDidYouRender = {
12212
12215
  logOnDifferentValues: !0,
12213
12216
  customName: "ImageSprite"
12214
12217
  };
12215
- const vn = {
12218
+ const _n = {
12216
12219
  build(t) {
12217
12220
  const e = t.points;
12218
12221
  let r, i, n, s, a, o;
@@ -12246,8 +12249,8 @@ const vn = {
12246
12249
  }
12247
12250
  }
12248
12251
  for (let p = 1; p < u; p++) {
12249
- const m = Math.PI / 2 * (p / u), v = n + Math.cos(m) * a, g = s + Math.sin(m) * o, y = r + v, _ = r - v, x = i + g, b = i - g;
12250
- e[d++] = y, e[d++] = x, e[--l] = x, e[--l] = _, e[c++] = _, e[c++] = b, e[--f] = b, e[--f] = y;
12252
+ const m = Math.PI / 2 * (p / u), v = n + Math.cos(m) * a, g = s + Math.sin(m) * o, y = r + v, _ = r - v, x = i + g, T = i - g;
12253
+ e[d++] = y, e[d++] = x, e[--l] = x, e[--l] = _, e[c++] = _, e[c++] = T, e[--f] = T, e[--f] = y;
12251
12254
  }
12252
12255
  {
12253
12256
  const p = n, m = s + o, v = r + p, g = r - p, y = i + m, _ = i - m;
@@ -12330,10 +12333,10 @@ const mh = {
12330
12333
  }
12331
12334
  }, XT = {
12332
12335
  build(t) {
12333
- vn.build(t);
12336
+ _n.build(t);
12334
12337
  },
12335
12338
  triangulate(t, e) {
12336
- vn.triangulate(t, e);
12339
+ _n.triangulate(t, e);
12337
12340
  }
12338
12341
  };
12339
12342
  var rt = /* @__PURE__ */ ((t) => (t.MITER = "miter", t.BEVEL = "bevel", t.ROUND = "round", t))(rt || {}), Wt = /* @__PURE__ */ ((t) => (t.BUTT = "butt", t.ROUND = "round", t.SQUARE = "square", t))(Wt || {});
@@ -12355,21 +12358,21 @@ class Ql {
12355
12358
  const o = a[a.length - 2], h = a[a.length - 1] - r, d = o - e, l = n - r, c = i - e, f = Math.abs(h * c - d * l);
12356
12359
  if (f < 1e-8 || s === 0)
12357
12360
  return (a[a.length - 2] !== e || a[a.length - 1] !== r) && a.push(e, r), null;
12358
- const p = h * h + d * d, m = l * l + c * c, v = h * l + d * c, g = s * Math.sqrt(p) / f, y = s * Math.sqrt(m) / f, _ = g * v / p, x = y * v / m, b = g * c + y * d, T = g * l + y * h, w = d * (y + _), S = h * (y + _), A = c * (g + x), I = l * (g + x), P = Math.atan2(S - T, w - b), U = Math.atan2(I - T, A - b);
12361
+ const p = h * h + d * d, m = l * l + c * c, v = h * l + d * c, g = s * Math.sqrt(p) / f, y = s * Math.sqrt(m) / f, _ = g * v / p, x = y * v / m, T = g * c + y * d, w = g * l + y * h, b = d * (y + _), S = h * (y + _), A = c * (g + x), I = l * (g + x), P = Math.atan2(S - w, b - T), k = Math.atan2(I - w, A - T);
12359
12362
  return {
12360
- cx: b + e,
12361
- cy: T + r,
12363
+ cx: T + e,
12364
+ cy: w + r,
12362
12365
  radius: s,
12363
12366
  startAngle: P,
12364
- endAngle: U,
12367
+ endAngle: k,
12365
12368
  anticlockwise: d * l > c * h
12366
12369
  };
12367
12370
  }
12368
12371
  static arc(e, r, i, n, s, a, o, u, h) {
12369
- const d = o - a, l = Rr._segmentsCount(Math.abs(d) * s, Math.ceil(Math.abs(d) / mn) * 40), c = d / (l * 2), f = c * 2, p = Math.cos(c), m = Math.sin(c), v = l - 1, g = v % 1 / v;
12372
+ const d = o - a, l = Rr._segmentsCount(Math.abs(d) * s, Math.ceil(Math.abs(d) / gn) * 40), c = d / (l * 2), f = c * 2, p = Math.cos(c), m = Math.sin(c), v = l - 1, g = v % 1 / v;
12370
12373
  for (let y = 0; y <= v; ++y) {
12371
- const _ = y + g * y, x = c + a + f * _, b = Math.cos(x), T = -Math.sin(x);
12372
- h.push((p * b + m * T) * s + i, (p * -T + m * b) * s + n);
12374
+ const _ = y + g * y, x = c + a + f * _, T = Math.cos(x), w = -Math.sin(x);
12375
+ h.push((p * T + m * w) * s + i, (p * -w + m * T) * s + n);
12373
12376
  }
12374
12377
  }
12375
12378
  }
@@ -12389,9 +12392,9 @@ class WT {
12389
12392
  }
12390
12393
  class Ha {
12391
12394
  static curveLength(e, r, i, n, s, a, o, u) {
12392
- let d = 0, l = 0, c = 0, f = 0, p = 0, m = 0, v = 0, g = 0, y = 0, _ = 0, x = 0, b = e, T = r;
12393
- for (let w = 1; w <= 10; ++w)
12394
- l = w / 10, c = l * l, f = c * l, p = 1 - l, m = p * p, v = m * p, g = v * e + 3 * m * l * i + 3 * p * c * s + f * o, y = v * r + 3 * m * l * n + 3 * p * c * a + f * u, _ = b - g, x = T - y, b = g, T = y, d += Math.sqrt(_ * _ + x * x);
12395
+ let d = 0, l = 0, c = 0, f = 0, p = 0, m = 0, v = 0, g = 0, y = 0, _ = 0, x = 0, T = e, w = r;
12396
+ for (let b = 1; b <= 10; ++b)
12397
+ l = b / 10, c = l * l, f = c * l, p = 1 - l, m = p * p, v = m * p, g = v * e + 3 * m * l * i + 3 * p * c * s + f * o, y = v * r + 3 * m * l * n + 3 * p * c * a + f * u, _ = T - g, x = w - y, T = g, w = y, d += Math.sqrt(_ * _ + x * x);
12395
12398
  return d;
12396
12399
  }
12397
12400
  static curveTo(e, r, i, n, s, a, o) {
@@ -12439,24 +12442,24 @@ function qT(t, e) {
12439
12442
  const s = t.lineStyle, a = new pe(i[0], i[1]), o = new pe(i[i.length - 2], i[i.length - 1]), u = r.type !== Pe.POLY || r.closeStroke, h = Math.abs(a.x - o.x) < n && Math.abs(a.y - o.y) < n;
12440
12443
  if (u) {
12441
12444
  i = i.slice(), h && (i.pop(), i.pop(), o.set(i[i.length - 2], i[i.length - 1]));
12442
- const R = (a.x + o.x) * 0.5, L = (o.y + a.y) * 0.5;
12443
- i.unshift(R, L), i.push(R, L);
12445
+ const R = (a.x + o.x) * 0.5, B = (o.y + a.y) * 0.5;
12446
+ i.unshift(R, B), i.push(R, B);
12444
12447
  }
12445
12448
  const d = e.points, l = i.length / 2;
12446
12449
  let c = i.length;
12447
12450
  const f = d.length / 2, p = s.width / 2, m = p * p, v = s.miterLimit * s.miterLimit;
12448
- let g = i[0], y = i[1], _ = i[2], x = i[3], b = 0, T = 0, w = -(y - x), S = g - _, A = 0, I = 0, P = Math.sqrt(w * w + S * S);
12449
- w /= P, S /= P, w *= p, S *= p;
12450
- const U = s.alignment, E = (1 - U) * 2, C = U * 2;
12451
- u || (s.cap === Wt.ROUND ? c += Dt(g - w * (E - C) * 0.5, y - S * (E - C) * 0.5, g - w * E, y - S * E, g + w * C, y + S * C, d, !0) + 2 : s.cap === Wt.SQUARE && (c += Jl(g, y, w, S, E, C, !0, d))), d.push(g - w * E, y - S * E, g + w * C, y + S * C);
12451
+ let g = i[0], y = i[1], _ = i[2], x = i[3], T = 0, w = 0, b = -(y - x), S = g - _, A = 0, I = 0, P = Math.sqrt(b * b + S * S);
12452
+ b /= P, S /= P, b *= p, S *= p;
12453
+ const k = s.alignment, E = (1 - k) * 2, C = k * 2;
12454
+ u || (s.cap === Wt.ROUND ? c += Dt(g - b * (E - C) * 0.5, y - S * (E - C) * 0.5, g - b * E, y - S * E, g + b * C, y + S * C, d, !0) + 2 : s.cap === Wt.SQUARE && (c += Jl(g, y, b, S, E, C, !0, d))), d.push(g - b * E, y - S * E, g + b * C, y + S * C);
12452
12455
  for (let R = 1; R < l - 1; ++R) {
12453
- g = i[(R - 1) * 2], y = i[(R - 1) * 2 + 1], _ = i[R * 2], x = i[R * 2 + 1], b = i[(R + 1) * 2], T = i[(R + 1) * 2 + 1], w = -(y - x), S = g - _, P = Math.sqrt(w * w + S * S), w /= P, S /= P, w *= p, S *= p, A = -(x - T), I = _ - b, P = Math.sqrt(A * A + I * I), A /= P, I /= P, A *= p, I *= p;
12454
- const L = _ - g, X = y - x, M = _ - b, F = T - x, z = L * M + X * F, H = X * M - F * L, W = H < 0;
12456
+ g = i[(R - 1) * 2], y = i[(R - 1) * 2 + 1], _ = i[R * 2], x = i[R * 2 + 1], T = i[(R + 1) * 2], w = i[(R + 1) * 2 + 1], b = -(y - x), S = g - _, P = Math.sqrt(b * b + S * S), b /= P, S /= P, b *= p, S *= p, A = -(x - w), I = _ - T, P = Math.sqrt(A * A + I * I), A /= P, I /= P, A *= p, I *= p;
12457
+ const B = _ - g, X = y - x, M = _ - T, F = w - x, z = B * M + X * F, H = X * M - F * B, W = H < 0;
12455
12458
  if (Math.abs(H) < 1e-3 * Math.abs(z)) {
12456
- d.push(_ - w * E, x - S * E, _ + w * C, x + S * C), z >= 0 && (s.join === rt.ROUND ? c += Dt(_, x, _ - w * E, x - S * E, _ - A * E, x - I * E, d, !1) + 4 : c += 2, d.push(_ - A * C, x - I * C, _ + A * E, x + I * E));
12459
+ d.push(_ - b * E, x - S * E, _ + b * C, x + S * C), z >= 0 && (s.join === rt.ROUND ? c += Dt(_, x, _ - b * E, x - S * E, _ - A * E, x - I * E, d, !1) + 4 : c += 2, d.push(_ - A * C, x - I * C, _ + A * E, x + I * E));
12457
12460
  continue;
12458
12461
  }
12459
- const re = (-w + g) * (-S + x) - (-w + _) * (-S + y), ne = (-A + b) * (-I + x) - (-A + _) * (-I + T), oe = (L * ne - M * re) / H, de = (F * re - X * ne) / H, ue = (oe - _) * (oe - _) + (de - x) * (de - x), G = _ + (oe - _) * E, q = x + (de - x) * E, Y = _ - (oe - _) * C, he = x - (de - x) * C, Fe = Math.min(L * L + X * X, M * M + F * F), K = W ? E : C, me = Fe + K * K * m, Ve = ue <= me;
12462
+ const re = (-b + g) * (-S + x) - (-b + _) * (-S + y), ne = (-A + T) * (-I + x) - (-A + _) * (-I + w), oe = (B * ne - M * re) / H, de = (F * re - X * ne) / H, ue = (oe - _) * (oe - _) + (de - x) * (de - x), G = _ + (oe - _) * E, q = x + (de - x) * E, Y = _ - (oe - _) * C, he = x - (de - x) * C, Fe = Math.min(B * B + X * X, M * M + F * F), K = W ? E : C, me = Fe + K * K * m, Ve = ue <= me;
12460
12463
  let Je = s.join;
12461
12464
  if (Je === rt.MITER && ue / m > v && (Je = rt.BEVEL), Ve)
12462
12465
  switch (Je) {
@@ -12465,32 +12468,32 @@ function qT(t, e) {
12465
12468
  break;
12466
12469
  }
12467
12470
  case rt.BEVEL: {
12468
- W ? d.push(G, q, _ + w * C, x + S * C, G, q, _ + A * C, x + I * C) : d.push(_ - w * E, x - S * E, Y, he, _ - A * E, x - I * E, Y, he), c += 2;
12471
+ W ? d.push(G, q, _ + b * C, x + S * C, G, q, _ + A * C, x + I * C) : d.push(_ - b * E, x - S * E, Y, he, _ - A * E, x - I * E, Y, he), c += 2;
12469
12472
  break;
12470
12473
  }
12471
12474
  case rt.ROUND: {
12472
- W ? (d.push(G, q, _ + w * C, x + S * C), c += Dt(_, x, _ + w * C, x + S * C, _ + A * C, x + I * C, d, !0) + 4, d.push(G, q, _ + A * C, x + I * C)) : (d.push(_ - w * E, x - S * E, Y, he), c += Dt(_, x, _ - w * E, x - S * E, _ - A * E, x - I * E, d, !1) + 4, d.push(_ - A * E, x - I * E, Y, he));
12475
+ W ? (d.push(G, q, _ + b * C, x + S * C), c += Dt(_, x, _ + b * C, x + S * C, _ + A * C, x + I * C, d, !0) + 4, d.push(G, q, _ + A * C, x + I * C)) : (d.push(_ - b * E, x - S * E, Y, he), c += Dt(_, x, _ - b * E, x - S * E, _ - A * E, x - I * E, d, !1) + 4, d.push(_ - A * E, x - I * E, Y, he));
12473
12476
  break;
12474
12477
  }
12475
12478
  }
12476
12479
  else {
12477
- switch (d.push(_ - w * E, x - S * E, _ + w * C, x + S * C), Je) {
12480
+ switch (d.push(_ - b * E, x - S * E, _ + b * C, x + S * C), Je) {
12478
12481
  case rt.MITER: {
12479
12482
  W ? d.push(Y, he, Y, he) : d.push(G, q, G, q), c += 2;
12480
12483
  break;
12481
12484
  }
12482
12485
  case rt.ROUND: {
12483
- W ? c += Dt(_, x, _ + w * C, x + S * C, _ + A * C, x + I * C, d, !0) + 2 : c += Dt(_, x, _ - w * E, x - S * E, _ - A * E, x - I * E, d, !1) + 2;
12486
+ W ? c += Dt(_, x, _ + b * C, x + S * C, _ + A * C, x + I * C, d, !0) + 2 : c += Dt(_, x, _ - b * E, x - S * E, _ - A * E, x - I * E, d, !1) + 2;
12484
12487
  break;
12485
12488
  }
12486
12489
  }
12487
12490
  d.push(_ - A * E, x - I * E, _ + A * C, x + I * C), c += 2;
12488
12491
  }
12489
12492
  }
12490
- g = i[(l - 2) * 2], y = i[(l - 2) * 2 + 1], _ = i[(l - 1) * 2], x = i[(l - 1) * 2 + 1], w = -(y - x), S = g - _, P = Math.sqrt(w * w + S * S), w /= P, S /= P, w *= p, S *= p, d.push(_ - w * E, x - S * E, _ + w * C, x + S * C), u || (s.cap === Wt.ROUND ? c += Dt(_ - w * (E - C) * 0.5, x - S * (E - C) * 0.5, _ - w * E, x - S * E, _ + w * C, x + S * C, d, !1) + 2 : s.cap === Wt.SQUARE && (c += Jl(_, x, w, S, E, C, !1, d)));
12491
- const B = e.indices, $ = Rr.epsilon * Rr.epsilon;
12493
+ g = i[(l - 2) * 2], y = i[(l - 2) * 2 + 1], _ = i[(l - 1) * 2], x = i[(l - 1) * 2 + 1], b = -(y - x), S = g - _, P = Math.sqrt(b * b + S * S), b /= P, S /= P, b *= p, S *= p, d.push(_ - b * E, x - S * E, _ + b * C, x + S * C), u || (s.cap === Wt.ROUND ? c += Dt(_ - b * (E - C) * 0.5, x - S * (E - C) * 0.5, _ - b * E, x - S * E, _ + b * C, x + S * C, d, !1) + 2 : s.cap === Wt.SQUARE && (c += Jl(_, x, b, S, E, C, !1, d)));
12494
+ const U = e.indices, $ = Rr.epsilon * Rr.epsilon;
12492
12495
  for (let R = f; R < c + f - 2; ++R)
12493
- g = d[R * 2], y = d[R * 2 + 1], _ = d[(R + 1) * 2], x = d[(R + 1) * 2 + 1], b = d[(R + 2) * 2], T = d[(R + 2) * 2 + 1], !(Math.abs(g * (x - T) + _ * (T - y) + b * (y - x)) < $) && B.push(R, R + 1, R + 2);
12496
+ g = d[R * 2], y = d[R * 2 + 1], _ = d[(R + 1) * 2], x = d[(R + 1) * 2 + 1], T = d[(R + 2) * 2], w = d[(R + 2) * 2 + 1], !(Math.abs(g * (x - w) + _ * (w - y) + T * (y - x)) < $) && U.push(R, R + 1, R + 2);
12494
12497
  }
12495
12498
  function YT(t, e) {
12496
12499
  let r = 0;
@@ -12522,11 +12525,11 @@ class Va {
12522
12525
  }
12523
12526
  const As = {
12524
12527
  [Pe.POLY]: mh,
12525
- [Pe.CIRC]: vn,
12526
- [Pe.ELIP]: vn,
12528
+ [Pe.CIRC]: _n,
12529
+ [Pe.ELIP]: _n,
12527
12530
  [Pe.RECT]: VT,
12528
12531
  [Pe.RREC]: XT
12529
- }, tu = [], Vi = [];
12532
+ }, tu = [], Xi = [];
12530
12533
  class da {
12531
12534
  constructor() {
12532
12535
  this.minX = 1 / 0, this.minY = 1 / 0, this.maxX = -1 / 0, this.maxY = -1 / 0, this.rect = null, this.updateID = -1;
@@ -12574,8 +12577,8 @@ class da {
12574
12577
  const o = e.a, u = e.b, h = e.c, d = e.d, l = e.tx, c = e.ty;
12575
12578
  let f = this.minX, p = this.minY, m = this.maxX, v = this.maxY;
12576
12579
  for (let g = i; g < n; g += 2) {
12577
- const y = r[g], _ = r[g + 1], x = o * y + h * _ + l, b = d * _ + u * y + c;
12578
- f = Math.min(f, x - s), m = Math.max(m, x + s), p = Math.min(p, b - a), v = Math.max(v, b + a);
12580
+ const y = r[g], _ = r[g + 1], x = o * y + h * _ + l, T = d * _ + u * y + c;
12581
+ f = Math.min(f, x - s), m = Math.max(m, x + s), p = Math.min(p, T - a), v = Math.max(v, T + a);
12579
12582
  }
12580
12583
  this.minX = f, this.minY = p, this.maxX = m, this.maxY = v;
12581
12584
  }
@@ -12802,7 +12805,7 @@ const pa = class extends Mr {
12802
12805
  if (e < 0 || e >= this.children.length)
12803
12806
  throw new Error(`The index ${e} supplied is out of bounds ${this.children.length}`);
12804
12807
  const r = this.getChildIndex(t);
12805
- Wi(this.children, r, 1), this.children.splice(e, 0, t), this.onChildrenChange(e);
12808
+ qi(this.children, r, 1), this.children.splice(e, 0, t), this.onChildrenChange(e);
12806
12809
  }
12807
12810
  getChildAt(t) {
12808
12811
  if (t < 0 || t >= this.children.length)
@@ -12817,13 +12820,13 @@ const pa = class extends Mr {
12817
12820
  const e = t[0], r = this.children.indexOf(e);
12818
12821
  if (r === -1)
12819
12822
  return null;
12820
- e.parent = null, e.transform._parentID = -1, Wi(this.children, r, 1), this._boundsID++, this.onChildrenChange(r), e.emit("removed", this), this.emit("childRemoved", e, this, r);
12823
+ e.parent = null, e.transform._parentID = -1, qi(this.children, r, 1), this._boundsID++, this.onChildrenChange(r), e.emit("removed", this), this.emit("childRemoved", e, this, r);
12821
12824
  }
12822
12825
  return t[0];
12823
12826
  }
12824
12827
  removeChildAt(t) {
12825
12828
  const e = this.getChildAt(t);
12826
- return e.parent = null, e.transform._parentID = -1, Wi(this.children, t, 1), this._boundsID++, this.onChildrenChange(t), e.emit("removed", this), this.emit("childRemoved", e, this, t), e;
12829
+ return e.parent = null, e.transform._parentID = -1, qi(this.children, t, 1), this._boundsID++, this.onChildrenChange(t), e.emit("removed", this), this.emit("childRemoved", e, this, t), e;
12827
12830
  }
12828
12831
  removeChildren(t = 0, e = this.children.length) {
12829
12832
  const r = t, i = e, n = i - r;
@@ -12963,12 +12966,12 @@ Object.defineProperties(Q, {
12963
12966
  }
12964
12967
  }
12965
12968
  });
12966
- class _n {
12969
+ class yn {
12967
12970
  constructor(e, r = null, i = null, n = null) {
12968
12971
  this.points = [], this.holes = [], this.shape = e, this.lineStyle = i, this.fillStyle = r, this.matrix = n, this.type = e.type;
12969
12972
  }
12970
12973
  clone() {
12971
- return new _n(this.shape, this.fillStyle, this.lineStyle, this.matrix);
12974
+ return new yn(this.shape, this.fillStyle, this.lineStyle, this.matrix);
12972
12975
  }
12973
12976
  destroy() {
12974
12977
  this.shape = null, this.holes.length = 0, this.holes = null, this.points.length = 0, this.points = null, this.lineStyle = null, this.fillStyle = null;
@@ -12984,7 +12987,7 @@ const hr = new pe(), gh = class extends vc {
12984
12987
  invalidate() {
12985
12988
  this.boundsDirty = -1, this.dirty++, this.batchDirty++, this.shapeIndex = 0, this.points.length = 0, this.colors.length = 0, this.uvs.length = 0, this.indices.length = 0, this.textureIds.length = 0;
12986
12989
  for (let t = 0; t < this.drawCalls.length; t++)
12987
- this.drawCalls[t].texArray.clear(), Vi.push(this.drawCalls[t]);
12990
+ this.drawCalls[t].texArray.clear(), Xi.push(this.drawCalls[t]);
12988
12991
  this.drawCalls.length = 0;
12989
12992
  for (let t = 0; t < this.batches.length; t++) {
12990
12993
  const e = this.batches[t];
@@ -12996,13 +12999,13 @@ const hr = new pe(), gh = class extends vc {
12996
12999
  return this.graphicsData.length > 0 && (this.invalidate(), this.clearDirty++, this.graphicsData.length = 0), this;
12997
13000
  }
12998
13001
  drawShape(t, e = null, r = null, i = null) {
12999
- const n = new _n(t, e, r, i);
13002
+ const n = new yn(t, e, r, i);
13000
13003
  return this.graphicsData.push(n), this.dirty++, this;
13001
13004
  }
13002
13005
  drawHole(t, e = null) {
13003
13006
  if (!this.graphicsData.length)
13004
13007
  return null;
13005
- const r = new _n(t, null, null, e), i = this.graphicsData[this.graphicsData.length - 1];
13008
+ const r = new yn(t, null, null, e), i = this.graphicsData[this.graphicsData.length - 1];
13006
13009
  return r.lineStyle = i.lineStyle, i.holes.push(r), this.dirty++, this;
13007
13010
  }
13008
13011
  destroy() {
@@ -13099,16 +13102,16 @@ const hr = new pe(), gh = class extends vc {
13099
13102
  buildDrawCalls() {
13100
13103
  let t = ++ae._globalBatch;
13101
13104
  for (let d = 0; d < this.drawCalls.length; d++)
13102
- this.drawCalls[d].texArray.clear(), Vi.push(this.drawCalls[d]);
13105
+ this.drawCalls[d].texArray.clear(), Xi.push(this.drawCalls[d]);
13103
13106
  this.drawCalls.length = 0;
13104
13107
  const e = this.colors, r = this.textureIds;
13105
- let i = Vi.pop();
13108
+ let i = Xi.pop();
13106
13109
  i || (i = new ia(), i.texArray = new sa()), i.texArray.count = 0, i.start = 0, i.size = 0, i.type = Rt.TRIANGLES;
13107
13110
  let n = 0, s = null, a = 0, o = !1, u = Rt.TRIANGLES, h = 0;
13108
13111
  this.drawCalls.push(i);
13109
13112
  for (let d = 0; d < this.batches.length; d++) {
13110
13113
  const l = this.batches[d], c = 8, f = l.style, p = f.texture.baseTexture;
13111
- o !== !!f.native && (o = !!f.native, u = o ? Rt.LINES : Rt.TRIANGLES, s = null, n = c, t++), s !== p && (s = p, p._batchEnabled !== t && (n === c && (t++, n = 0, i.size > 0 && (i = Vi.pop(), i || (i = new ia(), i.texArray = new sa()), this.drawCalls.push(i)), i.start = h, i.size = 0, i.texArray.count = 0, i.type = u), p.touched = 1, p._batchEnabled = t, p._batchLocation = n, p.wrapMode = oi.REPEAT, i.texArray.elements[i.texArray.count++] = p, n++)), i.size += l.size, h += l.size, a = p._batchLocation, this.addColors(e, f.color, f.alpha, l.attribSize, l.attribStart), this.addTextureIds(r, a, l.attribSize, l.attribStart);
13114
+ o !== !!f.native && (o = !!f.native, u = o ? Rt.LINES : Rt.TRIANGLES, s = null, n = c, t++), s !== p && (s = p, p._batchEnabled !== t && (n === c && (t++, n = 0, i.size > 0 && (i = Xi.pop(), i || (i = new ia(), i.texArray = new sa()), this.drawCalls.push(i)), i.start = h, i.size = 0, i.texArray.count = 0, i.type = u), p.touched = 1, p._batchEnabled = t, p._batchLocation = n, p.wrapMode = oi.REPEAT, i.texArray.elements[i.texArray.count++] = p, n++)), i.size += l.size, h += l.size, a = p._batchLocation, this.addColors(e, f.color, f.alpha, l.attribSize, l.attribStart), this.addTextureIds(r, a, l.attribSize, l.attribStart);
13112
13115
  }
13113
13116
  ae._globalBatch = t, this.packAttributes();
13114
13117
  }
@@ -13207,7 +13210,7 @@ class Xa extends Un {
13207
13210
  super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1;
13208
13211
  }
13209
13212
  }
13210
- const Es = {}, Ji = class extends Pr {
13213
+ const Es = {}, en = class extends Pr {
13211
13214
  constructor(t = null) {
13212
13215
  super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new Un(), this._lineStyle = new Xa(), this._matrix = null, this._holeMode = !1, this.state = On.for2d(), this._geometry = t || new vh(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new Ne(16777215), this.blendMode = j.NORMAL;
13213
13216
  }
@@ -13215,7 +13218,7 @@ const Es = {}, Ji = class extends Pr {
13215
13218
  return this._geometry;
13216
13219
  }
13217
13220
  clone() {
13218
- return this.finishPoly(), new Ji(this._geometry);
13221
+ return this.finishPoly(), new en(this._geometry);
13219
13222
  }
13220
13223
  set blendMode(t) {
13221
13224
  this.state.blendMode = t;
@@ -13295,7 +13298,7 @@ const Es = {}, Ji = class extends Pr {
13295
13298
  arc(t, e, r, i, n, s = !1) {
13296
13299
  if (i === n)
13297
13300
  return this;
13298
- if (!s && n <= i ? n += mn : s && i <= n && (i += mn), n - i === 0)
13301
+ if (!s && n <= i ? n += gn : s && i <= n && (i += gn), n - i === 0)
13299
13302
  return this;
13300
13303
  const o = t + Math.cos(i) * r, u = e + Math.sin(i) * r, h = this._geometry.closePointEps;
13301
13304
  let d = this.currentPath ? this.currentPath.points : null;
@@ -13412,7 +13415,7 @@ const Es = {}, Ji = class extends Pr {
13412
13415
  translationMatrix: new Ue(),
13413
13416
  default: ut.from({ uSamplers: n }, !0)
13414
13417
  }, a = t.plugins[r]._shader.program;
13415
- Es[r] = new Ti(a, s);
13418
+ Es[r] = new wi(a, s);
13416
13419
  }
13417
13420
  e = Es[r];
13418
13421
  }
@@ -13427,7 +13430,7 @@ const Es = {}, Ji = class extends Pr {
13427
13430
  this._bounds.addFrame(this.transform, e, r, i, n);
13428
13431
  }
13429
13432
  containsPoint(t) {
13430
- return this.worldTransform.applyInverse(t, Ji._TEMP_POINT), this._geometry.containsPoint(Ji._TEMP_POINT);
13433
+ return this.worldTransform.applyInverse(t, en._TEMP_POINT), this._geometry.containsPoint(en._TEMP_POINT);
13431
13434
  }
13432
13435
  calculateTints() {
13433
13436
  if (this.batchTint !== this.tint) {
@@ -13467,7 +13470,7 @@ const Es = {}, Ji = class extends Pr {
13467
13470
  this._geometry.refCount--, this._geometry.refCount === 0 && this._geometry.dispose(), this._matrix = null, this.currentPath = null, this._lineStyle.destroy(), this._lineStyle = null, this._fillStyle.destroy(), this._fillStyle = null, this._geometry = null, this.shader = null, this.vertexData = null, this.batches.length = 0, this.batches = null, super.destroy(t);
13468
13471
  }
13469
13472
  };
13470
- let Wa = Ji;
13473
+ let Wa = en;
13471
13474
  Wa.curves = Rr;
13472
13475
  Wa._TEMP_POINT = new pe();
13473
13476
  var JT = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ma = {}, ew = {
@@ -13610,15 +13613,15 @@ var JT = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
13610
13613
  });
13611
13614
  })(ew);
13612
13615
  const tw = /^\s+/, rw = /\s+$/;
13613
- function k(t, e) {
13614
- if (t = t || "", e = e || {}, t instanceof k)
13616
+ function D(t, e) {
13617
+ if (t = t || "", e = e || {}, t instanceof D)
13615
13618
  return t;
13616
- if (!(this instanceof k))
13617
- return new k(t, e);
13619
+ if (!(this instanceof D))
13620
+ return new D(t, e);
13618
13621
  var r = iw(t);
13619
13622
  this._originalInput = t, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = e.format || r.format, this._gradientType = e.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
13620
13623
  }
13621
- k.prototype = {
13624
+ D.prototype = {
13622
13625
  isDark: function() {
13623
13626
  return this.getBrightness() < 128;
13624
13627
  },
@@ -13704,7 +13707,7 @@ k.prototype = {
13704
13707
  toFilter: function(t) {
13705
13708
  var e = "#" + su(this._r, this._g, this._b, this._a), r = e, i = this._gradientType ? "GradientType = 1, " : "";
13706
13709
  if (t) {
13707
- var n = k(t);
13710
+ var n = D(t);
13708
13711
  r = "#" + su(n._r, n._g, n._b, n._a);
13709
13712
  }
13710
13713
  return "progid:DXImageTransform.Microsoft.gradient(" + i + "startColorstr=" + e + ",endColorstr=" + r + ")";
@@ -13716,7 +13719,7 @@ k.prototype = {
13716
13719
  return n ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (r = this.toRgbString()), t === "prgb" && (r = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (r = this.toHexString()), t === "hex3" && (r = this.toHexString(!0)), t === "hex4" && (r = this.toHex8String(!0)), t === "hex8" && (r = this.toHex8String()), t === "name" && (r = this.toName()), t === "hsl" && (r = this.toHslString()), t === "hsv" && (r = this.toHsvString()), r || this.toHexString());
13717
13720
  },
13718
13721
  clone: function() {
13719
- return k(this.toString());
13722
+ return D(this.toString());
13720
13723
  },
13721
13724
  _applyModification: function(t, e) {
13722
13725
  var r = t.apply(null, [this].concat([].slice.call(e)));
@@ -13769,14 +13772,14 @@ k.prototype = {
13769
13772
  return this._applyCombination(au, [4]);
13770
13773
  }
13771
13774
  };
13772
- k.fromRatio = function(t, e) {
13775
+ D.fromRatio = function(t, e) {
13773
13776
  if (typeof t == "object") {
13774
13777
  var r = {};
13775
13778
  for (var i in t)
13776
13779
  t.hasOwnProperty(i) && (i === "a" ? r[i] = t[i] : r[i] = Yr(t[i]));
13777
13780
  t = r;
13778
13781
  }
13779
- return k(t, e);
13782
+ return D(t, e);
13780
13783
  };
13781
13784
  function iw(t) {
13782
13785
  var e = { r: 0, g: 0, b: 0 }, r = 1, i = null, n = null, s = null, a = !1, o = !1;
@@ -13884,11 +13887,11 @@ function su(t, e, r, i) {
13884
13887
  ];
13885
13888
  return n.join("");
13886
13889
  }
13887
- k.equals = function(t, e) {
13888
- return !t || !e ? !1 : k(t).toRgbString() == k(e).toRgbString();
13890
+ D.equals = function(t, e) {
13891
+ return !t || !e ? !1 : D(t).toRgbString() == D(e).toRgbString();
13889
13892
  };
13890
- k.random = function() {
13891
- return k.fromRatio({
13893
+ D.random = function() {
13894
+ return D.fromRatio({
13892
13895
  r: Math.random(),
13893
13896
  g: Math.random(),
13894
13897
  b: Math.random()
@@ -13896,84 +13899,84 @@ k.random = function() {
13896
13899
  };
13897
13900
  function lw(t, e) {
13898
13901
  e = e === 0 ? 0 : e || 10;
13899
- var r = k(t).toHsl();
13900
- return r.s -= e / 100, r.s = $n(r.s), k(r);
13902
+ var r = D(t).toHsl();
13903
+ return r.s -= e / 100, r.s = $n(r.s), D(r);
13901
13904
  }
13902
13905
  function uw(t, e) {
13903
13906
  e = e === 0 ? 0 : e || 10;
13904
- var r = k(t).toHsl();
13905
- return r.s += e / 100, r.s = $n(r.s), k(r);
13907
+ var r = D(t).toHsl();
13908
+ return r.s += e / 100, r.s = $n(r.s), D(r);
13906
13909
  }
13907
13910
  function cw(t) {
13908
- return k(t).desaturate(100);
13911
+ return D(t).desaturate(100);
13909
13912
  }
13910
13913
  function hw(t, e) {
13911
13914
  e = e === 0 ? 0 : e || 10;
13912
- var r = k(t).toHsl();
13913
- return r.l += e / 100, r.l = $n(r.l), k(r);
13915
+ var r = D(t).toHsl();
13916
+ return r.l += e / 100, r.l = $n(r.l), D(r);
13914
13917
  }
13915
13918
  function fw(t, e) {
13916
13919
  e = e === 0 ? 0 : e || 10;
13917
- var r = k(t).toRgb();
13918
- return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(e / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(e / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(e / 100)))), k(r);
13920
+ var r = D(t).toRgb();
13921
+ return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(e / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(e / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(e / 100)))), D(r);
13919
13922
  }
13920
13923
  function dw(t, e) {
13921
13924
  e = e === 0 ? 0 : e || 10;
13922
- var r = k(t).toHsl();
13923
- return r.l -= e / 100, r.l = $n(r.l), k(r);
13925
+ var r = D(t).toHsl();
13926
+ return r.l -= e / 100, r.l = $n(r.l), D(r);
13924
13927
  }
13925
13928
  function pw(t, e) {
13926
- var r = k(t).toHsl(), i = (r.h + e) % 360;
13927
- return r.h = i < 0 ? 360 + i : i, k(r);
13929
+ var r = D(t).toHsl(), i = (r.h + e) % 360;
13930
+ return r.h = i < 0 ? 360 + i : i, D(r);
13928
13931
  }
13929
13932
  function mw(t) {
13930
- var e = k(t).toHsl();
13931
- return e.h = (e.h + 180) % 360, k(e);
13933
+ var e = D(t).toHsl();
13934
+ return e.h = (e.h + 180) % 360, D(e);
13932
13935
  }
13933
13936
  function au(t, e) {
13934
13937
  if (isNaN(e) || e <= 0)
13935
13938
  throw new Error("Argument to polyad must be a positive number");
13936
- for (var r = k(t).toHsl(), i = [k(t)], n = 360 / e, s = 1; s < e; s++)
13937
- i.push(k({ h: (r.h + s * n) % 360, s: r.s, l: r.l }));
13939
+ for (var r = D(t).toHsl(), i = [D(t)], n = 360 / e, s = 1; s < e; s++)
13940
+ i.push(D({ h: (r.h + s * n) % 360, s: r.s, l: r.l }));
13938
13941
  return i;
13939
13942
  }
13940
13943
  function gw(t) {
13941
- var e = k(t).toHsl(), r = e.h;
13944
+ var e = D(t).toHsl(), r = e.h;
13942
13945
  return [
13943
- k(t),
13944
- k({ h: (r + 72) % 360, s: e.s, l: e.l }),
13945
- k({ h: (r + 216) % 360, s: e.s, l: e.l })
13946
+ D(t),
13947
+ D({ h: (r + 72) % 360, s: e.s, l: e.l }),
13948
+ D({ h: (r + 216) % 360, s: e.s, l: e.l })
13946
13949
  ];
13947
13950
  }
13948
13951
  function vw(t, e, r) {
13949
13952
  e = e || 6, r = r || 30;
13950
- var i = k(t).toHsl(), n = 360 / r, s = [k(t)];
13953
+ var i = D(t).toHsl(), n = 360 / r, s = [D(t)];
13951
13954
  for (i.h = (i.h - (n * e >> 1) + 720) % 360; --e; )
13952
- i.h = (i.h + n) % 360, s.push(k(i));
13955
+ i.h = (i.h + n) % 360, s.push(D(i));
13953
13956
  return s;
13954
13957
  }
13955
13958
  function _w(t, e) {
13956
13959
  e = e || 6;
13957
- for (var r = k(t).toHsv(), i = r.h, n = r.s, s = r.v, a = [], o = 1 / e; e--; )
13958
- a.push(k({ h: i, s: n, v: s })), s = (s + o) % 1;
13960
+ for (var r = D(t).toHsv(), i = r.h, n = r.s, s = r.v, a = [], o = 1 / e; e--; )
13961
+ a.push(D({ h: i, s: n, v: s })), s = (s + o) % 1;
13959
13962
  return a;
13960
13963
  }
13961
- k.mix = function(t, e, r) {
13964
+ D.mix = function(t, e, r) {
13962
13965
  r = r === 0 ? 0 : r || 50;
13963
- var i = k(t).toRgb(), n = k(e).toRgb(), s = r / 100, a = {
13966
+ var i = D(t).toRgb(), n = D(e).toRgb(), s = r / 100, a = {
13964
13967
  r: (n.r - i.r) * s + i.r,
13965
13968
  g: (n.g - i.g) * s + i.g,
13966
13969
  b: (n.b - i.b) * s + i.b,
13967
13970
  a: (n.a - i.a) * s + i.a
13968
13971
  };
13969
- return k(a);
13972
+ return D(a);
13970
13973
  };
13971
- k.readability = function(t, e) {
13972
- var r = k(t), i = k(e);
13974
+ D.readability = function(t, e) {
13975
+ var r = D(t), i = D(e);
13973
13976
  return (Math.max(r.getLuminance(), i.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), i.getLuminance()) + 0.05);
13974
13977
  };
13975
- k.isReadable = function(t, e, r) {
13976
- var i = k.readability(t, e), n, s;
13978
+ D.isReadable = function(t, e, r) {
13979
+ var i = D.readability(t, e), n, s;
13977
13980
  switch (s = !1, n = Sw(r), n.level + n.size) {
13978
13981
  case "AAsmall":
13979
13982
  case "AAAlarge":
@@ -13988,17 +13991,17 @@ k.isReadable = function(t, e, r) {
13988
13991
  }
13989
13992
  return s;
13990
13993
  };
13991
- k.mostReadable = function(t, e, r) {
13994
+ D.mostReadable = function(t, e, r) {
13992
13995
  var i = null, n = 0, s, a, o, u;
13993
13996
  r = r || {}, a = r.includeFallbackColors, o = r.level, u = r.size;
13994
13997
  for (var h = 0; h < e.length; h++)
13995
- s = k.readability(t, e[h]), s > n && (n = s, i = k(e[h]));
13996
- return k.isReadable(t, i, {
13998
+ s = D.readability(t, e[h]), s > n && (n = s, i = D(e[h]));
13999
+ return D.isReadable(t, i, {
13997
14000
  level: o,
13998
14001
  size: u
13999
- }) || !a ? i : (r.includeFallbackColors = !1, k.mostReadable(t, ["#fff", "#000"], r));
14002
+ }) || !a ? i : (r.includeFallbackColors = !1, D.mostReadable(t, ["#fff", "#000"], r));
14000
14003
  };
14001
- var ga = k.names = {
14004
+ var ga = D.names = {
14002
14005
  aliceblue: "f0f8ff",
14003
14006
  antiquewhite: "faebd7",
14004
14007
  aqua: "0ff",
@@ -14148,7 +14151,7 @@ var ga = k.names = {
14148
14151
  whitesmoke: "f5f5f5",
14149
14152
  yellow: "ff0",
14150
14153
  yellowgreen: "9acd32"
14151
- }, yw = k.hexNames = xw(ga);
14154
+ }, yw = D.hexNames = xw(ga);
14152
14155
  function xw(t) {
14153
14156
  var e = {};
14154
14157
  for (var r in t)
@@ -14293,8 +14296,8 @@ var Aw = function() {
14293
14296
  }, Cw = function(e, r, i, n, s, a, o, u, h, d, l, c) {
14294
14297
  var f = Math.pow(s, 2), p = Math.pow(a, 2), m = Math.pow(l, 2), v = Math.pow(c, 2), g = f * p - f * v - p * m;
14295
14298
  g < 0 && (g = 0), g /= f * v + p * m, g = Math.sqrt(g) * (o === u ? -1 : 1);
14296
- var y = g * s / a * c, _ = g * -a / s * l, x = d * y - h * _ + (e + i) / 2, b = h * y + d * _ + (r + n) / 2, T = (l - y) / s, w = (c - _) / a, S = (-l - y) / s, A = (-c - _) / a, I = lu(1, 0, T, w), P = lu(T, w, S, A);
14297
- return u === 0 && P > 0 && (P -= ni), u === 1 && P < 0 && (P += ni), [x, b, I, P];
14299
+ var y = g * s / a * c, _ = g * -a / s * l, x = d * y - h * _ + (e + i) / 2, T = h * y + d * _ + (r + n) / 2, w = (l - y) / s, b = (c - _) / a, S = (-l - y) / s, A = (-c - _) / a, I = lu(1, 0, w, b), P = lu(w, b, S, A);
14300
+ return u === 0 && P > 0 && (P -= ni), u === 1 && P < 0 && (P += ni), [x, T, I, P];
14298
14301
  }, uu = function(e) {
14299
14302
  var r = e.px, i = e.py, n = e.cx, s = e.cy, a = e.rx, o = e.ry, u = e.xAxisRotation, h = u === void 0 ? 0 : u, d = e.largeArcFlag, l = d === void 0 ? 0 : d, c = e.sweepFlag, f = c === void 0 ? 0 : c, p = [];
14300
14303
  if (a === 0 || o === 0)
@@ -14305,15 +14308,15 @@ var Aw = function() {
14305
14308
  a = Math.abs(a), o = Math.abs(o);
14306
14309
  var _ = Math.pow(g, 2) / Math.pow(a, 2) + Math.pow(y, 2) / Math.pow(o, 2);
14307
14310
  _ > 1 && (a *= Math.sqrt(_), o *= Math.sqrt(_));
14308
- var x = Cw(r, i, n, s, a, o, l, f, m, v, g, y), b = Aw(x, 4), T = b[0], w = b[1], S = b[2], A = b[3], I = Math.abs(A) / (ni / 4);
14311
+ var x = Cw(r, i, n, s, a, o, l, f, m, v, g, y), T = Aw(x, 4), w = T[0], b = T[1], S = T[2], A = T[3], I = Math.abs(A) / (ni / 4);
14309
14312
  Math.abs(1 - I) < 1e-7 && (I = 1);
14310
14313
  var P = Math.max(Math.ceil(I), 1);
14311
14314
  A /= P;
14312
- for (var U = 0; U < P; U++)
14315
+ for (var k = 0; k < P; k++)
14313
14316
  p.push(Ew(S, A)), S += A;
14314
14317
  return p.map(function(E) {
14315
- var C = Cs(E[0], a, o, v, m, T, w), B = C.x, $ = C.y, R = Cs(E[1], a, o, v, m, T, w), L = R.x, X = R.y, M = Cs(E[2], a, o, v, m, T, w), F = M.x, z = M.y;
14316
- return { x1: B, y1: $, x2: L, y2: X, x: F, y: z };
14318
+ var C = Cs(E[0], a, o, v, m, w, b), U = C.x, $ = C.y, R = Cs(E[1], a, o, v, m, w, b), B = R.x, X = R.y, M = Cs(E[2], a, o, v, m, w, b), F = M.x, z = M.y;
14319
+ return { x1: U, y1: $, x2: B, y2: X, x: F, y: z };
14317
14320
  });
14318
14321
  };
14319
14322
  class Iw extends Wa {
@@ -14381,7 +14384,7 @@ class Iw extends Wa {
14381
14384
  _hexToUint(e) {
14382
14385
  if (e[0] === "#")
14383
14386
  return e = e.substr(1), e.length === 3 && (e = e.replace(/([a-f0-9])/ig, "$1$1")), parseInt(e, 16);
14384
- const { r, g: i, b: n } = k(e).toRgb();
14387
+ const { r, g: i, b: n } = D(e).toRgb();
14385
14388
  return (r << 16) + (i << 8) + n;
14386
14389
  }
14387
14390
  /**
@@ -14603,7 +14606,7 @@ class Iw extends Wa {
14603
14606
  }
14604
14607
  }
14605
14608
  }
14606
- var en = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, Rw = [
14609
+ var tn = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, Rw = [
14607
14610
  5760,
14608
14611
  6158,
14609
14612
  8192,
@@ -14659,7 +14662,7 @@ function Ow(t) {
14659
14662
  function Nw(t) {
14660
14663
  this.index = 0, this.path = t, this.max = t.length, this.result = [], this.param = 0, this.err = "", this.segmentStart = 0, this.data = [];
14661
14664
  }
14662
- function tn(t) {
14665
+ function rn(t) {
14663
14666
  for (; t.index < t.max && Mw(t.path.charCodeAt(t.index)); )
14664
14667
  t.index++;
14665
14668
  }
@@ -14721,7 +14724,7 @@ function Is(t) {
14721
14724
  if (r === "m" && i.length > 2 && (t.result.push([e, i[0], i[1]]), i = i.slice(2), r = "l", e = e === "m" ? "l" : "L"), r === "r")
14722
14725
  t.result.push([e].concat(i));
14723
14726
  else
14724
- for (; i.length >= en[r] && (t.result.push([e].concat(i.splice(0, en[r]))), !!en[r]); )
14727
+ for (; i.length >= tn[r] && (t.result.push([e].concat(i.splice(0, tn[r]))), !!tn[r]); )
14725
14728
  ;
14726
14729
  }
14727
14730
  function Dw(t) {
@@ -14730,7 +14733,7 @@ function Dw(t) {
14730
14733
  t.err = "SvgPath: bad command " + t.path[t.index] + " (at pos " + t.index + ")";
14731
14734
  return;
14732
14735
  }
14733
- if (s = en[t.path[t.index].toLowerCase()], t.index++, tn(t), t.data = [], !s) {
14736
+ if (s = tn[t.path[t.index].toLowerCase()], t.index++, rn(t), t.data = [], !s) {
14734
14737
  Is(t);
14735
14738
  return;
14736
14739
  }
@@ -14740,7 +14743,7 @@ function Dw(t) {
14740
14743
  Is(t);
14741
14744
  return;
14742
14745
  }
14743
- t.data.push(t.param), tn(t), n = !1, t.index < e && t.path.charCodeAt(t.index) === 44 && (t.index++, tn(t), n = !0);
14746
+ t.data.push(t.param), rn(t), n = !1, t.index < e && t.path.charCodeAt(t.index) === 44 && (t.index++, rn(t), n = !0);
14744
14747
  }
14745
14748
  if (!n && (t.index >= t.max || !Ow(t.path.charCodeAt(t.index))))
14746
14749
  break;
@@ -14749,7 +14752,7 @@ function Dw(t) {
14749
14752
  }
14750
14753
  var Bw = function(e) {
14751
14754
  var r = new Nw(e), i = r.max;
14752
- for (tn(r); r.index < i && !r.err.length; )
14755
+ for (rn(r); r.index < i && !r.err.length; )
14753
14756
  Dw(r);
14754
14757
  return r.result.length && ("mM".indexOf(r.result[0][0]) < 0 ? (r.err = "SvgPath: string should start with `M` or `m`", r.result = []) : r.result[0][0] = "M"), {
14755
14758
  err: r.err,
@@ -14855,7 +14858,7 @@ function cu(t, e, r, i) {
14855
14858
  function Vw(t, e, r, i, n, s, a, o, u, h) {
14856
14859
  var d = h * (t - r) / 2 + u * (e - i) / 2, l = -u * (t - r) / 2 + h * (e - i) / 2, c = a * a, f = o * o, p = d * d, m = l * l, v = c * f - c * m - f * p;
14857
14860
  v < 0 && (v = 0), v /= c * m + f * p, v = Math.sqrt(v) * (n === s ? -1 : 1);
14858
- var g = v * a / o * l, y = v * -o / a * d, _ = h * g - u * y + (t + r) / 2, x = u * g + h * y + (e + i) / 2, b = (d - g) / a, T = (l - y) / o, w = (-d - g) / a, S = (-l - y) / o, A = cu(1, 0, b, T), I = cu(b, T, w, S);
14861
+ var g = v * a / o * l, y = v * -o / a * d, _ = h * g - u * y + (t + r) / 2, x = u * g + h * y + (e + i) / 2, T = (d - g) / a, w = (l - y) / o, b = (-d - g) / a, S = (-l - y) / o, A = cu(1, 0, T, w), I = cu(T, w, b, S);
14859
14862
  return s === 0 && I > 0 && (I -= si), s === 1 && I < 0 && (I += si), [_, x, A, I];
14860
14863
  }
14861
14864
  function Xw(t, e) {
@@ -14875,14 +14878,14 @@ var Ww = function(e, r, i, n, s, a, o, u, h) {
14875
14878
  y /= _;
14876
14879
  for (var x = 0; x < _; x++)
14877
14880
  v.push(Xw(g, y)), g += y;
14878
- return v.map(function(b) {
14879
- for (var T = 0; T < b.length; T += 2) {
14880
- var w = b[T + 0], S = b[T + 1];
14881
- w *= o, S *= u;
14882
- var A = l * w - d * S, I = d * w + l * S;
14883
- b[T + 0] = A + m[0], b[T + 1] = I + m[1];
14884
- }
14885
- return b;
14881
+ return v.map(function(T) {
14882
+ for (var w = 0; w < T.length; w += 2) {
14883
+ var b = T[w + 0], S = T[w + 1];
14884
+ b *= o, S *= u;
14885
+ var A = l * b - d * S, I = d * b + l * S;
14886
+ T[w + 0] = A + m[0], T[w + 1] = I + m[1];
14887
+ }
14888
+ return T;
14886
14889
  });
14887
14890
  }, ai = 1e-10, hu = Math.PI / 180;
14888
14891
  function mi(t, e, r) {
@@ -15145,8 +15148,8 @@ xe.prototype.unshort = function() {
15145
15148
  }), this;
15146
15149
  };
15147
15150
  var Jw = xe, eS = Jw;
15148
- const tS = /* @__PURE__ */ er(eS), a2 = D.forwardRef((t, e) => {
15149
- const [r, i] = D.useState(null), n = V(null), s = V(null), a = V(null), {
15151
+ const tS = /* @__PURE__ */ er(eS), a2 = L.forwardRef((t, e) => {
15152
+ const [r, i] = L.useState(null), n = V(null), s = V(null), a = V(null), {
15150
15153
  path: o,
15151
15154
  visible: u,
15152
15155
  disabled: h,
@@ -15163,25 +15166,25 @@ const tS = /* @__PURE__ */ er(eS), a2 = D.forwardRef((t, e) => {
15163
15166
  colorCorrection: _ = {}
15164
15167
  },
15165
15168
  pointerdown: x,
15166
- pointerup: b
15167
- } = t, T = yn(), {
15168
- temperatureFilter: w,
15169
+ pointerup: T
15170
+ } = t, w = gi(), {
15171
+ temperatureFilter: b,
15169
15172
  sharpnessFilter: S,
15170
15173
  hueFilter: A,
15171
15174
  blurFilter: I,
15172
15175
  adjustmentFilter: P,
15173
- vignetteFilter: U,
15176
+ vignetteFilter: k,
15174
15177
  noiseFilter: E
15175
- } = sr(_), { blurRadius: C = 0, vignette: B = 0, noise: $ = 0 } = _;
15176
- return D.useEffect(() => {
15177
- const R = tS(o).scale(5).translate(0, 0).toString(), L = `<svg xmlns="http://www.w3.org/2000/svg" width="${c}" height="${f}">
15178
+ } = sr(_), { blurRadius: C = 0, vignette: U = 0, noise: $ = 0 } = _;
15179
+ return L.useEffect(() => {
15180
+ const R = tS(o).scale(5).translate(0, 0).toString(), B = `<svg xmlns="http://www.w3.org/2000/svg" width="${c}" height="${f}">
15178
15181
  <path stroke="${g}" stroke-width="${y}" fill="${m || v}" d="${R}">
15179
15182
  </path>
15180
- </svg>`, X = new Iw(L), M = T.renderer.generateTexture(X);
15183
+ </svg>`, X = new Iw(B), M = w.renderer.generateTexture(X);
15181
15184
  return i(M), () => {
15182
15185
  };
15183
- }, [T, o, g, y, m, v]), /* @__PURE__ */ Z.jsx(rr, { ...t, ref: e, children: /* @__PURE__ */ Z.jsx(Ae, { ref: s, children: /* @__PURE__ */ Z.jsx(Ae, { ref: a, children: r && /* @__PURE__ */ Z.jsx(
15184
- gi,
15186
+ }, [w, o, g, y, m, v]), /* @__PURE__ */ Z.jsx(rr, { ...t, ref: e, children: /* @__PURE__ */ Z.jsx(Ae, { ref: s, children: /* @__PURE__ */ Z.jsx(Ae, { ref: a, children: r && /* @__PURE__ */ Z.jsx(
15187
+ vi,
15185
15188
  {
15186
15189
  texture: r,
15187
15190
  width: c,
@@ -15194,17 +15197,17 @@ const tS = /* @__PURE__ */ er(eS), a2 = D.forwardRef((t, e) => {
15194
15197
  ...!h && u && {
15195
15198
  interactive: !0,
15196
15199
  pointerdown: x,
15197
- pointerup: b
15200
+ pointerup: T
15198
15201
  },
15199
15202
  filters: [
15200
- w,
15203
+ b,
15201
15204
  S,
15202
15205
  A,
15203
15206
  P,
15204
15207
  // conditionally add blur filter
15205
15208
  ...C > 0 ? [I] : [],
15206
15209
  // conditionally add vignette filter
15207
- ...B > 0 ? [U] : [],
15210
+ ...U > 0 ? [k] : [],
15208
15211
  // conditionally add noise filter
15209
15212
  ...$ > 0 ? [E] : []
15210
15213
  ]
@@ -15543,12 +15546,12 @@ var bh = {};
15543
15546
  if (p && !g._paused)
15544
15547
  return c || f._loadQueue("play"), g._id;
15545
15548
  f._webAudio && r._autoResume();
15546
- var _ = Math.max(0, g._seek > 0 ? g._seek : f._sprite[l][0] / 1e3), x = Math.max(0, (f._sprite[l][0] + f._sprite[l][1]) / 1e3 - _), b = x * 1e3 / Math.abs(g._rate), T = f._sprite[l][0] / 1e3, w = (f._sprite[l][0] + f._sprite[l][1]) / 1e3;
15549
+ var _ = Math.max(0, g._seek > 0 ? g._seek : f._sprite[l][0] / 1e3), x = Math.max(0, (f._sprite[l][0] + f._sprite[l][1]) / 1e3 - _), T = x * 1e3 / Math.abs(g._rate), w = f._sprite[l][0] / 1e3, b = (f._sprite[l][0] + f._sprite[l][1]) / 1e3;
15547
15550
  g._sprite = l, g._ended = !1;
15548
15551
  var S = function() {
15549
- g._paused = !1, g._seek = _, g._start = T, g._stop = w, g._loop = !!(g._loop || f._sprite[l][2]);
15552
+ g._paused = !1, g._seek = _, g._start = w, g._stop = b, g._loop = !!(g._loop || f._sprite[l][2]);
15550
15553
  };
15551
- if (_ >= w) {
15554
+ if (_ >= b) {
15552
15555
  f._ended(g);
15553
15556
  return;
15554
15557
  }
@@ -15557,7 +15560,7 @@ var bh = {};
15557
15560
  var I = function() {
15558
15561
  f._playLock = !1, S(), f._refreshBuffer(g);
15559
15562
  var C = g._muted || f._muted ? 0 : g._volume;
15560
- A.gain.setValueAtTime(C, r.ctx.currentTime), g._playStart = r.ctx.currentTime, typeof A.bufferSource.start > "u" ? g._loop ? A.bufferSource.noteGrainOn(0, _, 86400) : A.bufferSource.noteGrainOn(0, _, x) : g._loop ? A.bufferSource.start(0, _, 86400) : A.bufferSource.start(0, _, x), b !== 1 / 0 && (f._endTimers[g._id] = setTimeout(f._ended.bind(f, g), b)), c || setTimeout(function() {
15563
+ A.gain.setValueAtTime(C, r.ctx.currentTime), g._playStart = r.ctx.currentTime, typeof A.bufferSource.start > "u" ? g._loop ? A.bufferSource.noteGrainOn(0, _, 86400) : A.bufferSource.noteGrainOn(0, _, x) : g._loop ? A.bufferSource.start(0, _, 86400) : A.bufferSource.start(0, _, x), T !== 1 / 0 && (f._endTimers[g._id] = setTimeout(f._ended.bind(f, g), T)), c || setTimeout(function() {
15561
15564
  f._emit("play", g._id), f._loadQueue();
15562
15565
  }, 0);
15563
15566
  };
@@ -15575,16 +15578,16 @@ var bh = {};
15575
15578
  f._emit("playerror", g._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");
15576
15579
  return;
15577
15580
  }
15578
- l !== "__default" || g._loop ? f._endTimers[g._id] = setTimeout(f._ended.bind(f, g), b) : (f._endTimers[g._id] = function() {
15581
+ l !== "__default" || g._loop ? f._endTimers[g._id] = setTimeout(f._ended.bind(f, g), T) : (f._endTimers[g._id] = function() {
15579
15582
  f._ended(g), A.removeEventListener("ended", f._endTimers[g._id], !1);
15580
15583
  }, A.addEventListener("ended", f._endTimers[g._id], !1));
15581
- } catch (B) {
15582
- f._emit("playerror", g._id, B);
15584
+ } catch (U) {
15585
+ f._emit("playerror", g._id, U);
15583
15586
  }
15584
15587
  };
15585
15588
  A.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (A.src = f._src, A.load());
15586
- var U = window && window.ejecta || !A.readyState && r._navigator.isCocoonJS;
15587
- if (A.readyState >= 3 || U)
15589
+ var k = window && window.ejecta || !A.readyState && r._navigator.isCocoonJS;
15590
+ if (A.readyState >= 3 || k)
15588
15591
  P();
15589
15592
  else {
15590
15593
  f._playLock = !0, f._state = "loading";
@@ -15745,11 +15748,11 @@ var bh = {};
15745
15748
  * @param {Boolean} isGroup If true, set the volume on the group.
15746
15749
  */
15747
15750
  _startFadeInterval: function(l, c, f, p, m, v) {
15748
- var g = this, y = c, _ = f - c, x = Math.abs(_ / 0.01), b = Math.max(4, x > 0 ? p / x : p), T = Date.now();
15751
+ var g = this, y = c, _ = f - c, x = Math.abs(_ / 0.01), T = Math.max(4, x > 0 ? p / x : p), w = Date.now();
15749
15752
  l._fadeTo = f, l._interval = setInterval(function() {
15750
- var w = (Date.now() - T) / p;
15751
- T = Date.now(), y += _ * w, y = Math.round(y * 100) / 100, _ < 0 ? y = Math.max(f, y) : y = Math.min(f, y), g._webAudio ? l._volume = y : g.volume(y, l._id, !0), v && (g._volume = y), (f < c && y <= f || f > c && y >= f) && (clearInterval(l._interval), l._interval = null, l._fadeTo = null, g.volume(f, l._id), g._emit("fade", l._id));
15752
- }, b);
15753
+ var b = (Date.now() - w) / p;
15754
+ w = Date.now(), y += _ * b, y = Math.round(y * 100) / 100, _ < 0 ? y = Math.max(f, y) : y = Math.min(f, y), g._webAudio ? l._volume = y : g.volume(y, l._id, !0), v && (g._volume = y), (f < c && y <= f || f > c && y >= f) && (clearInterval(l._interval), l._interval = null, l._fadeTo = null, g.volume(f, l._id), g._emit("fade", l._id));
15755
+ }, T);
15753
15756
  },
15754
15757
  /**
15755
15758
  * Internal method that stops the currently playing fade when
@@ -15814,8 +15817,8 @@ var bh = {};
15814
15817
  for (var y = 0; y < p.length; y++)
15815
15818
  if (g = l._soundById(p[y]), g) {
15816
15819
  l.playing(p[y]) && (g._rateSeek = l.seek(p[y]), g._playStart = l._webAudio ? r.ctx.currentTime : g._playStart), g._rate = f, l._webAudio && g._node && g._node.bufferSource ? g._node.bufferSource.playbackRate.setValueAtTime(f, r.ctx.currentTime) : g._node && (g._node.playbackRate = f);
15817
- var _ = l.seek(p[y]), x = (l._sprite[g._sprite][0] + l._sprite[g._sprite][1]) / 1e3 - _, b = x * 1e3 / Math.abs(g._rate);
15818
- (l._endTimers[p[y]] || !g._paused) && (l._clearTimer(p[y]), l._endTimers[p[y]] = setTimeout(l._ended.bind(l, g), b)), l._emit("rate", g._id);
15820
+ var _ = l.seek(p[y]), x = (l._sprite[g._sprite][0] + l._sprite[g._sprite][1]) / 1e3 - _, T = x * 1e3 / Math.abs(g._rate);
15821
+ (l._endTimers[p[y]] || !g._paused) && (l._clearTimer(p[y]), l._endTimers[p[y]] = setTimeout(l._ended.bind(l, g), T)), l._emit("rate", g._id);
15819
15822
  }
15820
15823
  } else
15821
15824
  return g = l._soundById(p), g ? g._rate : l._rate;
@@ -15863,8 +15866,8 @@ var bh = {};
15863
15866
  } else
15864
15867
  _();
15865
15868
  } else if (l._webAudio) {
15866
- var b = l.playing(p) ? r.ctx.currentTime - g._playStart : 0, T = g._rateSeek ? g._rateSeek - g._seek : 0;
15867
- return g._seek + (T + b * Math.abs(g._rate));
15869
+ var T = l.playing(p) ? r.ctx.currentTime - g._playStart : 0, w = g._rateSeek ? g._rateSeek - g._seek : 0;
15870
+ return g._seek + (w + T * Math.abs(g._rate));
15868
15871
  } else
15869
15872
  return g._node.currentTime;
15870
15873
  return l;
@@ -16424,7 +16427,7 @@ const o2 = (t) => {
16424
16427
  loaded: !1,
16425
16428
  size: { width: 50, height: 50 },
16426
16429
  isDragging: !1
16427
- }, [, r] = D.useState(!1), i = V(null), n = V(e), s = V(null), a = D.useRef(null), { tl: o, dragModeRef: u } = Fr(tr), {
16430
+ }, [, r] = L.useState(!1), i = V(null), n = V(e), s = V(null), a = L.useRef(null), { tl: o, dragModeRef: u } = Fr(tr), {
16428
16431
  uniqueId: h,
16429
16432
  src: d,
16430
16433
  startAt: l,
@@ -16436,56 +16439,56 @@ const o2 = (t) => {
16436
16439
  visible: g
16437
16440
  } = t;
16438
16441
  Le(Te.PAUSE, () => {
16439
- var T;
16440
- i.current && a.current && ((T = a.current) == null || T.pause(), n.current.isPlaying = !1);
16442
+ var w;
16443
+ i.current && a.current && ((w = a.current) == null || w.pause(), n.current.isPlaying = !1);
16441
16444
  }), Le(Te.COMPLETE, () => {
16442
16445
  m > 0 && a.current && a.current.seek(m);
16443
16446
  }), Le(Te.SCRUBBER_CLICKED, () => {
16444
- var T;
16445
- i.current && a.current && ((T = a.current) == null || T.pause(), n.current.isPlaying = !1);
16446
- }), D.useEffect(() => {
16447
+ var w;
16448
+ i.current && a.current && ((w = a.current) == null || w.pause(), n.current.isPlaying = !1);
16449
+ }), L.useEffect(() => {
16447
16450
  a.current && (u.current ? (a.current.pause(), n.current.isPlaying = !1, n.current.isDragging = !0) : n.current.isDragging = !1);
16448
16451
  }, [u]);
16449
- const y = (T, w) => {
16450
- o.current && o.current.isActive() && s.current && s.current.isActive() && !u.current && a.current && (console.log("gsap on start 0020", h, T, w), a.current.play(), n.current.isPlaying = !0);
16452
+ const y = (w, b) => {
16453
+ o.current && o.current.isActive() && s.current && s.current.isActive() && !u.current && a.current && (console.log("gsap on start 0020", h, w, b), a.current.play(), n.current.isPlaying = !0);
16451
16454
  }, _ = () => {
16452
- var T;
16453
- i.current && ((T = a.current) == null || T.stop(), n.current.isPlaying = !1, n.current.completed = !0);
16454
- }, x = (T) => {
16455
+ var w;
16456
+ i.current && ((w = a.current) == null || w.stop(), n.current.isPlaying = !1, n.current.completed = !0);
16457
+ }, x = (w) => {
16455
16458
  var S, A;
16456
- const w = T + ((S = s.current) == null ? void 0 : S.time());
16457
- a.current && u.current ? (a.current.seek(w), a.current.pause(), n.current.isPlaying = !1) : i.current && !n.current.isPlaying && ((A = o.current) != null && A.isActive()) && a.current && (a.current.seek(w), a.current.play(), n.current.isPlaying = !0);
16458
- }, b = () => {
16459
+ const b = w + ((S = s.current) == null ? void 0 : S.time());
16460
+ a.current && u.current ? (a.current.seek(b), a.current.pause(), n.current.isPlaying = !1) : i.current && !n.current.isPlaying && ((A = o.current) != null && A.isActive()) && a.current && (a.current.seek(b), a.current.play(), n.current.isPlaying = !0);
16461
+ }, T = () => {
16459
16462
  };
16460
16463
  return Ft(() => {
16461
- let T = N.context(() => {
16464
+ let w = N.context(() => {
16462
16465
  });
16463
16466
  if (i.current && o.current) {
16464
- const w = {
16467
+ const b = {
16465
16468
  duration: Number(v) - Number(m),
16466
16469
  onStart: y,
16467
16470
  onComplete: _,
16468
16471
  onStartParams: [m, v],
16469
16472
  onCompleteParams: [],
16470
- onInterrupt: b,
16473
+ onInterrupt: T,
16471
16474
  onUpdate: x,
16472
16475
  onUpdateParams: [m, v]
16473
16476
  };
16474
- T = N.context(() => {
16477
+ w = N.context(() => {
16475
16478
  s.current = N.from(
16476
16479
  i.current,
16477
16480
  // @ts-ignore
16478
- w,
16481
+ b,
16479
16482
  m
16480
16483
  ), o.current.to(i.current, { alpha: 1, duration: 0.01 }, l).to(i.current, { alpha: 0, duration: 0.1 }, Number(c)), o.current.add(s.current, l);
16481
16484
  });
16482
16485
  }
16483
16486
  return () => {
16484
- s.current && (s.current.kill(), N.killTweensOf(s.current)), T.revert();
16487
+ s.current && (s.current.kill(), N.killTweensOf(s.current)), w.revert();
16485
16488
  };
16486
- }, [l, c, m, v]), D.useEffect(() => {
16489
+ }, [l, c, m, v]), L.useEffect(() => {
16487
16490
  i.current && r(!0);
16488
- }, []), D.useEffect(() => (Sr(d) || (a.current = new bh.Howl({
16491
+ }, []), L.useEffect(() => (Sr(d) || (a.current = new bh.Howl({
16489
16492
  src: [d],
16490
16493
  // sprite: {
16491
16494
  // [uniqueId]: [audioStartAt * 1000, (audioEndAt - audioStartAt) * 1000],
@@ -16521,7 +16524,7 @@ const o2 = (t) => {
16521
16524
  f,
16522
16525
  g,
16523
16526
  p
16524
- ]), D.useEffect(() => {
16527
+ ]), L.useEffect(() => {
16525
16528
  a.current && (console.log("running updateEffect 2002", h, v), a.current.volume(!f && g ? 1 : 0), a.current.rate(p || 1), n.current.isPlaying = !0);
16526
16529
  }, [f, g, p]), // @ts-ignore
16527
16530
  /* @__PURE__ */ Z.jsx(Ae, { ref: i });
@@ -16557,7 +16560,7 @@ function oS(t, e, r, i) {
16557
16560
  }
16558
16561
  return !0;
16559
16562
  }
16560
- var lS = oS, uS = _i;
16563
+ var lS = oS, uS = yi;
16561
16564
  function cS(t) {
16562
16565
  return t === t && !uS(t);
16563
16566
  }
@@ -16582,7 +16585,7 @@ function yS(t) {
16582
16585
  return r === t || gS(r, t, e);
16583
16586
  };
16584
16587
  }
16585
- var xS = yS, bS = vi, TS = yi, wS = "[object Symbol]";
16588
+ var xS = yS, bS = _i, TS = xi, wS = "[object Symbol]";
16586
16589
  function SS(t) {
16587
16590
  return typeof t == "symbol" || TS(t) && bS(t) == wS;
16588
16591
  }
@@ -16875,8 +16878,8 @@ be.readBits = DE;
16875
16878
  }
16876
16879
  p.push((0, r.readBytes)(g)(c)), v += g;
16877
16880
  }
16878
- for (var _ = new Uint8Array(v), x = 0, b = 0; b < p.length; b++)
16879
- _.set(p[b], x), x += p[b].length;
16881
+ for (var _ = new Uint8Array(v), x = 0, T = 0; T < p.length; T++)
16882
+ _.set(p[T], x), x += p[T].length;
16880
16883
  return _;
16881
16884
  }
16882
16885
  }, n = (0, e.conditional)({
@@ -17064,29 +17067,29 @@ Object.defineProperty(Vn, "__esModule", {
17064
17067
  });
17065
17068
  Vn.lzw = void 0;
17066
17069
  var UE = function(e, r, i) {
17067
- var n = 4096, s = -1, a = i, o, u, h, d, l, c, f, T, p, m, b, v, w, S, I, A, g = new Array(i), y = new Array(n), _ = new Array(n), x = new Array(n + 1);
17070
+ var n = 4096, s = -1, a = i, o, u, h, d, l, c, f, w, p, m, T, v, b, S, I, A, g = new Array(i), y = new Array(n), _ = new Array(n), x = new Array(n + 1);
17068
17071
  for (v = e, u = 1 << v, l = u + 1, o = u + 2, f = s, d = v + 1, h = (1 << d) - 1, p = 0; p < u; p++)
17069
17072
  y[p] = 0, _[p] = p;
17070
- var b, T, w, S, A, I;
17071
- for (b = T = w = S = A = I = 0, m = 0; m < a; ) {
17073
+ var T, w, b, S, A, I;
17074
+ for (T = w = b = S = A = I = 0, m = 0; m < a; ) {
17072
17075
  if (S === 0) {
17073
- if (T < d) {
17074
- b += r[I] << T, T += 8, I++;
17076
+ if (w < d) {
17077
+ T += r[I] << w, w += 8, I++;
17075
17078
  continue;
17076
17079
  }
17077
- if (p = b & h, b >>= d, T -= d, p > o || p == l)
17080
+ if (p = T & h, T >>= d, w -= d, p > o || p == l)
17078
17081
  break;
17079
17082
  if (p == u) {
17080
17083
  d = v + 1, h = (1 << d) - 1, o = u + 2, f = s;
17081
17084
  continue;
17082
17085
  }
17083
17086
  if (f == s) {
17084
- x[S++] = _[p], f = p, w = p;
17087
+ x[S++] = _[p], f = p, b = p;
17085
17088
  continue;
17086
17089
  }
17087
- for (c = p, p == o && (x[S++] = w, p = f); p > u; )
17090
+ for (c = p, p == o && (x[S++] = b, p = f); p > u; )
17088
17091
  x[S++] = _[p], p = y[p];
17089
- w = _[p] & 255, x[S++] = w, o < n && (y[o] = f, _[o] = w, o++, !(o & h) && o < n && (d++, h += o)), f = c;
17092
+ b = _[p] & 255, x[S++] = b, o < n && (y[o] = f, _[o] = b, o++, !(o & h) && o < n && (d++, h += o)), f = c;
17090
17093
  }
17091
17094
  S--, g[A++] = x[S], m++;
17092
17095
  }
@@ -17225,10 +17228,10 @@ const JE = (t) => ({
17225
17228
  forwardRef: e,
17226
17229
  ...r
17227
17230
  }) => {
17228
- const i = D.useRef(null);
17229
- return D.useImperativeHandle(e, () => i.current, [
17231
+ const i = L.useRef(null);
17232
+ return L.useImperativeHandle(e, () => i.current, [
17230
17233
  i
17231
- ]), D.useEffect(() => {
17234
+ ]), L.useEffect(() => {
17232
17235
  if (i.current === null)
17233
17236
  return;
17234
17237
  const n = i.current;
@@ -17241,7 +17244,7 @@ const JE = (t) => ({
17241
17244
  isPlaying: t
17242
17245
  }
17243
17246
  );
17244
- }, aC = D.memo(sC), oC = {
17247
+ }, aC = L.memo(sC), oC = {
17245
17248
  isPlaying: !1,
17246
17249
  progress: 0,
17247
17250
  speed: 1,
@@ -17253,8 +17256,8 @@ const JE = (t) => ({
17253
17256
  totalFrames: 0,
17254
17257
  totalDuration: 0,
17255
17258
  currentFrame: 0
17256
- }, l2 = D.forwardRef((t, e) => {
17257
- const [r, i] = D.useState(0), [n, s] = D.useState([]), [, a] = qt(!1), o = V(null), u = V(null), h = V(oC), d = V(), [l, c] = KE({ autoPlay: !1 }), { tl: f } = Fr(tr), {
17259
+ }, l2 = L.forwardRef((t, e) => {
17260
+ const [r, i] = L.useState(0), [n, s] = L.useState([]), [, a] = qt(!1), o = V(null), u = V(null), h = V(oC), d = V(), [l, c] = KE({ autoPlay: !1 }), { tl: f } = Fr(tr), {
17258
17261
  src: p,
17259
17262
  uniqueId: m,
17260
17263
  startAt: v,
@@ -17262,22 +17265,22 @@ const JE = (t) => ({
17262
17265
  frameStartAt: y,
17263
17266
  frameEndAt: _,
17264
17267
  loop: x,
17265
- visible: b,
17266
- disabled: T,
17267
- transformation: { width: w = 0, height: S = 0, x: A, y: I, colorCorrection: P = {} },
17268
- pointerdown: U
17268
+ visible: T,
17269
+ disabled: w,
17270
+ transformation: { width: b = 0, height: S = 0, x: A, y: I, colorCorrection: P = {} },
17271
+ pointerdown: k
17269
17272
  } = t, { frames: E, delays: C } = l;
17270
17273
  nC(p, c);
17271
17274
  const {
17272
- temperatureFilter: B,
17275
+ temperatureFilter: U,
17273
17276
  sharpnessFilter: $,
17274
17277
  hueFilter: R,
17275
- blurFilter: L,
17278
+ blurFilter: B,
17276
17279
  adjustmentFilter: X,
17277
17280
  vignetteFilter: M,
17278
17281
  noiseFilter: F
17279
17282
  } = sr(P), { blurRadius: z = 0, vignette: H = 0, noise: W = 0 } = P, re = 0.1;
17280
- D.useEffect(() => {
17283
+ L.useEffect(() => {
17281
17284
  if (!Sr(E)) {
17282
17285
  const G = EE(E, (Y) => {
17283
17286
  const { data: he, width: Fe, height: K } = Y, me = new Uint8Array(he);
@@ -17354,23 +17357,23 @@ const JE = (t) => ({
17354
17357
  {
17355
17358
  x: A,
17356
17359
  y: I,
17357
- width: w,
17360
+ width: b,
17358
17361
  height: S,
17359
17362
  animationSpeed: 1,
17360
- alpha: b ? 1 : 0,
17363
+ alpha: T ? 1 : 0,
17361
17364
  loop: x,
17362
17365
  textures: n,
17363
17366
  onComplete: de,
17364
17367
  anchor: 0.5,
17365
17368
  forwardRef: o,
17366
- ...!T && b && { interactive: !0, pointerdown: U },
17369
+ ...!w && T && { interactive: !0, pointerdown: k },
17367
17370
  filters: [
17368
- B,
17371
+ U,
17369
17372
  $,
17370
17373
  R,
17371
17374
  X,
17372
17375
  // conditionally add blur filter
17373
- ...z > 0 ? [L] : [],
17376
+ ...z > 0 ? [B] : [],
17374
17377
  // conditionally add vignette filter
17375
17378
  ...H > 0 ? [M] : [],
17376
17379
  // conditionally add noise filter
@@ -17380,7 +17383,7 @@ const JE = (t) => ({
17380
17383
  ) })
17381
17384
  }
17382
17385
  );
17383
- }), u2 = D.forwardRef((t, e) => {
17386
+ }), u2 = L.forwardRef((t, e) => {
17384
17387
  const i = V(null), n = V(0), s = V(null), a = V(null), o = V(16), u = V(null), {
17385
17388
  visible: h,
17386
17389
  text: d,
@@ -17396,47 +17399,47 @@ const JE = (t) => ({
17396
17399
  fontWeight: y = "normal",
17397
17400
  fontStyle: _ = "normal",
17398
17401
  fontSize: x = 16,
17399
- fontVariant: b = "normal",
17402
+ fontVariant: T = "normal",
17400
17403
  // fill
17401
- fill: T = "black",
17404
+ fill: w = "black",
17402
17405
  // stroke
17403
- stroke: w,
17406
+ stroke: b,
17404
17407
  strokeThickness: S = 0,
17405
17408
  // drop shadow
17406
17409
  blurRadius: A = 0,
17407
17410
  blurEnabled: I = !1,
17408
17411
  dropShadowColor: P = null,
17409
- dropShadow: U = !1,
17412
+ dropShadow: k = !1,
17410
17413
  dropShadowBlur: E = 0,
17411
17414
  // multiline
17412
17415
  wordWrapWidth: C = 5e7,
17413
- leading: B = 0,
17416
+ leading: U = 0,
17414
17417
  letterSpacing: $,
17415
17418
  colorCorrection: R = {}
17416
17419
  } = c, {
17417
- temperatureFilter: L,
17420
+ temperatureFilter: B,
17418
17421
  sharpnessFilter: X,
17419
17422
  hueFilter: M,
17420
17423
  blurFilter: F,
17421
17424
  adjustmentFilter: z
17422
17425
  } = sr(R), { blurRadius: H = 0 } = R;
17423
- D.useEffect(() => {
17426
+ L.useEffect(() => {
17424
17427
  o.current = Number(x);
17425
17428
  }, [x]);
17426
- const W = ["italic", "oblique"].includes(_) ? _ : void 0, re = ["small-caps"].includes(b), ne = [
17429
+ const W = ["italic", "oblique"].includes(_) ? _ : void 0, re = ["small-caps"].includes(T), ne = [
17427
17430
  "bold",
17428
17431
  "bolder",
17429
17432
  "lighter",
17430
17433
  "100",
17431
17434
  "200",
17432
17435
  "300"
17433
- ].includes(y) ? y : void 0, oe = Number($) > 0 ? $ : void 0, de = D.useMemo(() => new Ge.TextStyle({
17436
+ ].includes(y) ? y : void 0, oe = Number($) > 0 ? $ : void 0, de = L.useMemo(() => new Ge.TextStyle({
17434
17437
  fontFamily: g,
17435
17438
  fontSize: x,
17436
- fill: T || "white",
17439
+ fill: w || "white",
17437
17440
  //[color, '#00ff99'], // gradient
17438
- ...w && S > 0 && {
17439
- stroke: w,
17441
+ ...b && S > 0 && {
17442
+ stroke: b,
17440
17443
  strokeThickness: S
17441
17444
  },
17442
17445
  ...W && {
@@ -17456,7 +17459,7 @@ const JE = (t) => ({
17456
17459
  dropShadowAngle: 0.5235987755982988,
17457
17460
  dropShadowDistance: 5
17458
17461
  },
17459
- ...U && {
17462
+ ...k && {
17460
17463
  dropShadow: !0,
17461
17464
  dropShadowBlur: Number(E),
17462
17465
  dropShadowColor: (P == null ? void 0 : P.toString()) || "black",
@@ -17466,28 +17469,28 @@ const JE = (t) => ({
17466
17469
  wordWrap: !0,
17467
17470
  breakWords: !0,
17468
17471
  wordWrapWidth: C || 500,
17469
- leading: B || 0
17472
+ leading: U || 0
17470
17473
  // lineHeight: lineHeight,
17471
17474
  }), [
17472
17475
  I,
17473
17476
  A,
17474
- T,
17477
+ w,
17475
17478
  g,
17476
17479
  x,
17477
17480
  _,
17478
- B,
17481
+ U,
17479
17482
  W,
17480
17483
  ne,
17481
17484
  re,
17482
17485
  oe,
17483
17486
  P,
17484
- w,
17487
+ b,
17485
17488
  S,
17486
17489
  C,
17487
- U,
17490
+ k,
17488
17491
  E
17489
17492
  ]);
17490
- D.useEffect(() => {
17493
+ L.useEffect(() => {
17491
17494
  u.current = {
17492
17495
  ...c
17493
17496
  };
@@ -17521,7 +17524,7 @@ const JE = (t) => ({
17521
17524
  },
17522
17525
  ref: s,
17523
17526
  filters: [
17524
- L,
17527
+ B,
17525
17528
  X,
17526
17529
  M,
17527
17530
  z,
@@ -17545,7 +17548,7 @@ var dC = fC, pC = dC, mC = /^\s+/;
17545
17548
  function gC(t) {
17546
17549
  return t && t.slice(0, pC(t) + 1).replace(mC, "");
17547
17550
  }
17548
- var vC = gC, _C = vC, mu = _i, yC = Gn, gu = 0 / 0, xC = /^[-+]0x[0-9a-f]+$/i, bC = /^0b[01]+$/i, TC = /^0o[0-7]+$/i, wC = parseInt;
17551
+ var vC = gC, _C = vC, mu = yi, yC = Gn, gu = 0 / 0, xC = /^[-+]0x[0-9a-f]+$/i, bC = /^0b[01]+$/i, TC = /^0o[0-7]+$/i, wC = parseInt;
17549
17552
  function SC(t) {
17550
17553
  if (typeof t == "number")
17551
17554
  return t;
@@ -17561,35 +17564,35 @@ function SC(t) {
17561
17564
  var r = bC.test(t);
17562
17565
  return r || TC.test(t) ? wC(t.slice(2), r ? 2 : 8) : xC.test(t) ? gu : +t;
17563
17566
  }
17564
- var AC = SC, EC = _i, Rs = cC, vu = AC, CC = "Expected a function", IC = Math.max, RC = Math.min;
17567
+ var AC = SC, EC = yi, Rs = cC, vu = AC, CC = "Expected a function", IC = Math.max, RC = Math.min;
17565
17568
  function MC(t, e, r) {
17566
17569
  var i, n, s, a, o, u, h = 0, d = !1, l = !1, c = !0;
17567
17570
  if (typeof t != "function")
17568
17571
  throw new TypeError(CC);
17569
17572
  e = vu(e) || 0, EC(r) && (d = !!r.leading, l = "maxWait" in r, s = l ? IC(vu(r.maxWait) || 0, e) : s, c = "trailing" in r ? !!r.trailing : c);
17570
- function f(T) {
17571
- var w = i, S = n;
17572
- return i = n = void 0, h = T, a = t.apply(S, w), a;
17573
+ function f(w) {
17574
+ var b = i, S = n;
17575
+ return i = n = void 0, h = w, a = t.apply(S, b), a;
17573
17576
  }
17574
- function p(T) {
17575
- return h = T, o = setTimeout(g, e), d ? f(T) : a;
17577
+ function p(w) {
17578
+ return h = w, o = setTimeout(g, e), d ? f(w) : a;
17576
17579
  }
17577
- function m(T) {
17578
- var w = T - u, S = T - h, A = e - w;
17580
+ function m(w) {
17581
+ var b = w - u, S = w - h, A = e - b;
17579
17582
  return l ? RC(A, s - S) : A;
17580
17583
  }
17581
- function v(T) {
17582
- var w = T - u, S = T - h;
17583
- return u === void 0 || w >= e || w < 0 || l && S >= s;
17584
+ function v(w) {
17585
+ var b = w - u, S = w - h;
17586
+ return u === void 0 || b >= e || b < 0 || l && S >= s;
17584
17587
  }
17585
17588
  function g() {
17586
- var T = Rs();
17587
- if (v(T))
17588
- return y(T);
17589
- o = setTimeout(g, m(T));
17589
+ var w = Rs();
17590
+ if (v(w))
17591
+ return y(w);
17592
+ o = setTimeout(g, m(w));
17590
17593
  }
17591
- function y(T) {
17592
- return o = void 0, c && i ? f(T) : (i = n = void 0, a);
17594
+ function y(w) {
17595
+ return o = void 0, c && i ? f(w) : (i = n = void 0, a);
17593
17596
  }
17594
17597
  function _() {
17595
17598
  o !== void 0 && clearTimeout(o), h = 0, i = u = n = o = void 0;
@@ -17597,9 +17600,9 @@ function MC(t, e, r) {
17597
17600
  function x() {
17598
17601
  return o === void 0 ? a : y(Rs());
17599
17602
  }
17600
- function b() {
17601
- var T = Rs(), w = v(T);
17602
- if (i = arguments, n = this, u = T, w) {
17603
+ function T() {
17604
+ var w = Rs(), b = v(w);
17605
+ if (i = arguments, n = this, u = w, b) {
17603
17606
  if (o === void 0)
17604
17607
  return p(u);
17605
17608
  if (l)
@@ -17607,7 +17610,7 @@ function MC(t, e, r) {
17607
17610
  }
17608
17611
  return o === void 0 && (o = setTimeout(g, e)), a;
17609
17612
  }
17610
- return b.cancel = _, b.flush = x, b;
17613
+ return T.cancel = _, T.flush = x, T;
17611
17614
  }
17612
17615
  var PC = MC;
17613
17616
  const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
@@ -17643,8 +17646,8 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17643
17646
  size: { width: 50, height: 50 },
17644
17647
  isDragging: !1,
17645
17648
  timeDiff: 0
17646
- }, OC = D.forwardRef((t, e) => {
17647
- const [r, i] = D.useState(!1), n = D.useRef(), s = V(null), a = V(null), o = V(null), u = V(FC), h = V(), {
17649
+ }, OC = L.forwardRef((t, e) => {
17650
+ const [r, i] = L.useState(!1), n = L.useRef(), s = V(null), a = V(null), o = V(null), u = V(FC), h = V(), {
17648
17651
  uniqueId: d,
17649
17652
  mute: l = !1,
17650
17653
  src: c,
@@ -17654,15 +17657,15 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17654
17657
  frameEndAt: v,
17655
17658
  visible: g,
17656
17659
  disabled: y,
17657
- transformation: { x: _, y: x, width: b, height: T, animation: w, colorCorrection: S = {} },
17660
+ transformation: { x: _, y: x, width: T, height: w, animation: b, colorCorrection: S = {} },
17658
17661
  pointerdown: A = () => {
17659
17662
  },
17660
17663
  pointerout: I = () => {
17661
17664
  },
17662
17665
  pointerover: P = () => {
17663
17666
  },
17664
- fps: U = 0
17665
- } = t, { tl: E, dragModeRef: C, isRemotion: B } = Fr(tr), { onPointerDown: $, onPointerOut: R, onPointerOver: L } = Ka(P, A, I, 1), { blurRadius: X = 0, vignette: M = 0, noise: F = 0 } = S, {
17667
+ fps: k = 0
17668
+ } = t, { tl: E, dragModeRef: C, isRemotion: U } = Fr(tr), { onPointerDown: $, onPointerOut: R, onPointerOver: B } = Ka(P, A, I, 1), { blurRadius: X = 0, vignette: M = 0, noise: F = 0 } = S, {
17666
17669
  temperatureFilter: z,
17667
17670
  sharpnessFilter: H,
17668
17671
  hueFilter: W,
@@ -17670,7 +17673,7 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17670
17673
  adjustmentFilter: ne,
17671
17674
  vignetteFilter: oe,
17672
17675
  noiseFilter: de
17673
- } = sr(S), ue = c || "", G = D.useMemo(() => {
17676
+ } = sr(S), ue = c || "", G = L.useMemo(() => {
17674
17677
  const K = document.createElement("video");
17675
17678
  return K.src = c, K.crossOrigin = "Anonymus", K.autoplay = !1, K.currentTime = m === 0 ? 1e-3 : m, K;
17676
17679
  }, [c, m]);
@@ -17745,7 +17748,7 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17745
17748
  return () => {
17746
17749
  h.current && (h.current.kill(), N.killTweensOf(h.current)), K.revert();
17747
17750
  };
17748
- }, [w, f, p, m, v, d]), D.useEffect(() => {
17751
+ }, [b, f, p, m, v, d]), L.useEffect(() => {
17749
17752
  o.current && (o.current.muted = l, u.current.isMuted = l);
17750
17753
  const K = setTimeout(() => {
17751
17754
  o.current && (o.current.muted = l, u.current.isMuted = l);
@@ -17753,7 +17756,7 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17753
17756
  return () => {
17754
17757
  clearTimeout(K);
17755
17758
  };
17756
- }, [l]), D.useEffect(() => {
17759
+ }, [l]), L.useEffect(() => {
17757
17760
  const K = Math.round((Number(m) + Number.EPSILON) * 100) / 100, me = function() {
17758
17761
  o.current && (o.current.currentTime = K, o.current.muted = l);
17759
17762
  }, Ve = function() {
@@ -17770,7 +17773,7 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17770
17773
  resourceOptions: {
17771
17774
  autoPlay: !1,
17772
17775
  crossorigin: "Anonymus",
17773
- updateFPS: U ? Math.max(120, Number(U)) : 30
17776
+ updateFPS: k ? Math.max(120, Number(k)) : 30
17774
17777
  }
17775
17778
  }).then((Xn) => {
17776
17779
  Xn && (n.current = Xn, i(!0), o.current = Xn.baseTexture.resource.source, o.current.id = d, o.current.addEventListener("loadedmetadata", me), o.current.addEventListener("ended", Ve), o.current.addEventListener("loadstart", Je), o.current.addEventListener("canplaythrough", Me), o.current.addEventListener("stalled", ar));
@@ -17780,9 +17783,9 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17780
17783
  Me
17781
17784
  ), o.current.removeEventListener("stalled", ar));
17782
17785
  };
17783
- }, [ue, d, m, v, G]), D.useEffect(() => {
17786
+ }, [ue, d, m, v, G]), L.useEffect(() => {
17784
17787
  const K = setTimeout(() => {
17785
- r && n.current && h.current && E.current && h.current.progress() < 0.1 && o.current && !h.current.isActive() && !B && (o.current.currentTime = m, n.current.update());
17788
+ r && n.current && h.current && E.current && h.current.progress() < 0.1 && o.current && !h.current.isActive() && !U && (o.current.currentTime = m, n.current.update());
17786
17789
  }, 30);
17787
17790
  return () => {
17788
17791
  clearTimeout(K);
@@ -17794,14 +17797,14 @@ const Ms = /* @__PURE__ */ er(PC), Ka = (t, e, r, i) => {
17794
17797
  ref: e,
17795
17798
  ignoreTlForVideo: !0,
17796
17799
  pointerdown: $,
17797
- pointerover: L,
17800
+ pointerover: B,
17798
17801
  pointerout: R,
17799
17802
  children: /* @__PURE__ */ Z.jsx(Ae, { ref: a, children: n.current && /* @__PURE__ */ Z.jsx(
17800
- gi,
17803
+ vi,
17801
17804
  {
17802
17805
  texture: n.current,
17803
- width: b,
17804
- height: T,
17806
+ width: T,
17807
+ height: w,
17805
17808
  anchor: 0.5,
17806
17809
  x: _,
17807
17810
  y: x,
@@ -17829,8 +17832,8 @@ OC.whyDidYouRender = {
17829
17832
  logOnDifferentValues: !0,
17830
17833
  customName: "PixiVideoSprite"
17831
17834
  };
17832
- const c2 = D.forwardRef((t, e) => {
17833
- const [r, i] = D.useState(), n = V(null), s = V(null), {
17835
+ const c2 = L.forwardRef((t, e) => {
17836
+ const [r, i] = L.useState(), n = V(null), s = V(null), {
17834
17837
  visible: a,
17835
17838
  disabled: o,
17836
17839
  transformation: { x: u, y: h, width: d, height: l, colorCorrection: c = {} },
@@ -17841,21 +17844,21 @@ const c2 = D.forwardRef((t, e) => {
17841
17844
  pointerover: m = () => {
17842
17845
  },
17843
17846
  canvasImageRef: v
17844
- } = t, g = v && (v == null ? void 0 : v.getCanvas()), y = yn(), { onPointerDown: _, onPointerOut: x, onPointerOver: b } = Ka(m, f, p, 1), { blurRadius: T = 0, vignette: w = 0, noise: S = 0 } = c, {
17847
+ } = t, g = v && (v == null ? void 0 : v.getCanvas()), y = gi(), { onPointerDown: _, onPointerOut: x, onPointerOver: T } = Ka(m, f, p, 1), { blurRadius: w = 0, vignette: b = 0, noise: S = 0 } = c, {
17845
17848
  temperatureFilter: A,
17846
17849
  sharpnessFilter: I,
17847
17850
  hueFilter: P,
17848
- blurFilter: U,
17851
+ blurFilter: k,
17849
17852
  adjustmentFilter: E,
17850
17853
  vignetteFilter: C,
17851
- noiseFilter: B
17854
+ noiseFilter: U
17852
17855
  } = sr(c);
17853
17856
  return yu(() => {
17854
17857
  if (n.current && n.current.texture) {
17855
17858
  const $ = n.current.texture.baseTexture;
17856
17859
  $ && $.update(), s.current && y.renderer.render(s.current);
17857
17860
  }
17858
- }), D.useEffect(() => {
17861
+ }), L.useEffect(() => {
17859
17862
  if (!Sr(g)) {
17860
17863
  const $ = Ge.Texture.from(g);
17861
17864
  i($);
@@ -17867,10 +17870,10 @@ const c2 = D.forwardRef((t, e) => {
17867
17870
  ref: e,
17868
17871
  ignoreTlForVideo: !0,
17869
17872
  pointerdown: _,
17870
- pointerover: b,
17873
+ pointerover: T,
17871
17874
  pointerout: x,
17872
17875
  children: /* @__PURE__ */ Z.jsx(Ae, { ref: s, children: r && /* @__PURE__ */ Z.jsx(
17873
- gi,
17876
+ vi,
17874
17877
  {
17875
17878
  texture: r,
17876
17879
  width: d,
@@ -17887,11 +17890,11 @@ const c2 = D.forwardRef((t, e) => {
17887
17890
  P,
17888
17891
  E,
17889
17892
  // conditionally add blur filter
17890
- ...T > 0 ? [U] : [],
17893
+ ...w > 0 ? [k] : [],
17891
17894
  // conditionally add vignette filter
17892
- ...w > 0 ? [C] : [],
17895
+ ...b > 0 ? [C] : [],
17893
17896
  // conditionally add noise filter
17894
- ...S > 0 ? [B] : []
17897
+ ...S > 0 ? [U] : []
17895
17898
  ]
17896
17899
  }
17897
17900
  ) })
@@ -17899,7 +17902,7 @@ const c2 = D.forwardRef((t, e) => {
17899
17902
  );
17900
17903
  }), h2 = (t) => {
17901
17904
  const { startAt: e, endAt: r, uniqueId: i } = t, n = V(null), s = V(null), a = V(null), o = V(null), { tl: u, totalDuration: h = 0 } = Fr(tr);
17902
- return D.useEffect(() => {
17905
+ return L.useEffect(() => {
17903
17906
  const d = N.context(() => {
17904
17907
  if (n.current && u.current) {
17905
17908
  o.current && (o.current.kill(), u.current.remove(o.current));
@@ -17927,11 +17930,11 @@ const c2 = D.forwardRef((t, e) => {
17927
17930
  );
17928
17931
  }, f2 = (t) => {
17929
17932
  const { startAt: e, endAt: r } = t, { setTotalDuration: i } = Fr(tr);
17930
- return D.useEffect(() => {
17933
+ return L.useEffect(() => {
17931
17934
  i && i(Number(r) + 0.2);
17932
17935
  }, [e, r]), t.children;
17933
- }, d2 = D.forwardRef((t, e) => {
17934
- const [r, i] = D.useState(), n = V(null), s = V(null), {
17936
+ }, d2 = L.forwardRef((t, e) => {
17937
+ const [r, i] = L.useState(), n = V(null), s = V(null), {
17935
17938
  visible: a,
17936
17939
  disabled: o,
17937
17940
  transformation: { x: u, y: h, width: d, height: l, colorCorrection: c = {} },
@@ -17942,21 +17945,21 @@ const c2 = D.forwardRef((t, e) => {
17942
17945
  pointerover: m = () => {
17943
17946
  },
17944
17947
  canvasImageRef: v
17945
- } = t, g = v && (v == null ? void 0 : v.getCanvas()), y = yn(), { onPointerDown: _, onPointerOut: x, onPointerOver: b } = Ka(m, f, p, 1), { blurRadius: T = 0, vignette: w = 0, noise: S = 0 } = c, {
17948
+ } = t, g = v && (v == null ? void 0 : v.getCanvas()), y = gi(), { onPointerDown: _, onPointerOut: x, onPointerOver: T } = Ka(m, f, p, 1), { blurRadius: w = 0, vignette: b = 0, noise: S = 0 } = c, {
17946
17949
  temperatureFilter: A,
17947
17950
  sharpnessFilter: I,
17948
17951
  hueFilter: P,
17949
- blurFilter: U,
17952
+ blurFilter: k,
17950
17953
  adjustmentFilter: E,
17951
17954
  vignetteFilter: C,
17952
- noiseFilter: B
17955
+ noiseFilter: U
17953
17956
  } = sr(c);
17954
17957
  return yu(() => {
17955
17958
  if (n.current && n.current.texture) {
17956
17959
  const $ = n.current.texture.baseTexture;
17957
17960
  $ && $.update(), s.current && y.renderer.render(s.current);
17958
17961
  }
17959
- }), D.useEffect(() => {
17962
+ }), L.useEffect(() => {
17960
17963
  if (!Sr(g)) {
17961
17964
  const $ = Ge.Texture.from(g);
17962
17965
  i($);
@@ -17968,10 +17971,10 @@ const c2 = D.forwardRef((t, e) => {
17968
17971
  ref: e,
17969
17972
  ignoreTlForVideo: !0,
17970
17973
  pointerdown: _,
17971
- pointerover: b,
17974
+ pointerover: T,
17972
17975
  pointerout: x,
17973
17976
  children: /* @__PURE__ */ Z.jsx(Ae, { ref: s, children: r && /* @__PURE__ */ Z.jsx(
17974
- gi,
17977
+ vi,
17975
17978
  {
17976
17979
  texture: r,
17977
17980
  width: d,
@@ -17988,11 +17991,11 @@ const c2 = D.forwardRef((t, e) => {
17988
17991
  P,
17989
17992
  E,
17990
17993
  // conditionally add blur filter
17991
- ...T > 0 ? [U] : [],
17994
+ ...w > 0 ? [k] : [],
17992
17995
  // conditionally add vignette filter
17993
- ...w > 0 ? [C] : [],
17996
+ ...b > 0 ? [C] : [],
17994
17997
  // conditionally add noise filter
17995
- ...S > 0 ? [B] : []
17998
+ ...S > 0 ? [U] : []
17996
17999
  ]
17997
18000
  }
17998
18001
  ) })