@prefecthq/fastmcp-ts 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.cjs +9265 -3576
- package/dist/cli/index.cjs.map +1 -1
- package/dist/server.js +8 -8
- package/dist/server.js.map +1 -1
- package/dist/{zod-JRPBLP6C.js → zod-P5QUYVPB.js} +423 -1171
- package/dist/zod-P5QUYVPB.js.map +1 -0
- package/package.json +5 -8
- package/dist/zod-JRPBLP6C.js.map +0 -1
|
@@ -64,7 +64,6 @@ __export(external_exports, {
|
|
|
64
64
|
ZodOptional: () => ZodOptional,
|
|
65
65
|
ZodPipe: () => ZodPipe,
|
|
66
66
|
ZodPrefault: () => ZodPrefault,
|
|
67
|
-
ZodPreprocess: () => ZodPreprocess,
|
|
68
67
|
ZodPromise: () => ZodPromise,
|
|
69
68
|
ZodReadonly: () => ZodReadonly,
|
|
70
69
|
ZodRealError: () => ZodRealError,
|
|
@@ -143,7 +142,6 @@ __export(external_exports, {
|
|
|
143
142
|
int32: () => int32,
|
|
144
143
|
int64: () => int64,
|
|
145
144
|
intersection: () => intersection,
|
|
146
|
-
invertCodec: () => invertCodec,
|
|
147
145
|
ipv4: () => ipv42,
|
|
148
146
|
ipv6: () => ipv62,
|
|
149
147
|
iso: () => iso_exports,
|
|
@@ -325,7 +323,6 @@ __export(core_exports2, {
|
|
|
325
323
|
$ZodOptional: () => $ZodOptional,
|
|
326
324
|
$ZodPipe: () => $ZodPipe,
|
|
327
325
|
$ZodPrefault: () => $ZodPrefault,
|
|
328
|
-
$ZodPreprocess: () => $ZodPreprocess,
|
|
329
326
|
$ZodPromise: () => $ZodPromise,
|
|
330
327
|
$ZodReadonly: () => $ZodReadonly,
|
|
331
328
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -525,8 +522,7 @@ __export(core_exports2, {
|
|
|
525
522
|
});
|
|
526
523
|
|
|
527
524
|
// node_modules/zod/v4/core/core.js
|
|
528
|
-
var
|
|
529
|
-
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
525
|
+
var NEVER = Object.freeze({
|
|
530
526
|
status: "aborted"
|
|
531
527
|
});
|
|
532
528
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -561,10 +557,10 @@ function $constructor(name, initializer3, params) {
|
|
|
561
557
|
}
|
|
562
558
|
Object.defineProperty(Definition, "name", { value: name });
|
|
563
559
|
function _(def) {
|
|
564
|
-
var
|
|
560
|
+
var _a2;
|
|
565
561
|
const inst = params?.Parent ? new Definition() : this;
|
|
566
562
|
init(inst, def);
|
|
567
|
-
(
|
|
563
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
568
564
|
for (const fn of inst._zod.deferred) {
|
|
569
565
|
fn();
|
|
570
566
|
}
|
|
@@ -593,8 +589,7 @@ var $ZodEncodeError = class extends Error {
|
|
|
593
589
|
this.name = "ZodEncodeError";
|
|
594
590
|
}
|
|
595
591
|
};
|
|
596
|
-
|
|
597
|
-
var globalConfig = globalThis.__zod_globalConfig;
|
|
592
|
+
var globalConfig = {};
|
|
598
593
|
function config(newConfig) {
|
|
599
594
|
if (newConfig)
|
|
600
595
|
Object.assign(globalConfig, newConfig);
|
|
@@ -627,7 +622,6 @@ __export(util_exports, {
|
|
|
627
622
|
defineLazy: () => defineLazy,
|
|
628
623
|
esc: () => esc,
|
|
629
624
|
escapeRegex: () => escapeRegex,
|
|
630
|
-
explicitlyAborted: () => explicitlyAborted,
|
|
631
625
|
extend: () => extend,
|
|
632
626
|
finalizeIssue: () => finalizeIssue,
|
|
633
627
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -716,12 +710,19 @@ function cleanRegex(source) {
|
|
|
716
710
|
return source.slice(start, end);
|
|
717
711
|
}
|
|
718
712
|
function floatSafeRemainder(val, step) {
|
|
719
|
-
const
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
if (
|
|
723
|
-
|
|
724
|
-
|
|
713
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
714
|
+
const stepString = step.toString();
|
|
715
|
+
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
716
|
+
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
717
|
+
const match = stepString.match(/\d?e-(\d?)/);
|
|
718
|
+
if (match?.[1]) {
|
|
719
|
+
stepDecCount = Number.parseInt(match[1]);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
723
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
724
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
725
|
+
return valInt % stepInt / 10 ** decCount;
|
|
725
726
|
}
|
|
726
727
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
727
728
|
function defineLazy(object2, key, getter) {
|
|
@@ -803,10 +804,7 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
803
804
|
function isObject(data) {
|
|
804
805
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
805
806
|
}
|
|
806
|
-
var allowsEval =
|
|
807
|
-
if (globalConfig.jitless) {
|
|
808
|
-
return false;
|
|
809
|
-
}
|
|
807
|
+
var allowsEval = cached(() => {
|
|
810
808
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
811
809
|
return false;
|
|
812
810
|
}
|
|
@@ -839,10 +837,6 @@ function shallowClone(o) {
|
|
|
839
837
|
return { ...o };
|
|
840
838
|
if (Array.isArray(o))
|
|
841
839
|
return [...o];
|
|
842
|
-
if (o instanceof Map)
|
|
843
|
-
return new Map(o);
|
|
844
|
-
if (o instanceof Set)
|
|
845
|
-
return new Set(o);
|
|
846
840
|
return o;
|
|
847
841
|
}
|
|
848
842
|
function numKeys(data) {
|
|
@@ -899,14 +893,7 @@ var getParsedType = (data) => {
|
|
|
899
893
|
}
|
|
900
894
|
};
|
|
901
895
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
902
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
903
|
-
"string",
|
|
904
|
-
"number",
|
|
905
|
-
"bigint",
|
|
906
|
-
"boolean",
|
|
907
|
-
"symbol",
|
|
908
|
-
"undefined"
|
|
909
|
-
]);
|
|
896
|
+
var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
910
897
|
function escapeRegex(str) {
|
|
911
898
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
912
899
|
}
|
|
@@ -1075,9 +1062,6 @@ function safeExtend(schema, shape) {
|
|
|
1075
1062
|
return clone(schema, def);
|
|
1076
1063
|
}
|
|
1077
1064
|
function merge(a, b) {
|
|
1078
|
-
if (a._zod.def.checks?.length) {
|
|
1079
|
-
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1080
|
-
}
|
|
1081
1065
|
const def = mergeDefs(a._zod.def, {
|
|
1082
1066
|
get shape() {
|
|
1083
1067
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1087,7 +1071,8 @@ function merge(a, b) {
|
|
|
1087
1071
|
get catchall() {
|
|
1088
1072
|
return b._zod.def.catchall;
|
|
1089
1073
|
},
|
|
1090
|
-
checks:
|
|
1074
|
+
checks: []
|
|
1075
|
+
// delete existing checks
|
|
1091
1076
|
});
|
|
1092
1077
|
return clone(a, def);
|
|
1093
1078
|
}
|
|
@@ -1170,20 +1155,10 @@ function aborted(x, startIndex = 0) {
|
|
|
1170
1155
|
}
|
|
1171
1156
|
return false;
|
|
1172
1157
|
}
|
|
1173
|
-
function explicitlyAborted(x, startIndex = 0) {
|
|
1174
|
-
if (x.aborted === true)
|
|
1175
|
-
return true;
|
|
1176
|
-
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1177
|
-
if (x.issues[i]?.continue === false) {
|
|
1178
|
-
return true;
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
return false;
|
|
1182
|
-
}
|
|
1183
1158
|
function prefixIssues(path, issues) {
|
|
1184
1159
|
return issues.map((iss) => {
|
|
1185
|
-
var
|
|
1186
|
-
(
|
|
1160
|
+
var _a2;
|
|
1161
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
1187
1162
|
iss.path.unshift(path);
|
|
1188
1163
|
return iss;
|
|
1189
1164
|
});
|
|
@@ -1192,14 +1167,17 @@ function unwrapMessage(message) {
|
|
|
1192
1167
|
return typeof message === "string" ? message : message?.message;
|
|
1193
1168
|
}
|
|
1194
1169
|
function finalizeIssue(iss, ctx, config2) {
|
|
1195
|
-
const
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
if (ctx?.reportInput) {
|
|
1200
|
-
rest.input = _input;
|
|
1170
|
+
const full = { ...iss, path: iss.path ?? [] };
|
|
1171
|
+
if (!iss.message) {
|
|
1172
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
1173
|
+
full.message = message;
|
|
1201
1174
|
}
|
|
1202
|
-
|
|
1175
|
+
delete full.inst;
|
|
1176
|
+
delete full.continue;
|
|
1177
|
+
if (!ctx?.reportInput) {
|
|
1178
|
+
delete full.input;
|
|
1179
|
+
}
|
|
1180
|
+
return full;
|
|
1203
1181
|
}
|
|
1204
1182
|
function getSizableOrigin(input) {
|
|
1205
1183
|
if (input instanceof Set)
|
|
@@ -1316,10 +1294,10 @@ var initializer = (inst, def) => {
|
|
|
1316
1294
|
};
|
|
1317
1295
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1318
1296
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1319
|
-
function flattenError(
|
|
1297
|
+
function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
1320
1298
|
const fieldErrors = {};
|
|
1321
1299
|
const formErrors = [];
|
|
1322
|
-
for (const sub of
|
|
1300
|
+
for (const sub of error48.issues) {
|
|
1323
1301
|
if (sub.path.length > 0) {
|
|
1324
1302
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1325
1303
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1329,53 +1307,50 @@ function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
|
1329
1307
|
}
|
|
1330
1308
|
return { formErrors, fieldErrors };
|
|
1331
1309
|
}
|
|
1332
|
-
function formatError(
|
|
1310
|
+
function formatError(error48, mapper = (issue2) => issue2.message) {
|
|
1333
1311
|
const fieldErrors = { _errors: [] };
|
|
1334
|
-
const processError = (
|
|
1335
|
-
for (const issue2 of
|
|
1312
|
+
const processError = (error49) => {
|
|
1313
|
+
for (const issue2 of error49.issues) {
|
|
1336
1314
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1337
|
-
issue2.errors.map((issues) => processError({ issues }
|
|
1315
|
+
issue2.errors.map((issues) => processError({ issues }));
|
|
1338
1316
|
} else if (issue2.code === "invalid_key") {
|
|
1339
|
-
processError({ issues: issue2.issues }
|
|
1317
|
+
processError({ issues: issue2.issues });
|
|
1340
1318
|
} else if (issue2.code === "invalid_element") {
|
|
1341
|
-
processError({ issues: issue2.issues }
|
|
1319
|
+
processError({ issues: issue2.issues });
|
|
1320
|
+
} else if (issue2.path.length === 0) {
|
|
1321
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1342
1322
|
} else {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
1354
|
-
} else {
|
|
1355
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
1356
|
-
curr[el]._errors.push(mapper(issue2));
|
|
1357
|
-
}
|
|
1358
|
-
curr = curr[el];
|
|
1359
|
-
i++;
|
|
1323
|
+
let curr = fieldErrors;
|
|
1324
|
+
let i = 0;
|
|
1325
|
+
while (i < issue2.path.length) {
|
|
1326
|
+
const el = issue2.path[i];
|
|
1327
|
+
const terminal = i === issue2.path.length - 1;
|
|
1328
|
+
if (!terminal) {
|
|
1329
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1330
|
+
} else {
|
|
1331
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1332
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1360
1333
|
}
|
|
1334
|
+
curr = curr[el];
|
|
1335
|
+
i++;
|
|
1361
1336
|
}
|
|
1362
1337
|
}
|
|
1363
1338
|
}
|
|
1364
1339
|
};
|
|
1365
|
-
processError(
|
|
1340
|
+
processError(error48);
|
|
1366
1341
|
return fieldErrors;
|
|
1367
1342
|
}
|
|
1368
|
-
function treeifyError(
|
|
1343
|
+
function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
1369
1344
|
const result = { errors: [] };
|
|
1370
|
-
const processError = (
|
|
1371
|
-
var
|
|
1372
|
-
for (const issue2 of
|
|
1345
|
+
const processError = (error49, path = []) => {
|
|
1346
|
+
var _a2, _b;
|
|
1347
|
+
for (const issue2 of error49.issues) {
|
|
1373
1348
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1374
|
-
issue2.errors.map((issues) => processError({ issues },
|
|
1349
|
+
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1375
1350
|
} else if (issue2.code === "invalid_key") {
|
|
1376
|
-
processError({ issues: issue2.issues },
|
|
1351
|
+
processError({ issues: issue2.issues }, issue2.path);
|
|
1377
1352
|
} else if (issue2.code === "invalid_element") {
|
|
1378
|
-
processError({ issues: issue2.issues },
|
|
1353
|
+
processError({ issues: issue2.issues }, issue2.path);
|
|
1379
1354
|
} else {
|
|
1380
1355
|
const fullpath = [...path, ...issue2.path];
|
|
1381
1356
|
if (fullpath.length === 0) {
|
|
@@ -1389,7 +1364,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
|
1389
1364
|
const terminal = i === fullpath.length - 1;
|
|
1390
1365
|
if (typeof el === "string") {
|
|
1391
1366
|
curr.properties ?? (curr.properties = {});
|
|
1392
|
-
(
|
|
1367
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
1393
1368
|
curr = curr.properties[el];
|
|
1394
1369
|
} else {
|
|
1395
1370
|
curr.items ?? (curr.items = []);
|
|
@@ -1404,7 +1379,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
|
1404
1379
|
}
|
|
1405
1380
|
}
|
|
1406
1381
|
};
|
|
1407
|
-
processError(
|
|
1382
|
+
processError(error48);
|
|
1408
1383
|
return result;
|
|
1409
1384
|
}
|
|
1410
1385
|
function toDotPath(_path) {
|
|
@@ -1425,9 +1400,9 @@ function toDotPath(_path) {
|
|
|
1425
1400
|
}
|
|
1426
1401
|
return segs.join("");
|
|
1427
1402
|
}
|
|
1428
|
-
function prettifyError(
|
|
1403
|
+
function prettifyError(error48) {
|
|
1429
1404
|
const lines = [];
|
|
1430
|
-
const issues = [...
|
|
1405
|
+
const issues = [...error48.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1431
1406
|
for (const issue2 of issues) {
|
|
1432
1407
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1433
1408
|
if (issue2.path?.length)
|
|
@@ -1438,7 +1413,7 @@ function prettifyError(error51) {
|
|
|
1438
1413
|
|
|
1439
1414
|
// node_modules/zod/v4/core/parse.js
|
|
1440
1415
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1441
|
-
const ctx = _ctx ?
|
|
1416
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1442
1417
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1443
1418
|
if (result instanceof Promise) {
|
|
1444
1419
|
throw new $ZodAsyncError();
|
|
@@ -1452,7 +1427,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1452
1427
|
};
|
|
1453
1428
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1454
1429
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1455
|
-
const ctx = _ctx ?
|
|
1430
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
1456
1431
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1457
1432
|
if (result instanceof Promise)
|
|
1458
1433
|
result = await result;
|
|
@@ -1477,7 +1452,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1477
1452
|
};
|
|
1478
1453
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1479
1454
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1480
|
-
const ctx = _ctx ?
|
|
1455
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
1481
1456
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1482
1457
|
if (result instanceof Promise)
|
|
1483
1458
|
result = await result;
|
|
@@ -1488,7 +1463,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1488
1463
|
};
|
|
1489
1464
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1490
1465
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1491
|
-
const ctx = _ctx ?
|
|
1466
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1492
1467
|
return _parse(_Err)(schema, value, ctx);
|
|
1493
1468
|
};
|
|
1494
1469
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1497,7 +1472,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1497
1472
|
};
|
|
1498
1473
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1499
1474
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1500
|
-
const ctx = _ctx ?
|
|
1475
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1501
1476
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1502
1477
|
};
|
|
1503
1478
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1506,7 +1481,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1506
1481
|
};
|
|
1507
1482
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1508
1483
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1509
|
-
const ctx = _ctx ?
|
|
1484
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1510
1485
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1511
1486
|
};
|
|
1512
1487
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1515,7 +1490,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1515
1490
|
};
|
|
1516
1491
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1517
1492
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1518
|
-
const ctx = _ctx ?
|
|
1493
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
1519
1494
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1520
1495
|
};
|
|
1521
1496
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1548,7 +1523,6 @@ __export(regexes_exports, {
|
|
|
1548
1523
|
hex: () => hex,
|
|
1549
1524
|
hostname: () => hostname,
|
|
1550
1525
|
html5Email: () => html5Email,
|
|
1551
|
-
httpProtocol: () => httpProtocol,
|
|
1552
1526
|
idnEmail: () => idnEmail,
|
|
1553
1527
|
integer: () => integer,
|
|
1554
1528
|
ipv4: () => ipv4,
|
|
@@ -1587,7 +1561,7 @@ __export(regexes_exports, {
|
|
|
1587
1561
|
uuid7: () => uuid7,
|
|
1588
1562
|
xid: () => xid
|
|
1589
1563
|
});
|
|
1590
|
-
var cuid = /^[cC][
|
|
1564
|
+
var cuid = /^[cC][^\s-]{8,}$/;
|
|
1591
1565
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1592
1566
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1593
1567
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1626,7 +1600,6 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1626
1600
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1627
1601
|
var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
1628
1602
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1629
|
-
var httpProtocol = /^https?$/;
|
|
1630
1603
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1631
1604
|
var 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])))`;
|
|
1632
1605
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -1685,10 +1658,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
1685
1658
|
|
|
1686
1659
|
// node_modules/zod/v4/core/checks.js
|
|
1687
1660
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1688
|
-
var
|
|
1661
|
+
var _a2;
|
|
1689
1662
|
inst._zod ?? (inst._zod = {});
|
|
1690
1663
|
inst._zod.def = def;
|
|
1691
|
-
(
|
|
1664
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
1692
1665
|
});
|
|
1693
1666
|
var numericOriginMap = {
|
|
1694
1667
|
number: "number",
|
|
@@ -1754,8 +1727,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1754
1727
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1755
1728
|
$ZodCheck.init(inst, def);
|
|
1756
1729
|
inst._zod.onattach.push((inst2) => {
|
|
1757
|
-
var
|
|
1758
|
-
(
|
|
1730
|
+
var _a2;
|
|
1731
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
1759
1732
|
});
|
|
1760
1733
|
inst._zod.check = (payload) => {
|
|
1761
1734
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1888,9 +1861,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
1888
1861
|
};
|
|
1889
1862
|
});
|
|
1890
1863
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1891
|
-
var
|
|
1864
|
+
var _a2;
|
|
1892
1865
|
$ZodCheck.init(inst, def);
|
|
1893
|
-
(
|
|
1866
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1894
1867
|
const val = payload.value;
|
|
1895
1868
|
return !nullish(val) && val.size !== void 0;
|
|
1896
1869
|
});
|
|
@@ -1916,9 +1889,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
1916
1889
|
};
|
|
1917
1890
|
});
|
|
1918
1891
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1919
|
-
var
|
|
1892
|
+
var _a2;
|
|
1920
1893
|
$ZodCheck.init(inst, def);
|
|
1921
|
-
(
|
|
1894
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1922
1895
|
const val = payload.value;
|
|
1923
1896
|
return !nullish(val) && val.size !== void 0;
|
|
1924
1897
|
});
|
|
@@ -1944,9 +1917,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
1944
1917
|
};
|
|
1945
1918
|
});
|
|
1946
1919
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1947
|
-
var
|
|
1920
|
+
var _a2;
|
|
1948
1921
|
$ZodCheck.init(inst, def);
|
|
1949
|
-
(
|
|
1922
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1950
1923
|
const val = payload.value;
|
|
1951
1924
|
return !nullish(val) && val.size !== void 0;
|
|
1952
1925
|
});
|
|
@@ -1974,9 +1947,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
1974
1947
|
};
|
|
1975
1948
|
});
|
|
1976
1949
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1977
|
-
var
|
|
1950
|
+
var _a2;
|
|
1978
1951
|
$ZodCheck.init(inst, def);
|
|
1979
|
-
(
|
|
1952
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1980
1953
|
const val = payload.value;
|
|
1981
1954
|
return !nullish(val) && val.length !== void 0;
|
|
1982
1955
|
});
|
|
@@ -2003,9 +1976,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2003
1976
|
};
|
|
2004
1977
|
});
|
|
2005
1978
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2006
|
-
var
|
|
1979
|
+
var _a2;
|
|
2007
1980
|
$ZodCheck.init(inst, def);
|
|
2008
|
-
(
|
|
1981
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
2009
1982
|
const val = payload.value;
|
|
2010
1983
|
return !nullish(val) && val.length !== void 0;
|
|
2011
1984
|
});
|
|
@@ -2032,9 +2005,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2032
2005
|
};
|
|
2033
2006
|
});
|
|
2034
2007
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2035
|
-
var
|
|
2008
|
+
var _a2;
|
|
2036
2009
|
$ZodCheck.init(inst, def);
|
|
2037
|
-
(
|
|
2010
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
2038
2011
|
const val = payload.value;
|
|
2039
2012
|
return !nullish(val) && val.length !== void 0;
|
|
2040
2013
|
});
|
|
@@ -2063,7 +2036,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2063
2036
|
};
|
|
2064
2037
|
});
|
|
2065
2038
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2066
|
-
var
|
|
2039
|
+
var _a2, _b;
|
|
2067
2040
|
$ZodCheck.init(inst, def);
|
|
2068
2041
|
inst._zod.onattach.push((inst2) => {
|
|
2069
2042
|
const bag = inst2._zod.bag;
|
|
@@ -2074,7 +2047,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2074
2047
|
}
|
|
2075
2048
|
});
|
|
2076
2049
|
if (def.pattern)
|
|
2077
|
-
(
|
|
2050
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
2078
2051
|
def.pattern.lastIndex = 0;
|
|
2079
2052
|
if (def.pattern.test(payload.value))
|
|
2080
2053
|
return;
|
|
@@ -2270,13 +2243,13 @@ var Doc = class {
|
|
|
2270
2243
|
// node_modules/zod/v4/core/versions.js
|
|
2271
2244
|
var version = {
|
|
2272
2245
|
major: 4,
|
|
2273
|
-
minor:
|
|
2274
|
-
patch:
|
|
2246
|
+
minor: 3,
|
|
2247
|
+
patch: 6
|
|
2275
2248
|
};
|
|
2276
2249
|
|
|
2277
2250
|
// node_modules/zod/v4/core/schemas.js
|
|
2278
2251
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2279
|
-
var
|
|
2252
|
+
var _a2;
|
|
2280
2253
|
inst ?? (inst = {});
|
|
2281
2254
|
inst._zod.def = def;
|
|
2282
2255
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2291,7 +2264,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2291
2264
|
}
|
|
2292
2265
|
}
|
|
2293
2266
|
if (checks.length === 0) {
|
|
2294
|
-
(
|
|
2267
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
2295
2268
|
inst._zod.deferred?.push(() => {
|
|
2296
2269
|
inst._zod.run = inst._zod.parse;
|
|
2297
2270
|
});
|
|
@@ -2301,8 +2274,6 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2301
2274
|
let asyncResult;
|
|
2302
2275
|
for (const ch of checks2) {
|
|
2303
2276
|
if (ch._zod.def.when) {
|
|
2304
|
-
if (explicitlyAborted(payload))
|
|
2305
|
-
continue;
|
|
2306
2277
|
const shouldRun = ch._zod.def.when(payload);
|
|
2307
2278
|
if (!shouldRun)
|
|
2308
2279
|
continue;
|
|
@@ -2443,19 +2414,6 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2443
2414
|
inst._zod.check = (payload) => {
|
|
2444
2415
|
try {
|
|
2445
2416
|
const trimmed = payload.value.trim();
|
|
2446
|
-
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2447
|
-
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2448
|
-
payload.issues.push({
|
|
2449
|
-
code: "invalid_format",
|
|
2450
|
-
format: "url",
|
|
2451
|
-
note: "Invalid URL format",
|
|
2452
|
-
input: payload.value,
|
|
2453
|
-
inst,
|
|
2454
|
-
continue: !def.abort
|
|
2455
|
-
});
|
|
2456
|
-
return;
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
2417
|
const url2 = new URL(trimmed);
|
|
2460
2418
|
if (def.hostname) {
|
|
2461
2419
|
def.hostname.lastIndex = 0;
|
|
@@ -2609,8 +2567,6 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2609
2567
|
function isValidBase64(data) {
|
|
2610
2568
|
if (data === "")
|
|
2611
2569
|
return true;
|
|
2612
|
-
if (/\s/.test(data))
|
|
2613
|
-
return false;
|
|
2614
2570
|
if (data.length % 4 !== 0)
|
|
2615
2571
|
return false;
|
|
2616
2572
|
try {
|
|
@@ -2803,6 +2759,8 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
2803
2759
|
$ZodType.init(inst, def);
|
|
2804
2760
|
inst._zod.pattern = _undefined;
|
|
2805
2761
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
2762
|
+
inst._zod.optin = "optional";
|
|
2763
|
+
inst._zod.optout = "optional";
|
|
2806
2764
|
inst._zod.parse = (payload, _ctx) => {
|
|
2807
2765
|
const input = payload.value;
|
|
2808
2766
|
if (typeof input === "undefined")
|
|
@@ -2931,27 +2889,15 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
2931
2889
|
return payload;
|
|
2932
2890
|
};
|
|
2933
2891
|
});
|
|
2934
|
-
function handlePropertyResult(result, final, key, input,
|
|
2935
|
-
const isPresent = key in input;
|
|
2892
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
2936
2893
|
if (result.issues.length) {
|
|
2937
|
-
if (
|
|
2894
|
+
if (isOptionalOut && !(key in input)) {
|
|
2938
2895
|
return;
|
|
2939
2896
|
}
|
|
2940
2897
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
2941
2898
|
}
|
|
2942
|
-
if (!isPresent && !isOptionalIn) {
|
|
2943
|
-
if (!result.issues.length) {
|
|
2944
|
-
final.issues.push({
|
|
2945
|
-
code: "invalid_type",
|
|
2946
|
-
expected: "nonoptional",
|
|
2947
|
-
input: void 0,
|
|
2948
|
-
path: [key]
|
|
2949
|
-
});
|
|
2950
|
-
}
|
|
2951
|
-
return;
|
|
2952
|
-
}
|
|
2953
2899
|
if (result.value === void 0) {
|
|
2954
|
-
if (
|
|
2900
|
+
if (key in input) {
|
|
2955
2901
|
final.value[key] = void 0;
|
|
2956
2902
|
}
|
|
2957
2903
|
} else {
|
|
@@ -2979,11 +2925,8 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2979
2925
|
const keySet = def.keySet;
|
|
2980
2926
|
const _catchall = def.catchall._zod;
|
|
2981
2927
|
const t = _catchall.def.type;
|
|
2982
|
-
const isOptionalIn = _catchall.optin === "optional";
|
|
2983
2928
|
const isOptionalOut = _catchall.optout === "optional";
|
|
2984
2929
|
for (const key in input) {
|
|
2985
|
-
if (key === "__proto__")
|
|
2986
|
-
continue;
|
|
2987
2930
|
if (keySet.has(key))
|
|
2988
2931
|
continue;
|
|
2989
2932
|
if (t === "never") {
|
|
@@ -2992,9 +2935,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2992
2935
|
}
|
|
2993
2936
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
2994
2937
|
if (r instanceof Promise) {
|
|
2995
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
2938
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
2996
2939
|
} else {
|
|
2997
|
-
handlePropertyResult(r, payload, key, input,
|
|
2940
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
2998
2941
|
}
|
|
2999
2942
|
}
|
|
3000
2943
|
if (unrecognized.length) {
|
|
@@ -3060,13 +3003,12 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3060
3003
|
const shape = value.shape;
|
|
3061
3004
|
for (const key of value.keys) {
|
|
3062
3005
|
const el = shape[key];
|
|
3063
|
-
const isOptionalIn = el._zod.optin === "optional";
|
|
3064
3006
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3065
3007
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3066
3008
|
if (r instanceof Promise) {
|
|
3067
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
3009
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3068
3010
|
} else {
|
|
3069
|
-
handlePropertyResult(r, payload, key, input,
|
|
3011
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3070
3012
|
}
|
|
3071
3013
|
}
|
|
3072
3014
|
if (!catchall) {
|
|
@@ -3097,10 +3039,9 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3097
3039
|
const id = ids[key];
|
|
3098
3040
|
const k = esc(key);
|
|
3099
3041
|
const schema = shape[key];
|
|
3100
|
-
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3101
3042
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3102
3043
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3103
|
-
if (
|
|
3044
|
+
if (isOptionalOut) {
|
|
3104
3045
|
doc.write(`
|
|
3105
3046
|
if (${id}.issues.length) {
|
|
3106
3047
|
if (${k} in input) {
|
|
@@ -3119,33 +3060,6 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3119
3060
|
newResult[${k}] = ${id}.value;
|
|
3120
3061
|
}
|
|
3121
3062
|
|
|
3122
|
-
`);
|
|
3123
|
-
} else if (!isOptionalIn) {
|
|
3124
|
-
doc.write(`
|
|
3125
|
-
const ${id}_present = ${k} in input;
|
|
3126
|
-
if (${id}.issues.length) {
|
|
3127
|
-
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3128
|
-
...iss,
|
|
3129
|
-
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3130
|
-
})));
|
|
3131
|
-
}
|
|
3132
|
-
if (!${id}_present && !${id}.issues.length) {
|
|
3133
|
-
payload.issues.push({
|
|
3134
|
-
code: "invalid_type",
|
|
3135
|
-
expected: "nonoptional",
|
|
3136
|
-
input: undefined,
|
|
3137
|
-
path: [${k}]
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3140
|
-
|
|
3141
|
-
if (${id}_present) {
|
|
3142
|
-
if (${id}.value === undefined) {
|
|
3143
|
-
newResult[${k}] = undefined;
|
|
3144
|
-
} else {
|
|
3145
|
-
newResult[${k}] = ${id}.value;
|
|
3146
|
-
}
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
3063
|
`);
|
|
3150
3064
|
} else {
|
|
3151
3065
|
doc.write(`
|
|
@@ -3239,9 +3153,10 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3239
3153
|
}
|
|
3240
3154
|
return void 0;
|
|
3241
3155
|
});
|
|
3242
|
-
const
|
|
3156
|
+
const single = def.options.length === 1;
|
|
3157
|
+
const first = def.options[0]._zod.run;
|
|
3243
3158
|
inst._zod.parse = (payload, ctx) => {
|
|
3244
|
-
if (
|
|
3159
|
+
if (single) {
|
|
3245
3160
|
return first(payload, ctx);
|
|
3246
3161
|
}
|
|
3247
3162
|
let async = false;
|
|
@@ -3294,9 +3209,10 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3294
3209
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3295
3210
|
$ZodUnion.init(inst, def);
|
|
3296
3211
|
def.inclusive = false;
|
|
3297
|
-
const
|
|
3212
|
+
const single = def.options.length === 1;
|
|
3213
|
+
const first = def.options[0]._zod.run;
|
|
3298
3214
|
inst._zod.parse = (payload, ctx) => {
|
|
3299
|
-
if (
|
|
3215
|
+
if (single) {
|
|
3300
3216
|
return first(payload, ctx);
|
|
3301
3217
|
}
|
|
3302
3218
|
let async = false;
|
|
@@ -3371,7 +3287,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3371
3287
|
if (opt) {
|
|
3372
3288
|
return opt._zod.run(payload, ctx);
|
|
3373
3289
|
}
|
|
3374
|
-
if (def.unionFallback
|
|
3290
|
+
if (def.unionFallback) {
|
|
3375
3291
|
return _super(payload, ctx);
|
|
3376
3292
|
}
|
|
3377
3293
|
payload.issues.push({
|
|
@@ -3379,7 +3295,6 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3379
3295
|
errors: [],
|
|
3380
3296
|
note: "No matching discriminator",
|
|
3381
3297
|
discriminator: def.discriminator,
|
|
3382
|
-
options: Array.from(disc.value.keys()),
|
|
3383
3298
|
input,
|
|
3384
3299
|
path: [def.discriminator],
|
|
3385
3300
|
inst
|
|
@@ -3501,96 +3416,64 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3501
3416
|
}
|
|
3502
3417
|
payload.value = [];
|
|
3503
3418
|
const proms = [];
|
|
3504
|
-
const
|
|
3505
|
-
const
|
|
3419
|
+
const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
3420
|
+
const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
|
|
3506
3421
|
if (!def.rest) {
|
|
3507
|
-
|
|
3422
|
+
const tooBig = input.length > items.length;
|
|
3423
|
+
const tooSmall = input.length < optStart - 1;
|
|
3424
|
+
if (tooBig || tooSmall) {
|
|
3508
3425
|
payload.issues.push({
|
|
3509
|
-
code: "too_small",
|
|
3510
|
-
minimum: optinStart,
|
|
3511
|
-
inclusive: true,
|
|
3426
|
+
...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
|
|
3512
3427
|
input,
|
|
3513
3428
|
inst,
|
|
3514
3429
|
origin: "array"
|
|
3515
3430
|
});
|
|
3516
3431
|
return payload;
|
|
3517
3432
|
}
|
|
3518
|
-
if (input.length > items.length) {
|
|
3519
|
-
payload.issues.push({
|
|
3520
|
-
code: "too_big",
|
|
3521
|
-
maximum: items.length,
|
|
3522
|
-
inclusive: true,
|
|
3523
|
-
input,
|
|
3524
|
-
inst,
|
|
3525
|
-
origin: "array"
|
|
3526
|
-
});
|
|
3527
|
-
}
|
|
3528
3433
|
}
|
|
3529
|
-
|
|
3530
|
-
for (
|
|
3531
|
-
|
|
3532
|
-
if (
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3434
|
+
let i = -1;
|
|
3435
|
+
for (const item of items) {
|
|
3436
|
+
i++;
|
|
3437
|
+
if (i >= input.length) {
|
|
3438
|
+
if (i >= optStart)
|
|
3439
|
+
continue;
|
|
3440
|
+
}
|
|
3441
|
+
const result = item._zod.run({
|
|
3442
|
+
value: input[i],
|
|
3443
|
+
issues: []
|
|
3444
|
+
}, ctx);
|
|
3445
|
+
if (result instanceof Promise) {
|
|
3446
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
|
|
3536
3447
|
} else {
|
|
3537
|
-
|
|
3448
|
+
handleTupleResult(result, payload, i);
|
|
3538
3449
|
}
|
|
3539
3450
|
}
|
|
3540
3451
|
if (def.rest) {
|
|
3541
|
-
let i = items.length - 1;
|
|
3542
3452
|
const rest = input.slice(items.length);
|
|
3543
3453
|
for (const el of rest) {
|
|
3544
3454
|
i++;
|
|
3545
|
-
const result = def.rest._zod.run({
|
|
3455
|
+
const result = def.rest._zod.run({
|
|
3456
|
+
value: el,
|
|
3457
|
+
issues: []
|
|
3458
|
+
}, ctx);
|
|
3546
3459
|
if (result instanceof Promise) {
|
|
3547
|
-
proms.push(result.then((
|
|
3460
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
|
|
3548
3461
|
} else {
|
|
3549
3462
|
handleTupleResult(result, payload, i);
|
|
3550
3463
|
}
|
|
3551
3464
|
}
|
|
3552
3465
|
}
|
|
3553
|
-
if (proms.length)
|
|
3554
|
-
return Promise.all(proms).then(() =>
|
|
3555
|
-
|
|
3556
|
-
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3466
|
+
if (proms.length)
|
|
3467
|
+
return Promise.all(proms).then(() => payload);
|
|
3468
|
+
return payload;
|
|
3557
3469
|
};
|
|
3558
3470
|
});
|
|
3559
|
-
function getTupleOptStart(items, key) {
|
|
3560
|
-
for (let i = items.length - 1; i >= 0; i--) {
|
|
3561
|
-
if (items[i]._zod[key] !== "optional")
|
|
3562
|
-
return i + 1;
|
|
3563
|
-
}
|
|
3564
|
-
return 0;
|
|
3565
|
-
}
|
|
3566
3471
|
function handleTupleResult(result, final, index) {
|
|
3567
3472
|
if (result.issues.length) {
|
|
3568
3473
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3569
3474
|
}
|
|
3570
3475
|
final.value[index] = result.value;
|
|
3571
3476
|
}
|
|
3572
|
-
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3573
|
-
for (let i = 0; i < items.length; i++) {
|
|
3574
|
-
const r = itemResults[i];
|
|
3575
|
-
const isPresent = i < input.length;
|
|
3576
|
-
if (r.issues.length) {
|
|
3577
|
-
if (!isPresent && i >= optoutStart) {
|
|
3578
|
-
final.value.length = i;
|
|
3579
|
-
break;
|
|
3580
|
-
}
|
|
3581
|
-
final.issues.push(...prefixIssues(i, r.issues));
|
|
3582
|
-
}
|
|
3583
|
-
final.value[i] = r.value;
|
|
3584
|
-
}
|
|
3585
|
-
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
3586
|
-
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
3587
|
-
final.value.length = i;
|
|
3588
|
-
} else {
|
|
3589
|
-
break;
|
|
3590
|
-
}
|
|
3591
|
-
}
|
|
3592
|
-
return final;
|
|
3593
|
-
}
|
|
3594
3477
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3595
3478
|
$ZodType.init(inst, def);
|
|
3596
3479
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3612,35 +3495,19 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3612
3495
|
for (const key of values) {
|
|
3613
3496
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3614
3497
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3615
|
-
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3616
|
-
if (keyResult instanceof Promise) {
|
|
3617
|
-
throw new Error("Async schemas not supported in object keys currently");
|
|
3618
|
-
}
|
|
3619
|
-
if (keyResult.issues.length) {
|
|
3620
|
-
payload.issues.push({
|
|
3621
|
-
code: "invalid_key",
|
|
3622
|
-
origin: "record",
|
|
3623
|
-
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3624
|
-
input: key,
|
|
3625
|
-
path: [key],
|
|
3626
|
-
inst
|
|
3627
|
-
});
|
|
3628
|
-
continue;
|
|
3629
|
-
}
|
|
3630
|
-
const outKey = keyResult.value;
|
|
3631
3498
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3632
3499
|
if (result instanceof Promise) {
|
|
3633
3500
|
proms.push(result.then((result2) => {
|
|
3634
3501
|
if (result2.issues.length) {
|
|
3635
3502
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3636
3503
|
}
|
|
3637
|
-
payload.value[
|
|
3504
|
+
payload.value[key] = result2.value;
|
|
3638
3505
|
}));
|
|
3639
3506
|
} else {
|
|
3640
3507
|
if (result.issues.length) {
|
|
3641
3508
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3642
3509
|
}
|
|
3643
|
-
payload.value[
|
|
3510
|
+
payload.value[key] = result.value;
|
|
3644
3511
|
}
|
|
3645
3512
|
}
|
|
3646
3513
|
}
|
|
@@ -3664,8 +3531,6 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3664
3531
|
for (const key of Reflect.ownKeys(input)) {
|
|
3665
3532
|
if (key === "__proto__")
|
|
3666
3533
|
continue;
|
|
3667
|
-
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3668
|
-
continue;
|
|
3669
3534
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3670
3535
|
if (keyResult instanceof Promise) {
|
|
3671
3536
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3870,7 +3735,6 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
3870
3735
|
});
|
|
3871
3736
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
3872
3737
|
$ZodType.init(inst, def);
|
|
3873
|
-
inst._zod.optin = "optional";
|
|
3874
3738
|
inst._zod.parse = (payload, ctx) => {
|
|
3875
3739
|
if (ctx.direction === "backward") {
|
|
3876
3740
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -3880,7 +3744,6 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3880
3744
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
3881
3745
|
return output.then((output2) => {
|
|
3882
3746
|
payload.value = output2;
|
|
3883
|
-
payload.fallback = true;
|
|
3884
3747
|
return payload;
|
|
3885
3748
|
});
|
|
3886
3749
|
}
|
|
@@ -3888,12 +3751,11 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3888
3751
|
throw new $ZodAsyncError();
|
|
3889
3752
|
}
|
|
3890
3753
|
payload.value = _out;
|
|
3891
|
-
payload.fallback = true;
|
|
3892
3754
|
return payload;
|
|
3893
3755
|
};
|
|
3894
3756
|
});
|
|
3895
3757
|
function handleOptionalResult(result, input) {
|
|
3896
|
-
if (input === void 0
|
|
3758
|
+
if (result.issues.length && input === void 0) {
|
|
3897
3759
|
return { issues: [], value: void 0 };
|
|
3898
3760
|
}
|
|
3899
3761
|
return result;
|
|
@@ -3911,11 +3773,10 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
3911
3773
|
});
|
|
3912
3774
|
inst._zod.parse = (payload, ctx) => {
|
|
3913
3775
|
if (def.innerType._zod.optin === "optional") {
|
|
3914
|
-
const input = payload.value;
|
|
3915
3776
|
const result = def.innerType._zod.run(payload, ctx);
|
|
3916
3777
|
if (result instanceof Promise)
|
|
3917
|
-
return result.then((r) => handleOptionalResult(r,
|
|
3918
|
-
return handleOptionalResult(result,
|
|
3778
|
+
return result.then((r) => handleOptionalResult(r, payload.value));
|
|
3779
|
+
return handleOptionalResult(result, payload.value);
|
|
3919
3780
|
}
|
|
3920
3781
|
if (payload.value === void 0) {
|
|
3921
3782
|
return payload;
|
|
@@ -4031,7 +3892,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
4031
3892
|
});
|
|
4032
3893
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
4033
3894
|
$ZodType.init(inst, def);
|
|
4034
|
-
inst._zod
|
|
3895
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
4035
3896
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
4036
3897
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4037
3898
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -4051,7 +3912,6 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4051
3912
|
input: payload.value
|
|
4052
3913
|
});
|
|
4053
3914
|
payload.issues = [];
|
|
4054
|
-
payload.fallback = true;
|
|
4055
3915
|
}
|
|
4056
3916
|
return payload;
|
|
4057
3917
|
});
|
|
@@ -4066,7 +3926,6 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4066
3926
|
input: payload.value
|
|
4067
3927
|
});
|
|
4068
3928
|
payload.issues = [];
|
|
4069
|
-
payload.fallback = true;
|
|
4070
3929
|
}
|
|
4071
3930
|
return payload;
|
|
4072
3931
|
};
|
|
@@ -4112,7 +3971,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
4112
3971
|
left.aborted = true;
|
|
4113
3972
|
return left;
|
|
4114
3973
|
}
|
|
4115
|
-
return next._zod.run({ value: left.value, issues: left.issues
|
|
3974
|
+
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4116
3975
|
}
|
|
4117
3976
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4118
3977
|
$ZodType.init(inst, def);
|
|
@@ -4164,9 +4023,6 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4164
4023
|
}
|
|
4165
4024
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4166
4025
|
}
|
|
4167
|
-
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4168
|
-
$ZodPipe.init(inst, def);
|
|
4169
|
-
});
|
|
4170
4026
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4171
4027
|
$ZodType.init(inst, def);
|
|
4172
4028
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4318,12 +4174,7 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4318
4174
|
});
|
|
4319
4175
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4320
4176
|
$ZodType.init(inst, def);
|
|
4321
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4322
|
-
const d = def;
|
|
4323
|
-
if (!d._cachedInner)
|
|
4324
|
-
d._cachedInner = def.getter();
|
|
4325
|
-
return d._cachedInner;
|
|
4326
|
-
});
|
|
4177
|
+
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
4327
4178
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4328
4179
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4329
4180
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4378,7 +4229,6 @@ __export(locales_exports, {
|
|
|
4378
4229
|
cs: () => cs_default,
|
|
4379
4230
|
da: () => da_default,
|
|
4380
4231
|
de: () => de_default,
|
|
4381
|
-
el: () => el_default,
|
|
4382
4232
|
en: () => en_default,
|
|
4383
4233
|
eo: () => eo_default,
|
|
4384
4234
|
es: () => es_default,
|
|
@@ -4387,7 +4237,6 @@ __export(locales_exports, {
|
|
|
4387
4237
|
fr: () => fr_default,
|
|
4388
4238
|
frCA: () => fr_CA_default,
|
|
4389
4239
|
he: () => he_default,
|
|
4390
|
-
hr: () => hr_default,
|
|
4391
4240
|
hu: () => hu_default,
|
|
4392
4241
|
hy: () => hy_default,
|
|
4393
4242
|
id: () => id_default,
|
|
@@ -4407,7 +4256,6 @@ __export(locales_exports, {
|
|
|
4407
4256
|
pl: () => pl_default,
|
|
4408
4257
|
ps: () => ps_default,
|
|
4409
4258
|
pt: () => pt_default,
|
|
4410
|
-
ro: () => ro_default,
|
|
4411
4259
|
ru: () => ru_default,
|
|
4412
4260
|
sl: () => sl_default,
|
|
4413
4261
|
sv: () => sv_default,
|
|
@@ -5361,118 +5209,8 @@ function de_default() {
|
|
|
5361
5209
|
};
|
|
5362
5210
|
}
|
|
5363
5211
|
|
|
5364
|
-
// node_modules/zod/v4/locales/el.js
|
|
5365
|
-
var error9 = () => {
|
|
5366
|
-
const Sizable = {
|
|
5367
|
-
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5368
|
-
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5369
|
-
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5370
|
-
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5371
|
-
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5372
|
-
};
|
|
5373
|
-
function getSizing(origin) {
|
|
5374
|
-
return Sizable[origin] ?? null;
|
|
5375
|
-
}
|
|
5376
|
-
const FormatDictionary = {
|
|
5377
|
-
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5378
|
-
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5379
|
-
url: "URL",
|
|
5380
|
-
emoji: "emoji",
|
|
5381
|
-
uuid: "UUID",
|
|
5382
|
-
uuidv4: "UUIDv4",
|
|
5383
|
-
uuidv6: "UUIDv6",
|
|
5384
|
-
nanoid: "nanoid",
|
|
5385
|
-
guid: "GUID",
|
|
5386
|
-
cuid: "cuid",
|
|
5387
|
-
cuid2: "cuid2",
|
|
5388
|
-
ulid: "ULID",
|
|
5389
|
-
xid: "XID",
|
|
5390
|
-
ksuid: "KSUID",
|
|
5391
|
-
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5392
|
-
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5393
|
-
time: "ISO \u03CE\u03C1\u03B1",
|
|
5394
|
-
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5395
|
-
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5396
|
-
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5397
|
-
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5398
|
-
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5399
|
-
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5400
|
-
base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
|
|
5401
|
-
base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
|
|
5402
|
-
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5403
|
-
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5404
|
-
jwt: "JWT",
|
|
5405
|
-
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5406
|
-
};
|
|
5407
|
-
const TypeDictionary = {
|
|
5408
|
-
nan: "NaN"
|
|
5409
|
-
};
|
|
5410
|
-
return (issue2) => {
|
|
5411
|
-
switch (issue2.code) {
|
|
5412
|
-
case "invalid_type": {
|
|
5413
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5414
|
-
const receivedType = parsedType(issue2.input);
|
|
5415
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5416
|
-
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5417
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5418
|
-
}
|
|
5419
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5420
|
-
}
|
|
5421
|
-
case "invalid_value":
|
|
5422
|
-
if (issue2.values.length === 1)
|
|
5423
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
|
|
5424
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
|
|
5425
|
-
case "too_big": {
|
|
5426
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
5427
|
-
const sizing = getSizing(issue2.origin);
|
|
5428
|
-
if (sizing)
|
|
5429
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
|
|
5430
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
|
|
5431
|
-
}
|
|
5432
|
-
case "too_small": {
|
|
5433
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
5434
|
-
const sizing = getSizing(issue2.origin);
|
|
5435
|
-
if (sizing) {
|
|
5436
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5437
|
-
}
|
|
5438
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
|
|
5439
|
-
}
|
|
5440
|
-
case "invalid_format": {
|
|
5441
|
-
const _issue = issue2;
|
|
5442
|
-
if (_issue.format === "starts_with") {
|
|
5443
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
|
|
5444
|
-
}
|
|
5445
|
-
if (_issue.format === "ends_with")
|
|
5446
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
|
|
5447
|
-
if (_issue.format === "includes")
|
|
5448
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
|
|
5449
|
-
if (_issue.format === "regex")
|
|
5450
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
|
|
5451
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5452
|
-
}
|
|
5453
|
-
case "not_multiple_of":
|
|
5454
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
|
|
5455
|
-
case "unrecognized_keys":
|
|
5456
|
-
return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
|
|
5457
|
-
case "invalid_key":
|
|
5458
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5459
|
-
case "invalid_union":
|
|
5460
|
-
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5461
|
-
case "invalid_element":
|
|
5462
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5463
|
-
default:
|
|
5464
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5465
|
-
}
|
|
5466
|
-
};
|
|
5467
|
-
};
|
|
5468
|
-
function el_default() {
|
|
5469
|
-
return {
|
|
5470
|
-
localeError: error9()
|
|
5471
|
-
};
|
|
5472
|
-
}
|
|
5473
|
-
|
|
5474
5212
|
// node_modules/zod/v4/locales/en.js
|
|
5475
|
-
var
|
|
5213
|
+
var error9 = () => {
|
|
5476
5214
|
const Sizable = {
|
|
5477
5215
|
string: { unit: "characters", verb: "to have" },
|
|
5478
5216
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5566,10 +5304,6 @@ var error10 = () => {
|
|
|
5566
5304
|
case "invalid_key":
|
|
5567
5305
|
return `Invalid key in ${issue2.origin}`;
|
|
5568
5306
|
case "invalid_union":
|
|
5569
|
-
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5570
|
-
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5571
|
-
return `Invalid discriminator value. Expected ${opts}`;
|
|
5572
|
-
}
|
|
5573
5307
|
return "Invalid input";
|
|
5574
5308
|
case "invalid_element":
|
|
5575
5309
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5580,12 +5314,12 @@ var error10 = () => {
|
|
|
5580
5314
|
};
|
|
5581
5315
|
function en_default() {
|
|
5582
5316
|
return {
|
|
5583
|
-
localeError:
|
|
5317
|
+
localeError: error9()
|
|
5584
5318
|
};
|
|
5585
5319
|
}
|
|
5586
5320
|
|
|
5587
5321
|
// node_modules/zod/v4/locales/eo.js
|
|
5588
|
-
var
|
|
5322
|
+
var error10 = () => {
|
|
5589
5323
|
const Sizable = {
|
|
5590
5324
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5591
5325
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5690,12 +5424,12 @@ var error11 = () => {
|
|
|
5690
5424
|
};
|
|
5691
5425
|
function eo_default() {
|
|
5692
5426
|
return {
|
|
5693
|
-
localeError:
|
|
5427
|
+
localeError: error10()
|
|
5694
5428
|
};
|
|
5695
5429
|
}
|
|
5696
5430
|
|
|
5697
5431
|
// node_modules/zod/v4/locales/es.js
|
|
5698
|
-
var
|
|
5432
|
+
var error11 = () => {
|
|
5699
5433
|
const Sizable = {
|
|
5700
5434
|
string: { unit: "caracteres", verb: "tener" },
|
|
5701
5435
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5823,12 +5557,12 @@ var error12 = () => {
|
|
|
5823
5557
|
};
|
|
5824
5558
|
function es_default() {
|
|
5825
5559
|
return {
|
|
5826
|
-
localeError:
|
|
5560
|
+
localeError: error11()
|
|
5827
5561
|
};
|
|
5828
5562
|
}
|
|
5829
5563
|
|
|
5830
5564
|
// node_modules/zod/v4/locales/fa.js
|
|
5831
|
-
var
|
|
5565
|
+
var error12 = () => {
|
|
5832
5566
|
const Sizable = {
|
|
5833
5567
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5834
5568
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5938,12 +5672,12 @@ var error13 = () => {
|
|
|
5938
5672
|
};
|
|
5939
5673
|
function fa_default() {
|
|
5940
5674
|
return {
|
|
5941
|
-
localeError:
|
|
5675
|
+
localeError: error12()
|
|
5942
5676
|
};
|
|
5943
5677
|
}
|
|
5944
5678
|
|
|
5945
5679
|
// node_modules/zod/v4/locales/fi.js
|
|
5946
|
-
var
|
|
5680
|
+
var error13 = () => {
|
|
5947
5681
|
const Sizable = {
|
|
5948
5682
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
5949
5683
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -6051,12 +5785,12 @@ var error14 = () => {
|
|
|
6051
5785
|
};
|
|
6052
5786
|
function fi_default() {
|
|
6053
5787
|
return {
|
|
6054
|
-
localeError:
|
|
5788
|
+
localeError: error13()
|
|
6055
5789
|
};
|
|
6056
5790
|
}
|
|
6057
5791
|
|
|
6058
5792
|
// node_modules/zod/v4/locales/fr.js
|
|
6059
|
-
var
|
|
5793
|
+
var error14 = () => {
|
|
6060
5794
|
const Sizable = {
|
|
6061
5795
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6062
5796
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6097,27 +5831,9 @@ var error15 = () => {
|
|
|
6097
5831
|
template_literal: "entr\xE9e"
|
|
6098
5832
|
};
|
|
6099
5833
|
const TypeDictionary = {
|
|
6100
|
-
string: "cha\xEEne",
|
|
6101
|
-
number: "nombre",
|
|
6102
|
-
int: "entier",
|
|
6103
|
-
boolean: "bool\xE9en",
|
|
6104
|
-
bigint: "grand entier",
|
|
6105
|
-
symbol: "symbole",
|
|
6106
|
-
undefined: "ind\xE9fini",
|
|
6107
|
-
null: "null",
|
|
6108
|
-
never: "jamais",
|
|
6109
|
-
void: "vide",
|
|
6110
|
-
date: "date",
|
|
6111
|
-
array: "tableau",
|
|
6112
|
-
object: "objet",
|
|
6113
|
-
tuple: "tuple",
|
|
6114
|
-
record: "enregistrement",
|
|
6115
|
-
map: "carte",
|
|
6116
|
-
set: "ensemble",
|
|
6117
|
-
file: "fichier",
|
|
6118
|
-
nonoptional: "non-optionnel",
|
|
6119
5834
|
nan: "NaN",
|
|
6120
|
-
|
|
5835
|
+
number: "nombre",
|
|
5836
|
+
array: "tableau"
|
|
6121
5837
|
};
|
|
6122
5838
|
return (issue2) => {
|
|
6123
5839
|
switch (issue2.code) {
|
|
@@ -6138,15 +5854,16 @@ var error15 = () => {
|
|
|
6138
5854
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6139
5855
|
const sizing = getSizing(issue2.origin);
|
|
6140
5856
|
if (sizing)
|
|
6141
|
-
return `Trop grand : ${
|
|
6142
|
-
return `Trop grand : ${
|
|
5857
|
+
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
5858
|
+
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6143
5859
|
}
|
|
6144
5860
|
case "too_small": {
|
|
6145
5861
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6146
5862
|
const sizing = getSizing(issue2.origin);
|
|
6147
|
-
if (sizing)
|
|
6148
|
-
return `Trop petit : ${
|
|
6149
|
-
|
|
5863
|
+
if (sizing) {
|
|
5864
|
+
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5865
|
+
}
|
|
5866
|
+
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6150
5867
|
}
|
|
6151
5868
|
case "invalid_format": {
|
|
6152
5869
|
const _issue = issue2;
|
|
@@ -6177,12 +5894,12 @@ var error15 = () => {
|
|
|
6177
5894
|
};
|
|
6178
5895
|
function fr_default() {
|
|
6179
5896
|
return {
|
|
6180
|
-
localeError:
|
|
5897
|
+
localeError: error14()
|
|
6181
5898
|
};
|
|
6182
5899
|
}
|
|
6183
5900
|
|
|
6184
5901
|
// node_modules/zod/v4/locales/fr-CA.js
|
|
6185
|
-
var
|
|
5902
|
+
var error15 = () => {
|
|
6186
5903
|
const Sizable = {
|
|
6187
5904
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6188
5905
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6285,12 +6002,12 @@ var error16 = () => {
|
|
|
6285
6002
|
};
|
|
6286
6003
|
function fr_CA_default() {
|
|
6287
6004
|
return {
|
|
6288
|
-
localeError:
|
|
6005
|
+
localeError: error15()
|
|
6289
6006
|
};
|
|
6290
6007
|
}
|
|
6291
6008
|
|
|
6292
6009
|
// node_modules/zod/v4/locales/he.js
|
|
6293
|
-
var
|
|
6010
|
+
var error16 = () => {
|
|
6294
6011
|
const TypeNames = {
|
|
6295
6012
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6296
6013
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6480,24 +6197,24 @@ var error17 = () => {
|
|
|
6480
6197
|
};
|
|
6481
6198
|
function he_default() {
|
|
6482
6199
|
return {
|
|
6483
|
-
localeError:
|
|
6200
|
+
localeError: error16()
|
|
6484
6201
|
};
|
|
6485
6202
|
}
|
|
6486
6203
|
|
|
6487
|
-
// node_modules/zod/v4/locales/
|
|
6488
|
-
var
|
|
6204
|
+
// node_modules/zod/v4/locales/hu.js
|
|
6205
|
+
var error17 = () => {
|
|
6489
6206
|
const Sizable = {
|
|
6490
|
-
string: { unit: "
|
|
6491
|
-
file: { unit: "
|
|
6492
|
-
array: { unit: "
|
|
6493
|
-
set: { unit: "
|
|
6207
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
6208
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6209
|
+
array: { unit: "elem", verb: "legyen" },
|
|
6210
|
+
set: { unit: "elem", verb: "legyen" }
|
|
6494
6211
|
};
|
|
6495
6212
|
function getSizing(origin) {
|
|
6496
6213
|
return Sizable[origin] ?? null;
|
|
6497
6214
|
}
|
|
6498
6215
|
const FormatDictionary = {
|
|
6499
|
-
regex: "
|
|
6500
|
-
email: "email
|
|
6216
|
+
regex: "bemenet",
|
|
6217
|
+
email: "email c\xEDm",
|
|
6501
6218
|
url: "URL",
|
|
6502
6219
|
emoji: "emoji",
|
|
6503
6220
|
uuid: "UUID",
|
|
@@ -6510,37 +6227,25 @@ var error18 = () => {
|
|
|
6510
6227
|
ulid: "ULID",
|
|
6511
6228
|
xid: "XID",
|
|
6512
6229
|
ksuid: "KSUID",
|
|
6513
|
-
datetime: "ISO
|
|
6514
|
-
date: "ISO
|
|
6515
|
-
time: "ISO
|
|
6516
|
-
duration: "ISO
|
|
6517
|
-
ipv4: "IPv4
|
|
6518
|
-
ipv6: "IPv6
|
|
6519
|
-
cidrv4: "IPv4
|
|
6520
|
-
cidrv6: "IPv6
|
|
6521
|
-
base64: "base64
|
|
6522
|
-
base64url: "base64url
|
|
6523
|
-
json_string: "JSON
|
|
6524
|
-
e164: "E.164
|
|
6230
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
6231
|
+
date: "ISO d\xE1tum",
|
|
6232
|
+
time: "ISO id\u0151",
|
|
6233
|
+
duration: "ISO id\u0151intervallum",
|
|
6234
|
+
ipv4: "IPv4 c\xEDm",
|
|
6235
|
+
ipv6: "IPv6 c\xEDm",
|
|
6236
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
6237
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
6238
|
+
base64: "base64-k\xF3dolt string",
|
|
6239
|
+
base64url: "base64url-k\xF3dolt string",
|
|
6240
|
+
json_string: "JSON string",
|
|
6241
|
+
e164: "E.164 sz\xE1m",
|
|
6525
6242
|
jwt: "JWT",
|
|
6526
|
-
template_literal: "
|
|
6243
|
+
template_literal: "bemenet"
|
|
6527
6244
|
};
|
|
6528
6245
|
const TypeDictionary = {
|
|
6529
6246
|
nan: "NaN",
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
boolean: "boolean",
|
|
6533
|
-
array: "niz",
|
|
6534
|
-
object: "objekt",
|
|
6535
|
-
set: "skup",
|
|
6536
|
-
file: "datoteka",
|
|
6537
|
-
date: "datum",
|
|
6538
|
-
bigint: "bigint",
|
|
6539
|
-
symbol: "simbol",
|
|
6540
|
-
undefined: "undefined",
|
|
6541
|
-
null: "null",
|
|
6542
|
-
function: "funkcija",
|
|
6543
|
-
map: "mapa"
|
|
6247
|
+
number: "sz\xE1m",
|
|
6248
|
+
array: "t\xF6mb"
|
|
6544
6249
|
};
|
|
6545
6250
|
return (issue2) => {
|
|
6546
6251
|
switch (issue2.code) {
|
|
@@ -6549,137 +6254,26 @@ var error18 = () => {
|
|
|
6549
6254
|
const receivedType = parsedType(issue2.input);
|
|
6550
6255
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6551
6256
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6552
|
-
return
|
|
6257
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6553
6258
|
}
|
|
6554
|
-
return
|
|
6259
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6555
6260
|
}
|
|
6556
6261
|
case "invalid_value":
|
|
6557
6262
|
if (issue2.values.length === 1)
|
|
6558
|
-
return
|
|
6559
|
-
return
|
|
6263
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
6264
|
+
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
6560
6265
|
case "too_big": {
|
|
6561
6266
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6562
6267
|
const sizing = getSizing(issue2.origin);
|
|
6563
|
-
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6564
6268
|
if (sizing)
|
|
6565
|
-
return `
|
|
6566
|
-
return `
|
|
6269
|
+
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
6270
|
+
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
6567
6271
|
}
|
|
6568
6272
|
case "too_small": {
|
|
6569
6273
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6570
6274
|
const sizing = getSizing(issue2.origin);
|
|
6571
|
-
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6572
6275
|
if (sizing) {
|
|
6573
|
-
return `
|
|
6574
|
-
}
|
|
6575
|
-
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6576
|
-
}
|
|
6577
|
-
case "invalid_format": {
|
|
6578
|
-
const _issue = issue2;
|
|
6579
|
-
if (_issue.format === "starts_with")
|
|
6580
|
-
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6581
|
-
if (_issue.format === "ends_with")
|
|
6582
|
-
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6583
|
-
if (_issue.format === "includes")
|
|
6584
|
-
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6585
|
-
if (_issue.format === "regex")
|
|
6586
|
-
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6587
|
-
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6588
|
-
}
|
|
6589
|
-
case "not_multiple_of":
|
|
6590
|
-
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6591
|
-
case "unrecognized_keys":
|
|
6592
|
-
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6593
|
-
case "invalid_key":
|
|
6594
|
-
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6595
|
-
case "invalid_union":
|
|
6596
|
-
return "Neispravan unos";
|
|
6597
|
-
case "invalid_element":
|
|
6598
|
-
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6599
|
-
default:
|
|
6600
|
-
return `Neispravan unos`;
|
|
6601
|
-
}
|
|
6602
|
-
};
|
|
6603
|
-
};
|
|
6604
|
-
function hr_default() {
|
|
6605
|
-
return {
|
|
6606
|
-
localeError: error18()
|
|
6607
|
-
};
|
|
6608
|
-
}
|
|
6609
|
-
|
|
6610
|
-
// node_modules/zod/v4/locales/hu.js
|
|
6611
|
-
var error19 = () => {
|
|
6612
|
-
const Sizable = {
|
|
6613
|
-
string: { unit: "karakter", verb: "legyen" },
|
|
6614
|
-
file: { unit: "byte", verb: "legyen" },
|
|
6615
|
-
array: { unit: "elem", verb: "legyen" },
|
|
6616
|
-
set: { unit: "elem", verb: "legyen" }
|
|
6617
|
-
};
|
|
6618
|
-
function getSizing(origin) {
|
|
6619
|
-
return Sizable[origin] ?? null;
|
|
6620
|
-
}
|
|
6621
|
-
const FormatDictionary = {
|
|
6622
|
-
regex: "bemenet",
|
|
6623
|
-
email: "email c\xEDm",
|
|
6624
|
-
url: "URL",
|
|
6625
|
-
emoji: "emoji",
|
|
6626
|
-
uuid: "UUID",
|
|
6627
|
-
uuidv4: "UUIDv4",
|
|
6628
|
-
uuidv6: "UUIDv6",
|
|
6629
|
-
nanoid: "nanoid",
|
|
6630
|
-
guid: "GUID",
|
|
6631
|
-
cuid: "cuid",
|
|
6632
|
-
cuid2: "cuid2",
|
|
6633
|
-
ulid: "ULID",
|
|
6634
|
-
xid: "XID",
|
|
6635
|
-
ksuid: "KSUID",
|
|
6636
|
-
datetime: "ISO id\u0151b\xE9lyeg",
|
|
6637
|
-
date: "ISO d\xE1tum",
|
|
6638
|
-
time: "ISO id\u0151",
|
|
6639
|
-
duration: "ISO id\u0151intervallum",
|
|
6640
|
-
ipv4: "IPv4 c\xEDm",
|
|
6641
|
-
ipv6: "IPv6 c\xEDm",
|
|
6642
|
-
cidrv4: "IPv4 tartom\xE1ny",
|
|
6643
|
-
cidrv6: "IPv6 tartom\xE1ny",
|
|
6644
|
-
base64: "base64-k\xF3dolt string",
|
|
6645
|
-
base64url: "base64url-k\xF3dolt string",
|
|
6646
|
-
json_string: "JSON string",
|
|
6647
|
-
e164: "E.164 sz\xE1m",
|
|
6648
|
-
jwt: "JWT",
|
|
6649
|
-
template_literal: "bemenet"
|
|
6650
|
-
};
|
|
6651
|
-
const TypeDictionary = {
|
|
6652
|
-
nan: "NaN",
|
|
6653
|
-
number: "sz\xE1m",
|
|
6654
|
-
array: "t\xF6mb"
|
|
6655
|
-
};
|
|
6656
|
-
return (issue2) => {
|
|
6657
|
-
switch (issue2.code) {
|
|
6658
|
-
case "invalid_type": {
|
|
6659
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6660
|
-
const receivedType = parsedType(issue2.input);
|
|
6661
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6662
|
-
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6663
|
-
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6664
|
-
}
|
|
6665
|
-
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6666
|
-
}
|
|
6667
|
-
case "invalid_value":
|
|
6668
|
-
if (issue2.values.length === 1)
|
|
6669
|
-
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
6670
|
-
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
6671
|
-
case "too_big": {
|
|
6672
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
6673
|
-
const sizing = getSizing(issue2.origin);
|
|
6674
|
-
if (sizing)
|
|
6675
|
-
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
6676
|
-
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
6677
|
-
}
|
|
6678
|
-
case "too_small": {
|
|
6679
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
6680
|
-
const sizing = getSizing(issue2.origin);
|
|
6681
|
-
if (sizing) {
|
|
6682
|
-
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6276
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6683
6277
|
}
|
|
6684
6278
|
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
|
|
6685
6279
|
}
|
|
@@ -6712,7 +6306,7 @@ var error19 = () => {
|
|
|
6712
6306
|
};
|
|
6713
6307
|
function hu_default() {
|
|
6714
6308
|
return {
|
|
6715
|
-
localeError:
|
|
6309
|
+
localeError: error17()
|
|
6716
6310
|
};
|
|
6717
6311
|
}
|
|
6718
6312
|
|
|
@@ -6727,7 +6321,7 @@ function withDefiniteArticle(word) {
|
|
|
6727
6321
|
const lastChar = word[word.length - 1];
|
|
6728
6322
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6729
6323
|
}
|
|
6730
|
-
var
|
|
6324
|
+
var error18 = () => {
|
|
6731
6325
|
const Sizable = {
|
|
6732
6326
|
string: {
|
|
6733
6327
|
unit: {
|
|
@@ -6860,12 +6454,12 @@ var error20 = () => {
|
|
|
6860
6454
|
};
|
|
6861
6455
|
function hy_default() {
|
|
6862
6456
|
return {
|
|
6863
|
-
localeError:
|
|
6457
|
+
localeError: error18()
|
|
6864
6458
|
};
|
|
6865
6459
|
}
|
|
6866
6460
|
|
|
6867
6461
|
// node_modules/zod/v4/locales/id.js
|
|
6868
|
-
var
|
|
6462
|
+
var error19 = () => {
|
|
6869
6463
|
const Sizable = {
|
|
6870
6464
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6871
6465
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6967,12 +6561,12 @@ var error21 = () => {
|
|
|
6967
6561
|
};
|
|
6968
6562
|
function id_default() {
|
|
6969
6563
|
return {
|
|
6970
|
-
localeError:
|
|
6564
|
+
localeError: error19()
|
|
6971
6565
|
};
|
|
6972
6566
|
}
|
|
6973
6567
|
|
|
6974
6568
|
// node_modules/zod/v4/locales/is.js
|
|
6975
|
-
var
|
|
6569
|
+
var error20 = () => {
|
|
6976
6570
|
const Sizable = {
|
|
6977
6571
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6978
6572
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -7077,12 +6671,12 @@ var error22 = () => {
|
|
|
7077
6671
|
};
|
|
7078
6672
|
function is_default() {
|
|
7079
6673
|
return {
|
|
7080
|
-
localeError:
|
|
6674
|
+
localeError: error20()
|
|
7081
6675
|
};
|
|
7082
6676
|
}
|
|
7083
6677
|
|
|
7084
6678
|
// node_modules/zod/v4/locales/it.js
|
|
7085
|
-
var
|
|
6679
|
+
var error21 = () => {
|
|
7086
6680
|
const Sizable = {
|
|
7087
6681
|
string: { unit: "caratteri", verb: "avere" },
|
|
7088
6682
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -7167,7 +6761,7 @@ var error23 = () => {
|
|
|
7167
6761
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
7168
6762
|
if (_issue.format === "regex")
|
|
7169
6763
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
7170
|
-
return `
|
|
6764
|
+
return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7171
6765
|
}
|
|
7172
6766
|
case "not_multiple_of":
|
|
7173
6767
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -7186,12 +6780,12 @@ var error23 = () => {
|
|
|
7186
6780
|
};
|
|
7187
6781
|
function it_default() {
|
|
7188
6782
|
return {
|
|
7189
|
-
localeError:
|
|
6783
|
+
localeError: error21()
|
|
7190
6784
|
};
|
|
7191
6785
|
}
|
|
7192
6786
|
|
|
7193
6787
|
// node_modules/zod/v4/locales/ja.js
|
|
7194
|
-
var
|
|
6788
|
+
var error22 = () => {
|
|
7195
6789
|
const Sizable = {
|
|
7196
6790
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
7197
6791
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -7294,12 +6888,12 @@ var error24 = () => {
|
|
|
7294
6888
|
};
|
|
7295
6889
|
function ja_default() {
|
|
7296
6890
|
return {
|
|
7297
|
-
localeError:
|
|
6891
|
+
localeError: error22()
|
|
7298
6892
|
};
|
|
7299
6893
|
}
|
|
7300
6894
|
|
|
7301
6895
|
// node_modules/zod/v4/locales/ka.js
|
|
7302
|
-
var
|
|
6896
|
+
var error23 = () => {
|
|
7303
6897
|
const Sizable = {
|
|
7304
6898
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
7305
6899
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7332,9 +6926,9 @@ var error25 = () => {
|
|
|
7332
6926
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
7333
6927
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7334
6928
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7335
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7336
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7337
|
-
json_string: "JSON \
|
|
6929
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
6930
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
6931
|
+
json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
7338
6932
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
7339
6933
|
jwt: "JWT",
|
|
7340
6934
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -7342,7 +6936,7 @@ var error25 = () => {
|
|
|
7342
6936
|
const TypeDictionary = {
|
|
7343
6937
|
nan: "NaN",
|
|
7344
6938
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
7345
|
-
string: "\
|
|
6939
|
+
string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
7346
6940
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
7347
6941
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
7348
6942
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -7380,14 +6974,14 @@ var error25 = () => {
|
|
|
7380
6974
|
case "invalid_format": {
|
|
7381
6975
|
const _issue = issue2;
|
|
7382
6976
|
if (_issue.format === "starts_with") {
|
|
7383
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6977
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
7384
6978
|
}
|
|
7385
6979
|
if (_issue.format === "ends_with")
|
|
7386
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6980
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
7387
6981
|
if (_issue.format === "includes")
|
|
7388
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6982
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
7389
6983
|
if (_issue.format === "regex")
|
|
7390
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6984
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
|
|
7391
6985
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7392
6986
|
}
|
|
7393
6987
|
case "not_multiple_of":
|
|
@@ -7407,12 +7001,12 @@ var error25 = () => {
|
|
|
7407
7001
|
};
|
|
7408
7002
|
function ka_default() {
|
|
7409
7003
|
return {
|
|
7410
|
-
localeError:
|
|
7004
|
+
localeError: error23()
|
|
7411
7005
|
};
|
|
7412
7006
|
}
|
|
7413
7007
|
|
|
7414
7008
|
// node_modules/zod/v4/locales/km.js
|
|
7415
|
-
var
|
|
7009
|
+
var error24 = () => {
|
|
7416
7010
|
const Sizable = {
|
|
7417
7011
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7418
7012
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7518,7 +7112,7 @@ var error26 = () => {
|
|
|
7518
7112
|
};
|
|
7519
7113
|
function km_default() {
|
|
7520
7114
|
return {
|
|
7521
|
-
localeError:
|
|
7115
|
+
localeError: error24()
|
|
7522
7116
|
};
|
|
7523
7117
|
}
|
|
7524
7118
|
|
|
@@ -7528,7 +7122,7 @@ function kh_default() {
|
|
|
7528
7122
|
}
|
|
7529
7123
|
|
|
7530
7124
|
// node_modules/zod/v4/locales/ko.js
|
|
7531
|
-
var
|
|
7125
|
+
var error25 = () => {
|
|
7532
7126
|
const Sizable = {
|
|
7533
7127
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7534
7128
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7635,7 +7229,7 @@ var error27 = () => {
|
|
|
7635
7229
|
};
|
|
7636
7230
|
function ko_default() {
|
|
7637
7231
|
return {
|
|
7638
|
-
localeError:
|
|
7232
|
+
localeError: error25()
|
|
7639
7233
|
};
|
|
7640
7234
|
}
|
|
7641
7235
|
|
|
@@ -7653,7 +7247,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
7653
7247
|
return "one";
|
|
7654
7248
|
return "few";
|
|
7655
7249
|
}
|
|
7656
|
-
var
|
|
7250
|
+
var error26 = () => {
|
|
7657
7251
|
const Sizable = {
|
|
7658
7252
|
string: {
|
|
7659
7253
|
unit: {
|
|
@@ -7839,12 +7433,12 @@ var error28 = () => {
|
|
|
7839
7433
|
};
|
|
7840
7434
|
function lt_default() {
|
|
7841
7435
|
return {
|
|
7842
|
-
localeError:
|
|
7436
|
+
localeError: error26()
|
|
7843
7437
|
};
|
|
7844
7438
|
}
|
|
7845
7439
|
|
|
7846
7440
|
// node_modules/zod/v4/locales/mk.js
|
|
7847
|
-
var
|
|
7441
|
+
var error27 = () => {
|
|
7848
7442
|
const Sizable = {
|
|
7849
7443
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7850
7444
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7949,12 +7543,12 @@ var error29 = () => {
|
|
|
7949
7543
|
};
|
|
7950
7544
|
function mk_default() {
|
|
7951
7545
|
return {
|
|
7952
|
-
localeError:
|
|
7546
|
+
localeError: error27()
|
|
7953
7547
|
};
|
|
7954
7548
|
}
|
|
7955
7549
|
|
|
7956
7550
|
// node_modules/zod/v4/locales/ms.js
|
|
7957
|
-
var
|
|
7551
|
+
var error28 = () => {
|
|
7958
7552
|
const Sizable = {
|
|
7959
7553
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7960
7554
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -8057,12 +7651,12 @@ var error30 = () => {
|
|
|
8057
7651
|
};
|
|
8058
7652
|
function ms_default() {
|
|
8059
7653
|
return {
|
|
8060
|
-
localeError:
|
|
7654
|
+
localeError: error28()
|
|
8061
7655
|
};
|
|
8062
7656
|
}
|
|
8063
7657
|
|
|
8064
7658
|
// node_modules/zod/v4/locales/nl.js
|
|
8065
|
-
var
|
|
7659
|
+
var error29 = () => {
|
|
8066
7660
|
const Sizable = {
|
|
8067
7661
|
string: { unit: "tekens", verb: "heeft" },
|
|
8068
7662
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -8168,12 +7762,12 @@ var error31 = () => {
|
|
|
8168
7762
|
};
|
|
8169
7763
|
function nl_default() {
|
|
8170
7764
|
return {
|
|
8171
|
-
localeError:
|
|
7765
|
+
localeError: error29()
|
|
8172
7766
|
};
|
|
8173
7767
|
}
|
|
8174
7768
|
|
|
8175
7769
|
// node_modules/zod/v4/locales/no.js
|
|
8176
|
-
var
|
|
7770
|
+
var error30 = () => {
|
|
8177
7771
|
const Sizable = {
|
|
8178
7772
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
8179
7773
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -8277,12 +7871,12 @@ var error32 = () => {
|
|
|
8277
7871
|
};
|
|
8278
7872
|
function no_default() {
|
|
8279
7873
|
return {
|
|
8280
|
-
localeError:
|
|
7874
|
+
localeError: error30()
|
|
8281
7875
|
};
|
|
8282
7876
|
}
|
|
8283
7877
|
|
|
8284
7878
|
// node_modules/zod/v4/locales/ota.js
|
|
8285
|
-
var
|
|
7879
|
+
var error31 = () => {
|
|
8286
7880
|
const Sizable = {
|
|
8287
7881
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
8288
7882
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8387,12 +7981,12 @@ var error33 = () => {
|
|
|
8387
7981
|
};
|
|
8388
7982
|
function ota_default() {
|
|
8389
7983
|
return {
|
|
8390
|
-
localeError:
|
|
7984
|
+
localeError: error31()
|
|
8391
7985
|
};
|
|
8392
7986
|
}
|
|
8393
7987
|
|
|
8394
7988
|
// node_modules/zod/v4/locales/ps.js
|
|
8395
|
-
var
|
|
7989
|
+
var error32 = () => {
|
|
8396
7990
|
const Sizable = {
|
|
8397
7991
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
8398
7992
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8502,12 +8096,12 @@ var error34 = () => {
|
|
|
8502
8096
|
};
|
|
8503
8097
|
function ps_default() {
|
|
8504
8098
|
return {
|
|
8505
|
-
localeError:
|
|
8099
|
+
localeError: error32()
|
|
8506
8100
|
};
|
|
8507
8101
|
}
|
|
8508
8102
|
|
|
8509
8103
|
// node_modules/zod/v4/locales/pl.js
|
|
8510
|
-
var
|
|
8104
|
+
var error33 = () => {
|
|
8511
8105
|
const Sizable = {
|
|
8512
8106
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8513
8107
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8612,12 +8206,12 @@ var error35 = () => {
|
|
|
8612
8206
|
};
|
|
8613
8207
|
function pl_default() {
|
|
8614
8208
|
return {
|
|
8615
|
-
localeError:
|
|
8209
|
+
localeError: error33()
|
|
8616
8210
|
};
|
|
8617
8211
|
}
|
|
8618
8212
|
|
|
8619
8213
|
// node_modules/zod/v4/locales/pt.js
|
|
8620
|
-
var
|
|
8214
|
+
var error34 = () => {
|
|
8621
8215
|
const Sizable = {
|
|
8622
8216
|
string: { unit: "caracteres", verb: "ter" },
|
|
8623
8217
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8721,127 +8315,7 @@ var error36 = () => {
|
|
|
8721
8315
|
};
|
|
8722
8316
|
function pt_default() {
|
|
8723
8317
|
return {
|
|
8724
|
-
localeError:
|
|
8725
|
-
};
|
|
8726
|
-
}
|
|
8727
|
-
|
|
8728
|
-
// node_modules/zod/v4/locales/ro.js
|
|
8729
|
-
var error37 = () => {
|
|
8730
|
-
const Sizable = {
|
|
8731
|
-
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
8732
|
-
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
8733
|
-
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8734
|
-
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8735
|
-
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
8736
|
-
};
|
|
8737
|
-
function getSizing(origin) {
|
|
8738
|
-
return Sizable[origin] ?? null;
|
|
8739
|
-
}
|
|
8740
|
-
const FormatDictionary = {
|
|
8741
|
-
regex: "intrare",
|
|
8742
|
-
email: "adres\u0103 de email",
|
|
8743
|
-
url: "URL",
|
|
8744
|
-
emoji: "emoji",
|
|
8745
|
-
uuid: "UUID",
|
|
8746
|
-
uuidv4: "UUIDv4",
|
|
8747
|
-
uuidv6: "UUIDv6",
|
|
8748
|
-
nanoid: "nanoid",
|
|
8749
|
-
guid: "GUID",
|
|
8750
|
-
cuid: "cuid",
|
|
8751
|
-
cuid2: "cuid2",
|
|
8752
|
-
ulid: "ULID",
|
|
8753
|
-
xid: "XID",
|
|
8754
|
-
ksuid: "KSUID",
|
|
8755
|
-
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
8756
|
-
date: "dat\u0103 ISO",
|
|
8757
|
-
time: "or\u0103 ISO",
|
|
8758
|
-
duration: "durat\u0103 ISO",
|
|
8759
|
-
ipv4: "adres\u0103 IPv4",
|
|
8760
|
-
ipv6: "adres\u0103 IPv6",
|
|
8761
|
-
mac: "adres\u0103 MAC",
|
|
8762
|
-
cidrv4: "interval IPv4",
|
|
8763
|
-
cidrv6: "interval IPv6",
|
|
8764
|
-
base64: "\u0219ir codat base64",
|
|
8765
|
-
base64url: "\u0219ir codat base64url",
|
|
8766
|
-
json_string: "\u0219ir JSON",
|
|
8767
|
-
e164: "num\u0103r E.164",
|
|
8768
|
-
jwt: "JWT",
|
|
8769
|
-
template_literal: "intrare"
|
|
8770
|
-
};
|
|
8771
|
-
const TypeDictionary = {
|
|
8772
|
-
nan: "NaN",
|
|
8773
|
-
string: "\u0219ir",
|
|
8774
|
-
number: "num\u0103r",
|
|
8775
|
-
boolean: "boolean",
|
|
8776
|
-
function: "func\u021Bie",
|
|
8777
|
-
array: "matrice",
|
|
8778
|
-
object: "obiect",
|
|
8779
|
-
undefined: "nedefinit",
|
|
8780
|
-
symbol: "simbol",
|
|
8781
|
-
bigint: "num\u0103r mare",
|
|
8782
|
-
void: "void",
|
|
8783
|
-
never: "never",
|
|
8784
|
-
map: "hart\u0103",
|
|
8785
|
-
set: "set"
|
|
8786
|
-
};
|
|
8787
|
-
return (issue2) => {
|
|
8788
|
-
switch (issue2.code) {
|
|
8789
|
-
case "invalid_type": {
|
|
8790
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8791
|
-
const receivedType = parsedType(issue2.input);
|
|
8792
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8793
|
-
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
8794
|
-
}
|
|
8795
|
-
case "invalid_value":
|
|
8796
|
-
if (issue2.values.length === 1)
|
|
8797
|
-
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
8798
|
-
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
8799
|
-
case "too_big": {
|
|
8800
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
8801
|
-
const sizing = getSizing(issue2.origin);
|
|
8802
|
-
if (sizing)
|
|
8803
|
-
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
8804
|
-
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
8805
|
-
}
|
|
8806
|
-
case "too_small": {
|
|
8807
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
8808
|
-
const sizing = getSizing(issue2.origin);
|
|
8809
|
-
if (sizing) {
|
|
8810
|
-
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
8811
|
-
}
|
|
8812
|
-
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
8813
|
-
}
|
|
8814
|
-
case "invalid_format": {
|
|
8815
|
-
const _issue = issue2;
|
|
8816
|
-
if (_issue.format === "starts_with") {
|
|
8817
|
-
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
8818
|
-
}
|
|
8819
|
-
if (_issue.format === "ends_with")
|
|
8820
|
-
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
8821
|
-
if (_issue.format === "includes")
|
|
8822
|
-
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
8823
|
-
if (_issue.format === "regex")
|
|
8824
|
-
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
8825
|
-
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8826
|
-
}
|
|
8827
|
-
case "not_multiple_of":
|
|
8828
|
-
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
8829
|
-
case "unrecognized_keys":
|
|
8830
|
-
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
8831
|
-
case "invalid_key":
|
|
8832
|
-
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8833
|
-
case "invalid_union":
|
|
8834
|
-
return "Intrare invalid\u0103";
|
|
8835
|
-
case "invalid_element":
|
|
8836
|
-
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8837
|
-
default:
|
|
8838
|
-
return `Intrare invalid\u0103`;
|
|
8839
|
-
}
|
|
8840
|
-
};
|
|
8841
|
-
};
|
|
8842
|
-
function ro_default() {
|
|
8843
|
-
return {
|
|
8844
|
-
localeError: error37()
|
|
8318
|
+
localeError: error34()
|
|
8845
8319
|
};
|
|
8846
8320
|
}
|
|
8847
8321
|
|
|
@@ -8861,7 +8335,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8861
8335
|
}
|
|
8862
8336
|
return many;
|
|
8863
8337
|
}
|
|
8864
|
-
var
|
|
8338
|
+
var error35 = () => {
|
|
8865
8339
|
const Sizable = {
|
|
8866
8340
|
string: {
|
|
8867
8341
|
unit: {
|
|
@@ -8998,12 +8472,12 @@ var error38 = () => {
|
|
|
8998
8472
|
};
|
|
8999
8473
|
function ru_default() {
|
|
9000
8474
|
return {
|
|
9001
|
-
localeError:
|
|
8475
|
+
localeError: error35()
|
|
9002
8476
|
};
|
|
9003
8477
|
}
|
|
9004
8478
|
|
|
9005
8479
|
// node_modules/zod/v4/locales/sl.js
|
|
9006
|
-
var
|
|
8480
|
+
var error36 = () => {
|
|
9007
8481
|
const Sizable = {
|
|
9008
8482
|
string: { unit: "znakov", verb: "imeti" },
|
|
9009
8483
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -9108,12 +8582,12 @@ var error39 = () => {
|
|
|
9108
8582
|
};
|
|
9109
8583
|
function sl_default() {
|
|
9110
8584
|
return {
|
|
9111
|
-
localeError:
|
|
8585
|
+
localeError: error36()
|
|
9112
8586
|
};
|
|
9113
8587
|
}
|
|
9114
8588
|
|
|
9115
8589
|
// node_modules/zod/v4/locales/sv.js
|
|
9116
|
-
var
|
|
8590
|
+
var error37 = () => {
|
|
9117
8591
|
const Sizable = {
|
|
9118
8592
|
string: { unit: "tecken", verb: "att ha" },
|
|
9119
8593
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -9219,12 +8693,12 @@ var error40 = () => {
|
|
|
9219
8693
|
};
|
|
9220
8694
|
function sv_default() {
|
|
9221
8695
|
return {
|
|
9222
|
-
localeError:
|
|
8696
|
+
localeError: error37()
|
|
9223
8697
|
};
|
|
9224
8698
|
}
|
|
9225
8699
|
|
|
9226
8700
|
// node_modules/zod/v4/locales/ta.js
|
|
9227
|
-
var
|
|
8701
|
+
var error38 = () => {
|
|
9228
8702
|
const Sizable = {
|
|
9229
8703
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
9230
8704
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -9330,12 +8804,12 @@ var error41 = () => {
|
|
|
9330
8804
|
};
|
|
9331
8805
|
function ta_default() {
|
|
9332
8806
|
return {
|
|
9333
|
-
localeError:
|
|
8807
|
+
localeError: error38()
|
|
9334
8808
|
};
|
|
9335
8809
|
}
|
|
9336
8810
|
|
|
9337
8811
|
// node_modules/zod/v4/locales/th.js
|
|
9338
|
-
var
|
|
8812
|
+
var error39 = () => {
|
|
9339
8813
|
const Sizable = {
|
|
9340
8814
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
9341
8815
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9441,12 +8915,12 @@ var error42 = () => {
|
|
|
9441
8915
|
};
|
|
9442
8916
|
function th_default() {
|
|
9443
8917
|
return {
|
|
9444
|
-
localeError:
|
|
8918
|
+
localeError: error39()
|
|
9445
8919
|
};
|
|
9446
8920
|
}
|
|
9447
8921
|
|
|
9448
8922
|
// node_modules/zod/v4/locales/tr.js
|
|
9449
|
-
var
|
|
8923
|
+
var error40 = () => {
|
|
9450
8924
|
const Sizable = {
|
|
9451
8925
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
9452
8926
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9547,12 +9021,12 @@ var error43 = () => {
|
|
|
9547
9021
|
};
|
|
9548
9022
|
function tr_default() {
|
|
9549
9023
|
return {
|
|
9550
|
-
localeError:
|
|
9024
|
+
localeError: error40()
|
|
9551
9025
|
};
|
|
9552
9026
|
}
|
|
9553
9027
|
|
|
9554
9028
|
// node_modules/zod/v4/locales/uk.js
|
|
9555
|
-
var
|
|
9029
|
+
var error41 = () => {
|
|
9556
9030
|
const Sizable = {
|
|
9557
9031
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9558
9032
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9656,7 +9130,7 @@ var error44 = () => {
|
|
|
9656
9130
|
};
|
|
9657
9131
|
function uk_default() {
|
|
9658
9132
|
return {
|
|
9659
|
-
localeError:
|
|
9133
|
+
localeError: error41()
|
|
9660
9134
|
};
|
|
9661
9135
|
}
|
|
9662
9136
|
|
|
@@ -9666,7 +9140,7 @@ function ua_default() {
|
|
|
9666
9140
|
}
|
|
9667
9141
|
|
|
9668
9142
|
// node_modules/zod/v4/locales/ur.js
|
|
9669
|
-
var
|
|
9143
|
+
var error42 = () => {
|
|
9670
9144
|
const Sizable = {
|
|
9671
9145
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9672
9146
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9772,18 +9246,17 @@ var error45 = () => {
|
|
|
9772
9246
|
};
|
|
9773
9247
|
function ur_default() {
|
|
9774
9248
|
return {
|
|
9775
|
-
localeError:
|
|
9249
|
+
localeError: error42()
|
|
9776
9250
|
};
|
|
9777
9251
|
}
|
|
9778
9252
|
|
|
9779
9253
|
// node_modules/zod/v4/locales/uz.js
|
|
9780
|
-
var
|
|
9254
|
+
var error43 = () => {
|
|
9781
9255
|
const Sizable = {
|
|
9782
9256
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9783
9257
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9784
9258
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9785
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
9786
|
-
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9259
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
9787
9260
|
};
|
|
9788
9261
|
function getSizing(origin) {
|
|
9789
9262
|
return Sizable[origin] ?? null;
|
|
@@ -9883,12 +9356,12 @@ var error46 = () => {
|
|
|
9883
9356
|
};
|
|
9884
9357
|
function uz_default() {
|
|
9885
9358
|
return {
|
|
9886
|
-
localeError:
|
|
9359
|
+
localeError: error43()
|
|
9887
9360
|
};
|
|
9888
9361
|
}
|
|
9889
9362
|
|
|
9890
9363
|
// node_modules/zod/v4/locales/vi.js
|
|
9891
|
-
var
|
|
9364
|
+
var error44 = () => {
|
|
9892
9365
|
const Sizable = {
|
|
9893
9366
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9894
9367
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9992,12 +9465,12 @@ var error47 = () => {
|
|
|
9992
9465
|
};
|
|
9993
9466
|
function vi_default() {
|
|
9994
9467
|
return {
|
|
9995
|
-
localeError:
|
|
9468
|
+
localeError: error44()
|
|
9996
9469
|
};
|
|
9997
9470
|
}
|
|
9998
9471
|
|
|
9999
9472
|
// node_modules/zod/v4/locales/zh-CN.js
|
|
10000
|
-
var
|
|
9473
|
+
var error45 = () => {
|
|
10001
9474
|
const Sizable = {
|
|
10002
9475
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
10003
9476
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -10102,12 +9575,12 @@ var error48 = () => {
|
|
|
10102
9575
|
};
|
|
10103
9576
|
function zh_CN_default() {
|
|
10104
9577
|
return {
|
|
10105
|
-
localeError:
|
|
9578
|
+
localeError: error45()
|
|
10106
9579
|
};
|
|
10107
9580
|
}
|
|
10108
9581
|
|
|
10109
9582
|
// node_modules/zod/v4/locales/zh-TW.js
|
|
10110
|
-
var
|
|
9583
|
+
var error46 = () => {
|
|
10111
9584
|
const Sizable = {
|
|
10112
9585
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
10113
9586
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -10210,12 +9683,12 @@ var error49 = () => {
|
|
|
10210
9683
|
};
|
|
10211
9684
|
function zh_TW_default() {
|
|
10212
9685
|
return {
|
|
10213
|
-
localeError:
|
|
9686
|
+
localeError: error46()
|
|
10214
9687
|
};
|
|
10215
9688
|
}
|
|
10216
9689
|
|
|
10217
9690
|
// node_modules/zod/v4/locales/yo.js
|
|
10218
|
-
var
|
|
9691
|
+
var error47 = () => {
|
|
10219
9692
|
const Sizable = {
|
|
10220
9693
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
10221
9694
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -10318,12 +9791,12 @@ var error50 = () => {
|
|
|
10318
9791
|
};
|
|
10319
9792
|
function yo_default() {
|
|
10320
9793
|
return {
|
|
10321
|
-
localeError:
|
|
9794
|
+
localeError: error47()
|
|
10322
9795
|
};
|
|
10323
9796
|
}
|
|
10324
9797
|
|
|
10325
9798
|
// node_modules/zod/v4/core/registries.js
|
|
10326
|
-
var
|
|
9799
|
+
var _a;
|
|
10327
9800
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
10328
9801
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
10329
9802
|
var $ZodRegistry = class {
|
|
@@ -10369,7 +9842,7 @@ var $ZodRegistry = class {
|
|
|
10369
9842
|
function registry() {
|
|
10370
9843
|
return new $ZodRegistry();
|
|
10371
9844
|
}
|
|
10372
|
-
(
|
|
9845
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
10373
9846
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10374
9847
|
|
|
10375
9848
|
// node_modules/zod/v4/core/api.js
|
|
@@ -11287,7 +10760,7 @@ function _refine(Class2, fn, _params) {
|
|
|
11287
10760
|
return schema;
|
|
11288
10761
|
}
|
|
11289
10762
|
// @__NO_SIDE_EFFECTS__
|
|
11290
|
-
function _superRefine(fn
|
|
10763
|
+
function _superRefine(fn) {
|
|
11291
10764
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
11292
10765
|
payload.addIssue = (issue2) => {
|
|
11293
10766
|
if (typeof issue2 === "string") {
|
|
@@ -11304,7 +10777,7 @@ function _superRefine(fn, params) {
|
|
|
11304
10777
|
}
|
|
11305
10778
|
};
|
|
11306
10779
|
return fn(payload.value, payload);
|
|
11307
|
-
}
|
|
10780
|
+
});
|
|
11308
10781
|
return ch;
|
|
11309
10782
|
}
|
|
11310
10783
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -11434,7 +10907,7 @@ function initializeContext(params) {
|
|
|
11434
10907
|
};
|
|
11435
10908
|
}
|
|
11436
10909
|
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
11437
|
-
var
|
|
10910
|
+
var _a2;
|
|
11438
10911
|
const def = schema._zod.def;
|
|
11439
10912
|
const seen = ctx.seen.get(schema);
|
|
11440
10913
|
if (seen) {
|
|
@@ -11481,8 +10954,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11481
10954
|
delete result.schema.examples;
|
|
11482
10955
|
delete result.schema.default;
|
|
11483
10956
|
}
|
|
11484
|
-
if (ctx.io === "input" &&
|
|
11485
|
-
(
|
|
10957
|
+
if (ctx.io === "input" && result.schema._prefault)
|
|
10958
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
11486
10959
|
delete result.schema._prefault;
|
|
11487
10960
|
const _result = ctx.seen.get(schema);
|
|
11488
10961
|
return _result.schema;
|
|
@@ -11663,15 +11136,10 @@ function finalize(ctx, schema) {
|
|
|
11663
11136
|
result.$id = ctx.external.uri(id);
|
|
11664
11137
|
}
|
|
11665
11138
|
Object.assign(result, root.def ?? root.schema);
|
|
11666
|
-
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
11667
|
-
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
11668
|
-
delete result.id;
|
|
11669
11139
|
const defs = ctx.external?.defs ?? {};
|
|
11670
11140
|
for (const entry of ctx.seen.entries()) {
|
|
11671
11141
|
const seen = entry[1];
|
|
11672
11142
|
if (seen.def && seen.defId) {
|
|
11673
|
-
if (seen.def.id === seen.defId)
|
|
11674
|
-
delete seen.def.id;
|
|
11675
11143
|
defs[seen.defId] = seen.def;
|
|
11676
11144
|
}
|
|
11677
11145
|
}
|
|
@@ -11727,8 +11195,6 @@ function isTransforming(_schema, _ctx) {
|
|
|
11727
11195
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11728
11196
|
}
|
|
11729
11197
|
if (def.type === "pipe") {
|
|
11730
|
-
if (_schema._zod.traits.has("$ZodCodec"))
|
|
11731
|
-
return true;
|
|
11732
11198
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11733
11199
|
}
|
|
11734
11200
|
if (def.type === "object") {
|
|
@@ -11818,28 +11284,39 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11818
11284
|
json2.type = "integer";
|
|
11819
11285
|
else
|
|
11820
11286
|
json2.type = "number";
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
11824
|
-
if (exMin) {
|
|
11825
|
-
if (legacy) {
|
|
11287
|
+
if (typeof exclusiveMinimum === "number") {
|
|
11288
|
+
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
|
|
11826
11289
|
json2.minimum = exclusiveMinimum;
|
|
11827
11290
|
json2.exclusiveMinimum = true;
|
|
11828
11291
|
} else {
|
|
11829
11292
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11830
11293
|
}
|
|
11831
|
-
}
|
|
11294
|
+
}
|
|
11295
|
+
if (typeof minimum === "number") {
|
|
11832
11296
|
json2.minimum = minimum;
|
|
11297
|
+
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11298
|
+
if (exclusiveMinimum >= minimum)
|
|
11299
|
+
delete json2.minimum;
|
|
11300
|
+
else
|
|
11301
|
+
delete json2.exclusiveMinimum;
|
|
11302
|
+
}
|
|
11833
11303
|
}
|
|
11834
|
-
if (
|
|
11835
|
-
if (
|
|
11304
|
+
if (typeof exclusiveMaximum === "number") {
|
|
11305
|
+
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
|
|
11836
11306
|
json2.maximum = exclusiveMaximum;
|
|
11837
11307
|
json2.exclusiveMaximum = true;
|
|
11838
11308
|
} else {
|
|
11839
11309
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11840
11310
|
}
|
|
11841
|
-
}
|
|
11311
|
+
}
|
|
11312
|
+
if (typeof maximum === "number") {
|
|
11842
11313
|
json2.maximum = maximum;
|
|
11314
|
+
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11315
|
+
if (exclusiveMaximum <= maximum)
|
|
11316
|
+
delete json2.maximum;
|
|
11317
|
+
else
|
|
11318
|
+
delete json2.exclusiveMaximum;
|
|
11319
|
+
}
|
|
11843
11320
|
}
|
|
11844
11321
|
if (typeof multipleOf === "number")
|
|
11845
11322
|
json2.multipleOf = multipleOf;
|
|
@@ -12011,10 +11488,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
12011
11488
|
if (typeof maximum === "number")
|
|
12012
11489
|
json2.maxItems = maximum;
|
|
12013
11490
|
json2.type = "array";
|
|
12014
|
-
json2.items = process(def.element, ctx, {
|
|
12015
|
-
...params,
|
|
12016
|
-
path: [...params.path, "items"]
|
|
12017
|
-
});
|
|
11491
|
+
json2.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
12018
11492
|
};
|
|
12019
11493
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
12020
11494
|
const json2 = _json;
|
|
@@ -12207,8 +11681,7 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
12207
11681
|
};
|
|
12208
11682
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
12209
11683
|
const def = schema._zod.def;
|
|
12210
|
-
const
|
|
12211
|
-
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
11684
|
+
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
12212
11685
|
process(innerType, ctx, params);
|
|
12213
11686
|
const seen = ctx.seen.get(schema);
|
|
12214
11687
|
seen.ref = innerType;
|
|
@@ -12442,7 +11915,6 @@ __export(schemas_exports2, {
|
|
|
12442
11915
|
ZodOptional: () => ZodOptional,
|
|
12443
11916
|
ZodPipe: () => ZodPipe,
|
|
12444
11917
|
ZodPrefault: () => ZodPrefault,
|
|
12445
|
-
ZodPreprocess: () => ZodPreprocess,
|
|
12446
11918
|
ZodPromise: () => ZodPromise,
|
|
12447
11919
|
ZodReadonly: () => ZodReadonly,
|
|
12448
11920
|
ZodRecord: () => ZodRecord,
|
|
@@ -12503,7 +11975,6 @@ __export(schemas_exports2, {
|
|
|
12503
11975
|
int32: () => int32,
|
|
12504
11976
|
int64: () => int64,
|
|
12505
11977
|
intersection: () => intersection,
|
|
12506
|
-
invertCodec: () => invertCodec,
|
|
12507
11978
|
ipv4: () => ipv42,
|
|
12508
11979
|
ipv6: () => ipv62,
|
|
12509
11980
|
json: () => json,
|
|
@@ -12673,8 +12144,8 @@ var initializer2 = (inst, issues) => {
|
|
|
12673
12144
|
}
|
|
12674
12145
|
});
|
|
12675
12146
|
};
|
|
12676
|
-
var ZodError =
|
|
12677
|
-
var ZodRealError =
|
|
12147
|
+
var ZodError = $constructor("ZodError", initializer2);
|
|
12148
|
+
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
12678
12149
|
Parent: Error
|
|
12679
12150
|
});
|
|
12680
12151
|
|
|
@@ -12693,43 +12164,6 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
12693
12164
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12694
12165
|
|
|
12695
12166
|
// node_modules/zod/v4/classic/schemas.js
|
|
12696
|
-
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
12697
|
-
function _installLazyMethods(inst, group, methods) {
|
|
12698
|
-
const proto = Object.getPrototypeOf(inst);
|
|
12699
|
-
let installed = _installedGroups.get(proto);
|
|
12700
|
-
if (!installed) {
|
|
12701
|
-
installed = /* @__PURE__ */ new Set();
|
|
12702
|
-
_installedGroups.set(proto, installed);
|
|
12703
|
-
}
|
|
12704
|
-
if (installed.has(group))
|
|
12705
|
-
return;
|
|
12706
|
-
installed.add(group);
|
|
12707
|
-
for (const key in methods) {
|
|
12708
|
-
const fn = methods[key];
|
|
12709
|
-
Object.defineProperty(proto, key, {
|
|
12710
|
-
configurable: true,
|
|
12711
|
-
enumerable: false,
|
|
12712
|
-
get() {
|
|
12713
|
-
const bound = fn.bind(this);
|
|
12714
|
-
Object.defineProperty(this, key, {
|
|
12715
|
-
configurable: true,
|
|
12716
|
-
writable: true,
|
|
12717
|
-
enumerable: true,
|
|
12718
|
-
value: bound
|
|
12719
|
-
});
|
|
12720
|
-
return bound;
|
|
12721
|
-
},
|
|
12722
|
-
set(v) {
|
|
12723
|
-
Object.defineProperty(this, key, {
|
|
12724
|
-
configurable: true,
|
|
12725
|
-
writable: true,
|
|
12726
|
-
enumerable: true,
|
|
12727
|
-
value: v
|
|
12728
|
-
});
|
|
12729
|
-
}
|
|
12730
|
-
});
|
|
12731
|
-
}
|
|
12732
|
-
}
|
|
12733
12167
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12734
12168
|
$ZodType.init(inst, def);
|
|
12735
12169
|
Object.assign(inst["~standard"], {
|
|
@@ -12742,6 +12176,23 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12742
12176
|
inst.def = def;
|
|
12743
12177
|
inst.type = def.type;
|
|
12744
12178
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12179
|
+
inst.check = (...checks) => {
|
|
12180
|
+
return inst.clone(util_exports.mergeDefs(def, {
|
|
12181
|
+
checks: [
|
|
12182
|
+
...def.checks ?? [],
|
|
12183
|
+
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12184
|
+
]
|
|
12185
|
+
}), {
|
|
12186
|
+
parent: true
|
|
12187
|
+
});
|
|
12188
|
+
};
|
|
12189
|
+
inst.with = inst.check;
|
|
12190
|
+
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12191
|
+
inst.brand = () => inst;
|
|
12192
|
+
inst.register = ((reg, meta3) => {
|
|
12193
|
+
reg.add(inst, meta3);
|
|
12194
|
+
return inst;
|
|
12195
|
+
});
|
|
12745
12196
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
12746
12197
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12747
12198
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12755,108 +12206,45 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12755
12206
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12756
12207
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12757
12208
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
},
|
|
12781
|
-
refine(check2, params) {
|
|
12782
|
-
return this.check(refine(check2, params));
|
|
12783
|
-
},
|
|
12784
|
-
superRefine(refinement, params) {
|
|
12785
|
-
return this.check(superRefine(refinement, params));
|
|
12786
|
-
},
|
|
12787
|
-
overwrite(fn) {
|
|
12788
|
-
return this.check(_overwrite(fn));
|
|
12789
|
-
},
|
|
12790
|
-
optional() {
|
|
12791
|
-
return optional(this);
|
|
12792
|
-
},
|
|
12793
|
-
exactOptional() {
|
|
12794
|
-
return exactOptional(this);
|
|
12795
|
-
},
|
|
12796
|
-
nullable() {
|
|
12797
|
-
return nullable(this);
|
|
12798
|
-
},
|
|
12799
|
-
nullish() {
|
|
12800
|
-
return optional(nullable(this));
|
|
12801
|
-
},
|
|
12802
|
-
nonoptional(params) {
|
|
12803
|
-
return nonoptional(this, params);
|
|
12804
|
-
},
|
|
12805
|
-
array() {
|
|
12806
|
-
return array(this);
|
|
12807
|
-
},
|
|
12808
|
-
or(arg) {
|
|
12809
|
-
return union([this, arg]);
|
|
12810
|
-
},
|
|
12811
|
-
and(arg) {
|
|
12812
|
-
return intersection(this, arg);
|
|
12813
|
-
},
|
|
12814
|
-
transform(tx) {
|
|
12815
|
-
return pipe(this, transform(tx));
|
|
12816
|
-
},
|
|
12817
|
-
default(d) {
|
|
12818
|
-
return _default2(this, d);
|
|
12819
|
-
},
|
|
12820
|
-
prefault(d) {
|
|
12821
|
-
return prefault(this, d);
|
|
12822
|
-
},
|
|
12823
|
-
catch(params) {
|
|
12824
|
-
return _catch2(this, params);
|
|
12825
|
-
},
|
|
12826
|
-
pipe(target) {
|
|
12827
|
-
return pipe(this, target);
|
|
12828
|
-
},
|
|
12829
|
-
readonly() {
|
|
12830
|
-
return readonly(this);
|
|
12831
|
-
},
|
|
12832
|
-
describe(description) {
|
|
12833
|
-
const cl = this.clone();
|
|
12834
|
-
globalRegistry.add(cl, { description });
|
|
12835
|
-
return cl;
|
|
12836
|
-
},
|
|
12837
|
-
meta(...args) {
|
|
12838
|
-
if (args.length === 0)
|
|
12839
|
-
return globalRegistry.get(this);
|
|
12840
|
-
const cl = this.clone();
|
|
12841
|
-
globalRegistry.add(cl, args[0]);
|
|
12842
|
-
return cl;
|
|
12843
|
-
},
|
|
12844
|
-
isOptional() {
|
|
12845
|
-
return this.safeParse(void 0).success;
|
|
12846
|
-
},
|
|
12847
|
-
isNullable() {
|
|
12848
|
-
return this.safeParse(null).success;
|
|
12849
|
-
},
|
|
12850
|
-
apply(fn) {
|
|
12851
|
-
return fn(this);
|
|
12852
|
-
}
|
|
12853
|
-
});
|
|
12209
|
+
inst.refine = (check2, params) => inst.check(refine(check2, params));
|
|
12210
|
+
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
12211
|
+
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
12212
|
+
inst.optional = () => optional(inst);
|
|
12213
|
+
inst.exactOptional = () => exactOptional(inst);
|
|
12214
|
+
inst.nullable = () => nullable(inst);
|
|
12215
|
+
inst.nullish = () => optional(nullable(inst));
|
|
12216
|
+
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
12217
|
+
inst.array = () => array(inst);
|
|
12218
|
+
inst.or = (arg) => union([inst, arg]);
|
|
12219
|
+
inst.and = (arg) => intersection(inst, arg);
|
|
12220
|
+
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
12221
|
+
inst.default = (def2) => _default2(inst, def2);
|
|
12222
|
+
inst.prefault = (def2) => prefault(inst, def2);
|
|
12223
|
+
inst.catch = (params) => _catch2(inst, params);
|
|
12224
|
+
inst.pipe = (target) => pipe(inst, target);
|
|
12225
|
+
inst.readonly = () => readonly(inst);
|
|
12226
|
+
inst.describe = (description) => {
|
|
12227
|
+
const cl = inst.clone();
|
|
12228
|
+
globalRegistry.add(cl, { description });
|
|
12229
|
+
return cl;
|
|
12230
|
+
};
|
|
12854
12231
|
Object.defineProperty(inst, "description", {
|
|
12855
12232
|
get() {
|
|
12856
12233
|
return globalRegistry.get(inst)?.description;
|
|
12857
12234
|
},
|
|
12858
12235
|
configurable: true
|
|
12859
12236
|
});
|
|
12237
|
+
inst.meta = (...args) => {
|
|
12238
|
+
if (args.length === 0) {
|
|
12239
|
+
return globalRegistry.get(inst);
|
|
12240
|
+
}
|
|
12241
|
+
const cl = inst.clone();
|
|
12242
|
+
globalRegistry.add(cl, args[0]);
|
|
12243
|
+
return cl;
|
|
12244
|
+
};
|
|
12245
|
+
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
12246
|
+
inst.isNullable = () => inst.safeParse(null).success;
|
|
12247
|
+
inst.apply = (fn) => fn(inst);
|
|
12860
12248
|
return inst;
|
|
12861
12249
|
});
|
|
12862
12250
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12867,53 +12255,21 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12867
12255
|
inst.format = bag.format ?? null;
|
|
12868
12256
|
inst.minLength = bag.minimum ?? null;
|
|
12869
12257
|
inst.maxLength = bag.maximum ?? null;
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
},
|
|
12886
|
-
max(...args) {
|
|
12887
|
-
return this.check(_maxLength(...args));
|
|
12888
|
-
},
|
|
12889
|
-
length(...args) {
|
|
12890
|
-
return this.check(_length(...args));
|
|
12891
|
-
},
|
|
12892
|
-
nonempty(...args) {
|
|
12893
|
-
return this.check(_minLength(1, ...args));
|
|
12894
|
-
},
|
|
12895
|
-
lowercase(params) {
|
|
12896
|
-
return this.check(_lowercase(params));
|
|
12897
|
-
},
|
|
12898
|
-
uppercase(params) {
|
|
12899
|
-
return this.check(_uppercase(params));
|
|
12900
|
-
},
|
|
12901
|
-
trim() {
|
|
12902
|
-
return this.check(_trim());
|
|
12903
|
-
},
|
|
12904
|
-
normalize(...args) {
|
|
12905
|
-
return this.check(_normalize(...args));
|
|
12906
|
-
},
|
|
12907
|
-
toLowerCase() {
|
|
12908
|
-
return this.check(_toLowerCase());
|
|
12909
|
-
},
|
|
12910
|
-
toUpperCase() {
|
|
12911
|
-
return this.check(_toUpperCase());
|
|
12912
|
-
},
|
|
12913
|
-
slugify() {
|
|
12914
|
-
return this.check(_slugify());
|
|
12915
|
-
}
|
|
12916
|
-
});
|
|
12258
|
+
inst.regex = (...args) => inst.check(_regex(...args));
|
|
12259
|
+
inst.includes = (...args) => inst.check(_includes(...args));
|
|
12260
|
+
inst.startsWith = (...args) => inst.check(_startsWith(...args));
|
|
12261
|
+
inst.endsWith = (...args) => inst.check(_endsWith(...args));
|
|
12262
|
+
inst.min = (...args) => inst.check(_minLength(...args));
|
|
12263
|
+
inst.max = (...args) => inst.check(_maxLength(...args));
|
|
12264
|
+
inst.length = (...args) => inst.check(_length(...args));
|
|
12265
|
+
inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
|
|
12266
|
+
inst.lowercase = (params) => inst.check(_lowercase(params));
|
|
12267
|
+
inst.uppercase = (params) => inst.check(_uppercase(params));
|
|
12268
|
+
inst.trim = () => inst.check(_trim());
|
|
12269
|
+
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
12270
|
+
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
12271
|
+
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
12272
|
+
inst.slugify = () => inst.check(_slugify());
|
|
12917
12273
|
});
|
|
12918
12274
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12919
12275
|
$ZodString.init(inst, def);
|
|
@@ -12992,7 +12348,7 @@ function url(params) {
|
|
|
12992
12348
|
}
|
|
12993
12349
|
function httpUrl(params) {
|
|
12994
12350
|
return _url(ZodURL, {
|
|
12995
|
-
protocol:
|
|
12351
|
+
protocol: /^https?$/,
|
|
12996
12352
|
hostname: regexes_exports.domain,
|
|
12997
12353
|
...util_exports.normalizeParams(params)
|
|
12998
12354
|
});
|
|
@@ -13134,53 +12490,21 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
13134
12490
|
$ZodNumber.init(inst, def);
|
|
13135
12491
|
ZodType.init(inst, def);
|
|
13136
12492
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
|
|
13151
|
-
|
|
13152
|
-
},
|
|
13153
|
-
max(value, params) {
|
|
13154
|
-
return this.check(_lte(value, params));
|
|
13155
|
-
},
|
|
13156
|
-
int(params) {
|
|
13157
|
-
return this.check(int(params));
|
|
13158
|
-
},
|
|
13159
|
-
safe(params) {
|
|
13160
|
-
return this.check(int(params));
|
|
13161
|
-
},
|
|
13162
|
-
positive(params) {
|
|
13163
|
-
return this.check(_gt(0, params));
|
|
13164
|
-
},
|
|
13165
|
-
nonnegative(params) {
|
|
13166
|
-
return this.check(_gte(0, params));
|
|
13167
|
-
},
|
|
13168
|
-
negative(params) {
|
|
13169
|
-
return this.check(_lt(0, params));
|
|
13170
|
-
},
|
|
13171
|
-
nonpositive(params) {
|
|
13172
|
-
return this.check(_lte(0, params));
|
|
13173
|
-
},
|
|
13174
|
-
multipleOf(value, params) {
|
|
13175
|
-
return this.check(_multipleOf(value, params));
|
|
13176
|
-
},
|
|
13177
|
-
step(value, params) {
|
|
13178
|
-
return this.check(_multipleOf(value, params));
|
|
13179
|
-
},
|
|
13180
|
-
finite() {
|
|
13181
|
-
return this;
|
|
13182
|
-
}
|
|
13183
|
-
});
|
|
12493
|
+
inst.gt = (value, params) => inst.check(_gt(value, params));
|
|
12494
|
+
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
12495
|
+
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
12496
|
+
inst.lt = (value, params) => inst.check(_lt(value, params));
|
|
12497
|
+
inst.lte = (value, params) => inst.check(_lte(value, params));
|
|
12498
|
+
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
12499
|
+
inst.int = (params) => inst.check(int(params));
|
|
12500
|
+
inst.safe = (params) => inst.check(int(params));
|
|
12501
|
+
inst.positive = (params) => inst.check(_gt(0, params));
|
|
12502
|
+
inst.nonnegative = (params) => inst.check(_gte(0, params));
|
|
12503
|
+
inst.negative = (params) => inst.check(_lt(0, params));
|
|
12504
|
+
inst.nonpositive = (params) => inst.check(_lte(0, params));
|
|
12505
|
+
inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
|
|
12506
|
+
inst.step = (value, params) => inst.check(_multipleOf(value, params));
|
|
12507
|
+
inst.finite = () => inst;
|
|
13184
12508
|
const bag = inst._zod.bag;
|
|
13185
12509
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
13186
12510
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -13327,23 +12651,11 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
13327
12651
|
ZodType.init(inst, def);
|
|
13328
12652
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
13329
12653
|
inst.element = def.element;
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
return this.check(_minLength(1, params));
|
|
13336
|
-
},
|
|
13337
|
-
max(n, params) {
|
|
13338
|
-
return this.check(_maxLength(n, params));
|
|
13339
|
-
},
|
|
13340
|
-
length(n, params) {
|
|
13341
|
-
return this.check(_length(n, params));
|
|
13342
|
-
},
|
|
13343
|
-
unwrap() {
|
|
13344
|
-
return this.element;
|
|
13345
|
-
}
|
|
13346
|
-
});
|
|
12654
|
+
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
12655
|
+
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
12656
|
+
inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
|
|
12657
|
+
inst.length = (len, params) => inst.check(_length(len, params));
|
|
12658
|
+
inst.unwrap = () => inst.element;
|
|
13347
12659
|
});
|
|
13348
12660
|
function array(element, params) {
|
|
13349
12661
|
return _array(ZodArray, element, params);
|
|
@@ -13359,47 +12671,23 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
13359
12671
|
util_exports.defineLazy(inst, "shape", () => {
|
|
13360
12672
|
return def.shape;
|
|
13361
12673
|
});
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
|
|
13365
|
-
|
|
13366
|
-
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
13380
|
-
},
|
|
13381
|
-
extend(incoming) {
|
|
13382
|
-
return util_exports.extend(this, incoming);
|
|
13383
|
-
},
|
|
13384
|
-
safeExtend(incoming) {
|
|
13385
|
-
return util_exports.safeExtend(this, incoming);
|
|
13386
|
-
},
|
|
13387
|
-
merge(other) {
|
|
13388
|
-
return util_exports.merge(this, other);
|
|
13389
|
-
},
|
|
13390
|
-
pick(mask) {
|
|
13391
|
-
return util_exports.pick(this, mask);
|
|
13392
|
-
},
|
|
13393
|
-
omit(mask) {
|
|
13394
|
-
return util_exports.omit(this, mask);
|
|
13395
|
-
},
|
|
13396
|
-
partial(...args) {
|
|
13397
|
-
return util_exports.partial(ZodOptional, this, args[0]);
|
|
13398
|
-
},
|
|
13399
|
-
required(...args) {
|
|
13400
|
-
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
13401
|
-
}
|
|
13402
|
-
});
|
|
12674
|
+
inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
|
|
12675
|
+
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
|
12676
|
+
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
12677
|
+
inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
12678
|
+
inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
|
|
12679
|
+
inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
|
|
12680
|
+
inst.extend = (incoming) => {
|
|
12681
|
+
return util_exports.extend(inst, incoming);
|
|
12682
|
+
};
|
|
12683
|
+
inst.safeExtend = (incoming) => {
|
|
12684
|
+
return util_exports.safeExtend(inst, incoming);
|
|
12685
|
+
};
|
|
12686
|
+
inst.merge = (other) => util_exports.merge(inst, other);
|
|
12687
|
+
inst.pick = (mask) => util_exports.pick(inst, mask);
|
|
12688
|
+
inst.omit = (mask) => util_exports.omit(inst, mask);
|
|
12689
|
+
inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
|
|
12690
|
+
inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
|
|
13403
12691
|
});
|
|
13404
12692
|
function object(shape, params) {
|
|
13405
12693
|
const def = {
|
|
@@ -13504,14 +12792,6 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
13504
12792
|
inst.valueType = def.valueType;
|
|
13505
12793
|
});
|
|
13506
12794
|
function record(keyType, valueType, params) {
|
|
13507
|
-
if (!valueType || !valueType._zod) {
|
|
13508
|
-
return new ZodRecord({
|
|
13509
|
-
type: "record",
|
|
13510
|
-
keyType: string2(),
|
|
13511
|
-
valueType: keyType,
|
|
13512
|
-
...util_exports.normalizeParams(valueType)
|
|
13513
|
-
});
|
|
13514
|
-
}
|
|
13515
12795
|
return new ZodRecord({
|
|
13516
12796
|
type: "record",
|
|
13517
12797
|
keyType,
|
|
@@ -13683,12 +12963,10 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
13683
12963
|
if (output instanceof Promise) {
|
|
13684
12964
|
return output.then((output2) => {
|
|
13685
12965
|
payload.value = output2;
|
|
13686
|
-
payload.fallback = true;
|
|
13687
12966
|
return payload;
|
|
13688
12967
|
});
|
|
13689
12968
|
}
|
|
13690
12969
|
payload.value = output;
|
|
13691
|
-
payload.fallback = true;
|
|
13692
12970
|
return payload;
|
|
13693
12971
|
};
|
|
13694
12972
|
});
|
|
@@ -13843,20 +13121,6 @@ function codec(in_, out, params) {
|
|
|
13843
13121
|
reverseTransform: params.encode
|
|
13844
13122
|
});
|
|
13845
13123
|
}
|
|
13846
|
-
function invertCodec(codec2) {
|
|
13847
|
-
const def = codec2._zod.def;
|
|
13848
|
-
return new ZodCodec({
|
|
13849
|
-
type: "pipe",
|
|
13850
|
-
in: def.out,
|
|
13851
|
-
out: def.in,
|
|
13852
|
-
transform: def.reverseTransform,
|
|
13853
|
-
reverseTransform: def.transform
|
|
13854
|
-
});
|
|
13855
|
-
}
|
|
13856
|
-
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
13857
|
-
ZodPipe.init(inst, def);
|
|
13858
|
-
$ZodPreprocess.init(inst, def);
|
|
13859
|
-
});
|
|
13860
13124
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13861
13125
|
$ZodReadonly.init(inst, def);
|
|
13862
13126
|
ZodType.init(inst, def);
|
|
@@ -13936,8 +13200,8 @@ function custom(fn, _params) {
|
|
|
13936
13200
|
function refine(fn, _params = {}) {
|
|
13937
13201
|
return _refine(ZodCustom, fn, _params);
|
|
13938
13202
|
}
|
|
13939
|
-
function superRefine(fn
|
|
13940
|
-
return _superRefine(fn
|
|
13203
|
+
function superRefine(fn) {
|
|
13204
|
+
return _superRefine(fn);
|
|
13941
13205
|
}
|
|
13942
13206
|
var describe2 = describe;
|
|
13943
13207
|
var meta2 = meta;
|
|
@@ -13975,11 +13239,7 @@ function json(params) {
|
|
|
13975
13239
|
return jsonSchema;
|
|
13976
13240
|
}
|
|
13977
13241
|
function preprocess(fn, schema) {
|
|
13978
|
-
return
|
|
13979
|
-
type: "pipe",
|
|
13980
|
-
in: transform(fn),
|
|
13981
|
-
out: schema
|
|
13982
|
-
});
|
|
13242
|
+
return pipe(transform(fn), schema);
|
|
13983
13243
|
}
|
|
13984
13244
|
|
|
13985
13245
|
// node_modules/zod/v4/classic/compat.js
|
|
@@ -14400,6 +13660,12 @@ function convertBaseSchema(schema, ctx) {
|
|
|
14400
13660
|
default:
|
|
14401
13661
|
throw new Error(`Unsupported type: ${type}`);
|
|
14402
13662
|
}
|
|
13663
|
+
if (schema.description) {
|
|
13664
|
+
zodSchema = zodSchema.describe(schema.description);
|
|
13665
|
+
}
|
|
13666
|
+
if (schema.default !== void 0) {
|
|
13667
|
+
zodSchema = zodSchema.default(schema.default);
|
|
13668
|
+
}
|
|
14403
13669
|
return zodSchema;
|
|
14404
13670
|
}
|
|
14405
13671
|
function convertSchema(schema, ctx) {
|
|
@@ -14436,9 +13702,6 @@ function convertSchema(schema, ctx) {
|
|
|
14436
13702
|
if (schema.readOnly === true) {
|
|
14437
13703
|
baseSchema = z.readonly(baseSchema);
|
|
14438
13704
|
}
|
|
14439
|
-
if (schema.default !== void 0) {
|
|
14440
|
-
baseSchema = baseSchema.default(schema.default);
|
|
14441
|
-
}
|
|
14442
13705
|
const extraMeta = {};
|
|
14443
13706
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
14444
13707
|
for (const key of coreMetadataKeys) {
|
|
@@ -14460,32 +13723,23 @@ function convertSchema(schema, ctx) {
|
|
|
14460
13723
|
if (Object.keys(extraMeta).length > 0) {
|
|
14461
13724
|
ctx.registry.add(baseSchema, extraMeta);
|
|
14462
13725
|
}
|
|
14463
|
-
if (schema.description) {
|
|
14464
|
-
baseSchema = baseSchema.describe(schema.description);
|
|
14465
|
-
}
|
|
14466
13726
|
return baseSchema;
|
|
14467
13727
|
}
|
|
14468
13728
|
function fromJSONSchema(schema, params) {
|
|
14469
13729
|
if (typeof schema === "boolean") {
|
|
14470
13730
|
return schema ? z.any() : z.never();
|
|
14471
13731
|
}
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
normalized = JSON.parse(JSON.stringify(schema));
|
|
14475
|
-
} catch {
|
|
14476
|
-
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14477
|
-
}
|
|
14478
|
-
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14479
|
-
const defs = normalized.$defs || normalized.definitions || {};
|
|
13732
|
+
const version2 = detectVersion(schema, params?.defaultTarget);
|
|
13733
|
+
const defs = schema.$defs || schema.definitions || {};
|
|
14480
13734
|
const ctx = {
|
|
14481
13735
|
version: version2,
|
|
14482
13736
|
defs,
|
|
14483
13737
|
refs: /* @__PURE__ */ new Map(),
|
|
14484
13738
|
processing: /* @__PURE__ */ new Set(),
|
|
14485
|
-
rootSchema:
|
|
13739
|
+
rootSchema: schema,
|
|
14486
13740
|
registry: params?.registry ?? globalRegistry
|
|
14487
13741
|
};
|
|
14488
|
-
return convertSchema(
|
|
13742
|
+
return convertSchema(schema, ctx);
|
|
14489
13743
|
}
|
|
14490
13744
|
|
|
14491
13745
|
// node_modules/zod/v4/classic/coerce.js
|
|
@@ -14578,7 +13832,6 @@ export {
|
|
|
14578
13832
|
ZodOptional,
|
|
14579
13833
|
ZodPipe,
|
|
14580
13834
|
ZodPrefault,
|
|
14581
|
-
ZodPreprocess,
|
|
14582
13835
|
ZodPromise,
|
|
14583
13836
|
ZodReadonly,
|
|
14584
13837
|
ZodRealError,
|
|
@@ -14658,7 +13911,6 @@ export {
|
|
|
14658
13911
|
int32,
|
|
14659
13912
|
int64,
|
|
14660
13913
|
intersection,
|
|
14661
|
-
invertCodec,
|
|
14662
13914
|
ipv42 as ipv4,
|
|
14663
13915
|
ipv62 as ipv6,
|
|
14664
13916
|
iso_exports as iso,
|
|
@@ -14760,4 +14012,4 @@ export {
|
|
|
14760
14012
|
xor,
|
|
14761
14013
|
external_exports as z
|
|
14762
14014
|
};
|
|
14763
|
-
//# sourceMappingURL=zod-
|
|
14015
|
+
//# sourceMappingURL=zod-P5QUYVPB.js.map
|