narrat 3.11.0 → 3.11.1
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/config/common-config.d.ts +2 -0
- package/dist/config/config-input.d.ts +2 -0
- package/dist/data/all-stores.d.ts +6 -0
- package/dist/narrat.es.js +359 -354
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +17 -17
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +4 -0
- package/dist/stores/scenes-store.d.ts +1 -0
- package/dist/utils/data-helpers.d.ts +1 -0
- package/package.json +1 -1
package/dist/narrat.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Jp = Object.defineProperty;
|
|
2
2
|
var Xp = (e, t, n) => t in e ? Jp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Ve = (e, t, n) => (Xp(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as $e, openBlock as D, createBlock as Ce, Transition as ji, withCtx as
|
|
4
|
+
import { defineComponent as $e, openBlock as D, createBlock as Ce, Transition as ji, withCtx as et, createElementVNode as U, normalizeClass as Ge, createElementBlock as J, createCommentVNode as Oe, renderSlot as $i, createTextVNode as Ar, effectScope as Mc, ref as le, markRaw as wr, hasInjectionContext as Zp, inject as em, getCurrentInstance as tm, toRaw as Vo, watch as kn, reactive as Gr, isRef as Li, isReactive as ea, toRef as ls, nextTick as Di, computed as V, unref as it, getCurrentScope as nm, onScopeDispose as rm, toRefs as Al, normalizeStyle as Qe, toDisplayString as ye, onMounted as ft, createVNode as ct, onUnmounted as _t, withDirectives as ir, vModelText as ei, Fragment as He, renderList as Je, onBeforeMount as Fc, TransitionGroup as Ci, Teleport as ta, resolveDynamicComponent as qo, resolveDirective as im, resolveComponent as ti, useSlots as om, shallowRef as vi, createStaticVNode as sm, normalizeProps as am, mergeProps as Uc, vModelCheckbox as lm, pushScopeId as cm, popScopeId as um, createApp as dm } from "vue";
|
|
5
5
|
var Mn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function na(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -372,7 +372,7 @@ const mm = $e({
|
|
|
372
372
|
}, hm = { class: "modal-header" }, ym = { class: "modal-body" }, gm = { class: "modal-footer" };
|
|
373
373
|
function vm(e, t, n, r, i, s) {
|
|
374
374
|
return D(), Ce(ji, { name: "fade" }, {
|
|
375
|
-
default:
|
|
375
|
+
default: et(() => [
|
|
376
376
|
U("div", {
|
|
377
377
|
class: "modal-mask",
|
|
378
378
|
onClick: t[2] || (t[2] = (...o) => e.close && e.close(...o))
|
|
@@ -691,10 +691,10 @@ const Ri = (e) => Ti = e, Yc = process.env.NODE_ENV !== "production" ? Symbol("p
|
|
|
691
691
|
function Er(e) {
|
|
692
692
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
693
693
|
}
|
|
694
|
-
var
|
|
694
|
+
var On;
|
|
695
695
|
(function(e) {
|
|
696
696
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
697
|
-
})(
|
|
697
|
+
})(On || (On = {}));
|
|
698
698
|
const Ho = typeof window < "u", Oi = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && Ho, El = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
699
699
|
function Rm(e, { autoBom: t = !1 } = {}) {
|
|
700
700
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
@@ -818,18 +818,18 @@ async function qm(e) {
|
|
|
818
818
|
kt("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
-
let
|
|
821
|
+
let Rn;
|
|
822
822
|
function Hm() {
|
|
823
|
-
|
|
823
|
+
Rn || (Rn = document.createElement("input"), Rn.type = "file", Rn.accept = ".json");
|
|
824
824
|
function e() {
|
|
825
825
|
return new Promise((t, n) => {
|
|
826
|
-
|
|
827
|
-
const r =
|
|
826
|
+
Rn.onchange = async () => {
|
|
827
|
+
const r = Rn.files;
|
|
828
828
|
if (!r)
|
|
829
829
|
return t(null);
|
|
830
830
|
const i = r.item(0);
|
|
831
831
|
return t(i ? { text: await i.text(), file: i } : null);
|
|
832
|
-
},
|
|
832
|
+
}, Rn.oncancel = () => t(null), Rn.onerror = n, Rn.click();
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
835
|
return e;
|
|
@@ -919,11 +919,11 @@ function zm(e) {
|
|
|
919
919
|
}
|
|
920
920
|
function Qm(e) {
|
|
921
921
|
switch (e) {
|
|
922
|
-
case
|
|
922
|
+
case On.direct:
|
|
923
923
|
return "mutation";
|
|
924
|
-
case
|
|
924
|
+
case On.patchFunction:
|
|
925
925
|
return "$patch";
|
|
926
|
-
case
|
|
926
|
+
case On.patchObject:
|
|
927
927
|
return "$patch";
|
|
928
928
|
default:
|
|
929
929
|
return "unknown";
|
|
@@ -1137,7 +1137,7 @@ function Xm(e, t) {
|
|
|
1137
1137
|
});
|
|
1138
1138
|
});
|
|
1139
1139
|
}, !0), t._customProperties.forEach((o) => {
|
|
1140
|
-
|
|
1140
|
+
kn(() => it(t[o]), (l, u) => {
|
|
1141
1141
|
n.notifyComponentUpdate(), n.sendInspectorState(xt), Wr && n.addTimelineEvent({
|
|
1142
1142
|
layerId: gr,
|
|
1143
1143
|
event: {
|
|
@@ -1161,7 +1161,7 @@ function Xm(e, t) {
|
|
|
1161
1161
|
data: Ym({ store: ln(t.$id) }, zm(o)),
|
|
1162
1162
|
groupId: tr
|
|
1163
1163
|
};
|
|
1164
|
-
l ===
|
|
1164
|
+
l === On.patchFunction ? c.subtitle = "⤵️" : l === On.patchObject ? c.subtitle = "🧩" : o && !Array.isArray(o) && (c.subtitle = o.type), o && (c.data["rawEvent(s)"] = {
|
|
1165
1165
|
_custom: {
|
|
1166
1166
|
display: "DebuggerEvent",
|
|
1167
1167
|
type: "object",
|
|
@@ -1329,11 +1329,11 @@ function Is(e, t, n = {}, r, i, s) {
|
|
|
1329
1329
|
function _(te) {
|
|
1330
1330
|
let z;
|
|
1331
1331
|
c = m = !1, process.env.NODE_ENV !== "production" && (p = []), typeof te == "function" ? (te(r.state.value[e]), z = {
|
|
1332
|
-
type:
|
|
1332
|
+
type: On.patchFunction,
|
|
1333
1333
|
storeId: e,
|
|
1334
1334
|
events: p
|
|
1335
1335
|
}) : (Es(r.state.value[e], te), z = {
|
|
1336
|
-
type:
|
|
1336
|
+
type: On.patchObject,
|
|
1337
1337
|
payload: te,
|
|
1338
1338
|
storeId: e,
|
|
1339
1339
|
events: p
|
|
@@ -1396,10 +1396,10 @@ function Is(e, t, n = {}, r, i, s) {
|
|
|
1396
1396
|
$patch: _,
|
|
1397
1397
|
$reset: E,
|
|
1398
1398
|
$subscribe(te, z = {}) {
|
|
1399
|
-
const Q = Pl(a, te, z.detached, () => X()), X = o.run(() =>
|
|
1399
|
+
const Q = Pl(a, te, z.detached, () => X()), X = o.run(() => kn(() => r.state.value[e], (re) => {
|
|
1400
1400
|
(z.flush === "sync" ? m : c) && te({
|
|
1401
1401
|
storeId: e,
|
|
1402
|
-
type:
|
|
1402
|
+
type: On.direct,
|
|
1403
1403
|
events: p
|
|
1404
1404
|
}, re);
|
|
1405
1405
|
}, en({}, u, z)));
|
|
@@ -1653,7 +1653,7 @@ const Ye = bt("dialog", {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
1655
|
});
|
|
1656
|
-
var
|
|
1656
|
+
var An = {};
|
|
1657
1657
|
/*!
|
|
1658
1658
|
* howler.js v2.2.4
|
|
1659
1659
|
* howlerjs.com
|
|
@@ -2857,7 +2857,7 @@ var On = {};
|
|
|
2857
2857
|
r = r || "spatial", r === "spatial" ? (n._panner = Howler.ctx.createPanner(), n._panner.coneInnerAngle = n._pannerAttr.coneInnerAngle, n._panner.coneOuterAngle = n._pannerAttr.coneOuterAngle, n._panner.coneOuterGain = n._pannerAttr.coneOuterGain, n._panner.distanceModel = n._pannerAttr.distanceModel, n._panner.maxDistance = n._pannerAttr.maxDistance, n._panner.refDistance = n._pannerAttr.refDistance, n._panner.rolloffFactor = n._pannerAttr.rolloffFactor, n._panner.panningModel = n._pannerAttr.panningModel, typeof n._panner.positionX < "u" ? (n._panner.positionX.setValueAtTime(n._pos[0], Howler.ctx.currentTime), n._panner.positionY.setValueAtTime(n._pos[1], Howler.ctx.currentTime), n._panner.positionZ.setValueAtTime(n._pos[2], Howler.ctx.currentTime)) : n._panner.setPosition(n._pos[0], n._pos[1], n._pos[2]), typeof n._panner.orientationX < "u" ? (n._panner.orientationX.setValueAtTime(n._orientation[0], Howler.ctx.currentTime), n._panner.orientationY.setValueAtTime(n._orientation[1], Howler.ctx.currentTime), n._panner.orientationZ.setValueAtTime(n._orientation[2], Howler.ctx.currentTime)) : n._panner.setOrientation(n._orientation[0], n._orientation[1], n._orientation[2])) : (n._panner = Howler.ctx.createStereoPanner(), n._panner.pan.setValueAtTime(n._stereo, Howler.ctx.currentTime)), n._panner.connect(n._node), n._paused || n._parent.pause(n._id, !0).play(n._id, !0);
|
|
2858
2858
|
};
|
|
2859
2859
|
})();
|
|
2860
|
-
})(
|
|
2860
|
+
})(An);
|
|
2861
2861
|
function Kt(e) {
|
|
2862
2862
|
return new Promise((t, n) => {
|
|
2863
2863
|
setTimeout(t, e);
|
|
@@ -2917,7 +2917,7 @@ const uu = (e) => e.reduce(
|
|
|
2917
2917
|
r.pause(n.howlerId);
|
|
2918
2918
|
},
|
|
2919
2919
|
async playChannel(e, t, n) {
|
|
2920
|
-
|
|
2920
|
+
An.Howler.ctx.state === "suspended" && (console.warn("Audio context is suspended :o"), An.Howler.ctx.resume());
|
|
2921
2921
|
const r = this.getAudioChannel(e, n);
|
|
2922
2922
|
if (e === "sound")
|
|
2923
2923
|
return this.actuallyPlayChannel(e, n, t);
|
|
@@ -3019,7 +3019,7 @@ const uu = (e) => e.reduce(
|
|
|
3019
3019
|
}
|
|
3020
3020
|
},
|
|
3021
3021
|
setMasterVolume(e) {
|
|
3022
|
-
this.masterVolume = e,
|
|
3022
|
+
this.masterVolume = e, An.Howler.volume(e);
|
|
3023
3023
|
},
|
|
3024
3024
|
modeVolume(e) {
|
|
3025
3025
|
return this.masterVolume * this.modes.get(e).options.volume;
|
|
@@ -3030,12 +3030,12 @@ const uu = (e) => e.reduce(
|
|
|
3030
3030
|
}
|
|
3031
3031
|
}
|
|
3032
3032
|
}), pu = {};
|
|
3033
|
-
|
|
3033
|
+
An.Howler.volume(0.5);
|
|
3034
3034
|
let Ps = {};
|
|
3035
3035
|
async function lh(e) {
|
|
3036
3036
|
fn.log("Loading audio");
|
|
3037
3037
|
const t = [];
|
|
3038
|
-
|
|
3038
|
+
An.Howler.volume(e.options.volume);
|
|
3039
3039
|
for (const n in e.files) {
|
|
3040
3040
|
const r = e.files[n];
|
|
3041
3041
|
r.src || (r.src = r.path, r.path || console.error(
|
|
@@ -3051,7 +3051,7 @@ function Ir(e) {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
async function ch(e, t) {
|
|
3053
3053
|
return new Promise((n, r) => {
|
|
3054
|
-
const i = new
|
|
3054
|
+
const i = new An.Howl({
|
|
3055
3055
|
...t,
|
|
3056
3056
|
src: Wt(t.src)
|
|
3057
3057
|
});
|
|
@@ -3430,10 +3430,10 @@ var f = {};
|
|
|
3430
3430
|
return Ne(O, "Symbol") && O.type === "symbol" && R(O.$id);
|
|
3431
3431
|
}
|
|
3432
3432
|
N.TSymbol = jr;
|
|
3433
|
-
function
|
|
3433
|
+
function xn(O) {
|
|
3434
3434
|
return Ne(O, "TemplateLiteral") && O.type === "string" && i.IsString(O.pattern) && O.pattern[0] === "^" && O.pattern[O.pattern.length - 1] === "$";
|
|
3435
3435
|
}
|
|
3436
|
-
N.TTemplateLiteral =
|
|
3436
|
+
N.TTemplateLiteral = xn;
|
|
3437
3437
|
function Lr(O) {
|
|
3438
3438
|
return Ne(O, "This") && R(O.$id) && i.IsString(O.$ref);
|
|
3439
3439
|
}
|
|
@@ -3452,17 +3452,17 @@ var f = {};
|
|
|
3452
3452
|
}
|
|
3453
3453
|
N.TUndefined = Dr;
|
|
3454
3454
|
function yn(O) {
|
|
3455
|
-
return
|
|
3455
|
+
return jn(O) && O.anyOf.every((I) => se(I) || ae(I));
|
|
3456
3456
|
}
|
|
3457
3457
|
N.TUnionLiteral = yn;
|
|
3458
|
-
function
|
|
3458
|
+
function jn(O) {
|
|
3459
3459
|
return Ne(O, "Union") && R(O.$id) && i.IsObject(O) && i.IsArray(O.anyOf) && O.anyOf.every((I) => ht(I));
|
|
3460
3460
|
}
|
|
3461
|
-
N.TUnion =
|
|
3462
|
-
function
|
|
3461
|
+
N.TUnion = jn;
|
|
3462
|
+
function Ln(O) {
|
|
3463
3463
|
return Ne(O, "Uint8Array") && O.type === "Uint8Array" && R(O.$id) && b(O.minByteLength) && b(O.maxByteLength);
|
|
3464
3464
|
}
|
|
3465
|
-
N.TUint8Array =
|
|
3465
|
+
N.TUint8Array = Ln;
|
|
3466
3466
|
function Ot(O) {
|
|
3467
3467
|
return Ne(O, "Unknown") && R(O.$id);
|
|
3468
3468
|
}
|
|
@@ -3484,7 +3484,7 @@ var f = {};
|
|
|
3484
3484
|
}
|
|
3485
3485
|
N.TOptional = Rr;
|
|
3486
3486
|
function ht(O) {
|
|
3487
|
-
return i.IsObject(O) && (oe(O) || je(O) || he(O) || ee(O) || M(O) || fe(O) || we(O) || Ae(O) || qe(O) || lt(O) || st(O) || Se(O) || xe(O) || Ee(O) || Tt(O) || zt(O) || Qt(O) || Mt(O) || dr(O) || fr(O) || Ft(O) || jr(O) ||
|
|
3487
|
+
return i.IsObject(O) && (oe(O) || je(O) || he(O) || ee(O) || M(O) || fe(O) || we(O) || Ae(O) || qe(O) || lt(O) || st(O) || Se(O) || xe(O) || Ee(O) || Tt(O) || zt(O) || Qt(O) || Mt(O) || dr(O) || fr(O) || Ft(O) || jr(O) || xn(O) || Lr(O) || mt(O) || Dr(O) || jn(O) || Ln(O) || Ot(O) || Qn(O) || Yn(O) || G(O) && t.Has(O[e.Kind]));
|
|
3488
3488
|
}
|
|
3489
3489
|
N.TSchema = ht;
|
|
3490
3490
|
})(o || (e.TypeGuard = o = {}));
|
|
@@ -3526,7 +3526,7 @@ var f = {};
|
|
|
3526
3526
|
return o.TUnknown(w) ? c.False : o.TAny(w) ? c.Union : o.TNever(w) ? c.True : c.False;
|
|
3527
3527
|
}
|
|
3528
3528
|
function H(w, S) {
|
|
3529
|
-
return o.TObject(S) &&
|
|
3529
|
+
return o.TObject(S) && xn(S) ? c.True : C(S) ? g(w, S) : o.TArray(S) ? y(me(w.items, S.items)) : c.False;
|
|
3530
3530
|
}
|
|
3531
3531
|
function ie(w, S) {
|
|
3532
3532
|
return C(S) ? g(w, S) : o.TAsyncIterator(S) ? y(me(w.items, S.items)) : c.False;
|
|
@@ -3595,7 +3595,7 @@ var f = {};
|
|
|
3595
3595
|
return Object.getOwnPropertyNames(w.properties).length === S;
|
|
3596
3596
|
}
|
|
3597
3597
|
function Tt(w) {
|
|
3598
|
-
return
|
|
3598
|
+
return xn(w);
|
|
3599
3599
|
}
|
|
3600
3600
|
function zt(w) {
|
|
3601
3601
|
return Ee(w, 0) || Ee(w, 1) && "description" in w.properties && o.TUnion(w.properties.description) && w.properties.description.anyOf.length === 2 && (o.TString(w.properties.description.anyOf[0]) && o.TUndefined(w.properties.description.anyOf[1]) || o.TString(w.properties.description.anyOf[1]) && o.TUndefined(w.properties.description.anyOf[0]));
|
|
@@ -3613,7 +3613,7 @@ var f = {};
|
|
|
3613
3613
|
return Ee(w, 0);
|
|
3614
3614
|
}
|
|
3615
3615
|
function fr(w) {
|
|
3616
|
-
return
|
|
3616
|
+
return xn(w);
|
|
3617
3617
|
}
|
|
3618
3618
|
function Ft(w) {
|
|
3619
3619
|
const S = e.Type.Number();
|
|
@@ -3622,7 +3622,7 @@ var f = {};
|
|
|
3622
3622
|
function jr(w) {
|
|
3623
3623
|
return Ee(w, 0);
|
|
3624
3624
|
}
|
|
3625
|
-
function
|
|
3625
|
+
function xn(w) {
|
|
3626
3626
|
const S = e.Type.Number();
|
|
3627
3627
|
return Ee(w, 0) || Ee(w, 1) && "length" in w.properties && y(me(w.properties.length, S)) === c.True;
|
|
3628
3628
|
}
|
|
@@ -3634,7 +3634,7 @@ var f = {};
|
|
|
3634
3634
|
return me(w, S) === c.False || o.TOptional(w) && !o.TOptional(S) ? c.False : c.True;
|
|
3635
3635
|
}
|
|
3636
3636
|
function mt(w, S) {
|
|
3637
|
-
return o.TUnknown(w) ? c.False : o.TAny(w) ? c.Union : o.TNever(w) || o.TLiteralString(w) && Tt(S) || o.TLiteralNumber(w) && Qt(S) || o.TLiteralBoolean(w) && Mt(S) || o.TSymbol(w) && zt(S) || o.TBigInt(w) && dr(S) || o.TString(w) && Tt(S) || o.TSymbol(w) && zt(S) || o.TNumber(w) && Qt(S) || o.TInteger(w) && Qt(S) || o.TBoolean(w) && Mt(S) || o.TUint8Array(w) && fr(S) || o.TDate(w) && mi(S) || o.TConstructor(w) && jr(S) || o.TFunction(w) && Ft(S) ? c.True : o.TRecord(w) && o.TString(
|
|
3637
|
+
return o.TUnknown(w) ? c.False : o.TAny(w) ? c.Union : o.TNever(w) || o.TLiteralString(w) && Tt(S) || o.TLiteralNumber(w) && Qt(S) || o.TLiteralBoolean(w) && Mt(S) || o.TSymbol(w) && zt(S) || o.TBigInt(w) && dr(S) || o.TString(w) && Tt(S) || o.TSymbol(w) && zt(S) || o.TNumber(w) && Qt(S) || o.TInteger(w) && Qt(S) || o.TBoolean(w) && Mt(S) || o.TUint8Array(w) && fr(S) || o.TDate(w) && mi(S) || o.TConstructor(w) && jr(S) || o.TFunction(w) && Ft(S) ? c.True : o.TRecord(w) && o.TString(jn(w)) ? S[e.Hint] === "Record" ? c.True : c.False : o.TRecord(w) && o.TNumber(jn(w)) ? Ee(S, 0) ? c.True : c.False : c.False;
|
|
3638
3638
|
}
|
|
3639
3639
|
function Dr(w, S) {
|
|
3640
3640
|
return C(S) ? g(w, S) : o.TRecord(S) ? Ot(w, S) : o.TObject(S) ? (() => {
|
|
@@ -3652,14 +3652,14 @@ var f = {};
|
|
|
3652
3652
|
function yn(w, S) {
|
|
3653
3653
|
return C(S) ? g(w, S) : o.TObject(S) && Lr(S) ? c.True : o.TPromise(S) ? y(me(w.item, S.item)) : c.False;
|
|
3654
3654
|
}
|
|
3655
|
-
function
|
|
3655
|
+
function jn(w) {
|
|
3656
3656
|
return e.PatternNumberExact in w.patternProperties ? e.Type.Number() : e.PatternStringExact in w.patternProperties ? e.Type.String() : k("Unknown record key pattern");
|
|
3657
3657
|
}
|
|
3658
|
-
function
|
|
3658
|
+
function Ln(w) {
|
|
3659
3659
|
return e.PatternNumberExact in w.patternProperties ? w.patternProperties[e.PatternNumberExact] : e.PatternStringExact in w.patternProperties ? w.patternProperties[e.PatternStringExact] : k("Unable to get record value schema");
|
|
3660
3660
|
}
|
|
3661
3661
|
function Ot(w, S) {
|
|
3662
|
-
const [be, ze] = [
|
|
3662
|
+
const [be, ze] = [jn(S), Ln(S)];
|
|
3663
3663
|
return o.TLiteralString(w) && o.TNumber(be) && y(me(w, ze)) === c.True ? c.True : o.TUint8Array(w) && o.TNumber(be) || o.TString(w) && o.TNumber(be) || o.TArray(w) && o.TNumber(be) ? me(w, ze) : o.TObject(w) ? (() => {
|
|
3664
3664
|
for (const ot of Object.getOwnPropertyNames(w.properties))
|
|
3665
3665
|
if (pr(ze, w.properties[ot]) === c.False)
|
|
@@ -3668,7 +3668,7 @@ var f = {};
|
|
|
3668
3668
|
})() : c.False;
|
|
3669
3669
|
}
|
|
3670
3670
|
function Qn(w, S) {
|
|
3671
|
-
return C(S) ? g(w, S) : o.TObject(S) ? mt(w, S) : o.TRecord(S) ? me(
|
|
3671
|
+
return C(S) ? g(w, S) : o.TObject(S) ? mt(w, S) : o.TRecord(S) ? me(Ln(w), Ln(S)) : c.False;
|
|
3672
3672
|
}
|
|
3673
3673
|
function Yn(w, S) {
|
|
3674
3674
|
return o.TLiteral(w) && i.IsString(w.const) || o.TString(w) ? c.True : c.False;
|
|
@@ -3689,7 +3689,7 @@ var f = {};
|
|
|
3689
3689
|
return o.TNever(w) ? c.True : o.TUnknown(w) ? c.False : o.TAny(w) ? c.Union : c.False;
|
|
3690
3690
|
}
|
|
3691
3691
|
function A(w, S) {
|
|
3692
|
-
return C(S) ? g(w, S) : o.TObject(S) &&
|
|
3692
|
+
return C(S) ? g(w, S) : o.TObject(S) && xn(S) || o.TArray(S) && O(w, S) ? c.True : o.TTuple(S) ? i.IsUndefined(w.items) && !i.IsUndefined(S.items) || !i.IsUndefined(w.items) && i.IsUndefined(S.items) ? c.False : i.IsUndefined(w.items) && !i.IsUndefined(S.items) || w.items.every((be, ze) => me(be, S.items[ze]) === c.True) ? c.True : c.False : c.False;
|
|
3693
3693
|
}
|
|
3694
3694
|
function x(w, S) {
|
|
3695
3695
|
return C(S) ? g(w, S) : o.TObject(S) ? mt(w, S) : o.TRecord(S) ? Ot(w, S) : o.TUint8Array(S) ? c.True : c.False;
|
|
@@ -3724,10 +3724,10 @@ var f = {};
|
|
|
3724
3724
|
)
|
|
3725
3725
|
);
|
|
3726
3726
|
}
|
|
3727
|
-
function
|
|
3727
|
+
function Ze(w, S) {
|
|
3728
3728
|
return me(w, S);
|
|
3729
3729
|
}
|
|
3730
|
-
N.Extends =
|
|
3730
|
+
N.Extends = Ze;
|
|
3731
3731
|
})(m || (e.TypeExtends = m = {}));
|
|
3732
3732
|
var a;
|
|
3733
3733
|
(function(N) {
|
|
@@ -4674,9 +4674,9 @@ const wo = "###_--_~=:;_JUMP", ua = "###_--_~=:;_RETURN", Lh = "###_--_~=:;_OK",
|
|
|
4674
4674
|
function Dh(e) {
|
|
4675
4675
|
return e === wo || e === ua || e === Lh || e === $o;
|
|
4676
4676
|
}
|
|
4677
|
-
const Rh = "3.11.
|
|
4677
|
+
const Rh = "3.11.1", Mh = /* @__PURE__ */ new Date("2024-07-28T18:35:22.907Z"), Ml = {
|
|
4678
4678
|
branch: "main",
|
|
4679
|
-
commit: "
|
|
4679
|
+
commit: "80d1d901533bea0114eb9810f95b9615ec764b43"
|
|
4680
4680
|
}, Fh = nr.WARN, Uh = 400, Co = 20, Go = "@empty", Fl = {
|
|
4681
4681
|
background: Go
|
|
4682
4682
|
}, Bh = f.Type.Optional(
|
|
@@ -4765,7 +4765,8 @@ const Rh = "3.11.0", Mh = /* @__PURE__ */ new Date("2024-07-13T12:57:33.109Z"),
|
|
|
4765
4765
|
disabled: f.Type.Optional(f.Type.Boolean())
|
|
4766
4766
|
}), Au = f.Type.Array(f.Type.String()), Kh = [], Gh = f.Type.Object({
|
|
4767
4767
|
startMenuScene: f.Type.Optional(f.Type.String()),
|
|
4768
|
-
gameScene: f.Type.Optional(f.Type.String())
|
|
4768
|
+
gameScene: f.Type.Optional(f.Type.String()),
|
|
4769
|
+
gameSplashScene: f.Type.Optional(f.Type.String())
|
|
4769
4770
|
}), Eu = f.Type.Object({
|
|
4770
4771
|
baseAssetsPath: f.Type.Optional(f.Type.String()),
|
|
4771
4772
|
baseDataPath: f.Type.Optional(f.Type.String()),
|
|
@@ -5952,7 +5953,7 @@ var Ld = new It("tag:yaml.org,2002:set", {
|
|
|
5952
5953
|
function Hl(e) {
|
|
5953
5954
|
return Object.prototype.toString.call(e);
|
|
5954
5955
|
}
|
|
5955
|
-
function
|
|
5956
|
+
function En(e) {
|
|
5956
5957
|
return e === 10 || e === 13;
|
|
5957
5958
|
}
|
|
5958
5959
|
function Cr(e) {
|
|
@@ -6071,7 +6072,7 @@ function wt(e, t, n) {
|
|
|
6071
6072
|
do
|
|
6072
6073
|
i = e.input.charCodeAt(++e.position);
|
|
6073
6074
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
6074
|
-
if (
|
|
6075
|
+
if (En(i))
|
|
6075
6076
|
for (ga(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
|
|
6076
6077
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
6077
6078
|
else
|
|
@@ -6101,7 +6102,7 @@ function Ug(e, t, n) {
|
|
|
6101
6102
|
} else {
|
|
6102
6103
|
if (e.position === e.lineStart && zo(e) || n && zr(p))
|
|
6103
6104
|
break;
|
|
6104
|
-
if (
|
|
6105
|
+
if (En(p))
|
|
6105
6106
|
if (u = e.line, c = e.lineStart, m = e.lineIndent, wt(e, !1, -1), e.lineIndent >= t) {
|
|
6106
6107
|
l = !0, p = e.input.charCodeAt(e.position);
|
|
6107
6108
|
continue;
|
|
@@ -6125,7 +6126,7 @@ function Bg(e, t) {
|
|
|
6125
6126
|
else
|
|
6126
6127
|
return !0;
|
|
6127
6128
|
else
|
|
6128
|
-
|
|
6129
|
+
En(n) ? (or(e, r, i, !0), va(e, wt(e, !1, t)), r = i = e.position) : e.position === e.lineStart && zo(e) ? Te(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
6129
6130
|
Te(e, "unexpected end of the stream within a single quoted scalar");
|
|
6130
6131
|
}
|
|
6131
6132
|
function Vg(e, t) {
|
|
@@ -6136,7 +6137,7 @@ function Vg(e, t) {
|
|
|
6136
6137
|
if (l === 34)
|
|
6137
6138
|
return or(e, n, e.position, !0), e.position++, !0;
|
|
6138
6139
|
if (l === 92) {
|
|
6139
|
-
if (or(e, n, e.position, !0), l = e.input.charCodeAt(++e.position),
|
|
6140
|
+
if (or(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), En(l))
|
|
6140
6141
|
wt(e, !1, t);
|
|
6141
6142
|
else if (l < 256 && Ud[l])
|
|
6142
6143
|
e.result += Bd[l], e.position++;
|
|
@@ -6148,7 +6149,7 @@ function Vg(e, t) {
|
|
|
6148
6149
|
Te(e, "unknown escape sequence");
|
|
6149
6150
|
n = r = e.position;
|
|
6150
6151
|
} else
|
|
6151
|
-
|
|
6152
|
+
En(l) ? (or(e, n, r, !0), va(e, wt(e, !1, t)), n = r = e.position) : e.position === e.lineStart && zo(e) ? Te(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
6152
6153
|
}
|
|
6153
6154
|
Te(e, "unexpected end of the stream within a double quoted scalar");
|
|
6154
6155
|
}
|
|
@@ -6189,12 +6190,12 @@ function Hg(e, t) {
|
|
|
6189
6190
|
if (a === 35)
|
|
6190
6191
|
do
|
|
6191
6192
|
a = e.input.charCodeAt(++e.position);
|
|
6192
|
-
while (!
|
|
6193
|
+
while (!En(a) && a !== 0);
|
|
6193
6194
|
}
|
|
6194
6195
|
for (; a !== 0; ) {
|
|
6195
6196
|
for (ga(e), e.lineIndent = 0, a = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && a === 32; )
|
|
6196
6197
|
e.lineIndent++, a = e.input.charCodeAt(++e.position);
|
|
6197
|
-
if (!o && e.lineIndent > l && (l = e.lineIndent),
|
|
6198
|
+
if (!o && e.lineIndent > l && (l = e.lineIndent), En(a)) {
|
|
6198
6199
|
u++;
|
|
6199
6200
|
continue;
|
|
6200
6201
|
}
|
|
@@ -6208,7 +6209,7 @@ function Hg(e, t) {
|
|
|
6208
6209
|
`, s ? 1 + u : u)) : c ? (c = !1, e.result += $t.repeat(`
|
|
6209
6210
|
`, u + 1)) : u === 0 ? s && (e.result += " ") : e.result += $t.repeat(`
|
|
6210
6211
|
`, u) : e.result += $t.repeat(`
|
|
6211
|
-
`, s ? 1 + u : u), s = !0, o = !0, u = 0, n = e.position; !
|
|
6212
|
+
`, s ? 1 + u : u), s = !0, o = !0, u = 0, n = e.position; !En(a) && a !== 0; )
|
|
6212
6213
|
a = e.input.charCodeAt(++e.position);
|
|
6213
6214
|
or(e, n, e.position, !1);
|
|
6214
6215
|
}
|
|
@@ -6336,10 +6337,10 @@ function Qg(e) {
|
|
|
6336
6337
|
if (o === 35) {
|
|
6337
6338
|
do
|
|
6338
6339
|
o = e.input.charCodeAt(++e.position);
|
|
6339
|
-
while (o !== 0 && !
|
|
6340
|
+
while (o !== 0 && !En(o));
|
|
6340
6341
|
break;
|
|
6341
6342
|
}
|
|
6342
|
-
if (
|
|
6343
|
+
if (En(o))
|
|
6343
6344
|
break;
|
|
6344
6345
|
for (n = e.position; o !== 0 && !Gt(o); )
|
|
6345
6346
|
o = e.input.charCodeAt(++e.position);
|
|
@@ -6896,7 +6897,7 @@ const Vt = bt("notifications", {
|
|
|
6896
6897
|
add(e) {
|
|
6897
6898
|
const t = this.getExistingItem(e.id);
|
|
6898
6899
|
t ? t.amount += e.amount : this.items[e.id] = { ...e };
|
|
6899
|
-
const n =
|
|
6900
|
+
const n = $n(e.id).name, r = e.amount > 1 ? `${n} x ${e.amount}` : n;
|
|
6900
6901
|
Vt().addNotification(`Received item: ${r}`);
|
|
6901
6902
|
},
|
|
6902
6903
|
enableInteraction(e) {
|
|
@@ -6927,7 +6928,7 @@ const Vt = bt("notifications", {
|
|
|
6927
6928
|
remove(e) {
|
|
6928
6929
|
const t = this.getExistingItem(e.id);
|
|
6929
6930
|
t && (t.amount -= e.amount, Vt().addNotification(
|
|
6930
|
-
`Lost item: ${
|
|
6931
|
+
`Lost item: ${$n(e.id).name} x ${e.amount}`
|
|
6931
6932
|
), t.amount <= 0 && this.deleteItem(e.id));
|
|
6932
6933
|
},
|
|
6933
6934
|
deleteItem(e) {
|
|
@@ -6935,12 +6936,12 @@ const Vt = bt("notifications", {
|
|
|
6935
6936
|
},
|
|
6936
6937
|
canUseItem(e) {
|
|
6937
6938
|
var n;
|
|
6938
|
-
const t =
|
|
6939
|
+
const t = $n(e.id);
|
|
6939
6940
|
return !!(t && t.onUse && !this.isInteractionTagBlocked(t.tag) && !((n = Ye().currentDialog) != null && n.choices));
|
|
6940
6941
|
},
|
|
6941
6942
|
useItem(e) {
|
|
6942
6943
|
let t = !1;
|
|
6943
|
-
const n =
|
|
6944
|
+
const n = $n(e.id);
|
|
6944
6945
|
if (e && this.canUseItem(e) && n) {
|
|
6945
6946
|
const r = n.onUse;
|
|
6946
6947
|
t = !0, Ir("onItemUsed"), r.action === "jump" ? Ie().jumpToLabel(r.label) : r.action === "run" ? Ie().runThenGoBackToPreviousDialog(r.label, !0) : (t = !1, de(`Unknown action ${r.action}`));
|
|
@@ -7442,7 +7443,7 @@ function lf(e, t, n, r) {
|
|
|
7442
7443
|
const i = e / n, s = t / r;
|
|
7443
7444
|
return Math.min(i, s);
|
|
7444
7445
|
}
|
|
7445
|
-
const
|
|
7446
|
+
const In = bt("settings", {
|
|
7446
7447
|
state: () => ({
|
|
7447
7448
|
baseSettings: {
|
|
7448
7449
|
textSpeed: 30,
|
|
@@ -7588,7 +7589,7 @@ const gt = bt("rendering", {
|
|
|
7588
7589
|
this.dialogPanelMode = "auto";
|
|
7589
7590
|
},
|
|
7590
7591
|
updateScreenSize(e, t) {
|
|
7591
|
-
this.screenHeight = t, this.screenWidth = e, e < ue().layout.verticalLayoutThreshold ? (this.layoutMode = "vertical", document.querySelector("html").style.fontSize = `${
|
|
7592
|
+
this.screenHeight = t, this.screenWidth = e, e < ue().layout.verticalLayoutThreshold ? (this.layoutMode = "vertical", document.querySelector("html").style.fontSize = `${In().baseSettings.fontSize}px` ?? "40px") : (this.layoutMode = "horizontal", document.querySelector("html").style.fontSize = `${In().baseSettings.fontSize}px` ?? "16px");
|
|
7592
7593
|
},
|
|
7593
7594
|
setContainer(e) {
|
|
7594
7595
|
this.containerElement = e, this.resizeObserver && this.resizeObserver.disconnect(), this.resizeObserver = new ResizeObserver(
|
|
@@ -8067,7 +8068,7 @@ const er = new y_(), jt = bt("menu", {
|
|
|
8067
8068
|
}
|
|
8068
8069
|
]
|
|
8069
8070
|
}
|
|
8070
|
-
],
|
|
8071
|
+
], Xe = bt("inputs", {
|
|
8071
8072
|
state: () => ({
|
|
8072
8073
|
inputStack: [],
|
|
8073
8074
|
baseInputListener: null,
|
|
@@ -8156,12 +8157,12 @@ const er = new y_(), jt = bt("menu", {
|
|
|
8156
8157
|
}), Jt = bt("scenes-store", {
|
|
8157
8158
|
state: () => ({
|
|
8158
8159
|
scenes: {},
|
|
8159
|
-
activeScene:
|
|
8160
|
+
activeScene: bn.EngineSplash,
|
|
8160
8161
|
currentOptions: {}
|
|
8161
8162
|
}),
|
|
8162
8163
|
getters: {
|
|
8163
8164
|
isPlaying(e) {
|
|
8164
|
-
return e.activeScene !==
|
|
8165
|
+
return e.activeScene !== bn.EngineSplash && e.activeScene !== bn.GameSplash && e.activeScene !== bn.StartMenu;
|
|
8165
8166
|
}
|
|
8166
8167
|
},
|
|
8167
8168
|
actions: {
|
|
@@ -8183,17 +8184,21 @@ const er = new y_(), jt = bt("menu", {
|
|
|
8183
8184
|
return this.scenes[e];
|
|
8184
8185
|
},
|
|
8185
8186
|
onEngineSplashFinished() {
|
|
8186
|
-
this.
|
|
8187
|
+
this.goToGameSplashScene();
|
|
8187
8188
|
},
|
|
8188
8189
|
finishedScene(e) {
|
|
8189
8190
|
this.scenes[e].onFinished && this.scenes[e].onFinished();
|
|
8190
8191
|
},
|
|
8192
|
+
goToGameSplashScene() {
|
|
8193
|
+
let e = bn.GameSplash;
|
|
8194
|
+
ue().scenes.gameSplashScene && (e = ue().scenes.gameSplashScene), this.changeScene(e);
|
|
8195
|
+
},
|
|
8191
8196
|
goToStartMenuScene() {
|
|
8192
|
-
let e =
|
|
8197
|
+
let e = bn.StartMenu;
|
|
8193
8198
|
ue().scenes.startMenuScene && (e = ue().scenes.startMenuScene), this.changeScene(e);
|
|
8194
8199
|
},
|
|
8195
8200
|
goToGameScene() {
|
|
8196
|
-
let e =
|
|
8201
|
+
let e = bn.Playing;
|
|
8197
8202
|
ue().scenes.gameScene && (e = ue().scenes.gameScene), this.changeScene(e);
|
|
8198
8203
|
},
|
|
8199
8204
|
addNewScene(e) {
|
|
@@ -8225,7 +8230,7 @@ const er = new y_(), jt = bt("menu", {
|
|
|
8225
8230
|
Jt().goToStartMenuScene();
|
|
8226
8231
|
}
|
|
8227
8232
|
return ft(() => {
|
|
8228
|
-
t.value =
|
|
8233
|
+
t.value = Xe().registerInputListener("game-splash", {
|
|
8229
8234
|
continue: {
|
|
8230
8235
|
press: () => {
|
|
8231
8236
|
l();
|
|
@@ -8238,7 +8243,7 @@ const er = new y_(), jt = bt("menu", {
|
|
|
8238
8243
|
}
|
|
8239
8244
|
}), n.options.debug && l();
|
|
8240
8245
|
}), _t(() => {
|
|
8241
|
-
t.value &&
|
|
8246
|
+
t.value && Xe().unregisterInputListener(t.value);
|
|
8242
8247
|
}), (u, c) => (D(), J("div", v_, [
|
|
8243
8248
|
U("div", __, [
|
|
8244
8249
|
U("h1", b_, ye(o.value), 1),
|
|
@@ -8345,7 +8350,7 @@ function zn(e) {
|
|
|
8345
8350
|
}
|
|
8346
8351
|
return _t(() => {
|
|
8347
8352
|
B();
|
|
8348
|
-
}),
|
|
8353
|
+
}), kn(
|
|
8349
8354
|
() => {
|
|
8350
8355
|
var Y;
|
|
8351
8356
|
return (Y = e.elements) == null ? void 0 : Y.value;
|
|
@@ -8432,7 +8437,7 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8432
8437
|
function j() {
|
|
8433
8438
|
i.value.disable(), i.value = null;
|
|
8434
8439
|
}
|
|
8435
|
-
return
|
|
8440
|
+
return kn(
|
|
8436
8441
|
() => r.selected,
|
|
8437
8442
|
(B, L) => {
|
|
8438
8443
|
B && !i.value && E(), !B && i.value && j();
|
|
@@ -8504,7 +8509,7 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8504
8509
|
emits: ["choice"],
|
|
8505
8510
|
setup(e, { emit: t }) {
|
|
8506
8511
|
const n = le(
|
|
8507
|
-
|
|
8512
|
+
Xe().registerInputListener("yes-no", {
|
|
8508
8513
|
cancel: {
|
|
8509
8514
|
press: () => {
|
|
8510
8515
|
o(!1);
|
|
@@ -8531,15 +8536,15 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8531
8536
|
}
|
|
8532
8537
|
return ft(() => {
|
|
8533
8538
|
}), _t(() => {
|
|
8534
|
-
n.value &&
|
|
8539
|
+
n.value && Xe().unregisterInputListener(n.value);
|
|
8535
8540
|
}), (l, u) => (D(), Ce(cr, {
|
|
8536
8541
|
onClose: u[2] || (u[2] = () => o(!1)),
|
|
8537
8542
|
containerCssClass: "yes-no-modal"
|
|
8538
8543
|
}, {
|
|
8539
|
-
header:
|
|
8544
|
+
header: et(() => [
|
|
8540
8545
|
P_
|
|
8541
8546
|
]),
|
|
8542
|
-
body:
|
|
8547
|
+
body: et(() => [
|
|
8543
8548
|
U("h3", null, ye(e.prompt), 1),
|
|
8544
8549
|
U("div", {
|
|
8545
8550
|
class: "flex justify-center",
|
|
@@ -8570,7 +8575,7 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8570
8575
|
emits: ["chosen", "close"],
|
|
8571
8576
|
setup(e, { emit: t }) {
|
|
8572
8577
|
const n = e, r = le(
|
|
8573
|
-
|
|
8578
|
+
Xe().registerInputListener("save-slots", {
|
|
8574
8579
|
cancel: {
|
|
8575
8580
|
press: () => {
|
|
8576
8581
|
Z();
|
|
@@ -8639,7 +8644,7 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8639
8644
|
ft(() => {
|
|
8640
8645
|
F();
|
|
8641
8646
|
}), _t(() => {
|
|
8642
|
-
p.value && (p.value.disable(), p.value = null), r.value &&
|
|
8647
|
+
p.value && (p.value.disable(), p.value = null), r.value && Xe().unregisterInputListener(r.value);
|
|
8643
8648
|
});
|
|
8644
8649
|
function B(z) {
|
|
8645
8650
|
j("chosen", {
|
|
@@ -8676,10 +8681,10 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8676
8681
|
containerCssClass: "save-modal",
|
|
8677
8682
|
cantClose: !1
|
|
8678
8683
|
}, {
|
|
8679
|
-
header:
|
|
8684
|
+
header: et(() => [
|
|
8680
8685
|
U("h3", N_, ye(z.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
|
|
8681
8686
|
]),
|
|
8682
|
-
body:
|
|
8687
|
+
body: et(() => [
|
|
8683
8688
|
T.value === "manual" ? (D(), J("div", x_, [
|
|
8684
8689
|
U("div", j_, [
|
|
8685
8690
|
L_,
|
|
@@ -8687,7 +8692,7 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8687
8692
|
name: "list",
|
|
8688
8693
|
tag: "div"
|
|
8689
8694
|
}, {
|
|
8690
|
-
default:
|
|
8695
|
+
default: et(() => [
|
|
8691
8696
|
(D(!0), J(He, null, Je(o.value, (X) => (D(), Ce(ms, {
|
|
8692
8697
|
key: X.id,
|
|
8693
8698
|
saveSlot: X,
|
|
@@ -8710,7 +8715,7 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8710
8715
|
name: "list",
|
|
8711
8716
|
tag: "div"
|
|
8712
8717
|
}, {
|
|
8713
|
-
default:
|
|
8718
|
+
default: et(() => [
|
|
8714
8719
|
(D(!0), J(He, null, Je(l.value, (X) => (D(), Ce(ms, {
|
|
8715
8720
|
key: X.id,
|
|
8716
8721
|
saveSlot: X,
|
|
@@ -8734,7 +8739,7 @@ const T_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8734
8739
|
name: "list",
|
|
8735
8740
|
tag: "div"
|
|
8736
8741
|
}, {
|
|
8737
|
-
default:
|
|
8742
|
+
default: et(() => [
|
|
8738
8743
|
(D(!0), J(He, null, Je(s, (X) => (D(), Ce(ms, {
|
|
8739
8744
|
key: X.id,
|
|
8740
8745
|
saveSlot: X,
|
|
@@ -8855,7 +8860,7 @@ const K_ = { id: "game-menu" }, G_ = {
|
|
|
8855
8860
|
__name: "StartMenu",
|
|
8856
8861
|
setup(e) {
|
|
8857
8862
|
const t = le(
|
|
8858
|
-
|
|
8863
|
+
Xe().registerInputListener("start-menu", {})
|
|
8859
8864
|
), n = le([]), r = le(null), i = le(!1), s = le(!1), o = le(null), l = le(null), u = le(!1), c = le(!1), m = le(null), a = wa(), d = le(!1), p = le(null), h = V(() => a.buttons), v = zn({
|
|
8860
8865
|
mode: "list",
|
|
8861
8866
|
container: r,
|
|
@@ -8997,7 +9002,7 @@ const K_ = { id: "game-menu" }, G_ = {
|
|
|
8997
9002
|
return { id: X, title: re, cssClass: Pe };
|
|
8998
9003
|
}
|
|
8999
9004
|
_t(() => {
|
|
9000
|
-
if (t.value &&
|
|
9005
|
+
if (t.value && Xe().unregisterInputListener(t.value), m.value && mn.off("debouncedKeydown", m.value), typeof p.value == "number") {
|
|
9001
9006
|
const X = rn().options.defaultMusic;
|
|
9002
9007
|
fh(X, p.value);
|
|
9003
9008
|
}
|
|
@@ -9040,10 +9045,10 @@ const K_ = { id: "game-menu" }, G_ = {
|
|
|
9040
9045
|
onClose: F,
|
|
9041
9046
|
class: Ge(`start-menu-popup-${d.value.id}`)
|
|
9042
9047
|
}, {
|
|
9043
|
-
header:
|
|
9048
|
+
header: et(() => [
|
|
9044
9049
|
U("h3", Q_, ye(d.value.text), 1)
|
|
9045
9050
|
]),
|
|
9046
|
-
body:
|
|
9051
|
+
body: et(() => [
|
|
9047
9052
|
d.value.popupComponent ? (D(), Ce(qo(d.value.popupComponent.component), {
|
|
9048
9053
|
key: 0,
|
|
9049
9054
|
onClose: F
|
|
@@ -9316,15 +9321,15 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9316
9321
|
Q(), ke().playerAnswered(M);
|
|
9317
9322
|
}
|
|
9318
9323
|
function z() {
|
|
9319
|
-
p.options.textField && (
|
|
9320
|
-
ne.value && (d.value =
|
|
9324
|
+
p.options.textField && (Xe().startTyping(), s.value = setTimeout(() => {
|
|
9325
|
+
ne.value && (d.value = Xe().registerInputListener(
|
|
9321
9326
|
"text-field-input-grabber",
|
|
9322
9327
|
{}
|
|
9323
9328
|
), a.value && a.value.focus());
|
|
9324
9329
|
}, 100));
|
|
9325
9330
|
}
|
|
9326
9331
|
function Q() {
|
|
9327
|
-
|
|
9332
|
+
Xe().stopTyping(), d.value && (Xe().unregisterInputListener(d.value), d.value = null);
|
|
9328
9333
|
}
|
|
9329
9334
|
function X(M, ee) {
|
|
9330
9335
|
const he = p.options.text.substring(M, ee);
|
|
@@ -9412,14 +9417,14 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9412
9417
|
if (p.options.choices)
|
|
9413
9418
|
return p.options.choices;
|
|
9414
9419
|
}), H = V(() => Ye().playMode === "skip"), ie = V(() => Ye().playMode === "auto"), ne = V(() => p.active && l.value && !i.value && !m.value && !o.value && p.options.interactive && !je.value), oe = ke(), je = V(() => oe.paused);
|
|
9415
|
-
return
|
|
9420
|
+
return kn(
|
|
9416
9421
|
() => p.options,
|
|
9417
9422
|
(M, ee) => {
|
|
9418
9423
|
!ee.old && M.old && o && pt({ unmounted: !0 });
|
|
9419
9424
|
}
|
|
9420
|
-
),
|
|
9425
|
+
), kn(H, (M, ee) => {
|
|
9421
9426
|
M && !ee && Me();
|
|
9422
|
-
}),
|
|
9427
|
+
}), kn(ie, (M, ee) => {
|
|
9423
9428
|
M && !ee && dt();
|
|
9424
9429
|
}), t({
|
|
9425
9430
|
keyboardEvent: _
|
|
@@ -9510,7 +9515,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9510
9515
|
}), vb = /* @__PURE__ */ U("div", { class: "anchor" }, null, -1), gf = /* @__PURE__ */ $e({
|
|
9511
9516
|
__name: "game-dialog",
|
|
9512
9517
|
setup(e) {
|
|
9513
|
-
const t = V(() => gt().layoutMode), n = V(() =>
|
|
9518
|
+
const t = V(() => gt().layoutMode), n = V(() => Xe().inGameInputListener), r = le(ke().inScript), i = le(null), s = gt(), o = Ie(), l = V(() => o.stack), u = Ye(), c = V(() => u.dialog), m = le(null), a = le(null), d = le(null), p = V(() => {
|
|
9514
9519
|
let Q = "0px";
|
|
9515
9520
|
const X = ue().layout.dialogBottomPadding;
|
|
9516
9521
|
return typeof X == "number" ? Q = `${X}px` : typeof X == "string" && (Q = X), {
|
|
@@ -9545,7 +9550,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9545
9550
|
if (Z_(Q))
|
|
9546
9551
|
return Q;
|
|
9547
9552
|
}), B = V(() => s.dialogWidth), L = V(() => ke().inScript);
|
|
9548
|
-
|
|
9553
|
+
kn(L, (Q) => {
|
|
9549
9554
|
Q ? r.value = !0 : Ye().playMode !== "normal" ? (Ye().playMode === "skip" && (Ye().playMode = "normal"), i.value = setTimeout(() => {
|
|
9550
9555
|
r.value = !1;
|
|
9551
9556
|
}, 500)) : r.value = !1;
|
|
@@ -9612,7 +9617,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9612
9617
|
function z(Q) {
|
|
9613
9618
|
return Q === u.dialog.length - 1 && l.value.length > 0;
|
|
9614
9619
|
}
|
|
9615
|
-
return
|
|
9620
|
+
return kn(c.value, (Q) => {
|
|
9616
9621
|
if (m.value) {
|
|
9617
9622
|
const X = m.value;
|
|
9618
9623
|
X.scrollTop = X.scrollHeight + 1e8;
|
|
@@ -9620,7 +9625,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9620
9625
|
}), (Q, X) => (D(), J(He, null, [
|
|
9621
9626
|
ct(gb),
|
|
9622
9627
|
ct(ji, { name: "fade" }, {
|
|
9623
|
-
default:
|
|
9628
|
+
default: et(() => [
|
|
9624
9629
|
(j.value || F.value) && it(s).showDialog ? (D(), Ce(rb, {
|
|
9625
9630
|
key: 0,
|
|
9626
9631
|
picture: j.value,
|
|
@@ -9632,7 +9637,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9632
9637
|
_: 1
|
|
9633
9638
|
}),
|
|
9634
9639
|
ct(ji, { name: "dialog-transition" }, {
|
|
9635
|
-
default:
|
|
9640
|
+
default: et(() => [
|
|
9636
9641
|
it(s).showDialog ? (D(), J("div", {
|
|
9637
9642
|
key: 0,
|
|
9638
9643
|
class: "dialog override",
|
|
@@ -9646,7 +9651,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9646
9651
|
class: "dialog-container w-full override",
|
|
9647
9652
|
style: Qe(p.value)
|
|
9648
9653
|
}, {
|
|
9649
|
-
default:
|
|
9654
|
+
default: et(() => [
|
|
9650
9655
|
(D(!0), J(He, null, Je(c.value, (re, Pe) => (D(), Ce(hb, {
|
|
9651
9656
|
ref_for: !0,
|
|
9652
9657
|
ref: (Me) => a.value = Me,
|
|
@@ -9726,7 +9731,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9726
9731
|
emits: ["tab-change", "close"],
|
|
9727
9732
|
setup(e, { emit: t }) {
|
|
9728
9733
|
const n = le(
|
|
9729
|
-
|
|
9734
|
+
Xe().registerInputListener("tabs-controller", {
|
|
9730
9735
|
cancel: {
|
|
9731
9736
|
press: () => {
|
|
9732
9737
|
r("close");
|
|
@@ -9759,7 +9764,7 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9759
9764
|
}
|
|
9760
9765
|
const l = V(() => i.tabs[s.value]);
|
|
9761
9766
|
return _t(() => {
|
|
9762
|
-
n.value && (
|
|
9767
|
+
n.value && (Xe().unregisterInputListener(n.value), n.value = null);
|
|
9763
9768
|
}), (u, c) => (D(), J("div", Sb, [
|
|
9764
9769
|
u.tabs.length > 1 ? (D(), J("div", wb, [
|
|
9765
9770
|
(D(!0), J(He, null, Je(u.tabs, (m, a) => (D(), Ce(vf, {
|
|
@@ -9823,13 +9828,13 @@ const lb = ["innerHTML"], cb = ["innerHTML"], ub = ["innerHTML"], db = { key: 1
|
|
|
9823
9828
|
containerCssClass: { [s.value.cssClass]: !0, "menu-modal": !0 },
|
|
9824
9829
|
onClose: l
|
|
9825
9830
|
}, {
|
|
9826
|
-
header:
|
|
9831
|
+
header: et(() => {
|
|
9827
9832
|
var d;
|
|
9828
9833
|
return [
|
|
9829
9834
|
U("h3", Pb, ye(((d = it(t).tab) == null ? void 0 : d.text) ?? s.value.label), 1)
|
|
9830
9835
|
];
|
|
9831
9836
|
}),
|
|
9832
|
-
body:
|
|
9837
|
+
body: et(() => [
|
|
9833
9838
|
ct(Ab, {
|
|
9834
9839
|
onTabChange: u,
|
|
9835
9840
|
onClose: c,
|
|
@@ -9859,9 +9864,9 @@ function Nb(e, t, n) {
|
|
|
9859
9864
|
};
|
|
9860
9865
|
}
|
|
9861
9866
|
function xb(e, t, n) {
|
|
9862
|
-
const r = Or(e), i = pn().getButtonState(e);
|
|
9867
|
+
const r = Or(e), i = pn().getButtonState(e), s = Xe().inputMode;
|
|
9863
9868
|
return {
|
|
9864
|
-
selected: t,
|
|
9869
|
+
selected: t && s === "gamepad",
|
|
9865
9870
|
clickable: pn().isButtonInteractible(e),
|
|
9866
9871
|
viewportClickable: Yo(r),
|
|
9867
9872
|
transitioning: n,
|
|
@@ -10111,7 +10116,7 @@ function sc(e, t, n) {
|
|
|
10111
10116
|
const Tf = /* @__PURE__ */ $e({
|
|
10112
10117
|
__name: "screens",
|
|
10113
10118
|
setup(e) {
|
|
10114
|
-
const t = V(() =>
|
|
10119
|
+
const t = V(() => Xe().inGameInputListener), n = ke(), r = pn(), i = on(), s = le(0), o = V(() => r.nonEmptyLayers), l = V(() => {
|
|
10115
10120
|
const h = [];
|
|
10116
10121
|
return o.value.reduce((v, T, _) => {
|
|
10117
10122
|
const j = eo(T.screen).buttons;
|
|
@@ -10201,7 +10206,7 @@ const Tf = /* @__PURE__ */ $e({
|
|
|
10201
10206
|
delay: T.transition.delay,
|
|
10202
10207
|
onComplete: () => d(_)
|
|
10203
10208
|
}, {
|
|
10204
|
-
oldElement:
|
|
10209
|
+
oldElement: et(() => [
|
|
10205
10210
|
T.transition.oldScreen ? (D(), Ce(ys, {
|
|
10206
10211
|
key: 0,
|
|
10207
10212
|
layer: T.transition.oldScreen,
|
|
@@ -10209,7 +10214,7 @@ const Tf = /* @__PURE__ */ $e({
|
|
|
10209
10214
|
transitioning: !0
|
|
10210
10215
|
}, null, 8, ["layer", "layerIndex"])) : Oe("", !0)
|
|
10211
10216
|
]),
|
|
10212
|
-
newElement:
|
|
10217
|
+
newElement: et(() => [
|
|
10213
10218
|
T.screen ? (D(), Ce(ys, {
|
|
10214
10219
|
key: 0,
|
|
10215
10220
|
layer: T.screen,
|
|
@@ -10347,7 +10352,7 @@ function Yb(e, t, n, r, i, s) {
|
|
|
10347
10352
|
const Sf = /* @__PURE__ */ hn(Gb, [["render", Yb]]), wf = /* @__PURE__ */ $e({
|
|
10348
10353
|
__name: "in-game",
|
|
10349
10354
|
setup(e) {
|
|
10350
|
-
const t =
|
|
10355
|
+
const t = Xe(), n = V(() => t.inGameInputListener), r = ke(), i = gt(), s = V(() => i.layoutMode), o = V(() => r.saving), l = le(null), u = Ye(), c = le(null), m = V(
|
|
10351
10356
|
() => o.value && !o.value.withPrompt || o.value && l.value
|
|
10352
10357
|
), a = V(() => {
|
|
10353
10358
|
let v = "row";
|
|
@@ -10406,7 +10411,7 @@ const Sf = /* @__PURE__ */ hn(Gb, [["render", Yb]]), wf = /* @__PURE__ */ $e({
|
|
|
10406
10411
|
setup(e) {
|
|
10407
10412
|
const t = e, n = le(null);
|
|
10408
10413
|
function r() {
|
|
10409
|
-
n.value = null, Jt().changeScene(
|
|
10414
|
+
n.value = null, Jt().changeScene(bn.Playing), Ie().jumpToLabel(t.options.next_label);
|
|
10410
10415
|
}
|
|
10411
10416
|
return ft(() => {
|
|
10412
10417
|
n.value = setTimeout(r, t.options.duration ?? 2e3);
|
|
@@ -10425,7 +10430,7 @@ const Sf = /* @__PURE__ */ hn(Gb, [["render", Yb]]), wf = /* @__PURE__ */ $e({
|
|
|
10425
10430
|
]));
|
|
10426
10431
|
}
|
|
10427
10432
|
});
|
|
10428
|
-
var
|
|
10433
|
+
var bn = /* @__PURE__ */ ((e) => (e.EngineSplash = "engine-splash", e.GameSplash = "game-splash", e.StartMenu = "start-menu", e.Playing = "playing", e.ChapterTitle = "chapter-title", e))(bn || {});
|
|
10429
10434
|
const ac = {
|
|
10430
10435
|
"engine-splash": {
|
|
10431
10436
|
id: "engine-splash",
|
|
@@ -10453,9 +10458,9 @@ const ac = {
|
|
|
10453
10458
|
props: {}
|
|
10454
10459
|
}
|
|
10455
10460
|
};
|
|
10456
|
-
let
|
|
10461
|
+
let Pn = {};
|
|
10457
10462
|
function tT(e) {
|
|
10458
|
-
|
|
10463
|
+
Pn = e;
|
|
10459
10464
|
}
|
|
10460
10465
|
function nT() {
|
|
10461
10466
|
ac["engine-splash"].onFinished = () => {
|
|
@@ -10463,11 +10468,11 @@ function nT() {
|
|
|
10463
10468
|
}, Jt().scenes = ac;
|
|
10464
10469
|
}
|
|
10465
10470
|
function rT() {
|
|
10466
|
-
return
|
|
10471
|
+
return Pn;
|
|
10467
10472
|
}
|
|
10468
10473
|
function $f() {
|
|
10469
|
-
for (const e in
|
|
10470
|
-
const t =
|
|
10474
|
+
for (const e in Pn) {
|
|
10475
|
+
const t = Pn[e], n = t.store();
|
|
10471
10476
|
let r;
|
|
10472
10477
|
o_(t) && (r = tt()[t.config]), n.reset && !t.avoidReset && n.reset(r);
|
|
10473
10478
|
}
|
|
@@ -10477,8 +10482,8 @@ function $f() {
|
|
|
10477
10482
|
}
|
|
10478
10483
|
function iT() {
|
|
10479
10484
|
const e = {}, t = {};
|
|
10480
|
-
for (const n in
|
|
10481
|
-
const r =
|
|
10485
|
+
for (const n in Pn) {
|
|
10486
|
+
const r = Pn[n];
|
|
10482
10487
|
if (of(r)) {
|
|
10483
10488
|
const i = r.store();
|
|
10484
10489
|
i.generateSaveData ? e[r.save] = i.generateSaveData() : de(
|
|
@@ -10505,8 +10510,8 @@ function iT() {
|
|
|
10505
10510
|
};
|
|
10506
10511
|
}
|
|
10507
10512
|
function oT(e) {
|
|
10508
|
-
for (const t in
|
|
10509
|
-
const n =
|
|
10513
|
+
for (const t in Pn) {
|
|
10514
|
+
const n = Pn[t];
|
|
10510
10515
|
if (of(n)) {
|
|
10511
10516
|
const r = n.store();
|
|
10512
10517
|
r.loadSaveData ? r.loadSaveData(e[n.save]) : de(
|
|
@@ -10521,8 +10526,8 @@ function oT(e) {
|
|
|
10521
10526
|
});
|
|
10522
10527
|
}
|
|
10523
10528
|
function Cf(e) {
|
|
10524
|
-
for (const t in
|
|
10525
|
-
const n =
|
|
10529
|
+
for (const t in Pn) {
|
|
10530
|
+
const n = Pn[t];
|
|
10526
10531
|
if (sf(n)) {
|
|
10527
10532
|
const r = n.store();
|
|
10528
10533
|
r.loadGlobalSaveData ? r.loadGlobalSaveData(e[n.globalSave]) : de(
|
|
@@ -11149,7 +11154,7 @@ class _T {
|
|
|
11149
11154
|
for (const t of this.plugins)
|
|
11150
11155
|
if (t.customSettings)
|
|
11151
11156
|
for (const n in t.customSettings)
|
|
11152
|
-
|
|
11157
|
+
In().addCustomSetting(n, t.customSettings[n]);
|
|
11153
11158
|
}
|
|
11154
11159
|
}
|
|
11155
11160
|
const Re = new _T();
|
|
@@ -12388,8 +12393,8 @@ var We = {};
|
|
|
12388
12393
|
}
|
|
12389
12394
|
e.checkStrictMode = B;
|
|
12390
12395
|
})(We);
|
|
12391
|
-
var
|
|
12392
|
-
Object.defineProperty(
|
|
12396
|
+
var Nn = {};
|
|
12397
|
+
Object.defineProperty(Nn, "__esModule", { value: !0 });
|
|
12393
12398
|
const Nt = Ue, $T = {
|
|
12394
12399
|
// validation function arguments
|
|
12395
12400
|
data: new Nt.Name("data"),
|
|
@@ -12413,10 +12418,10 @@ const Nt = Ue, $T = {
|
|
|
12413
12418
|
jsonLen: new Nt.Name("jsonLen"),
|
|
12414
12419
|
jsonPart: new Nt.Name("jsonPart")
|
|
12415
12420
|
};
|
|
12416
|
-
|
|
12421
|
+
Nn.default = $T;
|
|
12417
12422
|
(function(e) {
|
|
12418
12423
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
12419
|
-
const t = Ue, n = We, r =
|
|
12424
|
+
const t = Ue, n = We, r = Nn;
|
|
12420
12425
|
e.keywordError = {
|
|
12421
12426
|
message: ({ keyword: T }) => (0, t.str)`must pass "${T}" keyword validation`
|
|
12422
12427
|
}, e.keyword$DataError = {
|
|
@@ -12488,7 +12493,7 @@ Pn.default = $T;
|
|
|
12488
12493
|
})(zi);
|
|
12489
12494
|
Object.defineProperty(si, "__esModule", { value: !0 });
|
|
12490
12495
|
si.boolOrEmptySchema = si.topBoolOrEmptySchema = void 0;
|
|
12491
|
-
const CT = zi, kT = Ue, OT =
|
|
12496
|
+
const CT = zi, kT = Ue, OT = Nn, AT = {
|
|
12492
12497
|
message: "boolean schema is false"
|
|
12493
12498
|
};
|
|
12494
12499
|
function ET(e) {
|
|
@@ -12725,10 +12730,10 @@ function uc(e, t, n) {
|
|
|
12725
12730
|
let u = (0, Vr._)`${l} === undefined`;
|
|
12726
12731
|
o.useDefaults === "empty" && (u = (0, Vr._)`${u} || ${l} === null || ${l} === ""`), r.if(u, (0, Vr._)`${l} = ${(0, Vr.stringify)(n)}`);
|
|
12727
12732
|
}
|
|
12728
|
-
var
|
|
12733
|
+
var wn = {}, Fe = {};
|
|
12729
12734
|
Object.defineProperty(Fe, "__esModule", { value: !0 });
|
|
12730
12735
|
Fe.validateUnion = Fe.validateArray = Fe.usePattern = Fe.callValidateCode = Fe.schemaProperties = Fe.allSchemaProperties = Fe.noPropertyInData = Fe.propertyInData = Fe.isOwnProperty = Fe.hasPropFunc = Fe.reportMissingProp = Fe.checkMissingProp = Fe.checkReportMissingProp = void 0;
|
|
12731
|
-
const at = Ue, Oa = We, Xn =
|
|
12736
|
+
const at = Ue, Oa = We, Xn = Nn, MT = We;
|
|
12732
12737
|
function FT(e, t) {
|
|
12733
12738
|
const { gen: n, data: r, it: i } = e;
|
|
12734
12739
|
n.if(Ea(n, r, t, i.opts.ownProperties), () => {
|
|
@@ -12832,9 +12837,9 @@ function zT(e) {
|
|
|
12832
12837
|
})), e.result(o, () => e.reset(), () => e.error(!0));
|
|
12833
12838
|
}
|
|
12834
12839
|
Fe.validateUnion = zT;
|
|
12835
|
-
Object.defineProperty(
|
|
12836
|
-
|
|
12837
|
-
const Ut = Ue, _r =
|
|
12840
|
+
Object.defineProperty(wn, "__esModule", { value: !0 });
|
|
12841
|
+
wn.validateKeywordUsage = wn.validSchemaType = wn.funcKeywordCode = wn.macroKeywordCode = void 0;
|
|
12842
|
+
const Ut = Ue, _r = Nn, QT = Fe, YT = zi;
|
|
12838
12843
|
function JT(e, t) {
|
|
12839
12844
|
const { gen: n, keyword: r, schema: i, parentSchema: s, it: o } = e, l = t.macro.call(o.self, i, s, o), u = Kf(n, r, l);
|
|
12840
12845
|
o.opts.validateSchema !== !1 && o.self.validateSchema(l, !0);
|
|
@@ -12847,7 +12852,7 @@ function JT(e, t) {
|
|
|
12847
12852
|
compositeRule: !0
|
|
12848
12853
|
}, c), e.pass(c, () => e.error(!0));
|
|
12849
12854
|
}
|
|
12850
|
-
|
|
12855
|
+
wn.macroKeywordCode = JT;
|
|
12851
12856
|
function XT(e, t) {
|
|
12852
12857
|
var n;
|
|
12853
12858
|
const { gen: r, keyword: i, schema: s, parentSchema: o, $data: l, it: u } = e;
|
|
@@ -12879,7 +12884,7 @@ function XT(e, t) {
|
|
|
12879
12884
|
r.if((0, Ut.not)((E = t.valid) !== null && E !== void 0 ? E : a), _);
|
|
12880
12885
|
}
|
|
12881
12886
|
}
|
|
12882
|
-
|
|
12887
|
+
wn.funcKeywordCode = XT;
|
|
12883
12888
|
function dc(e) {
|
|
12884
12889
|
const { gen: t, data: n, it: r } = e;
|
|
12885
12890
|
t.if(r.parentData, () => t.assign(n, (0, Ut._)`${r.parentData}[${r.parentDataProperty}]`));
|
|
@@ -12902,7 +12907,7 @@ function Kf(e, t, n) {
|
|
|
12902
12907
|
function t0(e, t, n = !1) {
|
|
12903
12908
|
return !t.length || t.some((r) => r === "array" ? Array.isArray(e) : r === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == r || n && typeof e > "u");
|
|
12904
12909
|
}
|
|
12905
|
-
|
|
12910
|
+
wn.validSchemaType = t0;
|
|
12906
12911
|
function n0({ schema: e, opts: t, self: n, errSchemaPath: r }, i, s) {
|
|
12907
12912
|
if (Array.isArray(i.keyword) ? !i.keyword.includes(s) : i.keyword !== s)
|
|
12908
12913
|
throw new Error("ajv implementation error");
|
|
@@ -12917,11 +12922,11 @@ function n0({ schema: e, opts: t, self: n, errSchemaPath: r }, i, s) {
|
|
|
12917
12922
|
throw new Error(u);
|
|
12918
12923
|
}
|
|
12919
12924
|
}
|
|
12920
|
-
|
|
12925
|
+
wn.validateKeywordUsage = n0;
|
|
12921
12926
|
var sr = {};
|
|
12922
12927
|
Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
12923
12928
|
sr.extendSubschemaMode = sr.extendSubschemaData = sr.getSubschema = void 0;
|
|
12924
|
-
const
|
|
12929
|
+
const Sn = Ue, Gf = We;
|
|
12925
12930
|
function r0(e, { keyword: t, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: s, topSchemaRef: o }) {
|
|
12926
12931
|
if (t !== void 0 && r !== void 0)
|
|
12927
12932
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -12929,11 +12934,11 @@ function r0(e, { keyword: t, schemaProp: n, schema: r, schemaPath: i, errSchemaP
|
|
|
12929
12934
|
const l = e.schema[t];
|
|
12930
12935
|
return n === void 0 ? {
|
|
12931
12936
|
schema: l,
|
|
12932
|
-
schemaPath: (0,
|
|
12937
|
+
schemaPath: (0, Sn._)`${e.schemaPath}${(0, Sn.getProperty)(t)}`,
|
|
12933
12938
|
errSchemaPath: `${e.errSchemaPath}/${t}`
|
|
12934
12939
|
} : {
|
|
12935
12940
|
schema: l[n],
|
|
12936
|
-
schemaPath: (0,
|
|
12941
|
+
schemaPath: (0, Sn._)`${e.schemaPath}${(0, Sn.getProperty)(t)}${(0, Sn.getProperty)(n)}`,
|
|
12937
12942
|
errSchemaPath: `${e.errSchemaPath}/${t}/${(0, Gf.escapeFragment)(n)}`
|
|
12938
12943
|
};
|
|
12939
12944
|
}
|
|
@@ -12955,11 +12960,11 @@ function i0(e, t, { dataProp: n, dataPropType: r, data: i, dataTypes: s, propert
|
|
|
12955
12960
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
12956
12961
|
const { gen: l } = t;
|
|
12957
12962
|
if (n !== void 0) {
|
|
12958
|
-
const { errorPath: c, dataPathArr: m, opts: a } = t, d = l.let("data", (0,
|
|
12959
|
-
u(d), e.errorPath = (0,
|
|
12963
|
+
const { errorPath: c, dataPathArr: m, opts: a } = t, d = l.let("data", (0, Sn._)`${t.data}${(0, Sn.getProperty)(n)}`, !0);
|
|
12964
|
+
u(d), e.errorPath = (0, Sn.str)`${c}${(0, Gf.getErrorPath)(n, r, a.jsPropertySyntax)}`, e.parentDataProperty = (0, Sn._)`${n}`, e.dataPathArr = [...m, e.parentDataProperty];
|
|
12960
12965
|
}
|
|
12961
12966
|
if (i !== void 0) {
|
|
12962
|
-
const c = i instanceof
|
|
12967
|
+
const c = i instanceof Sn.Name ? i : l.let("data", i, !0);
|
|
12963
12968
|
u(c), o !== void 0 && (e.propertyName = o);
|
|
12964
12969
|
}
|
|
12965
12970
|
s && (e.dataTypes = s);
|
|
@@ -13188,7 +13193,7 @@ function g0(e, t) {
|
|
|
13188
13193
|
Et.getSchemaRefs = g0;
|
|
13189
13194
|
Object.defineProperty(dn, "__esModule", { value: !0 });
|
|
13190
13195
|
dn.getData = dn.KeywordCxt = dn.validateFunctionCode = void 0;
|
|
13191
|
-
const Xf = si, fc = Qi, Ia = Fn, No = Qi, v0 = ts, Ei =
|
|
13196
|
+
const Xf = si, fc = Qi, Ia = Fn, No = Qi, v0 = ts, Ei = wn, _s = sr, ve = Ue, Le = Nn, _0 = Et, Un = We, _i = zi;
|
|
13192
13197
|
function b0(e) {
|
|
13193
13198
|
if (tp(e) && (np(e), ep(e))) {
|
|
13194
13199
|
w0(e);
|
|
@@ -13516,7 +13521,7 @@ Ji.default = V0;
|
|
|
13516
13521
|
var Ht = {};
|
|
13517
13522
|
Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
13518
13523
|
Ht.resolveSchema = Ht.getCompilingSchema = Ht.resolveRef = Ht.compileSchema = Ht.SchemaEnv = void 0;
|
|
13519
|
-
const sn = Ue, q0 = Yi, yr =
|
|
13524
|
+
const sn = Ue, q0 = Yi, yr = Nn, un = Et, yc = We, H0 = dn;
|
|
13520
13525
|
class ns {
|
|
13521
13526
|
constructor(t) {
|
|
13522
13527
|
var n;
|
|
@@ -13728,7 +13733,7 @@ var xa = {}, Bs = { exports: {} };
|
|
|
13728
13733
|
function c(I) {
|
|
13729
13734
|
var A = "[A-Za-z]", x = "[0-9]", W = r(x, "[A-Fa-f]"), K = i(i("%[EFef]" + W + "%" + W + W + "%" + W + W) + "|" + i("%[89A-Fa-f]" + W + "%" + W + W) + "|" + i("%" + W + W)), ge = "[\\:\\/\\?\\#\\[\\]\\@]", _e = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", Be = r(ge, _e), rt = I ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", ut = I ? "[\\uE000-\\uF8FF]" : "[]", me = r(A, x, "[\\-\\.\\_\\~]", rt);
|
|
13730
13735
|
i(A + r(A, x, "[\\+\\-\\.]") + "*"), i(i(K + "|" + r(me, _e, "[\\:]")) + "*");
|
|
13731
|
-
var
|
|
13736
|
+
var Ze = i(i("25[0-5]") + "|" + i("2[0-4]" + x) + "|" + i("1" + x + x) + "|" + i("0?[1-9]" + x) + "|0?0?" + x), w = i(Ze + "\\." + Ze + "\\." + Ze + "\\." + Ze), S = i(W + "{1,4}"), be = i(i(S + "\\:" + S) + "|" + w), ze = i(i(S + "\\:") + "{6}" + be), ot = i("\\:\\:" + i(S + "\\:") + "{5}" + be), Jn = i(i(S) + "?\\:\\:" + i(S + "\\:") + "{4}" + be), gn = i(i(i(S + "\\:") + "{0,1}" + S) + "?\\:\\:" + i(S + "\\:") + "{3}" + be), vn = i(i(i(S + "\\:") + "{0,2}" + S) + "?\\:\\:" + i(S + "\\:") + "{2}" + be), Mr = i(i(i(S + "\\:") + "{0,3}" + S) + "?\\:\\:" + S + "\\:" + be), mr = i(i(i(S + "\\:") + "{0,4}" + S) + "?\\:\\:" + be), Zt = i(i(i(S + "\\:") + "{0,5}" + S) + "?\\:\\:" + S), _n = i(i(i(S + "\\:") + "{0,6}" + S) + "?\\:\\:"), hr = i([ze, ot, Jn, gn, vn, Mr, mr, Zt, _n].join("|")), Dn = i(i(me + "|" + K) + "+");
|
|
13732
13737
|
i("[vV]" + W + "+\\." + r(me, _e, "[\\:]") + "+"), i(i(K + "|" + r(me, _e)) + "*");
|
|
13733
13738
|
var yi = i(K + "|" + r(me, _e, "[\\:\\@]"));
|
|
13734
13739
|
return i(i(K + "|" + r(me, _e, "[\\@]")) + "+"), i(i(yi + "|" + r("[\\/\\?]", ut)) + "*"), {
|
|
@@ -13744,7 +13749,7 @@ var xa = {}, Bs = { exports: {} };
|
|
|
13744
13749
|
OTHER_CHARS: new RegExp(r("[^\\%]", me, Be), "g"),
|
|
13745
13750
|
PCT_ENCODED: new RegExp(K, "g"),
|
|
13746
13751
|
IPV4ADDRESS: new RegExp("^(" + w + ")$"),
|
|
13747
|
-
IPV6ADDRESS: new RegExp("^\\[?(" + hr + ")" + i(i("\\%25|\\%(?!" + W + "{2})") + "(" +
|
|
13752
|
+
IPV6ADDRESS: new RegExp("^\\[?(" + hr + ")" + i(i("\\%25|\\%(?!" + W + "{2})") + "(" + Dn + ")") + "?\\]?$")
|
|
13748
13753
|
//RFC 6874, with relaxed parsing rules
|
|
13749
13754
|
};
|
|
13750
13755
|
}
|
|
@@ -13833,19 +13838,19 @@ var xa = {}, Bs = { exports: {} };
|
|
|
13833
13838
|
A.charCodeAt(rt) >= 128 && re("not-basic"), x.push(A.charCodeAt(rt));
|
|
13834
13839
|
for (var ut = Be > 0 ? Be + 1 : 0; ut < W; ) {
|
|
13835
13840
|
for (
|
|
13836
|
-
var me = K,
|
|
13841
|
+
var me = K, Ze = 1, w = v;
|
|
13837
13842
|
;
|
|
13838
13843
|
/* no condition */
|
|
13839
13844
|
w += v
|
|
13840
13845
|
) {
|
|
13841
13846
|
ut >= W && re("invalid-input");
|
|
13842
13847
|
var S = pt(A.charCodeAt(ut++));
|
|
13843
|
-
(S >= v || S > Q((h - K) /
|
|
13848
|
+
(S >= v || S > Q((h - K) / Ze)) && re("overflow"), K += S * Ze;
|
|
13844
13849
|
var be = w <= _e ? T : w >= _e + _ ? _ : w - _e;
|
|
13845
13850
|
if (S < be)
|
|
13846
13851
|
break;
|
|
13847
13852
|
var ze = v - be;
|
|
13848
|
-
|
|
13853
|
+
Ze > Q(h / ze) && re("overflow"), Ze *= ze;
|
|
13849
13854
|
}
|
|
13850
13855
|
var ot = x.length + 1;
|
|
13851
13856
|
_e = y(K - me, ot, me == 0), Q(K / ot) > h - ge && re("overflow"), ge += Q(K / ot), K %= ot, x.splice(K++, 0, ge);
|
|
@@ -13856,8 +13861,8 @@ var xa = {}, Bs = { exports: {} };
|
|
|
13856
13861
|
A = dt(A);
|
|
13857
13862
|
var W = A.length, K = B, ge = 0, _e = F, Be = !0, rt = !1, ut = void 0;
|
|
13858
13863
|
try {
|
|
13859
|
-
for (var me = A[Symbol.iterator](),
|
|
13860
|
-
var w =
|
|
13864
|
+
for (var me = A[Symbol.iterator](), Ze; !(Be = (Ze = me.next()).done); Be = !0) {
|
|
13865
|
+
var w = Ze.value;
|
|
13861
13866
|
w < 128 && x.push(X(w));
|
|
13862
13867
|
}
|
|
13863
13868
|
} catch (gi) {
|
|
@@ -13890,7 +13895,7 @@ var xa = {}, Bs = { exports: {} };
|
|
|
13890
13895
|
}
|
|
13891
13896
|
var Zt = be + 1;
|
|
13892
13897
|
ze - K > Q((h - ge) / Zt) && re("overflow"), ge += (ze - K) * Zt, K = ze;
|
|
13893
|
-
var _n = !0, hr = !1,
|
|
13898
|
+
var _n = !0, hr = !1, Dn = void 0;
|
|
13894
13899
|
try {
|
|
13895
13900
|
for (var yi = A[Symbol.iterator](), $l; !(_n = ($l = yi.next()).done); _n = !0) {
|
|
13896
13901
|
var Cl = $l.value;
|
|
@@ -13911,13 +13916,13 @@ var xa = {}, Bs = { exports: {} };
|
|
|
13911
13916
|
}
|
|
13912
13917
|
}
|
|
13913
13918
|
} catch (gi) {
|
|
13914
|
-
hr = !0,
|
|
13919
|
+
hr = !0, Dn = gi;
|
|
13915
13920
|
} finally {
|
|
13916
13921
|
try {
|
|
13917
13922
|
!_n && yi.return && yi.return();
|
|
13918
13923
|
} finally {
|
|
13919
13924
|
if (hr)
|
|
13920
|
-
throw
|
|
13925
|
+
throw Dn;
|
|
13921
13926
|
}
|
|
13922
13927
|
}
|
|
13923
13928
|
++ge, ++K;
|
|
@@ -13999,13 +14004,13 @@ var xa = {}, Bs = { exports: {} };
|
|
|
13999
14004
|
function M(I, A) {
|
|
14000
14005
|
var x = I.match(A.IPV6ADDRESS) || [], W = d(x, 3), K = W[1], ge = W[2];
|
|
14001
14006
|
if (K) {
|
|
14002
|
-
for (var _e = K.toLowerCase().split("::").reverse(), Be = d(_e, 2), rt = Be[0], ut = Be[1], me = ut ? ut.split(":").map(oe) : [],
|
|
14003
|
-
ze[ot] = me[ot] ||
|
|
14007
|
+
for (var _e = K.toLowerCase().split("::").reverse(), Be = d(_e, 2), rt = Be[0], ut = Be[1], me = ut ? ut.split(":").map(oe) : [], Ze = rt.split(":").map(oe), w = A.IPV4ADDRESS.test(Ze[Ze.length - 1]), S = w ? 7 : 8, be = Ze.length - S, ze = Array(S), ot = 0; ot < S; ++ot)
|
|
14008
|
+
ze[ot] = me[ot] || Ze[be + ot] || "";
|
|
14004
14009
|
w && (ze[S - 1] = je(ze[S - 1], A));
|
|
14005
14010
|
var Jn = ze.reduce(function(Zt, _n, hr) {
|
|
14006
14011
|
if (!_n || _n === "0") {
|
|
14007
|
-
var
|
|
14008
|
-
|
|
14012
|
+
var Dn = Zt[Zt.length - 1];
|
|
14013
|
+
Dn && Dn.index + Dn.length === hr ? Dn.length++ : Zt.push({ index: hr, length: 1 });
|
|
14009
14014
|
}
|
|
14010
14015
|
return Zt;
|
|
14011
14016
|
}, []), gn = Jn.sort(function(Zt, _n) {
|
|
@@ -14146,7 +14151,7 @@ var xa = {}, Bs = { exports: {} };
|
|
|
14146
14151
|
domainHost: Mt.domainHost,
|
|
14147
14152
|
parse: Mt.parse,
|
|
14148
14153
|
serialize: Mt.serialize
|
|
14149
|
-
}, mi = {}, fr = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Ft = "[0-9A-Fa-f]", jr = i(i("%[EFef]" + Ft + "%" + Ft + Ft + "%" + Ft + Ft) + "|" + i("%[89A-Fa-f]" + Ft + "%" + Ft + Ft) + "|" + i("%" + Ft + Ft)),
|
|
14154
|
+
}, mi = {}, fr = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Ft = "[0-9A-Fa-f]", jr = i(i("%[EFef]" + Ft + "%" + Ft + Ft + "%" + Ft + Ft) + "|" + i("%[89A-Fa-f]" + Ft + "%" + Ft + Ft) + "|" + i("%" + Ft + Ft)), xn = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", Lr = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", pr = r(Lr, '[\\"\\\\]'), mt = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", Dr = new RegExp(fr, "g"), yn = new RegExp(jr, "g"), jn = new RegExp(r("[^]", xn, "[\\.]", '[\\"]', pr), "g"), Ln = new RegExp(r("[^]", fr, mt), "g"), Ot = Ln;
|
|
14150
14155
|
function Qn(I) {
|
|
14151
14156
|
var A = ie(I);
|
|
14152
14157
|
return A.match(Dr) ? A : I;
|
|
@@ -14160,8 +14165,8 @@ var xa = {}, Bs = { exports: {} };
|
|
|
14160
14165
|
var me = Be[rt].split("=");
|
|
14161
14166
|
switch (me[0]) {
|
|
14162
14167
|
case "to":
|
|
14163
|
-
for (var
|
|
14164
|
-
K.push(
|
|
14168
|
+
for (var Ze = me[1].split(","), w = 0, S = Ze.length; w < S; ++w)
|
|
14169
|
+
K.push(Ze[w]);
|
|
14165
14170
|
break;
|
|
14166
14171
|
case "subject":
|
|
14167
14172
|
W.subject = Ee(me[1], x);
|
|
@@ -14195,7 +14200,7 @@ var xa = {}, Bs = { exports: {} };
|
|
|
14195
14200
|
var W = A, K = l(A.to);
|
|
14196
14201
|
if (K) {
|
|
14197
14202
|
for (var ge = 0, _e = K.length; ge < _e; ++ge) {
|
|
14198
|
-
var Be = String(K[ge]), rt = Be.lastIndexOf("@"), ut = Be.slice(0, rt).replace(yn, Qn).replace(yn, o).replace(
|
|
14203
|
+
var Be = String(K[ge]), rt = Be.lastIndexOf("@"), ut = Be.slice(0, rt).replace(yn, Qn).replace(yn, o).replace(jn, H), me = Be.slice(rt + 1);
|
|
14199
14204
|
try {
|
|
14200
14205
|
me = x.iri ? $.toUnicode(me) : $.toASCII(Ee(me, x).toLowerCase());
|
|
14201
14206
|
} catch (be) {
|
|
@@ -14205,11 +14210,11 @@ var xa = {}, Bs = { exports: {} };
|
|
|
14205
14210
|
}
|
|
14206
14211
|
W.path = K.join(",");
|
|
14207
14212
|
}
|
|
14208
|
-
var
|
|
14209
|
-
A.subject && (
|
|
14213
|
+
var Ze = A.headers = A.headers || {};
|
|
14214
|
+
A.subject && (Ze.subject = A.subject), A.body && (Ze.body = A.body);
|
|
14210
14215
|
var w = [];
|
|
14211
|
-
for (var S in
|
|
14212
|
-
|
|
14216
|
+
for (var S in Ze)
|
|
14217
|
+
Ze[S] !== mi[S] && w.push(S.replace(yn, Qn).replace(yn, o).replace(Ln, H) + "=" + Ze[S].replace(yn, Qn).replace(yn, o).replace(Ot, H));
|
|
14213
14218
|
return w.length && (W.query = w.join("&")), W;
|
|
14214
14219
|
}
|
|
14215
14220
|
}, hi = /^([^\:]+)\:(.*)/, Rr = {
|
|
@@ -14700,7 +14705,7 @@ Da.default = iS;
|
|
|
14700
14705
|
var xr = {};
|
|
14701
14706
|
Object.defineProperty(xr, "__esModule", { value: !0 });
|
|
14702
14707
|
xr.callRef = xr.getValidate = void 0;
|
|
14703
|
-
const oS = Ji, gc = Fe, qt = Ue, qr =
|
|
14708
|
+
const oS = Ji, gc = Fe, qt = Ue, qr = Nn, vc = Ht, so = We, sS = {
|
|
14704
14709
|
keyword: "$ref",
|
|
14705
14710
|
schemaType: "string",
|
|
14706
14711
|
code(e) {
|
|
@@ -15350,7 +15355,7 @@ const gp = Ue, uw = We, dw = {
|
|
|
15350
15355
|
Za.default = fw;
|
|
15351
15356
|
var is = {};
|
|
15352
15357
|
Object.defineProperty(is, "__esModule", { value: !0 });
|
|
15353
|
-
const lo = Fe, an = Ue, pw =
|
|
15358
|
+
const lo = Fe, an = Ue, pw = Nn, co = We, mw = {
|
|
15354
15359
|
message: "must NOT have additional properties",
|
|
15355
15360
|
params: ({ params: e }) => (0, an._)`{additionalProperty: ${e.additionalProperty}}`
|
|
15356
15361
|
}, hw = {
|
|
@@ -16504,7 +16509,7 @@ function Or(e) {
|
|
|
16504
16509
|
const t = pl().buttons[e];
|
|
16505
16510
|
return t || de(`Button config for button ${e} doesn't exist`), t;
|
|
16506
16511
|
}
|
|
16507
|
-
function
|
|
16512
|
+
function $n(e) {
|
|
16508
16513
|
const t = fl().items[e];
|
|
16509
16514
|
return t || de(`Item config for skill ${e} doesn't exist`), t;
|
|
16510
16515
|
}
|
|
@@ -16736,8 +16741,8 @@ function li() {
|
|
|
16736
16741
|
scope: i,
|
|
16737
16742
|
config: ue(),
|
|
16738
16743
|
gameOptions: ke().options,
|
|
16739
|
-
baseSettings:
|
|
16740
|
-
customSettings:
|
|
16744
|
+
baseSettings: In().baseSettings,
|
|
16745
|
+
customSettings: In().customSettings
|
|
16741
16746
|
};
|
|
16742
16747
|
return new Proxy(s, {
|
|
16743
16748
|
get: (l, u, c) => {
|
|
@@ -16886,7 +16891,7 @@ function N$(e) {
|
|
|
16886
16891
|
function x$(e) {
|
|
16887
16892
|
return e == null ? "" : N$(e);
|
|
16888
16893
|
}
|
|
16889
|
-
function
|
|
16894
|
+
function Cn(e) {
|
|
16890
16895
|
return typeof e == "string";
|
|
16891
16896
|
}
|
|
16892
16897
|
function xp(e) {
|
|
@@ -16934,7 +16939,7 @@ class B$ {
|
|
|
16934
16939
|
}
|
|
16935
16940
|
function Dp(e) {
|
|
16936
16941
|
let t = null, n = null, r = null, i = 1, s = null;
|
|
16937
|
-
if (
|
|
16942
|
+
if (Cn(e) || Gn(e))
|
|
16938
16943
|
r = e, t = Nc(e), n = zs(e);
|
|
16939
16944
|
else {
|
|
16940
16945
|
if (!Pc.call(e, "name"))
|
|
@@ -16963,7 +16968,7 @@ function V$(e, t) {
|
|
|
16963
16968
|
const c = s[u];
|
|
16964
16969
|
if (!Yt(c))
|
|
16965
16970
|
return;
|
|
16966
|
-
if (l === o.length - 1 && (
|
|
16971
|
+
if (l === o.length - 1 && (Cn(c) || xp(c) || j$(c)))
|
|
16967
16972
|
n.push(x$(c));
|
|
16968
16973
|
else if (Gn(c)) {
|
|
16969
16974
|
r = !0;
|
|
@@ -16973,7 +16978,7 @@ function V$(e, t) {
|
|
|
16973
16978
|
o.length && i(c, o, l + 1);
|
|
16974
16979
|
}
|
|
16975
16980
|
};
|
|
16976
|
-
return i(e,
|
|
16981
|
+
return i(e, Cn(t) ? t.split(".") : t, 0), r ? n : n[0];
|
|
16977
16982
|
}
|
|
16978
16983
|
const q$ = {
|
|
16979
16984
|
// Whether the matches should be included in the result set. When `true`, each record in the result
|
|
@@ -17067,7 +17072,7 @@ class _l {
|
|
|
17067
17072
|
});
|
|
17068
17073
|
}
|
|
17069
17074
|
create() {
|
|
17070
|
-
this.isCreated || !this.docs.length || (this.isCreated = !0,
|
|
17075
|
+
this.isCreated || !this.docs.length || (this.isCreated = !0, Cn(this.docs[0]) ? this.docs.forEach((t, n) => {
|
|
17071
17076
|
this._addString(t, n);
|
|
17072
17077
|
}) : this.docs.forEach((t, n) => {
|
|
17073
17078
|
this._addObject(t, n);
|
|
@@ -17076,7 +17081,7 @@ class _l {
|
|
|
17076
17081
|
// Adds a doc to the end of the index
|
|
17077
17082
|
add(t) {
|
|
17078
17083
|
const n = this.size();
|
|
17079
|
-
|
|
17084
|
+
Cn(t) ? this._addString(t, n) : this._addObject(t, n);
|
|
17080
17085
|
}
|
|
17081
17086
|
// Removes the doc at the specified index of the index
|
|
17082
17087
|
removeAt(t) {
|
|
@@ -17111,7 +17116,7 @@ class _l {
|
|
|
17111
17116
|
for (; u.length; ) {
|
|
17112
17117
|
const { nestedArrIndex: c, value: m } = u.pop();
|
|
17113
17118
|
if (Yt(m))
|
|
17114
|
-
if (
|
|
17119
|
+
if (Cn(m) && !$s(m)) {
|
|
17115
17120
|
let a = {
|
|
17116
17121
|
v: m,
|
|
17117
17122
|
i: c,
|
|
@@ -17127,7 +17132,7 @@ class _l {
|
|
|
17127
17132
|
});
|
|
17128
17133
|
}
|
|
17129
17134
|
r.$[s] = l;
|
|
17130
|
-
} else if (
|
|
17135
|
+
} else if (Cn(o) && !$s(o)) {
|
|
17131
17136
|
let l = {
|
|
17132
17137
|
v: o,
|
|
17133
17138
|
n: this.norm.get(o)
|
|
@@ -17679,7 +17684,7 @@ function Bp(e, t, { auto: n = !0 } = {}) {
|
|
|
17679
17684
|
return r(Lc(i));
|
|
17680
17685
|
if (fC(i)) {
|
|
17681
17686
|
const u = o ? i[Xs.PATH] : s[0], c = o ? i[Xs.PATTERN] : i[u];
|
|
17682
|
-
if (
|
|
17687
|
+
if (!Cn(c))
|
|
17683
17688
|
throw new Error(R$(u));
|
|
17684
17689
|
const m = {
|
|
17685
17690
|
keyId: zs(u),
|
|
@@ -17780,7 +17785,7 @@ class fi {
|
|
|
17780
17785
|
sortFn: o,
|
|
17781
17786
|
ignoreFieldNorm: l
|
|
17782
17787
|
} = this.options;
|
|
17783
|
-
let u =
|
|
17788
|
+
let u = Cn(t) ? Cn(this._docs[0]) ? this._searchStringList(t) : this._searchObjectList(t) : this._searchLogical(t);
|
|
17784
17789
|
return pC(u, { ignoreFieldNorm: l }), s && u.sort(o), xp(n) && n > -1 && (u = u.slice(0, n)), yC(u, this._docs, {
|
|
17785
17790
|
includeMatches: r,
|
|
17786
17791
|
includeScore: i
|
|
@@ -17916,7 +17921,7 @@ const gC = /* @__PURE__ */ U("h3", { class: "title" }, "Jump to label", -1), vC
|
|
|
17916
17921
|
Di(() => {
|
|
17917
17922
|
u.value && u.value.focus();
|
|
17918
17923
|
});
|
|
17919
|
-
}, 10), i.value =
|
|
17924
|
+
}, 10), i.value = Xe().registerInputListener("debug-jumping", {
|
|
17920
17925
|
up: {
|
|
17921
17926
|
press: () => {
|
|
17922
17927
|
l.value > 0 ? l.value-- : l.value = o.value.length - 1;
|
|
@@ -17942,15 +17947,15 @@ const gC = /* @__PURE__ */ U("h3", { class: "title" }, "Jump to label", -1), vC
|
|
|
17942
17947
|
}
|
|
17943
17948
|
});
|
|
17944
17949
|
}), _t(() => {
|
|
17945
|
-
i.value &&
|
|
17950
|
+
i.value && Xe().unregisterInputListener(i.value), ke().debugMode = !1;
|
|
17946
17951
|
}), (d, p) => (D(), Ce(cr, {
|
|
17947
17952
|
onClose: p[1] || (p[1] = (h) => d.$emit("close")),
|
|
17948
17953
|
containerCssClass: "jump-menu-container"
|
|
17949
17954
|
}, {
|
|
17950
|
-
header:
|
|
17955
|
+
header: et(() => [
|
|
17951
17956
|
gC
|
|
17952
17957
|
]),
|
|
17953
|
-
body:
|
|
17958
|
+
body: et(() => [
|
|
17954
17959
|
ir(U("input", {
|
|
17955
17960
|
type: "text",
|
|
17956
17961
|
class: "label-input nrt-input",
|
|
@@ -17991,7 +17996,7 @@ const gC = /* @__PURE__ */ U("h3", { class: "title" }, "Jump to label", -1), vC
|
|
|
17991
17996
|
mounted() {
|
|
17992
17997
|
const e = gt(), t = ue().hotkeys.debugMenu ?? "d", n = ue().hotkeys.jumpMenu ?? "j";
|
|
17993
17998
|
e.inputsContainer.addEventListener("keydown", (r) => {
|
|
17994
|
-
|
|
17999
|
+
Xe().isTyping || (this.jumping || (r.key === t && this.toggle(), r.key === n && this.jump()), r.key === "Escape" && (this.closeJumping(), this.close()));
|
|
17995
18000
|
});
|
|
17996
18001
|
},
|
|
17997
18002
|
methods: {
|
|
@@ -18121,10 +18126,10 @@ function HC(e, t, n, r, i, s) {
|
|
|
18121
18126
|
onClose: e.closeErrors,
|
|
18122
18127
|
containerCssClass: "debug-menu-container"
|
|
18123
18128
|
}, {
|
|
18124
|
-
header:
|
|
18129
|
+
header: et(() => [
|
|
18125
18130
|
AC
|
|
18126
18131
|
]),
|
|
18127
|
-
body:
|
|
18132
|
+
body: et(() => [
|
|
18128
18133
|
Ar(" There are errors in your dialogue scripts. Open the developer console for more details. "),
|
|
18129
18134
|
U("ul", null, [
|
|
18130
18135
|
(D(!0), J(He, null, Je(e.errors, (u, c) => (D(), J("li", {
|
|
@@ -18141,10 +18146,10 @@ function HC(e, t, n, r, i, s) {
|
|
|
18141
18146
|
onClose: e.close,
|
|
18142
18147
|
containerCssClass: "debug-menu-container"
|
|
18143
18148
|
}, {
|
|
18144
|
-
header:
|
|
18149
|
+
header: et(() => [
|
|
18145
18150
|
IC
|
|
18146
18151
|
]),
|
|
18147
|
-
body:
|
|
18152
|
+
body: et(() => [
|
|
18148
18153
|
U("div", PC, [
|
|
18149
18154
|
Ar(" Hello this is the debug menu. "),
|
|
18150
18155
|
U("select", {
|
|
@@ -18215,7 +18220,7 @@ const KC = /* @__PURE__ */ hn(wC, [["render", HC]]), GC = ["src"], WC = ["innerH
|
|
|
18215
18220
|
tag: "div",
|
|
18216
18221
|
class: "notifications-holder"
|
|
18217
18222
|
}, {
|
|
18218
|
-
default:
|
|
18223
|
+
default: et(() => [
|
|
18219
18224
|
(D(!0), J(He, null, Je(n.value, (o, l) => (D(), J("div", {
|
|
18220
18225
|
class: "notification nrt-tile",
|
|
18221
18226
|
key: l
|
|
@@ -18259,7 +18264,7 @@ const KC = /* @__PURE__ */ hn(wC, [["render", HC]]), GC = ["src"], WC = ["innerH
|
|
|
18259
18264
|
n("close");
|
|
18260
18265
|
}
|
|
18261
18266
|
const i = le(
|
|
18262
|
-
|
|
18267
|
+
Xe().registerInputListener("yes-no", {
|
|
18263
18268
|
cancel: {
|
|
18264
18269
|
press: () => {
|
|
18265
18270
|
r();
|
|
@@ -18278,15 +18283,15 @@ const KC = /* @__PURE__ */ hn(wC, [["render", HC]]), GC = ["src"], WC = ["innerH
|
|
|
18278
18283
|
})
|
|
18279
18284
|
);
|
|
18280
18285
|
return _t(() => {
|
|
18281
|
-
i.value &&
|
|
18286
|
+
i.value && Xe().unregisterInputListener(i.value);
|
|
18282
18287
|
}), (s, o) => (D(), Ce(cr, {
|
|
18283
18288
|
onClose: r,
|
|
18284
18289
|
containerCssClass: "yes-no-modal"
|
|
18285
18290
|
}, {
|
|
18286
|
-
header:
|
|
18291
|
+
header: et(() => [
|
|
18287
18292
|
U("h3", YC, ye(e.title ?? "Alert"), 1)
|
|
18288
18293
|
]),
|
|
18289
|
-
body:
|
|
18294
|
+
body: et(() => [
|
|
18290
18295
|
U("h3", null, ye(e.text), 1)
|
|
18291
18296
|
]),
|
|
18292
18297
|
_: 1
|
|
@@ -18318,7 +18323,7 @@ const KC = /* @__PURE__ */ hn(wC, [["render", HC]]), GC = ["src"], WC = ["innerH
|
|
|
18318
18323
|
return ft(() => {
|
|
18319
18324
|
n.value && (t.value = n.value.clientHeight);
|
|
18320
18325
|
}), (l, u) => (D(), Ce(ji, { name: "fade" }, {
|
|
18321
|
-
default:
|
|
18326
|
+
default: et(() => [
|
|
18322
18327
|
U("div", {
|
|
18323
18328
|
class: Ge(["floating-tooltip", l.cssClass]),
|
|
18324
18329
|
style: Qe(o.value),
|
|
@@ -18340,7 +18345,7 @@ const KC = /* @__PURE__ */ hn(wC, [["render", HC]]), GC = ["src"], WC = ["innerH
|
|
|
18340
18345
|
_: 1
|
|
18341
18346
|
}));
|
|
18342
18347
|
}
|
|
18343
|
-
}),
|
|
18348
|
+
}), e1 = { class: "tooltips-ui" }, t1 = /* @__PURE__ */ $e({
|
|
18344
18349
|
__name: "tooltips-ui",
|
|
18345
18350
|
setup(e) {
|
|
18346
18351
|
const t = Wi(), n = gt(), r = V(() => t.tooltip), i = V(() => n.screenWidth), s = V(() => n.screenHeight), o = V(() => {
|
|
@@ -18361,14 +18366,14 @@ const KC = /* @__PURE__ */ hn(wC, [["render", HC]]), GC = ["src"], WC = ["innerH
|
|
|
18361
18366
|
...(a = Mo(u.keyword)) == null ? void 0 : a.styling
|
|
18362
18367
|
}), c;
|
|
18363
18368
|
}
|
|
18364
|
-
return (u, c) => (D(), J("div",
|
|
18369
|
+
return (u, c) => (D(), J("div", e1, [
|
|
18365
18370
|
r.value ? (D(), Ce(ZC, am(Uc({ key: 0 }, o.value)), null, 16)) : Oe("", !0)
|
|
18366
18371
|
]));
|
|
18367
18372
|
}
|
|
18368
18373
|
}), Cs = {};
|
|
18369
|
-
async function
|
|
18374
|
+
async function n1(e) {
|
|
18370
18375
|
fn.log("Loading videos");
|
|
18371
|
-
const t = [], n = async (i, s) => await
|
|
18376
|
+
const t = [], n = async (i, s) => await r1(i, s), r = (i, s) => {
|
|
18372
18377
|
t.push(n(i, s));
|
|
18373
18378
|
};
|
|
18374
18379
|
if (e.preload.video)
|
|
@@ -18378,7 +18383,7 @@ async function nk(e) {
|
|
|
18378
18383
|
}
|
|
18379
18384
|
return Promise.all(t);
|
|
18380
18385
|
}
|
|
18381
|
-
async function
|
|
18386
|
+
async function r1(e, t) {
|
|
18382
18387
|
if (Cs[e])
|
|
18383
18388
|
return Cs[e];
|
|
18384
18389
|
const n = new Promise((r, i) => {
|
|
@@ -18391,7 +18396,7 @@ async function rk(e, t) {
|
|
|
18391
18396
|
});
|
|
18392
18397
|
return Cs[e] = n, n;
|
|
18393
18398
|
}
|
|
18394
|
-
async function
|
|
18399
|
+
async function i1() {
|
|
18395
18400
|
const t = tt().scripts;
|
|
18396
18401
|
Lt().setMasterVolume(rn().options.volume ?? 1), await Ie().loadScripts(t), jt().setup();
|
|
18397
18402
|
for (const [, n] of Re.customStores())
|
|
@@ -18401,17 +18406,17 @@ async function ik() {
|
|
|
18401
18406
|
}
|
|
18402
18407
|
Re.addCustomSettings(), $f();
|
|
18403
18408
|
}
|
|
18404
|
-
async function
|
|
18405
|
-
const e = ke(), t = Zv(tt()), n =
|
|
18409
|
+
async function o1() {
|
|
18410
|
+
const e = ke(), t = Zv(tt()), n = n1(tt()), r = lh(rn());
|
|
18406
18411
|
if (Re.plugins) {
|
|
18407
18412
|
const i = [];
|
|
18408
18413
|
for (const s of Re.plugins)
|
|
18409
18414
|
s.loadingPromises && i.push(Promise.all(s.loadingPromises));
|
|
18410
18415
|
i.length > 0 && (e.setLoadingStep("Plugins", 0), await Promise.all(i));
|
|
18411
18416
|
}
|
|
18412
|
-
e.setLoadingStep("Assets", 0.3), await Promise.all([t, n, r]), Re.callHook("onAssetsLoaded"), e.setLoadingStep("Starting", 0.9), await
|
|
18417
|
+
e.setLoadingStep("Assets", 0.3), await Promise.all([t, n, r]), Re.callHook("onAssetsLoaded"), e.setLoadingStep("Starting", 0.9), await i1(), Re.callHook("onGameSetup"), e.gameLoaded();
|
|
18413
18418
|
}
|
|
18414
|
-
const
|
|
18419
|
+
const s1 = ["id"], a1 = /* @__PURE__ */ $e({
|
|
18415
18420
|
__name: "GameScene",
|
|
18416
18421
|
props: {
|
|
18417
18422
|
sceneId: {},
|
|
@@ -18430,7 +18435,7 @@ const sk = ["id"], ak = /* @__PURE__ */ $e({
|
|
|
18430
18435
|
onFinished: i,
|
|
18431
18436
|
options: s.options
|
|
18432
18437
|
}, null, 40, ["options"]))
|
|
18433
|
-
], 8,
|
|
18438
|
+
], 8, s1));
|
|
18434
18439
|
}
|
|
18435
18440
|
}), pi = bt("achievements", {
|
|
18436
18441
|
state: () => ({
|
|
@@ -18516,7 +18521,7 @@ const sk = ["id"], ak = /* @__PURE__ */ $e({
|
|
|
18516
18521
|
}
|
|
18517
18522
|
}
|
|
18518
18523
|
}
|
|
18519
|
-
),
|
|
18524
|
+
), l1 = {
|
|
18520
18525
|
main: {
|
|
18521
18526
|
store: ke,
|
|
18522
18527
|
save: "main"
|
|
@@ -18550,7 +18555,7 @@ const sk = ["id"], ak = /* @__PURE__ */ $e({
|
|
|
18550
18555
|
save: "hud"
|
|
18551
18556
|
},
|
|
18552
18557
|
inputs: {
|
|
18553
|
-
store:
|
|
18558
|
+
store: Xe
|
|
18554
18559
|
},
|
|
18555
18560
|
inventory: {
|
|
18556
18561
|
store: Dt,
|
|
@@ -18583,7 +18588,7 @@ const sk = ["id"], ak = /* @__PURE__ */ $e({
|
|
|
18583
18588
|
save: "screenObjects"
|
|
18584
18589
|
},
|
|
18585
18590
|
settings: {
|
|
18586
|
-
store:
|
|
18591
|
+
store: In,
|
|
18587
18592
|
save: "settings",
|
|
18588
18593
|
config: "common"
|
|
18589
18594
|
},
|
|
@@ -18610,8 +18615,8 @@ const sk = ["id"], ak = /* @__PURE__ */ $e({
|
|
|
18610
18615
|
avoidReset: !0
|
|
18611
18616
|
}
|
|
18612
18617
|
};
|
|
18613
|
-
tT(
|
|
18614
|
-
const
|
|
18618
|
+
tT(l1);
|
|
18619
|
+
const c1 = /* @__PURE__ */ $e({
|
|
18615
18620
|
__name: "app",
|
|
18616
18621
|
props: {
|
|
18617
18622
|
options: {}
|
|
@@ -18629,7 +18634,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18629
18634
|
gt().refreshScreenSize();
|
|
18630
18635
|
}
|
|
18631
18636
|
return ft(async () => {
|
|
18632
|
-
Re.callHook("onAppMounted"), await
|
|
18637
|
+
Re.callHook("onAppMounted"), await o1(), o.inputsContainer.addEventListener(
|
|
18633
18638
|
"resize",
|
|
18634
18639
|
Xo(
|
|
18635
18640
|
() => {
|
|
@@ -18654,8 +18659,8 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18654
18659
|
tabindex: "0"
|
|
18655
18660
|
}, [
|
|
18656
18661
|
ct(ji, { name: "screens-fade" }, {
|
|
18657
|
-
default:
|
|
18658
|
-
(D(), Ce(
|
|
18662
|
+
default: et(() => [
|
|
18663
|
+
(D(), Ce(a1, {
|
|
18659
18664
|
key: i.value,
|
|
18660
18665
|
sceneId: i.value,
|
|
18661
18666
|
options: it(r).currentOptions
|
|
@@ -18673,10 +18678,10 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18673
18678
|
}, null, 8, ["title", "text", "onClose"]))), 128))
|
|
18674
18679
|
], 2)
|
|
18675
18680
|
], 4),
|
|
18676
|
-
ct(
|
|
18681
|
+
ct(t1)
|
|
18677
18682
|
], 64));
|
|
18678
18683
|
}
|
|
18679
|
-
}),
|
|
18684
|
+
}), u1 = new q(
|
|
18680
18685
|
"add_level",
|
|
18681
18686
|
[
|
|
18682
18687
|
{
|
|
@@ -18701,7 +18706,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18701
18706
|
}
|
|
18702
18707
|
vt().incrementSkill(t, n);
|
|
18703
18708
|
}
|
|
18704
|
-
),
|
|
18709
|
+
), d1 = q.FromOptions({
|
|
18705
18710
|
keyword: "set_level",
|
|
18706
18711
|
argTypes: [
|
|
18707
18712
|
{ name: "skill", type: "string" },
|
|
@@ -18720,7 +18725,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18720
18725
|
}
|
|
18721
18726
|
vt().setSkillLevel(t, n);
|
|
18722
18727
|
}
|
|
18723
|
-
}),
|
|
18728
|
+
}), f1 = new q(
|
|
18724
18729
|
"add_xp",
|
|
18725
18730
|
[
|
|
18726
18731
|
{ name: "xpKey", type: "string" },
|
|
@@ -18733,7 +18738,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18733
18738
|
"add_xp command needs a skill id and a value as parameters"
|
|
18734
18739
|
), vt().addXp(t, n);
|
|
18735
18740
|
}
|
|
18736
|
-
),
|
|
18741
|
+
), p1 = new q(
|
|
18737
18742
|
"get_level",
|
|
18738
18743
|
[
|
|
18739
18744
|
{
|
|
@@ -18750,7 +18755,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18750
18755
|
const n = vt().getSkill(t);
|
|
18751
18756
|
return n || ce(e, `Skill ${t} not found`), n.level;
|
|
18752
18757
|
}
|
|
18753
|
-
),
|
|
18758
|
+
), m1 = new q(
|
|
18754
18759
|
"get_xp",
|
|
18755
18760
|
[
|
|
18756
18761
|
{
|
|
@@ -18764,7 +18769,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18764
18769
|
const n = vt().getSkillXp(t);
|
|
18765
18770
|
return n || ce(e, `XP ${t} not found`), n;
|
|
18766
18771
|
}
|
|
18767
|
-
),
|
|
18772
|
+
), h1 = new q(
|
|
18768
18773
|
"roll",
|
|
18769
18774
|
[
|
|
18770
18775
|
{ name: "id", type: "string" },
|
|
@@ -18799,15 +18804,15 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18799
18804
|
}
|
|
18800
18805
|
return pd(n).succeeded;
|
|
18801
18806
|
}
|
|
18802
|
-
),
|
|
18807
|
+
), y1 = new q(
|
|
18803
18808
|
"get_skill_check",
|
|
18804
18809
|
[{ name: "skillCheckId", type: "string" }],
|
|
18805
18810
|
async (e) => vt().getSkillCheck(e.options.skillCheckId)
|
|
18806
|
-
),
|
|
18811
|
+
), g1 = new q(
|
|
18807
18812
|
"skill_check_result",
|
|
18808
18813
|
[{ name: "skillCheckId", type: "string" }],
|
|
18809
18814
|
async (e) => vt().getSkillCheck(e.options.skillCheckId).succeeded
|
|
18810
|
-
),
|
|
18815
|
+
), v1 = new q(
|
|
18811
18816
|
"reset_roll",
|
|
18812
18817
|
[
|
|
18813
18818
|
{
|
|
@@ -18816,7 +18821,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18816
18821
|
}
|
|
18817
18822
|
],
|
|
18818
18823
|
async (e) => vt().resetSkillCheck(e.options.id)
|
|
18819
|
-
),
|
|
18824
|
+
), _1 = new q(
|
|
18820
18825
|
"add_stat",
|
|
18821
18826
|
[
|
|
18822
18827
|
{ name: "statKey", type: "string" },
|
|
@@ -18829,7 +18834,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18829
18834
|
"add_stat command needs a stat id and a value as parameters"
|
|
18830
18835
|
), Xt().addStat(t, n);
|
|
18831
18836
|
}
|
|
18832
|
-
),
|
|
18837
|
+
), b1 = new q(
|
|
18833
18838
|
"set_stat",
|
|
18834
18839
|
[
|
|
18835
18840
|
{ name: "statKey", type: "string" },
|
|
@@ -18842,17 +18847,17 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18842
18847
|
"set_stat command needs a stat id and a value as parameters"
|
|
18843
18848
|
), Xt().setStat(t, n);
|
|
18844
18849
|
}
|
|
18845
|
-
),
|
|
18850
|
+
), T1 = new q("get_stat_value", [{ name: "statKey", type: "string" }], async (e) => {
|
|
18846
18851
|
const { statKey: t } = e.options;
|
|
18847
18852
|
return t || ce(
|
|
18848
18853
|
e,
|
|
18849
18854
|
"get_stat_value command needs a stat id as parameter"
|
|
18850
18855
|
), Xt().getStatValue(t);
|
|
18851
|
-
}),
|
|
18856
|
+
}), S1 = new q("show_hud", [], async (e) => {
|
|
18852
18857
|
Xt().setVisibility(!0);
|
|
18853
|
-
}),
|
|
18858
|
+
}), w1 = new q("hide_hud", [], async (e) => {
|
|
18854
18859
|
Xt().setVisibility(!1);
|
|
18855
|
-
}), $
|
|
18860
|
+
}), $1 = q.FromOptions({
|
|
18856
18861
|
keyword: "jump",
|
|
18857
18862
|
argTypes: "any",
|
|
18858
18863
|
runner: async (e) => {
|
|
@@ -18869,7 +18874,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18869
18874
|
}
|
|
18870
18875
|
return n.jumpTarget = r, wo;
|
|
18871
18876
|
}
|
|
18872
|
-
}),
|
|
18877
|
+
}), C1 = q.FromOptions({
|
|
18873
18878
|
keyword: "run",
|
|
18874
18879
|
argTypes: "any",
|
|
18875
18880
|
runner: async (e) => {
|
|
@@ -18877,7 +18882,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18877
18882
|
const t = e.args[0];
|
|
18878
18883
|
return await Ie().runLabelFunction(t, ...e.args.slice(1));
|
|
18879
18884
|
}
|
|
18880
|
-
}),
|
|
18885
|
+
}), k1 = q.FromOptions({
|
|
18881
18886
|
keyword: "var",
|
|
18882
18887
|
argTypes: [
|
|
18883
18888
|
{ name: "name", type: "string" },
|
|
@@ -18887,30 +18892,30 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18887
18892
|
const { name: t, value: n } = e.options;
|
|
18888
18893
|
Ie().addScopedVariable(t, n);
|
|
18889
18894
|
}
|
|
18890
|
-
}),
|
|
18895
|
+
}), O1 = q.FromOptions({
|
|
18891
18896
|
keyword: "return",
|
|
18892
18897
|
argTypes: [{ name: "value", type: "any" }],
|
|
18893
18898
|
runner: async (e) => {
|
|
18894
18899
|
const { value: t } = e.options;
|
|
18895
18900
|
return Ie().setReturnValue(t), ua;
|
|
18896
18901
|
}
|
|
18897
|
-
}),
|
|
18902
|
+
}), A1 = q.FromOptions({
|
|
18898
18903
|
keyword: "log",
|
|
18899
18904
|
argTypes: "any",
|
|
18900
18905
|
runner: async (e) => {
|
|
18901
18906
|
_$(e, ...e.args);
|
|
18902
18907
|
}
|
|
18903
|
-
}),
|
|
18908
|
+
}), E1 = q.FromOptions({
|
|
18904
18909
|
keyword: "menu_return",
|
|
18905
18910
|
argTypes: [],
|
|
18906
18911
|
runner: async (e) => (ff(), $o)
|
|
18907
|
-
}),
|
|
18912
|
+
}), I1 = q.FromOptions({
|
|
18908
18913
|
keyword: "save",
|
|
18909
18914
|
argTypes: [{ name: "name", type: "string", optional: !0 }],
|
|
18910
18915
|
runner: async (e) => {
|
|
18911
18916
|
await Of({ saveName: e.options.name });
|
|
18912
18917
|
}
|
|
18913
|
-
}),
|
|
18918
|
+
}), P1 = q.FromOptions({
|
|
18914
18919
|
keyword: "save_prompt",
|
|
18915
18920
|
argTypes: [{ name: "name", type: "string", optional: !0 }],
|
|
18916
18921
|
runner: async (e) => {
|
|
@@ -18919,13 +18924,13 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18919
18924
|
withPrompt: !0
|
|
18920
18925
|
});
|
|
18921
18926
|
}
|
|
18922
|
-
}),
|
|
18927
|
+
}), N1 = q.FromOptions({
|
|
18923
18928
|
keyword: "reset_global_save",
|
|
18924
18929
|
argTypes: [],
|
|
18925
18930
|
runner: async (e) => {
|
|
18926
18931
|
await kf();
|
|
18927
18932
|
}
|
|
18928
|
-
}),
|
|
18933
|
+
}), x1 = q.FromOptions({
|
|
18929
18934
|
keyword: "new",
|
|
18930
18935
|
argTypes: [
|
|
18931
18936
|
{ name: "name", type: "string" },
|
|
@@ -18938,18 +18943,18 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18938
18943
|
if (t === "Object")
|
|
18939
18944
|
return {};
|
|
18940
18945
|
}
|
|
18941
|
-
}),
|
|
18946
|
+
}), j1 = [
|
|
18942
18947
|
{ name: "mode", type: "string" },
|
|
18943
18948
|
{ name: "audio", type: "string" },
|
|
18944
18949
|
{ name: "channel", type: "number", optional: !0 }
|
|
18945
|
-
],
|
|
18950
|
+
], L1 = new q(
|
|
18946
18951
|
"play",
|
|
18947
|
-
|
|
18952
|
+
j1,
|
|
18948
18953
|
async (e) => {
|
|
18949
18954
|
const t = Lt(), { mode: n, audio: r, channel: i } = e.options, s = as(e, n);
|
|
18950
18955
|
s && t.playChannel(s, r, i ?? 0);
|
|
18951
18956
|
}
|
|
18952
|
-
),
|
|
18957
|
+
), D1 = new q(
|
|
18953
18958
|
"resume",
|
|
18954
18959
|
[
|
|
18955
18960
|
{ name: "mode", type: "string" },
|
|
@@ -18959,7 +18964,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18959
18964
|
const t = Lt(), { mode: n, channel: r } = e.options, i = as(e, n);
|
|
18960
18965
|
i && t.resumeChannel(i, r ?? 0);
|
|
18961
18966
|
}
|
|
18962
|
-
),
|
|
18967
|
+
), R1 = new q(
|
|
18963
18968
|
"pause",
|
|
18964
18969
|
[
|
|
18965
18970
|
{ name: "mode", type: "string" },
|
|
@@ -18969,7 +18974,7 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18969
18974
|
const t = Lt(), { mode: n, channel: r } = e.options, i = as(e, n);
|
|
18970
18975
|
i && t.pauseChannel(i, r ?? 0);
|
|
18971
18976
|
}
|
|
18972
|
-
),
|
|
18977
|
+
), M1 = new q(
|
|
18973
18978
|
"stop",
|
|
18974
18979
|
[
|
|
18975
18980
|
{ name: "mode", type: "string" },
|
|
@@ -18981,12 +18986,12 @@ const ck = /* @__PURE__ */ $e({
|
|
|
18981
18986
|
}
|
|
18982
18987
|
);
|
|
18983
18988
|
function as(e, t) {
|
|
18984
|
-
return
|
|
18989
|
+
return F1(t) ? t : (ce(e, `${t} is not a valid audio mode.`), !1);
|
|
18985
18990
|
}
|
|
18986
|
-
function
|
|
18991
|
+
function F1(e) {
|
|
18987
18992
|
return !!fu.includes(e);
|
|
18988
18993
|
}
|
|
18989
|
-
const
|
|
18994
|
+
const U1 = new q(
|
|
18990
18995
|
"set",
|
|
18991
18996
|
[
|
|
18992
18997
|
{ name: "key", type: "string" },
|
|
@@ -18996,7 +19001,7 @@ const Uk = new q(
|
|
|
18996
19001
|
const t = li();
|
|
18997
19002
|
Pp(t, `$${e.options.key}`, e.options.value);
|
|
18998
19003
|
}
|
|
18999
|
-
),
|
|
19004
|
+
), B1 = new q(
|
|
19000
19005
|
"add",
|
|
19001
19006
|
[
|
|
19002
19007
|
{ name: "key", type: "string" },
|
|
@@ -19006,7 +19011,7 @@ const Uk = new q(
|
|
|
19006
19011
|
const t = li();
|
|
19007
19012
|
Np(t, `$${e.options.key}`, e.options.value);
|
|
19008
19013
|
}
|
|
19009
|
-
),
|
|
19014
|
+
), V1 = new q(
|
|
19010
19015
|
"set_screen",
|
|
19011
19016
|
[
|
|
19012
19017
|
{ name: "screen", type: "string" },
|
|
@@ -19034,7 +19039,7 @@ const Uk = new q(
|
|
|
19034
19039
|
e.options.layer
|
|
19035
19040
|
) : t.setScreen(e.options.screen, e.options.layer ?? 0);
|
|
19036
19041
|
}
|
|
19037
|
-
),
|
|
19042
|
+
), q1 = new q(
|
|
19038
19043
|
"empty_layer",
|
|
19039
19044
|
[
|
|
19040
19045
|
{ name: "layer", type: "number" },
|
|
@@ -19050,7 +19055,7 @@ const Uk = new q(
|
|
|
19050
19055
|
delay: e.options.transitionDelay
|
|
19051
19056
|
}) : t.emptyLayer(e.options.layer);
|
|
19052
19057
|
}
|
|
19053
|
-
),
|
|
19058
|
+
), H1 = new q(
|
|
19054
19059
|
"set_button",
|
|
19055
19060
|
[
|
|
19056
19061
|
{ name: "buttonId", type: "string" },
|
|
@@ -19099,7 +19104,7 @@ const Tl = [
|
|
|
19099
19104
|
type: "boolean",
|
|
19100
19105
|
optional: !0
|
|
19101
19106
|
}
|
|
19102
|
-
],
|
|
19107
|
+
], K1 = qn.FromOptions({
|
|
19103
19108
|
keyword: "talk",
|
|
19104
19109
|
argTypes: Tl,
|
|
19105
19110
|
runner: async (e, t) => {
|
|
@@ -19114,7 +19119,7 @@ const Tl = [
|
|
|
19114
19119
|
}), n || qn.ManageAutoAdvance(e);
|
|
19115
19120
|
},
|
|
19116
19121
|
returnAfterPlayerAnswer: !0
|
|
19117
|
-
}),
|
|
19122
|
+
}), G1 = qn.FromOptions({
|
|
19118
19123
|
keyword: "think",
|
|
19119
19124
|
argTypes: Tl,
|
|
19120
19125
|
runner: async (e, t) => {
|
|
@@ -19129,7 +19134,7 @@ const Tl = [
|
|
|
19129
19134
|
}), n || qn.ManageAutoAdvance(e);
|
|
19130
19135
|
},
|
|
19131
19136
|
returnAfterPlayerAnswer: !0
|
|
19132
|
-
}),
|
|
19137
|
+
}), W1 = qn.FromOptions({
|
|
19133
19138
|
keyword: "narrate",
|
|
19134
19139
|
argTypes: Tl.slice(2, 5),
|
|
19135
19140
|
runner: async (e, t) => {
|
|
@@ -19143,7 +19148,7 @@ const Tl = [
|
|
|
19143
19148
|
}), n || qn.ManageAutoAdvance(e);
|
|
19144
19149
|
},
|
|
19145
19150
|
returnAfterPlayerAnswer: !0
|
|
19146
|
-
}),
|
|
19151
|
+
}), z1 = () => {
|
|
19147
19152
|
const e = Zi("text", []);
|
|
19148
19153
|
return (t, n) => {
|
|
19149
19154
|
const r = e(t, n);
|
|
@@ -19151,7 +19156,7 @@ const Tl = [
|
|
|
19151
19156
|
text: n.code.substring(1, n.code.length - 1)
|
|
19152
19157
|
}, r;
|
|
19153
19158
|
};
|
|
19154
|
-
},
|
|
19159
|
+
}, Q1 = q.FromOptions({
|
|
19155
19160
|
keyword: "text",
|
|
19156
19161
|
argTypes: [],
|
|
19157
19162
|
runner: async (e, t) => {
|
|
@@ -19163,9 +19168,9 @@ const Tl = [
|
|
|
19163
19168
|
interactive: !0
|
|
19164
19169
|
});
|
|
19165
19170
|
},
|
|
19166
|
-
parser:
|
|
19171
|
+
parser: z1(),
|
|
19167
19172
|
returnAfterPlayerAnswer: !0
|
|
19168
|
-
}),
|
|
19173
|
+
}), Y1 = new q(
|
|
19169
19174
|
"add_item",
|
|
19170
19175
|
[
|
|
19171
19176
|
{ name: "id", type: "string" },
|
|
@@ -19178,7 +19183,7 @@ const Tl = [
|
|
|
19178
19183
|
amount: n
|
|
19179
19184
|
});
|
|
19180
19185
|
}
|
|
19181
|
-
),
|
|
19186
|
+
), J1 = new q(
|
|
19182
19187
|
"remove_item",
|
|
19183
19188
|
[
|
|
19184
19189
|
{ name: "id", type: "string" },
|
|
@@ -19191,7 +19196,7 @@ const Tl = [
|
|
|
19191
19196
|
amount: n
|
|
19192
19197
|
});
|
|
19193
19198
|
}
|
|
19194
|
-
),
|
|
19199
|
+
), X1 = new q(
|
|
19195
19200
|
"has_item?",
|
|
19196
19201
|
[
|
|
19197
19202
|
{ name: "id", type: "string" },
|
|
@@ -19201,35 +19206,35 @@ const Tl = [
|
|
|
19201
19206
|
const { id: t, amount: n } = e.options;
|
|
19202
19207
|
return Dt().hasItem(t, n);
|
|
19203
19208
|
}
|
|
19204
|
-
),
|
|
19209
|
+
), Z1 = new q(
|
|
19205
19210
|
"item_amount?",
|
|
19206
19211
|
[{ name: "id", type: "string" }],
|
|
19207
19212
|
async (e) => {
|
|
19208
19213
|
const { id: t } = e.options;
|
|
19209
19214
|
return Dt().getItemAmount(t);
|
|
19210
19215
|
}
|
|
19211
|
-
),
|
|
19216
|
+
), ek = new q(
|
|
19212
19217
|
"enable_interaction",
|
|
19213
19218
|
[{ name: "tag", type: "string" }],
|
|
19214
19219
|
async (e) => {
|
|
19215
19220
|
const t = e.options.tag;
|
|
19216
19221
|
Dt().enableInteraction(t);
|
|
19217
19222
|
}
|
|
19218
|
-
),
|
|
19223
|
+
), tk = new q(
|
|
19219
19224
|
"disable_interaction",
|
|
19220
19225
|
[{ name: "tag", type: "string" }],
|
|
19221
19226
|
async (e) => {
|
|
19222
19227
|
const t = e.options.tag;
|
|
19223
19228
|
Dt().disableInteraction(t);
|
|
19224
19229
|
}
|
|
19225
|
-
),
|
|
19230
|
+
), nk = new q(
|
|
19226
19231
|
"start_quest",
|
|
19227
19232
|
[{ name: "questId", type: "string" }],
|
|
19228
19233
|
async (e) => {
|
|
19229
19234
|
const t = e.options.questId;
|
|
19230
19235
|
Pt().startQuest(t);
|
|
19231
19236
|
}
|
|
19232
|
-
),
|
|
19237
|
+
), rk = new q(
|
|
19233
19238
|
"start_objective",
|
|
19234
19239
|
[
|
|
19235
19240
|
{ name: "questId", type: "string" },
|
|
@@ -19239,7 +19244,7 @@ const Tl = [
|
|
|
19239
19244
|
const { questId: t, objectiveId: n } = e.options;
|
|
19240
19245
|
Pt().startObjective(t, n);
|
|
19241
19246
|
}
|
|
19242
|
-
),
|
|
19247
|
+
), ik = new q(
|
|
19243
19248
|
"complete_objective",
|
|
19244
19249
|
[
|
|
19245
19250
|
{ name: "questId", type: "string" },
|
|
@@ -19249,7 +19254,7 @@ const Tl = [
|
|
|
19249
19254
|
const { questId: t, objectiveId: n } = e.options;
|
|
19250
19255
|
Pt().completeObjective(t, n);
|
|
19251
19256
|
}
|
|
19252
|
-
),
|
|
19257
|
+
), ok = new q(
|
|
19253
19258
|
"complete_quest",
|
|
19254
19259
|
[
|
|
19255
19260
|
{ name: "questId", type: "string" },
|
|
@@ -19259,19 +19264,19 @@ const Tl = [
|
|
|
19259
19264
|
const { questId: t, ending: n } = e.options;
|
|
19260
19265
|
Pt().completeQuest(t, n);
|
|
19261
19266
|
}
|
|
19262
|
-
),
|
|
19267
|
+
), sk = new q("quest_completed?", [{ name: "questId", type: "string" }], async (e) => {
|
|
19263
19268
|
const { questId: t } = e.options;
|
|
19264
19269
|
return Pt().isQuestCompleted(t);
|
|
19265
|
-
}),
|
|
19270
|
+
}), ak = new q("quest_succeeded?", [{ name: "questId", type: "string" }], async (e) => {
|
|
19266
19271
|
const { questId: t } = e.options;
|
|
19267
19272
|
return Pt().isQuestSucceeded(t);
|
|
19268
|
-
}),
|
|
19273
|
+
}), lk = new q("quest_failed?", [{ name: "questId", type: "string" }], async (e) => {
|
|
19269
19274
|
const { questId: t } = e.options;
|
|
19270
19275
|
return Pt().isQuestFailed(t);
|
|
19271
|
-
}),
|
|
19276
|
+
}), ck = new q("quest_ending?", [{ name: "questId", type: "string" }], async (e) => {
|
|
19272
19277
|
const { questId: t } = e.options;
|
|
19273
19278
|
return Pt().getQuestEnding(t);
|
|
19274
|
-
}),
|
|
19279
|
+
}), uk = new q(
|
|
19275
19280
|
"quest_has_ending?",
|
|
19276
19281
|
[
|
|
19277
19282
|
{ name: "questId", type: "string" },
|
|
@@ -19281,7 +19286,7 @@ const Tl = [
|
|
|
19281
19286
|
const { questId: t, ending: n } = e.options;
|
|
19282
19287
|
return Pt().questHasEnding(t, n);
|
|
19283
19288
|
}
|
|
19284
|
-
),
|
|
19289
|
+
), dk = new q(
|
|
19285
19290
|
"objective_completed?",
|
|
19286
19291
|
[
|
|
19287
19292
|
{ name: "questId", type: "string" },
|
|
@@ -19291,10 +19296,10 @@ const Tl = [
|
|
|
19291
19296
|
const { questId: t, objectiveId: n } = e.options;
|
|
19292
19297
|
return Pt().isObjectiveCompleted(t, n);
|
|
19293
19298
|
}
|
|
19294
|
-
),
|
|
19299
|
+
), fk = new q("quest_started?", [{ name: "questId", type: "string" }], async (e) => {
|
|
19295
19300
|
const { questId: t } = e.options;
|
|
19296
19301
|
return Pt().isQuestStarted(t);
|
|
19297
|
-
}),
|
|
19302
|
+
}), pk = new q(
|
|
19298
19303
|
"objective_started?",
|
|
19299
19304
|
[
|
|
19300
19305
|
{ name: "questId", type: "string" },
|
|
@@ -19304,13 +19309,13 @@ const Tl = [
|
|
|
19304
19309
|
const { questId: t, objectiveId: n } = e.options;
|
|
19305
19310
|
return Pt().isObjectiveStarted(t, n);
|
|
19306
19311
|
}
|
|
19307
|
-
),
|
|
19312
|
+
), mk = q.FromOptions({
|
|
19308
19313
|
keyword: "wait",
|
|
19309
19314
|
argTypes: [{ name: "duration", type: "number" }],
|
|
19310
19315
|
runner: async (e) => {
|
|
19311
19316
|
await Kt(e.options.duration);
|
|
19312
19317
|
}
|
|
19313
|
-
}),
|
|
19318
|
+
}), hk = new q(
|
|
19314
19319
|
"notify",
|
|
19315
19320
|
[
|
|
19316
19321
|
{ name: "text", type: "string" },
|
|
@@ -19321,25 +19326,25 @@ const Tl = [
|
|
|
19321
19326
|
const { text: t, icon: n, description: r } = e.options;
|
|
19322
19327
|
Vt().addNotification(t, r, n);
|
|
19323
19328
|
}
|
|
19324
|
-
),
|
|
19329
|
+
), yk = new q(
|
|
19325
19330
|
"disable_notifications",
|
|
19326
19331
|
[],
|
|
19327
19332
|
async (e) => {
|
|
19328
19333
|
Vt().disableNotifications();
|
|
19329
19334
|
}
|
|
19330
|
-
),
|
|
19335
|
+
), gk = new q(
|
|
19331
19336
|
"enable_notifications",
|
|
19332
19337
|
[],
|
|
19333
19338
|
async (e) => {
|
|
19334
19339
|
Vt().enableNotifications();
|
|
19335
19340
|
}
|
|
19336
|
-
),
|
|
19341
|
+
), vk = new q(
|
|
19337
19342
|
"clear_dialog",
|
|
19338
19343
|
[],
|
|
19339
19344
|
async (e) => {
|
|
19340
19345
|
Ye().clearDialog();
|
|
19341
19346
|
}
|
|
19342
|
-
),
|
|
19347
|
+
), _k = new q(
|
|
19343
19348
|
"if",
|
|
19344
19349
|
[{ name: "condition", type: "boolean" }],
|
|
19345
19350
|
async (e) => {
|
|
@@ -19418,7 +19423,7 @@ const Tl = [
|
|
|
19418
19423
|
newLine: n
|
|
19419
19424
|
};
|
|
19420
19425
|
}
|
|
19421
|
-
),
|
|
19426
|
+
), bk = new q(
|
|
19422
19427
|
"==",
|
|
19423
19428
|
"any",
|
|
19424
19429
|
async (e) => {
|
|
@@ -19432,7 +19437,7 @@ const Tl = [
|
|
|
19432
19437
|
t = r;
|
|
19433
19438
|
return n;
|
|
19434
19439
|
}
|
|
19435
|
-
),
|
|
19440
|
+
), Tk = new q(
|
|
19436
19441
|
">",
|
|
19437
19442
|
[
|
|
19438
19443
|
{ name: "a", type: "any" },
|
|
@@ -19442,7 +19447,7 @@ const Tl = [
|
|
|
19442
19447
|
const { a: t, b: n } = e.options;
|
|
19443
19448
|
return t > n;
|
|
19444
19449
|
}
|
|
19445
|
-
),
|
|
19450
|
+
), Sk = new q(
|
|
19446
19451
|
"<",
|
|
19447
19452
|
[
|
|
19448
19453
|
{ name: "a", type: "any" },
|
|
@@ -19452,7 +19457,7 @@ const Tl = [
|
|
|
19452
19457
|
const { a: t, b: n } = e.options;
|
|
19453
19458
|
return t < n;
|
|
19454
19459
|
}
|
|
19455
|
-
),
|
|
19460
|
+
), wk = new q(
|
|
19456
19461
|
">=",
|
|
19457
19462
|
[
|
|
19458
19463
|
{ name: "a", type: "any" },
|
|
@@ -19462,7 +19467,7 @@ const Tl = [
|
|
|
19462
19467
|
const { a: t, b: n } = e.options;
|
|
19463
19468
|
return t >= n;
|
|
19464
19469
|
}
|
|
19465
|
-
), $
|
|
19470
|
+
), $k = new q(
|
|
19466
19471
|
"<=",
|
|
19467
19472
|
[
|
|
19468
19473
|
{ name: "a", type: "any" },
|
|
@@ -19472,7 +19477,7 @@ const Tl = [
|
|
|
19472
19477
|
const { a: t, b: n } = e.options;
|
|
19473
19478
|
return t <= n;
|
|
19474
19479
|
}
|
|
19475
|
-
),
|
|
19480
|
+
), Ck = new q(
|
|
19476
19481
|
"!=",
|
|
19477
19482
|
[
|
|
19478
19483
|
{ name: "a", type: "any" },
|
|
@@ -19482,25 +19487,25 @@ const Tl = [
|
|
|
19482
19487
|
const { a: t, b: n } = e.options;
|
|
19483
19488
|
return t != n;
|
|
19484
19489
|
}
|
|
19485
|
-
),
|
|
19490
|
+
), kk = new q(
|
|
19486
19491
|
"!",
|
|
19487
19492
|
[{ name: "a", type: "any" }],
|
|
19488
19493
|
async (e) => {
|
|
19489
19494
|
const { a: t } = e.options;
|
|
19490
19495
|
return !t;
|
|
19491
19496
|
}
|
|
19492
|
-
),
|
|
19497
|
+
), Ok = new q(
|
|
19493
19498
|
"&&",
|
|
19494
19499
|
"any",
|
|
19495
19500
|
async (e) => {
|
|
19496
19501
|
const t = e.args;
|
|
19497
19502
|
return e.args.length < 2 && ce(e, "requires at least two arguments"), t.reduce((n, r) => n && r, !0);
|
|
19498
19503
|
}
|
|
19499
|
-
),
|
|
19504
|
+
), Ak = new q(
|
|
19500
19505
|
"||",
|
|
19501
19506
|
"any",
|
|
19502
19507
|
async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => t || n, !1))
|
|
19503
|
-
),
|
|
19508
|
+
), Ek = new q(
|
|
19504
19509
|
"?",
|
|
19505
19510
|
[
|
|
19506
19511
|
{ name: "a", type: "any" },
|
|
@@ -19511,27 +19516,27 @@ const Tl = [
|
|
|
19511
19516
|
const { a: t, b: n, c: r } = e.options;
|
|
19512
19517
|
return t ? n : r;
|
|
19513
19518
|
}
|
|
19514
|
-
),
|
|
19519
|
+
), Ik = new q(
|
|
19515
19520
|
"+",
|
|
19516
19521
|
"any",
|
|
19517
19522
|
async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => typeof n == "number" ? t + n : (ce(e, "requires all arguments to be numbers"), t), 0))
|
|
19518
|
-
),
|
|
19523
|
+
), Pk = new q(
|
|
19519
19524
|
"-",
|
|
19520
19525
|
"any",
|
|
19521
19526
|
async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.slice(1).reduce((t, n) => typeof n == "number" ? t - n : (ce(e, "requires all arguments to be numbers"), t), e.args[0]))
|
|
19522
|
-
),
|
|
19527
|
+
), Nk = new q(
|
|
19523
19528
|
"neg",
|
|
19524
19529
|
[{ name: "a", type: "number" }],
|
|
19525
19530
|
async (e) => (e.args.length !== 1 && ce(e, "requires one argument"), -e.options.a)
|
|
19526
|
-
),
|
|
19531
|
+
), xk = new q(
|
|
19527
19532
|
"abs",
|
|
19528
19533
|
[{ name: "a", type: "number" }],
|
|
19529
19534
|
async (e) => (e.args.length !== 1 && ce(e, "requires one argument"), Math.abs(e.options.a))
|
|
19530
|
-
),
|
|
19535
|
+
), jk = new q(
|
|
19531
19536
|
"*",
|
|
19532
19537
|
"any",
|
|
19533
19538
|
async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => typeof n == "number" ? t * n : (ce(e, "requires all arguments to be numbers"), t), 1))
|
|
19534
|
-
),
|
|
19539
|
+
), Lk = new q(
|
|
19535
19540
|
"/",
|
|
19536
19541
|
"any",
|
|
19537
19542
|
async (e) => {
|
|
@@ -19539,7 +19544,7 @@ const Tl = [
|
|
|
19539
19544
|
const t = e.args[0] / e.args[1];
|
|
19540
19545
|
return e.args.slice(2).reduce((n, r) => typeof r == "number" ? n / r : (ce(e, "requires all arguments to be numbers"), n), t);
|
|
19541
19546
|
}
|
|
19542
|
-
),
|
|
19547
|
+
), Dk = async (e) => {
|
|
19543
19548
|
const { prompt: t, choices: n } = e.staticOptions, r = [];
|
|
19544
19549
|
for (const [, o] of n.entries()) {
|
|
19545
19550
|
const l = await es(o.prompt);
|
|
@@ -19562,9 +19567,9 @@ const Tl = [
|
|
|
19562
19567
|
allowed: u
|
|
19563
19568
|
};
|
|
19564
19569
|
}).filter((o) => o.choice), s = await xf(t, i);
|
|
19565
|
-
return await
|
|
19570
|
+
return await Uk(e, s);
|
|
19566
19571
|
};
|
|
19567
|
-
function
|
|
19572
|
+
function Rk(e, t) {
|
|
19568
19573
|
t.branch || e.parserContext.error(
|
|
19569
19574
|
t.line,
|
|
19570
19575
|
`Choice option doesn't have any branch to go to (${t.code} - ${t.line})`
|
|
@@ -19591,7 +19596,7 @@ function R1(e, t) {
|
|
|
19591
19596
|
skillBranches: n
|
|
19592
19597
|
};
|
|
19593
19598
|
}
|
|
19594
|
-
const
|
|
19599
|
+
const Mk = (e, t) => {
|
|
19595
19600
|
let n = e.currentLine;
|
|
19596
19601
|
Zi("choice", []);
|
|
19597
19602
|
const { line: r } = e, i = t.command;
|
|
@@ -19604,19 +19609,19 @@ const M1 = (e, t) => {
|
|
|
19604
19609
|
const l = r.branch.slice(1).map((u, c) => (u.branch || e.parserContext.error(
|
|
19605
19610
|
u.line,
|
|
19606
19611
|
`Choice option doesn't have any branch to go to (${u.code})`
|
|
19607
|
-
), u =
|
|
19612
|
+
), u = Bk(e.parserContext, u), Rk(e, u)));
|
|
19608
19613
|
return i.staticOptions = {
|
|
19609
19614
|
prompt: e.processCommandsFunction(e.parserContext, [s], r)[0],
|
|
19610
19615
|
choices: l
|
|
19611
19616
|
}, n++, {
|
|
19612
19617
|
newLine: n
|
|
19613
19618
|
};
|
|
19614
|
-
},
|
|
19619
|
+
}, Fk = q.FromOptions({
|
|
19615
19620
|
keyword: "choice",
|
|
19616
19621
|
argTypes: [],
|
|
19617
|
-
runner:
|
|
19618
|
-
parser:
|
|
19619
|
-
}),
|
|
19622
|
+
runner: Dk,
|
|
19623
|
+
parser: Mk
|
|
19624
|
+
}), Uk = async (e, t) => {
|
|
19620
19625
|
const n = t, r = Ie(), { choices: i } = e.staticOptions, s = i[n], o = e.options.choiceResults[n], l = e.staticOptions.prompt;
|
|
19621
19626
|
bl().trackChoice(l.code, s.prompt.code);
|
|
19622
19627
|
let u = o.text, c;
|
|
@@ -19638,7 +19643,7 @@ const M1 = (e, t) => {
|
|
|
19638
19643
|
return await r.addAndRunBlock(m);
|
|
19639
19644
|
}
|
|
19640
19645
|
};
|
|
19641
|
-
function
|
|
19646
|
+
function Bk(e, t) {
|
|
19642
19647
|
return {
|
|
19643
19648
|
code: `choicePrompt ${t.code}`,
|
|
19644
19649
|
indentation: t.indentation,
|
|
@@ -19647,29 +19652,29 @@ function B1(e, t) {
|
|
|
19647
19652
|
expression: ["choicePrompt", ...t.expression]
|
|
19648
19653
|
};
|
|
19649
19654
|
}
|
|
19650
|
-
const
|
|
19655
|
+
const Vk = new q(
|
|
19651
19656
|
"choicePrompt",
|
|
19652
19657
|
"any",
|
|
19653
19658
|
// Will return null if the choice prompt should not be used (failed condition or hidden skillcheck). Otherwise, returns the info needed to display the prompt + later run the skillcheck
|
|
19654
19659
|
async (e) => {
|
|
19655
19660
|
const t = e.args;
|
|
19656
|
-
return t.length === 1 ?
|
|
19661
|
+
return t.length === 1 ? qk(t[0]) : t.length === 2 ? Hk(t) : t.length > 2 ? t[0] === "roll" || t[1] === "roll" ? Gk(e, t) : Kk(e, t) : (ce(e, "Invalid choice prompt line"), {
|
|
19657
19662
|
text: t[0]
|
|
19658
19663
|
});
|
|
19659
19664
|
}
|
|
19660
19665
|
);
|
|
19661
|
-
function
|
|
19666
|
+
function qk(e) {
|
|
19662
19667
|
return {
|
|
19663
19668
|
text: e
|
|
19664
19669
|
};
|
|
19665
19670
|
}
|
|
19666
|
-
function
|
|
19671
|
+
function Hk(e) {
|
|
19667
19672
|
return {
|
|
19668
19673
|
text: e[1],
|
|
19669
19674
|
flag: e[0]
|
|
19670
19675
|
};
|
|
19671
19676
|
}
|
|
19672
|
-
function
|
|
19677
|
+
function Kk(e, t) {
|
|
19673
19678
|
const n = t[1] === "if" ? 1 : 2;
|
|
19674
19679
|
if (t[n] !== "if")
|
|
19675
19680
|
return ce(e, "Invalid choice prompt line"), {
|
|
@@ -19683,7 +19688,7 @@ function K1(e, t) {
|
|
|
19683
19688
|
};
|
|
19684
19689
|
return r && (o.flag = t[0]), o;
|
|
19685
19690
|
}
|
|
19686
|
-
function
|
|
19691
|
+
function Gk(e, t) {
|
|
19687
19692
|
const n = t[0] === "roll" ? 0 : 1, r = n === 1, i = n, s = t[i + 1];
|
|
19688
19693
|
let o = {}, l = i + 2;
|
|
19689
19694
|
Ap(s) ? o = {
|
|
@@ -19740,7 +19745,7 @@ const Vp = q.FromOptions({
|
|
|
19740
19745
|
}
|
|
19741
19746
|
});
|
|
19742
19747
|
Vp.onPlayerAnswered = async (e, t) => (typeof t != "string" && ce(e, "The player's answer should be a string"), t);
|
|
19743
|
-
const
|
|
19748
|
+
const Wk = q.FromOptions({
|
|
19744
19749
|
keyword: "text_field_prompt",
|
|
19745
19750
|
argTypes: [{ name: "prompt", type: "string" }],
|
|
19746
19751
|
runner: async (e) => {
|
|
@@ -19752,7 +19757,7 @@ const W1 = q.FromOptions({
|
|
|
19752
19757
|
};
|
|
19753
19758
|
Ye().addDialog(t);
|
|
19754
19759
|
}
|
|
19755
|
-
}),
|
|
19760
|
+
}), zk = new q(
|
|
19756
19761
|
"random",
|
|
19757
19762
|
[
|
|
19758
19763
|
{ name: "a", type: "number" },
|
|
@@ -19765,7 +19770,7 @@ const W1 = q.FromOptions({
|
|
|
19765
19770
|
"random command needs two numbers as parameters"
|
|
19766
19771
|
), 0) : Math.floor(Math.random() * (n - t + 1)) + t;
|
|
19767
19772
|
}
|
|
19768
|
-
),
|
|
19773
|
+
), Qk = new q(
|
|
19769
19774
|
"random_float",
|
|
19770
19775
|
[
|
|
19771
19776
|
{ name: "a", type: "number" },
|
|
@@ -19778,7 +19783,7 @@ const W1 = q.FromOptions({
|
|
|
19778
19783
|
"random_float command needs two numbers as parameters"
|
|
19779
19784
|
), 0) : Math.random() * (n - t) + t;
|
|
19780
19785
|
}
|
|
19781
|
-
),
|
|
19786
|
+
), Yk = new q(
|
|
19782
19787
|
"random_from_args",
|
|
19783
19788
|
[],
|
|
19784
19789
|
async (e) => {
|
|
@@ -19788,7 +19793,7 @@ const W1 = q.FromOptions({
|
|
|
19788
19793
|
"random_from_args command needs at least one argument"
|
|
19789
19794
|
), 0) : t[Math.floor(Math.random() * t.length)];
|
|
19790
19795
|
}
|
|
19791
|
-
),
|
|
19796
|
+
), Jk = new q(
|
|
19792
19797
|
"random_from_array",
|
|
19793
19798
|
[{ name: "a", type: "any" }],
|
|
19794
19799
|
async (e) => {
|
|
@@ -19798,11 +19803,11 @@ const W1 = q.FromOptions({
|
|
|
19798
19803
|
"random_from_array command needs an array as parameter"
|
|
19799
19804
|
), 0);
|
|
19800
19805
|
}
|
|
19801
|
-
),
|
|
19806
|
+
), Xk = new q(
|
|
19802
19807
|
"concat",
|
|
19803
19808
|
"any",
|
|
19804
19809
|
async (e) => (e.args.length < 2 && ce(e, "requires at least two arguments"), e.args.reduce((t, n) => typeof n == "string" ? `${t}${n}` : (ce(e, "requires all arguments to be strings"), t), ""))
|
|
19805
|
-
),
|
|
19810
|
+
), Zk = new q(
|
|
19806
19811
|
"join",
|
|
19807
19812
|
"any",
|
|
19808
19813
|
async (e) => {
|
|
@@ -20415,7 +20420,7 @@ const KO = q.FromOptions({
|
|
|
20415
20420
|
argTypes: [{ name: "setting", type: "string" }],
|
|
20416
20421
|
runner: async (e) => {
|
|
20417
20422
|
const { setting: t } = e.options;
|
|
20418
|
-
return t || ce(e, "get_setting command needs a setting id"),
|
|
20423
|
+
return t || ce(e, "get_setting command needs a setting id"), In().getSetting(t);
|
|
20419
20424
|
}
|
|
20420
20425
|
}), rA = q.FromOptions({
|
|
20421
20426
|
keyword: "set_setting",
|
|
@@ -20425,7 +20430,7 @@ const KO = q.FromOptions({
|
|
|
20425
20430
|
],
|
|
20426
20431
|
runner: async (e) => {
|
|
20427
20432
|
const { setting: t, value: n } = e.options;
|
|
20428
|
-
t || ce(e, "set_setting command needs a setting id"),
|
|
20433
|
+
t || ce(e, "set_setting command needs a setting id"), In().setSetting(t, n);
|
|
20429
20434
|
}
|
|
20430
20435
|
}), iA = q.FromOptions({
|
|
20431
20436
|
keyword: "object_entries",
|
|
@@ -20568,7 +20573,7 @@ const pA = fA("js-commands", Fh), mA = q.FromOptions({
|
|
|
20568
20573
|
}
|
|
20569
20574
|
});
|
|
20570
20575
|
function yA(e) {
|
|
20571
|
-
e.addCommand(
|
|
20576
|
+
e.addCommand(Fk), e.addCommand(Vk), e.addCommand(_k), e.addCommand(_1), e.addCommand(b1), e.addCommand(T1), e.addCommand(S1), e.addCommand(w1), e.addCommand(vk), e.addCommand(hk), e.addCommand(yk), e.addCommand(gk), e.addCommand(R1), e.addCommand(L1), e.addCommand(D1), e.addCommand(M1), e.addCommand(H1), e.addCommand(V1), e.addCommand(q1), e.addCommand(dO), e.addCommand(fO), e.addCommand(pO), e.addCommand(mO), e.addCommand(mk), e.addCommand(bk), e.addCommand(Tk), e.addCommand(Sk), e.addCommand(wk), e.addCommand($k), e.addCommand(Ck), e.addCommand(kk), e.addCommand(Ok), e.addCommand(Ak), e.addCommand(Ek), e.addCommand(Ik), e.addCommand(Pk), e.addCommand(jk), e.addCommand(Lk), e.addCommand(Nk), e.addCommand(xk), e.addCommand(B1), e.addCommand(U1), e.addCommand(Q1), e.addCommand(K1), e.addCommand(G1), e.addCommand(W1), e.addCommand($1), e.addCommand(C1), e.addCommand(k1), e.addCommand(O1), e.addCommand(A1), e.addCommand(E1), e.addCommand(I1), e.addCommand(N1), e.addCommand(P1), e.addCommand(x1), e.addCommand(nk), e.addCommand(rk), e.addCommand(ik), e.addCommand(ok), e.addCommand(fk), e.addCommand(pk), e.addCommand(sk), e.addCommand(ak), e.addCommand(lk), e.addCommand(ck), e.addCommand(uk), e.addCommand(dk), e.addCommand(Y1), e.addCommand(J1), e.addCommand(ek), e.addCommand(tk), e.addCommand(X1), e.addCommand(Z1), e.addCommand(u1), e.addCommand(d1), e.addCommand(f1), e.addCommand(h1), e.addCommand(v1), e.addCommand(y1), e.addCommand(g1), e.addCommand(p1), e.addCommand(m1), e.addCommand(Vp), e.addCommand(Wk), e.addCommand(zk), e.addCommand(Qk), e.addCommand(Yk), e.addCommand(Jk), e.addCommand(Xk), e.addCommand(Zk), e.addCommand(eO), e.addCommand(tO), e.addCommand(nO), e.addCommand(rO), e.addCommand(iO), e.addCommand(oO), e.addCommand(sO), e.addCommand(lO), e.addCommand(aO), e.addCommand(cO), e.addCommand(uO), e.addCommand(hO), e.addCommand(yO), e.addCommand(gO), e.addCommand(vO), e.addCommand(_O), e.addCommand(bO), e.addCommand(TO), e.addCommand(SO), e.addCommand(wO), e.addCommand($O), e.addCommand(CO), e.addCommand(kO), e.addCommand(OO), e.addCommand(AO), e.addCommand(EO), e.addCommand(IO), e.addCommand(PO), e.addCommand(NO), e.addCommand(xO), e.addCommand(oA), e.addCommand(sA), e.addCommand(iA), e.addCommand(aA), e.addCommand(lA), e.addCommand(cA), e.addCommand(FO), e.addCommand(UO), e.addCommand(BO), e.addCommand(VO), e.addCommand(qO), e.addCommand(HO), e.addCommand(KO), e.addCommand(GO), e.addCommand(WO), e.addCommand(zO), e.addCommand(QO), e.addCommand(YO), e.addCommand(JO), e.addCommand(XO), e.addCommand(ZO), e.addCommand(eA), e.addCommand(tA), e.addCommand(rA), e.addCommand(nA), e.addCommand(b$), e.addCommand(uA), e.addCommand(mA), e.addCommand(hA);
|
|
20572
20577
|
}
|
|
20573
20578
|
const gA = $e({
|
|
20574
20579
|
data() {
|
|
@@ -20584,7 +20589,7 @@ const gA = $e({
|
|
|
20584
20589
|
};
|
|
20585
20590
|
},
|
|
20586
20591
|
mounted() {
|
|
20587
|
-
const e = Lt(), t =
|
|
20592
|
+
const e = Lt(), t = An.Howler.volume();
|
|
20588
20593
|
this.volumes.push({ mode: "master", volume: t }), e.modes.forEach((n, r) => {
|
|
20589
20594
|
this.volumes.push({
|
|
20590
20595
|
mode: r,
|
|
@@ -20598,7 +20603,7 @@ const gA = $e({
|
|
|
20598
20603
|
e === "master" ? Lt().setMasterVolume(n.value) : Lt().setModeVolume(e, n.value);
|
|
20599
20604
|
},
|
|
20600
20605
|
toggleMute() {
|
|
20601
|
-
this.muted ? (
|
|
20606
|
+
this.muted ? (An.Howler.mute(!1), this.muted = !1) : (An.Howler.mute(!0), this.muted = !0);
|
|
20602
20607
|
}
|
|
20603
20608
|
}
|
|
20604
20609
|
}), vA = { class: "volume-controls" }, _A = /* @__PURE__ */ U("h3", { class: "nrt-subtitle" }, "Volume", -1), bA = {
|
|
@@ -20637,12 +20642,12 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20637
20642
|
settingId: {}
|
|
20638
20643
|
},
|
|
20639
20644
|
setup(e) {
|
|
20640
|
-
const t = e, n =
|
|
20645
|
+
const t = e, n = In(), r = V(() => n.getSetting(t.settingId)), i = le(r.value), s = V(() => n.getSettingSchema(t.settingId));
|
|
20641
20646
|
function o(l) {
|
|
20642
20647
|
let u = l;
|
|
20643
20648
|
Rl(s.value) && (u = Math.round(u)), n.setSetting(t.settingId, u);
|
|
20644
20649
|
}
|
|
20645
|
-
return
|
|
20650
|
+
return kn(i, (l) => {
|
|
20646
20651
|
o(l);
|
|
20647
20652
|
}), (l, u) => (D(), J(He, null, [
|
|
20648
20653
|
U("div", $A, [
|
|
@@ -20692,7 +20697,7 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20692
20697
|
}), xA = { class: "container mx-auto settings-menu-container" }, jA = /* @__PURE__ */ U("h2", { class: "settings-menu-title subtitle text-center" }, "Settings", -1), LA = /* @__PURE__ */ $e({
|
|
20693
20698
|
__name: "settings-menu",
|
|
20694
20699
|
setup(e) {
|
|
20695
|
-
const t =
|
|
20700
|
+
const t = In(), n = V(() => t.getAllSettingSchemas());
|
|
20696
20701
|
return (r, i) => (D(), J("div", xA, [
|
|
20697
20702
|
jA,
|
|
20698
20703
|
(D(!0), J(He, null, Je(n.value, (s, o) => (D(), Ce(NA, {
|
|
@@ -20826,11 +20831,11 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20826
20831
|
}
|
|
20827
20832
|
function l(c) {
|
|
20828
20833
|
return {
|
|
20829
|
-
backgroundImage: `url(${Wt(
|
|
20834
|
+
backgroundImage: `url(${Wt($n(c).icon)})`
|
|
20830
20835
|
};
|
|
20831
20836
|
}
|
|
20832
20837
|
function u(c) {
|
|
20833
|
-
return
|
|
20838
|
+
return $n(c).name;
|
|
20834
20839
|
}
|
|
20835
20840
|
return ft(() => {
|
|
20836
20841
|
i.value = zn({
|
|
@@ -20872,7 +20877,7 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20872
20877
|
},
|
|
20873
20878
|
emits: ["use", "close"],
|
|
20874
20879
|
setup(e, { emit: t }) {
|
|
20875
|
-
const n = e, r = le(null), i = V(() =>
|
|
20880
|
+
const n = e, r = le(null), i = V(() => $n(n.item.id)), s = V(() => ({
|
|
20876
20881
|
backgroundImage: `url(${Wt(i.value.icon)})`
|
|
20877
20882
|
})), o = t, l = V(() => Dt().canUseItem(n.item));
|
|
20878
20883
|
function u() {
|
|
@@ -20882,7 +20887,7 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20882
20887
|
o("close");
|
|
20883
20888
|
}
|
|
20884
20889
|
return ft(() => {
|
|
20885
|
-
r.value =
|
|
20890
|
+
r.value = Xe().registerInputListener("item-details", {
|
|
20886
20891
|
continue: {
|
|
20887
20892
|
press: () => {
|
|
20888
20893
|
l.value && u();
|
|
@@ -20895,7 +20900,7 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20895
20900
|
}
|
|
20896
20901
|
});
|
|
20897
20902
|
}), _t(() => {
|
|
20898
|
-
r.value && (
|
|
20903
|
+
r.value && (Xe().unregisterInputListener(r.value), r.value = null);
|
|
20899
20904
|
}), (m, a) => (D(), J("div", null, [
|
|
20900
20905
|
U("div", QA, [
|
|
20901
20906
|
U("div", YA, [
|
|
@@ -20965,7 +20970,7 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20965
20970
|
inputListener: {}
|
|
20966
20971
|
},
|
|
20967
20972
|
setup(e) {
|
|
20968
|
-
const t = Dt(), n = V(() => t.items), r = V(() => Object.values(n.value).filter((o) => o.amount > 0 ? !0 :
|
|
20973
|
+
const t = Dt(), n = V(() => t.items), r = V(() => Object.values(n.value).filter((o) => o.amount > 0 ? !0 : !!$n(o.id).showIfEmpty)), i = V(() => {
|
|
20969
20974
|
const o = tt().items.categories, l = [];
|
|
20970
20975
|
if (o.length > 1) {
|
|
20971
20976
|
const u = {
|
|
@@ -20977,7 +20982,7 @@ const wA = /* @__PURE__ */ hn(gA, [["render", SA]]), $A = { class: "settings-wid
|
|
|
20977
20982
|
}
|
|
20978
20983
|
for (const u in o) {
|
|
20979
20984
|
const c = o[u], m = c.id, a = r.value.filter(
|
|
20980
|
-
(d) =>
|
|
20985
|
+
(d) => $n(d.id).category === m
|
|
20981
20986
|
);
|
|
20982
20987
|
l.push({
|
|
20983
20988
|
id: m,
|
|
@@ -21802,7 +21807,7 @@ const dI = "body{font-size:52px}", fI = {
|
|
|
21802
21807
|
}, hI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21803
21808
|
__proto__: null,
|
|
21804
21809
|
BaseConfigInputSchema: Ca,
|
|
21805
|
-
BuiltInScene:
|
|
21810
|
+
BuiltInScene: bn,
|
|
21806
21811
|
CommandPlugin: q,
|
|
21807
21812
|
ConfigInputSchema: Mf,
|
|
21808
21813
|
ConfigInputSchemaWithCommon: Df,
|
|
@@ -21843,7 +21848,7 @@ const dI = "body{font-size:52px}", fI = {
|
|
|
21843
21848
|
getDataUrl: yl,
|
|
21844
21849
|
getFile: Ta,
|
|
21845
21850
|
getImageUrl: to,
|
|
21846
|
-
getItemConfig:
|
|
21851
|
+
getItemConfig: $n,
|
|
21847
21852
|
getObjectiveConfig: Fo,
|
|
21848
21853
|
getQuestConfig: lr,
|
|
21849
21854
|
getScreenConfig: eo,
|
|
@@ -21876,7 +21881,7 @@ const dI = "body{font-size:52px}", fI = {
|
|
|
21876
21881
|
useConfig: Ct,
|
|
21877
21882
|
useDialogStore: Ye,
|
|
21878
21883
|
useHud: Xt,
|
|
21879
|
-
useInputs:
|
|
21884
|
+
useInputs: Xe,
|
|
21880
21885
|
useInventory: Dt,
|
|
21881
21886
|
useMain: ke,
|
|
21882
21887
|
useMenu: jt,
|
|
@@ -22128,16 +22133,16 @@ function UI(e, t) {
|
|
|
22128
22133
|
}
|
|
22129
22134
|
var BI = wl;
|
|
22130
22135
|
const VI = /* @__PURE__ */ na(BI);
|
|
22131
|
-
let
|
|
22136
|
+
let Tn;
|
|
22132
22137
|
Re.callHook("onPageLoaded");
|
|
22133
22138
|
async function qI(e) {
|
|
22134
22139
|
Jo.setup(), console.log("Starting narrat...");
|
|
22135
22140
|
const t = Object.assign(TT(), e), n = eh();
|
|
22136
|
-
|
|
22141
|
+
Tn = dm(c1, {
|
|
22137
22142
|
options: t
|
|
22138
|
-
}),
|
|
22143
|
+
}), Tn.use(n), nT(), ke().setOptions(t), iI(Tn);
|
|
22139
22144
|
const r = await O$(t);
|
|
22140
|
-
Ct().setConfig(r), Wn(),
|
|
22145
|
+
Ct().setConfig(r), Wn(), Xe().setupInputs(), Re.pinia = n, ke(), zp(Tn), tI(Tn), rI(), wa().addButtonsFromPlugins(), yA(Re), ia.setupDebugger(t.debug), console.log(
|
|
22141
22146
|
`%c 🐀 Narrat v${Rh} %c PRODUCTION BUILD %c https://narrat.dev %c
|
|
22142
22147
|
Built at ${Mh.toLocaleString()}
|
|
22143
22148
|
Branch: ${Ml.branch}
|
|
@@ -22148,21 +22153,21 @@ async function qI(e) {
|
|
|
22148
22153
|
"font-size: 1.3rem; background: #222; color: #bada55"
|
|
22149
22154
|
), Re.callHook("onNarratSetup");
|
|
22150
22155
|
let i;
|
|
22151
|
-
return typeof t.container == "string" ? i = document.querySelector(t.container) : i = t.container, i || alert("The narrat container was not found!"), gt().setContainer(i),
|
|
22156
|
+
return typeof t.container == "string" ? i = document.querySelector(t.container) : i = t.container, i || alert("The narrat container was not found!"), gt().setContainer(i), Xe().listenToContainerInputs(), Tn.mount(i), gt().narratAppElement = document.querySelector("#narrat-app"), i.focus(), Tn;
|
|
22152
22157
|
}
|
|
22153
22158
|
async function HI() {
|
|
22154
|
-
|
|
22159
|
+
Tn.unmount(), Tn = null;
|
|
22155
22160
|
}
|
|
22156
22161
|
async function WI() {
|
|
22157
22162
|
const e = VI(ke().options);
|
|
22158
22163
|
return await HI(), await qI(e);
|
|
22159
22164
|
}
|
|
22160
22165
|
function zI(e, t) {
|
|
22161
|
-
|
|
22166
|
+
Tn.component(e, t);
|
|
22162
22167
|
}
|
|
22163
22168
|
export {
|
|
22164
22169
|
Ca as BaseConfigInputSchema,
|
|
22165
|
-
|
|
22170
|
+
bn as BuiltInScene,
|
|
22166
22171
|
q as CommandPlugin,
|
|
22167
22172
|
Mf as ConfigInputSchema,
|
|
22168
22173
|
Df as ConfigInputSchemaWithCommon,
|
|
@@ -22201,7 +22206,7 @@ export {
|
|
|
22201
22206
|
yl as getDataUrl,
|
|
22202
22207
|
Ta as getFile,
|
|
22203
22208
|
to as getImageUrl,
|
|
22204
|
-
|
|
22209
|
+
$n as getItemConfig,
|
|
22205
22210
|
Fo as getObjectiveConfig,
|
|
22206
22211
|
lr as getQuestConfig,
|
|
22207
22212
|
eo as getScreenConfig,
|
|
@@ -22238,7 +22243,7 @@ export {
|
|
|
22238
22243
|
Ct as useConfig,
|
|
22239
22244
|
Ye as useDialogStore,
|
|
22240
22245
|
Xt as useHud,
|
|
22241
|
-
|
|
22246
|
+
Xe as useInputs,
|
|
22242
22247
|
Dt as useInventory,
|
|
22243
22248
|
ke as useMain,
|
|
22244
22249
|
jt as useMenu,
|