@xyo-network/hash 4.2.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@
49
49
  }
50
50
  });
51
51
 
52
- // ../../../../../../node_modules/.store/@xylabs-typeof-npm-4.14.1-866d10661f/package/dist/neutral/index.mjs
52
+ // ../../../../../../node_modules/.store/@xylabs-typeof-npm-5.0.0-e0c7410f2b/package/dist/neutral/index.mjs
53
53
  function isUndefined(value) {
54
54
  return value === void 0;
55
55
  }
@@ -60,7 +60,7 @@
60
60
  return typeof value === "number";
61
61
  }
62
62
 
63
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/external.js
63
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/external.js
64
64
  var external_exports = {};
65
65
  __export(external_exports, {
66
66
  $brand: () => $brand,
@@ -176,6 +176,7 @@
176
176
  gt: () => _gt,
177
177
  gte: () => _gte,
178
178
  guid: () => guid2,
179
+ hostname: () => hostname2,
179
180
  includes: () => _includes,
180
181
  instanceof: () => _instanceof,
181
182
  int: () => int,
@@ -273,7 +274,7 @@
273
274
  xid: () => xid2
274
275
  });
275
276
 
276
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/index.js
277
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/index.js
277
278
  var core_exports2 = {};
278
279
  __export(core_exports2, {
279
280
  $ZodAny: () => $ZodAny,
@@ -386,6 +387,7 @@
386
387
  _bigint: () => _bigint,
387
388
  _boolean: () => _boolean,
388
389
  _catch: () => _catch,
390
+ _check: () => _check,
389
391
  _cidrv4: () => _cidrv4,
390
392
  _cidrv6: () => _cidrv6,
391
393
  _coercedBigint: () => _coercedBigint,
@@ -471,6 +473,7 @@
471
473
  _stringFormat: () => _stringFormat,
472
474
  _stringbool: () => _stringbool,
473
475
  _success: () => _success,
476
+ _superRefine: () => _superRefine,
474
477
  _symbol: () => _symbol,
475
478
  _templateLiteral: () => _templateLiteral,
476
479
  _toLowerCase: () => _toLowerCase,
@@ -517,7 +520,7 @@
517
520
  version: () => version
518
521
  });
519
522
 
520
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/core.js
523
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/core.js
521
524
  var NEVER = Object.freeze({
522
525
  status: "aborted"
523
526
  });
@@ -577,7 +580,7 @@
577
580
  return globalConfig;
578
581
  }
579
582
 
580
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/util.js
583
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/util.js
581
584
  var util_exports = {};
582
585
  __export(util_exports, {
583
586
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -681,22 +684,32 @@
681
684
  }
682
685
  function floatSafeRemainder(val, step) {
683
686
  const valDecCount = (val.toString().split(".")[1] || "").length;
684
- const stepDecCount = (step.toString().split(".")[1] || "").length;
687
+ const stepString = step.toString();
688
+ let stepDecCount = (stepString.split(".")[1] || "").length;
689
+ if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
690
+ const match = stepString.match(/\d?e-(\d?)/);
691
+ if (match?.[1]) {
692
+ stepDecCount = Number.parseInt(match[1]);
693
+ }
694
+ }
685
695
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
686
696
  const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
687
697
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
688
698
  return valInt % stepInt / 10 ** decCount;
689
699
  }
