@storm-software/git-tools 2.122.16 → 2.122.17

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.
@@ -112,8 +112,8 @@ var CONSOLE_ICONS = {
112
112
  };
113
113
 
114
114
  // ../config-tools/src/logger/format-timestamp.ts
115
- var formatTimestamp = (date3 = /* @__PURE__ */ new Date()) => {
116
- return `${date3.toLocaleDateString()} ${date3.toLocaleTimeString()}`;
115
+ var formatTimestamp = (date2 = /* @__PURE__ */ new Date()) => {
116
+ return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
117
117
  };
118
118
 
119
119
  // ../config-tools/src/logger/get-log-level.ts
@@ -296,17 +296,17 @@ var handleProcess = (config2) => {
296
296
  `Using the following arguments to process the script: ${process.argv.join(", ")}`,
297
297
  config2
298
298
  );
299
- process.on("unhandledRejection", (error2) => {
299
+ process.on("unhandledRejection", (error) => {
300
300
  writeError(
301
- `An Unhandled Rejection occurred while running the program: ${error2}`,
301
+ `An Unhandled Rejection occurred while running the program: ${error}`,
302
302
  config2
303
303
  );
304
304
  exitWithError(config2);
305
305
  });
306
- process.on("uncaughtException", (error2) => {
306
+ process.on("uncaughtException", (error) => {
307
307
  writeError(
308
- `An Uncaught Exception occurred while running the program: ${error2.message}
309
- Stacktrace: ${error2.stack}`,
308
+ `An Uncaught Exception occurred while running the program: ${error.message}
309
+ Stacktrace: ${error.stack}`,
310
310
  config2
311
311
  );
312
312
  exitWithError(config2);
@@ -325,7 +325,7 @@ Stacktrace: ${error2.stack}`,
325
325
  });
326
326
  };
327
327
  // @__NO_SIDE_EFFECTS__
328
- function $constructor(name, initializer3, params) {
328
+ function $constructor(name, initializer2, params) {
329
329
  function init(inst, def) {
330
330
  var _a;
331
331
  Object.defineProperty(inst, "_zod", {
@@ -334,7 +334,7 @@ function $constructor(name, initializer3, params) {
334
334
  });
335
335
  (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
336
336
  inst._zod.traits.add(name);
337
- initializer3(inst, def);
337
+ initializer2(inst, def);
338
338
  for (const k in _.prototype) {
339
339
  if (!(k in inst))
340
340
  Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
@@ -372,20 +372,12 @@ var $ZodAsyncError = class extends Error {
372
372
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
373
373
  }
374
374
  };
375
- var $ZodEncodeError = class extends Error {
376
- constructor(name) {
377
- super(`Encountered unidirectional transform during encode: ${name}`);
378
- this.name = "ZodEncodeError";
379
- }
380
- };
381
375
  var globalConfig = {};
382
376
  function config(newConfig) {
383
- if (newConfig)
384
- Object.assign(globalConfig, newConfig);
385
377
  return globalConfig;
386
378
  }
387
379
 
388
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/util.js
380
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js
389
381
  var util_exports = {};
390
382
  __export(util_exports, {
391
383
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -1017,7 +1009,7 @@ var Class = class {
1017
1009
  }
1018
1010
  };
1019
1011
 
1020
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/errors.js
1012
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js
1021
1013
  var initializer = (inst, def) => {
1022
1014
  inst.name = "$ZodError";
1023
1015
  Object.defineProperty(inst, "_zod", {
@@ -1036,57 +1028,8 @@ var initializer = (inst, def) => {
1036
1028
  };
1037
1029
  var $ZodError = $constructor("$ZodError", initializer);
1038
1030
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1039
- function flattenError(error2, mapper = (issue2) => issue2.message) {
1040
- const fieldErrors = {};
1041
- const formErrors = [];
1042
- for (const sub of error2.issues) {
1043
- if (sub.path.length > 0) {
1044
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1045
- fieldErrors[sub.path[0]].push(mapper(sub));
1046
- } else {
1047
- formErrors.push(mapper(sub));
1048
- }
1049
- }
1050
- return { formErrors, fieldErrors };
1051
- }
1052
- function formatError(error2, _mapper) {
1053
- const mapper = _mapper || function(issue2) {
1054
- return issue2.message;
1055
- };
1056
- const fieldErrors = { _errors: [] };
1057
- const processError = (error3) => {
1058
- for (const issue2 of error3.issues) {
1059
- if (issue2.code === "invalid_union" && issue2.errors.length) {
1060
- issue2.errors.map((issues) => processError({ issues }));
1061
- } else if (issue2.code === "invalid_key") {
1062
- processError({ issues: issue2.issues });
1063
- } else if (issue2.code === "invalid_element") {
1064
- processError({ issues: issue2.issues });
1065
- } else if (issue2.path.length === 0) {
1066
- fieldErrors._errors.push(mapper(issue2));
1067
- } else {
1068
- let curr = fieldErrors;
1069
- let i = 0;
1070
- while (i < issue2.path.length) {
1071
- const el = issue2.path[i];
1072
- const terminal = i === issue2.path.length - 1;
1073
- if (!terminal) {
1074
- curr[el] = curr[el] || { _errors: [] };
1075
- } else {
1076
- curr[el] = curr[el] || { _errors: [] };
1077
- curr[el]._errors.push(mapper(issue2));
1078
- }
1079
- curr = curr[el];
1080
- i++;
1081
- }
1082
- }
1083
- }
1084
- };
1085
- processError(error2);
1086
- return fieldErrors;
1087
- }
1088
1031
 
1089
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/parse.js
1032
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js
1090
1033
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1091
1034
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1092
1035
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1100,6 +1043,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
1100
1043
  }
1101
1044
  return result.value;
1102
1045
  };
1046
+ var parse = /* @__PURE__ */ _parse($ZodRealError);
1103
1047
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1104
1048
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
1105
1049
  let result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1112,6 +1056,7 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1112
1056
  }
1113
1057
  return result.value;
1114
1058
  };
1059
+ var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
1115
1060
  var _safeParse = (_Err) => (schema, value, _ctx) => {
1116
1061
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1117
1062
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1135,155 +1080,22 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1135
1080
  } : { success: true, data: result.value };
1136
1081
  };
1137
1082
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1138
- var _encode = (_Err) => (schema, value, _ctx) => {
1139
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1140
- return _parse(_Err)(schema, value, ctx);
1141
- };
1142
- var _decode = (_Err) => (schema, value, _ctx) => {
1143
- return _parse(_Err)(schema, value, _ctx);
1144
- };
1145
- var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
1146
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1147
- return _parseAsync(_Err)(schema, value, ctx);
1148
- };
1149
- var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
1150
- return _parseAsync(_Err)(schema, value, _ctx);
1151
- };
1152
- var _safeEncode = (_Err) => (schema, value, _ctx) => {
1153
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1154
- return _safeParse(_Err)(schema, value, ctx);
1155
- };
1156
- var _safeDecode = (_Err) => (schema, value, _ctx) => {
1157
- return _safeParse(_Err)(schema, value, _ctx);
1158
- };
1159
- var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1160
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
1161
- return _safeParseAsync(_Err)(schema, value, ctx);
1162
- };
1163
- var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1164
- return _safeParseAsync(_Err)(schema, value, _ctx);
1165
- };
1166
1083
 
1167
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/regexes.js
1168
- var cuid = /^[cC][^\s-]{8,}$/;
1169
- var cuid2 = /^[0-9a-z]+$/;
1170
- var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
1171
- var xid = /^[0-9a-vA-V]{20}$/;
1172
- var ksuid = /^[A-Za-z0-9]{27}$/;
1173
- var nanoid = /^[a-zA-Z0-9_-]{21}$/;
1174
- var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
1175
- var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
1176
- var uuid = (version2) => {
1177
- if (!version2)
1178
- return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
1179
- return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
1180
- };
1181
- var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
1182
- var _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
1183
- function emoji() {
1184
- return new RegExp(_emoji, "u");
1185
- }
1186
- var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
1187
- var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
1188
- var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
1189
- var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
1190
- var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
1191
- var base64url = /^[A-Za-z0-9_-]*$/;
1084
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js
1192
1085
  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])?)*\.?$/;
1193
- var e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
1194
- 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])))`;
1195
- var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
1196
- function timeSource(args) {
1197
- const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
1198
- const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
1199
- return regex;
1200
- }
1201
- function time(args) {
1202
- return new RegExp(`^${timeSource(args)}$`);
1203
- }
1204
- function datetime(args) {
1205
- const time3 = timeSource({ precision: args.precision });
1206
- const opts = ["Z"];
1207
- if (args.local)
1208
- opts.push("");
1209
- if (args.offset)
1210
- opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
1211
- const timeRegex = `${time3}(?:${opts.join("|")})`;
1212
- return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
1213
- }
1214
1086
  var string = (params) => {
1215
1087
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
1216
1088
  return new RegExp(`^${regex}$`);
1217
1089
  };
1218
1090
  var boolean = /^(?:true|false)$/i;
1219
- var lowercase = /^[^A-Z]*$/;
1220
- var uppercase = /^[^a-z]*$/;
1221
1091
 
1222
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/checks.js
1092
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/checks.js
1223
1093
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1224
1094
  var _a;
1225
1095
  inst._zod ?? (inst._zod = {});
1226
1096
  inst._zod.def = def;
1227
1097
  (_a = inst._zod).onattach ?? (_a.onattach = []);
1228
1098
  });
1229
- var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
1230
- var _a;
1231
- $ZodCheck.init(inst, def);
1232
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1233
- const val = payload.value;
1234
- return !nullish(val) && val.length !== void 0;
1235
- });
1236
- inst._zod.onattach.push((inst2) => {
1237
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1238
- if (def.maximum < curr)
1239
- inst2._zod.bag.maximum = def.maximum;
1240
- });
1241
- inst._zod.check = (payload) => {
1242
- const input = payload.value;
1243
- const length = input.length;
1244
- if (length <= def.maximum)
1245
- return;
1246
- const origin = getLengthableOrigin(input);
1247
- payload.issues.push({
1248
- origin,
1249
- code: "too_big",
1250
- maximum: def.maximum,
1251
- inclusive: true,
1252
- input,
1253
- inst,
1254
- continue: !def.abort
1255
- });
1256
- };
1257
- });
1258
- var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
1259
- var _a;
1260
- $ZodCheck.init(inst, def);
1261
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1262
- const val = payload.value;
1263
- return !nullish(val) && val.length !== void 0;
1264
- });
1265
- inst._zod.onattach.push((inst2) => {
1266
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1267
- if (def.minimum > curr)
1268
- inst2._zod.bag.minimum = def.minimum;
1269
- });
1270
- inst._zod.check = (payload) => {
1271
- const input = payload.value;
1272
- const length = input.length;
1273
- if (length >= def.minimum)
1274
- return;
1275
- const origin = getLengthableOrigin(input);
1276
- payload.issues.push({
1277
- origin,
1278
- code: "too_small",
1279
- minimum: def.minimum,
1280
- inclusive: true,
1281
- input,
1282
- inst,
1283
- continue: !def.abort
1284
- });
1285
- };
1286
- });
1287
1099
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1288
1100
  var _a;
