@settlemint/sdk-utils 2.4.1-prb593b885 → 2.4.1-prc1b8ef12
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/environment.cjs +725 -1064
- package/dist/environment.cjs.map +1 -1
- package/dist/environment.js +725 -1064
- package/dist/environment.js.map +1 -1
- package/dist/validation.cjs +690 -1029
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.js +690 -1029
- package/dist/validation.js.map +1 -1
- package/package.json +1 -1
package/dist/environment.cjs
CHANGED
|
@@ -349,10 +349,10 @@ var SpinnerError = class extends Error {
|
|
|
349
349
|
* });
|
|
350
350
|
*/
|
|
351
351
|
const spinner = async (options) => {
|
|
352
|
-
const handleError = (error$
|
|
353
|
-
const errorMessage = maskTokens(error$
|
|
354
|
-
note((0, yoctocolors.redBright)(`${errorMessage}\n\n${error$
|
|
355
|
-
throw new SpinnerError(errorMessage, error$
|
|
352
|
+
const handleError = (error$37) => {
|
|
353
|
+
const errorMessage = maskTokens(error$37.message);
|
|
354
|
+
note((0, yoctocolors.redBright)(`${errorMessage}\n\n${error$37.stack}`));
|
|
355
|
+
throw new SpinnerError(errorMessage, error$37);
|
|
356
356
|
};
|
|
357
357
|
if (is_in_ci.default || !shouldPrint()) {
|
|
358
358
|
try {
|
|
@@ -480,9 +480,7 @@ function table(title, data) {
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
//#endregion
|
|
483
|
-
//#region ../../node_modules/zod/v4/core/core.js
|
|
484
|
-
/** A special constant with type `never` */
|
|
485
|
-
const NEVER = Object.freeze({ status: "aborted" });
|
|
483
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/core.js
|
|
486
484
|
function $constructor(name, initializer$2, params) {
|
|
487
485
|
function init(inst, def) {
|
|
488
486
|
var _a;
|
|
@@ -533,7 +531,7 @@ function config$2(newConfig) {
|
|
|
533
531
|
}
|
|
534
532
|
|
|
535
533
|
//#endregion
|
|
536
|
-
//#region ../../node_modules/zod/v4/core/util.js
|
|
534
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/util.js
|
|
537
535
|
var util_exports = {};
|
|
538
536
|
__export(util_exports, {
|
|
539
537
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -548,7 +546,6 @@ __export(util_exports, {
|
|
|
548
546
|
assertNotEqual: () => assertNotEqual,
|
|
549
547
|
assignProp: () => assignProp,
|
|
550
548
|
cached: () => cached,
|
|
551
|
-
captureStackTrace: () => captureStackTrace,
|
|
552
549
|
cleanEnum: () => cleanEnum,
|
|
553
550
|
cleanRegex: () => cleanRegex,
|
|
554
551
|
clone: () => clone,
|
|
@@ -687,14 +684,10 @@ function randomString(length = 10) {
|
|
|
687
684
|
function esc(str) {
|
|
688
685
|
return JSON.stringify(str);
|
|
689
686
|
}
|
|
690
|
-
const captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {};
|
|
691
687
|
function isObject(data) {
|
|
692
688
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
693
689
|
}
|
|
694
690
|
const allowsEval = cached(() => {
|
|
695
|
-
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
696
|
-
return false;
|
|
697
|
-
}
|
|
698
691
|
try {
|
|
699
692
|
const F = Function;
|
|
700
693
|
new F("");
|
|
@@ -703,6 +696,9 @@ const allowsEval = cached(() => {
|
|
|
703
696
|
return false;
|
|
704
697
|
}
|
|
705
698
|
});
|
|
699
|
+
function _isObject(o) {
|
|
700
|
+
return Object.prototype.toString.call(o) === "[object Object]";
|
|
701
|
+
}
|
|
706
702
|
function isPlainObject(o) {
|
|
707
703
|
if (isObject(o) === false) return false;
|
|
708
704
|
const ctor = o.constructor;
|
|
@@ -882,9 +878,6 @@ function omit(schema, mask) {
|
|
|
882
878
|
});
|
|
883
879
|
}
|
|
884
880
|
function extend(schema, shape) {
|
|
885
|
-
if (!isPlainObject(shape)) {
|
|
886
|
-
throw new Error("Invalid input to extend: expected a plain object");
|
|
887
|
-
}
|
|
888
881
|
const def = {
|
|
889
882
|
...schema._zod.def,
|
|
890
883
|
get shape() {
|
|
@@ -972,7 +965,7 @@ function required(Class$1, schema, mask) {
|
|
|
972
965
|
}
|
|
973
966
|
function aborted(x, startIndex = 0) {
|
|
974
967
|
for (let i = startIndex; i < x.issues.length; i++) {
|
|
975
|
-
if (x.issues[i]
|
|
968
|
+
if (x.issues[i].continue !== true) return true;
|
|
976
969
|
}
|
|
977
970
|
return false;
|
|
978
971
|
}
|
|
@@ -1036,7 +1029,7 @@ var Class = class {
|
|
|
1036
1029
|
};
|
|
1037
1030
|
|
|
1038
1031
|
//#endregion
|
|
1039
|
-
//#region ../../node_modules/zod/v4/core/errors.js
|
|
1032
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/errors.js
|
|
1040
1033
|
const initializer$1 = (inst, def) => {
|
|
1041
1034
|
inst.name = "$ZodError";
|
|
1042
1035
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1053,17 +1046,13 @@ const initializer$1 = (inst, def) => {
|
|
|
1053
1046
|
},
|
|
1054
1047
|
enumerable: true
|
|
1055
1048
|
});
|
|
1056
|
-
Object.defineProperty(inst, "toString", {
|
|
1057
|
-
value: () => inst.message,
|
|
1058
|
-
enumerable: false
|
|
1059
|
-
});
|
|
1060
1049
|
};
|
|
1061
1050
|
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
1062
1051
|
const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
1063
|
-
function flattenError(error$
|
|
1052
|
+
function flattenError(error$37, mapper = (issue$1) => issue$1.message) {
|
|
1064
1053
|
const fieldErrors = {};
|
|
1065
1054
|
const formErrors = [];
|
|
1066
|
-
for (const sub of error$
|
|
1055
|
+
for (const sub of error$37.issues) {
|
|
1067
1056
|
if (sub.path.length > 0) {
|
|
1068
1057
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1069
1058
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1076,13 +1065,13 @@ function flattenError(error$39, mapper = (issue$1) => issue$1.message) {
|
|
|
1076
1065
|
fieldErrors
|
|
1077
1066
|
};
|
|
1078
1067
|
}
|
|
1079
|
-
function formatError(error$
|
|
1068
|
+
function formatError(error$37, _mapper) {
|
|
1080
1069
|
const mapper = _mapper || function(issue$1) {
|
|
1081
1070
|
return issue$1.message;
|
|
1082
1071
|
};
|
|
1083
1072
|
const fieldErrors = { _errors: [] };
|
|
1084
|
-
const processError = (error$
|
|
1085
|
-
for (const issue$1 of error$
|
|
1073
|
+
const processError = (error$38) => {
|
|
1074
|
+
for (const issue$1 of error$38.issues) {
|
|
1086
1075
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
1087
1076
|
issue$1.errors.map((issues) => processError({ issues }));
|
|
1088
1077
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -1109,17 +1098,17 @@ function formatError(error$39, _mapper) {
|
|
|
1109
1098
|
}
|
|
1110
1099
|
}
|
|
1111
1100
|
};
|
|
1112
|
-
processError(error$
|
|
1101
|
+
processError(error$37);
|
|
1113
1102
|
return fieldErrors;
|
|
1114
1103
|
}
|
|
1115
|
-
function treeifyError(error$
|
|
1104
|
+
function treeifyError(error$37, _mapper) {
|
|
1116
1105
|
const mapper = _mapper || function(issue$1) {
|
|
1117
1106
|
return issue$1.message;
|
|
1118
1107
|
};
|
|
1119
1108
|
const result = { errors: [] };
|
|
1120
|
-
const processError = (error$
|
|
1109
|
+
const processError = (error$38, path$1 = []) => {
|
|
1121
1110
|
var _a, _b;
|
|
1122
|
-
for (const issue$1 of error$
|
|
1111
|
+
for (const issue$1 of error$38.issues) {
|
|
1123
1112
|
if (issue$1.code === "invalid_union" && issue$1.errors.length) {
|
|
1124
1113
|
issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
1125
1114
|
} else if (issue$1.code === "invalid_key") {
|
|
@@ -1154,7 +1143,7 @@ function treeifyError(error$39, _mapper) {
|
|
|
1154
1143
|
}
|
|
1155
1144
|
}
|
|
1156
1145
|
};
|
|
1157
|
-
processError(error$
|
|
1146
|
+
processError(error$37);
|
|
1158
1147
|
return result;
|
|
1159
1148
|
}
|
|
1160
1149
|
/** Format a ZodError as a human-readable string in the following form.
|
|
@@ -1202,9 +1191,9 @@ function toDotPath(path$1) {
|
|
|
1202
1191
|
}
|
|
1203
1192
|
return segs.join("");
|
|
1204
1193
|
}
|
|
1205
|
-
function prettifyError(error$
|
|
1194
|
+
function prettifyError(error$37) {
|
|
1206
1195
|
const lines = [];
|
|
1207
|
-
const issues = [...error$
|
|
1196
|
+
const issues = [...error$37.issues].sort((a, b) => a.path.length - b.path.length);
|
|
1208
1197
|
for (const issue$1 of issues) {
|
|
1209
1198
|
lines.push(`✖ ${issue$1.message}`);
|
|
1210
1199
|
if (issue$1.path?.length) lines.push(` → at ${toDotPath(issue$1.path)}`);
|
|
@@ -1213,7 +1202,7 @@ function prettifyError(error$39) {
|
|
|
1213
1202
|
}
|
|
1214
1203
|
|
|
1215
1204
|
//#endregion
|
|
1216
|
-
//#region ../../node_modules/zod/v4/core/parse.js
|
|
1205
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/parse.js
|
|
1217
1206
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1218
1207
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1219
1208
|
const result = schema._zod.run({
|
|
@@ -1225,7 +1214,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1225
1214
|
}
|
|
1226
1215
|
if (result.issues.length) {
|
|
1227
1216
|
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config$2())));
|
|
1228
|
-
captureStackTrace(e, _params?.callee);
|
|
1217
|
+
Error.captureStackTrace(e, _params?.callee);
|
|
1229
1218
|
throw e;
|
|
1230
1219
|
}
|
|
1231
1220
|
return result.value;
|
|
@@ -1240,7 +1229,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
1240
1229
|
if (result instanceof Promise) result = await result;
|
|
1241
1230
|
if (result.issues.length) {
|
|
1242
1231
|
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config$2())));
|
|
1243
|
-
captureStackTrace(e, params?.callee);
|
|
1232
|
+
Error.captureStackTrace(e, params?.callee);
|
|
1244
1233
|
throw e;
|
|
1245
1234
|
}
|
|
1246
1235
|
return result.value;
|
|
@@ -1285,9 +1274,10 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1285
1274
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1286
1275
|
|
|
1287
1276
|
//#endregion
|
|
1288
|
-
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
1277
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/regexes.js
|
|
1289
1278
|
var regexes_exports = {};
|
|
1290
1279
|
__export(regexes_exports, {
|
|
1280
|
+
_emoji: () => _emoji$1,
|
|
1291
1281
|
base64: () => base64$1,
|
|
1292
1282
|
base64url: () => base64url$1,
|
|
1293
1283
|
bigint: () => bigint$2,
|
|
@@ -1373,23 +1363,27 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
1373
1363
|
const hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
|
|
1374
1364
|
const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1375
1365
|
const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
1376
|
-
const dateSource = `(
|
|
1366
|
+
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])))`;
|
|
1377
1367
|
const date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
1378
1368
|
function timeSource(args) {
|
|
1379
|
-
|
|
1380
|
-
|
|
1369
|
+
let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
|
|
1370
|
+
if (args.precision) {
|
|
1371
|
+
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
1372
|
+
} else if (args.precision == null) {
|
|
1373
|
+
regex = `${regex}(\\.\\d+)?`;
|
|
1374
|
+
}
|
|
1381
1375
|
return regex;
|
|
1382
1376
|
}
|
|
1383
1377
|
function time$1(args) {
|
|
1384
1378
|
return new RegExp(`^${timeSource(args)}$`);
|
|
1385
1379
|
}
|
|
1386
1380
|
function datetime$1(args) {
|
|
1387
|
-
|
|
1388
|
-
const opts = [
|
|
1389
|
-
|
|
1390
|
-
if (args.offset) opts.push(`([+-]\\d{2}
|
|
1391
|
-
|
|
1392
|
-
return new RegExp(`^${
|
|
1381
|
+
let regex = `${dateSource}T${timeSource(args)}`;
|
|
1382
|
+
const opts = [];
|
|
1383
|
+
opts.push(args.local ? `Z?` : `Z`);
|
|
1384
|
+
if (args.offset) opts.push(`([+-]\\d{2}:?\\d{2})`);
|
|
1385
|
+
regex = `${regex}(${opts.join("|")})`;
|
|
1386
|
+
return new RegExp(`^${regex}$`);
|
|
1393
1387
|
}
|
|
1394
1388
|
const string$2 = (params) => {
|
|
1395
1389
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -1405,7 +1399,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
1405
1399
|
const uppercase = /^[^a-z]*$/;
|
|
1406
1400
|
|
|
1407
1401
|
//#endregion
|
|
1408
|
-
//#region ../../node_modules/zod/v4/core/checks.js
|
|
1402
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/checks.js
|
|
1409
1403
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1410
1404
|
var _a;
|
|
1411
1405
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1596,12 +1590,11 @@ const $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntForma
|
|
|
1596
1590
|
};
|
|
1597
1591
|
});
|
|
1598
1592
|
const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1599
|
-
var _a;
|
|
1600
1593
|
$ZodCheck.init(inst, def);
|
|
1601
|
-
|
|
1594
|
+
inst._zod.when = (payload) => {
|
|
1602
1595
|
const val = payload.value;
|
|
1603
1596
|
return !nullish$1(val) && val.size !== undefined;
|
|
1604
|
-
}
|
|
1597
|
+
};
|
|
1605
1598
|
inst._zod.onattach.push((inst$1) => {
|
|
1606
1599
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1607
1600
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1621,12 +1614,11 @@ const $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst,
|
|
|
1621
1614
|
};
|
|
1622
1615
|
});
|
|
1623
1616
|
const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1624
|
-
var _a;
|
|
1625
1617
|
$ZodCheck.init(inst, def);
|
|
1626
|
-
|
|
1618
|
+
inst._zod.when = (payload) => {
|
|
1627
1619
|
const val = payload.value;
|
|
1628
1620
|
return !nullish$1(val) && val.size !== undefined;
|
|
1629
|
-
}
|
|
1621
|
+
};
|
|
1630
1622
|
inst._zod.onattach.push((inst$1) => {
|
|
1631
1623
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1632
1624
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1646,12 +1638,11 @@ const $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst,
|
|
|
1646
1638
|
};
|
|
1647
1639
|
});
|
|
1648
1640
|
const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1649
|
-
var _a;
|
|
1650
1641
|
$ZodCheck.init(inst, def);
|
|
1651
|
-
|
|
1642
|
+
inst._zod.when = (payload) => {
|
|
1652
1643
|
const val = payload.value;
|
|
1653
1644
|
return !nullish$1(val) && val.size !== undefined;
|
|
1654
|
-
}
|
|
1645
|
+
};
|
|
1655
1646
|
inst._zod.onattach.push((inst$1) => {
|
|
1656
1647
|
const bag = inst$1._zod.bag;
|
|
1657
1648
|
bag.minimum = def.size;
|
|
@@ -1672,8 +1663,6 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1672
1663
|
code: "too_small",
|
|
1673
1664
|
minimum: def.size
|
|
1674
1665
|
},
|
|
1675
|
-
inclusive: true,
|
|
1676
|
-
exact: true,
|
|
1677
1666
|
input: payload.value,
|
|
1678
1667
|
inst,
|
|
1679
1668
|
continue: !def.abort
|
|
@@ -1681,12 +1670,11 @@ const $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals",
|
|
|
1681
1670
|
};
|
|
1682
1671
|
});
|
|
1683
1672
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1684
|
-
var _a;
|
|
1685
1673
|
$ZodCheck.init(inst, def);
|
|
1686
|
-
|
|
1674
|
+
inst._zod.when = (payload) => {
|
|
1687
1675
|
const val = payload.value;
|
|
1688
1676
|
return !nullish$1(val) && val.length !== undefined;
|
|
1689
|
-
}
|
|
1677
|
+
};
|
|
1690
1678
|
inst._zod.onattach.push((inst$1) => {
|
|
1691
1679
|
const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1692
1680
|
if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
|
|
@@ -1708,12 +1696,11 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
1708
1696
|
};
|
|
1709
1697
|
});
|
|
1710
1698
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1711
|
-
var _a;
|
|
1712
1699
|
$ZodCheck.init(inst, def);
|
|
1713
|
-
|
|
1700
|
+
inst._zod.when = (payload) => {
|
|
1714
1701
|
const val = payload.value;
|
|
1715
1702
|
return !nullish$1(val) && val.length !== undefined;
|
|
1716
|
-
}
|
|
1703
|
+
};
|
|
1717
1704
|
inst._zod.onattach.push((inst$1) => {
|
|
1718
1705
|
const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1719
1706
|
if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
|
|
@@ -1735,12 +1722,11 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
1735
1722
|
};
|
|
1736
1723
|
});
|
|
1737
1724
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1738
|
-
var _a;
|
|
1739
1725
|
$ZodCheck.init(inst, def);
|
|
1740
|
-
|
|
1726
|
+
inst._zod.when = (payload) => {
|
|
1741
1727
|
const val = payload.value;
|
|
1742
1728
|
return !nullish$1(val) && val.length !== undefined;
|
|
1743
|
-
}
|
|
1729
|
+
};
|
|
1744
1730
|
inst._zod.onattach.push((inst$1) => {
|
|
1745
1731
|
const bag = inst$1._zod.bag;
|
|
1746
1732
|
bag.minimum = def.length;
|
|
@@ -1762,8 +1748,6 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1762
1748
|
code: "too_small",
|
|
1763
1749
|
minimum: def.length
|
|
1764
1750
|
},
|
|
1765
|
-
inclusive: true,
|
|
1766
|
-
exact: true,
|
|
1767
1751
|
input: payload.value,
|
|
1768
1752
|
inst,
|
|
1769
1753
|
continue: !def.abort
|
|
@@ -1771,7 +1755,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
1771
1755
|
};
|
|
1772
1756
|
});
|
|
1773
1757
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1774
|
-
var _a
|
|
1758
|
+
var _a;
|
|
1775
1759
|
$ZodCheck.init(inst, def);
|
|
1776
1760
|
inst._zod.onattach.push((inst$1) => {
|
|
1777
1761
|
const bag = inst$1._zod.bag;
|
|
@@ -1781,7 +1765,8 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1781
1765
|
bag.patterns.add(def.pattern);
|
|
1782
1766
|
}
|
|
1783
1767
|
});
|
|
1784
|
-
|
|
1768
|
+
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1769
|
+
if (!def.pattern) throw new Error("Not implemented.");
|
|
1785
1770
|
def.pattern.lastIndex = 0;
|
|
1786
1771
|
if (def.pattern.test(payload.value)) return;
|
|
1787
1772
|
payload.issues.push({
|
|
@@ -1794,7 +1779,6 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
1794
1779
|
continue: !def.abort
|
|
1795
1780
|
});
|
|
1796
1781
|
});
|
|
1797
|
-
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
1798
1782
|
});
|
|
1799
1783
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1800
1784
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1918,6 +1902,7 @@ const $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (ins
|
|
|
1918
1902
|
code: "invalid_value",
|
|
1919
1903
|
values: def.mime,
|
|
1920
1904
|
input: payload.value.type,
|
|
1905
|
+
path: ["type"],
|
|
1921
1906
|
inst
|
|
1922
1907
|
});
|
|
1923
1908
|
};
|
|
@@ -1930,7 +1915,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1930
1915
|
});
|
|
1931
1916
|
|
|
1932
1917
|
//#endregion
|
|
1933
|
-
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1918
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/doc.js
|
|
1934
1919
|
var Doc = class {
|
|
1935
1920
|
constructor(args = []) {
|
|
1936
1921
|
this.content = [];
|
|
@@ -1966,18 +1951,19 @@ var Doc = class {
|
|
|
1966
1951
|
};
|
|
1967
1952
|
|
|
1968
1953
|
//#endregion
|
|
1969
|
-
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1954
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/versions.js
|
|
1970
1955
|
const version = {
|
|
1971
1956
|
major: 4,
|
|
1972
1957
|
minor: 0,
|
|
1973
|
-
patch:
|
|
1958
|
+
patch: 0
|
|
1974
1959
|
};
|
|
1975
1960
|
|
|
1976
1961
|
//#endregion
|
|
1977
|
-
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1962
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/schemas.js
|
|
1978
1963
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1979
1964
|
var _a;
|
|
1980
1965
|
inst ?? (inst = {});
|
|
1966
|
+
inst._zod.id = def.type + "_" + randomString(10);
|
|
1981
1967
|
inst._zod.def = def;
|
|
1982
1968
|
inst._zod.bag = inst._zod.bag || {};
|
|
1983
1969
|
inst._zod.version = version;
|
|
@@ -2000,11 +1986,13 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2000
1986
|
let isAborted = aborted(payload);
|
|
2001
1987
|
let asyncResult;
|
|
2002
1988
|
for (const ch of checks$1) {
|
|
2003
|
-
if (ch._zod.
|
|
2004
|
-
const shouldRun = ch._zod.
|
|
1989
|
+
if (ch._zod.when) {
|
|
1990
|
+
const shouldRun = ch._zod.when(payload);
|
|
2005
1991
|
if (!shouldRun) continue;
|
|
2006
|
-
} else
|
|
2007
|
-
|
|
1992
|
+
} else {
|
|
1993
|
+
if (isAborted) {
|
|
1994
|
+
continue;
|
|
1995
|
+
}
|
|
2008
1996
|
}
|
|
2009
1997
|
const currLen = payload.issues.length;
|
|
2010
1998
|
const _ = ch._zod.check(payload);
|
|
@@ -2104,9 +2092,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2104
2092
|
$ZodStringFormat.init(inst, def);
|
|
2105
2093
|
inst._zod.check = (payload) => {
|
|
2106
2094
|
try {
|
|
2107
|
-
const
|
|
2108
|
-
const url$1 = new URL(orig);
|
|
2109
|
-
const href = url$1.href;
|
|
2095
|
+
const url$1 = new URL(payload.value);
|
|
2110
2096
|
if (def.hostname) {
|
|
2111
2097
|
def.hostname.lastIndex = 0;
|
|
2112
2098
|
if (!def.hostname.test(url$1.hostname)) {
|
|
@@ -2135,11 +2121,6 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2135
2121
|
});
|
|
2136
2122
|
}
|
|
2137
2123
|
}
|
|
2138
|
-
if (!orig.endsWith("/") && href.endsWith("/")) {
|
|
2139
|
-
payload.value = href.slice(0, -1);
|
|
2140
|
-
} else {
|
|
2141
|
-
payload.value = href;
|
|
2142
|
-
}
|
|
2143
2124
|
return;
|
|
2144
2125
|
} catch (_) {
|
|
2145
2126
|
payload.issues.push({
|
|
@@ -2310,7 +2291,6 @@ function isValidJWT(token, algorithm = null) {
|
|
|
2310
2291
|
const tokensParts = token.split(".");
|
|
2311
2292
|
if (tokensParts.length !== 3) return false;
|
|
2312
2293
|
const [header] = tokensParts;
|
|
2313
|
-
if (!header) return false;
|
|
2314
2294
|
const parsedHeader = JSON.parse(atob(header));
|
|
2315
2295
|
if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false;
|
|
2316
2296
|
if (!parsedHeader.alg) return false;
|
|
@@ -2333,19 +2313,6 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
2333
2313
|
});
|
|
2334
2314
|
};
|
|
2335
2315
|
});
|
|
2336
|
-
const $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
2337
|
-
$ZodStringFormat.init(inst, def);
|
|
2338
|
-
inst._zod.check = (payload) => {
|
|
2339
|
-
if (def.fn(payload.value)) return;
|
|
2340
|
-
payload.issues.push({
|
|
2341
|
-
code: "invalid_format",
|
|
2342
|
-
format: def.format,
|
|
2343
|
-
input: payload.value,
|
|
2344
|
-
inst,
|
|
2345
|
-
continue: !def.abort
|
|
2346
|
-
});
|
|
2347
|
-
};
|
|
2348
|
-
});
|
|
2349
2316
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
2350
2317
|
$ZodType.init(inst, def);
|
|
2351
2318
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
|
|
@@ -2397,11 +2364,12 @@ const $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
2397
2364
|
if (def.coerce) try {
|
|
2398
2365
|
payload.value = BigInt(payload.value);
|
|
2399
2366
|
} catch (_) {}
|
|
2400
|
-
|
|
2367
|
+
const { value: input } = payload;
|
|
2368
|
+
if (typeof input === "bigint") return payload;
|
|
2401
2369
|
payload.issues.push({
|
|
2402
2370
|
expected: "bigint",
|
|
2403
2371
|
code: "invalid_type",
|
|
2404
|
-
input
|
|
2372
|
+
input,
|
|
2405
2373
|
inst
|
|
2406
2374
|
});
|
|
2407
2375
|
return payload;
|
|
@@ -2414,7 +2382,7 @@ const $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def)
|
|
|
2414
2382
|
const $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
|
|
2415
2383
|
$ZodType.init(inst, def);
|
|
2416
2384
|
inst._zod.parse = (payload, _ctx) => {
|
|
2417
|
-
const input = payload
|
|
2385
|
+
const { value: input } = payload;
|
|
2418
2386
|
if (typeof input === "symbol") return payload;
|
|
2419
2387
|
payload.issues.push({
|
|
2420
2388
|
expected: "symbol",
|
|
@@ -2429,10 +2397,8 @@ const $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def)
|
|
|
2429
2397
|
$ZodType.init(inst, def);
|
|
2430
2398
|
inst._zod.pattern = _undefined$2;
|
|
2431
2399
|
inst._zod.values = new Set([undefined]);
|
|
2432
|
-
inst._zod.optin = "optional";
|
|
2433
|
-
inst._zod.optout = "optional";
|
|
2434
2400
|
inst._zod.parse = (payload, _ctx) => {
|
|
2435
|
-
const input = payload
|
|
2401
|
+
const { value: input } = payload;
|
|
2436
2402
|
if (typeof input === "undefined") return payload;
|
|
2437
2403
|
payload.issues.push({
|
|
2438
2404
|
expected: "undefined",
|
|
@@ -2448,7 +2414,7 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
2448
2414
|
inst._zod.pattern = _null$2;
|
|
2449
2415
|
inst._zod.values = new Set([null]);
|
|
2450
2416
|
inst._zod.parse = (payload, _ctx) => {
|
|
2451
|
-
const input = payload
|
|
2417
|
+
const { value: input } = payload;
|
|
2452
2418
|
if (input === null) return payload;
|
|
2453
2419
|
payload.issues.push({
|
|
2454
2420
|
expected: "null",
|
|
@@ -2482,7 +2448,7 @@ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2482
2448
|
const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
|
|
2483
2449
|
$ZodType.init(inst, def);
|
|
2484
2450
|
inst._zod.parse = (payload, _ctx) => {
|
|
2485
|
-
const input = payload
|
|
2451
|
+
const { value: input } = payload;
|
|
2486
2452
|
if (typeof input === "undefined") return payload;
|
|
2487
2453
|
payload.issues.push({
|
|
2488
2454
|
expected: "void",
|
|
@@ -2613,20 +2579,19 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2613
2579
|
"payload",
|
|
2614
2580
|
"ctx"
|
|
2615
2581
|
]);
|
|
2616
|
-
const
|
|
2582
|
+
const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
|
|
2617
2583
|
const parseStr = (key) => {
|
|
2618
2584
|
const k = esc(key);
|
|
2619
2585
|
return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
2620
2586
|
};
|
|
2621
2587
|
doc.write(`const input = payload.value;`);
|
|
2622
2588
|
const ids = Object.create(null);
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
ids[key] = `key_${counter++}`;
|
|
2589
|
+
for (const key of keys) {
|
|
2590
|
+
ids[key] = randomString(15);
|
|
2626
2591
|
}
|
|
2627
2592
|
doc.write(`const newResult = {}`);
|
|
2628
|
-
for (const key of
|
|
2629
|
-
if (
|
|
2593
|
+
for (const key of keys) {
|
|
2594
|
+
if (optionalKeys$1.has(key)) {
|
|
2630
2595
|
const id = ids[key];
|
|
2631
2596
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2632
2597
|
const k = esc(key);
|
|
@@ -2671,7 +2636,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2671
2636
|
const jit = !globalConfig.jitless;
|
|
2672
2637
|
const allowsEval$1 = allowsEval;
|
|
2673
2638
|
const fastEnabled = jit && allowsEval$1.value;
|
|
2674
|
-
const catchall = def
|
|
2639
|
+
const { catchall } = def;
|
|
2675
2640
|
let value;
|
|
2676
2641
|
inst._zod.parse = (payload, ctx) => {
|
|
2677
2642
|
value ?? (value = _normalized.value);
|
|
@@ -2701,10 +2666,12 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2701
2666
|
const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
|
|
2702
2667
|
if (r instanceof Promise) {
|
|
2703
2668
|
proms.push(r.then((r$1) => isOptional ? handleOptionalObjectResult(r$1, payload, key, input) : handleObjectResult(r$1, payload, key)));
|
|
2704
|
-
} else if (isOptional) {
|
|
2705
|
-
handleOptionalObjectResult(r, payload, key, input);
|
|
2706
2669
|
} else {
|
|
2707
|
-
|
|
2670
|
+
if (isOptional) {
|
|
2671
|
+
handleOptionalObjectResult(r, payload, key, input);
|
|
2672
|
+
} else {
|
|
2673
|
+
handleObjectResult(r, payload, key);
|
|
2674
|
+
}
|
|
2708
2675
|
}
|
|
2709
2676
|
}
|
|
2710
2677
|
}
|
|
@@ -2762,8 +2729,6 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2762
2729
|
}
|
|
2763
2730
|
const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
2764
2731
|
$ZodType.init(inst, def);
|
|
2765
|
-
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
|
|
2766
|
-
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
|
|
2767
2732
|
defineLazy(inst._zod, "values", () => {
|
|
2768
2733
|
if (def.options.every((o) => o._zod.values)) {
|
|
2769
2734
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
@@ -2863,7 +2828,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
2863
2828
|
const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
|
|
2864
2829
|
$ZodType.init(inst, def);
|
|
2865
2830
|
inst._zod.parse = (payload, ctx) => {
|
|
2866
|
-
const input = payload
|
|
2831
|
+
const { value: input } = payload;
|
|
2867
2832
|
const left = def.left._zod.run({
|
|
2868
2833
|
value: input,
|
|
2869
2834
|
issues: []
|
|
@@ -3320,9 +3285,6 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
3320
3285
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;
|
|
3321
3286
|
});
|
|
3322
3287
|
inst._zod.parse = (payload, ctx) => {
|
|
3323
|
-
if (def.innerType._zod.optin === "optional") {
|
|
3324
|
-
return def.innerType._zod.run(payload, ctx);
|
|
3325
|
-
}
|
|
3326
3288
|
if (payload.value === undefined) {
|
|
3327
3289
|
return payload;
|
|
3328
3290
|
}
|
|
@@ -3422,7 +3384,7 @@ const $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3422
3384
|
});
|
|
3423
3385
|
const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3424
3386
|
$ZodType.init(inst, def);
|
|
3425
|
-
inst._zod
|
|
3387
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3426
3388
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3427
3389
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3428
3390
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3493,7 +3455,6 @@ function handlePipeResult(left, def, ctx) {
|
|
|
3493
3455
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3494
3456
|
$ZodType.init(inst, def);
|
|
3495
3457
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3496
|
-
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3497
3458
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
3498
3459
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3499
3460
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3544,7 +3505,7 @@ const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral",
|
|
|
3544
3505
|
input: payload.value,
|
|
3545
3506
|
inst,
|
|
3546
3507
|
code: "invalid_format",
|
|
3547
|
-
format:
|
|
3508
|
+
format: "template_literal",
|
|
3548
3509
|
pattern: inst._zod.pattern.source
|
|
3549
3510
|
});
|
|
3550
3511
|
return payload;
|
|
@@ -3604,8 +3565,8 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3604
3565
|
}
|
|
3605
3566
|
|
|
3606
3567
|
//#endregion
|
|
3607
|
-
//#region ../../node_modules/zod/v4/locales/ar.js
|
|
3608
|
-
const error$
|
|
3568
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ar.js
|
|
3569
|
+
const error$36 = () => {
|
|
3609
3570
|
const Sizable = {
|
|
3610
3571
|
string: {
|
|
3611
3572
|
unit: "حرف",
|
|
@@ -3627,7 +3588,7 @@ const error$38 = () => {
|
|
|
3627
3588
|
function getSizing(origin) {
|
|
3628
3589
|
return Sizable[origin] ?? null;
|
|
3629
3590
|
}
|
|
3630
|
-
const parsedType$
|
|
3591
|
+
const parsedType$2 = (data) => {
|
|
3631
3592
|
const t = typeof data;
|
|
3632
3593
|
switch (t) {
|
|
3633
3594
|
case "number": {
|
|
@@ -3679,7 +3640,7 @@ const error$38 = () => {
|
|
|
3679
3640
|
};
|
|
3680
3641
|
return (issue$1) => {
|
|
3681
3642
|
switch (issue$1.code) {
|
|
3682
|
-
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$
|
|
3643
|
+
case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue$1.expected}، ولكن تم إدخال ${parsedType$2(issue$1.input)}`;
|
|
3683
3644
|
case "invalid_value":
|
|
3684
3645
|
if (issue$1.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3685
3646
|
return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3715,12 +3676,12 @@ const error$38 = () => {
|
|
|
3715
3676
|
};
|
|
3716
3677
|
};
|
|
3717
3678
|
function ar_default() {
|
|
3718
|
-
return { localeError: error$
|
|
3679
|
+
return { localeError: error$36() };
|
|
3719
3680
|
}
|
|
3720
3681
|
|
|
3721
3682
|
//#endregion
|
|
3722
|
-
//#region ../../node_modules/zod/v4/locales/az.js
|
|
3723
|
-
const error$
|
|
3683
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/az.js
|
|
3684
|
+
const error$35 = () => {
|
|
3724
3685
|
const Sizable = {
|
|
3725
3686
|
string: {
|
|
3726
3687
|
unit: "simvol",
|
|
@@ -3742,7 +3703,7 @@ const error$37 = () => {
|
|
|
3742
3703
|
function getSizing(origin) {
|
|
3743
3704
|
return Sizable[origin] ?? null;
|
|
3744
3705
|
}
|
|
3745
|
-
const parsedType$
|
|
3706
|
+
const parsedType$2 = (data) => {
|
|
3746
3707
|
const t = typeof data;
|
|
3747
3708
|
switch (t) {
|
|
3748
3709
|
case "number": {
|
|
@@ -3794,7 +3755,7 @@ const error$37 = () => {
|
|
|
3794
3755
|
};
|
|
3795
3756
|
return (issue$1) => {
|
|
3796
3757
|
switch (issue$1.code) {
|
|
3797
|
-
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$
|
|
3758
|
+
case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue$1.expected}, daxil olan ${parsedType$2(issue$1.input)}`;
|
|
3798
3759
|
case "invalid_value":
|
|
3799
3760
|
if (issue$1.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3800
3761
|
return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3828,11 +3789,11 @@ const error$37 = () => {
|
|
|
3828
3789
|
};
|
|
3829
3790
|
};
|
|
3830
3791
|
function az_default() {
|
|
3831
|
-
return { localeError: error$
|
|
3792
|
+
return { localeError: error$35() };
|
|
3832
3793
|
}
|
|
3833
3794
|
|
|
3834
3795
|
//#endregion
|
|
3835
|
-
//#region ../../node_modules/zod/v4/locales/be.js
|
|
3796
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/be.js
|
|
3836
3797
|
function getBelarusianPlural(count, one, few, many) {
|
|
3837
3798
|
const absCount = Math.abs(count);
|
|
3838
3799
|
const lastDigit = absCount % 10;
|
|
@@ -3848,7 +3809,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
3848
3809
|
}
|
|
3849
3810
|
return many;
|
|
3850
3811
|
}
|
|
3851
|
-
const error$
|
|
3812
|
+
const error$34 = () => {
|
|
3852
3813
|
const Sizable = {
|
|
3853
3814
|
string: {
|
|
3854
3815
|
unit: {
|
|
@@ -3886,7 +3847,7 @@ const error$36 = () => {
|
|
|
3886
3847
|
function getSizing(origin) {
|
|
3887
3848
|
return Sizable[origin] ?? null;
|
|
3888
3849
|
}
|
|
3889
|
-
const parsedType$
|
|
3850
|
+
const parsedType$2 = (data) => {
|
|
3890
3851
|
const t = typeof data;
|
|
3891
3852
|
switch (t) {
|
|
3892
3853
|
case "number": {
|
|
@@ -3938,7 +3899,7 @@ const error$36 = () => {
|
|
|
3938
3899
|
};
|
|
3939
3900
|
return (issue$1) => {
|
|
3940
3901
|
switch (issue$1.code) {
|
|
3941
|
-
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$
|
|
3902
|
+
case "invalid_type": return `Няправільны ўвод: чакаўся ${issue$1.expected}, атрымана ${parsedType$2(issue$1.input)}`;
|
|
3942
3903
|
case "invalid_value":
|
|
3943
3904
|
if (issue$1.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue$1.values[0])}`;
|
|
3944
3905
|
return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -3980,12 +3941,12 @@ const error$36 = () => {
|
|
|
3980
3941
|
};
|
|
3981
3942
|
};
|
|
3982
3943
|
function be_default() {
|
|
3983
|
-
return { localeError: error$
|
|
3944
|
+
return { localeError: error$34() };
|
|
3984
3945
|
}
|
|
3985
3946
|
|
|
3986
3947
|
//#endregion
|
|
3987
|
-
//#region ../../node_modules/zod/v4/locales/ca.js
|
|
3988
|
-
const error$
|
|
3948
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ca.js
|
|
3949
|
+
const error$33 = () => {
|
|
3989
3950
|
const Sizable = {
|
|
3990
3951
|
string: {
|
|
3991
3952
|
unit: "caràcters",
|
|
@@ -4007,7 +3968,7 @@ const error$35 = () => {
|
|
|
4007
3968
|
function getSizing(origin) {
|
|
4008
3969
|
return Sizable[origin] ?? null;
|
|
4009
3970
|
}
|
|
4010
|
-
const parsedType$
|
|
3971
|
+
const parsedType$2 = (data) => {
|
|
4011
3972
|
const t = typeof data;
|
|
4012
3973
|
switch (t) {
|
|
4013
3974
|
case "number": {
|
|
@@ -4059,7 +4020,7 @@ const error$35 = () => {
|
|
|
4059
4020
|
};
|
|
4060
4021
|
return (issue$1) => {
|
|
4061
4022
|
switch (issue$1.code) {
|
|
4062
|
-
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$
|
|
4023
|
+
case "invalid_type": return `Tipus invàlid: s'esperava ${issue$1.expected}, s'ha rebut ${parsedType$2(issue$1.input)}`;
|
|
4063
4024
|
case "invalid_value":
|
|
4064
4025
|
if (issue$1.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4065
4026
|
return `Opció invàlida: s'esperava una de ${joinValues(issue$1.values, " o ")}`;
|
|
@@ -4097,12 +4058,12 @@ const error$35 = () => {
|
|
|
4097
4058
|
};
|
|
4098
4059
|
};
|
|
4099
4060
|
function ca_default() {
|
|
4100
|
-
return { localeError: error$
|
|
4061
|
+
return { localeError: error$33() };
|
|
4101
4062
|
}
|
|
4102
4063
|
|
|
4103
4064
|
//#endregion
|
|
4104
|
-
//#region ../../node_modules/zod/v4/locales/cs.js
|
|
4105
|
-
const error$
|
|
4065
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/cs.js
|
|
4066
|
+
const error$32 = () => {
|
|
4106
4067
|
const Sizable = {
|
|
4107
4068
|
string: {
|
|
4108
4069
|
unit: "znaků",
|
|
@@ -4124,7 +4085,7 @@ const error$34 = () => {
|
|
|
4124
4085
|
function getSizing(origin) {
|
|
4125
4086
|
return Sizable[origin] ?? null;
|
|
4126
4087
|
}
|
|
4127
|
-
const parsedType$
|
|
4088
|
+
const parsedType$2 = (data) => {
|
|
4128
4089
|
const t = typeof data;
|
|
4129
4090
|
switch (t) {
|
|
4130
4091
|
case "number": {
|
|
@@ -4194,7 +4155,7 @@ const error$34 = () => {
|
|
|
4194
4155
|
};
|
|
4195
4156
|
return (issue$1) => {
|
|
4196
4157
|
switch (issue$1.code) {
|
|
4197
|
-
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$
|
|
4158
|
+
case "invalid_type": return `Neplatný vstup: očekáváno ${issue$1.expected}, obdrženo ${parsedType$2(issue$1.input)}`;
|
|
4198
4159
|
case "invalid_value":
|
|
4199
4160
|
if (issue$1.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4200
4161
|
return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4232,12 +4193,12 @@ const error$34 = () => {
|
|
|
4232
4193
|
};
|
|
4233
4194
|
};
|
|
4234
4195
|
function cs_default() {
|
|
4235
|
-
return { localeError: error$
|
|
4196
|
+
return { localeError: error$32() };
|
|
4236
4197
|
}
|
|
4237
4198
|
|
|
4238
4199
|
//#endregion
|
|
4239
|
-
//#region ../../node_modules/zod/v4/locales/de.js
|
|
4240
|
-
const error$
|
|
4200
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/de.js
|
|
4201
|
+
const error$31 = () => {
|
|
4241
4202
|
const Sizable = {
|
|
4242
4203
|
string: {
|
|
4243
4204
|
unit: "Zeichen",
|
|
@@ -4259,7 +4220,7 @@ const error$33 = () => {
|
|
|
4259
4220
|
function getSizing(origin) {
|
|
4260
4221
|
return Sizable[origin] ?? null;
|
|
4261
4222
|
}
|
|
4262
|
-
const parsedType$
|
|
4223
|
+
const parsedType$2 = (data) => {
|
|
4263
4224
|
const t = typeof data;
|
|
4264
4225
|
switch (t) {
|
|
4265
4226
|
case "number": {
|
|
@@ -4311,7 +4272,7 @@ const error$33 = () => {
|
|
|
4311
4272
|
};
|
|
4312
4273
|
return (issue$1) => {
|
|
4313
4274
|
switch (issue$1.code) {
|
|
4314
|
-
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$
|
|
4275
|
+
case "invalid_type": return `Ungültige Eingabe: erwartet ${issue$1.expected}, erhalten ${parsedType$2(issue$1.input)}`;
|
|
4315
4276
|
case "invalid_value":
|
|
4316
4277
|
if (issue$1.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4317
4278
|
return `Ungültige Option: erwartet eine von ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4347,12 +4308,12 @@ const error$33 = () => {
|
|
|
4347
4308
|
};
|
|
4348
4309
|
};
|
|
4349
4310
|
function de_default() {
|
|
4350
|
-
return { localeError: error$
|
|
4311
|
+
return { localeError: error$31() };
|
|
4351
4312
|
}
|
|
4352
4313
|
|
|
4353
4314
|
//#endregion
|
|
4354
|
-
//#region ../../node_modules/zod/v4/locales/en.js
|
|
4355
|
-
const parsedType$
|
|
4315
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/en.js
|
|
4316
|
+
const parsedType$1 = (data) => {
|
|
4356
4317
|
const t = typeof data;
|
|
4357
4318
|
switch (t) {
|
|
4358
4319
|
case "number": {
|
|
@@ -4372,7 +4333,7 @@ const parsedType$2 = (data) => {
|
|
|
4372
4333
|
}
|
|
4373
4334
|
return t;
|
|
4374
4335
|
};
|
|
4375
|
-
const error$
|
|
4336
|
+
const error$30 = () => {
|
|
4376
4337
|
const Sizable = {
|
|
4377
4338
|
string: {
|
|
4378
4339
|
unit: "characters",
|
|
@@ -4426,7 +4387,7 @@ const error$32 = () => {
|
|
|
4426
4387
|
};
|
|
4427
4388
|
return (issue$1) => {
|
|
4428
4389
|
switch (issue$1.code) {
|
|
4429
|
-
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$
|
|
4390
|
+
case "invalid_type": return `Invalid input: expected ${issue$1.expected}, received ${parsedType$1(issue$1.input)}`;
|
|
4430
4391
|
case "invalid_value":
|
|
4431
4392
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4432
4393
|
return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4464,127 +4425,12 @@ const error$32 = () => {
|
|
|
4464
4425
|
};
|
|
4465
4426
|
};
|
|
4466
4427
|
function en_default() {
|
|
4467
|
-
return { localeError: error$
|
|
4468
|
-
}
|
|
4469
|
-
|
|
4470
|
-
//#endregion
|
|
4471
|
-
//#region ../../node_modules/zod/v4/locales/eo.js
|
|
4472
|
-
const parsedType$1 = (data) => {
|
|
4473
|
-
const t = typeof data;
|
|
4474
|
-
switch (t) {
|
|
4475
|
-
case "number": {
|
|
4476
|
-
return Number.isNaN(data) ? "NaN" : "nombro";
|
|
4477
|
-
}
|
|
4478
|
-
case "object": {
|
|
4479
|
-
if (Array.isArray(data)) {
|
|
4480
|
-
return "tabelo";
|
|
4481
|
-
}
|
|
4482
|
-
if (data === null) {
|
|
4483
|
-
return "senvalora";
|
|
4484
|
-
}
|
|
4485
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4486
|
-
return data.constructor.name;
|
|
4487
|
-
}
|
|
4488
|
-
}
|
|
4489
|
-
}
|
|
4490
|
-
return t;
|
|
4491
|
-
};
|
|
4492
|
-
const error$31 = () => {
|
|
4493
|
-
const Sizable = {
|
|
4494
|
-
string: {
|
|
4495
|
-
unit: "karaktrojn",
|
|
4496
|
-
verb: "havi"
|
|
4497
|
-
},
|
|
4498
|
-
file: {
|
|
4499
|
-
unit: "bajtojn",
|
|
4500
|
-
verb: "havi"
|
|
4501
|
-
},
|
|
4502
|
-
array: {
|
|
4503
|
-
unit: "elementojn",
|
|
4504
|
-
verb: "havi"
|
|
4505
|
-
},
|
|
4506
|
-
set: {
|
|
4507
|
-
unit: "elementojn",
|
|
4508
|
-
verb: "havi"
|
|
4509
|
-
}
|
|
4510
|
-
};
|
|
4511
|
-
function getSizing(origin) {
|
|
4512
|
-
return Sizable[origin] ?? null;
|
|
4513
|
-
}
|
|
4514
|
-
const Nouns = {
|
|
4515
|
-
regex: "enigo",
|
|
4516
|
-
email: "retadreso",
|
|
4517
|
-
url: "URL",
|
|
4518
|
-
emoji: "emoĝio",
|
|
4519
|
-
uuid: "UUID",
|
|
4520
|
-
uuidv4: "UUIDv4",
|
|
4521
|
-
uuidv6: "UUIDv6",
|
|
4522
|
-
nanoid: "nanoid",
|
|
4523
|
-
guid: "GUID",
|
|
4524
|
-
cuid: "cuid",
|
|
4525
|
-
cuid2: "cuid2",
|
|
4526
|
-
ulid: "ULID",
|
|
4527
|
-
xid: "XID",
|
|
4528
|
-
ksuid: "KSUID",
|
|
4529
|
-
datetime: "ISO-datotempo",
|
|
4530
|
-
date: "ISO-dato",
|
|
4531
|
-
time: "ISO-tempo",
|
|
4532
|
-
duration: "ISO-daŭro",
|
|
4533
|
-
ipv4: "IPv4-adreso",
|
|
4534
|
-
ipv6: "IPv6-adreso",
|
|
4535
|
-
cidrv4: "IPv4-rango",
|
|
4536
|
-
cidrv6: "IPv6-rango",
|
|
4537
|
-
base64: "64-ume kodita karaktraro",
|
|
4538
|
-
base64url: "URL-64-ume kodita karaktraro",
|
|
4539
|
-
json_string: "JSON-karaktraro",
|
|
4540
|
-
e164: "E.164-nombro",
|
|
4541
|
-
jwt: "JWT",
|
|
4542
|
-
template_literal: "enigo"
|
|
4543
|
-
};
|
|
4544
|
-
return (issue$1) => {
|
|
4545
|
-
switch (issue$1.code) {
|
|
4546
|
-
case "invalid_type": return `Nevalida enigo: atendiĝis ${issue$1.expected}, riceviĝis ${parsedType$1(issue$1.input)}`;
|
|
4547
|
-
case "invalid_value":
|
|
4548
|
-
if (issue$1.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4549
|
-
return `Nevalida opcio: atendiĝis unu el ${joinValues(issue$1.values, "|")}`;
|
|
4550
|
-
case "too_big": {
|
|
4551
|
-
const adj = issue$1.inclusive ? "<=" : "<";
|
|
4552
|
-
const sizing = getSizing(issue$1.origin);
|
|
4553
|
-
if (sizing) return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
|
|
4554
|
-
return `Tro granda: atendiĝis ke ${issue$1.origin ?? "valoro"} havu ${adj}${issue$1.maximum.toString()}`;
|
|
4555
|
-
}
|
|
4556
|
-
case "too_small": {
|
|
4557
|
-
const adj = issue$1.inclusive ? ">=" : ">";
|
|
4558
|
-
const sizing = getSizing(issue$1.origin);
|
|
4559
|
-
if (sizing) {
|
|
4560
|
-
return `Tro malgranda: atendiĝis ke ${issue$1.origin} havu ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
|
|
4561
|
-
}
|
|
4562
|
-
return `Tro malgranda: atendiĝis ke ${issue$1.origin} estu ${adj}${issue$1.minimum.toString()}`;
|
|
4563
|
-
}
|
|
4564
|
-
case "invalid_format": {
|
|
4565
|
-
const _issue = issue$1;
|
|
4566
|
-
if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
|
|
4567
|
-
if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
|
|
4568
|
-
if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
|
|
4569
|
-
if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
|
|
4570
|
-
return `Nevalida ${Nouns[_issue.format] ?? issue$1.format}`;
|
|
4571
|
-
}
|
|
4572
|
-
case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue$1.divisor}`;
|
|
4573
|
-
case "unrecognized_keys": return `Nekonata${issue$1.keys.length > 1 ? "j" : ""} ŝlosilo${issue$1.keys.length > 1 ? "j" : ""}: ${joinValues(issue$1.keys, ", ")}`;
|
|
4574
|
-
case "invalid_key": return `Nevalida ŝlosilo en ${issue$1.origin}`;
|
|
4575
|
-
case "invalid_union": return "Nevalida enigo";
|
|
4576
|
-
case "invalid_element": return `Nevalida valoro en ${issue$1.origin}`;
|
|
4577
|
-
default: return `Nevalida enigo`;
|
|
4578
|
-
}
|
|
4579
|
-
};
|
|
4580
|
-
};
|
|
4581
|
-
function eo_default() {
|
|
4582
|
-
return { localeError: error$31() };
|
|
4428
|
+
return { localeError: error$30() };
|
|
4583
4429
|
}
|
|
4584
4430
|
|
|
4585
4431
|
//#endregion
|
|
4586
|
-
//#region ../../node_modules/zod/v4/locales/es.js
|
|
4587
|
-
const error$
|
|
4432
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/es.js
|
|
4433
|
+
const error$29 = () => {
|
|
4588
4434
|
const Sizable = {
|
|
4589
4435
|
string: {
|
|
4590
4436
|
unit: "caracteres",
|
|
@@ -4606,7 +4452,7 @@ const error$30 = () => {
|
|
|
4606
4452
|
function getSizing(origin) {
|
|
4607
4453
|
return Sizable[origin] ?? null;
|
|
4608
4454
|
}
|
|
4609
|
-
const parsedType$
|
|
4455
|
+
const parsedType$2 = (data) => {
|
|
4610
4456
|
const t = typeof data;
|
|
4611
4457
|
switch (t) {
|
|
4612
4458
|
case "number": {
|
|
@@ -4658,7 +4504,7 @@ const error$30 = () => {
|
|
|
4658
4504
|
};
|
|
4659
4505
|
return (issue$1) => {
|
|
4660
4506
|
switch (issue$1.code) {
|
|
4661
|
-
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$
|
|
4507
|
+
case "invalid_type": return `Entrada inválida: se esperaba ${issue$1.expected}, recibido ${parsedType$2(issue$1.input)}`;
|
|
4662
4508
|
case "invalid_value":
|
|
4663
4509
|
if (issue$1.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4664
4510
|
return `Opción inválida: se esperaba una de ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4694,12 +4540,12 @@ const error$30 = () => {
|
|
|
4694
4540
|
};
|
|
4695
4541
|
};
|
|
4696
4542
|
function es_default() {
|
|
4697
|
-
return { localeError: error$
|
|
4543
|
+
return { localeError: error$29() };
|
|
4698
4544
|
}
|
|
4699
4545
|
|
|
4700
4546
|
//#endregion
|
|
4701
|
-
//#region ../../node_modules/zod/v4/locales/fa.js
|
|
4702
|
-
const error$
|
|
4547
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fa.js
|
|
4548
|
+
const error$28 = () => {
|
|
4703
4549
|
const Sizable = {
|
|
4704
4550
|
string: {
|
|
4705
4551
|
unit: "کاراکتر",
|
|
@@ -4721,7 +4567,7 @@ const error$29 = () => {
|
|
|
4721
4567
|
function getSizing(origin) {
|
|
4722
4568
|
return Sizable[origin] ?? null;
|
|
4723
4569
|
}
|
|
4724
|
-
const parsedType$
|
|
4570
|
+
const parsedType$2 = (data) => {
|
|
4725
4571
|
const t = typeof data;
|
|
4726
4572
|
switch (t) {
|
|
4727
4573
|
case "number": {
|
|
@@ -4773,7 +4619,7 @@ const error$29 = () => {
|
|
|
4773
4619
|
};
|
|
4774
4620
|
return (issue$1) => {
|
|
4775
4621
|
switch (issue$1.code) {
|
|
4776
|
-
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$
|
|
4622
|
+
case "invalid_type": return `ورودی نامعتبر: میبایست ${issue$1.expected} میبود، ${parsedType$2(issue$1.input)} دریافت شد`;
|
|
4777
4623
|
case "invalid_value":
|
|
4778
4624
|
if (issue$1.values.length === 1) {
|
|
4779
4625
|
return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue$1.values[0])} میبود`;
|
|
@@ -4821,12 +4667,12 @@ const error$29 = () => {
|
|
|
4821
4667
|
};
|
|
4822
4668
|
};
|
|
4823
4669
|
function fa_default() {
|
|
4824
|
-
return { localeError: error$
|
|
4670
|
+
return { localeError: error$28() };
|
|
4825
4671
|
}
|
|
4826
4672
|
|
|
4827
4673
|
//#endregion
|
|
4828
|
-
//#region ../../node_modules/zod/v4/locales/fi.js
|
|
4829
|
-
const error$
|
|
4674
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fi.js
|
|
4675
|
+
const error$27 = () => {
|
|
4830
4676
|
const Sizable = {
|
|
4831
4677
|
string: {
|
|
4832
4678
|
unit: "merkkiä",
|
|
@@ -4864,7 +4710,7 @@ const error$28 = () => {
|
|
|
4864
4710
|
function getSizing(origin) {
|
|
4865
4711
|
return Sizable[origin] ?? null;
|
|
4866
4712
|
}
|
|
4867
|
-
const parsedType$
|
|
4713
|
+
const parsedType$2 = (data) => {
|
|
4868
4714
|
const t = typeof data;
|
|
4869
4715
|
switch (t) {
|
|
4870
4716
|
case "number": {
|
|
@@ -4916,7 +4762,7 @@ const error$28 = () => {
|
|
|
4916
4762
|
};
|
|
4917
4763
|
return (issue$1) => {
|
|
4918
4764
|
switch (issue$1.code) {
|
|
4919
|
-
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$
|
|
4765
|
+
case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue$1.expected}, oli ${parsedType$2(issue$1.input)}`;
|
|
4920
4766
|
case "invalid_value":
|
|
4921
4767
|
if (issue$1.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue$1.values[0])}`;
|
|
4922
4768
|
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue$1.values, "|")}`;
|
|
@@ -4956,12 +4802,12 @@ const error$28 = () => {
|
|
|
4956
4802
|
};
|
|
4957
4803
|
};
|
|
4958
4804
|
function fi_default() {
|
|
4959
|
-
return { localeError: error$
|
|
4805
|
+
return { localeError: error$27() };
|
|
4960
4806
|
}
|
|
4961
4807
|
|
|
4962
4808
|
//#endregion
|
|
4963
|
-
//#region ../../node_modules/zod/v4/locales/fr.js
|
|
4964
|
-
const error$
|
|
4809
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fr.js
|
|
4810
|
+
const error$26 = () => {
|
|
4965
4811
|
const Sizable = {
|
|
4966
4812
|
string: {
|
|
4967
4813
|
unit: "caractères",
|
|
@@ -4983,7 +4829,7 @@ const error$27 = () => {
|
|
|
4983
4829
|
function getSizing(origin) {
|
|
4984
4830
|
return Sizable[origin] ?? null;
|
|
4985
4831
|
}
|
|
4986
|
-
const parsedType$
|
|
4832
|
+
const parsedType$2 = (data) => {
|
|
4987
4833
|
const t = typeof data;
|
|
4988
4834
|
switch (t) {
|
|
4989
4835
|
case "number": {
|
|
@@ -5035,7 +4881,7 @@ const error$27 = () => {
|
|
|
5035
4881
|
};
|
|
5036
4882
|
return (issue$1) => {
|
|
5037
4883
|
switch (issue$1.code) {
|
|
5038
|
-
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$
|
|
4884
|
+
case "invalid_type": return `Entrée invalide : ${issue$1.expected} attendu, ${parsedType$2(issue$1.input)} reçu`;
|
|
5039
4885
|
case "invalid_value":
|
|
5040
4886
|
if (issue$1.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue$1.values[0])} attendu`;
|
|
5041
4887
|
return `Option invalide : une valeur parmi ${joinValues(issue$1.values, "|")} attendue`;
|
|
@@ -5071,12 +4917,12 @@ const error$27 = () => {
|
|
|
5071
4917
|
};
|
|
5072
4918
|
};
|
|
5073
4919
|
function fr_default() {
|
|
5074
|
-
return { localeError: error$
|
|
4920
|
+
return { localeError: error$26() };
|
|
5075
4921
|
}
|
|
5076
4922
|
|
|
5077
4923
|
//#endregion
|
|
5078
|
-
//#region ../../node_modules/zod/v4/locales/fr-CA.js
|
|
5079
|
-
const error$
|
|
4924
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/fr-CA.js
|
|
4925
|
+
const error$25 = () => {
|
|
5080
4926
|
const Sizable = {
|
|
5081
4927
|
string: {
|
|
5082
4928
|
unit: "caractères",
|
|
@@ -5098,7 +4944,7 @@ const error$26 = () => {
|
|
|
5098
4944
|
function getSizing(origin) {
|
|
5099
4945
|
return Sizable[origin] ?? null;
|
|
5100
4946
|
}
|
|
5101
|
-
const parsedType$
|
|
4947
|
+
const parsedType$2 = (data) => {
|
|
5102
4948
|
const t = typeof data;
|
|
5103
4949
|
switch (t) {
|
|
5104
4950
|
case "number": {
|
|
@@ -5150,7 +4996,7 @@ const error$26 = () => {
|
|
|
5150
4996
|
};
|
|
5151
4997
|
return (issue$1) => {
|
|
5152
4998
|
switch (issue$1.code) {
|
|
5153
|
-
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$
|
|
4999
|
+
case "invalid_type": return `Entrée invalide : attendu ${issue$1.expected}, reçu ${parsedType$2(issue$1.input)}`;
|
|
5154
5000
|
case "invalid_value":
|
|
5155
5001
|
if (issue$1.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5156
5002
|
return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5188,12 +5034,12 @@ const error$26 = () => {
|
|
|
5188
5034
|
};
|
|
5189
5035
|
};
|
|
5190
5036
|
function fr_CA_default() {
|
|
5191
|
-
return { localeError: error$
|
|
5037
|
+
return { localeError: error$25() };
|
|
5192
5038
|
}
|
|
5193
5039
|
|
|
5194
5040
|
//#endregion
|
|
5195
|
-
//#region ../../node_modules/zod/v4/locales/he.js
|
|
5196
|
-
const error$
|
|
5041
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/he.js
|
|
5042
|
+
const error$24 = () => {
|
|
5197
5043
|
const Sizable = {
|
|
5198
5044
|
string: {
|
|
5199
5045
|
unit: "אותיות",
|
|
@@ -5215,7 +5061,7 @@ const error$25 = () => {
|
|
|
5215
5061
|
function getSizing(origin) {
|
|
5216
5062
|
return Sizable[origin] ?? null;
|
|
5217
5063
|
}
|
|
5218
|
-
const parsedType$
|
|
5064
|
+
const parsedType$2 = (data) => {
|
|
5219
5065
|
const t = typeof data;
|
|
5220
5066
|
switch (t) {
|
|
5221
5067
|
case "number": {
|
|
@@ -5267,7 +5113,7 @@ const error$25 = () => {
|
|
|
5267
5113
|
};
|
|
5268
5114
|
return (issue$1) => {
|
|
5269
5115
|
switch (issue$1.code) {
|
|
5270
|
-
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$
|
|
5116
|
+
case "invalid_type": return `קלט לא תקין: צריך ${issue$1.expected}, התקבל ${parsedType$2(issue$1.input)}`;
|
|
5271
5117
|
case "invalid_value":
|
|
5272
5118
|
if (issue$1.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5273
5119
|
return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5303,12 +5149,12 @@ const error$25 = () => {
|
|
|
5303
5149
|
};
|
|
5304
5150
|
};
|
|
5305
5151
|
function he_default() {
|
|
5306
|
-
return { localeError: error$
|
|
5152
|
+
return { localeError: error$24() };
|
|
5307
5153
|
}
|
|
5308
5154
|
|
|
5309
5155
|
//#endregion
|
|
5310
|
-
//#region ../../node_modules/zod/v4/locales/hu.js
|
|
5311
|
-
const error$
|
|
5156
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/hu.js
|
|
5157
|
+
const error$23 = () => {
|
|
5312
5158
|
const Sizable = {
|
|
5313
5159
|
string: {
|
|
5314
5160
|
unit: "karakter",
|
|
@@ -5330,7 +5176,7 @@ const error$24 = () => {
|
|
|
5330
5176
|
function getSizing(origin) {
|
|
5331
5177
|
return Sizable[origin] ?? null;
|
|
5332
5178
|
}
|
|
5333
|
-
const parsedType$
|
|
5179
|
+
const parsedType$2 = (data) => {
|
|
5334
5180
|
const t = typeof data;
|
|
5335
5181
|
switch (t) {
|
|
5336
5182
|
case "number": {
|
|
@@ -5382,7 +5228,7 @@ const error$24 = () => {
|
|
|
5382
5228
|
};
|
|
5383
5229
|
return (issue$1) => {
|
|
5384
5230
|
switch (issue$1.code) {
|
|
5385
|
-
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$
|
|
5231
|
+
case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue$1.expected}, a kapott érték ${parsedType$2(issue$1.input)}`;
|
|
5386
5232
|
case "invalid_value":
|
|
5387
5233
|
if (issue$1.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5388
5234
|
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5418,12 +5264,12 @@ const error$24 = () => {
|
|
|
5418
5264
|
};
|
|
5419
5265
|
};
|
|
5420
5266
|
function hu_default() {
|
|
5421
|
-
return { localeError: error$
|
|
5267
|
+
return { localeError: error$23() };
|
|
5422
5268
|
}
|
|
5423
5269
|
|
|
5424
5270
|
//#endregion
|
|
5425
|
-
//#region ../../node_modules/zod/v4/locales/id.js
|
|
5426
|
-
const error$
|
|
5271
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/id.js
|
|
5272
|
+
const error$22 = () => {
|
|
5427
5273
|
const Sizable = {
|
|
5428
5274
|
string: {
|
|
5429
5275
|
unit: "karakter",
|
|
@@ -5445,7 +5291,7 @@ const error$23 = () => {
|
|
|
5445
5291
|
function getSizing(origin) {
|
|
5446
5292
|
return Sizable[origin] ?? null;
|
|
5447
5293
|
}
|
|
5448
|
-
const parsedType$
|
|
5294
|
+
const parsedType$2 = (data) => {
|
|
5449
5295
|
const t = typeof data;
|
|
5450
5296
|
switch (t) {
|
|
5451
5297
|
case "number": {
|
|
@@ -5497,7 +5343,7 @@ const error$23 = () => {
|
|
|
5497
5343
|
};
|
|
5498
5344
|
return (issue$1) => {
|
|
5499
5345
|
switch (issue$1.code) {
|
|
5500
|
-
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$
|
|
5346
|
+
case "invalid_type": return `Input tidak valid: diharapkan ${issue$1.expected}, diterima ${parsedType$2(issue$1.input)}`;
|
|
5501
5347
|
case "invalid_value":
|
|
5502
5348
|
if (issue$1.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5503
5349
|
return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5533,12 +5379,12 @@ const error$23 = () => {
|
|
|
5533
5379
|
};
|
|
5534
5380
|
};
|
|
5535
5381
|
function id_default() {
|
|
5536
|
-
return { localeError: error$
|
|
5382
|
+
return { localeError: error$22() };
|
|
5537
5383
|
}
|
|
5538
5384
|
|
|
5539
5385
|
//#endregion
|
|
5540
|
-
//#region ../../node_modules/zod/v4/locales/it.js
|
|
5541
|
-
const error$
|
|
5386
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/it.js
|
|
5387
|
+
const error$21 = () => {
|
|
5542
5388
|
const Sizable = {
|
|
5543
5389
|
string: {
|
|
5544
5390
|
unit: "caratteri",
|
|
@@ -5560,7 +5406,7 @@ const error$22 = () => {
|
|
|
5560
5406
|
function getSizing(origin) {
|
|
5561
5407
|
return Sizable[origin] ?? null;
|
|
5562
5408
|
}
|
|
5563
|
-
const parsedType$
|
|
5409
|
+
const parsedType$2 = (data) => {
|
|
5564
5410
|
const t = typeof data;
|
|
5565
5411
|
switch (t) {
|
|
5566
5412
|
case "number": {
|
|
@@ -5612,7 +5458,7 @@ const error$22 = () => {
|
|
|
5612
5458
|
};
|
|
5613
5459
|
return (issue$1) => {
|
|
5614
5460
|
switch (issue$1.code) {
|
|
5615
|
-
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$
|
|
5461
|
+
case "invalid_type": return `Input non valido: atteso ${issue$1.expected}, ricevuto ${parsedType$2(issue$1.input)}`;
|
|
5616
5462
|
case "invalid_value":
|
|
5617
5463
|
if (issue$1.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5618
5464
|
return `Opzione non valida: atteso uno tra ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5648,12 +5494,12 @@ const error$22 = () => {
|
|
|
5648
5494
|
};
|
|
5649
5495
|
};
|
|
5650
5496
|
function it_default() {
|
|
5651
|
-
return { localeError: error$
|
|
5497
|
+
return { localeError: error$21() };
|
|
5652
5498
|
}
|
|
5653
5499
|
|
|
5654
5500
|
//#endregion
|
|
5655
|
-
//#region ../../node_modules/zod/v4/locales/ja.js
|
|
5656
|
-
const error$
|
|
5501
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ja.js
|
|
5502
|
+
const error$20 = () => {
|
|
5657
5503
|
const Sizable = {
|
|
5658
5504
|
string: {
|
|
5659
5505
|
unit: "文字",
|
|
@@ -5675,7 +5521,7 @@ const error$21 = () => {
|
|
|
5675
5521
|
function getSizing(origin) {
|
|
5676
5522
|
return Sizable[origin] ?? null;
|
|
5677
5523
|
}
|
|
5678
|
-
const parsedType$
|
|
5524
|
+
const parsedType$2 = (data) => {
|
|
5679
5525
|
const t = typeof data;
|
|
5680
5526
|
switch (t) {
|
|
5681
5527
|
case "number": {
|
|
@@ -5727,21 +5573,21 @@ const error$21 = () => {
|
|
|
5727
5573
|
};
|
|
5728
5574
|
return (issue$1) => {
|
|
5729
5575
|
switch (issue$1.code) {
|
|
5730
|
-
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$
|
|
5576
|
+
case "invalid_type": return `無効な入力: ${issue$1.expected}が期待されましたが、${parsedType$2(issue$1.input)}が入力されました`;
|
|
5731
5577
|
case "invalid_value":
|
|
5732
5578
|
if (issue$1.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue$1.values[0])}が期待されました`;
|
|
5733
5579
|
return `無効な選択: ${joinValues(issue$1.values, "、")}のいずれかである必要があります`;
|
|
5734
5580
|
case "too_big": {
|
|
5735
|
-
const adj = issue$1.inclusive ? "
|
|
5581
|
+
const adj = issue$1.inclusive ? "<=" : "<";
|
|
5736
5582
|
const sizing = getSizing(issue$1.origin);
|
|
5737
|
-
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}
|
|
5738
|
-
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}
|
|
5583
|
+
if (sizing) return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${sizing.unit ?? "要素"}${adj}である必要があります`;
|
|
5584
|
+
return `大きすぎる値: ${issue$1.origin ?? "値"}は${issue$1.maximum.toString()}${adj}である必要があります`;
|
|
5739
5585
|
}
|
|
5740
5586
|
case "too_small": {
|
|
5741
|
-
const adj = issue$1.inclusive ? "
|
|
5587
|
+
const adj = issue$1.inclusive ? ">=" : ">";
|
|
5742
5588
|
const sizing = getSizing(issue$1.origin);
|
|
5743
|
-
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}
|
|
5744
|
-
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}
|
|
5589
|
+
if (sizing) return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${sizing.unit}${adj}である必要があります`;
|
|
5590
|
+
return `小さすぎる値: ${issue$1.origin}は${issue$1.minimum.toString()}${adj}である必要があります`;
|
|
5745
5591
|
}
|
|
5746
5592
|
case "invalid_format": {
|
|
5747
5593
|
const _issue = issue$1;
|
|
@@ -5761,12 +5607,12 @@ const error$21 = () => {
|
|
|
5761
5607
|
};
|
|
5762
5608
|
};
|
|
5763
5609
|
function ja_default() {
|
|
5764
|
-
return { localeError: error$
|
|
5610
|
+
return { localeError: error$20() };
|
|
5765
5611
|
}
|
|
5766
5612
|
|
|
5767
5613
|
//#endregion
|
|
5768
|
-
//#region ../../node_modules/zod/v4/locales/kh.js
|
|
5769
|
-
const error$
|
|
5614
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/kh.js
|
|
5615
|
+
const error$19 = () => {
|
|
5770
5616
|
const Sizable = {
|
|
5771
5617
|
string: {
|
|
5772
5618
|
unit: "តួអក្សរ",
|
|
@@ -5788,7 +5634,7 @@ const error$20 = () => {
|
|
|
5788
5634
|
function getSizing(origin) {
|
|
5789
5635
|
return Sizable[origin] ?? null;
|
|
5790
5636
|
}
|
|
5791
|
-
const parsedType$
|
|
5637
|
+
const parsedType$2 = (data) => {
|
|
5792
5638
|
const t = typeof data;
|
|
5793
5639
|
switch (t) {
|
|
5794
5640
|
case "number": {
|
|
@@ -5840,7 +5686,7 @@ const error$20 = () => {
|
|
|
5840
5686
|
};
|
|
5841
5687
|
return (issue$1) => {
|
|
5842
5688
|
switch (issue$1.code) {
|
|
5843
|
-
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$
|
|
5689
|
+
case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue$1.expected} ប៉ុន្តែទទួលបាន ${parsedType$2(issue$1.input)}`;
|
|
5844
5690
|
case "invalid_value":
|
|
5845
5691
|
if (issue$1.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue$1.values[0])}`;
|
|
5846
5692
|
return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue$1.values, "|")}`;
|
|
@@ -5878,12 +5724,12 @@ const error$20 = () => {
|
|
|
5878
5724
|
};
|
|
5879
5725
|
};
|
|
5880
5726
|
function kh_default() {
|
|
5881
|
-
return { localeError: error$
|
|
5727
|
+
return { localeError: error$19() };
|
|
5882
5728
|
}
|
|
5883
5729
|
|
|
5884
5730
|
//#endregion
|
|
5885
|
-
//#region ../../node_modules/zod/v4/locales/ko.js
|
|
5886
|
-
const error$
|
|
5731
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ko.js
|
|
5732
|
+
const error$18 = () => {
|
|
5887
5733
|
const Sizable = {
|
|
5888
5734
|
string: {
|
|
5889
5735
|
unit: "문자",
|
|
@@ -5905,7 +5751,7 @@ const error$19 = () => {
|
|
|
5905
5751
|
function getSizing(origin) {
|
|
5906
5752
|
return Sizable[origin] ?? null;
|
|
5907
5753
|
}
|
|
5908
|
-
const parsedType$
|
|
5754
|
+
const parsedType$2 = (data) => {
|
|
5909
5755
|
const t = typeof data;
|
|
5910
5756
|
switch (t) {
|
|
5911
5757
|
case "number": {
|
|
@@ -5957,7 +5803,7 @@ const error$19 = () => {
|
|
|
5957
5803
|
};
|
|
5958
5804
|
return (issue$1) => {
|
|
5959
5805
|
switch (issue$1.code) {
|
|
5960
|
-
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$
|
|
5806
|
+
case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue$1.expected}, 받은 타입은 ${parsedType$2(issue$1.input)}입니다`;
|
|
5961
5807
|
case "invalid_value":
|
|
5962
5808
|
if (issue$1.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue$1.values[0])} 이어야 합니다`;
|
|
5963
5809
|
return `잘못된 옵션: ${joinValues(issue$1.values, "또는 ")} 중 하나여야 합니다`;
|
|
@@ -5999,12 +5845,12 @@ const error$19 = () => {
|
|
|
5999
5845
|
};
|
|
6000
5846
|
};
|
|
6001
5847
|
function ko_default() {
|
|
6002
|
-
return { localeError: error$
|
|
5848
|
+
return { localeError: error$18() };
|
|
6003
5849
|
}
|
|
6004
5850
|
|
|
6005
5851
|
//#endregion
|
|
6006
|
-
//#region ../../node_modules/zod/v4/locales/mk.js
|
|
6007
|
-
const error$
|
|
5852
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/mk.js
|
|
5853
|
+
const error$17 = () => {
|
|
6008
5854
|
const Sizable = {
|
|
6009
5855
|
string: {
|
|
6010
5856
|
unit: "знаци",
|
|
@@ -6026,7 +5872,7 @@ const error$18 = () => {
|
|
|
6026
5872
|
function getSizing(origin) {
|
|
6027
5873
|
return Sizable[origin] ?? null;
|
|
6028
5874
|
}
|
|
6029
|
-
const parsedType$
|
|
5875
|
+
const parsedType$2 = (data) => {
|
|
6030
5876
|
const t = typeof data;
|
|
6031
5877
|
switch (t) {
|
|
6032
5878
|
case "number": {
|
|
@@ -6078,7 +5924,7 @@ const error$18 = () => {
|
|
|
6078
5924
|
};
|
|
6079
5925
|
return (issue$1) => {
|
|
6080
5926
|
switch (issue$1.code) {
|
|
6081
|
-
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$
|
|
5927
|
+
case "invalid_type": return `Грешен внес: се очекува ${issue$1.expected}, примено ${parsedType$2(issue$1.input)}`;
|
|
6082
5928
|
case "invalid_value":
|
|
6083
5929
|
if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6084
5930
|
return `Грешана опција: се очекува една ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6116,12 +5962,12 @@ const error$18 = () => {
|
|
|
6116
5962
|
};
|
|
6117
5963
|
};
|
|
6118
5964
|
function mk_default() {
|
|
6119
|
-
return { localeError: error$
|
|
5965
|
+
return { localeError: error$17() };
|
|
6120
5966
|
}
|
|
6121
5967
|
|
|
6122
5968
|
//#endregion
|
|
6123
|
-
//#region ../../node_modules/zod/v4/locales/ms.js
|
|
6124
|
-
const error$
|
|
5969
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ms.js
|
|
5970
|
+
const error$16 = () => {
|
|
6125
5971
|
const Sizable = {
|
|
6126
5972
|
string: {
|
|
6127
5973
|
unit: "aksara",
|
|
@@ -6143,7 +5989,7 @@ const error$17 = () => {
|
|
|
6143
5989
|
function getSizing(origin) {
|
|
6144
5990
|
return Sizable[origin] ?? null;
|
|
6145
5991
|
}
|
|
6146
|
-
const parsedType$
|
|
5992
|
+
const parsedType$2 = (data) => {
|
|
6147
5993
|
const t = typeof data;
|
|
6148
5994
|
switch (t) {
|
|
6149
5995
|
case "number": {
|
|
@@ -6195,7 +6041,7 @@ const error$17 = () => {
|
|
|
6195
6041
|
};
|
|
6196
6042
|
return (issue$1) => {
|
|
6197
6043
|
switch (issue$1.code) {
|
|
6198
|
-
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$
|
|
6044
|
+
case "invalid_type": return `Input tidak sah: dijangka ${issue$1.expected}, diterima ${parsedType$2(issue$1.input)}`;
|
|
6199
6045
|
case "invalid_value":
|
|
6200
6046
|
if (issue$1.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6201
6047
|
return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6231,12 +6077,12 @@ const error$17 = () => {
|
|
|
6231
6077
|
};
|
|
6232
6078
|
};
|
|
6233
6079
|
function ms_default() {
|
|
6234
|
-
return { localeError: error$
|
|
6080
|
+
return { localeError: error$16() };
|
|
6235
6081
|
}
|
|
6236
6082
|
|
|
6237
6083
|
//#endregion
|
|
6238
|
-
//#region ../../node_modules/zod/v4/locales/nl.js
|
|
6239
|
-
const error$
|
|
6084
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/nl.js
|
|
6085
|
+
const error$15 = () => {
|
|
6240
6086
|
const Sizable = {
|
|
6241
6087
|
string: { unit: "tekens" },
|
|
6242
6088
|
file: { unit: "bytes" },
|
|
@@ -6246,7 +6092,7 @@ const error$16 = () => {
|
|
|
6246
6092
|
function getSizing(origin) {
|
|
6247
6093
|
return Sizable[origin] ?? null;
|
|
6248
6094
|
}
|
|
6249
|
-
const parsedType$
|
|
6095
|
+
const parsedType$2 = (data) => {
|
|
6250
6096
|
const t = typeof data;
|
|
6251
6097
|
switch (t) {
|
|
6252
6098
|
case "number": {
|
|
@@ -6298,7 +6144,7 @@ const error$16 = () => {
|
|
|
6298
6144
|
};
|
|
6299
6145
|
return (issue$1) => {
|
|
6300
6146
|
switch (issue$1.code) {
|
|
6301
|
-
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$
|
|
6147
|
+
case "invalid_type": return `Ongeldige invoer: verwacht ${issue$1.expected}, ontving ${parsedType$2(issue$1.input)}`;
|
|
6302
6148
|
case "invalid_value":
|
|
6303
6149
|
if (issue$1.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6304
6150
|
return `Ongeldige optie: verwacht één van ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6336,12 +6182,12 @@ const error$16 = () => {
|
|
|
6336
6182
|
};
|
|
6337
6183
|
};
|
|
6338
6184
|
function nl_default() {
|
|
6339
|
-
return { localeError: error$
|
|
6185
|
+
return { localeError: error$15() };
|
|
6340
6186
|
}
|
|
6341
6187
|
|
|
6342
6188
|
//#endregion
|
|
6343
|
-
//#region ../../node_modules/zod/v4/locales/no.js
|
|
6344
|
-
const error$
|
|
6189
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/no.js
|
|
6190
|
+
const error$14 = () => {
|
|
6345
6191
|
const Sizable = {
|
|
6346
6192
|
string: {
|
|
6347
6193
|
unit: "tegn",
|
|
@@ -6363,7 +6209,7 @@ const error$15 = () => {
|
|
|
6363
6209
|
function getSizing(origin) {
|
|
6364
6210
|
return Sizable[origin] ?? null;
|
|
6365
6211
|
}
|
|
6366
|
-
const parsedType$
|
|
6212
|
+
const parsedType$2 = (data) => {
|
|
6367
6213
|
const t = typeof data;
|
|
6368
6214
|
switch (t) {
|
|
6369
6215
|
case "number": {
|
|
@@ -6415,7 +6261,7 @@ const error$15 = () => {
|
|
|
6415
6261
|
};
|
|
6416
6262
|
return (issue$1) => {
|
|
6417
6263
|
switch (issue$1.code) {
|
|
6418
|
-
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$
|
|
6264
|
+
case "invalid_type": return `Ugyldig input: forventet ${issue$1.expected}, fikk ${parsedType$2(issue$1.input)}`;
|
|
6419
6265
|
case "invalid_value":
|
|
6420
6266
|
if (issue$1.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6421
6267
|
return `Ugyldig valg: forventet en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6451,12 +6297,12 @@ const error$15 = () => {
|
|
|
6451
6297
|
};
|
|
6452
6298
|
};
|
|
6453
6299
|
function no_default() {
|
|
6454
|
-
return { localeError: error$
|
|
6300
|
+
return { localeError: error$14() };
|
|
6455
6301
|
}
|
|
6456
6302
|
|
|
6457
6303
|
//#endregion
|
|
6458
|
-
//#region ../../node_modules/zod/v4/locales/ota.js
|
|
6459
|
-
const error$
|
|
6304
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ota.js
|
|
6305
|
+
const error$13 = () => {
|
|
6460
6306
|
const Sizable = {
|
|
6461
6307
|
string: {
|
|
6462
6308
|
unit: "harf",
|
|
@@ -6478,7 +6324,7 @@ const error$14 = () => {
|
|
|
6478
6324
|
function getSizing(origin) {
|
|
6479
6325
|
return Sizable[origin] ?? null;
|
|
6480
6326
|
}
|
|
6481
|
-
const parsedType$
|
|
6327
|
+
const parsedType$2 = (data) => {
|
|
6482
6328
|
const t = typeof data;
|
|
6483
6329
|
switch (t) {
|
|
6484
6330
|
case "number": {
|
|
@@ -6530,7 +6376,7 @@ const error$14 = () => {
|
|
|
6530
6376
|
};
|
|
6531
6377
|
return (issue$1) => {
|
|
6532
6378
|
switch (issue$1.code) {
|
|
6533
|
-
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$
|
|
6379
|
+
case "invalid_type": return `Fâsit giren: umulan ${issue$1.expected}, alınan ${parsedType$2(issue$1.input)}`;
|
|
6534
6380
|
case "invalid_value":
|
|
6535
6381
|
if (issue$1.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6536
6382
|
return `Fâsit tercih: mûteberler ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6566,42 +6412,42 @@ const error$14 = () => {
|
|
|
6566
6412
|
};
|
|
6567
6413
|
};
|
|
6568
6414
|
function ota_default() {
|
|
6569
|
-
return { localeError: error$
|
|
6415
|
+
return { localeError: error$13() };
|
|
6570
6416
|
}
|
|
6571
6417
|
|
|
6572
6418
|
//#endregion
|
|
6573
|
-
//#region ../../node_modules/zod/v4/locales/
|
|
6574
|
-
const error$
|
|
6419
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/pl.js
|
|
6420
|
+
const error$12 = () => {
|
|
6575
6421
|
const Sizable = {
|
|
6576
6422
|
string: {
|
|
6577
|
-
unit: "
|
|
6578
|
-
verb: "
|
|
6423
|
+
unit: "znaków",
|
|
6424
|
+
verb: "mieć"
|
|
6579
6425
|
},
|
|
6580
6426
|
file: {
|
|
6581
|
-
unit: "
|
|
6582
|
-
verb: "
|
|
6427
|
+
unit: "bajtów",
|
|
6428
|
+
verb: "mieć"
|
|
6583
6429
|
},
|
|
6584
6430
|
array: {
|
|
6585
|
-
unit: "
|
|
6586
|
-
verb: "
|
|
6431
|
+
unit: "elementów",
|
|
6432
|
+
verb: "mieć"
|
|
6587
6433
|
},
|
|
6588
6434
|
set: {
|
|
6589
|
-
unit: "
|
|
6590
|
-
verb: "
|
|
6435
|
+
unit: "elementów",
|
|
6436
|
+
verb: "mieć"
|
|
6591
6437
|
}
|
|
6592
6438
|
};
|
|
6593
6439
|
function getSizing(origin) {
|
|
6594
6440
|
return Sizable[origin] ?? null;
|
|
6595
6441
|
}
|
|
6596
|
-
const parsedType$
|
|
6442
|
+
const parsedType$2 = (data) => {
|
|
6597
6443
|
const t = typeof data;
|
|
6598
6444
|
switch (t) {
|
|
6599
6445
|
case "number": {
|
|
6600
|
-
return Number.isNaN(data) ? "NaN" : "
|
|
6446
|
+
return Number.isNaN(data) ? "NaN" : "liczba";
|
|
6601
6447
|
}
|
|
6602
6448
|
case "object": {
|
|
6603
6449
|
if (Array.isArray(data)) {
|
|
6604
|
-
return "
|
|
6450
|
+
return "tablica";
|
|
6605
6451
|
}
|
|
6606
6452
|
if (data === null) {
|
|
6607
6453
|
return "null";
|
|
@@ -6614,10 +6460,10 @@ const error$13 = () => {
|
|
|
6614
6460
|
return t;
|
|
6615
6461
|
};
|
|
6616
6462
|
const Nouns = {
|
|
6617
|
-
regex: "
|
|
6618
|
-
email: "
|
|
6619
|
-
url: "
|
|
6620
|
-
emoji: "
|
|
6463
|
+
regex: "wyrażenie",
|
|
6464
|
+
email: "adres email",
|
|
6465
|
+
url: "URL",
|
|
6466
|
+
emoji: "emoji",
|
|
6621
6467
|
uuid: "UUID",
|
|
6622
6468
|
uuidv4: "UUIDv4",
|
|
6623
6469
|
uuidv6: "UUIDv6",
|
|
@@ -6628,151 +6474,24 @@ const error$13 = () => {
|
|
|
6628
6474
|
ulid: "ULID",
|
|
6629
6475
|
xid: "XID",
|
|
6630
6476
|
ksuid: "KSUID",
|
|
6631
|
-
datetime: "
|
|
6632
|
-
date: "
|
|
6633
|
-
time: "
|
|
6634
|
-
duration: "
|
|
6635
|
-
ipv4: "
|
|
6636
|
-
ipv6: "
|
|
6637
|
-
cidrv4: "
|
|
6638
|
-
cidrv6: "
|
|
6639
|
-
base64: "base64
|
|
6640
|
-
base64url: "base64url
|
|
6641
|
-
json_string: "JSON
|
|
6642
|
-
e164: "
|
|
6477
|
+
datetime: "data i godzina w formacie ISO",
|
|
6478
|
+
date: "data w formacie ISO",
|
|
6479
|
+
time: "godzina w formacie ISO",
|
|
6480
|
+
duration: "czas trwania ISO",
|
|
6481
|
+
ipv4: "adres IPv4",
|
|
6482
|
+
ipv6: "adres IPv6",
|
|
6483
|
+
cidrv4: "zakres IPv4",
|
|
6484
|
+
cidrv6: "zakres IPv6",
|
|
6485
|
+
base64: "ciąg znaków zakodowany w formacie base64",
|
|
6486
|
+
base64url: "ciąg znaków zakodowany w formacie base64url",
|
|
6487
|
+
json_string: "ciąg znaków w formacie JSON",
|
|
6488
|
+
e164: "liczba E.164",
|
|
6643
6489
|
jwt: "JWT",
|
|
6644
|
-
template_literal: "
|
|
6490
|
+
template_literal: "wejście"
|
|
6645
6491
|
};
|
|
6646
6492
|
return (issue$1) => {
|
|
6647
6493
|
switch (issue$1.code) {
|
|
6648
|
-
case "invalid_type": return
|
|
6649
|
-
case "invalid_value":
|
|
6650
|
-
if (issue$1.values.length === 1) {
|
|
6651
|
-
return `ناسم ورودي: باید ${stringifyPrimitive(issue$1.values[0])} وای`;
|
|
6652
|
-
}
|
|
6653
|
-
return `ناسم انتخاب: باید یو له ${joinValues(issue$1.values, "|")} څخه وای`;
|
|
6654
|
-
case "too_big": {
|
|
6655
|
-
const adj = issue$1.inclusive ? "<=" : "<";
|
|
6656
|
-
const sizing = getSizing(issue$1.origin);
|
|
6657
|
-
if (sizing) {
|
|
6658
|
-
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`;
|
|
6659
|
-
}
|
|
6660
|
-
return `ډیر لوی: ${issue$1.origin ?? "ارزښت"} باید ${adj}${issue$1.maximum.toString()} وي`;
|
|
6661
|
-
}
|
|
6662
|
-
case "too_small": {
|
|
6663
|
-
const adj = issue$1.inclusive ? ">=" : ">";
|
|
6664
|
-
const sizing = getSizing(issue$1.origin);
|
|
6665
|
-
if (sizing) {
|
|
6666
|
-
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} ${sizing.unit} ولري`;
|
|
6667
|
-
}
|
|
6668
|
-
return `ډیر کوچنی: ${issue$1.origin} باید ${adj}${issue$1.minimum.toString()} وي`;
|
|
6669
|
-
}
|
|
6670
|
-
case "invalid_format": {
|
|
6671
|
-
const _issue = issue$1;
|
|
6672
|
-
if (_issue.format === "starts_with") {
|
|
6673
|
-
return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`;
|
|
6674
|
-
}
|
|
6675
|
-
if (_issue.format === "ends_with") {
|
|
6676
|
-
return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`;
|
|
6677
|
-
}
|
|
6678
|
-
if (_issue.format === "includes") {
|
|
6679
|
-
return `ناسم متن: باید "${_issue.includes}" ولري`;
|
|
6680
|
-
}
|
|
6681
|
-
if (_issue.format === "regex") {
|
|
6682
|
-
return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;
|
|
6683
|
-
}
|
|
6684
|
-
return `${Nouns[_issue.format] ?? issue$1.format} ناسم دی`;
|
|
6685
|
-
}
|
|
6686
|
-
case "not_multiple_of": return `ناسم عدد: باید د ${issue$1.divisor} مضرب وي`;
|
|
6687
|
-
case "unrecognized_keys": return `ناسم ${issue$1.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue$1.keys, ", ")}`;
|
|
6688
|
-
case "invalid_key": return `ناسم کلیډ په ${issue$1.origin} کې`;
|
|
6689
|
-
case "invalid_union": return `ناسمه ورودي`;
|
|
6690
|
-
case "invalid_element": return `ناسم عنصر په ${issue$1.origin} کې`;
|
|
6691
|
-
default: return `ناسمه ورودي`;
|
|
6692
|
-
}
|
|
6693
|
-
};
|
|
6694
|
-
};
|
|
6695
|
-
function ps_default() {
|
|
6696
|
-
return { localeError: error$13() };
|
|
6697
|
-
}
|
|
6698
|
-
|
|
6699
|
-
//#endregion
|
|
6700
|
-
//#region ../../node_modules/zod/v4/locales/pl.js
|
|
6701
|
-
const error$12 = () => {
|
|
6702
|
-
const Sizable = {
|
|
6703
|
-
string: {
|
|
6704
|
-
unit: "znaków",
|
|
6705
|
-
verb: "mieć"
|
|
6706
|
-
},
|
|
6707
|
-
file: {
|
|
6708
|
-
unit: "bajtów",
|
|
6709
|
-
verb: "mieć"
|
|
6710
|
-
},
|
|
6711
|
-
array: {
|
|
6712
|
-
unit: "elementów",
|
|
6713
|
-
verb: "mieć"
|
|
6714
|
-
},
|
|
6715
|
-
set: {
|
|
6716
|
-
unit: "elementów",
|
|
6717
|
-
verb: "mieć"
|
|
6718
|
-
}
|
|
6719
|
-
};
|
|
6720
|
-
function getSizing(origin) {
|
|
6721
|
-
return Sizable[origin] ?? null;
|
|
6722
|
-
}
|
|
6723
|
-
const parsedType$3 = (data) => {
|
|
6724
|
-
const t = typeof data;
|
|
6725
|
-
switch (t) {
|
|
6726
|
-
case "number": {
|
|
6727
|
-
return Number.isNaN(data) ? "NaN" : "liczba";
|
|
6728
|
-
}
|
|
6729
|
-
case "object": {
|
|
6730
|
-
if (Array.isArray(data)) {
|
|
6731
|
-
return "tablica";
|
|
6732
|
-
}
|
|
6733
|
-
if (data === null) {
|
|
6734
|
-
return "null";
|
|
6735
|
-
}
|
|
6736
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
6737
|
-
return data.constructor.name;
|
|
6738
|
-
}
|
|
6739
|
-
}
|
|
6740
|
-
}
|
|
6741
|
-
return t;
|
|
6742
|
-
};
|
|
6743
|
-
const Nouns = {
|
|
6744
|
-
regex: "wyrażenie",
|
|
6745
|
-
email: "adres email",
|
|
6746
|
-
url: "URL",
|
|
6747
|
-
emoji: "emoji",
|
|
6748
|
-
uuid: "UUID",
|
|
6749
|
-
uuidv4: "UUIDv4",
|
|
6750
|
-
uuidv6: "UUIDv6",
|
|
6751
|
-
nanoid: "nanoid",
|
|
6752
|
-
guid: "GUID",
|
|
6753
|
-
cuid: "cuid",
|
|
6754
|
-
cuid2: "cuid2",
|
|
6755
|
-
ulid: "ULID",
|
|
6756
|
-
xid: "XID",
|
|
6757
|
-
ksuid: "KSUID",
|
|
6758
|
-
datetime: "data i godzina w formacie ISO",
|
|
6759
|
-
date: "data w formacie ISO",
|
|
6760
|
-
time: "godzina w formacie ISO",
|
|
6761
|
-
duration: "czas trwania ISO",
|
|
6762
|
-
ipv4: "adres IPv4",
|
|
6763
|
-
ipv6: "adres IPv6",
|
|
6764
|
-
cidrv4: "zakres IPv4",
|
|
6765
|
-
cidrv6: "zakres IPv6",
|
|
6766
|
-
base64: "ciąg znaków zakodowany w formacie base64",
|
|
6767
|
-
base64url: "ciąg znaków zakodowany w formacie base64url",
|
|
6768
|
-
json_string: "ciąg znaków w formacie JSON",
|
|
6769
|
-
e164: "liczba E.164",
|
|
6770
|
-
jwt: "JWT",
|
|
6771
|
-
template_literal: "wejście"
|
|
6772
|
-
};
|
|
6773
|
-
return (issue$1) => {
|
|
6774
|
-
switch (issue$1.code) {
|
|
6775
|
-
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$3(issue$1.input)}`;
|
|
6494
|
+
case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue$1.expected}, otrzymano ${parsedType$2(issue$1.input)}`;
|
|
6776
6495
|
case "invalid_value":
|
|
6777
6496
|
if (issue$1.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6778
6497
|
return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6814,7 +6533,7 @@ function pl_default() {
|
|
|
6814
6533
|
}
|
|
6815
6534
|
|
|
6816
6535
|
//#endregion
|
|
6817
|
-
//#region ../../node_modules/zod/v4/locales/pt.js
|
|
6536
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/pt.js
|
|
6818
6537
|
const error$11 = () => {
|
|
6819
6538
|
const Sizable = {
|
|
6820
6539
|
string: {
|
|
@@ -6837,7 +6556,7 @@ const error$11 = () => {
|
|
|
6837
6556
|
function getSizing(origin) {
|
|
6838
6557
|
return Sizable[origin] ?? null;
|
|
6839
6558
|
}
|
|
6840
|
-
const parsedType$
|
|
6559
|
+
const parsedType$2 = (data) => {
|
|
6841
6560
|
const t = typeof data;
|
|
6842
6561
|
switch (t) {
|
|
6843
6562
|
case "number": {
|
|
@@ -6889,7 +6608,7 @@ const error$11 = () => {
|
|
|
6889
6608
|
};
|
|
6890
6609
|
return (issue$1) => {
|
|
6891
6610
|
switch (issue$1.code) {
|
|
6892
|
-
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$
|
|
6611
|
+
case "invalid_type": return `Tipo inválido: esperado ${issue$1.expected}, recebido ${parsedType$2(issue$1.input)}`;
|
|
6893
6612
|
case "invalid_value":
|
|
6894
6613
|
if (issue$1.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue$1.values[0])}`;
|
|
6895
6614
|
return `Opção inválida: esperada uma das ${joinValues(issue$1.values, "|")}`;
|
|
@@ -6929,7 +6648,7 @@ function pt_default() {
|
|
|
6929
6648
|
}
|
|
6930
6649
|
|
|
6931
6650
|
//#endregion
|
|
6932
|
-
//#region ../../node_modules/zod/v4/locales/ru.js
|
|
6651
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ru.js
|
|
6933
6652
|
function getRussianPlural(count, one, few, many) {
|
|
6934
6653
|
const absCount = Math.abs(count);
|
|
6935
6654
|
const lastDigit = absCount % 10;
|
|
@@ -6983,7 +6702,7 @@ const error$10 = () => {
|
|
|
6983
6702
|
function getSizing(origin) {
|
|
6984
6703
|
return Sizable[origin] ?? null;
|
|
6985
6704
|
}
|
|
6986
|
-
const parsedType$
|
|
6705
|
+
const parsedType$2 = (data) => {
|
|
6987
6706
|
const t = typeof data;
|
|
6988
6707
|
switch (t) {
|
|
6989
6708
|
case "number": {
|
|
@@ -7035,7 +6754,7 @@ const error$10 = () => {
|
|
|
7035
6754
|
};
|
|
7036
6755
|
return (issue$1) => {
|
|
7037
6756
|
switch (issue$1.code) {
|
|
7038
|
-
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$
|
|
6757
|
+
case "invalid_type": return `Неверный ввод: ожидалось ${issue$1.expected}, получено ${parsedType$2(issue$1.input)}`;
|
|
7039
6758
|
case "invalid_value":
|
|
7040
6759
|
if (issue$1.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7041
6760
|
return `Неверный вариант: ожидалось одно из ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7081,7 +6800,7 @@ function ru_default() {
|
|
|
7081
6800
|
}
|
|
7082
6801
|
|
|
7083
6802
|
//#endregion
|
|
7084
|
-
//#region ../../node_modules/zod/v4/locales/sl.js
|
|
6803
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/sl.js
|
|
7085
6804
|
const error$9 = () => {
|
|
7086
6805
|
const Sizable = {
|
|
7087
6806
|
string: {
|
|
@@ -7104,7 +6823,7 @@ const error$9 = () => {
|
|
|
7104
6823
|
function getSizing(origin) {
|
|
7105
6824
|
return Sizable[origin] ?? null;
|
|
7106
6825
|
}
|
|
7107
|
-
const parsedType$
|
|
6826
|
+
const parsedType$2 = (data) => {
|
|
7108
6827
|
const t = typeof data;
|
|
7109
6828
|
switch (t) {
|
|
7110
6829
|
case "number": {
|
|
@@ -7156,7 +6875,7 @@ const error$9 = () => {
|
|
|
7156
6875
|
};
|
|
7157
6876
|
return (issue$1) => {
|
|
7158
6877
|
switch (issue$1.code) {
|
|
7159
|
-
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$
|
|
6878
|
+
case "invalid_type": return `Neveljaven vnos: pričakovano ${issue$1.expected}, prejeto ${parsedType$2(issue$1.input)}`;
|
|
7160
6879
|
case "invalid_value":
|
|
7161
6880
|
if (issue$1.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7162
6881
|
return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7198,7 +6917,7 @@ function sl_default() {
|
|
|
7198
6917
|
}
|
|
7199
6918
|
|
|
7200
6919
|
//#endregion
|
|
7201
|
-
//#region ../../node_modules/zod/v4/locales/sv.js
|
|
6920
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/sv.js
|
|
7202
6921
|
const error$8 = () => {
|
|
7203
6922
|
const Sizable = {
|
|
7204
6923
|
string: {
|
|
@@ -7221,7 +6940,7 @@ const error$8 = () => {
|
|
|
7221
6940
|
function getSizing(origin) {
|
|
7222
6941
|
return Sizable[origin] ?? null;
|
|
7223
6942
|
}
|
|
7224
|
-
const parsedType$
|
|
6943
|
+
const parsedType$2 = (data) => {
|
|
7225
6944
|
const t = typeof data;
|
|
7226
6945
|
switch (t) {
|
|
7227
6946
|
case "number": {
|
|
@@ -7273,7 +6992,7 @@ const error$8 = () => {
|
|
|
7273
6992
|
};
|
|
7274
6993
|
return (issue$1) => {
|
|
7275
6994
|
switch (issue$1.code) {
|
|
7276
|
-
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$
|
|
6995
|
+
case "invalid_type": return `Ogiltig inmatning: förväntat ${issue$1.expected}, fick ${parsedType$2(issue$1.input)}`;
|
|
7277
6996
|
case "invalid_value":
|
|
7278
6997
|
if (issue$1.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7279
6998
|
return `Ogiltigt val: förväntade en av ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7317,7 +7036,7 @@ function sv_default() {
|
|
|
7317
7036
|
}
|
|
7318
7037
|
|
|
7319
7038
|
//#endregion
|
|
7320
|
-
//#region ../../node_modules/zod/v4/locales/ta.js
|
|
7039
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ta.js
|
|
7321
7040
|
const error$7 = () => {
|
|
7322
7041
|
const Sizable = {
|
|
7323
7042
|
string: {
|
|
@@ -7340,7 +7059,7 @@ const error$7 = () => {
|
|
|
7340
7059
|
function getSizing(origin) {
|
|
7341
7060
|
return Sizable[origin] ?? null;
|
|
7342
7061
|
}
|
|
7343
|
-
const parsedType$
|
|
7062
|
+
const parsedType$2 = (data) => {
|
|
7344
7063
|
const t = typeof data;
|
|
7345
7064
|
switch (t) {
|
|
7346
7065
|
case "number": {
|
|
@@ -7392,7 +7111,7 @@ const error$7 = () => {
|
|
|
7392
7111
|
};
|
|
7393
7112
|
return (issue$1) => {
|
|
7394
7113
|
switch (issue$1.code) {
|
|
7395
|
-
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$
|
|
7114
|
+
case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue$1.expected}, பெறப்பட்டது ${parsedType$2(issue$1.input)}`;
|
|
7396
7115
|
case "invalid_value":
|
|
7397
7116
|
if (issue$1.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7398
7117
|
return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue$1.values, "|")} இல் ஒன்று`;
|
|
@@ -7434,7 +7153,7 @@ function ta_default() {
|
|
|
7434
7153
|
}
|
|
7435
7154
|
|
|
7436
7155
|
//#endregion
|
|
7437
|
-
//#region ../../node_modules/zod/v4/locales/th.js
|
|
7156
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/th.js
|
|
7438
7157
|
const error$6 = () => {
|
|
7439
7158
|
const Sizable = {
|
|
7440
7159
|
string: {
|
|
@@ -7457,7 +7176,7 @@ const error$6 = () => {
|
|
|
7457
7176
|
function getSizing(origin) {
|
|
7458
7177
|
return Sizable[origin] ?? null;
|
|
7459
7178
|
}
|
|
7460
|
-
const parsedType$
|
|
7179
|
+
const parsedType$2 = (data) => {
|
|
7461
7180
|
const t = typeof data;
|
|
7462
7181
|
switch (t) {
|
|
7463
7182
|
case "number": {
|
|
@@ -7509,7 +7228,7 @@ const error$6 = () => {
|
|
|
7509
7228
|
};
|
|
7510
7229
|
return (issue$1) => {
|
|
7511
7230
|
switch (issue$1.code) {
|
|
7512
|
-
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$
|
|
7231
|
+
case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue$1.expected} แต่ได้รับ ${parsedType$2(issue$1.input)}`;
|
|
7513
7232
|
case "invalid_value":
|
|
7514
7233
|
if (issue$1.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7515
7234
|
return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7551,7 +7270,7 @@ function th_default() {
|
|
|
7551
7270
|
}
|
|
7552
7271
|
|
|
7553
7272
|
//#endregion
|
|
7554
|
-
//#region ../../node_modules/zod/v4/locales/tr.js
|
|
7273
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/tr.js
|
|
7555
7274
|
const parsedType = (data) => {
|
|
7556
7275
|
const t = typeof data;
|
|
7557
7276
|
switch (t) {
|
|
@@ -7664,7 +7383,7 @@ function tr_default() {
|
|
|
7664
7383
|
}
|
|
7665
7384
|
|
|
7666
7385
|
//#endregion
|
|
7667
|
-
//#region ../../node_modules/zod/v4/locales/ua.js
|
|
7386
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ua.js
|
|
7668
7387
|
const error$4 = () => {
|
|
7669
7388
|
const Sizable = {
|
|
7670
7389
|
string: {
|
|
@@ -7687,7 +7406,7 @@ const error$4 = () => {
|
|
|
7687
7406
|
function getSizing(origin) {
|
|
7688
7407
|
return Sizable[origin] ?? null;
|
|
7689
7408
|
}
|
|
7690
|
-
const parsedType$
|
|
7409
|
+
const parsedType$2 = (data) => {
|
|
7691
7410
|
const t = typeof data;
|
|
7692
7411
|
switch (t) {
|
|
7693
7412
|
case "number": {
|
|
@@ -7739,7 +7458,7 @@ const error$4 = () => {
|
|
|
7739
7458
|
};
|
|
7740
7459
|
return (issue$1) => {
|
|
7741
7460
|
switch (issue$1.code) {
|
|
7742
|
-
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$
|
|
7461
|
+
case "invalid_type": return `Неправильні вхідні дані: очікується ${issue$1.expected}, отримано ${parsedType$2(issue$1.input)}`;
|
|
7743
7462
|
case "invalid_value":
|
|
7744
7463
|
if (issue$1.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7745
7464
|
return `Неправильна опція: очікується одне з ${joinValues(issue$1.values, "|")}`;
|
|
@@ -7779,7 +7498,7 @@ function ua_default() {
|
|
|
7779
7498
|
}
|
|
7780
7499
|
|
|
7781
7500
|
//#endregion
|
|
7782
|
-
//#region ../../node_modules/zod/v4/locales/ur.js
|
|
7501
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/ur.js
|
|
7783
7502
|
const error$3 = () => {
|
|
7784
7503
|
const Sizable = {
|
|
7785
7504
|
string: {
|
|
@@ -7802,7 +7521,7 @@ const error$3 = () => {
|
|
|
7802
7521
|
function getSizing(origin) {
|
|
7803
7522
|
return Sizable[origin] ?? null;
|
|
7804
7523
|
}
|
|
7805
|
-
const parsedType$
|
|
7524
|
+
const parsedType$2 = (data) => {
|
|
7806
7525
|
const t = typeof data;
|
|
7807
7526
|
switch (t) {
|
|
7808
7527
|
case "number": {
|
|
@@ -7854,7 +7573,7 @@ const error$3 = () => {
|
|
|
7854
7573
|
};
|
|
7855
7574
|
return (issue$1) => {
|
|
7856
7575
|
switch (issue$1.code) {
|
|
7857
|
-
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$
|
|
7576
|
+
case "invalid_type": return `غلط ان پٹ: ${issue$1.expected} متوقع تھا، ${parsedType$2(issue$1.input)} موصول ہوا`;
|
|
7858
7577
|
case "invalid_value":
|
|
7859
7578
|
if (issue$1.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue$1.values[0])} متوقع تھا`;
|
|
7860
7579
|
return `غلط آپشن: ${joinValues(issue$1.values, "|")} میں سے ایک متوقع تھا`;
|
|
@@ -7896,7 +7615,7 @@ function ur_default() {
|
|
|
7896
7615
|
}
|
|
7897
7616
|
|
|
7898
7617
|
//#endregion
|
|
7899
|
-
//#region ../../node_modules/zod/v4/locales/vi.js
|
|
7618
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/vi.js
|
|
7900
7619
|
const error$2 = () => {
|
|
7901
7620
|
const Sizable = {
|
|
7902
7621
|
string: {
|
|
@@ -7919,7 +7638,7 @@ const error$2 = () => {
|
|
|
7919
7638
|
function getSizing(origin) {
|
|
7920
7639
|
return Sizable[origin] ?? null;
|
|
7921
7640
|
}
|
|
7922
|
-
const parsedType$
|
|
7641
|
+
const parsedType$2 = (data) => {
|
|
7923
7642
|
const t = typeof data;
|
|
7924
7643
|
switch (t) {
|
|
7925
7644
|
case "number": {
|
|
@@ -7971,7 +7690,7 @@ const error$2 = () => {
|
|
|
7971
7690
|
};
|
|
7972
7691
|
return (issue$1) => {
|
|
7973
7692
|
switch (issue$1.code) {
|
|
7974
|
-
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$
|
|
7693
|
+
case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue$1.expected}, nhận được ${parsedType$2(issue$1.input)}`;
|
|
7975
7694
|
case "invalid_value":
|
|
7976
7695
|
if (issue$1.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue$1.values[0])}`;
|
|
7977
7696
|
return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue$1.values, "|")}`;
|
|
@@ -8011,7 +7730,7 @@ function vi_default() {
|
|
|
8011
7730
|
}
|
|
8012
7731
|
|
|
8013
7732
|
//#endregion
|
|
8014
|
-
//#region ../../node_modules/zod/v4/locales/zh-CN.js
|
|
7733
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/zh-CN.js
|
|
8015
7734
|
const error$1 = () => {
|
|
8016
7735
|
const Sizable = {
|
|
8017
7736
|
string: {
|
|
@@ -8034,7 +7753,7 @@ const error$1 = () => {
|
|
|
8034
7753
|
function getSizing(origin) {
|
|
8035
7754
|
return Sizable[origin] ?? null;
|
|
8036
7755
|
}
|
|
8037
|
-
const parsedType$
|
|
7756
|
+
const parsedType$2 = (data) => {
|
|
8038
7757
|
const t = typeof data;
|
|
8039
7758
|
switch (t) {
|
|
8040
7759
|
case "number": {
|
|
@@ -8086,7 +7805,7 @@ const error$1 = () => {
|
|
|
8086
7805
|
};
|
|
8087
7806
|
return (issue$1) => {
|
|
8088
7807
|
switch (issue$1.code) {
|
|
8089
|
-
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$
|
|
7808
|
+
case "invalid_type": return `无效输入:期望 ${issue$1.expected},实际接收 ${parsedType$2(issue$1.input)}`;
|
|
8090
7809
|
case "invalid_value":
|
|
8091
7810
|
if (issue$1.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
8092
7811
|
return `无效选项:期望以下之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -8126,7 +7845,7 @@ function zh_CN_default() {
|
|
|
8126
7845
|
}
|
|
8127
7846
|
|
|
8128
7847
|
//#endregion
|
|
8129
|
-
//#region ../../node_modules/zod/v4/locales/zh-TW.js
|
|
7848
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/zh-TW.js
|
|
8130
7849
|
const error = () => {
|
|
8131
7850
|
const Sizable = {
|
|
8132
7851
|
string: {
|
|
@@ -8149,7 +7868,7 @@ const error = () => {
|
|
|
8149
7868
|
function getSizing(origin) {
|
|
8150
7869
|
return Sizable[origin] ?? null;
|
|
8151
7870
|
}
|
|
8152
|
-
const parsedType$
|
|
7871
|
+
const parsedType$2 = (data) => {
|
|
8153
7872
|
const t = typeof data;
|
|
8154
7873
|
switch (t) {
|
|
8155
7874
|
case "number": {
|
|
@@ -8201,7 +7920,7 @@ const error = () => {
|
|
|
8201
7920
|
};
|
|
8202
7921
|
return (issue$1) => {
|
|
8203
7922
|
switch (issue$1.code) {
|
|
8204
|
-
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$
|
|
7923
|
+
case "invalid_type": return `無效的輸入值:預期為 ${issue$1.expected},但收到 ${parsedType$2(issue$1.input)}`;
|
|
8205
7924
|
case "invalid_value":
|
|
8206
7925
|
if (issue$1.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue$1.values[0])}`;
|
|
8207
7926
|
return `無效的選項:預期為以下其中之一 ${joinValues(issue$1.values, "|")}`;
|
|
@@ -8243,7 +7962,7 @@ function zh_TW_default() {
|
|
|
8243
7962
|
}
|
|
8244
7963
|
|
|
8245
7964
|
//#endregion
|
|
8246
|
-
//#region ../../node_modules/zod/v4/locales/index.js
|
|
7965
|
+
//#region ../../node_modules/zod/dist/esm/v4/locales/index.js
|
|
8247
7966
|
var locales_exports = {};
|
|
8248
7967
|
__export(locales_exports, {
|
|
8249
7968
|
ar: () => ar_default,
|
|
@@ -8253,7 +7972,6 @@ __export(locales_exports, {
|
|
|
8253
7972
|
cs: () => cs_default,
|
|
8254
7973
|
de: () => de_default,
|
|
8255
7974
|
en: () => en_default,
|
|
8256
|
-
eo: () => eo_default,
|
|
8257
7975
|
es: () => es_default,
|
|
8258
7976
|
fa: () => fa_default,
|
|
8259
7977
|
fi: () => fi_default,
|
|
@@ -8272,7 +7990,6 @@ __export(locales_exports, {
|
|
|
8272
7990
|
no: () => no_default,
|
|
8273
7991
|
ota: () => ota_default,
|
|
8274
7992
|
pl: () => pl_default,
|
|
8275
|
-
ps: () => ps_default,
|
|
8276
7993
|
pt: () => pt_default,
|
|
8277
7994
|
ru: () => ru_default,
|
|
8278
7995
|
sl: () => sl_default,
|
|
@@ -8288,12 +8005,12 @@ __export(locales_exports, {
|
|
|
8288
8005
|
});
|
|
8289
8006
|
|
|
8290
8007
|
//#endregion
|
|
8291
|
-
//#region ../../node_modules/zod/v4/core/registries.js
|
|
8008
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/registries.js
|
|
8292
8009
|
const $output = Symbol("ZodOutput");
|
|
8293
8010
|
const $input = Symbol("ZodInput");
|
|
8294
8011
|
var $ZodRegistry = class {
|
|
8295
8012
|
constructor() {
|
|
8296
|
-
this._map = new
|
|
8013
|
+
this._map = new WeakMap();
|
|
8297
8014
|
this._idmap = new Map();
|
|
8298
8015
|
}
|
|
8299
8016
|
add(schema, ..._meta) {
|
|
@@ -8307,16 +8024,7 @@ var $ZodRegistry = class {
|
|
|
8307
8024
|
}
|
|
8308
8025
|
return this;
|
|
8309
8026
|
}
|
|
8310
|
-
clear() {
|
|
8311
|
-
this._map = new Map();
|
|
8312
|
-
this._idmap = new Map();
|
|
8313
|
-
return this;
|
|
8314
|
-
}
|
|
8315
8027
|
remove(schema) {
|
|
8316
|
-
const meta = this._map.get(schema);
|
|
8317
|
-
if (meta && typeof meta === "object" && "id" in meta) {
|
|
8318
|
-
this._idmap.delete(meta.id);
|
|
8319
|
-
}
|
|
8320
8028
|
this._map.delete(schema);
|
|
8321
8029
|
return this;
|
|
8322
8030
|
}
|
|
@@ -8342,7 +8050,7 @@ function registry() {
|
|
|
8342
8050
|
const globalRegistry = /* @__PURE__ */ registry();
|
|
8343
8051
|
|
|
8344
8052
|
//#endregion
|
|
8345
|
-
//#region ../../node_modules/zod/v4/core/api.js
|
|
8053
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/api.js
|
|
8346
8054
|
function _string(Class$1, params) {
|
|
8347
8055
|
return new Class$1({
|
|
8348
8056
|
type: "string",
|
|
@@ -8557,13 +8265,6 @@ function _jwt(Class$1, params) {
|
|
|
8557
8265
|
...normalizeParams(params)
|
|
8558
8266
|
});
|
|
8559
8267
|
}
|
|
8560
|
-
const TimePrecision = {
|
|
8561
|
-
Any: null,
|
|
8562
|
-
Minute: -1,
|
|
8563
|
-
Second: 0,
|
|
8564
|
-
Millisecond: 3,
|
|
8565
|
-
Microsecond: 6
|
|
8566
|
-
};
|
|
8567
8268
|
function _isoDateTime(Class$1, params) {
|
|
8568
8269
|
return new Class$1({
|
|
8569
8270
|
type: "string",
|
|
@@ -9130,8 +8831,8 @@ function _refine(Class$1, fn, _params) {
|
|
|
9130
8831
|
return schema;
|
|
9131
8832
|
}
|
|
9132
8833
|
function _stringbool(Classes, _params) {
|
|
9133
|
-
const
|
|
9134
|
-
let truthyArray =
|
|
8834
|
+
const { case: _case, error: error$37, truthy, falsy } = normalizeParams(_params);
|
|
8835
|
+
let truthyArray = truthy ?? [
|
|
9135
8836
|
"true",
|
|
9136
8837
|
"1",
|
|
9137
8838
|
"yes",
|
|
@@ -9139,7 +8840,7 @@ function _stringbool(Classes, _params) {
|
|
|
9139
8840
|
"y",
|
|
9140
8841
|
"enabled"
|
|
9141
8842
|
];
|
|
9142
|
-
let falsyArray =
|
|
8843
|
+
let falsyArray = falsy ?? [
|
|
9143
8844
|
"false",
|
|
9144
8845
|
"0",
|
|
9145
8846
|
"no",
|
|
@@ -9147,7 +8848,7 @@ function _stringbool(Classes, _params) {
|
|
|
9147
8848
|
"n",
|
|
9148
8849
|
"disabled"
|
|
9149
8850
|
];
|
|
9150
|
-
if (
|
|
8851
|
+
if (_case !== "sensitive") {
|
|
9151
8852
|
truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
9152
8853
|
falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
|
|
9153
8854
|
}
|
|
@@ -9161,7 +8862,7 @@ function _stringbool(Classes, _params) {
|
|
|
9161
8862
|
type: "transform",
|
|
9162
8863
|
transform: (input, payload) => {
|
|
9163
8864
|
let data = input;
|
|
9164
|
-
if (
|
|
8865
|
+
if (_case !== "sensitive") data = data.toLowerCase();
|
|
9165
8866
|
if (truthySet.has(data)) {
|
|
9166
8867
|
return true;
|
|
9167
8868
|
} else if (falsySet.has(data)) {
|
|
@@ -9177,47 +8878,31 @@ function _stringbool(Classes, _params) {
|
|
|
9177
8878
|
return {};
|
|
9178
8879
|
}
|
|
9179
8880
|
},
|
|
9180
|
-
error:
|
|
8881
|
+
error: error$37
|
|
9181
8882
|
});
|
|
9182
8883
|
const innerPipe = new _Pipe({
|
|
9183
8884
|
type: "pipe",
|
|
9184
8885
|
in: new _String({
|
|
9185
8886
|
type: "string",
|
|
9186
|
-
error:
|
|
8887
|
+
error: error$37
|
|
9187
8888
|
}),
|
|
9188
8889
|
out: tx,
|
|
9189
|
-
error:
|
|
8890
|
+
error: error$37
|
|
9190
8891
|
});
|
|
9191
8892
|
const outerPipe = new _Pipe({
|
|
9192
8893
|
type: "pipe",
|
|
9193
8894
|
in: innerPipe,
|
|
9194
8895
|
out: new _Boolean({
|
|
9195
8896
|
type: "boolean",
|
|
9196
|
-
error:
|
|
8897
|
+
error: error$37
|
|
9197
8898
|
}),
|
|
9198
|
-
error:
|
|
8899
|
+
error: error$37
|
|
9199
8900
|
});
|
|
9200
8901
|
return outerPipe;
|
|
9201
8902
|
}
|
|
9202
|
-
function _stringFormat(Class$1, format, fnOrRegex, _params = {}) {
|
|
9203
|
-
const params = normalizeParams(_params);
|
|
9204
|
-
const def = {
|
|
9205
|
-
...normalizeParams(_params),
|
|
9206
|
-
check: "string_format",
|
|
9207
|
-
type: "string",
|
|
9208
|
-
format,
|
|
9209
|
-
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
9210
|
-
...params
|
|
9211
|
-
};
|
|
9212
|
-
if (fnOrRegex instanceof RegExp) {
|
|
9213
|
-
def.pattern = fnOrRegex;
|
|
9214
|
-
}
|
|
9215
|
-
const inst = new Class$1(def);
|
|
9216
|
-
return inst;
|
|
9217
|
-
}
|
|
9218
8903
|
|
|
9219
8904
|
//#endregion
|
|
9220
|
-
//#region ../../node_modules/zod/v4/core/function.js
|
|
8905
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/function.js
|
|
9221
8906
|
var $ZodFunction = class {
|
|
9222
8907
|
constructor(def) {
|
|
9223
8908
|
this._def = def;
|
|
@@ -9288,7 +8973,7 @@ function _function(params) {
|
|
|
9288
8973
|
}
|
|
9289
8974
|
|
|
9290
8975
|
//#endregion
|
|
9291
|
-
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
8976
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/to-json-schema.js
|
|
9292
8977
|
var JSONSchemaGenerator = class {
|
|
9293
8978
|
constructor(params) {
|
|
9294
8979
|
this.counter = 0;
|
|
@@ -9324,435 +9009,431 @@ var JSONSchemaGenerator = class {
|
|
|
9324
9009
|
const result = {
|
|
9325
9010
|
schema: {},
|
|
9326
9011
|
count: 1,
|
|
9327
|
-
cycle: undefined
|
|
9328
|
-
path: _params.path
|
|
9012
|
+
cycle: undefined
|
|
9329
9013
|
};
|
|
9330
9014
|
this.seen.set(schema, result);
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9015
|
+
if (schema._zod.toJSONSchema) {
|
|
9016
|
+
result.schema = schema._zod.toJSONSchema();
|
|
9017
|
+
}
|
|
9018
|
+
const params = {
|
|
9019
|
+
..._params,
|
|
9020
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
9021
|
+
path: _params.path
|
|
9022
|
+
};
|
|
9023
|
+
const parent = schema._zod.parent;
|
|
9024
|
+
if (parent) {
|
|
9025
|
+
result.ref = parent;
|
|
9026
|
+
this.process(parent, params);
|
|
9027
|
+
this.seen.get(parent).isParent = true;
|
|
9334
9028
|
} else {
|
|
9335
|
-
const
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
const _json = result.schema;
|
|
9347
|
-
switch (def.type) {
|
|
9348
|
-
case "string": {
|
|
9349
|
-
const json$1 = _json;
|
|
9350
|
-
json$1.type = "string";
|
|
9351
|
-
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
9352
|
-
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
9353
|
-
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
9354
|
-
if (format) {
|
|
9355
|
-
json$1.format = formatMap[format] ?? format;
|
|
9356
|
-
if (json$1.format === "") delete json$1.format;
|
|
9357
|
-
}
|
|
9358
|
-
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
9359
|
-
if (patterns && patterns.size > 0) {
|
|
9360
|
-
const regexes = [...patterns];
|
|
9361
|
-
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
9362
|
-
else if (regexes.length > 1) {
|
|
9363
|
-
result.schema.allOf = [...regexes.map((regex) => ({
|
|
9364
|
-
...this.target === "draft-7" ? { type: "string" } : {},
|
|
9365
|
-
pattern: regex.source
|
|
9366
|
-
}))];
|
|
9367
|
-
}
|
|
9368
|
-
}
|
|
9369
|
-
break;
|
|
9029
|
+
const _json = result.schema;
|
|
9030
|
+
switch (def.type) {
|
|
9031
|
+
case "string": {
|
|
9032
|
+
const json$1 = _json;
|
|
9033
|
+
json$1.type = "string";
|
|
9034
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
|
|
9035
|
+
if (typeof minimum === "number") json$1.minLength = minimum;
|
|
9036
|
+
if (typeof maximum === "number") json$1.maxLength = maximum;
|
|
9037
|
+
if (format) {
|
|
9038
|
+
json$1.format = formatMap[format] ?? format;
|
|
9039
|
+
if (json$1.format === "") delete json$1.format;
|
|
9370
9040
|
}
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
const
|
|
9374
|
-
if (
|
|
9375
|
-
else
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
9381
|
-
else delete json$1.exclusiveMinimum;
|
|
9382
|
-
}
|
|
9383
|
-
}
|
|
9384
|
-
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
9385
|
-
if (typeof maximum === "number") {
|
|
9386
|
-
json$1.maximum = maximum;
|
|
9387
|
-
if (typeof exclusiveMaximum === "number") {
|
|
9388
|
-
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
9389
|
-
else delete json$1.exclusiveMaximum;
|
|
9390
|
-
}
|
|
9391
|
-
}
|
|
9392
|
-
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
9393
|
-
break;
|
|
9394
|
-
}
|
|
9395
|
-
case "boolean": {
|
|
9396
|
-
const json$1 = _json;
|
|
9397
|
-
json$1.type = "boolean";
|
|
9398
|
-
break;
|
|
9399
|
-
}
|
|
9400
|
-
case "bigint": {
|
|
9401
|
-
if (this.unrepresentable === "throw") {
|
|
9402
|
-
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9403
|
-
}
|
|
9404
|
-
break;
|
|
9405
|
-
}
|
|
9406
|
-
case "symbol": {
|
|
9407
|
-
if (this.unrepresentable === "throw") {
|
|
9408
|
-
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9041
|
+
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
9042
|
+
if (patterns && patterns.size > 0) {
|
|
9043
|
+
const regexes = [...patterns];
|
|
9044
|
+
if (regexes.length === 1) json$1.pattern = regexes[0].source;
|
|
9045
|
+
else if (regexes.length > 1) {
|
|
9046
|
+
result.schema.allOf = [...regexes.map((regex) => ({
|
|
9047
|
+
...this.target === "draft-7" ? { type: "string" } : {},
|
|
9048
|
+
pattern: regex.source
|
|
9049
|
+
}))];
|
|
9409
9050
|
}
|
|
9410
|
-
break;
|
|
9411
|
-
}
|
|
9412
|
-
case "null": {
|
|
9413
|
-
_json.type = "null";
|
|
9414
|
-
break;
|
|
9415
|
-
}
|
|
9416
|
-
case "any": {
|
|
9417
|
-
break;
|
|
9418
9051
|
}
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9052
|
+
break;
|
|
9053
|
+
}
|
|
9054
|
+
case "number": {
|
|
9055
|
+
const json$1 = _json;
|
|
9056
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
|
9057
|
+
if (typeof format === "string" && format.includes("int")) json$1.type = "integer";
|
|
9058
|
+
else json$1.type = "number";
|
|
9059
|
+
if (typeof exclusiveMinimum === "number") json$1.exclusiveMinimum = exclusiveMinimum;
|
|
9060
|
+
if (typeof minimum === "number") {
|
|
9061
|
+
json$1.minimum = minimum;
|
|
9062
|
+
if (typeof exclusiveMinimum === "number") {
|
|
9063
|
+
if (exclusiveMinimum >= minimum) delete json$1.minimum;
|
|
9064
|
+
else delete json$1.exclusiveMinimum;
|
|
9425
9065
|
}
|
|
9426
|
-
break;
|
|
9427
9066
|
}
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9067
|
+
if (typeof exclusiveMaximum === "number") json$1.exclusiveMaximum = exclusiveMaximum;
|
|
9068
|
+
if (typeof maximum === "number") {
|
|
9069
|
+
json$1.maximum = maximum;
|
|
9070
|
+
if (typeof exclusiveMaximum === "number") {
|
|
9071
|
+
if (exclusiveMaximum <= maximum) delete json$1.maximum;
|
|
9072
|
+
else delete json$1.exclusiveMaximum;
|
|
9431
9073
|
}
|
|
9432
|
-
break;
|
|
9433
9074
|
}
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9075
|
+
if (typeof multipleOf === "number") json$1.multipleOf = multipleOf;
|
|
9076
|
+
break;
|
|
9077
|
+
}
|
|
9078
|
+
case "boolean": {
|
|
9079
|
+
const json$1 = _json;
|
|
9080
|
+
json$1.type = "boolean";
|
|
9081
|
+
break;
|
|
9082
|
+
}
|
|
9083
|
+
case "bigint": {
|
|
9084
|
+
if (this.unrepresentable === "throw") {
|
|
9085
|
+
throw new Error("BigInt cannot be represented in JSON Schema");
|
|
9443
9086
|
}
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
json$1.type = "array";
|
|
9450
|
-
json$1.items = this.process(def.element, {
|
|
9451
|
-
...params,
|
|
9452
|
-
path: [...params.path, "items"]
|
|
9453
|
-
});
|
|
9454
|
-
break;
|
|
9087
|
+
break;
|
|
9088
|
+
}
|
|
9089
|
+
case "symbol": {
|
|
9090
|
+
if (this.unrepresentable === "throw") {
|
|
9091
|
+
throw new Error("Symbols cannot be represented in JSON Schema");
|
|
9455
9092
|
}
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
if (requiredKeys.size > 0) {
|
|
9481
|
-
json$1.required = Array.from(requiredKeys);
|
|
9482
|
-
}
|
|
9483
|
-
if (def.catchall?._zod.def.type === "never") {
|
|
9484
|
-
json$1.additionalProperties = false;
|
|
9485
|
-
} else if (!def.catchall) {
|
|
9486
|
-
if (this.io === "output") json$1.additionalProperties = false;
|
|
9487
|
-
} else if (def.catchall) {
|
|
9488
|
-
json$1.additionalProperties = this.process(def.catchall, {
|
|
9489
|
-
...params,
|
|
9490
|
-
path: [...params.path, "additionalProperties"]
|
|
9491
|
-
});
|
|
9492
|
-
}
|
|
9493
|
-
break;
|
|
9093
|
+
break;
|
|
9094
|
+
}
|
|
9095
|
+
case "undefined": {
|
|
9096
|
+
const json$1 = _json;
|
|
9097
|
+
json$1.type = "null";
|
|
9098
|
+
break;
|
|
9099
|
+
}
|
|
9100
|
+
case "null": {
|
|
9101
|
+
_json.type = "null";
|
|
9102
|
+
break;
|
|
9103
|
+
}
|
|
9104
|
+
case "any": {
|
|
9105
|
+
break;
|
|
9106
|
+
}
|
|
9107
|
+
case "unknown": {
|
|
9108
|
+
break;
|
|
9109
|
+
}
|
|
9110
|
+
case "never": {
|
|
9111
|
+
_json.not = {};
|
|
9112
|
+
break;
|
|
9113
|
+
}
|
|
9114
|
+
case "void": {
|
|
9115
|
+
if (this.unrepresentable === "throw") {
|
|
9116
|
+
throw new Error("Void cannot be represented in JSON Schema");
|
|
9494
9117
|
}
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
...params.path,
|
|
9501
|
-
"anyOf",
|
|
9502
|
-
i
|
|
9503
|
-
]
|
|
9504
|
-
}));
|
|
9505
|
-
break;
|
|
9118
|
+
break;
|
|
9119
|
+
}
|
|
9120
|
+
case "date": {
|
|
9121
|
+
if (this.unrepresentable === "throw") {
|
|
9122
|
+
throw new Error("Date cannot be represented in JSON Schema");
|
|
9506
9123
|
}
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9124
|
+
break;
|
|
9125
|
+
}
|
|
9126
|
+
case "array": {
|
|
9127
|
+
const json$1 = _json;
|
|
9128
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9129
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9130
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9131
|
+
json$1.type = "array";
|
|
9132
|
+
json$1.items = this.process(def.element, {
|
|
9133
|
+
...params,
|
|
9134
|
+
path: [...params.path, "items"]
|
|
9135
|
+
});
|
|
9136
|
+
break;
|
|
9137
|
+
}
|
|
9138
|
+
case "object": {
|
|
9139
|
+
const json$1 = _json;
|
|
9140
|
+
json$1.type = "object";
|
|
9141
|
+
json$1.properties = {};
|
|
9142
|
+
const shape = def.shape;
|
|
9143
|
+
for (const key in shape) {
|
|
9144
|
+
json$1.properties[key] = this.process(shape[key], {
|
|
9518
9145
|
...params,
|
|
9519
9146
|
path: [
|
|
9520
9147
|
...params.path,
|
|
9521
|
-
"
|
|
9522
|
-
|
|
9148
|
+
"properties",
|
|
9149
|
+
key
|
|
9523
9150
|
]
|
|
9524
9151
|
});
|
|
9525
|
-
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9526
|
-
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9527
|
-
json$1.allOf = allOf;
|
|
9528
|
-
break;
|
|
9529
9152
|
}
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
path: [
|
|
9536
|
-
...params.path,
|
|
9537
|
-
"prefixItems",
|
|
9538
|
-
i
|
|
9539
|
-
]
|
|
9540
|
-
}));
|
|
9541
|
-
if (this.target === "draft-2020-12") {
|
|
9542
|
-
json$1.prefixItems = prefixItems;
|
|
9153
|
+
const allKeys = new Set(Object.keys(shape));
|
|
9154
|
+
const requiredKeys = new Set([...allKeys].filter((key) => {
|
|
9155
|
+
const v = def.shape[key]._zod;
|
|
9156
|
+
if (this.io === "input") {
|
|
9157
|
+
return v.optin === undefined;
|
|
9543
9158
|
} else {
|
|
9544
|
-
|
|
9545
|
-
}
|
|
9546
|
-
if (def.rest) {
|
|
9547
|
-
const rest = this.process(def.rest, {
|
|
9548
|
-
...params,
|
|
9549
|
-
path: [...params.path, "items"]
|
|
9550
|
-
});
|
|
9551
|
-
if (this.target === "draft-2020-12") {
|
|
9552
|
-
json$1.items = rest;
|
|
9553
|
-
} else {
|
|
9554
|
-
json$1.additionalItems = rest;
|
|
9555
|
-
}
|
|
9556
|
-
}
|
|
9557
|
-
if (def.rest) {
|
|
9558
|
-
json$1.items = this.process(def.rest, {
|
|
9559
|
-
...params,
|
|
9560
|
-
path: [...params.path, "items"]
|
|
9561
|
-
});
|
|
9159
|
+
return v.optout === undefined;
|
|
9562
9160
|
}
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
break;
|
|
9161
|
+
}));
|
|
9162
|
+
if (requiredKeys.size > 0) {
|
|
9163
|
+
json$1.required = Array.from(requiredKeys);
|
|
9567
9164
|
}
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
json$1.
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
});
|
|
9575
|
-
json$1.additionalProperties = this.process(def.valueType, {
|
|
9165
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
9166
|
+
json$1.additionalProperties = false;
|
|
9167
|
+
} else if (!def.catchall) {
|
|
9168
|
+
if (this.io === "output") json$1.additionalProperties = false;
|
|
9169
|
+
} else if (def.catchall) {
|
|
9170
|
+
json$1.additionalProperties = this.process(def.catchall, {
|
|
9576
9171
|
...params,
|
|
9577
9172
|
path: [...params.path, "additionalProperties"]
|
|
9578
9173
|
});
|
|
9579
|
-
break;
|
|
9580
9174
|
}
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9175
|
+
break;
|
|
9176
|
+
}
|
|
9177
|
+
case "union": {
|
|
9178
|
+
const json$1 = _json;
|
|
9179
|
+
json$1.anyOf = def.options.map((x, i) => this.process(x, {
|
|
9180
|
+
...params,
|
|
9181
|
+
path: [
|
|
9182
|
+
...params.path,
|
|
9183
|
+
"anyOf",
|
|
9184
|
+
i
|
|
9185
|
+
]
|
|
9186
|
+
}));
|
|
9187
|
+
break;
|
|
9188
|
+
}
|
|
9189
|
+
case "intersection": {
|
|
9190
|
+
const json$1 = _json;
|
|
9191
|
+
const a = this.process(def.left, {
|
|
9192
|
+
...params,
|
|
9193
|
+
path: [
|
|
9194
|
+
...params.path,
|
|
9195
|
+
"allOf",
|
|
9196
|
+
0
|
|
9197
|
+
]
|
|
9198
|
+
});
|
|
9199
|
+
const b = this.process(def.right, {
|
|
9200
|
+
...params,
|
|
9201
|
+
path: [
|
|
9202
|
+
...params.path,
|
|
9203
|
+
"allOf",
|
|
9204
|
+
1
|
|
9205
|
+
]
|
|
9206
|
+
});
|
|
9207
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
9208
|
+
const allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
9209
|
+
json$1.allOf = allOf;
|
|
9210
|
+
break;
|
|
9211
|
+
}
|
|
9212
|
+
case "tuple": {
|
|
9213
|
+
const json$1 = _json;
|
|
9214
|
+
json$1.type = "array";
|
|
9215
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
|
9216
|
+
...params,
|
|
9217
|
+
path: [
|
|
9218
|
+
...params.path,
|
|
9219
|
+
"prefixItems",
|
|
9220
|
+
i
|
|
9221
|
+
]
|
|
9222
|
+
}));
|
|
9223
|
+
if (this.target === "draft-2020-12") {
|
|
9224
|
+
json$1.prefixItems = prefixItems;
|
|
9225
|
+
} else {
|
|
9226
|
+
json$1.items = prefixItems;
|
|
9586
9227
|
}
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9228
|
+
if (def.rest) {
|
|
9229
|
+
const rest = this.process(def.rest, {
|
|
9230
|
+
...params,
|
|
9231
|
+
path: [...params.path, "items"]
|
|
9232
|
+
});
|
|
9233
|
+
if (this.target === "draft-2020-12") {
|
|
9234
|
+
json$1.items = rest;
|
|
9235
|
+
} else {
|
|
9236
|
+
json$1.additionalItems = rest;
|
|
9590
9237
|
}
|
|
9591
|
-
break;
|
|
9592
9238
|
}
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
json$1.enum = values;
|
|
9599
|
-
break;
|
|
9239
|
+
if (def.rest) {
|
|
9240
|
+
json$1.items = this.process(def.rest, {
|
|
9241
|
+
...params,
|
|
9242
|
+
path: [...params.path, "items"]
|
|
9243
|
+
});
|
|
9600
9244
|
}
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
json$1.enum = vals;
|
|
9629
|
-
}
|
|
9630
|
-
break;
|
|
9245
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
9246
|
+
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
9247
|
+
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
9248
|
+
break;
|
|
9249
|
+
}
|
|
9250
|
+
case "record": {
|
|
9251
|
+
const json$1 = _json;
|
|
9252
|
+
json$1.type = "object";
|
|
9253
|
+
json$1.propertyNames = this.process(def.keyType, {
|
|
9254
|
+
...params,
|
|
9255
|
+
path: [...params.path, "propertyNames"]
|
|
9256
|
+
});
|
|
9257
|
+
json$1.additionalProperties = this.process(def.valueType, {
|
|
9258
|
+
...params,
|
|
9259
|
+
path: [...params.path, "additionalProperties"]
|
|
9260
|
+
});
|
|
9261
|
+
break;
|
|
9262
|
+
}
|
|
9263
|
+
case "map": {
|
|
9264
|
+
if (this.unrepresentable === "throw") {
|
|
9265
|
+
throw new Error("Map cannot be represented in JSON Schema");
|
|
9266
|
+
}
|
|
9267
|
+
break;
|
|
9268
|
+
}
|
|
9269
|
+
case "set": {
|
|
9270
|
+
if (this.unrepresentable === "throw") {
|
|
9271
|
+
throw new Error("Set cannot be represented in JSON Schema");
|
|
9631
9272
|
}
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9273
|
+
break;
|
|
9274
|
+
}
|
|
9275
|
+
case "enum": {
|
|
9276
|
+
const json$1 = _json;
|
|
9277
|
+
const values = getEnumValues(def.entries);
|
|
9278
|
+
if (values.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9279
|
+
if (values.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9280
|
+
json$1.enum = values;
|
|
9281
|
+
break;
|
|
9282
|
+
}
|
|
9283
|
+
case "literal": {
|
|
9284
|
+
const json$1 = _json;
|
|
9285
|
+
const vals = [];
|
|
9286
|
+
for (const val of def.values) {
|
|
9287
|
+
if (val === undefined) {
|
|
9288
|
+
if (this.unrepresentable === "throw") {
|
|
9289
|
+
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
9290
|
+
} else {}
|
|
9291
|
+
} else if (typeof val === "bigint") {
|
|
9292
|
+
if (this.unrepresentable === "throw") {
|
|
9293
|
+
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
9646
9294
|
} else {
|
|
9647
|
-
|
|
9648
|
-
const mFile = {
|
|
9649
|
-
...file$1,
|
|
9650
|
-
contentMediaType: m
|
|
9651
|
-
};
|
|
9652
|
-
return mFile;
|
|
9653
|
-
});
|
|
9295
|
+
vals.push(Number(val));
|
|
9654
9296
|
}
|
|
9655
9297
|
} else {
|
|
9656
|
-
|
|
9298
|
+
vals.push(val);
|
|
9657
9299
|
}
|
|
9658
|
-
break;
|
|
9659
|
-
}
|
|
9660
|
-
case "transform": {
|
|
9661
|
-
if (this.unrepresentable === "throw") {
|
|
9662
|
-
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9663
|
-
}
|
|
9664
|
-
break;
|
|
9665
|
-
}
|
|
9666
|
-
case "nullable": {
|
|
9667
|
-
const inner = this.process(def.innerType, params);
|
|
9668
|
-
_json.anyOf = [inner, { type: "null" }];
|
|
9669
|
-
break;
|
|
9670
|
-
}
|
|
9671
|
-
case "nonoptional": {
|
|
9672
|
-
this.process(def.innerType, params);
|
|
9673
|
-
result.ref = def.innerType;
|
|
9674
|
-
break;
|
|
9675
|
-
}
|
|
9676
|
-
case "success": {
|
|
9677
|
-
const json$1 = _json;
|
|
9678
|
-
json$1.type = "boolean";
|
|
9679
|
-
break;
|
|
9680
9300
|
}
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
break;
|
|
9692
|
-
}
|
|
9693
|
-
case "catch": {
|
|
9694
|
-
this.process(def.innerType, params);
|
|
9695
|
-
result.ref = def.innerType;
|
|
9696
|
-
let catchValue;
|
|
9697
|
-
try {
|
|
9698
|
-
catchValue = def.catchValue(undefined);
|
|
9699
|
-
} catch {
|
|
9700
|
-
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9701
|
-
}
|
|
9702
|
-
_json.default = catchValue;
|
|
9703
|
-
break;
|
|
9301
|
+
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
9302
|
+
const val = vals[0];
|
|
9303
|
+
json$1.type = val === null ? "null" : typeof val;
|
|
9304
|
+
json$1.const = val;
|
|
9305
|
+
} else {
|
|
9306
|
+
if (vals.every((v) => typeof v === "number")) json$1.type = "number";
|
|
9307
|
+
if (vals.every((v) => typeof v === "string")) json$1.type = "string";
|
|
9308
|
+
if (vals.every((v) => typeof v === "boolean")) json$1.type = "string";
|
|
9309
|
+
if (vals.every((v) => v === null)) json$1.type = "null";
|
|
9310
|
+
json$1.enum = vals;
|
|
9704
9311
|
}
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9312
|
+
break;
|
|
9313
|
+
}
|
|
9314
|
+
case "file": {
|
|
9315
|
+
const json$1 = _json;
|
|
9316
|
+
const file$1 = {
|
|
9317
|
+
type: "string",
|
|
9318
|
+
format: "binary",
|
|
9319
|
+
contentEncoding: "binary"
|
|
9320
|
+
};
|
|
9321
|
+
const { minimum, maximum, mime } = schema._zod.bag;
|
|
9322
|
+
if (minimum !== undefined) file$1.minLength = minimum;
|
|
9323
|
+
if (maximum !== undefined) file$1.maxLength = maximum;
|
|
9324
|
+
if (mime) {
|
|
9325
|
+
if (mime.length === 1) {
|
|
9326
|
+
file$1.contentMediaType = mime[0];
|
|
9327
|
+
Object.assign(json$1, file$1);
|
|
9328
|
+
} else {
|
|
9329
|
+
json$1.anyOf = mime.map((m) => {
|
|
9330
|
+
const mFile = {
|
|
9331
|
+
...file$1,
|
|
9332
|
+
contentMediaType: m
|
|
9333
|
+
};
|
|
9334
|
+
return mFile;
|
|
9335
|
+
});
|
|
9708
9336
|
}
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
case "template_literal": {
|
|
9712
|
-
const json$1 = _json;
|
|
9713
|
-
const pattern = schema._zod.pattern;
|
|
9714
|
-
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9715
|
-
json$1.type = "string";
|
|
9716
|
-
json$1.pattern = pattern.source;
|
|
9717
|
-
break;
|
|
9718
|
-
}
|
|
9719
|
-
case "pipe": {
|
|
9720
|
-
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9721
|
-
this.process(innerType, params);
|
|
9722
|
-
result.ref = innerType;
|
|
9723
|
-
break;
|
|
9724
|
-
}
|
|
9725
|
-
case "readonly": {
|
|
9726
|
-
this.process(def.innerType, params);
|
|
9727
|
-
result.ref = def.innerType;
|
|
9728
|
-
_json.readOnly = true;
|
|
9729
|
-
break;
|
|
9730
|
-
}
|
|
9731
|
-
case "promise": {
|
|
9732
|
-
this.process(def.innerType, params);
|
|
9733
|
-
result.ref = def.innerType;
|
|
9734
|
-
break;
|
|
9337
|
+
} else {
|
|
9338
|
+
Object.assign(json$1, file$1);
|
|
9735
9339
|
}
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9340
|
+
break;
|
|
9341
|
+
}
|
|
9342
|
+
case "transform": {
|
|
9343
|
+
if (this.unrepresentable === "throw") {
|
|
9344
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
9740
9345
|
}
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9346
|
+
break;
|
|
9347
|
+
}
|
|
9348
|
+
case "nullable": {
|
|
9349
|
+
const inner = this.process(def.innerType, params);
|
|
9350
|
+
_json.anyOf = [inner, { type: "null" }];
|
|
9351
|
+
break;
|
|
9352
|
+
}
|
|
9353
|
+
case "nonoptional": {
|
|
9354
|
+
this.process(def.innerType, params);
|
|
9355
|
+
result.ref = def.innerType;
|
|
9356
|
+
break;
|
|
9357
|
+
}
|
|
9358
|
+
case "success": {
|
|
9359
|
+
const json$1 = _json;
|
|
9360
|
+
json$1.type = "boolean";
|
|
9361
|
+
break;
|
|
9362
|
+
}
|
|
9363
|
+
case "default": {
|
|
9364
|
+
this.process(def.innerType, params);
|
|
9365
|
+
result.ref = def.innerType;
|
|
9366
|
+
_json.default = def.defaultValue;
|
|
9367
|
+
break;
|
|
9368
|
+
}
|
|
9369
|
+
case "prefault": {
|
|
9370
|
+
this.process(def.innerType, params);
|
|
9371
|
+
result.ref = def.innerType;
|
|
9372
|
+
if (this.io === "input") _json._prefault = def.defaultValue;
|
|
9373
|
+
break;
|
|
9374
|
+
}
|
|
9375
|
+
case "catch": {
|
|
9376
|
+
this.process(def.innerType, params);
|
|
9377
|
+
result.ref = def.innerType;
|
|
9378
|
+
let catchValue;
|
|
9379
|
+
try {
|
|
9380
|
+
catchValue = def.catchValue(undefined);
|
|
9381
|
+
} catch {
|
|
9382
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
9746
9383
|
}
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9384
|
+
_json.default = catchValue;
|
|
9385
|
+
break;
|
|
9386
|
+
}
|
|
9387
|
+
case "nan": {
|
|
9388
|
+
if (this.unrepresentable === "throw") {
|
|
9389
|
+
throw new Error("NaN cannot be represented in JSON Schema");
|
|
9752
9390
|
}
|
|
9753
|
-
|
|
9754
|
-
|
|
9391
|
+
break;
|
|
9392
|
+
}
|
|
9393
|
+
case "template_literal": {
|
|
9394
|
+
const json$1 = _json;
|
|
9395
|
+
const pattern = schema._zod.pattern;
|
|
9396
|
+
if (!pattern) throw new Error("Pattern not found in template literal");
|
|
9397
|
+
json$1.type = "string";
|
|
9398
|
+
json$1.pattern = pattern.source;
|
|
9399
|
+
break;
|
|
9400
|
+
}
|
|
9401
|
+
case "pipe": {
|
|
9402
|
+
const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
9403
|
+
this.process(innerType, params);
|
|
9404
|
+
result.ref = innerType;
|
|
9405
|
+
break;
|
|
9406
|
+
}
|
|
9407
|
+
case "readonly": {
|
|
9408
|
+
this.process(def.innerType, params);
|
|
9409
|
+
result.ref = def.innerType;
|
|
9410
|
+
_json.readOnly = true;
|
|
9411
|
+
break;
|
|
9412
|
+
}
|
|
9413
|
+
case "promise": {
|
|
9414
|
+
this.process(def.innerType, params);
|
|
9415
|
+
result.ref = def.innerType;
|
|
9416
|
+
break;
|
|
9417
|
+
}
|
|
9418
|
+
case "optional": {
|
|
9419
|
+
this.process(def.innerType, params);
|
|
9420
|
+
result.ref = def.innerType;
|
|
9421
|
+
break;
|
|
9422
|
+
}
|
|
9423
|
+
case "lazy": {
|
|
9424
|
+
const innerType = schema._zod.innerType;
|
|
9425
|
+
this.process(innerType, params);
|
|
9426
|
+
result.ref = innerType;
|
|
9427
|
+
break;
|
|
9428
|
+
}
|
|
9429
|
+
case "custom": {
|
|
9430
|
+
if (this.unrepresentable === "throw") {
|
|
9431
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
9755
9432
|
}
|
|
9433
|
+
break;
|
|
9434
|
+
}
|
|
9435
|
+
default: {
|
|
9436
|
+
def;
|
|
9756
9437
|
}
|
|
9757
9438
|
}
|
|
9758
9439
|
}
|
|
@@ -9779,15 +9460,12 @@ var JSONSchemaGenerator = class {
|
|
|
9779
9460
|
const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
9780
9461
|
if (params.external) {
|
|
9781
9462
|
const externalId = params.external.registry.get(entry[0])?.id;
|
|
9782
|
-
|
|
9783
|
-
if (externalId) {
|
|
9784
|
-
return { ref: uriGenerator(externalId) };
|
|
9785
|
-
}
|
|
9463
|
+
if (externalId) return { ref: params.external.uri(externalId) };
|
|
9786
9464
|
const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
|
|
9787
9465
|
entry[1].defId = id;
|
|
9788
9466
|
return {
|
|
9789
9467
|
defId: id,
|
|
9790
|
-
ref: `${
|
|
9468
|
+
ref: `${params.external.uri("__shared")}#/${defsSegment}/${id}`
|
|
9791
9469
|
};
|
|
9792
9470
|
}
|
|
9793
9471
|
if (entry[1] === root) {
|
|
@@ -9815,14 +9493,6 @@ var JSONSchemaGenerator = class {
|
|
|
9815
9493
|
}
|
|
9816
9494
|
schema$1.$ref = ref;
|
|
9817
9495
|
};
|
|
9818
|
-
if (params.cycles === "throw") {
|
|
9819
|
-
for (const entry of this.seen.entries()) {
|
|
9820
|
-
const seen = entry[1];
|
|
9821
|
-
if (seen.cycle) {
|
|
9822
|
-
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9823
|
-
}
|
|
9824
|
-
}
|
|
9825
|
-
}
|
|
9826
9496
|
for (const entry of this.seen.entries()) {
|
|
9827
9497
|
const seen = entry[1];
|
|
9828
9498
|
if (schema === entry[0]) {
|
|
@@ -9842,7 +9512,11 @@ var JSONSchemaGenerator = class {
|
|
|
9842
9512
|
continue;
|
|
9843
9513
|
}
|
|
9844
9514
|
if (seen.cycle) {
|
|
9845
|
-
|
|
9515
|
+
if (params.cycles === "throw") {
|
|
9516
|
+
throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/<root>` + "\n\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.");
|
|
9517
|
+
} else if (params.cycles === "ref") {
|
|
9518
|
+
extractToDef(entry);
|
|
9519
|
+
}
|
|
9846
9520
|
continue;
|
|
9847
9521
|
}
|
|
9848
9522
|
if (seen.count > 1) {
|
|
@@ -9874,8 +9548,7 @@ var JSONSchemaGenerator = class {
|
|
|
9874
9548
|
}
|
|
9875
9549
|
if (!seen.isParent) this.override({
|
|
9876
9550
|
zodSchema,
|
|
9877
|
-
jsonSchema: schema$1
|
|
9878
|
-
path: seen.path ?? []
|
|
9551
|
+
jsonSchema: schema$1
|
|
9879
9552
|
});
|
|
9880
9553
|
};
|
|
9881
9554
|
for (const entry of [...this.seen.entries()].reverse()) {
|
|
@@ -9889,11 +9562,6 @@ var JSONSchemaGenerator = class {
|
|
|
9889
9562
|
} else {
|
|
9890
9563
|
console.warn(`Invalid target: ${this.target}`);
|
|
9891
9564
|
}
|
|
9892
|
-
if (params.external?.uri) {
|
|
9893
|
-
const id = params.external.registry.get(schema)?.id;
|
|
9894
|
-
if (!id) throw new Error("Schema is missing an `id` property");
|
|
9895
|
-
result.$id = params.external.uri(id);
|
|
9896
|
-
}
|
|
9897
9565
|
Object.assign(result, root.def);
|
|
9898
9566
|
const defs = params.external?.defs ?? {};
|
|
9899
9567
|
for (const entry of this.seen.entries()) {
|
|
@@ -9902,13 +9570,11 @@ var JSONSchemaGenerator = class {
|
|
|
9902
9570
|
defs[seen.defId] = seen.def;
|
|
9903
9571
|
}
|
|
9904
9572
|
}
|
|
9905
|
-
if (params.external)
|
|
9906
|
-
if (
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
result.definitions = defs;
|
|
9911
|
-
}
|
|
9573
|
+
if (!params.external && Object.keys(defs).length > 0) {
|
|
9574
|
+
if (this.target === "draft-2020-12") {
|
|
9575
|
+
result.$defs = defs;
|
|
9576
|
+
} else {
|
|
9577
|
+
result.definitions = defs;
|
|
9912
9578
|
}
|
|
9913
9579
|
}
|
|
9914
9580
|
try {
|
|
@@ -9929,7 +9595,7 @@ function toJSONSchema(input, _params) {
|
|
|
9929
9595
|
const schemas = {};
|
|
9930
9596
|
const external = {
|
|
9931
9597
|
registry: input,
|
|
9932
|
-
uri: _params?.uri,
|
|
9598
|
+
uri: _params?.uri || ((id) => id),
|
|
9933
9599
|
defs
|
|
9934
9600
|
};
|
|
9935
9601
|
for (const entry of input._idmap.entries()) {
|
|
@@ -10040,11 +9706,11 @@ function isTransforming(_schema, _ctx) {
|
|
|
10040
9706
|
}
|
|
10041
9707
|
|
|
10042
9708
|
//#endregion
|
|
10043
|
-
//#region ../../node_modules/zod/v4/core/json-schema.js
|
|
9709
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/json-schema.js
|
|
10044
9710
|
var json_schema_exports = {};
|
|
10045
9711
|
|
|
10046
9712
|
//#endregion
|
|
10047
|
-
//#region ../../node_modules/zod/v4/core/index.js
|
|
9713
|
+
//#region ../../node_modules/zod/dist/esm/v4/core/index.js
|
|
10048
9714
|
var core_exports = {};
|
|
10049
9715
|
__export(core_exports, {
|
|
10050
9716
|
$ZodAny: () => $ZodAny,
|
|
@@ -10083,7 +9749,6 @@ __export(core_exports, {
|
|
|
10083
9749
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
10084
9750
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
10085
9751
|
$ZodCustom: () => $ZodCustom,
|
|
10086
|
-
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
10087
9752
|
$ZodDate: () => $ZodDate,
|
|
10088
9753
|
$ZodDefault: () => $ZodDefault,
|
|
10089
9754
|
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
@@ -10148,8 +9813,6 @@ __export(core_exports, {
|
|
|
10148
9813
|
Doc: () => Doc,
|
|
10149
9814
|
JSONSchema: () => json_schema_exports,
|
|
10150
9815
|
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
10151
|
-
NEVER: () => NEVER,
|
|
10152
|
-
TimePrecision: () => TimePrecision,
|
|
10153
9816
|
_any: () => _any,
|
|
10154
9817
|
_array: () => _array,
|
|
10155
9818
|
_base64: () => _base64,
|
|
@@ -10239,7 +9902,6 @@ __export(core_exports, {
|
|
|
10239
9902
|
_size: () => _size,
|
|
10240
9903
|
_startsWith: () => _startsWith,
|
|
10241
9904
|
_string: () => _string,
|
|
10242
|
-
_stringFormat: () => _stringFormat,
|
|
10243
9905
|
_stringbool: () => _stringbool,
|
|
10244
9906
|
_success: () => _success,
|
|
10245
9907
|
_symbol: () => _symbol,
|
|
@@ -10289,7 +9951,7 @@ __export(core_exports, {
|
|
|
10289
9951
|
});
|
|
10290
9952
|
|
|
10291
9953
|
//#endregion
|
|
10292
|
-
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
9954
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/iso.js
|
|
10293
9955
|
var iso_exports = {};
|
|
10294
9956
|
__export(iso_exports, {
|
|
10295
9957
|
ZodISODate: () => ZodISODate,
|
|
@@ -10331,7 +9993,7 @@ function duration(params) {
|
|
|
10331
9993
|
}
|
|
10332
9994
|
|
|
10333
9995
|
//#endregion
|
|
10334
|
-
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
9996
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/errors.js
|
|
10335
9997
|
const initializer = (inst, issues) => {
|
|
10336
9998
|
$ZodError.init(inst, issues);
|
|
10337
9999
|
inst.name = "ZodError";
|
|
@@ -10349,14 +10011,14 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
10349
10011
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
10350
10012
|
|
|
10351
10013
|
//#endregion
|
|
10352
|
-
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
10014
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/parse.js
|
|
10353
10015
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
10354
10016
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
10355
10017
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
10356
10018
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
10357
10019
|
|
|
10358
10020
|
//#endregion
|
|
10359
|
-
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
10021
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/schemas.js
|
|
10360
10022
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
10361
10023
|
$ZodType.init(inst, def);
|
|
10362
10024
|
inst.def = def;
|
|
@@ -10624,13 +10286,6 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
10624
10286
|
function jwt(params) {
|
|
10625
10287
|
return _jwt(ZodJWT, params);
|
|
10626
10288
|
}
|
|
10627
|
-
const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
|
|
10628
|
-
$ZodCustomStringFormat.init(inst, def);
|
|
10629
|
-
ZodStringFormat.init(inst, def);
|
|
10630
|
-
});
|
|
10631
|
-
function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10632
|
-
return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
|
|
10633
|
-
}
|
|
10634
10289
|
const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
10635
10290
|
$ZodNumber.init(inst, def);
|
|
10636
10291
|
ZodType.init(inst, def);
|
|
@@ -10800,7 +10455,9 @@ function keyof(schema) {
|
|
|
10800
10455
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
10801
10456
|
$ZodObject.init(inst, def);
|
|
10802
10457
|
ZodType.init(inst, def);
|
|
10803
|
-
defineLazy(inst, "shape", () =>
|
|
10458
|
+
defineLazy(inst, "shape", () => {
|
|
10459
|
+
return Object.fromEntries(Object.entries(inst._zod.def.shape));
|
|
10460
|
+
});
|
|
10804
10461
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
10805
10462
|
inst.catchall = (catchall) => inst.clone({
|
|
10806
10463
|
...inst._zod.def,
|
|
@@ -11245,8 +10902,11 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
11245
10902
|
$ZodCustom.init(inst, def);
|
|
11246
10903
|
ZodType.init(inst, def);
|
|
11247
10904
|
});
|
|
11248
|
-
function check(fn) {
|
|
11249
|
-
const ch = new $ZodCheck({
|
|
10905
|
+
function check(fn, params) {
|
|
10906
|
+
const ch = new $ZodCheck({
|
|
10907
|
+
check: "custom",
|
|
10908
|
+
...normalizeParams(params)
|
|
10909
|
+
});
|
|
11250
10910
|
ch._zod.check = fn;
|
|
11251
10911
|
return ch;
|
|
11252
10912
|
}
|
|
@@ -11256,7 +10916,7 @@ function custom(fn, _params) {
|
|
|
11256
10916
|
function refine(fn, _params = {}) {
|
|
11257
10917
|
return _refine(ZodCustom, fn, _params);
|
|
11258
10918
|
}
|
|
11259
|
-
function superRefine(fn) {
|
|
10919
|
+
function superRefine(fn, params) {
|
|
11260
10920
|
const ch = check((payload) => {
|
|
11261
10921
|
payload.addIssue = (issue$1) => {
|
|
11262
10922
|
if (typeof issue$1 === "string") {
|
|
@@ -11272,7 +10932,7 @@ function superRefine(fn) {
|
|
|
11272
10932
|
}
|
|
11273
10933
|
};
|
|
11274
10934
|
return fn(payload.value, payload);
|
|
11275
|
-
});
|
|
10935
|
+
}, params);
|
|
11276
10936
|
return ch;
|
|
11277
10937
|
}
|
|
11278
10938
|
function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) {
|
|
@@ -11310,7 +10970,7 @@ function preprocess(fn, schema) {
|
|
|
11310
10970
|
}
|
|
11311
10971
|
|
|
11312
10972
|
//#endregion
|
|
11313
|
-
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
10973
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/compat.js
|
|
11314
10974
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
11315
10975
|
const ZodIssueCode = {
|
|
11316
10976
|
invalid_type: "invalid_type",
|
|
@@ -11325,6 +10985,10 @@ const ZodIssueCode = {
|
|
|
11325
10985
|
invalid_value: "invalid_value",
|
|
11326
10986
|
custom: "custom"
|
|
11327
10987
|
};
|
|
10988
|
+
/** @deprecated Not necessary in Zod 4. */
|
|
10989
|
+
const INVALID = Object.freeze({ status: "aborted" });
|
|
10990
|
+
/** A special constant with type `never` */
|
|
10991
|
+
const NEVER = INVALID;
|
|
11328
10992
|
/** @deprecated Use `z.config(params)` instead. */
|
|
11329
10993
|
function setErrorMap(map$1) {
|
|
11330
10994
|
config$2({ customError: map$1 });
|
|
@@ -11335,7 +10999,7 @@ function getErrorMap() {
|
|
|
11335
10999
|
}
|
|
11336
11000
|
|
|
11337
11001
|
//#endregion
|
|
11338
|
-
//#region ../../node_modules/zod/v4/classic/coerce.js
|
|
11002
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/coerce.js
|
|
11339
11003
|
var coerce_exports = {};
|
|
11340
11004
|
__export(coerce_exports, {
|
|
11341
11005
|
bigint: () => bigint,
|
|
@@ -11361,14 +11025,13 @@ function date(params) {
|
|
|
11361
11025
|
}
|
|
11362
11026
|
|
|
11363
11027
|
//#endregion
|
|
11364
|
-
//#region ../../node_modules/zod/v4/classic/external.js
|
|
11028
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/external.js
|
|
11365
11029
|
var external_exports = {};
|
|
11366
11030
|
__export(external_exports, {
|
|
11367
11031
|
$brand: () => $brand,
|
|
11368
11032
|
$input: () => $input,
|
|
11369
11033
|
$output: () => $output,
|
|
11370
11034
|
NEVER: () => NEVER,
|
|
11371
|
-
TimePrecision: () => TimePrecision,
|
|
11372
11035
|
ZodAny: () => ZodAny,
|
|
11373
11036
|
ZodArray: () => ZodArray,
|
|
11374
11037
|
ZodBase64: () => ZodBase64,
|
|
@@ -11382,7 +11045,6 @@ __export(external_exports, {
|
|
|
11382
11045
|
ZodCUID2: () => ZodCUID2,
|
|
11383
11046
|
ZodCatch: () => ZodCatch,
|
|
11384
11047
|
ZodCustom: () => ZodCustom,
|
|
11385
|
-
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
11386
11048
|
ZodDate: () => ZodDate,
|
|
11387
11049
|
ZodDefault: () => ZodDefault,
|
|
11388
11050
|
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
@@ -11544,7 +11206,6 @@ __export(external_exports, {
|
|
|
11544
11206
|
startsWith: () => _startsWith,
|
|
11545
11207
|
strictObject: () => strictObject,
|
|
11546
11208
|
string: () => string$1,
|
|
11547
|
-
stringFormat: () => stringFormat,
|
|
11548
11209
|
stringbool: () => stringbool,
|
|
11549
11210
|
success: () => success,
|
|
11550
11211
|
superRefine: () => superRefine,
|
|
@@ -11575,11 +11236,11 @@ __export(external_exports, {
|
|
|
11575
11236
|
config$2(en_default());
|
|
11576
11237
|
|
|
11577
11238
|
//#endregion
|
|
11578
|
-
//#region ../../node_modules/zod/v4/classic/index.js
|
|
11239
|
+
//#region ../../node_modules/zod/dist/esm/v4/classic/index.js
|
|
11579
11240
|
var classic_default = external_exports;
|
|
11580
11241
|
|
|
11581
11242
|
//#endregion
|
|
11582
|
-
//#region ../../node_modules/zod/v4/index.js
|
|
11243
|
+
//#region ../../node_modules/zod/dist/esm/v4/index.js
|
|
11583
11244
|
var v4_default = classic_default;
|
|
11584
11245
|
|
|
11585
11246
|
//#endregion
|
|
@@ -11600,12 +11261,12 @@ var v4_default = classic_default;
|
|
|
11600
11261
|
function validate(schema, value) {
|
|
11601
11262
|
try {
|
|
11602
11263
|
return schema.parse(value);
|
|
11603
|
-
} catch (error$
|
|
11604
|
-
if (error$
|
|
11605
|
-
const formattedErrors = error$
|
|
11606
|
-
throw new Error(`Validation error${error$
|
|
11264
|
+
} catch (error$37) {
|
|
11265
|
+
if (error$37 instanceof ZodError) {
|
|
11266
|
+
const formattedErrors = error$37.issues.map((err) => `- ${err.path.join(".")}: ${err.message}`).join("\n");
|
|
11267
|
+
throw new Error(`Validation error${error$37.issues.length > 1 ? "s" : ""}:\n${formattedErrors}`);
|
|
11607
11268
|
}
|
|
11608
|
-
throw error$
|
|
11269
|
+
throw error$37;
|
|
11609
11270
|
}
|
|
11610
11271
|
}
|
|
11611
11272
|
|
|
@@ -11908,8 +11569,8 @@ async function loadEnvironmentEnv(validateEnv, prod, path$1 = process.cwd()) {
|
|
|
11908
11569
|
...parsed,
|
|
11909
11570
|
...defaultEnv
|
|
11910
11571
|
});
|
|
11911
|
-
} catch (error$
|
|
11912
|
-
cancel(error$
|
|
11572
|
+
} catch (error$37) {
|
|
11573
|
+
cancel(error$37.message);
|
|
11913
11574
|
return {};
|
|
11914
11575
|
}
|
|
11915
11576
|
}
|