sunpeak 0.20.11 → 0.20.16

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.
Files changed (70) hide show
  1. package/bin/commands/dev.mjs +3 -3
  2. package/bin/sunpeak.js +13 -8
  3. package/dist/chatgpt/index.cjs +1 -1
  4. package/dist/chatgpt/index.js +2 -2
  5. package/dist/claude/index.cjs +1 -1
  6. package/dist/claude/index.js +1 -1
  7. package/dist/host/chatgpt/index.cjs +1 -1
  8. package/dist/host/chatgpt/index.js +1 -1
  9. package/dist/index.cjs +5 -5
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +5 -5
  12. package/dist/index.js.map +1 -1
  13. package/dist/inspector/index.cjs +1 -1
  14. package/dist/inspector/index.js +2 -2
  15. package/dist/{inspector-JirXykqh.js → inspector-BVYIkjfw.js} +110 -16
  16. package/dist/inspector-BVYIkjfw.js.map +1 -0
  17. package/dist/{inspector-CjEFyXqc.cjs → inspector-mL_Ysqj6.cjs} +110 -16
  18. package/dist/inspector-mL_Ysqj6.cjs.map +1 -0
  19. package/dist/mcp/index.cjs +13 -13
  20. package/dist/mcp/index.cjs.map +1 -1
  21. package/dist/mcp/index.js +13 -13
  22. package/dist/mcp/index.js.map +1 -1
  23. package/dist/{protocol-VbxlTDik.js → protocol-C58brCtf.js} +51 -51
  24. package/dist/protocol-C58brCtf.js.map +1 -0
  25. package/dist/{protocol-WZSAhsV8.cjs → protocol-CFifOG2U.cjs} +51 -51
  26. package/dist/protocol-CFifOG2U.cjs.map +1 -0
  27. package/dist/{use-app-BEelk4Pj.cjs → use-app-BXVq24n8.cjs} +5 -5
  28. package/dist/{use-app-BEelk4Pj.cjs.map → use-app-BXVq24n8.cjs.map} +1 -1
  29. package/dist/{use-app-imsRg_Sq.js → use-app-L0OZBROc.js} +5 -5
  30. package/dist/{use-app-imsRg_Sq.js.map → use-app-L0OZBROc.js.map} +1 -1
  31. package/dist/{v4-81B3d_AO.cjs → v4-BtFbnniV.cjs} +1133 -403
  32. package/dist/v4-BtFbnniV.cjs.map +1 -0
  33. package/dist/{v4-zo4hA9Qs.js → v4-DfWETn4d.js} +1133 -403
  34. package/dist/v4-DfWETn4d.js.map +1 -0
  35. package/package.json +12 -12
  36. package/template/dist/albums/albums.html +42 -17
  37. package/template/dist/albums/albums.json +1 -1
  38. package/template/dist/carousel/carousel.html +42 -17
  39. package/template/dist/carousel/carousel.json +1 -1
  40. package/template/dist/map/map.html +337 -296
  41. package/template/dist/map/map.json +1 -1
  42. package/template/dist/review/review.html +42 -17
  43. package/template/dist/review/review.json +1 -1
  44. package/template/node_modules/.vite/deps/_metadata.json +3 -3
  45. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +4 -4
  46. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
  47. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +3 -3
  48. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
  49. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +4 -4
  50. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
  51. package/template/node_modules/.vite-mcp/deps/_metadata.json +30 -30
  52. package/template/node_modules/.vite-mcp/deps/{external-B0TEY49X.js → external-BzlnL8_g.js} +1132 -403
  53. package/template/node_modules/.vite-mcp/deps/external-BzlnL8_g.js.map +1 -0
  54. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +9470 -9295
  55. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js.map +1 -1
  56. package/template/node_modules/.vite-mcp/deps/{protocol-C6_cc6NO.js → protocol-Depaaj0Z.js} +6 -6
  57. package/template/node_modules/.vite-mcp/deps/{protocol-C6_cc6NO.js.map → protocol-Depaaj0Z.js.map} +1 -1
  58. package/template/node_modules/.vite-mcp/deps/{v4-Dqc4MOHZ.js → v4-3k5wOzJw.js} +4 -3
  59. package/template/node_modules/.vite-mcp/deps/v4-3k5wOzJw.js.map +1 -0
  60. package/template/node_modules/.vite-mcp/deps/zod.js +3 -3
  61. package/template/node_modules/.vite-mcp/deps/zod.js.map +1 -1
  62. package/template/package.json +2 -2
  63. package/dist/inspector-CjEFyXqc.cjs.map +0 -1
  64. package/dist/inspector-JirXykqh.js.map +0 -1
  65. package/dist/protocol-VbxlTDik.js.map +0 -1
  66. package/dist/protocol-WZSAhsV8.cjs.map +0 -1
  67. package/dist/v4-81B3d_AO.cjs.map +0 -1
  68. package/dist/v4-zo4hA9Qs.js.map +0 -1
  69. package/template/node_modules/.vite-mcp/deps/external-B0TEY49X.js.map +0 -1
  70. package/template/node_modules/.vite-mcp/deps/v4-Dqc4MOHZ.js.map +0 -1
@@ -36,9 +36,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
36
36
  throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
37
37
  });
38
38
  //#endregion
39
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
39
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/core.js
40
+ var _a$1;
40
41
  /** A special constant with type `never` */