1289
1101
  $ZodCheck.init(inst, def);
@@ -1362,84 +1174,6 @@ var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def)
1362
1174
  });
1363
1175
  };
1364
1176
  });
1365
- var $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
1366
- def.pattern ?? (def.pattern = lowercase);
1367
- $ZodCheckStringFormat.init(inst, def);
1368
- });
1369
- var $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
1370
- def.pattern ?? (def.pattern = uppercase);
1371
- $ZodCheckStringFormat.init(inst, def);
1372
- });
1373
- var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
1374
- $ZodCheck.init(inst, def);
1375
- const escapedRegex = escapeRegex(def.includes);
1376
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
1377
- def.pattern = pattern;
1378
- inst._zod.onattach.push((inst2) => {
1379
- const bag = inst2._zod.bag;
1380
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
1381
- bag.patterns.add(pattern);
1382
- });
1383
- inst._zod.check = (payload) => {
1384
- if (payload.value.includes(def.includes, def.position))
1385
- return;
1386
- payload.issues.push({
1387
- origin: "string",
1388
- code: "invalid_format",
1389
- format: "includes",
1390
- includes: def.includes,
1391
- input: payload.value,
1392
- inst,
1393
- continue: !def.abort
1394
- });
1395
- };
1396
- });
1397
- var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
1398
- $ZodCheck.init(inst, def);
1399
- const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
1400
- def.pattern ?? (def.pattern = pattern);
1401
- inst._zod.onattach.push((inst2) => {
1402
- const bag = inst2._zod.bag;
1403
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
1404
- bag.patterns.add(pattern);
1405
- });
1406
- inst._zod.check = (payload) => {
1407
- if (payload.value.startsWith(def.prefix))
1408
- return;
1409
- payload.issues.push({
1410
- origin: "string",
1411
- code: "invalid_format",
1412
- format: "starts_with",
1413
- prefix: def.prefix,
1414
- input: payload.value,
1415
- inst,
1416
- continue: !def.abort
1417
- });
1418
- };
1419
- });
1420
- var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
1421
- $ZodCheck.init(inst, def);
1422
- const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
1423
- def.pattern ?? (def.pattern = pattern);
1424
- inst._zod.onattach.push((inst2) => {
1425
- const bag = inst2._zod.bag;
1426
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
1427
- bag.patterns.add(pattern);
1428
- });
1429
- inst._zod.check = (payload) => {
1430
- if (payload.value.endsWith(def.suffix))
1431
- return;
1432
- payload.issues.push({
1433
- origin: "string",
1434
- code: "invalid_format",
1435
- format: "ends_with",
1436
- suffix: def.suffix,
1437
- input: payload.value,
1438
- inst,
1439
- continue: !def.abort
1440
- });
1441
- };
1442
- });
1443
1177
  var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
1444
1178
  $ZodCheck.init(inst, def);
1445
1179
  inst._zod.check = (payload) => {
@@ -1447,50 +1181,14 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1447
1181
  };
1448
1182
  });
1449
1183
 
1450
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/doc.js
1451
- var Doc = class {
1452
- constructor(args = []) {
1453
- this.content = [];
1454
- this.indent = 0;
1455
- if (this)
1456
- this.args = args;
1457
- }
1458
- indented(fn) {
1459
- this.indent += 1;
1460
- fn(this);
1461
- this.indent -= 1;
1462
- }
1463
- write(arg) {
1464
- if (typeof arg === "function") {
1465
- arg(this, { execution: "sync" });
1466
- arg(this, { execution: "async" });
1467
- return;
1468
- }
1469
- const content = arg;
1470
- const lines = content.split("\n").filter((x) => x);
1471
- const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
1472
- const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
1473
- for (const line of dedented) {
1474
- this.content.push(line);
1475
- }
1476
- }
1477
- compile() {
1478
- const F = Function;
1479
- const args = this?.args;
1480
- const content = this?.content ?? [``];
1481
- const lines = [...content.map((x) => ` ${x}`)];
1482
- return new F(...args, lines.join("\n"));
1483
- }
1484
- };
1485
-
1486
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/versions.js
1184
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js
1487
1185
  var version = {
1488
1186
  major: 4,
1489
1187
  minor: 1,
1490
- patch: 9
1188
+ patch: 11
1491
1189
  };
1492
1190
 
1493
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/schemas.js
1191
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js
1494
1192
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1495
1193
  var _a;
1496
1194
  inst ?? (inst = {});
@@ -1624,34 +1322,6 @@ var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, d
1624
1322
  $ZodCheckStringFormat.init(inst, def);
1625
1323
  $ZodString.init(inst, def);
1626
1324
  });
1627
- var $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
1628
- def.pattern ?? (def.pattern = guid);
1629
- $ZodStringFormat.init(inst, def);
1630
- });
1631
- var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
1632
- if (def.version) {
1633
- const versionMap = {
1634
- v1: 1,
1635
- v2: 2,
1636
- v3: 3,
1637
- v4: 4,
1638
- v5: 5,
1639
- v6: 6,
1640
- v7: 7,
1641
- v8: 8
1642
- };
1643
- const v = versionMap[def.version];
1644
- if (v === void 0)
1645
- throw new Error(`Invalid UUID version: "${def.version}"`);
1646
- def.pattern ?? (def.pattern = uuid(v));
1647
- } else
1648
- def.pattern ?? (def.pattern = uuid());
1649
- $ZodStringFormat.init(inst, def);
1650
- });
1651
- var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
1652
- def.pattern ?? (def.pattern = email);
1653
- $ZodStringFormat.init(inst, def);
1654
- });
1655
1325
  var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1656
1326
  $ZodStringFormat.init(inst, def);
1657
1327
  inst._zod.check = (payload) => {
@@ -1703,204 +1373,6 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1703
1373
  }
1704
1374
  };
1705
1375
  });
