@t2000/cli 1.30.3 → 1.30.4
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/{chunk-HGA6AHN5.js → chunk-2HBLU5GV.js} +939 -391
- package/dist/chunk-2HBLU5GV.js.map +1 -0
- package/dist/{chunk-ACFFT3J4.js → chunk-3DGYEM62.js} +3 -3
- package/dist/{client-M732TO32.js → client-I5AZIDKN.js} +3 -3
- package/dist/{client-M732TO32.js.map → client-I5AZIDKN.js.map} +1 -1
- package/dist/{client-TVVK6IB3.js → client-QOEU3RTY.js} +2 -2
- package/dist/{dist-QJT5UBXL.js → dist-546IUBM4.js} +2 -2
- package/dist/{dist-T6CNV6SL.js → dist-IKHAYUNB.js} +1635 -1069
- package/dist/{dist-T6CNV6SL.js.map → dist-IKHAYUNB.js.map} +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/dist/chunk-HGA6AHN5.js.map +0 -1
- /package/dist/{chunk-ACFFT3J4.js.map → chunk-3DGYEM62.js.map} +0 -0
- /package/dist/{client-TVVK6IB3.js.map → client-QOEU3RTY.js.map} +0 -0
- /package/dist/{dist-QJT5UBXL.js.map → dist-546IUBM4.js.map} +0 -0
|
@@ -193,6 +193,7 @@ __export(zod_exports, {
|
|
|
193
193
|
int32: () => int32,
|
|
194
194
|
int64: () => int64,
|
|
195
195
|
intersection: () => intersection,
|
|
196
|
+
invertCodec: () => invertCodec,
|
|
196
197
|
ipv4: () => ipv42,
|
|
197
198
|
ipv6: () => ipv62,
|
|
198
199
|
iso: () => iso_exports,
|
|
@@ -303,7 +304,7 @@ __export(zod_exports, {
|
|
|
303
304
|
z: () => external_exports
|
|
304
305
|
});
|
|
305
306
|
|
|
306
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
307
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/external.js
|
|
307
308
|
var external_exports = {};
|
|
308
309
|
__export(external_exports, {
|
|
309
310
|
$brand: () => $brand,
|
|
@@ -438,6 +439,7 @@ __export(external_exports, {
|
|
|
438
439
|
int32: () => int32,
|
|
439
440
|
int64: () => int64,
|
|
440
441
|
intersection: () => intersection,
|
|
442
|
+
invertCodec: () => invertCodec,
|
|
441
443
|
ipv4: () => ipv42,
|
|
442
444
|
ipv6: () => ipv62,
|
|
443
445
|
iso: () => iso_exports,
|
|
@@ -544,7 +546,7 @@ __export(external_exports, {
|
|
|
544
546
|
xor: () => xor
|
|
545
547
|
});
|
|
546
548
|
|
|
547
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
549
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
548
550
|
var core_exports2 = {};
|
|
549
551
|
__export(core_exports2, {
|
|
550
552
|
$ZodAny: () => $ZodAny,
|
|
@@ -624,6 +626,7 @@ __export(core_exports2, {
|
|
|
624
626
|
$ZodOptional: () => $ZodOptional,
|
|
625
627
|
$ZodPipe: () => $ZodPipe,
|
|
626
628
|
$ZodPrefault: () => $ZodPrefault,
|
|
629
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
627
630
|
$ZodPromise: () => $ZodPromise,
|
|
628
631
|
$ZodReadonly: () => $ZodReadonly,
|
|
629
632
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -822,8 +825,9 @@ __export(core_exports2, {
|
|
|
822
825
|
version: () => version
|
|
823
826
|
});
|
|
824
827
|
|
|
825
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
826
|
-
var
|
|
828
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
829
|
+
var _a;
|
|
830
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
827
831
|
status: "aborted"
|
|
828
832
|
});
|
|
829
833
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -858,10 +862,10 @@ function $constructor(name, initializer2, params) {
|
|
|
858
862
|
}
|
|
859
863
|
Object.defineProperty(Definition, "name", { value: name });
|
|
860
864
|
function _(def) {
|
|
861
|
-
var
|
|
865
|
+
var _a3;
|
|
862
866
|
const inst = params?.Parent ? new Definition() : this;
|
|
863
867
|
init(inst, def);
|
|
864
|
-
(
|
|
868
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
865
869
|
for (const fn of inst._zod.deferred) {
|
|
866
870
|
fn();
|
|
867
871
|
}
|
|
@@ -890,14 +894,15 @@ var $ZodEncodeError = class extends Error {
|
|
|
890
894
|
this.name = "ZodEncodeError";
|
|
891
895
|
}
|
|
892
896
|
};
|
|
893
|
-
|
|
897
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
898
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
894
899
|
function config(newConfig) {
|
|
895
900
|
if (newConfig)
|
|
896
901
|
Object.assign(globalConfig, newConfig);
|
|
897
902
|
return globalConfig;
|
|
898
903
|
}
|
|
899
904
|
|
|
900
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
905
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
901
906
|
var util_exports = {};
|
|
902
907
|
__export(util_exports, {
|
|
903
908
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -923,6 +928,7 @@ __export(util_exports, {
|
|
|
923
928
|
defineLazy: () => defineLazy,
|
|
924
929
|
esc: () => esc,
|
|
925
930
|
escapeRegex: () => escapeRegex,
|
|
931
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
926
932
|
extend: () => extend,
|
|
927
933
|
finalizeIssue: () => finalizeIssue,
|
|
928
934
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -1011,19 +1017,12 @@ function cleanRegex(source) {
|
|
|
1011
1017
|
return source.slice(start, end);
|
|
1012
1018
|
}
|
|
1013
1019
|
function floatSafeRemainder(val, step) {
|
|
1014
|
-
const
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1017
|
-
if (
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
1024
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1025
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1026
|
-
return valInt % stepInt / 10 ** decCount;
|
|
1020
|
+
const ratio = val / step;
|
|
1021
|
+
const roundedRatio = Math.round(ratio);
|
|
1022
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
1023
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
1024
|
+
return 0;
|
|
1025
|
+
return ratio - roundedRatio;
|
|
1027
1026
|
}
|
|
1028
1027
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
1029
1028
|
function defineLazy(object2, key, getter) {
|
|
@@ -1105,7 +1104,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
1105
1104
|
function isObject(data) {
|
|
1106
1105
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
1107
1106
|
}
|
|
1108
|
-
var allowsEval = cached(() => {
|
|
1107
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
1108
|
+
if (globalConfig.jitless) {
|
|
1109
|
+
return false;
|
|
1110
|
+
}
|
|
1109
1111
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
1110
1112
|
return false;
|
|
1111
1113
|
}
|
|
@@ -1138,6 +1140,10 @@ function shallowClone(o) {
|
|
|
1138
1140
|
return { ...o };
|
|
1139
1141
|
if (Array.isArray(o))
|
|
1140
1142
|
return [...o];
|
|
1143
|
+
if (o instanceof Map)
|
|
1144
|
+
return new Map(o);
|
|
1145
|
+
if (o instanceof Set)
|
|
1146
|
+
return new Set(o);
|
|
1141
1147
|
return o;
|
|
1142
1148
|
}
|
|
1143
1149
|
function numKeys(data) {
|
|
@@ -1194,7 +1200,14 @@ var getParsedType = (data) => {
|
|
|
1194
1200
|
}
|
|
1195
1201
|
};
|
|
1196
1202
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
1197
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1203
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1204
|
+
"string",
|
|
1205
|
+
"number",
|
|
1206
|
+
"bigint",
|
|
1207
|
+
"boolean",
|
|
1208
|
+
"symbol",
|
|
1209
|
+
"undefined"
|
|
1210
|
+
]);
|
|
1198
1211
|
function escapeRegex(str) {
|
|
1199
1212
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1200
1213
|
}
|
|
@@ -1363,6 +1376,9 @@ function safeExtend(schema, shape) {
|
|
|
1363
1376
|
return clone(schema, def);
|
|
1364
1377
|
}
|
|
1365
1378
|
function merge(a, b) {
|
|
1379
|
+
if (a._zod.def.checks?.length) {
|
|
1380
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1381
|
+
}
|
|
1366
1382
|
const def = mergeDefs(a._zod.def, {
|
|
1367
1383
|
get shape() {
|
|
1368
1384
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1372,8 +1388,7 @@ function merge(a, b) {
|
|
|
1372
1388
|
get catchall() {
|
|
1373
1389
|
return b._zod.def.catchall;
|
|
1374
1390
|
},
|
|
1375
|
-
checks: []
|
|
1376
|
-
// delete existing checks
|
|
1391
|
+
checks: b._zod.def.checks ?? []
|
|
1377
1392
|
});
|
|
1378
1393
|
return clone(a, def);
|
|
1379
1394
|
}
|
|
@@ -1456,10 +1471,20 @@ function aborted(x, startIndex = 0) {
|
|
|
1456
1471
|
}
|
|
1457
1472
|
return false;
|
|
1458
1473
|
}
|
|
1474
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1475
|
+
if (x.aborted === true)
|
|
1476
|
+
return true;
|
|
1477
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1478
|
+
if (x.issues[i]?.continue === false) {
|
|
1479
|
+
return true;
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
return false;
|
|
1483
|
+
}
|
|
1459
1484
|
function prefixIssues(path, issues) {
|
|
1460
1485
|
return issues.map((iss) => {
|
|
1461
|
-
var
|
|
1462
|
-
(
|
|
1486
|
+
var _a3;
|
|
1487
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
1463
1488
|
iss.path.unshift(path);
|
|
1464
1489
|
return iss;
|
|
1465
1490
|
});
|
|
@@ -1468,17 +1493,14 @@ function unwrapMessage(message) {
|
|
|
1468
1493
|
return typeof message === "string" ? message : message?.message;
|
|
1469
1494
|
}
|
|
1470
1495
|
function finalizeIssue(iss, ctx, config2) {
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
delete full.continue;
|
|
1478
|
-
if (!ctx?.reportInput) {
|
|
1479
|
-
delete full.input;
|
|
1496
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
1497
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1498
|
+
rest.path ?? (rest.path = []);
|
|
1499
|
+
rest.message = message;
|
|
1500
|
+
if (ctx?.reportInput) {
|
|
1501
|
+
rest.input = _input;
|
|
1480
1502
|
}
|
|
1481
|
-
return
|
|
1503
|
+
return rest;
|
|
1482
1504
|
}
|
|
1483
1505
|
function getSizableOrigin(input) {
|
|
1484
1506
|
if (input instanceof Set)
|
|
@@ -1576,7 +1598,7 @@ var Class = class {
|
|
|
1576
1598
|
}
|
|
1577
1599
|
};
|
|
1578
1600
|
|
|
1579
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1601
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1580
1602
|
var initializer = (inst, def) => {
|
|
1581
1603
|
inst.name = "$ZodError";
|
|
1582
1604
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1595,10 +1617,10 @@ var initializer = (inst, def) => {
|
|
|
1595
1617
|
};
|
|
1596
1618
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1597
1619
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1598
|
-
function flattenError(
|
|
1620
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1599
1621
|
const fieldErrors = {};
|
|
1600
1622
|
const formErrors = [];
|
|
1601
|
-
for (const sub of
|
|
1623
|
+
for (const sub of error51.issues) {
|
|
1602
1624
|
if (sub.path.length > 0) {
|
|
1603
1625
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1604
1626
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1608,50 +1630,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1608
1630
|
}
|
|
1609
1631
|
return { formErrors, fieldErrors };
|
|
1610
1632
|
}
|
|
1611
|
-
function formatError(
|
|
1633
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1612
1634
|
const fieldErrors = { _errors: [] };
|
|
1613
|
-
const processError = (
|
|
1614
|
-
for (const issue2 of
|
|
1635
|
+
const processError = (error52, path = []) => {
|
|
1636
|
+
for (const issue2 of error52.issues) {
|
|
1615
1637
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1616
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1638
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1617
1639
|
} else if (issue2.code === "invalid_key") {
|
|
1618
|
-
processError({ issues: issue2.issues });
|
|
1640
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1619
1641
|
} else if (issue2.code === "invalid_element") {
|
|
1620
|
-
processError({ issues: issue2.issues });
|
|
1621
|
-
} else if (issue2.path.length === 0) {
|
|
1622
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1642
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1623
1643
|
} else {
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1644
|
+
const fullpath = [...path, ...issue2.path];
|
|
1645
|
+
if (fullpath.length === 0) {
|
|
1646
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1647
|
+
} else {
|
|
1648
|
+
let curr = fieldErrors;
|
|
1649
|
+
let i = 0;
|
|
1650
|
+
while (i < fullpath.length) {
|
|
1651
|
+
const el = fullpath[i];
|
|
1652
|
+
const terminal = i === fullpath.length - 1;
|
|
1653
|
+
if (!terminal) {
|
|
1654
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1655
|
+
} else {
|
|
1656
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1657
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1658
|
+
}
|
|
1659
|
+
curr = curr[el];
|
|
1660
|
+
i++;
|
|
1634
1661
|
}
|
|
1635
|
-
curr = curr[el];
|
|
1636
|
-
i++;
|
|
1637
1662
|
}
|
|
1638
1663
|
}
|
|
1639
1664
|
}
|
|
1640
1665
|
};
|
|
1641
|
-
processError(
|
|
1666
|
+
processError(error51);
|
|
1642
1667
|
return fieldErrors;
|
|
1643
1668
|
}
|
|
1644
|
-
function treeifyError(
|
|
1669
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1645
1670
|
const result = { errors: [] };
|
|
1646
|
-
const processError = (
|
|
1647
|
-
var
|
|
1648
|
-
for (const issue2 of
|
|
1671
|
+
const processError = (error52, path = []) => {
|
|
1672
|
+
var _a3, _b;
|
|
1673
|
+
for (const issue2 of error52.issues) {
|
|
1649
1674
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1650
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1675
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1651
1676
|
} else if (issue2.code === "invalid_key") {
|
|
1652
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1677
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1653
1678
|
} else if (issue2.code === "invalid_element") {
|
|
1654
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1679
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1655
1680
|
} else {
|
|
1656
1681
|
const fullpath = [...path, ...issue2.path];
|
|
1657
1682
|
if (fullpath.length === 0) {
|
|
@@ -1665,7 +1690,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1665
1690
|
const terminal = i === fullpath.length - 1;
|
|
1666
1691
|
if (typeof el === "string") {
|
|
1667
1692
|
curr.properties ?? (curr.properties = {});
|
|
1668
|
-
(
|
|
1693
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
1669
1694
|
curr = curr.properties[el];
|
|
1670
1695
|
} else {
|
|
1671
1696
|
curr.items ?? (curr.items = []);
|
|
@@ -1680,7 +1705,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1680
1705
|
}
|
|
1681
1706
|
}
|
|
1682
1707
|
};
|
|
1683
|
-
processError(
|
|
1708
|
+
processError(error51);
|
|
1684
1709
|
return result;
|
|
1685
1710
|
}
|
|
1686
1711
|
function toDotPath(_path) {
|
|
@@ -1701,9 +1726,9 @@ function toDotPath(_path) {
|
|
|
1701
1726
|
}
|
|
1702
1727
|
return segs.join("");
|
|
1703
1728
|
}
|
|
1704
|
-
function prettifyError(
|
|
1729
|
+
function prettifyError(error51) {
|
|
1705
1730
|
const lines = [];
|
|
1706
|
-
const issues = [...
|
|
1731
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1707
1732
|
for (const issue2 of issues) {
|
|
1708
1733
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1709
1734
|
if (issue2.path?.length)
|
|
@@ -1712,9 +1737,9 @@ function prettifyError(error48) {
|
|
|
1712
1737
|
return lines.join("\n");
|
|
1713
1738
|
}
|
|
1714
1739
|
|
|
1715
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1740
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1716
1741
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1717
|
-
const ctx = _ctx ?
|
|
1742
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1718
1743
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1719
1744
|
if (result instanceof Promise) {
|
|
1720
1745
|
throw new $ZodAsyncError();
|
|
@@ -1728,7 +1753,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1728
1753
|
};
|
|
1729
1754
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1730
1755
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1731
|
-
const ctx = _ctx ?
|
|
1756
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1732
1757
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1733
1758
|
if (result instanceof Promise)
|
|
1734
1759
|
result = await result;
|
|
@@ -1753,7 +1778,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1753
1778
|
};
|
|
1754
1779
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1755
1780
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1756
|
-
const ctx = _ctx ?
|
|
1781
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1757
1782
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1758
1783
|
if (result instanceof Promise)
|
|
1759
1784
|
result = await result;
|
|
@@ -1764,7 +1789,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1764
1789
|
};
|
|
1765
1790
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1766
1791
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1767
|
-
const ctx = _ctx ?
|
|
1792
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1768
1793
|
return _parse(_Err)(schema, value, ctx);
|
|
1769
1794
|
};
|
|
1770
1795
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1773,7 +1798,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1773
1798
|
};
|
|
1774
1799
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1775
1800
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1776
|
-
const ctx = _ctx ?
|
|
1801
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1777
1802
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1778
1803
|
};
|
|
1779
1804
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1782,7 +1807,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1782
1807
|
};
|
|
1783
1808
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1784
1809
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1785
|
-
const ctx = _ctx ?
|
|
1810
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1786
1811
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1787
1812
|
};
|
|
1788
1813
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1791,7 +1816,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1791
1816
|
};
|
|
1792
1817
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1793
1818
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1794
|
-
const ctx = _ctx ?
|
|
1819
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1795
1820
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1796
1821
|
};
|
|
1797
1822
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1800,7 +1825,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1800
1825
|
};
|
|
1801
1826
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1802
1827
|
|
|
1803
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1828
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1804
1829
|
var regexes_exports = {};
|
|
1805
1830
|
__export(regexes_exports, {
|
|
1806
1831
|
base64: () => base64,
|
|
@@ -1824,6 +1849,7 @@ __export(regexes_exports, {
|
|
|
1824
1849
|
hex: () => hex,
|
|
1825
1850
|
hostname: () => hostname,
|
|
1826
1851
|
html5Email: () => html5Email,
|
|
1852
|
+
httpProtocol: () => httpProtocol,
|
|
1827
1853
|
idnEmail: () => idnEmail,
|
|
1828
1854
|
integer: () => integer,
|
|
1829
1855
|
ipv4: () => ipv4,
|
|
@@ -1862,7 +1888,7 @@ __export(regexes_exports, {
|
|
|
1862
1888
|
uuid7: () => uuid7,
|
|
1863
1889
|
xid: () => xid
|
|
1864
1890
|
});
|
|
1865
|
-
var cuid = /^[cC][
|
|
1891
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1866
1892
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1867
1893
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1868
1894
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1901,6 +1927,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1901
1927
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1902
1928
|
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])?)*\.?$/;
|
|
1903
1929
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1930
|
+
var httpProtocol = /^https?$/;
|
|
1904
1931
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1905
1932
|
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])))`;
|
|
1906
1933
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -1957,12 +1984,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1957
1984
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1958
1985
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1959
1986
|
|
|
1960
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1987
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
1961
1988
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1962
|
-
var
|
|
1989
|
+
var _a3;
|
|
1963
1990
|
inst._zod ?? (inst._zod = {});
|
|
1964
1991
|
inst._zod.def = def;
|
|
1965
|
-
(
|
|
1992
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
1966
1993
|
});
|
|
1967
1994
|
var numericOriginMap = {
|
|
1968
1995
|
number: "number",
|
|
@@ -2028,8 +2055,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
2028
2055
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
2029
2056
|
$ZodCheck.init(inst, def);
|
|
2030
2057
|
inst._zod.onattach.push((inst2) => {
|
|
2031
|
-
var
|
|
2032
|
-
(
|
|
2058
|
+
var _a3;
|
|
2059
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
2033
2060
|
});
|
|
2034
2061
|
inst._zod.check = (payload) => {
|
|
2035
2062
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -2162,9 +2189,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
2162
2189
|
};
|
|
2163
2190
|
});
|
|
2164
2191
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
2165
|
-
var
|
|
2192
|
+
var _a3;
|
|
2166
2193
|
$ZodCheck.init(inst, def);
|
|
2167
|
-
(
|
|
2194
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2168
2195
|
const val = payload.value;
|
|
2169
2196
|
return !nullish(val) && val.size !== void 0;
|
|
2170
2197
|
});
|
|
@@ -2190,9 +2217,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
2190
2217
|
};
|
|
2191
2218
|
});
|
|
2192
2219
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
2193
|
-
var
|
|
2220
|
+
var _a3;
|
|
2194
2221
|
$ZodCheck.init(inst, def);
|
|
2195
|
-
(
|
|
2222
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2196
2223
|
const val = payload.value;
|
|
2197
2224
|
return !nullish(val) && val.size !== void 0;
|
|
2198
2225
|
});
|
|
@@ -2218,9 +2245,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
2218
2245
|
};
|
|
2219
2246
|
});
|
|
2220
2247
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
2221
|
-
var
|
|
2248
|
+
var _a3;
|
|
2222
2249
|
$ZodCheck.init(inst, def);
|
|
2223
|
-
(
|
|
2250
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2224
2251
|
const val = payload.value;
|
|
2225
2252
|
return !nullish(val) && val.size !== void 0;
|
|
2226
2253
|
});
|
|
@@ -2248,9 +2275,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
2248
2275
|
};
|
|
2249
2276
|
});
|
|
2250
2277
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2251
|
-
var
|
|
2278
|
+
var _a3;
|
|
2252
2279
|
$ZodCheck.init(inst, def);
|
|
2253
|
-
(
|
|
2280
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2254
2281
|
const val = payload.value;
|
|
2255
2282
|
return !nullish(val) && val.length !== void 0;
|
|
2256
2283
|
});
|
|
@@ -2277,9 +2304,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2277
2304
|
};
|
|
2278
2305
|
});
|
|
2279
2306
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2280
|
-
var
|
|
2307
|
+
var _a3;
|
|
2281
2308
|
$ZodCheck.init(inst, def);
|
|
2282
|
-
(
|
|
2309
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2283
2310
|
const val = payload.value;
|
|
2284
2311
|
return !nullish(val) && val.length !== void 0;
|
|
2285
2312
|
});
|
|
@@ -2306,9 +2333,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2306
2333
|
};
|
|
2307
2334
|
});
|
|
2308
2335
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2309
|
-
var
|
|
2336
|
+
var _a3;
|
|
2310
2337
|
$ZodCheck.init(inst, def);
|
|
2311
|
-
(
|
|
2338
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2312
2339
|
const val = payload.value;
|
|
2313
2340
|
return !nullish(val) && val.length !== void 0;
|
|
2314
2341
|
});
|
|
@@ -2337,7 +2364,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2337
2364
|
};
|
|
2338
2365
|
});
|
|
2339
2366
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2340
|
-
var
|
|
2367
|
+
var _a3, _b;
|
|
2341
2368
|
$ZodCheck.init(inst, def);
|
|
2342
2369
|
inst._zod.onattach.push((inst2) => {
|
|
2343
2370
|
const bag = inst2._zod.bag;
|
|
@@ -2348,7 +2375,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2348
2375
|
}
|
|
2349
2376
|
});
|
|
2350
2377
|
if (def.pattern)
|
|
2351
|
-
(
|
|
2378
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2352
2379
|
def.pattern.lastIndex = 0;
|
|
2353
2380
|
if (def.pattern.test(payload.value))
|
|
2354
2381
|
return;
|
|
@@ -2505,7 +2532,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2505
2532
|
};
|
|
2506
2533
|
});
|
|
2507
2534
|
|
|
2508
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2535
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2509
2536
|
var Doc = class {
|
|
2510
2537
|
constructor(args = []) {
|
|
2511
2538
|
this.content = [];
|
|
@@ -2541,16 +2568,16 @@ var Doc = class {
|
|
|
2541
2568
|
}
|
|
2542
2569
|
};
|
|
2543
2570
|
|
|
2544
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2571
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2545
2572
|
var version = {
|
|
2546
2573
|
major: 4,
|
|
2547
|
-
minor:
|
|
2548
|
-
patch:
|
|
2574
|
+
minor: 4,
|
|
2575
|
+
patch: 3
|
|
2549
2576
|
};
|
|
2550
2577
|
|
|
2551
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2578
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2552
2579
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2553
|
-
var
|
|
2580
|
+
var _a3;
|
|
2554
2581
|
inst ?? (inst = {});
|
|
2555
2582
|
inst._zod.def = def;
|
|
2556
2583
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2565,7 +2592,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2565
2592
|
}
|
|
2566
2593
|
}
|
|
2567
2594
|
if (checks.length === 0) {
|
|
2568
|
-
(
|
|
2595
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2569
2596
|
inst._zod.deferred?.push(() => {
|
|
2570
2597
|
inst._zod.run = inst._zod.parse;
|
|
2571
2598
|
});
|
|
@@ -2575,6 +2602,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2575
2602
|
let asyncResult;
|
|
2576
2603
|
for (const ch of checks2) {
|
|
2577
2604
|
if (ch._zod.def.when) {
|
|
2605
|
+
if (explicitlyAborted(payload))
|
|
2606
|
+
continue;
|
|
2578
2607
|
const shouldRun = ch._zod.def.when(payload);
|
|
2579
2608
|
if (!shouldRun)
|
|
2580
2609
|
continue;
|
|
@@ -2715,6 +2744,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2715
2744
|
inst._zod.check = (payload) => {
|
|
2716
2745
|
try {
|
|
2717
2746
|
const trimmed = payload.value.trim();
|
|
2747
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2748
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2749
|
+
payload.issues.push({
|
|
2750
|
+
code: "invalid_format",
|
|
2751
|
+
format: "url",
|
|
2752
|
+
note: "Invalid URL format",
|
|
2753
|
+
input: payload.value,
|
|
2754
|
+
inst,
|
|
2755
|
+
continue: !def.abort
|
|
2756
|
+
});
|
|
2757
|
+
return;
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2718
2760
|
const url2 = new URL(trimmed);
|
|
2719
2761
|
if (def.hostname) {
|
|
2720
2762
|
def.hostname.lastIndex = 0;
|
|
@@ -2868,6 +2910,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2868
2910
|
function isValidBase64(data) {
|
|
2869
2911
|
if (data === "")
|
|
2870
2912
|
return true;
|
|
2913
|
+
if (/\s/.test(data))
|
|
2914
|
+
return false;
|
|
2871
2915
|
if (data.length % 4 !== 0)
|
|
2872
2916
|
return false;
|
|
2873
2917
|
try {
|
|
@@ -3060,8 +3104,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
3060
3104
|
$ZodType.init(inst, def);
|
|
3061
3105
|
inst._zod.pattern = _undefined;
|
|
3062
3106
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
3063
|
-
inst._zod.optin = "optional";
|
|
3064
|
-
inst._zod.optout = "optional";
|
|
3065
3107
|
inst._zod.parse = (payload, _ctx) => {
|
|
3066
3108
|
const input = payload.value;
|
|
3067
3109
|
if (typeof input === "undefined")
|
|
@@ -3190,15 +3232,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
3190
3232
|
return payload;
|
|
3191
3233
|
};
|
|
3192
3234
|
});
|
|
3193
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
3235
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
3236
|
+
const isPresent = key in input;
|
|
3194
3237
|
if (result.issues.length) {
|
|
3195
|
-
if (isOptionalOut && !
|
|
3238
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
3196
3239
|
return;
|
|
3197
3240
|
}
|
|
3198
3241
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
3199
3242
|
}
|
|
3243
|
+
if (!isPresent && !isOptionalIn) {
|
|
3244
|
+
if (!result.issues.length) {
|
|
3245
|
+
final.issues.push({
|
|
3246
|
+
code: "invalid_type",
|
|
3247
|
+
expected: "nonoptional",
|
|
3248
|
+
input: void 0,
|
|
3249
|
+
path: [key]
|
|
3250
|
+
});
|
|
3251
|
+
}
|
|
3252
|
+
return;
|
|
3253
|
+
}
|
|
3200
3254
|
if (result.value === void 0) {
|
|
3201
|
-
if (
|
|
3255
|
+
if (isPresent) {
|
|
3202
3256
|
final.value[key] = void 0;
|
|
3203
3257
|
}
|
|
3204
3258
|
} else {
|
|
@@ -3226,8 +3280,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3226
3280
|
const keySet = def.keySet;
|
|
3227
3281
|
const _catchall = def.catchall._zod;
|
|
3228
3282
|
const t = _catchall.def.type;
|
|
3283
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
3229
3284
|
const isOptionalOut = _catchall.optout === "optional";
|
|
3230
3285
|
for (const key in input) {
|
|
3286
|
+
if (key === "__proto__")
|
|
3287
|
+
continue;
|
|
3231
3288
|
if (keySet.has(key))
|
|
3232
3289
|
continue;
|
|
3233
3290
|
if (t === "never") {
|
|
@@ -3236,9 +3293,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3236
3293
|
}
|
|
3237
3294
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
3238
3295
|
if (r instanceof Promise) {
|
|
3239
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3296
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3240
3297
|
} else {
|
|
3241
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3298
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3242
3299
|
}
|
|
3243
3300
|
}
|
|
3244
3301
|
if (unrecognized.length) {
|
|
@@ -3304,12 +3361,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3304
3361
|
const shape = value.shape;
|
|
3305
3362
|
for (const key of value.keys) {
|
|
3306
3363
|
const el = shape[key];
|
|
3364
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3307
3365
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3308
3366
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3309
3367
|
if (r instanceof Promise) {
|
|
3310
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3368
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3311
3369
|
} else {
|
|
3312
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3370
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3313
3371
|
}
|
|
3314
3372
|
}
|
|
3315
3373
|
if (!catchall2) {
|
|
@@ -3340,9 +3398,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3340
3398
|
const id = ids[key];
|
|
3341
3399
|
const k = esc(key);
|
|
3342
3400
|
const schema = shape[key];
|
|
3401
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3343
3402
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3344
3403
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3345
|
-
if (isOptionalOut) {
|
|
3404
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3346
3405
|
doc.write(`
|
|
3347
3406
|
if (${id}.issues.length) {
|
|
3348
3407
|
if (${k} in input) {
|
|
@@ -3361,6 +3420,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3361
3420
|
newResult[${k}] = ${id}.value;
|
|
3362
3421
|
}
|
|
3363
3422
|
|
|
3423
|
+
`);
|
|
3424
|
+
} else if (!isOptionalIn) {
|
|
3425
|
+
doc.write(`
|
|
3426
|
+
const ${id}_present = ${k} in input;
|
|
3427
|
+
if (${id}.issues.length) {
|
|
3428
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3429
|
+
...iss,
|
|
3430
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3431
|
+
})));
|
|
3432
|
+
}
|
|
3433
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3434
|
+
payload.issues.push({
|
|
3435
|
+
code: "invalid_type",
|
|
3436
|
+
expected: "nonoptional",
|
|
3437
|
+
input: undefined,
|
|
3438
|
+
path: [${k}]
|
|
3439
|
+
});
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
if (${id}_present) {
|
|
3443
|
+
if (${id}.value === undefined) {
|
|
3444
|
+
newResult[${k}] = undefined;
|
|
3445
|
+
} else {
|
|
3446
|
+
newResult[${k}] = ${id}.value;
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3364
3450
|
`);
|
|
3365
3451
|
} else {
|
|
3366
3452
|
doc.write(`
|
|
@@ -3454,10 +3540,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3454
3540
|
}
|
|
3455
3541
|
return void 0;
|
|
3456
3542
|
});
|
|
3457
|
-
const
|
|
3458
|
-
const first = def.options[0]._zod.run;
|
|
3543
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3459
3544
|
inst._zod.parse = (payload, ctx) => {
|
|
3460
|
-
if (
|
|
3545
|
+
if (first) {
|
|
3461
3546
|
return first(payload, ctx);
|
|
3462
3547
|
}
|
|
3463
3548
|
let async = false;
|
|
@@ -3510,10 +3595,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3510
3595
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3511
3596
|
$ZodUnion.init(inst, def);
|
|
3512
3597
|
def.inclusive = false;
|
|
3513
|
-
const
|
|
3514
|
-
const first = def.options[0]._zod.run;
|
|
3598
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3515
3599
|
inst._zod.parse = (payload, ctx) => {
|
|
3516
|
-
if (
|
|
3600
|
+
if (first) {
|
|
3517
3601
|
return first(payload, ctx);
|
|
3518
3602
|
}
|
|
3519
3603
|
let async = false;
|
|
@@ -3588,7 +3672,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3588
3672
|
if (opt) {
|
|
3589
3673
|
return opt._zod.run(payload, ctx);
|
|
3590
3674
|
}
|
|
3591
|
-
if (def.unionFallback) {
|
|
3675
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3592
3676
|
return _super(payload, ctx);
|
|
3593
3677
|
}
|
|
3594
3678
|
payload.issues.push({
|
|
@@ -3596,6 +3680,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3596
3680
|
errors: [],
|
|
3597
3681
|
note: "No matching discriminator",
|
|
3598
3682
|
discriminator: def.discriminator,
|
|
3683
|
+
options: Array.from(disc.value.keys()),
|
|
3599
3684
|
input,
|
|
3600
3685
|
path: [def.discriminator],
|
|
3601
3686
|
inst
|
|
@@ -3717,64 +3802,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3717
3802
|
}
|
|
3718
3803
|
payload.value = [];
|
|
3719
3804
|
const proms = [];
|
|
3720
|
-
const
|
|
3721
|
-
const
|
|
3805
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3806
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3722
3807
|
if (!def.rest) {
|
|
3723
|
-
|
|
3724
|
-
const tooSmall = input.length < optStart - 1;
|
|
3725
|
-
if (tooBig || tooSmall) {
|
|
3808
|
+
if (input.length < optinStart) {
|
|
3726
3809
|
payload.issues.push({
|
|
3727
|
-
|
|
3810
|
+
code: "too_small",
|
|
3811
|
+
minimum: optinStart,
|
|
3812
|
+
inclusive: true,
|
|
3728
3813
|
input,
|
|
3729
3814
|
inst,
|
|
3730
3815
|
origin: "array"
|
|
3731
3816
|
});
|
|
3732
3817
|
return payload;
|
|
3733
3818
|
}
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3819
|
+
if (input.length > items.length) {
|
|
3820
|
+
payload.issues.push({
|
|
3821
|
+
code: "too_big",
|
|
3822
|
+
maximum: items.length,
|
|
3823
|
+
inclusive: true,
|
|
3824
|
+
input,
|
|
3825
|
+
inst,
|
|
3826
|
+
origin: "array"
|
|
3827
|
+
});
|
|
3741
3828
|
}
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
}, ctx);
|
|
3746
|
-
if (
|
|
3747
|
-
proms.push(
|
|
3829
|
+
}
|
|
3830
|
+
const itemResults = new Array(items.length);
|
|
3831
|
+
for (let i = 0; i < items.length; i++) {
|
|
3832
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3833
|
+
if (r instanceof Promise) {
|
|
3834
|
+
proms.push(r.then((rr) => {
|
|
3835
|
+
itemResults[i] = rr;
|
|
3836
|
+
}));
|
|
3748
3837
|
} else {
|
|
3749
|
-
|
|
3838
|
+
itemResults[i] = r;
|
|
3750
3839
|
}
|
|
3751
3840
|
}
|
|
3752
3841
|
if (def.rest) {
|
|
3842
|
+
let i = items.length - 1;
|
|
3753
3843
|
const rest = input.slice(items.length);
|
|
3754
3844
|
for (const el of rest) {
|
|
3755
3845
|
i++;
|
|
3756
|
-
const result = def.rest._zod.run({
|
|
3757
|
-
value: el,
|
|
3758
|
-
issues: []
|
|
3759
|
-
}, ctx);
|
|
3846
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3760
3847
|
if (result instanceof Promise) {
|
|
3761
|
-
proms.push(result.then((
|
|
3848
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3762
3849
|
} else {
|
|
3763
3850
|
handleTupleResult(result, payload, i);
|
|
3764
3851
|
}
|
|
3765
3852
|
}
|
|
3766
3853
|
}
|
|
3767
|
-
if (proms.length)
|
|
3768
|
-
return Promise.all(proms).then(() => payload);
|
|
3769
|
-
|
|
3854
|
+
if (proms.length) {
|
|
3855
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3856
|
+
}
|
|
3857
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3770
3858
|
};
|
|
3771
3859
|
});
|
|
3860
|
+
function getTupleOptStart(items, key) {
|
|
3861
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
3862
|
+
if (items[i]._zod[key] !== "optional")
|
|
3863
|
+
return i + 1;
|
|
3864
|
+
}
|
|
3865
|
+
return 0;
|
|
3866
|
+
}
|
|
3772
3867
|
function handleTupleResult(result, final, index) {
|
|
3773
3868
|
if (result.issues.length) {
|
|
3774
3869
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3775
3870
|
}
|
|
3776
3871
|
final.value[index] = result.value;
|
|
3777
3872
|
}
|
|
3873
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3874
|
+
for (let i = 0; i < items.length; i++) {
|
|
3875
|
+
const r = itemResults[i];
|
|
3876
|
+
const isPresent = i < input.length;
|
|
3877
|
+
if (r.issues.length) {
|
|
3878
|
+
if (!isPresent && i >= optoutStart) {
|
|
3879
|
+
final.value.length = i;
|
|
3880
|
+
break;
|
|
3881
|
+
}
|
|
3882
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
3883
|
+
}
|
|
3884
|
+
final.value[i] = r.value;
|
|
3885
|
+
}
|
|
3886
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
3887
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
3888
|
+
final.value.length = i;
|
|
3889
|
+
} else {
|
|
3890
|
+
break;
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
return final;
|
|
3894
|
+
}
|
|
3778
3895
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3779
3896
|
$ZodType.init(inst, def);
|
|
3780
3897
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3796,19 +3913,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3796
3913
|
for (const key of values) {
|
|
3797
3914
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3798
3915
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3916
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3917
|
+
if (keyResult instanceof Promise) {
|
|
3918
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3919
|
+
}
|
|
3920
|
+
if (keyResult.issues.length) {
|
|
3921
|
+
payload.issues.push({
|
|
3922
|
+
code: "invalid_key",
|
|
3923
|
+
origin: "record",
|
|
3924
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3925
|
+
input: key,
|
|
3926
|
+
path: [key],
|
|
3927
|
+
inst
|
|
3928
|
+
});
|
|
3929
|
+
continue;
|
|
3930
|
+
}
|
|
3931
|
+
const outKey = keyResult.value;
|
|
3799
3932
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3800
3933
|
if (result instanceof Promise) {
|
|
3801
3934
|
proms.push(result.then((result2) => {
|
|
3802
3935
|
if (result2.issues.length) {
|
|
3803
3936
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3804
3937
|
}
|
|
3805
|
-
payload.value[
|
|
3938
|
+
payload.value[outKey] = result2.value;
|
|
3806
3939
|
}));
|
|
3807
3940
|
} else {
|
|
3808
3941
|
if (result.issues.length) {
|
|
3809
3942
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3810
3943
|
}
|
|
3811
|
-
payload.value[
|
|
3944
|
+
payload.value[outKey] = result.value;
|
|
3812
3945
|
}
|
|
3813
3946
|
}
|
|
3814
3947
|
}
|
|
@@ -3832,6 +3965,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3832
3965
|
for (const key of Reflect.ownKeys(input)) {
|
|
3833
3966
|
if (key === "__proto__")
|
|
3834
3967
|
continue;
|
|
3968
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3969
|
+
continue;
|
|
3835
3970
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3836
3971
|
if (keyResult instanceof Promise) {
|
|
3837
3972
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -4036,6 +4171,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
4036
4171
|
});
|
|
4037
4172
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
4038
4173
|
$ZodType.init(inst, def);
|
|
4174
|
+
inst._zod.optin = "optional";
|
|
4039
4175
|
inst._zod.parse = (payload, ctx) => {
|
|
4040
4176
|
if (ctx.direction === "backward") {
|
|
4041
4177
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -4045,6 +4181,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
4045
4181
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
4046
4182
|
return output.then((output2) => {
|
|
4047
4183
|
payload.value = output2;
|
|
4184
|
+
payload.fallback = true;
|
|
4048
4185
|
return payload;
|
|
4049
4186
|
});
|
|
4050
4187
|
}
|
|
@@ -4052,11 +4189,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
4052
4189
|
throw new $ZodAsyncError();
|
|
4053
4190
|
}
|
|
4054
4191
|
payload.value = _out;
|
|
4192
|
+
payload.fallback = true;
|
|
4055
4193
|
return payload;
|
|
4056
4194
|
};
|
|
4057
4195
|
});
|
|
4058
4196
|
function handleOptionalResult(result, input) {
|
|
4059
|
-
if (result.issues.length
|
|
4197
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
4060
4198
|
return { issues: [], value: void 0 };
|
|
4061
4199
|
}
|
|
4062
4200
|
return result;
|
|
@@ -4074,10 +4212,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
4074
4212
|
});
|
|
4075
4213
|
inst._zod.parse = (payload, ctx) => {
|
|
4076
4214
|
if (def.innerType._zod.optin === "optional") {
|
|
4215
|
+
const input = payload.value;
|
|
4077
4216
|
const result = def.innerType._zod.run(payload, ctx);
|
|
4078
4217
|
if (result instanceof Promise)
|
|
4079
|
-
return result.then((r) => handleOptionalResult(r,
|
|
4080
|
-
return handleOptionalResult(result,
|
|
4218
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
4219
|
+
return handleOptionalResult(result, input);
|
|
4081
4220
|
}
|
|
4082
4221
|
if (payload.value === void 0) {
|
|
4083
4222
|
return payload;
|
|
@@ -4193,7 +4332,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
4193
4332
|
});
|
|
4194
4333
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
4195
4334
|
$ZodType.init(inst, def);
|
|
4196
|
-
|
|
4335
|
+
inst._zod.optin = "optional";
|
|
4197
4336
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
4198
4337
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4199
4338
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -4213,6 +4352,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4213
4352
|
input: payload.value
|
|
4214
4353
|
});
|
|
4215
4354
|
payload.issues = [];
|
|
4355
|
+
payload.fallback = true;
|
|
4216
4356
|
}
|
|
4217
4357
|
return payload;
|
|
4218
4358
|
});
|
|
@@ -4227,6 +4367,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4227
4367
|
input: payload.value
|
|
4228
4368
|
});
|
|
4229
4369
|
payload.issues = [];
|
|
4370
|
+
payload.fallback = true;
|
|
4230
4371
|
}
|
|
4231
4372
|
return payload;
|
|
4232
4373
|
};
|
|
@@ -4272,7 +4413,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
4272
4413
|
left.aborted = true;
|
|
4273
4414
|
return left;
|
|
4274
4415
|
}
|
|
4275
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4416
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4276
4417
|
}
|
|
4277
4418
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4278
4419
|
$ZodType.init(inst, def);
|
|
@@ -4324,6 +4465,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4324
4465
|
}
|
|
4325
4466
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4326
4467
|
}
|
|
4468
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4469
|
+
$ZodPipe.init(inst, def);
|
|
4470
|
+
});
|
|
4327
4471
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4328
4472
|
$ZodType.init(inst, def);
|
|
4329
4473
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4475,7 +4619,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4475
4619
|
});
|
|
4476
4620
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4477
4621
|
$ZodType.init(inst, def);
|
|
4478
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4622
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4623
|
+
const d = def;
|
|
4624
|
+
if (!d._cachedInner)
|
|
4625
|
+
d._cachedInner = def.getter();
|
|
4626
|
+
return d._cachedInner;
|
|
4627
|
+
});
|
|
4479
4628
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4480
4629
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4481
4630
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4519,7 +4668,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4519
4668
|
}
|
|
4520
4669
|
}
|
|
4521
4670
|
|
|
4522
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4671
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4523
4672
|
var locales_exports = {};
|
|
4524
4673
|
__export(locales_exports, {
|
|
4525
4674
|
ar: () => ar_default,
|
|
@@ -4530,6 +4679,7 @@ __export(locales_exports, {
|
|
|
4530
4679
|
cs: () => cs_default,
|
|
4531
4680
|
da: () => da_default,
|
|
4532
4681
|
de: () => de_default,
|
|
4682
|
+
el: () => el_default,
|
|
4533
4683
|
en: () => en_default,
|
|
4534
4684
|
eo: () => eo_default,
|
|
4535
4685
|
es: () => es_default,
|
|
@@ -4538,6 +4688,7 @@ __export(locales_exports, {
|
|
|
4538
4688
|
fr: () => fr_default,
|
|
4539
4689
|
frCA: () => fr_CA_default,
|
|
4540
4690
|
he: () => he_default,
|
|
4691
|
+
hr: () => hr_default,
|
|
4541
4692
|
hu: () => hu_default,
|
|
4542
4693
|
hy: () => hy_default,
|
|
4543
4694
|
id: () => id_default,
|
|
@@ -4557,6 +4708,7 @@ __export(locales_exports, {
|
|
|
4557
4708
|
pl: () => pl_default,
|
|
4558
4709
|
ps: () => ps_default,
|
|
4559
4710
|
pt: () => pt_default,
|
|
4711
|
+
ro: () => ro_default,
|
|
4560
4712
|
ru: () => ru_default,
|
|
4561
4713
|
sl: () => sl_default,
|
|
4562
4714
|
sv: () => sv_default,
|
|
@@ -4573,7 +4725,7 @@ __export(locales_exports, {
|
|
|
4573
4725
|
zhTW: () => zh_TW_default
|
|
4574
4726
|
});
|
|
4575
4727
|
|
|
4576
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4728
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4577
4729
|
var error = () => {
|
|
4578
4730
|
const Sizable = {
|
|
4579
4731
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4680,7 +4832,7 @@ function ar_default() {
|
|
|
4680
4832
|
};
|
|
4681
4833
|
}
|
|
4682
4834
|
|
|
4683
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4835
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4684
4836
|
var error2 = () => {
|
|
4685
4837
|
const Sizable = {
|
|
4686
4838
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4786,7 +4938,7 @@ function az_default() {
|
|
|
4786
4938
|
};
|
|
4787
4939
|
}
|
|
4788
4940
|
|
|
4789
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4941
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4790
4942
|
function getBelarusianPlural(count, one, few, many) {
|
|
4791
4943
|
const absCount = Math.abs(count);
|
|
4792
4944
|
const lastDigit = absCount % 10;
|
|
@@ -4943,7 +5095,7 @@ function be_default() {
|
|
|
4943
5095
|
};
|
|
4944
5096
|
}
|
|
4945
5097
|
|
|
4946
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5098
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
4947
5099
|
var error4 = () => {
|
|
4948
5100
|
const Sizable = {
|
|
4949
5101
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -5064,7 +5216,7 @@ function bg_default() {
|
|
|
5064
5216
|
};
|
|
5065
5217
|
}
|
|
5066
5218
|
|
|
5067
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5219
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
5068
5220
|
var error5 = () => {
|
|
5069
5221
|
const Sizable = {
|
|
5070
5222
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -5173,7 +5325,7 @@ function ca_default() {
|
|
|
5173
5325
|
};
|
|
5174
5326
|
}
|
|
5175
5327
|
|
|
5176
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5328
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
5177
5329
|
var error6 = () => {
|
|
5178
5330
|
const Sizable = {
|
|
5179
5331
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5285,7 +5437,7 @@ function cs_default() {
|
|
|
5285
5437
|
};
|
|
5286
5438
|
}
|
|
5287
5439
|
|
|
5288
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5440
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5289
5441
|
var error7 = () => {
|
|
5290
5442
|
const Sizable = {
|
|
5291
5443
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5401,7 +5553,7 @@ function da_default() {
|
|
|
5401
5553
|
};
|
|
5402
5554
|
}
|
|
5403
5555
|
|
|
5404
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5556
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5405
5557
|
var error8 = () => {
|
|
5406
5558
|
const Sizable = {
|
|
5407
5559
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5510,8 +5662,118 @@ function de_default() {
|
|
|
5510
5662
|
};
|
|
5511
5663
|
}
|
|
5512
5664
|
|
|
5513
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5665
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5514
5666
|
var error9 = () => {
|
|
5667
|
+
const Sizable = {
|
|
5668
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5669
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5670
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5671
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5672
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5673
|
+
};
|
|
5674
|
+
function getSizing(origin) {
|
|
5675
|
+
return Sizable[origin] ?? null;
|
|
5676
|
+
}
|
|
5677
|
+
const FormatDictionary = {
|
|
5678
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5679
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5680
|
+
url: "URL",
|
|
5681
|
+
emoji: "emoji",
|
|
5682
|
+
uuid: "UUID",
|
|
5683
|
+
uuidv4: "UUIDv4",
|
|
5684
|
+
uuidv6: "UUIDv6",
|
|
5685
|
+
nanoid: "nanoid",
|
|
5686
|
+
guid: "GUID",
|
|
5687
|
+
cuid: "cuid",
|
|
5688
|
+
cuid2: "cuid2",
|
|
5689
|
+
ulid: "ULID",
|
|
5690
|
+
xid: "XID",
|
|
5691
|
+
ksuid: "KSUID",
|
|
5692
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5693
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5694
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
5695
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5696
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5697
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5698
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5699
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5700
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5701
|
+
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",
|
|
5702
|
+
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",
|
|
5703
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5704
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5705
|
+
jwt: "JWT",
|
|
5706
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5707
|
+
};
|
|
5708
|
+
const TypeDictionary = {
|
|
5709
|
+
nan: "NaN"
|
|
5710
|
+
};
|
|
5711
|
+
return (issue2) => {
|
|
5712
|
+
switch (issue2.code) {
|
|
5713
|
+
case "invalid_type": {
|
|
5714
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5715
|
+
const receivedType = parsedType(issue2.input);
|
|
5716
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5717
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5718
|
+
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}`;
|
|
5719
|
+
}
|
|
5720
|
+
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}`;
|
|
5721
|
+
}
|
|
5722
|
+
case "invalid_value":
|
|
5723
|
+
if (issue2.values.length === 1)
|
|
5724
|
+
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])}`;
|
|
5725
|
+
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, "|")}`;
|
|
5726
|
+
case "too_big": {
|
|
5727
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5728
|
+
const sizing = getSizing(issue2.origin);
|
|
5729
|
+
if (sizing)
|
|
5730
|
+
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"}`;
|
|
5731
|
+
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()}`;
|
|
5732
|
+
}
|
|
5733
|
+
case "too_small": {
|
|
5734
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5735
|
+
const sizing = getSizing(issue2.origin);
|
|
5736
|
+
if (sizing) {
|
|
5737
|
+
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}`;
|
|
5738
|
+
}
|
|
5739
|
+
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()}`;
|
|
5740
|
+
}
|
|
5741
|
+
case "invalid_format": {
|
|
5742
|
+
const _issue = issue2;
|
|
5743
|
+
if (_issue.format === "starts_with") {
|
|
5744
|
+
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}"`;
|
|
5745
|
+
}
|
|
5746
|
+
if (_issue.format === "ends_with")
|
|
5747
|
+
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}"`;
|
|
5748
|
+
if (_issue.format === "includes")
|
|
5749
|
+
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}"`;
|
|
5750
|
+
if (_issue.format === "regex")
|
|
5751
|
+
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}`;
|
|
5752
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5753
|
+
}
|
|
5754
|
+
case "not_multiple_of":
|
|
5755
|
+
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}`;
|
|
5756
|
+
case "unrecognized_keys":
|
|
5757
|
+
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, ", ")}`;
|
|
5758
|
+
case "invalid_key":
|
|
5759
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5760
|
+
case "invalid_union":
|
|
5761
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5762
|
+
case "invalid_element":
|
|
5763
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5764
|
+
default:
|
|
5765
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5766
|
+
}
|
|
5767
|
+
};
|
|
5768
|
+
};
|
|
5769
|
+
function el_default() {
|
|
5770
|
+
return {
|
|
5771
|
+
localeError: error9()
|
|
5772
|
+
};
|
|
5773
|
+
}
|
|
5774
|
+
|
|
5775
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5776
|
+
var error10 = () => {
|
|
5515
5777
|
const Sizable = {
|
|
5516
5778
|
string: { unit: "characters", verb: "to have" },
|
|
5517
5779
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5605,6 +5867,10 @@ var error9 = () => {
|
|
|
5605
5867
|
case "invalid_key":
|
|
5606
5868
|
return `Invalid key in ${issue2.origin}`;
|
|
5607
5869
|
case "invalid_union":
|
|
5870
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5871
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5872
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5873
|
+
}
|
|
5608
5874
|
return "Invalid input";
|
|
5609
5875
|
case "invalid_element":
|
|
5610
5876
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5615,12 +5881,12 @@ var error9 = () => {
|
|
|
5615
5881
|
};
|
|
5616
5882
|
function en_default() {
|
|
5617
5883
|
return {
|
|
5618
|
-
localeError:
|
|
5884
|
+
localeError: error10()
|
|
5619
5885
|
};
|
|
5620
5886
|
}
|
|
5621
5887
|
|
|
5622
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5623
|
-
var
|
|
5888
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5889
|
+
var error11 = () => {
|
|
5624
5890
|
const Sizable = {
|
|
5625
5891
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5626
5892
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5725,12 +5991,12 @@ var error10 = () => {
|
|
|
5725
5991
|
};
|
|
5726
5992
|
function eo_default() {
|
|
5727
5993
|
return {
|
|
5728
|
-
localeError:
|
|
5994
|
+
localeError: error11()
|
|
5729
5995
|
};
|
|
5730
5996
|
}
|
|
5731
5997
|
|
|
5732
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5733
|
-
var
|
|
5998
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
5999
|
+
var error12 = () => {
|
|
5734
6000
|
const Sizable = {
|
|
5735
6001
|
string: { unit: "caracteres", verb: "tener" },
|
|
5736
6002
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5858,12 +6124,12 @@ var error11 = () => {
|
|
|
5858
6124
|
};
|
|
5859
6125
|
function es_default() {
|
|
5860
6126
|
return {
|
|
5861
|
-
localeError:
|
|
6127
|
+
localeError: error12()
|
|
5862
6128
|
};
|
|
5863
6129
|
}
|
|
5864
6130
|
|
|
5865
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5866
|
-
var
|
|
6131
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
6132
|
+
var error13 = () => {
|
|
5867
6133
|
const Sizable = {
|
|
5868
6134
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5869
6135
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5973,12 +6239,12 @@ var error12 = () => {
|
|
|
5973
6239
|
};
|
|
5974
6240
|
function fa_default() {
|
|
5975
6241
|
return {
|
|
5976
|
-
localeError:
|
|
6242
|
+
localeError: error13()
|
|
5977
6243
|
};
|
|
5978
6244
|
}
|
|
5979
6245
|
|
|
5980
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5981
|
-
var
|
|
6246
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
6247
|
+
var error14 = () => {
|
|
5982
6248
|
const Sizable = {
|
|
5983
6249
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
5984
6250
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -6086,12 +6352,12 @@ var error13 = () => {
|
|
|
6086
6352
|
};
|
|
6087
6353
|
function fi_default() {
|
|
6088
6354
|
return {
|
|
6089
|
-
localeError:
|
|
6355
|
+
localeError: error14()
|
|
6090
6356
|
};
|
|
6091
6357
|
}
|
|
6092
6358
|
|
|
6093
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6094
|
-
var
|
|
6359
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6360
|
+
var error15 = () => {
|
|
6095
6361
|
const Sizable = {
|
|
6096
6362
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6097
6363
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6132,9 +6398,27 @@ var error14 = () => {
|
|
|
6132
6398
|
template_literal: "entr\xE9e"
|
|
6133
6399
|
};
|
|
6134
6400
|
const TypeDictionary = {
|
|
6135
|
-
|
|
6401
|
+
string: "cha\xEEne",
|
|
6136
6402
|
number: "nombre",
|
|
6137
|
-
|
|
6403
|
+
int: "entier",
|
|
6404
|
+
boolean: "bool\xE9en",
|
|
6405
|
+
bigint: "grand entier",
|
|
6406
|
+
symbol: "symbole",
|
|
6407
|
+
undefined: "ind\xE9fini",
|
|
6408
|
+
null: "null",
|
|
6409
|
+
never: "jamais",
|
|
6410
|
+
void: "vide",
|
|
6411
|
+
date: "date",
|
|
6412
|
+
array: "tableau",
|
|
6413
|
+
object: "objet",
|
|
6414
|
+
tuple: "tuple",
|
|
6415
|
+
record: "enregistrement",
|
|
6416
|
+
map: "carte",
|
|
6417
|
+
set: "ensemble",
|
|
6418
|
+
file: "fichier",
|
|
6419
|
+
nonoptional: "non-optionnel",
|
|
6420
|
+
nan: "NaN",
|
|
6421
|
+
function: "fonction"
|
|
6138
6422
|
};
|
|
6139
6423
|
return (issue2) => {
|
|
6140
6424
|
switch (issue2.code) {
|
|
@@ -6155,16 +6439,15 @@ var error14 = () => {
|
|
|
6155
6439
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6156
6440
|
const sizing = getSizing(issue2.origin);
|
|
6157
6441
|
if (sizing)
|
|
6158
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6159
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6442
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6443
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6160
6444
|
}
|
|
6161
6445
|
case "too_small": {
|
|
6162
6446
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6163
6447
|
const sizing = getSizing(issue2.origin);
|
|
6164
|
-
if (sizing)
|
|
6165
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6166
|
-
}
|
|
6167
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6448
|
+
if (sizing)
|
|
6449
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6450
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6168
6451
|
}
|
|
6169
6452
|
case "invalid_format": {
|
|
6170
6453
|
const _issue = issue2;
|
|
@@ -6195,12 +6478,12 @@ var error14 = () => {
|
|
|
6195
6478
|
};
|
|
6196
6479
|
function fr_default() {
|
|
6197
6480
|
return {
|
|
6198
|
-
localeError:
|
|
6481
|
+
localeError: error15()
|
|
6199
6482
|
};
|
|
6200
6483
|
}
|
|
6201
6484
|
|
|
6202
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6203
|
-
var
|
|
6485
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6486
|
+
var error16 = () => {
|
|
6204
6487
|
const Sizable = {
|
|
6205
6488
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6206
6489
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6303,12 +6586,12 @@ var error15 = () => {
|
|
|
6303
6586
|
};
|
|
6304
6587
|
function fr_CA_default() {
|
|
6305
6588
|
return {
|
|
6306
|
-
localeError:
|
|
6589
|
+
localeError: error16()
|
|
6307
6590
|
};
|
|
6308
6591
|
}
|
|
6309
6592
|
|
|
6310
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6311
|
-
var
|
|
6593
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6594
|
+
var error17 = () => {
|
|
6312
6595
|
const TypeNames = {
|
|
6313
6596
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6314
6597
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6498,12 +6781,135 @@ var error16 = () => {
|
|
|
6498
6781
|
};
|
|
6499
6782
|
function he_default() {
|
|
6500
6783
|
return {
|
|
6501
|
-
localeError:
|
|
6784
|
+
localeError: error17()
|
|
6502
6785
|
};
|
|
6503
6786
|
}
|
|
6504
6787
|
|
|
6505
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6506
|
-
var
|
|
6788
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6789
|
+
var error18 = () => {
|
|
6790
|
+
const Sizable = {
|
|
6791
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6792
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6793
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6794
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6795
|
+
};
|
|
6796
|
+
function getSizing(origin) {
|
|
6797
|
+
return Sizable[origin] ?? null;
|
|
6798
|
+
}
|
|
6799
|
+
const FormatDictionary = {
|
|
6800
|
+
regex: "unos",
|
|
6801
|
+
email: "email adresa",
|
|
6802
|
+
url: "URL",
|
|
6803
|
+
emoji: "emoji",
|
|
6804
|
+
uuid: "UUID",
|
|
6805
|
+
uuidv4: "UUIDv4",
|
|
6806
|
+
uuidv6: "UUIDv6",
|
|
6807
|
+
nanoid: "nanoid",
|
|
6808
|
+
guid: "GUID",
|
|
6809
|
+
cuid: "cuid",
|
|
6810
|
+
cuid2: "cuid2",
|
|
6811
|
+
ulid: "ULID",
|
|
6812
|
+
xid: "XID",
|
|
6813
|
+
ksuid: "KSUID",
|
|
6814
|
+
datetime: "ISO datum i vrijeme",
|
|
6815
|
+
date: "ISO datum",
|
|
6816
|
+
time: "ISO vrijeme",
|
|
6817
|
+
duration: "ISO trajanje",
|
|
6818
|
+
ipv4: "IPv4 adresa",
|
|
6819
|
+
ipv6: "IPv6 adresa",
|
|
6820
|
+
cidrv4: "IPv4 raspon",
|
|
6821
|
+
cidrv6: "IPv6 raspon",
|
|
6822
|
+
base64: "base64 kodirani tekst",
|
|
6823
|
+
base64url: "base64url kodirani tekst",
|
|
6824
|
+
json_string: "JSON tekst",
|
|
6825
|
+
e164: "E.164 broj",
|
|
6826
|
+
jwt: "JWT",
|
|
6827
|
+
template_literal: "unos"
|
|
6828
|
+
};
|
|
6829
|
+
const TypeDictionary = {
|
|
6830
|
+
nan: "NaN",
|
|
6831
|
+
string: "tekst",
|
|
6832
|
+
number: "broj",
|
|
6833
|
+
boolean: "boolean",
|
|
6834
|
+
array: "niz",
|
|
6835
|
+
object: "objekt",
|
|
6836
|
+
set: "skup",
|
|
6837
|
+
file: "datoteka",
|
|
6838
|
+
date: "datum",
|
|
6839
|
+
bigint: "bigint",
|
|
6840
|
+
symbol: "simbol",
|
|
6841
|
+
undefined: "undefined",
|
|
6842
|
+
null: "null",
|
|
6843
|
+
function: "funkcija",
|
|
6844
|
+
map: "mapa"
|
|
6845
|
+
};
|
|
6846
|
+
return (issue2) => {
|
|
6847
|
+
switch (issue2.code) {
|
|
6848
|
+
case "invalid_type": {
|
|
6849
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6850
|
+
const receivedType = parsedType(issue2.input);
|
|
6851
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6852
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6853
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6854
|
+
}
|
|
6855
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6856
|
+
}
|
|
6857
|
+
case "invalid_value":
|
|
6858
|
+
if (issue2.values.length === 1)
|
|
6859
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6860
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6861
|
+
case "too_big": {
|
|
6862
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6863
|
+
const sizing = getSizing(issue2.origin);
|
|
6864
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6865
|
+
if (sizing)
|
|
6866
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6867
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6868
|
+
}
|
|
6869
|
+
case "too_small": {
|
|
6870
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6871
|
+
const sizing = getSizing(issue2.origin);
|
|
6872
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6873
|
+
if (sizing) {
|
|
6874
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6875
|
+
}
|
|
6876
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6877
|
+
}
|
|
6878
|
+
case "invalid_format": {
|
|
6879
|
+
const _issue = issue2;
|
|
6880
|
+
if (_issue.format === "starts_with")
|
|
6881
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6882
|
+
if (_issue.format === "ends_with")
|
|
6883
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6884
|
+
if (_issue.format === "includes")
|
|
6885
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6886
|
+
if (_issue.format === "regex")
|
|
6887
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6888
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6889
|
+
}
|
|
6890
|
+
case "not_multiple_of":
|
|
6891
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6892
|
+
case "unrecognized_keys":
|
|
6893
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6894
|
+
case "invalid_key":
|
|
6895
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6896
|
+
case "invalid_union":
|
|
6897
|
+
return "Neispravan unos";
|
|
6898
|
+
case "invalid_element":
|
|
6899
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6900
|
+
default:
|
|
6901
|
+
return `Neispravan unos`;
|
|
6902
|
+
}
|
|
6903
|
+
};
|
|
6904
|
+
};
|
|
6905
|
+
function hr_default() {
|
|
6906
|
+
return {
|
|
6907
|
+
localeError: error18()
|
|
6908
|
+
};
|
|
6909
|
+
}
|
|
6910
|
+
|
|
6911
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6912
|
+
var error19 = () => {
|
|
6507
6913
|
const Sizable = {
|
|
6508
6914
|
string: { unit: "karakter", verb: "legyen" },
|
|
6509
6915
|
file: { unit: "byte", verb: "legyen" },
|
|
@@ -6607,11 +7013,11 @@ var error17 = () => {
|
|
|
6607
7013
|
};
|
|
6608
7014
|
function hu_default() {
|
|
6609
7015
|
return {
|
|
6610
|
-
localeError:
|
|
7016
|
+
localeError: error19()
|
|
6611
7017
|
};
|
|
6612
7018
|
}
|
|
6613
7019
|
|
|
6614
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7020
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6615
7021
|
function getArmenianPlural(count, one, many) {
|
|
6616
7022
|
return Math.abs(count) === 1 ? one : many;
|
|
6617
7023
|
}
|
|
@@ -6622,7 +7028,7 @@ function withDefiniteArticle(word) {
|
|
|
6622
7028
|
const lastChar = word[word.length - 1];
|
|
6623
7029
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6624
7030
|
}
|
|
6625
|
-
var
|
|
7031
|
+
var error20 = () => {
|
|
6626
7032
|
const Sizable = {
|
|
6627
7033
|
string: {
|
|
6628
7034
|
unit: {
|
|
@@ -6755,12 +7161,12 @@ var error18 = () => {
|
|
|
6755
7161
|
};
|
|
6756
7162
|
function hy_default() {
|
|
6757
7163
|
return {
|
|
6758
|
-
localeError:
|
|
7164
|
+
localeError: error20()
|
|
6759
7165
|
};
|
|
6760
7166
|
}
|
|
6761
7167
|
|
|
6762
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6763
|
-
var
|
|
7168
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
7169
|
+
var error21 = () => {
|
|
6764
7170
|
const Sizable = {
|
|
6765
7171
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6766
7172
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6862,12 +7268,12 @@ var error19 = () => {
|
|
|
6862
7268
|
};
|
|
6863
7269
|
function id_default() {
|
|
6864
7270
|
return {
|
|
6865
|
-
localeError:
|
|
7271
|
+
localeError: error21()
|
|
6866
7272
|
};
|
|
6867
7273
|
}
|
|
6868
7274
|
|
|
6869
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6870
|
-
var
|
|
7275
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
7276
|
+
var error22 = () => {
|
|
6871
7277
|
const Sizable = {
|
|
6872
7278
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6873
7279
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -6972,12 +7378,12 @@ var error20 = () => {
|
|
|
6972
7378
|
};
|
|
6973
7379
|
function is_default() {
|
|
6974
7380
|
return {
|
|
6975
|
-
localeError:
|
|
7381
|
+
localeError: error22()
|
|
6976
7382
|
};
|
|
6977
7383
|
}
|
|
6978
7384
|
|
|
6979
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6980
|
-
var
|
|
7385
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7386
|
+
var error23 = () => {
|
|
6981
7387
|
const Sizable = {
|
|
6982
7388
|
string: { unit: "caratteri", verb: "avere" },
|
|
6983
7389
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -7062,7 +7468,7 @@ var error21 = () => {
|
|
|
7062
7468
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
7063
7469
|
if (_issue.format === "regex")
|
|
7064
7470
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
7065
|
-
return `
|
|
7471
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7066
7472
|
}
|
|
7067
7473
|
case "not_multiple_of":
|
|
7068
7474
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -7081,12 +7487,12 @@ var error21 = () => {
|
|
|
7081
7487
|
};
|
|
7082
7488
|
function it_default() {
|
|
7083
7489
|
return {
|
|
7084
|
-
localeError:
|
|
7490
|
+
localeError: error23()
|
|
7085
7491
|
};
|
|
7086
7492
|
}
|
|
7087
7493
|
|
|
7088
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7089
|
-
var
|
|
7494
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7495
|
+
var error24 = () => {
|
|
7090
7496
|
const Sizable = {
|
|
7091
7497
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
7092
7498
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -7189,12 +7595,12 @@ var error22 = () => {
|
|
|
7189
7595
|
};
|
|
7190
7596
|
function ja_default() {
|
|
7191
7597
|
return {
|
|
7192
|
-
localeError:
|
|
7598
|
+
localeError: error24()
|
|
7193
7599
|
};
|
|
7194
7600
|
}
|
|
7195
7601
|
|
|
7196
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7197
|
-
var
|
|
7602
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7603
|
+
var error25 = () => {
|
|
7198
7604
|
const Sizable = {
|
|
7199
7605
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
7200
7606
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7227,9 +7633,9 @@ var error23 = () => {
|
|
|
7227
7633
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
7228
7634
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7229
7635
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7230
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7231
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7232
|
-
json_string: "JSON \
|
|
7636
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7637
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7638
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
7233
7639
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
7234
7640
|
jwt: "JWT",
|
|
7235
7641
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -7237,7 +7643,7 @@ var error23 = () => {
|
|
|
7237
7643
|
const TypeDictionary = {
|
|
7238
7644
|
nan: "NaN",
|
|
7239
7645
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
7240
|
-
string: "\
|
|
7646
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
7241
7647
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
7242
7648
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
7243
7649
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -7275,14 +7681,14 @@ var error23 = () => {
|
|
|
7275
7681
|
case "invalid_format": {
|
|
7276
7682
|
const _issue = issue2;
|
|
7277
7683
|
if (_issue.format === "starts_with") {
|
|
7278
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7684
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
7279
7685
|
}
|
|
7280
7686
|
if (_issue.format === "ends_with")
|
|
7281
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7687
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
7282
7688
|
if (_issue.format === "includes")
|
|
7283
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7689
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
7284
7690
|
if (_issue.format === "regex")
|
|
7285
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7691
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\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}`;
|
|
7286
7692
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7287
7693
|
}
|
|
7288
7694
|
case "not_multiple_of":
|
|
@@ -7302,12 +7708,12 @@ var error23 = () => {
|
|
|
7302
7708
|
};
|
|
7303
7709
|
function ka_default() {
|
|
7304
7710
|
return {
|
|
7305
|
-
localeError:
|
|
7711
|
+
localeError: error25()
|
|
7306
7712
|
};
|
|
7307
7713
|
}
|
|
7308
7714
|
|
|
7309
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7310
|
-
var
|
|
7715
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7716
|
+
var error26 = () => {
|
|
7311
7717
|
const Sizable = {
|
|
7312
7718
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7313
7719
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7413,17 +7819,17 @@ var error24 = () => {
|
|
|
7413
7819
|
};
|
|
7414
7820
|
function km_default() {
|
|
7415
7821
|
return {
|
|
7416
|
-
localeError:
|
|
7822
|
+
localeError: error26()
|
|
7417
7823
|
};
|
|
7418
7824
|
}
|
|
7419
7825
|
|
|
7420
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7826
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7421
7827
|
function kh_default() {
|
|
7422
7828
|
return km_default();
|
|
7423
7829
|
}
|
|
7424
7830
|
|
|
7425
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7426
|
-
var
|
|
7831
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7832
|
+
var error27 = () => {
|
|
7427
7833
|
const Sizable = {
|
|
7428
7834
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7429
7835
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7530,11 +7936,11 @@ var error25 = () => {
|
|
|
7530
7936
|
};
|
|
7531
7937
|
function ko_default() {
|
|
7532
7938
|
return {
|
|
7533
|
-
localeError:
|
|
7939
|
+
localeError: error27()
|
|
7534
7940
|
};
|
|
7535
7941
|
}
|
|
7536
7942
|
|
|
7537
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7943
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7538
7944
|
var capitalizeFirstCharacter = (text) => {
|
|
7539
7945
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7540
7946
|
};
|
|
@@ -7548,7 +7954,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
7548
7954
|
return "one";
|
|
7549
7955
|
return "few";
|
|
7550
7956
|
}
|
|
7551
|
-
var
|
|
7957
|
+
var error28 = () => {
|
|
7552
7958
|
const Sizable = {
|
|
7553
7959
|
string: {
|
|
7554
7960
|
unit: {
|
|
@@ -7734,12 +8140,12 @@ var error26 = () => {
|
|
|
7734
8140
|
};
|
|
7735
8141
|
function lt_default() {
|
|
7736
8142
|
return {
|
|
7737
|
-
localeError:
|
|
8143
|
+
localeError: error28()
|
|
7738
8144
|
};
|
|
7739
8145
|
}
|
|
7740
8146
|
|
|
7741
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7742
|
-
var
|
|
8147
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
8148
|
+
var error29 = () => {
|
|
7743
8149
|
const Sizable = {
|
|
7744
8150
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7745
8151
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7844,12 +8250,12 @@ var error27 = () => {
|
|
|
7844
8250
|
};
|
|
7845
8251
|
function mk_default() {
|
|
7846
8252
|
return {
|
|
7847
|
-
localeError:
|
|
8253
|
+
localeError: error29()
|
|
7848
8254
|
};
|
|
7849
8255
|
}
|
|
7850
8256
|
|
|
7851
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7852
|
-
var
|
|
8257
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
8258
|
+
var error30 = () => {
|
|
7853
8259
|
const Sizable = {
|
|
7854
8260
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7855
8261
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -7952,12 +8358,12 @@ var error28 = () => {
|
|
|
7952
8358
|
};
|
|
7953
8359
|
function ms_default() {
|
|
7954
8360
|
return {
|
|
7955
|
-
localeError:
|
|
8361
|
+
localeError: error30()
|
|
7956
8362
|
};
|
|
7957
8363
|
}
|
|
7958
8364
|
|
|
7959
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7960
|
-
var
|
|
8365
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8366
|
+
var error31 = () => {
|
|
7961
8367
|
const Sizable = {
|
|
7962
8368
|
string: { unit: "tekens", verb: "heeft" },
|
|
7963
8369
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -8063,12 +8469,12 @@ var error29 = () => {
|
|
|
8063
8469
|
};
|
|
8064
8470
|
function nl_default() {
|
|
8065
8471
|
return {
|
|
8066
|
-
localeError:
|
|
8472
|
+
localeError: error31()
|
|
8067
8473
|
};
|
|
8068
8474
|
}
|
|
8069
8475
|
|
|
8070
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8071
|
-
var
|
|
8476
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8477
|
+
var error32 = () => {
|
|
8072
8478
|
const Sizable = {
|
|
8073
8479
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
8074
8480
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -8172,12 +8578,12 @@ var error30 = () => {
|
|
|
8172
8578
|
};
|
|
8173
8579
|
function no_default() {
|
|
8174
8580
|
return {
|
|
8175
|
-
localeError:
|
|
8581
|
+
localeError: error32()
|
|
8176
8582
|
};
|
|
8177
8583
|
}
|
|
8178
8584
|
|
|
8179
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8180
|
-
var
|
|
8585
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8586
|
+
var error33 = () => {
|
|
8181
8587
|
const Sizable = {
|
|
8182
8588
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
8183
8589
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8282,12 +8688,12 @@ var error31 = () => {
|
|
|
8282
8688
|
};
|
|
8283
8689
|
function ota_default() {
|
|
8284
8690
|
return {
|
|
8285
|
-
localeError:
|
|
8691
|
+
localeError: error33()
|
|
8286
8692
|
};
|
|
8287
8693
|
}
|
|
8288
8694
|
|
|
8289
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8290
|
-
var
|
|
8695
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8696
|
+
var error34 = () => {
|
|
8291
8697
|
const Sizable = {
|
|
8292
8698
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
8293
8699
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8397,12 +8803,12 @@ var error32 = () => {
|
|
|
8397
8803
|
};
|
|
8398
8804
|
function ps_default() {
|
|
8399
8805
|
return {
|
|
8400
|
-
localeError:
|
|
8806
|
+
localeError: error34()
|
|
8401
8807
|
};
|
|
8402
8808
|
}
|
|
8403
8809
|
|
|
8404
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8405
|
-
var
|
|
8810
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8811
|
+
var error35 = () => {
|
|
8406
8812
|
const Sizable = {
|
|
8407
8813
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8408
8814
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8507,12 +8913,12 @@ var error33 = () => {
|
|
|
8507
8913
|
};
|
|
8508
8914
|
function pl_default() {
|
|
8509
8915
|
return {
|
|
8510
|
-
localeError:
|
|
8916
|
+
localeError: error35()
|
|
8511
8917
|
};
|
|
8512
8918
|
}
|
|
8513
8919
|
|
|
8514
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8515
|
-
var
|
|
8920
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8921
|
+
var error36 = () => {
|
|
8516
8922
|
const Sizable = {
|
|
8517
8923
|
string: { unit: "caracteres", verb: "ter" },
|
|
8518
8924
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8616,11 +9022,131 @@ var error34 = () => {
|
|
|
8616
9022
|
};
|
|
8617
9023
|
function pt_default() {
|
|
8618
9024
|
return {
|
|
8619
|
-
localeError:
|
|
9025
|
+
localeError: error36()
|
|
9026
|
+
};
|
|
9027
|
+
}
|
|
9028
|
+
|
|
9029
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
9030
|
+
var error37 = () => {
|
|
9031
|
+
const Sizable = {
|
|
9032
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
9033
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
9034
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9035
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9036
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
9037
|
+
};
|
|
9038
|
+
function getSizing(origin) {
|
|
9039
|
+
return Sizable[origin] ?? null;
|
|
9040
|
+
}
|
|
9041
|
+
const FormatDictionary = {
|
|
9042
|
+
regex: "intrare",
|
|
9043
|
+
email: "adres\u0103 de email",
|
|
9044
|
+
url: "URL",
|
|
9045
|
+
emoji: "emoji",
|
|
9046
|
+
uuid: "UUID",
|
|
9047
|
+
uuidv4: "UUIDv4",
|
|
9048
|
+
uuidv6: "UUIDv6",
|
|
9049
|
+
nanoid: "nanoid",
|
|
9050
|
+
guid: "GUID",
|
|
9051
|
+
cuid: "cuid",
|
|
9052
|
+
cuid2: "cuid2",
|
|
9053
|
+
ulid: "ULID",
|
|
9054
|
+
xid: "XID",
|
|
9055
|
+
ksuid: "KSUID",
|
|
9056
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
9057
|
+
date: "dat\u0103 ISO",
|
|
9058
|
+
time: "or\u0103 ISO",
|
|
9059
|
+
duration: "durat\u0103 ISO",
|
|
9060
|
+
ipv4: "adres\u0103 IPv4",
|
|
9061
|
+
ipv6: "adres\u0103 IPv6",
|
|
9062
|
+
mac: "adres\u0103 MAC",
|
|
9063
|
+
cidrv4: "interval IPv4",
|
|
9064
|
+
cidrv6: "interval IPv6",
|
|
9065
|
+
base64: "\u0219ir codat base64",
|
|
9066
|
+
base64url: "\u0219ir codat base64url",
|
|
9067
|
+
json_string: "\u0219ir JSON",
|
|
9068
|
+
e164: "num\u0103r E.164",
|
|
9069
|
+
jwt: "JWT",
|
|
9070
|
+
template_literal: "intrare"
|
|
9071
|
+
};
|
|
9072
|
+
const TypeDictionary = {
|
|
9073
|
+
nan: "NaN",
|
|
9074
|
+
string: "\u0219ir",
|
|
9075
|
+
number: "num\u0103r",
|
|
9076
|
+
boolean: "boolean",
|
|
9077
|
+
function: "func\u021Bie",
|
|
9078
|
+
array: "matrice",
|
|
9079
|
+
object: "obiect",
|
|
9080
|
+
undefined: "nedefinit",
|
|
9081
|
+
symbol: "simbol",
|
|
9082
|
+
bigint: "num\u0103r mare",
|
|
9083
|
+
void: "void",
|
|
9084
|
+
never: "never",
|
|
9085
|
+
map: "hart\u0103",
|
|
9086
|
+
set: "set"
|
|
9087
|
+
};
|
|
9088
|
+
return (issue2) => {
|
|
9089
|
+
switch (issue2.code) {
|
|
9090
|
+
case "invalid_type": {
|
|
9091
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9092
|
+
const receivedType = parsedType(issue2.input);
|
|
9093
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9094
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
9095
|
+
}
|
|
9096
|
+
case "invalid_value":
|
|
9097
|
+
if (issue2.values.length === 1)
|
|
9098
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
9099
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
9100
|
+
case "too_big": {
|
|
9101
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
9102
|
+
const sizing = getSizing(issue2.origin);
|
|
9103
|
+
if (sizing)
|
|
9104
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
9105
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
9106
|
+
}
|
|
9107
|
+
case "too_small": {
|
|
9108
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
9109
|
+
const sizing = getSizing(issue2.origin);
|
|
9110
|
+
if (sizing) {
|
|
9111
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9112
|
+
}
|
|
9113
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
9114
|
+
}
|
|
9115
|
+
case "invalid_format": {
|
|
9116
|
+
const _issue = issue2;
|
|
9117
|
+
if (_issue.format === "starts_with") {
|
|
9118
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
9119
|
+
}
|
|
9120
|
+
if (_issue.format === "ends_with")
|
|
9121
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
9122
|
+
if (_issue.format === "includes")
|
|
9123
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
9124
|
+
if (_issue.format === "regex")
|
|
9125
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
9126
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9127
|
+
}
|
|
9128
|
+
case "not_multiple_of":
|
|
9129
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
9130
|
+
case "unrecognized_keys":
|
|
9131
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
9132
|
+
case "invalid_key":
|
|
9133
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9134
|
+
case "invalid_union":
|
|
9135
|
+
return "Intrare invalid\u0103";
|
|
9136
|
+
case "invalid_element":
|
|
9137
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9138
|
+
default:
|
|
9139
|
+
return `Intrare invalid\u0103`;
|
|
9140
|
+
}
|
|
9141
|
+
};
|
|
9142
|
+
};
|
|
9143
|
+
function ro_default() {
|
|
9144
|
+
return {
|
|
9145
|
+
localeError: error37()
|
|
8620
9146
|
};
|
|
8621
9147
|
}
|
|
8622
9148
|
|
|
8623
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9149
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8624
9150
|
function getRussianPlural(count, one, few, many) {
|
|
8625
9151
|
const absCount = Math.abs(count);
|
|
8626
9152
|
const lastDigit = absCount % 10;
|
|
@@ -8636,7 +9162,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8636
9162
|
}
|
|
8637
9163
|
return many;
|
|
8638
9164
|
}
|
|
8639
|
-
var
|
|
9165
|
+
var error38 = () => {
|
|
8640
9166
|
const Sizable = {
|
|
8641
9167
|
string: {
|
|
8642
9168
|
unit: {
|
|
@@ -8773,12 +9299,12 @@ var error35 = () => {
|
|
|
8773
9299
|
};
|
|
8774
9300
|
function ru_default() {
|
|
8775
9301
|
return {
|
|
8776
|
-
localeError:
|
|
9302
|
+
localeError: error38()
|
|
8777
9303
|
};
|
|
8778
9304
|
}
|
|
8779
9305
|
|
|
8780
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8781
|
-
var
|
|
9306
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9307
|
+
var error39 = () => {
|
|
8782
9308
|
const Sizable = {
|
|
8783
9309
|
string: { unit: "znakov", verb: "imeti" },
|
|
8784
9310
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8883,12 +9409,12 @@ var error36 = () => {
|
|
|
8883
9409
|
};
|
|
8884
9410
|
function sl_default() {
|
|
8885
9411
|
return {
|
|
8886
|
-
localeError:
|
|
9412
|
+
localeError: error39()
|
|
8887
9413
|
};
|
|
8888
9414
|
}
|
|
8889
9415
|
|
|
8890
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8891
|
-
var
|
|
9416
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9417
|
+
var error40 = () => {
|
|
8892
9418
|
const Sizable = {
|
|
8893
9419
|
string: { unit: "tecken", verb: "att ha" },
|
|
8894
9420
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -8994,12 +9520,12 @@ var error37 = () => {
|
|
|
8994
9520
|
};
|
|
8995
9521
|
function sv_default() {
|
|
8996
9522
|
return {
|
|
8997
|
-
localeError:
|
|
9523
|
+
localeError: error40()
|
|
8998
9524
|
};
|
|
8999
9525
|
}
|
|
9000
9526
|
|
|
9001
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9002
|
-
var
|
|
9527
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9528
|
+
var error41 = () => {
|
|
9003
9529
|
const Sizable = {
|
|
9004
9530
|
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" },
|
|
9005
9531
|
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" },
|
|
@@ -9105,12 +9631,12 @@ var error38 = () => {
|
|
|
9105
9631
|
};
|
|
9106
9632
|
function ta_default() {
|
|
9107
9633
|
return {
|
|
9108
|
-
localeError:
|
|
9634
|
+
localeError: error41()
|
|
9109
9635
|
};
|
|
9110
9636
|
}
|
|
9111
9637
|
|
|
9112
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9113
|
-
var
|
|
9638
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9639
|
+
var error42 = () => {
|
|
9114
9640
|
const Sizable = {
|
|
9115
9641
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
9116
9642
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9216,12 +9742,12 @@ var error39 = () => {
|
|
|
9216
9742
|
};
|
|
9217
9743
|
function th_default() {
|
|
9218
9744
|
return {
|
|
9219
|
-
localeError:
|
|
9745
|
+
localeError: error42()
|
|
9220
9746
|
};
|
|
9221
9747
|
}
|
|
9222
9748
|
|
|
9223
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9224
|
-
var
|
|
9749
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9750
|
+
var error43 = () => {
|
|
9225
9751
|
const Sizable = {
|
|
9226
9752
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
9227
9753
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9322,12 +9848,12 @@ var error40 = () => {
|
|
|
9322
9848
|
};
|
|
9323
9849
|
function tr_default() {
|
|
9324
9850
|
return {
|
|
9325
|
-
localeError:
|
|
9851
|
+
localeError: error43()
|
|
9326
9852
|
};
|
|
9327
9853
|
}
|
|
9328
9854
|
|
|
9329
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9330
|
-
var
|
|
9855
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9856
|
+
var error44 = () => {
|
|
9331
9857
|
const Sizable = {
|
|
9332
9858
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9333
9859
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9431,17 +9957,17 @@ var error41 = () => {
|
|
|
9431
9957
|
};
|
|
9432
9958
|
function uk_default() {
|
|
9433
9959
|
return {
|
|
9434
|
-
localeError:
|
|
9960
|
+
localeError: error44()
|
|
9435
9961
|
};
|
|
9436
9962
|
}
|
|
9437
9963
|
|
|
9438
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9964
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9439
9965
|
function ua_default() {
|
|
9440
9966
|
return uk_default();
|
|
9441
9967
|
}
|
|
9442
9968
|
|
|
9443
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9444
|
-
var
|
|
9969
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
9970
|
+
var error45 = () => {
|
|
9445
9971
|
const Sizable = {
|
|
9446
9972
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9447
9973
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9547,17 +10073,18 @@ var error42 = () => {
|
|
|
9547
10073
|
};
|
|
9548
10074
|
function ur_default() {
|
|
9549
10075
|
return {
|
|
9550
|
-
localeError:
|
|
10076
|
+
localeError: error45()
|
|
9551
10077
|
};
|
|
9552
10078
|
}
|
|
9553
10079
|
|
|
9554
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9555
|
-
var
|
|
10080
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
10081
|
+
var error46 = () => {
|
|
9556
10082
|
const Sizable = {
|
|
9557
10083
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9558
10084
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9559
10085
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9560
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
10086
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
10087
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9561
10088
|
};
|
|
9562
10089
|
function getSizing(origin) {
|
|
9563
10090
|
return Sizable[origin] ?? null;
|
|
@@ -9657,12 +10184,12 @@ var error43 = () => {
|
|
|
9657
10184
|
};
|
|
9658
10185
|
function uz_default() {
|
|
9659
10186
|
return {
|
|
9660
|
-
localeError:
|
|
10187
|
+
localeError: error46()
|
|
9661
10188
|
};
|
|
9662
10189
|
}
|
|
9663
10190
|
|
|
9664
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9665
|
-
var
|
|
10191
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
10192
|
+
var error47 = () => {
|
|
9666
10193
|
const Sizable = {
|
|
9667
10194
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9668
10195
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9766,12 +10293,12 @@ var error44 = () => {
|
|
|
9766
10293
|
};
|
|
9767
10294
|
function vi_default() {
|
|
9768
10295
|
return {
|
|
9769
|
-
localeError:
|
|
10296
|
+
localeError: error47()
|
|
9770
10297
|
};
|
|
9771
10298
|
}
|
|
9772
10299
|
|
|
9773
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9774
|
-
var
|
|
10300
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
10301
|
+
var error48 = () => {
|
|
9775
10302
|
const Sizable = {
|
|
9776
10303
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9777
10304
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -9876,12 +10403,12 @@ var error45 = () => {
|
|
|
9876
10403
|
};
|
|
9877
10404
|
function zh_CN_default() {
|
|
9878
10405
|
return {
|
|
9879
|
-
localeError:
|
|
10406
|
+
localeError: error48()
|
|
9880
10407
|
};
|
|
9881
10408
|
}
|
|
9882
10409
|
|
|
9883
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9884
|
-
var
|
|
10410
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10411
|
+
var error49 = () => {
|
|
9885
10412
|
const Sizable = {
|
|
9886
10413
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
9887
10414
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -9984,12 +10511,12 @@ var error46 = () => {
|
|
|
9984
10511
|
};
|
|
9985
10512
|
function zh_TW_default() {
|
|
9986
10513
|
return {
|
|
9987
|
-
localeError:
|
|
10514
|
+
localeError: error49()
|
|
9988
10515
|
};
|
|
9989
10516
|
}
|
|
9990
10517
|
|
|
9991
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9992
|
-
var
|
|
10518
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10519
|
+
var error50 = () => {
|
|
9993
10520
|
const Sizable = {
|
|
9994
10521
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
9995
10522
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -10092,12 +10619,12 @@ var error47 = () => {
|
|
|
10092
10619
|
};
|
|
10093
10620
|
function yo_default() {
|
|
10094
10621
|
return {
|
|
10095
|
-
localeError:
|
|
10622
|
+
localeError: error50()
|
|
10096
10623
|
};
|
|
10097
10624
|
}
|
|
10098
10625
|
|
|
10099
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10100
|
-
var
|
|
10626
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10627
|
+
var _a2;
|
|
10101
10628
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
10102
10629
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
10103
10630
|
var $ZodRegistry = class {
|
|
@@ -10143,10 +10670,10 @@ var $ZodRegistry = class {
|
|
|
10143
10670
|
function registry() {
|
|
10144
10671
|
return new $ZodRegistry();
|
|
10145
10672
|
}
|
|
10146
|
-
(
|
|
10673
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
10147
10674
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10148
10675
|
|
|
10149
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10676
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
10150
10677
|
// @__NO_SIDE_EFFECTS__
|
|
10151
10678
|
function _string(Class2, params) {
|
|
10152
10679
|
return new Class2({
|
|
@@ -11061,7 +11588,7 @@ function _refine(Class2, fn, _params) {
|
|
|
11061
11588
|
return schema;
|
|
11062
11589
|
}
|
|
11063
11590
|
// @__NO_SIDE_EFFECTS__
|
|
11064
|
-
function _superRefine(fn) {
|
|
11591
|
+
function _superRefine(fn, params) {
|
|
11065
11592
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
11066
11593
|
payload.addIssue = (issue2) => {
|
|
11067
11594
|
if (typeof issue2 === "string") {
|
|
@@ -11078,7 +11605,7 @@ function _superRefine(fn) {
|
|
|
11078
11605
|
}
|
|
11079
11606
|
};
|
|
11080
11607
|
return fn(payload.value, payload);
|
|
11081
|
-
});
|
|
11608
|
+
}, params);
|
|
11082
11609
|
return ch;
|
|
11083
11610
|
}
|
|
11084
11611
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -11185,7 +11712,7 @@ function _stringFormat(Class2, format2, fnOrRegex, _params = {}) {
|
|
|
11185
11712
|
return inst;
|
|
11186
11713
|
}
|
|
11187
11714
|
|
|
11188
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
11715
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
11189
11716
|
function initializeContext(params) {
|
|
11190
11717
|
let target = params?.target ?? "draft-2020-12";
|
|
11191
11718
|
if (target === "draft-4")
|
|
@@ -11208,7 +11735,7 @@ function initializeContext(params) {
|
|
|
11208
11735
|
};
|
|
11209
11736
|
}
|
|
11210
11737
|
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
11211
|
-
var
|
|
11738
|
+
var _a3;
|
|
11212
11739
|
const def = schema._zod.def;
|
|
11213
11740
|
const seen = ctx.seen.get(schema);
|
|
11214
11741
|
if (seen) {
|
|
@@ -11255,8 +11782,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11255
11782
|
delete result.schema.examples;
|
|
11256
11783
|
delete result.schema.default;
|
|
11257
11784
|
}
|
|
11258
|
-
if (ctx.io === "input" && result.schema
|
|
11259
|
-
(
|
|
11785
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11786
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
11260
11787
|
delete result.schema._prefault;
|
|
11261
11788
|
const _result = ctx.seen.get(schema);
|
|
11262
11789
|
return _result.schema;
|
|
@@ -11437,10 +11964,15 @@ function finalize(ctx, schema) {
|
|
|
11437
11964
|
result.$id = ctx.external.uri(id);
|
|
11438
11965
|
}
|
|
11439
11966
|
Object.assign(result, root.def ?? root.schema);
|
|
11967
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
11968
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
11969
|
+
delete result.id;
|
|
11440
11970
|
const defs = ctx.external?.defs ?? {};
|
|
11441
11971
|
for (const entry of ctx.seen.entries()) {
|
|
11442
11972
|
const seen = entry[1];
|
|
11443
11973
|
if (seen.def && seen.defId) {
|
|
11974
|
+
if (seen.def.id === seen.defId)
|
|
11975
|
+
delete seen.def.id;
|
|
11444
11976
|
defs[seen.defId] = seen.def;
|
|
11445
11977
|
}
|
|
11446
11978
|
}
|
|
@@ -11496,6 +12028,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
11496
12028
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11497
12029
|
}
|
|
11498
12030
|
if (def.type === "pipe") {
|
|
12031
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
12032
|
+
return true;
|
|
11499
12033
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11500
12034
|
}
|
|
11501
12035
|
if (def.type === "object") {
|
|
@@ -11537,7 +12071,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11537
12071
|
return finalize(ctx, schema);
|
|
11538
12072
|
};
|
|
11539
12073
|
|
|
11540
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12074
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11541
12075
|
var formatMap = {
|
|
11542
12076
|
guid: "uuid",
|
|
11543
12077
|
url: "uri",
|
|
@@ -11585,39 +12119,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11585
12119
|
json2.type = "integer";
|
|
11586
12120
|
else
|
|
11587
12121
|
json2.type = "number";
|
|
11588
|
-
|
|
11589
|
-
|
|
12122
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
12123
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
12124
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
12125
|
+
if (exMin) {
|
|
12126
|
+
if (legacy) {
|
|
11590
12127
|
json2.minimum = exclusiveMinimum;
|
|
11591
12128
|
json2.exclusiveMinimum = true;
|
|
11592
12129
|
} else {
|
|
11593
12130
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11594
12131
|
}
|
|
11595
|
-
}
|
|
11596
|
-
if (typeof minimum === "number") {
|
|
12132
|
+
} else if (typeof minimum === "number") {
|
|
11597
12133
|
json2.minimum = minimum;
|
|
11598
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11599
|
-
if (exclusiveMinimum >= minimum)
|
|
11600
|
-
delete json2.minimum;
|
|
11601
|
-
else
|
|
11602
|
-
delete json2.exclusiveMinimum;
|
|
11603
|
-
}
|
|
11604
12134
|
}
|
|
11605
|
-
if (
|
|
11606
|
-
if (
|
|
12135
|
+
if (exMax) {
|
|
12136
|
+
if (legacy) {
|
|
11607
12137
|
json2.maximum = exclusiveMaximum;
|
|
11608
12138
|
json2.exclusiveMaximum = true;
|
|
11609
12139
|
} else {
|
|
11610
12140
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11611
12141
|
}
|
|
11612
|
-
}
|
|
11613
|
-
if (typeof maximum === "number") {
|
|
12142
|
+
} else if (typeof maximum === "number") {
|
|
11614
12143
|
json2.maximum = maximum;
|
|
11615
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11616
|
-
if (exclusiveMaximum <= maximum)
|
|
11617
|
-
delete json2.maximum;
|
|
11618
|
-
else
|
|
11619
|
-
delete json2.exclusiveMaximum;
|
|
11620
|
-
}
|
|
11621
12144
|
}
|
|
11622
12145
|
if (typeof multipleOf === "number")
|
|
11623
12146
|
json2.multipleOf = multipleOf;
|
|
@@ -11789,7 +12312,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11789
12312
|
if (typeof maximum === "number")
|
|
11790
12313
|
json2.maxItems = maximum;
|
|
11791
12314
|
json2.type = "array";
|
|
11792
|
-
json2.items = process(def.element, ctx, {
|
|
12315
|
+
json2.items = process(def.element, ctx, {
|
|
12316
|
+
...params,
|
|
12317
|
+
path: [...params.path, "items"]
|
|
12318
|
+
});
|
|
11793
12319
|
};
|
|
11794
12320
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11795
12321
|
const json2 = _json;
|
|
@@ -11982,7 +12508,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
11982
12508
|
};
|
|
11983
12509
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
11984
12510
|
const def = schema._zod.def;
|
|
11985
|
-
const
|
|
12511
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12512
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
11986
12513
|
process(innerType, ctx, params);
|
|
11987
12514
|
const seen = ctx.seen.get(schema);
|
|
11988
12515
|
seen.ref = innerType;
|
|
@@ -12088,7 +12615,7 @@ function toJSONSchema(input, params) {
|
|
|
12088
12615
|
return finalize(ctx, input);
|
|
12089
12616
|
}
|
|
12090
12617
|
|
|
12091
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12618
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
12092
12619
|
var JSONSchemaGenerator = class {
|
|
12093
12620
|
/** @deprecated Access via ctx instead */
|
|
12094
12621
|
get metadataRegistry() {
|
|
@@ -12163,10 +12690,10 @@ var JSONSchemaGenerator = class {
|
|
|
12163
12690
|
}
|
|
12164
12691
|
};
|
|
12165
12692
|
|
|
12166
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12693
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
12167
12694
|
var json_schema_exports = {};
|
|
12168
12695
|
|
|
12169
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12696
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
12170
12697
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
12171
12698
|
if (!inst._zod)
|
|
12172
12699
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -12182,7 +12709,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
12182
12709
|
...def,
|
|
12183
12710
|
checks: [
|
|
12184
12711
|
...def.checks ?? [],
|
|
12185
|
-
...checks.map((ch) => typeof ch === "function" ? {
|
|
12712
|
+
...checks.map((ch) => typeof ch === "function" ? {
|
|
12713
|
+
_zod: { check: ch, def: { check: "custom" }, onattach: [] }
|
|
12714
|
+
} : ch)
|
|
12186
12715
|
]
|
|
12187
12716
|
}, { parent: true });
|
|
12188
12717
|
};
|
|
@@ -12254,7 +12783,7 @@ function url(params) {
|
|
|
12254
12783
|
// @__NO_SIDE_EFFECTS__
|
|
12255
12784
|
function httpUrl(params) {
|
|
12256
12785
|
return _url(ZodMiniURL, {
|
|
12257
|
-
protocol:
|
|
12786
|
+
protocol: regexes_exports.httpProtocol,
|
|
12258
12787
|
hostname: regexes_exports.domain,
|
|
12259
12788
|
...normalizeParams(params)
|
|
12260
12789
|
});
|
|
@@ -12688,6 +13217,14 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
|
|
|
12688
13217
|
});
|
|
12689
13218
|
// @__NO_SIDE_EFFECTS__
|
|
12690
13219
|
function record(keyType, valueType, params) {
|
|
13220
|
+
if (!valueType || !valueType._zod) {
|
|
13221
|
+
return new ZodMiniRecord({
|
|
13222
|
+
type: "record",
|
|
13223
|
+
keyType: /* @__PURE__ */ string2(),
|
|
13224
|
+
valueType: keyType,
|
|
13225
|
+
...normalizeParams(valueType)
|
|
13226
|
+
});
|
|
13227
|
+
}
|
|
12691
13228
|
return new ZodMiniRecord({
|
|
12692
13229
|
type: "record",
|
|
12693
13230
|
keyType,
|
|
@@ -12927,6 +13464,17 @@ function codec(in_, out, params) {
|
|
|
12927
13464
|
reverseTransform: params.encode
|
|
12928
13465
|
});
|
|
12929
13466
|
}
|
|
13467
|
+
// @__NO_SIDE_EFFECTS__
|
|
13468
|
+
function invertCodec(codec2) {
|
|
13469
|
+
const def = codec2._zod.def;
|
|
13470
|
+
return new ZodMiniCodec({
|
|
13471
|
+
type: "pipe",
|
|
13472
|
+
in: def.out,
|
|
13473
|
+
out: def.in,
|
|
13474
|
+
transform: def.reverseTransform,
|
|
13475
|
+
reverseTransform: def.transform
|
|
13476
|
+
});
|
|
13477
|
+
}
|
|
12930
13478
|
var ZodMiniReadonly = /* @__PURE__ */ $constructor("ZodMiniReadonly", (inst, def) => {
|
|
12931
13479
|
$ZodReadonly.init(inst, def);
|
|
12932
13480
|
ZodMiniType.init(inst, def);
|
|
@@ -12994,8 +13542,8 @@ function refine(fn, _params = {}) {
|
|
|
12994
13542
|
return _refine(ZodMiniCustom, fn, _params);
|
|
12995
13543
|
}
|
|
12996
13544
|
// @__NO_SIDE_EFFECTS__
|
|
12997
|
-
function superRefine(fn) {
|
|
12998
|
-
return _superRefine(fn);
|
|
13545
|
+
function superRefine(fn, params) {
|
|
13546
|
+
return _superRefine(fn, params);
|
|
12999
13547
|
}
|
|
13000
13548
|
var describe2 = describe;
|
|
13001
13549
|
var meta2 = meta;
|
|
@@ -13041,7 +13589,7 @@ function _function(params) {
|
|
|
13041
13589
|
});
|
|
13042
13590
|
}
|
|
13043
13591
|
|
|
13044
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13592
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/iso.js
|
|
13045
13593
|
var iso_exports = {};
|
|
13046
13594
|
__export(iso_exports, {
|
|
13047
13595
|
ZodMiniISODate: () => ZodMiniISODate,
|
|
@@ -13086,7 +13634,7 @@ function duration2(params) {
|
|
|
13086
13634
|
return _isoDuration(ZodMiniISODuration, params);
|
|
13087
13635
|
}
|
|
13088
13636
|
|
|
13089
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13637
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/coerce.js
|
|
13090
13638
|
var coerce_exports = {};
|
|
13091
13639
|
__export(coerce_exports, {
|
|
13092
13640
|
bigint: () => bigint3,
|
|
@@ -13151,10 +13699,10 @@ __export(Credential_exports, {
|
|
|
13151
13699
|
serialize: () => serialize2
|
|
13152
13700
|
});
|
|
13153
13701
|
|
|
13154
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13702
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/version.js
|
|
13155
13703
|
var version2 = "1.2.3";
|
|
13156
13704
|
|
|
13157
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13705
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/errors.js
|
|
13158
13706
|
var BaseError = class _BaseError extends Error {
|
|
13159
13707
|
constructor(shortMessage, args = {}) {
|
|
13160
13708
|
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
@@ -13207,7 +13755,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
13207
13755
|
}
|
|
13208
13756
|
};
|
|
13209
13757
|
|
|
13210
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13758
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/regex.js
|
|
13211
13759
|
function execTyped(regex, string4) {
|
|
13212
13760
|
const match = regex.exec(string4);
|
|
13213
13761
|
return match?.groups;
|
|
@@ -13216,7 +13764,7 @@ var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
|
13216
13764
|
var integerRegex = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
13217
13765
|
var isTupleRegex = /^\(.+?\).*?$/;
|
|
13218
13766
|
|
|
13219
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13767
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
13220
13768
|
var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
13221
13769
|
function formatAbiParameter(abiParameter) {
|
|
13222
13770
|
let type = abiParameter.type;
|
|
@@ -13243,7 +13791,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
13243
13791
|
return type;
|
|
13244
13792
|
}
|
|
13245
13793
|
|
|
13246
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13794
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
13247
13795
|
function formatAbiParameters(abiParameters) {
|
|
13248
13796
|
let params = "";
|
|
13249
13797
|
const length = abiParameters.length;
|
|
@@ -13256,7 +13804,7 @@ function formatAbiParameters(abiParameters) {
|
|
|
13256
13804
|
return params;
|
|
13257
13805
|
}
|
|
13258
13806
|
|
|
13259
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13807
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
13260
13808
|
var structSignatureRegex = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
13261
13809
|
function isStructSignature(signature2) {
|
|
13262
13810
|
return structSignatureRegex.test(signature2);
|
|
@@ -13276,7 +13824,7 @@ var functionModifiers = /* @__PURE__ */ new Set([
|
|
|
13276
13824
|
"storage"
|
|
13277
13825
|
]);
|
|
13278
13826
|
|
|
13279
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13827
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
13280
13828
|
var UnknownTypeError = class extends BaseError {
|
|
13281
13829
|
constructor({ type }) {
|
|
13282
13830
|
super("Unknown type.", {
|
|
@@ -13306,7 +13854,7 @@ var UnknownSolidityTypeError = class extends BaseError {
|
|
|
13306
13854
|
}
|
|
13307
13855
|
};
|
|
13308
13856
|
|
|
13309
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13857
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
13310
13858
|
var InvalidAbiParametersError = class extends BaseError {
|
|
13311
13859
|
constructor({ params }) {
|
|
13312
13860
|
super("Failed to parse ABI parameters.", {
|
|
@@ -13398,7 +13946,7 @@ var InvalidAbiTypeParameterError = class extends BaseError {
|
|
|
13398
13946
|
}
|
|
13399
13947
|
};
|
|
13400
13948
|
|
|
13401
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13949
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
13402
13950
|
var InvalidSignatureError = class extends BaseError {
|
|
13403
13951
|
constructor({ signature: signature2, type }) {
|
|
13404
13952
|
super(`Invalid ${type} signature.`, {
|
|
@@ -13427,7 +13975,7 @@ var InvalidStructSignatureError = class extends BaseError {
|
|
|
13427
13975
|
}
|
|
13428
13976
|
};
|
|
13429
13977
|
|
|
13430
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13978
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
13431
13979
|
var CircularReferenceError = class extends BaseError {
|
|
13432
13980
|
constructor({ type }) {
|
|
13433
13981
|
super("Circular reference detected.", {
|
|
@@ -13442,7 +13990,7 @@ var CircularReferenceError = class extends BaseError {
|
|
|
13442
13990
|
}
|
|
13443
13991
|
};
|
|
13444
13992
|
|
|
13445
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
13993
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
13446
13994
|
var InvalidParenthesisError = class extends BaseError {
|
|
13447
13995
|
constructor({ current, depth }) {
|
|
13448
13996
|
super("Unbalanced parentheses.", {
|
|
@@ -13460,7 +14008,7 @@ var InvalidParenthesisError = class extends BaseError {
|
|
|
13460
14008
|
}
|
|
13461
14009
|
};
|
|
13462
14010
|
|
|
13463
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
14011
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
13464
14012
|
function getParameterCacheKey(param, type, structs) {
|
|
13465
14013
|
let structKey = "";
|
|
13466
14014
|
if (structs)
|
|
@@ -13532,7 +14080,7 @@ var parameterCache = /* @__PURE__ */ new Map([
|
|
|
13532
14080
|
]
|
|
13533
14081
|
]);
|
|
13534
14082
|
|
|
13535
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
14083
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
13536
14084
|
var abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
13537
14085
|
var abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
13538
14086
|
var dynamicIntegerRegex = /^u?int$/;
|
|
@@ -13629,7 +14177,7 @@ function isValidDataLocation(type, isArray) {
|
|
|
13629
14177
|
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
13630
14178
|
}
|
|
13631
14179
|
|
|
13632
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
14180
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
13633
14181
|
function parseStructs(signatures) {
|
|
13634
14182
|
const shallowStructs = {};
|
|
13635
14183
|
const signaturesLength = signatures.length;
|
|
@@ -13699,7 +14247,7 @@ function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE
|
|
|
13699
14247
|
return components;
|
|
13700
14248
|
}
|
|
13701
14249
|
|
|
13702
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3
|
|
14250
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
|
|
13703
14251
|
function parseAbiParameters(params) {
|
|
13704
14252
|
const abiParameters = [];
|
|
13705
14253
|
if (typeof params === "string") {
|
|
@@ -13727,15 +14275,15 @@ function parseAbiParameters(params) {
|
|
|
13727
14275
|
return abiParameters;
|
|
13728
14276
|
}
|
|
13729
14277
|
|
|
13730
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14278
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/version.js
|
|
13731
14279
|
var version3 = "0.1.1";
|
|
13732
14280
|
|
|
13733
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14281
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/internal/errors.js
|
|
13734
14282
|
function getVersion() {
|
|
13735
14283
|
return version3;
|
|
13736
14284
|
}
|
|
13737
14285
|
|
|
13738
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14286
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Errors.js
|
|
13739
14287
|
var BaseError2 = class _BaseError extends Error {
|
|
13740
14288
|
static setStaticOptions(options) {
|
|
13741
14289
|
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
@@ -13864,7 +14412,7 @@ function walk(err, fn) {
|
|
|
13864
14412
|
return fn ? null : err;
|
|
13865
14413
|
}
|
|
13866
14414
|
|
|
13867
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14415
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hash.js
|
|
13868
14416
|
var Hash_exports = {};
|
|
13869
14417
|
__export(Hash_exports, {
|
|
13870
14418
|
hmac256: () => hmac256,
|
|
@@ -13998,7 +14546,7 @@ var ripemd1602 = ripemd160;
|
|
|
13998
14546
|
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
|
|
13999
14547
|
var sha2562 = sha256;
|
|
14000
14548
|
|
|
14001
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14549
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Bytes.js
|
|
14002
14550
|
var Bytes_exports = {};
|
|
14003
14551
|
__export(Bytes_exports, {
|
|
14004
14552
|
InvalidBytesBooleanError: () => InvalidBytesBooleanError,
|
|
@@ -14030,7 +14578,7 @@ __export(Bytes_exports, {
|
|
|
14030
14578
|
validate: () => validate2
|
|
14031
14579
|
});
|
|
14032
14580
|
|
|
14033
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14581
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
|
|
14034
14582
|
var Hex_exports = {};
|
|
14035
14583
|
__export(Hex_exports, {
|
|
14036
14584
|
IntegerOutOfRangeError: () => IntegerOutOfRangeError,
|
|
@@ -14064,7 +14612,7 @@ __export(Hex_exports, {
|
|
|
14064
14612
|
validate: () => validate
|
|
14065
14613
|
});
|
|
14066
14614
|
|
|
14067
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14615
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/internal/bytes.js
|
|
14068
14616
|
function assertSize(bytes, size_) {
|
|
14069
14617
|
if (size(bytes) > size_)
|
|
14070
14618
|
throw new SizeOverflowError({
|
|
@@ -14137,7 +14685,7 @@ function trim(value, options = {}) {
|
|
|
14137
14685
|
return data;
|
|
14138
14686
|
}
|
|
14139
14687
|
|
|
14140
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14688
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/internal/hex.js
|
|
14141
14689
|
function assertSize2(hex3, size_) {
|
|
14142
14690
|
if (size2(hex3) > size_)
|
|
14143
14691
|
throw new SizeOverflowError2({
|
|
@@ -14193,7 +14741,7 @@ function trim2(value, options = {}) {
|
|
|
14193
14741
|
return `0x${data}`;
|
|
14194
14742
|
}
|
|
14195
14743
|
|
|
14196
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14744
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Json.js
|
|
14197
14745
|
var Json_exports = {};
|
|
14198
14746
|
__export(Json_exports, {
|
|
14199
14747
|
canonicalize: () => canonicalize,
|
|
@@ -14242,7 +14790,7 @@ function stringify(value, replacer, space) {
|
|
|
14242
14790
|
}, space);
|
|
14243
14791
|
}
|
|
14244
14792
|
|
|
14245
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
14793
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
|
|
14246
14794
|
var encoder = /* @__PURE__ */ new TextEncoder();
|
|
14247
14795
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
14248
14796
|
function assert2(value, options = {}) {
|
|
@@ -14500,7 +15048,7 @@ var SizeExceedsPaddingSizeError2 = class extends BaseError2 {
|
|
|
14500
15048
|
}
|
|
14501
15049
|
};
|
|
14502
15050
|
|
|
14503
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15051
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Bytes.js
|
|
14504
15052
|
var decoder = /* @__PURE__ */ new TextDecoder();
|
|
14505
15053
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
14506
15054
|
function assert3(value) {
|
|
@@ -14719,7 +15267,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError2 {
|
|
|
14719
15267
|
}
|
|
14720
15268
|
};
|
|
14721
15269
|
|
|
14722
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15270
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hash.js
|
|
14723
15271
|
function keccak256(value, options = {}) {
|
|
14724
15272
|
const { as = typeof value === "string" ? "Hex" : "Bytes" } = options;
|
|
14725
15273
|
const bytes = keccak_256(from2(value));
|
|
@@ -14752,7 +15300,7 @@ function validate3(value) {
|
|
|
14752
15300
|
return validate(value) && size2(value) === 32;
|
|
14753
15301
|
}
|
|
14754
15302
|
|
|
14755
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15303
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/internal/lru.js
|
|
14756
15304
|
var LruMap = class extends Map {
|
|
14757
15305
|
constructor(size3) {
|
|
14758
15306
|
super();
|
|
@@ -14783,13 +15331,13 @@ var LruMap = class extends Map {
|
|
|
14783
15331
|
}
|
|
14784
15332
|
};
|
|
14785
15333
|
|
|
14786
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15334
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Caches.js
|
|
14787
15335
|
var caches = {
|
|
14788
15336
|
checksum: /* @__PURE__ */ new LruMap(8192)
|
|
14789
15337
|
};
|
|
14790
15338
|
var checksum = caches.checksum;
|
|
14791
15339
|
|
|
14792
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15340
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/PublicKey.js
|
|
14793
15341
|
function assert4(publicKey, options = {}) {
|
|
14794
15342
|
const { compressed } = options;
|
|
14795
15343
|
const { prefix, x, y } = publicKey;
|
|
@@ -14941,7 +15489,7 @@ var InvalidSerializedSizeError = class extends BaseError2 {
|
|
|
14941
15489
|
}
|
|
14942
15490
|
};
|
|
14943
15491
|
|
|
14944
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15492
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Address.js
|
|
14945
15493
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
14946
15494
|
function assert5(value, options = {}) {
|
|
14947
15495
|
const { strict = true } = options;
|
|
@@ -15031,7 +15579,7 @@ var InvalidChecksumError = class extends BaseError2 {
|
|
|
15031
15579
|
}
|
|
15032
15580
|
};
|
|
15033
15581
|
|
|
15034
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15582
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/AbiParameters.js
|
|
15035
15583
|
var AbiParameters_exports = {};
|
|
15036
15584
|
__export(AbiParameters_exports, {
|
|
15037
15585
|
ArrayLengthMismatchError: () => ArrayLengthMismatchError,
|
|
@@ -15048,7 +15596,7 @@ __export(AbiParameters_exports, {
|
|
|
15048
15596
|
from: () => from5
|
|
15049
15597
|
});
|
|
15050
15598
|
|
|
15051
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15599
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Solidity.js
|
|
15052
15600
|
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
15053
15601
|
var bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
15054
15602
|
var integerRegex2 = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
@@ -15149,7 +15697,7 @@ var maxUint240 = 2n ** 240n - 1n;
|
|
|
15149
15697
|
var maxUint248 = 2n ** 248n - 1n;
|
|
15150
15698
|
var maxUint256 = 2n ** 256n - 1n;
|
|
15151
15699
|
|
|
15152
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
15700
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/internal/abiParameters.js
|
|
15153
15701
|
function decodeParameter(cursor, param, options) {
|
|
15154
15702
|
const { checksumAddress, staticPosition } = options;
|
|
15155
15703
|
const arrayComponents = getArrayComponents(param.type);
|
|
@@ -15538,7 +16086,7 @@ function hasDynamicChild(param) {
|
|
|
15538
16086
|
return false;
|
|
15539
16087
|
}
|
|
15540
16088
|
|
|
15541
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16089
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/internal/cursor.js
|
|
15542
16090
|
var staticCursor = {
|
|
15543
16091
|
bytes: new Uint8Array(),
|
|
15544
16092
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -15740,7 +16288,7 @@ var RecursiveReadLimitExceededError = class extends BaseError2 {
|
|
|
15740
16288
|
}
|
|
15741
16289
|
};
|
|
15742
16290
|
|
|
15743
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16291
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/AbiParameters.js
|
|
15744
16292
|
function decode2(parameters, data, options = {}) {
|
|
15745
16293
|
const { as = "Array", checksumAddress = false } = options;
|
|
15746
16294
|
const bytes = typeof data === "string" ? fromHex(data) : data;
|
|
@@ -15945,7 +16493,7 @@ var InvalidTypeError = class extends BaseError2 {
|
|
|
15945
16493
|
}
|
|
15946
16494
|
};
|
|
15947
16495
|
|
|
15948
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16496
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Signature.js
|
|
15949
16497
|
var Signature_exports = {};
|
|
15950
16498
|
__export(Signature_exports, {
|
|
15951
16499
|
InvalidRError: () => InvalidRError,
|
|
@@ -16225,7 +16773,7 @@ var InvalidVError = class extends BaseError2 {
|
|
|
16225
16773
|
}
|
|
16226
16774
|
};
|
|
16227
16775
|
|
|
16228
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16776
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Base64.js
|
|
16229
16777
|
var Base64_exports = {};
|
|
16230
16778
|
__export(Base64_exports, {
|
|
16231
16779
|
fromBytes: () => fromBytes4,
|
|
@@ -16292,7 +16840,7 @@ function toString3(value) {
|
|
|
16292
16840
|
return toString2(toBytes4(value));
|
|
16293
16841
|
}
|
|
16294
16842
|
|
|
16295
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16843
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Secp256k1.js
|
|
16296
16844
|
function recoverAddress(options) {
|
|
16297
16845
|
return fromPublicKey(recoverPublicKey(options));
|
|
16298
16846
|
}
|
|
@@ -16356,13 +16904,13 @@ var p521 = createCurve({
|
|
|
16356
16904
|
// ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/p256.js
|
|
16357
16905
|
var secp256r1 = p256;
|
|
16358
16906
|
|
|
16359
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16907
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/P256.js
|
|
16360
16908
|
function verify2(options) {
|
|
16361
16909
|
const { hash: hash3, payload, publicKey, signature: signature2 } = options;
|
|
16362
16910
|
return secp256r1.verify(signature2, payload instanceof Uint8Array ? payload : fromHex(payload), toHex2(publicKey).substring(2), { lowS: true, ...hash3 ? { prehash: true } : {} });
|
|
16363
16911
|
}
|
|
16364
16912
|
|
|
16365
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16913
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/webauthn/Authentication.js
|
|
16366
16914
|
function verify3(options) {
|
|
16367
16915
|
const { challenge, metadata, origin, publicKey, rpId, signature: signature2 } = options;
|
|
16368
16916
|
const { authenticatorData, clientDataJSON, userVerificationRequired } = metadata;
|
|
@@ -16404,7 +16952,7 @@ function verify3(options) {
|
|
|
16404
16952
|
});
|
|
16405
16953
|
}
|
|
16406
16954
|
|
|
16407
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3
|
|
16955
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/WebAuthnP256.js
|
|
16408
16956
|
function verify4(options) {
|
|
16409
16957
|
return verify3(options);
|
|
16410
16958
|
}
|
|
@@ -16778,4 +17326,4 @@ export {
|
|
|
16778
17326
|
@noble/curves/esm/p256.js:
|
|
16779
17327
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
16780
17328
|
*/
|
|
16781
|
-
//# sourceMappingURL=chunk-
|
|
17329
|
+
//# sourceMappingURL=chunk-2HBLU5GV.js.map
|