@settlemint/sdk-eas 2.4.1-prb593b885 → 2.4.1-prccf1e4e6

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