@xyo-network/hash 5.2.24 → 5.2.25

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.
@@ -182,6 +182,7 @@
182
182
  objectClone: () => objectClone,
183
183
  omit: () => omit,
184
184
  optionalKeys: () => optionalKeys,
185
+ parsedType: () => parsedType,
185
186
  partial: () => partial,
186
187
  pick: () => pick,
187
188
  prefixIssues: () => prefixIssues,
@@ -514,6 +515,11 @@
514
515
  };
515
516
  function pick(schema, mask) {
516
517
  const currDef = schema._zod.def;
518
+ const checks = currDef.checks;
519
+ const hasChecks = checks && checks.length > 0;
520
+ if (hasChecks) {
521
+ throw new Error(".pick() cannot be used on object schemas containing refinements");
522
+ }
517
523
  const def = mergeDefs(schema._zod.def, {
518
524
  get shape() {
519
525
  const newShape = {};
@@ -534,6 +540,11 @@
534
540
  }
535
541
  function omit(schema, mask) {
536
542
  const currDef = schema._zod.def;
543
+ const checks = currDef.checks;
544
+ const hasChecks = checks && checks.length > 0;
545
+ if (hasChecks) {
546
+ throw new Error(".omit() cannot be used on object schemas containing refinements");
547
+ }
537
548
  const def = mergeDefs(schema._zod.def, {
538
549
  get shape() {
539
550
  const newShape = { ...schema._zod.def.shape };
@@ -559,15 +570,19 @@
559
570
  const checks = schema._zod.def.checks;
560
571
  const hasChecks = checks && checks.length > 0;
561
572
  if (hasChecks) {
562
- throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
573
+ const existingShape = schema._zod.def.shape;
574
+ for (const key in shape) {
575
+ if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) {
576
+ throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
577
+ }
578
+ }
563
579
  }
564
580
  const def = mergeDefs(schema._zod.def, {
565
581
  get shape() {
566
582
  const _shape = { ...schema._zod.def.shape, ...shape };
567
583
  assignProp(this, "shape", _shape);
568
584
  return _shape;
569
- },
570
- checks: []
585
+ }
571
586
  });
572
587
  return clone(schema, def);
573
588
  }
@@ -575,15 +590,13 @@
575
590
  if (!isPlainObject(shape)) {
576
591
  throw new Error("Invalid input to safeExtend: expected a plain object");
577
592
  }
578
- const def = {
579
- ...schema._zod.def,
593
+ const def = mergeDefs(schema._zod.def, {
580
594
  get shape() {
581
595
  const _shape = { ...schema._zod.def.shape, ...shape };
582
596
  assignProp(this, "shape", _shape);
583
597
  return _shape;
584
- },
585
- checks: schema._zod.def.checks
586
- };
598
+ }
599
+ });
587
600
  return clone(schema, def);
588
601
  }
589
602
  function merge(a, b) {
@@ -602,6 +615,12 @@
602
615
  return clone(a, def);
603
616
  }
604
617
  function partial(Class2, schema, mask) {
618
+ const currDef = schema._zod.def;
619
+ const checks = currDef.checks;
620
+ const hasChecks = checks && checks.length > 0;
621
+ if (hasChecks) {
622
+ throw new Error(".partial() cannot be used on object schemas containing refinements");
623
+ }
605
624
  const def = mergeDefs(schema._zod.def, {
606
625
  get shape() {
607
626
  const oldShape = schema._zod.def.shape;
@@ -660,8 +679,7 @@
660
679
  }
661
680
  assignProp(this, "shape", shape);
662
681
  return shape;
663
- },
664
- checks: []
682
+ }
665
683
  });
666
684
  return clone(schema, def);
667
685
  }
@@ -715,6 +733,27 @@
715
733
  return "string";
716
734
  return "unknown";
717
735
  }
