@kevisual/router 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/commander.js CHANGED
@@ -45,7 +45,7 @@ var __export = (target, all) => {
45
45
  };
46
46
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
47
 
48
- // node_modules/commander/lib/error.js
48
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/error.js
49
49
  var require_error = __commonJS((exports) => {
50
50
  class CommanderError extends Error {
51
51
  constructor(exitCode, code, message) {
@@ -69,7 +69,7 @@ var require_error = __commonJS((exports) => {
69
69
  exports.InvalidArgumentError = InvalidArgumentError;
70
70
  });
71
71
 
72
- // node_modules/commander/lib/argument.js
72
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/argument.js
73
73
  var require_argument = __commonJS((exports) => {
74
74
  var { InvalidArgumentError } = require_error();
75
75
 
@@ -149,7 +149,7 @@ var require_argument = __commonJS((exports) => {
149
149
  exports.humanReadableArgName = humanReadableArgName;
150
150
  });
151
151
 
152
- // node_modules/commander/lib/help.js
152
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/help.js
153
153
  var require_help = __commonJS((exports) => {
154
154
  var { humanReadableArgName } = require_argument();
155
155
 
@@ -506,7 +506,7 @@ ${itemIndentStr}`);
506
506
  exports.stripColor = stripColor;
507
507
  });
508
508
 
509
- // node_modules/commander/lib/option.js
509
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/option.js
510
510
  var require_option = __commonJS((exports) => {
511
511
  var { InvalidArgumentError } = require_error();
512
512
 
@@ -690,7 +690,7 @@ var require_option = __commonJS((exports) => {
690
690
  exports.DualOptions = DualOptions;
691
691
  });
692
692
 
693
- // node_modules/commander/lib/suggestSimilar.js
693
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/suggestSimilar.js
694
694
  var require_suggestSimilar = __commonJS((exports) => {
695
695
  var maxDistance = 3;
696
696
  function editDistance(a, b) {
@@ -763,7 +763,7 @@ var require_suggestSimilar = __commonJS((exports) => {
763
763
  exports.suggestSimilar = suggestSimilar;
764
764
  });
765
765
 
766
- // node_modules/commander/lib/command.js
766
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/command.js
767
767
  var require_command = __commonJS((exports) => {
768
768
  var EventEmitter = __require("node:events").EventEmitter;
769
769
  var childProcess = __require("node:child_process");
@@ -2118,7 +2118,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2118
2118
  exports.useColor = useColor;
2119
2119
  });
2120
2120
 
2121
- // node_modules/commander/index.js
2121
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/index.js
2122
2122
  var require_commander = __commonJS((exports) => {
2123
2123
  var { Argument } = require_argument();
2124
2124
  var { Command } = require_command();
@@ -2138,7 +2138,7 @@ var require_commander = __commonJS((exports) => {
2138
2138
  exports.InvalidOptionArgumentError = InvalidArgumentError;
2139
2139
  });
2140
2140
 
2141
- // node_modules/commander/esm.mjs
2141
+ // node_modules/.pnpm/commander@14.0.3/node_modules/commander/esm.mjs
2142
2142
  var import__ = __toESM(require_commander(), 1);
2143
2143
  var {
2144
2144
  program,
@@ -2154,7 +2154,7 @@ var {
2154
2154
  Help
2155
2155
  } = import__.default;
2156
2156
 
2157
- // node_modules/@kevisual/remote-app/dist/app.js
2157
+ // node_modules/.pnpm/@kevisual+remote-app@0.0.7/node_modules/@kevisual/remote-app/dist/app.js
2158
2158
  var __create2 = Object.create;
2159
2159
  var __getProtoOf2 = Object.getPrototypeOf;
2160
2160
  var __defProp2 = Object.defineProperty;
@@ -2638,7 +2638,7 @@ class RemoteApp {
2638
2638
  }
2639
2639
  }
2640
2640
 
2641
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
2641
+ // node_modules/zod/v4/classic/external.js
2642
2642
  var exports_external = {};
2643
2643
  __export(exports_external, {
2644
2644
  xor: () => xor,
@@ -2740,6 +2740,7 @@ __export(exports_external, {
2740
2740
  iso: () => exports_iso,
2741
2741
  ipv6: () => ipv62,
2742
2742
  ipv4: () => ipv42,
2743
+ invertCodec: () => invertCodec,
2743
2744
  intersection: () => intersection,
2744
2745
  int64: () => int64,
2745
2746
  int32: () => int32,
@@ -2879,7 +2880,7 @@ __export(exports_external, {
2879
2880
  $brand: () => $brand
2880
2881
  });
2881
2882
 
2882
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
2883
+ // node_modules/zod/v4/core/index.js
2883
2884
  var exports_core2 = {};
2884
2885
  __export(exports_core2, {
2885
2886
  version: () => version,
@@ -3157,8 +3158,9 @@ __export(exports_core2, {
3157
3158
  $ZodAny: () => $ZodAny
3158
3159
  });
3159
3160
 
3160
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
3161
- var NEVER = Object.freeze({
3161
+ // node_modules/zod/v4/core/core.js
3162
+ var _a;
3163
+ var NEVER = /* @__PURE__ */ Object.freeze({
3162
3164
  status: "aborted"
3163
3165
  });
3164
3166
  function $constructor(name, initializer, params) {
@@ -3193,10 +3195,10 @@ function $constructor(name, initializer, params) {
3193
3195
  }
3194
3196
  Object.defineProperty(Definition, "name", { value: name });
3195
3197
  function _(def) {
3196
- var _a;
3198
+ var _a2;
3197
3199
  const inst = params?.Parent ? new Definition : this;
3198
3200
  init(inst, def);
3199
- (_a = inst._zod).deferred ?? (_a.deferred = []);
3201
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
3200
3202
  for (const fn of inst._zod.deferred) {
3201
3203
  fn();
3202
3204
  }
@@ -3227,13 +3229,14 @@ class $ZodEncodeError extends Error {
3227
3229
  this.name = "ZodEncodeError";
3228
3230
  }
3229
3231
  }
3230
- var globalConfig = {};
3232
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
3233
+ var globalConfig = globalThis.__zod_globalConfig;
3231
3234
  function config(newConfig) {
3232
3235
  if (newConfig)
3233
3236
  Object.assign(globalConfig, newConfig);
3234
3237
  return globalConfig;
3235
3238
  }
3236
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
3239
+ // node_modules/zod/v4/core/util.js
3237
3240
  var exports_util = {};
3238
3241
  __export(exports_util, {
3239
3242
  unwrapMessage: () => unwrapMessage,
@@ -3275,6 +3278,7 @@ __export(exports_util, {
3275
3278
  floatSafeRemainder: () => floatSafeRemainder,
3276
3279
  finalizeIssue: () => finalizeIssue,
3277
3280
  extend: () => extend,
3281
+ explicitlyAborted: () => explicitlyAborted,
3278
3282
  escapeRegex: () => escapeRegex,
3279
3283
  esc: () => esc,
3280
3284
  defineLazy: () => defineLazy,
@@ -3345,21 +3349,14 @@ function cleanRegex(source) {
3345
3349
  return source.slice(start, end);
3346
3350
  }
3347
3351
  function floatSafeRemainder(val, step) {
3348
- const valDecCount = (val.toString().split(".")[1] || "").length;
3349
- const stepString = step.toString();
3350
- let stepDecCount = (stepString.split(".")[1] || "").length;
3351
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
3352
- const match = stepString.match(/\d?e-(\d?)/);
3353
- if (match?.[1]) {
3354
- stepDecCount = Number.parseInt(match[1]);
3355
- }
3356
- }
3357
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
3358
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
3359
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
3360
- return valInt % stepInt / 10 ** decCount;
3361
- }
3362
- var EVALUATING = Symbol("evaluating");
3352
+ const ratio = val / step;
3353
+ const roundedRatio = Math.round(ratio);
3354
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
3355
+ if (Math.abs(ratio - roundedRatio) < tolerance)
3356
+ return 0;
3357
+ return ratio - roundedRatio;
3358
+ }
3359
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
3363
3360
  function defineLazy(object, key, getter) {
3364
3361
  let value = undefined;
3365
3362
  Object.defineProperty(object, key, {
@@ -3437,7 +3434,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
3437
3434
  function isObject(data) {
3438
3435
  return typeof data === "object" && data !== null && !Array.isArray(data);
3439
3436
  }
3440
- var allowsEval = cached(() => {
3437
+ var allowsEval = /* @__PURE__ */ cached(() => {
3438
+ if (globalConfig.jitless) {
3439
+ return false;
3440
+ }
3441
3441
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
3442
3442
  return false;
3443
3443
  }
@@ -3470,6 +3470,10 @@ function shallowClone(o) {
3470
3470
  return { ...o };
3471
3471
  if (Array.isArray(o))
3472
3472
  return [...o];
3473
+ if (o instanceof Map)
3474
+ return new Map(o);
3475
+ if (o instanceof Set)
3476
+ return new Set(o);
3473
3477
  return o;
3474
3478
  }
3475
3479
  function numKeys(data) {
@@ -3525,8 +3529,15 @@ var getParsedType = (data) => {
3525
3529
  throw new Error(`Unknown data type: ${t}`);
3526
3530
  }
3527
3531
  };
3528
- var propertyKeyTypes = new Set(["string", "number", "symbol"]);
3529
- var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
3532
+ var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
3533
+ var primitiveTypes = /* @__PURE__ */ new Set([
3534
+ "string",
3535
+ "number",
3536
+ "bigint",
3537
+ "boolean",
3538
+ "symbol",
3539
+ "undefined"
3540
+ ]);
3530
3541
  function escapeRegex(str) {
3531
3542
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3532
3543
  }
@@ -3695,6 +3706,9 @@ function safeExtend(schema, shape) {
3695
3706
  return clone(schema, def);
3696
3707
  }
3697
3708
  function merge(a, b) {
3709
+ if (a._zod.def.checks?.length) {
3710
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
3711
+ }
3698
3712
  const def = mergeDefs(a._zod.def, {
3699
3713
  get shape() {
3700
3714
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -3704,7 +3718,7 @@ function merge(a, b) {
3704
3718
  get catchall() {
3705
3719
  return b._zod.def.catchall;
3706
3720
  },
3707
- checks: []
3721
+ checks: b._zod.def.checks ?? []
3708
3722
  });
3709
3723
  return clone(a, def);
3710
3724
  }
@@ -3787,10 +3801,20 @@ function aborted(x, startIndex = 0) {
3787
3801
  }
3788
3802
  return false;
3789
3803
  }
3804
+ function explicitlyAborted(x, startIndex = 0) {
3805
+ if (x.aborted === true)
3806
+ return true;
3807
+ for (let i = startIndex;i < x.issues.length; i++) {
3808
+ if (x.issues[i]?.continue === false) {
3809
+ return true;
3810
+ }
3811
+ }
3812
+ return false;
3813
+ }
3790
3814
  function prefixIssues(path, issues) {
3791
3815
  return issues.map((iss) => {
3792
- var _a;
3793
- (_a = iss).path ?? (_a.path = []);
3816
+ var _a2;
3817
+ (_a2 = iss).path ?? (_a2.path = []);
3794
3818
  iss.path.unshift(path);
3795
3819
  return iss;
3796
3820
  });
@@ -3799,17 +3823,14 @@ function unwrapMessage(message) {
3799
3823
  return typeof message === "string" ? message : message?.message;
3800
3824
  }
3801
3825
  function finalizeIssue(iss, ctx, config2) {
3802
- const full = { ...iss, path: iss.path ?? [] };
3803
- if (!iss.message) {
3804
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
3805
- full.message = message;
3806
- }
3807
- delete full.inst;
3808
- delete full.continue;
3809
- if (!ctx?.reportInput) {
3810
- delete full.input;
3826
+ 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";
3827
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
3828
+ rest.path ?? (rest.path = []);
3829
+ rest.message = message;
3830
+ if (ctx?.reportInput) {
3831
+ rest.input = _input;
3811
3832
  }
3812
- return full;
3833
+ return rest;
3813
3834
  }
3814
3835
  function getSizableOrigin(input) {
3815
3836
  if (input instanceof Set)
@@ -3907,7 +3928,7 @@ class Class {
3907
3928
  constructor(..._args) {}
3908
3929
  }
3909
3930
 
3910
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
3931
+ // node_modules/zod/v4/core/errors.js
3911
3932
  var initializer = (inst, def) => {
3912
3933
  inst.name = "$ZodError";
3913
3934
  Object.defineProperty(inst, "_zod", {
@@ -3941,30 +3962,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
3941
3962
  }
3942
3963
  function formatError(error, mapper = (issue2) => issue2.message) {
3943
3964
  const fieldErrors = { _errors: [] };
3944
- const processError = (error2) => {
3965
+ const processError = (error2, path = []) => {
3945
3966
  for (const issue2 of error2.issues) {
3946
3967
  if (issue2.code === "invalid_union" && issue2.errors.length) {
3947
- issue2.errors.map((issues) => processError({ issues }));
3968
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
3948
3969
  } else if (issue2.code === "invalid_key") {
3949
- processError({ issues: issue2.issues });
3970
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
3950
3971
  } else if (issue2.code === "invalid_element") {
3951
- processError({ issues: issue2.issues });
3952
- } else if (issue2.path.length === 0) {
3953
- fieldErrors._errors.push(mapper(issue2));
3972
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
3954
3973
  } else {
3955
- let curr = fieldErrors;
3956
- let i = 0;
3957
- while (i < issue2.path.length) {
3958
- const el = issue2.path[i];
3959
- const terminal = i === issue2.path.length - 1;
3960
- if (!terminal) {
3961
- curr[el] = curr[el] || { _errors: [] };
3962
- } else {
3963
- curr[el] = curr[el] || { _errors: [] };
3964
- curr[el]._errors.push(mapper(issue2));
3974
+ const fullpath = [...path, ...issue2.path];
3975
+ if (fullpath.length === 0) {
3976
+ fieldErrors._errors.push(mapper(issue2));
3977
+ } else {
3978
+ let curr = fieldErrors;
3979
+ let i = 0;
3980
+ while (i < fullpath.length) {
3981
+ const el = fullpath[i];
3982
+ const terminal = i === fullpath.length - 1;
3983
+ if (!terminal) {
3984
+ curr[el] = curr[el] || { _errors: [] };
3985
+ } else {
3986
+ curr[el] = curr[el] || { _errors: [] };
3987
+ curr[el]._errors.push(mapper(issue2));
3988
+ }
3989
+ curr = curr[el];
3990
+ i++;
3965
3991
  }
3966
- curr = curr[el];
3967
- i++;
3968
3992
  }
3969
3993
  }
3970
3994
  }
@@ -3975,14 +3999,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
3975
3999
  function treeifyError(error, mapper = (issue2) => issue2.message) {
3976
4000
  const result = { errors: [] };
3977
4001
  const processError = (error2, path = []) => {
3978
- var _a, _b;
4002
+ var _a2, _b;
3979
4003
  for (const issue2 of error2.issues) {
3980
4004
  if (issue2.code === "invalid_union" && issue2.errors.length) {
3981
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
4005
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
3982
4006
  } else if (issue2.code === "invalid_key") {
3983
- processError({ issues: issue2.issues }, issue2.path);
4007
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
3984
4008
  } else if (issue2.code === "invalid_element") {
3985
- processError({ issues: issue2.issues }, issue2.path);
4009
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
3986
4010
  } else {
3987
4011
  const fullpath = [...path, ...issue2.path];
3988
4012
  if (fullpath.length === 0) {
@@ -3996,7 +4020,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
3996
4020
  const terminal = i === fullpath.length - 1;
3997
4021
  if (typeof el === "string") {
3998
4022
  curr.properties ?? (curr.properties = {});
3999
- (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
4023
+ (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
4000
4024
  curr = curr.properties[el];
4001
4025
  } else {
4002
4026
  curr.items ?? (curr.items = []);
@@ -4044,9 +4068,9 @@ function prettifyError(error) {
4044
4068
  `);
4045
4069
  }
4046
4070
 
4047
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
4071
+ // node_modules/zod/v4/core/parse.js
4048
4072
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
4049
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
4073
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
4050
4074
  const result = schema._zod.run({ value, issues: [] }, ctx);
4051
4075
  if (result instanceof Promise) {
4052
4076
  throw new $ZodAsyncError;
@@ -4060,7 +4084,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
4060
4084
  };
4061
4085
  var parse = /* @__PURE__ */ _parse($ZodRealError);
4062
4086
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
4063
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
4087
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
4064
4088
  let result = schema._zod.run({ value, issues: [] }, ctx);
4065
4089
  if (result instanceof Promise)
4066
4090
  result = await result;
@@ -4085,7 +4109,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
4085
4109
  };
4086
4110
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
4087
4111
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
4088
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
4112
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
4089
4113
  let result = schema._zod.run({ value, issues: [] }, ctx);
4090
4114
  if (result instanceof Promise)
4091
4115
  result = await result;
@@ -4096,7 +4120,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
4096
4120
  };
4097
4121
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
4098
4122
  var _encode = (_Err) => (schema, value, _ctx) => {
4099
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4123
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4100
4124
  return _parse(_Err)(schema, value, ctx);
4101
4125
  };
4102
4126
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -4105,7 +4129,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
4105
4129
  };
4106
4130
  var decode = /* @__PURE__ */ _decode($ZodRealError);
4107
4131
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
4108
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4132
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4109
4133
  return _parseAsync(_Err)(schema, value, ctx);
4110
4134
  };
4111
4135
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -4114,7 +4138,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
4114
4138
  };
4115
4139
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
4116
4140
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
4117
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4141
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4118
4142
  return _safeParse(_Err)(schema, value, ctx);
4119
4143
  };
