@truelab/truengine 1.0.0 → 1.0.2

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/truengine.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var Na = Object.defineProperty;
2
2
  var Xa = (s, e, t) => e in s ? Na(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var y = (s, e, t) => Xa(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { g as Va, L as Jn, S as Tt, A as vr, B as $a, C as fi, P as Ha, G as Ci, T as Ve, a as Ni, b as We, n as Ua, e as Ga, i as qi, c as de, s as Ds, d as ja, f as qa, h as za, r as en, D as Ka, j as Qa, k as Ja, l as yr, m as Ji, M as Za, o as wr, R as nn, p as vi, q as ye, t as to, u as eo, v as io, w as Mt, x as no, F as so, y as Ri } from "./pixi-chunk.js";
5
- import { g as re, C as ro, S as Zn } from "./gsap-chunk.js";
4
+ import { g as Va, L as Jn, S as Tt, A as vr, B as $a, C as fi, P as Ha, G as Ci, T as Ke, a as Ni, b as We, n as Ua, e as Ga, i as qi, c as de, s as Ds, d as ja, f as qa, h as za, r as en, D as Ka, j as Qa, k as Ja, l as yr, m as Ji, M as Za, o as wr, R as nn, p as yi, q as ye, t as to, u as eo, v as io, w as Mt, x as no, F as so, y as Ri } from "./pixi-chunk.js";
5
+ import { g as ee, C as ro, S as Zn } from "./gsap-chunk.js";
6
6
  import { B as ed, o as id, a as nd, q as sd, j as rd, E as ad, p as od, L as ld, M as hd, P as cd, d as ud, e as dd, f as fd, h as pd, Q as md, k as gd, l as _d, n as vd, m as yd, c as wd, c as bd, b as xd, T as Sd, i as Ad } from "./gsap-chunk.js";
7
7
  var On = /* @__PURE__ */ ((s) => (s[s.LOW = 0] = "LOW", s[s.MEDIUM = 100] = "MEDIUM", s[s.HIGH = 200] = "HIGH", s))(On || {}), ct = /* @__PURE__ */ ((s) => (s[s.TOP = 0] = "TOP", s[s.BOTTOM = 1] = "BOTTOM", s[s.CENTER = 2] = "CENTER", s[s.LEFT = 3] = "LEFT", s[s.RIGHT = 4] = "RIGHT", s))(ct || {}), br = /* @__PURE__ */ ((s) => (s[s.bitmapfont = 0] = "bitmapfont", s[s.dragonbones = 1] = "dragonbones", s[s.sound = 2] = "sound", s[s.spritesheet = 3] = "spritesheet", s[s.texture = 4] = "texture", s[s.webfont = 5] = "webfont", s[s.spine = 6] = "spine", s))(br || {}), ao = /* @__PURE__ */ ((s) => (s.freerounds = "freerounds", s))(ao || {}), Fe = /* @__PURE__ */ ((s) => (s.none = "none", s.in = "power2.in", s.out = "power2.out", s.inOut = "power2.inOut", s.backOut = "back.out(1.4)", s.bounceOut = "bounce.out", s.elasticOut = "elastic.out(1, 0.4)", s))(Fe || {});
8
8
  const Xt = window.navigator.userAgent;
@@ -115,7 +115,7 @@ function Vc(s) {
115
115
  function pn(s) {
116
116
  return Ln.has(s) ? Ln.has(s) : !1;
117
117
  }
118
- function ne(s, e, t = "") {
118
+ function se(s, e, t = "") {
119
119
  pn("dev") && ts.log([
120
120
  {
121
121
  data: `${s}:`,
@@ -143,7 +143,7 @@ function Sr(s, e) {
143
143
  setTimeout(async () => t(await s()), e);
144
144
  });
145
145
  }
146
- function Si(s) {
146
+ function gi(s) {
147
147
  return new Promise((e) => setTimeout(e, s));
148
148
  }
149
149
  function mo(s) {
@@ -478,7 +478,7 @@ let be = (Rt = class {
478
478
  * @param isOnce - callable at once
479
479
  */
480
480
  on(e, t, i, n = On.MEDIUM, r = !1) {
481
- return Rt.events.has(e) ? (Rt.events.get(e).push({ group: t, listener: i, priority: n, isOnce: r }), Rt.events.get(e).sort((o, h) => h.priority - o.priority)) : Rt.events.set(e, [{ group: t, listener: i, priority: n, isOnce: r }]), ne("On", e, `(${t}) listening... [${Rt.events.get(e).length}]`), this;
481
+ return Rt.events.has(e) ? (Rt.events.get(e).push({ group: t, listener: i, priority: n, isOnce: r }), Rt.events.get(e).sort((o, h) => h.priority - o.priority)) : Rt.events.set(e, [{ group: t, listener: i, priority: n, isOnce: r }]), se("On", e, `(${t}) listening... [${Rt.events.get(e).length}]`), this;
482
482
  }
483
483
  /**
484
484
  * Добавляет одноразовый слушатель на событие
@@ -508,7 +508,7 @@ let be = (Rt = class {
508
508
  }
509
509
  /** */
510
510
  clear(e) {
511
- ne("Clear", `(${e})`);
511
+ se("Clear", `(${e})`);
512
512
  for (const [t, i] of Rt.events) {
513
513
  const n = i.filter((r) => r.group !== e);
514
514
  Rt.events.set(t, n);
@@ -525,7 +525,7 @@ let be = (Rt = class {
525
525
  * @withoutcontext
526
526
  */
527
527
  async emit(e, t) {
528
- if (ne("Emit", e, t), Rt.events.has(e)) {
528
+ if (se("Emit", e, t), Rt.events.has(e)) {
529
529
  for (const n of Rt.events.get(e))
530
530
  await n.listener(t);
531
531
  const i = Rt.events.get(e).filter((n) => n.isOnce !== !0);
@@ -595,7 +595,7 @@ class bo extends be {
595
595
  return this.defaults = new Map(this.currents.entries()), this.emit("settings:asDefault"), this;
596
596
  }
597
597
  }
598
- const yi = /* @__PURE__ */ new Map(), Oi = /* @__PURE__ */ new Map();
598
+ const wi = /* @__PURE__ */ new Map(), Oi = /* @__PURE__ */ new Map();
599
599
  class Ti extends be {
600
600
  /**
601
601
  * @constructor
@@ -639,14 +639,14 @@ class Ti extends be {
639
639
  * @param autoinit init service immediately
640
640
  */
641
641
  register(t, i, n = !1) {
642
- return yi.set(t, i), n && this.service(t), this.bind(t), yi.get(t);
642
+ return wi.set(t, i), n && this.service(t), this.bind(t), wi.get(t);
643
643
  }
644
644
  /**
645
645
  * Возвращает собраный сервис
646
646
  * @param serviceName name of registered service
647
647
  */
648
648
  service(t) {
649
- return Oi.has(t) || yi.has(t) && (Oi.set(t, yi.get(t).apply(this)), this.emit(t + ".service.inited", this)), Oi.get(t);
649
+ return Oi.has(t) || wi.has(t) && (Oi.set(t, wi.get(t).apply(this)), this.emit(t + ".service.inited", this)), Oi.get(t);
650
650
  }
651
651
  /** Собран ли сервис */
652
652
  serviceInited(t) {
@@ -654,14 +654,14 @@ class Ti extends be {
654
654
  }
655
655
  /** Зарегистрирован ли сервис */
656
656
  serviceRegistered(t) {
657
- return yi.has(t);
657
+ return wi.has(t);
658
658
  }
659
659
  /**
660
660
  * Биндит отдельный сервис
661
661
  * @param serviceName name of registered service
662
662
  */
663
663
  bind(t) {
664
- return yi.has(t) && (this[t] = () => this.service(t)), this;
664
+ return wi.has(t) && (this[t] = () => this.service(t)), this;
665
665
  }
666
666
  }
667
667
  const es = new Ti(), vt = (s, e) => es.get(s, e), ai = (s) => es.registry().get(s), xo = (s, e, t) => es.langs().get(s, e, t);
@@ -883,26 +883,26 @@ function So() {
883
883
  }
884
884
  function J(A) {
885
885
  var k = A.g.a.offsetWidth, O = A.h.a.offsetWidth, B;
886
- (B = k === A.f.serif && O === A.f["sans-serif"]) || (B = $() && U(A, k, O)), B ? n() - A.A >= A.w ? $() && U(A, k, O) && (A.u === null || A.u.hasOwnProperty(A.a.c)) ? it(A, A.v) : it(A, A.B) : rt(A) : it(A, A.v);
886
+ (B = k === A.f.serif && O === A.f["sans-serif"]) || (B = $() && U(A, k, O)), B ? n() - A.A >= A.w ? $() && U(A, k, O) && (A.u === null || A.u.hasOwnProperty(A.a.c)) ? nt(A, A.v) : nt(A, A.B) : rt(A) : nt(A, A.v);
887
887
  }
888
888
  function rt(A) {
889
889
  setTimeout(i(function() {
890
890
  J(this);
891
891
  }, A), 50);
892
892
  }
893
- function it(A, k) {
893
+ function nt(A, k) {
894
894
  setTimeout(i(function() {
895
895
  l(this.g.a), l(this.h.a), l(this.j.a), l(this.m.a), k(this.a);
896
896
  }, A), 0);
897
897
  }
898
- function nt(A, k, O) {
898
+ function st(A, k, O) {
899
899
  this.c = A, this.a = k, this.f = 0, this.m = this.j = !1, this.s = O;
900
900
  }
901
901
  var ft = null;
902
- nt.prototype.g = function(A) {
902
+ st.prototype.g = function(A) {
903
903
  var k = this.a;
904
904
  k.g && f(k.f, [k.a.c("wf", A.c, C(A).toString(), "active")], [k.a.c("wf", A.c, C(A).toString(), "loading"), k.a.c("wf", A.c, C(A).toString(), "inactive")]), N(k, "fontactive", A), this.m = !0, Pt(this);
905
- }, nt.prototype.h = function(A) {
905
+ }, st.prototype.h = function(A) {
906
906
  var k = this.a;
907
907
  if (k.g) {
908
908
  var O = a(k.f, k.a.c("wf", A.c, C(A).toString(), "active")), B = [], G = [k.a.c("wf", A.c, C(A).toString(), "loading")];
@@ -942,7 +942,7 @@ function So() {
942
942
  function ae(A, k, O) {
943
943
  var G = [], B = O.timeout;
944
944
  L(k);
945
- var G = z(A.a, O, A.c), Q = new nt(A.c, k, B);
945
+ var G = z(A.a, O, A.c), Q = new st(A.c, k, B);
946
946
  for (A.h = G.length, k = 0, O = G.length; k < O; k++) G[k].load(function(tt, at, lt) {
947
947
  Lt(A, Q, tt, at, lt);
948
948
  });
@@ -986,10 +986,10 @@ function So() {
986
986
  A(at, Q);
987
987
  });
988
988
  };
989
- function ee(A, k) {
990
- A ? this.c = A : this.c = Ge, this.a = [], this.f = [], this.g = k || "";
989
+ function ie(A, k) {
990
+ A ? this.c = A : this.c = Ue, this.a = [], this.f = [], this.g = k || "";
991
991
  }
992
- var Ge = "https://fonts.googleapis.com/css";
992
+ var Ue = "https://fonts.googleapis.com/css";
993
993
  function Ee(A, k) {
994
994
  for (var O = k.length, B = 0; B < O; B++) {
995
995
  var G = k[B].split(":");
@@ -1036,7 +1036,7 @@ function So() {
1036
1036
  }
1037
1037
  var ke = { Arimo: !0, Cousine: !0, Tinos: !0 };
1038
1038
  zt.prototype.load = function(A) {
1039
- var k = new m(), O = this.c, B = new ee(this.a.api, this.a.text), G = this.a.families;
1039
+ var k = new m(), O = this.c, B = new ie(this.a.api, this.a.text), G = this.a.families;
1040
1040
  Ee(B, G);
1041
1041
  var Q = new Ie(G);
1042
1042
  le(Q), d(O, oe(B), _(k)), g(k, function() {
@@ -1125,7 +1125,7 @@ const Co = /* @__PURE__ */ Va(Ao), dn = class dn extends be {
1125
1125
  if (delete g.resources[x], a > 0) {
1126
1126
  const w = 100 * 1.2 ** (10 - a), S = w * 0.5 * (Math.random() * 2 - 1), b = Math.max(0, Math.floor(w + S));
1127
1127
  n.push(
1128
- Si(b).then(() => u([x], a - 1))
1128
+ gi(b).then(() => u([x], a - 1))
1129
1129
  );
1130
1130
  }
1131
1131
  }), p.load(() => {
@@ -1195,7 +1195,7 @@ const Jt = class Jt extends ii {
1195
1195
  * Загрузить раннее добавленные ассеты, которые еще не были загружены
1196
1196
  */
1197
1197
  async load(e, t = 0) {
1198
- await this.emit("assets.load:start", { tag: e }), await Promise.all([this._webfontLoader(), this._pixiLoader(e), Si(t)]), await this.emit("assets.load:complete", { tag: e });
1198
+ await this.emit("assets.load:start", { tag: e }), await Promise.all([this._webfontLoader(), this._pixiLoader(e), gi(t)]), await this.emit("assets.load:complete", { tag: e });
1199
1199
  }
1200
1200
  /**
1201
1201
  * Получить путь к ассету на основе текущего режима
@@ -1765,9 +1765,9 @@ window.PIXI = Ha;
1765
1765
  return I || (I = l(T ? "svg" : "body"), I.fake = !0), I;
1766
1766
  }
1767
1767
  function m(I, R, X, W) {
1768
- var V, $, U, J, rt = "modernizr", it = l("div"), nt = p();
1769
- if (parseInt(X, 10)) for (; X--; ) U = l("div"), U.id = rt + (X + 1), it.appendChild(U);
1770
- return V = l("style"), V.type = "text/css", V.id = "s" + rt, (nt.fake ? nt : it).appendChild(V), nt.appendChild(it), V.styleSheet ? V.styleSheet.cssText = I : V.appendChild(e.createTextNode(I)), it.id = rt, nt.fake && (nt.style.background = "", nt.style.overflow = "hidden", J = F.style.overflow, F.style.overflow = "hidden", F.appendChild(nt)), $ = R(it, I), nt.fake ? (nt.parentNode.removeChild(nt), F.style.overflow = J, F.offsetHeight) : it.parentNode.removeChild(it), !!$;
1768
+ var V, $, U, J, rt = "modernizr", nt = l("div"), st = p();
1769
+ if (parseInt(X, 10)) for (; X--; ) U = l("div"), U.id = rt + (X + 1), nt.appendChild(U);
1770
+ return V = l("style"), V.type = "text/css", V.id = "s" + rt, (st.fake ? st : nt).appendChild(V), st.appendChild(nt), V.styleSheet ? V.styleSheet.cssText = I : V.appendChild(e.createTextNode(I)), nt.id = rt, st.fake && (st.style.background = "", st.style.overflow = "hidden", J = F.style.overflow, F.style.overflow = "hidden", F.appendChild(st)), $ = R(nt, I), st.fake ? (st.parentNode.removeChild(st), F.style.overflow = J, F.offsetHeight) : nt.parentNode.removeChild(nt), !!$;
1771
1771
  }
1772
1772
  function _(I, R) {
1773
1773
  var X = I.length;
@@ -1791,16 +1791,16 @@ window.PIXI = Ha;
1791
1791
  var $ = _(I, X);
1792
1792
  if (!i($, "undefined")) return $;
1793
1793
  }
1794
- for (var U, J, rt, it, nt, ft = ["modernizr", "tspan", "samp"]; !z.style && ft.length; )
1794
+ for (var U, J, rt, nt, st, ft = ["modernizr", "tspan", "samp"]; !z.style && ft.length; )
1795
1795
  U = !0, z.modElem = l(ft.shift()), z.style = z.modElem.style;
1796
1796
  for (rt = I.length, J = 0; rt > J; J++)
1797
- if (it = I[J], nt = z.style[it], u(it, "-") && (it = h(it)), z.style[it] !== t) {
1798
- if (W || i(X, "undefined")) return V(), R == "pfx" ? it : !0;
1797
+ if (nt = I[J], st = z.style[nt], u(nt, "-") && (nt = h(nt)), z.style[nt] !== t) {
1798
+ if (W || i(X, "undefined")) return V(), R == "pfx" ? nt : !0;
1799
1799
  try {
1800
- z.style[it] = X;
1800
+ z.style[nt] = X;
1801
1801
  } catch {
1802
1802
  }
1803
- if (z.style[it] != nt) return V(), R == "pfx" ? it : !0;
1803
+ if (z.style[nt] != st) return V(), R == "pfx" ? nt : !0;
1804
1804
  }
1805
1805
  return V(), !1;
1806
1806
  }
@@ -1852,8 +1852,8 @@ window.PIXI = Ha;
1852
1852
  }), b.addAsyncTest(function() {
1853
1853
  function I(W, V, $) {
1854
1854
  function U(rt) {
1855
- var it = rt && rt.type === "load" ? J.width == 1 : !1, nt = W === "webp";
1856
- o(W, nt && it ? new Boolean(it) : it), $ && $(rt);
1855
+ var nt = rt && rt.type === "load" ? J.width == 1 : !1, st = W === "webp";
1856
+ o(W, st && nt ? new Boolean(nt) : nt), $ && $(rt);
1857
1857
  }
1858
1858
  var J = new Image();
1859
1859
  J.onerror = U, J.onload = U, J.src = V;
@@ -1911,7 +1911,7 @@ window.PIXI = Ha;
1911
1911
  for (var j = 0; j < b._q.length; j++) b._q[j]();
1912
1912
  s.Modernizr = b;
1913
1913
  })(window, document);
1914
- function gi(s, e, t, i, n = 0, r = 16777215, o = 1) {
1914
+ function _i(s, e, t, i, n = 0, r = 16777215, o = 1) {
1915
1915
  const h = new Ci();
1916
1916
  return h.beginFill(r, o), n > 0 ? h.drawRoundedRect(s, e, t, i, n) : h.drawRect(s, e, t, i), h.endFill(), h;
1917
1917
  }
@@ -1964,7 +1964,7 @@ class Ct extends be {
1964
1964
  }
1965
1965
  }
1966
1966
  function me(s, e, t = !0) {
1967
- return e = Object.assign({ duration: 1, delay: 0 }, e), t && re.killTweensOf(s), re.to(s, e);
1967
+ return e = Object.assign({ duration: 1, delay: 0 }, e), t && ee.killTweensOf(s), ee.to(s, e);
1968
1968
  }
1969
1969
  function Po(s, e, t, i = 300 / 1e3) {
1970
1970
  const r = Math.min(s, e) < 1 ? 1e4 : 1, o = { value: s * r };
@@ -2030,11 +2030,11 @@ K.decimalPlaces = K.dp = function() {
2030
2030
  return t < 0 ? 0 : t;
2031
2031
  };
2032
2032
  K.dividedBy = K.div = function(s) {
2033
- return ze(this, new this.constructor(s));
2033
+ return qe(this, new this.constructor(s));
2034
2034
  };
2035
2035
  K.dividedToIntegerBy = K.idiv = function(s) {
2036
2036
  var e = this, t = e.constructor;
2037
- return xt(ze(e, new t(s), 0, 1), t.precision);
2037
+ return xt(qe(e, new t(s), 0, 1), t.precision);
2038
2038
  };
2039
2039
  K.equals = K.eq = function(s) {
2040
2040
  return !this.cmp(s);
@@ -2072,7 +2072,7 @@ K.logarithm = K.log = function(s) {
2072
2072
  s = new i(10);
2073
2073
  else if (s = new i(s), s.s < 1 || s.eq(pe)) throw Error(we + "NaN");
2074
2074
  if (t.s < 1) throw Error(we + (t.s ? "NaN" : "-Infinity"));
2075
- return t.eq(pe) ? new i(0) : (Ft = !1, e = ze(Ui(t, r), Ui(s, r), r), Ft = !0, xt(e, n));
2075
+ return t.eq(pe) ? new i(0) : (Ft = !1, e = qe(Ui(t, r), Ui(s, r), r), Ft = !0, xt(e, n));
2076
2076
  };
2077
2077
  K.minus = K.sub = function(s) {
2078
2078
  var e = this;
@@ -2081,7 +2081,7 @@ K.minus = K.sub = function(s) {
2081
2081
  K.modulo = K.mod = function(s) {
2082
2082
  var e, t = this, i = t.constructor, n = i.precision;
2083
2083
  if (s = new i(s), !s.s) throw Error(we + "NaN");
2084
- return t.s ? (Ft = !1, e = ze(t, s, 0, 1).times(s), Ft = !0, t.minus(e)) : xt(new i(t), n);
2084
+ return t.s ? (Ft = !1, e = qe(t, s, 0, 1).times(s), Ft = !0, t.minus(e)) : xt(new i(t), n);
2085
2085
  };
2086
2086
  K.naturalExponential = K.exp = function() {
2087
2087
  return Pr(this);
@@ -2113,7 +2113,7 @@ K.squareRoot = K.sqrt = function() {
2113
2113
  throw Error(we + "NaN");
2114
2114
  }
2115
2115
  for (s = Wt(h), Ft = !1, n = Math.sqrt(+h), n == 0 || n == 1 / 0 ? (e = De(h.d), (e.length + s) % 2 == 0 && (e += "0"), n = Math.sqrt(e), s = Fi((s + 1) / 2) - (s < 0 || s % 2), n == 1 / 0 ? e = "5e" + s : (e = n.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + s), i = new u(e)) : i = new u(n.toString()), t = u.precision, n = o = t + 3; ; )
2116
- if (r = i, i = r.plus(ze(h, r, o + 2)).times(0.5), De(r.d).slice(0, o) === (e = De(i.d)).slice(0, o)) {
2116
+ if (r = i, i = r.plus(qe(h, r, o + 2)).times(0.5), De(r.d).slice(0, o) === (e = De(i.d)).slice(0, o)) {
2117
2117
  if (e = e.slice(o - 3, o + 1), n == o && e == "4999") {
2118
2118
  if (xt(r, t + 1, 0), r.times(r).eq(h)) {
2119
2119
  i = r;
@@ -2139,15 +2139,15 @@ K.times = K.mul = function(s) {
2139
2139
  };
2140
2140
  K.toDecimalPlaces = K.todp = function(s, e) {
2141
2141
  var t = this, i = t.constructor;
2142
- return t = new i(t), s === void 0 ? t : ($e(s, 0, Pi), e === void 0 ? e = i.rounding : $e(e, 0, 8), xt(t, s + Wt(t) + 1, e));
2142
+ return t = new i(t), s === void 0 ? t : (Ve(s, 0, Pi), e === void 0 ? e = i.rounding : Ve(e, 0, 8), xt(t, s + Wt(t) + 1, e));
2143
2143
  };
2144
2144
  K.toExponential = function(s, e) {
2145
2145
  var t, i = this, n = i.constructor;
2146
- return s === void 0 ? t = _i(i, !0) : ($e(s, 0, Pi), e === void 0 ? e = n.rounding : $e(e, 0, 8), i = xt(new n(i), s + 1, e), t = _i(i, !0, s + 1)), t;
2146
+ return s === void 0 ? t = vi(i, !0) : (Ve(s, 0, Pi), e === void 0 ? e = n.rounding : Ve(e, 0, 8), i = xt(new n(i), s + 1, e), t = vi(i, !0, s + 1)), t;
2147
2147
  };
2148
2148
  K.toFixed = function(s, e) {
2149
2149
  var t, i, n = this, r = n.constructor;
2150
- return s === void 0 ? _i(n) : ($e(s, 0, Pi), e === void 0 ? e = r.rounding : $e(e, 0, 8), i = xt(new r(n), s + Wt(n) + 1, e), t = _i(i.abs(), !1, s + Wt(i) + 1), n.isneg() && !n.isZero() ? "-" + t : t);
2150
+ return s === void 0 ? vi(n) : (Ve(s, 0, Pi), e === void 0 ? e = r.rounding : Ve(e, 0, 8), i = xt(new r(n), s + Wt(n) + 1, e), t = vi(i.abs(), !1, s + Wt(i) + 1), n.isneg() && !n.isZero() ? "-" + t : t);
2151
2151
  };
2152
2152
  K.toInteger = K.toint = function() {
2153
2153
  var s = this, e = s.constructor;
@@ -2176,15 +2176,15 @@ K.toPower = K.pow = function(s) {
2176
2176
  };
2177
2177
  K.toPrecision = function(s, e) {
2178
2178
  var t, i, n = this, r = n.constructor;
2179
- return s === void 0 ? (t = Wt(n), i = _i(n, t <= r.toExpNeg || t >= r.toExpPos)) : ($e(s, 1, Pi), e === void 0 ? e = r.rounding : $e(e, 0, 8), n = xt(new r(n), s, e), t = Wt(n), i = _i(n, s <= t || t <= r.toExpNeg, s)), i;
2179
+ return s === void 0 ? (t = Wt(n), i = vi(n, t <= r.toExpNeg || t >= r.toExpPos)) : (Ve(s, 1, Pi), e === void 0 ? e = r.rounding : Ve(e, 0, 8), n = xt(new r(n), s, e), t = Wt(n), i = vi(n, s <= t || t <= r.toExpNeg, s)), i;
2180
2180
  };
2181
2181
  K.toSignificantDigits = K.tosd = function(s, e) {
2182
2182
  var t = this, i = t.constructor;
2183
- return s === void 0 ? (s = i.precision, e = i.rounding) : ($e(s, 1, Pi), e === void 0 ? e = i.rounding : $e(e, 0, 8)), xt(new i(t), s, e);
2183
+ return s === void 0 ? (s = i.precision, e = i.rounding) : (Ve(s, 1, Pi), e === void 0 ? e = i.rounding : Ve(e, 0, 8)), xt(new i(t), s, e);
2184
2184
  };
2185
2185
  K.toString = K.valueOf = K.val = K.toJSON = K[Symbol.for("nodejs.util.inspect.custom")] = function() {
2186
2186
  var s = this, e = Wt(s), t = s.constructor;
2187
- return _i(s, e <= t.toExpNeg || e >= t.toExpPos);
2187
+ return vi(s, e <= t.toExpNeg || e >= t.toExpPos);
2188
2188
  };
2189
2189
  function Tr(s, e) {
2190
2190
  var t, i, n, r, o, h, u, l, f = s.constructor, a = f.precision;
@@ -2199,7 +2199,7 @@ function Tr(s, e) {
2199
2199
  for (t && (u.unshift(t), ++n), h = u.length; u[--h] == 0; ) u.pop();
2200
2200
  return e.d = u, e.e = n, Ft ? xt(e, a) : e;
2201
2201
  }
2202
- function $e(s, e, t) {
2202
+ function Ve(s, e, t) {
2203
2203
  if (s !== ~~s || s < e || s > t)
2204
2204
  throw Error(pi + s);
2205
2205
  }
@@ -2214,7 +2214,7 @@ function De(s) {
2214
2214
  for (; o % 10 === 0; ) o /= 10;
2215
2215
  return r + o;
2216
2216
  }
2217
- var ze = /* @__PURE__ */ function() {
2217
+ var qe = /* @__PURE__ */ function() {
2218
2218
  function s(i, n) {
2219
2219
  var r, o = 0, h = i.length;
2220
2220
  for (i = i.slice(); h--; )
@@ -2264,7 +2264,7 @@ function Pr(s, e) {
2264
2264
  for (Ft = !1, h = a, o = new f(0.03125); s.abs().gte(0.1); )
2265
2265
  s = s.times(o), l += 5;
2266
2266
  for (i = Math.log(di(2, l)) / Math.LN10 * 2 + 5 | 0, h += i, t = n = r = new f(pe), f.precision = h; ; ) {
2267
- if (n = xt(n.times(s), h), t = t.times(++u), o = r.plus(ze(n, t, h)), De(o.d).slice(0, h) === De(r.d).slice(0, h)) {
2267
+ if (n = xt(n.times(s), h), t = t.times(++u), o = r.plus(qe(n, t, h)), De(o.d).slice(0, h) === De(r.d).slice(0, h)) {
2268
2268
  for (; l--; ) r = xt(r.times(r), h);
2269
2269
  return f.precision = a, e == null ? (Ft = !0, xt(r, a)) : r;
2270
2270
  }
@@ -2296,9 +2296,9 @@ function Ui(s, e) {
2296
2296
  r = Wt(d), i > 1 ? (d = new m("0." + t), r++) : d = new m(i + "." + t.slice(1));
2297
2297
  } else
2298
2298
  return u = bn(m, l + 2, _).times(r + ""), d = Ui(new m(i + "." + t.slice(1)), l - c).plus(u), m.precision = _, e == null ? (Ft = !0, xt(d, _)) : d;
2299
- for (h = o = d = ze(d.minus(pe), d.plus(pe), l), f = xt(d.times(d), l), n = 3; ; ) {
2300
- if (o = xt(o.times(f), l), u = h.plus(ze(o, new m(n), l)), De(u.d).slice(0, l) === De(h.d).slice(0, l))
2301
- return h = h.times(2), r !== 0 && (h = h.plus(bn(m, l + 2, _).times(r + ""))), h = ze(h, new m(a), l), m.precision = _, e == null ? (Ft = !0, xt(h, _)) : h;
2299
+ for (h = o = d = qe(d.minus(pe), d.plus(pe), l), f = xt(d.times(d), l), n = 3; ; ) {
2300
+ if (o = xt(o.times(f), l), u = h.plus(qe(o, new m(n), l)), De(u.d).slice(0, l) === De(h.d).slice(0, l))
2301
+ return h = h.times(2), r !== 0 && (h = h.plus(bn(m, l + 2, _).times(r + ""))), h = qe(h, new m(a), l), m.precision = _, e == null ? (Ft = !0, xt(h, _)) : h;
2302
2302
  h = u, n += 2;
2303
2303
  }
2304
2304
  }
@@ -2372,7 +2372,7 @@ function Fr(s, e) {
2372
2372
  for (; u[0] === 0; u.shift()) --i;
2373
2373
  return u[0] ? (e.d = u, e.e = i, Ft ? xt(e, d) : e) : new c(0);
2374
2374
  }
2375
- function _i(s, e, t) {
2375
+ function vi(s, e, t) {
2376
2376
  var i, n = Wt(s), r = De(s.d), o = r.length;
2377
2377
  return e ? (t && (i = t - o) > 0 ? r = r.charAt(0) + "." + r.slice(1) + ei(i) : o > 1 && (r = r.charAt(0) + "." + r.slice(1)), r = r + (n < 0 ? "e" : "e+") + n) : n < 0 ? (r = "0." + ei(-n - 1) + r, t && (i = t - o) > 0 && (r += ei(i))) : n >= o ? (r += ei(n + 1 - o), t && (i = t - n - 1) > 0 && (r = r + "." + ei(i))) : ((i = n + 1) < o && (r = r.slice(0, i) + "." + r.slice(i)), t && (i = t - o) > 0 && (n + 1 === o && (r += "."), r += ei(i))), s.s < 0 ? "-" + r : r;
2378
2378
  }
@@ -2480,7 +2480,7 @@ const Sn = [
2480
2480
  y(this, "_maxHeight", null);
2481
2481
  y(this, "_isWordWrapScaleMode", !1);
2482
2482
  y(this, "_isUpscaleMode", !1);
2483
- this._text = i, this._style = new Ve(n), r && r.upscale && (this._isUpscaleMode = !0, this._saveUpscaleStyles(n));
2483
+ this._text = i, this._style = new Ke(n), r && r.upscale && (this._isUpscaleMode = !0, this._saveUpscaleStyles(n));
2484
2484
  }
2485
2485
  /**
2486
2486
  * Установить текст и отрисовать с новым текстом
@@ -2588,7 +2588,7 @@ const Sn = [
2588
2588
  });
2589
2589
  }
2590
2590
  };
2591
- y(fn, "defaultStyle", new Ve({
2591
+ y(fn, "defaultStyle", new Ke({
2592
2592
  fontFamily: "Ui",
2593
2593
  fontWeight: "600",
2594
2594
  fontSize: "20",
@@ -2601,7 +2601,7 @@ class Io extends Ct {
2601
2601
  constructor(t = "fps.component") {
2602
2602
  super(t);
2603
2603
  y(this, "_config", {
2604
- textStyle: new Ve({
2604
+ textStyle: new Ke({
2605
2605
  ...Yt.defaultStyle,
2606
2606
  fontSize: et.isDesktop ? 24 : 16,
2607
2607
  fill: 0
@@ -2620,7 +2620,7 @@ class Io extends Ct {
2620
2620
  /** */
2621
2621
  async create(t) {
2622
2622
  if (this._isDebug)
2623
- return await super.create(t), this._rect = gi(0, 0, this._config.width, this._config.height, 3, 16777215), this.instance.addChild(this._rect), this._text = new Yt("fps.text", "", this._config.textStyle), await this._text.create(this.instance), this._text.setPivot(ct.CENTER, ct.CENTER), this._text.position.set(this._config.width / 2, this._config.height / 2), this._text.setMaxSize({ width: this._config.width - 4 }), this.instance.setPivot(ct.LEFT, ct.BOTTOM), this.on("fps:show", this.name, ({ value: i }) => i ? this.start() : this.stop()), this._ticker = We.shared, this.hide(), this;
2623
+ return await super.create(t), this._rect = _i(0, 0, this._config.width, this._config.height, 3, 16777215), this.instance.addChild(this._rect), this._text = new Yt("fps.text", "", this._config.textStyle), await this._text.create(this.instance), this._text.setPivot(ct.CENTER, ct.CENTER), this._text.position.set(this._config.width / 2, this._config.height / 2), this._text.setMaxSize({ width: this._config.width - 4 }), this.instance.setPivot(ct.LEFT, ct.BOTTOM), this.on("fps:show", this.name, ({ value: i }) => i ? this.start() : this.stop()), this._ticker = We.shared, this.hide(), this;
2624
2624
  }
2625
2625
  /** */
2626
2626
  start() {
@@ -2739,7 +2739,7 @@ class Oo extends Ti {
2739
2739
  async createComponent(t) {
2740
2740
  const i = this._components.get(t);
2741
2741
  if (i)
2742
- return i.created = !0, i.instance && this.instance.parent.addChild(i.instance), ne(this.constructor.name, `Component created: ${i.name}`), await i.create(), this;
2742
+ return i.created = !0, i.instance && this.instance.parent.addChild(i.instance), se(this.constructor.name, `Component created: ${i.name}`), await i.create(), this;
2743
2743
  }
2744
2744
  /**
2745
2745
  * Создает зарегистрированные компоненты и панели
@@ -2749,7 +2749,7 @@ class Oo extends Ti {
2749
2749
  this.started = !0;
2750
2750
  const t = [];
2751
2751
  for (const [, i] of this._panels)
2752
- t.push(i.create()), this.instance.addChild(i.instance), i.created = !0, ne(this.constructor.name, `Panel created: ${i.name}`);
2752
+ t.push(i.create()), this.instance.addChild(i.instance), i.created = !0, se(this.constructor.name, `Panel created: ${i.name}`);
2753
2753
  for (const [i, n] of this._components)
2754
2754
  n.created || t.push(this.createComponent(i));
2755
2755
  return await Promise.all(t), this.started;
@@ -2776,7 +2776,7 @@ class Oo extends Ti {
2776
2776
  * @param panel
2777
2777
  */
2778
2778
  panel(t, i = null) {
2779
- return i && (i.hide(), ne(this.constructor.name, `Panel registered: ${i.name}`), this._panels.set(t, this.registry().set("panel:" + t, i))), this._panels.has(t) || Vi(this.constructor.name, `This panel name is not registered: ${t}`), this._panels.get(t);
2779
+ return i && (i.hide(), se(this.constructor.name, `Panel registered: ${i.name}`), this._panels.set(t, this.registry().set("panel:" + t, i))), this._panels.has(t) || Vi(this.constructor.name, `This panel name is not registered: ${t}`), this._panels.get(t);
2780
2780
  }
2781
2781
  /**
2782
2782
  * Регистрация компонента в продюсере (либо его получение)
@@ -2784,7 +2784,7 @@ class Oo extends Ti {
2784
2784
  * @param component
2785
2785
  */
2786
2786
  component(t, i = null) {
2787
- return i && (ne(this.constructor.name, `Component registered: ${i.name}`), this._components.set(t, i)), this._components.has(t) || Vi(this.constructor.name, `This component name is not registered: ${t}`), this._components.get(t);
2787
+ return i && (se(this.constructor.name, `Component registered: ${i.name}`), this._components.set(t, i)), this._components.has(t) || Vi(this.constructor.name, `This component name is not registered: ${t}`), this._components.get(t);
2788
2788
  }
2789
2789
  /**
2790
2790
  * Регистрация сцены в продюсере (либо ее получение)
@@ -2792,7 +2792,7 @@ class Oo extends Ti {
2792
2792
  * @param scene
2793
2793
  */
2794
2794
  scene(t = this.currentScene, i = null) {
2795
- return i && (i.hide(), i.producer = this, i.producer.instance.addChild(i.instance), this._scenes.set(t, this.registry().set("scene:" + t, i)), ne(this.constructor.name, `Scene registered: ${i.name} (by name: ${t})`)), this._scenes.has(t) || Vi(this.constructor.name, `This scene name is not registered: ${t}`), this._scenes.get(t);
2795
+ return i && (i.hide(), i.producer = this, i.producer.instance.addChild(i.instance), this._scenes.set(t, this.registry().set("scene:" + t, i)), se(this.constructor.name, `Scene registered: ${i.name} (by name: ${t})`)), this._scenes.has(t) || Vi(this.constructor.name, `This scene name is not registered: ${t}`), this._scenes.get(t);
2796
2796
  }
2797
2797
  /**
2798
2798
  * Создание и отображение сцены.
@@ -2815,7 +2815,7 @@ class Oo extends Ti {
2815
2815
  async create(t) {
2816
2816
  if (!this._scenes.has(t)) throw "Scene is not registered";
2817
2817
  const i = this._scenes.get(t);
2818
- return await i.hide(), i.destroyed ? (i.destroyed = !1, ne(this.constructor.name, `Scene created: ${i.name}`), await i.create(), !0) : (ne(this.constructor.name, `Scene already created: ${i.name}`), !1);
2818
+ return await i.hide(), i.destroyed ? (i.destroyed = !1, se(this.constructor.name, `Scene created: ${i.name}`), await i.create(), !0) : (se(this.constructor.name, `Scene already created: ${i.name}`), !1);
2819
2819
  }
2820
2820
  /**
2821
2821
  * Отображение сцены.
@@ -2826,7 +2826,7 @@ class Oo extends Ti {
2826
2826
  async show(t, i = !0) {
2827
2827
  if (!this._scenes.has(t)) throw "Scene is not registered";
2828
2828
  const n = this._scenes.get(t);
2829
- return n.hidden ? (n.hidden = !1, ne(this.constructor.name, `Scene show: ${n.name}`), i && await this.redraw(), await n.show(), !0) : (ne(this.constructor.name, `Scene already visible ${n.name}`), !1);
2829
+ return n.hidden ? (n.hidden = !1, se(this.constructor.name, `Scene show: ${n.name}`), i && await this.redraw(), await n.show(), !0) : (se(this.constructor.name, `Scene already visible ${n.name}`), !1);
2830
2830
  }
2831
2831
  /**
2832
2832
  * Уничтожение сцены
@@ -2835,7 +2835,7 @@ class Oo extends Ti {
2835
2835
  async destroy(t) {
2836
2836
  if (!this._scenes.has(t)) throw "Scene is not registered";
2837
2837
  const i = this._scenes.get(t);
2838
- !i.hidden && await i.hide(), !i.destroyed && await i.destroy() && ne(this.constructor.name, `Scene destroyed: ${t}`), i.destroyed = !0, i.hidden = !0;
2838
+ !i.hidden && await i.hide(), !i.destroyed && await i.destroy() && se(this.constructor.name, `Scene destroyed: ${t}`), i.destroyed = !0, i.hidden = !0;
2839
2839
  }
2840
2840
  }
2841
2841
  const Dn = {
@@ -2859,10 +2859,10 @@ class Lo extends be {
2859
2859
  /** */
2860
2860
  _onChange() {
2861
2861
  clearTimeout(this._windowFocusTimeout), document.hidden ? this._windowFocusTimeout = setTimeout(() => {
2862
- this.onBlur && this.onBlur(), re.ticker.lagSmoothing(0, 0), We.shared.stop(), this._tickerInterval = window.setInterval(() => {
2862
+ this.onBlur && this.onBlur(), ee.ticker.lagSmoothing(0, 0), We.shared.stop(), this._tickerInterval = window.setInterval(() => {
2863
2863
  We.shared.update();
2864
2864
  }, 30);
2865
- }, 300) : (this.onFocus && this.onFocus(), re.ticker.lagSmoothing(1e3, 16), We.shared.start(), clearInterval(this._tickerInterval));
2865
+ }, 300) : (this.onFocus && this.onFocus(), ee.ticker.lagSmoothing(1e3, 16), We.shared.start(), clearInterval(this._tickerInterval));
2866
2866
  }
2867
2867
  }
2868
2868
  class Bo extends be {
@@ -3851,7 +3851,7 @@ var Li = function(s) {
3851
3851
  "extensions" in Ua ? Ga.add(Yn) : Jn.registerPlugin(Yn);
3852
3852
  const Cn = /* @__PURE__ */ new Map();
3853
3853
  function Qt(s, e) {
3854
- const t = re.timeline(e);
3854
+ const t = ee.timeline(e);
3855
3855
  return s && (Cn.has(s) && Cn.get(s).kill(), Cn.set(s, t)), t;
3856
3856
  }
3857
3857
  class zo extends be {
@@ -4108,7 +4108,7 @@ class qc extends Ti {
4108
4108
  y(this, "_processing", !1);
4109
4109
  // флаг блокировки работы с сервером
4110
4110
  y(this, "_pressedKeys", /* @__PURE__ */ new Map());
4111
- ne("Engine", `Constructor: ${i}`), this.canvas = t, this.name = i, qa(), Ds.GC_MAX_IDLE = 36e3, n && "failIfMajorPerformanceCaveat" in n && (Ds.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = n.failIfMajorPerformanceCaveat), this.driver = new ja({
4111
+ se("Engine", `Constructor: ${i}`), this.canvas = t, this.name = i, qa(), Ds.GC_MAX_IDLE = 36e3, n && "failIfMajorPerformanceCaveat" in n && (Ds.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = n.failIfMajorPerformanceCaveat), this.driver = new ja({
4112
4112
  autoStart: !1,
4113
4113
  view: this.canvas,
4114
4114
  backgroundAlpha: 0,
@@ -4319,7 +4319,7 @@ let Jo = class Dr extends vr {
4319
4319
  }
4320
4320
  /** */
4321
4321
  async play(e = 0, t = !1) {
4322
- return e > 0 && await Si(e), new Promise((i) => {
4322
+ return e > 0 && await gi(e), new Promise((i) => {
4323
4323
  t && this.gotoAndStop(0), this.onComplete = () => {
4324
4324
  this.emit("sequence.complete"), this.onComplete = null, i();
4325
4325
  }, this.visible = !0, super.play();
@@ -4327,7 +4327,7 @@ let Jo = class Dr extends vr {
4327
4327
  }
4328
4328
  /** */
4329
4329
  async playto(e, t = 0, i = 0) {
4330
- return i > 0 && await Si(i), new Promise((n) => {
4330
+ return i > 0 && await gi(i), new Promise((n) => {
4331
4331
  this.onFrameChange = () => {
4332
4332
  this.currentFrame === e && (this.stop(), this.emit(`sequence.stop.${this.currentFrame}`), this.onFrameChange = null, n());
4333
4333
  }, this.visible = !0, super.gotoAndPlay(t);
@@ -4373,7 +4373,7 @@ class Zo {
4373
4373
  t && this._callbacksFast.add(t), i && this._callbacksSkip.add(i), await e(), t && this._callbacksFast.delete(t), i && this._callbacksSkip.delete(i);
4374
4374
  }
4375
4375
  }
4376
- const Bi = new Zo(), wi = {
4376
+ const Bi = new Zo(), bi = {
4377
4377
  music: "music",
4378
4378
  samples: "samples",
4379
4379
  dealer: "dealer"
@@ -4408,27 +4408,27 @@ class Qc extends be {
4408
4408
  }
4409
4409
  /** */
4410
4410
  get ambient() {
4411
- return this.howl().getVolume(wi.music) || this._ambient;
4411
+ return this.howl().getVolume(bi.music) || this._ambient;
4412
4412
  }
4413
4413
  /** */
4414
4414
  set ambient(t) {
4415
- this.howl().setVolume(t, wi.music), this._ambient = t;
4415
+ this.howl().setVolume(t, bi.music), this._ambient = t;
4416
4416
  }
4417
4417
  /** */
4418
4418
  get effects() {
4419
- return this.howl().getVolume(wi.samples) || this._effects;
4419
+ return this.howl().getVolume(bi.samples) || this._effects;
4420
4420
  }
4421
4421
  /** */
4422
4422
  set effects(t) {
4423
- this.howl().setVolume(t, wi.samples), this._effects = t;
4423
+ this.howl().setVolume(t, bi.samples), this._effects = t;
4424
4424
  }
4425
4425
  /** */
4426
4426
  get dealer() {
4427
- return this.howl().getVolume(wi.dealer) || this._dealer;
4427
+ return this.howl().getVolume(bi.dealer) || this._dealer;
4428
4428
  }
4429
4429
  /** */
4430
4430
  set dealer(t) {
4431
- this.howl().setVolume(t, wi.dealer), this._dealer = t;
4431
+ this.howl().setVolume(t, bi.dealer), this._dealer = t;
4432
4432
  }
4433
4433
  /** */
4434
4434
  blur() {
@@ -4525,10 +4525,10 @@ var mi;
4525
4525
  (function(s) {
4526
4526
  s[s.Tangent = 0] = "Tangent", s[s.Chain = 1] = "Chain", s[s.ChainScale = 2] = "ChainScale";
4527
4527
  })(mi || (mi = {}));
4528
- var se;
4528
+ var re;
4529
4529
  (function(s) {
4530
4530
  s[s.Normal = 0] = "Normal", s[s.OnlyTranslation = 1] = "OnlyTranslation", s[s.NoRotationOrReflection = 2] = "NoRotationOrReflection", s[s.NoScale = 3] = "NoScale", s[s.NoScaleOrReflection = 4] = "NoScaleOrReflection";
4531
- })(se || (se = {}));
4531
+ })(re || (re = {}));
4532
4532
  /*! *****************************************************************************
4533
4533
  Copyright (c) Microsoft Corporation.
4534
4534
 
@@ -4805,7 +4805,7 @@ var Nn = (
4805
4805
  var w = h.baseTexture.resolution;
4806
4806
  l.x /= w, l.y /= w, l.width /= w, l.height /= w, l.originalWidth /= w, l.originalHeight /= w, l.offsetX /= w, l.offsetY /= w;
4807
4807
  var S = l.rotate % 4 !== 0, b = new nn(l.x, l.y, S ? l.height : l.width, S ? l.width : l.height), C = new nn(0, 0, l.originalWidth, l.originalHeight), F = new nn(l.offsetX, l.originalHeight - l.height - l.offsetY, l.width, l.height);
4808
- p.texture = new vi(p.page.baseTexture, b, C, F, l.rotate), p.index = l.index, p.texture.updateUvs(), n.regions.push(p);
4808
+ p.texture = new yi(p.page.baseTexture, b, C, F, l.rotate), p.index = l.index, p.texture.updateUvs(), n.regions.push(p);
4809
4809
  }
4810
4810
  }
4811
4811
  };
@@ -5804,7 +5804,7 @@ var Hr = [
5804
5804
  return n - i;
5805
5805
  }, s;
5806
5806
  }()
5807
- ), He = (
5807
+ ), $e = (
5808
5808
  /** @class */
5809
5809
  function(s) {
5810
5810
  ot(e, s);
@@ -5847,7 +5847,7 @@ var Hr = [
5847
5847
  return d + (t - c) / (this.frames[i] - c) * (this.frames[i + n] - d);
5848
5848
  }, e;
5849
5849
  }(Ot)
5850
- ), Ue = (
5850
+ ), He = (
5851
5851
  /** @class */
5852
5852
  function(s) {
5853
5853
  ot(e, s);
@@ -5895,7 +5895,7 @@ var Hr = [
5895
5895
  /*BEZIER*/
5896
5896
  );
5897
5897
  }, e;
5898
- }(He)
5898
+ }($e)
5899
5899
  ), ls = (
5900
5900
  /** @class */
5901
5901
  function(s) {
@@ -5914,7 +5914,7 @@ var Hr = [
5914
5914
  /*VALUE2*/
5915
5915
  ] = r;
5916
5916
  }, e;
5917
- }(He)
5917
+ }($e)
5918
5918
  ), ln = (
5919
5919
  /** @class */
5920
5920
  function(s) {
@@ -5950,7 +5950,7 @@ var Hr = [
5950
5950
  }
5951
5951
  }
5952
5952
  }, e;
5953
- }(Ue)
5953
+ }(He)
5954
5954
  ), Ur = (
5955
5955
  /** @class */
5956
5956
  function(s) {
@@ -6078,7 +6078,7 @@ var Hr = [
6078
6078
  }
6079
6079
  }
6080
6080
  }, e;
6081
- }(Ue)
6081
+ }(He)
6082
6082
  ), jr = (
6083
6083
  /** @class */
6084
6084
  function(s) {
@@ -6115,7 +6115,7 @@ var Hr = [
6115
6115
  }
6116
6116
  }
6117
6117
  }, e;
6118
- }(Ue)
6118
+ }(He)
6119
6119
  ), qr = (
6120
6120
  /** @class */
6121
6121
  function(s) {
@@ -6279,7 +6279,7 @@ var Hr = [
6279
6279
  }
6280
6280
  }
6281
6281
  }, e;
6282
- }(Ue)
6282
+ }(He)
6283
6283
  ), Kr = (
6284
6284
  /** @class */
6285
6285
  function(s) {
@@ -6334,7 +6334,7 @@ var Hr = [
6334
6334
  }
6335
6335
  }
6336
6336
  }, e;
6337
- }(Ue)
6337
+ }(He)
6338
6338
  ), Qr = (
6339
6339
  /** @class */
6340
6340
  function(s) {
@@ -6462,7 +6462,7 @@ var Hr = [
6462
6462
  }
6463
6463
  }
6464
6464
  }, e;
6465
- }(Ue)
6465
+ }(He)
6466
6466
  ), Zr = (
6467
6467
  /** @class */
6468
6468
  function(s) {
@@ -6499,7 +6499,7 @@ var Hr = [
6499
6499
  }
6500
6500
  }
6501
6501
  }, e;
6502
- }(Ue)
6502
+ }(He)
6503
6503
  ), ta = (
6504
6504
  /** @class */
6505
6505
  function(s) {
@@ -6630,7 +6630,7 @@ var Hr = [
6630
6630
  o == 1 ? a.set(d, p, m, _) : (h == M.setup && a.setFromColor(l.data.color), a.add((d - a.r) * o, (p - a.g) * o, (m - a.b) * o, (_ - a.a) * o));
6631
6631
  }
6632
6632
  }, e;
6633
- }(He)
6633
+ }($e)
6634
6634
  ), ea = (
6635
6635
  /** @class */
6636
6636
  function(s) {
@@ -6747,7 +6747,7 @@ var Hr = [
6747
6747
  }
6748
6748
  }
6749
6749
  }, e;
6750
- }(He)
6750
+ }($e)
6751
6751
  ), ia = (
6752
6752
  /** @class */
6753
6753
  function(s) {
@@ -6775,7 +6775,7 @@ var Hr = [
6775
6775
  o == 1 ? f.a = c : (h == M.setup && (f.a = l.data.color.a), f.a += (c - f.a) * o);
6776
6776
  }
6777
6777
  }, e;
6778
- }(Ue)
6778
+ }(He)
6779
6779
  ), na = (
6780
6780
  /** @class */
6781
6781
  function(s) {
@@ -6967,7 +6967,7 @@ var Hr = [
6967
6967
  }
6968
6968
  }
6969
6969
  }, e;
6970
- }(He)
6970
+ }($e)
6971
6971
  ), sa = (
6972
6972
  /** @class */
6973
6973
  function(s) {
@@ -7142,8 +7142,8 @@ var Hr = [
7142
7142
  }
7143
7143
  }
7144
7144
  }, e;
7145
- }(He)
7146
- ), xi = (
7145
+ }($e)
7146
+ ), Si = (
7147
7147
  /** @class */
7148
7148
  function(s) {
7149
7149
  ot(e, s);
@@ -7345,7 +7345,7 @@ var Hr = [
7345
7345
  }
7346
7346
  }
7347
7347
  }, e;
7348
- }(He)
7348
+ }($e)
7349
7349
  ), hs = (
7350
7350
  /** @class */
7351
7351
  function(s) {
@@ -7528,7 +7528,7 @@ var Hr = [
7528
7528
  ] != 0));
7529
7529
  }
7530
7530
  }, e;
7531
- }(He)
7531
+ }($e)
7532
7532
  ), oa = (
7533
7533
  /** @class */
7534
7534
  function(s) {
@@ -7699,7 +7699,7 @@ var Hr = [
7699
7699
  l.mixRotate += (c - l.mixRotate) * o, l.mixX += (d - l.mixX) * o, l.mixY += (p - l.mixY) * o, l.mixScaleX += (m - l.mixScaleX) * o, l.mixScaleY += (_ - l.mixScaleY) * o, l.mixShearY += (g - l.mixShearY) * o;
7700
7700
  }
7701
7701
  }, e;
7702
- }(He)
7702
+ }($e)
7703
7703
  ), la = (
7704
7704
  /** @class */
7705
7705
  function(s) {
@@ -7726,7 +7726,7 @@ var Hr = [
7726
7726
  h == M.setup ? l.position = l.data.position + (a - l.data.position) * o : l.position += (a - l.position) * o;
7727
7727
  }
7728
7728
  }, e;
7729
- }(Ue)
7729
+ }(He)
7730
7730
  ), ha = (
7731
7731
  /** @class */
7732
7732
  function(s) {
@@ -7753,7 +7753,7 @@ var Hr = [
7753
7753
  h == M.setup ? l.spacing = l.data.spacing + (a - l.data.spacing) * o : l.spacing += (a - l.spacing) * o;
7754
7754
  }
7755
7755
  }, e;
7756
- }(Ue)
7756
+ }(He)
7757
7757
  ), ca = (
7758
7758
  /** @class */
7759
7759
  function(s) {
@@ -7866,7 +7866,7 @@ var Hr = [
7866
7866
  l.mixRotate += (a - l.mixRotate) * o, l.mixX += (c - l.mixX) * o, l.mixY += (d - l.mixY) * o;
7867
7867
  }
7868
7868
  }, e;
7869
- }(He)
7869
+ }($e)
7870
7870
  ), ua = (
7871
7871
  /** @class */
7872
7872
  function(s) {
@@ -7995,14 +7995,14 @@ var Hr = [
7995
7995
  for (var _ = 0; _ < m; _++) {
7996
7996
  Z.webkit602BugfixHelper(l, u);
7997
7997
  var g = p[_];
7998
- g instanceof xi ? this.applyAttachmentTimeline(g, e, c, u, !0) : g.apply(e, f, c, d, l, u, te.mixIn);
7998
+ g instanceof Si ? this.applyAttachmentTimeline(g, e, c, u, !0) : g.apply(e, f, c, d, l, u, te.mixIn);
7999
7999
  }
8000
8000
  else {
8001
8001
  var v = h.timelineMode, x = h.shortestRotation, w = !x && h.timelinesRotation.length != m << 1;
8002
8002
  w && (h.timelinesRotation.length = m << 1);
8003
8003
  for (var _ = 0; _ < m; _++) {
8004
8004
  var S = p[_], b = v[_] == kn ? u : M.setup;
8005
- !x && S instanceof ln ? this.applyRotateTimeline(S, e, c, l, b, h.timelinesRotation, _ << 1, w) : S instanceof xi ? this.applyAttachmentTimeline(S, e, c, u, !0) : (Z.webkit602BugfixHelper(l, u), S.apply(e, f, c, d, l, b, te.mixIn));
8005
+ !x && S instanceof ln ? this.applyRotateTimeline(S, e, c, l, b, h.timelinesRotation, _ << 1, w) : S instanceof Si ? this.applyAttachmentTimeline(S, e, c, u, !0) : (Z.webkit602BugfixHelper(l, u), S.apply(e, f, c, d, l, b, te.mixIn));
8006
8006
  }
8007
8007
  }
8008
8008
  this.queueEvents(h, a), t.length = 0, h.nextAnimationLast = a, h.nextTrackLast = h.trackTime;
@@ -8051,7 +8051,7 @@ var Hr = [
8051
8051
  F = f * Math.max(0, 1 - T.mixTime / T.mixDuration);
8052
8052
  break;
8053
8053
  }
8054
- n.totalAlpha += F, !x && S instanceof ln ? this.applyRotateTimeline(S, t, p, F, C, n.timelinesRotation, _ << 1, w) : S instanceof xi ? this.applyAttachmentTimeline(S, t, p, C, o) : (Z.webkit602BugfixHelper(F, i), h && S instanceof $i && C == M.setup && (b = te.mixIn), S.apply(t, c, p, m, F, C, b));
8054
+ n.totalAlpha += F, !x && S instanceof ln ? this.applyRotateTimeline(S, t, p, F, C, n.timelinesRotation, _ << 1, w) : S instanceof Si ? this.applyAttachmentTimeline(S, t, p, C, o) : (Z.webkit602BugfixHelper(F, i), h && S instanceof $i && C == M.setup && (b = te.mixIn), S.apply(t, c, p, m, F, C, b));
8055
8055
  }
8056
8056
  }
8057
8057
  return e.mixDuration > 0 && this.queueEvents(n, d), this.events.length = 0, n.nextAnimationLast = d, n.nextTrackLast = n.trackTime, r;
@@ -8206,7 +8206,7 @@ var Hr = [
8206
8206
  var l = i[u], f = l.getPropertyIds();
8207
8207
  if (!h.addAll(f))
8208
8208
  r[u] = kn;
8209
- else if (!t || l instanceof xi || l instanceof $i || l instanceof hs || !t.animation.hasTimeline(f))
8209
+ else if (!t || l instanceof Si || l instanceof $i || l instanceof hs || !t.animation.hasTimeline(f))
8210
8210
  r[u] = Ks;
8211
8211
  else {
8212
8212
  for (var a = t.mixingTo; a; a = a.mixingTo)
@@ -8302,45 +8302,45 @@ var Hr = [
8302
8302
  this.objects = [], this.drainDisabled = !1, this.animState = e;
8303
8303
  }
8304
8304
  return s.prototype.start = function(e) {
8305
- this.objects.push(ie.start), this.objects.push(e), this.animState.animationsChanged = !0;
8305
+ this.objects.push(ne.start), this.objects.push(e), this.animState.animationsChanged = !0;
8306
8306
  }, s.prototype.interrupt = function(e) {
8307
- this.objects.push(ie.interrupt), this.objects.push(e);
8307
+ this.objects.push(ne.interrupt), this.objects.push(e);
8308
8308
  }, s.prototype.end = function(e) {
8309
- this.objects.push(ie.end), this.objects.push(e), this.animState.animationsChanged = !0;
8309
+ this.objects.push(ne.end), this.objects.push(e), this.animState.animationsChanged = !0;
8310
8310
  }, s.prototype.dispose = function(e) {
8311
- this.objects.push(ie.dispose), this.objects.push(e);
8311
+ this.objects.push(ne.dispose), this.objects.push(e);
8312
8312
  }, s.prototype.complete = function(e) {
8313
- this.objects.push(ie.complete), this.objects.push(e);
8313
+ this.objects.push(ne.complete), this.objects.push(e);
8314
8314
  }, s.prototype.event = function(e, t) {
8315
- this.objects.push(ie.event), this.objects.push(e), this.objects.push(t);
8315
+ this.objects.push(ne.event), this.objects.push(e), this.objects.push(t);
8316
8316
  }, s.prototype.drain = function() {
8317
8317
  if (!this.drainDisabled) {
8318
8318
  this.drainDisabled = !0;
8319
8319
  for (var e = this.objects, t = this.animState.listeners, i = 0; i < e.length; i += 2) {
8320
8320
  var n = e[i], r = e[i + 1];
8321
8321
  switch (n) {
8322
- case ie.start:
8322
+ case ne.start:
8323
8323
  r.listener && r.listener.start && r.listener.start(r);
8324
8324
  for (var o = 0; o < t.length; o++) {
8325
8325
  var h = t[o];
8326
8326
  h.start && h.start(r);
8327
8327
  }
8328
8328
  break;
8329
- case ie.interrupt:
8329
+ case ne.interrupt:
8330
8330
  r.listener && r.listener.interrupt && r.listener.interrupt(r);
8331
8331
  for (var o = 0; o < t.length; o++) {
8332
8332
  var h = t[o];
8333
8333
  h.interrupt && h.interrupt(r);
8334
8334
  }
8335
8335
  break;
8336
- case ie.end:
8336
+ case ne.end:
8337
8337
  r.listener && r.listener.end && r.listener.end(r);
8338
8338
  for (var o = 0; o < t.length; o++) {
8339
8339
  var h = t[o];
8340
8340
  h.end && h.end(r);
8341
8341
  }
8342
8342
  // Fall through.
8343
- case ie.dispose:
8343
+ case ne.dispose:
8344
8344
  r.listener && r.listener.dispose && r.listener.dispose(r);
8345
8345
  for (var o = 0; o < t.length; o++) {
8346
8346
  var h = t[o];
@@ -8348,14 +8348,14 @@ var Hr = [
8348
8348
  }
8349
8349
  this.animState.trackEntryPool.free(r);
8350
8350
  break;
8351
- case ie.complete:
8351
+ case ne.complete:
8352
8352
  r.listener && r.listener.complete && r.listener.complete(r);
8353
8353
  for (var o = 0; o < t.length; o++) {
8354
8354
  var h = t[o];
8355
8355
  h.complete && h.complete(r);
8356
8356
  }
8357
8357
  break;
8358
- case ie.event:
8358
+ case ne.event:
8359
8359
  var u = e[i++ + 2];
8360
8360
  r.listener && r.listener.event && r.listener.event(r, u);
8361
8361
  for (var o = 0; o < t.length; o++) {
@@ -8371,10 +8371,10 @@ var Hr = [
8371
8371
  this.objects.length = 0;
8372
8372
  }, s;
8373
8373
  }()
8374
- ), ie;
8374
+ ), ne;
8375
8375
  (function(s) {
8376
8376
  s[s.start = 0] = "start", s[s.interrupt = 1] = "interrupt", s[s.end = 2] = "end", s[s.dispose = 3] = "dispose", s[s.complete = 4] = "complete", s[s.event = 5] = "event";
8377
- })(ie || (ie = {}));
8377
+ })(ne || (ne = {}));
8378
8378
  var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8379
8379
  /** @class */
8380
8380
  function() {
@@ -8486,27 +8486,27 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8486
8486
  }
8487
8487
  var p = u.matrix.a, m = u.matrix.c, _ = u.matrix.b, g = u.matrix.d;
8488
8488
  switch (l.tx = p * e + m * t + u.matrix.tx, l.ty = _ * e + g * t + u.matrix.ty, this.data.transformMode) {
8489
- case se.Normal: {
8489
+ case re.Normal: {
8490
8490
  var d = i + 90 + h, v = H.cosDeg(i + o) * n, x = H.cosDeg(d) * r, w = H.sinDeg(i + o) * n, S = H.sinDeg(d) * r;
8491
8491
  l.a = p * v + m * w, l.c = p * x + m * S, l.b = _ * v + g * w, l.d = _ * x + g * S;
8492
8492
  return;
8493
8493
  }
8494
- case se.OnlyTranslation: {
8494
+ case re.OnlyTranslation: {
8495
8495
  var d = i + 90 + h;
8496
8496
  l.a = H.cosDeg(i + o) * n, l.c = H.cosDeg(d) * r, l.b = H.sinDeg(i + o) * n, l.d = H.sinDeg(d) * r;
8497
8497
  break;
8498
8498
  }
8499
- case se.NoRotationOrReflection: {
8499
+ case re.NoRotationOrReflection: {
8500
8500
  var b = p * p + _ * _, C = 0;
8501
8501
  b > 1e-4 ? (b = Math.abs(p * g - m * _) / b, p /= f, _ /= a, m = _ * b, g = p * b, C = Math.atan2(_, p) * H.radDeg) : (p = 0, _ = 0, C = 90 - Math.atan2(g, m) * H.radDeg);
8502
8502
  var F = i + o - C, T = i + h - C + 90, v = H.cosDeg(F) * n, x = H.cosDeg(T) * r, w = H.sinDeg(F) * n, S = H.sinDeg(T) * r;
8503
8503
  l.a = p * v - m * w, l.c = p * x - m * S, l.b = _ * v + g * w, l.d = _ * x + g * S;
8504
8504
  break;
8505
8505
  }
8506
- case se.NoScale:
8507
- case se.NoScaleOrReflection: {
8506
+ case re.NoScale:
8507
+ case re.NoScaleOrReflection: {
8508
8508
  var E = H.cosDeg(i), L = H.sinDeg(i), D = (p * E + m * L) / f, N = (_ * E + g * L) / a, b = Math.sqrt(D * D + N * N);
8509
- b > 1e-5 && (b = 1 / b), D *= b, N *= b, b = Math.sqrt(D * D + N * N), this.data.transformMode == se.NoScale && p * g - m * _ < 0 != (f < 0 != a < 0) && (b = -b);
8509
+ b > 1e-5 && (b = 1 / b), D *= b, N *= b, b = Math.sqrt(D * D + N * N), this.data.transformMode == re.NoScale && p * g - m * _ < 0 != (f < 0 != a < 0) && (b = -b);
8510
8510
  var Y = Math.PI / 2 + Math.atan2(N, D), z = Math.cos(Y) * b, q = Math.sin(Y) * b, v = H.cosDeg(o) * n, x = H.cosDeg(90 + h) * r, w = H.sinDeg(o) * n, S = H.sinDeg(90 + h) * r;
8511
8511
  l.a = D * v + z * w, l.c = D * x + z * S, l.b = N * v + q * w, l.d = N * x + q * S;
8512
8512
  break;
@@ -8562,7 +8562,7 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8562
8562
  /** @class */
8563
8563
  /* @__PURE__ */ function() {
8564
8564
  function s(e, t, i) {
8565
- if (this.index = 0, this.parent = null, this.length = 0, this.x = 0, this.y = 0, this.rotation = 0, this.scaleX = 1, this.scaleY = 1, this.shearX = 0, this.shearY = 0, this.transformMode = se.Normal, this.skinRequired = !1, this.color = new ht(), e < 0)
8565
+ if (this.index = 0, this.parent = null, this.length = 0, this.x = 0, this.y = 0, this.rotation = 0, this.scaleX = 1, this.scaleY = 1, this.shearX = 0, this.shearY = 0, this.transformMode = re.Normal, this.skinRequired = !1, this.color = new ht(), e < 0)
8566
8566
  throw new Error("index must be >= 0.");
8567
8567
  if (!t)
8568
8568
  throw new Error("name cannot be null.");
@@ -8636,10 +8636,10 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8636
8636
  throw new Error("IK bone must have parent.");
8637
8637
  var l = u.a, f = u.c, a = u.b, c = u.d, d = -e.ashearX - e.arotation, p = 0, m = 0, _ = e.skeleton.scaleX, g = -e.skeleton.scaleY;
8638
8638
  switch (e.data.transformMode) {
8639
- case se.OnlyTranslation:
8639
+ case re.OnlyTranslation:
8640
8640
  p = t - e.worldX, m = i - e.worldY, m = -m;
8641
8641
  break;
8642
- case se.NoRotationOrReflection:
8642
+ case re.NoRotationOrReflection:
8643
8643
  var v = Math.abs(l * c - f * a) / (l * l + a * a), x = l / _, w = a / g;
8644
8644
  f = -w * v * _, c = x * v * g, d += Math.atan2(w, x) * H.radDeg;
8645
8645
  // Fall through
@@ -8651,8 +8651,8 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8651
8651
  var F = e.ascaleX, T = e.ascaleY;
8652
8652
  if (n || r) {
8653
8653
  switch (e.data.transformMode) {
8654
- case se.NoScale:
8655
- case se.NoScaleOrReflection:
8654
+ case re.NoScale:
8655
+ case re.NoScaleOrReflection:
8656
8656
  p = t - e.worldX, m = i - e.worldY;
8657
8657
  }
8658
8658
  var E = e.data.length * F, L = Math.sqrt(p * p + m * m);
@@ -8680,10 +8680,10 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8680
8680
  var U = (q * D - j * E) * z - f, J = (j * T - q * L) * z - a, rt = U * U + J * J;
8681
8681
  if (u != 0) {
8682
8682
  u *= c * (_ + 1) * 0.5;
8683
- var it = Math.sqrt(rt), nt = it - X - W * c + u;
8684
- if (nt > 0) {
8685
- var ft = Math.min(1, nt / (u * 2)) - 1;
8686
- ft = (nt - u * (1 - ft * ft)) / it, U -= ft * U, J -= ft * J, rt = U * U + J * J;
8683
+ var nt = Math.sqrt(rt), st = nt - X - W * c + u;
8684
+ if (st > 0) {
8685
+ var ft = Math.min(1, st / (u * 2)) - 1;
8686
+ ft = (st - u * (1 - ft * ft)) / nt, U -= ft * U, J -= ft * J, rt = U * U + J * J;
8687
8687
  }
8688
8688
  }
8689
8689
  t: if (N) {
@@ -8696,9 +8696,9 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
8696
8696
  L = Lt * X * X + gt * rt - gt * Lt;
8697
8697
  var Bt = -2 * Lt * X, xe = Lt - gt;
8698
8698
  if (D = Bt * Bt - 4 * xe * L, D >= 0) {
8699
- var ee = Math.sqrt(D);
8700
- Bt < 0 && (ee = -ee), ee = -(Bt + ee) * 0.5;
8701
- var Ge = ee / xe, Ee = L / ee, oe = Math.abs(Ge) < Math.abs(Ee) ? Ge : Ee;
8699
+ var ie = Math.sqrt(D);
8700
+ Bt < 0 && (ie = -ie), ie = -(Bt + ie) * 0.5;
8701
+ var Ue = ie / xe, Ee = L / ie, oe = Math.abs(Ue) < Math.abs(Ee) ? Ue : Ee;
8702
8702
  if (oe * oe <= rt) {
8703
8703
  j = Math.sqrt(rt - oe * oe) * r, V = ae - Math.atan2(j, oe), $ = Math.atan2(j / d, (oe - X) / c);
8704
8704
  break t;
@@ -8922,7 +8922,7 @@ var Tl = (
8922
8922
  default:
8923
8923
  rt = 1;
8924
8924
  }
8925
- for (var it = this.segments, nt = 0, _ = 0, g = 0, v = 0, ft = 0; _ < t; _++, g += 3) {
8925
+ for (var nt = this.segments, st = 0, _ = 0, g = 0, v = 0, ft = 0; _ < t; _++, g += 3) {
8926
8926
  var x = o[_] * rt;
8927
8927
  r += x;
8928
8928
  var w = r;
@@ -8950,17 +8950,17 @@ var Tl = (
8950
8950
  if (v != c) {
8951
8951
  c = v;
8952
8952
  var gt = v * 6;
8953
- for (T = u[gt], E = u[gt + 1], L = u[gt + 2], D = u[gt + 3], N = u[gt + 4], Y = u[gt + 5], z = u[gt + 6], q = u[gt + 7], j = (T - L * 2 + N) * 0.03, I = (E - D * 2 + Y) * 0.03, R = ((L - N) * 3 - T + z) * 6e-3, X = ((D - Y) * 3 - E + q) * 6e-3, W = j * 2 + R, V = I * 2 + X, $ = (L - T) * 0.3 + j + R * 0.16666667, U = (D - E) * 0.3 + I + X * 0.16666667, nt = Math.sqrt($ * $ + U * U), it[0] = nt, gt = 1; gt < 8; gt++)
8954
- $ += W, U += V, W += R, V += X, nt += Math.sqrt($ * $ + U * U), it[gt] = nt;
8955
- $ += W, U += V, nt += Math.sqrt($ * $ + U * U), it[8] = nt, $ += W + R, U += V + X, nt += Math.sqrt($ * $ + U * U), it[9] = nt, ft = 0;
8953
+ for (T = u[gt], E = u[gt + 1], L = u[gt + 2], D = u[gt + 3], N = u[gt + 4], Y = u[gt + 5], z = u[gt + 6], q = u[gt + 7], j = (T - L * 2 + N) * 0.03, I = (E - D * 2 + Y) * 0.03, R = ((L - N) * 3 - T + z) * 6e-3, X = ((D - Y) * 3 - E + q) * 6e-3, W = j * 2 + R, V = I * 2 + X, $ = (L - T) * 0.3 + j + R * 0.16666667, U = (D - E) * 0.3 + I + X * 0.16666667, st = Math.sqrt($ * $ + U * U), nt[0] = st, gt = 1; gt < 8; gt++)
8954
+ $ += W, U += V, W += R, V += X, st += Math.sqrt($ * $ + U * U), nt[gt] = st;
8955
+ $ += W, U += V, st += Math.sqrt($ * $ + U * U), nt[8] = st, $ += W + R, U += V + X, st += Math.sqrt($ * $ + U * U), nt[9] = st, ft = 0;
8956
8956
  }
8957
- for (w *= nt; ; ft++) {
8958
- var Lt = it[ft];
8957
+ for (w *= st; ; ft++) {
8958
+ var Lt = nt[ft];
8959
8959
  if (!(w > Lt)) {
8960
8960
  if (ft == 0)
8961
8961
  w /= Lt;
8962
8962
  else {
8963
- var b = it[ft - 1];
8963
+ var b = nt[ft - 1];
8964
8964
  w = ft + (w - b) / (Lt - b);
8965
8965
  }
8966
8966
  break;
@@ -9926,7 +9926,7 @@ var Tl = (
9926
9926
  var a = e.readByte(), c = e.readInt(!0), d = c - 1;
9927
9927
  switch (a) {
9928
9928
  case Hl: {
9929
- for (var p = new xi(c, u), m = 0; m < c; m++)
9929
+ for (var p = new Si(c, u), m = 0; m < c; m++)
9930
9930
  p.setFrame(m, e.readFloat(), e.readStringRef());
9931
9931
  n.push(p);
9932
9932
  break;
@@ -10012,34 +10012,34 @@ var Tl = (
10012
10012
  var X = e.readByte(), c = e.readInt(!0), _ = e.readInt(!0);
10013
10013
  switch (X) {
10014
10014
  case Ol:
10015
- n.push(je(e, new ln(c, _, R), 1));
10015
+ n.push(Ge(e, new ln(c, _, R), 1));
10016
10016
  break;
10017
10017
  case Ll:
10018
10018
  n.push(Pn(e, new Ur(c, _, R), r));
10019
10019
  break;
10020
10020
  case Bl:
10021
- n.push(je(e, new Gr(c, _, R), r));
10021
+ n.push(Ge(e, new Gr(c, _, R), r));
10022
10022
  break;
10023
10023
  case Dl:
10024
- n.push(je(e, new jr(c, _, R), r));
10024
+ n.push(Ge(e, new jr(c, _, R), r));
10025
10025
  break;
10026
10026
  case Yl:
10027
10027
  n.push(Pn(e, new qr(c, _, R), 1));
10028
10028
  break;
10029
10029
  case Wl:
10030
- n.push(je(e, new zr(c, _, R), 1));
10030
+ n.push(Ge(e, new zr(c, _, R), 1));
10031
10031
  break;
10032
10032
  case Nl:
10033
- n.push(je(e, new Kr(c, _, R), 1));
10033
+ n.push(Ge(e, new Kr(c, _, R), 1));
10034
10034
  break;
10035
10035
  case Xl:
10036
10036
  n.push(Pn(e, new Qr(c, _, R), 1));
10037
10037
  break;
10038
10038
  case Vl:
10039
- n.push(je(e, new Jr(c, _, R), 1));
10039
+ n.push(Ge(e, new Jr(c, _, R), 1));
10040
10040
  break;
10041
10041
  case $l:
10042
- n.push(je(e, new Zr(c, _, R), 1));
10042
+ n.push(Ge(e, new Zr(c, _, R), 1));
10043
10043
  }
10044
10044
  }
10045
10045
  for (var o = 0, h = e.readInt(!0); o < h; o++) {
@@ -10057,16 +10057,16 @@ var Tl = (
10057
10057
  n.push(p);
10058
10058
  }
10059
10059
  for (var o = 0, h = e.readInt(!0); o < h; o++) {
10060
- for (var W = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new oa(c, e.readInt(!0), W), g = e.readFloat(), rt = e.readFloat(), it = e.readFloat(), nt = e.readFloat(), ft = e.readFloat(), Pt = e.readFloat(), gt = e.readFloat(), m = 0, b = 0; p.setFrame(m, g, rt, it, nt, ft, Pt, gt), m != d; m++) {
10061
- var C = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Bt = e.readFloat(), xe = e.readFloat(), ee = e.readFloat(), Ge = e.readFloat();
10060
+ for (var W = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new oa(c, e.readInt(!0), W), g = e.readFloat(), rt = e.readFloat(), nt = e.readFloat(), st = e.readFloat(), ft = e.readFloat(), Pt = e.readFloat(), gt = e.readFloat(), m = 0, b = 0; p.setFrame(m, g, rt, nt, st, ft, Pt, gt), m != d; m++) {
10061
+ var C = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Bt = e.readFloat(), xe = e.readFloat(), ie = e.readFloat(), Ue = e.readFloat();
10062
10062
  switch (e.readByte()) {
10063
10063
  case Te:
10064
10064
  p.setStepped(m);
10065
10065
  break;
10066
10066
  case Pe:
10067
- ut(e, p, b++, m, 0, g, C, rt, Lt, 1), ut(e, p, b++, m, 1, g, C, it, ae, 1), ut(e, p, b++, m, 2, g, C, nt, Bt, 1), ut(e, p, b++, m, 3, g, C, ft, xe, 1), ut(e, p, b++, m, 4, g, C, Pt, ee, 1), ut(e, p, b++, m, 5, g, C, gt, Ge, 1);
10067
+ ut(e, p, b++, m, 0, g, C, rt, Lt, 1), ut(e, p, b++, m, 1, g, C, nt, ae, 1), ut(e, p, b++, m, 2, g, C, st, Bt, 1), ut(e, p, b++, m, 3, g, C, ft, xe, 1), ut(e, p, b++, m, 4, g, C, Pt, ie, 1), ut(e, p, b++, m, 5, g, C, gt, Ue, 1);
10068
10068
  }
10069
- g = C, rt = Lt, it = ae, nt = Bt, ft = xe, Pt = ee, gt = Ge;
10069
+ g = C, rt = Lt, nt = ae, st = Bt, ft = xe, Pt = ie, gt = Ue;
10070
10070
  }
10071
10071
  n.push(p);
10072
10072
  }
@@ -10074,22 +10074,22 @@ var Tl = (
10074
10074
  for (var W = e.readInt(!0), Ee = i.pathConstraints[W], l = 0, f = e.readInt(!0); l < f; l++)
10075
10075
  switch (e.readByte()) {
10076
10076
  case Ql:
10077
- n.push(je(e, new la(e.readInt(!0), e.readInt(!0), W), Ee.positionMode == Ne.Fixed ? r : 1));
10077
+ n.push(Ge(e, new la(e.readInt(!0), e.readInt(!0), W), Ee.positionMode == Ne.Fixed ? r : 1));
10078
10078
  break;
10079
10079
  case Jl:
10080
- n.push(je(e, new ha(e.readInt(!0), e.readInt(!0), W), Ee.spacingMode == Vt.Length || Ee.spacingMode == Vt.Fixed ? r : 1));
10080
+ n.push(Ge(e, new ha(e.readInt(!0), e.readInt(!0), W), Ee.spacingMode == Vt.Length || Ee.spacingMode == Vt.Fixed ? r : 1));
10081
10081
  break;
10082
10082
  case Zl:
10083
- for (var p = new ca(e.readInt(!0), e.readInt(!0), W), g = e.readFloat(), rt = e.readFloat(), it = e.readFloat(), nt = e.readFloat(), m = 0, b = 0, d = p.getFrameCount() - 1; p.setFrame(m, g, rt, it, nt), m != d; m++) {
10083
+ for (var p = new ca(e.readInt(!0), e.readInt(!0), W), g = e.readFloat(), rt = e.readFloat(), nt = e.readFloat(), st = e.readFloat(), m = 0, b = 0, d = p.getFrameCount() - 1; p.setFrame(m, g, rt, nt, st), m != d; m++) {
10084
10084
  var C = e.readFloat(), Lt = e.readFloat(), ae = e.readFloat(), Bt = e.readFloat();
10085
10085
  switch (e.readByte()) {
10086
10086
  case Te:
10087
10087
  p.setStepped(m);
10088
10088
  break;
10089
10089
  case Pe:
10090
- ut(e, p, b++, m, 0, g, C, rt, Lt, 1), ut(e, p, b++, m, 1, g, C, it, ae, 1), ut(e, p, b++, m, 2, g, C, nt, Bt, 1);
10090
+ ut(e, p, b++, m, 0, g, C, rt, Lt, 1), ut(e, p, b++, m, 1, g, C, nt, ae, 1), ut(e, p, b++, m, 2, g, C, st, Bt, 1);
10091
10091
  }
10092
- g = C, rt = Lt, it = ae, nt = Bt;
10092
+ g = C, rt = Lt, nt = ae, st = Bt;
10093
10093
  }
10094
10094
  n.push(p);
10095
10095
  }
@@ -10192,7 +10192,7 @@ var Tl = (
10192
10192
  return s;
10193
10193
  }()
10194
10194
  );
10195
- function je(s, e, t) {
10195
+ function Ge(s, e, t) {
10196
10196
  for (var i = s.readFloat(), n = s.readFloat() * t, r = 0, o = 0, h = e.getFrameCount() - 1; e.setFrame(r, i, n), r != h; r++) {
10197
10197
  var u = s.readFloat(), l = s.readFloat() * t;
10198
10198
  switch (s.readByte()) {
@@ -10254,7 +10254,7 @@ var th = (
10254
10254
  if (a != null && (f = i.findBone(a), f == null))
10255
10255
  throw new Error("Parent bone not found: " + a);
10256
10256
  var c = new da(i.bones.length, l.name, f);
10257
- c.length = P(l, "length", 0) * t, c.x = P(l, "x", 0) * t, c.y = P(l, "y", 0) * t, c.rotation = P(l, "rotation", 0), c.scaleX = P(l, "scaleX", 1), c.scaleY = P(l, "scaleY", 1), c.shearX = P(l, "shearX", 0), c.shearY = P(l, "shearY", 0), c.transformMode = Z.enumValue(se, P(l, "transform", "Normal")), c.skinRequired = P(l, "skin", !1);
10257
+ c.length = P(l, "length", 0) * t, c.x = P(l, "x", 0) * t, c.y = P(l, "y", 0) * t, c.rotation = P(l, "rotation", 0), c.scaleX = P(l, "scaleX", 1), c.scaleY = P(l, "scaleY", 1), c.shearX = P(l, "shearX", 0), c.shearY = P(l, "shearY", 0), c.transformMode = Z.enumValue(re, P(l, "transform", "Normal")), c.skinRequired = P(l, "skin", !1);
10258
10258
  var d = P(l, "color", null);
10259
10259
  d && c.color.setFromString(d), i.bones.push(c);
10260
10260
  }
@@ -10482,7 +10482,7 @@ var th = (
10482
10482
  if (a) {
10483
10483
  var c = a.length;
10484
10484
  if (f == "attachment") {
10485
- for (var d = new xi(c, l), p = 0; p < c; p++) {
10485
+ for (var d = new Si(c, l), p = 0; p < c; p++) {
10486
10486
  var m = a[p];
10487
10487
  d.setFrame(p, P(m, "time", 0), P(m, "name", null));
10488
10488
  }
@@ -10610,15 +10610,15 @@ var th = (
10610
10610
  var q = i.findTransformConstraint(Y);
10611
10611
  if (!q)
10612
10612
  throw new Error("Transform constraint not found: " + Y);
10613
- for (var j = i.transformConstraints.indexOf(q), d = new oa(a.length, a.length * 6, j), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1), U = P(m, "mixY", $), J = P(m, "mixScaleX", 1), rt = P(m, "mixScaleY", J), it = P(m, "mixShearY", 1), p = 0, v = 0; ; p++) {
10614
- d.setFrame(p, _, V, $, U, J, rt, it);
10613
+ for (var j = i.transformConstraints.indexOf(q), d = new oa(a.length, a.length * 6, j), _ = P(m, "time", 0), V = P(m, "mixRotate", 1), $ = P(m, "mixX", 1), U = P(m, "mixY", $), J = P(m, "mixScaleX", 1), rt = P(m, "mixScaleY", J), nt = P(m, "mixShearY", 1), p = 0, v = 0; ; p++) {
10614
+ d.setFrame(p, _, V, $, U, J, rt, nt);
10615
10615
  var x = a[p + 1];
10616
10616
  if (!x) {
10617
10617
  d.shrink(v);
10618
10618
  break;
10619
10619
  }
10620
- var w = P(x, "time", 0), nt = P(x, "mixRotate", 1), ft = P(x, "mixX", 1), Pt = P(x, "mixY", ft), gt = P(x, "mixScaleX", 1), Lt = P(x, "mixScaleY", gt), ae = P(x, "mixShearY", 1), b = m.curve;
10621
- b && (v = dt(b, d, v, p, 0, _, w, V, nt, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1), v = dt(b, d, v, p, 3, _, w, J, gt, 1), v = dt(b, d, v, p, 4, _, w, rt, Lt, 1), v = dt(b, d, v, p, 5, _, w, it, ae, 1)), _ = w, V = nt, $ = ft, U = Pt, J = gt, rt = Lt, J = gt, m = x;
10620
+ var w = P(x, "time", 0), st = P(x, "mixRotate", 1), ft = P(x, "mixX", 1), Pt = P(x, "mixY", ft), gt = P(x, "mixScaleX", 1), Lt = P(x, "mixScaleY", gt), ae = P(x, "mixShearY", 1), b = m.curve;
10621
+ b && (v = dt(b, d, v, p, 0, _, w, V, st, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1), v = dt(b, d, v, p, 3, _, w, J, gt, 1), v = dt(b, d, v, p, 4, _, w, rt, Lt, 1), v = dt(b, d, v, p, 5, _, w, nt, ae, 1)), _ = w, V = st, $ = ft, U = Pt, J = gt, rt = Lt, J = gt, m = x;
10622
10622
  }
10623
10623
  r.push(d);
10624
10624
  }
@@ -10647,8 +10647,8 @@ var th = (
10647
10647
  d.shrink(v);
10648
10648
  break;
10649
10649
  }
10650
- var w = P(x, "time", 0), nt = P(x, "mixRotate", 1), ft = P(x, "mixX", 1), Pt = P(x, "mixY", ft), b = m.curve;
10651
- b && (v = dt(b, d, v, p, 0, _, w, V, nt, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1)), _ = w, V = nt, $ = ft, U = Pt, m = x;
10650
+ var w = P(x, "time", 0), st = P(x, "mixRotate", 1), ft = P(x, "mixX", 1), Pt = P(x, "mixY", ft), b = m.curve;
10651
+ b && (v = dt(b, d, v, p, 0, _, w, V, st, 1), v = dt(b, d, v, p, 1, _, w, $, ft, 1), v = dt(b, d, v, p, 2, _, w, U, Pt, 1)), _ = w, V = st, $ = ft, U = Pt, m = x;
10652
10652
  }
10653
10653
  r.push(d);
10654
10654
  }
@@ -10658,9 +10658,9 @@ var th = (
10658
10658
  if (e.deform) {
10659
10659
  e.attachments = {};
10660
10660
  for (var xe in e.deform) {
10661
- var ee = e.deform[xe], Ge = e.attachments[xe] = {};
10662
- for (var o in ee) {
10663
- var h = ee[o], Ee = Ge[o] = {};
10661
+ var ie = e.deform[xe], Ue = e.attachments[xe] = {};
10662
+ for (var o in ie) {
10663
+ var h = ie[o], Ee = Ue[o] = {};
10664
10664
  for (var oe in h)
10665
10665
  Ee[oe] = {
10666
10666
  deform: h[oe]
@@ -11097,7 +11097,7 @@ class wa extends Ct {
11097
11097
  }
11098
11098
  /** Generate texture for blackout */
11099
11099
  _generateTexture(t = 131586, i = 0.9) {
11100
- const n = gi(0, 0, 100, 100, 0, t, i);
11100
+ const n = _i(0, 0, 100, 100, 0, t, i);
11101
11101
  return this._renderer.generateTexture(n, { scaleMode: 1, resolution: 1 });
11102
11102
  }
11103
11103
  /** */
@@ -11155,14 +11155,14 @@ class Zc extends Ct {
11155
11155
  y(this, "_volatilityOdds", this._volatilityLevels.veryHigh);
11156
11156
  y(this, "_winLevels");
11157
11157
  y(this, "_coinsTextComponent");
11158
- y(this, "_coinsTextStyle", new Ve({
11158
+ y(this, "_coinsTextStyle", new Ke({
11159
11159
  ...Yt.defaultStyle,
11160
11160
  fontSize: 120,
11161
11161
  stroke: 0,
11162
11162
  strokeThickness: 6
11163
11163
  }));
11164
11164
  y(this, "_currencyTextComponent");
11165
- y(this, "_currencyTextStyle", new Ve({
11165
+ y(this, "_currencyTextStyle", new Ke({
11166
11166
  ...Yt.defaultStyle,
11167
11167
  fontSize: 80,
11168
11168
  stroke: 0,
@@ -11627,7 +11627,7 @@ class eu extends Un {
11627
11627
  constructor(t, i, n, r = null, o = !1, h, u) {
11628
11628
  super(t, n, r, o);
11629
11629
  y(this, "buttonText");
11630
- y(this, "buttonTextStyle", new Ve({
11630
+ y(this, "buttonTextStyle", new Ke({
11631
11631
  ...Yt.defaultStyle,
11632
11632
  fontWeight: "700",
11633
11633
  fontSize: et.isDesktop ? 26 : 16,
@@ -13070,7 +13070,7 @@ const Ah = (s, e, t) => {
13070
13070
  const n = i.getContext("2d"), r = n.createLinearGradient(0, s, 0, 0);
13071
13071
  return e.forEach((o, h) => {
13072
13072
  r.addColorStop(o, t[h]);
13073
- }), n.fillStyle = r, n.fillRect(0, 0, 1, s), vi.from(i);
13073
+ }), n.fillStyle = r, n.fillRect(0, 0, 1, s), yi.from(i);
13074
13074
  }, Ch = 70, kh = 1e3, Th = 1e3, Ph = 1e3, Fh = 1e3, St = 1;
13075
13075
  class ru extends Ct {
13076
13076
  constructor(t) {
@@ -13112,7 +13112,7 @@ class ru extends Ct {
13112
13112
  );
13113
13113
  }
13114
13114
  getFillingTexture() {
13115
- return Sh(gi(0, 0, 1, 1, 0, parseInt(this.config.color.replace("#", "0x"), 16)), {});
13115
+ return Sh(_i(0, 0, 1, 1, 0, parseInt(this.config.color.replace("#", "0x"), 16)), {});
13116
13116
  }
13117
13117
  async create(t) {
13118
13118
  return this.gradientTexture = this.getGradientTexture(), this.fillingTexture = this.getFillingTexture(), this.topFilling = new Tt(this.fillingTexture), this.bottomFilling = new Tt(this.fillingTexture), this.leftFilling = new Tt(this.fillingTexture), this.rightFilling = new Tt(this.fillingTexture), this.topGradient = new Tt(this.gradientTexture), this.bottomGradient = new Tt(this.gradientTexture), this.leftGradient = new Tt(this.gradientTexture), this.rightGradient = new Tt(this.gradientTexture), this.topFilling.anchor.set(0.5, 1), this.bottomFilling.anchor.set(0.5, 0), this.leftFilling.anchor.set(1, 0.5), this.rightFilling.anchor.set(0, 0.5), this.topGradient.anchor.set(0.5, 0), this.bottomGradient.anchor.set(0.5, 0), this.leftGradient.anchor.set(0.5, 0), this.rightGradient.anchor.set(0.5, 0), this.topFilling.name = "topFilling", this.bottomFilling.name = "bottomFilling", this.leftFilling.name = "leftFilling", this.rightFilling.name = "rightFilling", this.topGradient.name = "topGradient", this.bottomGradient.name = "bottomGradient", this.leftGradient.name = "leftGradient", this.rightGradient.name = "rightGradient", this.instance.addChild(
@@ -13145,7 +13145,7 @@ class au extends Ct {
13145
13145
  y(this, "_stateClicked", !1);
13146
13146
  y(this, "_text", null);
13147
13147
  y(this, "_initialText");
13148
- y(this, "textStyle", new Ve({
13148
+ y(this, "textStyle", new Ke({
13149
13149
  ...Yt.defaultStyle,
13150
13150
  fontFamily: "Ui",
13151
13151
  fontWeight: "500",
@@ -13299,9 +13299,9 @@ class Ye {
13299
13299
  return e.end !== e.start && (t.next = new Ye(typeof e.end == "string" ? Zi(e.end) : e.end, 1)), t;
13300
13300
  }
13301
13301
  }
13302
- let ji = vi.from;
13302
+ let ji = yi.from;
13303
13303
  const Be = Math.PI / 180;
13304
- function Ke(s, e) {
13304
+ function ze(s, e) {
13305
13305
  if (!s)
13306
13306
  return;
13307
13307
  const t = Math.sin(s), i = Math.cos(s), n = e.x * i - e.y * t, r = e.x * t + e.y * i;
@@ -13466,7 +13466,7 @@ class yt {
13466
13466
  if (this.rotation === e)
13467
13467
  return;
13468
13468
  const t = e - this.rotation;
13469
- this.rotation = e, Ke(t, this.spawnPos), this._posChanged = !0;
13469
+ this.rotation = e, ze(t, this.spawnPos), this._posChanged = !0;
13470
13470
  }
13471
13471
  /**
13472
13472
  * Changes the spawn position of the emitter.
@@ -13582,7 +13582,7 @@ class yt {
13582
13582
  const a = this.initBehaviors[f];
13583
13583
  if (a === hi)
13584
13584
  for (let c = u, d; c; c = d) {
13585
- d = c.next, this.rotation !== 0 && (Ke(this.rotation, c.position), c.rotation += this.rotation), c.position.x += o, c.position.y += h, c.age += -this._spawnTimer;
13585
+ d = c.next, this.rotation !== 0 && (ze(this.rotation, c.position), c.rotation += this.rotation), c.position.x += o, c.position.y += h, c.age += -this._spawnTimer;
13586
13586
  let p = c.age * c.oneOverLife;
13587
13587
  this.customEase && (this.customEase.length === 4 ? p = this.customEase(p, 0, 1, 1) : p = this.customEase(p)), c.agePercent = p;
13588
13588
  }
@@ -13630,7 +13630,7 @@ class yt {
13630
13630
  const o = this.initBehaviors[r];
13631
13631
  if (o === hi)
13632
13632
  for (let h = i, u; h; h = u)
13633
- u = h.next, this.rotation !== 0 && (Ke(this.rotation, h.position), h.rotation += this.rotation), h.position.x += e, h.position.y += t;
13633
+ u = h.next, this.rotation !== 0 && (ze(this.rotation, h.position), h.rotation += this.rotation), h.position.x += e, h.position.y += t;
13634
13634
  else
13635
13635
  o.initParticles(i);
13636
13636
  }
@@ -13681,7 +13681,7 @@ class _n {
13681
13681
  getRandPos(e) {
13682
13682
  this.innerRadius !== this.radius ? e.x = Math.random() * (this.radius - this.innerRadius) + this.innerRadius : e.x = this.radius, e.y = 0;
13683
13683
  const t = Math.random() * Math.PI * 2;
13684
- this.rotation && (e.rotation += t), Ke(t, e.position), e.position.x += this.x, e.position.y += this.y;
13684
+ this.rotation && (e.rotation += t), ze(t, e.position), e.position.x += this.x, e.position.y += this.y;
13685
13685
  }
13686
13686
  }
13687
13687
  _n.type = "torus";
@@ -13751,7 +13751,7 @@ class ms {
13751
13751
  let t = e;
13752
13752
  for (; t; ) {
13753
13753
  const i = Math.random() * (this.maxStart - this.minStart) + this.minStart;
13754
- t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), Ke(t.rotation, t.config.velocity), t = t.next;
13754
+ t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), ze(t.rotation, t.config.velocity), t = t.next;
13755
13755
  }
13756
13756
  }
13757
13757
  updateParticle(e, t) {
@@ -13853,7 +13853,7 @@ function Aa(s) {
13853
13853
  let i = s[t];
13854
13854
  if (typeof i == "string")
13855
13855
  e.push(ji(i));
13856
- else if (i instanceof vi)
13856
+ else if (i instanceof yi)
13857
13857
  e.push(i);
13858
13858
  else {
13859
13859
  let n = i.count || 1;
@@ -13887,7 +13887,7 @@ class vs {
13887
13887
  const i = e.config, n = i.anim;
13888
13888
  i.animElapsed += t, i.animElapsed >= i.animDuration && (i.anim.loop ? i.animElapsed = i.animElapsed % i.animDuration : i.animElapsed = i.animDuration - 1e-6);
13889
13889
  const r = i.animElapsed * i.animFramerate + 1e-7 | 0;
13890
- e.texture = n.textures[r] || n.textures[n.textures.length - 1] || vi.EMPTY;
13890
+ e.texture = n.textures[r] || n.textures[n.textures.length - 1] || yi.EMPTY;
13891
13891
  }
13892
13892
  }
13893
13893
  vs.type = "animatedRandom";
@@ -13913,7 +13913,7 @@ class ys {
13913
13913
  const i = this.anim, n = e.config;
13914
13914
  n.animElapsed += t, n.animElapsed >= n.animDuration && (i.loop ? n.animElapsed = n.animElapsed % n.animDuration : n.animElapsed = n.animDuration - 1e-6);
13915
13915
  const r = n.animElapsed * n.animFramerate + 1e-7 | 0;
13916
- e.texture = i.textures[r] || i.textures[i.textures.length - 1] || vi.EMPTY;
13916
+ e.texture = i.textures[r] || i.textures[i.textures.length - 1] || yi.EMPTY;
13917
13917
  }
13918
13918
  }
13919
13919
  ys.type = "animatedSingle";
@@ -13938,7 +13938,7 @@ class bs {
13938
13938
  let t = 0, i = e;
13939
13939
  for (; i; ) {
13940
13940
  let n;
13941
- this.spacing ? n = this.start + this.spacing * t : n = Math.random() * Math.PI * 2, i.rotation = n, this.distance && (i.position.x = this.distance, Ke(n, i.position)), i = i.next, ++t;
13941
+ this.spacing ? n = this.start + this.spacing * t : n = Math.random() * Math.PI * 2, i.rotation = n, this.distance && (i.position.x = this.distance, ze(n, i.position)), i = i.next, ++t;
13942
13942
  }
13943
13943
  }
13944
13944
  }
@@ -13986,7 +13986,7 @@ class As {
13986
13986
  }
13987
13987
  As.type = "textureOrdered";
13988
13988
  As.editorConfig = null;
13989
- const bi = new Mt(), Ca = [
13989
+ const xi = new Mt(), Ca = [
13990
13990
  "E",
13991
13991
  "LN2",
13992
13992
  "LN10",
@@ -14064,7 +14064,7 @@ class Cs {
14064
14064
  }
14065
14065
  updateParticle(e, t) {
14066
14066
  const i = this.list.interpolate(e.agePercent) * e.config.speedMult;
14067
- e.config.movement += i * t, bi.x = e.config.movement, bi.y = this.path(bi.x), Ke(e.config.initRotation, bi), e.position.x = e.config.initPosition.x + bi.x, e.position.y = e.config.initPosition.y + bi.y;
14067
+ e.config.movement += i * t, xi.x = e.config.movement, xi.y = this.path(xi.x), ze(e.config.initRotation, xi), e.position.x = e.config.initPosition.x + xi.x, e.position.y = e.config.initPosition.y + xi.y;
14068
14068
  }
14069
14069
  }
14070
14070
  Cs.type = "movePath";
@@ -14218,7 +14218,7 @@ class Os {
14218
14218
  let t = e;
14219
14219
  for (; t; ) {
14220
14220
  const i = Math.random() * (1 - this.minMult) + this.minMult;
14221
- t.config.speedMult = i, t.config.velocity ? t.config.velocity.set(this.list.first.value * i, 0) : t.config.velocity = new Mt(this.list.first.value * i, 0), Ke(t.rotation, t.config.velocity), t = t.next;
14221
+ t.config.speedMult = i, t.config.velocity ? t.config.velocity.set(this.list.first.value * i, 0) : t.config.velocity = new Mt(this.list.first.value * i, 0), ze(t.rotation, t.config.velocity), t = t.next;
14222
14222
  }
14223
14223
  }
14224
14224
  updateParticle(e, t) {
@@ -14236,7 +14236,7 @@ class Ls {
14236
14236
  let t = e;
14237
14237
  for (; t; ) {
14238
14238
  const i = Math.random() * (this.max - this.min) + this.min;
14239
- t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), Ke(t.rotation, t.config.velocity), t = t.next;
14239
+ t.config.velocity ? t.config.velocity.set(i, 0) : t.config.velocity = new Mt(i, 0), ze(t.rotation, t.config.velocity), t = t.next;
14240
14240
  }
14241
14241
  }
14242
14242
  updateParticle(e, t) {
@@ -14392,7 +14392,7 @@ function hn(s, e, t = !0) {
14392
14392
  }
14393
14393
  }
14394
14394
  }
14395
- const nr = new Ve({
14395
+ const nr = new Ke({
14396
14396
  ...Yt.defaultStyle,
14397
14397
  fontSize: 100,
14398
14398
  stroke: 0,
@@ -14591,7 +14591,7 @@ class Xh extends Ct {
14591
14591
  async draw(t) {
14592
14592
  if (!t) return this;
14593
14593
  const i = this.slideWidth, n = this.slideHeight;
14594
- return this.instance.removeMask(), this._mask = gi(0, 0, i, n), this._mask.position.set(0, 0), this.instance.setMask(this._mask), this._hitArea = gi(0, 0, i, n), this._hitArea.position.set(0, 0), await Promise.all([
14594
+ return this.instance.removeMask(), this._mask = _i(0, 0, i, n), this._mask.position.set(0, 0), this.instance.setMask(this._mask), this._hitArea = _i(0, 0, i, n), this._hitArea.position.set(0, 0), await Promise.all([
14595
14595
  [...this._slides.values()].map((r, o) => {
14596
14596
  r.position.x = i * o, r.draw(t);
14597
14597
  })
@@ -14819,7 +14819,7 @@ class ka extends Ct {
14819
14819
  animateFrame(t) {
14820
14820
  }
14821
14821
  }
14822
- function st(s, e, t) {
14822
+ function it(s, e, t) {
14823
14823
  return vt("skipActive", !1) && t !== void 0 ? t : vt("fastPlayEnabled", !1) ? e : s;
14824
14824
  }
14825
14825
  class uu extends ka {
@@ -14846,7 +14846,7 @@ class uu extends ka {
14846
14846
  Object.assign(n.position, this._config.grid.get(t)), n.anchor.set(0.5), n.scale.set(this._config.scale || 1), n.visible = !1, n.loop = !1, this._frames.set(t, n);
14847
14847
  }
14848
14848
  const i = this._frames.get(t);
14849
- this.instance.addChild(i), i.speed(st(...this._config.timeScale)), i.visible = !0, this._duration = i.size / (60 * i.animationSpeed) * 1e3, i.play(0, !0);
14849
+ this.instance.addChild(i), i.speed(it(...this._config.timeScale)), i.visible = !0, this._duration = i.size / (60 * i.animationSpeed) * 1e3, i.play(0, !0);
14850
14850
  }
14851
14851
  /** Stops animations */
14852
14852
  stop() {
@@ -14872,8 +14872,8 @@ class du extends ka {
14872
14872
  async start(t) {
14873
14873
  this._promise && this.break(), this._promise = new Promise((i) => this._resolve = i), t.forEach((i) => {
14874
14874
  const n = this.instance.addChild(this._animation.clone(`frame-${i}`));
14875
- n.position.copyFrom(this._config.grid.get(i)), n.animate(this._config.animationName, !1, !1, st(...this._config.timeScale) || 1), this._spines.push(n);
14876
- }), await Promise.race([this._promise, Si(this._durationMS)]), this._destroyAnimations();
14875
+ n.position.copyFrom(this._config.grid.get(i)), n.animate(this._config.animationName, !1, !1, it(...this._config.timeScale) || 1), this._spines.push(n);
14876
+ }), await Promise.race([this._promise, gi(this._durationMS)]), this._destroyAnimations();
14877
14877
  }
14878
14878
  /** */
14879
14879
  break() {
@@ -15006,14 +15006,14 @@ class pu extends Gh {
15006
15006
  async start(t) {
15007
15007
  this._isProcessing || (this._animation || (this._animation = zi.getSpineAnimation(this._config.assetName), this._animation.scale.set(this._config.scale.x, this._config.scale.y), this._animation.hide(), this._animation.alpha = 0, this.instance.addChild(this._animation)), this._isProcessing = !0, this._iReel = t, this._tweenFade && this._tweenFade.isActive() && this._tweenFade.progress(1), this._animation.position = this._config.grid.get(this._iReel).clone(), this._animation.position.x += this._config.offset.x, this._animation.position.y += this._config.offset.y, this._animation.show(), this._animation.animate(this._config.animationName, !0), this._config.events.start && this.emit(`${this.name}:start`, { iReel: this._iReel }), this._tweenFade = me(this._animation, {
15008
15008
  alpha: 1,
15009
- duration: st.apply(this, this._config.durationFadeIn) / 1e3
15009
+ duration: it.apply(this, this._config.durationFadeIn) / 1e3
15010
15010
  }));
15011
15011
  }
15012
15012
  /** @inheritdoc */
15013
15013
  async stop(t) {
15014
15014
  this._isProcessing && (this._tweenFade && this._tweenFade.isActive() && this._tweenFade.progress(1), this.emit(`${this.name}:stop`, { iReel: this._iReel }), this._isProcessing = !1, this._tweenFade = me(this._animation, {
15015
15015
  alpha: 0,
15016
- duration: st.apply(this, this._config.durationFadeOut) / 1e3,
15016
+ duration: it.apply(this, this._config.durationFadeOut) / 1e3,
15017
15017
  onComplete: () => {
15018
15018
  this._animation.state.clearTracks(), this._animation.hide();
15019
15019
  }
@@ -15057,7 +15057,7 @@ function qh(s) {
15057
15057
  });
15058
15058
  }
15059
15059
  function zh(s, e = 10, t = "power1.inOut") {
15060
- const i = [], n = re.parseEase(t), r = (s.length - 1) * e;
15060
+ const i = [], n = ee.parseEase(t), r = (s.length - 1) * e;
15061
15061
  for (let o = 0; o < r; o += 1) {
15062
15062
  const h = Math.floor(o / e), u = s[h], l = s[h + 1], f = (o - h * e) / e, a = l.y - u.y, c = l.x - u.x;
15063
15063
  i.push(new Mt(u.x + c * f, u.y + a * n(f)));
@@ -15079,7 +15079,7 @@ class mu extends jh {
15079
15079
  async animate(t) {
15080
15080
  const { duration: i } = this._config.static, n = this.createLine(t);
15081
15081
  n.alpha = 0;
15082
- const r = re.timeline().to(n, { pixi: { alpha: 1 }, duration: (i.fadeIn || 200) / 1e3 }).to(
15082
+ const r = ee.timeline().to(n, { pixi: { alpha: 1 }, duration: (i.fadeIn || 200) / 1e3 }).to(
15083
15083
  n,
15084
15084
  { pixi: { alpha: 0 }, duration: (i.fadeOut || 200) / 1e3 },
15085
15085
  `+=${(i.display || 0) / 1e3}`
@@ -15110,12 +15110,12 @@ class mu extends jh {
15110
15110
  /** Show preview line */
15111
15111
  async showPreviewLine(t) {
15112
15112
  const i = this.createLine(t);
15113
- i.alpha = 0, re.timeline().to(i, { pixi: { alpha: 1 }, duration: 0.2 }).to(i, { pixi: { alpha: 0 }, duration: 0.2 }, "+=1.8"), this.previewLines.push(i);
15113
+ i.alpha = 0, ee.timeline().to(i, { pixi: { alpha: 1 }, duration: 0.2 }).to(i, { pixi: { alpha: 0 }, duration: 0.2 }, "+=1.8"), this.previewLines.push(i);
15114
15114
  }
15115
15115
  /** Hide preview line with animation */
15116
15116
  async hidePreviewLine() {
15117
15117
  const t = this.previewLines.map((i) => new Promise((n) => {
15118
- re.timeline().to(i, { pixi: { alpha: 0 }, duration: 0.2 }).then(() => {
15118
+ ee.timeline().to(i, { pixi: { alpha: 0 }, duration: 0.2 }).then(() => {
15119
15119
  i.destroy(), this.instance.removeChildren(), n();
15120
15120
  });
15121
15121
  }));
@@ -15148,7 +15148,7 @@ var si, cn, sr, ve, Hi, Pa, jn, vn, Fa = function() {
15148
15148
  return typeof e == "function";
15149
15149
  }, Ea = function(e) {
15150
15150
  return console.warn(e);
15151
- }, Kh = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], ri = 0.212671, qe = 0.71516, Oe = 0.072169, Ia = function(e) {
15151
+ }, Kh = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], ri = 0.212671, je = 0.71516, Oe = 0.072169, Ia = function(e) {
15152
15152
  return qn(ve[e]) ? ve[e] : ve.filters[e];
15153
15153
  }, yn = function(e, t) {
15154
15154
  var i = [], n = 0, r = 0, o, h;
@@ -15159,15 +15159,15 @@ var si, cn, sr, ve, Hi, Pa, jn, vn, Fa = function() {
15159
15159
  }
15160
15160
  return i;
15161
15161
  }, rr = function(e, t) {
15162
- var i = 1 - t, n = i * ri, r = i * qe, o = i * Oe;
15162
+ var i = 1 - t, n = i * ri, r = i * je, o = i * Oe;
15163
15163
  return yn([n + t, r, o, 0, 0, n, r + t, o, 0, 0, n, r, o + t, 0, 0, 0, 0, 0, 1, 0], e);
15164
15164
  }, ar = function(e, t, i) {
15165
15165
  var n = cn(t), r = n[0] / 255, o = n[1] / 255, h = n[2] / 255, u = 1 - i;
15166
- return yn([u + i * r * ri, i * r * qe, i * r * Oe, 0, 0, i * o * ri, u + i * o * qe, i * o * Oe, 0, 0, i * h * ri, i * h * qe, u + i * h * Oe, 0, 0, 0, 0, 0, 1, 0], e);
15166
+ return yn([u + i * r * ri, i * r * je, i * r * Oe, 0, 0, i * o * ri, u + i * o * je, i * o * Oe, 0, 0, i * h * ri, i * h * je, u + i * h * Oe, 0, 0, 0, 0, 0, 1, 0], e);
15167
15167
  }, or = function(e, t) {
15168
15168
  t *= Math.PI / 180;
15169
15169
  var i = Math.cos(t), n = Math.sin(t);
15170
- return yn([ri + i * (1 - ri) + n * -0.212671, qe + i * -0.71516 + n * -0.71516, Oe + i * -0.072169 + n * (1 - Oe), 0, 0, ri + i * -0.212671 + n * 0.143, qe + i * (1 - qe) + n * 0.14, Oe + i * -0.072169 + n * -0.283, 0, 0, ri + i * -0.212671 + n * -0.787329, qe + i * -0.71516 + n * qe, Oe + i * (1 - Oe) + n * Oe, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], e);
15170
+ return yn([ri + i * (1 - ri) + n * -0.212671, je + i * -0.71516 + n * -0.71516, Oe + i * -0.072169 + n * (1 - Oe), 0, 0, ri + i * -0.212671 + n * 0.143, je + i * (1 - je) + n * 0.14, Oe + i * -0.072169 + n * -0.283, 0, 0, ri + i * -0.212671 + n * -0.787329, je + i * -0.71516 + n * je, Oe + i * (1 - Oe) + n * Oe, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], e);
15171
15171
  }, lr = function(e, t) {
15172
15172
  return yn([t, 0, 0, 0, 0.5 * (1 - t), 0, t, 0, 0, 0.5 * (1 - t), 0, 0, t, 0, 0.5 * (1 - t), 0, 0, 0, 1, 0], e);
15173
15173
  }, Ra = function(e, t) {
@@ -15295,7 +15295,7 @@ var La = {
15295
15295
  }
15296
15296
  };
15297
15297
  Ma() && si.registerPlugin(La);
15298
- re.registerPlugin(La);
15298
+ ee.registerPlugin(La);
15299
15299
  class Ba extends Ct {
15300
15300
  constructor(t, i, n) {
15301
15301
  super(t);
@@ -15309,10 +15309,9 @@ class Ba extends Ct {
15309
15309
  y(this, "_occupiedPositions", []);
15310
15310
  this._config = i, this._grid = n;
15311
15311
  }
15312
- async animate(t, i) {
15313
- if (!i) return;
15314
- const n = this._getPayoutPosition(t, i), r = await this._createPayoutContainer(i, n, this._getContainerOptions());
15315
- await this._animateContainer(r), await this._afterAnimate(), this._clear();
15312
+ async animate(t) {
15313
+ const i = this._getPayoutPosition(t), n = await this._createPayoutContainer(t, i, this._getContainerOptions());
15314
+ await this._animateContainer(n), await this._afterAnimate(), this._clear();
15316
15315
  }
15317
15316
  /**
15318
15317
  * Hook: called after animation completes
@@ -15323,10 +15322,10 @@ class Ba extends Ct {
15323
15322
  * Gets the position where payout should be displayed
15324
15323
  * Default: uses center of grid
15325
15324
  */
15326
- _getPayoutPosition(t, i) {
15327
- var o, h;
15328
- const n = ((o = this._config.positioning) == null ? void 0 : o.customPosition) || this._getCenterPosition(), r = ((h = this._config.positioning) == null ? void 0 : h.offset) || { x: 0, y: 0 };
15329
- return { x: n.x + r.x, y: n.y + r.y };
15325
+ _getPayoutPosition(t) {
15326
+ var r, o;
15327
+ const i = ((r = this._config.positioning) == null ? void 0 : r.customPosition) || this._getCenterPosition(), n = ((o = this._config.positioning) == null ? void 0 : o.offset) || { x: 0, y: 0 };
15328
+ return { x: i.x + n.x, y: i.y + n.y };
15330
15329
  }
15331
15330
  /**
15332
15331
  * Gets options for _createPayoutContainer
@@ -15345,15 +15344,23 @@ class Ba extends Ct {
15345
15344
  * Default: simple show -> hold -> hide animation
15346
15345
  */
15347
15346
  async _animateContainer(t) {
15348
- const { animation: i } = this._config, n = (i == null ? void 0 : i.initial) || { pixi: { alpha: 0, scale: 0.9 } }, r = (i == null ? void 0 : i.durationDisplay) || 2e3, o = this._getAnimationVars(i == null ? void 0 : i.animateShow, {
15347
+ const { animation: i } = this._config, n = (i == null ? void 0 : i.initial) || { pixi: { alpha: 0, scale: 0.9 } }, r = it(
15348
+ (i == null ? void 0 : i.durationDisplay) || 2e3,
15349
+ (i == null ? void 0 : i.durationDisplayFast) ?? (i == null ? void 0 : i.durationDisplay) ?? 0
15350
+ ), o = this._getAnimationVars(i == null ? void 0 : i.animateShow, {
15349
15351
  duration: 0.2,
15350
15352
  pixi: { alpha: 1, scale: 1 }
15351
15353
  }), h = this._getAnimationVars(i == null ? void 0 : i.animateHide, {
15352
15354
  duration: 0.2,
15353
15355
  pixi: { alpha: 0, scale: 0.8 }
15354
- }), u = `payout.animation.${Date.now()}.${Math.random()}`, l = Qt(u).set(t, n).to(t, o).to(t, { delay: r / 1e3, ...h }).timeScale(st(1, this._config.fastModeTimeScale || 1));
15356
+ });
15357
+ this._applyInitialState(t, n);
15358
+ const u = `payout.animation.${Date.now()}.${Math.random()}`, l = Qt(u).set(t, n).to(t, o).to(t, { delay: r / 1e3, ...h }).timeScale(it(1, this._config.fastModeTimeScale || 1));
15355
15359
  this._timelines.push(l), await l;
15356
15360
  }
15361
+ _applyInitialState(t, i) {
15362
+ i && ee.set(t, i);
15363
+ }
15357
15364
  _createGlowSprite(t, i) {
15358
15365
  if (!(t != null && t.enabled) || !t.assetName || !t.textureName)
15359
15366
  return null;
@@ -15379,23 +15386,23 @@ class Ba extends Ct {
15379
15386
  return { textComponent: r, currencyComponent: o };
15380
15387
  }
15381
15388
  _formatCoinsText(t, i, n) {
15382
- const r = n.showCurrency !== !1 && !n.currencyStyle;
15383
- let o;
15389
+ const r = n.showCurrency !== !1 && !n.currencyStyle, o = typeof i.coins == "number" ? i.coins : 0;
15390
+ let h;
15384
15391
  if (typeof truelogic < "u" && truelogic.cashFormatter)
15385
15392
  if (t instanceof sn && r) {
15386
- t.coinsFormat(i, !0);
15393
+ t.coinsFormat(o, !0);
15387
15394
  return;
15388
15395
  } else
15389
- o = truelogic.cashFormatter.formatCoins(i, { showCurrency: r });
15396
+ h = truelogic.cashFormatter.formatCoins(o, { showCurrency: r });
15390
15397
  else
15391
- o = r && n.currency ? `${i.toLocaleString()} ${n.currency}` : i.toLocaleString();
15392
- t.text = o;
15398
+ h = r && n.currency ? `${o.toLocaleString()} ${n.currency}` : o.toLocaleString();
15399
+ t.text = h;
15393
15400
  }
15394
15401
  _applyTextAndCurrencyScaling(t, i, n) {
15395
- if (!i) return;
15396
15402
  let r = t.scale.x;
15397
15403
  const o = n ?? (this._grid.reelWidth ? this._grid.reelWidth * 1.5 : void 0);
15398
- o && t.width > o && (r = o / t.width, t.scale.set(r)), r < 1 && (i.scale.set(r), i.position.set(
15404
+ if (o && t.width > o && (r = o / t.width, t.scale.set(r)), !i) return;
15405
+ r < 1 && (i.scale.set(r), i.position.set(
15399
15406
  (i.position.x || 0) * r,
15400
15407
  (i.position.y || 0) * r
15401
15408
  ));
@@ -15411,7 +15418,7 @@ class Ba extends Ct {
15411
15418
  _getAnimationVars(t, i) {
15412
15419
  if (!t) return i || {};
15413
15420
  const [n, r] = t;
15414
- return r && st(0, 1) === 1 ? { ...n, ...r } : n;
15421
+ return r && it(0, 1) === 1 ? { ...n, ...r } : n;
15415
15422
  }
15416
15423
  _getWinPosition(t, i) {
15417
15424
  const n = [];
@@ -15496,19 +15503,21 @@ class Ba extends Ct {
15496
15503
  * Base implementation that can be used by both regular and total payout components
15497
15504
  */
15498
15505
  async _createPayoutContainer(t, i, n) {
15499
- var l, f;
15506
+ var f, a, c;
15500
15507
  const r = new jt("payout.container"), { textComponent: o, currencyComponent: h } = await this._createTextComponents(
15501
15508
  t,
15502
15509
  this._config.text || {},
15503
15510
  r
15504
15511
  );
15505
15512
  if ((n == null ? void 0 : n.applyScaling) !== !1) {
15506
- const a = (n == null ? void 0 : n.maxWidth) ?? ((l = this._config.text) == null ? void 0 : l.maxWidth) ?? this._getDefaultMaxWidth();
15507
- this._applyTextAndCurrencyScaling(o, h, a);
15513
+ const d = (n == null ? void 0 : n.maxWidth) ?? ((f = this._config.text) == null ? void 0 : f.maxWidth) ?? this._getDefaultMaxWidth();
15514
+ this._applyTextAndCurrencyScaling(o, h, d);
15508
15515
  }
15509
15516
  r.position.set(i.x, i.y);
15510
- const u = this._createAndAddGlowSprite((f = this._config.effects) == null ? void 0 : f.glow, o, r, !1);
15511
- return n != null && n.applyEdgeCorrection && this._applyCascadeEdgeCorrection(r, o), this.instance.addChild(r), this._containers.push(r), this._textComponents.push(o), h && this._textComponents.push(h), u && this._glows.push(u), r;
15517
+ const u = this._createAndAddGlowSprite((a = this._config.effects) == null ? void 0 : a.glow, o, r, !1);
15518
+ n != null && n.applyEdgeCorrection && this._applyCascadeEdgeCorrection(r, o);
15519
+ const l = ((c = this._config.animation) == null ? void 0 : c.initial) || { pixi: { alpha: 0, scale: 0.9 } };
15520
+ return this._applyInitialState(r, l), this.instance.addChild(r), this._containers.push(r), this._textComponents.push(o), h && this._textComponents.push(h), u && this._glows.push(u), r;
15512
15521
  }
15513
15522
  async create(t) {
15514
15523
  return await super.create(t), this._containers = [], this._textComponents = [], this._glows = [], this;
@@ -15568,13 +15577,13 @@ class gu extends Ba {
15568
15577
  duration: 0.2,
15569
15578
  pixi: { alpha: 0, scale: 0.8 },
15570
15579
  ease: Fe.out
15571
- }), h = `payout.animation.${Date.now()}.${Math.random()}`, u = Qt(h).set(e, i).to(e, r).to(e, { delay: n / 1e3, ...o }).timeScale(st(1, this._config.fastModeTimeScale || 1));
15580
+ }), h = `payout.animation.${Date.now()}.${Math.random()}`, u = Qt(h).set(e, i).to(e, r).to(e, { delay: n / 1e3, ...o }).timeScale(it(1, this._config.fastModeTimeScale || 1));
15572
15581
  this._timelines.push(u), await u;
15573
15582
  }
15574
15583
  }
15575
15584
  class _u extends Ba {
15576
15585
  constructor(t, i) {
15577
- super("total-payout.component", t, i);
15586
+ super("total-payout.component", t, i ?? t.grid);
15578
15587
  y(this, "_timelineTotal", null);
15579
15588
  this.on("skip.totalWinCoefficient:active", this.name, () => this.skip());
15580
15589
  }
@@ -15609,7 +15618,7 @@ class _u extends Ba {
15609
15618
  pixi: { alpha: 0, scale: o || 1 }
15610
15619
  });
15611
15620
  t.alpha = 0, t.scale.set(r || 0.98);
15612
- const a = `total-payout.animation.${Date.now()}.${Math.random()}`, c = Qt(a).to(t, l).to(t, { delay: u / 1e3, ...f }).call(() => this.emit("skip:enable", { tag: "totalWinCoefficient" }), null, h).timeScale(st(1, i.fastModeTimeScale || 1));
15621
+ const a = `total-payout.animation.${Date.now()}.${Math.random()}`, c = Qt(a).to(t, l).to(t, { delay: u / 1e3, ...f }).call(() => this.emit("skip:enable", { tag: "totalWinCoefficient" }), null, h).timeScale(it(1, i.fastModeTimeScale || 1));
15613
15622
  this._timelineTotal = c, await c;
15614
15623
  }
15615
15624
  async skip() {
@@ -15623,7 +15632,7 @@ class _u extends Ba {
15623
15632
  }
15624
15633
  }
15625
15634
  function oc(s, e, t = 30, i = t) {
15626
- const n = gi(0, t, s, e - (i + t)), r = 100 / t;
15635
+ const n = _i(0, t, s, e - (i + t)), r = 100 / t;
15627
15636
  for (let h = 0; h < t; h++)
15628
15637
  n.lineStyle(1, 16777215, (100 - r * h) / 100), n.moveTo(0, t - h), n.lineTo(s, t - h);
15629
15638
  const o = 100 / i;
@@ -15798,7 +15807,7 @@ class vu extends Ct {
15798
15807
  }
15799
15808
  /** Adds single symbol movement to motion timeline */
15800
15809
  addMotion() {
15801
- const t = st.apply(this, this._config.timings.spin.motion) / 1e3, i = this._config.components.symbol.size.height + this._config.components.symbol.size.indentTop;
15810
+ const t = it.apply(this, this._config.timings.spin.motion) / 1e3, i = this._config.components.symbol.size.height + this._config.components.symbol.size.indentTop;
15802
15811
  this._tlMotion.call(() => this.spawn(!this._isStopProcessing)).to(this._symbolsContainer, {
15803
15812
  y: i,
15804
15813
  duration: t,
@@ -15809,11 +15818,11 @@ class vu extends Ct {
15809
15818
  /** Animates bounce */
15810
15819
  async animateBounce() {
15811
15820
  this._config.bounceOffset && (this._config.events.bounce && this.emit(`${this.name}:bounce`, { iReel: this.iReel, stopCodes: this._stopCodesInitial }), this._tlMotion.to(this._symbolsContainer, {
15812
- duration: st(...this._config.timings.spin.bounceDown) / 1e3,
15821
+ duration: it(...this._config.timings.spin.bounceDown) / 1e3,
15813
15822
  y: this._config.bounceOffset,
15814
15823
  ease: Fe.none
15815
15824
  }).to(this._symbolsContainer, {
15816
- duration: st(...this._config.timings.spin.bounceUp) / 1e3,
15825
+ duration: it(...this._config.timings.spin.bounceUp) / 1e3,
15817
15826
  y: 0,
15818
15827
  ease: Fe.none
15819
15828
  }), await this._tlMotion);
@@ -15838,8 +15847,8 @@ class vu extends Ct {
15838
15847
  /** Animates intrigue */
15839
15848
  async animateIntrigue() {
15840
15849
  const t = this._config.components.intrigue.motion;
15841
- this._breakableSleep = me({}, { duration: st.apply(this, t.delay) / 1e3 }), await this._breakableSleep, vt("skipActive", !1) || await this.setTimeScale(st(...t.timeScale), {
15842
- duration: st.apply(this, t.duration) / 1e3,
15850
+ this._breakableSleep = me({}, { duration: it.apply(this, t.delay) / 1e3 }), await this._breakableSleep, vt("skipActive", !1) || await this.setTimeScale(it(...t.timeScale), {
15851
+ duration: it.apply(this, t.duration) / 1e3,
15843
15852
  ease: t.ease
15844
15853
  });
15845
15854
  }
@@ -15899,7 +15908,7 @@ class vu extends Ct {
15899
15908
  this._animateMotion({ type: "clear", symbol: i });
15900
15909
  }), Bi.wait(
15901
15910
  () => this._tlMotion.then(),
15902
- () => this._tlMotion.timeScale(st(...t)),
15911
+ () => this._tlMotion.timeScale(it(...t)),
15903
15912
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
15904
15913
  );
15905
15914
  }
@@ -15911,7 +15920,7 @@ class vu extends Ct {
15911
15920
  this._animateMotion({ type: "fall", symbol: r, toPosition: r.iRow, hasIntrigue: i });
15912
15921
  }), this._tlMotion.timeScale(vt("skipActive", !1) ? this._config.cascade.skipTimeScale : 1), Bi.wait(
15913
15922
  () => this._tlMotion.then(),
15914
- () => this._tlMotion.timeScale(st(...n)),
15923
+ () => this._tlMotion.timeScale(it(...n)),
15915
15924
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
15916
15925
  );
15917
15926
  }
@@ -15945,7 +15954,7 @@ class vu extends Ct {
15945
15954
  });
15946
15955
  }), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
15947
15956
  () => this._tlMotion.then(),
15948
- () => this._tlMotion.timeScale(st(...h.timeScale)),
15957
+ () => this._tlMotion.timeScale(it(...h.timeScale)),
15949
15958
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
15950
15959
  );
15951
15960
  }
@@ -15958,7 +15967,7 @@ class vu extends Ct {
15958
15967
  u.iRow = l.iRow, l.iRow = f, l.position.copyFrom(a), this._symbols[r + 1] = l, this._symbols[o + 1] = u, this._animateMotion({ type: "move", symbol: u, toPosition: o, playingRowIdx: h, playingReelIdx: i });
15959
15968
  }), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
15960
15969
  () => this._tlMotion.then(),
15961
- () => this._tlMotion.timeScale(st(...n)),
15970
+ () => this._tlMotion.timeScale(it(...n)),
15962
15971
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
15963
15972
  );
15964
15973
  }
@@ -15978,7 +15987,7 @@ class vu extends Ct {
15978
15987
  });
15979
15988
  }), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
15980
15989
  () => this._tlMotion.then(),
15981
- () => this._tlMotion.timeScale(st(...o)),
15990
+ () => this._tlMotion.timeScale(it(...o)),
15982
15991
  () => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
15983
15992
  );
15984
15993
  }
@@ -15998,17 +16007,17 @@ class vu extends Ct {
15998
16007
  toPosition: -1,
15999
16008
  hasIntrigue: !1,
16000
16009
  ...t
16001
- }, { height: g, indentTop: v } = this._config.components.symbol.size, x = m * (g + v), w = st(...i) + (this._config.cascade.distanceRelative ? x : 0), S = st(...r) * d, b = _ ? 0 : st(...o) * p;
16010
+ }, { height: g, indentTop: v } = this._config.components.symbol.size, x = m * (g + v), w = it(...i) + (this._config.cascade.distanceRelative ? x : 0), S = it(...r) * d, b = _ ? 0 : it(...o) * p;
16002
16011
  let C = S + b;
16003
16012
  if (_) {
16004
16013
  const { rowsIntrigueDelay: z, reelsIntrigueDelay: q, onRefill: j } = this._config.intrigue;
16005
- j && (C += st(...z) * d, C += st(...q));
16014
+ j && (C += it(...z) * d, C += it(...q));
16006
16015
  }
16007
16016
  (f === "fall" || f === "refill") && (a.y = -w, a.animateShow()), this._tlMotion.to(
16008
16017
  a,
16009
16018
  {
16010
16019
  y: f === "clear" ? w : this._gridY[c],
16011
- duration: st(...n),
16020
+ duration: it(...n),
16012
16021
  delay: C,
16013
16022
  ease: l,
16014
16023
  onStart: () => this._motionStarted(f, a),
@@ -16018,12 +16027,12 @@ class vu extends Ct {
16018
16027
  ), h[0] && this._tlMotion.call(
16019
16028
  () => a.setTextureByCode(a.code, !0),
16020
16029
  null,
16021
- st(...h) + C
16030
+ it(...h) + C
16022
16031
  ), u[0] && this._tlMotion.call(
16023
16032
  () => a.setTextureByCode(a.code, !1),
16024
16033
  null,
16025
- C + st(...n) - st(...u)
16026
- ), (f === "refill" || f === "fall") && this._tlMotion.call(() => a.animateStop(), null, C + st(...n));
16034
+ C + it(...n) - it(...u)
16035
+ ), (f === "refill" || f === "fall") && this._tlMotion.call(() => a.animateStop(), null, C + it(...n));
16027
16036
  const {
16028
16037
  distance: F,
16029
16038
  durationDown: T,
@@ -16036,23 +16045,23 @@ class vu extends Ct {
16036
16045
  F[0] && f !== "clear" && this._tlMotion.to(
16037
16046
  a,
16038
16047
  {
16039
- y: this._gridY[c] + st(...F),
16040
- duration: st(...T),
16041
- scaleX: st(...N),
16042
- scaleY: st(...Y),
16048
+ y: this._gridY[c] + it(...F),
16049
+ duration: it(...T),
16050
+ scaleX: it(...N),
16051
+ scaleY: it(...Y),
16043
16052
  ease: L
16044
16053
  },
16045
- C + st(...n)
16054
+ C + it(...n)
16046
16055
  ).to(
16047
16056
  a,
16048
16057
  {
16049
16058
  y: this._gridY[c],
16050
- duration: st(...E),
16059
+ duration: it(...E),
16051
16060
  scaleX: 1,
16052
16061
  scaleY: 1,
16053
16062
  ease: D
16054
16063
  },
16055
- C + st(...n) + st(...T)
16064
+ C + it(...n) + it(...T)
16056
16065
  );
16057
16066
  }
16058
16067
  /** optional actions before base move animation */
@@ -16572,7 +16581,7 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16572
16581
  fastModeTimeScale: 1,
16573
16582
  text: {
16574
16583
  showCurrency: !0,
16575
- style: new Ve({
16584
+ style: {
16576
16585
  fontFamily: "Ui",
16577
16586
  fontWeight: "600",
16578
16587
  fontSize: 112,
@@ -16583,7 +16592,7 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16583
16592
  letterSpacing: 1,
16584
16593
  stroke: 1646398,
16585
16594
  strokeThickness: 4
16586
- })
16595
+ }
16587
16596
  },
16588
16597
  animation: {
16589
16598
  durationDisplay: 1e3,
@@ -16610,7 +16619,6 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
16610
16619
  ]
16611
16620
  },
16612
16621
  positioning: {
16613
- offset: { x: 0, y: -20 },
16614
16622
  chessOffset: 1
16615
16623
  },
16616
16624
  avoidOverlap: !0,
@@ -16646,6 +16654,7 @@ class yu extends Ct {
16646
16654
  y(this, "_startPromises", []);
16647
16655
  y(this, "_winSymbolContainer");
16648
16656
  y(this, "_winSymbolsParentContainer", []);
16657
+ y(this, "_activeWinPositions", /* @__PURE__ */ new Set());
16649
16658
  t && hn(this._config, t);
16650
16659
  }
16651
16660
  /** Gets slot width */
@@ -16753,14 +16762,14 @@ class yu extends Ct {
16753
16762
  }
16754
16763
  /** Breaks all current animations */
16755
16764
  breakAllAnimations() {
16756
- this._config.components.lines.enabled && this.stopLines(), this._config.components.payout && this._payoutComponent.break(), this._config.components.totalPayout && this._totalPayoutComponent.break(), this._config.components.frames.enabled && this._framesComponent.break(), this._config.components.hints.enabled && (this._hintsComponent.disabled = !0);
16765
+ this._config.components.lines.enabled && this.stopLines(), this._config.components.payout && this._payoutComponent.break(), this._config.components.totalPayout && this._totalPayoutComponent.break(), this._config.components.frames.enabled && this._framesComponent.break(), this._config.components.hints.enabled && (this._hintsComponent.disabled = !0), this._activeWinPositions.clear(), this._syncInactiveSymbolsState();
16757
16766
  }
16758
16767
  /** Starts spin */
16759
16768
  async start() {
16760
16769
  this.breakAllAnimations(), this.stopSounds(), this._config.events.start && this.emit(`${this.name}:start`), this._isMotion = !0;
16761
16770
  for (const [t, i] of this._config.order.start.entries()) {
16762
- const n = st(...this._config.spinDelay.start);
16763
- t > 0 && n && await Si(n), this._startPromises = i.map((r) => this._reels[r].start());
16771
+ const n = it(...this._config.spinDelay.start);
16772
+ t > 0 && n && await gi(n), this._startPromises = i.map((r) => this._reels[r].start());
16764
16773
  }
16765
16774
  }
16766
16775
  /** Stops spin */
@@ -16769,7 +16778,7 @@ class yu extends Ct {
16769
16778
  await Promise.all(this._startPromises);
16770
16779
  const i = [], { numRows: n } = this._config.components.reel, r = this.getIntrigueReels(t), o = this._config.components.reel.intrigue.onStop;
16771
16780
  for (const [h, u] of this._config.order.stop.entries()) {
16772
- const l = this._config.components.reel.animationType === Le.slot ? st(...this._config.spinDelay.stop) : 0;
16781
+ const l = this._config.components.reel.animationType === Le.slot ? it(...this._config.spinDelay.stop) : 0;
16773
16782
  h > 0 && l && !vt("skipActive", !1) && (this._breakableSleep = me({}, { duration: l / 1e3 }), await this._breakableSleep);
16774
16783
  let f = !1;
16775
16784
  for (let a = 0; a < u.length; a++) {
@@ -16844,20 +16853,23 @@ class yu extends Ct {
16844
16853
  * Анимирует один payout (выплату)
16845
16854
  * Может быть вызван параллельно много раз
16846
16855
  */
16847
- async animatePayout(t, i) {
16848
- if (!this._config.components.payout) return;
16849
- const n = t.positions.slice(0, t.length), r = this.getAllPositions().filter((o) => !n.includes(o));
16850
- this._moveWinSymbolsToFront(n), this.playSoundWin(n), this._toggleInactiveSymbols(r, !0), await Promise.all([
16851
- this._payoutComponent.animate(t, i),
16856
+ async animatePayout(t, i = !0) {
16857
+ const n = t.positions.slice(0, t.length);
16858
+ n.forEach((o) => this._activeWinPositions.add(o)), this._moveWinSymbolsToFront(n), this.playSoundWin(n), this._syncInactiveSymbolsState();
16859
+ const r = i ? this._payoutComponent.animate(t) : this._getPayoutAnimationFallbackPromise();
16860
+ await Promise.all([
16861
+ r,
16852
16862
  this._config.components.frames.enabled ? this._framesComponent.start(n) : null,
16853
16863
  Promise.all(n.map((o) => this.getSymbolByPosition(o).animateWin()))
16854
- ]), this._moveWinSymbolsBack(n), this._toggleInactiveSymbols(r, !1);
16864
+ ]), this._moveWinSymbolsBack(n), n.forEach((o) => this._activeWinPositions.delete(o)), this._syncInactiveSymbolsState();
16855
16865
  }
16856
16866
  /**
16857
16867
  * Анимирует общую сумму выигрыша (total win)
16858
16868
  */
16859
- async animateTotalPayout(t, i) {
16860
- this._config.components.totalPayout && await this._totalPayoutComponent.animate(t, i);
16869
+ async animateTotalPayout(t) {
16870
+ if (!this._config.components.totalPayout) return;
16871
+ const i = { symbol: 0, coins: t, length: 0, positions: [] };
16872
+ await this._totalPayoutComponent.animate(i);
16861
16873
  }
16862
16874
  /**
16863
16875
  * Алиас для animateLine через лайнс компонент
@@ -16865,11 +16877,6 @@ class yu extends Ct {
16865
16877
  async animateLine(t) {
16866
16878
  await this._linesComponent.animate(t.line);
16867
16879
  }
16868
- /** @deprecated Использовать animatePayout вместо animateWin */
16869
- async animateWin(t, i) {
16870
- const n = this.getWinsPositions(t), r = this.getAllPositions().filter((o) => !n.includes(o));
16871
- this._moveWinSymbolsToFront(n), this.playSoundWin(n), this._toggleInactiveSymbols(r, !0), await this.animateWinSymbols(t, i), this._moveWinSymbolsBack(n), this._toggleInactiveSymbols(r, !1);
16872
- }
16873
16880
  /** */
16874
16881
  _moveWinSymbolsToFront(t) {
16875
16882
  if (!this._config.order.sortWinSymbols) return;
@@ -16926,10 +16933,7 @@ class yu extends Ct {
16926
16933
  for (; !this._linesComponent.disabled; ) {
16927
16934
  const n = t[i], r = n.line.slice(0, n.length);
16928
16935
  await Promise.all([
16929
- this.animatePayout(
16930
- { symbol: 0, coins: n.coins, length: n.length, positions: r },
16931
- n.coins
16932
- ),
16936
+ this.animatePayout({ symbol: 0, coins: n.coins, length: n.length, positions: r }, !0),
16933
16937
  this.animateLine(n)
16934
16938
  ]), i < t.length - 1 ? i++ : i = 0;
16935
16939
  }
@@ -16938,28 +16942,50 @@ class yu extends Ct {
16938
16942
  stopLines() {
16939
16943
  !this._config.components.lines.enabled || this._linesComponent.disabled || (this._linesComponent.disabled = !0, this._linesComponent.break());
16940
16944
  }
16941
- /** Animates symbols */
16942
- async animateWinSymbols(t, i, n = !0) {
16943
- const r = this._config.components.frames.enabled && n, o = this.getWinsPositions(t), h = i !== void 0 ? i : t.reduce((l, f) => l + (f.coins || 0), 0);
16944
- let u = Promise.resolve();
16945
- if (this._config.components.payout || this._config.components.totalPayout) {
16946
- const l = t.some((f) => f.line !== void 0);
16947
- l && this._config.components.totalPayout && h > 0 ? u = this._totalPayoutComponent.animate(
16948
- { symbol: 0, coins: h, length: 0, positions: [] },
16949
- h
16950
- ) : !l && this._config.components.payout && t.length > 0 && (u = Promise.all(
16951
- t.map((f) => this._payoutComponent.animate(f, f.coins))
16952
- ).then());
16953
- }
16954
- await Promise.all([
16955
- r ? this._framesComponent.start(o) : null,
16956
- u,
16957
- Promise.all(o.map((l) => this.getSymbolByPosition(l).animateWin()))
16958
- ]);
16959
- }
16960
16945
  /** */
16961
- _toggleInactiveSymbols(t, i) {
16962
- t.forEach((n) => this.getSymbolByPosition(n).toggleInactive(i));
16946
+ _syncInactiveSymbolsState() {
16947
+ if (!this._reels.length) return;
16948
+ const t = this._activeWinPositions.size === 0;
16949
+ this.getAllPositions().forEach((i) => {
16950
+ const n = this._activeWinPositions.has(i);
16951
+ this.getSymbolByPosition(i).toggleInactive(t ? !1 : !n);
16952
+ });
16953
+ }
16954
+ /**
16955
+ * Provides a fallback delay when payouts text/glow are hidden
16956
+ * so that inactive symbol highlighting remains visible.
16957
+ */
16958
+ _getPayoutAnimationFallbackPromise() {
16959
+ const { payout: t, totalPayout: i } = this._config.components, n = i != null && i.animation ? {
16960
+ durationDisplay: it(
16961
+ i.animation.durationDisplay || 0,
16962
+ i.animation.durationDisplayFast ?? i.animation.durationDisplay ?? 0
16963
+ ),
16964
+ animateShow: i.animation.animateShow,
16965
+ animateHide: i.animation.animateHide,
16966
+ fastModeTimeScale: i.fastModeTimeScale || 1
16967
+ } : t != null && t.animation ? {
16968
+ durationDisplay: it(
16969
+ t.animation.durationDisplay || 0,
16970
+ t.animation.durationDisplayFast ?? t.animation.durationDisplay ?? 0
16971
+ ),
16972
+ animateShow: t.animation.animateShow,
16973
+ animateHide: t.animation.animateHide,
16974
+ fastModeTimeScale: t.fastModeTimeScale || 1
16975
+ } : null;
16976
+ if (!n) return null;
16977
+ let r = n.durationDisplay;
16978
+ if (n.animateShow) {
16979
+ const [h] = n.animateShow;
16980
+ h.duration && typeof h.duration == "number" && (r += h.duration * 1e3);
16981
+ }
16982
+ if (n.animateHide) {
16983
+ const [h] = n.animateHide;
16984
+ h.duration && typeof h.duration == "number" && (r += h.duration * 1e3);
16985
+ }
16986
+ if (r <= 0) return null;
16987
+ const o = it(1, n.fastModeTimeScale) || 1;
16988
+ return gi(r / o);
16963
16989
  }
16964
16990
  /** */
16965
16991
  async animateHideSymbols(t) {
@@ -17292,12 +17318,12 @@ class Ya extends Ct {
17292
17318
  async animateHide() {
17293
17319
  const { hideDuration: t, hideDelay: i } = this._config.vanish, n = Qt().to(
17294
17320
  this._sprite,
17295
- { alpha: 0, duration: st(...t), delay: st(...i) },
17321
+ { alpha: 0, duration: it(...t), delay: it(...i) },
17296
17322
  0
17297
17323
  );
17298
17324
  this._animation && n.to(
17299
17325
  this._animation,
17300
- { alpha: 0, duration: st(...t), delay: st(...i) },
17326
+ { alpha: 0, duration: it(...t), delay: it(...i) },
17301
17327
  0
17302
17328
  ), await n;
17303
17329
  }
@@ -17333,7 +17359,7 @@ class bu extends Ya {
17333
17359
  }
17334
17360
  /** @inheritdoc */
17335
17361
  async animateName(e, t) {
17336
- this.disabled || !this.initAnimation() || (await this._animation.animate(e, !1, !1, st(...t)), this.animateIdle());
17362
+ this.disabled || !this.initAnimation() || (await this._animation.animate(e, !1, !1, it(...t)), this.animateIdle());
17337
17363
  }
17338
17364
  /** @inheritdoc */
17339
17365
  async animateWin() {
@@ -17449,7 +17475,7 @@ class gc extends Ct {
17449
17475
  this._emptySprite = bt.getSprite(this._assetName, this._empty), this.instance.addChild(this._emptySprite);
17450
17476
  break;
17451
17477
  default:
17452
- this._emptySprite = bt.getSprite(this._assetName, this._empty), this._fullSprite = bt.getSprite(this._assetName, this._full), gi(0, 0, this._fullSprite.width, this._fullSprite.height), this._fullSprite.addChild(i), this._fullSprite.mask = i, this._isVertical ? this._fullSprite.mask.position.y = this._fullSprite.height - this._filling * this._fullSprite.height : this._fullSprite.mask.position.x = -this._fullSprite.width + this._filling * this._fullSprite.width, this.instance.addChild(this._emptySprite, this._fullSprite);
17478
+ this._emptySprite = bt.getSprite(this._assetName, this._empty), this._fullSprite = bt.getSprite(this._assetName, this._full), _i(0, 0, this._fullSprite.width, this._fullSprite.height), this._fullSprite.addChild(i), this._fullSprite.mask = i, this._isVertical ? this._fullSprite.mask.position.y = this._fullSprite.height - this._filling * this._fullSprite.height : this._fullSprite.mask.position.x = -this._fullSprite.width + this._filling * this._fullSprite.width, this.instance.addChild(this._emptySprite, this._fullSprite);
17453
17479
  break;
17454
17480
  }
17455
17481
  return this;
@@ -17475,7 +17501,7 @@ class Su extends Ct {
17475
17501
  assetName: "welcome",
17476
17502
  emptyTexture: "volatility-empty.png",
17477
17503
  fullTexture: "volatility-fill.png",
17478
- textStyle: new Ve({
17504
+ textStyle: new Ke({
17479
17505
  fontFamily: "UI",
17480
17506
  fill: 16777215,
17481
17507
  fontSize: et.isDesktop ? 24 : 16,
@@ -17562,10 +17588,10 @@ class Su extends Ct {
17562
17588
  }
17563
17589
  }
17564
17590
  function Au(s, e, t = !0) {
17565
- return e = Object.assign({ duration: 1, delay: 0 }, e), t && re.killTweensOf(s), re.from(s, e);
17591
+ return e = Object.assign({ duration: 1, delay: 0 }, e), t && ee.killTweensOf(s), ee.from(s, e);
17566
17592
  }
17567
17593
  function Cu(s, e, t, i = !0) {
17568
- return t = Object.assign({ duration: 1, delay: 0 }, t), i && re.killTweensOf(s), re.fromTo(s, e, t);
17594
+ return t = Object.assign({ duration: 1, delay: 0 }, t), i && ee.killTweensOf(s), ee.fromTo(s, e, t);
17569
17595
  }
17570
17596
  function ku(s, e) {
17571
17597
  const t = [];
@@ -17625,7 +17651,7 @@ function wc(s, e) {
17625
17651
  );
17626
17652
  return t.width = s.width, t.height = s.height, e.forEach((r) => {
17627
17653
  n.addColorStop(r.stop, r.color.getRGBAString());
17628
- }), i.fillStyle = n, i.fillRect(0, 0, s.width, s.height), vi.from(t);
17654
+ }), i.fillStyle = n, i.fillRect(0, 0, s.width, s.height), yi.from(t);
17629
17655
  }
17630
17656
  function Qn(s, e, t, i, n, r = !1, o = 0.01) {
17631
17657
  const h = 3 * (t.x - e.x), u = 3 * (i.x - t.x) - h, l = n.x - e.x - h - u, f = 3 * (t.y - e.y), a = 3 * (i.y - t.y) - f, c = n.y - e.y - f - a, d = l * Math.pow(s, 3) + u * Math.pow(s, 2) + h * s + e.x, p = c * Math.pow(s, 3) + a * Math.pow(s, 2) + f * s + e.y, m = { x: d, y: p };
@@ -19276,7 +19302,7 @@ export {
19276
19302
  ct as EPivot,
19277
19303
  ao as EPromoType,
19278
19304
  Ar as ESelectType,
19279
- wi as ESoundsType,
19305
+ bi as ESoundsType,
19280
19306
  Br as ETrackSwitch,
19281
19307
  ad as Elastic,
19282
19308
  be as Emitter,
@@ -19377,11 +19403,11 @@ export {
19377
19403
  nu as displayObjectToImage,
19378
19404
  Sh as displayObjectToTexture,
19379
19405
  Bu as distance,
19380
- gi as drawRect,
19406
+ _i as drawRect,
19381
19407
  oc as drawReel,
19382
19408
  Fe as ease,
19383
19409
  Vi as error,
19384
- ne as eventlog,
19410
+ se as eventlog,
19385
19411
  vt as get,
19386
19412
  mo as getUrlParams,
19387
19413
  kc as getUserAgent,
@@ -19433,11 +19459,11 @@ export {
19433
19459
  ai as registry,
19434
19460
  Vc as setMode,
19435
19461
  Bi as skipable,
19436
- Si as sleep,
19462
+ gi as sleep,
19437
19463
  ui as slotCheats,
19438
19464
  uc as slotComponentConfig,
19439
19465
  Nu as speedDuration,
19440
- st as speedMode,
19466
+ it as speedMode,
19441
19467
  Xu as timeFull,
19442
19468
  Vu as timeNowFull,
19443
19469
  $u as timeNowShort,