reacthub-pixitweenjs 0.2.107-alpha.40 → 0.2.107-alpha.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +908 -915
- package/dist/index.umd.js +32 -32
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -54,7 +54,7 @@ Ro.Fragment = lS;
|
|
|
54
54
|
Ro.jsx = dm;
|
|
55
55
|
Ro.jsxs = dm;
|
|
56
56
|
fm.exports = Ro;
|
|
57
|
-
var
|
|
57
|
+
var Ae = fm.exports, Un = /* @__PURE__ */ ((t) => (t.BlackAndWhite = "BlackAndWhite", t.Sepia = "Sepia", t.RetroVintage = "RetroVintage", t.NightVision = "NightVision", t.Normal = "Normal", t.Vignette = "Vignette", t.None = "Normal", t))(Un || {});
|
|
58
58
|
let Jd;
|
|
59
59
|
function pm() {
|
|
60
60
|
return Jd = document.body, Jd;
|
|
@@ -121,7 +121,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
121
121
|
}), () => {
|
|
122
122
|
n.current && n.current.revert(), i.current.revert();
|
|
123
123
|
}), []);
|
|
124
|
-
const
|
|
124
|
+
const g = zt(() => {
|
|
125
125
|
if (n.current) {
|
|
126
126
|
let I = n.current.time();
|
|
127
127
|
I < a.current ? u.current = !0 : u.current = !1, a.current = I;
|
|
@@ -132,15 +132,15 @@ const Yn = te.createContext({}), Qe = {
|
|
|
132
132
|
const w = n.current;
|
|
133
133
|
w.eventCallback("onStart", function() {
|
|
134
134
|
}).eventCallback("onInterrupt", function() {
|
|
135
|
-
w.pause(),
|
|
135
|
+
w.pause(), g();
|
|
136
136
|
}).eventCallback("onUpdate", function() {
|
|
137
|
-
|
|
137
|
+
g();
|
|
138
138
|
}).eventCallback("onRepeat", function() {
|
|
139
139
|
console.log("onrepeat", w.progress());
|
|
140
140
|
}).eventCallback("onReverseComplete", function() {
|
|
141
141
|
console.log("onReverseComplete", w.progress());
|
|
142
142
|
}).eventCallback("onComplete", function() {
|
|
143
|
-
w.seek(0), w.pause(), ys(Qe.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"),
|
|
143
|
+
w.seek(0), w.pause(), ys(Qe.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"), g();
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
}, []);
|
|
@@ -148,7 +148,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
148
148
|
n.current && n.current.revert();
|
|
149
149
|
}, []), d = zt(() => {
|
|
150
150
|
n.current && n.current.restart();
|
|
151
|
-
}, []),
|
|
151
|
+
}, []), m = zt(() => {
|
|
152
152
|
if (n.current) {
|
|
153
153
|
const w = n.current;
|
|
154
154
|
w.repeat(1), w.restart();
|
|
@@ -183,7 +183,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
183
183
|
Qe.SCRUBBER_PROGRESS_UPDATE,
|
|
184
184
|
(w) => {
|
|
185
185
|
}
|
|
186
|
-
), /* @__PURE__ */
|
|
186
|
+
), /* @__PURE__ */ Ae.jsx(
|
|
187
187
|
Yn.Provider,
|
|
188
188
|
{
|
|
189
189
|
value: {
|
|
@@ -195,7 +195,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
195
195
|
handleSeek: _,
|
|
196
196
|
handleSeekTest: y,
|
|
197
197
|
handleRestart: d,
|
|
198
|
-
handleRepeat:
|
|
198
|
+
handleRepeat: m,
|
|
199
199
|
playerTimeRef: a,
|
|
200
200
|
getTimelineDuration: b,
|
|
201
201
|
totalDuration: e,
|
|
@@ -219,16 +219,16 @@ const Yn = te.createContext({}), Qe = {
|
|
|
219
219
|
uniqueId: l = "",
|
|
220
220
|
isText: f = !1
|
|
221
221
|
}) => {
|
|
222
|
-
const p = er.utils.string2hex("#F3C409"),
|
|
222
|
+
const p = er.utils.string2hex("#F3C409"), g = er.utils.string2hex("#F3C409"), c = te.useRef({
|
|
223
223
|
isDragging: !1
|
|
224
|
-
}), d = 300,
|
|
224
|
+
}), d = 300, m = te.useRef(0), _ = te.useCallback(() => {
|
|
225
225
|
a && !c.current.isDragging && a(!0);
|
|
226
226
|
}, [a]), y = te.useCallback(() => {
|
|
227
227
|
a && !c.current.isDragging && a(!1);
|
|
228
228
|
}, [a]), b = te.useCallback(() => {
|
|
229
229
|
c.current.isDragging = !0;
|
|
230
230
|
const w = (/* @__PURE__ */ new Date()).getTime();
|
|
231
|
-
w -
|
|
231
|
+
w - m.current < d && u && u(), m.current = w;
|
|
232
232
|
}, []), x = te.useCallback(
|
|
233
233
|
(w) => {
|
|
234
234
|
c.current.isDragging = !0, i && i(w), ys(Qe.TRANSFORMER_DRAG_START, { uniqueId: "timeline" });
|
|
@@ -256,7 +256,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
256
256
|
}, [n]);
|
|
257
257
|
return te.useEffect(() => (t.current && (t.current.on("mouseover", _), t.current.on("mouseout", y), t.current.on("mousedown", b)), () => {
|
|
258
258
|
t.current && (t.current.off("mouseover", _), t.current.off("mouseout", y), t.current.off("mousedown", b));
|
|
259
|
-
}), []), /* @__PURE__ */
|
|
259
|
+
}), []), /* @__PURE__ */ Ae.jsx(
|
|
260
260
|
sS,
|
|
261
261
|
{
|
|
262
262
|
ref: t,
|
|
@@ -265,7 +265,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
265
265
|
boxRotationEnabled: !0,
|
|
266
266
|
centeredScaling: !0,
|
|
267
267
|
boxScalingEnabled: !0,
|
|
268
|
-
wireframeStyle: { thickness: 2, color:
|
|
268
|
+
wireframeStyle: { thickness: 2, color: g },
|
|
269
269
|
lockAspectRatio: !0,
|
|
270
270
|
scaleEnabled: !0,
|
|
271
271
|
handleStyle: {
|
|
@@ -493,7 +493,7 @@ const fp = {
|
|
|
493
493
|
}
|
|
494
494
|
}, lC = (t) => {
|
|
495
495
|
const { overlay: e, width: r, height: n, x: i, y: a } = t, { src: u, blendmode: l } = fp[e] || fp.normal;
|
|
496
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ Ae.jsx(
|
|
497
497
|
tS,
|
|
498
498
|
{
|
|
499
499
|
image: u,
|
|
@@ -717,10 +717,10 @@ function vI(t, e, r, n, i, a) {
|
|
|
717
717
|
var u = r & gI, l = t.length, f = e.length;
|
|
718
718
|
if (l != f && !(u && f > l))
|
|
719
719
|
return !1;
|
|
720
|
-
var p = a.get(t),
|
|
721
|
-
if (p &&
|
|
722
|
-
return p == e &&
|
|
723
|
-
var c = -1, d = !0,
|
|
720
|
+
var p = a.get(t), g = a.get(e);
|
|
721
|
+
if (p && g)
|
|
722
|
+
return p == e && g == t;
|
|
723
|
+
var c = -1, d = !0, m = r & mI ? new fI() : void 0;
|
|
724
724
|
for (a.set(t, e), a.set(e, t); ++c < l; ) {
|
|
725
725
|
var _ = t[c], y = e[c];
|
|
726
726
|
if (n)
|
|
@@ -731,10 +731,10 @@ function vI(t, e, r, n, i, a) {
|
|
|
731
731
|
d = !1;
|
|
732
732
|
break;
|
|
733
733
|
}
|
|
734
|
-
if (
|
|
734
|
+
if (m) {
|
|
735
735
|
if (!dI(e, function(x, E) {
|
|
736
|
-
if (!pI(
|
|
737
|
-
return
|
|
736
|
+
if (!pI(m, E) && (_ === x || i(_, x, r, n, a)))
|
|
737
|
+
return m.push(E);
|
|
738
738
|
})) {
|
|
739
739
|
d = !1;
|
|
740
740
|
break;
|
|
@@ -788,8 +788,8 @@ function HI(t, e, r, n, i, a, u) {
|
|
|
788
788
|
if (p)
|
|
789
789
|
return p == e;
|
|
790
790
|
n |= PI, u.set(t, e);
|
|
791
|
-
var
|
|
792
|
-
return u.delete(t),
|
|
791
|
+
var g = EI(l(t), l(e), n, i, a, u);
|
|
792
|
+
return u.delete(t), g;
|
|
793
793
|
case UI:
|
|
794
794
|
if (wl)
|
|
795
795
|
return wl.call(t) == wl.call(e);
|
|
@@ -855,17 +855,17 @@ function IR(t) {
|
|
|
855
855
|
}
|
|
856
856
|
var RR = IR, yp = RR, PR = 1, MR = Object.prototype, OR = MR.hasOwnProperty;
|
|
857
857
|
function FR(t, e, r, n, i, a) {
|
|
858
|
-
var u = r & PR, l = yp(t), f = l.length, p = yp(e),
|
|
859
|
-
if (f !=
|
|
858
|
+
var u = r & PR, l = yp(t), f = l.length, p = yp(e), g = p.length;
|
|
859
|
+
if (f != g && !u)
|
|
860
860
|
return !1;
|
|
861
861
|
for (var c = f; c--; ) {
|
|
862
862
|
var d = l[c];
|
|
863
863
|
if (!(u ? d in e : OR.call(e, d)))
|
|
864
864
|
return !1;
|
|
865
865
|
}
|
|
866
|
-
var
|
|
867
|
-
if (
|
|
868
|
-
return
|
|
866
|
+
var m = a.get(t), _ = a.get(e);
|
|
867
|
+
if (m && _)
|
|
868
|
+
return m == e && _ == t;
|
|
869
869
|
var y = !0;
|
|
870
870
|
a.set(t, e), a.set(e, t);
|
|
871
871
|
for (var b = u; ++c < f; ) {
|
|
@@ -889,18 +889,18 @@ var NR = FR, Sl = Am, LR = Em, kR = zI, DR = NR, xp = Tm, bp = Br, Tp = jc, BR =
|
|
|
889
889
|
function GR(t, e, r, n, i, a) {
|
|
890
890
|
var u = bp(t), l = bp(e), f = u ? Sp : xp(t), p = l ? Sp : xp(e);
|
|
891
891
|
f = f == wp ? Na : f, p = p == wp ? Na : p;
|
|
892
|
-
var
|
|
892
|
+
var g = f == Na, c = p == Na, d = f == p;
|
|
893
893
|
if (d && Tp(t)) {
|
|
894
894
|
if (!Tp(e))
|
|
895
895
|
return !1;
|
|
896
|
-
u = !0,
|
|
896
|
+
u = !0, g = !1;
|
|
897
897
|
}
|
|
898
|
-
if (d && !
|
|
898
|
+
if (d && !g)
|
|
899
899
|
return a || (a = new Sl()), u || BR(t) ? LR(t, e, r, n, i, a) : kR(t, e, f, r, n, i, a);
|
|
900
900
|
if (!(r & UR)) {
|
|
901
|
-
var
|
|
902
|
-
if (
|
|
903
|
-
var y =
|
|
901
|
+
var m = g && Ap.call(t, "__wrapped__"), _ = c && Ap.call(e, "__wrapped__");
|
|
902
|
+
if (m || _) {
|
|
903
|
+
var y = m ? t.value() : t, b = _ ? e.value() : e;
|
|
904
904
|
return a || (a = new Sl()), i(y, b, r, n, a);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
@@ -939,25 +939,25 @@ var YR = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, KR = /[\+\-]?\d*\.?
|
|
|
939
939
|
return Math.round(e * Cp) / Cp || 0;
|
|
940
940
|
};
|
|
941
941
|
function JR(t, e, r, n, i, a, u) {
|
|
942
|
-
for (var l = t.length, f, p,
|
|
943
|
-
for (f = t[l], p = f.length,
|
|
944
|
-
c = f[
|
|
942
|
+
for (var l = t.length, f, p, g, c, d; --l > -1; )
|
|
943
|
+
for (f = t[l], p = f.length, g = 0; g < p; g += 2)
|
|
944
|
+
c = f[g], d = f[g + 1], f[g] = c * e + d * n + a, f[g + 1] = c * r + d * i + u;
|
|
945
945
|
return t._dirty = 1, t;
|
|
946
946
|
}
|
|
947
947
|
function eP(t, e, r, n, i, a, u, l, f) {
|
|
948
948
|
if (!(t === l && e === f)) {
|
|
949
949
|
r = xs(r), n = xs(n);
|
|
950
|
-
var p = i % 360 * ZR,
|
|
950
|
+
var p = i % 360 * ZR, g = ka(p), c = La(p), d = Math.PI, m = d * 2, _ = (t - l) / 2, y = (e - f) / 2, b = g * _ + c * y, x = -c * _ + g * y, E = b * b, w = x * x, I = E / (r * r) + w / (n * n);
|
|
951
951
|
I > 1 && (r = fs(I) * r, n = fs(I) * n);
|
|
952
952
|
var O = r * r, F = n * n, N = (O * F - O * w - F * E) / (O * w + F * E);
|
|
953
953
|
N < 0 && (N = 0);
|
|
954
|
-
var L = (a === u ? -1 : 1) * fs(N), D = L * (r * x / n), V = L * -(n * b / r), Y = (t + l) / 2, se = (e + f) / 2, X = Y + (
|
|
955
|
-
isNaN(j) && (j = d), !u && j > 0 ? j -=
|
|
956
|
-
var le = Math.ceil(xs(j) / (
|
|
954
|
+
var L = (a === u ? -1 : 1) * fs(N), D = L * (r * x / n), V = L * -(n * b / r), Y = (t + l) / 2, se = (e + f) / 2, X = Y + (g * D - c * V), G = se + (c * D + g * V), ie = (b - D) / r, re = (x - V) / n, H = (-b - D) / r, Q = (-x - V) / n, ge = ie * ie + re * re, W = (re < 0 ? -1 : 1) * Math.acos(ie / fs(ge)), j = (ie * Q - re * H < 0 ? -1 : 1) * Math.acos((ie * H + re * Q) / fs(ge * (H * H + Q * Q)));
|
|
955
|
+
isNaN(j) && (j = d), !u && j > 0 ? j -= m : u && j < 0 && (j += m), W %= m, j %= m;
|
|
956
|
+
var le = Math.ceil(xs(j) / (m / 4)), he = [], me = j / le, fe = 4 / 3 * La(me / 2) / (1 + ka(me / 2)), Re = g * r, Ue = c * r, He = c * -n, je = g * n, be;
|
|
957
957
|
for (be = 0; be < le; be++)
|
|
958
958
|
i = W + be * me, b = ka(i), x = La(i), ie = ka(i += me), re = La(i), he.push(b - fe * x, x + fe * b, ie + fe * re, re - fe * ie, ie, re);
|
|
959
959
|
for (be = 0; be < he.length; be += 2)
|
|
960
|
-
b = he[be], x = he[be + 1], he[be] = b *
|
|
960
|
+
b = he[be], x = he[be + 1], he[be] = b * Re + x * He + X, he[be + 1] = b * Ue + x * je + G;
|
|
961
961
|
return he[be - 2] = l, he[be - 1] = f, he;
|
|
962
962
|
}
|
|
963
963
|
}
|
|
@@ -965,32 +965,32 @@ function tP(t) {
|
|
|
965
965
|
var e = (t + "").replace(KR, function(D) {
|
|
966
966
|
var V = +D;
|
|
967
967
|
return V < 1e-4 && V > -1e-4 ? 0 : V;
|
|
968
|
-
}).match(YR) || [], r = [], n = 0, i = 0, a = 2 / 3, u = e.length, l = 0, f = "ERROR: malformed path: " + t, p,
|
|
968
|
+
}).match(YR) || [], r = [], n = 0, i = 0, a = 2 / 3, u = e.length, l = 0, f = "ERROR: malformed path: " + t, p, g, c, d, m, _, y, b, x, E, w, I, O, F, N, L = function(V, Y, se, X) {
|
|
969
969
|
E = (se - V) / 3, w = (X - Y) / 3, y.push(V + E, Y + w, se - E, X - w, se, X);
|
|
970
970
|
};
|
|
971
971
|
if (!t || !isNaN(e[0]) || isNaN(e[1]))
|
|
972
972
|
return console.log(f), r;
|
|
973
973
|
for (p = 0; p < u; p++)
|
|
974
|
-
if (O =
|
|
975
|
-
y && (y.length < 8 ? r.length -= 1 : l += y.length), n = b = c, i = x = d, y = [c, d], r.push(y), p += 2,
|
|
976
|
-
else if (
|
|
974
|
+
if (O = m, isNaN(e[p]) ? (m = e[p].toUpperCase(), _ = m !== e[p]) : p--, c = +e[p + 1], d = +e[p + 2], _ && (c += n, d += i), p || (b = c, x = d), m === "M")
|
|
975
|
+
y && (y.length < 8 ? r.length -= 1 : l += y.length), n = b = c, i = x = d, y = [c, d], r.push(y), p += 2, m = "L";
|
|
976
|
+
else if (m === "C")
|
|
977
977
|
y || (y = [0, 0]), _ || (n = i = 0), y.push(c, d, n + e[p + 3] * 1, i + e[p + 4] * 1, n += e[p + 5] * 1, i += e[p + 6] * 1), p += 6;
|
|
978
|
-
else if (
|
|
978
|
+
else if (m === "S")
|
|
979
979
|
E = n, w = i, (O === "C" || O === "S") && (E += n - y[y.length - 4], w += i - y[y.length - 3]), _ || (n = i = 0), y.push(E, w, c, d, n += e[p + 3] * 1, i += e[p + 4] * 1), p += 4;
|
|
980
|
-
else if (
|
|
980
|
+
else if (m === "Q")
|
|
981
981
|
E = n + (c - n) * a, w = i + (d - i) * a, _ || (n = i = 0), n += e[p + 3] * 1, i += e[p + 4] * 1, y.push(E, w, n + (c - n) * a, i + (d - i) * a, n, i), p += 4;
|
|
982
|
-
else if (
|
|
982
|
+
else if (m === "T")
|
|
983
983
|
E = n - y[y.length - 4], w = i - y[y.length - 3], y.push(n + E, i + w, c + (n + E * 1.5 - c) * a, d + (i + w * 1.5 - d) * a, n = c, i = d), p += 2;
|
|
984
|
-
else if (
|
|
984
|
+
else if (m === "H")
|
|
985
985
|
L(n, i, n = c, i), p += 1;
|
|
986
|
-
else if (
|
|
986
|
+
else if (m === "V")
|
|
987
987
|
L(n, i, n, i = c + (_ ? i - n : 0)), p += 1;
|
|
988
|
-
else if (
|
|
989
|
-
|
|
990
|
-
else if (
|
|
991
|
-
if (F = e[p + 4], N = e[p + 5], E = e[p + 6], w = e[p + 7],
|
|
992
|
-
for (
|
|
993
|
-
y.push(I[
|
|
988
|
+
else if (m === "L" || m === "Z")
|
|
989
|
+
m === "Z" && (c = b, d = x, y.closed = !0), (m === "L" || xs(n - c) > 0.5 || xs(i - d) > 0.5) && (L(n, i, c, d), m === "L" && (p += 2)), n = c, i = d;
|
|
990
|
+
else if (m === "A") {
|
|
991
|
+
if (F = e[p + 4], N = e[p + 5], E = e[p + 6], w = e[p + 7], g = 7, F.length > 1 && (F.length < 3 ? (w = E, E = N, g--) : (w = N, E = F.substr(2), g -= 2), N = F.charAt(1), F = F.charAt(0)), I = eP(n, i, +e[p + 1], +e[p + 2], +e[p + 3], +F, +N, (_ ? n : 0) + E * 1, (_ ? i : 0) + w * 1), p += g, I)
|
|
992
|
+
for (g = 0; g < I.length; g++)
|
|
993
|
+
y.push(I[g]);
|
|
994
994
|
n = y[y.length - 2], i = y[y.length - 1];
|
|
995
995
|
} else
|
|
996
996
|
console.log(f);
|
|
@@ -1031,18 +1031,18 @@ var Vt, Rm, Pm = function() {
|
|
|
1031
1031
|
var i = +e[0] * -1, a = -n, u = e.length, l = 1 / (+e[u - 2] + i), f = -r || (Math.abs(+e[u - 1] - +e[1]) < 0.01 * (+e[u - 2] - +e[0]) ? aP(e) + a : +e[u - 1] + a), p;
|
|
1032
1032
|
for (f ? f = 1 / f : f = -l, p = 0; p < u; p += 2)
|
|
1033
1033
|
e[p] = (+e[p] + i) * l, e[p + 1] = (+e[p + 1] + a) * f;
|
|
1034
|
-
}, uP = function t(e, r, n, i, a, u, l, f, p,
|
|
1035
|
-
var d = (e + n) / 2,
|
|
1036
|
-
return
|
|
1034
|
+
}, uP = function t(e, r, n, i, a, u, l, f, p, g, c) {
|
|
1035
|
+
var d = (e + n) / 2, m = (r + i) / 2, _ = (n + a) / 2, y = (i + u) / 2, b = (a + l) / 2, x = (u + f) / 2, E = (d + _) / 2, w = (m + y) / 2, I = (_ + b) / 2, O = (y + x) / 2, F = (E + I) / 2, N = (w + O) / 2, L = l - e, D = f - r, V = Math.abs((n - l) * D - (i - f) * L), Y = Math.abs((a - l) * D - (u - f) * L), se;
|
|
1036
|
+
return g || (g = [{
|
|
1037
1037
|
x: e,
|
|
1038
1038
|
y: r
|
|
1039
1039
|
}, {
|
|
1040
1040
|
x: l,
|
|
1041
1041
|
y: f
|
|
1042
|
-
}], c = 1),
|
|
1042
|
+
}], c = 1), g.splice(c || g.length - 1, 0, {
|
|
1043
1043
|
x: F,
|
|
1044
1044
|
y: N
|
|
1045
|
-
}), (V + Y) * (V + Y) > p * (L * L + D * D) && (se =
|
|
1045
|
+
}), (V + Y) * (V + Y) > p * (L * L + D * D) && (se = g.length, t(e, r, d, m, E, w, F, N, p, g, c), t(F, N, I, O, b, x, l, f, p, g, c + 1 + (g.length - se))), g;
|
|
1046
1046
|
}, zs = /* @__PURE__ */ function() {
|
|
1047
1047
|
function t(r, n, i) {
|
|
1048
1048
|
Rm || Ip(), this.id = r, this.setData(n, i);
|
|
@@ -1050,7 +1050,7 @@ var Vt, Rm, Pm = function() {
|
|
|
1050
1050
|
var e = t.prototype;
|
|
1051
1051
|
return e.setData = function(n, i) {
|
|
1052
1052
|
i = i || {}, n = n || "0,0,1,1";
|
|
1053
|
-
var a = n.match(iP), u = 1, l = [], f = [], p = i.precision || 1,
|
|
1053
|
+
var a = n.match(iP), u = 1, l = [], f = [], p = i.precision || 1, g = p <= 1, c, d, m, _, y, b, x, E, w;
|
|
1054
1054
|
if (this.data = n, (sP.test(n) || ~n.indexOf("M") && n.indexOf("C") < 0) && (a = tP(n)[0]), c = a.length, c === 4)
|
|
1055
1055
|
a.unshift(0, 0), a.push(1, 1), c = 8;
|
|
1056
1056
|
else if ((c - 2) % 6)
|
|
@@ -1059,13 +1059,13 @@ var Vt, Rm, Pm = function() {
|
|
|
1059
1059
|
d = {
|
|
1060
1060
|
x: +a[_ - 2],
|
|
1061
1061
|
y: +a[_ - 1]
|
|
1062
|
-
},
|
|
1062
|
+
}, m = {
|
|
1063
1063
|
x: +a[_ + 4],
|
|
1064
1064
|
y: +a[_ + 5]
|
|
1065
|
-
}, l.push(d,
|
|
1065
|
+
}, l.push(d, m), uP(d.x, d.y, +a[_], +a[_ + 1], +a[_ + 2], +a[_ + 3], m.x, m.y, 1 / (p * 2e5), l, l.length - 1);
|
|
1066
1066
|
for (c = l.length, _ = 0; _ < c; _++)
|
|
1067
|
-
x = l[_], E = l[_ - 1] || x, (x.x > E.x || E.y !== x.y && E.x === x.x || x === E) && x.x <= 1 ? (E.cx = x.x - E.x, E.cy = x.y - E.y, E.n = x, E.nx = x.x,
|
|
1068
|
-
if (c = 1 / u + 1 | 0, y = 1 / c, b = 0, x = l[0],
|
|
1067
|
+
x = l[_], E = l[_ - 1] || x, (x.x > E.x || E.y !== x.y && E.x === x.x || x === E) && x.x <= 1 ? (E.cx = x.x - E.x, E.cy = x.y - E.y, E.n = x, E.nx = x.x, g && _ > 1 && Math.abs(E.cy / E.cx - l[_ - 2].cy / l[_ - 2].cx) > 2 && (g = 0), E.cx < u && (E.cx ? u = E.cx : (E.cx = 1e-3, _ === c - 1 && (E.x -= 1e-3, u = Math.min(u, 1e-3), g = 0)))) : (l.splice(_--, 1), c--);
|
|
1068
|
+
if (c = 1 / u + 1 | 0, y = 1 / c, b = 0, x = l[0], g) {
|
|
1069
1069
|
for (_ = 0; _ < c; _++)
|
|
1070
1070
|
w = _ * y, x.nx < w && (x = l[++b]), d = x.y + (w - x.x) / x.cx * x.cy, f[_] = {
|
|
1071
1071
|
x: w,
|
|
@@ -1094,15 +1094,15 @@ var Vt, Rm, Pm = function() {
|
|
|
1094
1094
|
return Vt.parseEase(n);
|
|
1095
1095
|
}, t.getSVGData = function(n, i) {
|
|
1096
1096
|
i = i || {};
|
|
1097
|
-
var a = i.width || 100, u = i.height || 100, l = i.x || 0, f = (i.y || 0) + u, p = Vt.utils.toArray(i.path)[0],
|
|
1097
|
+
var a = i.width || 100, u = i.height || 100, l = i.x || 0, f = (i.y || 0) + u, p = Vt.utils.toArray(i.path)[0], g, c, d, m, _, y, b, x, E, w;
|
|
1098
1098
|
if (i.invert && (u = -u, f = 0), typeof n == "string" && (n = Vt.parseEase(n)), n.custom && (n = n.custom), n instanceof t)
|
|
1099
|
-
|
|
1099
|
+
g = rP(JR([n.segment], a, 0, 0, -u, l, f));
|
|
1100
1100
|
else {
|
|
1101
|
-
for (
|
|
1102
|
-
_ = Da(l + d *
|
|
1103
|
-
|
|
1101
|
+
for (g = [l, f], b = Math.max(5, (i.precision || 1) * 200), m = 1 / b, b += 2, x = 5 / b, E = Da(l + m * a), w = Da(f + n(m) * -u), c = (w - f) / (E - l), d = 2; d < b; d++)
|
|
1102
|
+
_ = Da(l + d * m * a), y = Da(f + n(d * m) * -u), (Math.abs((y - w) / (_ - E) - c) > x || d === b - 1) && (g.push(E, w), c = (y - w) / (_ - E)), E = _, w = y;
|
|
1103
|
+
g = "M" + g.join(",");
|
|
1104
1104
|
}
|
|
1105
|
-
return p && p.setAttribute("d",
|
|
1105
|
+
return p && p.setAttribute("d", g), g;
|
|
1106
1106
|
}, t;
|
|
1107
1107
|
}();
|
|
1108
1108
|
Pm() && Vt.registerPlugin(zs);
|
|
@@ -1197,12 +1197,7 @@ J.registerEffect({
|
|
|
1197
1197
|
y: -1500,
|
|
1198
1198
|
alpha: 0,
|
|
1199
1199
|
onUpdate: () => {
|
|
1200
|
-
console.log(
|
|
1201
|
-
"BOUNCE_IN_DOWN onUpdate",
|
|
1202
|
-
t.y,
|
|
1203
|
-
t.x,
|
|
1204
|
-
t.alpha
|
|
1205
|
-
);
|
|
1200
|
+
console.log("BOUNCE_IN_DOWN onUpdate", t);
|
|
1206
1201
|
}
|
|
1207
1202
|
});
|
|
1208
1203
|
}
|
|
@@ -1363,7 +1358,7 @@ function lP(t, e, r) {
|
|
|
1363
1358
|
}
|
|
1364
1359
|
var Mm = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.FLASH = "FLASH", t.PULSE = "PULSE", t.SHAKE = "SHAKE", t.SWING = "SWING", t.JELLO = "JELLO", t.WOOBLE = "WOOBLE", t.FADE_IN = "FADE_IN", t.FADE_OUT = "FADE_OUT", t.FADE_IN_OUT = "FADE_IN_OUT", t.SLIDE_IN_LEFT = "SLIDE_IN_LEFT", t.SLIDE_IN_RIGHT = "SLIDE_IN_RIGHT", t.SLIDE_IN_TOP = "SLIDE_IN_TOP", t.SLIDE_IN_BOTTOM = "SLIDE_IN_BOTTOM", t.SLIDE_OUT_LEFT = "SLIDE_OUT_LEFT", t.SLIDE_OUT_RIGHT = "SLIDE_OUT_RIGHT", t.SLIDE_OUT_TOP = "SLIDE_OUT_TOP", t.SLIDE_OUT_BOTTOM = "SLIDE_OUT_BOTTOM", t.ZOOM_IN = "ZOOM_IN", t.ZOOM_OUT = "ZOOM_OUT", t.ZOOM_IN_OUT = "ZOOM_IN_OUT", t.BOUNCE_IN = "BOUNCE_IN", t.BOUNCE_OUT = "BOUNCE_OUT", t.BOUNCE_IN_OUT = "BOUNCE_IN_OUT", t.BOUNCE_IN_DOWN = "BOUNCE_IN_DOWN", t.BOUNCE_IN_LEFT = "BOUNCE_IN_LEFT", t.BOUNCE_IN_RIGHT = "BOUNCE_IN_RIGHT", t.BOUNCE_IN_UP = "BOUNCE_IN_UP", t.BOUNCE_OUT_DOWN = "BOUNCE_OUT_DOWN", t.BOUNCE_OUT_LEFT = "BOUNCE_OUT_LEFT", t.BOUNCE_OUT_RIGHT = "BOUNCE_OUT_RIGHT", t.BOUNCE_OUT_UP = "BOUNCE_OUT_UP", t.FADE_IN_DOWN = "FADE_IN_DOWN", t.FADE_IN_LEFT = "FADE_IN_LEFT", t.FADE_IN_RIGHT = "FADE_IN_RIGHT", t.FADE_IN_UP = "FADE_IN_UP", t.FADE_OUT_DOWN = "FADE_OUT_DOWN", t.FADE_OUT_LEFT = "FADE_OUT_LEFT", t.FADE_OUT_RIGHT = "FADE_OUT_RIGHT", t.FADE_OUT_UP = "FADE_OUT_UP", t.ELASTIC_IN = "ELASTIC_IN", t.ELASTIC_OUT = "ELASTIC_OUT", t.ELASTIC_IN_OUT = "ELASTIC_IN_OUT", t.BACK_IN = "BACK_IN", t.BACK_OUT = "BACK_OUT", t.BACK_IN_OUT = "BACK_IN_OUT", t.CIRCULAR_IN = "CIRCULAR_IN", t.CIRCULAR_OUT = "CIRCULAR_OUT", t.CIRCULAR_IN_OUT = "CIRCULAR_IN_OUT", t.EXPO_IN = "EXPO_IN", t.EXPO_OUT = "EXPO_OUT", t.EXPO_IN_OUT = "EXPO_IN_OUT", t.SINE_IN = "SINE_IN", t.SINE_OUT = "SINE_OUT", t.SINE_IN_OUT = "SINE_IN_OUT", t.BOUNCE = "BOUNCE", t.ELASTIC = "ELASTIC", t.BACK = "BACK", t.CIRCULAR = "CIRCULAR", t.EXPO = "EXPO", t.SINE = "SINE", t))(Mm || {});
|
|
1365
1360
|
const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te.forwardRef((t, e) => {
|
|
1366
|
-
const [r, n] = te.useState(!1), [i, a] = Fi(!1), [u, l] = Fi(!1), f = pe(null), p = pe(null),
|
|
1361
|
+
const [r, n] = te.useState(!1), [i, a] = Fi(!1), [u, l] = Fi(!1), f = pe(null), p = pe(null), g = pe(null), c = pe(null), d = pe(null), { tl: m } = Gi(Yn), {
|
|
1367
1362
|
uniqueId: _,
|
|
1368
1363
|
visible: y,
|
|
1369
1364
|
startAt: b,
|
|
@@ -1406,15 +1401,13 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1406
1401
|
), te.useEffect(() => {
|
|
1407
1402
|
f.current && n(!0);
|
|
1408
1403
|
}, []), te.useEffect(() => {
|
|
1409
|
-
if (
|
|
1410
|
-
console.log("running rect effect",
|
|
1411
|
-
const fe =
|
|
1412
|
-
d.current &&
|
|
1413
|
-
const we = fe * W.totalDuration();
|
|
1414
|
-
console.log("setting up the progress", we), W.seek(we), d.current = W;
|
|
1404
|
+
if (m.current) {
|
|
1405
|
+
console.log("running rect effect", m.current.progress()), console.log("nested anim progress", W.progress());
|
|
1406
|
+
const fe = W.progress();
|
|
1407
|
+
d.current && (m.current.remove(d.current), d.current.progress(0).kill(), console.log("killing timeline"), d.current.kill()), m.current.add(W, b), W.progress(fe), d.current = W;
|
|
1415
1408
|
}
|
|
1416
1409
|
return () => {
|
|
1417
|
-
|
|
1410
|
+
m.current && (m.current.remove(W), W.progress(0).kill());
|
|
1418
1411
|
};
|
|
1419
1412
|
}, [b, , W]);
|
|
1420
1413
|
const j = te.useCallback(() => {
|
|
@@ -1429,8 +1422,8 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1429
1422
|
), me = rS(wt, {
|
|
1430
1423
|
matrix: er.filters.ColorMatrixFilter
|
|
1431
1424
|
});
|
|
1432
|
-
return /* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ Ae.jsxs(wt, { ref: p, children: [
|
|
1426
|
+
/* @__PURE__ */ Ae.jsxs(
|
|
1434
1427
|
wt,
|
|
1435
1428
|
{
|
|
1436
1429
|
ref: f,
|
|
@@ -1448,7 +1441,7 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1448
1441
|
pointerout: X
|
|
1449
1442
|
},
|
|
1450
1443
|
children: [
|
|
1451
|
-
!H && /* @__PURE__ */
|
|
1444
|
+
!H && /* @__PURE__ */ Ae.jsx(
|
|
1452
1445
|
me,
|
|
1453
1446
|
{
|
|
1454
1447
|
scale: 1,
|
|
@@ -1460,11 +1453,11 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1460
1453
|
// @ts-ignore
|
|
1461
1454
|
matrix: cP
|
|
1462
1455
|
},
|
|
1463
|
-
children: /* @__PURE__ */
|
|
1456
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: g, children: t.children })
|
|
1464
1457
|
}
|
|
1465
1458
|
),
|
|
1466
|
-
H && /* @__PURE__ */
|
|
1467
|
-
!Hs(L) && L !== cc.NONE && L !== cc.NORMAL && /* @__PURE__ */
|
|
1459
|
+
H && /* @__PURE__ */ Ae.jsx(wt, { ref: g, children: t.children }),
|
|
1460
|
+
!Hs(L) && L !== cc.NONE && L !== cc.NORMAL && /* @__PURE__ */ Ae.jsx(
|
|
1468
1461
|
lC,
|
|
1469
1462
|
{
|
|
1470
1463
|
overlay: L,
|
|
@@ -1477,7 +1470,7 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1477
1470
|
]
|
|
1478
1471
|
}
|
|
1479
1472
|
),
|
|
1480
|
-
V && y && !ge && /* @__PURE__ */
|
|
1473
|
+
V && y && !ge && /* @__PURE__ */ Ae.jsx(
|
|
1481
1474
|
dS,
|
|
1482
1475
|
{
|
|
1483
1476
|
pixiTransformerRef: c,
|
|
@@ -1510,7 +1503,7 @@ const hP = {
|
|
|
1510
1503
|
getFontFaceSet: () => document.fonts,
|
|
1511
1504
|
fetch: (t, e) => fetch(t, e),
|
|
1512
1505
|
parseXML: (t) => new DOMParser().parseFromString(t, "text/xml")
|
|
1513
|
-
},
|
|
1506
|
+
}, Ie = {
|
|
1514
1507
|
ADAPTER: hP,
|
|
1515
1508
|
RESOLUTION: 1,
|
|
1516
1509
|
CREATE_IMAGE_BITMAP: !1,
|
|
@@ -1579,22 +1572,22 @@ function $p(t) {
|
|
|
1579
1572
|
return a.any = a.apple.device || a.android.device || a.windows.device || a.other.device, a.phone = a.apple.phone || a.android.phone || a.windows.phone, a.tablet = a.apple.tablet || a.android.tablet || a.windows.tablet, a;
|
|
1580
1573
|
}
|
|
1581
1574
|
const dP = $p.default ?? $p, Ai = dP(globalThis.navigator);
|
|
1582
|
-
|
|
1583
|
-
|
|
1575
|
+
Ie.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
1576
|
+
Ie.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = !1;
|
|
1584
1577
|
var Fm = { exports: {} };
|
|
1585
1578
|
(function(t) {
|
|
1586
1579
|
var e = Object.prototype.hasOwnProperty, r = "~";
|
|
1587
1580
|
function n() {
|
|
1588
1581
|
}
|
|
1589
1582
|
Object.create && (n.prototype = /* @__PURE__ */ Object.create(null), new n().__proto__ || (r = !1));
|
|
1590
|
-
function i(f, p,
|
|
1591
|
-
this.fn = f, this.context = p, this.once =
|
|
1583
|
+
function i(f, p, g) {
|
|
1584
|
+
this.fn = f, this.context = p, this.once = g || !1;
|
|
1592
1585
|
}
|
|
1593
|
-
function a(f, p,
|
|
1594
|
-
if (typeof
|
|
1586
|
+
function a(f, p, g, c, d) {
|
|
1587
|
+
if (typeof g != "function")
|
|
1595
1588
|
throw new TypeError("The listener must be a function");
|
|
1596
|
-
var
|
|
1597
|
-
return f._events[_] ? f._events[_].fn ? f._events[_] = [f._events[_],
|
|
1589
|
+
var m = new i(g, c || f, d), _ = r ? r + p : p;
|
|
1590
|
+
return f._events[_] ? f._events[_].fn ? f._events[_] = [f._events[_], m] : f._events[_].push(m) : (f._events[_] = m, f._eventsCount++), f;
|
|
1598
1591
|
}
|
|
1599
1592
|
function u(f, p) {
|
|
1600
1593
|
--f._eventsCount === 0 ? f._events = new n() : delete f._events[p];
|
|
@@ -1603,25 +1596,25 @@ var Fm = { exports: {} };
|
|
|
1603
1596
|
this._events = new n(), this._eventsCount = 0;
|
|
1604
1597
|
}
|
|
1605
1598
|
l.prototype.eventNames = function() {
|
|
1606
|
-
var p = [],
|
|
1599
|
+
var p = [], g, c;
|
|
1607
1600
|
if (this._eventsCount === 0)
|
|
1608
1601
|
return p;
|
|
1609
|
-
for (c in
|
|
1610
|
-
e.call(
|
|
1611
|
-
return Object.getOwnPropertySymbols ? p.concat(Object.getOwnPropertySymbols(
|
|
1602
|
+
for (c in g = this._events)
|
|
1603
|
+
e.call(g, c) && p.push(r ? c.slice(1) : c);
|
|
1604
|
+
return Object.getOwnPropertySymbols ? p.concat(Object.getOwnPropertySymbols(g)) : p;
|
|
1612
1605
|
}, l.prototype.listeners = function(p) {
|
|
1613
|
-
var
|
|
1606
|
+
var g = r ? r + p : p, c = this._events[g];
|
|
1614
1607
|
if (!c)
|
|
1615
1608
|
return [];
|
|
1616
1609
|
if (c.fn)
|
|
1617
1610
|
return [c.fn];
|
|
1618
|
-
for (var d = 0,
|
|
1611
|
+
for (var d = 0, m = c.length, _ = new Array(m); d < m; d++)
|
|
1619
1612
|
_[d] = c[d].fn;
|
|
1620
1613
|
return _;
|
|
1621
1614
|
}, l.prototype.listenerCount = function(p) {
|
|
1622
|
-
var
|
|
1615
|
+
var g = r ? r + p : p, c = this._events[g];
|
|
1623
1616
|
return c ? c.fn ? 1 : c.length : 0;
|
|
1624
|
-
}, l.prototype.emit = function(p,
|
|
1617
|
+
}, l.prototype.emit = function(p, g, c, d, m, _) {
|
|
1625
1618
|
var y = r ? r + p : p;
|
|
1626
1619
|
if (!this._events[y])
|
|
1627
1620
|
return !1;
|
|
@@ -1631,15 +1624,15 @@ var Fm = { exports: {} };
|
|
|
1631
1624
|
case 1:
|
|
1632
1625
|
return b.fn.call(b.context), !0;
|
|
1633
1626
|
case 2:
|
|
1634
|
-
return b.fn.call(b.context,
|
|
1627
|
+
return b.fn.call(b.context, g), !0;
|
|
1635
1628
|
case 3:
|
|
1636
|
-
return b.fn.call(b.context,
|
|
1629
|
+
return b.fn.call(b.context, g, c), !0;
|
|
1637
1630
|
case 4:
|
|
1638
|
-
return b.fn.call(b.context,
|
|
1631
|
+
return b.fn.call(b.context, g, c, d), !0;
|
|
1639
1632
|
case 5:
|
|
1640
|
-
return b.fn.call(b.context,
|
|
1633
|
+
return b.fn.call(b.context, g, c, d, m), !0;
|
|
1641
1634
|
case 6:
|
|
1642
|
-
return b.fn.call(b.context,
|
|
1635
|
+
return b.fn.call(b.context, g, c, d, m, _), !0;
|
|
1643
1636
|
}
|
|
1644
1637
|
for (w = 1, E = new Array(x - 1); w < x; w++)
|
|
1645
1638
|
E[w - 1] = arguments[w];
|
|
@@ -1652,13 +1645,13 @@ var Fm = { exports: {} };
|
|
|
1652
1645
|
b[w].fn.call(b[w].context);
|
|
1653
1646
|
break;
|
|
1654
1647
|
case 2:
|
|
1655
|
-
b[w].fn.call(b[w].context,
|
|
1648
|
+
b[w].fn.call(b[w].context, g);
|
|
1656
1649
|
break;
|
|
1657
1650
|
case 3:
|
|
1658
|
-
b[w].fn.call(b[w].context,
|
|
1651
|
+
b[w].fn.call(b[w].context, g, c);
|
|
1659
1652
|
break;
|
|
1660
1653
|
case 4:
|
|
1661
|
-
b[w].fn.call(b[w].context,
|
|
1654
|
+
b[w].fn.call(b[w].context, g, c, d);
|
|
1662
1655
|
break;
|
|
1663
1656
|
default:
|
|
1664
1657
|
if (!E)
|
|
@@ -1668,28 +1661,28 @@ var Fm = { exports: {} };
|
|
|
1668
1661
|
}
|
|
1669
1662
|
}
|
|
1670
1663
|
return !0;
|
|
1671
|
-
}, l.prototype.on = function(p,
|
|
1672
|
-
return a(this, p,
|
|
1673
|
-
}, l.prototype.once = function(p,
|
|
1674
|
-
return a(this, p,
|
|
1675
|
-
}, l.prototype.removeListener = function(p,
|
|
1676
|
-
var
|
|
1677
|
-
if (!this._events[
|
|
1664
|
+
}, l.prototype.on = function(p, g, c) {
|
|
1665
|
+
return a(this, p, g, c, !1);
|
|
1666
|
+
}, l.prototype.once = function(p, g, c) {
|
|
1667
|
+
return a(this, p, g, c, !0);
|
|
1668
|
+
}, l.prototype.removeListener = function(p, g, c, d) {
|
|
1669
|
+
var m = r ? r + p : p;
|
|
1670
|
+
if (!this._events[m])
|
|
1678
1671
|
return this;
|
|
1679
|
-
if (!
|
|
1680
|
-
return u(this,
|
|
1681
|
-
var _ = this._events[
|
|
1672
|
+
if (!g)
|
|
1673
|
+
return u(this, m), this;
|
|
1674
|
+
var _ = this._events[m];
|
|
1682
1675
|
if (_.fn)
|
|
1683
|
-
_.fn ===
|
|
1676
|
+
_.fn === g && (!d || _.once) && (!c || _.context === c) && u(this, m);
|
|
1684
1677
|
else {
|
|
1685
1678
|
for (var y = 0, b = [], x = _.length; y < x; y++)
|
|
1686
|
-
(_[y].fn !==
|
|
1687
|
-
b.length ? this._events[
|
|
1679
|
+
(_[y].fn !== g || d && !_[y].once || c && _[y].context !== c) && b.push(_[y]);
|
|
1680
|
+
b.length ? this._events[m] = b.length === 1 ? b[0] : b : u(this, m);
|
|
1688
1681
|
}
|
|
1689
1682
|
return this;
|
|
1690
1683
|
}, l.prototype.removeAllListeners = function(p) {
|
|
1691
|
-
var
|
|
1692
|
-
return p ? (
|
|
1684
|
+
var g;
|
|
1685
|
+
return p ? (g = r ? r + p : p, this._events[g] && u(this, g)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
1693
1686
|
}, l.prototype.off = l.prototype.removeListener, l.prototype.addListener = l.prototype.on, l.prefixed = r, l.EventEmitter = l, t.exports = l;
|
|
1694
1687
|
})(Fm);
|
|
1695
1688
|
var pP = Fm.exports;
|
|
@@ -1702,14 +1695,14 @@ function Do(t, e, r) {
|
|
|
1702
1695
|
var n = e && e.length, i = n ? e[0] * r : t.length, a = Nm(t, 0, i, r, !0), u = [];
|
|
1703
1696
|
if (!a || a.next === a.prev)
|
|
1704
1697
|
return u;
|
|
1705
|
-
var l, f, p,
|
|
1698
|
+
var l, f, p, g, c, d, m;
|
|
1706
1699
|
if (n && (a = yP(t, e, a, r)), t.length > 80 * r) {
|
|
1707
|
-
l = p = t[0], f =
|
|
1700
|
+
l = p = t[0], f = g = t[1];
|
|
1708
1701
|
for (var _ = r; _ < i; _ += r)
|
|
1709
|
-
c = t[_], d = t[_ + 1], c < l && (l = c), d < f && (f = d), c > p && (p = c), d >
|
|
1710
|
-
|
|
1702
|
+
c = t[_], d = t[_ + 1], c < l && (l = c), d < f && (f = d), c > p && (p = c), d > g && (g = d);
|
|
1703
|
+
m = Math.max(p - l, g - f), m = m !== 0 ? 32767 / m : 0;
|
|
1711
1704
|
}
|
|
1712
|
-
return Ps(a, u, r, l, f,
|
|
1705
|
+
return Ps(a, u, r, l, f, m, 0), u;
|
|
1713
1706
|
}
|
|
1714
1707
|
function Nm(t, e, r, n, i) {
|
|
1715
1708
|
var a, u;
|
|
@@ -1755,8 +1748,8 @@ function gP(t) {
|
|
|
1755
1748
|
var e = t.prev, r = t, n = t.next;
|
|
1756
1749
|
if (ot(e, r, n) >= 0)
|
|
1757
1750
|
return !1;
|
|
1758
|
-
for (var i = e.x, a = r.x, u = n.x, l = e.y, f = r.y, p = n.y,
|
|
1759
|
-
if (_.x >=
|
|
1751
|
+
for (var i = e.x, a = r.x, u = n.x, l = e.y, f = r.y, p = n.y, g = i < a ? i < u ? i : u : a < u ? a : u, c = l < f ? l < p ? l : p : f < p ? f : p, d = i > a ? i > u ? i : u : a > u ? a : u, m = l > f ? l > p ? l : p : f > p ? f : p, _ = n.next; _ !== e; ) {
|
|
1752
|
+
if (_.x >= g && _.x <= d && _.y >= c && _.y <= m && Ei(i, l, a, f, u, p, _.x, _.y) && ot(_.prev, _, _.next) >= 0)
|
|
1760
1753
|
return !1;
|
|
1761
1754
|
_ = _.next;
|
|
1762
1755
|
}
|
|
@@ -1766,18 +1759,18 @@ function mP(t, e, r, n) {
|
|
|
1766
1759
|
var i = t.prev, a = t, u = t.next;
|
|
1767
1760
|
if (ot(i, a, u) >= 0)
|
|
1768
1761
|
return !1;
|
|
1769
|
-
for (var l = i.x, f = a.x, p = u.x,
|
|
1770
|
-
if (w.x >=
|
|
1762
|
+
for (var l = i.x, f = a.x, p = u.x, g = i.y, c = a.y, d = u.y, m = l < f ? l < p ? l : p : f < p ? f : p, _ = g < c ? g < d ? g : d : c < d ? c : d, y = l > f ? l > p ? l : p : f > p ? f : p, b = g > c ? g > d ? g : d : c > d ? c : d, x = dc(m, _, e, r, n), E = dc(y, b, e, r, n), w = t.prevZ, I = t.nextZ; w && w.z >= x && I && I.z <= E; ) {
|
|
1763
|
+
if (w.x >= m && w.x <= y && w.y >= _ && w.y <= b && w !== i && w !== u && Ei(l, g, f, c, p, d, w.x, w.y) && ot(w.prev, w, w.next) >= 0 || (w = w.prevZ, I.x >= m && I.x <= y && I.y >= _ && I.y <= b && I !== i && I !== u && Ei(l, g, f, c, p, d, I.x, I.y) && ot(I.prev, I, I.next) >= 0))
|
|
1771
1764
|
return !1;
|
|
1772
1765
|
I = I.nextZ;
|
|
1773
1766
|
}
|
|
1774
1767
|
for (; w && w.z >= x; ) {
|
|
1775
|
-
if (w.x >=
|
|
1768
|
+
if (w.x >= m && w.x <= y && w.y >= _ && w.y <= b && w !== i && w !== u && Ei(l, g, f, c, p, d, w.x, w.y) && ot(w.prev, w, w.next) >= 0)
|
|
1776
1769
|
return !1;
|
|
1777
1770
|
w = w.prevZ;
|
|
1778
1771
|
}
|
|
1779
1772
|
for (; I && I.z <= E; ) {
|
|
1780
|
-
if (I.x >=
|
|
1773
|
+
if (I.x >= m && I.x <= y && I.y >= _ && I.y <= b && I !== i && I !== u && Ei(l, g, f, c, p, d, I.x, I.y) && ot(I.prev, I, I.next) >= 0)
|
|
1781
1774
|
return !1;
|
|
1782
1775
|
I = I.nextZ;
|
|
1783
1776
|
}
|
|
@@ -1835,10 +1828,10 @@ function TP(t, e) {
|
|
|
1835
1828
|
} while (r !== e);
|
|
1836
1829
|
if (!u)
|
|
1837
1830
|
return null;
|
|
1838
|
-
var f = u, p = u.x,
|
|
1831
|
+
var f = u, p = u.x, g = u.y, c = 1 / 0, d;
|
|
1839
1832
|
r = u;
|
|
1840
1833
|
do
|
|
1841
|
-
n >= r.x && r.x >= p && n !== r.x && Ei(i <
|
|
1834
|
+
n >= r.x && r.x >= p && n !== r.x && Ei(i < g ? n : a, i, p, g, i < g ? a : n, i, r.x, r.y) && (d = Math.abs(i - r.y) / (n - r.x), Ms(r, t) && (d < c || d === c && (r.x > u.x || r.x === u.x && wP(u, r))) && (u = r, c = d)), r = r.next;
|
|
1842
1835
|
while (r !== f);
|
|
1843
1836
|
return u;
|
|
1844
1837
|
}
|
|
@@ -1938,14 +1931,14 @@ Do.deviation = function(t, e, r, n) {
|
|
|
1938
1931
|
var i = e && e.length, a = i ? e[0] * r : t.length, u = Math.abs(gc(t, 0, a, r));
|
|
1939
1932
|
if (i)
|
|
1940
1933
|
for (var l = 0, f = e.length; l < f; l++) {
|
|
1941
|
-
var p = e[l] * r,
|
|
1942
|
-
u -= Math.abs(gc(t, p,
|
|
1934
|
+
var p = e[l] * r, g = l < f - 1 ? e[l + 1] * r : t.length;
|
|
1935
|
+
u -= Math.abs(gc(t, p, g, r));
|
|
1943
1936
|
}
|
|
1944
1937
|
var c = 0;
|
|
1945
1938
|
for (l = 0; l < n.length; l += 3) {
|
|
1946
|
-
var d = n[l] * r,
|
|
1939
|
+
var d = n[l] * r, m = n[l + 1] * r, _ = n[l + 2] * r;
|
|
1947
1940
|
c += Math.abs(
|
|
1948
|
-
(t[d] - t[_]) * (t[
|
|
1941
|
+
(t[d] - t[_]) * (t[m + 1] - t[d + 1]) - (t[d] - t[m]) * (t[_ + 1] - t[d + 1])
|
|
1949
1942
|
);
|
|
1950
1943
|
}
|
|
1951
1944
|
return u === 0 && c === 0 ? 0 : Math.abs((c - u) / u);
|
|
@@ -1973,7 +1966,7 @@ vo.exports;
|
|
|
1973
1966
|
(function(r) {
|
|
1974
1967
|
var n = e && !e.nodeType && e, i = t && !t.nodeType && t, a = typeof Et == "object" && Et;
|
|
1975
1968
|
(a.global === a || a.window === a || a.self === a) && (r = a);
|
|
1976
|
-
var u, l = 2147483647, f = 36, p = 1,
|
|
1969
|
+
var u, l = 2147483647, f = 36, p = 1, g = 26, c = 38, d = 700, m = 72, _ = 128, y = "-", b = /^xn--/, x = /[^\x20-\x7E]/, E = /[\x2E\u3002\uFF0E\uFF61]/g, w = {
|
|
1977
1970
|
overflow: "Overflow: input needs wider integers to process",
|
|
1978
1971
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
1979
1972
|
"invalid-input": "Invalid input"
|
|
@@ -2011,35 +2004,35 @@ vo.exports;
|
|
|
2011
2004
|
}
|
|
2012
2005
|
function ie(W, j, le) {
|
|
2013
2006
|
var he = 0;
|
|
2014
|
-
for (W = le ? O(W / d) : W >> 1, W += O(W / j); W > I *
|
|
2007
|
+
for (W = le ? O(W / d) : W >> 1, W += O(W / j); W > I * g >> 1; he += f)
|
|
2015
2008
|
W = O(W / I);
|
|
2016
2009
|
return O(he + (I + 1) * W / (W + c));
|
|
2017
2010
|
}
|
|
2018
2011
|
function re(W) {
|
|
2019
|
-
var j = [], le = W.length, he, me = 0, fe = _,
|
|
2012
|
+
var j = [], le = W.length, he, me = 0, fe = _, Re = m, Ue, He, je, be, Ee, $e, Ke, Se, _e;
|
|
2020
2013
|
for (Ue = W.lastIndexOf(y), Ue < 0 && (Ue = 0), He = 0; He < Ue; ++He)
|
|
2021
2014
|
W.charCodeAt(He) >= 128 && L("not-basic"), j.push(W.charCodeAt(He));
|
|
2022
2015
|
for (je = Ue > 0 ? Ue + 1 : 0; je < le; ) {
|
|
2023
|
-
for (be = me,
|
|
2024
|
-
_e = f -
|
|
2025
|
-
he = j.length + 1,
|
|
2016
|
+
for (be = me, Ee = 1, $e = f; je >= le && L("invalid-input"), Ke = X(W.charCodeAt(je++)), (Ke >= f || Ke > O((l - me) / Ee)) && L("overflow"), me += Ke * Ee, Se = $e <= Re ? p : $e >= Re + g ? g : $e - Re, !(Ke < Se); $e += f)
|
|
2017
|
+
_e = f - Se, Ee > O(l / _e) && L("overflow"), Ee *= _e;
|
|
2018
|
+
he = j.length + 1, Re = ie(me - be, he, be == 0), O(me / he) > l - fe && L("overflow"), fe += O(me / he), me %= he, j.splice(me++, 0, fe);
|
|
2026
2019
|
}
|
|
2027
2020
|
return se(j);
|
|
2028
2021
|
}
|
|
2029
2022
|
function H(W) {
|
|
2030
|
-
var j, le, he, me, fe,
|
|
2031
|
-
for (W = Y(W), Ke = W.length, j = _, le = 0, fe =
|
|
2032
|
-
|
|
2023
|
+
var j, le, he, me, fe, Re, Ue, He, je, be, Ee, $e = [], Ke, Se, _e, rt;
|
|
2024
|
+
for (W = Y(W), Ke = W.length, j = _, le = 0, fe = m, Re = 0; Re < Ke; ++Re)
|
|
2025
|
+
Ee = W[Re], Ee < 128 && $e.push(F(Ee));
|
|
2033
2026
|
for (he = me = $e.length, me && $e.push(y); he < Ke; ) {
|
|
2034
|
-
for (Ue = l,
|
|
2035
|
-
|
|
2036
|
-
for (
|
|
2037
|
-
if (
|
|
2038
|
-
for (He = le, je = f; be = je <= fe ? p : je >= fe +
|
|
2027
|
+
for (Ue = l, Re = 0; Re < Ke; ++Re)
|
|
2028
|
+
Ee = W[Re], Ee >= j && Ee < Ue && (Ue = Ee);
|
|
2029
|
+
for (Se = he + 1, Ue - j > O((l - le) / Se) && L("overflow"), le += (Ue - j) * Se, j = Ue, Re = 0; Re < Ke; ++Re)
|
|
2030
|
+
if (Ee = W[Re], Ee < j && ++le > l && L("overflow"), Ee == j) {
|
|
2031
|
+
for (He = le, je = f; be = je <= fe ? p : je >= fe + g ? g : je - fe, !(He < be); je += f)
|
|
2039
2032
|
rt = He - be, _e = f - be, $e.push(
|
|
2040
2033
|
F(G(be + rt % _e, 0))
|
|
2041
2034
|
), He = O(rt / _e);
|
|
2042
|
-
$e.push(F(G(He, 0))), fe = ie(le,
|
|
2035
|
+
$e.push(F(G(He, 0))), fe = ie(le, Se, he == me), le = 0, ++he;
|
|
2043
2036
|
}
|
|
2044
2037
|
++le, ++j;
|
|
2045
2038
|
}
|
|
@@ -2122,11 +2115,11 @@ var OP = vo.exports, FP = function() {
|
|
|
2122
2115
|
throw new TypeError(BP + r);
|
|
2123
2116
|
for (var n = Cl.call(arguments, 1), i, a = function() {
|
|
2124
2117
|
if (this instanceof i) {
|
|
2125
|
-
var
|
|
2118
|
+
var g = r.apply(
|
|
2126
2119
|
this,
|
|
2127
2120
|
n.concat(Cl.call(arguments))
|
|
2128
2121
|
);
|
|
2129
|
-
return Object(
|
|
2122
|
+
return Object(g) === g ? g : this;
|
|
2130
2123
|
} else
|
|
2131
2124
|
return r.apply(
|
|
2132
2125
|
e,
|
|
@@ -2342,9 +2335,9 @@ var YP = function t(e) {
|
|
|
2342
2335
|
throw new Ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2343
2336
|
var n = tM(e), i = n.length > 0 ? n[0] : "", a = rM("%" + i + "%", r), u = a.name, l = a.value, f = !1, p = a.alias;
|
|
2344
2337
|
p && (i = p[0], ZP(n, KP([0, 1], p)));
|
|
2345
|
-
for (var
|
|
2346
|
-
var d = n[
|
|
2347
|
-
if ((
|
|
2338
|
+
for (var g = 1, c = !0; g < n.length; g += 1) {
|
|
2339
|
+
var d = n[g], m = yo(d, 0, 1), _ = yo(d, -1);
|
|
2340
|
+
if ((m === '"' || m === "'" || m === "`" || _ === '"' || _ === "'" || _ === "`") && m !== _)
|
|
2348
2341
|
throw new Ni("property names with quotes must have matching quotes");
|
|
2349
2342
|
if ((d === "constructor" || !c) && (f = !0), i += "." + d, u = "%" + i + "%", _o(Vn, u))
|
|
2350
2343
|
l = Vn[u];
|
|
@@ -2354,7 +2347,7 @@ var YP = function t(e) {
|
|
|
2354
2347
|
throw new Ri("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2355
2348
|
return;
|
|
2356
2349
|
}
|
|
2357
|
-
if (zn &&
|
|
2350
|
+
if (zn && g + 1 >= n.length) {
|
|
2358
2351
|
var y = zn(l, d);
|
|
2359
2352
|
c = !!y, c && "get" in y && !("originalValue" in y.get) ? l = y.get : l = l[d];
|
|
2360
2353
|
} else
|
|
@@ -2375,8 +2368,8 @@ var YP = function t(e) {
|
|
|
2375
2368
|
t.exports = function(c) {
|
|
2376
2369
|
var d = a(e, i, arguments);
|
|
2377
2370
|
if (u && l) {
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2371
|
+
var m = u(d, "length");
|
|
2372
|
+
m.configurable && l(
|
|
2380
2373
|
d,
|
|
2381
2374
|
"length",
|
|
2382
2375
|
{ value: 1 + f(0, c.length - (arguments.length - 1)) }
|
|
@@ -2445,8 +2438,8 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2445
2438
|
var p = String(e) + "n";
|
|
2446
2439
|
return l ? Jp(e, p) : p;
|
|
2447
2440
|
}
|
|
2448
|
-
var
|
|
2449
|
-
if (typeof n > "u" && (n = 0), n >=
|
|
2441
|
+
var g = typeof a.depth > "u" ? 5 : a.depth;
|
|
2442
|
+
if (typeof n > "u" && (n = 0), n >= g && g > 0 && typeof e == "object")
|
|
2450
2443
|
return yc(e) ? "[Array]" : "[Object]";
|
|
2451
2444
|
var c = kM(a, n);
|
|
2452
2445
|
if (typeof i > "u")
|
|
@@ -2463,8 +2456,8 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2463
2456
|
return t(X, a, n + 1, i);
|
|
2464
2457
|
}
|
|
2465
2458
|
if (typeof e == "function" && !rg(e)) {
|
|
2466
|
-
var
|
|
2467
|
-
return "[Function" + (
|
|
2459
|
+
var m = CM(e), _ = Ga(e, d);
|
|
2460
|
+
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (_.length > 0 ? " { " + Nr.call(_, ", ") + " }" : "");
|
|
2468
2461
|
}
|
|
2469
2462
|
if (Vm(e)) {
|
|
2470
2463
|
var y = Li ? pn.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vc.call(e);
|
|
@@ -2487,7 +2480,7 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2487
2480
|
}
|
|
2488
2481
|
if (typeof e == "object" && u) {
|
|
2489
2482
|
if (tg && typeof e[tg] == "function" && _c)
|
|
2490
|
-
return _c(e, { depth:
|
|
2483
|
+
return _c(e, { depth: g - n });
|
|
2491
2484
|
if (u !== "symbol" && typeof e.inspect == "function")
|
|
2492
2485
|
return e.inspect();
|
|
2493
2486
|
}
|
|
@@ -2868,8 +2861,8 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2868
2861
|
return e;
|
|
2869
2862
|
var u = e;
|
|
2870
2863
|
if (typeof e == "symbol" ? u = Symbol.prototype.toString.call(e) : typeof e != "string" && (u = String(e)), n === "iso-8859-1")
|
|
2871
|
-
return escape(u).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2872
|
-
return "%26%23" + parseInt(
|
|
2864
|
+
return escape(u).replace(/%u[0-9a-f]{4}/gi, function(g) {
|
|
2865
|
+
return "%26%23" + parseInt(g.slice(2), 16) + "%3B";
|
|
2873
2866
|
});
|
|
2874
2867
|
for (var l = "", f = 0; f < u.length; ++f) {
|
|
2875
2868
|
var p = u.charCodeAt(f);
|
|
@@ -2895,8 +2888,8 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2895
2888
|
}, nO = function(e) {
|
|
2896
2889
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], i = 0; i < r.length; ++i)
|
|
2897
2890
|
for (var a = r[i], u = a.obj[a.prop], l = Object.keys(u), f = 0; f < l.length; ++f) {
|
|
2898
|
-
var p = l[f],
|
|
2899
|
-
typeof
|
|
2891
|
+
var p = l[f], g = u[p];
|
|
2892
|
+
typeof g == "object" && g !== null && n.indexOf(g) === -1 && (r.push({ obj: u, prop: p }), n.push(g));
|
|
2900
2893
|
}
|
|
2901
2894
|
return QM(r), e;
|
|
2902
2895
|
}, iO = function(e) {
|
|
@@ -2956,7 +2949,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2956
2949
|
strictNullHandling: !1
|
|
2957
2950
|
}, hO = function(e) {
|
|
2958
2951
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2959
|
-
}, kl = {}, fO = function t(e, r, n, i, a, u, l, f, p,
|
|
2952
|
+
}, kl = {}, fO = function t(e, r, n, i, a, u, l, f, p, g, c, d, m, _, y, b) {
|
|
2960
2953
|
for (var x = e, E = b, w = 0, I = !1; (E = E.get(kl)) !== void 0 && !I; ) {
|
|
2961
2954
|
var O = E.get(e);
|
|
2962
2955
|
if (w += 1, typeof O < "u") {
|
|
@@ -2976,9 +2969,9 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2976
2969
|
if (hO(x) || ro.isBuffer(x)) {
|
|
2977
2970
|
if (l) {
|
|
2978
2971
|
var F = _ ? r : l(r, Pt.encoder, y, "key", d);
|
|
2979
|
-
return [
|
|
2972
|
+
return [m(F) + "=" + m(l(x, Pt.encoder, y, "value", d))];
|
|
2980
2973
|
}
|
|
2981
|
-
return [
|
|
2974
|
+
return [m(r) + "=" + m(String(x))];
|
|
2982
2975
|
}
|
|
2983
2976
|
var N = [];
|
|
2984
2977
|
if (typeof x > "u")
|
|
@@ -2995,7 +2988,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2995
2988
|
for (var V = i && Zr(x) && x.length === 1 ? r + "[]" : r, Y = 0; Y < L.length; ++Y) {
|
|
2996
2989
|
var se = L[Y], X = typeof se == "object" && typeof se.value < "u" ? se.value : x[se];
|
|
2997
2990
|
if (!(u && X === null)) {
|
|
2998
|
-
var G = Zr(x) ? typeof n == "function" ? n(V, se) : V : V + (
|
|
2991
|
+
var G = Zr(x) ? typeof n == "function" ? n(V, se) : V : V + (g ? "." + se : "[" + se + "]");
|
|
2999
2992
|
b.set(e, w);
|
|
3000
2993
|
var ie = Ym();
|
|
3001
2994
|
ie.set(kl, b), Km(N, t(
|
|
@@ -3008,10 +3001,10 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3008
3001
|
n === "comma" && _ && Zr(x) ? null : l,
|
|
3009
3002
|
f,
|
|
3010
3003
|
p,
|
|
3011
|
-
|
|
3004
|
+
g,
|
|
3012
3005
|
c,
|
|
3013
3006
|
d,
|
|
3014
|
-
|
|
3007
|
+
m,
|
|
3015
3008
|
_,
|
|
3016
3009
|
y,
|
|
3017
3010
|
ie
|
|
@@ -3064,7 +3057,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3064
3057
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3065
3058
|
var p = f === "comma" && e && e.commaRoundTrip;
|
|
3066
3059
|
i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
|
|
3067
|
-
for (var
|
|
3060
|
+
for (var g = Ym(), c = 0; c < i.length; ++c) {
|
|
3068
3061
|
var d = i[c];
|
|
3069
3062
|
n.skipNulls && r[d] === null || Km(u, fO(
|
|
3070
3063
|
r[d],
|
|
@@ -3082,11 +3075,11 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3082
3075
|
n.formatter,
|
|
3083
3076
|
n.encodeValuesOnly,
|
|
3084
3077
|
n.charset,
|
|
3085
|
-
|
|
3078
|
+
g
|
|
3086
3079
|
));
|
|
3087
3080
|
}
|
|
3088
|
-
var
|
|
3089
|
-
return n.charsetSentinel && (n.charset === "iso-8859-1" ? _ += "utf8=%26%2310003%3B&" : _ += "utf8=%E2%9C%93&"),
|
|
3081
|
+
var m = u.join(n.delimiter), _ = n.addQueryPrefix === !0 ? "?" : "";
|
|
3082
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? _ += "utf8=%26%2310003%3B&" : _ += "utf8=%E2%9C%93&"), m.length > 0 ? _ + m : "";
|
|
3090
3083
|
}, ki = qm, bc = Object.prototype.hasOwnProperty, gO = Array.isArray, xt = {
|
|
3091
3084
|
allowDots: !1,
|
|
3092
3085
|
allowPrototypes: !1,
|
|
@@ -3117,13 +3110,13 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3117
3110
|
u[f].indexOf("utf8=") === 0 && (u[f] === _O ? p = "utf-8" : u[f] === vO && (p = "iso-8859-1"), l = f, f = u.length);
|
|
3118
3111
|
for (f = 0; f < u.length; ++f)
|
|
3119
3112
|
if (f !== l) {
|
|
3120
|
-
var
|
|
3121
|
-
d === -1 ? (
|
|
3122
|
-
Zm(
|
|
3113
|
+
var g = u[f], c = g.indexOf("]="), d = c === -1 ? g.indexOf("=") : c + 1, m, _;
|
|
3114
|
+
d === -1 ? (m = r.decoder(g, xt.decoder, p, "key"), _ = r.strictNullHandling ? null : "") : (m = r.decoder(g.slice(0, d), xt.decoder, p, "key"), _ = ki.maybeMap(
|
|
3115
|
+
Zm(g.slice(d + 1), r),
|
|
3123
3116
|
function(y) {
|
|
3124
3117
|
return r.decoder(y, xt.decoder, p, "value");
|
|
3125
3118
|
}
|
|
3126
|
-
)), _ && r.interpretNumericEntities && p === "iso-8859-1" && (_ = mO(_)),
|
|
3119
|
+
)), _ && r.interpretNumericEntities && p === "iso-8859-1" && (_ = mO(_)), g.indexOf("[]=") > -1 && (_ = gO(_) ? [_] : _), bc.call(n, m) ? n[m] = ki.combine(n[m], _) : n[m] = _;
|
|
3127
3120
|
}
|
|
3128
3121
|
return n;
|
|
3129
3122
|
}, xO = function(t, e, r, n) {
|
|
@@ -3141,18 +3134,18 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3141
3134
|
return i;
|
|
3142
3135
|
}, bO = function(e, r, n, i) {
|
|
3143
3136
|
if (e) {
|
|
3144
|
-
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, u = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && u.exec(a), p = f ? a.slice(0, f.index) : a,
|
|
3137
|
+
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, u = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && u.exec(a), p = f ? a.slice(0, f.index) : a, g = [];
|
|
3145
3138
|
if (p) {
|
|
3146
3139
|
if (!n.plainObjects && bc.call(Object.prototype, p) && !n.allowPrototypes)
|
|
3147
3140
|
return;
|
|
3148
|
-
|
|
3141
|
+
g.push(p);
|
|
3149
3142
|
}
|
|
3150
3143
|
for (var c = 0; n.depth > 0 && (f = l.exec(a)) !== null && c < n.depth; ) {
|
|
3151
3144
|
if (c += 1, !n.plainObjects && bc.call(Object.prototype, f[1].slice(1, -1)) && !n.allowPrototypes)
|
|
3152
3145
|
return;
|
|
3153
|
-
|
|
3146
|
+
g.push(f[1]);
|
|
3154
3147
|
}
|
|
3155
|
-
return f &&
|
|
3148
|
+
return f && g.push("[" + a.slice(f.index) + "]"), xO(g, r, n, i);
|
|
3156
3149
|
}
|
|
3157
3150
|
}, TO = function(e) {
|
|
3158
3151
|
if (!e)
|
|
@@ -3263,34 +3256,34 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3263
3256
|
var p = RO.exec(l);
|
|
3264
3257
|
if (p) {
|
|
3265
3258
|
p = p[0];
|
|
3266
|
-
var
|
|
3267
|
-
this.protocol =
|
|
3259
|
+
var g = p.toLowerCase();
|
|
3260
|
+
this.protocol = g, l = l.substr(p.length);
|
|
3268
3261
|
}
|
|
3269
3262
|
if (r || p || l.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
3270
3263
|
var c = l.substr(0, 2) === "//";
|
|
3271
3264
|
c && !(p && wc[p]) && (l = l.substr(2), this.slashes = !0);
|
|
3272
3265
|
}
|
|
3273
3266
|
if (!wc[p] && (c || p && !Pi[p])) {
|
|
3274
|
-
for (var d = -1,
|
|
3275
|
-
var _ = l.indexOf(og[
|
|
3267
|
+
for (var d = -1, m = 0; m < og.length; m++) {
|
|
3268
|
+
var _ = l.indexOf(og[m]);
|
|
3276
3269
|
_ !== -1 && (d === -1 || _ < d) && (d = _);
|
|
3277
3270
|
}
|
|
3278
3271
|
var y, b;
|
|
3279
3272
|
d === -1 ? b = l.lastIndexOf("@") : b = l.lastIndexOf("@", d), b !== -1 && (y = l.slice(0, b), l = l.slice(b + 1), this.auth = decodeURIComponent(y)), d = -1;
|
|
3280
|
-
for (var
|
|
3281
|
-
var _ = l.indexOf(ag[
|
|
3273
|
+
for (var m = 0; m < ag.length; m++) {
|
|
3274
|
+
var _ = l.indexOf(ag[m]);
|
|
3282
3275
|
_ !== -1 && (d === -1 || _ < d) && (d = _);
|
|
3283
3276
|
}
|
|
3284
3277
|
d === -1 && (d = l.length), this.host = l.slice(0, d), l = l.slice(d), this.parseHost(), this.hostname = this.hostname || "";
|
|
3285
3278
|
var x = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
3286
3279
|
if (!x)
|
|
3287
|
-
for (var E = this.hostname.split(/\./),
|
|
3288
|
-
var I = E[
|
|
3280
|
+
for (var E = this.hostname.split(/\./), m = 0, w = E.length; m < w; m++) {
|
|
3281
|
+
var I = E[m];
|
|
3289
3282
|
if (I && !I.match(ug)) {
|
|
3290
3283
|
for (var O = "", F = 0, N = I.length; F < N; F++)
|
|
3291
3284
|
I.charCodeAt(F) > 127 ? O += "x" : O += I[F];
|
|
3292
3285
|
if (!O.match(ug)) {
|
|
3293
|
-
var L = E.slice(0,
|
|
3286
|
+
var L = E.slice(0, m), D = E.slice(m + 1), V = I.match(LO);
|
|
3294
3287
|
V && (L.push(V[1]), D.unshift(V[2])), D.length && (l = "/" + D.join(".") + l), this.hostname = L.join(".");
|
|
3295
3288
|
break;
|
|
3296
3289
|
}
|
|
@@ -3300,9 +3293,9 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3300
3293
|
var Y = this.port ? ":" + this.port : "", se = this.hostname || "";
|
|
3301
3294
|
this.host = se + Y, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), l[0] !== "/" && (l = "/" + l));
|
|
3302
3295
|
}
|
|
3303
|
-
if (!kO[
|
|
3304
|
-
for (var
|
|
3305
|
-
var X = Tc[
|
|
3296
|
+
if (!kO[g])
|
|
3297
|
+
for (var m = 0, w = Tc.length; m < w; m++) {
|
|
3298
|
+
var X = Tc[m];
|
|
3306
3299
|
if (l.indexOf(X) !== -1) {
|
|
3307
3300
|
var G = encodeURIComponent(X);
|
|
3308
3301
|
G === X && (G = escape(X)), l = l.split(X).join(G);
|
|
@@ -3311,7 +3304,7 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3311
3304
|
var ie = l.indexOf("#");
|
|
3312
3305
|
ie !== -1 && (this.hash = l.substr(ie), l = l.slice(0, ie));
|
|
3313
3306
|
var re = l.indexOf("?");
|
|
3314
|
-
if (re !== -1 ? (this.search = l.substr(re), this.query = l.substr(re + 1), e && (this.query = Sc.parse(this.query)), l = l.slice(0, re)) : e && (this.search = "", this.query = {}), l && (this.pathname = l), Pi[
|
|
3307
|
+
if (re !== -1 ? (this.search = l.substr(re), this.query = l.substr(re + 1), e && (this.query = Sc.parse(this.query)), l = l.slice(0, re)) : e && (this.search = "", this.query = {}), l && (this.pathname = l), Pi[g] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3315
3308
|
var Y = this.pathname || "", H = this.search || "";
|
|
3316
3309
|
this.path = Y + H;
|
|
3317
3310
|
}
|
|
@@ -3356,8 +3349,8 @@ Sr.prototype.resolveObject = function(t) {
|
|
|
3356
3349
|
}
|
|
3357
3350
|
if (t.protocol && t.protocol !== r.protocol) {
|
|
3358
3351
|
if (!Pi[t.protocol]) {
|
|
3359
|
-
for (var p = Object.keys(t),
|
|
3360
|
-
var c = p[
|
|
3352
|
+
for (var p = Object.keys(t), g = 0; g < p.length; g++) {
|
|
3353
|
+
var c = p[g];
|
|
3361
3354
|
r[c] = t[c];
|
|
3362
3355
|
}
|
|
3363
3356
|
return r.href = r.format(), r;
|
|
@@ -3369,8 +3362,8 @@ Sr.prototype.resolveObject = function(t) {
|
|
|
3369
3362
|
} else
|
|
3370
3363
|
r.pathname = t.pathname;
|
|
3371
3364
|
if (r.search = t.search, r.query = t.query, r.host = t.host || "", r.auth = t.auth, r.hostname = t.hostname || t.host, r.port = t.port, r.pathname || r.search) {
|
|
3372
|
-
var d = r.pathname || "",
|
|
3373
|
-
r.path = d +
|
|
3365
|
+
var d = r.pathname || "", m = r.search || "";
|
|
3366
|
+
r.path = d + m;
|
|
3374
3367
|
}
|
|
3375
3368
|
return r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
|
|
3376
3369
|
}
|
|
@@ -3430,12 +3423,12 @@ function zO() {
|
|
|
3430
3423
|
var r;
|
|
3431
3424
|
const e = {
|
|
3432
3425
|
stencil: !0,
|
|
3433
|
-
failIfMajorPerformanceCaveat:
|
|
3426
|
+
failIfMajorPerformanceCaveat: Ie.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
|
|
3434
3427
|
};
|
|
3435
3428
|
try {
|
|
3436
|
-
if (!
|
|
3429
|
+
if (!Ie.ADAPTER.getWebGLRenderingContext())
|
|
3437
3430
|
return !1;
|
|
3438
|
-
const n =
|
|
3431
|
+
const n = Ie.ADAPTER.createCanvas();
|
|
3439
3432
|
let i = n.getContext("webgl", e) || n.getContext("experimental-webgl", e);
|
|
3440
3433
|
const a = !!((r = i == null ? void 0 : i.getContextAttributes()) != null && r.stencil);
|
|
3441
3434
|
if (i) {
|
|
@@ -3598,12 +3591,12 @@ function QO(t, e) {
|
|
|
3598
3591
|
if (p)
|
|
3599
3592
|
return p;
|
|
3600
3593
|
if (u != null && u.closest) {
|
|
3601
|
-
var
|
|
3594
|
+
var g = this.toRgb(), c = 1 / 0, d = "black";
|
|
3602
3595
|
if (!a.length)
|
|
3603
|
-
for (var
|
|
3604
|
-
a[
|
|
3596
|
+
for (var m in r)
|
|
3597
|
+
a[m] = new t(r[m]).toRgb();
|
|
3605
3598
|
for (var _ in r) {
|
|
3606
|
-
var y = (l =
|
|
3599
|
+
var y = (l = g, f = a[_], Math.pow(l.r - f.r, 2) + Math.pow(l.g - f.g, 2) + Math.pow(l.b - f.b, 2));
|
|
3607
3600
|
y < c && (c = y, d = _);
|
|
3608
3601
|
}
|
|
3609
3602
|
return d;
|
|
@@ -3837,7 +3830,7 @@ function rF(t, e = globalThis.location) {
|
|
|
3837
3830
|
}
|
|
3838
3831
|
function xg(t, e = 1) {
|
|
3839
3832
|
var n;
|
|
3840
|
-
const r = (n =
|
|
3833
|
+
const r = (n = Ie.RETINA_PREFIX) == null ? void 0 : n.exec(t);
|
|
3841
3834
|
return r ? parseFloat(r[1]) : e;
|
|
3842
3835
|
}
|
|
3843
3836
|
var Ne = /* @__PURE__ */ ((t) => (t.Renderer = "renderer", t.Application = "application", t.RendererSystem = "renderer-webgl-system", t.RendererPlugin = "renderer-webgl-plugin", t.CanvasRendererSystem = "renderer-canvas-system", t.CanvasRendererPlugin = "renderer-canvas-plugin", t.Asset = "asset", t.LoadParser = "load-parser", t.ResolveParser = "resolve-parser", t.CacheParser = "cache-parser", t.DetectionParser = "detection-parser", t))(Ne || {});
|
|
@@ -4051,11 +4044,11 @@ class Ar {
|
|
|
4051
4044
|
emit(e, r, n, i, a, u, l, f) {
|
|
4052
4045
|
if (arguments.length > 8)
|
|
4053
4046
|
throw new Error("max arguments reached");
|
|
4054
|
-
const { name: p, items:
|
|
4047
|
+
const { name: p, items: g } = this;
|
|
4055
4048
|
this._aliasCount++;
|
|
4056
|
-
for (let c = 0, d =
|
|
4057
|
-
|
|
4058
|
-
return
|
|
4049
|
+
for (let c = 0, d = g.length; c < d; c++)
|
|
4050
|
+
g[c][p](e, r, n, i, a, u, l, f);
|
|
4051
|
+
return g === this.items && this._aliasCount--, this;
|
|
4059
4052
|
}
|
|
4060
4053
|
ensureNonAliasedItems() {
|
|
4061
4054
|
this._aliasCount > 0 && this.items.length > 1 && (this._aliasCount = 0, this.items = this.items.slice(0));
|
|
@@ -4163,12 +4156,12 @@ const oF = {
|
|
|
4163
4156
|
height: l,
|
|
4164
4157
|
wrapMode: f,
|
|
4165
4158
|
format: p,
|
|
4166
|
-
type:
|
|
4159
|
+
type: g,
|
|
4167
4160
|
target: c,
|
|
4168
4161
|
resolution: d,
|
|
4169
|
-
resourceOptions:
|
|
4162
|
+
resourceOptions: m
|
|
4170
4163
|
} = e;
|
|
4171
|
-
t && !(t instanceof Ns) && (t = n0(t,
|
|
4164
|
+
t && !(t instanceof Ns) && (t = n0(t, m), t.internal = !0), this.resolution = d || Ie.RESOLUTION, this.width = Math.round((u || 0) * this.resolution) / this.resolution, this.height = Math.round((l || 0) * this.resolution) / this.resolution, this._mipmap = n, this.anisotropicLevel = i, this._wrapMode = f, this._scaleMode = a, this.format = p, this.type = g, this.target = c, this.alphaMode = r, this.uid = Fs(), this.touched = 0, this.isPowerOfTwo = !1, this._refreshPOT(), this._glTextures = {}, this.dirtyId = 0, this.dirtyStyleId = 0, this.cacheId = null, this.valid = u > 0 && l > 0, this.textureCacheIds = [], this.destroyed = !1, this.resource = null, this._batchEnabled = 0, this._batchLocation = 0, this.parentTextureArray = null, this.setResource(t);
|
|
4172
4165
|
}
|
|
4173
4166
|
get realWidth() {
|
|
4174
4167
|
return Math.round(this.width * this.resolution);
|
|
@@ -4233,7 +4226,7 @@ const oF = {
|
|
|
4233
4226
|
castToBaseTexture() {
|
|
4234
4227
|
return this;
|
|
4235
4228
|
}
|
|
4236
|
-
static from(t, e, r =
|
|
4229
|
+
static from(t, e, r = Ie.STRICT_TEXTURE_CACHE) {
|
|
4237
4230
|
const n = typeof t == "string";
|
|
4238
4231
|
let i = null;
|
|
4239
4232
|
if (n)
|
|
@@ -4339,11 +4332,11 @@ function cF(t, e) {
|
|
|
4339
4332
|
const a = new ArrayBuffer(r * 4);
|
|
4340
4333
|
let u = null, l = 0;
|
|
4341
4334
|
for (let f = 0; f < t.length; f++) {
|
|
4342
|
-
const p = e[f],
|
|
4335
|
+
const p = e[f], g = t[f], c = t0(g);
|
|
4343
4336
|
i[c] || (i[c] = new lF[c](a)), u = i[c];
|
|
4344
|
-
for (let d = 0; d <
|
|
4345
|
-
const
|
|
4346
|
-
u[
|
|
4337
|
+
for (let d = 0; d < g.length; d++) {
|
|
4338
|
+
const m = (d / p | 0) * n + l, _ = d % p;
|
|
4339
|
+
u[m + _] = g[d];
|
|
4347
4340
|
}
|
|
4348
4341
|
l += p;
|
|
4349
4342
|
}
|
|
@@ -4372,8 +4365,8 @@ class Di {
|
|
|
4372
4365
|
this.addAttribute(p[c], r, n, i, a);
|
|
4373
4366
|
return this;
|
|
4374
4367
|
}
|
|
4375
|
-
let
|
|
4376
|
-
return
|
|
4368
|
+
let g = this.buffers.indexOf(r);
|
|
4369
|
+
return g === -1 && (this.buffers.push(r), g = this.buffers.length - 1), this.attributes[e] = new wo(g, n, i, a, u, l, f), this.instanced = this.instanced || f, this;
|
|
4377
4370
|
}
|
|
4378
4371
|
getAttribute(e) {
|
|
4379
4372
|
return this.attributes[e];
|
|
@@ -4440,21 +4433,21 @@ class Di {
|
|
|
4440
4433
|
}
|
|
4441
4434
|
if (r.attributes = u.attributes, u.indexBuffer) {
|
|
4442
4435
|
r.indexBuffer = r.buffers[u.buffers.indexOf(u.indexBuffer)], r.indexBuffer.type = kr.ELEMENT_ARRAY_BUFFER;
|
|
4443
|
-
let l = 0, f = 0, p = 0,
|
|
4436
|
+
let l = 0, f = 0, p = 0, g = 0;
|
|
4444
4437
|
for (let c = 0; c < u.buffers.length; c++)
|
|
4445
4438
|
if (u.buffers[c] !== u.indexBuffer) {
|
|
4446
|
-
|
|
4439
|
+
g = c;
|
|
4447
4440
|
break;
|
|
4448
4441
|
}
|
|
4449
4442
|
for (const c in u.attributes) {
|
|
4450
4443
|
const d = u.attributes[c];
|
|
4451
|
-
(d.buffer | 0) ===
|
|
4444
|
+
(d.buffer | 0) === g && (f += d.size * Tg[d.type] / 4);
|
|
4452
4445
|
}
|
|
4453
4446
|
for (let c = 0; c < e.length; c++) {
|
|
4454
4447
|
const d = e[c].indexBuffer.data;
|
|
4455
|
-
for (let
|
|
4456
|
-
r.indexBuffer.data[
|
|
4457
|
-
l += e[c].buffers[
|
|
4448
|
+
for (let m = 0; m < d.length; m++)
|
|
4449
|
+
r.indexBuffer.data[m + p] += l;
|
|
4450
|
+
l += e[c].buffers[g].data.length / f, p += d.length;
|
|
4458
4451
|
}
|
|
4459
4452
|
}
|
|
4460
4453
|
return r;
|
|
@@ -4533,17 +4526,17 @@ class Ye {
|
|
|
4533
4526
|
const n = this.left, i = this.right, a = this.top, u = this.bottom;
|
|
4534
4527
|
if (i <= n || u <= a)
|
|
4535
4528
|
return !1;
|
|
4536
|
-
const l = Wa[0].set(e.left, e.top), f = Wa[1].set(e.left, e.bottom), p = Wa[2].set(e.right, e.top),
|
|
4529
|
+
const l = Wa[0].set(e.left, e.top), f = Wa[1].set(e.left, e.bottom), p = Wa[2].set(e.right, e.top), g = Wa[3].set(e.right, e.bottom);
|
|
4537
4530
|
if (p.x <= l.x || f.y <= l.y)
|
|
4538
4531
|
return !1;
|
|
4539
4532
|
const c = Math.sign(r.a * r.d - r.b * r.c);
|
|
4540
|
-
if (c === 0 || (r.apply(l, l), r.apply(f, f), r.apply(p, p), r.apply(
|
|
4533
|
+
if (c === 0 || (r.apply(l, l), r.apply(f, f), r.apply(p, p), r.apply(g, g), Math.max(l.x, f.x, p.x, g.x) <= n || Math.min(l.x, f.x, p.x, g.x) >= i || Math.max(l.y, f.y, p.y, g.y) <= a || Math.min(l.y, f.y, p.y, g.y) >= u))
|
|
4541
4534
|
return !1;
|
|
4542
|
-
const d = c * (f.y - l.y),
|
|
4543
|
-
if (Math.max(_, y, b, x) <= d * l.x +
|
|
4535
|
+
const d = c * (f.y - l.y), m = c * (l.x - f.x), _ = d * n + m * a, y = d * i + m * a, b = d * n + m * u, x = d * i + m * u;
|
|
4536
|
+
if (Math.max(_, y, b, x) <= d * l.x + m * l.y || Math.min(_, y, b, x) >= d * g.x + m * g.y)
|
|
4544
4537
|
return !1;
|
|
4545
4538
|
const E = c * (l.y - p.y), w = c * (p.x - l.x), I = E * n + w * a, O = E * i + w * a, F = E * n + w * u, N = E * i + w * u;
|
|
4546
|
-
return !(Math.max(I, O, F, N) <= E * l.x + w * l.y || Math.min(I, O, F, N) >= E *
|
|
4539
|
+
return !(Math.max(I, O, F, N) <= E * l.x + w * l.y || Math.min(I, O, F, N) >= E * g.x + w * g.y);
|
|
4547
4540
|
}
|
|
4548
4541
|
pad(e = 0, r = e) {
|
|
4549
4542
|
return this.x -= e, this.y -= r, this.width += e * 2, this.height += r * 2, this;
|
|
@@ -4624,8 +4617,8 @@ class As {
|
|
|
4624
4617
|
let n = !1;
|
|
4625
4618
|
const i = this.points.length / 2;
|
|
4626
4619
|
for (let a = 0, u = i - 1; a < i; u = a++) {
|
|
4627
|
-
const l = this.points[a * 2], f = this.points[a * 2 + 1], p = this.points[u * 2],
|
|
4628
|
-
f > r !=
|
|
4620
|
+
const l = this.points[a * 2], f = this.points[a * 2 + 1], p = this.points[u * 2], g = this.points[u * 2 + 1];
|
|
4621
|
+
f > r != g > r && e < (p - l) * ((r - f) / (g - f)) + l && (n = !n);
|
|
4629
4622
|
}
|
|
4630
4623
|
return n;
|
|
4631
4624
|
}
|
|
@@ -5349,9 +5342,9 @@ const l0 = {};
|
|
|
5349
5342
|
let _i = l0;
|
|
5350
5343
|
function bF() {
|
|
5351
5344
|
if (_i === l0 || _i != null && _i.isContextLost()) {
|
|
5352
|
-
const t =
|
|
5345
|
+
const t = Ie.ADAPTER.createCanvas();
|
|
5353
5346
|
let e;
|
|
5354
|
-
|
|
5347
|
+
Ie.PREFER_ENV >= Kn.WEBGL2 && (e = t.getContext("webgl2", {})), e || (e = t.getContext("webgl", {}) || t.getContext("experimental-webgl", {}), e ? e.getExtension("WEBGL_draw_buffers") : e = null), _i = e;
|
|
5355
5348
|
}
|
|
5356
5349
|
return _i;
|
|
5357
5350
|
}
|
|
@@ -5366,7 +5359,7 @@ function TF() {
|
|
|
5366
5359
|
}
|
|
5367
5360
|
function Sg(t, e) {
|
|
5368
5361
|
const r = t.getShaderSource(e).split(`
|
|
5369
|
-
`).map((p,
|
|
5362
|
+
`).map((p, g) => `${g}: ${p}`), n = t.getShaderInfoLog(e), i = n.split(`
|
|
5370
5363
|
`), a = {}, u = i.map((p) => parseFloat(p.replace(/^ERROR\: 0\:([\d]+)\:.*$/, "$1"))).filter((p) => p && !a[p] ? (a[p] = !0, !0) : !1), l = [""];
|
|
5371
5364
|
u.forEach((p) => {
|
|
5372
5365
|
r[p - 1] = `%c${r[p - 1]}%c`, l.push("background: #FF0000; color:#FFFFFF; font-size: 10px", "font-size: 10px");
|
|
@@ -5587,7 +5580,7 @@ function RF() {
|
|
|
5587
5580
|
}
|
|
5588
5581
|
function PF(t) {
|
|
5589
5582
|
let e = !0;
|
|
5590
|
-
const r =
|
|
5583
|
+
const r = Ie.ADAPTER.getNavigator();
|
|
5591
5584
|
if (Ai.tablet || Ai.phone) {
|
|
5592
5585
|
if (Ai.apple.device) {
|
|
5593
5586
|
const n = r.userAgent.match(/OS (\d+)_(\d+)?/);
|
|
@@ -5682,7 +5675,7 @@ const vr = class extends f0 {
|
|
|
5682
5675
|
}
|
|
5683
5676
|
contextChange() {
|
|
5684
5677
|
const t = this.renderer.gl;
|
|
5685
|
-
|
|
5678
|
+
Ie.PREFER_ENV === Kn.WEBGL_LEGACY ? this.maxTextures = 1 : (this.maxTextures = Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), vr.defaultMaxTextures), this.maxTextures = aF(this.maxTextures, t)), this._shader = this.shaderGenerator.generateShader(this.maxTextures);
|
|
5686
5679
|
for (let e = 0; e < this._packedGeometryPoolSize; e++)
|
|
5687
5680
|
this._packedGeometries[e] = new this.geometryClass();
|
|
5688
5681
|
this.initFlushBuffers();
|
|
@@ -5712,13 +5705,13 @@ const vr = class extends f0 {
|
|
|
5712
5705
|
} = this, r = vr._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, a = this.renderer.textureGC.count;
|
|
5713
5706
|
let u = ++Be._globalBatch, l = 0, f = r[0], p = 0;
|
|
5714
5707
|
n.copyBoundTextures(i, e);
|
|
5715
|
-
for (let
|
|
5716
|
-
const c = t[
|
|
5717
|
-
t[
|
|
5708
|
+
for (let g = 0; g < this._bufferSize; ++g) {
|
|
5709
|
+
const c = t[g];
|
|
5710
|
+
t[g] = null, c._batchEnabled !== u && (f.count >= e && (n.boundArray(f, i, u, e), this.buildDrawCalls(f, p, g), p = g, f = r[++l], ++u), c._batchEnabled = u, c.touched = a, f.elements[f.count++] = c);
|
|
5718
5711
|
}
|
|
5719
5712
|
f.count > 0 && (n.boundArray(f, i, u, e), this.buildDrawCalls(f, p, this._bufferSize), ++l, ++u);
|
|
5720
|
-
for (let
|
|
5721
|
-
i[
|
|
5713
|
+
for (let g = 0; g < i.length; g++)
|
|
5714
|
+
i[g] = null;
|
|
5722
5715
|
Be._globalBatch = u;
|
|
5723
5716
|
}
|
|
5724
5717
|
buildDrawCalls(t, e, r) {
|
|
@@ -5728,13 +5721,13 @@ const vr = class extends f0 {
|
|
|
5728
5721
|
_indexBuffer: a,
|
|
5729
5722
|
vertexSize: u
|
|
5730
5723
|
} = this, l = vr._drawCallPool;
|
|
5731
|
-
let f = this._dcIndex, p = this._aIndex,
|
|
5724
|
+
let f = this._dcIndex, p = this._aIndex, g = this._iIndex, c = l[f];
|
|
5732
5725
|
c.start = this._iIndex, c.texArray = t;
|
|
5733
5726
|
for (let d = e; d < r; ++d) {
|
|
5734
|
-
const
|
|
5735
|
-
n[d] = null, e < d && c.blend !== y && (c.size =
|
|
5727
|
+
const m = n[d], _ = m._texture.baseTexture, y = eF[_.alphaMode ? 1 : 0][m.blendMode];
|
|
5728
|
+
n[d] = null, e < d && c.blend !== y && (c.size = g - c.start, e = d, c = l[++f], c.texArray = t, c.start = g), this.packInterleavedGeometry(m, i, a, p, g), p += m.vertexData.length / 2 * u, g += m.indices.length, c.blend = y;
|
|
5736
5729
|
}
|
|
5737
|
-
e < r && (c.size =
|
|
5730
|
+
e < r && (c.size = g - c.start, ++f), this._dcIndex = f, this._aIndex = p, this._iIndex = g;
|
|
5738
5731
|
}
|
|
5739
5732
|
bindAndClearTexArray(t) {
|
|
5740
5733
|
const e = this.renderer.texture;
|
|
@@ -5754,8 +5747,8 @@ const vr = class extends f0 {
|
|
|
5754
5747
|
const t = this._dcIndex, { gl: e, state: r } = this.renderer, n = vr._drawCallPool;
|
|
5755
5748
|
let i = null;
|
|
5756
5749
|
for (let a = 0; a < t; a++) {
|
|
5757
|
-
const { texArray: u, type: l, size: f, start: p, blend:
|
|
5758
|
-
i !== u && (i = u, this.bindAndClearTexArray(u)), this.state.blendMode =
|
|
5750
|
+
const { texArray: u, type: l, size: f, start: p, blend: g } = n[a];
|
|
5751
|
+
i !== u && (i = u, this.bindAndClearTexArray(u)), this.state.blendMode = g, r.set(this.state), e.drawElements(l, f, e.UNSIGNED_SHORT, p * 2);
|
|
5759
5752
|
}
|
|
5760
5753
|
}
|
|
5761
5754
|
flush() {
|
|
@@ -5788,9 +5781,9 @@ const vr = class extends f0 {
|
|
|
5788
5781
|
const {
|
|
5789
5782
|
uint32View: a,
|
|
5790
5783
|
float32View: u
|
|
5791
|
-
} = e, l = n / this.vertexSize, f = t.uvs, p = t.indices,
|
|
5792
|
-
for (let _ = 0; _ <
|
|
5793
|
-
u[n++] =
|
|
5784
|
+
} = e, l = n / this.vertexSize, f = t.uvs, p = t.indices, g = t.vertexData, c = t._texture.baseTexture._batchLocation, d = Math.min(t.worldAlpha, 1), m = Mt.shared.setValue(t._tintRGB).toPremultiplied(d);
|
|
5785
|
+
for (let _ = 0; _ < g.length; _ += 2)
|
|
5786
|
+
u[n++] = g[_], u[n++] = g[_ + 1], u[n++] = f[_], u[n++] = f[_ + 1], a[n++] = m, u[n++] = c;
|
|
5794
5787
|
for (let _ = 0; _ < p.length; _++)
|
|
5795
5788
|
r[i++] = l + p[_];
|
|
5796
5789
|
}
|
|
@@ -5930,8 +5923,8 @@ class d0 {
|
|
|
5930
5923
|
const { elements: a, ids: u, count: l } = e;
|
|
5931
5924
|
let f = 0;
|
|
5932
5925
|
for (let p = 0; p < l; p++) {
|
|
5933
|
-
const
|
|
5934
|
-
if (c >= 0 && c < i && r[c] ===
|
|
5926
|
+
const g = a[p], c = g._batchLocation;
|
|
5927
|
+
if (c >= 0 && c < i && r[c] === g) {
|
|
5935
5928
|
u[p] = c;
|
|
5936
5929
|
continue;
|
|
5937
5930
|
}
|
|
@@ -5941,7 +5934,7 @@ class d0 {
|
|
|
5941
5934
|
f++;
|
|
5942
5935
|
continue;
|
|
5943
5936
|
}
|
|
5944
|
-
u[p] = f,
|
|
5937
|
+
u[p] = f, g._batchLocation = f, r[f] = g;
|
|
5945
5938
|
break;
|
|
5946
5939
|
}
|
|
5947
5940
|
}
|
|
@@ -5994,7 +5987,7 @@ class zo {
|
|
|
5994
5987
|
}
|
|
5995
5988
|
createContext(e, r) {
|
|
5996
5989
|
let n;
|
|
5997
|
-
if (
|
|
5990
|
+
if (Ie.PREFER_ENV >= Kn.WEBGL2 && (n = e.getContext("webgl2", r)), n)
|
|
5998
5991
|
this.webGLVersion = 2;
|
|
5999
5992
|
else if (this.webGLVersion = 1, n = e.getContext("webgl", r) || e.getContext("experimental-webgl", r), !n)
|
|
6000
5993
|
throw new Error("This browser does not support WebGL. Try using the canvas renderer");
|
|
@@ -6181,7 +6174,7 @@ class g0 extends gn {
|
|
|
6181
6174
|
const n = new Image();
|
|
6182
6175
|
gn.crossOrigin(n, e, r.crossorigin), n.src = e, e = n;
|
|
6183
6176
|
}
|
|
6184
|
-
super(e), !e.complete && this._width && this._height && (this._width = 0, this._height = 0), this.url = e.src, this._process = null, this.preserveBitmap = !1, this.createBitmap = (r.createBitmap ??
|
|
6177
|
+
super(e), !e.complete && this._width && this._height && (this._width = 0, this._height = 0), this.url = e.src, this._process = null, this.preserveBitmap = !1, this.createBitmap = (r.createBitmap ?? Ie.CREATE_IMAGE_BITMAP) && !!globalThis.createImageBitmap, this.alphaMode = typeof r.alphaMode == "number" ? r.alphaMode : null, this.bitmap = null, this._load = null, r.autoLoad !== !1 && this.load();
|
|
6185
6178
|
}
|
|
6186
6179
|
load(e) {
|
|
6187
6180
|
return this._load ? this._load : (e !== void 0 && (this.createBitmap = e), this._load = new Promise((r, n) => {
|
|
@@ -6297,7 +6290,7 @@ class ke extends ko {
|
|
|
6297
6290
|
updateUvs() {
|
|
6298
6291
|
this._uvs === Ig && (this._uvs = new m0()), this._uvs.set(this._frame, this.baseTexture, this.rotate), this._updateID++;
|
|
6299
6292
|
}
|
|
6300
|
-
static from(e, r = {}, n =
|
|
6293
|
+
static from(e, r = {}, n = Ie.STRICT_TEXTURE_CACHE) {
|
|
6301
6294
|
const i = typeof e == "string";
|
|
6302
6295
|
let a = null;
|
|
6303
6296
|
if (i)
|
|
@@ -6365,8 +6358,8 @@ class ke extends ko {
|
|
|
6365
6358
|
this._frame = e, this.noFrame = !1;
|
|
6366
6359
|
const { x: r, y: n, width: i, height: a } = e, u = r + i > this.baseTexture.width, l = n + a > this.baseTexture.height;
|
|
6367
6360
|
if (u || l) {
|
|
6368
|
-
const f = u && l ? "and" : "or", p = `X: ${r} + ${i} = ${r + i} > ${this.baseTexture.width}`,
|
|
6369
|
-
throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${p} ${f} ${
|
|
6361
|
+
const f = u && l ? "and" : "or", p = `X: ${r} + ${i} = ${r + i} > ${this.baseTexture.width}`, g = `Y: ${n} + ${a} = ${n + a} > ${this.baseTexture.height}`;
|
|
6362
|
+
throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${p} ${f} ${g}`);
|
|
6370
6363
|
}
|
|
6371
6364
|
this.valid = i && a && this.baseTexture.valid, !this.trim && !this.rotate && (this.orig = e), this.valid && this.updateUvs();
|
|
6372
6365
|
}
|
|
@@ -6390,7 +6383,7 @@ class ke extends ko {
|
|
|
6390
6383
|
}
|
|
6391
6384
|
static get WHITE() {
|
|
6392
6385
|
if (!ke._WHITE) {
|
|
6393
|
-
const e =
|
|
6386
|
+
const e = Ie.ADAPTER.createCanvas(16, 16), r = e.getContext("2d");
|
|
6394
6387
|
e.width = 16, e.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16), ke._WHITE = new ke(Be.from(e)), Za(ke._WHITE), Za(ke._WHITE.baseTexture);
|
|
6395
6388
|
}
|
|
6396
6389
|
return ke._WHITE;
|
|
@@ -6548,16 +6541,16 @@ class _0 {
|
|
|
6548
6541
|
}
|
|
6549
6542
|
push(e, r) {
|
|
6550
6543
|
const n = this.renderer, i = this.defaultFilterStack, a = this.statePool.pop() || new BF(), u = this.renderer.renderTexture;
|
|
6551
|
-
let l = r[0].resolution, f = r[0].multisample, p = r[0].padding,
|
|
6544
|
+
let l = r[0].resolution, f = r[0].multisample, p = r[0].padding, g = r[0].autoFit, c = r[0].legacy ?? !0;
|
|
6552
6545
|
for (let _ = 1; _ < r.length; _++) {
|
|
6553
6546
|
const y = r[_];
|
|
6554
|
-
l = Math.min(l, y.resolution), f = Math.min(f, y.multisample), p = this.useMaxPadding ? Math.max(p, y.padding) : p + y.padding,
|
|
6547
|
+
l = Math.min(l, y.resolution), f = Math.min(f, y.multisample), p = this.useMaxPadding ? Math.max(p, y.padding) : p + y.padding, g = g && y.autoFit, c = c || (y.legacy ?? !0);
|
|
6555
6548
|
}
|
|
6556
6549
|
i.length === 1 && (this.defaultFilterStack[0].renderTexture = u.current), i.push(a), a.resolution = l, a.multisample = f, a.legacy = c, a.target = e, a.sourceFrame.copyFrom(e.filterArea || e.getBounds(!0)), a.sourceFrame.pad(p);
|
|
6557
6550
|
const d = this.tempRect.copyFrom(u.sourceFrame);
|
|
6558
|
-
n.projection.transform && this.transformAABB(ql.copyFrom(n.projection.transform).invert(), d),
|
|
6559
|
-
const
|
|
6560
|
-
|
|
6551
|
+
n.projection.transform && this.transformAABB(ql.copyFrom(n.projection.transform).invert(), d), g ? (a.sourceFrame.fit(d), (a.sourceFrame.width <= 0 || a.sourceFrame.height <= 0) && (a.sourceFrame.width = 0, a.sourceFrame.height = 0)) : a.sourceFrame.intersects(d) || (a.sourceFrame.width = 0, a.sourceFrame.height = 0), this.roundFrame(a.sourceFrame, u.current ? u.current.resolution : n.resolution, u.sourceFrame, u.destinationFrame, n.projection.transform), a.renderTexture = this.getOptimalFilterTexture(a.sourceFrame.width, a.sourceFrame.height, l, f), a.filters = r, a.destinationFrame.width = a.renderTexture.width, a.destinationFrame.height = a.renderTexture.height;
|
|
6552
|
+
const m = this.tempRect;
|
|
6553
|
+
m.x = 0, m.y = 0, m.width = a.sourceFrame.width, m.height = a.sourceFrame.height, a.renderTexture.filterFrame = a.sourceFrame, a.bindingSourceFrame.copyFrom(u.sourceFrame), a.bindingDestinationFrame.copyFrom(u.destinationFrame), a.transform = n.projection.transform, n.projection.transform = null, u.bind(a.renderTexture, a.sourceFrame, m), n.framebuffer.clear(0, 0, 0, 0);
|
|
6561
6554
|
}
|
|
6562
6555
|
pop() {
|
|
6563
6556
|
const e = this.defaultFilterStack, r = e.pop(), n = r.filters;
|
|
@@ -6574,15 +6567,15 @@ class _0 {
|
|
|
6574
6567
|
if (this.renderer.framebuffer.blit(), n.length === 1)
|
|
6575
6568
|
n[0].apply(this, r.renderTexture, f.renderTexture, Nn.BLEND, r), this.returnFilterTexture(r.renderTexture);
|
|
6576
6569
|
else {
|
|
6577
|
-
let p = r.renderTexture,
|
|
6578
|
-
|
|
6570
|
+
let p = r.renderTexture, g = this.getOptimalFilterTexture(p.width, p.height, r.resolution);
|
|
6571
|
+
g.filterFrame = p.filterFrame;
|
|
6579
6572
|
let c = 0;
|
|
6580
6573
|
for (c = 0; c < n.length - 1; ++c) {
|
|
6581
|
-
c === 1 && r.multisample > 1 && (
|
|
6574
|
+
c === 1 && r.multisample > 1 && (g = this.getOptimalFilterTexture(p.width, p.height, r.resolution), g.filterFrame = p.filterFrame), n[c].apply(this, p, g, Nn.CLEAR, r);
|
|
6582
6575
|
const d = p;
|
|
6583
|
-
p =
|
|
6576
|
+
p = g, g = d;
|
|
6584
6577
|
}
|
|
6585
|
-
n[c].apply(this, p, f.renderTexture, Nn.BLEND, r), c > 1 && r.multisample > 1 && this.returnFilterTexture(r.renderTexture), this.returnFilterTexture(p), this.returnFilterTexture(
|
|
6578
|
+
n[c].apply(this, p, f.renderTexture, Nn.BLEND, r), c > 1 && r.multisample > 1 && this.returnFilterTexture(r.renderTexture), this.returnFilterTexture(p), this.returnFilterTexture(g);
|
|
6586
6579
|
}
|
|
6587
6580
|
r.clear(), this.statePool.push(r);
|
|
6588
6581
|
}
|
|
@@ -6634,8 +6627,8 @@ class _0 {
|
|
|
6634
6627
|
transformAABB(e, r) {
|
|
6635
6628
|
const n = Qa[0], i = Qa[1], a = Qa[2], u = Qa[3];
|
|
6636
6629
|
n.set(r.left, r.top), i.set(r.left, r.bottom), a.set(r.right, r.top), u.set(r.right, r.bottom), e.apply(n, n), e.apply(i, i), e.apply(a, a), e.apply(u, u);
|
|
6637
|
-
const l = Math.min(n.x, i.x, a.x, u.x), f = Math.min(n.y, i.y, a.y, u.y), p = Math.max(n.x, i.x, a.x, u.x),
|
|
6638
|
-
r.x = l, r.y = f, r.width = p - l, r.height =
|
|
6630
|
+
const l = Math.min(n.x, i.x, a.x, u.x), f = Math.min(n.y, i.y, a.y, u.y), p = Math.max(n.x, i.x, a.x, u.x), g = Math.max(n.y, i.y, a.y, u.y);
|
|
6631
|
+
r.x = l, r.y = f, r.width = p - l, r.height = g - f;
|
|
6639
6632
|
}
|
|
6640
6633
|
roundFrame(e, r, n, i, a) {
|
|
6641
6634
|
if (!(e.width <= 0 || e.height <= 0 || n.width <= 0 || n.height <= 0)) {
|
|
@@ -6668,7 +6661,7 @@ class y0 {
|
|
|
6668
6661
|
const e = this.gl = this.renderer.gl;
|
|
6669
6662
|
if (this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.current = this.unknownFramebuffer, this.viewport = new Ye(), this.hasMRT = !0, this.writeDepthTexture = !0, this.renderer.context.webGLVersion === 1) {
|
|
6670
6663
|
let r = this.renderer.context.extensions.drawBuffers, n = this.renderer.context.extensions.depthTexture;
|
|
6671
|
-
|
|
6664
|
+
Ie.PREFER_ENV === Kn.WEBGL_LEGACY && (r = null, n = null), r ? e.drawBuffers = (i) => r.drawBuffersWEBGL(i) : (this.hasMRT = !1, e.drawBuffers = () => {
|
|
6672
6665
|
}), n || (this.writeDepthTexture = !1);
|
|
6673
6666
|
} else
|
|
6674
6667
|
this.msaaSamples = e.getInternalformatParameter(e.RENDERBUFFER, e.RGBA8, e.SAMPLES);
|
|
@@ -6725,8 +6718,8 @@ class y0 {
|
|
|
6725
6718
|
n.drawBuffers || (u = Math.min(u, 1)), i.multisample > 1 && this.canMultisampleFramebuffer(e) ? i.msaaBuffer = i.msaaBuffer || n.createRenderbuffer() : i.msaaBuffer && (n.deleteRenderbuffer(i.msaaBuffer), i.msaaBuffer = null, i.blitFramebuffer && (i.blitFramebuffer.dispose(), i.blitFramebuffer = null));
|
|
6726
6719
|
const l = [];
|
|
6727
6720
|
for (let f = 0; f < u; f++) {
|
|
6728
|
-
const p = a[f],
|
|
6729
|
-
this.renderer.texture.bind(
|
|
6721
|
+
const p = a[f], g = p.parentTextureArray || p;
|
|
6722
|
+
this.renderer.texture.bind(g, 0), f === 0 && i.msaaBuffer ? (n.bindRenderbuffer(n.RENDERBUFFER, i.msaaBuffer), n.renderbufferStorageMultisample(n.RENDERBUFFER, i.multisample, g._glTextures[this.CONTEXT_UID].internalFormat, e.width, e.height), n.framebufferRenderbuffer(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.RENDERBUFFER, i.msaaBuffer)) : (n.framebufferTexture2D(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0 + f, p.target, g._glTextures[this.CONTEXT_UID].texture, r), l.push(n.COLOR_ATTACHMENT0 + f));
|
|
6730
6723
|
}
|
|
6731
6724
|
if (l.length > 1 && n.drawBuffers(l), e.depthTexture && this.writeDepthTexture) {
|
|
6732
6725
|
const p = e.depthTexture;
|
|
@@ -6759,10 +6752,10 @@ class y0 {
|
|
|
6759
6752
|
if (!e) {
|
|
6760
6753
|
if (!f.msaaBuffer)
|
|
6761
6754
|
return;
|
|
6762
|
-
const
|
|
6763
|
-
if (!
|
|
6755
|
+
const g = i.colorTextures[0];
|
|
6756
|
+
if (!g)
|
|
6764
6757
|
return;
|
|
6765
|
-
f.blitFramebuffer || (f.blitFramebuffer = new Oc(i.width, i.height), f.blitFramebuffer.addColorTexture(0,
|
|
6758
|
+
f.blitFramebuffer || (f.blitFramebuffer = new Oc(i.width, i.height), f.blitFramebuffer.addColorTexture(0, g)), e = f.blitFramebuffer, e.colorTextures[0] !== g && (e.colorTextures[0] = g, e.dirtyId++, e.dirtyFormat++), (e.width !== i.width || e.height !== i.height) && (e.width = i.width, e.height = i.height, e.dirtyId++, e.dirtySize++);
|
|
6766
6759
|
}
|
|
6767
6760
|
r || (r = $F, r.width = i.width, r.height = i.height), n || (n = r);
|
|
6768
6761
|
const p = r.width === n.width && r.height === n.height;
|
|
@@ -6815,7 +6808,7 @@ class x0 {
|
|
|
6815
6808
|
const e = this.gl = this.renderer.gl, r = this.renderer.context;
|
|
6816
6809
|
if (this.CONTEXT_UID = this.renderer.CONTEXT_UID, r.webGLVersion !== 2) {
|
|
6817
6810
|
let n = this.renderer.context.extensions.vertexArrayObject;
|
|
6818
|
-
|
|
6811
|
+
Ie.PREFER_ENV === Kn.WEBGL_LEGACY && (n = null), n ? (e.createVertexArray = () => n.createVertexArrayOES(), e.bindVertexArray = (i) => n.bindVertexArrayOES(i), e.deleteVertexArray = (i) => n.deleteVertexArrayOES(i)) : (this.hasVao = !1, e.createVertexArray = () => null, e.bindVertexArray = () => null, e.deleteVertexArray = () => null);
|
|
6819
6812
|
}
|
|
6820
6813
|
if (r.webGLVersion !== 2) {
|
|
6821
6814
|
const n = e.getExtension("ANGLE_instanced_arrays");
|
|
@@ -6857,24 +6850,24 @@ class x0 {
|
|
|
6857
6850
|
const i = this.gl, a = this.CONTEXT_UID, u = this.renderer.buffer, l = r.program;
|
|
6858
6851
|
l.glPrograms[a] || this.renderer.shader.generateProgram(r), this.checkCompatibility(e, l);
|
|
6859
6852
|
const f = this.getSignature(e, l), p = e.glVertexArrayObjects[this.CONTEXT_UID];
|
|
6860
|
-
let
|
|
6861
|
-
if (
|
|
6862
|
-
return p[l.id] =
|
|
6863
|
-
const c = e.buffers, d = e.attributes,
|
|
6853
|
+
let g = p[f];
|
|
6854
|
+
if (g)
|
|
6855
|
+
return p[l.id] = g, g;
|
|
6856
|
+
const c = e.buffers, d = e.attributes, m = {}, _ = {};
|
|
6864
6857
|
for (const y in c)
|
|
6865
|
-
|
|
6858
|
+
m[y] = 0, _[y] = 0;
|
|
6866
6859
|
for (const y in d)
|
|
6867
|
-
!d[y].size && l.attributeData[y] ? d[y].size = l.attributeData[y].size : d[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`),
|
|
6860
|
+
!d[y].size && l.attributeData[y] ? d[y].size = l.attributeData[y].size : d[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`), m[d[y].buffer] += d[y].size * Yl[d[y].type];
|
|
6868
6861
|
for (const y in d) {
|
|
6869
6862
|
const b = d[y], x = b.size;
|
|
6870
|
-
b.stride === void 0 && (
|
|
6863
|
+
b.stride === void 0 && (m[b.buffer] === x * Yl[b.type] ? b.stride = 0 : b.stride = m[b.buffer]), b.start === void 0 && (b.start = _[b.buffer], _[b.buffer] += x * Yl[b.type]);
|
|
6871
6864
|
}
|
|
6872
|
-
|
|
6865
|
+
g = i.createVertexArray(), i.bindVertexArray(g);
|
|
6873
6866
|
for (let y = 0; y < c.length; y++) {
|
|
6874
6867
|
const b = c[y];
|
|
6875
6868
|
u.bind(b), n && b._glBuffers[a].refCount++;
|
|
6876
6869
|
}
|
|
6877
|
-
return this.activateVao(e, l), p[l.id] =
|
|
6870
|
+
return this.activateVao(e, l), p[l.id] = g, p[f] = g, i.bindVertexArray(null), u.unbind(kr.ARRAY_BUFFER), g;
|
|
6878
6871
|
}
|
|
6879
6872
|
disposeGeometry(e, r) {
|
|
6880
6873
|
var l;
|
|
@@ -6908,13 +6901,13 @@ class x0 {
|
|
|
6908
6901
|
e.indexBuffer && a.bind(e.indexBuffer);
|
|
6909
6902
|
let f = null;
|
|
6910
6903
|
for (const p in l) {
|
|
6911
|
-
const
|
|
6904
|
+
const g = l[p], c = u[g.buffer], d = c._glBuffers[i];
|
|
6912
6905
|
if (r.attributeData[p]) {
|
|
6913
6906
|
f !== d && (a.bind(c), f = d);
|
|
6914
|
-
const
|
|
6915
|
-
if (n.enableVertexAttribArray(
|
|
6907
|
+
const m = r.attributeData[p].location;
|
|
6908
|
+
if (n.enableVertexAttribArray(m), n.vertexAttribPointer(m, g.size, g.type || n.FLOAT, g.normalized, g.stride, g.start), g.instance)
|
|
6916
6909
|
if (this.hasInstance)
|
|
6917
|
-
n.vertexAttribDivisor(
|
|
6910
|
+
n.vertexAttribDivisor(m, g.divisor);
|
|
6918
6911
|
else
|
|
6919
6912
|
throw new Error("geometry error, GPU Instancing is not supported on this device");
|
|
6920
6913
|
}
|
|
@@ -7115,8 +7108,8 @@ class b0 {
|
|
|
7115
7108
|
const a = this.renderer, u = a.renderTexture;
|
|
7116
7109
|
let l, f;
|
|
7117
7110
|
if (u.current) {
|
|
7118
|
-
const
|
|
7119
|
-
l = e.resolution ||
|
|
7111
|
+
const g = u.current;
|
|
7112
|
+
l = e.resolution || g.resolution, f = e.multisample ?? g.multisample;
|
|
7120
7113
|
} else
|
|
7121
7114
|
l = e.resolution || a.resolution, f = e.multisample ?? a.multisample;
|
|
7122
7115
|
i[0].resolution = l, i[0].multisample = f, i[0].maskSprite = r;
|
|
@@ -7164,7 +7157,7 @@ class T0 {
|
|
|
7164
7157
|
}
|
|
7165
7158
|
const Pg = new Dt(), Mg = [], so = class extends T0 {
|
|
7166
7159
|
constructor(t) {
|
|
7167
|
-
super(t), this.glConst =
|
|
7160
|
+
super(t), this.glConst = Ie.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST;
|
|
7168
7161
|
}
|
|
7169
7162
|
getStackLength() {
|
|
7170
7163
|
const t = this.maskStack[this.maskStack.length - 1];
|
|
@@ -7216,7 +7209,7 @@ w0.extension = {
|
|
|
7216
7209
|
We.add(w0);
|
|
7217
7210
|
class S0 extends T0 {
|
|
7218
7211
|
constructor(e) {
|
|
7219
|
-
super(e), this.glConst =
|
|
7212
|
+
super(e), this.glConst = Ie.ADAPTER.getWebGLRenderingContext().STENCIL_TEST;
|
|
7220
7213
|
}
|
|
7221
7214
|
getStackLength() {
|
|
7222
7215
|
const e = this.maskStack[this.maskStack.length - 1];
|
|
@@ -7361,8 +7354,8 @@ class I0 {
|
|
|
7361
7354
|
clear(e, r) {
|
|
7362
7355
|
const n = this.current ? this.current.baseTexture.clear : this.renderer.background.backgroundColor, i = e ? Mt.shared.setValue(e) : n, a = this.destinationFrame, u = this.current ? this.current.baseTexture : this.renderer._view.screen, l = a.width !== u.width || a.height !== u.height;
|
|
7363
7356
|
if (l) {
|
|
7364
|
-
let { x: f, y: p, width:
|
|
7365
|
-
f = Math.round(f), p = Math.round(p),
|
|
7357
|
+
let { x: f, y: p, width: g, height: c } = this.viewportFrame;
|
|
7358
|
+
f = Math.round(f), p = Math.round(p), g = Math.round(g), c = Math.round(c), this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST), this.renderer.gl.scissor(f, p, g, c);
|
|
7366
7359
|
}
|
|
7367
7360
|
this.renderer.framebuffer.clear(i.red, i.green, i.blue, i.alpha, r), l && this.renderer.scissor.pop();
|
|
7368
7361
|
}
|
|
@@ -7427,18 +7420,18 @@ function KF(t, e) {
|
|
|
7427
7420
|
const a = (f = e.extra) == null ? void 0 : f.transformFeedbackVaryings;
|
|
7428
7421
|
if (a && (typeof t.transformFeedbackVaryings != "function" ? console.warn("TransformFeedback is not supported but TransformFeedbackVaryings are given.") : t.transformFeedbackVaryings(i, a.names, a.bufferMode === "separate" ? t.SEPARATE_ATTRIBS : t.INTERLEAVED_ATTRIBS)), t.linkProgram(i), t.getProgramParameter(i, t.LINK_STATUS) || wF(t, i, r, n), e.attributeData = qF(i, t), e.uniformData = YF(i, t), !/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)) {
|
|
7429
7422
|
const p = Object.keys(e.attributeData);
|
|
7430
|
-
p.sort((
|
|
7431
|
-
for (let
|
|
7432
|
-
e.attributeData[p[
|
|
7423
|
+
p.sort((g, c) => g > c ? 1 : -1);
|
|
7424
|
+
for (let g = 0; g < p.length; g++)
|
|
7425
|
+
e.attributeData[p[g]].location = g, t.bindAttribLocation(i, g, p[g]);
|
|
7433
7426
|
t.linkProgram(i);
|
|
7434
7427
|
}
|
|
7435
7428
|
t.deleteShader(r), t.deleteShader(n);
|
|
7436
7429
|
const u = {};
|
|
7437
7430
|
for (const p in e.uniformData) {
|
|
7438
|
-
const
|
|
7431
|
+
const g = e.uniformData[p];
|
|
7439
7432
|
u[p] = {
|
|
7440
7433
|
location: t.getUniformLocation(i, p),
|
|
7441
|
-
value: u0(
|
|
7434
|
+
value: u0(g.type, g.size)
|
|
7442
7435
|
};
|
|
7443
7436
|
}
|
|
7444
7437
|
return new jF(i, u);
|
|
@@ -7551,17 +7544,17 @@ function tN(t, e) {
|
|
|
7551
7544
|
`];
|
|
7552
7545
|
for (let u = 0; u < n.length; u++) {
|
|
7553
7546
|
const l = n[u], f = t.uniforms[l.data.name], p = l.data.name;
|
|
7554
|
-
let
|
|
7547
|
+
let g = !1;
|
|
7555
7548
|
for (let c = 0; c < Oi.length; c++) {
|
|
7556
7549
|
const d = Oi[c];
|
|
7557
7550
|
if (d.codeUbo && d.test(l.data, f)) {
|
|
7558
|
-
a.push(`offset = ${l.offset / 4};`, Oi[c].codeUbo(l.data.name, f)),
|
|
7551
|
+
a.push(`offset = ${l.offset / 4};`, Oi[c].codeUbo(l.data.name, f)), g = !0;
|
|
7559
7552
|
break;
|
|
7560
7553
|
}
|
|
7561
7554
|
}
|
|
7562
|
-
if (!
|
|
7555
|
+
if (!g)
|
|
7563
7556
|
if (l.data.size > 1) {
|
|
7564
|
-
const c = c0(l.data.type), d = Math.max(R0[l.data.type] / 16, 1),
|
|
7557
|
+
const c = c0(l.data.type), d = Math.max(R0[l.data.type] / 16, 1), m = c / d, _ = (4 - m % 4) % 4;
|
|
7565
7558
|
a.push(`
|
|
7566
7559
|
cv = ud.${p}.value;
|
|
7567
7560
|
v = uv.${p};
|
|
@@ -7571,7 +7564,7 @@ function tN(t, e) {
|
|
|
7571
7564
|
|
|
7572
7565
|
for(var i=0; i < ${l.data.size * d}; i++)
|
|
7573
7566
|
{
|
|
7574
|
-
for(var j = 0; j < ${
|
|
7567
|
+
for(var j = 0; j < ${m}; j++)
|
|
7575
7568
|
{
|
|
7576
7569
|
data[offset++] = v[t++];
|
|
7577
7570
|
}
|
|
@@ -8143,7 +8136,7 @@ class Wo {
|
|
|
8143
8136
|
this.renderer = e;
|
|
8144
8137
|
}
|
|
8145
8138
|
init(e) {
|
|
8146
|
-
this.screen = new Ye(0, 0, e.width, e.height), this.element = e.view ||
|
|
8139
|
+
this.screen = new Ye(0, 0, e.width, e.height), this.element = e.view || Ie.ADAPTER.createCanvas(), this.resolution = e.resolution || Ie.RESOLUTION, this.autoDensity = !!e.autoDensity;
|
|
8147
8140
|
}
|
|
8148
8141
|
resizeView(e, r) {
|
|
8149
8142
|
this.element.width = Math.round(e * this.resolution), this.element.height = Math.round(r * this.resolution);
|
|
@@ -8158,7 +8151,7 @@ class Wo {
|
|
|
8158
8151
|
Wo.defaultOptions = {
|
|
8159
8152
|
width: 800,
|
|
8160
8153
|
height: 600,
|
|
8161
|
-
resolution:
|
|
8154
|
+
resolution: Ie.RESOLUTION,
|
|
8162
8155
|
autoDensity: !1
|
|
8163
8156
|
};
|
|
8164
8157
|
Wo.extension = {
|
|
@@ -8169,15 +8162,15 @@ Wo.extension = {
|
|
|
8169
8162
|
name: "_view"
|
|
8170
8163
|
};
|
|
8171
8164
|
We.add(Wo);
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8165
|
+
Ie.PREFER_ENV = Kn.WEBGL2;
|
|
8166
|
+
Ie.STRICT_TEXTURE_CACHE = !1;
|
|
8167
|
+
Ie.RENDER_OPTIONS = {
|
|
8175
8168
|
...zo.defaultOptions,
|
|
8176
8169
|
...Ho.defaultOptions,
|
|
8177
8170
|
...Wo.defaultOptions,
|
|
8178
8171
|
...Xo.defaultOptions
|
|
8179
8172
|
};
|
|
8180
|
-
Object.defineProperties(
|
|
8173
|
+
Object.defineProperties(Ie, {
|
|
8181
8174
|
WRAP_MODE: {
|
|
8182
8175
|
get() {
|
|
8183
8176
|
return Be.defaultOptions.wrapMode;
|
|
@@ -8436,7 +8429,7 @@ const Qt = class {
|
|
|
8436
8429
|
};
|
|
8437
8430
|
let Tr = Qt;
|
|
8438
8431
|
Tr.targetFPMS = 0.06;
|
|
8439
|
-
Object.defineProperties(
|
|
8432
|
+
Object.defineProperties(Ie, {
|
|
8440
8433
|
TARGET_FPMS: {
|
|
8441
8434
|
get() {
|
|
8442
8435
|
return Tr.targetFPMS;
|
|
@@ -8592,7 +8585,7 @@ D0.extension = {
|
|
|
8592
8585
|
We.add(D0);
|
|
8593
8586
|
const Nc = class extends cN {
|
|
8594
8587
|
constructor(t) {
|
|
8595
|
-
super(), this.type = Om.WEBGL, t = Object.assign({},
|
|
8588
|
+
super(), this.type = Om.WEBGL, t = Object.assign({}, Ie.RENDER_OPTIONS, t), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new Er({
|
|
8596
8589
|
projectionMatrix: new Dt()
|
|
8597
8590
|
}, !0);
|
|
8598
8591
|
const e = {
|
|
@@ -8862,7 +8855,7 @@ class Ci extends gn {
|
|
|
8862
8855
|
return;
|
|
8863
8856
|
}
|
|
8864
8857
|
try {
|
|
8865
|
-
const n = await
|
|
8858
|
+
const n = await Ie.ADAPTER.fetch(this.url, {
|
|
8866
8859
|
mode: this.crossOrigin ? "cors" : "no-cors"
|
|
8867
8860
|
});
|
|
8868
8861
|
if (this.destroyed)
|
|
@@ -8893,12 +8886,12 @@ class Ci extends gn {
|
|
|
8893
8886
|
return !!globalThis.createImageBitmap && typeof ImageBitmap < "u" && (typeof e == "string" || e instanceof ImageBitmap);
|
|
8894
8887
|
}
|
|
8895
8888
|
static get EMPTY() {
|
|
8896
|
-
return Ci._EMPTY = Ci._EMPTY ??
|
|
8889
|
+
return Ci._EMPTY = Ci._EMPTY ?? Ie.ADAPTER.createCanvas(0, 0), Ci._EMPTY;
|
|
8897
8890
|
}
|
|
8898
8891
|
}
|
|
8899
8892
|
const oo = class extends gn {
|
|
8900
8893
|
constructor(t, e) {
|
|
8901
|
-
e = e || {}, super(
|
|
8894
|
+
e = e || {}, super(Ie.ADAPTER.createCanvas()), this._width = 0, this._height = 0, this.svg = t, this.scale = e.scale || 1, this._overrideWidth = e.width, this._overrideHeight = e.height, this._resolve = null, this._crossorigin = e.crossorigin, this._load = null, e.autoLoad !== !1 && this.load();
|
|
8902
8895
|
}
|
|
8903
8896
|
load() {
|
|
8904
8897
|
return this._load ? this._load : (this._load = new Promise((t) => {
|
|
@@ -9153,10 +9146,10 @@ let ks = class extends Ve {
|
|
|
9153
9146
|
l = this._kernels[0] + 0.5, this.uniforms.uOffset[0] = l * a, this.uniforms.uOffset[1] = l * u, e.applyFilter(this, r, n, i);
|
|
9154
9147
|
else {
|
|
9155
9148
|
const f = e.getFilterTexture();
|
|
9156
|
-
let p = r,
|
|
9149
|
+
let p = r, g = f, c;
|
|
9157
9150
|
const d = this._quality - 1;
|
|
9158
|
-
for (let
|
|
9159
|
-
l = this._kernels[
|
|
9151
|
+
for (let m = 0; m < d; m++)
|
|
9152
|
+
l = this._kernels[m] + 0.5, this.uniforms.uOffset[0] = l * a, this.uniforms.uOffset[1] = l * u, e.applyFilter(this, p, g, 1), c = p, p = g, g = c;
|
|
9160
9153
|
l = this._kernels[d] + 0.5, this.uniforms.uOffset[0] = l * a, this.uniforms.uOffset[1] = l * u, e.applyFilter(this, p, n, i), e.returnFilterTexture(f);
|
|
9161
9154
|
}
|
|
9162
9155
|
}
|
|
@@ -9262,7 +9255,7 @@ void main() {
|
|
|
9262
9255
|
`;
|
|
9263
9256
|
const G0 = class extends Ve {
|
|
9264
9257
|
constructor(e) {
|
|
9265
|
-
super($0, SN), this.bloomScale = 1, this.brightness = 1, this._resolution =
|
|
9258
|
+
super($0, SN), this.bloomScale = 1, this.brightness = 1, this._resolution = Ie.FILTER_RESOLUTION, typeof e == "number" && (e = { threshold: e });
|
|
9266
9259
|
const r = Object.assign(G0.defaults, e);
|
|
9267
9260
|
this.bloomScale = r.bloomScale, this.brightness = r.brightness;
|
|
9268
9261
|
const { kernels: n, blur: i, quality: a, pixelSize: u, resolution: l } = r;
|
|
@@ -9312,7 +9305,7 @@ const G0 = class extends Ve {
|
|
|
9312
9305
|
}
|
|
9313
9306
|
};
|
|
9314
9307
|
let AN = G0;
|
|
9315
|
-
AN.defaults = { threshold: 0.5, bloomScale: 1, brightness: 1, kernels: null, blur: 8, quality: 4, pixelSize: 1, resolution:
|
|
9308
|
+
AN.defaults = { threshold: 0.5, bloomScale: 1, brightness: 1, kernels: null, blur: 8, quality: 4, pixelSize: 1, resolution: Ie.FILTER_RESOLUTION };
|
|
9316
9309
|
var EN = `attribute vec2 aVertexPosition;
|
|
9317
9310
|
attribute vec2 aTextureCoord;
|
|
9318
9311
|
|
|
@@ -9632,12 +9625,12 @@ Zn.parse = function() {
|
|
|
9632
9625
|
}
|
|
9633
9626
|
}
|
|
9634
9627
|
function f() {
|
|
9635
|
-
return p() ||
|
|
9628
|
+
return p() || g();
|
|
9636
9629
|
}
|
|
9637
9630
|
function p() {
|
|
9638
9631
|
return G("directional", t.sideOrCorner, 1);
|
|
9639
9632
|
}
|
|
9640
|
-
function
|
|
9633
|
+
function g() {
|
|
9641
9634
|
return G("angular", t.angleValue, 1);
|
|
9642
9635
|
}
|
|
9643
9636
|
function c() {
|
|
@@ -9645,7 +9638,7 @@ Zn.parse = function() {
|
|
|
9645
9638
|
return Q && (H = [], H.push(Q), ge = e, ie(t.comma) && (Q = d(), Q ? H.push(Q) : e = ge)), H;
|
|
9646
9639
|
}
|
|
9647
9640
|
function d() {
|
|
9648
|
-
var H =
|
|
9641
|
+
var H = m() || _();
|
|
9649
9642
|
if (H)
|
|
9650
9643
|
H.at = b();
|
|
9651
9644
|
else {
|
|
@@ -9661,7 +9654,7 @@ Zn.parse = function() {
|
|
|
9661
9654
|
}
|
|
9662
9655
|
return H;
|
|
9663
9656
|
}
|
|
9664
|
-
function
|
|
9657
|
+
function m() {
|
|
9665
9658
|
var H = G("shape", /^(circle)/i, 0);
|
|
9666
9659
|
return H && (H.style = X() || y()), H;
|
|
9667
9660
|
}
|
|
@@ -9761,10 +9754,10 @@ function ON(t) {
|
|
|
9761
9754
|
var f = e[1], p = f === "rgb", a = f.replace(/a$/, "");
|
|
9762
9755
|
i = a;
|
|
9763
9756
|
var u = a === "cmyk" ? 4 : a === "gray" ? 1 : 3;
|
|
9764
|
-
r = e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(d,
|
|
9757
|
+
r = e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(d, m) {
|
|
9765
9758
|
if (/%$/.test(d))
|
|
9766
|
-
return
|
|
9767
|
-
if (a[
|
|
9759
|
+
return m === u ? parseFloat(d) / 100 : a === "rgb" ? parseFloat(d) * 255 / 100 : parseFloat(d);
|
|
9760
|
+
if (a[m] === "h") {
|
|
9768
9761
|
if (/deg$/.test(d))
|
|
9769
9762
|
return parseFloat(d);
|
|
9770
9763
|
if (Fg[d] !== void 0)
|
|
@@ -9773,8 +9766,8 @@ function ON(t) {
|
|
|
9773
9766
|
return parseFloat(d);
|
|
9774
9767
|
}), f === a && r.push(1), n = p || r[u] === void 0 ? 1 : r[u], r = r.slice(0, u);
|
|
9775
9768
|
} else
|
|
9776
|
-
t.length > 10 && /[0-9](?:\s|\/)/.test(t) && (r = t.match(/([0-9]+)/g).map(function(
|
|
9777
|
-
return parseFloat(
|
|
9769
|
+
t.length > 10 && /[0-9](?:\s|\/)/.test(t) && (r = t.match(/([0-9]+)/g).map(function(g) {
|
|
9770
|
+
return parseFloat(g);
|
|
9778
9771
|
}), i = t.match(/([a-z])/ig).join("").toLowerCase());
|
|
9779
9772
|
else
|
|
9780
9773
|
isNaN(t) ? Array.isArray(t) || t.length ? (r = [t[0], t[1], t[2]], i = "rgb", n = t.length === 4 ? t[3] : 1) : t instanceof Object && (t.r != null || t.red != null || t.R != null ? (i = "rgb", r = [t.r || t.red || t.R || 0, t.g || t.green || t.G || 0, t.b || t.blue || t.B || 0]) : (i = "hsl", r = [t.h || t.hue || t.H || 0, t.s || t.saturation || t.S || 0, t.l || t.lightness || t.L || t.b || t.brightness]), n = t.a || t.alpha || t.opacity || 1, t.opacity != null && (n /= 100)) : (i = "rgb", r = [t >>> 16, (t & 65280) >>> 8, t & 255]);
|
|
@@ -10215,11 +10208,11 @@ void main(void){
|
|
|
10215
10208
|
};
|
|
10216
10209
|
const Dc = class extends Ve {
|
|
10217
10210
|
constructor(e) {
|
|
10218
|
-
super(), this.angle = 45, this._distance = 5, this._resolution =
|
|
10211
|
+
super(), this.angle = 45, this._distance = 5, this._resolution = Ie.FILTER_RESOLUTION;
|
|
10219
10212
|
const r = e ? Ug(Ug({}, Dc.defaults), e) : Dc.defaults, { kernels: n, blur: i, quality: a, pixelSize: u, resolution: l } = r;
|
|
10220
10213
|
this._offset = new Gn(this._updatePadding, this), this._tintFilter = new Ve(i3, s3), this._tintFilter.uniforms.color = new Float32Array(4), this._tintFilter.uniforms.shift = this._offset, this._tintFilter.resolution = l, this._blurFilter = n ? new ks(n) : new ks(i, a), this.pixelSize = u, this.resolution = l;
|
|
10221
|
-
const { shadowOnly: f, rotation: p, distance:
|
|
10222
|
-
this.shadowOnly = f, p !== void 0 &&
|
|
10214
|
+
const { shadowOnly: f, rotation: p, distance: g, offset: c, alpha: d, color: m } = r;
|
|
10215
|
+
this.shadowOnly = f, p !== void 0 && g !== void 0 ? (this.rotation = p, this.distance = g) : this.offset = c, this.alpha = d, this.color = m;
|
|
10223
10216
|
}
|
|
10224
10217
|
apply(e, r, n, i) {
|
|
10225
10218
|
const a = e.getFilterTexture();
|
|
@@ -10294,7 +10287,7 @@ const Dc = class extends Ve {
|
|
|
10294
10287
|
}
|
|
10295
10288
|
};
|
|
10296
10289
|
let l3 = Dc;
|
|
10297
|
-
l3.defaults = { offset: { x: 4, y: 4 }, color: 0, alpha: 0.5, shadowOnly: !1, kernels: null, blur: 2, quality: 3, pixelSize: 1, resolution:
|
|
10290
|
+
l3.defaults = { offset: { x: 4, y: 4 }, color: 0, alpha: 0.5, shadowOnly: !1, kernels: null, blur: 2, quality: 3, pixelSize: 1, resolution: Ie.FILTER_RESOLUTION };
|
|
10298
10291
|
var c3 = `attribute vec2 aVertexPosition;
|
|
10299
10292
|
attribute vec2 aTextureCoord;
|
|
10300
10293
|
|
|
@@ -11794,10 +11787,10 @@ const Qn = (t) => {
|
|
|
11794
11787
|
gamma: l = 1,
|
|
11795
11788
|
green: f = 1,
|
|
11796
11789
|
blurRadius: p = 0,
|
|
11797
|
-
temperature:
|
|
11790
|
+
temperature: g = 0,
|
|
11798
11791
|
hue: c = 0,
|
|
11799
11792
|
sharpness: d = 0,
|
|
11800
|
-
vignette:
|
|
11793
|
+
vignette: m = 0,
|
|
11801
11794
|
noise: _ = 0
|
|
11802
11795
|
// outline = 0,
|
|
11803
11796
|
// outlineColor = 0x000000,
|
|
@@ -11818,7 +11811,7 @@ const Qn = (t) => {
|
|
|
11818
11811
|
}
|
|
11819
11812
|
`
|
|
11820
11813
|
);
|
|
11821
|
-
y.uniforms.temperature =
|
|
11814
|
+
y.uniforms.temperature = g;
|
|
11822
11815
|
const b = new e3([
|
|
11823
11816
|
0,
|
|
11824
11817
|
-d,
|
|
@@ -11832,7 +11825,7 @@ const Qn = (t) => {
|
|
|
11832
11825
|
]), x = new er.filters.ColorMatrixFilter();
|
|
11833
11826
|
x.hue(c, !1);
|
|
11834
11827
|
const E = new ks(p, 1, !0), w = new Y0({
|
|
11835
|
-
vignetting:
|
|
11828
|
+
vignetting: m
|
|
11836
11829
|
}), I = new er.filters.NoiseFilter(_);
|
|
11837
11830
|
return {
|
|
11838
11831
|
adjustmentFilter: new _N({
|
|
@@ -11913,10 +11906,10 @@ const Qn = (t) => {
|
|
|
11913
11906
|
x: l,
|
|
11914
11907
|
y: f,
|
|
11915
11908
|
width: p,
|
|
11916
|
-
height:
|
|
11909
|
+
height: g,
|
|
11917
11910
|
anchor: c,
|
|
11918
11911
|
colorCorrection: d = {},
|
|
11919
|
-
effect:
|
|
11912
|
+
effect: m
|
|
11920
11913
|
},
|
|
11921
11914
|
pointerdown: _
|
|
11922
11915
|
} = t, {
|
|
@@ -11936,12 +11929,12 @@ const Qn = (t) => {
|
|
|
11936
11929
|
} = Qn(d), { nightVisionFilter: D } = W3();
|
|
11937
11930
|
return te.useEffect(() => (console.log("PixiImageSprite mounting"), () => {
|
|
11938
11931
|
console.log("PixiImageSprite unmounting");
|
|
11939
|
-
}), []), console.log("imageRef", r.current), /* @__PURE__ */
|
|
11932
|
+
}), []), console.log("imageRef", r.current), /* @__PURE__ */ Ae.jsx(vn, { ...t, ref: e, children: /* @__PURE__ */ Ae.jsx(wt, { ref: n, children: /* @__PURE__ */ Ae.jsx(
|
|
11940
11933
|
Bs,
|
|
11941
11934
|
{
|
|
11942
11935
|
image: i,
|
|
11943
11936
|
width: p,
|
|
11944
|
-
height:
|
|
11937
|
+
height: g,
|
|
11945
11938
|
anchor: c,
|
|
11946
11939
|
ref: r,
|
|
11947
11940
|
alpha: a ? 1 : 0,
|
|
@@ -11956,7 +11949,7 @@ const Qn = (t) => {
|
|
|
11956
11949
|
// conditionally add blur filter
|
|
11957
11950
|
...y > 0 ? [O] : [],
|
|
11958
11951
|
// conditionally add night vision filter
|
|
11959
|
-
...
|
|
11952
|
+
...m === Un.NightVision ? [D] : [],
|
|
11960
11953
|
// conditionally add vignette filter
|
|
11961
11954
|
...b > 0 ? [N] : [],
|
|
11962
11955
|
// conditionally add noise filter
|
|
@@ -11996,21 +11989,21 @@ const Eo = {
|
|
|
11996
11989
|
e.length = 8, e[0] = e[6] = r + i, e[1] = e[3] = n + a, e[2] = e[4] = r - i, e[5] = e[7] = n - a;
|
|
11997
11990
|
return;
|
|
11998
11991
|
}
|
|
11999
|
-
let
|
|
11992
|
+
let g = 0, c = f * 4 + (i ? 2 : 0) + 2, d = c, m = p;
|
|
12000
11993
|
{
|
|
12001
11994
|
const _ = i + u, y = a, b = r + _, x = r - _, E = n + y;
|
|
12002
|
-
if (e[
|
|
11995
|
+
if (e[g++] = b, e[g++] = E, e[--c] = E, e[--c] = x, a) {
|
|
12003
11996
|
const w = n - y;
|
|
12004
|
-
e[d++] = x, e[d++] = w, e[--
|
|
11997
|
+
e[d++] = x, e[d++] = w, e[--m] = w, e[--m] = b;
|
|
12005
11998
|
}
|
|
12006
11999
|
}
|
|
12007
12000
|
for (let _ = 1; _ < f; _++) {
|
|
12008
12001
|
const y = Math.PI / 2 * (_ / f), b = i + Math.cos(y) * u, x = a + Math.sin(y) * l, E = r + b, w = r - b, I = n + x, O = n - x;
|
|
12009
|
-
e[
|
|
12002
|
+
e[g++] = E, e[g++] = I, e[--c] = I, e[--c] = w, e[d++] = w, e[d++] = O, e[--m] = O, e[--m] = E;
|
|
12010
12003
|
}
|
|
12011
12004
|
{
|
|
12012
12005
|
const _ = i, y = a + l, b = r + _, x = r - _, E = n + y, w = n - y;
|
|
12013
|
-
e[
|
|
12006
|
+
e[g++] = b, e[g++] = E, e[--m] = w, e[--m] = b, i && (e[g++] = x, e[g++] = E, e[--m] = w, e[--m] = x);
|
|
12014
12007
|
}
|
|
12015
12008
|
},
|
|
12016
12009
|
triangulate(t, e) {
|
|
@@ -12021,16 +12014,16 @@ const Eo = {
|
|
|
12021
12014
|
const u = a;
|
|
12022
12015
|
let l, f;
|
|
12023
12016
|
if (t.type !== Ct.RREC) {
|
|
12024
|
-
const
|
|
12025
|
-
l =
|
|
12017
|
+
const g = t.shape;
|
|
12018
|
+
l = g.x, f = g.y;
|
|
12026
12019
|
} else {
|
|
12027
|
-
const
|
|
12028
|
-
l =
|
|
12020
|
+
const g = t.shape;
|
|
12021
|
+
l = g.x + g.width / 2, f = g.y + g.height / 2;
|
|
12029
12022
|
}
|
|
12030
12023
|
const p = t.matrix;
|
|
12031
12024
|
n.push(t.matrix ? p.a * l + p.c * f + p.tx : l, t.matrix ? p.b * l + p.d * f + p.ty : f), a++, n.push(r[0], r[1]);
|
|
12032
|
-
for (let
|
|
12033
|
-
n.push(r[
|
|
12025
|
+
for (let g = 2; g < r.length; g += 2)
|
|
12026
|
+
n.push(r[g], r[g + 1]), i.push(a++, u, a);
|
|
12034
12027
|
i.push(u + 1, u, a);
|
|
12035
12028
|
}
|
|
12036
12029
|
};
|
|
@@ -12062,8 +12055,8 @@ const rv = {
|
|
|
12062
12055
|
Hg(r, !1);
|
|
12063
12056
|
const u = [];
|
|
12064
12057
|
for (let p = 0; p < n.length; p++) {
|
|
12065
|
-
const
|
|
12066
|
-
Hg(
|
|
12058
|
+
const g = n[p];
|
|
12059
|
+
Hg(g.points, !0), u.push(r.length / 2), r = r.concat(g.points);
|
|
12067
12060
|
}
|
|
12068
12061
|
const l = MP(r, u, 2);
|
|
12069
12062
|
if (!l)
|
|
@@ -12111,23 +12104,23 @@ const Bi = {
|
|
|
12111
12104
|
};
|
|
12112
12105
|
class zg {
|
|
12113
12106
|
static curveTo(e, r, n, i, a, u) {
|
|
12114
|
-
const l = u[u.length - 2], p = u[u.length - 1] - r,
|
|
12115
|
-
if (
|
|
12107
|
+
const l = u[u.length - 2], p = u[u.length - 1] - r, g = l - e, c = i - r, d = n - e, m = Math.abs(p * d - g * c);
|
|
12108
|
+
if (m < 1e-8 || a === 0)
|
|
12116
12109
|
return (u[u.length - 2] !== e || u[u.length - 1] !== r) && u.push(e, r), null;
|
|
12117
|
-
const _ = p * p +
|
|
12110
|
+
const _ = p * p + g * g, y = c * c + d * d, b = p * c + g * d, x = a * Math.sqrt(_) / m, E = a * Math.sqrt(y) / m, w = x * b / _, I = E * b / y, O = x * d + E * g, F = x * c + E * p, N = g * (E + w), L = p * (E + w), D = d * (x + I), V = c * (x + I), Y = Math.atan2(L - F, N - O), se = Math.atan2(V - F, D - O);
|
|
12118
12111
|
return {
|
|
12119
12112
|
cx: O + e,
|
|
12120
12113
|
cy: F + r,
|
|
12121
12114
|
radius: a,
|
|
12122
12115
|
startAngle: Y,
|
|
12123
12116
|
endAngle: se,
|
|
12124
|
-
anticlockwise:
|
|
12117
|
+
anticlockwise: g * c > d * p
|
|
12125
12118
|
};
|
|
12126
12119
|
}
|
|
12127
12120
|
static arc(e, r, n, i, a, u, l, f, p) {
|
|
12128
|
-
const
|
|
12121
|
+
const g = l - u, c = Bi._segmentsCount(Math.abs(g) * a, Math.ceil(Math.abs(g) / So) * 40), d = g / (c * 2), m = d * 2, _ = Math.cos(d), y = Math.sin(d), b = c - 1, x = b % 1 / b;
|
|
12129
12122
|
for (let E = 0; E <= b; ++E) {
|
|
12130
|
-
const w = E + x * E, I = d + u +
|
|
12123
|
+
const w = E + x * E, I = d + u + m * w, O = Math.cos(I), F = -Math.sin(I);
|
|
12131
12124
|
p.push((_ * O + y * F) * a + n, (_ * -F + y * O) * a + i);
|
|
12132
12125
|
}
|
|
12133
12126
|
}
|
|
@@ -12148,34 +12141,34 @@ class K3 {
|
|
|
12148
12141
|
}
|
|
12149
12142
|
class mh {
|
|
12150
12143
|
static curveLength(e, r, n, i, a, u, l, f) {
|
|
12151
|
-
let
|
|
12144
|
+
let g = 0, c = 0, d = 0, m = 0, _ = 0, y = 0, b = 0, x = 0, E = 0, w = 0, I = 0, O = e, F = r;
|
|
12152
12145
|
for (let N = 1; N <= 10; ++N)
|
|
12153
|
-
c = N / 10, d = c * c,
|
|
12154
|
-
return
|
|
12146
|
+
c = N / 10, d = c * c, m = d * c, _ = 1 - c, y = _ * _, b = y * _, x = b * e + 3 * y * c * n + 3 * _ * d * a + m * l, E = b * r + 3 * y * c * i + 3 * _ * d * u + m * f, w = O - x, I = F - E, O = x, F = E, g += Math.sqrt(w * w + I * I);
|
|
12147
|
+
return g;
|
|
12155
12148
|
}
|
|
12156
12149
|
static curveTo(e, r, n, i, a, u, l) {
|
|
12157
12150
|
const f = l[l.length - 2], p = l[l.length - 1];
|
|
12158
12151
|
l.length -= 2;
|
|
12159
|
-
const
|
|
12160
|
-
let c = 0, d = 0,
|
|
12152
|
+
const g = Bi._segmentsCount(mh.curveLength(f, p, e, r, n, i, a, u));
|
|
12153
|
+
let c = 0, d = 0, m = 0, _ = 0, y = 0;
|
|
12161
12154
|
l.push(f, p);
|
|
12162
|
-
for (let b = 1, x = 0; b <=
|
|
12163
|
-
x = b /
|
|
12155
|
+
for (let b = 1, x = 0; b <= g; ++b)
|
|
12156
|
+
x = b / g, c = 1 - x, d = c * c, m = d * c, _ = x * x, y = _ * x, l.push(m * f + 3 * d * x * e + 3 * c * _ * n + y * a, m * p + 3 * d * x * r + 3 * c * _ * i + y * u);
|
|
12164
12157
|
}
|
|
12165
12158
|
}
|
|
12166
12159
|
function Vg(t, e, r, n, i, a, u, l) {
|
|
12167
|
-
const f = t - r * i, p = e - n * i,
|
|
12168
|
-
let d,
|
|
12169
|
-
u ? (d = n,
|
|
12170
|
-
const _ = f + d, y = p +
|
|
12160
|
+
const f = t - r * i, p = e - n * i, g = t + r * a, c = e + n * a;
|
|
12161
|
+
let d, m;
|
|
12162
|
+
u ? (d = n, m = -r) : (d = -n, m = r);
|
|
12163
|
+
const _ = f + d, y = p + m, b = g + d, x = c + m;
|
|
12171
12164
|
return l.push(_, y, b, x), 2;
|
|
12172
12165
|
}
|
|
12173
12166
|
function On(t, e, r, n, i, a, u, l) {
|
|
12174
12167
|
const f = r - t, p = n - e;
|
|
12175
|
-
let
|
|
12176
|
-
l &&
|
|
12177
|
-
let d =
|
|
12178
|
-
const
|
|
12168
|
+
let g = Math.atan2(f, p), c = Math.atan2(i - t, a - e);
|
|
12169
|
+
l && g < c ? g += Math.PI * 2 : !l && g > c && (c += Math.PI * 2);
|
|
12170
|
+
let d = g;
|
|
12171
|
+
const m = c - g, _ = Math.abs(m), y = Math.sqrt(f * f + p * p), b = (15 * _ * Math.sqrt(y) / Math.PI >> 0) + 1, x = m / b;
|
|
12179
12172
|
if (d += x, l) {
|
|
12180
12173
|
u.push(t, e, r, n);
|
|
12181
12174
|
for (let E = 1, w = d; E < b; E++, w += x)
|
|
@@ -12201,55 +12194,55 @@ function Z3(t, e) {
|
|
|
12201
12194
|
const H = (u.x + l.x) * 0.5, Q = (l.y + u.y) * 0.5;
|
|
12202
12195
|
n.unshift(H, Q), n.push(H, Q);
|
|
12203
12196
|
}
|
|
12204
|
-
const
|
|
12197
|
+
const g = e.points, c = n.length / 2;
|
|
12205
12198
|
let d = n.length;
|
|
12206
|
-
const
|
|
12199
|
+
const m = g.length / 2, _ = a.width / 2, y = _ * _, b = a.miterLimit * a.miterLimit;
|
|
12207
12200
|
let x = n[0], E = n[1], w = n[2], I = n[3], O = 0, F = 0, N = -(E - I), L = x - w, D = 0, V = 0, Y = Math.sqrt(N * N + L * L);
|
|
12208
12201
|
N /= Y, L /= Y, N *= _, L *= _;
|
|
12209
12202
|
const se = a.alignment, X = (1 - se) * 2, G = se * 2;
|
|
12210
|
-
f || (a.cap === Hn.ROUND ? d += On(x - N * (X - G) * 0.5, E - L * (X - G) * 0.5, x - N * X, E - L * X, x + N * G, E + L * G,
|
|
12203
|
+
f || (a.cap === Hn.ROUND ? d += On(x - N * (X - G) * 0.5, E - L * (X - G) * 0.5, x - N * X, E - L * X, x + N * G, E + L * G, g, !0) + 2 : a.cap === Hn.SQUARE && (d += Vg(x, E, N, L, X, G, !0, g))), g.push(x - N * X, E - L * X, x + N * G, E + L * G);
|
|
12211
12204
|
for (let H = 1; H < c - 1; ++H) {
|
|
12212
12205
|
x = n[(H - 1) * 2], E = n[(H - 1) * 2 + 1], w = n[H * 2], I = n[H * 2 + 1], O = n[(H + 1) * 2], F = n[(H + 1) * 2 + 1], N = -(E - I), L = x - w, Y = Math.sqrt(N * N + L * L), N /= Y, L /= Y, N *= _, L *= _, D = -(I - F), V = w - O, Y = Math.sqrt(D * D + V * V), D /= Y, V /= Y, D *= _, V *= _;
|
|
12213
12206
|
const Q = w - x, ge = E - I, W = w - O, j = F - I, le = Q * W + ge * j, he = ge * W - j * Q, me = he < 0;
|
|
12214
12207
|
if (Math.abs(he) < 1e-3 * Math.abs(le)) {
|
|
12215
|
-
|
|
12208
|
+
g.push(w - N * X, I - L * X, w + N * G, I + L * G), le >= 0 && (a.join === yr.ROUND ? d += On(w, I, w - N * X, I - L * X, w - D * X, I - V * X, g, !1) + 4 : d += 2, g.push(w - D * G, I - V * G, w + D * X, I + V * X));
|
|
12216
12209
|
continue;
|
|
12217
12210
|
}
|
|
12218
|
-
const fe = (-N + x) * (-L + I) - (-N + w) * (-L + E),
|
|
12211
|
+
const fe = (-N + x) * (-L + I) - (-N + w) * (-L + E), Re = (-D + O) * (-V + I) - (-D + w) * (-V + F), Ue = (Q * Re - W * fe) / he, He = (j * fe - ge * Re) / he, je = (Ue - w) * (Ue - w) + (He - I) * (He - I), be = w + (Ue - w) * X, Ee = I + (He - I) * X, $e = w - (Ue - w) * G, Ke = I - (He - I) * G, Se = Math.min(Q * Q + ge * ge, W * W + j * j), _e = me ? X : G, rt = Se + _e * _e * y, ce = je <= rt;
|
|
12219
12212
|
let Oe = a.join;
|
|
12220
12213
|
if (Oe === yr.MITER && je / y > b && (Oe = yr.BEVEL), ce)
|
|
12221
12214
|
switch (Oe) {
|
|
12222
12215
|
case yr.MITER: {
|
|
12223
|
-
|
|
12216
|
+
g.push(be, Ee, $e, Ke);
|
|
12224
12217
|
break;
|
|
12225
12218
|
}
|
|
12226
12219
|
case yr.BEVEL: {
|
|
12227
|
-
me ?
|
|
12220
|
+
me ? g.push(be, Ee, w + N * G, I + L * G, be, Ee, w + D * G, I + V * G) : g.push(w - N * X, I - L * X, $e, Ke, w - D * X, I - V * X, $e, Ke), d += 2;
|
|
12228
12221
|
break;
|
|
12229
12222
|
}
|
|
12230
12223
|
case yr.ROUND: {
|
|
12231
|
-
me ? (
|
|
12224
|
+
me ? (g.push(be, Ee, w + N * G, I + L * G), d += On(w, I, w + N * G, I + L * G, w + D * G, I + V * G, g, !0) + 4, g.push(be, Ee, w + D * G, I + V * G)) : (g.push(w - N * X, I - L * X, $e, Ke), d += On(w, I, w - N * X, I - L * X, w - D * X, I - V * X, g, !1) + 4, g.push(w - D * X, I - V * X, $e, Ke));
|
|
12232
12225
|
break;
|
|
12233
12226
|
}
|
|
12234
12227
|
}
|
|
12235
12228
|
else {
|
|
12236
|
-
switch (
|
|
12229
|
+
switch (g.push(w - N * X, I - L * X, w + N * G, I + L * G), Oe) {
|
|
12237
12230
|
case yr.MITER: {
|
|
12238
|
-
me ?
|
|
12231
|
+
me ? g.push($e, Ke, $e, Ke) : g.push(be, Ee, be, Ee), d += 2;
|
|
12239
12232
|
break;
|
|
12240
12233
|
}
|
|
12241
12234
|
case yr.ROUND: {
|
|
12242
|
-
me ? d += On(w, I, w + N * G, I + L * G, w + D * G, I + V * G,
|
|
12235
|
+
me ? d += On(w, I, w + N * G, I + L * G, w + D * G, I + V * G, g, !0) + 2 : d += On(w, I, w - N * X, I - L * X, w - D * X, I - V * X, g, !1) + 2;
|
|
12243
12236
|
break;
|
|
12244
12237
|
}
|
|
12245
12238
|
}
|
|
12246
|
-
|
|
12239
|
+
g.push(w - D * X, I - V * X, w + D * G, I + V * G), d += 2;
|
|
12247
12240
|
}
|
|
12248
12241
|
}
|
|
12249
|
-
x = n[(c - 2) * 2], E = n[(c - 2) * 2 + 1], w = n[(c - 1) * 2], I = n[(c - 1) * 2 + 1], N = -(E - I), L = x - w, Y = Math.sqrt(N * N + L * L), N /= Y, L /= Y, N *= _, L *= _,
|
|
12242
|
+
x = n[(c - 2) * 2], E = n[(c - 2) * 2 + 1], w = n[(c - 1) * 2], I = n[(c - 1) * 2 + 1], N = -(E - I), L = x - w, Y = Math.sqrt(N * N + L * L), N /= Y, L /= Y, N *= _, L *= _, g.push(w - N * X, I - L * X, w + N * G, I + L * G), f || (a.cap === Hn.ROUND ? d += On(w - N * (X - G) * 0.5, I - L * (X - G) * 0.5, w - N * X, I - L * X, w + N * G, I + L * G, g, !1) + 2 : a.cap === Hn.SQUARE && (d += Vg(w, I, N, L, X, G, !1, g)));
|
|
12250
12243
|
const ie = e.indices, re = Bi.epsilon * Bi.epsilon;
|
|
12251
|
-
for (let H =
|
|
12252
|
-
x =
|
|
12244
|
+
for (let H = m; H < d + m - 2; ++H)
|
|
12245
|
+
x = g[H * 2], E = g[H * 2 + 1], w = g[(H + 1) * 2], I = g[(H + 1) * 2 + 1], O = g[(H + 2) * 2], F = g[(H + 2) * 2 + 1], !(Math.abs(x * (I - F) + w * (F - E) + O * (E - I)) < re) && ie.push(H, H + 1, H + 2);
|
|
12253
12246
|
}
|
|
12254
12247
|
function Q3(t, e) {
|
|
12255
12248
|
let r = 0;
|
|
@@ -12257,25 +12250,25 @@ function Q3(t, e) {
|
|
|
12257
12250
|
if (i.length === 0)
|
|
12258
12251
|
return;
|
|
12259
12252
|
const u = e.points, l = e.indices, f = i.length / 2, p = u.length / 2;
|
|
12260
|
-
let
|
|
12253
|
+
let g = p;
|
|
12261
12254
|
for (u.push(i[0], i[1]), r = 1; r < f; r++)
|
|
12262
|
-
u.push(i[r * 2], i[r * 2 + 1]), l.push(
|
|
12263
|
-
a && l.push(
|
|
12255
|
+
u.push(i[r * 2], i[r * 2 + 1]), l.push(g, g + 1), g++;
|
|
12256
|
+
a && l.push(g, p);
|
|
12264
12257
|
}
|
|
12265
12258
|
function Xg(t, e) {
|
|
12266
12259
|
t.lineStyle.native ? Q3(t, e) : Z3(t, e);
|
|
12267
12260
|
}
|
|
12268
12261
|
class vh {
|
|
12269
12262
|
static curveLength(e, r, n, i, a, u) {
|
|
12270
|
-
const l = e - 2 * n + a, f = r - 2 * i + u, p = 2 * n - 2 * e,
|
|
12271
|
-
return (b * _ + y * d * (_ - x) + (4 *
|
|
12263
|
+
const l = e - 2 * n + a, f = r - 2 * i + u, p = 2 * n - 2 * e, g = 2 * i - 2 * r, c = 4 * (l * l + f * f), d = 4 * (l * p + f * g), m = p * p + g * g, _ = 2 * Math.sqrt(c + d + m), y = Math.sqrt(c), b = 2 * c * y, x = 2 * Math.sqrt(m), E = d / y;
|
|
12264
|
+
return (b * _ + y * d * (_ - x) + (4 * m * c - d * d) * Math.log((2 * y + E + _) / (E + x))) / (4 * b);
|
|
12272
12265
|
}
|
|
12273
12266
|
static curveTo(e, r, n, i, a) {
|
|
12274
12267
|
const u = a[a.length - 2], l = a[a.length - 1], f = Bi._segmentsCount(vh.curveLength(u, l, e, r, n, i));
|
|
12275
|
-
let p = 0,
|
|
12268
|
+
let p = 0, g = 0;
|
|
12276
12269
|
for (let c = 1; c <= f; ++c) {
|
|
12277
12270
|
const d = c / f;
|
|
12278
|
-
p = u + (e - u) * d,
|
|
12271
|
+
p = u + (e - u) * d, g = l + (r - l) * d, a.push(p + (e + (n - e) * d - p) * d, g + (r + (i - r) * d - g) * d);
|
|
12279
12272
|
}
|
|
12280
12273
|
}
|
|
12281
12274
|
}
|
|
@@ -12303,8 +12296,8 @@ class Uc {
|
|
|
12303
12296
|
this.minX = Math.min(this.minX, e.x), this.maxX = Math.max(this.maxX, e.x), this.minY = Math.min(this.minY, e.y), this.maxY = Math.max(this.maxY, e.y);
|
|
12304
12297
|
}
|
|
12305
12298
|
addPointMatrix(e, r) {
|
|
12306
|
-
const { a: n, b: i, c: a, d: u, tx: l, ty: f } = e, p = n * r.x + a * r.y + l,
|
|
12307
|
-
this.minX = Math.min(this.minX, p), this.maxX = Math.max(this.maxX, p), this.minY = Math.min(this.minY,
|
|
12299
|
+
const { a: n, b: i, c: a, d: u, tx: l, ty: f } = e, p = n * r.x + a * r.y + l, g = i * r.x + u * r.y + f;
|
|
12300
|
+
this.minX = Math.min(this.minX, p), this.maxX = Math.max(this.maxX, p), this.minY = Math.min(this.minY, g), this.maxY = Math.max(this.maxY, g);
|
|
12308
12301
|
}
|
|
12309
12302
|
addQuad(e) {
|
|
12310
12303
|
let r = this.minX, n = this.minY, i = this.maxX, a = this.maxY, u = e[0], l = e[1];
|
|
@@ -12314,15 +12307,15 @@ class Uc {
|
|
|
12314
12307
|
this.addFrameMatrix(e.worldTransform, r, n, i, a);
|
|
12315
12308
|
}
|
|
12316
12309
|
addFrameMatrix(e, r, n, i, a) {
|
|
12317
|
-
const u = e.a, l = e.b, f = e.c, p = e.d,
|
|
12318
|
-
let d = this.minX,
|
|
12319
|
-
d = b < d ? b : d,
|
|
12310
|
+
const u = e.a, l = e.b, f = e.c, p = e.d, g = e.tx, c = e.ty;
|
|
12311
|
+
let d = this.minX, m = this.minY, _ = this.maxX, y = this.maxY, b = u * r + f * n + g, x = l * r + p * n + c;
|
|
12312
|
+
d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, b = u * i + f * n + g, x = l * i + p * n + c, d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, b = u * r + f * a + g, x = l * r + p * a + c, d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, b = u * i + f * a + g, x = l * i + p * a + c, d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, this.minX = d, this.minY = m, this.maxX = _, this.maxY = y;
|
|
12320
12313
|
}
|
|
12321
12314
|
addVertexData(e, r, n) {
|
|
12322
12315
|
let i = this.minX, a = this.minY, u = this.maxX, l = this.maxY;
|
|
12323
12316
|
for (let f = r; f < n; f += 2) {
|
|
12324
|
-
const p = e[f],
|
|
12325
|
-
i = p < i ? p : i, a =
|
|
12317
|
+
const p = e[f], g = e[f + 1];
|
|
12318
|
+
i = p < i ? p : i, a = g < a ? g : a, u = p > u ? p : u, l = g > l ? g : l;
|
|
12326
12319
|
}
|
|
12327
12320
|
this.minX = i, this.minY = a, this.maxX = u, this.maxY = l;
|
|
12328
12321
|
}
|
|
@@ -12330,13 +12323,13 @@ class Uc {
|
|
|
12330
12323
|
this.addVerticesMatrix(e.worldTransform, r, n, i);
|
|
12331
12324
|
}
|
|
12332
12325
|
addVerticesMatrix(e, r, n, i, a = 0, u = a) {
|
|
12333
|
-
const l = e.a, f = e.b, p = e.c,
|
|
12334
|
-
let
|
|
12326
|
+
const l = e.a, f = e.b, p = e.c, g = e.d, c = e.tx, d = e.ty;
|
|
12327
|
+
let m = this.minX, _ = this.minY, y = this.maxX, b = this.maxY;
|
|
12335
12328
|
for (let x = n; x < i; x += 2) {
|
|
12336
|
-
const E = r[x], w = r[x + 1], I = l * E + p * w + c, O =
|
|
12337
|
-
|
|
12329
|
+
const E = r[x], w = r[x + 1], I = l * E + p * w + c, O = g * w + f * E + d;
|
|
12330
|
+
m = Math.min(m, I - a), y = Math.max(y, I + a), _ = Math.min(_, O - u), b = Math.max(b, O + u);
|
|
12338
12331
|
}
|
|
12339
|
-
this.minX =
|
|
12332
|
+
this.minX = m, this.minY = _, this.maxX = y, this.maxY = b;
|
|
12340
12333
|
}
|
|
12341
12334
|
addBounds(e) {
|
|
12342
12335
|
const r = this.minX, n = this.minY, i = this.maxX, a = this.maxY;
|
|
@@ -12345,8 +12338,8 @@ class Uc {
|
|
|
12345
12338
|
addBoundsMask(e, r) {
|
|
12346
12339
|
const n = e.minX > r.minX ? e.minX : r.minX, i = e.minY > r.minY ? e.minY : r.minY, a = e.maxX < r.maxX ? e.maxX : r.maxX, u = e.maxY < r.maxY ? e.maxY : r.maxY;
|
|
12347
12340
|
if (n <= a && i <= u) {
|
|
12348
|
-
const l = this.minX, f = this.minY, p = this.maxX,
|
|
12349
|
-
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u >
|
|
12341
|
+
const l = this.minX, f = this.minY, p = this.maxX, g = this.maxY;
|
|
12342
|
+
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u > g ? u : g;
|
|
12350
12343
|
}
|
|
12351
12344
|
}
|
|
12352
12345
|
addBoundsMatrix(e, r) {
|
|
@@ -12355,8 +12348,8 @@ class Uc {
|
|
|
12355
12348
|
addBoundsArea(e, r) {
|
|
12356
12349
|
const n = e.minX > r.x ? e.minX : r.x, i = e.minY > r.y ? e.minY : r.y, a = e.maxX < r.x + r.width ? e.maxX : r.x + r.width, u = e.maxY < r.y + r.height ? e.maxY : r.y + r.height;
|
|
12357
12350
|
if (n <= a && i <= u) {
|
|
12358
|
-
const l = this.minX, f = this.minY, p = this.maxX,
|
|
12359
|
-
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u >
|
|
12351
|
+
const l = this.minX, f = this.minY, p = this.maxX, g = this.maxY;
|
|
12352
|
+
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u > g ? u : g;
|
|
12360
12353
|
}
|
|
12361
12354
|
}
|
|
12362
12355
|
pad(e = 0, r = e) {
|
|
@@ -12712,7 +12705,7 @@ const $c = class extends Ui {
|
|
|
12712
12705
|
let $i = $c;
|
|
12713
12706
|
$i.defaultSortableChildren = !1;
|
|
12714
12707
|
$i.prototype.containerUpdateTransform = $i.prototype.updateTransform;
|
|
12715
|
-
Object.defineProperties(
|
|
12708
|
+
Object.defineProperties(Ie, {
|
|
12716
12709
|
SORTABLE_CHILDREN: {
|
|
12717
12710
|
get() {
|
|
12718
12711
|
return $i.defaultSortableChildren;
|
|
@@ -12802,16 +12795,16 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12802
12795
|
this.batches.length > 0 && (r = this.batches[this.batches.length - 1], n = r.style);
|
|
12803
12796
|
for (let l = this.shapeIndex; l < e.length; l++) {
|
|
12804
12797
|
this.shapeIndex++;
|
|
12805
|
-
const f = e[l], p = f.fillStyle,
|
|
12806
|
-
ec[f.type].build(f), f.matrix && this.transformPoints(f.points, f.matrix), (p.visible ||
|
|
12798
|
+
const f = e[l], p = f.fillStyle, g = f.lineStyle;
|
|
12799
|
+
ec[f.type].build(f), f.matrix && this.transformPoints(f.points, f.matrix), (p.visible || g.visible) && this.processHoles(f.holes);
|
|
12807
12800
|
for (let d = 0; d < 2; d++) {
|
|
12808
|
-
const
|
|
12809
|
-
if (!
|
|
12801
|
+
const m = d === 0 ? p : g;
|
|
12802
|
+
if (!m.visible)
|
|
12810
12803
|
continue;
|
|
12811
|
-
const _ =
|
|
12804
|
+
const _ = m.texture.baseTexture, y = this.indices.length, b = this.points.length / 2;
|
|
12812
12805
|
_.wrapMode = Rs.REPEAT, d === 0 ? this.processFill(f) : this.processLine(f);
|
|
12813
12806
|
const x = this.points.length / 2 - b;
|
|
12814
|
-
x !== 0 && (r && !this._compareStyles(n,
|
|
12807
|
+
x !== 0 && (r && !this._compareStyles(n, m) && (r.end(y, b), r = null), r || (r = Wg.pop() || new K3(), r.begin(m, y, b), this.batches.push(r), n = m), this.addUvs(this.points, t, m.texture, b, x, m.matrix));
|
|
12815
12808
|
}
|
|
12816
12809
|
}
|
|
12817
12810
|
const i = this.indices.length, a = this.points.length / 2;
|
|
@@ -12857,17 +12850,17 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12857
12850
|
}
|
|
12858
12851
|
buildDrawCalls() {
|
|
12859
12852
|
let t = ++Be._globalBatch;
|
|
12860
|
-
for (let
|
|
12861
|
-
this.drawCalls[
|
|
12853
|
+
for (let g = 0; g < this.drawCalls.length; g++)
|
|
12854
|
+
this.drawCalls[g].texArray.clear(), to.push(this.drawCalls[g]);
|
|
12862
12855
|
this.drawCalls.length = 0;
|
|
12863
12856
|
const e = this.colors, r = this.textureIds;
|
|
12864
12857
|
let n = to.pop();
|
|
12865
12858
|
n || (n = new Rc(), n.texArray = new Mc()), n.texArray.count = 0, n.start = 0, n.size = 0, n.type = dn.TRIANGLES;
|
|
12866
12859
|
let i = 0, a = null, u = 0, l = !1, f = dn.TRIANGLES, p = 0;
|
|
12867
12860
|
this.drawCalls.push(n);
|
|
12868
|
-
for (let
|
|
12869
|
-
const c = this.batches[
|
|
12870
|
-
l !== !!
|
|
12861
|
+
for (let g = 0; g < this.batches.length; g++) {
|
|
12862
|
+
const c = this.batches[g], d = 8, m = c.style, _ = m.texture.baseTexture;
|
|
12863
|
+
l !== !!m.native && (l = !!m.native, f = l ? dn.LINES : dn.TRIANGLES, a = null, i = d, t++), a !== _ && (a = _, _._batchEnabled !== t && (i === d && (t++, i = 0, n.size > 0 && (n = to.pop(), n || (n = new Rc(), n.texArray = new Mc()), this.drawCalls.push(n)), n.start = p, n.size = 0, n.texArray.count = 0, n.type = f), _.touched = 1, _._batchEnabled = t, _._batchLocation = i, _.wrapMode = Rs.REPEAT, n.texArray.elements[n.texArray.count++] = _, i++)), n.size += c.size, p += c.size, u = _._batchLocation, this.addColors(e, m.color, m.alpha, c.attribSize, c.attribStart), this.addTextureIds(r, u, c.attribSize, c.attribStart);
|
|
12871
12864
|
}
|
|
12872
12865
|
Be._globalBatch = t, this.packAttributes();
|
|
12873
12866
|
}
|
|
@@ -12917,24 +12910,24 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12917
12910
|
let u = 0;
|
|
12918
12911
|
const l = e.length, f = r.frame;
|
|
12919
12912
|
for (; u < i; ) {
|
|
12920
|
-
let
|
|
12913
|
+
let g = t[(n + u) * 2], c = t[(n + u) * 2 + 1];
|
|
12921
12914
|
if (a) {
|
|
12922
|
-
const d = a.a *
|
|
12923
|
-
c = a.b *
|
|
12915
|
+
const d = a.a * g + a.c * c + a.tx;
|
|
12916
|
+
c = a.b * g + a.d * c + a.ty, g = d;
|
|
12924
12917
|
}
|
|
12925
|
-
u++, e.push(
|
|
12918
|
+
u++, e.push(g / f.width, c / f.height);
|
|
12926
12919
|
}
|
|
12927
12920
|
const p = r.baseTexture;
|
|
12928
12921
|
(f.width < p.width || f.height < p.height) && this.adjustUvs(e, r, l, i);
|
|
12929
12922
|
}
|
|
12930
12923
|
adjustUvs(t, e, r, n) {
|
|
12931
12924
|
const i = e.baseTexture, a = 1e-6, u = r + n * 2, l = e.frame, f = l.width / i.width, p = l.height / i.height;
|
|
12932
|
-
let
|
|
12925
|
+
let g = l.x / l.width, c = l.y / l.height, d = Math.floor(t[r] + a), m = Math.floor(t[r + 1] + a);
|
|
12933
12926
|
for (let _ = r + 2; _ < u; _ += 2)
|
|
12934
|
-
d = Math.min(d, Math.floor(t[_] + a)),
|
|
12935
|
-
|
|
12927
|
+
d = Math.min(d, Math.floor(t[_] + a)), m = Math.min(m, Math.floor(t[_ + 1] + a));
|
|
12928
|
+
g -= d, c -= m;
|
|
12936
12929
|
for (let _ = r; _ < u; _ += 2)
|
|
12937
|
-
t[_] = (t[_] +
|
|
12930
|
+
t[_] = (t[_] + g) * f, t[_ + 1] = (t[_ + 1] + c) * p;
|
|
12938
12931
|
}
|
|
12939
12932
|
};
|
|
12940
12933
|
let iv = nv;
|
|
@@ -13046,8 +13039,8 @@ const tc = {}, lo = class extends $i {
|
|
|
13046
13039
|
this._initCurve(t, e);
|
|
13047
13040
|
const a = this.currentPath.points, u = zg.curveTo(t, e, r, n, i, a);
|
|
13048
13041
|
if (u) {
|
|
13049
|
-
const { cx: l, cy: f, radius: p, startAngle:
|
|
13050
|
-
this.arc(l, f, p,
|
|
13042
|
+
const { cx: l, cy: f, radius: p, startAngle: g, endAngle: c, anticlockwise: d } = u;
|
|
13043
|
+
this.arc(l, f, p, g, c, d);
|
|
13051
13044
|
}
|
|
13052
13045
|
return this;
|
|
13053
13046
|
}
|
|
@@ -13057,13 +13050,13 @@ const tc = {}, lo = class extends $i {
|
|
|
13057
13050
|
if (!a && i <= n ? i += So : a && n <= i && (n += So), i - n === 0)
|
|
13058
13051
|
return this;
|
|
13059
13052
|
const l = t + Math.cos(n) * r, f = e + Math.sin(n) * r, p = this._geometry.closePointEps;
|
|
13060
|
-
let
|
|
13061
|
-
if (
|
|
13062
|
-
const c = Math.abs(
|
|
13063
|
-
c < p && d < p ||
|
|
13053
|
+
let g = this.currentPath ? this.currentPath.points : null;
|
|
13054
|
+
if (g) {
|
|
13055
|
+
const c = Math.abs(g[g.length - 2] - l), d = Math.abs(g[g.length - 1] - f);
|
|
13056
|
+
c < p && d < p || g.push(l, f);
|
|
13064
13057
|
} else
|
|
13065
|
-
this.moveTo(l, f),
|
|
13066
|
-
return zg.arc(l, f, t, e, r, n, i, a,
|
|
13058
|
+
this.moveTo(l, f), g = this.currentPath.points;
|
|
13059
|
+
return zg.arc(l, f, t, e, r, n, i, a, g), this;
|
|
13067
13060
|
}
|
|
13068
13061
|
beginFill(t = 0, e) {
|
|
13069
13062
|
return this.beginTextureFill({ texture: ke.WHITE, color: t, alpha: e });
|
|
@@ -13203,10 +13196,10 @@ const tc = {}, lo = class extends $i {
|
|
|
13203
13196
|
return;
|
|
13204
13197
|
this._transformID = t;
|
|
13205
13198
|
const e = this.transform.worldTransform, r = e.a, n = e.b, i = e.c, a = e.d, u = e.tx, l = e.ty, f = this._geometry.points, p = this.vertexData;
|
|
13206
|
-
let
|
|
13199
|
+
let g = 0;
|
|
13207
13200
|
for (let c = 0; c < f.length; c += 2) {
|
|
13208
|
-
const d = f[c],
|
|
13209
|
-
p[
|
|
13201
|
+
const d = f[c], m = f[c + 1];
|
|
13202
|
+
p[g++] = r * d + i * m + u, p[g++] = a * m + n * d + l;
|
|
13210
13203
|
}
|
|
13211
13204
|
}
|
|
13212
13205
|
closePath() {
|
|
@@ -13258,27 +13251,27 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13258
13251
|
flag: /\s*([01])/g
|
|
13259
13252
|
}, a = {
|
|
13260
13253
|
number: function(y) {
|
|
13261
|
-
return +
|
|
13254
|
+
return +m("number", y);
|
|
13262
13255
|
},
|
|
13263
13256
|
"coordinate pair": function(y) {
|
|
13264
|
-
var b =
|
|
13257
|
+
var b = m("number", y);
|
|
13265
13258
|
if (b === null && !y)
|
|
13266
13259
|
return null;
|
|
13267
|
-
|
|
13268
|
-
var x =
|
|
13260
|
+
m("comma");
|
|
13261
|
+
var x = m("number", !0);
|
|
13269
13262
|
return { x: +b, y: +x };
|
|
13270
13263
|
},
|
|
13271
13264
|
"arc definition": function(y) {
|
|
13272
13265
|
var b = a["coordinate pair"](y);
|
|
13273
13266
|
if (!b && !y)
|
|
13274
13267
|
return null;
|
|
13275
|
-
|
|
13276
|
-
var x = +
|
|
13277
|
-
|
|
13278
|
-
var E = !!+
|
|
13279
|
-
|
|
13280
|
-
var w = !!+
|
|
13281
|
-
|
|
13268
|
+
m("comma");
|
|
13269
|
+
var x = +m("number", !0);
|
|
13270
|
+
m("comma", !0);
|
|
13271
|
+
var E = !!+m("flag", !0);
|
|
13272
|
+
m("comma");
|
|
13273
|
+
var w = !!+m("flag", !0);
|
|
13274
|
+
m("comma");
|
|
13282
13275
|
var I = a["coordinate pair"](!0);
|
|
13283
13276
|
return {
|
|
13284
13277
|
radii: b,
|
|
@@ -13289,11 +13282,11 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13289
13282
|
};
|
|
13290
13283
|
}
|
|
13291
13284
|
}, u = 0, l = []; u < n.length; ) {
|
|
13292
|
-
var f =
|
|
13285
|
+
var f = m("command"), p = f.toUpperCase(), g = f !== p, c;
|
|
13293
13286
|
switch (p) {
|
|
13294
13287
|
case "M":
|
|
13295
13288
|
c = _("coordinate pair").map(function(y, b) {
|
|
13296
|
-
return b === 1 && (f =
|
|
13289
|
+
return b === 1 && (f = g ? "l" : "L"), d({ end: y });
|
|
13297
13290
|
});
|
|
13298
13291
|
break;
|
|
13299
13292
|
case "L":
|
|
@@ -13348,9 +13341,9 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13348
13341
|
}
|
|
13349
13342
|
return l;
|
|
13350
13343
|
function d(y) {
|
|
13351
|
-
return y.code = f, y.relative =
|
|
13344
|
+
return y.code = f, y.relative = g, y;
|
|
13352
13345
|
}
|
|
13353
|
-
function
|
|
13346
|
+
function m(y, b) {
|
|
13354
13347
|
i[y].lastIndex = u;
|
|
13355
13348
|
var x = i[y].exec(n);
|
|
13356
13349
|
if (!x || x.index !== u) {
|
|
@@ -13362,7 +13355,7 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13362
13355
|
}
|
|
13363
13356
|
function _(y) {
|
|
13364
13357
|
for (var b = [], x, E = !0; x = a[y](E); )
|
|
13365
|
-
b.push(x), E = !!
|
|
13358
|
+
b.push(x), E = !!m("comma");
|
|
13366
13359
|
return b;
|
|
13367
13360
|
}
|
|
13368
13361
|
};
|
|
@@ -13580,8 +13573,8 @@ function jg(t, e, r) {
|
|
|
13580
13573
|
function uL(t, e, r) {
|
|
13581
13574
|
var n, i, a;
|
|
13582
13575
|
t = it(t, 360), e = it(e, 100), r = it(r, 100);
|
|
13583
|
-
function u(p,
|
|
13584
|
-
return c < 0 && (c += 1), c > 1 && (c -= 1), c < 1 / 6 ? p + (
|
|
13576
|
+
function u(p, g, c) {
|
|
13577
|
+
return c < 0 && (c += 1), c > 1 && (c -= 1), c < 1 / 6 ? p + (g - p) * 6 * c : c < 1 / 2 ? g : c < 2 / 3 ? p + (g - p) * (2 / 3 - c) * 6 : p;
|
|
13585
13578
|
}
|
|
13586
13579
|
if (e === 0)
|
|
13587
13580
|
n = i = a = r;
|
|
@@ -13614,8 +13607,8 @@ function qg(t, e, r) {
|
|
|
13614
13607
|
}
|
|
13615
13608
|
function lL(t, e, r) {
|
|
13616
13609
|
t = it(t, 360) * 6, e = it(e, 100), r = it(r, 100);
|
|
13617
|
-
var n = Math.floor(t), i = t - n, a = r * (1 - e), u = r * (1 - i * e), l = r * (1 - (1 - i) * e), f = n % 6, p = [r, u, a, a, l, r][f],
|
|
13618
|
-
return { r: p * 255, g:
|
|
13610
|
+
var n = Math.floor(t), i = t - n, a = r * (1 - e), u = r * (1 - i * e), l = r * (1 - (1 - i) * e), f = n % 6, p = [r, u, a, a, l, r][f], g = [l, r, r, u, a, a][f], c = [a, a, l, r, r, u][f];
|
|
13611
|
+
return { r: p * 255, g: g * 255, b: c * 255 };
|
|
13619
13612
|
}
|
|
13620
13613
|
function Yg(t, e, r, n) {
|
|
13621
13614
|
var i = [
|
|
@@ -14029,9 +14022,9 @@ var IL = function() {
|
|
|
14029
14022
|
}(), Es = Math.PI * 2, rc = function(e, r, n, i, a, u, l) {
|
|
14030
14023
|
var f = e.x, p = e.y;
|
|
14031
14024
|
f *= r, p *= n;
|
|
14032
|
-
var
|
|
14025
|
+
var g = i * f - a * p, c = a * f + i * p;
|
|
14033
14026
|
return {
|
|
14034
|
-
x:
|
|
14027
|
+
x: g + u,
|
|
14035
14028
|
y: c + l
|
|
14036
14029
|
};
|
|
14037
14030
|
}, RL = function(e, r) {
|
|
@@ -14049,13 +14042,13 @@ var IL = function() {
|
|
|
14049
14042
|
}, Jg = function(e, r, n, i) {
|
|
14050
14043
|
var a = e * i - r * n < 0 ? -1 : 1, u = e * n + r * i;
|
|
14051
14044
|
return u > 1 && (u = 1), u < -1 && (u = -1), a * Math.acos(u);
|
|
14052
|
-
}, PL = function(e, r, n, i, a, u, l, f, p,
|
|
14053
|
-
var
|
|
14054
|
-
x < 0 && (x = 0), x /=
|
|
14055
|
-
var E = x * a / u * d, w = x * -u / a * c, I =
|
|
14045
|
+
}, PL = function(e, r, n, i, a, u, l, f, p, g, c, d) {
|
|
14046
|
+
var m = Math.pow(a, 2), _ = Math.pow(u, 2), y = Math.pow(c, 2), b = Math.pow(d, 2), x = m * _ - m * b - _ * y;
|
|
14047
|
+
x < 0 && (x = 0), x /= m * b + _ * y, x = Math.sqrt(x) * (l === f ? -1 : 1);
|
|
14048
|
+
var E = x * a / u * d, w = x * -u / a * c, I = g * E - p * w + (e + n) / 2, O = p * E + g * w + (r + i) / 2, F = (c - E) / a, N = (d - w) / u, L = (-c - E) / a, D = (-d - w) / u, V = Jg(1, 0, F, N), Y = Jg(F, N, L, D);
|
|
14056
14049
|
return f === 0 && Y > 0 && (Y -= Es), f === 1 && Y < 0 && (Y += Es), [I, O, V, Y];
|
|
14057
14050
|
}, em = function(e) {
|
|
14058
|
-
var r = e.px, n = e.py, i = e.cx, a = e.cy, u = e.rx, l = e.ry, f = e.xAxisRotation, p = f === void 0 ? 0 : f,
|
|
14051
|
+
var r = e.px, n = e.py, i = e.cx, a = e.cy, u = e.rx, l = e.ry, f = e.xAxisRotation, p = f === void 0 ? 0 : f, g = e.largeArcFlag, c = g === void 0 ? 0 : g, d = e.sweepFlag, m = d === void 0 ? 0 : d, _ = [];
|
|
14059
14052
|
if (u === 0 || l === 0)
|
|
14060
14053
|
return [];
|
|
14061
14054
|
var y = Math.sin(p * Es / 360), b = Math.cos(p * Es / 360), x = b * (r - i) / 2 + y * (n - a) / 2, E = -y * (r - i) / 2 + b * (n - a) / 2;
|
|
@@ -14064,7 +14057,7 @@ var IL = function() {
|
|
|
14064
14057
|
u = Math.abs(u), l = Math.abs(l);
|
|
14065
14058
|
var w = Math.pow(x, 2) / Math.pow(u, 2) + Math.pow(E, 2) / Math.pow(l, 2);
|
|
14066
14059
|
w > 1 && (u *= Math.sqrt(w), l *= Math.sqrt(w));
|
|
14067
|
-
var I = PL(r, n, i, a, u, l, c,
|
|
14060
|
+
var I = PL(r, n, i, a, u, l, c, m, y, b, x, E), O = IL(I, 4), F = O[0], N = O[1], L = O[2], D = O[3], V = Math.abs(D) / (Es / 4);
|
|
14068
14061
|
Math.abs(1 - V) < 1e-7 && (V = 1);
|
|
14069
14062
|
var Y = Math.max(Math.ceil(V), 1);
|
|
14070
14063
|
D /= Y;
|
|
@@ -14152,8 +14145,8 @@ class ML extends yh {
|
|
|
14152
14145
|
const i = e.nodeName === "elipse";
|
|
14153
14146
|
i && (r += "x", n += "y");
|
|
14154
14147
|
const a = parseFloat(e.getAttribute(n)), u = parseFloat(e.getAttribute(r)), l = e.getAttribute("cx"), f = e.getAttribute("cy");
|
|
14155
|
-
let p = 0,
|
|
14156
|
-
l !== null && (p = parseFloat(l)), f !== null && (
|
|
14148
|
+
let p = 0, g = 0;
|
|
14149
|
+
l !== null && (p = parseFloat(l)), f !== null && (g = parseFloat(f)), i ? this.drawEllipse(p, g, a, u) : this.drawCircle(p, g, a);
|
|
14157
14150
|
}
|
|
14158
14151
|
/**
|
|
14159
14152
|
* Render a <rect> element
|
|
@@ -14210,17 +14203,17 @@ class ML extends yh {
|
|
|
14210
14203
|
* @param inherit - Inherit the fill style
|
|
14211
14204
|
*/
|
|
14212
14205
|
_svgFill(e, r) {
|
|
14213
|
-
const { fill: n, opacity: i, stroke: a, strokeOpacity: u, strokeWidth: l, cap: f, join: p, miterLimit:
|
|
14206
|
+
const { fill: n, opacity: i, stroke: a, strokeOpacity: u, strokeWidth: l, cap: f, join: p, miterLimit: g } = this._svgStyle(e), d = l !== null ? parseFloat(l) : a !== null ? 1 : 0, m = a !== null ? this._hexToUint(a) : this.lineColor;
|
|
14214
14207
|
n ? n === "none" ? this.beginFill(0, 0) : this.beginFill(
|
|
14215
14208
|
this._hexToUint(n),
|
|
14216
14209
|
i !== null ? parseFloat(i) : 1
|
|
14217
14210
|
) : r || this.beginFill(0), this.lineStyle({
|
|
14218
14211
|
width: a === null && l === null && r ? this.line.width : d,
|
|
14219
14212
|
alpha: u === null ? this.line.alpha : parseFloat(u),
|
|
14220
|
-
color: a === null && r ? this.line.color :
|
|
14213
|
+
color: a === null && r ? this.line.color : m,
|
|
14221
14214
|
cap: f === null && r ? this.line.cap : f,
|
|
14222
14215
|
join: p === null && r ? this.line.join : p,
|
|
14223
|
-
miterLimit:
|
|
14216
|
+
miterLimit: g === null && r ? this.line.miterLimit : parseFloat(g)
|
|
14224
14217
|
}), e.getAttribute("fill-rule") && console.info('[PIXI.SVG] "fill-rule" attribute is not supported');
|
|
14225
14218
|
}
|
|
14226
14219
|
/**
|
|
@@ -14337,7 +14330,7 @@ class ML extends yh {
|
|
|
14337
14330
|
xAxisRotation: l.rotation,
|
|
14338
14331
|
largeArcFlag: l.large ? 1 : 0,
|
|
14339
14332
|
sweepFlag: l.clockwise ? 1 : 0
|
|
14340
|
-
}).forEach(({ x1: f, y1: p, x2:
|
|
14333
|
+
}).forEach(({ x1: f, y1: p, x2: g, y2: c, x: d, y: m }) => this.bezierCurveTo(f, p, g, c, d, m));
|
|
14341
14334
|
break;
|
|
14342
14335
|
}
|
|
14343
14336
|
case "A": {
|
|
@@ -14351,7 +14344,7 @@ class ML extends yh {
|
|
|
14351
14344
|
xAxisRotation: l.rotation,
|
|
14352
14345
|
largeArcFlag: l.large ? 1 : 0,
|
|
14353
14346
|
sweepFlag: l.clockwise ? 1 : 0
|
|
14354
|
-
}).forEach(({ x1: f, y1: p, x2:
|
|
14347
|
+
}).forEach(({ x1: f, y1: p, x2: g, y2: c, x: d, y: m }) => this.bezierCurveTo(f, p, g, c, d, m));
|
|
14355
14348
|
break;
|
|
14356
14349
|
}
|
|
14357
14350
|
default: {
|
|
@@ -14612,9 +14605,9 @@ function tm(t, e, r, n) {
|
|
|
14612
14605
|
return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
|
|
14613
14606
|
}
|
|
14614
14607
|
function qL(t, e, r, n, i, a, u, l, f, p) {
|
|
14615
|
-
var
|
|
14616
|
-
b < 0 && (b = 0), b /= d * y +
|
|
14617
|
-
var x = b * u / l * c, E = b * -l / u *
|
|
14608
|
+
var g = p * (t - r) / 2 + f * (e - n) / 2, c = -f * (t - r) / 2 + p * (e - n) / 2, d = u * u, m = l * l, _ = g * g, y = c * c, b = d * m - d * y - m * _;
|
|
14609
|
+
b < 0 && (b = 0), b /= d * y + m * _, b = Math.sqrt(b) * (i === a ? -1 : 1);
|
|
14610
|
+
var x = b * u / l * c, E = b * -l / u * g, w = p * x - f * E + (t + r) / 2, I = f * x + p * E + (e + n) / 2, O = (g - x) / u, F = (c - E) / l, N = (-g - x) / u, L = (-c - E) / l, D = tm(1, 0, O, F), V = tm(O, F, N, L);
|
|
14618
14611
|
return a === 0 && V > 0 && (V -= Cs), a === 1 && V < 0 && (V += Cs), [w, I, D, V];
|
|
14619
14612
|
}
|
|
14620
14613
|
function YL(t, e) {
|
|
@@ -14622,15 +14615,15 @@ function YL(t, e) {
|
|
|
14622
14615
|
return [n, i, n - i * r, i + n * r, a + u * r, u - a * r, a, u];
|
|
14623
14616
|
}
|
|
14624
14617
|
var KL = function(e, r, n, i, a, u, l, f, p) {
|
|
14625
|
-
var
|
|
14626
|
-
if (d === 0 &&
|
|
14618
|
+
var g = Math.sin(p * Cs / 360), c = Math.cos(p * Cs / 360), d = c * (e - n) / 2 + g * (r - i) / 2, m = -g * (e - n) / 2 + c * (r - i) / 2;
|
|
14619
|
+
if (d === 0 && m === 0)
|
|
14627
14620
|
return [];
|
|
14628
14621
|
if (l === 0 || f === 0)
|
|
14629
14622
|
return [];
|
|
14630
14623
|
l = Math.abs(l), f = Math.abs(f);
|
|
14631
|
-
var _ = d * d / (l * l) +
|
|
14624
|
+
var _ = d * d / (l * l) + m * m / (f * f);
|
|
14632
14625
|
_ > 1 && (l *= Math.sqrt(_), f *= Math.sqrt(_));
|
|
14633
|
-
var y = qL(e, r, n, i, a, u, l, f,
|
|
14626
|
+
var y = qL(e, r, n, i, a, u, l, f, g, c), b = [], x = y[2], E = y[3], w = Math.max(Math.ceil(Math.abs(E) / (Cs / 4)), 1);
|
|
14634
14627
|
E /= w;
|
|
14635
14628
|
for (var I = 0; I < w; I++)
|
|
14636
14629
|
b.push(YL(x, E)), x += E;
|
|
@@ -14638,7 +14631,7 @@ var KL = function(e, r, n, i, a, u, l, f, p) {
|
|
|
14638
14631
|
for (var F = 0; F < O.length; F += 2) {
|
|
14639
14632
|
var N = O[F + 0], L = O[F + 1];
|
|
14640
14633
|
N *= l, L *= f;
|
|
14641
|
-
var D = c * N -
|
|
14634
|
+
var D = c * N - g * L, V = g * N + c * L;
|
|
14642
14635
|
O[F + 0] = D + y[0], O[F + 1] = V + y[1];
|
|
14643
14636
|
}
|
|
14644
14637
|
return O;
|
|
@@ -14660,10 +14653,10 @@ Ds.prototype.transform = function(t) {
|
|
|
14660
14653
|
return this.rx = this.ry = Math.sqrt(l), this.ax = 0, this;
|
|
14661
14654
|
var f = n[0] * n[1] + n[2] * n[3];
|
|
14662
14655
|
u = Math.sqrt(u);
|
|
14663
|
-
var p = l + u / 2,
|
|
14656
|
+
var p = l + u / 2, g = l - u / 2;
|
|
14664
14657
|
return this.ax = Math.abs(f) < Is && Math.abs(p - a) < Is ? 90 : Math.atan(
|
|
14665
14658
|
Math.abs(f) > Math.abs(p - a) ? (p - i) / f : f / (p - a)
|
|
14666
|
-
) * 180 / Math.PI, this.ax >= 0 ? (this.rx = Math.sqrt(p), this.ry = Math.sqrt(
|
|
14659
|
+
) * 180 / Math.PI, this.ax >= 0 ? (this.rx = Math.sqrt(p), this.ry = Math.sqrt(g)) : (this.ax += 90, this.rx = Math.sqrt(g), this.ry = Math.sqrt(p)), this;
|
|
14667
14660
|
};
|
|
14668
14661
|
Ds.prototype.isDegenerate = function() {
|
|
14669
14662
|
return this.rx < Is * this.ry || this.ry < Is * this.rx;
|
|
@@ -14691,7 +14684,7 @@ ut.from = function(t) {
|
|
|
14691
14684
|
ut.prototype.__matrix = function(t) {
|
|
14692
14685
|
var e = this, r;
|
|
14693
14686
|
t.queue.length && this.iterate(function(n, i, a, u) {
|
|
14694
|
-
var l, f, p,
|
|
14687
|
+
var l, f, p, g;
|
|
14695
14688
|
switch (n[0]) {
|
|
14696
14689
|
case "v":
|
|
14697
14690
|
l = t.calc(0, n[1], !0), f = l[0] === 0 ? ["v", l[1]] : ["l", l[0], l[1]];
|
|
@@ -14715,11 +14708,11 @@ ut.prototype.__matrix = function(t) {
|
|
|
14715
14708
|
d.isDegenerate() ? f = [n[0] === "a" ? "l" : "L", l[0], l[1]] : f = [n[0], d.rx, d.ry, d.ax, n[4], n[5], l[0], l[1]];
|
|
14716
14709
|
break;
|
|
14717
14710
|
case "m":
|
|
14718
|
-
|
|
14711
|
+
g = i > 0, l = t.calc(n[1], n[2], g), f = ["m", l[0], l[1]];
|
|
14719
14712
|
break;
|
|
14720
14713
|
default:
|
|
14721
|
-
for (p = n[0], f = [p],
|
|
14722
|
-
l = t.calc(n[r], n[r + 1],
|
|
14714
|
+
for (p = n[0], f = [p], g = p.toLowerCase() === p, r = 1; r < n.length; r += 2)
|
|
14715
|
+
l = t.calc(n[r], n[r + 1], g), f.push(l[0], l[1]);
|
|
14723
14716
|
}
|
|
14724
14717
|
e.segments[i] = f;
|
|
14725
14718
|
}, !0);
|
|
@@ -14805,10 +14798,10 @@ ut.prototype.round = function(t) {
|
|
|
14805
14798
|
}), this;
|
|
14806
14799
|
};
|
|
14807
14800
|
ut.prototype.iterate = function(t, e) {
|
|
14808
|
-
var r = this.segments, n = {}, i = !1, a = 0, u = 0, l = 0, f = 0, p,
|
|
14809
|
-
if (e || this.__evaluateStack(), r.forEach(function(d,
|
|
14810
|
-
var _ = t(d,
|
|
14811
|
-
Array.isArray(_) && (n[
|
|
14801
|
+
var r = this.segments, n = {}, i = !1, a = 0, u = 0, l = 0, f = 0, p, g, c;
|
|
14802
|
+
if (e || this.__evaluateStack(), r.forEach(function(d, m) {
|
|
14803
|
+
var _ = t(d, m, a, u);
|
|
14804
|
+
Array.isArray(_) && (n[m] = _, i = !0);
|
|
14812
14805
|
var y = d[0] === d[0].toLowerCase();
|
|
14813
14806
|
switch (d[0]) {
|
|
14814
14807
|
case "m":
|
|
@@ -14834,8 +14827,8 @@ ut.prototype.iterate = function(t, e) {
|
|
|
14834
14827
|
return this;
|
|
14835
14828
|
for (c = [], p = 0; p < r.length; p++)
|
|
14836
14829
|
if (typeof n[p] < "u")
|
|
14837
|
-
for (
|
|
14838
|
-
c.push(n[p][
|
|
14830
|
+
for (g = 0; g < n[p].length; g++)
|
|
14831
|
+
c.push(n[p][g]);
|
|
14839
14832
|
else
|
|
14840
14833
|
c.push(r[p]);
|
|
14841
14834
|
return this.segments = c, this;
|
|
@@ -14885,14 +14878,14 @@ ut.prototype.unarc = function() {
|
|
|
14885
14878
|
ut.prototype.unshort = function() {
|
|
14886
14879
|
var t = this.segments, e, r, n, i, a;
|
|
14887
14880
|
return this.iterate(function(u, l, f, p) {
|
|
14888
|
-
var
|
|
14889
|
-
l && (c === "T" ? (d =
|
|
14881
|
+
var g = u[0], c = g.toUpperCase(), d;
|
|
14882
|
+
l && (c === "T" ? (d = g === "t", n = t[l - 1], n[0] === "Q" ? (e = n[1] - f, r = n[2] - p) : n[0] === "q" ? (e = n[1] - n[3], r = n[2] - n[4]) : (e = 0, r = 0), i = -e, a = -r, d || (i += f, a += p), t[l] = [
|
|
14890
14883
|
d ? "q" : "Q",
|
|
14891
14884
|
i,
|
|
14892
14885
|
a,
|
|
14893
14886
|
u[1],
|
|
14894
14887
|
u[2]
|
|
14895
|
-
]) : c === "S" && (d =
|
|
14888
|
+
]) : c === "S" && (d = g === "s", n = t[l - 1], n[0] === "C" ? (e = n[3] - f, r = n[4] - p) : n[0] === "c" ? (e = n[3] - n[5], r = n[4] - n[6]) : (e = 0, r = 0), i = -e, a = -r, d || (i += f, a += p), t[l] = [
|
|
14896
14889
|
d ? "c" : "C",
|
|
14897
14890
|
i,
|
|
14898
14891
|
a,
|
|
@@ -14910,10 +14903,10 @@ const ik = /* @__PURE__ */ qn(nk), cU = te.forwardRef((t, e) => {
|
|
|
14910
14903
|
visible: f,
|
|
14911
14904
|
disabled: p,
|
|
14912
14905
|
transformation: {
|
|
14913
|
-
x:
|
|
14906
|
+
x: g,
|
|
14914
14907
|
y: c,
|
|
14915
14908
|
width: d,
|
|
14916
|
-
height:
|
|
14909
|
+
height: m,
|
|
14917
14910
|
anchor: _,
|
|
14918
14911
|
hexColor: y,
|
|
14919
14912
|
fill: b,
|
|
@@ -14933,21 +14926,21 @@ const ik = /* @__PURE__ */ qn(nk), cU = te.forwardRef((t, e) => {
|
|
|
14933
14926
|
noiseFilter: X
|
|
14934
14927
|
} = Qn(w), { blurRadius: G = 0, vignette: ie = 0, noise: re = 0 } = w;
|
|
14935
14928
|
return te.useEffect(() => {
|
|
14936
|
-
const H = ik(l).scale(5).translate(0, 0).toString(), Q = `<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${
|
|
14929
|
+
const H = ik(l).scale(5).translate(0, 0).toString(), Q = `<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${m}">
|
|
14937
14930
|
<path stroke="${x}" stroke-width="${E}" fill="${y || b}" d="${H}">
|
|
14938
14931
|
</path>
|
|
14939
14932
|
</svg>`, ge = new ML(Q), W = F.renderer.generateTexture(ge);
|
|
14940
14933
|
return n(W), () => {
|
|
14941
14934
|
};
|
|
14942
|
-
}, [F, l, x, E, y, b]), /* @__PURE__ */
|
|
14935
|
+
}, [F, l, x, E, y, b]), /* @__PURE__ */ Ae.jsx(vn, { ...t, ref: e, children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, children: /* @__PURE__ */ Ae.jsx(wt, { ref: u, children: r && /* @__PURE__ */ Ae.jsx(
|
|
14943
14936
|
Bs,
|
|
14944
14937
|
{
|
|
14945
14938
|
texture: r,
|
|
14946
14939
|
width: d,
|
|
14947
|
-
height:
|
|
14940
|
+
height: m,
|
|
14948
14941
|
anchor: _,
|
|
14949
14942
|
ref: i,
|
|
14950
|
-
x:
|
|
14943
|
+
x: g,
|
|
14951
14944
|
y: c,
|
|
14952
14945
|
alpha: f ? 1 : 0,
|
|
14953
14946
|
...!p && f && {
|
|
@@ -15001,14 +14994,14 @@ var uv = {};
|
|
|
15001
14994
|
*/
|
|
15002
14995
|
volume: function(c) {
|
|
15003
14996
|
var d = this || r;
|
|
15004
|
-
if (c = parseFloat(c), d.ctx ||
|
|
14997
|
+
if (c = parseFloat(c), d.ctx || g(), typeof c < "u" && c >= 0 && c <= 1) {
|
|
15005
14998
|
if (d._volume = c, d._muted)
|
|
15006
14999
|
return d;
|
|
15007
15000
|
d.usingWebAudio && d.masterGain.gain.setValueAtTime(c, r.ctx.currentTime);
|
|
15008
|
-
for (var
|
|
15009
|
-
if (!d._howls[
|
|
15010
|
-
for (var _ = d._howls[
|
|
15011
|
-
var b = d._howls[
|
|
15001
|
+
for (var m = 0; m < d._howls.length; m++)
|
|
15002
|
+
if (!d._howls[m]._webAudio)
|
|
15003
|
+
for (var _ = d._howls[m]._getSoundIds(), y = 0; y < _.length; y++) {
|
|
15004
|
+
var b = d._howls[m]._soundById(_[y]);
|
|
15012
15005
|
b && b._node && (b._node.volume = b._volume * c);
|
|
15013
15006
|
}
|
|
15014
15007
|
return d;
|
|
@@ -15021,11 +15014,11 @@ var uv = {};
|
|
|
15021
15014
|
*/
|
|
15022
15015
|
mute: function(c) {
|
|
15023
15016
|
var d = this || r;
|
|
15024
|
-
d.ctx ||
|
|
15025
|
-
for (var
|
|
15026
|
-
if (!d._howls[
|
|
15027
|
-
for (var _ = d._howls[
|
|
15028
|
-
var b = d._howls[
|
|
15017
|
+
d.ctx || g(), d._muted = c, d.usingWebAudio && d.masterGain.gain.setValueAtTime(c ? 0 : d._volume, r.ctx.currentTime);
|
|
15018
|
+
for (var m = 0; m < d._howls.length; m++)
|
|
15019
|
+
if (!d._howls[m]._webAudio)
|
|
15020
|
+
for (var _ = d._howls[m]._getSoundIds(), y = 0; y < _.length; y++) {
|
|
15021
|
+
var b = d._howls[m]._soundById(_[y]);
|
|
15029
15022
|
b && b._node && (b._node.muted = c ? !0 : b._muted);
|
|
15030
15023
|
}
|
|
15031
15024
|
return d;
|
|
@@ -15045,7 +15038,7 @@ var uv = {};
|
|
|
15045
15038
|
unload: function() {
|
|
15046
15039
|
for (var c = this || r, d = c._howls.length - 1; d >= 0; d--)
|
|
15047
15040
|
c._howls[d].unload();
|
|
15048
|
-
return c.usingWebAudio && c.ctx && typeof c.ctx.close < "u" && (c.ctx.close(), c.ctx = null,
|
|
15041
|
+
return c.usingWebAudio && c.ctx && typeof c.ctx.close < "u" && (c.ctx.close(), c.ctx = null, g()), c;
|
|
15049
15042
|
},
|
|
15050
15043
|
/**
|
|
15051
15044
|
* Check for codec support of specific extension.
|
|
@@ -15091,10 +15084,10 @@ var uv = {};
|
|
|
15091
15084
|
}
|
|
15092
15085
|
if (!d || typeof d.canPlayType != "function")
|
|
15093
15086
|
return c;
|
|
15094
|
-
var
|
|
15087
|
+
var m = d.canPlayType("audio/mpeg;").replace(/^no$/, ""), _ = c._navigator ? c._navigator.userAgent : "", y = _.match(/OPR\/([0-6].)/g), b = y && parseInt(y[0].split("/")[1], 10) < 33, x = _.indexOf("Safari") !== -1 && _.indexOf("Chrome") === -1, E = _.match(/Version\/(.*?) /), w = x && E && parseInt(E[1], 10) < 15;
|
|
15095
15088
|
return c._codecs = {
|
|
15096
|
-
mp3: !!(!b && (
|
|
15097
|
-
mpeg: !!
|
|
15089
|
+
mp3: !!(!b && (m || d.canPlayType("audio/mp3;").replace(/^no$/, ""))),
|
|
15090
|
+
mpeg: !!m,
|
|
15098
15091
|
opus: !!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ""),
|
|
15099
15092
|
ogg: !!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
|
|
15100
15093
|
oga: !!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
|
|
@@ -15120,7 +15113,7 @@ var uv = {};
|
|
|
15120
15113
|
var c = this || r;
|
|
15121
15114
|
if (!(c._audioUnlocked || !c.ctx)) {
|
|
15122
15115
|
c._audioUnlocked = !1, c.autoUnlock = !1, !c._mobileUnloaded && c.ctx.sampleRate !== 44100 && (c._mobileUnloaded = !0, c.unload()), c._scratchBuffer = c.ctx.createBuffer(1, 1, 22050);
|
|
15123
|
-
var d = function(
|
|
15116
|
+
var d = function(m) {
|
|
15124
15117
|
for (; c._html5AudioPool.length < c.html5PoolSize; )
|
|
15125
15118
|
try {
|
|
15126
15119
|
var _ = new Audio();
|
|
@@ -15178,8 +15171,8 @@ var uv = {};
|
|
|
15178
15171
|
if (!(!c.autoSuspend || !c.ctx || typeof c.ctx.suspend > "u" || !r.usingWebAudio)) {
|
|
15179
15172
|
for (var d = 0; d < c._howls.length; d++)
|
|
15180
15173
|
if (c._howls[d]._webAudio) {
|
|
15181
|
-
for (var
|
|
15182
|
-
if (!c._howls[d]._sounds[
|
|
15174
|
+
for (var m = 0; m < c._howls[d]._sounds.length; m++)
|
|
15175
|
+
if (!c._howls[d]._sounds[m]._paused)
|
|
15183
15176
|
return c;
|
|
15184
15177
|
}
|
|
15185
15178
|
return c._suspendTimer && clearTimeout(c._suspendTimer), c._suspendTimer = setTimeout(function() {
|
|
@@ -15223,7 +15216,7 @@ var uv = {};
|
|
|
15223
15216
|
*/
|
|
15224
15217
|
init: function(c) {
|
|
15225
15218
|
var d = this;
|
|
15226
|
-
return r.ctx ||
|
|
15219
|
+
return r.ctx || g(), d._autoplay = c.autoplay || !1, d._format = typeof c.format != "string" ? c.format : [c.format], d._html5 = c.html5 || !1, d._muted = c.mute || !1, d._loop = c.loop || !1, d._pool = c.pool || 5, d._preload = typeof c.preload == "boolean" || c.preload === "metadata" ? c.preload : !0, d._rate = c.rate || 1, d._sprite = c.sprite || {}, d._src = typeof c.src != "string" ? c.src : [c.src], d._volume = c.volume !== void 0 ? c.volume : 1, d._xhr = {
|
|
15227
15220
|
method: c.xhr && c.xhr.method ? c.xhr.method : "GET",
|
|
15228
15221
|
headers: c.xhr && c.xhr.headers ? c.xhr.headers : null,
|
|
15229
15222
|
withCredentials: c.xhr && c.xhr.withCredentials ? c.xhr.withCredentials : !1
|
|
@@ -15245,19 +15238,19 @@ var uv = {};
|
|
|
15245
15238
|
return;
|
|
15246
15239
|
}
|
|
15247
15240
|
typeof c._src == "string" && (c._src = [c._src]);
|
|
15248
|
-
for (var
|
|
15241
|
+
for (var m = 0; m < c._src.length; m++) {
|
|
15249
15242
|
var _, y;
|
|
15250
|
-
if (c._format && c._format[
|
|
15251
|
-
_ = c._format[
|
|
15243
|
+
if (c._format && c._format[m])
|
|
15244
|
+
_ = c._format[m];
|
|
15252
15245
|
else {
|
|
15253
|
-
if (y = c._src[
|
|
15246
|
+
if (y = c._src[m], typeof y != "string") {
|
|
15254
15247
|
c._emit("loaderror", null, "Non-string found in selected audio sources - ignoring.");
|
|
15255
15248
|
continue;
|
|
15256
15249
|
}
|
|
15257
15250
|
_ = /^data:audio\/([^;,]+);/i.exec(y), _ || (_ = /\.([^.]+)$/.exec(y.split("?", 1)[0])), _ && (_ = _[1].toLowerCase());
|
|
15258
15251
|
}
|
|
15259
15252
|
if (_ || console.warn('No file extension was found. Consider using the "format" property or specify an extension.'), _ && r.codecs(_)) {
|
|
15260
|
-
d = c._src[
|
|
15253
|
+
d = c._src[m];
|
|
15261
15254
|
break;
|
|
15262
15255
|
}
|
|
15263
15256
|
}
|
|
@@ -15274,83 +15267,83 @@ var uv = {};
|
|
|
15274
15267
|
* @return {Number} Sound ID.
|
|
15275
15268
|
*/
|
|
15276
15269
|
play: function(c, d) {
|
|
15277
|
-
var
|
|
15270
|
+
var m = this, _ = null;
|
|
15278
15271
|
if (typeof c == "number")
|
|
15279
15272
|
_ = c, c = null;
|
|
15280
15273
|
else {
|
|
15281
|
-
if (typeof c == "string" &&
|
|
15274
|
+
if (typeof c == "string" && m._state === "loaded" && !m._sprite[c])
|
|
15282
15275
|
return null;
|
|
15283
|
-
if (typeof c > "u" && (c = "__default", !
|
|
15284
|
-
for (var y = 0, b = 0; b <
|
|
15285
|
-
|
|
15276
|
+
if (typeof c > "u" && (c = "__default", !m._playLock)) {
|
|
15277
|
+
for (var y = 0, b = 0; b < m._sounds.length; b++)
|
|
15278
|
+
m._sounds[b]._paused && !m._sounds[b]._ended && (y++, _ = m._sounds[b]._id);
|
|
15286
15279
|
y === 1 ? c = null : _ = null;
|
|
15287
15280
|
}
|
|
15288
15281
|
}
|
|
15289
|
-
var x = _ ?
|
|
15282
|
+
var x = _ ? m._soundById(_) : m._inactiveSound();
|
|
15290
15283
|
if (!x)
|
|
15291
15284
|
return null;
|
|
15292
|
-
if (_ && !c && (c = x._sprite || "__default"),
|
|
15285
|
+
if (_ && !c && (c = x._sprite || "__default"), m._state !== "loaded") {
|
|
15293
15286
|
x._sprite = c, x._ended = !1;
|
|
15294
15287
|
var E = x._id;
|
|
15295
|
-
return
|
|
15288
|
+
return m._queue.push({
|
|
15296
15289
|
event: "play",
|
|
15297
15290
|
action: function() {
|
|
15298
|
-
|
|
15291
|
+
m.play(E);
|
|
15299
15292
|
}
|
|
15300
15293
|
}), E;
|
|
15301
15294
|
}
|
|
15302
15295
|
if (_ && !x._paused)
|
|
15303
|
-
return d ||
|
|
15304
|
-
|
|
15305
|
-
var w = Math.max(0, x._seek > 0 ? x._seek :
|
|
15296
|
+
return d || m._loadQueue("play"), x._id;
|
|
15297
|
+
m._webAudio && r._autoResume();
|
|
15298
|
+
var w = Math.max(0, x._seek > 0 ? x._seek : m._sprite[c][0] / 1e3), I = Math.max(0, (m._sprite[c][0] + m._sprite[c][1]) / 1e3 - w), O = I * 1e3 / Math.abs(x._rate), F = m._sprite[c][0] / 1e3, N = (m._sprite[c][0] + m._sprite[c][1]) / 1e3;
|
|
15306
15299
|
x._sprite = c, x._ended = !1;
|
|
15307
15300
|
var L = function() {
|
|
15308
|
-
x._paused = !1, x._seek = w, x._start = F, x._stop = N, x._loop = !!(x._loop ||
|
|
15301
|
+
x._paused = !1, x._seek = w, x._start = F, x._stop = N, x._loop = !!(x._loop || m._sprite[c][2]);
|
|
15309
15302
|
};
|
|
15310
15303
|
if (w >= N) {
|
|
15311
|
-
|
|
15304
|
+
m._ended(x);
|
|
15312
15305
|
return;
|
|
15313
15306
|
}
|
|
15314
15307
|
var D = x._node;
|
|
15315
|
-
if (
|
|
15308
|
+
if (m._webAudio) {
|
|
15316
15309
|
var V = function() {
|
|
15317
|
-
|
|
15318
|
-
var G = x._muted ||
|
|
15319
|
-
D.gain.setValueAtTime(G, r.ctx.currentTime), x._playStart = r.ctx.currentTime, typeof D.bufferSource.start > "u" ? x._loop ? D.bufferSource.noteGrainOn(0, w, 86400) : D.bufferSource.noteGrainOn(0, w, I) : x._loop ? D.bufferSource.start(0, w, 86400) : D.bufferSource.start(0, w, I), O !== 1 / 0 && (
|
|
15320
|
-
|
|
15310
|
+
m._playLock = !1, L(), m._refreshBuffer(x);
|
|
15311
|
+
var G = x._muted || m._muted ? 0 : x._volume;
|
|
15312
|
+
D.gain.setValueAtTime(G, r.ctx.currentTime), x._playStart = r.ctx.currentTime, typeof D.bufferSource.start > "u" ? x._loop ? D.bufferSource.noteGrainOn(0, w, 86400) : D.bufferSource.noteGrainOn(0, w, I) : x._loop ? D.bufferSource.start(0, w, 86400) : D.bufferSource.start(0, w, I), O !== 1 / 0 && (m._endTimers[x._id] = setTimeout(m._ended.bind(m, x), O)), d || setTimeout(function() {
|
|
15313
|
+
m._emit("play", x._id), m._loadQueue();
|
|
15321
15314
|
}, 0);
|
|
15322
15315
|
};
|
|
15323
|
-
r.state === "running" && r.ctx.state !== "interrupted" ? V() : (
|
|
15316
|
+
r.state === "running" && r.ctx.state !== "interrupted" ? V() : (m._playLock = !0, m.once("resume", V), m._clearTimer(x._id));
|
|
15324
15317
|
} else {
|
|
15325
15318
|
var Y = function() {
|
|
15326
|
-
D.currentTime = w, D.muted = x._muted ||
|
|
15319
|
+
D.currentTime = w, D.muted = x._muted || m._muted || r._muted || D.muted, D.volume = x._volume * r.volume(), D.playbackRate = x._rate;
|
|
15327
15320
|
try {
|
|
15328
15321
|
var G = D.play();
|
|
15329
|
-
if (G && typeof Promise < "u" && (G instanceof Promise || typeof G.then == "function") ? (
|
|
15330
|
-
|
|
15322
|
+
if (G && typeof Promise < "u" && (G instanceof Promise || typeof G.then == "function") ? (m._playLock = !0, L(), G.then(function() {
|
|
15323
|
+
m._playLock = !1, D._unlocked = !0, d ? m._loadQueue() : m._emit("play", x._id);
|
|
15331
15324
|
}).catch(function() {
|
|
15332
|
-
|
|
15333
|
-
})) : d || (
|
|
15334
|
-
|
|
15325
|
+
m._playLock = !1, m._emit("playerror", x._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."), x._ended = !0, x._paused = !0;
|
|
15326
|
+
})) : d || (m._playLock = !1, L(), m._emit("play", x._id)), D.playbackRate = x._rate, D.paused) {
|
|
15327
|
+
m._emit("playerror", x._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");
|
|
15335
15328
|
return;
|
|
15336
15329
|
}
|
|
15337
|
-
c !== "__default" || x._loop ?
|
|
15338
|
-
|
|
15339
|
-
}, D.addEventListener("ended",
|
|
15330
|
+
c !== "__default" || x._loop ? m._endTimers[x._id] = setTimeout(m._ended.bind(m, x), O) : (m._endTimers[x._id] = function() {
|
|
15331
|
+
m._ended(x), D.removeEventListener("ended", m._endTimers[x._id], !1);
|
|
15332
|
+
}, D.addEventListener("ended", m._endTimers[x._id], !1));
|
|
15340
15333
|
} catch (ie) {
|
|
15341
|
-
|
|
15334
|
+
m._emit("playerror", x._id, ie);
|
|
15342
15335
|
}
|
|
15343
15336
|
};
|
|
15344
|
-
D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src =
|
|
15337
|
+
D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src = m._src, D.load());
|
|
15345
15338
|
var se = window && window.ejecta || !D.readyState && r._navigator.isCocoonJS;
|
|
15346
15339
|
if (D.readyState >= 3 || se)
|
|
15347
15340
|
Y();
|
|
15348
15341
|
else {
|
|
15349
|
-
|
|
15342
|
+
m._playLock = !0, m._state = "loading";
|
|
15350
15343
|
var X = function() {
|
|
15351
|
-
|
|
15344
|
+
m._state = "loaded", Y(), D.removeEventListener(r._canPlayEvent, X, !1);
|
|
15352
15345
|
};
|
|
15353
|
-
D.addEventListener(r._canPlayEvent, X, !1),
|
|
15346
|
+
D.addEventListener(r._canPlayEvent, X, !1), m._clearTimer(x._id);
|
|
15354
15347
|
}
|
|
15355
15348
|
}
|
|
15356
15349
|
return x._id;
|
|
@@ -15369,10 +15362,10 @@ var uv = {};
|
|
|
15369
15362
|
d.pause(c);
|
|
15370
15363
|
}
|
|
15371
15364
|
}), d;
|
|
15372
|
-
for (var
|
|
15373
|
-
d._clearTimer(
|
|
15374
|
-
var y = d._soundById(
|
|
15375
|
-
if (y && !y._paused && (y._seek = d.seek(
|
|
15365
|
+
for (var m = d._getSoundIds(c), _ = 0; _ < m.length; _++) {
|
|
15366
|
+
d._clearTimer(m[_]);
|
|
15367
|
+
var y = d._soundById(m[_]);
|
|
15368
|
+
if (y && !y._paused && (y._seek = d.seek(m[_]), y._rateSeek = 0, y._paused = !0, d._stopFade(m[_]), y._node))
|
|
15376
15369
|
if (d._webAudio) {
|
|
15377
15370
|
if (!y._node.bufferSource)
|
|
15378
15371
|
continue;
|
|
@@ -15390,20 +15383,20 @@ var uv = {};
|
|
|
15390
15383
|
* @return {Howl}
|
|
15391
15384
|
*/
|
|
15392
15385
|
stop: function(c, d) {
|
|
15393
|
-
var
|
|
15394
|
-
if (
|
|
15395
|
-
return
|
|
15386
|
+
var m = this;
|
|
15387
|
+
if (m._state !== "loaded" || m._playLock)
|
|
15388
|
+
return m._queue.push({
|
|
15396
15389
|
event: "stop",
|
|
15397
15390
|
action: function() {
|
|
15398
|
-
|
|
15391
|
+
m.stop(c);
|
|
15399
15392
|
}
|
|
15400
|
-
}),
|
|
15401
|
-
for (var _ =
|
|
15402
|
-
|
|
15403
|
-
var b =
|
|
15404
|
-
b && (b._seek = b._start || 0, b._rateSeek = 0, b._paused = !0, b._ended = !0,
|
|
15393
|
+
}), m;
|
|
15394
|
+
for (var _ = m._getSoundIds(c), y = 0; y < _.length; y++) {
|
|
15395
|
+
m._clearTimer(_[y]);
|
|
15396
|
+
var b = m._soundById(_[y]);
|
|
15397
|
+
b && (b._seek = b._start || 0, b._rateSeek = 0, b._paused = !0, b._ended = !0, m._stopFade(_[y]), b._node && (m._webAudio ? b._node.bufferSource && (typeof b._node.bufferSource.stop > "u" ? b._node.bufferSource.noteOff(0) : b._node.bufferSource.stop(0), m._cleanBuffer(b._node)) : (!isNaN(b._node.duration) || b._node.duration === 1 / 0) && (b._node.currentTime = b._start || 0, b._node.pause(), b._node.duration === 1 / 0 && m._clearSound(b._node))), d || m._emit("stop", b._id));
|
|
15405
15398
|
}
|
|
15406
|
-
return
|
|
15399
|
+
return m;
|
|
15407
15400
|
},
|
|
15408
15401
|
/**
|
|
15409
15402
|
* Mute/unmute a single sound or all sounds in this Howl group.
|
|
@@ -15412,24 +15405,24 @@ var uv = {};
|
|
|
15412
15405
|
* @return {Howl}
|
|
15413
15406
|
*/
|
|
15414
15407
|
mute: function(c, d) {
|
|
15415
|
-
var
|
|
15416
|
-
if (
|
|
15417
|
-
return
|
|
15408
|
+
var m = this;
|
|
15409
|
+
if (m._state !== "loaded" || m._playLock)
|
|
15410
|
+
return m._queue.push({
|
|
15418
15411
|
event: "mute",
|
|
15419
15412
|
action: function() {
|
|
15420
|
-
|
|
15413
|
+
m.mute(c, d);
|
|
15421
15414
|
}
|
|
15422
|
-
}),
|
|
15415
|
+
}), m;
|
|
15423
15416
|
if (typeof d > "u")
|
|
15424
15417
|
if (typeof c == "boolean")
|
|
15425
|
-
|
|
15418
|
+
m._muted = c;
|
|
15426
15419
|
else
|
|
15427
|
-
return
|
|
15428
|
-
for (var _ =
|
|
15429
|
-
var b =
|
|
15430
|
-
b && (b._muted = c, b._interval &&
|
|
15420
|
+
return m._muted;
|
|
15421
|
+
for (var _ = m._getSoundIds(d), y = 0; y < _.length; y++) {
|
|
15422
|
+
var b = m._soundById(_[y]);
|
|
15423
|
+
b && (b._muted = c, b._interval && m._stopFade(b._id), m._webAudio && b._node ? b._node.gain.setValueAtTime(c ? 0 : b._volume, r.ctx.currentTime) : b._node && (b._node.muted = r._muted ? !0 : c), m._emit("mute", b._id));
|
|
15431
15424
|
}
|
|
15432
|
-
return
|
|
15425
|
+
return m;
|
|
15433
15426
|
},
|
|
15434
15427
|
/**
|
|
15435
15428
|
* Get/set the volume of this sound or of the Howl group. This method can optionally take 0, 1 or 2 arguments.
|
|
@@ -15440,16 +15433,16 @@ var uv = {};
|
|
|
15440
15433
|
* @return {Howl/Number} Returns self or current volume.
|
|
15441
15434
|
*/
|
|
15442
15435
|
volume: function() {
|
|
15443
|
-
var c = this, d = arguments,
|
|
15436
|
+
var c = this, d = arguments, m, _;
|
|
15444
15437
|
if (d.length === 0)
|
|
15445
15438
|
return c._volume;
|
|
15446
15439
|
if (d.length === 1 || d.length === 2 && typeof d[1] > "u") {
|
|
15447
15440
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15448
|
-
b >= 0 ? _ = parseInt(d[0], 10) :
|
|
15441
|
+
b >= 0 ? _ = parseInt(d[0], 10) : m = parseFloat(d[0]);
|
|
15449
15442
|
} else
|
|
15450
|
-
d.length >= 2 && (
|
|
15443
|
+
d.length >= 2 && (m = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15451
15444
|
var x;
|
|
15452
|
-
if (typeof
|
|
15445
|
+
if (typeof m < "u" && m >= 0 && m <= 1) {
|
|
15453
15446
|
if (c._state !== "loaded" || c._playLock)
|
|
15454
15447
|
return c._queue.push({
|
|
15455
15448
|
event: "volume",
|
|
@@ -15457,9 +15450,9 @@ var uv = {};
|
|
|
15457
15450
|
c.volume.apply(c, d);
|
|
15458
15451
|
}
|
|
15459
15452
|
}), c;
|
|
15460
|
-
typeof _ > "u" && (c._volume =
|
|
15453
|
+
typeof _ > "u" && (c._volume = m), _ = c._getSoundIds(_);
|
|
15461
15454
|
for (var E = 0; E < _.length; E++)
|
|
15462
|
-
x = c._soundById(_[E]), x && (x._volume =
|
|
15455
|
+
x = c._soundById(_[E]), x && (x._volume = m, d[2] || c._stopFade(_[E]), c._webAudio && x._node && !x._muted ? x._node.gain.setValueAtTime(m, r.ctx.currentTime) : x._node && !x._muted && (x._node.volume = m * r.volume()), c._emit("volume", x._id));
|
|
15463
15456
|
} else
|
|
15464
15457
|
return x = _ ? c._soundById(_) : c._sounds[0], x ? x._volume : 0;
|
|
15465
15458
|
return c;
|
|
@@ -15472,24 +15465,24 @@ var uv = {};
|
|
|
15472
15465
|
* @param {Number} id The sound id (omit to fade all sounds).
|
|
15473
15466
|
* @return {Howl}
|
|
15474
15467
|
*/
|
|
15475
|
-
fade: function(c, d,
|
|
15468
|
+
fade: function(c, d, m, _) {
|
|
15476
15469
|
var y = this;
|
|
15477
15470
|
if (y._state !== "loaded" || y._playLock)
|
|
15478
15471
|
return y._queue.push({
|
|
15479
15472
|
event: "fade",
|
|
15480
15473
|
action: function() {
|
|
15481
|
-
y.fade(c, d,
|
|
15474
|
+
y.fade(c, d, m, _);
|
|
15482
15475
|
}
|
|
15483
15476
|
}), y;
|
|
15484
|
-
c = Math.min(Math.max(0, parseFloat(c)), 1), d = Math.min(Math.max(0, parseFloat(d)), 1),
|
|
15477
|
+
c = Math.min(Math.max(0, parseFloat(c)), 1), d = Math.min(Math.max(0, parseFloat(d)), 1), m = parseFloat(m), y.volume(c, _);
|
|
15485
15478
|
for (var b = y._getSoundIds(_), x = 0; x < b.length; x++) {
|
|
15486
15479
|
var E = y._soundById(b[x]);
|
|
15487
15480
|
if (E) {
|
|
15488
15481
|
if (_ || y._stopFade(b[x]), y._webAudio && !E._muted) {
|
|
15489
|
-
var w = r.ctx.currentTime, I = w +
|
|
15482
|
+
var w = r.ctx.currentTime, I = w + m / 1e3;
|
|
15490
15483
|
E._volume = c, E._node.gain.setValueAtTime(c, w), E._node.gain.linearRampToValueAtTime(d, I);
|
|
15491
15484
|
}
|
|
15492
|
-
y._startFadeInterval(E, c, d,
|
|
15485
|
+
y._startFadeInterval(E, c, d, m, b[x], typeof _ > "u");
|
|
15493
15486
|
}
|
|
15494
15487
|
}
|
|
15495
15488
|
return y;
|
|
@@ -15503,11 +15496,11 @@ var uv = {};
|
|
|
15503
15496
|
* @param {Number} id The sound id to fade.
|
|
15504
15497
|
* @param {Boolean} isGroup If true, set the volume on the group.
|
|
15505
15498
|
*/
|
|
15506
|
-
_startFadeInterval: function(c, d,
|
|
15507
|
-
var x = this, E = d, w =
|
|
15508
|
-
c._fadeTo =
|
|
15499
|
+
_startFadeInterval: function(c, d, m, _, y, b) {
|
|
15500
|
+
var x = this, E = d, w = m - d, I = Math.abs(w / 0.01), O = Math.max(4, I > 0 ? _ / I : _), F = Date.now();
|
|
15501
|
+
c._fadeTo = m, c._interval = setInterval(function() {
|
|
15509
15502
|
var N = (Date.now() - F) / _;
|
|
15510
|
-
F = Date.now(), E += w * N, E = Math.round(E * 100) / 100, w < 0 ? E = Math.max(
|
|
15503
|
+
F = Date.now(), E += w * N, E = Math.round(E * 100) / 100, w < 0 ? E = Math.max(m, E) : E = Math.min(m, E), x._webAudio ? c._volume = E : x.volume(E, c._id, !0), b && (x._volume = E), (m < d && E <= m || m > d && E >= m) && (clearInterval(c._interval), c._interval = null, c._fadeTo = null, x.volume(m, c._id), x._emit("fade", c._id));
|
|
15511
15504
|
}, O);
|
|
15512
15505
|
},
|
|
15513
15506
|
/**
|
|
@@ -15517,8 +15510,8 @@ var uv = {};
|
|
|
15517
15510
|
* @return {Howl}
|
|
15518
15511
|
*/
|
|
15519
15512
|
_stopFade: function(c) {
|
|
15520
|
-
var d = this,
|
|
15521
|
-
return
|
|
15513
|
+
var d = this, m = d._soundById(c);
|
|
15514
|
+
return m && m._interval && (d._webAudio && m._node.gain.cancelScheduledValues(r.ctx.currentTime), clearInterval(m._interval), m._interval = null, d.volume(m._fadeTo, c), m._fadeTo = null, d._emit("fade", c)), d;
|
|
15522
15515
|
},
|
|
15523
15516
|
/**
|
|
15524
15517
|
* Get/set the loop parameter on a sound. This method can optionally take 0, 1 or 2 arguments.
|
|
@@ -15529,18 +15522,18 @@ var uv = {};
|
|
|
15529
15522
|
* @return {Howl/Boolean} Returns self or current loop value.
|
|
15530
15523
|
*/
|
|
15531
15524
|
loop: function() {
|
|
15532
|
-
var c = this, d = arguments,
|
|
15525
|
+
var c = this, d = arguments, m, _, y;
|
|
15533
15526
|
if (d.length === 0)
|
|
15534
15527
|
return c._loop;
|
|
15535
15528
|
if (d.length === 1)
|
|
15536
15529
|
if (typeof d[0] == "boolean")
|
|
15537
|
-
|
|
15530
|
+
m = d[0], c._loop = m;
|
|
15538
15531
|
else
|
|
15539
15532
|
return y = c._soundById(parseInt(d[0], 10)), y ? y._loop : !1;
|
|
15540
15533
|
else
|
|
15541
|
-
d.length === 2 && (
|
|
15534
|
+
d.length === 2 && (m = d[0], _ = parseInt(d[1], 10));
|
|
15542
15535
|
for (var b = c._getSoundIds(_), x = 0; x < b.length; x++)
|
|
15543
|
-
y = c._soundById(b[x]), y && (y._loop =
|
|
15536
|
+
y = c._soundById(b[x]), y && (y._loop = m, c._webAudio && y._node && y._node.bufferSource && (y._node.bufferSource.loop = m, m && (y._node.bufferSource.loopStart = y._start || 0, y._node.bufferSource.loopEnd = y._stop, c.playing(b[x]) && (c.pause(b[x], !0), c.play(b[x], !0)))));
|
|
15544
15537
|
return c;
|
|
15545
15538
|
},
|
|
15546
15539
|
/**
|
|
@@ -15552,16 +15545,16 @@ var uv = {};
|
|
|
15552
15545
|
* @return {Howl/Number} Returns self or the current playback rate.
|
|
15553
15546
|
*/
|
|
15554
15547
|
rate: function() {
|
|
15555
|
-
var c = this, d = arguments,
|
|
15548
|
+
var c = this, d = arguments, m, _;
|
|
15556
15549
|
if (d.length === 0)
|
|
15557
15550
|
_ = c._sounds[0]._id;
|
|
15558
15551
|
else if (d.length === 1) {
|
|
15559
15552
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15560
|
-
b >= 0 ? _ = parseInt(d[0], 10) :
|
|
15553
|
+
b >= 0 ? _ = parseInt(d[0], 10) : m = parseFloat(d[0]);
|
|
15561
15554
|
} else
|
|
15562
|
-
d.length === 2 && (
|
|
15555
|
+
d.length === 2 && (m = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15563
15556
|
var x;
|
|
15564
|
-
if (typeof
|
|
15557
|
+
if (typeof m == "number") {
|
|
15565
15558
|
if (c._state !== "loaded" || c._playLock)
|
|
15566
15559
|
return c._queue.push({
|
|
15567
15560
|
event: "rate",
|
|
@@ -15569,10 +15562,10 @@ var uv = {};
|
|
|
15569
15562
|
c.rate.apply(c, d);
|
|
15570
15563
|
}
|
|
15571
15564
|
}), c;
|
|
15572
|
-
typeof _ > "u" && (c._rate =
|
|
15565
|
+
typeof _ > "u" && (c._rate = m), _ = c._getSoundIds(_);
|
|
15573
15566
|
for (var E = 0; E < _.length; E++)
|
|
15574
15567
|
if (x = c._soundById(_[E]), x) {
|
|
15575
|
-
c.playing(_[E]) && (x._rateSeek = c.seek(_[E]), x._playStart = c._webAudio ? r.ctx.currentTime : x._playStart), x._rate =
|
|
15568
|
+
c.playing(_[E]) && (x._rateSeek = c.seek(_[E]), x._playStart = c._webAudio ? r.ctx.currentTime : x._playStart), x._rate = m, c._webAudio && x._node && x._node.bufferSource ? x._node.bufferSource.playbackRate.setValueAtTime(m, r.ctx.currentTime) : x._node && (x._node.playbackRate = m);
|
|
15576
15569
|
var w = c.seek(_[E]), I = (c._sprite[x._sprite][0] + c._sprite[x._sprite][1]) / 1e3 - w, O = I * 1e3 / Math.abs(x._rate);
|
|
15577
15570
|
(c._endTimers[_[E]] || !x._paused) && (c._clearTimer(_[E]), c._endTimers[_[E]] = setTimeout(c._ended.bind(c, x), O)), c._emit("rate", x._id);
|
|
15578
15571
|
}
|
|
@@ -15589,17 +15582,17 @@ var uv = {};
|
|
|
15589
15582
|
* @return {Howl/Number} Returns self or the current seek position.
|
|
15590
15583
|
*/
|
|
15591
15584
|
seek: function() {
|
|
15592
|
-
var c = this, d = arguments,
|
|
15585
|
+
var c = this, d = arguments, m, _;
|
|
15593
15586
|
if (d.length === 0)
|
|
15594
15587
|
c._sounds.length && (_ = c._sounds[0]._id);
|
|
15595
15588
|
else if (d.length === 1) {
|
|
15596
15589
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15597
|
-
b >= 0 ? _ = parseInt(d[0], 10) : c._sounds.length && (_ = c._sounds[0]._id,
|
|
15590
|
+
b >= 0 ? _ = parseInt(d[0], 10) : c._sounds.length && (_ = c._sounds[0]._id, m = parseFloat(d[0]));
|
|
15598
15591
|
} else
|
|
15599
|
-
d.length === 2 && (
|
|
15592
|
+
d.length === 2 && (m = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15600
15593
|
if (typeof _ > "u")
|
|
15601
15594
|
return 0;
|
|
15602
|
-
if (typeof
|
|
15595
|
+
if (typeof m == "number" && (c._state !== "loaded" || c._playLock))
|
|
15603
15596
|
return c._queue.push({
|
|
15604
15597
|
event: "seek",
|
|
15605
15598
|
action: function() {
|
|
@@ -15608,9 +15601,9 @@ var uv = {};
|
|
|
15608
15601
|
}), c;
|
|
15609
15602
|
var x = c._soundById(_);
|
|
15610
15603
|
if (x)
|
|
15611
|
-
if (typeof
|
|
15604
|
+
if (typeof m == "number" && m >= 0) {
|
|
15612
15605
|
var E = c.playing(_);
|
|
15613
|
-
E && c.pause(_, !0), x._seek =
|
|
15606
|
+
E && c.pause(_, !0), x._seek = m, x._ended = !1, c._clearTimer(_), !c._webAudio && x._node && !isNaN(x._node.duration) && (x._node.currentTime = m);
|
|
15614
15607
|
var w = function() {
|
|
15615
15608
|
E && c.play(_, !0), c._emit("seek", _);
|
|
15616
15609
|
};
|
|
@@ -15636,8 +15629,8 @@ var uv = {};
|
|
|
15636
15629
|
playing: function(c) {
|
|
15637
15630
|
var d = this;
|
|
15638
15631
|
if (typeof c == "number") {
|
|
15639
|
-
var
|
|
15640
|
-
return
|
|
15632
|
+
var m = d._soundById(c);
|
|
15633
|
+
return m ? !m._paused : !1;
|
|
15641
15634
|
}
|
|
15642
15635
|
for (var _ = 0; _ < d._sounds.length; _++)
|
|
15643
15636
|
if (!d._sounds[_]._paused)
|
|
@@ -15650,8 +15643,8 @@ var uv = {};
|
|
|
15650
15643
|
* @return {Number} Audio duration in seconds.
|
|
15651
15644
|
*/
|
|
15652
15645
|
duration: function(c) {
|
|
15653
|
-
var d = this,
|
|
15654
|
-
return _ && (
|
|
15646
|
+
var d = this, m = d._duration, _ = d._soundById(c);
|
|
15647
|
+
return _ && (m = d._sprite[_._sprite][1] / 1e3), m;
|
|
15655
15648
|
},
|
|
15656
15649
|
/**
|
|
15657
15650
|
* Returns the current loaded state of this Howl.
|
|
@@ -15665,13 +15658,13 @@ var uv = {};
|
|
|
15665
15658
|
* This will immediately stop all sound instances attached to this group.
|
|
15666
15659
|
*/
|
|
15667
15660
|
unload: function() {
|
|
15668
|
-
for (var c = this, d = c._sounds,
|
|
15669
|
-
d[
|
|
15661
|
+
for (var c = this, d = c._sounds, m = 0; m < d.length; m++)
|
|
15662
|
+
d[m]._paused || c.stop(d[m]._id), c._webAudio || (c._clearSound(d[m]._node), d[m]._node.removeEventListener("error", d[m]._errorFn, !1), d[m]._node.removeEventListener(r._canPlayEvent, d[m]._loadFn, !1), d[m]._node.removeEventListener("ended", d[m]._endFn, !1), r._releaseHtml5Audio(d[m]._node)), delete d[m]._node, c._clearTimer(d[m]._id);
|
|
15670
15663
|
var _ = r._howls.indexOf(c);
|
|
15671
15664
|
_ >= 0 && r._howls.splice(_, 1);
|
|
15672
15665
|
var y = !0;
|
|
15673
|
-
for (
|
|
15674
|
-
if (r._howls[
|
|
15666
|
+
for (m = 0; m < r._howls.length; m++)
|
|
15667
|
+
if (r._howls[m]._src === c._src || c._src.indexOf(r._howls[m]._src) >= 0) {
|
|
15675
15668
|
y = !1;
|
|
15676
15669
|
break;
|
|
15677
15670
|
}
|
|
@@ -15685,9 +15678,9 @@ var uv = {};
|
|
|
15685
15678
|
* @param {Number} once (INTERNAL) Marks event to fire only once.
|
|
15686
15679
|
* @return {Howl}
|
|
15687
15680
|
*/
|
|
15688
|
-
on: function(c, d,
|
|
15681
|
+
on: function(c, d, m, _) {
|
|
15689
15682
|
var y = this, b = y["_on" + c];
|
|
15690
|
-
return typeof d == "function" && b.push(_ ? { id:
|
|
15683
|
+
return typeof d == "function" && b.push(_ ? { id: m, fn: d, once: _ } : { id: m, fn: d }), y;
|
|
15691
15684
|
},
|
|
15692
15685
|
/**
|
|
15693
15686
|
* Remove a custom event. Call without parameters to remove all events.
|
|
@@ -15696,11 +15689,11 @@ var uv = {};
|
|
|
15696
15689
|
* @param {Number} id (optional) Only remove events for this sound.
|
|
15697
15690
|
* @return {Howl}
|
|
15698
15691
|
*/
|
|
15699
|
-
off: function(c, d,
|
|
15692
|
+
off: function(c, d, m) {
|
|
15700
15693
|
var _ = this, y = _["_on" + c], b = 0;
|
|
15701
|
-
if (typeof d == "number" && (
|
|
15694
|
+
if (typeof d == "number" && (m = d, d = null), d || m)
|
|
15702
15695
|
for (b = 0; b < y.length; b++) {
|
|
15703
|
-
var x =
|
|
15696
|
+
var x = m === y[b].id;
|
|
15704
15697
|
if (d === y[b].fn && x || !d && x) {
|
|
15705
15698
|
y.splice(b, 1);
|
|
15706
15699
|
break;
|
|
@@ -15722,9 +15715,9 @@ var uv = {};
|
|
|
15722
15715
|
* @param {Number} id (optional) Only listen to events for this sound.
|
|
15723
15716
|
* @return {Howl}
|
|
15724
15717
|
*/
|
|
15725
|
-
once: function(c, d,
|
|
15718
|
+
once: function(c, d, m) {
|
|
15726
15719
|
var _ = this;
|
|
15727
|
-
return _.on(c, d,
|
|
15720
|
+
return _.on(c, d, m, 1), _;
|
|
15728
15721
|
},
|
|
15729
15722
|
/**
|
|
15730
15723
|
* Emit all events of a specific type and pass the sound id.
|
|
@@ -15733,10 +15726,10 @@ var uv = {};
|
|
|
15733
15726
|
* @param {Number} msg Message to go with event.
|
|
15734
15727
|
* @return {Howl}
|
|
15735
15728
|
*/
|
|
15736
|
-
_emit: function(c, d,
|
|
15729
|
+
_emit: function(c, d, m) {
|
|
15737
15730
|
for (var _ = this, y = _["_on" + c], b = y.length - 1; b >= 0; b--)
|
|
15738
15731
|
(!y[b].id || y[b].id === d || c === "load") && (setTimeout((function(x) {
|
|
15739
|
-
x.call(this, d,
|
|
15732
|
+
x.call(this, d, m);
|
|
15740
15733
|
}).bind(_, y[b].fn), 0), y[b].once && _.off(c, y[b].fn, y[b].id));
|
|
15741
15734
|
return _._loadQueue(c), _;
|
|
15742
15735
|
},
|
|
@@ -15749,8 +15742,8 @@ var uv = {};
|
|
|
15749
15742
|
_loadQueue: function(c) {
|
|
15750
15743
|
var d = this;
|
|
15751
15744
|
if (d._queue.length > 0) {
|
|
15752
|
-
var
|
|
15753
|
-
|
|
15745
|
+
var m = d._queue[0];
|
|
15746
|
+
m.event === c && (d._queue.shift(), d._loadQueue()), c || m.action();
|
|
15754
15747
|
}
|
|
15755
15748
|
return d;
|
|
15756
15749
|
},
|
|
@@ -15760,10 +15753,10 @@ var uv = {};
|
|
|
15760
15753
|
* @return {Howl}
|
|
15761
15754
|
*/
|
|
15762
15755
|
_ended: function(c) {
|
|
15763
|
-
var d = this,
|
|
15756
|
+
var d = this, m = c._sprite;
|
|
15764
15757
|
if (!d._webAudio && c._node && !c._node.paused && !c._node.ended && c._node.currentTime < c._stop)
|
|
15765
15758
|
return setTimeout(d._ended.bind(d, c), 100), d;
|
|
15766
|
-
var _ = !!(c._loop || d._sprite[
|
|
15759
|
+
var _ = !!(c._loop || d._sprite[m][2]);
|
|
15767
15760
|
if (d._emit("end", c._id), !d._webAudio && _ && d.stop(c._id, !0).play(c._id), d._webAudio && _) {
|
|
15768
15761
|
d._emit("play", c._id), c._seek = c._start || 0, c._rateSeek = 0, c._playStart = r.ctx.currentTime;
|
|
15769
15762
|
var y = (c._stop - c._start) * 1e3 / Math.abs(c._rate);
|
|
@@ -15782,8 +15775,8 @@ var uv = {};
|
|
|
15782
15775
|
if (typeof d._endTimers[c] != "function")
|
|
15783
15776
|
clearTimeout(d._endTimers[c]);
|
|
15784
15777
|
else {
|
|
15785
|
-
var
|
|
15786
|
-
|
|
15778
|
+
var m = d._soundById(c);
|
|
15779
|
+
m && m._node && m._node.removeEventListener("ended", d._endTimers[c], !1);
|
|
15787
15780
|
}
|
|
15788
15781
|
delete d._endTimers[c];
|
|
15789
15782
|
}
|
|
@@ -15795,9 +15788,9 @@ var uv = {};
|
|
|
15795
15788
|
* @return {Object} Sound object or null.
|
|
15796
15789
|
*/
|
|
15797
15790
|
_soundById: function(c) {
|
|
15798
|
-
for (var d = this,
|
|
15799
|
-
if (c === d._sounds[
|
|
15800
|
-
return d._sounds[
|
|
15791
|
+
for (var d = this, m = 0; m < d._sounds.length; m++)
|
|
15792
|
+
if (c === d._sounds[m]._id)
|
|
15793
|
+
return d._sounds[m];
|
|
15801
15794
|
return null;
|
|
15802
15795
|
},
|
|
15803
15796
|
/**
|
|
@@ -15816,14 +15809,14 @@ var uv = {};
|
|
|
15816
15809
|
* Drain excess inactive sounds from the pool.
|
|
15817
15810
|
*/
|
|
15818
15811
|
_drain: function() {
|
|
15819
|
-
var c = this, d = c._pool,
|
|
15812
|
+
var c = this, d = c._pool, m = 0, _ = 0;
|
|
15820
15813
|
if (!(c._sounds.length < d)) {
|
|
15821
15814
|
for (_ = 0; _ < c._sounds.length; _++)
|
|
15822
|
-
c._sounds[_]._ended &&
|
|
15815
|
+
c._sounds[_]._ended && m++;
|
|
15823
15816
|
for (_ = c._sounds.length - 1; _ >= 0; _--) {
|
|
15824
|
-
if (
|
|
15817
|
+
if (m <= d)
|
|
15825
15818
|
return;
|
|
15826
|
-
c._sounds[_]._ended && (c._webAudio && c._sounds[_]._node && c._sounds[_]._node.disconnect(0), c._sounds.splice(_, 1),
|
|
15819
|
+
c._sounds[_]._ended && (c._webAudio && c._sounds[_]._node && c._sounds[_]._node.disconnect(0), c._sounds.splice(_, 1), m--);
|
|
15827
15820
|
}
|
|
15828
15821
|
}
|
|
15829
15822
|
},
|
|
@@ -15835,9 +15828,9 @@ var uv = {};
|
|
|
15835
15828
|
_getSoundIds: function(c) {
|
|
15836
15829
|
var d = this;
|
|
15837
15830
|
if (typeof c > "u") {
|
|
15838
|
-
for (var
|
|
15839
|
-
|
|
15840
|
-
return
|
|
15831
|
+
for (var m = [], _ = 0; _ < d._sounds.length; _++)
|
|
15832
|
+
m.push(d._sounds[_]._id);
|
|
15833
|
+
return m;
|
|
15841
15834
|
} else
|
|
15842
15835
|
return [c];
|
|
15843
15836
|
},
|
|
@@ -15856,8 +15849,8 @@ var uv = {};
|
|
|
15856
15849
|
* @return {Howl}
|
|
15857
15850
|
*/
|
|
15858
15851
|
_cleanBuffer: function(c) {
|
|
15859
|
-
var d = this,
|
|
15860
|
-
if (r._scratchBuffer && c.bufferSource && (c.bufferSource.onended = null, c.bufferSource.disconnect(0),
|
|
15852
|
+
var d = this, m = r._navigator && r._navigator.vendor.indexOf("Apple") >= 0;
|
|
15853
|
+
if (r._scratchBuffer && c.bufferSource && (c.bufferSource.onended = null, c.bufferSource.disconnect(0), m))
|
|
15861
15854
|
try {
|
|
15862
15855
|
c.bufferSource.buffer = r._scratchBuffer;
|
|
15863
15856
|
} catch {
|
|
@@ -15890,8 +15883,8 @@ var uv = {};
|
|
|
15890
15883
|
* @return {Sound}
|
|
15891
15884
|
*/
|
|
15892
15885
|
create: function() {
|
|
15893
|
-
var c = this, d = c._parent,
|
|
15894
|
-
return d._webAudio ? (c._node = typeof r.ctx.createGain > "u" ? r.ctx.createGainNode() : r.ctx.createGain(), c._node.gain.setValueAtTime(
|
|
15886
|
+
var c = this, d = c._parent, m = r._muted || c._muted || c._parent._muted ? 0 : c._volume;
|
|
15887
|
+
return d._webAudio ? (c._node = typeof r.ctx.createGain > "u" ? r.ctx.createGainNode() : r.ctx.createGain(), c._node.gain.setValueAtTime(m, r.ctx.currentTime), c._node.paused = !0, c._node.connect(r.masterGain)) : r.noAudio || (c._node = r._obtainHtml5Audio(), c._errorFn = c._errorListener.bind(c), c._node.addEventListener("error", c._errorFn, !1), c._loadFn = c._loadListener.bind(c), c._node.addEventListener(r._canPlayEvent, c._loadFn, !1), c._endFn = c._endListener.bind(c), c._node.addEventListener("ended", c._endFn, !1), c._node.src = d._src, c._node.preload = d._preload === !0 ? "auto" : d._preload, c._node.volume = m * r.volume(), c._node.load()), c;
|
|
15895
15888
|
},
|
|
15896
15889
|
/**
|
|
15897
15890
|
* Reset the parameters of this sound to the original state (for recycle).
|
|
@@ -15930,8 +15923,8 @@ var uv = {};
|
|
|
15930
15923
|
return;
|
|
15931
15924
|
}
|
|
15932
15925
|
if (/^data:[^;]+;base64,/.test(d)) {
|
|
15933
|
-
for (var
|
|
15934
|
-
_[y] =
|
|
15926
|
+
for (var m = atob(d.split(",")[1]), _ = new Uint8Array(m.length), y = 0; y < m.length; ++y)
|
|
15927
|
+
_[y] = m.charCodeAt(y);
|
|
15935
15928
|
f(_.buffer, c);
|
|
15936
15929
|
} else {
|
|
15937
15930
|
var b = new XMLHttpRequest();
|
|
@@ -15955,15 +15948,15 @@ var uv = {};
|
|
|
15955
15948
|
c.onerror();
|
|
15956
15949
|
}
|
|
15957
15950
|
}, f = function(c, d) {
|
|
15958
|
-
var
|
|
15951
|
+
var m = function() {
|
|
15959
15952
|
d._emit("loaderror", null, "Decoding audio data failed.");
|
|
15960
15953
|
}, _ = function(y) {
|
|
15961
|
-
y && d._sounds.length > 0 ? (a[d._src] = y, p(d, y)) :
|
|
15954
|
+
y && d._sounds.length > 0 ? (a[d._src] = y, p(d, y)) : m();
|
|
15962
15955
|
};
|
|
15963
|
-
typeof Promise < "u" && r.ctx.decodeAudioData.length === 1 ? r.ctx.decodeAudioData(c).then(_).catch(
|
|
15956
|
+
typeof Promise < "u" && r.ctx.decodeAudioData.length === 1 ? r.ctx.decodeAudioData(c).then(_).catch(m) : r.ctx.decodeAudioData(c, _, m);
|
|
15964
15957
|
}, p = function(c, d) {
|
|
15965
15958
|
d && !c._duration && (c._duration = d.duration), Object.keys(c._sprite).length === 0 && (c._sprite = { __default: [0, c._duration * 1e3] }), c._state !== "loaded" && (c._state = "loaded", c._emit("load"), c._loadQueue());
|
|
15966
|
-
},
|
|
15959
|
+
}, g = function() {
|
|
15967
15960
|
if (r.usingWebAudio) {
|
|
15968
15961
|
try {
|
|
15969
15962
|
typeof AudioContext < "u" ? r.ctx = new AudioContext() : typeof webkitAudioContext < "u" ? r.ctx = new webkitAudioContext() : r.usingWebAudio = !1;
|
|
@@ -15971,8 +15964,8 @@ var uv = {};
|
|
|
15971
15964
|
r.usingWebAudio = !1;
|
|
15972
15965
|
}
|
|
15973
15966
|
r.ctx || (r.usingWebAudio = !1);
|
|
15974
|
-
var c = /iP(hone|od|ad)/.test(r._navigator && r._navigator.platform), d = r._navigator && r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),
|
|
15975
|
-
if (c &&
|
|
15967
|
+
var c = /iP(hone|od|ad)/.test(r._navigator && r._navigator.platform), d = r._navigator && r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/), m = d ? parseInt(d[1], 10) : null;
|
|
15968
|
+
if (c && m && m < 9) {
|
|
15976
15969
|
var _ = /safari/.test(r._navigator && r._navigator.userAgent.toLowerCase());
|
|
15977
15970
|
r._navigator && !_ && (r.usingWebAudio = !1);
|
|
15978
15971
|
}
|
|
@@ -16153,8 +16146,8 @@ var uv = {};
|
|
|
16153
16146
|
rolloffFactor: typeof i.rolloffFactor < "u" ? i.rolloffFactor : p.rolloffFactor,
|
|
16154
16147
|
panningModel: typeof i.panningModel < "u" ? i.panningModel : p.panningModel
|
|
16155
16148
|
};
|
|
16156
|
-
var
|
|
16157
|
-
|
|
16149
|
+
var g = u._panner;
|
|
16150
|
+
g ? (g.coneInnerAngle = p.coneInnerAngle, g.coneOuterAngle = p.coneOuterAngle, g.coneOuterGain = p.coneOuterGain, g.distanceModel = p.distanceModel, g.maxDistance = p.maxDistance, g.refDistance = p.refDistance, g.rolloffFactor = p.rolloffFactor, g.panningModel = p.panningModel) : (u._pos || (u._pos = r._pos || [0, 0, -0.5]), e(u, "spatial"));
|
|
16158
16151
|
}
|
|
16159
16152
|
return r;
|
|
16160
16153
|
}, Sound.prototype.init = function(r) {
|
|
@@ -16185,10 +16178,10 @@ const hU = (t) => {
|
|
|
16185
16178
|
isDragging: !1
|
|
16186
16179
|
}, [, r] = te.useState(!1), n = pe(null), i = pe(e), a = pe(null), u = te.useRef(null), { tl: l, dragModeRef: f } = Gi(Yn), {
|
|
16187
16180
|
uniqueId: p,
|
|
16188
|
-
src:
|
|
16181
|
+
src: g,
|
|
16189
16182
|
startAt: c,
|
|
16190
16183
|
endAt: d,
|
|
16191
|
-
mute:
|
|
16184
|
+
mute: m,
|
|
16192
16185
|
speed: _,
|
|
16193
16186
|
audioStartAt: y,
|
|
16194
16187
|
audioEndAt: b,
|
|
@@ -16244,17 +16237,17 @@ const hU = (t) => {
|
|
|
16244
16237
|
};
|
|
16245
16238
|
}, [c, d, y, b]), te.useEffect(() => {
|
|
16246
16239
|
n.current && r(!0);
|
|
16247
|
-
}, []), te.useEffect(() => (Hs(
|
|
16248
|
-
src: [
|
|
16240
|
+
}, []), te.useEffect(() => (Hs(g) || (u.current = new uv.Howl({
|
|
16241
|
+
src: [g],
|
|
16249
16242
|
// sprite: {
|
|
16250
16243
|
// [uniqueId]: [audioStartAt * 1000, (audioEndAt - audioStartAt) * 1000],
|
|
16251
16244
|
// },
|
|
16252
16245
|
autoplay: !1,
|
|
16253
16246
|
loop: !1,
|
|
16254
16247
|
rate: _ || 1,
|
|
16255
|
-
volume: !
|
|
16248
|
+
volume: !m && x ? 1 : 0,
|
|
16256
16249
|
onload: () => {
|
|
16257
|
-
console.log("loaded audio sprite" + p), i.current.loaded = !0, u.current && (y > 0 && u.current.seek(y), u.current.volume(!
|
|
16250
|
+
console.log("loaded audio sprite" + p), i.current.loaded = !0, u.current && (y > 0 && u.current.seek(y), u.current.volume(!m && x ? 1 : 0), u.current.rate(_ || 1), u.current.pause(), i.current.isPlaying = !1, i.current.completed = !1);
|
|
16258
16251
|
},
|
|
16259
16252
|
onend: () => {
|
|
16260
16253
|
console.log("end of playing audio sprite" + p), i.current.isPlaying = !1, i.current.completed = !0;
|
|
@@ -16272,18 +16265,18 @@ const hU = (t) => {
|
|
|
16272
16265
|
u.current && u.current.unload();
|
|
16273
16266
|
}), [
|
|
16274
16267
|
p,
|
|
16275
|
-
|
|
16268
|
+
g,
|
|
16276
16269
|
c,
|
|
16277
16270
|
d,
|
|
16278
16271
|
y,
|
|
16279
16272
|
b,
|
|
16280
|
-
|
|
16273
|
+
m,
|
|
16281
16274
|
x,
|
|
16282
16275
|
_
|
|
16283
16276
|
]), te.useEffect(() => {
|
|
16284
|
-
u.current && (console.log("running updateEffect 2002", p, b), u.current.volume(!
|
|
16285
|
-
}, [
|
|
16286
|
-
/* @__PURE__ */
|
|
16277
|
+
u.current && (console.log("running updateEffect 2002", p, b), u.current.volume(!m && x ? 1 : 0), u.current.rate(_ || 1), i.current.isPlaying = !0);
|
|
16278
|
+
}, [m, x, _]), // @ts-ignore
|
|
16279
|
+
/* @__PURE__ */ Ae.jsx(wt, { ref: n });
|
|
16287
16280
|
};
|
|
16288
16281
|
function sk(t, e) {
|
|
16289
16282
|
for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; )
|
|
@@ -16302,15 +16295,15 @@ function ck(t, e, r, n) {
|
|
|
16302
16295
|
}
|
|
16303
16296
|
for (; ++i < a; ) {
|
|
16304
16297
|
l = r[i];
|
|
16305
|
-
var f = l[0], p = t[f],
|
|
16298
|
+
var f = l[0], p = t[f], g = l[1];
|
|
16306
16299
|
if (u && l[2]) {
|
|
16307
16300
|
if (p === void 0 && !(f in t))
|
|
16308
16301
|
return !1;
|
|
16309
16302
|
} else {
|
|
16310
16303
|
var c = new ak();
|
|
16311
16304
|
if (n)
|
|
16312
|
-
var d = n(p,
|
|
16313
|
-
if (!(d === void 0 ? ok(
|
|
16305
|
+
var d = n(p, g, f, t, e, c);
|
|
16306
|
+
if (!(d === void 0 ? ok(g, p, uk | lk, n, c) : d))
|
|
16314
16307
|
return !1;
|
|
16315
16308
|
}
|
|
16316
16309
|
}
|
|
@@ -16626,7 +16619,7 @@ dt.readBits = $B;
|
|
|
16626
16619
|
}), t.default = void 0;
|
|
16627
16620
|
var e = Jr, r = dt, n = {
|
|
16628
16621
|
blocks: function(d) {
|
|
16629
|
-
for (var
|
|
16622
|
+
for (var m = 0, _ = [], y = d.data.length, b = 0, x = (0, r.readByte)()(d); x !== m && x; x = (0, r.readByte)()(d)) {
|
|
16630
16623
|
if (d.pos + x >= y) {
|
|
16631
16624
|
var E = y - d.pos;
|
|
16632
16625
|
_.push((0, r.readBytes)(E)(d)), b += E;
|
|
@@ -16704,11 +16697,11 @@ dt.readBits = $B;
|
|
|
16704
16697
|
})
|
|
16705
16698
|
}]
|
|
16706
16699
|
}, (0, e.conditional)({
|
|
16707
|
-
lct: (0, r.readArray)(3, function(c, d,
|
|
16708
|
-
return Math.pow(2,
|
|
16700
|
+
lct: (0, r.readArray)(3, function(c, d, m) {
|
|
16701
|
+
return Math.pow(2, m.descriptor.lct.size + 1);
|
|
16709
16702
|
})
|
|
16710
|
-
}, function(c, d,
|
|
16711
|
-
return
|
|
16703
|
+
}, function(c, d, m) {
|
|
16704
|
+
return m.descriptor.lct.exists;
|
|
16712
16705
|
}), {
|
|
16713
16706
|
data: [{
|
|
16714
16707
|
minCodeSize: (0, r.readByte)()
|
|
@@ -16722,7 +16715,7 @@ dt.readBits = $B;
|
|
|
16722
16715
|
}, {
|
|
16723
16716
|
blockSize: (0, r.readByte)()
|
|
16724
16717
|
}, {
|
|
16725
|
-
preData: function(d,
|
|
16718
|
+
preData: function(d, m, _) {
|
|
16726
16719
|
return (0, r.readBytes)(_.text.blockSize)(d);
|
|
16727
16720
|
}
|
|
16728
16721
|
}, n]
|
|
@@ -16735,7 +16728,7 @@ dt.readBits = $B;
|
|
|
16735
16728
|
}, {
|
|
16736
16729
|
blockSize: (0, r.readByte)()
|
|
16737
16730
|
}, {
|
|
16738
|
-
id: function(d,
|
|
16731
|
+
id: function(d, m, _) {
|
|
16739
16732
|
return (0, r.readString)(_.blockSize)(d);
|
|
16740
16733
|
}
|
|
16741
16734
|
}, n]
|
|
@@ -16799,8 +16792,8 @@ dt.readBits = $B;
|
|
|
16799
16792
|
return d === 33 || d === 44;
|
|
16800
16793
|
})
|
|
16801
16794
|
}
|
|
16802
|
-
],
|
|
16803
|
-
t.default =
|
|
16795
|
+
], g = p;
|
|
16796
|
+
t.default = g;
|
|
16804
16797
|
})(mv);
|
|
16805
16798
|
var Qo = {};
|
|
16806
16799
|
Object.defineProperty(Qo, "__esModule", {
|
|
@@ -16808,12 +16801,12 @@ Object.defineProperty(Qo, "__esModule", {
|
|
|
16808
16801
|
});
|
|
16809
16802
|
Qo.deinterlace = void 0;
|
|
16810
16803
|
var GB = function(e, r) {
|
|
16811
|
-
for (var n = new Array(e.length), i = e.length / r, a = function(d,
|
|
16812
|
-
var _ = e.slice(
|
|
16804
|
+
for (var n = new Array(e.length), i = e.length / r, a = function(d, m) {
|
|
16805
|
+
var _ = e.slice(m * r, (m + 1) * r);
|
|
16813
16806
|
n.splice.apply(n, [d * r, r].concat(_));
|
|
16814
16807
|
}, u = [0, 4, 2, 1], l = [8, 8, 4, 2], f = 0, p = 0; p < 4; p++)
|
|
16815
|
-
for (var
|
|
16816
|
-
a(
|
|
16808
|
+
for (var g = u[p]; g < i; g += l[p])
|
|
16809
|
+
a(g, f), f++;
|
|
16817
16810
|
return n;
|
|
16818
16811
|
};
|
|
16819
16812
|
Qo.deinterlace = GB;
|
|
@@ -16823,29 +16816,29 @@ Object.defineProperty(Jo, "__esModule", {
|
|
|
16823
16816
|
});
|
|
16824
16817
|
Jo.lzw = void 0;
|
|
16825
16818
|
var HB = function(e, r, n) {
|
|
16826
|
-
var i = 4096, a = -1, u = n, l, f, p,
|
|
16827
|
-
for (b = e, f = 1 << b, c = f + 1, l = f + 2,
|
|
16819
|
+
var i = 4096, a = -1, u = n, l, f, p, g, c, d, m, F, _, y, O, b, N, L, V, D, x = new Array(n), E = new Array(i), w = new Array(i), I = new Array(i + 1);
|
|
16820
|
+
for (b = e, f = 1 << b, c = f + 1, l = f + 2, m = a, g = b + 1, p = (1 << g) - 1, _ = 0; _ < f; _++)
|
|
16828
16821
|
E[_] = 0, w[_] = _;
|
|
16829
16822
|
var O, F, N, L, D, V;
|
|
16830
16823
|
for (O = F = N = L = D = V = 0, y = 0; y < u; ) {
|
|
16831
16824
|
if (L === 0) {
|
|
16832
|
-
if (F <
|
|
16825
|
+
if (F < g) {
|
|
16833
16826
|
O += r[V] << F, F += 8, V++;
|
|
16834
16827
|
continue;
|
|
16835
16828
|
}
|
|
16836
|
-
if (_ = O & p, O >>=
|
|
16829
|
+
if (_ = O & p, O >>= g, F -= g, _ > l || _ == c)
|
|
16837
16830
|
break;
|
|
16838
16831
|
if (_ == f) {
|
|
16839
|
-
|
|
16832
|
+
g = b + 1, p = (1 << g) - 1, l = f + 2, m = a;
|
|
16840
16833
|
continue;
|
|
16841
16834
|
}
|
|
16842
|
-
if (
|
|
16843
|
-
I[L++] = w[_],
|
|
16835
|
+
if (m == a) {
|
|
16836
|
+
I[L++] = w[_], m = _, N = _;
|
|
16844
16837
|
continue;
|
|
16845
16838
|
}
|
|
16846
|
-
for (d = _, _ == l && (I[L++] = N, _ =
|
|
16839
|
+
for (d = _, _ == l && (I[L++] = N, _ = m); _ > f; )
|
|
16847
16840
|
I[L++] = w[_], _ = E[_];
|
|
16848
|
-
N = w[_] & 255, I[L++] = N, l < i && (E[l] =
|
|
16841
|
+
N = w[_] & 255, I[L++] = N, l < i && (E[l] = m, w[l] = N, l++, !(l & p) && l < i && (g++, p += l)), m = d;
|
|
16849
16842
|
}
|
|
16850
16843
|
L--, x[D++] = I[L], y++;
|
|
16851
16844
|
}
|
|
@@ -16992,7 +16985,7 @@ const r5 = (t) => ({
|
|
|
16992
16985
|
return;
|
|
16993
16986
|
const i = n.current;
|
|
16994
16987
|
i[t ? "gotoAndPlay" : "gotoAndStop"](i.currentFrame);
|
|
16995
|
-
}, [t]), /* @__PURE__ */
|
|
16988
|
+
}, [t]), /* @__PURE__ */ Ae.jsx(
|
|
16996
16989
|
nS,
|
|
16997
16990
|
{
|
|
16998
16991
|
ref: n,
|
|
@@ -17013,7 +17006,7 @@ var Io = { exports: {} };
|
|
|
17013
17006
|
Io.exports;
|
|
17014
17007
|
(function(t, e) {
|
|
17015
17008
|
(function() {
|
|
17016
|
-
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", l = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", p = 500,
|
|
17009
|
+
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", l = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", p = 500, g = "__lodash_placeholder__", c = 1, d = 2, m = 4, _ = 1, y = 2, b = 1, x = 2, E = 4, w = 8, I = 16, O = 32, F = 64, N = 128, L = 256, D = 512, V = 30, Y = "...", se = 800, X = 16, G = 1, ie = 2, re = 3, H = 1 / 0, Q = 9007199254740991, ge = 17976931348623157e292, W = 0 / 0, j = 4294967295, le = j - 1, he = j >>> 1, me = [
|
|
17017
17010
|
["ary", N],
|
|
17018
17011
|
["bind", b],
|
|
17019
17012
|
["bindKey", x],
|
|
@@ -17023,7 +17016,7 @@ Io.exports;
|
|
|
17023
17016
|
["partial", O],
|
|
17024
17017
|
["partialRight", F],
|
|
17025
17018
|
["rearg", L]
|
|
17026
|
-
], fe = "[object Arguments]",
|
|
17019
|
+
], fe = "[object Arguments]", Re = "[object Array]", Ue = "[object AsyncFunction]", He = "[object Boolean]", je = "[object Date]", be = "[object DOMException]", Ee = "[object Error]", $e = "[object Function]", Ke = "[object GeneratorFunction]", Se = "[object Map]", _e = "[object Number]", rt = "[object Null]", ce = "[object Object]", Oe = "[object Promise]", Xt = "[object Proxy]", Bt = "[object RegExp]", lt = "[object Set]", tr = "[object String]", Jn = "[object Symbol]", eu = "[object Undefined]", bn = "[object WeakMap]", fr = "[object WeakSet]", ei = "[object ArrayBuffer]", ti = "[object DataView]", tu = "[object Float32Array]", ru = "[object Float64Array]", nu = "[object Int8Array]", iu = "[object Int16Array]", su = "[object Int32Array]", au = "[object Uint8Array]", ou = "[object Uint8ClampedArray]", uu = "[object Uint16Array]", lu = "[object Uint32Array]", xv = /\b__p \+= '';/g, bv = /\b(__p \+=) '' \+/g, Tv = /(__e\(.*?\)|\b__t\)) \+\n'';/g, wh = /&(?:amp|lt|gt|quot|#39);/g, Sh = /[&<>"']/g, wv = RegExp(wh.source), Sv = RegExp(Sh.source), Av = /<%-([\s\S]+?)%>/g, Ev = /<%([\s\S]+?)%>/g, Ah = /<%=([\s\S]+?)%>/g, Cv = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Iv = /^\w*$/, Rv = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, cu = /[\\^$.*+?()[\]{}|]/g, Pv = RegExp(cu.source), hu = /^\s+/, Mv = /\s/, Ov = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Fv = /\{\n\/\* \[wrapped with (.+)\] \*/, Nv = /,? & /, Lv = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, kv = /[()=,{}\[\]\/\s]/, Dv = /\\(\\)?/g, Bv = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Eh = /\w*$/, Uv = /^[-+]0x[0-9a-f]+$/i, $v = /^0b[01]+$/i, Gv = /^\[object .+?Constructor\]$/, Hv = /^0o[0-7]+$/i, zv = /^(?:0|[1-9]\d*)$/, Vv = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ws = /($^)/, Xv = /['\n\r\u2028\u2029\\]/g, js = "\\ud800-\\udfff", Wv = "\\u0300-\\u036f", jv = "\\ufe20-\\ufe2f", qv = "\\u20d0-\\u20ff", Ch = Wv + jv + qv, Ih = "\\u2700-\\u27bf", Rh = "a-z\\xdf-\\xf6\\xf8-\\xff", Yv = "\\xac\\xb1\\xd7\\xf7", Kv = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Zv = "\\u2000-\\u206f", Qv = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Ph = "A-Z\\xc0-\\xd6\\xd8-\\xde", Mh = "\\ufe0e\\ufe0f", Oh = Yv + Kv + Zv + Qv, fu = "['’]", Jv = "[" + js + "]", Fh = "[" + Oh + "]", qs = "[" + Ch + "]", Nh = "\\d+", e_ = "[" + Ih + "]", Lh = "[" + Rh + "]", kh = "[^" + js + Oh + Nh + Ih + Rh + Ph + "]", du = "\\ud83c[\\udffb-\\udfff]", t_ = "(?:" + qs + "|" + du + ")", Dh = "[^" + js + "]", pu = "(?:\\ud83c[\\udde6-\\uddff]){2}", gu = "[\\ud800-\\udbff][\\udc00-\\udfff]", ri = "[" + Ph + "]", Bh = "\\u200d", Uh = "(?:" + Lh + "|" + kh + ")", r_ = "(?:" + ri + "|" + kh + ")", $h = "(?:" + fu + "(?:d|ll|m|re|s|t|ve))?", Gh = "(?:" + fu + "(?:D|LL|M|RE|S|T|VE))?", Hh = t_ + "?", zh = "[" + Mh + "]?", n_ = "(?:" + Bh + "(?:" + [Dh, pu, gu].join("|") + ")" + zh + Hh + ")*", i_ = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", s_ = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Vh = zh + Hh + n_, a_ = "(?:" + [e_, pu, gu].join("|") + ")" + Vh, o_ = "(?:" + [Dh + qs + "?", qs, pu, gu, Jv].join("|") + ")", u_ = RegExp(fu, "g"), l_ = RegExp(qs, "g"), mu = RegExp(du + "(?=" + du + ")|" + o_ + Vh, "g"), c_ = RegExp([
|
|
17027
17020
|
ri + "?" + Lh + "+" + $h + "(?=" + [Fh, ri, "$"].join("|") + ")",
|
|
17028
17021
|
r_ + "+" + Gh + "(?=" + [Fh, ri + Uh, "$"].join("|") + ")",
|
|
17029
17022
|
ri + "?" + Uh + "+" + $h,
|
|
@@ -17064,9 +17057,9 @@ Io.exports;
|
|
|
17064
17057
|
"parseInt",
|
|
17065
17058
|
"setTimeout"
|
|
17066
17059
|
], p_ = -1, et = {};
|
|
17067
|
-
et[tu] = et[ru] = et[nu] = et[iu] = et[su] = et[au] = et[ou] = et[uu] = et[lu] = !0, et[fe] = et[
|
|
17060
|
+
et[tu] = et[ru] = et[nu] = et[iu] = et[su] = et[au] = et[ou] = et[uu] = et[lu] = !0, et[fe] = et[Re] = et[ei] = et[He] = et[ti] = et[je] = et[Ee] = et[$e] = et[Se] = et[_e] = et[ce] = et[Bt] = et[lt] = et[tr] = et[bn] = !1;
|
|
17068
17061
|
var Ze = {};
|
|
17069
|
-
Ze[fe] = Ze[
|
|
17062
|
+
Ze[fe] = Ze[Re] = Ze[ei] = Ze[ti] = Ze[He] = Ze[je] = Ze[tu] = Ze[ru] = Ze[nu] = Ze[iu] = Ze[su] = Ze[Se] = Ze[_e] = Ze[ce] = Ze[Bt] = Ze[lt] = Ze[tr] = Ze[Jn] = Ze[au] = Ze[ou] = Ze[uu] = Ze[lu] = !0, Ze[Ee] = Ze[$e] = Ze[bn] = !1;
|
|
17070
17063
|
var g_ = {
|
|
17071
17064
|
// Latin-1 Supplement block.
|
|
17072
17065
|
À: "A",
|
|
@@ -17504,7 +17497,7 @@ Io.exports;
|
|
|
17504
17497
|
function rn(P, B) {
|
|
17505
17498
|
for (var k = -1, Z = P.length, ve = 0, Ge = []; ++k < Z; ) {
|
|
17506
17499
|
var mt = P[k];
|
|
17507
|
-
(mt === B || mt ===
|
|
17500
|
+
(mt === B || mt === g) && (P[k] = g, Ge[ve++] = k);
|
|
17508
17501
|
}
|
|
17509
17502
|
return Ge;
|
|
17510
17503
|
}
|
|
@@ -17665,7 +17658,7 @@ Io.exports;
|
|
|
17665
17658
|
for (; M-- && q < ee; ) {
|
|
17666
17659
|
U += o;
|
|
17667
17660
|
for (var Te = -1, ue = s[U]; ++Te < z; ) {
|
|
17668
|
-
var
|
|
17661
|
+
var Ce = $[Te], Fe = Ce.iteratee, Kt = Ce.type, Lt = Fe(ue);
|
|
17669
17662
|
if (Kt == ie)
|
|
17670
17663
|
ue = Lt;
|
|
17671
17664
|
else if (!Lt) {
|
|
@@ -17869,7 +17862,7 @@ Io.exports;
|
|
|
17869
17862
|
return s === s && (h !== r && (s = s <= h ? s : h), o !== r && (s = s >= o ? s : o)), s;
|
|
17870
17863
|
}
|
|
17871
17864
|
function ar(s, o, h, v, T, A) {
|
|
17872
|
-
var C, R = o & c, M = o & d, U = o &
|
|
17865
|
+
var C, R = o & c, M = o & d, U = o & m;
|
|
17873
17866
|
if (h && (C = T ? h(s, v, T, A) : h(s)), C !== r)
|
|
17874
17867
|
return C;
|
|
17875
17868
|
if (!st(s))
|
|
@@ -17897,12 +17890,12 @@ Io.exports;
|
|
|
17897
17890
|
return ee;
|
|
17898
17891
|
A.set(s, C), Bd(s) ? s.forEach(function(ue) {
|
|
17899
17892
|
C.add(ar(ue, o, h, ue, s, A));
|
|
17900
|
-
}) : kd(s) && s.forEach(function(ue,
|
|
17901
|
-
C.set(
|
|
17893
|
+
}) : kd(s) && s.forEach(function(ue, Ce) {
|
|
17894
|
+
C.set(Ce, ar(ue, o, h, Ce, s, A));
|
|
17902
17895
|
});
|
|
17903
17896
|
var oe = U ? M ? Ju : Qu : M ? Gt : yt, Te = $ ? r : oe(s);
|
|
17904
|
-
return nr(Te || s, function(ue,
|
|
17905
|
-
Te && (
|
|
17897
|
+
return nr(Te || s, function(ue, Ce) {
|
|
17898
|
+
Te && (Ce = ue, ue = s[Ce]), rs(C, Ce, ar(ue, o, h, Ce, s, A));
|
|
17906
17899
|
}), C;
|
|
17907
17900
|
}
|
|
17908
17901
|
function Gy(s) {
|
|
@@ -18063,7 +18056,7 @@ Io.exports;
|
|
|
18063
18056
|
return s === o ? !0 : s == null || o == null || !ct(s) && !ct(o) ? s !== s && o !== o : Ky(s, o, h, v, ss, T);
|
|
18064
18057
|
}
|
|
18065
18058
|
function Ky(s, o, h, v, T, A) {
|
|
18066
|
-
var C = ye(s), R = ye(o), M = C ?
|
|
18059
|
+
var C = ye(s), R = ye(o), M = C ? Re : Rt(s), U = R ? Re : Rt(o);
|
|
18067
18060
|
M = M == fe ? ce : M, U = U == fe ? ce : U;
|
|
18068
18061
|
var $ = M == ce, z = U == ce, q = M == U;
|
|
18069
18062
|
if (q && ln(s)) {
|
|
@@ -18083,7 +18076,7 @@ Io.exports;
|
|
|
18083
18076
|
return q ? (A || (A = new pr()), Sx(s, o, h, v, T, A)) : !1;
|
|
18084
18077
|
}
|
|
18085
18078
|
function Zy(s) {
|
|
18086
|
-
return ct(s) && Rt(s) ==
|
|
18079
|
+
return ct(s) && Rt(s) == Se;
|
|
18087
18080
|
}
|
|
18088
18081
|
function Bu(s, o, h, v) {
|
|
18089
18082
|
var T = h.length, A = T, C = !v;
|
|
@@ -18262,7 +18255,7 @@ Io.exports;
|
|
|
18262
18255
|
while (o);
|
|
18263
18256
|
return h;
|
|
18264
18257
|
}
|
|
18265
|
-
function
|
|
18258
|
+
function we(s, o) {
|
|
18266
18259
|
return al(fd(s, o, Ht), s + "");
|
|
18267
18260
|
}
|
|
18268
18261
|
function ax(s) {
|
|
@@ -18429,7 +18422,7 @@ Io.exports;
|
|
|
18429
18422
|
function on(s, o) {
|
|
18430
18423
|
return ye(s) ? s : nl(s, o) ? [s] : vd(ze(s));
|
|
18431
18424
|
}
|
|
18432
|
-
var hx =
|
|
18425
|
+
var hx = we;
|
|
18433
18426
|
function un(s, o, h) {
|
|
18434
18427
|
var v = s.length;
|
|
18435
18428
|
return h = h === r ? v : h, !o && h >= v ? s : or(s, o, h);
|
|
@@ -18530,7 +18523,7 @@ Io.exports;
|
|
|
18530
18523
|
};
|
|
18531
18524
|
}
|
|
18532
18525
|
function hi(s) {
|
|
18533
|
-
return
|
|
18526
|
+
return we(function(o, h) {
|
|
18534
18527
|
var v = -1, T = h.length, A = T > 1 ? h[T - 1] : r, C = T > 2 ? h[2] : r;
|
|
18535
18528
|
for (A = s.length > 3 && typeof A == "function" ? (T--, A) : r, C && Nt(h[0], h[1], C) && (A = T < 3 ? r : A, T = 1), o = qe(o); ++v < T; ) {
|
|
18536
18529
|
var R = h[v];
|
|
@@ -18670,11 +18663,11 @@ Io.exports;
|
|
|
18670
18663
|
function ya(s, o, h, v, T, A, C, R, M, U) {
|
|
18671
18664
|
var $ = o & N, z = o & b, q = o & x, ee = o & (w | I), oe = o & D, Te = q ? r : os(s);
|
|
18672
18665
|
function ue() {
|
|
18673
|
-
for (var
|
|
18666
|
+
for (var Ce = arguments.length, Fe = k(Ce), Kt = Ce; Kt--; )
|
|
18674
18667
|
Fe[Kt] = arguments[Kt];
|
|
18675
18668
|
if (ee)
|
|
18676
18669
|
var Lt = di(ue), Zt = M_(Fe, Lt);
|
|
18677
|
-
if (v && (Fe = jf(Fe, v, T, ee)), A && (Fe = qf(Fe, A, C, ee)),
|
|
18670
|
+
if (v && (Fe = jf(Fe, v, T, ee)), A && (Fe = qf(Fe, A, C, ee)), Ce -= Zt, ee && Ce < U) {
|
|
18678
18671
|
var ft = rn(Fe, Lt);
|
|
18679
18672
|
return rd(
|
|
18680
18673
|
s,
|
|
@@ -18686,11 +18679,11 @@ Io.exports;
|
|
|
18686
18679
|
ft,
|
|
18687
18680
|
R,
|
|
18688
18681
|
M,
|
|
18689
|
-
U -
|
|
18682
|
+
U - Ce
|
|
18690
18683
|
);
|
|
18691
18684
|
}
|
|
18692
18685
|
var mr = z ? h : this, jr = q ? mr[s] : s;
|
|
18693
|
-
return
|
|
18686
|
+
return Ce = Fe.length, R ? Fe = Ux(Fe, R) : oe && Ce > 1 && Fe.reverse(), $ && M < Ce && (Fe.length = M), this && this !== St && this instanceof ue && (jr = Te || os(jr)), jr.apply(mr, Fe);
|
|
18694
18687
|
}
|
|
18695
18688
|
return ue;
|
|
18696
18689
|
}
|
|
@@ -18714,7 +18707,7 @@ Io.exports;
|
|
|
18714
18707
|
}
|
|
18715
18708
|
function Ku(s) {
|
|
18716
18709
|
return zr(function(o) {
|
|
18717
|
-
return o = nt(o, jt(ae())),
|
|
18710
|
+
return o = nt(o, jt(ae())), we(function(h) {
|
|
18718
18711
|
var v = this;
|
|
18719
18712
|
return s(o, function(T) {
|
|
18720
18713
|
return Wt(T, v, h);
|
|
@@ -18784,7 +18777,7 @@ Io.exports;
|
|
|
18784
18777
|
function nd(s) {
|
|
18785
18778
|
return function(o) {
|
|
18786
18779
|
var h = Rt(o);
|
|
18787
|
-
return h ==
|
|
18780
|
+
return h == Se ? Cu(o) : h == lt ? B_(o) : P_(o, s(o));
|
|
18788
18781
|
};
|
|
18789
18782
|
}
|
|
18790
18783
|
function Hr(s, o, h, v, T, A, C, R) {
|
|
@@ -18843,8 +18836,8 @@ Io.exports;
|
|
|
18843
18836
|
break;
|
|
18844
18837
|
}
|
|
18845
18838
|
if (ee) {
|
|
18846
|
-
if (!bu(o, function(
|
|
18847
|
-
if (!Ki(ee, Fe) && (oe ===
|
|
18839
|
+
if (!bu(o, function(Ce, Fe) {
|
|
18840
|
+
if (!Ki(ee, Fe) && (oe === Ce || T(oe, Ce, h, v, A)))
|
|
18848
18841
|
return ee.push(Fe);
|
|
18849
18842
|
})) {
|
|
18850
18843
|
q = !1;
|
|
@@ -18869,12 +18862,12 @@ Io.exports;
|
|
|
18869
18862
|
case je:
|
|
18870
18863
|
case _e:
|
|
18871
18864
|
return gr(+s, +o);
|
|
18872
|
-
case
|
|
18865
|
+
case Ee:
|
|
18873
18866
|
return s.name == o.name && s.message == o.message;
|
|
18874
18867
|
case Bt:
|
|
18875
18868
|
case tr:
|
|
18876
18869
|
return s == o + "";
|
|
18877
|
-
case
|
|
18870
|
+
case Se:
|
|
18878
18871
|
var R = Cu;
|
|
18879
18872
|
case lt:
|
|
18880
18873
|
var M = v & _;
|
|
@@ -18908,10 +18901,10 @@ Io.exports;
|
|
|
18908
18901
|
A.set(s, o), A.set(o, s);
|
|
18909
18902
|
for (var ue = C; ++z < M; ) {
|
|
18910
18903
|
q = R[z];
|
|
18911
|
-
var
|
|
18904
|
+
var Ce = s[q], Fe = o[q];
|
|
18912
18905
|
if (v)
|
|
18913
|
-
var Kt = C ? v(Fe,
|
|
18914
|
-
if (!(Kt === r ?
|
|
18906
|
+
var Kt = C ? v(Fe, Ce, q, o, s, A) : v(Ce, Fe, q, s, o, A);
|
|
18907
|
+
if (!(Kt === r ? Ce === Fe || T(Ce, Fe, h, v, A) : Kt)) {
|
|
18915
18908
|
Te = !1;
|
|
18916
18909
|
break;
|
|
18917
18910
|
}
|
|
@@ -18985,14 +18978,14 @@ Io.exports;
|
|
|
18985
18978
|
tn(o, rl(s)), s = ia(s);
|
|
18986
18979
|
return o;
|
|
18987
18980
|
} : xl, Rt = Ft;
|
|
18988
|
-
(Pu && Rt(new Pu(new ArrayBuffer(1))) != ti || Qi && Rt(new Qi()) !=
|
|
18981
|
+
(Pu && Rt(new Pu(new ArrayBuffer(1))) != ti || Qi && Rt(new Qi()) != Se || Mu && Rt(Mu.resolve()) != Oe || ui && Rt(new ui()) != lt || Ji && Rt(new Ji()) != bn) && (Rt = function(s) {
|
|
18989
18982
|
var o = Ft(s), h = o == ce ? s.constructor : r, v = h ? Rn(h) : "";
|
|
18990
18983
|
if (v)
|
|
18991
18984
|
switch (v) {
|
|
18992
18985
|
case oy:
|
|
18993
18986
|
return ti;
|
|
18994
18987
|
case uy:
|
|
18995
|
-
return
|
|
18988
|
+
return Se;
|
|
18996
18989
|
case ly:
|
|
18997
18990
|
return Oe;
|
|
18998
18991
|
case cy:
|
|
@@ -19063,7 +19056,7 @@ Io.exports;
|
|
|
19063
19056
|
case uu:
|
|
19064
19057
|
case lu:
|
|
19065
19058
|
return Xf(s, h);
|
|
19066
|
-
case
|
|
19059
|
+
case Se:
|
|
19067
19060
|
return new v();
|
|
19068
19061
|
case _e:
|
|
19069
19062
|
case tr:
|
|
@@ -19147,9 +19140,9 @@ Io.exports;
|
|
|
19147
19140
|
var R = o[3];
|
|
19148
19141
|
if (R) {
|
|
19149
19142
|
var M = s[3];
|
|
19150
|
-
s[3] = M ? jf(M, R, o[4]) : R, s[4] = M ? rn(s[3],
|
|
19143
|
+
s[3] = M ? jf(M, R, o[4]) : R, s[4] = M ? rn(s[3], g) : o[4];
|
|
19151
19144
|
}
|
|
19152
|
-
return R = o[5], R && (M = s[5], s[5] = M ? qf(M, R, o[6]) : R, s[6] = M ? rn(s[5],
|
|
19145
|
+
return R = o[5], R && (M = s[5], s[5] = M ? qf(M, R, o[6]) : R, s[6] = M ? rn(s[5], g) : o[6]), R = o[7], R && (s[7] = R), v & N && (s[8] = s[8] == null ? o[8] : It(s[8], o[8])), s[9] == null && (s[9] = o[9]), s[0] = o[0], s[1] = T, s;
|
|
19153
19146
|
}
|
|
19154
19147
|
function Dx(s) {
|
|
19155
19148
|
var o = [];
|
|
@@ -19273,12 +19266,12 @@ Io.exports;
|
|
|
19273
19266
|
o[v - 1] = arguments[v];
|
|
19274
19267
|
return tn(ye(h) ? Ut(h) : [h], At(o, 1));
|
|
19275
19268
|
}
|
|
19276
|
-
var Vx =
|
|
19269
|
+
var Vx = we(function(s, o) {
|
|
19277
19270
|
return ht(s) ? ns(s, At(o, 1, ht, !0)) : [];
|
|
19278
|
-
}), Xx =
|
|
19271
|
+
}), Xx = we(function(s, o) {
|
|
19279
19272
|
var h = ur(o);
|
|
19280
19273
|
return ht(h) && (h = r), ht(s) ? ns(s, At(o, 1, ht, !0), ae(h, 2)) : [];
|
|
19281
|
-
}), Wx =
|
|
19274
|
+
}), Wx = we(function(s, o) {
|
|
19282
19275
|
var h = ur(o);
|
|
19283
19276
|
return ht(h) && (h = r), ht(s) ? ns(s, At(o, 1, ht, !0), r, h) : [];
|
|
19284
19277
|
});
|
|
@@ -19347,13 +19340,13 @@ Io.exports;
|
|
|
19347
19340
|
var o = s == null ? 0 : s.length;
|
|
19348
19341
|
return o ? or(s, 0, -1) : [];
|
|
19349
19342
|
}
|
|
19350
|
-
var n1 =
|
|
19343
|
+
var n1 = we(function(s) {
|
|
19351
19344
|
var o = nt(s, ju);
|
|
19352
19345
|
return o.length && o[0] === s[0] ? Du(o) : [];
|
|
19353
|
-
}), i1 =
|
|
19346
|
+
}), i1 = we(function(s) {
|
|
19354
19347
|
var o = ur(s), h = nt(s, ju);
|
|
19355
19348
|
return o === ur(h) ? o = r : h.pop(), h.length && h[0] === s[0] ? Du(h, ae(o, 2)) : [];
|
|
19356
|
-
}), s1 =
|
|
19349
|
+
}), s1 = we(function(s) {
|
|
19357
19350
|
var o = ur(s), h = nt(s, ju);
|
|
19358
19351
|
return o = typeof o == "function" ? o : r, o && h.pop(), h.length && h[0] === s[0] ? Du(h, r, o) : [];
|
|
19359
19352
|
});
|
|
@@ -19374,7 +19367,7 @@ Io.exports;
|
|
|
19374
19367
|
function u1(s, o) {
|
|
19375
19368
|
return s && s.length ? Ff(s, xe(o)) : r;
|
|
19376
19369
|
}
|
|
19377
|
-
var l1 =
|
|
19370
|
+
var l1 = we(wd);
|
|
19378
19371
|
function wd(s, o) {
|
|
19379
19372
|
return s && s.length && o && o.length ? Gu(s, o) : s;
|
|
19380
19373
|
}
|
|
@@ -19461,12 +19454,12 @@ Io.exports;
|
|
|
19461
19454
|
function C1(s, o) {
|
|
19462
19455
|
return s && s.length ? va(s, ae(o, 3)) : [];
|
|
19463
19456
|
}
|
|
19464
|
-
var I1 =
|
|
19457
|
+
var I1 = we(function(s) {
|
|
19465
19458
|
return an(At(s, 1, ht, !0));
|
|
19466
|
-
}), R1 =
|
|
19459
|
+
}), R1 = we(function(s) {
|
|
19467
19460
|
var o = ur(s);
|
|
19468
19461
|
return ht(o) && (o = r), an(At(s, 1, ht, !0), ae(o, 2));
|
|
19469
|
-
}), P1 =
|
|
19462
|
+
}), P1 = we(function(s) {
|
|
19470
19463
|
var o = ur(s);
|
|
19471
19464
|
return o = typeof o == "function" ? o : r, an(At(s, 1, ht, !0), r, o);
|
|
19472
19465
|
});
|
|
@@ -19498,24 +19491,24 @@ Io.exports;
|
|
|
19498
19491
|
return Wt(o, r, v);
|
|
19499
19492
|
});
|
|
19500
19493
|
}
|
|
19501
|
-
var N1 =
|
|
19494
|
+
var N1 = we(function(s, o) {
|
|
19502
19495
|
return ht(s) ? ns(s, o) : [];
|
|
19503
|
-
}), L1 =
|
|
19496
|
+
}), L1 = we(function(s) {
|
|
19504
19497
|
return Wu(en(s, ht));
|
|
19505
|
-
}), k1 =
|
|
19498
|
+
}), k1 = we(function(s) {
|
|
19506
19499
|
var o = ur(s);
|
|
19507
19500
|
return ht(o) && (o = r), Wu(en(s, ht), ae(o, 2));
|
|
19508
|
-
}), D1 =
|
|
19501
|
+
}), D1 = we(function(s) {
|
|
19509
19502
|
var o = ur(s);
|
|
19510
19503
|
return o = typeof o == "function" ? o : r, Wu(en(s, ht), r, o);
|
|
19511
|
-
}), B1 =
|
|
19504
|
+
}), B1 = we(ul);
|
|
19512
19505
|
function U1(s, o) {
|
|
19513
19506
|
return Hf(s || [], o || [], rs);
|
|
19514
19507
|
}
|
|
19515
19508
|
function $1(s, o) {
|
|
19516
19509
|
return Hf(s || [], o || [], as);
|
|
19517
19510
|
}
|
|
19518
|
-
var G1 =
|
|
19511
|
+
var G1 = we(function(s) {
|
|
19519
19512
|
var o = s.length, h = o > 1 ? s[o - 1] : r;
|
|
19520
19513
|
return h = typeof h == "function" ? (s.pop(), h) : r, Sd(s, h);
|
|
19521
19514
|
});
|
|
@@ -19616,7 +19609,7 @@ Io.exports;
|
|
|
19616
19609
|
var T = s.length;
|
|
19617
19610
|
return h < 0 && (h = vt(T + h, 0)), Oa(s) ? h <= T && s.indexOf(o, h) > -1 : !!T && ni(s, o, h) > -1;
|
|
19618
19611
|
}
|
|
19619
|
-
var ob =
|
|
19612
|
+
var ob = we(function(s, o, h) {
|
|
19620
19613
|
var v = -1, T = typeof o == "function", A = $t(s) ? k(s.length) : [];
|
|
19621
19614
|
return sn(s, function(C) {
|
|
19622
19615
|
A[++v] = T ? Wt(o, C, h) : is(C, o, h);
|
|
@@ -19667,13 +19660,13 @@ Io.exports;
|
|
|
19667
19660
|
if ($t(s))
|
|
19668
19661
|
return Oa(s) ? si(s) : s.length;
|
|
19669
19662
|
var o = Rt(s);
|
|
19670
|
-
return o ==
|
|
19663
|
+
return o == Se || o == lt ? s.size : Uu(s).length;
|
|
19671
19664
|
}
|
|
19672
19665
|
function _b(s, o, h) {
|
|
19673
19666
|
var v = ye(s) ? bu : cx;
|
|
19674
19667
|
return h && Nt(s, o, h) && (o = r), v(s, ae(o, 3));
|
|
19675
19668
|
}
|
|
19676
|
-
var yb =
|
|
19669
|
+
var yb = we(function(s, o) {
|
|
19677
19670
|
if (s == null)
|
|
19678
19671
|
return [];
|
|
19679
19672
|
var h = o.length;
|
|
@@ -19700,14 +19693,14 @@ Io.exports;
|
|
|
19700
19693
|
return --s > 0 && (h = o.apply(this, arguments)), s <= 1 && (o = r), h;
|
|
19701
19694
|
};
|
|
19702
19695
|
}
|
|
19703
|
-
var ll =
|
|
19696
|
+
var ll = we(function(s, o, h) {
|
|
19704
19697
|
var v = b;
|
|
19705
19698
|
if (h.length) {
|
|
19706
19699
|
var T = rn(h, di(ll));
|
|
19707
19700
|
v |= O;
|
|
19708
19701
|
}
|
|
19709
19702
|
return Hr(s, v, o, h, T);
|
|
19710
|
-
}), Pd =
|
|
19703
|
+
}), Pd = we(function(s, o, h) {
|
|
19711
19704
|
var v = b | x;
|
|
19712
19705
|
if (h.length) {
|
|
19713
19706
|
var T = rn(h, di(Pd));
|
|
@@ -19735,7 +19728,7 @@ Io.exports;
|
|
|
19735
19728
|
return v = T = r, U = ft, C = s.apply(jr, mr), C;
|
|
19736
19729
|
}
|
|
19737
19730
|
function oe(ft) {
|
|
19738
|
-
return U = ft, R = ls(
|
|
19731
|
+
return U = ft, R = ls(Ce, o), $ ? ee(ft) : C;
|
|
19739
19732
|
}
|
|
19740
19733
|
function Te(ft) {
|
|
19741
19734
|
var mr = ft - M, jr = ft - U, Qd = o - mr;
|
|
@@ -19745,11 +19738,11 @@ Io.exports;
|
|
|
19745
19738
|
var mr = ft - M, jr = ft - U;
|
|
19746
19739
|
return M === r || mr >= o || mr < 0 || z && jr >= A;
|
|
19747
19740
|
}
|
|
19748
|
-
function
|
|
19741
|
+
function Ce() {
|
|
19749
19742
|
var ft = Ia();
|
|
19750
19743
|
if (ue(ft))
|
|
19751
19744
|
return Fe(ft);
|
|
19752
|
-
R = ls(
|
|
19745
|
+
R = ls(Ce, Te(ft));
|
|
19753
19746
|
}
|
|
19754
19747
|
function Fe(ft) {
|
|
19755
19748
|
return R = r, q && v ? ee(ft) : (v = T = r, C);
|
|
@@ -19766,15 +19759,15 @@ Io.exports;
|
|
|
19766
19759
|
if (R === r)
|
|
19767
19760
|
return oe(M);
|
|
19768
19761
|
if (z)
|
|
19769
|
-
return zf(R), R = ls(
|
|
19762
|
+
return zf(R), R = ls(Ce, o), ee(M);
|
|
19770
19763
|
}
|
|
19771
|
-
return R === r && (R = ls(
|
|
19764
|
+
return R === r && (R = ls(Ce, o)), C;
|
|
19772
19765
|
}
|
|
19773
19766
|
return Zt.cancel = Kt, Zt.flush = Lt, Zt;
|
|
19774
19767
|
}
|
|
19775
|
-
var bb =
|
|
19768
|
+
var bb = we(function(s, o) {
|
|
19776
19769
|
return Tf(s, 1, o);
|
|
19777
|
-
}), Tb =
|
|
19770
|
+
}), Tb = we(function(s, o, h) {
|
|
19778
19771
|
return Tf(s, lr(o) || 0, h);
|
|
19779
19772
|
});
|
|
19780
19773
|
function wb(s) {
|
|
@@ -19817,15 +19810,15 @@ Io.exports;
|
|
|
19817
19810
|
var Ab = hx(function(s, o) {
|
|
19818
19811
|
o = o.length == 1 && ye(o[0]) ? nt(o[0], jt(ae())) : nt(At(o, 1), jt(ae()));
|
|
19819
19812
|
var h = o.length;
|
|
19820
|
-
return
|
|
19813
|
+
return we(function(v) {
|
|
19821
19814
|
for (var T = -1, A = It(v.length, h); ++T < A; )
|
|
19822
19815
|
v[T] = o[T].call(this, v[T]);
|
|
19823
19816
|
return Wt(s, this, v);
|
|
19824
19817
|
});
|
|
19825
|
-
}), cl =
|
|
19818
|
+
}), cl = we(function(s, o) {
|
|
19826
19819
|
var h = rn(o, di(cl));
|
|
19827
19820
|
return Hr(s, O, r, o, h);
|
|
19828
|
-
}), Nd =
|
|
19821
|
+
}), Nd = we(function(s, o) {
|
|
19829
19822
|
var h = rn(o, di(Nd));
|
|
19830
19823
|
return Hr(s, F, r, o, h);
|
|
19831
19824
|
}), Eb = zr(function(s, o) {
|
|
@@ -19834,12 +19827,12 @@ Io.exports;
|
|
|
19834
19827
|
function Cb(s, o) {
|
|
19835
19828
|
if (typeof s != "function")
|
|
19836
19829
|
throw new ir(u);
|
|
19837
|
-
return o = o === r ? o : xe(o),
|
|
19830
|
+
return o = o === r ? o : xe(o), we(s, o);
|
|
19838
19831
|
}
|
|
19839
19832
|
function Ib(s, o) {
|
|
19840
19833
|
if (typeof s != "function")
|
|
19841
19834
|
throw new ir(u);
|
|
19842
|
-
return o = o == null ? 0 : vt(xe(o), 0),
|
|
19835
|
+
return o = o == null ? 0 : vt(xe(o), 0), we(function(h) {
|
|
19843
19836
|
var v = h[o], T = un(h, 0, o);
|
|
19844
19837
|
return v && tn(T, v), Wt(s, this, T);
|
|
19845
19838
|
});
|
|
@@ -19867,16 +19860,16 @@ Io.exports;
|
|
|
19867
19860
|
return ye(s) ? s : [s];
|
|
19868
19861
|
}
|
|
19869
19862
|
function Fb(s) {
|
|
19870
|
-
return ar(s,
|
|
19863
|
+
return ar(s, m);
|
|
19871
19864
|
}
|
|
19872
19865
|
function Nb(s, o) {
|
|
19873
|
-
return o = typeof o == "function" ? o : r, ar(s,
|
|
19866
|
+
return o = typeof o == "function" ? o : r, ar(s, m, o);
|
|
19874
19867
|
}
|
|
19875
19868
|
function Lb(s) {
|
|
19876
|
-
return ar(s, c |
|
|
19869
|
+
return ar(s, c | m);
|
|
19877
19870
|
}
|
|
19878
19871
|
function kb(s, o) {
|
|
19879
|
-
return o = typeof o == "function" ? o : r, ar(s, c |
|
|
19872
|
+
return o = typeof o == "function" ? o : r, ar(s, c | m, o);
|
|
19880
19873
|
}
|
|
19881
19874
|
function Db(s, o) {
|
|
19882
19875
|
return o == null || bf(s, o, yt(o));
|
|
@@ -19910,7 +19903,7 @@ Io.exports;
|
|
|
19910
19903
|
if ($t(s) && (ye(s) || typeof s == "string" || typeof s.splice == "function" || ln(s) || pi(s) || Pn(s)))
|
|
19911
19904
|
return !s.length;
|
|
19912
19905
|
var o = Rt(s);
|
|
19913
|
-
if (o ==
|
|
19906
|
+
if (o == Se || o == lt)
|
|
19914
19907
|
return !s.size;
|
|
19915
19908
|
if (us(s))
|
|
19916
19909
|
return !Uu(s).length;
|
|
@@ -19931,7 +19924,7 @@ Io.exports;
|
|
|
19931
19924
|
if (!ct(s))
|
|
19932
19925
|
return !1;
|
|
19933
19926
|
var o = Ft(s);
|
|
19934
|
-
return o ==
|
|
19927
|
+
return o == Ee || o == be || typeof s.message == "string" && typeof s.name == "string" && !cs(s);
|
|
19935
19928
|
}
|
|
19936
19929
|
function jb(s) {
|
|
19937
19930
|
return typeof s == "number" && gf(s);
|
|
@@ -20019,7 +20012,7 @@ Io.exports;
|
|
|
20019
20012
|
return Oa(s) ? dr(s) : Ut(s);
|
|
20020
20013
|
if (Zi && s[Zi])
|
|
20021
20014
|
return D_(s[Zi]());
|
|
20022
|
-
var o = Rt(s), h = o ==
|
|
20015
|
+
var o = Rt(s), h = o == Se ? Cu : o == lt ? Zs : gi;
|
|
20023
20016
|
return h(s);
|
|
20024
20017
|
}
|
|
20025
20018
|
function Wr(s) {
|
|
@@ -20080,7 +20073,7 @@ Io.exports;
|
|
|
20080
20073
|
var h = ci(s);
|
|
20081
20074
|
return o == null ? h : xf(h, o);
|
|
20082
20075
|
}
|
|
20083
|
-
var hT =
|
|
20076
|
+
var hT = we(function(s, o) {
|
|
20084
20077
|
s = qe(s);
|
|
20085
20078
|
var h = -1, v = o.length, T = v > 2 ? o[2] : r;
|
|
20086
20079
|
for (T && Nt(o[0], o[1], T) && (v = 1); ++h < v; )
|
|
@@ -20089,7 +20082,7 @@ Io.exports;
|
|
|
20089
20082
|
($ === r || gr($, oi[U]) && !Xe.call(s, U)) && (s[U] = A[U]);
|
|
20090
20083
|
}
|
|
20091
20084
|
return s;
|
|
20092
|
-
}), fT =
|
|
20085
|
+
}), fT = we(function(s) {
|
|
20093
20086
|
return s.push(r, sd), Wt(zd, r, s);
|
|
20094
20087
|
});
|
|
20095
20088
|
function dT(s, o) {
|
|
@@ -20130,7 +20123,7 @@ Io.exports;
|
|
|
20130
20123
|
o != null && typeof o.toString != "function" && (o = ta.call(o)), s[o] = h;
|
|
20131
20124
|
}, ml(Ht)), wT = ed(function(s, o, h) {
|
|
20132
20125
|
o != null && typeof o.toString != "function" && (o = ta.call(o)), Xe.call(s, o) ? s[o].push(h) : s[o] = [h];
|
|
20133
|
-
}, ae), ST =
|
|
20126
|
+
}, ae), ST = we(is);
|
|
20134
20127
|
function yt(s) {
|
|
20135
20128
|
return $t(s) ? _f(s) : Uu(s);
|
|
20136
20129
|
}
|
|
@@ -20160,7 +20153,7 @@ Io.exports;
|
|
|
20160
20153
|
var v = !1;
|
|
20161
20154
|
o = nt(o, function(A) {
|
|
20162
20155
|
return A = on(A, s), v || (v = A.length > 1), A;
|
|
20163
|
-
}), Rr(s, Ju(s), h), v && (h = ar(h, c | d |
|
|
20156
|
+
}), Rr(s, Ju(s), h), v && (h = ar(h, c | d | m, Tx));
|
|
20164
20157
|
for (var T = o.length; T--; )
|
|
20165
20158
|
Xu(h, o[T]);
|
|
20166
20159
|
return h;
|
|
@@ -20314,9 +20307,9 @@ Io.exports;
|
|
|
20314
20307
|
"g"
|
|
20315
20308
|
), ee = "//# sourceURL=" + (Xe.call(o, "sourceURL") ? (o.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++p_ + "]") + `
|
|
20316
20309
|
`;
|
|
20317
|
-
s.replace(q, function(ue,
|
|
20318
|
-
return Fe || (Fe = Kt), z += s.slice(U, Zt).replace(Xv, N_),
|
|
20319
|
-
__e(` +
|
|
20310
|
+
s.replace(q, function(ue, Ce, Fe, Kt, Lt, Zt) {
|
|
20311
|
+
return Fe || (Fe = Kt), z += s.slice(U, Zt).replace(Xv, N_), Ce && (R = !0, z += `' +
|
|
20312
|
+
__e(` + Ce + `) +
|
|
20320
20313
|
'`), Lt && (M = !0, z += `';
|
|
20321
20314
|
` + Lt + `;
|
|
20322
20315
|
__p += '`), Fe && (z += `' +
|
|
@@ -20418,7 +20411,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20418
20411
|
function Yd(s, o, h) {
|
|
20419
20412
|
return s = ze(s), o = h ? r : o, o === r ? k_(s) ? V_(s) : C_(s) : s.match(o) || [];
|
|
20420
20413
|
}
|
|
20421
|
-
var Kd =
|
|
20414
|
+
var Kd = we(function(s, o) {
|
|
20422
20415
|
try {
|
|
20423
20416
|
return Wt(s, r, o);
|
|
20424
20417
|
} catch (h) {
|
|
@@ -20435,7 +20428,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20435
20428
|
if (typeof v[1] != "function")
|
|
20436
20429
|
throw new ir(u);
|
|
20437
20430
|
return [h(v[0]), v[1]];
|
|
20438
|
-
}) : [],
|
|
20431
|
+
}) : [], we(function(v) {
|
|
20439
20432
|
for (var T = -1; ++T < o; ) {
|
|
20440
20433
|
var A = s[T];
|
|
20441
20434
|
if (Wt(A[0], this, v))
|
|
@@ -20467,11 +20460,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20467
20460
|
function bw(s, o) {
|
|
20468
20461
|
return Of(s, ar(o, c));
|
|
20469
20462
|
}
|
|
20470
|
-
var Tw =
|
|
20463
|
+
var Tw = we(function(s, o) {
|
|
20471
20464
|
return function(h) {
|
|
20472
20465
|
return is(h, s, o);
|
|
20473
20466
|
};
|
|
20474
|
-
}), ww =
|
|
20467
|
+
}), ww = we(function(s, o) {
|
|
20475
20468
|
return function(h) {
|
|
20476
20469
|
return is(s, h, o);
|
|
20477
20470
|
};
|
|
@@ -20498,7 +20491,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20498
20491
|
function yl() {
|
|
20499
20492
|
}
|
|
20500
20493
|
function Aw(s) {
|
|
20501
|
-
return s = xe(s),
|
|
20494
|
+
return s = xe(s), we(function(o) {
|
|
20502
20495
|
return Ff(o, s);
|
|
20503
20496
|
});
|
|
20504
20497
|
}
|
|
@@ -20620,7 +20613,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20620
20613
|
return this.filter(s).head();
|
|
20621
20614
|
}, Pe.prototype.findLast = function(s) {
|
|
20622
20615
|
return this.reverse().find(s);
|
|
20623
|
-
}, Pe.prototype.invokeMap =
|
|
20616
|
+
}, Pe.prototype.invokeMap = we(function(s, o) {
|
|
20624
20617
|
return typeof s == "function" ? new Pe(this) : this.map(function(h) {
|
|
20625
20618
|
return is(h, s, o);
|
|
20626
20619
|
});
|
|
@@ -20637,8 +20630,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20637
20630
|
}, Ir(Pe.prototype, function(s, o) {
|
|
20638
20631
|
var h = /^(?:filter|find|map|reject)|While$/.test(o), v = /^(?:head|last)$/.test(o), T = S[v ? "take" + (o == "last" ? "Right" : "") : o], A = v || /^find/.test(o);
|
|
20639
20632
|
T && (S.prototype[o] = function() {
|
|
20640
|
-
var C = this.__wrapped__, R = v ? [1] : arguments, M = C instanceof Pe, U = R[0], $ = M || ye(C), z = function(
|
|
20641
|
-
var Fe = T.apply(S, tn([
|
|
20633
|
+
var C = this.__wrapped__, R = v ? [1] : arguments, M = C instanceof Pe, U = R[0], $ = M || ye(C), z = function(Ce) {
|
|
20634
|
+
var Fe = T.apply(S, tn([Ce], R));
|
|
20642
20635
|
return v && q ? Fe[0] : Fe;
|
|
20643
20636
|
};
|
|
20644
20637
|
$ && h && typeof U == "function" && U.length != 1 && (M = $ = !1);
|
|
@@ -20689,7 +20682,7 @@ const c5 = {
|
|
|
20689
20682
|
totalFrames: 0,
|
|
20690
20683
|
totalDuration: 0
|
|
20691
20684
|
}, h5 = te.forwardRef((t, e) => {
|
|
20692
|
-
const [r, n] = te.useState([]), [, i] = te.useState(0), [a, u] = te.useState([]), [, l] = Fi(!1), [f, p] = JB({ autoPlay: !1 }),
|
|
20685
|
+
const [r, n] = te.useState([]), [, i] = te.useState(0), [a, u] = te.useState([]), [, l] = Fi(!1), [f, p] = JB({ autoPlay: !1 }), g = pe(null), c = pe(null), d = pe(c5), m = pe(), { tl: _, dragModeRef: y } = Gi(Yn), { frames: b, delays: x } = f, {
|
|
20693
20686
|
src: E,
|
|
20694
20687
|
startAt: w,
|
|
20695
20688
|
endAt: I,
|
|
@@ -20708,62 +20701,62 @@ const c5 = {
|
|
|
20708
20701
|
adjustmentFilter: W,
|
|
20709
20702
|
vignetteFilter: j,
|
|
20710
20703
|
noiseFilter: le
|
|
20711
|
-
} = Qn(G), { blurRadius: he = 0, vignette: me = 0, noise: fe = 0 } = G,
|
|
20704
|
+
} = Qn(G), { blurRadius: he = 0, vignette: me = 0, noise: fe = 0 } = G, Re = 0.1;
|
|
20712
20705
|
o5(E, p), pt(Qe.PAUSE, () => {
|
|
20713
|
-
|
|
20706
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20714
20707
|
}), pt(Qe.SEEK_END, () => {
|
|
20715
|
-
|
|
20708
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20716
20709
|
}), pt(Qe.SCRUBBER_CLICKED, () => {
|
|
20717
|
-
|
|
20710
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20718
20711
|
}), te.useEffect(() => {
|
|
20719
|
-
d.current &&
|
|
20712
|
+
d.current && g.current && (y.current ? (g.current.stop(), d.current.isPlaying = !1, d.current.isDragging = !0) : d.current.isDragging = !1);
|
|
20720
20713
|
}, [y]), te.useEffect(() => {
|
|
20721
20714
|
if (!Hs(b)) {
|
|
20722
|
-
const
|
|
20715
|
+
const Se = RB(b, (ce) => {
|
|
20723
20716
|
const { data: Oe, width: Xt, height: Bt } = ce, lt = new Uint8Array(Oe);
|
|
20724
20717
|
return er.Texture.fromBuffer(lt, Xt, Bt);
|
|
20725
|
-
}), _e =
|
|
20718
|
+
}), _e = Se.map(
|
|
20726
20719
|
(ce, Oe) => ({
|
|
20727
20720
|
texture: ce,
|
|
20728
20721
|
time: x[Oe]
|
|
20729
20722
|
})
|
|
20730
20723
|
);
|
|
20731
|
-
n(
|
|
20724
|
+
n(Se), u(_e);
|
|
20732
20725
|
let rt = 0;
|
|
20733
20726
|
x.forEach((ce) => {
|
|
20734
20727
|
rt += ce * 10;
|
|
20735
20728
|
}), i(rt), d.current.totalDuration = rt, d.current.totalFrames = b.length;
|
|
20736
20729
|
}
|
|
20737
20730
|
}, [b, x]);
|
|
20738
|
-
const Ue = am.debounce((
|
|
20739
|
-
if (
|
|
20740
|
-
let _e =
|
|
20731
|
+
const Ue = am.debounce((Se) => {
|
|
20732
|
+
if (g.current) {
|
|
20733
|
+
let _e = Se === 0 ? 0 : Se / Re;
|
|
20741
20734
|
_e = isNaN(_e) ? 0 : _e;
|
|
20742
20735
|
const rt = d.current.totalFrames;
|
|
20743
|
-
_e = _e > rt ? rt : _e, _e >= rt ? (
|
|
20736
|
+
_e = _e > rt ? rt : _e, _e >= rt ? (g.current.gotoAndStop(0), d.current.isPlaying = !1) : (g.current.gotoAndPlay(_e || 0), d.current.isPlaying = !0);
|
|
20744
20737
|
}
|
|
20745
20738
|
}, 20), He = am.debounce(() => {
|
|
20746
|
-
|
|
20747
|
-
}, 50), je = (
|
|
20748
|
-
if (
|
|
20749
|
-
let _e =
|
|
20739
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20740
|
+
}, 50), je = (Se) => {
|
|
20741
|
+
if (g.current) {
|
|
20742
|
+
let _e = Se === 0 ? 0 : Se / Re;
|
|
20750
20743
|
_e = isNaN(_e) ? 0 : _e;
|
|
20751
20744
|
const rt = d.current.totalFrames;
|
|
20752
|
-
_e = _e > rt ? rt : _e, _e >= rt ? (
|
|
20745
|
+
_e = _e > rt ? rt : _e, _e >= rt ? (g.current.gotoAndStop(0), d.current.isPlaying = !1) : (g.current.gotoAndPlay(_e || 0), d.current.isPlaying = !0);
|
|
20753
20746
|
}
|
|
20754
20747
|
}, be = () => {
|
|
20755
|
-
|
|
20756
|
-
},
|
|
20757
|
-
|
|
20758
|
-
}, $e = (
|
|
20748
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20749
|
+
}, Ee = () => {
|
|
20750
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20751
|
+
}, $e = (Se) => {
|
|
20759
20752
|
var rt;
|
|
20760
|
-
const _e =
|
|
20761
|
-
|
|
20753
|
+
const _e = Se + ((rt = m.current) == null ? void 0 : rt.time());
|
|
20754
|
+
g.current && y.current ? (Ue(_e), He(), d.current.isPlaying = !1) : m.current && g.current && !d.current.isPlaying && m.current.isActive() && _.current.isActive() && (Ue(_e), d.current.isPlaying = !0);
|
|
20762
20755
|
}, Ke = () => {
|
|
20763
20756
|
l(!0);
|
|
20764
20757
|
};
|
|
20765
20758
|
return mn(() => {
|
|
20766
|
-
let
|
|
20759
|
+
let Se = J.context(() => {
|
|
20767
20760
|
});
|
|
20768
20761
|
if (c.current && _.current) {
|
|
20769
20762
|
const _e = {
|
|
@@ -20772,30 +20765,30 @@ const c5 = {
|
|
|
20772
20765
|
onComplete: be,
|
|
20773
20766
|
onStartParams: [O, F],
|
|
20774
20767
|
onCompleteParams: [],
|
|
20775
|
-
onInterrupt:
|
|
20768
|
+
onInterrupt: Ee,
|
|
20776
20769
|
onUpdate: $e,
|
|
20777
20770
|
onUpdateParams: [O, F]
|
|
20778
20771
|
};
|
|
20779
|
-
|
|
20780
|
-
|
|
20772
|
+
m.current && m.current.kill(), Se = J.context(() => {
|
|
20773
|
+
m.current = J.from(
|
|
20781
20774
|
c.current,
|
|
20782
20775
|
// @ts-ignore
|
|
20783
20776
|
_e,
|
|
20784
20777
|
O
|
|
20785
|
-
), _.current.add(
|
|
20778
|
+
), _.current.add(m.current, w);
|
|
20786
20779
|
});
|
|
20787
20780
|
}
|
|
20788
20781
|
return () => {
|
|
20789
|
-
|
|
20782
|
+
m.current && (m.current.kill(), J.killTweensOf(m.current)), Se.revert();
|
|
20790
20783
|
};
|
|
20791
|
-
}, [w, I, O, F]), /* @__PURE__ */
|
|
20784
|
+
}, [w, I, O, F]), /* @__PURE__ */ Ae.jsx(
|
|
20792
20785
|
vn,
|
|
20793
20786
|
{
|
|
20794
20787
|
...t,
|
|
20795
20788
|
ref: e,
|
|
20796
20789
|
ignoreTlForVideo: !0,
|
|
20797
20790
|
isGif: !0,
|
|
20798
|
-
children: /* @__PURE__ */
|
|
20791
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: c, children: r && r.length > 0 && /* @__PURE__ */ Ae.jsx(
|
|
20799
20792
|
l5,
|
|
20800
20793
|
{
|
|
20801
20794
|
x: se,
|
|
@@ -20808,7 +20801,7 @@ const c5 = {
|
|
|
20808
20801
|
textures: a,
|
|
20809
20802
|
onComplete: Ke,
|
|
20810
20803
|
anchor: 0.5,
|
|
20811
|
-
forwardRef:
|
|
20804
|
+
forwardRef: g,
|
|
20812
20805
|
...!D && L && { interactive: !0, pointerdown: ie },
|
|
20813
20806
|
filters: [
|
|
20814
20807
|
re,
|
|
@@ -20834,10 +20827,10 @@ h5.whyDidYouRender = {
|
|
|
20834
20827
|
const fU = te.forwardRef((t, e) => {
|
|
20835
20828
|
const n = pe(null), i = pe(0), a = pe(null), u = pe(null), l = pe(16), f = pe(null), {
|
|
20836
20829
|
visible: p,
|
|
20837
|
-
text:
|
|
20830
|
+
text: g,
|
|
20838
20831
|
disabled: c,
|
|
20839
20832
|
transformation: d,
|
|
20840
|
-
pointerdown:
|
|
20833
|
+
pointerdown: m,
|
|
20841
20834
|
onDobuleClick: _
|
|
20842
20835
|
} = t, {
|
|
20843
20836
|
x: y,
|
|
@@ -20874,7 +20867,7 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20874
20867
|
te.useEffect(() => {
|
|
20875
20868
|
l.current = Number(I);
|
|
20876
20869
|
}, [I]);
|
|
20877
|
-
const me = ["italic", "oblique"].includes(w) ? w : void 0, fe = ["small-caps"].includes(O),
|
|
20870
|
+
const me = ["italic", "oblique"].includes(w) ? w : void 0, fe = ["small-caps"].includes(O), Re = [
|
|
20878
20871
|
"bold",
|
|
20879
20872
|
"bolder",
|
|
20880
20873
|
"lighter",
|
|
@@ -20896,8 +20889,8 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20896
20889
|
...fe && {
|
|
20897
20890
|
fontVariant: fe
|
|
20898
20891
|
},
|
|
20899
|
-
...
|
|
20900
|
-
fontWeight:
|
|
20892
|
+
...Re && {
|
|
20893
|
+
fontWeight: Re
|
|
20901
20894
|
},
|
|
20902
20895
|
...Ue && { letterSpacing: Ue },
|
|
20903
20896
|
...V && {
|
|
@@ -20928,7 +20921,7 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20928
20921
|
w,
|
|
20929
20922
|
ie,
|
|
20930
20923
|
me,
|
|
20931
|
-
|
|
20924
|
+
Re,
|
|
20932
20925
|
fe,
|
|
20933
20926
|
Ue,
|
|
20934
20927
|
Y,
|
|
@@ -20944,26 +20937,26 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20944
20937
|
};
|
|
20945
20938
|
}, [d]);
|
|
20946
20939
|
const je = () => {
|
|
20947
|
-
const
|
|
20948
|
-
|
|
20940
|
+
const Ee = (/* @__PURE__ */ new Date()).getTime();
|
|
20941
|
+
Ee - i.current < 300 && _ ? _() : m && m(), i.current = Ee;
|
|
20949
20942
|
}, be = () => {
|
|
20950
20943
|
!c && _ && _();
|
|
20951
20944
|
};
|
|
20952
|
-
return /* @__PURE__ */
|
|
20945
|
+
return /* @__PURE__ */ Ae.jsx(
|
|
20953
20946
|
vn,
|
|
20954
20947
|
{
|
|
20955
20948
|
...t,
|
|
20956
20949
|
ref: e,
|
|
20957
20950
|
isText: !0,
|
|
20958
20951
|
onDoubleClick: be,
|
|
20959
|
-
children: /* @__PURE__ */
|
|
20952
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: n, children: /* @__PURE__ */ Ae.jsx(wt, { alpha: 1, ref: u, children: /* @__PURE__ */ Ae.jsx(
|
|
20960
20953
|
iS,
|
|
20961
20954
|
{
|
|
20962
20955
|
style: He,
|
|
20963
20956
|
x: y,
|
|
20964
20957
|
y: b,
|
|
20965
20958
|
anchor: 0.5,
|
|
20966
|
-
text:
|
|
20959
|
+
text: g,
|
|
20967
20960
|
alpha: p ? 1 : 0,
|
|
20968
20961
|
...p && !c && {
|
|
20969
20962
|
interactive: !0,
|
|
@@ -21014,16 +21007,16 @@ function I5(t) {
|
|
|
21014
21007
|
}
|
|
21015
21008
|
var R5 = I5, P5 = $s, ic = p5, lm = R5, M5 = "Expected a function", O5 = Math.max, F5 = Math.min;
|
|
21016
21009
|
function N5(t, e, r) {
|
|
21017
|
-
var n, i, a, u, l, f, p = 0,
|
|
21010
|
+
var n, i, a, u, l, f, p = 0, g = !1, c = !1, d = !0;
|
|
21018
21011
|
if (typeof t != "function")
|
|
21019
21012
|
throw new TypeError(M5);
|
|
21020
|
-
e = lm(e) || 0, P5(r) && (
|
|
21021
|
-
function
|
|
21013
|
+
e = lm(e) || 0, P5(r) && (g = !!r.leading, c = "maxWait" in r, a = c ? O5(lm(r.maxWait) || 0, e) : a, d = "trailing" in r ? !!r.trailing : d);
|
|
21014
|
+
function m(F) {
|
|
21022
21015
|
var N = n, L = i;
|
|
21023
21016
|
return n = i = void 0, p = F, u = t.apply(L, N), u;
|
|
21024
21017
|
}
|
|
21025
21018
|
function _(F) {
|
|
21026
|
-
return p = F, l = setTimeout(x, e),
|
|
21019
|
+
return p = F, l = setTimeout(x, e), g ? m(F) : u;
|
|
21027
21020
|
}
|
|
21028
21021
|
function y(F) {
|
|
21029
21022
|
var N = F - f, L = F - p, D = e - N;
|
|
@@ -21040,7 +21033,7 @@ function N5(t, e, r) {
|
|
|
21040
21033
|
l = setTimeout(x, y(F));
|
|
21041
21034
|
}
|
|
21042
21035
|
function E(F) {
|
|
21043
|
-
return l = void 0, d && n ?
|
|
21036
|
+
return l = void 0, d && n ? m(F) : (n = i = void 0, u);
|
|
21044
21037
|
}
|
|
21045
21038
|
function w() {
|
|
21046
21039
|
l !== void 0 && clearTimeout(l), p = 0, n = f = i = l = void 0;
|
|
@@ -21054,7 +21047,7 @@ function N5(t, e, r) {
|
|
|
21054
21047
|
if (l === void 0)
|
|
21055
21048
|
return _(f);
|
|
21056
21049
|
if (c)
|
|
21057
|
-
return clearTimeout(l), l = setTimeout(x, e),
|
|
21050
|
+
return clearTimeout(l), l = setTimeout(x, e), m(f);
|
|
21058
21051
|
}
|
|
21059
21052
|
return l === void 0 && (l = setTimeout(x, e)), u;
|
|
21060
21053
|
}
|
|
@@ -21095,10 +21088,10 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21095
21088
|
isDragging: !1,
|
|
21096
21089
|
timeDiff: 0
|
|
21097
21090
|
}, D5 = te.forwardRef((t, e) => {
|
|
21098
|
-
const [r, n] = te.useState(0), [i, a] = te.useState(), u = pe(null), l = pe(null), f = pe(null), p = pe(k5),
|
|
21091
|
+
const [r, n] = te.useState(0), [i, a] = te.useState(), u = pe(null), l = pe(null), f = pe(null), p = pe(k5), g = pe(), {
|
|
21099
21092
|
uniqueId: c,
|
|
21100
21093
|
mute: d = !1,
|
|
21101
|
-
src:
|
|
21094
|
+
src: m,
|
|
21102
21095
|
startAt: _,
|
|
21103
21096
|
endAt: y,
|
|
21104
21097
|
frameStartAt: b,
|
|
@@ -21117,14 +21110,14 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21117
21110
|
temperatureFilter: he,
|
|
21118
21111
|
sharpnessFilter: me,
|
|
21119
21112
|
hueFilter: fe,
|
|
21120
|
-
blurFilter:
|
|
21113
|
+
blurFilter: Re,
|
|
21121
21114
|
adjustmentFilter: Ue,
|
|
21122
21115
|
vignetteFilter: He,
|
|
21123
21116
|
noiseFilter: je
|
|
21124
|
-
} = Qn(D), be =
|
|
21117
|
+
} = Qn(D), be = m || "", Ee = te.useMemo(() => {
|
|
21125
21118
|
const ce = document.createElement("video");
|
|
21126
|
-
return ce.src =
|
|
21127
|
-
}, [
|
|
21119
|
+
return ce.src = m, ce.crossOrigin = "Anonymus", ce.autoplay = !1, ce.currentTime = b === 0 ? 1e-3 : b, ce;
|
|
21120
|
+
}, [m, b]);
|
|
21128
21121
|
pt(Qe.PAUSE, () => {
|
|
21129
21122
|
f.current && (f.current.pause(), p.current.isPlaying = !1);
|
|
21130
21123
|
}), pt(Qe.SCRUBBER_CLICKED, () => {
|
|
@@ -21148,27 +21141,27 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21148
21141
|
if (f.current) {
|
|
21149
21142
|
if (f.current.currentTime = Number(ce), !ie.current) {
|
|
21150
21143
|
const Oe = f.current, Xt = Oe.currentTime > 0 && !Oe.paused && !Oe.ended && Oe.readyState > Oe.HAVE_CURRENT_DATA;
|
|
21151
|
-
G.current && G.current.isActive() &&
|
|
21144
|
+
G.current && G.current.isActive() && g.current && g.current.isActive() && (Xt || f.current.play(), p.current.isPlaying = !0, n((Bt) => Bt + 1));
|
|
21152
21145
|
}
|
|
21153
21146
|
p.current.progress = 0;
|
|
21154
21147
|
}
|
|
21155
|
-
},
|
|
21148
|
+
}, Se = () => {
|
|
21156
21149
|
if (f.current) {
|
|
21157
21150
|
const ce = f.current;
|
|
21158
|
-
ce.currentTime > 0 && !ce.paused && !ce.ended && ce.readyState > ce.HAVE_CURRENT_DATA && f.current.pause(), p.current.isPlaying = !1,
|
|
21151
|
+
ce.currentTime > 0 && !ce.paused && !ce.ended && ce.readyState > ce.HAVE_CURRENT_DATA && f.current.pause(), p.current.isPlaying = !1, g.current && (p.current.progress = g.current.progress());
|
|
21159
21152
|
}
|
|
21160
21153
|
}, _e = () => {
|
|
21161
21154
|
}, rt = () => {
|
|
21162
21155
|
var ce, Oe;
|
|
21163
|
-
if (
|
|
21164
|
-
const Xt = b + ((ce =
|
|
21156
|
+
if (g.current && (p.current.progress = g.current.progress()), f.current && g.current) {
|
|
21157
|
+
const Xt = b + ((ce = g == null ? void 0 : g.current) == null ? void 0 : ce.time()), Bt = Math.abs(
|
|
21165
21158
|
f.current.currentTime - Xt
|
|
21166
21159
|
), lt = f.current, tr = lt.currentTime > 0 && !lt.paused && !lt.ended && lt.readyState > lt.HAVE_CURRENT_DATA;
|
|
21167
21160
|
ie.current ? (f.current.currentTime = Xt, setTimeout(() => {
|
|
21168
21161
|
f.current && f.current.play().then(() => {
|
|
21169
21162
|
p.current.isPlaying = !1, f.current && f.current.pause();
|
|
21170
21163
|
});
|
|
21171
|
-
}, 100), p.current.isPlaying = !1) : (tr !== p.current.isPlaying || !tr) && p.current.progress > 0.01 && p.current.progress < 0.99 ? (Oe = G.current) != null && Oe.isActive() &&
|
|
21164
|
+
}, 100), p.current.isPlaying = !1) : (tr !== p.current.isPlaying || !tr) && p.current.progress > 0.01 && p.current.progress < 0.99 ? (Oe = G.current) != null && Oe.isActive() && g.current && g.current.isActive() && (tr || f.current.play(), p.current.isPlaying = !0) : Bt > 0.3 && p.current.progress > 0.01 && p.current.progress < 0.99 && (f.current.currentTime = Xt);
|
|
21172
21165
|
}
|
|
21173
21166
|
};
|
|
21174
21167
|
return mn(() => {
|
|
@@ -21178,7 +21171,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21178
21171
|
const Oe = {
|
|
21179
21172
|
duration: Number(x) - Number(b),
|
|
21180
21173
|
onStart: Ke,
|
|
21181
|
-
onComplete:
|
|
21174
|
+
onComplete: Se,
|
|
21182
21175
|
onStartParams: [b, x],
|
|
21183
21176
|
onCompleteParams: [],
|
|
21184
21177
|
onInterrupt: _e,
|
|
@@ -21201,16 +21194,16 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21201
21194
|
}
|
|
21202
21195
|
};
|
|
21203
21196
|
ce = J.context(() => {
|
|
21204
|
-
|
|
21197
|
+
g.current = J.from(
|
|
21205
21198
|
l.current,
|
|
21206
21199
|
// @ts-ignore
|
|
21207
21200
|
Oe,
|
|
21208
21201
|
b
|
|
21209
|
-
), G.current.add(
|
|
21202
|
+
), G.current.add(g.current, _);
|
|
21210
21203
|
});
|
|
21211
21204
|
}
|
|
21212
21205
|
return () => {
|
|
21213
|
-
|
|
21206
|
+
g.current && (g.current.kill(), J.killTweensOf(g.current)), ce.revert();
|
|
21214
21207
|
};
|
|
21215
21208
|
}, [L, _, y, b, x]), te.useEffect(() => {
|
|
21216
21209
|
f.current && (f.current.muted = d);
|
|
@@ -21230,7 +21223,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21230
21223
|
}, tr = function() {
|
|
21231
21224
|
p.current.isWaiting = !1, p.current.isStalled = !0;
|
|
21232
21225
|
}, Jn = Math.round((Number(b) + Number.EPSILON) * 100) / 100, eu = Math.round((Number(x) + Number.EPSILON) * 100) / 100, bn = `${be}#t=${Jn},${eu}`;
|
|
21233
|
-
return er.Texture.fromLoader(
|
|
21226
|
+
return er.Texture.fromLoader(Ee, bn, c, {
|
|
21234
21227
|
pixiIdPrefix: c,
|
|
21235
21228
|
resourceOptions: {
|
|
21236
21229
|
autoPlay: !1,
|
|
@@ -21245,9 +21238,9 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21245
21238
|
lt
|
|
21246
21239
|
), f.current.removeEventListener("stalled", tr));
|
|
21247
21240
|
};
|
|
21248
|
-
}, [be, c, b, x,
|
|
21241
|
+
}, [be, c, b, x, Ee]), te.useEffect(() => {
|
|
21249
21242
|
const ce = setTimeout(() => {
|
|
21250
|
-
i &&
|
|
21243
|
+
i && g.current && G.current && g.current.progress() < 0.1 && f.current && !g.current.isActive() && !re && f.current.play().then(() => {
|
|
21251
21244
|
p.current.isPlaying = !1, f.current && f.current.pause();
|
|
21252
21245
|
});
|
|
21253
21246
|
}, 30);
|
|
@@ -21260,13 +21253,13 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21260
21253
|
if (i && G.current && r > 0 && !re) {
|
|
21261
21254
|
G.current.isActive() || (p.current.isPlaying = !1, f.current && f.current.pause());
|
|
21262
21255
|
const Oe = f.current;
|
|
21263
|
-
Oe && G.current.isActive() &&
|
|
21256
|
+
Oe && G.current.isActive() && g.current && g.current.isActive() && (Oe.currentTime > 0 && !Oe.paused && !Oe.ended && Oe.readyState > Oe.HAVE_CURRENT_DATA || f.current.play(), p.current.isPlaying = !0);
|
|
21264
21257
|
}
|
|
21265
21258
|
}, 10);
|
|
21266
21259
|
return () => {
|
|
21267
21260
|
clearTimeout(ce);
|
|
21268
21261
|
};
|
|
21269
|
-
}, [r, i]), /* @__PURE__ */
|
|
21262
|
+
}, [r, i]), /* @__PURE__ */ Ae.jsx(
|
|
21270
21263
|
vn,
|
|
21271
21264
|
{
|
|
21272
21265
|
...t,
|
|
@@ -21275,7 +21268,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21275
21268
|
pointerdown: H,
|
|
21276
21269
|
pointerover: ge,
|
|
21277
21270
|
pointerout: Q,
|
|
21278
|
-
children: /* @__PURE__ */
|
|
21271
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: l, children: i && /* @__PURE__ */ Ae.jsx(
|
|
21279
21272
|
Bs,
|
|
21280
21273
|
{
|
|
21281
21274
|
texture: i,
|
|
@@ -21293,7 +21286,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21293
21286
|
fe,
|
|
21294
21287
|
Ue,
|
|
21295
21288
|
// conditionally add blur filter
|
|
21296
|
-
...W > 0 ? [
|
|
21289
|
+
...W > 0 ? [Re] : [],
|
|
21297
21290
|
// conditionally add vignette filter
|
|
21298
21291
|
...j > 0 ? [He] : [],
|
|
21299
21292
|
// conditionally add noise filter
|
|
@@ -21312,15 +21305,15 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21312
21305
|
const [r, n] = te.useState(), i = pe(null), a = pe(null), {
|
|
21313
21306
|
visible: u,
|
|
21314
21307
|
disabled: l,
|
|
21315
|
-
transformation: { x: f, y: p, width:
|
|
21316
|
-
pointerdown:
|
|
21308
|
+
transformation: { x: f, y: p, width: g, height: c, colorCorrection: d = {} },
|
|
21309
|
+
pointerdown: m = () => {
|
|
21317
21310
|
},
|
|
21318
21311
|
pointerout: _ = () => {
|
|
21319
21312
|
},
|
|
21320
21313
|
pointerover: y = () => {
|
|
21321
21314
|
},
|
|
21322
21315
|
canvasImageRef: b
|
|
21323
|
-
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y,
|
|
21316
|
+
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y, m, _, 1), { blurRadius: F = 0, vignette: N = 0, noise: L = 0 } = d, {
|
|
21324
21317
|
temperatureFilter: D,
|
|
21325
21318
|
sharpnessFilter: V,
|
|
21326
21319
|
hueFilter: Y,
|
|
@@ -21339,7 +21332,7 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21339
21332
|
const re = er.Texture.from(x);
|
|
21340
21333
|
n(re);
|
|
21341
21334
|
}
|
|
21342
|
-
}, [x]), /* @__PURE__ */
|
|
21335
|
+
}, [x]), /* @__PURE__ */ Ae.jsx(
|
|
21343
21336
|
vn,
|
|
21344
21337
|
{
|
|
21345
21338
|
...t,
|
|
@@ -21348,18 +21341,18 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21348
21341
|
pointerdown: w,
|
|
21349
21342
|
pointerover: O,
|
|
21350
21343
|
pointerout: I,
|
|
21351
|
-
children: /* @__PURE__ */
|
|
21344
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, children: r && /* @__PURE__ */ Ae.jsx(
|
|
21352
21345
|
Bs,
|
|
21353
21346
|
{
|
|
21354
21347
|
texture: r,
|
|
21355
|
-
width:
|
|
21348
|
+
width: g,
|
|
21356
21349
|
height: c,
|
|
21357
21350
|
anchor: 0.5,
|
|
21358
21351
|
x: f,
|
|
21359
21352
|
y: p,
|
|
21360
21353
|
ref: i,
|
|
21361
21354
|
alpha: u ? 1 : 0,
|
|
21362
|
-
...!l && u && { interactive: !0, pointerdown:
|
|
21355
|
+
...!l && u && { interactive: !0, pointerdown: m },
|
|
21363
21356
|
filters: [
|
|
21364
21357
|
D,
|
|
21365
21358
|
V,
|
|
@@ -21379,9 +21372,9 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21379
21372
|
}), pU = (t) => {
|
|
21380
21373
|
const { startAt: e, endAt: r, uniqueId: n } = t, i = pe(null), a = pe(null), u = pe(null), l = pe(null), f = pe(!1), {
|
|
21381
21374
|
tl: p,
|
|
21382
|
-
totalDuration:
|
|
21375
|
+
totalDuration: g = 0,
|
|
21383
21376
|
reverseModeRef: c
|
|
21384
|
-
} = Gi(Yn), d = e < 0.2 ? "static" : "none",
|
|
21377
|
+
} = Gi(Yn), d = e < 0.2 ? "static" : "none", m = pe(1);
|
|
21385
21378
|
pt(Qe.COMPLETE, () => {
|
|
21386
21379
|
i.current && (i.current.eventMode = d);
|
|
21387
21380
|
}), pt(Qe.REVERSE_MODE_END, () => {
|
|
@@ -21409,11 +21402,11 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21409
21402
|
alpha: 1,
|
|
21410
21403
|
duration: Number(r) - Number(e),
|
|
21411
21404
|
onStart: () => {
|
|
21412
|
-
i.current && (i.current.alpha = 1, i.current.eventMode = "static",
|
|
21405
|
+
i.current && (i.current.alpha = 1, i.current.eventMode = "static", m.current = 1);
|
|
21413
21406
|
},
|
|
21414
21407
|
onUpdate: _,
|
|
21415
21408
|
onComplete: () => {
|
|
21416
|
-
i.current && (i.current.alpha = 0, i.current.eventMode = "none",
|
|
21409
|
+
i.current && (i.current.alpha = 0, i.current.eventMode = "none", m.current = 0);
|
|
21417
21410
|
}
|
|
21418
21411
|
}), p.current.add([b, l.current], e);
|
|
21419
21412
|
}
|
|
@@ -21421,13 +21414,13 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21421
21414
|
return () => {
|
|
21422
21415
|
l.current && (p.current.remove(l.current), l.current.progress(0).kill()), y.revert();
|
|
21423
21416
|
};
|
|
21424
|
-
}, [e, r,
|
|
21417
|
+
}, [e, r, g, n]), /* @__PURE__ */ Ae.jsx(
|
|
21425
21418
|
wt,
|
|
21426
21419
|
{
|
|
21427
21420
|
ref: i,
|
|
21428
21421
|
alpha: e < 0.2 ? 1 : 0,
|
|
21429
21422
|
eventMode: e < 0.2 ? "static" : "none",
|
|
21430
|
-
children: /* @__PURE__ */
|
|
21423
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: u, children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, alpha: 1, children: t.children }) })
|
|
21431
21424
|
}
|
|
21432
21425
|
);
|
|
21433
21426
|
}, gU = (t) => {
|
|
@@ -21439,15 +21432,15 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21439
21432
|
const [r, n] = te.useState(), i = pe(null), a = pe(null), {
|
|
21440
21433
|
visible: u,
|
|
21441
21434
|
disabled: l,
|
|
21442
|
-
transformation: { x: f, y: p, width:
|
|
21443
|
-
pointerdown:
|
|
21435
|
+
transformation: { x: f, y: p, width: g, height: c, colorCorrection: d = {} },
|
|
21436
|
+
pointerdown: m = () => {
|
|
21444
21437
|
},
|
|
21445
21438
|
pointerout: _ = () => {
|
|
21446
21439
|
},
|
|
21447
21440
|
pointerover: y = () => {
|
|
21448
21441
|
},
|
|
21449
21442
|
canvasImageRef: b
|
|
21450
|
-
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y,
|
|
21443
|
+
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y, m, _, 1), { blurRadius: F = 0, vignette: N = 0, noise: L = 0 } = d, {
|
|
21451
21444
|
temperatureFilter: D,
|
|
21452
21445
|
sharpnessFilter: V,
|
|
21453
21446
|
hueFilter: Y,
|
|
@@ -21466,7 +21459,7 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21466
21459
|
const re = er.Texture.from(x);
|
|
21467
21460
|
n(re);
|
|
21468
21461
|
}
|
|
21469
|
-
}, [x]), /* @__PURE__ */
|
|
21462
|
+
}, [x]), /* @__PURE__ */ Ae.jsx(
|
|
21470
21463
|
vn,
|
|
21471
21464
|
{
|
|
21472
21465
|
...t,
|
|
@@ -21475,18 +21468,18 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21475
21468
|
pointerdown: w,
|
|
21476
21469
|
pointerover: O,
|
|
21477
21470
|
pointerout: I,
|
|
21478
|
-
children: /* @__PURE__ */
|
|
21471
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, children: r && /* @__PURE__ */ Ae.jsx(
|
|
21479
21472
|
Bs,
|
|
21480
21473
|
{
|
|
21481
21474
|
texture: r,
|
|
21482
|
-
width:
|
|
21475
|
+
width: g,
|
|
21483
21476
|
height: c,
|
|
21484
21477
|
anchor: 0.5,
|
|
21485
21478
|
x: f,
|
|
21486
21479
|
y: p,
|
|
21487
21480
|
ref: i,
|
|
21488
21481
|
alpha: u ? 1 : 0,
|
|
21489
|
-
...!l && u && { interactive: !0, pointerdown:
|
|
21482
|
+
...!l && u && { interactive: !0, pointerdown: m },
|
|
21490
21483
|
filters: [
|
|
21491
21484
|
D,
|
|
21492
21485
|
V,
|