point-click-lib 0.0.5 → 0.0.6
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/point-click-lib.cjs +1 -1
- package/dist/point-click-lib.d.ts +1926 -165
- package/dist/point-click-lib.iife.js +1 -1
- package/dist/point-click-lib.js +458 -447
- package/dist/point-click-lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/point-click-lib.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Ya = [
|
|
2
2
|
{
|
|
3
3
|
schemaVersion: 3,
|
|
4
4
|
changes: [
|
|
@@ -63,14 +63,14 @@ var S;
|
|
|
63
63
|
}
|
|
64
64
|
a.joinValues = s, a.jsonStringifyReplacer = (n, r) => typeof r == "bigint" ? r.toString() : r;
|
|
65
65
|
})(S || (S = {}));
|
|
66
|
-
var
|
|
66
|
+
var Xe;
|
|
67
67
|
(function(a) {
|
|
68
68
|
a.mergeShapes = (e, t) => ({
|
|
69
69
|
...e,
|
|
70
70
|
...t
|
|
71
71
|
// second overwrites first
|
|
72
72
|
});
|
|
73
|
-
})(
|
|
73
|
+
})(Xe || (Xe = {}));
|
|
74
74
|
const h = S.arrayToEnum([
|
|
75
75
|
"string",
|
|
76
76
|
"nan",
|
|
@@ -195,7 +195,7 @@ class V extends Error {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
V.create = (a) => new V(a);
|
|
198
|
-
const
|
|
198
|
+
const Ne = (a, e) => {
|
|
199
199
|
let t;
|
|
200
200
|
switch (a.code) {
|
|
201
201
|
case d.invalid_type:
|
|
@@ -251,11 +251,11 @@ const Re = (a, e) => {
|
|
|
251
251
|
}
|
|
252
252
|
return { message: t };
|
|
253
253
|
};
|
|
254
|
-
let
|
|
255
|
-
function
|
|
256
|
-
return
|
|
254
|
+
let qt = Ne;
|
|
255
|
+
function $t() {
|
|
256
|
+
return qt;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
258
|
+
const Vt = (a) => {
|
|
259
259
|
const { data: e, path: t, errorMaps: s, issueData: n } = a, r = [...t, ...n.path || []], i = {
|
|
260
260
|
...n,
|
|
261
261
|
path: r
|
|
@@ -277,7 +277,7 @@ const $t = (a) => {
|
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
function u(a, e) {
|
|
280
|
-
const t =
|
|
280
|
+
const t = $t(), s = Vt({
|
|
281
281
|
issueData: e,
|
|
282
282
|
data: a.data,
|
|
283
283
|
path: a.path,
|
|
@@ -288,7 +288,7 @@ function u(a, e) {
|
|
|
288
288
|
// then schema-bound map if available
|
|
289
289
|
t,
|
|
290
290
|
// then global override map
|
|
291
|
-
t ===
|
|
291
|
+
t === Ne ? void 0 : Ne
|
|
292
292
|
// then global default map
|
|
293
293
|
].filter((n) => !!n)
|
|
294
294
|
});
|
|
@@ -337,7 +337,7 @@ class A {
|
|
|
337
337
|
}
|
|
338
338
|
const v = Object.freeze({
|
|
339
339
|
status: "aborted"
|
|
340
|
-
}), Q = (a) => ({ status: "dirty", value: a }), Z = (a) => ({ status: "valid", value: a }),
|
|
340
|
+
}), Q = (a) => ({ status: "dirty", value: a }), Z = (a) => ({ status: "valid", value: a }), Qe = (a) => a.status === "aborted", Ke = (a) => a.status === "dirty", W = (a) => a.status === "valid", ye = (a) => typeof Promise < "u" && a instanceof Promise;
|
|
341
341
|
var f;
|
|
342
342
|
(function(a) {
|
|
343
343
|
a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e?.message;
|
|
@@ -350,7 +350,7 @@ class q {
|
|
|
350
350
|
return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
const
|
|
353
|
+
const et = (a, e) => {
|
|
354
354
|
if (W(e))
|
|
355
355
|
return { success: !0, data: e.value };
|
|
356
356
|
if (!a.common.issues.length)
|
|
@@ -408,7 +408,7 @@ class k {
|
|
|
408
408
|
}
|
|
409
409
|
_parseSync(e) {
|
|
410
410
|
const t = this._parse(e);
|
|
411
|
-
if (
|
|
411
|
+
if (ye(t))
|
|
412
412
|
throw new Error("Synchronous parse encountered promise.");
|
|
413
413
|
return t;
|
|
414
414
|
}
|
|
@@ -435,7 +435,7 @@ class k {
|
|
|
435
435
|
data: e,
|
|
436
436
|
parsedType: D(e)
|
|
437
437
|
}, n = this._parseSync({ data: e, path: s.path, parent: s });
|
|
438
|
-
return
|
|
438
|
+
return et(s, n);
|
|
439
439
|
}
|
|
440
440
|
"~validate"(e) {
|
|
441
441
|
const t = {
|
|
@@ -487,8 +487,8 @@ class k {
|
|
|
487
487
|
parent: null,
|
|
488
488
|
data: e,
|
|
489
489
|
parsedType: D(e)
|
|
490
|
-
}, n = this._parse({ data: e, path: s.path, parent: s }), r = await (
|
|
491
|
-
return
|
|
490
|
+
}, n = this._parse({ data: e, path: s.path, parent: s }), r = await (ye(n) ? n : Promise.resolve(n));
|
|
491
|
+
return et(s, r);
|
|
492
492
|
}
|
|
493
493
|
refine(e, t) {
|
|
494
494
|
const s = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
|
|
@@ -533,13 +533,13 @@ class k {
|
|
|
533
533
|
return j.create(this);
|
|
534
534
|
}
|
|
535
535
|
promise() {
|
|
536
|
-
return
|
|
536
|
+
return ke.create(this, this._def);
|
|
537
537
|
}
|
|
538
538
|
or(e) {
|
|
539
|
-
return
|
|
539
|
+
return ve.create([this, e], this._def);
|
|
540
540
|
}
|
|
541
541
|
and(e) {
|
|
542
|
-
return
|
|
542
|
+
return _e.create(this, e, this._def);
|
|
543
543
|
}
|
|
544
544
|
transform(e) {
|
|
545
545
|
return new H({
|
|
@@ -551,7 +551,7 @@ class k {
|
|
|
551
551
|
}
|
|
552
552
|
default(e) {
|
|
553
553
|
const t = typeof e == "function" ? e : () => e;
|
|
554
|
-
return new
|
|
554
|
+
return new $e({
|
|
555
555
|
...x(this._def),
|
|
556
556
|
innerType: this,
|
|
557
557
|
defaultValue: t,
|
|
@@ -559,7 +559,7 @@ class k {
|
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
brand() {
|
|
562
|
-
return new
|
|
562
|
+
return new ia({
|
|
563
563
|
typeName: g.ZodBranded,
|
|
564
564
|
type: this,
|
|
565
565
|
...x(this._def)
|
|
@@ -567,7 +567,7 @@ class k {
|
|
|
567
567
|
}
|
|
568
568
|
catch(e) {
|
|
569
569
|
const t = typeof e == "function" ? e : () => e;
|
|
570
|
-
return new
|
|
570
|
+
return new Ve({
|
|
571
571
|
...x(this._def),
|
|
572
572
|
innerType: this,
|
|
573
573
|
catchValue: t,
|
|
@@ -582,10 +582,10 @@ class k {
|
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
pipe(e) {
|
|
585
|
-
return
|
|
585
|
+
return Pe.create(this, e);
|
|
586
586
|
}
|
|
587
587
|
readonly() {
|
|
588
|
-
return
|
|
588
|
+
return De.create(this);
|
|
589
589
|
}
|
|
590
590
|
isOptional() {
|
|
591
591
|
return this.safeParse(void 0).success;
|
|
@@ -594,28 +594,28 @@ class k {
|
|
|
594
594
|
return this.safeParse(null).success;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
const
|
|
598
|
-
let
|
|
599
|
-
const
|
|
600
|
-
function
|
|
597
|
+
const Dt = /^c[^\s-]{8,}$/i, Mt = /^[0-9a-z]+$/, Pt = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Bt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Lt = /^[a-z0-9_-]{21}$/i, zt = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ft = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Wt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ut = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
598
|
+
let Re;
|
|
599
|
+
const Gt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ht = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Jt = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Yt = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Xt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Qt = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, ft = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Kt = new RegExp(`^${ft}$`);
|
|
600
|
+
function mt(a) {
|
|
601
601
|
let e = "[0-5]\\d";
|
|
602
602
|
a.precision ? e = `${e}\\.\\d{${a.precision}}` : a.precision == null && (e = `${e}(\\.\\d+)?`);
|
|
603
603
|
const t = a.precision ? "+" : "?";
|
|
604
604
|
return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`;
|
|
605
605
|
}
|
|
606
|
-
function Kt(a) {
|
|
607
|
-
return new RegExp(`^${ft(a)}$`);
|
|
608
|
-
}
|
|
609
606
|
function ea(a) {
|
|
610
|
-
|
|
607
|
+
return new RegExp(`^${mt(a)}$`);
|
|
608
|
+
}
|
|
609
|
+
function ta(a) {
|
|
610
|
+
let e = `${ft}T${mt(a)}`;
|
|
611
611
|
const t = [];
|
|
612
612
|
return t.push(a.local ? "Z?" : "Z"), a.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
613
613
|
}
|
|
614
|
-
function ta(a, e) {
|
|
615
|
-
return !!((e === "v4" || !e) && Ut.test(a) || (e === "v6" || !e) && Ht.test(a));
|
|
616
|
-
}
|
|
617
614
|
function aa(a, e) {
|
|
618
|
-
|
|
615
|
+
return !!((e === "v4" || !e) && Gt.test(a) || (e === "v6" || !e) && Jt.test(a));
|
|
616
|
+
}
|
|
617
|
+
function sa(a, e) {
|
|
618
|
+
if (!zt.test(a))
|
|
619
619
|
return !1;
|
|
620
620
|
try {
|
|
621
621
|
const [t] = a.split(".");
|
|
@@ -627,8 +627,8 @@ function aa(a, e) {
|
|
|
627
627
|
return !1;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
return !!((e === "v4" || !e) &&
|
|
630
|
+
function na(a, e) {
|
|
631
|
+
return !!((e === "v4" || !e) && Ht.test(a) || (e === "v6" || !e) && Yt.test(a));
|
|
632
632
|
}
|
|
633
633
|
class $ extends k {
|
|
634
634
|
_parse(e) {
|
|
@@ -679,13 +679,13 @@ class $ extends k {
|
|
|
679
679
|
message: r.message
|
|
680
680
|
}), s.dirty());
|
|
681
681
|
} else if (r.kind === "email")
|
|
682
|
-
|
|
682
|
+
Wt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
683
683
|
validation: "email",
|
|
684
684
|
code: d.invalid_string,
|
|
685
685
|
message: r.message
|
|
686
686
|
}), s.dirty());
|
|
687
687
|
else if (r.kind === "emoji")
|
|
688
|
-
|
|
688
|
+
Re || (Re = new RegExp(Ut, "u")), Re.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
689
689
|
validation: "emoji",
|
|
690
690
|
code: d.invalid_string,
|
|
691
691
|
message: r.message
|
|
@@ -697,25 +697,25 @@ class $ extends k {
|
|
|
697
697
|
message: r.message
|
|
698
698
|
}), s.dirty());
|
|
699
699
|
else if (r.kind === "nanoid")
|
|
700
|
-
|
|
700
|
+
Lt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
701
701
|
validation: "nanoid",
|
|
702
702
|
code: d.invalid_string,
|
|
703
703
|
message: r.message
|
|
704
704
|
}), s.dirty());
|
|
705
705
|
else if (r.kind === "cuid")
|
|
706
|
-
|
|
706
|
+
Dt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
707
707
|
validation: "cuid",
|
|
708
708
|
code: d.invalid_string,
|
|
709
709
|
message: r.message
|
|
710
710
|
}), s.dirty());
|
|
711
711
|
else if (r.kind === "cuid2")
|
|
712
|
-
|
|
712
|
+
Mt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
713
713
|
validation: "cuid2",
|
|
714
714
|
code: d.invalid_string,
|
|
715
715
|
message: r.message
|
|
716
716
|
}), s.dirty());
|
|
717
717
|
else if (r.kind === "ulid")
|
|
718
|
-
|
|
718
|
+
Pt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
719
719
|
validation: "ulid",
|
|
720
720
|
code: d.invalid_string,
|
|
721
721
|
message: r.message
|
|
@@ -746,39 +746,39 @@ class $ extends k {
|
|
|
746
746
|
code: d.invalid_string,
|
|
747
747
|
validation: { endsWith: r.value },
|
|
748
748
|
message: r.message
|
|
749
|
-
}), s.dirty()) : r.kind === "datetime" ?
|
|
749
|
+
}), s.dirty()) : r.kind === "datetime" ? ta(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
750
750
|
code: d.invalid_string,
|
|
751
751
|
validation: "datetime",
|
|
752
752
|
message: r.message
|
|
753
|
-
}), s.dirty()) : r.kind === "date" ?
|
|
753
|
+
}), s.dirty()) : r.kind === "date" ? Kt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
754
754
|
code: d.invalid_string,
|
|
755
755
|
validation: "date",
|
|
756
756
|
message: r.message
|
|
757
|
-
}), s.dirty()) : r.kind === "time" ?
|
|
757
|
+
}), s.dirty()) : r.kind === "time" ? ea(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
758
758
|
code: d.invalid_string,
|
|
759
759
|
validation: "time",
|
|
760
760
|
message: r.message
|
|
761
|
-
}), s.dirty()) : r.kind === "duration" ?
|
|
761
|
+
}), s.dirty()) : r.kind === "duration" ? Ft.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
762
762
|
validation: "duration",
|
|
763
763
|
code: d.invalid_string,
|
|
764
764
|
message: r.message
|
|
765
|
-
}), s.dirty()) : r.kind === "ip" ?
|
|
765
|
+
}), s.dirty()) : r.kind === "ip" ? aa(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
766
766
|
validation: "ip",
|
|
767
767
|
code: d.invalid_string,
|
|
768
768
|
message: r.message
|
|
769
|
-
}), s.dirty()) : r.kind === "jwt" ?
|
|
769
|
+
}), s.dirty()) : r.kind === "jwt" ? sa(e.data, r.alg) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
770
770
|
validation: "jwt",
|
|
771
771
|
code: d.invalid_string,
|
|
772
772
|
message: r.message
|
|
773
|
-
}), s.dirty()) : r.kind === "cidr" ?
|
|
773
|
+
}), s.dirty()) : r.kind === "cidr" ? na(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
774
774
|
validation: "cidr",
|
|
775
775
|
code: d.invalid_string,
|
|
776
776
|
message: r.message
|
|
777
|
-
}), s.dirty()) : r.kind === "base64" ?
|
|
777
|
+
}), s.dirty()) : r.kind === "base64" ? Xt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
778
778
|
validation: "base64",
|
|
779
779
|
code: d.invalid_string,
|
|
780
780
|
message: r.message
|
|
781
|
-
}), s.dirty()) : r.kind === "base64url" ?
|
|
781
|
+
}), s.dirty()) : r.kind === "base64url" ? Qt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
782
782
|
validation: "base64url",
|
|
783
783
|
code: d.invalid_string,
|
|
784
784
|
message: r.message
|
|
@@ -1013,7 +1013,7 @@ $.create = (a) => new $({
|
|
|
1013
1013
|
coerce: a?.coerce ?? !1,
|
|
1014
1014
|
...x(a)
|
|
1015
1015
|
});
|
|
1016
|
-
function
|
|
1016
|
+
function ra(a, e) {
|
|
1017
1017
|
const t = (a.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, n = t > s ? t : s, r = Number.parseInt(a.toFixed(n).replace(".", "")), i = Number.parseInt(e.toFixed(n).replace(".", ""));
|
|
1018
1018
|
return r % i / 10 ** n;
|
|
1019
1019
|
}
|
|
@@ -1052,7 +1052,7 @@ class U extends k {
|
|
|
1052
1052
|
inclusive: r.inclusive,
|
|
1053
1053
|
exact: !1,
|
|
1054
1054
|
message: r.message
|
|
1055
|
-
}), n.dirty()) : r.kind === "multipleOf" ?
|
|
1055
|
+
}), n.dirty()) : r.kind === "multipleOf" ? ra(e.data, r.value) !== 0 && (s = this._getOrReturnCtx(e, s), u(s, {
|
|
1056
1056
|
code: d.not_multiple_of,
|
|
1057
1057
|
multipleOf: r.value,
|
|
1058
1058
|
message: r.message
|
|
@@ -1322,7 +1322,7 @@ K.create = (a) => new K({
|
|
|
1322
1322
|
coerce: a?.coerce ?? !1,
|
|
1323
1323
|
...x(a)
|
|
1324
1324
|
});
|
|
1325
|
-
class
|
|
1325
|
+
class Ze extends k {
|
|
1326
1326
|
_parse(e) {
|
|
1327
1327
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== h.boolean) {
|
|
1328
1328
|
const s = this._getOrReturnCtx(e);
|
|
@@ -1335,12 +1335,12 @@ class Ne extends k {
|
|
|
1335
1335
|
return Z(e.data);
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
|
|
1338
|
+
Ze.create = (a) => new Ze({
|
|
1339
1339
|
typeName: g.ZodBoolean,
|
|
1340
1340
|
coerce: a?.coerce || !1,
|
|
1341
1341
|
...x(a)
|
|
1342
1342
|
});
|
|
1343
|
-
class
|
|
1343
|
+
class ge extends k {
|
|
1344
1344
|
_parse(e) {
|
|
1345
1345
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== h.date) {
|
|
1346
1346
|
const r = this._getOrReturnCtx(e);
|
|
@@ -1380,7 +1380,7 @@ class ye extends k {
|
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
1382
|
_addCheck(e) {
|
|
1383
|
-
return new
|
|
1383
|
+
return new ge({
|
|
1384
1384
|
...this._def,
|
|
1385
1385
|
checks: [...this._def.checks, e]
|
|
1386
1386
|
});
|
|
@@ -1412,13 +1412,13 @@ class ye extends k {
|
|
|
1412
1412
|
return e != null ? new Date(e) : null;
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
|
|
1415
|
+
ge.create = (a) => new ge({
|
|
1416
1416
|
checks: [],
|
|
1417
1417
|
coerce: a?.coerce || !1,
|
|
1418
1418
|
typeName: g.ZodDate,
|
|
1419
1419
|
...x(a)
|
|
1420
1420
|
});
|
|
1421
|
-
class
|
|
1421
|
+
class tt extends k {
|
|
1422
1422
|
_parse(e) {
|
|
1423
1423
|
if (this._getType(e) !== h.symbol) {
|
|
1424
1424
|
const s = this._getOrReturnCtx(e);
|
|
@@ -1431,11 +1431,11 @@ class et extends k {
|
|
|
1431
1431
|
return Z(e.data);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
|
|
1434
|
+
tt.create = (a) => new tt({
|
|
1435
1435
|
typeName: g.ZodSymbol,
|
|
1436
1436
|
...x(a)
|
|
1437
1437
|
});
|
|
1438
|
-
class
|
|
1438
|
+
class Ee extends k {
|
|
1439
1439
|
_parse(e) {
|
|
1440
1440
|
if (this._getType(e) !== h.undefined) {
|
|
1441
1441
|
const s = this._getOrReturnCtx(e);
|
|
@@ -1448,11 +1448,11 @@ class Ze extends k {
|
|
|
1448
1448
|
return Z(e.data);
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
|
|
1451
|
+
Ee.create = (a) => new Ee({
|
|
1452
1452
|
typeName: g.ZodUndefined,
|
|
1453
1453
|
...x(a)
|
|
1454
1454
|
});
|
|
1455
|
-
class
|
|
1455
|
+
class at extends k {
|
|
1456
1456
|
_parse(e) {
|
|
1457
1457
|
if (this._getType(e) !== h.null) {
|
|
1458
1458
|
const s = this._getOrReturnCtx(e);
|
|
@@ -1465,11 +1465,11 @@ class tt extends k {
|
|
|
1465
1465
|
return Z(e.data);
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
|
|
1468
|
+
at.create = (a) => new at({
|
|
1469
1469
|
typeName: g.ZodNull,
|
|
1470
1470
|
...x(a)
|
|
1471
1471
|
});
|
|
1472
|
-
class
|
|
1472
|
+
class st extends k {
|
|
1473
1473
|
constructor() {
|
|
1474
1474
|
super(...arguments), this._any = !0;
|
|
1475
1475
|
}
|
|
@@ -1477,11 +1477,11 @@ class at extends k {
|
|
|
1477
1477
|
return Z(e.data);
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
|
|
1480
|
+
st.create = (a) => new st({
|
|
1481
1481
|
typeName: g.ZodAny,
|
|
1482
1482
|
...x(a)
|
|
1483
1483
|
});
|
|
1484
|
-
class
|
|
1484
|
+
class nt extends k {
|
|
1485
1485
|
constructor() {
|
|
1486
1486
|
super(...arguments), this._unknown = !0;
|
|
1487
1487
|
}
|
|
@@ -1489,11 +1489,11 @@ class st extends k {
|
|
|
1489
1489
|
return Z(e.data);
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
|
|
1492
|
+
nt.create = (a) => new nt({
|
|
1493
1493
|
typeName: g.ZodUnknown,
|
|
1494
1494
|
...x(a)
|
|
1495
1495
|
});
|
|
1496
|
-
class
|
|
1496
|
+
class P extends k {
|
|
1497
1497
|
_parse(e) {
|
|
1498
1498
|
const t = this._getOrReturnCtx(e);
|
|
1499
1499
|
return u(t, {
|
|
@@ -1503,11 +1503,11 @@ class B extends k {
|
|
|
1503
1503
|
}), v;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
|
|
1506
|
+
P.create = (a) => new P({
|
|
1507
1507
|
typeName: g.ZodNever,
|
|
1508
1508
|
...x(a)
|
|
1509
1509
|
});
|
|
1510
|
-
class
|
|
1510
|
+
class rt extends k {
|
|
1511
1511
|
_parse(e) {
|
|
1512
1512
|
if (this._getType(e) !== h.undefined) {
|
|
1513
1513
|
const s = this._getOrReturnCtx(e);
|
|
@@ -1520,7 +1520,7 @@ class nt extends k {
|
|
|
1520
1520
|
return Z(e.data);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
rt.create = (a) => new rt({
|
|
1524
1524
|
typeName: g.ZodVoid,
|
|
1525
1525
|
...x(a)
|
|
1526
1526
|
});
|
|
@@ -1598,13 +1598,13 @@ j.create = (a, e) => new j({
|
|
|
1598
1598
|
...x(e)
|
|
1599
1599
|
});
|
|
1600
1600
|
function F(a) {
|
|
1601
|
-
if (a instanceof
|
|
1601
|
+
if (a instanceof O) {
|
|
1602
1602
|
const e = {};
|
|
1603
1603
|
for (const t in a.shape) {
|
|
1604
1604
|
const s = a.shape[t];
|
|
1605
1605
|
e[t] = M.create(F(s));
|
|
1606
1606
|
}
|
|
1607
|
-
return new
|
|
1607
|
+
return new O({
|
|
1608
1608
|
...a._def,
|
|
1609
1609
|
shape: () => e
|
|
1610
1610
|
});
|
|
@@ -1613,7 +1613,7 @@ function F(a) {
|
|
|
1613
1613
|
type: F(a.element)
|
|
1614
1614
|
}) : a instanceof M ? M.create(F(a.unwrap())) : a instanceof J ? J.create(F(a.unwrap())) : a instanceof z ? z.create(a.items.map((e) => F(e))) : a;
|
|
1615
1615
|
}
|
|
1616
|
-
class
|
|
1616
|
+
class O extends k {
|
|
1617
1617
|
constructor() {
|
|
1618
1618
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
1619
1619
|
}
|
|
@@ -1633,7 +1633,7 @@ class I extends k {
|
|
|
1633
1633
|
}), v;
|
|
1634
1634
|
}
|
|
1635
1635
|
const { status: s, ctx: n } = this._processInputParams(e), { shape: r, keys: i } = this._getCached(), o = [];
|
|
1636
|
-
if (!(this._def.catchall instanceof
|
|
1636
|
+
if (!(this._def.catchall instanceof P && this._def.unknownKeys === "strip"))
|
|
1637
1637
|
for (const p in n.data)
|
|
1638
1638
|
i.includes(p) || o.push(p);
|
|
1639
1639
|
const m = [];
|
|
@@ -1645,7 +1645,7 @@ class I extends k {
|
|
|
1645
1645
|
alwaysSet: p in n.data
|
|
1646
1646
|
});
|
|
1647
1647
|
}
|
|
1648
|
-
if (this._def.catchall instanceof
|
|
1648
|
+
if (this._def.catchall instanceof P) {
|
|
1649
1649
|
const p = this._def.unknownKeys;
|
|
1650
1650
|
if (p === "passthrough")
|
|
1651
1651
|
for (const b of o)
|
|
@@ -1676,10 +1676,10 @@ class I extends k {
|
|
|
1676
1676
|
return n.common.async ? Promise.resolve().then(async () => {
|
|
1677
1677
|
const p = [];
|
|
1678
1678
|
for (const b of m) {
|
|
1679
|
-
const L = await b.key,
|
|
1679
|
+
const L = await b.key, Ie = await b.value;
|
|
1680
1680
|
p.push({
|
|
1681
1681
|
key: L,
|
|
1682
|
-
value:
|
|
1682
|
+
value: Ie,
|
|
1683
1683
|
alwaysSet: b.alwaysSet
|
|
1684
1684
|
});
|
|
1685
1685
|
}
|
|
@@ -1690,7 +1690,7 @@ class I extends k {
|
|
|
1690
1690
|
return this._def.shape();
|
|
1691
1691
|
}
|
|
1692
1692
|
strict(e) {
|
|
1693
|
-
return f.errToObj, new
|
|
1693
|
+
return f.errToObj, new O({
|
|
1694
1694
|
...this._def,
|
|
1695
1695
|
unknownKeys: "strict",
|
|
1696
1696
|
...e !== void 0 ? {
|
|
@@ -1706,13 +1706,13 @@ class I extends k {
|
|
|
1706
1706
|
});
|
|
1707
1707
|
}
|
|
1708
1708
|
strip() {
|
|
1709
|
-
return new
|
|
1709
|
+
return new O({
|
|
1710
1710
|
...this._def,
|
|
1711
1711
|
unknownKeys: "strip"
|
|
1712
1712
|
});
|
|
1713
1713
|
}
|
|
1714
1714
|
passthrough() {
|
|
1715
|
-
return new
|
|
1715
|
+
return new O({
|
|
1716
1716
|
...this._def,
|
|
1717
1717
|
unknownKeys: "passthrough"
|
|
1718
1718
|
});
|
|
@@ -1735,7 +1735,7 @@ class I extends k {
|
|
|
1735
1735
|
// }) as any;
|
|
1736
1736
|
// };
|
|
1737
1737
|
extend(e) {
|
|
1738
|
-
return new
|
|
1738
|
+
return new O({
|
|
1739
1739
|
...this._def,
|
|
1740
1740
|
shape: () => ({
|
|
1741
1741
|
...this._def.shape(),
|
|
@@ -1749,7 +1749,7 @@ class I extends k {
|
|
|
1749
1749
|
* upgrade if you are experiencing issues.
|
|
1750
1750
|
*/
|
|
1751
1751
|
merge(e) {
|
|
1752
|
-
return new
|
|
1752
|
+
return new O({
|
|
1753
1753
|
unknownKeys: e._def.unknownKeys,
|
|
1754
1754
|
catchall: e._def.catchall,
|
|
1755
1755
|
shape: () => ({
|
|
@@ -1819,7 +1819,7 @@ class I extends k {
|
|
|
1819
1819
|
// return merged;
|
|
1820
1820
|
// }
|
|
1821
1821
|
catchall(e) {
|
|
1822
|
-
return new
|
|
1822
|
+
return new O({
|
|
1823
1823
|
...this._def,
|
|
1824
1824
|
catchall: e
|
|
1825
1825
|
});
|
|
@@ -1828,7 +1828,7 @@ class I extends k {
|
|
|
1828
1828
|
const t = {};
|
|
1829
1829
|
for (const s of S.objectKeys(e))
|
|
1830
1830
|
e[s] && this.shape[s] && (t[s] = this.shape[s]);
|
|
1831
|
-
return new
|
|
1831
|
+
return new O({
|
|
1832
1832
|
...this._def,
|
|
1833
1833
|
shape: () => t
|
|
1834
1834
|
});
|
|
@@ -1837,7 +1837,7 @@ class I extends k {
|
|
|
1837
1837
|
const t = {};
|
|
1838
1838
|
for (const s of S.objectKeys(this.shape))
|
|
1839
1839
|
e[s] || (t[s] = this.shape[s]);
|
|
1840
|
-
return new
|
|
1840
|
+
return new O({
|
|
1841
1841
|
...this._def,
|
|
1842
1842
|
shape: () => t
|
|
1843
1843
|
});
|
|
@@ -1854,7 +1854,7 @@ class I extends k {
|
|
|
1854
1854
|
const n = this.shape[s];
|
|
1855
1855
|
e && !e[s] ? t[s] = n : t[s] = n.optional();
|
|
1856
1856
|
}
|
|
1857
|
-
return new
|
|
1857
|
+
return new O({
|
|
1858
1858
|
...this._def,
|
|
1859
1859
|
shape: () => t
|
|
1860
1860
|
});
|
|
@@ -1870,37 +1870,37 @@ class I extends k {
|
|
|
1870
1870
|
r = r._def.innerType;
|
|
1871
1871
|
t[s] = r;
|
|
1872
1872
|
}
|
|
1873
|
-
return new
|
|
1873
|
+
return new O({
|
|
1874
1874
|
...this._def,
|
|
1875
1875
|
shape: () => t
|
|
1876
1876
|
});
|
|
1877
1877
|
}
|
|
1878
1878
|
keyof() {
|
|
1879
|
-
return
|
|
1879
|
+
return pt(S.objectKeys(this.shape));
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
|
-
|
|
1882
|
+
O.create = (a, e) => new O({
|
|
1883
1883
|
shape: () => a,
|
|
1884
1884
|
unknownKeys: "strip",
|
|
1885
|
-
catchall:
|
|
1885
|
+
catchall: P.create(),
|
|
1886
1886
|
typeName: g.ZodObject,
|
|
1887
1887
|
...x(e)
|
|
1888
1888
|
});
|
|
1889
|
-
|
|
1889
|
+
O.strictCreate = (a, e) => new O({
|
|
1890
1890
|
shape: () => a,
|
|
1891
1891
|
unknownKeys: "strict",
|
|
1892
|
-
catchall:
|
|
1892
|
+
catchall: P.create(),
|
|
1893
1893
|
typeName: g.ZodObject,
|
|
1894
1894
|
...x(e)
|
|
1895
1895
|
});
|
|
1896
|
-
|
|
1896
|
+
O.lazycreate = (a, e) => new O({
|
|
1897
1897
|
shape: a,
|
|
1898
1898
|
unknownKeys: "strip",
|
|
1899
|
-
catchall:
|
|
1899
|
+
catchall: P.create(),
|
|
1900
1900
|
typeName: g.ZodObject,
|
|
1901
1901
|
...x(e)
|
|
1902
1902
|
});
|
|
1903
|
-
class
|
|
1903
|
+
class ve extends k {
|
|
1904
1904
|
_parse(e) {
|
|
1905
1905
|
const { ctx: t } = this._processInputParams(e), s = this._def.options;
|
|
1906
1906
|
function n(r) {
|
|
@@ -1968,19 +1968,19 @@ class ge extends k {
|
|
|
1968
1968
|
return this._def.options;
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
|
-
|
|
1971
|
+
ve.create = (a, e) => new ve({
|
|
1972
1972
|
options: a,
|
|
1973
1973
|
typeName: g.ZodUnion,
|
|
1974
1974
|
...x(e)
|
|
1975
1975
|
});
|
|
1976
|
-
function
|
|
1976
|
+
function je(a, e) {
|
|
1977
1977
|
const t = D(a), s = D(e);
|
|
1978
1978
|
if (a === e)
|
|
1979
1979
|
return { valid: !0, data: a };
|
|
1980
1980
|
if (t === h.object && s === h.object) {
|
|
1981
1981
|
const n = S.objectKeys(e), r = S.objectKeys(a).filter((o) => n.indexOf(o) !== -1), i = { ...a, ...e };
|
|
1982
1982
|
for (const o of r) {
|
|
1983
|
-
const m =
|
|
1983
|
+
const m = je(a[o], e[o]);
|
|
1984
1984
|
if (!m.valid)
|
|
1985
1985
|
return { valid: !1 };
|
|
1986
1986
|
i[o] = m.data;
|
|
@@ -1991,7 +1991,7 @@ function Ee(a, e) {
|
|
|
1991
1991
|
return { valid: !1 };
|
|
1992
1992
|
const n = [];
|
|
1993
1993
|
for (let r = 0; r < a.length; r++) {
|
|
1994
|
-
const i = a[r], o = e[r], m =
|
|
1994
|
+
const i = a[r], o = e[r], m = je(i, o);
|
|
1995
1995
|
if (!m.valid)
|
|
1996
1996
|
return { valid: !1 };
|
|
1997
1997
|
n.push(m.data);
|
|
@@ -1999,13 +1999,13 @@ function Ee(a, e) {
|
|
|
1999
1999
|
return { valid: !0, data: n };
|
|
2000
2000
|
} else return t === h.date && s === h.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
|
|
2001
2001
|
}
|
|
2002
|
-
class
|
|
2002
|
+
class _e extends k {
|
|
2003
2003
|
_parse(e) {
|
|
2004
2004
|
const { status: t, ctx: s } = this._processInputParams(e), n = (r, i) => {
|
|
2005
|
-
if (
|
|
2005
|
+
if (Qe(r) || Qe(i))
|
|
2006
2006
|
return v;
|
|
2007
|
-
const o =
|
|
2008
|
-
return o.valid ? ((
|
|
2007
|
+
const o = je(r.value, i.value);
|
|
2008
|
+
return o.valid ? ((Ke(r) || Ke(i)) && t.dirty(), { status: t.value, value: o.data }) : (u(s, {
|
|
2009
2009
|
code: d.invalid_intersection_types
|
|
2010
2010
|
}), v);
|
|
2011
2011
|
};
|
|
@@ -2031,7 +2031,7 @@ class ve extends k {
|
|
|
2031
2031
|
}));
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
|
-
|
|
2034
|
+
_e.create = (a, e, t) => new _e({
|
|
2035
2035
|
left: a,
|
|
2036
2036
|
right: e,
|
|
2037
2037
|
typeName: g.ZodIntersection,
|
|
@@ -2087,7 +2087,7 @@ z.create = (a, e) => {
|
|
|
2087
2087
|
...x(e)
|
|
2088
2088
|
});
|
|
2089
2089
|
};
|
|
2090
|
-
class
|
|
2090
|
+
class xe extends k {
|
|
2091
2091
|
get keySchema() {
|
|
2092
2092
|
return this._def.keyType;
|
|
2093
2093
|
}
|
|
@@ -2115,12 +2115,12 @@ class _e extends k {
|
|
|
2115
2115
|
return this._def.valueType;
|
|
2116
2116
|
}
|
|
2117
2117
|
static create(e, t, s) {
|
|
2118
|
-
return t instanceof k ? new
|
|
2118
|
+
return t instanceof k ? new xe({
|
|
2119
2119
|
keyType: e,
|
|
2120
2120
|
valueType: t,
|
|
2121
2121
|
typeName: g.ZodRecord,
|
|
2122
2122
|
...x(s)
|
|
2123
|
-
}) : new
|
|
2123
|
+
}) : new xe({
|
|
2124
2124
|
keyType: $.create(),
|
|
2125
2125
|
valueType: e,
|
|
2126
2126
|
typeName: g.ZodRecord,
|
|
@@ -2128,7 +2128,7 @@ class _e extends k {
|
|
|
2128
2128
|
});
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
|
-
class
|
|
2131
|
+
class it extends k {
|
|
2132
2132
|
get keySchema() {
|
|
2133
2133
|
return this._def.keyType;
|
|
2134
2134
|
}
|
|
@@ -2170,7 +2170,7 @@ class rt extends k {
|
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
|
-
|
|
2173
|
+
it.create = (a, e, t) => new it({
|
|
2174
2174
|
valueType: e,
|
|
2175
2175
|
keyType: a,
|
|
2176
2176
|
typeName: g.ZodMap,
|
|
@@ -2240,7 +2240,7 @@ ee.create = (a, e) => new ee({
|
|
|
2240
2240
|
typeName: g.ZodSet,
|
|
2241
2241
|
...x(e)
|
|
2242
2242
|
});
|
|
2243
|
-
class
|
|
2243
|
+
class ot extends k {
|
|
2244
2244
|
get schema() {
|
|
2245
2245
|
return this._def.getter();
|
|
2246
2246
|
}
|
|
@@ -2249,12 +2249,12 @@ class it extends k {
|
|
|
2249
2249
|
return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
|
-
|
|
2252
|
+
ot.create = (a, e) => new ot({
|
|
2253
2253
|
getter: a,
|
|
2254
2254
|
typeName: g.ZodLazy,
|
|
2255
2255
|
...x(e)
|
|
2256
2256
|
});
|
|
2257
|
-
class
|
|
2257
|
+
class qe extends k {
|
|
2258
2258
|
_parse(e) {
|
|
2259
2259
|
if (e.data !== this._def.value) {
|
|
2260
2260
|
const t = this._getOrReturnCtx(e);
|
|
@@ -2270,12 +2270,12 @@ class je extends k {
|
|
|
2270
2270
|
return this._def.value;
|
|
2271
2271
|
}
|
|
2272
2272
|
}
|
|
2273
|
-
|
|
2273
|
+
qe.create = (a, e) => new qe({
|
|
2274
2274
|
value: a,
|
|
2275
2275
|
typeName: g.ZodLiteral,
|
|
2276
2276
|
...x(e)
|
|
2277
2277
|
});
|
|
2278
|
-
function
|
|
2278
|
+
function pt(a, e) {
|
|
2279
2279
|
return new G({
|
|
2280
2280
|
values: a,
|
|
2281
2281
|
typeName: g.ZodEnum,
|
|
@@ -2336,8 +2336,8 @@ class G extends k {
|
|
|
2336
2336
|
});
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
|
-
G.create =
|
|
2340
|
-
class
|
|
2339
|
+
G.create = pt;
|
|
2340
|
+
class ct extends k {
|
|
2341
2341
|
_parse(e) {
|
|
2342
2342
|
const t = S.getValidEnumValues(this._def.values), s = this._getOrReturnCtx(e);
|
|
2343
2343
|
if (s.parsedType !== h.string && s.parsedType !== h.number) {
|
|
@@ -2362,12 +2362,12 @@ class ot extends k {
|
|
|
2362
2362
|
return this._def.values;
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
|
-
|
|
2365
|
+
ct.create = (a, e) => new ct({
|
|
2366
2366
|
values: a,
|
|
2367
2367
|
typeName: g.ZodNativeEnum,
|
|
2368
2368
|
...x(e)
|
|
2369
2369
|
});
|
|
2370
|
-
class
|
|
2370
|
+
class ke extends k {
|
|
2371
2371
|
unwrap() {
|
|
2372
2372
|
return this._def.type;
|
|
2373
2373
|
}
|
|
@@ -2386,7 +2386,7 @@ class xe extends k {
|
|
|
2386
2386
|
})));
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
|
-
|
|
2389
|
+
ke.create = (a, e) => new ke({
|
|
2390
2390
|
type: a,
|
|
2391
2391
|
typeName: g.ZodPromise,
|
|
2392
2392
|
...x(e)
|
|
@@ -2509,7 +2509,7 @@ J.create = (a, e) => new J({
|
|
|
2509
2509
|
typeName: g.ZodNullable,
|
|
2510
2510
|
...x(e)
|
|
2511
2511
|
});
|
|
2512
|
-
class
|
|
2512
|
+
class $e extends k {
|
|
2513
2513
|
_parse(e) {
|
|
2514
2514
|
const { ctx: t } = this._processInputParams(e);
|
|
2515
2515
|
let s = t.data;
|
|
@@ -2523,13 +2523,13 @@ class qe extends k {
|
|
|
2523
2523
|
return this._def.innerType;
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
|
-
|
|
2526
|
+
$e.create = (a, e) => new $e({
|
|
2527
2527
|
innerType: a,
|
|
2528
2528
|
typeName: g.ZodDefault,
|
|
2529
2529
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
2530
2530
|
...x(e)
|
|
2531
2531
|
});
|
|
2532
|
-
class
|
|
2532
|
+
class Ve extends k {
|
|
2533
2533
|
_parse(e) {
|
|
2534
2534
|
const { ctx: t } = this._processInputParams(e), s = {
|
|
2535
2535
|
...t,
|
|
@@ -2544,7 +2544,7 @@ class $e extends k {
|
|
|
2544
2544
|
...s
|
|
2545
2545
|
}
|
|
2546
2546
|
});
|
|
2547
|
-
return
|
|
2547
|
+
return ye(n) ? n.then((r) => ({
|
|
2548
2548
|
status: "valid",
|
|
2549
2549
|
value: r.status === "valid" ? r.value : this._def.catchValue({
|
|
2550
2550
|
get error() {
|
|
@@ -2566,13 +2566,13 @@ class $e extends k {
|
|
|
2566
2566
|
return this._def.innerType;
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
|
-
|
|
2569
|
+
Ve.create = (a, e) => new Ve({
|
|
2570
2570
|
innerType: a,
|
|
2571
2571
|
typeName: g.ZodCatch,
|
|
2572
2572
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
2573
2573
|
...x(e)
|
|
2574
2574
|
});
|
|
2575
|
-
class
|
|
2575
|
+
class dt extends k {
|
|
2576
2576
|
_parse(e) {
|
|
2577
2577
|
if (this._getType(e) !== h.nan) {
|
|
2578
2578
|
const s = this._getOrReturnCtx(e);
|
|
@@ -2585,11 +2585,11 @@ class ct extends k {
|
|
|
2585
2585
|
return { status: "valid", value: e.data };
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
|
-
|
|
2588
|
+
dt.create = (a) => new dt({
|
|
2589
2589
|
typeName: g.ZodNaN,
|
|
2590
2590
|
...x(a)
|
|
2591
2591
|
});
|
|
2592
|
-
class
|
|
2592
|
+
class ia extends k {
|
|
2593
2593
|
_parse(e) {
|
|
2594
2594
|
const { ctx: t } = this._processInputParams(e), s = t.data;
|
|
2595
2595
|
return this._def.type._parse({
|
|
@@ -2602,7 +2602,7 @@ class ra extends k {
|
|
|
2602
2602
|
return this._def.type;
|
|
2603
2603
|
}
|
|
2604
2604
|
}
|
|
2605
|
-
class
|
|
2605
|
+
class Pe extends k {
|
|
2606
2606
|
_parse(e) {
|
|
2607
2607
|
const { status: t, ctx: s } = this._processInputParams(e);
|
|
2608
2608
|
if (s.common.async)
|
|
@@ -2635,23 +2635,23 @@ class Me extends k {
|
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
2637
|
static create(e, t) {
|
|
2638
|
-
return new
|
|
2638
|
+
return new Pe({
|
|
2639
2639
|
in: e,
|
|
2640
2640
|
out: t,
|
|
2641
2641
|
typeName: g.ZodPipeline
|
|
2642
2642
|
});
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
|
-
class
|
|
2645
|
+
class De extends k {
|
|
2646
2646
|
_parse(e) {
|
|
2647
2647
|
const t = this._def.innerType._parse(e), s = (n) => (W(n) && (n.value = Object.freeze(n.value)), n);
|
|
2648
|
-
return
|
|
2648
|
+
return ye(t) ? t.then((n) => s(n)) : s(t);
|
|
2649
2649
|
}
|
|
2650
2650
|
unwrap() {
|
|
2651
2651
|
return this._def.innerType;
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
|
-
|
|
2654
|
+
De.create = (a, e) => new De({
|
|
2655
2655
|
innerType: a,
|
|
2656
2656
|
typeName: g.ZodReadonly,
|
|
2657
2657
|
...x(e)
|
|
@@ -2660,170 +2660,174 @@ var g;
|
|
|
2660
2660
|
(function(a) {
|
|
2661
2661
|
a.ZodString = "ZodString", a.ZodNumber = "ZodNumber", a.ZodNaN = "ZodNaN", a.ZodBigInt = "ZodBigInt", a.ZodBoolean = "ZodBoolean", a.ZodDate = "ZodDate", a.ZodSymbol = "ZodSymbol", a.ZodUndefined = "ZodUndefined", a.ZodNull = "ZodNull", a.ZodAny = "ZodAny", a.ZodUnknown = "ZodUnknown", a.ZodNever = "ZodNever", a.ZodVoid = "ZodVoid", a.ZodArray = "ZodArray", a.ZodObject = "ZodObject", a.ZodUnion = "ZodUnion", a.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", a.ZodIntersection = "ZodIntersection", a.ZodTuple = "ZodTuple", a.ZodRecord = "ZodRecord", a.ZodMap = "ZodMap", a.ZodSet = "ZodSet", a.ZodFunction = "ZodFunction", a.ZodLazy = "ZodLazy", a.ZodLiteral = "ZodLiteral", a.ZodEnum = "ZodEnum", a.ZodEffects = "ZodEffects", a.ZodNativeEnum = "ZodNativeEnum", a.ZodOptional = "ZodOptional", a.ZodNullable = "ZodNullable", a.ZodDefault = "ZodDefault", a.ZodCatch = "ZodCatch", a.ZodPromise = "ZodPromise", a.ZodBranded = "ZodBranded", a.ZodPipeline = "ZodPipeline", a.ZodReadonly = "ZodReadonly";
|
|
2662
2662
|
})(g || (g = {}));
|
|
2663
|
-
const c = $.create, y = U.create,
|
|
2664
|
-
|
|
2665
|
-
const R = j.create, l =
|
|
2666
|
-
|
|
2667
|
-
const Be = z.create,
|
|
2668
|
-
|
|
2663
|
+
const c = $.create, y = U.create, C = Ze.create, oa = Ee.create;
|
|
2664
|
+
P.create;
|
|
2665
|
+
const R = j.create, l = O.create, Y = ve.create;
|
|
2666
|
+
_e.create;
|
|
2667
|
+
const Be = z.create, B = xe.create, w = qe.create, E = G.create;
|
|
2668
|
+
ke.create;
|
|
2669
2669
|
const _ = M.create;
|
|
2670
2670
|
J.create;
|
|
2671
|
-
const
|
|
2671
|
+
const yt = () => C().optional(), te = E(["left", "right", "up", "down"]), Xa = te.options, Le = l({
|
|
2672
2672
|
type: c(),
|
|
2673
2673
|
id: c(),
|
|
2674
2674
|
name: _(c()),
|
|
2675
2675
|
status: _(c())
|
|
2676
|
-
}),
|
|
2676
|
+
}), ca = l({
|
|
2677
2677
|
height: y(),
|
|
2678
2678
|
width: y(),
|
|
2679
2679
|
sprite: c().optional(),
|
|
2680
2680
|
direction: _(te),
|
|
2681
2681
|
filter: _(c())
|
|
2682
|
-
}),
|
|
2682
|
+
}), da = l({
|
|
2683
2683
|
room: _(c()),
|
|
2684
2684
|
x: y(),
|
|
2685
2685
|
y: y()
|
|
2686
|
-
}),
|
|
2686
|
+
}), be = l({
|
|
2687
2687
|
imageId: c(),
|
|
2688
2688
|
col: y().optional(),
|
|
2689
2689
|
row: y().optional()
|
|
2690
|
-
}),
|
|
2690
|
+
}), I = l({ text: c().array() }), ua = l({ x: y(), y: y() }), Me = l({
|
|
2691
2691
|
soundId: c(),
|
|
2692
2692
|
volume: y().optional()
|
|
2693
|
-
}),
|
|
2694
|
-
_started:
|
|
2695
|
-
narrative:
|
|
2693
|
+
}), Se = {
|
|
2694
|
+
_started: yt(),
|
|
2695
|
+
narrative: I.optional(),
|
|
2696
2696
|
startDirection: te.optional(),
|
|
2697
2697
|
endDirection: te.optional(),
|
|
2698
2698
|
endStatus: c().optional()
|
|
2699
|
-
},
|
|
2699
|
+
}, Qa = {
|
|
2700
2700
|
_started: !0,
|
|
2701
2701
|
narrative: !0,
|
|
2702
2702
|
startDirection: !0,
|
|
2703
2703
|
endDirection: !0,
|
|
2704
2704
|
endStatus: !0,
|
|
2705
2705
|
type: !0
|
|
2706
|
-
},
|
|
2706
|
+
}, la = l({
|
|
2707
2707
|
animation: _(c()),
|
|
2708
2708
|
x: y(),
|
|
2709
2709
|
y: y(),
|
|
2710
2710
|
speed: _(y())
|
|
2711
|
-
}),
|
|
2712
|
-
type:
|
|
2711
|
+
}), ha = l({
|
|
2712
|
+
type: w("move"),
|
|
2713
2713
|
roomId: c().optional(),
|
|
2714
|
-
pathIsSet: _(
|
|
2715
|
-
doPendingInteractionWhenFinished: _(
|
|
2716
|
-
steps: R(
|
|
2717
|
-
}).extend(
|
|
2718
|
-
type:
|
|
2714
|
+
pathIsSet: _(C()),
|
|
2715
|
+
doPendingInteractionWhenFinished: _(C()),
|
|
2716
|
+
steps: R(la)
|
|
2717
|
+
}).extend(Se), fa = l({
|
|
2718
|
+
type: w("goTo"),
|
|
2719
2719
|
animation: _(c()),
|
|
2720
2720
|
speed: _(y()),
|
|
2721
2721
|
targetId: c()
|
|
2722
|
-
}).extend(
|
|
2723
|
-
type:
|
|
2722
|
+
}).extend(Se), ma = l({
|
|
2723
|
+
type: w("say"),
|
|
2724
2724
|
animation: _(c()),
|
|
2725
2725
|
text: c(),
|
|
2726
2726
|
time: y()
|
|
2727
|
-
}).extend(
|
|
2727
|
+
}).extend(Se), pa = l({
|
|
2728
2728
|
animation: _(c()),
|
|
2729
2729
|
duration: y(),
|
|
2730
2730
|
timeElapsed: _(y()),
|
|
2731
|
-
reverse: _(
|
|
2732
|
-
}),
|
|
2733
|
-
type:
|
|
2734
|
-
steps: R(
|
|
2735
|
-
}).extend(
|
|
2736
|
-
type:
|
|
2731
|
+
reverse: _(C())
|
|
2732
|
+
}), ya = l({
|
|
2733
|
+
type: w("act"),
|
|
2734
|
+
steps: R(pa)
|
|
2735
|
+
}).extend(Se), we = Y([ha, ya, ma, fa]), Ka = we.options.map((a) => a.shape.type.value), ze = l({
|
|
2736
|
+
type: w("order"),
|
|
2737
2737
|
actorId: c().optional(),
|
|
2738
|
-
orders: R(
|
|
2739
|
-
replaceCurrentOrders: _(
|
|
2740
|
-
narrative:
|
|
2738
|
+
orders: R(we),
|
|
2739
|
+
replaceCurrentOrders: _(C()),
|
|
2740
|
+
narrative: I.optional()
|
|
2741
2741
|
}), ae = l({
|
|
2742
|
-
type:
|
|
2742
|
+
type: w("changeRoom"),
|
|
2743
2743
|
roomId: c(),
|
|
2744
|
-
takePlayer:
|
|
2744
|
+
takePlayer: C(),
|
|
2745
2745
|
x: _(y()),
|
|
2746
2746
|
y: _(y()),
|
|
2747
|
-
narrative:
|
|
2747
|
+
narrative: I.optional()
|
|
2748
2748
|
}), se = l({
|
|
2749
|
-
type:
|
|
2749
|
+
type: w("inventory"),
|
|
2750
2750
|
itemId: c(),
|
|
2751
2751
|
actorId: c().optional(),
|
|
2752
2752
|
addOrRemove: E(["ADD", "REMOVE"]),
|
|
2753
|
-
narrative:
|
|
2753
|
+
narrative: I.optional()
|
|
2754
2754
|
}), ne = l({
|
|
2755
|
-
type:
|
|
2755
|
+
type: w("removeActor"),
|
|
2756
2756
|
actorId: c(),
|
|
2757
|
-
narrative:
|
|
2757
|
+
narrative: I.optional()
|
|
2758
2758
|
}), re = l({
|
|
2759
|
-
type:
|
|
2759
|
+
type: w("changeStatus"),
|
|
2760
2760
|
targetId: c(),
|
|
2761
2761
|
targetType: E(["actor", "item", "hotspot"]),
|
|
2762
2762
|
status: c(),
|
|
2763
|
-
narrative:
|
|
2764
|
-
}),
|
|
2765
|
-
type:
|
|
2763
|
+
narrative: I.optional()
|
|
2764
|
+
}), Fe = l({
|
|
2765
|
+
type: w("sequence"),
|
|
2766
2766
|
sequence: c(),
|
|
2767
|
-
narrative:
|
|
2767
|
+
narrative: I.optional()
|
|
2768
2768
|
}), ie = l({
|
|
2769
|
-
type:
|
|
2769
|
+
type: w("conversation"),
|
|
2770
2770
|
conversationId: c(),
|
|
2771
|
-
end: _(
|
|
2772
|
-
narrative:
|
|
2771
|
+
end: _(C()),
|
|
2772
|
+
narrative: I.optional()
|
|
2773
2773
|
}), oe = l({
|
|
2774
|
-
type:
|
|
2775
|
-
on:
|
|
2774
|
+
type: w("conversationChoice"),
|
|
2775
|
+
on: C(),
|
|
2776
2776
|
conversationId: c(),
|
|
2777
2777
|
branchId: c(),
|
|
2778
2778
|
choiceRef: c(),
|
|
2779
|
-
narrative:
|
|
2779
|
+
narrative: I.optional()
|
|
2780
2780
|
}), ce = l({
|
|
2781
|
-
type:
|
|
2781
|
+
type: w("teleportActor"),
|
|
2782
2782
|
actorId: c(),
|
|
2783
2783
|
roomId: _(c()),
|
|
2784
2784
|
x: y(),
|
|
2785
2785
|
y: y(),
|
|
2786
|
-
narrative:
|
|
2786
|
+
narrative: I.optional()
|
|
2787
2787
|
}), X = l({
|
|
2788
|
-
type:
|
|
2788
|
+
type: w("toggleZone"),
|
|
2789
2789
|
roomId: _(c()),
|
|
2790
|
-
on:
|
|
2790
|
+
on: C(),
|
|
2791
2791
|
ref: c(),
|
|
2792
2792
|
zoneType: E(["hotspot", "obstacle", "walkable"]),
|
|
2793
|
-
narrative:
|
|
2793
|
+
narrative: I.optional()
|
|
2794
2794
|
}), de = l({
|
|
2795
|
-
type:
|
|
2795
|
+
type: w("soundEffect"),
|
|
2796
2796
|
sound: c(),
|
|
2797
2797
|
volume: y().optional(),
|
|
2798
|
-
narrative:
|
|
2798
|
+
narrative: I.optional()
|
|
2799
2799
|
}), ue = l({
|
|
2800
|
-
type:
|
|
2800
|
+
type: w("backgroundMusic"),
|
|
2801
2801
|
sound: c().optional(),
|
|
2802
2802
|
roomId: c().optional(),
|
|
2803
2803
|
volume: y().optional(),
|
|
2804
|
-
narrative:
|
|
2804
|
+
narrative: I.optional()
|
|
2805
2805
|
}), le = l({
|
|
2806
|
-
type:
|
|
2806
|
+
type: w("ambientNoise"),
|
|
2807
2807
|
sound: c().optional(),
|
|
2808
2808
|
roomId: c().optional(),
|
|
2809
2809
|
volume: y().optional(),
|
|
2810
|
-
narrative:
|
|
2810
|
+
narrative: I.optional()
|
|
2811
2811
|
}), he = l({
|
|
2812
|
-
type:
|
|
2813
|
-
on:
|
|
2812
|
+
type: w("flag"),
|
|
2813
|
+
on: C(),
|
|
2814
2814
|
flag: c(),
|
|
2815
|
-
narrative:
|
|
2815
|
+
narrative: I.optional()
|
|
2816
2816
|
}), fe = l({
|
|
2817
|
-
type:
|
|
2817
|
+
type: w("storyBoardConsequence"),
|
|
2818
2818
|
storyBoardId: c(),
|
|
2819
|
-
narrative:
|
|
2820
|
-
}),
|
|
2821
|
-
|
|
2819
|
+
narrative: I.optional()
|
|
2820
|
+
}), me = l({
|
|
2821
|
+
type: w("changePlayerCharacterConsequence"),
|
|
2822
|
+
actorId: c(),
|
|
2823
|
+
narrative: I.optional()
|
|
2824
|
+
}), es = X.shape.zoneType.options, ga = Y([
|
|
2825
|
+
ze,
|
|
2822
2826
|
ae,
|
|
2823
2827
|
se,
|
|
2824
2828
|
ne,
|
|
2825
2829
|
re,
|
|
2826
|
-
|
|
2830
|
+
Fe,
|
|
2827
2831
|
ie,
|
|
2828
2832
|
ce,
|
|
2829
2833
|
X,
|
|
@@ -2832,8 +2836,9 @@ const pt = () => w().optional(), te = E(["left", "right", "up", "down"]), Ya = t
|
|
|
2832
2836
|
le,
|
|
2833
2837
|
he,
|
|
2834
2838
|
oe,
|
|
2835
|
-
fe
|
|
2836
|
-
|
|
2839
|
+
fe,
|
|
2840
|
+
me
|
|
2841
|
+
]), va = E([
|
|
2837
2842
|
"conversation",
|
|
2838
2843
|
"sequence",
|
|
2839
2844
|
"changeStatus",
|
|
@@ -2848,15 +2853,16 @@ const pt = () => w().optional(), te = E(["left", "right", "up", "down"]), Ya = t
|
|
|
2848
2853
|
"soundEffect",
|
|
2849
2854
|
"flag",
|
|
2850
2855
|
"conversationChoice",
|
|
2851
|
-
"storyBoardConsequence"
|
|
2852
|
-
|
|
2856
|
+
"storyBoardConsequence",
|
|
2857
|
+
"changePlayerCharacterConsequence"
|
|
2858
|
+
]), ts = va.options, as = {
|
|
2853
2859
|
conversation: ie,
|
|
2854
|
-
sequence:
|
|
2860
|
+
sequence: Fe,
|
|
2855
2861
|
changeStatus: re,
|
|
2856
2862
|
removeActor: ne,
|
|
2857
2863
|
inventory: se,
|
|
2858
2864
|
changeRoom: ae,
|
|
2859
|
-
order:
|
|
2865
|
+
order: ze,
|
|
2860
2866
|
teleportActor: ce,
|
|
2861
2867
|
toggleZone: X,
|
|
2862
2868
|
soundEffect: de,
|
|
@@ -2864,8 +2870,9 @@ const pt = () => w().optional(), te = E(["left", "right", "up", "down"]), Ya = t
|
|
|
2864
2870
|
conversationChoice: oe,
|
|
2865
2871
|
backgroundMusic: ue,
|
|
2866
2872
|
ambientNoise: le,
|
|
2867
|
-
storyBoardConsequence: fe
|
|
2868
|
-
|
|
2873
|
+
storyBoardConsequence: fe,
|
|
2874
|
+
changePlayerCharacterConsequence: me
|
|
2875
|
+
}, gt = Y([
|
|
2869
2876
|
ne,
|
|
2870
2877
|
re,
|
|
2871
2878
|
se,
|
|
@@ -2878,67 +2885,68 @@ const pt = () => w().optional(), te = E(["left", "right", "up", "down"]), Ya = t
|
|
|
2878
2885
|
oe,
|
|
2879
2886
|
ue,
|
|
2880
2887
|
le,
|
|
2881
|
-
fe
|
|
2882
|
-
|
|
2888
|
+
fe,
|
|
2889
|
+
me
|
|
2890
|
+
]), ss = gt.options.map((a) => a.shape.type.value), We = l({
|
|
2883
2891
|
verbId: c(),
|
|
2884
2892
|
targetId: c(),
|
|
2885
2893
|
roomId: c().optional(),
|
|
2886
2894
|
itemId: c().optional(),
|
|
2887
2895
|
targetStatus: c().optional(),
|
|
2888
|
-
mustReachFirst:
|
|
2889
|
-
consequences: R(
|
|
2896
|
+
mustReachFirst: C().optional(),
|
|
2897
|
+
consequences: R(ga),
|
|
2890
2898
|
flagsThatMustBeFalse: R(c()).optional(),
|
|
2891
2899
|
flagsThatMustBeTrue: R(c()).optional(),
|
|
2892
2900
|
requiredInventory: R(c()).optional()
|
|
2893
|
-
}),
|
|
2901
|
+
}), vt = l({
|
|
2894
2902
|
actorOrders: _(
|
|
2895
|
-
|
|
2903
|
+
B(c(), we.array())
|
|
2896
2904
|
),
|
|
2897
|
-
immediateConsequences: _(
|
|
2898
|
-
narrative:
|
|
2899
|
-
_started:
|
|
2900
|
-
}),
|
|
2905
|
+
immediateConsequences: _(gt.array()),
|
|
2906
|
+
narrative: I.optional(),
|
|
2907
|
+
_started: yt()
|
|
2908
|
+
}), Ce = l({
|
|
2901
2909
|
id: c(),
|
|
2902
2910
|
description: c().optional(),
|
|
2903
|
-
stages:
|
|
2904
|
-
}),
|
|
2911
|
+
stages: vt.array()
|
|
2912
|
+
}), ut = l({
|
|
2905
2913
|
conversationId: c().optional(),
|
|
2906
2914
|
branchId: c().optional(),
|
|
2907
2915
|
choiceRef: c().optional()
|
|
2908
|
-
}),
|
|
2916
|
+
}), _t = l({
|
|
2909
2917
|
ref: c().optional(),
|
|
2910
2918
|
text: c(),
|
|
2911
2919
|
sequence: c().optional(),
|
|
2912
2920
|
nextBranch: _(c()),
|
|
2913
|
-
once: _(
|
|
2914
|
-
disabled: _(
|
|
2915
|
-
enablesChoices: R(
|
|
2916
|
-
disablesChoices: R(
|
|
2917
|
-
end: _(
|
|
2918
|
-
choiceSequence:
|
|
2919
|
-
}),
|
|
2920
|
-
choices: R(
|
|
2921
|
-
}),
|
|
2921
|
+
once: _(C()),
|
|
2922
|
+
disabled: _(C()),
|
|
2923
|
+
enablesChoices: R(ut).optional(),
|
|
2924
|
+
disablesChoices: R(ut).optional(),
|
|
2925
|
+
end: _(C()),
|
|
2926
|
+
choiceSequence: Ce.optional()
|
|
2927
|
+
}), _a = l({
|
|
2928
|
+
choices: R(_t)
|
|
2929
|
+
}), xt = l({
|
|
2922
2930
|
id: c(),
|
|
2923
|
-
branches:
|
|
2931
|
+
branches: B(c(), _(_a)),
|
|
2924
2932
|
currentBranch: _(c()),
|
|
2925
2933
|
defaultBranch: c()
|
|
2926
|
-
}),
|
|
2934
|
+
}), kt = l({
|
|
2927
2935
|
id: c(),
|
|
2928
2936
|
message: c(),
|
|
2929
2937
|
imageId: c().optional(),
|
|
2930
2938
|
imageWidth: y().optional()
|
|
2931
|
-
}),
|
|
2932
|
-
type:
|
|
2939
|
+
}), bt = l({
|
|
2940
|
+
type: w("ending"),
|
|
2933
2941
|
endingId: c(),
|
|
2934
|
-
narrative:
|
|
2935
|
-
}),
|
|
2936
|
-
|
|
2942
|
+
narrative: I.optional()
|
|
2943
|
+
}), xa = Y([
|
|
2944
|
+
ze,
|
|
2937
2945
|
ae,
|
|
2938
2946
|
se,
|
|
2939
2947
|
ne,
|
|
2940
2948
|
re,
|
|
2941
|
-
|
|
2949
|
+
Fe,
|
|
2942
2950
|
ie,
|
|
2943
2951
|
ce,
|
|
2944
2952
|
X,
|
|
@@ -2948,8 +2956,9 @@ const pt = () => w().optional(), te = E(["left", "right", "up", "down"]), Ya = t
|
|
|
2948
2956
|
he,
|
|
2949
2957
|
oe,
|
|
2950
2958
|
fe,
|
|
2951
|
-
|
|
2952
|
-
|
|
2959
|
+
me,
|
|
2960
|
+
bt
|
|
2961
|
+
]), ka = Y([
|
|
2953
2962
|
ne,
|
|
2954
2963
|
re,
|
|
2955
2964
|
se,
|
|
@@ -2963,61 +2972,62 @@ const pt = () => w().optional(), te = E(["left", "right", "up", "down"]), Ya = t
|
|
|
2963
2972
|
ue,
|
|
2964
2973
|
le,
|
|
2965
2974
|
fe,
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2975
|
+
me,
|
|
2976
|
+
bt
|
|
2977
|
+
]), St = We.merge(l({
|
|
2978
|
+
consequences: R(xa)
|
|
2979
|
+
})), Ue = Ce.merge(l({
|
|
2980
|
+
stages: vt.merge(l({
|
|
2981
|
+
immediateConsequences: _(ka.array())
|
|
2972
2982
|
})).array()
|
|
2973
|
-
})),
|
|
2974
|
-
choiceSequence:
|
|
2975
|
-
})),
|
|
2976
|
-
choices: R(
|
|
2977
|
-
}),
|
|
2978
|
-
branches:
|
|
2979
|
-
})),
|
|
2983
|
+
})), ba = _t.merge(l({
|
|
2984
|
+
choiceSequence: Ue.optional()
|
|
2985
|
+
})), Sa = l({
|
|
2986
|
+
choices: R(ba)
|
|
2987
|
+
}), wt = xt.merge(l({
|
|
2988
|
+
branches: B(c(), _(Sa))
|
|
2989
|
+
})), lt = l({
|
|
2980
2990
|
soundId: c(),
|
|
2981
2991
|
frameIndex: y().optional(),
|
|
2982
2992
|
volume: y().optional()
|
|
2983
|
-
}),
|
|
2984
|
-
type:
|
|
2985
|
-
isPlayer: _(
|
|
2986
|
-
noInteraction: _(
|
|
2993
|
+
}), wa = B(c(), lt.or(lt.array()).or(oa())), Ge = Le.merge(da).merge(ca).merge(l({
|
|
2994
|
+
type: w("actor"),
|
|
2995
|
+
isPlayer: _(C()),
|
|
2996
|
+
noInteraction: _(C()),
|
|
2987
2997
|
speed: _(y()),
|
|
2988
2998
|
baseline: _(y()),
|
|
2989
2999
|
dialogueColor: _(c()),
|
|
2990
|
-
soundEffectMap:
|
|
3000
|
+
soundEffectMap: wa.optional(),
|
|
2991
3001
|
walkToX: y().optional(),
|
|
2992
3002
|
walkToY: y().optional(),
|
|
2993
|
-
defaultFrame:
|
|
2994
|
-
statusFrames:
|
|
2995
|
-
})),
|
|
2996
|
-
value:
|
|
2997
|
-
default:
|
|
3003
|
+
defaultFrame: be.optional(),
|
|
3004
|
+
statusFrames: B(be).optional()
|
|
3005
|
+
})), Ca = l({
|
|
3006
|
+
value: C(),
|
|
3007
|
+
default: C(),
|
|
2998
3008
|
description: c().optional()
|
|
2999
|
-
}),
|
|
3000
|
-
type:
|
|
3009
|
+
}), Ct = B(c(), Ca.optional()), Te = Le.extend({
|
|
3010
|
+
type: w("item"),
|
|
3001
3011
|
actorId: c().optional()
|
|
3002
|
-
}).and(
|
|
3012
|
+
}).and(be.partial());
|
|
3003
3013
|
E(["rect", "circle", "polygon"]);
|
|
3004
|
-
const
|
|
3014
|
+
const Ta = R(Be([y(), y()])), Tt = l({
|
|
3005
3015
|
type: c().optional(),
|
|
3006
3016
|
x: y(),
|
|
3007
3017
|
y: y(),
|
|
3008
3018
|
path: _(c()),
|
|
3009
|
-
polygon: _(
|
|
3019
|
+
polygon: _(Ta),
|
|
3010
3020
|
circle: _(y()),
|
|
3011
3021
|
rect: _(Be([y(), y()]))
|
|
3012
|
-
}),
|
|
3022
|
+
}), ht = Tt.merge(l({
|
|
3013
3023
|
ref: c().optional(),
|
|
3014
|
-
disabled:
|
|
3015
|
-
})),
|
|
3016
|
-
type:
|
|
3024
|
+
disabled: C().optional()
|
|
3025
|
+
})), It = Tt.merge(Le).merge(l({
|
|
3026
|
+
type: w("hotspot"),
|
|
3017
3027
|
parallax: y(),
|
|
3018
3028
|
walkToX: y().optional(),
|
|
3019
3029
|
walkToY: y().optional()
|
|
3020
|
-
})),
|
|
3030
|
+
})), Ia = l({
|
|
3021
3031
|
parallax: y(),
|
|
3022
3032
|
imageId: c(),
|
|
3023
3033
|
placement: l({
|
|
@@ -3026,121 +3036,121 @@ const Ca = R(Be([y(), y()])), Ct = l({
|
|
|
3026
3036
|
width: y(),
|
|
3027
3037
|
height: y()
|
|
3028
3038
|
}).optional()
|
|
3029
|
-
}),
|
|
3039
|
+
}), Oa = R(Be([y(), y()])), Ot = l({
|
|
3030
3040
|
id: c(),
|
|
3031
3041
|
frameWidth: y(),
|
|
3032
3042
|
frameHeight: y().optional(),
|
|
3033
3043
|
width: y(),
|
|
3034
3044
|
height: y(),
|
|
3035
|
-
background:
|
|
3036
|
-
hotspots:
|
|
3037
|
-
obstacleAreas: _(
|
|
3038
|
-
walkableAreas: _(
|
|
3039
|
-
scaling: _(
|
|
3045
|
+
background: Ia.array(),
|
|
3046
|
+
hotspots: It.array().optional(),
|
|
3047
|
+
obstacleAreas: _(ht.array()),
|
|
3048
|
+
walkableAreas: _(ht.array()),
|
|
3049
|
+
scaling: _(Oa),
|
|
3040
3050
|
backgroundColor: c().optional(),
|
|
3041
3051
|
name: c().optional(),
|
|
3042
|
-
narrative:
|
|
3043
|
-
backgroundMusic:
|
|
3044
|
-
ambientNoise:
|
|
3045
|
-
}),
|
|
3052
|
+
narrative: I.optional(),
|
|
3053
|
+
backgroundMusic: Me.optional(),
|
|
3054
|
+
ambientNoise: Me.optional()
|
|
3055
|
+
}), pe = l({
|
|
3046
3056
|
imageId: c(),
|
|
3047
3057
|
row: y(),
|
|
3048
3058
|
col: y()
|
|
3049
|
-
}),
|
|
3050
|
-
left:
|
|
3051
|
-
right:
|
|
3052
|
-
up:
|
|
3053
|
-
down:
|
|
3054
|
-
}),
|
|
3059
|
+
}), Aa = l({
|
|
3060
|
+
left: pe.array().optional(),
|
|
3061
|
+
right: pe.array().optional(),
|
|
3062
|
+
up: pe.array().optional(),
|
|
3063
|
+
down: pe.array().optional()
|
|
3064
|
+
}), At = l({
|
|
3055
3065
|
id: c(),
|
|
3056
3066
|
defaultDirection: te,
|
|
3057
|
-
animations:
|
|
3058
|
-
}),
|
|
3059
|
-
x:
|
|
3060
|
-
y:
|
|
3067
|
+
animations: B(c(), Aa)
|
|
3068
|
+
}), Ra = E(["center", "left", "right"]), Na = E(["center", "top", "bottom"]), Za = l({
|
|
3069
|
+
x: Ra,
|
|
3070
|
+
y: Na,
|
|
3061
3071
|
width: y().optional(),
|
|
3062
3072
|
height: y().optional(),
|
|
3063
|
-
aspectRatio:
|
|
3064
|
-
}),
|
|
3065
|
-
image:
|
|
3066
|
-
})),
|
|
3073
|
+
aspectRatio: ua.optional()
|
|
3074
|
+
}), Ea = Za.merge(l({
|
|
3075
|
+
image: be
|
|
3076
|
+
})), ja = l({
|
|
3067
3077
|
title: c(),
|
|
3068
|
-
narrative:
|
|
3069
|
-
pictures:
|
|
3078
|
+
narrative: I,
|
|
3079
|
+
pictures: Ea.array(),
|
|
3070
3080
|
backgroundColor: c(),
|
|
3071
3081
|
color: c()
|
|
3072
|
-
}),
|
|
3082
|
+
}), qa = E(["sound", "buttons"]), $a = E([
|
|
3073
3083
|
"serif",
|
|
3074
3084
|
"sans-serif",
|
|
3075
3085
|
"monospace",
|
|
3076
3086
|
"cursive",
|
|
3077
3087
|
"fantasy",
|
|
3078
3088
|
"math"
|
|
3079
|
-
]),
|
|
3089
|
+
]), Rt = l({
|
|
3080
3090
|
id: c(),
|
|
3081
|
-
isEndOfGame:
|
|
3082
|
-
pages:
|
|
3083
|
-
font:
|
|
3084
|
-
sound:
|
|
3085
|
-
progression:
|
|
3086
|
-
}),
|
|
3091
|
+
isEndOfGame: C().optional(),
|
|
3092
|
+
pages: ja.array(),
|
|
3093
|
+
font: $a.optional(),
|
|
3094
|
+
sound: Me.optional(),
|
|
3095
|
+
progression: qa.optional()
|
|
3096
|
+
}), He = l({
|
|
3087
3097
|
id: c(),
|
|
3088
3098
|
label: c(),
|
|
3089
3099
|
preposition: c().optional(),
|
|
3090
|
-
isMoveVerb:
|
|
3091
|
-
isNotForItems:
|
|
3092
|
-
isLookVerb:
|
|
3093
|
-
requiresItem:
|
|
3100
|
+
isMoveVerb: C().optional(),
|
|
3101
|
+
isNotForItems: C().optional(),
|
|
3102
|
+
isLookVerb: C().optional(),
|
|
3103
|
+
requiresItem: C().optional(),
|
|
3094
3104
|
defaultResponseNoItem: c().optional(),
|
|
3095
3105
|
defaultResponseWithItem: c().optional(),
|
|
3096
3106
|
defaultResponseCannotReach: c().optional()
|
|
3097
|
-
}),
|
|
3107
|
+
}), Va = l({
|
|
3098
3108
|
schemaVersion: y().optional(),
|
|
3099
|
-
rooms:
|
|
3100
|
-
items:
|
|
3101
|
-
actors:
|
|
3102
|
-
interactions:
|
|
3103
|
-
conversations:
|
|
3104
|
-
flagMap:
|
|
3109
|
+
rooms: Ot.array(),
|
|
3110
|
+
items: Te.array(),
|
|
3111
|
+
actors: Ge.array(),
|
|
3112
|
+
interactions: St.array(),
|
|
3113
|
+
conversations: wt.array(),
|
|
3114
|
+
flagMap: Ct,
|
|
3105
3115
|
currentRoomId: c(),
|
|
3106
3116
|
id: c(),
|
|
3107
3117
|
description: c().optional().describe("a short description of your game"),
|
|
3108
3118
|
thumbnailAssetId: c().optional()
|
|
3109
|
-
}),
|
|
3110
|
-
verbs:
|
|
3111
|
-
sequences:
|
|
3112
|
-
sprites:
|
|
3113
|
-
endings:
|
|
3119
|
+
}), Da = l({
|
|
3120
|
+
verbs: He.array(),
|
|
3121
|
+
sequences: Ue.array(),
|
|
3122
|
+
sprites: At.array(),
|
|
3123
|
+
endings: kt.array(),
|
|
3114
3124
|
openingSequenceId: c().optional(),
|
|
3115
3125
|
openingStoryboardId: c().optional(),
|
|
3116
|
-
storyBoards:
|
|
3117
|
-
}),
|
|
3118
|
-
sequenceRunning:
|
|
3126
|
+
storyBoards: Rt.array().optional()
|
|
3127
|
+
}), Ma = Va.and(Da).describe("The game schema"), Je = 4, Pa = l({
|
|
3128
|
+
sequenceRunning: Ce.optional(),
|
|
3119
3129
|
currentStoryBoardId: c().optional(),
|
|
3120
|
-
actorOrders:
|
|
3130
|
+
actorOrders: B(c(), we.array()),
|
|
3121
3131
|
currentConversationId: c().optional(),
|
|
3122
|
-
pendingInteraction:
|
|
3123
|
-
gameNotBegun:
|
|
3124
|
-
}),
|
|
3125
|
-
schemaVersion:
|
|
3126
|
-
rooms:
|
|
3127
|
-
items:
|
|
3128
|
-
actors:
|
|
3129
|
-
interactions:
|
|
3130
|
-
conversations:
|
|
3131
|
-
flagMap:
|
|
3132
|
+
pendingInteraction: We.optional(),
|
|
3133
|
+
gameNotBegun: C()
|
|
3134
|
+
}), Ye = l({
|
|
3135
|
+
schemaVersion: w(Je),
|
|
3136
|
+
rooms: Ot.array(),
|
|
3137
|
+
items: Te.array(),
|
|
3138
|
+
actors: Ge.array(),
|
|
3139
|
+
interactions: We.array(),
|
|
3140
|
+
conversations: xt.array(),
|
|
3141
|
+
flagMap: Ct,
|
|
3132
3142
|
currentRoomId: c(),
|
|
3133
3143
|
id: c(),
|
|
3134
3144
|
description: c().optional().describe("a short description of your game"),
|
|
3135
3145
|
thumbnailAssetId: c().optional()
|
|
3136
|
-
}),
|
|
3137
|
-
verbs:
|
|
3138
|
-
sequences:
|
|
3139
|
-
sprites:
|
|
3146
|
+
}), Nt = l({
|
|
3147
|
+
verbs: He.array(),
|
|
3148
|
+
sequences: Ce.array(),
|
|
3149
|
+
sprites: At.array(),
|
|
3140
3150
|
openingSequenceId: c().optional(),
|
|
3141
3151
|
openingStoryboardId: c().optional(),
|
|
3142
|
-
storyBoards:
|
|
3143
|
-
}),
|
|
3152
|
+
storyBoards: Rt.array()
|
|
3153
|
+
}), ns = Ye.and(Pa), Ba = Ye.and(Nt).describe("The game schema"), rs = E([
|
|
3144
3154
|
"rooms",
|
|
3145
3155
|
"items",
|
|
3146
3156
|
"actors",
|
|
@@ -3149,22 +3159,22 @@ const Ca = R(Be([y(), y()])), Ct = l({
|
|
|
3149
3159
|
"sequences",
|
|
3150
3160
|
"verbs",
|
|
3151
3161
|
"storyBoards"
|
|
3152
|
-
]),
|
|
3153
|
-
schemaVersion:
|
|
3154
|
-
interactions:
|
|
3155
|
-
conversations:
|
|
3156
|
-
})),
|
|
3157
|
-
endings:
|
|
3158
|
-
sequences:
|
|
3159
|
-
})),
|
|
3160
|
-
verb:
|
|
3161
|
-
target:
|
|
3162
|
-
item: _(
|
|
3163
|
-
}),
|
|
3162
|
+
]), La = Ye.merge(l({
|
|
3163
|
+
schemaVersion: w(3),
|
|
3164
|
+
interactions: St.array(),
|
|
3165
|
+
conversations: wt.array()
|
|
3166
|
+
})), za = Nt.merge(l({
|
|
3167
|
+
endings: kt.array(),
|
|
3168
|
+
sequences: Ue.array()
|
|
3169
|
+
})), Fa = La.and(za).describe("The game schema"), Wa = Y([Ge, Te, It]), is = l({
|
|
3170
|
+
verb: He,
|
|
3171
|
+
target: Wa,
|
|
3172
|
+
item: _(Te)
|
|
3173
|
+
}), Ua = (a) => ({
|
|
3164
3174
|
...a,
|
|
3165
3175
|
storyBoards: a.storyBoards ?? [],
|
|
3166
3176
|
schemaVersion: 3
|
|
3167
|
-
}),
|
|
3177
|
+
}), Ga = (a) => Zt(Ua(a)), Ha = (a, e) => {
|
|
3168
3178
|
const t = a.imageId ? {
|
|
3169
3179
|
x: "center",
|
|
3170
3180
|
y: "center",
|
|
@@ -3190,16 +3200,16 @@ const Ca = R(Be([y(), y()])), Ct = l({
|
|
|
3190
3200
|
}
|
|
3191
3201
|
]
|
|
3192
3202
|
};
|
|
3193
|
-
},
|
|
3203
|
+
}, Ja = (a, e) => {
|
|
3194
3204
|
const t = e.filter((n) => n.startsWith(a)), s = (n = 1) => {
|
|
3195
3205
|
const r = `${a}_${n}`;
|
|
3196
3206
|
return t.includes(r) ? s(n + 1) : r;
|
|
3197
3207
|
};
|
|
3198
3208
|
return s();
|
|
3199
|
-
},
|
|
3209
|
+
}, Zt = (a) => {
|
|
3200
3210
|
const { storyBoards: e, interactions: t, sequences: s, conversations: n } = a, r = e.map((T) => T.id), i = {}, o = a.endings.map((T) => {
|
|
3201
|
-
const N = r.includes(T.id) ?
|
|
3202
|
-
return N && r.push(N), i[T.id] = N ?? T.id,
|
|
3211
|
+
const N = r.includes(T.id) ? Ja(T.id, r) : void 0;
|
|
3212
|
+
return N && r.push(N), i[T.id] = N ?? T.id, Ha(T, N);
|
|
3203
3213
|
}), m = (T) => T.type !== "ending" ? T : {
|
|
3204
3214
|
type: "storyBoardConsequence",
|
|
3205
3215
|
storyBoardId: i[T.endingId] ?? T.endingId,
|
|
@@ -3212,47 +3222,47 @@ const Ca = R(Be([y(), y()])), Ct = l({
|
|
|
3212
3222
|
}))
|
|
3213
3223
|
}), b = (T) => {
|
|
3214
3224
|
const { branches: N } = T;
|
|
3215
|
-
for (let
|
|
3216
|
-
const
|
|
3217
|
-
|
|
3218
|
-
...
|
|
3219
|
-
choiceSequence:
|
|
3225
|
+
for (let jt in N) {
|
|
3226
|
+
const Oe = N[jt];
|
|
3227
|
+
Oe && (Oe.choices = Oe.choices.map((Ae) => ({
|
|
3228
|
+
...Ae,
|
|
3229
|
+
choiceSequence: Ae.choiceSequence ? p(Ae.choiceSequence) : void 0
|
|
3220
3230
|
})));
|
|
3221
3231
|
}
|
|
3222
3232
|
return {
|
|
3223
3233
|
...T,
|
|
3224
3234
|
branches: N
|
|
3225
3235
|
};
|
|
3226
|
-
}, L = t.map((T) => ({ ...T, consequences: T.consequences.map(m) })),
|
|
3236
|
+
}, L = t.map((T) => ({ ...T, consequences: T.consequences.map(m) })), Ie = s.map(p), Et = n.map(b);
|
|
3227
3237
|
return {
|
|
3228
3238
|
...a,
|
|
3229
3239
|
storyBoards: [...e, ...o],
|
|
3230
3240
|
interactions: L,
|
|
3231
|
-
sequences:
|
|
3232
|
-
conversations:
|
|
3233
|
-
schemaVersion:
|
|
3241
|
+
sequences: Ie,
|
|
3242
|
+
conversations: Et,
|
|
3243
|
+
schemaVersion: Je
|
|
3234
3244
|
};
|
|
3235
|
-
},
|
|
3245
|
+
}, os = (a) => {
|
|
3236
3246
|
const e = Ba.safeParse(a);
|
|
3237
3247
|
if (e.success)
|
|
3238
3248
|
return {
|
|
3239
3249
|
success: !0,
|
|
3240
3250
|
gameDesign: e.data,
|
|
3241
|
-
sourceVersion:
|
|
3251
|
+
sourceVersion: Je,
|
|
3242
3252
|
updated: !1
|
|
3243
3253
|
};
|
|
3244
|
-
const t =
|
|
3254
|
+
const t = Fa.safeParse(a);
|
|
3245
3255
|
if (t.success)
|
|
3246
3256
|
return {
|
|
3247
3257
|
success: !0,
|
|
3248
|
-
gameDesign:
|
|
3258
|
+
gameDesign: Zt(t.data),
|
|
3249
3259
|
sourceVersion: 3,
|
|
3250
3260
|
updated: !0
|
|
3251
3261
|
};
|
|
3252
|
-
const s =
|
|
3262
|
+
const s = Ma.safeParse(a);
|
|
3253
3263
|
return s.success ? {
|
|
3254
3264
|
success: !0,
|
|
3255
|
-
gameDesign:
|
|
3265
|
+
gameDesign: Ga(s.data),
|
|
3256
3266
|
sourceVersion: 2,
|
|
3257
3267
|
updated: !0
|
|
3258
3268
|
} : {
|
|
@@ -3261,83 +3271,84 @@ const Ca = R(Be([y(), y()])), Ct = l({
|
|
|
3261
3271
|
};
|
|
3262
3272
|
};
|
|
3263
3273
|
export {
|
|
3264
|
-
|
|
3265
|
-
|
|
3274
|
+
ya as ActOrderSchema,
|
|
3275
|
+
Ge as ActorDataSchema,
|
|
3266
3276
|
le as AmbientNoiseConsequenceSchema,
|
|
3267
|
-
|
|
3277
|
+
ua as AspectRatioSchema,
|
|
3268
3278
|
ue as BackgroundMusicConsequenceSchema,
|
|
3269
|
-
|
|
3270
|
-
|
|
3279
|
+
$a as BoardFontSchema,
|
|
3280
|
+
qa as BoardProgressionSchema,
|
|
3281
|
+
me as ChangePlayerCharacterConsequenceSchema,
|
|
3271
3282
|
ae as ChangeRoomConsequenceSchema,
|
|
3272
3283
|
re as ChangeStatusConsequenceSchema,
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3284
|
+
is as CommandSchema,
|
|
3285
|
+
Wa as CommandTargetSchema,
|
|
3286
|
+
ga as ConsequenceSchema,
|
|
3287
|
+
_a as ConversationBranchSchema,
|
|
3277
3288
|
oe as ConversationChoiceConsequenceSchema,
|
|
3278
|
-
|
|
3289
|
+
_t as ConversationChoiceSchema,
|
|
3279
3290
|
ie as ConversationConsequenceSchema,
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3291
|
+
xt as ConversationSchema,
|
|
3292
|
+
wt as ConversationSchemaWithDeprecatedConsequences,
|
|
3293
|
+
Je as DB_VERSION,
|
|
3283
3294
|
te as DirectionEnum,
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3295
|
+
bt as EndingConsequenceSchema,
|
|
3296
|
+
kt as EndingSchema,
|
|
3297
|
+
Nt as FixedGameInfoSchema,
|
|
3287
3298
|
he as FlagConsequenceSchema,
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3299
|
+
Ct as FlagMapSchema,
|
|
3300
|
+
Ca as FlagSchema,
|
|
3301
|
+
Ye as GameContentsDataSchema,
|
|
3302
|
+
rs as GameDataItemTypeEnum,
|
|
3303
|
+
ns as GameDataSchema,
|
|
3293
3304
|
Ba as GameDesignSchema,
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3305
|
+
Pa as GameHappeningsSchema,
|
|
3306
|
+
fa as GotoOrderSchema,
|
|
3307
|
+
It as HotspotZoneSchema,
|
|
3308
|
+
Le as IdentSchema,
|
|
3309
|
+
gt as ImmediateConsequenceSchema,
|
|
3310
|
+
ka as ImmediateConsequenceSchemaWithDeprecated,
|
|
3311
|
+
We as InteractionSchema,
|
|
3312
|
+
St as InteractionSchemaWithDeprecatedConsequences,
|
|
3302
3313
|
se as InventoryConsequenceSchema,
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3314
|
+
Te as ItemDataSchema,
|
|
3315
|
+
ha as MoveOrderSchema,
|
|
3316
|
+
I as NarrativeSchema,
|
|
3317
|
+
ze as OrderConsequenceSchema,
|
|
3318
|
+
da as PositionSchema,
|
|
3308
3319
|
ne as RemoveActorConsequenceSchema,
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3320
|
+
Ot as RoomDataSchema,
|
|
3321
|
+
ma as SayOrderSchema,
|
|
3322
|
+
Fe as SequenceConsequenceSchema,
|
|
3323
|
+
Ce as SequenceSchema,
|
|
3324
|
+
Ue as SequenceSchemaWithDeprecatedConsequences,
|
|
3314
3325
|
de as SoundEffectConsequenceSchema,
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3326
|
+
lt as SoundValueSchema,
|
|
3327
|
+
At as SpriteDataSchema,
|
|
3328
|
+
pe as SpriteFrameSchema,
|
|
3329
|
+
ca as SpriteParamsSchema,
|
|
3330
|
+
vt as StageSchema,
|
|
3331
|
+
be as StaticFrameParamsSchema,
|
|
3321
3332
|
fe as StoryBoardConsequenceSchema,
|
|
3322
|
-
|
|
3323
|
-
|
|
3333
|
+
ja as StoryBoardPageSchema,
|
|
3334
|
+
Rt as StoryBoardSchema,
|
|
3324
3335
|
ce as TeleportActorConsequenceSchema,
|
|
3325
3336
|
X as ToggleZoneConsequenceSchema,
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3337
|
+
He as VerbSchema,
|
|
3338
|
+
ht as ZoneSchema,
|
|
3339
|
+
Ya as changeHistory,
|
|
3340
|
+
as as consequenceMap,
|
|
3341
|
+
ts as consequenceTypes,
|
|
3342
|
+
Xa as directions,
|
|
3343
|
+
ss as immediateConsequenceTypes,
|
|
3344
|
+
Qa as orderBaseOmits,
|
|
3345
|
+
we as orderSchema,
|
|
3346
|
+
Ka as orderTypes,
|
|
3347
|
+
os as parseAndUpgrade,
|
|
3348
|
+
Me as soundInstanceSchema,
|
|
3349
|
+
Ma as v2GameDesignSchema,
|
|
3350
|
+
Fa as v3GameDesignSchema,
|
|
3351
|
+
Ra as xPlacement,
|
|
3352
|
+
Na as yPlacement,
|
|
3353
|
+
es as zoneTypes
|
|
3343
3354
|
};
|