@settlemint/sdk-utils 2.4.1-prb593b885 → 2.4.1-prb82519c9

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