@glasstrace/sdk 1.11.0 → 1.13.0

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 (74) hide show
  1. package/README.md +58 -6
  2. package/dist/async-context/index.cjs +1189 -440
  3. package/dist/async-context/index.cjs.map +1 -1
  4. package/dist/async-context/index.js +2 -2
  5. package/dist/{capture-error-BeuEXXJO.d.cts → capture-error-03qDnC5v.d.cts} +2 -2
  6. package/dist/{capture-error-D02pzB7q.d.ts → capture-error-CAfFUyIU.d.ts} +2 -2
  7. package/dist/{chunk-XG6WR2KS.js → chunk-6ST4QV7T.js} +3 -3
  8. package/dist/{chunk-6RKS3DNA.js → chunk-7LE2O4ZJ.js} +1153 -396
  9. package/dist/chunk-7LE2O4ZJ.js.map +1 -0
  10. package/dist/{chunk-RL43PU2X.js → chunk-F7A3QXCT.js} +2 -2
  11. package/dist/{chunk-M5GO2SSO.js → chunk-HMEHYSTS.js} +2 -2
  12. package/dist/{chunk-OXM2BZMF.js → chunk-LQZRGBN5.js} +2 -2
  13. package/dist/{chunk-QVTONMVZ.js → chunk-MP3QNDXQ.js} +2 -2
  14. package/dist/{chunk-D54FMQHF.js → chunk-VMK2G6QR.js} +2 -2
  15. package/dist/{chunk-DQFGNX3H.js → chunk-VWZMG3W2.js} +21 -20
  16. package/dist/chunk-VWZMG3W2.js.map +1 -0
  17. package/dist/{chunk-BSVWJSVX.js → chunk-XMD5OYD6.js} +2 -2
  18. package/dist/{chunk-FQ4SEG6Y.js → chunk-ZIYT2Y4B.js} +3 -3
  19. package/dist/cli/init.cjs +1266 -497
  20. package/dist/cli/init.cjs.map +1 -1
  21. package/dist/cli/init.js +7 -7
  22. package/dist/cli/mcp-add.cjs +1171 -425
  23. package/dist/cli/mcp-add.cjs.map +1 -1
  24. package/dist/cli/mcp-add.js +3 -3
  25. package/dist/cli/uninit.js +3 -3
  26. package/dist/cli/upgrade-instructions.cjs +1 -1
  27. package/dist/cli/upgrade-instructions.js +3 -3
  28. package/dist/cli/validate.cjs +1168 -422
  29. package/dist/cli/validate.cjs.map +1 -1
  30. package/dist/cli/validate.js +2 -2
  31. package/dist/{correlation-id-NAapJ5jn.d.cts → correlation-id-CZ2bstzA.d.cts} +1 -1
  32. package/dist/{correlation-id-B_K8adD6.d.ts → correlation-id-YcfcqOru.d.ts} +1 -1
  33. package/dist/edge-entry.cjs +1197 -448
  34. package/dist/edge-entry.cjs.map +1 -1
  35. package/dist/edge-entry.d.cts +2 -2
  36. package/dist/edge-entry.d.ts +2 -2
  37. package/dist/edge-entry.js +4 -4
  38. package/dist/index.cjs +1352 -555
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/{index.d-CkTf_boH.d.ts → index.d-BQIJ5Dvc.d.cts} +44 -9
  41. package/dist/{index.d-CkTf_boH.d.cts → index.d-BQIJ5Dvc.d.ts} +44 -9
  42. package/dist/index.d.cts +4 -4
  43. package/dist/index.d.ts +4 -4
  44. package/dist/index.js +26 -14
  45. package/dist/index.js.map +1 -1
  46. package/dist/middleware/index.cjs +1192 -443
  47. package/dist/middleware/index.cjs.map +1 -1
  48. package/dist/middleware/index.js +2 -2
  49. package/dist/node-entry.cjs +1323 -550
  50. package/dist/node-entry.cjs.map +1 -1
  51. package/dist/node-entry.d.cts +3 -3
  52. package/dist/node-entry.d.ts +3 -3
  53. package/dist/node-entry.js +7 -7
  54. package/dist/node-subpath.cjs +1168 -422
  55. package/dist/node-subpath.cjs.map +1 -1
  56. package/dist/node-subpath.d.cts +1 -1
  57. package/dist/node-subpath.d.ts +1 -1
  58. package/dist/node-subpath.js +3 -3
  59. package/dist/{source-map-uploader-CLYCE2TZ.js → source-map-uploader-NUONOEJG.js} +3 -3
  60. package/dist/trpc/index.cjs +1187 -438
  61. package/dist/trpc/index.cjs.map +1 -1
  62. package/dist/trpc/index.js +1 -1
  63. package/package.json +2 -2
  64. package/dist/chunk-6RKS3DNA.js.map +0 -1
  65. package/dist/chunk-DQFGNX3H.js.map +0 -1
  66. /package/dist/{chunk-XG6WR2KS.js.map → chunk-6ST4QV7T.js.map} +0 -0
  67. /package/dist/{chunk-RL43PU2X.js.map → chunk-F7A3QXCT.js.map} +0 -0
  68. /package/dist/{chunk-M5GO2SSO.js.map → chunk-HMEHYSTS.js.map} +0 -0
  69. /package/dist/{chunk-OXM2BZMF.js.map → chunk-LQZRGBN5.js.map} +0 -0
  70. /package/dist/{chunk-QVTONMVZ.js.map → chunk-MP3QNDXQ.js.map} +0 -0
  71. /package/dist/{chunk-D54FMQHF.js.map → chunk-VMK2G6QR.js.map} +0 -0
  72. /package/dist/{chunk-BSVWJSVX.js.map → chunk-XMD5OYD6.js.map} +0 -0
  73. /package/dist/{chunk-FQ4SEG6Y.js.map → chunk-ZIYT2Y4B.js.map} +0 -0
  74. /package/dist/{source-map-uploader-CLYCE2TZ.js.map → source-map-uploader-NUONOEJG.js.map} +0 -0
@@ -98,8 +98,8 @@ var major = VERSION.split(".")[0];
98
98
  var GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for(`opentelemetry.js.api.${major}`);
99
99
  var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