700
+ var EVALUATING = Symbol("evaluating");
690
701
  function defineLazy(object2, key, getter) {
691
- const set2 = false;
702
+ let value = void 0;
692
703
  Object.defineProperty(object2, key, {
693
704
  get() {
694
- if (!set2) {
695
- const value = getter();
696
- object2[key] = value;
697
- return value;
705
+ if (value === EVALUATING) {
706
+ return void 0;
698
707
  }
699
- throw new Error("cached value already set");
708
+ if (value === void 0) {
709
+ value = EVALUATING;
710
+ value = getter();
711
+ }
712
+ return value;
700
713
  },
701
714
  set(v) {
702
715
  Object.defineProperty(object2, key, {
@@ -1123,7 +1136,7 @@
1123
1136
  }
1124
1137
  };
1125
1138
 
1126
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/errors.js
1139
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/errors.js
1127
1140
  var initializer = (inst, def) => {
1128
1141
  inst.name = "$ZodError";
1129
1142
  Object.defineProperty(inst, "_zod", {
@@ -1142,10 +1155,10 @@
1142
1155
  };
1143
1156
  var $ZodError = $constructor("$ZodError", initializer);
1144
1157
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1145
- function flattenError(error42, mapper = (issue2) => issue2.message) {
1158
+ function flattenError(error43, mapper = (issue2) => issue2.message) {
1146
1159
  const fieldErrors = {};
1147
1160
  const formErrors = [];
1148
- for (const sub of error42.issues) {
1161
+ for (const sub of error43.issues) {
1149
1162
  if (sub.path.length > 0) {
1150
1163
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1151
1164
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -1155,13 +1168,13 @@
1155
1168
  }
1156
1169
  return { formErrors, fieldErrors };
1157
1170
  }
1158
- function formatError(error42, _mapper) {
1171
+ function formatError(error43, _mapper) {
1159
1172
  const mapper = _mapper || function(issue2) {
1160
1173
  return issue2.message;
1161
1174
  };
1162
1175
  const fieldErrors = { _errors: [] };
1163
- const processError = (error43) => {
1164
- for (const issue2 of error43.issues) {
1176
+ const processError = (error44) => {
1177
+ for (const issue2 of error44.issues) {
1165
1178
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1166
1179
  issue2.errors.map((issues) => processError({ issues }));
1167
1180
  } else if (issue2.code === "invalid_key") {
@@ -1188,17 +1201,17 @@
1188
1201
  }
1189
1202
  }
1190
1203
  };
1191
- processError(error42);
1204
+ processError(error43);
1192
1205
  return fieldErrors;
1193
1206
  }
1194
- function treeifyError(error42, _mapper) {
1207
+ function treeifyError(error43, _mapper) {
1195
1208
  const mapper = _mapper || function(issue2) {
1196
1209
  return issue2.message;
1197
1210
  };
1198
1211
  const result = { errors: [] };
1199
- const processError = (error43, path = []) => {
1212
+ const processError = (error44, path = []) => {
1200
1213
  var _a2, _b;
1201
- for (const issue2 of error43.issues) {
1214
+ for (const issue2 of error44.issues) {
1202
1215
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1203
1216
  issue2.errors.map((issues) => processError({ issues }, issue2.path));
1204
1217
  } else if (issue2.code === "invalid_key") {
@@ -1233,7 +1246,7 @@
1233
1246
  }
1234
1247
  }
1235
1248
  };
1236
- processError(error42);
1249
+ processError(error43);
1237
1250
  return result;
1238
1251
  }
1239
1252
  function toDotPath(_path) {
@@ -1254,9 +1267,9 @@
1254
1267
  }
1255
1268
  return segs.join("");
1256
1269
  }
1257
- function prettifyError(error42) {
1270
+ function prettifyError(error43) {
1258
1271
  const lines = [];
1259
- const issues = [...error42.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1272
+ const issues = [...error43.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
1260
1273
  for (const issue2 of issues) {
1261
1274
  lines.push(`\u2716 ${issue2.message}`);
1262
1275
  if (issue2.path?.length)
@@ -1265,7 +1278,7 @@
1265
1278
  return lines.join("\n");
1266
1279
  }
1267
1280
 
1268
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/parse.js
1281
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/parse.js
1269
1282
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1270
1283
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1271
1284
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1317,7 +1330,7 @@
1317
1330
  };
1318
1331
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1319
1332
 
1320
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/regexes.js
1333
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/regexes.js
1321
1334
  var regexes_exports = {};
1322
1335
  __export(regexes_exports, {
1323
1336
  base64: () => base64,
@@ -1340,6 +1353,7 @@
1340
1353
  guid: () => guid,
1341
1354
  hostname: () => hostname,
1342
1355
  html5Email: () => html5Email,
1356
+ idnEmail: () => idnEmail,
1343
1357
  integer: () => integer,
1344
1358
  ipv4: () => ipv4,
1345
1359
  ipv6: () => ipv6,
@@ -1382,6 +1396,7 @@
1382
1396
  var html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
1383
1397
  var rfc5322Email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
1384
1398
  var unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
1399
+ var idnEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
1385
1400
  var browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
1386
1401
  var _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
1387
1402
  function emoji() {
@@ -1393,7 +1408,7 @@
1393
1408
  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])$/;
1394
1409
  var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
1395
1410
  var base64url = /^[A-Za-z0-9_-]*$/;
1396
- var hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
1411
+ 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])?)*\.?$/;
1397
1412
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1398
1413
  var e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
1399
1414
  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])))`;
@@ -1412,7 +1427,7 @@
1412
1427
  if (args.local)
1413
1428
  opts.push("");
1414
1429
  if (args.offset)
1415
- opts.push(`([+-]\\d{2}:\\d{2})`);
1430
+ opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
1416
1431
  const timeRegex = `${time3}(?:${opts.join("|")})`;
1417
1432
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
1418
1433
  }
@@ -1429,7 +1444,7 @@
1429
1444
  var lowercase = /^[^A-Z]*$/;
1430
1445
  var uppercase = /^[^a-z]*$/;
1431
1446
 
1432
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/checks.js
1447
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/checks.js
1433
1448
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1434
1449
  var _a2;
1435
1450
  inst._zod ?? (inst._zod = {});
@@ -1541,6 +1556,7 @@
1541
1556
  expected: origin,
1542
1557
  format: def.format,
1543
1558
  code: "invalid_type",
1559
+ continue: false,
1544
1560
  input,
1545
1561
  inst
1546
1562
  });
@@ -1956,7 +1972,8 @@
1956
1972
  code: "invalid_value",
1957
1973
  values: def.mime,
1958
1974
  input: payload.value.type,
1959
- inst
1975
+ inst,
1976
+ continue: !def.abort
1960
1977
  });
1961
1978
  };
1962
1979
  });
@@ -1967,7 +1984,7 @@
1967
1984
  };
1968
1985
  });
1969
1986
 
1970
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/doc.js
1987
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/doc.js
1971
1988
  var Doc = class {
1972
1989
  constructor(args = []) {
1973
1990
  this.content = [];
@@ -2003,14 +2020,14 @@
2003
2020
  }
2004
2021
  };
2005
2022
 
2006
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/versions.js
2023
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/versions.js
2007
2024
  var version = {
2008
2025
  major: 4,
2009
2026
  minor: 0,
2010
- patch: 10
2027
+ patch: 14
2011
2028
  };
2012
2029
 
2013
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/schemas.js
2030
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/schemas.js
2014
2031
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2015
2032
  var _a2;
2016
2033
  inst ?? (inst = {});
@@ -2822,7 +2839,12 @@
2822
2839
  }
2823
2840
  return void 0;
2824
2841
  });
2842
+ const single = def.options.length === 1;
2843
+ const first = def.options[0]._zod.run;
2825
2844
  inst._zod.parse = (payload, ctx) => {
2845
+ if (single) {
2846
+ return first(payload, ctx);
2847
+ }
2826
2848
  let async = false;
2827
2849
  const results = [];
2828
2850
  for (const option of def.options) {
@@ -3008,10 +3030,10 @@
3008
3030
  const tooSmall = input.length < optStart - 1;
3009
3031
  if (tooBig || tooSmall) {
3010
3032
  payload.issues.push({
3033
+ ...tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length },
3011
3034
  input,
3012
3035
  inst,
3013
- origin: "array",
3014
- ...tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }
3036
+ origin: "array"
3015
3037
  });
3016
3038
  return payload;
3017
3039
  }
@@ -3120,8 +3142,8 @@
3120
3142
  }
3121
3143
  if (keyResult.issues.length) {
3122
3144
  payload.issues.push({
3123
- origin: "record",
3124
3145
  code: "invalid_key",
3146
+ origin: "record",
3125
3147
  issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
3126
3148
  input: key,
3127
3149
  path: [key],
@@ -3189,8 +3211,8 @@
3189
3211
  final.issues.push(...prefixIssues(key, keyResult.issues));
3190
3212
  } else {
3191
3213
  final.issues.push({
3192
- origin: "map",
3193
3214
  code: "invalid_key",
3215
+ origin: "map",
3194
3216
  input,
3195
3217
  inst,
3196
3218
  issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))
@@ -3320,6 +3342,12 @@
3320
3342
  return payload;
3321
3343
  };
3322
3344
  });
3345
+ function handleOptionalResult(result, input) {
3346
+ if (result.issues.length && input === void 0) {
3347
+ return { issues: [], value: void 0 };
3348
+ }
3349
+ return result;
3350
+ }
3323
3351
  var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
3324
3352
  $ZodType.init(inst, def);
3325
3353
  inst._zod.optin = "optional";
@@ -3333,7 +3361,10 @@
3333
3361
  });
3334
3362
  inst._zod.parse = (payload, ctx) => {
3335
3363
  if (def.innerType._zod.optin === "optional") {
3336
- return def.innerType._zod.run(payload, ctx);
3364
+ const result = def.innerType._zod.run(payload, ctx);
3365
+ if (result instanceof Promise)
3366
+ return result.then((r) => handleOptionalResult(r, payload.value));
3367
+ return handleOptionalResult(result, payload.value);
3337
3368
  }
3338
3369
  if (payload.value === void 0) {
3339
3370
  return payload;
@@ -3576,8 +3607,8 @@
3576
3607
  defineLazy(inst._zod, "innerType", () => def.getter());
3577
3608
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
3578
3609
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
3579
- defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin);
3580
- defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout);
3610
+ defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin ?? void 0);
3611
+ defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout ?? void 0);
3581
3612
  inst._zod.parse = (payload, ctx) => {
3582
3613
  const inner = inst._zod.innerType;
3583
3614
  return inner._zod.run(payload, ctx);
@@ -3617,7 +3648,7 @@
3617
3648
  }
3618
3649
  }
3619
3650
 
3620
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/index.js
3651
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/index.js
3621
3652
  var locales_exports = {};
3622
3653
  __export(locales_exports, {
3623
3654
  ar: () => ar_default,
@@ -3659,11 +3690,12 @@
3659
3690
  ua: () => ua_default,
3660
3691
  ur: () => ur_default,
3661
3692
  vi: () => vi_default,
3693
+ yo: () => yo_default,
3662
3694
  zhCN: () => zh_CN_default,
3663
3695
  zhTW: () => zh_TW_default
3664
3696
  });
3665
3697
 
3666
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ar.js
3698
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ar.js
3667
3699
  var error = () => {
3668
3700
  const Sizable = {
3669
3701
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -3780,7 +3812,7 @@
3780
3812
  };
3781
3813
  }
3782
3814
 
3783
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/az.js
3815
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/az.js
3784
3816
  var error2 = () => {
3785
3817
  const Sizable = {
3786
3818
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -3896,7 +3928,7 @@
3896
3928
  };
3897
3929
  }
3898
3930
 
3899
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/be.js
3931
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/be.js
3900
3932
  function getBelarusianPlural(count, one, few, many) {
3901
3933
  const absCount = Math.abs(count);
3902
3934
  const lastDigit = absCount % 10;
@@ -4061,7 +4093,7 @@
4061
4093
  };
4062
4094
  }
4063
4095
 
4064
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ca.js
4096
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ca.js
4065
4097
  var error4 = () => {
4066
4098
  const Sizable = {
4067
4099
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -4181,7 +4213,7 @@
4181
4213
  };
4182
4214
  }
4183
4215
 
4184
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/cs.js
4216
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/cs.js
4185
4217
  var error5 = () => {
4186
4218
  const Sizable = {
4187
4219
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -4317,7 +4349,7 @@
4317
4349
  };
4318
4350
  }
4319
4351
 
4320
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/da.js
4352
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/da.js
4321
4353
  var error6 = () => {
4322
4354
  const Sizable = {
4323
4355
  string: { unit: "tegn", verb: "havde" },
@@ -4449,7 +4481,7 @@
4449
4481
  };
4450
4482
  }
4451
4483
 
4452
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/de.js
4484
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/de.js
4453
4485
  var error7 = () => {
4454
4486
  const Sizable = {
4455
4487
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -4566,7 +4598,7 @@
4566
4598
  };
4567
4599
  }
4568
4600
 
4569
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/en.js
4601
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/en.js
4570
4602
  var parsedType = (data) => {
4571
4603
  const t = typeof data;
4572
4604
  switch (t) {
@@ -4684,7 +4716,7 @@
4684
4716
  };
4685
4717
  }
4686
4718
 
4687
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/eo.js
4719
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/eo.js
4688
4720
  var parsedType2 = (data) => {
4689
4721
  const t = typeof data;
4690
4722
  switch (t) {
@@ -4801,7 +4833,7 @@
4801
4833
  };
4802
4834
  }
4803
4835
 
4804
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/es.js
4836
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/es.js
4805
4837
  var error10 = () => {
4806
4838
  const Sizable = {
4807
4839
  string: { unit: "caracteres", verb: "tener" },
@@ -4919,7 +4951,7 @@
4919
4951
  };
4920
4952
  }
4921
4953
 
4922
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/fa.js
4954
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/fa.js
4923
4955
  var error11 = () => {
4924
4956
  const Sizable = {
4925
4957
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -5042,7 +5074,7 @@
5042
5074
  };
5043
5075
  }
5044
5076
 
5045
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/fi.js
5077
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/fi.js
5046
5078
  var error12 = () => {
5047
5079
  const Sizable = {
5048
5080
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -5165,7 +5197,7 @@
5165
5197
  };
5166
5198
  }
5167
5199
 
5168
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/fr.js
5200
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/fr.js
5169
5201
  var error13 = () => {
5170
5202
  const Sizable = {
5171
5203
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -5282,7 +5314,7 @@
5282
5314
  };
5283
5315
  }
5284
5316
 
5285
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/fr-CA.js
5317
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/fr-CA.js
5286
5318
  var error14 = () => {
5287
5319
  const Sizable = {
5288
5320
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -5400,7 +5432,7 @@
5400
5432
  };
5401
5433
  }
5402
5434
 
5403
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/he.js
5435
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/he.js
5404
5436
  var error15 = () => {
5405
5437
  const Sizable = {
5406
5438
  string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
@@ -5518,7 +5550,7 @@
5518
5550
  };
5519
5551
  }
5520
5552
 
5521
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/hu.js
5553
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/hu.js
5522
5554
  var error16 = () => {
5523
5555
  const Sizable = {
5524
5556
  string: { unit: "karakter", verb: "legyen" },
@@ -5636,7 +5668,7 @@
5636
5668
  };
5637
5669
  }
5638
5670
 
5639
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/id.js
5671
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/id.js
5640
5672
  var error17 = () => {
5641
5673
  const Sizable = {
5642
5674
  string: { unit: "karakter", verb: "memiliki" },
@@ -5753,7 +5785,7 @@
5753
5785
  };
5754
5786
  }
5755
5787
 
5756
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/is.js
5788
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/is.js
5757
5789
  var parsedType3 = (data) => {
5758
5790
  const t = typeof data;
5759
5791
  switch (t) {
@@ -5871,7 +5903,7 @@
5871
5903
  };
5872
5904
  }
5873
5905
 
5874
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/it.js
5906
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/it.js
5875
5907
  var error19 = () => {
5876
5908
  const Sizable = {
5877
5909
  string: { unit: "caratteri", verb: "avere" },
@@ -5989,7 +6021,7 @@
5989
6021
  };
5990
6022
  }
5991
6023
 
5992
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ja.js
6024
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ja.js
5993
6025
  var error20 = () => {
5994
6026
  const Sizable = {
5995
6027
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -6105,7 +6137,7 @@
6105
6137
  };
6106
6138
  }
6107
6139
 
6108
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/kh.js
6140
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/kh.js
6109
6141
  var error21 = () => {
6110
6142
  const Sizable = {
6111
6143
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -6223,7 +6255,7 @@
6223
6255
  };
6224
6256
  }
6225
6257
 
6226
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ko.js
6258
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ko.js
6227
6259
  var error22 = () => {
6228
6260
  const Sizable = {
6229
6261
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -6345,7 +6377,7 @@
6345
6377
  };
6346
6378
  }
6347
6379
 
6348
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/mk.js
6380
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/mk.js
6349
6381
  var error23 = () => {
6350
6382
  const Sizable = {
6351
6383
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -6464,7 +6496,7 @@
6464
6496
  };
6465
6497
  }
6466
6498
 
6467
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ms.js
6499
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ms.js
6468
6500
  var error24 = () => {
6469
6501
  const Sizable = {
6470
6502
  string: { unit: "aksara", verb: "mempunyai" },
@@ -6581,7 +6613,7 @@
6581
6613
  };
6582
6614
  }
6583
6615
 
6584
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/nl.js
6616
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/nl.js
6585
6617
  var error25 = () => {
6586
6618
  const Sizable = {
6587
6619
  string: { unit: "tekens" },
@@ -6699,7 +6731,7 @@
6699
6731
  };
6700
6732
  }
6701
6733
 
6702
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/no.js
6734
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/no.js
6703
6735
  var error26 = () => {
6704
6736
  const Sizable = {
6705
6737
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -6816,7 +6848,7 @@
6816
6848
  };
6817
6849
  }
6818
6850
 
6819
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ota.js
6851
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ota.js
6820
6852
  var error27 = () => {
6821
6853
  const Sizable = {
6822
6854
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -6934,7 +6966,7 @@
6934
6966
  };
6935
6967
  }
6936
6968
 
6937
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ps.js
6969
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ps.js
6938
6970
  var error28 = () => {
6939
6971
  const Sizable = {
6940
6972
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -7057,7 +7089,7 @@
7057
7089
  };
7058
7090
  }
7059
7091
 
7060
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/pl.js
7092
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/pl.js
7061
7093
  var error29 = () => {
7062
7094
  const Sizable = {
7063
7095
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -7175,7 +7207,7 @@
7175
7207
  };
7176
7208
  }
7177
7209
 
7178
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/pt.js
7210
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/pt.js
7179
7211
  var error30 = () => {
7180
7212
  const Sizable = {
7181
7213
  string: { unit: "caracteres", verb: "ter" },
@@ -7292,7 +7324,7 @@
7292
7324
  };
7293
7325
  }
7294
7326
 
7295
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ru.js
7327
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ru.js
7296
7328
  function getRussianPlural(count, one, few, many) {
7297
7329
  const absCount = Math.abs(count);
7298
7330
  const lastDigit = absCount % 10;
@@ -7457,7 +7489,7 @@
7457
7489
  };
7458
7490
  }
7459
7491
 
7460
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/sl.js
7492
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/sl.js
7461
7493
  var error32 = () => {
7462
7494
  const Sizable = {
7463
7495
  string: { unit: "znakov", verb: "imeti" },
@@ -7575,7 +7607,7 @@
7575
7607
  };
7576
7608
  }
7577
7609
 
7578
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/sv.js
7610
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/sv.js
7579
7611
  var error33 = () => {
7580
7612
  const Sizable = {
7581
7613
  string: { unit: "tecken", verb: "att ha" },
@@ -7694,7 +7726,7 @@
7694
7726
  };
7695
7727
  }
7696
7728
 
7697
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ta.js
7729
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ta.js
7698
7730
  var error34 = () => {
7699
7731
  const Sizable = {
7700
7732
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -7812,7 +7844,7 @@
7812
7844
  };
7813
7845
  }
7814
7846
 
7815
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/th.js
7847
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/th.js
7816
7848
  var error35 = () => {
7817
7849
  const Sizable = {
7818
7850
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -7930,7 +7962,7 @@
7930
7962
  };
7931
7963
  }
7932
7964
 
7933
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/tr.js
7965
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/tr.js
7934
7966
  var parsedType4 = (data) => {
7935
7967
  const t = typeof data;
7936
7968
  switch (t) {
@@ -8046,7 +8078,7 @@
8046
8078
  };
8047
8079
  }
8048
8080
 
8049
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ua.js
8081
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ua.js
8050
8082
  var error37 = () => {
8051
8083
  const Sizable = {
8052
8084
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -8164,7 +8196,7 @@
8164
8196
  };
8165
8197
  }
8166
8198
 
8167
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/ur.js
8199
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/ur.js
8168
8200
  var error38 = () => {
8169
8201
  const Sizable = {
8170
8202
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -8282,7 +8314,7 @@
8282
8314
  };
8283
8315
  }
8284
8316
 
8285
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/vi.js
8317
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/vi.js
8286
8318
  var error39 = () => {
8287
8319
  const Sizable = {
8288
8320
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -8399,7 +8431,7 @@
8399
8431
  };
8400
8432
  }
8401
8433
 
8402
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/zh-CN.js
8434
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/zh-CN.js
8403
8435
  var error40 = () => {
8404
8436
  const Sizable = {
8405
8437
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -8516,7 +8548,7 @@
8516
8548
  };
8517
8549
  }
8518
8550
 
8519
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/locales/zh-TW.js
8551
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/zh-TW.js
8520
8552
  var error41 = () => {
8521
8553
  const Sizable = {
8522
8554
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -8634,7 +8666,123 @@
8634
8666
  };
8635
8667
  }
8636
8668
 
8637
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/registries.js
8669
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/locales/yo.js
8670
+ var error42 = () => {
8671
+ const Sizable = {
8672
+ string: { unit: "\xE0mi", verb: "n\xED" },
8673
+ file: { unit: "bytes", verb: "n\xED" },
8674
+ array: { unit: "nkan", verb: "n\xED" },
8675
+ set: { unit: "nkan", verb: "n\xED" }
8676
+ };
8677
+ function getSizing(origin) {
8678
+ return Sizable[origin] ?? null;
8679
+ }
8680
+ const parsedType5 = (data) => {
8681
+ const t = typeof data;
8682
+ switch (t) {
8683
+ case "number": {
8684
+ return Number.isNaN(data) ? "NaN" : "n\u1ECD\u0301mb\xE0";
8685
+ }
8686
+ case "object": {
8687
+ if (Array.isArray(data)) {
8688
+ return "akop\u1ECD";
8689
+ }
8690
+ if (data === null) {
8691
+ return "null";
8692
+ }
8693
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
8694
+ return data.constructor.name;
8695
+ }
8696
+ }
8697
+ }
8698
+ return t;
8699
+ };
8700
+ const Nouns = {
8701
+ regex: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",
8702
+ email: "\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",
8703
+ url: "URL",
8704
+ emoji: "emoji",
8705
+ uuid: "UUID",
8706
+ uuidv4: "UUIDv4",
8707
+ uuidv6: "UUIDv6",
8708
+ nanoid: "nanoid",
8709
+ guid: "GUID",
8710
+ cuid: "cuid",
8711
+ cuid2: "cuid2",
8712
+ ulid: "ULID",
8713
+ xid: "XID",
8714
+ ksuid: "KSUID",
8715
+ datetime: "\xE0k\xF3k\xF2 ISO",
8716
+ date: "\u1ECDj\u1ECD\u0301 ISO",
8717
+ time: "\xE0k\xF3k\xF2 ISO",
8718
+ duration: "\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",
8719
+ ipv4: "\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",
8720
+ ipv6: "\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",
8721
+ cidrv4: "\xE0gb\xE8gb\xE8 IPv4",
8722
+ cidrv6: "\xE0gb\xE8gb\xE8 IPv6",
8723
+ base64: "\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",
8724
+ base64url: "\u1ECD\u0300r\u1ECD\u0300 base64url",
8725
+ json_string: "\u1ECD\u0300r\u1ECD\u0300 JSON",
8726
+ e164: "n\u1ECD\u0301mb\xE0 E.164",
8727
+ jwt: "JWT",
8728
+ template_literal: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"
8729
+ };
8730
+ return (issue2) => {
8731
+ switch (issue2.code) {
8732
+ case "invalid_type":
8733
+ return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${parsedType5(issue2.input)}`;
8734
+ case "invalid_value":
8735
+ if (issue2.values.length === 1)
8736
+ return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${stringifyPrimitive(issue2.values[0])}`;
8737
+ return `\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${joinValues(issue2.values, "|")}`;
8738
+ case "too_big": {
8739
+ const adj = issue2.inclusive ? "<=" : "<";
8740
+ const sizing = getSizing(issue2.origin);
8741
+ if (sizing)
8742
+ return `T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${issue2.origin ?? "iye"} ${sizing.verb} ${adj}${issue2.maximum} ${sizing.unit}`;
8743
+ return `T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${adj}${issue2.maximum}`;
8744
+ }
8745
+ case "too_small": {
8746
+ const adj = issue2.inclusive ? ">=" : ">";
8747
+ const sizing = getSizing(issue2.origin);
8748
+ if (sizing)
8749
+ return `K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum} ${sizing.unit}`;
8750
+ return `K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${adj}${issue2.minimum}`;
8751
+ }
8752
+ case "invalid_format": {
8753
+ const _issue = issue2;
8754
+ if (_issue.format === "starts_with")
8755
+ return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${_issue.prefix}"`;
8756
+ if (_issue.format === "ends_with")
8757
+ return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${_issue.suffix}"`;
8758
+ if (_issue.format === "includes")
8759
+ return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${_issue.includes}"`;
8760
+ if (_issue.format === "regex")
8761
+ return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${_issue.pattern}`;
8762
+ return `A\u1E63\xEC\u1E63e: ${Nouns[_issue.format] ?? issue2.format}`;
8763
+ }
8764
+ case "not_multiple_of":
8765
+ return `N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${issue2.divisor}`;
8766
+ case "unrecognized_keys":
8767
+ return `B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${joinValues(issue2.keys, ", ")}`;
8768
+ case "invalid_key":
8769
+ return `B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${issue2.origin}`;
8770
+ case "invalid_union":
8771
+ return "\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";
8772
+ case "invalid_element":
8773
+ return `Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${issue2.origin}`;
8774
+ default:
8775
+ return "\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";
8776
+ }
8777
+ };
8778
+ };
8779
+ function yo_default() {
8780
+ return {
8781
+ localeError: error42()
8782
+ };
8783
+ }
8784
+
8785
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/registries.js
8638
8786
  var $output = Symbol("ZodOutput");
8639
8787
  var $input = Symbol("ZodInput");
8640
8788
  var $ZodRegistry = class {
@@ -8685,7 +8833,7 @@
8685
8833
  }
8686
8834
  var globalRegistry = /* @__PURE__ */ registry();
8687
8835
 
8688
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/api.js
8836
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/api.js
8689
8837
  function _string(Class2, params) {
8690
8838
  return new Class2({
8691
8839
  type: "string",
@@ -9472,6 +9620,34 @@
9472
9620
  });
9473
9621
  return schema;
9474
9622
  }
9623
+ function _superRefine(fn) {
9624
+ const ch = _check((payload) => {
9625
+ payload.addIssue = (issue2) => {
9626
+ if (typeof issue2 === "string") {
9627
+ payload.issues.push(issue(issue2, payload.value, ch._zod.def));
9628
+ } else {
9629
+ const _issue = issue2;
9630
+ if (_issue.fatal)
9631
+ _issue.continue = false;
9632
+ _issue.code ?? (_issue.code = "custom");
9633
+ _issue.input ?? (_issue.input = payload.value);
9634
+ _issue.inst ?? (_issue.inst = ch);
9635
+ _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
9636
+ payload.issues.push(issue(_issue));
9637
+ }
9638
+ };
9639
+ return fn(payload.value, payload);
9640
+ });
9641
+ return ch;
9642
+ }
9643
+ function _check(fn, params) {
9644
+ const ch = new $ZodCheck({
9645
+ check: "custom",
9646
+ ...normalizeParams(params)
9647
+ });
9648
+ ch._zod.check = fn;
9649
+ return ch;
9650
+ }
9475
9651
  function _stringbool(Classes, _params) {
9476
9652
  const params = normalizeParams(_params);
9477
9653
  let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
@@ -9502,7 +9678,8 @@
9502
9678
  expected: "stringbool",
9503
9679
  values: [...truthySet, ...falsySet],
9504
9680
  input: payload.value,
9505
- inst: tx
9681
+ inst: tx,
9682
+ continue: false
9506
9683
  });
9507
9684
  return {};
9508
9685
  }
@@ -9543,7 +9720,7 @@
9543
9720
  return inst;
9544
9721
  }
9545
9722
 
9546
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/function.js
9723
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/function.js
9547
9724
  var $ZodFunction = class {
9548
9725
  constructor(def) {
9549
9726
  this._def = def;
@@ -9613,7 +9790,7 @@
9613
9790
  });
9614
9791
  }
9615
9792
 
9616
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/to-json-schema.js
9793
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/to-json-schema.js
9617
9794
  var JSONSchemaGenerator = class {
9618
9795
  constructor(params) {
9619
9796
  this.counter = 0;
@@ -9686,7 +9863,7 @@
9686
9863
  else if (regexes.length > 1) {
9687
9864
  result.schema.allOf = [
9688
9865
  ...regexes.map((regex) => ({
9689
- ...this.target === "draft-7" ? { type: "string" } : {},
9866
+ ...this.target === "draft-7" || this.target === "draft-4" ? { type: "string" } : {},
9690
9867
  pattern: regex.source
9691
9868
  }))
9692
9869
  ];
@@ -9701,22 +9878,34 @@
9701
9878
  json2.type = "integer";
9702
9879
  else
9703
9880
  json2.type = "number";
9704
- if (typeof exclusiveMinimum === "number")
9705
- json2.exclusiveMinimum = exclusiveMinimum;
9881
+ if (typeof exclusiveMinimum === "number") {
9882
+ if (this.target === "draft-4") {
9883
+ json2.minimum = exclusiveMinimum;
9884
+ json2.exclusiveMinimum = true;
9885
+ } else {
9886
+ json2.exclusiveMinimum = exclusiveMinimum;
9887
+ }
9888
+ }
9706
9889
  if (typeof minimum === "number") {
9707
9890
  json2.minimum = minimum;
9708
- if (typeof exclusiveMinimum === "number") {
9891
+ if (typeof exclusiveMinimum === "number" && this.target !== "draft-4") {
9709
9892
  if (exclusiveMinimum >= minimum)
9710
9893
  delete json2.minimum;
9711
9894
  else
9712
9895
  delete json2.exclusiveMinimum;
9713
9896
  }
9714
9897
  }
9715
- if (typeof exclusiveMaximum === "number")
9716
- json2.exclusiveMaximum = exclusiveMaximum;
9898
+ if (typeof exclusiveMaximum === "number") {
9899
+ if (this.target === "draft-4") {
9900
+ json2.maximum = exclusiveMaximum;
9901
+ json2.exclusiveMaximum = true;
9902
+ } else {
9903
+ json2.exclusiveMaximum = exclusiveMaximum;
9904
+ }
9905
+ }
9717
9906
  if (typeof maximum === "number") {
9718
9907
  json2.maximum = maximum;
9719
- if (typeof exclusiveMaximum === "number") {
9908
+ if (typeof exclusiveMaximum === "number" && this.target !== "draft-4") {
9720
9909
  if (exclusiveMaximum <= maximum)
9721
9910
  delete json2.maximum;
9722
9911
  else
@@ -9885,7 +10074,12 @@
9885
10074
  case "record": {
9886
10075
  const json2 = _json;
9887
10076
  json2.type = "object";
9888
- json2.propertyNames = this.process(def.keyType, { ...params, path: [...params.path, "propertyNames"] });
10077
+ if (this.target !== "draft-4") {
10078
+ json2.propertyNames = this.process(def.keyType, {
10079
+ ...params,
10080
+ path: [...params.path, "propertyNames"]
10081
+ });
10082
+ }
9889
10083
  json2.additionalProperties = this.process(def.valueType, {
9890
10084
  ...params,
9891
10085
  path: [...params.path, "additionalProperties"]
@@ -9937,7 +10131,11 @@
9937
10131
  } else if (vals.length === 1) {
9938
10132
  const val = vals[0];
9939
10133
  json2.type = val === null ? "null" : typeof val;
9940
- json2.const = val;
10134
+ if (this.target === "draft-4") {
10135
+ json2.enum = [val];
10136
+ } else {
10137
+ json2.const = val;
10138
+ }
9941
10139
  } else {
9942
10140
  if (vals.every((v) => typeof v === "number"))
9943
10141
  json2.type = "number";
@@ -10190,7 +10388,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10190
10388
  if (ref) {
10191
10389
  flattenRef(ref, params2);
10192
10390
  const refSchema = this.seen.get(ref).schema;
10193
- if (refSchema.$ref && params2.target === "draft-7") {
10391
+ if (refSchema.$ref && (params2.target === "draft-7" || params2.target === "draft-4")) {
10194
10392
  schema2.allOf = schema2.allOf ?? [];
10195
10393
  schema2.allOf.push(refSchema);
10196
10394
  } else {
@@ -10213,6 +10411,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10213
10411
  result.$schema = "https://json-schema.org/draft/2020-12/schema";
10214
10412
  } else if (this.target === "draft-7") {
10215
10413
  result.$schema = "http://json-schema.org/draft-07/schema#";
10414
+ } else if (this.target === "draft-4") {
10415
+ result.$schema = "http://json-schema.org/draft-04/schema#";
10216
10416
  } else {
10217
10417
  console.warn(`Invalid target: ${this.target}`);
10218
10418
  }
@@ -10380,10 +10580,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10380
10580
  throw new Error(`Unknown schema type: ${def.type}`);
10381
10581
  }
10382
10582
 
10383
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/core/json-schema.js
10583
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/core/json-schema.js
10384
10584
  var json_schema_exports = {};
10385
10585
 
10386
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/iso.js
10586
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/iso.js
10387
10587
  var iso_exports = {};
10388
10588
  __export(iso_exports, {
10389
10589
  ZodISODate: () => ZodISODate,
@@ -10424,7 +10624,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10424
10624
  return _isoDuration(ZodISODuration, params);
10425
10625
  }
10426
10626
 
10427
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/errors.js
10627
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/errors.js
10428
10628
  var initializer2 = (inst, issues) => {
10429
10629
  $ZodError.init(inst, issues);
10430
10630
  inst.name = "ZodError";
@@ -10464,13 +10664,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10464
10664
  Parent: Error
10465
10665
  });
10466
10666
 
10467
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/parse.js
10667
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/parse.js
10468
10668
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
10469
10669
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
10470
10670
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
10471
10671
  var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
10472
10672
 
10473
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/schemas.js
10673
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/schemas.js
10474
10674
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
10475
10675
  $ZodType.init(inst, def);
10476
10676
  inst.def = def;
@@ -10746,6 +10946,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10746
10946
  function stringFormat(format, fnOrRegex, _params = {}) {
10747
10947
  return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
10748
10948
  }
10949
+ function hostname2(_params) {
10950
+ return _stringFormat(ZodCustomStringFormat, "hostname", regexes_exports.hostname, _params);
10951
+ }
10749
10952
  var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
10750
10953
  $ZodNumber.init(inst, def);
10751
10954
  ZodType.init(inst, def);
@@ -11361,24 +11564,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11361
11564
  return _refine(ZodCustom, fn, _params);
11362
11565
  }
11363
11566
  function superRefine(fn) {
11364
- const ch = check((payload) => {
11365
- payload.addIssue = (issue2) => {
11366
- if (typeof issue2 === "string") {
11367
- payload.issues.push(util_exports.issue(issue2, payload.value, ch._zod.def));
11368
- } else {
11369
- const _issue = issue2;
11370
- if (_issue.fatal)
11371
- _issue.continue = false;
11372
- _issue.code ?? (_issue.code = "custom");
11373
- _issue.input ?? (_issue.input = payload.value);
11374
- _issue.inst ?? (_issue.inst = ch);
11375
- _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
11376
- payload.issues.push(util_exports.issue(_issue));
11377
- }
11378
- };
11379
- return fn(payload.value, payload);
11380
- });
11381
- return ch;
11567
+ return _superRefine(fn);
11382
11568
  }
11383
11569
  function _instanceof(cls, params = {
11384
11570
  error: `Input not instance of ${cls.name}`
@@ -11409,7 +11595,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11409
11595
  return pipe(transform(fn), schema);
11410
11596
  }
11411
11597
 
11412
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/compat.js
11598
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/compat.js
11413
11599
  var ZodIssueCode = {
11414
11600
  invalid_type: "invalid_type",
11415
11601
  too_big: "too_big",
@@ -11435,7 +11621,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11435
11621
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
11436
11622
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
11437
11623
 
11438
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/coerce.js
11624
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/coerce.js
11439
11625
  var coerce_exports = {};
11440
11626
  __export(coerce_exports, {
11441
11627
  bigint: () => bigint3,
@@ -11460,13 +11646,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11460
11646
  return _coercedDate(ZodDate, params);
11461
11647
  }
11462
11648
 
11463
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/v4/classic/external.js
11649
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/v4/classic/external.js
11464
11650
  config(en_default());
11465
11651
 
11466
- // ../../../../../../node_modules/.store/zod-npm-4.0.10-cd090a6999/package/index.js
11652
+ // ../../../../../../node_modules/.store/zod-npm-4.0.14-954af12f83/package/index.js
11467
11653
  var package_default = external_exports;
11468
11654
 
11469
- // ../../../../../../node_modules/.store/@xylabs-hex-npm-4.14.1-714e2ad383/package/dist/neutral/index.mjs
11655
+ // ../../../../../../node_modules/.store/@xylabs-hex-npm-5.0.0-93cb11d8fe/package/dist/neutral/index.mjs
11470
11656
  var assertError = (value, assert2, defaultMessage) => {
11471
11657
  if (!isUndefined(assert2)) {
11472
11658
  const assertString = typeof assert2 === "string" ? assert2 : typeof assert2 === "boolean" ? defaultMessage : assert2(value, defaultMessage);
@@ -11476,18 +11662,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11476
11662
  }
11477
11663
  return void 0;
11478
11664
  };
11665
+ var HexRegExMinMax = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
11666
+ return new RegExp(`^[a-f0-9]{${minBytes * 2},${maxBytes * 2}}$`);
11667
+ };
11668
+ var HexRegExMinMaxMixedCaseWithPrefix = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
11669
+ return new RegExp(`^0x[a-fA-F0-9]{${minBytes * 2},${maxBytes * 2}}$`);
11670
+ };
11671
+ var HexRegEx = /^[0-9a-f]+$/;
11672
+ var HexRegExWithPrefix = /^0x[0-9a-f]+$/;
11479
11673
  var bitsToNibbles = (value) => {
11480
11674
  const nibbles = value >> 2;
11481
11675
  if (value !== nibbles << 2) throw new Error("Bits for nibbles must multiple of 4");
11482
11676
  return nibbles;
11483
11677
  };
11484
- var hexRegex = /^[\da-f]+$/i;
11485
- var hexRegexWithPrefix = /0x[\da-f]+$/i;
11486
11678
  var isHex = (value, config2) => {
11487
11679
  if (typeof value !== "string") return false;
11488
11680
  const valueCharLength = config2?.prefix ? value.length - 2 : value.length;
11489
11681
  if (config2?.bitLength !== void 0 && valueCharLength !== bitsToNibbles(config2?.bitLength)) return false;
11490
- return config2?.prefix ? hexRegexWithPrefix.test(value) : hexRegex.test(value);
11682
+ return config2?.prefix ? HexRegExWithPrefix.test(value) : HexRegEx.test(value);
11491
11683
  };
11492
11684
  var hexFromHexString = (value, config2 = {}) => {
11493
11685
  const {
@@ -11535,16 +11727,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11535
11727
  }
11536
11728
  }
11537
11729
  };
11538
- var HexRegExMinMax = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
11539
- return new RegExp(`^[a-f0-9]{${minBytes * 2},${maxBytes * 2}}$`);
11540
- };
11541
- var HexRegEx = HexRegExMinMax(1, Number.MAX_SAFE_INTEGER);
11542
- var HexZod = package_default.string().toLowerCase().regex(HexRegEx, { message: "Invalid hex format" }).refine(
11543
- isHex
11544
- );
11730
+ var HexZod = package_default.string().regex(HexRegEx, { message: "Invalid hex format" }).transform((x) => x);
11545
11731
  var AddressRegEx = HexRegExMinMax(20, 20);
11546
- var AddressToStringSchema = package_default.string().toLowerCase().regex(AddressRegEx);
11547
- var AddressFromStringSchema = package_default.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
11732
+ var AddressToStringZod = package_default.string().regex(AddressRegEx);
11733
+ var AddressFromStringZod = package_default.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
11734
+ var ADDRESS_LENGTH = 40;
11548
11735
  var toAddress = (value, config2 = {}) => {
11549
11736
  const { bitLength = 160, prefix = false } = config2;
11550
11737
  return hexFrom(value, {
@@ -11553,12 +11740,40 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11553
11740
  ...config2
11554
11741
  });
11555
11742
  };
11556
- var isAddress = (value, config2 = {}) => {
11743
+ var AddressZodValidation = package_default.string().refine((x) => HexZod.safeParse(x)).refine((x) => x.length === ADDRESS_LENGTH, { error: (e) => new Error(`Address must have 40 characters [${e.input}]`) }).transform((v) => v);
11744
+ var AddressZodTransform = package_default.union([package_default.string(), package_default.bigint()]).transform((value) => {
11745
+ if (typeof value === "bigint") {
11746
+ return value.toString(16).padStart(40, "0");
11747
+ }
11748
+ if (value.startsWith("0x")) {
11749
+ return value.slice(2);
11750
+ }
11751
+ return value;
11752
+ }).refine((x) => AddressZodValidation.safeParse(x).data).transform((x) => x);
11753
+ var Address;
11754
+ ((Address2) => {
11755
+ Address2.identify = (value) => AddressZodValidation.safeParse(value).success;
11756
+ Address2.cast = (value, assert2 = false) => assert2 ? AddressZodValidation.parse(value) : AddressZodValidation.safeParse(value).data;
11757
+ Address2.from = (value, assert2 = false) => assert2 ? AddressZodTransform.parse(value) : AddressZodTransform.safeParse(value).data;
11758
+ Address2.toString = (value) => value;
11759
+ })(Address || (Address = {}));
11760
+ var EthAddressRegEx = HexRegExMinMaxMixedCaseWithPrefix(20, 20);
11761
+ var EthAddressToStringSchema = package_default.string().regex(EthAddressRegEx);
11762
+ var EthAddressFromStringSchema = package_default.string().regex(EthAddressRegEx).transform((v) => toEthAddress(v));
11763
+ var toEthAddress = (value, config2 = {}) => {
11557
11764
  const { bitLength = 160, prefix = false } = config2;
11765
+ return `0x${hexFrom(value, {
11766
+ bitLength,
11767
+ prefix,
11768
+ ...config2
11769
+ })}`;
11770
+ };
11771
+ var isEthAddress = (value, config2 = {}) => {
11772
+ const { bitLength = 160, prefix = true } = config2;
11558
11773
  return isHex(value, { bitLength, prefix });
11559
11774
  };
11560
- var AddressZod = package_default.string().toLowerCase().regex(AddressRegEx, { message: "Invalid address format" }).refine(
11561
- isAddress
11775
+ var EthAddressZod = package_default.string().regex(EthAddressRegEx, { message: "Invalid address format" }).refine(
11776
+ isEthAddress
11562
11777
  );
11563
11778
  var HashRegEx = HexRegExMinMax(32, 32);
11564
11779
  var isHash = (value, bitLength = 256) => {
@@ -11581,7 +11796,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11581
11796
  return isHash(stringValue) ? stringValue : assertError(value, assert2, `Value is not a Hash [${value}]`);
11582
11797
  }
11583
11798
 
11584
- // ../../../../../../node_modules/.store/@xylabs-threads-npm-4.14.1-4f0b45823d/package/dist/browser/worker/worker.browser.mjs
11799
+ // ../../../../../../node_modules/.store/@xylabs-threads-npm-5.0.0-e63d9be34a/package/dist/browser/worker/worker.browser.mjs
11585
11800
  var import_is_observable_2_1_0 = __toESM(require_package(), 1);
11586
11801
  var __defProp2 = Object.defineProperty;
11587
11802
  var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
@@ -11605,12 +11820,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11605
11820
  stack: message.stack
11606
11821
  });
11607
11822
  },
11608
- serialize(error42) {
11823
+ serialize(error43) {
11609
11824
  return {
11610
11825
  __error_marker: "$$error",
11611
- message: error42.message,
11612
- name: error42.name,
11613
- stack: error42.stack
11826
+ message: error43.message,
11827
+ name: error43.name,
11828
+ stack: error43.stack
11614
11829
  };
11615
11830
  }
11616
11831
  };
@@ -11721,9 +11936,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11721
11936
  }
11722
11937
  __name(postModuleInitMessage, "postModuleInitMessage");
11723
11938
  function postJobErrorMessage(uid, rawError) {
11724
- const { payload: error42, transferables } = deconstructTransfer(rawError);
11939
+ const { payload: error43, transferables } = deconstructTransfer(rawError);
11725
11940
  const errorMessage = {
11726
- error: serialize(error42),
11941
+ error: serialize(error43),
11727
11942
  type: WorkerMessageType.error,
11728
11943
  uid
11729
11944
  };
@@ -11750,15 +11965,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11750
11965
  implementation.postMessageToMaster(startMessage);
11751
11966
  }
11752
11967
  __name(postJobStartMessage, "postJobStartMessage");
11753
- function postUncaughtErrorMessage(error42) {
11968
+ function postUncaughtErrorMessage(error43) {
11754
11969
  try {
11755
11970
  const errorMessage = {
11756
- error: serialize(error42),
11971
+ error: serialize(error43),
11757
11972
  type: WorkerMessageType.uncaughtError
11758
11973
  };
11759
11974
  implementation.postMessageToMaster(errorMessage);
11760
11975
  } catch (subError) {
11761
- console.error("Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.\nLatest error:", subError, "\nOriginal error:", error42);
11976
+ console.error("Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.\nLatest error:", subError, "\nOriginal error:", error43);
11762
11977
  }
11763
11978
  }
11764
11979
  __name(postUncaughtErrorMessage, "postUncaughtErrorMessage");
@@ -11767,14 +11982,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11767
11982
  try {
11768
11983
  syncResult = fn(...args);
11769
11984
  } catch (ex) {
11770
- const error42 = ex;
11771
- return postJobErrorMessage(jobUID, error42);
11985
+ const error43 = ex;
11986
+ return postJobErrorMessage(jobUID, error43);
11772
11987
  }
11773
11988
  const resultType = isObservable(syncResult) ? "observable" : "promise";
11774
11989
  postJobStartMessage(jobUID, resultType);
11775
11990
  if (isObservable(syncResult)) {
11776
- const subscription = syncResult.subscribe((value) => postJobResultMessage(jobUID, false, serialize(value)), (error42) => {
11777
- postJobErrorMessage(jobUID, serialize(error42));
11991
+ const subscription = syncResult.subscribe((value) => postJobResultMessage(jobUID, false, serialize(value)), (error43) => {
11992
+ postJobErrorMessage(jobUID, serialize(error43));
11778
11993
  activeSubscriptions.delete(jobUID);
11779
11994
  }, () => {
11780
11995
  postJobResultMessage(jobUID, true);
@@ -11785,8 +12000,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11785
12000
  try {
11786
12001
  const result = await syncResult;
11787
12002
  postJobResultMessage(jobUID, true, serialize(result));
11788
- } catch (error42) {
11789
- postJobErrorMessage(jobUID, serialize(error42));
12003
+ } catch (error43) {
12004
+ postJobErrorMessage(jobUID, serialize(error43));
11790
12005
  }
11791
12006
  }
11792
12007
  }
@@ -11833,19 +12048,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11833
12048
  setTimeout(() => postUncaughtErrorMessage(isErrorEvent(event) ? event.error : event), 250);
11834
12049
  });
11835
12050
  self2.addEventListener("unhandledrejection", (event) => {
11836
- const error42 = event.reason;
11837
- if (error42 && typeof error42.message === "string") {
11838
- setTimeout(() => postUncaughtErrorMessage(error42), 250);
12051
+ const error43 = event.reason;
12052
+ if (error43 && typeof error43.message === "string") {
12053
+ setTimeout(() => postUncaughtErrorMessage(error43), 250);
11839
12054
  }
11840
12055
  });
11841
12056
  }
11842
12057
  if (typeof process !== "undefined" && typeof process.on === "function" && implementation.isWorkerRuntime()) {
11843
- process.on("uncaughtException", (error42) => {
11844
- setTimeout(() => postUncaughtErrorMessage(error42), 250);
12058
+ process.on("uncaughtException", (error43) => {
12059
+ setTimeout(() => postUncaughtErrorMessage(error43), 250);
11845
12060
  });
11846
- process.on("unhandledRejection", (error42) => {
11847
- if (error42 && typeof error42.message === "string") {
11848
- setTimeout(() => postUncaughtErrorMessage(error42), 250);
12061
+ process.on("unhandledRejection", (error43) => {
12062
+ if (error43 && typeof error43.message === "string") {
12063
+ setTimeout(() => postUncaughtErrorMessage(error43), 250);
11849
12064
  }
11850
12065
  });
11851
12066
  }