4120
4144
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -4123,7 +4147,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
4123
4147
  };
4124
4148
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
4125
4149
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
4126
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4150
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4127
4151
  return _safeParseAsync(_Err)(schema, value, ctx);
4128
4152
  };
4129
4153
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -4131,7 +4155,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
4131
4155
  return _safeParseAsync(_Err)(schema, value, _ctx);
4132
4156
  };
4133
4157
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
4134
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
4158
+ // node_modules/zod/v4/core/regexes.js
4135
4159
  var exports_regexes = {};
4136
4160
  __export(exports_regexes, {
4137
4161
  xid: () => xid,
@@ -4171,6 +4195,7 @@ __export(exports_regexes, {
4171
4195
  ipv4: () => ipv4,
4172
4196
  integer: () => integer,
4173
4197
  idnEmail: () => idnEmail,
4198
+ httpProtocol: () => httpProtocol,
4174
4199
  html5Email: () => html5Email,
4175
4200
  hostname: () => hostname,
4176
4201
  hex: () => hex,
@@ -4193,7 +4218,7 @@ __export(exports_regexes, {
4193
4218
  base64url: () => base64url,
4194
4219
  base64: () => base64
4195
4220
  });
4196
- var cuid = /^[cC][^\s-]{8,}$/;
4221
+ var cuid = /^[cC][0-9a-z]{6,}$/;
4197
4222
  var cuid2 = /^[0-9a-z]+$/;
4198
4223
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
4199
4224
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -4232,6 +4257,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
4232
4257
  var base64url = /^[A-Za-z0-9_-]*$/;
4233
4258
  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])?)*\.?$/;
4234
4259
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
4260
+ var httpProtocol = /^https?$/;
4235
4261
  var e164 = /^\+[1-9]\d{6,14}$/;
4236
4262
  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])))`;
4237
4263
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -4288,12 +4314,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
4288
4314
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
4289
4315
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
4290
4316
 
4291
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
4317
+ // node_modules/zod/v4/core/checks.js
4292
4318
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
4293
- var _a;
4319
+ var _a2;
4294
4320
  inst._zod ?? (inst._zod = {});
4295
4321
  inst._zod.def = def;
4296
- (_a = inst._zod).onattach ?? (_a.onattach = []);
4322
+ (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
4297
4323
  });
4298
4324
  var numericOriginMap = {
4299
4325
  number: "number",
@@ -4359,8 +4385,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
4359
4385
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
4360
4386
  $ZodCheck.init(inst, def);
4361
4387
  inst._zod.onattach.push((inst2) => {
4362
- var _a;
4363
- (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
4388
+ var _a2;
4389
+ (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
4364
4390
  });
4365
4391
  inst._zod.check = (payload) => {
4366
4392
  if (typeof payload.value !== typeof def.value)
@@ -4493,9 +4519,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
4493
4519
  };
4494
4520
  });
4495
4521
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
4496
- var _a;
4522
+ var _a2;
4497
4523
  $ZodCheck.init(inst, def);
4498
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
4524
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4499
4525
  const val = payload.value;
4500
4526
  return !nullish(val) && val.size !== undefined;
4501
4527
  });
@@ -4521,9 +4547,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
4521
4547
  };
4522
4548
  });
4523
4549
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
4524
- var _a;
4550
+ var _a2;
4525
4551
  $ZodCheck.init(inst, def);
4526
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
4552
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4527
4553
  const val = payload.value;
4528
4554
  return !nullish(val) && val.size !== undefined;
4529
4555
  });
@@ -4549,9 +4575,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
4549
4575
  };
4550
4576
  });
4551
4577
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
4552
- var _a;
4578
+ var _a2;
4553
4579
  $ZodCheck.init(inst, def);
4554
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
4580
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4555
4581
  const val = payload.value;
4556
4582
  return !nullish(val) && val.size !== undefined;
4557
4583
  });
@@ -4579,9 +4605,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
4579
4605
  };
4580
4606
  });
4581
4607
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
4582
- var _a;
4608
+ var _a2;
4583
4609
  $ZodCheck.init(inst, def);
4584
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
4610
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4585
4611
  const val = payload.value;
4586
4612
  return !nullish(val) && val.length !== undefined;
4587
4613
  });
@@ -4608,9 +4634,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
4608
4634
  };
4609
4635
  });
4610
4636
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
4611
- var _a;
4637
+ var _a2;
4612
4638
  $ZodCheck.init(inst, def);
4613
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
4639
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4614
4640
  const val = payload.value;
4615
4641
  return !nullish(val) && val.length !== undefined;
4616
4642
  });
@@ -4637,9 +4663,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
4637
4663
  };
4638
4664
  });
4639
4665
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
4640
- var _a;
4666
+ var _a2;
4641
4667
  $ZodCheck.init(inst, def);
4642
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
4668
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4643
4669
  const val = payload.value;
4644
4670
  return !nullish(val) && val.length !== undefined;
4645
4671
  });
@@ -4668,7 +4694,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
4668
4694
  };
4669
4695
  });
4670
4696
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
4671
- var _a, _b;
4697
+ var _a2, _b;
4672
4698
  $ZodCheck.init(inst, def);
4673
4699
  inst._zod.onattach.push((inst2) => {
4674
4700
  const bag = inst2._zod.bag;
@@ -4679,7 +4705,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
4679
4705
  }
4680
4706
  });
4681
4707
  if (def.pattern)
4682
- (_a = inst._zod).check ?? (_a.check = (payload) => {
4708
+ (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
4683
4709
  def.pattern.lastIndex = 0;
4684
4710
  if (def.pattern.test(payload.value))
4685
4711
  return;
@@ -4835,7 +4861,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
4835
4861
  };
4836
4862
  });
4837
4863
 
4838
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
4864
+ // node_modules/zod/v4/core/doc.js
4839
4865
  class Doc {
4840
4866
  constructor(args = []) {
4841
4867
  this.content = [];
@@ -4873,16 +4899,16 @@ class Doc {
4873
4899
  }
4874
4900
  }
4875
4901
 
4876
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
4902
+ // node_modules/zod/v4/core/versions.js
4877
4903
  var version = {
4878
4904
  major: 4,
4879
- minor: 3,
4880
- patch: 6
4905
+ minor: 4,
4906
+ patch: 1
4881
4907
  };
4882
4908
 
4883
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
4909
+ // node_modules/zod/v4/core/schemas.js
4884
4910
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
4885
- var _a;
4911
+ var _a2;
4886
4912
  inst ?? (inst = {});
4887
4913
  inst._zod.def = def;
4888
4914
  inst._zod.bag = inst._zod.bag || {};
@@ -4897,7 +4923,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
4897
4923
  }
4898
4924
  }
4899
4925
  if (checks.length === 0) {
4900
- (_a = inst._zod).deferred ?? (_a.deferred = []);
4926
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
4901
4927
  inst._zod.deferred?.push(() => {
4902
4928
  inst._zod.run = inst._zod.parse;
4903
4929
  });
@@ -4907,6 +4933,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
4907
4933
  let asyncResult;
4908
4934
  for (const ch of checks2) {
4909
4935
  if (ch._zod.def.when) {
4936
+ if (explicitlyAborted(payload))
4937
+ continue;
4910
4938
  const shouldRun = ch._zod.def.when(payload);
4911
4939
  if (!shouldRun)
4912
4940
  continue;
@@ -5046,6 +5074,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
5046
5074
  inst._zod.check = (payload) => {
5047
5075
  try {
5048
5076
  const trimmed = payload.value.trim();
5077
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
5078
+ if (!/^https?:\/\//i.test(trimmed)) {
5079
+ payload.issues.push({
5080
+ code: "invalid_format",
5081
+ format: "url",
5082
+ note: "Invalid URL format",
5083
+ input: payload.value,
5084
+ inst,
5085
+ continue: !def.abort
5086
+ });
5087
+ return;
5088
+ }
5089
+ }
5049
5090
  const url = new URL(trimmed);
5050
5091
  if (def.hostname) {
5051
5092
  def.hostname.lastIndex = 0;
@@ -5199,6 +5240,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
5199
5240
  function isValidBase64(data) {
5200
5241
  if (data === "")
5201
5242
  return true;
5243
+ if (/\s/.test(data))
5244
+ return false;
5202
5245
  if (data.length % 4 !== 0)
5203
5246
  return false;
5204
5247
  try {
@@ -5388,8 +5431,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
5388
5431
  $ZodType.init(inst, def);
5389
5432
  inst._zod.pattern = _undefined;
5390
5433
  inst._zod.values = new Set([undefined]);
5391
- inst._zod.optin = "optional";
5392
- inst._zod.optout = "optional";
5393
5434
  inst._zod.parse = (payload, _ctx) => {
5394
5435
  const input = payload.value;
5395
5436
  if (typeof input === "undefined")
@@ -5517,15 +5558,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
5517
5558
  return payload;
5518
5559
  };
5519
5560
  });
5520
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
5561
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
5562
+ const isPresent = key in input;
5521
5563
  if (result.issues.length) {
5522
- if (isOptionalOut && !(key in input)) {
5564
+ if (isOptionalIn && isOptionalOut && !isPresent) {
5523
5565
  return;
5524
5566
  }
5525
5567
  final.issues.push(...prefixIssues(key, result.issues));
5526
5568
  }
5569
+ if (!isPresent && !isOptionalIn) {
5570
+ if (!result.issues.length) {
5571
+ final.issues.push({
5572
+ code: "invalid_type",
5573
+ expected: "nonoptional",
5574
+ input: undefined,
5575
+ path: [key]
5576
+ });
5577
+ }
5578
+ return;
5579
+ }
5527
5580
  if (result.value === undefined) {
5528
- if (key in input) {
5581
+ if (isPresent) {
5529
5582
  final.value[key] = undefined;
5530
5583
  }
5531
5584
  } else {
@@ -5553,8 +5606,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
5553
5606
  const keySet = def.keySet;
5554
5607
  const _catchall = def.catchall._zod;
5555
5608
  const t = _catchall.def.type;
5609
+ const isOptionalIn = _catchall.optin === "optional";
5556
5610
  const isOptionalOut = _catchall.optout === "optional";
5557
5611
  for (const key in input) {
5612
+ if (key === "__proto__")
5613
+ continue;
5558
5614
  if (keySet.has(key))
5559
5615
  continue;
5560
5616
  if (t === "never") {
@@ -5563,9 +5619,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
5563
5619
  }
5564
5620
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
5565
5621
  if (r instanceof Promise) {
5566
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
5622
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
5567
5623
  } else {
5568
- handlePropertyResult(r, payload, key, input, isOptionalOut);
5624
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
5569
5625
  }
5570
5626
  }
5571
5627
  if (unrecognized.length) {
@@ -5631,12 +5687,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
5631
5687
  const shape = value.shape;
5632
5688
  for (const key of value.keys) {
5633
5689
  const el = shape[key];
5690
+ const isOptionalIn = el._zod.optin === "optional";
5634
5691
  const isOptionalOut = el._zod.optout === "optional";
5635
5692
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
5636
5693
  if (r instanceof Promise) {
5637
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
5694
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
5638
5695
  } else {
5639
- handlePropertyResult(r, payload, key, input, isOptionalOut);
5696
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
5640
5697
  }
5641
5698
  }
5642
5699
  if (!catchall) {
@@ -5667,9 +5724,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
5667
5724
  const id = ids[key];
5668
5725
  const k = esc(key);
5669
5726
  const schema = shape[key];
5727
+ const isOptionalIn = schema?._zod?.optin === "optional";
5670
5728
  const isOptionalOut = schema?._zod?.optout === "optional";
5671
5729
  doc.write(`const ${id} = ${parseStr(key)};`);
5672
- if (isOptionalOut) {
5730
+ if (isOptionalIn && isOptionalOut) {
5673
5731
  doc.write(`