100
100
  function registerGlobal(type, instance, diag, allowOverride = false) {
101
- var _a2;
102
- const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a2 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a2 !== void 0 ? _a2 : {
101
+ var _a3;
102
+ const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== void 0 ? _a3 : {
103
103
  version: VERSION
104
104
  };
105
105
  if (!allowOverride && api[type]) {
@@ -117,8 +117,8 @@ function registerGlobal(type, instance, diag, allowOverride = false) {
117
117
  return true;
118
118
  }
119
119
  function getGlobal(type) {
120
- var _a2, _b;
121
- const globalVersion = (_a2 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a2 === void 0 ? void 0 : _a2.version;
120
+ var _a3, _b;
121
+ const globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === void 0 ? void 0 : _a3.version;
122
122
  if (!globalVersion || !isCompatible(globalVersion)) {
123
123
  return;
124
124
  }
@@ -223,10 +223,10 @@ var DiagAPI = class _DiagAPI {
223
223
  }
224
224
  const self2 = this;
225
225
  const setLogger = (logger, optionsOrLogLevel = { logLevel: DiagLogLevel.INFO }) => {
226
- var _a2, _b, _c;
226
+ var _a3, _b, _c;
227
227
  if (logger === self2) {
228
228
  const err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
229
- self2.error((_a2 = err.stack) !== null && _a2 !== void 0 ? _a2 : err.message);
229
+ self2.error((_a3 = err.stack) !== null && _a3 !== void 0 ? _a3 : err.message);
230
230
  return false;
231
231
  }
232
232
  if (typeof optionsOrLogLevel === "number") {
@@ -444,8 +444,8 @@ function setSpanContext(context2, spanContext) {
444
444
  return setSpan(context2, new NonRecordingSpan(spanContext));
445
445
  }
446
446
  function getSpanContext(context2) {
447
- var _a2;
448
- return (_a2 = getSpan(context2)) === null || _a2 === void 0 ? void 0 : _a2.spanContext();
447
+ var _a3;
448
+ return (_a3 = getSpan(context2)) === null || _a3 === void 0 ? void 0 : _a3.spanContext();
449
449
  }
450
450
 
451
451
  // ../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
@@ -665,12 +665,12 @@ var ProxyTracerProvider = class {
665
665
  * Get a {@link ProxyTracer}
666
666
  */
667
667
  getTracer(name, version2, options) {
668
- var _a2;
669
- return (_a2 = this.getDelegateTracer(name, version2, options)) !== null && _a2 !== void 0 ? _a2 : new ProxyTracer(this, name, version2, options);
668
+ var _a3;
669
+ return (_a3 = this.getDelegateTracer(name, version2, options)) !== null && _a3 !== void 0 ? _a3 : new ProxyTracer(this, name, version2, options);
670
670
  }
671
671
  getDelegate() {
672
- var _a2;
673
- return (_a2 = this._delegate) !== null && _a2 !== void 0 ? _a2 : NOOP_TRACER_PROVIDER;
672
+ var _a3;
673
+ return (_a3 = this._delegate) !== null && _a3 !== void 0 ? _a3 : NOOP_TRACER_PROVIDER;
674
674
  }
675
675
  /**
676
676
  * Set the delegate tracer provider
@@ -679,8 +679,8 @@ var ProxyTracerProvider = class {
679
679
  this._delegate = delegate;
680
680
  }
681
681
  getDelegateTracer(name, version2, options) {
682
- var _a2;
683
- return (_a2 = this._delegate) === null || _a2 === void 0 ? void 0 : _a2.getTracer(name, version2, options);
682
+ var _a3;
683
+ return (_a3 = this._delegate) === null || _a3 === void 0 ? void 0 : _a3.getTracer(name, version2, options);
684
684
  }
685
685
  };
686
686
 
@@ -813,6 +813,7 @@ __export(external_exports, {
813
813
  ZodOptional: () => ZodOptional,
814
814
  ZodPipe: () => ZodPipe,
815
815
  ZodPrefault: () => ZodPrefault,
816
+ ZodPreprocess: () => ZodPreprocess,
816
817
  ZodPromise: () => ZodPromise,
817
818
  ZodReadonly: () => ZodReadonly,
818
819
  ZodRealError: () => ZodRealError,
@@ -891,6 +892,7 @@ __export(external_exports, {
891
892
  int32: () => int32,
892
893
  int64: () => int64,
893
894
  intersection: () => intersection,
895
+ invertCodec: () => invertCodec,
894
896
  ipv4: () => ipv42,
895
897
  ipv6: () => ipv62,
896
898
  iso: () => iso_exports,
@@ -1072,6 +1074,7 @@ __export(core_exports2, {
1072
1074
  $ZodOptional: () => $ZodOptional,
1073
1075
  $ZodPipe: () => $ZodPipe,
1074
1076
  $ZodPrefault: () => $ZodPrefault,
1077
+ $ZodPreprocess: () => $ZodPreprocess,
1075
1078
  $ZodPromise: () => $ZodPromise,
1076
1079
  $ZodReadonly: () => $ZodReadonly,
1077
1080
  $ZodRealError: () => $ZodRealError,
@@ -1271,7 +1274,8 @@ __export(core_exports2, {
1271
1274
  });
1272
1275
 
1273
1276
  // ../../node_modules/zod/v4/core/core.js
1274
- var NEVER = Object.freeze({
1277
+ var _a;
1278
+ var NEVER = /* @__PURE__ */ Object.freeze({
1275
1279
  status: "aborted"
1276
1280
  });
1277
1281
  // @__NO_SIDE_EFFECTS__
@@ -1306,10 +1310,10 @@ function $constructor(name, initializer3, params) {
1306
1310
  }
1307
1311
  Object.defineProperty(Definition, "name", { value: name });
1308
1312
  function _(def) {
1309
- var _a2;
1313
+ var _a3;
1310
1314
  const inst = params?.Parent ? new Definition() : this;
1311
1315
  init(inst, def);
1312
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
1316
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
1313
1317
  for (const fn of inst._zod.deferred) {
1314
1318
  fn();
1315
1319
  }
@@ -1338,7 +1342,8 @@ var $ZodEncodeError = class extends Error {
1338
1342
  this.name = "ZodEncodeError";
1339
1343
  }
1340
1344
  };
1341
- var globalConfig = {};
1345
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
1346
+ var globalConfig = globalThis.__zod_globalConfig;
1342
1347
  function config(newConfig) {
1343
1348
  if (newConfig)
1344
1349
  Object.assign(globalConfig, newConfig);
@@ -1371,6 +1376,7 @@ __export(util_exports, {
1371
1376
  defineLazy: () => defineLazy,
1372
1377
  esc: () => esc,
1373
1378
  escapeRegex: () => escapeRegex,
1379
+ explicitlyAborted: () => explicitlyAborted,
1374
1380
  extend: () => extend,
1375
1381
  finalizeIssue: () => finalizeIssue,
1376
1382
  floatSafeRemainder: () => floatSafeRemainder,
@@ -1459,19 +1465,12 @@ function cleanRegex(source) {
1459
1465
  return source.slice(start, end);
1460
1466
  }
1461
1467
  function floatSafeRemainder(val, step) {
1462
- const valDecCount = (val.toString().split(".")[1] || "").length;
1463
- const stepString = step.toString();
1464
- let stepDecCount = (stepString.split(".")[1] || "").length;
1465
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
1466
- const match = stepString.match(/\d?e-(\d?)/);
1467
- if (match?.[1]) {
1468
- stepDecCount = Number.parseInt(match[1]);
1469
- }
1470
- }
1471
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1472
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1473
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1474
- return valInt % stepInt / 10 ** decCount;
1468
+ const ratio = val / step;
1469
+ const roundedRatio = Math.round(ratio);
1470
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
1471
+ if (Math.abs(ratio - roundedRatio) < tolerance)
1472
+ return 0;
1473
+ return ratio - roundedRatio;
1475
1474
  }
1476
1475
  var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
1477
1476
  function defineLazy(object2, key, getter) {
@@ -1553,7 +1552,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
1553
1552
  function isObject(data) {
1554
1553
  return typeof data === "object" && data !== null && !Array.isArray(data);
1555
1554
  }
1556
- var allowsEval = cached(() => {
1555
+ var allowsEval = /* @__PURE__ */ cached(() => {
1556
+ if (globalConfig.jitless) {
1557
+ return false;
1558
+ }
1557
1559
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
1558
1560
  return false;
1559
1561
  }
@@ -1586,6 +1588,10 @@ function shallowClone(o) {
1586
1588
  return { ...o };
1587
1589
  if (Array.isArray(o))
1588
1590
  return [...o];
1591
+ if (o instanceof Map)
1592
+ return new Map(o);
1593
+ if (o instanceof Set)
1594
+ return new Set(o);
1589
1595
  return o;
1590
1596
  }
1591
1597
  function numKeys(data) {
@@ -1642,7 +1648,14 @@ var getParsedType = (data) => {
1642
1648
  }
1643
1649
  };
1644
1650
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
1645
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
1651
+ var primitiveTypes = /* @__PURE__ */ new Set([
1652
+ "string",
1653
+ "number",
1654
+ "bigint",
1655
+ "boolean",
1656
+ "symbol",
1657
+ "undefined"
1658
+ ]);
1646
1659
  function escapeRegex(str) {
1647
1660
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1648
1661
  }
@@ -1811,6 +1824,9 @@ function safeExtend(schema, shape) {
1811
1824
  return clone(schema, def);
1812
1825
  }
1813
1826
  function merge(a, b) {
1827
+ if (a._zod.def.checks?.length) {
1828
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
1829
+ }
1814
1830
  const def = mergeDefs(a._zod.def, {
1815
1831
  get shape() {
1816
1832
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -1820,8 +1836,7 @@ function merge(a, b) {
1820
1836
  get catchall() {
1821
1837
  return b._zod.def.catchall;
1822
1838
  },
1823
- checks: []
1824
- // delete existing checks
1839
+ checks: b._zod.def.checks ?? []
1825
1840
  });
1826
1841
  return clone(a, def);
1827
1842
  }
@@ -1904,10 +1919,20 @@ function aborted(x, startIndex = 0) {
1904
1919
  }
1905
1920
  return false;
1906
1921
  }
1922
+ function explicitlyAborted(x, startIndex = 0) {
1923
+ if (x.aborted === true)
1924
+ return true;
1925
+ for (let i = startIndex; i < x.issues.length; i++) {
1926
+ if (x.issues[i]?.continue === false) {
1927
+ return true;
1928
+ }
1929
+ }
1930
+ return false;
1931
+ }
1907
1932
  function prefixIssues(path, issues) {
1908
1933
  return issues.map((iss) => {
1909
- var _a2;
1910
- (_a2 = iss).path ?? (_a2.path = []);
1934
+ var _a3;
1935
+ (_a3 = iss).path ?? (_a3.path = []);
1911
1936
  iss.path.unshift(path);
1912
1937
  return iss;
1913
1938
  });
@@ -1916,17 +1941,14 @@ function unwrapMessage(message) {
1916
1941
  return typeof message === "string" ? message : message?.message;
1917
1942
  }
1918
1943
  function finalizeIssue(iss, ctx, config2) {
1919
- const full = { ...iss, path: iss.path ?? [] };
1920
- if (!iss.message) {
1921
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
1922
- full.message = message;
1944
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
1945
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
1946
+ rest.path ?? (rest.path = []);
1947
+ rest.message = message;
1948
+ if (ctx?.reportInput) {
1949
+ rest.input = _input;
1923
1950
  }
1924
- delete full.inst;
1925
- delete full.continue;
1926
- if (!ctx?.reportInput) {
1927
- delete full.input;
1928
- }
1929
- return full;
1951
+ return rest;
1930
1952
  }
1931
1953
  function getSizableOrigin(input) {
1932
1954
  if (input instanceof Set)
@@ -2043,10 +2065,10 @@ var initializer = (inst, def) => {
2043
2065
  };
2044
2066
  var $ZodError = $constructor("$ZodError", initializer);
2045
2067
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
2046
- function flattenError(error48, mapper = (issue2) => issue2.message) {
2068
+ function flattenError(error51, mapper = (issue2) => issue2.message) {
2047
2069
  const fieldErrors = {};
2048
2070
  const formErrors = [];
2049
- for (const sub of error48.issues) {
2071
+ for (const sub of error51.issues) {
2050
2072
  if (sub.path.length > 0) {
2051
2073
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
2052
2074
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -2056,50 +2078,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
2056
2078
  }
2057
2079
  return { formErrors, fieldErrors };
2058
2080
  }
2059
- function formatError(error48, mapper = (issue2) => issue2.message) {
2081
+ function formatError(error51, mapper = (issue2) => issue2.message) {
2060
2082
  const fieldErrors = { _errors: [] };
2061
- const processError = (error49) => {
2062
- for (const issue2 of error49.issues) {
2083
+ const processError = (error52, path = []) => {
2084
+ for (const issue2 of error52.issues) {
2063
2085
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2064
- issue2.errors.map((issues) => processError({ issues }));
2086
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
2065
2087
  } else if (issue2.code === "invalid_key") {
2066
- processError({ issues: issue2.issues });
2088
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2067
2089
  } else if (issue2.code === "invalid_element") {
2068
- processError({ issues: issue2.issues });
2069
- } else if (issue2.path.length === 0) {
2070
- fieldErrors._errors.push(mapper(issue2));
2090
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2071
2091
  } else {
2072
- let curr = fieldErrors;
2073
- let i = 0;
2074
- while (i < issue2.path.length) {
2075
- const el = issue2.path[i];
2076
- const terminal = i === issue2.path.length - 1;
2077
- if (!terminal) {
2078
- curr[el] = curr[el] || { _errors: [] };
2079
- } else {
2080
- curr[el] = curr[el] || { _errors: [] };
2081
- curr[el]._errors.push(mapper(issue2));
2092
+ const fullpath = [...path, ...issue2.path];
2093
+ if (fullpath.length === 0) {
2094
+ fieldErrors._errors.push(mapper(issue2));
2095
+ } else {
2096
+ let curr = fieldErrors;
2097
+ let i = 0;
2098
+ while (i < fullpath.length) {
2099
+ const el = fullpath[i];
2100
+ const terminal = i === fullpath.length - 1;
2101
+ if (!terminal) {
2102
+ curr[el] = curr[el] || { _errors: [] };
2103
+ } else {
2104
+ curr[el] = curr[el] || { _errors: [] };
2105
+ curr[el]._errors.push(mapper(issue2));
2106
+ }
2107
+ curr = curr[el];
2108
+ i++;
2082
2109
  }
2083
- curr = curr[el];
2084
- i++;
2085
2110
  }
2086
2111
  }
2087
2112
  }
2088
2113
  };
2089
- processError(error48);
2114
+ processError(error51);
2090
2115
  return fieldErrors;
2091
2116
  }
2092
- function treeifyError(error48, mapper = (issue2) => issue2.message) {
2117
+ function treeifyError(error51, mapper = (issue2) => issue2.message) {
2093
2118
  const result = { errors: [] };
2094
- const processError = (error49, path = []) => {
2095
- var _a2, _b;
2096
- for (const issue2 of error49.issues) {
2119
+ const processError = (error52, path = []) => {
2120
+ var _a3, _b;
2121
+ for (const issue2 of error52.issues) {
2097
2122
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2098
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
2123
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
2099
2124
  } else if (issue2.code === "invalid_key") {
2100
- processError({ issues: issue2.issues }, issue2.path);
2125
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2101
2126
  } else if (issue2.code === "invalid_element") {
2102
- processError({ issues: issue2.issues }, issue2.path);
2127
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
2103
2128
  } else {
2104
2129
  const fullpath = [...path, ...issue2.path];
2105
2130
  if (fullpath.length === 0) {
@@ -2113,7 +2138,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
2113
2138
  const terminal = i === fullpath.length - 1;
2114
2139
  if (typeof el === "string") {
2115
2140
  curr.properties ?? (curr.properties = {});
2116
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
2141
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
2117
2142
  curr = curr.properties[el];
2118
2143
  } else {
2119
2144
  curr.items ?? (curr.items = []);
@@ -2128,7 +2153,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
2128
2153
  }
2129
2154
  }
2130
2155
  };
2131
- processError(error48);
2156
+ processError(error51);
2132
2157
  return result;
2133
2158
  }
2134
2159
  function toDotPath(_path) {
@@ -2149,9 +2174,9 @@ function toDotPath(_path) {
2149
2174
  }
2150
2175
  return segs.join("");
2151
2176
  }
2152
- function prettifyError(error48) {
2177
+ function prettifyError(error51) {
2153
2178
  const lines = [];
2154
- const issues = [...error48.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
2179
+ const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
2155
2180
  for (const issue2 of issues) {
2156
2181
  lines.push(`\u2716 ${issue2.message}`);
2157
2182
  if (issue2.path?.length)
@@ -2162,7 +2187,7 @@ function prettifyError(error48) {
2162
2187
 
2163
2188
  // ../../node_modules/zod/v4/core/parse.js
2164
2189
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
2165
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
2190
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
2166
2191
  const result = schema._zod.run({ value, issues: [] }, ctx);
2167
2192
  if (result instanceof Promise) {
2168
2193
  throw new $ZodAsyncError();
@@ -2176,7 +2201,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
2176
2201
  };
2177
2202
  var parse = /* @__PURE__ */ _parse($ZodRealError);
2178
2203
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
2179
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
2204
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
2180
2205
  let result = schema._zod.run({ value, issues: [] }, ctx);
2181
2206
  if (result instanceof Promise)
2182
2207
  result = await result;
@@ -2201,7 +2226,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
2201
2226
  };
2202
2227
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
2203
2228
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
2204
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
2229
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
2205
2230
  let result = schema._zod.run({ value, issues: [] }, ctx);
2206
2231
  if (result instanceof Promise)
2207
2232
  result = await result;
@@ -2212,7 +2237,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
2212
2237
  };
2213
2238
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
2214
2239
  var _encode = (_Err) => (schema, value, _ctx) => {
2215
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2240
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2216
2241
  return _parse(_Err)(schema, value, ctx);
2217
2242
  };
2218
2243
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -2221,7 +2246,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
2221
2246
  };
2222
2247
  var decode = /* @__PURE__ */ _decode($ZodRealError);
2223
2248
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
2224
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2249
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2225
2250
  return _parseAsync(_Err)(schema, value, ctx);
2226
2251
  };
2227
2252
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -2230,7 +2255,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
2230
2255
  };
2231
2256
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
2232
2257
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
2233
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2258
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2234
2259
  return _safeParse(_Err)(schema, value, ctx);
2235
2260
  };
2236
2261
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -2239,7 +2264,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
2239
2264
  };
2240
2265
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
2241
2266
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
2242
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
2267
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
2243
2268
  return _safeParseAsync(_Err)(schema, value, ctx);
2244
2269
  };
2245
2270
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -2272,6 +2297,7 @@ __export(regexes_exports, {
2272
2297
  hex: () => hex,
2273
2298
  hostname: () => hostname,
2274
2299
  html5Email: () => html5Email,
2300
+ httpProtocol: () => httpProtocol,
2275
2301
  idnEmail: () => idnEmail,
2276
2302
  integer: () => integer,
2277
2303
  ipv4: () => ipv4,
@@ -2310,7 +2336,7 @@ __export(regexes_exports, {
2310
2336
  uuid7: () => uuid7,
2311
2337
  xid: () => xid
2312
2338
  });
2313
- var cuid = /^[cC][^\s-]{8,}$/;
2339
+ var cuid = /^[cC][0-9a-z]{6,}$/;
2314
2340
  var cuid2 = /^[0-9a-z]+$/;
2315
2341
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
2316
2342
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -2349,6 +2375,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
2349
2375
  var base64url = /^[A-Za-z0-9_-]*$/;
2350
2376
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
2351
2377
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
2378
+ var httpProtocol = /^https?$/;
2352
2379
  var e164 = /^\+[1-9]\d{6,14}$/;
2353
2380
  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])))`;
2354
2381
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -2407,10 +2434,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2407
2434
 
2408
2435
  // ../../node_modules/zod/v4/core/checks.js
2409
2436
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2410
- var _a2;
2437
+ var _a3;
2411
2438
  inst._zod ?? (inst._zod = {});
2412
2439
  inst._zod.def = def;
2413
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
2440
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
2414
2441
  });
2415
2442
  var numericOriginMap = {
2416
2443
  number: "number",
@@ -2476,8 +2503,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2476
2503
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2477
2504
  $ZodCheck.init(inst, def);
2478
2505
  inst._zod.onattach.push((inst2) => {
2479
- var _a2;
2480
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
2506
+ var _a3;
2507
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
2481
2508
  });
2482
2509
  inst._zod.check = (payload) => {
2483
2510
  if (typeof payload.value !== typeof def.value)
@@ -2610,9 +2637,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
2610
2637
  };
2611
2638
  });
2612
2639
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2613
- var _a2;
2640
+ var _a3;
2614
2641
  $ZodCheck.init(inst, def);
2615
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2642
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2616
2643
  const val = payload.value;
2617
2644
  return !nullish(val) && val.size !== void 0;
2618
2645
  });
@@ -2638,9 +2665,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2638
2665
  };
2639
2666
  });
2640
2667
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2641
- var _a2;
2668
+ var _a3;
2642
2669
  $ZodCheck.init(inst, def);
2643
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2670
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2644
2671
  const val = payload.value;
2645
2672
  return !nullish(val) && val.size !== void 0;
2646
2673
  });
@@ -2666,9 +2693,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2666
2693
  };
2667
2694
  });
2668
2695
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2669
- var _a2;
2696
+ var _a3;
2670
2697
  $ZodCheck.init(inst, def);
2671
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2698
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2672
2699
  const val = payload.value;
2673
2700
  return !nullish(val) && val.size !== void 0;
2674
2701
  });
@@ -2696,9 +2723,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2696
2723
  };
2697
2724
  });
2698
2725
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2699
- var _a2;
2726
+ var _a3;
2700
2727
  $ZodCheck.init(inst, def);
2701
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2728
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2702
2729
  const val = payload.value;
2703
2730
  return !nullish(val) && val.length !== void 0;
2704
2731
  });
@@ -2725,9 +2752,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2725
2752
  };
2726
2753
  });
2727
2754
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2728
- var _a2;
2755
+ var _a3;
2729
2756
  $ZodCheck.init(inst, def);
2730
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2757
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2731
2758
  const val = payload.value;
2732
2759
  return !nullish(val) && val.length !== void 0;
2733
2760
  });
@@ -2754,9 +2781,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2754
2781
  };
2755
2782
  });
2756
2783
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2757
- var _a2;
2784
+ var _a3;
2758
2785
  $ZodCheck.init(inst, def);
2759
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
2786
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
2760
2787
  const val = payload.value;
2761
2788
  return !nullish(val) && val.length !== void 0;
2762
2789
  });
@@ -2785,7 +2812,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2785
2812
  };
2786
2813
  });
2787
2814
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2788
- var _a2, _b;
2815
+ var _a3, _b;
2789
2816
  $ZodCheck.init(inst, def);
2790
2817
  inst._zod.onattach.push((inst2) => {
2791
2818
  const bag = inst2._zod.bag;
@@ -2796,7 +2823,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2796
2823
  }
2797
2824
  });
2798
2825
  if (def.pattern)
2799
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2826
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
2800
2827
  def.pattern.lastIndex = 0;
2801
2828
  if (def.pattern.test(payload.value))
2802
2829
  return;
@@ -2992,13 +3019,13 @@ var Doc = class {
2992
3019
  // ../../node_modules/zod/v4/core/versions.js
2993
3020
  var version = {
2994
3021
  major: 4,
2995
- minor: 3,
2996
- patch: 6
3022
+ minor: 4,
3023
+ patch: 3
2997
3024
  };
2998
3025
 
2999
3026
  // ../../node_modules/zod/v4/core/schemas.js
3000
3027
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3001
- var _a2;
3028
+ var _a3;
3002
3029
  inst ?? (inst = {});
3003
3030
  inst._zod.def = def;
3004
3031
  inst._zod.bag = inst._zod.bag || {};
@@ -3013,7 +3040,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3013
3040
  }
3014
3041
  }
3015
3042
  if (checks.length === 0) {
3016
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
3043
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
3017
3044
  inst._zod.deferred?.push(() => {
3018
3045
  inst._zod.run = inst._zod.parse;
3019
3046
  });
@@ -3023,6 +3050,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3023
3050
  let asyncResult;
3024
3051
  for (const ch of checks2) {
3025
3052
  if (ch._zod.def.when) {
3053
+ if (explicitlyAborted(payload))
3054
+ continue;
3026
3055
  const shouldRun = ch._zod.def.when(payload);
3027
3056
  if (!shouldRun)
3028
3057
  continue;
@@ -3163,6 +3192,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3163
3192
  inst._zod.check = (payload) => {
3164
3193
  try {
3165
3194
  const trimmed = payload.value.trim();
3195
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
3196
+ if (!/^https?:\/\//i.test(trimmed)) {
3197
+ payload.issues.push({
3198
+ code: "invalid_format",
3199
+ format: "url",
3200
+ note: "Invalid URL format",
3201
+ input: payload.value,
3202
+ inst,
3203
+ continue: !def.abort
3204
+ });
3205
+ return;
3206
+ }
3207
+ }
3166
3208
  const url2 = new URL(trimmed);
3167
3209
  if (def.hostname) {
3168
3210
  def.hostname.lastIndex = 0;
@@ -3316,6 +3358,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
3316
3358
  function isValidBase64(data) {
3317
3359
  if (data === "")
3318
3360
  return true;
3361
+ if (/\s/.test(data))
3362
+ return false;
3319
3363
  if (data.length % 4 !== 0)
3320
3364
  return false;
3321
3365
  try {
@@ -3508,8 +3552,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
3508
3552
  $ZodType.init(inst, def);
3509
3553
  inst._zod.pattern = _undefined;
3510
3554
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
3511
- inst._zod.optin = "optional";
3512
- inst._zod.optout = "optional";
3513
3555
  inst._zod.parse = (payload, _ctx) => {
3514
3556
  const input = payload.value;
3515
3557
  if (typeof input === "undefined")
@@ -3638,15 +3680,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3638
3680
  return payload;
3639
3681
  };
3640
3682
  });
3641
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
3683
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
3684
+ const isPresent = key in input;
3642
3685
  if (result.issues.length) {
3643
- if (isOptionalOut && !(key in input)) {
3686
+ if (isOptionalIn && isOptionalOut && !isPresent) {
3644
3687
  return;
3645
3688
  }
3646
3689
  final.issues.push(...prefixIssues(key, result.issues));
3647
3690
  }
3691
+ if (!isPresent && !isOptionalIn) {
3692
+ if (!result.issues.length) {
3693
+ final.issues.push({
3694
+ code: "invalid_type",
3695
+ expected: "nonoptional",
3696
+ input: void 0,
3697
+ path: [key]
3698
+ });
3699
+ }
3700
+ return;
3701
+ }
3648
3702
  if (result.value === void 0) {
3649
- if (key in input) {
3703
+ if (isPresent) {
3650
3704
  final.value[key] = void 0;
3651
3705
  }
3652
3706
  } else {
@@ -3674,8 +3728,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3674
3728
  const keySet = def.keySet;
3675
3729
  const _catchall = def.catchall._zod;
3676
3730
  const t = _catchall.def.type;
3731
+ const isOptionalIn = _catchall.optin === "optional";
3677
3732
  const isOptionalOut = _catchall.optout === "optional";
3678
3733
  for (const key in input) {
3734
+ if (key === "__proto__")
3735
+ continue;
3679
3736
  if (keySet.has(key))
3680
3737
  continue;
3681
3738
  if (t === "never") {
@@ -3684,9 +3741,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
3684
3741
  }
3685
3742
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3686
3743
  if (r instanceof Promise) {
3687
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3744
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3688
3745
  } else {
3689
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3746
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3690
3747
  }
3691
3748
  }
3692
3749
  if (unrecognized.length) {
@@ -3752,12 +3809,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3752
3809
  const shape = value.shape;
3753
3810
  for (const key of value.keys) {
3754
3811
  const el = shape[key];
3812
+ const isOptionalIn = el._zod.optin === "optional";
3755
3813
  const isOptionalOut = el._zod.optout === "optional";
3756
3814
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3757
3815
  if (r instanceof Promise) {
3758
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
3816
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
3759
3817
  } else {
3760
- handlePropertyResult(r, payload, key, input, isOptionalOut);
3818
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
3761
3819
  }
3762
3820
  }
3763
3821
  if (!catchall) {
@@ -3788,9 +3846,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3788
3846
  const id = ids[key];
3789
3847
  const k = esc(key);
3790
3848
  const schema = shape[key];
3849
+ const isOptionalIn = schema?._zod?.optin === "optional";
3791
3850
  const isOptionalOut = schema?._zod?.optout === "optional";
3792
3851
  doc.write(`const ${id} = ${parseStr(key)};`);
3793
- if (isOptionalOut) {
3852
+ if (isOptionalIn && isOptionalOut) {
3794
3853
  doc.write(`
3795
3854
  if (${id}.issues.length) {
3796
3855
  if (${k} in input) {
@@ -3809,6 +3868,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3809
3868
  newResult[${k}] = ${id}.value;
3810
3869
  }
3811
3870
 
3871
+ `);
3872
+ } else if (!isOptionalIn) {
3873
+ doc.write(`
3874
+ const ${id}_present = ${k} in input;
3875
+ if (${id}.issues.length) {
3876
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
3877
+ ...iss,
3878
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
3879
+ })));
3880
+ }
3881
+ if (!${id}_present && !${id}.issues.length) {
3882
+ payload.issues.push({
3883
+ code: "invalid_type",
3884
+ expected: "nonoptional",
3885
+ input: undefined,
3886
+ path: [${k}]
3887
+ });
3888
+ }
3889
+
3890
+ if (${id}_present) {
3891
+ if (${id}.value === undefined) {
3892
+ newResult[${k}] = undefined;
3893
+ } else {
3894
+ newResult[${k}] = ${id}.value;
3895
+ }
3896
+ }
3897
+
3812
3898
  `);
3813
3899
  } else {
3814
3900
  doc.write(`
@@ -3902,10 +3988,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
3902
3988
  }
3903
3989
  return void 0;
3904
3990
  });
3905
- const single = def.options.length === 1;
3906
- const first = def.options[0]._zod.run;
3991
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3907
3992
  inst._zod.parse = (payload, ctx) => {
3908
- if (single) {
3993
+ if (first) {
3909
3994
  return first(payload, ctx);
3910
3995
  }
3911
3996
  let async = false;
@@ -3958,10 +4043,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
3958
4043
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
3959
4044
  $ZodUnion.init(inst, def);
3960
4045
  def.inclusive = false;
3961
- const single = def.options.length === 1;
3962
- const first = def.options[0]._zod.run;
4046
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
3963
4047
  inst._zod.parse = (payload, ctx) => {
3964
- if (single) {
4048
+ if (first) {
3965
4049
  return first(payload, ctx);
3966
4050
  }
3967
4051
  let async = false;
@@ -4036,7 +4120,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
4036
4120
  if (opt) {
4037
4121
  return opt._zod.run(payload, ctx);
4038
4122
  }
4039
- if (def.unionFallback) {
4123
+ if (def.unionFallback || ctx.direction === "backward") {
4040
4124
  return _super(payload, ctx);
4041
4125
  }
4042
4126
  payload.issues.push({
@@ -4044,6 +4128,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
4044
4128
  errors: [],
4045
4129
  note: "No matching discriminator",
4046
4130
  discriminator: def.discriminator,
4131
+ options: Array.from(disc.value.keys()),
4047
4132
  input,
4048
4133
  path: [def.discriminator],
4049
4134
  inst
@@ -4165,64 +4250,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
4165
4250
  }
4166
4251
  payload.value = [];
4167
4252
  const proms = [];
4168
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
4169
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
4253
+ const optinStart = getTupleOptStart(items, "optin");
4254
+ const optoutStart = getTupleOptStart(items, "optout");
4170
4255
  if (!def.rest) {
4171
- const tooBig = input.length > items.length;
4172
- const tooSmall = input.length < optStart - 1;
4173
- if (tooBig || tooSmall) {
4256
+ if (input.length < optinStart) {
4174
4257
  payload.issues.push({
4175
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
4258
+ code: "too_small",
4259
+ minimum: optinStart,
4260
+ inclusive: true,
4176
4261
  input,
4177
4262
  inst,
4178
4263
  origin: "array"
4179
4264
  });
4180
4265
  return payload;
4181
4266
  }
4182
- }
4183
- let i = -1;
4184
- for (const item of items) {
4185
- i++;
4186
- if (i >= input.length) {
4187
- if (i >= optStart)
4188
- continue;
4267
+ if (input.length > items.length) {
4268
+ payload.issues.push({
4269
+ code: "too_big",
4270
+ maximum: items.length,
4271
+ inclusive: true,
4272
+ input,
4273
+ inst,
4274
+ origin: "array"
4275
+ });
4189
4276
  }
4190
- const result = item._zod.run({
4191
- value: input[i],
4192
- issues: []
4193
- }, ctx);
4194
- if (result instanceof Promise) {
4195
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
4277
+ }
4278
+ const itemResults = new Array(items.length);
4279
+ for (let i = 0; i < items.length; i++) {
4280
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
4281
+ if (r instanceof Promise) {
4282
+ proms.push(r.then((rr) => {
4283
+ itemResults[i] = rr;
4284
+ }));
4196
4285
  } else {
4197
- handleTupleResult(result, payload, i);
4286
+ itemResults[i] = r;
4198
4287
  }
4199
4288
  }
4200
4289
  if (def.rest) {
4290
+ let i = items.length - 1;
4201
4291
  const rest = input.slice(items.length);
4202
4292
  for (const el of rest) {
4203
4293
  i++;
4204
- const result = def.rest._zod.run({
4205
- value: el,
4206
- issues: []
4207
- }, ctx);
4294
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
4208
4295
  if (result instanceof Promise) {
4209
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
4296
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
4210
4297
  } else {
4211
4298
  handleTupleResult(result, payload, i);
4212
4299
  }
4213
4300
  }
4214
4301
  }
4215
- if (proms.length)
4216
- return Promise.all(proms).then(() => payload);
4217
- return payload;
4302
+ if (proms.length) {
4303
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
4304
+ }
4305
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
4218
4306
  };
4219
4307
  });
4308
+ function getTupleOptStart(items, key) {
4309
+ for (let i = items.length - 1; i >= 0; i--) {
4310
+ if (items[i]._zod[key] !== "optional")
4311
+ return i + 1;
4312
+ }
4313
+ return 0;
4314
+ }
4220
4315
  function handleTupleResult(result, final, index) {
4221
4316
  if (result.issues.length) {
4222
4317
  final.issues.push(...prefixIssues(index, result.issues));
4223
4318
  }
4224
4319
  final.value[index] = result.value;
4225
4320
  }
4321
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
4322
+ for (let i = 0; i < items.length; i++) {
4323
+ const r = itemResults[i];
4324
+ const isPresent = i < input.length;
4325
+ if (r.issues.length) {
4326
+ if (!isPresent && i >= optoutStart) {
4327
+ final.value.length = i;
4328
+ break;
4329
+ }
4330
+ final.issues.push(...prefixIssues(i, r.issues));
4331
+ }
4332
+ final.value[i] = r.value;
4333
+ }
4334
+ for (let i = final.value.length - 1; i >= input.length; i--) {
4335
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
4336
+ final.value.length = i;
4337
+ } else {
4338
+ break;
4339
+ }
4340
+ }
4341
+ return final;
4342
+ }
4226
4343
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
4227
4344
  $ZodType.init(inst, def);
4228
4345
  inst._zod.parse = (payload, ctx) => {
@@ -4244,19 +4361,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
4244
4361
  for (const key of values) {
4245
4362
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
4246
4363
  recordKeys.add(typeof key === "number" ? key.toString() : key);
4364
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
4365
+ if (keyResult instanceof Promise) {
4366
+ throw new Error("Async schemas not supported in object keys currently");
4367
+ }
4368
+ if (keyResult.issues.length) {
4369
+ payload.issues.push({
4370
+ code: "invalid_key",
4371
+ origin: "record",
4372
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
4373
+ input: key,
4374
+ path: [key],
4375
+ inst
4376
+ });
4377
+ continue;
4378
+ }
4379
+ const outKey = keyResult.value;
4247
4380
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
4248
4381
  if (result instanceof Promise) {
4249
4382
  proms.push(result.then((result2) => {
4250
4383
  if (result2.issues.length) {
4251
4384
  payload.issues.push(...prefixIssues(key, result2.issues));
4252
4385
  }
4253
- payload.value[key] = result2.value;
4386
+ payload.value[outKey] = result2.value;
4254
4387
  }));
4255
4388
  } else {
4256
4389
  if (result.issues.length) {
4257
4390
  payload.issues.push(...prefixIssues(key, result.issues));
4258
4391
  }
4259
- payload.value[key] = result.value;
4392
+ payload.value[outKey] = result.value;
4260
4393
  }
4261
4394
  }
4262
4395
  }
@@ -4280,6 +4413,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
4280
4413
  for (const key of Reflect.ownKeys(input)) {
4281
4414
  if (key === "__proto__")
4282
4415
  continue;
4416
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
4417
+ continue;
4283
4418
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
4284
4419
  if (keyResult instanceof Promise) {
4285
4420
  throw new Error("Async schemas not supported in object keys currently");
@@ -4484,6 +4619,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
4484
4619
  });
4485
4620
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
4486
4621
  $ZodType.init(inst, def);
4622
+ inst._zod.optin = "optional";
4487
4623
  inst._zod.parse = (payload, ctx) => {
4488
4624
  if (ctx.direction === "backward") {
4489
4625
  throw new $ZodEncodeError(inst.constructor.name);
@@ -4493,6 +4629,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
4493
4629
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
4494
4630
  return output.then((output2) => {
4495
4631
  payload.value = output2;
4632
+ payload.fallback = true;
4496
4633
  return payload;
4497
4634
  });
4498
4635
  }
@@ -4500,11 +4637,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
4500
4637
  throw new $ZodAsyncError();
4501
4638
  }
4502
4639
  payload.value = _out;
4640
+ payload.fallback = true;
4503
4641
  return payload;
4504
4642
  };
4505
4643
  });
4506
4644
  function handleOptionalResult(result, input) {
4507
- if (result.issues.length && input === void 0) {
4645
+ if (input === void 0 && (result.issues.length || result.fallback)) {
4508
4646
  return { issues: [], value: void 0 };
4509
4647
  }
4510
4648
  return result;
@@ -4522,10 +4660,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
4522
4660
  });
4523
4661
  inst._zod.parse = (payload, ctx) => {
4524
4662
  if (def.innerType._zod.optin === "optional") {
4663
+ const input = payload.value;
4525
4664
  const result = def.innerType._zod.run(payload, ctx);
4526
4665
  if (result instanceof Promise)
4527
- return result.then((r) => handleOptionalResult(r, payload.value));
4528
- return handleOptionalResult(result, payload.value);
4666
+ return result.then((r) => handleOptionalResult(r, input));
4667
+ return handleOptionalResult(result, input);
4529
4668
  }
4530
4669
  if (payload.value === void 0) {
4531
4670
  return payload;
@@ -4641,7 +4780,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
4641
4780
  });
4642
4781
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4643
4782
  $ZodType.init(inst, def);
4644
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
4783
+ inst._zod.optin = "optional";
4645
4784
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
4646
4785
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
4647
4786
  inst._zod.parse = (payload, ctx) => {
@@ -4661,6 +4800,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4661
4800
  input: payload.value
4662
4801
  });
4663
4802
  payload.issues = [];
4803
+ payload.fallback = true;
4664
4804
  }
4665
4805
  return payload;
4666
4806
  });
@@ -4675,6 +4815,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
4675
4815
  input: payload.value
4676
4816
  });
4677
4817
  payload.issues = [];
4818
+ payload.fallback = true;
4678
4819
  }
4679
4820
  return payload;
4680
4821
  };
@@ -4720,7 +4861,7 @@ function handlePipeResult(left, next, ctx) {
4720
4861
  left.aborted = true;
4721
4862
  return left;
4722
4863
  }
4723
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
4864
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
4724
4865
  }
4725
4866
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
4726
4867
  $ZodType.init(inst, def);
@@ -4772,6 +4913,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
4772
4913
  }
4773
4914
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
4774
4915
  }
4916
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
4917
+ $ZodPipe.init(inst, def);
4918
+ });
4775
4919
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
4776
4920
  $ZodType.init(inst, def);
4777
4921
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -4923,7 +5067,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
4923
5067
  });
4924
5068
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
4925
5069
  $ZodType.init(inst, def);
4926
- defineLazy(inst._zod, "innerType", () => def.getter());
5070
+ defineLazy(inst._zod, "innerType", () => {
5071
+ const d = def;
5072
+ if (!d._cachedInner)
5073
+ d._cachedInner = def.getter();
5074
+ return d._cachedInner;
5075
+ });
4927
5076
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
4928
5077
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
4929
5078
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -4978,6 +5127,7 @@ __export(locales_exports, {
4978
5127
  cs: () => cs_default,
4979
5128
  da: () => da_default,
4980
5129
  de: () => de_default,
5130
+ el: () => el_default,
4981
5131
  en: () => en_default,
4982
5132
  eo: () => eo_default,
4983
5133
  es: () => es_default,
@@ -4986,6 +5136,7 @@ __export(locales_exports, {
4986
5136
  fr: () => fr_default,
4987
5137
  frCA: () => fr_CA_default,
4988
5138
  he: () => he_default,
5139
+ hr: () => hr_default,
4989
5140
  hu: () => hu_default,
4990
5141
  hy: () => hy_default,
4991
5142
  id: () => id_default,
@@ -5005,6 +5156,7 @@ __export(locales_exports, {
5005
5156
  pl: () => pl_default,
5006
5157
  ps: () => ps_default,
5007
5158
  pt: () => pt_default,
5159
+ ro: () => ro_default,
5008
5160
  ru: () => ru_default,
5009
5161
  sl: () => sl_default,
5010
5162
  sv: () => sv_default,
@@ -5958,8 +6110,118 @@ function de_default() {
5958
6110
  };
5959
6111
  }
5960
6112
 
5961
- // ../../node_modules/zod/v4/locales/en.js
6113
+ // ../../node_modules/zod/v4/locales/el.js
5962
6114
  var error9 = () => {
6115
+ const Sizable = {
6116
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
6117
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
6118
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
6119
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
6120
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
6121
+ };
6122
+ function getSizing(origin) {
6123
+ return Sizable[origin] ?? null;
6124
+ }
6125
+ const FormatDictionary = {
6126
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
6127
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
6128
+ url: "URL",
6129
+ emoji: "emoji",
6130
+ uuid: "UUID",
6131
+ uuidv4: "UUIDv4",
6132
+ uuidv6: "UUIDv6",
6133
+ nanoid: "nanoid",
6134
+ guid: "GUID",
6135
+ cuid: "cuid",
6136
+ cuid2: "cuid2",
6137
+ ulid: "ULID",
6138
+ xid: "XID",
6139
+ ksuid: "KSUID",
6140
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
6141
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
6142
+ time: "ISO \u03CE\u03C1\u03B1",
6143
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
6144
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
6145
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
6146
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
6147
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
6148
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
6149
+ base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
6150
+ base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
6151
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
6152
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
6153
+ jwt: "JWT",
6154
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
6155
+ };
6156
+ const TypeDictionary = {
6157
+ nan: "NaN"
6158
+ };
6159
+ return (issue2) => {
6160
+ switch (issue2.code) {
6161
+ case "invalid_type": {
6162
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6163
+ const receivedType = parsedType(issue2.input);
6164
+ const received = TypeDictionary[receivedType] ?? receivedType;
6165
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
6166
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
6167
+ }
6168
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
6169
+ }
6170
+ case "invalid_value":
6171
+ if (issue2.values.length === 1)
6172
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
6173
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
6174
+ case "too_big": {
6175
+ const adj = issue2.inclusive ? "<=" : "<";
6176
+ const sizing = getSizing(issue2.origin);
6177
+ if (sizing)
6178
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
6179
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
6180
+ }
6181
+ case "too_small": {
6182
+ const adj = issue2.inclusive ? ">=" : ">";
6183
+ const sizing = getSizing(issue2.origin);
6184
+ if (sizing) {
6185
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6186
+ }
6187
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
6188
+ }
6189
+ case "invalid_format": {
6190
+ const _issue = issue2;
6191
+ if (_issue.format === "starts_with") {
6192
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
6193
+ }
6194
+ if (_issue.format === "ends_with")
6195
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
6196
+ if (_issue.format === "includes")
6197
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
6198
+ if (_issue.format === "regex")
6199
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
6200
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
6201
+ }
6202
+ case "not_multiple_of":
6203
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
6204
+ case "unrecognized_keys":
6205
+ return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
6206
+ case "invalid_key":
6207
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
6208
+ case "invalid_union":
6209
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
6210
+ case "invalid_element":
6211
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
6212
+ default:
6213
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
6214
+ }
6215
+ };
6216
+ };
6217
+ function el_default() {
6218
+ return {
6219
+ localeError: error9()
6220
+ };
6221
+ }
6222
+
6223
+ // ../../node_modules/zod/v4/locales/en.js
6224
+ var error10 = () => {
5963
6225
  const Sizable = {
5964
6226
  string: { unit: "characters", verb: "to have" },
5965
6227
  file: { unit: "bytes", verb: "to have" },
@@ -6053,6 +6315,10 @@ var error9 = () => {
6053
6315
  case "invalid_key":
6054
6316
  return `Invalid key in ${issue2.origin}`;
6055
6317
  case "invalid_union":
6318
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
6319
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
6320
+ return `Invalid discriminator value. Expected ${opts}`;
6321
+ }
6056
6322
  return "Invalid input";
6057
6323
  case "invalid_element":
6058
6324
  return `Invalid value in ${issue2.origin}`;
@@ -6063,12 +6329,12 @@ var error9 = () => {
6063
6329
  };
6064
6330
  function en_default() {
6065
6331
  return {
6066
- localeError: error9()
6332
+ localeError: error10()
6067
6333
  };
6068
6334
  }
6069
6335
 
6070
6336
  // ../../node_modules/zod/v4/locales/eo.js
6071
- var error10 = () => {
6337
+ var error11 = () => {
6072
6338
  const Sizable = {
6073
6339
  string: { unit: "karaktrojn", verb: "havi" },
6074
6340
  file: { unit: "bajtojn", verb: "havi" },
@@ -6173,12 +6439,12 @@ var error10 = () => {
6173
6439
  };
6174
6440
  function eo_default() {
6175
6441
  return {
6176
- localeError: error10()
6442
+ localeError: error11()
6177
6443
  };
6178
6444
  }
6179
6445
 
6180
6446
  // ../../node_modules/zod/v4/locales/es.js
6181
- var error11 = () => {
6447
+ var error12 = () => {
6182
6448
  const Sizable = {
6183
6449
  string: { unit: "caracteres", verb: "tener" },
6184
6450
  file: { unit: "bytes", verb: "tener" },
@@ -6306,12 +6572,12 @@ var error11 = () => {
6306
6572
  };
6307
6573
  function es_default() {
6308
6574
  return {
6309
- localeError: error11()
6575
+ localeError: error12()
6310
6576
  };
6311
6577
  }
6312
6578
 
6313
6579
  // ../../node_modules/zod/v4/locales/fa.js
6314
- var error12 = () => {
6580
+ var error13 = () => {
6315
6581
  const Sizable = {
6316
6582
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
6317
6583
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -6421,12 +6687,12 @@ var error12 = () => {
6421
6687
  };
6422
6688
  function fa_default() {
6423
6689
  return {
6424
- localeError: error12()
6690
+ localeError: error13()
6425
6691
  };
6426
6692
  }
6427
6693
 
6428
6694
  // ../../node_modules/zod/v4/locales/fi.js
6429
- var error13 = () => {
6695
+ var error14 = () => {
6430
6696
  const Sizable = {
6431
6697
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
6432
6698
  file: { unit: "tavua", subject: "tiedoston" },
@@ -6534,12 +6800,12 @@ var error13 = () => {
6534
6800
  };
6535
6801
  function fi_default() {
6536
6802
  return {
6537
- localeError: error13()
6803
+ localeError: error14()
6538
6804
  };
6539
6805
  }
6540
6806
 
6541
6807
  // ../../node_modules/zod/v4/locales/fr.js
6542
- var error14 = () => {
6808
+ var error15 = () => {
6543
6809
  const Sizable = {
6544
6810
  string: { unit: "caract\xE8res", verb: "avoir" },
6545
6811
  file: { unit: "octets", verb: "avoir" },
@@ -6580,9 +6846,27 @@ var error14 = () => {
6580
6846
  template_literal: "entr\xE9e"
6581
6847
  };
6582
6848
  const TypeDictionary = {
6583
- nan: "NaN",
6849
+ string: "cha\xEEne",
6584
6850
  number: "nombre",
6585
- array: "tableau"
6851
+ int: "entier",
6852
+ boolean: "bool\xE9en",
6853
+ bigint: "grand entier",
6854
+ symbol: "symbole",
6855
+ undefined: "ind\xE9fini",
6856
+ null: "null",
6857
+ never: "jamais",
6858
+ void: "vide",
6859
+ date: "date",
6860
+ array: "tableau",
6861
+ object: "objet",
6862
+ tuple: "tuple",
6863
+ record: "enregistrement",
6864
+ map: "carte",
6865
+ set: "ensemble",
6866
+ file: "fichier",
6867
+ nonoptional: "non-optionnel",
6868
+ nan: "NaN",
6869
+ function: "fonction"
6586
6870
  };
6587
6871
  return (issue2) => {
6588
6872
  switch (issue2.code) {
@@ -6603,16 +6887,15 @@ var error14 = () => {
6603
6887
  const adj = issue2.inclusive ? "<=" : "<";
6604
6888
  const sizing = getSizing(issue2.origin);
6605
6889
  if (sizing)
6606
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6607
- return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6890
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
6891
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
6608
6892
  }
6609
6893
  case "too_small": {
6610
6894
  const adj = issue2.inclusive ? ">=" : ">";
6611
6895
  const sizing = getSizing(issue2.origin);
6612
- if (sizing) {
6613
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6614
- }
6615
- return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6896
+ if (sizing)
6897
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6898
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
6616
6899
  }
6617
6900
  case "invalid_format": {
6618
6901
  const _issue = issue2;
@@ -6643,12 +6926,12 @@ var error14 = () => {
6643
6926
  };
6644
6927
  function fr_default() {
6645
6928
  return {
6646
- localeError: error14()
6929
+ localeError: error15()
6647
6930
  };
6648
6931
  }
6649
6932
 
6650
6933
  // ../../node_modules/zod/v4/locales/fr-CA.js
6651
- var error15 = () => {
6934
+ var error16 = () => {
6652
6935
  const Sizable = {
6653
6936
  string: { unit: "caract\xE8res", verb: "avoir" },
6654
6937
  file: { unit: "octets", verb: "avoir" },
@@ -6751,12 +7034,12 @@ var error15 = () => {
6751
7034
  };
6752
7035
  function fr_CA_default() {
6753
7036
  return {
6754
- localeError: error15()
7037
+ localeError: error16()
6755
7038
  };
6756
7039
  }
6757
7040
 
6758
7041
  // ../../node_modules/zod/v4/locales/he.js
6759
- var error16 = () => {
7042
+ var error17 = () => {
6760
7043
  const TypeNames = {
6761
7044
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
6762
7045
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -6946,24 +7229,24 @@ var error16 = () => {
6946
7229
  };
6947
7230
  function he_default() {
6948
7231
  return {
6949
- localeError: error16()
7232
+ localeError: error17()
6950
7233
  };
6951
7234
  }
6952
7235
 
6953
- // ../../node_modules/zod/v4/locales/hu.js
6954
- var error17 = () => {
7236
+ // ../../node_modules/zod/v4/locales/hr.js
7237
+ var error18 = () => {
6955
7238
  const Sizable = {
6956
- string: { unit: "karakter", verb: "legyen" },
6957
- file: { unit: "byte", verb: "legyen" },
6958
- array: { unit: "elem", verb: "legyen" },
6959
- set: { unit: "elem", verb: "legyen" }
7239
+ string: { unit: "znakova", verb: "imati" },
7240
+ file: { unit: "bajtova", verb: "imati" },
7241
+ array: { unit: "stavki", verb: "imati" },
7242
+ set: { unit: "stavki", verb: "imati" }
6960
7243
  };
6961
7244
  function getSizing(origin) {
6962
7245
  return Sizable[origin] ?? null;
6963
7246
  }
6964
7247
  const FormatDictionary = {
6965
- regex: "bemenet",
6966
- email: "email c\xEDm",
7248
+ regex: "unos",
7249
+ email: "email adresa",
6967
7250
  url: "URL",
6968
7251
  emoji: "emoji",
6969
7252
  uuid: "UUID",
@@ -6976,25 +7259,37 @@ var error17 = () => {
6976
7259
  ulid: "ULID",
6977
7260
  xid: "XID",
6978
7261
  ksuid: "KSUID",
6979
- datetime: "ISO id\u0151b\xE9lyeg",
6980
- date: "ISO d\xE1tum",
6981
- time: "ISO id\u0151",
6982
- duration: "ISO id\u0151intervallum",
6983
- ipv4: "IPv4 c\xEDm",
6984
- ipv6: "IPv6 c\xEDm",
6985
- cidrv4: "IPv4 tartom\xE1ny",
6986
- cidrv6: "IPv6 tartom\xE1ny",
6987
- base64: "base64-k\xF3dolt string",
6988
- base64url: "base64url-k\xF3dolt string",
6989
- json_string: "JSON string",
6990
- e164: "E.164 sz\xE1m",
7262
+ datetime: "ISO datum i vrijeme",
7263
+ date: "ISO datum",
7264
+ time: "ISO vrijeme",
7265
+ duration: "ISO trajanje",
7266
+ ipv4: "IPv4 adresa",
7267
+ ipv6: "IPv6 adresa",
7268
+ cidrv4: "IPv4 raspon",
7269
+ cidrv6: "IPv6 raspon",
7270
+ base64: "base64 kodirani tekst",
7271
+ base64url: "base64url kodirani tekst",
7272
+ json_string: "JSON tekst",
7273
+ e164: "E.164 broj",
6991
7274
  jwt: "JWT",
6992
- template_literal: "bemenet"
7275
+ template_literal: "unos"
6993
7276
  };
6994
7277
  const TypeDictionary = {
6995
7278
  nan: "NaN",
6996
- number: "sz\xE1m",
6997
- array: "t\xF6mb"
7279
+ string: "tekst",
7280
+ number: "broj",
7281
+ boolean: "boolean",
7282
+ array: "niz",
7283
+ object: "objekt",
7284
+ set: "skup",
7285
+ file: "datoteka",
7286
+ date: "datum",
7287
+ bigint: "bigint",
7288
+ symbol: "simbol",
7289
+ undefined: "undefined",
7290
+ null: "null",
7291
+ function: "funkcija",
7292
+ map: "mapa"
6998
7293
  };
6999
7294
  return (issue2) => {
7000
7295
  switch (issue2.code) {
@@ -7003,20 +7298,131 @@ var error17 = () => {
7003
7298
  const receivedType = parsedType(issue2.input);
7004
7299
  const received = TypeDictionary[receivedType] ?? receivedType;
7005
7300
  if (/^[A-Z]/.test(issue2.expected)) {
7006
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
7301
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
7007
7302
  }
7008
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
7303
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
7009
7304
  }
7010
7305
  case "invalid_value":
7011
7306
  if (issue2.values.length === 1)
7012
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
7013
- return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
7307
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
7308
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
7014
7309
  case "too_big": {
7015
7310
  const adj = issue2.inclusive ? "<=" : "<";
7016
7311
  const sizing = getSizing(issue2.origin);
7312
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
7017
7313
  if (sizing)
7018
- return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
7019
- return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
7314
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
7315
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
7316
+ }
7317
+ case "too_small": {
7318
+ const adj = issue2.inclusive ? ">=" : ">";
7319
+ const sizing = getSizing(issue2.origin);
7320
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
7321
+ if (sizing) {
7322
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
7323
+ }
7324
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
7325
+ }
7326
+ case "invalid_format": {
7327
+ const _issue = issue2;
7328
+ if (_issue.format === "starts_with")
7329
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
7330
+ if (_issue.format === "ends_with")
7331
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
7332
+ if (_issue.format === "includes")
7333
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
7334
+ if (_issue.format === "regex")
7335
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
7336
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
7337
+ }
7338
+ case "not_multiple_of":
7339
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
7340
+ case "unrecognized_keys":
7341
+ return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
7342
+ case "invalid_key":
7343
+ return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
7344
+ case "invalid_union":
7345
+ return "Neispravan unos";
7346
+ case "invalid_element":
7347
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
7348
+ default:
7349
+ return `Neispravan unos`;
7350
+ }
7351
+ };
7352
+ };
7353
+ function hr_default() {
7354
+ return {
7355
+ localeError: error18()
7356
+ };
7357
+ }
7358
+
7359
+ // ../../node_modules/zod/v4/locales/hu.js
7360
+ var error19 = () => {
7361
+ const Sizable = {
7362
+ string: { unit: "karakter", verb: "legyen" },
7363
+ file: { unit: "byte", verb: "legyen" },
7364
+ array: { unit: "elem", verb: "legyen" },
7365
+ set: { unit: "elem", verb: "legyen" }
7366
+ };
7367
+ function getSizing(origin) {
7368
+ return Sizable[origin] ?? null;
7369
+ }
7370
+ const FormatDictionary = {
7371
+ regex: "bemenet",
7372
+ email: "email c\xEDm",
7373
+ url: "URL",
7374
+ emoji: "emoji",
7375
+ uuid: "UUID",
7376
+ uuidv4: "UUIDv4",
7377
+ uuidv6: "UUIDv6",
7378
+ nanoid: "nanoid",
7379
+ guid: "GUID",
7380
+ cuid: "cuid",
7381
+ cuid2: "cuid2",
7382
+ ulid: "ULID",
7383
+ xid: "XID",
7384
+ ksuid: "KSUID",
7385
+ datetime: "ISO id\u0151b\xE9lyeg",
7386
+ date: "ISO d\xE1tum",
7387
+ time: "ISO id\u0151",
7388
+ duration: "ISO id\u0151intervallum",
7389
+ ipv4: "IPv4 c\xEDm",
7390
+ ipv6: "IPv6 c\xEDm",
7391
+ cidrv4: "IPv4 tartom\xE1ny",
7392
+ cidrv6: "IPv6 tartom\xE1ny",
7393
+ base64: "base64-k\xF3dolt string",
7394
+ base64url: "base64url-k\xF3dolt string",
7395
+ json_string: "JSON string",
7396
+ e164: "E.164 sz\xE1m",
7397
+ jwt: "JWT",
7398
+ template_literal: "bemenet"
7399
+ };
7400
+ const TypeDictionary = {
7401
+ nan: "NaN",
7402
+ number: "sz\xE1m",
7403
+ array: "t\xF6mb"
7404
+ };
7405
+ return (issue2) => {
7406
+ switch (issue2.code) {
7407
+ case "invalid_type": {
7408
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7409
+ const receivedType = parsedType(issue2.input);
7410
+ const received = TypeDictionary[receivedType] ?? receivedType;
7411
+ if (/^[A-Z]/.test(issue2.expected)) {
7412
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
7413
+ }
7414
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
7415
+ }
7416
+ case "invalid_value":
7417
+ if (issue2.values.length === 1)
7418
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
7419
+ return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
7420
+ case "too_big": {
7421
+ const adj = issue2.inclusive ? "<=" : "<";
7422
+ const sizing = getSizing(issue2.origin);
7423
+ if (sizing)
7424
+ return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
7425
+ return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
7020
7426
  }
7021
7427
  case "too_small": {
7022
7428
  const adj = issue2.inclusive ? ">=" : ">";
@@ -7055,7 +7461,7 @@ var error17 = () => {
7055
7461
  };
7056
7462
  function hu_default() {
7057
7463
  return {
7058
- localeError: error17()
7464
+ localeError: error19()
7059
7465
  };
7060
7466
  }
7061
7467
 
@@ -7070,7 +7476,7 @@ function withDefiniteArticle(word) {
7070
7476
  const lastChar = word[word.length - 1];
7071
7477
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
7072
7478
  }
7073
- var error18 = () => {
7479
+ var error20 = () => {
7074
7480
  const Sizable = {
7075
7481
  string: {
7076
7482
  unit: {
@@ -7203,12 +7609,12 @@ var error18 = () => {
7203
7609
  };
7204
7610
  function hy_default() {
7205
7611
  return {
7206
- localeError: error18()
7612
+ localeError: error20()
7207
7613
  };
7208
7614
  }
7209
7615
 
7210
7616
  // ../../node_modules/zod/v4/locales/id.js
7211
- var error19 = () => {
7617
+ var error21 = () => {
7212
7618
  const Sizable = {
7213
7619
  string: { unit: "karakter", verb: "memiliki" },
7214
7620
  file: { unit: "byte", verb: "memiliki" },
@@ -7310,12 +7716,12 @@ var error19 = () => {
7310
7716
  };
7311
7717
  function id_default() {
7312
7718
  return {
7313
- localeError: error19()
7719
+ localeError: error21()
7314
7720
  };
7315
7721
  }
7316
7722
 
7317
7723
  // ../../node_modules/zod/v4/locales/is.js
7318
- var error20 = () => {
7724
+ var error22 = () => {
7319
7725
  const Sizable = {
7320
7726
  string: { unit: "stafi", verb: "a\xF0 hafa" },
7321
7727
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -7420,12 +7826,12 @@ var error20 = () => {
7420
7826
  };
7421
7827
  function is_default() {
7422
7828
  return {
7423
- localeError: error20()
7829
+ localeError: error22()
7424
7830
  };
7425
7831
  }
7426
7832
 
7427
7833
  // ../../node_modules/zod/v4/locales/it.js
7428
- var error21 = () => {
7834
+ var error23 = () => {
7429
7835
  const Sizable = {
7430
7836
  string: { unit: "caratteri", verb: "avere" },
7431
7837
  file: { unit: "byte", verb: "avere" },
@@ -7510,7 +7916,7 @@ var error21 = () => {
7510
7916
  return `Stringa non valida: deve includere "${_issue.includes}"`;
7511
7917
  if (_issue.format === "regex")
7512
7918
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
7513
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
7919
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
7514
7920
  }
7515
7921
  case "not_multiple_of":
7516
7922
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -7529,12 +7935,12 @@ var error21 = () => {
7529
7935
  };
7530
7936
  function it_default() {
7531
7937
  return {
7532
- localeError: error21()
7938
+ localeError: error23()
7533
7939
  };
7534
7940
  }
7535
7941
 
7536
7942
  // ../../node_modules/zod/v4/locales/ja.js
7537
- var error22 = () => {
7943
+ var error24 = () => {
7538
7944
  const Sizable = {
7539
7945
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
7540
7946
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -7637,12 +8043,12 @@ var error22 = () => {
7637
8043
  };
7638
8044
  function ja_default() {
7639
8045
  return {
7640
- localeError: error22()
8046
+ localeError: error24()
7641
8047
  };
7642
8048
  }
7643
8049
 
7644
8050
  // ../../node_modules/zod/v4/locales/ka.js
7645
- var error23 = () => {
8051
+ var error25 = () => {
7646
8052
  const Sizable = {
7647
8053
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
7648
8054
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7675,9 +8081,9 @@ var error23 = () => {
7675
8081
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
7676
8082
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7677
8083
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
7678
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7679
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
7680
- json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
8084
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
8085
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
8086
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
7681
8087
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
7682
8088
  jwt: "JWT",
7683
8089
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -7685,7 +8091,7 @@ var error23 = () => {
7685
8091
  const TypeDictionary = {
7686
8092
  nan: "NaN",
7687
8093
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
7688
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
8094
+ string: "\u10D5\u10D4\u10DA\u10D8",
7689
8095
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
7690
8096
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
7691
8097
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -7723,14 +8129,14 @@ var error23 = () => {
7723
8129
  case "invalid_format": {
7724
8130
  const _issue = issue2;
7725
8131
  if (_issue.format === "starts_with") {
7726
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
8132
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
7727
8133
  }
7728
8134
  if (_issue.format === "ends_with")
7729
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
8135
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
7730
8136
  if (_issue.format === "includes")
7731
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
8137
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
7732
8138
  if (_issue.format === "regex")
7733
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
8139
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
7734
8140
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7735
8141
  }
7736
8142
  case "not_multiple_of":
@@ -7750,12 +8156,12 @@ var error23 = () => {
7750
8156
  };
7751
8157
  function ka_default() {
7752
8158
  return {
7753
- localeError: error23()
8159
+ localeError: error25()
7754
8160
  };
7755
8161
  }
7756
8162
 
7757
8163
  // ../../node_modules/zod/v4/locales/km.js
7758
- var error24 = () => {
8164
+ var error26 = () => {
7759
8165
  const Sizable = {
7760
8166
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
7761
8167
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7861,7 +8267,7 @@ var error24 = () => {
7861
8267
  };
7862
8268
  function km_default() {
7863
8269
  return {
7864
- localeError: error24()
8270
+ localeError: error26()
7865
8271
  };
7866
8272
  }
7867
8273
 
@@ -7871,7 +8277,7 @@ function kh_default() {
7871
8277
  }
7872
8278
 
7873
8279
  // ../../node_modules/zod/v4/locales/ko.js
7874
- var error25 = () => {
8280
+ var error27 = () => {
7875
8281
  const Sizable = {
7876
8282
  string: { unit: "\uBB38\uC790", verb: "to have" },
7877
8283
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -7978,7 +8384,7 @@ var error25 = () => {
7978
8384
  };
7979
8385
  function ko_default() {
7980
8386
  return {
7981
- localeError: error25()
8387
+ localeError: error27()
7982
8388
  };
7983
8389
  }
7984
8390
 
@@ -7996,7 +8402,7 @@ function getUnitTypeFromNumber(number4) {
7996
8402
  return "one";
7997
8403
  return "few";
7998
8404
  }
7999
- var error26 = () => {
8405
+ var error28 = () => {
8000
8406
  const Sizable = {
8001
8407
  string: {
8002
8408
  unit: {
@@ -8182,12 +8588,12 @@ var error26 = () => {
8182
8588
  };
8183
8589
  function lt_default() {
8184
8590
  return {
8185
- localeError: error26()
8591
+ localeError: error28()
8186
8592
  };
8187
8593
  }
8188
8594
 
8189
8595
  // ../../node_modules/zod/v4/locales/mk.js
8190
- var error27 = () => {
8596
+ var error29 = () => {
8191
8597
  const Sizable = {
8192
8598
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
8193
8599
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -8292,12 +8698,12 @@ var error27 = () => {
8292
8698
  };
8293
8699
  function mk_default() {
8294
8700
  return {
8295
- localeError: error27()
8701
+ localeError: error29()
8296
8702
  };
8297
8703
  }
8298
8704
 
8299
8705
  // ../../node_modules/zod/v4/locales/ms.js
8300
- var error28 = () => {
8706
+ var error30 = () => {
8301
8707
  const Sizable = {
8302
8708
  string: { unit: "aksara", verb: "mempunyai" },
8303
8709
  file: { unit: "bait", verb: "mempunyai" },
@@ -8400,12 +8806,12 @@ var error28 = () => {
8400
8806
  };
8401
8807
  function ms_default() {
8402
8808
  return {
8403
- localeError: error28()
8809
+ localeError: error30()
8404
8810
  };
8405
8811
  }
8406
8812
 
8407
8813
  // ../../node_modules/zod/v4/locales/nl.js
8408
- var error29 = () => {
8814
+ var error31 = () => {
8409
8815
  const Sizable = {
8410
8816
  string: { unit: "tekens", verb: "heeft" },
8411
8817
  file: { unit: "bytes", verb: "heeft" },
@@ -8511,12 +8917,12 @@ var error29 = () => {
8511
8917
  };
8512
8918
  function nl_default() {
8513
8919
  return {
8514
- localeError: error29()
8920
+ localeError: error31()
8515
8921
  };
8516
8922
  }
8517
8923
 
8518
8924
  // ../../node_modules/zod/v4/locales/no.js
8519
- var error30 = () => {
8925
+ var error32 = () => {
8520
8926
  const Sizable = {
8521
8927
  string: { unit: "tegn", verb: "\xE5 ha" },
8522
8928
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -8620,12 +9026,12 @@ var error30 = () => {
8620
9026
  };
8621
9027
  function no_default() {
8622
9028
  return {
8623
- localeError: error30()
9029
+ localeError: error32()
8624
9030
  };
8625
9031
  }
8626
9032
 
8627
9033
  // ../../node_modules/zod/v4/locales/ota.js
8628
- var error31 = () => {
9034
+ var error33 = () => {
8629
9035
  const Sizable = {
8630
9036
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
8631
9037
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -8730,12 +9136,12 @@ var error31 = () => {
8730
9136
  };
8731
9137
  function ota_default() {
8732
9138
  return {
8733
- localeError: error31()
9139
+ localeError: error33()
8734
9140
  };
8735
9141
  }
8736
9142
 
8737
9143
  // ../../node_modules/zod/v4/locales/ps.js
8738
- var error32 = () => {
9144
+ var error34 = () => {
8739
9145
  const Sizable = {
8740
9146
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
8741
9147
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -8845,12 +9251,12 @@ var error32 = () => {
8845
9251
  };
8846
9252
  function ps_default() {
8847
9253
  return {
8848
- localeError: error32()
9254
+ localeError: error34()
8849
9255
  };
8850
9256
  }
8851
9257
 
8852
9258
  // ../../node_modules/zod/v4/locales/pl.js
8853
- var error33 = () => {
9259
+ var error35 = () => {
8854
9260
  const Sizable = {
8855
9261
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
8856
9262
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -8955,12 +9361,12 @@ var error33 = () => {
8955
9361
  };
8956
9362
  function pl_default() {
8957
9363
  return {
8958
- localeError: error33()
9364
+ localeError: error35()
8959
9365
  };
8960
9366
  }
8961
9367
 
8962
9368
  // ../../node_modules/zod/v4/locales/pt.js
8963
- var error34 = () => {
9369
+ var error36 = () => {
8964
9370
  const Sizable = {
8965
9371
  string: { unit: "caracteres", verb: "ter" },
8966
9372
  file: { unit: "bytes", verb: "ter" },
@@ -9064,7 +9470,127 @@ var error34 = () => {
9064
9470
  };
9065
9471
  function pt_default() {
9066
9472
  return {
9067
- localeError: error34()
9473
+ localeError: error36()
9474
+ };
9475
+ }
9476
+
9477
+ // ../../node_modules/zod/v4/locales/ro.js
9478
+ var error37 = () => {
9479
+ const Sizable = {
9480
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
9481
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
9482
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
9483
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
9484
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
9485
+ };
9486
+ function getSizing(origin) {
9487
+ return Sizable[origin] ?? null;
9488
+ }
9489
+ const FormatDictionary = {
9490
+ regex: "intrare",
9491
+ email: "adres\u0103 de email",
9492
+ url: "URL",
9493
+ emoji: "emoji",
9494
+ uuid: "UUID",
9495
+ uuidv4: "UUIDv4",
9496
+ uuidv6: "UUIDv6",
9497
+ nanoid: "nanoid",
9498
+ guid: "GUID",
9499
+ cuid: "cuid",
9500
+ cuid2: "cuid2",
9501
+ ulid: "ULID",
9502
+ xid: "XID",
9503
+ ksuid: "KSUID",
9504
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
9505
+ date: "dat\u0103 ISO",
9506
+ time: "or\u0103 ISO",
9507
+ duration: "durat\u0103 ISO",
9508
+ ipv4: "adres\u0103 IPv4",
9509
+ ipv6: "adres\u0103 IPv6",
9510
+ mac: "adres\u0103 MAC",
9511
+ cidrv4: "interval IPv4",
9512
+ cidrv6: "interval IPv6",
9513
+ base64: "\u0219ir codat base64",
9514
+ base64url: "\u0219ir codat base64url",
9515
+ json_string: "\u0219ir JSON",
9516
+ e164: "num\u0103r E.164",
9517
+ jwt: "JWT",
9518
+ template_literal: "intrare"
9519
+ };
9520
+ const TypeDictionary = {
9521
+ nan: "NaN",
9522
+ string: "\u0219ir",
9523
+ number: "num\u0103r",
9524
+ boolean: "boolean",
9525
+ function: "func\u021Bie",
9526
+ array: "matrice",
9527
+ object: "obiect",
9528
+ undefined: "nedefinit",
9529
+ symbol: "simbol",
9530
+ bigint: "num\u0103r mare",
9531
+ void: "void",
9532
+ never: "never",
9533
+ map: "hart\u0103",
9534
+ set: "set"
9535
+ };
9536
+ return (issue2) => {
9537
+ switch (issue2.code) {
9538
+ case "invalid_type": {
9539
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9540
+ const receivedType = parsedType(issue2.input);
9541
+ const received = TypeDictionary[receivedType] ?? receivedType;
9542
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
9543
+ }
9544
+ case "invalid_value":
9545
+ if (issue2.values.length === 1)
9546
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
9547
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
9548
+ case "too_big": {
9549
+ const adj = issue2.inclusive ? "<=" : "<";
9550
+ const sizing = getSizing(issue2.origin);
9551
+ if (sizing)
9552
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
9553
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
9554
+ }
9555
+ case "too_small": {
9556
+ const adj = issue2.inclusive ? ">=" : ">";
9557
+ const sizing = getSizing(issue2.origin);
9558
+ if (sizing) {
9559
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
9560
+ }
9561
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
9562
+ }
9563
+ case "invalid_format": {
9564
+ const _issue = issue2;
9565
+ if (_issue.format === "starts_with") {
9566
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
9567
+ }
9568
+ if (_issue.format === "ends_with")
9569
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
9570
+ if (_issue.format === "includes")
9571
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
9572
+ if (_issue.format === "regex")
9573
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
9574
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
9575
+ }
9576
+ case "not_multiple_of":
9577
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
9578
+ case "unrecognized_keys":
9579
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
9580
+ case "invalid_key":
9581
+ return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
9582
+ case "invalid_union":
9583
+ return "Intrare invalid\u0103";
9584
+ case "invalid_element":
9585
+ return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
9586
+ default:
9587
+ return `Intrare invalid\u0103`;
9588
+ }
9589
+ };
9590
+ };
9591
+ function ro_default() {
9592
+ return {
9593
+ localeError: error37()
9068
9594
  };
9069
9595
  }
9070
9596
 
@@ -9084,7 +9610,7 @@ function getRussianPlural(count, one, few, many) {
9084
9610
  }
9085
9611
  return many;
9086
9612
  }
9087
- var error35 = () => {
9613
+ var error38 = () => {
9088
9614
  const Sizable = {
9089
9615
  string: {
9090
9616
  unit: {
@@ -9221,12 +9747,12 @@ var error35 = () => {
9221
9747
  };
9222
9748
  function ru_default() {
9223
9749
  return {
9224
- localeError: error35()
9750
+ localeError: error38()
9225
9751
  };
9226
9752
  }
9227
9753
 
9228
9754
  // ../../node_modules/zod/v4/locales/sl.js
9229
- var error36 = () => {
9755
+ var error39 = () => {
9230
9756
  const Sizable = {
9231
9757
  string: { unit: "znakov", verb: "imeti" },
9232
9758
  file: { unit: "bajtov", verb: "imeti" },
@@ -9331,12 +9857,12 @@ var error36 = () => {
9331
9857
  };
9332
9858
  function sl_default() {
9333
9859
  return {
9334
- localeError: error36()
9860
+ localeError: error39()
9335
9861
  };
9336
9862
  }
9337
9863
 
9338
9864
  // ../../node_modules/zod/v4/locales/sv.js
9339
- var error37 = () => {
9865
+ var error40 = () => {
9340
9866
  const Sizable = {
9341
9867
  string: { unit: "tecken", verb: "att ha" },
9342
9868
  file: { unit: "bytes", verb: "att ha" },
@@ -9442,12 +9968,12 @@ var error37 = () => {
9442
9968
  };
9443
9969
  function sv_default() {
9444
9970
  return {
9445
- localeError: error37()
9971
+ localeError: error40()
9446
9972
  };
9447
9973
  }
9448
9974
 
9449
9975
  // ../../node_modules/zod/v4/locales/ta.js
9450
- var error38 = () => {
9976
+ var error41 = () => {
9451
9977
  const Sizable = {
9452
9978
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
9453
9979
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -9553,12 +10079,12 @@ var error38 = () => {
9553
10079
  };
9554
10080
  function ta_default() {
9555
10081
  return {
9556
- localeError: error38()
10082
+ localeError: error41()
9557
10083
  };
9558
10084
  }
9559
10085
 
9560
10086
  // ../../node_modules/zod/v4/locales/th.js
9561
- var error39 = () => {
10087
+ var error42 = () => {
9562
10088
  const Sizable = {
9563
10089
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
9564
10090
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9664,12 +10190,12 @@ var error39 = () => {
9664
10190
  };
9665
10191
  function th_default() {
9666
10192
  return {
9667
- localeError: error39()
10193
+ localeError: error42()
9668
10194
  };
9669
10195
  }
9670
10196
 
9671
10197
  // ../../node_modules/zod/v4/locales/tr.js
9672
- var error40 = () => {
10198
+ var error43 = () => {
9673
10199
  const Sizable = {
9674
10200
  string: { unit: "karakter", verb: "olmal\u0131" },
9675
10201
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -9770,12 +10296,12 @@ var error40 = () => {
9770
10296
  };
9771
10297
  function tr_default() {
9772
10298
  return {
9773
- localeError: error40()
10299
+ localeError: error43()
9774
10300
  };
9775
10301
  }
9776
10302
 
9777
10303
  // ../../node_modules/zod/v4/locales/uk.js
9778
- var error41 = () => {
10304
+ var error44 = () => {
9779
10305
  const Sizable = {
9780
10306
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9781
10307
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9879,7 +10405,7 @@ var error41 = () => {
9879
10405
  };
9880
10406
  function uk_default() {
9881
10407
  return {
9882
- localeError: error41()
10408
+ localeError: error44()
9883
10409
  };
9884
10410
  }
9885
10411
 
@@ -9889,7 +10415,7 @@ function ua_default() {
9889
10415
  }
9890
10416
 
9891
10417
  // ../../node_modules/zod/v4/locales/ur.js
9892
- var error42 = () => {
10418
+ var error45 = () => {
9893
10419
  const Sizable = {
9894
10420
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
9895
10421
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9995,17 +10521,18 @@ var error42 = () => {
9995
10521
  };
9996
10522
  function ur_default() {
9997
10523
  return {
9998
- localeError: error42()
10524
+ localeError: error45()
9999
10525
  };
10000
10526
  }
10001
10527
 
10002
10528
  // ../../node_modules/zod/v4/locales/uz.js
10003
- var error43 = () => {
10529
+ var error46 = () => {
10004
10530
  const Sizable = {
10005
10531
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
10006
10532
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
10007
10533
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
10008
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
10534
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
10535
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
10009
10536
  };
10010
10537
  function getSizing(origin) {
10011
10538
  return Sizable[origin] ?? null;
@@ -10105,12 +10632,12 @@ var error43 = () => {
10105
10632
  };
10106
10633
  function uz_default() {
10107
10634
  return {
10108
- localeError: error43()
10635
+ localeError: error46()
10109
10636
  };
10110
10637
  }
10111
10638
 
10112
10639
  // ../../node_modules/zod/v4/locales/vi.js
10113
- var error44 = () => {
10640
+ var error47 = () => {
10114
10641
  const Sizable = {
10115
10642
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
10116
10643
  file: { unit: "byte", verb: "c\xF3" },
@@ -10214,12 +10741,12 @@ var error44 = () => {
10214
10741
  };
10215
10742
  function vi_default() {
10216
10743
  return {
10217
- localeError: error44()
10744
+ localeError: error47()
10218
10745
  };
10219
10746
  }
10220
10747
 
10221
10748
  // ../../node_modules/zod/v4/locales/zh-CN.js
10222
- var error45 = () => {
10749
+ var error48 = () => {
10223
10750
  const Sizable = {
10224
10751
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
10225
10752
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -10324,12 +10851,12 @@ var error45 = () => {
10324
10851
  };
10325
10852
  function zh_CN_default() {
10326
10853
  return {
10327
- localeError: error45()
10854
+ localeError: error48()
10328
10855
  };
10329
10856
  }
10330
10857
 
10331
10858
  // ../../node_modules/zod/v4/locales/zh-TW.js
10332
- var error46 = () => {
10859
+ var error49 = () => {
10333
10860
  const Sizable = {
10334
10861
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
10335
10862
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -10432,12 +10959,12 @@ var error46 = () => {
10432
10959
  };
10433
10960
  function zh_TW_default() {
10434
10961
  return {
10435
- localeError: error46()
10962
+ localeError: error49()
10436
10963
  };
10437
10964
  }
10438
10965
 
10439
10966
  // ../../node_modules/zod/v4/locales/yo.js
10440
- var error47 = () => {
10967
+ var error50 = () => {
10441
10968
  const Sizable = {
10442
10969
  string: { unit: "\xE0mi", verb: "n\xED" },
10443
10970
  file: { unit: "bytes", verb: "n\xED" },
@@ -10540,12 +11067,12 @@ var error47 = () => {
10540
11067
  };
10541
11068
  function yo_default() {
10542
11069
  return {
10543
- localeError: error47()
11070
+ localeError: error50()
10544
11071
  };
10545
11072
  }
10546
11073
 
10547
11074
  // ../../node_modules/zod/v4/core/registries.js
10548
- var _a;
11075
+ var _a2;
10549
11076
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
10550
11077
  var $input = /* @__PURE__ */ Symbol("ZodInput");
10551
11078
  var $ZodRegistry = class {
@@ -10591,7 +11118,7 @@ var $ZodRegistry = class {
10591
11118
  function registry() {
10592
11119
  return new $ZodRegistry();
10593
11120
  }
10594
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
11121
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
10595
11122
  var globalRegistry = globalThis.__zod_globalRegistry;
10596
11123
 
10597
11124
  // ../../node_modules/zod/v4/core/api.js
@@ -11509,7 +12036,7 @@ function _refine(Class2, fn, _params) {
11509
12036
  return schema;
11510
12037
  }
11511
12038
  // @__NO_SIDE_EFFECTS__
11512
- function _superRefine(fn) {
12039
+ function _superRefine(fn, params) {
11513
12040
  const ch = /* @__PURE__ */ _check((payload) => {
11514
12041
  payload.addIssue = (issue2) => {
11515
12042
  if (typeof issue2 === "string") {
@@ -11526,7 +12053,7 @@ function _superRefine(fn) {
11526
12053
  }
11527
12054
  };
11528
12055
  return fn(payload.value, payload);
11529
- });
12056
+ }, params);
11530
12057
  return ch;
11531
12058
  }
11532
12059
  // @__NO_SIDE_EFFECTS__
@@ -11656,7 +12183,7 @@ function initializeContext(params) {
11656
12183
  };
11657
12184
  }
11658
12185
  function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
11659
- var _a2;
12186
+ var _a3;
11660
12187
  const def = schema._zod.def;
11661
12188
  const seen = ctx.seen.get(schema);
11662
12189
  if (seen) {
@@ -11703,8 +12230,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
11703
12230
  delete result.schema.examples;
11704
12231
  delete result.schema.default;
11705
12232
  }
11706
- if (ctx.io === "input" && result.schema._prefault)
11707
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
12233
+ if (ctx.io === "input" && "_prefault" in result.schema)
12234
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
11708
12235
  delete result.schema._prefault;
11709
12236
  const _result = ctx.seen.get(schema);
11710
12237
  return _result.schema;
@@ -11885,10 +12412,15 @@ function finalize(ctx, schema) {
11885
12412
  result.$id = ctx.external.uri(id);
11886
12413
  }
11887
12414
  Object.assign(result, root.def ?? root.schema);
12415
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
12416
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
12417
+ delete result.id;
11888
12418
  const defs = ctx.external?.defs ?? {};
11889
12419
  for (const entry of ctx.seen.entries()) {
11890
12420
  const seen = entry[1];
11891
12421
  if (seen.def && seen.defId) {
12422
+ if (seen.def.id === seen.defId)
12423
+ delete seen.def.id;
11892
12424
  defs[seen.defId] = seen.def;
11893
12425
  }
11894
12426
  }
@@ -11944,6 +12476,8 @@ function isTransforming(_schema, _ctx) {
11944
12476
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
11945
12477
  }
11946
12478
  if (def.type === "pipe") {
12479
+ if (_schema._zod.traits.has("$ZodCodec"))
12480
+ return true;
11947
12481
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
11948
12482
  }
11949
12483
  if (def.type === "object") {
@@ -12033,39 +12567,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
12033
12567
  json2.type = "integer";
12034
12568
  else
12035
12569
  json2.type = "number";
12036
- if (typeof exclusiveMinimum === "number") {
12037
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
12570
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
12571
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
12572
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
12573
+ if (exMin) {
12574
+ if (legacy) {
12038
12575
  json2.minimum = exclusiveMinimum;
12039
12576
  json2.exclusiveMinimum = true;
12040
12577
  } else {
12041
12578
  json2.exclusiveMinimum = exclusiveMinimum;
12042
12579
  }
12043
- }
12044
- if (typeof minimum === "number") {
12580
+ } else if (typeof minimum === "number") {
12045
12581
  json2.minimum = minimum;
12046
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
12047
- if (exclusiveMinimum >= minimum)
12048
- delete json2.minimum;
12049
- else
12050
- delete json2.exclusiveMinimum;
12051
- }
12052
12582
  }
12053
- if (typeof exclusiveMaximum === "number") {
12054
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
12583
+ if (exMax) {
12584
+ if (legacy) {
12055
12585
  json2.maximum = exclusiveMaximum;
12056
12586
  json2.exclusiveMaximum = true;
12057
12587
  } else {
12058
12588
  json2.exclusiveMaximum = exclusiveMaximum;
12059
12589
  }
12060
- }
12061
- if (typeof maximum === "number") {
12590
+ } else if (typeof maximum === "number") {
12062
12591
  json2.maximum = maximum;
12063
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
12064
- if (exclusiveMaximum <= maximum)
12065
- delete json2.maximum;
12066
- else
12067
- delete json2.exclusiveMaximum;
12068
- }
12069
12592
  }
12070
12593
  if (typeof multipleOf === "number")
12071
12594
  json2.multipleOf = multipleOf;
@@ -12237,7 +12760,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
12237
12760
  if (typeof maximum === "number")
12238
12761
  json2.maxItems = maximum;
12239
12762
  json2.type = "array";
12240
- json2.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
12763
+ json2.items = process(def.element, ctx, {
12764
+ ...params,
12765
+ path: [...params.path, "items"]
12766
+ });
12241
12767
  };
12242
12768
  var objectProcessor = (schema, ctx, _json, params) => {
12243
12769
  const json2 = _json;
@@ -12430,7 +12956,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
12430
12956
  };
12431
12957
  var pipeProcessor = (schema, ctx, _json, params) => {
12432
12958
  const def = schema._zod.def;
12433
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
12959
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
12960
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
12434
12961
  process(innerType, ctx, params);
12435
12962
  const seen = ctx.seen.get(schema);
12436
12963
  seen.ref = innerType;
@@ -12664,6 +13191,7 @@ __export(schemas_exports2, {
12664
13191
  ZodOptional: () => ZodOptional,
12665
13192
  ZodPipe: () => ZodPipe,
12666
13193
  ZodPrefault: () => ZodPrefault,
13194
+ ZodPreprocess: () => ZodPreprocess,
12667
13195
  ZodPromise: () => ZodPromise,
12668
13196
  ZodReadonly: () => ZodReadonly,
12669
13197
  ZodRecord: () => ZodRecord,
@@ -12724,6 +13252,7 @@ __export(schemas_exports2, {
12724
13252
  int32: () => int32,
12725
13253
  int64: () => int64,
12726
13254
  intersection: () => intersection,
13255
+ invertCodec: () => invertCodec,
12727
13256
  ipv4: () => ipv42,
12728
13257
  ipv6: () => ipv62,
12729
13258
  json: () => json,
@@ -12893,8 +13422,8 @@ var initializer2 = (inst, issues) => {
12893
13422
  }
12894
13423
  });
12895
13424
  };
12896
- var ZodError = $constructor("ZodError", initializer2);
12897
- var ZodRealError = $constructor("ZodError", initializer2, {
13425
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
13426
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
12898
13427
  Parent: Error
12899
13428
  });
12900
13429
 
@@ -12913,6 +13442,43 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12913
13442
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12914
13443
 
12915
13444
  // ../../node_modules/zod/v4/classic/schemas.js
13445
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
13446
+ function _installLazyMethods(inst, group, methods) {
13447
+ const proto = Object.getPrototypeOf(inst);
13448
+ let installed = _installedGroups.get(proto);
13449
+ if (!installed) {
13450
+ installed = /* @__PURE__ */ new Set();
13451
+ _installedGroups.set(proto, installed);
13452
+ }
13453
+ if (installed.has(group))
13454
+ return;
13455
+ installed.add(group);
13456
+ for (const key in methods) {
13457
+ const fn = methods[key];
13458
+ Object.defineProperty(proto, key, {
13459
+ configurable: true,
13460
+ enumerable: false,
13461
+ get() {
13462
+ const bound = fn.bind(this);
13463
+ Object.defineProperty(this, key, {
13464
+ configurable: true,
13465
+ writable: true,
13466
+ enumerable: true,
13467
+ value: bound
13468
+ });
13469
+ return bound;
13470
+ },
13471
+ set(v) {
13472
+ Object.defineProperty(this, key, {
13473
+ configurable: true,
13474
+ writable: true,
13475
+ enumerable: true,
13476
+ value: v
13477
+ });
13478
+ }
13479
+ });
13480
+ }
13481
+ }
12916
13482
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12917
13483
  $ZodType.init(inst, def);
12918
13484
  Object.assign(inst["~standard"], {
@@ -12925,23 +13491,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12925
13491
  inst.def = def;
12926
13492
  inst.type = def.type;
12927
13493
  Object.defineProperty(inst, "_def", { value: def });
12928
- inst.check = (...checks) => {
12929
- return inst.clone(util_exports.mergeDefs(def, {
12930
- checks: [
12931
- ...def.checks ?? [],
12932
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12933
- ]
12934
- }), {
12935
- parent: true
12936
- });
12937
- };
12938
- inst.with = inst.check;
12939
- inst.clone = (def2, params) => clone(inst, def2, params);
12940
- inst.brand = () => inst;
12941
- inst.register = ((reg, meta3) => {
12942
- reg.add(inst, meta3);
12943
- return inst;
12944
- });
12945
13494
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
12946
13495
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
12947
13496
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -12955,45 +13504,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12955
13504
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
12956
13505
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
12957
13506
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
12958
- inst.refine = (check2, params) => inst.check(refine(check2, params));
12959
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
12960
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
12961
- inst.optional = () => optional(inst);
12962
- inst.exactOptional = () => exactOptional(inst);
12963
- inst.nullable = () => nullable(inst);
12964
- inst.nullish = () => optional(nullable(inst));
12965
- inst.nonoptional = (params) => nonoptional(inst, params);
12966
- inst.array = () => array(inst);
12967
- inst.or = (arg) => union([inst, arg]);
12968
- inst.and = (arg) => intersection(inst, arg);
12969
- inst.transform = (tx) => pipe(inst, transform(tx));
12970
- inst.default = (def2) => _default2(inst, def2);
12971
- inst.prefault = (def2) => prefault(inst, def2);
12972
- inst.catch = (params) => _catch2(inst, params);
12973
- inst.pipe = (target) => pipe(inst, target);
12974
- inst.readonly = () => readonly(inst);
12975
- inst.describe = (description) => {
12976
- const cl = inst.clone();
12977
- globalRegistry.add(cl, { description });
12978
- return cl;
12979
- };
13507
+ _installLazyMethods(inst, "ZodType", {
13508
+ check(...chks) {
13509
+ const def2 = this.def;
13510
+ return this.clone(util_exports.mergeDefs(def2, {
13511
+ checks: [
13512
+ ...def2.checks ?? [],
13513
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
13514
+ ]
13515
+ }), { parent: true });
13516
+ },
13517
+ with(...chks) {
13518
+ return this.check(...chks);
13519
+ },
13520
+ clone(def2, params) {
13521
+ return clone(this, def2, params);
13522
+ },
13523
+ brand() {
13524
+ return this;
13525
+ },
13526
+ register(reg, meta3) {
13527
+ reg.add(this, meta3);
13528
+ return this;
13529
+ },
13530
+ refine(check2, params) {
13531
+ return this.check(refine(check2, params));
13532
+ },
13533
+ superRefine(refinement, params) {
13534
+ return this.check(superRefine(refinement, params));
13535
+ },
13536
+ overwrite(fn) {
13537
+ return this.check(_overwrite(fn));
13538
+ },
13539
+ optional() {
13540
+ return optional(this);
13541
+ },
13542
+ exactOptional() {
13543
+ return exactOptional(this);
13544
+ },
13545
+ nullable() {
13546
+ return nullable(this);
13547
+ },
13548
+ nullish() {
13549
+ return optional(nullable(this));
13550
+ },
13551
+ nonoptional(params) {
13552
+ return nonoptional(this, params);
13553
+ },
13554
+ array() {
13555
+ return array(this);
13556
+ },
13557
+ or(arg) {
13558
+ return union([this, arg]);
13559
+ },
13560
+ and(arg) {
13561
+ return intersection(this, arg);
13562
+ },
13563
+ transform(tx) {
13564
+ return pipe(this, transform(tx));
13565
+ },
13566
+ default(d) {
13567
+ return _default2(this, d);
13568
+ },
13569
+ prefault(d) {
13570
+ return prefault(this, d);
13571
+ },
13572
+ catch(params) {
13573
+ return _catch2(this, params);
13574
+ },
13575
+ pipe(target) {
13576
+ return pipe(this, target);
13577
+ },
13578
+ readonly() {
13579
+ return readonly(this);
13580
+ },
13581
+ describe(description) {
13582
+ const cl = this.clone();
13583
+ globalRegistry.add(cl, { description });
13584
+ return cl;
13585
+ },
13586
+ meta(...args) {
13587
+ if (args.length === 0)
13588
+ return globalRegistry.get(this);
13589
+ const cl = this.clone();
13590
+ globalRegistry.add(cl, args[0]);
13591
+ return cl;
13592
+ },
13593
+ isOptional() {
13594
+ return this.safeParse(void 0).success;
13595
+ },
13596
+ isNullable() {
13597
+ return this.safeParse(null).success;
13598
+ },
13599
+ apply(fn) {
13600
+ return fn(this);
13601
+ }
13602
+ });
12980
13603
  Object.defineProperty(inst, "description", {
12981
13604
  get() {
12982
13605
  return globalRegistry.get(inst)?.description;
12983
13606
  },
12984
13607
  configurable: true
12985
13608
  });
12986
- inst.meta = (...args) => {
12987
- if (args.length === 0) {
12988
- return globalRegistry.get(inst);
12989
- }
12990
- const cl = inst.clone();
12991
- globalRegistry.add(cl, args[0]);
12992
- return cl;
12993
- };
12994
- inst.isOptional = () => inst.safeParse(void 0).success;
12995
- inst.isNullable = () => inst.safeParse(null).success;
12996
- inst.apply = (fn) => fn(inst);
12997
13609
  return inst;
12998
13610
  });
12999
13611
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -13004,21 +13616,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
13004
13616
  inst.format = bag.format ?? null;
13005
13617
  inst.minLength = bag.minimum ?? null;
13006
13618
  inst.maxLength = bag.maximum ?? null;
13007
- inst.regex = (...args) => inst.check(_regex(...args));
13008
- inst.includes = (...args) => inst.check(_includes(...args));
13009
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
13010
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
13011
- inst.min = (...args) => inst.check(_minLength(...args));
13012
- inst.max = (...args) => inst.check(_maxLength(...args));
13013
- inst.length = (...args) => inst.check(_length(...args));
13014
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
13015
- inst.lowercase = (params) => inst.check(_lowercase(params));
13016
- inst.uppercase = (params) => inst.check(_uppercase(params));
13017
- inst.trim = () => inst.check(_trim());
13018
- inst.normalize = (...args) => inst.check(_normalize(...args));
13019
- inst.toLowerCase = () => inst.check(_toLowerCase());
13020
- inst.toUpperCase = () => inst.check(_toUpperCase());
13021
- inst.slugify = () => inst.check(_slugify());
13619
+ _installLazyMethods(inst, "_ZodString", {
13620
+ regex(...args) {
13621
+ return this.check(_regex(...args));
13622
+ },
13623
+ includes(...args) {
13624
+ return this.check(_includes(...args));
13625
+ },
13626
+ startsWith(...args) {
13627
+ return this.check(_startsWith(...args));
13628
+ },
13629
+ endsWith(...args) {
13630
+ return this.check(_endsWith(...args));
13631
+ },
13632
+ min(...args) {
13633
+ return this.check(_minLength(...args));
13634
+ },
13635
+ max(...args) {
13636
+ return this.check(_maxLength(...args));
13637
+ },
13638
+ length(...args) {
13639
+ return this.check(_length(...args));
13640
+ },
13641
+ nonempty(...args) {
13642
+ return this.check(_minLength(1, ...args));
13643
+ },
13644
+ lowercase(params) {
13645
+ return this.check(_lowercase(params));
13646
+ },
13647
+ uppercase(params) {
13648
+ return this.check(_uppercase(params));
13649
+ },
13650
+ trim() {
13651
+ return this.check(_trim());
13652
+ },
13653
+ normalize(...args) {
13654
+ return this.check(_normalize(...args));
13655
+ },
13656
+ toLowerCase() {
13657
+ return this.check(_toLowerCase());
13658
+ },
13659
+ toUpperCase() {
13660
+ return this.check(_toUpperCase());
13661
+ },
13662
+ slugify() {
13663
+ return this.check(_slugify());
13664
+ }
13665
+ });
13022
13666
  });
13023
13667
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
13024
13668
  $ZodString.init(inst, def);
@@ -13097,7 +13741,7 @@ function url(params) {
13097
13741
  }
13098
13742
  function httpUrl(params) {
13099
13743
  return _url(ZodURL, {
13100
- protocol: /^https?$/,
13744
+ protocol: regexes_exports.httpProtocol,
13101
13745
  hostname: regexes_exports.domain,
13102
13746
  ...util_exports.normalizeParams(params)
13103
13747
  });
@@ -13239,21 +13883,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
13239
13883
  $ZodNumber.init(inst, def);
13240
13884
  ZodType.init(inst, def);
13241
13885
  inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
13242
- inst.gt = (value, params) => inst.check(_gt(value, params));
13243
- inst.gte = (value, params) => inst.check(_gte(value, params));
13244
- inst.min = (value, params) => inst.check(_gte(value, params));
13245
- inst.lt = (value, params) => inst.check(_lt(value, params));
13246
- inst.lte = (value, params) => inst.check(_lte(value, params));
13247
- inst.max = (value, params) => inst.check(_lte(value, params));
13248
- inst.int = (params) => inst.check(int(params));
13249
- inst.safe = (params) => inst.check(int(params));
13250
- inst.positive = (params) => inst.check(_gt(0, params));
13251
- inst.nonnegative = (params) => inst.check(_gte(0, params));
13252
- inst.negative = (params) => inst.check(_lt(0, params));
13253
- inst.nonpositive = (params) => inst.check(_lte(0, params));
13254
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
13255
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
13256
- inst.finite = () => inst;
13886
+ _installLazyMethods(inst, "ZodNumber", {
13887
+ gt(value, params) {
13888
+ return this.check(_gt(value, params));
13889
+ },
13890
+ gte(value, params) {
13891
+ return this.check(_gte(value, params));
13892
+ },
13893
+ min(value, params) {
13894
+ return this.check(_gte(value, params));
13895
+ },
13896
+ lt(value, params) {
13897
+ return this.check(_lt(value, params));
13898
+ },
13899
+ lte(value, params) {
13900
+ return this.check(_lte(value, params));
13901
+ },
13902
+ max(value, params) {
13903
+ return this.check(_lte(value, params));
13904
+ },
13905
+ int(params) {
13906
+ return this.check(int(params));
13907
+ },
13908
+ safe(params) {
13909
+ return this.check(int(params));
13910
+ },
13911
+ positive(params) {
13912
+ return this.check(_gt(0, params));
13913
+ },
13914
+ nonnegative(params) {
13915
+ return this.check(_gte(0, params));
13916
+ },
13917
+ negative(params) {
13918
+ return this.check(_lt(0, params));
13919
+ },
13920
+ nonpositive(params) {
13921
+ return this.check(_lte(0, params));
13922
+ },
13923
+ multipleOf(value, params) {
13924
+ return this.check(_multipleOf(value, params));
13925
+ },
13926
+ step(value, params) {
13927
+ return this.check(_multipleOf(value, params));
13928
+ },
13929
+ finite() {
13930
+ return this;
13931
+ }
13932
+ });
13257
13933
  const bag = inst._zod.bag;
13258
13934
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
13259
13935
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -13400,11 +14076,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
13400
14076
  ZodType.init(inst, def);
13401
14077
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
13402
14078
  inst.element = def.element;
13403
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
13404
- inst.nonempty = (params) => inst.check(_minLength(1, params));
13405
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
13406
- inst.length = (len, params) => inst.check(_length(len, params));
13407
- inst.unwrap = () => inst.element;
14079
+ _installLazyMethods(inst, "ZodArray", {
14080
+ min(n, params) {
14081
+ return this.check(_minLength(n, params));
14082
+ },
14083
+ nonempty(params) {
14084
+ return this.check(_minLength(1, params));
14085
+ },
14086
+ max(n, params) {
14087
+ return this.check(_maxLength(n, params));
14088
+ },
14089
+ length(n, params) {
14090
+ return this.check(_length(n, params));
14091
+ },
14092
+ unwrap() {
14093
+ return this.element;
14094
+ }
14095
+ });
13408
14096
  });
13409
14097
  function array(element, params) {
13410
14098
  return _array(ZodArray, element, params);
@@ -13420,23 +14108,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13420
14108
  util_exports.defineLazy(inst, "shape", () => {
13421
14109
  return def.shape;
13422
14110
  });
13423
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
13424
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
13425
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13426
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
13427
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
13428
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
13429
- inst.extend = (incoming) => {
13430
- return util_exports.extend(inst, incoming);
13431
- };
13432
- inst.safeExtend = (incoming) => {
13433
- return util_exports.safeExtend(inst, incoming);
13434
- };
13435
- inst.merge = (other) => util_exports.merge(inst, other);
13436
- inst.pick = (mask) => util_exports.pick(inst, mask);
13437
- inst.omit = (mask) => util_exports.omit(inst, mask);
13438
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
13439
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
14111
+ _installLazyMethods(inst, "ZodObject", {
14112
+ keyof() {
14113
+ return _enum2(Object.keys(this._zod.def.shape));
14114
+ },
14115
+ catchall(catchall) {
14116
+ return this.clone({ ...this._zod.def, catchall });
14117
+ },
14118
+ passthrough() {
14119
+ return this.clone({ ...this._zod.def, catchall: unknown() });
14120
+ },
14121
+ loose() {
14122
+ return this.clone({ ...this._zod.def, catchall: unknown() });
14123
+ },
14124
+ strict() {
14125
+ return this.clone({ ...this._zod.def, catchall: never() });
14126
+ },
14127
+ strip() {
14128
+ return this.clone({ ...this._zod.def, catchall: void 0 });
14129
+ },
14130
+ extend(incoming) {
14131
+ return util_exports.extend(this, incoming);
14132
+ },
14133
+ safeExtend(incoming) {
14134
+ return util_exports.safeExtend(this, incoming);
14135
+ },
14136
+ merge(other) {
14137
+ return util_exports.merge(this, other);
14138
+ },
14139
+ pick(mask) {
14140
+ return util_exports.pick(this, mask);
14141
+ },
14142
+ omit(mask) {
14143
+ return util_exports.omit(this, mask);
14144
+ },
14145
+ partial(...args) {
14146
+ return util_exports.partial(ZodOptional, this, args[0]);
14147
+ },
14148
+ required(...args) {
14149
+ return util_exports.required(ZodNonOptional, this, args[0]);
14150
+ }
14151
+ });
13440
14152
  });
13441
14153
  function object(shape, params) {
13442
14154
  const def = {
@@ -13541,6 +14253,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
13541
14253
  inst.valueType = def.valueType;
13542
14254
  });
13543
14255
  function record(keyType, valueType, params) {
14256
+ if (!valueType || !valueType._zod) {
14257
+ return new ZodRecord({
14258
+ type: "record",
14259
+ keyType: string2(),
14260
+ valueType: keyType,
14261
+ ...util_exports.normalizeParams(valueType)
14262
+ });
14263
+ }
13544
14264
  return new ZodRecord({
13545
14265
  type: "record",
13546
14266
  keyType,
@@ -13712,10 +14432,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
13712
14432
  if (output instanceof Promise) {
13713
14433
  return output.then((output2) => {
13714
14434
  payload.value = output2;
14435
+ payload.fallback = true;
13715
14436
  return payload;
13716
14437
  });
13717
14438
  }
13718
14439
  payload.value = output;
14440
+ payload.fallback = true;
13719
14441
  return payload;
13720
14442
  };
13721
14443
  });
@@ -13870,6 +14592,20 @@ function codec(in_, out, params) {
13870
14592
  reverseTransform: params.encode
13871
14593
  });
13872
14594
  }
14595
+ function invertCodec(codec2) {
14596
+ const def = codec2._zod.def;
14597
+ return new ZodCodec({
14598
+ type: "pipe",
14599
+ in: def.out,
14600
+ out: def.in,
14601
+ transform: def.reverseTransform,
14602
+ reverseTransform: def.transform
14603
+ });
14604
+ }
14605
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
14606
+ ZodPipe.init(inst, def);
14607
+ $ZodPreprocess.init(inst, def);
14608
+ });
13873
14609
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
13874
14610
  $ZodReadonly.init(inst, def);
13875
14611
  ZodType.init(inst, def);
@@ -13949,8 +14685,8 @@ function custom(fn, _params) {
13949
14685
  function refine(fn, _params = {}) {
13950
14686
  return _refine(ZodCustom, fn, _params);
13951
14687
  }
13952
- function superRefine(fn) {
13953
- return _superRefine(fn);
14688
+ function superRefine(fn, params) {
14689
+ return _superRefine(fn, params);
13954
14690
  }
13955
14691
  var describe2 = describe;
13956
14692
  var meta2 = meta;
@@ -13988,7 +14724,11 @@ function json(params) {
13988
14724
  return jsonSchema;
13989
14725
  }
13990
14726
  function preprocess(fn, schema) {
13991
- return pipe(transform(fn), schema);
14727
+ return new ZodPreprocess({
14728
+ type: "pipe",
14729
+ in: transform(fn),
14730
+ out: schema
14731
+ });
13992
14732
  }
13993
14733
 
13994
14734
  // ../../node_modules/zod/v4/classic/compat.js
@@ -14409,12 +15149,6 @@ function convertBaseSchema(schema, ctx) {
14409
15149
  default:
14410
15150
  throw new Error(`Unsupported type: ${type}`);
14411
15151
  }
14412
- if (schema.description) {
14413
- zodSchema = zodSchema.describe(schema.description);
14414
- }
14415
- if (schema.default !== void 0) {
14416
- zodSchema = zodSchema.default(schema.default);
14417
- }
14418
15152
  return zodSchema;
14419
15153
  }
14420
15154
  function convertSchema(schema, ctx) {
@@ -14451,6 +15185,9 @@ function convertSchema(schema, ctx) {
14451
15185
  if (schema.readOnly === true) {
14452
15186
  baseSchema = z.readonly(baseSchema);
14453
15187
  }
15188
+ if (schema.default !== void 0) {
15189
+ baseSchema = baseSchema.default(schema.default);
15190
+ }
14454
15191
  const extraMeta = {};
14455
15192
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
14456
15193
  for (const key of coreMetadataKeys) {
@@ -14472,23 +15209,32 @@ function convertSchema(schema, ctx) {
14472
15209
  if (Object.keys(extraMeta).length > 0) {
14473
15210
  ctx.registry.add(baseSchema, extraMeta);
14474
15211
  }
15212
+ if (schema.description) {
15213
+ baseSchema = baseSchema.describe(schema.description);
15214
+ }
14475
15215
  return baseSchema;
14476
15216
  }
14477
15217
  function fromJSONSchema(schema, params) {
14478
15218
  if (typeof schema === "boolean") {
14479
15219
  return schema ? z.any() : z.never();
14480
15220
  }
14481
- const version2 = detectVersion(schema, params?.defaultTarget);
14482
- const defs = schema.$defs || schema.definitions || {};
15221
+ let normalized;
15222
+ try {
15223
+ normalized = JSON.parse(JSON.stringify(schema));
15224
+ } catch {
15225
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
15226
+ }
15227
+ const version2 = detectVersion(normalized, params?.defaultTarget);
15228
+ const defs = normalized.$defs || normalized.definitions || {};
14483
15229
  const ctx = {
14484
15230
  version: version2,
14485
15231
  defs,
14486
15232
  refs: /* @__PURE__ */ new Map(),
14487
15233
  processing: /* @__PURE__ */ new Set(),
14488
- rootSchema: schema,
15234
+ rootSchema: normalized,
14489
15235
  registry: params?.registry ?? globalRegistry
14490
15236
  };
14491
- return convertSchema(schema, ctx);
15237
+ return convertSchema(normalized, ctx);
14492
15238
  }
14493
15239
 
14494
15240
  // ../../node_modules/zod/v4/classic/coerce.js
@@ -14730,6 +15476,9 @@ var GLASSTRACE_ATTRIBUTE_NAMES = {
14730
15476
  SIDE_EFFECT_FIELD_TIMEZONE: "glasstrace.side_effect.field.timezone",
14731
15477
  SIDE_EFFECT_FIELD_STATUS: "glasstrace.side_effect.field.status",
14732
15478
  SIDE_EFFECT_FIELD_PHASE: "glasstrace.side_effect.field.phase",
15479
+ SIDE_EFFECT_FIELD_RECIPIENT_CLASS: "glasstrace.side_effect.field.recipientClass",
15480
+ SIDE_EFFECT_FIELD_PARTICIPANT_COUNT: "glasstrace.side_effect.field.participantCount",
15481
+ SIDE_EFFECT_FIELD_ACTIVE_PARTICIPANT_COUNT: "glasstrace.side_effect.field.activeParticipantCount",
14733
15482
  // Omission reason attributes — one per allowlisted reason. The
14734
15483
  // attribute value carries an integer count; the rejected value is
14735
15484
  // never echoed.
@@ -15013,9 +15762,9 @@ function withAsyncCausality(options, fn) {
15013
15762
  fn
15014
15763
  );
15015
15764
  return value;
15016
- } catch (error48) {
15017
- recordSpanError(span, error48);
15018
- throw error48;
15765
+ } catch (error51) {
15766
+ recordSpanError(span, error51);
15767
+ throw error51;
15019
15768
  } finally {
15020
15769
  endSpanSafely(span);
15021
15770
  }
@@ -15028,8 +15777,8 @@ function isNoopSpan(span) {
15028
15777
  return false;
15029
15778
  }
15030
15779
  }
15031
- function recordSpanError(span, error48) {
15032
- const normalized = error48 instanceof Error ? error48 : typeof error48 === "string" ? error48 : new Error(String(error48));
15780
+ function recordSpanError(span, error51) {
15781
+ const normalized = error51 instanceof Error ? error51 : typeof error51 === "string" ? error51 : new Error(String(error51));
15033
15782
  const statusMessage = normalized instanceof Error ? normalized.message : normalized;
15034
15783
  try {
15035
15784
  span.recordException(normalized);