736
+ function parsedType(data) {
737
+ const t = typeof data;
738
+ switch (t) {
739
+ case "number": {
740
+ return Number.isNaN(data) ? "nan" : "number";
741
+ }
742
+ case "object": {
743
+ if (data === null) {
744
+ return "null";
745
+ }
746
+ if (Array.isArray(data)) {
747
+ return "array";
748
+ }
749
+ const obj = data;
750
+ if (obj && Object.getPrototypeOf(obj) !== Object.prototype && "constructor" in obj && obj.constructor) {
751
+ return obj.constructor.name;
752
+ }
753
+ }
754
+ }
755
+ return t;
756
+ }
718
757
  function issue(...args) {
719
758
  const [iss, input, inst] = args;
720
759
  if (typeof iss === "string") {
@@ -793,10 +832,10 @@
793
832
  };
794
833
  var $ZodError = $constructor("$ZodError", initializer);
795
834
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
796
- function flattenError(error46, mapper = (issue2) => issue2.message) {
835
+ function flattenError(error48, mapper = (issue2) => issue2.message) {
797
836
  const fieldErrors = {};
798
837
  const formErrors = [];
799
- for (const sub of error46.issues) {
838
+ for (const sub of error48.issues) {
800
839
  if (sub.path.length > 0) {
801
840
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
802
841
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -806,10 +845,10 @@
806
845
  }
807
846
  return { formErrors, fieldErrors };
808
847
  }
809
- function formatError(error46, mapper = (issue2) => issue2.message) {
848
+ function formatError(error48, mapper = (issue2) => issue2.message) {
810
849
  const fieldErrors = { _errors: [] };
811
- const processError = (error47) => {
812
- for (const issue2 of error47.issues) {
850
+ const processError = (error49) => {
851
+ for (const issue2 of error49.issues) {
813
852
  if (issue2.code === "invalid_union" && issue2.errors.length) {
814
853
  issue2.errors.map((issues) => processError({ issues }));
815
854
  } else if (issue2.code === "invalid_key") {
@@ -836,7 +875,7 @@
836
875
  }
837
876
  }
838
877
  };
839
- processError(error46);
878
+ processError(error48);
840
879
  return fieldErrors;
841
880
  }
842
881
 
@@ -1019,7 +1058,7 @@
1019
1058
  var base64url = /^[A-Za-z0-9_-]*$/;
1020
1059
  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])?)*\.?$/;
1021
1060
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1022
- var e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
1061
+ var e164 = /^\+[1-9]\d{6,14}$/;
1023
1062
  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])))`;
1024
1063
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
1025
1064
  function timeSource(args) {
@@ -1046,7 +1085,7 @@
1046
1085
  };
1047
1086
  var bigint = /^-?\d+n?$/;
1048
1087
  var integer = /^-?\d+$/;
1049
- var number = /^-?\d+(?:\.\d+)?/;
1088
+ var number = /^-?\d+(?:\.\d+)?$/;
1050
1089
  var boolean = /^(?:true|false)$/i;
1051
1090
  var _null = /^null$/i;
1052
1091
  var _undefined = /^undefined$/i;
@@ -1107,7 +1146,7 @@
1107
1146
  payload.issues.push({
1108
1147
  origin,
1109
1148
  code: "too_big",
1110
- maximum: def.value,
1149
+ maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
1111
1150
  input: payload.value,
1112
1151
  inclusive: def.inclusive,
1113
1152
  inst,
@@ -1135,7 +1174,7 @@
1135
1174
  payload.issues.push({
1136
1175
  origin,
1137
1176
  code: "too_small",
1138
- minimum: def.value,
1177
+ minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
1139
1178
  input: payload.value,
1140
1179
  inclusive: def.inclusive,
1141
1180
  inst,
@@ -1202,6 +1241,7 @@
1202
1241
  note: "Integers must be within the safe integer range.",
1203
1242
  inst,
1204
1243
  origin,
1244
+ inclusive: true,
1205
1245
  continue: !def.abort
1206
1246
  });
1207
1247
  } else {
@@ -1212,6 +1252,7 @@
1212
1252
  note: "Integers must be within the safe integer range.",
1213
1253
  inst,
1214
1254
  origin,
1255
+ inclusive: true,
1215
1256
  continue: !def.abort
1216
1257
  });
1217
1258
  }
@@ -1235,7 +1276,9 @@
1235
1276
  input,
1236
1277
  code: "too_big",
1237
1278
  maximum,
1238
- inst
1279
+ inclusive: true,
1280
+ inst,
1281
+ continue: !def.abort
1239
1282
  });
1240
1283
  }
1241
1284
  };
@@ -1464,8 +1507,8 @@
1464
1507
  // ../../../../../../node_modules/zod/v4/core/versions.js
1465
1508
  var version = {
1466
1509
  major: 4,
1467
- minor: 2,
1468
- patch: 1
1510
+ minor: 3,
1511
+ patch: 5
1469
1512
  };
1470
1513
 
1471
1514
  // ../../../../../../node_modules/zod/v4/core/schemas.js
@@ -1565,7 +1608,7 @@
1565
1608
  return runChecks(result, checks, ctx);
1566
1609
  };
1567
1610
  }
1568
- inst["~standard"] = {
1611
+ defineLazy(inst, "~standard", () => ({
1569
1612
  validate: (value) => {
1570
1613
  try {
1571
1614
  const r = safeParse(inst, value);
@@ -1576,7 +1619,7 @@
1576
1619
  },
1577
1620
  vendor: "zod",
1578
1621
  version: 1
1579
- };
1622
+ }));
1580
1623
  });
1581
1624
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
1582
1625
  $ZodType.init(inst, def);
@@ -2082,11 +2125,34 @@
2082
2125
  return { valid: false, mergeErrorPath: [] };
2083
2126
  }
2084
2127
  function handleIntersectionResults(result, left, right) {
2085
- if (left.issues.length) {
2086
- result.issues.push(...left.issues);
2128
+ const unrecKeys = /* @__PURE__ */ new Map();
2129
+ let unrecIssue;
2130
+ for (const iss of left.issues) {
2131
+ if (iss.code === "unrecognized_keys") {
2132
+ unrecIssue ?? (unrecIssue = iss);
2133
+ for (const k of iss.keys) {
2134
+ if (!unrecKeys.has(k))
2135
+ unrecKeys.set(k, {});
2136
+ unrecKeys.get(k).l = true;
2137
+ }
2138
+ } else {
2139
+ result.issues.push(iss);
2140
+ }
2141
+ }
2142
+ for (const iss of right.issues) {
2143
+ if (iss.code === "unrecognized_keys") {
2144
+ for (const k of iss.keys) {
2145
+ if (!unrecKeys.has(k))
2146
+ unrecKeys.set(k, {});
2147
+ unrecKeys.get(k).r = true;
2148
+ }
2149
+ } else {
2150
+ result.issues.push(iss);
2151
+ }
2087
2152
  }
2088
- if (right.issues.length) {
2089
- result.issues.push(...right.issues);
2153
+ const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
2154
+ if (bothKeys.length && unrecIssue) {
2155
+ result.issues.push({ ...unrecIssue, keys: bothKeys });
2090
2156
  }
2091
2157
  if (aborted(result))
2092
2158
  return result;
@@ -2148,6 +2214,14 @@
2148
2214
  return def.innerType._zod.run(payload, ctx);
2149
2215
  };
2150
2216
  });
2217
+ var $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => {
2218
+ $ZodOptional.init(inst, def);
2219
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
2220
+ defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
2221
+ inst._zod.parse = (payload, ctx) => {
2222
+ return def.innerType._zod.run(payload, ctx);
2223
+ };
2224
+ });
2151
2225
  var $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
2152
2226
  $ZodType.init(inst, def);
2153
2227
  defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
@@ -2372,6 +2446,7 @@
2372
2446
  frCA: () => fr_CA_default,
2373
2447
  he: () => he_default,
2374
2448
  hu: () => hu_default,
2449
+ hy: () => hy_default,
2375
2450
  id: () => id_default,
2376
2451
  is: () => is_default,
2377
2452
  it: () => it_default,
@@ -2398,6 +2473,7 @@
2398
2473
  ua: () => ua_default,
2399
2474
  uk: () => uk_default,
2400
2475
  ur: () => ur_default,
2476
+ uz: () => uz_default,
2401
2477
  vi: () => vi_default,
2402
2478
  yo: () => yo_default,
2403
2479
  zhCN: () => zh_CN_default,
@@ -2415,27 +2491,7 @@
2415
2491
  function getSizing(origin) {
2416
2492
  return Sizable[origin] ?? null;
2417
2493
  }
2418
- const parsedType8 = (data) => {
2419
- const t = typeof data;
2420
- switch (t) {
2421
- case "number": {
2422
- return Number.isNaN(data) ? "NaN" : "number";
2423
- }
2424
- case "object": {
2425
- if (Array.isArray(data)) {
2426
- return "array";
2427
- }
2428
- if (data === null) {
2429
- return "null";
2430
- }
2431
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
2432
- return data.constructor.name;
2433
- }
2434
- }
2435
- }
2436
- return t;
2437
- };
2438
- const Nouns = {
2494
+ const FormatDictionary = {
2439
2495
  regex: "\u0645\u062F\u062E\u0644",
2440
2496
  email: "\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",
2441
2497
  url: "\u0631\u0627\u0628\u0637",
@@ -2465,10 +2521,20 @@
2465
2521
  jwt: "JWT",
2466
2522
  template_literal: "\u0645\u062F\u062E\u0644"
2467
2523
  };
2524
+ const TypeDictionary = {
2525
+ nan: "NaN"
2526
+ };
2468
2527
  return (issue2) => {
2469
2528
  switch (issue2.code) {
2470
- case "invalid_type":
2471
- return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${parsedType8(issue2.input)}`;
2529
+ case "invalid_type": {
2530
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
2531
+ const receivedType = parsedType(issue2.input);
2532
+ const received = TypeDictionary[receivedType] ?? receivedType;
2533
+ if (/^[A-Z]/.test(issue2.expected)) {
2534
+ return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`;
2535
+ }
2536
+ return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`;
2537
+ }
2472
2538
  case "invalid_value":
2473
2539
  if (issue2.values.length === 1)
2474
2540
  return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${stringifyPrimitive(issue2.values[0])}`;
@@ -2498,7 +2564,7 @@
2498
2564
  return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${_issue.includes}"`;
2499
2565
  if (_issue.format === "regex")
2500
2566
  return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${_issue.pattern}`;
2501
- return `${Nouns[_issue.format] ?? issue2.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`;
2567
+ return `${FormatDictionary[_issue.format] ?? issue2.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`;
2502
2568
  }
2503
2569
  case "not_multiple_of":
2504
2570
  return `\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${issue2.divisor}`;
@@ -2532,27 +2598,7 @@
2532
2598
  function getSizing(origin) {
2533
2599
  return Sizable[origin] ?? null;
2534
2600
  }
2535
- const parsedType8 = (data) => {
2536
- const t = typeof data;
2537
- switch (t) {
2538
- case "number": {
2539
- return Number.isNaN(data) ? "NaN" : "number";
2540
- }
2541
- case "object": {
2542
- if (Array.isArray(data)) {
2543
- return "array";
2544
- }
2545
- if (data === null) {
2546
- return "null";
2547
- }
2548
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
2549
- return data.constructor.name;
2550
- }
2551
- }
2552
- }
2553
- return t;
2554
- };
2555
- const Nouns = {
2601
+ const FormatDictionary = {
2556
2602
  regex: "input",
2557
2603
  email: "email address",
2558
2604
  url: "URL",
@@ -2582,10 +2628,20 @@
2582
2628
  jwt: "JWT",
2583
2629
  template_literal: "input"
2584
2630
  };
2631
+ const TypeDictionary = {
2632
+ nan: "NaN"
2633
+ };
2585
2634
  return (issue2) => {
2586
2635
  switch (issue2.code) {
2587
- case "invalid_type":
2588
- return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${issue2.expected}, daxil olan ${parsedType8(issue2.input)}`;
2636
+ case "invalid_type": {
2637
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
2638
+ const receivedType = parsedType(issue2.input);
2639
+ const received = TypeDictionary[receivedType] ?? receivedType;
2640
+ if (/^[A-Z]/.test(issue2.expected)) {
2641
+ return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${issue2.expected}, daxil olan ${received}`;
2642
+ }
2643
+ return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${expected}, daxil olan ${received}`;
2644
+ }
2589
2645
  case "invalid_value":
2590
2646
  if (issue2.values.length === 1)
2591
2647
  return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${stringifyPrimitive(issue2.values[0])}`;
@@ -2614,7 +2670,7 @@
2614
2670
  return `Yanl\u0131\u015F m\u0259tn: "${_issue.includes}" daxil olmal\u0131d\u0131r`;
2615
2671
  if (_issue.format === "regex")
2616
2672
  return `Yanl\u0131\u015F m\u0259tn: ${_issue.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`;
2617
- return `Yanl\u0131\u015F ${Nouns[_issue.format] ?? issue2.format}`;
2673
+ return `Yanl\u0131\u015F ${FormatDictionary[_issue.format] ?? issue2.format}`;
2618
2674
  }
2619
2675
  case "not_multiple_of":
2620
2676
  return `Yanl\u0131\u015F \u0259d\u0259d: ${issue2.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;
@@ -2691,27 +2747,7 @@
2691
2747
  function getSizing(origin) {
2692
2748
  return Sizable[origin] ?? null;
2693
2749
  }
2694
- const parsedType8 = (data) => {
2695
- const t = typeof data;
2696
- switch (t) {
2697
- case "number": {
2698
- return Number.isNaN(data) ? "NaN" : "\u043B\u0456\u043A";
2699
- }
2700
- case "object": {
2701
- if (Array.isArray(data)) {
2702
- return "\u043C\u0430\u0441\u0456\u045E";
2703
- }
2704
- if (data === null) {
2705
- return "null";
2706
- }
2707
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
2708
- return data.constructor.name;
2709
- }
2710
- }
2711
- }
2712
- return t;
2713
- };
2714
- const Nouns = {
2750
+ const FormatDictionary = {
2715
2751
  regex: "\u0443\u0432\u043E\u0434",
2716
2752
  email: "email \u0430\u0434\u0440\u0430\u0441",
2717
2753
  url: "URL",
@@ -2741,10 +2777,22 @@
2741
2777
  jwt: "JWT",
2742
2778
  template_literal: "\u0443\u0432\u043E\u0434"
2743
2779
  };
2780
+ const TypeDictionary = {
2781
+ nan: "NaN",
2782
+ number: "\u043B\u0456\u043A",
2783
+ array: "\u043C\u0430\u0441\u0456\u045E"
2784
+ };
2744
2785
  return (issue2) => {
2745
2786
  switch (issue2.code) {
2746
- case "invalid_type":
2747
- return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${parsedType8(issue2.input)}`;
2787
+ case "invalid_type": {
2788
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
2789
+ const receivedType = parsedType(issue2.input);
2790
+ const received = TypeDictionary[receivedType] ?? receivedType;
2791
+ if (/^[A-Z]/.test(issue2.expected)) {
2792
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`;
2793
+ }
2794
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`;
2795
+ }
2748
2796
  case "invalid_value":
2749
2797
  if (issue2.values.length === 1)
2750
2798
  return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`;
@@ -2779,7 +2827,7 @@
2779
2827
  return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${_issue.includes}"`;
2780
2828
  if (_issue.format === "regex")
2781
2829
  return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
2782
- return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${Nouns[_issue.format] ?? issue2.format}`;
2830
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${FormatDictionary[_issue.format] ?? issue2.format}`;
2783
2831
  }
2784
2832
  case "not_multiple_of":
2785
2833
  return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`;
@@ -2803,26 +2851,6 @@
2803
2851
  }
2804
2852
 
2805
2853
  // ../../../../../../node_modules/zod/v4/locales/bg.js
2806
- var parsedType = (data) => {
2807
- const t = typeof data;
2808
- switch (t) {
2809
- case "number": {
2810
- return Number.isNaN(data) ? "NaN" : "\u0447\u0438\u0441\u043B\u043E";
2811
- }
2812
- case "object": {
2813
- if (Array.isArray(data)) {
2814
- return "\u043C\u0430\u0441\u0438\u0432";
2815
- }
2816
- if (data === null) {
2817
- return "null";
2818
- }
2819
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
2820
- return data.constructor.name;
2821
- }
2822
- }
2823
- }
2824
- return t;
2825
- };
2826
2854
  var error4 = () => {
2827
2855
  const Sizable = {
2828
2856
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -2833,7 +2861,7 @@
2833
2861
  function getSizing(origin) {
2834
2862
  return Sizable[origin] ?? null;
2835
2863
  }
2836
- const Nouns = {
2864
+ const FormatDictionary = {
2837
2865
  regex: "\u0432\u0445\u043E\u0434",
2838
2866
  email: "\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",
2839
2867
  url: "URL",
@@ -2863,10 +2891,22 @@
2863
2891
  jwt: "JWT",
2864
2892
  template_literal: "\u0432\u0445\u043E\u0434"
2865
2893
  };
2894
+ const TypeDictionary = {
2895
+ nan: "NaN",
2896
+ number: "\u0447\u0438\u0441\u043B\u043E",
2897
+ array: "\u043C\u0430\u0441\u0438\u0432"
2898
+ };
2866
2899
  return (issue2) => {
2867
2900
  switch (issue2.code) {
2868
- case "invalid_type":
2869
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${parsedType(issue2.input)}`;
2901
+ case "invalid_type": {
2902
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
2903
+ const receivedType = parsedType(issue2.input);
2904
+ const received = TypeDictionary[receivedType] ?? receivedType;
2905
+ if (/^[A-Z]/.test(issue2.expected)) {
2906
+ return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`;
2907
+ }
2908
+ return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`;
2909
+ }
2870
2910
  case "invalid_value":
2871
2911
  if (issue2.values.length === 1)
2872
2912
  return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${stringifyPrimitive(issue2.values[0])}`;
@@ -2908,7 +2948,7 @@
2908
2948
  invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E";
2909
2949
  if (_issue.format === "duration")
2910
2950
  invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430";
2911
- return `${invalid_adj} ${Nouns[_issue.format] ?? issue2.format}`;
2951
+ return `${invalid_adj} ${FormatDictionary[_issue.format] ?? issue2.format}`;
2912
2952
  }
2913
2953
  case "not_multiple_of":
2914
2954
  return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${issue2.divisor}`;
@@ -2942,27 +2982,7 @@
2942
2982
  function getSizing(origin) {
2943
2983
  return Sizable[origin] ?? null;
2944
2984
  }
2945
- const parsedType8 = (data) => {
2946
- const t = typeof data;
2947
- switch (t) {
2948
- case "number": {
2949
- return Number.isNaN(data) ? "NaN" : "number";
2950
- }
2951
- case "object": {
2952
- if (Array.isArray(data)) {
2953
- return "array";
2954
- }
2955
- if (data === null) {
2956
- return "null";
2957
- }
2958
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
2959
- return data.constructor.name;
2960
- }
2961
- }
2962
- }
2963
- return t;
2964
- };
2965
- const Nouns = {
2985
+ const FormatDictionary = {
2966
2986
  regex: "entrada",
2967
2987
  email: "adre\xE7a electr\xF2nica",
2968
2988
  url: "URL",
@@ -2992,11 +3012,20 @@
2992
3012
  jwt: "JWT",
2993
3013
  template_literal: "entrada"
2994
3014
  };
3015
+ const TypeDictionary = {
3016
+ nan: "NaN"
3017
+ };
2995
3018
  return (issue2) => {
2996
3019
  switch (issue2.code) {
2997
- case "invalid_type":
2998
- return `Tipus inv\xE0lid: s'esperava ${issue2.expected}, s'ha rebut ${parsedType8(issue2.input)}`;
2999
- // return `Tipus invàlid: s'esperava ${issue.expected}, s'ha rebut ${util.getParsedType(issue.input)}`;
3020
+ case "invalid_type": {
3021
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3022
+ const receivedType = parsedType(issue2.input);
3023
+ const received = TypeDictionary[receivedType] ?? receivedType;
3024
+ if (/^[A-Z]/.test(issue2.expected)) {
3025
+ return `Tipus inv\xE0lid: s'esperava instanceof ${issue2.expected}, s'ha rebut ${received}`;
3026
+ }
3027
+ return `Tipus inv\xE0lid: s'esperava ${expected}, s'ha rebut ${received}`;
3028
+ }
3000
3029
  case "invalid_value":
3001
3030
  if (issue2.values.length === 1)
3002
3031
  return `Valor inv\xE0lid: s'esperava ${stringifyPrimitive(issue2.values[0])}`;
@@ -3027,7 +3056,7 @@
3027
3056
  return `Format inv\xE0lid: ha d'incloure "${_issue.includes}"`;
3028
3057
  if (_issue.format === "regex")
3029
3058
  return `Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${_issue.pattern}`;
3030
- return `Format inv\xE0lid per a ${Nouns[_issue.format] ?? issue2.format}`;
3059
+ return `Format inv\xE0lid per a ${FormatDictionary[_issue.format] ?? issue2.format}`;
3031
3060
  }
3032
3061
  case "not_multiple_of":
3033
3062
  return `N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${issue2.divisor}`;
@@ -3062,45 +3091,7 @@
3062
3091
  function getSizing(origin) {
3063
3092
  return Sizable[origin] ?? null;
3064
3093
  }
3065
- const parsedType8 = (data) => {
3066
- const t = typeof data;
3067
- switch (t) {
3068
- case "number": {
3069
- return Number.isNaN(data) ? "NaN" : "\u010D\xEDslo";
3070
- }
3071
- case "string": {
3072
- return "\u0159et\u011Bzec";
3073
- }
3074
- case "boolean": {
3075
- return "boolean";
3076
- }
3077
- case "bigint": {
3078
- return "bigint";
3079
- }
3080
- case "function": {
3081
- return "funkce";
3082
- }
3083
- case "symbol": {
3084
- return "symbol";
3085
- }
3086
- case "undefined": {
3087
- return "undefined";
3088
- }
3089
- case "object": {
3090
- if (Array.isArray(data)) {
3091
- return "pole";
3092
- }
3093
- if (data === null) {
3094
- return "null";
3095
- }
3096
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
3097
- return data.constructor.name;
3098
- }
3099
- }
3100
- }
3101
- return t;
3102
- };
3103
- const Nouns = {
3094
+ const FormatDictionary = {
3104
3095
  regex: "regul\xE1rn\xED v\xFDraz",
3105
3096
  email: "e-mailov\xE1 adresa",
3106
3097
  url: "URL",
@@ -3130,10 +3121,24 @@
3130
3121
  jwt: "JWT",
3131
3122
  template_literal: "vstup"
3132
3123
  };
3124
+ const TypeDictionary = {
3125
+ nan: "NaN",
3126
+ number: "\u010D\xEDslo",
3127
+ string: "\u0159et\u011Bzec",
3128
+ function: "funkce",
3129
+ array: "pole"
3130
+ };
3133
3131
  return (issue2) => {
3134
3132
  switch (issue2.code) {
3135
- case "invalid_type":
3136
- return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${issue2.expected}, obdr\u017Eeno ${parsedType8(issue2.input)}`;
3133
+ case "invalid_type": {
3134
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3135
+ const receivedType = parsedType(issue2.input);
3136
+ const received = TypeDictionary[receivedType] ?? receivedType;
3137
+ if (/^[A-Z]/.test(issue2.expected)) {
3138
+ return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${issue2.expected}, obdr\u017Eeno ${received}`;
3139
+ }
3140
+ return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${expected}, obdr\u017Eeno ${received}`;
3141
+ }
3137
3142
  case "invalid_value":
3138
3143
  if (issue2.values.length === 1)
3139
3144
  return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${stringifyPrimitive(issue2.values[0])}`;
@@ -3164,7 +3169,7 @@
3164
3169
  return `Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${_issue.includes}"`;
3165
3170
  if (_issue.format === "regex")
3166
3171
  return `Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${_issue.pattern}`;
3167
- return `Neplatn\xFD form\xE1t ${Nouns[_issue.format] ?? issue2.format}`;
3172
+ return `Neplatn\xFD form\xE1t ${FormatDictionary[_issue.format] ?? issue2.format}`;
3168
3173
  }
3169
3174
  case "not_multiple_of":
3170
3175
  return `Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${issue2.divisor}`;
@@ -3195,43 +3200,10 @@
3195
3200
  array: { unit: "elementer", verb: "indeholdt" },
3196
3201
  set: { unit: "elementer", verb: "indeholdt" }
3197
3202
  };
3198
- const TypeNames = {
3199
- string: "streng",
3200
- number: "tal",
3201
- boolean: "boolean",
3202
- array: "liste",
3203
- object: "objekt",
3204
- set: "s\xE6t",
3205
- file: "fil"
3206
- };
3207
3203
  function getSizing(origin) {
3208
3204
  return Sizable[origin] ?? null;
3209
3205
  }
3210
- function getTypeName(type) {
3211
- return TypeNames[type] ?? type;
3212
- }
3213
- const parsedType8 = (data) => {
3214
- const t = typeof data;
3215
- switch (t) {
3216
- case "number": {
3217
- return Number.isNaN(data) ? "NaN" : "tal";
3218
- }
3219
- case "object": {
3220
- if (Array.isArray(data)) {
3221
- return "liste";
3222
- }
3223
- if (data === null) {
3224
- return "null";
3225
- }
3226
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
3227
- return data.constructor.name;
3228
- }
3229
- return "objekt";
3230
- }
3231
- }
3232
- return t;
3233
- };
3234
- const Nouns = {
3206
+ const FormatDictionary = {
3235
3207
  regex: "input",
3236
3208
  email: "e-mailadresse",
3237
3209
  url: "URL",
@@ -3261,10 +3233,27 @@
3261
3233
  jwt: "JWT",
3262
3234
  template_literal: "input"
3263
3235
  };
3236
+ const TypeDictionary = {
3237
+ nan: "NaN",
3238
+ string: "streng",
3239
+ number: "tal",
3240
+ boolean: "boolean",
3241
+ array: "liste",
3242
+ object: "objekt",
3243
+ set: "s\xE6t",
3244
+ file: "fil"
3245
+ };
3264
3246
  return (issue2) => {
3265
3247
  switch (issue2.code) {
3266
- case "invalid_type":
3267
- return `Ugyldigt input: forventede ${getTypeName(issue2.expected)}, fik ${getTypeName(parsedType8(issue2.input))}`;
3248
+ case "invalid_type": {
3249
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3250
+ const receivedType = parsedType(issue2.input);
3251
+ const received = TypeDictionary[receivedType] ?? receivedType;
3252
+ if (/^[A-Z]/.test(issue2.expected)) {
3253
+ return `Ugyldigt input: forventede instanceof ${issue2.expected}, fik ${received}`;
3254
+ }
3255
+ return `Ugyldigt input: forventede ${expected}, fik ${received}`;
3256
+ }
3268
3257
  case "invalid_value":
3269
3258
  if (issue2.values.length === 1)
3270
3259
  return `Ugyldig v\xE6rdi: forventede ${stringifyPrimitive(issue2.values[0])}`;
@@ -3272,7 +3261,7 @@
3272
3261
  case "too_big": {
3273
3262
  const adj = issue2.inclusive ? "<=" : "<";
3274
3263
  const sizing = getSizing(issue2.origin);
3275
- const origin = getTypeName(issue2.origin);
3264
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
3276
3265
  if (sizing)
3277
3266
  return `For stor: forventede ${origin ?? "value"} ${sizing.verb} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`;
3278
3267
  return `For stor: forventede ${origin ?? "value"} havde ${adj} ${issue2.maximum.toString()}`;
@@ -3280,7 +3269,7 @@
3280
3269
  case "too_small": {
3281
3270
  const adj = issue2.inclusive ? ">=" : ">";
3282
3271
  const sizing = getSizing(issue2.origin);
3283
- const origin = getTypeName(issue2.origin);
3272
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
3284
3273
  if (sizing) {
3285
3274
  return `For lille: forventede ${origin} ${sizing.verb} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
3286
3275
  }
@@ -3296,7 +3285,7 @@
3296
3285
  return `Ugyldig streng: skal indeholde "${_issue.includes}"`;
3297
3286
  if (_issue.format === "regex")
3298
3287
  return `Ugyldig streng: skal matche m\xF8nsteret ${_issue.pattern}`;
3299
- return `Ugyldig ${Nouns[_issue.format] ?? issue2.format}`;
3288
+ return `Ugyldig ${FormatDictionary[_issue.format] ?? issue2.format}`;
3300
3289
  }
3301
3290
  case "not_multiple_of":
3302
3291
  return `Ugyldigt tal: skal v\xE6re deleligt med ${issue2.divisor}`;
@@ -3330,27 +3319,7 @@
3330
3319
  function getSizing(origin) {
3331
3320
  return Sizable[origin] ?? null;
3332
3321
  }
3333
- const parsedType8 = (data) => {
3334
- const t = typeof data;
3335
- switch (t) {
3336
- case "number": {
3337
- return Number.isNaN(data) ? "NaN" : "Zahl";
3338
- }
3339
- case "object": {
3340
- if (Array.isArray(data)) {
3341
- return "Array";
3342
- }
3343
- if (data === null) {
3344
- return "null";
3345
- }
3346
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
3347
- return data.constructor.name;
3348
- }
3349
- }
3350
- }
3351
- return t;
3352
- };
3353
- const Nouns = {
3322
+ const FormatDictionary = {
3354
3323
  regex: "Eingabe",
3355
3324
  email: "E-Mail-Adresse",
3356
3325
  url: "URL",
@@ -3380,10 +3349,22 @@
3380
3349
  jwt: "JWT",
3381
3350
  template_literal: "Eingabe"
3382
3351
  };
3352
+ const TypeDictionary = {
3353
+ nan: "NaN",
3354
+ number: "Zahl",
3355
+ array: "Array"
3356
+ };
3383
3357
  return (issue2) => {
3384
3358
  switch (issue2.code) {
3385
- case "invalid_type":
3386
- return `Ung\xFCltige Eingabe: erwartet ${issue2.expected}, erhalten ${parsedType8(issue2.input)}`;
3359
+ case "invalid_type": {
3360
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3361
+ const receivedType = parsedType(issue2.input);
3362
+ const received = TypeDictionary[receivedType] ?? receivedType;
3363
+ if (/^[A-Z]/.test(issue2.expected)) {
3364
+ return `Ung\xFCltige Eingabe: erwartet instanceof ${issue2.expected}, erhalten ${received}`;
3365
+ }
3366
+ return `Ung\xFCltige Eingabe: erwartet ${expected}, erhalten ${received}`;
3367
+ }
3387
3368
  case "invalid_value":
3388
3369
  if (issue2.values.length === 1)
3389
3370
  return `Ung\xFCltige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`;
@@ -3413,7 +3394,7 @@
3413
3394
  return `Ung\xFCltiger String: muss "${_issue.includes}" enthalten`;
3414
3395
  if (_issue.format === "regex")
3415
3396
  return `Ung\xFCltiger String: muss dem Muster ${_issue.pattern} entsprechen`;
3416
- return `Ung\xFCltig: ${Nouns[_issue.format] ?? issue2.format}`;
3397
+ return `Ung\xFCltig: ${FormatDictionary[_issue.format] ?? issue2.format}`;
3417
3398
  }
3418
3399
  case "not_multiple_of":
3419
3400
  return `Ung\xFCltige Zahl: muss ein Vielfaches von ${issue2.divisor} sein`;
@@ -3437,37 +3418,18 @@
3437
3418
  }
3438
3419
 
3439
3420
  // ../../../../../../node_modules/zod/v4/locales/en.js
3440
- var parsedType2 = (data) => {
3441
- const t = typeof data;
3442
- switch (t) {
3443
- case "number": {
3444
- return Number.isNaN(data) ? "NaN" : "number";
3445
- }
3446
- case "object": {
3447
- if (Array.isArray(data)) {
3448
- return "array";
3449
- }
3450
- if (data === null) {
3451
- return "null";
3452
- }
3453
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
3454
- return data.constructor.name;
3455
- }
3456
- }
3457
- }
3458
- return t;
3459
- };
3460
3421
  var error9 = () => {
3461
3422
  const Sizable = {
3462
3423
  string: { unit: "characters", verb: "to have" },
3463
3424
  file: { unit: "bytes", verb: "to have" },
3464
3425
  array: { unit: "items", verb: "to have" },
3465
- set: { unit: "items", verb: "to have" }
3426
+ set: { unit: "items", verb: "to have" },
3427
+ map: { unit: "entries", verb: "to have" }
3466
3428
  };
3467
3429
  function getSizing(origin) {
3468
3430
  return Sizable[origin] ?? null;
3469
3431
  }
3470
- const Nouns = {
3432
+ const FormatDictionary = {
3471
3433
  regex: "input",
3472
3434
  email: "email address",
3473
3435
  url: "URL",
@@ -3498,10 +3460,19 @@
3498
3460
  jwt: "JWT",
3499
3461
  template_literal: "input"
3500
3462
  };
3463
+ const TypeDictionary = {
3464
+ // Compatibility: "nan" -> "NaN" for display
3465
+ nan: "NaN"
3466
+ // All other type names omitted - they fall back to raw values via ?? operator
3467
+ };
3501
3468
  return (issue2) => {
3502
3469
  switch (issue2.code) {
3503
- case "invalid_type":
3504
- return `Invalid input: expected ${issue2.expected}, received ${parsedType2(issue2.input)}`;
3470
+ case "invalid_type": {
3471
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3472
+ const receivedType = parsedType(issue2.input);
3473
+ const received = TypeDictionary[receivedType] ?? receivedType;
3474
+ return `Invalid input: expected ${expected}, received ${received}`;
3475
+ }
3505
3476
  case "invalid_value":
3506
3477
  if (issue2.values.length === 1)
3507
3478
  return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
@@ -3532,7 +3503,7 @@
3532
3503
  return `Invalid string: must include "${_issue.includes}"`;
3533
3504
  if (_issue.format === "regex")
3534
3505
  return `Invalid string: must match pattern ${_issue.pattern}`;
3535
- return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
3506
+ return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
3536
3507
  }
3537
3508
  case "not_multiple_of":
3538
3509
  return `Invalid number: must be a multiple of ${issue2.divisor}`;
@@ -3556,26 +3527,6 @@
3556
3527
  }
3557
3528
 
3558
3529
  // ../../../../../../node_modules/zod/v4/locales/eo.js
3559
- var parsedType3 = (data) => {
3560
- const t = typeof data;
3561
- switch (t) {
3562
- case "number": {
3563
- return Number.isNaN(data) ? "NaN" : "nombro";
3564
- }
3565
- case "object": {
3566
- if (Array.isArray(data)) {
3567
- return "tabelo";
3568
- }
3569
- if (data === null) {
3570
- return "senvalora";
3571
- }
3572
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
3573
- return data.constructor.name;
3574
- }
3575
- }
3576
- }
3577
- return t;
3578
- };
3579
3530
  var error10 = () => {
3580
3531
  const Sizable = {
3581
3532
  string: { unit: "karaktrojn", verb: "havi" },
@@ -3586,7 +3537,7 @@
3586
3537
  function getSizing(origin) {
3587
3538
  return Sizable[origin] ?? null;
3588
3539
  }
3589
- const Nouns = {
3540
+ const FormatDictionary = {
3590
3541
  regex: "enigo",
3591
3542
  email: "retadreso",
3592
3543
  url: "URL",
@@ -3616,10 +3567,23 @@
3616
3567
  jwt: "JWT",
3617
3568
  template_literal: "enigo"
3618
3569
  };
3570
+ const TypeDictionary = {
3571
+ nan: "NaN",
3572
+ number: "nombro",
3573
+ array: "tabelo",
3574
+ null: "senvalora"
3575
+ };
3619
3576
  return (issue2) => {
3620
3577
  switch (issue2.code) {
3621
- case "invalid_type":
3622
- return `Nevalida enigo: atendi\u011Dis ${issue2.expected}, ricevi\u011Dis ${parsedType3(issue2.input)}`;
3578
+ case "invalid_type": {
3579
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3580
+ const receivedType = parsedType(issue2.input);
3581
+ const received = TypeDictionary[receivedType] ?? receivedType;
3582
+ if (/^[A-Z]/.test(issue2.expected)) {
3583
+ return `Nevalida enigo: atendi\u011Dis instanceof ${issue2.expected}, ricevi\u011Dis ${received}`;
3584
+ }
3585
+ return `Nevalida enigo: atendi\u011Dis ${expected}, ricevi\u011Dis ${received}`;
3586
+ }
3623
3587
  case "invalid_value":
3624
3588
  if (issue2.values.length === 1)
3625
3589
  return `Nevalida enigo: atendi\u011Dis ${stringifyPrimitive(issue2.values[0])}`;
@@ -3649,7 +3613,7 @@
3649
3613
  return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
3650
3614
  if (_issue.format === "regex")
3651
3615
  return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
3652
- return `Nevalida ${Nouns[_issue.format] ?? issue2.format}`;
3616
+ return `Nevalida ${FormatDictionary[_issue.format] ?? issue2.format}`;
3653
3617
  }
3654
3618
  case "not_multiple_of":
3655
3619
  return `Nevalida nombro: devas esti oblo de ${issue2.divisor}`;
@@ -3680,60 +3644,10 @@
3680
3644
  array: { unit: "elementos", verb: "tener" },
3681
3645
  set: { unit: "elementos", verb: "tener" }
3682
3646
  };
3683
- const TypeNames = {
3684
- string: "texto",
3685
- number: "n\xFAmero",
3686
- boolean: "booleano",
3687
- array: "arreglo",
3688
- object: "objeto",
3689
- set: "conjunto",
3690
- file: "archivo",
3691
- date: "fecha",
3692
- bigint: "n\xFAmero grande",
3693
- symbol: "s\xEDmbolo",
3694
- undefined: "indefinido",
3695
- null: "nulo",
3696
- function: "funci\xF3n",
3697
- map: "mapa",
3698
- record: "registro",
3699
- tuple: "tupla",
3700
- enum: "enumeraci\xF3n",
3701
- union: "uni\xF3n",
3702
- literal: "literal",
3703
- promise: "promesa",
3704
- void: "vac\xEDo",
3705
- never: "nunca",
3706
- unknown: "desconocido",
3707
- any: "cualquiera"
3708
- };
3709
3647
  function getSizing(origin) {
3710
3648
  return Sizable[origin] ?? null;
3711
3649
  }
3712
- function getTypeName(type) {
3713
- return TypeNames[type] ?? type;
3714
- }
3715
- const parsedType8 = (data) => {
3716
- const t = typeof data;
3717
- switch (t) {
3718
- case "number": {
3719
- return Number.isNaN(data) ? "NaN" : "number";
3720
- }
3721
- case "object": {
3722
- if (Array.isArray(data)) {
3723
- return "array";
3724
- }
3725
- if (data === null) {
3726
- return "null";
3727
- }
3728
- if (Object.getPrototypeOf(data) !== Object.prototype) {
3729
- return data.constructor.name;
3730
- }
3731
- return "object";
3732
- }
3733
- }
3734
- return t;
3735
- };
3736
- const Nouns = {
3650
+ const FormatDictionary = {
3737
3651
  regex: "entrada",
3738
3652
  email: "direcci\xF3n de correo electr\xF3nico",
3739
3653
  url: "URL",
@@ -3763,19 +3677,52 @@
3763
3677
  jwt: "JWT",
3764
3678
  template_literal: "entrada"
3765
3679
  };
3766
- return (issue2) => {
3767
- switch (issue2.code) {
3768
- case "invalid_type":
3769
- return `Entrada inv\xE1lida: se esperaba ${getTypeName(issue2.expected)}, recibido ${getTypeName(parsedType8(issue2.input))}`;
3770
- // return `Entrada inválida: se esperaba ${issue.expected}, recibido ${util.getParsedType(issue.input)}`;
3771
- case "invalid_value":
3772
- if (issue2.values.length === 1)
3773
- return `Entrada inv\xE1lida: se esperaba ${stringifyPrimitive(issue2.values[0])}`;
3774
- return `Opci\xF3n inv\xE1lida: se esperaba una de ${joinValues(issue2.values, "|")}`;
3680
+ const TypeDictionary = {
3681
+ nan: "NaN",
3682
+ string: "texto",
3683
+ number: "n\xFAmero",
3684
+ boolean: "booleano",
3685
+ array: "arreglo",
3686
+ object: "objeto",
3687
+ set: "conjunto",
3688
+ file: "archivo",
3689
+ date: "fecha",
3690
+ bigint: "n\xFAmero grande",
3691
+ symbol: "s\xEDmbolo",
3692
+ undefined: "indefinido",
3693
+ null: "nulo",
3694
+ function: "funci\xF3n",
3695
+ map: "mapa",
3696
+ record: "registro",
3697
+ tuple: "tupla",
3698
+ enum: "enumeraci\xF3n",
3699
+ union: "uni\xF3n",
3700
+ literal: "literal",
3701
+ promise: "promesa",
3702
+ void: "vac\xEDo",
3703
+ never: "nunca",
3704
+ unknown: "desconocido",
3705
+ any: "cualquiera"
3706
+ };
3707
+ return (issue2) => {
3708
+ switch (issue2.code) {
3709
+ case "invalid_type": {
3710
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3711
+ const receivedType = parsedType(issue2.input);
3712
+ const received = TypeDictionary[receivedType] ?? receivedType;
3713
+ if (/^[A-Z]/.test(issue2.expected)) {
3714
+ return `Entrada inv\xE1lida: se esperaba instanceof ${issue2.expected}, recibido ${received}`;
3715
+ }
3716
+ return `Entrada inv\xE1lida: se esperaba ${expected}, recibido ${received}`;
3717
+ }
3718
+ case "invalid_value":
3719
+ if (issue2.values.length === 1)
3720
+ return `Entrada inv\xE1lida: se esperaba ${stringifyPrimitive(issue2.values[0])}`;
3721
+ return `Opci\xF3n inv\xE1lida: se esperaba una de ${joinValues(issue2.values, "|")}`;
3775
3722
  case "too_big": {
3776
3723
  const adj = issue2.inclusive ? "<=" : "<";
3777
3724
  const sizing = getSizing(issue2.origin);
3778
- const origin = getTypeName(issue2.origin);
3725
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
3779
3726
  if (sizing)
3780
3727
  return `Demasiado grande: se esperaba que ${origin ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
3781
3728
  return `Demasiado grande: se esperaba que ${origin ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`;
@@ -3783,7 +3730,7 @@
3783
3730
  case "too_small": {
3784
3731
  const adj = issue2.inclusive ? ">=" : ">";
3785
3732
  const sizing = getSizing(issue2.origin);
3786
- const origin = getTypeName(issue2.origin);
3733
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
3787
3734
  if (sizing) {
3788
3735
  return `Demasiado peque\xF1o: se esperaba que ${origin} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
3789
3736
  }
@@ -3799,18 +3746,18 @@
3799
3746
  return `Cadena inv\xE1lida: debe incluir "${_issue.includes}"`;
3800
3747
  if (_issue.format === "regex")
3801
3748
  return `Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${_issue.pattern}`;
3802
- return `Inv\xE1lido ${Nouns[_issue.format] ?? issue2.format}`;
3749
+ return `Inv\xE1lido ${FormatDictionary[_issue.format] ?? issue2.format}`;
3803
3750
  }
3804
3751
  case "not_multiple_of":
3805
3752
  return `N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${issue2.divisor}`;
3806
3753
  case "unrecognized_keys":
3807
3754
  return `Llave${issue2.keys.length > 1 ? "s" : ""} desconocida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
3808
3755
  case "invalid_key":
3809
- return `Llave inv\xE1lida en ${getTypeName(issue2.origin)}`;
3756
+ return `Llave inv\xE1lida en ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
3810
3757
  case "invalid_union":
3811
3758
  return "Entrada inv\xE1lida";
3812
3759
  case "invalid_element":
3813
- return `Valor inv\xE1lido en ${getTypeName(issue2.origin)}`;
3760
+ return `Valor inv\xE1lido en ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
3814
3761
  default:
3815
3762
  return `Entrada inv\xE1lida`;
3816
3763
  }
@@ -3833,27 +3780,7 @@
3833
3780
  function getSizing(origin) {
3834
3781
  return Sizable[origin] ?? null;
3835
3782
  }
3836
- const parsedType8 = (data) => {
3837
- const t = typeof data;
3838
- switch (t) {
3839
- case "number": {
3840
- return Number.isNaN(data) ? "NaN" : "\u0639\u062F\u062F";
3841
- }
3842
- case "object": {
3843
- if (Array.isArray(data)) {
3844
- return "\u0622\u0631\u0627\u06CC\u0647";
3845
- }
3846
- if (data === null) {
3847
- return "null";
3848
- }
3849
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
3850
- return data.constructor.name;
3851
- }
3852
- }
3853
- }
3854
- return t;
3855
- };
3856
- const Nouns = {
3783
+ const FormatDictionary = {
3857
3784
  regex: "\u0648\u0631\u0648\u062F\u06CC",
3858
3785
  email: "\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",
3859
3786
  url: "URL",
@@ -3883,10 +3810,22 @@
3883
3810
  jwt: "JWT",
3884
3811
  template_literal: "\u0648\u0631\u0648\u062F\u06CC"
3885
3812
  };
3813
+ const TypeDictionary = {
3814
+ nan: "NaN",
3815
+ number: "\u0639\u062F\u062F",
3816
+ array: "\u0622\u0631\u0627\u06CC\u0647"
3817
+ };
3886
3818
  return (issue2) => {
3887
3819
  switch (issue2.code) {
3888
- case "invalid_type":
3889
- return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${parsedType8(issue2.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
3820
+ case "invalid_type": {
3821
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3822
+ const receivedType = parsedType(issue2.input);
3823
+ const received = TypeDictionary[receivedType] ?? receivedType;
3824
+ if (/^[A-Z]/.test(issue2.expected)) {
3825
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
3826
+ }
3827
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
3828
+ }
3890
3829
  case "invalid_value":
3891
3830
  if (issue2.values.length === 1) {
3892
3831
  return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${stringifyPrimitive(issue2.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`;
@@ -3922,7 +3861,7 @@
3922
3861
  if (_issue.format === "regex") {
3923
3862
  return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${_issue.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`;
3924
3863
  }
3925
- return `${Nouns[_issue.format] ?? issue2.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`;
3864
+ return `${FormatDictionary[_issue.format] ?? issue2.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`;
3926
3865
  }
3927
3866
  case "not_multiple_of":
3928
3867
  return `\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${issue2.divisor} \u0628\u0627\u0634\u062F`;
@@ -3960,27 +3899,7 @@
3960
3899
  function getSizing(origin) {
3961
3900
  return Sizable[origin] ?? null;
3962
3901
  }
3963
- const parsedType8 = (data) => {
3964
- const t = typeof data;
3965
- switch (t) {
3966
- case "number": {
3967
- return Number.isNaN(data) ? "NaN" : "number";
3968
- }
3969
- case "object": {
3970
- if (Array.isArray(data)) {
3971
- return "array";
3972
- }
3973
- if (data === null) {
3974
- return "null";
3975
- }
3976
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
3977
- return data.constructor.name;
3978
- }
3979
- }
3980
- }
3981
- return t;
3982
- };
3983
- const Nouns = {
3902
+ const FormatDictionary = {
3984
3903
  regex: "s\xE4\xE4nn\xF6llinen lauseke",
3985
3904
  email: "s\xE4hk\xF6postiosoite",
3986
3905
  url: "URL-osoite",
@@ -4010,10 +3929,20 @@
4010
3929
  jwt: "JWT",
4011
3930
  template_literal: "templaattimerkkijono"
4012
3931
  };
3932
+ const TypeDictionary = {
3933
+ nan: "NaN"
3934
+ };
4013
3935
  return (issue2) => {
4014
3936
  switch (issue2.code) {
4015
- case "invalid_type":
4016
- return `Virheellinen tyyppi: odotettiin ${issue2.expected}, oli ${parsedType8(issue2.input)}`;
3937
+ case "invalid_type": {
3938
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
3939
+ const receivedType = parsedType(issue2.input);
3940
+ const received = TypeDictionary[receivedType] ?? receivedType;
3941
+ if (/^[A-Z]/.test(issue2.expected)) {
3942
+ return `Virheellinen tyyppi: odotettiin instanceof ${issue2.expected}, oli ${received}`;
3943
+ }
3944
+ return `Virheellinen tyyppi: odotettiin ${expected}, oli ${received}`;
3945
+ }
4017
3946
  case "invalid_value":
4018
3947
  if (issue2.values.length === 1)
4019
3948
  return `Virheellinen sy\xF6te: t\xE4ytyy olla ${stringifyPrimitive(issue2.values[0])}`;
@@ -4045,7 +3974,7 @@
4045
3974
  if (_issue.format === "regex") {
4046
3975
  return `Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${_issue.pattern}`;
4047
3976
  }
4048
- return `Virheellinen ${Nouns[_issue.format] ?? issue2.format}`;
3977
+ return `Virheellinen ${FormatDictionary[_issue.format] ?? issue2.format}`;
4049
3978
  }
4050
3979
  case "not_multiple_of":
4051
3980
  return `Virheellinen luku: t\xE4ytyy olla luvun ${issue2.divisor} monikerta`;
@@ -4079,27 +4008,7 @@
4079
4008
  function getSizing(origin) {
4080
4009
  return Sizable[origin] ?? null;
4081
4010
  }
4082
- const parsedType8 = (data) => {
4083
- const t = typeof data;
4084
- switch (t) {
4085
- case "number": {
4086
- return Number.isNaN(data) ? "NaN" : "nombre";
4087
- }
4088
- case "object": {
4089
- if (Array.isArray(data)) {
4090
- return "tableau";
4091
- }
4092
- if (data === null) {
4093
- return "null";
4094
- }
4095
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4096
- return data.constructor.name;
4097
- }
4098
- }
4099
- }
4100
- return t;
4101
- };
4102
- const Nouns = {
4011
+ const FormatDictionary = {
4103
4012
  regex: "entr\xE9e",
4104
4013
  email: "adresse e-mail",
4105
4014
  url: "URL",
@@ -4129,10 +4038,22 @@
4129
4038
  jwt: "JWT",
4130
4039
  template_literal: "entr\xE9e"
4131
4040
  };
4041
+ const TypeDictionary = {
4042
+ nan: "NaN",
4043
+ number: "nombre",
4044
+ array: "tableau"
4045
+ };
4132
4046
  return (issue2) => {
4133
4047
  switch (issue2.code) {
4134
- case "invalid_type":
4135
- return `Entr\xE9e invalide : ${issue2.expected} attendu, ${parsedType8(issue2.input)} re\xE7u`;
4048
+ case "invalid_type": {
4049
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
4050
+ const receivedType = parsedType(issue2.input);
4051
+ const received = TypeDictionary[receivedType] ?? receivedType;
4052
+ if (/^[A-Z]/.test(issue2.expected)) {
4053
+ return `Entr\xE9e invalide : instanceof ${issue2.expected} attendu, ${received} re\xE7u`;
4054
+ }
4055
+ return `Entr\xE9e invalide : ${expected} attendu, ${received} re\xE7u`;
4056
+ }
4136
4057
  case "invalid_value":
4137
4058
  if (issue2.values.length === 1)
4138
4059
  return `Entr\xE9e invalide : ${stringifyPrimitive(issue2.values[0])} attendu`;
@@ -4162,7 +4083,7 @@
4162
4083
  return `Cha\xEEne invalide : doit inclure "${_issue.includes}"`;
4163
4084
  if (_issue.format === "regex")
4164
4085
  return `Cha\xEEne invalide : doit correspondre au mod\xE8le ${_issue.pattern}`;
4165
- return `${Nouns[_issue.format] ?? issue2.format} invalide`;
4086
+ return `${FormatDictionary[_issue.format] ?? issue2.format} invalide`;
4166
4087
  }
4167
4088
  case "not_multiple_of":
4168
4089
  return `Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`;
@@ -4196,27 +4117,7 @@
4196
4117
  function getSizing(origin) {
4197
4118
  return Sizable[origin] ?? null;
4198
4119
  }
4199
- const parsedType8 = (data) => {
4200
- const t = typeof data;
4201
- switch (t) {
4202
- case "number": {
4203
- return Number.isNaN(data) ? "NaN" : "number";
4204
- }
4205
- case "object": {
4206
- if (Array.isArray(data)) {
4207
- return "array";
4208
- }
4209
- if (data === null) {
4210
- return "null";
4211
- }
4212
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4213
- return data.constructor.name;
4214
- }
4215
- }
4216
- }
4217
- return t;
4218
- };
4219
- const Nouns = {
4120
+ const FormatDictionary = {
4220
4121
  regex: "entr\xE9e",
4221
4122
  email: "adresse courriel",
4222
4123
  url: "URL",
@@ -4246,10 +4147,20 @@
4246
4147
  jwt: "JWT",
4247
4148
  template_literal: "entr\xE9e"
4248
4149
  };
4150
+ const TypeDictionary = {
4151
+ nan: "NaN"
4152
+ };
4249
4153
  return (issue2) => {
4250
4154
  switch (issue2.code) {
4251
- case "invalid_type":
4252
- return `Entr\xE9e invalide : attendu ${issue2.expected}, re\xE7u ${parsedType8(issue2.input)}`;
4155
+ case "invalid_type": {
4156
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
4157
+ const receivedType = parsedType(issue2.input);
4158
+ const received = TypeDictionary[receivedType] ?? receivedType;
4159
+ if (/^[A-Z]/.test(issue2.expected)) {
4160
+ return `Entr\xE9e invalide : attendu instanceof ${issue2.expected}, re\xE7u ${received}`;
4161
+ }
4162
+ return `Entr\xE9e invalide : attendu ${expected}, re\xE7u ${received}`;
4163
+ }
4253
4164
  case "invalid_value":
4254
4165
  if (issue2.values.length === 1)
4255
4166
  return `Entr\xE9e invalide : attendu ${stringifyPrimitive(issue2.values[0])}`;
@@ -4280,7 +4191,7 @@
4280
4191
  return `Cha\xEEne invalide : doit inclure "${_issue.includes}"`;
4281
4192
  if (_issue.format === "regex")
4282
4193
  return `Cha\xEEne invalide : doit correspondre au motif ${_issue.pattern}`;
4283
- return `${Nouns[_issue.format] ?? issue2.format} invalide`;
4194
+ return `${FormatDictionary[_issue.format] ?? issue2.format} invalide`;
4284
4195
  }
4285
4196
  case "not_multiple_of":
4286
4197
  return `Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`;
@@ -4351,26 +4262,7 @@
4351
4262
  return null;
4352
4263
  return Sizable[origin] ?? null;
4353
4264
  };
4354
- const parsedType8 = (data) => {
4355
- const t = typeof data;
4356
- switch (t) {
4357
- case "number":
4358
- return Number.isNaN(data) ? "NaN" : "number";
4359
- case "object": {
4360
- if (Array.isArray(data))
4361
- return "array";
4362
- if (data === null)
4363
- return "null";
4364
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4365
- return data.constructor.name;
4366
- }
4367
- return "object";
4368
- }
4369
- default:
4370
- return t;
4371
- }
4372
- };
4373
- const Nouns = {
4265
+ const FormatDictionary = {
4374
4266
  regex: { label: "\u05E7\u05DC\u05D8", gender: "m" },
4375
4267
  email: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", gender: "f" },
4376
4268
  url: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA", gender: "f" },
@@ -4402,13 +4294,19 @@
4402
4294
  starts_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
4403
4295
  uppercase: { label: "\u05E7\u05DC\u05D8", gender: "m" }
4404
4296
  };
4297
+ const TypeDictionary = {
4298
+ nan: "NaN"
4299
+ };
4405
4300
  return (issue2) => {
4406
4301
  switch (issue2.code) {
4407
4302
  case "invalid_type": {
4408
4303
  const expectedKey = issue2.expected;
4409
- const expected = typeLabel(expectedKey);
4410
- const receivedKey = parsedType8(issue2.input);
4411
- const received = TypeNames[receivedKey]?.label ?? receivedKey;
4304
+ const expected = TypeDictionary[expectedKey ?? ""] ?? typeLabel(expectedKey);
4305
+ const receivedType = parsedType(issue2.input);
4306
+ const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;
4307
+ if (/^[A-Z]/.test(issue2.expected)) {
4308
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`;
4309
+ }
4412
4310
  return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`;
4413
4311
  }
4414
4312
  case "invalid_value": {
@@ -4481,7 +4379,7 @@
4481
4379
  return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
4482
4380
  if (_issue.format === "regex")
4483
4381
  return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`;
4484
- const nounEntry = Nouns[_issue.format];
4382
+ const nounEntry = FormatDictionary[_issue.format];
4485
4383
  const noun = nounEntry?.label ?? _issue.format;
4486
4384
  const gender = nounEntry?.gender ?? "m";
4487
4385
  const adjective = gender === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF";
@@ -4522,27 +4420,7 @@
4522
4420
  function getSizing(origin) {
4523
4421
  return Sizable[origin] ?? null;
4524
4422
  }
4525
- const parsedType8 = (data) => {
4526
- const t = typeof data;
4527
- switch (t) {
4528
- case "number": {
4529
- return Number.isNaN(data) ? "NaN" : "sz\xE1m";
4530
- }
4531
- case "object": {
4532
- if (Array.isArray(data)) {
4533
- return "t\xF6mb";
4534
- }
4535
- if (data === null) {
4536
- return "null";
4537
- }
4538
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4539
- return data.constructor.name;
4540
- }
4541
- }
4542
- }
4543
- return t;
4544
- };
4545
- const Nouns = {
4423
+ const FormatDictionary = {
4546
4424
  regex: "bemenet",
4547
4425
  email: "email c\xEDm",
4548
4426
  url: "URL",
@@ -4572,11 +4450,22 @@
4572
4450
  jwt: "JWT",
4573
4451
  template_literal: "bemenet"
4574
4452
  };
4453
+ const TypeDictionary = {
4454
+ nan: "NaN",
4455
+ number: "sz\xE1m",
4456
+ array: "t\xF6mb"
4457
+ };
4575
4458
  return (issue2) => {
4576
4459
  switch (issue2.code) {
4577
- case "invalid_type":
4578
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${issue2.expected}, a kapott \xE9rt\xE9k ${parsedType8(issue2.input)}`;
4579
- // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
4460
+ case "invalid_type": {
4461
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
4462
+ const receivedType = parsedType(issue2.input);
4463
+ const received = TypeDictionary[receivedType] ?? receivedType;
4464
+ if (/^[A-Z]/.test(issue2.expected)) {
4465
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
4466
+ }
4467
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
4468
+ }
4580
4469
  case "invalid_value":
4581
4470
  if (issue2.values.length === 1)
4582
4471
  return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
@@ -4606,7 +4495,7 @@
4606
4495
  return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`;
4607
4496
  if (_issue.format === "regex")
4608
4497
  return `\xC9rv\xE9nytelen string: ${_issue.pattern} mint\xE1nak kell megfelelnie`;
4609
- return `\xC9rv\xE9nytelen ${Nouns[_issue.format] ?? issue2.format}`;
4498
+ return `\xC9rv\xE9nytelen ${FormatDictionary[_issue.format] ?? issue2.format}`;
4610
4499
  }
4611
4500
  case "not_multiple_of":
4612
4501
  return `\xC9rv\xE9nytelen sz\xE1m: ${issue2.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;
@@ -4629,38 +4518,166 @@
4629
4518
  };
4630
4519
  }
4631
4520
 
4632
- // ../../../../../../node_modules/zod/v4/locales/id.js
4521
+ // ../../../../../../node_modules/zod/v4/locales/hy.js
4522
+ function getArmenianPlural(count, one, many) {
4523
+ return Math.abs(count) === 1 ? one : many;
4524
+ }
4525
+ function withDefiniteArticle(word) {
4526
+ if (!word)
4527
+ return "";
4528
+ const vowels = ["\u0561", "\u0565", "\u0568", "\u056B", "\u0578", "\u0578\u0582", "\u0585"];
4529
+ const lastChar = word[word.length - 1];
4530
+ return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
4531
+ }
4633
4532
  var error18 = () => {
4634
4533
  const Sizable = {
4635
- string: { unit: "karakter", verb: "memiliki" },
4636
- file: { unit: "byte", verb: "memiliki" },
4637
- array: { unit: "item", verb: "memiliki" },
4638
- set: { unit: "item", verb: "memiliki" }
4534
+ string: {
4535
+ unit: {
4536
+ one: "\u0576\u0577\u0561\u0576",
4537
+ many: "\u0576\u0577\u0561\u0576\u0576\u0565\u0580"
4538
+ },
4539
+ verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C"
4540
+ },
4541
+ file: {
4542
+ unit: {
4543
+ one: "\u0562\u0561\u0575\u0569",
4544
+ many: "\u0562\u0561\u0575\u0569\u0565\u0580"
4545
+ },
4546
+ verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C"
4547
+ },
4548
+ array: {
4549
+ unit: {
4550
+ one: "\u057F\u0561\u0580\u0580",
4551
+ many: "\u057F\u0561\u0580\u0580\u0565\u0580"
4552
+ },
4553
+ verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C"
4554
+ },
4555
+ set: {
4556
+ unit: {
4557
+ one: "\u057F\u0561\u0580\u0580",
4558
+ many: "\u057F\u0561\u0580\u0580\u0565\u0580"
4559
+ },
4560
+ verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C"
4561
+ }
4639
4562
  };
4640
4563
  function getSizing(origin) {
4641
4564
  return Sizable[origin] ?? null;
4642
4565
  }
4643
- const parsedType8 = (data) => {
4644
- const t = typeof data;
4645
- switch (t) {
4646
- case "number": {
4647
- return Number.isNaN(data) ? "NaN" : "number";
4648
- }
4649
- case "object": {
4650
- if (Array.isArray(data)) {
4651
- return "array";
4566
+ const FormatDictionary = {
4567
+ regex: "\u0574\u0578\u0582\u057F\u0584",
4568
+ email: "\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",
4569
+ url: "URL",
4570
+ emoji: "\u0567\u0574\u0578\u057B\u056B",
4571
+ uuid: "UUID",
4572
+ uuidv4: "UUIDv4",
4573
+ uuidv6: "UUIDv6",
4574
+ nanoid: "nanoid",
4575
+ guid: "GUID",
4576
+ cuid: "cuid",
4577
+ cuid2: "cuid2",
4578
+ ulid: "ULID",
4579
+ xid: "XID",
4580
+ ksuid: "KSUID",
4581
+ datetime: "ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",
4582
+ date: "ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",
4583
+ time: "ISO \u056A\u0561\u0574",
4584
+ duration: "ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",
4585
+ ipv4: "IPv4 \u0570\u0561\u057D\u0581\u0565",
4586
+ ipv6: "IPv6 \u0570\u0561\u057D\u0581\u0565",
4587
+ cidrv4: "IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",
4588
+ cidrv6: "IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",
4589
+ base64: "base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",
4590
+ base64url: "base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",
4591
+ json_string: "JSON \u057F\u0578\u0572",
4592
+ e164: "E.164 \u0570\u0561\u0574\u0561\u0580",
4593
+ jwt: "JWT",
4594
+ template_literal: "\u0574\u0578\u0582\u057F\u0584"
4595
+ };
4596
+ const TypeDictionary = {
4597
+ nan: "NaN",
4598
+ number: "\u0569\u056B\u057E",
4599
+ array: "\u0566\u0561\u0576\u0563\u057E\u0561\u056E"
4600
+ };
4601
+ return (issue2) => {
4602
+ switch (issue2.code) {
4603
+ case "invalid_type": {
4604
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
4605
+ const receivedType = parsedType(issue2.input);
4606
+ const received = TypeDictionary[receivedType] ?? receivedType;
4607
+ if (/^[A-Z]/.test(issue2.expected)) {
4608
+ return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${issue2.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`;
4652
4609
  }
4653
- if (data === null) {
4654
- return "null";
4610
+ return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`;
4611
+ }
4612
+ case "invalid_value":
4613
+ if (issue2.values.length === 1)
4614
+ return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${stringifyPrimitive(issue2.values[1])}`;
4615
+ return `\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${joinValues(issue2.values, "|")}`;
4616
+ case "too_big": {
4617
+ const adj = issue2.inclusive ? "<=" : "<";
4618
+ const sizing = getSizing(issue2.origin);
4619
+ if (sizing) {
4620
+ const maxValue = Number(issue2.maximum);
4621
+ const unit = getArmenianPlural(maxValue, sizing.unit.one, sizing.unit.many);
4622
+ return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin ?? "\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${adj}${issue2.maximum.toString()} ${unit}`;
4655
4623
  }
4656
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4657
- return data.constructor.name;
4624
+ return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin ?? "\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${adj}${issue2.maximum.toString()}`;
4625
+ }
4626
+ case "too_small": {
4627
+ const adj = issue2.inclusive ? ">=" : ">";
4628
+ const sizing = getSizing(issue2.origin);
4629
+ if (sizing) {
4630
+ const minValue = Number(issue2.minimum);
4631
+ const unit = getArmenianPlural(minValue, sizing.unit.one, sizing.unit.many);
4632
+ return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${adj}${issue2.minimum.toString()} ${unit}`;
4658
4633
  }
4634
+ return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin)} \u056C\u056B\u0576\u056B ${adj}${issue2.minimum.toString()}`;
4635
+ }
4636
+ case "invalid_format": {
4637
+ const _issue = issue2;
4638
+ if (_issue.format === "starts_with")
4639
+ return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${_issue.prefix}"-\u0578\u057E`;
4640
+ if (_issue.format === "ends_with")
4641
+ return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${_issue.suffix}"-\u0578\u057E`;
4642
+ if (_issue.format === "includes")
4643
+ return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${_issue.includes}"`;
4644
+ if (_issue.format === "regex")
4645
+ return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${_issue.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`;
4646
+ return `\u054D\u056D\u0561\u056C ${FormatDictionary[_issue.format] ?? issue2.format}`;
4659
4647
  }
4648
+ case "not_multiple_of":
4649
+ return `\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${issue2.divisor}-\u056B`;
4650
+ case "unrecognized_keys":
4651
+ return `\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${issue2.keys.length > 1 ? "\u0576\u0565\u0580" : ""}. ${joinValues(issue2.keys, ", ")}`;
4652
+ case "invalid_key":
4653
+ return `\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${withDefiniteArticle(issue2.origin)}-\u0578\u0582\u0574`;
4654
+ case "invalid_union":
4655
+ return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";
4656
+ case "invalid_element":
4657
+ return `\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${withDefiniteArticle(issue2.origin)}-\u0578\u0582\u0574`;
4658
+ default:
4659
+ return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574`;
4660
4660
  }
4661
- return t;
4662
4661
  };
4663
- const Nouns = {
4662
+ };
4663
+ function hy_default() {
4664
+ return {
4665
+ localeError: error18()
4666
+ };
4667
+ }
4668
+
4669
+ // ../../../../../../node_modules/zod/v4/locales/id.js
4670
+ var error19 = () => {
4671
+ const Sizable = {
4672
+ string: { unit: "karakter", verb: "memiliki" },
4673
+ file: { unit: "byte", verb: "memiliki" },
4674
+ array: { unit: "item", verb: "memiliki" },
4675
+ set: { unit: "item", verb: "memiliki" }
4676
+ };
4677
+ function getSizing(origin) {
4678
+ return Sizable[origin] ?? null;
4679
+ }
4680
+ const FormatDictionary = {
4664
4681
  regex: "input",
4665
4682
  email: "alamat email",
4666
4683
  url: "URL",
@@ -4690,10 +4707,20 @@
4690
4707
  jwt: "JWT",
4691
4708
  template_literal: "input"
4692
4709
  };
4710
+ const TypeDictionary = {
4711
+ nan: "NaN"
4712
+ };
4693
4713
  return (issue2) => {
4694
4714
  switch (issue2.code) {
4695
- case "invalid_type":
4696
- return `Input tidak valid: diharapkan ${issue2.expected}, diterima ${parsedType8(issue2.input)}`;
4715
+ case "invalid_type": {
4716
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
4717
+ const receivedType = parsedType(issue2.input);
4718
+ const received = TypeDictionary[receivedType] ?? receivedType;
4719
+ if (/^[A-Z]/.test(issue2.expected)) {
4720
+ return `Input tidak valid: diharapkan instanceof ${issue2.expected}, diterima ${received}`;
4721
+ }
4722
+ return `Input tidak valid: diharapkan ${expected}, diterima ${received}`;
4723
+ }
4697
4724
  case "invalid_value":
4698
4725
  if (issue2.values.length === 1)
4699
4726
  return `Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`;
@@ -4723,7 +4750,7 @@
4723
4750
  return `String tidak valid: harus menyertakan "${_issue.includes}"`;
4724
4751
  if (_issue.format === "regex")
4725
4752
  return `String tidak valid: harus sesuai pola ${_issue.pattern}`;
4726
- return `${Nouns[_issue.format] ?? issue2.format} tidak valid`;
4753
+ return `${FormatDictionary[_issue.format] ?? issue2.format} tidak valid`;
4727
4754
  }
4728
4755
  case "not_multiple_of":
4729
4756
  return `Angka tidak valid: harus kelipatan dari ${issue2.divisor}`;
@@ -4742,32 +4769,12 @@
4742
4769
  };
4743
4770
  function id_default() {
4744
4771
  return {
4745
- localeError: error18()
4772
+ localeError: error19()
4746
4773
  };
4747
4774
  }
4748
4775
 
4749
4776
  // ../../../../../../node_modules/zod/v4/locales/is.js
4750
- var parsedType4 = (data) => {
4751
- const t = typeof data;
4752
- switch (t) {
4753
- case "number": {
4754
- return Number.isNaN(data) ? "NaN" : "n\xFAmer";
4755
- }
4756
- case "object": {
4757
- if (Array.isArray(data)) {
4758
- return "fylki";
4759
- }
4760
- if (data === null) {
4761
- return "null";
4762
- }
4763
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4764
- return data.constructor.name;
4765
- }
4766
- }
4767
- }
4768
- return t;
4769
- };
4770
- var error19 = () => {
4777
+ var error20 = () => {
4771
4778
  const Sizable = {
4772
4779
  string: { unit: "stafi", verb: "a\xF0 hafa" },
4773
4780
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -4777,7 +4784,7 @@
4777
4784
  function getSizing(origin) {
4778
4785
  return Sizable[origin] ?? null;
4779
4786
  }
4780
- const Nouns = {
4787
+ const FormatDictionary = {
4781
4788
  regex: "gildi",
4782
4789
  email: "netfang",
4783
4790
  url: "vefsl\xF3\xF0",
@@ -4807,10 +4814,22 @@
4807
4814
  jwt: "JWT",
4808
4815
  template_literal: "gildi"
4809
4816
  };
4817
+ const TypeDictionary = {
4818
+ nan: "NaN",
4819
+ number: "n\xFAmer",
4820
+ array: "fylki"
4821
+ };
4810
4822
  return (issue2) => {
4811
4823
  switch (issue2.code) {
4812
- case "invalid_type":
4813
- return `Rangt gildi: \xDE\xFA sl\xF3st inn ${parsedType4(issue2.input)} \xFEar sem \xE1 a\xF0 vera ${issue2.expected}`;
4824
+ case "invalid_type": {
4825
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
4826
+ const receivedType = parsedType(issue2.input);
4827
+ const received = TypeDictionary[receivedType] ?? receivedType;
4828
+ if (/^[A-Z]/.test(issue2.expected)) {
4829
+ return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera instanceof ${issue2.expected}`;
4830
+ }
4831
+ return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera ${expected}`;
4832
+ }
4814
4833
  case "invalid_value":
4815
4834
  if (issue2.values.length === 1)
4816
4835
  return `Rangt gildi: gert r\xE1\xF0 fyrir ${stringifyPrimitive(issue2.values[0])}`;
@@ -4841,7 +4860,7 @@
4841
4860
  return `\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${_issue.includes}"`;
4842
4861
  if (_issue.format === "regex")
4843
4862
  return `\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${_issue.pattern}`;
4844
- return `Rangt ${Nouns[_issue.format] ?? issue2.format}`;
4863
+ return `Rangt ${FormatDictionary[_issue.format] ?? issue2.format}`;
4845
4864
  }
4846
4865
  case "not_multiple_of":
4847
4866
  return `R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${issue2.divisor}`;
@@ -4860,12 +4879,12 @@
4860
4879
  };
4861
4880
  function is_default() {
4862
4881
  return {
4863
- localeError: error19()
4882
+ localeError: error20()
4864
4883
  };
4865
4884
  }
4866
4885
 
4867
4886
  // ../../../../../../node_modules/zod/v4/locales/it.js
4868
- var error20 = () => {
4887
+ var error21 = () => {
4869
4888
  const Sizable = {
4870
4889
  string: { unit: "caratteri", verb: "avere" },
4871
4890
  file: { unit: "byte", verb: "avere" },
@@ -4875,27 +4894,7 @@
4875
4894
  function getSizing(origin) {
4876
4895
  return Sizable[origin] ?? null;
4877
4896
  }
4878
- const parsedType8 = (data) => {
4879
- const t = typeof data;
4880
- switch (t) {
4881
- case "number": {
4882
- return Number.isNaN(data) ? "NaN" : "numero";
4883
- }
4884
- case "object": {
4885
- if (Array.isArray(data)) {
4886
- return "vettore";
4887
- }
4888
- if (data === null) {
4889
- return "null";
4890
- }
4891
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4892
- return data.constructor.name;
4893
- }
4894
- }
4895
- }
4896
- return t;
4897
- };
4898
- const Nouns = {
4897
+ const FormatDictionary = {
4899
4898
  regex: "input",
4900
4899
  email: "indirizzo email",
4901
4900
  url: "URL",
@@ -4925,11 +4924,22 @@
4925
4924
  jwt: "JWT",
4926
4925
  template_literal: "input"
4927
4926
  };
4927
+ const TypeDictionary = {
4928
+ nan: "NaN",
4929
+ number: "numero",
4930
+ array: "vettore"
4931
+ };
4928
4932
  return (issue2) => {
4929
4933
  switch (issue2.code) {
4930
- case "invalid_type":
4931
- return `Input non valido: atteso ${issue2.expected}, ricevuto ${parsedType8(issue2.input)}`;
4932
- // return `Input non valido: atteso ${issue.expected}, ricevuto ${util.getParsedType(issue.input)}`;
4934
+ case "invalid_type": {
4935
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
4936
+ const receivedType = parsedType(issue2.input);
4937
+ const received = TypeDictionary[receivedType] ?? receivedType;
4938
+ if (/^[A-Z]/.test(issue2.expected)) {
4939
+ return `Input non valido: atteso instanceof ${issue2.expected}, ricevuto ${received}`;
4940
+ }
4941
+ return `Input non valido: atteso ${expected}, ricevuto ${received}`;
4942
+ }
4933
4943
  case "invalid_value":
4934
4944
  if (issue2.values.length === 1)
4935
4945
  return `Input non valido: atteso ${stringifyPrimitive(issue2.values[0])}`;
@@ -4959,7 +4969,7 @@
4959
4969
  return `Stringa non valida: deve includere "${_issue.includes}"`;
4960
4970
  if (_issue.format === "regex")
4961
4971
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
4962
- return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
4972
+ return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
4963
4973
  }
4964
4974
  case "not_multiple_of":
4965
4975
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -4978,12 +4988,12 @@
4978
4988
  };
4979
4989
  function it_default() {
4980
4990
  return {
4981
- localeError: error20()
4991
+ localeError: error21()
4982
4992
  };
4983
4993
  }
4984
4994
 
4985
4995
  // ../../../../../../node_modules/zod/v4/locales/ja.js
4986
- var error21 = () => {
4996
+ var error22 = () => {
4987
4997
  const Sizable = {
4988
4998
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
4989
4999
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -4993,27 +5003,7 @@
4993
5003
  function getSizing(origin) {
4994
5004
  return Sizable[origin] ?? null;
4995
5005
  }
4996
- const parsedType8 = (data) => {
4997
- const t = typeof data;
4998
- switch (t) {
4999
- case "number": {
5000
- return Number.isNaN(data) ? "NaN" : "\u6570\u5024";
5001
- }
5002
- case "object": {
5003
- if (Array.isArray(data)) {
5004
- return "\u914D\u5217";
5005
- }
5006
- if (data === null) {
5007
- return "null";
5008
- }
5009
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5010
- return data.constructor.name;
5011
- }
5012
- }
5013
- }
5014
- return t;
5015
- };
5016
- const Nouns = {
5006
+ const FormatDictionary = {
5017
5007
  regex: "\u5165\u529B\u5024",
5018
5008
  email: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",
5019
5009
  url: "URL",
@@ -5043,10 +5033,22 @@
5043
5033
  jwt: "JWT",
5044
5034
  template_literal: "\u5165\u529B\u5024"
5045
5035
  };
5036
+ const TypeDictionary = {
5037
+ nan: "NaN",
5038
+ number: "\u6570\u5024",
5039
+ array: "\u914D\u5217"
5040
+ };
5046
5041
  return (issue2) => {
5047
5042
  switch (issue2.code) {
5048
- case "invalid_type":
5049
- return `\u7121\u52B9\u306A\u5165\u529B: ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${parsedType8(issue2.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
5043
+ case "invalid_type": {
5044
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5045
+ const receivedType = parsedType(issue2.input);
5046
+ const received = TypeDictionary[receivedType] ?? receivedType;
5047
+ if (/^[A-Z]/.test(issue2.expected)) {
5048
+ return `\u7121\u52B9\u306A\u5165\u529B: instanceof ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
5049
+ }
5050
+ return `\u7121\u52B9\u306A\u5165\u529B: ${expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
5051
+ }
5050
5052
  case "invalid_value":
5051
5053
  if (issue2.values.length === 1)
5052
5054
  return `\u7121\u52B9\u306A\u5165\u529B: ${stringifyPrimitive(issue2.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`;
@@ -5075,7 +5077,7 @@
5075
5077
  return `\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
5076
5078
  if (_issue.format === "regex")
5077
5079
  return `\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${_issue.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
5078
- return `\u7121\u52B9\u306A${Nouns[_issue.format] ?? issue2.format}`;
5080
+ return `\u7121\u52B9\u306A${FormatDictionary[_issue.format] ?? issue2.format}`;
5079
5081
  }
5080
5082
  case "not_multiple_of":
5081
5083
  return `\u7121\u52B9\u306A\u6570\u5024: ${issue2.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
@@ -5094,40 +5096,12 @@
5094
5096
  };
5095
5097
  function ja_default() {
5096
5098
  return {
5097
- localeError: error21()
5099
+ localeError: error22()
5098
5100
  };
5099
5101
  }
5100
5102
 
5101
5103
  // ../../../../../../node_modules/zod/v4/locales/ka.js
5102
- var parsedType5 = (data) => {
5103
- const t = typeof data;
5104
- switch (t) {
5105
- case "number": {
5106
- return Number.isNaN(data) ? "NaN" : "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8";
5107
- }
5108
- case "object": {
5109
- if (Array.isArray(data)) {
5110
- return "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8";
5111
- }
5112
- if (data === null) {
5113
- return "null";
5114
- }
5115
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5116
- return data.constructor.name;
5117
- }
5118
- }
5119
- }
5120
- const typeMap = {
5121
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
5122
- boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
5123
- undefined: "undefined",
5124
- bigint: "bigint",
5125
- symbol: "symbol",
5126
- function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0"
5127
- };
5128
- return typeMap[t] ?? t;
5129
- };
5130
- var error22 = () => {
5104
+ var error23 = () => {
5131
5105
  const Sizable = {
5132
5106
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
5133
5107
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -5137,7 +5111,7 @@
5137
5111
  function getSizing(origin) {
5138
5112
  return Sizable[origin] ?? null;
5139
5113
  }
5140
- const Nouns = {
5114
+ const FormatDictionary = {
5141
5115
  regex: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",
5142
5116
  email: "\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
5143
5117
  url: "URL",
@@ -5167,10 +5141,25 @@
5167
5141
  jwt: "JWT",
5168
5142
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
5169
5143
  };
5144
+ const TypeDictionary = {
5145
+ nan: "NaN",
5146
+ number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
5147
+ string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
5148
+ boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
5149
+ function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
5150
+ array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
5151
+ };
5170
5152
  return (issue2) => {
5171
5153
  switch (issue2.code) {
5172
- case "invalid_type":
5173
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${parsedType5(issue2.input)}`;
5154
+ case "invalid_type": {
5155
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5156
+ const receivedType = parsedType(issue2.input);
5157
+ const received = TypeDictionary[receivedType] ?? receivedType;
5158
+ if (/^[A-Z]/.test(issue2.expected)) {
5159
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`;
5160
+ }
5161
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`;
5162
+ }
5174
5163
  case "invalid_value":
5175
5164
  if (issue2.values.length === 1)
5176
5165
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${stringifyPrimitive(issue2.values[0])}`;
@@ -5201,7 +5190,7 @@
5201
5190
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
5202
5191
  if (_issue.format === "regex")
5203
5192
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
5204
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${Nouns[_issue.format] ?? issue2.format}`;
5193
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
5205
5194
  }
5206
5195
  case "not_multiple_of":
5207
5196
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${issue2.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;
@@ -5220,12 +5209,12 @@
5220
5209
  };
5221
5210
  function ka_default() {
5222
5211
  return {
5223
- localeError: error22()
5212
+ localeError: error23()
5224
5213
  };
5225
5214
  }
5226
5215
 
5227
5216
  // ../../../../../../node_modules/zod/v4/locales/km.js
5228
- var error23 = () => {
5217
+ var error24 = () => {
5229
5218
  const Sizable = {
5230
5219
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
5231
5220
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -5235,27 +5224,7 @@
5235
5224
  function getSizing(origin) {
5236
5225
  return Sizable[origin] ?? null;
5237
5226
  }
5238
- const parsedType8 = (data) => {
5239
- const t = typeof data;
5240
- switch (t) {
5241
- case "number": {
5242
- return Number.isNaN(data) ? "\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)" : "\u179B\u17C1\u1781";
5243
- }
5244
- case "object": {
5245
- if (Array.isArray(data)) {
5246
- return "\u17A2\u17B6\u179A\u17C1 (Array)";
5247
- }
5248
- if (data === null) {
5249
- return "\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";
5250
- }
5251
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5252
- return data.constructor.name;
5253
- }
5254
- }
5255
- }
5256
- return t;
5257
- };
5258
- const Nouns = {
5227
+ const FormatDictionary = {
5259
5228
  regex: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",
5260
5229
  email: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",
5261
5230
  url: "URL",
@@ -5285,10 +5254,23 @@
5285
5254
  jwt: "JWT",
5286
5255
  template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"
5287
5256
  };
5257
+ const TypeDictionary = {
5258
+ nan: "NaN",
5259
+ number: "\u179B\u17C1\u1781",
5260
+ array: "\u17A2\u17B6\u179A\u17C1 (Array)",
5261
+ null: "\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"
5262
+ };
5288
5263
  return (issue2) => {
5289
5264
  switch (issue2.code) {
5290
- case "invalid_type":
5291
- return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${parsedType8(issue2.input)}`;
5265
+ case "invalid_type": {
5266
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5267
+ const receivedType = parsedType(issue2.input);
5268
+ const received = TypeDictionary[receivedType] ?? receivedType;
5269
+ if (/^[A-Z]/.test(issue2.expected)) {
5270
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`;
5271
+ }
5272
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`;
5273
+ }
5292
5274
  case "invalid_value":
5293
5275
  if (issue2.values.length === 1)
5294
5276
  return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${stringifyPrimitive(issue2.values[0])}`;
@@ -5319,7 +5301,7 @@
5319
5301
  return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${_issue.includes}"`;
5320
5302
  if (_issue.format === "regex")
5321
5303
  return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${_issue.pattern}`;
5322
- return `\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${Nouns[_issue.format] ?? issue2.format}`;
5304
+ return `\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${FormatDictionary[_issue.format] ?? issue2.format}`;
5323
5305
  }
5324
5306
  case "not_multiple_of":
5325
5307
  return `\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${issue2.divisor}`;
@@ -5338,7 +5320,7 @@
5338
5320
  };
5339
5321
  function km_default() {
5340
5322
  return {
5341
- localeError: error23()
5323
+ localeError: error24()
5342
5324
  };
5343
5325
  }
5344
5326
 
@@ -5348,37 +5330,17 @@
5348
5330
  }
5349
5331
 
5350
5332
  // ../../../../../../node_modules/zod/v4/locales/ko.js
5351
- var error24 = () => {
5333
+ var error25 = () => {
5352
5334
  const Sizable = {
5353
5335
  string: { unit: "\uBB38\uC790", verb: "to have" },
5354
5336
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
5355
5337
  array: { unit: "\uAC1C", verb: "to have" },
5356
- set: { unit: "\uAC1C", verb: "to have" }
5357
- };
5358
- function getSizing(origin) {
5359
- return Sizable[origin] ?? null;
5360
- }
5361
- const parsedType8 = (data) => {
5362
- const t = typeof data;
5363
- switch (t) {
5364
- case "number": {
5365
- return Number.isNaN(data) ? "NaN" : "number";
5366
- }
5367
- case "object": {
5368
- if (Array.isArray(data)) {
5369
- return "array";
5370
- }
5371
- if (data === null) {
5372
- return "null";
5373
- }
5374
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5375
- return data.constructor.name;
5376
- }
5377
- }
5378
- }
5379
- return t;
5338
+ set: { unit: "\uAC1C", verb: "to have" }
5380
5339
  };
5381
- const Nouns = {
5340
+ function getSizing(origin) {
5341
+ return Sizable[origin] ?? null;
5342
+ }
5343
+ const FormatDictionary = {
5382
5344
  regex: "\uC785\uB825",
5383
5345
  email: "\uC774\uBA54\uC77C \uC8FC\uC18C",
5384
5346
  url: "URL",
@@ -5408,10 +5370,20 @@
5408
5370
  jwt: "JWT",
5409
5371
  template_literal: "\uC785\uB825"
5410
5372
  };
5373
+ const TypeDictionary = {
5374
+ nan: "NaN"
5375
+ };
5411
5376
  return (issue2) => {
5412
5377
  switch (issue2.code) {
5413
- case "invalid_type":
5414
- return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${parsedType8(issue2.input)}\uC785\uB2C8\uB2E4`;
5378
+ case "invalid_type": {
5379
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5380
+ const receivedType = parsedType(issue2.input);
5381
+ const received = TypeDictionary[receivedType] ?? receivedType;
5382
+ if (/^[A-Z]/.test(issue2.expected)) {
5383
+ return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`;
5384
+ }
5385
+ return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`;
5386
+ }
5415
5387
  case "invalid_value":
5416
5388
  if (issue2.values.length === 1)
5417
5389
  return `\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`;
@@ -5446,7 +5418,7 @@
5446
5418
  return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`;
5447
5419
  if (_issue.format === "regex")
5448
5420
  return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${_issue.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`;
5449
- return `\uC798\uBABB\uB41C ${Nouns[_issue.format] ?? issue2.format}`;
5421
+ return `\uC798\uBABB\uB41C ${FormatDictionary[_issue.format] ?? issue2.format}`;
5450
5422
  }
5451
5423
  case "not_multiple_of":
5452
5424
  return `\uC798\uBABB\uB41C \uC22B\uC790: ${issue2.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;
@@ -5465,58 +5437,11 @@
5465
5437
  };
5466
5438
  function ko_default() {
5467
5439
  return {
5468
- localeError: error24()
5440
+ localeError: error25()
5469
5441
  };
5470
5442
  }
5471
5443
 
5472
5444
  // ../../../../../../node_modules/zod/v4/locales/lt.js
5473
- var parsedType6 = (data) => {
5474
- const t = typeof data;
5475
- return parsedTypeFromType(t, data);
5476
- };
5477
- var parsedTypeFromType = (t, data = void 0) => {
5478
- switch (t) {
5479
- case "number": {
5480
- return Number.isNaN(data) ? "NaN" : "skai\u010Dius";
5481
- }
5482
- case "bigint": {
5483
- return "sveikasis skai\u010Dius";
5484
- }
5485
- case "string": {
5486
- return "eilut\u0117";
5487
- }
5488
- case "boolean": {
5489
- return "login\u0117 reik\u0161m\u0117";
5490
- }
5491
- case "undefined":
5492
- case "void": {
5493
- return "neapibr\u0117\u017Eta reik\u0161m\u0117";
5494
- }
5495
- case "function": {
5496
- return "funkcija";
5497
- }
5498
- case "symbol": {
5499
- return "simbolis";
5500
- }
5501
- case "object": {
5502
- if (data === void 0)
5503
- return "ne\u017Einomas objektas";
5504
- if (data === null)
5505
- return "nulin\u0117 reik\u0161m\u0117";
5506
- if (Array.isArray(data))
5507
- return "masyvas";
5508
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5509
- return data.constructor.name;
5510
- }
5511
- return "objektas";
5512
- }
5513
- //Zod types below
5514
- case "null": {
5515
- return "nulin\u0117 reik\u0161m\u0117";
5516
- }
5517
- }
5518
- return t;
5519
- };
5520
5445
  var capitalizeFirstCharacter = (text) => {
5521
5446
  return text.charAt(0).toUpperCase() + text.slice(1);
5522
5447
  };
@@ -5530,7 +5455,7 @@
5530
5455
  return "one";
5531
5456
  return "few";
5532
5457
  }
5533
- var error25 = () => {
5458
+ var error26 = () => {
5534
5459
  const Sizable = {
5535
5460
  string: {
5536
5461
  unit: {
@@ -5610,7 +5535,7 @@
5610
5535
  verb: result.verb[targetShouldBe][inclusive ? "inclusive" : "notInclusive"]
5611
5536
  };
5612
5537
  }
5613
- const Nouns = {
5538
+ const FormatDictionary = {
5614
5539
  regex: "\u012Fvestis",
5615
5540
  email: "el. pa\u0161to adresas",
5616
5541
  url: "URL",
@@ -5640,16 +5565,36 @@
5640
5565
  jwt: "JWT",
5641
5566
  template_literal: "\u012Fvestis"
5642
5567
  };
5568
+ const TypeDictionary = {
5569
+ nan: "NaN",
5570
+ number: "skai\u010Dius",
5571
+ bigint: "sveikasis skai\u010Dius",
5572
+ string: "eilut\u0117",
5573
+ boolean: "login\u0117 reik\u0161m\u0117",
5574
+ undefined: "neapibr\u0117\u017Eta reik\u0161m\u0117",
5575
+ function: "funkcija",
5576
+ symbol: "simbolis",
5577
+ array: "masyvas",
5578
+ object: "objektas",
5579
+ null: "nulin\u0117 reik\u0161m\u0117"
5580
+ };
5643
5581
  return (issue2) => {
5644
5582
  switch (issue2.code) {
5645
- case "invalid_type":
5646
- return `Gautas tipas ${parsedType6(issue2.input)}, o tik\u0117tasi - ${parsedTypeFromType(issue2.expected)}`;
5583
+ case "invalid_type": {
5584
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5585
+ const receivedType = parsedType(issue2.input);
5586
+ const received = TypeDictionary[receivedType] ?? receivedType;
5587
+ if (/^[A-Z]/.test(issue2.expected)) {
5588
+ return `Gautas tipas ${received}, o tik\u0117tasi - instanceof ${issue2.expected}`;
5589
+ }
5590
+ return `Gautas tipas ${received}, o tik\u0117tasi - ${expected}`;
5591
+ }
5647
5592
  case "invalid_value":
5648
5593
  if (issue2.values.length === 1)
5649
5594
  return `Privalo b\u016Bti ${stringifyPrimitive(issue2.values[0])}`;
5650
5595
  return `Privalo b\u016Bti vienas i\u0161 ${joinValues(issue2.values, "|")} pasirinkim\u0173`;
5651
5596
  case "too_big": {
5652
- const origin = parsedTypeFromType(issue2.origin);
5597
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
5653
5598
  const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.maximum)), issue2.inclusive ?? false, "smaller");
5654
5599
  if (sizing?.verb)
5655
5600
  return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.maximum.toString()} ${sizing.unit ?? "element\u0173"}`;
@@ -5657,7 +5602,7 @@
5657
5602
  return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.maximum.toString()} ${sizing?.unit}`;
5658
5603
  }
5659
5604
  case "too_small": {
5660
- const origin = parsedTypeFromType(issue2.origin);
5605
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
5661
5606
  const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.minimum)), issue2.inclusive ?? false, "bigger");
5662
5607
  if (sizing?.verb)
5663
5608
  return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.minimum.toString()} ${sizing.unit ?? "element\u0173"}`;
@@ -5675,7 +5620,7 @@
5675
5620
  return `Eilut\u0117 privalo \u012Ftraukti "${_issue.includes}"`;
5676
5621
  if (_issue.format === "regex")
5677
5622
  return `Eilut\u0117 privalo atitikti ${_issue.pattern}`;
5678
- return `Neteisingas ${Nouns[_issue.format] ?? issue2.format}`;
5623
+ return `Neteisingas ${FormatDictionary[_issue.format] ?? issue2.format}`;
5679
5624
  }
5680
5625
  case "not_multiple_of":
5681
5626
  return `Skai\u010Dius privalo b\u016Bti ${issue2.divisor} kartotinis.`;
@@ -5686,7 +5631,7 @@
5686
5631
  case "invalid_union":
5687
5632
  return "Klaidinga \u012Fvestis";
5688
5633
  case "invalid_element": {
5689
- const origin = parsedTypeFromType(issue2.origin);
5634
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
5690
5635
  return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`;
5691
5636
  }
5692
5637
  default:
@@ -5696,12 +5641,12 @@
5696
5641
  };
5697
5642
  function lt_default() {
5698
5643
  return {
5699
- localeError: error25()
5644
+ localeError: error26()
5700
5645
  };
5701
5646
  }
5702
5647
 
5703
5648
  // ../../../../../../node_modules/zod/v4/locales/mk.js
5704
- var error26 = () => {
5649
+ var error27 = () => {
5705
5650
  const Sizable = {
5706
5651
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
5707
5652
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -5711,27 +5656,7 @@
5711
5656
  function getSizing(origin) {
5712
5657
  return Sizable[origin] ?? null;
5713
5658
  }
5714
- const parsedType8 = (data) => {
5715
- const t = typeof data;
5716
- switch (t) {
5717
- case "number": {
5718
- return Number.isNaN(data) ? "NaN" : "\u0431\u0440\u043E\u0458";
5719
- }
5720
- case "object": {
5721
- if (Array.isArray(data)) {
5722
- return "\u043D\u0438\u0437\u0430";
5723
- }
5724
- if (data === null) {
5725
- return "null";
5726
- }
5727
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5728
- return data.constructor.name;
5729
- }
5730
- }
5731
- }
5732
- return t;
5733
- };
5734
- const Nouns = {
5659
+ const FormatDictionary = {
5735
5660
  regex: "\u0432\u043D\u0435\u0441",
5736
5661
  email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",
5737
5662
  url: "URL",
@@ -5761,11 +5686,22 @@
5761
5686
  jwt: "JWT",
5762
5687
  template_literal: "\u0432\u043D\u0435\u0441"
5763
5688
  };
5689
+ const TypeDictionary = {
5690
+ nan: "NaN",
5691
+ number: "\u0431\u0440\u043E\u0458",
5692
+ array: "\u043D\u0438\u0437\u0430"
5693
+ };
5764
5694
  return (issue2) => {
5765
5695
  switch (issue2.code) {
5766
- case "invalid_type":
5767
- return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${parsedType8(issue2.input)}`;
5768
- // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
5696
+ case "invalid_type": {
5697
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5698
+ const receivedType = parsedType(issue2.input);
5699
+ const received = TypeDictionary[receivedType] ?? receivedType;
5700
+ if (/^[A-Z]/.test(issue2.expected)) {
5701
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`;
5702
+ }
5703
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`;
5704
+ }
5769
5705
  case "invalid_value":
5770
5706
  if (issue2.values.length === 1)
5771
5707
  return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
@@ -5796,7 +5732,7 @@
5796
5732
  return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${_issue.includes}"`;
5797
5733
  if (_issue.format === "regex")
5798
5734
  return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${_issue.pattern}`;
5799
- return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
5735
+ return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
5800
5736
  }
5801
5737
  case "not_multiple_of":
5802
5738
  return `\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${issue2.divisor}`;
@@ -5815,12 +5751,12 @@
5815
5751
  };
5816
5752
  function mk_default() {
5817
5753
  return {
5818
- localeError: error26()
5754
+ localeError: error27()
5819
5755
  };
5820
5756
  }
5821
5757
 
5822
5758
  // ../../../../../../node_modules/zod/v4/locales/ms.js
5823
- var error27 = () => {
5759
+ var error28 = () => {
5824
5760
  const Sizable = {
5825
5761
  string: { unit: "aksara", verb: "mempunyai" },
5826
5762
  file: { unit: "bait", verb: "mempunyai" },
@@ -5830,27 +5766,7 @@
5830
5766
  function getSizing(origin) {
5831
5767
  return Sizable[origin] ?? null;
5832
5768
  }
5833
- const parsedType8 = (data) => {
5834
- const t = typeof data;
5835
- switch (t) {
5836
- case "number": {
5837
- return Number.isNaN(data) ? "NaN" : "nombor";
5838
- }
5839
- case "object": {
5840
- if (Array.isArray(data)) {
5841
- return "array";
5842
- }
5843
- if (data === null) {
5844
- return "null";
5845
- }
5846
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5847
- return data.constructor.name;
5848
- }
5849
- }
5850
- }
5851
- return t;
5852
- };
5853
- const Nouns = {
5769
+ const FormatDictionary = {
5854
5770
  regex: "input",
5855
5771
  email: "alamat e-mel",
5856
5772
  url: "URL",
@@ -5880,10 +5796,21 @@
5880
5796
  jwt: "JWT",
5881
5797
  template_literal: "input"
5882
5798
  };
5799
+ const TypeDictionary = {
5800
+ nan: "NaN",
5801
+ number: "nombor"
5802
+ };
5883
5803
  return (issue2) => {
5884
5804
  switch (issue2.code) {
5885
- case "invalid_type":
5886
- return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType8(issue2.input)}`;
5805
+ case "invalid_type": {
5806
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5807
+ const receivedType = parsedType(issue2.input);
5808
+ const received = TypeDictionary[receivedType] ?? receivedType;
5809
+ if (/^[A-Z]/.test(issue2.expected)) {
5810
+ return `Input tidak sah: dijangka instanceof ${issue2.expected}, diterima ${received}`;
5811
+ }
5812
+ return `Input tidak sah: dijangka ${expected}, diterima ${received}`;
5813
+ }
5887
5814
  case "invalid_value":
5888
5815
  if (issue2.values.length === 1)
5889
5816
  return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;
@@ -5913,7 +5840,7 @@
5913
5840
  return `String tidak sah: mesti mengandungi "${_issue.includes}"`;
5914
5841
  if (_issue.format === "regex")
5915
5842
  return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`;
5916
- return `${Nouns[_issue.format] ?? issue2.format} tidak sah`;
5843
+ return `${FormatDictionary[_issue.format] ?? issue2.format} tidak sah`;
5917
5844
  }
5918
5845
  case "not_multiple_of":
5919
5846
  return `Nombor tidak sah: perlu gandaan ${issue2.divisor}`;
@@ -5932,42 +5859,22 @@
5932
5859
  };
5933
5860
  function ms_default() {
5934
5861
  return {
5935
- localeError: error27()
5862
+ localeError: error28()
5936
5863
  };
5937
5864
  }
5938
5865
 
5939
5866
  // ../../../../../../node_modules/zod/v4/locales/nl.js
5940
- var error28 = () => {
5867
+ var error29 = () => {
5941
5868
  const Sizable = {
5942
- string: { unit: "tekens", verb: "te hebben" },
5943
- file: { unit: "bytes", verb: "te hebben" },
5944
- array: { unit: "elementen", verb: "te hebben" },
5945
- set: { unit: "elementen", verb: "te hebben" }
5869
+ string: { unit: "tekens", verb: "heeft" },
5870
+ file: { unit: "bytes", verb: "heeft" },
5871
+ array: { unit: "elementen", verb: "heeft" },
5872
+ set: { unit: "elementen", verb: "heeft" }
5946
5873
  };
5947
5874
  function getSizing(origin) {
5948
5875
  return Sizable[origin] ?? null;
5949
5876
  }
5950
- const parsedType8 = (data) => {
5951
- const t = typeof data;
5952
- switch (t) {
5953
- case "number": {
5954
- return Number.isNaN(data) ? "NaN" : "getal";
5955
- }
5956
- case "object": {
5957
- if (Array.isArray(data)) {
5958
- return "array";
5959
- }
5960
- if (data === null) {
5961
- return "null";
5962
- }
5963
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5964
- return data.constructor.name;
5965
- }
5966
- }
5967
- }
5968
- return t;
5969
- };
5970
- const Nouns = {
5877
+ const FormatDictionary = {
5971
5878
  regex: "invoer",
5972
5879
  email: "emailadres",
5973
5880
  url: "URL",
@@ -5997,10 +5904,21 @@
5997
5904
  jwt: "JWT",
5998
5905
  template_literal: "invoer"
5999
5906
  };
5907
+ const TypeDictionary = {
5908
+ nan: "NaN",
5909
+ number: "getal"
5910
+ };
6000
5911
  return (issue2) => {
6001
5912
  switch (issue2.code) {
6002
- case "invalid_type":
6003
- return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType8(issue2.input)}`;
5913
+ case "invalid_type": {
5914
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
5915
+ const receivedType = parsedType(issue2.input);
5916
+ const received = TypeDictionary[receivedType] ?? receivedType;
5917
+ if (/^[A-Z]/.test(issue2.expected)) {
5918
+ return `Ongeldige invoer: verwacht instanceof ${issue2.expected}, ontving ${received}`;
5919
+ }
5920
+ return `Ongeldige invoer: verwacht ${expected}, ontving ${received}`;
5921
+ }
6004
5922
  case "invalid_value":
6005
5923
  if (issue2.values.length === 1)
6006
5924
  return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;
@@ -6008,17 +5926,19 @@
6008
5926
  case "too_big": {
6009
5927
  const adj = issue2.inclusive ? "<=" : "<";
6010
5928
  const sizing = getSizing(issue2.origin);
5929
+ const longName = issue2.origin === "date" ? "laat" : issue2.origin === "string" ? "lang" : "groot";
6011
5930
  if (sizing)
6012
- return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"}`;
6013
- return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
5931
+ return `Te ${longName}: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"} ${sizing.verb}`;
5932
+ return `Te ${longName}: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
6014
5933
  }
6015
5934
  case "too_small": {
6016
5935
  const adj = issue2.inclusive ? ">=" : ">";
6017
5936
  const sizing = getSizing(issue2.origin);
5937
+ const shortName = issue2.origin === "date" ? "vroeg" : issue2.origin === "string" ? "kort" : "klein";
6018
5938
  if (sizing) {
6019
- return `Te klein: verwacht dat ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5939
+ return `Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
6020
5940
  }
6021
- return `Te klein: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
5941
+ return `Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
6022
5942
  }
6023
5943
  case "invalid_format": {
6024
5944
  const _issue = issue2;
@@ -6031,7 +5951,7 @@
6031
5951
  return `Ongeldige tekst: moet "${_issue.includes}" bevatten`;
6032
5952
  if (_issue.format === "regex")
6033
5953
  return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`;
6034
- return `Ongeldig: ${Nouns[_issue.format] ?? issue2.format}`;
5954
+ return `Ongeldig: ${FormatDictionary[_issue.format] ?? issue2.format}`;
6035
5955
  }
6036
5956
  case "not_multiple_of":
6037
5957
  return `Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`;
@@ -6050,12 +5970,12 @@
6050
5970
  };
6051
5971
  function nl_default() {
6052
5972
  return {
6053
- localeError: error28()
5973
+ localeError: error29()
6054
5974
  };
6055
5975
  }
6056
5976
 
6057
5977
  // ../../../../../../node_modules/zod/v4/locales/no.js
6058
- var error29 = () => {
5978
+ var error30 = () => {
6059
5979
  const Sizable = {
6060
5980
  string: { unit: "tegn", verb: "\xE5 ha" },
6061
5981
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -6065,27 +5985,7 @@
6065
5985
  function getSizing(origin) {
6066
5986
  return Sizable[origin] ?? null;
6067
5987
  }
6068
- const parsedType8 = (data) => {
6069
- const t = typeof data;
6070
- switch (t) {
6071
- case "number": {
6072
- return Number.isNaN(data) ? "NaN" : "tall";
6073
- }
6074
- case "object": {
6075
- if (Array.isArray(data)) {
6076
- return "liste";
6077
- }
6078
- if (data === null) {
6079
- return "null";
6080
- }
6081
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6082
- return data.constructor.name;
6083
- }
6084
- }
6085
- }
6086
- return t;
6087
- };
6088
- const Nouns = {
5988
+ const FormatDictionary = {
6089
5989
  regex: "input",
6090
5990
  email: "e-postadresse",
6091
5991
  url: "URL",
@@ -6115,10 +6015,22 @@
6115
6015
  jwt: "JWT",
6116
6016
  template_literal: "input"
6117
6017
  };
6018
+ const TypeDictionary = {
6019
+ nan: "NaN",
6020
+ number: "tall",
6021
+ array: "liste"
6022
+ };
6118
6023
  return (issue2) => {
6119
6024
  switch (issue2.code) {
6120
- case "invalid_type":
6121
- return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType8(issue2.input)}`;
6025
+ case "invalid_type": {
6026
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6027
+ const receivedType = parsedType(issue2.input);
6028
+ const received = TypeDictionary[receivedType] ?? receivedType;
6029
+ if (/^[A-Z]/.test(issue2.expected)) {
6030
+ return `Ugyldig input: forventet instanceof ${issue2.expected}, fikk ${received}`;
6031
+ }
6032
+ return `Ugyldig input: forventet ${expected}, fikk ${received}`;
6033
+ }
6122
6034
  case "invalid_value":
6123
6035
  if (issue2.values.length === 1)
6124
6036
  return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;
@@ -6148,7 +6060,7 @@
6148
6060
  return `Ugyldig streng: m\xE5 inneholde "${_issue.includes}"`;
6149
6061
  if (_issue.format === "regex")
6150
6062
  return `Ugyldig streng: m\xE5 matche m\xF8nsteret ${_issue.pattern}`;
6151
- return `Ugyldig ${Nouns[_issue.format] ?? issue2.format}`;
6063
+ return `Ugyldig ${FormatDictionary[_issue.format] ?? issue2.format}`;
6152
6064
  }
6153
6065
  case "not_multiple_of":
6154
6066
  return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${issue2.divisor}`;
@@ -6167,12 +6079,12 @@
6167
6079
  };
6168
6080
  function no_default() {
6169
6081
  return {
6170
- localeError: error29()
6082
+ localeError: error30()
6171
6083
  };
6172
6084
  }
6173
6085
 
6174
6086
  // ../../../../../../node_modules/zod/v4/locales/ota.js
6175
- var error30 = () => {
6087
+ var error31 = () => {
6176
6088
  const Sizable = {
6177
6089
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
6178
6090
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -6182,27 +6094,7 @@
6182
6094
  function getSizing(origin) {
6183
6095
  return Sizable[origin] ?? null;
6184
6096
  }
6185
- const parsedType8 = (data) => {
6186
- const t = typeof data;
6187
- switch (t) {
6188
- case "number": {
6189
- return Number.isNaN(data) ? "NaN" : "numara";
6190
- }
6191
- case "object": {
6192
- if (Array.isArray(data)) {
6193
- return "saf";
6194
- }
6195
- if (data === null) {
6196
- return "gayb";
6197
- }
6198
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6199
- return data.constructor.name;
6200
- }
6201
- }
6202
- }
6203
- return t;
6204
- };
6205
- const Nouns = {
6097
+ const FormatDictionary = {
6206
6098
  regex: "giren",
6207
6099
  email: "epostag\xE2h",
6208
6100
  url: "URL",
@@ -6232,11 +6124,23 @@
6232
6124
  jwt: "JWT",
6233
6125
  template_literal: "giren"
6234
6126
  };
6127
+ const TypeDictionary = {
6128
+ nan: "NaN",
6129
+ number: "numara",
6130
+ array: "saf",
6131
+ null: "gayb"
6132
+ };
6235
6133
  return (issue2) => {
6236
6134
  switch (issue2.code) {
6237
- case "invalid_type":
6238
- return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${parsedType8(issue2.input)}`;
6239
- // return `Fâsit giren: umulan ${issue.expected}, alınan ${util.getParsedType(issue.input)}`;
6135
+ case "invalid_type": {
6136
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6137
+ const receivedType = parsedType(issue2.input);
6138
+ const received = TypeDictionary[receivedType] ?? receivedType;
6139
+ if (/^[A-Z]/.test(issue2.expected)) {
6140
+ return `F\xE2sit giren: umulan instanceof ${issue2.expected}, al\u0131nan ${received}`;
6141
+ }
6142
+ return `F\xE2sit giren: umulan ${expected}, al\u0131nan ${received}`;
6143
+ }
6240
6144
  case "invalid_value":
6241
6145
  if (issue2.values.length === 1)
6242
6146
  return `F\xE2sit giren: umulan ${stringifyPrimitive(issue2.values[0])}`;
@@ -6266,7 +6170,7 @@
6266
6170
  return `F\xE2sit metin: "${_issue.includes}" ihtiv\xE2 etmeli.`;
6267
6171
  if (_issue.format === "regex")
6268
6172
  return `F\xE2sit metin: ${_issue.pattern} nak\u015F\u0131na uymal\u0131.`;
6269
- return `F\xE2sit ${Nouns[_issue.format] ?? issue2.format}`;
6173
+ return `F\xE2sit ${FormatDictionary[_issue.format] ?? issue2.format}`;
6270
6174
  }
6271
6175
  case "not_multiple_of":
6272
6176
  return `F\xE2sit say\u0131: ${issue2.divisor} kat\u0131 olmal\u0131yd\u0131.`;
@@ -6285,12 +6189,12 @@
6285
6189
  };
6286
6190
  function ota_default() {
6287
6191
  return {
6288
- localeError: error30()
6192
+ localeError: error31()
6289
6193
  };
6290
6194
  }
6291
6195
 
6292
6196
  // ../../../../../../node_modules/zod/v4/locales/ps.js
6293
- var error31 = () => {
6197
+ var error32 = () => {
6294
6198
  const Sizable = {
6295
6199
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
6296
6200
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -6300,27 +6204,7 @@
6300
6204
  function getSizing(origin) {
6301
6205
  return Sizable[origin] ?? null;
6302
6206
  }
6303
- const parsedType8 = (data) => {
6304
- const t = typeof data;
6305
- switch (t) {
6306
- case "number": {
6307
- return Number.isNaN(data) ? "NaN" : "\u0639\u062F\u062F";
6308
- }
6309
- case "object": {
6310
- if (Array.isArray(data)) {
6311
- return "\u0627\u0631\u06D0";
6312
- }
6313
- if (data === null) {
6314
- return "null";
6315
- }
6316
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6317
- return data.constructor.name;
6318
- }
6319
- }
6320
- }
6321
- return t;
6322
- };
6323
- const Nouns = {
6207
+ const FormatDictionary = {
6324
6208
  regex: "\u0648\u0631\u0648\u062F\u064A",
6325
6209
  email: "\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",
6326
6210
  url: "\u06CC\u0648 \u0622\u0631 \u0627\u0644",
@@ -6350,10 +6234,22 @@
6350
6234
  jwt: "JWT",
6351
6235
  template_literal: "\u0648\u0631\u0648\u062F\u064A"
6352
6236
  };
6237
+ const TypeDictionary = {
6238
+ nan: "NaN",
6239
+ number: "\u0639\u062F\u062F",
6240
+ array: "\u0627\u0631\u06D0"
6241
+ };
6353
6242
  return (issue2) => {
6354
6243
  switch (issue2.code) {
6355
- case "invalid_type":
6356
- return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${parsedType8(issue2.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
6244
+ case "invalid_type": {
6245
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6246
+ const receivedType = parsedType(issue2.input);
6247
+ const received = TypeDictionary[receivedType] ?? receivedType;
6248
+ if (/^[A-Z]/.test(issue2.expected)) {
6249
+ return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
6250
+ }
6251
+ return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
6252
+ }
6357
6253
  case "invalid_value":
6358
6254
  if (issue2.values.length === 1) {
6359
6255
  return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${stringifyPrimitive(issue2.values[0])} \u0648\u0627\u06CC`;
@@ -6389,7 +6285,7 @@
6389
6285
  if (_issue.format === "regex") {
6390
6286
  return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${_issue.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`;
6391
6287
  }
6392
- return `${Nouns[_issue.format] ?? issue2.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`;
6288
+ return `${FormatDictionary[_issue.format] ?? issue2.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`;
6393
6289
  }
6394
6290
  case "not_multiple_of":
6395
6291
  return `\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${issue2.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;
@@ -6408,12 +6304,12 @@
6408
6304
  };
6409
6305
  function ps_default() {
6410
6306
  return {
6411
- localeError: error31()
6307
+ localeError: error32()
6412
6308
  };
6413
6309
  }
6414
6310
 
6415
6311
  // ../../../../../../node_modules/zod/v4/locales/pl.js
6416
- var error32 = () => {
6312
+ var error33 = () => {
6417
6313
  const Sizable = {
6418
6314
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
6419
6315
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -6423,27 +6319,7 @@
6423
6319
  function getSizing(origin) {
6424
6320
  return Sizable[origin] ?? null;
6425
6321
  }
6426
- const parsedType8 = (data) => {
6427
- const t = typeof data;
6428
- switch (t) {
6429
- case "number": {
6430
- return Number.isNaN(data) ? "NaN" : "liczba";
6431
- }
6432
- case "object": {
6433
- if (Array.isArray(data)) {
6434
- return "tablica";
6435
- }
6436
- if (data === null) {
6437
- return "null";
6438
- }
6439
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6440
- return data.constructor.name;
6441
- }
6442
- }
6443
- }
6444
- return t;
6445
- };
6446
- const Nouns = {
6322
+ const FormatDictionary = {
6447
6323
  regex: "wyra\u017Cenie",
6448
6324
  email: "adres email",
6449
6325
  url: "URL",
@@ -6473,10 +6349,22 @@
6473
6349
  jwt: "JWT",
6474
6350
  template_literal: "wej\u015Bcie"
6475
6351
  };
6352
+ const TypeDictionary = {
6353
+ nan: "NaN",
6354
+ number: "liczba",
6355
+ array: "tablica"
6356
+ };
6476
6357
  return (issue2) => {
6477
6358
  switch (issue2.code) {
6478
- case "invalid_type":
6479
- return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType8(issue2.input)}`;
6359
+ case "invalid_type": {
6360
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6361
+ const receivedType = parsedType(issue2.input);
6362
+ const received = TypeDictionary[receivedType] ?? receivedType;
6363
+ if (/^[A-Z]/.test(issue2.expected)) {
6364
+ return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${issue2.expected}, otrzymano ${received}`;
6365
+ }
6366
+ return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${expected}, otrzymano ${received}`;
6367
+ }
6480
6368
  case "invalid_value":
6481
6369
  if (issue2.values.length === 1)
6482
6370
  return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;
@@ -6507,7 +6395,7 @@
6507
6395
  return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${_issue.includes}"`;
6508
6396
  if (_issue.format === "regex")
6509
6397
  return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${_issue.pattern}`;
6510
- return `Nieprawid\u0142ow(y/a/e) ${Nouns[_issue.format] ?? issue2.format}`;
6398
+ return `Nieprawid\u0142ow(y/a/e) ${FormatDictionary[_issue.format] ?? issue2.format}`;
6511
6399
  }
6512
6400
  case "not_multiple_of":
6513
6401
  return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`;
@@ -6526,12 +6414,12 @@
6526
6414
  };
6527
6415
  function pl_default() {
6528
6416
  return {
6529
- localeError: error32()
6417
+ localeError: error33()
6530
6418
  };
6531
6419
  }
6532
6420
 
6533
6421
  // ../../../../../../node_modules/zod/v4/locales/pt.js
6534
- var error33 = () => {
6422
+ var error34 = () => {
6535
6423
  const Sizable = {
6536
6424
  string: { unit: "caracteres", verb: "ter" },
6537
6425
  file: { unit: "bytes", verb: "ter" },
@@ -6541,27 +6429,7 @@
6541
6429
  function getSizing(origin) {
6542
6430
  return Sizable[origin] ?? null;
6543
6431
  }
6544
- const parsedType8 = (data) => {
6545
- const t = typeof data;
6546
- switch (t) {
6547
- case "number": {
6548
- return Number.isNaN(data) ? "NaN" : "n\xFAmero";
6549
- }
6550
- case "object": {
6551
- if (Array.isArray(data)) {
6552
- return "array";
6553
- }
6554
- if (data === null) {
6555
- return "nulo";
6556
- }
6557
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6558
- return data.constructor.name;
6559
- }
6560
- }
6561
- }
6562
- return t;
6563
- };
6564
- const Nouns = {
6432
+ const FormatDictionary = {
6565
6433
  regex: "padr\xE3o",
6566
6434
  email: "endere\xE7o de e-mail",
6567
6435
  url: "URL",
@@ -6591,10 +6459,22 @@
6591
6459
  jwt: "JWT",
6592
6460
  template_literal: "entrada"
6593
6461
  };
6462
+ const TypeDictionary = {
6463
+ nan: "NaN",
6464
+ number: "n\xFAmero",
6465
+ null: "nulo"
6466
+ };
6594
6467
  return (issue2) => {
6595
6468
  switch (issue2.code) {
6596
- case "invalid_type":
6597
- return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${parsedType8(issue2.input)}`;
6469
+ case "invalid_type": {
6470
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6471
+ const receivedType = parsedType(issue2.input);
6472
+ const received = TypeDictionary[receivedType] ?? receivedType;
6473
+ if (/^[A-Z]/.test(issue2.expected)) {
6474
+ return `Tipo inv\xE1lido: esperado instanceof ${issue2.expected}, recebido ${received}`;
6475
+ }
6476
+ return `Tipo inv\xE1lido: esperado ${expected}, recebido ${received}`;
6477
+ }
6598
6478
  case "invalid_value":
6599
6479
  if (issue2.values.length === 1)
6600
6480
  return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
@@ -6624,7 +6504,7 @@
6624
6504
  return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`;
6625
6505
  if (_issue.format === "regex")
6626
6506
  return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`;
6627
- return `${Nouns[_issue.format] ?? issue2.format} inv\xE1lido`;
6507
+ return `${FormatDictionary[_issue.format] ?? issue2.format} inv\xE1lido`;
6628
6508
  }
6629
6509
  case "not_multiple_of":
6630
6510
  return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`;
@@ -6643,7 +6523,7 @@
6643
6523
  };
6644
6524
  function pt_default() {
6645
6525
  return {
6646
- localeError: error33()
6526
+ localeError: error34()
6647
6527
  };
6648
6528
  }
6649
6529
 
@@ -6663,7 +6543,7 @@
6663
6543
  }
6664
6544
  return many;
6665
6545
  }
6666
- var error34 = () => {
6546
+ var error35 = () => {
6667
6547
  const Sizable = {
6668
6548
  string: {
6669
6549
  unit: {
@@ -6701,27 +6581,7 @@
6701
6581
  function getSizing(origin) {
6702
6582
  return Sizable[origin] ?? null;
6703
6583
  }
6704
- const parsedType8 = (data) => {
6705
- const t = typeof data;
6706
- switch (t) {
6707
- case "number": {
6708
- return Number.isNaN(data) ? "NaN" : "\u0447\u0438\u0441\u043B\u043E";
6709
- }
6710
- case "object": {
6711
- if (Array.isArray(data)) {
6712
- return "\u043C\u0430\u0441\u0441\u0438\u0432";
6713
- }
6714
- if (data === null) {
6715
- return "null";
6716
- }
6717
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6718
- return data.constructor.name;
6719
- }
6720
- }
6721
- }
6722
- return t;
6723
- };
6724
- const Nouns = {
6584
+ const FormatDictionary = {
6725
6585
  regex: "\u0432\u0432\u043E\u0434",
6726
6586
  email: "email \u0430\u0434\u0440\u0435\u0441",
6727
6587
  url: "URL",
@@ -6751,10 +6611,22 @@
6751
6611
  jwt: "JWT",
6752
6612
  template_literal: "\u0432\u0432\u043E\u0434"
6753
6613
  };
6614
+ const TypeDictionary = {
6615
+ nan: "NaN",
6616
+ number: "\u0447\u0438\u0441\u043B\u043E",
6617
+ array: "\u043C\u0430\u0441\u0441\u0438\u0432"
6618
+ };
6754
6619
  return (issue2) => {
6755
6620
  switch (issue2.code) {
6756
- case "invalid_type":
6757
- return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${parsedType8(issue2.input)}`;
6621
+ case "invalid_type": {
6622
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6623
+ const receivedType = parsedType(issue2.input);
6624
+ const received = TypeDictionary[receivedType] ?? receivedType;
6625
+ if (/^[A-Z]/.test(issue2.expected)) {
6626
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`;
6627
+ }
6628
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`;
6629
+ }
6758
6630
  case "invalid_value":
6759
6631
  if (issue2.values.length === 1)
6760
6632
  return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${stringifyPrimitive(issue2.values[0])}`;
@@ -6789,7 +6661,7 @@
6789
6661
  return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${_issue.includes}"`;
6790
6662
  if (_issue.format === "regex")
6791
6663
  return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
6792
- return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${Nouns[_issue.format] ?? issue2.format}`;
6664
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${FormatDictionary[_issue.format] ?? issue2.format}`;
6793
6665
  }
6794
6666
  case "not_multiple_of":
6795
6667
  return `\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`;
@@ -6808,12 +6680,12 @@
6808
6680
  };
6809
6681
  function ru_default() {
6810
6682
  return {
6811
- localeError: error34()
6683
+ localeError: error35()
6812
6684
  };
6813
6685
  }
6814
6686
 
6815
6687
  // ../../../../../../node_modules/zod/v4/locales/sl.js
6816
- var error35 = () => {
6688
+ var error36 = () => {
6817
6689
  const Sizable = {
6818
6690
  string: { unit: "znakov", verb: "imeti" },
6819
6691
  file: { unit: "bajtov", verb: "imeti" },
@@ -6823,27 +6695,7 @@
6823
6695
  function getSizing(origin) {
6824
6696
  return Sizable[origin] ?? null;
6825
6697
  }
6826
- const parsedType8 = (data) => {
6827
- const t = typeof data;
6828
- switch (t) {
6829
- case "number": {
6830
- return Number.isNaN(data) ? "NaN" : "\u0161tevilo";
6831
- }
6832
- case "object": {
6833
- if (Array.isArray(data)) {
6834
- return "tabela";
6835
- }
6836
- if (data === null) {
6837
- return "null";
6838
- }
6839
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6840
- return data.constructor.name;
6841
- }
6842
- }
6843
- }
6844
- return t;
6845
- };
6846
- const Nouns = {
6698
+ const FormatDictionary = {
6847
6699
  regex: "vnos",
6848
6700
  email: "e-po\u0161tni naslov",
6849
6701
  url: "URL",
@@ -6873,10 +6725,22 @@
6873
6725
  jwt: "JWT",
6874
6726
  template_literal: "vnos"
6875
6727
  };
6728
+ const TypeDictionary = {
6729
+ nan: "NaN",
6730
+ number: "\u0161tevilo",
6731
+ array: "tabela"
6732
+ };
6876
6733
  return (issue2) => {
6877
6734
  switch (issue2.code) {
6878
- case "invalid_type":
6879
- return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${parsedType8(issue2.input)}`;
6735
+ case "invalid_type": {
6736
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6737
+ const receivedType = parsedType(issue2.input);
6738
+ const received = TypeDictionary[receivedType] ?? receivedType;
6739
+ if (/^[A-Z]/.test(issue2.expected)) {
6740
+ return `Neveljaven vnos: pri\u010Dakovano instanceof ${issue2.expected}, prejeto ${received}`;
6741
+ }
6742
+ return `Neveljaven vnos: pri\u010Dakovano ${expected}, prejeto ${received}`;
6743
+ }
6880
6744
  case "invalid_value":
6881
6745
  if (issue2.values.length === 1)
6882
6746
  return `Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`;
@@ -6907,7 +6771,7 @@
6907
6771
  return `Neveljaven niz: mora vsebovati "${_issue.includes}"`;
6908
6772
  if (_issue.format === "regex")
6909
6773
  return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`;
6910
- return `Neveljaven ${Nouns[_issue.format] ?? issue2.format}`;
6774
+ return `Neveljaven ${FormatDictionary[_issue.format] ?? issue2.format}`;
6911
6775
  }
6912
6776
  case "not_multiple_of":
6913
6777
  return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${issue2.divisor}`;
@@ -6926,12 +6790,12 @@
6926
6790
  };
6927
6791
  function sl_default() {
6928
6792
  return {
6929
- localeError: error35()
6793
+ localeError: error36()
6930
6794
  };
6931
6795
  }
6932
6796
 
6933
6797
  // ../../../../../../node_modules/zod/v4/locales/sv.js
6934
- var error36 = () => {
6798
+ var error37 = () => {
6935
6799
  const Sizable = {
6936
6800
  string: { unit: "tecken", verb: "att ha" },
6937
6801
  file: { unit: "bytes", verb: "att ha" },
@@ -6941,27 +6805,7 @@
6941
6805
  function getSizing(origin) {
6942
6806
  return Sizable[origin] ?? null;
6943
6807
  }
6944
- const parsedType8 = (data) => {
6945
- const t = typeof data;
6946
- switch (t) {
6947
- case "number": {
6948
- return Number.isNaN(data) ? "NaN" : "antal";
6949
- }
6950
- case "object": {
6951
- if (Array.isArray(data)) {
6952
- return "lista";
6953
- }
6954
- if (data === null) {
6955
- return "null";
6956
- }
6957
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
6958
- return data.constructor.name;
6959
- }
6960
- }
6961
- }
6962
- return t;
6963
- };
6964
- const Nouns = {
6808
+ const FormatDictionary = {
6965
6809
  regex: "regulj\xE4rt uttryck",
6966
6810
  email: "e-postadress",
6967
6811
  url: "URL",
@@ -6991,10 +6835,22 @@
6991
6835
  jwt: "JWT",
6992
6836
  template_literal: "mall-literal"
6993
6837
  };
6838
+ const TypeDictionary = {
6839
+ nan: "NaN",
6840
+ number: "antal",
6841
+ array: "lista"
6842
+ };
6994
6843
  return (issue2) => {
6995
6844
  switch (issue2.code) {
6996
- case "invalid_type":
6997
- return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${parsedType8(issue2.input)}`;
6845
+ case "invalid_type": {
6846
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6847
+ const receivedType = parsedType(issue2.input);
6848
+ const received = TypeDictionary[receivedType] ?? receivedType;
6849
+ if (/^[A-Z]/.test(issue2.expected)) {
6850
+ return `Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${issue2.expected}, fick ${received}`;
6851
+ }
6852
+ return `Ogiltig inmatning: f\xF6rv\xE4ntat ${expected}, fick ${received}`;
6853
+ }
6998
6854
  case "invalid_value":
6999
6855
  if (issue2.values.length === 1)
7000
6856
  return `Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`;
@@ -7026,7 +6882,7 @@
7026
6882
  return `Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${_issue.includes}"`;
7027
6883
  if (_issue.format === "regex")
7028
6884
  return `Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${_issue.pattern}"`;
7029
- return `Ogiltig(t) ${Nouns[_issue.format] ?? issue2.format}`;
6885
+ return `Ogiltig(t) ${FormatDictionary[_issue.format] ?? issue2.format}`;
7030
6886
  }
7031
6887
  case "not_multiple_of":
7032
6888
  return `Ogiltigt tal: m\xE5ste vara en multipel av ${issue2.divisor}`;
@@ -7045,12 +6901,12 @@
7045
6901
  };
7046
6902
  function sv_default() {
7047
6903
  return {
7048
- localeError: error36()
6904
+ localeError: error37()
7049
6905
  };
7050
6906
  }
7051
6907
 
7052
6908
  // ../../../../../../node_modules/zod/v4/locales/ta.js
7053
- var error37 = () => {
6909
+ var error38 = () => {
7054
6910
  const Sizable = {
7055
6911
  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" },
7056
6912
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -7060,27 +6916,7 @@
7060
6916
  function getSizing(origin) {
7061
6917
  return Sizable[origin] ?? null;
7062
6918
  }
7063
- const parsedType8 = (data) => {
7064
- const t = typeof data;
7065
- switch (t) {
7066
- case "number": {
7067
- return Number.isNaN(data) ? "\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1" : "\u0B8E\u0BA3\u0BCD";
7068
- }
7069
- case "object": {
7070
- if (Array.isArray(data)) {
7071
- return "\u0B85\u0BA3\u0BBF";
7072
- }
7073
- if (data === null) {
7074
- return "\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";
7075
- }
7076
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7077
- return data.constructor.name;
7078
- }
7079
- }
7080
- }
7081
- return t;
7082
- };
7083
- const Nouns = {
6919
+ const FormatDictionary = {
7084
6920
  regex: "\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",
7085
6921
  email: "\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",
7086
6922
  url: "URL",
@@ -7110,10 +6946,23 @@
7110
6946
  jwt: "JWT",
7111
6947
  template_literal: "input"
7112
6948
  };
6949
+ const TypeDictionary = {
6950
+ nan: "NaN",
6951
+ number: "\u0B8E\u0BA3\u0BCD",
6952
+ array: "\u0B85\u0BA3\u0BBF",
6953
+ null: "\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"
6954
+ };
7113
6955
  return (issue2) => {
7114
6956
  switch (issue2.code) {
7115
- case "invalid_type":
7116
- return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${parsedType8(issue2.input)}`;
6957
+ case "invalid_type": {
6958
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
6959
+ const receivedType = parsedType(issue2.input);
6960
+ const received = TypeDictionary[receivedType] ?? receivedType;
6961
+ if (/^[A-Z]/.test(issue2.expected)) {
6962
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`;
6963
+ }
6964
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`;
6965
+ }
7117
6966
  case "invalid_value":
7118
6967
  if (issue2.values.length === 1)
7119
6968
  return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${stringifyPrimitive(issue2.values[0])}`;
@@ -7144,7 +6993,7 @@
7144
6993
  return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
7145
6994
  if (_issue.format === "regex")
7146
6995
  return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${_issue.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
7147
- return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${Nouns[_issue.format] ?? issue2.format}`;
6996
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7148
6997
  }
7149
6998
  case "not_multiple_of":
7150
6999
  return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${issue2.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
@@ -7163,12 +7012,12 @@
7163
7012
  };
7164
7013
  function ta_default() {
7165
7014
  return {
7166
- localeError: error37()
7015
+ localeError: error38()
7167
7016
  };
7168
7017
  }
7169
7018
 
7170
7019
  // ../../../../../../node_modules/zod/v4/locales/th.js
7171
- var error38 = () => {
7020
+ var error39 = () => {
7172
7021
  const Sizable = {
7173
7022
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
7174
7023
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -7178,27 +7027,7 @@
7178
7027
  function getSizing(origin) {
7179
7028
  return Sizable[origin] ?? null;
7180
7029
  }
7181
- const parsedType8 = (data) => {
7182
- const t = typeof data;
7183
- switch (t) {
7184
- case "number": {
7185
- return Number.isNaN(data) ? "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)" : "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";
7186
- }
7187
- case "object": {
7188
- if (Array.isArray(data)) {
7189
- return "\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";
7190
- }
7191
- if (data === null) {
7192
- return "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";
7193
- }
7194
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7195
- return data.constructor.name;
7196
- }
7197
- }
7198
- }
7199
- return t;
7200
- };
7201
- const Nouns = {
7030
+ const FormatDictionary = {
7202
7031
  regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",
7203
7032
  email: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",
7204
7033
  url: "URL",
@@ -7228,10 +7057,23 @@
7228
7057
  jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
7229
7058
  template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
7230
7059
  };
7060
+ const TypeDictionary = {
7061
+ nan: "NaN",
7062
+ number: "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",
7063
+ array: "\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",
7064
+ null: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"
7065
+ };
7231
7066
  return (issue2) => {
7232
7067
  switch (issue2.code) {
7233
- case "invalid_type":
7234
- return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${parsedType8(issue2.input)}`;
7068
+ case "invalid_type": {
7069
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7070
+ const receivedType = parsedType(issue2.input);
7071
+ const received = TypeDictionary[receivedType] ?? receivedType;
7072
+ if (/^[A-Z]/.test(issue2.expected)) {
7073
+ return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`;
7074
+ }
7075
+ return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`;
7076
+ }
7235
7077
  case "invalid_value":
7236
7078
  if (issue2.values.length === 1)
7237
7079
  return `\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${stringifyPrimitive(issue2.values[0])}`;
@@ -7262,7 +7104,7 @@
7262
7104
  return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${_issue.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`;
7263
7105
  if (_issue.format === "regex")
7264
7106
  return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${_issue.pattern}`;
7265
- return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${Nouns[_issue.format] ?? issue2.format}`;
7107
+ return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${FormatDictionary[_issue.format] ?? issue2.format}`;
7266
7108
  }
7267
7109
  case "not_multiple_of":
7268
7110
  return `\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${issue2.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;
@@ -7281,32 +7123,12 @@
7281
7123
  };
7282
7124
  function th_default() {
7283
7125
  return {
7284
- localeError: error38()
7285
- };
7286
- }
7287
-
7288
- // ../../../../../../node_modules/zod/v4/locales/tr.js
7289
- var parsedType7 = (data) => {
7290
- const t = typeof data;
7291
- switch (t) {
7292
- case "number": {
7293
- return Number.isNaN(data) ? "NaN" : "number";
7294
- }
7295
- case "object": {
7296
- if (Array.isArray(data)) {
7297
- return "array";
7298
- }
7299
- if (data === null) {
7300
- return "null";
7301
- }
7302
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7303
- return data.constructor.name;
7304
- }
7305
- }
7306
- }
7307
- return t;
7308
- };
7309
- var error39 = () => {
7126
+ localeError: error39()
7127
+ };
7128
+ }
7129
+
7130
+ // ../../../../../../node_modules/zod/v4/locales/tr.js
7131
+ var error40 = () => {
7310
7132
  const Sizable = {
7311
7133
  string: { unit: "karakter", verb: "olmal\u0131" },
7312
7134
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -7316,7 +7138,7 @@
7316
7138
  function getSizing(origin) {
7317
7139
  return Sizable[origin] ?? null;
7318
7140
  }
7319
- const Nouns = {
7141
+ const FormatDictionary = {
7320
7142
  regex: "girdi",
7321
7143
  email: "e-posta adresi",
7322
7144
  url: "URL",
@@ -7346,10 +7168,20 @@
7346
7168
  jwt: "JWT",
7347
7169
  template_literal: "\u015Eablon dizesi"
7348
7170
  };
7171
+ const TypeDictionary = {
7172
+ nan: "NaN"
7173
+ };
7349
7174
  return (issue2) => {
7350
7175
  switch (issue2.code) {
7351
- case "invalid_type":
7352
- return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${parsedType7(issue2.input)}`;
7176
+ case "invalid_type": {
7177
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7178
+ const receivedType = parsedType(issue2.input);
7179
+ const received = TypeDictionary[receivedType] ?? receivedType;
7180
+ if (/^[A-Z]/.test(issue2.expected)) {
7181
+ return `Ge\xE7ersiz de\u011Fer: beklenen instanceof ${issue2.expected}, al\u0131nan ${received}`;
7182
+ }
7183
+ return `Ge\xE7ersiz de\u011Fer: beklenen ${expected}, al\u0131nan ${received}`;
7184
+ }
7353
7185
  case "invalid_value":
7354
7186
  if (issue2.values.length === 1)
7355
7187
  return `Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`;
@@ -7378,7 +7210,7 @@
7378
7210
  return `Ge\xE7ersiz metin: "${_issue.includes}" i\xE7ermeli`;
7379
7211
  if (_issue.format === "regex")
7380
7212
  return `Ge\xE7ersiz metin: ${_issue.pattern} desenine uymal\u0131`;
7381
- return `Ge\xE7ersiz ${Nouns[_issue.format] ?? issue2.format}`;
7213
+ return `Ge\xE7ersiz ${FormatDictionary[_issue.format] ?? issue2.format}`;
7382
7214
  }
7383
7215
  case "not_multiple_of":
7384
7216
  return `Ge\xE7ersiz say\u0131: ${issue2.divisor} ile tam b\xF6l\xFCnebilmeli`;
@@ -7397,12 +7229,12 @@
7397
7229
  };
7398
7230
  function tr_default() {
7399
7231
  return {
7400
- localeError: error39()
7232
+ localeError: error40()
7401
7233
  };
7402
7234
  }
7403
7235
 
7404
7236
  // ../../../../../../node_modules/zod/v4/locales/uk.js
7405
- var error40 = () => {
7237
+ var error41 = () => {
7406
7238
  const Sizable = {
7407
7239
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
7408
7240
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -7412,27 +7244,7 @@
7412
7244
  function getSizing(origin) {
7413
7245
  return Sizable[origin] ?? null;
7414
7246
  }
7415
- const parsedType8 = (data) => {
7416
- const t = typeof data;
7417
- switch (t) {
7418
- case "number": {
7419
- return Number.isNaN(data) ? "NaN" : "\u0447\u0438\u0441\u043B\u043E";
7420
- }
7421
- case "object": {
7422
- if (Array.isArray(data)) {
7423
- return "\u043C\u0430\u0441\u0438\u0432";
7424
- }
7425
- if (data === null) {
7426
- return "null";
7427
- }
7428
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7429
- return data.constructor.name;
7430
- }
7431
- }
7432
- }
7433
- return t;
7434
- };
7435
- const Nouns = {
7247
+ const FormatDictionary = {
7436
7248
  regex: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",
7437
7249
  email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",
7438
7250
  url: "URL",
@@ -7462,11 +7274,22 @@
7462
7274
  jwt: "JWT",
7463
7275
  template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"
7464
7276
  };
7277
+ const TypeDictionary = {
7278
+ nan: "NaN",
7279
+ number: "\u0447\u0438\u0441\u043B\u043E",
7280
+ array: "\u043C\u0430\u0441\u0438\u0432"
7281
+ };
7465
7282
  return (issue2) => {
7466
7283
  switch (issue2.code) {
7467
- case "invalid_type":
7468
- return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${parsedType8(issue2.input)}`;
7469
- // return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${util.getParsedType(issue.input)}`;
7284
+ case "invalid_type": {
7285
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7286
+ const receivedType = parsedType(issue2.input);
7287
+ const received = TypeDictionary[receivedType] ?? receivedType;
7288
+ if (/^[A-Z]/.test(issue2.expected)) {
7289
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`;
7290
+ }
7291
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`;
7292
+ }
7470
7293
  case "invalid_value":
7471
7294
  if (issue2.values.length === 1)
7472
7295
  return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`;
@@ -7496,7 +7319,7 @@
7496
7319
  return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${_issue.includes}"`;
7497
7320
  if (_issue.format === "regex")
7498
7321
  return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
7499
- return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${Nouns[_issue.format] ?? issue2.format}`;
7322
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7500
7323
  }
7501
7324
  case "not_multiple_of":
7502
7325
  return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${issue2.divisor}`;
@@ -7515,7 +7338,7 @@
7515
7338
  };
7516
7339
  function uk_default() {
7517
7340
  return {
7518
- localeError: error40()
7341
+ localeError: error41()
7519
7342
  };
7520
7343
  }
7521
7344
 
@@ -7525,7 +7348,7 @@
7525
7348
  }
7526
7349
 
7527
7350
  // ../../../../../../node_modules/zod/v4/locales/ur.js
7528
- var error41 = () => {
7351
+ var error42 = () => {
7529
7352
  const Sizable = {
7530
7353
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
7531
7354
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -7535,27 +7358,7 @@
7535
7358
  function getSizing(origin) {
7536
7359
  return Sizable[origin] ?? null;
7537
7360
  }
7538
- const parsedType8 = (data) => {
7539
- const t = typeof data;
7540
- switch (t) {
7541
- case "number": {
7542
- return Number.isNaN(data) ? "NaN" : "\u0646\u0645\u0628\u0631";
7543
- }
7544
- case "object": {
7545
- if (Array.isArray(data)) {
7546
- return "\u0622\u0631\u06D2";
7547
- }
7548
- if (data === null) {
7549
- return "\u0646\u0644";
7550
- }
7551
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7552
- return data.constructor.name;
7553
- }
7554
- }
7555
- }
7556
- return t;
7557
- };
7558
- const Nouns = {
7361
+ const FormatDictionary = {
7559
7362
  regex: "\u0627\u0646 \u067E\u0679",
7560
7363
  email: "\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",
7561
7364
  url: "\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",
@@ -7585,10 +7388,23 @@
7585
7388
  jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",
7586
7389
  template_literal: "\u0627\u0646 \u067E\u0679"
7587
7390
  };
7391
+ const TypeDictionary = {
7392
+ nan: "NaN",
7393
+ number: "\u0646\u0645\u0628\u0631",
7394
+ array: "\u0622\u0631\u06D2",
7395
+ null: "\u0646\u0644"
7396
+ };
7588
7397
  return (issue2) => {
7589
7398
  switch (issue2.code) {
7590
- case "invalid_type":
7591
- return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${parsedType8(issue2.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
7399
+ case "invalid_type": {
7400
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7401
+ const receivedType = parsedType(issue2.input);
7402
+ const received = TypeDictionary[receivedType] ?? receivedType;
7403
+ if (/^[A-Z]/.test(issue2.expected)) {
7404
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
7405
+ }
7406
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
7407
+ }
7592
7408
  case "invalid_value":
7593
7409
  if (issue2.values.length === 1)
7594
7410
  return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
@@ -7619,7 +7435,7 @@
7619
7435
  return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
7620
7436
  if (_issue.format === "regex")
7621
7437
  return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${_issue.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
7622
- return `\u063A\u0644\u0637 ${Nouns[_issue.format] ?? issue2.format}`;
7438
+ return `\u063A\u0644\u0637 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7623
7439
  }
7624
7440
  case "not_multiple_of":
7625
7441
  return `\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${issue2.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
@@ -7638,42 +7454,132 @@
7638
7454
  };
7639
7455
  function ur_default() {
7640
7456
  return {
7641
- localeError: error41()
7457
+ localeError: error42()
7642
7458
  };
7643
7459
  }
7644
7460
 
7645
- // ../../../../../../node_modules/zod/v4/locales/vi.js
7646
- var error42 = () => {
7461
+ // ../../../../../../node_modules/zod/v4/locales/uz.js
7462
+ var error43 = () => {
7647
7463
  const Sizable = {
7648
- string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
7649
- file: { unit: "byte", verb: "c\xF3" },
7650
- array: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" },
7651
- set: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }
7464
+ string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
7465
+ file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
7466
+ array: { unit: "element", verb: "bo\u2018lishi kerak" },
7467
+ set: { unit: "element", verb: "bo\u2018lishi kerak" }
7652
7468
  };
7653
7469
  function getSizing(origin) {
7654
7470
  return Sizable[origin] ?? null;
7655
7471
  }
7656
- const parsedType8 = (data) => {
7657
- const t = typeof data;
7658
- switch (t) {
7659
- case "number": {
7660
- return Number.isNaN(data) ? "NaN" : "s\u1ED1";
7661
- }
7662
- case "object": {
7663
- if (Array.isArray(data)) {
7664
- return "m\u1EA3ng";
7665
- }
7666
- if (data === null) {
7667
- return "null";
7472
+ const FormatDictionary = {
7473
+ regex: "kirish",
7474
+ email: "elektron pochta manzili",
7475
+ url: "URL",
7476
+ emoji: "emoji",
7477
+ uuid: "UUID",
7478
+ uuidv4: "UUIDv4",
7479
+ uuidv6: "UUIDv6",
7480
+ nanoid: "nanoid",
7481
+ guid: "GUID",
7482
+ cuid: "cuid",
7483
+ cuid2: "cuid2",
7484
+ ulid: "ULID",
7485
+ xid: "XID",
7486
+ ksuid: "KSUID",
7487
+ datetime: "ISO sana va vaqti",
7488
+ date: "ISO sana",
7489
+ time: "ISO vaqt",
7490
+ duration: "ISO davomiylik",
7491
+ ipv4: "IPv4 manzil",
7492
+ ipv6: "IPv6 manzil",
7493
+ mac: "MAC manzil",
7494
+ cidrv4: "IPv4 diapazon",
7495
+ cidrv6: "IPv6 diapazon",
7496
+ base64: "base64 kodlangan satr",
7497
+ base64url: "base64url kodlangan satr",
7498
+ json_string: "JSON satr",
7499
+ e164: "E.164 raqam",
7500
+ jwt: "JWT",
7501
+ template_literal: "kirish"
7502
+ };
7503
+ const TypeDictionary = {
7504
+ nan: "NaN",
7505
+ number: "raqam",
7506
+ array: "massiv"
7507
+ };
7508
+ return (issue2) => {
7509
+ switch (issue2.code) {
7510
+ case "invalid_type": {
7511
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7512
+ const receivedType = parsedType(issue2.input);
7513
+ const received = TypeDictionary[receivedType] ?? receivedType;
7514
+ if (/^[A-Z]/.test(issue2.expected)) {
7515
+ return `Noto\u2018g\u2018ri kirish: kutilgan instanceof ${issue2.expected}, qabul qilingan ${received}`;
7668
7516
  }
7669
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7670
- return data.constructor.name;
7517
+ return `Noto\u2018g\u2018ri kirish: kutilgan ${expected}, qabul qilingan ${received}`;
7518
+ }
7519
+ case "invalid_value":
7520
+ if (issue2.values.length === 1)
7521
+ return `Noto\u2018g\u2018ri kirish: kutilgan ${stringifyPrimitive(issue2.values[0])}`;
7522
+ return `Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${joinValues(issue2.values, "|")}`;
7523
+ case "too_big": {
7524
+ const adj = issue2.inclusive ? "<=" : "<";
7525
+ const sizing = getSizing(issue2.origin);
7526
+ if (sizing)
7527
+ return `Juda katta: kutilgan ${issue2.origin ?? "qiymat"} ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
7528
+ return `Juda katta: kutilgan ${issue2.origin ?? "qiymat"} ${adj}${issue2.maximum.toString()}`;
7529
+ }
7530
+ case "too_small": {
7531
+ const adj = issue2.inclusive ? ">=" : ">";
7532
+ const sizing = getSizing(issue2.origin);
7533
+ if (sizing) {
7534
+ return `Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
7671
7535
  }
7536
+ return `Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
7672
7537
  }
7538
+ case "invalid_format": {
7539
+ const _issue = issue2;
7540
+ if (_issue.format === "starts_with")
7541
+ return `Noto\u2018g\u2018ri satr: "${_issue.prefix}" bilan boshlanishi kerak`;
7542
+ if (_issue.format === "ends_with")
7543
+ return `Noto\u2018g\u2018ri satr: "${_issue.suffix}" bilan tugashi kerak`;
7544
+ if (_issue.format === "includes")
7545
+ return `Noto\u2018g\u2018ri satr: "${_issue.includes}" ni o\u2018z ichiga olishi kerak`;
7546
+ if (_issue.format === "regex")
7547
+ return `Noto\u2018g\u2018ri satr: ${_issue.pattern} shabloniga mos kelishi kerak`;
7548
+ return `Noto\u2018g\u2018ri ${FormatDictionary[_issue.format] ?? issue2.format}`;
7549
+ }
7550
+ case "not_multiple_of":
7551
+ return `Noto\u2018g\u2018ri raqam: ${issue2.divisor} ning karralisi bo\u2018lishi kerak`;
7552
+ case "unrecognized_keys":
7553
+ return `Noma\u2019lum kalit${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`;
7554
+ case "invalid_key":
7555
+ return `${issue2.origin} dagi kalit noto\u2018g\u2018ri`;
7556
+ case "invalid_union":
7557
+ return "Noto\u2018g\u2018ri kirish";
7558
+ case "invalid_element":
7559
+ return `${issue2.origin} da noto\u2018g\u2018ri qiymat`;
7560
+ default:
7561
+ return `Noto\u2018g\u2018ri kirish`;
7673
7562
  }
7674
- return t;
7675
7563
  };
7676
- const Nouns = {
7564
+ };
7565
+ function uz_default() {
7566
+ return {
7567
+ localeError: error43()
7568
+ };
7569
+ }
7570
+
7571
+ // ../../../../../../node_modules/zod/v4/locales/vi.js
7572
+ var error44 = () => {
7573
+ const Sizable = {
7574
+ string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
7575
+ file: { unit: "byte", verb: "c\xF3" },
7576
+ array: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" },
7577
+ set: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }
7578
+ };
7579
+ function getSizing(origin) {
7580
+ return Sizable[origin] ?? null;
7581
+ }
7582
+ const FormatDictionary = {
7677
7583
  regex: "\u0111\u1EA7u v\xE0o",
7678
7584
  email: "\u0111\u1ECBa ch\u1EC9 email",
7679
7585
  url: "URL",
@@ -7703,10 +7609,22 @@
7703
7609
  jwt: "JWT",
7704
7610
  template_literal: "\u0111\u1EA7u v\xE0o"
7705
7611
  };
7612
+ const TypeDictionary = {
7613
+ nan: "NaN",
7614
+ number: "s\u1ED1",
7615
+ array: "m\u1EA3ng"
7616
+ };
7706
7617
  return (issue2) => {
7707
7618
  switch (issue2.code) {
7708
- case "invalid_type":
7709
- return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${parsedType8(issue2.input)}`;
7619
+ case "invalid_type": {
7620
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7621
+ const receivedType = parsedType(issue2.input);
7622
+ const received = TypeDictionary[receivedType] ?? receivedType;
7623
+ if (/^[A-Z]/.test(issue2.expected)) {
7624
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`;
7625
+ }
7626
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`;
7627
+ }
7710
7628
  case "invalid_value":
7711
7629
  if (issue2.values.length === 1)
7712
7630
  return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`;
@@ -7736,7 +7654,7 @@
7736
7654
  return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${_issue.includes}"`;
7737
7655
  if (_issue.format === "regex")
7738
7656
  return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${_issue.pattern}`;
7739
- return `${Nouns[_issue.format] ?? issue2.format} kh\xF4ng h\u1EE3p l\u1EC7`;
7657
+ return `${FormatDictionary[_issue.format] ?? issue2.format} kh\xF4ng h\u1EE3p l\u1EC7`;
7740
7658
  }
7741
7659
  case "not_multiple_of":
7742
7660
  return `S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${issue2.divisor}`;
@@ -7755,12 +7673,12 @@
7755
7673
  };
7756
7674
  function vi_default() {
7757
7675
  return {
7758
- localeError: error42()
7676
+ localeError: error44()
7759
7677
  };
7760
7678
  }
7761
7679
 
7762
7680
  // ../../../../../../node_modules/zod/v4/locales/zh-CN.js
7763
- var error43 = () => {
7681
+ var error45 = () => {
7764
7682
  const Sizable = {
7765
7683
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
7766
7684
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -7770,27 +7688,7 @@
7770
7688
  function getSizing(origin) {
7771
7689
  return Sizable[origin] ?? null;
7772
7690
  }
7773
- const parsedType8 = (data) => {
7774
- const t = typeof data;
7775
- switch (t) {
7776
- case "number": {
7777
- return Number.isNaN(data) ? "\u975E\u6570\u5B57(NaN)" : "\u6570\u5B57";
7778
- }
7779
- case "object": {
7780
- if (Array.isArray(data)) {
7781
- return "\u6570\u7EC4";
7782
- }
7783
- if (data === null) {
7784
- return "\u7A7A\u503C(null)";
7785
- }
7786
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7787
- return data.constructor.name;
7788
- }
7789
- }
7790
- }
7791
- return t;
7792
- };
7793
- const Nouns = {
7691
+ const FormatDictionary = {
7794
7692
  regex: "\u8F93\u5165",
7795
7693
  email: "\u7535\u5B50\u90AE\u4EF6",
7796
7694
  url: "URL",
@@ -7820,10 +7718,23 @@
7820
7718
  jwt: "JWT",
7821
7719
  template_literal: "\u8F93\u5165"
7822
7720
  };
7721
+ const TypeDictionary = {
7722
+ nan: "NaN",
7723
+ number: "\u6570\u5B57",
7724
+ array: "\u6570\u7EC4",
7725
+ null: "\u7A7A\u503C(null)"
7726
+ };
7823
7727
  return (issue2) => {
7824
7728
  switch (issue2.code) {
7825
- case "invalid_type":
7826
- return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${parsedType8(issue2.input)}`;
7729
+ case "invalid_type": {
7730
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7731
+ const receivedType = parsedType(issue2.input);
7732
+ const received = TypeDictionary[receivedType] ?? receivedType;
7733
+ if (/^[A-Z]/.test(issue2.expected)) {
7734
+ return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`;
7735
+ }
7736
+ return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`;
7737
+ }
7827
7738
  case "invalid_value":
7828
7739
  if (issue2.values.length === 1)
7829
7740
  return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`;
@@ -7853,7 +7764,7 @@
7853
7764
  return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${_issue.includes}"`;
7854
7765
  if (_issue.format === "regex")
7855
7766
  return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${_issue.pattern}`;
7856
- return `\u65E0\u6548${Nouns[_issue.format] ?? issue2.format}`;
7767
+ return `\u65E0\u6548${FormatDictionary[_issue.format] ?? issue2.format}`;
7857
7768
  }
7858
7769
  case "not_multiple_of":
7859
7770
  return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${issue2.divisor} \u7684\u500D\u6570`;
@@ -7872,12 +7783,12 @@
7872
7783
  };
7873
7784
  function zh_CN_default() {
7874
7785
  return {
7875
- localeError: error43()
7786
+ localeError: error45()
7876
7787
  };
7877
7788
  }
7878
7789
 
7879
7790
  // ../../../../../../node_modules/zod/v4/locales/zh-TW.js
7880
- var error44 = () => {
7791
+ var error46 = () => {
7881
7792
  const Sizable = {
7882
7793
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
7883
7794
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -7887,27 +7798,7 @@
7887
7798
  function getSizing(origin) {
7888
7799
  return Sizable[origin] ?? null;
7889
7800
  }
7890
- const parsedType8 = (data) => {
7891
- const t = typeof data;
7892
- switch (t) {
7893
- case "number": {
7894
- return Number.isNaN(data) ? "NaN" : "number";
7895
- }
7896
- case "object": {
7897
- if (Array.isArray(data)) {
7898
- return "array";
7899
- }
7900
- if (data === null) {
7901
- return "null";
7902
- }
7903
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
7904
- return data.constructor.name;
7905
- }
7906
- }
7907
- }
7908
- return t;
7909
- };
7910
- const Nouns = {
7801
+ const FormatDictionary = {
7911
7802
  regex: "\u8F38\u5165",
7912
7803
  email: "\u90F5\u4EF6\u5730\u5740",
7913
7804
  url: "URL",
@@ -7937,10 +7828,20 @@
7937
7828
  jwt: "JWT",
7938
7829
  template_literal: "\u8F38\u5165"
7939
7830
  };
7831
+ const TypeDictionary = {
7832
+ nan: "NaN"
7833
+ };
7940
7834
  return (issue2) => {
7941
7835
  switch (issue2.code) {
7942
- case "invalid_type":
7943
- return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${parsedType8(issue2.input)}`;
7836
+ case "invalid_type": {
7837
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7838
+ const receivedType = parsedType(issue2.input);
7839
+ const received = TypeDictionary[receivedType] ?? receivedType;
7840
+ if (/^[A-Z]/.test(issue2.expected)) {
7841
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${received}`;
7842
+ }
7843
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${expected}\uFF0C\u4F46\u6536\u5230 ${received}`;
7844
+ }
7944
7845
  case "invalid_value":
7945
7846
  if (issue2.values.length === 1)
7946
7847
  return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`;
@@ -7971,7 +7872,7 @@
7971
7872
  return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${_issue.includes}"`;
7972
7873
  if (_issue.format === "regex")
7973
7874
  return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${_issue.pattern}`;
7974
- return `\u7121\u6548\u7684 ${Nouns[_issue.format] ?? issue2.format}`;
7875
+ return `\u7121\u6548\u7684 ${FormatDictionary[_issue.format] ?? issue2.format}`;
7975
7876
  }
7976
7877
  case "not_multiple_of":
7977
7878
  return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${issue2.divisor} \u7684\u500D\u6578`;
@@ -7990,12 +7891,12 @@
7990
7891
  };
7991
7892
  function zh_TW_default() {
7992
7893
  return {
7993
- localeError: error44()
7894
+ localeError: error46()
7994
7895
  };
7995
7896
  }
7996
7897
 
7997
7898
  // ../../../../../../node_modules/zod/v4/locales/yo.js
7998
- var error45 = () => {
7899
+ var error47 = () => {
7999
7900
  const Sizable = {
8000
7901
  string: { unit: "\xE0mi", verb: "n\xED" },
8001
7902
  file: { unit: "bytes", verb: "n\xED" },
@@ -8005,27 +7906,7 @@
8005
7906
  function getSizing(origin) {
8006
7907
  return Sizable[origin] ?? null;
8007
7908
  }
8008
- const parsedType8 = (data) => {
8009
- const t = typeof data;
8010
- switch (t) {
8011
- case "number": {
8012
- return Number.isNaN(data) ? "NaN" : "n\u1ECD\u0301mb\xE0";
8013
- }
8014
- case "object": {
8015
- if (Array.isArray(data)) {
8016
- return "akop\u1ECD";
8017
- }
8018
- if (data === null) {
8019
- return "null";
8020
- }
8021
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
8022
- return data.constructor.name;
8023
- }
8024
- }
8025
- }
8026
- return t;
8027
- };
8028
- const Nouns = {
7909
+ const FormatDictionary = {
8029
7910
  regex: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",
8030
7911
  email: "\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",
8031
7912
  url: "URL",
@@ -8055,10 +7936,22 @@
8055
7936
  jwt: "JWT",
8056
7937
  template_literal: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"
8057
7938
  };
7939
+ const TypeDictionary = {
7940
+ nan: "NaN",
7941
+ number: "n\u1ECD\u0301mb\xE0",
7942
+ array: "akop\u1ECD"
7943
+ };
8058
7944
  return (issue2) => {
8059
7945
  switch (issue2.code) {
8060
- case "invalid_type":
8061
- return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${parsedType8(issue2.input)}`;
7946
+ case "invalid_type": {
7947
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7948
+ const receivedType = parsedType(issue2.input);
7949
+ const received = TypeDictionary[receivedType] ?? receivedType;
7950
+ if (/^[A-Z]/.test(issue2.expected)) {
7951
+ return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`;
7952
+ }
7953
+ return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`;
7954
+ }
8062
7955
  case "invalid_value":
8063
7956
  if (issue2.values.length === 1)
8064
7957
  return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${stringifyPrimitive(issue2.values[0])}`;
@@ -8087,7 +7980,7 @@
8087
7980
  return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${_issue.includes}"`;
8088
7981
  if (_issue.format === "regex")
8089
7982
  return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${_issue.pattern}`;
8090
- return `A\u1E63\xEC\u1E63e: ${Nouns[_issue.format] ?? issue2.format}`;
7983
+ return `A\u1E63\xEC\u1E63e: ${FormatDictionary[_issue.format] ?? issue2.format}`;
8091
7984
  }
8092
7985
  case "not_multiple_of":
8093
7986
  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}`;
@@ -8106,7 +7999,7 @@
8106
7999
  };
8107
8000
  function yo_default() {
8108
8001
  return {
8109
- localeError: error45()
8002
+ localeError: error47()
8110
8003
  };
8111
8004
  }
8112
8005
 
@@ -8121,9 +8014,6 @@
8121
8014
  const meta2 = _meta[0];
8122
8015
  this._map.set(schema, meta2);
8123
8016
  if (meta2 && typeof meta2 === "object" && "id" in meta2) {
8124
- if (this._idmap.has(meta2.id)) {
8125
- throw new Error(`ID ${meta2.id} already exists in the registry`);
8126
- }
8127
8017
  this._idmap.set(meta2.id, schema);
8128
8018
  }
8129
8019
  return this;
@@ -8162,12 +8052,14 @@
8162
8052
  var globalRegistry = globalThis.__zod_globalRegistry;
8163
8053
 
8164
8054
  // ../../../../../../node_modules/zod/v4/core/api.js
8055
+ // @__NO_SIDE_EFFECTS__
8165
8056
  function _string(Class2, params) {
8166
8057
  return new Class2({
8167
8058
  type: "string",
8168
8059
  ...normalizeParams(params)
8169
8060
  });
8170
8061
  }
8062
+ // @__NO_SIDE_EFFECTS__
8171
8063
  function _email(Class2, params) {
8172
8064
  return new Class2({
8173
8065
  type: "string",
@@ -8177,6 +8069,7 @@
8177
8069
  ...normalizeParams(params)
8178
8070
  });
8179
8071
  }
8072
+ // @__NO_SIDE_EFFECTS__
8180
8073
  function _guid(Class2, params) {
8181
8074
  return new Class2({
8182
8075
  type: "string",
@@ -8186,6 +8079,7 @@
8186
8079
  ...normalizeParams(params)
8187
8080
  });
8188
8081
  }
8082
+ // @__NO_SIDE_EFFECTS__
8189
8083
  function _uuid(Class2, params) {
8190
8084
  return new Class2({
8191
8085
  type: "string",
@@ -8195,6 +8089,7 @@
8195
8089
  ...normalizeParams(params)
8196
8090
  });
8197
8091
  }
8092
+ // @__NO_SIDE_EFFECTS__
8198
8093
  function _uuidv4(Class2, params) {
8199
8094
  return new Class2({
8200
8095
  type: "string",
@@ -8205,6 +8100,7 @@
8205
8100
  ...normalizeParams(params)
8206
8101
  });
8207
8102
  }
8103
+ // @__NO_SIDE_EFFECTS__
8208
8104
  function _uuidv6(Class2, params) {
8209
8105
  return new Class2({
8210
8106
  type: "string",
@@ -8215,6 +8111,7 @@
8215
8111
  ...normalizeParams(params)
8216
8112
  });
8217
8113
  }
8114
+ // @__NO_SIDE_EFFECTS__
8218
8115
  function _uuidv7(Class2, params) {
8219
8116
  return new Class2({
8220
8117
  type: "string",
@@ -8225,6 +8122,7 @@
8225
8122
  ...normalizeParams(params)
8226
8123
  });
8227
8124
  }
8125
+ // @__NO_SIDE_EFFECTS__
8228
8126
  function _url(Class2, params) {
8229
8127
  return new Class2({
8230
8128
  type: "string",
@@ -8234,6 +8132,7 @@
8234
8132
  ...normalizeParams(params)
8235
8133
  });
8236
8134
  }
8135
+ // @__NO_SIDE_EFFECTS__
8237
8136
  function _emoji2(Class2, params) {
8238
8137
  return new Class2({
8239
8138
  type: "string",
@@ -8243,6 +8142,7 @@
8243
8142
  ...normalizeParams(params)
8244
8143
  });
8245
8144
  }
8145
+ // @__NO_SIDE_EFFECTS__
8246
8146
  function _nanoid(Class2, params) {
8247
8147
  return new Class2({
8248
8148
  type: "string",
@@ -8252,6 +8152,7 @@
8252
8152
  ...normalizeParams(params)
8253
8153
  });
8254
8154
  }
8155
+ // @__NO_SIDE_EFFECTS__
8255
8156
  function _cuid(Class2, params) {
8256
8157
  return new Class2({
8257
8158
  type: "string",
@@ -8261,6 +8162,7 @@
8261
8162
  ...normalizeParams(params)
8262
8163
  });
8263
8164
  }
8165
+ // @__NO_SIDE_EFFECTS__
8264
8166
  function _cuid2(Class2, params) {
8265
8167
  return new Class2({
8266
8168
  type: "string",
@@ -8270,6 +8172,7 @@
8270
8172
  ...normalizeParams(params)
8271
8173
  });
8272
8174
  }
8175
+ // @__NO_SIDE_EFFECTS__
8273
8176
  function _ulid(Class2, params) {
8274
8177
  return new Class2({
8275
8178
  type: "string",
@@ -8279,6 +8182,7 @@
8279
8182
  ...normalizeParams(params)
8280
8183
  });
8281
8184
  }
8185
+ // @__NO_SIDE_EFFECTS__
8282
8186
  function _xid(Class2, params) {
8283
8187
  return new Class2({
8284
8188
  type: "string",
@@ -8288,6 +8192,7 @@
8288
8192
  ...normalizeParams(params)
8289
8193
  });
8290
8194
  }
8195
+ // @__NO_SIDE_EFFECTS__
8291
8196
  function _ksuid(Class2, params) {
8292
8197
  return new Class2({
8293
8198
  type: "string",
@@ -8297,6 +8202,7 @@
8297
8202
  ...normalizeParams(params)
8298
8203
  });
8299
8204
  }
8205
+ // @__NO_SIDE_EFFECTS__
8300
8206
  function _ipv4(Class2, params) {
8301
8207
  return new Class2({
8302
8208
  type: "string",
@@ -8306,6 +8212,7 @@
8306
8212
  ...normalizeParams(params)
8307
8213
  });
8308
8214
  }
8215
+ // @__NO_SIDE_EFFECTS__
8309
8216
  function _ipv6(Class2, params) {
8310
8217
  return new Class2({
8311
8218
  type: "string",
@@ -8315,6 +8222,7 @@
8315
8222
  ...normalizeParams(params)
8316
8223
  });
8317
8224
  }
8225
+ // @__NO_SIDE_EFFECTS__
8318
8226
  function _cidrv4(Class2, params) {
8319
8227
  return new Class2({
8320
8228
  type: "string",
@@ -8324,6 +8232,7 @@
8324
8232
  ...normalizeParams(params)
8325
8233
  });
8326
8234
  }
8235
+ // @__NO_SIDE_EFFECTS__
8327
8236
  function _cidrv6(Class2, params) {
8328
8237
  return new Class2({
8329
8238
  type: "string",
@@ -8333,6 +8242,7 @@
8333
8242
  ...normalizeParams(params)
8334
8243
  });
8335
8244
  }
8245
+ // @__NO_SIDE_EFFECTS__
8336
8246
  function _base64(Class2, params) {
8337
8247
  return new Class2({
8338
8248
  type: "string",
@@ -8342,6 +8252,7 @@
8342
8252
  ...normalizeParams(params)
8343
8253
  });
8344
8254
  }
8255
+ // @__NO_SIDE_EFFECTS__
8345
8256
  function _base64url(Class2, params) {
8346
8257
  return new Class2({
8347
8258
  type: "string",
@@ -8351,6 +8262,7 @@
8351
8262
  ...normalizeParams(params)
8352
8263
  });
8353
8264
  }
8265
+ // @__NO_SIDE_EFFECTS__
8354
8266
  function _e164(Class2, params) {
8355
8267
  return new Class2({
8356
8268
  type: "string",
@@ -8360,6 +8272,7 @@
8360
8272
  ...normalizeParams(params)
8361
8273
  });
8362
8274
  }
8275
+ // @__NO_SIDE_EFFECTS__
8363
8276
  function _jwt(Class2, params) {
8364
8277
  return new Class2({
8365
8278
  type: "string",
@@ -8369,6 +8282,7 @@
8369
8282
  ...normalizeParams(params)
8370
8283
  });
8371
8284
  }
8285
+ // @__NO_SIDE_EFFECTS__
8372
8286
  function _isoDateTime(Class2, params) {
8373
8287
  return new Class2({
8374
8288
  type: "string",
@@ -8380,6 +8294,7 @@
8380
8294
  ...normalizeParams(params)
8381
8295
  });
8382
8296
  }
8297
+ // @__NO_SIDE_EFFECTS__
8383
8298
  function _isoDate(Class2, params) {
8384
8299
  return new Class2({
8385
8300
  type: "string",
@@ -8388,6 +8303,7 @@
8388
8303
  ...normalizeParams(params)
8389
8304
  });
8390
8305
  }
8306
+ // @__NO_SIDE_EFFECTS__
8391
8307
  function _isoTime(Class2, params) {
8392
8308
  return new Class2({
8393
8309
  type: "string",
@@ -8397,6 +8313,7 @@
8397
8313
  ...normalizeParams(params)
8398
8314
  });
8399
8315
  }
8316
+ // @__NO_SIDE_EFFECTS__
8400
8317
  function _isoDuration(Class2, params) {
8401
8318
  return new Class2({
8402
8319
  type: "string",
@@ -8405,6 +8322,7 @@
8405
8322
  ...normalizeParams(params)
8406
8323
  });
8407
8324
  }
8325
+ // @__NO_SIDE_EFFECTS__
8408
8326
  function _number(Class2, params) {
8409
8327
  return new Class2({
8410
8328
  type: "number",
@@ -8412,6 +8330,7 @@
8412
8330
  ...normalizeParams(params)
8413
8331
  });
8414
8332
  }
8333
+ // @__NO_SIDE_EFFECTS__
8415
8334
  function _int(Class2, params) {
8416
8335
  return new Class2({
8417
8336
  type: "number",
@@ -8421,12 +8340,14 @@
8421
8340
  ...normalizeParams(params)
8422
8341
  });
8423
8342
  }
8343
+ // @__NO_SIDE_EFFECTS__
8424
8344
  function _bigint(Class2, params) {
8425
8345
  return new Class2({
8426
8346
  type: "bigint",
8427
8347
  ...normalizeParams(params)
8428
8348
  });
8429
8349
  }
8350
+ // @__NO_SIDE_EFFECTS__
8430
8351
  function _lt(value, params) {
8431
8352
  return new $ZodCheckLessThan({
8432
8353
  check: "less_than",
@@ -8435,6 +8356,7 @@
8435
8356
  inclusive: false
8436
8357
  });
8437
8358
  }
8359
+ // @__NO_SIDE_EFFECTS__
8438
8360
  function _lte(value, params) {
8439
8361
  return new $ZodCheckLessThan({
8440
8362
  check: "less_than",
@@ -8443,6 +8365,7 @@
8443
8365
  inclusive: true
8444
8366
  });
8445
8367
  }
8368
+ // @__NO_SIDE_EFFECTS__
8446
8369
  function _gt(value, params) {
8447
8370
  return new $ZodCheckGreaterThan({
8448
8371
  check: "greater_than",
@@ -8451,6 +8374,7 @@
8451
8374
  inclusive: false
8452
8375
  });
8453
8376
  }
8377
+ // @__NO_SIDE_EFFECTS__
8454
8378
  function _gte(value, params) {
8455
8379
  return new $ZodCheckGreaterThan({
8456
8380
  check: "greater_than",
@@ -8459,6 +8383,7 @@
8459
8383
  inclusive: true
8460
8384
  });
8461
8385
  }
8386
+ // @__NO_SIDE_EFFECTS__
8462
8387
  function _multipleOf(value, params) {
8463
8388
  return new $ZodCheckMultipleOf({
8464
8389
  check: "multiple_of",
@@ -8466,6 +8391,7 @@
8466
8391
  value
8467
8392
  });
8468
8393
  }
8394
+ // @__NO_SIDE_EFFECTS__
8469
8395
  function _maxLength(maximum, params) {
8470
8396
  const ch = new $ZodCheckMaxLength({
8471
8397
  check: "max_length",
@@ -8474,6 +8400,7 @@
8474
8400
  });
8475
8401
  return ch;
8476
8402
  }
8403
+ // @__NO_SIDE_EFFECTS__
8477
8404
  function _minLength(minimum, params) {
8478
8405
  return new $ZodCheckMinLength({
8479
8406
  check: "min_length",
@@ -8481,6 +8408,7 @@
8481
8408
  minimum
8482
8409
  });
8483
8410
  }
8411
+ // @__NO_SIDE_EFFECTS__
8484
8412
  function _length(length, params) {
8485
8413
  return new $ZodCheckLengthEquals({
8486
8414
  check: "length_equals",
@@ -8488,6 +8416,7 @@
8488
8416
  length
8489
8417
  });
8490
8418
  }
8419
+ // @__NO_SIDE_EFFECTS__
8491
8420
  function _regex(pattern, params) {
8492
8421
  return new $ZodCheckRegex({
8493
8422
  check: "string_format",
@@ -8496,6 +8425,7 @@
8496
8425
  pattern
8497
8426
  });
8498
8427
  }
8428
+ // @__NO_SIDE_EFFECTS__
8499
8429
  function _lowercase(params) {
8500
8430
  return new $ZodCheckLowerCase({
8501
8431
  check: "string_format",
@@ -8503,6 +8433,7 @@
8503
8433
  ...normalizeParams(params)
8504
8434
  });
8505
8435
  }
8436
+ // @__NO_SIDE_EFFECTS__
8506
8437
  function _uppercase(params) {
8507
8438
  return new $ZodCheckUpperCase({
8508
8439
  check: "string_format",
@@ -8510,6 +8441,7 @@
8510
8441
  ...normalizeParams(params)
8511
8442
  });
8512
8443
  }
8444
+ // @__NO_SIDE_EFFECTS__
8513
8445
  function _includes(includes, params) {
8514
8446
  return new $ZodCheckIncludes({
8515
8447
  check: "string_format",
@@ -8518,6 +8450,7 @@
8518
8450
  includes
8519
8451
  });
8520
8452
  }
8453
+ // @__NO_SIDE_EFFECTS__
8521
8454
  function _startsWith(prefix, params) {
8522
8455
  return new $ZodCheckStartsWith({
8523
8456
  check: "string_format",
@@ -8526,6 +8459,7 @@
8526
8459
  prefix
8527
8460
  });
8528
8461
  }
8462
+ // @__NO_SIDE_EFFECTS__
8529
8463
  function _endsWith(suffix, params) {
8530
8464
  return new $ZodCheckEndsWith({
8531
8465
  check: "string_format",
@@ -8534,27 +8468,34 @@
8534
8468
  suffix
8535
8469
  });
8536
8470
  }
8471
+ // @__NO_SIDE_EFFECTS__
8537
8472
  function _overwrite(tx) {
8538
8473
  return new $ZodCheckOverwrite({
8539
8474
  check: "overwrite",
8540
8475
  tx
8541
8476
  });
8542
8477
  }
8478
+ // @__NO_SIDE_EFFECTS__
8543
8479
  function _normalize(form) {
8544
- return _overwrite((input) => input.normalize(form));
8480
+ return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
8545
8481
  }
8482
+ // @__NO_SIDE_EFFECTS__
8546
8483
  function _trim() {
8547
- return _overwrite((input) => input.trim());
8484
+ return /* @__PURE__ */ _overwrite((input) => input.trim());
8548
8485
  }
8486
+ // @__NO_SIDE_EFFECTS__
8549
8487
  function _toLowerCase() {
8550
- return _overwrite((input) => input.toLowerCase());
8488
+ return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
8551
8489
  }
8490
+ // @__NO_SIDE_EFFECTS__
8552
8491
  function _toUpperCase() {
8553
- return _overwrite((input) => input.toUpperCase());
8492
+ return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
8554
8493
  }
8494
+ // @__NO_SIDE_EFFECTS__
8555
8495
  function _slugify() {
8556
- return _overwrite((input) => slugify(input));
8496
+ return /* @__PURE__ */ _overwrite((input) => slugify(input));
8557
8497
  }
8498
+ // @__NO_SIDE_EFFECTS__
8558
8499
  function _array(Class2, element, params) {
8559
8500
  return new Class2({
8560
8501
  type: "array",
@@ -8565,6 +8506,7 @@
8565
8506
  ...normalizeParams(params)
8566
8507
  });
8567
8508
  }
8509
+ // @__NO_SIDE_EFFECTS__
8568
8510
  function _refine(Class2, fn, _params) {
8569
8511
  const schema = new Class2({
8570
8512
  type: "custom",
@@ -8574,8 +8516,9 @@
8574
8516
  });
8575
8517
  return schema;
8576
8518
  }
8519
+ // @__NO_SIDE_EFFECTS__
8577
8520
  function _superRefine(fn) {
8578
- const ch = _check((payload) => {
8521
+ const ch = /* @__PURE__ */ _check((payload) => {
8579
8522
  payload.addIssue = (issue2) => {
8580
8523
  if (typeof issue2 === "string") {
8581
8524
  payload.issues.push(issue(issue2, payload.value, ch._zod.def));
@@ -8594,6 +8537,7 @@
8594
8537
  });
8595
8538
  return ch;
8596
8539
  }
8540
+ // @__NO_SIDE_EFFECTS__
8597
8541
  function _check(fn, params) {
8598
8542
  const ch = new $ZodCheck({
8599
8543
  check: "custom",
@@ -8648,12 +8592,7 @@
8648
8592
  schemaPath: [..._params.schemaPath, schema],
8649
8593
  path: _params.path
8650
8594
  };
8651
- const parent = schema._zod.parent;
8652
- if (parent) {
8653
- result.ref = parent;
8654
- process2(parent, ctx, params);
8655
- ctx.seen.get(parent).isParent = true;
8656
- } else if (schema._zod.processJSONSchema) {
8595
+ if (schema._zod.processJSONSchema) {
8657
8596
  schema._zod.processJSONSchema(ctx, result.schema, params);
8658
8597
  } else {
8659
8598
  const _json = result.schema;
@@ -8663,6 +8602,13 @@
8663
8602
  }
8664
8603
  processor(schema, ctx, _json, params);
8665
8604
  }
8605
+ const parent = schema._zod.parent;
8606
+ if (parent) {
8607
+ if (!result.ref)
8608
+ result.ref = parent;
8609
+ process2(parent, ctx, params);
8610
+ ctx.seen.get(parent).isParent = true;
8611
+ }
8666
8612
  }
8667
8613
  const meta2 = ctx.metadataRegistry.get(schema);
8668
8614
  if (meta2)
@@ -8681,6 +8627,17 @@
8681
8627
  const root = ctx.seen.get(schema);
8682
8628
  if (!root)
8683
8629
  throw new Error("Unprocessed schema. This is a bug in Zod.");
8630
+ const idToSchema = /* @__PURE__ */ new Map();
8631
+ for (const entry of ctx.seen.entries()) {
8632
+ const id = ctx.metadataRegistry.get(entry[0])?.id;
8633
+ if (id) {
8634
+ const existing = idToSchema.get(id);
8635
+ if (existing && existing !== entry[0]) {
8636
+ throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
8637
+ }
8638
+ idToSchema.set(id, entry[0]);
8639
+ }
8640
+ }
8684
8641
  const makeURI = (entry) => {
8685
8642
  const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
8686
8643
  if (ctx.external) {
@@ -8762,30 +8719,65 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8762
8719
  throw new Error("Unprocessed schema. This is a bug in Zod.");
8763
8720
  const flattenRef = (zodSchema) => {
8764
8721
  const seen = ctx.seen.get(zodSchema);
8722
+ if (seen.ref === null)
8723
+ return;
8765
8724
  const schema2 = seen.def ?? seen.schema;
8766
8725
  const _cached = { ...schema2 };
8767
- if (seen.ref === null) {
8768
- return;
8769
- }
8770
8726
  const ref = seen.ref;
8771
8727
  seen.ref = null;
8772
8728
  if (ref) {
8773
8729
  flattenRef(ref);
8774
- const refSchema = ctx.seen.get(ref).schema;
8730
+ const refSeen = ctx.seen.get(ref);
8731
+ const refSchema = refSeen.schema;
8775
8732
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
8776
8733
  schema2.allOf = schema2.allOf ?? [];
8777
8734
  schema2.allOf.push(refSchema);
8778
8735
  } else {
8779
8736
  Object.assign(schema2, refSchema);
8780
- Object.assign(schema2, _cached);
8737
+ }
8738
+ Object.assign(schema2, _cached);
8739
+ const isParentRef = zodSchema._zod.parent === ref;
8740
+ if (isParentRef) {
8741
+ for (const key in schema2) {
8742
+ if (key === "$ref" || key === "allOf")
8743
+ continue;
8744
+ if (!(key in _cached)) {
8745
+ delete schema2[key];
8746
+ }
8747
+ }
8748
+ }
8749
+ if (refSchema.$ref) {
8750
+ for (const key in schema2) {
8751
+ if (key === "$ref" || key === "allOf")
8752
+ continue;
8753
+ if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
8754
+ delete schema2[key];
8755
+ }
8756
+ }
8781
8757
  }
8782
8758
  }
8783
- if (!seen.isParent)
8784
- ctx.override({
8785
- zodSchema,
8786
- jsonSchema: schema2,
8787
- path: seen.path ?? []
8788
- });
8759
+ const parent = zodSchema._zod.parent;
8760
+ if (parent && parent !== ref) {
8761
+ flattenRef(parent);
8762
+ const parentSeen = ctx.seen.get(parent);
8763
+ if (parentSeen?.schema.$ref) {
8764
+ schema2.$ref = parentSeen.schema.$ref;
8765
+ if (parentSeen.def) {
8766
+ for (const key in schema2) {
8767
+ if (key === "$ref" || key === "allOf")
8768
+ continue;
8769
+ if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
8770
+ delete schema2[key];
8771
+ }
8772
+ }
8773
+ }
8774
+ }
8775
+ }
8776
+ ctx.override({
8777
+ zodSchema,
8778
+ jsonSchema: schema2,
8779
+ path: seen.path ?? []
8780
+ });
8789
8781
  };
8790
8782
  for (const entry of [...ctx.seen.entries()].reverse()) {
8791
8783
  flattenRef(entry[0]);
@@ -8830,8 +8822,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8830
8822
  value: {
8831
8823
  ...schema["~standard"],
8832
8824
  jsonSchema: {
8833
- input: createStandardJSONSchemaMethod(schema, "input"),
8834
- output: createStandardJSONSchemaMethod(schema, "output")
8825
+ input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
8826
+ output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
8835
8827
  }
8836
8828
  },
8837
8829
  enumerable: false,
@@ -8899,9 +8891,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8899
8891
  extractDefs(ctx, schema);
8900
8892
  return finalize(ctx, schema);
8901
8893
  };
8902
- var createStandardJSONSchemaMethod = (schema, io) => (params) => {
8894
+ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
8903
8895
  const { libraryOptions, target } = params ?? {};
8904
- const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors: {} });
8896
+ const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
8905
8897
  process2(schema, ctx);
8906
8898
  extractDefs(ctx, schema);
8907
8899
  return finalize(ctx, schema);
@@ -8928,6 +8920,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8928
8920
  json.format = formatMap[format] ?? format;
8929
8921
  if (json.format === "")
8930
8922
  delete json.format;
8923
+ if (format === "time") {
8924
+ delete json.format;
8925
+ }
8931
8926
  }
8932
8927
  if (contentEncoding)
8933
8928
  json.contentEncoding = contentEncoding;
@@ -9217,8 +9212,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9217
9212
  ...def.checks ?? [],
9218
9213
  ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
9219
9214
  ]
9220
- }));
9215
+ }), {
9216
+ parent: true
9217
+ });
9221
9218
  };
9219
+ inst.with = inst.check;
9222
9220
  inst.clone = (def2, params) => clone(inst, def2, params);
9223
9221
  inst.brand = () => inst;
9224
9222
  inst.register = ((reg, meta2) => {
@@ -9242,6 +9240,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9242
9240
  inst.superRefine = (refinement) => inst.check(superRefine(refinement));
9243
9241
  inst.overwrite = (fn) => inst.check(_overwrite(fn));
9244
9242
  inst.optional = () => optional(inst);
9243
+ inst.exactOptional = () => exactOptional(inst);
9245
9244
  inst.nullable = () => nullable(inst);
9246
9245
  inst.nullish = () => optional(nullable(inst));
9247
9246
  inst.nonoptional = (params) => nonoptional(inst, params);
@@ -9275,6 +9274,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9275
9274
  };
9276
9275
  inst.isOptional = () => inst.safeParse(void 0).success;
9277
9276
  inst.isNullable = () => inst.safeParse(null).success;
9277
+ inst.apply = (fn) => fn(inst);
9278
9278
  return inst;
9279
9279
  });
9280
9280
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -9565,6 +9565,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9565
9565
  innerType
9566
9566
  });
9567
9567
  }
9568
+ var ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
9569
+ $ZodExactOptional.init(inst, def);
9570
+ ZodType.init(inst, def);
9571
+ inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
9572
+ inst.unwrap = () => inst._zod.def.innerType;
9573
+ });
9574
+ function exactOptional(innerType) {
9575
+ return new ZodExactOptional({
9576
+ type: "optional",
9577
+ innerType
9578
+ });
9579
+ }
9568
9580
  var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
9569
9581
  $ZodNullable.init(inst, def);
9570
9582
  ZodType.init(inst, def);
@@ -9841,12 +9853,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9841
9853
  stack: message.stack
9842
9854
  });
9843
9855
  },
9844
- serialize(error46) {
9856
+ serialize(error48) {
9845
9857
  return {
9846
9858
  __error_marker: "$$error",
9847
- message: error46.message,
9848
- name: error46.name,
9849
- stack: error46.stack
9859
+ message: error48.message,
9860
+ name: error48.name,
9861
+ stack: error48.stack
9850
9862
  };
9851
9863
  }
9852
9864
  };
@@ -9903,9 +9915,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9903
9915
  implementation.postMessageToMaster(initMessage);
9904
9916
  }
9905
9917
  function postJobErrorMessage(uid, rawError) {
9906
- const { payload: error46, transferables } = deconstructTransfer(rawError);
9918
+ const { payload: error48, transferables } = deconstructTransfer(rawError);
9907
9919
  const errorMessage = {
9908
- error: serialize(error46),
9920
+ error: serialize(error48),
9909
9921
  type: "error",
9910
9922
  uid
9911
9923
  };
@@ -9929,10 +9941,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9929
9941
  };
9930
9942
  implementation.postMessageToMaster(startMessage);
9931
9943
  }
9932
- function postUncaughtErrorMessage(error46) {
9944
+ function postUncaughtErrorMessage(error48) {
9933
9945
  try {
9934
9946
  const errorMessage = {
9935
- error: serialize(error46),
9947
+ error: serialize(error48),
9936
9948
  type: "uncaughtError"
9937
9949
  /* uncaughtError */
9938
9950
  };
@@ -9942,7 +9954,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9942
9954
  "Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.\nLatest error:",
9943
9955
  subError,
9944
9956
  "\nOriginal error:",
9945
- error46
9957
+ error48
9946
9958
  );
9947
9959
  }
9948
9960
  }
@@ -9951,16 +9963,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9951
9963
  try {
9952
9964
  syncResult = fn(...args);
9953
9965
  } catch (ex) {
9954
- const error46 = ex;
9955
- return postJobErrorMessage(jobUID, error46);
9966
+ const error48 = ex;
9967
+ return postJobErrorMessage(jobUID, error48);
9956
9968
  }
9957
9969
  const resultType = isObservable(syncResult) ? "observable" : "promise";
9958
9970
  postJobStartMessage(jobUID, resultType);
9959
9971
  if (isObservable(syncResult)) {
9960
9972
  const subscription = syncResult.subscribe(
9961
9973
  (value) => postJobResultMessage(jobUID, false, serialize(value)),
9962
- (error46) => {
9963
- postJobErrorMessage(jobUID, serialize(error46));
9974
+ (error48) => {
9975
+ postJobErrorMessage(jobUID, serialize(error48));
9964
9976
  activeSubscriptions.delete(jobUID);
9965
9977
  },
9966
9978
  () => {
@@ -9973,8 +9985,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9973
9985
  try {
9974
9986
  const result = await syncResult;
9975
9987
  postJobResultMessage(jobUID, true, serialize(result));
9976
- } catch (error46) {
9977
- postJobErrorMessage(jobUID, serialize(error46));
9988
+ } catch (error48) {
9989
+ postJobErrorMessage(jobUID, serialize(error48));
9978
9990
  }
9979
9991
  }
9980
9992
  }
@@ -10020,19 +10032,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10020
10032
  setTimeout(() => postUncaughtErrorMessage(isErrorEvent(event) ? event.error : event), 250);
10021
10033
  });
10022
10034
  self2.addEventListener("unhandledrejection", (event) => {
10023
- const error46 = event.reason;
10024
- if (error46 && typeof error46.message === "string") {
10025
- setTimeout(() => postUncaughtErrorMessage(error46), 250);
10035
+ const error48 = event.reason;
10036
+ if (error48 && typeof error48.message === "string") {
10037
+ setTimeout(() => postUncaughtErrorMessage(error48), 250);
10026
10038
  }
10027
10039
  });
10028
10040
  }
10029
10041
  if (typeof process !== "undefined" && typeof process.on === "function" && implementation.isWorkerRuntime()) {
10030
- process.on("uncaughtException", (error46) => {
10031
- setTimeout(() => postUncaughtErrorMessage(error46), 250);
10042
+ process.on("uncaughtException", (error48) => {
10043
+ setTimeout(() => postUncaughtErrorMessage(error48), 250);
10032
10044
  });
10033
- process.on("unhandledRejection", (error46) => {
10034
- if (error46 && typeof error46.message === "string") {
10035
- setTimeout(() => postUncaughtErrorMessage(error46), 250);
10045
+ process.on("unhandledRejection", (error48) => {
10046
+ if (error48 && typeof error48.message === "string") {
10047
+ setTimeout(() => postUncaughtErrorMessage(error48), 250);
10036
10048
  }
10037
10049
  });
10038
10050
  }