@settlemint/sdk-eas 2.4.1-prb370c72b → 2.4.1-prb593b885
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/eas.js +1034 -695
- package/dist/browser/eas.js.map +1 -1
- package/dist/eas.cjs +1034 -695
- package/dist/eas.cjs.map +1 -1
- package/dist/eas.js +1034 -695
- package/dist/eas.js.map +1 -1
- package/package.json +3 -3
package/dist/eas.js
CHANGED
|
@@ -88,7 +88,9 @@ const EAS_FIELD_TYPES = {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region ../../node_modules/zod/
|
|
91
|
+
//#region ../../node_modules/zod/v4/core/core.js
|
|
92
|
+
/** A special constant with type `never` */
|
|
93
|
+
const NEVER = Object.freeze({ status: "aborted" });
|
|
92
94
|
function $constructor(name, initializer$2, params) {
|
|
93
95
|
function init(inst, def) {
|
|
94
96
|
var _a;
|
|
@@ -139,7 +141,7 @@ function config(newConfig) {
|
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
//#endregion
|
|
142
|
-
//#region ../../node_modules/zod/
|
|
144
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
143
145
|
var util_exports = {};
|
|
144
146
|
__export(util_exports, {
|
|
145
147
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -154,6 +156,7 @@ __export(util_exports, {
|
|
|
154
156
|
assertNotEqual: () => assertNotEqual,
|
|
155
157
|
assignProp: () => assignProp,
|
|
156
158
|
cached: () => cached,
|
|
159
|
+
captureStackTrace: () => captureStackTrace,
|
|
157
160
|
cleanEnum: () => cleanEnum,
|
|
158
161
|
cleanRegex: () => cleanRegex,
|
|
159
162
|
clone: () => clone,
|
|
@@ -292,10 +295,14 @@ function randomString(length = 10) {
|
|
|
292
295
|
function esc(str) {
|
|
293
296
|
return JSON.stringify(str);
|
|
294
297
|
}
|
|
298
|
+
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
295
299
|
function isObject(data) {
|
|
296
300
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
297
301
|
}
|
|
298
302
|
const allowsEval = cached(() => {
|
|
303
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
304
|
+
return false;
|
|
305
|
+
}
|
|
299
306
|
try {
|
|
300
307
|
const F = Function;
|
|
301
308
|
new F("");
|
|
@@ -304,9 +311,6 @@ const allowsEval = cached(() => {
|
|
|
304
311
|
return false;
|
|
305
312
|
}
|
|
306
313
|
});
|
|
307
|
-
function _isObject(o) {
|
|
308
|
-
return Object.prototype.toString.call(o) === "[object Object]";
|
|
309
|
-
}
|
|
310
314
|
function isPlainObject(o) {
|
|
311
315
|
if (isObject(o) === false) return false;
|
|
312
316
|
const ctor = o.constructor;
|
|
@@ -486,6 +490,9 @@ function omit(schema, mask) {
|
|
|
486
490
|
});
|
|
487
491
|
}
|
|
488
492
|
function extend(schema, shape) {
|
|
493
|
+
if (!isPlainObject(shape)) {
|
|
494
|
+
throw new Error("Invalid input to extend: expected a plain object");
|
|
495
|
+
}
|
|
489
496
|
const def = {
|
|
490
497
|
...schema._zod.def,
|
|
491
498
|
get shape() {
|
|
@@ -573,7 +580,7 @@ function required(Class$1, schema, mask) {
|
|
|
573
580
|
}
|
|
574
581
|
function aborted(x, startIndex = 0) {
|
|
575
582
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
576
|
-
if (x.issues[i]
|
|
583
|
+
if (x.issues[i]?.continue !== true) return true;
|
|
577
584
|
}
|
|
578
585
|
return false;
|
|
579
586
|
}
|
|
@@ -637,7 +644,7 @@ var Class = class {
|
|
|
637
644
|
};
|
|
638
645
|
|
|
639
646
|
//#endregion
|
|
640
|
-
//#region ../../node_modules/zod/
|
|
647
|
+
//#region ../../node_modules/zod/v4/core/errors.js
|
|
641
648
|
const initializer$1 = (inst, def) => {
|
|
642
649
|
inst.name = "$ZodError";
|
|
643
650
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -654,13 +661,17 @@ const initializer$1 = (inst, def) => {
|
|
|
654
661
|
},
|
|
655
662
|
enumerable: true
|
|
656
663
|
});
|
|
664
|
+
Object.defineProperty(inst, "toString", {
|
|
665
|
+
value: () => inst.message,
|
|
666
|
+
enumerable: false
|
|
667
|
+
});
|
|
657
668
|
};
|
|
658
669
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
659
670
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
660
|
-
function flattenError(error$
|
|
671
|
+
function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
661
672
|
const fieldErrors = {};
|
|
662
673
|
const formErrors = [];
|
|
663
|
-
for (const sub of error$
|
|
674
|
+
for (const sub of error$39.issues) {
|
|
664
675
|
if (sub.path.length > 0) {
|
|
665
676
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
666
677
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -673,13 +684,13 @@ function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
|
673
684
|
fieldErrors
|
|
674
685
|
};
|
|
675
686
|
}
|
|
676
|
-
function formatError(error$
|
|
687
|
+
function formatError(error$39, _mapper) {
|
|
677
688
|
const mapper = _mapper || function(issue$1) {
|
|
678
689
|
return issue$1.message;
|
|
679
690
|
};
|
|
680
691
|
const fieldErrors = { _errors: [] };
|
|
681
|
-
const processError = (error$
|
|
682
|
-
for (const issue$1 of error$
|
|
692
|
+
const processError = (error$40) => {
|
|
693
|
+
for (const issue$1 of error$40.issues) {
|
|
683
694
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
684
695
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
685
696
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -706,17 +717,17 @@ function formatError(error$37, _mapper) {
|
|
|
706
717
|
}
|
|
707
718
|
}
|
|
708
719
|
};
|
|
709
|
-
processError(error$
|
|
720
|
+
processError(error$39);
|
|
710
721
|
return fieldErrors;
|
|
711
722
|
}
|
|
712
|
-
function treeifyError(error$
|
|
723
|
+
function treeifyError(error$39, _mapper) {
|
|
713
724
|
const mapper = _mapper || function(issue$1) {
|
|
714
725
|
return issue$1.message;
|
|
715
726
|
};
|
|
716
727
|
const result = { errors: [] };
|
|
717
|
-
const processError = (error$
|
|
728
|
+
const processError = (error$40, path = []) => {
|
|
718
729
|
var _a, _b;
|
|
719
|
-
for (const issue$1 of error$
|
|
730
|
+
for (const issue$1 of error$40.issues) {
|
|
720
731
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
721
732
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
722
733
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -751,7 +762,7 @@ function treeifyError(error$37, _mapper) {
|
|
|
751
762
|
}
|
|
752
763
|
}
|
|
753
764
|
};
|
|
754
|
-
processError(error$
|
|
765
|
+
processError(error$39);
|
|
755
766
|
return result;
|
|
756
767
|
}
|
|
757
768
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -799,9 +810,9 @@ function toDotPath(path) {
|
|
|
799
810
|
}
|
|
800
811
|
return segs.join("");
|
|
801
812
|
}
|
|
802
|
-
function prettifyError(error$
|
|
813
|
+
function prettifyError(error$39) {
|
|
803
814
|
const lines = [];
|
|
804
|
-
const issues = [...error$
|
|
815
|
+
const issues = [...error$39.issues].sort((a, b) => a.path.length - b.path.length);
|
|
805
816
|
for (const issue$1 of issues) {
|
|
806
817
|
lines.push(`✖ ${issue$1.message}`);
|
|
807
818
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -810,7 +821,7 @@ function prettifyError(error$37) {
|
|
|
810
821
|
}
|
|
811
822
|
|
|
812
823
|
//#endregion
|
|
813
|
-
//#region ../../node_modules/zod/
|
|
824
|
+
//#region ../../node_modules/zod/v4/core/parse.js
|
|
814
825
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
815
826
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
816
827
|
const result = schema._zod.run({
|
|
@@ -822,7 +833,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
822
833
|
}
|
|
823
834
|
if (result.issues.length) {
|
|
824
835
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
825
|
-
|
|
836
|
+
captureStackTrace(e, _params?.callee);
|
|
826
837
|
throw e;
|
|
827
838
|
}
|
|
828
839
|
return result.value;
|
|
@@ -837,7 +848,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
837
848
|
if (result instanceof Promise) result = await result;
|
|
838
849
|
if (result.issues.length) {
|
|
839
850
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
840
|
-
|
|
851
|
+
captureStackTrace(e, params?.callee);
|
|
841
852
|
throw e;
|
|
842
853
|
}
|
|
843
854
|
return result.value;
|
|
@@ -882,10 +893,9 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
882
893
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
883
894
|
|
|
884
895
|
//#endregion
|
|
885
|
-
//#region ../../node_modules/zod/
|
|
896
|
+
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
886
897
|
var regexes_exports = {};
|
|
887
898
|
__export(regexes_exports, {
|
|
888
|
-
_emoji: () => _emoji$1,
|
|
889
899
|
base64: () => base64$1,
|
|
890
900
|
base64url: () => base64url$1,
|
|
891
901
|
bigint: () => bigint$2,
|
|
@@ -971,27 +981,23 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
971
981
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
972
982
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
973
983
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
974
|
-
const dateSource = `((
|
|
984
|
+
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])))`;
|
|
975
985
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
976
986
|
function timeSource(args) {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
980
|
-
} else if (args.precision == null) {
|
|
981
|
-
regex = `${regex}(\\.\\d+)?`;
|
|
982
|
-
}
|
|
987
|
+
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
988
|
+
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+)?)?`;
|
|
983
989
|
return regex;
|
|
984
990
|
}
|
|
985
991
|
function time$1(args) {
|
|
986
992
|
return new RegExp(`^${timeSource(args)}$`);
|
|
987
993
|
}
|
|
988
994
|
function datetime$1(args) {
|
|
989
|
-
|
|
990
|
-
const opts = [];
|
|
991
|
-
|
|
992
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
993
|
-
|
|
994
|
-
return new RegExp(`^${
|
|
995
|
+
const time$2 = timeSource({ precision: args.precision });
|
|
996
|
+
const opts = ["Z"];
|
|
997
|
+
if (args.local) opts.push("");
|
|
998
|
+
if (args.offset) opts.push(`([+-]\\d{2}:\\d{2})`);
|
|
999
|
+
const timeRegex = `${time$2}(?:${opts.join("|")})`;
|
|
1000
|
+
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
995
1001
|
}
|
|
996
1002
|
const string$2 = (params) => {
|
|
997
1003
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -1007,7 +1013,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
1007
1013
|
const uppercase = /^[^a-z]*$/;
|
|
1008
1014
|
|
|
1009
1015
|
//#endregion
|
|
1010
|
-
//#region ../../node_modules/zod/
|
|
1016
|
+
//#region ../../node_modules/zod/v4/core/checks.js
|
|
1011
1017
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1012
1018
|
var _a;
|
|
1013
1019
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1198,11 +1204,12 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1198
1204
|
};
|
|
1199
1205
|
});
|
|
1200
1206
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1207
|
+
var _a;
|
|
1201
1208
|
$ZodCheck.init(inst, def);
|
|
1202
|
-
inst._zod.when = (payload) => {
|
|
1209
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1203
1210
|
const val = payload.value;
|
|
1204
1211
|
return !nullish$1(val) && val.size !== undefined;
|
|
1205
|
-
};
|
|
1212
|
+
});
|
|
1206
1213
|
inst._zod.onattach.push((inst$1) => {
|
|
1207
1214
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1208
1215
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1222,11 +1229,12 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1222
1229
|
};
|
|
1223
1230
|
});
|
|
1224
1231
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1232
|
+
var _a;
|
|
1225
1233
|
$ZodCheck.init(inst, def);
|
|
1226
|
-
inst._zod.when = (payload) => {
|
|
1234
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1227
1235
|
const val = payload.value;
|
|
1228
1236
|
return !nullish$1(val) && val.size !== undefined;
|
|
1229
|
-
};
|
|
1237
|
+
});
|
|
1230
1238
|
inst._zod.onattach.push((inst$1) => {
|
|
1231
1239
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1232
1240
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1246,11 +1254,12 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1246
1254
|
};
|
|
1247
1255
|
});
|
|
1248
1256
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1257
|
+
var _a;
|
|
1249
1258
|
$ZodCheck.init(inst, def);
|
|
1250
|
-
inst._zod.when = (payload) => {
|
|
1259
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1251
1260
|
const val = payload.value;
|
|
1252
1261
|
return !nullish$1(val) && val.size !== undefined;
|
|
1253
|
-
};
|
|
1262
|
+
});
|
|
1254
1263
|
inst._zod.onattach.push((inst$1) => {
|
|
1255
1264
|
const bag = inst$1._zod.bag;
|
|
1256
1265
|
bag.minimum = def.size;
|
|
@@ -1271,6 +1280,8 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1271
1280
|
code: "too_small",
|
|
1272
1281
|
minimum: def.size
|
|
1273
1282
|
},
|
|
1283
|
+
inclusive: true,
|
|
1284
|
+
exact: true,
|
|
1274
1285
|
input: payload.value,
|
|
1275
1286
|
inst,
|
|
1276
1287
|
continue: !def.abort
|
|
@@ -1278,11 +1289,12 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1278
1289
|
};
|
|
1279
1290
|
});
|
|
1280
1291
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1292
|
+
var _a;
|
|
1281
1293
|
$ZodCheck.init(inst, def);
|
|
1282
|
-
inst._zod.when = (payload) => {
|
|
1294
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1283
1295
|
const val = payload.value;
|
|
1284
1296
|
return !nullish$1(val) && val.length !== undefined;
|
|
1285
|
-
};
|
|
1297
|
+
});
|
|
1286
1298
|
inst._zod.onattach.push((inst$1) => {
|
|
1287
1299
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1288
1300
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1304,11 +1316,12 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1304
1316
|
};
|
|
1305
1317
|
});
|
|
1306
1318
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1319
|
+
var _a;
|
|
1307
1320
|
$ZodCheck.init(inst, def);
|
|
1308
|
-
inst._zod.when = (payload) => {
|
|
1321
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1309
1322
|
const val = payload.value;
|
|
1310
1323
|
return !nullish$1(val) && val.length !== undefined;
|
|
1311
|
-
};
|
|
1324
|
+
});
|
|
1312
1325
|
inst._zod.onattach.push((inst$1) => {
|
|
1313
1326
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1314
1327
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1330,11 +1343,12 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1330
1343
|
};
|
|
1331
1344
|
});
|
|
1332
1345
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1346
|
+
var _a;
|
|
1333
1347
|
$ZodCheck.init(inst, def);
|
|
1334
|
-
inst._zod.when = (payload) => {
|
|
1348
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1335
1349
|
const val = payload.value;
|
|
1336
1350
|
return !nullish$1(val) && val.length !== undefined;
|
|
1337
|
-
};
|
|
1351
|
+
});
|
|
1338
1352
|
inst._zod.onattach.push((inst$1) => {
|
|
1339
1353
|
const bag = inst$1._zod.bag;
|
|
1340
1354
|
bag.minimum = def.length;
|
|
@@ -1356,6 +1370,8 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1356
1370
|
code: "too_small",
|
|
1357
1371
|
minimum: def.length
|
|
1358
1372
|
},
|
|
1373
|
+
inclusive: true,
|
|
1374
|
+
exact: true,
|
|
1359
1375
|
input: payload.value,
|
|
1360
1376
|
inst,
|
|
1361
1377
|
continue: !def.abort
|
|
@@ -1363,7 +1379,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1363
1379
|
};
|
|
1364
1380
|
});
|
|
1365
1381
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1366
|
-
var _a;
|
|
1382
|
+
var _a, _b;
|
|
1367
1383
|
$ZodCheck.init(inst, def);
|
|
1368
1384
|
inst._zod.onattach.push((inst$1) => {
|
|
1369
1385
|
const bag = inst$1._zod.bag;
|
|
@@ -1373,8 +1389,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1373
1389
|
bag.patterns.add(def.pattern);
|
|
1374
1390
|
}
|
|
1375
1391
|
});
|
|
1376
|
-
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1377
|
-
if (!def.pattern) throw new Error("Not implemented.");
|
|
1392
|
+
if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1378
1393
|
def.pattern.lastIndex = 0;
|
|
1379
1394
|
if (def.pattern.test(payload.value)) return;
|
|
1380
1395
|
payload.issues.push({
|
|
@@ -1387,6 +1402,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1387
1402
|
continue: !def.abort
|
|
1388
1403
|
});
|
|
1389
1404
|
});
|
|
1405
|
+
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1390
1406
|
});
|
|
1391
1407
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1392
1408
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1510,7 +1526,6 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1510
1526
|
code: "invalid_value",
|
|
1511
1527
|
values: def.mime,
|
|
1512
1528
|
input: payload.value.type,
|
|
1513
|
-
path: ["type"],
|
|
1514
1529
|
inst
|
|
1515
1530
|
});
|
|
1516
1531
|
};
|
|
@@ -1523,7 +1538,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1523
1538
|
});
|
|
1524
1539
|
|
|
1525
1540
|
//#endregion
|
|
1526
|
-
//#region ../../node_modules/zod/
|
|
1541
|
+
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1527
1542
|
var Doc = class {
|
|
1528
1543
|
constructor(args = []) {
|
|
1529
1544
|
this.content = [];
|
|
@@ -1559,19 +1574,18 @@ var Doc = class {
|
|
|
1559
1574
|
};
|
|
1560
1575
|
|
|
1561
1576
|
//#endregion
|
|
1562
|
-
//#region ../../node_modules/zod/
|
|
1577
|
+
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1563
1578
|
const version = {
|
|
1564
1579
|
major: 4,
|
|
1565
1580
|
minor: 0,
|
|
1566
|
-
patch:
|
|
1581
|
+
patch: 2
|
|
1567
1582
|
};
|
|
1568
1583
|
|
|
1569
1584
|
//#endregion
|
|
1570
|
-
//#region ../../node_modules/zod/
|
|
1585
|
+
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1571
1586
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1572
1587
|
var _a;
|
|
1573
1588
|
inst ?? (inst = {});
|
|
1574
|
-
inst._zod.id = def.type + "_" + randomString(10);
|
|
1575
1589
|
inst._zod.def = def;
|
|
1576
1590
|
inst._zod.bag = inst._zod.bag || {};
|
|
1577
1591
|
inst._zod.version = version;
|
|
@@ -1594,13 +1608,11 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1594
1608
|
let isAborted = aborted(payload);
|
|
1595
1609
|
let asyncResult;
|
|
1596
1610
|
for (const ch of checks$1) {
|
|
1597
|
-
if (ch._zod.when) {
|
|
1598
|
-
const shouldRun = ch._zod.when(payload);
|
|
1611
|
+
if (ch._zod.def.when) {
|
|
1612
|
+
const shouldRun = ch._zod.def.when(payload);
|
|
1599
1613
|
if (!shouldRun) continue;
|
|
1600
|
-
} else {
|
|
1601
|
-
|
|
1602
|
-
continue;
|
|
1603
|
-
}
|
|
1614
|
+
} else if (isAborted) {
|
|
1615
|
+
continue;
|
|
1604
1616
|
}
|
|
1605
1617
|
const currLen = payload.issues.length;
|
|
1606
1618
|
const _ = ch._zod.check(payload);
|
|
@@ -1700,7 +1712,9 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1700
1712
|
$ZodStringFormat.init(inst, def);
|
|
1701
1713
|
inst._zod.check = (payload) => {
|
|
1702
1714
|
try {
|
|
1703
|
-
const
|
|
1715
|
+
const orig = payload.value;
|
|
1716
|
+
const url$1 = new URL(orig);
|
|
1717
|
+
const href = url$1.href;
|
|
1704
1718
|
if (def.hostname) {
|
|
1705
1719
|
def.hostname.lastIndex = 0;
|
|
1706
1720
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -1729,6 +1743,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1729
1743
|
});
|
|
1730
1744
|
}
|
|
1731
1745
|
}
|
|
1746
|
+
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
1747
|
+
payload.value = href.slice(0, -1);
|
|
1748
|
+
} else {
|
|
1749
|
+
payload.value = href;
|
|
1750
|
+
}
|
|
1732
1751
|
return;
|
|
1733
1752
|
} catch (_) {
|
|
1734
1753
|
payload.issues.push({
|
|
@@ -1899,6 +1918,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1899
1918
|
const tokensParts = token.split(".");
|
|
1900
1919
|
if (tokensParts.length !== 3) return false;
|
|
1901
1920
|
const [header] = tokensParts;
|
|
1921
|
+
if (!header) return false;
|
|
1902
1922
|
const parsedHeader = JSON.parse(atob(header));
|
|
1903
1923
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
1904
1924
|
if (!parsedHeader.alg) return false;
|
|
@@ -1921,6 +1941,19 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1921
1941
|
});
|
|
1922
1942
|
};
|
|
1923
1943
|
});
|
|
1944
|
+
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
1945
|
+
$ZodStringFormat.init(inst, def);
|
|
1946
|
+
inst._zod.check = (payload) => {
|
|
1947
|
+
if (def.fn(payload.value)) return;
|
|
1948
|
+
payload.issues.push({
|
|
1949
|
+
code: "invalid_format",
|
|
1950
|
+
format: def.format,
|
|
1951
|
+
input: payload.value,
|
|
1952
|
+
inst,
|
|
1953
|
+
continue: !def.abort
|
|
1954
|
+
});
|
|
1955
|
+
};
|
|
1956
|
+
});
|
|
1924
1957
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
1925
1958
|
$ZodType.init(inst, def);
|
|
1926
1959
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -1972,12 +2005,11 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
1972
2005
|
if (def.coerce) try {
|
|
1973
2006
|
payload.value = BigInt(payload.value);
|
|
1974
2007
|
} catch (_) {}
|
|
1975
|
-
|
|
1976
|
-
if (typeof input === "bigint") return payload;
|
|
2008
|
+
if (typeof payload.value === "bigint") return payload;
|
|
1977
2009
|
payload.issues.push({
|
|
1978
2010
|
expected: "bigint",
|
|
1979
2011
|
code: "invalid_type",
|
|
1980
|
-
input,
|
|
2012
|
+
input: payload.value,
|
|
1981
2013
|
inst
|
|
1982
2014
|
});
|
|
1983
2015
|
return payload;
|
|
@@ -1990,7 +2022,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
1990
2022
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
1991
2023
|
$ZodType.init(inst, def);
|
|
1992
2024
|
inst._zod.parse = (payload, _ctx) => {
|
|
1993
|
-
const
|
|
2025
|
+
const input = payload.value;
|
|
1994
2026
|
if (typeof input === "symbol") return payload;
|
|
1995
2027
|
payload.issues.push({
|
|
1996
2028
|
expected: "symbol",
|
|
@@ -2005,8 +2037,10 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
2005
2037
|
$ZodType.init(inst, def);
|
|
2006
2038
|
inst._zod.pattern = _undefined$2;
|
|
2007
2039
|
inst._zod.values = new Set([undefined]);
|
|
2040
|
+
inst._zod.optin = "optional";
|
|
2041
|
+
inst._zod.optout = "optional";
|
|
2008
2042
|
inst._zod.parse = (payload, _ctx) => {
|
|
2009
|
-
const
|
|
2043
|
+
const input = payload.value;
|
|
2010
2044
|
if (typeof input === "undefined") return payload;
|
|
2011
2045
|
payload.issues.push({
|
|
2012
2046
|
expected: "undefined",
|
|
@@ -2022,7 +2056,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
2022
2056
|
inst._zod.pattern = _null$2;
|
|
2023
2057
|
inst._zod.values = new Set([null]);
|
|
2024
2058
|
inst._zod.parse = (payload, _ctx) => {
|
|
2025
|
-
const
|
|
2059
|
+
const input = payload.value;
|
|
2026
2060
|
if (input === null) return payload;
|
|
2027
2061
|
payload.issues.push({
|
|
2028
2062
|
expected: "null",
|
|
@@ -2056,7 +2090,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2056
2090
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
2057
2091
|
$ZodType.init(inst, def);
|
|
2058
2092
|
inst._zod.parse = (payload, _ctx) => {
|
|
2059
|
-
const
|
|
2093
|
+
const input = payload.value;
|
|
2060
2094
|
if (typeof input === "undefined") return payload;
|
|
2061
2095
|
payload.issues.push({
|
|
2062
2096
|
expected: "void",
|
|
@@ -2187,19 +2221,20 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2187
2221
|
"payload",
|
|
2188
2222
|
"ctx"
|
|
2189
2223
|
]);
|
|
2190
|
-
const
|
|
2224
|
+
const normalized = _normalized.value;
|
|
2191
2225
|
const parseStr = (key) => {
|
|
2192
2226
|
const k = esc(key);
|
|
2193
2227
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2194
2228
|
};
|
|
2195
2229
|
doc.write(`const input = payload.value;`);
|
|
2196
2230
|
const ids = Object.create(null);
|
|
2197
|
-
|
|
2198
|
-
|
|
2231
|
+
let counter = 0;
|
|
2232
|
+
for (const key of normalized.keys) {
|
|
2233
|
+
ids[key] = `key_${counter++}`;
|
|
2199
2234
|
}
|
|
2200
2235
|
doc.write(`const newResult = {}`);
|
|
2201
|
-
for (const key of keys) {
|
|
2202
|
-
if (optionalKeys
|
|
2236
|
+
for (const key of normalized.keys) {
|
|
2237
|
+
if (normalized.optionalKeys.has(key)) {
|
|
2203
2238
|
const id = ids[key];
|
|
2204
2239
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2205
2240
|
const k = esc(key);
|
|
@@ -2244,7 +2279,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2244
2279
|
const jit = !globalConfig.jitless;
|
|
2245
2280
|
const allowsEval$1 = allowsEval;
|
|
2246
2281
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2247
|
-
const
|
|
2282
|
+
const catchall = def.catchall;
|
|
2248
2283
|
let value;
|
|
2249
2284
|
inst._zod.parse = (payload, ctx) => {
|
|
2250
2285
|
value ?? (value = _normalized.value);
|
|
@@ -2274,12 +2309,10 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2274
2309
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2275
2310
|
if (r instanceof Promise) {
|
|
2276
2311
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2312
|
+
} else if (isOptional) {
|
|
2313
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2277
2314
|
} else {
|
|
2278
|
-
|
|
2279
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2280
|
-
} else {
|
|
2281
|
-
handleObjectResult(r, payload, key);
|
|
2282
|
-
}
|
|
2315
|
+
handleObjectResult(r, payload, key);
|
|
2283
2316
|
}
|
|
2284
2317
|
}
|
|
2285
2318
|
}
|
|
@@ -2337,6 +2370,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2337
2370
|
}
|
|
2338
2371
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2339
2372
|
$ZodType.init(inst, def);
|
|
2373
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2374
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2340
2375
|
defineLazy(inst._zod, "values", () => {
|
|
2341
2376
|
if (def.options.every((o) => o._zod.values)) {
|
|
2342
2377
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2436,7 +2471,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2436
2471
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2437
2472
|
$ZodType.init(inst, def);
|
|
2438
2473
|
inst._zod.parse = (payload, ctx) => {
|
|
2439
|
-
const
|
|
2474
|
+
const input = payload.value;
|
|
2440
2475
|
const left = def.left._zod.run({
|
|
2441
2476
|
value: input,
|
|
2442
2477
|
issues: []
|
|
@@ -2893,6 +2928,9 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2893
2928
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
2894
2929
|
});
|
|
2895
2930
|
inst._zod.parse = (payload, ctx) => {
|
|
2931
|
+
if (def.innerType._zod.optin === "optional") {
|
|
2932
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2933
|
+
}
|
|
2896
2934
|
if (payload.value === undefined) {
|
|
2897
2935
|
return payload;
|
|
2898
2936
|
}
|
|
@@ -2992,7 +3030,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
2992
3030
|
});
|
|
2993
3031
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
2994
3032
|
$ZodType.init(inst, def);
|
|
2995
|
-
|
|
3033
|
+
inst._zod.optin = "optional";
|
|
2996
3034
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
2997
3035
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2998
3036
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3063,6 +3101,7 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3063
3101
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3064
3102
|
$ZodType.init(inst, def);
|
|
3065
3103
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3104
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3066
3105
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3067
3106
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3068
3107
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3113,7 +3152,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3113
3152
|
input: payload.value,
|
|
3114
3153
|
inst,
|
|
3115
3154
|
code: "invalid_format",
|
|
3116
|
-
format: "template_literal",
|
|
3155
|
+
format: def.format ?? "template_literal",
|
|
3117
3156
|
pattern: inst._zod.pattern.source
|
|
3118
3157
|
});
|
|
3119
3158
|
return payload;
|
|
@@ -3173,8 +3212,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3173
3212
|
}
|
|
3174
3213
|
|
|
3175
3214
|
//#endregion
|
|
3176
|
-
//#region ../../node_modules/zod/
|
|
3177
|
-
const error$
|
|
3215
|
+
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3216
|
+
const error$38 = () => {
|
|
3178
3217
|
const Sizable = {
|
|
3179
3218
|
string: {
|
|
3180
3219
|
unit: "حرف",
|
|
@@ -3196,7 +3235,7 @@ const error$36 = () => {
|
|
|
3196
3235
|
function getSizing(origin) {
|
|
3197
3236
|
return Sizable[origin] ?? null;
|
|
3198
3237
|
}
|
|
3199
|
-
const parsedType$
|
|
3238
|
+
const parsedType$3 = (data) => {
|
|
3200
3239
|
const t = typeof data;
|
|
3201
3240
|
switch (t) {
|
|
3202
3241
|
case "number": {
|
|
@@ -3248,7 +3287,7 @@ const error$36 = () => {
|
|
|
3248
3287
|
};
|
|
3249
3288
|
return (issue$1) => {
|
|
3250
3289
|
switch (issue$1.code) {
|
|
3251
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3290
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$3(issue$1.input)}`;
|
|
3252
3291
|
case "invalid_value":
|
|
3253
3292
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3254
3293
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3284,12 +3323,12 @@ const error$36 = () => {
|
|
|
3284
3323
|
};
|
|
3285
3324
|
};
|
|
3286
3325
|
function ar_default() {
|
|
3287
|
-
return { localeError: error$
|
|
3326
|
+
return { localeError: error$38() };
|
|
3288
3327
|
}
|
|
3289
3328
|
|
|
3290
3329
|
//#endregion
|
|
3291
|
-
//#region ../../node_modules/zod/
|
|
3292
|
-
const error$
|
|
3330
|
+
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3331
|
+
const error$37 = () => {
|
|
3293
3332
|
const Sizable = {
|
|
3294
3333
|
string: {
|
|
3295
3334
|
unit: "simvol",
|
|
@@ -3311,7 +3350,7 @@ const error$35 = () => {
|
|
|
3311
3350
|
function getSizing(origin) {
|
|
3312
3351
|
return Sizable[origin] ?? null;
|
|
3313
3352
|
}
|
|
3314
|
-
const parsedType$
|
|
3353
|
+
const parsedType$3 = (data) => {
|
|
3315
3354
|
const t = typeof data;
|
|
3316
3355
|
switch (t) {
|
|
3317
3356
|
case "number": {
|
|
@@ -3363,7 +3402,7 @@ const error$35 = () => {
|
|
|
3363
3402
|
};
|
|
3364
3403
|
return (issue$1) => {
|
|
3365
3404
|
switch (issue$1.code) {
|
|
3366
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3405
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$3(issue$1.input)}`;
|
|
3367
3406
|
case "invalid_value":
|
|
3368
3407
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3369
3408
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3397,11 +3436,11 @@ const error$35 = () => {
|
|
|
3397
3436
|
};
|
|
3398
3437
|
};
|
|
3399
3438
|
function az_default() {
|
|
3400
|
-
return { localeError: error$
|
|
3439
|
+
return { localeError: error$37() };
|
|
3401
3440
|
}
|
|
3402
3441
|
|
|
3403
3442
|
//#endregion
|
|
3404
|
-
//#region ../../node_modules/zod/
|
|
3443
|
+
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3405
3444
|
function getBelarusianPlural(count, one, few, many) {
|
|
3406
3445
|
const absCount = Math.abs(count);
|
|
3407
3446
|
const lastDigit = absCount % 10;
|
|
@@ -3417,7 +3456,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3417
3456
|
}
|
|
3418
3457
|
return many;
|
|
3419
3458
|
}
|
|
3420
|
-
const error$
|
|
3459
|
+
const error$36 = () => {
|
|
3421
3460
|
const Sizable = {
|
|
3422
3461
|
string: {
|
|
3423
3462
|
unit: {
|
|
@@ -3455,7 +3494,7 @@ const error$34 = () => {
|
|
|
3455
3494
|
function getSizing(origin) {
|
|
3456
3495
|
return Sizable[origin] ?? null;
|
|
3457
3496
|
}
|
|
3458
|
-
const parsedType$
|
|
3497
|
+
const parsedType$3 = (data) => {
|
|
3459
3498
|
const t = typeof data;
|
|
3460
3499
|
switch (t) {
|
|
3461
3500
|
case "number": {
|
|
@@ -3507,7 +3546,7 @@ const error$34 = () => {
|
|
|
3507
3546
|
};
|
|
3508
3547
|
return (issue$1) => {
|
|
3509
3548
|
switch (issue$1.code) {
|
|
3510
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3549
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$3(issue$1.input)}`;
|
|
3511
3550
|
case "invalid_value":
|
|
3512
3551
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3513
3552
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3549,12 +3588,12 @@ const error$34 = () => {
|
|
|
3549
3588
|
};
|
|
3550
3589
|
};
|
|
3551
3590
|
function be_default() {
|
|
3552
|
-
return { localeError: error$
|
|
3591
|
+
return { localeError: error$36() };
|
|
3553
3592
|
}
|
|
3554
3593
|
|
|
3555
3594
|
//#endregion
|
|
3556
|
-
//#region ../../node_modules/zod/
|
|
3557
|
-
const error$
|
|
3595
|
+
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3596
|
+
const error$35 = () => {
|
|
3558
3597
|
const Sizable = {
|
|
3559
3598
|
string: {
|
|
3560
3599
|
unit: "caràcters",
|
|
@@ -3576,7 +3615,7 @@ const error$33 = () => {
|
|
|
3576
3615
|
function getSizing(origin) {
|
|
3577
3616
|
return Sizable[origin] ?? null;
|
|
3578
3617
|
}
|
|
3579
|
-
const parsedType$
|
|
3618
|
+
const parsedType$3 = (data) => {
|
|
3580
3619
|
const t = typeof data;
|
|
3581
3620
|
switch (t) {
|
|
3582
3621
|
case "number": {
|
|
@@ -3628,7 +3667,7 @@ const error$33 = () => {
|
|
|
3628
3667
|
};
|
|
3629
3668
|
return (issue$1) => {
|
|
3630
3669
|
switch (issue$1.code) {
|
|
3631
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
3670
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$3(issue$1.input)}`;
|
|
3632
3671
|
case "invalid_value":
|
|
3633
3672
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3634
3673
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -3666,12 +3705,12 @@ const error$33 = () => {
|
|
|
3666
3705
|
};
|
|
3667
3706
|
};
|
|
3668
3707
|
function ca_default() {
|
|
3669
|
-
return { localeError: error$
|
|
3708
|
+
return { localeError: error$35() };
|
|
3670
3709
|
}
|
|
3671
3710
|
|
|
3672
3711
|
//#endregion
|
|
3673
|
-
//#region ../../node_modules/zod/
|
|
3674
|
-
const error$
|
|
3712
|
+
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
3713
|
+
const error$34 = () => {
|
|
3675
3714
|
const Sizable = {
|
|
3676
3715
|
string: {
|
|
3677
3716
|
unit: "znaků",
|
|
@@ -3693,7 +3732,7 @@ const error$32 = () => {
|
|
|
3693
3732
|
function getSizing(origin) {
|
|
3694
3733
|
return Sizable[origin] ?? null;
|
|
3695
3734
|
}
|
|
3696
|
-
const parsedType$
|
|
3735
|
+
const parsedType$3 = (data) => {
|
|
3697
3736
|
const t = typeof data;
|
|
3698
3737
|
switch (t) {
|
|
3699
3738
|
case "number": {
|
|
@@ -3763,7 +3802,7 @@ const error$32 = () => {
|
|
|
3763
3802
|
};
|
|
3764
3803
|
return (issue$1) => {
|
|
3765
3804
|
switch (issue$1.code) {
|
|
3766
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
3805
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$3(issue$1.input)}`;
|
|
3767
3806
|
case "invalid_value":
|
|
3768
3807
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3769
3808
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3801,12 +3840,12 @@ const error$32 = () => {
|
|
|
3801
3840
|
};
|
|
3802
3841
|
};
|
|
3803
3842
|
function cs_default() {
|
|
3804
|
-
return { localeError: error$
|
|
3843
|
+
return { localeError: error$34() };
|
|
3805
3844
|
}
|
|
3806
3845
|
|
|
3807
3846
|
//#endregion
|
|
3808
|
-
//#region ../../node_modules/zod/
|
|
3809
|
-
const error$
|
|
3847
|
+
//#region ../../node_modules/zod/v4/locales/de.js
|
|
3848
|
+
const error$33 = () => {
|
|
3810
3849
|
const Sizable = {
|
|
3811
3850
|
string: {
|
|
3812
3851
|
unit: "Zeichen",
|
|
@@ -3828,7 +3867,7 @@ const error$31 = () => {
|
|
|
3828
3867
|
function getSizing(origin) {
|
|
3829
3868
|
return Sizable[origin] ?? null;
|
|
3830
3869
|
}
|
|
3831
|
-
const parsedType$
|
|
3870
|
+
const parsedType$3 = (data) => {
|
|
3832
3871
|
const t = typeof data;
|
|
3833
3872
|
switch (t) {
|
|
3834
3873
|
case "number": {
|
|
@@ -3880,7 +3919,7 @@ const error$31 = () => {
|
|
|
3880
3919
|
};
|
|
3881
3920
|
return (issue$1) => {
|
|
3882
3921
|
switch (issue$1.code) {
|
|
3883
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
3922
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$3(issue$1.input)}`;
|
|
3884
3923
|
case "invalid_value":
|
|
3885
3924
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3886
3925
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3916,12 +3955,12 @@ const error$31 = () => {
|
|
|
3916
3955
|
};
|
|
3917
3956
|
};
|
|
3918
3957
|
function de_default() {
|
|
3919
|
-
return { localeError: error$
|
|
3958
|
+
return { localeError: error$33() };
|
|
3920
3959
|
}
|
|
3921
3960
|
|
|
3922
3961
|
//#endregion
|
|
3923
|
-
//#region ../../node_modules/zod/
|
|
3924
|
-
const parsedType$
|
|
3962
|
+
//#region ../../node_modules/zod/v4/locales/en.js
|
|
3963
|
+
const parsedType$2 = (data) => {
|
|
3925
3964
|
const t = typeof data;
|
|
3926
3965
|
switch (t) {
|
|
3927
3966
|
case "number": {
|
|
@@ -3941,7 +3980,7 @@ const parsedType$1 = (data) => {
|
|
|
3941
3980
|
}
|
|
3942
3981
|
return t;
|
|
3943
3982
|
};
|
|
3944
|
-
const error$
|
|
3983
|
+
const error$32 = () => {
|
|
3945
3984
|
const Sizable = {
|
|
3946
3985
|
string: {
|
|
3947
3986
|
unit: "characters",
|
|
@@ -3995,7 +4034,7 @@ const error$30 = () => {
|
|
|
3995
4034
|
};
|
|
3996
4035
|
return (issue$1) => {
|
|
3997
4036
|
switch (issue$1.code) {
|
|
3998
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
4037
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$2(issue$1.input)}`;
|
|
3999
4038
|
case "invalid_value":
|
|
4000
4039
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4001
4040
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4033,12 +4072,127 @@ const error$30 = () => {
|
|
|
4033
4072
|
};
|
|
4034
4073
|
};
|
|
4035
4074
|
function en_default() {
|
|
4036
|
-
return { localeError: error$
|
|
4075
|
+
return { localeError: error$32() };
|
|
4037
4076
|
}
|
|
4038
4077
|
|
|
4039
4078
|
//#endregion
|
|
4040
|
-
//#region ../../node_modules/zod/
|
|
4041
|
-
const
|
|
4079
|
+
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4080
|
+
const parsedType$1 = (data) => {
|
|
4081
|
+
const t = typeof data;
|
|
4082
|
+
switch (t) {
|
|
4083
|
+
case "number": {
|
|
4084
|
+
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4085
|
+
}
|
|
4086
|
+
case "object": {
|
|
4087
|
+
if (Array.isArray(data)) {
|
|
4088
|
+
return "tabelo";
|
|
4089
|
+
}
|
|
4090
|
+
if (data === null) {
|
|
4091
|
+
return "senvalora";
|
|
4092
|
+
}
|
|
4093
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4094
|
+
return data.constructor.name;
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
return t;
|
|
4099
|
+
};
|
|
4100
|
+
const error$31 = () => {
|
|
4101
|
+
const Sizable = {
|
|
4102
|
+
string: {
|
|
4103
|
+
unit: "karaktrojn",
|
|
4104
|
+
verb: "havi"
|
|
4105
|
+
},
|
|
4106
|
+
file: {
|
|
4107
|
+
unit: "bajtojn",
|
|
4108
|
+
verb: "havi"
|
|
4109
|
+
},
|
|
4110
|
+
array: {
|
|
4111
|
+
unit: "elementojn",
|
|
4112
|
+
verb: "havi"
|
|
4113
|
+
},
|
|
4114
|
+
set: {
|
|
4115
|
+
unit: "elementojn",
|
|
4116
|
+
verb: "havi"
|
|
4117
|
+
}
|
|
4118
|
+
};
|
|
4119
|
+
function getSizing(origin) {
|
|
4120
|
+
return Sizable[origin] ?? null;
|
|
4121
|
+
}
|
|
4122
|
+
const Nouns = {
|
|
4123
|
+
regex: "enigo",
|
|
4124
|
+
email: "retadreso",
|
|
4125
|
+
url: "URL",
|
|
4126
|
+
emoji: "emoĝio",
|
|
4127
|
+
uuid: "UUID",
|
|
4128
|
+
uuidv4: "UUIDv4",
|
|
4129
|
+
uuidv6: "UUIDv6",
|
|
4130
|
+
nanoid: "nanoid",
|
|
4131
|
+
guid: "GUID",
|
|
4132
|
+
cuid: "cuid",
|
|
4133
|
+
cuid2: "cuid2",
|
|
4134
|
+
ulid: "ULID",
|
|
4135
|
+
xid: "XID",
|
|
4136
|
+
ksuid: "KSUID",
|
|
4137
|
+
datetime: "ISO-datotempo",
|
|
4138
|
+
date: "ISO-dato",
|
|
4139
|
+
time: "ISO-tempo",
|
|
4140
|
+
duration: "ISO-daŭro",
|
|
4141
|
+
ipv4: "IPv4-adreso",
|
|
4142
|
+
ipv6: "IPv6-adreso",
|
|
4143
|
+
cidrv4: "IPv4-rango",
|
|
4144
|
+
cidrv6: "IPv6-rango",
|
|
4145
|
+
base64: "64-ume kodita karaktraro",
|
|
4146
|
+
base64url: "URL-64-ume kodita karaktraro",
|
|
4147
|
+
json_string: "JSON-karaktraro",
|
|
4148
|
+
e164: "E.164-nombro",
|
|
4149
|
+
jwt: "JWT",
|
|
4150
|
+
template_literal: "enigo"
|
|
4151
|
+
};
|
|
4152
|
+
return (issue$1) => {
|
|
4153
|
+
switch (issue$1.code) {
|
|
4154
|
+
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4155
|
+
case "invalid_value":
|
|
4156
|
+
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4157
|
+
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4158
|
+
case "too_big": {
|
|
4159
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4160
|
+
const sizing = getSizing(issue$1.origin);
|
|
4161
|
+
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4162
|
+
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4163
|
+
}
|
|
4164
|
+
case "too_small": {
|
|
4165
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4166
|
+
const sizing = getSizing(issue$1.origin);
|
|
4167
|
+
if (sizing) {
|
|
4168
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4169
|
+
}
|
|
4170
|
+
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4171
|
+
}
|
|
4172
|
+
case "invalid_format": {
|
|
4173
|
+
const _issue = issue$1;
|
|
4174
|
+
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4175
|
+
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4176
|
+
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4177
|
+
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4178
|
+
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4179
|
+
}
|
|
4180
|
+
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4181
|
+
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4182
|
+
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4183
|
+
case "invalid_union": return "Nevalida enigo";
|
|
4184
|
+
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4185
|
+
default: return `Nevalida enigo`;
|
|
4186
|
+
}
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
4189
|
+
function eo_default() {
|
|
4190
|
+
return { localeError: error$31() };
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
//#endregion
|
|
4194
|
+
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4195
|
+
const error$30 = () => {
|
|
4042
4196
|
const Sizable = {
|
|
4043
4197
|
string: {
|
|
4044
4198
|
unit: "caracteres",
|
|
@@ -4060,7 +4214,7 @@ const error$29 = () => {
|
|
|
4060
4214
|
function getSizing(origin) {
|
|
4061
4215
|
return Sizable[origin] ?? null;
|
|
4062
4216
|
}
|
|
4063
|
-
const parsedType$
|
|
4217
|
+
const parsedType$3 = (data) => {
|
|
4064
4218
|
const t = typeof data;
|
|
4065
4219
|
switch (t) {
|
|
4066
4220
|
case "number": {
|
|
@@ -4112,7 +4266,7 @@ const error$29 = () => {
|
|
|
4112
4266
|
};
|
|
4113
4267
|
return (issue$1) => {
|
|
4114
4268
|
switch (issue$1.code) {
|
|
4115
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4269
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$3(issue$1.input)}`;
|
|
4116
4270
|
case "invalid_value":
|
|
4117
4271
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4118
4272
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4148,12 +4302,12 @@ const error$29 = () => {
|
|
|
4148
4302
|
};
|
|
4149
4303
|
};
|
|
4150
4304
|
function es_default() {
|
|
4151
|
-
return { localeError: error$
|
|
4305
|
+
return { localeError: error$30() };
|
|
4152
4306
|
}
|
|
4153
4307
|
|
|
4154
4308
|
//#endregion
|
|
4155
|
-
//#region ../../node_modules/zod/
|
|
4156
|
-
const error$
|
|
4309
|
+
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4310
|
+
const error$29 = () => {
|
|
4157
4311
|
const Sizable = {
|
|
4158
4312
|
string: {
|
|
4159
4313
|
unit: "کاراکتر",
|
|
@@ -4175,7 +4329,7 @@ const error$28 = () => {
|
|
|
4175
4329
|
function getSizing(origin) {
|
|
4176
4330
|
return Sizable[origin] ?? null;
|
|
4177
4331
|
}
|
|
4178
|
-
const parsedType$
|
|
4332
|
+
const parsedType$3 = (data) => {
|
|
4179
4333
|
const t = typeof data;
|
|
4180
4334
|
switch (t) {
|
|
4181
4335
|
case "number": {
|
|
@@ -4227,7 +4381,7 @@ const error$28 = () => {
|
|
|
4227
4381
|
};
|
|
4228
4382
|
return (issue$1) => {
|
|
4229
4383
|
switch (issue$1.code) {
|
|
4230
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4384
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$3(issue$1.input)} دریافت شد`;
|
|
4231
4385
|
case "invalid_value":
|
|
4232
4386
|
if (issue$1.values.length === 1) {
|
|
4233
4387
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4275,12 +4429,12 @@ const error$28 = () => {
|
|
|
4275
4429
|
};
|
|
4276
4430
|
};
|
|
4277
4431
|
function fa_default() {
|
|
4278
|
-
return { localeError: error$
|
|
4432
|
+
return { localeError: error$29() };
|
|
4279
4433
|
}
|
|
4280
4434
|
|
|
4281
4435
|
//#endregion
|
|
4282
|
-
//#region ../../node_modules/zod/
|
|
4283
|
-
const error$
|
|
4436
|
+
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4437
|
+
const error$28 = () => {
|
|
4284
4438
|
const Sizable = {
|
|
4285
4439
|
string: {
|
|
4286
4440
|
unit: "merkkiä",
|
|
@@ -4318,7 +4472,7 @@ const error$27 = () => {
|
|
|
4318
4472
|
function getSizing(origin) {
|
|
4319
4473
|
return Sizable[origin] ?? null;
|
|
4320
4474
|
}
|
|
4321
|
-
const parsedType$
|
|
4475
|
+
const parsedType$3 = (data) => {
|
|
4322
4476
|
const t = typeof data;
|
|
4323
4477
|
switch (t) {
|
|
4324
4478
|
case "number": {
|
|
@@ -4370,7 +4524,7 @@ const error$27 = () => {
|
|
|
4370
4524
|
};
|
|
4371
4525
|
return (issue$1) => {
|
|
4372
4526
|
switch (issue$1.code) {
|
|
4373
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4527
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$3(issue$1.input)}`;
|
|
4374
4528
|
case "invalid_value":
|
|
4375
4529
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4376
4530
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4410,12 +4564,12 @@ const error$27 = () => {
|
|
|
4410
4564
|
};
|
|
4411
4565
|
};
|
|
4412
4566
|
function fi_default() {
|
|
4413
|
-
return { localeError: error$
|
|
4567
|
+
return { localeError: error$28() };
|
|
4414
4568
|
}
|
|
4415
4569
|
|
|
4416
4570
|
//#endregion
|
|
4417
|
-
//#region ../../node_modules/zod/
|
|
4418
|
-
const error$
|
|
4571
|
+
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4572
|
+
const error$27 = () => {
|
|
4419
4573
|
const Sizable = {
|
|
4420
4574
|
string: {
|
|
4421
4575
|
unit: "caractères",
|
|
@@ -4437,7 +4591,7 @@ const error$26 = () => {
|
|
|
4437
4591
|
function getSizing(origin) {
|
|
4438
4592
|
return Sizable[origin] ?? null;
|
|
4439
4593
|
}
|
|
4440
|
-
const parsedType$
|
|
4594
|
+
const parsedType$3 = (data) => {
|
|
4441
4595
|
const t = typeof data;
|
|
4442
4596
|
switch (t) {
|
|
4443
4597
|
case "number": {
|
|
@@ -4489,7 +4643,7 @@ const error$26 = () => {
|
|
|
4489
4643
|
};
|
|
4490
4644
|
return (issue$1) => {
|
|
4491
4645
|
switch (issue$1.code) {
|
|
4492
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
4646
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$3(issue$1.input)} reçu`;
|
|
4493
4647
|
case "invalid_value":
|
|
4494
4648
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
4495
4649
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -4525,12 +4679,12 @@ const error$26 = () => {
|
|
|
4525
4679
|
};
|
|
4526
4680
|
};
|
|
4527
4681
|
function fr_default() {
|
|
4528
|
-
return { localeError: error$
|
|
4682
|
+
return { localeError: error$27() };
|
|
4529
4683
|
}
|
|
4530
4684
|
|
|
4531
4685
|
//#endregion
|
|
4532
|
-
//#region ../../node_modules/zod/
|
|
4533
|
-
const error$
|
|
4686
|
+
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
4687
|
+
const error$26 = () => {
|
|
4534
4688
|
const Sizable = {
|
|
4535
4689
|
string: {
|
|
4536
4690
|
unit: "caractères",
|
|
@@ -4552,7 +4706,7 @@ const error$25 = () => {
|
|
|
4552
4706
|
function getSizing(origin) {
|
|
4553
4707
|
return Sizable[origin] ?? null;
|
|
4554
4708
|
}
|
|
4555
|
-
const parsedType$
|
|
4709
|
+
const parsedType$3 = (data) => {
|
|
4556
4710
|
const t = typeof data;
|
|
4557
4711
|
switch (t) {
|
|
4558
4712
|
case "number": {
|
|
@@ -4604,7 +4758,7 @@ const error$25 = () => {
|
|
|
4604
4758
|
};
|
|
4605
4759
|
return (issue$1) => {
|
|
4606
4760
|
switch (issue$1.code) {
|
|
4607
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
4761
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$3(issue$1.input)}`;
|
|
4608
4762
|
case "invalid_value":
|
|
4609
4763
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4610
4764
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4642,12 +4796,12 @@ const error$25 = () => {
|
|
|
4642
4796
|
};
|
|
4643
4797
|
};
|
|
4644
4798
|
function fr_CA_default() {
|
|
4645
|
-
return { localeError: error$
|
|
4799
|
+
return { localeError: error$26() };
|
|
4646
4800
|
}
|
|
4647
4801
|
|
|
4648
4802
|
//#endregion
|
|
4649
|
-
//#region ../../node_modules/zod/
|
|
4650
|
-
const error$
|
|
4803
|
+
//#region ../../node_modules/zod/v4/locales/he.js
|
|
4804
|
+
const error$25 = () => {
|
|
4651
4805
|
const Sizable = {
|
|
4652
4806
|
string: {
|
|
4653
4807
|
unit: "אותיות",
|
|
@@ -4669,7 +4823,7 @@ const error$24 = () => {
|
|
|
4669
4823
|
function getSizing(origin) {
|
|
4670
4824
|
return Sizable[origin] ?? null;
|
|
4671
4825
|
}
|
|
4672
|
-
const parsedType$
|
|
4826
|
+
const parsedType$3 = (data) => {
|
|
4673
4827
|
const t = typeof data;
|
|
4674
4828
|
switch (t) {
|
|
4675
4829
|
case "number": {
|
|
@@ -4721,7 +4875,7 @@ const error$24 = () => {
|
|
|
4721
4875
|
};
|
|
4722
4876
|
return (issue$1) => {
|
|
4723
4877
|
switch (issue$1.code) {
|
|
4724
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
4878
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$3(issue$1.input)}`;
|
|
4725
4879
|
case "invalid_value":
|
|
4726
4880
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4727
4881
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4757,12 +4911,12 @@ const error$24 = () => {
|
|
|
4757
4911
|
};
|
|
4758
4912
|
};
|
|
4759
4913
|
function he_default() {
|
|
4760
|
-
return { localeError: error$
|
|
4914
|
+
return { localeError: error$25() };
|
|
4761
4915
|
}
|
|
4762
4916
|
|
|
4763
4917
|
//#endregion
|
|
4764
|
-
//#region ../../node_modules/zod/
|
|
4765
|
-
const error$
|
|
4918
|
+
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
4919
|
+
const error$24 = () => {
|
|
4766
4920
|
const Sizable = {
|
|
4767
4921
|
string: {
|
|
4768
4922
|
unit: "karakter",
|
|
@@ -4784,7 +4938,7 @@ const error$23 = () => {
|
|
|
4784
4938
|
function getSizing(origin) {
|
|
4785
4939
|
return Sizable[origin] ?? null;
|
|
4786
4940
|
}
|
|
4787
|
-
const parsedType$
|
|
4941
|
+
const parsedType$3 = (data) => {
|
|
4788
4942
|
const t = typeof data;
|
|
4789
4943
|
switch (t) {
|
|
4790
4944
|
case "number": {
|
|
@@ -4836,7 +4990,7 @@ const error$23 = () => {
|
|
|
4836
4990
|
};
|
|
4837
4991
|
return (issue$1) => {
|
|
4838
4992
|
switch (issue$1.code) {
|
|
4839
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
4993
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$3(issue$1.input)}`;
|
|
4840
4994
|
case "invalid_value":
|
|
4841
4995
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4842
4996
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4872,12 +5026,12 @@ const error$23 = () => {
|
|
|
4872
5026
|
};
|
|
4873
5027
|
};
|
|
4874
5028
|
function hu_default() {
|
|
4875
|
-
return { localeError: error$
|
|
5029
|
+
return { localeError: error$24() };
|
|
4876
5030
|
}
|
|
4877
5031
|
|
|
4878
5032
|
//#endregion
|
|
4879
|
-
//#region ../../node_modules/zod/
|
|
4880
|
-
const error$
|
|
5033
|
+
//#region ../../node_modules/zod/v4/locales/id.js
|
|
5034
|
+
const error$23 = () => {
|
|
4881
5035
|
const Sizable = {
|
|
4882
5036
|
string: {
|
|
4883
5037
|
unit: "karakter",
|
|
@@ -4899,7 +5053,7 @@ const error$22 = () => {
|
|
|
4899
5053
|
function getSizing(origin) {
|
|
4900
5054
|
return Sizable[origin] ?? null;
|
|
4901
5055
|
}
|
|
4902
|
-
const parsedType$
|
|
5056
|
+
const parsedType$3 = (data) => {
|
|
4903
5057
|
const t = typeof data;
|
|
4904
5058
|
switch (t) {
|
|
4905
5059
|
case "number": {
|
|
@@ -4951,7 +5105,7 @@ const error$22 = () => {
|
|
|
4951
5105
|
};
|
|
4952
5106
|
return (issue$1) => {
|
|
4953
5107
|
switch (issue$1.code) {
|
|
4954
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5108
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
4955
5109
|
case "invalid_value":
|
|
4956
5110
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4957
5111
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4987,12 +5141,12 @@ const error$22 = () => {
|
|
|
4987
5141
|
};
|
|
4988
5142
|
};
|
|
4989
5143
|
function id_default() {
|
|
4990
|
-
return { localeError: error$
|
|
5144
|
+
return { localeError: error$23() };
|
|
4991
5145
|
}
|
|
4992
5146
|
|
|
4993
5147
|
//#endregion
|
|
4994
|
-
//#region ../../node_modules/zod/
|
|
4995
|
-
const error$
|
|
5148
|
+
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5149
|
+
const error$22 = () => {
|
|
4996
5150
|
const Sizable = {
|
|
4997
5151
|
string: {
|
|
4998
5152
|
unit: "caratteri",
|
|
@@ -5014,7 +5168,7 @@ const error$21 = () => {
|
|
|
5014
5168
|
function getSizing(origin) {
|
|
5015
5169
|
return Sizable[origin] ?? null;
|
|
5016
5170
|
}
|
|
5017
|
-
const parsedType$
|
|
5171
|
+
const parsedType$3 = (data) => {
|
|
5018
5172
|
const t = typeof data;
|
|
5019
5173
|
switch (t) {
|
|
5020
5174
|
case "number": {
|
|
@@ -5066,7 +5220,7 @@ const error$21 = () => {
|
|
|
5066
5220
|
};
|
|
5067
5221
|
return (issue$1) => {
|
|
5068
5222
|
switch (issue$1.code) {
|
|
5069
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5223
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$3(issue$1.input)}`;
|
|
5070
5224
|
case "invalid_value":
|
|
5071
5225
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5072
5226
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5102,12 +5256,12 @@ const error$21 = () => {
|
|
|
5102
5256
|
};
|
|
5103
5257
|
};
|
|
5104
5258
|
function it_default() {
|
|
5105
|
-
return { localeError: error$
|
|
5259
|
+
return { localeError: error$22() };
|
|
5106
5260
|
}
|
|
5107
5261
|
|
|
5108
5262
|
//#endregion
|
|
5109
|
-
//#region ../../node_modules/zod/
|
|
5110
|
-
const error$
|
|
5263
|
+
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5264
|
+
const error$21 = () => {
|
|
5111
5265
|
const Sizable = {
|
|
5112
5266
|
string: {
|
|
5113
5267
|
unit: "文字",
|
|
@@ -5129,7 +5283,7 @@ const error$20 = () => {
|
|
|
5129
5283
|
function getSizing(origin) {
|
|
5130
5284
|
return Sizable[origin] ?? null;
|
|
5131
5285
|
}
|
|
5132
|
-
const parsedType$
|
|
5286
|
+
const parsedType$3 = (data) => {
|
|
5133
5287
|
const t = typeof data;
|
|
5134
5288
|
switch (t) {
|
|
5135
5289
|
case "number": {
|
|
@@ -5181,21 +5335,21 @@ const error$20 = () => {
|
|
|
5181
5335
|
};
|
|
5182
5336
|
return (issue$1) => {
|
|
5183
5337
|
switch (issue$1.code) {
|
|
5184
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5338
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$3(issue$1.input)}が入力されました`;
|
|
5185
5339
|
case "invalid_value":
|
|
5186
5340
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5187
5341
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5188
5342
|
case "too_big": {
|
|
5189
|
-
const adj = issue$1.inclusive ? "
|
|
5343
|
+
const adj = issue$1.inclusive ? "以下である" : "より小さい";
|
|
5190
5344
|
const sizing = getSizing(issue$1.origin);
|
|
5191
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5192
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5345
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`;
|
|
5346
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}必要があります`;
|
|
5193
5347
|
}
|
|
5194
5348
|
case "too_small": {
|
|
5195
|
-
const adj = issue$1.inclusive ? "
|
|
5349
|
+
const adj = issue$1.inclusive ? "以上である" : "より大きい";
|
|
5196
5350
|
const sizing = getSizing(issue$1.origin);
|
|
5197
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5198
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5351
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}必要があります`;
|
|
5352
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}必要があります`;
|
|
5199
5353
|
}
|
|
5200
5354
|
case "invalid_format": {
|
|
5201
5355
|
const _issue = issue$1;
|
|
@@ -5215,12 +5369,12 @@ const error$20 = () => {
|
|
|
5215
5369
|
};
|
|
5216
5370
|
};
|
|
5217
5371
|
function ja_default() {
|
|
5218
|
-
return { localeError: error$
|
|
5372
|
+
return { localeError: error$21() };
|
|
5219
5373
|
}
|
|
5220
5374
|
|
|
5221
5375
|
//#endregion
|
|
5222
|
-
//#region ../../node_modules/zod/
|
|
5223
|
-
const error$
|
|
5376
|
+
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5377
|
+
const error$20 = () => {
|
|
5224
5378
|
const Sizable = {
|
|
5225
5379
|
string: {
|
|
5226
5380
|
unit: "តួអក្សរ",
|
|
@@ -5242,7 +5396,7 @@ const error$19 = () => {
|
|
|
5242
5396
|
function getSizing(origin) {
|
|
5243
5397
|
return Sizable[origin] ?? null;
|
|
5244
5398
|
}
|
|
5245
|
-
const parsedType$
|
|
5399
|
+
const parsedType$3 = (data) => {
|
|
5246
5400
|
const t = typeof data;
|
|
5247
5401
|
switch (t) {
|
|
5248
5402
|
case "number": {
|
|
@@ -5294,7 +5448,7 @@ const error$19 = () => {
|
|
|
5294
5448
|
};
|
|
5295
5449
|
return (issue$1) => {
|
|
5296
5450
|
switch (issue$1.code) {
|
|
5297
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5451
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$3(issue$1.input)}`;
|
|
5298
5452
|
case "invalid_value":
|
|
5299
5453
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5300
5454
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5332,12 +5486,12 @@ const error$19 = () => {
|
|
|
5332
5486
|
};
|
|
5333
5487
|
};
|
|
5334
5488
|
function kh_default() {
|
|
5335
|
-
return { localeError: error$
|
|
5489
|
+
return { localeError: error$20() };
|
|
5336
5490
|
}
|
|
5337
5491
|
|
|
5338
5492
|
//#endregion
|
|
5339
|
-
//#region ../../node_modules/zod/
|
|
5340
|
-
const error$
|
|
5493
|
+
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5494
|
+
const error$19 = () => {
|
|
5341
5495
|
const Sizable = {
|
|
5342
5496
|
string: {
|
|
5343
5497
|
unit: "문자",
|
|
@@ -5359,7 +5513,7 @@ const error$18 = () => {
|
|
|
5359
5513
|
function getSizing(origin) {
|
|
5360
5514
|
return Sizable[origin] ?? null;
|
|
5361
5515
|
}
|
|
5362
|
-
const parsedType$
|
|
5516
|
+
const parsedType$3 = (data) => {
|
|
5363
5517
|
const t = typeof data;
|
|
5364
5518
|
switch (t) {
|
|
5365
5519
|
case "number": {
|
|
@@ -5411,7 +5565,7 @@ const error$18 = () => {
|
|
|
5411
5565
|
};
|
|
5412
5566
|
return (issue$1) => {
|
|
5413
5567
|
switch (issue$1.code) {
|
|
5414
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5568
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$3(issue$1.input)}입니다`;
|
|
5415
5569
|
case "invalid_value":
|
|
5416
5570
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5417
5571
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5453,12 +5607,12 @@ const error$18 = () => {
|
|
|
5453
5607
|
};
|
|
5454
5608
|
};
|
|
5455
5609
|
function ko_default() {
|
|
5456
|
-
return { localeError: error$
|
|
5610
|
+
return { localeError: error$19() };
|
|
5457
5611
|
}
|
|
5458
5612
|
|
|
5459
5613
|
//#endregion
|
|
5460
|
-
//#region ../../node_modules/zod/
|
|
5461
|
-
const error$
|
|
5614
|
+
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
5615
|
+
const error$18 = () => {
|
|
5462
5616
|
const Sizable = {
|
|
5463
5617
|
string: {
|
|
5464
5618
|
unit: "знаци",
|
|
@@ -5480,7 +5634,7 @@ const error$17 = () => {
|
|
|
5480
5634
|
function getSizing(origin) {
|
|
5481
5635
|
return Sizable[origin] ?? null;
|
|
5482
5636
|
}
|
|
5483
|
-
const parsedType$
|
|
5637
|
+
const parsedType$3 = (data) => {
|
|
5484
5638
|
const t = typeof data;
|
|
5485
5639
|
switch (t) {
|
|
5486
5640
|
case "number": {
|
|
@@ -5532,7 +5686,7 @@ const error$17 = () => {
|
|
|
5532
5686
|
};
|
|
5533
5687
|
return (issue$1) => {
|
|
5534
5688
|
switch (issue$1.code) {
|
|
5535
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
5689
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$3(issue$1.input)}`;
|
|
5536
5690
|
case "invalid_value":
|
|
5537
5691
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5538
5692
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5570,12 +5724,12 @@ const error$17 = () => {
|
|
|
5570
5724
|
};
|
|
5571
5725
|
};
|
|
5572
5726
|
function mk_default() {
|
|
5573
|
-
return { localeError: error$
|
|
5727
|
+
return { localeError: error$18() };
|
|
5574
5728
|
}
|
|
5575
5729
|
|
|
5576
5730
|
//#endregion
|
|
5577
|
-
//#region ../../node_modules/zod/
|
|
5578
|
-
const error$
|
|
5731
|
+
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
5732
|
+
const error$17 = () => {
|
|
5579
5733
|
const Sizable = {
|
|
5580
5734
|
string: {
|
|
5581
5735
|
unit: "aksara",
|
|
@@ -5597,7 +5751,7 @@ const error$16 = () => {
|
|
|
5597
5751
|
function getSizing(origin) {
|
|
5598
5752
|
return Sizable[origin] ?? null;
|
|
5599
5753
|
}
|
|
5600
|
-
const parsedType$
|
|
5754
|
+
const parsedType$3 = (data) => {
|
|
5601
5755
|
const t = typeof data;
|
|
5602
5756
|
switch (t) {
|
|
5603
5757
|
case "number": {
|
|
@@ -5649,7 +5803,7 @@ const error$16 = () => {
|
|
|
5649
5803
|
};
|
|
5650
5804
|
return (issue$1) => {
|
|
5651
5805
|
switch (issue$1.code) {
|
|
5652
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
5806
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$3(issue$1.input)}`;
|
|
5653
5807
|
case "invalid_value":
|
|
5654
5808
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5655
5809
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5685,12 +5839,12 @@ const error$16 = () => {
|
|
|
5685
5839
|
};
|
|
5686
5840
|
};
|
|
5687
5841
|
function ms_default() {
|
|
5688
|
-
return { localeError: error$
|
|
5842
|
+
return { localeError: error$17() };
|
|
5689
5843
|
}
|
|
5690
5844
|
|
|
5691
5845
|
//#endregion
|
|
5692
|
-
//#region ../../node_modules/zod/
|
|
5693
|
-
const error$
|
|
5846
|
+
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
5847
|
+
const error$16 = () => {
|
|
5694
5848
|
const Sizable = {
|
|
5695
5849
|
string: { unit: "tekens" },
|
|
5696
5850
|
file: { unit: "bytes" },
|
|
@@ -5700,7 +5854,7 @@ const error$15 = () => {
|
|
|
5700
5854
|
function getSizing(origin) {
|
|
5701
5855
|
return Sizable[origin] ?? null;
|
|
5702
5856
|
}
|
|
5703
|
-
const parsedType$
|
|
5857
|
+
const parsedType$3 = (data) => {
|
|
5704
5858
|
const t = typeof data;
|
|
5705
5859
|
switch (t) {
|
|
5706
5860
|
case "number": {
|
|
@@ -5752,7 +5906,7 @@ const error$15 = () => {
|
|
|
5752
5906
|
};
|
|
5753
5907
|
return (issue$1) => {
|
|
5754
5908
|
switch (issue$1.code) {
|
|
5755
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
5909
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$3(issue$1.input)}`;
|
|
5756
5910
|
case "invalid_value":
|
|
5757
5911
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5758
5912
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5790,12 +5944,12 @@ const error$15 = () => {
|
|
|
5790
5944
|
};
|
|
5791
5945
|
};
|
|
5792
5946
|
function nl_default() {
|
|
5793
|
-
return { localeError: error$
|
|
5947
|
+
return { localeError: error$16() };
|
|
5794
5948
|
}
|
|
5795
5949
|
|
|
5796
5950
|
//#endregion
|
|
5797
|
-
//#region ../../node_modules/zod/
|
|
5798
|
-
const error$
|
|
5951
|
+
//#region ../../node_modules/zod/v4/locales/no.js
|
|
5952
|
+
const error$15 = () => {
|
|
5799
5953
|
const Sizable = {
|
|
5800
5954
|
string: {
|
|
5801
5955
|
unit: "tegn",
|
|
@@ -5817,7 +5971,7 @@ const error$14 = () => {
|
|
|
5817
5971
|
function getSizing(origin) {
|
|
5818
5972
|
return Sizable[origin] ?? null;
|
|
5819
5973
|
}
|
|
5820
|
-
const parsedType$
|
|
5974
|
+
const parsedType$3 = (data) => {
|
|
5821
5975
|
const t = typeof data;
|
|
5822
5976
|
switch (t) {
|
|
5823
5977
|
case "number": {
|
|
@@ -5869,7 +6023,7 @@ const error$14 = () => {
|
|
|
5869
6023
|
};
|
|
5870
6024
|
return (issue$1) => {
|
|
5871
6025
|
switch (issue$1.code) {
|
|
5872
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
6026
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$3(issue$1.input)}`;
|
|
5873
6027
|
case "invalid_value":
|
|
5874
6028
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5875
6029
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5905,12 +6059,12 @@ const error$14 = () => {
|
|
|
5905
6059
|
};
|
|
5906
6060
|
};
|
|
5907
6061
|
function no_default() {
|
|
5908
|
-
return { localeError: error$
|
|
6062
|
+
return { localeError: error$15() };
|
|
5909
6063
|
}
|
|
5910
6064
|
|
|
5911
6065
|
//#endregion
|
|
5912
|
-
//#region ../../node_modules/zod/
|
|
5913
|
-
const error$
|
|
6066
|
+
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
6067
|
+
const error$14 = () => {
|
|
5914
6068
|
const Sizable = {
|
|
5915
6069
|
string: {
|
|
5916
6070
|
unit: "harf",
|
|
@@ -5932,7 +6086,7 @@ const error$13 = () => {
|
|
|
5932
6086
|
function getSizing(origin) {
|
|
5933
6087
|
return Sizable[origin] ?? null;
|
|
5934
6088
|
}
|
|
5935
|
-
const parsedType$
|
|
6089
|
+
const parsedType$3 = (data) => {
|
|
5936
6090
|
const t = typeof data;
|
|
5937
6091
|
switch (t) {
|
|
5938
6092
|
case "number": {
|
|
@@ -5984,7 +6138,7 @@ const error$13 = () => {
|
|
|
5984
6138
|
};
|
|
5985
6139
|
return (issue$1) => {
|
|
5986
6140
|
switch (issue$1.code) {
|
|
5987
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6141
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$3(issue$1.input)}`;
|
|
5988
6142
|
case "invalid_value":
|
|
5989
6143
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5990
6144
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6020,11 +6174,138 @@ const error$13 = () => {
|
|
|
6020
6174
|
};
|
|
6021
6175
|
};
|
|
6022
6176
|
function ota_default() {
|
|
6177
|
+
return { localeError: error$14() };
|
|
6178
|
+
}
|
|
6179
|
+
|
|
6180
|
+
//#endregion
|
|
6181
|
+
//#region ../../node_modules/zod/v4/locales/ps.js
|
|
6182
|
+
const error$13 = () => {
|
|
6183
|
+
const Sizable = {
|
|
6184
|
+
string: {
|
|
6185
|
+
unit: "توکي",
|
|
6186
|
+
verb: "ولري"
|
|
6187
|
+
},
|
|
6188
|
+
file: {
|
|
6189
|
+
unit: "بایټس",
|
|
6190
|
+
verb: "ولري"
|
|
6191
|
+
},
|
|
6192
|
+
array: {
|
|
6193
|
+
unit: "توکي",
|
|
6194
|
+
verb: "ولري"
|
|
6195
|
+
},
|
|
6196
|
+
set: {
|
|
6197
|
+
unit: "توکي",
|
|
6198
|
+
verb: "ولري"
|
|
6199
|
+
}
|
|
6200
|
+
};
|
|
6201
|
+
function getSizing(origin) {
|
|
6202
|
+
return Sizable[origin] ?? null;
|
|
6203
|
+
}
|
|
6204
|
+
const parsedType$3 = (data) => {
|
|
6205
|
+
const t = typeof data;
|
|
6206
|
+
switch (t) {
|
|
6207
|
+
case "number": {
|
|
6208
|
+
return Number.isNaN(data) ? "NaN" : "عدد";
|
|
6209
|
+
}
|
|
6210
|
+
case "object": {
|
|
6211
|
+
if (Array.isArray(data)) {
|
|
6212
|
+
return "ارې";
|
|
6213
|
+
}
|
|
6214
|
+
if (data === null) {
|
|
6215
|
+
return "null";
|
|
6216
|
+
}
|
|
6217
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6218
|
+
return data.constructor.name;
|
|
6219
|
+
}
|
|
6220
|
+
}
|
|
6221
|
+
}
|
|
6222
|
+
return t;
|
|
6223
|
+
};
|
|
6224
|
+
const Nouns = {
|
|
6225
|
+
regex: "ورودي",
|
|
6226
|
+
email: "بریښنالیک",
|
|
6227
|
+
url: "یو آر ال",
|
|
6228
|
+
emoji: "ایموجي",
|
|
6229
|
+
uuid: "UUID",
|
|
6230
|
+
uuidv4: "UUIDv4",
|
|
6231
|
+
uuidv6: "UUIDv6",
|
|
6232
|
+
nanoid: "nanoid",
|
|
6233
|
+
guid: "GUID",
|
|
6234
|
+
cuid: "cuid",
|
|
6235
|
+
cuid2: "cuid2",
|
|
6236
|
+
ulid: "ULID",
|
|
6237
|
+
xid: "XID",
|
|
6238
|
+
ksuid: "KSUID",
|
|
6239
|
+
datetime: "نیټه او وخت",
|
|
6240
|
+
date: "نېټه",
|
|
6241
|
+
time: "وخت",
|
|
6242
|
+
duration: "موده",
|
|
6243
|
+
ipv4: "د IPv4 پته",
|
|
6244
|
+
ipv6: "د IPv6 پته",
|
|
6245
|
+
cidrv4: "د IPv4 ساحه",
|
|
6246
|
+
cidrv6: "د IPv6 ساحه",
|
|
6247
|
+
base64: "base64-encoded متن",
|
|
6248
|
+
base64url: "base64url-encoded متن",
|
|
6249
|
+
json_string: "JSON متن",
|
|
6250
|
+
e164: "د E.164 شمېره",
|
|
6251
|
+
jwt: "JWT",
|
|
6252
|
+
template_literal: "ورودي"
|
|
6253
|
+
};
|
|
6254
|
+
return (issue$1) => {
|
|
6255
|
+
switch (issue$1.code) {
|
|
6256
|
+
case "invalid_type": return `ناسم ورودي: باید ${issue$1.expected} وای, مګر ${parsedType$3(issue$1.input)} ترلاسه شو`;
|
|
6257
|
+
case "invalid_value":
|
|
6258
|
+
if (issue$1.values.length === 1) {
|
|
6259
|
+
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6260
|
+
}
|
|
6261
|
+
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6262
|
+
case "too_big": {
|
|
6263
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6264
|
+
const sizing = getSizing(issue$1.origin);
|
|
6265
|
+
if (sizing) {
|
|
6266
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6267
|
+
}
|
|
6268
|
+
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6269
|
+
}
|
|
6270
|
+
case "too_small": {
|
|
6271
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6272
|
+
const sizing = getSizing(issue$1.origin);
|
|
6273
|
+
if (sizing) {
|
|
6274
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6275
|
+
}
|
|
6276
|
+
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6277
|
+
}
|
|
6278
|
+
case "invalid_format": {
|
|
6279
|
+
const _issue = issue$1;
|
|
6280
|
+
if (_issue.format === "starts_with") {
|
|
6281
|
+
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6282
|
+
}
|
|
6283
|
+
if (_issue.format === "ends_with") {
|
|
6284
|
+
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6285
|
+
}
|
|
6286
|
+
if (_issue.format === "includes") {
|
|
6287
|
+
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6288
|
+
}
|
|
6289
|
+
if (_issue.format === "regex") {
|
|
6290
|
+
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6291
|
+
}
|
|
6292
|
+
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6293
|
+
}
|
|
6294
|
+
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6295
|
+
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6296
|
+
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6297
|
+
case "invalid_union": return `ناسمه ورودي`;
|
|
6298
|
+
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6299
|
+
default: return `ناسمه ورودي`;
|
|
6300
|
+
}
|
|
6301
|
+
};
|
|
6302
|
+
};
|
|
6303
|
+
function ps_default() {
|
|
6023
6304
|
return { localeError: error$13() };
|
|
6024
6305
|
}
|
|
6025
6306
|
|
|
6026
6307
|
//#endregion
|
|
6027
|
-
//#region ../../node_modules/zod/
|
|
6308
|
+
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
6028
6309
|
const error$12 = () => {
|
|
6029
6310
|
const Sizable = {
|
|
6030
6311
|
string: {
|
|
@@ -6047,7 +6328,7 @@ const error$12 = () => {
|
|
|
6047
6328
|
function getSizing(origin) {
|
|
6048
6329
|
return Sizable[origin] ?? null;
|
|
6049
6330
|
}
|
|
6050
|
-
const parsedType$
|
|
6331
|
+
const parsedType$3 = (data) => {
|
|
6051
6332
|
const t = typeof data;
|
|
6052
6333
|
switch (t) {
|
|
6053
6334
|
case "number": {
|
|
@@ -6099,7 +6380,7 @@ const error$12 = () => {
|
|
|
6099
6380
|
};
|
|
6100
6381
|
return (issue$1) => {
|
|
6101
6382
|
switch (issue$1.code) {
|
|
6102
|
-
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$
|
|
6383
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6103
6384
|
case "invalid_value":
|
|
6104
6385
|
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6105
6386
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6141,7 +6422,7 @@ function pl_default() {
|
|
|
6141
6422
|
}
|
|
6142
6423
|
|
|
6143
6424
|
//#endregion
|
|
6144
|
-
//#region ../../node_modules/zod/
|
|
6425
|
+
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6145
6426
|
const error$11 = () => {
|
|
6146
6427
|
const Sizable = {
|
|
6147
6428
|
string: {
|
|
@@ -6164,7 +6445,7 @@ const error$11 = () => {
|
|
|
6164
6445
|
function getSizing(origin) {
|
|
6165
6446
|
return Sizable[origin] ?? null;
|
|
6166
6447
|
}
|
|
6167
|
-
const parsedType$
|
|
6448
|
+
const parsedType$3 = (data) => {
|
|
6168
6449
|
const t = typeof data;
|
|
6169
6450
|
switch (t) {
|
|
6170
6451
|
case "number": {
|
|
@@ -6216,7 +6497,7 @@ const error$11 = () => {
|
|
|
6216
6497
|
};
|
|
6217
6498
|
return (issue$1) => {
|
|
6218
6499
|
switch (issue$1.code) {
|
|
6219
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6500
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$3(issue$1.input)}`;
|
|
6220
6501
|
case "invalid_value":
|
|
6221
6502
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6222
6503
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6256,7 +6537,7 @@ function pt_default() {
|
|
|
6256
6537
|
}
|
|
6257
6538
|
|
|
6258
6539
|
//#endregion
|
|
6259
|
-
//#region ../../node_modules/zod/
|
|
6540
|
+
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6260
6541
|
function getRussianPlural(count, one, few, many) {
|
|
6261
6542
|
const absCount = Math.abs(count);
|
|
6262
6543
|
const lastDigit = absCount % 10;
|
|
@@ -6310,7 +6591,7 @@ const error$10 = () => {
|
|
|
6310
6591
|
function getSizing(origin) {
|
|
6311
6592
|
return Sizable[origin] ?? null;
|
|
6312
6593
|
}
|
|
6313
|
-
const parsedType$
|
|
6594
|
+
const parsedType$3 = (data) => {
|
|
6314
6595
|
const t = typeof data;
|
|
6315
6596
|
switch (t) {
|
|
6316
6597
|
case "number": {
|
|
@@ -6362,7 +6643,7 @@ const error$10 = () => {
|
|
|
6362
6643
|
};
|
|
6363
6644
|
return (issue$1) => {
|
|
6364
6645
|
switch (issue$1.code) {
|
|
6365
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
6646
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$3(issue$1.input)}`;
|
|
6366
6647
|
case "invalid_value":
|
|
6367
6648
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6368
6649
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6408,7 +6689,7 @@ function ru_default() {
|
|
|
6408
6689
|
}
|
|
6409
6690
|
|
|
6410
6691
|
//#endregion
|
|
6411
|
-
//#region ../../node_modules/zod/
|
|
6692
|
+
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6412
6693
|
const error$9 = () => {
|
|
6413
6694
|
const Sizable = {
|
|
6414
6695
|
string: {
|
|
@@ -6431,7 +6712,7 @@ const error$9 = () => {
|
|
|
6431
6712
|
function getSizing(origin) {
|
|
6432
6713
|
return Sizable[origin] ?? null;
|
|
6433
6714
|
}
|
|
6434
|
-
const parsedType$
|
|
6715
|
+
const parsedType$3 = (data) => {
|
|
6435
6716
|
const t = typeof data;
|
|
6436
6717
|
switch (t) {
|
|
6437
6718
|
case "number": {
|
|
@@ -6483,7 +6764,7 @@ const error$9 = () => {
|
|
|
6483
6764
|
};
|
|
6484
6765
|
return (issue$1) => {
|
|
6485
6766
|
switch (issue$1.code) {
|
|
6486
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
6767
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$3(issue$1.input)}`;
|
|
6487
6768
|
case "invalid_value":
|
|
6488
6769
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6489
6770
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6525,7 +6806,7 @@ function sl_default() {
|
|
|
6525
6806
|
}
|
|
6526
6807
|
|
|
6527
6808
|
//#endregion
|
|
6528
|
-
//#region ../../node_modules/zod/
|
|
6809
|
+
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6529
6810
|
const error$8 = () => {
|
|
6530
6811
|
const Sizable = {
|
|
6531
6812
|
string: {
|
|
@@ -6548,7 +6829,7 @@ const error$8 = () => {
|
|
|
6548
6829
|
function getSizing(origin) {
|
|
6549
6830
|
return Sizable[origin] ?? null;
|
|
6550
6831
|
}
|
|
6551
|
-
const parsedType$
|
|
6832
|
+
const parsedType$3 = (data) => {
|
|
6552
6833
|
const t = typeof data;
|
|
6553
6834
|
switch (t) {
|
|
6554
6835
|
case "number": {
|
|
@@ -6600,7 +6881,7 @@ const error$8 = () => {
|
|
|
6600
6881
|
};
|
|
6601
6882
|
return (issue$1) => {
|
|
6602
6883
|
switch (issue$1.code) {
|
|
6603
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
6884
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$3(issue$1.input)}`;
|
|
6604
6885
|
case "invalid_value":
|
|
6605
6886
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6606
6887
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6644,7 +6925,7 @@ function sv_default() {
|
|
|
6644
6925
|
}
|
|
6645
6926
|
|
|
6646
6927
|
//#endregion
|
|
6647
|
-
//#region ../../node_modules/zod/
|
|
6928
|
+
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
6648
6929
|
const error$7 = () => {
|
|
6649
6930
|
const Sizable = {
|
|
6650
6931
|
string: {
|
|
@@ -6667,7 +6948,7 @@ const error$7 = () => {
|
|
|
6667
6948
|
function getSizing(origin) {
|
|
6668
6949
|
return Sizable[origin] ?? null;
|
|
6669
6950
|
}
|
|
6670
|
-
const parsedType$
|
|
6951
|
+
const parsedType$3 = (data) => {
|
|
6671
6952
|
const t = typeof data;
|
|
6672
6953
|
switch (t) {
|
|
6673
6954
|
case "number": {
|
|
@@ -6719,7 +7000,7 @@ const error$7 = () => {
|
|
|
6719
7000
|
};
|
|
6720
7001
|
return (issue$1) => {
|
|
6721
7002
|
switch (issue$1.code) {
|
|
6722
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
7003
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$3(issue$1.input)}`;
|
|
6723
7004
|
case "invalid_value":
|
|
6724
7005
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6725
7006
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -6761,7 +7042,7 @@ function ta_default() {
|
|
|
6761
7042
|
}
|
|
6762
7043
|
|
|
6763
7044
|
//#endregion
|
|
6764
|
-
//#region ../../node_modules/zod/
|
|
7045
|
+
//#region ../../node_modules/zod/v4/locales/th.js
|
|
6765
7046
|
const error$6 = () => {
|
|
6766
7047
|
const Sizable = {
|
|
6767
7048
|
string: {
|
|
@@ -6784,7 +7065,7 @@ const error$6 = () => {
|
|
|
6784
7065
|
function getSizing(origin) {
|
|
6785
7066
|
return Sizable[origin] ?? null;
|
|
6786
7067
|
}
|
|
6787
|
-
const parsedType$
|
|
7068
|
+
const parsedType$3 = (data) => {
|
|
6788
7069
|
const t = typeof data;
|
|
6789
7070
|
switch (t) {
|
|
6790
7071
|
case "number": {
|
|
@@ -6836,7 +7117,7 @@ const error$6 = () => {
|
|
|
6836
7117
|
};
|
|
6837
7118
|
return (issue$1) => {
|
|
6838
7119
|
switch (issue$1.code) {
|
|
6839
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7120
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$3(issue$1.input)}`;
|
|
6840
7121
|
case "invalid_value":
|
|
6841
7122
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6842
7123
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6878,7 +7159,7 @@ function th_default() {
|
|
|
6878
7159
|
}
|
|
6879
7160
|
|
|
6880
7161
|
//#endregion
|
|
6881
|
-
//#region ../../node_modules/zod/
|
|
7162
|
+
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
6882
7163
|
const parsedType = (data) => {
|
|
6883
7164
|
const t = typeof data;
|
|
6884
7165
|
switch (t) {
|
|
@@ -6991,7 +7272,7 @@ function tr_default() {
|
|
|
6991
7272
|
}
|
|
6992
7273
|
|
|
6993
7274
|
//#endregion
|
|
6994
|
-
//#region ../../node_modules/zod/
|
|
7275
|
+
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
6995
7276
|
const error$4 = () => {
|
|
6996
7277
|
const Sizable = {
|
|
6997
7278
|
string: {
|
|
@@ -7014,7 +7295,7 @@ const error$4 = () => {
|
|
|
7014
7295
|
function getSizing(origin) {
|
|
7015
7296
|
return Sizable[origin] ?? null;
|
|
7016
7297
|
}
|
|
7017
|
-
const parsedType$
|
|
7298
|
+
const parsedType$3 = (data) => {
|
|
7018
7299
|
const t = typeof data;
|
|
7019
7300
|
switch (t) {
|
|
7020
7301
|
case "number": {
|
|
@@ -7066,7 +7347,7 @@ const error$4 = () => {
|
|
|
7066
7347
|
};
|
|
7067
7348
|
return (issue$1) => {
|
|
7068
7349
|
switch (issue$1.code) {
|
|
7069
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7350
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$3(issue$1.input)}`;
|
|
7070
7351
|
case "invalid_value":
|
|
7071
7352
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7072
7353
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7106,7 +7387,7 @@ function ua_default() {
|
|
|
7106
7387
|
}
|
|
7107
7388
|
|
|
7108
7389
|
//#endregion
|
|
7109
|
-
//#region ../../node_modules/zod/
|
|
7390
|
+
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7110
7391
|
const error$3 = () => {
|
|
7111
7392
|
const Sizable = {
|
|
7112
7393
|
string: {
|
|
@@ -7129,7 +7410,7 @@ const error$3 = () => {
|
|
|
7129
7410
|
function getSizing(origin) {
|
|
7130
7411
|
return Sizable[origin] ?? null;
|
|
7131
7412
|
}
|
|
7132
|
-
const parsedType$
|
|
7413
|
+
const parsedType$3 = (data) => {
|
|
7133
7414
|
const t = typeof data;
|
|
7134
7415
|
switch (t) {
|
|
7135
7416
|
case "number": {
|
|
@@ -7181,7 +7462,7 @@ const error$3 = () => {
|
|
|
7181
7462
|
};
|
|
7182
7463
|
return (issue$1) => {
|
|
7183
7464
|
switch (issue$1.code) {
|
|
7184
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7465
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$3(issue$1.input)} موصول ہوا`;
|
|
7185
7466
|
case "invalid_value":
|
|
7186
7467
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7187
7468
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7223,7 +7504,7 @@ function ur_default() {
|
|
|
7223
7504
|
}
|
|
7224
7505
|
|
|
7225
7506
|
//#endregion
|
|
7226
|
-
//#region ../../node_modules/zod/
|
|
7507
|
+
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7227
7508
|
const error$2 = () => {
|
|
7228
7509
|
const Sizable = {
|
|
7229
7510
|
string: {
|
|
@@ -7246,7 +7527,7 @@ const error$2 = () => {
|
|
|
7246
7527
|
function getSizing(origin) {
|
|
7247
7528
|
return Sizable[origin] ?? null;
|
|
7248
7529
|
}
|
|
7249
|
-
const parsedType$
|
|
7530
|
+
const parsedType$3 = (data) => {
|
|
7250
7531
|
const t = typeof data;
|
|
7251
7532
|
switch (t) {
|
|
7252
7533
|
case "number": {
|
|
@@ -7298,7 +7579,7 @@ const error$2 = () => {
|
|
|
7298
7579
|
};
|
|
7299
7580
|
return (issue$1) => {
|
|
7300
7581
|
switch (issue$1.code) {
|
|
7301
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7582
|
+
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)}`;
|
|
7302
7583
|
case "invalid_value":
|
|
7303
7584
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7304
7585
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7338,7 +7619,7 @@ function vi_default() {
|
|
|
7338
7619
|
}
|
|
7339
7620
|
|
|
7340
7621
|
//#endregion
|
|
7341
|
-
//#region ../../node_modules/zod/
|
|
7622
|
+
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7342
7623
|
const error$1 = () => {
|
|
7343
7624
|
const Sizable = {
|
|
7344
7625
|
string: {
|
|
@@ -7361,7 +7642,7 @@ const error$1 = () => {
|
|
|
7361
7642
|
function getSizing(origin) {
|
|
7362
7643
|
return Sizable[origin] ?? null;
|
|
7363
7644
|
}
|
|
7364
|
-
const parsedType$
|
|
7645
|
+
const parsedType$3 = (data) => {
|
|
7365
7646
|
const t = typeof data;
|
|
7366
7647
|
switch (t) {
|
|
7367
7648
|
case "number": {
|
|
@@ -7413,7 +7694,7 @@ const error$1 = () => {
|
|
|
7413
7694
|
};
|
|
7414
7695
|
return (issue$1) => {
|
|
7415
7696
|
switch (issue$1.code) {
|
|
7416
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
7697
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$3(issue$1.input)}`;
|
|
7417
7698
|
case "invalid_value":
|
|
7418
7699
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7419
7700
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7453,7 +7734,7 @@ function zh_CN_default() {
|
|
|
7453
7734
|
}
|
|
7454
7735
|
|
|
7455
7736
|
//#endregion
|
|
7456
|
-
//#region ../../node_modules/zod/
|
|
7737
|
+
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7457
7738
|
const error = () => {
|
|
7458
7739
|
const Sizable = {
|
|
7459
7740
|
string: {
|
|
@@ -7476,7 +7757,7 @@ const error = () => {
|
|
|
7476
7757
|
function getSizing(origin) {
|
|
7477
7758
|
return Sizable[origin] ?? null;
|
|
7478
7759
|
}
|
|
7479
|
-
const parsedType$
|
|
7760
|
+
const parsedType$3 = (data) => {
|
|
7480
7761
|
const t = typeof data;
|
|
7481
7762
|
switch (t) {
|
|
7482
7763
|
case "number": {
|
|
@@ -7528,7 +7809,7 @@ const error = () => {
|
|
|
7528
7809
|
};
|
|
7529
7810
|
return (issue$1) => {
|
|
7530
7811
|
switch (issue$1.code) {
|
|
7531
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
7812
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$3(issue$1.input)}`;
|
|
7532
7813
|
case "invalid_value":
|
|
7533
7814
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7534
7815
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7570,7 +7851,7 @@ function zh_TW_default() {
|
|
|
7570
7851
|
}
|
|
7571
7852
|
|
|
7572
7853
|
//#endregion
|
|
7573
|
-
//#region ../../node_modules/zod/
|
|
7854
|
+
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7574
7855
|
var locales_exports = {};
|
|
7575
7856
|
__export(locales_exports, {
|
|
7576
7857
|
ar: () => ar_default,
|
|
@@ -7580,6 +7861,7 @@ __export(locales_exports, {
|
|
|
7580
7861
|
cs: () => cs_default,
|
|
7581
7862
|
de: () => de_default,
|
|
7582
7863
|
en: () => en_default,
|
|
7864
|
+
eo: () => eo_default,
|
|
7583
7865
|
es: () => es_default,
|
|
7584
7866
|
fa: () => fa_default,
|
|
7585
7867
|
fi: () => fi_default,
|
|
@@ -7598,6 +7880,7 @@ __export(locales_exports, {
|
|
|
7598
7880
|
no: () => no_default,
|
|
7599
7881
|
ota: () => ota_default,
|
|
7600
7882
|
pl: () => pl_default,
|
|
7883
|
+
ps: () => ps_default,
|
|
7601
7884
|
pt: () => pt_default,
|
|
7602
7885
|
ru: () => ru_default,
|
|
7603
7886
|
sl: () => sl_default,
|
|
@@ -7613,12 +7896,12 @@ __export(locales_exports, {
|
|
|
7613
7896
|
});
|
|
7614
7897
|
|
|
7615
7898
|
//#endregion
|
|
7616
|
-
//#region ../../node_modules/zod/
|
|
7899
|
+
//#region ../../node_modules/zod/v4/core/registries.js
|
|
7617
7900
|
const $output = Symbol("ZodOutput");
|
|
7618
7901
|
const $input = Symbol("ZodInput");
|
|
7619
7902
|
var $ZodRegistry = class {
|
|
7620
7903
|
constructor() {
|
|
7621
|
-
this._map = new
|
|
7904
|
+
this._map = new Map();
|
|
7622
7905
|
this._idmap = new Map();
|
|
7623
7906
|
}
|
|
7624
7907
|
add(schema, ..._meta) {
|
|
@@ -7632,7 +7915,16 @@ var $ZodRegistry = class {
|
|
|
7632
7915
|
}
|
|
7633
7916
|
return this;
|
|
7634
7917
|
}
|
|
7918
|
+
clear() {
|
|
7919
|
+
this._map = new Map();
|
|
7920
|
+
this._idmap = new Map();
|
|
7921
|
+
return this;
|
|
7922
|
+
}
|
|
7635
7923
|
remove(schema) {
|
|
7924
|
+
const meta = this._map.get(schema);
|
|
7925
|
+
if (meta && typeof meta === "object" && "id" in meta) {
|
|
7926
|
+
this._idmap.delete(meta.id);
|
|
7927
|
+
}
|
|
7636
7928
|
this._map.delete(schema);
|
|
7637
7929
|
return this;
|
|
7638
7930
|
}
|
|
@@ -7658,7 +7950,7 @@ function registry() {
|
|
|
7658
7950
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
7659
7951
|
|
|
7660
7952
|
//#endregion
|
|
7661
|
-
//#region ../../node_modules/zod/
|
|
7953
|
+
//#region ../../node_modules/zod/v4/core/api.js
|
|
7662
7954
|
function _string(Class$1, params) {
|
|
7663
7955
|
return new Class$1({
|
|
7664
7956
|
type: "string",
|
|
@@ -7873,6 +8165,13 @@ function _jwt(Class$1, params) {
|
|
|
7873
8165
|
...normalizeParams(params)
|
|
7874
8166
|
});
|
|
7875
8167
|
}
|
|
8168
|
+
const TimePrecision = {
|
|
8169
|
+
Any: null,
|
|
8170
|
+
Minute: -1,
|
|
8171
|
+
Second: 0,
|
|
8172
|
+
Millisecond: 3,
|
|
8173
|
+
Microsecond: 6
|
|
8174
|
+
};
|
|
7876
8175
|
function _isoDateTime(Class$1, params) {
|
|
7877
8176
|
return new Class$1({
|
|
7878
8177
|
type: "string",
|
|
@@ -8439,8 +8738,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
8439
8738
|
return schema;
|
|
8440
8739
|
}
|
|
8441
8740
|
function _stringbool(Classes, _params) {
|
|
8442
|
-
const
|
|
8443
|
-
let truthyArray = truthy ?? [
|
|
8741
|
+
const params = normalizeParams(_params);
|
|
8742
|
+
let truthyArray = params.truthy ?? [
|
|
8444
8743
|
"true",
|
|
8445
8744
|
"1",
|
|
8446
8745
|
"yes",
|
|
@@ -8448,7 +8747,7 @@ function _stringbool(Classes, _params) {
|
|
|
8448
8747
|
"y",
|
|
8449
8748
|
"enabled"
|
|
8450
8749
|
];
|
|
8451
|
-
let falsyArray = falsy ?? [
|
|
8750
|
+
let falsyArray = params.falsy ?? [
|
|
8452
8751
|
"false",
|
|
8453
8752
|
"0",
|
|
8454
8753
|
"no",
|
|
@@ -8456,7 +8755,7 @@ function _stringbool(Classes, _params) {
|
|
|
8456
8755
|
"n",
|
|
8457
8756
|
"disabled"
|
|
8458
8757
|
];
|
|
8459
|
-
if (
|
|
8758
|
+
if (params.case !== "sensitive") {
|
|
8460
8759
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8461
8760
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
8462
8761
|
}
|
|
@@ -8470,7 +8769,7 @@ function _stringbool(Classes, _params) {
|
|
|
8470
8769
|
type: "transform",
|
|
8471
8770
|
transform: (input, payload) => {
|
|
8472
8771
|
let data = input;
|
|
8473
|
-
if (
|
|
8772
|
+
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
8474
8773
|
if (truthySet.has(data)) {
|
|
8475
8774
|
return true;
|
|
8476
8775
|
} else if (falsySet.has(data)) {
|
|
@@ -8486,31 +8785,47 @@ function _stringbool(Classes, _params) {
|
|
|
8486
8785
|
return {};
|
|
8487
8786
|
}
|
|
8488
8787
|
},
|
|
8489
|
-
error: error
|
|
8788
|
+
error: params.error
|
|
8490
8789
|
});
|
|
8491
8790
|
const innerPipe = new _Pipe({
|
|
8492
8791
|
type: "pipe",
|
|
8493
8792
|
in: new _String({
|
|
8494
8793
|
type: "string",
|
|
8495
|
-
error: error
|
|
8794
|
+
error: params.error
|
|
8496
8795
|
}),
|
|
8497
8796
|
out: tx,
|
|
8498
|
-
error: error
|
|
8797
|
+
error: params.error
|
|
8499
8798
|
});
|
|
8500
8799
|
const outerPipe = new _Pipe({
|
|
8501
8800
|
type: "pipe",
|
|
8502
8801
|
in: innerPipe,
|
|
8503
8802
|
out: new _Boolean({
|
|
8504
8803
|
type: "boolean",
|
|
8505
|
-
error: error
|
|
8804
|
+
error: params.error
|
|
8506
8805
|
}),
|
|
8507
|
-
error: error
|
|
8806
|
+
error: params.error
|
|
8508
8807
|
});
|
|
8509
8808
|
return outerPipe;
|
|
8510
8809
|
}
|
|
8810
|
+
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
8811
|
+
const params = normalizeParams(_params);
|
|
8812
|
+
const def = {
|
|
8813
|
+
...normalizeParams(_params),
|
|
8814
|
+
check: "string_format",
|
|
8815
|
+
type: "string",
|
|
8816
|
+
format,
|
|
8817
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
8818
|
+
...params
|
|
8819
|
+
};
|
|
8820
|
+
if (fnOrRegex instanceof RegExp) {
|
|
8821
|
+
def.pattern = fnOrRegex;
|
|
8822
|
+
}
|
|
8823
|
+
const inst = new Class$1(def);
|
|
8824
|
+
return inst;
|
|
8825
|
+
}
|
|
8511
8826
|
|
|
8512
8827
|
//#endregion
|
|
8513
|
-
//#region ../../node_modules/zod/
|
|
8828
|
+
//#region ../../node_modules/zod/v4/core/function.js
|
|
8514
8829
|
var $ZodFunction = class {
|
|
8515
8830
|
constructor(def) {
|
|
8516
8831
|
this._def = def;
|
|
@@ -8581,7 +8896,7 @@ function _function(params) {
|
|
|
8581
8896
|
}
|
|
8582
8897
|
|
|
8583
8898
|
//#endregion
|
|
8584
|
-
//#region ../../node_modules/zod/
|
|
8899
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8585
8900
|
var JSONSchemaGenerator = class {
|
|
8586
8901
|
constructor(params) {
|
|
8587
8902
|
this.counter = 0;
|
|
@@ -8617,431 +8932,435 @@ var JSONSchemaGenerator = class {
|
|
|
8617
8932
|
const result = {
|
|
8618
8933
|
schema: {},
|
|
8619
8934
|
count: 1,
|
|
8620
|
-
cycle: undefined
|
|
8621
|
-
};
|
|
8622
|
-
this.seen.set(schema, result);
|
|
8623
|
-
if (schema._zod.toJSONSchema) {
|
|
8624
|
-
result.schema = schema._zod.toJSONSchema();
|
|
8625
|
-
}
|
|
8626
|
-
const params = {
|
|
8627
|
-
..._params,
|
|
8628
|
-
schemaPath: [..._params.schemaPath, schema],
|
|
8935
|
+
cycle: undefined,
|
|
8629
8936
|
path: _params.path
|
|
8630
8937
|
};
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
this.seen.get(parent).isParent = true;
|
|
8938
|
+
this.seen.set(schema, result);
|
|
8939
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
8940
|
+
if (overrideSchema) {
|
|
8941
|
+
result.schema = overrideSchema;
|
|
8636
8942
|
} else {
|
|
8637
|
-
const
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8943
|
+
const params = {
|
|
8944
|
+
..._params,
|
|
8945
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
8946
|
+
path: _params.path
|
|
8947
|
+
};
|
|
8948
|
+
const parent = schema._zod.parent;
|
|
8949
|
+
if (parent) {
|
|
8950
|
+
result.ref = parent;
|
|
8951
|
+
this.process(parent, params);
|
|
8952
|
+
this.seen.get(parent).isParent = true;
|
|
8953
|
+
} else {
|
|
8954
|
+
const _json = result.schema;
|
|
8955
|
+
switch (def.type) {
|
|
8956
|
+
case "string": {
|
|
8957
|
+
const json$1 = _json;
|
|
8958
|
+
json$1.type = "string";
|
|
8959
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
8960
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
8961
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
8962
|
+
if (format) {
|
|
8963
|
+
json$1.format = formatMap[format] ?? format;
|
|
8964
|
+
if (json$1.format === "") delete json$1.format;
|
|
8965
|
+
}
|
|
8966
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
8967
|
+
if (patterns && patterns.size > 0) {
|
|
8968
|
+
const regexes = [...patterns];
|
|
8969
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
8970
|
+
else if (regexes.length > 1) {
|
|
8971
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
8972
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
8973
|
+
pattern: regex.source
|
|
8974
|
+
}))];
|
|
8975
|
+
}
|
|
8976
|
+
}
|
|
8977
|
+
break;
|
|
8648
8978
|
}
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
const
|
|
8652
|
-
if (
|
|
8653
|
-
else
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8979
|
+
case "number": {
|
|
8980
|
+
const json$1 = _json;
|
|
8981
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
8982
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
8983
|
+
else json$1.type = "number";
|
|
8984
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
8985
|
+
if (typeof minimum === "number") {
|
|
8986
|
+
json$1.minimum = minimum;
|
|
8987
|
+
if (typeof exclusiveMinimum === "number") {
|
|
8988
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8989
|
+
else delete json$1.exclusiveMinimum;
|
|
8990
|
+
}
|
|
8658
8991
|
}
|
|
8992
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
8993
|
+
if (typeof maximum === "number") {
|
|
8994
|
+
json$1.maximum = maximum;
|
|
8995
|
+
if (typeof exclusiveMaximum === "number") {
|
|
8996
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8997
|
+
else delete json$1.exclusiveMaximum;
|
|
8998
|
+
}
|
|
8999
|
+
}
|
|
9000
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
9001
|
+
break;
|
|
8659
9002
|
}
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
if (typeof minimum === "number") {
|
|
8669
|
-
json$1.minimum = minimum;
|
|
8670
|
-
if (typeof exclusiveMinimum === "number") {
|
|
8671
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
8672
|
-
else delete json$1.exclusiveMinimum;
|
|
9003
|
+
case "boolean": {
|
|
9004
|
+
const json$1 = _json;
|
|
9005
|
+
json$1.type = "boolean";
|
|
9006
|
+
break;
|
|
9007
|
+
}
|
|
9008
|
+
case "bigint": {
|
|
9009
|
+
if (this.unrepresentable === "throw") {
|
|
9010
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
8673
9011
|
}
|
|
9012
|
+
break;
|
|
8674
9013
|
}
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
if (typeof exclusiveMaximum === "number") {
|
|
8679
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
8680
|
-
else delete json$1.exclusiveMaximum;
|
|
9014
|
+
case "symbol": {
|
|
9015
|
+
if (this.unrepresentable === "throw") {
|
|
9016
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
8681
9017
|
}
|
|
9018
|
+
break;
|
|
8682
9019
|
}
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
case "boolean": {
|
|
8687
|
-
const json$1 = _json;
|
|
8688
|
-
json$1.type = "boolean";
|
|
8689
|
-
break;
|
|
8690
|
-
}
|
|
8691
|
-
case "bigint": {
|
|
8692
|
-
if (this.unrepresentable === "throw") {
|
|
8693
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9020
|
+
case "null": {
|
|
9021
|
+
_json.type = "null";
|
|
9022
|
+
break;
|
|
8694
9023
|
}
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
case "symbol": {
|
|
8698
|
-
if (this.unrepresentable === "throw") {
|
|
8699
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9024
|
+
case "any": {
|
|
9025
|
+
break;
|
|
8700
9026
|
}
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
case "undefined": {
|
|
8704
|
-
const json$1 = _json;
|
|
8705
|
-
json$1.type = "null";
|
|
8706
|
-
break;
|
|
8707
|
-
}
|
|
8708
|
-
case "null": {
|
|
8709
|
-
_json.type = "null";
|
|
8710
|
-
break;
|
|
8711
|
-
}
|
|
8712
|
-
case "any": {
|
|
8713
|
-
break;
|
|
8714
|
-
}
|
|
8715
|
-
case "unknown": {
|
|
8716
|
-
break;
|
|
8717
|
-
}
|
|
8718
|
-
case "never": {
|
|
8719
|
-
_json.not = {};
|
|
8720
|
-
break;
|
|
8721
|
-
}
|
|
8722
|
-
case "void": {
|
|
8723
|
-
if (this.unrepresentable === "throw") {
|
|
8724
|
-
throw new Error("Void cannot be represented in JSON Schema");
|
|
9027
|
+
case "unknown": {
|
|
9028
|
+
break;
|
|
8725
9029
|
}
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
9030
|
+
case "undefined": {
|
|
9031
|
+
if (this.unrepresentable === "throw") {
|
|
9032
|
+
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
9033
|
+
}
|
|
9034
|
+
break;
|
|
8731
9035
|
}
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
8738
|
-
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
8739
|
-
json$1.type = "array";
|
|
8740
|
-
json$1.items = this.process(def.element, {
|
|
8741
|
-
...params,
|
|
8742
|
-
path: [...params.path, "items"]
|
|
8743
|
-
});
|
|
8744
|
-
break;
|
|
8745
|
-
}
|
|
8746
|
-
case "object": {
|
|
8747
|
-
const json$1 = _json;
|
|
8748
|
-
json$1.type = "object";
|
|
8749
|
-
json$1.properties = {};
|
|
8750
|
-
const shape = def.shape;
|
|
8751
|
-
for (const key in shape) {
|
|
8752
|
-
json$1.properties[key] = this.process(shape[key], {
|
|
8753
|
-
...params,
|
|
8754
|
-
path: [
|
|
8755
|
-
...params.path,
|
|
8756
|
-
"properties",
|
|
8757
|
-
key
|
|
8758
|
-
]
|
|
8759
|
-
});
|
|
9036
|
+
case "void": {
|
|
9037
|
+
if (this.unrepresentable === "throw") {
|
|
9038
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
9039
|
+
}
|
|
9040
|
+
break;
|
|
8760
9041
|
}
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
9042
|
+
case "never": {
|
|
9043
|
+
_json.not = {};
|
|
9044
|
+
break;
|
|
9045
|
+
}
|
|
9046
|
+
case "date": {
|
|
9047
|
+
if (this.unrepresentable === "throw") {
|
|
9048
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
8768
9049
|
}
|
|
8769
|
-
|
|
8770
|
-
if (requiredKeys.size > 0) {
|
|
8771
|
-
json$1.required = Array.from(requiredKeys);
|
|
9050
|
+
break;
|
|
8772
9051
|
}
|
|
8773
|
-
|
|
8774
|
-
json$1
|
|
8775
|
-
|
|
8776
|
-
if (
|
|
8777
|
-
|
|
8778
|
-
json$1.
|
|
9052
|
+
case "array": {
|
|
9053
|
+
const json$1 = _json;
|
|
9054
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9055
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9056
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9057
|
+
json$1.type = "array";
|
|
9058
|
+
json$1.items = this.process(def.element, {
|
|
8779
9059
|
...params,
|
|
8780
|
-
path: [...params.path, "
|
|
9060
|
+
path: [...params.path, "items"]
|
|
8781
9061
|
});
|
|
9062
|
+
break;
|
|
8782
9063
|
}
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
const json$1 = _json;
|
|
8822
|
-
json$1.type = "array";
|
|
8823
|
-
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
8824
|
-
...params,
|
|
8825
|
-
path: [
|
|
8826
|
-
...params.path,
|
|
8827
|
-
"prefixItems",
|
|
8828
|
-
i
|
|
8829
|
-
]
|
|
8830
|
-
}));
|
|
8831
|
-
if (this.target === "draft-2020-12") {
|
|
8832
|
-
json$1.prefixItems = prefixItems;
|
|
8833
|
-
} else {
|
|
8834
|
-
json$1.items = prefixItems;
|
|
9064
|
+
case "object": {
|
|
9065
|
+
const json$1 = _json;
|
|
9066
|
+
json$1.type = "object";
|
|
9067
|
+
json$1.properties = {};
|
|
9068
|
+
const shape = def.shape;
|
|
9069
|
+
for (const key in shape) {
|
|
9070
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
9071
|
+
...params,
|
|
9072
|
+
path: [
|
|
9073
|
+
...params.path,
|
|
9074
|
+
"properties",
|
|
9075
|
+
key
|
|
9076
|
+
]
|
|
9077
|
+
});
|
|
9078
|
+
}
|
|
9079
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9080
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9081
|
+
const v = def.shape[key]._zod;
|
|
9082
|
+
if (this.io === "input") {
|
|
9083
|
+
return v.optin === undefined;
|
|
9084
|
+
} else {
|
|
9085
|
+
return v.optout === undefined;
|
|
9086
|
+
}
|
|
9087
|
+
}));
|
|
9088
|
+
if (requiredKeys.size > 0) {
|
|
9089
|
+
json$1.required = Array.from(requiredKeys);
|
|
9090
|
+
}
|
|
9091
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9092
|
+
json$1.additionalProperties = false;
|
|
9093
|
+
} else if (!def.catchall) {
|
|
9094
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9095
|
+
} else if (def.catchall) {
|
|
9096
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9097
|
+
...params,
|
|
9098
|
+
path: [...params.path, "additionalProperties"]
|
|
9099
|
+
});
|
|
9100
|
+
}
|
|
9101
|
+
break;
|
|
8835
9102
|
}
|
|
8836
|
-
|
|
8837
|
-
const
|
|
9103
|
+
case "union": {
|
|
9104
|
+
const json$1 = _json;
|
|
9105
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
8838
9106
|
...params,
|
|
8839
|
-
path: [
|
|
9107
|
+
path: [
|
|
9108
|
+
...params.path,
|
|
9109
|
+
"anyOf",
|
|
9110
|
+
i
|
|
9111
|
+
]
|
|
9112
|
+
}));
|
|
9113
|
+
break;
|
|
9114
|
+
}
|
|
9115
|
+
case "intersection": {
|
|
9116
|
+
const json$1 = _json;
|
|
9117
|
+
const a = this.process(def.left, {
|
|
9118
|
+
...params,
|
|
9119
|
+
path: [
|
|
9120
|
+
...params.path,
|
|
9121
|
+
"allOf",
|
|
9122
|
+
0
|
|
9123
|
+
]
|
|
9124
|
+
});
|
|
9125
|
+
const b = this.process(def.right, {
|
|
9126
|
+
...params,
|
|
9127
|
+
path: [
|
|
9128
|
+
...params.path,
|
|
9129
|
+
"allOf",
|
|
9130
|
+
1
|
|
9131
|
+
]
|
|
8840
9132
|
});
|
|
9133
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9134
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9135
|
+
json$1.allOf = allOf;
|
|
9136
|
+
break;
|
|
9137
|
+
}
|
|
9138
|
+
case "tuple": {
|
|
9139
|
+
const json$1 = _json;
|
|
9140
|
+
json$1.type = "array";
|
|
9141
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9142
|
+
...params,
|
|
9143
|
+
path: [
|
|
9144
|
+
...params.path,
|
|
9145
|
+
"prefixItems",
|
|
9146
|
+
i
|
|
9147
|
+
]
|
|
9148
|
+
}));
|
|
8841
9149
|
if (this.target === "draft-2020-12") {
|
|
8842
|
-
json$1.
|
|
9150
|
+
json$1.prefixItems = prefixItems;
|
|
8843
9151
|
} else {
|
|
8844
|
-
json$1.
|
|
9152
|
+
json$1.items = prefixItems;
|
|
9153
|
+
}
|
|
9154
|
+
if (def.rest) {
|
|
9155
|
+
const rest = this.process(def.rest, {
|
|
9156
|
+
...params,
|
|
9157
|
+
path: [...params.path, "items"]
|
|
9158
|
+
});
|
|
9159
|
+
if (this.target === "draft-2020-12") {
|
|
9160
|
+
json$1.items = rest;
|
|
9161
|
+
} else {
|
|
9162
|
+
json$1.additionalItems = rest;
|
|
9163
|
+
}
|
|
8845
9164
|
}
|
|
9165
|
+
if (def.rest) {
|
|
9166
|
+
json$1.items = this.process(def.rest, {
|
|
9167
|
+
...params,
|
|
9168
|
+
path: [...params.path, "items"]
|
|
9169
|
+
});
|
|
9170
|
+
}
|
|
9171
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9172
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9173
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9174
|
+
break;
|
|
8846
9175
|
}
|
|
8847
|
-
|
|
8848
|
-
json$1
|
|
9176
|
+
case "record": {
|
|
9177
|
+
const json$1 = _json;
|
|
9178
|
+
json$1.type = "object";
|
|
9179
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
8849
9180
|
...params,
|
|
8850
|
-
path: [...params.path, "
|
|
9181
|
+
path: [...params.path, "propertyNames"]
|
|
8851
9182
|
});
|
|
9183
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9184
|
+
...params,
|
|
9185
|
+
path: [...params.path, "additionalProperties"]
|
|
9186
|
+
});
|
|
9187
|
+
break;
|
|
8852
9188
|
}
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
case "record": {
|
|
8859
|
-
const json$1 = _json;
|
|
8860
|
-
json$1.type = "object";
|
|
8861
|
-
json$1.propertyNames = this.process(def.keyType, {
|
|
8862
|
-
...params,
|
|
8863
|
-
path: [...params.path, "propertyNames"]
|
|
8864
|
-
});
|
|
8865
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
8866
|
-
...params,
|
|
8867
|
-
path: [...params.path, "additionalProperties"]
|
|
8868
|
-
});
|
|
8869
|
-
break;
|
|
8870
|
-
}
|
|
8871
|
-
case "map": {
|
|
8872
|
-
if (this.unrepresentable === "throw") {
|
|
8873
|
-
throw new Error("Map cannot be represented in JSON Schema");
|
|
9189
|
+
case "map": {
|
|
9190
|
+
if (this.unrepresentable === "throw") {
|
|
9191
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9192
|
+
}
|
|
9193
|
+
break;
|
|
8874
9194
|
}
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
9195
|
+
case "set": {
|
|
9196
|
+
if (this.unrepresentable === "throw") {
|
|
9197
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9198
|
+
}
|
|
9199
|
+
break;
|
|
9200
|
+
}
|
|
9201
|
+
case "enum": {
|
|
9202
|
+
const json$1 = _json;
|
|
9203
|
+
const values = getEnumValues(def.entries);
|
|
9204
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9205
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9206
|
+
json$1.enum = values;
|
|
9207
|
+
break;
|
|
8880
9208
|
}
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
if (val === undefined) {
|
|
8896
|
-
if (this.unrepresentable === "throw") {
|
|
8897
|
-
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
8898
|
-
} else {}
|
|
8899
|
-
} else if (typeof val === "bigint") {
|
|
8900
|
-
if (this.unrepresentable === "throw") {
|
|
8901
|
-
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9209
|
+
case "literal": {
|
|
9210
|
+
const json$1 = _json;
|
|
9211
|
+
const vals = [];
|
|
9212
|
+
for (const val of def.values) {
|
|
9213
|
+
if (val === undefined) {
|
|
9214
|
+
if (this.unrepresentable === "throw") {
|
|
9215
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9216
|
+
} else {}
|
|
9217
|
+
} else if (typeof val === "bigint") {
|
|
9218
|
+
if (this.unrepresentable === "throw") {
|
|
9219
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9220
|
+
} else {
|
|
9221
|
+
vals.push(Number(val));
|
|
9222
|
+
}
|
|
8902
9223
|
} else {
|
|
8903
|
-
vals.push(
|
|
9224
|
+
vals.push(val);
|
|
8904
9225
|
}
|
|
9226
|
+
}
|
|
9227
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9228
|
+
const val = vals[0];
|
|
9229
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9230
|
+
json$1.const = val;
|
|
8905
9231
|
} else {
|
|
8906
|
-
vals.
|
|
9232
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9233
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9234
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9235
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9236
|
+
json$1.enum = vals;
|
|
8907
9237
|
}
|
|
9238
|
+
break;
|
|
8908
9239
|
}
|
|
8909
|
-
|
|
8910
|
-
const
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
if (
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
if (mime) {
|
|
8933
|
-
if (mime.length === 1) {
|
|
8934
|
-
file$1.contentMediaType = mime[0];
|
|
8935
|
-
Object.assign(json$1, file$1);
|
|
9240
|
+
case "file": {
|
|
9241
|
+
const json$1 = _json;
|
|
9242
|
+
const file$1 = {
|
|
9243
|
+
type: "string",
|
|
9244
|
+
format: "binary",
|
|
9245
|
+
contentEncoding: "binary"
|
|
9246
|
+
};
|
|
9247
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9248
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9249
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9250
|
+
if (mime) {
|
|
9251
|
+
if (mime.length === 1) {
|
|
9252
|
+
file$1.contentMediaType = mime[0];
|
|
9253
|
+
Object.assign(json$1, file$1);
|
|
9254
|
+
} else {
|
|
9255
|
+
json$1.anyOf = mime.map((m) => {
|
|
9256
|
+
const mFile = {
|
|
9257
|
+
...file$1,
|
|
9258
|
+
contentMediaType: m
|
|
9259
|
+
};
|
|
9260
|
+
return mFile;
|
|
9261
|
+
});
|
|
9262
|
+
}
|
|
8936
9263
|
} else {
|
|
8937
|
-
json$1
|
|
8938
|
-
const mFile = {
|
|
8939
|
-
...file$1,
|
|
8940
|
-
contentMediaType: m
|
|
8941
|
-
};
|
|
8942
|
-
return mFile;
|
|
8943
|
-
});
|
|
9264
|
+
Object.assign(json$1, file$1);
|
|
8944
9265
|
}
|
|
8945
|
-
|
|
8946
|
-
Object.assign(json$1, file$1);
|
|
9266
|
+
break;
|
|
8947
9267
|
}
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
9268
|
+
case "transform": {
|
|
9269
|
+
if (this.unrepresentable === "throw") {
|
|
9270
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9271
|
+
}
|
|
9272
|
+
break;
|
|
8953
9273
|
}
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
8959
|
-
break;
|
|
8960
|
-
}
|
|
8961
|
-
case "nonoptional": {
|
|
8962
|
-
this.process(def.innerType, params);
|
|
8963
|
-
result.ref = def.innerType;
|
|
8964
|
-
break;
|
|
8965
|
-
}
|
|
8966
|
-
case "success": {
|
|
8967
|
-
const json$1 = _json;
|
|
8968
|
-
json$1.type = "boolean";
|
|
8969
|
-
break;
|
|
8970
|
-
}
|
|
8971
|
-
case "default": {
|
|
8972
|
-
this.process(def.innerType, params);
|
|
8973
|
-
result.ref = def.innerType;
|
|
8974
|
-
_json.default = def.defaultValue;
|
|
8975
|
-
break;
|
|
8976
|
-
}
|
|
8977
|
-
case "prefault": {
|
|
8978
|
-
this.process(def.innerType, params);
|
|
8979
|
-
result.ref = def.innerType;
|
|
8980
|
-
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
8981
|
-
break;
|
|
8982
|
-
}
|
|
8983
|
-
case "catch": {
|
|
8984
|
-
this.process(def.innerType, params);
|
|
8985
|
-
result.ref = def.innerType;
|
|
8986
|
-
let catchValue;
|
|
8987
|
-
try {
|
|
8988
|
-
catchValue = def.catchValue(undefined);
|
|
8989
|
-
} catch {
|
|
8990
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9274
|
+
case "nullable": {
|
|
9275
|
+
const inner = this.process(def.innerType, params);
|
|
9276
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9277
|
+
break;
|
|
8991
9278
|
}
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
if (this.unrepresentable === "throw") {
|
|
8997
|
-
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9279
|
+
case "nonoptional": {
|
|
9280
|
+
this.process(def.innerType, params);
|
|
9281
|
+
result.ref = def.innerType;
|
|
9282
|
+
break;
|
|
8998
9283
|
}
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9284
|
+
case "success": {
|
|
9285
|
+
const json$1 = _json;
|
|
9286
|
+
json$1.type = "boolean";
|
|
9287
|
+
break;
|
|
9288
|
+
}
|
|
9289
|
+
case "default": {
|
|
9290
|
+
this.process(def.innerType, params);
|
|
9291
|
+
result.ref = def.innerType;
|
|
9292
|
+
_json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9293
|
+
break;
|
|
9294
|
+
}
|
|
9295
|
+
case "prefault": {
|
|
9296
|
+
this.process(def.innerType, params);
|
|
9297
|
+
result.ref = def.innerType;
|
|
9298
|
+
if (this.io === "input") _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
9299
|
+
break;
|
|
9300
|
+
}
|
|
9301
|
+
case "catch": {
|
|
9302
|
+
this.process(def.innerType, params);
|
|
9303
|
+
result.ref = def.innerType;
|
|
9304
|
+
let catchValue;
|
|
9305
|
+
try {
|
|
9306
|
+
catchValue = def.catchValue(undefined);
|
|
9307
|
+
} catch {
|
|
9308
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9309
|
+
}
|
|
9310
|
+
_json.default = catchValue;
|
|
9311
|
+
break;
|
|
9312
|
+
}
|
|
9313
|
+
case "nan": {
|
|
9314
|
+
if (this.unrepresentable === "throw") {
|
|
9315
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9316
|
+
}
|
|
9317
|
+
break;
|
|
9318
|
+
}
|
|
9319
|
+
case "template_literal": {
|
|
9320
|
+
const json$1 = _json;
|
|
9321
|
+
const pattern = schema._zod.pattern;
|
|
9322
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9323
|
+
json$1.type = "string";
|
|
9324
|
+
json$1.pattern = pattern.source;
|
|
9325
|
+
break;
|
|
9326
|
+
}
|
|
9327
|
+
case "pipe": {
|
|
9328
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9329
|
+
this.process(innerType, params);
|
|
9330
|
+
result.ref = innerType;
|
|
9331
|
+
break;
|
|
9332
|
+
}
|
|
9333
|
+
case "readonly": {
|
|
9334
|
+
this.process(def.innerType, params);
|
|
9335
|
+
result.ref = def.innerType;
|
|
9336
|
+
_json.readOnly = true;
|
|
9337
|
+
break;
|
|
9338
|
+
}
|
|
9339
|
+
case "promise": {
|
|
9340
|
+
this.process(def.innerType, params);
|
|
9341
|
+
result.ref = def.innerType;
|
|
9342
|
+
break;
|
|
9343
|
+
}
|
|
9344
|
+
case "optional": {
|
|
9345
|
+
this.process(def.innerType, params);
|
|
9346
|
+
result.ref = def.innerType;
|
|
9347
|
+
break;
|
|
9348
|
+
}
|
|
9349
|
+
case "lazy": {
|
|
9350
|
+
const innerType = schema._zod.innerType;
|
|
9351
|
+
this.process(innerType, params);
|
|
9352
|
+
result.ref = innerType;
|
|
9353
|
+
break;
|
|
9354
|
+
}
|
|
9355
|
+
case "custom": {
|
|
9356
|
+
if (this.unrepresentable === "throw") {
|
|
9357
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9358
|
+
}
|
|
9359
|
+
break;
|
|
9360
|
+
}
|
|
9361
|
+
default: {
|
|
9362
|
+
def;
|
|
9040
9363
|
}
|
|
9041
|
-
break;
|
|
9042
|
-
}
|
|
9043
|
-
default: {
|
|
9044
|
-
def;
|
|
9045
9364
|
}
|
|
9046
9365
|
}
|
|
9047
9366
|
}
|
|
@@ -9068,12 +9387,15 @@ var JSONSchemaGenerator = class {
|
|
|
9068
9387
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
9069
9388
|
if (params.external) {
|
|
9070
9389
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
9071
|
-
|
|
9390
|
+
const uriGenerator = params.external.uri ?? ((id$1) => id$1);
|
|
9391
|
+
if (externalId) {
|
|
9392
|
+
return { ref: uriGenerator(externalId) };
|
|
9393
|
+
}
|
|
9072
9394
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9073
9395
|
entry[1].defId = id;
|
|
9074
9396
|
return {
|
|
9075
9397
|
defId: id,
|
|
9076
|
-
ref: `${
|
|
9398
|
+
ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}`
|
|
9077
9399
|
};
|
|
9078
9400
|
}
|
|
9079
9401
|
if (entry[1] === root) {
|
|
@@ -9101,6 +9423,14 @@ var JSONSchemaGenerator = class {
|
|
|
9101
9423
|
}
|
|
9102
9424
|
schema$1.$ref = ref;
|
|
9103
9425
|
};
|
|
9426
|
+
if (params.cycles === "throw") {
|
|
9427
|
+
for (const entry of this.seen.entries()) {
|
|
9428
|
+
const seen = entry[1];
|
|
9429
|
+
if (seen.cycle) {
|
|
9430
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9431
|
+
}
|
|
9432
|
+
}
|
|
9433
|
+
}
|
|
9104
9434
|
for (const entry of this.seen.entries()) {
|
|
9105
9435
|
const seen = entry[1];
|
|
9106
9436
|
if (schema === entry[0]) {
|
|
@@ -9120,11 +9450,7 @@ var JSONSchemaGenerator = class {
|
|
|
9120
9450
|
continue;
|
|
9121
9451
|
}
|
|
9122
9452
|
if (seen.cycle) {
|
|
9123
|
-
|
|
9124
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9125
|
-
} else if (params.cycles === "ref") {
|
|
9126
|
-
extractToDef(entry);
|
|
9127
|
-
}
|
|
9453
|
+
extractToDef(entry);
|
|
9128
9454
|
continue;
|
|
9129
9455
|
}
|
|
9130
9456
|
if (seen.count > 1) {
|
|
@@ -9156,7 +9482,8 @@ var JSONSchemaGenerator = class {
|
|
|
9156
9482
|
}
|
|
9157
9483
|
if (!seen.isParent) this.override({
|
|
9158
9484
|
zodSchema,
|
|
9159
|
-
jsonSchema: schema$1
|
|
9485
|
+
jsonSchema: schema$1,
|
|
9486
|
+
path: seen.path ?? []
|
|
9160
9487
|
});
|
|
9161
9488
|
};
|
|
9162
9489
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9170,6 +9497,11 @@ var JSONSchemaGenerator = class {
|
|
|
9170
9497
|
} else {
|
|
9171
9498
|
console.warn(`Invalid target: ${this.target}`);
|
|
9172
9499
|
}
|
|
9500
|
+
if (params.external?.uri) {
|
|
9501
|
+
const id = params.external.registry.get(schema)?.id;
|
|
9502
|
+
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9503
|
+
result.$id = params.external.uri(id);
|
|
9504
|
+
}
|
|
9173
9505
|
Object.assign(result, root.def);
|
|
9174
9506
|
const defs = params.external?.defs ?? {};
|
|
9175
9507
|
for (const entry of this.seen.entries()) {
|
|
@@ -9178,11 +9510,13 @@ var JSONSchemaGenerator = class {
|
|
|
9178
9510
|
defs[seen.defId] = seen.def;
|
|
9179
9511
|
}
|
|
9180
9512
|
}
|
|
9181
|
-
if (
|
|
9182
|
-
if (
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9513
|
+
if (params.external) {} else {
|
|
9514
|
+
if (Object.keys(defs).length > 0) {
|
|
9515
|
+
if (this.target === "draft-2020-12") {
|
|
9516
|
+
result.$defs = defs;
|
|
9517
|
+
} else {
|
|
9518
|
+
result.definitions = defs;
|
|
9519
|
+
}
|
|
9186
9520
|
}
|
|
9187
9521
|
}
|
|
9188
9522
|
try {
|
|
@@ -9203,7 +9537,7 @@ function toJSONSchema(input, _params) {
|
|
|
9203
9537
|
const schemas = {};
|
|
9204
9538
|
const external = {
|
|
9205
9539
|
registry: input,
|
|
9206
|
-
uri: _params?.uri
|
|
9540
|
+
uri: _params?.uri,
|
|
9207
9541
|
defs
|
|
9208
9542
|
};
|
|
9209
9543
|
for (const entry of input._idmap.entries()) {
|
|
@@ -9314,11 +9648,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
9314
9648
|
}
|
|
9315
9649
|
|
|
9316
9650
|
//#endregion
|
|
9317
|
-
//#region ../../node_modules/zod/
|
|
9651
|
+
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9318
9652
|
var json_schema_exports = {};
|
|
9319
9653
|
|
|
9320
9654
|
//#endregion
|
|
9321
|
-
//#region ../../node_modules/zod/
|
|
9655
|
+
//#region ../../node_modules/zod/v4/core/index.js
|
|
9322
9656
|
var core_exports = {};
|
|
9323
9657
|
__export(core_exports, {
|
|
9324
9658
|
$ZodAny: () => $ZodAny,
|
|
@@ -9357,6 +9691,7 @@ __export(core_exports, {
|
|
|
9357
9691
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
9358
9692
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
9359
9693
|
$ZodCustom: () => $ZodCustom,
|
|
9694
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
9360
9695
|
$ZodDate: () => $ZodDate,
|
|
9361
9696
|
$ZodDefault: () => $ZodDefault,
|
|
9362
9697
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -9421,6 +9756,8 @@ __export(core_exports, {
|
|
|
9421
9756
|
Doc: () => Doc,
|
|
9422
9757
|
JSONSchema: () => json_schema_exports,
|
|
9423
9758
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
9759
|
+
NEVER: () => NEVER,
|
|
9760
|
+
TimePrecision: () => TimePrecision,
|
|
9424
9761
|
_any: () => _any,
|
|
9425
9762
|
_array: () => _array,
|
|
9426
9763
|
_base64: () => _base64,
|
|
@@ -9510,6 +9847,7 @@ __export(core_exports, {
|
|
|
9510
9847
|
_size: () => _size,
|
|
9511
9848
|
_startsWith: () => _startsWith,
|
|
9512
9849
|
_string: () => _string,
|
|
9850
|
+
_stringFormat: () => _stringFormat,
|
|
9513
9851
|
_stringbool: () => _stringbool,
|
|
9514
9852
|
_success: () => _success,
|
|
9515
9853
|
_symbol: () => _symbol,
|
|
@@ -9559,7 +9897,7 @@ __export(core_exports, {
|
|
|
9559
9897
|
});
|
|
9560
9898
|
|
|
9561
9899
|
//#endregion
|
|
9562
|
-
//#region ../../node_modules/zod/
|
|
9900
|
+
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9563
9901
|
var iso_exports = {};
|
|
9564
9902
|
__export(iso_exports, {
|
|
9565
9903
|
ZodISODate: () => ZodISODate,
|
|
@@ -9601,7 +9939,7 @@ function duration(params) {
|
|
|
9601
9939
|
}
|
|
9602
9940
|
|
|
9603
9941
|
//#endregion
|
|
9604
|
-
//#region ../../node_modules/zod/
|
|
9942
|
+
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9605
9943
|
const initializer = (inst, issues) => {
|
|
9606
9944
|
$ZodError.init(inst, issues);
|
|
9607
9945
|
inst.name = "ZodError";
|
|
@@ -9619,14 +9957,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
9619
9957
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
9620
9958
|
|
|
9621
9959
|
//#endregion
|
|
9622
|
-
//#region ../../node_modules/zod/
|
|
9960
|
+
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
9623
9961
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
9624
9962
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
9625
9963
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
9626
9964
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
9627
9965
|
|
|
9628
9966
|
//#endregion
|
|
9629
|
-
//#region ../../node_modules/zod/
|
|
9967
|
+
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
9630
9968
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
9631
9969
|
$ZodType.init(inst, def);
|
|
9632
9970
|
inst.def = def;
|
|
@@ -9894,6 +10232,13 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
9894
10232
|
function jwt(params) {
|
|
9895
10233
|
return _jwt(ZodJWT, params);
|
|
9896
10234
|
}
|
|
10235
|
+
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10236
|
+
$ZodCustomStringFormat.init(inst, def);
|
|
10237
|
+
ZodStringFormat.init(inst, def);
|
|
10238
|
+
});
|
|
10239
|
+
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10240
|
+
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10241
|
+
}
|
|
9897
10242
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
9898
10243
|
$ZodNumber.init(inst, def);
|
|
9899
10244
|
ZodType.init(inst, def);
|
|
@@ -10063,9 +10408,7 @@ function keyof(schema) {
|
|
|
10063
10408
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
10064
10409
|
$ZodObject.init(inst, def);
|
|
10065
10410
|
ZodType.init(inst, def);
|
|
10066
|
-
defineLazy(inst, "shape", () =>
|
|
10067
|
-
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
10068
|
-
});
|
|
10411
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
10069
10412
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
10070
10413
|
inst.catchall = (catchall) => inst.clone({
|
|
10071
10414
|
...inst._zod.def,
|
|
@@ -10510,11 +10853,8 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
10510
10853
|
$ZodCustom.init(inst, def);
|
|
10511
10854
|
ZodType.init(inst, def);
|
|
10512
10855
|
});
|
|
10513
|
-
function check(fn
|
|
10514
|
-
const ch = new $ZodCheck({
|
|
10515
|
-
check: "custom",
|
|
10516
|
-
...normalizeParams(params)
|
|
10517
|
-
});
|
|
10856
|
+
function check(fn) {
|
|
10857
|
+
const ch = new $ZodCheck({ check: "custom" });
|
|
10518
10858
|
ch._zod.check = fn;
|
|
10519
10859
|
return ch;
|
|
10520
10860
|
}
|
|
@@ -10524,7 +10864,7 @@ function custom(fn, _params) {
|
|
|
10524
10864
|
function refine(fn, _params = {}) {
|
|
10525
10865
|
return _refine(ZodCustom, fn, _params);
|
|
10526
10866
|
}
|
|
10527
|
-
function superRefine(fn
|
|
10867
|
+
function superRefine(fn) {
|
|
10528
10868
|
const ch = check((payload) => {
|
|
10529
10869
|
payload.addIssue = (issue$1) => {
|
|
10530
10870
|
if (typeof issue$1 === "string") {
|
|
@@ -10540,7 +10880,7 @@ function superRefine(fn, params) {
|
|
|
10540
10880
|
}
|
|
10541
10881
|
};
|
|
10542
10882
|
return fn(payload.value, payload);
|
|
10543
|
-
}
|
|
10883
|
+
});
|
|
10544
10884
|
return ch;
|
|
10545
10885
|
}
|
|
10546
10886
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -10578,7 +10918,7 @@ function preprocess(fn, schema) {
|
|
|
10578
10918
|
}
|
|
10579
10919
|
|
|
10580
10920
|
//#endregion
|
|
10581
|
-
//#region ../../node_modules/zod/
|
|
10921
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10582
10922
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
10583
10923
|
const ZodIssueCode = {
|
|
10584
10924
|
invalid_type: "invalid_type",
|
|
@@ -10593,10 +10933,6 @@ const ZodIssueCode = {
|
|
|
10593
10933
|
invalid_value: "invalid_value",
|
|
10594
10934
|
custom: "custom"
|
|
10595
10935
|
};
|
|
10596
|
-
/** @deprecated Not necessary in Zod 4. */
|
|
10597
|
-
const INVALID = Object.freeze({ status: "aborted" });
|
|
10598
|
-
/** A special constant with type `never` */
|
|
10599
|
-
const NEVER = INVALID;
|
|
10600
10936
|
/** @deprecated Use `z.config(params)` instead. */
|
|
10601
10937
|
function setErrorMap(map$1) {
|
|
10602
10938
|
config({ customError: map$1 });
|
|
@@ -10607,7 +10943,7 @@ function getErrorMap() {
|
|
|
10607
10943
|
}
|
|
10608
10944
|
|
|
10609
10945
|
//#endregion
|
|
10610
|
-
//#region ../../node_modules/zod/
|
|
10946
|
+
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
10611
10947
|
var coerce_exports = {};
|
|
10612
10948
|
__export(coerce_exports, {
|
|
10613
10949
|
bigint: () => bigint,
|
|
@@ -10633,13 +10969,14 @@ function date(params) {
|
|
|
10633
10969
|
}
|
|
10634
10970
|
|
|
10635
10971
|
//#endregion
|
|
10636
|
-
//#region ../../node_modules/zod/
|
|
10972
|
+
//#region ../../node_modules/zod/v4/classic/external.js
|
|
10637
10973
|
var external_exports = {};
|
|
10638
10974
|
__export(external_exports, {
|
|
10639
10975
|
$brand: () => $brand,
|
|
10640
10976
|
$input: () => $input,
|
|
10641
10977
|
$output: () => $output,
|
|
10642
10978
|
NEVER: () => NEVER,
|
|
10979
|
+
TimePrecision: () => TimePrecision,
|
|
10643
10980
|
ZodAny: () => ZodAny,
|
|
10644
10981
|
ZodArray: () => ZodArray,
|
|
10645
10982
|
ZodBase64: () => ZodBase64,
|
|
@@ -10653,6 +10990,7 @@ __export(external_exports, {
|
|
|
10653
10990
|
ZodCUID2: () => ZodCUID2,
|
|
10654
10991
|
ZodCatch: () => ZodCatch,
|
|
10655
10992
|
ZodCustom: () => ZodCustom,
|
|
10993
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
10656
10994
|
ZodDate: () => ZodDate,
|
|
10657
10995
|
ZodDefault: () => ZodDefault,
|
|
10658
10996
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -10814,6 +11152,7 @@ __export(external_exports, {
|
|
|
10814
11152
|
startsWith: () => _startsWith,
|
|
10815
11153
|
strictObject: () => strictObject,
|
|
10816
11154
|
string: () => string$1,
|
|
11155
|
+
stringFormat: () => stringFormat,
|
|
10817
11156
|
stringbool: () => stringbool,
|
|
10818
11157
|
success: () => success,
|
|
10819
11158
|
superRefine: () => superRefine,
|
|
@@ -10844,11 +11183,11 @@ __export(external_exports, {
|
|
|
10844
11183
|
config(en_default());
|
|
10845
11184
|
|
|
10846
11185
|
//#endregion
|
|
10847
|
-
//#region ../../node_modules/zod/
|
|
11186
|
+
//#region ../../node_modules/zod/v4/classic/index.js
|
|
10848
11187
|
var classic_default = external_exports;
|
|
10849
11188
|
|
|
10850
11189
|
//#endregion
|
|
10851
|
-
//#region ../../node_modules/zod/
|
|
11190
|
+
//#region ../../node_modules/zod/v4/index.js
|
|
10852
11191
|
var v4_default = classic_default;
|
|
10853
11192
|
|
|
10854
11193
|
//#endregion
|
|
@@ -10983,8 +11322,8 @@ var EASClient = class {
|
|
|
10983
11322
|
};
|
|
10984
11323
|
return this.deployedAddresses;
|
|
10985
11324
|
} catch (err) {
|
|
10986
|
-
const error$
|
|
10987
|
-
throw new Error(`Failed to deploy EAS contracts: ${error$
|
|
11325
|
+
const error$39 = err;
|
|
11326
|
+
throw new Error(`Failed to deploy EAS contracts: ${error$39.message}`);
|
|
10988
11327
|
}
|
|
10989
11328
|
}
|
|
10990
11329
|
/**
|
|
@@ -11045,8 +11384,8 @@ var EASClient = class {
|
|
|
11045
11384
|
success: true
|
|
11046
11385
|
};
|
|
11047
11386
|
} catch (err) {
|
|
11048
|
-
const error$
|
|
11049
|
-
throw new Error(`Failed to register schema: ${error$
|
|
11387
|
+
const error$39 = err;
|
|
11388
|
+
throw new Error(`Failed to register schema: ${error$39.message}`);
|
|
11050
11389
|
}
|
|
11051
11390
|
}
|
|
11052
11391
|
/**
|
|
@@ -11112,8 +11451,8 @@ var EASClient = class {
|
|
|
11112
11451
|
success: true
|
|
11113
11452
|
};
|
|
11114
11453
|
} catch (err) {
|
|
11115
|
-
const error$
|
|
11116
|
-
throw new Error(`Failed to create attestation: ${error$
|
|
11454
|
+
const error$39 = err;
|
|
11455
|
+
throw new Error(`Failed to create attestation: ${error$39.message}`);
|
|
11117
11456
|
}
|
|
11118
11457
|
}
|
|
11119
11458
|
/**
|
|
@@ -11195,8 +11534,8 @@ var EASClient = class {
|
|
|
11195
11534
|
success: true
|
|
11196
11535
|
};
|
|
11197
11536
|
} catch (err) {
|
|
11198
|
-
const error$
|
|
11199
|
-
throw new Error(`Failed to create multiple attestations: ${error$
|
|
11537
|
+
const error$39 = err;
|
|
11538
|
+
throw new Error(`Failed to create multiple attestations: ${error$39.message}`);
|
|
11200
11539
|
}
|
|
11201
11540
|
}
|
|
11202
11541
|
/**
|
|
@@ -11251,8 +11590,8 @@ var EASClient = class {
|
|
|
11251
11590
|
success: true
|
|
11252
11591
|
};
|
|
11253
11592
|
} catch (err) {
|
|
11254
|
-
const error$
|
|
11255
|
-
throw new Error(`Failed to revoke attestation: ${error$
|
|
11593
|
+
const error$39 = err;
|
|
11594
|
+
throw new Error(`Failed to revoke attestation: ${error$39.message}`);
|
|
11256
11595
|
}
|
|
11257
11596
|
}
|
|
11258
11597
|
/**
|