1706
- var $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
1707
- def.pattern ?? (def.pattern = emoji());
1708
- $ZodStringFormat.init(inst, def);
1709
- });
1710
- var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
1711
- def.pattern ?? (def.pattern = nanoid);
1712
- $ZodStringFormat.init(inst, def);
1713
- });
1714
- var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
1715
- def.pattern ?? (def.pattern = cuid);
1716
- $ZodStringFormat.init(inst, def);
1717
- });
1718
- var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
1719
- def.pattern ?? (def.pattern = cuid2);
1720
- $ZodStringFormat.init(inst, def);
1721
- });
1722
- var $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
1723
- def.pattern ?? (def.pattern = ulid);
1724
- $ZodStringFormat.init(inst, def);
1725
- });
1726
- var $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
1727
- def.pattern ?? (def.pattern = xid);
1728
- $ZodStringFormat.init(inst, def);
1729
- });
1730
- var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
1731
- def.pattern ?? (def.pattern = ksuid);
1732
- $ZodStringFormat.init(inst, def);
1733
- });
1734
- var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
1735
- def.pattern ?? (def.pattern = datetime(def));
1736
- $ZodStringFormat.init(inst, def);
1737
- });
1738
- var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
1739
- def.pattern ?? (def.pattern = date);
1740
- $ZodStringFormat.init(inst, def);
1741
- });
1742
- var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
1743
- def.pattern ?? (def.pattern = time(def));
1744
- $ZodStringFormat.init(inst, def);
1745
- });
1746
- var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
1747
- def.pattern ?? (def.pattern = duration);
1748
- $ZodStringFormat.init(inst, def);
1749
- });
1750
- var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
1751
- def.pattern ?? (def.pattern = ipv4);
1752
- $ZodStringFormat.init(inst, def);
1753
- inst._zod.onattach.push((inst2) => {
1754
- const bag = inst2._zod.bag;
1755
- bag.format = `ipv4`;
1756
- });
1757
- });
1758
- var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
1759
- def.pattern ?? (def.pattern = ipv6);
1760
- $ZodStringFormat.init(inst, def);
1761
- inst._zod.onattach.push((inst2) => {
1762
- const bag = inst2._zod.bag;
1763
- bag.format = `ipv6`;
1764
- });
1765
- inst._zod.check = (payload) => {
1766
- try {
1767
- new URL(`http://[${payload.value}]`);
1768
- } catch {
1769
- payload.issues.push({
1770
- code: "invalid_format",
1771
- format: "ipv6",
1772
- input: payload.value,
1773
- inst,
1774
- continue: !def.abort
1775
- });
1776
- }
1777
- };
1778
- });
1779
- var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
1780
- def.pattern ?? (def.pattern = cidrv4);
1781
- $ZodStringFormat.init(inst, def);
1782
- });
1783
- var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
1784
- def.pattern ?? (def.pattern = cidrv6);
1785
- $ZodStringFormat.init(inst, def);
1786
- inst._zod.check = (payload) => {
1787
- const parts = payload.value.split("/");
1788
- try {
1789
- if (parts.length !== 2)
1790
- throw new Error();
1791
- const [address, prefix] = parts;
1792
- if (!prefix)
1793
- throw new Error();
1794
- const prefixNum = Number(prefix);
1795
- if (`${prefixNum}` !== prefix)
1796
- throw new Error();
1797
- if (prefixNum < 0 || prefixNum > 128)
1798
- throw new Error();
1799
- new URL(`http://[${address}]`);
1800
- } catch {
1801
- payload.issues.push({
1802
- code: "invalid_format",
1803
- format: "cidrv6",
1804
- input: payload.value,
1805
- inst,
1806
- continue: !def.abort
1807
- });
1808
- }
1809
- };
1810
- });
1811
- function isValidBase64(data) {
1812
- if (data === "")
1813
- return true;
1814
- if (data.length % 4 !== 0)
1815
- return false;
1816
- try {
1817
- atob(data);
1818
- return true;
1819
- } catch {
1820
- return false;
1821
- }
1822
- }
1823
- var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
1824
- def.pattern ?? (def.pattern = base64);
1825
- $ZodStringFormat.init(inst, def);
1826
- inst._zod.onattach.push((inst2) => {
1827
- inst2._zod.bag.contentEncoding = "base64";
1828
- });
1829
- inst._zod.check = (payload) => {
1830
- if (isValidBase64(payload.value))
1831
- return;
1832
- payload.issues.push({
1833
- code: "invalid_format",
1834
- format: "base64",
1835
- input: payload.value,
1836
- inst,
1837
- continue: !def.abort
1838
- });
1839
- };
1840
- });
1841
- function isValidBase64URL(data) {
1842
- if (!base64url.test(data))
1843
- return false;
1844
- const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
1845
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
1846
- return isValidBase64(padded);
1847
- }
1848
- var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
1849
- def.pattern ?? (def.pattern = base64url);
1850
- $ZodStringFormat.init(inst, def);
1851
- inst._zod.onattach.push((inst2) => {
1852
- inst2._zod.bag.contentEncoding = "base64url";
1853
- });
1854
- inst._zod.check = (payload) => {
1855
- if (isValidBase64URL(payload.value))
1856
- return;
1857
- payload.issues.push({
1858
- code: "invalid_format",
1859
- format: "base64url",
1860
- input: payload.value,
1861
- inst,
1862
- continue: !def.abort
1863
- });
1864
- };
1865
- });
1866
- var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
1867
- def.pattern ?? (def.pattern = e164);
1868
- $ZodStringFormat.init(inst, def);
1869
- });
1870
- function isValidJWT(token, algorithm = null) {
1871
- try {
1872
- const tokensParts = token.split(".");
1873
- if (tokensParts.length !== 3)
1874
- return false;
1875
- const [header] = tokensParts;
1876
- if (!header)
1877
- return false;
1878
- const parsedHeader = JSON.parse(atob(header));
1879
- if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
1880
- return false;
1881
- if (!parsedHeader.alg)
1882
- return false;
1883
- if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
1884
- return false;
1885
- return true;
1886
- } catch {
1887
- return false;
1888
- }
1889
- }
1890
- var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
1891
- $ZodStringFormat.init(inst, def);
1892
- inst._zod.check = (payload) => {
1893
- if (isValidJWT(payload.value, def.alg))
1894
- return;
1895
- payload.issues.push({
1896
- code: "invalid_format",
1897
- format: "jwt",
1898
- input: payload.value,
1899
- inst,
1900
- continue: !def.abort
1901
- });
1902
- };
1903
- });
1904
1376
  var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
1905
1377
  $ZodType.init(inst, def);
1906
1378
  inst._zod.pattern = boolean;
@@ -1926,29 +1398,13 @@ var $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
1926
1398
  $ZodType.init(inst, def);
1927
1399
  inst._zod.parse = (payload) => payload;
1928
1400
  });
1929
- var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
1930
- $ZodType.init(inst, def);
1931
- inst._zod.parse = (payload) => payload;
1932
- });
1933
- var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
1934
- $ZodType.init(inst, def);
1935
- inst._zod.parse = (payload, _ctx) => {
1936
- payload.issues.push({
1937
- expected: "never",
1938
- code: "invalid_type",
1939
- input: payload.value,
1940
- inst
1941
- });
1942
- return payload;
1943
- };
1944
- });
1945
- function handleArrayResult(result, final, index) {
1946
- if (result.issues.length) {
1947
- final.issues.push(...prefixIssues(index, result.issues));
1948
- }
1949
- final.value[index] = result.value;
1950
- }
1951
- var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1401
+ function handleArrayResult(result, final, index) {
1402
+ if (result.issues.length) {
1403
+ final.issues.push(...prefixIssues(index, result.issues));
1404
+ }
1405
+ final.value[index] = result.value;
1406
+ }
1407
+ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1952
1408
  $ZodType.init(inst, def);
1953
1409
  inst._zod.parse = (payload, ctx) => {
1954
1410
  const input = payload.value;
@@ -2044,6 +1500,19 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
2044
1500
  }
2045
1501
  var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2046
1502
  $ZodType.init(inst, def);
1503
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
1504
+ if (!desc?.get) {
1505
+ const sh = def.shape;
1506
+ Object.defineProperty(def, "shape", {
1507
+ get: () => {
1508
+ const newSh = { ...sh };
1509
+ Object.defineProperty(def, "shape", {
1510
+ value: newSh
1511
+ });
1512
+ return newSh;
1513
+ }
1514
+ });
1515
+ }
2047
1516
  const _normalized = cached(() => normalizeDef(def));
2048
1517
  defineLazy(inst._zod, "propValues", () => {
2049
1518
  const shape = def.shape;
@@ -2091,82 +1560,6 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2091
1560
  return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
2092
1561
  };
2093
1562
  });
2094
- var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
2095
- $ZodObject.init(inst, def);
2096
- const superParse = inst._zod.parse;
2097
- const _normalized = cached(() => normalizeDef(def));
2098
- const generateFastpass = (shape) => {
2099
- const doc = new Doc(["shape", "payload", "ctx"]);
2100
- const normalized = _normalized.value;
2101
- const parseStr = (key) => {
2102
- const k = esc(key);
2103
- return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
2104
- };
2105
- doc.write(`const input = payload.value;`);
2106
- const ids = /* @__PURE__ */ Object.create(null);
2107
- let counter = 0;
2108
- for (const key of normalized.keys) {
2109
- ids[key] = `key_${counter++}`;
2110
- }
2111
- doc.write(`const newResult = {};`);
2112
- for (const key of normalized.keys) {
2113
- const id = ids[key];
2114
- const k = esc(key);
2115
- doc.write(`const ${id} = ${parseStr(key)};`);
2116
- doc.write(`
2117
- if (${id}.issues.length) {
2118
- payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
2119
- ...iss,
2120
- path: iss.path ? [${k}, ...iss.path] : [${k}]
2121
- })));
2122
- }
2123
-
2124
-
2125
- if (${id}.value === undefined) {
2126
- if (${k} in input) {
2127
- newResult[${k}] = undefined;
2128
- }
2129
- } else {
2130
- newResult[${k}] = ${id}.value;
2131
- }
2132
-
2133
- `);
2134
- }
2135
- doc.write(`payload.value = newResult;`);
2136
- doc.write(`return payload;`);
2137
- const fn = doc.compile();
2138
- return (payload, ctx) => fn(shape, payload, ctx);
2139
- };
2140
- let fastpass;
2141
- const isObject2 = isObject;
2142
- const jit = !globalConfig.jitless;
2143
- const allowsEval2 = allowsEval;
2144
- const fastEnabled = jit && allowsEval2.value;
2145
- const catchall = def.catchall;
2146
- let value;
2147
- inst._zod.parse = (payload, ctx) => {
2148
- value ?? (value = _normalized.value);
2149
- const input = payload.value;
2150
- if (!isObject2(input)) {
2151
- payload.issues.push({
2152
- expected: "object",
2153
- code: "invalid_type",
2154
- input,
2155
- inst
2156
- });
2157
- return payload;
2158
- }
2159
- if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
2160
- if (!fastpass)
2161
- fastpass = generateFastpass(def.shape);
2162
- payload = fastpass(payload, ctx);
2163
- if (!catchall)
2164
- return payload;
2165
- return handleCatchall([], input, payload, ctx, value, inst);
2166
- }
2167
- return superParse(payload, ctx);
2168
- };
2169
- });
2170
1563
  function handleUnionResults(results, final, inst, ctx) {
2171
1564
  for (const result of results) {
2172
1565
  if (result.issues.length === 0) {
@@ -2233,81 +1626,6 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
2233
1626
  });
2234
1627
  };
2235
1628
  });