5674
5732
  if (${id}.issues.length) {
5675
5733
  if (${k} in input) {
@@ -5688,6 +5746,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
5688
5746
  newResult[${k}] = ${id}.value;
5689
5747
  }
5690
5748
 
5749
+ `);
5750
+ } else if (!isOptionalIn) {
5751
+ doc.write(`
5752
+ const ${id}_present = ${k} in input;
5753
+ if (${id}.issues.length) {
5754
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
5755
+ ...iss,
5756
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
5757
+ })));
5758
+ }
5759
+ if (!${id}_present && !${id}.issues.length) {
5760
+ payload.issues.push({
5761
+ code: "invalid_type",
5762
+ expected: "nonoptional",
5763
+ input: undefined,
5764
+ path: [${k}]
5765
+ });
5766
+ }
5767
+
5768
+ if (${id}_present) {
5769
+ if (${id}.value === undefined) {
5770
+ newResult[${k}] = undefined;
5771
+ } else {
5772
+ newResult[${k}] = ${id}.value;
5773
+ }
5774
+ }
5775
+
5691
5776
  `);
5692
5777
  } else {
5693
5778
  doc.write(`
@@ -5781,10 +5866,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
5781
5866
  }
5782
5867
  return;
5783
5868
  });
5784
- const single = def.options.length === 1;
5785
- const first = def.options[0]._zod.run;
5869
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
5786
5870
  inst._zod.parse = (payload, ctx) => {
5787
- if (single) {
5871
+ if (first) {
5788
5872
  return first(payload, ctx);
5789
5873
  }
5790
5874
  let async = false;
@@ -5837,10 +5921,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
5837
5921
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
5838
5922
  $ZodUnion.init(inst, def);
5839
5923
  def.inclusive = false;
5840
- const single = def.options.length === 1;
5841
- const first = def.options[0]._zod.run;
5924
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
5842
5925
  inst._zod.parse = (payload, ctx) => {
5843
- if (single) {
5926
+ if (first) {
5844
5927
  return first(payload, ctx);
5845
5928
  }
5846
5929
  let async = false;
@@ -5915,7 +5998,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
5915
5998
  if (opt) {
5916
5999
  return opt._zod.run(payload, ctx);
5917
6000
  }
5918
- if (def.unionFallback) {
6001
+ if (def.unionFallback || ctx.direction === "backward") {
5919
6002
  return _super(payload, ctx);
5920
6003
  }
5921
6004
  payload.issues.push({
@@ -5923,6 +6006,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
5923
6006
  errors: [],
5924
6007
  note: "No matching discriminator",
5925
6008
  discriminator: def.discriminator,
6009
+ options: Array.from(disc.value.keys()),
5926
6010
  input,
5927
6011
  path: [def.discriminator],
5928
6012
  inst
@@ -6044,64 +6128,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
6044
6128
  }
6045
6129
  payload.value = [];
6046
6130
  const proms = [];
6047
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
6048
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
6131
+ const optinStart = getTupleOptStart(items, "optin");
6132
+ const optoutStart = getTupleOptStart(items, "optout");
6049
6133
  if (!def.rest) {
6050
- const tooBig = input.length > items.length;
6051
- const tooSmall = input.length < optStart - 1;
6052
- if (tooBig || tooSmall) {
6134
+ if (input.length < optinStart) {
6053
6135
  payload.issues.push({
6054
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
6136
+ code: "too_small",
6137
+ minimum: optinStart,
6138
+ inclusive: true,
6055
6139
  input,
6056
6140
  inst,
6057
6141
  origin: "array"
6058
6142
  });
6059
6143
  return payload;
6060
6144
  }
6061
- }
6062
- let i = -1;
6063
- for (const item of items) {
6064
- i++;
6065
- if (i >= input.length) {
6066
- if (i >= optStart)
6067
- continue;
6145
+ if (input.length > items.length) {
6146
+ payload.issues.push({
6147
+ code: "too_big",
6148
+ maximum: items.length,
6149
+ inclusive: true,
6150
+ input,
6151
+ inst,
6152
+ origin: "array"
6153
+ });
6068
6154
  }
6069
- const result = item._zod.run({
6070
- value: input[i],
6071
- issues: []
6072
- }, ctx);
6073
- if (result instanceof Promise) {
6074
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
6155
+ }
6156
+ const itemResults = new Array(items.length);
6157
+ for (let i = 0;i < items.length; i++) {
6158
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
6159
+ if (r instanceof Promise) {
6160
+ proms.push(r.then((rr) => {
6161
+ itemResults[i] = rr;
6162
+ }));
6075
6163
  } else {
6076
- handleTupleResult(result, payload, i);
6164
+ itemResults[i] = r;
6077
6165
  }
6078
6166
  }
6079
6167
  if (def.rest) {
6168
+ let i = items.length - 1;
6080
6169
  const rest = input.slice(items.length);
6081
6170
  for (const el of rest) {
6082
6171
  i++;
6083
- const result = def.rest._zod.run({
6084
- value: el,
6085
- issues: []
6086
- }, ctx);
6172
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
6087
6173
  if (result instanceof Promise) {
6088
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
6174
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
6089
6175
  } else {
6090
6176
  handleTupleResult(result, payload, i);
6091
6177
  }
6092
6178
  }
6093
6179
  }
6094
- if (proms.length)
6095
- return Promise.all(proms).then(() => payload);
6096
- return payload;
6180
+ if (proms.length) {
6181
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
6182
+ }
6183
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
6097
6184
  };
6098
6185
  });
6186
+ function getTupleOptStart(items, key) {
6187
+ for (let i = items.length - 1;i >= 0; i--) {
6188
+ if (items[i]._zod[key] !== "optional")
6189
+ return i + 1;
6190
+ }
6191
+ return 0;
6192
+ }
6099
6193
  function handleTupleResult(result, final, index) {
6100
6194
  if (result.issues.length) {
6101
6195
  final.issues.push(...prefixIssues(index, result.issues));
6102
6196
  }
6103
6197
  final.value[index] = result.value;
6104
6198
  }
6199
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
6200
+ for (let i = 0;i < items.length; i++) {
6201
+ const r = itemResults[i];
6202
+ const isPresent = i < input.length;
6203
+ if (r.issues.length) {
6204
+ if (!isPresent && i >= optoutStart) {
6205
+ final.value.length = i;
6206
+ break;
6207
+ }
6208
+ final.issues.push(...prefixIssues(i, r.issues));
6209
+ }
6210
+ final.value[i] = r.value;
6211
+ }
6212
+ for (let i = final.value.length - 1;i >= input.length; i--) {
6213
+ if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
6214
+ final.value.length = i;
6215
+ } else {
6216
+ break;
6217
+ }
6218
+ }
6219
+ return final;
6220
+ }
6105
6221
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
6106
6222
  $ZodType.init(inst, def);
6107
6223
  inst._zod.parse = (payload, ctx) => {
@@ -6123,19 +6239,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
6123
6239
  for (const key of values) {
6124
6240
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
6125
6241
  recordKeys.add(typeof key === "number" ? key.toString() : key);
6242
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
6243
+ if (keyResult instanceof Promise) {
6244
+ throw new Error("Async schemas not supported in object keys currently");
6245
+ }
6246
+ if (keyResult.issues.length) {
6247
+ payload.issues.push({
6248
+ code: "invalid_key",
6249
+ origin: "record",
6250
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
6251
+ input: key,
6252
+ path: [key],
6253
+ inst
6254
+ });
6255
+ continue;
6256
+ }
6257
+ const outKey = keyResult.value;
6126
6258
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
6127
6259
  if (result instanceof Promise) {
6128
6260
  proms.push(result.then((result2) => {
6129
6261
  if (result2.issues.length) {
6130
6262
  payload.issues.push(...prefixIssues(key, result2.issues));
6131
6263
  }
6132
- payload.value[key] = result2.value;
6264
+ payload.value[outKey] = result2.value;
6133
6265
  }));
6134
6266
  } else {
6135
6267
  if (result.issues.length) {
6136
6268
  payload.issues.push(...prefixIssues(key, result.issues));
6137
6269
  }
6138
- payload.value[key] = result.value;
6270
+ payload.value[outKey] = result.value;
6139
6271
  }
6140
6272
  }
6141
6273
  }
@@ -6159,6 +6291,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
6159
6291
  for (const key of Reflect.ownKeys(input)) {
6160
6292
  if (key === "__proto__")
6161
6293
  continue;
6294
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
6295
+ continue;
6162
6296
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
6163
6297
  if (keyResult instanceof Promise) {
6164
6298
  throw new Error("Async schemas not supported in object keys currently");
@@ -6802,7 +6936,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
6802
6936
  });
6803
6937
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
6804
6938
  $ZodType.init(inst, def);
6805
- defineLazy(inst._zod, "innerType", () => def.getter());
6939
+ defineLazy(inst._zod, "innerType", () => {
6940
+ const d = def;
6941
+ if (!d._cachedInner)
6942
+ d._cachedInner = def.getter();
6943
+ return d._cachedInner;
6944
+ });
6806
6945
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
6807
6946
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
6808
6947
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
@@ -6842,7 +6981,7 @@ function handleRefineResult(result, payload, input, inst) {
6842
6981
  payload.issues.push(issue(_iss));
6843
6982
  }
6844
6983
  }
6845
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
6984
+ // node_modules/zod/v4/locales/index.js
6846
6985
  var exports_locales = {};
6847
6986
  __export(exports_locales, {
6848
6987
  zhTW: () => zh_TW_default,
@@ -6859,6 +6998,7 @@ __export(exports_locales, {
6859
6998
  sv: () => sv_default,
6860
6999
  sl: () => sl_default,
6861
7000
  ru: () => ru_default,
7001
+ ro: () => ro_default,
6862
7002
  pt: () => pt_default,
6863
7003
  ps: () => ps_default,
6864
7004
  pl: () => pl_default,
@@ -6878,6 +7018,7 @@ __export(exports_locales, {
6878
7018
  id: () => id_default,
6879
7019
  hy: () => hy_default,
6880
7020
  hu: () => hu_default,
7021
+ hr: () => hr_default,
6881
7022
  he: () => he_default,
6882
7023
  frCA: () => fr_CA_default,
6883
7024
  fr: () => fr_default,
@@ -6886,6 +7027,7 @@ __export(exports_locales, {
6886
7027
  es: () => es_default,
6887
7028
  eo: () => eo_default,
6888
7029
  en: () => en_default,
7030
+ el: () => el_default,
6889
7031
  de: () => de_default,
6890
7032
  da: () => da_default,
6891
7033
  cs: () => cs_default,
@@ -6896,7 +7038,7 @@ __export(exports_locales, {
6896
7038
  ar: () => ar_default
6897
7039
  });
6898
7040
 
6899
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
7041
+ // node_modules/zod/v4/locales/ar.js
6900
7042
  var error = () => {
6901
7043
  const Sizable = {
6902
7044
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -7002,7 +7144,7 @@ function ar_default() {
7002
7144
  localeError: error()
7003
7145
  };
7004
7146
  }
7005
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
7147
+ // node_modules/zod/v4/locales/az.js
7006
7148
  var error2 = () => {
7007
7149
  const Sizable = {
7008
7150
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -7107,7 +7249,7 @@ function az_default() {
7107
7249
  localeError: error2()
7108
7250
  };
7109
7251
  }
7110
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
7252
+ // node_modules/zod/v4/locales/be.js
7111
7253
  function getBelarusianPlural(count, one, few, many) {
7112
7254
  const absCount = Math.abs(count);
7113
7255
  const lastDigit = absCount % 10;
@@ -7263,7 +7405,7 @@ function be_default() {
7263
7405
  localeError: error3()
7264
7406
  };
7265
7407
  }
7266
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
7408
+ // node_modules/zod/v4/locales/bg.js
7267
7409
  var error4 = () => {
7268
7410
  const Sizable = {
7269
7411
  string: { unit: "символа", verb: "да съдържа" },
@@ -7383,7 +7525,7 @@ function bg_default() {
7383
7525
  localeError: error4()
7384
7526
  };
7385
7527
  }
7386
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
7528
+ // node_modules/zod/v4/locales/ca.js
7387
7529
  var error5 = () => {
7388
7530
  const Sizable = {
7389
7531
  string: { unit: "caràcters", verb: "contenir" },
@@ -7490,7 +7632,7 @@ function ca_default() {
7490
7632
  localeError: error5()
7491
7633
  };
7492
7634
  }
7493
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
7635
+ // node_modules/zod/v4/locales/cs.js
7494
7636
  var error6 = () => {
7495
7637
  const Sizable = {
7496
7638
  string: { unit: "znaků", verb: "mít" },
@@ -7601,7 +7743,7 @@ function cs_default() {
7601
7743
  localeError: error6()
7602
7744
  };
7603
7745
  }
7604
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
7746
+ // node_modules/zod/v4/locales/da.js
7605
7747
  var error7 = () => {
7606
7748
  const Sizable = {
7607
7749
  string: { unit: "tegn", verb: "havde" },
@@ -7716,7 +7858,7 @@ function da_default() {
7716
7858
  localeError: error7()
7717
7859
  };
7718
7860
  }
7719
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
7861
+ // node_modules/zod/v4/locales/de.js
7720
7862
  var error8 = () => {
7721
7863
  const Sizable = {
7722
7864
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -7824,8 +7966,117 @@ function de_default() {
7824
7966
  localeError: error8()
7825
7967
  };
7826
7968
  }
7827
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
7969
+ // node_modules/zod/v4/locales/el.js
7828
7970
  var error9 = () => {
7971
+ const Sizable = {
7972
+ string: { unit: "χαρακτήρες", verb: "να έχει" },
7973
+ file: { unit: "bytes", verb: "να έχει" },
7974
+ array: { unit: "στοιχεία", verb: "να έχει" },
7975
+ set: { unit: "στοιχεία", verb: "να έχει" },
7976
+ map: { unit: "καταχωρήσεις", verb: "να έχει" }
7977
+ };
7978
+ function getSizing(origin) {
7979
+ return Sizable[origin] ?? null;
7980
+ }
7981
+ const FormatDictionary = {
7982
+ regex: "είσοδος",
7983
+ email: "διεύθυνση email",
7984
+ url: "URL",
7985
+ emoji: "emoji",
7986
+ uuid: "UUID",
7987
+ uuidv4: "UUIDv4",
7988
+ uuidv6: "UUIDv6",
7989
+ nanoid: "nanoid",
7990
+ guid: "GUID",
7991
+ cuid: "cuid",
7992
+ cuid2: "cuid2",
7993
+ ulid: "ULID",
7994
+ xid: "XID",
7995
+ ksuid: "KSUID",
7996
+ datetime: "ISO ημερομηνία και ώρα",
7997
+ date: "ISO ημερομηνία",
7998
+ time: "ISO ώρα",
7999
+ duration: "ISO διάρκεια",
8000
+ ipv4: "διεύθυνση IPv4",
8001
+ ipv6: "διεύθυνση IPv6",
8002
+ mac: "διεύθυνση MAC",
8003
+ cidrv4: "εύρος IPv4",
8004
+ cidrv6: "εύρος IPv6",
8005
+ base64: "συμβολοσειρά κωδικοποιημένη σε base64",
8006
+ base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
8007
+ json_string: "συμβολοσειρά JSON",
8008
+ e164: "αριθμός E.164",
8009
+ jwt: "JWT",
8010
+ template_literal: "είσοδος"
8011
+ };
8012
+ const TypeDictionary = {
8013
+ nan: "NaN"
8014
+ };
8015
+ return (issue2) => {
8016
+ switch (issue2.code) {
8017
+ case "invalid_type": {
8018
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8019
+ const receivedType = parsedType(issue2.input);
8020
+ const received = TypeDictionary[receivedType] ?? receivedType;
8021
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
8022
+ return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
8023
+ }
8024
+ return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
8025
+ }
8026
+ case "invalid_value":
8027
+ if (issue2.values.length === 1)
8028
+ return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
8029
+ return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
8030
+ case "too_big": {
8031
+ const adj = issue2.inclusive ? "<=" : "<";
8032
+ const sizing = getSizing(issue2.origin);
8033
+ if (sizing)
8034
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
8035
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
8036
+ }
8037
+ case "too_small": {
8038
+ const adj = issue2.inclusive ? ">=" : ">";
8039
+ const sizing = getSizing(issue2.origin);
8040
+ if (sizing) {
8041
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8042
+ }
8043
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
8044
+ }
8045
+ case "invalid_format": {
8046
+ const _issue = issue2;
8047
+ if (_issue.format === "starts_with") {
8048
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
8049
+ }
8050
+ if (_issue.format === "ends_with")
8051
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
8052
+ if (_issue.format === "includes")
8053
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
8054
+ if (_issue.format === "regex")
8055
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
8056
+ return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
8057
+ }
8058
+ case "not_multiple_of":
8059
+ return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
8060
+ case "unrecognized_keys":
8061
+ return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
8062
+ case "invalid_key":
8063
+ return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
8064
+ case "invalid_union":
8065
+ return "Μη έγκυρη είσοδος";
8066
+ case "invalid_element":
8067
+ return `Μη έγκυρη τιμή στο ${issue2.origin}`;
8068
+ default:
8069
+ return `Μη έγκυρη είσοδος`;
8070
+ }
8071
+ };
8072
+ };
8073
+ function el_default() {
8074
+ return {
8075
+ localeError: error9()
8076
+ };
8077
+ }
8078
+ // node_modules/zod/v4/locales/en.js
8079
+ var error10 = () => {
7829
8080
  const Sizable = {
7830
8081
  string: { unit: "characters", verb: "to have" },
7831
8082
  file: { unit: "bytes", verb: "to have" },
@@ -7917,6 +8168,10 @@ var error9 = () => {
7917
8168
  case "invalid_key":
7918
8169
  return `Invalid key in ${issue2.origin}`;
7919
8170
  case "invalid_union":
8171
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
8172
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
8173
+ return `Invalid discriminator value. Expected ${opts}`;
8174
+ }
7920
8175
  return "Invalid input";
7921
8176
  case "invalid_element":
7922
8177
  return `Invalid value in ${issue2.origin}`;
@@ -7927,11 +8182,11 @@ var error9 = () => {
7927
8182
  };
7928
8183
  function en_default() {
7929
8184
  return {
7930
- localeError: error9()
8185
+ localeError: error10()
7931
8186
  };
7932
8187
  }
7933
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
7934
- var error10 = () => {
8188
+ // node_modules/zod/v4/locales/eo.js
8189
+ var error11 = () => {
7935
8190
  const Sizable = {
7936
8191
  string: { unit: "karaktrojn", verb: "havi" },
7937
8192
  file: { unit: "bajtojn", verb: "havi" },
@@ -8036,11 +8291,11 @@ var error10 = () => {
8036
8291
  };
8037
8292
  function eo_default() {
8038
8293
  return {
8039
- localeError: error10()
8294
+ localeError: error11()
8040
8295
  };
8041
8296
  }
8042
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
8043
- var error11 = () => {
8297
+ // node_modules/zod/v4/locales/es.js
8298
+ var error12 = () => {
8044
8299
  const Sizable = {
8045
8300
  string: { unit: "caracteres", verb: "tener" },
8046
8301
  file: { unit: "bytes", verb: "tener" },
@@ -8168,11 +8423,11 @@ var error11 = () => {
8168
8423
  };
8169
8424
  function es_default() {
8170
8425
  return {
8171
- localeError: error11()
8426
+ localeError: error12()
8172
8427
  };
8173
8428
  }
8174
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
8175
- var error12 = () => {
8429
+ // node_modules/zod/v4/locales/fa.js
8430
+ var error13 = () => {
8176
8431
  const Sizable = {
8177
8432
  string: { unit: "کاراکتر", verb: "داشته باشد" },
8178
8433
  file: { unit: "بایت", verb: "داشته باشد" },
@@ -8282,11 +8537,11 @@ var error12 = () => {
8282
8537
  };
8283
8538
  function fa_default() {
8284
8539
  return {
8285
- localeError: error12()
8540
+ localeError: error13()
8286
8541
  };
8287
8542
  }
8288
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
8289
- var error13 = () => {
8543
+ // node_modules/zod/v4/locales/fi.js
8544
+ var error14 = () => {
8290
8545
  const Sizable = {
8291
8546
  string: { unit: "merkkiä", subject: "merkkijonon" },
8292
8547
  file: { unit: "tavua", subject: "tiedoston" },
@@ -8394,11 +8649,11 @@ var error13 = () => {
8394
8649
  };
8395
8650
  function fi_default() {
8396
8651
  return {
8397
- localeError: error13()
8652
+ localeError: error14()
8398
8653
  };
8399
8654
  }
8400
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
8401
- var error14 = () => {
8655
+ // node_modules/zod/v4/locales/fr.js
8656
+ var error15 = () => {
8402
8657
  const Sizable = {
8403
8658
  string: { unit: "caractères", verb: "avoir" },
8404
8659
  file: { unit: "octets", verb: "avoir" },
@@ -8439,9 +8694,27 @@ var error14 = () => {
8439
8694
  template_literal: "entrée"
8440
8695
  };
8441
8696
  const TypeDictionary = {
8442
- nan: "NaN",
8697
+ string: "chaîne",
8443
8698
  number: "nombre",
8444
- array: "tableau"
8699
+ int: "entier",
8700
+ boolean: "booléen",
8701
+ bigint: "grand entier",
8702
+ symbol: "symbole",
8703
+ undefined: "indéfini",
8704
+ null: "null",
8705
+ never: "jamais",
8706
+ void: "vide",
8707
+ date: "date",
8708
+ array: "tableau",
8709
+ object: "objet",
8710
+ tuple: "tuple",
8711
+ record: "enregistrement",
8712
+ map: "carte",
8713
+ set: "ensemble",
8714
+ file: "fichier",
8715
+ nonoptional: "non-optionnel",
8716
+ nan: "NaN",
8717
+ function: "fonction"
8445
8718
  };
8446
8719
  return (issue2) => {
8447
8720
  switch (issue2.code) {
@@ -8462,16 +8735,15 @@ var error14 = () => {
8462
8735
  const adj = issue2.inclusive ? "<=" : "<";
8463
8736
  const sizing = getSizing(issue2.origin);
8464
8737
  if (sizing)
8465
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
8466
- return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
8738
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
8739
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
8467
8740
  }
8468
8741
  case "too_small": {
8469
8742
  const adj = issue2.inclusive ? ">=" : ">";
8470
8743
  const sizing = getSizing(issue2.origin);
8471
- if (sizing) {
8472
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8473
- }
8474
- return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
8744
+ if (sizing)
8745
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8746
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.minimum.toString()}`;
8475
8747
  }
8476
8748
  case "invalid_format": {
8477
8749
  const _issue = issue2;
@@ -8502,11 +8774,11 @@ var error14 = () => {
8502
8774
  };
8503
8775
  function fr_default() {
8504
8776
  return {
8505
- localeError: error14()
8777
+ localeError: error15()
8506
8778
  };
8507
8779
  }
8508
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
8509
- var error15 = () => {
8780
+ // node_modules/zod/v4/locales/fr-CA.js
8781
+ var error16 = () => {
8510
8782
  const Sizable = {
8511
8783
  string: { unit: "caractères", verb: "avoir" },
8512
8784
  file: { unit: "octets", verb: "avoir" },
@@ -8609,11 +8881,11 @@ var error15 = () => {
8609
8881
  };
8610
8882
  function fr_CA_default() {
8611
8883
  return {
8612
- localeError: error15()
8884
+ localeError: error16()
8613
8885
  };
8614
8886
  }
8615
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
8616
- var error16 = () => {
8887
+ // node_modules/zod/v4/locales/he.js
8888
+ var error17 = () => {
8617
8889
  const TypeNames = {
8618
8890
  string: { label: "מחרוזת", gender: "f" },
8619
8891
  number: { label: "מספר", gender: "m" },
@@ -8802,23 +9074,23 @@ var error16 = () => {
8802
9074
  };
8803
9075
  function he_default() {
8804
9076
  return {
8805
- localeError: error16()
9077
+ localeError: error17()
8806
9078
  };
8807
9079
  }
8808
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
8809
- var error17 = () => {
9080
+ // node_modules/zod/v4/locales/hr.js
9081
+ var error18 = () => {
8810
9082
  const Sizable = {
8811
- string: { unit: "karakter", verb: "legyen" },
8812
- file: { unit: "byte", verb: "legyen" },
8813
- array: { unit: "elem", verb: "legyen" },
8814
- set: { unit: "elem", verb: "legyen" }
9083
+ string: { unit: "znakova", verb: "imati" },
9084
+ file: { unit: "bajtova", verb: "imati" },
9085
+ array: { unit: "stavki", verb: "imati" },
9086
+ set: { unit: "stavki", verb: "imati" }
8815
9087
  };
8816
9088
  function getSizing(origin) {
8817
9089
  return Sizable[origin] ?? null;
8818
9090
  }
8819
9091
  const FormatDictionary = {
8820
- regex: "bemenet",
8821
- email: "email cím",
9092
+ regex: "unos",
9093
+ email: "email adresa",
8822
9094
  url: "URL",
8823
9095
  emoji: "emoji",
8824
9096
  uuid: "UUID",
@@ -8831,25 +9103,37 @@ var error17 = () => {
8831
9103
  ulid: "ULID",
8832
9104
  xid: "XID",
8833
9105
  ksuid: "KSUID",
8834
- datetime: "ISO időbélyeg",
8835
- date: "ISO dátum",
8836
- time: "ISO idő",
8837
- duration: "ISO időintervallum",
8838
- ipv4: "IPv4 cím",
8839
- ipv6: "IPv6 cím",
8840
- cidrv4: "IPv4 tartomány",
8841
- cidrv6: "IPv6 tartomány",
8842
- base64: "base64-kódolt string",
8843
- base64url: "base64url-kódolt string",
8844
- json_string: "JSON string",
8845
- e164: "E.164 szám",
9106
+ datetime: "ISO datum i vrijeme",
9107
+ date: "ISO datum",
9108
+ time: "ISO vrijeme",
9109
+ duration: "ISO trajanje",
9110
+ ipv4: "IPv4 adresa",
9111
+ ipv6: "IPv6 adresa",
9112
+ cidrv4: "IPv4 raspon",
9113
+ cidrv6: "IPv6 raspon",
9114
+ base64: "base64 kodirani tekst",
9115
+ base64url: "base64url kodirani tekst",
9116
+ json_string: "JSON tekst",
9117
+ e164: "E.164 broj",
8846
9118
  jwt: "JWT",
8847
- template_literal: "bemenet"
9119
+ template_literal: "unos"
8848
9120
  };
8849
9121
  const TypeDictionary = {
8850
9122
  nan: "NaN",
8851
- number: "szám",
8852
- array: "tömb"
9123
+ string: "tekst",
9124
+ number: "broj",
9125
+ boolean: "boolean",
9126
+ array: "niz",
9127
+ object: "objekt",
9128
+ set: "skup",
9129
+ file: "datoteka",
9130
+ date: "datum",
9131
+ bigint: "bigint",
9132
+ symbol: "simbol",
9133
+ undefined: "undefined",
9134
+ null: "null",
9135
+ function: "funkcija",
9136
+ map: "mapa"
8853
9137
  };
8854
9138
  return (issue2) => {
8855
9139
  switch (issue2.code) {
@@ -8858,19 +9142,129 @@ var error17 = () => {
8858
9142
  const receivedType = parsedType(issue2.input);
8859
9143
  const received = TypeDictionary[receivedType] ?? receivedType;
8860
9144
  if (/^[A-Z]/.test(issue2.expected)) {
8861
- return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
9145
+ return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
8862
9146
  }
8863
- return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
9147
+ return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
8864
9148
  }
8865
9149
  case "invalid_value":
8866
9150
  if (issue2.values.length === 1)
8867
- return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;
8868
- return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue2.values, "|")}`;
9151
+ return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
9152
+ return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
8869
9153
  case "too_big": {
8870
9154
  const adj = issue2.inclusive ? "<=" : "<";
8871
9155
  const sizing = getSizing(issue2.origin);
9156
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
8872
9157
  if (sizing)
8873
- return `Túl nagy: ${issue2.origin ?? "érték"} mérete túl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
9158
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
9159
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
9160
+ }
9161
+ case "too_small": {
9162
+ const adj = issue2.inclusive ? ">=" : ">";
9163
+ const sizing = getSizing(issue2.origin);
9164
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
9165
+ if (sizing) {
9166
+ return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
9167
+ }
9168
+ return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
9169
+ }
9170
+ case "invalid_format": {
9171
+ const _issue = issue2;
9172
+ if (_issue.format === "starts_with")
9173
+ return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
9174
+ if (_issue.format === "ends_with")
9175
+ return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
9176
+ if (_issue.format === "includes")
9177
+ return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
9178
+ if (_issue.format === "regex")
9179
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
9180
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
9181
+ }
9182
+ case "not_multiple_of":
9183
+ return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
9184
+ case "unrecognized_keys":
9185
+ return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
9186
+ case "invalid_key":
9187
+ return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
9188
+ case "invalid_union":
9189
+ return "Neispravan unos";
9190
+ case "invalid_element":
9191
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
9192
+ default:
9193
+ return `Neispravan unos`;
9194
+ }
9195
+ };
9196
+ };
9197
+ function hr_default() {
9198
+ return {
9199
+ localeError: error18()
9200
+ };
9201
+ }
9202
+ // node_modules/zod/v4/locales/hu.js
9203
+ var error19 = () => {
9204
+ const Sizable = {
9205
+ string: { unit: "karakter", verb: "legyen" },
9206
+ file: { unit: "byte", verb: "legyen" },
9207
+ array: { unit: "elem", verb: "legyen" },
9208
+ set: { unit: "elem", verb: "legyen" }
9209
+ };
9210
+ function getSizing(origin) {
9211
+ return Sizable[origin] ?? null;
9212
+ }
9213
+ const FormatDictionary = {
9214
+ regex: "bemenet",
9215
+ email: "email cím",
9216
+ url: "URL",
9217
+ emoji: "emoji",
9218
+ uuid: "UUID",
9219
+ uuidv4: "UUIDv4",
9220
+ uuidv6: "UUIDv6",
9221
+ nanoid: "nanoid",
9222
+ guid: "GUID",
9223
+ cuid: "cuid",
9224
+ cuid2: "cuid2",
9225
+ ulid: "ULID",
9226
+ xid: "XID",
9227
+ ksuid: "KSUID",
9228
+ datetime: "ISO időbélyeg",
9229
+ date: "ISO dátum",
9230
+ time: "ISO idő",
9231
+ duration: "ISO időintervallum",
9232
+ ipv4: "IPv4 cím",
9233
+ ipv6: "IPv6 cím",
9234
+ cidrv4: "IPv4 tartomány",
9235
+ cidrv6: "IPv6 tartomány",
9236
+ base64: "base64-kódolt string",
9237
+ base64url: "base64url-kódolt string",
9238
+ json_string: "JSON string",
9239
+ e164: "E.164 szám",
9240
+ jwt: "JWT",
9241
+ template_literal: "bemenet"
9242
+ };
9243
+ const TypeDictionary = {
9244
+ nan: "NaN",
9245
+ number: "szám",
9246
+ array: "tömb"
9247
+ };
9248
+ return (issue2) => {
9249
+ switch (issue2.code) {
9250
+ case "invalid_type": {
9251
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9252
+ const receivedType = parsedType(issue2.input);
9253
+ const received = TypeDictionary[receivedType] ?? receivedType;
9254
+ if (/^[A-Z]/.test(issue2.expected)) {
9255
+ return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
9256
+ }
9257
+ return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
9258
+ }
9259
+ case "invalid_value":
9260
+ if (issue2.values.length === 1)
9261
+ return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;
9262
+ return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue2.values, "|")}`;
9263
+ case "too_big": {
9264
+ const adj = issue2.inclusive ? "<=" : "<";
9265
+ const sizing = getSizing(issue2.origin);
9266
+ if (sizing)
9267
+ return `Túl nagy: ${issue2.origin ?? "érték"} mérete túl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
8874
9268
  return `Túl nagy: a bemeneti érték ${issue2.origin ?? "érték"} túl nagy: ${adj}${issue2.maximum.toString()}`;
8875
9269
  }
8876
9270
  case "too_small": {
@@ -8910,10 +9304,10 @@ var error17 = () => {
8910
9304
  };
8911
9305
  function hu_default() {
8912
9306
  return {
8913
- localeError: error17()
9307
+ localeError: error19()
8914
9308
  };
8915
9309
  }
8916
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
9310
+ // node_modules/zod/v4/locales/hy.js
8917
9311
  function getArmenianPlural(count, one, many) {
8918
9312
  return Math.abs(count) === 1 ? one : many;
8919
9313
  }
@@ -8924,7 +9318,7 @@ function withDefiniteArticle(word) {
8924
9318
  const lastChar = word[word.length - 1];
8925
9319
  return word + (vowels.includes(lastChar) ? "ն" : "ը");
8926
9320
  }
8927
- var error18 = () => {
9321
+ var error20 = () => {
8928
9322
  const Sizable = {
8929
9323
  string: {
8930
9324
  unit: {
@@ -9057,11 +9451,11 @@ var error18 = () => {
9057
9451
  };
9058
9452
  function hy_default() {
9059
9453
  return {
9060
- localeError: error18()
9454
+ localeError: error20()
9061
9455
  };
9062
9456
  }
9063
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
9064
- var error19 = () => {
9457
+ // node_modules/zod/v4/locales/id.js
9458
+ var error21 = () => {
9065
9459
  const Sizable = {
9066
9460
  string: { unit: "karakter", verb: "memiliki" },
9067
9461
  file: { unit: "byte", verb: "memiliki" },
@@ -9163,11 +9557,11 @@ var error19 = () => {
9163
9557
  };
9164
9558
  function id_default() {
9165
9559
  return {
9166
- localeError: error19()
9560
+ localeError: error21()
9167
9561
  };
9168
9562
  }
9169
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
9170
- var error20 = () => {
9563
+ // node_modules/zod/v4/locales/is.js
9564
+ var error22 = () => {
9171
9565
  const Sizable = {
9172
9566
  string: { unit: "stafi", verb: "að hafa" },
9173
9567
  file: { unit: "bæti", verb: "að hafa" },
@@ -9272,11 +9666,11 @@ var error20 = () => {
9272
9666
  };
9273
9667
  function is_default() {
9274
9668
  return {
9275
- localeError: error20()
9669
+ localeError: error22()
9276
9670
  };
9277
9671
  }
9278
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
9279
- var error21 = () => {
9672
+ // node_modules/zod/v4/locales/it.js
9673
+ var error23 = () => {
9280
9674
  const Sizable = {
9281
9675
  string: { unit: "caratteri", verb: "avere" },
9282
9676
  file: { unit: "byte", verb: "avere" },
@@ -9361,7 +9755,7 @@ var error21 = () => {
9361
9755
  return `Stringa non valida: deve includere "${_issue.includes}"`;
9362
9756
  if (_issue.format === "regex")
9363
9757
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
9364
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
9758
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
9365
9759
  }
9366
9760
  case "not_multiple_of":
9367
9761
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -9380,11 +9774,11 @@ var error21 = () => {
9380
9774
  };
9381
9775
  function it_default() {
9382
9776
  return {
9383
- localeError: error21()
9777
+ localeError: error23()
9384
9778
  };
9385
9779
  }
9386
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
9387
- var error22 = () => {
9780
+ // node_modules/zod/v4/locales/ja.js
9781
+ var error24 = () => {
9388
9782
  const Sizable = {
9389
9783
  string: { unit: "文字", verb: "である" },
9390
9784
  file: { unit: "バイト", verb: "である" },
@@ -9487,11 +9881,11 @@ var error22 = () => {
9487
9881
  };
9488
9882
  function ja_default() {
9489
9883
  return {
9490
- localeError: error22()
9884
+ localeError: error24()
9491
9885
  };
9492
9886
  }
9493
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
9494
- var error23 = () => {
9887
+ // node_modules/zod/v4/locales/ka.js
9888
+ var error25 = () => {
9495
9889
  const Sizable = {
9496
9890
  string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
9497
9891
  file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
@@ -9524,9 +9918,9 @@ var error23 = () => {
9524
9918
  ipv6: "IPv6 მისამართი",
9525
9919
  cidrv4: "IPv4 დიაპაზონი",
9526
9920
  cidrv6: "IPv6 დიაპაზონი",
9527
- base64: "base64-კოდირებული სტრინგი",
9528
- base64url: "base64url-კოდირებული სტრინგი",
9529
- json_string: "JSON სტრინგი",
9921
+ base64: "base64-კოდირებული ველი",
9922
+ base64url: "base64url-კოდირებული ველი",
9923
+ json_string: "JSON ველი",
9530
9924
  e164: "E.164 ნომერი",
9531
9925
  jwt: "JWT",
9532
9926
  template_literal: "შეყვანა"
@@ -9534,7 +9928,7 @@ var error23 = () => {
9534
9928
  const TypeDictionary = {
9535
9929
  nan: "NaN",
9536
9930
  number: "რიცხვი",
9537
- string: "სტრინგი",
9931
+ string: "ველი",
9538
9932
  boolean: "ბულეანი",
9539
9933
  function: "ფუნქცია",
9540
9934
  array: "მასივი"
@@ -9572,14 +9966,14 @@ var error23 = () => {
9572
9966
  case "invalid_format": {
9573
9967
  const _issue = issue2;
9574
9968
  if (_issue.format === "starts_with") {
9575
- return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
9969
+ return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
9576
9970
  }
9577
9971
  if (_issue.format === "ends_with")
9578
- return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
9972
+ return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
9579
9973
  if (_issue.format === "includes")
9580
- return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
9974
+ return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
9581
9975
  if (_issue.format === "regex")
9582
- return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
9976
+ return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
9583
9977
  return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
9584
9978
  }
9585
9979
  case "not_multiple_of":
@@ -9599,11 +9993,11 @@ var error23 = () => {
9599
9993
  };
9600
9994
  function ka_default() {
9601
9995
  return {
9602
- localeError: error23()
9996
+ localeError: error25()
9603
9997
  };
9604
9998
  }
9605
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
9606
- var error24 = () => {
9999
+ // node_modules/zod/v4/locales/km.js
10000
+ var error26 = () => {
9607
10001
  const Sizable = {
9608
10002
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
9609
10003
  file: { unit: "បៃ", verb: "គួរមាន" },
@@ -9709,16 +10103,16 @@ var error24 = () => {
9709
10103
  };
9710
10104
  function km_default() {
9711
10105
  return {
9712
- localeError: error24()
10106
+ localeError: error26()
9713
10107
  };
9714
10108
  }
9715
10109
 
9716
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
10110
+ // node_modules/zod/v4/locales/kh.js
9717
10111
  function kh_default() {
9718
10112
  return km_default();
9719
10113
  }
9720
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
9721
- var error25 = () => {
10114
+ // node_modules/zod/v4/locales/ko.js
10115
+ var error27 = () => {
9722
10116
  const Sizable = {
9723
10117
  string: { unit: "문자", verb: "to have" },
9724
10118
  file: { unit: "바이트", verb: "to have" },
@@ -9825,10 +10219,10 @@ var error25 = () => {
9825
10219
  };
9826
10220
  function ko_default() {
9827
10221
  return {
9828
- localeError: error25()
10222
+ localeError: error27()
9829
10223
  };
9830
10224
  }
9831
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
10225
+ // node_modules/zod/v4/locales/lt.js
9832
10226
  var capitalizeFirstCharacter = (text) => {
9833
10227
  return text.charAt(0).toUpperCase() + text.slice(1);
9834
10228
  };
@@ -9842,7 +10236,7 @@ function getUnitTypeFromNumber(number2) {
9842
10236
  return "one";
9843
10237
  return "few";
9844
10238
  }
9845
- var error26 = () => {
10239
+ var error28 = () => {
9846
10240
  const Sizable = {
9847
10241
  string: {
9848
10242
  unit: {
@@ -10028,11 +10422,11 @@ var error26 = () => {
10028
10422
  };
10029
10423
  function lt_default() {
10030
10424
  return {
10031
- localeError: error26()
10425
+ localeError: error28()
10032
10426
  };
10033
10427
  }
10034
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
10035
- var error27 = () => {
10428
+ // node_modules/zod/v4/locales/mk.js
10429
+ var error29 = () => {
10036
10430
  const Sizable = {
10037
10431
  string: { unit: "знаци", verb: "да имаат" },
10038
10432
  file: { unit: "бајти", verb: "да имаат" },
@@ -10137,11 +10531,11 @@ var error27 = () => {
10137
10531
  };
10138
10532
  function mk_default() {
10139
10533
  return {
10140
- localeError: error27()
10534
+ localeError: error29()
10141
10535
  };
10142
10536
  }
10143
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
10144
- var error28 = () => {
10537
+ // node_modules/zod/v4/locales/ms.js
10538
+ var error30 = () => {
10145
10539
  const Sizable = {
10146
10540
  string: { unit: "aksara", verb: "mempunyai" },
10147
10541
  file: { unit: "bait", verb: "mempunyai" },
@@ -10244,11 +10638,11 @@ var error28 = () => {
10244
10638
  };
10245
10639
  function ms_default() {
10246
10640
  return {
10247
- localeError: error28()
10641
+ localeError: error30()
10248
10642
  };
10249
10643
  }
10250
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
10251
- var error29 = () => {
10644
+ // node_modules/zod/v4/locales/nl.js
10645
+ var error31 = () => {
10252
10646
  const Sizable = {
10253
10647
  string: { unit: "tekens", verb: "heeft" },
10254
10648
  file: { unit: "bytes", verb: "heeft" },
@@ -10354,11 +10748,11 @@ var error29 = () => {
10354
10748
  };
10355
10749
  function nl_default() {
10356
10750
  return {
10357
- localeError: error29()
10751
+ localeError: error31()
10358
10752
  };
10359
10753
  }
10360
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
10361
- var error30 = () => {
10754
+ // node_modules/zod/v4/locales/no.js
10755
+ var error32 = () => {
10362
10756
  const Sizable = {
10363
10757
  string: { unit: "tegn", verb: "å ha" },
10364
10758
  file: { unit: "bytes", verb: "å ha" },
@@ -10462,11 +10856,11 @@ var error30 = () => {
10462
10856
  };
10463
10857
  function no_default() {
10464
10858
  return {
10465
- localeError: error30()
10859
+ localeError: error32()
10466
10860
  };
10467
10861
  }
10468
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
10469
- var error31 = () => {
10862
+ // node_modules/zod/v4/locales/ota.js
10863
+ var error33 = () => {
10470
10864
  const Sizable = {
10471
10865
  string: { unit: "harf", verb: "olmalıdır" },
10472
10866
  file: { unit: "bayt", verb: "olmalıdır" },
@@ -10571,11 +10965,11 @@ var error31 = () => {
10571
10965
  };
10572
10966
  function ota_default() {
10573
10967
  return {
10574
- localeError: error31()
10968
+ localeError: error33()
10575
10969
  };
10576
10970
  }
10577
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
10578
- var error32 = () => {
10971
+ // node_modules/zod/v4/locales/ps.js
10972
+ var error34 = () => {
10579
10973
  const Sizable = {
10580
10974
  string: { unit: "توکي", verb: "ولري" },
10581
10975
  file: { unit: "بایټس", verb: "ولري" },
@@ -10685,11 +11079,11 @@ var error32 = () => {
10685
11079
  };
10686
11080
  function ps_default() {
10687
11081
  return {
10688
- localeError: error32()
11082
+ localeError: error34()
10689
11083
  };
10690
11084
  }
10691
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
10692
- var error33 = () => {
11085
+ // node_modules/zod/v4/locales/pl.js
11086
+ var error35 = () => {
10693
11087
  const Sizable = {
10694
11088
  string: { unit: "znaków", verb: "mieć" },
10695
11089
  file: { unit: "bajtów", verb: "mieć" },
@@ -10794,11 +11188,11 @@ var error33 = () => {
10794
11188
  };
10795
11189
  function pl_default() {
10796
11190
  return {
10797
- localeError: error33()
11191
+ localeError: error35()
10798
11192
  };
10799
11193
  }
10800
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
10801
- var error34 = () => {
11194
+ // node_modules/zod/v4/locales/pt.js
11195
+ var error36 = () => {
10802
11196
  const Sizable = {
10803
11197
  string: { unit: "caracteres", verb: "ter" },
10804
11198
  file: { unit: "bytes", verb: "ter" },
@@ -10902,10 +11296,129 @@ var error34 = () => {
10902
11296
  };
10903
11297
  function pt_default() {
10904
11298
  return {
10905
- localeError: error34()
11299
+ localeError: error36()
11300
+ };
11301
+ }
11302
+ // node_modules/zod/v4/locales/ro.js
11303
+ var error37 = () => {
11304
+ const Sizable = {
11305
+ string: { unit: "caractere", verb: "să aibă" },
11306
+ file: { unit: "octeți", verb: "să aibă" },
11307
+ array: { unit: "elemente", verb: "să aibă" },
11308
+ set: { unit: "elemente", verb: "să aibă" },
11309
+ map: { unit: "intrări", verb: "să aibă" }
11310
+ };
11311
+ function getSizing(origin) {
11312
+ return Sizable[origin] ?? null;
11313
+ }
11314
+ const FormatDictionary = {
11315
+ regex: "intrare",
11316
+ email: "adresă de email",
11317
+ url: "URL",
11318
+ emoji: "emoji",
11319
+ uuid: "UUID",
11320
+ uuidv4: "UUIDv4",
11321
+ uuidv6: "UUIDv6",
11322
+ nanoid: "nanoid",
11323
+ guid: "GUID",
11324
+ cuid: "cuid",
11325
+ cuid2: "cuid2",
11326
+ ulid: "ULID",
11327
+ xid: "XID",
11328
+ ksuid: "KSUID",
11329
+ datetime: "dată și oră ISO",
11330
+ date: "dată ISO",
11331
+ time: "oră ISO",
11332
+ duration: "durată ISO",
11333
+ ipv4: "adresă IPv4",
11334
+ ipv6: "adresă IPv6",
11335
+ mac: "adresă MAC",
11336
+ cidrv4: "interval IPv4",
11337
+ cidrv6: "interval IPv6",
11338
+ base64: "șir codat base64",
11339
+ base64url: "șir codat base64url",
11340
+ json_string: "șir JSON",
11341
+ e164: "număr E.164",
11342
+ jwt: "JWT",
11343
+ template_literal: "intrare"
11344
+ };
11345
+ const TypeDictionary = {
11346
+ nan: "NaN",
11347
+ string: "șir",
11348
+ number: "număr",
11349
+ boolean: "boolean",
11350
+ function: "funcție",
11351
+ array: "matrice",
11352
+ object: "obiect",
11353
+ undefined: "nedefinit",
11354
+ symbol: "simbol",
11355
+ bigint: "număr mare",
11356
+ void: "void",
11357
+ never: "never",
11358
+ map: "hartă",
11359
+ set: "set"
11360
+ };
11361
+ return (issue2) => {
11362
+ switch (issue2.code) {
11363
+ case "invalid_type": {
11364
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11365
+ const receivedType = parsedType(issue2.input);
11366
+ const received = TypeDictionary[receivedType] ?? receivedType;
11367
+ return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
11368
+ }
11369
+ case "invalid_value":
11370
+ if (issue2.values.length === 1)
11371
+ return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
11372
+ return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
11373
+ case "too_big": {
11374
+ const adj = issue2.inclusive ? "<=" : "<";
11375
+ const sizing = getSizing(issue2.origin);
11376
+ if (sizing)
11377
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
11378
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
11379
+ }
11380
+ case "too_small": {
11381
+ const adj = issue2.inclusive ? ">=" : ">";
11382
+ const sizing = getSizing(issue2.origin);
11383
+ if (sizing) {
11384
+ return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
11385
+ }
11386
+ return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
11387
+ }
11388
+ case "invalid_format": {
11389
+ const _issue = issue2;
11390
+ if (_issue.format === "starts_with") {
11391
+ return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
11392
+ }
11393
+ if (_issue.format === "ends_with")
11394
+ return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
11395
+ if (_issue.format === "includes")
11396
+ return `Șir invalid: trebuie să includă "${_issue.includes}"`;
11397
+ if (_issue.format === "regex")
11398
+ return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
11399
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
11400
+ }
11401
+ case "not_multiple_of":
11402
+ return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
11403
+ case "unrecognized_keys":
11404
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
11405
+ case "invalid_key":
11406
+ return `Cheie invalidă în ${issue2.origin}`;
11407
+ case "invalid_union":
11408
+ return "Intrare invalidă";
11409
+ case "invalid_element":
11410
+ return `Valoare invalidă în ${issue2.origin}`;
11411
+ default:
11412
+ return `Intrare invalidă`;
11413
+ }
11414
+ };
11415
+ };
11416
+ function ro_default() {
11417
+ return {
11418
+ localeError: error37()
10906
11419
  };
10907
11420
  }
10908
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
11421
+ // node_modules/zod/v4/locales/ru.js
10909
11422
  function getRussianPlural(count, one, few, many) {
10910
11423
  const absCount = Math.abs(count);
10911
11424
  const lastDigit = absCount % 10;
@@ -10921,7 +11434,7 @@ function getRussianPlural(count, one, few, many) {
10921
11434
  }
10922
11435
  return many;
10923
11436
  }
10924
- var error35 = () => {
11437
+ var error38 = () => {
10925
11438
  const Sizable = {
10926
11439
  string: {
10927
11440
  unit: {
@@ -11058,11 +11571,11 @@ var error35 = () => {
11058
11571
  };
11059
11572
  function ru_default() {
11060
11573
  return {
11061
- localeError: error35()
11574
+ localeError: error38()
11062
11575
  };
11063
11576
  }
11064
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
11065
- var error36 = () => {
11577
+ // node_modules/zod/v4/locales/sl.js
11578
+ var error39 = () => {
11066
11579
  const Sizable = {
11067
11580
  string: { unit: "znakov", verb: "imeti" },
11068
11581
  file: { unit: "bajtov", verb: "imeti" },
@@ -11167,11 +11680,11 @@ var error36 = () => {
11167
11680
  };
11168
11681
  function sl_default() {
11169
11682
  return {
11170
- localeError: error36()
11683
+ localeError: error39()
11171
11684
  };
11172
11685
  }
11173
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
11174
- var error37 = () => {
11686
+ // node_modules/zod/v4/locales/sv.js
11687
+ var error40 = () => {
11175
11688
  const Sizable = {
11176
11689
  string: { unit: "tecken", verb: "att ha" },
11177
11690
  file: { unit: "bytes", verb: "att ha" },
@@ -11277,11 +11790,11 @@ var error37 = () => {
11277
11790
  };
11278
11791
  function sv_default() {
11279
11792
  return {
11280
- localeError: error37()
11793
+ localeError: error40()
11281
11794
  };
11282
11795
  }
11283
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
11284
- var error38 = () => {
11796
+ // node_modules/zod/v4/locales/ta.js
11797
+ var error41 = () => {
11285
11798
  const Sizable = {
11286
11799
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
11287
11800
  file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -11387,11 +11900,11 @@ var error38 = () => {
11387
11900
  };
11388
11901
  function ta_default() {
11389
11902
  return {
11390
- localeError: error38()
11903
+ localeError: error41()
11391
11904
  };
11392
11905
  }
11393
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
11394
- var error39 = () => {
11906
+ // node_modules/zod/v4/locales/th.js
11907
+ var error42 = () => {
11395
11908
  const Sizable = {
11396
11909
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
11397
11910
  file: { unit: "ไบต์", verb: "ควรมี" },
@@ -11497,11 +12010,11 @@ var error39 = () => {
11497
12010
  };
11498
12011
  function th_default() {
11499
12012
  return {
11500
- localeError: error39()
12013
+ localeError: error42()
11501
12014
  };
11502
12015
  }
11503
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
11504
- var error40 = () => {
12016
+ // node_modules/zod/v4/locales/tr.js
12017
+ var error43 = () => {
11505
12018
  const Sizable = {
11506
12019
  string: { unit: "karakter", verb: "olmalı" },
11507
12020
  file: { unit: "bayt", verb: "olmalı" },
@@ -11602,11 +12115,11 @@ var error40 = () => {
11602
12115
  };
11603
12116
  function tr_default() {
11604
12117
  return {
11605
- localeError: error40()
12118
+ localeError: error43()
11606
12119
  };
11607
12120
  }
11608
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
11609
- var error41 = () => {
12121
+ // node_modules/zod/v4/locales/uk.js
12122
+ var error44 = () => {
11610
12123
  const Sizable = {
11611
12124
  string: { unit: "символів", verb: "матиме" },
11612
12125
  file: { unit: "байтів", verb: "матиме" },
@@ -11710,16 +12223,16 @@ var error41 = () => {
11710
12223
  };
11711
12224
  function uk_default() {
11712
12225
  return {
11713
- localeError: error41()
12226
+ localeError: error44()
11714
12227
  };
11715
12228
  }
11716
12229
 
11717
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
12230
+ // node_modules/zod/v4/locales/ua.js
11718
12231
  function ua_default() {
11719
12232
  return uk_default();
11720
12233
  }
11721
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
11722
- var error42 = () => {
12234
+ // node_modules/zod/v4/locales/ur.js
12235
+ var error45 = () => {
11723
12236
  const Sizable = {
11724
12237
  string: { unit: "حروف", verb: "ہونا" },
11725
12238
  file: { unit: "بائٹس", verb: "ہونا" },
@@ -11825,16 +12338,17 @@ var error42 = () => {
11825
12338
  };
11826
12339
  function ur_default() {
11827
12340
  return {
11828
- localeError: error42()
12341
+ localeError: error45()
11829
12342
  };
11830
12343
  }
11831
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
11832
- var error43 = () => {
12344
+ // node_modules/zod/v4/locales/uz.js
12345
+ var error46 = () => {
11833
12346
  const Sizable = {
11834
12347
  string: { unit: "belgi", verb: "bo‘lishi kerak" },
11835
12348
  file: { unit: "bayt", verb: "bo‘lishi kerak" },
11836
12349
  array: { unit: "element", verb: "bo‘lishi kerak" },
11837
- set: { unit: "element", verb: "bo‘lishi kerak" }
12350
+ set: { unit: "element", verb: "bo‘lishi kerak" },
12351
+ map: { unit: "yozuv", verb: "bo‘lishi kerak" }
11838
12352
  };
11839
12353
  function getSizing(origin) {
11840
12354
  return Sizable[origin] ?? null;
@@ -11934,11 +12448,11 @@ var error43 = () => {
11934
12448
  };
11935
12449
  function uz_default() {
11936
12450
  return {
11937
- localeError: error43()
12451
+ localeError: error46()
11938
12452
  };
11939
12453
  }
11940
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
11941
- var error44 = () => {
12454
+ // node_modules/zod/v4/locales/vi.js
12455
+ var error47 = () => {
11942
12456
  const Sizable = {
11943
12457
  string: { unit: "ký tự", verb: "có" },
11944
12458
  file: { unit: "byte", verb: "có" },
@@ -12042,11 +12556,11 @@ var error44 = () => {
12042
12556
  };
12043
12557
  function vi_default() {
12044
12558
  return {
12045
- localeError: error44()
12559
+ localeError: error47()
12046
12560
  };
12047
12561
  }
12048
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
12049
- var error45 = () => {
12562
+ // node_modules/zod/v4/locales/zh-CN.js
12563
+ var error48 = () => {
12050
12564
  const Sizable = {
12051
12565
  string: { unit: "字符", verb: "包含" },
12052
12566
  file: { unit: "字节", verb: "包含" },
@@ -12151,11 +12665,11 @@ var error45 = () => {
12151
12665
  };
12152
12666
  function zh_CN_default() {
12153
12667
  return {
12154
- localeError: error45()
12668
+ localeError: error48()
12155
12669
  };
12156
12670
  }
12157
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
12158
- var error46 = () => {
12671
+ // node_modules/zod/v4/locales/zh-TW.js
12672
+ var error49 = () => {
12159
12673
  const Sizable = {
12160
12674
  string: { unit: "字元", verb: "擁有" },
12161
12675
  file: { unit: "位元組", verb: "擁有" },
@@ -12258,11 +12772,11 @@ var error46 = () => {
12258
12772
  };
12259
12773
  function zh_TW_default() {
12260
12774
  return {
12261
- localeError: error46()
12775
+ localeError: error49()
12262
12776
  };
12263
12777
  }
12264
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
12265
- var error47 = () => {
12778
+ // node_modules/zod/v4/locales/yo.js
12779
+ var error50 = () => {
12266
12780
  const Sizable = {
12267
12781
  string: { unit: "àmi", verb: "ní" },
12268
12782
  file: { unit: "bytes", verb: "ní" },
@@ -12365,11 +12879,11 @@ var error47 = () => {
12365
12879
  };
12366
12880
  function yo_default() {
12367
12881
  return {
12368
- localeError: error47()
12882
+ localeError: error50()
12369
12883
  };
12370
12884
  }
12371
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
12372
- var _a;
12885
+ // node_modules/zod/v4/core/registries.js
12886
+ var _a2;
12373
12887
  var $output = Symbol("ZodOutput");
12374
12888
  var $input = Symbol("ZodInput");
12375
12889
 
@@ -12416,9 +12930,9 @@ class $ZodRegistry {
12416
12930
  function registry() {
12417
12931
  return new $ZodRegistry;
12418
12932
  }
12419
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
12933
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
12420
12934
  var globalRegistry = globalThis.__zod_globalRegistry;
12421
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
12935
+ // node_modules/zod/v4/core/api.js
12422
12936
  function _string(Class2, params) {
12423
12937
  return new Class2({
12424
12938
  type: "string",
@@ -13222,7 +13736,7 @@ function _refine(Class2, fn, _params) {
13222
13736
  });
13223
13737
  return schema;
13224
13738
  }
13225
- function _superRefine(fn) {
13739
+ function _superRefine(fn, params) {
13226
13740
  const ch = _check((payload) => {
13227
13741
  payload.addIssue = (issue2) => {
13228
13742
  if (typeof issue2 === "string") {
@@ -13239,7 +13753,7 @@ function _superRefine(fn) {
13239
13753
  }
13240
13754
  };
13241
13755
  return fn(payload.value, payload);
13242
- });
13756
+ }, params);
13243
13757
  return ch;
13244
13758
  }
13245
13759
  function _check(fn, params) {
@@ -13338,7 +13852,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
13338
13852
  const inst = new Class2(def);
13339
13853
  return inst;
13340
13854
  }
13341
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
13855
+ // node_modules/zod/v4/core/to-json-schema.js
13342
13856
  function initializeContext(params) {
13343
13857
  let target = params?.target ?? "draft-2020-12";
13344
13858
  if (target === "draft-4")
@@ -13360,7 +13874,7 @@ function initializeContext(params) {
13360
13874
  };
13361
13875
  }
13362
13876
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
13363
- var _a2;
13877
+ var _a3;
13364
13878
  const def = schema._zod.def;
13365
13879
  const seen = ctx.seen.get(schema);
13366
13880
  if (seen) {
@@ -13407,8 +13921,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
13407
13921
  delete result.schema.examples;
13408
13922
  delete result.schema.default;
13409
13923
  }
13410
- if (ctx.io === "input" && result.schema._prefault)
13411
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
13924
+ if (ctx.io === "input" && "_prefault" in result.schema)
13925
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
13412
13926
  delete result.schema._prefault;
13413
13927
  const _result = ctx.seen.get(schema);
13414
13928
  return _result.schema;
@@ -13585,10 +14099,15 @@ function finalize(ctx, schema) {
13585
14099
  result.$id = ctx.external.uri(id);
13586
14100
  }
13587
14101
  Object.assign(result, root.def ?? root.schema);
14102
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
14103
+ if (rootMetaId !== undefined && result.id === rootMetaId)
14104
+ delete result.id;
13588
14105
  const defs = ctx.external?.defs ?? {};
13589
14106
  for (const entry of ctx.seen.entries()) {
13590
14107
  const seen = entry[1];
13591
14108
  if (seen.def && seen.defId) {
14109
+ if (seen.def.id === seen.defId)
14110
+ delete seen.def.id;
13592
14111
  defs[seen.defId] = seen.def;
13593
14112
  }
13594
14113
  }
@@ -13683,7 +14202,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
13683
14202
  extractDefs(ctx, schema);
13684
14203
  return finalize(ctx, schema);
13685
14204
  };
13686
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
14205
+ // node_modules/zod/v4/core/json-schema-processors.js
13687
14206
  var formatMap = {
13688
14207
  guid: "uuid",
13689
14208
  url: "uri",
@@ -13730,39 +14249,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
13730
14249
  json.type = "integer";
13731
14250
  else
13732
14251
  json.type = "number";
13733
- if (typeof exclusiveMinimum === "number") {
13734
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
14252
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
14253
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
14254
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
14255
+ if (exMin) {
14256
+ if (legacy) {
13735
14257
  json.minimum = exclusiveMinimum;
13736
14258
  json.exclusiveMinimum = true;
13737
14259
  } else {
13738
14260
  json.exclusiveMinimum = exclusiveMinimum;
13739
14261
  }
13740
- }
13741
- if (typeof minimum === "number") {
14262
+ } else if (typeof minimum === "number") {
13742
14263
  json.minimum = minimum;
13743
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
13744
- if (exclusiveMinimum >= minimum)
13745
- delete json.minimum;
13746
- else
13747
- delete json.exclusiveMinimum;
13748
- }
13749
14264
  }
13750
- if (typeof exclusiveMaximum === "number") {
13751
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
14265
+ if (exMax) {
14266
+ if (legacy) {
13752
14267
  json.maximum = exclusiveMaximum;
13753
14268
  json.exclusiveMaximum = true;
13754
14269
  } else {
13755
14270
  json.exclusiveMaximum = exclusiveMaximum;
13756
14271
  }
13757
- }
13758
- if (typeof maximum === "number") {
14272
+ } else if (typeof maximum === "number") {
13759
14273
  json.maximum = maximum;
13760
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
13761
- if (exclusiveMaximum <= maximum)
13762
- delete json.maximum;
13763
- else
13764
- delete json.exclusiveMaximum;
13765
- }
13766
14274
  }
13767
14275
  if (typeof multipleOf === "number")
13768
14276
  json.multipleOf = multipleOf;
@@ -13930,7 +14438,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
13930
14438
  if (typeof maximum === "number")
13931
14439
  json.maxItems = maximum;
13932
14440
  json.type = "array";
13933
- json.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
14441
+ json.items = process2(def.element, ctx, {
14442
+ ...params,
14443
+ path: [...params.path, "items"]
14444
+ });
13934
14445
  };
13935
14446
  var objectProcessor = (schema, ctx, _json, params) => {
13936
14447
  const json = _json;
@@ -14228,7 +14739,7 @@ function toJSONSchema(input, params) {
14228
14739
  extractDefs(ctx, input);
14229
14740
  return finalize(ctx, input);
14230
14741
  }
14231
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
14742
+ // node_modules/zod/v4/core/json-schema-generator.js
14232
14743
  class JSONSchemaGenerator {
14233
14744
  get metadataRegistry() {
14234
14745
  return this.ctx.metadataRegistry;
@@ -14287,9 +14798,9 @@ class JSONSchemaGenerator {
14287
14798
  return plainResult;
14288
14799
  }
14289
14800
  }
14290
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
14801
+ // node_modules/zod/v4/core/json-schema.js
14291
14802
  var exports_json_schema = {};
14292
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
14803
+ // node_modules/zod/v4/classic/schemas.js
14293
14804
  var exports_schemas2 = {};
14294
14805
  __export(exports_schemas2, {
14295
14806
  xor: () => xor,
@@ -14349,6 +14860,7 @@ __export(exports_schemas2, {
14349
14860
  json: () => json,
14350
14861
  ipv6: () => ipv62,
14351
14862
  ipv4: () => ipv42,
14863
+ invertCodec: () => invertCodec,
14352
14864
  intersection: () => intersection,
14353
14865
  int64: () => int64,
14354
14866
  int32: () => int32,
@@ -14458,7 +14970,7 @@ __export(exports_schemas2, {
14458
14970
  ZodAny: () => ZodAny
14459
14971
  });
14460
14972
 
14461
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
14973
+ // node_modules/zod/v4/classic/checks.js
14462
14974
  var exports_checks2 = {};
14463
14975
  __export(exports_checks2, {
14464
14976
  uppercase: () => _uppercase,
@@ -14492,7 +15004,7 @@ __export(exports_checks2, {
14492
15004
  endsWith: () => _endsWith
14493
15005
  });
14494
15006
 
14495
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
15007
+ // node_modules/zod/v4/classic/iso.js
14496
15008
  var exports_iso = {};
14497
15009
  __export(exports_iso, {
14498
15010
  time: () => time2,
@@ -14533,7 +15045,7 @@ function duration2(params) {
14533
15045
  return _isoDuration(ZodISODuration, params);
14534
15046
  }
14535
15047
 
14536
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
15048
+ // node_modules/zod/v4/classic/errors.js
14537
15049
  var initializer2 = (inst, issues) => {
14538
15050
  $ZodError.init(inst, issues);
14539
15051
  inst.name = "ZodError";
@@ -14563,12 +15075,12 @@ var initializer2 = (inst, issues) => {
14563
15075
  }
14564
15076
  });
14565
15077
  };
14566
- var ZodError = $constructor("ZodError", initializer2);
14567
- var ZodRealError = $constructor("ZodError", initializer2, {
15078
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
15079
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
14568
15080
  Parent: Error
14569
15081
  });
14570
15082
 
14571
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
15083
+ // node_modules/zod/v4/classic/parse.js
14572
15084
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
14573
15085
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
14574
15086
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -14582,7 +15094,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
14582
15094
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
14583
15095
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
14584
15096
 
14585
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
15097
+ // node_modules/zod/v4/classic/schemas.js
15098
+ var _installedGroups = /* @__PURE__ */ new WeakMap;
15099
+ function _installLazyMethods(inst, group, methods) {
15100
+ const proto = Object.getPrototypeOf(inst);
15101
+ let installed = _installedGroups.get(proto);
15102
+ if (!installed) {
15103
+ installed = new Set;
15104
+ _installedGroups.set(proto, installed);
15105
+ }
15106
+ if (installed.has(group))
15107
+ return;
15108
+ installed.add(group);
15109
+ for (const key in methods) {
15110
+ const fn = methods[key];
15111
+ Object.defineProperty(proto, key, {
15112
+ configurable: true,
15113
+ enumerable: false,
15114
+ get() {
15115
+ const bound = fn.bind(this);
15116
+ Object.defineProperty(this, key, {
15117
+ configurable: true,
15118
+ writable: true,
15119
+ enumerable: true,
15120
+ value: bound
15121
+ });
15122
+ return bound;
15123
+ },
15124
+ set(v) {
15125
+ Object.defineProperty(this, key, {
15126
+ configurable: true,
15127
+ writable: true,
15128
+ enumerable: true,
15129
+ value: v
15130
+ });
15131
+ }
15132
+ });
15133
+ }
15134
+ }
14586
15135
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
14587
15136
  $ZodType.init(inst, def);
14588
15137
  Object.assign(inst["~standard"], {
@@ -14595,23 +15144,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
14595
15144
  inst.def = def;
14596
15145
  inst.type = def.type;
14597
15146
  Object.defineProperty(inst, "_def", { value: def });
14598
- inst.check = (...checks2) => {
14599
- return inst.clone(exports_util.mergeDefs(def, {
14600
- checks: [
14601
- ...def.checks ?? [],
14602
- ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
14603
- ]
14604
- }), {
14605
- parent: true
14606
- });
14607
- };
14608
- inst.with = inst.check;
14609
- inst.clone = (def2, params) => clone(inst, def2, params);
14610
- inst.brand = () => inst;
14611
- inst.register = (reg, meta2) => {
14612
- reg.add(inst, meta2);
14613
- return inst;
14614
- };
14615
15147
  inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
14616
15148
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
14617
15149
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -14625,45 +15157,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
14625
15157
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
14626
15158
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
14627
15159
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
14628
- inst.refine = (check, params) => inst.check(refine(check, params));
14629
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
14630
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
14631
- inst.optional = () => optional(inst);
14632
- inst.exactOptional = () => exactOptional(inst);
14633
- inst.nullable = () => nullable(inst);
14634
- inst.nullish = () => optional(nullable(inst));
14635
- inst.nonoptional = (params) => nonoptional(inst, params);
14636
- inst.array = () => array(inst);
14637
- inst.or = (arg) => union([inst, arg]);
14638
- inst.and = (arg) => intersection(inst, arg);
14639
- inst.transform = (tx) => pipe(inst, transform(tx));
14640
- inst.default = (def2) => _default2(inst, def2);
14641
- inst.prefault = (def2) => prefault(inst, def2);
14642
- inst.catch = (params) => _catch2(inst, params);
14643
- inst.pipe = (target) => pipe(inst, target);
14644
- inst.readonly = () => readonly(inst);
14645
- inst.describe = (description) => {
14646
- const cl = inst.clone();
14647
- globalRegistry.add(cl, { description });
14648
- return cl;
14649
- };
15160
+ _installLazyMethods(inst, "ZodType", {
15161
+ check(...chks) {
15162
+ const def2 = this.def;
15163
+ return this.clone(exports_util.mergeDefs(def2, {
15164
+ checks: [
15165
+ ...def2.checks ?? [],
15166
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
15167
+ ]
15168
+ }), { parent: true });
15169
+ },
15170
+ with(...chks) {
15171
+ return this.check(...chks);
15172
+ },
15173
+ clone(def2, params) {
15174
+ return clone(this, def2, params);
15175
+ },
15176
+ brand() {
15177
+ return this;
15178
+ },
15179
+ register(reg, meta2) {
15180
+ reg.add(this, meta2);
15181
+ return this;
15182
+ },
15183
+ refine(check, params) {
15184
+ return this.check(refine(check, params));
15185
+ },
15186
+ superRefine(refinement, params) {
15187
+ return this.check(superRefine(refinement, params));
15188
+ },
15189
+ overwrite(fn) {
15190
+ return this.check(_overwrite(fn));
15191
+ },
15192
+ optional() {
15193
+ return optional(this);
15194
+ },
15195
+ exactOptional() {
15196
+ return exactOptional(this);
15197
+ },
15198
+ nullable() {
15199
+ return nullable(this);
15200
+ },
15201
+ nullish() {
15202
+ return optional(nullable(this));
15203
+ },
15204
+ nonoptional(params) {
15205
+ return nonoptional(this, params);
15206
+ },
15207
+ array() {
15208
+ return array(this);
15209
+ },
15210
+ or(arg) {
15211
+ return union([this, arg]);
15212
+ },
15213
+ and(arg) {
15214
+ return intersection(this, arg);
15215
+ },
15216
+ transform(tx) {
15217
+ return pipe(this, transform(tx));
15218
+ },
15219
+ default(d) {
15220
+ return _default2(this, d);
15221
+ },
15222
+ prefault(d) {
15223
+ return prefault(this, d);
15224
+ },
15225
+ catch(params) {
15226
+ return _catch2(this, params);
15227
+ },
15228
+ pipe(target) {
15229
+ return pipe(this, target);
15230
+ },
15231
+ readonly() {
15232
+ return readonly(this);
15233
+ },
15234
+ describe(description) {
15235
+ const cl = this.clone();
15236
+ globalRegistry.add(cl, { description });
15237
+ return cl;
15238
+ },
15239
+ meta(...args) {
15240
+ if (args.length === 0)
15241
+ return globalRegistry.get(this);
15242
+ const cl = this.clone();
15243
+ globalRegistry.add(cl, args[0]);
15244
+ return cl;
15245
+ },
15246
+ isOptional() {
15247
+ return this.safeParse(undefined).success;
15248
+ },
15249
+ isNullable() {
15250
+ return this.safeParse(null).success;
15251
+ },
15252
+ apply(fn) {
15253
+ return fn(this);
15254
+ }
15255
+ });
14650
15256
  Object.defineProperty(inst, "description", {
14651
15257
  get() {
14652
15258
  return globalRegistry.get(inst)?.description;
14653
15259
  },
14654
15260
  configurable: true
14655
15261
  });
14656
- inst.meta = (...args) => {
14657
- if (args.length === 0) {
14658
- return globalRegistry.get(inst);
14659
- }
14660
- const cl = inst.clone();
14661
- globalRegistry.add(cl, args[0]);
14662
- return cl;
14663
- };
14664
- inst.isOptional = () => inst.safeParse(undefined).success;
14665
- inst.isNullable = () => inst.safeParse(null).success;
14666
- inst.apply = (fn) => fn(inst);
14667
15262
  return inst;
14668
15263
  });
14669
15264
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -14674,21 +15269,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
14674
15269
  inst.format = bag.format ?? null;
14675
15270
  inst.minLength = bag.minimum ?? null;
14676
15271
  inst.maxLength = bag.maximum ?? null;
14677
- inst.regex = (...args) => inst.check(_regex(...args));
14678
- inst.includes = (...args) => inst.check(_includes(...args));
14679
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
14680
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
14681
- inst.min = (...args) => inst.check(_minLength(...args));
14682
- inst.max = (...args) => inst.check(_maxLength(...args));
14683
- inst.length = (...args) => inst.check(_length(...args));
14684
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
14685
- inst.lowercase = (params) => inst.check(_lowercase(params));
14686
- inst.uppercase = (params) => inst.check(_uppercase(params));
14687
- inst.trim = () => inst.check(_trim());
14688
- inst.normalize = (...args) => inst.check(_normalize(...args));
14689
- inst.toLowerCase = () => inst.check(_toLowerCase());
14690
- inst.toUpperCase = () => inst.check(_toUpperCase());
14691
- inst.slugify = () => inst.check(_slugify());
15272
+ _installLazyMethods(inst, "_ZodString", {
15273
+ regex(...args) {
15274
+ return this.check(_regex(...args));
15275
+ },
15276
+ includes(...args) {
15277
+ return this.check(_includes(...args));
15278
+ },
15279
+ startsWith(...args) {
15280
+ return this.check(_startsWith(...args));
15281
+ },
15282
+ endsWith(...args) {
15283
+ return this.check(_endsWith(...args));
15284
+ },
15285
+ min(...args) {
15286
+ return this.check(_minLength(...args));
15287
+ },
15288
+ max(...args) {
15289
+ return this.check(_maxLength(...args));
15290
+ },
15291
+ length(...args) {
15292
+ return this.check(_length(...args));
15293
+ },
15294
+ nonempty(...args) {
15295
+ return this.check(_minLength(1, ...args));
15296
+ },
15297
+ lowercase(params) {
15298
+ return this.check(_lowercase(params));
15299
+ },
15300
+ uppercase(params) {
15301
+ return this.check(_uppercase(params));
15302
+ },
15303
+ trim() {
15304
+ return this.check(_trim());
15305
+ },
15306
+ normalize(...args) {
15307
+ return this.check(_normalize(...args));
15308
+ },
15309
+ toLowerCase() {
15310
+ return this.check(_toLowerCase());
15311
+ },
15312
+ toUpperCase() {
15313
+ return this.check(_toUpperCase());
15314
+ },
15315
+ slugify() {
15316
+ return this.check(_slugify());
15317
+ }
15318
+ });
14692
15319
  });
14693
15320
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
14694
15321
  $ZodString.init(inst, def);
@@ -14767,7 +15394,7 @@ function url(params) {
14767
15394
  }
14768
15395
  function httpUrl(params) {
14769
15396
  return _url(ZodURL, {
14770
- protocol: /^https?$/,
15397
+ protocol: exports_regexes.httpProtocol,
14771
15398
  hostname: exports_regexes.domain,
14772
15399
  ...exports_util.normalizeParams(params)
14773
15400
  });
@@ -14909,21 +15536,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
14909
15536
  $ZodNumber.init(inst, def);
14910
15537
  ZodType.init(inst, def);
14911
15538
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
14912
- inst.gt = (value, params) => inst.check(_gt(value, params));
14913
- inst.gte = (value, params) => inst.check(_gte(value, params));
14914
- inst.min = (value, params) => inst.check(_gte(value, params));
14915
- inst.lt = (value, params) => inst.check(_lt(value, params));
14916
- inst.lte = (value, params) => inst.check(_lte(value, params));
14917
- inst.max = (value, params) => inst.check(_lte(value, params));
14918
- inst.int = (params) => inst.check(int(params));
14919
- inst.safe = (params) => inst.check(int(params));
14920
- inst.positive = (params) => inst.check(_gt(0, params));
14921
- inst.nonnegative = (params) => inst.check(_gte(0, params));
14922
- inst.negative = (params) => inst.check(_lt(0, params));
14923
- inst.nonpositive = (params) => inst.check(_lte(0, params));
14924
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
14925
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
14926
- inst.finite = () => inst;
15539
+ _installLazyMethods(inst, "ZodNumber", {
15540
+ gt(value, params) {
15541
+ return this.check(_gt(value, params));
15542
+ },
15543
+ gte(value, params) {
15544
+ return this.check(_gte(value, params));
15545
+ },
15546
+ min(value, params) {
15547
+ return this.check(_gte(value, params));
15548
+ },
15549
+ lt(value, params) {
15550
+ return this.check(_lt(value, params));
15551
+ },
15552
+ lte(value, params) {
15553
+ return this.check(_lte(value, params));
15554
+ },
15555
+ max(value, params) {
15556
+ return this.check(_lte(value, params));
15557
+ },
15558
+ int(params) {
15559
+ return this.check(int(params));
15560
+ },
15561
+ safe(params) {
15562
+ return this.check(int(params));
15563
+ },
15564
+ positive(params) {
15565
+ return this.check(_gt(0, params));
15566
+ },
15567
+ nonnegative(params) {
15568
+ return this.check(_gte(0, params));
15569
+ },
15570
+ negative(params) {
15571
+ return this.check(_lt(0, params));
15572
+ },
15573
+ nonpositive(params) {
15574
+ return this.check(_lte(0, params));
15575
+ },
15576
+ multipleOf(value, params) {
15577
+ return this.check(_multipleOf(value, params));
15578
+ },
15579
+ step(value, params) {
15580
+ return this.check(_multipleOf(value, params));
15581
+ },
15582
+ finite() {
15583
+ return this;
15584
+ }
15585
+ });
14927
15586
  const bag = inst._zod.bag;
14928
15587
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
14929
15588
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -15070,11 +15729,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
15070
15729
  ZodType.init(inst, def);
15071
15730
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
15072
15731
  inst.element = def.element;
15073
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
15074
- inst.nonempty = (params) => inst.check(_minLength(1, params));
15075
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
15076
- inst.length = (len, params) => inst.check(_length(len, params));
15077
- inst.unwrap = () => inst.element;
15732
+ _installLazyMethods(inst, "ZodArray", {
15733
+ min(n, params) {
15734
+ return this.check(_minLength(n, params));
15735
+ },
15736
+ nonempty(params) {
15737
+ return this.check(_minLength(1, params));
15738
+ },
15739
+ max(n, params) {
15740
+ return this.check(_maxLength(n, params));
15741
+ },
15742
+ length(n, params) {
15743
+ return this.check(_length(n, params));
15744
+ },
15745
+ unwrap() {
15746
+ return this.element;
15747
+ }
15748
+ });
15078
15749
  });
15079
15750
  function array(element, params) {
15080
15751
  return _array(ZodArray, element, params);
@@ -15090,23 +15761,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
15090
15761
  exports_util.defineLazy(inst, "shape", () => {
15091
15762
  return def.shape;
15092
15763
  });
15093
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
15094
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
15095
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
15096
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
15097
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
15098
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
15099
- inst.extend = (incoming) => {
15100
- return exports_util.extend(inst, incoming);
15101
- };
15102
- inst.safeExtend = (incoming) => {
15103
- return exports_util.safeExtend(inst, incoming);
15104
- };
15105
- inst.merge = (other) => exports_util.merge(inst, other);
15106
- inst.pick = (mask) => exports_util.pick(inst, mask);
15107
- inst.omit = (mask) => exports_util.omit(inst, mask);
15108
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
15109
- inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
15764
+ _installLazyMethods(inst, "ZodObject", {
15765
+ keyof() {
15766
+ return _enum2(Object.keys(this._zod.def.shape));
15767
+ },
15768
+ catchall(catchall) {
15769
+ return this.clone({ ...this._zod.def, catchall });
15770
+ },
15771
+ passthrough() {
15772
+ return this.clone({ ...this._zod.def, catchall: unknown() });
15773
+ },
15774
+ loose() {
15775
+ return this.clone({ ...this._zod.def, catchall: unknown() });
15776
+ },
15777
+ strict() {
15778
+ return this.clone({ ...this._zod.def, catchall: never() });
15779
+ },
15780
+ strip() {
15781
+ return this.clone({ ...this._zod.def, catchall: undefined });
15782
+ },
15783
+ extend(incoming) {
15784
+ return exports_util.extend(this, incoming);
15785
+ },
15786
+ safeExtend(incoming) {
15787
+ return exports_util.safeExtend(this, incoming);
15788
+ },
15789
+ merge(other) {
15790
+ return exports_util.merge(this, other);
15791
+ },
15792
+ pick(mask) {
15793
+ return exports_util.pick(this, mask);
15794
+ },
15795
+ omit(mask) {
15796
+ return exports_util.omit(this, mask);
15797
+ },
15798
+ partial(...args) {
15799
+ return exports_util.partial(ZodOptional, this, args[0]);
15800
+ },
15801
+ required(...args) {
15802
+ return exports_util.required(ZodNonOptional, this, args[0]);
15803
+ }
15804
+ });
15110
15805
  });
15111
15806
  function object(shape, params) {
15112
15807
  const def = {
@@ -15211,6 +15906,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
15211
15906
  inst.valueType = def.valueType;
15212
15907
  });
15213
15908
  function record(keyType, valueType, params) {
15909
+ if (!valueType || !valueType._zod) {
15910
+ return new ZodRecord({
15911
+ type: "record",
15912
+ keyType: string2(),
15913
+ valueType: keyType,
15914
+ ...exports_util.normalizeParams(valueType)
15915
+ });
15916
+ }
15214
15917
  return new ZodRecord({
15215
15918
  type: "record",
15216
15919
  keyType,
@@ -15539,6 +16242,16 @@ function codec(in_, out, params) {
15539
16242
  reverseTransform: params.encode
15540
16243
  });
15541
16244
  }
16245
+ function invertCodec(codec2) {
16246
+ const def = codec2._zod.def;
16247
+ return new ZodCodec({
16248
+ type: "pipe",
16249
+ in: def.out,
16250
+ out: def.in,
16251
+ transform: def.reverseTransform,
16252
+ reverseTransform: def.transform
16253
+ });
16254
+ }
15542
16255
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
15543
16256
  $ZodReadonly.init(inst, def);
15544
16257
  ZodType.init(inst, def);
@@ -15617,8 +16330,8 @@ function custom(fn, _params) {
15617
16330
  function refine(fn, _params = {}) {
15618
16331
  return _refine(ZodCustom, fn, _params);
15619
16332
  }
15620
- function superRefine(fn) {
15621
- return _superRefine(fn);
16333
+ function superRefine(fn, params) {
16334
+ return _superRefine(fn, params);
15622
16335
  }
15623
16336
  var describe2 = describe;
15624
16337
  var meta2 = meta;
@@ -15658,7 +16371,7 @@ function json(params) {
15658
16371
  function preprocess(fn, schema) {
15659
16372
  return pipe(transform(fn), schema);
15660
16373
  }
15661
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
16374
+ // node_modules/zod/v4/classic/compat.js
15662
16375
  var ZodIssueCode = {
15663
16376
  invalid_type: "invalid_type",
15664
16377
  too_big: "too_big",
@@ -15682,13 +16395,13 @@ function getErrorMap() {
15682
16395
  }
15683
16396
  var ZodFirstPartyTypeKind;
15684
16397
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
15685
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
16398
+ // node_modules/zod/v4/classic/from-json-schema.js
15686
16399
  var z = {
15687
16400
  ...exports_schemas2,
15688
16401
  ...exports_checks2,
15689
16402
  iso: exports_iso
15690
16403
  };
15691
- var RECOGNIZED_KEYS = new Set([
16404
+ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15692
16405
  "$schema",
15693
16406
  "$ref",
15694
16407
  "$defs",
@@ -16062,12 +16775,6 @@ function convertBaseSchema(schema, ctx) {
16062
16775
  default:
16063
16776
  throw new Error(`Unsupported type: ${type}`);
16064
16777
  }
16065
- if (schema.description) {
16066
- zodSchema = zodSchema.describe(schema.description);
16067
- }
16068
- if (schema.default !== undefined) {
16069
- zodSchema = zodSchema.default(schema.default);
16070
- }
16071
16778
  return zodSchema;
16072
16779
  }
16073
16780
  function convertSchema(schema, ctx) {
@@ -16104,6 +16811,9 @@ function convertSchema(schema, ctx) {
16104
16811
  if (schema.readOnly === true) {
16105
16812
  baseSchema = z.readonly(baseSchema);
16106
16813
  }
16814
+ if (schema.default !== undefined) {
16815
+ baseSchema = baseSchema.default(schema.default);
16816
+ }
16107
16817
  const extraMeta = {};
16108
16818
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
16109
16819
  for (const key of coreMetadataKeys) {
@@ -16125,25 +16835,34 @@ function convertSchema(schema, ctx) {
16125
16835
  if (Object.keys(extraMeta).length > 0) {
16126
16836
  ctx.registry.add(baseSchema, extraMeta);
16127
16837
  }
16838
+ if (schema.description) {
16839
+ baseSchema = baseSchema.describe(schema.description);
16840
+ }
16128
16841
  return baseSchema;
16129
16842
  }
16130
16843
  function fromJSONSchema(schema, params) {
16131
16844
  if (typeof schema === "boolean") {
16132
16845
  return schema ? z.any() : z.never();
16133
16846
  }
16134
- const version2 = detectVersion(schema, params?.defaultTarget);
16135
- const defs = schema.$defs || schema.definitions || {};
16847
+ let normalized;
16848
+ try {
16849
+ normalized = JSON.parse(JSON.stringify(schema));
16850
+ } catch {
16851
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
16852
+ }
16853
+ const version2 = detectVersion(normalized, params?.defaultTarget);
16854
+ const defs = normalized.$defs || normalized.definitions || {};
16136
16855
  const ctx = {
16137
16856
  version: version2,
16138
16857
  defs,
16139
16858
  refs: new Map,
16140
16859
  processing: new Set,
16141
- rootSchema: schema,
16860
+ rootSchema: normalized,
16142
16861
  registry: params?.registry ?? globalRegistry
16143
16862
  };
16144
- return convertSchema(schema, ctx);
16863
+ return convertSchema(normalized, ctx);
16145
16864
  }
16146
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
16865
+ // node_modules/zod/v4/classic/coerce.js
16147
16866
  var exports_coerce = {};
16148
16867
  __export(exports_coerce, {
16149
16868
  string: () => string3,
@@ -16168,9 +16887,9 @@ function date4(params) {
16168
16887
  return _coercedDate(ZodDate, params);
16169
16888
  }
16170
16889
 
16171
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
16890
+ // node_modules/zod/v4/classic/external.js
16172
16891
  config(en_default());
16173
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
16892
+ // node_modules/zod/index.js
16174
16893
  var zod_default = exports_external;
16175
16894
 
16176
16895
  // src/commander.ts
@@ -16291,8 +17010,8 @@ var createCommand2 = (command, opts) => {
16291
17010
  } else {
16292
17011
  output(`Error: ${res.message}`);
16293
17012
  }
16294
- } catch (error48) {
16295
- output(`Execution error: ${error48 instanceof Error ? error48.message : String(error48)}`);
17013
+ } catch (error51) {
17014
+ output(`Execution error: ${error51 instanceof Error ? error51.message : String(error51)}`);
16296
17015
  }
16297
17016
  });
16298
17017
  };