@caperjs/core 0.7.2 → 0.7.4
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/build/index.mjs +1 -1
- package/build/internal/buildFlags.mjs +63 -18
- package/build/internal/schema.mjs +53 -0
- package/build/plugins/pwa.mjs +13 -7
- package/cli/doctor.mjs +53 -2
- package/cli/doctor.test.mjs +80 -1
- package/cli/native.mjs +126 -15
- package/cli/native.test.mjs +219 -3
- package/extras/llms.txt +35 -3
- package/lib/{CaptionsPlugin-COrofpHN.js → CaptionsPlugin-CAgQBcA1.js} +7 -7
- package/lib/{CaptionsPlugin-COrofpHN.js.map → CaptionsPlugin-CAgQBcA1.js.map} +1 -1
- package/lib/{DataAdapter-T-22-_D1.js → DataAdapter-CbyqWMo-.js} +5 -5
- package/lib/{DataAdapter-T-22-_D1.js.map → DataAdapter-CbyqWMo-.js.map} +1 -1
- package/lib/{DebugRenderer-ZN692Pbg.js → DebugRenderer-Bdkpyyt6.js} +2 -2
- package/lib/{DebugRenderer-ZN692Pbg.js.map → DebugRenderer-Bdkpyyt6.js.map} +1 -1
- package/lib/{DevToolsPlugin-CQXFoj1T.js → DevToolsPlugin-Cq5HHN9K.js} +2 -2
- package/lib/{DevToolsPlugin-CQXFoj1T.js.map → DevToolsPlugin-Cq5HHN9K.js.map} +1 -1
- package/lib/{GSAPPlugin-CNkncyXS.js → GSAPPlugin-D-ujhVYo.js} +2 -2
- package/lib/{GSAPPlugin-CNkncyXS.js.map → GSAPPlugin-D-ujhVYo.js.map} +1 -1
- package/lib/{LayoutPlugin-BuJgr9bd.js → LayoutPlugin-DqbwBm-X.js} +4 -4
- package/lib/{LayoutPlugin-BuJgr9bd.js.map → LayoutPlugin-DqbwBm-X.js.map} +1 -1
- package/lib/{ScreenDebugPlugin-kz9Mr6j1.js → ScreenDebugPlugin-CyT8UxEa.js} +3 -3
- package/lib/{ScreenDebugPlugin-kz9Mr6j1.js.map → ScreenDebugPlugin-CyT8UxEa.js.map} +1 -1
- package/lib/{SpinePlugin-DDzD-Qxd.js → SpinePlugin-DyXJyA3x.js} +2 -2
- package/lib/{SpinePlugin-DDzD-Qxd.js.map → SpinePlugin-DyXJyA3x.js.map} +1 -1
- package/lib/{StatsPlugin-tyFGzVjy.js → StatsPlugin-CEhgzWby.js} +4 -4
- package/lib/{StatsPlugin-tyFGzVjy.js.map → StatsPlugin-CEhgzWby.js.map} +1 -1
- package/lib/{VoiceOverPlugin-rTNz_9eb.js → VoiceOverPlugin-CSpNZjpJ.js} +2 -2
- package/lib/{VoiceOverPlugin-rTNz_9eb.js.map → VoiceOverPlugin-CSpNZjpJ.js.map} +1 -1
- package/lib/caper.mjs +126 -129
- package/lib/caper.mjs.map +1 -1
- package/lib/{const-Cj14a5U2.js → const-Bca54QyV.js} +235 -227
- package/lib/{const-Cj14a5U2.js.map → const-Bca54QyV.js.map} +1 -1
- package/lib/core/Application.d.ts +4 -0
- package/lib/core/Application.d.ts.map +1 -1
- package/lib/core/interfaces/IApplicationOptions.d.ts +21 -0
- package/lib/core/interfaces/IApplicationOptions.d.ts.map +1 -1
- package/lib/plugins/OrientationPlugin.d.ts +57 -0
- package/lib/plugins/OrientationPlugin.d.ts.map +1 -0
- package/lib/plugins/OrientationPlugin.test.d.ts +2 -0
- package/lib/plugins/OrientationPlugin.test.d.ts.map +1 -0
- package/lib/plugins/defaults.d.ts.map +1 -1
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.d.ts.map +1 -1
- package/lib/{registries-DmNGVLAi.js → registries-C1nPl8B3.js} +593 -502
- package/lib/registries-C1nPl8B3.js.map +1 -0
- package/lib/ui/UICanvas.d.ts +10 -2
- package/lib/ui/UICanvas.d.ts.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/orientation.d.ts +44 -0
- package/lib/utils/orientation.test.d.ts +2 -0
- package/lib/utils/orientation.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/core/Application.ts +10 -0
- package/src/core/interfaces/IApplicationOptions.ts +21 -0
- package/src/plugins/OrientationPlugin.test.ts +252 -0
- package/src/plugins/OrientationPlugin.ts +178 -0
- package/src/plugins/defaults.ts +6 -0
- package/src/plugins/index.ts +1 -0
- package/src/ui/UICanvas.test.ts +23 -1
- package/src/ui/UICanvas.ts +22 -3
- package/src/utils/index.ts +1 -0
- package/src/utils/orientation.d.ts +44 -0
- package/src/utils/orientation.js +37 -0
- package/src/utils/orientation.test.ts +30 -0
- package/src/version.ts +1 -1
- package/lib/registries-DmNGVLAi.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as e, Dt as t, Ot as n, Q as r, Rt as i, St as a, Wt as o, Y as s, en as c, g as l, gt as u, h as d, kt as f, m as ee, p, r as m, w as h, wt as te, xt as ne } from "./registries-C1nPl8B3.js";
|
|
2
2
|
import { t as g } from "./padding-1kHDpGlQ.js";
|
|
3
|
-
import { AnimatedSprite as re, Assets as _, BitmapText as v, Graphics as y, HTMLText as ie, ParticleContainer as
|
|
4
|
-
import { gsap as
|
|
3
|
+
import { AnimatedSprite as re, Assets as _, BitmapText as v, Graphics as y, HTMLText as ie, ParticleContainer as ae, Sprite as oe, Text as b, Texture as se, TilingSprite as ce } from "pixi.js";
|
|
4
|
+
import { gsap as x } from "gsap";
|
|
5
5
|
//#region src/utils/debug.ts
|
|
6
|
-
var
|
|
6
|
+
var S = {
|
|
7
7
|
bounds: 65535,
|
|
8
8
|
innerBounds: 65280,
|
|
9
9
|
outerBounds: 16711680,
|
|
10
10
|
direction: 16776960,
|
|
11
11
|
gap: 16711935,
|
|
12
12
|
region: 30975
|
|
13
|
-
},
|
|
13
|
+
}, C = {
|
|
14
14
|
stroke: .6,
|
|
15
15
|
fill: .1,
|
|
16
16
|
fillActive: .2,
|
|
17
17
|
crosshair: .5
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function w(e) {
|
|
20
20
|
let t = new y();
|
|
21
21
|
return t.eventMode = "none", t.interactiveChildren = !1, t.layout = !1, t.label = e ?? "DebugGraphics", t;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let n = new
|
|
23
|
+
function T(e, t = S.bounds) {
|
|
24
|
+
let n = new b({
|
|
25
25
|
text: e,
|
|
26
26
|
style: {
|
|
27
27
|
fontFamily: "monospace",
|
|
@@ -35,22 +35,22 @@ function E(e, t = C.bounds) {
|
|
|
35
35
|
});
|
|
36
36
|
return n.eventMode = "none", n.layout = !1, n.label = "DebugLabel", n;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
|
|
38
|
+
var E = /* @__PURE__ */ new Map();
|
|
39
|
+
function D(e, t, n) {
|
|
40
|
+
E.set(e, {
|
|
41
41
|
label: t,
|
|
42
42
|
color: n
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
45
|
+
function O(e) {
|
|
46
|
+
E.delete(e);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function le() {
|
|
49
|
+
return E;
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/utils/number.ts
|
|
53
|
-
function
|
|
53
|
+
function k(e, t = 0) {
|
|
54
54
|
return e.toString().padStart(t, "0");
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
@@ -63,22 +63,22 @@ var A = [
|
|
|
63
63
|
autoResize: !0,
|
|
64
64
|
autoUpdate: !0,
|
|
65
65
|
priority: 0
|
|
66
|
-
}, de = class extends
|
|
67
|
-
constructor(
|
|
68
|
-
super(
|
|
69
|
-
let { autoResize:
|
|
66
|
+
}, de = class extends d(h(ae)) {
|
|
67
|
+
constructor(e = {}) {
|
|
68
|
+
super(e);
|
|
69
|
+
let { autoResize: t, autoUpdate: n, priority: r } = {
|
|
70
70
|
...ue,
|
|
71
|
-
...
|
|
71
|
+
...e
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
autoResize:
|
|
75
|
-
autoUpdate:
|
|
76
|
-
resizePriority:
|
|
77
|
-
updatePriority:
|
|
73
|
+
o(this), this._initLifecycle({
|
|
74
|
+
autoResize: t,
|
|
75
|
+
autoUpdate: n,
|
|
76
|
+
resizePriority: r,
|
|
77
|
+
updatePriority: r
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
update(e) {
|
|
81
|
-
|
|
81
|
+
ae.prototype.update.call(this);
|
|
82
82
|
}
|
|
83
83
|
}, fe = class extends y {
|
|
84
84
|
constructor(e) {
|
|
@@ -91,7 +91,7 @@ function M(e, t) {
|
|
|
91
91
|
for (let n in e) try {
|
|
92
92
|
t[n] = e[n];
|
|
93
93
|
} catch (e) {
|
|
94
|
-
|
|
94
|
+
i.warn(`Error setting property ${n}`, e);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
function N() {
|
|
@@ -105,30 +105,30 @@ function N() {
|
|
|
105
105
|
color: 16777215,
|
|
106
106
|
width: 2,
|
|
107
107
|
alignment: .5
|
|
108
|
-
}), j =
|
|
108
|
+
}), j = m.getInstance().renderer.generateTexture(e), e.destroy();
|
|
109
109
|
}
|
|
110
110
|
return j;
|
|
111
111
|
}
|
|
112
112
|
function P(e) {
|
|
113
|
-
let t, n = e?.asset, r = n,
|
|
114
|
-
if (n instanceof
|
|
115
|
-
else if (!
|
|
116
|
-
else if (_.get(
|
|
117
|
-
let e = _.get(
|
|
118
|
-
if (
|
|
113
|
+
let t, n = e?.asset, r = n, a = e?.sheet;
|
|
114
|
+
if (n instanceof se) t = n;
|
|
115
|
+
else if (!a || a?.length === 0) _.cache.has(r) ? t = _.get(r) : _.get(r) ? t = _.get(r).texture : (i.error("Asset \"" + n + "\" not loaded into Pixi cache"), t = N());
|
|
116
|
+
else if (_.get(a)) {
|
|
117
|
+
let e = _.get(a), o = e.textures;
|
|
118
|
+
if (o !== void 0) if (o.hasOwnProperty(r)) t = o[r];
|
|
119
119
|
else if (e.linkedSheets !== void 0 && e.linkedSheets.length > 0) {
|
|
120
120
|
for (let n of e.linkedSheets) if (n.textures !== void 0 && n.textures.hasOwnProperty(r)) {
|
|
121
121
|
t = n.textures[r];
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
|
-
t === void 0 && (
|
|
125
|
-
} else
|
|
126
|
-
else
|
|
127
|
-
} else return
|
|
128
|
-
return t || new
|
|
124
|
+
t === void 0 && (i.error("Asset \"" + n + "\" not found inside spritesheet \"" + n + "' or any of its linked sheets"), t = N());
|
|
125
|
+
} else i.error("Asset \"" + n + "\" not found inside spritesheet \"" + a + "'"), t = N();
|
|
126
|
+
else i.error("Spritesheet \"" + a + "\" loaded but textures arent?!"), t = N();
|
|
127
|
+
} else return i.error("Spritesheet \"" + a + "\" not loaded into Pixi cache"), N();
|
|
128
|
+
return t || new oe().texture;
|
|
129
129
|
}
|
|
130
130
|
function F(e, t) {
|
|
131
|
-
let n =
|
|
131
|
+
let n = u(e.position, !1, e.x, e.y);
|
|
132
132
|
t.x = n.x, t.y = n.y;
|
|
133
133
|
}
|
|
134
134
|
function I(e, t) {
|
|
@@ -137,27 +137,27 @@ function I(e, t) {
|
|
|
137
137
|
if (e.scaleX === void 0 && e.scaleY === void 0) return;
|
|
138
138
|
e.scaleX === void 0 && (e.scaleX = 1), e.scaleY === void 0 && (e.scaleY = 1);
|
|
139
139
|
}
|
|
140
|
-
let n =
|
|
140
|
+
let n = u(e.scale, !1, e.scaleX, e.scaleY);
|
|
141
141
|
t.scale.set(n.x, n.y);
|
|
142
142
|
}
|
|
143
143
|
function L(e, t) {
|
|
144
144
|
if (e !== void 0) {
|
|
145
|
-
let n =
|
|
145
|
+
let n = u(e);
|
|
146
146
|
t.anchor.set(n.x, n.y);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
function R(e, t) {
|
|
150
150
|
if (e !== void 0) {
|
|
151
|
-
let n =
|
|
151
|
+
let n = u(e);
|
|
152
152
|
t.pivot.set(n.x, n.y);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region src/display/AnimatedSprite.ts
|
|
157
|
-
var z = class
|
|
158
|
-
constructor(
|
|
159
|
-
let
|
|
160
|
-
super(
|
|
157
|
+
var z = class r extends re {
|
|
158
|
+
constructor(e) {
|
|
159
|
+
let t = e?.animations ?? {}, n = e?.animation ?? Object.keys(t)[0], i = t[n], a = e?.sheet, c = e?.texturePrefix || "", l = e?.zeroPad, u = e?.startIndex ?? 0;
|
|
160
|
+
super(r.generateTexturesFromProps(n, i, c, a, l, u), e?.autoUpdate !== !1), this.config = e, this.onAnimationChange = new s(), this.onAnimationStart = new s(), this.onAnimationStop = new s(), this.onAnimationLoop = new s(), this.onAnimationComplete = new s(), this.onAnimationFrameChange = new s(), this.defaultTexturePrefix = "", this._paused = !1, this._isReversed = !1, o(this), this.defaultSheet = a, this.defaultTexturePrefix = c, this.defaultZeroPad = l, this._generateAnimations(), this.currentAnimation = this.defaultAnimation = n, this.autoPlay = e?.autoPlay ?? !0, this.loop = e?.loop ?? !0, this.updateAnchor = e?.updateAnchor ?? !1, this.animationSpeed = this.defaultAnimationSpeed = e?.animationSpeed ?? 1, this.on("added", this._added);
|
|
161
161
|
}
|
|
162
162
|
get paused() {
|
|
163
163
|
return this._paused;
|
|
@@ -178,7 +178,7 @@ var z = class t extends re {
|
|
|
178
178
|
let o = [], s = "", c = t?.sheet ?? r;
|
|
179
179
|
if (t?.numFrames > 1) {
|
|
180
180
|
let r = t?.startIndex ?? a ?? 0;
|
|
181
|
-
for (let a = r; a < r + t?.numFrames; a++) s = `${n}${t?.texturePrefix ?? e}${
|
|
181
|
+
for (let a = r; a < r + t?.numFrames; a++) s = `${n}${t?.texturePrefix ?? e}${k(a, t?.zeroPad ?? i)}`, o.push(P({
|
|
182
182
|
asset: s,
|
|
183
183
|
sheet: c
|
|
184
184
|
}));
|
|
@@ -204,12 +204,12 @@ var z = class t extends re {
|
|
|
204
204
|
super.stop(), this.onAnimationStop?.emit();
|
|
205
205
|
}
|
|
206
206
|
nextAnimation() {
|
|
207
|
-
let e =
|
|
207
|
+
let e = f(this._animations, this.currentAnimation) ?? t(this._animations);
|
|
208
208
|
e && this.setAnimation(e[0]);
|
|
209
209
|
}
|
|
210
210
|
previousAnimation() {
|
|
211
|
-
let
|
|
212
|
-
|
|
211
|
+
let t = e(this._animations, this.currentAnimation) ?? n(this._animations);
|
|
212
|
+
t && this.setAnimation(t[0]);
|
|
213
213
|
}
|
|
214
214
|
update(e) {
|
|
215
215
|
this._paused || super.update(e);
|
|
@@ -218,10 +218,10 @@ var z = class t extends re {
|
|
|
218
218
|
this._animations = /* @__PURE__ */ new Map();
|
|
219
219
|
let e = this.config?.animations ?? {};
|
|
220
220
|
if (e) {
|
|
221
|
-
for (let [
|
|
222
|
-
if (this.config?.reversible) for (let [
|
|
223
|
-
let e =
|
|
224
|
-
e.reverse(), this._animations.set(`${
|
|
221
|
+
for (let [t, n] of Object.entries(e)) this._animations.set(t, r.generateTexturesFromProps(t, n, this.defaultTexturePrefix, this.defaultSheet, this.defaultZeroPad));
|
|
222
|
+
if (this.config?.reversible) for (let [t, n] of Object.entries(e)) {
|
|
223
|
+
let e = r.generateTexturesFromProps(t, n, this.defaultTexturePrefix, this.defaultSheet, this.defaultZeroPad);
|
|
224
|
+
e.reverse(), this._animations.set(`${t}_reverse`, e);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
}
|
|
@@ -234,7 +234,7 @@ var z = class t extends re {
|
|
|
234
234
|
this.onAnimationFrameChange.emit();
|
|
235
235
|
}, this.autoPlay && this.play();
|
|
236
236
|
}
|
|
237
|
-
}, pe =
|
|
237
|
+
}, pe = d(h(l())), B = class extends pe {
|
|
238
238
|
get animationNames() {
|
|
239
239
|
return this.spine.state.data.skeletonData.animations.map((e) => e.name);
|
|
240
240
|
}
|
|
@@ -244,17 +244,17 @@ var z = class t extends re {
|
|
|
244
244
|
get elapsedAnimationTime() {
|
|
245
245
|
return this.currentEntry ? this.currentEntry.trackTime : -1;
|
|
246
246
|
}
|
|
247
|
-
constructor(
|
|
248
|
-
super(), this.onAnimationComplete = new
|
|
249
|
-
let
|
|
250
|
-
if (typeof
|
|
251
|
-
let e =
|
|
252
|
-
e !== ".json" && e !== ".skel" ? e = ".json" :
|
|
253
|
-
skeleton:
|
|
254
|
-
atlas:
|
|
247
|
+
constructor(e) {
|
|
248
|
+
super(), this.onAnimationComplete = new s(), this.onAnimationStart = new s(), this.onAnimationInterrupt = new s(), this.onAnimationDispose = new s(), this.onAnimationEnd = new s(), this.onAnimationEvent = new s(), this.onPaused = new s(), this.onResumed = new s(), o(this), this._initLifecycle();
|
|
249
|
+
let t = e?.data, n = "";
|
|
250
|
+
if (typeof t == "string") {
|
|
251
|
+
let e = t.slice(-5);
|
|
252
|
+
e !== ".json" && e !== ".skel" ? e = ".json" : t = t.substring(0, t.length - 5), n = {
|
|
253
|
+
skeleton: t + e,
|
|
254
|
+
atlas: t + ".atlas"
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
this.spine = window.Spine.from(
|
|
257
|
+
this.spine = window.Spine.from(n), this.add.existing(this.spine), e && (e.autoUpdate !== void 0 && (this.spine.autoUpdate = e.autoUpdate), e.animationName && this.setAnimation(e.animationName, e.loop, e.trackIndex ?? 0)), this.addSignalConnection(this.app.actions("toggle_pause").connect(this.togglePause)), e?.paused && this.pause(), this._stateListener = {
|
|
258
258
|
start: this._handleAnimationStart,
|
|
259
259
|
interrupt: this._handleAnimationInterrupt,
|
|
260
260
|
dispose: this._handleAnimationDispose,
|
|
@@ -305,10 +305,10 @@ var z = class t extends re {
|
|
|
305
305
|
function V(e) {
|
|
306
306
|
return class extends e {
|
|
307
307
|
constructor(...e) {
|
|
308
|
-
super(...e), this.isFocused = !1, this.isKeyDown = !1, this.focusEnabled = !0, this.tabIndex = 0, this.accessible = !1, this.accessibleType = "button", this.accessibleTitle = "Focusable", this.accessibleHint = "Press enter to focus", this.accessiblePointerEvents = "auto", this.accessibleChildren = !0, this.onFocus = new
|
|
308
|
+
super(...e), this.isFocused = !1, this.isKeyDown = !1, this.focusEnabled = !0, this.tabIndex = 0, this.accessible = !1, this.accessibleType = "button", this.accessibleTitle = "Focusable", this.accessibleHint = "Press enter to focus", this.accessiblePointerEvents = "auto", this.accessibleChildren = !0, this.onFocus = new s(), this.onFocusIn = new s(), this.onFocusOut = new s(), this.onBlur = new s(), this._eventsDisabled = !1, this.eventMode = "static", this.on("mouseover", this._onMouseOver), this.on("mousedown", this._onMouseDown), this.on("click", this._handleClick), this.on("tap", this._handleClick);
|
|
309
309
|
}
|
|
310
310
|
get app() {
|
|
311
|
-
return
|
|
311
|
+
return m.getInstance();
|
|
312
312
|
}
|
|
313
313
|
destroy(e) {
|
|
314
314
|
this.off("mouseover", this._onMouseOver), this.off("mousedown", this._onMouseDown), this.off("click", this._handleClick), this.off("tap", this._handleClick), super.destroy(e);
|
|
@@ -357,7 +357,7 @@ function H(e) {
|
|
|
357
357
|
}
|
|
358
358
|
onInteraction(e) {
|
|
359
359
|
if (!this._signals.has(e)) {
|
|
360
|
-
let t = new
|
|
360
|
+
let t = new s();
|
|
361
361
|
this._signals.set(e, t), this.on(e, this._emitSignal);
|
|
362
362
|
}
|
|
363
363
|
return this._signals.get(e);
|
|
@@ -384,22 +384,22 @@ var U = [
|
|
|
384
384
|
"enabled",
|
|
385
385
|
"layout",
|
|
386
386
|
"textLabel"
|
|
387
|
-
], me = V(H(
|
|
387
|
+
], me = V(H(h(l()))), W = class extends me {
|
|
388
388
|
get textLabel() {
|
|
389
389
|
return this._textLabel;
|
|
390
390
|
}
|
|
391
|
-
constructor(
|
|
392
|
-
super(), this.onDown = new
|
|
391
|
+
constructor(e) {
|
|
392
|
+
super(), this.onDown = new s(), this.onUp = new s(), this.onUpOutside = new s(), this.onOut = new s(), this.onOver = new s(), this.onClick = new s(), this.onEnabled = new s(), this.onDisabled = new s(), this.onKeyboardEvent = new s(), this.onDestroy = new s(), this._isDownCallbacks = /* @__PURE__ */ new Map(), this._isDownListenerAdded = !1, o(this), this.config = Object.assign({
|
|
393
393
|
id: "button",
|
|
394
394
|
textures: { default: "" },
|
|
395
395
|
sheet: void 0,
|
|
396
396
|
enabled: !0,
|
|
397
397
|
cursor: "default",
|
|
398
398
|
disabledCursor: "not-allowed"
|
|
399
|
-
},
|
|
399
|
+
}, e), this.id = this.config.id, e.layout === void 0 ? this.layout = !1 : this.layout = e.layout, this.view = this.add.sprite({
|
|
400
400
|
asset: this.config.textures.default,
|
|
401
401
|
sheet: this.config.sheet ?? void 0
|
|
402
|
-
}), this.cursor = this.config.cursor, this.enabled =
|
|
402
|
+
}), this.cursor = this.config.cursor, this.enabled = e.enabled !== !1, this.layout?.style.transformOrigin !== "top left" && (this.layout = { transformOrigin: "top left" }, this.app.renderer.layout && this.app.renderer.layout.update(this)), this.config.textLabel && this.addLabel(this.config.textLabel), this.addSignalConnection(this.onInteraction("pointerover").connect(this.handlePointerOver, -1), this.onInteraction("pointerout").connect(this.handlePointerOut, -1), this.onInteraction("pointerup").connect(this.handlePointerUp, -1), this.onInteraction("click").connect(this.handleClick, -1), this.onInteraction("tap").connect(this.handleClick, -1), this.onInteraction("pointerdown").connect(this.handlePointerDown, -1)), this.on("removed", this._resetPressState);
|
|
403
403
|
}
|
|
404
404
|
set enabled(e) {
|
|
405
405
|
this._enabled !== e && (this._enabled = e, this.cursor = this._enabled ? this.config.cursor : this.config.disabledCursor, this.focusEnabled = e, this._enabled ? (this.view.texture = this.make.texture({
|
|
@@ -414,7 +414,7 @@ var U = [
|
|
|
414
414
|
window.removeEventListener("pointerup", this.handlePointerUpOutside), this.off("pointerupoutside", this.handlePointerUpOutside), this.isDown = !1, this._pointerId = void 0;
|
|
415
415
|
}
|
|
416
416
|
addLabel(e) {
|
|
417
|
-
if (e instanceof
|
|
417
|
+
if (e instanceof b || e instanceof ie || e instanceof v) e.anchor.set(.5, .5), this._textLabel = this.add.existing(e), this._textLabel.layout = !1;
|
|
418
418
|
else switch (e.anchor = .5, e.type) {
|
|
419
419
|
case "bitmap":
|
|
420
420
|
this._textLabel = this.add.bitmapText({
|
|
@@ -444,7 +444,7 @@ var U = [
|
|
|
444
444
|
return this._enabled;
|
|
445
445
|
}
|
|
446
446
|
get app() {
|
|
447
|
-
return
|
|
447
|
+
return m.getInstance();
|
|
448
448
|
}
|
|
449
449
|
destroy(e) {
|
|
450
450
|
this.onDestroy.emit(), this._resetPressState(), this._isDownListenerAdded &&= (this.app.ticker.remove(this._handleIsDownCallbacks), !1), super.destroy(e);
|
|
@@ -518,9 +518,9 @@ var U = [
|
|
|
518
518
|
e();
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
}, he =
|
|
521
|
+
}, he = h(l());
|
|
522
522
|
function ge(e) {
|
|
523
|
-
return e instanceof
|
|
523
|
+
return e instanceof b || e instanceof v;
|
|
524
524
|
}
|
|
525
525
|
var _e = [
|
|
526
526
|
"bindTo",
|
|
@@ -528,12 +528,12 @@ var _e = [
|
|
|
528
528
|
"autoLayoutChildren",
|
|
529
529
|
"debug"
|
|
530
530
|
], G = class extends he {
|
|
531
|
-
constructor(
|
|
532
|
-
if (super(), this.onLayoutComplete = new
|
|
533
|
-
|
|
531
|
+
constructor(e = {}) {
|
|
532
|
+
if (super(), this.onLayoutComplete = new s(), this._debugGraphics = null, this._debugLabel = null, !this.app.config.useLayout) throw Error("You must set useLayout to true in your app config to use FlexContainer");
|
|
533
|
+
o(this), this.config = {
|
|
534
534
|
autoLayoutChildren: !0,
|
|
535
|
-
...
|
|
536
|
-
}, this.layout = this.createLayout(
|
|
535
|
+
...e
|
|
536
|
+
}, this.layout = this.createLayout(e), this.on("added", this.handleAdded), this.on("childAdded", this.handleChildAdded), this.on("childRemoved", this.handleChildRemoved), this.config.bindToAppSize && this.app.onResize.connect(this.handleResize), this.config.bindTo && "on" in this.config.bindTo && this.config.bindTo.on("layout", this.handleBindToResize);
|
|
537
537
|
}
|
|
538
538
|
createLayout(e) {
|
|
539
539
|
e?.layout === !0 && (e.layout = {});
|
|
@@ -547,10 +547,10 @@ var _e = [
|
|
|
547
547
|
this.app.ticker.addOnce(this.updateLayout);
|
|
548
548
|
}
|
|
549
549
|
handleChildAdded(e) {
|
|
550
|
-
this.config.autoLayoutChildren && (e.layout ? ge(e) && !e.layout?.style?.isLeaf && (e.layout = { isLeaf: !0 }) : e.layout = { isLeaf: !0 }),
|
|
550
|
+
this.config.autoLayoutChildren && (e.layout ? ge(e) && !e.layout?.style?.isLeaf && (e.layout = { isLeaf: !0 }) : e.layout = { isLeaf: !0 }), p.childAdded(e), e.on("layout", this._updateLayout), this._updateLayout();
|
|
551
551
|
}
|
|
552
552
|
handleChildRemoved(e) {
|
|
553
|
-
e.off("layout", this._updateLayout),
|
|
553
|
+
e.off("layout", this._updateLayout), p.childRemoved(e), this._updateLayout();
|
|
554
554
|
}
|
|
555
555
|
handleResize() {
|
|
556
556
|
this.config.bindToAppSize && (this.layout = {
|
|
@@ -568,7 +568,7 @@ var _e = [
|
|
|
568
568
|
this.destroyed || !this.layout || !this.app?.renderer.layout || (this.app.renderer.layout.update(this), this.onLayoutComplete.emit(), this.config.debug && this.drawDebug());
|
|
569
569
|
}
|
|
570
570
|
get app() {
|
|
571
|
-
return
|
|
571
|
+
return m.getInstance();
|
|
572
572
|
}
|
|
573
573
|
configure(e) {
|
|
574
574
|
this.layout = e, this._updateLayout();
|
|
@@ -694,39 +694,39 @@ var _e = [
|
|
|
694
694
|
return this.config.debug ?? !1;
|
|
695
695
|
}
|
|
696
696
|
set debug(e) {
|
|
697
|
-
this.config.debug = e, e ? (
|
|
697
|
+
this.config.debug = e, e ? (D(`FlexContainer:${this.uid}`, this.label || "FlexContainer", S.bounds), this.drawDebug()) : (O(`FlexContainer:${this.uid}`), this._debugGraphics && this._debugGraphics.clear(), this._debugLabel && (this._debugLabel.visible = !1));
|
|
698
698
|
}
|
|
699
699
|
drawDebug() {
|
|
700
|
-
(!this._debugGraphics || this._debugGraphics.parent !== this) && (this._debugGraphics ||=
|
|
700
|
+
(!this._debugGraphics || this._debugGraphics.parent !== this) && (this._debugGraphics ||= w(`${this.label ?? "FlexContainer"}:debug`), this.addChild(this._debugGraphics), this._debugGraphics.layout = !1), (!this._debugLabel || this._debugLabel.parent !== this) && (this._debugLabel ||= T(this.label || "FlexContainer", S.bounds), this.addChild(this._debugLabel), this._debugLabel.layout = !1), this._debugLabel.text = this.label || "FlexContainer", this._debugLabel.visible = !0, this.setChildIndex(this._debugGraphics, this.children.length - 1), this.setChildIndex(this._debugLabel, this.children.length - 1), this._debugGraphics.clear();
|
|
701
701
|
let e = this.layout?.computedLayout;
|
|
702
702
|
if (!e) return;
|
|
703
703
|
let t = e.width, n = e.height, r = this.layout?.style?.flexDirection ?? "row", i = this.layout?.style?.gap ?? 0;
|
|
704
704
|
this._debugGraphics.rect(0, 0, t, n).stroke({
|
|
705
705
|
width: 1,
|
|
706
|
-
color:
|
|
707
|
-
alpha:
|
|
706
|
+
color: S.bounds,
|
|
707
|
+
alpha: C.stroke,
|
|
708
708
|
pixelLine: !0
|
|
709
709
|
});
|
|
710
710
|
let a = this.layout?.style?.paddingTop ?? 0, o = this.layout?.style?.paddingRight ?? 0, s = this.layout?.style?.paddingBottom ?? 0, c = this.layout?.style?.paddingLeft ?? 0;
|
|
711
711
|
a > 0 && this._debugGraphics.rect(0, 0, t, a).fill({
|
|
712
|
-
color:
|
|
713
|
-
alpha:
|
|
712
|
+
color: S.outerBounds,
|
|
713
|
+
alpha: C.fill
|
|
714
714
|
}), s > 0 && this._debugGraphics.rect(0, n - s, t, s).fill({
|
|
715
|
-
color:
|
|
716
|
-
alpha:
|
|
715
|
+
color: S.outerBounds,
|
|
716
|
+
alpha: C.fill
|
|
717
717
|
}), c > 0 && this._debugGraphics.rect(0, a, c, n - a - s).fill({
|
|
718
|
-
color:
|
|
719
|
-
alpha:
|
|
718
|
+
color: S.outerBounds,
|
|
719
|
+
alpha: C.fill
|
|
720
720
|
}), o > 0 && this._debugGraphics.rect(t - o, a, o, n - a - s).fill({
|
|
721
|
-
color:
|
|
722
|
-
alpha:
|
|
721
|
+
color: S.outerBounds,
|
|
722
|
+
alpha: C.fill
|
|
723
723
|
});
|
|
724
724
|
let l = Math.min(t, n, 40), u = t / 2, d = n / 2, f = r === "row" || r === "row-reverse";
|
|
725
725
|
if (f) {
|
|
726
726
|
let e = r === "row" ? 1 : -1, t = u - e * l / 2, n = u + e * l / 2;
|
|
727
727
|
this._debugGraphics.moveTo(t, d).lineTo(n, d).moveTo(n, d).lineTo(n - e * 6, d - 4).moveTo(n, d).lineTo(n - e * 6, d + 4).stroke({
|
|
728
728
|
width: 1,
|
|
729
|
-
color:
|
|
729
|
+
color: S.direction,
|
|
730
730
|
alpha: .8,
|
|
731
731
|
pixelLine: !0
|
|
732
732
|
});
|
|
@@ -734,7 +734,7 @@ var _e = [
|
|
|
734
734
|
let e = r === "column" ? 1 : -1, t = d - e * l / 2, n = d + e * l / 2;
|
|
735
735
|
this._debugGraphics.moveTo(u, t).lineTo(u, n).moveTo(u, n).lineTo(u - 4, n - e * 6).moveTo(u, n).lineTo(u + 4, n - e * 6).stroke({
|
|
736
736
|
width: 1,
|
|
737
|
-
color:
|
|
737
|
+
color: S.direction,
|
|
738
738
|
alpha: .8,
|
|
739
739
|
pixelLine: !0
|
|
740
740
|
});
|
|
@@ -746,14 +746,14 @@ var _e = [
|
|
|
746
746
|
if (f) {
|
|
747
747
|
let e = a.left + a.width;
|
|
748
748
|
this._debugGraphics.rect(e, 0, i, n).fill({
|
|
749
|
-
color:
|
|
750
|
-
alpha:
|
|
749
|
+
color: S.gap,
|
|
750
|
+
alpha: C.fill
|
|
751
751
|
});
|
|
752
752
|
} else {
|
|
753
753
|
let e = a.top + a.height;
|
|
754
754
|
this._debugGraphics.rect(0, e, t, i).fill({
|
|
755
|
-
color:
|
|
756
|
-
alpha:
|
|
755
|
+
color: S.gap,
|
|
756
|
+
alpha: C.fill
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
759
|
}
|
|
@@ -762,7 +762,7 @@ var _e = [
|
|
|
762
762
|
let t = e.layout.computedLayout;
|
|
763
763
|
this._debugGraphics.rect(t.left, t.top, t.width, t.height).stroke({
|
|
764
764
|
width: 1,
|
|
765
|
-
color:
|
|
765
|
+
color: S.innerBounds,
|
|
766
766
|
alpha: .4,
|
|
767
767
|
pixelLine: !0
|
|
768
768
|
});
|
|
@@ -770,7 +770,7 @@ var _e = [
|
|
|
770
770
|
this._debugLabel.position.set(2, 2);
|
|
771
771
|
}
|
|
772
772
|
destroy() {
|
|
773
|
-
this.config.debug &&
|
|
773
|
+
this.config.debug && O(`FlexContainer:${this.uid}`), this._debugGraphics &&= (this._debugGraphics.destroy(), null), this._debugLabel &&= (this._debugLabel.destroy(), null), this.off("added", this.handleAdded), this.off("childAdded", this.handleChildAdded), this.off("childRemoved", this.handleChildRemoved), this.config.bindToAppSize && this.app.onResize.disconnect(this.handleResize), this.config.bindTo && "off" in this.config.bindTo && this.config.bindTo.off("layout", this.handleBindToResize), super.destroy();
|
|
774
774
|
}
|
|
775
775
|
}, K = {
|
|
776
776
|
type: "info",
|
|
@@ -810,7 +810,7 @@ var _e = [
|
|
|
810
810
|
warning: 15844367,
|
|
811
811
|
error: 15158332
|
|
812
812
|
}
|
|
813
|
-
},
|
|
813
|
+
}, ve = class extends h(p) {
|
|
814
814
|
set toaster(e) {
|
|
815
815
|
this._toaster = e;
|
|
816
816
|
}
|
|
@@ -821,7 +821,7 @@ var _e = [
|
|
|
821
821
|
this.textDisplay.text = e, this.alignText();
|
|
822
822
|
}
|
|
823
823
|
constructor(e = {}) {
|
|
824
|
-
super(), this.onToastClosed = new
|
|
824
|
+
super(), this.onToastClosed = new s(), this.isHiding = !1, this.config = {
|
|
825
825
|
...K,
|
|
826
826
|
...e
|
|
827
827
|
}, this.initialize();
|
|
@@ -883,7 +883,7 @@ var _e = [
|
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
getShowAnimation() {
|
|
886
|
-
let e =
|
|
886
|
+
let e = x.timeline({ paused: !0 });
|
|
887
887
|
return e.to(this, {
|
|
888
888
|
alpha: 1,
|
|
889
889
|
duration: .4,
|
|
@@ -891,7 +891,7 @@ var _e = [
|
|
|
891
891
|
}), e;
|
|
892
892
|
}
|
|
893
893
|
getHideAnimation() {
|
|
894
|
-
let e =
|
|
894
|
+
let e = x.timeline({ paused: !0 });
|
|
895
895
|
return e.to(this, {
|
|
896
896
|
alpha: 0,
|
|
897
897
|
duration: .25,
|
|
@@ -914,9 +914,9 @@ var _e = [
|
|
|
914
914
|
return this;
|
|
915
915
|
}
|
|
916
916
|
destroy() {
|
|
917
|
-
this.isHiding = !0, this.closeTimeout &&= (clearTimeout(this.closeTimeout), void 0),
|
|
917
|
+
this.isHiding = !0, this.closeTimeout &&= (clearTimeout(this.closeTimeout), void 0), x.killTweensOf(this), this.timeline &&= (this.timeline.kill(), void 0), !this.destroyed && !this.isHiding && this.onToastClosed.emit(), super.destroy({ children: !0 });
|
|
918
918
|
}
|
|
919
|
-
},
|
|
919
|
+
}, ye = {
|
|
920
920
|
position: "bottom right",
|
|
921
921
|
maxToasts: 5,
|
|
922
922
|
spacing: 10,
|
|
@@ -926,7 +926,7 @@ var _e = [
|
|
|
926
926
|
},
|
|
927
927
|
stackDirection: "up",
|
|
928
928
|
animationSpeed: 1
|
|
929
|
-
},
|
|
929
|
+
}, be = class extends h(p) {
|
|
930
930
|
get size() {
|
|
931
931
|
return this.toasts.length;
|
|
932
932
|
}
|
|
@@ -952,8 +952,8 @@ var _e = [
|
|
|
952
952
|
return this.defaultToastConfig ?? {};
|
|
953
953
|
}
|
|
954
954
|
constructor(e = {}, t = {}) {
|
|
955
|
-
super({ autoResize: !0 }), this.onToastAdded = new
|
|
956
|
-
...
|
|
955
|
+
super({ autoResize: !0 }), this.onToastAdded = new s(), this.onToastRemoved = new s(), this.onAllToastsRemoved = new s(), this.toasts = [], this.config = {
|
|
956
|
+
...ye,
|
|
957
957
|
...e
|
|
958
958
|
}, this.defaultToastConfig = { ...t }, this.initialize(), this.resize();
|
|
959
959
|
}
|
|
@@ -985,7 +985,7 @@ var _e = [
|
|
|
985
985
|
...e.closeButton ?? {}
|
|
986
986
|
} : K.closeButton
|
|
987
987
|
});
|
|
988
|
-
let n = new (e.class ??
|
|
988
|
+
let n = new (e.class ?? ve)(e);
|
|
989
989
|
return n.toaster = this, this.container.addChild(n), this.toasts.push(n), this.positionToast(n, this.toasts.length - 1, !1), n.onToastClosed.connectOnce(() => this.removeToast(n)), this.positionToasts(), this.onToastAdded.emit(n), n.show();
|
|
990
990
|
}
|
|
991
991
|
async hideAll() {
|
|
@@ -1035,7 +1035,7 @@ var _e = [
|
|
|
1035
1035
|
}
|
|
1036
1036
|
o === "down" ? u += t * (e.height + i) : u -= t * (e.height + i);
|
|
1037
1037
|
try {
|
|
1038
|
-
n ?
|
|
1038
|
+
n ? x.to(e, {
|
|
1039
1039
|
x: l,
|
|
1040
1040
|
y: u,
|
|
1041
1041
|
duration: .3 / this.config.animationSpeed,
|
|
@@ -1050,23 +1050,23 @@ var _e = [
|
|
|
1050
1050
|
}
|
|
1051
1051
|
destroy() {
|
|
1052
1052
|
this.toasts.forEach((e) => {
|
|
1053
|
-
|
|
1053
|
+
x.killTweensOf(e);
|
|
1054
1054
|
}), this.hideAll(), this.toasts = [], super.destroy({ children: !0 });
|
|
1055
1055
|
}
|
|
1056
|
-
},
|
|
1056
|
+
}, q = [
|
|
1057
1057
|
"debug",
|
|
1058
1058
|
"padding",
|
|
1059
1059
|
"size",
|
|
1060
1060
|
"useAppSize",
|
|
1061
1061
|
"useSafeArea",
|
|
1062
1062
|
"layout"
|
|
1063
|
-
],
|
|
1063
|
+
], xe = {
|
|
1064
1064
|
top: 0,
|
|
1065
1065
|
right: 0,
|
|
1066
1066
|
bottom: 0,
|
|
1067
1067
|
left: 0
|
|
1068
1068
|
};
|
|
1069
|
-
function
|
|
1069
|
+
function Se(e, t) {
|
|
1070
1070
|
return {
|
|
1071
1071
|
top: e.top + t.top,
|
|
1072
1072
|
right: e.right + t.right,
|
|
@@ -1074,37 +1074,45 @@ function xe(e, t) {
|
|
|
1074
1074
|
left: e.left + t.left
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
|
-
|
|
1077
|
+
function Ce(e, t) {
|
|
1078
|
+
return t === !0 ? { ...e } : t === !1 ? { ...xe } : {
|
|
1079
|
+
top: t.top === !1 ? 0 : e.top,
|
|
1080
|
+
right: t.right === !1 ? 0 : e.right,
|
|
1081
|
+
bottom: t.bottom === !1 ? 0 : e.bottom,
|
|
1082
|
+
left: t.left === !1 ? 0 : e.left
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
var we = {
|
|
1078
1086
|
flexGrow: 0,
|
|
1079
1087
|
flexShrink: 0,
|
|
1080
1088
|
autoLayoutChildren: !0
|
|
1081
|
-
},
|
|
1082
|
-
constructor(
|
|
1089
|
+
}, Te = h(l()), Ee = class e extends Te {
|
|
1090
|
+
constructor(e) {
|
|
1083
1091
|
if (super(), this.settingsMap = /* @__PURE__ */ new Map(), this._childMap = /* @__PURE__ */ new Map(), this._debugGraphics = null, this._debugLabel = null, this._regionLabels = [], this._disableAddChildError = !1, this._bindings = [], this._canvasChildren = [], this.removeChildren = (e, t) => super.removeChildren(e, t), this.removeChildAt = (e) => super.removeChildAt(e), this.addChildAt = (e, t) => {
|
|
1084
1092
|
throw Error("UICanvas: Do not call addChildAt() directly. Use addElement(child, { align }) instead.\nExample: uiCanvas.addElement(myChild, { align: 'top right' })");
|
|
1085
1093
|
}, this.setChildIndex = (e, t) => {
|
|
1086
1094
|
throw Error("UICanvas: Do not call setChildIndex() directly. Use reorderElement(child, index), bringToFront(child), or sendToBack(child) instead.\nExample: uiCanvas.reorderElement(myChild, 0)");
|
|
1087
1095
|
}, this.getChildIndex = (e) => super.getChildIndex(e), this.getChildAt = (e) => super.getChildAt(e), !this.app.config.useLayout) throw Error("You must set useLayout to true in your app config to use UICanvas");
|
|
1088
|
-
|
|
1089
|
-
debug:
|
|
1090
|
-
padding: g(
|
|
1091
|
-
size:
|
|
1096
|
+
o(this), this._positionContainers = /* @__PURE__ */ new Map(), this.config = {
|
|
1097
|
+
debug: e.debug === !0,
|
|
1098
|
+
padding: g(e?.padding ?? 0),
|
|
1099
|
+
size: e.size === void 0 ? {
|
|
1092
1100
|
width: 0,
|
|
1093
1101
|
height: 0
|
|
1094
|
-
} :
|
|
1095
|
-
useAppSize:
|
|
1096
|
-
useSafeArea:
|
|
1097
|
-
autoLayoutChildren:
|
|
1098
|
-
},
|
|
1099
|
-
...
|
|
1100
|
-
...
|
|
1101
|
-
} : this.config.layout = { ...
|
|
1102
|
+
} : te(e.size),
|
|
1103
|
+
useAppSize: e.useAppSize === !0,
|
|
1104
|
+
useSafeArea: e.useSafeArea ?? !0,
|
|
1105
|
+
autoLayoutChildren: e.autoLayoutChildren ?? !0
|
|
1106
|
+
}, e.layout ? typeof e.layout == "boolean" ? this.config.layout = e.layout : this.config.layout = {
|
|
1107
|
+
...we,
|
|
1108
|
+
...e.layout
|
|
1109
|
+
} : this.config.layout = { ...we }, this.config.useAppSize && (this.config.size = this.app.size), this.layout = {
|
|
1102
1110
|
width: this.config.size.width,
|
|
1103
1111
|
height: this.config.size.height,
|
|
1104
1112
|
flexDirection: "column",
|
|
1105
1113
|
justifyContent: "space-between",
|
|
1106
1114
|
...typeof this.config.layout == "object" ? this.config.layout : {}
|
|
1107
|
-
}, this.on("childRemoved", this._childRemoved), this.once("added", this._added), this.addSignalConnection(this.app.onResize.connect(this.resize)), this._initializeLayout(), this._updateLayout(), this.config.debug &&
|
|
1115
|
+
}, this.on("childRemoved", this._childRemoved), this.once("added", this._added), this.addSignalConnection(this.app.onResize.connect(this.resize)), this._initializeLayout(), this._updateLayout(), this.config.debug && D(`UICanvas:${this.uid}`, this.label || "UICanvas", S.outerBounds);
|
|
1108
1116
|
}
|
|
1109
1117
|
_updateLayout() {
|
|
1110
1118
|
this.app.ticker.addOnce(this.updateLayout);
|
|
@@ -1203,10 +1211,10 @@ var Se = {
|
|
|
1203
1211
|
return this._canvasChildren;
|
|
1204
1212
|
}
|
|
1205
1213
|
get app() {
|
|
1206
|
-
return
|
|
1214
|
+
return m.getInstance();
|
|
1207
1215
|
}
|
|
1208
1216
|
destroy() {
|
|
1209
|
-
this._disableAddChildError = !0, this.config.debug &&
|
|
1217
|
+
this._disableAddChildError = !0, this.config.debug && O(`UICanvas:${this.uid}`), this._debugGraphics &&= (this._debugGraphics.destroy(), null), this._debugLabel &&= (this._debugLabel.destroy(), null);
|
|
1210
1218
|
for (let e of this._regionLabels) e.destroy();
|
|
1211
1219
|
this._regionLabels = [], this.canvasChildren?.forEach((e) => {
|
|
1212
1220
|
e.off("layout", this._updateLayout);
|
|
@@ -1220,7 +1228,7 @@ var Se = {
|
|
|
1220
1228
|
this.config.size = e === void 0 ? {
|
|
1221
1229
|
width: 0,
|
|
1222
1230
|
height: 0
|
|
1223
|
-
} :
|
|
1231
|
+
} : te(e), this.layout = {
|
|
1224
1232
|
width: this.config.size.width,
|
|
1225
1233
|
height: this.config.size.height
|
|
1226
1234
|
}, this.updateLayout();
|
|
@@ -1229,7 +1237,7 @@ var Se = {
|
|
|
1229
1237
|
this.config.padding = g(e), this._applyPadding(), this._updateLayout();
|
|
1230
1238
|
}
|
|
1231
1239
|
_applyPadding() {
|
|
1232
|
-
let e =
|
|
1240
|
+
let e = Se(this.config.padding, Ce(this.app.safeArea, this.config.useSafeArea));
|
|
1233
1241
|
this.layout = {
|
|
1234
1242
|
paddingLeft: e.left,
|
|
1235
1243
|
paddingTop: e.top,
|
|
@@ -1291,9 +1299,9 @@ var Se = {
|
|
|
1291
1299
|
height: t.height
|
|
1292
1300
|
};
|
|
1293
1301
|
}
|
|
1294
|
-
addElement(
|
|
1295
|
-
let r = n?.align ?? "top left",
|
|
1296
|
-
return
|
|
1302
|
+
addElement(t, n) {
|
|
1303
|
+
let r = n?.align ?? "top left", a = this._positionContainers.get(r);
|
|
1304
|
+
return a ? (e.isFlexContainer(t) && this.addSignalConnection(t.onLayoutComplete.connect(this._updateLayout)), this.settingsMap.set(t, {
|
|
1297
1305
|
align: r,
|
|
1298
1306
|
padding: n?.padding ? g(n.padding) : {
|
|
1299
1307
|
top: 0,
|
|
@@ -1301,7 +1309,7 @@ var Se = {
|
|
|
1301
1309
|
bottom: 0,
|
|
1302
1310
|
right: 0
|
|
1303
1311
|
}
|
|
1304
|
-
}), this._childMap.set(
|
|
1312
|
+
}), this._childMap.set(t, a), this._canvasChildren = Array.from(this._childMap.keys()), a.add.existing(t), this._childAdded(t), t) : (i.error(`UICanvas:: Invalid position "${r}" for element`), t);
|
|
1305
1313
|
}
|
|
1306
1314
|
removeElement(e) {
|
|
1307
1315
|
let t = this._childMap.get(e);
|
|
@@ -1322,10 +1330,10 @@ var Se = {
|
|
|
1322
1330
|
return this.reorderElement(e, 0);
|
|
1323
1331
|
}
|
|
1324
1332
|
_childAdded(e) {
|
|
1325
|
-
this.config.autoLayoutChildren && (e.layout ||= !0, e.layout?.style?.width || (e.layout = { width: "auto" }), e.layout?.style?.height || (e.layout = { height: "auto" })), e.on("layout", this._updateLayout),
|
|
1333
|
+
this.config.autoLayoutChildren && (e.layout ||= !0, e.layout?.style?.width || (e.layout = { width: "auto" }), e.layout?.style?.height || (e.layout = { height: "auto" })), e.on("layout", this._updateLayout), p.childAdded(e), this._updateLayout();
|
|
1326
1334
|
}
|
|
1327
1335
|
_childRemoved(e) {
|
|
1328
|
-
this.settingsMap.delete(e), this._childMap.delete(e), this._canvasChildren = Array.from(this._childMap.keys()),
|
|
1336
|
+
this.settingsMap.delete(e), this._childMap.delete(e), this._canvasChildren = Array.from(this._childMap.keys()), p.childRemoved(e);
|
|
1329
1337
|
}
|
|
1330
1338
|
_added() {
|
|
1331
1339
|
this._updateLayout();
|
|
@@ -1334,38 +1342,38 @@ var Se = {
|
|
|
1334
1342
|
return this.config.debug;
|
|
1335
1343
|
}
|
|
1336
1344
|
set debug(e) {
|
|
1337
|
-
if (this.config.debug = e, e)
|
|
1345
|
+
if (this.config.debug = e, e) D(`UICanvas:${this.uid}`, this.label || "UICanvas", S.outerBounds), this.drawDebug();
|
|
1338
1346
|
else {
|
|
1339
|
-
|
|
1347
|
+
O(`UICanvas:${this.uid}`), this._debugGraphics && this._debugGraphics.clear(), this._debugLabel && (this._debugLabel.visible = !1);
|
|
1340
1348
|
for (let e of this._regionLabels) e.visible = !1;
|
|
1341
1349
|
}
|
|
1342
1350
|
}
|
|
1343
1351
|
drawDebug() {
|
|
1344
|
-
this._debugGraphics || (this._disableAddChildError = !0, this._debugGraphics =
|
|
1352
|
+
this._debugGraphics || (this._disableAddChildError = !0, this._debugGraphics = w(`${this.label ?? "UICanvas"}:debug`), super.addChild(this._debugGraphics), this._debugGraphics.layout = !1, this._disableAddChildError = !1), this._debugLabel || (this._disableAddChildError = !0, this._debugLabel = T(this.label || "UICanvas", S.outerBounds), super.addChild(this._debugLabel), this._debugLabel.layout = !1, this._disableAddChildError = !1), this._debugLabel.text = this.label || "UICanvas", this._debugLabel.visible = !0, this._debugLabel.position.set(2, 2), this._debugGraphics.clear();
|
|
1345
1353
|
let e = this.config.size.width, t = this.config.size.height, n = this.config.padding;
|
|
1346
1354
|
this._debugGraphics.rect(0, 0, e, t).stroke({
|
|
1347
1355
|
width: 1,
|
|
1348
|
-
color:
|
|
1349
|
-
alpha:
|
|
1356
|
+
color: S.outerBounds,
|
|
1357
|
+
alpha: C.stroke,
|
|
1350
1358
|
pixelLine: !0
|
|
1351
1359
|
}), n.top > 0 && this._debugGraphics.rect(0, 0, e, n.top).fill({
|
|
1352
|
-
color:
|
|
1353
|
-
alpha:
|
|
1360
|
+
color: S.outerBounds,
|
|
1361
|
+
alpha: C.fill
|
|
1354
1362
|
}), n.bottom > 0 && this._debugGraphics.rect(0, t - n.bottom, e, n.bottom).fill({
|
|
1355
|
-
color:
|
|
1356
|
-
alpha:
|
|
1363
|
+
color: S.outerBounds,
|
|
1364
|
+
alpha: C.fill
|
|
1357
1365
|
}), n.left > 0 && this._debugGraphics.rect(0, n.top, n.left, t - n.top - n.bottom).fill({
|
|
1358
|
-
color:
|
|
1359
|
-
alpha:
|
|
1366
|
+
color: S.outerBounds,
|
|
1367
|
+
alpha: C.fill
|
|
1360
1368
|
}), n.right > 0 && this._debugGraphics.rect(e - n.right, n.top, n.right, t - n.top - n.bottom).fill({
|
|
1361
|
-
color:
|
|
1362
|
-
alpha:
|
|
1369
|
+
color: S.outerBounds,
|
|
1370
|
+
alpha: C.fill
|
|
1363
1371
|
});
|
|
1364
1372
|
let r = n.left, i = n.top, a = e - n.left - n.right, o = t - n.top - n.bottom;
|
|
1365
1373
|
this._debugGraphics.rect(r, i, a, o).stroke({
|
|
1366
1374
|
width: 1,
|
|
1367
|
-
color:
|
|
1368
|
-
alpha:
|
|
1375
|
+
color: S.innerBounds,
|
|
1376
|
+
alpha: C.stroke,
|
|
1369
1377
|
pixelLine: !0
|
|
1370
1378
|
});
|
|
1371
1379
|
let s = /* @__PURE__ */ new Map();
|
|
@@ -1375,7 +1383,7 @@ var Se = {
|
|
|
1375
1383
|
let c = [...new Set(this._positionContainers.values())];
|
|
1376
1384
|
for (; this._regionLabels.length < c.length;) {
|
|
1377
1385
|
this._disableAddChildError = !0;
|
|
1378
|
-
let e =
|
|
1386
|
+
let e = T("", S.region);
|
|
1379
1387
|
super.addChild(e), e.layout = !1, this._regionLabels.push(e), this._disableAddChildError = !1;
|
|
1380
1388
|
}
|
|
1381
1389
|
c.forEach((e, t) => {
|
|
@@ -1384,11 +1392,11 @@ var Se = {
|
|
|
1384
1392
|
if (!r?.layout?.computedLayout) return;
|
|
1385
1393
|
let i = r.layout.computedLayout, a = i.left + n.left, o = i.top + n.top, c = n.width, l = n.height, u = e.children.length > 0;
|
|
1386
1394
|
this._debugGraphics.rect(a, o, c, l).fill({
|
|
1387
|
-
color:
|
|
1388
|
-
alpha: u ?
|
|
1395
|
+
color: S.region,
|
|
1396
|
+
alpha: u ? C.fillActive : C.fill
|
|
1389
1397
|
}).stroke({
|
|
1390
1398
|
width: 1,
|
|
1391
|
-
color:
|
|
1399
|
+
color: S.region,
|
|
1392
1400
|
alpha: .3,
|
|
1393
1401
|
pixelLine: !0
|
|
1394
1402
|
});
|
|
@@ -1399,53 +1407,53 @@ var Se = {
|
|
|
1399
1407
|
let l = e / 2, u = t / 2;
|
|
1400
1408
|
this._debugGraphics.moveTo(l, u - 10).lineTo(l, u + 10).stroke({
|
|
1401
1409
|
width: 1,
|
|
1402
|
-
color:
|
|
1403
|
-
alpha:
|
|
1410
|
+
color: S.outerBounds,
|
|
1411
|
+
alpha: C.crosshair,
|
|
1404
1412
|
pixelLine: !0
|
|
1405
1413
|
}).moveTo(l - 10, u).lineTo(l + 10, u).stroke({
|
|
1406
1414
|
width: 1,
|
|
1407
|
-
color:
|
|
1408
|
-
alpha:
|
|
1415
|
+
color: S.outerBounds,
|
|
1416
|
+
alpha: C.crosshair,
|
|
1409
1417
|
pixelLine: !0
|
|
1410
1418
|
});
|
|
1411
1419
|
}
|
|
1412
|
-
},
|
|
1413
|
-
function
|
|
1414
|
-
if (
|
|
1415
|
-
|
|
1420
|
+
}, J = null;
|
|
1421
|
+
function De() {
|
|
1422
|
+
if (J) return J;
|
|
1423
|
+
J = /* @__PURE__ */ new Map();
|
|
1416
1424
|
let e = globalThis.Caper?.get?.("entityList") ?? [];
|
|
1417
|
-
for (let t of e) t.active !== !1 && typeof t.module == "function" && t.module.prototype &&
|
|
1418
|
-
return
|
|
1425
|
+
for (let t of e) t.active !== !1 && typeof t.module == "function" && t.module.prototype && J.set(t.id, t.module);
|
|
1426
|
+
return J;
|
|
1419
1427
|
}
|
|
1420
|
-
function
|
|
1421
|
-
return
|
|
1428
|
+
function Oe(e) {
|
|
1429
|
+
return De().get(e);
|
|
1422
1430
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return [...
|
|
1431
|
+
function ke() {
|
|
1432
|
+
return [...De().keys()];
|
|
1425
1433
|
}
|
|
1426
1434
|
//#endregion
|
|
1427
1435
|
//#region src/mixins/factory/ui-registry.ts
|
|
1428
|
-
var
|
|
1429
|
-
function
|
|
1430
|
-
if (
|
|
1431
|
-
|
|
1436
|
+
var Y = null;
|
|
1437
|
+
function Ae() {
|
|
1438
|
+
if (Y) return Y;
|
|
1439
|
+
Y = /* @__PURE__ */ new Map();
|
|
1432
1440
|
let e = globalThis.Caper?.get?.("uiList") ?? [];
|
|
1433
|
-
for (let t of e) t.active !== !1 && typeof t.module == "function" && t.module.prototype &&
|
|
1434
|
-
return
|
|
1441
|
+
for (let t of e) t.active !== !1 && typeof t.module == "function" && t.module.prototype && Y.set(t.id, t.module);
|
|
1442
|
+
return Y;
|
|
1435
1443
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return
|
|
1444
|
+
function je(e) {
|
|
1445
|
+
return Ae().get(e);
|
|
1438
1446
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return [...
|
|
1447
|
+
function X() {
|
|
1448
|
+
return [...Ae().keys()];
|
|
1441
1449
|
}
|
|
1442
1450
|
//#endregion
|
|
1443
1451
|
//#region src/mixins/factory/schema.ts
|
|
1444
|
-
var
|
|
1452
|
+
var Me = [
|
|
1445
1453
|
"position",
|
|
1446
1454
|
"scale",
|
|
1447
1455
|
"pivot"
|
|
1448
|
-
],
|
|
1456
|
+
], Ne = [
|
|
1449
1457
|
"position",
|
|
1450
1458
|
"x",
|
|
1451
1459
|
"y",
|
|
@@ -1456,25 +1464,25 @@ var je = [
|
|
|
1456
1464
|
"anchor"
|
|
1457
1465
|
];
|
|
1458
1466
|
function Z(e) {
|
|
1459
|
-
let t = e.applies ??
|
|
1467
|
+
let t = e.applies ?? Me, n = t.includes("position"), r = t.includes("scale"), i = t.includes("pivot"), a = t.includes("anchor"), o = [...Ne, ...e.exclude ?? []];
|
|
1460
1468
|
return (t) => {
|
|
1461
|
-
let
|
|
1462
|
-
if (t == null) return
|
|
1463
|
-
let
|
|
1469
|
+
let s = e.build(t);
|
|
1470
|
+
if (t == null) return s;
|
|
1471
|
+
let c = t;
|
|
1464
1472
|
return n && F({
|
|
1465
|
-
position:
|
|
1466
|
-
x:
|
|
1467
|
-
y:
|
|
1468
|
-
},
|
|
1469
|
-
scale:
|
|
1470
|
-
scaleX:
|
|
1471
|
-
scaleY:
|
|
1472
|
-
},
|
|
1473
|
+
position: c.position,
|
|
1474
|
+
x: c.x,
|
|
1475
|
+
y: c.y
|
|
1476
|
+
}, s), r && I({
|
|
1477
|
+
scale: c.scale,
|
|
1478
|
+
scaleX: c.scaleX,
|
|
1479
|
+
scaleY: c.scaleY
|
|
1480
|
+
}, s), i && R(c.pivot, s), a && L(c.anchor, s), M(ne(o, c), s), s;
|
|
1473
1481
|
};
|
|
1474
1482
|
}
|
|
1475
1483
|
//#endregion
|
|
1476
1484
|
//#region src/mixins/factory/const.ts
|
|
1477
|
-
var
|
|
1485
|
+
var Pe = /* @__PURE__ */ c({ defaultFactoryMethods: () => $ }), Q = [
|
|
1478
1486
|
"text",
|
|
1479
1487
|
"roundPixels",
|
|
1480
1488
|
"resolution",
|
|
@@ -1496,16 +1504,16 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1496
1504
|
}, e), R(a, e), M(l, e), e;
|
|
1497
1505
|
},
|
|
1498
1506
|
container: Z({
|
|
1499
|
-
build: (e) => new
|
|
1507
|
+
build: (e) => new p(e ? a(e, ee) : void 0),
|
|
1500
1508
|
applies: [
|
|
1501
1509
|
"position",
|
|
1502
1510
|
"scale",
|
|
1503
1511
|
"pivot"
|
|
1504
1512
|
],
|
|
1505
|
-
exclude:
|
|
1513
|
+
exclude: ee
|
|
1506
1514
|
}),
|
|
1507
1515
|
particleContainer: Z({
|
|
1508
|
-
build: (e) => new de(e ?
|
|
1516
|
+
build: (e) => new de(e ? a(e, A) : void 0),
|
|
1509
1517
|
applies: [
|
|
1510
1518
|
"position",
|
|
1511
1519
|
"scale",
|
|
@@ -1515,7 +1523,7 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1515
1523
|
}),
|
|
1516
1524
|
texture: P,
|
|
1517
1525
|
sprite: Z({
|
|
1518
|
-
build: (e) => new
|
|
1526
|
+
build: (e) => new oe(e ? P(e) : void 0),
|
|
1519
1527
|
applies: [
|
|
1520
1528
|
"position",
|
|
1521
1529
|
"scale",
|
|
@@ -1525,7 +1533,7 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1525
1533
|
exclude: ["asset", "sheet"]
|
|
1526
1534
|
}),
|
|
1527
1535
|
tilingSprite: Z({
|
|
1528
|
-
build: (e) => new
|
|
1536
|
+
build: (e) => new ce(e ? P(e) : void 0),
|
|
1529
1537
|
applies: [
|
|
1530
1538
|
"position",
|
|
1531
1539
|
"scale",
|
|
@@ -1576,13 +1584,13 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1576
1584
|
}, t), R(a, t), M(l, t), t;
|
|
1577
1585
|
},
|
|
1578
1586
|
text: Z({
|
|
1579
|
-
build: (e) => new
|
|
1587
|
+
build: (e) => new b(e ? {
|
|
1580
1588
|
text: e.text,
|
|
1581
1589
|
roundPixels: e.roundPixels,
|
|
1582
1590
|
resolution: e.resolution,
|
|
1583
1591
|
style: e.style,
|
|
1584
|
-
anchor: e.anchor ?
|
|
1585
|
-
pivot: e.pivot ?
|
|
1592
|
+
anchor: e.anchor ? u(e.anchor, !0) : void 0,
|
|
1593
|
+
pivot: e.pivot ? u(e.pivot, !0) : void 0
|
|
1586
1594
|
} : {}),
|
|
1587
1595
|
applies: [
|
|
1588
1596
|
"position",
|
|
@@ -1597,8 +1605,8 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1597
1605
|
roundPixels: e.roundPixels,
|
|
1598
1606
|
resolution: e.resolution,
|
|
1599
1607
|
style: e.style,
|
|
1600
|
-
anchor: e.anchor ?
|
|
1601
|
-
pivot: e.pivot ?
|
|
1608
|
+
anchor: e.anchor ? u(e.anchor, !0) : void 0,
|
|
1609
|
+
pivot: e.pivot ? u(e.pivot, !0) : void 0
|
|
1602
1610
|
} : {}),
|
|
1603
1611
|
applies: [
|
|
1604
1612
|
"position",
|
|
@@ -1612,8 +1620,8 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1612
1620
|
text: e.text,
|
|
1613
1621
|
roundPixels: e.roundPixels,
|
|
1614
1622
|
style: e.style,
|
|
1615
|
-
anchor: e.anchor ?
|
|
1616
|
-
pivot: e.pivot ?
|
|
1623
|
+
anchor: e.anchor ? u(e.anchor, !0) : void 0,
|
|
1624
|
+
pivot: e.pivot ? u(e.pivot, !0) : void 0
|
|
1617
1625
|
} : {}),
|
|
1618
1626
|
applies: [
|
|
1619
1627
|
"position",
|
|
@@ -1623,7 +1631,7 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1623
1631
|
exclude: [...Q]
|
|
1624
1632
|
}),
|
|
1625
1633
|
button: Z({
|
|
1626
|
-
build: (e) => new W(e ?
|
|
1634
|
+
build: (e) => new W(e ? a(e, U) : void 0),
|
|
1627
1635
|
applies: [
|
|
1628
1636
|
"position",
|
|
1629
1637
|
"scale",
|
|
@@ -1641,13 +1649,13 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1641
1649
|
exclude: _e
|
|
1642
1650
|
}),
|
|
1643
1651
|
uiCanvas: Z({
|
|
1644
|
-
build: (e) => new
|
|
1652
|
+
build: (e) => new Ee(e ? a(e, q) : {}),
|
|
1645
1653
|
applies: [
|
|
1646
1654
|
"position",
|
|
1647
1655
|
"scale",
|
|
1648
1656
|
"pivot"
|
|
1649
1657
|
],
|
|
1650
|
-
exclude:
|
|
1658
|
+
exclude: q
|
|
1651
1659
|
}),
|
|
1652
1660
|
spine: Z({
|
|
1653
1661
|
build: (e) => {
|
|
@@ -1690,11 +1698,11 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1690
1698
|
scaleY: l
|
|
1691
1699
|
}, t), L(a, t), R(o, t), M(u, t), t;
|
|
1692
1700
|
},
|
|
1693
|
-
toaster: (e, t = {}) => new
|
|
1701
|
+
toaster: (e, t = {}) => new be(e, t),
|
|
1694
1702
|
entity: (e, t) => {
|
|
1695
|
-
let n =
|
|
1703
|
+
let n = Oe(e);
|
|
1696
1704
|
if (!n) {
|
|
1697
|
-
let t =
|
|
1705
|
+
let t = ke();
|
|
1698
1706
|
throw Error(`[caper] Unknown entity id '${String(e)}'. Known: ${t.length > 0 ? t.map((e) => `'${e}'`).join(", ") : "(none — discovery may have failed)"}`);
|
|
1699
1707
|
}
|
|
1700
1708
|
let r = new n(t);
|
|
@@ -1713,9 +1721,9 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1713
1721
|
return r;
|
|
1714
1722
|
},
|
|
1715
1723
|
ui: (e, t) => {
|
|
1716
|
-
let n =
|
|
1724
|
+
let n = je(e);
|
|
1717
1725
|
if (!n) {
|
|
1718
|
-
let t =
|
|
1726
|
+
let t = X();
|
|
1719
1727
|
throw Error(`[caper] Unknown ui id '${String(e)}'. Known: ${t.length > 0 ? t.map((e) => `'${e}'`).join(", ") : "(none — discovery may have failed)"}`);
|
|
1720
1728
|
}
|
|
1721
1729
|
let r = new n(t);
|
|
@@ -1736,6 +1744,6 @@ var Ne = /* @__PURE__ */ t({ defaultFactoryMethods: () => $ }), Q = [
|
|
|
1736
1744
|
};
|
|
1737
1745
|
r($);
|
|
1738
1746
|
//#endregion
|
|
1739
|
-
export {
|
|
1747
|
+
export { A, R as C, M as D, P as E, T as F, le as I, D as L, C as M, S as N, fe as O, w as P, O as R, L as S, I as T, H as _, Ee as a, z as b, Ce as c, K as d, G as f, U as g, W as h, ke as i, k as j, de as k, be as l, ge as m, $ as n, q as o, _e as p, X as r, Se as s, Pe as t, ve as u, V as v, F as w, N as x, B as y };
|
|
1740
1748
|
|
|
1741
|
-
//# sourceMappingURL=const-
|
|
1749
|
+
//# sourceMappingURL=const-Bca54QyV.js.map
|