2236
- var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
2237
- $ZodType.init(inst, def);
2238
- inst._zod.parse = (payload, ctx) => {
2239
- const input = payload.value;
2240
- const left = def.left._zod.run({ value: input, issues: [] }, ctx);
2241
- const right = def.right._zod.run({ value: input, issues: [] }, ctx);
2242
- const async = left instanceof Promise || right instanceof Promise;
2243
- if (async) {
2244
- return Promise.all([left, right]).then(([left2, right2]) => {
2245
- return handleIntersectionResults(payload, left2, right2);
2246
- });
2247
- }
2248
- return handleIntersectionResults(payload, left, right);
2249
- };
2250
- });
2251
- function mergeValues(a, b) {
2252
- if (a === b) {
2253
- return { valid: true, data: a };
2254
- }
2255
- if (a instanceof Date && b instanceof Date && +a === +b) {
2256
- return { valid: true, data: a };
2257
- }
2258
- if (isPlainObject(a) && isPlainObject(b)) {
2259
- const bKeys = Object.keys(b);
2260
- const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
2261
- const newObj = { ...a, ...b };
2262
- for (const key of sharedKeys) {
2263
- const sharedValue = mergeValues(a[key], b[key]);
2264
- if (!sharedValue.valid) {
2265
- return {
2266
- valid: false,
2267
- mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
2268
- };
2269
- }
2270
- newObj[key] = sharedValue.data;
2271
- }
2272
- return { valid: true, data: newObj };
2273
- }
2274
- if (Array.isArray(a) && Array.isArray(b)) {
2275
- if (a.length !== b.length) {
2276
- return { valid: false, mergeErrorPath: [] };
2277
- }
2278
- const newArray = [];
2279
- for (let index = 0; index < a.length; index++) {
2280
- const itemA = a[index];
2281
- const itemB = b[index];
2282
- const sharedValue = mergeValues(itemA, itemB);
2283
- if (!sharedValue.valid) {
2284
- return {
2285
- valid: false,
2286
- mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
2287
- };
2288
- }
2289
- newArray.push(sharedValue.data);
2290
- }
2291
- return { valid: true, data: newArray };
2292
- }
2293
- return { valid: false, mergeErrorPath: [] };
2294
- }
2295
- function handleIntersectionResults(result, left, right) {
2296
- if (left.issues.length) {
2297
- result.issues.push(...left.issues);
2298
- }
2299
- if (right.issues.length) {
2300
- result.issues.push(...right.issues);
2301
- }
2302
- if (aborted(result))
2303
- return result;
2304
- const merged = mergeValues(left.value, right.value);
2305
- if (!merged.valid) {
2306
- throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
2307
- }
2308
- result.value = merged.data;
2309
- return result;
2310
- }
2311
1629
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2312
1630
  $ZodType.init(inst, def);
2313
1631
  inst._zod.parse = (payload, ctx) => {
@@ -2442,27 +1760,6 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
2442
1760
  return payload;
2443
1761
  };
2444
1762
  });
