narrat 3.12.2 → 3.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-mlpxSPKK.js → index-rccjJhyz.js} +2 -2
- package/dist/{index-mlpxSPKK.js.map → index-rccjJhyz.js.map} +1 -1
- package/dist/{lib-QdLCsV3t.js → lib-oQ9rlloA.js} +224 -224
- package/dist/lib-oQ9rlloA.js.map +1 -0
- package/dist/narrat.es.js +1 -1
- package/dist/narrat.umd.js +37 -37
- package/dist/narrat.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/lib-QdLCsV3t.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var nm = Object.defineProperty;
|
|
2
2
|
var rm = (e, t, n) => t in e ? nm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Ve = (e, t, n) => (rm(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { defineComponent as Ce, openBlock as D, createBlock as $e, Transition as Li, withCtx as Ke, createElementVNode as M, normalizeClass as Ge, createElementBlock as J, createCommentVNode as Oe, renderSlot as Jr, createTextVNode as Er, effectScope as Uc, ref as le, markRaw as wr, hasInjectionContext as im, inject as om, getCurrentInstance as sm, toRaw as Ho, watch as kn, reactive as Wr, isRef as Di, isReactive as ra, toRef as us, nextTick as Mi, computed as q, unref as ot, getCurrentScope as am, onScopeDispose as lm, toRefs as Il, normalizeStyle as Ye, toDisplayString as ye, onMounted as ft, createVNode as Ze, onUnmounted as _t, withDirectives as ir, vModelText as ri, Fragment as We, renderList as Xe, onBeforeMount as Bc, TransitionGroup as ki, Teleport as Ri, resolveDynamicComponent as Ko, resolveDirective as cm, resolveComponent as Cr, useSlots as um, shallowRef as bi, pushScopeId as qc, popScopeId as Vc, createStaticVNode as dm, normalizeProps as fm, mergeProps as Hc, vModelCheckbox as pm, createApp as mm } from "vue";
|
|
5
5
|
var Fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function ia(e) {
|
|
@@ -111,7 +111,7 @@ var Kc = { exports: {} };
|
|
|
111
111
|
var Q = Math.random().toString(36).substring(2);
|
|
112
112
|
function X() {
|
|
113
113
|
}
|
|
114
|
-
var re = void 0, Pe = 1,
|
|
114
|
+
var re = void 0, Pe = 1, Fe = 2;
|
|
115
115
|
function dt() {
|
|
116
116
|
return new TypeError("You cannot resolve a promise with itself");
|
|
117
117
|
}
|
|
@@ -136,7 +136,7 @@ var Kc = { exports: {} };
|
|
|
136
136
|
}, G);
|
|
137
137
|
}
|
|
138
138
|
function y(G, se) {
|
|
139
|
-
se._state === Pe ? b(G, se._result) : se._state ===
|
|
139
|
+
se._state === Pe ? b(G, se._result) : se._state === Fe ? $(G, se._result) : R(se, void 0, function(ae) {
|
|
140
140
|
return C(G, ae);
|
|
141
141
|
}, function(ae) {
|
|
142
142
|
return $(G, ae);
|
|
@@ -167,11 +167,11 @@ var Kc = { exports: {} };
|
|
|
167
167
|
G._state === re && (G._result = se, G._state = Pe, G._subscribers.length !== 0 && c(H, G));
|
|
168
168
|
}
|
|
169
169
|
function $(G, se) {
|
|
170
|
-
G._state === re && (G._state =
|
|
170
|
+
G._state === re && (G._state = Fe, G._result = se, c(g, G));
|
|
171
171
|
}
|
|
172
172
|
function R(G, se, ae, pe) {
|
|
173
173
|
var Se = G._subscribers, xe = Se.length;
|
|
174
|
-
G._onerror = null, Se[xe] = se, Se[xe + Pe] = ae, Se[xe +
|
|
174
|
+
G._onerror = null, Se[xe] = se, Se[xe + Pe] = ae, Se[xe + Fe] = pe, xe === 0 && G._state && c(H, G);
|
|
175
175
|
}
|
|
176
176
|
function H(G) {
|
|
177
177
|
var se = G._subscribers, ae = G._state;
|
|
@@ -195,7 +195,7 @@ var Kc = { exports: {} };
|
|
|
195
195
|
}
|
|
196
196
|
} else
|
|
197
197
|
xe = pe;
|
|
198
|
-
se._state !== re || (Se && Tt ? C(se, xe) : Tt === !1 ? $(se, Ee) : G === Pe ? b(se, xe) : G ===
|
|
198
|
+
se._state !== re || (Se && Tt ? C(se, xe) : Tt === !1 ? $(se, Ee) : G === Pe ? b(se, xe) : G === Fe && $(se, xe));
|
|
199
199
|
}
|
|
200
200
|
function ne(G, se) {
|
|
201
201
|
try {
|
|
@@ -249,13 +249,13 @@ var Kc = { exports: {} };
|
|
|
249
249
|
this._willSettleAt(xe(ae), pe);
|
|
250
250
|
}, G.prototype._settledAt = function(ae, pe, Se) {
|
|
251
251
|
var xe = this.promise;
|
|
252
|
-
xe._state === re && (this._remaining--, ae ===
|
|
252
|
+
xe._state === re && (this._remaining--, ae === Fe ? $(xe, Se) : this._result[pe] = Se), this._remaining === 0 && b(xe, this._result);
|
|
253
253
|
}, G.prototype._willSettleAt = function(ae, pe) {
|
|
254
254
|
var Se = this;
|
|
255
255
|
R(ae, void 0, function(xe) {
|
|
256
256
|
return Se._settledAt(Pe, pe, xe);
|
|
257
257
|
}, function(xe) {
|
|
258
|
-
return Se._settledAt(
|
|
258
|
+
return Se._settledAt(Fe, pe, xe);
|
|
259
259
|
});
|
|
260
260
|
}, G;
|
|
261
261
|
}();
|
|
@@ -275,7 +275,7 @@ var Kc = { exports: {} };
|
|
|
275
275
|
var se = this, ae = new se(X);
|
|
276
276
|
return $(ae, G), ae;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function He() {
|
|
279
279
|
throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
|
|
280
280
|
}
|
|
281
281
|
function ct() {
|
|
@@ -283,7 +283,7 @@ var Kc = { exports: {} };
|
|
|
283
283
|
}
|
|
284
284
|
var at = function() {
|
|
285
285
|
function G(se) {
|
|
286
|
-
this[Q] = je(), this._result = this._state = void 0, this._subscribers = [], X !== se && (typeof se != "function" &&
|
|
286
|
+
this[Q] = je(), this._result = this._state = void 0, this._subscribers = [], X !== se && (typeof se != "function" && He(), this instanceof G ? ne(this, se) : ct());
|
|
287
287
|
}
|
|
288
288
|
return G.prototype.catch = function(ae) {
|
|
289
289
|
return this.then(null, ae);
|
|
@@ -332,8 +332,8 @@ var ym = Kc.exports;
|
|
|
332
332
|
ym.polyfill();
|
|
333
333
|
class oa {
|
|
334
334
|
constructor() {
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
Ve(this, "debug");
|
|
336
|
+
Ve(this, "logger", {
|
|
337
337
|
log: () => {
|
|
338
338
|
}
|
|
339
339
|
});
|
|
@@ -1364,7 +1364,7 @@ function Ns(e, t, n = {}, r, i, s) {
|
|
|
1364
1364
|
function Pe(rt) {
|
|
1365
1365
|
X.push(rt);
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function Fe(rt) {
|
|
1368
1368
|
re.push(rt);
|
|
1369
1369
|
}
|
|
1370
1370
|
Br(d, {
|
|
@@ -1372,7 +1372,7 @@ function Ns(e, t, n = {}, r, i, s) {
|
|
|
1372
1372
|
name: te,
|
|
1373
1373
|
store: P,
|
|
1374
1374
|
after: Pe,
|
|
1375
|
-
onError:
|
|
1375
|
+
onError: Fe
|
|
1376
1376
|
});
|
|
1377
1377
|
let dt;
|
|
1378
1378
|
try {
|
|
@@ -1617,11 +1617,11 @@ const Je = bt("dialog", {
|
|
|
1617
1617
|
actions: {
|
|
1618
1618
|
generateSaveData() {
|
|
1619
1619
|
return {
|
|
1620
|
-
dialog:
|
|
1620
|
+
dialog: Re(this.dialog)
|
|
1621
1621
|
};
|
|
1622
1622
|
},
|
|
1623
1623
|
loadSaveData(e) {
|
|
1624
|
-
this.dialog = e.dialog;
|
|
1624
|
+
this.dialog = Re(e.dialog);
|
|
1625
1625
|
},
|
|
1626
1626
|
addDialog(e) {
|
|
1627
1627
|
this.dialog.push({
|
|
@@ -2974,7 +2974,7 @@ const mu = (e) => e.reduce(
|
|
|
2974
2974
|
if (t === "sound")
|
|
2975
2975
|
continue;
|
|
2976
2976
|
const n = t;
|
|
2977
|
-
this.modes.get(n).options =
|
|
2977
|
+
this.modes.get(n).options = Re(
|
|
2978
2978
|
e.modes[n].options
|
|
2979
2979
|
);
|
|
2980
2980
|
for (const r in e.modes[n].channels) {
|
|
@@ -2992,8 +2992,8 @@ const mu = (e) => e.reduce(
|
|
|
2992
2992
|
for (const t in Dl) {
|
|
2993
2993
|
const n = this.modes.get(t);
|
|
2994
2994
|
e[t] = {
|
|
2995
|
-
options:
|
|
2996
|
-
channels:
|
|
2995
|
+
options: Re(n.options),
|
|
2996
|
+
channels: Re(n.channels).map((r) => r ? { audio: r.audio } : { audio: null })
|
|
2997
2997
|
};
|
|
2998
2998
|
}
|
|
2999
2999
|
return {
|
|
@@ -3347,10 +3347,10 @@ var f = {};
|
|
|
3347
3347
|
return Ne(O, "Function") && O.type === "Function" && R(O.$id) && i.IsArray(O.parameters) && O.parameters.every((I) => ht(I)) && ht(O.returns);
|
|
3348
3348
|
}
|
|
3349
3349
|
N.TFunction = Ae;
|
|
3350
|
-
function
|
|
3350
|
+
function He(O) {
|
|
3351
3351
|
return Ne(O, "Integer") && O.type === "integer" && R(O.$id) && b(O.exclusiveMaximum) && b(O.exclusiveMinimum) && b(O.maximum) && b(O.minimum) && b(O.multipleOf);
|
|
3352
3352
|
}
|
|
3353
|
-
N.TInteger =
|
|
3353
|
+
N.TInteger = He;
|
|
3354
3354
|
function ct(O) {
|
|
3355
3355
|
return Ne(O, "Intersect") && !(i.IsString(O.type) && O.type !== "object") && i.IsArray(O.allOf) && O.allOf.every((I) => ht(I) && !pr(I)) && R(O.type) && ($(O.unevaluatedProperties) || ne(O.unevaluatedProperties)) && R(O.$id);
|
|
3356
3356
|
}
|
|
@@ -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) || F(O) || fe(O) || we(O) || Ae(O) ||
|
|
3487
|
+
return i.IsObject(O) && (oe(O) || je(O) || he(O) || ee(O) || F(O) || fe(O) || we(O) || Ae(O) || He(O) || ct(O) || at(O) || Se(O) || xe(O) || Ee(O) || Tt(O) || zt(O) || Qt(O) || Rt(O) || dr(O) || fr(O) || Ft(O) || Lr(O) || jn(O) || Dr(O) || mt(O) || Mr(O) || Ln(O) || Dn(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 = {}));
|
|
@@ -3558,7 +3558,7 @@ var f = {};
|
|
|
3558
3558
|
function Ae(w, S) {
|
|
3559
3559
|
return S.allOf.every((be) => me(w, be) === c.True) ? c.True : c.False;
|
|
3560
3560
|
}
|
|
3561
|
-
function
|
|
3561
|
+
function He(w, S) {
|
|
3562
3562
|
return w.allOf.some((be) => me(be, S) === c.True) ? c.True : c.False;
|
|
3563
3563
|
}
|
|
3564
3564
|
function ct(w, S) {
|
|
@@ -3706,7 +3706,7 @@ var f = {};
|
|
|
3706
3706
|
function _e(w, S) {
|
|
3707
3707
|
return c.True;
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3709
|
+
function qe(w, S) {
|
|
3710
3710
|
return o.TNever(S) ? Ne() : o.TIntersect(S) ? Ae(w, S) : o.TUnion(S) ? K(w, S) : o.TAny(S) ? b() : o.TString(S) ? Yn(w) : o.TNumber(S) ? Se(w) : o.TInteger(S) ? fe(w) : o.TBoolean(S) ? oe(w) : o.TArray(S) ? R(w) : o.TTuple(S) ? I(w) : o.TObject(S) ? mt(w, S) : o.TUnknown(S) ? c.True : c.False;
|
|
3711
3711
|
}
|
|
3712
3712
|
function it(w, S) {
|
|
@@ -3720,7 +3720,7 @@ var f = {};
|
|
|
3720
3720
|
// resolvable
|
|
3721
3721
|
o.TTemplateLiteral(w) || o.TTemplateLiteral(S) ? ht(w, S) : o.TNot(w) || o.TNot(S) ? ae(w, S) : (
|
|
3722
3722
|
// standard
|
|
3723
|
-
o.TAny(w) ? $(w, S) : o.TArray(w) ? H(w, S) : o.TBigInt(w) ? ne(w, S) : o.TBoolean(w) ? je(w, S) : o.TAsyncIterator(w) ? ie(w, S) : o.TConstructor(w) ? F(w, S) : o.TDate(w) ? ee(w, S) : o.TFunction(w) ? he(w, S) : o.TInteger(w) ? we(w, S) : o.TIntersect(w) ?
|
|
3723
|
+
o.TAny(w) ? $(w, S) : o.TArray(w) ? H(w, S) : o.TBigInt(w) ? ne(w, S) : o.TBoolean(w) ? je(w, S) : o.TAsyncIterator(w) ? ie(w, S) : o.TConstructor(w) ? F(w, S) : o.TDate(w) ? ee(w, S) : o.TFunction(w) ? he(w, S) : o.TInteger(w) ? we(w, S) : o.TIntersect(w) ? He(w, S) : o.TIterator(w) ? ct(w, S) : o.TLiteral(w) ? at(w, S) : o.TNever(w) ? G() : o.TNull(w) ? pe(w, S) : o.TNumber(w) ? xe(w, S) : o.TObject(w) ? Mr(w, S) : o.TRecord(w) ? Qn(w, S) : o.TString(w) ? gi(w, S) : o.TSymbol(w) ? Rr(w, S) : o.TTuple(w) ? A(w, S) : o.TPromise(w) ? yn(w, S) : o.TUint8Array(w) ? x(w, S) : o.TUndefined(w) ? W(w, S) : o.TUnion(w) ? ge(w, S) : o.TUnknown(w) ? qe(w, S) : o.TVoid(w) ? ut(w, S) : k(`Unknown left type operand '${w[e.Kind]}'`)
|
|
3724
3724
|
)
|
|
3725
3725
|
);
|
|
3726
3726
|
}
|
|
@@ -4002,8 +4002,8 @@ var f = {};
|
|
|
4002
4002
|
const fe = [];
|
|
4003
4003
|
for (let Ae = 0; Ae < F.length; Ae++)
|
|
4004
4004
|
if (k(F, Ae) && (ee += 1), C(F, Ae) && (ee -= 1), g(F, Ae) && ee === 0) {
|
|
4005
|
-
const
|
|
4006
|
-
|
|
4005
|
+
const He = F.slice(he, Ae);
|
|
4006
|
+
He.length > 0 && fe.push(oe(He)), he = Ae + 1;
|
|
4007
4007
|
}
|
|
4008
4008
|
const we = F.slice(he);
|
|
4009
4009
|
return we.length > 0 && fe.push(oe(we)), fe.length === 0 ? { type: "const", const: "" } : fe.length === 1 ? fe[0] : { type: "or", expr: fe };
|
|
@@ -4012,26 +4012,26 @@ var f = {};
|
|
|
4012
4012
|
function ee(we, Ae) {
|
|
4013
4013
|
if (!k(we, Ae))
|
|
4014
4014
|
throw new L("TemplateLiteralParser: Index must point to open parens");
|
|
4015
|
-
let
|
|
4015
|
+
let He = 0;
|
|
4016
4016
|
for (let ct = Ae; ct < we.length; ct++)
|
|
4017
|
-
if (k(we, ct) && (
|
|
4017
|
+
if (k(we, ct) && (He += 1), C(we, ct) && (He -= 1), He === 0)
|
|
4018
4018
|
return [Ae, ct];
|
|
4019
4019
|
throw new L("TemplateLiteralParser: Unclosed group parens in expression");
|
|
4020
4020
|
}
|
|
4021
4021
|
function he(we, Ae) {
|
|
4022
|
-
for (let
|
|
4023
|
-
if (k(we,
|
|
4024
|
-
return [Ae,
|
|
4022
|
+
for (let He = Ae; He < we.length; He++)
|
|
4023
|
+
if (k(we, He))
|
|
4024
|
+
return [Ae, He];
|
|
4025
4025
|
return [Ae, we.length];
|
|
4026
4026
|
}
|
|
4027
4027
|
const fe = [];
|
|
4028
4028
|
for (let we = 0; we < F.length; we++)
|
|
4029
4029
|
if (k(F, we)) {
|
|
4030
|
-
const [Ae,
|
|
4031
|
-
fe.push(oe(ct)), we =
|
|
4030
|
+
const [Ae, He] = ee(F, we), ct = F.slice(Ae, He + 1);
|
|
4031
|
+
fe.push(oe(ct)), we = He;
|
|
4032
4032
|
} else {
|
|
4033
|
-
const [Ae,
|
|
4034
|
-
ct.length > 0 && fe.push(oe(ct)), we =
|
|
4033
|
+
const [Ae, He] = he(F, we), ct = F.slice(Ae, He);
|
|
4034
|
+
ct.length > 0 && fe.push(oe(ct)), we = He - 1;
|
|
4035
4035
|
}
|
|
4036
4036
|
return fe.length === 0 ? { type: "const", const: "" } : fe.length === 1 ? fe[0] : { type: "and", expr: fe };
|
|
4037
4037
|
}
|
|
@@ -4155,9 +4155,9 @@ var f = {};
|
|
|
4155
4155
|
}
|
|
4156
4156
|
e.TransformEncodeBuilder = re;
|
|
4157
4157
|
let Pe = 0;
|
|
4158
|
-
class
|
|
4158
|
+
class Fe extends n {
|
|
4159
4159
|
}
|
|
4160
|
-
e.TypeBuilderError =
|
|
4160
|
+
e.TypeBuilderError = Fe;
|
|
4161
4161
|
class dt {
|
|
4162
4162
|
/** `[Internal]` Creates a schema without `static` and `params` types */
|
|
4163
4163
|
Create(y) {
|
|
@@ -4165,7 +4165,7 @@ var f = {};
|
|
|
4165
4165
|
}
|
|
4166
4166
|
/** `[Internal]` Throws a TypeBuilder error with the given message */
|
|
4167
4167
|
Throw(y) {
|
|
4168
|
-
throw new
|
|
4168
|
+
throw new Fe(y);
|
|
4169
4169
|
}
|
|
4170
4170
|
/** `[Internal]` Discards property keys from the given record type */
|
|
4171
4171
|
Discard(y, k) {
|
|
@@ -4674,9 +4674,9 @@ const Co = "###_--_~=:;_JUMP", fa = "###_--_~=:;_RETURN", Rh = "###_--_~=:;_OK",
|
|
|
4674
4674
|
function Fh(e) {
|
|
4675
4675
|
return e === Co || e === fa || e === Rh || e === ko;
|
|
4676
4676
|
}
|
|
4677
|
-
const Uh = "3.12.
|
|
4677
|
+
const Uh = "3.12.4", Bh = /* @__PURE__ */ new Date("2024-08-18T15:47:00.319Z"), Ul = {
|
|
4678
4678
|
branch: "main",
|
|
4679
|
-
commit: "
|
|
4679
|
+
commit: "b12f65468b18cded93bb0232b057297847b02c01"
|
|
4680
4680
|
}, qh = nr.WARN, Vh = 400, Oo = 20, zo = "@empty", Bl = {
|
|
4681
4681
|
background: zo
|
|
4682
4682
|
}, Hh = f.Type.Optional(
|
|
@@ -6865,12 +6865,12 @@ const qt = bt("notifications", {
|
|
|
6865
6865
|
actions: {
|
|
6866
6866
|
generateSaveData() {
|
|
6867
6867
|
return {
|
|
6868
|
-
items:
|
|
6869
|
-
interactionTags:
|
|
6868
|
+
items: Re(this.items),
|
|
6869
|
+
interactionTags: Re(this.interactionTags)
|
|
6870
6870
|
};
|
|
6871
6871
|
},
|
|
6872
6872
|
loadSaveData(e) {
|
|
6873
|
-
this.items = { ...this.items, ...e.items }, this.interactionTags = { ...e.interactionTags };
|
|
6873
|
+
this.items = { ...this.items, ...Re(e.items) }, this.interactionTags = { ...Re(e.interactionTags) };
|
|
6874
6874
|
},
|
|
6875
6875
|
updateConfig(e) {
|
|
6876
6876
|
Object.keys(e.items).forEach((t) => {
|
|
@@ -7030,12 +7030,12 @@ const qt = bt("notifications", {
|
|
|
7030
7030
|
},
|
|
7031
7031
|
generateSaveData() {
|
|
7032
7032
|
return {
|
|
7033
|
-
layers:
|
|
7034
|
-
buttons:
|
|
7033
|
+
layers: Re(this.layers).filter((e) => e).map((e) => e.screen ?? null),
|
|
7034
|
+
buttons: Re(this.buttons)
|
|
7035
7035
|
};
|
|
7036
7036
|
},
|
|
7037
7037
|
loadSaveData(e) {
|
|
7038
|
-
this.layers = e.layers.map((t) => (t !== null && typeof t != "string" && (t = null), { screen: t })), this.buttons = Nr(this.buttons, e.buttons);
|
|
7038
|
+
this.layers = Re(e.layers).map((t) => (t !== null && typeof t != "string" && (t = null), { screen: t })), this.buttons = Nr(this.buttons, Re(e.buttons));
|
|
7039
7039
|
},
|
|
7040
7040
|
isButtonDisabled(e) {
|
|
7041
7041
|
const t = this.getButtonState(e);
|
|
@@ -7182,15 +7182,15 @@ const on = bt("screenObjects", {
|
|
|
7182
7182
|
// Turns objects into objects with string references
|
|
7183
7183
|
generateSaveData() {
|
|
7184
7184
|
return {
|
|
7185
|
-
tree:
|
|
7186
|
-
objectsList:
|
|
7185
|
+
tree: Re(this.tree.map((e) => e.id)),
|
|
7186
|
+
objectsList: Re(
|
|
7187
7187
|
e_(this.objectsList, (e) => this.screenObjectToSave(e))
|
|
7188
7188
|
)
|
|
7189
7189
|
};
|
|
7190
7190
|
},
|
|
7191
7191
|
// Loads save data where objects have string references, populating them
|
|
7192
7192
|
loadSaveData(e) {
|
|
7193
|
-
this.objectsList = this.loadAllObjects(e.objectsList), this.tree = e.tree.map((t) => this.objectsList[t]);
|
|
7193
|
+
this.objectsList = this.loadAllObjects(Re(e.objectsList)), this.tree = e.tree.map((t) => this.objectsList[t]);
|
|
7194
7194
|
},
|
|
7195
7195
|
reset() {
|
|
7196
7196
|
this.$reset();
|
|
@@ -7316,7 +7316,7 @@ const p_ = /* @__PURE__ */ sn(c_, [["render", f_]]), m_ = "data:image/svg+xml,%3
|
|
|
7316
7316
|
});
|
|
7317
7317
|
class $a {
|
|
7318
7318
|
constructor() {
|
|
7319
|
-
|
|
7319
|
+
Ve(this, "listeners", {});
|
|
7320
7320
|
}
|
|
7321
7321
|
on(t, n) {
|
|
7322
7322
|
return this.listeners[t] || this.addEventToMap(t), this.listeners[t].add(n), n;
|
|
@@ -7520,15 +7520,15 @@ const In = bt("settings", {
|
|
|
7520
7520
|
},
|
|
7521
7521
|
generateSaveData() {
|
|
7522
7522
|
return {
|
|
7523
|
-
baseSettings:
|
|
7524
|
-
customSettings:
|
|
7523
|
+
baseSettings: Re(this.baseSettings),
|
|
7524
|
+
customSettings: Re(this.customSettings)
|
|
7525
7525
|
};
|
|
7526
7526
|
},
|
|
7527
7527
|
loadSaveData(e) {
|
|
7528
7528
|
for (const t in e.baseSettings)
|
|
7529
|
-
this.setSetting(t, e.baseSettings[t]);
|
|
7529
|
+
this.setSetting(t, Re(e.baseSettings[t]));
|
|
7530
7530
|
for (const t in e.customSettings)
|
|
7531
|
-
typeof this.customSettings[t] < "u" && this.setSetting(t, e.customSettings[t]);
|
|
7531
|
+
typeof this.customSettings[t] < "u" && this.setSetting(t, Re(e.customSettings[t]));
|
|
7532
7532
|
}
|
|
7533
7533
|
}
|
|
7534
7534
|
});
|
|
@@ -7589,7 +7589,7 @@ const gt = bt("rendering", {
|
|
|
7589
7589
|
this.dialogPanelMode = "auto";
|
|
7590
7590
|
},
|
|
7591
7591
|
updateScreenSize(e, t) {
|
|
7592
|
-
this.screenHeight = t, this.screenWidth = e, e < ue().layout.verticalLayoutThreshold ? (this.layoutMode = "vertical", document.querySelector("html").style.fontSize = `${In().baseSettings.fontSize}px`
|
|
7592
|
+
this.screenHeight = t, this.screenWidth = e, e < ue().layout.verticalLayoutThreshold ? (this.layoutMode = "vertical", document.querySelector("html").style.fontSize = `${In().baseSettings.fontSize ?? 40}px`) : (this.layoutMode = "horizontal", document.querySelector("html").style.fontSize = `${In().baseSettings.fontSize ?? 16}px`);
|
|
7593
7593
|
},
|
|
7594
7594
|
setContainer(e) {
|
|
7595
7595
|
this.containerElement = e, this.resizeObserver && this.resizeObserver.disconnect(), this.resizeObserver = new ResizeObserver(
|
|
@@ -7677,12 +7677,12 @@ const gt = bt("rendering", {
|
|
|
7677
7677
|
class __ extends EventTarget {
|
|
7678
7678
|
constructor() {
|
|
7679
7679
|
super(...arguments);
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7680
|
+
Ve(this, "gamepadAvailable", !0);
|
|
7681
|
+
Ve(this, "gameActions", {});
|
|
7682
|
+
Ve(this, "keyboardState", {});
|
|
7683
|
+
Ve(this, "actions", {});
|
|
7684
|
+
Ve(this, "lastInputMethodUsed", "km");
|
|
7685
|
+
Ve(this, "gamepad", null);
|
|
7686
7686
|
}
|
|
7687
7687
|
kbEvent() {
|
|
7688
7688
|
this.changeLastInput("km");
|
|
@@ -7745,14 +7745,14 @@ class __ extends EventTarget {
|
|
|
7745
7745
|
updateAllNarratButtons(n, r) {
|
|
7746
7746
|
for (const [i, s] of n.buttons.entries()) {
|
|
7747
7747
|
const o = r.buttons[i];
|
|
7748
|
-
o.previous =
|
|
7748
|
+
o.previous = Re(o.state), o.state = Re(s), o.previous.pressed !== o.state.pressed && this.gamepadEvent();
|
|
7749
7749
|
}
|
|
7750
7750
|
}
|
|
7751
7751
|
getNarratButtonFromGamepad(n, r, i) {
|
|
7752
7752
|
return {
|
|
7753
7753
|
index: i,
|
|
7754
|
-
state:
|
|
7755
|
-
previous:
|
|
7754
|
+
state: Re(r),
|
|
7755
|
+
previous: Re(r)
|
|
7756
7756
|
};
|
|
7757
7757
|
}
|
|
7758
7758
|
addAction(n) {
|
|
@@ -7765,7 +7765,7 @@ class __ extends EventTarget {
|
|
|
7765
7765
|
};
|
|
7766
7766
|
this.actions[n.id] = {
|
|
7767
7767
|
state: r,
|
|
7768
|
-
previous:
|
|
7768
|
+
previous: Re(r)
|
|
7769
7769
|
};
|
|
7770
7770
|
} else {
|
|
7771
7771
|
const r = {
|
|
@@ -7780,7 +7780,7 @@ class __ extends EventTarget {
|
|
|
7780
7780
|
};
|
|
7781
7781
|
this.actions[n.id] = {
|
|
7782
7782
|
state: r,
|
|
7783
|
-
previous:
|
|
7783
|
+
previous: Re(r)
|
|
7784
7784
|
};
|
|
7785
7785
|
}
|
|
7786
7786
|
}
|
|
@@ -7818,7 +7818,7 @@ class __ extends EventTarget {
|
|
|
7818
7818
|
this.updateGamepad(), this.debugGamepad();
|
|
7819
7819
|
for (const n of Object.values(this.gameActions))
|
|
7820
7820
|
if (n.type === "button") {
|
|
7821
|
-
const r = this.actions[n.id], i =
|
|
7821
|
+
const r = this.actions[n.id], i = Re(r.state), s = r.state;
|
|
7822
7822
|
r.previous = i, n.action === "press" && (n.keybinds.some((l) => {
|
|
7823
7823
|
let u = !1;
|
|
7824
7824
|
if (l = this.getKeybindKey(n, l), typeof l.keyboardKey == "string" && this.getKeyboardState(l.keyboardKey).current === !0 && (u = !0), typeof l.gamepadButton == "number") {
|
|
@@ -7829,7 +7829,7 @@ class __ extends EventTarget {
|
|
|
7829
7829
|
}) ? s.active = !0 : s.active = !1, s.active && !i.active ? s.justPressed = !0 : s.justPressed = !1, !s.active && i.active ? s.justReleased = !0 : s.justReleased = !1);
|
|
7830
7830
|
} else if (n.type === "analog") {
|
|
7831
7831
|
const r = this.actions[n.id], i = r.state;
|
|
7832
|
-
|
|
7832
|
+
Re(r.state), r.previous = Re(i);
|
|
7833
7833
|
let s = Zr.create(0, 0);
|
|
7834
7834
|
n.keybinds.forEach((o) => {
|
|
7835
7835
|
this.getKeyboardState(o.left).current && (i.fullState.left = 1, s.x -= 1), this.getKeyboardState(o.right).current && (i.fullState.right = 1, s.x += 1), this.getKeyboardState(o.up).current && (i.fullState.up = 1, s.y -= 1), this.getKeyboardState(o.down).current && (i.fullState.down = 1, s.y += 1);
|
|
@@ -8912,7 +8912,7 @@ const z_ = { id: "game-menu" }, Q_ = {
|
|
|
8912
8912
|
}
|
|
8913
8913
|
function j(X) {
|
|
8914
8914
|
const re = h.value.findIndex(
|
|
8915
|
-
(
|
|
8915
|
+
(Fe) => Fe.id === X.id
|
|
8916
8916
|
), Pe = h.value[re];
|
|
8917
8917
|
Pe.action && Pe.action(), Pe.popupComponent && (d.value = Pe);
|
|
8918
8918
|
}
|
|
@@ -8990,12 +8990,12 @@ const z_ = { id: "game-menu" }, Q_ = {
|
|
|
8990
8990
|
title: re,
|
|
8991
8991
|
cssClass: Pe
|
|
8992
8992
|
}) {
|
|
8993
|
-
const
|
|
8994
|
-
if (
|
|
8993
|
+
const Fe = ue().menuButtons[X];
|
|
8994
|
+
if (Fe) {
|
|
8995
8995
|
let dt = Pe;
|
|
8996
|
-
return
|
|
8996
|
+
return Fe.cssClass && (dt = `${Fe.cssClass} ${Pe}`), {
|
|
8997
8997
|
id: X,
|
|
8998
|
-
title:
|
|
8998
|
+
title: Fe.text ?? re,
|
|
8999
8999
|
cssClass: dt
|
|
9000
9000
|
};
|
|
9001
9001
|
}
|
|
@@ -9033,13 +9033,13 @@ const z_ = { id: "game-menu" }, Q_ = {
|
|
|
9033
9033
|
(D(!0), J(We, null, Xe(n.value, (Pe) => (D(), $e(H_, {
|
|
9034
9034
|
key: Pe.id,
|
|
9035
9035
|
button: Pe,
|
|
9036
|
-
onClick: (
|
|
9036
|
+
onClick: (Fe) => T(Pe)
|
|
9037
9037
|
}, null, 8, ["button", "onClick"]))), 128))
|
|
9038
9038
|
], 512)
|
|
9039
9039
|
]),
|
|
9040
9040
|
d.value ? (D(), $e(Ri, {
|
|
9041
9041
|
key: 2,
|
|
9042
|
-
to: "#narrat"
|
|
9042
|
+
to: "#narrat-app-container"
|
|
9043
9043
|
}, [
|
|
9044
9044
|
Ze(cr, {
|
|
9045
9045
|
onClose: U,
|
|
@@ -9059,7 +9059,7 @@ const z_ = { id: "game-menu" }, Q_ = {
|
|
|
9059
9059
|
])) : Oe("", !0)
|
|
9060
9060
|
]));
|
|
9061
9061
|
}
|
|
9062
|
-
}), vf = /* @__PURE__ */ sn(Z_, [["__scopeId", "data-v-
|
|
9062
|
+
}), vf = /* @__PURE__ */ sn(Z_, [["__scopeId", "data-v-6a89804b"]]);
|
|
9063
9063
|
function ts(e) {
|
|
9064
9064
|
const t = yl().characters[e];
|
|
9065
9065
|
return t || de(`Character ${e} not found`), t;
|
|
@@ -9344,7 +9344,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9344
9344
|
function Pe() {
|
|
9345
9345
|
if (!p.options.old)
|
|
9346
9346
|
if (Je().playMode === "skip")
|
|
9347
|
-
|
|
9347
|
+
Fe();
|
|
9348
9348
|
else if (ub(p.options.styleId), ue().dialogPanel.animateText) {
|
|
9349
9349
|
o.value = {
|
|
9350
9350
|
text: "",
|
|
@@ -9367,7 +9367,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9367
9367
|
(ue().dialogPanel.textSpeed ?? Oo) * p.options.text.length
|
|
9368
9368
|
));
|
|
9369
9369
|
}
|
|
9370
|
-
function
|
|
9370
|
+
function Fe() {
|
|
9371
9371
|
Je().playMode === "skip" && !p.options.old && (k.value ? c.value = setTimeout(() => {
|
|
9372
9372
|
pt();
|
|
9373
9373
|
}, 100) : (Je().toggleSkip(), pt({ unmounted: !0 })));
|
|
@@ -9387,8 +9387,8 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9387
9387
|
let Ae = ee;
|
|
9388
9388
|
for (; F.tags.length > 0 && we >= F.tags[0].index; ) {
|
|
9389
9389
|
Ae = X(Ae, F.tags[0].index);
|
|
9390
|
-
const
|
|
9391
|
-
Ae +=
|
|
9390
|
+
const He = re(F.tags.shift());
|
|
9391
|
+
Ae += He, we += He;
|
|
9392
9392
|
}
|
|
9393
9393
|
Ae = X(Ae, we), F.index = Ae;
|
|
9394
9394
|
}
|
|
@@ -9423,7 +9423,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9423
9423
|
!ee.old && F.old && o && pt({ unmounted: !0 });
|
|
9424
9424
|
}
|
|
9425
9425
|
), kn(H, (F, ee) => {
|
|
9426
|
-
F && !ee &&
|
|
9426
|
+
F && !ee && Fe();
|
|
9427
9427
|
}), kn(ie, (F, ee) => {
|
|
9428
9428
|
F && !ee && dt();
|
|
9429
9429
|
}), t({
|
|
@@ -9581,8 +9581,8 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9581
9581
|
re.position = "absolute";
|
|
9582
9582
|
const Pe = ue().dialogPanel.rightOffset ?? oi.common.dialogPanel.rightOffset;
|
|
9583
9583
|
re.right = `${Pe}px`;
|
|
9584
|
-
const
|
|
9585
|
-
re.bottom = `${
|
|
9584
|
+
const Fe = ue().dialogPanel.bottomOffset ?? oi.common.dialogPanel.bottomOffset;
|
|
9585
|
+
re.bottom = `${Fe}px`;
|
|
9586
9586
|
}
|
|
9587
9587
|
return {
|
|
9588
9588
|
...re,
|
|
@@ -9601,8 +9601,8 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9601
9601
|
function te(Q, X) {
|
|
9602
9602
|
const re = ts(Q.speaker);
|
|
9603
9603
|
let Pe = (re == null ? void 0 : re.name) ?? "Missing Character";
|
|
9604
|
-
return X >= 1 && c.value[X - 1].speaker === Q.speaker && (Pe = void 0), Q.choices && Q.choices.forEach((
|
|
9605
|
-
|
|
9604
|
+
return X >= 1 && c.value[X - 1].speaker === Q.speaker && (Pe = void 0), Q.choices && Q.choices.forEach((Fe) => {
|
|
9605
|
+
Fe.choice = Kn(Fe.choice);
|
|
9606
9606
|
}), {
|
|
9607
9607
|
title: Pe ?? "",
|
|
9608
9608
|
text: Q.text,
|
|
@@ -9654,7 +9654,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9654
9654
|
default: Ke(() => [
|
|
9655
9655
|
(D(!0), J(We, null, Xe(c.value, (re, Pe) => (D(), $e(vb, {
|
|
9656
9656
|
ref_for: !0,
|
|
9657
|
-
ref: (
|
|
9657
|
+
ref: (Fe) => a.value = Fe,
|
|
9658
9658
|
key: re.id,
|
|
9659
9659
|
options: te(re, Pe),
|
|
9660
9660
|
active: z(Pe),
|
|
@@ -9822,7 +9822,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
|
|
|
9822
9822
|
}, ye(d.label), 9, xb))), 128)),
|
|
9823
9823
|
s.value ? (D(), $e(Ri, {
|
|
9824
9824
|
key: 0,
|
|
9825
|
-
to: "#narrat"
|
|
9825
|
+
to: "#narrat-app-container"
|
|
9826
9826
|
}, [
|
|
9827
9827
|
Ze(cr, {
|
|
9828
9828
|
containerCssClass: { [s.value.cssClass]: !0, "menu-modal": !0 },
|
|
@@ -10262,7 +10262,7 @@ const Cf = /* @__PURE__ */ Ce({
|
|
|
10262
10262
|
},
|
|
10263
10263
|
generateSaveData() {
|
|
10264
10264
|
return {
|
|
10265
|
-
hudStats:
|
|
10265
|
+
hudStats: Re(this.hudStats),
|
|
10266
10266
|
visible: this.visible
|
|
10267
10267
|
};
|
|
10268
10268
|
},
|
|
@@ -10606,11 +10606,11 @@ const Ie = bt("vm", {
|
|
|
10606
10606
|
},
|
|
10607
10607
|
generateGlobalSaveData() {
|
|
10608
10608
|
return {
|
|
10609
|
-
data:
|
|
10609
|
+
data: Re(this.globalData)
|
|
10610
10610
|
};
|
|
10611
10611
|
},
|
|
10612
10612
|
loadSaveData(e) {
|
|
10613
|
-
this.lastLabel = e.lastLabel, this.data =
|
|
10613
|
+
this.lastLabel = e.lastLabel, this.data = Re(e.data), this.findEntitiesInData(this.data);
|
|
10614
10614
|
},
|
|
10615
10615
|
loadGlobalSaveData(e) {
|
|
10616
10616
|
this.globalData = e.data;
|
|
@@ -11120,11 +11120,11 @@ function TT(e, t) {
|
|
|
11120
11120
|
}
|
|
11121
11121
|
class ST {
|
|
11122
11122
|
constructor() {
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11123
|
+
Ve(this, "plugins", []);
|
|
11124
|
+
Ve(this, "pinia");
|
|
11125
|
+
Ve(this, "script", {});
|
|
11126
|
+
Ve(this, "scripts", []);
|
|
11127
|
+
Ve(this, "commands", {});
|
|
11128
11128
|
}
|
|
11129
11129
|
addCommand(t) {
|
|
11130
11130
|
this.commands[t.keyword] = t;
|
|
@@ -11452,7 +11452,7 @@ const Oa = f.Type.Object({
|
|
|
11452
11452
|
function Aa(e) {
|
|
11453
11453
|
return "common" in e;
|
|
11454
11454
|
}
|
|
11455
|
-
var Us = { exports: {} }, Vf = {}, fn = {}, li = {}, Yi = {},
|
|
11455
|
+
var Us = { exports: {} }, Vf = {}, fn = {}, li = {}, Yi = {}, Be = {}, Ki = {};
|
|
11456
11456
|
(function(e) {
|
|
11457
11457
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
11458
11458
|
class t {
|
|
@@ -11886,7 +11886,7 @@ var Bs = {};
|
|
|
11886
11886
|
b = this.else = Array.isArray($) ? new T($) : $;
|
|
11887
11887
|
}
|
|
11888
11888
|
if (b)
|
|
11889
|
-
return g === !1 ? b instanceof _ ? b : b.nodes : this.nodes.length ? this : new _(
|
|
11889
|
+
return g === !1 ? b instanceof _ ? b : b.nodes : this.nodes.length ? this : new _(Fe(g), b instanceof _ ? [b] : b.nodes);
|
|
11890
11890
|
if (!(g === !1 || !this.nodes.length))
|
|
11891
11891
|
return this;
|
|
11892
11892
|
}
|
|
@@ -12232,10 +12232,10 @@ var Bs = {};
|
|
|
12232
12232
|
for (const b in g)
|
|
12233
12233
|
C[b] = (C[b] || 0) - (g[b] || 0);
|
|
12234
12234
|
}
|
|
12235
|
-
function
|
|
12235
|
+
function Fe(C) {
|
|
12236
12236
|
return typeof C == "boolean" || typeof C == "number" || C === null ? !C : (0, t._)`!${k(C)}`;
|
|
12237
12237
|
}
|
|
12238
|
-
e.not =
|
|
12238
|
+
e.not = Fe;
|
|
12239
12239
|
const dt = y(e.operators.AND);
|
|
12240
12240
|
function rt(...C) {
|
|
12241
12241
|
return C.reduce(dt);
|
|
@@ -12252,11 +12252,11 @@ var Bs = {};
|
|
|
12252
12252
|
function k(C) {
|
|
12253
12253
|
return C instanceof t.Name ? C : (0, t._)`(${C})`;
|
|
12254
12254
|
}
|
|
12255
|
-
})(
|
|
12255
|
+
})(Be);
|
|
12256
12256
|
var ze = {};
|
|
12257
12257
|
(function(e) {
|
|
12258
12258
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
12259
|
-
const t =
|
|
12259
|
+
const t = Be, n = Ki;
|
|
12260
12260
|
function r(L) {
|
|
12261
12261
|
const P = {};
|
|
12262
12262
|
for (const Z of L)
|
|
@@ -12395,7 +12395,7 @@ var ze = {};
|
|
|
12395
12395
|
})(ze);
|
|
12396
12396
|
var xn = {};
|
|
12397
12397
|
Object.defineProperty(xn, "__esModule", { value: !0 });
|
|
12398
|
-
const Nt =
|
|
12398
|
+
const Nt = Be, OT = {
|
|
12399
12399
|
// validation function arguments
|
|
12400
12400
|
data: new Nt.Name("data"),
|
|
12401
12401
|
// args passed from referencing schema
|
|
@@ -12421,7 +12421,7 @@ const Nt = Ue, OT = {
|
|
|
12421
12421
|
xn.default = OT;
|
|
12422
12422
|
(function(e) {
|
|
12423
12423
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
12424
|
-
const t =
|
|
12424
|
+
const t = Be, n = ze, r = xn;
|
|
12425
12425
|
e.keywordError = {
|
|
12426
12426
|
message: ({ keyword: T }) => (0, t.str)`must pass "${T}" keyword validation`
|
|
12427
12427
|
}, e.keyword$DataError = {
|
|
@@ -12493,7 +12493,7 @@ xn.default = OT;
|
|
|
12493
12493
|
})(Yi);
|
|
12494
12494
|
Object.defineProperty(li, "__esModule", { value: !0 });
|
|
12495
12495
|
li.boolOrEmptySchema = li.topBoolOrEmptySchema = void 0;
|
|
12496
|
-
const AT = Yi, ET =
|
|
12496
|
+
const AT = Yi, ET = Be, IT = xn, PT = {
|
|
12497
12497
|
message: "boolean schema is false"
|
|
12498
12498
|
};
|
|
12499
12499
|
function NT(e) {
|
|
@@ -12562,7 +12562,7 @@ function Gf(e, t) {
|
|
|
12562
12562
|
Un.shouldUseRule = Gf;
|
|
12563
12563
|
(function(e) {
|
|
12564
12564
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
12565
|
-
const t = xr, n = Un, r = Yi, i =
|
|
12565
|
+
const t = xr, n = Un, r = Yi, i = Be, s = ze;
|
|
12566
12566
|
var o;
|
|
12567
12567
|
(function(j) {
|
|
12568
12568
|
j[j.Correct = 0] = "Correct", j[j.Wrong = 1] = "Wrong";
|
|
@@ -12708,7 +12708,7 @@ Un.shouldUseRule = Gf;
|
|
|
12708
12708
|
var rs = {};
|
|
12709
12709
|
Object.defineProperty(rs, "__esModule", { value: !0 });
|
|
12710
12710
|
rs.assignDefaults = void 0;
|
|
12711
|
-
const Vr =
|
|
12711
|
+
const Vr = Be, FT = ze;
|
|
12712
12712
|
function UT(e, t) {
|
|
12713
12713
|
const { properties: n, items: r } = e.schema;
|
|
12714
12714
|
if (t === "object" && n)
|
|
@@ -12730,25 +12730,25 @@ function fc(e, t, n) {
|
|
|
12730
12730
|
let u = (0, Vr._)`${l} === undefined`;
|
|
12731
12731
|
o.useDefaults === "empty" && (u = (0, Vr._)`${u} || ${l} === null || ${l} === ""`), r.if(u, (0, Vr._)`${l} = ${(0, Vr.stringify)(n)}`);
|
|
12732
12732
|
}
|
|
12733
|
-
var wn = {},
|
|
12734
|
-
Object.defineProperty(
|
|
12735
|
-
|
|
12736
|
-
const lt =
|
|
12733
|
+
var wn = {}, Ue = {};
|
|
12734
|
+
Object.defineProperty(Ue, "__esModule", { value: !0 });
|
|
12735
|
+
Ue.validateUnion = Ue.validateArray = Ue.usePattern = Ue.callValidateCode = Ue.schemaProperties = Ue.allSchemaProperties = Ue.noPropertyInData = Ue.propertyInData = Ue.isOwnProperty = Ue.hasPropFunc = Ue.reportMissingProp = Ue.checkMissingProp = Ue.checkReportMissingProp = void 0;
|
|
12736
|
+
const lt = Be, Ea = ze, Xn = xn, BT = ze;
|
|
12737
12737
|
function qT(e, t) {
|
|
12738
12738
|
const { gen: n, data: r, it: i } = e;
|
|
12739
12739
|
n.if(Pa(n, r, t, i.opts.ownProperties), () => {
|
|
12740
12740
|
e.setParams({ missingProperty: (0, lt._)`${t}` }, !0), e.error();
|
|
12741
12741
|
});
|
|
12742
12742
|
}
|
|
12743
|
-
|
|
12743
|
+
Ue.checkReportMissingProp = qT;
|
|
12744
12744
|
function VT({ gen: e, data: t, it: { opts: n } }, r, i) {
|
|
12745
12745
|
return (0, lt.or)(...r.map((s) => (0, lt.and)(Pa(e, t, s, n.ownProperties), (0, lt._)`${i} = ${s}`)));
|
|
12746
12746
|
}
|
|
12747
|
-
|
|
12747
|
+
Ue.checkMissingProp = VT;
|
|
12748
12748
|
function HT(e, t) {
|
|
12749
12749
|
e.setParams({ missingProperty: t }, !0), e.error();
|
|
12750
12750
|
}
|
|
12751
|
-
|
|
12751
|
+
Ue.reportMissingProp = HT;
|
|
12752
12752
|
function Wf(e) {
|
|
12753
12753
|
return e.scopeValue("func", {
|
|
12754
12754
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -12756,29 +12756,29 @@ function Wf(e) {
|
|
|
12756
12756
|
code: (0, lt._)`Object.prototype.hasOwnProperty`
|
|
12757
12757
|
});
|
|
12758
12758
|
}
|
|
12759
|
-
|
|
12759
|
+
Ue.hasPropFunc = Wf;
|
|
12760
12760
|
function Ia(e, t, n) {
|
|
12761
12761
|
return (0, lt._)`${Wf(e)}.call(${t}, ${n})`;
|
|
12762
12762
|
}
|
|
12763
|
-
|
|
12763
|
+
Ue.isOwnProperty = Ia;
|
|
12764
12764
|
function KT(e, t, n, r) {
|
|
12765
12765
|
const i = (0, lt._)`${t}${(0, lt.getProperty)(n)} !== undefined`;
|
|
12766
12766
|
return r ? (0, lt._)`${i} && ${Ia(e, t, n)}` : i;
|
|
12767
12767
|
}
|
|
12768
|
-
|
|
12768
|
+
Ue.propertyInData = KT;
|
|
12769
12769
|
function Pa(e, t, n, r) {
|
|
12770
12770
|
const i = (0, lt._)`${t}${(0, lt.getProperty)(n)} === undefined`;
|
|
12771
12771
|
return r ? (0, lt.or)(i, (0, lt.not)(Ia(e, t, n))) : i;
|
|
12772
12772
|
}
|
|
12773
|
-
|
|
12773
|
+
Ue.noPropertyInData = Pa;
|
|
12774
12774
|
function zf(e) {
|
|
12775
12775
|
return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
|
|
12776
12776
|
}
|
|
12777
|
-
|
|
12777
|
+
Ue.allSchemaProperties = zf;
|
|
12778
12778
|
function GT(e, t) {
|
|
12779
12779
|
return zf(t).filter((n) => !(0, Ea.alwaysValidSchema)(e, t[n]));
|
|
12780
12780
|
}
|
|
12781
|
-
|
|
12781
|
+
Ue.schemaProperties = GT;
|
|
12782
12782
|
function WT({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath: i, errorPath: s }, it: o }, l, u, c) {
|
|
12783
12783
|
const m = c ? (0, lt._)`${e}, ${t}, ${r}${i}` : t, a = [
|
|
12784
12784
|
[Xn.default.instancePath, (0, lt.strConcat)(Xn.default.instancePath, s)],
|
|
@@ -12790,7 +12790,7 @@ function WT({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath:
|
|
|
12790
12790
|
const d = (0, lt._)`${m}, ${n.object(...a)}`;
|
|
12791
12791
|
return u !== lt.nil ? (0, lt._)`${l}.call(${u}, ${d})` : (0, lt._)`${l}(${d})`;
|
|
12792
12792
|
}
|
|
12793
|
-
|
|
12793
|
+
Ue.callValidateCode = WT;
|
|
12794
12794
|
const zT = (0, lt._)`new RegExp`;
|
|
12795
12795
|
function QT({ gen: e, it: { opts: t } }, n) {
|
|
12796
12796
|
const r = t.unicodeRegExp ? "u" : "", { regExp: i } = t.code, s = i(n, r);
|
|
@@ -12800,7 +12800,7 @@ function QT({ gen: e, it: { opts: t } }, n) {
|
|
|
12800
12800
|
code: (0, lt._)`${i.code === "new RegExp" ? zT : (0, BT.useFunc)(e, i)}(${n}, ${r})`
|
|
12801
12801
|
});
|
|
12802
12802
|
}
|
|
12803
|
-
|
|
12803
|
+
Ue.usePattern = QT;
|
|
12804
12804
|
function YT(e) {
|
|
12805
12805
|
const { gen: t, data: n, keyword: r, it: i } = e, s = t.name("valid");
|
|
12806
12806
|
if (i.allErrors) {
|
|
@@ -12819,7 +12819,7 @@ function YT(e) {
|
|
|
12819
12819
|
});
|
|
12820
12820
|
}
|
|
12821
12821
|
}
|
|
12822
|
-
|
|
12822
|
+
Ue.validateArray = YT;
|
|
12823
12823
|
function JT(e) {
|
|
12824
12824
|
const { gen: t, schema: n, keyword: r, it: i } = e;
|
|
12825
12825
|
if (!Array.isArray(n))
|
|
@@ -12836,10 +12836,10 @@ function JT(e) {
|
|
|
12836
12836
|
t.assign(o, (0, lt._)`${o} || ${l}`), e.mergeValidEvaluated(m, l) || t.if((0, lt.not)(o));
|
|
12837
12837
|
})), e.result(o, () => e.reset(), () => e.error(!0));
|
|
12838
12838
|
}
|
|
12839
|
-
|
|
12839
|
+
Ue.validateUnion = JT;
|
|
12840
12840
|
Object.defineProperty(wn, "__esModule", { value: !0 });
|
|
12841
12841
|
wn.validateKeywordUsage = wn.validSchemaType = wn.funcKeywordCode = wn.macroKeywordCode = void 0;
|
|
12842
|
-
const Ut =
|
|
12842
|
+
const Ut = Be, _r = xn, XT = Ue, ZT = Yi;
|
|
12843
12843
|
function e0(e, t) {
|
|
12844
12844
|
const { gen: n, keyword: r, schema: i, parentSchema: s, it: o } = e, l = t.macro.call(o.self, i, s, o), u = Qf(n, r, l);
|
|
12845
12845
|
o.opts.validateSchema !== !1 && o.self.validateSchema(l, !0);
|
|
@@ -12926,7 +12926,7 @@ wn.validateKeywordUsage = o0;
|
|
|
12926
12926
|
var sr = {};
|
|
12927
12927
|
Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
12928
12928
|
sr.extendSubschemaMode = sr.extendSubschemaData = sr.getSubschema = void 0;
|
|
12929
|
-
const Sn =
|
|
12929
|
+
const Sn = Be, Yf = ze;
|
|
12930
12930
|
function s0(e, { keyword: t, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: s, topSchemaRef: o }) {
|
|
12931
12931
|
if (t !== void 0 && r !== void 0)
|
|
12932
12932
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -13193,7 +13193,7 @@ function b0(e, t) {
|
|
|
13193
13193
|
Et.getSchemaRefs = b0;
|
|
13194
13194
|
Object.defineProperty(fn, "__esModule", { value: !0 });
|
|
13195
13195
|
fn.getData = fn.KeywordCxt = fn.validateFunctionCode = void 0;
|
|
13196
|
-
const np = li, mc = Ji, Na = Un, jo = Ji, T0 = rs, Ii = wn, Ts = sr, ve =
|
|
13196
|
+
const np = li, mc = Ji, Na = Un, jo = Ji, T0 = rs, Ii = wn, Ts = sr, ve = Be, Le = xn, S0 = Et, Bn = ze, Ti = Yi;
|
|
13197
13197
|
function w0(e) {
|
|
13198
13198
|
if (op(e) && (sp(e), ip(e))) {
|
|
13199
13199
|
k0(e);
|
|
@@ -13521,7 +13521,7 @@ Zi.default = K0;
|
|
|
13521
13521
|
var Ht = {};
|
|
13522
13522
|
Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
13523
13523
|
Ht.resolveSchema = Ht.getCompilingSchema = Ht.resolveRef = Ht.compileSchema = Ht.SchemaEnv = void 0;
|
|
13524
|
-
const an =
|
|
13524
|
+
const an = Be, G0 = Xi, yr = xn, dn = Et, vc = ze, W0 = fn;
|
|
13525
13525
|
class is {
|
|
13526
13526
|
constructor(t) {
|
|
13527
13527
|
var n;
|
|
@@ -13731,7 +13731,7 @@ var La = {}, Vs = { exports: {} };
|
|
|
13731
13731
|
return x;
|
|
13732
13732
|
}
|
|
13733
13733
|
function c(I) {
|
|
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 = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
|
|
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 = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", qe = r(ge, _e), it = I ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", ut = I ? "[\\uE000-\\uF8FF]" : "[]", me = r(A, x, "[\\-\\.\\_\\~]", it);
|
|
13735
13735
|
i(A + r(A, x, "[\\+\\-\\.]") + "*"), i(i(K + "|" + r(me, _e, "[\\:]")) + "*");
|
|
13736
13736
|
var tt = i(i("25[0-5]") + "|" + i("2[0-4]" + x) + "|" + i("1" + x + x) + "|" + i("0?[1-9]" + x) + "|0?0?" + x), w = i(tt + "\\." + tt + "\\." + tt + "\\." + tt), S = i(W + "{1,4}"), be = i(i(S + "\\:" + S) + "|" + w), Qe = i(i(S + "\\:") + "{6}" + be), st = 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), Fr = 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([Qe, st, Jn, gn, vn, Fr, mr, Zt, _n].join("|")), Mn = i(i(me + "|" + K) + "+");
|
|
13737
13737
|
i("[vV]" + W + "+\\." + r(me, _e, "[\\:]") + "+"), i(i(K + "|" + r(me, _e)) + "*");
|
|
@@ -13746,7 +13746,7 @@ var La = {}, Vs = { exports: {} };
|
|
|
13746
13746
|
NOT_FRAGMENT: new RegExp(r("[^\\%]", me, _e, "[\\:\\@\\/\\?]"), "g"),
|
|
13747
13747
|
ESCAPE: new RegExp(r("[^]", me, _e), "g"),
|
|
13748
13748
|
UNRESERVED: new RegExp(me, "g"),
|
|
13749
|
-
OTHER_CHARS: new RegExp(r("[^\\%]", me,
|
|
13749
|
+
OTHER_CHARS: new RegExp(r("[^\\%]", me, qe), "g"),
|
|
13750
13750
|
PCT_ENCODED: new RegExp(K, "g"),
|
|
13751
13751
|
IPV4ADDRESS: new RegExp("^(" + w + ")$"),
|
|
13752
13752
|
IPV6ADDRESS: new RegExp("^\\[?(" + hr + ")" + i(i("\\%25|\\%(?!" + W + "{2})") + "(" + Mn + ")") + "?\\]?$")
|
|
@@ -13757,13 +13757,13 @@ var La = {}, Vs = { exports: {} };
|
|
|
13757
13757
|
function I(A, x) {
|
|
13758
13758
|
var W = [], K = !0, ge = !1, _e = void 0;
|
|
13759
13759
|
try {
|
|
13760
|
-
for (var
|
|
13760
|
+
for (var qe = A[Symbol.iterator](), it; !(K = (it = qe.next()).done) && (W.push(it.value), !(x && W.length === x)); K = !0)
|
|
13761
13761
|
;
|
|
13762
13762
|
} catch (ut) {
|
|
13763
13763
|
ge = !0, _e = ut;
|
|
13764
13764
|
} finally {
|
|
13765
13765
|
try {
|
|
13766
|
-
!K &&
|
|
13766
|
+
!K && qe.return && qe.return();
|
|
13767
13767
|
} finally {
|
|
13768
13768
|
if (ge)
|
|
13769
13769
|
throw _e;
|
|
@@ -13798,7 +13798,7 @@ var La = {}, Vs = { exports: {} };
|
|
|
13798
13798
|
x[W] = A(I[W]);
|
|
13799
13799
|
return x;
|
|
13800
13800
|
}
|
|
13801
|
-
function
|
|
13801
|
+
function Fe(I, A) {
|
|
13802
13802
|
var x = I.split("@"), W = "";
|
|
13803
13803
|
x.length > 1 && (W = x[0] + "@", I = x[1]), I = I.replace(Y, ".");
|
|
13804
13804
|
var K = I.split("."), ge = Pe(K, A).join(".");
|
|
@@ -13832,11 +13832,11 @@ var La = {}, Vs = { exports: {} };
|
|
|
13832
13832
|
A = Q(A / z);
|
|
13833
13833
|
return Q(K + (z + 1) * A / (A + E));
|
|
13834
13834
|
}, k = function(A) {
|
|
13835
|
-
var x = [], W = A.length, K = 0, ge = B, _e = U,
|
|
13836
|
-
|
|
13837
|
-
for (var it = 0; it <
|
|
13835
|
+
var x = [], W = A.length, K = 0, ge = B, _e = U, qe = A.lastIndexOf(L);
|
|
13836
|
+
qe < 0 && (qe = 0);
|
|
13837
|
+
for (var it = 0; it < qe; ++it)
|
|
13838
13838
|
A.charCodeAt(it) >= 128 && re("not-basic"), x.push(A.charCodeAt(it));
|
|
13839
|
-
for (var ut =
|
|
13839
|
+
for (var ut = qe > 0 ? qe + 1 : 0; ut < W; ) {
|
|
13840
13840
|
for (
|
|
13841
13841
|
var me = K, tt = 1, w = v;
|
|
13842
13842
|
;
|
|
@@ -13859,9 +13859,9 @@ var La = {}, Vs = { exports: {} };
|
|
|
13859
13859
|
}, C = function(A) {
|
|
13860
13860
|
var x = [];
|
|
13861
13861
|
A = dt(A);
|
|
13862
|
-
var W = A.length, K = B, ge = 0, _e = U,
|
|
13862
|
+
var W = A.length, K = B, ge = 0, _e = U, qe = !0, it = !1, ut = void 0;
|
|
13863
13863
|
try {
|
|
13864
|
-
for (var me = A[Symbol.iterator](), tt; !(
|
|
13864
|
+
for (var me = A[Symbol.iterator](), tt; !(qe = (tt = me.next()).done); qe = !0) {
|
|
13865
13865
|
var w = tt.value;
|
|
13866
13866
|
w < 128 && x.push(X(w));
|
|
13867
13867
|
}
|
|
@@ -13869,7 +13869,7 @@ var La = {}, Vs = { exports: {} };
|
|
|
13869
13869
|
it = !0, ut = _i;
|
|
13870
13870
|
} finally {
|
|
13871
13871
|
try {
|
|
13872
|
-
!
|
|
13872
|
+
!qe && me.return && me.return();
|
|
13873
13873
|
} finally {
|
|
13874
13874
|
if (it)
|
|
13875
13875
|
throw ut;
|
|
@@ -13929,11 +13929,11 @@ var La = {}, Vs = { exports: {} };
|
|
|
13929
13929
|
}
|
|
13930
13930
|
return x.join("");
|
|
13931
13931
|
}, g = function(A) {
|
|
13932
|
-
return
|
|
13932
|
+
return Fe(A, function(x) {
|
|
13933
13933
|
return P.test(x) ? k(x.slice(4).toLowerCase()) : x;
|
|
13934
13934
|
});
|
|
13935
13935
|
}, b = function(A) {
|
|
13936
|
-
return
|
|
13936
|
+
return Fe(A, function(x) {
|
|
13937
13937
|
return Z.test(x) ? "xn--" + C(x) : x;
|
|
13938
13938
|
});
|
|
13939
13939
|
}, $ = {
|
|
@@ -13977,8 +13977,8 @@ var La = {}, Vs = { exports: {} };
|
|
|
13977
13977
|
x += 6;
|
|
13978
13978
|
} else if (K >= 224) {
|
|
13979
13979
|
if (W - x >= 9) {
|
|
13980
|
-
var _e = parseInt(I.substr(x + 4, 2), 16),
|
|
13981
|
-
A += String.fromCharCode((K & 15) << 12 | (_e & 63) << 6 |
|
|
13980
|
+
var _e = parseInt(I.substr(x + 4, 2), 16), qe = parseInt(I.substr(x + 7, 2), 16);
|
|
13981
|
+
A += String.fromCharCode((K & 15) << 12 | (_e & 63) << 6 | qe & 63);
|
|
13982
13982
|
} else
|
|
13983
13983
|
A += I.substr(x, 9);
|
|
13984
13984
|
x += 9;
|
|
@@ -14004,7 +14004,7 @@ var La = {}, Vs = { exports: {} };
|
|
|
14004
14004
|
function F(I, A) {
|
|
14005
14005
|
var x = I.match(A.IPV6ADDRESS) || [], W = d(x, 3), K = W[1], ge = W[2];
|
|
14006
14006
|
if (K) {
|
|
14007
|
-
for (var _e = K.toLowerCase().split("::").reverse(),
|
|
14007
|
+
for (var _e = K.toLowerCase().split("::").reverse(), qe = d(_e, 2), it = qe[0], ut = qe[1], me = ut ? ut.split(":").map(oe) : [], tt = it.split(":").map(oe), w = A.IPV4ADDRESS.test(tt[tt.length - 1]), S = w ? 7 : 8, be = tt.length - S, Qe = Array(S), st = 0; st < S; ++st)
|
|
14008
14008
|
Qe[st] = me[st] || tt[be + st] || "";
|
|
14009
14009
|
w && (Qe[S - 1] = je(Qe[S - 1], A));
|
|
14010
14010
|
var Jn = Qe.reduce(function(Zt, _n, hr) {
|
|
@@ -14054,13 +14054,13 @@ var La = {}, Vs = { exports: {} };
|
|
|
14054
14054
|
return "[" + ge + (_e ? "%25" + _e : "") + "]";
|
|
14055
14055
|
})), (typeof I.port == "number" || typeof I.port == "string") && (W.push(":"), W.push(String(I.port))), W.length ? W.join("") : void 0;
|
|
14056
14056
|
}
|
|
14057
|
-
var Ae = /^\.\.?\//,
|
|
14057
|
+
var Ae = /^\.\.?\//, He = /^\/\.(\/|$)/, ct = /^\/\.\.(\/|$)/, at = /^\/?(?:.|\n)*?(?=\/|$)/;
|
|
14058
14058
|
function Ne(I) {
|
|
14059
14059
|
for (var A = []; I.length; )
|
|
14060
14060
|
if (I.match(Ae))
|
|
14061
14061
|
I = I.replace(Ae, "");
|
|
14062
|
-
else if (I.match(
|
|
14063
|
-
I = I.replace(
|
|
14062
|
+
else if (I.match(He))
|
|
14063
|
+
I = I.replace(He, "/");
|
|
14064
14064
|
else if (I.match(ct))
|
|
14065
14065
|
I = I.replace(ct, "/"), A.pop();
|
|
14066
14066
|
else if (I === "." || I === "..")
|
|
@@ -14081,8 +14081,8 @@ var La = {}, Vs = { exports: {} };
|
|
|
14081
14081
|
if (A.domainHost || K && K.domainHost)
|
|
14082
14082
|
try {
|
|
14083
14083
|
I.host = A.iri ? $.toUnicode(I.host) : $.toASCII(I.host.replace(x.PCT_ENCODED, ie).toLowerCase());
|
|
14084
|
-
} catch (
|
|
14085
|
-
I.error = I.error || "Host's domain name can not be converted to " + (A.iri ? "Unicode" : "ASCII") + " via punycode: " +
|
|
14084
|
+
} catch (qe) {
|
|
14085
|
+
I.error = I.error || "Host's domain name can not be converted to " + (A.iri ? "Unicode" : "ASCII") + " via punycode: " + qe;
|
|
14086
14086
|
}
|
|
14087
14087
|
}
|
|
14088
14088
|
ne(I, x), A.reference !== "suffix" && I.scheme && (W.push(I.scheme), W.push(":"));
|
|
@@ -14161,8 +14161,8 @@ var La = {}, Vs = { exports: {} };
|
|
|
14161
14161
|
parse: function(A, x) {
|
|
14162
14162
|
var W = A, K = W.to = W.path ? W.path.split(",") : [];
|
|
14163
14163
|
if (W.path = void 0, W.query) {
|
|
14164
|
-
for (var ge = !1, _e = {},
|
|
14165
|
-
var me =
|
|
14164
|
+
for (var ge = !1, _e = {}, qe = W.query.split("&"), it = 0, ut = qe.length; it < ut; ++it) {
|
|
14165
|
+
var me = qe[it].split("=");
|
|
14166
14166
|
switch (me[0]) {
|
|
14167
14167
|
case "to":
|
|
14168
14168
|
for (var tt = me[1].split(","), w = 0, S = tt.length; w < S; ++w)
|
|
@@ -14200,7 +14200,7 @@ var La = {}, Vs = { exports: {} };
|
|
|
14200
14200
|
var W = A, K = l(A.to);
|
|
14201
14201
|
if (K) {
|
|
14202
14202
|
for (var ge = 0, _e = K.length; ge < _e; ++ge) {
|
|
14203
|
-
var
|
|
14203
|
+
var qe = String(K[ge]), it = qe.lastIndexOf("@"), ut = qe.slice(0, it).replace(yn, Qn).replace(yn, o).replace(Ln, H), me = qe.slice(it + 1);
|
|
14204
14204
|
try {
|
|
14205
14205
|
me = x.iri ? $.toUnicode(me) : $.toASCII(Ee(me, x).toLowerCase());
|
|
14206
14206
|
} catch (be) {
|
|
@@ -14222,8 +14222,8 @@ var La = {}, Vs = { exports: {} };
|
|
|
14222
14222
|
parse: function(A, x) {
|
|
14223
14223
|
var W = A.path && A.path.match(gi), K = A;
|
|
14224
14224
|
if (W) {
|
|
14225
|
-
var ge = x.scheme || K.scheme || "urn", _e = W[1].toLowerCase(),
|
|
14226
|
-
K.nid = _e, K.nss =
|
|
14225
|
+
var ge = x.scheme || K.scheme || "urn", _e = W[1].toLowerCase(), qe = W[2], it = ge + ":" + (x.nid || _e), ut = R[it];
|
|
14226
|
+
K.nid = _e, K.nss = qe, K.path = void 0, ut && (K = ut.parse(K, x));
|
|
14227
14227
|
} else
|
|
14228
14228
|
K.error = K.error || "URN can not be parsed.";
|
|
14229
14229
|
return K;
|
|
@@ -14231,8 +14231,8 @@ var La = {}, Vs = { exports: {} };
|
|
|
14231
14231
|
serialize: function(A, x) {
|
|
14232
14232
|
var W = x.scheme || A.scheme || "urn", K = A.nid, ge = W + ":" + (x.nid || K), _e = R[ge];
|
|
14233
14233
|
_e && (A = _e.serialize(A, x));
|
|
14234
|
-
var
|
|
14235
|
-
return
|
|
14234
|
+
var qe = A, it = A.nss;
|
|
14235
|
+
return qe.path = (K || x.nid) + ":" + it, qe;
|
|
14236
14236
|
}
|
|
14237
14237
|
}, ht = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, O = {
|
|
14238
14238
|
scheme: "urn:uuid",
|
|
@@ -14259,7 +14259,7 @@ La.default = mp;
|
|
|
14259
14259
|
Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
|
|
14260
14260
|
return t.KeywordCxt;
|
|
14261
14261
|
} });
|
|
14262
|
-
var n =
|
|
14262
|
+
var n = Be;
|
|
14263
14263
|
Object.defineProperty(e, "_", { enumerable: !0, get: function() {
|
|
14264
14264
|
return n._;
|
|
14265
14265
|
} }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
|
|
@@ -14273,7 +14273,7 @@ La.default = mp;
|
|
|
14273
14273
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
14274
14274
|
return n.CodeGen;
|
|
14275
14275
|
} });
|
|
14276
|
-
const r = Xi, i = Zi, s = xr, o = Ht, l =
|
|
14276
|
+
const r = Xi, i = Zi, s = xr, o = Ht, l = Be, u = Et, c = Ji, m = ze, a = oS, d = La, p = (N, y) => new RegExp(N, y);
|
|
14277
14277
|
p.code = "new RegExp";
|
|
14278
14278
|
const h = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
|
|
14279
14279
|
"validate",
|
|
@@ -14311,7 +14311,7 @@ La.default = mp;
|
|
|
14311
14311
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
14312
14312
|
}, E = 200;
|
|
14313
14313
|
function j(N) {
|
|
14314
|
-
var y, k, C, g, b, $, R, H, ie, ne, oe, je, F, ee, he, fe, we, Ae,
|
|
14314
|
+
var y, k, C, g, b, $, R, H, ie, ne, oe, je, F, ee, he, fe, we, Ae, He, ct, at, Ne, G, se, ae;
|
|
14315
14315
|
const pe = N.strict, Se = (y = N.code) === null || y === void 0 ? void 0 : y.optimize, xe = Se === !0 || Se === void 0 ? 1 : Se || 0, Ee = (C = (k = N.code) === null || k === void 0 ? void 0 : k.regExp) !== null && C !== void 0 ? C : p, Tt = (g = N.uriResolver) !== null && g !== void 0 ? g : d.default;
|
|
14316
14316
|
return {
|
|
14317
14317
|
strictSchema: ($ = (b = N.strictSchema) !== null && b !== void 0 ? b : pe) !== null && $ !== void 0 ? $ : !0,
|
|
@@ -14324,7 +14324,7 @@ La.default = mp;
|
|
|
14324
14324
|
loopEnum: (fe = N.loopEnum) !== null && fe !== void 0 ? fe : E,
|
|
14325
14325
|
meta: (we = N.meta) !== null && we !== void 0 ? we : !0,
|
|
14326
14326
|
messages: (Ae = N.messages) !== null && Ae !== void 0 ? Ae : !0,
|
|
14327
|
-
inlineRefs: (
|
|
14327
|
+
inlineRefs: (He = N.inlineRefs) !== null && He !== void 0 ? He : !0,
|
|
14328
14328
|
schemaId: (ct = N.schemaId) !== null && ct !== void 0 ? ct : "$id",
|
|
14329
14329
|
addUsedSchema: (at = N.addUsedSchema) !== null && at !== void 0 ? at : !0,
|
|
14330
14330
|
validateSchema: (Ne = N.validateSchema) !== null && Ne !== void 0 ? Ne : !0,
|
|
@@ -14676,9 +14676,9 @@ La.default = mp;
|
|
|
14676
14676
|
schemaType: (0, c.getJSONTypes)(y.schemaType)
|
|
14677
14677
|
}
|
|
14678
14678
|
};
|
|
14679
|
-
y.before ?
|
|
14679
|
+
y.before ? Fe.call(this, $, R, y.before) : $.rules.push(R), b.all[N] = R, (C = y.implements) === null || C === void 0 || C.forEach((H) => this.addKeyword(H));
|
|
14680
14680
|
}
|
|
14681
|
-
function
|
|
14681
|
+
function Fe(N, y, k) {
|
|
14682
14682
|
const C = N.rules.findIndex((g) => g.keyword === k);
|
|
14683
14683
|
C >= 0 ? N.rules.splice(C, 0, y) : (N.rules.push(y), this.logger.warn(`rule ${k} is not defined`));
|
|
14684
14684
|
}
|
|
@@ -14705,7 +14705,7 @@ Ra.default = aS;
|
|
|
14705
14705
|
var jr = {};
|
|
14706
14706
|
Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
14707
14707
|
jr.callRef = jr.getValidate = void 0;
|
|
14708
|
-
const lS = Zi, _c =
|
|
14708
|
+
const lS = Zi, _c = Ue, Vt = Be, Hr = xn, bc = Ht, lo = ze, cS = {
|
|
14709
14709
|
keyword: "$ref",
|
|
14710
14710
|
schemaType: "string",
|
|
14711
14711
|
code(e) {
|
|
@@ -14802,7 +14802,7 @@ const uS = Ra, dS = jr, fS = [
|
|
|
14802
14802
|
Ma.default = fS;
|
|
14803
14803
|
var Fa = {}, Ua = {};
|
|
14804
14804
|
Object.defineProperty(Ua, "__esModule", { value: !0 });
|
|
14805
|
-
const Lo =
|
|
14805
|
+
const Lo = Be, Zn = Lo.operators, Do = {
|
|
14806
14806
|
maximum: { okStr: "<=", ok: Zn.LTE, fail: Zn.GT },
|
|
14807
14807
|
minimum: { okStr: ">=", ok: Zn.GTE, fail: Zn.LT },
|
|
14808
14808
|
exclusiveMaximum: { okStr: "<", ok: Zn.LT, fail: Zn.GTE },
|
|
@@ -14824,7 +14824,7 @@ const Lo = Ue, Zn = Lo.operators, Do = {
|
|
|
14824
14824
|
Ua.default = mS;
|
|
14825
14825
|
var Ba = {};
|
|
14826
14826
|
Object.defineProperty(Ba, "__esModule", { value: !0 });
|
|
14827
|
-
const Pi =
|
|
14827
|
+
const Pi = Be, hS = {
|
|
14828
14828
|
message: ({ schemaCode: e }) => (0, Pi.str)`must be multiple of ${e}`,
|
|
14829
14829
|
params: ({ schemaCode: e }) => (0, Pi._)`{multipleOf: ${e}}`
|
|
14830
14830
|
}, yS = {
|
|
@@ -14851,7 +14851,7 @@ function yp(e) {
|
|
|
14851
14851
|
Va.default = yp;
|
|
14852
14852
|
yp.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
14853
14853
|
Object.defineProperty(qa, "__esModule", { value: !0 });
|
|
14854
|
-
const br =
|
|
14854
|
+
const br = Be, gS = ze, vS = Va, _S = {
|
|
14855
14855
|
message({ keyword: e, schemaCode: t }) {
|
|
14856
14856
|
const n = e === "maxLength" ? "more" : "fewer";
|
|
14857
14857
|
return (0, br.str)`must NOT have ${n} than ${t} characters`;
|
|
@@ -14871,7 +14871,7 @@ const br = Ue, gS = ze, vS = Va, _S = {
|
|
|
14871
14871
|
qa.default = bS;
|
|
14872
14872
|
var Ha = {};
|
|
14873
14873
|
Object.defineProperty(Ha, "__esModule", { value: !0 });
|
|
14874
|
-
const TS =
|
|
14874
|
+
const TS = Ue, Mo = Be, SS = {
|
|
14875
14875
|
message: ({ schemaCode: e }) => (0, Mo.str)`must match pattern "${e}"`,
|
|
14876
14876
|
params: ({ schemaCode: e }) => (0, Mo._)`{pattern: ${e}}`
|
|
14877
14877
|
}, wS = {
|
|
@@ -14888,7 +14888,7 @@ const TS = Fe, Mo = Ue, SS = {
|
|
|
14888
14888
|
Ha.default = wS;
|
|
14889
14889
|
var Ka = {};
|
|
14890
14890
|
Object.defineProperty(Ka, "__esModule", { value: !0 });
|
|
14891
|
-
const Ni =
|
|
14891
|
+
const Ni = Be, $S = {
|
|
14892
14892
|
message({ keyword: e, schemaCode: t }) {
|
|
14893
14893
|
const n = e === "maxProperties" ? "more" : "fewer";
|
|
14894
14894
|
return (0, Ni.str)`must NOT have ${n} than ${t} properties`;
|
|
@@ -14908,7 +14908,7 @@ const Ni = Ue, $S = {
|
|
|
14908
14908
|
Ka.default = CS;
|
|
14909
14909
|
var Ga = {};
|
|
14910
14910
|
Object.defineProperty(Ga, "__esModule", { value: !0 });
|
|
14911
|
-
const Si =
|
|
14911
|
+
const Si = Ue, xi = Be, kS = ze, OS = {
|
|
14912
14912
|
message: ({ params: { missingProperty: e } }) => (0, xi.str)`must have required property '${e}'`,
|
|
14913
14913
|
params: ({ params: { missingProperty: e } }) => (0, xi._)`{missingProperty: ${e}}`
|
|
14914
14914
|
}, AS = {
|
|
@@ -14962,7 +14962,7 @@ const Si = Fe, xi = Ue, kS = ze, OS = {
|
|
|
14962
14962
|
Ga.default = AS;
|
|
14963
14963
|
var Wa = {};
|
|
14964
14964
|
Object.defineProperty(Wa, "__esModule", { value: !0 });
|
|
14965
|
-
const ji =
|
|
14965
|
+
const ji = Be, ES = {
|
|
14966
14966
|
message({ keyword: e, schemaCode: t }) {
|
|
14967
14967
|
const n = e === "maxItems" ? "more" : "fewer";
|
|
14968
14968
|
return (0, ji.str)`must NOT have ${n} than ${t} items`;
|
|
@@ -14986,7 +14986,7 @@ const gp = Jf;
|
|
|
14986
14986
|
gp.code = 'require("ajv/dist/runtime/equal").default';
|
|
14987
14987
|
eo.default = gp;
|
|
14988
14988
|
Object.defineProperty(za, "__esModule", { value: !0 });
|
|
14989
|
-
const $s = Ji, At =
|
|
14989
|
+
const $s = Ji, At = Be, PS = ze, NS = eo, xS = {
|
|
14990
14990
|
message: ({ params: { i: e, j: t } }) => (0, At.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
|
|
14991
14991
|
params: ({ params: { i: e, j: t } }) => (0, At._)`{i: ${e}, j: ${t}}`
|
|
14992
14992
|
}, jS = {
|
|
@@ -15027,7 +15027,7 @@ const $s = Ji, At = Ue, PS = ze, NS = eo, xS = {
|
|
|
15027
15027
|
za.default = jS;
|
|
15028
15028
|
var Qa = {};
|
|
15029
15029
|
Object.defineProperty(Qa, "__esModule", { value: !0 });
|
|
15030
|
-
const Hs =
|
|
15030
|
+
const Hs = Be, LS = ze, DS = eo, MS = {
|
|
15031
15031
|
message: "must be equal to constant",
|
|
15032
15032
|
params: ({ schemaCode: e }) => (0, Hs._)`{allowedValue: ${e}}`
|
|
15033
15033
|
}, RS = {
|
|
@@ -15042,7 +15042,7 @@ const Hs = Ue, LS = ze, DS = eo, MS = {
|
|
|
15042
15042
|
Qa.default = RS;
|
|
15043
15043
|
var Ya = {};
|
|
15044
15044
|
Object.defineProperty(Ya, "__esModule", { value: !0 });
|
|
15045
|
-
const Ci =
|
|
15045
|
+
const Ci = Be, FS = ze, US = eo, BS = {
|
|
15046
15046
|
message: "must be equal to one of the allowed values",
|
|
15047
15047
|
params: ({ schemaCode: e }) => (0, Ci._)`{allowedValues: ${e}}`
|
|
15048
15048
|
}, qS = {
|
|
@@ -15101,7 +15101,7 @@ Fa.default = ZS;
|
|
|
15101
15101
|
var Ja = {}, fi = {};
|
|
15102
15102
|
Object.defineProperty(fi, "__esModule", { value: !0 });
|
|
15103
15103
|
fi.validateAdditionalItems = void 0;
|
|
15104
|
-
const Tr =
|
|
15104
|
+
const Tr = Be, Ks = ze, ew = {
|
|
15105
15105
|
message: ({ params: { len: e } }) => (0, Tr.str)`must NOT have more than ${e} items`,
|
|
15106
15106
|
params: ({ params: { len: e } }) => (0, Tr._)`{limit: ${e}}`
|
|
15107
15107
|
}, tw = {
|
|
@@ -15140,7 +15140,7 @@ fi.default = tw;
|
|
|
15140
15140
|
var Xa = {}, pi = {};
|
|
15141
15141
|
Object.defineProperty(pi, "__esModule", { value: !0 });
|
|
15142
15142
|
pi.validateTuple = void 0;
|
|
15143
|
-
const Tc =
|
|
15143
|
+
const Tc = Be, So = ze, nw = Ue, rw = {
|
|
15144
15144
|
keyword: "items",
|
|
15145
15145
|
type: "array",
|
|
15146
15146
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -15184,7 +15184,7 @@ const iw = pi, ow = {
|
|
|
15184
15184
|
Xa.default = ow;
|
|
15185
15185
|
var Za = {};
|
|
15186
15186
|
Object.defineProperty(Za, "__esModule", { value: !0 });
|
|
15187
|
-
const Sc =
|
|
15187
|
+
const Sc = Be, sw = ze, aw = Ue, lw = fi, cw = {
|
|
15188
15188
|
message: ({ params: { len: e } }) => (0, Sc.str)`must NOT have more than ${e} items`,
|
|
15189
15189
|
params: ({ params: { len: e } }) => (0, Sc._)`{limit: ${e}}`
|
|
15190
15190
|
}, uw = {
|
|
@@ -15201,7 +15201,7 @@ const Sc = Ue, sw = ze, aw = Fe, lw = fi, cw = {
|
|
|
15201
15201
|
Za.default = uw;
|
|
15202
15202
|
var el = {};
|
|
15203
15203
|
Object.defineProperty(el, "__esModule", { value: !0 });
|
|
15204
|
-
const nn =
|
|
15204
|
+
const nn = Be, co = ze, dw = {
|
|
15205
15205
|
message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, nn.str)`must contain at least ${e} valid item(s)` : (0, nn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
|
|
15206
15206
|
params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, nn._)`{minContains: ${e}}` : (0, nn._)`{minContains: ${e}, maxContains: ${t}}`
|
|
15207
15207
|
}, fw = {
|
|
@@ -15256,7 +15256,7 @@ el.default = fw;
|
|
|
15256
15256
|
var bp = {};
|
|
15257
15257
|
(function(e) {
|
|
15258
15258
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
15259
|
-
const t =
|
|
15259
|
+
const t = Be, n = ze, r = Ue;
|
|
15260
15260
|
e.error = {
|
|
15261
15261
|
message: ({ params: { property: u, depsCount: c, deps: m } }) => {
|
|
15262
15262
|
const a = c === 1 ? "property" : "properties";
|
|
@@ -15326,7 +15326,7 @@ var bp = {};
|
|
|
15326
15326
|
})(bp);
|
|
15327
15327
|
var tl = {};
|
|
15328
15328
|
Object.defineProperty(tl, "__esModule", { value: !0 });
|
|
15329
|
-
const Tp =
|
|
15329
|
+
const Tp = Be, pw = ze, mw = {
|
|
15330
15330
|
message: "property name must be valid",
|
|
15331
15331
|
params: ({ params: e }) => (0, Tp._)`{propertyName: ${e.propertyName}}`
|
|
15332
15332
|
}, hw = {
|
|
@@ -15355,7 +15355,7 @@ const Tp = Ue, pw = ze, mw = {
|
|
|
15355
15355
|
tl.default = hw;
|
|
15356
15356
|
var ss = {};
|
|
15357
15357
|
Object.defineProperty(ss, "__esModule", { value: !0 });
|
|
15358
|
-
const uo =
|
|
15358
|
+
const uo = Ue, ln = Be, yw = xn, fo = ze, gw = {
|
|
15359
15359
|
message: "must NOT have additional properties",
|
|
15360
15360
|
params: ({ params: e }) => (0, ln._)`{additionalProperty: ${e.additionalProperty}}`
|
|
15361
15361
|
}, vw = {
|
|
@@ -15424,7 +15424,7 @@ const uo = Fe, ln = Ue, yw = xn, fo = ze, gw = {
|
|
|
15424
15424
|
ss.default = vw;
|
|
15425
15425
|
var nl = {};
|
|
15426
15426
|
Object.defineProperty(nl, "__esModule", { value: !0 });
|
|
15427
|
-
const _w = fn, wc =
|
|
15427
|
+
const _w = fn, wc = Ue, Cs = ze, $c = ss, bw = {
|
|
15428
15428
|
keyword: "properties",
|
|
15429
15429
|
type: "object",
|
|
15430
15430
|
schemaType: "object",
|
|
@@ -15456,7 +15456,7 @@ const _w = fn, wc = Fe, Cs = ze, $c = ss, bw = {
|
|
|
15456
15456
|
nl.default = bw;
|
|
15457
15457
|
var rl = {};
|
|
15458
15458
|
Object.defineProperty(rl, "__esModule", { value: !0 });
|
|
15459
|
-
const Cc =
|
|
15459
|
+
const Cc = Ue, po = Be, kc = ze, Oc = ze, Tw = {
|
|
15460
15460
|
keyword: "patternProperties",
|
|
15461
15461
|
type: "object",
|
|
15462
15462
|
schemaType: "object",
|
|
@@ -15517,7 +15517,7 @@ const Sw = ze, ww = {
|
|
|
15517
15517
|
il.default = ww;
|
|
15518
15518
|
var ol = {};
|
|
15519
15519
|
Object.defineProperty(ol, "__esModule", { value: !0 });
|
|
15520
|
-
const $w =
|
|
15520
|
+
const $w = Ue, Cw = {
|
|
15521
15521
|
keyword: "anyOf",
|
|
15522
15522
|
schemaType: "array",
|
|
15523
15523
|
trackErrors: !0,
|
|
@@ -15527,7 +15527,7 @@ const $w = Fe, Cw = {
|
|
|
15527
15527
|
ol.default = Cw;
|
|
15528
15528
|
var sl = {};
|
|
15529
15529
|
Object.defineProperty(sl, "__esModule", { value: !0 });
|
|
15530
|
-
const wo =
|
|
15530
|
+
const wo = Be, kw = ze, Ow = {
|
|
15531
15531
|
message: "must match exactly one schema in oneOf",
|
|
15532
15532
|
params: ({ params: e }) => (0, wo._)`{passingSchemas: ${e.passing}}`
|
|
15533
15533
|
}, Aw = {
|
|
@@ -15579,7 +15579,7 @@ const Ew = ze, Iw = {
|
|
|
15579
15579
|
al.default = Iw;
|
|
15580
15580
|
var ll = {};
|
|
15581
15581
|
Object.defineProperty(ll, "__esModule", { value: !0 });
|
|
15582
|
-
const Ro =
|
|
15582
|
+
const Ro = Be, Sp = ze, Pw = {
|
|
15583
15583
|
message: ({ params: e }) => (0, Ro.str)`must match "${e.ifClause}" schema`,
|
|
15584
15584
|
params: ({ params: e }) => (0, Ro._)`{failingKeyword: ${e.ifClause}}`
|
|
15585
15585
|
}, Nw = {
|
|
@@ -15655,7 +15655,7 @@ function Jw(e = !1) {
|
|
|
15655
15655
|
Ja.default = Jw;
|
|
15656
15656
|
var ul = {}, dl = {};
|
|
15657
15657
|
Object.defineProperty(dl, "__esModule", { value: !0 });
|
|
15658
|
-
const yt =
|
|
15658
|
+
const yt = Be, Xw = {
|
|
15659
15659
|
message: ({ schemaCode: e }) => (0, yt.str)`must match format "${e}"`,
|
|
15660
15660
|
params: ({ schemaCode: e }) => (0, yt._)`{format: ${e}}`
|
|
15661
15661
|
}, Zw = {
|
|
@@ -15756,7 +15756,7 @@ var fl = {}, wp = {};
|
|
|
15756
15756
|
}(e.DiscrError || (e.DiscrError = {}));
|
|
15757
15757
|
})(wp);
|
|
15758
15758
|
Object.defineProperty(fl, "__esModule", { value: !0 });
|
|
15759
|
-
const Gr =
|
|
15759
|
+
const Gr = Be, Gs = wp, Ic = Ht, a$ = ze, l$ = {
|
|
15760
15760
|
message: ({ params: { discrError: e, tagName: t } }) => e === Gs.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
|
|
15761
15761
|
params: ({ params: { discrError: e, tag: t, tagName: n } }) => (0, Gr._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`
|
|
15762
15762
|
}, c$ = {
|
|
@@ -16087,7 +16087,7 @@ const u$ = "http://json-schema.org/draft-07/schema#", d$ = "http://json-schema.o
|
|
|
16087
16087
|
Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
|
|
16088
16088
|
return c.KeywordCxt;
|
|
16089
16089
|
} });
|
|
16090
|
-
var m =
|
|
16090
|
+
var m = Be;
|
|
16091
16091
|
Object.defineProperty(t, "_", { enumerable: !0, get: function() {
|
|
16092
16092
|
return m._;
|
|
16093
16093
|
} }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
|
|
@@ -16199,12 +16199,12 @@ window.narratHMRHandler = (e) => {
|
|
|
16199
16199
|
};
|
|
16200
16200
|
class V {
|
|
16201
16201
|
constructor(t, n, r, i) {
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16202
|
+
Ve(this, "keyword");
|
|
16203
|
+
Ve(this, "runner");
|
|
16204
|
+
Ve(this, "argTypes");
|
|
16205
|
+
Ve(this, "parser");
|
|
16206
|
+
Ve(this, "onPlayerAnswered");
|
|
16207
|
+
Ve(this, "returnAfterPlayerAnswer");
|
|
16208
16208
|
this.keyword = t, this.runner = r, this.argTypes = n, i ? this.parser = i : this.parser = to(this.keyword, this.argTypes), this.returnAfterPlayerAnswer = !1;
|
|
16209
16209
|
}
|
|
16210
16210
|
async run(t, n) {
|
|
@@ -16650,11 +16650,11 @@ const Pt = bt("quests", {
|
|
|
16650
16650
|
},
|
|
16651
16651
|
generateSaveData() {
|
|
16652
16652
|
return {
|
|
16653
|
-
quests:
|
|
16653
|
+
quests: Re(this.quests)
|
|
16654
16654
|
};
|
|
16655
16655
|
},
|
|
16656
16656
|
loadSaveData(e) {
|
|
16657
|
-
this.quests =
|
|
16657
|
+
this.quests = Re(e.quests);
|
|
16658
16658
|
}
|
|
16659
16659
|
}
|
|
16660
16660
|
});
|
|
@@ -16762,19 +16762,19 @@ function ui() {
|
|
|
16762
16762
|
}
|
|
16763
16763
|
});
|
|
16764
16764
|
}
|
|
16765
|
-
function
|
|
16765
|
+
function Re(e) {
|
|
16766
16766
|
if (e === null)
|
|
16767
16767
|
return null;
|
|
16768
16768
|
if (typeof e == "object")
|
|
16769
16769
|
if (Array.isArray(e)) {
|
|
16770
16770
|
const t = [];
|
|
16771
16771
|
for (const n in e)
|
|
16772
|
-
t[n] =
|
|
16772
|
+
t[n] = Re(e[n]);
|
|
16773
16773
|
return t;
|
|
16774
16774
|
} else {
|
|
16775
16775
|
const t = {};
|
|
16776
16776
|
for (const n in e)
|
|
16777
|
-
t[n] =
|
|
16777
|
+
t[n] = Re(e[n]);
|
|
16778
16778
|
return t;
|
|
16779
16779
|
}
|
|
16780
16780
|
else
|
|
@@ -16819,8 +16819,8 @@ const vt = bt("skills", {
|
|
|
16819
16819
|
},
|
|
16820
16820
|
generateSaveData() {
|
|
16821
16821
|
return {
|
|
16822
|
-
skillChecks:
|
|
16823
|
-
skills:
|
|
16822
|
+
skillChecks: Re(this.skillChecks),
|
|
16823
|
+
skills: Re(this.skills)
|
|
16824
16824
|
};
|
|
16825
16825
|
},
|
|
16826
16826
|
getSkillCheck(e) {
|
|
@@ -17222,8 +17222,8 @@ function eC(e, t, n, {
|
|
|
17222
17222
|
let te = Math.max(1, d - Y + 1), z = o ? a : Math.min(d + Y, a) + m, Q = Array(z + 2);
|
|
17223
17223
|
Q[z + 1] = (1 << P) - 1;
|
|
17224
17224
|
for (let re = z; re >= te; re -= 1) {
|
|
17225
|
-
let Pe = re - 1,
|
|
17226
|
-
if (v && (T[Pe] = +!!
|
|
17225
|
+
let Pe = re - 1, Fe = n[e.charAt(Pe)];
|
|
17226
|
+
if (v && (T[Pe] = +!!Fe), Q[re] = (Q[re + 1] << 1 | 1) & Fe, P && (Q[re] |= (E[re + 1] | E[re]) << 1 | 1 | E[re + 1]), Q[re] & B && (j = mo(t, {
|
|
17227
17227
|
errors: P,
|
|
17228
17228
|
currentLocation: Pe,
|
|
17229
17229
|
expectedLocation: d,
|
|
@@ -17982,13 +17982,13 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
|
|
|
17982
17982
|
actions: {
|
|
17983
17983
|
generateGlobalSaveData() {
|
|
17984
17984
|
return {
|
|
17985
|
-
achievements:
|
|
17985
|
+
achievements: Re(this.achievements)
|
|
17986
17986
|
};
|
|
17987
17987
|
},
|
|
17988
17988
|
loadGlobalSaveData(e) {
|
|
17989
17989
|
this.achievements = {
|
|
17990
17990
|
...this.achievements,
|
|
17991
|
-
...
|
|
17991
|
+
...Re(e.achievements)
|
|
17992
17992
|
};
|
|
17993
17993
|
},
|
|
17994
17994
|
updateConfig(e) {
|
|
@@ -18048,11 +18048,11 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
|
|
|
18048
18048
|
},
|
|
18049
18049
|
generateSaveData() {
|
|
18050
18050
|
return {
|
|
18051
|
-
choices:
|
|
18051
|
+
choices: Re(this.choices)
|
|
18052
18052
|
};
|
|
18053
18053
|
},
|
|
18054
18054
|
loadSaveData(e) {
|
|
18055
|
-
this.choices =
|
|
18055
|
+
this.choices = Re(e.choices);
|
|
18056
18056
|
},
|
|
18057
18057
|
reset() {
|
|
18058
18058
|
this.$reset();
|
|
@@ -18193,7 +18193,7 @@ const OC = (e) => (qc("data-v-4598a901"), e = e(), Vc(), e), AC = { class: "debu
|
|
|
18193
18193
|
}), NC = /* @__PURE__ */ sn(PC, [["__scopeId", "data-v-4598a901"]]);
|
|
18194
18194
|
let ti;
|
|
18195
18195
|
async function xC() {
|
|
18196
|
-
ti || (ti = (await import("./index-
|
|
18196
|
+
ti || (ti = (await import("./index-rccjJhyz.js")).JSONEditor, console.log(ti));
|
|
18197
18197
|
}
|
|
18198
18198
|
const jC = Ce({
|
|
18199
18199
|
components: {
|
|
@@ -21738,7 +21738,7 @@ function bI(e) {
|
|
|
21738
21738
|
}
|
|
21739
21739
|
class $l {
|
|
21740
21740
|
constructor() {
|
|
21741
|
-
|
|
21741
|
+
Ve(this, "pluginId", "narrat-plugin");
|
|
21742
21742
|
}
|
|
21743
21743
|
onPageLoaded() {
|
|
21744
21744
|
}
|
|
@@ -21781,14 +21781,14 @@ window.godotReadyCallback = $I;
|
|
|
21781
21781
|
class CI extends $l {
|
|
21782
21782
|
constructor(n) {
|
|
21783
21783
|
super();
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
21784
|
+
Ve(this, "customCommands", []);
|
|
21785
|
+
Ve(this, "canvas");
|
|
21786
|
+
Ve(this, "app");
|
|
21787
|
+
Ve(this, "messageQueue", []);
|
|
21788
|
+
Ve(this, "narrat");
|
|
21789
|
+
Ve(this, "narratReady", !1);
|
|
21790
|
+
Ve(this, "engineConfig");
|
|
21791
|
+
Ve(this, "engine");
|
|
21792
21792
|
const r = {
|
|
21793
21793
|
...wI,
|
|
21794
21794
|
...n.engineConfigOverrides ?? {}
|
|
@@ -21872,11 +21872,11 @@ class CI extends $l {
|
|
|
21872
21872
|
class kI extends $l {
|
|
21873
21873
|
constructor(n = {}) {
|
|
21874
21874
|
super();
|
|
21875
|
-
|
|
21876
|
-
|
|
21877
|
-
|
|
21878
|
-
|
|
21879
|
-
|
|
21875
|
+
Ve(this, "defaultTheme");
|
|
21876
|
+
Ve(this, "themes", []);
|
|
21877
|
+
Ve(this, "activeTheme");
|
|
21878
|
+
Ve(this, "customCommands");
|
|
21879
|
+
Ve(this, "initialConfig");
|
|
21880
21880
|
n.defaultTheme && (this.defaultTheme = n.defaultTheme), n.themes && (this.themes = n.themes), this.customCommands = [this.createChangeThemeCommand()];
|
|
21881
21881
|
}
|
|
21882
21882
|
onNarratSetup() {
|
|
@@ -22416,4 +22416,4 @@ export {
|
|
|
22416
22416
|
vl as y,
|
|
22417
22417
|
Ar as z
|
|
22418
22418
|
};
|
|
22419
|
-
//# sourceMappingURL=lib-
|
|
22419
|
+
//# sourceMappingURL=lib-oQ9rlloA.js.map
|