@truelab/truengine 1.0.1 → 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 +415 -369
- package/dist/types/src/components/slot/payout/payout.base.component.d.ts +1 -0
- package/dist/types/src/components/slot/payout/payout.base.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/payout/payout.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/slot.component.d.ts +7 -1
- package/dist/types/src/components/slot/slot.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/slot.config.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/truengine.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Xa = (s, e, t) => e in s ?
|
|
1
|
+
var Na = Object.defineProperty;
|
|
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 Ke, a as
|
|
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
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 || {});
|
|
@@ -68,13 +68,13 @@ function Yc() {
|
|
|
68
68
|
function co() {
|
|
69
69
|
return window.devicePixelRatio > 1;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Wc() {
|
|
72
72
|
return window.location !== window.parent.location;
|
|
73
73
|
}
|
|
74
74
|
function uo() {
|
|
75
75
|
return Modernizr && !!Modernizr.webp;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Nc() {
|
|
78
78
|
return Modernizr && !!Modernizr.fullscreen;
|
|
79
79
|
}
|
|
80
80
|
class fo {
|
|
@@ -95,7 +95,7 @@ function po(s, e) {
|
|
|
95
95
|
function Xc(s) {
|
|
96
96
|
Xi.has(s) && Xi.delete(s);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ws(s, e) {
|
|
99
99
|
let t;
|
|
100
100
|
return {
|
|
101
101
|
call: () => {
|
|
@@ -143,7 +143,7 @@ function Sr(s, e) {
|
|
|
143
143
|
setTimeout(async () => t(await s()), e);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function gi(s) {
|
|
147
147
|
return new Promise((e) => setTimeout(e, s));
|
|
148
148
|
}
|
|
149
149
|
function mo(s) {
|
|
@@ -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
|
|
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
|
|
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) ||
|
|
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,20 +654,20 @@ class Ti extends be {
|
|
|
654
654
|
}
|
|
655
655
|
/** Зарегистрирован ли сервис */
|
|
656
656
|
serviceRegistered(t) {
|
|
657
|
-
return
|
|
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
|
|
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);
|
|
668
|
-
var wn = { exports: {} },
|
|
668
|
+
var wn = { exports: {} }, Ns;
|
|
669
669
|
function So() {
|
|
670
|
-
return
|
|
670
|
+
return Ns || (Ns = 1, function(s) {
|
|
671
671
|
(function() {
|
|
672
672
|
function e(A, k, O) {
|
|
673
673
|
return A.call.apply(A.bind, arguments);
|
|
@@ -809,16 +809,16 @@ function So() {
|
|
|
809
809
|
this.c = A, this.f = A.o.document.documentElement, this.h = k, this.a = new x("-"), this.j = k.events !== !1, this.g = k.classes !== !1;
|
|
810
810
|
}
|
|
811
811
|
function L(A) {
|
|
812
|
-
A.g && f(A.f, [A.a.c("wf", "loading")]),
|
|
812
|
+
A.g && f(A.f, [A.a.c("wf", "loading")]), N(A, "loading");
|
|
813
813
|
}
|
|
814
814
|
function D(A) {
|
|
815
815
|
if (A.g) {
|
|
816
816
|
var k = a(A.f, A.a.c("wf", "active")), O = [], B = [A.a.c("wf", "loading")];
|
|
817
817
|
k || O.push(A.a.c("wf", "inactive")), f(A.f, O, B);
|
|
818
818
|
}
|
|
819
|
-
|
|
819
|
+
N(A, "inactive");
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function N(A, k, O) {
|
|
822
822
|
A.j && A.h[k] && (O ? A.h[k](O.c, C(O)) : A.h[k]());
|
|
823
823
|
}
|
|
824
824
|
function Y() {
|
|
@@ -866,7 +866,7 @@ function So() {
|
|
|
866
866
|
function X(A, k, O, B, G, Q, tt) {
|
|
867
867
|
this.v = A, this.B = k, this.c = O, this.a = B, this.s = tt || "BESbswy", this.f = {}, this.w = G || 3e3, this.u = Q || null, this.m = this.j = this.h = this.g = null, this.g = new q(this.c, this.s), this.h = new q(this.c, this.s), this.j = new q(this.c, this.s), this.m = new q(this.c, this.s), A = new w(this.a.c + ",serif", C(this.a)), A = I(A), this.g.a.style.cssText = A, A = new w(this.a.c + ",sans-serif", C(this.a)), A = I(A), this.h.a.style.cssText = A, A = new w("serif", C(this.a)), A = I(A), this.j.a.style.cssText = A, A = new w("sans-serif", C(this.a)), A = I(A), this.m.a.style.cssText = A, j(this.g), j(this.h), j(this.j), j(this.m);
|
|
868
868
|
}
|
|
869
|
-
var
|
|
869
|
+
var W = { D: "serif", C: "sans-serif" }, V = null;
|
|
870
870
|
function $() {
|
|
871
871
|
if (V === null) {
|
|
872
872
|
var A = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
|
|
@@ -878,40 +878,40 @@ function So() {
|
|
|
878
878
|
this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = n(), J(this);
|
|
879
879
|
};
|
|
880
880
|
function U(A, k, O) {
|
|
881
|
-
for (var B in
|
|
881
|
+
for (var B in W) if (W.hasOwnProperty(B) && k === A.f[W[B]] && O === A.f[W[B]]) return !0;
|
|
882
882
|
return !1;
|
|
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)) ?
|
|
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
|
|
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
|
|
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
|
-
|
|
902
|
+
st.prototype.g = function(A) {
|
|
903
903
|
var k = this.a;
|
|
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")]),
|
|
905
|
-
},
|
|
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
|
+
}, 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")];
|
|
909
909
|
O || B.push(k.a.c("wf", A.c, C(A).toString(), "inactive")), f(k.f, B, G);
|
|
910
910
|
}
|
|
911
|
-
|
|
911
|
+
N(k, "fontinactive", A), Pt(this);
|
|
912
912
|
};
|
|
913
913
|
function Pt(A) {
|
|
914
|
-
--A.f == 0 && A.j && (A.m ? (A = A.a, A.g && f(A.f, [A.a.c("wf", "active")], [A.a.c("wf", "loading"), A.a.c("wf", "inactive")]),
|
|
914
|
+
--A.f == 0 && A.j && (A.m ? (A = A.a, A.g && f(A.f, [A.a.c("wf", "active")], [A.a.c("wf", "loading"), A.a.c("wf", "inactive")]), N(A, "active")) : D(A.a));
|
|
915
915
|
}
|
|
916
916
|
function gt(A) {
|
|
917
917
|
this.j = A, this.a = new Y(), this.h = 0, this.f = this.g = !0;
|
|
@@ -928,12 +928,12 @@ function So() {
|
|
|
928
928
|
k.f += O.length, Q && (k.j = Q);
|
|
929
929
|
var lt, _t = [];
|
|
930
930
|
for (lt = 0; lt < O.length; lt++) {
|
|
931
|
-
var mt = O[lt], wt = at[mt.c],
|
|
932
|
-
if (
|
|
931
|
+
var mt = O[lt], wt = at[mt.c], Nt = k.a, he = mt;
|
|
932
|
+
if (Nt.g && f(Nt.f, [Nt.a.c("wf", he.c, C(he).toString(), "loading")]), N(Nt, "fontloading", he), Nt = null, ft === null) if (window.FontFace) {
|
|
933
933
|
var he = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Ei = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
|
|
934
934
|
ft = he ? 42 < parseInt(he[1], 10) : !Ei;
|
|
935
935
|
} else ft = !1;
|
|
936
|
-
ft ?
|
|
936
|
+
ft ? Nt = new R(i(k.g, k), i(k.h, k), k.c, mt, k.s, wt) : Nt = new X(i(k.g, k), i(k.h, k), k.c, mt, k.s, tt, wt), _t.push(Nt);
|
|
937
937
|
}
|
|
938
938
|
for (lt = 0; lt < _t.length; lt++) _t[lt].start();
|
|
939
939
|
}
|
|
@@ -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
|
|
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
|
});
|
|
@@ -1020,7 +1020,7 @@ function So() {
|
|
|
1020
1020
|
if (wt == null) mt = "";
|
|
1021
1021
|
else {
|
|
1022
1022
|
if (mt = wt[2], mt = mt == null || mt == "" ? "n" : Ae[mt], wt = wt[1], wt == null || wt == "") wt = "4";
|
|
1023
|
-
else var
|
|
1023
|
+
else var Nt = Se[wt], wt = Nt || (isNaN(wt) ? "4" : wt.substr(0, 1));
|
|
1024
1024
|
mt = [mt, wt].join("");
|
|
1025
1025
|
}
|
|
1026
1026
|
} else mt = "";
|
|
@@ -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
|
-
|
|
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),
|
|
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
|
* Получить путь к ассету на основе текущего режима
|
|
@@ -1430,7 +1430,7 @@ class To {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
let Cr = class
|
|
1433
|
+
let Cr = class Wi {
|
|
1434
1434
|
/** Создает объкт с белым непрозрачным цветом по умолчанию */
|
|
1435
1435
|
constructor() {
|
|
1436
1436
|
y(this, "r");
|
|
@@ -1444,14 +1444,14 @@ let Cr = class Ni {
|
|
|
1444
1444
|
* @returns новый объект цвета
|
|
1445
1445
|
*/
|
|
1446
1446
|
static hex(e) {
|
|
1447
|
-
return new
|
|
1447
|
+
return new Wi().setHex(e);
|
|
1448
1448
|
}
|
|
1449
1449
|
/** Создает объект с заданным цветом
|
|
1450
1450
|
* @param hexString цвет в формате "0xffffff"
|
|
1451
1451
|
* @returns новый объект цвета
|
|
1452
1452
|
*/
|
|
1453
1453
|
static hexString(e) {
|
|
1454
|
-
return new
|
|
1454
|
+
return new Wi().setHexString(e);
|
|
1455
1455
|
}
|
|
1456
1456
|
/** Создает объект с заданным цветом
|
|
1457
1457
|
* @param r значение красного канала [0..1]
|
|
@@ -1460,7 +1460,7 @@ let Cr = class Ni {
|
|
|
1460
1460
|
* @returns новый объект цвета
|
|
1461
1461
|
*/
|
|
1462
1462
|
static rgb(e, t, i) {
|
|
1463
|
-
return new
|
|
1463
|
+
return new Wi().setRGB(e, t, i);
|
|
1464
1464
|
}
|
|
1465
1465
|
/** Создает объект с заданным цветом
|
|
1466
1466
|
* @param r значение красного канала [0..1]
|
|
@@ -1470,7 +1470,7 @@ let Cr = class Ni {
|
|
|
1470
1470
|
* @returns новый объект цвета
|
|
1471
1471
|
*/
|
|
1472
1472
|
static rgba(e, t, i, n) {
|
|
1473
|
-
return new
|
|
1473
|
+
return new Wi().setRGBA(e, t, i, n);
|
|
1474
1474
|
}
|
|
1475
1475
|
/** Задает значение цвета
|
|
1476
1476
|
* @param hex: цвет в формате 0xffffff
|
|
@@ -1694,20 +1694,20 @@ window.PIXI = Ha;
|
|
|
1694
1694
|
return typeof I === R;
|
|
1695
1695
|
}
|
|
1696
1696
|
function n() {
|
|
1697
|
-
var I, R, X,
|
|
1697
|
+
var I, R, X, W, V, $, U;
|
|
1698
1698
|
for (var J in w)
|
|
1699
1699
|
if (w.hasOwnProperty(J)) {
|
|
1700
1700
|
if (I = [], R = w[J], R.name && (I.push(R.name.toLowerCase()), R.options && R.options.aliases && R.options.aliases.length))
|
|
1701
1701
|
for (X = 0; X < R.options.aliases.length; X++) I.push(R.options.aliases[X].toLowerCase());
|
|
1702
|
-
for (
|
|
1703
|
-
$ = I[V], U = $.split("."), U.length === 1 ? b[U[0]] =
|
|
1702
|
+
for (W = i(R.fn, "function") ? R.fn() : R.fn, V = 0; V < I.length; V++)
|
|
1703
|
+
$ = I[V], U = $.split("."), U.length === 1 ? b[U[0]] = W : (!b[U[0]] || b[U[0]] instanceof Boolean || (b[U[0]] = new Boolean(b[U[0]])), b[U[0]][U[1]] = W), x.push((W ? "" : "no-") + U.join("-"));
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
function r(I) {
|
|
1707
1707
|
var R = F.className, X = b._config.classPrefix || "";
|
|
1708
1708
|
if (T && (R = R.baseVal), b._config.enableJSClass) {
|
|
1709
|
-
var
|
|
1710
|
-
R = R.replace(
|
|
1709
|
+
var W = new RegExp("(^|\\s)" + X + "no-js(\\s|$)");
|
|
1710
|
+
R = R.replace(W, "$1" + X + "js$2");
|
|
1711
1711
|
}
|
|
1712
1712
|
b._config.enableClasses && (R += " " + X + I.join(" " + X), T ? F.className.baseVal = R : F.className = R);
|
|
1713
1713
|
}
|
|
@@ -1715,15 +1715,15 @@ window.PIXI = Ha;
|
|
|
1715
1715
|
if (typeof I == "object") for (var X in I) C(I, X) && o(X, I[X]);
|
|
1716
1716
|
else {
|
|
1717
1717
|
I = I.toLowerCase();
|
|
1718
|
-
var
|
|
1719
|
-
if (
|
|
1720
|
-
R = typeof R == "function" ? R() : R,
|
|
1718
|
+
var W = I.split("."), V = b[W[0]];
|
|
1719
|
+
if (W.length == 2 && (V = V[W[1]]), typeof V < "u") return b;
|
|
1720
|
+
R = typeof R == "function" ? R() : R, W.length == 1 ? b[W[0]] = R : (!b[W[0]] || b[W[0]] instanceof Boolean || (b[W[0]] = new Boolean(b[W[0]])), b[W[0]][W[1]] = R), r([(R && R != 0 ? "" : "no-") + W.join("-")]), b._trigger(I, R);
|
|
1721
1721
|
}
|
|
1722
1722
|
return b;
|
|
1723
1723
|
}
|
|
1724
1724
|
function h(I) {
|
|
1725
|
-
return I.replace(/([a-z])-([a-z])/g, function(R, X,
|
|
1726
|
-
return X +
|
|
1725
|
+
return I.replace(/([a-z])-([a-z])/g, function(R, X, W) {
|
|
1726
|
+
return X + W.toUpperCase();
|
|
1727
1727
|
}).replace(/^-/, "");
|
|
1728
1728
|
}
|
|
1729
1729
|
function u(I, R) {
|
|
@@ -1738,8 +1738,8 @@ window.PIXI = Ha;
|
|
|
1738
1738
|
};
|
|
1739
1739
|
}
|
|
1740
1740
|
function a(I, R, X) {
|
|
1741
|
-
var
|
|
1742
|
-
for (var V in I) if (I[V] in R) return X === !1 ? I[V] : (
|
|
1741
|
+
var W;
|
|
1742
|
+
for (var V in I) if (I[V] in R) return X === !1 ? I[V] : (W = R[I[V]], i(W, "function") ? f(W, X || R) : W);
|
|
1743
1743
|
return !1;
|
|
1744
1744
|
}
|
|
1745
1745
|
function c(I) {
|
|
@@ -1748,26 +1748,26 @@ window.PIXI = Ha;
|
|
|
1748
1748
|
}).replace(/^ms-/, "-ms-");
|
|
1749
1749
|
}
|
|
1750
1750
|
function d(I, R, X) {
|
|
1751
|
-
var
|
|
1751
|
+
var W;
|
|
1752
1752
|
if ("getComputedStyle" in s) {
|
|
1753
|
-
|
|
1753
|
+
W = getComputedStyle.call(s, I, R);
|
|
1754
1754
|
var V = s.console;
|
|
1755
|
-
if (
|
|
1755
|
+
if (W !== null) W = W.getPropertyValue(X);
|
|
1756
1756
|
else if (V) {
|
|
1757
1757
|
var $ = V.error ? "error" : "log";
|
|
1758
1758
|
V[$].call(V, "getComputedStyle returning null, its possible modernizr test results are inaccurate");
|
|
1759
1759
|
}
|
|
1760
|
-
} else
|
|
1761
|
-
return
|
|
1760
|
+
} else W = I.currentStyle && I.currentStyle[X];
|
|
1761
|
+
return W;
|
|
1762
1762
|
}
|
|
1763
1763
|
function p() {
|
|
1764
1764
|
var I = e.body;
|
|
1765
1765
|
return I || (I = l(T ? "svg" : "body"), I.fake = !0), I;
|
|
1766
1766
|
}
|
|
1767
|
-
function m(I, R, X,
|
|
1768
|
-
var V, $, U, J, rt = "modernizr",
|
|
1769
|
-
if (parseInt(X, 10)) for (; X--; ) U = l("div"), U.id = rt + (X + 1),
|
|
1770
|
-
return V = l("style"), V.type = "text/css", V.id = "s" + rt, (
|
|
1767
|
+
function m(I, R, X, W) {
|
|
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;
|
|
@@ -1776,37 +1776,37 @@ window.PIXI = Ha;
|
|
|
1776
1776
|
return !1;
|
|
1777
1777
|
}
|
|
1778
1778
|
if ("CSSSupportsRule" in s) {
|
|
1779
|
-
for (var
|
|
1780
|
-
return
|
|
1779
|
+
for (var W = []; X--; ) W.push("(" + c(I[X]) + ":" + R + ")");
|
|
1780
|
+
return W = W.join(" or "), m("@supports (" + W + ") { #modernizr { position: absolute; } }", function(V) {
|
|
1781
1781
|
return d(V, null, "position") == "absolute";
|
|
1782
1782
|
});
|
|
1783
1783
|
}
|
|
1784
1784
|
return t;
|
|
1785
1785
|
}
|
|
1786
|
-
function g(I, R, X,
|
|
1786
|
+
function g(I, R, X, W) {
|
|
1787
1787
|
function V() {
|
|
1788
1788
|
U && (delete z.style, delete z.modElem);
|
|
1789
1789
|
}
|
|
1790
|
-
if (
|
|
1790
|
+
if (W = i(W, "undefined") ? !1 : W, !i(X, "undefined")) {
|
|
1791
1791
|
var $ = _(I, X);
|
|
1792
1792
|
if (!i($, "undefined")) return $;
|
|
1793
1793
|
}
|
|
1794
|
-
for (var U, J, rt,
|
|
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 (
|
|
1798
|
-
if (
|
|
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[
|
|
1800
|
+
z.style[nt] = X;
|
|
1801
1801
|
} catch {
|
|
1802
1802
|
}
|
|
1803
|
-
if (z.style[
|
|
1803
|
+
if (z.style[nt] != st) return V(), R == "pfx" ? nt : !0;
|
|
1804
1804
|
}
|
|
1805
1805
|
return V(), !1;
|
|
1806
1806
|
}
|
|
1807
|
-
function v(I, R, X,
|
|
1807
|
+
function v(I, R, X, W, V) {
|
|
1808
1808
|
var $ = I.charAt(0).toUpperCase() + I.slice(1), U = (I + " " + L.join($ + " ") + $).split(" ");
|
|
1809
|
-
return i(R, "string") || i(R, "undefined") ? g(U, R,
|
|
1809
|
+
return i(R, "string") || i(R, "undefined") ? g(U, R, W, V) : (U = (I + " " + N.join($ + " ") + $).split(" "), a(U, R, X));
|
|
1810
1810
|
}
|
|
1811
1811
|
var x = [], w = [], S = {
|
|
1812
1812
|
_version: "3.6.0",
|
|
@@ -1843,17 +1843,17 @@ window.PIXI = Ha;
|
|
|
1843
1843
|
if (this._l[I]) {
|
|
1844
1844
|
var X = this._l[I];
|
|
1845
1845
|
setTimeout(function() {
|
|
1846
|
-
var
|
|
1847
|
-
for (
|
|
1846
|
+
var W;
|
|
1847
|
+
for (W = 0; W < X.length; W++) X[W](R);
|
|
1848
1848
|
}, 0), delete this._l[I];
|
|
1849
1849
|
}
|
|
1850
1850
|
}, b._q.push(function() {
|
|
1851
1851
|
S.addTest = o;
|
|
1852
1852
|
}), b.addAsyncTest(function() {
|
|
1853
|
-
function I(
|
|
1853
|
+
function I(W, V, $) {
|
|
1854
1854
|
function U(rt) {
|
|
1855
|
-
var
|
|
1856
|
-
o(
|
|
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;
|
|
@@ -1876,26 +1876,26 @@ window.PIXI = Ha;
|
|
|
1876
1876
|
name: "webp.lossless"
|
|
1877
1877
|
}
|
|
1878
1878
|
], X = R.shift();
|
|
1879
|
-
I(X.name, X.uri, function(
|
|
1880
|
-
if (
|
|
1879
|
+
I(X.name, X.uri, function(W) {
|
|
1880
|
+
if (W && W.type === "load") for (var V = 0; V < R.length; V++) I(R[V].name, R[V].uri);
|
|
1881
1881
|
});
|
|
1882
1882
|
});
|
|
1883
1883
|
var E = "Moz O ms Webkit", L = S._config.usePrefixes ? E.split(" ") : [];
|
|
1884
1884
|
S._cssomPrefixes = L;
|
|
1885
1885
|
var D = function(I) {
|
|
1886
|
-
var R, X = prefixes.length,
|
|
1887
|
-
if (typeof
|
|
1886
|
+
var R, X = prefixes.length, W = s.CSSRule;
|
|
1887
|
+
if (typeof W > "u") return t;
|
|
1888
1888
|
if (!I) return !1;
|
|
1889
|
-
if (I = I.replace(/^@/, ""), R = I.replace(/-/g, "_").toUpperCase() + "_RULE", R in
|
|
1889
|
+
if (I = I.replace(/^@/, ""), R = I.replace(/-/g, "_").toUpperCase() + "_RULE", R in W) return "@" + I;
|
|
1890
1890
|
for (var V = 0; X > V; V++) {
|
|
1891
1891
|
var $ = prefixes[V], U = $.toUpperCase() + "_" + R;
|
|
1892
|
-
if (U in
|
|
1892
|
+
if (U in W) return "@-" + $.toLowerCase() + "-" + I;
|
|
1893
1893
|
}
|
|
1894
1894
|
return !1;
|
|
1895
1895
|
};
|
|
1896
1896
|
S.atRule = D;
|
|
1897
|
-
var
|
|
1898
|
-
S._domPrefixes =
|
|
1897
|
+
var N = S._config.usePrefixes ? E.toLowerCase().split(" ") : [];
|
|
1898
|
+
S._domPrefixes = N;
|
|
1899
1899
|
var Y = { elem: l("modernizr") };
|
|
1900
1900
|
b._q.push(function() {
|
|
1901
1901
|
delete Y.elem;
|
|
@@ -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
|
|
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
|
}
|
|
@@ -2040,7 +2040,7 @@ K.equals = K.eq = function(s) {
|
|
|
2040
2040
|
return !this.cmp(s);
|
|
2041
2041
|
};
|
|
2042
2042
|
K.exponent = function() {
|
|
2043
|
-
return
|
|
2043
|
+
return Wt(this);
|
|
2044
2044
|
};
|
|
2045
2045
|
K.greaterThan = K.gt = function(s) {
|
|
2046
2046
|
return this.cmp(s) > 0;
|
|
@@ -2100,7 +2100,7 @@ K.plus = K.add = function(s) {
|
|
|
2100
2100
|
K.precision = K.sd = function(s) {
|
|
2101
2101
|
var e, t, i, n = this;
|
|
2102
2102
|
if (s !== void 0 && s !== !!s && s !== 1 && s !== 0) throw Error(pi + s);
|
|
2103
|
-
if (e =
|
|
2103
|
+
if (e = Wt(n) + 1, i = n.d.length - 1, t = i * kt + 1, i = n.d[i], i) {
|
|
2104
2104
|
for (; i % 10 == 0; i /= 10) t--;
|
|
2105
2105
|
for (i = n.d[0]; i >= 10; i /= 10) t++;
|
|
2106
2106
|
}
|
|
@@ -2112,7 +2112,7 @@ K.squareRoot = K.sqrt = function() {
|
|
|
2112
2112
|
if (!h.s) return new u(0);
|
|
2113
2113
|
throw Error(we + "NaN");
|
|
2114
2114
|
}
|
|
2115
|
-
for (s =
|
|
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
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)) {
|
|
@@ -2139,19 +2139,19 @@ 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 : (Ve(s, 0, Pi), e === void 0 ? e = i.rounding : Ve(e, 0, 8), xt(t, s +
|
|
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 =
|
|
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 ?
|
|
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;
|
|
2154
|
-
return xt(new e(s),
|
|
2154
|
+
return xt(new e(s), Wt(s) + 1, e.rounding);
|
|
2155
2155
|
};
|
|
2156
2156
|
K.toNumber = function() {
|
|
2157
2157
|
return +this;
|
|
@@ -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 =
|
|
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
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
|
-
var s = this, e =
|
|
2187
|
-
return
|
|
2186
|
+
var s = this, e = Wt(s), t = s.constructor;
|
|
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;
|
|
@@ -2243,7 +2243,7 @@ var qe = /* @__PURE__ */ function() {
|
|
|
2243
2243
|
if (!i.s) return new T(i);
|
|
2244
2244
|
if (!n.s) throw Error(we + "Division by zero");
|
|
2245
2245
|
for (u = i.e - n.e, C = D.length, S = L.length, d = new T(E), p = d.d = [], l = 0; D[l] == (L[l] || 0); ) ++l;
|
|
2246
|
-
if (D[l] > (L[l] || 0) && --u, r == null ? v = r = T.precision : o ? v = r + (
|
|
2246
|
+
if (D[l] > (L[l] || 0) && --u, r == null ? v = r = T.precision : o ? v = r + (Wt(i) - Wt(n)) + 1 : v = r, v < 0) return new T(0);
|
|
2247
2247
|
if (v = v / kt + 2 | 0, l = 0, C == 1)
|
|
2248
2248
|
for (f = 0, D = D[0], v++; (l < S || f) && v--; l++)
|
|
2249
2249
|
x = f * Ut + (L[l] || 0), p[l] = x / D | 0, f = x % D | 0;
|
|
@@ -2254,12 +2254,12 @@ var qe = /* @__PURE__ */ function() {
|
|
|
2254
2254
|
f = 0, h = e(D, m, C, _), h < 0 ? (g = m[0], C != _ && (g = g * Ut + (m[1] || 0)), f = g / b | 0, f > 1 ? (f >= Ut && (f = Ut - 1), a = s(D, f), c = a.length, _ = m.length, h = e(a, m, c, _), h == 1 && (f--, t(a, C < c ? F : D, c))) : (f == 0 && (h = f = 1), a = D.slice()), c = a.length, c < _ && a.unshift(0), t(m, a, _), h == -1 && (_ = m.length, h = e(D, m, C, _), h < 1 && (f++, t(m, C < _ ? F : D, _))), _ = m.length) : h === 0 && (f++, m = [0]), p[l++] = f, h && m[0] ? m[_++] = L[w] || 0 : (m = [L[w]], _ = 1);
|
|
2255
2255
|
while ((w++ < S || m[0] !== void 0) && v--);
|
|
2256
2256
|
}
|
|
2257
|
-
return p[0] || p.shift(), d.e = u, xt(d, o ? r +
|
|
2257
|
+
return p[0] || p.shift(), d.e = u, xt(d, o ? r + Wt(d) + 1 : r);
|
|
2258
2258
|
};
|
|
2259
2259
|
}();
|
|
2260
2260
|
function Pr(s, e) {
|
|
2261
2261
|
var t, i, n, r, o, h, u = 0, l = 0, f = s.constructor, a = f.precision;
|
|
2262
|
-
if (
|
|
2262
|
+
if (Wt(s) > 16) throw Error(ns + Wt(s));
|
|
2263
2263
|
if (!s.s) return new f(pe);
|
|
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;
|
|
@@ -2271,7 +2271,7 @@ function Pr(s, e) {
|
|
|
2271
2271
|
r = o;
|
|
2272
2272
|
}
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function Wt(s) {
|
|
2275
2275
|
for (var e = s.e * kt, t = s.d[0]; t >= 10; t /= 10) e++;
|
|
2276
2276
|
return e;
|
|
2277
2277
|
}
|
|
@@ -2290,10 +2290,10 @@ function Ui(s, e) {
|
|
|
2290
2290
|
if (d.eq(pe)) return new m(0);
|
|
2291
2291
|
if (e == null ? (Ft = !1, l = _) : l = e, d.eq(10))
|
|
2292
2292
|
return e == null && (Ft = !0), bn(m, l);
|
|
2293
|
-
if (l += c, m.precision = l, t = De(p), i = t.charAt(0), r =
|
|
2293
|
+
if (l += c, m.precision = l, t = De(p), i = t.charAt(0), r = Wt(d), Math.abs(r) < 15e14) {
|
|
2294
2294
|
for (; i < 7 && i != 1 || i == 1 && t.charAt(1) > 3; )
|
|
2295
2295
|
d = d.times(s), t = De(d.d), i = t.charAt(0), a++;
|
|
2296
|
-
r =
|
|
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
2299
|
for (h = o = d = qe(d.minus(pe), d.plus(pe), l), f = xt(d.times(d), l), n = 3; ; ) {
|
|
@@ -2330,7 +2330,7 @@ function xt(s, e, t) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
if (t !== void 0 && (r = di(10, o - n - 1), h = l / r % 10 | 0, u = e < 0 || a[f + 1] !== void 0 || l % r, u = t < 4 ? (h || u) && (t == 0 || t == (s.s < 0 ? 3 : 2)) : h > 5 || h == 5 && (t == 4 || u || t == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
2332
2332
|
(i > 0 ? n > 0 ? l / di(10, o - n) : 0 : a[f - 1]) % 10 & 1 || t == (s.s < 0 ? 8 : 7))), e < 1 || !a[0])
|
|
2333
|
-
return u ? (r =
|
|
2333
|
+
return u ? (r = Wt(s), a.length = 1, e = e - r - 1, a[0] = di(10, (kt - e % kt) % kt), s.e = Fi(-e / kt) || 0) : (a.length = 1, a[0] = s.e = s.s = 0), s;
|
|
2334
2334
|
if (i == 0 ? (a.length = f, r = 1, f--) : (a.length = f + 1, r = di(10, kt - i), a[f] = n > 0 ? (l / di(10, o - n) % di(10, n) | 0) * r : 0), u)
|
|
2335
2335
|
for (; ; )
|
|
2336
2336
|
if (f == 0) {
|
|
@@ -2342,7 +2342,7 @@ function xt(s, e, t) {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
for (i = a.length; a[--i] === 0; ) a.pop();
|
|
2344
2344
|
if (Ft && (s.e > an || s.e < -an))
|
|
2345
|
-
throw Error(ns +
|
|
2345
|
+
throw Error(ns + Wt(s));
|
|
2346
2346
|
return s;
|
|
2347
2347
|
}
|
|
2348
2348
|
function Fr(s, e) {
|
|
@@ -2372,8 +2372,8 @@ 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
|
|
2376
|
-
var i, n =
|
|
2375
|
+
function vi(s, e, t) {
|
|
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
|
}
|
|
2379
2379
|
function Vs(s, e) {
|
|
@@ -2504,7 +2504,7 @@ const Sn = [
|
|
|
2504
2504
|
* @param instance
|
|
2505
2505
|
*/
|
|
2506
2506
|
async create(t) {
|
|
2507
|
-
return await super.create(t), this.instance.addChild(this._container = new fi()), this._container.addChild(this._label = new
|
|
2507
|
+
return await super.create(t), this.instance.addChild(this._container = new fi()), this._container.addChild(this._label = new Ni(this._text, this._style)), this.draw();
|
|
2508
2508
|
}
|
|
2509
2509
|
/**
|
|
2510
2510
|
* Уничтожить компонент
|
|
@@ -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 =
|
|
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() {
|
|
@@ -2726,7 +2726,7 @@ class Oo extends Ti {
|
|
|
2726
2726
|
* - добавляет дефолтные компоненты
|
|
2727
2727
|
*/
|
|
2728
2728
|
init() {
|
|
2729
|
-
const t =
|
|
2729
|
+
const t = Ws(() => this.redraw(), 30), i = Ws(() => this.redraw(), 500);
|
|
2730
2730
|
return this.component("grid", new Ro()), this.component("fps", new Io()), window.addEventListener("resize", t.call), window.addEventListener("orientationchange", i.call), this.on("fullscreen:on", this.constructor.name, i.call).on(
|
|
2731
2731
|
"fullscreen:off",
|
|
2732
2732
|
this.constructor.name,
|
|
@@ -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(), ee.ticker.lagSmoothing(0, 0),
|
|
2863
|
-
|
|
2862
|
+
this.onBlur && this.onBlur(), ee.ticker.lagSmoothing(0, 0), We.shared.stop(), this._tickerInterval = window.setInterval(() => {
|
|
2863
|
+
We.shared.update();
|
|
2864
2864
|
}, 30);
|
|
2865
|
-
}, 300) : (this.onFocus && this.onFocus(), ee.ticker.lagSmoothing(1e3, 16),
|
|
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 {
|
|
@@ -3015,10 +3015,10 @@ var An = Rr.filter(function(s) {
|
|
|
3015
3015
|
}, s.use = function(e, t) {
|
|
3016
3016
|
e.data && An.indexOf(e.extension) > -1 ? e.sound = Dt().add(e.name, { loaded: t, preload: !0, url: e.url, source: e.data }) : t();
|
|
3017
3017
|
}, s.extension = "loader", s;
|
|
3018
|
-
}(),
|
|
3018
|
+
}(), Wo = 0, No = function(s) {
|
|
3019
3019
|
function e(t) {
|
|
3020
3020
|
var i = s.call(this) || this;
|
|
3021
|
-
return i.id =
|
|
3021
|
+
return i.id = Wo++, i.init(t), i;
|
|
3022
3022
|
}
|
|
3023
3023
|
return fe(e, s), e.prototype.set = function(t, i) {
|
|
3024
3024
|
if (this[t] === void 0) throw new Error("Property with name ".concat(t, " does not exist."));
|
|
@@ -3087,14 +3087,14 @@ var An = Rr.filter(function(s) {
|
|
|
3087
3087
|
}, e.prototype.play = function(t) {
|
|
3088
3088
|
var i = this, n = t.start, r = t.end, o = t.speed, h = t.loop, u = t.volume, l = t.muted;
|
|
3089
3089
|
this._speed = o, this._volume = u, this._loop = !!h, this._muted = l, this.refresh(), this.loop && r !== null && (this.loop = !1), this._start = n, this._end = r || this._duration, this._start = Math.max(0, this._start - e.PADDING), this._end = Math.min(this._end + e.PADDING, this._duration), this._source.onloadedmetadata = function() {
|
|
3090
|
-
i._source && (i._source.currentTime = n, i._source.onloadedmetadata = null, i.emit("progress", n, i._duration),
|
|
3090
|
+
i._source && (i._source.currentTime = n, i._source.onloadedmetadata = null, i.emit("progress", n, i._duration), We.shared.add(i._onUpdate, i));
|
|
3091
3091
|
}, this._source.onended = this._onComplete.bind(this), this._source.play(), this.emit("start");
|
|
3092
3092
|
}, e.prototype._onUpdate = function() {
|
|
3093
3093
|
this.emit("progress", this.progress, this._duration), this._source.currentTime >= this._end && !this._source.loop && this._onComplete();
|
|
3094
3094
|
}, e.prototype._onComplete = function() {
|
|
3095
|
-
|
|
3095
|
+
We.shared.remove(this._onUpdate, this), this._internalStop(), this.emit("progress", 1, this._duration), this.emit("end", this);
|
|
3096
3096
|
}, e.prototype.destroy = function() {
|
|
3097
|
-
|
|
3097
|
+
We.shared.remove(this._onUpdate, this), this.removeAllListeners();
|
|
3098
3098
|
var t = this._source;
|
|
3099
3099
|
t && (t.onended = null, t.onplay = null, t.onpause = null, this._internalStop()), this._source = null, this._speed = 1, this._volume = 1, this._loop = !1, this._end = null, this._start = 0, this._duration = 0, this._playing = !1, this._pausedReal = !1, this._paused = !1, this._muted = !1, this._media && (this._media.context.off("refresh", this.refresh, this), this._media.context.off("refreshPaused", this.refreshPaused, this), this._media = null);
|
|
3100
3100
|
}, e.prototype.toString = function() {
|
|
@@ -3107,7 +3107,7 @@ var An = Rr.filter(function(s) {
|
|
|
3107
3107
|
return fe(e, s), e.prototype.init = function(t) {
|
|
3108
3108
|
this.parent = t, this._source = t.options.source || new Audio(), t.url && (this._source.src = t.url);
|
|
3109
3109
|
}, e.prototype.create = function() {
|
|
3110
|
-
return new
|
|
3110
|
+
return new No(this);
|
|
3111
3111
|
}, Object.defineProperty(e.prototype, "isPlayable", { get: function() {
|
|
3112
3112
|
return !!this._source && this._source.readyState === 4;
|
|
3113
3113
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(e.prototype, "duration", { get: function() {
|
|
@@ -3245,7 +3245,7 @@ var An = Rr.filter(function(s) {
|
|
|
3245
3245
|
var d = this._source.buffer.duration;
|
|
3246
3246
|
this._duration = d, this._end = n, this._lastUpdate = this._now(), this._elapsed = i, this._source.onended = this._onComplete.bind(this), this._loop ? (this._source.loopEnd = n, this._source.loopStart = i, this._source.start(0, i)) : n ? this._source.start(0, i, n - i) : this._source.start(0, i), this.emit("start"), this._update(!0), this.enableTicker(!0);
|
|
3247
3247
|
}, e.prototype.enableTicker = function(t) {
|
|
3248
|
-
|
|
3248
|
+
We.shared.remove(this._updateListener, this), t && We.shared.add(this._updateListener, this);
|
|
3249
3249
|
}, Object.defineProperty(e.prototype, "progress", { get: function() {
|
|
3250
3250
|
return this._progress;
|
|
3251
3251
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(e.prototype, "paused", { get: function() {
|
|
@@ -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
|
|
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
|
|
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(),
|
|
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(
|
|
4411
|
+
return this.howl().getVolume(bi.music) || this._ambient;
|
|
4412
4412
|
}
|
|
4413
4413
|
/** */
|
|
4414
4414
|
set ambient(t) {
|
|
4415
|
-
this.howl().setVolume(t,
|
|
4415
|
+
this.howl().setVolume(t, bi.music), this._ambient = t;
|
|
4416
4416
|
}
|
|
4417
4417
|
/** */
|
|
4418
4418
|
get effects() {
|
|
4419
|
-
return this.howl().getVolume(
|
|
4419
|
+
return this.howl().getVolume(bi.samples) || this._effects;
|
|
4420
4420
|
}
|
|
4421
4421
|
/** */
|
|
4422
4422
|
set effects(t) {
|
|
4423
|
-
this.howl().setVolume(t,
|
|
4423
|
+
this.howl().setVolume(t, bi.samples), this._effects = t;
|
|
4424
4424
|
}
|
|
4425
4425
|
/** */
|
|
4426
4426
|
get dealer() {
|
|
4427
|
-
return this.howl().getVolume(
|
|
4427
|
+
return this.howl().getVolume(bi.dealer) || this._dealer;
|
|
4428
4428
|
}
|
|
4429
4429
|
/** */
|
|
4430
4430
|
set dealer(t) {
|
|
4431
|
-
this.howl().setVolume(t,
|
|
4431
|
+
this.howl().setVolume(t, bi.dealer), this._dealer = t;
|
|
4432
4432
|
}
|
|
4433
4433
|
/** */
|
|
4434
4434
|
blur() {
|
|
@@ -4517,10 +4517,10 @@ var te;
|
|
|
4517
4517
|
(function(s) {
|
|
4518
4518
|
s[s.mixIn = 0] = "mixIn", s[s.mixOut = 1] = "mixOut";
|
|
4519
4519
|
})(te || (te = {}));
|
|
4520
|
-
var
|
|
4520
|
+
var Ne;
|
|
4521
4521
|
(function(s) {
|
|
4522
4522
|
s[s.Fixed = 0] = "Fixed", s[s.Percent = 1] = "Percent";
|
|
4523
|
-
})(
|
|
4523
|
+
})(Ne || (Ne = {}));
|
|
4524
4524
|
var mi;
|
|
4525
4525
|
(function(s) {
|
|
4526
4526
|
s[s.Tangent = 0] = "Tangent", s[s.Chain = 1] = "Chain", s[s.ChainScale = 2] = "ChainScale";
|
|
@@ -4543,17 +4543,17 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
4543
4543
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4544
4544
|
PERFORMANCE OF THIS SOFTWARE.
|
|
4545
4545
|
***************************************************************************** */
|
|
4546
|
-
var
|
|
4547
|
-
return
|
|
4546
|
+
var Wn = function(s, e) {
|
|
4547
|
+
return Wn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
4548
4548
|
t.__proto__ = i;
|
|
4549
4549
|
} || function(t, i) {
|
|
4550
4550
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
4551
|
-
},
|
|
4551
|
+
}, Wn(s, e);
|
|
4552
4552
|
};
|
|
4553
4553
|
function Mi(s, e) {
|
|
4554
4554
|
if (typeof e != "function" && e !== null)
|
|
4555
4555
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
4556
|
-
|
|
4556
|
+
Wn(s, e);
|
|
4557
4557
|
function t() {
|
|
4558
4558
|
this.constructor = s;
|
|
4559
4559
|
}
|
|
@@ -4587,7 +4587,7 @@ var ni;
|
|
|
4587
4587
|
(function(s) {
|
|
4588
4588
|
s[s.MirroredRepeat = 33648] = "MirroredRepeat", s[s.ClampToEdge = 33071] = "ClampToEdge", s[s.Repeat = 10497] = "Repeat";
|
|
4589
4589
|
})(ni || (ni = {}));
|
|
4590
|
-
var
|
|
4590
|
+
var Nn = (
|
|
4591
4591
|
/** @class */
|
|
4592
4592
|
function() {
|
|
4593
4593
|
function s() {
|
|
@@ -4805,7 +4805,7 @@ var Wn = (
|
|
|
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
|
|
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
|
};
|
|
@@ -4863,7 +4863,7 @@ var Wn = (
|
|
|
4863
4863
|
return s !== null && s.apply(this, arguments) || this;
|
|
4864
4864
|
}
|
|
4865
4865
|
return e;
|
|
4866
|
-
}(
|
|
4866
|
+
}(Nn)
|
|
4867
4867
|
), sl = /* @__PURE__ */ function(s) {
|
|
4868
4868
|
return function(e) {
|
|
4869
4869
|
return s[0] = e, s[0];
|
|
@@ -5021,7 +5021,7 @@ var Z = (
|
|
|
5021
5021
|
return e[t[0].toUpperCase() + t.slice(1)];
|
|
5022
5022
|
}, s.SUPPORTS_TYPED_ARRAYS = typeof Float32Array < "u", s;
|
|
5023
5023
|
}()
|
|
5024
|
-
),
|
|
5024
|
+
), Wr = (
|
|
5025
5025
|
/** @class */
|
|
5026
5026
|
function() {
|
|
5027
5027
|
function s(e) {
|
|
@@ -5058,7 +5058,7 @@ var Z = (
|
|
|
5058
5058
|
/** @class */
|
|
5059
5059
|
function() {
|
|
5060
5060
|
function s() {
|
|
5061
|
-
this.minX = 0, this.minY = 0, this.maxX = 0, this.maxY = 0, this.boundingBoxes = new Array(), this.polygons = new Array(), this.polygonPool = new
|
|
5061
|
+
this.minX = 0, this.minY = 0, this.maxX = 0, this.maxY = 0, this.boundingBoxes = new Array(), this.polygons = new Array(), this.polygonPool = new Wr(function() {
|
|
5062
5062
|
return Z.newFloatArray(16);
|
|
5063
5063
|
});
|
|
5064
5064
|
}
|
|
@@ -5167,7 +5167,7 @@ var Z = (
|
|
|
5167
5167
|
}
|
|
5168
5168
|
return e;
|
|
5169
5169
|
}(Ja)
|
|
5170
|
-
),
|
|
5170
|
+
), Nr = (
|
|
5171
5171
|
/** @class */
|
|
5172
5172
|
function(s) {
|
|
5173
5173
|
Mi(e, s);
|
|
@@ -5319,13 +5319,13 @@ var Z = (
|
|
|
5319
5319
|
}
|
|
5320
5320
|
d.alpha = a.color.a;
|
|
5321
5321
|
}
|
|
5322
|
-
for (var L = this.skeleton.drawOrder, D = null,
|
|
5322
|
+
for (var L = this.skeleton.drawOrder, D = null, N = null, l = 0, f = L.length; l < f; l++) {
|
|
5323
5323
|
var a = r[L[l].data.index], d = this.slotContainers[L[l].data.index];
|
|
5324
|
-
if (
|
|
5325
|
-
|
|
5326
|
-
else if (
|
|
5324
|
+
if (N || d.parent !== null && d.parent !== this && (d.parent.removeChild(d), d.parent = this), a.currentGraphics && a.getAttachment())
|
|
5325
|
+
N = a.clippingContainer, D = a.getAttachment(), N.children.length = 0, this.children[l] = d, D.endSlot === a.data && (D.endSlot = null);
|
|
5326
|
+
else if (N) {
|
|
5327
5327
|
var Y = this.tempClipContainers[l];
|
|
5328
|
-
Y || (Y = this.tempClipContainers[l] = this.newContainer(), Y.visible = !1), this.children[l] = Y, d.parent = null,
|
|
5328
|
+
Y || (Y = this.tempClipContainers[l] = this.newContainer(), Y.visible = !1), this.children[l] = Y, d.parent = null, N.addChild(d), D.endSlot == a.data && (N.renderable = !0, N = null, D = null);
|
|
5329
5329
|
} else
|
|
5330
5330
|
this.children[l] = d;
|
|
5331
5331
|
}
|
|
@@ -5364,7 +5364,7 @@ var Z = (
|
|
|
5364
5364
|
if (!r)
|
|
5365
5365
|
return !1;
|
|
5366
5366
|
var o = r.getAttachment(), h = o.region;
|
|
5367
|
-
return i ? (h = new
|
|
5367
|
+
return i ? (h = new Nn(), h.texture = i, h.size = n, r.hackRegion = h, r.hackAttachment = o) : (r.hackRegion = null, r.hackAttachment = null), r.currentSprite ? this.setSpriteRegion(o, r.currentSprite, h) : r.currentMesh && this.setMeshRegion(o, r.currentMesh, h), !0;
|
|
5368
5368
|
}, e.prototype.hackTextureBySlotName = function(t, i, n) {
|
|
5369
5369
|
i === void 0 && (i = null), n === void 0 && (n = null);
|
|
5370
5370
|
var r = this.skeleton.findSlotIndex(t);
|
|
@@ -5379,7 +5379,7 @@ var Z = (
|
|
|
5379
5379
|
var l = u.getAttachment();
|
|
5380
5380
|
if (i === l.name) {
|
|
5381
5381
|
var f = h.region;
|
|
5382
|
-
return n ? (f = new
|
|
5382
|
+
return n ? (f = new Nn(), f.texture = n, f.size = r, u.hackRegion = f, u.hackAttachment = l) : (u.hackRegion = null, u.hackAttachment = null), u.currentSprite && u.currentSprite.region != f ? (this.setSpriteRegion(l, u.currentSprite, f), u.currentSprite.region = f) : u.currentMesh && u.currentMesh.region != f && this.setMeshRegion(l, u.currentMesh, f), !0;
|
|
5383
5383
|
}
|
|
5384
5384
|
return !1;
|
|
5385
5385
|
}, e.prototype.newContainer = function() {
|
|
@@ -5417,7 +5417,7 @@ var Z = (
|
|
|
5417
5417
|
}, e.clippingPolygon = [], e;
|
|
5418
5418
|
}(fi)
|
|
5419
5419
|
);
|
|
5420
|
-
Object.defineProperty(
|
|
5420
|
+
Object.defineProperty(Nr.prototype, "visible", {
|
|
5421
5421
|
get: function() {
|
|
5422
5422
|
return this._visible;
|
|
5423
5423
|
},
|
|
@@ -5570,21 +5570,21 @@ var Xr = (
|
|
|
5570
5570
|
var L = u.bones;
|
|
5571
5571
|
if (l.length == 0)
|
|
5572
5572
|
for (var w = o, _ = F * 3; w < n; w += h) {
|
|
5573
|
-
var D = 0,
|
|
5573
|
+
var D = 0, N = 0, E = a[C++];
|
|
5574
5574
|
for (E += C; C < E; C++, _ += 3) {
|
|
5575
5575
|
var c = L[a[C]].matrix, S = f[_], b = f[_ + 1], Y = f[_ + 2];
|
|
5576
|
-
D += (S * c.a + b * c.c + c.tx) * Y,
|
|
5576
|
+
D += (S * c.a + b * c.c + c.tx) * Y, N += (S * c.b + b * c.d + c.ty) * Y;
|
|
5577
5577
|
}
|
|
5578
|
-
r[w] = D, r[w + 1] =
|
|
5578
|
+
r[w] = D, r[w + 1] = N;
|
|
5579
5579
|
}
|
|
5580
5580
|
else
|
|
5581
5581
|
for (var z = l, w = o, _ = F * 3, q = F << 1; w < n; w += h) {
|
|
5582
|
-
var D = 0,
|
|
5582
|
+
var D = 0, N = 0, E = a[C++];
|
|
5583
5583
|
for (E += C; C < E; C++, _ += 3, q += 2) {
|
|
5584
5584
|
var c = L[a[C]].matrix, S = f[_] + z[q], b = f[_ + 1] + z[q + 1], Y = f[_ + 2];
|
|
5585
|
-
D += (S * c.a + b * c.c + c.tx) * Y,
|
|
5585
|
+
D += (S * c.a + b * c.c + c.tx) * Y, N += (S * c.b + b * c.d + c.ty) * Y;
|
|
5586
5586
|
}
|
|
5587
|
-
r[w] = D, r[w + 1] =
|
|
5587
|
+
r[w] = D, r[w + 1] = N;
|
|
5588
5588
|
}
|
|
5589
5589
|
}, e.prototype.copyTo = function(t) {
|
|
5590
5590
|
this.bones ? (t.bones = new Array(this.bones.length), Z.arrayCopy(this.bones, 0, t.bones, 0, this.bones.length)) : t.bones = null, this.vertices && (t.vertices = Z.newFloatArray(this.vertices.length), Z.arrayCopy(this.vertices, 0, t.vertices, 0, this.vertices.length)), t.worldVerticesLength = this.worldVerticesLength, t.timelineAttachment = this.timelineAttachment;
|
|
@@ -7143,7 +7143,7 @@ var Hr = [
|
|
|
7143
7143
|
}
|
|
7144
7144
|
}, e;
|
|
7145
7145
|
}($e)
|
|
7146
|
-
),
|
|
7146
|
+
), Si = (
|
|
7147
7147
|
/** @class */
|
|
7148
7148
|
function(s) {
|
|
7149
7149
|
ot(e, s);
|
|
@@ -7287,24 +7287,24 @@ var Hr = [
|
|
|
7287
7287
|
}
|
|
7288
7288
|
return;
|
|
7289
7289
|
}
|
|
7290
|
-
var D = Ot.search1(p, n),
|
|
7290
|
+
var D = Ot.search1(p, n), N = this.getCurvePercent(n, D), Y = c[D], z = c[D + 1];
|
|
7291
7291
|
if (o == 1)
|
|
7292
7292
|
if (h == M.add) {
|
|
7293
7293
|
var m = f;
|
|
7294
7294
|
if (m.bones)
|
|
7295
7295
|
for (var I = 0; I < d; I++) {
|
|
7296
7296
|
var j = Y[I];
|
|
7297
|
-
a[I] += j + (z[I] - j) *
|
|
7297
|
+
a[I] += j + (z[I] - j) * N;
|
|
7298
7298
|
}
|
|
7299
7299
|
else
|
|
7300
7300
|
for (var _ = m.vertices, q = 0; q < d; q++) {
|
|
7301
7301
|
var j = Y[q];
|
|
7302
|
-
a[q] += j + (z[q] - j) *
|
|
7302
|
+
a[q] += j + (z[q] - j) * N - _[q];
|
|
7303
7303
|
}
|
|
7304
7304
|
} else
|
|
7305
7305
|
for (var R = 0; R < d; R++) {
|
|
7306
7306
|
var j = Y[R];
|
|
7307
|
-
a[R] = j + (z[R] - j) *
|
|
7307
|
+
a[R] = j + (z[R] - j) * N;
|
|
7308
7308
|
}
|
|
7309
7309
|
else
|
|
7310
7310
|
switch (h) {
|
|
@@ -7313,12 +7313,12 @@ var Hr = [
|
|
|
7313
7313
|
if (X.bones)
|
|
7314
7314
|
for (var V = 0; V < d; V++) {
|
|
7315
7315
|
var j = Y[V];
|
|
7316
|
-
a[V] = (j + (z[V] - j) *
|
|
7316
|
+
a[V] = (j + (z[V] - j) * N) * o;
|
|
7317
7317
|
}
|
|
7318
7318
|
else
|
|
7319
|
-
for (var _ = X.vertices,
|
|
7320
|
-
var j = Y[
|
|
7321
|
-
a[
|
|
7319
|
+
for (var _ = X.vertices, W = 0; W < d; W++) {
|
|
7320
|
+
var j = Y[W], C = _[W];
|
|
7321
|
+
a[W] = C + (j + (z[W] - j) * N - C) * o;
|
|
7322
7322
|
}
|
|
7323
7323
|
break;
|
|
7324
7324
|
}
|
|
@@ -7326,7 +7326,7 @@ var Hr = [
|
|
|
7326
7326
|
case M.replace:
|
|
7327
7327
|
for (var $ = 0; $ < d; $++) {
|
|
7328
7328
|
var j = Y[$];
|
|
7329
|
-
a[$] += (j + (z[$] - j) *
|
|
7329
|
+
a[$] += (j + (z[$] - j) * N - a[$]) * o;
|
|
7330
7330
|
}
|
|
7331
7331
|
break;
|
|
7332
7332
|
case M.add:
|
|
@@ -7334,12 +7334,12 @@ var Hr = [
|
|
|
7334
7334
|
if (m.bones)
|
|
7335
7335
|
for (var J = 0; J < d; J++) {
|
|
7336
7336
|
var j = Y[J];
|
|
7337
|
-
a[J] += (j + (z[J] - j) *
|
|
7337
|
+
a[J] += (j + (z[J] - j) * N) * o;
|
|
7338
7338
|
}
|
|
7339
7339
|
else
|
|
7340
7340
|
for (var _ = m.vertices, U = 0; U < d; U++) {
|
|
7341
7341
|
var j = Y[U];
|
|
7342
|
-
a[U] += (j + (z[U] - j) *
|
|
7342
|
+
a[U] += (j + (z[U] - j) * N - _[U]) * o;
|
|
7343
7343
|
}
|
|
7344
7344
|
}
|
|
7345
7345
|
}
|
|
@@ -7933,7 +7933,7 @@ var Hr = [
|
|
|
7933
7933
|
/** @class */
|
|
7934
7934
|
function() {
|
|
7935
7935
|
function s(e) {
|
|
7936
|
-
this.tracks = new Array(), this.timeScale = 1, this.unkeyedState = 0, this.events = new Array(), this.listeners = new Array(), this.queue = new bl(this), this.propertyIDs = new Yr(), this.animationsChanged = !1, this.trackEntryPool = new
|
|
7936
|
+
this.tracks = new Array(), this.timeScale = 1, this.unkeyedState = 0, this.events = new Array(), this.listeners = new Array(), this.queue = new bl(this), this.propertyIDs = new Yr(), this.animationsChanged = !1, this.trackEntryPool = new Wr(function() {
|
|
7937
7937
|
return new wl();
|
|
7938
7938
|
}), this.data = e;
|
|
7939
7939
|
}
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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)
|
|
@@ -8505,10 +8505,10 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
|
|
|
8505
8505
|
}
|
|
8506
8506
|
case re.NoScale:
|
|
8507
8507
|
case re.NoScaleOrReflection: {
|
|
8508
|
-
var E = H.cosDeg(i), L = H.sinDeg(i), D = (p * E + m * L) / f,
|
|
8509
|
-
b > 1e-5 && (b = 1 / b), D *= b,
|
|
8510
|
-
var Y = Math.PI / 2 + Math.atan2(
|
|
8511
|
-
l.a = D * v + z * w, l.c = D * x + z * S, l.b =
|
|
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 == re.NoScale && p * g - m * _ < 0 != (f < 0 != a < 0) && (b = -b);
|
|
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
|
+
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;
|
|
8513
8513
|
}
|
|
8514
8514
|
}
|
|
@@ -8665,13 +8665,13 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
|
|
|
8665
8665
|
}, s.prototype.apply2 = function(e, t, i, n, r, o, h, u, l) {
|
|
8666
8666
|
var f = e.ax, a = e.ay, c = e.ascaleX, d = e.ascaleY, p = c, m = d, _ = t.ascaleX, g = e.matrix, v = 0, x = 0, w = 0;
|
|
8667
8667
|
c < 0 ? (c = -c, v = 180, w = -1) : (v = 0, w = 1), d < 0 && (d = -d, w = -w), _ < 0 ? (_ = -_, x = 180) : x = 0;
|
|
8668
|
-
var S = t.ax, b = 0, C = 0, F = 0, T = g.a, E = g.c, L = g.b, D = g.d,
|
|
8669
|
-
!
|
|
8668
|
+
var S = t.ax, b = 0, C = 0, F = 0, T = g.a, E = g.c, L = g.b, D = g.d, N = Math.abs(c - d) <= 1e-4;
|
|
8669
|
+
!N || o ? (b = 0, C = T * S + g.tx, F = L * S + g.ty) : (b = t.ay, C = T * S + E * b + g.tx, F = L * S + D * b + g.ty);
|
|
8670
8670
|
var Y = e.parent.matrix;
|
|
8671
8671
|
if (!Y)
|
|
8672
8672
|
throw new Error("IK parent must itself have a parent.");
|
|
8673
8673
|
T = Y.a, E = Y.c, L = Y.b, D = Y.d;
|
|
8674
|
-
var z = 1 / (T * D - E * L), q = C - Y.tx, j = F - Y.ty, I = (q * D - j * E) * z - f, R = (j * T - q * L) * z - a, X = Math.sqrt(I * I + R * R),
|
|
8674
|
+
var z = 1 / (T * D - E * L), q = C - Y.tx, j = F - Y.ty, I = (q * D - j * E) * z - f, R = (j * T - q * L) * z - a, X = Math.sqrt(I * I + R * R), W = t.data.length * _, V, $;
|
|
8675
8675
|
if (X < 1e-4) {
|
|
8676
8676
|
this.apply1(e, i, n, !1, o, !1, l), t.updateWorldTransformWith(S, b, 0, t.ascaleX, t.ascaleY, t.ashearX, t.ashearY);
|
|
8677
8677
|
return;
|
|
@@ -8680,18 +8680,18 @@ 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
|
|
8684
|
-
if (
|
|
8685
|
-
var ft = Math.min(1,
|
|
8686
|
-
ft = (
|
|
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
|
-
t: if (
|
|
8690
|
-
|
|
8691
|
-
var Pt = (rt - X * X -
|
|
8692
|
-
Pt < -1 ? (Pt = -1, $ = Math.PI * r) : Pt > 1 ? (Pt = 1, $ = 0, o && (T = (Math.sqrt(rt) / (X +
|
|
8689
|
+
t: if (N) {
|
|
8690
|
+
W *= c;
|
|
8691
|
+
var Pt = (rt - X * X - W * W) / (2 * X * W);
|
|
8692
|
+
Pt < -1 ? (Pt = -1, $ = Math.PI * r) : Pt > 1 ? (Pt = 1, $ = 0, o && (T = (Math.sqrt(rt) / (X + W) - 1) * l + 1, p *= T, h && (m *= T))) : $ = Math.acos(Pt) * r, T = X + W * Pt, E = W * Math.sin($), V = Math.atan2(J * T - U * E, U * T + J * E);
|
|
8693
8693
|
} else {
|
|
8694
|
-
T = c *
|
|
8694
|
+
T = c * W, E = d * W;
|
|
8695
8695
|
var gt = T * T, Lt = E * E, ae = Math.atan2(J, U);
|
|
8696
8696
|
L = Lt * X * X + gt * rt - gt * Lt;
|
|
8697
8697
|
var Bt = -2 * Lt * X, xe = Lt - gt;
|
|
@@ -8738,7 +8738,7 @@ var kn = 0, Ks = 1, Qs = 2, Tn = 3, xl = 4, Js = 1, Sl = 2, Al = (
|
|
|
8738
8738
|
ot(e, s);
|
|
8739
8739
|
function e(t) {
|
|
8740
8740
|
var i = s.call(this, t, 0, !1) || this;
|
|
8741
|
-
return i.bones = new Array(), i._target = null, i.positionMode =
|
|
8741
|
+
return i.bones = new Array(), i._target = null, i.positionMode = Ne.Fixed, i.spacingMode = Vt.Fixed, i.rotateMode = mi.Chain, i.offsetRotation = 0, i.position = 0, i.spacing = 0, i.mixRotate = 0, i.mixX = 0, i.mixY = 0, i;
|
|
8742
8742
|
}
|
|
8743
8743
|
return Object.defineProperty(e.prototype, "target", {
|
|
8744
8744
|
get: function() {
|
|
@@ -8831,13 +8831,13 @@ var Tl = (
|
|
|
8831
8831
|
D = r.rotateMode == mi.Chain;
|
|
8832
8832
|
else {
|
|
8833
8833
|
D = !1;
|
|
8834
|
-
var
|
|
8835
|
-
L *=
|
|
8834
|
+
var N = this.target.bone.matrix;
|
|
8835
|
+
L *= N.a * N.d - N.b * N.c > 0 ? H.degRad : -H.degRad;
|
|
8836
8836
|
}
|
|
8837
|
-
for (var p = 0,
|
|
8837
|
+
for (var p = 0, N = 3; p < l; p++, N += 3) {
|
|
8838
8838
|
var _ = u[p], Y = _.matrix;
|
|
8839
8839
|
Y.tx += (T - Y.tx) * i, Y.ty += (E - Y.ty) * n;
|
|
8840
|
-
var v = F[
|
|
8840
|
+
var v = F[N], x = F[N + 1], z = v - T, q = x - E;
|
|
8841
8841
|
if (h) {
|
|
8842
8842
|
var j = c[p];
|
|
8843
8843
|
if (j != 0) {
|
|
@@ -8846,14 +8846,14 @@ var Tl = (
|
|
|
8846
8846
|
}
|
|
8847
8847
|
}
|
|
8848
8848
|
if (T = v, E = x, t > 0) {
|
|
8849
|
-
var R = Y.a, X = Y.c,
|
|
8850
|
-
if (o ? $ = F[
|
|
8849
|
+
var R = Y.a, X = Y.c, W = Y.b, V = Y.d, $ = 0, U = 0, J = 0;
|
|
8850
|
+
if (o ? $ = F[N - 1] : a[p + 1] == 0 ? $ = F[N + 2] : $ = Math.atan2(q, z), $ -= Math.atan2(W, R), D) {
|
|
8851
8851
|
U = Math.cos($), J = Math.sin($);
|
|
8852
8852
|
var rt = _.data.length;
|
|
8853
|
-
T += (rt * (U * R - J *
|
|
8853
|
+
T += (rt * (U * R - J * W) - z) * t, E += (rt * (J * R + U * W) - q) * t;
|
|
8854
8854
|
} else
|
|
8855
8855
|
$ += L;
|
|
8856
|
-
$ > H.PI ? $ -= H.PI2 : $ < -H.PI && ($ += H.PI2), $ *= t, U = Math.cos($), J = Math.sin($), Y.a = U * R - J *
|
|
8856
|
+
$ > H.PI ? $ -= H.PI2 : $ < -H.PI && ($ += H.PI2), $ *= t, U = Math.cos($), J = Math.sin($), Y.a = U * R - J * W, Y.c = U * X - J * V, Y.b = J * R + U * W, Y.d = J * X + U * V;
|
|
8857
8857
|
}
|
|
8858
8858
|
_.updateAppliedTransform();
|
|
8859
8859
|
}
|
|
@@ -8865,7 +8865,7 @@ var Tl = (
|
|
|
8865
8865
|
var d = e.lengths;
|
|
8866
8866
|
a -= l ? 1 : 2;
|
|
8867
8867
|
var p = d[a];
|
|
8868
|
-
this.data.positionMode ==
|
|
8868
|
+
this.data.positionMode == Ne.Percent && (r *= p);
|
|
8869
8869
|
var m;
|
|
8870
8870
|
switch (this.data.spacingMode) {
|
|
8871
8871
|
case Vt.Percent:
|
|
@@ -8908,9 +8908,9 @@ var Tl = (
|
|
|
8908
8908
|
return h;
|
|
8909
8909
|
}
|
|
8910
8910
|
l ? (f += 2, u = Z.setArraySize(this.world, f), e.computeWorldVertices(n, 2, f - 4, u, 0, 2), e.computeWorldVertices(n, 0, 2, u, f - 4, 2), u[f - 2] = u[0], u[f - 1] = u[1]) : (a--, f -= 4, u = Z.setArraySize(this.world, f), e.computeWorldVertices(n, 2, f, u, 0, 2));
|
|
8911
|
-
for (var C = Z.setArraySize(this.curves, a), F = 0, T = u[0], E = u[1], L = 0, D = 0,
|
|
8912
|
-
L = u[J], D = u[J + 1],
|
|
8913
|
-
this.data.positionMode ==
|
|
8911
|
+
for (var C = Z.setArraySize(this.curves, a), F = 0, T = u[0], E = u[1], L = 0, D = 0, N = 0, Y = 0, z = 0, q = 0, j = 0, I = 0, R = 0, X = 0, W = 0, V = 0, $ = 0, U = 0, _ = 0, J = 2; _ < a; _++, J += 6)
|
|
8912
|
+
L = u[J], D = u[J + 1], N = u[J + 2], Y = u[J + 3], z = u[J + 4], q = u[J + 5], j = (T - L * 2 + N) * 0.1875, I = (E - D * 2 + Y) * 0.1875, R = ((L - N) * 3 - T + z) * 0.09375, X = ((D - Y) * 3 - E + q) * 0.09375, W = j * 2 + R, V = I * 2 + X, $ = (L - T) * 0.75 + j + R * 0.16666667, U = (D - E) * 0.75 + I + X * 0.16666667, F += Math.sqrt($ * $ + U * U), $ += W, U += V, W += R, V += X, F += Math.sqrt($ * $ + U * U), $ += W, U += V, F += Math.sqrt($ * $ + U * U), $ += W + R, U += V + X, F += Math.sqrt($ * $ + U * U), C[_] = F, T = z, E = q;
|
|
8913
|
+
this.data.positionMode == Ne.Percent && (r *= F);
|
|
8914
8914
|
var rt;
|
|
8915
8915
|
switch (this.data.spacingMode) {
|
|
8916
8916
|
case Vt.Percent:
|
|
@@ -8922,7 +8922,7 @@ var Tl = (
|
|
|
8922
8922
|
default:
|
|
8923
8923
|
rt = 1;
|
|
8924
8924
|
}
|
|
8925
|
-
for (var
|
|
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,23 +8950,23 @@ 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],
|
|
8954
|
-
$ +=
|
|
8955
|
-
$ +=
|
|
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 *=
|
|
8958
|
-
var Lt =
|
|
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 =
|
|
8963
|
+
var b = nt[ft - 1];
|
|
8964
8964
|
w = ft + (w - b) / (Lt - b);
|
|
8965
8965
|
}
|
|
8966
8966
|
break;
|
|
8967
8967
|
}
|
|
8968
8968
|
}
|
|
8969
|
-
this.addCurvePosition(w * 0.1, T, E, L, D,
|
|
8969
|
+
this.addCurvePosition(w * 0.1, T, E, L, D, N, Y, z, q, h, g, i || _ > 0 && x == 0);
|
|
8970
8970
|
}
|
|
8971
8971
|
return h;
|
|
8972
8972
|
}, s.prototype.addBeforePosition = function(e, t, i, n, r) {
|
|
@@ -9038,8 +9038,8 @@ var Tl = (
|
|
|
9038
9038
|
S.a = L * b - D * F, S.c = L * C - D * T, S.b = D * b + L * F, S.d = D * C + L * T;
|
|
9039
9039
|
}
|
|
9040
9040
|
if (h) {
|
|
9041
|
-
var
|
|
9042
|
-
u.localToWorld(
|
|
9041
|
+
var N = this.temp;
|
|
9042
|
+
u.localToWorld(N.set(this.data.offsetX, this.data.offsetY)), S.tx += (N.x - S.tx) * t, S.ty += (N.y - S.ty) * i;
|
|
9043
9043
|
}
|
|
9044
9044
|
if (n != 0) {
|
|
9045
9045
|
var Y = Math.sqrt(S.a * S.a + S.b * S.b);
|
|
@@ -9067,8 +9067,8 @@ var Tl = (
|
|
|
9067
9067
|
S.a = L * b - D * F, S.c = L * C - D * T, S.b = D * b + L * F, S.d = D * C + L * T;
|
|
9068
9068
|
}
|
|
9069
9069
|
if (h) {
|
|
9070
|
-
var
|
|
9071
|
-
u.localToWorld(
|
|
9070
|
+
var N = this.temp;
|
|
9071
|
+
u.localToWorld(N.set(this.data.offsetX, this.data.offsetY)), S.tx += N.x * t, S.ty += N.y * i;
|
|
9072
9072
|
}
|
|
9073
9073
|
if (n != 0) {
|
|
9074
9074
|
var Y = (Math.sqrt(f * f + c * c) - 1 + this.data.offsetScaleX) * n + 1;
|
|
@@ -9776,7 +9776,7 @@ var Tl = (
|
|
|
9776
9776
|
m.order = n.readInt(!0), m.skinRequired = n.readBoolean(), x = n.readInt(!0);
|
|
9777
9777
|
for (var S = 0; S < x; S++)
|
|
9778
9778
|
m.bones.push(i.bones[n.readInt(!0)]);
|
|
9779
|
-
m.target = i.slots[n.readInt(!0)], m.positionMode = n.readInt(!0), m.spacingMode = n.readInt(!0), m.rotateMode = n.readInt(!0), m.offsetRotation = n.readFloat(), m.position = n.readFloat(), m.positionMode ==
|
|
9779
|
+
m.target = i.slots[n.readInt(!0)], m.positionMode = n.readInt(!0), m.spacingMode = n.readInt(!0), m.rotateMode = n.readInt(!0), m.offsetRotation = n.readFloat(), m.position = n.readFloat(), m.positionMode == Ne.Fixed && (m.position *= t), m.spacing = n.readFloat(), (m.spacingMode == Vt.Length || m.spacingMode == Vt.Fixed) && (m.spacing *= t), m.mixRotate = n.readFloat(), m.mixX = n.readFloat(), m.mixY = n.readFloat(), i.pathConstraints.push(m);
|
|
9780
9780
|
}
|
|
9781
9781
|
var F = this.readSkin(n, i, !0, l);
|
|
9782
9782
|
F && (i.defaultSkin = F, i.skins.push(F));
|
|
@@ -9811,10 +9811,10 @@ var Tl = (
|
|
|
9811
9811
|
}
|
|
9812
9812
|
f = n.readInt(!0);
|
|
9813
9813
|
for (var a = 0; a < f; a++) {
|
|
9814
|
-
var
|
|
9815
|
-
if (!
|
|
9814
|
+
var N = n.readString();
|
|
9815
|
+
if (!N)
|
|
9816
9816
|
throw new Error("Animatio name must not be null.");
|
|
9817
|
-
i.animations.push(this.readAnimation(n,
|
|
9817
|
+
i.animations.push(this.readAnimation(n, N, i));
|
|
9818
9818
|
}
|
|
9819
9819
|
return i;
|
|
9820
9820
|
}, s.prototype.readSkin = function(e, t, i, n) {
|
|
@@ -9867,10 +9867,10 @@ var Tl = (
|
|
|
9867
9867
|
return L ? (L.path = l, ht.rgba8888ToColor(L.color, g), L.bones = S.bones, L.vertices = S.vertices, L.worldVerticesLength = w << 1, L.triangles = F, L.regionUVs = new Float32Array(C), L.hullLength = T << 1, L.sequence = v, o && (L.edges = E, L.width = m * h, L.height = _ * h), L) : null;
|
|
9868
9868
|
}
|
|
9869
9869
|
case It.LinkedMesh: {
|
|
9870
|
-
var l = e.readStringRef(), g = e.readInt32(), D = e.readStringRef(),
|
|
9870
|
+
var l = e.readStringRef(), g = e.readInt32(), D = e.readStringRef(), N = e.readStringRef(), Y = e.readBoolean(), v = this.readSequence(e), m = 0, _ = 0;
|
|
9871
9871
|
o && (m = e.readFloat(), _ = e.readFloat()), l || (l = u);
|
|
9872
9872
|
var L = this.attachmentLoader.newMeshAttachment(i, u, l, v);
|
|
9873
|
-
return L ? (L.path = l, ht.rgba8888ToColor(L.color, g), L.sequence = v, o && (L.width = m * h, L.height = _ * h), this.linkedMeshes.push(new Il(L, D, n,
|
|
9873
|
+
return L ? (L.path = l, ht.rgba8888ToColor(L.color, g), L.sequence = v, o && (L.width = m * h, L.height = _ * h), this.linkedMeshes.push(new Il(L, D, n, N, Y)), L) : null;
|
|
9874
9874
|
}
|
|
9875
9875
|
case It.Path: {
|
|
9876
9876
|
for (var z = e.readBoolean(), q = e.readBoolean(), w = e.readInt(!0), S = this.readVertices(e, w), j = Z.newArray(w / 3, 0), I = 0, R = j.length; I < R; I++)
|
|
@@ -9883,8 +9883,8 @@ var Tl = (
|
|
|
9883
9883
|
return X ? (X.x = a * h, X.y = c * h, X.rotation = f, o && ht.rgba8888ToColor(X.color, g), X) : null;
|
|
9884
9884
|
}
|
|
9885
9885
|
case It.Clipping: {
|
|
9886
|
-
var
|
|
9887
|
-
return V ? (V.endSlot = t.slots[
|
|
9886
|
+
var W = e.readInt(!0), w = e.readInt(!0), S = this.readVertices(e, w), g = o ? e.readInt32() : 0, V = this.attachmentLoader.newClippingAttachment(i, u);
|
|
9887
|
+
return V ? (V.endSlot = t.slots[W], V.worldVerticesLength = w << 1, V.vertices = S.vertices, V.bones = S.bones, o && ht.rgba8888ToColor(V.color, g), V) : null;
|
|
9888
9888
|
}
|
|
9889
9889
|
}
|
|
9890
9890
|
return null;
|
|
@@ -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
|
|
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;
|
|
@@ -9963,30 +9963,30 @@ var Tl = (
|
|
|
9963
9963
|
}
|
|
9964
9964
|
case jl: {
|
|
9965
9965
|
for (var _ = e.readInt(!0), p = new na(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, S = e.readUnsignedByte() / 255, F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, x, w, S, F, T, E), m != d; m++) {
|
|
9966
|
-
var C = e.readFloat(), D = e.readUnsignedByte() / 255,
|
|
9966
|
+
var C = e.readFloat(), D = e.readUnsignedByte() / 255, N = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, z = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, j = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
|
|
9967
9967
|
switch (e.readByte()) {
|
|
9968
9968
|
case Te:
|
|
9969
9969
|
p.setStepped(m);
|
|
9970
9970
|
break;
|
|
9971
9971
|
case Pe:
|
|
9972
|
-
ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x,
|
|
9972
|
+
ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x, N, 1), ut(e, p, b++, m, 2, g, C, w, Y, 1), ut(e, p, b++, m, 3, g, C, S, z, 1), ut(e, p, b++, m, 4, g, C, F, q, 1), ut(e, p, b++, m, 5, g, C, T, j, 1), ut(e, p, b++, m, 6, g, C, E, I, 1);
|
|
9973
9973
|
}
|
|
9974
|
-
g = C, v = D, x =
|
|
9974
|
+
g = C, v = D, x = N, w = Y, S = z, F = q, T = j, E = I;
|
|
9975
9975
|
}
|
|
9976
9976
|
n.push(p);
|
|
9977
9977
|
break;
|
|
9978
9978
|
}
|
|
9979
9979
|
case ql: {
|
|
9980
9980
|
for (var _ = e.readInt(!0), p = new sa(c, _, u), g = e.readFloat(), v = e.readUnsignedByte() / 255, x = e.readUnsignedByte() / 255, w = e.readUnsignedByte() / 255, F = e.readUnsignedByte() / 255, T = e.readUnsignedByte() / 255, E = e.readUnsignedByte() / 255, m = 0, b = 0; p.setFrame(m, g, v, x, w, F, T, E), m != d; m++) {
|
|
9981
|
-
var C = e.readFloat(), D = e.readUnsignedByte() / 255,
|
|
9981
|
+
var C = e.readFloat(), D = e.readUnsignedByte() / 255, N = e.readUnsignedByte() / 255, Y = e.readUnsignedByte() / 255, q = e.readUnsignedByte() / 255, j = e.readUnsignedByte() / 255, I = e.readUnsignedByte() / 255;
|
|
9982
9982
|
switch (e.readByte()) {
|
|
9983
9983
|
case Te:
|
|
9984
9984
|
p.setStepped(m);
|
|
9985
9985
|
break;
|
|
9986
9986
|
case Pe:
|
|
9987
|
-
ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x,
|
|
9987
|
+
ut(e, p, b++, m, 0, g, C, v, D, 1), ut(e, p, b++, m, 1, g, C, x, N, 1), ut(e, p, b++, m, 2, g, C, w, Y, 1), ut(e, p, b++, m, 3, g, C, F, q, 1), ut(e, p, b++, m, 4, g, C, T, j, 1), ut(e, p, b++, m, 5, g, C, E, I, 1);
|
|
9988
9988
|
}
|
|
9989
|
-
g = C, v = D, x =
|
|
9989
|
+
g = C, v = D, x = N, w = Y, F = q, T = j, E = I;
|
|
9990
9990
|
}
|
|
9991
9991
|
n.push(p);
|
|
9992
9992
|
break;
|
|
@@ -10026,10 +10026,10 @@ var Tl = (
|
|
|
10026
10026
|
case Yl:
|
|
10027
10027
|
n.push(Pn(e, new qr(c, _, R), 1));
|
|
10028
10028
|
break;
|
|
10029
|
-
case
|
|
10029
|
+
case Wl:
|
|
10030
10030
|
n.push(Ge(e, new zr(c, _, R), 1));
|
|
10031
10031
|
break;
|
|
10032
|
-
case
|
|
10032
|
+
case Nl:
|
|
10033
10033
|
n.push(Ge(e, new Kr(c, _, R), 1));
|
|
10034
10034
|
break;
|
|
10035
10035
|
case Xl:
|
|
@@ -10043,7 +10043,7 @@ var Tl = (
|
|
|
10043
10043
|
}
|
|
10044
10044
|
}
|
|
10045
10045
|
for (var o = 0, h = e.readInt(!0); o < h; o++) {
|
|
10046
|
-
for (var
|
|
10046
|
+
for (var W = e.readInt(!0), c = e.readInt(!0), d = c - 1, p = new aa(c, e.readInt(!0), W), g = e.readFloat(), V = e.readFloat(), $ = e.readFloat() * r, m = 0, b = 0; p.setFrame(m, g, V, $, e.readByte(), e.readBoolean(), e.readBoolean()), m != d; m++) {
|
|
10047
10047
|
var C = e.readFloat(), U = e.readFloat(), J = e.readFloat() * r;
|
|
10048
10048
|
switch (e.readByte()) {
|
|
10049
10049
|
case Te:
|
|
@@ -10057,39 +10057,39 @@ 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
|
|
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
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,
|
|
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,
|
|
10069
|
+
g = C, rt = Lt, nt = ae, st = Bt, ft = xe, Pt = ie, gt = Ue;
|
|
10070
10070
|
}
|
|
10071
10071
|
n.push(p);
|
|
10072
10072
|
}
|
|
10073
10073
|
for (var o = 0, h = e.readInt(!0); o < h; o++)
|
|
10074
|
-
for (var
|
|
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(Ge(e, new la(e.readInt(!0), e.readInt(!0),
|
|
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(Ge(e, new ha(e.readInt(!0), e.readInt(!0),
|
|
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),
|
|
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,
|
|
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,
|
|
10092
|
+
g = C, rt = Lt, nt = ae, st = Bt;
|
|
10093
10093
|
}
|
|
10094
10094
|
n.push(p);
|
|
10095
10095
|
}
|
|
@@ -10170,9 +10170,9 @@ var Tl = (
|
|
|
10170
10170
|
}
|
|
10171
10171
|
n.push(p);
|
|
10172
10172
|
}
|
|
10173
|
-
for (var
|
|
10174
|
-
|
|
10175
|
-
return new os(t, n,
|
|
10173
|
+
for (var Nt = 0, o = 0, h = n.length; o < h; o++)
|
|
10174
|
+
Nt = Math.max(Nt, n[o].getDuration());
|
|
10175
|
+
return new os(t, n, Nt);
|
|
10176
10176
|
}, s.BlendModeValues = [ye.NORMAL, ye.ADD, ye.MULTIPLY, ye.SCREEN], s;
|
|
10177
10177
|
}()
|
|
10178
10178
|
), Il = (
|
|
@@ -10223,7 +10223,7 @@ function Pn(s, e, t) {
|
|
|
10223
10223
|
function ut(s, e, t, i, n, r, o, h, u, l) {
|
|
10224
10224
|
e.setBezier(t, i, n, r, h, s.readFloat(), s.readFloat() * l, s.readFloat(), s.readFloat() * l, o, u);
|
|
10225
10225
|
}
|
|
10226
|
-
var Ol = 0, Ll = 1, Bl = 2, Dl = 3, Yl = 4,
|
|
10226
|
+
var Ol = 0, Ll = 1, Bl = 2, Dl = 3, Yl = 4, Wl = 5, Nl = 6, Xl = 7, Vl = 8, $l = 9, Hl = 0, Ul = 1, Gl = 2, jl = 3, ql = 4, zl = 5, er = 0, Kl = 1, Ql = 0, Jl = 1, Zl = 2, Te = 1, Pe = 2;
|
|
10227
10227
|
(function(s) {
|
|
10228
10228
|
ot(e, s);
|
|
10229
10229
|
function e() {
|
|
@@ -10308,7 +10308,7 @@ var th = (
|
|
|
10308
10308
|
var S = g.target, b = i.findSlot(S);
|
|
10309
10309
|
if (!b)
|
|
10310
10310
|
throw new Error("Couldn't find target slot " + S + " for path constraint " + g.name + ".");
|
|
10311
|
-
c.target = b, c.positionMode = Z.enumValue(
|
|
10311
|
+
c.target = b, c.positionMode = Z.enumValue(Ne, P(g, "positionMode", "Percent")), c.spacingMode = Z.enumValue(Vt, P(g, "spacingMode", "Length")), c.rotateMode = Z.enumValue(mi, P(g, "rotateMode", "Tangent")), c.offsetRotation = P(g, "rotation", 0), c.position = P(g, "position", 0), c.positionMode == Ne.Fixed && (c.position *= t), c.spacing = P(g, "spacing", 0), (c.spacingMode == Vt.Length || c.spacingMode == Vt.Fixed) && (c.spacing *= t), c.mixRotate = P(g, "mixRotate", 1), c.mixX = P(g, "mixX", 1), c.mixY = P(g, "mixY", c.mixX), i.pathConstraints.push(c);
|
|
10312
10312
|
}
|
|
10313
10313
|
if (n.skins)
|
|
10314
10314
|
for (var u = 0; u < n.skins.length; u++) {
|
|
@@ -10346,9 +10346,9 @@ var th = (
|
|
|
10346
10346
|
if (!D)
|
|
10347
10347
|
throw new Error("Couldn't find slot " + L + " for skin " + C.name + ".");
|
|
10348
10348
|
var p = C.attachments[L];
|
|
10349
|
-
for (var
|
|
10350
|
-
var Y = this.readAttachment(p[
|
|
10351
|
-
Y && F.setAttachment(D.index,
|
|
10349
|
+
for (var N in p) {
|
|
10350
|
+
var Y = this.readAttachment(p[N], F, D.index, N, i);
|
|
10351
|
+
Y && F.setAttachment(D.index, N, Y);
|
|
10352
10352
|
}
|
|
10353
10353
|
}
|
|
10354
10354
|
i.skins.push(F), F.name == "default" && (i.defaultSkin = F);
|
|
@@ -10369,8 +10369,8 @@ var th = (
|
|
|
10369
10369
|
}
|
|
10370
10370
|
if (n.animations)
|
|
10371
10371
|
for (var X in n.animations) {
|
|
10372
|
-
var
|
|
10373
|
-
this.readAnimation(
|
|
10372
|
+
var W = n.animations[X];
|
|
10373
|
+
this.readAnimation(W, X, i);
|
|
10374
10374
|
}
|
|
10375
10375
|
return i;
|
|
10376
10376
|
}, s.prototype.readAttachment = function(e, t, i, n, r) {
|
|
@@ -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
|
|
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
|
}
|
|
@@ -10548,36 +10548,36 @@ var th = (
|
|
|
10548
10548
|
throw new Error("Bone not found: " + T);
|
|
10549
10549
|
var D = L.index;
|
|
10550
10550
|
for (var f in E) {
|
|
10551
|
-
var a = E[f],
|
|
10552
|
-
if (
|
|
10551
|
+
var a = E[f], N = a.length;
|
|
10552
|
+
if (N != 0) {
|
|
10553
10553
|
if (f === "rotate")
|
|
10554
|
-
r.push(Re(a, new ln(
|
|
10554
|
+
r.push(Re(a, new ln(N, N, D), 0, 1));
|
|
10555
10555
|
else if (f === "translate") {
|
|
10556
|
-
var d = new Ur(
|
|
10556
|
+
var d = new Ur(N, N << 1, D);
|
|
10557
10557
|
r.push(Fn(a, d, "x", "y", 0, n));
|
|
10558
10558
|
} else if (f === "translatex") {
|
|
10559
|
-
var d = new Gr(
|
|
10559
|
+
var d = new Gr(N, N, D);
|
|
10560
10560
|
r.push(Re(a, d, 0, n));
|
|
10561
10561
|
} else if (f === "translatey") {
|
|
10562
|
-
var d = new jr(
|
|
10562
|
+
var d = new jr(N, N, D);
|
|
10563
10563
|
r.push(Re(a, d, 0, n));
|
|
10564
10564
|
} else if (f === "scale") {
|
|
10565
|
-
var d = new qr(
|
|
10565
|
+
var d = new qr(N, N << 1, D);
|
|
10566
10566
|
r.push(Fn(a, d, "x", "y", 1, 1));
|
|
10567
10567
|
} else if (f === "scalex") {
|
|
10568
|
-
var d = new zr(
|
|
10568
|
+
var d = new zr(N, N, D);
|
|
10569
10569
|
r.push(Re(a, d, 1, 1));
|
|
10570
10570
|
} else if (f === "scaley") {
|
|
10571
|
-
var d = new Kr(
|
|
10571
|
+
var d = new Kr(N, N, D);
|
|
10572
10572
|
r.push(Re(a, d, 1, 1));
|
|
10573
10573
|
} else if (f === "shear") {
|
|
10574
|
-
var d = new Qr(
|
|
10574
|
+
var d = new Qr(N, N << 1, D);
|
|
10575
10575
|
r.push(Fn(a, d, "x", "y", 0, 1));
|
|
10576
10576
|
} else if (f === "shearx") {
|
|
10577
|
-
var d = new Jr(
|
|
10577
|
+
var d = new Jr(N, N, D);
|
|
10578
10578
|
r.push(Re(a, d, 0, 1));
|
|
10579
10579
|
} else if (f === "sheary") {
|
|
10580
|
-
var d = new Zr(
|
|
10580
|
+
var d = new Zr(N, N, D);
|
|
10581
10581
|
r.push(Re(a, d, 0, 1));
|
|
10582
10582
|
}
|
|
10583
10583
|
}
|
|
@@ -10597,8 +10597,8 @@ var th = (
|
|
|
10597
10597
|
d.shrink(v);
|
|
10598
10598
|
break;
|
|
10599
10599
|
}
|
|
10600
|
-
var w = P(x, "time", 0), X = P(x, "mix", 1),
|
|
10601
|
-
b && (v = dt(b, d, v, p, 0, _, w, I, X, 1), v = dt(b, d, v, p, 1, _, w, R,
|
|
10600
|
+
var w = P(x, "time", 0), X = P(x, "mix", 1), W = P(x, "softness", 0) * n, b = m.curve;
|
|
10601
|
+
b && (v = dt(b, d, v, p, 0, _, w, I, X, 1), v = dt(b, d, v, p, 1, _, w, R, W, n)), _ = w, I = X, R = W, m = x;
|
|
10602
10602
|
}
|
|
10603
10603
|
r.push(d);
|
|
10604
10604
|
}
|
|
@@ -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),
|
|
10614
|
-
d.setFrame(p, _, V, $, U, J, rt,
|
|
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),
|
|
10621
|
-
b && (v = dt(b, d, v, p, 0, _, w, V,
|
|
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
|
}
|
|
@@ -10635,7 +10635,7 @@ var th = (
|
|
|
10635
10635
|
var Bt = a.length;
|
|
10636
10636
|
if (f === "position") {
|
|
10637
10637
|
var d = new la(Bt, Bt, j);
|
|
10638
|
-
r.push(Re(a, d, 0, q.positionMode ==
|
|
10638
|
+
r.push(Re(a, d, 0, q.positionMode == Ne.Fixed ? n : 1));
|
|
10639
10639
|
} else if (f === "spacing") {
|
|
10640
10640
|
var d = new ha(Bt, Bt, j);
|
|
10641
10641
|
r.push(Re(a, d, 0, q.spacingMode == Vt.Length || q.spacingMode == Vt.Fixed ? n : 1));
|
|
@@ -10647,8 +10647,8 @@ var th = (
|
|
|
10647
10647
|
d.shrink(v);
|
|
10648
10648
|
break;
|
|
10649
10649
|
}
|
|
10650
|
-
var w = P(x, "time", 0),
|
|
10651
|
-
b && (v = dt(b, d, v, p, 0, _, w, V,
|
|
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
|
}
|
|
@@ -10724,18 +10724,18 @@ var th = (
|
|
|
10724
10724
|
var _t = e.drawOrder[O], mt = null, wt = P(_t, "offsets", null);
|
|
10725
10725
|
if (wt) {
|
|
10726
10726
|
mt = Z.newArray(lt, -1);
|
|
10727
|
-
for (var
|
|
10727
|
+
for (var Nt = Z.newArray(lt - wt.length, 0), he = 0, Ei = 0, Je = 0; Je < wt.length; Je++) {
|
|
10728
10728
|
var Bs = wt[Je], u = i.findSlot(Bs.slot);
|
|
10729
10729
|
if (!u)
|
|
10730
10730
|
throw new Error("Slot not found: " + u);
|
|
10731
10731
|
for (var l = u.index; he != l; )
|
|
10732
|
-
|
|
10732
|
+
Nt[Ei++] = he++;
|
|
10733
10733
|
mt[he + Bs.offset] = he++;
|
|
10734
10734
|
}
|
|
10735
10735
|
for (; he < lt; )
|
|
10736
|
-
|
|
10736
|
+
Nt[Ei++] = he++;
|
|
10737
10737
|
for (var Je = lt - 1; Je >= 0; Je--)
|
|
10738
|
-
mt[Je] == -1 && (mt[Je] =
|
|
10738
|
+
mt[Je] == -1 && (mt[Je] = Nt[--Ei]);
|
|
10739
10739
|
}
|
|
10740
10740
|
d.setFrame(p, P(_t, "time", 0), mt);
|
|
10741
10741
|
}
|
|
@@ -10816,7 +10816,7 @@ var ih = (
|
|
|
10816
10816
|
return e.prototype.createSkeleton = function(t) {
|
|
10817
10817
|
this.skeleton = new Ml(t), this.skeleton.updateWorldTransform(), this.stateData = new Al(t), this.state = new yl(this.stateData);
|
|
10818
10818
|
}, e;
|
|
10819
|
-
}(
|
|
10819
|
+
}(Nr)
|
|
10820
10820
|
);
|
|
10821
10821
|
/*! *****************************************************************************
|
|
10822
10822
|
Copyright (c) Microsoft Corporation.
|
|
@@ -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 =
|
|
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
|
/** */
|
|
@@ -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),
|
|
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(
|
|
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(
|
|
@@ -13299,7 +13299,7 @@ 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 =
|
|
13302
|
+
let ji = yi.from;
|
|
13303
13303
|
const Be = Math.PI / 180;
|
|
13304
13304
|
function ze(s, e) {
|
|
13305
13305
|
if (!s)
|
|
@@ -13370,7 +13370,7 @@ var At;
|
|
|
13370
13370
|
(function(s) {
|
|
13371
13371
|
s[s.Spawn = 0] = "Spawn", s[s.Normal = 2] = "Normal", s[s.Late = 5] = "Late";
|
|
13372
13372
|
})(At || (At = {}));
|
|
13373
|
-
const In =
|
|
13373
|
+
const In = We.shared, hi = Symbol("Position particle per emitter position");
|
|
13374
13374
|
class yt {
|
|
13375
13375
|
/**
|
|
13376
13376
|
* @param particleParent The container to add the particles to.
|
|
@@ -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
|
|
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] ||
|
|
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] ||
|
|
13916
|
+
e.texture = i.textures[r] || i.textures[i.textures.length - 1] || yi.EMPTY;
|
|
13917
13917
|
}
|
|
13918
13918
|
}
|
|
13919
13919
|
ys.type = "animatedSingle";
|
|
@@ -13986,7 +13986,7 @@ class As {
|
|
|
13986
13986
|
}
|
|
13987
13987
|
As.type = "textureOrdered";
|
|
13988
13988
|
As.editorConfig = null;
|
|
13989
|
-
const
|
|
13989
|
+
const xi = new Mt(), Ca = [
|
|
13990
13990
|
"E",
|
|
13991
13991
|
"LN2",
|
|
13992
13992
|
"LN10",
|
|
@@ -14027,13 +14027,13 @@ const bi = new Mt(), Ca = [
|
|
|
14027
14027
|
"sqrt",
|
|
14028
14028
|
"tan",
|
|
14029
14029
|
"tanh"
|
|
14030
|
-
],
|
|
14030
|
+
], Wh = new RegExp([
|
|
14031
14031
|
// Allow the 4 basic operations, parentheses and all numbers/decimals, as well
|
|
14032
14032
|
// as 'x', for the variable usage.
|
|
14033
14033
|
"[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"
|
|
14034
14034
|
].concat(Ca).join("|"), "g");
|
|
14035
|
-
function
|
|
14036
|
-
const e = s.match(
|
|
14035
|
+
function Nh(s) {
|
|
14036
|
+
const e = s.match(Wh);
|
|
14037
14037
|
for (let t = e.length - 1; t >= 0; --t)
|
|
14038
14038
|
Ca.indexOf(e[t]) >= 0 && (e[t] = `Math.${e[t]}`);
|
|
14039
14039
|
return s = e.join(""), new Function("x", `return ${s};`);
|
|
@@ -14046,7 +14046,7 @@ class Cs {
|
|
|
14046
14046
|
this.path = e.path;
|
|
14047
14047
|
else
|
|
14048
14048
|
try {
|
|
14049
|
-
this.path =
|
|
14049
|
+
this.path = Nh(e.path);
|
|
14050
14050
|
} catch {
|
|
14051
14051
|
this.path = null;
|
|
14052
14052
|
}
|
|
@@ -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,
|
|
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";
|
|
@@ -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 =
|
|
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
|
|
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(
|
|
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,
|
|
14876
|
-
}), await Promise.race([this._promise,
|
|
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() {
|
|
@@ -14917,7 +14917,7 @@ class fu extends Ct {
|
|
|
14917
14917
|
async create(t) {
|
|
14918
14918
|
return this.instance.hitArea = new nn(0, 0, this._config.width, this._config.height), this.instance.interactive = !0, this.instance.buttonMode = !0, this._hintContainer = new jt("hint.container"), this._hintContainer.buttonMode = !0, this._hintContainer.interactive = !0, this._hintContainer.on("pointerup", (i) => {
|
|
14919
14919
|
i.stopPropagation(), this.close();
|
|
14920
|
-
}), this._spritePlate = bt.assets.has(this._config.assetsName.plate) ? bt.getSprite(this._config.assetsName.plate, this._config.texturesNames.plate) : new Tt(), this._spriteSymbol = new Tt(), this._spritePlate.anchor.set(0.5), this._spriteSymbol.anchor.set(0.5), this._textLengths = new
|
|
14920
|
+
}), this._spritePlate = bt.assets.has(this._config.assetsName.plate) ? bt.getSprite(this._config.assetsName.plate, this._config.texturesNames.plate) : new Tt(), this._spriteSymbol = new Tt(), this._spritePlate.anchor.set(0.5), this._spriteSymbol.anchor.set(0.5), this._textLengths = new Ni("", this._config.styleLengths), this._textBets = new Ni("", this._config.styleBets), this._textDescription = new Ni("", this._config.styleDescription), this._textLengths.anchor.set(0, 0.5), this._textBets.anchor.set(0, 0.5), this._textDescription.anchor.set(0, 0.5), this.instance.on("pointerup", (i) => {
|
|
14921
14921
|
const { x: n, y: r } = i.data.getLocalPosition(this.instance);
|
|
14922
14922
|
this.emit(`${this.name}:click`, { x: n, y: r });
|
|
14923
14923
|
}), this.on("renderer:pointerup", this.name, (i) => {
|
|
@@ -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:
|
|
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:
|
|
15016
|
+
duration: it.apply(this, this._config.durationFadeOut) / 1e3,
|
|
15017
15017
|
onComplete: () => {
|
|
15018
15018
|
this._animation.state.clearTracks(), this._animation.hide();
|
|
15019
15019
|
}
|
|
@@ -15344,7 +15344,10 @@ class Ba extends Ct {
|
|
|
15344
15344
|
* Default: simple show -> hold -> hide animation
|
|
15345
15345
|
*/
|
|
15346
15346
|
async _animateContainer(t) {
|
|
15347
|
-
const { animation: i } = this._config, n = (i == null ? void 0 : i.initial) || { pixi: { alpha: 0, scale: 0.9 } }, r = (
|
|
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, {
|
|
15348
15351
|
duration: 0.2,
|
|
15349
15352
|
pixi: { alpha: 1, scale: 1 }
|
|
15350
15353
|
}), h = this._getAnimationVars(i == null ? void 0 : i.animateHide, {
|
|
@@ -15352,7 +15355,7 @@ class Ba extends Ct {
|
|
|
15352
15355
|
pixi: { alpha: 0, scale: 0.8 }
|
|
15353
15356
|
});
|
|
15354
15357
|
this._applyInitialState(t, n);
|
|
15355
|
-
const u = `payout.animation.${Date.now()}.${Math.random()}`, l = Qt(u).set(t, n).to(t, o).to(t, { delay: r / 1e3, ...h }).timeScale(
|
|
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));
|
|
15356
15359
|
this._timelines.push(l), await l;
|
|
15357
15360
|
}
|
|
15358
15361
|
_applyInitialState(t, i) {
|
|
@@ -15415,7 +15418,7 @@ class Ba extends Ct {
|
|
|
15415
15418
|
_getAnimationVars(t, i) {
|
|
15416
15419
|
if (!t) return i || {};
|
|
15417
15420
|
const [n, r] = t;
|
|
15418
|
-
return r &&
|
|
15421
|
+
return r && it(0, 1) === 1 ? { ...n, ...r } : n;
|
|
15419
15422
|
}
|
|
15420
15423
|
_getWinPosition(t, i) {
|
|
15421
15424
|
const n = [];
|
|
@@ -15500,19 +15503,21 @@ class Ba extends Ct {
|
|
|
15500
15503
|
* Base implementation that can be used by both regular and total payout components
|
|
15501
15504
|
*/
|
|
15502
15505
|
async _createPayoutContainer(t, i, n) {
|
|
15503
|
-
var
|
|
15506
|
+
var f, a, c;
|
|
15504
15507
|
const r = new jt("payout.container"), { textComponent: o, currencyComponent: h } = await this._createTextComponents(
|
|
15505
15508
|
t,
|
|
15506
15509
|
this._config.text || {},
|
|
15507
15510
|
r
|
|
15508
15511
|
);
|
|
15509
15512
|
if ((n == null ? void 0 : n.applyScaling) !== !1) {
|
|
15510
|
-
const
|
|
15511
|
-
this._applyTextAndCurrencyScaling(o, h,
|
|
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);
|
|
15512
15515
|
}
|
|
15513
15516
|
r.position.set(i.x, i.y);
|
|
15514
|
-
const u = this._createAndAddGlowSprite((
|
|
15515
|
-
|
|
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;
|
|
15516
15521
|
}
|
|
15517
15522
|
async create(t) {
|
|
15518
15523
|
return await super.create(t), this._containers = [], this._textComponents = [], this._glows = [], this;
|
|
@@ -15572,9 +15577,7 @@ class gu extends Ba {
|
|
|
15572
15577
|
duration: 0.2,
|
|
15573
15578
|
pixi: { alpha: 0, scale: 0.8 },
|
|
15574
15579
|
ease: Fe.out
|
|
15575
|
-
});
|
|
15576
|
-
this._applyInitialState(e, i);
|
|
15577
|
-
const 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));
|
|
15578
15581
|
this._timelines.push(u), await u;
|
|
15579
15582
|
}
|
|
15580
15583
|
}
|
|
@@ -15615,7 +15618,7 @@ class _u extends Ba {
|
|
|
15615
15618
|
pixi: { alpha: 0, scale: o || 1 }
|
|
15616
15619
|
});
|
|
15617
15620
|
t.alpha = 0, t.scale.set(r || 0.98);
|
|
15618
|
-
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(
|
|
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));
|
|
15619
15622
|
this._timelineTotal = c, await c;
|
|
15620
15623
|
}
|
|
15621
15624
|
async skip() {
|
|
@@ -15629,7 +15632,7 @@ class _u extends Ba {
|
|
|
15629
15632
|
}
|
|
15630
15633
|
}
|
|
15631
15634
|
function oc(s, e, t = 30, i = t) {
|
|
15632
|
-
const n =
|
|
15635
|
+
const n = _i(0, t, s, e - (i + t)), r = 100 / t;
|
|
15633
15636
|
for (let h = 0; h < t; h++)
|
|
15634
15637
|
n.lineStyle(1, 16777215, (100 - r * h) / 100), n.moveTo(0, t - h), n.lineTo(s, t - h);
|
|
15635
15638
|
const o = 100 / i;
|
|
@@ -15804,7 +15807,7 @@ class vu extends Ct {
|
|
|
15804
15807
|
}
|
|
15805
15808
|
/** Adds single symbol movement to motion timeline */
|
|
15806
15809
|
addMotion() {
|
|
15807
|
-
const t =
|
|
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;
|
|
15808
15811
|
this._tlMotion.call(() => this.spawn(!this._isStopProcessing)).to(this._symbolsContainer, {
|
|
15809
15812
|
y: i,
|
|
15810
15813
|
duration: t,
|
|
@@ -15815,11 +15818,11 @@ class vu extends Ct {
|
|
|
15815
15818
|
/** Animates bounce */
|
|
15816
15819
|
async animateBounce() {
|
|
15817
15820
|
this._config.bounceOffset && (this._config.events.bounce && this.emit(`${this.name}:bounce`, { iReel: this.iReel, stopCodes: this._stopCodesInitial }), this._tlMotion.to(this._symbolsContainer, {
|
|
15818
|
-
duration:
|
|
15821
|
+
duration: it(...this._config.timings.spin.bounceDown) / 1e3,
|
|
15819
15822
|
y: this._config.bounceOffset,
|
|
15820
15823
|
ease: Fe.none
|
|
15821
15824
|
}).to(this._symbolsContainer, {
|
|
15822
|
-
duration:
|
|
15825
|
+
duration: it(...this._config.timings.spin.bounceUp) / 1e3,
|
|
15823
15826
|
y: 0,
|
|
15824
15827
|
ease: Fe.none
|
|
15825
15828
|
}), await this._tlMotion);
|
|
@@ -15844,8 +15847,8 @@ class vu extends Ct {
|
|
|
15844
15847
|
/** Animates intrigue */
|
|
15845
15848
|
async animateIntrigue() {
|
|
15846
15849
|
const t = this._config.components.intrigue.motion;
|
|
15847
|
-
this._breakableSleep = me({}, { duration:
|
|
15848
|
-
duration:
|
|
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,
|
|
15849
15852
|
ease: t.ease
|
|
15850
15853
|
});
|
|
15851
15854
|
}
|
|
@@ -15905,7 +15908,7 @@ class vu extends Ct {
|
|
|
15905
15908
|
this._animateMotion({ type: "clear", symbol: i });
|
|
15906
15909
|
}), Bi.wait(
|
|
15907
15910
|
() => this._tlMotion.then(),
|
|
15908
|
-
() => this._tlMotion.timeScale(
|
|
15911
|
+
() => this._tlMotion.timeScale(it(...t)),
|
|
15909
15912
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
15910
15913
|
);
|
|
15911
15914
|
}
|
|
@@ -15917,7 +15920,7 @@ class vu extends Ct {
|
|
|
15917
15920
|
this._animateMotion({ type: "fall", symbol: r, toPosition: r.iRow, hasIntrigue: i });
|
|
15918
15921
|
}), this._tlMotion.timeScale(vt("skipActive", !1) ? this._config.cascade.skipTimeScale : 1), Bi.wait(
|
|
15919
15922
|
() => this._tlMotion.then(),
|
|
15920
|
-
() => this._tlMotion.timeScale(
|
|
15923
|
+
() => this._tlMotion.timeScale(it(...n)),
|
|
15921
15924
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
15922
15925
|
);
|
|
15923
15926
|
}
|
|
@@ -15951,7 +15954,7 @@ class vu extends Ct {
|
|
|
15951
15954
|
});
|
|
15952
15955
|
}), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
|
|
15953
15956
|
() => this._tlMotion.then(),
|
|
15954
|
-
() => this._tlMotion.timeScale(
|
|
15957
|
+
() => this._tlMotion.timeScale(it(...h.timeScale)),
|
|
15955
15958
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
15956
15959
|
);
|
|
15957
15960
|
}
|
|
@@ -15964,7 +15967,7 @@ class vu extends Ct {
|
|
|
15964
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 });
|
|
15965
15968
|
}), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
|
|
15966
15969
|
() => this._tlMotion.then(),
|
|
15967
|
-
() => this._tlMotion.timeScale(
|
|
15970
|
+
() => this._tlMotion.timeScale(it(...n)),
|
|
15968
15971
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
15969
15972
|
);
|
|
15970
15973
|
}
|
|
@@ -15984,7 +15987,7 @@ class vu extends Ct {
|
|
|
15984
15987
|
});
|
|
15985
15988
|
}), this._tlMotion.call(() => this.instance.removeMask()), Bi.wait(
|
|
15986
15989
|
() => this._tlMotion.then(),
|
|
15987
|
-
() => this._tlMotion.timeScale(
|
|
15990
|
+
() => this._tlMotion.timeScale(it(...o)),
|
|
15988
15991
|
() => this._tlMotion.timeScale(this._config.cascade.skipTimeScale)
|
|
15989
15992
|
);
|
|
15990
15993
|
}
|
|
@@ -16004,17 +16007,17 @@ class vu extends Ct {
|
|
|
16004
16007
|
toPosition: -1,
|
|
16005
16008
|
hasIntrigue: !1,
|
|
16006
16009
|
...t
|
|
16007
|
-
}, { height: g, indentTop: v } = this._config.components.symbol.size, x = m * (g + v), w =
|
|
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;
|
|
16008
16011
|
let C = S + b;
|
|
16009
16012
|
if (_) {
|
|
16010
16013
|
const { rowsIntrigueDelay: z, reelsIntrigueDelay: q, onRefill: j } = this._config.intrigue;
|
|
16011
|
-
j && (C +=
|
|
16014
|
+
j && (C += it(...z) * d, C += it(...q));
|
|
16012
16015
|
}
|
|
16013
16016
|
(f === "fall" || f === "refill") && (a.y = -w, a.animateShow()), this._tlMotion.to(
|
|
16014
16017
|
a,
|
|
16015
16018
|
{
|
|
16016
16019
|
y: f === "clear" ? w : this._gridY[c],
|
|
16017
|
-
duration:
|
|
16020
|
+
duration: it(...n),
|
|
16018
16021
|
delay: C,
|
|
16019
16022
|
ease: l,
|
|
16020
16023
|
onStart: () => this._motionStarted(f, a),
|
|
@@ -16024,41 +16027,41 @@ class vu extends Ct {
|
|
|
16024
16027
|
), h[0] && this._tlMotion.call(
|
|
16025
16028
|
() => a.setTextureByCode(a.code, !0),
|
|
16026
16029
|
null,
|
|
16027
|
-
|
|
16030
|
+
it(...h) + C
|
|
16028
16031
|
), u[0] && this._tlMotion.call(
|
|
16029
16032
|
() => a.setTextureByCode(a.code, !1),
|
|
16030
16033
|
null,
|
|
16031
|
-
C +
|
|
16032
|
-
), (f === "refill" || f === "fall") && this._tlMotion.call(() => a.animateStop(), null, C +
|
|
16034
|
+
C + it(...n) - it(...u)
|
|
16035
|
+
), (f === "refill" || f === "fall") && this._tlMotion.call(() => a.animateStop(), null, C + it(...n));
|
|
16033
16036
|
const {
|
|
16034
16037
|
distance: F,
|
|
16035
16038
|
durationDown: T,
|
|
16036
16039
|
durationUp: E,
|
|
16037
16040
|
easeDown: L,
|
|
16038
16041
|
easeUp: D,
|
|
16039
|
-
scaleX:
|
|
16042
|
+
scaleX: N,
|
|
16040
16043
|
scaleY: Y
|
|
16041
16044
|
} = this._config.cascade.bounce;
|
|
16042
16045
|
F[0] && f !== "clear" && this._tlMotion.to(
|
|
16043
16046
|
a,
|
|
16044
16047
|
{
|
|
16045
|
-
y: this._gridY[c] +
|
|
16046
|
-
duration:
|
|
16047
|
-
scaleX:
|
|
16048
|
-
scaleY:
|
|
16048
|
+
y: this._gridY[c] + it(...F),
|
|
16049
|
+
duration: it(...T),
|
|
16050
|
+
scaleX: it(...N),
|
|
16051
|
+
scaleY: it(...Y),
|
|
16049
16052
|
ease: L
|
|
16050
16053
|
},
|
|
16051
|
-
C +
|
|
16054
|
+
C + it(...n)
|
|
16052
16055
|
).to(
|
|
16053
16056
|
a,
|
|
16054
16057
|
{
|
|
16055
16058
|
y: this._gridY[c],
|
|
16056
|
-
duration:
|
|
16059
|
+
duration: it(...E),
|
|
16057
16060
|
scaleX: 1,
|
|
16058
16061
|
scaleY: 1,
|
|
16059
16062
|
ease: D
|
|
16060
16063
|
},
|
|
16061
|
-
C +
|
|
16064
|
+
C + it(...n) + it(...T)
|
|
16062
16065
|
);
|
|
16063
16066
|
}
|
|
16064
16067
|
/** optional actions before base move animation */
|
|
@@ -16330,7 +16333,7 @@ function fr(s, e = 200, t = mn(0, 16777215), i = !1) {
|
|
|
16330
16333
|
dropShadowBlur: 5,
|
|
16331
16334
|
dropShadowDistance: e / 4
|
|
16332
16335
|
});
|
|
16333
|
-
const r = new
|
|
16336
|
+
const r = new Ni(s.toString(), n);
|
|
16334
16337
|
return r.updateText(!1), r.texture;
|
|
16335
16338
|
}
|
|
16336
16339
|
function ue(s) {
|
|
@@ -16616,7 +16619,6 @@ const hc = Zn.easeIn, cc = Zn.easeIn, pr = Zn.easeIn, uc = {
|
|
|
16616
16619
|
]
|
|
16617
16620
|
},
|
|
16618
16621
|
positioning: {
|
|
16619
|
-
offset: { x: 0, y: -20 },
|
|
16620
16622
|
chessOffset: 1
|
|
16621
16623
|
},
|
|
16622
16624
|
avoidOverlap: !0,
|
|
@@ -16652,6 +16654,7 @@ class yu extends Ct {
|
|
|
16652
16654
|
y(this, "_startPromises", []);
|
|
16653
16655
|
y(this, "_winSymbolContainer");
|
|
16654
16656
|
y(this, "_winSymbolsParentContainer", []);
|
|
16657
|
+
y(this, "_activeWinPositions", /* @__PURE__ */ new Set());
|
|
16655
16658
|
t && hn(this._config, t);
|
|
16656
16659
|
}
|
|
16657
16660
|
/** Gets slot width */
|
|
@@ -16759,14 +16762,14 @@ class yu extends Ct {
|
|
|
16759
16762
|
}
|
|
16760
16763
|
/** Breaks all current animations */
|
|
16761
16764
|
breakAllAnimations() {
|
|
16762
|
-
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();
|
|
16763
16766
|
}
|
|
16764
16767
|
/** Starts spin */
|
|
16765
16768
|
async start() {
|
|
16766
16769
|
this.breakAllAnimations(), this.stopSounds(), this._config.events.start && this.emit(`${this.name}:start`), this._isMotion = !0;
|
|
16767
16770
|
for (const [t, i] of this._config.order.start.entries()) {
|
|
16768
|
-
const n =
|
|
16769
|
-
t > 0 && n && await
|
|
16771
|
+
const n = it(...this._config.spinDelay.start);
|
|
16772
|
+
t > 0 && n && await gi(n), this._startPromises = i.map((r) => this._reels[r].start());
|
|
16770
16773
|
}
|
|
16771
16774
|
}
|
|
16772
16775
|
/** Stops spin */
|
|
@@ -16775,7 +16778,7 @@ class yu extends Ct {
|
|
|
16775
16778
|
await Promise.all(this._startPromises);
|
|
16776
16779
|
const i = [], { numRows: n } = this._config.components.reel, r = this.getIntrigueReels(t), o = this._config.components.reel.intrigue.onStop;
|
|
16777
16780
|
for (const [h, u] of this._config.order.stop.entries()) {
|
|
16778
|
-
const l = this._config.components.reel.animationType === Le.slot ?
|
|
16781
|
+
const l = this._config.components.reel.animationType === Le.slot ? it(...this._config.spinDelay.stop) : 0;
|
|
16779
16782
|
h > 0 && l && !vt("skipActive", !1) && (this._breakableSleep = me({}, { duration: l / 1e3 }), await this._breakableSleep);
|
|
16780
16783
|
let f = !1;
|
|
16781
16784
|
for (let a = 0; a < u.length; a++) {
|
|
@@ -16851,12 +16854,14 @@ class yu extends Ct {
|
|
|
16851
16854
|
* Может быть вызван параллельно много раз
|
|
16852
16855
|
*/
|
|
16853
16856
|
async animatePayout(t, i = !0) {
|
|
16854
|
-
const n = t.positions.slice(0, t.length)
|
|
16855
|
-
this.
|
|
16856
|
-
|
|
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,
|
|
16857
16862
|
this._config.components.frames.enabled ? this._framesComponent.start(n) : null,
|
|
16858
16863
|
Promise.all(n.map((o) => this.getSymbolByPosition(o).animateWin()))
|
|
16859
|
-
]), this._moveWinSymbolsBack(n), this.
|
|
16864
|
+
]), this._moveWinSymbolsBack(n), n.forEach((o) => this._activeWinPositions.delete(o)), this._syncInactiveSymbolsState();
|
|
16860
16865
|
}
|
|
16861
16866
|
/**
|
|
16862
16867
|
* Анимирует общую сумму выигрыша (total win)
|
|
@@ -16938,8 +16943,49 @@ class yu extends Ct {
|
|
|
16938
16943
|
!this._config.components.lines.enabled || this._linesComponent.disabled || (this._linesComponent.disabled = !0, this._linesComponent.break());
|
|
16939
16944
|
}
|
|
16940
16945
|
/** */
|
|
16941
|
-
|
|
16942
|
-
|
|
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);
|
|
16943
16989
|
}
|
|
16944
16990
|
/** */
|
|
16945
16991
|
async animateHideSymbols(t) {
|
|
@@ -17272,12 +17318,12 @@ class Ya extends Ct {
|
|
|
17272
17318
|
async animateHide() {
|
|
17273
17319
|
const { hideDuration: t, hideDelay: i } = this._config.vanish, n = Qt().to(
|
|
17274
17320
|
this._sprite,
|
|
17275
|
-
{ alpha: 0, duration:
|
|
17321
|
+
{ alpha: 0, duration: it(...t), delay: it(...i) },
|
|
17276
17322
|
0
|
|
17277
17323
|
);
|
|
17278
17324
|
this._animation && n.to(
|
|
17279
17325
|
this._animation,
|
|
17280
|
-
{ alpha: 0, duration:
|
|
17326
|
+
{ alpha: 0, duration: it(...t), delay: it(...i) },
|
|
17281
17327
|
0
|
|
17282
17328
|
), await n;
|
|
17283
17329
|
}
|
|
@@ -17313,7 +17359,7 @@ class bu extends Ya {
|
|
|
17313
17359
|
}
|
|
17314
17360
|
/** @inheritdoc */
|
|
17315
17361
|
async animateName(e, t) {
|
|
17316
|
-
this.disabled || !this.initAnimation() || (await this._animation.animate(e, !1, !1,
|
|
17362
|
+
this.disabled || !this.initAnimation() || (await this._animation.animate(e, !1, !1, it(...t)), this.animateIdle());
|
|
17317
17363
|
}
|
|
17318
17364
|
/** @inheritdoc */
|
|
17319
17365
|
async animateWin() {
|
|
@@ -17429,7 +17475,7 @@ class gc extends Ct {
|
|
|
17429
17475
|
this._emptySprite = bt.getSprite(this._assetName, this._empty), this.instance.addChild(this._emptySprite);
|
|
17430
17476
|
break;
|
|
17431
17477
|
default:
|
|
17432
|
-
this._emptySprite = bt.getSprite(this._assetName, this._empty), this._fullSprite = bt.getSprite(this._assetName, this._full),
|
|
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);
|
|
17433
17479
|
break;
|
|
17434
17480
|
}
|
|
17435
17481
|
return this;
|
|
@@ -17605,7 +17651,7 @@ function wc(s, e) {
|
|
|
17605
17651
|
);
|
|
17606
17652
|
return t.width = s.width, t.height = s.height, e.forEach((r) => {
|
|
17607
17653
|
n.addColorStop(r.stop, r.color.getRGBAString());
|
|
17608
|
-
}), i.fillStyle = n, i.fillRect(0, 0, s.width, s.height),
|
|
17654
|
+
}), i.fillStyle = n, i.fillRect(0, 0, s.width, s.height), yi.from(t);
|
|
17609
17655
|
}
|
|
17610
17656
|
function Qn(s, e, t, i, n, r = !1, o = 0.01) {
|
|
17611
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 };
|
|
@@ -17642,8 +17688,8 @@ function Yu(s, e, t) {
|
|
|
17642
17688
|
const i = Math.min(e, t), n = Math.max(e, t);
|
|
17643
17689
|
return s >= i && s <= n;
|
|
17644
17690
|
}
|
|
17645
|
-
const
|
|
17646
|
-
function
|
|
17691
|
+
const Wu = (s) => Object.keys(s).reduce((e, t) => ({ ...e, [t]: t }), {});
|
|
17692
|
+
function Nu(s, e, t = 0) {
|
|
17647
17693
|
let i = e;
|
|
17648
17694
|
const n = vt("gameplay_speed", 50) / 50 - 1;
|
|
17649
17695
|
return i = s - i * n, t > 0 ? parseFloat(i.toFixed(t)) : Math.round(i);
|
|
@@ -18081,10 +18127,10 @@ function xc() {
|
|
|
18081
18127
|
L();
|
|
18082
18128
|
else {
|
|
18083
18129
|
d._playLock = !0, d._state = "loading";
|
|
18084
|
-
var
|
|
18085
|
-
d._state = "loaded", L(), T.removeEventListener(t._canPlayEvent,
|
|
18130
|
+
var N = function() {
|
|
18131
|
+
d._state = "loaded", L(), T.removeEventListener(t._canPlayEvent, N, !1);
|
|
18086
18132
|
};
|
|
18087
|
-
T.addEventListener(t._canPlayEvent,
|
|
18133
|
+
T.addEventListener(t._canPlayEvent, N, !1), d._clearTimer(g._id);
|
|
18088
18134
|
}
|
|
18089
18135
|
}
|
|
18090
18136
|
return g._id;
|
|
@@ -19087,7 +19133,7 @@ const Ku = () => {
|
|
|
19087
19133
|
return this.valueOf();
|
|
19088
19134
|
};
|
|
19089
19135
|
};
|
|
19090
|
-
class
|
|
19136
|
+
class Wa extends Ti {
|
|
19091
19137
|
/**
|
|
19092
19138
|
* Конструктор сцены (но не объектов на ней)
|
|
19093
19139
|
* @param name
|
|
@@ -19124,7 +19170,7 @@ class Na extends Ti {
|
|
|
19124
19170
|
this.instance.hide();
|
|
19125
19171
|
}
|
|
19126
19172
|
}
|
|
19127
|
-
class Qu extends
|
|
19173
|
+
class Qu extends Wa {
|
|
19128
19174
|
/** @constructor */
|
|
19129
19175
|
constructor(t = "background.scene") {
|
|
19130
19176
|
super(t);
|
|
@@ -19198,7 +19244,7 @@ class Qu extends Na {
|
|
|
19198
19244
|
t.pivot.set(t.width / 2, t.height / 2), t.position.set(et.gameWidth / 2, et.gameHeight / 2);
|
|
19199
19245
|
}
|
|
19200
19246
|
}
|
|
19201
|
-
class Ju extends
|
|
19247
|
+
class Ju extends Wa {
|
|
19202
19248
|
constructor() {
|
|
19203
19249
|
super(...arguments);
|
|
19204
19250
|
y(this, "_maskGraphics", new Ci());
|
|
@@ -19216,7 +19262,7 @@ class Ju extends Na {
|
|
|
19216
19262
|
export {
|
|
19217
19263
|
Ct as AbstractComponent,
|
|
19218
19264
|
rh as AbstractHtmlComponent,
|
|
19219
|
-
|
|
19265
|
+
Wa as AbstractScene,
|
|
19220
19266
|
bt as Assets,
|
|
19221
19267
|
ed as Back,
|
|
19222
19268
|
Qu as BackgroundScene,
|
|
@@ -19256,7 +19302,7 @@ export {
|
|
|
19256
19302
|
ct as EPivot,
|
|
19257
19303
|
ao as EPromoType,
|
|
19258
19304
|
Ar as ESelectType,
|
|
19259
|
-
|
|
19305
|
+
bi as ESoundsType,
|
|
19260
19306
|
Br as ETrackSwitch,
|
|
19261
19307
|
ad as Elastic,
|
|
19262
19308
|
be as Emitter,
|
|
@@ -19347,7 +19393,7 @@ export {
|
|
|
19347
19393
|
$s as convertToFixed,
|
|
19348
19394
|
wc as createRadialGradient,
|
|
19349
19395
|
Ou as createRadialWBGradient,
|
|
19350
|
-
|
|
19396
|
+
Ws as debounce,
|
|
19351
19397
|
hh as debugContainer,
|
|
19352
19398
|
Mu as debugLine,
|
|
19353
19399
|
hn as deepMerge,
|
|
@@ -19357,7 +19403,7 @@ export {
|
|
|
19357
19403
|
nu as displayObjectToImage,
|
|
19358
19404
|
Sh as displayObjectToTexture,
|
|
19359
19405
|
Bu as distance,
|
|
19360
|
-
|
|
19406
|
+
_i as drawRect,
|
|
19361
19407
|
oc as drawReel,
|
|
19362
19408
|
Fe as ease,
|
|
19363
19409
|
Vi as error,
|
|
@@ -19368,7 +19414,7 @@ export {
|
|
|
19368
19414
|
Ah as gradientTexture,
|
|
19369
19415
|
Ad as gsap,
|
|
19370
19416
|
Hc as hasUrlParams,
|
|
19371
|
-
|
|
19417
|
+
Wc as inIframe,
|
|
19372
19418
|
Oc as isAndroid,
|
|
19373
19419
|
Lc as isAndroidTablet,
|
|
19374
19420
|
Gc as isArray,
|
|
@@ -19378,7 +19424,7 @@ export {
|
|
|
19378
19424
|
Tc as isDesktop,
|
|
19379
19425
|
Fc as isEdge,
|
|
19380
19426
|
Pc as isFirefox,
|
|
19381
|
-
|
|
19427
|
+
Nc as isFullscreenSupported,
|
|
19382
19428
|
ki as isIEMobile,
|
|
19383
19429
|
Ec as isIOS,
|
|
19384
19430
|
Rc as isIPhone,
|
|
@@ -19403,7 +19449,7 @@ export {
|
|
|
19403
19449
|
Ru as loadJS,
|
|
19404
19450
|
Eu as loadResources,
|
|
19405
19451
|
Yu as numberBetween,
|
|
19406
|
-
|
|
19452
|
+
Wu as objectKeysToEnum,
|
|
19407
19453
|
po as once,
|
|
19408
19454
|
Du as radian,
|
|
19409
19455
|
ko as randomExclude,
|
|
@@ -19413,11 +19459,11 @@ export {
|
|
|
19413
19459
|
ai as registry,
|
|
19414
19460
|
Vc as setMode,
|
|
19415
19461
|
Bi as skipable,
|
|
19416
|
-
|
|
19462
|
+
gi as sleep,
|
|
19417
19463
|
ui as slotCheats,
|
|
19418
19464
|
uc as slotComponentConfig,
|
|
19419
|
-
|
|
19420
|
-
|
|
19465
|
+
Nu as speedDuration,
|
|
19466
|
+
it as speedMode,
|
|
19421
19467
|
Xu as timeFull,
|
|
19422
19468
|
Vu as timeNowFull,
|
|
19423
19469
|
$u as timeNowShort,
|