@inkeep/ai-sdk-provider 0.37.2 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +443 -319
- package/dist/index.js +443 -319
- package/package.json +10 -6
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
11
11
|
var external_exports = {};
|
|
12
12
|
__export(external_exports, {
|
|
13
13
|
$brand: () => $brand,
|
|
@@ -54,6 +54,7 @@ __export(external_exports, {
|
|
|
54
54
|
ZodKSUID: () => ZodKSUID,
|
|
55
55
|
ZodLazy: () => ZodLazy,
|
|
56
56
|
ZodLiteral: () => ZodLiteral,
|
|
57
|
+
ZodMAC: () => ZodMAC,
|
|
57
58
|
ZodMap: () => ZodMap,
|
|
58
59
|
ZodNaN: () => ZodNaN,
|
|
59
60
|
ZodNanoID: () => ZodNanoID,
|
|
@@ -112,6 +113,7 @@ __export(external_exports, {
|
|
|
112
113
|
date: () => date3,
|
|
113
114
|
decode: () => decode2,
|
|
114
115
|
decodeAsync: () => decodeAsync2,
|
|
116
|
+
describe: () => describe2,
|
|
115
117
|
discriminatedUnion: () => discriminatedUnion,
|
|
116
118
|
e164: () => e1642,
|
|
117
119
|
email: () => email2,
|
|
@@ -156,9 +158,11 @@ __export(external_exports, {
|
|
|
156
158
|
lowercase: () => _lowercase,
|
|
157
159
|
lt: () => _lt,
|
|
158
160
|
lte: () => _lte,
|
|
161
|
+
mac: () => mac2,
|
|
159
162
|
map: () => map,
|
|
160
163
|
maxLength: () => _maxLength,
|
|
161
164
|
maxSize: () => _maxSize,
|
|
165
|
+
meta: () => meta2,
|
|
162
166
|
mime: () => _mime,
|
|
163
167
|
minLength: () => _minLength,
|
|
164
168
|
minSize: () => _minSize,
|
|
@@ -204,6 +208,7 @@ __export(external_exports, {
|
|
|
204
208
|
set: () => set,
|
|
205
209
|
setErrorMap: () => setErrorMap,
|
|
206
210
|
size: () => _size,
|
|
211
|
+
slugify: () => _slugify,
|
|
207
212
|
startsWith: () => _startsWith,
|
|
208
213
|
strictObject: () => strictObject,
|
|
209
214
|
string: () => string2,
|
|
@@ -237,7 +242,7 @@ __export(external_exports, {
|
|
|
237
242
|
xid: () => xid2
|
|
238
243
|
});
|
|
239
244
|
|
|
240
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
245
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/index.js
|
|
241
246
|
var core_exports2 = {};
|
|
242
247
|
__export(core_exports2, {
|
|
243
248
|
$ZodAny: () => $ZodAny,
|
|
@@ -301,6 +306,7 @@ __export(core_exports2, {
|
|
|
301
306
|
$ZodKSUID: () => $ZodKSUID,
|
|
302
307
|
$ZodLazy: () => $ZodLazy,
|
|
303
308
|
$ZodLiteral: () => $ZodLiteral,
|
|
309
|
+
$ZodMAC: () => $ZodMAC,
|
|
304
310
|
$ZodMap: () => $ZodMap,
|
|
305
311
|
$ZodNaN: () => $ZodNaN,
|
|
306
312
|
$ZodNanoID: () => $ZodNanoID,
|
|
@@ -401,6 +407,7 @@ __export(core_exports2, {
|
|
|
401
407
|
_lowercase: () => _lowercase,
|
|
402
408
|
_lt: () => _lt,
|
|
403
409
|
_lte: () => _lte,
|
|
410
|
+
_mac: () => _mac,
|
|
404
411
|
_map: () => _map,
|
|
405
412
|
_max: () => _lte,
|
|
406
413
|
_maxLength: () => _maxLength,
|
|
@@ -442,6 +449,7 @@ __export(core_exports2, {
|
|
|
442
449
|
_safeParseAsync: () => _safeParseAsync,
|
|
443
450
|
_set: () => _set,
|
|
444
451
|
_size: () => _size,
|
|
452
|
+
_slugify: () => _slugify,
|
|
445
453
|
_startsWith: () => _startsWith,
|
|
446
454
|
_string: () => _string,
|
|
447
455
|
_stringFormat: () => _stringFormat,
|
|
@@ -473,6 +481,7 @@ __export(core_exports2, {
|
|
|
473
481
|
config: () => config,
|
|
474
482
|
decode: () => decode,
|
|
475
483
|
decodeAsync: () => decodeAsync,
|
|
484
|
+
describe: () => describe,
|
|
476
485
|
encode: () => encode,
|
|
477
486
|
encodeAsync: () => encodeAsync,
|
|
478
487
|
flattenError: () => flattenError,
|
|
@@ -483,6 +492,7 @@ __export(core_exports2, {
|
|
|
483
492
|
isValidBase64URL: () => isValidBase64URL,
|
|
484
493
|
isValidJWT: () => isValidJWT,
|
|
485
494
|
locales: () => locales_exports,
|
|
495
|
+
meta: () => meta,
|
|
486
496
|
parse: () => parse,
|
|
487
497
|
parseAsync: () => parseAsync,
|
|
488
498
|
prettifyError: () => prettifyError,
|
|
@@ -501,37 +511,46 @@ __export(core_exports2, {
|
|
|
501
511
|
version: () => version
|
|
502
512
|
});
|
|
503
513
|
|
|
504
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
514
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/core.js
|
|
505
515
|
var NEVER = Object.freeze({
|
|
506
516
|
status: "aborted"
|
|
507
517
|
});
|
|
508
518
|
// @__NO_SIDE_EFFECTS__
|
|
509
519
|
function $constructor(name, initializer3, params) {
|
|
510
520
|
function init(inst, def) {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
521
|
+
if (!inst._zod) {
|
|
522
|
+
Object.defineProperty(inst, "_zod", {
|
|
523
|
+
value: {
|
|
524
|
+
def,
|
|
525
|
+
constr: _,
|
|
526
|
+
traits: /* @__PURE__ */ new Set()
|
|
527
|
+
},
|
|
528
|
+
enumerable: false
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
if (inst._zod.traits.has(name)) {
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
517
534
|
inst._zod.traits.add(name);
|
|
518
535
|
initializer3(inst, def);
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
536
|
+
const proto = _.prototype;
|
|
537
|
+
const keys = Object.keys(proto);
|
|
538
|
+
for (let i = 0; i < keys.length; i++) {
|
|
539
|
+
const k = keys[i];
|
|
540
|
+
if (!(k in inst)) {
|
|
541
|
+
inst[k] = proto[k].bind(inst);
|
|
542
|
+
}
|
|
522
543
|
}
|
|
523
|
-
inst._zod.constr = _;
|
|
524
|
-
inst._zod.def = def;
|
|
525
544
|
}
|
|
526
545
|
const Parent = params?.Parent ?? Object;
|
|
527
546
|
class Definition extends Parent {
|
|
528
547
|
}
|
|
529
548
|
Object.defineProperty(Definition, "name", { value: name });
|
|
530
549
|
function _(def) {
|
|
531
|
-
var
|
|
550
|
+
var _a2;
|
|
532
551
|
const inst = params?.Parent ? new Definition() : this;
|
|
533
552
|
init(inst, def);
|
|
534
|
-
(
|
|
553
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
535
554
|
for (const fn of inst._zod.deferred) {
|
|
536
555
|
fn();
|
|
537
556
|
}
|
|
@@ -567,7 +586,7 @@ function config(newConfig) {
|
|
|
567
586
|
return globalConfig;
|
|
568
587
|
}
|
|
569
588
|
|
|
570
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
589
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js
|
|
571
590
|
var util_exports = {};
|
|
572
591
|
__export(util_exports, {
|
|
573
592
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -625,6 +644,7 @@ __export(util_exports, {
|
|
|
625
644
|
required: () => required,
|
|
626
645
|
safeExtend: () => safeExtend,
|
|
627
646
|
shallowClone: () => shallowClone,
|
|
647
|
+
slugify: () => slugify,
|
|
628
648
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
629
649
|
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
630
650
|
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
@@ -763,6 +783,9 @@ function randomString(length = 10) {
|
|
|
763
783
|
function esc(str) {
|
|
764
784
|
return JSON.stringify(str);
|
|
765
785
|
}
|
|
786
|
+
function slugify(input) {
|
|
787
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
788
|
+
}
|
|
766
789
|
var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
767
790
|
};
|
|
768
791
|
function isObject(data) {
|
|
@@ -786,6 +809,8 @@ function isPlainObject(o) {
|
|
|
786
809
|
const ctor = o.constructor;
|
|
787
810
|
if (ctor === void 0)
|
|
788
811
|
return true;
|
|
812
|
+
if (typeof ctor !== "function")
|
|
813
|
+
return true;
|
|
789
814
|
const prot = ctor.prototype;
|
|
790
815
|
if (isObject(prot) === false)
|
|
791
816
|
return false;
|
|
@@ -1102,8 +1127,8 @@ function aborted(x, startIndex = 0) {
|
|
|
1102
1127
|
}
|
|
1103
1128
|
function prefixIssues(path, issues) {
|
|
1104
1129
|
return issues.map((iss) => {
|
|
1105
|
-
var
|
|
1106
|
-
(
|
|
1130
|
+
var _a2;
|
|
1131
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
1107
1132
|
iss.path.unshift(path);
|
|
1108
1133
|
return iss;
|
|
1109
1134
|
});
|
|
@@ -1199,7 +1224,7 @@ var Class = class {
|
|
|
1199
1224
|
}
|
|
1200
1225
|
};
|
|
1201
1226
|
|
|
1202
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1227
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js
|
|
1203
1228
|
var initializer = (inst, def) => {
|
|
1204
1229
|
inst.name = "$ZodError";
|
|
1205
1230
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1267,7 +1292,7 @@ function formatError(error46, mapper = (issue2) => issue2.message) {
|
|
|
1267
1292
|
function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
1268
1293
|
const result = { errors: [] };
|
|
1269
1294
|
const processError = (error47, path = []) => {
|
|
1270
|
-
var
|
|
1295
|
+
var _a2, _b;
|
|
1271
1296
|
for (const issue2 of error47.issues) {
|
|
1272
1297
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1273
1298
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
@@ -1288,7 +1313,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
|
1288
1313
|
const terminal = i === fullpath.length - 1;
|
|
1289
1314
|
if (typeof el === "string") {
|
|
1290
1315
|
curr.properties ?? (curr.properties = {});
|
|
1291
|
-
(
|
|
1316
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
1292
1317
|
curr = curr.properties[el];
|
|
1293
1318
|
} else {
|
|
1294
1319
|
curr.items ?? (curr.items = []);
|
|
@@ -1335,7 +1360,7 @@ function prettifyError(error46) {
|
|
|
1335
1360
|
return lines.join("\n");
|
|
1336
1361
|
}
|
|
1337
1362
|
|
|
1338
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1363
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js
|
|
1339
1364
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1340
1365
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1341
1366
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1423,7 +1448,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1423
1448
|
};
|
|
1424
1449
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1425
1450
|
|
|
1426
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1451
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/regexes.js
|
|
1427
1452
|
var regexes_exports = {};
|
|
1428
1453
|
__export(regexes_exports, {
|
|
1429
1454
|
base64: () => base64,
|
|
@@ -1453,6 +1478,7 @@ __export(regexes_exports, {
|
|
|
1453
1478
|
ipv6: () => ipv6,
|
|
1454
1479
|
ksuid: () => ksuid,
|
|
1455
1480
|
lowercase: () => lowercase,
|
|
1481
|
+
mac: () => mac,
|
|
1456
1482
|
md5_base64: () => md5_base64,
|
|
1457
1483
|
md5_base64url: () => md5_base64url,
|
|
1458
1484
|
md5_hex: () => md5_hex,
|
|
@@ -1513,6 +1539,10 @@ function emoji() {
|
|
|
1513
1539
|
}
|
|
1514
1540
|
var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
1515
1541
|
var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
|
|
1542
|
+
var mac = (delimiter) => {
|
|
1543
|
+
const escapedDelim = escapeRegex(delimiter ?? ":");
|
|
1544
|
+
return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
|
|
1545
|
+
};
|
|
1516
1546
|
var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
|
|
1517
1547
|
var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
1518
1548
|
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
@@ -1575,12 +1605,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1575
1605
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1576
1606
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1577
1607
|
|
|
1578
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1608
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
|
|
1579
1609
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1580
|
-
var
|
|
1610
|
+
var _a2;
|
|
1581
1611
|
inst._zod ?? (inst._zod = {});
|
|
1582
1612
|
inst._zod.def = def;
|
|
1583
|
-
(
|
|
1613
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
1584
1614
|
});
|
|
1585
1615
|
var numericOriginMap = {
|
|
1586
1616
|
number: "number",
|
|
@@ -1646,8 +1676,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1646
1676
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1647
1677
|
$ZodCheck.init(inst, def);
|
|
1648
1678
|
inst._zod.onattach.push((inst2) => {
|
|
1649
|
-
var
|
|
1650
|
-
(
|
|
1679
|
+
var _a2;
|
|
1680
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
1651
1681
|
});
|
|
1652
1682
|
inst._zod.check = (payload) => {
|
|
1653
1683
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1774,9 +1804,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
1774
1804
|
};
|
|
1775
1805
|
});
|
|
1776
1806
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1777
|
-
var
|
|
1807
|
+
var _a2;
|
|
1778
1808
|
$ZodCheck.init(inst, def);
|
|
1779
|
-
(
|
|
1809
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1780
1810
|
const val = payload.value;
|
|
1781
1811
|
return !nullish(val) && val.size !== void 0;
|
|
1782
1812
|
});
|
|
@@ -1802,9 +1832,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
1802
1832
|
};
|
|
1803
1833
|
});
|
|
1804
1834
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1805
|
-
var
|
|
1835
|
+
var _a2;
|
|
1806
1836
|
$ZodCheck.init(inst, def);
|
|
1807
|
-
(
|
|
1837
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1808
1838
|
const val = payload.value;
|
|
1809
1839
|
return !nullish(val) && val.size !== void 0;
|
|
1810
1840
|
});
|
|
@@ -1830,9 +1860,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
1830
1860
|
};
|
|
1831
1861
|
});
|
|
1832
1862
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1833
|
-
var
|
|
1863
|
+
var _a2;
|
|
1834
1864
|
$ZodCheck.init(inst, def);
|
|
1835
|
-
(
|
|
1865
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1836
1866
|
const val = payload.value;
|
|
1837
1867
|
return !nullish(val) && val.size !== void 0;
|
|
1838
1868
|
});
|
|
@@ -1860,9 +1890,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
1860
1890
|
};
|
|
1861
1891
|
});
|
|
1862
1892
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1863
|
-
var
|
|
1893
|
+
var _a2;
|
|
1864
1894
|
$ZodCheck.init(inst, def);
|
|
1865
|
-
(
|
|
1895
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1866
1896
|
const val = payload.value;
|
|
1867
1897
|
return !nullish(val) && val.length !== void 0;
|
|
1868
1898
|
});
|
|
@@ -1889,9 +1919,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
1889
1919
|
};
|
|
1890
1920
|
});
|
|
1891
1921
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1892
|
-
var
|
|
1922
|
+
var _a2;
|
|
1893
1923
|
$ZodCheck.init(inst, def);
|
|
1894
|
-
(
|
|
1924
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1895
1925
|
const val = payload.value;
|
|
1896
1926
|
return !nullish(val) && val.length !== void 0;
|
|
1897
1927
|
});
|
|
@@ -1918,9 +1948,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
1918
1948
|
};
|
|
1919
1949
|
});
|
|
1920
1950
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1921
|
-
var
|
|
1951
|
+
var _a2;
|
|
1922
1952
|
$ZodCheck.init(inst, def);
|
|
1923
|
-
(
|
|
1953
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1924
1954
|
const val = payload.value;
|
|
1925
1955
|
return !nullish(val) && val.length !== void 0;
|
|
1926
1956
|
});
|
|
@@ -1949,7 +1979,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
1949
1979
|
};
|
|
1950
1980
|
});
|
|
1951
1981
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1952
|
-
var
|
|
1982
|
+
var _a2, _b;
|
|
1953
1983
|
$ZodCheck.init(inst, def);
|
|
1954
1984
|
inst._zod.onattach.push((inst2) => {
|
|
1955
1985
|
const bag = inst2._zod.bag;
|
|
@@ -1960,7 +1990,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
1960
1990
|
}
|
|
1961
1991
|
});
|
|
1962
1992
|
if (def.pattern)
|
|
1963
|
-
(
|
|
1993
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
1964
1994
|
def.pattern.lastIndex = 0;
|
|
1965
1995
|
if (def.pattern.test(payload.value))
|
|
1966
1996
|
return;
|
|
@@ -2117,7 +2147,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2117
2147
|
};
|
|
2118
2148
|
});
|
|
2119
2149
|
|
|
2120
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
2150
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/doc.js
|
|
2121
2151
|
var Doc = class {
|
|
2122
2152
|
constructor(args = []) {
|
|
2123
2153
|
this.content = [];
|
|
@@ -2153,16 +2183,16 @@ var Doc = class {
|
|
|
2153
2183
|
}
|
|
2154
2184
|
};
|
|
2155
2185
|
|
|
2156
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
2186
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js
|
|
2157
2187
|
var version = {
|
|
2158
2188
|
major: 4,
|
|
2159
2189
|
minor: 1,
|
|
2160
|
-
patch:
|
|
2190
|
+
patch: 13
|
|
2161
2191
|
};
|
|
2162
2192
|
|
|
2163
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
2193
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
|
|
2164
2194
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2165
|
-
var
|
|
2195
|
+
var _a2;
|
|
2166
2196
|
inst ?? (inst = {});
|
|
2167
2197
|
inst._zod.def = def;
|
|
2168
2198
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2177,7 +2207,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2177
2207
|
}
|
|
2178
2208
|
}
|
|
2179
2209
|
if (checks.length === 0) {
|
|
2180
|
-
(
|
|
2210
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
2181
2211
|
inst._zod.deferred?.push(() => {
|
|
2182
2212
|
inst._zod.run = inst._zod.parse;
|
|
2183
2213
|
});
|
|
@@ -2335,7 +2365,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2335
2365
|
code: "invalid_format",
|
|
2336
2366
|
format: "url",
|
|
2337
2367
|
note: "Invalid hostname",
|
|
2338
|
-
pattern: hostname.source,
|
|
2368
|
+
pattern: def.hostname.source,
|
|
2339
2369
|
input: payload.value,
|
|
2340
2370
|
inst,
|
|
2341
2371
|
continue: !def.abort
|
|
@@ -2420,18 +2450,12 @@ var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def
|
|
|
2420
2450
|
var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
2421
2451
|
def.pattern ?? (def.pattern = ipv4);
|
|
2422
2452
|
$ZodStringFormat.init(inst, def);
|
|
2423
|
-
inst._zod.
|
|
2424
|
-
const bag = inst2._zod.bag;
|
|
2425
|
-
bag.format = `ipv4`;
|
|
2426
|
-
});
|
|
2453
|
+
inst._zod.bag.format = `ipv4`;
|
|
2427
2454
|
});
|
|
2428
2455
|
var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
2429
2456
|
def.pattern ?? (def.pattern = ipv6);
|
|
2430
2457
|
$ZodStringFormat.init(inst, def);
|
|
2431
|
-
inst._zod.
|
|
2432
|
-
const bag = inst2._zod.bag;
|
|
2433
|
-
bag.format = `ipv6`;
|
|
2434
|
-
});
|
|
2458
|
+
inst._zod.bag.format = `ipv6`;
|
|
2435
2459
|
inst._zod.check = (payload) => {
|
|
2436
2460
|
try {
|
|
2437
2461
|
new URL(`http://[${payload.value}]`);
|
|
@@ -2446,6 +2470,11 @@ var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
2446
2470
|
}
|
|
2447
2471
|
};
|
|
2448
2472
|
});
|
|
2473
|
+
var $ZodMAC = /* @__PURE__ */ $constructor("$ZodMAC", (inst, def) => {
|
|
2474
|
+
def.pattern ?? (def.pattern = mac(def.delimiter));
|
|
2475
|
+
$ZodStringFormat.init(inst, def);
|
|
2476
|
+
inst._zod.bag.format = `mac`;
|
|
2477
|
+
});
|
|
2449
2478
|
var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
2450
2479
|
def.pattern ?? (def.pattern = cidrv4);
|
|
2451
2480
|
$ZodStringFormat.init(inst, def);
|
|
@@ -2493,9 +2522,7 @@ function isValidBase64(data) {
|
|
|
2493
2522
|
var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
2494
2523
|
def.pattern ?? (def.pattern = base64);
|
|
2495
2524
|
$ZodStringFormat.init(inst, def);
|
|
2496
|
-
inst._zod.
|
|
2497
|
-
inst2._zod.bag.contentEncoding = "base64";
|
|
2498
|
-
});
|
|
2525
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
2499
2526
|
inst._zod.check = (payload) => {
|
|
2500
2527
|
if (isValidBase64(payload.value))
|
|
2501
2528
|
return;
|
|
@@ -2518,9 +2545,7 @@ function isValidBase64URL(data) {
|
|
|
2518
2545
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
2519
2546
|
def.pattern ?? (def.pattern = base64url);
|
|
2520
2547
|
$ZodStringFormat.init(inst, def);
|
|
2521
|
-
inst._zod.
|
|
2522
|
-
inst2._zod.bag.contentEncoding = "base64url";
|
|
2523
|
-
});
|
|
2548
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
2524
2549
|
inst._zod.check = (payload) => {
|
|
2525
2550
|
if (isValidBase64URL(payload.value))
|
|
2526
2551
|
return;
|
|
@@ -2609,7 +2634,7 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
2609
2634
|
return payload;
|
|
2610
2635
|
};
|
|
2611
2636
|
});
|
|
2612
|
-
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$
|
|
2637
|
+
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
2613
2638
|
$ZodCheckNumberFormat.init(inst, def);
|
|
2614
2639
|
$ZodNumber.init(inst, def);
|
|
2615
2640
|
});
|
|
@@ -2654,7 +2679,7 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
2654
2679
|
return payload;
|
|
2655
2680
|
};
|
|
2656
2681
|
});
|
|
2657
|
-
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$
|
|
2682
|
+
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigIntFormat", (inst, def) => {
|
|
2658
2683
|
$ZodCheckBigIntFormat.init(inst, def);
|
|
2659
2684
|
$ZodBigInt.init(inst, def);
|
|
2660
2685
|
});
|
|
@@ -2840,7 +2865,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2840
2865
|
const keySet = def.keySet;
|
|
2841
2866
|
const _catchall = def.catchall._zod;
|
|
2842
2867
|
const t = _catchall.def.type;
|
|
2843
|
-
for (const key
|
|
2868
|
+
for (const key in input) {
|
|
2844
2869
|
if (keySet.has(key))
|
|
2845
2870
|
continue;
|
|
2846
2871
|
if (t === "never") {
|
|
@@ -3215,7 +3240,6 @@ function handleIntersectionResults(result, left, right) {
|
|
|
3215
3240
|
var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
3216
3241
|
$ZodType.init(inst, def);
|
|
3217
3242
|
const items = def.items;
|
|
3218
|
-
const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
3219
3243
|
inst._zod.parse = (payload, ctx) => {
|
|
3220
3244
|
const input = payload.value;
|
|
3221
3245
|
if (!Array.isArray(input)) {
|
|
@@ -3229,6 +3253,8 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3229
3253
|
}
|
|
3230
3254
|
payload.value = [];
|
|
3231
3255
|
const proms = [];
|
|
3256
|
+
const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
3257
|
+
const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
|
|
3232
3258
|
if (!def.rest) {
|
|
3233
3259
|
const tooBig = input.length > items.length;
|
|
3234
3260
|
const tooSmall = input.length < optStart - 1;
|
|
@@ -3299,11 +3325,13 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3299
3325
|
return payload;
|
|
3300
3326
|
}
|
|
3301
3327
|
const proms = [];
|
|
3302
|
-
|
|
3303
|
-
|
|
3328
|
+
const values = def.keyType._zod.values;
|
|
3329
|
+
if (values) {
|
|
3304
3330
|
payload.value = {};
|
|
3331
|
+
const recordKeys = /* @__PURE__ */ new Set();
|
|
3305
3332
|
for (const key of values) {
|
|
3306
3333
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3334
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3307
3335
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3308
3336
|
if (result instanceof Promise) {
|
|
3309
3337
|
proms.push(result.then((result2) => {
|
|
@@ -3322,7 +3350,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3322
3350
|
}
|
|
3323
3351
|
let unrecognized;
|
|
3324
3352
|
for (const key in input) {
|
|
3325
|
-
if (!
|
|
3353
|
+
if (!recordKeys.has(key)) {
|
|
3326
3354
|
unrecognized = unrecognized ?? [];
|
|
3327
3355
|
unrecognized.push(key);
|
|
3328
3356
|
}
|
|
@@ -3497,11 +3525,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
3497
3525
|
if (def.values.length === 0) {
|
|
3498
3526
|
throw new Error("Cannot create literal schema with no valid values");
|
|
3499
3527
|
}
|
|
3500
|
-
|
|
3528
|
+
const values = new Set(def.values);
|
|
3529
|
+
inst._zod.values = values;
|
|
3501
3530
|
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
3502
3531
|
inst._zod.parse = (payload, _ctx) => {
|
|
3503
3532
|
const input = payload.value;
|
|
3504
|
-
if (
|
|
3533
|
+
if (values.has(input)) {
|
|
3505
3534
|
return payload;
|
|
3506
3535
|
}
|
|
3507
3536
|
payload.issues.push({
|
|
@@ -3814,8 +3843,8 @@ var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
|
3814
3843
|
$ZodType.init(inst, def);
|
|
3815
3844
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3816
3845
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3817
|
-
defineLazy(inst._zod, "optin", () => def.innerType
|
|
3818
|
-
defineLazy(inst._zod, "optout", () => def.innerType
|
|
3846
|
+
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
3847
|
+
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
3819
3848
|
inst._zod.parse = (payload, ctx) => {
|
|
3820
3849
|
if (ctx.direction === "backward") {
|
|
3821
3850
|
return def.innerType._zod.run(payload, ctx);
|
|
@@ -3962,10 +3991,10 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
3962
3991
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
3963
3992
|
$ZodType.init(inst, def);
|
|
3964
3993
|
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
3965
|
-
defineLazy(inst._zod, "pattern", () => inst._zod.innerType
|
|
3966
|
-
defineLazy(inst._zod, "propValues", () => inst._zod.innerType
|
|
3967
|
-
defineLazy(inst._zod, "optin", () => inst._zod.innerType
|
|
3968
|
-
defineLazy(inst._zod, "optout", () => inst._zod.innerType
|
|
3994
|
+
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
3995
|
+
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
3996
|
+
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
3997
|
+
defineLazy(inst._zod, "optout", () => inst._zod.innerType?._zod?.optout ?? void 0);
|
|
3969
3998
|
inst._zod.parse = (payload, ctx) => {
|
|
3970
3999
|
const inner = inst._zod.innerType;
|
|
3971
4000
|
return inner._zod.run(payload, ctx);
|
|
@@ -4005,7 +4034,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4005
4034
|
}
|
|
4006
4035
|
}
|
|
4007
4036
|
|
|
4008
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4037
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/index.js
|
|
4009
4038
|
var locales_exports = {};
|
|
4010
4039
|
__export(locales_exports, {
|
|
4011
4040
|
ar: () => ar_default,
|
|
@@ -4057,7 +4086,7 @@ __export(locales_exports, {
|
|
|
4057
4086
|
zhTW: () => zh_TW_default
|
|
4058
4087
|
});
|
|
4059
4088
|
|
|
4060
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4089
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ar.js
|
|
4061
4090
|
var error = () => {
|
|
4062
4091
|
const Sizable = {
|
|
4063
4092
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4174,7 +4203,7 @@ function ar_default() {
|
|
|
4174
4203
|
};
|
|
4175
4204
|
}
|
|
4176
4205
|
|
|
4177
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4206
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/az.js
|
|
4178
4207
|
var error2 = () => {
|
|
4179
4208
|
const Sizable = {
|
|
4180
4209
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4290,7 +4319,7 @@ function az_default() {
|
|
|
4290
4319
|
};
|
|
4291
4320
|
}
|
|
4292
4321
|
|
|
4293
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4322
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/be.js
|
|
4294
4323
|
function getBelarusianPlural(count, one, few, many) {
|
|
4295
4324
|
const absCount = Math.abs(count);
|
|
4296
4325
|
const lastDigit = absCount % 10;
|
|
@@ -4455,7 +4484,7 @@ function be_default() {
|
|
|
4455
4484
|
};
|
|
4456
4485
|
}
|
|
4457
4486
|
|
|
4458
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4487
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/bg.js
|
|
4459
4488
|
var parsedType = (data) => {
|
|
4460
4489
|
const t = typeof data;
|
|
4461
4490
|
switch (t) {
|
|
@@ -4584,7 +4613,7 @@ function bg_default() {
|
|
|
4584
4613
|
};
|
|
4585
4614
|
}
|
|
4586
4615
|
|
|
4587
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4616
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ca.js
|
|
4588
4617
|
var error5 = () => {
|
|
4589
4618
|
const Sizable = {
|
|
4590
4619
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -4704,7 +4733,7 @@ function ca_default() {
|
|
|
4704
4733
|
};
|
|
4705
4734
|
}
|
|
4706
4735
|
|
|
4707
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4736
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/cs.js
|
|
4708
4737
|
var error6 = () => {
|
|
4709
4738
|
const Sizable = {
|
|
4710
4739
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -4840,7 +4869,7 @@ function cs_default() {
|
|
|
4840
4869
|
};
|
|
4841
4870
|
}
|
|
4842
4871
|
|
|
4843
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4872
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/da.js
|
|
4844
4873
|
var error7 = () => {
|
|
4845
4874
|
const Sizable = {
|
|
4846
4875
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -4972,7 +5001,7 @@ function da_default() {
|
|
|
4972
5001
|
};
|
|
4973
5002
|
}
|
|
4974
5003
|
|
|
4975
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5004
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/de.js
|
|
4976
5005
|
var error8 = () => {
|
|
4977
5006
|
const Sizable = {
|
|
4978
5007
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5089,7 +5118,7 @@ function de_default() {
|
|
|
5089
5118
|
};
|
|
5090
5119
|
}
|
|
5091
5120
|
|
|
5092
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5121
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/en.js
|
|
5093
5122
|
var parsedType2 = (data) => {
|
|
5094
5123
|
const t = typeof data;
|
|
5095
5124
|
switch (t) {
|
|
@@ -5141,6 +5170,7 @@ var error9 = () => {
|
|
|
5141
5170
|
duration: "ISO duration",
|
|
5142
5171
|
ipv4: "IPv4 address",
|
|
5143
5172
|
ipv6: "IPv6 address",
|
|
5173
|
+
mac: "MAC address",
|
|
5144
5174
|
cidrv4: "IPv4 range",
|
|
5145
5175
|
cidrv6: "IPv6 range",
|
|
5146
5176
|
base64: "base64-encoded string",
|
|
@@ -5207,7 +5237,7 @@ function en_default() {
|
|
|
5207
5237
|
};
|
|
5208
5238
|
}
|
|
5209
5239
|
|
|
5210
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5240
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/eo.js
|
|
5211
5241
|
var parsedType3 = (data) => {
|
|
5212
5242
|
const t = typeof data;
|
|
5213
5243
|
switch (t) {
|
|
@@ -5324,7 +5354,7 @@ function eo_default() {
|
|
|
5324
5354
|
};
|
|
5325
5355
|
}
|
|
5326
5356
|
|
|
5327
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5357
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/es.js
|
|
5328
5358
|
var error11 = () => {
|
|
5329
5359
|
const Sizable = {
|
|
5330
5360
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -5474,7 +5504,7 @@ function es_default() {
|
|
|
5474
5504
|
};
|
|
5475
5505
|
}
|
|
5476
5506
|
|
|
5477
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5507
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fa.js
|
|
5478
5508
|
var error12 = () => {
|
|
5479
5509
|
const Sizable = {
|
|
5480
5510
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5597,7 +5627,7 @@ function fa_default() {
|
|
|
5597
5627
|
};
|
|
5598
5628
|
}
|
|
5599
5629
|
|
|
5600
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5630
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fi.js
|
|
5601
5631
|
var error13 = () => {
|
|
5602
5632
|
const Sizable = {
|
|
5603
5633
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -5720,7 +5750,7 @@ function fi_default() {
|
|
|
5720
5750
|
};
|
|
5721
5751
|
}
|
|
5722
5752
|
|
|
5723
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5753
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr.js
|
|
5724
5754
|
var error14 = () => {
|
|
5725
5755
|
const Sizable = {
|
|
5726
5756
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5837,7 +5867,7 @@ function fr_default() {
|
|
|
5837
5867
|
};
|
|
5838
5868
|
}
|
|
5839
5869
|
|
|
5840
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5870
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr-CA.js
|
|
5841
5871
|
var error15 = () => {
|
|
5842
5872
|
const Sizable = {
|
|
5843
5873
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5955,113 +5985,203 @@ function fr_CA_default() {
|
|
|
5955
5985
|
};
|
|
5956
5986
|
}
|
|
5957
5987
|
|
|
5958
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5988
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/he.js
|
|
5959
5989
|
var error16 = () => {
|
|
5960
|
-
const
|
|
5961
|
-
string: {
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5990
|
+
const TypeNames = {
|
|
5991
|
+
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
5992
|
+
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
5993
|
+
boolean: { label: "\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9", gender: "m" },
|
|
5994
|
+
bigint: { label: "BigInt", gender: "m" },
|
|
5995
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA", gender: "m" },
|
|
5996
|
+
array: { label: "\u05DE\u05E2\u05E8\u05DA", gender: "m" },
|
|
5997
|
+
object: { label: "\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8", gender: "m" },
|
|
5998
|
+
null: { label: "\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)", gender: "m" },
|
|
5999
|
+
undefined: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)", gender: "m" },
|
|
6000
|
+
symbol: { label: "\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)", gender: "m" },
|
|
6001
|
+
function: { label: "\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4", gender: "f" },
|
|
6002
|
+
map: { label: "\u05DE\u05E4\u05D4 (Map)", gender: "f" },
|
|
6003
|
+
set: { label: "\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)", gender: "f" },
|
|
6004
|
+
file: { label: "\u05E7\u05D5\u05D1\u05E5", gender: "m" },
|
|
6005
|
+
promise: { label: "Promise", gender: "m" },
|
|
6006
|
+
NaN: { label: "NaN", gender: "m" },
|
|
6007
|
+
unknown: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2", gender: "m" },
|
|
6008
|
+
value: { label: "\u05E2\u05E8\u05DA", gender: "m" }
|
|
5965
6009
|
};
|
|
5966
|
-
|
|
6010
|
+
const Sizable = {
|
|
6011
|
+
string: { unit: "\u05EA\u05D5\u05D5\u05D9\u05DD", shortLabel: "\u05E7\u05E6\u05E8", longLabel: "\u05D0\u05E8\u05D5\u05DA" },
|
|
6012
|
+
file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
6013
|
+
array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
6014
|
+
set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
6015
|
+
number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
|
|
6016
|
+
// no unit
|
|
6017
|
+
};
|
|
6018
|
+
const typeEntry = (t) => t ? TypeNames[t] : void 0;
|
|
6019
|
+
const typeLabel = (t) => {
|
|
6020
|
+
const e = typeEntry(t);
|
|
6021
|
+
if (e)
|
|
6022
|
+
return e.label;
|
|
6023
|
+
return t ?? TypeNames.unknown.label;
|
|
6024
|
+
};
|
|
6025
|
+
const withDefinite = (t) => `\u05D4${typeLabel(t)}`;
|
|
6026
|
+
const verbFor = (t) => {
|
|
6027
|
+
const e = typeEntry(t);
|
|
6028
|
+
const gender = e?.gender ?? "m";
|
|
6029
|
+
return gender === "f" ? "\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA" : "\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA";
|
|
6030
|
+
};
|
|
6031
|
+
const getSizing = (origin) => {
|
|
6032
|
+
if (!origin)
|
|
6033
|
+
return null;
|
|
5967
6034
|
return Sizable[origin] ?? null;
|
|
5968
|
-
}
|
|
6035
|
+
};
|
|
5969
6036
|
const parsedType8 = (data) => {
|
|
5970
6037
|
const t = typeof data;
|
|
5971
6038
|
switch (t) {
|
|
5972
|
-
case "number":
|
|
6039
|
+
case "number":
|
|
5973
6040
|
return Number.isNaN(data) ? "NaN" : "number";
|
|
5974
|
-
}
|
|
5975
6041
|
case "object": {
|
|
5976
|
-
if (Array.isArray(data))
|
|
6042
|
+
if (Array.isArray(data))
|
|
5977
6043
|
return "array";
|
|
5978
|
-
|
|
5979
|
-
if (data === null) {
|
|
6044
|
+
if (data === null)
|
|
5980
6045
|
return "null";
|
|
5981
|
-
}
|
|
5982
6046
|
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5983
6047
|
return data.constructor.name;
|
|
5984
6048
|
}
|
|
6049
|
+
return "object";
|
|
5985
6050
|
}
|
|
6051
|
+
default:
|
|
6052
|
+
return t;
|
|
5986
6053
|
}
|
|
5987
|
-
return t;
|
|
5988
6054
|
};
|
|
5989
6055
|
const Nouns = {
|
|
5990
|
-
regex: "\u05E7\u05DC\u05D8",
|
|
5991
|
-
email: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",
|
|
5992
|
-
url: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",
|
|
5993
|
-
emoji: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",
|
|
5994
|
-
uuid: "UUID",
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6056
|
+
regex: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6057
|
+
email: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", gender: "f" },
|
|
6058
|
+
url: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA", gender: "f" },
|
|
6059
|
+
emoji: { label: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9", gender: "m" },
|
|
6060
|
+
uuid: { label: "UUID", gender: "m" },
|
|
6061
|
+
nanoid: { label: "nanoid", gender: "m" },
|
|
6062
|
+
guid: { label: "GUID", gender: "m" },
|
|
6063
|
+
cuid: { label: "cuid", gender: "m" },
|
|
6064
|
+
cuid2: { label: "cuid2", gender: "m" },
|
|
6065
|
+
ulid: { label: "ULID", gender: "m" },
|
|
6066
|
+
xid: { label: "XID", gender: "m" },
|
|
6067
|
+
ksuid: { label: "KSUID", gender: "m" },
|
|
6068
|
+
datetime: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
6069
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO", gender: "m" },
|
|
6070
|
+
time: { label: "\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
6071
|
+
duration: { label: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
6072
|
+
ipv4: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4", gender: "f" },
|
|
6073
|
+
ipv6: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6", gender: "f" },
|
|
6074
|
+
cidrv4: { label: "\u05D8\u05D5\u05D5\u05D7 IPv4", gender: "m" },
|
|
6075
|
+
cidrv6: { label: "\u05D8\u05D5\u05D5\u05D7 IPv6", gender: "m" },
|
|
6076
|
+
base64: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64", gender: "f" },
|
|
6077
|
+
base64url: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA", gender: "f" },
|
|
6078
|
+
json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
|
|
6079
|
+
e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
|
|
6080
|
+
jwt: { label: "JWT", gender: "m" },
|
|
6081
|
+
ends_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6082
|
+
includes: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6083
|
+
lowercase: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6084
|
+
starts_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6085
|
+
uppercase: { label: "\u05E7\u05DC\u05D8", gender: "m" }
|
|
6018
6086
|
};
|
|
6019
6087
|
return (issue2) => {
|
|
6020
6088
|
switch (issue2.code) {
|
|
6021
|
-
case "invalid_type":
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6089
|
+
case "invalid_type": {
|
|
6090
|
+
const expectedKey = issue2.expected;
|
|
6091
|
+
const expected = typeLabel(expectedKey);
|
|
6092
|
+
const receivedKey = parsedType8(issue2.input);
|
|
6093
|
+
const received = TypeNames[receivedKey]?.label ?? receivedKey;
|
|
6094
|
+
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}`;
|
|
6095
|
+
}
|
|
6096
|
+
case "invalid_value": {
|
|
6097
|
+
if (issue2.values.length === 1) {
|
|
6098
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${stringifyPrimitive(issue2.values[0])}`;
|
|
6099
|
+
}
|
|
6100
|
+
const stringified = issue2.values.map((v) => stringifyPrimitive(v));
|
|
6101
|
+
if (issue2.values.length === 2) {
|
|
6102
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${stringified[0]} \u05D0\u05D5 ${stringified[1]}`;
|
|
6103
|
+
}
|
|
6104
|
+
const lastValue = stringified[stringified.length - 1];
|
|
6105
|
+
const restValues = stringified.slice(0, -1).join(", ");
|
|
6106
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${restValues} \u05D0\u05D5 ${lastValue}`;
|
|
6107
|
+
}
|
|
6028
6108
|
case "too_big": {
|
|
6029
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
6030
6109
|
const sizing = getSizing(issue2.origin);
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6110
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
6111
|
+
if (issue2.origin === "string") {
|
|
6112
|
+
return `${sizing?.longLabel ?? "\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.maximum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA" : "\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();
|
|
6113
|
+
}
|
|
6114
|
+
if (issue2.origin === "number") {
|
|
6115
|
+
const comparison = issue2.inclusive ? `\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.maximum}` : `\u05E7\u05D8\u05DF \u05DE-${issue2.maximum}`;
|
|
6116
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
6117
|
+
}
|
|
6118
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
6119
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
6120
|
+
const comparison = issue2.inclusive ? `${issue2.maximum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA` : `\u05E4\u05D7\u05D5\u05EA \u05DE-${issue2.maximum} ${sizing?.unit ?? ""}`;
|
|
6121
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
6122
|
+
}
|
|
6123
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6124
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
6125
|
+
if (sizing?.unit) {
|
|
6126
|
+
return `${sizing.longLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()} ${sizing.unit}`;
|
|
6127
|
+
}
|
|
6128
|
+
return `${sizing?.longLabel ?? "\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()}`;
|
|
6034
6129
|
}
|
|
6035
6130
|
case "too_small": {
|
|
6036
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
6037
6131
|
const sizing = getSizing(issue2.origin);
|
|
6038
|
-
|
|
6039
|
-
|
|
6132
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
6133
|
+
if (issue2.origin === "string") {
|
|
6134
|
+
return `${sizing?.shortLabel ?? "\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.minimum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8" : "\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();
|
|
6135
|
+
}
|
|
6136
|
+
if (issue2.origin === "number") {
|
|
6137
|
+
const comparison = issue2.inclusive ? `\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.minimum}` : `\u05D2\u05D3\u05D5\u05DC \u05DE-${issue2.minimum}`;
|
|
6138
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
6139
|
+
}
|
|
6140
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
6141
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
6142
|
+
if (issue2.minimum === 1 && issue2.inclusive) {
|
|
6143
|
+
const singularPhrase = issue2.origin === "set" ? "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3" : "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3";
|
|
6144
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${singularPhrase}`;
|
|
6145
|
+
}
|
|
6146
|
+
const comparison = issue2.inclusive ? `${issue2.minimum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8` : `\u05D9\u05D5\u05EA\u05E8 \u05DE-${issue2.minimum} ${sizing?.unit ?? ""}`;
|
|
6147
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
6040
6148
|
}
|
|
6041
|
-
|
|
6149
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6150
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
6151
|
+
if (sizing?.unit) {
|
|
6152
|
+
return `${sizing.shortLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6153
|
+
}
|
|
6154
|
+
return `${sizing?.shortLabel ?? "\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()}`;
|
|
6042
6155
|
}
|
|
6043
6156
|
case "invalid_format": {
|
|
6044
6157
|
const _issue = issue2;
|
|
6045
6158
|
if (_issue.format === "starts_with")
|
|
6046
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6159
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${_issue.prefix}"`;
|
|
6047
6160
|
if (_issue.format === "ends_with")
|
|
6048
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6161
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;
|
|
6049
6162
|
if (_issue.format === "includes")
|
|
6050
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6163
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
|
|
6051
6164
|
if (_issue.format === "regex")
|
|
6052
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6053
|
-
|
|
6165
|
+
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}`;
|
|
6166
|
+
const nounEntry = Nouns[_issue.format];
|
|
6167
|
+
const noun = nounEntry?.label ?? _issue.format;
|
|
6168
|
+
const gender = nounEntry?.gender ?? "m";
|
|
6169
|
+
const adjective = gender === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF";
|
|
6170
|
+
return `${noun} \u05DC\u05D0 ${adjective}`;
|
|
6054
6171
|
}
|
|
6055
6172
|
case "not_multiple_of":
|
|
6056
6173
|
return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${issue2.divisor}`;
|
|
6057
6174
|
case "unrecognized_keys":
|
|
6058
6175
|
return `\u05DE\u05E4\u05EA\u05D7${issue2.keys.length > 1 ? "\u05D5\u05EA" : ""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${issue2.keys.length > 1 ? "\u05D9\u05DD" : "\u05D4"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6059
|
-
case "invalid_key":
|
|
6060
|
-
return `\
|
|
6176
|
+
case "invalid_key": {
|
|
6177
|
+
return `\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8`;
|
|
6178
|
+
}
|
|
6061
6179
|
case "invalid_union":
|
|
6062
6180
|
return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
|
|
6063
|
-
case "invalid_element":
|
|
6064
|
-
|
|
6181
|
+
case "invalid_element": {
|
|
6182
|
+
const place = withDefinite(issue2.origin ?? "array");
|
|
6183
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${place}`;
|
|
6184
|
+
}
|
|
6065
6185
|
default:
|
|
6066
6186
|
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
|
|
6067
6187
|
}
|
|
@@ -6073,7 +6193,7 @@ function he_default() {
|
|
|
6073
6193
|
};
|
|
6074
6194
|
}
|
|
6075
6195
|
|
|
6076
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6196
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/hu.js
|
|
6077
6197
|
var error17 = () => {
|
|
6078
6198
|
const Sizable = {
|
|
6079
6199
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -6191,7 +6311,7 @@ function hu_default() {
|
|
|
6191
6311
|
};
|
|
6192
6312
|
}
|
|
6193
6313
|
|
|
6194
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6314
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/id.js
|
|
6195
6315
|
var error18 = () => {
|
|
6196
6316
|
const Sizable = {
|
|
6197
6317
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -6308,7 +6428,7 @@ function id_default() {
|
|
|
6308
6428
|
};
|
|
6309
6429
|
}
|
|
6310
6430
|
|
|
6311
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6431
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/is.js
|
|
6312
6432
|
var parsedType4 = (data) => {
|
|
6313
6433
|
const t = typeof data;
|
|
6314
6434
|
switch (t) {
|
|
@@ -6426,7 +6546,7 @@ function is_default() {
|
|
|
6426
6546
|
};
|
|
6427
6547
|
}
|
|
6428
6548
|
|
|
6429
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6549
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/it.js
|
|
6430
6550
|
var error20 = () => {
|
|
6431
6551
|
const Sizable = {
|
|
6432
6552
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -6544,7 +6664,7 @@ function it_default() {
|
|
|
6544
6664
|
};
|
|
6545
6665
|
}
|
|
6546
6666
|
|
|
6547
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6667
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ja.js
|
|
6548
6668
|
var error21 = () => {
|
|
6549
6669
|
const Sizable = {
|
|
6550
6670
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -6660,7 +6780,7 @@ function ja_default() {
|
|
|
6660
6780
|
};
|
|
6661
6781
|
}
|
|
6662
6782
|
|
|
6663
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6783
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ka.js
|
|
6664
6784
|
var parsedType5 = (data) => {
|
|
6665
6785
|
const t = typeof data;
|
|
6666
6786
|
switch (t) {
|
|
@@ -6786,7 +6906,7 @@ function ka_default() {
|
|
|
6786
6906
|
};
|
|
6787
6907
|
}
|
|
6788
6908
|
|
|
6789
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6909
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/km.js
|
|
6790
6910
|
var error23 = () => {
|
|
6791
6911
|
const Sizable = {
|
|
6792
6912
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -6904,12 +7024,12 @@ function km_default() {
|
|
|
6904
7024
|
};
|
|
6905
7025
|
}
|
|
6906
7026
|
|
|
6907
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7027
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/kh.js
|
|
6908
7028
|
function kh_default() {
|
|
6909
7029
|
return km_default();
|
|
6910
7030
|
}
|
|
6911
7031
|
|
|
6912
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7032
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ko.js
|
|
6913
7033
|
var error24 = () => {
|
|
6914
7034
|
const Sizable = {
|
|
6915
7035
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -7031,7 +7151,7 @@ function ko_default() {
|
|
|
7031
7151
|
};
|
|
7032
7152
|
}
|
|
7033
7153
|
|
|
7034
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7154
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/lt.js
|
|
7035
7155
|
var parsedType6 = (data) => {
|
|
7036
7156
|
const t = typeof data;
|
|
7037
7157
|
return parsedTypeFromType(t, data);
|
|
@@ -7262,7 +7382,7 @@ function lt_default() {
|
|
|
7262
7382
|
};
|
|
7263
7383
|
}
|
|
7264
7384
|
|
|
7265
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7385
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/mk.js
|
|
7266
7386
|
var error26 = () => {
|
|
7267
7387
|
const Sizable = {
|
|
7268
7388
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7381,7 +7501,7 @@ function mk_default() {
|
|
|
7381
7501
|
};
|
|
7382
7502
|
}
|
|
7383
7503
|
|
|
7384
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7504
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ms.js
|
|
7385
7505
|
var error27 = () => {
|
|
7386
7506
|
const Sizable = {
|
|
7387
7507
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -7498,13 +7618,13 @@ function ms_default() {
|
|
|
7498
7618
|
};
|
|
7499
7619
|
}
|
|
7500
7620
|
|
|
7501
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7621
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/nl.js
|
|
7502
7622
|
var error28 = () => {
|
|
7503
7623
|
const Sizable = {
|
|
7504
|
-
string: { unit: "tekens" },
|
|
7505
|
-
file: { unit: "bytes" },
|
|
7506
|
-
array: { unit: "elementen" },
|
|
7507
|
-
set: { unit: "elementen" }
|
|
7624
|
+
string: { unit: "tekens", verb: "te hebben" },
|
|
7625
|
+
file: { unit: "bytes", verb: "te hebben" },
|
|
7626
|
+
array: { unit: "elementen", verb: "te hebben" },
|
|
7627
|
+
set: { unit: "elementen", verb: "te hebben" }
|
|
7508
7628
|
};
|
|
7509
7629
|
function getSizing(origin) {
|
|
7510
7630
|
return Sizable[origin] ?? null;
|
|
@@ -7571,16 +7691,16 @@ var error28 = () => {
|
|
|
7571
7691
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7572
7692
|
const sizing = getSizing(issue2.origin);
|
|
7573
7693
|
if (sizing)
|
|
7574
|
-
return `Te
|
|
7575
|
-
return `Te
|
|
7694
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"}`;
|
|
7695
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
|
|
7576
7696
|
}
|
|
7577
7697
|
case "too_small": {
|
|
7578
7698
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7579
7699
|
const sizing = getSizing(issue2.origin);
|
|
7580
7700
|
if (sizing) {
|
|
7581
|
-
return `Te
|
|
7701
|
+
return `Te klein: verwacht dat ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7582
7702
|
}
|
|
7583
|
-
return `Te
|
|
7703
|
+
return `Te klein: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
|
|
7584
7704
|
}
|
|
7585
7705
|
case "invalid_format": {
|
|
7586
7706
|
const _issue = issue2;
|
|
@@ -7616,7 +7736,7 @@ function nl_default() {
|
|
|
7616
7736
|
};
|
|
7617
7737
|
}
|
|
7618
7738
|
|
|
7619
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7739
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/no.js
|
|
7620
7740
|
var error29 = () => {
|
|
7621
7741
|
const Sizable = {
|
|
7622
7742
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -7733,7 +7853,7 @@ function no_default() {
|
|
|
7733
7853
|
};
|
|
7734
7854
|
}
|
|
7735
7855
|
|
|
7736
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7856
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ota.js
|
|
7737
7857
|
var error30 = () => {
|
|
7738
7858
|
const Sizable = {
|
|
7739
7859
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7851,7 +7971,7 @@ function ota_default() {
|
|
|
7851
7971
|
};
|
|
7852
7972
|
}
|
|
7853
7973
|
|
|
7854
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7974
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ps.js
|
|
7855
7975
|
var error31 = () => {
|
|
7856
7976
|
const Sizable = {
|
|
7857
7977
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -7974,7 +8094,7 @@ function ps_default() {
|
|
|
7974
8094
|
};
|
|
7975
8095
|
}
|
|
7976
8096
|
|
|
7977
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8097
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pl.js
|
|
7978
8098
|
var error32 = () => {
|
|
7979
8099
|
const Sizable = {
|
|
7980
8100
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -8092,7 +8212,7 @@ function pl_default() {
|
|
|
8092
8212
|
};
|
|
8093
8213
|
}
|
|
8094
8214
|
|
|
8095
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8215
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pt.js
|
|
8096
8216
|
var error33 = () => {
|
|
8097
8217
|
const Sizable = {
|
|
8098
8218
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -8209,7 +8329,7 @@ function pt_default() {
|
|
|
8209
8329
|
};
|
|
8210
8330
|
}
|
|
8211
8331
|
|
|
8212
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8332
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ru.js
|
|
8213
8333
|
function getRussianPlural(count, one, few, many) {
|
|
8214
8334
|
const absCount = Math.abs(count);
|
|
8215
8335
|
const lastDigit = absCount % 10;
|
|
@@ -8374,7 +8494,7 @@ function ru_default() {
|
|
|
8374
8494
|
};
|
|
8375
8495
|
}
|
|
8376
8496
|
|
|
8377
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8497
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sl.js
|
|
8378
8498
|
var error35 = () => {
|
|
8379
8499
|
const Sizable = {
|
|
8380
8500
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -8492,7 +8612,7 @@ function sl_default() {
|
|
|
8492
8612
|
};
|
|
8493
8613
|
}
|
|
8494
8614
|
|
|
8495
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8615
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sv.js
|
|
8496
8616
|
var error36 = () => {
|
|
8497
8617
|
const Sizable = {
|
|
8498
8618
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -8611,7 +8731,7 @@ function sv_default() {
|
|
|
8611
8731
|
};
|
|
8612
8732
|
}
|
|
8613
8733
|
|
|
8614
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8734
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ta.js
|
|
8615
8735
|
var error37 = () => {
|
|
8616
8736
|
const Sizable = {
|
|
8617
8737
|
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" },
|
|
@@ -8729,7 +8849,7 @@ function ta_default() {
|
|
|
8729
8849
|
};
|
|
8730
8850
|
}
|
|
8731
8851
|
|
|
8732
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8852
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/th.js
|
|
8733
8853
|
var error38 = () => {
|
|
8734
8854
|
const Sizable = {
|
|
8735
8855
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -8847,7 +8967,7 @@ function th_default() {
|
|
|
8847
8967
|
};
|
|
8848
8968
|
}
|
|
8849
8969
|
|
|
8850
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8970
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/tr.js
|
|
8851
8971
|
var parsedType7 = (data) => {
|
|
8852
8972
|
const t = typeof data;
|
|
8853
8973
|
switch (t) {
|
|
@@ -8963,7 +9083,7 @@ function tr_default() {
|
|
|
8963
9083
|
};
|
|
8964
9084
|
}
|
|
8965
9085
|
|
|
8966
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9086
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/uk.js
|
|
8967
9087
|
var error40 = () => {
|
|
8968
9088
|
const Sizable = {
|
|
8969
9089
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9081,12 +9201,12 @@ function uk_default() {
|
|
|
9081
9201
|
};
|
|
9082
9202
|
}
|
|
9083
9203
|
|
|
9084
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9204
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ua.js
|
|
9085
9205
|
function ua_default() {
|
|
9086
9206
|
return uk_default();
|
|
9087
9207
|
}
|
|
9088
9208
|
|
|
9089
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9209
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ur.js
|
|
9090
9210
|
var error41 = () => {
|
|
9091
9211
|
const Sizable = {
|
|
9092
9212
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9204,7 +9324,7 @@ function ur_default() {
|
|
|
9204
9324
|
};
|
|
9205
9325
|
}
|
|
9206
9326
|
|
|
9207
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9327
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/vi.js
|
|
9208
9328
|
var error42 = () => {
|
|
9209
9329
|
const Sizable = {
|
|
9210
9330
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -9321,7 +9441,7 @@ function vi_default() {
|
|
|
9321
9441
|
};
|
|
9322
9442
|
}
|
|
9323
9443
|
|
|
9324
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9444
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-CN.js
|
|
9325
9445
|
var error43 = () => {
|
|
9326
9446
|
const Sizable = {
|
|
9327
9447
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -9438,7 +9558,7 @@ function zh_CN_default() {
|
|
|
9438
9558
|
};
|
|
9439
9559
|
}
|
|
9440
9560
|
|
|
9441
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9561
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-TW.js
|
|
9442
9562
|
var error44 = () => {
|
|
9443
9563
|
const Sizable = {
|
|
9444
9564
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -9556,7 +9676,7 @@ function zh_TW_default() {
|
|
|
9556
9676
|
};
|
|
9557
9677
|
}
|
|
9558
9678
|
|
|
9559
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9679
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/yo.js
|
|
9560
9680
|
var error45 = () => {
|
|
9561
9681
|
const Sizable = {
|
|
9562
9682
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -9672,7 +9792,8 @@ function yo_default() {
|
|
|
9672
9792
|
};
|
|
9673
9793
|
}
|
|
9674
9794
|
|
|
9675
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9795
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js
|
|
9796
|
+
var _a;
|
|
9676
9797
|
var $output = Symbol("ZodOutput");
|
|
9677
9798
|
var $input = Symbol("ZodInput");
|
|
9678
9799
|
var $ZodRegistry = class {
|
|
@@ -9681,13 +9802,13 @@ var $ZodRegistry = class {
|
|
|
9681
9802
|
this._idmap = /* @__PURE__ */ new Map();
|
|
9682
9803
|
}
|
|
9683
9804
|
add(schema, ..._meta) {
|
|
9684
|
-
const
|
|
9685
|
-
this._map.set(schema,
|
|
9686
|
-
if (
|
|
9687
|
-
if (this._idmap.has(
|
|
9688
|
-
throw new Error(`ID ${
|
|
9805
|
+
const meta3 = _meta[0];
|
|
9806
|
+
this._map.set(schema, meta3);
|
|
9807
|
+
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
9808
|
+
if (this._idmap.has(meta3.id)) {
|
|
9809
|
+
throw new Error(`ID ${meta3.id} already exists in the registry`);
|
|
9689
9810
|
}
|
|
9690
|
-
this._idmap.set(
|
|
9811
|
+
this._idmap.set(meta3.id, schema);
|
|
9691
9812
|
}
|
|
9692
9813
|
return this;
|
|
9693
9814
|
}
|
|
@@ -9697,9 +9818,9 @@ var $ZodRegistry = class {
|
|
|
9697
9818
|
return this;
|
|
9698
9819
|
}
|
|
9699
9820
|
remove(schema) {
|
|
9700
|
-
const
|
|
9701
|
-
if (
|
|
9702
|
-
this._idmap.delete(
|
|
9821
|
+
const meta3 = this._map.get(schema);
|
|
9822
|
+
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
9823
|
+
this._idmap.delete(meta3.id);
|
|
9703
9824
|
}
|
|
9704
9825
|
this._map.delete(schema);
|
|
9705
9826
|
return this;
|
|
@@ -9721,9 +9842,10 @@ var $ZodRegistry = class {
|
|
|
9721
9842
|
function registry() {
|
|
9722
9843
|
return new $ZodRegistry();
|
|
9723
9844
|
}
|
|
9724
|
-
|
|
9845
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
9846
|
+
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
9725
9847
|
|
|
9726
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9848
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js
|
|
9727
9849
|
function _string(Class2, params) {
|
|
9728
9850
|
return new Class2({
|
|
9729
9851
|
type: "string",
|
|
@@ -9884,6 +10006,15 @@ function _ipv6(Class2, params) {
|
|
|
9884
10006
|
...normalizeParams(params)
|
|
9885
10007
|
});
|
|
9886
10008
|
}
|
|
10009
|
+
function _mac(Class2, params) {
|
|
10010
|
+
return new Class2({
|
|
10011
|
+
type: "string",
|
|
10012
|
+
format: "mac",
|
|
10013
|
+
check: "string_format",
|
|
10014
|
+
abort: false,
|
|
10015
|
+
...normalizeParams(params)
|
|
10016
|
+
});
|
|
10017
|
+
}
|
|
9887
10018
|
function _cidrv4(Class2, params) {
|
|
9888
10019
|
return new Class2({
|
|
9889
10020
|
type: "string",
|
|
@@ -10317,6 +10448,9 @@ function _toLowerCase() {
|
|
|
10317
10448
|
function _toUpperCase() {
|
|
10318
10449
|
return _overwrite((input) => input.toUpperCase());
|
|
10319
10450
|
}
|
|
10451
|
+
function _slugify() {
|
|
10452
|
+
return _overwrite((input) => slugify(input));
|
|
10453
|
+
}
|
|
10320
10454
|
function _array(Class2, element, params) {
|
|
10321
10455
|
return new Class2({
|
|
10322
10456
|
type: "array",
|
|
@@ -10538,6 +10672,30 @@ function _check(fn, params) {
|
|
|
10538
10672
|
ch._zod.check = fn;
|
|
10539
10673
|
return ch;
|
|
10540
10674
|
}
|
|
10675
|
+
function describe(description) {
|
|
10676
|
+
const ch = new $ZodCheck({ check: "describe" });
|
|
10677
|
+
ch._zod.onattach = [
|
|
10678
|
+
(inst) => {
|
|
10679
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
10680
|
+
globalRegistry.add(inst, { ...existing, description });
|
|
10681
|
+
}
|
|
10682
|
+
];
|
|
10683
|
+
ch._zod.check = () => {
|
|
10684
|
+
};
|
|
10685
|
+
return ch;
|
|
10686
|
+
}
|
|
10687
|
+
function meta(metadata) {
|
|
10688
|
+
const ch = new $ZodCheck({ check: "meta" });
|
|
10689
|
+
ch._zod.onattach = [
|
|
10690
|
+
(inst) => {
|
|
10691
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
10692
|
+
globalRegistry.add(inst, { ...existing, ...metadata });
|
|
10693
|
+
}
|
|
10694
|
+
];
|
|
10695
|
+
ch._zod.check = () => {
|
|
10696
|
+
};
|
|
10697
|
+
return ch;
|
|
10698
|
+
}
|
|
10541
10699
|
function _stringbool(Classes, _params) {
|
|
10542
10700
|
const params = normalizeParams(_params);
|
|
10543
10701
|
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
@@ -10605,7 +10763,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
10605
10763
|
return inst;
|
|
10606
10764
|
}
|
|
10607
10765
|
|
|
10608
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10766
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/to-json-schema.js
|
|
10609
10767
|
var JSONSchemaGenerator = class {
|
|
10610
10768
|
constructor(params) {
|
|
10611
10769
|
this.counter = 0;
|
|
@@ -10618,7 +10776,7 @@ var JSONSchemaGenerator = class {
|
|
|
10618
10776
|
this.seen = /* @__PURE__ */ new Map();
|
|
10619
10777
|
}
|
|
10620
10778
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
10621
|
-
var
|
|
10779
|
+
var _a2;
|
|
10622
10780
|
const def = schema._zod.def;
|
|
10623
10781
|
const formatMap = {
|
|
10624
10782
|
guid: "uuid",
|
|
@@ -10834,11 +10992,16 @@ var JSONSchemaGenerator = class {
|
|
|
10834
10992
|
}
|
|
10835
10993
|
case "union": {
|
|
10836
10994
|
const json2 = _json;
|
|
10995
|
+
const isDiscriminated = def.discriminator !== void 0;
|
|
10837
10996
|
const options = def.options.map((x, i) => this.process(x, {
|
|
10838
10997
|
...params,
|
|
10839
|
-
path: [...params.path, "anyOf", i]
|
|
10998
|
+
path: [...params.path, isDiscriminated ? "oneOf" : "anyOf", i]
|
|
10840
10999
|
}));
|
|
10841
|
-
|
|
11000
|
+
if (isDiscriminated) {
|
|
11001
|
+
json2.oneOf = options;
|
|
11002
|
+
} else {
|
|
11003
|
+
json2.anyOf = options;
|
|
11004
|
+
}
|
|
10842
11005
|
break;
|
|
10843
11006
|
}
|
|
10844
11007
|
case "intersection": {
|
|
@@ -11114,15 +11277,15 @@ var JSONSchemaGenerator = class {
|
|
|
11114
11277
|
}
|
|
11115
11278
|
}
|
|
11116
11279
|
}
|
|
11117
|
-
const
|
|
11118
|
-
if (
|
|
11119
|
-
Object.assign(result.schema,
|
|
11280
|
+
const meta3 = this.metadataRegistry.get(schema);
|
|
11281
|
+
if (meta3)
|
|
11282
|
+
Object.assign(result.schema, meta3);
|
|
11120
11283
|
if (this.io === "input" && isTransforming(schema)) {
|
|
11121
11284
|
delete result.schema.examples;
|
|
11122
11285
|
delete result.schema.default;
|
|
11123
11286
|
}
|
|
11124
11287
|
if (this.io === "input" && result.schema._prefault)
|
|
11125
|
-
(
|
|
11288
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
11126
11289
|
delete result.schema._prefault;
|
|
11127
11290
|
const _result = this.seen.get(schema);
|
|
11128
11291
|
return _result.schema;
|
|
@@ -11320,106 +11483,57 @@ function isTransforming(_schema, _ctx) {
|
|
|
11320
11483
|
if (ctx.seen.has(_schema))
|
|
11321
11484
|
return false;
|
|
11322
11485
|
ctx.seen.add(_schema);
|
|
11323
|
-
const
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
case "object": {
|
|
11348
|
-
for (const key in def.shape) {
|
|
11349
|
-
if (isTransforming(def.shape[key], ctx))
|
|
11350
|
-
return true;
|
|
11351
|
-
}
|
|
11352
|
-
return false;
|
|
11353
|
-
}
|
|
11354
|
-
case "union": {
|
|
11355
|
-
for (const option of def.options) {
|
|
11356
|
-
if (isTransforming(option, ctx))
|
|
11357
|
-
return true;
|
|
11358
|
-
}
|
|
11359
|
-
return false;
|
|
11360
|
-
}
|
|
11361
|
-
case "intersection": {
|
|
11362
|
-
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
11363
|
-
}
|
|
11364
|
-
case "tuple": {
|
|
11365
|
-
for (const item of def.items) {
|
|
11366
|
-
if (isTransforming(item, ctx))
|
|
11367
|
-
return true;
|
|
11368
|
-
}
|
|
11369
|
-
if (def.rest && isTransforming(def.rest, ctx))
|
|
11486
|
+
const def = _schema._zod.def;
|
|
11487
|
+
if (def.type === "transform")
|
|
11488
|
+
return true;
|
|
11489
|
+
if (def.type === "array")
|
|
11490
|
+
return isTransforming(def.element, ctx);
|
|
11491
|
+
if (def.type === "set")
|
|
11492
|
+
return isTransforming(def.valueType, ctx);
|
|
11493
|
+
if (def.type === "lazy")
|
|
11494
|
+
return isTransforming(def.getter(), ctx);
|
|
11495
|
+
if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
|
|
11496
|
+
return isTransforming(def.innerType, ctx);
|
|
11497
|
+
}
|
|
11498
|
+
if (def.type === "intersection") {
|
|
11499
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
11500
|
+
}
|
|
11501
|
+
if (def.type === "record" || def.type === "map") {
|
|
11502
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11503
|
+
}
|
|
11504
|
+
if (def.type === "pipe") {
|
|
11505
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11506
|
+
}
|
|
11507
|
+
if (def.type === "object") {
|
|
11508
|
+
for (const key in def.shape) {
|
|
11509
|
+
if (isTransforming(def.shape[key], ctx))
|
|
11370
11510
|
return true;
|
|
11371
|
-
return false;
|
|
11372
11511
|
}
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
-
|
|
11379
|
-
case "set": {
|
|
11380
|
-
return isTransforming(def.valueType, ctx);
|
|
11381
|
-
}
|
|
11382
|
-
// inner types
|
|
11383
|
-
case "promise":
|
|
11384
|
-
case "optional":
|
|
11385
|
-
case "nonoptional":
|
|
11386
|
-
case "nullable":
|
|
11387
|
-
case "readonly":
|
|
11388
|
-
return isTransforming(def.innerType, ctx);
|
|
11389
|
-
case "lazy":
|
|
11390
|
-
return isTransforming(def.getter(), ctx);
|
|
11391
|
-
case "default": {
|
|
11392
|
-
return isTransforming(def.innerType, ctx);
|
|
11393
|
-
}
|
|
11394
|
-
case "prefault": {
|
|
11395
|
-
return isTransforming(def.innerType, ctx);
|
|
11512
|
+
return false;
|
|
11513
|
+
}
|
|
11514
|
+
if (def.type === "union") {
|
|
11515
|
+
for (const option of def.options) {
|
|
11516
|
+
if (isTransforming(option, ctx))
|
|
11517
|
+
return true;
|
|
11396
11518
|
}
|
|
11397
|
-
|
|
11398
|
-
|
|
11519
|
+
return false;
|
|
11520
|
+
}
|
|
11521
|
+
if (def.type === "tuple") {
|
|
11522
|
+
for (const item of def.items) {
|
|
11523
|
+
if (isTransforming(item, ctx))
|
|
11524
|
+
return true;
|
|
11399
11525
|
}
|
|
11400
|
-
|
|
11526
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
11401
11527
|
return true;
|
|
11402
|
-
|
|
11403
|
-
case "pipe": {
|
|
11404
|
-
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11405
|
-
}
|
|
11406
|
-
case "success": {
|
|
11407
|
-
return false;
|
|
11408
|
-
}
|
|
11409
|
-
case "catch": {
|
|
11410
|
-
return false;
|
|
11411
|
-
}
|
|
11412
|
-
case "function": {
|
|
11413
|
-
return false;
|
|
11414
|
-
}
|
|
11528
|
+
return false;
|
|
11415
11529
|
}
|
|
11416
|
-
|
|
11530
|
+
return false;
|
|
11417
11531
|
}
|
|
11418
11532
|
|
|
11419
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11533
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/json-schema.js
|
|
11420
11534
|
var json_schema_exports = {};
|
|
11421
11535
|
|
|
11422
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11536
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/iso.js
|
|
11423
11537
|
var iso_exports = {};
|
|
11424
11538
|
__export(iso_exports, {
|
|
11425
11539
|
ZodISODate: () => ZodISODate,
|
|
@@ -11460,7 +11574,7 @@ function duration2(params) {
|
|
|
11460
11574
|
return _isoDuration(ZodISODuration, params);
|
|
11461
11575
|
}
|
|
11462
11576
|
|
|
11463
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11577
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/errors.js
|
|
11464
11578
|
var initializer2 = (inst, issues) => {
|
|
11465
11579
|
$ZodError.init(inst, issues);
|
|
11466
11580
|
inst.name = "ZodError";
|
|
@@ -11500,7 +11614,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
11500
11614
|
Parent: Error
|
|
11501
11615
|
});
|
|
11502
11616
|
|
|
11503
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11617
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/parse.js
|
|
11504
11618
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
11505
11619
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
11506
11620
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -11514,7 +11628,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
11514
11628
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
11515
11629
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
11516
11630
|
|
|
11517
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11631
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/schemas.js
|
|
11518
11632
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
11519
11633
|
$ZodType.init(inst, def);
|
|
11520
11634
|
inst.def = def;
|
|
@@ -11530,8 +11644,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
11530
11644
|
};
|
|
11531
11645
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
11532
11646
|
inst.brand = () => inst;
|
|
11533
|
-
inst.register = ((reg,
|
|
11534
|
-
reg.add(inst,
|
|
11647
|
+
inst.register = ((reg, meta3) => {
|
|
11648
|
+
reg.add(inst, meta3);
|
|
11535
11649
|
return inst;
|
|
11536
11650
|
});
|
|
11537
11651
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
@@ -11607,6 +11721,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
11607
11721
|
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
11608
11722
|
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
11609
11723
|
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
11724
|
+
inst.slugify = () => inst.check(_slugify());
|
|
11610
11725
|
});
|
|
11611
11726
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
11612
11727
|
$ZodString.init(inst, def);
|
|
@@ -11746,6 +11861,13 @@ var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
|
|
|
11746
11861
|
function ipv42(params) {
|
|
11747
11862
|
return _ipv4(ZodIPv4, params);
|
|
11748
11863
|
}
|
|
11864
|
+
var ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => {
|
|
11865
|
+
$ZodMAC.init(inst, def);
|
|
11866
|
+
ZodStringFormat.init(inst, def);
|
|
11867
|
+
});
|
|
11868
|
+
function mac2(params) {
|
|
11869
|
+
return _mac(ZodMAC, params);
|
|
11870
|
+
}
|
|
11749
11871
|
var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
|
|
11750
11872
|
$ZodIPv6.init(inst, def);
|
|
11751
11873
|
ZodStringFormat.init(inst, def);
|
|
@@ -12456,6 +12578,8 @@ function refine(fn, _params = {}) {
|
|
|
12456
12578
|
function superRefine(fn) {
|
|
12457
12579
|
return _superRefine(fn);
|
|
12458
12580
|
}
|
|
12581
|
+
var describe2 = describe;
|
|
12582
|
+
var meta2 = meta;
|
|
12459
12583
|
function _instanceof(cls, params = {
|
|
12460
12584
|
error: `Input not instance of ${cls.name}`
|
|
12461
12585
|
}) {
|
|
@@ -12484,7 +12608,7 @@ function preprocess(fn, schema) {
|
|
|
12484
12608
|
return pipe(transform(fn), schema);
|
|
12485
12609
|
}
|
|
12486
12610
|
|
|
12487
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12611
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/compat.js
|
|
12488
12612
|
var ZodIssueCode = {
|
|
12489
12613
|
invalid_type: "invalid_type",
|
|
12490
12614
|
too_big: "too_big",
|
|
@@ -12510,7 +12634,7 @@ var ZodFirstPartyTypeKind;
|
|
|
12510
12634
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
12511
12635
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
12512
12636
|
|
|
12513
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12637
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/coerce.js
|
|
12514
12638
|
var coerce_exports = {};
|
|
12515
12639
|
__export(coerce_exports, {
|
|
12516
12640
|
bigint: () => bigint3,
|
|
@@ -12535,7 +12659,7 @@ function date4(params) {
|
|
|
12535
12659
|
return _coercedDate(ZodDate, params);
|
|
12536
12660
|
}
|
|
12537
12661
|
|
|
12538
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12662
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
12539
12663
|
config(en_default());
|
|
12540
12664
|
|
|
12541
12665
|
// src/convert-to-inkeep-messages.ts
|