canvasengine 2.0.0-beta.36 → 2.0.0-beta.37
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/{DebugRenderer-DDfZuvTR.js → DebugRenderer-CTWPthRt.js} +2 -2
- package/dist/{DebugRenderer-DDfZuvTR.js.map → DebugRenderer-CTWPthRt.js.map} +1 -1
- package/dist/engine/reactive.d.ts.map +1 -1
- package/dist/{index--faZajmD.js → index-BqwprEPH.js} +137 -133
- package/dist/index-BqwprEPH.js.map +1 -0
- package/dist/index.global.js +6 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/engine/reactive.ts +9 -1
- package/dist/index--faZajmD.js.map +0 -1
|
@@ -4,8 +4,8 @@ var kn = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Ir = (e, A, t) => A in e ? cr(e, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[A] = t;
|
|
6
6
|
var ze = (e, A, t) => Ir(e, typeof A != "symbol" ? A + "" : A, t), Mn = (e, A, t) => A.has(e) || kn("Cannot " + t);
|
|
7
|
-
var nA = (e, A, t) => (Mn(e, A, "read from private field"), t ? t.call(e) : A.get(e)),
|
|
8
|
-
import { Point as U, Rectangle as $A, Sprite as
|
|
7
|
+
var nA = (e, A, t) => (Mn(e, A, "read from private field"), t ? t.call(e) : A.get(e)), re = (e, A, t) => A.has(e) ? kn("Cannot add the same private member more than once") : A instanceof WeakSet ? A.add(e) : A.set(e, t), st = (e, A, t, i) => (Mn(e, A, "write to private field"), i ? i.call(e, t) : A.set(e, t), t);
|
|
8
|
+
import { Point as U, Rectangle as $A, Sprite as Qe, Texture as GA, WRAP_MODES as Br, DisplacementFilter as ur, ObservablePoint as Er, BlurFilter as Rn, Container as wA, Assets as At, Graphics as Qs, Mesh as Qr, Geometry as Cr, Ticker as Cs, Text as fr, TilingSprite as fs, NineSliceSprite as ds, DOMContainer as dr, Bounds as pr, ExtensionType as Fn, ViewContainer as ps, extensions as we, AbstractText as Di, Application as yr, DOMAdapter as wr, ImageSource as mr, Matrix as Dr } from "pixi.js";
|
|
9
9
|
function vr(e, A) {
|
|
10
10
|
for (var t = 0; t < A.length; t++) {
|
|
11
11
|
const i = A[t];
|
|
@@ -361,7 +361,7 @@ function Ss(e) {
|
|
|
361
361
|
}
|
|
362
362
|
function Gn() {
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function ue(e) {
|
|
365
365
|
e();
|
|
366
366
|
}
|
|
367
367
|
var vi = function(e) {
|
|
@@ -405,7 +405,7 @@ var vi = function(e) {
|
|
|
405
405
|
try {
|
|
406
406
|
t.next(A);
|
|
407
407
|
} catch (i) {
|
|
408
|
-
|
|
408
|
+
ae(i);
|
|
409
409
|
}
|
|
410
410
|
}, e.prototype.error = function(A) {
|
|
411
411
|
var t = this.partialObserver;
|
|
@@ -413,17 +413,17 @@ var vi = function(e) {
|
|
|
413
413
|
try {
|
|
414
414
|
t.error(A);
|
|
415
415
|
} catch (i) {
|
|
416
|
-
|
|
416
|
+
ae(i);
|
|
417
417
|
}
|
|
418
418
|
else
|
|
419
|
-
|
|
419
|
+
ae(A);
|
|
420
420
|
}, e.prototype.complete = function() {
|
|
421
421
|
var A = this.partialObserver;
|
|
422
422
|
if (A.complete)
|
|
423
423
|
try {
|
|
424
424
|
A.complete();
|
|
425
425
|
} catch (t) {
|
|
426
|
-
|
|
426
|
+
ae(t);
|
|
427
427
|
}
|
|
428
428
|
}, e;
|
|
429
429
|
}(), Tt = function(e) {
|
|
@@ -438,7 +438,7 @@ var vi = function(e) {
|
|
|
438
438
|
}
|
|
439
439
|
return A;
|
|
440
440
|
}(vi);
|
|
441
|
-
function
|
|
441
|
+
function ae(e) {
|
|
442
442
|
Ss(e);
|
|
443
443
|
}
|
|
444
444
|
function Rr(e) {
|
|
@@ -471,7 +471,7 @@ var K = function() {
|
|
|
471
471
|
return t.source = this, t.operator = A, t;
|
|
472
472
|
}, e.prototype.subscribe = function(A, t, i) {
|
|
473
473
|
var n = this, o = Nr(A) ? A : new Tt(A, t, i);
|
|
474
|
-
return
|
|
474
|
+
return ue(function() {
|
|
475
475
|
var a = n, r = a.operator, h = a.source;
|
|
476
476
|
o.add(r ? r.call(o, h) : h ? n._subscribe(o) : n._trySubscribe(o));
|
|
477
477
|
}), o;
|
|
@@ -604,7 +604,7 @@ var Lr = function(e) {
|
|
|
604
604
|
throw new Ur();
|
|
605
605
|
}, A.prototype.next = function(t) {
|
|
606
606
|
var i = this;
|
|
607
|
-
|
|
607
|
+
ue(function() {
|
|
608
608
|
var n, o;
|
|
609
609
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
610
610
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
@@ -626,7 +626,7 @@ var Lr = function(e) {
|
|
|
626
626
|
});
|
|
627
627
|
}, A.prototype.error = function(t) {
|
|
628
628
|
var i = this;
|
|
629
|
-
|
|
629
|
+
ue(function() {
|
|
630
630
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
631
631
|
i.hasError = i.isStopped = !0, i.thrownError = t;
|
|
632
632
|
for (var n = i.observers; n.length; )
|
|
@@ -635,7 +635,7 @@ var Lr = function(e) {
|
|
|
635
635
|
});
|
|
636
636
|
}, A.prototype.complete = function() {
|
|
637
637
|
var t = this;
|
|
638
|
-
|
|
638
|
+
ue(function() {
|
|
639
639
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
640
640
|
t.isStopped = !0;
|
|
641
641
|
for (var i = t.observers; i.length; )
|
|
@@ -991,7 +991,7 @@ function ta(e, A) {
|
|
|
991
991
|
}
|
|
992
992
|
throw Fs(e);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function Ce(e, A) {
|
|
995
995
|
return A ? ta(e, A) : mt(e);
|
|
996
996
|
}
|
|
997
997
|
function Ol(e) {
|
|
@@ -1045,7 +1045,7 @@ function ca() {
|
|
|
1045
1045
|
e[A] = arguments[A];
|
|
1046
1046
|
var t = Jr(e), i = Tr(e), n = ga(e), o = n.args, a = n.keys;
|
|
1047
1047
|
if (o.length === 0)
|
|
1048
|
-
return
|
|
1048
|
+
return Ce([], t);
|
|
1049
1049
|
var r = new K(Ia(o, t, a ? function(h) {
|
|
1050
1050
|
return la(a, h);
|
|
1051
1051
|
} : xi));
|
|
@@ -1056,7 +1056,7 @@ function Ia(e, A, t) {
|
|
|
1056
1056
|
Ln(A, function() {
|
|
1057
1057
|
for (var n = e.length, o = new Array(n), a = n, r = n, h = function(u) {
|
|
1058
1058
|
Ln(A, function() {
|
|
1059
|
-
var s =
|
|
1059
|
+
var s = Ce(e[u], A), g = !1;
|
|
1060
1060
|
s.subscribe(De(i, function(l) {
|
|
1061
1061
|
o[u] = l, g || (g = !0, r--), r || i.next(t(o.slice()));
|
|
1062
1062
|
}, function() {
|
|
@@ -1151,7 +1151,7 @@ function ht() {
|
|
|
1151
1151
|
function _t(e) {
|
|
1152
1152
|
return 1e3 / e;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function Pt(e) {
|
|
1155
1155
|
return e && e instanceof Promise;
|
|
1156
1156
|
}
|
|
1157
1157
|
function Se(e, A) {
|
|
@@ -1234,7 +1234,7 @@ const Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1234
1234
|
isFunction: Ws,
|
|
1235
1235
|
isObject: bi,
|
|
1236
1236
|
isObservable: Xs,
|
|
1237
|
-
isPromise:
|
|
1237
|
+
isPromise: Pt,
|
|
1238
1238
|
log: fa,
|
|
1239
1239
|
preciseNow: ht,
|
|
1240
1240
|
set: Ei,
|
|
@@ -1727,7 +1727,7 @@ var EA = { events: {}, publish: function(A, t) {
|
|
|
1727
1727
|
var i = this.events[A].indexOf(t);
|
|
1728
1728
|
i !== -1 && this.events[A].splice(i, 1);
|
|
1729
1729
|
}).bind(this) };
|
|
1730
|
-
} }, P = { CONNECT: { NATIVE: "gamepadconnected", ALIAS: "connect" }, DISCONNECT: { NATIVE: "gamepaddisconnected", ALIAS: "disconnect" }, BUTTON_PRESS: { NATIVE: null, ALIAS: "button_press" }, BUTTON_RELEASE: { NATIVE: null, ALIAS: "button_release" }, AXIS_MOVEMENT: { NATIVE: null, ALIAS: "axis_move" } }, ot = { LEFT: { NAME: "left_stick", AXES: { X: 0, Y: 1 } }, RIGHT: { NAME: "right_stick", AXES: { X: 2, Y: 3 } } },
|
|
1730
|
+
} }, P = { CONNECT: { NATIVE: "gamepadconnected", ALIAS: "connect" }, DISCONNECT: { NATIVE: "gamepaddisconnected", ALIAS: "disconnect" }, BUTTON_PRESS: { NATIVE: null, ALIAS: "button_press" }, BUTTON_RELEASE: { NATIVE: null, ALIAS: "button_release" }, AXIS_MOVEMENT: { NATIVE: null, ALIAS: "axis_move" } }, ot = { LEFT: { NAME: "left_stick", AXES: { X: 0, Y: 1 } }, RIGHT: { NAME: "right_stick", AXES: { X: 2, Y: 3 } } }, ge = { LEFT: "left", RIGHT: "right", TOP: "top", BOTTOM: "bottom" }, wa = { button_0: 0, button_1: 1, button_2: 2, button_3: 3, button_4: 4, button_5: 5, button_6: 6, button_7: 7, button_8: 8, button_9: 9, button_10: 10, button_11: 11, button_12: 12, button_13: 13, button_14: 14, button_15: 15, button_16: 16, button_17: 17 }, ma = 0.8, js = function(e) {
|
|
1731
1731
|
console.warn && typeof console.warn == "function" ? console.warn(e) : console.log(e);
|
|
1732
1732
|
}, Da = function(e, A) {
|
|
1733
1733
|
var t = [];
|
|
@@ -1779,7 +1779,7 @@ var EA = { events: {}, publish: function(A, t) {
|
|
|
1779
1779
|
i.forEach(function(a, r) {
|
|
1780
1780
|
if (Math.abs(a) > t) {
|
|
1781
1781
|
var h = null, c = null, u = a;
|
|
1782
|
-
h = r < o ? ot.LEFT.NAME : ot.RIGHT.NAME, (r === ot.LEFT.AXES.X || r === ot.RIGHT.AXES.X) && (c = a < 0 ?
|
|
1782
|
+
h = r < o ? ot.LEFT.NAME : ot.RIGHT.NAME, (r === ot.LEFT.AXES.X || r === ot.RIGHT.AXES.X) && (c = a < 0 ? ge.LEFT : ge.RIGHT), (r === ot.LEFT.AXES.Y || r === ot.RIGHT.AXES.Y) && (c = a < 0 ? ge.TOP : ge.BOTTOM);
|
|
1783
1783
|
var s = { gamepad: e, totalSticks: o, stickMoved: h, directionOfMovement: c, axisMovementValue: u, axis: r };
|
|
1784
1784
|
return window.dispatchEvent(A(s));
|
|
1785
1785
|
}
|
|
@@ -2262,7 +2262,7 @@ class Ga extends mA {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
2264
|
DA("tick", Ga);
|
|
2265
|
-
var Na = Object.defineProperty, Z = (e, A) => Na(e, "name", { value: A, configurable: !0 }), ft,
|
|
2265
|
+
var Na = Object.defineProperty, Z = (e, A) => Na(e, "name", { value: A, configurable: !0 }), ft, he = (ft = class extends ve {
|
|
2266
2266
|
constructor(t = []) {
|
|
2267
2267
|
super({
|
|
2268
2268
|
type: "init",
|
|
@@ -2329,7 +2329,7 @@ var Na = Object.defineProperty, Z = (e, A) => Na(e, "name", { value: A, configur
|
|
|
2329
2329
|
items: t
|
|
2330
2330
|
});
|
|
2331
2331
|
}
|
|
2332
|
-
}, Z(ft, "ArraySubject"), ft), Jl = /* @__PURE__ */ Z((e) => "_items" in e, "isArraySubject"), dt,
|
|
2332
|
+
}, Z(ft, "ArraySubject"), ft), Jl = /* @__PURE__ */ Z((e) => "_items" in e, "isArraySubject"), dt, le = (dt = class extends ve {
|
|
2333
2333
|
constructor(t = {}) {
|
|
2334
2334
|
super({
|
|
2335
2335
|
type: "init",
|
|
@@ -2400,19 +2400,19 @@ var Na = Object.defineProperty, Z = (e, A) => Na(e, "name", { value: A, configur
|
|
|
2400
2400
|
}, "trackDependency");
|
|
2401
2401
|
function Y(e) {
|
|
2402
2402
|
let A;
|
|
2403
|
-
Array.isArray(e) ? A = new
|
|
2404
|
-
const t = /* @__PURE__ */ Z(() => A instanceof
|
|
2403
|
+
Array.isArray(e) ? A = new he(e) : typeof e == "object" && e !== null ? A = new le(e) : A = new ve(e);
|
|
2404
|
+
const t = /* @__PURE__ */ Z(() => A instanceof he ? A.items : A instanceof le ? A.obj : A.value, "getValue"), i = /* @__PURE__ */ Z(function() {
|
|
2405
2405
|
return zs(i), t();
|
|
2406
2406
|
}, "fn");
|
|
2407
2407
|
return i.set = (n) => {
|
|
2408
|
-
A instanceof
|
|
2408
|
+
A instanceof he ? A.items = n : A instanceof le ? A.obj = n : A.next(n);
|
|
2409
2409
|
}, i._isFrozen = !1, i.freeze = () => {
|
|
2410
2410
|
i._isFrozen = !0;
|
|
2411
2411
|
}, i.unfreeze = () => {
|
|
2412
|
-
i._isFrozen = !1, A instanceof
|
|
2412
|
+
i._isFrozen = !1, A instanceof he ? A.next({
|
|
2413
2413
|
type: "init",
|
|
2414
2414
|
items: A.items
|
|
2415
|
-
}) : A instanceof
|
|
2415
|
+
}) : A instanceof le ? A.next({
|
|
2416
2416
|
type: "init",
|
|
2417
2417
|
value: A.obj
|
|
2418
2418
|
}) : A.next(A.value);
|
|
@@ -2473,7 +2473,11 @@ function iA(e) {
|
|
|
2473
2473
|
(i = (t = e.directives[r]).onDestroy) == null || i.call(t, e);
|
|
2474
2474
|
e.componentInstance && e.componentInstance.onDestroy ? e.componentInstance.onDestroy(e.parent, () => {
|
|
2475
2475
|
var r, h, c;
|
|
2476
|
-
(r = e.propSubscriptions) == null || r.forEach((u) => u.unsubscribe()), (h = e.effectSubscriptions) == null || h.forEach((u) => u.unsubscribe()), (c = e.effectUnmounts) == null || c.forEach((u) =>
|
|
2476
|
+
(r = e.propSubscriptions) == null || r.forEach((u) => u.unsubscribe()), (h = e.effectSubscriptions) == null || h.forEach((u) => u.unsubscribe()), (c = e.effectUnmounts) == null || c.forEach((u) => {
|
|
2477
|
+
Pt(u) ? u.then((s) => {
|
|
2478
|
+
s == null || s();
|
|
2479
|
+
}) : u == null || u();
|
|
2480
|
+
});
|
|
2477
2481
|
}) : ((n = e.propSubscriptions) == null || n.forEach((r) => r.unsubscribe()), (o = e.effectSubscriptions) == null || o.forEach((r) => r.unsubscribe()), (a = e.effectUnmounts) == null || a.forEach((r) => r == null ? void 0 : r()));
|
|
2478
2482
|
}
|
|
2479
2483
|
}
|
|
@@ -2561,7 +2565,7 @@ function gA(e, A) {
|
|
|
2561
2565
|
l && await r(s, l);
|
|
2562
2566
|
}
|
|
2563
2567
|
async function r(s, g) {
|
|
2564
|
-
if (
|
|
2568
|
+
if (Pt(g) && (g = await g), g instanceof K) {
|
|
2565
2569
|
const l = g.subscribe(
|
|
2566
2570
|
(E) => {
|
|
2567
2571
|
if (E && typeof E == "object" && "elements" in E) {
|
|
@@ -2719,7 +2723,7 @@ function Yl(e, A, ...t) {
|
|
|
2719
2723
|
if (E !== n)
|
|
2720
2724
|
if (i && (iA(i), i = null), n = E, l) {
|
|
2721
2725
|
let Q = a();
|
|
2722
|
-
|
|
2726
|
+
Pt(Q) ? Ce(Q).subscribe((d) => {
|
|
2723
2727
|
i = d, c.next({
|
|
2724
2728
|
type: "init",
|
|
2725
2729
|
elements: [d]
|
|
@@ -2730,7 +2734,7 @@ function Yl(e, A, ...t) {
|
|
|
2730
2734
|
}));
|
|
2731
2735
|
} else if (g >= 0) {
|
|
2732
2736
|
let Q = h[g].elementFn();
|
|
2733
|
-
|
|
2737
|
+
Pt(Q) ? Ce(Q).subscribe((d) => {
|
|
2734
2738
|
i = d, c.next({
|
|
2735
2739
|
type: "init",
|
|
2736
2740
|
elements: [d]
|
|
@@ -4222,7 +4226,7 @@ const Yn = (e) => 0, to = (e, A, t) => {
|
|
|
4222
4226
|
const i = A - e;
|
|
4223
4227
|
return i === 0 ? 1 : (t - e) / i;
|
|
4224
4228
|
}, Fi = (e, A, t) => -t * e + t * A + e, eo = (e, A) => (t) => Math.max(Math.min(t, A), e), Gt = (e) => e % 1 ? Number(e.toFixed(5)) : e, fe = /(-)?([\d]*\.?[\d])+/g, pi = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, $a = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
4225
|
-
function
|
|
4229
|
+
function Wt(e) {
|
|
4226
4230
|
return typeof e == "string";
|
|
4227
4231
|
}
|
|
4228
4232
|
const xe = {
|
|
@@ -4232,13 +4236,13 @@ const xe = {
|
|
|
4232
4236
|
}, io = Object.assign(Object.assign({}, xe), { transform: eo(0, 1) });
|
|
4233
4237
|
Object.assign(Object.assign({}, xe), { default: 1 });
|
|
4234
4238
|
const Ag = (e) => ({
|
|
4235
|
-
test: (A) =>
|
|
4239
|
+
test: (A) => Wt(A) && A.endsWith(e) && A.split(" ").length === 1,
|
|
4236
4240
|
parse: parseFloat,
|
|
4237
4241
|
transform: (A) => `${A}${e}`
|
|
4238
4242
|
}), Nt = Ag("%");
|
|
4239
4243
|
Object.assign(Object.assign({}, Nt), { parse: (e) => Nt.parse(e) / 100, transform: (e) => Nt.transform(e * 100) });
|
|
4240
|
-
const _i = (e, A) => (t) => !!(
|
|
4241
|
-
if (!
|
|
4244
|
+
const _i = (e, A) => (t) => !!(Wt(t) && $a.test(t) && t.startsWith(e) || A && Object.prototype.hasOwnProperty.call(t, A)), no = (e, A, t) => (i) => {
|
|
4245
|
+
if (!Wt(i))
|
|
4242
4246
|
return i;
|
|
4243
4247
|
const [n, o, a, r] = i.match(fe);
|
|
4244
4248
|
return {
|
|
@@ -4272,11 +4276,11 @@ const yi = {
|
|
|
4272
4276
|
}, be = {
|
|
4273
4277
|
test: (e) => PA.test(e) || yi.test(e) || jA.test(e),
|
|
4274
4278
|
parse: (e) => PA.test(e) ? PA.parse(e) : jA.test(e) ? jA.parse(e) : yi.parse(e),
|
|
4275
|
-
transform: (e) =>
|
|
4279
|
+
transform: (e) => Wt(e) ? e : e.hasOwnProperty("red") ? PA.transform(e) : jA.transform(e)
|
|
4276
4280
|
}, so = "${c}", oo = "${n}";
|
|
4277
4281
|
function ig(e) {
|
|
4278
4282
|
var A, t, i, n;
|
|
4279
|
-
return isNaN(e) &&
|
|
4283
|
+
return isNaN(e) && Wt(e) && ((t = (A = e.match(fe)) === null || A === void 0 ? void 0 : A.length) !== null && t !== void 0 ? t : 0) + ((n = (i = e.match(pi)) === null || i === void 0 ? void 0 : i.length) !== null && n !== void 0 ? n : 0) > 0;
|
|
4280
4284
|
}
|
|
4281
4285
|
function ro(e) {
|
|
4282
4286
|
typeof e == "number" && (e = `${e}`);
|
|
@@ -4432,7 +4436,7 @@ function Fg(e) {
|
|
|
4432
4436
|
function _g(e, A) {
|
|
4433
4437
|
return e.map((t) => t * A);
|
|
4434
4438
|
}
|
|
4435
|
-
function
|
|
4439
|
+
function Ee({ from: e = 0, to: A = 1, ease: t, offset: i, duration: n = 300 }) {
|
|
4436
4440
|
const o = { done: !1, value: e }, a = Array.isArray(A) ? A : [e, A], r = _g(i && i.length === a.length ? i : Fg(a), n);
|
|
4437
4441
|
function h() {
|
|
4438
4442
|
return Eo(r, a, {
|
|
@@ -4460,14 +4464,14 @@ function Gg({ velocity: e = 0, from: A = 0, power: t = 0.8, timeConstant: i = 35
|
|
|
4460
4464
|
}
|
|
4461
4465
|
};
|
|
4462
4466
|
}
|
|
4463
|
-
const Vn = { keyframes:
|
|
4467
|
+
const Vn = { keyframes: Ee, spring: Ri, decay: Gg };
|
|
4464
4468
|
function Ng(e) {
|
|
4465
4469
|
if (Array.isArray(e.to))
|
|
4466
|
-
return
|
|
4470
|
+
return Ee;
|
|
4467
4471
|
if (Vn[e.type])
|
|
4468
4472
|
return Vn[e.type];
|
|
4469
4473
|
const A = new Set(Object.keys(e));
|
|
4470
|
-
return A.has("ease") || A.has("duration") && !A.has("dampingRatio") ?
|
|
4474
|
+
return A.has("ease") || A.has("duration") && !A.has("dampingRatio") ? Ee : A.has("dampingRatio") || A.has("stiffness") || A.has("mass") || A.has("damping") || A.has("restSpeed") || A.has("restDelta") ? Ri : Ee;
|
|
4471
4475
|
}
|
|
4472
4476
|
const wo = 1 / 60 * 1e3, Hg = typeof performance < "u" ? () => performance.now() : () => Date.now(), mo = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(Hg()), wo);
|
|
4473
4477
|
function Lg(e) {
|
|
@@ -4497,25 +4501,25 @@ function Lg(e) {
|
|
|
4497
4501
|
return r;
|
|
4498
4502
|
}
|
|
4499
4503
|
const Ug = 40;
|
|
4500
|
-
let wi = !0,
|
|
4504
|
+
let wi = !0, Kt = !1, mi = !1;
|
|
4501
4505
|
const Ht = {
|
|
4502
4506
|
delta: 0,
|
|
4503
4507
|
timestamp: 0
|
|
4504
|
-
},
|
|
4508
|
+
}, Xt = [
|
|
4505
4509
|
"read",
|
|
4506
4510
|
"update",
|
|
4507
4511
|
"preRender",
|
|
4508
4512
|
"render",
|
|
4509
4513
|
"postRender"
|
|
4510
|
-
], Me =
|
|
4514
|
+
], Me = Xt.reduce((e, A) => (e[A] = Lg(() => Kt = !0), e), {}), Og = Xt.reduce((e, A) => {
|
|
4511
4515
|
const t = Me[A];
|
|
4512
|
-
return e[A] = (i, n = !1, o = !1) => (
|
|
4513
|
-
}, {}), Tg =
|
|
4514
|
-
|
|
4516
|
+
return e[A] = (i, n = !1, o = !1) => (Kt || Pg(), t.schedule(i, n, o)), e;
|
|
4517
|
+
}, {}), Tg = Xt.reduce((e, A) => (e[A] = Me[A].cancel, e), {});
|
|
4518
|
+
Xt.reduce((e, A) => (e[A] = () => Me[A].process(Ht), e), {});
|
|
4515
4519
|
const Jg = (e) => Me[e].process(Ht), Do = (e) => {
|
|
4516
|
-
|
|
4520
|
+
Kt = !1, Ht.delta = wi ? wo : Math.max(Math.min(e - Ht.timestamp, Ug), 1), Ht.timestamp = e, mi = !0, Xt.forEach(Jg), mi = !1, Kt && (wi = !1, mo(Do));
|
|
4517
4521
|
}, Pg = () => {
|
|
4518
|
-
|
|
4522
|
+
Kt = !0, wi = !0, mi || mo(Do);
|
|
4519
4523
|
};
|
|
4520
4524
|
function vo(e, A, t = 0) {
|
|
4521
4525
|
return e - A - t;
|
|
@@ -4739,7 +4743,7 @@ class jg extends mA {
|
|
|
4739
4743
|
onInit(A) {
|
|
4740
4744
|
}
|
|
4741
4745
|
onMount(A) {
|
|
4742
|
-
const { image: t } = A.props.transition, i = new
|
|
4746
|
+
const { image: t } = A.props.transition, i = new Qe(GA.from(t));
|
|
4743
4747
|
i.texture.baseTexture.wrapMode = Br.REPEAT;
|
|
4744
4748
|
const n = new ur(i), o = A.componentInstance;
|
|
4745
4749
|
o.filters = [n], o.addChild(i), setTimeout(() => {
|
|
@@ -5126,9 +5130,9 @@ function vA(e) {
|
|
|
5126
5130
|
return n = class extends e {
|
|
5127
5131
|
constructor() {
|
|
5128
5132
|
super(...arguments);
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5133
|
+
re(this, A);
|
|
5134
|
+
re(this, t);
|
|
5135
|
+
re(this, i);
|
|
5132
5136
|
st(this, A, null), this.isFlex = !1, this.fullProps = {}, this.isMounted = !1, this._anchorPoints = new Er({ _onUpdate: () => {
|
|
5133
5137
|
} }, 0, 0), this.isCustomAnchor = !1, this.displayWidth = Y(0), this.displayHeight = Y(0), this.overrideProps = [], this.layout = null, this.onBeforeDestroy = null, this.onAfterMount = null, this.subjectInit = new ve(null), this.disableLayout = !1, st(this, t, /* @__PURE__ */ new Map()), st(this, i, null);
|
|
5134
5138
|
}
|
|
@@ -5500,7 +5504,7 @@ class th extends vA(Qs) {
|
|
|
5500
5504
|
}
|
|
5501
5505
|
}
|
|
5502
5506
|
aA("Graphics", th);
|
|
5503
|
-
function
|
|
5507
|
+
function qt(e) {
|
|
5504
5508
|
return gA("Graphics", e);
|
|
5505
5509
|
}
|
|
5506
5510
|
function eh(e) {
|
|
@@ -5508,7 +5512,7 @@ function eh(e) {
|
|
|
5508
5512
|
borderRadius: null,
|
|
5509
5513
|
border: null
|
|
5510
5514
|
});
|
|
5511
|
-
return
|
|
5515
|
+
return qt({
|
|
5512
5516
|
draw: (n, o, a) => {
|
|
5513
5517
|
t() ? n.roundRect(0, 0, o, a, t()) : n.rect(0, 0, o, a), i && n.stroke(i), n.fill(A());
|
|
5514
5518
|
},
|
|
@@ -5523,7 +5527,7 @@ function $l(e) {
|
|
|
5523
5527
|
const { radius: A, color: t, border: i } = rA(e, {
|
|
5524
5528
|
border: null
|
|
5525
5529
|
});
|
|
5526
|
-
return
|
|
5530
|
+
return qt({
|
|
5527
5531
|
draw: (n) => ih(n, "circle", { radius: A, color: t, border: i }),
|
|
5528
5532
|
...e
|
|
5529
5533
|
});
|
|
@@ -5532,7 +5536,7 @@ function Ac(e) {
|
|
|
5532
5536
|
const { width: A, height: t, color: i, border: n } = rA(e, {
|
|
5533
5537
|
border: null
|
|
5534
5538
|
});
|
|
5535
|
-
return
|
|
5539
|
+
return qt({
|
|
5536
5540
|
draw: (o, a, r) => {
|
|
5537
5541
|
o.ellipse(0, 0, a / 2, r / 2), n() && o.stroke(n()), o.fill(i());
|
|
5538
5542
|
},
|
|
@@ -5544,7 +5548,7 @@ function tc(e) {
|
|
|
5544
5548
|
border: null,
|
|
5545
5549
|
color: "#000"
|
|
5546
5550
|
});
|
|
5547
|
-
return
|
|
5551
|
+
return qt({
|
|
5548
5552
|
draw: (o, a, r) => {
|
|
5549
5553
|
o.moveTo(0, r), o.lineTo(a / 2, 0), o.lineTo(a, r), o.lineTo(0, r), o.fill(i()), n && o.stroke(n);
|
|
5550
5554
|
},
|
|
@@ -5552,7 +5556,7 @@ function tc(e) {
|
|
|
5552
5556
|
});
|
|
5553
5557
|
}
|
|
5554
5558
|
function ec(e) {
|
|
5555
|
-
return
|
|
5559
|
+
return qt({
|
|
5556
5560
|
draw: async (A) => {
|
|
5557
5561
|
if (e.src) {
|
|
5558
5562
|
const t = await At.load({
|
|
@@ -5780,19 +5784,19 @@ class yA {
|
|
|
5780
5784
|
if ("list" in A) {
|
|
5781
5785
|
const i = A.list;
|
|
5782
5786
|
let n;
|
|
5783
|
-
const { value: o, time: a } = i[0], r = n = new yA(typeof o == "string" ?
|
|
5787
|
+
const { value: o, time: a } = i[0], r = n = new yA(typeof o == "string" ? ce(o) : o, a, A.ease);
|
|
5784
5788
|
if (i.length > 2 || i.length === 2 && i[1].value !== o)
|
|
5785
5789
|
for (let h = 1; h < i.length; ++h) {
|
|
5786
5790
|
const { value: c, time: u } = i[h];
|
|
5787
|
-
n.next = new yA(typeof c == "string" ?
|
|
5791
|
+
n.next = new yA(typeof c == "string" ? ce(c) : c, u), n = n.next;
|
|
5788
5792
|
}
|
|
5789
5793
|
return r.isStepped = !!A.isStepped, r;
|
|
5790
5794
|
}
|
|
5791
|
-
const t = new yA(typeof A.start == "string" ?
|
|
5792
|
-
return A.end !== A.start && (t.next = new yA(typeof A.end == "string" ?
|
|
5795
|
+
const t = new yA(typeof A.start == "string" ? ce(A.start) : A.start, 0);
|
|
5796
|
+
return A.end !== A.start && (t.next = new yA(typeof A.end == "string" ? ce(A.end) : A.end, 1)), t;
|
|
5793
5797
|
}
|
|
5794
5798
|
}
|
|
5795
|
-
let
|
|
5799
|
+
let Yt = GA.from;
|
|
5796
5800
|
const pA = Math.PI / 180;
|
|
5797
5801
|
function _A(e, A) {
|
|
5798
5802
|
if (!e)
|
|
@@ -5816,7 +5820,7 @@ function sh(e) {
|
|
|
5816
5820
|
function Ro(e, A) {
|
|
5817
5821
|
e.x *= A, e.y *= A;
|
|
5818
5822
|
}
|
|
5819
|
-
function
|
|
5823
|
+
function ce(e, A) {
|
|
5820
5824
|
A || (A = {}), e.charAt(0) === "#" ? e = e.substr(1) : e.indexOf("0x") === 0 && (e = e.substr(2));
|
|
5821
5825
|
let t;
|
|
5822
5826
|
return e.length === 8 && (t = e.substr(0, 2), e = e.substr(2)), A.r = parseInt(e.substr(0, 2), 16), A.g = parseInt(e.substr(2, 2), 16), A.b = parseInt(e.substr(4, 2), 16), t && (A.a = parseInt(t, 16)), A;
|
|
@@ -5908,7 +5912,7 @@ function ch(e) {
|
|
|
5908
5912
|
const t = A.value;
|
|
5909
5913
|
return Fe(t.r, t.g, t.b);
|
|
5910
5914
|
}
|
|
5911
|
-
class
|
|
5915
|
+
class Vt {
|
|
5912
5916
|
/**
|
|
5913
5917
|
* @param isColor If this list handles color values
|
|
5914
5918
|
*/
|
|
@@ -5926,7 +5930,7 @@ class qt {
|
|
|
5926
5930
|
}
|
|
5927
5931
|
class Pi {
|
|
5928
5932
|
constructor(A) {
|
|
5929
|
-
this.order = J.Normal, this.list = new
|
|
5933
|
+
this.order = J.Normal, this.list = new Vt(!1), this.list.reset(yA.createList(A.alpha));
|
|
5930
5934
|
}
|
|
5931
5935
|
initParticles(A) {
|
|
5932
5936
|
let t = A;
|
|
@@ -5956,12 +5960,12 @@ function _o(e) {
|
|
|
5956
5960
|
for (let t = 0; t < e.length; ++t) {
|
|
5957
5961
|
let i = e[t];
|
|
5958
5962
|
if (typeof i == "string")
|
|
5959
|
-
A.push(
|
|
5963
|
+
A.push(Yt(i));
|
|
5960
5964
|
else if (i instanceof GA)
|
|
5961
5965
|
A.push(i);
|
|
5962
5966
|
else {
|
|
5963
5967
|
let n = i.count || 1;
|
|
5964
|
-
for (typeof i.texture == "string" ? i =
|
|
5968
|
+
for (typeof i.texture == "string" ? i = Yt(i.texture) : i = i.texture; n > 0; --n)
|
|
5965
5969
|
A.push(i);
|
|
5966
5970
|
}
|
|
5967
5971
|
}
|
|
@@ -6050,7 +6054,7 @@ qi.type = "spawnBurst";
|
|
|
6050
6054
|
qi.editorConfig = null;
|
|
6051
6055
|
class Vi {
|
|
6052
6056
|
constructor(A) {
|
|
6053
|
-
this.order = J.Normal, this.list = new
|
|
6057
|
+
this.order = J.Normal, this.list = new Vt(!0), this.list.reset(yA.createList(A.color));
|
|
6054
6058
|
}
|
|
6055
6059
|
initParticles(A) {
|
|
6056
6060
|
let t = A;
|
|
@@ -6080,7 +6084,7 @@ Zi.type = "colorStatic";
|
|
|
6080
6084
|
Zi.editorConfig = null;
|
|
6081
6085
|
class ji {
|
|
6082
6086
|
constructor(A) {
|
|
6083
|
-
this.order = J.Normal, this.index = 0, this.textures = A.textures.map((t) => typeof t == "string" ?
|
|
6087
|
+
this.order = J.Normal, this.index = 0, this.textures = A.textures.map((t) => typeof t == "string" ? Yt(t) : t);
|
|
6084
6088
|
}
|
|
6085
6089
|
initParticles(A) {
|
|
6086
6090
|
let t = A;
|
|
@@ -6155,7 +6159,7 @@ class zi {
|
|
|
6155
6159
|
}
|
|
6156
6160
|
else
|
|
6157
6161
|
this.path = (t) => t;
|
|
6158
|
-
this.list = new
|
|
6162
|
+
this.list = new Vt(!1), this.list.reset(yA.createList(A.speed)), this.minMult = A.minMult ?? 1;
|
|
6159
6163
|
}
|
|
6160
6164
|
initParticles(A) {
|
|
6161
6165
|
let t = A;
|
|
@@ -6184,7 +6188,7 @@ $i.type = "spawnPoint";
|
|
|
6184
6188
|
$i.editorConfig = null;
|
|
6185
6189
|
class An {
|
|
6186
6190
|
constructor(A) {
|
|
6187
|
-
this.order = J.Normal, this.textures = A.textures.map((t) => typeof t == "string" ?
|
|
6191
|
+
this.order = J.Normal, this.textures = A.textures.map((t) => typeof t == "string" ? Yt(t) : t);
|
|
6188
6192
|
}
|
|
6189
6193
|
initParticles(A) {
|
|
6190
6194
|
let t = A;
|
|
@@ -6241,7 +6245,7 @@ nn.type = "noRotation";
|
|
|
6241
6245
|
nn.editorConfig = null;
|
|
6242
6246
|
class sn {
|
|
6243
6247
|
constructor(A) {
|
|
6244
|
-
this.order = J.Normal, this.list = new
|
|
6248
|
+
this.order = J.Normal, this.list = new Vt(!1), this.list.reset(yA.createList(A.scale)), this.minMult = A.minMult ?? 1;
|
|
6245
6249
|
}
|
|
6246
6250
|
initParticles(A) {
|
|
6247
6251
|
let t = A;
|
|
@@ -6301,7 +6305,7 @@ QA.registerShape(_e);
|
|
|
6301
6305
|
QA.registerShape(_e, "circle");
|
|
6302
6306
|
class rn {
|
|
6303
6307
|
constructor(A) {
|
|
6304
|
-
this.order = J.Normal, this.texture = typeof A.texture == "string" ?
|
|
6308
|
+
this.order = J.Normal, this.texture = typeof A.texture == "string" ? Yt(A.texture) : A.texture;
|
|
6305
6309
|
}
|
|
6306
6310
|
initParticles(A) {
|
|
6307
6311
|
let t = A;
|
|
@@ -6313,7 +6317,7 @@ rn.type = "textureSingle";
|
|
|
6313
6317
|
rn.editorConfig = null;
|
|
6314
6318
|
class an {
|
|
6315
6319
|
constructor(A) {
|
|
6316
|
-
this.order = J.Late, this.list = new
|
|
6320
|
+
this.order = J.Late, this.list = new Vt(!1), this.list.reset(yA.createList(A.speed)), this.minMult = A.minMult ?? 1;
|
|
6317
6321
|
}
|
|
6318
6322
|
initParticles(A) {
|
|
6319
6323
|
let t = A;
|
|
@@ -6347,7 +6351,7 @@ class gn {
|
|
|
6347
6351
|
}
|
|
6348
6352
|
gn.type = "moveSpeedStatic";
|
|
6349
6353
|
gn.editorConfig = null;
|
|
6350
|
-
class ai extends
|
|
6354
|
+
class ai extends Qe {
|
|
6351
6355
|
/**
|
|
6352
6356
|
* @param emitter The emitter that controls this particle.
|
|
6353
6357
|
*/
|
|
@@ -6719,7 +6723,7 @@ function oc(e) {
|
|
|
6719
6723
|
return gA("ParticlesEmitter", e);
|
|
6720
6724
|
}
|
|
6721
6725
|
const zn = console.log;
|
|
6722
|
-
class Eh extends vA(
|
|
6726
|
+
class Eh extends vA(Qe) {
|
|
6723
6727
|
constructor() {
|
|
6724
6728
|
super(...arguments), this.currentAnimation = null, this.time = 0, this.frameIndex = 0, this.animations = /* @__PURE__ */ new Map(), this.subscriptionSheet = [], this.sheetParams = {}, this.sheetCurrentAnimation = "stand", this.app = null, this.currentAnimationContainer = null;
|
|
6725
6729
|
}
|
|
@@ -6943,7 +6947,7 @@ class Eh extends vA(Ee) {
|
|
|
6943
6947
|
let a = n.animations;
|
|
6944
6948
|
a = Ws(a) ? a(...o) : a, this.currentAnimationContainer = new wA();
|
|
6945
6949
|
for (let c of a) {
|
|
6946
|
-
const u = new
|
|
6950
|
+
const u = new Qe();
|
|
6947
6951
|
for (let s of c)
|
|
6948
6952
|
this.currentAnimation.sprites.push(s);
|
|
6949
6953
|
this.currentAnimationContainer.addChild(u);
|
|
@@ -9722,7 +9726,7 @@ var ol = (() => {
|
|
|
9722
9726
|
};
|
|
9723
9727
|
}
|
|
9724
9728
|
var cA = [{}, { value: void 0 }, { value: null }, { value: !0 }, { value: !1 }], Le = [];
|
|
9725
|
-
function
|
|
9729
|
+
function Zt(I) {
|
|
9726
9730
|
var B = Error, C = He(I, function(p) {
|
|
9727
9731
|
this.name = I, this.message = p, p = Error(p).stack, p !== void 0 && (this.stack = this.toString() + `
|
|
9728
9732
|
` + p.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
@@ -9735,7 +9739,7 @@ var ol = (() => {
|
|
|
9735
9739
|
function G(I) {
|
|
9736
9740
|
throw new et(I);
|
|
9737
9741
|
}
|
|
9738
|
-
var vt = (I) => (I || G("Cannot use deleted val. handle = " + I), cA[I].value),
|
|
9742
|
+
var vt = (I) => (I || G("Cannot use deleted val. handle = " + I), cA[I].value), jt = (I) => {
|
|
9739
9743
|
switch (I) {
|
|
9740
9744
|
case void 0:
|
|
9741
9745
|
return 1;
|
|
@@ -9776,7 +9780,7 @@ var ol = (() => {
|
|
|
9776
9780
|
var C = qA[I];
|
|
9777
9781
|
return C === void 0 && G(B + " has unknown type " + En(I)), C;
|
|
9778
9782
|
}
|
|
9779
|
-
function
|
|
9783
|
+
function zt() {
|
|
9780
9784
|
}
|
|
9781
9785
|
var Te = !1;
|
|
9782
9786
|
function Cn(I) {
|
|
@@ -9790,11 +9794,11 @@ var ol = (() => {
|
|
|
9790
9794
|
return B = Oe(I, B), xA[B];
|
|
9791
9795
|
}
|
|
9792
9796
|
var pn = void 0;
|
|
9793
|
-
function
|
|
9797
|
+
function $t(I) {
|
|
9794
9798
|
throw new pn(I);
|
|
9795
9799
|
}
|
|
9796
|
-
function
|
|
9797
|
-
return B.P && B.O ||
|
|
9800
|
+
function Ae(I, B) {
|
|
9801
|
+
return B.P && B.O || $t("makeClassHandle requires ptr and ptrType"), !!B.U != !!B.T && $t("Both smartPtrType and smartPtr must be specified"), B.count = { value: 1 }, it(Object.create(I, { M: { value: B } }));
|
|
9798
9802
|
}
|
|
9799
9803
|
function it(I) {
|
|
9800
9804
|
return typeof FinalizationRegistry > "u" ? (it = (B) => B, I) : (Te = new FinalizationRegistry((B) => {
|
|
@@ -9802,11 +9806,11 @@ var ol = (() => {
|
|
|
9802
9806
|
}), it = (B) => {
|
|
9803
9807
|
var C = B.M;
|
|
9804
9808
|
return C.T && Te.register(B, { M: C }, B), B;
|
|
9805
|
-
},
|
|
9809
|
+
}, zt = (B) => {
|
|
9806
9810
|
Te.unregister(B);
|
|
9807
9811
|
}, it(I));
|
|
9808
9812
|
}
|
|
9809
|
-
var
|
|
9813
|
+
var te = {};
|
|
9810
9814
|
function Je(I) {
|
|
9811
9815
|
for (; I.length; ) {
|
|
9812
9816
|
var B = I.pop();
|
|
@@ -9816,14 +9820,14 @@ var ol = (() => {
|
|
|
9816
9820
|
function bt(I) {
|
|
9817
9821
|
return this.fromWireType(w[I >> 2]);
|
|
9818
9822
|
}
|
|
9819
|
-
var nt = {},
|
|
9823
|
+
var nt = {}, ee = {};
|
|
9820
9824
|
function LA(I, B, C) {
|
|
9821
9825
|
function p(S) {
|
|
9822
|
-
S = C(S), S.length !== I.length &&
|
|
9826
|
+
S = C(S), S.length !== I.length && $t("Mismatched type converter count");
|
|
9823
9827
|
for (var b = 0; b < I.length; ++b) bA(I[b], S[b]);
|
|
9824
9828
|
}
|
|
9825
9829
|
I.forEach(function(S) {
|
|
9826
|
-
|
|
9830
|
+
ee[S] = B;
|
|
9827
9831
|
});
|
|
9828
9832
|
var y = Array(B.length), m = [], v = 0;
|
|
9829
9833
|
B.forEach((S, b) => {
|
|
@@ -9853,7 +9857,7 @@ var ol = (() => {
|
|
|
9853
9857
|
if (C.ua) return;
|
|
9854
9858
|
G("Cannot register type '" + p + "' twice");
|
|
9855
9859
|
}
|
|
9856
|
-
qA[I] = B, delete
|
|
9860
|
+
qA[I] = B, delete ee[I], nt.hasOwnProperty(I) && (B = nt[I], delete nt[I], B.forEach((y) => y()));
|
|
9857
9861
|
}
|
|
9858
9862
|
function Ke(I) {
|
|
9859
9863
|
G(I.M.P.N.name + " instance already deleted");
|
|
@@ -9900,7 +9904,7 @@ var ol = (() => {
|
|
|
9900
9904
|
if (B.M.U === this) C = B.M.T;
|
|
9901
9905
|
else {
|
|
9902
9906
|
var p = B.clone();
|
|
9903
|
-
C = this.xa(C,
|
|
9907
|
+
C = this.xa(C, jt(function() {
|
|
9904
9908
|
p.delete();
|
|
9905
9909
|
})), I !== null && I.push(this.W, C);
|
|
9906
9910
|
}
|
|
@@ -9917,7 +9921,7 @@ var ol = (() => {
|
|
|
9917
9921
|
this.name = I, this.N = B, this.ea = C, this.ca = p, this.da = !1, this.W = this.xa = this.fa = this.ka = this.Ba = this.wa = void 0, B.R !== void 0 ? this.toWireType = qo : (this.toWireType = p ? Xo : Vo, this.V = null);
|
|
9918
9922
|
}
|
|
9919
9923
|
function Zo(I, B) {
|
|
9920
|
-
t.hasOwnProperty(I) ||
|
|
9924
|
+
t.hasOwnProperty(I) || $t("Replacing nonexistant public symbol"), t[I] = B, t[I].Z = void 0;
|
|
9921
9925
|
}
|
|
9922
9926
|
function jo(I, B) {
|
|
9923
9927
|
var C = [];
|
|
@@ -9935,9 +9939,9 @@ var ol = (() => {
|
|
|
9935
9939
|
return typeof C != "function" && G("unknown function pointer with signature " + I + ": " + B), C;
|
|
9936
9940
|
}
|
|
9937
9941
|
var yn = void 0;
|
|
9938
|
-
function
|
|
9942
|
+
function ie(I, B) {
|
|
9939
9943
|
function C(m) {
|
|
9940
|
-
y[m] || qA[m] || (
|
|
9944
|
+
y[m] || qA[m] || (ee[m] ? ee[m].forEach(C) : (p.push(m), y[m] = !0));
|
|
9941
9945
|
}
|
|
9942
9946
|
var p = [], y = {};
|
|
9943
9947
|
throw B.forEach(C), new yn(I + ": " + p.map(En).join([", "]));
|
|
@@ -10068,24 +10072,24 @@ var ol = (() => {
|
|
|
10068
10072
|
var B = or[I];
|
|
10069
10073
|
return B === void 0 ? $(I) : B;
|
|
10070
10074
|
}
|
|
10071
|
-
var
|
|
10075
|
+
var ne = [];
|
|
10072
10076
|
function rr(I) {
|
|
10073
|
-
var B =
|
|
10074
|
-
return
|
|
10077
|
+
var B = ne.length;
|
|
10078
|
+
return ne.push(I), B;
|
|
10075
10079
|
}
|
|
10076
10080
|
function ar(I, B) {
|
|
10077
10081
|
for (var C = Array(I), p = 0; p < I; ++p) C[p] = Qn(D[B + 4 * p >> 2], "parameter " + p);
|
|
10078
10082
|
return C;
|
|
10079
10083
|
}
|
|
10080
10084
|
var mn = [], gr = [null, [], []];
|
|
10081
|
-
et = t.BindingError =
|
|
10085
|
+
et = t.BindingError = Zt("BindingError"), t.count_emval_handles = function() {
|
|
10082
10086
|
for (var I = 0, B = 5; B < cA.length; ++B) cA[B] !== void 0 && ++I;
|
|
10083
10087
|
return I;
|
|
10084
10088
|
}, t.get_first_emval = function() {
|
|
10085
10089
|
for (var I = 5; I < cA.length; ++I) if (cA[I] !== void 0) return cA[I];
|
|
10086
10090
|
return null;
|
|
10087
|
-
}, Bn = t.PureVirtualError =
|
|
10088
|
-
for (var Dn = Array(256),
|
|
10091
|
+
}, Bn = t.PureVirtualError = Zt("PureVirtualError");
|
|
10092
|
+
for (var Dn = Array(256), se = 0; 256 > se; ++se) Dn[se] = String.fromCharCode(se);
|
|
10089
10093
|
un = Dn, t.getInheritedInstanceCount = function() {
|
|
10090
10094
|
return Object.keys(xA).length;
|
|
10091
10095
|
}, t.getLiveInheritedInstances = function() {
|
|
@@ -10094,7 +10098,7 @@ var ol = (() => {
|
|
|
10094
10098
|
return I;
|
|
10095
10099
|
}, t.flushPendingDeletes = Ue, t.setDelayFunction = function(I) {
|
|
10096
10100
|
xt = I, St.length && xt && xt(Ue);
|
|
10097
|
-
}, pn = t.InternalError =
|
|
10101
|
+
}, pn = t.InternalError = Zt("InternalError"), UA.prototype.isAliasOf = function(I) {
|
|
10098
10102
|
if (!(this instanceof UA && I instanceof UA)) return !1;
|
|
10099
10103
|
var B = this.M.P.N, C = this.M.O, p = I.M.P.N;
|
|
10100
10104
|
for (I = I.M.O; B.R; ) C = B.ba(C), B = B.R;
|
|
@@ -10105,7 +10109,7 @@ var ol = (() => {
|
|
|
10105
10109
|
var I = it, B = Object, C = B.create, p = Object.getPrototypeOf(this), y = this.M;
|
|
10106
10110
|
return I = I(C.call(B, p, { M: { value: { count: y.count, $: y.$, aa: y.aa, O: y.O, P: y.P, T: y.T, U: y.U } } })), I.M.count.value += 1, I.M.$ = !1, I;
|
|
10107
10111
|
}, UA.prototype.delete = function() {
|
|
10108
|
-
this.M.O || Ke(this), this.M.$ && !this.M.aa && G("Object already scheduled for deletion"),
|
|
10112
|
+
this.M.O || Ke(this), this.M.$ && !this.M.aa && G("Object already scheduled for deletion"), zt(this), Cn(this.M), this.M.aa || (this.M.T = void 0, this.M.O = void 0);
|
|
10109
10113
|
}, UA.prototype.isDeleted = function() {
|
|
10110
10114
|
return !this.M.O;
|
|
10111
10115
|
}, UA.prototype.deleteLater = function() {
|
|
@@ -10118,7 +10122,7 @@ var ol = (() => {
|
|
|
10118
10122
|
I !== null && I.delete();
|
|
10119
10123
|
}, kA.prototype.fromWireType = function(I) {
|
|
10120
10124
|
function B() {
|
|
10121
|
-
return this.da ?
|
|
10125
|
+
return this.da ? Ae(this.N.X, { P: this.wa, O: C, U: this, T: I }) : Ae(this.N.X, { P: this, O: I });
|
|
10122
10126
|
}
|
|
10123
10127
|
var C = this.qa(I);
|
|
10124
10128
|
if (!C) return this.ha(I), null;
|
|
@@ -10128,8 +10132,8 @@ var ol = (() => {
|
|
|
10128
10132
|
if (p = this.N.pa(C), p = dn[p], !p) return B.call(this);
|
|
10129
10133
|
p = this.ca ? p.la : p.pointerType;
|
|
10130
10134
|
var y = fn(C, this.N, p.N);
|
|
10131
|
-
return y === null ? B.call(this) : this.da ?
|
|
10132
|
-
}, yn = t.UnboundTypeError =
|
|
10135
|
+
return y === null ? B.call(this) : this.da ? Ae(p.N.X, { P: p, O: y, U: this, T: I }) : Ae(p.N.X, { P: p, O: y });
|
|
10136
|
+
}, yn = t.UnboundTypeError = Zt("UnboundTypeError");
|
|
10133
10137
|
var hr = typeof atob == "function" ? atob : function(I) {
|
|
10134
10138
|
var B = "", C = 0;
|
|
10135
10139
|
I = I.replace(/[^A-Za-z0-9\+\/=]/g, "");
|
|
@@ -10154,20 +10158,20 @@ var ol = (() => {
|
|
|
10154
10158
|
}), m.__construct = function() {
|
|
10155
10159
|
this === m && G("Pass correct 'this' to __construct");
|
|
10156
10160
|
var x = S.implement.apply(void 0, [this].concat(p.call(arguments)));
|
|
10157
|
-
|
|
10161
|
+
zt(x);
|
|
10158
10162
|
var k = x.M;
|
|
10159
10163
|
x.notifyOnDestruction(), k.aa = !0, Object.defineProperties(this, { M: { value: k } }), it(this), x = k.O, x = Oe(y, x), xA.hasOwnProperty(x) ? G("Tried to register registered instance: " + x) : xA[x] = this;
|
|
10160
10164
|
}, m.__destruct = function() {
|
|
10161
|
-
this === m && G("Pass correct 'this' to __destruct"),
|
|
10165
|
+
this === m && G("Pass correct 'this' to __destruct"), zt(this);
|
|
10162
10166
|
var x = this.M.O;
|
|
10163
10167
|
x = Oe(y, x), xA.hasOwnProperty(x) ? delete xA[x] : G("Tried to unregister unregistered instance: " + x);
|
|
10164
10168
|
}, I.prototype = Object.create(m);
|
|
10165
10169
|
for (var b in C) I.prototype[b] = C[b];
|
|
10166
|
-
return
|
|
10170
|
+
return jt(I);
|
|
10167
10171
|
},
|
|
10168
10172
|
j: function(I) {
|
|
10169
|
-
var B =
|
|
10170
|
-
delete
|
|
10173
|
+
var B = te[I];
|
|
10174
|
+
delete te[I];
|
|
10171
10175
|
var C = B.fa, p = B.W, y = B.ia, m = y.map((v) => v.ta).concat(y.map((v) => v.za));
|
|
10172
10176
|
LA([I], m, (v) => {
|
|
10173
10177
|
var S = {};
|
|
@@ -10220,7 +10224,7 @@ var ol = (() => {
|
|
|
10220
10224
|
k = $(k), m = IA(y, m), S && (S = IA(v, S)), x && (x = IA(b, x)), H = IA(R, H);
|
|
10221
10225
|
var V = In(k);
|
|
10222
10226
|
Yo(V, function() {
|
|
10223
|
-
|
|
10227
|
+
ie("Cannot construct " + k + " due to unbound types", [p]);
|
|
10224
10228
|
}), LA([I, B, C], p ? [p] : [], function(O) {
|
|
10225
10229
|
if (O = O[0], p)
|
|
10226
10230
|
var eA = O.N, BA = eA.X;
|
|
@@ -10247,7 +10251,7 @@ var ol = (() => {
|
|
|
10247
10251
|
var S = qe(C, p);
|
|
10248
10252
|
B = $(B), m = IA(y, m), LA([], [I], function(b) {
|
|
10249
10253
|
function x() {
|
|
10250
|
-
|
|
10254
|
+
ie("Cannot call " + k + " due to unbound types", S);
|
|
10251
10255
|
}
|
|
10252
10256
|
b = b[0];
|
|
10253
10257
|
var k = b.name + "." + B;
|
|
@@ -10269,7 +10273,7 @@ var ol = (() => {
|
|
|
10269
10273
|
var b = "constructor " + S.name;
|
|
10270
10274
|
if (S.N.Y === void 0 && (S.N.Y = []), S.N.Y[B - 1] !== void 0) throw new et("Cannot register multiple constructors with identical number of parameters (" + (B - 1) + ") for class '" + S.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!");
|
|
10271
10275
|
return S.N.Y[B - 1] = () => {
|
|
10272
|
-
|
|
10276
|
+
ie("Cannot construct " + S.name + " due to unbound types", v);
|
|
10273
10277
|
}, LA([], v, function(x) {
|
|
10274
10278
|
return x.splice(1, 0, null), S.N.Y[B - 1] = Xe(b, x, null, y, m), [];
|
|
10275
10279
|
}), [];
|
|
@@ -10279,7 +10283,7 @@ var ol = (() => {
|
|
|
10279
10283
|
var b = qe(C, p);
|
|
10280
10284
|
B = $(B), m = IA(y, m), LA([], [I], function(x) {
|
|
10281
10285
|
function k() {
|
|
10282
|
-
|
|
10286
|
+
ie("Cannot call " + R + " due to unbound types", b);
|
|
10283
10287
|
}
|
|
10284
10288
|
x = x[0];
|
|
10285
10289
|
var R = x.name + "." + B;
|
|
@@ -10297,7 +10301,7 @@ var ol = (() => {
|
|
|
10297
10301
|
var p = vt(C);
|
|
10298
10302
|
return Ve(C), p;
|
|
10299
10303
|
}, toWireType: function(C, p) {
|
|
10300
|
-
return
|
|
10304
|
+
return jt(p);
|
|
10301
10305
|
}, argPackAdvance: 8, readValueFromPointer: bt, V: null }
|
|
10302
10306
|
);
|
|
10303
10307
|
},
|
|
@@ -10416,10 +10420,10 @@ var ol = (() => {
|
|
|
10416
10420
|
} });
|
|
10417
10421
|
},
|
|
10418
10422
|
k: function(I, B, C, p, y, m) {
|
|
10419
|
-
|
|
10423
|
+
te[I] = { name: $(B), fa: IA(C, p), W: IA(y, m), ia: [] };
|
|
10420
10424
|
},
|
|
10421
10425
|
h: function(I, B, C, p, y, m, v, S, b, x) {
|
|
10422
|
-
|
|
10426
|
+
te[I].ia.push({ oa: $(B), ta: C, ra: IA(p, y), sa: m, za: v, ya: IA(S, b), Aa: x });
|
|
10423
10427
|
},
|
|
10424
10428
|
C: function(I, B) {
|
|
10425
10429
|
B = $(B), bA(I, {
|
|
@@ -10433,12 +10437,12 @@ var ol = (() => {
|
|
|
10433
10437
|
});
|
|
10434
10438
|
},
|
|
10435
10439
|
s: function(I, B, C, p, y) {
|
|
10436
|
-
I =
|
|
10440
|
+
I = ne[I], B = vt(B), C = wn(C);
|
|
10437
10441
|
var m = [];
|
|
10438
|
-
return D[p >> 2] =
|
|
10442
|
+
return D[p >> 2] = jt(m), I(B, C, m, y);
|
|
10439
10443
|
},
|
|
10440
10444
|
t: function(I, B, C, p) {
|
|
10441
|
-
I =
|
|
10445
|
+
I = ne[I], B = vt(B), C = wn(C), I(B, C, null, p);
|
|
10442
10446
|
},
|
|
10443
10447
|
g: Ve,
|
|
10444
10448
|
m: function(I, B) {
|
|
@@ -10560,13 +10564,13 @@ var ol = (() => {
|
|
|
10560
10564
|
t.dynCall_jiji = function() {
|
|
10561
10565
|
return (t.dynCall_jiji = t.asm.L).apply(null, arguments);
|
|
10562
10566
|
};
|
|
10563
|
-
var
|
|
10567
|
+
var oe;
|
|
10564
10568
|
CA = function I() {
|
|
10565
|
-
|
|
10569
|
+
oe || Sn(), oe || (CA = I);
|
|
10566
10570
|
};
|
|
10567
10571
|
function Sn() {
|
|
10568
10572
|
function I() {
|
|
10569
|
-
if (!
|
|
10573
|
+
if (!oe && (oe = !0, t.calledRun = !0, !s)) {
|
|
10570
10574
|
if (Ne(N), i(t), t.onRuntimeInitialized && t.onRuntimeInitialized(), t.postRun) for (typeof t.postRun == "function" && (t.postRun = [t.postRun]); t.postRun.length; ) {
|
|
10571
10575
|
var B = t.postRun.shift();
|
|
10572
10576
|
SA.unshift(B);
|
|
@@ -10785,7 +10789,7 @@ function ye(e, A) {
|
|
|
10785
10789
|
function zA(e) {
|
|
10786
10790
|
return typeof e == "number" ? "number" : e.endsWith("%") ? "percentage" : Number.isNaN(parseInt(e, 10)) ? "keyword" : "number";
|
|
10787
10791
|
}
|
|
10788
|
-
function
|
|
10792
|
+
function Ie(e, A, t) {
|
|
10789
10793
|
return (A[e] - t[e]) / 2;
|
|
10790
10794
|
}
|
|
10791
10795
|
function is(e, A, t, i, n) {
|
|
@@ -10802,7 +10806,7 @@ function Lo(e, A, t) {
|
|
|
10802
10806
|
r.y = A.height - t.height;
|
|
10803
10807
|
break;
|
|
10804
10808
|
case "center":
|
|
10805
|
-
n === "left" || n === "right" ? r.y =
|
|
10809
|
+
n === "left" || n === "right" ? r.y = Ie("height", A, t) : r.x = Ie("width", A, t);
|
|
10806
10810
|
break;
|
|
10807
10811
|
case "left":
|
|
10808
10812
|
r.x = 0;
|
|
@@ -10823,7 +10827,7 @@ function Lo(e, A, t) {
|
|
|
10823
10827
|
r.y = A.height - t.height;
|
|
10824
10828
|
break;
|
|
10825
10829
|
case "center":
|
|
10826
|
-
r.y === void 0 ? r.y =
|
|
10830
|
+
r.y === void 0 ? r.y = Ie("height", A, t) : r.x = Ie("width", A, t);
|
|
10827
10831
|
break;
|
|
10828
10832
|
case "left":
|
|
10829
10833
|
r.x = 0;
|
|
@@ -10838,7 +10842,7 @@ function Lo(e, A, t) {
|
|
|
10838
10842
|
}
|
|
10839
10843
|
return r;
|
|
10840
10844
|
}
|
|
10841
|
-
function
|
|
10845
|
+
function Be(e, A, t, i) {
|
|
10842
10846
|
const n = e === "right" || e === "bottom", o = t === "percentage" ? A * i : A;
|
|
10843
10847
|
return n ? -o : o;
|
|
10844
10848
|
}
|
|
@@ -10849,7 +10853,7 @@ function Il(e, A, t) {
|
|
|
10849
10853
|
if (r !== "keyword" || c !== "keyword")
|
|
10850
10854
|
throw new Error("Invalid objectPosition value: first and third values must be keywords");
|
|
10851
10855
|
const s = Lo([i, o], A, t), g = { ...s }, l = ye(n), E = ye(a);
|
|
10852
|
-
return i === "left" || i === "right" ? g.x = s.x +
|
|
10856
|
+
return i === "left" || i === "right" ? g.x = s.x + Be(i, l, h, t.width) : (i === "top" || i === "bottom") && (g.y = s.y + Be(i, l, h, t.height)), o === "left" || o === "right" ? g.x = s.x + Be(o, E, u, t.width) : (o === "top" || o === "bottom") && (g.y = s.y + Be(o, E, u, t.height)), g;
|
|
10853
10857
|
}
|
|
10854
10858
|
function Bl(e, A, t) {
|
|
10855
10859
|
const i = e[0], n = { x: void 0, y: void 0 };
|
|
@@ -10935,7 +10939,7 @@ class Oo {
|
|
|
10935
10939
|
*/
|
|
10936
10940
|
async enableDebug(A = !this._debugEnabled) {
|
|
10937
10941
|
if (this._debugEnabled = A, !this._debugRenderer) {
|
|
10938
|
-
const t = await import("./DebugRenderer-
|
|
10942
|
+
const t = await import("./DebugRenderer-CTWPthRt.js");
|
|
10939
10943
|
this._debugRenderer = new t.DebugRenderer();
|
|
10940
10944
|
}
|
|
10941
10945
|
this._debugEnabled || this._debugRenderer.reset();
|
|
@@ -11641,7 +11645,7 @@ class uc {
|
|
|
11641
11645
|
}
|
|
11642
11646
|
export {
|
|
11643
11647
|
aA as $,
|
|
11644
|
-
|
|
11648
|
+
he as A,
|
|
11645
11649
|
Qh as B,
|
|
11646
11650
|
Vs as C,
|
|
11647
11651
|
Vg as D,
|
|
@@ -11655,7 +11659,7 @@ export {
|
|
|
11655
11659
|
ac as L,
|
|
11656
11660
|
ic as M,
|
|
11657
11661
|
gc as N,
|
|
11658
|
-
|
|
11662
|
+
le as O,
|
|
11659
11663
|
oc as P,
|
|
11660
11664
|
hc as Q,
|
|
11661
11665
|
eh as R,
|
|
@@ -11706,7 +11710,7 @@ export {
|
|
|
11706
11710
|
zl as q,
|
|
11707
11711
|
Ui as r,
|
|
11708
11712
|
Y as s,
|
|
11709
|
-
|
|
11713
|
+
qt as t,
|
|
11710
11714
|
rA as u,
|
|
11711
11715
|
$l as v,
|
|
11712
11716
|
Ac as w,
|
|
@@ -11714,4 +11718,4 @@ export {
|
|
|
11714
11718
|
ec as y,
|
|
11715
11719
|
sc as z
|
|
11716
11720
|
};
|
|
11717
|
-
//# sourceMappingURL=index
|
|
11721
|
+
//# sourceMappingURL=index-BqwprEPH.js.map
|