41
- var NEVER = Object.freeze({ status: "aborted" });
42
+ var NEVER = /* @__PURE__ */ Object.freeze({ status: "aborted" });
42
43
  function $constructor(name, initializer, params) {
43
44
  function init(inst, def) {
44
45
  if (!inst._zod) Object.defineProperty(inst, "_zod", {
@@ -90,13 +91,14 @@ var $ZodEncodeError = class extends Error {
90
91
  this.name = "ZodEncodeError";
91
92
  }
92
93
  };
93
- var globalConfig = {};
94
+ (_a$1 = globalThis).__zod_globalConfig ?? (_a$1.__zod_globalConfig = {});
95
+ var globalConfig = globalThis.__zod_globalConfig;
94
96
  function config(newConfig) {
95
97
  if (newConfig) Object.assign(globalConfig, newConfig);
96
98
  return globalConfig;
97
99
  }
98
100
  //#endregion
99
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
101
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/util.js
100
102
  var util_exports = /* @__PURE__ */ __exportAll({
101
103
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
102
104
  Class: () => Class,
@@ -121,6 +123,7 @@ var util_exports = /* @__PURE__ */ __exportAll({
121
123
  defineLazy: () => defineLazy,
122
124
  esc: () => esc,
123
125
  escapeRegex: () => escapeRegex,
126
+ explicitlyAborted: () => explicitlyAborted,
124
127
  extend: () => extend,
125
128
  finalizeIssue: () => finalizeIssue,
126
129
  floatSafeRemainder: () => floatSafeRemainder,
@@ -202,17 +205,13 @@ function cleanRegex(source) {
202
205
  return source.slice(start, end);
203
206
  }
204
207
  function floatSafeRemainder(val, step) {
205
- const valDecCount = (val.toString().split(".")[1] || "").length;
206
- const stepString = step.toString();
207
- let stepDecCount = (stepString.split(".")[1] || "").length;
208
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
209
- const match = stepString.match(/\d?e-(\d?)/);
210
- if (match?.[1]) stepDecCount = Number.parseInt(match[1]);
211
- }
212
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
213
- return Number.parseInt(val.toFixed(decCount).replace(".", "")) % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount;
208
+ const ratio = val / step;
209
+ const roundedRatio = Math.round(ratio);
210
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
211
+ if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
212
+ return ratio - roundedRatio;
214
213
  }
215
- var EVALUATING = Symbol("evaluating");
214
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
216
215
  function defineLazy(object, key, getter) {
217
216
  let value = void 0;
218
217
  Object.defineProperty(object, key, {
@@ -278,7 +277,8 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
278
277
  function isObject(data) {
279
278
  return typeof data === "object" && data !== null && !Array.isArray(data);
280
279
  }
281
- var allowsEval = cached(() => {
280
+ var allowsEval = /* @__PURE__ */ cached(() => {
281
+ if (globalConfig.jitless) return false;
282
282
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
283
283
  try {
284
284
  new Function("");
@@ -300,6 +300,8 @@ function isPlainObject(o) {
300
300
  function shallowClone(o) {
301
301
  if (isPlainObject(o)) return { ...o };
302
302
  if (Array.isArray(o)) return [...o];
303
+ if (o instanceof Map) return new Map(o);
304
+ if (o instanceof Set) return new Set(o);
303
305
  return o;
304
306
  }
305
307
  function numKeys(data) {
@@ -329,12 +331,12 @@ var getParsedType = (data) => {
329
331
  default: throw new Error(`Unknown data type: ${t}`);
330
332
  }
331
333
  };
332
- var propertyKeyTypes = new Set([
334
+ var propertyKeyTypes = /* @__PURE__ */ new Set([
333
335
  "string",
334
336
  "number",
335
337
  "symbol"
336
338
  ]);
337
- var primitiveTypes = new Set([
339
+ var primitiveTypes = /* @__PURE__ */ new Set([
338
340
  "string",
339
341
  "number",
340
342
  "bigint",
@@ -483,6 +485,7 @@ function safeExtend(schema, shape) {
483
485
  } }));
484
486
  }
485
487
  function merge(a, b) {
488
+ if (a._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
486
489
  return clone(a, mergeDefs(a._zod.def, {
487
490
  get shape() {
488
491
  const _shape = {
@@ -495,7 +498,7 @@ function merge(a, b) {
495
498
  get catchall() {
496
499
  return b._zod.def.catchall;
497
500
  },
498
- checks: []
501
+ checks: b._zod.def.checks ?? []
499
502
  }));
500
503
  }
501
504
  function partial(Class, schema, mask) {
@@ -548,6 +551,11 @@ function aborted(x, startIndex = 0) {
548
551
  for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
549
552
  return false;
550
553
  }
554
+ function explicitlyAborted(x, startIndex = 0) {
555
+ if (x.aborted === true) return true;
556
+ for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue === false) return true;
557
+ return false;
558
+ }
551
559
  function prefixIssues(path, issues) {
552
560
  return issues.map((iss) => {
553
561
  var _a;
@@ -560,15 +568,12 @@ function unwrapMessage(message) {
560
568
  return typeof message === "string" ? message : message?.message;
561
569
  }
562
570
  function finalizeIssue(iss, ctx, config) {
563
- const full = {
564
- ...iss,
565
- path: iss.path ?? []
566
- };
567
- if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
568
- delete full.inst;
569
- delete full.continue;
570
- if (!ctx?.reportInput) delete full.input;
571
- return full;
571
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
572
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
573
+ rest.path ?? (rest.path = []);
574
+ rest.message = message;
575
+ if (ctx?.reportInput) rest.input = _input;
576
+ return rest;
572
577
  }
573
578
  function getSizableOrigin(input) {
574
579
  if (input instanceof Set) return "set";
@@ -641,7 +646,7 @@ var Class = class {
641
646
  constructor(..._args) {}
642
647
  };
643
648
  //#endregion
644
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
649
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/errors.js
645
650
  var initializer$1 = (inst, def) => {
646
651
  inst.name = "$ZodError";
647
652
  Object.defineProperty(inst, "_zod", {
@@ -674,23 +679,26 @@ function flattenError(error, mapper = (issue) => issue.message) {
674
679
  }
675
680
  function formatError(error, mapper = (issue) => issue.message) {
676
681
  const fieldErrors = { _errors: [] };
677
- const processError = (error) => {
678
- for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }));
679
- else if (issue.code === "invalid_key") processError({ issues: issue.issues });
680
- else if (issue.code === "invalid_element") processError({ issues: issue.issues });
681
- else if (issue.path.length === 0) fieldErrors._errors.push(mapper(issue));
682
+ const processError = (error, path = []) => {
683
+ for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
684
+ else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
685
+ else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
682
686
  else {
683
- let curr = fieldErrors;
684
- let i = 0;
685
- while (i < issue.path.length) {
686
- const el = issue.path[i];
687
- if (!(i === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
688
- else {
689
- curr[el] = curr[el] || { _errors: [] };
690
- curr[el]._errors.push(mapper(issue));
687
+ const fullpath = [...path, ...issue.path];
688
+ if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue));
689
+ else {
690
+ let curr = fieldErrors;
691
+ let i = 0;
692
+ while (i < fullpath.length) {
693
+ const el = fullpath[i];
694
+ if (!(i === fullpath.length - 1)) curr[el] = curr[el] || { _errors: [] };
695
+ else {
696
+ curr[el] = curr[el] || { _errors: [] };
697
+ curr[el]._errors.push(mapper(issue));
698
+ }
699
+ curr = curr[el];
700
+ i++;
691
701
  }
692
- curr = curr[el];
693
- i++;
694
702
  }
695
703
  }
696
704
  };
@@ -701,9 +709,9 @@ function treeifyError(error, mapper = (issue) => issue.message) {
701
709
  const result = { errors: [] };
702
710
  const processError = (error, path = []) => {
703
711
  var _a, _b;
704
- for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, issue.path));
705
- else if (issue.code === "invalid_key") processError({ issues: issue.issues }, issue.path);
706
- else if (issue.code === "invalid_element") processError({ issues: issue.issues }, issue.path);
712
+ for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
713
+ else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
714
+ else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
707
715
  else {
708
716
  const fullpath = [...path, ...issue.path];
709
717
  if (fullpath.length === 0) {
@@ -786,9 +794,12 @@ function prettifyError(error) {
786
794
  return lines.join("\n");
787
795
  }
788
796
  //#endregion
789
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
797
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/parse.js
790
798
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
791
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
799
+ const ctx = _ctx ? {
800
+ ..._ctx,
801
+ async: false
802
+ } : { async: false };
792
803
  const result = schema._zod.run({
793
804
  value,
794
805
  issues: []
@@ -803,7 +814,10 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
803
814
  };
804
815
  var parse$1 = /* @__PURE__ */ _parse($ZodRealError);
805
816
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
806
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
817
+ const ctx = _ctx ? {
818
+ ..._ctx,
819
+ async: true
820
+ } : { async: true };
807
821
  let result = schema._zod.run({
808
822
  value,
809
823
  issues: []
@@ -837,7 +851,10 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
837
851
  };
838
852
  var safeParse$1 = /* @__PURE__ */ _safeParse($ZodRealError);
839
853
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
840
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
854
+ const ctx = _ctx ? {
855
+ ..._ctx,
856
+ async: true
857
+ } : { async: true };
841
858
  let result = schema._zod.run({
842
859
  value,
843
860
  issues: []
@@ -853,7 +870,10 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
853
870
  };
854
871
  var safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
855
872
  var _encode = (_Err) => (schema, value, _ctx) => {
856
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
873
+ const ctx = _ctx ? {
874
+ ..._ctx,
875
+ direction: "backward"
876
+ } : { direction: "backward" };
857
877
  return _parse(_Err)(schema, value, ctx);
858
878
  };
859
879
  var encode$1 = /* @__PURE__ */ _encode($ZodRealError);
@@ -862,7 +882,10 @@ var _decode = (_Err) => (schema, value, _ctx) => {
862
882
  };
863
883
  var decode$1 = /* @__PURE__ */ _decode($ZodRealError);
864
884
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
865
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
885
+ const ctx = _ctx ? {
886
+ ..._ctx,
887
+ direction: "backward"
888
+ } : { direction: "backward" };
866
889
  return _parseAsync(_Err)(schema, value, ctx);
867
890
  };
868
891
  var encodeAsync$1 = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -871,7 +894,10 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
871
894
  };
872
895
  var decodeAsync$1 = /* @__PURE__ */ _decodeAsync($ZodRealError);
873
896
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
874
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
897
+ const ctx = _ctx ? {
898
+ ..._ctx,
899
+ direction: "backward"
900
+ } : { direction: "backward" };
875
901
  return _safeParse(_Err)(schema, value, ctx);
876
902
  };
877
903
  var safeEncode$1 = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -880,7 +906,10 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
880
906
  };
881
907
  var safeDecode$1 = /* @__PURE__ */ _safeDecode($ZodRealError);
882
908
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
883
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
909
+ const ctx = _ctx ? {
910
+ ..._ctx,
911
+ direction: "backward"
912
+ } : { direction: "backward" };
884
913
  return _safeParseAsync(_Err)(schema, value, ctx);
885
914
  };
886
915
  var safeEncodeAsync$1 = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -889,7 +918,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
889
918
  };
890
919
  var safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
891
920
  //#endregion
892
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
921
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/regexes.js
893
922
  var regexes_exports = /* @__PURE__ */ __exportAll({
894
923
  base64: () => base64$1,
895
924
  base64url: () => base64url$1,
@@ -912,6 +941,7 @@ var regexes_exports = /* @__PURE__ */ __exportAll({
912
941
  hex: () => hex$1,
913
942
  hostname: () => hostname$1,
914
943
  html5Email: () => html5Email,
944
+ httpProtocol: () => httpProtocol,
915
945
  idnEmail: () => idnEmail,
916
946
  integer: () => integer,
917
947
  ipv4: () => ipv4$1,
@@ -950,7 +980,12 @@ var regexes_exports = /* @__PURE__ */ __exportAll({
950
980
  uuid7: () => uuid7,
951
981
  xid: () => xid$1
952
982
  });
953
- var cuid$1 = /^[cC][^\s-]{8,}$/;
983
+ /**
984
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
985
+ * (timestamps embedded in the id). Use {@link cuid2} instead.
986
+ * See https://github.com/paralleldrive/cuid.
987
+ */
988
+ var cuid$1 = /^[cC][0-9a-z]{6,}$/;
954
989
  var cuid2$1 = /^[0-9a-z]+$/;
955
990
  var ulid$1 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
956
991
  var xid$1 = /^[0-9a-vA-V]{20}$/;
@@ -998,6 +1033,7 @@ var base64$1 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z
998
1033
  var base64url$1 = /^[A-Za-z0-9_-]*$/;
999
1034
  var hostname$1 = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
1000
1035
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1036
+ var httpProtocol = /^https?$/;
1001
1037
  var e164$1 = /^\+[1-9]\d{6,14}$/;
1002
1038
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
1003
1039
  var date$3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -1051,7 +1087,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
1051
1087
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
1052
1088
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1053
1089
  //#endregion
1054
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
1090
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/checks.js
1055
1091
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1056
1092
  var _a;
1057
1093
  inst._zod ?? (inst._zod = {});
@@ -1556,7 +1592,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1556
1592
  };
1557
1593
  });
1558
1594
  //#endregion
1559
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
1595
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/doc.js
1560
1596
  var Doc = class {
1561
1597
  constructor(args = []) {
1562
1598
  this.content = [];
@@ -1587,14 +1623,14 @@ var Doc = class {
1587
1623
  }
1588
1624
  };
1589
1625
  //#endregion
1590
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
1626
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/versions.js
1591
1627
  var version = {
1592
1628
  major: 4,
1593
- minor: 3,
1594
- patch: 6
1629
+ minor: 4,
1630
+ patch: 1
1595
1631
  };
1596
1632
  //#endregion
1597
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
1633
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/schemas.js
1598
1634
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1599
1635
  var _a;
1600
1636
  inst ?? (inst = {});
@@ -1615,6 +1651,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1615
1651
  let asyncResult;
1616
1652
  for (const ch of checks) {
1617
1653
  if (ch._zod.def.when) {
1654
+ if (explicitlyAborted(payload)) continue;
1618
1655
  if (!ch._zod.def.when(payload)) continue;
1619
1656
  } else if (isAborted) continue;
1620
1657
  const currLen = payload.issues.length;
@@ -1734,6 +1771,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1734
1771
  inst._zod.check = (payload) => {
1735
1772
  try {
1736
1773
  const trimmed = payload.value.trim();
1774
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
1775
+ if (!/^https?:\/\//i.test(trimmed)) {
1776
+ payload.issues.push({
1777
+ code: "invalid_format",
1778
+ format: "url",
1779
+ note: "Invalid URL format",
1780
+ input: payload.value,
1781
+ inst,
1782
+ continue: !def.abort
1783
+ });
1784
+ return;
1785
+ }
1786
+ }
1737
1787
  const url = new URL(trimmed);
1738
1788
  if (def.hostname) {
1739
1789
  def.hostname.lastIndex = 0;
@@ -1781,6 +1831,11 @@ var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
1781
1831
  def.pattern ?? (def.pattern = nanoid$1);
1782
1832
  $ZodStringFormat.init(inst, def);
1783
1833
  });
1834
+ /**
1835
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1836
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1837
+ * See https://github.com/paralleldrive/cuid.
1838
+ */
1784
1839
  var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
1785
1840
  def.pattern ?? (def.pattern = cuid$1);
1786
1841
  $ZodStringFormat.init(inst, def);
@@ -1875,6 +1930,7 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
1875
1930
  });
1876
1931
  function isValidBase64(data) {
1877
1932
  if (data === "") return true;
1933
+ if (/\s/.test(data)) return false;
1878
1934
  if (data.length % 4 !== 0) return false;
1879
1935
  try {
1880
1936
  atob(data);
@@ -2044,8 +2100,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
2044
2100
  $ZodType.init(inst, def);
2045
2101
  inst._zod.pattern = _undefined$2;
2046
2102
  inst._zod.values = new Set([void 0]);
2047
- inst._zod.optin = "optional";
2048
- inst._zod.optout = "optional";
2049
2103
  inst._zod.parse = (payload, _ctx) => {
2050
2104
  const input = payload.value;
2051
2105
  if (typeof input === "undefined") return payload;
@@ -2159,13 +2213,23 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
2159
2213
  return payload;
2160
2214
  };
2161
2215
  });
2162
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
2216
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
2217
+ const isPresent = key in input;
2163
2218
  if (result.issues.length) {
2164
- if (isOptionalOut && !(key in input)) return;
2219
+ if (isOptionalIn && isOptionalOut && !isPresent) return;
2165
2220
  final.issues.push(...prefixIssues(key, result.issues));
2166
2221
  }
2222
+ if (!isPresent && !isOptionalIn) {
2223
+ if (!result.issues.length) final.issues.push({
2224
+ code: "invalid_type",
2225
+ expected: "nonoptional",
2226
+ input: void 0,
2227
+ path: [key]
2228
+ });
2229
+ return;
2230
+ }
2167
2231
  if (result.value === void 0) {
2168
- if (key in input) final.value[key] = void 0;
2232
+ if (isPresent) final.value[key] = void 0;
2169
2233
  } else final.value[key] = result.value;
2170
2234
  }
2171
2235
  function normalizeDef(def) {
@@ -2185,8 +2249,10 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
2185
2249
  const keySet = def.keySet;
2186
2250
  const _catchall = def.catchall._zod;
2187
2251
  const t = _catchall.def.type;
2252
+ const isOptionalIn = _catchall.optin === "optional";
2188
2253
  const isOptionalOut = _catchall.optout === "optional";
2189
2254
  for (const key in input) {
2255
+ if (key === "__proto__") continue;
2190
2256
  if (keySet.has(key)) continue;
2191
2257
  if (t === "never") {
2192
2258
  unrecognized.push(key);
@@ -2196,8 +2262,8 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
2196
2262
  value: input[key],
2197
2263
  issues: []
2198
2264
  }, ctx);
2199
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
2200
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
2265
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
2266
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
2201
2267
  }
2202
2268
  if (unrecognized.length) payload.issues.push({
2203
2269
  code: "unrecognized_keys",
@@ -2233,13 +2299,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2233
2299
  }
2234
2300
  return propValues;
2235
2301
  });
2236
- const isObject$2 = isObject;
2302
+ const isObject$1 = isObject;
2237
2303
  const catchall = def.catchall;
2238
2304
  let value;
2239
2305
  inst._zod.parse = (payload, ctx) => {
2240
2306
  value ?? (value = _normalized.value);
2241
2307
  const input = payload.value;
2242
- if (!isObject$2(input)) {
2308
+ if (!isObject$1(input)) {
2243
2309
  payload.issues.push({
2244
2310
  expected: "object",
2245
2311
  code: "invalid_type",
@@ -2253,13 +2319,14 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2253
2319
  const shape = value.shape;
2254
2320
  for (const key of value.keys) {
2255
2321
  const el = shape[key];
2322
+ const isOptionalIn = el._zod.optin === "optional";
2256
2323
  const isOptionalOut = el._zod.optout === "optional";
2257
2324
  const r = el._zod.run({
2258
2325
  value: input[key],
2259
2326
  issues: []
2260
2327
  }, ctx);
2261
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
2262
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
2328
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
2329
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
2263
2330
  }
2264
2331
  if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
2265
2332
  return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
@@ -2288,9 +2355,11 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
2288
2355
  for (const key of normalized.keys) {
2289
2356
  const id = ids[key];
2290
2357
  const k = esc(key);
2291
- const isOptionalOut = shape[key]?._zod?.optout === "optional";
2358
+ const schema = shape[key];
2359
+ const isOptionalIn = schema?._zod?.optin === "optional";
2360
+ const isOptionalOut = schema?._zod?.optout === "optional";
2292
2361
  doc.write(`const ${id} = ${parseStr(key)};`);
2293
- if (isOptionalOut) doc.write(`
2362
+ if (isOptionalIn && isOptionalOut) doc.write(`
2294
2363
  if (${id}.issues.length) {
2295
2364
  if (${k} in input) {
2296
2365
  payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
@@ -2308,6 +2377,32 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
2308
2377
  newResult[${k}] = ${id}.value;
2309
2378
  }
2310
2379
 
2380
+ `);
2381
+ else if (!isOptionalIn) doc.write(`
2382
+ const ${id}_present = ${k} in input;
2383
+ if (${id}.issues.length) {
2384
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
2385
+ ...iss,
2386
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
2387
+ })));
2388
+ }
2389
+ if (!${id}_present && !${id}.issues.length) {
2390
+ payload.issues.push({
2391
+ code: "invalid_type",
2392
+ expected: "nonoptional",
2393
+ input: undefined,
2394
+ path: [${k}]
2395
+ });
2396
+ }
2397
+
2398
+ if (${id}_present) {
2399
+ if (${id}.value === undefined) {
2400
+ newResult[${k}] = undefined;
2401
+ } else {
2402
+ newResult[${k}] = ${id}.value;
2403
+ }
2404
+ }
2405
+
2311
2406
  `);
2312
2407
  else doc.write(`
2313
2408
  if (${id}.issues.length) {
@@ -2333,7 +2428,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
2333
2428
  return (payload, ctx) => fn(shape, payload, ctx);
2334
2429
  };
2335
2430
  let fastpass;
2336
- const isObject$1 = isObject;
2431
+ const isObject$2 = isObject;
2337
2432
  const jit = !globalConfig.jitless;
2338
2433
  const fastEnabled = jit && allowsEval.value;
2339
2434
  const catchall = def.catchall;
@@ -2341,7 +2436,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
2341
2436
  inst._zod.parse = (payload, ctx) => {
2342
2437
  value ?? (value = _normalized.value);
2343
2438
  const input = payload.value;
2344
- if (!isObject$1(input)) {
2439
+ if (!isObject$2(input)) {
2345
2440
  payload.issues.push({
2346
2441
  expected: "object",
2347
2442
  code: "invalid_type",
@@ -2390,10 +2485,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
2390
2485
  return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
2391
2486
  }
2392
2487
  });
2393
- const single = def.options.length === 1;
2394
- const first = def.options[0]._zod.run;
2488
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
2395
2489
  inst._zod.parse = (payload, ctx) => {
2396
- if (single) return first(payload, ctx);
2490
+ if (first) return first(payload, ctx);
2397
2491
  let async = false;
2398
2492
  const results = [];
2399
2493
  for (const option of def.options) {
@@ -2439,10 +2533,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
2439
2533
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
2440
2534
  $ZodUnion.init(inst, def);
2441
2535
  def.inclusive = false;
2442
- const single = def.options.length === 1;
2443
- const first = def.options[0]._zod.run;
2536
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
2444
2537
  inst._zod.parse = (payload, ctx) => {
2445
- if (single) return first(payload, ctx);
2538
+ if (first) return first(payload, ctx);
2446
2539
  let async = false;
2447
2540
  const results = [];
2448
2541
  for (const option of def.options) {
@@ -2503,12 +2596,13 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
2503
2596
  }
2504
2597
  const opt = disc.value.get(input?.[def.discriminator]);
2505
2598
  if (opt) return opt._zod.run(payload, ctx);
2506
- if (def.unionFallback) return _super(payload, ctx);
2599
+ if (def.unionFallback || ctx.direction === "backward") return _super(payload, ctx);
2507
2600
  payload.issues.push({
2508
2601
  code: "invalid_union",
2509
2602
  errors: [],
2510
2603
  note: "No matching discriminator",
2511
2604
  discriminator: def.discriminator,
2605
+ options: Array.from(disc.value.keys()),
2512
2606
  input,
2513
2607
  path: [def.discriminator],
2514
2608
  inst
@@ -2631,42 +2725,42 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
2631
2725
  }
2632
2726
  payload.value = [];
2633
2727
  const proms = [];
2634
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
2635
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
2728
+ const optinStart = getTupleOptStart(items, "optin");
2729
+ const optoutStart = getTupleOptStart(items, "optout");
2636
2730
  if (!def.rest) {
2637
- const tooBig = input.length > items.length;
2638
- const tooSmall = input.length < optStart - 1;
2639
- if (tooBig || tooSmall) {
2731
+ if (input.length < optinStart) {
2640
2732
  payload.issues.push({
2641
- ...tooBig ? {
2642
- code: "too_big",
2643
- maximum: items.length,
2644
- inclusive: true
2645
- } : {
2646
- code: "too_small",
2647
- minimum: items.length
2648
- },
2733
+ code: "too_small",
2734
+ minimum: optinStart,
2735
+ inclusive: true,
2649
2736
  input,
2650
2737
  inst,
2651
2738
  origin: "array"
2652
2739
  });
2653
2740
  return payload;
2654
2741
  }
2742
+ if (input.length > items.length) payload.issues.push({
2743
+ code: "too_big",
2744
+ maximum: items.length,
2745
+ inclusive: true,
2746
+ input,
2747
+ inst,
2748
+ origin: "array"
2749
+ });
2655
2750
  }
2656
- let i = -1;
2657
- for (const item of items) {
2658
- i++;
2659
- if (i >= input.length) {
2660
- if (i >= optStart) continue;
2661
- }
2662
- const result = item._zod.run({
2751
+ const itemResults = new Array(items.length);
2752
+ for (let i = 0; i < items.length; i++) {
2753
+ const r = items[i]._zod.run({
2663
2754
  value: input[i],
2664
2755
  issues: []
2665
2756
  }, ctx);
2666
- if (result instanceof Promise) proms.push(result.then((result) => handleTupleResult(result, payload, i)));
2667
- else handleTupleResult(result, payload, i);
2757
+ if (r instanceof Promise) proms.push(r.then((rr) => {
2758
+ itemResults[i] = rr;
2759
+ }));
2760
+ else itemResults[i] = r;
2668
2761
  }
2669
2762
  if (def.rest) {
2763
+ let i = items.length - 1;
2670
2764
  const rest = input.slice(items.length);
2671
2765
  for (const el of rest) {
2672
2766
  i++;
@@ -2674,18 +2768,39 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
2674
2768
  value: el,
2675
2769
  issues: []
2676
2770
  }, ctx);
2677
- if (result instanceof Promise) proms.push(result.then((result) => handleTupleResult(result, payload, i)));
2771
+ if (result instanceof Promise) proms.push(result.then((r) => handleTupleResult(r, payload, i)));
2678
2772
  else handleTupleResult(result, payload, i);
2679
2773
  }
2680
2774
  }
2681
- if (proms.length) return Promise.all(proms).then(() => payload);
2682
- return payload;
2775
+ if (proms.length) return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
2776
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
2683
2777
  };
2684
2778
  });
2779
+ function getTupleOptStart(items, key) {
2780
+ for (let i = items.length - 1; i >= 0; i--) if (items[i]._zod[key] !== "optional") return i + 1;
2781
+ return 0;
2782
+ }
2685
2783
  function handleTupleResult(result, final, index) {
2686
2784
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
2687
2785
  final.value[index] = result.value;
2688
2786
  }
2787
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
2788
+ for (let i = 0; i < items.length; i++) {
2789
+ const r = itemResults[i];
2790
+ const isPresent = i < input.length;
2791
+ if (r.issues.length) {
2792
+ if (!isPresent && i >= optoutStart) {
2793
+ final.value.length = i;
2794
+ break;
2795
+ }
2796
+ final.issues.push(...prefixIssues(i, r.issues));
2797
+ }
2798
+ final.value[i] = r.value;
2799
+ }
2800
+ for (let i = final.value.length - 1; i >= input.length; i--) if (items[i]._zod.optout === "optional" && final.value[i] === void 0) final.value.length = i;
2801
+ else break;
2802
+ return final;
2803
+ }
2689
2804
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2690
2805
  $ZodType.init(inst, def);
2691
2806
  inst._zod.parse = (payload, ctx) => {
@@ -2706,17 +2821,34 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2706
2821
  const recordKeys = /* @__PURE__ */ new Set();
2707
2822
  for (const key of values) if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
2708
2823
  recordKeys.add(typeof key === "number" ? key.toString() : key);
2824
+ const keyResult = def.keyType._zod.run({
2825
+ value: key,
2826
+ issues: []
2827
+ }, ctx);
2828
+ if (keyResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
2829
+ if (keyResult.issues.length) {
2830
+ payload.issues.push({
2831
+ code: "invalid_key",
2832
+ origin: "record",
2833
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
2834
+ input: key,
2835
+ path: [key],
2836
+ inst
2837
+ });
2838
+ continue;
2839
+ }
2840
+ const outKey = keyResult.value;
2709
2841
  const result = def.valueType._zod.run({
2710
2842
  value: input[key],
2711
2843
  issues: []
2712
2844
  }, ctx);
2713
2845
  if (result instanceof Promise) proms.push(result.then((result) => {
2714
2846
  if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2715
- payload.value[key] = result.value;
2847
+ payload.value[outKey] = result.value;
2716
2848
  }));
2717
2849
  else {
2718
2850
  if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2719
- payload.value[key] = result.value;
2851
+ payload.value[outKey] = result.value;
2720
2852
  }
2721
2853
  }
2722
2854
  let unrecognized;
@@ -2734,6 +2866,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2734
2866
  payload.value = {};
2735
2867
  for (const key of Reflect.ownKeys(input)) {
2736
2868
  if (key === "__proto__") continue;
2869
+ if (!Object.prototype.propertyIsEnumerable.call(input, key)) continue;
2737
2870
  let keyResult = def.keyType._zod.run({
2738
2871
  value: key,
2739
2872
  issues: []
@@ -3288,7 +3421,11 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
3288
3421
  });
3289
3422
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
3290
3423
  $ZodType.init(inst, def);
3291
- defineLazy(inst._zod, "innerType", () => def.getter());
3424
+ defineLazy(inst._zod, "innerType", () => {
3425
+ const d = def;
3426
+ if (!d._cachedInner) d._cachedInner = def.getter();
3427
+ return d._cachedInner;
3428
+ });
3292
3429
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
3293
3430
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
3294
3431
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -3324,8 +3461,8 @@ function handleRefineResult(result, payload, input, inst) {
3324
3461
  }
3325
3462
  }
3326
3463
  //#endregion
3327
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
3328
- var error$46 = () => {
3464
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ar.js
3465
+ var error$49 = () => {
3329
3466
  const Sizable = {
3330
3467
  string: {
3331
3468
  unit: "حرف",
@@ -3420,11 +3557,11 @@ var error$46 = () => {
3420
3557
  };
3421
3558
  };
3422
3559
  function ar_default() {
3423
- return { localeError: error$46() };
3560
+ return { localeError: error$49() };
3424
3561
  }
3425
3562
  //#endregion
3426
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
3427
- var error$45 = () => {
3563
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/az.js
3564
+ var error$48 = () => {
3428
3565
  const Sizable = {
3429
3566
  string: {
3430
3567
  unit: "simvol",
@@ -3519,10 +3656,10 @@ var error$45 = () => {
3519
3656
  };
3520
3657
  };
3521
3658
  function az_default() {
3522
- return { localeError: error$45() };
3659
+ return { localeError: error$48() };
3523
3660
  }
3524
3661
  //#endregion
3525
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
3662
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/be.js
3526
3663
  function getBelarusianPlural(count, one, few, many) {
3527
3664
  const absCount = Math.abs(count);
3528
3665
  const lastDigit = absCount % 10;
@@ -3532,7 +3669,7 @@ function getBelarusianPlural(count, one, few, many) {
3532
3669
  if (lastDigit >= 2 && lastDigit <= 4) return few;
3533
3670
  return many;
3534
3671
  }
3535
- var error$44 = () => {
3672
+ var error$47 = () => {
3536
3673
  const Sizable = {
3537
3674
  string: {
3538
3675
  unit: {
@@ -3653,11 +3790,11 @@ var error$44 = () => {
3653
3790
  };
3654
3791
  };
3655
3792
  function be_default() {
3656
- return { localeError: error$44() };
3793
+ return { localeError: error$47() };
3657
3794
  }
3658
3795
  //#endregion
3659
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
3660
- var error$43 = () => {
3796
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/bg.js
3797
+ var error$46 = () => {
3661
3798
  const Sizable = {
3662
3799
  string: {
3663
3800
  unit: "символа",
@@ -3762,11 +3899,11 @@ var error$43 = () => {
3762
3899
  };
3763
3900
  };
3764
3901
  function bg_default() {
3765
- return { localeError: error$43() };
3902
+ return { localeError: error$46() };
3766
3903
  }
3767
3904
  //#endregion
3768
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
3769
- var error$42 = () => {
3905
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ca.js
3906
+ var error$45 = () => {
3770
3907
  const Sizable = {
3771
3908
  string: {
3772
3909
  unit: "caràcters",
@@ -3861,11 +3998,11 @@ var error$42 = () => {
3861
3998
  };
3862
3999
  };
3863
4000
  function ca_default() {
3864
- return { localeError: error$42() };
4001
+ return { localeError: error$45() };
3865
4002
  }
3866
4003
  //#endregion
3867
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
3868
- var error$41 = () => {
4004
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/cs.js
4005
+ var error$44 = () => {
3869
4006
  const Sizable = {
3870
4007
  string: {
3871
4008
  unit: "znaků",
@@ -3966,11 +4103,11 @@ var error$41 = () => {
3966
4103
  };
3967
4104
  };
3968
4105
  function cs_default() {
3969
- return { localeError: error$41() };
4106
+ return { localeError: error$44() };
3970
4107
  }
3971
4108
  //#endregion
3972
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
3973
- var error$40 = () => {
4109
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/da.js
4110
+ var error$43 = () => {
3974
4111
  const Sizable = {
3975
4112
  string: {
3976
4113
  unit: "tegn",
@@ -4076,11 +4213,11 @@ var error$40 = () => {
4076
4213
  };
4077
4214
  };
4078
4215
  function da_default() {
4079
- return { localeError: error$40() };
4216
+ return { localeError: error$43() };
4080
4217
  }
4081
4218
  //#endregion
4082
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
4083
- var error$39 = () => {
4219
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/de.js
4220
+ var error$42 = () => {
4084
4221
  const Sizable = {
4085
4222
  string: {
4086
4223
  unit: "Zeichen",
@@ -4179,11 +4316,115 @@ var error$39 = () => {
4179
4316
  };
4180
4317
  };
4181
4318
  function de_default() {
4182
- return { localeError: error$39() };
4319
+ return { localeError: error$42() };
4183
4320
  }
4184
4321
  //#endregion
4185
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
4186
- var error$38 = () => {
4322
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/el.js
4323
+ var error$41 = () => {
4324
+ const Sizable = {
4325
+ string: {
4326
+ unit: "χαρακτήρες",
4327
+ verb: "να έχει"
4328
+ },
4329
+ file: {
4330
+ unit: "bytes",
4331
+ verb: "να έχει"
4332
+ },
4333
+ array: {
4334
+ unit: "στοιχεία",
4335
+ verb: "να έχει"
4336
+ },
4337
+ set: {
4338
+ unit: "στοιχεία",
4339
+ verb: "να έχει"
4340
+ },
4341
+ map: {
4342
+ unit: "καταχωρήσεις",
4343
+ verb: "να έχει"
4344
+ }
4345
+ };
4346
+ function getSizing(origin) {
4347
+ return Sizable[origin] ?? null;
4348
+ }
4349
+ const FormatDictionary = {
4350
+ regex: "είσοδος",
4351
+ email: "διεύθυνση email",
4352
+ url: "URL",
4353
+ emoji: "emoji",
4354
+ uuid: "UUID",
4355
+ uuidv4: "UUIDv4",
4356
+ uuidv6: "UUIDv6",
4357
+ nanoid: "nanoid",
4358
+ guid: "GUID",
4359
+ cuid: "cuid",
4360
+ cuid2: "cuid2",
4361
+ ulid: "ULID",
4362
+ xid: "XID",
4363
+ ksuid: "KSUID",
4364
+ datetime: "ISO ημερομηνία και ώρα",
4365
+ date: "ISO ημερομηνία",
4366
+ time: "ISO ώρα",
4367
+ duration: "ISO διάρκεια",
4368
+ ipv4: "διεύθυνση IPv4",
4369
+ ipv6: "διεύθυνση IPv6",
4370
+ mac: "διεύθυνση MAC",
4371
+ cidrv4: "εύρος IPv4",
4372
+ cidrv6: "εύρος IPv6",
4373
+ base64: "συμβολοσειρά κωδικοποιημένη σε base64",
4374
+ base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
4375
+ json_string: "συμβολοσειρά JSON",
4376
+ e164: "αριθμός E.164",
4377
+ jwt: "JWT",
4378
+ template_literal: "είσοδος"
4379
+ };
4380
+ const TypeDictionary = { nan: "NaN" };
4381
+ return (issue) => {
4382
+ switch (issue.code) {
4383
+ case "invalid_type": {
4384
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
4385
+ const receivedType = parsedType(issue.input);
4386
+ const received = TypeDictionary[receivedType] ?? receivedType;
4387
+ if (typeof issue.expected === "string" && /^[A-Z]/.test(issue.expected)) return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue.expected}, λήφθηκε ${received}`;
4388
+ return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
4389
+ }
4390
+ case "invalid_value":
4391
+ if (issue.values.length === 1) return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue.values[0])}`;
4392
+ return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue.values, "|")}`;
4393
+ case "too_big": {
4394
+ const adj = issue.inclusive ? "<=" : "<";
4395
+ const sizing = getSizing(issue.origin);
4396
+ if (sizing) return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? "τιμή"} να έχει ${adj}${issue.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
4397
+ return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? "τιμή"} να είναι ${adj}${issue.maximum.toString()}`;
4398
+ }
4399
+ case "too_small": {
4400
+ const adj = issue.inclusive ? ">=" : ">";
4401
+ const sizing = getSizing(issue.origin);
4402
+ if (sizing) return `Πολύ μικρό: αναμενόταν ${issue.origin} να έχει ${adj}${issue.minimum.toString()} ${sizing.unit}`;
4403
+ return `Πολύ μικρό: αναμενόταν ${issue.origin} να είναι ${adj}${issue.minimum.toString()}`;
4404
+ }
4405
+ case "invalid_format": {
4406
+ const _issue = issue;
4407
+ if (_issue.format === "starts_with") return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
4408
+ if (_issue.format === "ends_with") return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
4409
+ if (_issue.format === "includes") return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
4410
+ if (_issue.format === "regex") return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
4411
+ return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue.format}`;
4412
+ }
4413
+ case "not_multiple_of": return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue.divisor}`;
4414
+ case "unrecognized_keys": return `Άγνωστ${issue.keys.length > 1 ? "α" : "ο"} κλειδ${issue.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue.keys, ", ")}`;
4415
+ case "invalid_key": return `Μη έγκυρο κλειδί στο ${issue.origin}`;
4416
+ case "invalid_union": return "Μη έγκυρη είσοδος";
4417
+ case "invalid_element": return `Μη έγκυρη τιμή στο ${issue.origin}`;
4418
+ default: return `Μη έγκυρη είσοδος`;
4419
+ }
4420
+ };
4421
+ };
4422
+ function el_default() {
4423
+ return { localeError: error$41() };
4424
+ }
4425
+ //#endregion
4426
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/en.js
4427
+ var error$40 = () => {
4187
4428
  const Sizable = {
4188
4429
  string: {
4189
4430
  unit: "characters",
@@ -4274,18 +4515,20 @@ var error$38 = () => {
4274
4515
  case "not_multiple_of": return `Invalid number: must be a multiple of ${issue.divisor}`;
4275
4516
  case "unrecognized_keys": return `Unrecognized key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`;
4276
4517
  case "invalid_key": return `Invalid key in ${issue.origin}`;
4277
- case "invalid_union": return "Invalid input";
4518
+ case "invalid_union":
4519
+ if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) return `Invalid discriminator value. Expected ${issue.options.map((o) => `'${o}'`).join(" | ")}`;
4520
+ return "Invalid input";
4278
4521
  case "invalid_element": return `Invalid value in ${issue.origin}`;
4279
4522
  default: return `Invalid input`;
4280
4523
  }
4281
4524
  };
4282
4525
  };
4283
4526
  function en_default() {
4284
- return { localeError: error$38() };
4527
+ return { localeError: error$40() };
4285
4528
  }
4286
4529
  //#endregion
4287
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
4288
- var error$37 = () => {
4530
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/eo.js
4531
+ var error$39 = () => {
4289
4532
  const Sizable = {
4290
4533
  string: {
4291
4534
  unit: "karaktrojn",
@@ -4385,11 +4628,11 @@ var error$37 = () => {
4385
4628
  };
4386
4629
  };
4387
4630
  function eo_default() {
4388
- return { localeError: error$37() };
4631
+ return { localeError: error$39() };
4389
4632
  }
4390
4633
  //#endregion
4391
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
4392
- var error$36 = () => {
4634
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/es.js
4635
+ var error$38 = () => {
4393
4636
  const Sizable = {
4394
4637
  string: {
4395
4638
  unit: "caracteres",
@@ -4512,11 +4755,11 @@ var error$36 = () => {
4512
4755
  };
4513
4756
  };
4514
4757
  function es_default() {
4515
- return { localeError: error$36() };
4758
+ return { localeError: error$38() };
4516
4759
  }
4517
4760
  //#endregion
4518
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
4519
- var error$35 = () => {
4761
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/fa.js
4762
+ var error$37 = () => {
4520
4763
  const Sizable = {
4521
4764
  string: {
4522
4765
  unit: "کاراکتر",
@@ -4615,11 +4858,11 @@ var error$35 = () => {
4615
4858
  };
4616
4859
  };
4617
4860
  function fa_default() {
4618
- return { localeError: error$35() };
4861
+ return { localeError: error$37() };
4619
4862
  }
4620
4863
  //#endregion
4621
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
4622
- var error$34 = () => {
4864
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/fi.js
4865
+ var error$36 = () => {
4623
4866
  const Sizable = {
4624
4867
  string: {
4625
4868
  unit: "merkkiä",
@@ -4730,11 +4973,11 @@ var error$34 = () => {
4730
4973
  };
4731
4974
  };
4732
4975
  function fi_default() {
4733
- return { localeError: error$34() };
4976
+ return { localeError: error$36() };
4734
4977
  }
4735
4978
  //#endregion
4736
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
4737
- var error$33 = () => {
4979
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/fr.js
4980
+ var error$35 = () => {
4738
4981
  const Sizable = {
4739
4982
  string: {
4740
4983
  unit: "caractères",
@@ -4787,9 +5030,27 @@ var error$33 = () => {
4787
5030
  template_literal: "entrée"
4788
5031
  };
4789
5032
  const TypeDictionary = {
4790
- nan: "NaN",
5033
+ string: "chaîne",
4791
5034
  number: "nombre",
4792
- array: "tableau"
5035
+ int: "entier",
5036
+ boolean: "booléen",
5037
+ bigint: "grand entier",
5038
+ symbol: "symbole",
5039
+ undefined: "indéfini",
5040
+ null: "null",
5041
+ never: "jamais",
5042
+ void: "vide",
5043
+ date: "date",
5044
+ array: "tableau",
5045
+ object: "objet",
5046
+ tuple: "tuple",
5047
+ record: "enregistrement",
5048
+ map: "carte",
5049
+ set: "ensemble",
5050
+ file: "fichier",
5051
+ nonoptional: "non-optionnel",
5052
+ nan: "NaN",
5053
+ function: "fonction"
4793
5054
  };
4794
5055
  return (issue) => {
4795
5056
  switch (issue.code) {
@@ -4806,14 +5067,14 @@ var error$33 = () => {
4806
5067
  case "too_big": {
4807
5068
  const adj = issue.inclusive ? "<=" : "<";
4808
5069
  const sizing = getSizing(issue.origin);
4809
- if (sizing) return `Trop grand : ${issue.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
4810
- return `Trop grand : ${issue.origin ?? "valeur"} doit être ${adj}${issue.maximum.toString()}`;
5070
+ if (sizing) return `Trop grand : ${TypeDictionary[issue.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
5071
+ return `Trop grand : ${TypeDictionary[issue.origin] ?? "valeur"} doit être ${adj}${issue.maximum.toString()}`;
4811
5072
  }
4812
5073
  case "too_small": {
4813
5074
  const adj = issue.inclusive ? ">=" : ">";
4814
5075
  const sizing = getSizing(issue.origin);
4815
- if (sizing) return `Trop petit : ${issue.origin} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
4816
- return `Trop petit : ${issue.origin} doit être ${adj}${issue.minimum.toString()}`;
5076
+ if (sizing) return `Trop petit : ${TypeDictionary[issue.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
5077
+ return `Trop petit : ${TypeDictionary[issue.origin] ?? "valeur"} doit être ${adj}${issue.minimum.toString()}`;
4817
5078
  }
4818
5079
  case "invalid_format": {
4819
5080
  const _issue = issue;
@@ -4833,11 +5094,11 @@ var error$33 = () => {
4833
5094
  };
4834
5095
  };
4835
5096
  function fr_default() {
4836
- return { localeError: error$33() };
5097
+ return { localeError: error$35() };
4837
5098
  }
4838
5099
  //#endregion
4839
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
4840
- var error$32 = () => {
5100
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/fr-CA.js
5101
+ var error$34 = () => {
4841
5102
  const Sizable = {
4842
5103
  string: {
4843
5104
  unit: "caractères",
@@ -4932,11 +5193,11 @@ var error$32 = () => {
4932
5193
  };
4933
5194
  };
4934
5195
  function fr_CA_default() {
4935
- return { localeError: error$32() };
5196
+ return { localeError: error$34() };
4936
5197
  }
4937
5198
  //#endregion
4938
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
4939
- var error$31 = () => {
5199
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/he.js
5200
+ var error$33 = () => {
4940
5201
  const TypeNames = {
4941
5202
  string: {
4942
5203
  label: "מחרוזת",
@@ -5237,11 +5498,128 @@ var error$31 = () => {
5237
5498
  };
5238
5499
  };
5239
5500
  function he_default() {
5240
- return { localeError: error$31() };
5501
+ return { localeError: error$33() };
5241
5502
  }
5242
5503
  //#endregion
5243
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
5244
- var error$30 = () => {
5504
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/hr.js
5505
+ var error$32 = () => {
5506
+ const Sizable = {
5507
+ string: {
5508
+ unit: "znakova",
5509
+ verb: "imati"
5510
+ },
5511
+ file: {
5512
+ unit: "bajtova",
5513
+ verb: "imati"
5514
+ },
5515
+ array: {
5516
+ unit: "stavki",
5517
+ verb: "imati"
5518
+ },
5519
+ set: {
5520
+ unit: "stavki",
5521
+ verb: "imati"
5522
+ }
5523
+ };
5524
+ function getSizing(origin) {
5525
+ return Sizable[origin] ?? null;
5526
+ }
5527
+ const FormatDictionary = {
5528
+ regex: "unos",
5529
+ email: "email adresa",
5530
+ url: "URL",
5531
+ emoji: "emoji",
5532
+ uuid: "UUID",
5533
+ uuidv4: "UUIDv4",
5534
+ uuidv6: "UUIDv6",
5535
+ nanoid: "nanoid",
5536
+ guid: "GUID",
5537
+ cuid: "cuid",
5538
+ cuid2: "cuid2",
5539
+ ulid: "ULID",
5540
+ xid: "XID",
5541
+ ksuid: "KSUID",
5542
+ datetime: "ISO datum i vrijeme",
5543
+ date: "ISO datum",
5544
+ time: "ISO vrijeme",
5545
+ duration: "ISO trajanje",
5546
+ ipv4: "IPv4 adresa",
5547
+ ipv6: "IPv6 adresa",
5548
+ cidrv4: "IPv4 raspon",
5549
+ cidrv6: "IPv6 raspon",
5550
+ base64: "base64 kodirani tekst",
5551
+ base64url: "base64url kodirani tekst",
5552
+ json_string: "JSON tekst",
5553
+ e164: "E.164 broj",
5554
+ jwt: "JWT",
5555
+ template_literal: "unos"
5556
+ };
5557
+ const TypeDictionary = {
5558
+ nan: "NaN",
5559
+ string: "tekst",
5560
+ number: "broj",
5561
+ boolean: "boolean",
5562
+ array: "niz",
5563
+ object: "objekt",
5564
+ set: "skup",
5565
+ file: "datoteka",
5566
+ date: "datum",
5567
+ bigint: "bigint",
5568
+ symbol: "simbol",
5569
+ undefined: "undefined",
5570
+ null: "null",
5571
+ function: "funkcija",
5572
+ map: "mapa"
5573
+ };
5574
+ return (issue) => {
5575
+ switch (issue.code) {
5576
+ case "invalid_type": {
5577
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
5578
+ const receivedType = parsedType(issue.input);
5579
+ const received = TypeDictionary[receivedType] ?? receivedType;
5580
+ if (/^[A-Z]/.test(issue.expected)) return `Neispravan unos: očekuje se instanceof ${issue.expected}, a primljeno je ${received}`;
5581
+ return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
5582
+ }
5583
+ case "invalid_value":
5584
+ if (issue.values.length === 1) return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue.values[0])}`;
5585
+ return `Neispravna opcija: očekivano jedno od ${joinValues(issue.values, "|")}`;
5586
+ case "too_big": {
5587
+ const adj = issue.inclusive ? "<=" : "<";
5588
+ const sizing = getSizing(issue.origin);
5589
+ const origin = TypeDictionary[issue.origin] ?? issue.origin;
5590
+ if (sizing) return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
5591
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue.maximum.toString()}`;
5592
+ }
5593
+ case "too_small": {
5594
+ const adj = issue.inclusive ? ">=" : ">";
5595
+ const sizing = getSizing(issue.origin);
5596
+ const origin = TypeDictionary[issue.origin] ?? issue.origin;
5597
+ if (sizing) return `Premalo: očekivano da ${origin} ima ${adj}${issue.minimum.toString()} ${sizing.unit}`;
5598
+ return `Premalo: očekivano da ${origin} bude ${adj}${issue.minimum.toString()}`;
5599
+ }
5600
+ case "invalid_format": {
5601
+ const _issue = issue;
5602
+ if (_issue.format === "starts_with") return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
5603
+ if (_issue.format === "ends_with") return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
5604
+ if (_issue.format === "includes") return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
5605
+ if (_issue.format === "regex") return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
5606
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue.format}`;
5607
+ }
5608
+ case "not_multiple_of": return `Neispravan broj: mora biti višekratnik od ${issue.divisor}`;
5609
+ case "unrecognized_keys": return `Neprepoznat${issue.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue.keys, ", ")}`;
5610
+ case "invalid_key": return `Neispravan ključ u ${TypeDictionary[issue.origin] ?? issue.origin}`;
5611
+ case "invalid_union": return "Neispravan unos";
5612
+ case "invalid_element": return `Neispravna vrijednost u ${TypeDictionary[issue.origin] ?? issue.origin}`;
5613
+ default: return `Neispravan unos`;
5614
+ }
5615
+ };
5616
+ };
5617
+ function hr_default() {
5618
+ return { localeError: error$32() };
5619
+ }
5620
+ //#endregion
5621
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/hu.js
5622
+ var error$31 = () => {
5245
5623
  const Sizable = {
5246
5624
  string: {
5247
5625
  unit: "karakter",
@@ -5340,10 +5718,10 @@ var error$30 = () => {
5340
5718
  };
5341
5719
  };
5342
5720
  function hu_default() {
5343
- return { localeError: error$30() };
5721
+ return { localeError: error$31() };
5344
5722
  }
5345
5723
  //#endregion
5346
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
5724
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/hy.js
5347
5725
  function getArmenianPlural(count, one, many) {
5348
5726
  return Math.abs(count) === 1 ? one : many;
5349
5727
  }
@@ -5361,7 +5739,7 @@ function withDefiniteArticle(word) {
5361
5739
  const lastChar = word[word.length - 1];
5362
5740
  return word + (vowels.includes(lastChar) ? "ն" : "ը");
5363
5741
  }
5364
- var error$29 = () => {
5742
+ var error$30 = () => {
5365
5743
  const Sizable = {
5366
5744
  string: {
5367
5745
  unit: {
@@ -5478,11 +5856,11 @@ var error$29 = () => {
5478
5856
  };
5479
5857
  };
5480
5858
  function hy_default() {
5481
- return { localeError: error$29() };
5859
+ return { localeError: error$30() };
5482
5860
  }
5483
5861
  //#endregion
5484
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
5485
- var error$28 = () => {
5862
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/id.js
5863
+ var error$29 = () => {
5486
5864
  const Sizable = {
5487
5865
  string: {
5488
5866
  unit: "karakter",
@@ -5577,11 +5955,11 @@ var error$28 = () => {
5577
5955
  };
5578
5956
  };
5579
5957
  function id_default() {
5580
- return { localeError: error$28() };
5958
+ return { localeError: error$29() };
5581
5959
  }
5582
5960
  //#endregion
5583
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
5584
- var error$27 = () => {
5961
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/is.js
5962
+ var error$28 = () => {
5585
5963
  const Sizable = {
5586
5964
  string: {
5587
5965
  unit: "stafi",
@@ -5680,11 +6058,11 @@ var error$27 = () => {
5680
6058
  };
5681
6059
  };
5682
6060
  function is_default() {
5683
- return { localeError: error$27() };
6061
+ return { localeError: error$28() };
5684
6062
  }
5685
6063
  //#endregion
5686
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
5687
- var error$26 = () => {
6064
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/it.js
6065
+ var error$27 = () => {
5688
6066
  const Sizable = {
5689
6067
  string: {
5690
6068
  unit: "caratteri",
@@ -5771,7 +6149,7 @@ var error$26 = () => {
5771
6149
  if (_issue.format === "ends_with") return `Stringa non valida: deve terminare con "${_issue.suffix}"`;
5772
6150
  if (_issue.format === "includes") return `Stringa non valida: deve includere "${_issue.includes}"`;
5773
6151
  if (_issue.format === "regex") return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
5774
- return `Invalid ${FormatDictionary[_issue.format] ?? issue.format}`;
6152
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue.format}`;
5775
6153
  }
5776
6154
  case "not_multiple_of": return `Numero non valido: deve essere un multiplo di ${issue.divisor}`;
5777
6155
  case "unrecognized_keys": return `Chiav${issue.keys.length > 1 ? "i" : "e"} non riconosciut${issue.keys.length > 1 ? "e" : "a"}: ${joinValues(issue.keys, ", ")}`;
@@ -5783,11 +6161,11 @@ var error$26 = () => {
5783
6161
  };
5784
6162
  };
5785
6163
  function it_default() {
5786
- return { localeError: error$26() };
6164
+ return { localeError: error$27() };
5787
6165
  }
5788
6166
  //#endregion
5789
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
5790
- var error$25 = () => {
6167
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ja.js
6168
+ var error$26 = () => {
5791
6169
  const Sizable = {
5792
6170
  string: {
5793
6171
  unit: "文字",
@@ -5886,11 +6264,11 @@ var error$25 = () => {
5886
6264
  };
5887
6265
  };
5888
6266
  function ja_default() {
5889
- return { localeError: error$25() };
6267
+ return { localeError: error$26() };
5890
6268
  }
5891
6269
  //#endregion
5892
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
5893
- var error$24 = () => {
6270
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ka.js
6271
+ var error$25 = () => {
5894
6272
  const Sizable = {
5895
6273
  string: {
5896
6274
  unit: "სიმბოლო",
@@ -5935,9 +6313,9 @@ var error$24 = () => {
5935
6313
  ipv6: "IPv6 მისამართი",
5936
6314
  cidrv4: "IPv4 დიაპაზონი",
5937
6315
  cidrv6: "IPv6 დიაპაზონი",
5938
- base64: "base64-კოდირებული სტრინგი",
5939
- base64url: "base64url-კოდირებული სტრინგი",
5940
- json_string: "JSON სტრინგი",
6316
+ base64: "base64-კოდირებული ველი",
6317
+ base64url: "base64url-კოდირებული ველი",
6318
+ json_string: "JSON ველი",
5941
6319
  e164: "E.164 ნომერი",
5942
6320
  jwt: "JWT",
5943
6321
  template_literal: "შეყვანა"
@@ -5945,7 +6323,7 @@ var error$24 = () => {
5945
6323
  const TypeDictionary = {
5946
6324
  nan: "NaN",
5947
6325
  number: "რიცხვი",
5948
- string: "სტრინგი",
6326
+ string: "ველი",
5949
6327
  boolean: "ბულეანი",
5950
6328
  function: "ფუნქცია",
5951
6329
  array: "მასივი"
@@ -5976,10 +6354,10 @@ var error$24 = () => {
5976
6354
  }
5977
6355
  case "invalid_format": {
5978
6356
  const _issue = issue;
5979
- if (_issue.format === "starts_with") return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
5980
- if (_issue.format === "ends_with") return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
5981
- if (_issue.format === "includes") return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
5982
- if (_issue.format === "regex") return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
6357
+ if (_issue.format === "starts_with") return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
6358
+ if (_issue.format === "ends_with") return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
6359
+ if (_issue.format === "includes") return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
6360
+ if (_issue.format === "regex") return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
5983
6361
  return `არასწორი ${FormatDictionary[_issue.format] ?? issue.format}`;
5984
6362
  }
5985
6363
  case "not_multiple_of": return `არასწორი რიცხვი: უნდა იყოს ${issue.divisor}-ის ჯერადი`;
@@ -5992,11 +6370,11 @@ var error$24 = () => {
5992
6370
  };
5993
6371
  };
5994
6372
  function ka_default() {
5995
- return { localeError: error$24() };
6373
+ return { localeError: error$25() };
5996
6374
  }
5997
6375
  //#endregion
5998
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
5999
- var error$23 = () => {
6376
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/km.js
6377
+ var error$24 = () => {
6000
6378
  const Sizable = {
6001
6379
  string: {
6002
6380
  unit: "តួអក្សរ",
@@ -6096,17 +6474,17 @@ var error$23 = () => {
6096
6474
  };
6097
6475
  };
6098
6476
  function km_default() {
6099
- return { localeError: error$23() };
6477
+ return { localeError: error$24() };
6100
6478
  }
6101
6479
  //#endregion
6102
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
6480
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/kh.js
6103
6481
  /** @deprecated Use `km` instead. */
6104
6482
  function kh_default() {
6105
6483
  return km_default();
6106
6484
  }
6107
6485
  //#endregion
6108
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
6109
- var error$22 = () => {
6486
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ko.js
6487
+ var error$23 = () => {
6110
6488
  const Sizable = {
6111
6489
  string: {
6112
6490
  unit: "문자",
@@ -6205,10 +6583,10 @@ var error$22 = () => {
6205
6583
  };
6206
6584
  };
6207
6585
  function ko_default() {
6208
- return { localeError: error$22() };
6586
+ return { localeError: error$23() };
6209
6587
  }
6210
6588
  //#endregion
6211
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
6589
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/lt.js
6212
6590
  var capitalizeFirstCharacter = (text) => {
6213
6591
  return text.charAt(0).toUpperCase() + text.slice(1);
6214
6592
  };
@@ -6220,7 +6598,7 @@ function getUnitTypeFromNumber(number) {
6220
6598
  if (last === 1) return "one";
6221
6599
  return "few";
6222
6600
  }
6223
- var error$21 = () => {
6601
+ var error$22 = () => {
6224
6602
  const Sizable = {
6225
6603
  string: {
6226
6604
  unit: {
@@ -6386,11 +6764,11 @@ var error$21 = () => {
6386
6764
  };
6387
6765
  };
6388
6766
  function lt_default() {
6389
- return { localeError: error$21() };
6767
+ return { localeError: error$22() };
6390
6768
  }
6391
6769
  //#endregion
6392
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
6393
- var error$20 = () => {
6770
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/mk.js
6771
+ var error$21 = () => {
6394
6772
  const Sizable = {
6395
6773
  string: {
6396
6774
  unit: "знаци",
@@ -6489,11 +6867,11 @@ var error$20 = () => {
6489
6867
  };
6490
6868
  };
6491
6869
  function mk_default() {
6492
- return { localeError: error$20() };
6870
+ return { localeError: error$21() };
6493
6871
  }
6494
6872
  //#endregion
6495
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
6496
- var error$19 = () => {
6873
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ms.js
6874
+ var error$20 = () => {
6497
6875
  const Sizable = {
6498
6876
  string: {
6499
6877
  unit: "aksara",
@@ -6591,11 +6969,11 @@ var error$19 = () => {
6591
6969
  };
6592
6970
  };
6593
6971
  function ms_default() {
6594
- return { localeError: error$19() };
6972
+ return { localeError: error$20() };
6595
6973
  }
6596
6974
  //#endregion
6597
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
6598
- var error$18 = () => {
6975
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/nl.js
6976
+ var error$19 = () => {
6599
6977
  const Sizable = {
6600
6978
  string: {
6601
6979
  unit: "tekens",
@@ -6695,11 +7073,11 @@ var error$18 = () => {
6695
7073
  };
6696
7074
  };
6697
7075
  function nl_default() {
6698
- return { localeError: error$18() };
7076
+ return { localeError: error$19() };
6699
7077
  }
6700
7078
  //#endregion
6701
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
6702
- var error$17 = () => {
7079
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/no.js
7080
+ var error$18 = () => {
6703
7081
  const Sizable = {
6704
7082
  string: {
6705
7083
  unit: "tegn",
@@ -6798,11 +7176,11 @@ var error$17 = () => {
6798
7176
  };
6799
7177
  };
6800
7178
  function no_default() {
6801
- return { localeError: error$17() };
7179
+ return { localeError: error$18() };
6802
7180
  }
6803
7181
  //#endregion
6804
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
6805
- var error$16 = () => {
7182
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ota.js
7183
+ var error$17 = () => {
6806
7184
  const Sizable = {
6807
7185
  string: {
6808
7186
  unit: "harf",
@@ -6902,11 +7280,11 @@ var error$16 = () => {
6902
7280
  };
6903
7281
  };
6904
7282
  function ota_default() {
6905
- return { localeError: error$16() };
7283
+ return { localeError: error$17() };
6906
7284
  }
6907
7285
  //#endregion
6908
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
6909
- var error$15 = () => {
7286
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ps.js
7287
+ var error$16 = () => {
6910
7288
  const Sizable = {
6911
7289
  string: {
6912
7290
  unit: "توکي",
@@ -7005,11 +7383,11 @@ var error$15 = () => {
7005
7383
  };
7006
7384
  };
7007
7385
  function ps_default() {
7008
- return { localeError: error$15() };
7386
+ return { localeError: error$16() };
7009
7387
  }
7010
7388
  //#endregion
7011
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
7012
- var error$14 = () => {
7389
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/pl.js
7390
+ var error$15 = () => {
7013
7391
  const Sizable = {
7014
7392
  string: {
7015
7393
  unit: "znaków",
@@ -7108,11 +7486,11 @@ var error$14 = () => {
7108
7486
  };
7109
7487
  };
7110
7488
  function pl_default() {
7111
- return { localeError: error$14() };
7489
+ return { localeError: error$15() };
7112
7490
  }
7113
7491
  //#endregion
7114
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
7115
- var error$13 = () => {
7492
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/pt.js
7493
+ var error$14 = () => {
7116
7494
  const Sizable = {
7117
7495
  string: {
7118
7496
  unit: "caracteres",
@@ -7211,10 +7589,127 @@ var error$13 = () => {
7211
7589
  };
7212
7590
  };
7213
7591
  function pt_default() {
7592
+ return { localeError: error$14() };
7593
+ }
7594
+ //#endregion
7595
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ro.js
7596
+ var error$13 = () => {
7597
+ const Sizable = {
7598
+ string: {
7599
+ unit: "caractere",
7600
+ verb: "să aibă"
7601
+ },
7602
+ file: {
7603
+ unit: "octeți",
7604
+ verb: "să aibă"
7605
+ },
7606
+ array: {
7607
+ unit: "elemente",
7608
+ verb: "să aibă"
7609
+ },
7610
+ set: {
7611
+ unit: "elemente",
7612
+ verb: "să aibă"
7613
+ },
7614
+ map: {
7615
+ unit: "intrări",
7616
+ verb: "să aibă"
7617
+ }
7618
+ };
7619
+ function getSizing(origin) {
7620
+ return Sizable[origin] ?? null;
7621
+ }
7622
+ const FormatDictionary = {
7623
+ regex: "intrare",
7624
+ email: "adresă de email",
7625
+ url: "URL",
7626
+ emoji: "emoji",
7627
+ uuid: "UUID",
7628
+ uuidv4: "UUIDv4",
7629
+ uuidv6: "UUIDv6",
7630
+ nanoid: "nanoid",
7631
+ guid: "GUID",
7632
+ cuid: "cuid",
7633
+ cuid2: "cuid2",
7634
+ ulid: "ULID",
7635
+ xid: "XID",
7636
+ ksuid: "KSUID",
7637
+ datetime: "dată și oră ISO",
7638
+ date: "dată ISO",
7639
+ time: "oră ISO",
7640
+ duration: "durată ISO",
7641
+ ipv4: "adresă IPv4",
7642
+ ipv6: "adresă IPv6",
7643
+ mac: "adresă MAC",
7644
+ cidrv4: "interval IPv4",
7645
+ cidrv6: "interval IPv6",
7646
+ base64: "șir codat base64",
7647
+ base64url: "șir codat base64url",
7648
+ json_string: "șir JSON",
7649
+ e164: "număr E.164",
7650
+ jwt: "JWT",
7651
+ template_literal: "intrare"
7652
+ };
7653
+ const TypeDictionary = {
7654
+ nan: "NaN",
7655
+ string: "șir",
7656
+ number: "număr",
7657
+ boolean: "boolean",
7658
+ function: "funcție",
7659
+ array: "matrice",
7660
+ object: "obiect",
7661
+ undefined: "nedefinit",
7662
+ symbol: "simbol",
7663
+ bigint: "număr mare",
7664
+ void: "void",
7665
+ never: "never",
7666
+ map: "hartă",
7667
+ set: "set"
7668
+ };
7669
+ return (issue) => {
7670
+ switch (issue.code) {
7671
+ case "invalid_type": {
7672
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
7673
+ const receivedType = parsedType(issue.input);
7674
+ return `Intrare invalidă: așteptat ${expected}, primit ${TypeDictionary[receivedType] ?? receivedType}`;
7675
+ }
7676
+ case "invalid_value":
7677
+ if (issue.values.length === 1) return `Intrare invalidă: așteptat ${stringifyPrimitive(issue.values[0])}`;
7678
+ return `Opțiune invalidă: așteptat una dintre ${joinValues(issue.values, "|")}`;
7679
+ case "too_big": {
7680
+ const adj = issue.inclusive ? "<=" : "<";
7681
+ const sizing = getSizing(issue.origin);
7682
+ if (sizing) return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemente"}`;
7683
+ return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} să fie ${adj}${issue.maximum.toString()}`;
7684
+ }
7685
+ case "too_small": {
7686
+ const adj = issue.inclusive ? ">=" : ">";
7687
+ const sizing = getSizing(issue.origin);
7688
+ if (sizing) return `Prea mic: așteptat ca ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
7689
+ return `Prea mic: așteptat ca ${issue.origin} să fie ${adj}${issue.minimum.toString()}`;
7690
+ }
7691
+ case "invalid_format": {
7692
+ const _issue = issue;
7693
+ if (_issue.format === "starts_with") return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
7694
+ if (_issue.format === "ends_with") return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
7695
+ if (_issue.format === "includes") return `Șir invalid: trebuie să includă "${_issue.includes}"`;
7696
+ if (_issue.format === "regex") return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
7697
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue.format}`;
7698
+ }
7699
+ case "not_multiple_of": return `Număr invalid: trebuie să fie multiplu de ${issue.divisor}`;
7700
+ case "unrecognized_keys": return `Chei nerecunoscute: ${joinValues(issue.keys, ", ")}`;
7701
+ case "invalid_key": return `Cheie invalidă în ${issue.origin}`;
7702
+ case "invalid_union": return "Intrare invalidă";
7703
+ case "invalid_element": return `Valoare invalidă în ${issue.origin}`;
7704
+ default: return `Intrare invalidă`;
7705
+ }
7706
+ };
7707
+ };
7708
+ function ro_default() {
7214
7709
  return { localeError: error$13() };
7215
7710
  }
7216
7711
  //#endregion
7217
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
7712
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ru.js
7218
7713
  function getRussianPlural(count, one, few, many) {
7219
7714
  const absCount = Math.abs(count);
7220
7715
  const lastDigit = absCount % 10;
@@ -7348,7 +7843,7 @@ function ru_default() {
7348
7843
  return { localeError: error$12() };
7349
7844
  }
7350
7845
  //#endregion
7351
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
7846
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/sl.js
7352
7847
  var error$11 = () => {
7353
7848
  const Sizable = {
7354
7849
  string: {
@@ -7451,7 +7946,7 @@ function sl_default() {
7451
7946
  return { localeError: error$11() };
7452
7947
  }
7453
7948
  //#endregion
7454
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
7949
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/sv.js
7455
7950
  var error$10 = () => {
7456
7951
  const Sizable = {
7457
7952
  string: {
@@ -7554,7 +8049,7 @@ function sv_default() {
7554
8049
  return { localeError: error$10() };
7555
8050
  }
7556
8051
  //#endregion
7557
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
8052
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ta.js
7558
8053
  var error$9 = () => {
7559
8054
  const Sizable = {
7560
8055
  string: {
@@ -7658,7 +8153,7 @@ function ta_default() {
7658
8153
  return { localeError: error$9() };
7659
8154
  }
7660
8155
  //#endregion
7661
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
8156
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/th.js
7662
8157
  var error$8 = () => {
7663
8158
  const Sizable = {
7664
8159
  string: {
@@ -7762,7 +8257,7 @@ function th_default() {
7762
8257
  return { localeError: error$8() };
7763
8258
  }
7764
8259
  //#endregion
7765
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
8260
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/tr.js
7766
8261
  var error$7 = () => {
7767
8262
  const Sizable = {
7768
8263
  string: {
@@ -7861,7 +8356,7 @@ function tr_default() {
7861
8356
  return { localeError: error$7() };
7862
8357
  }
7863
8358
  //#endregion
7864
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
8359
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/uk.js
7865
8360
  var error$6 = () => {
7866
8361
  const Sizable = {
7867
8362
  string: {
@@ -7964,13 +8459,13 @@ function uk_default() {
7964
8459
  return { localeError: error$6() };
7965
8460
  }
7966
8461
  //#endregion
7967
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
8462
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ua.js
7968
8463
  /** @deprecated Use `uk` instead. */
7969
8464
  function ua_default() {
7970
8465
  return uk_default();
7971
8466
  }
7972
8467
  //#endregion
7973
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
8468
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/ur.js
7974
8469
  var error$5 = () => {
7975
8470
  const Sizable = {
7976
8471
  string: {
@@ -8074,7 +8569,7 @@ function ur_default() {
8074
8569
  return { localeError: error$5() };
8075
8570
  }
8076
8571
  //#endregion
8077
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
8572
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/uz.js
8078
8573
  var error$4 = () => {
8079
8574
  const Sizable = {
8080
8575
  string: {
@@ -8092,6 +8587,10 @@ var error$4 = () => {
8092
8587
  set: {
8093
8588
  unit: "element",
8094
8589
  verb: "bo‘lishi kerak"
8590
+ },
8591
+ map: {
8592
+ unit: "yozuv",
8593
+ verb: "bo‘lishi kerak"
8095
8594
  }
8096
8595
  };
8097
8596
  function getSizing(origin) {
@@ -8178,7 +8677,7 @@ function uz_default() {
8178
8677
  return { localeError: error$4() };
8179
8678
  }
8180
8679
  //#endregion
8181
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
8680
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/vi.js
8182
8681
  var error$3 = () => {
8183
8682
  const Sizable = {
8184
8683
  string: {
@@ -8281,7 +8780,7 @@ function vi_default() {
8281
8780
  return { localeError: error$3() };
8282
8781
  }
8283
8782
  //#endregion
8284
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
8783
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/zh-CN.js
8285
8784
  var error$2 = () => {
8286
8785
  const Sizable = {
8287
8786
  string: {
@@ -8385,7 +8884,7 @@ function zh_CN_default() {
8385
8884
  return { localeError: error$2() };
8386
8885
  }
8387
8886
  //#endregion
8388
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
8887
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/zh-TW.js
8389
8888
  var error$1 = () => {
8390
8889
  const Sizable = {
8391
8890
  string: {
@@ -8484,7 +8983,7 @@ function zh_TW_default() {
8484
8983
  return { localeError: error$1() };
8485
8984
  }
8486
8985
  //#endregion
8487
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
8986
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/yo.js
8488
8987
  var error = () => {
8489
8988
  const Sizable = {
8490
8989
  string: {
@@ -8587,7 +9086,7 @@ function yo_default() {
8587
9086
  return { localeError: error() };
8588
9087
  }
8589
9088
  //#endregion
8590
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
9089
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/locales/index.js
8591
9090
  var locales_exports = /* @__PURE__ */ __exportAll({
8592
9091
  ar: () => ar_default,
8593
9092
  az: () => az_default,
@@ -8597,6 +9096,7 @@ var locales_exports = /* @__PURE__ */ __exportAll({
8597
9096
  cs: () => cs_default,
8598
9097
  da: () => da_default,
8599
9098
  de: () => de_default,
9099
+ el: () => el_default,
8600
9100
  en: () => en_default,
8601
9101
  eo: () => eo_default,
8602
9102
  es: () => es_default,
@@ -8605,6 +9105,7 @@ var locales_exports = /* @__PURE__ */ __exportAll({
8605
9105
  fr: () => fr_default,
8606
9106
  frCA: () => fr_CA_default,
8607
9107
  he: () => he_default,
9108
+ hr: () => hr_default,
8608
9109
  hu: () => hu_default,
8609
9110
  hy: () => hy_default,
8610
9111
  id: () => id_default,
@@ -8624,6 +9125,7 @@ var locales_exports = /* @__PURE__ */ __exportAll({
8624
9125
  pl: () => pl_default,
8625
9126
  ps: () => ps_default,
8626
9127
  pt: () => pt_default,
9128
+ ro: () => ro_default,
8627
9129
  ru: () => ru_default,
8628
9130
  sl: () => sl_default,
8629
9131
  sv: () => sv_default,
@@ -8640,7 +9142,7 @@ var locales_exports = /* @__PURE__ */ __exportAll({
8640
9142
  zhTW: () => zh_TW_default
8641
9143
  });
8642
9144
  //#endregion
8643
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
9145
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/registries.js
8644
9146
  var _a;
8645
9147
  var $output = Symbol("ZodOutput");
8646
9148
  var $input = Symbol("ZodInput");
@@ -8689,7 +9191,7 @@ function registry() {
8689
9191
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
8690
9192
  var globalRegistry = globalThis.__zod_globalRegistry;
8691
9193
  //#endregion
8692
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
9194
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/api.js
8693
9195
  /* @__NO_SIDE_EFFECTS__ */
8694
9196
  function _string(Class, params) {
8695
9197
  return new Class({
@@ -8798,6 +9300,11 @@ function _nanoid(Class, params) {
8798
9300
  ...normalizeParams(params)
8799
9301
  });
8800
9302
  }
9303
+ /**
9304
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
9305
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
9306
+ * See https://github.com/paralleldrive/cuid.
9307
+ */
8801
9308
  /* @__NO_SIDE_EFFECTS__ */
8802
9309
  function _cuid(Class, params) {
8803
9310
  return new Class({
@@ -9598,7 +10105,7 @@ function _refine(Class, fn, _params) {
9598
10105
  });
9599
10106
  }
9600
10107
  /* @__NO_SIDE_EFFECTS__ */
9601
- function _superRefine(fn) {
10108
+ function _superRefine(fn, params) {
9602
10109
  const ch = /* @__PURE__ */ _check((payload) => {
9603
10110
  payload.addIssue = (issue$2) => {
9604
10111
  if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
@@ -9613,7 +10120,7 @@ function _superRefine(fn) {
9613
10120
  }
9614
10121
  };
9615
10122
  return fn(payload.value, payload);
9616
- });
10123
+ }, params);
9617
10124
  return ch;
9618
10125
  }
9619
10126
  /* @__NO_SIDE_EFFECTS__ */
@@ -9728,7 +10235,7 @@ function _stringFormat(Class, format, fnOrRegex, _params = {}) {
9728
10235
  return new Class(def);
9729
10236
  }
9730
10237
  //#endregion
9731
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
10238
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/to-json-schema.js
9732
10239
  function initializeContext(params) {
9733
10240
  let target = params?.target ?? "draft-2020-12";
9734
10241
  if (target === "draft-4") target = "draft-04";
@@ -9794,7 +10301,7 @@ function process(schema, ctx, _params = {
9794
10301
  delete result.schema.examples;
9795
10302
  delete result.schema.default;
9796
10303
  }
9797
- if (ctx.io === "input" && result.schema._prefault) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
10304
+ if (ctx.io === "input" && "_prefault" in result.schema) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
9798
10305
  delete result.schema._prefault;
9799
10306
  return ctx.seen.get(schema).schema;
9800
10307
  }
@@ -9934,10 +10441,15 @@ function finalize(ctx, schema) {
9934
10441
  result.$id = ctx.external.uri(id);
9935
10442
  }
9936
10443
  Object.assign(result, root.def ?? root.schema);
10444
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
10445
+ if (rootMetaId !== void 0 && result.id === rootMetaId) delete result.id;
9937
10446
  const defs = ctx.external?.defs ?? {};
9938
10447
  for (const entry of ctx.seen.entries()) {
9939
10448
  const seen = entry[1];
9940
- if (seen.def && seen.defId) defs[seen.defId] = seen.def;
10449
+ if (seen.def && seen.defId) {
10450
+ if (seen.def.id === seen.defId) delete seen.def.id;
10451
+ defs[seen.defId] = seen.def;
10452
+ }
9941
10453
  }
9942
10454
  if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
9943
10455
  else result.definitions = defs;
@@ -10013,7 +10525,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
10013
10525
  return finalize(ctx, schema);
10014
10526
  };
10015
10527
  //#endregion
10016
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
10528
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/json-schema-processors.js
10017
10529
  var formatMap = {
10018
10530
  guid: "uuid",
10019
10531
  url: "uri",
@@ -10047,24 +10559,19 @@ var numberProcessor = (schema, ctx, _json, _params) => {
10047
10559
  const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
10048
10560
  if (typeof format === "string" && format.includes("int")) json.type = "integer";
10049
10561
  else json.type = "number";
10050
- if (typeof exclusiveMinimum === "number") if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
10562
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
10563
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
10564
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
10565
+ if (exMin) if (legacy) {
10051
10566
  json.minimum = exclusiveMinimum;
10052
10567
  json.exclusiveMinimum = true;
10053
10568
  } else json.exclusiveMinimum = exclusiveMinimum;
10054
- if (typeof minimum === "number") {
10055
- json.minimum = minimum;
10056
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") if (exclusiveMinimum >= minimum) delete json.minimum;
10057
- else delete json.exclusiveMinimum;
10058
- }
10059
- if (typeof exclusiveMaximum === "number") if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
10569
+ else if (typeof minimum === "number") json.minimum = minimum;
10570
+ if (exMax) if (legacy) {
10060
10571
  json.maximum = exclusiveMaximum;
10061
10572
  json.exclusiveMaximum = true;
10062
10573
  } else json.exclusiveMaximum = exclusiveMaximum;
10063
- if (typeof maximum === "number") {
10064
- json.maximum = maximum;
10065
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") if (exclusiveMaximum <= maximum) delete json.maximum;
10066
- else delete json.exclusiveMaximum;
10067
- }
10574
+ else if (typeof maximum === "number") json.maximum = maximum;
10068
10575
  if (typeof multipleOf === "number") json.multipleOf = multipleOf;
10069
10576
  };
10070
10577
  var booleanProcessor = (_schema, _ctx, json, _params) => {
@@ -10469,7 +10976,7 @@ function toJSONSchema(input, params) {
10469
10976
  return finalize(ctx, input);
10470
10977
  }
10471
10978
  //#endregion
10472
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
10979
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/json-schema-generator.js
10473
10980
  /**
10474
10981
  * Legacy class-based interface for JSON Schema generation.
10475
10982
  * This class wraps the new functional implementation to provide backward compatibility.
@@ -10558,10 +11065,10 @@ var JSONSchemaGenerator = class {
10558
11065
  }
10559
11066
  };
10560
11067
  //#endregion
10561
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
11068
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/json-schema.js
10562
11069
  var json_schema_exports = /* @__PURE__ */ __exportAll({});
10563
11070
  //#endregion
10564
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
11071
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/core/index.js
10565
11072
  var core_exports = /* @__PURE__ */ __exportAll({
10566
11073
  $ZodAny: () => $ZodAny,
10567
11074
  $ZodArray: () => $ZodArray,
@@ -10838,7 +11345,7 @@ var core_exports = /* @__PURE__ */ __exportAll({
10838
11345
  version: () => version
10839
11346
  });
10840
11347
  //#endregion
10841
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
11348
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/checks.js
10842
11349
  var checks_exports = /* @__PURE__ */ __exportAll({
10843
11350
  endsWith: () => _endsWith,
10844
11351
  gt: () => _gt,
@@ -10871,7 +11378,7 @@ var checks_exports = /* @__PURE__ */ __exportAll({
10871
11378
  uppercase: () => _uppercase
10872
11379
  });
10873
11380
  //#endregion
10874
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
11381
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/iso.js
10875
11382
  var iso_exports = /* @__PURE__ */ __exportAll({
10876
11383
  ZodISODate: () => ZodISODate,
10877
11384
  ZodISODateTime: () => ZodISODateTime,
@@ -10911,7 +11418,7 @@ function duration(params) {
10911
11418
  return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
10912
11419
  }
10913
11420
  //#endregion
10914
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
11421
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/errors.js
10915
11422
  var initializer = (inst, issues) => {
10916
11423
  $ZodError.init(inst, issues);
10917
11424
  inst.name = "ZodError";
@@ -10931,10 +11438,10 @@ var initializer = (inst, issues) => {
10931
11438
  } }
10932
11439
  });
10933
11440
  };
10934
- var ZodError = $constructor("ZodError", initializer);
10935
- var ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
11441
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer);
11442
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer, { Parent: Error });
10936
11443
  //#endregion
10937
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
11444
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/parse.js
10938
11445
  var parse = /* @__PURE__ */ _parse(ZodRealError);
10939
11446
  var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
10940
11447
  var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -10948,7 +11455,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
10948
11455
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
10949
11456
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
10950
11457
  //#endregion
10951
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
11458
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/schemas.js
10952
11459
  var schemas_exports = /* @__PURE__ */ __exportAll({
10953
11460
  ZodAny: () => ZodAny,
10954
11461
  ZodArray: () => ZodArray,
@@ -11057,6 +11564,7 @@ var schemas_exports = /* @__PURE__ */ __exportAll({
11057
11564
  int32: () => int32,
11058
11565
  int64: () => int64,
11059
11566
  intersection: () => intersection,
11567
+ invertCodec: () => invertCodec,
11060
11568
  ipv4: () => ipv4,
11061
11569
  ipv6: () => ipv6,
11062
11570
  json: () => json,
@@ -11115,6 +11623,42 @@ var schemas_exports = /* @__PURE__ */ __exportAll({
11115
11623
  xid: () => xid,
11116
11624
  xor: () => xor
11117
11625
  });
11626
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
11627
+ function _installLazyMethods(inst, group, methods) {
11628
+ const proto = Object.getPrototypeOf(inst);
11629
+ let installed = _installedGroups.get(proto);
11630
+ if (!installed) {
11631
+ installed = /* @__PURE__ */ new Set();
11632
+ _installedGroups.set(proto, installed);
11633
+ }
11634
+ if (installed.has(group)) return;
11635
+ installed.add(group);
11636
+ for (const key in methods) {
11637
+ const fn = methods[key];
11638
+ Object.defineProperty(proto, key, {
11639
+ configurable: true,
11640
+ enumerable: false,
11641
+ get() {
11642
+ const bound = fn.bind(this);
11643
+ Object.defineProperty(this, key, {
11644
+ configurable: true,
11645
+ writable: true,
11646
+ enumerable: true,
11647
+ value: bound
11648
+ });
11649
+ return bound;
11650
+ },
11651
+ set(v) {
11652
+ Object.defineProperty(this, key, {
11653
+ configurable: true,
11654
+ writable: true,
11655
+ enumerable: true,
11656
+ value: v
11657
+ });
11658
+ }
11659
+ });
11660
+ }
11661
+ }
11118
11662
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
11119
11663
  $ZodType.init(inst, def);
11120
11664
  Object.assign(inst["~standard"], { jsonSchema: {
@@ -11125,20 +11669,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
11125
11669
  inst.def = def;
11126
11670
  inst.type = def.type;
11127
11671
  Object.defineProperty(inst, "_def", { value: def });
11128
- inst.check = (...checks) => {
11129
- return inst.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
11130
- check: ch,
11131
- def: { check: "custom" },
11132
- onattach: []
11133
- } } : ch)] }), { parent: true });
11134
- };
11135
- inst.with = inst.check;
11136
- inst.clone = (def, params) => clone(inst, def, params);
11137
- inst.brand = () => inst;
11138
- inst.register = ((reg, meta) => {
11139
- reg.add(inst, meta);
11140
- return inst;
11141
- });
11142
11672
  inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
11143
11673
  inst.safeParse = (data, params) => safeParse(inst, data, params);
11144
11674
  inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
@@ -11152,43 +11682,106 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
11152
11682
  inst.safeDecode = (data, params) => safeDecode(inst, data, params);
11153
11683
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
11154
11684
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
11155
- inst.refine = (check, params) => inst.check(refine(check, params));
11156
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
11157
- inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
11158
- inst.optional = () => optional(inst);
11159
- inst.exactOptional = () => exactOptional(inst);
11160
- inst.nullable = () => nullable(inst);
11161
- inst.nullish = () => optional(nullable(inst));
11162
- inst.nonoptional = (params) => nonoptional(inst, params);
11163
- inst.array = () => array(inst);
11164
- inst.or = (arg) => union([inst, arg]);
11165
- inst.and = (arg) => intersection(inst, arg);
11166
- inst.transform = (tx) => pipe(inst, transform(tx));
11167
- inst.default = (def) => _default(inst, def);
11168
- inst.prefault = (def) => prefault(inst, def);
11169
- inst.catch = (params) => _catch(inst, params);
11170
- inst.pipe = (target) => pipe(inst, target);
11171
- inst.readonly = () => readonly(inst);
11172
- inst.describe = (description) => {
11173
- const cl = inst.clone();
11174
- globalRegistry.add(cl, { description });
11175
- return cl;
11176
- };
11685
+ _installLazyMethods(inst, "ZodType", {
11686
+ check(...chks) {
11687
+ const def = this.def;
11688
+ return this.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...chks.map((ch) => typeof ch === "function" ? { _zod: {
11689
+ check: ch,
11690
+ def: { check: "custom" },
11691
+ onattach: []
11692
+ } } : ch)] }), { parent: true });
11693
+ },
11694
+ with(...chks) {
11695
+ return this.check(...chks);
11696
+ },
11697
+ clone(def, params) {
11698
+ return clone(this, def, params);
11699
+ },
11700
+ brand() {
11701
+ return this;
11702
+ },
11703
+ register(reg, meta) {
11704
+ reg.add(this, meta);
11705
+ return this;
11706
+ },
11707
+ refine(check, params) {
11708
+ return this.check(refine(check, params));
11709
+ },
11710
+ superRefine(refinement, params) {
11711
+ return this.check(superRefine(refinement, params));
11712
+ },
11713
+ overwrite(fn) {
11714
+ return this.check(/* @__PURE__ */ _overwrite(fn));
11715
+ },
11716
+ optional() {
11717
+ return optional(this);
11718
+ },
11719
+ exactOptional() {
11720
+ return exactOptional(this);
11721
+ },
11722
+ nullable() {
11723
+ return nullable(this);
11724
+ },
11725
+ nullish() {
11726
+ return optional(nullable(this));
11727
+ },
11728
+ nonoptional(params) {
11729
+ return nonoptional(this, params);
11730
+ },
11731
+ array() {
11732
+ return array(this);
11733
+ },
11734
+ or(arg) {
11735
+ return union([this, arg]);
11736
+ },
11737
+ and(arg) {
11738
+ return intersection(this, arg);
11739
+ },
11740
+ transform(tx) {
11741
+ return pipe(this, transform(tx));
11742
+ },
11743
+ default(d) {
11744
+ return _default(this, d);
11745
+ },
11746
+ prefault(d) {
11747
+ return prefault(this, d);
11748
+ },
11749
+ catch(params) {
11750
+ return _catch(this, params);
11751
+ },
11752
+ pipe(target) {
11753
+ return pipe(this, target);
11754
+ },
11755
+ readonly() {
11756
+ return readonly(this);
11757
+ },
11758
+ describe(description) {
11759
+ const cl = this.clone();
11760
+ globalRegistry.add(cl, { description });
11761
+ return cl;
11762
+ },
11763
+ meta(...args) {
11764
+ if (args.length === 0) return globalRegistry.get(this);
11765
+ const cl = this.clone();
11766
+ globalRegistry.add(cl, args[0]);
11767
+ return cl;
11768
+ },
11769
+ isOptional() {
11770
+ return this.safeParse(void 0).success;
11771
+ },
11772
+ isNullable() {
11773
+ return this.safeParse(null).success;
11774
+ },
11775
+ apply(fn) {
11776
+ return fn(this);
11777
+ }
11778
+ });
11177
11779
  Object.defineProperty(inst, "description", {
11178
11780
  get() {
11179
11781
  return globalRegistry.get(inst)?.description;
11180
11782
  },
11181
11783
  configurable: true
11182
11784
  });
11183
- inst.meta = (...args) => {
11184
- if (args.length === 0) return globalRegistry.get(inst);
11185
- const cl = inst.clone();
11186
- globalRegistry.add(cl, args[0]);
11187
- return cl;
11188
- };
11189
- inst.isOptional = () => inst.safeParse(void 0).success;
11190
- inst.isNullable = () => inst.safeParse(null).success;
11191
- inst.apply = (fn) => fn(inst);
11192
11785
  return inst;
11193
11786
  });
11194
11787
  /** @internal */
@@ -11200,21 +11793,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
11200
11793
  inst.format = bag.format ?? null;
11201
11794
  inst.minLength = bag.minimum ?? null;
11202
11795
  inst.maxLength = bag.maximum ?? null;
11203
- inst.regex = (...args) => inst.check(/* @__PURE__ */ _regex(...args));
11204
- inst.includes = (...args) => inst.check(/* @__PURE__ */ _includes(...args));
11205
- inst.startsWith = (...args) => inst.check(/* @__PURE__ */ _startsWith(...args));
11206
- inst.endsWith = (...args) => inst.check(/* @__PURE__ */ _endsWith(...args));
11207
- inst.min = (...args) => inst.check(/* @__PURE__ */ _minLength(...args));
11208
- inst.max = (...args) => inst.check(/* @__PURE__ */ _maxLength(...args));
11209
- inst.length = (...args) => inst.check(/* @__PURE__ */ _length(...args));
11210
- inst.nonempty = (...args) => inst.check(/* @__PURE__ */ _minLength(1, ...args));
11211
- inst.lowercase = (params) => inst.check(/* @__PURE__ */ _lowercase(params));
11212
- inst.uppercase = (params) => inst.check(/* @__PURE__ */ _uppercase(params));
11213
- inst.trim = () => inst.check(/* @__PURE__ */ _trim());
11214
- inst.normalize = (...args) => inst.check(/* @__PURE__ */ _normalize(...args));
11215
- inst.toLowerCase = () => inst.check(/* @__PURE__ */ _toLowerCase());
11216
- inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
11217
- inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
11796
+ _installLazyMethods(inst, "_ZodString", {
11797
+ regex(...args) {
11798
+ return this.check(/* @__PURE__ */ _regex(...args));
11799
+ },
11800
+ includes(...args) {
11801
+ return this.check(/* @__PURE__ */ _includes(...args));
11802
+ },
11803
+ startsWith(...args) {
11804
+ return this.check(/* @__PURE__ */ _startsWith(...args));
11805
+ },
11806
+ endsWith(...args) {
11807
+ return this.check(/* @__PURE__ */ _endsWith(...args));
11808
+ },
11809
+ min(...args) {
11810
+ return this.check(/* @__PURE__ */ _minLength(...args));
11811
+ },
11812
+ max(...args) {
11813
+ return this.check(/* @__PURE__ */ _maxLength(...args));
11814
+ },
11815
+ length(...args) {
11816
+ return this.check(/* @__PURE__ */ _length(...args));
11817
+ },
11818
+ nonempty(...args) {
11819
+ return this.check(/* @__PURE__ */ _minLength(1, ...args));
11820
+ },
11821
+ lowercase(params) {
11822
+ return this.check(/* @__PURE__ */ _lowercase(params));
11823
+ },
11824
+ uppercase(params) {
11825
+ return this.check(/* @__PURE__ */ _uppercase(params));
11826
+ },
11827
+ trim() {
11828
+ return this.check(/* @__PURE__ */ _trim());
11829
+ },
11830
+ normalize(...args) {
11831
+ return this.check(/* @__PURE__ */ _normalize(...args));
11832
+ },
11833
+ toLowerCase() {
11834
+ return this.check(/* @__PURE__ */ _toLowerCase());
11835
+ },
11836
+ toUpperCase() {
11837
+ return this.check(/* @__PURE__ */ _toUpperCase());
11838
+ },
11839
+ slugify() {
11840
+ return this.check(/* @__PURE__ */ _slugify());
11841
+ }
11842
+ });
11218
11843
  });
11219
11844
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
11220
11845
  $ZodString.init(inst, def);
@@ -11293,7 +11918,7 @@ function url(params) {
11293
11918
  }
11294
11919
  function httpUrl(params) {
11295
11920
  return /* @__PURE__ */ _url(ZodURL, {
11296
- protocol: /^https?$/,
11921
+ protocol: httpProtocol,
11297
11922
  hostname: domain,
11298
11923
  ...normalizeParams(params)
11299
11924
  });
@@ -11312,10 +11937,22 @@ var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
11312
11937
  function nanoid(params) {
11313
11938
  return /* @__PURE__ */ _nanoid(ZodNanoID, params);
11314
11939
  }
11940
+ /**
11941
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
11942
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
11943
+ * See https://github.com/paralleldrive/cuid.
11944
+ */
11315
11945
  var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
11316
11946
  $ZodCUID.init(inst, def);
11317
11947
  ZodStringFormat.init(inst, def);
11318
11948
  });
11949
+ /**
11950
+ * Validates a CUID v1 string.
11951
+ *
11952
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
11953
+ * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
11954
+ * See https://github.com/paralleldrive/cuid.
11955
+ */
11319
11956
  function cuid(params) {
11320
11957
  return /* @__PURE__ */ _cuid(ZodCUID, params);
11321
11958
  }
@@ -11433,21 +12070,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
11433
12070
  $ZodNumber.init(inst, def);
11434
12071
  ZodType.init(inst, def);
11435
12072
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
11436
- inst.gt = (value, params) => inst.check(/* @__PURE__ */ _gt(value, params));
11437
- inst.gte = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11438
- inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11439
- inst.lt = (value, params) => inst.check(/* @__PURE__ */ _lt(value, params));
11440
- inst.lte = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
11441
- inst.max = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
11442
- inst.int = (params) => inst.check(int(params));
11443
- inst.safe = (params) => inst.check(int(params));
11444
- inst.positive = (params) => inst.check(/* @__PURE__ */ _gt(0, params));
11445
- inst.nonnegative = (params) => inst.check(/* @__PURE__ */ _gte(0, params));
11446
- inst.negative = (params) => inst.check(/* @__PURE__ */ _lt(0, params));
11447
- inst.nonpositive = (params) => inst.check(/* @__PURE__ */ _lte(0, params));
11448
- inst.multipleOf = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
11449
- inst.step = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
11450
- inst.finite = () => inst;
12073
+ _installLazyMethods(inst, "ZodNumber", {
12074
+ gt(value, params) {
12075
+ return this.check(/* @__PURE__ */ _gt(value, params));
12076
+ },
12077
+ gte(value, params) {
12078
+ return this.check(/* @__PURE__ */ _gte(value, params));
12079
+ },
12080
+ min(value, params) {
12081
+ return this.check(/* @__PURE__ */ _gte(value, params));
12082
+ },
12083
+ lt(value, params) {
12084
+ return this.check(/* @__PURE__ */ _lt(value, params));
12085
+ },
12086
+ lte(value, params) {
12087
+ return this.check(/* @__PURE__ */ _lte(value, params));
12088
+ },
12089
+ max(value, params) {
12090
+ return this.check(/* @__PURE__ */ _lte(value, params));
12091
+ },
12092
+ int(params) {
12093
+ return this.check(int(params));
12094
+ },
12095
+ safe(params) {
12096
+ return this.check(int(params));
12097
+ },
12098
+ positive(params) {
12099
+ return this.check(/* @__PURE__ */ _gt(0, params));
12100
+ },
12101
+ nonnegative(params) {
12102
+ return this.check(/* @__PURE__ */ _gte(0, params));
12103
+ },
12104
+ negative(params) {
12105
+ return this.check(/* @__PURE__ */ _lt(0, params));
12106
+ },
12107
+ nonpositive(params) {
12108
+ return this.check(/* @__PURE__ */ _lte(0, params));
12109
+ },
12110
+ multipleOf(value, params) {
12111
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
12112
+ },
12113
+ step(value, params) {
12114
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
12115
+ },
12116
+ finite() {
12117
+ return this;
12118
+ }
12119
+ });
11451
12120
  const bag = inst._zod.bag;
11452
12121
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
11453
12122
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -11594,11 +12263,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
11594
12263
  ZodType.init(inst, def);
11595
12264
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
11596
12265
  inst.element = def.element;
11597
- inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
11598
- inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
11599
- inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
11600
- inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
11601
- inst.unwrap = () => inst.element;
12266
+ _installLazyMethods(inst, "ZodArray", {
12267
+ min(n, params) {
12268
+ return this.check(/* @__PURE__ */ _minLength(n, params));
12269
+ },
12270
+ nonempty(params) {
12271
+ return this.check(/* @__PURE__ */ _minLength(1, params));
12272
+ },
12273
+ max(n, params) {
12274
+ return this.check(/* @__PURE__ */ _maxLength(n, params));
12275
+ },
12276
+ length(n, params) {
12277
+ return this.check(/* @__PURE__ */ _length(n, params));
12278
+ },
12279
+ unwrap() {
12280
+ return this.element;
12281
+ }
12282
+ });
11602
12283
  });
11603
12284
  function array(element, params) {
11604
12285
  return /* @__PURE__ */ _array(ZodArray, element, params);
@@ -11614,38 +12295,62 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
11614
12295
  defineLazy(inst, "shape", () => {
11615
12296
  return def.shape;
11616
12297
  });
11617
- inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
11618
- inst.catchall = (catchall) => inst.clone({
11619
- ...inst._zod.def,
11620
- catchall
11621
- });
11622
- inst.passthrough = () => inst.clone({
11623
- ...inst._zod.def,
11624
- catchall: unknown()
11625
- });
11626
- inst.loose = () => inst.clone({
11627
- ...inst._zod.def,
11628
- catchall: unknown()
11629
- });
11630
- inst.strict = () => inst.clone({
11631
- ...inst._zod.def,
11632
- catchall: never()
11633
- });
11634
- inst.strip = () => inst.clone({
11635
- ...inst._zod.def,
11636
- catchall: void 0
12298
+ _installLazyMethods(inst, "ZodObject", {
12299
+ keyof() {
12300
+ return _enum(Object.keys(this._zod.def.shape));
12301
+ },
12302
+ catchall(catchall) {
12303
+ return this.clone({
12304
+ ...this._zod.def,
12305
+ catchall
12306
+ });
12307
+ },
12308
+ passthrough() {
12309
+ return this.clone({
12310
+ ...this._zod.def,
12311
+ catchall: unknown()
12312
+ });
12313
+ },
12314
+ loose() {
12315
+ return this.clone({
12316
+ ...this._zod.def,
12317
+ catchall: unknown()
12318
+ });
12319
+ },
12320
+ strict() {
12321
+ return this.clone({
12322
+ ...this._zod.def,
12323
+ catchall: never()
12324
+ });
12325
+ },
12326
+ strip() {
12327
+ return this.clone({
12328
+ ...this._zod.def,
12329
+ catchall: void 0
12330
+ });
12331
+ },
12332
+ extend(incoming) {
12333
+ return extend(this, incoming);
12334
+ },
12335
+ safeExtend(incoming) {
12336
+ return safeExtend(this, incoming);
12337
+ },
12338
+ merge(other) {
12339
+ return merge(this, other);
12340
+ },
12341
+ pick(mask) {
12342
+ return pick(this, mask);
12343
+ },
12344
+ omit(mask) {
12345
+ return omit(this, mask);
12346
+ },
12347
+ partial(...args) {
12348
+ return partial(ZodOptional, this, args[0]);
12349
+ },
12350
+ required(...args) {
12351
+ return required(ZodNonOptional, this, args[0]);
12352
+ }
11637
12353
  });
11638
- inst.extend = (incoming) => {
11639
- return extend(inst, incoming);
11640
- };
11641
- inst.safeExtend = (incoming) => {
11642
- return safeExtend(inst, incoming);
11643
- };
11644
- inst.merge = (other) => merge(inst, other);
11645
- inst.pick = (mask) => pick(inst, mask);
11646
- inst.omit = (mask) => omit(inst, mask);
11647
- inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
11648
- inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
11649
12354
  });
11650
12355
  function object(shape, params) {
11651
12356
  return new ZodObject({
@@ -11750,6 +12455,12 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
11750
12455
  inst.valueType = def.valueType;
11751
12456
  });
11752
12457
  function record(keyType, valueType, params) {
12458
+ if (!valueType || !valueType._zod) return new ZodRecord({
12459
+ type: "record",
12460
+ keyType: string$1(),
12461
+ valueType: keyType,
12462
+ ...normalizeParams(valueType)
12463
+ });
11753
12464
  return new ZodRecord({
11754
12465
  type: "record",
11755
12466
  keyType,
@@ -12066,6 +12777,16 @@ function codec(in_, out, params) {
12066
12777
  reverseTransform: params.encode
12067
12778
  });
12068
12779
  }
12780
+ function invertCodec(codec) {
12781
+ const def = codec._zod.def;
12782
+ return new ZodCodec({
12783
+ type: "pipe",
12784
+ in: def.out,
12785
+ out: def.in,
12786
+ transform: def.reverseTransform,
12787
+ reverseTransform: def.transform
12788
+ });
12789
+ }
12069
12790
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
12070
12791
  $ZodReadonly.init(inst, def);
12071
12792
  ZodType.init(inst, def);
@@ -12142,8 +12863,8 @@ function custom(fn, _params) {
12142
12863
  function refine(fn, _params = {}) {
12143
12864
  return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
12144
12865
  }
12145
- function superRefine(fn) {
12146
- return /* @__PURE__ */ _superRefine(fn);
12866
+ function superRefine(fn, params) {
12867
+ return /* @__PURE__ */ _superRefine(fn, params);
12147
12868
  }
12148
12869
  var describe = describe$1;
12149
12870
  var meta = meta$1;
@@ -12189,7 +12910,7 @@ function preprocess(fn, schema) {
12189
12910
  return pipe(transform(fn), schema);
12190
12911
  }
12191
12912
  //#endregion
12192
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
12913
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/compat.js
12193
12914
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
12194
12915
  var ZodIssueCode = {
12195
12916
  invalid_type: "invalid_type",
@@ -12216,13 +12937,13 @@ function getErrorMap() {
12216
12937
  var ZodFirstPartyTypeKind;
12217
12938
  (function(ZodFirstPartyTypeKind) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
12218
12939
  //#endregion
12219
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
12940
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/from-json-schema.js
12220
12941
  var z = {
12221
12942
  ...schemas_exports,
12222
12943
  ...checks_exports,
12223
12944
  iso: iso_exports
12224
12945
  };
12225
- var RECOGNIZED_KEYS = new Set([
12946
+ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
12226
12947
  "$schema",
12227
12948
  "$ref",
12228
12949
  "$defs",
@@ -12480,8 +13201,6 @@ function convertBaseSchema(schema, ctx) {
12480
13201
  }
12481
13202
  default: throw new Error(`Unsupported type: ${type}`);
12482
13203
  }
12483
- if (schema.description) zodSchema = zodSchema.describe(schema.description);
12484
- if (schema.default !== void 0) zodSchema = zodSchema.default(schema.default);
12485
13204
  return zodSchema;
12486
13205
  }
12487
13206
  function convertSchema(schema, ctx) {
@@ -12507,6 +13226,7 @@ function convertSchema(schema, ctx) {
12507
13226
  }
12508
13227
  if (schema.nullable === true && ctx.version === "openapi-3.0") baseSchema = z.nullable(baseSchema);
12509
13228
  if (schema.readOnly === true) baseSchema = z.readonly(baseSchema);
13229
+ if (schema.default !== void 0) baseSchema = baseSchema.default(schema.default);
12510
13230
  const extraMeta = {};
12511
13231
  for (const key of [
12512
13232
  "$id",
@@ -12524,23 +13244,31 @@ function convertSchema(schema, ctx) {
12524
13244
  ]) if (key in schema) extraMeta[key] = schema[key];
12525
13245
  for (const key of Object.keys(schema)) if (!RECOGNIZED_KEYS.has(key)) extraMeta[key] = schema[key];
12526
13246
  if (Object.keys(extraMeta).length > 0) ctx.registry.add(baseSchema, extraMeta);
13247
+ if (schema.description) baseSchema = baseSchema.describe(schema.description);
12527
13248
  return baseSchema;
12528
13249
  }
12529
13250
  /**
12530
13251
  * Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
12531
13252
  function fromJSONSchema(schema, params) {
12532
13253
  if (typeof schema === "boolean") return schema ? z.any() : z.never();
12533
- return convertSchema(schema, {
12534
- version: detectVersion(schema, params?.defaultTarget),
12535
- defs: schema.$defs || schema.definitions || {},
13254
+ let normalized;
13255
+ try {
13256
+ normalized = JSON.parse(JSON.stringify(schema));
13257
+ } catch {
13258
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
13259
+ }
13260
+ const ctx = {
13261
+ version: detectVersion(normalized, params?.defaultTarget),
13262
+ defs: normalized.$defs || normalized.definitions || {},
12536
13263
  refs: /* @__PURE__ */ new Map(),
12537
13264
  processing: /* @__PURE__ */ new Set(),
12538
- rootSchema: schema,
13265
+ rootSchema: normalized,
12539
13266
  registry: params?.registry ?? globalRegistry
12540
- });
13267
+ };
13268
+ return convertSchema(normalized, ctx);
12541
13269
  }
12542
13270
  //#endregion
12543
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
13271
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/coerce.js
12544
13272
  var coerce_exports = /* @__PURE__ */ __exportAll({
12545
13273
  bigint: () => bigint,
12546
13274
  boolean: () => boolean,
@@ -12564,7 +13292,7 @@ function date(params) {
12564
13292
  return /* @__PURE__ */ _coercedDate(ZodDate, params);
12565
13293
  }
12566
13294
  //#endregion
12567
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
13295
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/external.js
12568
13296
  var external_exports = /* @__PURE__ */ __exportAll({
12569
13297
  $brand: () => $brand,
12570
13298
  $input: () => $input,
@@ -12703,6 +13431,7 @@ var external_exports = /* @__PURE__ */ __exportAll({
12703
13431
  int32: () => int32,
12704
13432
  int64: () => int64,
12705
13433
  intersection: () => intersection,
13434
+ invertCodec: () => invertCodec,
12706
13435
  ipv4: () => ipv4,
12707
13436
  ipv6: () => ipv6,
12708
13437
  iso: () => iso_exports,
@@ -12805,7 +13534,7 @@ var external_exports = /* @__PURE__ */ __exportAll({
12805
13534
  });
12806
13535
  config(en_default());
12807
13536
  //#endregion
12808
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/index.js
13537
+ //#region ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/index.js
12809
13538
  var v4_exports = /* @__PURE__ */ __exportAll({
12810
13539
  $brand: () => $brand,
12811
13540
  $input: () => $input,
@@ -12944,6 +13673,7 @@ var v4_exports = /* @__PURE__ */ __exportAll({
12944
13673
  int32: () => int32,
12945
13674
  int64: () => int64,
12946
13675
  intersection: () => intersection,
13676
+ invertCodec: () => invertCodec,
12947
13677
  ipv4: () => ipv4,
12948
13678
  ipv6: () => ipv6,
12949
13679
  iso: () => iso_exports,
@@ -13048,4 +13778,4 @@ var v4_exports = /* @__PURE__ */ __exportAll({
13048
13778
  //#endregion
13049
13779
  export { defineLazy as A, $ZodObject as C, safeParse$1 as D, parseAsync$1 as E, __esmMin as F, __exportAll as I, __require as L, $constructor as M, config as N, safeParseAsync$1 as O, __commonJSMin as P, __toCommonJS as R, toJSONSchema as S, parse$1 as T, record as _, array as a, unknown as b, discriminatedUnion as c, looseObject as d, never as f, preprocess as g, optional as h, _undefined as i, normalizeParams as j, clone as k, intersection as l, object as m, _enum as n, boolean$1 as o, number$1 as p, _null as r, custom as s, v4_exports as t, literal as u, string$1 as v, $ZodType as w, datetime as x, union as y, __toESM as z };
13050
13780
 
13051
- //# sourceMappingURL=v4-zo4hA9Qs.js.map
13781
+ //# sourceMappingURL=v4-DfWETn4d.js.map