2445
- var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
2446
- $ZodType.init(inst, def);
2447
- inst._zod.parse = (payload, ctx) => {
2448
- if (ctx.direction === "backward") {
2449
- throw new $ZodEncodeError(inst.constructor.name);
2450
- }
2451
- const _out = def.transform(payload.value, payload);
2452
- if (ctx.async) {
2453
- const output = _out instanceof Promise ? _out : Promise.resolve(_out);
2454
- return output.then((output2) => {
2455
- payload.value = output2;
2456
- return payload;
2457
- });
2458
- }
2459
- if (_out instanceof Promise) {
2460
- throw new $ZodAsyncError();
2461
- }
2462
- payload.value = _out;
2463
- return payload;
2464
- };
2465
- });
2466
1763
  function handleOptionalResult(result, input) {
2467
1764
  if (result.issues.length && input === void 0) {
2468
1765
  return { issues: [], value: void 0 };
@@ -2535,285 +1832,6 @@ function handleDefaultResult(payload, def) {
2535
1832
  }
2536
1833
  return payload;
2537
1834
  }
2538
- var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
2539
- $ZodType.init(inst, def);
2540
- inst._zod.optin = "optional";
2541
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2542
- inst._zod.parse = (payload, ctx) => {
2543
- if (ctx.direction === "backward") {
2544
- return def.innerType._zod.run(payload, ctx);
2545
- }
2546
- if (payload.value === void 0) {
2547
- payload.value = def.defaultValue;
2548
- }
2549
- return def.innerType._zod.run(payload, ctx);
2550
- };
2551
- });
2552
- var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
2553
- $ZodType.init(inst, def);
2554
- defineLazy(inst._zod, "values", () => {
2555
- const v = def.innerType._zod.values;
2556
- return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
2557
- });
2558
- inst._zod.parse = (payload, ctx) => {
2559
- const result = def.innerType._zod.run(payload, ctx);
2560
- if (result instanceof Promise) {
2561
- return result.then((result2) => handleNonOptionalResult(result2, inst));
2562
- }
2563
- return handleNonOptionalResult(result, inst);
2564
- };
2565
- });
2566
- function handleNonOptionalResult(payload, inst) {
2567
- if (!payload.issues.length && payload.value === void 0) {
2568
- payload.issues.push({
2569
- code: "invalid_type",
2570
- expected: "nonoptional",
2571
- input: payload.value,
2572
- inst
2573
- });
2574
- }
2575
- return payload;
2576
- }
2577
- var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
2578
- $ZodType.init(inst, def);
2579
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
2580
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
2581
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2582
- inst._zod.parse = (payload, ctx) => {
2583
- if (ctx.direction === "backward") {
2584
- return def.innerType._zod.run(payload, ctx);
2585
- }
2586
- const result = def.innerType._zod.run(payload, ctx);
2587
- if (result instanceof Promise) {
2588
- return result.then((result2) => {
2589
- payload.value = result2.value;
2590
- if (result2.issues.length) {
2591
- payload.value = def.catchValue({
2592
- ...payload,
2593
- error: {
2594
- issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
2595
- },
2596
- input: payload.value
2597
- });
2598
- payload.issues = [];
2599
- }
2600
- return payload;
2601
- });
2602
- }
2603
- payload.value = result.value;
2604
- if (result.issues.length) {
2605
- payload.value = def.catchValue({
2606
- ...payload,
2607
- error: {
2608
- issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
2609
- },
2610
- input: payload.value
2611
- });
2612
- payload.issues = [];
2613
- }
2614
- return payload;
2615
- };
2616
- });
2617
- var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
2618
- $ZodType.init(inst, def);
2619
- defineLazy(inst._zod, "values", () => def.in._zod.values);
2620
- defineLazy(inst._zod, "optin", () => def.in._zod.optin);
2621
- defineLazy(inst._zod, "optout", () => def.out._zod.optout);
2622
- defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
2623
- inst._zod.parse = (payload, ctx) => {
2624
- if (ctx.direction === "backward") {
2625
- const right = def.out._zod.run(payload, ctx);
2626
- if (right instanceof Promise) {
2627
- return right.then((right2) => handlePipeResult(right2, def.in, ctx));
2628
- }
2629
- return handlePipeResult(right, def.in, ctx);
2630
- }
2631
- const left = def.in._zod.run(payload, ctx);
2632
- if (left instanceof Promise) {
2633
- return left.then((left2) => handlePipeResult(left2, def.out, ctx));
2634
- }
2635
- return handlePipeResult(left, def.out, ctx);
2636
- };
2637
- });
2638
- function handlePipeResult(left, next, ctx) {
2639
- if (left.issues.length) {
2640
- left.aborted = true;
2641
- return left;
2642
- }
2643
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
2644
- }
2645
- var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
2646
- $ZodType.init(inst, def);
2647
- defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
2648
- defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2649
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
2650
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
2651
- inst._zod.parse = (payload, ctx) => {
2652
- if (ctx.direction === "backward") {
2653
- return def.innerType._zod.run(payload, ctx);
2654
- }
2655
- const result = def.innerType._zod.run(payload, ctx);
2656
- if (result instanceof Promise) {
2657
- return result.then(handleReadonlyResult);
2658
- }
2659
- return handleReadonlyResult(result);
2660
- };
2661
- });
2662
- function handleReadonlyResult(payload) {
2663
- payload.value = Object.freeze(payload.value);
2664
- return payload;
2665
- }
2666
- var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
2667
- $ZodCheck.init(inst, def);
2668
- $ZodType.init(inst, def);
2669
- inst._zod.parse = (payload, _) => {
2670
- return payload;
2671
- };
2672
- inst._zod.check = (payload) => {
2673
- const input = payload.value;
2674
- const r = def.fn(input);
2675
- if (r instanceof Promise) {
2676
- return r.then((r2) => handleRefineResult(r2, payload, input, inst));
2677
- }
2678
- handleRefineResult(r, payload, input, inst);
2679
- return;
2680
- };
2681
- });
2682
- function handleRefineResult(result, payload, input, inst) {
2683
- if (!result) {
2684
- const _iss = {
2685
- code: "custom",
2686
- input,
2687
- inst,
2688
- // incorporates params.error into issue reporting
2689
- path: [...inst._zod.def.path ?? []],
2690
- // incorporates params.error into issue reporting
2691
- continue: !inst._zod.def.abort
2692
- // params: inst._zod.def.params,
2693
- };
2694
- if (inst._zod.def.params)
2695
- _iss.params = inst._zod.def.params;
2696
- payload.issues.push(issue(_iss));
2697
- }
2698
- }
2699
-
2700
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/en.js
2701
- var parsedType = (data) => {
2702
- const t = typeof data;
2703
- switch (t) {
2704
- case "number": {
2705
- return Number.isNaN(data) ? "NaN" : "number";
2706
- }
2707
- case "object": {
2708
- if (Array.isArray(data)) {
2709
- return "array";
2710
- }
2711
- if (data === null) {
2712
- return "null";
2713
- }
2714
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
2715
- return data.constructor.name;
2716
- }
2717
- }
2718
- }
2719
- return t;
2720
- };
2721
- var error = () => {
2722
- const Sizable = {
2723
- string: { unit: "characters", verb: "to have" },
2724
- file: { unit: "bytes", verb: "to have" },
2725
- array: { unit: "items", verb: "to have" },
2726
- set: { unit: "items", verb: "to have" }
2727
- };
2728
- function getSizing(origin) {
2729
- return Sizable[origin] ?? null;
2730
- }
2731
- const Nouns = {
2732
- regex: "input",
2733
- email: "email address",
2734
- url: "URL",
2735
- emoji: "emoji",
2736
- uuid: "UUID",
2737
- uuidv4: "UUIDv4",
2738
- uuidv6: "UUIDv6",
2739
- nanoid: "nanoid",
2740
- guid: "GUID",
2741
- cuid: "cuid",
2742
- cuid2: "cuid2",
2743
- ulid: "ULID",
2744
- xid: "XID",
2745
- ksuid: "KSUID",
2746
- datetime: "ISO datetime",
2747
- date: "ISO date",
2748
- time: "ISO time",
2749
- duration: "ISO duration",
2750
- ipv4: "IPv4 address",
2751
- ipv6: "IPv6 address",
2752
- cidrv4: "IPv4 range",
2753
- cidrv6: "IPv6 range",
2754
- base64: "base64-encoded string",
2755
- base64url: "base64url-encoded string",
2756
- json_string: "JSON string",
2757
- e164: "E.164 number",
2758
- jwt: "JWT",
2759
- template_literal: "input"
2760
- };
2761
- return (issue2) => {
2762
- switch (issue2.code) {
2763
- case "invalid_type":
2764
- return `Invalid input: expected ${issue2.expected}, received ${parsedType(issue2.input)}`;
2765
- case "invalid_value":
2766
- if (issue2.values.length === 1)
2767
- return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
2768
- return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;
2769
- case "too_big": {
2770
- const adj = issue2.inclusive ? "<=" : "<";
2771
- const sizing = getSizing(issue2.origin);
2772
- if (sizing)
2773
- return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
2774
- return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`;
2775
- }
2776
- case "too_small": {
2777
- const adj = issue2.inclusive ? ">=" : ">";
2778
- const sizing = getSizing(issue2.origin);
2779
- if (sizing) {
2780
- return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
2781
- }
2782
- return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;
2783
- }
2784
- case "invalid_format": {
2785
- const _issue = issue2;
2786
- if (_issue.format === "starts_with") {
2787
- return `Invalid string: must start with "${_issue.prefix}"`;
2788
- }
2789
- if (_issue.format === "ends_with")
2790
- return `Invalid string: must end with "${_issue.suffix}"`;
2791
- if (_issue.format === "includes")
2792
- return `Invalid string: must include "${_issue.includes}"`;
2793
- if (_issue.format === "regex")
2794
- return `Invalid string: must match pattern ${_issue.pattern}`;
2795
- return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
2796
- }
2797
- case "not_multiple_of":
2798
- return `Invalid number: must be a multiple of ${issue2.divisor}`;
2799
- case "unrecognized_keys":
2800
- return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
2801
- case "invalid_key":
2802
- return `Invalid key in ${issue2.origin}`;
2803
- case "invalid_union":
2804
- return "Invalid input";
2805
- case "invalid_element":
2806
- return `Invalid value in ${issue2.origin}`;
2807
- default:
2808
- return `Invalid input`;
2809
- }
2810
- };
2811
- };
2812
- function en_default() {
2813
- return {
2814
- localeError: error()
2815
- };
2816
- }
2817
1835
  var $ZodRegistry = class {
2818
1836
  constructor() {
2819
1837
  this._map = /* @__PURE__ */ new WeakMap();
@@ -2860,497 +1878,73 @@ var $ZodRegistry = class {
2860
1878
  function registry() {
2861
1879
  return new $ZodRegistry();
2862
1880
  }
2863
- var globalRegistry = /* @__PURE__ */ registry();
2864
1881
 
2865
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/api.js
1882
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js
2866
1883
  function _string(Class2, params) {
2867
1884
  return new Class2({
2868
1885
  type: "string",
2869
1886
  ...normalizeParams(params)
2870
1887
  });
2871
1888
  }
2872
- function _email(Class2, params) {
1889
+ function _url(Class2, params) {
2873
1890
  return new Class2({
2874
1891
  type: "string",
2875
- format: "email",
1892
+ format: "url",
2876
1893
  check: "string_format",
2877
1894
  abort: false,
2878
1895
  ...normalizeParams(params)
2879
1896
  });
2880
1897
  }
2881
- function _guid(Class2, params) {
1898
+ function _boolean(Class2, params) {
2882
1899
  return new Class2({
2883
- type: "string",
2884
- format: "guid",
2885
- check: "string_format",
2886
- abort: false,
1900
+ type: "boolean",
2887
1901
  ...normalizeParams(params)
2888
1902
  });
2889
1903
  }
2890
- function _uuid(Class2, params) {
1904
+ function _any(Class2) {
2891
1905
  return new Class2({
2892
- type: "string",
2893
- format: "uuid",
2894
- check: "string_format",
2895
- abort: false,
2896
- ...normalizeParams(params)
1906
+ type: "any"
2897
1907
  });
2898
1908
  }
2899
- function _uuidv4(Class2, params) {
2900
- return new Class2({
2901
- type: "string",
2902
- format: "uuid",
2903
- check: "string_format",
2904
- abort: false,
2905
- version: "v4",
2906
- ...normalizeParams(params)
1909
+ function _length(length, params) {
1910
+ return new $ZodCheckLengthEquals({
1911
+ check: "length_equals",
1912
+ ...normalizeParams(params),
1913
+ length
2907
1914
  });
2908
1915
  }
2909
- function _uuidv6(Class2, params) {
2910
- return new Class2({
2911
- type: "string",
2912
- format: "uuid",
1916
+ function _regex(pattern, params) {
1917
+ return new $ZodCheckRegex({
2913
1918
  check: "string_format",
2914
- abort: false,
2915
- version: "v6",
2916
- ...normalizeParams(params)
1919
+ format: "regex",
1920
+ ...normalizeParams(params),
1921
+ pattern
2917
1922
  });
2918
1923
  }
2919
- function _uuidv7(Class2, params) {
2920
- return new Class2({
2921
- type: "string",
2922
- format: "uuid",
2923
- check: "string_format",
2924
- abort: false,
2925
- version: "v7",
2926
- ...normalizeParams(params)
1924
+ function _overwrite(tx) {
1925
+ return new $ZodCheckOverwrite({
1926
+ check: "overwrite",
1927
+ tx
2927
1928
  });
2928
1929
  }
2929
- function _url(Class2, params) {
2930
- return new Class2({
2931
- type: "string",
2932
- format: "url",
2933
- check: "string_format",
2934
- abort: false,
2935
- ...normalizeParams(params)
2936
- });
2937
- }
2938
- function _emoji2(Class2, params) {
2939
- return new Class2({
2940
- type: "string",
2941
- format: "emoji",
2942
- check: "string_format",
2943
- abort: false,
2944
- ...normalizeParams(params)
2945
- });
2946
- }
2947
- function _nanoid(Class2, params) {
2948
- return new Class2({
2949
- type: "string",
2950
- format: "nanoid",
2951
- check: "string_format",
2952
- abort: false,
2953
- ...normalizeParams(params)
2954
- });
2955
- }
2956
- function _cuid(Class2, params) {
2957
- return new Class2({
2958
- type: "string",
2959
- format: "cuid",
2960
- check: "string_format",
2961
- abort: false,
2962
- ...normalizeParams(params)
2963
- });
2964
- }
2965
- function _cuid2(Class2, params) {
2966
- return new Class2({
2967
- type: "string",
2968
- format: "cuid2",
2969
- check: "string_format",
2970
- abort: false,
2971
- ...normalizeParams(params)
2972
- });
2973
- }
2974
- function _ulid(Class2, params) {
2975
- return new Class2({
2976
- type: "string",
2977
- format: "ulid",
2978
- check: "string_format",
2979
- abort: false,
2980
- ...normalizeParams(params)
2981
- });
2982
- }
2983
- function _xid(Class2, params) {
2984
- return new Class2({
2985
- type: "string",
2986
- format: "xid",
2987
- check: "string_format",
2988
- abort: false,
2989
- ...normalizeParams(params)
2990
- });
2991
- }
2992
- function _ksuid(Class2, params) {
2993
- return new Class2({
2994
- type: "string",
2995
- format: "ksuid",
2996
- check: "string_format",
2997
- abort: false,
2998
- ...normalizeParams(params)
2999
- });
3000
- }
3001
- function _ipv4(Class2, params) {
3002
- return new Class2({
3003
- type: "string",
3004
- format: "ipv4",
3005
- check: "string_format",
3006
- abort: false,
3007
- ...normalizeParams(params)
3008
- });
3009
- }
3010
- function _ipv6(Class2, params) {
3011
- return new Class2({
3012
- type: "string",
3013
- format: "ipv6",
3014
- check: "string_format",
3015
- abort: false,
3016
- ...normalizeParams(params)
3017
- });
3018
- }
3019
- function _cidrv4(Class2, params) {
3020
- return new Class2({
3021
- type: "string",
3022
- format: "cidrv4",
3023
- check: "string_format",
3024
- abort: false,
3025
- ...normalizeParams(params)
3026
- });
3027
- }
3028
- function _cidrv6(Class2, params) {
3029
- return new Class2({
3030
- type: "string",
3031
- format: "cidrv6",
3032
- check: "string_format",
3033
- abort: false,
3034
- ...normalizeParams(params)
3035
- });
3036
- }
3037
- function _base64(Class2, params) {
3038
- return new Class2({
3039
- type: "string",
3040
- format: "base64",
3041
- check: "string_format",
3042
- abort: false,
3043
- ...normalizeParams(params)
3044
- });
3045
- }
3046
- function _base64url(Class2, params) {
3047
- return new Class2({
3048
- type: "string",
3049
- format: "base64url",
3050
- check: "string_format",
3051
- abort: false,
3052
- ...normalizeParams(params)
3053
- });
3054
- }
3055
- function _e164(Class2, params) {
3056
- return new Class2({
3057
- type: "string",
3058
- format: "e164",
3059
- check: "string_format",
3060
- abort: false,
3061
- ...normalizeParams(params)
3062
- });
3063
- }
3064
- function _jwt(Class2, params) {
3065
- return new Class2({
3066
- type: "string",
3067
- format: "jwt",
3068
- check: "string_format",
3069
- abort: false,
3070
- ...normalizeParams(params)
3071
- });
3072
- }
3073
- function _isoDateTime(Class2, params) {
3074
- return new Class2({
3075
- type: "string",
3076
- format: "datetime",
3077
- check: "string_format",
3078
- offset: false,
3079
- local: false,
3080
- precision: null,
3081
- ...normalizeParams(params)
3082
- });
3083
- }
3084
- function _isoDate(Class2, params) {
3085
- return new Class2({
3086
- type: "string",
3087
- format: "date",
3088
- check: "string_format",
3089
- ...normalizeParams(params)
3090
- });
3091
- }
3092
- function _isoTime(Class2, params) {
3093
- return new Class2({
3094
- type: "string",
3095
- format: "time",
3096
- check: "string_format",
3097
- precision: null,
3098
- ...normalizeParams(params)
3099
- });
3100
- }
3101
- function _isoDuration(Class2, params) {
3102
- return new Class2({
3103
- type: "string",
3104
- format: "duration",
3105
- check: "string_format",
3106
- ...normalizeParams(params)
3107
- });
3108
- }
3109
- function _boolean(Class2, params) {
3110
- return new Class2({
3111
- type: "boolean",
3112
- ...normalizeParams(params)
3113
- });
3114
- }
3115
- function _any(Class2) {
3116
- return new Class2({
3117
- type: "any"
3118
- });
3119
- }
3120
- function _unknown(Class2) {
3121
- return new Class2({
3122
- type: "unknown"
3123
- });
3124
- }
3125
- function _never(Class2, params) {
3126
- return new Class2({
3127
- type: "never",
3128
- ...normalizeParams(params)
3129
- });
3130
- }
3131
- function _maxLength(maximum, params) {
3132
- const ch = new $ZodCheckMaxLength({
3133
- check: "max_length",
3134
- ...normalizeParams(params),
3135
- maximum
3136
- });
3137
- return ch;
3138
- }
3139
- function _minLength(minimum, params) {
3140
- return new $ZodCheckMinLength({
3141
- check: "min_length",
3142
- ...normalizeParams(params),
3143
- minimum
3144
- });
3145
- }
3146
- function _length(length, params) {
3147
- return new $ZodCheckLengthEquals({
3148
- check: "length_equals",
3149
- ...normalizeParams(params),
3150
- length
3151
- });
3152
- }
3153
- function _regex(pattern, params) {
3154
- return new $ZodCheckRegex({
3155
- check: "string_format",
3156
- format: "regex",
3157
- ...normalizeParams(params),
3158
- pattern
3159
- });
3160
- }
3161
- function _lowercase(params) {
3162
- return new $ZodCheckLowerCase({
3163
- check: "string_format",
3164
- format: "lowercase",
3165
- ...normalizeParams(params)
3166
- });
3167
- }
3168
- function _uppercase(params) {
3169
- return new $ZodCheckUpperCase({
3170
- check: "string_format",
3171
- format: "uppercase",
3172
- ...normalizeParams(params)
3173
- });
3174
- }
3175
- function _includes(includes, params) {
3176
- return new $ZodCheckIncludes({
3177
- check: "string_format",
3178
- format: "includes",
3179
- ...normalizeParams(params),
3180
- includes
3181
- });
3182
- }
3183
- function _startsWith(prefix, params) {
3184
- return new $ZodCheckStartsWith({
3185
- check: "string_format",
3186
- format: "starts_with",
3187
- ...normalizeParams(params),
3188
- prefix
3189
- });
3190
- }
3191
- function _endsWith(suffix, params) {
3192
- return new $ZodCheckEndsWith({
3193
- check: "string_format",
3194
- format: "ends_with",
3195
- ...normalizeParams(params),
3196
- suffix
3197
- });
3198
- }
3199
- function _overwrite(tx) {
3200
- return new $ZodCheckOverwrite({
3201
- check: "overwrite",
3202
- tx
3203
- });
3204
- }
3205
- function _normalize(form) {
3206
- return _overwrite((input) => input.normalize(form));
3207
- }
3208
- function _trim() {
3209
- return _overwrite((input) => input.trim());
1930
+ function _trim() {
1931
+ return _overwrite((input) => input.trim());
3210
1932
  }
3211
1933
  function _toLowerCase() {
3212
1934
  return _overwrite((input) => input.toLowerCase());
3213
1935
  }
3214
- function _toUpperCase() {
3215
- return _overwrite((input) => input.toUpperCase());
3216
- }
3217
- function _array(Class2, element, params) {
3218
- return new Class2({
3219
- type: "array",
3220
- element,
3221
- // get element() {
3222
- // return element;
3223
- // },
3224
- ...normalizeParams(params)
3225
- });
3226
- }
3227
- function _refine(Class2, fn, _params) {
3228
- const schema = new Class2({
3229
- type: "custom",
3230
- check: "custom",
3231
- fn,
3232
- ...normalizeParams(_params)
3233
- });
3234
- return schema;
3235
- }
3236
- function _superRefine(fn) {
3237
- const ch = _check((payload) => {
3238
- payload.addIssue = (issue2) => {
3239
- if (typeof issue2 === "string") {
3240
- payload.issues.push(issue(issue2, payload.value, ch._zod.def));
3241
- } else {
3242
- const _issue = issue2;
3243
- if (_issue.fatal)
3244
- _issue.continue = false;
3245
- _issue.code ?? (_issue.code = "custom");
3246
- _issue.input ?? (_issue.input = payload.value);
3247
- _issue.inst ?? (_issue.inst = ch);
3248
- _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
3249
- payload.issues.push(issue(_issue));
3250
- }
3251
- };
3252
- return fn(payload.value, payload);
3253
- });
3254
- return ch;
3255
- }
3256
- function _check(fn, params) {
3257
- const ch = new $ZodCheck({
3258
- check: "custom",
3259
- ...normalizeParams(params)
3260
- });
3261
- ch._zod.check = fn;
3262
- return ch;
3263
- }
3264
-
3265
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/iso.js
3266
- var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
3267
- $ZodISODateTime.init(inst, def);
3268
- ZodStringFormat.init(inst, def);
3269
- });
3270
- function datetime2(params) {
3271
- return _isoDateTime(ZodISODateTime, params);
3272
- }
3273
- var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
3274
- $ZodISODate.init(inst, def);
3275
- ZodStringFormat.init(inst, def);
3276
- });
3277
- function date2(params) {
3278
- return _isoDate(ZodISODate, params);
3279
- }
3280
- var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
3281
- $ZodISOTime.init(inst, def);
3282
- ZodStringFormat.init(inst, def);
3283
- });
3284
- function time2(params) {
3285
- return _isoTime(ZodISOTime, params);
3286
- }
3287
- var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
3288
- $ZodISODuration.init(inst, def);
3289
- ZodStringFormat.init(inst, def);
3290
- });
3291
- function duration2(params) {
3292
- return _isoDuration(ZodISODuration, params);
3293
- }
3294
1936
 
3295
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/errors.js
3296
- var initializer2 = (inst, issues) => {
3297
- $ZodError.init(inst, issues);
3298
- inst.name = "ZodError";
3299
- Object.defineProperties(inst, {
3300
- format: {
3301
- value: (mapper) => formatError(inst, mapper)
3302
- // enumerable: false,
3303
- },
3304
- flatten: {
3305
- value: (mapper) => flattenError(inst, mapper)
3306
- // enumerable: false,
3307
- },
3308
- addIssue: {
3309
- value: (issue2) => {
3310
- inst.issues.push(issue2);
3311
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
3312
- }
3313
- // enumerable: false,
3314
- },
3315
- addIssues: {
3316
- value: (issues2) => {
3317
- inst.issues.push(...issues2);
3318
- inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
3319
- }
3320
- // enumerable: false,
3321
- },
3322
- isEmpty: {
3323
- get() {
3324
- return inst.issues.length === 0;
3325
- }
3326
- // enumerable: false,
3327
- }
3328
- });
3329
- };
3330
- var ZodRealError = $constructor("ZodError", initializer2, {
3331
- Parent: Error
3332
- });
3333
-
3334
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/parse.js
3335
- var parse2 = /* @__PURE__ */ _parse(ZodRealError);
3336
- var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
3337
- var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
3338
- var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
3339
- var encode = /* @__PURE__ */ _encode(ZodRealError);
3340
- var decode = /* @__PURE__ */ _decode(ZodRealError);
3341
- var encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
3342
- var decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
3343
- var safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
3344
- var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
3345
- var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
3346
- var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
3347
-
3348
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/schemas.js
3349
- var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
1937
+ // ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js
1938
+ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1939
+ if (!inst._zod)
1940
+ throw new Error("Uninitialized schema in ZodMiniType.");
3350
1941
  $ZodType.init(inst, def);
3351
1942
  inst.def = def;
3352
1943
  inst.type = def.type;
3353
- Object.defineProperty(inst, "_def", { value: def });
1944
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
1945
+ inst.safeParse = (data, params) => safeParse(inst, data, params);
1946
+ inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
1947
+ inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
3354
1948
  inst.check = (...checks) => {
3355
1949
  return inst.clone(
3356
1950
  {
@@ -3363,446 +1957,142 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
3363
1957
  // { parent: true }
3364
1958
  );
3365
1959
  };
3366
- inst.clone = (def2, params) => clone(inst, def2, params);
1960
+ inst.clone = (_def, params) => clone(inst, _def, params);
3367
1961
  inst.brand = () => inst;
3368
1962
  inst.register = ((reg, meta) => {
3369
1963
  reg.add(inst, meta);
3370
1964
  return inst;
3371
1965
  });
3372
- inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
3373
- inst.safeParse = (data, params) => safeParse2(inst, data, params);
3374
- inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
3375
- inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params);
3376
- inst.spa = inst.safeParseAsync;
3377
- inst.encode = (data, params) => encode(inst, data, params);
3378
- inst.decode = (data, params) => decode(inst, data, params);
3379
- inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
3380
- inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
3381
- inst.safeEncode = (data, params) => safeEncode(inst, data, params);
3382
- inst.safeDecode = (data, params) => safeDecode(inst, data, params);
3383
- inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
3384
- inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
3385
- inst.refine = (check, params) => inst.check(refine(check, params));
3386
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
3387
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
3388
- inst.optional = () => optional(inst);
3389
- inst.nullable = () => nullable(inst);
3390
- inst.nullish = () => optional(nullable(inst));
3391
- inst.nonoptional = (params) => nonoptional(inst, params);
3392
- inst.array = () => array(inst);
3393
- inst.or = (arg) => union([inst, arg]);
3394
- inst.and = (arg) => intersection(inst, arg);
3395
- inst.transform = (tx) => pipe(inst, transform(tx));
3396
- inst.default = (def2) => _default(inst, def2);
3397
- inst.prefault = (def2) => prefault(inst, def2);
3398
- inst.catch = (params) => _catch(inst, params);
3399
- inst.pipe = (target) => pipe(inst, target);
3400
- inst.readonly = () => readonly(inst);
3401
- inst.describe = (description) => {
3402
- const cl = inst.clone();
3403
- globalRegistry.add(cl, { description });
3404
- return cl;
3405
- };
3406
- Object.defineProperty(inst, "description", {
3407
- get() {
3408
- return globalRegistry.get(inst)?.description;
3409
- },
3410
- configurable: true
3411
- });
3412
- inst.meta = (...args) => {
3413
- if (args.length === 0) {
3414
- return globalRegistry.get(inst);
3415
- }
3416
- const cl = inst.clone();
3417
- globalRegistry.add(cl, args[0]);
3418
- return cl;
3419
- };
3420
- inst.isOptional = () => inst.safeParse(void 0).success;
3421
- inst.isNullable = () => inst.safeParse(null).success;
3422
- return inst;
3423
1966
  });
3424
- var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
3425
- $ZodString.init(inst, def);
3426
- ZodType.init(inst, def);
3427
- const bag = inst._zod.bag;
3428
- inst.format = bag.format ?? null;
3429
- inst.minLength = bag.minimum ?? null;
3430
- inst.maxLength = bag.maximum ?? null;
3431
- inst.regex = (...args) => inst.check(_regex(...args));
3432
- inst.includes = (...args) => inst.check(_includes(...args));
3433
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
3434
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
3435
- inst.min = (...args) => inst.check(_minLength(...args));
3436
- inst.max = (...args) => inst.check(_maxLength(...args));
3437
- inst.length = (...args) => inst.check(_length(...args));
3438
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
3439
- inst.lowercase = (params) => inst.check(_lowercase(params));
3440
- inst.uppercase = (params) => inst.check(_uppercase(params));
3441
- inst.trim = () => inst.check(_trim());
3442
- inst.normalize = (...args) => inst.check(_normalize(...args));
3443
- inst.toLowerCase = () => inst.check(_toLowerCase());
3444
- inst.toUpperCase = () => inst.check(_toUpperCase());
3445
- });
3446
- var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
1967
+ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
3447
1968
  $ZodString.init(inst, def);
3448
- _ZodString.init(inst, def);
3449
- inst.email = (params) => inst.check(_email(ZodEmail, params));
3450
- inst.url = (params) => inst.check(_url(ZodURL, params));
3451
- inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
3452
- inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params));
3453
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
3454
- inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
3455
- inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
3456
- inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
3457
- inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
3458
- inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
3459
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
3460
- inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
3461
- inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
3462
- inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
3463
- inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
3464
- inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
3465
- inst.xid = (params) => inst.check(_xid(ZodXID, params));
3466
- inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
3467
- inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
3468
- inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
3469
- inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
3470
- inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
3471
- inst.e164 = (params) => inst.check(_e164(ZodE164, params));
3472
- inst.datetime = (params) => inst.check(datetime2(params));
3473
- inst.date = (params) => inst.check(date2(params));
3474
- inst.time = (params) => inst.check(time2(params));
3475
- inst.duration = (params) => inst.check(duration2(params));
1969
+ ZodMiniType.init(inst, def);
3476
1970
  });
3477
1971
  function string2(params) {
3478
- return _string(ZodString, params);
1972
+ return _string(ZodMiniString, params);
3479
1973
  }
3480
- var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
1974
+ var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
3481
1975
  $ZodStringFormat.init(inst, def);
3482
- _ZodString.init(inst, def);
3483
- });
3484
- var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
3485
- $ZodEmail.init(inst, def);
3486
- ZodStringFormat.init(inst, def);
3487
- });
3488
- var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
3489
- $ZodGUID.init(inst, def);
3490
- ZodStringFormat.init(inst, def);
3491
- });
3492
- var ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
3493
- $ZodUUID.init(inst, def);
3494
- ZodStringFormat.init(inst, def);
1976
+ ZodMiniString.init(inst, def);
3495
1977
  });
3496
- var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
1978
+ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
3497
1979
  $ZodURL.init(inst, def);
3498
- ZodStringFormat.init(inst, def);
1980
+ ZodMiniStringFormat.init(inst, def);
3499
1981
  });
3500
1982
  function url(params) {
3501
- return _url(ZodURL, params);
1983
+ return _url(ZodMiniURL, params);
3502
1984
  }
3503
- var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
3504
- $ZodEmoji.init(inst, def);
3505
- ZodStringFormat.init(inst, def);
3506
- });
3507
- var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
3508
- $ZodNanoID.init(inst, def);
3509
- ZodStringFormat.init(inst, def);
3510
- });
3511
- var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
3512
- $ZodCUID.init(inst, def);
3513
- ZodStringFormat.init(inst, def);
3514
- });
3515
- var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
3516
- $ZodCUID2.init(inst, def);
3517
- ZodStringFormat.init(inst, def);
3518
- });
3519
- var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
3520
- $ZodULID.init(inst, def);
3521
- ZodStringFormat.init(inst, def);
3522
- });
3523
- var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
3524
- $ZodXID.init(inst, def);
3525
- ZodStringFormat.init(inst, def);
3526
- });
3527
- var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
3528
- $ZodKSUID.init(inst, def);
3529
- ZodStringFormat.init(inst, def);
3530
- });
3531
- var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
3532
- $ZodIPv4.init(inst, def);
3533
- ZodStringFormat.init(inst, def);
3534
- });
3535
- var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
3536
- $ZodIPv6.init(inst, def);
3537
- ZodStringFormat.init(inst, def);
3538
- });
3539
- var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
3540
- $ZodCIDRv4.init(inst, def);
3541
- ZodStringFormat.init(inst, def);
3542
- });
3543
- var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
3544
- $ZodCIDRv6.init(inst, def);
3545
- ZodStringFormat.init(inst, def);
3546
- });
3547
- var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
3548
- $ZodBase64.init(inst, def);
3549
- ZodStringFormat.init(inst, def);
3550
- });
3551
- var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
3552
- $ZodBase64URL.init(inst, def);
3553
- ZodStringFormat.init(inst, def);
3554
- });
3555
- var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
3556
- $ZodE164.init(inst, def);
3557
- ZodStringFormat.init(inst, def);
3558
- });
3559
- var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
3560
- $ZodJWT.init(inst, def);
3561
- ZodStringFormat.init(inst, def);
3562
- });
3563
- var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
1985
+ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
3564
1986
  $ZodBoolean.init(inst, def);
3565
- ZodType.init(inst, def);
1987
+ ZodMiniType.init(inst, def);
3566
1988
  });
3567
1989
  function boolean2(params) {
3568
- return _boolean(ZodBoolean, params);
1990
+ return _boolean(ZodMiniBoolean, params);
3569
1991
  }
3570
- var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
1992
+ var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
3571
1993
  $ZodAny.init(inst, def);
3572
- ZodType.init(inst, def);
1994
+ ZodMiniType.init(inst, def);
3573
1995
  });
3574
1996
  function any() {
3575
- return _any(ZodAny);
1997
+ return _any(ZodMiniAny);
3576
1998
  }
3577
- var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
3578
- $ZodUnknown.init(inst, def);
3579
- ZodType.init(inst, def);
3580
- });
3581
- function unknown() {
3582
- return _unknown(ZodUnknown);
3583
- }
3584
- var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
3585
- $ZodNever.init(inst, def);
3586
- ZodType.init(inst, def);
3587
- });
3588
- function never(params) {
3589
- return _never(ZodNever, params);
3590
- }
3591
- var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
1999
+ var ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
3592
2000
  $ZodArray.init(inst, def);
3593
- ZodType.init(inst, def);
3594
- inst.element = def.element;
3595
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
3596
- inst.nonempty = (params) => inst.check(_minLength(1, params));
3597
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
3598
- inst.length = (len, params) => inst.check(_length(len, params));
3599
- inst.unwrap = () => inst.element;
2001
+ ZodMiniType.init(inst, def);
3600
2002
  });
3601
2003
  function array(element, params) {
3602
- return _array(ZodArray, element, params);
2004
+ return new ZodMiniArray({
2005
+ type: "array",
2006
+ element,
2007
+ ...util_exports.normalizeParams(params)
2008
+ });
3603
2009
  }
3604
- var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
3605
- $ZodObjectJIT.init(inst, def);
3606
- ZodType.init(inst, def);
2010
+ var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
2011
+ $ZodObject.init(inst, def);
2012
+ ZodMiniType.init(inst, def);
3607
2013
  util_exports.defineLazy(inst, "shape", () => def.shape);
3608
- inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
3609
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
3610
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
3611
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
3612
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
3613
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
3614
- inst.extend = (incoming) => {
3615
- return util_exports.extend(inst, incoming);
3616
- };
3617
- inst.safeExtend = (incoming) => {
3618
- return util_exports.safeExtend(inst, incoming);
3619
- };
3620
- inst.merge = (other) => util_exports.merge(inst, other);
3621
- inst.pick = (mask) => util_exports.pick(inst, mask);
3622
- inst.omit = (mask) => util_exports.omit(inst, mask);
3623
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
3624
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
3625
2014
  });
3626
2015
  function object(shape, params) {
3627
2016
  const def = {
3628
2017
  type: "object",
3629
- get shape() {
3630
- util_exports.assignProp(this, "shape", shape ? util_exports.objectClone(shape) : {});
3631
- return this.shape;
3632
- },
2018
+ shape: shape ?? {},
3633
2019
  ...util_exports.normalizeParams(params)
3634
2020
  };
3635
- return new ZodObject(def);
2021
+ return new ZodMiniObject(def);
3636
2022
  }
3637
- var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
2023
+ var ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
3638
2024
  $ZodUnion.init(inst, def);
3639
- ZodType.init(inst, def);
3640
- inst.options = def.options;
2025
+ ZodMiniType.init(inst, def);
3641
2026
  });
3642
2027
  function union(options, params) {
3643
- return new ZodUnion({
2028
+ return new ZodMiniUnion({
3644
2029
  type: "union",
3645
2030
  options,
3646
2031
  ...util_exports.normalizeParams(params)
3647
2032
  });
3648
2033
  }
3649
- var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
3650
- $ZodIntersection.init(inst, def);
3651
- ZodType.init(inst, def);
3652
- });
3653
- function intersection(left, right) {
3654
- return new ZodIntersection({
3655
- type: "intersection",
3656
- left,
3657
- right
3658
- });
3659
- }
3660
- var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
2034
+ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
3661
2035
  $ZodRecord.init(inst, def);
3662
- ZodType.init(inst, def);
3663
- inst.keyType = def.keyType;
3664
- inst.valueType = def.valueType;
2036
+ ZodMiniType.init(inst, def);
3665
2037
  });
3666
2038
  function record(keyType, valueType, params) {
3667
- return new ZodRecord({
2039
+ return new ZodMiniRecord({
3668
2040
  type: "record",
3669
2041
  keyType,
3670
2042
  valueType,
3671
2043
  ...util_exports.normalizeParams(params)
3672
2044
  });
3673
2045
  }
3674
- var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
2046
+ var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
3675
2047
  $ZodEnum.init(inst, def);
3676
- ZodType.init(inst, def);
3677
- inst.enum = def.entries;
2048
+ ZodMiniType.init(inst, def);
3678
2049
  inst.options = Object.values(def.entries);
3679
- const keys = new Set(Object.keys(def.entries));
3680
- inst.extract = (values, params) => {
3681
- const newEntries = {};
3682
- for (const value of values) {
3683
- if (keys.has(value)) {
3684
- newEntries[value] = def.entries[value];
3685
- } else
3686
- throw new Error(`Key ${value} not found in enum`);
3687
- }
3688
- return new ZodEnum({
3689
- ...def,
3690
- checks: [],
3691
- ...util_exports.normalizeParams(params),
3692
- entries: newEntries
3693
- });
3694
- };
3695
- inst.exclude = (values, params) => {
3696
- const newEntries = { ...def.entries };
3697
- for (const value of values) {
3698
- if (keys.has(value)) {
3699
- delete newEntries[value];
3700
- } else
3701
- throw new Error(`Key ${value} not found in enum`);
3702
- }
3703
- return new ZodEnum({
3704
- ...def,
3705
- checks: [],
3706
- ...util_exports.normalizeParams(params),
3707
- entries: newEntries
3708
- });
3709
- };
3710
2050
  });
3711
2051
  function _enum(values, params) {
3712
2052
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
3713
- return new ZodEnum({
2053
+ return new ZodMiniEnum({
3714
2054
  type: "enum",
3715
2055
  entries,
3716
2056
  ...util_exports.normalizeParams(params)
3717
2057
  });
3718
2058
  }
3719
- var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
2059
+ var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
3720
2060
  $ZodLiteral.init(inst, def);
3721
- ZodType.init(inst, def);
3722
- inst.values = new Set(def.values);
3723
- Object.defineProperty(inst, "value", {
3724
- get() {
3725
- if (def.values.length > 1) {
3726
- throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
3727
- }
3728
- return def.values[0];
3729
- }
3730
- });
2061
+ ZodMiniType.init(inst, def);
3731
2062
  });
3732
2063
  function literal(value, params) {
3733
- return new ZodLiteral({
2064
+ return new ZodMiniLiteral({
3734
2065
  type: "literal",
3735
2066
  values: Array.isArray(value) ? value : [value],
3736
2067
  ...util_exports.normalizeParams(params)
3737
2068
  });
3738
2069
  }
3739
- var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
3740
- $ZodTransform.init(inst, def);
3741
- ZodType.init(inst, def);
3742
- inst._zod.parse = (payload, _ctx) => {
3743
- if (_ctx.direction === "backward") {
3744
- throw new $ZodEncodeError(inst.constructor.name);
3745
- }
3746
- payload.addIssue = (issue2) => {
3747
- if (typeof issue2 === "string") {
3748
- payload.issues.push(util_exports.issue(issue2, payload.value, def));
3749
- } else {
3750
- const _issue = issue2;
3751
- if (_issue.fatal)
3752
- _issue.continue = false;
3753
- _issue.code ?? (_issue.code = "custom");
3754
- _issue.input ?? (_issue.input = payload.value);
3755
- _issue.inst ?? (_issue.inst = inst);
3756
- payload.issues.push(util_exports.issue(_issue));
3757
- }
3758
- };
3759
- const output = def.transform(payload.value, payload);
3760
- if (output instanceof Promise) {
3761
- return output.then((output2) => {
3762
- payload.value = output2;
3763
- return payload;
3764
- });
3765
- }
3766
- payload.value = output;
3767
- return payload;
3768
- };
3769
- });
3770
- function transform(fn) {
3771
- return new ZodTransform({
3772
- type: "transform",
3773
- transform: fn
3774
- });
3775
- }
3776
- var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
2070
+ var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
3777
2071
  $ZodOptional.init(inst, def);
3778
- ZodType.init(inst, def);
3779
- inst.unwrap = () => inst._zod.def.innerType;
2072
+ ZodMiniType.init(inst, def);
3780
2073
  });
3781
2074
  function optional(innerType) {
3782
- return new ZodOptional({
2075
+ return new ZodMiniOptional({
3783
2076
  type: "optional",
3784
2077
  innerType
3785
2078
  });
3786
2079
  }
3787
- var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
2080
+ var ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def) => {
3788
2081
  $ZodNullable.init(inst, def);
3789
- ZodType.init(inst, def);
3790
- inst.unwrap = () => inst._zod.def.innerType;
2082
+ ZodMiniType.init(inst, def);
3791
2083
  });
3792
2084
  function nullable(innerType) {
3793
- return new ZodNullable({
2085
+ return new ZodMiniNullable({
3794
2086
  type: "nullable",
3795
2087
  innerType
3796
2088
  });
3797
2089
  }
3798
- var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
2090
+ var ZodMiniDefault = /* @__PURE__ */ $constructor("ZodMiniDefault", (inst, def) => {
3799
2091
  $ZodDefault.init(inst, def);
3800
- ZodType.init(inst, def);
3801
- inst.unwrap = () => inst._zod.def.innerType;
3802
- inst.removeDefault = inst.unwrap;
2092
+ ZodMiniType.init(inst, def);
3803
2093
  });
3804
2094
  function _default(innerType, defaultValue) {
3805
- return new ZodDefault({
2095
+ return new ZodMiniDefault({
3806
2096
  type: "default",
3807
2097
  innerType,
3808
2098
  get defaultValue() {
@@ -3810,83 +2100,6 @@ function _default(innerType, defaultValue) {
3810
2100
  }
3811
2101
  });
3812
2102
  }
3813
- var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
3814
- $ZodPrefault.init(inst, def);
3815
- ZodType.init(inst, def);
3816
- inst.unwrap = () => inst._zod.def.innerType;
3817
- });
3818
- function prefault(innerType, defaultValue) {
3819
- return new ZodPrefault({
3820
- type: "prefault",
3821
- innerType,
3822
- get defaultValue() {
3823
- return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
3824
- }
3825
- });
3826
- }
3827
- var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
3828
- $ZodNonOptional.init(inst, def);
3829
- ZodType.init(inst, def);
3830
- inst.unwrap = () => inst._zod.def.innerType;
3831
- });
3832
- function nonoptional(innerType, params) {
3833
- return new ZodNonOptional({
3834
- type: "nonoptional",
3835
- innerType,
3836
- ...util_exports.normalizeParams(params)
3837
- });
3838
- }
3839
- var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
3840
- $ZodCatch.init(inst, def);
3841
- ZodType.init(inst, def);
3842
- inst.unwrap = () => inst._zod.def.innerType;
3843
- inst.removeCatch = inst.unwrap;
3844
- });
3845
- function _catch(innerType, catchValue) {
3846
- return new ZodCatch({
3847
- type: "catch",
3848
- innerType,
3849
- catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
3850
- });
3851
- }
3852
- var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
3853
- $ZodPipe.init(inst, def);
3854
- ZodType.init(inst, def);
3855
- inst.in = def.in;
3856
- inst.out = def.out;
3857
- });
3858
- function pipe(in_, out) {
3859
- return new ZodPipe({
3860
- type: "pipe",
3861
- in: in_,
3862
- out
3863
- // ...util.normalizeParams(params),
3864
- });
3865
- }
3866
- var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
3867
- $ZodReadonly.init(inst, def);
3868
- ZodType.init(inst, def);
3869
- inst.unwrap = () => inst._zod.def.innerType;
3870
- });
3871
- function readonly(innerType) {
3872
- return new ZodReadonly({
3873
- type: "readonly",
3874
- innerType
3875
- });
3876
- }
3877
- var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
3878
- $ZodCustom.init(inst, def);
3879
- ZodType.init(inst, def);
3880
- });
3881
- function refine(fn, _params = {}) {
3882
- return _refine(ZodCustom, fn, _params);
3883
- }
3884
- function superRefine(fn) {
3885
- return _superRefine(fn);
3886
- }
3887
-
3888
- // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/external.js
3889
- config(en_default());
3890
2103
 
3891
2104
  // ../config/src/constants.ts
3892
2105
  var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
@@ -5499,15 +3712,15 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
5499
3712
  await workspaceConfigSchema.parseAsync(configInput)
5500
3713
  );
5501
3714
  result.workspaceRoot ??= _workspaceRoot;
5502
- } catch (error2) {
3715
+ } catch (error) {
5503
3716
  throw new Error(
5504
- `Failed to parse Storm Workspace configuration${error2?.message ? `: ${error2.message}` : ""}
3717
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
5505
3718
 
5506
3719
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
5507
3720
  configInput
5508
3721
  )}`,
5509
3722
  {
5510
- cause: error2
3723
+ cause: error
5511
3724
  }
5512
3725
  );
5513
3726
  }