@settlemint/sdk-viem 2.5.1-mainf0c7fb9b → 2.5.1-mainffd47926
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/browser/viem.d.ts +3 -1
- package/dist/browser/viem.js +1030 -686
- package/dist/browser/viem.js.map +1 -1
- package/dist/viem.cjs +1030 -686
- package/dist/viem.cjs.map +1 -1
- package/dist/viem.d.cts +3 -1
- package/dist/viem.d.ts +3 -1
- package/dist/viem.js +1030 -686
- package/dist/viem.js.map +1 -1
- package/package.json +2 -2
package/dist/viem.cjs
CHANGED
|
@@ -34,7 +34,9 @@ const __settlemint_sdk_utils_validation = __toESM(require("@settlemint/sdk-utils
|
|
|
34
34
|
const viem = __toESM(require("viem"));
|
|
35
35
|
const viem_chains = __toESM(require("viem/chains"));
|
|
36
36
|
|
|
37
|
-
//#region ../../node_modules/zod/
|
|
37
|
+
//#region ../../node_modules/zod/v4/core/core.js
|
|
38
|
+
/** A special constant with type `never` */
|
|
39
|
+
const NEVER = Object.freeze({ status: "aborted" });
|
|
38
40
|
function $constructor(name, initializer$2, params) {
|
|
39
41
|
function init(inst, def) {
|
|
40
42
|
var _a;
|
|
@@ -85,7 +87,7 @@ function config(newConfig) {
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
//#endregion
|
|
88
|
-
//#region ../../node_modules/zod/
|
|
90
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
89
91
|
var util_exports = {};
|
|
90
92
|
__export(util_exports, {
|
|
91
93
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -100,6 +102,7 @@ __export(util_exports, {
|
|
|
100
102
|
assertNotEqual: () => assertNotEqual,
|
|
101
103
|
assignProp: () => assignProp,
|
|
102
104
|
cached: () => cached,
|
|
105
|
+
captureStackTrace: () => captureStackTrace,
|
|
103
106
|
cleanEnum: () => cleanEnum,
|
|
104
107
|
cleanRegex: () => cleanRegex,
|
|
105
108
|
clone: () => clone,
|
|
@@ -238,10 +241,14 @@ function randomString(length = 10) {
|
|
|
238
241
|
function esc(str) {
|
|
239
242
|
return JSON.stringify(str);
|
|
240
243
|
}
|
|
244
|
+
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
241
245
|
function isObject(data) {
|
|
242
246
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
243
247
|
}
|
|
244
248
|
const allowsEval = cached(() => {
|
|
249
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
245
252
|
try {
|
|
246
253
|
const F = Function;
|
|
247
254
|
new F("");
|
|
@@ -250,9 +257,6 @@ const allowsEval = cached(() => {
|
|
|
250
257
|
return false;
|
|
251
258
|
}
|
|
252
259
|
});
|
|
253
|
-
function _isObject(o) {
|
|
254
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
255
|
-
}
|
|
256
260
|
function isPlainObject(o) {
|
|
257
261
|
if (isObject(o) === false) return false;
|
|
258
262
|
const ctor = o.constructor;
|
|
@@ -432,6 +436,9 @@ function omit(schema, mask) {
|
|
|
432
436
|
});
|
|
433
437
|
}
|
|
434
438
|
function extend(schema, shape) {
|
|
439
|
+
if (!isPlainObject(shape)) {
|
|
440
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
441
|
+
}
|
|
435
442
|
const def = {
|
|
436
443
|
...schema._zod.def,
|
|
437
444
|
get shape() {
|
|
@@ -519,7 +526,7 @@ function required(Class$1, schema, mask) {
|
|
|
519
526
|
}
|
|
520
527
|
function aborted(x, startIndex = 0) {
|
|
521
528
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
522
|
-
if (x.issues[i]
|
|
529
|
+
if (x.issues[i]?.continue !== true) return true;
|
|
523
530
|
}
|
|
524
531
|
return false;
|
|
525
532
|
}
|
|
@@ -583,7 +590,7 @@ var Class = class {
|
|
|
583
590
|
};
|
|
584
591
|
|
|
585
592
|
//#endregion
|
|
586
|
-
//#region ../../node_modules/zod/
|
|
593
|
+
//#region ../../node_modules/zod/v4/core/errors.js
|
|
587
594
|
const initializer$1 = (inst, def) => {
|
|
588
595
|
inst.name = "$ZodError";
|
|
589
596
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -600,13 +607,17 @@ const initializer$1 = (inst, def) => {
|
|
|
600
607
|
},
|
|
601
608
|
enumerable: true
|
|
602
609
|
});
|
|
610
|
+
Object.defineProperty(inst, "toString", {
|
|
611
|
+
value: () => inst.message,
|
|
612
|
+
enumerable: false
|
|
613
|
+
});
|
|
603
614
|
};
|
|
604
615
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
605
616
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
606
|
-
function flattenError(error$
|
|
617
|
+
function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
607
618
|
const fieldErrors = {};
|
|
608
619
|
const formErrors = [];
|
|
609
|
-
for (const sub of error$
|
|
620
|
+
for (const sub of error$39.issues) {
|
|
610
621
|
if (sub.path.length > 0) {
|
|
611
622
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
612
623
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -619,13 +630,13 @@ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
|
619
630
|
fieldErrors
|
|
620
631
|
};
|
|
621
632
|
}
|
|
622
|
-
function formatError(error$
|
|
633
|
+
function formatError(error$39, _mapper) {
|
|
623
634
|
const mapper = _mapper || function(issue$1) {
|
|
624
635
|
return issue$1.message;
|
|
625
636
|
};
|
|
626
637
|
const fieldErrors = { _errors: [] };
|
|
627
|
-
const processError = (error$
|
|
628
|
-
for (const issue$1 of error$
|
|
638
|
+
const processError = (error$40) => {
|
|
639
|
+
for (const issue$1 of error$40.issues) {
|
|
629
640
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
630
641
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
631
642
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -652,17 +663,17 @@ function formatError(error$37, _mapper) {
|
|
|
652
663
|
}
|
|
653
664
|
}
|
|
654
665
|
};
|
|
655
|
-
processError(error$
|
|
666
|
+
processError(error$39);
|
|
656
667
|
return fieldErrors;
|
|
657
668
|
}
|
|
658
|
-
function treeifyError(error$
|
|
669
|
+
function treeifyError(error$39, _mapper) {
|
|
659
670
|
const mapper = _mapper || function(issue$1) {
|
|
660
671
|
return issue$1.message;
|
|
661
672
|
};
|
|
662
673
|
const result = { errors: [] };
|
|
663
|
-
const processError = (error$
|
|
674
|
+
const processError = (error$40, path = []) => {
|
|
664
675
|
var _a, _b;
|
|
665
|
-
for (const issue$1 of error$
|
|
676
|
+
for (const issue$1 of error$40.issues) {
|
|
666
677
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
667
678
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
668
679
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -697,7 +708,7 @@ function treeifyError(error$37, _mapper) {
|
|
|
697
708
|
}
|
|
698
709
|
}
|
|
699
710
|
};
|
|
700
|
-
processError(error$
|
|
711
|
+
processError(error$39);
|
|
701
712
|
return result;
|
|
702
713
|
}
|
|
703
714
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -745,9 +756,9 @@ function toDotPath(path) {
|
|
|
745
756
|
}
|
|
746
757
|
return segs.join("");
|
|
747
758
|
}
|
|
748
|
-
function prettifyError(error$
|
|
759
|
+
function prettifyError(error$39) {
|
|
749
760
|
const lines = [];
|
|
750
|
-
const issues = [...error$
|
|
761
|
+
const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
|
|
751
762
|
for (const issue$1 of issues) {
|
|
752
763
|
lines.push(`✖ ${issue$1.message}`);
|
|
753
764
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -756,7 +767,7 @@ function prettifyError(error$37) {
|
|
|
756
767
|
}
|
|
757
768
|
|
|
758
769
|
//#endregion
|
|
759
|
-
//#region ../../node_modules/zod/
|
|
770
|
+
//#region ../../node_modules/zod/v4/core/parse.js
|
|
760
771
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
761
772
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
762
773
|
const result = schema._zod.run({
|
|
@@ -768,7 +779,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
768
779
|
}
|
|
769
780
|
if (result.issues.length) {
|
|
770
781
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
771
|
-
|
|
782
|
+
captureStackTrace(e, _params?.callee);
|
|
772
783
|
throw e;
|
|
773
784
|
}
|
|
774
785
|
return result.value;
|
|
@@ -783,7 +794,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
783
794
|
if (result instanceof Promise) result = await result;
|
|
784
795
|
if (result.issues.length) {
|
|
785
796
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
786
|
-
|
|
797
|
+
captureStackTrace(e, params?.callee);
|
|
787
798
|
throw e;
|
|
788
799
|
}
|
|
789
800
|
return result.value;
|
|
@@ -828,10 +839,9 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
828
839
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
829
840
|
|
|
830
841
|
//#endregion
|
|
831
|
-
//#region ../../node_modules/zod/
|
|
842
|
+
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
832
843
|
var regexes_exports = {};
|
|
833
844
|
__export(regexes_exports, {
|
|
834
|
-
_emoji: () => _emoji$1,
|
|
835
845
|
base64: () => base64$1,
|
|
836
846
|
base64url: () => base64url$1,
|
|
837
847
|
bigint: () => bigint$2,
|
|
@@ -917,27 +927,23 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
917
927
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
918
928
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
919
929
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
920
|
-
const dateSource = `((
|
|
930
|
+
const dateSource = `(?:(?:\\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])))`;
|
|
921
931
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
922
932
|
function timeSource(args) {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
926
|
-
} else if (args.precision == null) {
|
|
927
|
-
regex = `${regex}(\\.\\d+)?`;
|
|
928
|
-
}
|
|
933
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
934
|
+
const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
929
935
|
return regex;
|
|
930
936
|
}
|
|
931
937
|
function time$1(args) {
|
|
932
938
|
return new RegExp(`^${timeSource(args)}$`);
|
|
933
939
|
}
|
|
934
940
|
function datetime$1(args) {
|
|
935
|
-
|
|
936
|
-
const opts = [];
|
|
937
|
-
|
|
938
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
939
|
-
|
|
940
|
-
return new RegExp(`^${
|
|
941
|
+
const time$2 = timeSource({ precision: args.precision });
|
|
942
|
+
const opts = ["Z"];
|
|
943
|
+
if (args.local) opts.push("");
|
|
944
|
+
if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
945
|
+
const timeRegex = `${time$2}(?:${opts.join("|")})`;
|
|
946
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
941
947
|
}
|
|
942
948
|
const string$2 = (params) => {
|
|
943
949
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -953,7 +959,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
953
959
|
const uppercase = /^[^a-z]*$/;
|
|
954
960
|
|
|
955
961
|
//#endregion
|
|
956
|
-
//#region ../../node_modules/zod/
|
|
962
|
+
//#region ../../node_modules/zod/v4/core/checks.js
|
|
957
963
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
958
964
|
var _a;
|
|
959
965
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1144,11 +1150,12 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1144
1150
|
};
|
|
1145
1151
|
});
|
|
1146
1152
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1153
|
+
var _a;
|
|
1147
1154
|
$ZodCheck.init(inst, def);
|
|
1148
|
-
inst._zod.when = (payload) => {
|
|
1155
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1149
1156
|
const val = payload.value;
|
|
1150
1157
|
return !nullish$1(val) && val.size !== undefined;
|
|
1151
|
-
};
|
|
1158
|
+
});
|
|
1152
1159
|
inst._zod.onattach.push((inst$1) => {
|
|
1153
1160
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1154
1161
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1168,11 +1175,12 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1168
1175
|
};
|
|
1169
1176
|
});
|
|
1170
1177
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1178
|
+
var _a;
|
|
1171
1179
|
$ZodCheck.init(inst, def);
|
|
1172
|
-
inst._zod.when = (payload) => {
|
|
1180
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1173
1181
|
const val = payload.value;
|
|
1174
1182
|
return !nullish$1(val) && val.size !== undefined;
|
|
1175
|
-
};
|
|
1183
|
+
});
|
|
1176
1184
|
inst._zod.onattach.push((inst$1) => {
|
|
1177
1185
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1178
1186
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1192,11 +1200,12 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1192
1200
|
};
|
|
1193
1201
|
});
|
|
1194
1202
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1203
|
+
var _a;
|
|
1195
1204
|
$ZodCheck.init(inst, def);
|
|
1196
|
-
inst._zod.when = (payload) => {
|
|
1205
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1197
1206
|
const val = payload.value;
|
|
1198
1207
|
return !nullish$1(val) && val.size !== undefined;
|
|
1199
|
-
};
|
|
1208
|
+
});
|
|
1200
1209
|
inst._zod.onattach.push((inst$1) => {
|
|
1201
1210
|
const bag = inst$1._zod.bag;
|
|
1202
1211
|
bag.minimum = def.size;
|
|
@@ -1217,6 +1226,8 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1217
1226
|
code: "too_small",
|
|
1218
1227
|
minimum: def.size
|
|
1219
1228
|
},
|
|
1229
|
+
inclusive: true,
|
|
1230
|
+
exact: true,
|
|
1220
1231
|
input: payload.value,
|
|
1221
1232
|
inst,
|
|
1222
1233
|
continue: !def.abort
|
|
@@ -1224,11 +1235,12 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1224
1235
|
};
|
|
1225
1236
|
});
|
|
1226
1237
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1238
|
+
var _a;
|
|
1227
1239
|
$ZodCheck.init(inst, def);
|
|
1228
|
-
inst._zod.when = (payload) => {
|
|
1240
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1229
1241
|
const val = payload.value;
|
|
1230
1242
|
return !nullish$1(val) && val.length !== undefined;
|
|
1231
|
-
};
|
|
1243
|
+
});
|
|
1232
1244
|
inst._zod.onattach.push((inst$1) => {
|
|
1233
1245
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1234
1246
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1250,11 +1262,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1250
1262
|
};
|
|
1251
1263
|
});
|
|
1252
1264
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1265
|
+
var _a;
|
|
1253
1266
|
$ZodCheck.init(inst, def);
|
|
1254
|
-
inst._zod.when = (payload) => {
|
|
1267
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1255
1268
|
const val = payload.value;
|
|
1256
1269
|
return !nullish$1(val) && val.length !== undefined;
|
|
1257
|
-
};
|
|
1270
|
+
});
|
|
1258
1271
|
inst._zod.onattach.push((inst$1) => {
|
|
1259
1272
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1260
1273
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1276,11 +1289,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1276
1289
|
};
|
|
1277
1290
|
});
|
|
1278
1291
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1292
|
+
var _a;
|
|
1279
1293
|
$ZodCheck.init(inst, def);
|
|
1280
|
-
inst._zod.when = (payload) => {
|
|
1294
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1281
1295
|
const val = payload.value;
|
|
1282
1296
|
return !nullish$1(val) && val.length !== undefined;
|
|
1283
|
-
};
|
|
1297
|
+
});
|
|
1284
1298
|
inst._zod.onattach.push((inst$1) => {
|
|
1285
1299
|
const bag = inst$1._zod.bag;
|
|
1286
1300
|
bag.minimum = def.length;
|
|
@@ -1302,6 +1316,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1302
1316
|
code: "too_small",
|
|
1303
1317
|
minimum: def.length
|
|
1304
1318
|
},
|
|
1319
|
+
inclusive: true,
|
|
1320
|
+
exact: true,
|
|
1305
1321
|
input: payload.value,
|
|
1306
1322
|
inst,
|
|
1307
1323
|
continue: !def.abort
|
|
@@ -1309,7 +1325,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1309
1325
|
};
|
|
1310
1326
|
});
|
|
1311
1327
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1312
|
-
var _a;
|
|
1328
|
+
var _a, _b;
|
|
1313
1329
|
$ZodCheck.init(inst, def);
|
|
1314
1330
|
inst._zod.onattach.push((inst$1) => {
|
|
1315
1331
|
const bag = inst$1._zod.bag;
|
|
@@ -1319,8 +1335,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1319
1335
|
bag.patterns.add(def.pattern);
|
|
1320
1336
|
}
|
|
1321
1337
|
});
|
|
1322
|
-
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1323
|
-
if (!def.pattern) throw new Error("Not implemented.");
|
|
1338
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1324
1339
|
def.pattern.lastIndex = 0;
|
|
1325
1340
|
if (def.pattern.test(payload.value)) return;
|
|
1326
1341
|
payload.issues.push({
|
|
@@ -1333,6 +1348,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1333
1348
|
continue: !def.abort
|
|
1334
1349
|
});
|
|
1335
1350
|
});
|
|
1351
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1336
1352
|
});
|
|
1337
1353
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1338
1354
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1456,7 +1472,6 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1456
1472
|
code: "invalid_value",
|
|
1457
1473
|
values: def.mime,
|
|
1458
1474
|
input: payload.value.type,
|
|
1459
|
-
path: ["type"],
|
|
1460
1475
|
inst
|
|
1461
1476
|
});
|
|
1462
1477
|
};
|
|
@@ -1469,7 +1484,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1469
1484
|
});
|
|
1470
1485
|
|
|
1471
1486
|
//#endregion
|
|
1472
|
-
//#region ../../node_modules/zod/
|
|
1487
|
+
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1473
1488
|
var Doc = class {
|
|
1474
1489
|
constructor(args = []) {
|
|
1475
1490
|
this.content = [];
|
|
@@ -1505,19 +1520,18 @@ var Doc = class {
|
|
|
1505
1520
|
};
|
|
1506
1521
|
|
|
1507
1522
|
//#endregion
|
|
1508
|
-
//#region ../../node_modules/zod/
|
|
1523
|
+
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1509
1524
|
const version = {
|
|
1510
1525
|
major: 4,
|
|
1511
1526
|
minor: 0,
|
|
1512
|
-
patch:
|
|
1527
|
+
patch: 5
|
|
1513
1528
|
};
|
|
1514
1529
|
|
|
1515
1530
|
//#endregion
|
|
1516
|
-
//#region ../../node_modules/zod/
|
|
1531
|
+
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1517
1532
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1518
1533
|
var _a;
|
|
1519
1534
|
inst ?? (inst = {});
|
|
1520
|
-
inst._zod.id = def.type + "_" + randomString(10);
|
|
1521
1535
|
inst._zod.def = def;
|
|
1522
1536
|
inst._zod.bag = inst._zod.bag || {};
|
|
1523
1537
|
inst._zod.version = version;
|
|
@@ -1540,13 +1554,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1540
1554
|
let isAborted = aborted(payload);
|
|
1541
1555
|
let asyncResult;
|
|
1542
1556
|
for (const ch of checks$1) {
|
|
1543
|
-
if (ch._zod.when) {
|
|
1544
|
-
const shouldRun = ch._zod.when(payload);
|
|
1557
|
+
if (ch._zod.def.when) {
|
|
1558
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
1545
1559
|
if (!shouldRun) continue;
|
|
1546
|
-
} else {
|
|
1547
|
-
|
|
1548
|
-
continue;
|
|
1549
|
-
}
|
|
1560
|
+
} else if (isAborted) {
|
|
1561
|
+
continue;
|
|
1550
1562
|
}
|
|
1551
1563
|
const currLen = payload.issues.length;
|
|
1552
1564
|
const _ = ch._zod.check(payload);
|
|
@@ -1646,7 +1658,9 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1646
1658
|
$ZodStringFormat.init(inst, def);
|
|
1647
1659
|
inst._zod.check = (payload) => {
|
|
1648
1660
|
try {
|
|
1649
|
-
const
|
|
1661
|
+
const orig = payload.value;
|
|
1662
|
+
const url$1 = new URL(orig);
|
|
1663
|
+
const href = url$1.href;
|
|
1650
1664
|
if (def.hostname) {
|
|
1651
1665
|
def.hostname.lastIndex = 0;
|
|
1652
1666
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -1675,6 +1689,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1675
1689
|
});
|
|
1676
1690
|
}
|
|
1677
1691
|
}
|
|
1692
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
1693
|
+
payload.value = href.slice(0, -1);
|
|
1694
|
+
} else {
|
|
1695
|
+
payload.value = href;
|
|
1696
|
+
}
|
|
1678
1697
|
return;
|
|
1679
1698
|
} catch (_) {
|
|
1680
1699
|
payload.issues.push({
|
|
@@ -1845,6 +1864,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1845
1864
|
const tokensParts = token.split(".");
|
|
1846
1865
|
if (tokensParts.length !== 3) return false;
|
|
1847
1866
|
const [header] = tokensParts;
|
|
1867
|
+
if (!header) return false;
|
|
1848
1868
|
const parsedHeader = JSON.parse(atob(header));
|
|
1849
1869
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1850
1870
|
if (!parsedHeader.alg) return false;
|
|
@@ -1867,6 +1887,19 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1867
1887
|
});
|
|
1868
1888
|
};
|
|
1869
1889
|
});
|
|
1890
|
+
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
1891
|
+
$ZodStringFormat.init(inst, def);
|
|
1892
|
+
inst._zod.check = (payload) => {
|
|
1893
|
+
if (def.fn(payload.value)) return;
|
|
1894
|
+
payload.issues.push({
|
|
1895
|
+
code: "invalid_format",
|
|
1896
|
+
format: def.format,
|
|
1897
|
+
input: payload.value,
|
|
1898
|
+
inst,
|
|
1899
|
+
continue: !def.abort
|
|
1900
|
+
});
|
|
1901
|
+
};
|
|
1902
|
+
});
|
|
1870
1903
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
1871
1904
|
$ZodType.init(inst, def);
|
|
1872
1905
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -1918,12 +1951,11 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
1918
1951
|
if (def.coerce) try {
|
|
1919
1952
|
payload.value = BigInt(payload.value);
|
|
1920
1953
|
} catch (_) {}
|
|
1921
|
-
|
|
1922
|
-
if (typeof input === "bigint") return payload;
|
|
1954
|
+
if (typeof payload.value === "bigint") return payload;
|
|
1923
1955
|
payload.issues.push({
|
|
1924
1956
|
expected: "bigint",
|
|
1925
1957
|
code: "invalid_type",
|
|
1926
|
-
input,
|
|
1958
|
+
input: payload.value,
|
|
1927
1959
|
inst
|
|
1928
1960
|
});
|
|
1929
1961
|
return payload;
|
|
@@ -1936,7 +1968,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
1936
1968
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
1937
1969
|
$ZodType.init(inst, def);
|
|
1938
1970
|
inst._zod.parse = (payload, _ctx) => {
|
|
1939
|
-
const
|
|
1971
|
+
const input = payload.value;
|
|
1940
1972
|
if (typeof input === "symbol") return payload;
|
|
1941
1973
|
payload.issues.push({
|
|
1942
1974
|
expected: "symbol",
|
|
@@ -1951,8 +1983,10 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
1951
1983
|
$ZodType.init(inst, def);
|
|
1952
1984
|
inst._zod.pattern = _undefined$2;
|
|
1953
1985
|
inst._zod.values = new Set([undefined]);
|
|
1986
|
+
inst._zod.optin = "optional";
|
|
1987
|
+
inst._zod.optout = "optional";
|
|
1954
1988
|
inst._zod.parse = (payload, _ctx) => {
|
|
1955
|
-
const
|
|
1989
|
+
const input = payload.value;
|
|
1956
1990
|
if (typeof input === "undefined") return payload;
|
|
1957
1991
|
payload.issues.push({
|
|
1958
1992
|
expected: "undefined",
|
|
@@ -1968,7 +2002,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
1968
2002
|
inst._zod.pattern = _null$2;
|
|
1969
2003
|
inst._zod.values = new Set([null]);
|
|
1970
2004
|
inst._zod.parse = (payload, _ctx) => {
|
|
1971
|
-
const
|
|
2005
|
+
const input = payload.value;
|
|
1972
2006
|
if (input === null) return payload;
|
|
1973
2007
|
payload.issues.push({
|
|
1974
2008
|
expected: "null",
|
|
@@ -2002,7 +2036,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2002
2036
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
2003
2037
|
$ZodType.init(inst, def);
|
|
2004
2038
|
inst._zod.parse = (payload, _ctx) => {
|
|
2005
|
-
const
|
|
2039
|
+
const input = payload.value;
|
|
2006
2040
|
if (typeof input === "undefined") return payload;
|
|
2007
2041
|
payload.issues.push({
|
|
2008
2042
|
expected: "void",
|
|
@@ -2133,19 +2167,20 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2133
2167
|
"payload",
|
|
2134
2168
|
"ctx"
|
|
2135
2169
|
]);
|
|
2136
|
-
const
|
|
2170
|
+
const normalized = _normalized.value;
|
|
2137
2171
|
const parseStr = (key) => {
|
|
2138
2172
|
const k = esc(key);
|
|
2139
2173
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2140
2174
|
};
|
|
2141
2175
|
doc.write(`const input = payload.value;`);
|
|
2142
2176
|
const ids = Object.create(null);
|
|
2143
|
-
|
|
2144
|
-
|
|
2177
|
+
let counter = 0;
|
|
2178
|
+
for (const key of normalized.keys) {
|
|
2179
|
+
ids[key] = `key_${counter++}`;
|
|
2145
2180
|
}
|
|
2146
2181
|
doc.write(`const newResult = {}`);
|
|
2147
|
-
for (const key of keys) {
|
|
2148
|
-
if (optionalKeys
|
|
2182
|
+
for (const key of normalized.keys) {
|
|
2183
|
+
if (normalized.optionalKeys.has(key)) {
|
|
2149
2184
|
const id = ids[key];
|
|
2150
2185
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2151
2186
|
const k = esc(key);
|
|
@@ -2190,7 +2225,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2190
2225
|
const jit = !globalConfig.jitless;
|
|
2191
2226
|
const allowsEval$1 = allowsEval;
|
|
2192
2227
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2193
|
-
const
|
|
2228
|
+
const catchall = def.catchall;
|
|
2194
2229
|
let value;
|
|
2195
2230
|
inst._zod.parse = (payload, ctx) => {
|
|
2196
2231
|
value ?? (value = _normalized.value);
|
|
@@ -2220,12 +2255,10 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2220
2255
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2221
2256
|
if (r instanceof Promise) {
|
|
2222
2257
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2258
|
+
} else if (isOptional) {
|
|
2259
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2223
2260
|
} else {
|
|
2224
|
-
|
|
2225
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2226
|
-
} else {
|
|
2227
|
-
handleObjectResult(r, payload, key);
|
|
2228
|
-
}
|
|
2261
|
+
handleObjectResult(r, payload, key);
|
|
2229
2262
|
}
|
|
2230
2263
|
}
|
|
2231
2264
|
}
|
|
@@ -2283,6 +2316,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2283
2316
|
}
|
|
2284
2317
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2285
2318
|
$ZodType.init(inst, def);
|
|
2319
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2320
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2286
2321
|
defineLazy(inst._zod, "values", () => {
|
|
2287
2322
|
if (def.options.every((o) => o._zod.values)) {
|
|
2288
2323
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2339,7 +2374,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2339
2374
|
const opts = def.options;
|
|
2340
2375
|
const map$1 = new Map();
|
|
2341
2376
|
for (const o of opts) {
|
|
2342
|
-
const values = o._zod.propValues[def.discriminator];
|
|
2377
|
+
const values = o._zod.propValues?.[def.discriminator];
|
|
2343
2378
|
if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
2344
2379
|
for (const v of values) {
|
|
2345
2380
|
if (map$1.has(v)) {
|
|
@@ -2382,7 +2417,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2382
2417
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2383
2418
|
$ZodType.init(inst, def);
|
|
2384
2419
|
inst._zod.parse = (payload, ctx) => {
|
|
2385
|
-
const
|
|
2420
|
+
const input = payload.value;
|
|
2386
2421
|
const left = def.left._zod.run({
|
|
2387
2422
|
value: input,
|
|
2388
2423
|
issues: []
|
|
@@ -2839,6 +2874,9 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2839
2874
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
2840
2875
|
});
|
|
2841
2876
|
inst._zod.parse = (payload, ctx) => {
|
|
2877
|
+
if (def.innerType._zod.optin === "optional") {
|
|
2878
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2879
|
+
}
|
|
2842
2880
|
if (payload.value === undefined) {
|
|
2843
2881
|
return payload;
|
|
2844
2882
|
}
|
|
@@ -2938,7 +2976,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
2938
2976
|
});
|
|
2939
2977
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
2940
2978
|
$ZodType.init(inst, def);
|
|
2941
|
-
|
|
2979
|
+
inst._zod.optin = "optional";
|
|
2942
2980
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2943
2981
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2944
2982
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2989,6 +3027,7 @@ const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
2989
3027
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2990
3028
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
2991
3029
|
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
3030
|
+
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
2992
3031
|
inst._zod.parse = (payload, ctx) => {
|
|
2993
3032
|
const left = def.in._zod.run(payload, ctx);
|
|
2994
3033
|
if (left instanceof Promise) {
|
|
@@ -3009,6 +3048,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3009
3048
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3010
3049
|
$ZodType.init(inst, def);
|
|
3011
3050
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3051
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3012
3052
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3013
3053
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3014
3054
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3059,7 +3099,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3059
3099
|
input: payload.value,
|
|
3060
3100
|
inst,
|
|
3061
3101
|
code: "invalid_format",
|
|
3062
|
-
format: "template_literal",
|
|
3102
|
+
format: def.format ?? "template_literal",
|
|
3063
3103
|
pattern: inst._zod.pattern.source
|
|
3064
3104
|
});
|
|
3065
3105
|
return payload;
|
|
@@ -3119,8 +3159,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3119
3159
|
}
|
|
3120
3160
|
|
|
3121
3161
|
//#endregion
|
|
3122
|
-
//#region ../../node_modules/zod/
|
|
3123
|
-
const error$
|
|
3162
|
+
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3163
|
+
const error$38 = () => {
|
|
3124
3164
|
const Sizable = {
|
|
3125
3165
|
string: {
|
|
3126
3166
|
unit: "حرف",
|
|
@@ -3142,7 +3182,7 @@ const error$36 = () => {
|
|
|
3142
3182
|
function getSizing(origin) {
|
|
3143
3183
|
return Sizable[origin] ?? null;
|
|
3144
3184
|
}
|
|
3145
|
-
const parsedType$
|
|
3185
|
+
const parsedType$3 = (data) => {
|
|
3146
3186
|
const t = typeof data;
|
|
3147
3187
|
switch (t) {
|
|
3148
3188
|
case "number": {
|
|
@@ -3194,7 +3234,7 @@ const error$36 = () => {
|
|
|
3194
3234
|
};
|
|
3195
3235
|
return (issue$1) => {
|
|
3196
3236
|
switch (issue$1.code) {
|
|
3197
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3237
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
|
|
3198
3238
|
case "invalid_value":
|
|
3199
3239
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3200
3240
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3230,12 +3270,12 @@ const error$36 = () => {
|
|
|
3230
3270
|
};
|
|
3231
3271
|
};
|
|
3232
3272
|
function ar_default() {
|
|
3233
|
-
return { localeError: error$
|
|
3273
|
+
return { localeError: error$38() };
|
|
3234
3274
|
}
|
|
3235
3275
|
|
|
3236
3276
|
//#endregion
|
|
3237
|
-
//#region ../../node_modules/zod/
|
|
3238
|
-
const error$
|
|
3277
|
+
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3278
|
+
const error$37 = () => {
|
|
3239
3279
|
const Sizable = {
|
|
3240
3280
|
string: {
|
|
3241
3281
|
unit: "simvol",
|
|
@@ -3257,7 +3297,7 @@ const error$35 = () => {
|
|
|
3257
3297
|
function getSizing(origin) {
|
|
3258
3298
|
return Sizable[origin] ?? null;
|
|
3259
3299
|
}
|
|
3260
|
-
const parsedType$
|
|
3300
|
+
const parsedType$3 = (data) => {
|
|
3261
3301
|
const t = typeof data;
|
|
3262
3302
|
switch (t) {
|
|
3263
3303
|
case "number": {
|
|
@@ -3309,7 +3349,7 @@ const error$35 = () => {
|
|
|
3309
3349
|
};
|
|
3310
3350
|
return (issue$1) => {
|
|
3311
3351
|
switch (issue$1.code) {
|
|
3312
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3352
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
|
|
3313
3353
|
case "invalid_value":
|
|
3314
3354
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3315
3355
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3343,11 +3383,11 @@ const error$35 = () => {
|
|
|
3343
3383
|
};
|
|
3344
3384
|
};
|
|
3345
3385
|
function az_default() {
|
|
3346
|
-
return { localeError: error$
|
|
3386
|
+
return { localeError: error$37() };
|
|
3347
3387
|
}
|
|
3348
3388
|
|
|
3349
3389
|
//#endregion
|
|
3350
|
-
//#region ../../node_modules/zod/
|
|
3390
|
+
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3351
3391
|
function getBelarusianPlural(count, one, few, many) {
|
|
3352
3392
|
const absCount = Math.abs(count);
|
|
3353
3393
|
const lastDigit = absCount % 10;
|
|
@@ -3363,7 +3403,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3363
3403
|
}
|
|
3364
3404
|
return many;
|
|
3365
3405
|
}
|
|
3366
|
-
const error$
|
|
3406
|
+
const error$36 = () => {
|
|
3367
3407
|
const Sizable = {
|
|
3368
3408
|
string: {
|
|
3369
3409
|
unit: {
|
|
@@ -3401,7 +3441,7 @@ const error$34 = () => {
|
|
|
3401
3441
|
function getSizing(origin) {
|
|
3402
3442
|
return Sizable[origin] ?? null;
|
|
3403
3443
|
}
|
|
3404
|
-
const parsedType$
|
|
3444
|
+
const parsedType$3 = (data) => {
|
|
3405
3445
|
const t = typeof data;
|
|
3406
3446
|
switch (t) {
|
|
3407
3447
|
case "number": {
|
|
@@ -3453,7 +3493,7 @@ const error$34 = () => {
|
|
|
3453
3493
|
};
|
|
3454
3494
|
return (issue$1) => {
|
|
3455
3495
|
switch (issue$1.code) {
|
|
3456
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3496
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
|
|
3457
3497
|
case "invalid_value":
|
|
3458
3498
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3459
3499
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3495,12 +3535,12 @@ const error$34 = () => {
|
|
|
3495
3535
|
};
|
|
3496
3536
|
};
|
|
3497
3537
|
function be_default() {
|
|
3498
|
-
return { localeError: error$
|
|
3538
|
+
return { localeError: error$36() };
|
|
3499
3539
|
}
|
|
3500
3540
|
|
|
3501
3541
|
//#endregion
|
|
3502
|
-
//#region ../../node_modules/zod/
|
|
3503
|
-
const error$
|
|
3542
|
+
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3543
|
+
const error$35 = () => {
|
|
3504
3544
|
const Sizable = {
|
|
3505
3545
|
string: {
|
|
3506
3546
|
unit: "caràcters",
|
|
@@ -3522,7 +3562,7 @@ const error$33 = () => {
|
|
|
3522
3562
|
function getSizing(origin) {
|
|
3523
3563
|
return Sizable[origin] ?? null;
|
|
3524
3564
|
}
|
|
3525
|
-
const parsedType$
|
|
3565
|
+
const parsedType$3 = (data) => {
|
|
3526
3566
|
const t = typeof data;
|
|
3527
3567
|
switch (t) {
|
|
3528
3568
|
case "number": {
|
|
@@ -3574,7 +3614,7 @@ const error$33 = () => {
|
|
|
3574
3614
|
};
|
|
3575
3615
|
return (issue$1) => {
|
|
3576
3616
|
switch (issue$1.code) {
|
|
3577
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
3617
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
|
|
3578
3618
|
case "invalid_value":
|
|
3579
3619
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3580
3620
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -3612,12 +3652,12 @@ const error$33 = () => {
|
|
|
3612
3652
|
};
|
|
3613
3653
|
};
|
|
3614
3654
|
function ca_default() {
|
|
3615
|
-
return { localeError: error$
|
|
3655
|
+
return { localeError: error$35() };
|
|
3616
3656
|
}
|
|
3617
3657
|
|
|
3618
3658
|
//#endregion
|
|
3619
|
-
//#region ../../node_modules/zod/
|
|
3620
|
-
const error$
|
|
3659
|
+
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
3660
|
+
const error$34 = () => {
|
|
3621
3661
|
const Sizable = {
|
|
3622
3662
|
string: {
|
|
3623
3663
|
unit: "znaků",
|
|
@@ -3639,7 +3679,7 @@ const error$32 = () => {
|
|
|
3639
3679
|
function getSizing(origin) {
|
|
3640
3680
|
return Sizable[origin] ?? null;
|
|
3641
3681
|
}
|
|
3642
|
-
const parsedType$
|
|
3682
|
+
const parsedType$3 = (data) => {
|
|
3643
3683
|
const t = typeof data;
|
|
3644
3684
|
switch (t) {
|
|
3645
3685
|
case "number": {
|
|
@@ -3709,7 +3749,7 @@ const error$32 = () => {
|
|
|
3709
3749
|
};
|
|
3710
3750
|
return (issue$1) => {
|
|
3711
3751
|
switch (issue$1.code) {
|
|
3712
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
3752
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
|
|
3713
3753
|
case "invalid_value":
|
|
3714
3754
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3715
3755
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3747,12 +3787,12 @@ const error$32 = () => {
|
|
|
3747
3787
|
};
|
|
3748
3788
|
};
|
|
3749
3789
|
function cs_default() {
|
|
3750
|
-
return { localeError: error$
|
|
3790
|
+
return { localeError: error$34() };
|
|
3751
3791
|
}
|
|
3752
3792
|
|
|
3753
3793
|
//#endregion
|
|
3754
|
-
//#region ../../node_modules/zod/
|
|
3755
|
-
const error$
|
|
3794
|
+
//#region ../../node_modules/zod/v4/locales/de.js
|
|
3795
|
+
const error$33 = () => {
|
|
3756
3796
|
const Sizable = {
|
|
3757
3797
|
string: {
|
|
3758
3798
|
unit: "Zeichen",
|
|
@@ -3774,7 +3814,7 @@ const error$31 = () => {
|
|
|
3774
3814
|
function getSizing(origin) {
|
|
3775
3815
|
return Sizable[origin] ?? null;
|
|
3776
3816
|
}
|
|
3777
|
-
const parsedType$
|
|
3817
|
+
const parsedType$3 = (data) => {
|
|
3778
3818
|
const t = typeof data;
|
|
3779
3819
|
switch (t) {
|
|
3780
3820
|
case "number": {
|
|
@@ -3826,7 +3866,7 @@ const error$31 = () => {
|
|
|
3826
3866
|
};
|
|
3827
3867
|
return (issue$1) => {
|
|
3828
3868
|
switch (issue$1.code) {
|
|
3829
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
3869
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
|
|
3830
3870
|
case "invalid_value":
|
|
3831
3871
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3832
3872
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3862,12 +3902,12 @@ const error$31 = () => {
|
|
|
3862
3902
|
};
|
|
3863
3903
|
};
|
|
3864
3904
|
function de_default() {
|
|
3865
|
-
return { localeError: error$
|
|
3905
|
+
return { localeError: error$33() };
|
|
3866
3906
|
}
|
|
3867
3907
|
|
|
3868
3908
|
//#endregion
|
|
3869
|
-
//#region ../../node_modules/zod/
|
|
3870
|
-
const parsedType$
|
|
3909
|
+
//#region ../../node_modules/zod/v4/locales/en.js
|
|
3910
|
+
const parsedType$2 = (data) => {
|
|
3871
3911
|
const t = typeof data;
|
|
3872
3912
|
switch (t) {
|
|
3873
3913
|
case "number": {
|
|
@@ -3887,7 +3927,7 @@ const parsedType$1 = (data) => {
|
|
|
3887
3927
|
}
|
|
3888
3928
|
return t;
|
|
3889
3929
|
};
|
|
3890
|
-
const error$
|
|
3930
|
+
const error$32 = () => {
|
|
3891
3931
|
const Sizable = {
|
|
3892
3932
|
string: {
|
|
3893
3933
|
unit: "characters",
|
|
@@ -3941,7 +3981,7 @@ const error$30 = () => {
|
|
|
3941
3981
|
};
|
|
3942
3982
|
return (issue$1) => {
|
|
3943
3983
|
switch (issue$1.code) {
|
|
3944
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
3984
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
|
|
3945
3985
|
case "invalid_value":
|
|
3946
3986
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3947
3987
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3979,12 +4019,127 @@ const error$30 = () => {
|
|
|
3979
4019
|
};
|
|
3980
4020
|
};
|
|
3981
4021
|
function en_default() {
|
|
3982
|
-
return { localeError: error$
|
|
4022
|
+
return { localeError: error$32() };
|
|
3983
4023
|
}
|
|
3984
4024
|
|
|
3985
4025
|
//#endregion
|
|
3986
|
-
//#region ../../node_modules/zod/
|
|
3987
|
-
const
|
|
4026
|
+
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4027
|
+
const parsedType$1 = (data) => {
|
|
4028
|
+
const t = typeof data;
|
|
4029
|
+
switch (t) {
|
|
4030
|
+
case "number": {
|
|
4031
|
+
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4032
|
+
}
|
|
4033
|
+
case "object": {
|
|
4034
|
+
if (Array.isArray(data)) {
|
|
4035
|
+
return "tabelo";
|
|
4036
|
+
}
|
|
4037
|
+
if (data === null) {
|
|
4038
|
+
return "senvalora";
|
|
4039
|
+
}
|
|
4040
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4041
|
+
return data.constructor.name;
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
4045
|
+
return t;
|
|
4046
|
+
};
|
|
4047
|
+
const error$31 = () => {
|
|
4048
|
+
const Sizable = {
|
|
4049
|
+
string: {
|
|
4050
|
+
unit: "karaktrojn",
|
|
4051
|
+
verb: "havi"
|
|
4052
|
+
},
|
|
4053
|
+
file: {
|
|
4054
|
+
unit: "bajtojn",
|
|
4055
|
+
verb: "havi"
|
|
4056
|
+
},
|
|
4057
|
+
array: {
|
|
4058
|
+
unit: "elementojn",
|
|
4059
|
+
verb: "havi"
|
|
4060
|
+
},
|
|
4061
|
+
set: {
|
|
4062
|
+
unit: "elementojn",
|
|
4063
|
+
verb: "havi"
|
|
4064
|
+
}
|
|
4065
|
+
};
|
|
4066
|
+
function getSizing(origin) {
|
|
4067
|
+
return Sizable[origin] ?? null;
|
|
4068
|
+
}
|
|
4069
|
+
const Nouns = {
|
|
4070
|
+
regex: "enigo",
|
|
4071
|
+
email: "retadreso",
|
|
4072
|
+
url: "URL",
|
|
4073
|
+
emoji: "emoĝio",
|
|
4074
|
+
uuid: "UUID",
|
|
4075
|
+
uuidv4: "UUIDv4",
|
|
4076
|
+
uuidv6: "UUIDv6",
|
|
4077
|
+
nanoid: "nanoid",
|
|
4078
|
+
guid: "GUID",
|
|
4079
|
+
cuid: "cuid",
|
|
4080
|
+
cuid2: "cuid2",
|
|
4081
|
+
ulid: "ULID",
|
|
4082
|
+
xid: "XID",
|
|
4083
|
+
ksuid: "KSUID",
|
|
4084
|
+
datetime: "ISO-datotempo",
|
|
4085
|
+
date: "ISO-dato",
|
|
4086
|
+
time: "ISO-tempo",
|
|
4087
|
+
duration: "ISO-daŭro",
|
|
4088
|
+
ipv4: "IPv4-adreso",
|
|
4089
|
+
ipv6: "IPv6-adreso",
|
|
4090
|
+
cidrv4: "IPv4-rango",
|
|
4091
|
+
cidrv6: "IPv6-rango",
|
|
4092
|
+
base64: "64-ume kodita karaktraro",
|
|
4093
|
+
base64url: "URL-64-ume kodita karaktraro",
|
|
4094
|
+
json_string: "JSON-karaktraro",
|
|
4095
|
+
e164: "E.164-nombro",
|
|
4096
|
+
jwt: "JWT",
|
|
4097
|
+
template_literal: "enigo"
|
|
4098
|
+
};
|
|
4099
|
+
return (issue$1) => {
|
|
4100
|
+
switch (issue$1.code) {
|
|
4101
|
+
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4102
|
+
case "invalid_value":
|
|
4103
|
+
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4104
|
+
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4105
|
+
case "too_big": {
|
|
4106
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4107
|
+
const sizing = getSizing(issue$1.origin);
|
|
4108
|
+
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4109
|
+
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4110
|
+
}
|
|
4111
|
+
case "too_small": {
|
|
4112
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4113
|
+
const sizing = getSizing(issue$1.origin);
|
|
4114
|
+
if (sizing) {
|
|
4115
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4116
|
+
}
|
|
4117
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4118
|
+
}
|
|
4119
|
+
case "invalid_format": {
|
|
4120
|
+
const _issue = issue$1;
|
|
4121
|
+
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4122
|
+
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4123
|
+
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4124
|
+
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4125
|
+
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4126
|
+
}
|
|
4127
|
+
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4128
|
+
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4129
|
+
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4130
|
+
case "invalid_union": return "Nevalida enigo";
|
|
4131
|
+
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4132
|
+
default: return `Nevalida enigo`;
|
|
4133
|
+
}
|
|
4134
|
+
};
|
|
4135
|
+
};
|
|
4136
|
+
function eo_default() {
|
|
4137
|
+
return { localeError: error$31() };
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
//#endregion
|
|
4141
|
+
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4142
|
+
const error$30 = () => {
|
|
3988
4143
|
const Sizable = {
|
|
3989
4144
|
string: {
|
|
3990
4145
|
unit: "caracteres",
|
|
@@ -4006,7 +4161,7 @@ const error$29 = () => {
|
|
|
4006
4161
|
function getSizing(origin) {
|
|
4007
4162
|
return Sizable[origin] ?? null;
|
|
4008
4163
|
}
|
|
4009
|
-
const parsedType$
|
|
4164
|
+
const parsedType$3 = (data) => {
|
|
4010
4165
|
const t = typeof data;
|
|
4011
4166
|
switch (t) {
|
|
4012
4167
|
case "number": {
|
|
@@ -4058,7 +4213,7 @@ const error$29 = () => {
|
|
|
4058
4213
|
};
|
|
4059
4214
|
return (issue$1) => {
|
|
4060
4215
|
switch (issue$1.code) {
|
|
4061
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4216
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
|
|
4062
4217
|
case "invalid_value":
|
|
4063
4218
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4064
4219
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4094,12 +4249,12 @@ const error$29 = () => {
|
|
|
4094
4249
|
};
|
|
4095
4250
|
};
|
|
4096
4251
|
function es_default() {
|
|
4097
|
-
return { localeError: error$
|
|
4252
|
+
return { localeError: error$30() };
|
|
4098
4253
|
}
|
|
4099
4254
|
|
|
4100
4255
|
//#endregion
|
|
4101
|
-
//#region ../../node_modules/zod/
|
|
4102
|
-
const error$
|
|
4256
|
+
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4257
|
+
const error$29 = () => {
|
|
4103
4258
|
const Sizable = {
|
|
4104
4259
|
string: {
|
|
4105
4260
|
unit: "کاراکتر",
|
|
@@ -4121,7 +4276,7 @@ const error$28 = () => {
|
|
|
4121
4276
|
function getSizing(origin) {
|
|
4122
4277
|
return Sizable[origin] ?? null;
|
|
4123
4278
|
}
|
|
4124
|
-
const parsedType$
|
|
4279
|
+
const parsedType$3 = (data) => {
|
|
4125
4280
|
const t = typeof data;
|
|
4126
4281
|
switch (t) {
|
|
4127
4282
|
case "number": {
|
|
@@ -4173,7 +4328,7 @@ const error$28 = () => {
|
|
|
4173
4328
|
};
|
|
4174
4329
|
return (issue$1) => {
|
|
4175
4330
|
switch (issue$1.code) {
|
|
4176
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4331
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$3(issue$1.input)} دریافت شد`;
|
|
4177
4332
|
case "invalid_value":
|
|
4178
4333
|
if (issue$1.values.length === 1) {
|
|
4179
4334
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4221,12 +4376,12 @@ const error$28 = () => {
|
|
|
4221
4376
|
};
|
|
4222
4377
|
};
|
|
4223
4378
|
function fa_default() {
|
|
4224
|
-
return { localeError: error$
|
|
4379
|
+
return { localeError: error$29() };
|
|
4225
4380
|
}
|
|
4226
4381
|
|
|
4227
4382
|
//#endregion
|
|
4228
|
-
//#region ../../node_modules/zod/
|
|
4229
|
-
const error$
|
|
4383
|
+
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4384
|
+
const error$28 = () => {
|
|
4230
4385
|
const Sizable = {
|
|
4231
4386
|
string: {
|
|
4232
4387
|
unit: "merkkiä",
|
|
@@ -4264,7 +4419,7 @@ const error$27 = () => {
|
|
|
4264
4419
|
function getSizing(origin) {
|
|
4265
4420
|
return Sizable[origin] ?? null;
|
|
4266
4421
|
}
|
|
4267
|
-
const parsedType$
|
|
4422
|
+
const parsedType$3 = (data) => {
|
|
4268
4423
|
const t = typeof data;
|
|
4269
4424
|
switch (t) {
|
|
4270
4425
|
case "number": {
|
|
@@ -4316,7 +4471,7 @@ const error$27 = () => {
|
|
|
4316
4471
|
};
|
|
4317
4472
|
return (issue$1) => {
|
|
4318
4473
|
switch (issue$1.code) {
|
|
4319
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4474
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
|
|
4320
4475
|
case "invalid_value":
|
|
4321
4476
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4322
4477
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4356,12 +4511,12 @@ const error$27 = () => {
|
|
|
4356
4511
|
};
|
|
4357
4512
|
};
|
|
4358
4513
|
function fi_default() {
|
|
4359
|
-
return { localeError: error$
|
|
4514
|
+
return { localeError: error$28() };
|
|
4360
4515
|
}
|
|
4361
4516
|
|
|
4362
4517
|
//#endregion
|
|
4363
|
-
//#region ../../node_modules/zod/
|
|
4364
|
-
const error$
|
|
4518
|
+
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4519
|
+
const error$27 = () => {
|
|
4365
4520
|
const Sizable = {
|
|
4366
4521
|
string: {
|
|
4367
4522
|
unit: "caractères",
|
|
@@ -4383,7 +4538,7 @@ const error$26 = () => {
|
|
|
4383
4538
|
function getSizing(origin) {
|
|
4384
4539
|
return Sizable[origin] ?? null;
|
|
4385
4540
|
}
|
|
4386
|
-
const parsedType$
|
|
4541
|
+
const parsedType$3 = (data) => {
|
|
4387
4542
|
const t = typeof data;
|
|
4388
4543
|
switch (t) {
|
|
4389
4544
|
case "number": {
|
|
@@ -4435,7 +4590,7 @@ const error$26 = () => {
|
|
|
4435
4590
|
};
|
|
4436
4591
|
return (issue$1) => {
|
|
4437
4592
|
switch (issue$1.code) {
|
|
4438
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
4593
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
|
|
4439
4594
|
case "invalid_value":
|
|
4440
4595
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4441
4596
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4471,12 +4626,12 @@ const error$26 = () => {
|
|
|
4471
4626
|
};
|
|
4472
4627
|
};
|
|
4473
4628
|
function fr_default() {
|
|
4474
|
-
return { localeError: error$
|
|
4629
|
+
return { localeError: error$27() };
|
|
4475
4630
|
}
|
|
4476
4631
|
|
|
4477
4632
|
//#endregion
|
|
4478
|
-
//#region ../../node_modules/zod/
|
|
4479
|
-
const error$
|
|
4633
|
+
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
4634
|
+
const error$26 = () => {
|
|
4480
4635
|
const Sizable = {
|
|
4481
4636
|
string: {
|
|
4482
4637
|
unit: "caractères",
|
|
@@ -4498,7 +4653,7 @@ const error$25 = () => {
|
|
|
4498
4653
|
function getSizing(origin) {
|
|
4499
4654
|
return Sizable[origin] ?? null;
|
|
4500
4655
|
}
|
|
4501
|
-
const parsedType$
|
|
4656
|
+
const parsedType$3 = (data) => {
|
|
4502
4657
|
const t = typeof data;
|
|
4503
4658
|
switch (t) {
|
|
4504
4659
|
case "number": {
|
|
@@ -4550,7 +4705,7 @@ const error$25 = () => {
|
|
|
4550
4705
|
};
|
|
4551
4706
|
return (issue$1) => {
|
|
4552
4707
|
switch (issue$1.code) {
|
|
4553
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
4708
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
|
|
4554
4709
|
case "invalid_value":
|
|
4555
4710
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4556
4711
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4588,12 +4743,12 @@ const error$25 = () => {
|
|
|
4588
4743
|
};
|
|
4589
4744
|
};
|
|
4590
4745
|
function fr_CA_default() {
|
|
4591
|
-
return { localeError: error$
|
|
4746
|
+
return { localeError: error$26() };
|
|
4592
4747
|
}
|
|
4593
4748
|
|
|
4594
4749
|
//#endregion
|
|
4595
|
-
//#region ../../node_modules/zod/
|
|
4596
|
-
const error$
|
|
4750
|
+
//#region ../../node_modules/zod/v4/locales/he.js
|
|
4751
|
+
const error$25 = () => {
|
|
4597
4752
|
const Sizable = {
|
|
4598
4753
|
string: {
|
|
4599
4754
|
unit: "אותיות",
|
|
@@ -4615,7 +4770,7 @@ const error$24 = () => {
|
|
|
4615
4770
|
function getSizing(origin) {
|
|
4616
4771
|
return Sizable[origin] ?? null;
|
|
4617
4772
|
}
|
|
4618
|
-
const parsedType$
|
|
4773
|
+
const parsedType$3 = (data) => {
|
|
4619
4774
|
const t = typeof data;
|
|
4620
4775
|
switch (t) {
|
|
4621
4776
|
case "number": {
|
|
@@ -4667,7 +4822,7 @@ const error$24 = () => {
|
|
|
4667
4822
|
};
|
|
4668
4823
|
return (issue$1) => {
|
|
4669
4824
|
switch (issue$1.code) {
|
|
4670
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
4825
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
|
|
4671
4826
|
case "invalid_value":
|
|
4672
4827
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4673
4828
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4703,12 +4858,12 @@ const error$24 = () => {
|
|
|
4703
4858
|
};
|
|
4704
4859
|
};
|
|
4705
4860
|
function he_default() {
|
|
4706
|
-
return { localeError: error$
|
|
4861
|
+
return { localeError: error$25() };
|
|
4707
4862
|
}
|
|
4708
4863
|
|
|
4709
4864
|
//#endregion
|
|
4710
|
-
//#region ../../node_modules/zod/
|
|
4711
|
-
const error$
|
|
4865
|
+
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
4866
|
+
const error$24 = () => {
|
|
4712
4867
|
const Sizable = {
|
|
4713
4868
|
string: {
|
|
4714
4869
|
unit: "karakter",
|
|
@@ -4730,7 +4885,7 @@ const error$23 = () => {
|
|
|
4730
4885
|
function getSizing(origin) {
|
|
4731
4886
|
return Sizable[origin] ?? null;
|
|
4732
4887
|
}
|
|
4733
|
-
const parsedType$
|
|
4888
|
+
const parsedType$3 = (data) => {
|
|
4734
4889
|
const t = typeof data;
|
|
4735
4890
|
switch (t) {
|
|
4736
4891
|
case "number": {
|
|
@@ -4782,7 +4937,7 @@ const error$23 = () => {
|
|
|
4782
4937
|
};
|
|
4783
4938
|
return (issue$1) => {
|
|
4784
4939
|
switch (issue$1.code) {
|
|
4785
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
4940
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
|
|
4786
4941
|
case "invalid_value":
|
|
4787
4942
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4788
4943
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4818,12 +4973,12 @@ const error$23 = () => {
|
|
|
4818
4973
|
};
|
|
4819
4974
|
};
|
|
4820
4975
|
function hu_default() {
|
|
4821
|
-
return { localeError: error$
|
|
4976
|
+
return { localeError: error$24() };
|
|
4822
4977
|
}
|
|
4823
4978
|
|
|
4824
4979
|
//#endregion
|
|
4825
|
-
//#region ../../node_modules/zod/
|
|
4826
|
-
const error$
|
|
4980
|
+
//#region ../../node_modules/zod/v4/locales/id.js
|
|
4981
|
+
const error$23 = () => {
|
|
4827
4982
|
const Sizable = {
|
|
4828
4983
|
string: {
|
|
4829
4984
|
unit: "karakter",
|
|
@@ -4845,7 +5000,7 @@ const error$22 = () => {
|
|
|
4845
5000
|
function getSizing(origin) {
|
|
4846
5001
|
return Sizable[origin] ?? null;
|
|
4847
5002
|
}
|
|
4848
|
-
const parsedType$
|
|
5003
|
+
const parsedType$3 = (data) => {
|
|
4849
5004
|
const t = typeof data;
|
|
4850
5005
|
switch (t) {
|
|
4851
5006
|
case "number": {
|
|
@@ -4897,7 +5052,7 @@ const error$22 = () => {
|
|
|
4897
5052
|
};
|
|
4898
5053
|
return (issue$1) => {
|
|
4899
5054
|
switch (issue$1.code) {
|
|
4900
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5055
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
4901
5056
|
case "invalid_value":
|
|
4902
5057
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4903
5058
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4933,12 +5088,12 @@ const error$22 = () => {
|
|
|
4933
5088
|
};
|
|
4934
5089
|
};
|
|
4935
5090
|
function id_default() {
|
|
4936
|
-
return { localeError: error$
|
|
5091
|
+
return { localeError: error$23() };
|
|
4937
5092
|
}
|
|
4938
5093
|
|
|
4939
5094
|
//#endregion
|
|
4940
|
-
//#region ../../node_modules/zod/
|
|
4941
|
-
const error$
|
|
5095
|
+
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5096
|
+
const error$22 = () => {
|
|
4942
5097
|
const Sizable = {
|
|
4943
5098
|
string: {
|
|
4944
5099
|
unit: "caratteri",
|
|
@@ -4960,7 +5115,7 @@ const error$21 = () => {
|
|
|
4960
5115
|
function getSizing(origin) {
|
|
4961
5116
|
return Sizable[origin] ?? null;
|
|
4962
5117
|
}
|
|
4963
|
-
const parsedType$
|
|
5118
|
+
const parsedType$3 = (data) => {
|
|
4964
5119
|
const t = typeof data;
|
|
4965
5120
|
switch (t) {
|
|
4966
5121
|
case "number": {
|
|
@@ -5012,7 +5167,7 @@ const error$21 = () => {
|
|
|
5012
5167
|
};
|
|
5013
5168
|
return (issue$1) => {
|
|
5014
5169
|
switch (issue$1.code) {
|
|
5015
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5170
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
|
|
5016
5171
|
case "invalid_value":
|
|
5017
5172
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5018
5173
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5048,12 +5203,12 @@ const error$21 = () => {
|
|
|
5048
5203
|
};
|
|
5049
5204
|
};
|
|
5050
5205
|
function it_default() {
|
|
5051
|
-
return { localeError: error$
|
|
5206
|
+
return { localeError: error$22() };
|
|
5052
5207
|
}
|
|
5053
5208
|
|
|
5054
5209
|
//#endregion
|
|
5055
|
-
//#region ../../node_modules/zod/
|
|
5056
|
-
const error$
|
|
5210
|
+
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5211
|
+
const error$21 = () => {
|
|
5057
5212
|
const Sizable = {
|
|
5058
5213
|
string: {
|
|
5059
5214
|
unit: "文字",
|
|
@@ -5075,7 +5230,7 @@ const error$20 = () => {
|
|
|
5075
5230
|
function getSizing(origin) {
|
|
5076
5231
|
return Sizable[origin] ?? null;
|
|
5077
5232
|
}
|
|
5078
|
-
const parsedType$
|
|
5233
|
+
const parsedType$3 = (data) => {
|
|
5079
5234
|
const t = typeof data;
|
|
5080
5235
|
switch (t) {
|
|
5081
5236
|
case "number": {
|
|
@@ -5127,21 +5282,21 @@ const error$20 = () => {
|
|
|
5127
5282
|
};
|
|
5128
5283
|
return (issue$1) => {
|
|
5129
5284
|
switch (issue$1.code) {
|
|
5130
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5285
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
|
|
5131
5286
|
case "invalid_value":
|
|
5132
5287
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5133
5288
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5134
5289
|
case "too_big": {
|
|
5135
|
-
const adj = issue$1.inclusive ? "
|
|
5290
|
+
const adj = issue$1.inclusive ? "以下である" : "より小さい";
|
|
5136
5291
|
const sizing = getSizing(issue$1.origin);
|
|
5137
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5138
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5292
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
|
|
5293
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
|
|
5139
5294
|
}
|
|
5140
5295
|
case "too_small": {
|
|
5141
|
-
const adj = issue$1.inclusive ? "
|
|
5296
|
+
const adj = issue$1.inclusive ? "以上である" : "より大きい";
|
|
5142
5297
|
const sizing = getSizing(issue$1.origin);
|
|
5143
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5144
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5298
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
|
|
5299
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
|
|
5145
5300
|
}
|
|
5146
5301
|
case "invalid_format": {
|
|
5147
5302
|
const _issue = issue$1;
|
|
@@ -5161,12 +5316,12 @@ const error$20 = () => {
|
|
|
5161
5316
|
};
|
|
5162
5317
|
};
|
|
5163
5318
|
function ja_default() {
|
|
5164
|
-
return { localeError: error$
|
|
5319
|
+
return { localeError: error$21() };
|
|
5165
5320
|
}
|
|
5166
5321
|
|
|
5167
5322
|
//#endregion
|
|
5168
|
-
//#region ../../node_modules/zod/
|
|
5169
|
-
const error$
|
|
5323
|
+
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5324
|
+
const error$20 = () => {
|
|
5170
5325
|
const Sizable = {
|
|
5171
5326
|
string: {
|
|
5172
5327
|
unit: "តួអក្សរ",
|
|
@@ -5188,7 +5343,7 @@ const error$19 = () => {
|
|
|
5188
5343
|
function getSizing(origin) {
|
|
5189
5344
|
return Sizable[origin] ?? null;
|
|
5190
5345
|
}
|
|
5191
|
-
const parsedType$
|
|
5346
|
+
const parsedType$3 = (data) => {
|
|
5192
5347
|
const t = typeof data;
|
|
5193
5348
|
switch (t) {
|
|
5194
5349
|
case "number": {
|
|
@@ -5240,7 +5395,7 @@ const error$19 = () => {
|
|
|
5240
5395
|
};
|
|
5241
5396
|
return (issue$1) => {
|
|
5242
5397
|
switch (issue$1.code) {
|
|
5243
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5398
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
|
|
5244
5399
|
case "invalid_value":
|
|
5245
5400
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5246
5401
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5278,12 +5433,12 @@ const error$19 = () => {
|
|
|
5278
5433
|
};
|
|
5279
5434
|
};
|
|
5280
5435
|
function kh_default() {
|
|
5281
|
-
return { localeError: error$
|
|
5436
|
+
return { localeError: error$20() };
|
|
5282
5437
|
}
|
|
5283
5438
|
|
|
5284
5439
|
//#endregion
|
|
5285
|
-
//#region ../../node_modules/zod/
|
|
5286
|
-
const error$
|
|
5440
|
+
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5441
|
+
const error$19 = () => {
|
|
5287
5442
|
const Sizable = {
|
|
5288
5443
|
string: {
|
|
5289
5444
|
unit: "문자",
|
|
@@ -5305,7 +5460,7 @@ const error$18 = () => {
|
|
|
5305
5460
|
function getSizing(origin) {
|
|
5306
5461
|
return Sizable[origin] ?? null;
|
|
5307
5462
|
}
|
|
5308
|
-
const parsedType$
|
|
5463
|
+
const parsedType$3 = (data) => {
|
|
5309
5464
|
const t = typeof data;
|
|
5310
5465
|
switch (t) {
|
|
5311
5466
|
case "number": {
|
|
@@ -5357,7 +5512,7 @@ const error$18 = () => {
|
|
|
5357
5512
|
};
|
|
5358
5513
|
return (issue$1) => {
|
|
5359
5514
|
switch (issue$1.code) {
|
|
5360
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5515
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
|
|
5361
5516
|
case "invalid_value":
|
|
5362
5517
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5363
5518
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5399,12 +5554,12 @@ const error$18 = () => {
|
|
|
5399
5554
|
};
|
|
5400
5555
|
};
|
|
5401
5556
|
function ko_default() {
|
|
5402
|
-
return { localeError: error$
|
|
5557
|
+
return { localeError: error$19() };
|
|
5403
5558
|
}
|
|
5404
5559
|
|
|
5405
5560
|
//#endregion
|
|
5406
|
-
//#region ../../node_modules/zod/
|
|
5407
|
-
const error$
|
|
5561
|
+
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
5562
|
+
const error$18 = () => {
|
|
5408
5563
|
const Sizable = {
|
|
5409
5564
|
string: {
|
|
5410
5565
|
unit: "знаци",
|
|
@@ -5426,7 +5581,7 @@ const error$17 = () => {
|
|
|
5426
5581
|
function getSizing(origin) {
|
|
5427
5582
|
return Sizable[origin] ?? null;
|
|
5428
5583
|
}
|
|
5429
|
-
const parsedType$
|
|
5584
|
+
const parsedType$3 = (data) => {
|
|
5430
5585
|
const t = typeof data;
|
|
5431
5586
|
switch (t) {
|
|
5432
5587
|
case "number": {
|
|
@@ -5478,7 +5633,7 @@ const error$17 = () => {
|
|
|
5478
5633
|
};
|
|
5479
5634
|
return (issue$1) => {
|
|
5480
5635
|
switch (issue$1.code) {
|
|
5481
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
5636
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
|
|
5482
5637
|
case "invalid_value":
|
|
5483
5638
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5484
5639
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5516,12 +5671,12 @@ const error$17 = () => {
|
|
|
5516
5671
|
};
|
|
5517
5672
|
};
|
|
5518
5673
|
function mk_default() {
|
|
5519
|
-
return { localeError: error$
|
|
5674
|
+
return { localeError: error$18() };
|
|
5520
5675
|
}
|
|
5521
5676
|
|
|
5522
5677
|
//#endregion
|
|
5523
|
-
//#region ../../node_modules/zod/
|
|
5524
|
-
const error$
|
|
5678
|
+
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
5679
|
+
const error$17 = () => {
|
|
5525
5680
|
const Sizable = {
|
|
5526
5681
|
string: {
|
|
5527
5682
|
unit: "aksara",
|
|
@@ -5543,7 +5698,7 @@ const error$16 = () => {
|
|
|
5543
5698
|
function getSizing(origin) {
|
|
5544
5699
|
return Sizable[origin] ?? null;
|
|
5545
5700
|
}
|
|
5546
|
-
const parsedType$
|
|
5701
|
+
const parsedType$3 = (data) => {
|
|
5547
5702
|
const t = typeof data;
|
|
5548
5703
|
switch (t) {
|
|
5549
5704
|
case "number": {
|
|
@@ -5595,7 +5750,7 @@ const error$16 = () => {
|
|
|
5595
5750
|
};
|
|
5596
5751
|
return (issue$1) => {
|
|
5597
5752
|
switch (issue$1.code) {
|
|
5598
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
5753
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
5599
5754
|
case "invalid_value":
|
|
5600
5755
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5601
5756
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5631,12 +5786,12 @@ const error$16 = () => {
|
|
|
5631
5786
|
};
|
|
5632
5787
|
};
|
|
5633
5788
|
function ms_default() {
|
|
5634
|
-
return { localeError: error$
|
|
5789
|
+
return { localeError: error$17() };
|
|
5635
5790
|
}
|
|
5636
5791
|
|
|
5637
5792
|
//#endregion
|
|
5638
|
-
//#region ../../node_modules/zod/
|
|
5639
|
-
const error$
|
|
5793
|
+
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
5794
|
+
const error$16 = () => {
|
|
5640
5795
|
const Sizable = {
|
|
5641
5796
|
string: { unit: "tekens" },
|
|
5642
5797
|
file: { unit: "bytes" },
|
|
@@ -5646,7 +5801,7 @@ const error$15 = () => {
|
|
|
5646
5801
|
function getSizing(origin) {
|
|
5647
5802
|
return Sizable[origin] ?? null;
|
|
5648
5803
|
}
|
|
5649
|
-
const parsedType$
|
|
5804
|
+
const parsedType$3 = (data) => {
|
|
5650
5805
|
const t = typeof data;
|
|
5651
5806
|
switch (t) {
|
|
5652
5807
|
case "number": {
|
|
@@ -5698,7 +5853,7 @@ const error$15 = () => {
|
|
|
5698
5853
|
};
|
|
5699
5854
|
return (issue$1) => {
|
|
5700
5855
|
switch (issue$1.code) {
|
|
5701
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
5856
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
|
|
5702
5857
|
case "invalid_value":
|
|
5703
5858
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5704
5859
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5736,12 +5891,12 @@ const error$15 = () => {
|
|
|
5736
5891
|
};
|
|
5737
5892
|
};
|
|
5738
5893
|
function nl_default() {
|
|
5739
|
-
return { localeError: error$
|
|
5894
|
+
return { localeError: error$16() };
|
|
5740
5895
|
}
|
|
5741
5896
|
|
|
5742
5897
|
//#endregion
|
|
5743
|
-
//#region ../../node_modules/zod/
|
|
5744
|
-
const error$
|
|
5898
|
+
//#region ../../node_modules/zod/v4/locales/no.js
|
|
5899
|
+
const error$15 = () => {
|
|
5745
5900
|
const Sizable = {
|
|
5746
5901
|
string: {
|
|
5747
5902
|
unit: "tegn",
|
|
@@ -5763,7 +5918,7 @@ const error$14 = () => {
|
|
|
5763
5918
|
function getSizing(origin) {
|
|
5764
5919
|
return Sizable[origin] ?? null;
|
|
5765
5920
|
}
|
|
5766
|
-
const parsedType$
|
|
5921
|
+
const parsedType$3 = (data) => {
|
|
5767
5922
|
const t = typeof data;
|
|
5768
5923
|
switch (t) {
|
|
5769
5924
|
case "number": {
|
|
@@ -5815,7 +5970,7 @@ const error$14 = () => {
|
|
|
5815
5970
|
};
|
|
5816
5971
|
return (issue$1) => {
|
|
5817
5972
|
switch (issue$1.code) {
|
|
5818
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
5973
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
|
|
5819
5974
|
case "invalid_value":
|
|
5820
5975
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5821
5976
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5851,12 +6006,12 @@ const error$14 = () => {
|
|
|
5851
6006
|
};
|
|
5852
6007
|
};
|
|
5853
6008
|
function no_default() {
|
|
5854
|
-
return { localeError: error$
|
|
6009
|
+
return { localeError: error$15() };
|
|
5855
6010
|
}
|
|
5856
6011
|
|
|
5857
6012
|
//#endregion
|
|
5858
|
-
//#region ../../node_modules/zod/
|
|
5859
|
-
const error$
|
|
6013
|
+
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
6014
|
+
const error$14 = () => {
|
|
5860
6015
|
const Sizable = {
|
|
5861
6016
|
string: {
|
|
5862
6017
|
unit: "harf",
|
|
@@ -5878,7 +6033,7 @@ const error$13 = () => {
|
|
|
5878
6033
|
function getSizing(origin) {
|
|
5879
6034
|
return Sizable[origin] ?? null;
|
|
5880
6035
|
}
|
|
5881
|
-
const parsedType$
|
|
6036
|
+
const parsedType$3 = (data) => {
|
|
5882
6037
|
const t = typeof data;
|
|
5883
6038
|
switch (t) {
|
|
5884
6039
|
case "number": {
|
|
@@ -5930,7 +6085,7 @@ const error$13 = () => {
|
|
|
5930
6085
|
};
|
|
5931
6086
|
return (issue$1) => {
|
|
5932
6087
|
switch (issue$1.code) {
|
|
5933
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6088
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
|
|
5934
6089
|
case "invalid_value":
|
|
5935
6090
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5936
6091
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5966,11 +6121,138 @@ const error$13 = () => {
|
|
|
5966
6121
|
};
|
|
5967
6122
|
};
|
|
5968
6123
|
function ota_default() {
|
|
6124
|
+
return { localeError: error$14() };
|
|
6125
|
+
}
|
|
6126
|
+
|
|
6127
|
+
//#endregion
|
|
6128
|
+
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6129
|
+
const error$13 = () => {
|
|
6130
|
+
const Sizable = {
|
|
6131
|
+
string: {
|
|
6132
|
+
unit: "توکي",
|
|
6133
|
+
verb: "ولري"
|
|
6134
|
+
},
|
|
6135
|
+
file: {
|
|
6136
|
+
unit: "بایټس",
|
|
6137
|
+
verb: "ولري"
|
|
6138
|
+
},
|
|
6139
|
+
array: {
|
|
6140
|
+
unit: "توکي",
|
|
6141
|
+
verb: "ولري"
|
|
6142
|
+
},
|
|
6143
|
+
set: {
|
|
6144
|
+
unit: "توکي",
|
|
6145
|
+
verb: "ولري"
|
|
6146
|
+
}
|
|
6147
|
+
};
|
|
6148
|
+
function getSizing(origin) {
|
|
6149
|
+
return Sizable[origin] ?? null;
|
|
6150
|
+
}
|
|
6151
|
+
const parsedType$3 = (data) => {
|
|
6152
|
+
const t = typeof data;
|
|
6153
|
+
switch (t) {
|
|
6154
|
+
case "number": {
|
|
6155
|
+
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6156
|
+
}
|
|
6157
|
+
case "object": {
|
|
6158
|
+
if (Array.isArray(data)) {
|
|
6159
|
+
return "ارې";
|
|
6160
|
+
}
|
|
6161
|
+
if (data === null) {
|
|
6162
|
+
return "null";
|
|
6163
|
+
}
|
|
6164
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6165
|
+
return data.constructor.name;
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
}
|
|
6169
|
+
return t;
|
|
6170
|
+
};
|
|
6171
|
+
const Nouns = {
|
|
6172
|
+
regex: "ورودي",
|
|
6173
|
+
email: "بریښنالیک",
|
|
6174
|
+
url: "یو آر ال",
|
|
6175
|
+
emoji: "ایموجي",
|
|
6176
|
+
uuid: "UUID",
|
|
6177
|
+
uuidv4: "UUIDv4",
|
|
6178
|
+
uuidv6: "UUIDv6",
|
|
6179
|
+
nanoid: "nanoid",
|
|
6180
|
+
guid: "GUID",
|
|
6181
|
+
cuid: "cuid",
|
|
6182
|
+
cuid2: "cuid2",
|
|
6183
|
+
ulid: "ULID",
|
|
6184
|
+
xid: "XID",
|
|
6185
|
+
ksuid: "KSUID",
|
|
6186
|
+
datetime: "نیټه او وخت",
|
|
6187
|
+
date: "نېټه",
|
|
6188
|
+
time: "وخت",
|
|
6189
|
+
duration: "موده",
|
|
6190
|
+
ipv4: "د IPv4 پته",
|
|
6191
|
+
ipv6: "د IPv6 پته",
|
|
6192
|
+
cidrv4: "د IPv4 ساحه",
|
|
6193
|
+
cidrv6: "د IPv6 ساحه",
|
|
6194
|
+
base64: "base64-encoded متن",
|
|
6195
|
+
base64url: "base64url-encoded متن",
|
|
6196
|
+
json_string: "JSON متن",
|
|
6197
|
+
e164: "د E.164 شمېره",
|
|
6198
|
+
jwt: "JWT",
|
|
6199
|
+
template_literal: "ورودي"
|
|
6200
|
+
};
|
|
6201
|
+
return (issue$1) => {
|
|
6202
|
+
switch (issue$1.code) {
|
|
6203
|
+
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6204
|
+
case "invalid_value":
|
|
6205
|
+
if (issue$1.values.length === 1) {
|
|
6206
|
+
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6207
|
+
}
|
|
6208
|
+
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6209
|
+
case "too_big": {
|
|
6210
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6211
|
+
const sizing = getSizing(issue$1.origin);
|
|
6212
|
+
if (sizing) {
|
|
6213
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6214
|
+
}
|
|
6215
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6216
|
+
}
|
|
6217
|
+
case "too_small": {
|
|
6218
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6219
|
+
const sizing = getSizing(issue$1.origin);
|
|
6220
|
+
if (sizing) {
|
|
6221
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6222
|
+
}
|
|
6223
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6224
|
+
}
|
|
6225
|
+
case "invalid_format": {
|
|
6226
|
+
const _issue = issue$1;
|
|
6227
|
+
if (_issue.format === "starts_with") {
|
|
6228
|
+
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6229
|
+
}
|
|
6230
|
+
if (_issue.format === "ends_with") {
|
|
6231
|
+
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6232
|
+
}
|
|
6233
|
+
if (_issue.format === "includes") {
|
|
6234
|
+
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6235
|
+
}
|
|
6236
|
+
if (_issue.format === "regex") {
|
|
6237
|
+
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6238
|
+
}
|
|
6239
|
+
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6240
|
+
}
|
|
6241
|
+
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6242
|
+
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6243
|
+
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6244
|
+
case "invalid_union": return `ناسمه ورودي`;
|
|
6245
|
+
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6246
|
+
default: return `ناسمه ورودي`;
|
|
6247
|
+
}
|
|
6248
|
+
};
|
|
6249
|
+
};
|
|
6250
|
+
function ps_default() {
|
|
5969
6251
|
return { localeError: error$13() };
|
|
5970
6252
|
}
|
|
5971
6253
|
|
|
5972
6254
|
//#endregion
|
|
5973
|
-
//#region ../../node_modules/zod/
|
|
6255
|
+
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
5974
6256
|
const error$12 = () => {
|
|
5975
6257
|
const Sizable = {
|
|
5976
6258
|
string: {
|
|
@@ -5993,7 +6275,7 @@ const error$12 = () => {
|
|
|
5993
6275
|
function getSizing(origin) {
|
|
5994
6276
|
return Sizable[origin] ?? null;
|
|
5995
6277
|
}
|
|
5996
|
-
const parsedType$
|
|
6278
|
+
const parsedType$3 = (data) => {
|
|
5997
6279
|
const t = typeof data;
|
|
5998
6280
|
switch (t) {
|
|
5999
6281
|
case "number": {
|
|
@@ -6045,7 +6327,7 @@ const error$12 = () => {
|
|
|
6045
6327
|
};
|
|
6046
6328
|
return (issue$1) => {
|
|
6047
6329
|
switch (issue$1.code) {
|
|
6048
|
-
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$
|
|
6330
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6049
6331
|
case "invalid_value":
|
|
6050
6332
|
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6051
6333
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6087,7 +6369,7 @@ function pl_default() {
|
|
|
6087
6369
|
}
|
|
6088
6370
|
|
|
6089
6371
|
//#endregion
|
|
6090
|
-
//#region ../../node_modules/zod/
|
|
6372
|
+
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6091
6373
|
const error$11 = () => {
|
|
6092
6374
|
const Sizable = {
|
|
6093
6375
|
string: {
|
|
@@ -6110,7 +6392,7 @@ const error$11 = () => {
|
|
|
6110
6392
|
function getSizing(origin) {
|
|
6111
6393
|
return Sizable[origin] ?? null;
|
|
6112
6394
|
}
|
|
6113
|
-
const parsedType$
|
|
6395
|
+
const parsedType$3 = (data) => {
|
|
6114
6396
|
const t = typeof data;
|
|
6115
6397
|
switch (t) {
|
|
6116
6398
|
case "number": {
|
|
@@ -6162,7 +6444,7 @@ const error$11 = () => {
|
|
|
6162
6444
|
};
|
|
6163
6445
|
return (issue$1) => {
|
|
6164
6446
|
switch (issue$1.code) {
|
|
6165
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6447
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
|
|
6166
6448
|
case "invalid_value":
|
|
6167
6449
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6168
6450
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6202,7 +6484,7 @@ function pt_default() {
|
|
|
6202
6484
|
}
|
|
6203
6485
|
|
|
6204
6486
|
//#endregion
|
|
6205
|
-
//#region ../../node_modules/zod/
|
|
6487
|
+
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6206
6488
|
function getRussianPlural(count, one, few, many) {
|
|
6207
6489
|
const absCount = Math.abs(count);
|
|
6208
6490
|
const lastDigit = absCount % 10;
|
|
@@ -6256,7 +6538,7 @@ const error$10 = () => {
|
|
|
6256
6538
|
function getSizing(origin) {
|
|
6257
6539
|
return Sizable[origin] ?? null;
|
|
6258
6540
|
}
|
|
6259
|
-
const parsedType$
|
|
6541
|
+
const parsedType$3 = (data) => {
|
|
6260
6542
|
const t = typeof data;
|
|
6261
6543
|
switch (t) {
|
|
6262
6544
|
case "number": {
|
|
@@ -6308,7 +6590,7 @@ const error$10 = () => {
|
|
|
6308
6590
|
};
|
|
6309
6591
|
return (issue$1) => {
|
|
6310
6592
|
switch (issue$1.code) {
|
|
6311
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
6593
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
|
|
6312
6594
|
case "invalid_value":
|
|
6313
6595
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6314
6596
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6354,7 +6636,7 @@ function ru_default() {
|
|
|
6354
6636
|
}
|
|
6355
6637
|
|
|
6356
6638
|
//#endregion
|
|
6357
|
-
//#region ../../node_modules/zod/
|
|
6639
|
+
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6358
6640
|
const error$9 = () => {
|
|
6359
6641
|
const Sizable = {
|
|
6360
6642
|
string: {
|
|
@@ -6377,7 +6659,7 @@ const error$9 = () => {
|
|
|
6377
6659
|
function getSizing(origin) {
|
|
6378
6660
|
return Sizable[origin] ?? null;
|
|
6379
6661
|
}
|
|
6380
|
-
const parsedType$
|
|
6662
|
+
const parsedType$3 = (data) => {
|
|
6381
6663
|
const t = typeof data;
|
|
6382
6664
|
switch (t) {
|
|
6383
6665
|
case "number": {
|
|
@@ -6429,7 +6711,7 @@ const error$9 = () => {
|
|
|
6429
6711
|
};
|
|
6430
6712
|
return (issue$1) => {
|
|
6431
6713
|
switch (issue$1.code) {
|
|
6432
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
6714
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
|
|
6433
6715
|
case "invalid_value":
|
|
6434
6716
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6435
6717
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6471,7 +6753,7 @@ function sl_default() {
|
|
|
6471
6753
|
}
|
|
6472
6754
|
|
|
6473
6755
|
//#endregion
|
|
6474
|
-
//#region ../../node_modules/zod/
|
|
6756
|
+
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6475
6757
|
const error$8 = () => {
|
|
6476
6758
|
const Sizable = {
|
|
6477
6759
|
string: {
|
|
@@ -6494,7 +6776,7 @@ const error$8 = () => {
|
|
|
6494
6776
|
function getSizing(origin) {
|
|
6495
6777
|
return Sizable[origin] ?? null;
|
|
6496
6778
|
}
|
|
6497
|
-
const parsedType$
|
|
6779
|
+
const parsedType$3 = (data) => {
|
|
6498
6780
|
const t = typeof data;
|
|
6499
6781
|
switch (t) {
|
|
6500
6782
|
case "number": {
|
|
@@ -6546,7 +6828,7 @@ const error$8 = () => {
|
|
|
6546
6828
|
};
|
|
6547
6829
|
return (issue$1) => {
|
|
6548
6830
|
switch (issue$1.code) {
|
|
6549
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
6831
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
|
|
6550
6832
|
case "invalid_value":
|
|
6551
6833
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6552
6834
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6590,7 +6872,7 @@ function sv_default() {
|
|
|
6590
6872
|
}
|
|
6591
6873
|
|
|
6592
6874
|
//#endregion
|
|
6593
|
-
//#region ../../node_modules/zod/
|
|
6875
|
+
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
6594
6876
|
const error$7 = () => {
|
|
6595
6877
|
const Sizable = {
|
|
6596
6878
|
string: {
|
|
@@ -6613,7 +6895,7 @@ const error$7 = () => {
|
|
|
6613
6895
|
function getSizing(origin) {
|
|
6614
6896
|
return Sizable[origin] ?? null;
|
|
6615
6897
|
}
|
|
6616
|
-
const parsedType$
|
|
6898
|
+
const parsedType$3 = (data) => {
|
|
6617
6899
|
const t = typeof data;
|
|
6618
6900
|
switch (t) {
|
|
6619
6901
|
case "number": {
|
|
@@ -6665,7 +6947,7 @@ const error$7 = () => {
|
|
|
6665
6947
|
};
|
|
6666
6948
|
return (issue$1) => {
|
|
6667
6949
|
switch (issue$1.code) {
|
|
6668
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
6950
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
|
|
6669
6951
|
case "invalid_value":
|
|
6670
6952
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6671
6953
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -6707,7 +6989,7 @@ function ta_default() {
|
|
|
6707
6989
|
}
|
|
6708
6990
|
|
|
6709
6991
|
//#endregion
|
|
6710
|
-
//#region ../../node_modules/zod/
|
|
6992
|
+
//#region ../../node_modules/zod/v4/locales/th.js
|
|
6711
6993
|
const error$6 = () => {
|
|
6712
6994
|
const Sizable = {
|
|
6713
6995
|
string: {
|
|
@@ -6730,7 +7012,7 @@ const error$6 = () => {
|
|
|
6730
7012
|
function getSizing(origin) {
|
|
6731
7013
|
return Sizable[origin] ?? null;
|
|
6732
7014
|
}
|
|
6733
|
-
const parsedType$
|
|
7015
|
+
const parsedType$3 = (data) => {
|
|
6734
7016
|
const t = typeof data;
|
|
6735
7017
|
switch (t) {
|
|
6736
7018
|
case "number": {
|
|
@@ -6782,7 +7064,7 @@ const error$6 = () => {
|
|
|
6782
7064
|
};
|
|
6783
7065
|
return (issue$1) => {
|
|
6784
7066
|
switch (issue$1.code) {
|
|
6785
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7067
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
|
|
6786
7068
|
case "invalid_value":
|
|
6787
7069
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6788
7070
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6824,7 +7106,7 @@ function th_default() {
|
|
|
6824
7106
|
}
|
|
6825
7107
|
|
|
6826
7108
|
//#endregion
|
|
6827
|
-
//#region ../../node_modules/zod/
|
|
7109
|
+
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
6828
7110
|
const parsedType = (data) => {
|
|
6829
7111
|
const t = typeof data;
|
|
6830
7112
|
switch (t) {
|
|
@@ -6937,7 +7219,7 @@ function tr_default() {
|
|
|
6937
7219
|
}
|
|
6938
7220
|
|
|
6939
7221
|
//#endregion
|
|
6940
|
-
//#region ../../node_modules/zod/
|
|
7222
|
+
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
6941
7223
|
const error$4 = () => {
|
|
6942
7224
|
const Sizable = {
|
|
6943
7225
|
string: {
|
|
@@ -6960,7 +7242,7 @@ const error$4 = () => {
|
|
|
6960
7242
|
function getSizing(origin) {
|
|
6961
7243
|
return Sizable[origin] ?? null;
|
|
6962
7244
|
}
|
|
6963
|
-
const parsedType$
|
|
7245
|
+
const parsedType$3 = (data) => {
|
|
6964
7246
|
const t = typeof data;
|
|
6965
7247
|
switch (t) {
|
|
6966
7248
|
case "number": {
|
|
@@ -7012,7 +7294,7 @@ const error$4 = () => {
|
|
|
7012
7294
|
};
|
|
7013
7295
|
return (issue$1) => {
|
|
7014
7296
|
switch (issue$1.code) {
|
|
7015
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7297
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
|
|
7016
7298
|
case "invalid_value":
|
|
7017
7299
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7018
7300
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7052,7 +7334,7 @@ function ua_default() {
|
|
|
7052
7334
|
}
|
|
7053
7335
|
|
|
7054
7336
|
//#endregion
|
|
7055
|
-
//#region ../../node_modules/zod/
|
|
7337
|
+
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7056
7338
|
const error$3 = () => {
|
|
7057
7339
|
const Sizable = {
|
|
7058
7340
|
string: {
|
|
@@ -7075,7 +7357,7 @@ const error$3 = () => {
|
|
|
7075
7357
|
function getSizing(origin) {
|
|
7076
7358
|
return Sizable[origin] ?? null;
|
|
7077
7359
|
}
|
|
7078
|
-
const parsedType$
|
|
7360
|
+
const parsedType$3 = (data) => {
|
|
7079
7361
|
const t = typeof data;
|
|
7080
7362
|
switch (t) {
|
|
7081
7363
|
case "number": {
|
|
@@ -7127,7 +7409,7 @@ const error$3 = () => {
|
|
|
7127
7409
|
};
|
|
7128
7410
|
return (issue$1) => {
|
|
7129
7411
|
switch (issue$1.code) {
|
|
7130
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7412
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
|
|
7131
7413
|
case "invalid_value":
|
|
7132
7414
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7133
7415
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7169,7 +7451,7 @@ function ur_default() {
|
|
|
7169
7451
|
}
|
|
7170
7452
|
|
|
7171
7453
|
//#endregion
|
|
7172
|
-
//#region ../../node_modules/zod/
|
|
7454
|
+
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7173
7455
|
const error$2 = () => {
|
|
7174
7456
|
const Sizable = {
|
|
7175
7457
|
string: {
|
|
@@ -7192,7 +7474,7 @@ const error$2 = () => {
|
|
|
7192
7474
|
function getSizing(origin) {
|
|
7193
7475
|
return Sizable[origin] ?? null;
|
|
7194
7476
|
}
|
|
7195
|
-
const parsedType$
|
|
7477
|
+
const parsedType$3 = (data) => {
|
|
7196
7478
|
const t = typeof data;
|
|
7197
7479
|
switch (t) {
|
|
7198
7480
|
case "number": {
|
|
@@ -7244,7 +7526,7 @@ const error$2 = () => {
|
|
|
7244
7526
|
};
|
|
7245
7527
|
return (issue$1) => {
|
|
7246
7528
|
switch (issue$1.code) {
|
|
7247
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7529
|
+
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$3(issue$1.input)}`;
|
|
7248
7530
|
case "invalid_value":
|
|
7249
7531
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7250
7532
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7284,7 +7566,7 @@ function vi_default() {
|
|
|
7284
7566
|
}
|
|
7285
7567
|
|
|
7286
7568
|
//#endregion
|
|
7287
|
-
//#region ../../node_modules/zod/
|
|
7569
|
+
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7288
7570
|
const error$1 = () => {
|
|
7289
7571
|
const Sizable = {
|
|
7290
7572
|
string: {
|
|
@@ -7307,7 +7589,7 @@ const error$1 = () => {
|
|
|
7307
7589
|
function getSizing(origin) {
|
|
7308
7590
|
return Sizable[origin] ?? null;
|
|
7309
7591
|
}
|
|
7310
|
-
const parsedType$
|
|
7592
|
+
const parsedType$3 = (data) => {
|
|
7311
7593
|
const t = typeof data;
|
|
7312
7594
|
switch (t) {
|
|
7313
7595
|
case "number": {
|
|
@@ -7359,7 +7641,7 @@ const error$1 = () => {
|
|
|
7359
7641
|
};
|
|
7360
7642
|
return (issue$1) => {
|
|
7361
7643
|
switch (issue$1.code) {
|
|
7362
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
7644
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
|
|
7363
7645
|
case "invalid_value":
|
|
7364
7646
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7365
7647
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7399,7 +7681,7 @@ function zh_CN_default() {
|
|
|
7399
7681
|
}
|
|
7400
7682
|
|
|
7401
7683
|
//#endregion
|
|
7402
|
-
//#region ../../node_modules/zod/
|
|
7684
|
+
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7403
7685
|
const error = () => {
|
|
7404
7686
|
const Sizable = {
|
|
7405
7687
|
string: {
|
|
@@ -7422,7 +7704,7 @@ const error = () => {
|
|
|
7422
7704
|
function getSizing(origin) {
|
|
7423
7705
|
return Sizable[origin] ?? null;
|
|
7424
7706
|
}
|
|
7425
|
-
const parsedType$
|
|
7707
|
+
const parsedType$3 = (data) => {
|
|
7426
7708
|
const t = typeof data;
|
|
7427
7709
|
switch (t) {
|
|
7428
7710
|
case "number": {
|
|
@@ -7474,7 +7756,7 @@ const error = () => {
|
|
|
7474
7756
|
};
|
|
7475
7757
|
return (issue$1) => {
|
|
7476
7758
|
switch (issue$1.code) {
|
|
7477
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
7759
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
|
|
7478
7760
|
case "invalid_value":
|
|
7479
7761
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7480
7762
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7516,7 +7798,7 @@ function zh_TW_default() {
|
|
|
7516
7798
|
}
|
|
7517
7799
|
|
|
7518
7800
|
//#endregion
|
|
7519
|
-
//#region ../../node_modules/zod/
|
|
7801
|
+
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7520
7802
|
var locales_exports = {};
|
|
7521
7803
|
__export(locales_exports, {
|
|
7522
7804
|
ar: () => ar_default,
|
|
@@ -7526,6 +7808,7 @@ __export(locales_exports, {
|
|
|
7526
7808
|
cs: () => cs_default,
|
|
7527
7809
|
de: () => de_default,
|
|
7528
7810
|
en: () => en_default,
|
|
7811
|
+
eo: () => eo_default,
|
|
7529
7812
|
es: () => es_default,
|
|
7530
7813
|
fa: () => fa_default,
|
|
7531
7814
|
fi: () => fi_default,
|
|
@@ -7544,6 +7827,7 @@ __export(locales_exports, {
|
|
|
7544
7827
|
no: () => no_default,
|
|
7545
7828
|
ota: () => ota_default,
|
|
7546
7829
|
pl: () => pl_default,
|
|
7830
|
+
ps: () => ps_default,
|
|
7547
7831
|
pt: () => pt_default,
|
|
7548
7832
|
ru: () => ru_default,
|
|
7549
7833
|
sl: () => sl_default,
|
|
@@ -7559,12 +7843,12 @@ __export(locales_exports, {
|
|
|
7559
7843
|
});
|
|
7560
7844
|
|
|
7561
7845
|
//#endregion
|
|
7562
|
-
//#region ../../node_modules/zod/
|
|
7846
|
+
//#region ../../node_modules/zod/v4/core/registries.js
|
|
7563
7847
|
const $output = Symbol("ZodOutput");
|
|
7564
7848
|
const $input = Symbol("ZodInput");
|
|
7565
7849
|
var $ZodRegistry = class {
|
|
7566
7850
|
constructor() {
|
|
7567
|
-
this._map = new
|
|
7851
|
+
this._map = new Map();
|
|
7568
7852
|
this._idmap = new Map();
|
|
7569
7853
|
}
|
|
7570
7854
|
add(schema, ..._meta) {
|
|
@@ -7578,7 +7862,16 @@ var $ZodRegistry = class {
|
|
|
7578
7862
|
}
|
|
7579
7863
|
return this;
|
|
7580
7864
|
}
|
|
7865
|
+
clear() {
|
|
7866
|
+
this._map = new Map();
|
|
7867
|
+
this._idmap = new Map();
|
|
7868
|
+
return this;
|
|
7869
|
+
}
|
|
7581
7870
|
remove(schema) {
|
|
7871
|
+
const meta = this._map.get(schema);
|
|
7872
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
7873
|
+
this._idmap.delete(meta.id);
|
|
7874
|
+
}
|
|
7582
7875
|
this._map.delete(schema);
|
|
7583
7876
|
return this;
|
|
7584
7877
|
}
|
|
@@ -7604,7 +7897,7 @@ function registry() {
|
|
|
7604
7897
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
7605
7898
|
|
|
7606
7899
|
//#endregion
|
|
7607
|
-
//#region ../../node_modules/zod/
|
|
7900
|
+
//#region ../../node_modules/zod/v4/core/api.js
|
|
7608
7901
|
function _string(Class$1, params) {
|
|
7609
7902
|
return new Class$1({
|
|
7610
7903
|
type: "string",
|
|
@@ -7819,6 +8112,13 @@ function _jwt(Class$1, params) {
|
|
|
7819
8112
|
...normalizeParams(params)
|
|
7820
8113
|
});
|
|
7821
8114
|
}
|
|
8115
|
+
const TimePrecision = {
|
|
8116
|
+
Any: null,
|
|
8117
|
+
Minute: -1,
|
|
8118
|
+
Second: 0,
|
|
8119
|
+
Millisecond: 3,
|
|
8120
|
+
Microsecond: 6
|
|
8121
|
+
};
|
|
7822
8122
|
function _isoDateTime(Class$1, params) {
|
|
7823
8123
|
return new Class$1({
|
|
7824
8124
|
type: "string",
|
|
@@ -8385,8 +8685,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8385
8685
|
return schema;
|
|
8386
8686
|
}
|
|
8387
8687
|
function _stringbool(Classes, _params) {
|
|
8388
|
-
const
|
|
8389
|
-
let truthyArray = truthy ?? [
|
|
8688
|
+
const params = normalizeParams(_params);
|
|
8689
|
+
let truthyArray = params.truthy ?? [
|
|
8390
8690
|
"true",
|
|
8391
8691
|
"1",
|
|
8392
8692
|
"yes",
|
|
@@ -8394,7 +8694,7 @@ function _stringbool(Classes, _params) {
|
|
|
8394
8694
|
"y",
|
|
8395
8695
|
"enabled"
|
|
8396
8696
|
];
|
|
8397
|
-
let falsyArray = falsy ?? [
|
|
8697
|
+
let falsyArray = params.falsy ?? [
|
|
8398
8698
|
"false",
|
|
8399
8699
|
"0",
|
|
8400
8700
|
"no",
|
|
@@ -8402,7 +8702,7 @@ function _stringbool(Classes, _params) {
|
|
|
8402
8702
|
"n",
|
|
8403
8703
|
"disabled"
|
|
8404
8704
|
];
|
|
8405
|
-
if (
|
|
8705
|
+
if (params.case !== "sensitive") {
|
|
8406
8706
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8407
8707
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8408
8708
|
}
|
|
@@ -8416,7 +8716,7 @@ function _stringbool(Classes, _params) {
|
|
|
8416
8716
|
type: "transform",
|
|
8417
8717
|
transform: (input, payload) => {
|
|
8418
8718
|
let data = input;
|
|
8419
|
-
if (
|
|
8719
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
8420
8720
|
if (truthySet.has(data)) {
|
|
8421
8721
|
return true;
|
|
8422
8722
|
} else if (falsySet.has(data)) {
|
|
@@ -8432,31 +8732,47 @@ function _stringbool(Classes, _params) {
|
|
|
8432
8732
|
return {};
|
|
8433
8733
|
}
|
|
8434
8734
|
},
|
|
8435
|
-
error: error
|
|
8735
|
+
error: params.error
|
|
8436
8736
|
});
|
|
8437
8737
|
const innerPipe = new _Pipe({
|
|
8438
8738
|
type: "pipe",
|
|
8439
8739
|
in: new _String({
|
|
8440
8740
|
type: "string",
|
|
8441
|
-
error: error
|
|
8741
|
+
error: params.error
|
|
8442
8742
|
}),
|
|
8443
8743
|
out: tx,
|
|
8444
|
-
error: error
|
|
8744
|
+
error: params.error
|
|
8445
8745
|
});
|
|
8446
8746
|
const outerPipe = new _Pipe({
|
|
8447
8747
|
type: "pipe",
|
|
8448
8748
|
in: innerPipe,
|
|
8449
8749
|
out: new _Boolean({
|
|
8450
8750
|
type: "boolean",
|
|
8451
|
-
error: error
|
|
8751
|
+
error: params.error
|
|
8452
8752
|
}),
|
|
8453
|
-
error: error
|
|
8753
|
+
error: params.error
|
|
8454
8754
|
});
|
|
8455
8755
|
return outerPipe;
|
|
8456
8756
|
}
|
|
8757
|
+
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
8758
|
+
const params = normalizeParams(_params);
|
|
8759
|
+
const def = {
|
|
8760
|
+
...normalizeParams(_params),
|
|
8761
|
+
check: "string_format",
|
|
8762
|
+
type: "string",
|
|
8763
|
+
format,
|
|
8764
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
8765
|
+
...params
|
|
8766
|
+
};
|
|
8767
|
+
if (fnOrRegex instanceof RegExp) {
|
|
8768
|
+
def.pattern = fnOrRegex;
|
|
8769
|
+
}
|
|
8770
|
+
const inst = new Class$1(def);
|
|
8771
|
+
return inst;
|
|
8772
|
+
}
|
|
8457
8773
|
|
|
8458
8774
|
//#endregion
|
|
8459
|
-
//#region ../../node_modules/zod/
|
|
8775
|
+
//#region ../../node_modules/zod/v4/core/function.js
|
|
8460
8776
|
var $ZodFunction = class {
|
|
8461
8777
|
constructor(def) {
|
|
8462
8778
|
this._def = def;
|
|
@@ -8527,7 +8843,7 @@ function _function(params) {
|
|
|
8527
8843
|
}
|
|
8528
8844
|
|
|
8529
8845
|
//#endregion
|
|
8530
|
-
//#region ../../node_modules/zod/
|
|
8846
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8531
8847
|
var JSONSchemaGenerator = class {
|
|
8532
8848
|
constructor(params) {
|
|
8533
8849
|
this.counter = 0;
|
|
@@ -8563,431 +8879,435 @@ var JSONSchemaGenerator = class {
|
|
|
8563
8879
|
const result = {
|
|
8564
8880
|
schema: {},
|
|
8565
8881
|
count: 1,
|
|
8566
|
-
cycle: undefined
|
|
8567
|
-
};
|
|
8568
|
-
this.seen.set(schema, result);
|
|
8569
|
-
if (schema._zod.toJSONSchema) {
|
|
8570
|
-
result.schema = schema._zod.toJSONSchema();
|
|
8571
|
-
}
|
|
8572
|
-
const params = {
|
|
8573
|
-
..._params,
|
|
8574
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
8882
|
+
cycle: undefined,
|
|
8575
8883
|
path: _params.path
|
|
8576
8884
|
};
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
this.seen.get(parent).isParent = true;
|
|
8885
|
+
this.seen.set(schema, result);
|
|
8886
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
8887
|
+
if (overrideSchema) {
|
|
8888
|
+
result.schema = overrideSchema;
|
|
8582
8889
|
} else {
|
|
8583
|
-
const
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8890
|
+
const params = {
|
|
8891
|
+
..._params,
|
|
8892
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
8893
|
+
path: _params.path
|
|
8894
|
+
};
|
|
8895
|
+
const parent = schema._zod.parent;
|
|
8896
|
+
if (parent) {
|
|
8897
|
+
result.ref = parent;
|
|
8898
|
+
this.process(parent, params);
|
|
8899
|
+
this.seen.get(parent).isParent = true;
|
|
8900
|
+
} else {
|
|
8901
|
+
const _json = result.schema;
|
|
8902
|
+
switch (def.type) {
|
|
8903
|
+
case "string": {
|
|
8904
|
+
const json$1 = _json;
|
|
8905
|
+
json$1.type = "string";
|
|
8906
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
8907
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
8908
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
8909
|
+
if (format) {
|
|
8910
|
+
json$1.format = formatMap[format] ?? format;
|
|
8911
|
+
if (json$1.format === "") delete json$1.format;
|
|
8912
|
+
}
|
|
8913
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
8914
|
+
if (patterns && patterns.size > 0) {
|
|
8915
|
+
const regexes = [...patterns];
|
|
8916
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
8917
|
+
else if (regexes.length > 1) {
|
|
8918
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
8919
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
8920
|
+
pattern: regex.source
|
|
8921
|
+
}))];
|
|
8922
|
+
}
|
|
8923
|
+
}
|
|
8924
|
+
break;
|
|
8594
8925
|
}
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
const
|
|
8598
|
-
if (
|
|
8599
|
-
else
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8926
|
+
case "number": {
|
|
8927
|
+
const json$1 = _json;
|
|
8928
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
8929
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
8930
|
+
else json$1.type = "number";
|
|
8931
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
8932
|
+
if (typeof minimum === "number") {
|
|
8933
|
+
json$1.minimum = minimum;
|
|
8934
|
+
if (typeof exclusiveMinimum === "number") {
|
|
8935
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8936
|
+
else delete json$1.exclusiveMinimum;
|
|
8937
|
+
}
|
|
8604
8938
|
}
|
|
8939
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
8940
|
+
if (typeof maximum === "number") {
|
|
8941
|
+
json$1.maximum = maximum;
|
|
8942
|
+
if (typeof exclusiveMaximum === "number") {
|
|
8943
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8944
|
+
else delete json$1.exclusiveMaximum;
|
|
8945
|
+
}
|
|
8946
|
+
}
|
|
8947
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
8948
|
+
break;
|
|
8605
8949
|
}
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
if (typeof minimum === "number") {
|
|
8615
|
-
json$1.minimum = minimum;
|
|
8616
|
-
if (typeof exclusiveMinimum === "number") {
|
|
8617
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8618
|
-
else delete json$1.exclusiveMinimum;
|
|
8950
|
+
case "boolean": {
|
|
8951
|
+
const json$1 = _json;
|
|
8952
|
+
json$1.type = "boolean";
|
|
8953
|
+
break;
|
|
8954
|
+
}
|
|
8955
|
+
case "bigint": {
|
|
8956
|
+
if (this.unrepresentable === "throw") {
|
|
8957
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8619
8958
|
}
|
|
8959
|
+
break;
|
|
8620
8960
|
}
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
if (typeof exclusiveMaximum === "number") {
|
|
8625
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8626
|
-
else delete json$1.exclusiveMaximum;
|
|
8961
|
+
case "symbol": {
|
|
8962
|
+
if (this.unrepresentable === "throw") {
|
|
8963
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8627
8964
|
}
|
|
8965
|
+
break;
|
|
8628
8966
|
}
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
case "boolean": {
|
|
8633
|
-
const json$1 = _json;
|
|
8634
|
-
json$1.type = "boolean";
|
|
8635
|
-
break;
|
|
8636
|
-
}
|
|
8637
|
-
case "bigint": {
|
|
8638
|
-
if (this.unrepresentable === "throw") {
|
|
8639
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8967
|
+
case "null": {
|
|
8968
|
+
_json.type = "null";
|
|
8969
|
+
break;
|
|
8640
8970
|
}
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
case "symbol": {
|
|
8644
|
-
if (this.unrepresentable === "throw") {
|
|
8645
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8971
|
+
case "any": {
|
|
8972
|
+
break;
|
|
8646
8973
|
}
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
case "undefined": {
|
|
8650
|
-
const json$1 = _json;
|
|
8651
|
-
json$1.type = "null";
|
|
8652
|
-
break;
|
|
8653
|
-
}
|
|
8654
|
-
case "null": {
|
|
8655
|
-
_json.type = "null";
|
|
8656
|
-
break;
|
|
8657
|
-
}
|
|
8658
|
-
case "any": {
|
|
8659
|
-
break;
|
|
8660
|
-
}
|
|
8661
|
-
case "unknown": {
|
|
8662
|
-
break;
|
|
8663
|
-
}
|
|
8664
|
-
case "never": {
|
|
8665
|
-
_json.not = {};
|
|
8666
|
-
break;
|
|
8667
|
-
}
|
|
8668
|
-
case "void": {
|
|
8669
|
-
if (this.unrepresentable === "throw") {
|
|
8670
|
-
throw new Error("Void cannot be represented in JSON Schema");
|
|
8974
|
+
case "unknown": {
|
|
8975
|
+
break;
|
|
8671
8976
|
}
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8977
|
+
case "undefined": {
|
|
8978
|
+
if (this.unrepresentable === "throw") {
|
|
8979
|
+
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
8980
|
+
}
|
|
8981
|
+
break;
|
|
8677
8982
|
}
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8684
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8685
|
-
json$1.type = "array";
|
|
8686
|
-
json$1.items = this.process(def.element, {
|
|
8687
|
-
...params,
|
|
8688
|
-
path: [...params.path, "items"]
|
|
8689
|
-
});
|
|
8690
|
-
break;
|
|
8691
|
-
}
|
|
8692
|
-
case "object": {
|
|
8693
|
-
const json$1 = _json;
|
|
8694
|
-
json$1.type = "object";
|
|
8695
|
-
json$1.properties = {};
|
|
8696
|
-
const shape = def.shape;
|
|
8697
|
-
for (const key in shape) {
|
|
8698
|
-
json$1.properties[key] = this.process(shape[key], {
|
|
8699
|
-
...params,
|
|
8700
|
-
path: [
|
|
8701
|
-
...params.path,
|
|
8702
|
-
"properties",
|
|
8703
|
-
key
|
|
8704
|
-
]
|
|
8705
|
-
});
|
|
8983
|
+
case "void": {
|
|
8984
|
+
if (this.unrepresentable === "throw") {
|
|
8985
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
8986
|
+
}
|
|
8987
|
+
break;
|
|
8706
8988
|
}
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8989
|
+
case "never": {
|
|
8990
|
+
_json.not = {};
|
|
8991
|
+
break;
|
|
8992
|
+
}
|
|
8993
|
+
case "date": {
|
|
8994
|
+
if (this.unrepresentable === "throw") {
|
|
8995
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
8714
8996
|
}
|
|
8715
|
-
|
|
8716
|
-
if (requiredKeys.size > 0) {
|
|
8717
|
-
json$1.required = Array.from(requiredKeys);
|
|
8997
|
+
break;
|
|
8718
8998
|
}
|
|
8719
|
-
|
|
8720
|
-
json$1
|
|
8721
|
-
|
|
8722
|
-
if (
|
|
8723
|
-
|
|
8724
|
-
json$1.
|
|
8999
|
+
case "array": {
|
|
9000
|
+
const json$1 = _json;
|
|
9001
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9002
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9003
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9004
|
+
json$1.type = "array";
|
|
9005
|
+
json$1.items = this.process(def.element, {
|
|
8725
9006
|
...params,
|
|
8726
|
-
path: [...params.path, "
|
|
9007
|
+
path: [...params.path, "items"]
|
|
8727
9008
|
});
|
|
9009
|
+
break;
|
|
8728
9010
|
}
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
const json$1 = _json;
|
|
8768
|
-
json$1.type = "array";
|
|
8769
|
-
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
8770
|
-
...params,
|
|
8771
|
-
path: [
|
|
8772
|
-
...params.path,
|
|
8773
|
-
"prefixItems",
|
|
8774
|
-
i
|
|
8775
|
-
]
|
|
8776
|
-
}));
|
|
8777
|
-
if (this.target === "draft-2020-12") {
|
|
8778
|
-
json$1.prefixItems = prefixItems;
|
|
8779
|
-
} else {
|
|
8780
|
-
json$1.items = prefixItems;
|
|
9011
|
+
case "object": {
|
|
9012
|
+
const json$1 = _json;
|
|
9013
|
+
json$1.type = "object";
|
|
9014
|
+
json$1.properties = {};
|
|
9015
|
+
const shape = def.shape;
|
|
9016
|
+
for (const key in shape) {
|
|
9017
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
9018
|
+
...params,
|
|
9019
|
+
path: [
|
|
9020
|
+
...params.path,
|
|
9021
|
+
"properties",
|
|
9022
|
+
key
|
|
9023
|
+
]
|
|
9024
|
+
});
|
|
9025
|
+
}
|
|
9026
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9027
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9028
|
+
const v = def.shape[key]._zod;
|
|
9029
|
+
if (this.io === "input") {
|
|
9030
|
+
return v.optin === undefined;
|
|
9031
|
+
} else {
|
|
9032
|
+
return v.optout === undefined;
|
|
9033
|
+
}
|
|
9034
|
+
}));
|
|
9035
|
+
if (requiredKeys.size > 0) {
|
|
9036
|
+
json$1.required = Array.from(requiredKeys);
|
|
9037
|
+
}
|
|
9038
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9039
|
+
json$1.additionalProperties = false;
|
|
9040
|
+
} else if (!def.catchall) {
|
|
9041
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9042
|
+
} else if (def.catchall) {
|
|
9043
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9044
|
+
...params,
|
|
9045
|
+
path: [...params.path, "additionalProperties"]
|
|
9046
|
+
});
|
|
9047
|
+
}
|
|
9048
|
+
break;
|
|
8781
9049
|
}
|
|
8782
|
-
|
|
8783
|
-
const
|
|
9050
|
+
case "union": {
|
|
9051
|
+
const json$1 = _json;
|
|
9052
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
8784
9053
|
...params,
|
|
8785
|
-
path: [
|
|
9054
|
+
path: [
|
|
9055
|
+
...params.path,
|
|
9056
|
+
"anyOf",
|
|
9057
|
+
i
|
|
9058
|
+
]
|
|
9059
|
+
}));
|
|
9060
|
+
break;
|
|
9061
|
+
}
|
|
9062
|
+
case "intersection": {
|
|
9063
|
+
const json$1 = _json;
|
|
9064
|
+
const a = this.process(def.left, {
|
|
9065
|
+
...params,
|
|
9066
|
+
path: [
|
|
9067
|
+
...params.path,
|
|
9068
|
+
"allOf",
|
|
9069
|
+
0
|
|
9070
|
+
]
|
|
9071
|
+
});
|
|
9072
|
+
const b = this.process(def.right, {
|
|
9073
|
+
...params,
|
|
9074
|
+
path: [
|
|
9075
|
+
...params.path,
|
|
9076
|
+
"allOf",
|
|
9077
|
+
1
|
|
9078
|
+
]
|
|
8786
9079
|
});
|
|
9080
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9081
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9082
|
+
json$1.allOf = allOf;
|
|
9083
|
+
break;
|
|
9084
|
+
}
|
|
9085
|
+
case "tuple": {
|
|
9086
|
+
const json$1 = _json;
|
|
9087
|
+
json$1.type = "array";
|
|
9088
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9089
|
+
...params,
|
|
9090
|
+
path: [
|
|
9091
|
+
...params.path,
|
|
9092
|
+
"prefixItems",
|
|
9093
|
+
i
|
|
9094
|
+
]
|
|
9095
|
+
}));
|
|
8787
9096
|
if (this.target === "draft-2020-12") {
|
|
8788
|
-
json$1.
|
|
9097
|
+
json$1.prefixItems = prefixItems;
|
|
8789
9098
|
} else {
|
|
8790
|
-
json$1.
|
|
9099
|
+
json$1.items = prefixItems;
|
|
9100
|
+
}
|
|
9101
|
+
if (def.rest) {
|
|
9102
|
+
const rest = this.process(def.rest, {
|
|
9103
|
+
...params,
|
|
9104
|
+
path: [...params.path, "items"]
|
|
9105
|
+
});
|
|
9106
|
+
if (this.target === "draft-2020-12") {
|
|
9107
|
+
json$1.items = rest;
|
|
9108
|
+
} else {
|
|
9109
|
+
json$1.additionalItems = rest;
|
|
9110
|
+
}
|
|
8791
9111
|
}
|
|
9112
|
+
if (def.rest) {
|
|
9113
|
+
json$1.items = this.process(def.rest, {
|
|
9114
|
+
...params,
|
|
9115
|
+
path: [...params.path, "items"]
|
|
9116
|
+
});
|
|
9117
|
+
}
|
|
9118
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9119
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9120
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9121
|
+
break;
|
|
8792
9122
|
}
|
|
8793
|
-
|
|
8794
|
-
json$1
|
|
9123
|
+
case "record": {
|
|
9124
|
+
const json$1 = _json;
|
|
9125
|
+
json$1.type = "object";
|
|
9126
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
8795
9127
|
...params,
|
|
8796
|
-
path: [...params.path, "
|
|
9128
|
+
path: [...params.path, "propertyNames"]
|
|
8797
9129
|
});
|
|
9130
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9131
|
+
...params,
|
|
9132
|
+
path: [...params.path, "additionalProperties"]
|
|
9133
|
+
});
|
|
9134
|
+
break;
|
|
8798
9135
|
}
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
case "record": {
|
|
8805
|
-
const json$1 = _json;
|
|
8806
|
-
json$1.type = "object";
|
|
8807
|
-
json$1.propertyNames = this.process(def.keyType, {
|
|
8808
|
-
...params,
|
|
8809
|
-
path: [...params.path, "propertyNames"]
|
|
8810
|
-
});
|
|
8811
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
8812
|
-
...params,
|
|
8813
|
-
path: [...params.path, "additionalProperties"]
|
|
8814
|
-
});
|
|
8815
|
-
break;
|
|
8816
|
-
}
|
|
8817
|
-
case "map": {
|
|
8818
|
-
if (this.unrepresentable === "throw") {
|
|
8819
|
-
throw new Error("Map cannot be represented in JSON Schema");
|
|
9136
|
+
case "map": {
|
|
9137
|
+
if (this.unrepresentable === "throw") {
|
|
9138
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9139
|
+
}
|
|
9140
|
+
break;
|
|
8820
9141
|
}
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
9142
|
+
case "set": {
|
|
9143
|
+
if (this.unrepresentable === "throw") {
|
|
9144
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9145
|
+
}
|
|
9146
|
+
break;
|
|
9147
|
+
}
|
|
9148
|
+
case "enum": {
|
|
9149
|
+
const json$1 = _json;
|
|
9150
|
+
const values = getEnumValues(def.entries);
|
|
9151
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9152
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9153
|
+
json$1.enum = values;
|
|
9154
|
+
break;
|
|
8826
9155
|
}
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
if (val === undefined) {
|
|
8842
|
-
if (this.unrepresentable === "throw") {
|
|
8843
|
-
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
8844
|
-
} else {}
|
|
8845
|
-
} else if (typeof val === "bigint") {
|
|
8846
|
-
if (this.unrepresentable === "throw") {
|
|
8847
|
-
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9156
|
+
case "literal": {
|
|
9157
|
+
const json$1 = _json;
|
|
9158
|
+
const vals = [];
|
|
9159
|
+
for (const val of def.values) {
|
|
9160
|
+
if (val === undefined) {
|
|
9161
|
+
if (this.unrepresentable === "throw") {
|
|
9162
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9163
|
+
} else {}
|
|
9164
|
+
} else if (typeof val === "bigint") {
|
|
9165
|
+
if (this.unrepresentable === "throw") {
|
|
9166
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9167
|
+
} else {
|
|
9168
|
+
vals.push(Number(val));
|
|
9169
|
+
}
|
|
8848
9170
|
} else {
|
|
8849
|
-
vals.push(
|
|
9171
|
+
vals.push(val);
|
|
8850
9172
|
}
|
|
9173
|
+
}
|
|
9174
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9175
|
+
const val = vals[0];
|
|
9176
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9177
|
+
json$1.const = val;
|
|
8851
9178
|
} else {
|
|
8852
|
-
vals.
|
|
9179
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9180
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9181
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9182
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9183
|
+
json$1.enum = vals;
|
|
8853
9184
|
}
|
|
9185
|
+
break;
|
|
8854
9186
|
}
|
|
8855
|
-
|
|
8856
|
-
const
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
if (
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
if (mime) {
|
|
8879
|
-
if (mime.length === 1) {
|
|
8880
|
-
file$1.contentMediaType = mime[0];
|
|
8881
|
-
Object.assign(json$1, file$1);
|
|
9187
|
+
case "file": {
|
|
9188
|
+
const json$1 = _json;
|
|
9189
|
+
const file$1 = {
|
|
9190
|
+
type: "string",
|
|
9191
|
+
format: "binary",
|
|
9192
|
+
contentEncoding: "binary"
|
|
9193
|
+
};
|
|
9194
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9195
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9196
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9197
|
+
if (mime) {
|
|
9198
|
+
if (mime.length === 1) {
|
|
9199
|
+
file$1.contentMediaType = mime[0];
|
|
9200
|
+
Object.assign(json$1, file$1);
|
|
9201
|
+
} else {
|
|
9202
|
+
json$1.anyOf = mime.map((m) => {
|
|
9203
|
+
const mFile = {
|
|
9204
|
+
...file$1,
|
|
9205
|
+
contentMediaType: m
|
|
9206
|
+
};
|
|
9207
|
+
return mFile;
|
|
9208
|
+
});
|
|
9209
|
+
}
|
|
8882
9210
|
} else {
|
|
8883
|
-
json$1
|
|
8884
|
-
const mFile = {
|
|
8885
|
-
...file$1,
|
|
8886
|
-
contentMediaType: m
|
|
8887
|
-
};
|
|
8888
|
-
return mFile;
|
|
8889
|
-
});
|
|
9211
|
+
Object.assign(json$1, file$1);
|
|
8890
9212
|
}
|
|
8891
|
-
|
|
8892
|
-
Object.assign(json$1, file$1);
|
|
9213
|
+
break;
|
|
8893
9214
|
}
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
9215
|
+
case "transform": {
|
|
9216
|
+
if (this.unrepresentable === "throw") {
|
|
9217
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9218
|
+
}
|
|
9219
|
+
break;
|
|
8899
9220
|
}
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
8905
|
-
break;
|
|
8906
|
-
}
|
|
8907
|
-
case "nonoptional": {
|
|
8908
|
-
this.process(def.innerType, params);
|
|
8909
|
-
result.ref = def.innerType;
|
|
8910
|
-
break;
|
|
8911
|
-
}
|
|
8912
|
-
case "success": {
|
|
8913
|
-
const json$1 = _json;
|
|
8914
|
-
json$1.type = "boolean";
|
|
8915
|
-
break;
|
|
8916
|
-
}
|
|
8917
|
-
case "default": {
|
|
8918
|
-
this.process(def.innerType, params);
|
|
8919
|
-
result.ref = def.innerType;
|
|
8920
|
-
_json.default = def.defaultValue;
|
|
8921
|
-
break;
|
|
8922
|
-
}
|
|
8923
|
-
case "prefault": {
|
|
8924
|
-
this.process(def.innerType, params);
|
|
8925
|
-
result.ref = def.innerType;
|
|
8926
|
-
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
8927
|
-
break;
|
|
8928
|
-
}
|
|
8929
|
-
case "catch": {
|
|
8930
|
-
this.process(def.innerType, params);
|
|
8931
|
-
result.ref = def.innerType;
|
|
8932
|
-
let catchValue;
|
|
8933
|
-
try {
|
|
8934
|
-
catchValue = def.catchValue(undefined);
|
|
8935
|
-
} catch {
|
|
8936
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9221
|
+
case "nullable": {
|
|
9222
|
+
const inner = this.process(def.innerType, params);
|
|
9223
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9224
|
+
break;
|
|
8937
9225
|
}
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
if (this.unrepresentable === "throw") {
|
|
8943
|
-
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9226
|
+
case "nonoptional": {
|
|
9227
|
+
this.process(def.innerType, params);
|
|
9228
|
+
result.ref = def.innerType;
|
|
9229
|
+
break;
|
|
8944
9230
|
}
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
9231
|
+
case "success": {
|
|
9232
|
+
const json$1 = _json;
|
|
9233
|
+
json$1.type = "boolean";
|
|
9234
|
+
break;
|
|
9235
|
+
}
|
|
9236
|
+
case "default": {
|
|
9237
|
+
this.process(def.innerType, params);
|
|
9238
|
+
result.ref = def.innerType;
|
|
9239
|
+
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9240
|
+
break;
|
|
9241
|
+
}
|
|
9242
|
+
case "prefault": {
|
|
9243
|
+
this.process(def.innerType, params);
|
|
9244
|
+
result.ref = def.innerType;
|
|
9245
|
+
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9246
|
+
break;
|
|
9247
|
+
}
|
|
9248
|
+
case "catch": {
|
|
9249
|
+
this.process(def.innerType, params);
|
|
9250
|
+
result.ref = def.innerType;
|
|
9251
|
+
let catchValue;
|
|
9252
|
+
try {
|
|
9253
|
+
catchValue = def.catchValue(undefined);
|
|
9254
|
+
} catch {
|
|
9255
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9256
|
+
}
|
|
9257
|
+
_json.default = catchValue;
|
|
9258
|
+
break;
|
|
9259
|
+
}
|
|
9260
|
+
case "nan": {
|
|
9261
|
+
if (this.unrepresentable === "throw") {
|
|
9262
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9263
|
+
}
|
|
9264
|
+
break;
|
|
9265
|
+
}
|
|
9266
|
+
case "template_literal": {
|
|
9267
|
+
const json$1 = _json;
|
|
9268
|
+
const pattern = schema._zod.pattern;
|
|
9269
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9270
|
+
json$1.type = "string";
|
|
9271
|
+
json$1.pattern = pattern.source;
|
|
9272
|
+
break;
|
|
9273
|
+
}
|
|
9274
|
+
case "pipe": {
|
|
9275
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9276
|
+
this.process(innerType, params);
|
|
9277
|
+
result.ref = innerType;
|
|
9278
|
+
break;
|
|
9279
|
+
}
|
|
9280
|
+
case "readonly": {
|
|
9281
|
+
this.process(def.innerType, params);
|
|
9282
|
+
result.ref = def.innerType;
|
|
9283
|
+
_json.readOnly = true;
|
|
9284
|
+
break;
|
|
9285
|
+
}
|
|
9286
|
+
case "promise": {
|
|
9287
|
+
this.process(def.innerType, params);
|
|
9288
|
+
result.ref = def.innerType;
|
|
9289
|
+
break;
|
|
9290
|
+
}
|
|
9291
|
+
case "optional": {
|
|
9292
|
+
this.process(def.innerType, params);
|
|
9293
|
+
result.ref = def.innerType;
|
|
9294
|
+
break;
|
|
9295
|
+
}
|
|
9296
|
+
case "lazy": {
|
|
9297
|
+
const innerType = schema._zod.innerType;
|
|
9298
|
+
this.process(innerType, params);
|
|
9299
|
+
result.ref = innerType;
|
|
9300
|
+
break;
|
|
9301
|
+
}
|
|
9302
|
+
case "custom": {
|
|
9303
|
+
if (this.unrepresentable === "throw") {
|
|
9304
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9305
|
+
}
|
|
9306
|
+
break;
|
|
9307
|
+
}
|
|
9308
|
+
default: {
|
|
9309
|
+
def;
|
|
8986
9310
|
}
|
|
8987
|
-
break;
|
|
8988
|
-
}
|
|
8989
|
-
default: {
|
|
8990
|
-
def;
|
|
8991
9311
|
}
|
|
8992
9312
|
}
|
|
8993
9313
|
}
|
|
@@ -9014,12 +9334,15 @@ var JSONSchemaGenerator = class {
|
|
|
9014
9334
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
9015
9335
|
if (params.external) {
|
|
9016
9336
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
9017
|
-
|
|
9337
|
+
const uriGenerator = params.external.uri ?? ((id$1) => id$1);
|
|
9338
|
+
if (externalId) {
|
|
9339
|
+
return { ref: uriGenerator(externalId) };
|
|
9340
|
+
}
|
|
9018
9341
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9019
9342
|
entry[1].defId = id;
|
|
9020
9343
|
return {
|
|
9021
9344
|
defId: id,
|
|
9022
|
-
ref: `${
|
|
9345
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
9023
9346
|
};
|
|
9024
9347
|
}
|
|
9025
9348
|
if (entry[1] === root) {
|
|
@@ -9047,6 +9370,14 @@ var JSONSchemaGenerator = class {
|
|
|
9047
9370
|
}
|
|
9048
9371
|
schema$1.$ref = ref;
|
|
9049
9372
|
};
|
|
9373
|
+
if (params.cycles === "throw") {
|
|
9374
|
+
for (const entry of this.seen.entries()) {
|
|
9375
|
+
const seen = entry[1];
|
|
9376
|
+
if (seen.cycle) {
|
|
9377
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9378
|
+
}
|
|
9379
|
+
}
|
|
9380
|
+
}
|
|
9050
9381
|
for (const entry of this.seen.entries()) {
|
|
9051
9382
|
const seen = entry[1];
|
|
9052
9383
|
if (schema === entry[0]) {
|
|
@@ -9066,11 +9397,7 @@ var JSONSchemaGenerator = class {
|
|
|
9066
9397
|
continue;
|
|
9067
9398
|
}
|
|
9068
9399
|
if (seen.cycle) {
|
|
9069
|
-
|
|
9070
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9071
|
-
} else if (params.cycles === "ref") {
|
|
9072
|
-
extractToDef(entry);
|
|
9073
|
-
}
|
|
9400
|
+
extractToDef(entry);
|
|
9074
9401
|
continue;
|
|
9075
9402
|
}
|
|
9076
9403
|
if (seen.count > 1) {
|
|
@@ -9102,7 +9429,8 @@ var JSONSchemaGenerator = class {
|
|
|
9102
9429
|
}
|
|
9103
9430
|
if (!seen.isParent) this.override({
|
|
9104
9431
|
zodSchema,
|
|
9105
|
-
jsonSchema: schema$1
|
|
9432
|
+
jsonSchema: schema$1,
|
|
9433
|
+
path: seen.path ?? []
|
|
9106
9434
|
});
|
|
9107
9435
|
};
|
|
9108
9436
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9116,6 +9444,11 @@ var JSONSchemaGenerator = class {
|
|
|
9116
9444
|
} else {
|
|
9117
9445
|
console.warn(`Invalid target: ${this.target}`);
|
|
9118
9446
|
}
|
|
9447
|
+
if (params.external?.uri) {
|
|
9448
|
+
const id = params.external.registry.get(schema)?.id;
|
|
9449
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9450
|
+
result.$id = params.external.uri(id);
|
|
9451
|
+
}
|
|
9119
9452
|
Object.assign(result, root.def);
|
|
9120
9453
|
const defs = params.external?.defs ?? {};
|
|
9121
9454
|
for (const entry of this.seen.entries()) {
|
|
@@ -9124,11 +9457,13 @@ var JSONSchemaGenerator = class {
|
|
|
9124
9457
|
defs[seen.defId] = seen.def;
|
|
9125
9458
|
}
|
|
9126
9459
|
}
|
|
9127
|
-
if (
|
|
9128
|
-
if (
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9460
|
+
if (params.external) {} else {
|
|
9461
|
+
if (Object.keys(defs).length > 0) {
|
|
9462
|
+
if (this.target === "draft-2020-12") {
|
|
9463
|
+
result.$defs = defs;
|
|
9464
|
+
} else {
|
|
9465
|
+
result.definitions = defs;
|
|
9466
|
+
}
|
|
9132
9467
|
}
|
|
9133
9468
|
}
|
|
9134
9469
|
try {
|
|
@@ -9149,7 +9484,7 @@ function toJSONSchema(input, _params) {
|
|
|
9149
9484
|
const schemas = {};
|
|
9150
9485
|
const external = {
|
|
9151
9486
|
registry: input,
|
|
9152
|
-
uri: _params?.uri
|
|
9487
|
+
uri: _params?.uri,
|
|
9153
9488
|
defs
|
|
9154
9489
|
};
|
|
9155
9490
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9260,11 +9595,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9260
9595
|
}
|
|
9261
9596
|
|
|
9262
9597
|
//#endregion
|
|
9263
|
-
//#region ../../node_modules/zod/
|
|
9598
|
+
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9264
9599
|
var json_schema_exports = {};
|
|
9265
9600
|
|
|
9266
9601
|
//#endregion
|
|
9267
|
-
//#region ../../node_modules/zod/
|
|
9602
|
+
//#region ../../node_modules/zod/v4/core/index.js
|
|
9268
9603
|
var core_exports = {};
|
|
9269
9604
|
__export(core_exports, {
|
|
9270
9605
|
$ZodAny: () => $ZodAny,
|
|
@@ -9303,6 +9638,7 @@ __export(core_exports, {
|
|
|
9303
9638
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9304
9639
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9305
9640
|
$ZodCustom: () => $ZodCustom,
|
|
9641
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9306
9642
|
$ZodDate: () => $ZodDate,
|
|
9307
9643
|
$ZodDefault: () => $ZodDefault,
|
|
9308
9644
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9367,6 +9703,8 @@ __export(core_exports, {
|
|
|
9367
9703
|
Doc: () => Doc,
|
|
9368
9704
|
JSONSchema: () => json_schema_exports,
|
|
9369
9705
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
9706
|
+
NEVER: () => NEVER,
|
|
9707
|
+
TimePrecision: () => TimePrecision,
|
|
9370
9708
|
_any: () => _any,
|
|
9371
9709
|
_array: () => _array,
|
|
9372
9710
|
_base64: () => _base64,
|
|
@@ -9456,6 +9794,7 @@ __export(core_exports, {
|
|
|
9456
9794
|
_size: () => _size,
|
|
9457
9795
|
_startsWith: () => _startsWith,
|
|
9458
9796
|
_string: () => _string,
|
|
9797
|
+
_stringFormat: () => _stringFormat,
|
|
9459
9798
|
_stringbool: () => _stringbool,
|
|
9460
9799
|
_success: () => _success,
|
|
9461
9800
|
_symbol: () => _symbol,
|
|
@@ -9505,7 +9844,7 @@ __export(core_exports, {
|
|
|
9505
9844
|
});
|
|
9506
9845
|
|
|
9507
9846
|
//#endregion
|
|
9508
|
-
//#region ../../node_modules/zod/
|
|
9847
|
+
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9509
9848
|
var iso_exports = {};
|
|
9510
9849
|
__export(iso_exports, {
|
|
9511
9850
|
ZodISODate: () => ZodISODate,
|
|
@@ -9547,7 +9886,7 @@ function duration(params) {
|
|
|
9547
9886
|
}
|
|
9548
9887
|
|
|
9549
9888
|
//#endregion
|
|
9550
|
-
//#region ../../node_modules/zod/
|
|
9889
|
+
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9551
9890
|
const initializer = (inst, issues) => {
|
|
9552
9891
|
$ZodError.init(inst, issues);
|
|
9553
9892
|
inst.name = "ZodError";
|
|
@@ -9565,14 +9904,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
9565
9904
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
9566
9905
|
|
|
9567
9906
|
//#endregion
|
|
9568
|
-
//#region ../../node_modules/zod/
|
|
9907
|
+
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
9569
9908
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
9570
9909
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
9571
9910
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
9572
9911
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
9573
9912
|
|
|
9574
9913
|
//#endregion
|
|
9575
|
-
//#region ../../node_modules/zod/
|
|
9914
|
+
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
9576
9915
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
9577
9916
|
$ZodType.init(inst, def);
|
|
9578
9917
|
inst.def = def;
|
|
@@ -9840,6 +10179,13 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
9840
10179
|
function jwt(params) {
|
|
9841
10180
|
return _jwt(ZodJWT, params);
|
|
9842
10181
|
}
|
|
10182
|
+
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10183
|
+
$ZodCustomStringFormat.init(inst, def);
|
|
10184
|
+
ZodStringFormat.init(inst, def);
|
|
10185
|
+
});
|
|
10186
|
+
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10187
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10188
|
+
}
|
|
9843
10189
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
9844
10190
|
$ZodNumber.init(inst, def);
|
|
9845
10191
|
ZodType.init(inst, def);
|
|
@@ -10009,9 +10355,7 @@ function keyof(schema) {
|
|
|
10009
10355
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
10010
10356
|
$ZodObject.init(inst, def);
|
|
10011
10357
|
ZodType.init(inst, def);
|
|
10012
|
-
defineLazy(inst, "shape", () =>
|
|
10013
|
-
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
10014
|
-
});
|
|
10358
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
10015
10359
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
10016
10360
|
inst.catchall = (catchall) => inst.clone({
|
|
10017
10361
|
...inst._zod.def,
|
|
@@ -10456,11 +10800,8 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10456
10800
|
$ZodCustom.init(inst, def);
|
|
10457
10801
|
ZodType.init(inst, def);
|
|
10458
10802
|
});
|
|
10459
|
-
function check(fn
|
|
10460
|
-
const ch = new $ZodCheck({
|
|
10461
|
-
check: "custom",
|
|
10462
|
-
...normalizeParams(params)
|
|
10463
|
-
});
|
|
10803
|
+
function check(fn) {
|
|
10804
|
+
const ch = new $ZodCheck({ check: "custom" });
|
|
10464
10805
|
ch._zod.check = fn;
|
|
10465
10806
|
return ch;
|
|
10466
10807
|
}
|
|
@@ -10470,7 +10811,7 @@ function custom(fn, _params) {
|
|
|
10470
10811
|
function refine(fn, _params = {}) {
|
|
10471
10812
|
return _refine(ZodCustom, fn, _params);
|
|
10472
10813
|
}
|
|
10473
|
-
function superRefine(fn
|
|
10814
|
+
function superRefine(fn) {
|
|
10474
10815
|
const ch = check((payload) => {
|
|
10475
10816
|
payload.addIssue = (issue$1) => {
|
|
10476
10817
|
if (typeof issue$1 === "string") {
|
|
@@ -10486,7 +10827,7 @@ function superRefine(fn, params) {
|
|
|
10486
10827
|
}
|
|
10487
10828
|
};
|
|
10488
10829
|
return fn(payload.value, payload);
|
|
10489
|
-
}
|
|
10830
|
+
});
|
|
10490
10831
|
return ch;
|
|
10491
10832
|
}
|
|
10492
10833
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10524,7 +10865,7 @@ function preprocess(fn, schema) {
|
|
|
10524
10865
|
}
|
|
10525
10866
|
|
|
10526
10867
|
//#endregion
|
|
10527
|
-
//#region ../../node_modules/zod/
|
|
10868
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10528
10869
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10529
10870
|
const ZodIssueCode = {
|
|
10530
10871
|
invalid_type: "invalid_type",
|
|
@@ -10539,10 +10880,6 @@ const ZodIssueCode = {
|
|
|
10539
10880
|
invalid_value: "invalid_value",
|
|
10540
10881
|
custom: "custom"
|
|
10541
10882
|
};
|
|
10542
|
-
/** @deprecated Not necessary in Zod 4. */
|
|
10543
|
-
const INVALID = Object.freeze({ status: "aborted" });
|
|
10544
|
-
/** A special constant with type `never` */
|
|
10545
|
-
const NEVER = INVALID;
|
|
10546
10883
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10547
10884
|
function setErrorMap(map$1) {
|
|
10548
10885
|
config({ customError: map$1 });
|
|
@@ -10551,9 +10888,12 @@ function setErrorMap(map$1) {
|
|
|
10551
10888
|
function getErrorMap() {
|
|
10552
10889
|
return config().customError;
|
|
10553
10890
|
}
|
|
10891
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
10892
|
+
var ZodFirstPartyTypeKind;
|
|
10893
|
+
(function(ZodFirstPartyTypeKind$1) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
10554
10894
|
|
|
10555
10895
|
//#endregion
|
|
10556
|
-
//#region ../../node_modules/zod/
|
|
10896
|
+
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
10557
10897
|
var coerce_exports = {};
|
|
10558
10898
|
__export(coerce_exports, {
|
|
10559
10899
|
bigint: () => bigint,
|
|
@@ -10579,13 +10919,14 @@ function date(params) {
|
|
|
10579
10919
|
}
|
|
10580
10920
|
|
|
10581
10921
|
//#endregion
|
|
10582
|
-
//#region ../../node_modules/zod/
|
|
10922
|
+
//#region ../../node_modules/zod/v4/classic/external.js
|
|
10583
10923
|
var external_exports = {};
|
|
10584
10924
|
__export(external_exports, {
|
|
10585
10925
|
$brand: () => $brand,
|
|
10586
10926
|
$input: () => $input,
|
|
10587
10927
|
$output: () => $output,
|
|
10588
10928
|
NEVER: () => NEVER,
|
|
10929
|
+
TimePrecision: () => TimePrecision,
|
|
10589
10930
|
ZodAny: () => ZodAny,
|
|
10590
10931
|
ZodArray: () => ZodArray,
|
|
10591
10932
|
ZodBase64: () => ZodBase64,
|
|
@@ -10599,6 +10940,7 @@ __export(external_exports, {
|
|
|
10599
10940
|
ZodCUID2: () => ZodCUID2,
|
|
10600
10941
|
ZodCatch: () => ZodCatch,
|
|
10601
10942
|
ZodCustom: () => ZodCustom,
|
|
10943
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
10602
10944
|
ZodDate: () => ZodDate,
|
|
10603
10945
|
ZodDefault: () => ZodDefault,
|
|
10604
10946
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -10608,6 +10950,7 @@ __export(external_exports, {
|
|
|
10608
10950
|
ZodEnum: () => ZodEnum,
|
|
10609
10951
|
ZodError: () => ZodError,
|
|
10610
10952
|
ZodFile: () => ZodFile,
|
|
10953
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
10611
10954
|
ZodGUID: () => ZodGUID,
|
|
10612
10955
|
ZodIPv4: () => ZodIPv4,
|
|
10613
10956
|
ZodIPv6: () => ZodIPv6,
|
|
@@ -10760,6 +11103,7 @@ __export(external_exports, {
|
|
|
10760
11103
|
startsWith: () => _startsWith,
|
|
10761
11104
|
strictObject: () => strictObject,
|
|
10762
11105
|
string: () => string$1,
|
|
11106
|
+
stringFormat: () => stringFormat,
|
|
10763
11107
|
stringbool: () => stringbool,
|
|
10764
11108
|
success: () => success,
|
|
10765
11109
|
superRefine: () => superRefine,
|
|
@@ -10790,11 +11134,11 @@ __export(external_exports, {
|
|
|
10790
11134
|
config(en_default());
|
|
10791
11135
|
|
|
10792
11136
|
//#endregion
|
|
10793
|
-
//#region ../../node_modules/zod/
|
|
11137
|
+
//#region ../../node_modules/zod/v4/classic/index.js
|
|
10794
11138
|
var classic_default = external_exports;
|
|
10795
11139
|
|
|
10796
11140
|
//#endregion
|
|
10797
|
-
//#region ../../node_modules/zod/
|
|
11141
|
+
//#region ../../node_modules/zod/v4/index.js
|
|
10798
11142
|
var v4_default = classic_default;
|
|
10799
11143
|
|
|
10800
11144
|
//#endregion
|