@jackchuka/gql-ingest 4.2.3 → 4.2.8
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/cli/index.js +127 -132
- package/dist/index.js +1279 -533
- package/dist/index.js.map +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ function createDefaultLogger(verbose = false) {
|
|
|
39
39
|
return verbose ? createConsoleLogger() : noopLogger;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/zod@4.3
|
|
42
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
43
43
|
var external_exports = {};
|
|
44
44
|
__export(external_exports, {
|
|
45
45
|
$brand: () => $brand,
|
|
@@ -101,6 +101,7 @@ __export(external_exports, {
|
|
|
101
101
|
ZodOptional: () => ZodOptional,
|
|
102
102
|
ZodPipe: () => ZodPipe,
|
|
103
103
|
ZodPrefault: () => ZodPrefault,
|
|
104
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
104
105
|
ZodPromise: () => ZodPromise,
|
|
105
106
|
ZodReadonly: () => ZodReadonly,
|
|
106
107
|
ZodRealError: () => ZodRealError,
|
|
@@ -179,6 +180,7 @@ __export(external_exports, {
|
|
|
179
180
|
int32: () => int32,
|
|
180
181
|
int64: () => int64,
|
|
181
182
|
intersection: () => intersection,
|
|
183
|
+
invertCodec: () => invertCodec,
|
|
182
184
|
ipv4: () => ipv42,
|
|
183
185
|
ipv6: () => ipv62,
|
|
184
186
|
iso: () => iso_exports,
|
|
@@ -280,7 +282,7 @@ __export(external_exports, {
|
|
|
280
282
|
xor: () => xor
|
|
281
283
|
});
|
|
282
284
|
|
|
283
|
-
// node_modules/.pnpm/zod@4.3
|
|
285
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
284
286
|
var core_exports2 = {};
|
|
285
287
|
__export(core_exports2, {
|
|
286
288
|
$ZodAny: () => $ZodAny,
|
|
@@ -360,6 +362,7 @@ __export(core_exports2, {
|
|
|
360
362
|
$ZodOptional: () => $ZodOptional,
|
|
361
363
|
$ZodPipe: () => $ZodPipe,
|
|
362
364
|
$ZodPrefault: () => $ZodPrefault,
|
|
365
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
363
366
|
$ZodPromise: () => $ZodPromise,
|
|
364
367
|
$ZodReadonly: () => $ZodReadonly,
|
|
365
368
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -558,8 +561,9 @@ __export(core_exports2, {
|
|
|
558
561
|
version: () => version
|
|
559
562
|
});
|
|
560
563
|
|
|
561
|
-
// node_modules/.pnpm/zod@4.3
|
|
562
|
-
var
|
|
564
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
565
|
+
var _a;
|
|
566
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
563
567
|
status: "aborted"
|
|
564
568
|
});
|
|
565
569
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -594,10 +598,10 @@ function $constructor(name, initializer3, params) {
|
|
|
594
598
|
}
|
|
595
599
|
Object.defineProperty(Definition, "name", { value: name });
|
|
596
600
|
function _(def) {
|
|
597
|
-
var
|
|
601
|
+
var _a3;
|
|
598
602
|
const inst = params?.Parent ? new Definition() : this;
|
|
599
603
|
init(inst, def);
|
|
600
|
-
(
|
|
604
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
601
605
|
for (const fn of inst._zod.deferred) {
|
|
602
606
|
fn();
|
|
603
607
|
}
|
|
@@ -626,14 +630,15 @@ var $ZodEncodeError = class extends Error {
|
|
|
626
630
|
this.name = "ZodEncodeError";
|
|
627
631
|
}
|
|
628
632
|
};
|
|
629
|
-
|
|
633
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
634
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
630
635
|
function config(newConfig) {
|
|
631
636
|
if (newConfig)
|
|
632
637
|
Object.assign(globalConfig, newConfig);
|
|
633
638
|
return globalConfig;
|
|
634
639
|
}
|
|
635
640
|
|
|
636
|
-
// node_modules/.pnpm/zod@4.3
|
|
641
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
637
642
|
var util_exports = {};
|
|
638
643
|
__export(util_exports, {
|
|
639
644
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -659,6 +664,7 @@ __export(util_exports, {
|
|
|
659
664
|
defineLazy: () => defineLazy,
|
|
660
665
|
esc: () => esc,
|
|
661
666
|
escapeRegex: () => escapeRegex,
|
|
667
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
662
668
|
extend: () => extend,
|
|
663
669
|
finalizeIssue: () => finalizeIssue,
|
|
664
670
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -747,19 +753,12 @@ function cleanRegex(source) {
|
|
|
747
753
|
return source.slice(start, end);
|
|
748
754
|
}
|
|
749
755
|
function floatSafeRemainder(val, step) {
|
|
750
|
-
const
|
|
751
|
-
const
|
|
752
|
-
|
|
753
|
-
if (
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
760
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
761
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
762
|
-
return valInt % stepInt / 10 ** decCount;
|
|
756
|
+
const ratio = val / step;
|
|
757
|
+
const roundedRatio = Math.round(ratio);
|
|
758
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
759
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
760
|
+
return 0;
|
|
761
|
+
return ratio - roundedRatio;
|
|
763
762
|
}
|
|
764
763
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
765
764
|
function defineLazy(object2, key, getter) {
|
|
@@ -841,7 +840,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
841
840
|
function isObject(data) {
|
|
842
841
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
843
842
|
}
|
|
844
|
-
var allowsEval = cached(() => {
|
|
843
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
844
|
+
if (globalConfig.jitless) {
|
|
845
|
+
return false;
|
|
846
|
+
}
|
|
845
847
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
846
848
|
return false;
|
|
847
849
|
}
|
|
@@ -874,6 +876,10 @@ function shallowClone(o) {
|
|
|
874
876
|
return { ...o };
|
|
875
877
|
if (Array.isArray(o))
|
|
876
878
|
return [...o];
|
|
879
|
+
if (o instanceof Map)
|
|
880
|
+
return new Map(o);
|
|
881
|
+
if (o instanceof Set)
|
|
882
|
+
return new Set(o);
|
|
877
883
|
return o;
|
|
878
884
|
}
|
|
879
885
|
function numKeys(data) {
|
|
@@ -930,7 +936,14 @@ var getParsedType = (data) => {
|
|
|
930
936
|
}
|
|
931
937
|
};
|
|
932
938
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
933
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
939
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
940
|
+
"string",
|
|
941
|
+
"number",
|
|
942
|
+
"bigint",
|
|
943
|
+
"boolean",
|
|
944
|
+
"symbol",
|
|
945
|
+
"undefined"
|
|
946
|
+
]);
|
|
934
947
|
function escapeRegex(str) {
|
|
935
948
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
936
949
|
}
|
|
@@ -1099,6 +1112,9 @@ function safeExtend(schema, shape) {
|
|
|
1099
1112
|
return clone(schema, def);
|
|
1100
1113
|
}
|
|
1101
1114
|
function merge(a, b) {
|
|
1115
|
+
if (a._zod.def.checks?.length) {
|
|
1116
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1117
|
+
}
|
|
1102
1118
|
const def = mergeDefs(a._zod.def, {
|
|
1103
1119
|
get shape() {
|
|
1104
1120
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1108,8 +1124,7 @@ function merge(a, b) {
|
|
|
1108
1124
|
get catchall() {
|
|
1109
1125
|
return b._zod.def.catchall;
|
|
1110
1126
|
},
|
|
1111
|
-
checks: []
|
|
1112
|
-
// delete existing checks
|
|
1127
|
+
checks: b._zod.def.checks ?? []
|
|
1113
1128
|
});
|
|
1114
1129
|
return clone(a, def);
|
|
1115
1130
|
}
|
|
@@ -1192,10 +1207,20 @@ function aborted(x, startIndex = 0) {
|
|
|
1192
1207
|
}
|
|
1193
1208
|
return false;
|
|
1194
1209
|
}
|
|
1210
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1211
|
+
if (x.aborted === true)
|
|
1212
|
+
return true;
|
|
1213
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1214
|
+
if (x.issues[i]?.continue === false) {
|
|
1215
|
+
return true;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
return false;
|
|
1219
|
+
}
|
|
1195
1220
|
function prefixIssues(path3, issues) {
|
|
1196
1221
|
return issues.map((iss) => {
|
|
1197
|
-
var
|
|
1198
|
-
(
|
|
1222
|
+
var _a3;
|
|
1223
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
1199
1224
|
iss.path.unshift(path3);
|
|
1200
1225
|
return iss;
|
|
1201
1226
|
});
|
|
@@ -1204,17 +1229,14 @@ function unwrapMessage(message) {
|
|
|
1204
1229
|
return typeof message === "string" ? message : message?.message;
|
|
1205
1230
|
}
|
|
1206
1231
|
function finalizeIssue(iss, ctx, config2) {
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1232
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
1233
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1234
|
+
rest.path ?? (rest.path = []);
|
|
1235
|
+
rest.message = message;
|
|
1236
|
+
if (ctx?.reportInput) {
|
|
1237
|
+
rest.input = _input;
|
|
1211
1238
|
}
|
|
1212
|
-
|
|
1213
|
-
delete full.continue;
|
|
1214
|
-
if (!ctx?.reportInput) {
|
|
1215
|
-
delete full.input;
|
|
1216
|
-
}
|
|
1217
|
-
return full;
|
|
1239
|
+
return rest;
|
|
1218
1240
|
}
|
|
1219
1241
|
function getSizableOrigin(input) {
|
|
1220
1242
|
if (input instanceof Set)
|
|
@@ -1312,7 +1334,7 @@ var Class = class {
|
|
|
1312
1334
|
}
|
|
1313
1335
|
};
|
|
1314
1336
|
|
|
1315
|
-
// node_modules/.pnpm/zod@4.3
|
|
1337
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1316
1338
|
var initializer = (inst, def) => {
|
|
1317
1339
|
inst.name = "$ZodError";
|
|
1318
1340
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1331,10 +1353,10 @@ var initializer = (inst, def) => {
|
|
|
1331
1353
|
};
|
|
1332
1354
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1333
1355
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1334
|
-
function flattenError(
|
|
1356
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1335
1357
|
const fieldErrors = {};
|
|
1336
1358
|
const formErrors = [];
|
|
1337
|
-
for (const sub of
|
|
1359
|
+
for (const sub of error51.issues) {
|
|
1338
1360
|
if (sub.path.length > 0) {
|
|
1339
1361
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1340
1362
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1344,50 +1366,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1344
1366
|
}
|
|
1345
1367
|
return { formErrors, fieldErrors };
|
|
1346
1368
|
}
|
|
1347
|
-
function formatError(
|
|
1369
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1348
1370
|
const fieldErrors = { _errors: [] };
|
|
1349
|
-
const processError = (
|
|
1350
|
-
for (const issue2 of
|
|
1371
|
+
const processError = (error52, path3 = []) => {
|
|
1372
|
+
for (const issue2 of error52.issues) {
|
|
1351
1373
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1352
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1374
|
+
issue2.errors.map((issues) => processError({ issues }, [...path3, ...issue2.path]));
|
|
1353
1375
|
} else if (issue2.code === "invalid_key") {
|
|
1354
|
-
processError({ issues: issue2.issues });
|
|
1376
|
+
processError({ issues: issue2.issues }, [...path3, ...issue2.path]);
|
|
1355
1377
|
} else if (issue2.code === "invalid_element") {
|
|
1356
|
-
processError({ issues: issue2.issues });
|
|
1357
|
-
} else if (issue2.path.length === 0) {
|
|
1358
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1378
|
+
processError({ issues: issue2.issues }, [...path3, ...issue2.path]);
|
|
1359
1379
|
} else {
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1380
|
+
const fullpath = [...path3, ...issue2.path];
|
|
1381
|
+
if (fullpath.length === 0) {
|
|
1382
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1383
|
+
} else {
|
|
1384
|
+
let curr = fieldErrors;
|
|
1385
|
+
let i = 0;
|
|
1386
|
+
while (i < fullpath.length) {
|
|
1387
|
+
const el = fullpath[i];
|
|
1388
|
+
const terminal = i === fullpath.length - 1;
|
|
1389
|
+
if (!terminal) {
|
|
1390
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1391
|
+
} else {
|
|
1392
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1393
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1394
|
+
}
|
|
1395
|
+
curr = curr[el];
|
|
1396
|
+
i++;
|
|
1370
1397
|
}
|
|
1371
|
-
curr = curr[el];
|
|
1372
|
-
i++;
|
|
1373
1398
|
}
|
|
1374
1399
|
}
|
|
1375
1400
|
}
|
|
1376
1401
|
};
|
|
1377
|
-
processError(
|
|
1402
|
+
processError(error51);
|
|
1378
1403
|
return fieldErrors;
|
|
1379
1404
|
}
|
|
1380
|
-
function treeifyError(
|
|
1405
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1381
1406
|
const result = { errors: [] };
|
|
1382
|
-
const processError = (
|
|
1383
|
-
var
|
|
1384
|
-
for (const issue2 of
|
|
1407
|
+
const processError = (error52, path3 = []) => {
|
|
1408
|
+
var _a3, _b;
|
|
1409
|
+
for (const issue2 of error52.issues) {
|
|
1385
1410
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1386
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1411
|
+
issue2.errors.map((issues) => processError({ issues }, [...path3, ...issue2.path]));
|
|
1387
1412
|
} else if (issue2.code === "invalid_key") {
|
|
1388
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1413
|
+
processError({ issues: issue2.issues }, [...path3, ...issue2.path]);
|
|
1389
1414
|
} else if (issue2.code === "invalid_element") {
|
|
1390
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1415
|
+
processError({ issues: issue2.issues }, [...path3, ...issue2.path]);
|
|
1391
1416
|
} else {
|
|
1392
1417
|
const fullpath = [...path3, ...issue2.path];
|
|
1393
1418
|
if (fullpath.length === 0) {
|
|
@@ -1401,7 +1426,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1401
1426
|
const terminal = i === fullpath.length - 1;
|
|
1402
1427
|
if (typeof el === "string") {
|
|
1403
1428
|
curr.properties ?? (curr.properties = {});
|
|
1404
|
-
(
|
|
1429
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
1405
1430
|
curr = curr.properties[el];
|
|
1406
1431
|
} else {
|
|
1407
1432
|
curr.items ?? (curr.items = []);
|
|
@@ -1416,7 +1441,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1416
1441
|
}
|
|
1417
1442
|
}
|
|
1418
1443
|
};
|
|
1419
|
-
processError(
|
|
1444
|
+
processError(error51);
|
|
1420
1445
|
return result;
|
|
1421
1446
|
}
|
|
1422
1447
|
function toDotPath(_path) {
|
|
@@ -1437,9 +1462,9 @@ function toDotPath(_path) {
|
|
|
1437
1462
|
}
|
|
1438
1463
|
return segs.join("");
|
|
1439
1464
|
}
|
|
1440
|
-
function prettifyError(
|
|
1465
|
+
function prettifyError(error51) {
|
|
1441
1466
|
const lines = [];
|
|
1442
|
-
const issues = [...
|
|
1467
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1443
1468
|
for (const issue2 of issues) {
|
|
1444
1469
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1445
1470
|
if (issue2.path?.length)
|
|
@@ -1448,9 +1473,9 @@ function prettifyError(error48) {
|
|
|
1448
1473
|
return lines.join("\n");
|
|
1449
1474
|
}
|
|
1450
1475
|
|
|
1451
|
-
// node_modules/.pnpm/zod@4.3
|
|
1476
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1452
1477
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1453
|
-
const ctx = _ctx ?
|
|
1478
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1454
1479
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1455
1480
|
if (result instanceof Promise) {
|
|
1456
1481
|
throw new $ZodAsyncError();
|
|
@@ -1464,7 +1489,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1464
1489
|
};
|
|
1465
1490
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1466
1491
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1467
|
-
const ctx = _ctx ?
|
|
1492
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1468
1493
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1469
1494
|
if (result instanceof Promise)
|
|
1470
1495
|
result = await result;
|
|
@@ -1489,7 +1514,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1489
1514
|
};
|
|
1490
1515
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1491
1516
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1492
|
-
const ctx = _ctx ?
|
|
1517
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1493
1518
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1494
1519
|
if (result instanceof Promise)
|
|
1495
1520
|
result = await result;
|
|
@@ -1500,7 +1525,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1500
1525
|
};
|
|
1501
1526
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1502
1527
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1503
|
-
const ctx = _ctx ?
|
|
1528
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1504
1529
|
return _parse(_Err)(schema, value, ctx);
|
|
1505
1530
|
};
|
|
1506
1531
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1509,7 +1534,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1509
1534
|
};
|
|
1510
1535
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1511
1536
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1512
|
-
const ctx = _ctx ?
|
|
1537
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1513
1538
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1514
1539
|
};
|
|
1515
1540
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1518,7 +1543,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1518
1543
|
};
|
|
1519
1544
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1520
1545
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1521
|
-
const ctx = _ctx ?
|
|
1546
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1522
1547
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1523
1548
|
};
|
|
1524
1549
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1527,7 +1552,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1527
1552
|
};
|
|
1528
1553
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1529
1554
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1530
|
-
const ctx = _ctx ?
|
|
1555
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1531
1556
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1532
1557
|
};
|
|
1533
1558
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1536,7 +1561,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1536
1561
|
};
|
|
1537
1562
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1538
1563
|
|
|
1539
|
-
// node_modules/.pnpm/zod@4.3
|
|
1564
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1540
1565
|
var regexes_exports = {};
|
|
1541
1566
|
__export(regexes_exports, {
|
|
1542
1567
|
base64: () => base64,
|
|
@@ -1560,6 +1585,7 @@ __export(regexes_exports, {
|
|
|
1560
1585
|
hex: () => hex,
|
|
1561
1586
|
hostname: () => hostname,
|
|
1562
1587
|
html5Email: () => html5Email,
|
|
1588
|
+
httpProtocol: () => httpProtocol,
|
|
1563
1589
|
idnEmail: () => idnEmail,
|
|
1564
1590
|
integer: () => integer,
|
|
1565
1591
|
ipv4: () => ipv4,
|
|
@@ -1598,7 +1624,7 @@ __export(regexes_exports, {
|
|
|
1598
1624
|
uuid7: () => uuid7,
|
|
1599
1625
|
xid: () => xid
|
|
1600
1626
|
});
|
|
1601
|
-
var cuid = /^[cC][
|
|
1627
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1602
1628
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1603
1629
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1604
1630
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1637,6 +1663,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1637
1663
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1638
1664
|
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])?)*\.?$/;
|
|
1639
1665
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1666
|
+
var httpProtocol = /^https?$/;
|
|
1640
1667
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1641
1668
|
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])))`;
|
|
1642
1669
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -1693,12 +1720,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1693
1720
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1694
1721
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1695
1722
|
|
|
1696
|
-
// node_modules/.pnpm/zod@4.3
|
|
1723
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
1697
1724
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1698
|
-
var
|
|
1725
|
+
var _a3;
|
|
1699
1726
|
inst._zod ?? (inst._zod = {});
|
|
1700
1727
|
inst._zod.def = def;
|
|
1701
|
-
(
|
|
1728
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
1702
1729
|
});
|
|
1703
1730
|
var numericOriginMap = {
|
|
1704
1731
|
number: "number",
|
|
@@ -1764,8 +1791,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1764
1791
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1765
1792
|
$ZodCheck.init(inst, def);
|
|
1766
1793
|
inst._zod.onattach.push((inst2) => {
|
|
1767
|
-
var
|
|
1768
|
-
(
|
|
1794
|
+
var _a3;
|
|
1795
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
1769
1796
|
});
|
|
1770
1797
|
inst._zod.check = (payload) => {
|
|
1771
1798
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1898,9 +1925,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
1898
1925
|
};
|
|
1899
1926
|
});
|
|
1900
1927
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1901
|
-
var
|
|
1928
|
+
var _a3;
|
|
1902
1929
|
$ZodCheck.init(inst, def);
|
|
1903
|
-
(
|
|
1930
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1904
1931
|
const val = payload.value;
|
|
1905
1932
|
return !nullish(val) && val.size !== void 0;
|
|
1906
1933
|
});
|
|
@@ -1926,9 +1953,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
1926
1953
|
};
|
|
1927
1954
|
});
|
|
1928
1955
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1929
|
-
var
|
|
1956
|
+
var _a3;
|
|
1930
1957
|
$ZodCheck.init(inst, def);
|
|
1931
|
-
(
|
|
1958
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1932
1959
|
const val = payload.value;
|
|
1933
1960
|
return !nullish(val) && val.size !== void 0;
|
|
1934
1961
|
});
|
|
@@ -1954,9 +1981,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
1954
1981
|
};
|
|
1955
1982
|
});
|
|
1956
1983
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1957
|
-
var
|
|
1984
|
+
var _a3;
|
|
1958
1985
|
$ZodCheck.init(inst, def);
|
|
1959
|
-
(
|
|
1986
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1960
1987
|
const val = payload.value;
|
|
1961
1988
|
return !nullish(val) && val.size !== void 0;
|
|
1962
1989
|
});
|
|
@@ -1984,9 +2011,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
1984
2011
|
};
|
|
1985
2012
|
});
|
|
1986
2013
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1987
|
-
var
|
|
2014
|
+
var _a3;
|
|
1988
2015
|
$ZodCheck.init(inst, def);
|
|
1989
|
-
(
|
|
2016
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1990
2017
|
const val = payload.value;
|
|
1991
2018
|
return !nullish(val) && val.length !== void 0;
|
|
1992
2019
|
});
|
|
@@ -2013,9 +2040,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2013
2040
|
};
|
|
2014
2041
|
});
|
|
2015
2042
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2016
|
-
var
|
|
2043
|
+
var _a3;
|
|
2017
2044
|
$ZodCheck.init(inst, def);
|
|
2018
|
-
(
|
|
2045
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2019
2046
|
const val = payload.value;
|
|
2020
2047
|
return !nullish(val) && val.length !== void 0;
|
|
2021
2048
|
});
|
|
@@ -2042,9 +2069,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2042
2069
|
};
|
|
2043
2070
|
});
|
|
2044
2071
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2045
|
-
var
|
|
2072
|
+
var _a3;
|
|
2046
2073
|
$ZodCheck.init(inst, def);
|
|
2047
|
-
(
|
|
2074
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2048
2075
|
const val = payload.value;
|
|
2049
2076
|
return !nullish(val) && val.length !== void 0;
|
|
2050
2077
|
});
|
|
@@ -2073,7 +2100,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2073
2100
|
};
|
|
2074
2101
|
});
|
|
2075
2102
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2076
|
-
var
|
|
2103
|
+
var _a3, _b;
|
|
2077
2104
|
$ZodCheck.init(inst, def);
|
|
2078
2105
|
inst._zod.onattach.push((inst2) => {
|
|
2079
2106
|
const bag = inst2._zod.bag;
|
|
@@ -2084,7 +2111,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2084
2111
|
}
|
|
2085
2112
|
});
|
|
2086
2113
|
if (def.pattern)
|
|
2087
|
-
(
|
|
2114
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2088
2115
|
def.pattern.lastIndex = 0;
|
|
2089
2116
|
if (def.pattern.test(payload.value))
|
|
2090
2117
|
return;
|
|
@@ -2241,7 +2268,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2241
2268
|
};
|
|
2242
2269
|
});
|
|
2243
2270
|
|
|
2244
|
-
// node_modules/.pnpm/zod@4.3
|
|
2271
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2245
2272
|
var Doc = class {
|
|
2246
2273
|
constructor(args = []) {
|
|
2247
2274
|
this.content = [];
|
|
@@ -2277,16 +2304,16 @@ var Doc = class {
|
|
|
2277
2304
|
}
|
|
2278
2305
|
};
|
|
2279
2306
|
|
|
2280
|
-
// node_modules/.pnpm/zod@4.3
|
|
2307
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2281
2308
|
var version = {
|
|
2282
2309
|
major: 4,
|
|
2283
|
-
minor:
|
|
2284
|
-
patch:
|
|
2310
|
+
minor: 4,
|
|
2311
|
+
patch: 3
|
|
2285
2312
|
};
|
|
2286
2313
|
|
|
2287
|
-
// node_modules/.pnpm/zod@4.3
|
|
2314
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2288
2315
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2289
|
-
var
|
|
2316
|
+
var _a3;
|
|
2290
2317
|
inst ?? (inst = {});
|
|
2291
2318
|
inst._zod.def = def;
|
|
2292
2319
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2301,7 +2328,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2301
2328
|
}
|
|
2302
2329
|
}
|
|
2303
2330
|
if (checks.length === 0) {
|
|
2304
|
-
(
|
|
2331
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2305
2332
|
inst._zod.deferred?.push(() => {
|
|
2306
2333
|
inst._zod.run = inst._zod.parse;
|
|
2307
2334
|
});
|
|
@@ -2311,6 +2338,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2311
2338
|
let asyncResult;
|
|
2312
2339
|
for (const ch of checks2) {
|
|
2313
2340
|
if (ch._zod.def.when) {
|
|
2341
|
+
if (explicitlyAborted(payload))
|
|
2342
|
+
continue;
|
|
2314
2343
|
const shouldRun = ch._zod.def.when(payload);
|
|
2315
2344
|
if (!shouldRun)
|
|
2316
2345
|
continue;
|
|
@@ -2451,6 +2480,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2451
2480
|
inst._zod.check = (payload) => {
|
|
2452
2481
|
try {
|
|
2453
2482
|
const trimmed = payload.value.trim();
|
|
2483
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2484
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2485
|
+
payload.issues.push({
|
|
2486
|
+
code: "invalid_format",
|
|
2487
|
+
format: "url",
|
|
2488
|
+
note: "Invalid URL format",
|
|
2489
|
+
input: payload.value,
|
|
2490
|
+
inst,
|
|
2491
|
+
continue: !def.abort
|
|
2492
|
+
});
|
|
2493
|
+
return;
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2454
2496
|
const url2 = new URL(trimmed);
|
|
2455
2497
|
if (def.hostname) {
|
|
2456
2498
|
def.hostname.lastIndex = 0;
|
|
@@ -2604,6 +2646,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2604
2646
|
function isValidBase64(data) {
|
|
2605
2647
|
if (data === "")
|
|
2606
2648
|
return true;
|
|
2649
|
+
if (/\s/.test(data))
|
|
2650
|
+
return false;
|
|
2607
2651
|
if (data.length % 4 !== 0)
|
|
2608
2652
|
return false;
|
|
2609
2653
|
try {
|
|
@@ -2796,8 +2840,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
2796
2840
|
$ZodType.init(inst, def);
|
|
2797
2841
|
inst._zod.pattern = _undefined;
|
|
2798
2842
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
2799
|
-
inst._zod.optin = "optional";
|
|
2800
|
-
inst._zod.optout = "optional";
|
|
2801
2843
|
inst._zod.parse = (payload, _ctx) => {
|
|
2802
2844
|
const input = payload.value;
|
|
2803
2845
|
if (typeof input === "undefined")
|
|
@@ -2926,15 +2968,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
2926
2968
|
return payload;
|
|
2927
2969
|
};
|
|
2928
2970
|
});
|
|
2929
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
2971
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
2972
|
+
const isPresent = key in input;
|
|
2930
2973
|
if (result.issues.length) {
|
|
2931
|
-
if (isOptionalOut && !
|
|
2974
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
2932
2975
|
return;
|
|
2933
2976
|
}
|
|
2934
2977
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
2935
2978
|
}
|
|
2979
|
+
if (!isPresent && !isOptionalIn) {
|
|
2980
|
+
if (!result.issues.length) {
|
|
2981
|
+
final.issues.push({
|
|
2982
|
+
code: "invalid_type",
|
|
2983
|
+
expected: "nonoptional",
|
|
2984
|
+
input: void 0,
|
|
2985
|
+
path: [key]
|
|
2986
|
+
});
|
|
2987
|
+
}
|
|
2988
|
+
return;
|
|
2989
|
+
}
|
|
2936
2990
|
if (result.value === void 0) {
|
|
2937
|
-
if (
|
|
2991
|
+
if (isPresent) {
|
|
2938
2992
|
final.value[key] = void 0;
|
|
2939
2993
|
}
|
|
2940
2994
|
} else {
|
|
@@ -2962,8 +3016,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2962
3016
|
const keySet = def.keySet;
|
|
2963
3017
|
const _catchall = def.catchall._zod;
|
|
2964
3018
|
const t = _catchall.def.type;
|
|
3019
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
2965
3020
|
const isOptionalOut = _catchall.optout === "optional";
|
|
2966
3021
|
for (const key in input) {
|
|
3022
|
+
if (key === "__proto__")
|
|
3023
|
+
continue;
|
|
2967
3024
|
if (keySet.has(key))
|
|
2968
3025
|
continue;
|
|
2969
3026
|
if (t === "never") {
|
|
@@ -2972,9 +3029,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2972
3029
|
}
|
|
2973
3030
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
2974
3031
|
if (r instanceof Promise) {
|
|
2975
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3032
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
2976
3033
|
} else {
|
|
2977
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3034
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
2978
3035
|
}
|
|
2979
3036
|
}
|
|
2980
3037
|
if (unrecognized.length) {
|
|
@@ -3040,12 +3097,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3040
3097
|
const shape = value.shape;
|
|
3041
3098
|
for (const key of value.keys) {
|
|
3042
3099
|
const el = shape[key];
|
|
3100
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3043
3101
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3044
3102
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3045
3103
|
if (r instanceof Promise) {
|
|
3046
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3104
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3047
3105
|
} else {
|
|
3048
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3106
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3049
3107
|
}
|
|
3050
3108
|
}
|
|
3051
3109
|
if (!catchall) {
|
|
@@ -3076,9 +3134,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3076
3134
|
const id = ids[key];
|
|
3077
3135
|
const k = esc(key);
|
|
3078
3136
|
const schema = shape[key];
|
|
3137
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3079
3138
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3080
3139
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3081
|
-
if (isOptionalOut) {
|
|
3140
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3082
3141
|
doc.write(`
|
|
3083
3142
|
if (${id}.issues.length) {
|
|
3084
3143
|
if (${k} in input) {
|
|
@@ -3097,6 +3156,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3097
3156
|
newResult[${k}] = ${id}.value;
|
|
3098
3157
|
}
|
|
3099
3158
|
|
|
3159
|
+
`);
|
|
3160
|
+
} else if (!isOptionalIn) {
|
|
3161
|
+
doc.write(`
|
|
3162
|
+
const ${id}_present = ${k} in input;
|
|
3163
|
+
if (${id}.issues.length) {
|
|
3164
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3165
|
+
...iss,
|
|
3166
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3167
|
+
})));
|
|
3168
|
+
}
|
|
3169
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3170
|
+
payload.issues.push({
|
|
3171
|
+
code: "invalid_type",
|
|
3172
|
+
expected: "nonoptional",
|
|
3173
|
+
input: undefined,
|
|
3174
|
+
path: [${k}]
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
if (${id}_present) {
|
|
3179
|
+
if (${id}.value === undefined) {
|
|
3180
|
+
newResult[${k}] = undefined;
|
|
3181
|
+
} else {
|
|
3182
|
+
newResult[${k}] = ${id}.value;
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3100
3186
|
`);
|
|
3101
3187
|
} else {
|
|
3102
3188
|
doc.write(`
|
|
@@ -3190,10 +3276,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3190
3276
|
}
|
|
3191
3277
|
return void 0;
|
|
3192
3278
|
});
|
|
3193
|
-
const
|
|
3194
|
-
const first = def.options[0]._zod.run;
|
|
3279
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3195
3280
|
inst._zod.parse = (payload, ctx) => {
|
|
3196
|
-
if (
|
|
3281
|
+
if (first) {
|
|
3197
3282
|
return first(payload, ctx);
|
|
3198
3283
|
}
|
|
3199
3284
|
let async = false;
|
|
@@ -3246,10 +3331,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3246
3331
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3247
3332
|
$ZodUnion.init(inst, def);
|
|
3248
3333
|
def.inclusive = false;
|
|
3249
|
-
const
|
|
3250
|
-
const first = def.options[0]._zod.run;
|
|
3334
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3251
3335
|
inst._zod.parse = (payload, ctx) => {
|
|
3252
|
-
if (
|
|
3336
|
+
if (first) {
|
|
3253
3337
|
return first(payload, ctx);
|
|
3254
3338
|
}
|
|
3255
3339
|
let async = false;
|
|
@@ -3324,7 +3408,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3324
3408
|
if (opt) {
|
|
3325
3409
|
return opt._zod.run(payload, ctx);
|
|
3326
3410
|
}
|
|
3327
|
-
if (def.unionFallback) {
|
|
3411
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3328
3412
|
return _super(payload, ctx);
|
|
3329
3413
|
}
|
|
3330
3414
|
payload.issues.push({
|
|
@@ -3332,6 +3416,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3332
3416
|
errors: [],
|
|
3333
3417
|
note: "No matching discriminator",
|
|
3334
3418
|
discriminator: def.discriminator,
|
|
3419
|
+
options: Array.from(disc.value.keys()),
|
|
3335
3420
|
input,
|
|
3336
3421
|
path: [def.discriminator],
|
|
3337
3422
|
inst
|
|
@@ -3453,64 +3538,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3453
3538
|
}
|
|
3454
3539
|
payload.value = [];
|
|
3455
3540
|
const proms = [];
|
|
3456
|
-
const
|
|
3457
|
-
const
|
|
3541
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3542
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3458
3543
|
if (!def.rest) {
|
|
3459
|
-
|
|
3460
|
-
const tooSmall = input.length < optStart - 1;
|
|
3461
|
-
if (tooBig || tooSmall) {
|
|
3544
|
+
if (input.length < optinStart) {
|
|
3462
3545
|
payload.issues.push({
|
|
3463
|
-
|
|
3546
|
+
code: "too_small",
|
|
3547
|
+
minimum: optinStart,
|
|
3548
|
+
inclusive: true,
|
|
3464
3549
|
input,
|
|
3465
3550
|
inst,
|
|
3466
3551
|
origin: "array"
|
|
3467
3552
|
});
|
|
3468
3553
|
return payload;
|
|
3469
3554
|
}
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3555
|
+
if (input.length > items.length) {
|
|
3556
|
+
payload.issues.push({
|
|
3557
|
+
code: "too_big",
|
|
3558
|
+
maximum: items.length,
|
|
3559
|
+
inclusive: true,
|
|
3560
|
+
input,
|
|
3561
|
+
inst,
|
|
3562
|
+
origin: "array"
|
|
3563
|
+
});
|
|
3477
3564
|
}
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
}, ctx);
|
|
3482
|
-
if (
|
|
3483
|
-
proms.push(
|
|
3565
|
+
}
|
|
3566
|
+
const itemResults = new Array(items.length);
|
|
3567
|
+
for (let i = 0; i < items.length; i++) {
|
|
3568
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3569
|
+
if (r instanceof Promise) {
|
|
3570
|
+
proms.push(r.then((rr) => {
|
|
3571
|
+
itemResults[i] = rr;
|
|
3572
|
+
}));
|
|
3484
3573
|
} else {
|
|
3485
|
-
|
|
3574
|
+
itemResults[i] = r;
|
|
3486
3575
|
}
|
|
3487
3576
|
}
|
|
3488
3577
|
if (def.rest) {
|
|
3578
|
+
let i = items.length - 1;
|
|
3489
3579
|
const rest = input.slice(items.length);
|
|
3490
3580
|
for (const el of rest) {
|
|
3491
3581
|
i++;
|
|
3492
|
-
const result = def.rest._zod.run({
|
|
3493
|
-
value: el,
|
|
3494
|
-
issues: []
|
|
3495
|
-
}, ctx);
|
|
3582
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3496
3583
|
if (result instanceof Promise) {
|
|
3497
|
-
proms.push(result.then((
|
|
3584
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3498
3585
|
} else {
|
|
3499
3586
|
handleTupleResult(result, payload, i);
|
|
3500
3587
|
}
|
|
3501
3588
|
}
|
|
3502
3589
|
}
|
|
3503
|
-
if (proms.length)
|
|
3504
|
-
return Promise.all(proms).then(() => payload);
|
|
3505
|
-
|
|
3590
|
+
if (proms.length) {
|
|
3591
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3592
|
+
}
|
|
3593
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3506
3594
|
};
|
|
3507
3595
|
});
|
|
3596
|
+
function getTupleOptStart(items, key) {
|
|
3597
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
3598
|
+
if (items[i]._zod[key] !== "optional")
|
|
3599
|
+
return i + 1;
|
|
3600
|
+
}
|
|
3601
|
+
return 0;
|
|
3602
|
+
}
|
|
3508
3603
|
function handleTupleResult(result, final, index) {
|
|
3509
3604
|
if (result.issues.length) {
|
|
3510
3605
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3511
3606
|
}
|
|
3512
3607
|
final.value[index] = result.value;
|
|
3513
3608
|
}
|
|
3609
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3610
|
+
for (let i = 0; i < items.length; i++) {
|
|
3611
|
+
const r = itemResults[i];
|
|
3612
|
+
const isPresent = i < input.length;
|
|
3613
|
+
if (r.issues.length) {
|
|
3614
|
+
if (!isPresent && i >= optoutStart) {
|
|
3615
|
+
final.value.length = i;
|
|
3616
|
+
break;
|
|
3617
|
+
}
|
|
3618
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
3619
|
+
}
|
|
3620
|
+
final.value[i] = r.value;
|
|
3621
|
+
}
|
|
3622
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
3623
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
3624
|
+
final.value.length = i;
|
|
3625
|
+
} else {
|
|
3626
|
+
break;
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
return final;
|
|
3630
|
+
}
|
|
3514
3631
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3515
3632
|
$ZodType.init(inst, def);
|
|
3516
3633
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3532,19 +3649,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3532
3649
|
for (const key of values) {
|
|
3533
3650
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3534
3651
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3652
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3653
|
+
if (keyResult instanceof Promise) {
|
|
3654
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3655
|
+
}
|
|
3656
|
+
if (keyResult.issues.length) {
|
|
3657
|
+
payload.issues.push({
|
|
3658
|
+
code: "invalid_key",
|
|
3659
|
+
origin: "record",
|
|
3660
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3661
|
+
input: key,
|
|
3662
|
+
path: [key],
|
|
3663
|
+
inst
|
|
3664
|
+
});
|
|
3665
|
+
continue;
|
|
3666
|
+
}
|
|
3667
|
+
const outKey = keyResult.value;
|
|
3535
3668
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3536
3669
|
if (result instanceof Promise) {
|
|
3537
3670
|
proms.push(result.then((result2) => {
|
|
3538
3671
|
if (result2.issues.length) {
|
|
3539
3672
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3540
3673
|
}
|
|
3541
|
-
payload.value[
|
|
3674
|
+
payload.value[outKey] = result2.value;
|
|
3542
3675
|
}));
|
|
3543
3676
|
} else {
|
|
3544
3677
|
if (result.issues.length) {
|
|
3545
3678
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3546
3679
|
}
|
|
3547
|
-
payload.value[
|
|
3680
|
+
payload.value[outKey] = result.value;
|
|
3548
3681
|
}
|
|
3549
3682
|
}
|
|
3550
3683
|
}
|
|
@@ -3568,6 +3701,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3568
3701
|
for (const key of Reflect.ownKeys(input)) {
|
|
3569
3702
|
if (key === "__proto__")
|
|
3570
3703
|
continue;
|
|
3704
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3705
|
+
continue;
|
|
3571
3706
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3572
3707
|
if (keyResult instanceof Promise) {
|
|
3573
3708
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3772,6 +3907,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
3772
3907
|
});
|
|
3773
3908
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
3774
3909
|
$ZodType.init(inst, def);
|
|
3910
|
+
inst._zod.optin = "optional";
|
|
3775
3911
|
inst._zod.parse = (payload, ctx) => {
|
|
3776
3912
|
if (ctx.direction === "backward") {
|
|
3777
3913
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -3781,6 +3917,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3781
3917
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
3782
3918
|
return output.then((output2) => {
|
|
3783
3919
|
payload.value = output2;
|
|
3920
|
+
payload.fallback = true;
|
|
3784
3921
|
return payload;
|
|
3785
3922
|
});
|
|
3786
3923
|
}
|
|
@@ -3788,11 +3925,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3788
3925
|
throw new $ZodAsyncError();
|
|
3789
3926
|
}
|
|
3790
3927
|
payload.value = _out;
|
|
3928
|
+
payload.fallback = true;
|
|
3791
3929
|
return payload;
|
|
3792
3930
|
};
|
|
3793
3931
|
});
|
|
3794
3932
|
function handleOptionalResult(result, input) {
|
|
3795
|
-
if (result.issues.length
|
|
3933
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
3796
3934
|
return { issues: [], value: void 0 };
|
|
3797
3935
|
}
|
|
3798
3936
|
return result;
|
|
@@ -3810,10 +3948,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
3810
3948
|
});
|
|
3811
3949
|
inst._zod.parse = (payload, ctx) => {
|
|
3812
3950
|
if (def.innerType._zod.optin === "optional") {
|
|
3951
|
+
const input = payload.value;
|
|
3813
3952
|
const result = def.innerType._zod.run(payload, ctx);
|
|
3814
3953
|
if (result instanceof Promise)
|
|
3815
|
-
return result.then((r) => handleOptionalResult(r,
|
|
3816
|
-
return handleOptionalResult(result,
|
|
3954
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
3955
|
+
return handleOptionalResult(result, input);
|
|
3817
3956
|
}
|
|
3818
3957
|
if (payload.value === void 0) {
|
|
3819
3958
|
return payload;
|
|
@@ -3929,7 +4068,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3929
4068
|
});
|
|
3930
4069
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3931
4070
|
$ZodType.init(inst, def);
|
|
3932
|
-
|
|
4071
|
+
inst._zod.optin = "optional";
|
|
3933
4072
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3934
4073
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3935
4074
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3949,6 +4088,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3949
4088
|
input: payload.value
|
|
3950
4089
|
});
|
|
3951
4090
|
payload.issues = [];
|
|
4091
|
+
payload.fallback = true;
|
|
3952
4092
|
}
|
|
3953
4093
|
return payload;
|
|
3954
4094
|
});
|
|
@@ -3963,6 +4103,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3963
4103
|
input: payload.value
|
|
3964
4104
|
});
|
|
3965
4105
|
payload.issues = [];
|
|
4106
|
+
payload.fallback = true;
|
|
3966
4107
|
}
|
|
3967
4108
|
return payload;
|
|
3968
4109
|
};
|
|
@@ -4008,7 +4149,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
4008
4149
|
left.aborted = true;
|
|
4009
4150
|
return left;
|
|
4010
4151
|
}
|
|
4011
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4152
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4012
4153
|
}
|
|
4013
4154
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4014
4155
|
$ZodType.init(inst, def);
|
|
@@ -4060,6 +4201,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4060
4201
|
}
|
|
4061
4202
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4062
4203
|
}
|
|
4204
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4205
|
+
$ZodPipe.init(inst, def);
|
|
4206
|
+
});
|
|
4063
4207
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4064
4208
|
$ZodType.init(inst, def);
|
|
4065
4209
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4211,7 +4355,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4211
4355
|
});
|
|
4212
4356
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4213
4357
|
$ZodType.init(inst, def);
|
|
4214
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4358
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4359
|
+
const d = def;
|
|
4360
|
+
if (!d._cachedInner)
|
|
4361
|
+
d._cachedInner = def.getter();
|
|
4362
|
+
return d._cachedInner;
|
|
4363
|
+
});
|
|
4215
4364
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4216
4365
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4217
4366
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4255,7 +4404,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4255
4404
|
}
|
|
4256
4405
|
}
|
|
4257
4406
|
|
|
4258
|
-
// node_modules/.pnpm/zod@4.3
|
|
4407
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4259
4408
|
var locales_exports = {};
|
|
4260
4409
|
__export(locales_exports, {
|
|
4261
4410
|
ar: () => ar_default,
|
|
@@ -4266,6 +4415,7 @@ __export(locales_exports, {
|
|
|
4266
4415
|
cs: () => cs_default,
|
|
4267
4416
|
da: () => da_default,
|
|
4268
4417
|
de: () => de_default,
|
|
4418
|
+
el: () => el_default,
|
|
4269
4419
|
en: () => en_default,
|
|
4270
4420
|
eo: () => eo_default,
|
|
4271
4421
|
es: () => es_default,
|
|
@@ -4274,6 +4424,7 @@ __export(locales_exports, {
|
|
|
4274
4424
|
fr: () => fr_default,
|
|
4275
4425
|
frCA: () => fr_CA_default,
|
|
4276
4426
|
he: () => he_default,
|
|
4427
|
+
hr: () => hr_default,
|
|
4277
4428
|
hu: () => hu_default,
|
|
4278
4429
|
hy: () => hy_default,
|
|
4279
4430
|
id: () => id_default,
|
|
@@ -4293,6 +4444,7 @@ __export(locales_exports, {
|
|
|
4293
4444
|
pl: () => pl_default,
|
|
4294
4445
|
ps: () => ps_default,
|
|
4295
4446
|
pt: () => pt_default,
|
|
4447
|
+
ro: () => ro_default,
|
|
4296
4448
|
ru: () => ru_default,
|
|
4297
4449
|
sl: () => sl_default,
|
|
4298
4450
|
sv: () => sv_default,
|
|
@@ -4309,7 +4461,7 @@ __export(locales_exports, {
|
|
|
4309
4461
|
zhTW: () => zh_TW_default
|
|
4310
4462
|
});
|
|
4311
4463
|
|
|
4312
|
-
// node_modules/.pnpm/zod@4.3
|
|
4464
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4313
4465
|
var error = () => {
|
|
4314
4466
|
const Sizable = {
|
|
4315
4467
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4416,7 +4568,7 @@ function ar_default() {
|
|
|
4416
4568
|
};
|
|
4417
4569
|
}
|
|
4418
4570
|
|
|
4419
|
-
// node_modules/.pnpm/zod@4.3
|
|
4571
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4420
4572
|
var error2 = () => {
|
|
4421
4573
|
const Sizable = {
|
|
4422
4574
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4522,7 +4674,7 @@ function az_default() {
|
|
|
4522
4674
|
};
|
|
4523
4675
|
}
|
|
4524
4676
|
|
|
4525
|
-
// node_modules/.pnpm/zod@4.3
|
|
4677
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4526
4678
|
function getBelarusianPlural(count, one, few, many) {
|
|
4527
4679
|
const absCount = Math.abs(count);
|
|
4528
4680
|
const lastDigit = absCount % 10;
|
|
@@ -4679,7 +4831,7 @@ function be_default() {
|
|
|
4679
4831
|
};
|
|
4680
4832
|
}
|
|
4681
4833
|
|
|
4682
|
-
// node_modules/.pnpm/zod@4.3
|
|
4834
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
4683
4835
|
var error4 = () => {
|
|
4684
4836
|
const Sizable = {
|
|
4685
4837
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -4800,7 +4952,7 @@ function bg_default() {
|
|
|
4800
4952
|
};
|
|
4801
4953
|
}
|
|
4802
4954
|
|
|
4803
|
-
// node_modules/.pnpm/zod@4.3
|
|
4955
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
4804
4956
|
var error5 = () => {
|
|
4805
4957
|
const Sizable = {
|
|
4806
4958
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -4909,7 +5061,7 @@ function ca_default() {
|
|
|
4909
5061
|
};
|
|
4910
5062
|
}
|
|
4911
5063
|
|
|
4912
|
-
// node_modules/.pnpm/zod@4.3
|
|
5064
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
4913
5065
|
var error6 = () => {
|
|
4914
5066
|
const Sizable = {
|
|
4915
5067
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5021,7 +5173,7 @@ function cs_default() {
|
|
|
5021
5173
|
};
|
|
5022
5174
|
}
|
|
5023
5175
|
|
|
5024
|
-
// node_modules/.pnpm/zod@4.3
|
|
5176
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5025
5177
|
var error7 = () => {
|
|
5026
5178
|
const Sizable = {
|
|
5027
5179
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5137,7 +5289,7 @@ function da_default() {
|
|
|
5137
5289
|
};
|
|
5138
5290
|
}
|
|
5139
5291
|
|
|
5140
|
-
// node_modules/.pnpm/zod@4.3
|
|
5292
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5141
5293
|
var error8 = () => {
|
|
5142
5294
|
const Sizable = {
|
|
5143
5295
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5246,8 +5398,118 @@ function de_default() {
|
|
|
5246
5398
|
};
|
|
5247
5399
|
}
|
|
5248
5400
|
|
|
5249
|
-
// node_modules/.pnpm/zod@4.3
|
|
5401
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5250
5402
|
var error9 = () => {
|
|
5403
|
+
const Sizable = {
|
|
5404
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5405
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5406
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5407
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5408
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5409
|
+
};
|
|
5410
|
+
function getSizing(origin) {
|
|
5411
|
+
return Sizable[origin] ?? null;
|
|
5412
|
+
}
|
|
5413
|
+
const FormatDictionary = {
|
|
5414
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5415
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5416
|
+
url: "URL",
|
|
5417
|
+
emoji: "emoji",
|
|
5418
|
+
uuid: "UUID",
|
|
5419
|
+
uuidv4: "UUIDv4",
|
|
5420
|
+
uuidv6: "UUIDv6",
|
|
5421
|
+
nanoid: "nanoid",
|
|
5422
|
+
guid: "GUID",
|
|
5423
|
+
cuid: "cuid",
|
|
5424
|
+
cuid2: "cuid2",
|
|
5425
|
+
ulid: "ULID",
|
|
5426
|
+
xid: "XID",
|
|
5427
|
+
ksuid: "KSUID",
|
|
5428
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5429
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5430
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
5431
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5432
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5433
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5434
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5435
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5436
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5437
|
+
base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
|
|
5438
|
+
base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
|
|
5439
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5440
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5441
|
+
jwt: "JWT",
|
|
5442
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5443
|
+
};
|
|
5444
|
+
const TypeDictionary = {
|
|
5445
|
+
nan: "NaN"
|
|
5446
|
+
};
|
|
5447
|
+
return (issue2) => {
|
|
5448
|
+
switch (issue2.code) {
|
|
5449
|
+
case "invalid_type": {
|
|
5450
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5451
|
+
const receivedType = parsedType(issue2.input);
|
|
5452
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5453
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5454
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5455
|
+
}
|
|
5456
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5457
|
+
}
|
|
5458
|
+
case "invalid_value":
|
|
5459
|
+
if (issue2.values.length === 1)
|
|
5460
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
|
|
5461
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
|
|
5462
|
+
case "too_big": {
|
|
5463
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5464
|
+
const sizing = getSizing(issue2.origin);
|
|
5465
|
+
if (sizing)
|
|
5466
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
|
|
5467
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
|
|
5468
|
+
}
|
|
5469
|
+
case "too_small": {
|
|
5470
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5471
|
+
const sizing = getSizing(issue2.origin);
|
|
5472
|
+
if (sizing) {
|
|
5473
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5474
|
+
}
|
|
5475
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
|
|
5476
|
+
}
|
|
5477
|
+
case "invalid_format": {
|
|
5478
|
+
const _issue = issue2;
|
|
5479
|
+
if (_issue.format === "starts_with") {
|
|
5480
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
|
|
5481
|
+
}
|
|
5482
|
+
if (_issue.format === "ends_with")
|
|
5483
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
|
|
5484
|
+
if (_issue.format === "includes")
|
|
5485
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
|
|
5486
|
+
if (_issue.format === "regex")
|
|
5487
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
|
|
5488
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5489
|
+
}
|
|
5490
|
+
case "not_multiple_of":
|
|
5491
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
|
|
5492
|
+
case "unrecognized_keys":
|
|
5493
|
+
return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
|
|
5494
|
+
case "invalid_key":
|
|
5495
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5496
|
+
case "invalid_union":
|
|
5497
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5498
|
+
case "invalid_element":
|
|
5499
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5500
|
+
default:
|
|
5501
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5502
|
+
}
|
|
5503
|
+
};
|
|
5504
|
+
};
|
|
5505
|
+
function el_default() {
|
|
5506
|
+
return {
|
|
5507
|
+
localeError: error9()
|
|
5508
|
+
};
|
|
5509
|
+
}
|
|
5510
|
+
|
|
5511
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5512
|
+
var error10 = () => {
|
|
5251
5513
|
const Sizable = {
|
|
5252
5514
|
string: { unit: "characters", verb: "to have" },
|
|
5253
5515
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5341,6 +5603,10 @@ var error9 = () => {
|
|
|
5341
5603
|
case "invalid_key":
|
|
5342
5604
|
return `Invalid key in ${issue2.origin}`;
|
|
5343
5605
|
case "invalid_union":
|
|
5606
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5607
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5608
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5609
|
+
}
|
|
5344
5610
|
return "Invalid input";
|
|
5345
5611
|
case "invalid_element":
|
|
5346
5612
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5351,12 +5617,12 @@ var error9 = () => {
|
|
|
5351
5617
|
};
|
|
5352
5618
|
function en_default() {
|
|
5353
5619
|
return {
|
|
5354
|
-
localeError:
|
|
5620
|
+
localeError: error10()
|
|
5355
5621
|
};
|
|
5356
5622
|
}
|
|
5357
5623
|
|
|
5358
|
-
// node_modules/.pnpm/zod@4.3
|
|
5359
|
-
var
|
|
5624
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5625
|
+
var error11 = () => {
|
|
5360
5626
|
const Sizable = {
|
|
5361
5627
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5362
5628
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5461,12 +5727,12 @@ var error10 = () => {
|
|
|
5461
5727
|
};
|
|
5462
5728
|
function eo_default() {
|
|
5463
5729
|
return {
|
|
5464
|
-
localeError:
|
|
5730
|
+
localeError: error11()
|
|
5465
5731
|
};
|
|
5466
5732
|
}
|
|
5467
5733
|
|
|
5468
|
-
// node_modules/.pnpm/zod@4.3
|
|
5469
|
-
var
|
|
5734
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
5735
|
+
var error12 = () => {
|
|
5470
5736
|
const Sizable = {
|
|
5471
5737
|
string: { unit: "caracteres", verb: "tener" },
|
|
5472
5738
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5594,12 +5860,12 @@ var error11 = () => {
|
|
|
5594
5860
|
};
|
|
5595
5861
|
function es_default() {
|
|
5596
5862
|
return {
|
|
5597
|
-
localeError:
|
|
5863
|
+
localeError: error12()
|
|
5598
5864
|
};
|
|
5599
5865
|
}
|
|
5600
5866
|
|
|
5601
|
-
// node_modules/.pnpm/zod@4.3
|
|
5602
|
-
var
|
|
5867
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
5868
|
+
var error13 = () => {
|
|
5603
5869
|
const Sizable = {
|
|
5604
5870
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5605
5871
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5709,12 +5975,12 @@ var error12 = () => {
|
|
|
5709
5975
|
};
|
|
5710
5976
|
function fa_default() {
|
|
5711
5977
|
return {
|
|
5712
|
-
localeError:
|
|
5978
|
+
localeError: error13()
|
|
5713
5979
|
};
|
|
5714
5980
|
}
|
|
5715
5981
|
|
|
5716
|
-
// node_modules/.pnpm/zod@4.3
|
|
5717
|
-
var
|
|
5982
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
5983
|
+
var error14 = () => {
|
|
5718
5984
|
const Sizable = {
|
|
5719
5985
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
5720
5986
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -5822,12 +6088,12 @@ var error13 = () => {
|
|
|
5822
6088
|
};
|
|
5823
6089
|
function fi_default() {
|
|
5824
6090
|
return {
|
|
5825
|
-
localeError:
|
|
6091
|
+
localeError: error14()
|
|
5826
6092
|
};
|
|
5827
6093
|
}
|
|
5828
6094
|
|
|
5829
|
-
// node_modules/.pnpm/zod@4.3
|
|
5830
|
-
var
|
|
6095
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6096
|
+
var error15 = () => {
|
|
5831
6097
|
const Sizable = {
|
|
5832
6098
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5833
6099
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5868,9 +6134,27 @@ var error14 = () => {
|
|
|
5868
6134
|
template_literal: "entr\xE9e"
|
|
5869
6135
|
};
|
|
5870
6136
|
const TypeDictionary = {
|
|
5871
|
-
|
|
6137
|
+
string: "cha\xEEne",
|
|
5872
6138
|
number: "nombre",
|
|
5873
|
-
|
|
6139
|
+
int: "entier",
|
|
6140
|
+
boolean: "bool\xE9en",
|
|
6141
|
+
bigint: "grand entier",
|
|
6142
|
+
symbol: "symbole",
|
|
6143
|
+
undefined: "ind\xE9fini",
|
|
6144
|
+
null: "null",
|
|
6145
|
+
never: "jamais",
|
|
6146
|
+
void: "vide",
|
|
6147
|
+
date: "date",
|
|
6148
|
+
array: "tableau",
|
|
6149
|
+
object: "objet",
|
|
6150
|
+
tuple: "tuple",
|
|
6151
|
+
record: "enregistrement",
|
|
6152
|
+
map: "carte",
|
|
6153
|
+
set: "ensemble",
|
|
6154
|
+
file: "fichier",
|
|
6155
|
+
nonoptional: "non-optionnel",
|
|
6156
|
+
nan: "NaN",
|
|
6157
|
+
function: "fonction"
|
|
5874
6158
|
};
|
|
5875
6159
|
return (issue2) => {
|
|
5876
6160
|
switch (issue2.code) {
|
|
@@ -5891,16 +6175,15 @@ var error14 = () => {
|
|
|
5891
6175
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5892
6176
|
const sizing = getSizing(issue2.origin);
|
|
5893
6177
|
if (sizing)
|
|
5894
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
5895
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6178
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6179
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
5896
6180
|
}
|
|
5897
6181
|
case "too_small": {
|
|
5898
6182
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5899
6183
|
const sizing = getSizing(issue2.origin);
|
|
5900
|
-
if (sizing)
|
|
5901
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5902
|
-
}
|
|
5903
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6184
|
+
if (sizing)
|
|
6185
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6186
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
5904
6187
|
}
|
|
5905
6188
|
case "invalid_format": {
|
|
5906
6189
|
const _issue = issue2;
|
|
@@ -5931,12 +6214,12 @@ var error14 = () => {
|
|
|
5931
6214
|
};
|
|
5932
6215
|
function fr_default() {
|
|
5933
6216
|
return {
|
|
5934
|
-
localeError:
|
|
6217
|
+
localeError: error15()
|
|
5935
6218
|
};
|
|
5936
6219
|
}
|
|
5937
6220
|
|
|
5938
|
-
// node_modules/.pnpm/zod@4.3
|
|
5939
|
-
var
|
|
6221
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6222
|
+
var error16 = () => {
|
|
5940
6223
|
const Sizable = {
|
|
5941
6224
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5942
6225
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6039,12 +6322,12 @@ var error15 = () => {
|
|
|
6039
6322
|
};
|
|
6040
6323
|
function fr_CA_default() {
|
|
6041
6324
|
return {
|
|
6042
|
-
localeError:
|
|
6325
|
+
localeError: error16()
|
|
6043
6326
|
};
|
|
6044
6327
|
}
|
|
6045
6328
|
|
|
6046
|
-
// node_modules/.pnpm/zod@4.3
|
|
6047
|
-
var
|
|
6329
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6330
|
+
var error17 = () => {
|
|
6048
6331
|
const TypeNames = {
|
|
6049
6332
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6050
6333
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6234,24 +6517,24 @@ var error16 = () => {
|
|
|
6234
6517
|
};
|
|
6235
6518
|
function he_default() {
|
|
6236
6519
|
return {
|
|
6237
|
-
localeError:
|
|
6520
|
+
localeError: error17()
|
|
6238
6521
|
};
|
|
6239
6522
|
}
|
|
6240
6523
|
|
|
6241
|
-
// node_modules/.pnpm/zod@4.3
|
|
6242
|
-
var
|
|
6524
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6525
|
+
var error18 = () => {
|
|
6243
6526
|
const Sizable = {
|
|
6244
|
-
string: { unit: "
|
|
6245
|
-
file: { unit: "
|
|
6246
|
-
array: { unit: "
|
|
6247
|
-
set: { unit: "
|
|
6527
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6528
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6529
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6530
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6248
6531
|
};
|
|
6249
6532
|
function getSizing(origin) {
|
|
6250
6533
|
return Sizable[origin] ?? null;
|
|
6251
6534
|
}
|
|
6252
6535
|
const FormatDictionary = {
|
|
6253
|
-
regex: "
|
|
6254
|
-
email: "email
|
|
6536
|
+
regex: "unos",
|
|
6537
|
+
email: "email adresa",
|
|
6255
6538
|
url: "URL",
|
|
6256
6539
|
emoji: "emoji",
|
|
6257
6540
|
uuid: "UUID",
|
|
@@ -6264,25 +6547,37 @@ var error17 = () => {
|
|
|
6264
6547
|
ulid: "ULID",
|
|
6265
6548
|
xid: "XID",
|
|
6266
6549
|
ksuid: "KSUID",
|
|
6267
|
-
datetime: "ISO
|
|
6268
|
-
date: "ISO
|
|
6269
|
-
time: "ISO
|
|
6270
|
-
duration: "ISO
|
|
6271
|
-
ipv4: "IPv4
|
|
6272
|
-
ipv6: "IPv6
|
|
6273
|
-
cidrv4: "IPv4
|
|
6274
|
-
cidrv6: "IPv6
|
|
6275
|
-
base64: "base64
|
|
6276
|
-
base64url: "base64url
|
|
6277
|
-
json_string: "JSON
|
|
6278
|
-
e164: "E.164
|
|
6550
|
+
datetime: "ISO datum i vrijeme",
|
|
6551
|
+
date: "ISO datum",
|
|
6552
|
+
time: "ISO vrijeme",
|
|
6553
|
+
duration: "ISO trajanje",
|
|
6554
|
+
ipv4: "IPv4 adresa",
|
|
6555
|
+
ipv6: "IPv6 adresa",
|
|
6556
|
+
cidrv4: "IPv4 raspon",
|
|
6557
|
+
cidrv6: "IPv6 raspon",
|
|
6558
|
+
base64: "base64 kodirani tekst",
|
|
6559
|
+
base64url: "base64url kodirani tekst",
|
|
6560
|
+
json_string: "JSON tekst",
|
|
6561
|
+
e164: "E.164 broj",
|
|
6279
6562
|
jwt: "JWT",
|
|
6280
|
-
template_literal: "
|
|
6563
|
+
template_literal: "unos"
|
|
6281
6564
|
};
|
|
6282
6565
|
const TypeDictionary = {
|
|
6283
6566
|
nan: "NaN",
|
|
6284
|
-
|
|
6285
|
-
|
|
6567
|
+
string: "tekst",
|
|
6568
|
+
number: "broj",
|
|
6569
|
+
boolean: "boolean",
|
|
6570
|
+
array: "niz",
|
|
6571
|
+
object: "objekt",
|
|
6572
|
+
set: "skup",
|
|
6573
|
+
file: "datoteka",
|
|
6574
|
+
date: "datum",
|
|
6575
|
+
bigint: "bigint",
|
|
6576
|
+
symbol: "simbol",
|
|
6577
|
+
undefined: "undefined",
|
|
6578
|
+
null: "null",
|
|
6579
|
+
function: "funkcija",
|
|
6580
|
+
map: "mapa"
|
|
6286
6581
|
};
|
|
6287
6582
|
return (issue2) => {
|
|
6288
6583
|
switch (issue2.code) {
|
|
@@ -6291,33 +6586,144 @@ var error17 = () => {
|
|
|
6291
6586
|
const receivedType = parsedType(issue2.input);
|
|
6292
6587
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6293
6588
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6294
|
-
return
|
|
6589
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6295
6590
|
}
|
|
6296
|
-
return
|
|
6591
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6297
6592
|
}
|
|
6298
6593
|
case "invalid_value":
|
|
6299
6594
|
if (issue2.values.length === 1)
|
|
6300
|
-
return
|
|
6301
|
-
return
|
|
6595
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6596
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6302
6597
|
case "too_big": {
|
|
6303
6598
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6304
6599
|
const sizing = getSizing(issue2.origin);
|
|
6600
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6305
6601
|
if (sizing)
|
|
6306
|
-
return `
|
|
6307
|
-
return `
|
|
6602
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6603
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6308
6604
|
}
|
|
6309
6605
|
case "too_small": {
|
|
6310
6606
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6311
6607
|
const sizing = getSizing(issue2.origin);
|
|
6608
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6312
6609
|
if (sizing) {
|
|
6313
|
-
return `
|
|
6610
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6314
6611
|
}
|
|
6315
|
-
return `
|
|
6612
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6316
6613
|
}
|
|
6317
6614
|
case "invalid_format": {
|
|
6318
6615
|
const _issue = issue2;
|
|
6319
6616
|
if (_issue.format === "starts_with")
|
|
6320
|
-
return
|
|
6617
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6618
|
+
if (_issue.format === "ends_with")
|
|
6619
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6620
|
+
if (_issue.format === "includes")
|
|
6621
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6622
|
+
if (_issue.format === "regex")
|
|
6623
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6624
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6625
|
+
}
|
|
6626
|
+
case "not_multiple_of":
|
|
6627
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6628
|
+
case "unrecognized_keys":
|
|
6629
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6630
|
+
case "invalid_key":
|
|
6631
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6632
|
+
case "invalid_union":
|
|
6633
|
+
return "Neispravan unos";
|
|
6634
|
+
case "invalid_element":
|
|
6635
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6636
|
+
default:
|
|
6637
|
+
return `Neispravan unos`;
|
|
6638
|
+
}
|
|
6639
|
+
};
|
|
6640
|
+
};
|
|
6641
|
+
function hr_default() {
|
|
6642
|
+
return {
|
|
6643
|
+
localeError: error18()
|
|
6644
|
+
};
|
|
6645
|
+
}
|
|
6646
|
+
|
|
6647
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6648
|
+
var error19 = () => {
|
|
6649
|
+
const Sizable = {
|
|
6650
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
6651
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6652
|
+
array: { unit: "elem", verb: "legyen" },
|
|
6653
|
+
set: { unit: "elem", verb: "legyen" }
|
|
6654
|
+
};
|
|
6655
|
+
function getSizing(origin) {
|
|
6656
|
+
return Sizable[origin] ?? null;
|
|
6657
|
+
}
|
|
6658
|
+
const FormatDictionary = {
|
|
6659
|
+
regex: "bemenet",
|
|
6660
|
+
email: "email c\xEDm",
|
|
6661
|
+
url: "URL",
|
|
6662
|
+
emoji: "emoji",
|
|
6663
|
+
uuid: "UUID",
|
|
6664
|
+
uuidv4: "UUIDv4",
|
|
6665
|
+
uuidv6: "UUIDv6",
|
|
6666
|
+
nanoid: "nanoid",
|
|
6667
|
+
guid: "GUID",
|
|
6668
|
+
cuid: "cuid",
|
|
6669
|
+
cuid2: "cuid2",
|
|
6670
|
+
ulid: "ULID",
|
|
6671
|
+
xid: "XID",
|
|
6672
|
+
ksuid: "KSUID",
|
|
6673
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
6674
|
+
date: "ISO d\xE1tum",
|
|
6675
|
+
time: "ISO id\u0151",
|
|
6676
|
+
duration: "ISO id\u0151intervallum",
|
|
6677
|
+
ipv4: "IPv4 c\xEDm",
|
|
6678
|
+
ipv6: "IPv6 c\xEDm",
|
|
6679
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
6680
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
6681
|
+
base64: "base64-k\xF3dolt string",
|
|
6682
|
+
base64url: "base64url-k\xF3dolt string",
|
|
6683
|
+
json_string: "JSON string",
|
|
6684
|
+
e164: "E.164 sz\xE1m",
|
|
6685
|
+
jwt: "JWT",
|
|
6686
|
+
template_literal: "bemenet"
|
|
6687
|
+
};
|
|
6688
|
+
const TypeDictionary = {
|
|
6689
|
+
nan: "NaN",
|
|
6690
|
+
number: "sz\xE1m",
|
|
6691
|
+
array: "t\xF6mb"
|
|
6692
|
+
};
|
|
6693
|
+
return (issue2) => {
|
|
6694
|
+
switch (issue2.code) {
|
|
6695
|
+
case "invalid_type": {
|
|
6696
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6697
|
+
const receivedType = parsedType(issue2.input);
|
|
6698
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6699
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6700
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6701
|
+
}
|
|
6702
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6703
|
+
}
|
|
6704
|
+
case "invalid_value":
|
|
6705
|
+
if (issue2.values.length === 1)
|
|
6706
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
6707
|
+
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
6708
|
+
case "too_big": {
|
|
6709
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6710
|
+
const sizing = getSizing(issue2.origin);
|
|
6711
|
+
if (sizing)
|
|
6712
|
+
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
6713
|
+
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
6714
|
+
}
|
|
6715
|
+
case "too_small": {
|
|
6716
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6717
|
+
const sizing = getSizing(issue2.origin);
|
|
6718
|
+
if (sizing) {
|
|
6719
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6720
|
+
}
|
|
6721
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
|
|
6722
|
+
}
|
|
6723
|
+
case "invalid_format": {
|
|
6724
|
+
const _issue = issue2;
|
|
6725
|
+
if (_issue.format === "starts_with")
|
|
6726
|
+
return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
|
|
6321
6727
|
if (_issue.format === "ends_with")
|
|
6322
6728
|
return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
|
|
6323
6729
|
if (_issue.format === "includes")
|
|
@@ -6343,11 +6749,11 @@ var error17 = () => {
|
|
|
6343
6749
|
};
|
|
6344
6750
|
function hu_default() {
|
|
6345
6751
|
return {
|
|
6346
|
-
localeError:
|
|
6752
|
+
localeError: error19()
|
|
6347
6753
|
};
|
|
6348
6754
|
}
|
|
6349
6755
|
|
|
6350
|
-
// node_modules/.pnpm/zod@4.3
|
|
6756
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6351
6757
|
function getArmenianPlural(count, one, many) {
|
|
6352
6758
|
return Math.abs(count) === 1 ? one : many;
|
|
6353
6759
|
}
|
|
@@ -6358,7 +6764,7 @@ function withDefiniteArticle(word) {
|
|
|
6358
6764
|
const lastChar = word[word.length - 1];
|
|
6359
6765
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6360
6766
|
}
|
|
6361
|
-
var
|
|
6767
|
+
var error20 = () => {
|
|
6362
6768
|
const Sizable = {
|
|
6363
6769
|
string: {
|
|
6364
6770
|
unit: {
|
|
@@ -6491,12 +6897,12 @@ var error18 = () => {
|
|
|
6491
6897
|
};
|
|
6492
6898
|
function hy_default() {
|
|
6493
6899
|
return {
|
|
6494
|
-
localeError:
|
|
6900
|
+
localeError: error20()
|
|
6495
6901
|
};
|
|
6496
6902
|
}
|
|
6497
6903
|
|
|
6498
|
-
// node_modules/.pnpm/zod@4.3
|
|
6499
|
-
var
|
|
6904
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
6905
|
+
var error21 = () => {
|
|
6500
6906
|
const Sizable = {
|
|
6501
6907
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6502
6908
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6598,12 +7004,12 @@ var error19 = () => {
|
|
|
6598
7004
|
};
|
|
6599
7005
|
function id_default() {
|
|
6600
7006
|
return {
|
|
6601
|
-
localeError:
|
|
7007
|
+
localeError: error21()
|
|
6602
7008
|
};
|
|
6603
7009
|
}
|
|
6604
7010
|
|
|
6605
|
-
// node_modules/.pnpm/zod@4.3
|
|
6606
|
-
var
|
|
7011
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
7012
|
+
var error22 = () => {
|
|
6607
7013
|
const Sizable = {
|
|
6608
7014
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6609
7015
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -6708,12 +7114,12 @@ var error20 = () => {
|
|
|
6708
7114
|
};
|
|
6709
7115
|
function is_default() {
|
|
6710
7116
|
return {
|
|
6711
|
-
localeError:
|
|
7117
|
+
localeError: error22()
|
|
6712
7118
|
};
|
|
6713
7119
|
}
|
|
6714
7120
|
|
|
6715
|
-
// node_modules/.pnpm/zod@4.3
|
|
6716
|
-
var
|
|
7121
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7122
|
+
var error23 = () => {
|
|
6717
7123
|
const Sizable = {
|
|
6718
7124
|
string: { unit: "caratteri", verb: "avere" },
|
|
6719
7125
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -6798,7 +7204,7 @@ var error21 = () => {
|
|
|
6798
7204
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
6799
7205
|
if (_issue.format === "regex")
|
|
6800
7206
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
6801
|
-
return `
|
|
7207
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6802
7208
|
}
|
|
6803
7209
|
case "not_multiple_of":
|
|
6804
7210
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -6817,12 +7223,12 @@ var error21 = () => {
|
|
|
6817
7223
|
};
|
|
6818
7224
|
function it_default() {
|
|
6819
7225
|
return {
|
|
6820
|
-
localeError:
|
|
7226
|
+
localeError: error23()
|
|
6821
7227
|
};
|
|
6822
7228
|
}
|
|
6823
7229
|
|
|
6824
|
-
// node_modules/.pnpm/zod@4.3
|
|
6825
|
-
var
|
|
7230
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7231
|
+
var error24 = () => {
|
|
6826
7232
|
const Sizable = {
|
|
6827
7233
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
6828
7234
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -6925,12 +7331,12 @@ var error22 = () => {
|
|
|
6925
7331
|
};
|
|
6926
7332
|
function ja_default() {
|
|
6927
7333
|
return {
|
|
6928
|
-
localeError:
|
|
7334
|
+
localeError: error24()
|
|
6929
7335
|
};
|
|
6930
7336
|
}
|
|
6931
7337
|
|
|
6932
|
-
// node_modules/.pnpm/zod@4.3
|
|
6933
|
-
var
|
|
7338
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7339
|
+
var error25 = () => {
|
|
6934
7340
|
const Sizable = {
|
|
6935
7341
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
6936
7342
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -6963,9 +7369,9 @@ var error23 = () => {
|
|
|
6963
7369
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
6964
7370
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6965
7371
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6966
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6967
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6968
|
-
json_string: "JSON \
|
|
7372
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7373
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7374
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
6969
7375
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
6970
7376
|
jwt: "JWT",
|
|
6971
7377
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -6973,7 +7379,7 @@ var error23 = () => {
|
|
|
6973
7379
|
const TypeDictionary = {
|
|
6974
7380
|
nan: "NaN",
|
|
6975
7381
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
6976
|
-
string: "\
|
|
7382
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
6977
7383
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
6978
7384
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
6979
7385
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -7011,14 +7417,14 @@ var error23 = () => {
|
|
|
7011
7417
|
case "invalid_format": {
|
|
7012
7418
|
const _issue = issue2;
|
|
7013
7419
|
if (_issue.format === "starts_with") {
|
|
7014
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7420
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
7015
7421
|
}
|
|
7016
7422
|
if (_issue.format === "ends_with")
|
|
7017
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7423
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
7018
7424
|
if (_issue.format === "includes")
|
|
7019
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7425
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
7020
7426
|
if (_issue.format === "regex")
|
|
7021
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7427
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\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}`;
|
|
7022
7428
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7023
7429
|
}
|
|
7024
7430
|
case "not_multiple_of":
|
|
@@ -7038,12 +7444,12 @@ var error23 = () => {
|
|
|
7038
7444
|
};
|
|
7039
7445
|
function ka_default() {
|
|
7040
7446
|
return {
|
|
7041
|
-
localeError:
|
|
7447
|
+
localeError: error25()
|
|
7042
7448
|
};
|
|
7043
7449
|
}
|
|
7044
7450
|
|
|
7045
|
-
// node_modules/.pnpm/zod@4.3
|
|
7046
|
-
var
|
|
7451
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7452
|
+
var error26 = () => {
|
|
7047
7453
|
const Sizable = {
|
|
7048
7454
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7049
7455
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7149,17 +7555,17 @@ var error24 = () => {
|
|
|
7149
7555
|
};
|
|
7150
7556
|
function km_default() {
|
|
7151
7557
|
return {
|
|
7152
|
-
localeError:
|
|
7558
|
+
localeError: error26()
|
|
7153
7559
|
};
|
|
7154
7560
|
}
|
|
7155
7561
|
|
|
7156
|
-
// node_modules/.pnpm/zod@4.3
|
|
7562
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7157
7563
|
function kh_default() {
|
|
7158
7564
|
return km_default();
|
|
7159
7565
|
}
|
|
7160
7566
|
|
|
7161
|
-
// node_modules/.pnpm/zod@4.3
|
|
7162
|
-
var
|
|
7567
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7568
|
+
var error27 = () => {
|
|
7163
7569
|
const Sizable = {
|
|
7164
7570
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7165
7571
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7266,11 +7672,11 @@ var error25 = () => {
|
|
|
7266
7672
|
};
|
|
7267
7673
|
function ko_default() {
|
|
7268
7674
|
return {
|
|
7269
|
-
localeError:
|
|
7675
|
+
localeError: error27()
|
|
7270
7676
|
};
|
|
7271
7677
|
}
|
|
7272
7678
|
|
|
7273
|
-
// node_modules/.pnpm/zod@4.3
|
|
7679
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7274
7680
|
var capitalizeFirstCharacter = (text) => {
|
|
7275
7681
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7276
7682
|
};
|
|
@@ -7284,7 +7690,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
7284
7690
|
return "one";
|
|
7285
7691
|
return "few";
|
|
7286
7692
|
}
|
|
7287
|
-
var
|
|
7693
|
+
var error28 = () => {
|
|
7288
7694
|
const Sizable = {
|
|
7289
7695
|
string: {
|
|
7290
7696
|
unit: {
|
|
@@ -7470,12 +7876,12 @@ var error26 = () => {
|
|
|
7470
7876
|
};
|
|
7471
7877
|
function lt_default() {
|
|
7472
7878
|
return {
|
|
7473
|
-
localeError:
|
|
7879
|
+
localeError: error28()
|
|
7474
7880
|
};
|
|
7475
7881
|
}
|
|
7476
7882
|
|
|
7477
|
-
// node_modules/.pnpm/zod@4.3
|
|
7478
|
-
var
|
|
7883
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
7884
|
+
var error29 = () => {
|
|
7479
7885
|
const Sizable = {
|
|
7480
7886
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7481
7887
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7580,12 +7986,12 @@ var error27 = () => {
|
|
|
7580
7986
|
};
|
|
7581
7987
|
function mk_default() {
|
|
7582
7988
|
return {
|
|
7583
|
-
localeError:
|
|
7989
|
+
localeError: error29()
|
|
7584
7990
|
};
|
|
7585
7991
|
}
|
|
7586
7992
|
|
|
7587
|
-
// node_modules/.pnpm/zod@4.3
|
|
7588
|
-
var
|
|
7993
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
7994
|
+
var error30 = () => {
|
|
7589
7995
|
const Sizable = {
|
|
7590
7996
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7591
7997
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -7688,12 +8094,12 @@ var error28 = () => {
|
|
|
7688
8094
|
};
|
|
7689
8095
|
function ms_default() {
|
|
7690
8096
|
return {
|
|
7691
|
-
localeError:
|
|
8097
|
+
localeError: error30()
|
|
7692
8098
|
};
|
|
7693
8099
|
}
|
|
7694
8100
|
|
|
7695
|
-
// node_modules/.pnpm/zod@4.3
|
|
7696
|
-
var
|
|
8101
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8102
|
+
var error31 = () => {
|
|
7697
8103
|
const Sizable = {
|
|
7698
8104
|
string: { unit: "tekens", verb: "heeft" },
|
|
7699
8105
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -7799,12 +8205,12 @@ var error29 = () => {
|
|
|
7799
8205
|
};
|
|
7800
8206
|
function nl_default() {
|
|
7801
8207
|
return {
|
|
7802
|
-
localeError:
|
|
8208
|
+
localeError: error31()
|
|
7803
8209
|
};
|
|
7804
8210
|
}
|
|
7805
8211
|
|
|
7806
|
-
// node_modules/.pnpm/zod@4.3
|
|
7807
|
-
var
|
|
8212
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8213
|
+
var error32 = () => {
|
|
7808
8214
|
const Sizable = {
|
|
7809
8215
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
7810
8216
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -7908,12 +8314,12 @@ var error30 = () => {
|
|
|
7908
8314
|
};
|
|
7909
8315
|
function no_default() {
|
|
7910
8316
|
return {
|
|
7911
|
-
localeError:
|
|
8317
|
+
localeError: error32()
|
|
7912
8318
|
};
|
|
7913
8319
|
}
|
|
7914
8320
|
|
|
7915
|
-
// node_modules/.pnpm/zod@4.3
|
|
7916
|
-
var
|
|
8321
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8322
|
+
var error33 = () => {
|
|
7917
8323
|
const Sizable = {
|
|
7918
8324
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
7919
8325
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8018,12 +8424,12 @@ var error31 = () => {
|
|
|
8018
8424
|
};
|
|
8019
8425
|
function ota_default() {
|
|
8020
8426
|
return {
|
|
8021
|
-
localeError:
|
|
8427
|
+
localeError: error33()
|
|
8022
8428
|
};
|
|
8023
8429
|
}
|
|
8024
8430
|
|
|
8025
|
-
// node_modules/.pnpm/zod@4.3
|
|
8026
|
-
var
|
|
8431
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8432
|
+
var error34 = () => {
|
|
8027
8433
|
const Sizable = {
|
|
8028
8434
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
8029
8435
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8133,12 +8539,12 @@ var error32 = () => {
|
|
|
8133
8539
|
};
|
|
8134
8540
|
function ps_default() {
|
|
8135
8541
|
return {
|
|
8136
|
-
localeError:
|
|
8542
|
+
localeError: error34()
|
|
8137
8543
|
};
|
|
8138
8544
|
}
|
|
8139
8545
|
|
|
8140
|
-
// node_modules/.pnpm/zod@4.3
|
|
8141
|
-
var
|
|
8546
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8547
|
+
var error35 = () => {
|
|
8142
8548
|
const Sizable = {
|
|
8143
8549
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8144
8550
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8243,12 +8649,12 @@ var error33 = () => {
|
|
|
8243
8649
|
};
|
|
8244
8650
|
function pl_default() {
|
|
8245
8651
|
return {
|
|
8246
|
-
localeError:
|
|
8652
|
+
localeError: error35()
|
|
8247
8653
|
};
|
|
8248
8654
|
}
|
|
8249
8655
|
|
|
8250
|
-
// node_modules/.pnpm/zod@4.3
|
|
8251
|
-
var
|
|
8656
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8657
|
+
var error36 = () => {
|
|
8252
8658
|
const Sizable = {
|
|
8253
8659
|
string: { unit: "caracteres", verb: "ter" },
|
|
8254
8660
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8352,11 +8758,131 @@ var error34 = () => {
|
|
|
8352
8758
|
};
|
|
8353
8759
|
function pt_default() {
|
|
8354
8760
|
return {
|
|
8355
|
-
localeError:
|
|
8761
|
+
localeError: error36()
|
|
8356
8762
|
};
|
|
8357
8763
|
}
|
|
8358
8764
|
|
|
8359
|
-
// node_modules/.pnpm/zod@4.3
|
|
8765
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
8766
|
+
var error37 = () => {
|
|
8767
|
+
const Sizable = {
|
|
8768
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
8769
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
8770
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8771
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8772
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
8773
|
+
};
|
|
8774
|
+
function getSizing(origin) {
|
|
8775
|
+
return Sizable[origin] ?? null;
|
|
8776
|
+
}
|
|
8777
|
+
const FormatDictionary = {
|
|
8778
|
+
regex: "intrare",
|
|
8779
|
+
email: "adres\u0103 de email",
|
|
8780
|
+
url: "URL",
|
|
8781
|
+
emoji: "emoji",
|
|
8782
|
+
uuid: "UUID",
|
|
8783
|
+
uuidv4: "UUIDv4",
|
|
8784
|
+
uuidv6: "UUIDv6",
|
|
8785
|
+
nanoid: "nanoid",
|
|
8786
|
+
guid: "GUID",
|
|
8787
|
+
cuid: "cuid",
|
|
8788
|
+
cuid2: "cuid2",
|
|
8789
|
+
ulid: "ULID",
|
|
8790
|
+
xid: "XID",
|
|
8791
|
+
ksuid: "KSUID",
|
|
8792
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
8793
|
+
date: "dat\u0103 ISO",
|
|
8794
|
+
time: "or\u0103 ISO",
|
|
8795
|
+
duration: "durat\u0103 ISO",
|
|
8796
|
+
ipv4: "adres\u0103 IPv4",
|
|
8797
|
+
ipv6: "adres\u0103 IPv6",
|
|
8798
|
+
mac: "adres\u0103 MAC",
|
|
8799
|
+
cidrv4: "interval IPv4",
|
|
8800
|
+
cidrv6: "interval IPv6",
|
|
8801
|
+
base64: "\u0219ir codat base64",
|
|
8802
|
+
base64url: "\u0219ir codat base64url",
|
|
8803
|
+
json_string: "\u0219ir JSON",
|
|
8804
|
+
e164: "num\u0103r E.164",
|
|
8805
|
+
jwt: "JWT",
|
|
8806
|
+
template_literal: "intrare"
|
|
8807
|
+
};
|
|
8808
|
+
const TypeDictionary = {
|
|
8809
|
+
nan: "NaN",
|
|
8810
|
+
string: "\u0219ir",
|
|
8811
|
+
number: "num\u0103r",
|
|
8812
|
+
boolean: "boolean",
|
|
8813
|
+
function: "func\u021Bie",
|
|
8814
|
+
array: "matrice",
|
|
8815
|
+
object: "obiect",
|
|
8816
|
+
undefined: "nedefinit",
|
|
8817
|
+
symbol: "simbol",
|
|
8818
|
+
bigint: "num\u0103r mare",
|
|
8819
|
+
void: "void",
|
|
8820
|
+
never: "never",
|
|
8821
|
+
map: "hart\u0103",
|
|
8822
|
+
set: "set"
|
|
8823
|
+
};
|
|
8824
|
+
return (issue2) => {
|
|
8825
|
+
switch (issue2.code) {
|
|
8826
|
+
case "invalid_type": {
|
|
8827
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8828
|
+
const receivedType = parsedType(issue2.input);
|
|
8829
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8830
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
8831
|
+
}
|
|
8832
|
+
case "invalid_value":
|
|
8833
|
+
if (issue2.values.length === 1)
|
|
8834
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
8835
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
8836
|
+
case "too_big": {
|
|
8837
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
8838
|
+
const sizing = getSizing(issue2.origin);
|
|
8839
|
+
if (sizing)
|
|
8840
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
8841
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
8842
|
+
}
|
|
8843
|
+
case "too_small": {
|
|
8844
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
8845
|
+
const sizing = getSizing(issue2.origin);
|
|
8846
|
+
if (sizing) {
|
|
8847
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
8848
|
+
}
|
|
8849
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
8850
|
+
}
|
|
8851
|
+
case "invalid_format": {
|
|
8852
|
+
const _issue = issue2;
|
|
8853
|
+
if (_issue.format === "starts_with") {
|
|
8854
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
8855
|
+
}
|
|
8856
|
+
if (_issue.format === "ends_with")
|
|
8857
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
8858
|
+
if (_issue.format === "includes")
|
|
8859
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
8860
|
+
if (_issue.format === "regex")
|
|
8861
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
8862
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8863
|
+
}
|
|
8864
|
+
case "not_multiple_of":
|
|
8865
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
8866
|
+
case "unrecognized_keys":
|
|
8867
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
8868
|
+
case "invalid_key":
|
|
8869
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8870
|
+
case "invalid_union":
|
|
8871
|
+
return "Intrare invalid\u0103";
|
|
8872
|
+
case "invalid_element":
|
|
8873
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8874
|
+
default:
|
|
8875
|
+
return `Intrare invalid\u0103`;
|
|
8876
|
+
}
|
|
8877
|
+
};
|
|
8878
|
+
};
|
|
8879
|
+
function ro_default() {
|
|
8880
|
+
return {
|
|
8881
|
+
localeError: error37()
|
|
8882
|
+
};
|
|
8883
|
+
}
|
|
8884
|
+
|
|
8885
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8360
8886
|
function getRussianPlural(count, one, few, many) {
|
|
8361
8887
|
const absCount = Math.abs(count);
|
|
8362
8888
|
const lastDigit = absCount % 10;
|
|
@@ -8372,7 +8898,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8372
8898
|
}
|
|
8373
8899
|
return many;
|
|
8374
8900
|
}
|
|
8375
|
-
var
|
|
8901
|
+
var error38 = () => {
|
|
8376
8902
|
const Sizable = {
|
|
8377
8903
|
string: {
|
|
8378
8904
|
unit: {
|
|
@@ -8509,12 +9035,12 @@ var error35 = () => {
|
|
|
8509
9035
|
};
|
|
8510
9036
|
function ru_default() {
|
|
8511
9037
|
return {
|
|
8512
|
-
localeError:
|
|
9038
|
+
localeError: error38()
|
|
8513
9039
|
};
|
|
8514
9040
|
}
|
|
8515
9041
|
|
|
8516
|
-
// node_modules/.pnpm/zod@4.3
|
|
8517
|
-
var
|
|
9042
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9043
|
+
var error39 = () => {
|
|
8518
9044
|
const Sizable = {
|
|
8519
9045
|
string: { unit: "znakov", verb: "imeti" },
|
|
8520
9046
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8619,12 +9145,12 @@ var error36 = () => {
|
|
|
8619
9145
|
};
|
|
8620
9146
|
function sl_default() {
|
|
8621
9147
|
return {
|
|
8622
|
-
localeError:
|
|
9148
|
+
localeError: error39()
|
|
8623
9149
|
};
|
|
8624
9150
|
}
|
|
8625
9151
|
|
|
8626
|
-
// node_modules/.pnpm/zod@4.3
|
|
8627
|
-
var
|
|
9152
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9153
|
+
var error40 = () => {
|
|
8628
9154
|
const Sizable = {
|
|
8629
9155
|
string: { unit: "tecken", verb: "att ha" },
|
|
8630
9156
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -8730,12 +9256,12 @@ var error37 = () => {
|
|
|
8730
9256
|
};
|
|
8731
9257
|
function sv_default() {
|
|
8732
9258
|
return {
|
|
8733
|
-
localeError:
|
|
9259
|
+
localeError: error40()
|
|
8734
9260
|
};
|
|
8735
9261
|
}
|
|
8736
9262
|
|
|
8737
|
-
// node_modules/.pnpm/zod@4.3
|
|
8738
|
-
var
|
|
9263
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9264
|
+
var error41 = () => {
|
|
8739
9265
|
const Sizable = {
|
|
8740
9266
|
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" },
|
|
8741
9267
|
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" },
|
|
@@ -8841,12 +9367,12 @@ var error38 = () => {
|
|
|
8841
9367
|
};
|
|
8842
9368
|
function ta_default() {
|
|
8843
9369
|
return {
|
|
8844
|
-
localeError:
|
|
9370
|
+
localeError: error41()
|
|
8845
9371
|
};
|
|
8846
9372
|
}
|
|
8847
9373
|
|
|
8848
|
-
// node_modules/.pnpm/zod@4.3
|
|
8849
|
-
var
|
|
9374
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9375
|
+
var error42 = () => {
|
|
8850
9376
|
const Sizable = {
|
|
8851
9377
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
8852
9378
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -8952,12 +9478,12 @@ var error39 = () => {
|
|
|
8952
9478
|
};
|
|
8953
9479
|
function th_default() {
|
|
8954
9480
|
return {
|
|
8955
|
-
localeError:
|
|
9481
|
+
localeError: error42()
|
|
8956
9482
|
};
|
|
8957
9483
|
}
|
|
8958
9484
|
|
|
8959
|
-
// node_modules/.pnpm/zod@4.3
|
|
8960
|
-
var
|
|
9485
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9486
|
+
var error43 = () => {
|
|
8961
9487
|
const Sizable = {
|
|
8962
9488
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
8963
9489
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9058,12 +9584,12 @@ var error40 = () => {
|
|
|
9058
9584
|
};
|
|
9059
9585
|
function tr_default() {
|
|
9060
9586
|
return {
|
|
9061
|
-
localeError:
|
|
9587
|
+
localeError: error43()
|
|
9062
9588
|
};
|
|
9063
9589
|
}
|
|
9064
9590
|
|
|
9065
|
-
// node_modules/.pnpm/zod@4.3
|
|
9066
|
-
var
|
|
9591
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9592
|
+
var error44 = () => {
|
|
9067
9593
|
const Sizable = {
|
|
9068
9594
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9069
9595
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9167,17 +9693,17 @@ var error41 = () => {
|
|
|
9167
9693
|
};
|
|
9168
9694
|
function uk_default() {
|
|
9169
9695
|
return {
|
|
9170
|
-
localeError:
|
|
9696
|
+
localeError: error44()
|
|
9171
9697
|
};
|
|
9172
9698
|
}
|
|
9173
9699
|
|
|
9174
|
-
// node_modules/.pnpm/zod@4.3
|
|
9700
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9175
9701
|
function ua_default() {
|
|
9176
9702
|
return uk_default();
|
|
9177
9703
|
}
|
|
9178
9704
|
|
|
9179
|
-
// node_modules/.pnpm/zod@4.3
|
|
9180
|
-
var
|
|
9705
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
9706
|
+
var error45 = () => {
|
|
9181
9707
|
const Sizable = {
|
|
9182
9708
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9183
9709
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9283,17 +9809,18 @@ var error42 = () => {
|
|
|
9283
9809
|
};
|
|
9284
9810
|
function ur_default() {
|
|
9285
9811
|
return {
|
|
9286
|
-
localeError:
|
|
9812
|
+
localeError: error45()
|
|
9287
9813
|
};
|
|
9288
9814
|
}
|
|
9289
9815
|
|
|
9290
|
-
// node_modules/.pnpm/zod@4.3
|
|
9291
|
-
var
|
|
9816
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
9817
|
+
var error46 = () => {
|
|
9292
9818
|
const Sizable = {
|
|
9293
9819
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9294
9820
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9295
9821
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9296
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
9822
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9823
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9297
9824
|
};
|
|
9298
9825
|
function getSizing(origin) {
|
|
9299
9826
|
return Sizable[origin] ?? null;
|
|
@@ -9393,12 +9920,12 @@ var error43 = () => {
|
|
|
9393
9920
|
};
|
|
9394
9921
|
function uz_default() {
|
|
9395
9922
|
return {
|
|
9396
|
-
localeError:
|
|
9923
|
+
localeError: error46()
|
|
9397
9924
|
};
|
|
9398
9925
|
}
|
|
9399
9926
|
|
|
9400
|
-
// node_modules/.pnpm/zod@4.3
|
|
9401
|
-
var
|
|
9927
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
9928
|
+
var error47 = () => {
|
|
9402
9929
|
const Sizable = {
|
|
9403
9930
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9404
9931
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9502,12 +10029,12 @@ var error44 = () => {
|
|
|
9502
10029
|
};
|
|
9503
10030
|
function vi_default() {
|
|
9504
10031
|
return {
|
|
9505
|
-
localeError:
|
|
10032
|
+
localeError: error47()
|
|
9506
10033
|
};
|
|
9507
10034
|
}
|
|
9508
10035
|
|
|
9509
|
-
// node_modules/.pnpm/zod@4.3
|
|
9510
|
-
var
|
|
10036
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
10037
|
+
var error48 = () => {
|
|
9511
10038
|
const Sizable = {
|
|
9512
10039
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9513
10040
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -9612,12 +10139,12 @@ var error45 = () => {
|
|
|
9612
10139
|
};
|
|
9613
10140
|
function zh_CN_default() {
|
|
9614
10141
|
return {
|
|
9615
|
-
localeError:
|
|
10142
|
+
localeError: error48()
|
|
9616
10143
|
};
|
|
9617
10144
|
}
|
|
9618
10145
|
|
|
9619
|
-
// node_modules/.pnpm/zod@4.3
|
|
9620
|
-
var
|
|
10146
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10147
|
+
var error49 = () => {
|
|
9621
10148
|
const Sizable = {
|
|
9622
10149
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
9623
10150
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -9720,12 +10247,12 @@ var error46 = () => {
|
|
|
9720
10247
|
};
|
|
9721
10248
|
function zh_TW_default() {
|
|
9722
10249
|
return {
|
|
9723
|
-
localeError:
|
|
10250
|
+
localeError: error49()
|
|
9724
10251
|
};
|
|
9725
10252
|
}
|
|
9726
10253
|
|
|
9727
|
-
// node_modules/.pnpm/zod@4.3
|
|
9728
|
-
var
|
|
10254
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10255
|
+
var error50 = () => {
|
|
9729
10256
|
const Sizable = {
|
|
9730
10257
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
9731
10258
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -9828,12 +10355,12 @@ var error47 = () => {
|
|
|
9828
10355
|
};
|
|
9829
10356
|
function yo_default() {
|
|
9830
10357
|
return {
|
|
9831
|
-
localeError:
|
|
10358
|
+
localeError: error50()
|
|
9832
10359
|
};
|
|
9833
10360
|
}
|
|
9834
10361
|
|
|
9835
|
-
// node_modules/.pnpm/zod@4.3
|
|
9836
|
-
var
|
|
10362
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10363
|
+
var _a2;
|
|
9837
10364
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
9838
10365
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
9839
10366
|
var $ZodRegistry = class {
|
|
@@ -9879,10 +10406,10 @@ var $ZodRegistry = class {
|
|
|
9879
10406
|
function registry() {
|
|
9880
10407
|
return new $ZodRegistry();
|
|
9881
10408
|
}
|
|
9882
|
-
(
|
|
10409
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
9883
10410
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
9884
10411
|
|
|
9885
|
-
// node_modules/.pnpm/zod@4.3
|
|
10412
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
9886
10413
|
// @__NO_SIDE_EFFECTS__
|
|
9887
10414
|
function _string(Class2, params) {
|
|
9888
10415
|
return new Class2({
|
|
@@ -10797,7 +11324,7 @@ function _refine(Class2, fn, _params) {
|
|
|
10797
11324
|
return schema;
|
|
10798
11325
|
}
|
|
10799
11326
|
// @__NO_SIDE_EFFECTS__
|
|
10800
|
-
function _superRefine(fn) {
|
|
11327
|
+
function _superRefine(fn, params) {
|
|
10801
11328
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
10802
11329
|
payload.addIssue = (issue2) => {
|
|
10803
11330
|
if (typeof issue2 === "string") {
|
|
@@ -10814,7 +11341,7 @@ function _superRefine(fn) {
|
|
|
10814
11341
|
}
|
|
10815
11342
|
};
|
|
10816
11343
|
return fn(payload.value, payload);
|
|
10817
|
-
});
|
|
11344
|
+
}, params);
|
|
10818
11345
|
return ch;
|
|
10819
11346
|
}
|
|
10820
11347
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -10921,7 +11448,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
10921
11448
|
return inst;
|
|
10922
11449
|
}
|
|
10923
11450
|
|
|
10924
|
-
// node_modules/.pnpm/zod@4.3
|
|
11451
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
10925
11452
|
function initializeContext(params) {
|
|
10926
11453
|
let target = params?.target ?? "draft-2020-12";
|
|
10927
11454
|
if (target === "draft-4")
|
|
@@ -10944,7 +11471,7 @@ function initializeContext(params) {
|
|
|
10944
11471
|
};
|
|
10945
11472
|
}
|
|
10946
11473
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
10947
|
-
var
|
|
11474
|
+
var _a3;
|
|
10948
11475
|
const def = schema._zod.def;
|
|
10949
11476
|
const seen = ctx.seen.get(schema);
|
|
10950
11477
|
if (seen) {
|
|
@@ -10991,8 +11518,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
10991
11518
|
delete result.schema.examples;
|
|
10992
11519
|
delete result.schema.default;
|
|
10993
11520
|
}
|
|
10994
|
-
if (ctx.io === "input" && result.schema
|
|
10995
|
-
(
|
|
11521
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11522
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
10996
11523
|
delete result.schema._prefault;
|
|
10997
11524
|
const _result = ctx.seen.get(schema);
|
|
10998
11525
|
return _result.schema;
|
|
@@ -11173,10 +11700,15 @@ function finalize(ctx, schema) {
|
|
|
11173
11700
|
result.$id = ctx.external.uri(id);
|
|
11174
11701
|
}
|
|
11175
11702
|
Object.assign(result, root.def ?? root.schema);
|
|
11703
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
11704
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
11705
|
+
delete result.id;
|
|
11176
11706
|
const defs = ctx.external?.defs ?? {};
|
|
11177
11707
|
for (const entry of ctx.seen.entries()) {
|
|
11178
11708
|
const seen = entry[1];
|
|
11179
11709
|
if (seen.def && seen.defId) {
|
|
11710
|
+
if (seen.def.id === seen.defId)
|
|
11711
|
+
delete seen.def.id;
|
|
11180
11712
|
defs[seen.defId] = seen.def;
|
|
11181
11713
|
}
|
|
11182
11714
|
}
|
|
@@ -11232,6 +11764,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
11232
11764
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11233
11765
|
}
|
|
11234
11766
|
if (def.type === "pipe") {
|
|
11767
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
11768
|
+
return true;
|
|
11235
11769
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11236
11770
|
}
|
|
11237
11771
|
if (def.type === "object") {
|
|
@@ -11273,7 +11807,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11273
11807
|
return finalize(ctx, schema);
|
|
11274
11808
|
};
|
|
11275
11809
|
|
|
11276
|
-
// node_modules/.pnpm/zod@4.3
|
|
11810
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11277
11811
|
var formatMap = {
|
|
11278
11812
|
guid: "uuid",
|
|
11279
11813
|
url: "uri",
|
|
@@ -11321,39 +11855,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11321
11855
|
json2.type = "integer";
|
|
11322
11856
|
else
|
|
11323
11857
|
json2.type = "number";
|
|
11324
|
-
|
|
11325
|
-
|
|
11858
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
11859
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
11860
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
11861
|
+
if (exMin) {
|
|
11862
|
+
if (legacy) {
|
|
11326
11863
|
json2.minimum = exclusiveMinimum;
|
|
11327
11864
|
json2.exclusiveMinimum = true;
|
|
11328
11865
|
} else {
|
|
11329
11866
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11330
11867
|
}
|
|
11331
|
-
}
|
|
11332
|
-
if (typeof minimum === "number") {
|
|
11868
|
+
} else if (typeof minimum === "number") {
|
|
11333
11869
|
json2.minimum = minimum;
|
|
11334
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11335
|
-
if (exclusiveMinimum >= minimum)
|
|
11336
|
-
delete json2.minimum;
|
|
11337
|
-
else
|
|
11338
|
-
delete json2.exclusiveMinimum;
|
|
11339
|
-
}
|
|
11340
11870
|
}
|
|
11341
|
-
if (
|
|
11342
|
-
if (
|
|
11871
|
+
if (exMax) {
|
|
11872
|
+
if (legacy) {
|
|
11343
11873
|
json2.maximum = exclusiveMaximum;
|
|
11344
11874
|
json2.exclusiveMaximum = true;
|
|
11345
11875
|
} else {
|
|
11346
11876
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11347
11877
|
}
|
|
11348
|
-
}
|
|
11349
|
-
if (typeof maximum === "number") {
|
|
11878
|
+
} else if (typeof maximum === "number") {
|
|
11350
11879
|
json2.maximum = maximum;
|
|
11351
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11352
|
-
if (exclusiveMaximum <= maximum)
|
|
11353
|
-
delete json2.maximum;
|
|
11354
|
-
else
|
|
11355
|
-
delete json2.exclusiveMaximum;
|
|
11356
|
-
}
|
|
11357
11880
|
}
|
|
11358
11881
|
if (typeof multipleOf === "number")
|
|
11359
11882
|
json2.multipleOf = multipleOf;
|
|
@@ -11525,7 +12048,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11525
12048
|
if (typeof maximum === "number")
|
|
11526
12049
|
json2.maxItems = maximum;
|
|
11527
12050
|
json2.type = "array";
|
|
11528
|
-
json2.items = process2(def.element, ctx, {
|
|
12051
|
+
json2.items = process2(def.element, ctx, {
|
|
12052
|
+
...params,
|
|
12053
|
+
path: [...params.path, "items"]
|
|
12054
|
+
});
|
|
11529
12055
|
};
|
|
11530
12056
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11531
12057
|
const json2 = _json;
|
|
@@ -11718,7 +12244,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
11718
12244
|
};
|
|
11719
12245
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
11720
12246
|
const def = schema._zod.def;
|
|
11721
|
-
const
|
|
12247
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12248
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
11722
12249
|
process2(innerType, ctx, params);
|
|
11723
12250
|
const seen = ctx.seen.get(schema);
|
|
11724
12251
|
seen.ref = innerType;
|
|
@@ -11824,7 +12351,7 @@ function toJSONSchema(input, params) {
|
|
|
11824
12351
|
return finalize(ctx, input);
|
|
11825
12352
|
}
|
|
11826
12353
|
|
|
11827
|
-
// node_modules/.pnpm/zod@4.3
|
|
12354
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
11828
12355
|
var JSONSchemaGenerator = class {
|
|
11829
12356
|
/** @deprecated Access via ctx instead */
|
|
11830
12357
|
get metadataRegistry() {
|
|
@@ -11899,10 +12426,10 @@ var JSONSchemaGenerator = class {
|
|
|
11899
12426
|
}
|
|
11900
12427
|
};
|
|
11901
12428
|
|
|
11902
|
-
// node_modules/.pnpm/zod@4.3
|
|
12429
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
11903
12430
|
var json_schema_exports = {};
|
|
11904
12431
|
|
|
11905
|
-
// node_modules/.pnpm/zod@4.3
|
|
12432
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
11906
12433
|
var schemas_exports2 = {};
|
|
11907
12434
|
__export(schemas_exports2, {
|
|
11908
12435
|
ZodAny: () => ZodAny,
|
|
@@ -11952,6 +12479,7 @@ __export(schemas_exports2, {
|
|
|
11952
12479
|
ZodOptional: () => ZodOptional,
|
|
11953
12480
|
ZodPipe: () => ZodPipe,
|
|
11954
12481
|
ZodPrefault: () => ZodPrefault,
|
|
12482
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
11955
12483
|
ZodPromise: () => ZodPromise,
|
|
11956
12484
|
ZodReadonly: () => ZodReadonly,
|
|
11957
12485
|
ZodRecord: () => ZodRecord,
|
|
@@ -12012,6 +12540,7 @@ __export(schemas_exports2, {
|
|
|
12012
12540
|
int32: () => int32,
|
|
12013
12541
|
int64: () => int64,
|
|
12014
12542
|
intersection: () => intersection,
|
|
12543
|
+
invertCodec: () => invertCodec,
|
|
12015
12544
|
ipv4: () => ipv42,
|
|
12016
12545
|
ipv6: () => ipv62,
|
|
12017
12546
|
json: () => json,
|
|
@@ -12071,7 +12600,7 @@ __export(schemas_exports2, {
|
|
|
12071
12600
|
xor: () => xor
|
|
12072
12601
|
});
|
|
12073
12602
|
|
|
12074
|
-
// node_modules/.pnpm/zod@4.3
|
|
12603
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
12075
12604
|
var checks_exports2 = {};
|
|
12076
12605
|
__export(checks_exports2, {
|
|
12077
12606
|
endsWith: () => _endsWith,
|
|
@@ -12105,7 +12634,7 @@ __export(checks_exports2, {
|
|
|
12105
12634
|
uppercase: () => _uppercase
|
|
12106
12635
|
});
|
|
12107
12636
|
|
|
12108
|
-
// node_modules/.pnpm/zod@4.3
|
|
12637
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
12109
12638
|
var iso_exports = {};
|
|
12110
12639
|
__export(iso_exports, {
|
|
12111
12640
|
ZodISODate: () => ZodISODate,
|
|
@@ -12146,7 +12675,7 @@ function duration2(params) {
|
|
|
12146
12675
|
return _isoDuration(ZodISODuration, params);
|
|
12147
12676
|
}
|
|
12148
12677
|
|
|
12149
|
-
// node_modules/.pnpm/zod@4.3
|
|
12678
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
12150
12679
|
var initializer2 = (inst, issues) => {
|
|
12151
12680
|
$ZodError.init(inst, issues);
|
|
12152
12681
|
inst.name = "ZodError";
|
|
@@ -12181,12 +12710,12 @@ var initializer2 = (inst, issues) => {
|
|
|
12181
12710
|
}
|
|
12182
12711
|
});
|
|
12183
12712
|
};
|
|
12184
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
12185
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
12713
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
12714
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
12186
12715
|
Parent: Error
|
|
12187
12716
|
});
|
|
12188
12717
|
|
|
12189
|
-
// node_modules/.pnpm/zod@4.3
|
|
12718
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
12190
12719
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
12191
12720
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
12192
12721
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12200,7 +12729,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
12200
12729
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12201
12730
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12202
12731
|
|
|
12203
|
-
// node_modules/.pnpm/zod@4.3
|
|
12732
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12733
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
12734
|
+
function _installLazyMethods(inst, group, methods) {
|
|
12735
|
+
const proto = Object.getPrototypeOf(inst);
|
|
12736
|
+
let installed = _installedGroups.get(proto);
|
|
12737
|
+
if (!installed) {
|
|
12738
|
+
installed = /* @__PURE__ */ new Set();
|
|
12739
|
+
_installedGroups.set(proto, installed);
|
|
12740
|
+
}
|
|
12741
|
+
if (installed.has(group))
|
|
12742
|
+
return;
|
|
12743
|
+
installed.add(group);
|
|
12744
|
+
for (const key in methods) {
|
|
12745
|
+
const fn = methods[key];
|
|
12746
|
+
Object.defineProperty(proto, key, {
|
|
12747
|
+
configurable: true,
|
|
12748
|
+
enumerable: false,
|
|
12749
|
+
get() {
|
|
12750
|
+
const bound = fn.bind(this);
|
|
12751
|
+
Object.defineProperty(this, key, {
|
|
12752
|
+
configurable: true,
|
|
12753
|
+
writable: true,
|
|
12754
|
+
enumerable: true,
|
|
12755
|
+
value: bound
|
|
12756
|
+
});
|
|
12757
|
+
return bound;
|
|
12758
|
+
},
|
|
12759
|
+
set(v) {
|
|
12760
|
+
Object.defineProperty(this, key, {
|
|
12761
|
+
configurable: true,
|
|
12762
|
+
writable: true,
|
|
12763
|
+
enumerable: true,
|
|
12764
|
+
value: v
|
|
12765
|
+
});
|
|
12766
|
+
}
|
|
12767
|
+
});
|
|
12768
|
+
}
|
|
12769
|
+
}
|
|
12204
12770
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12205
12771
|
$ZodType.init(inst, def);
|
|
12206
12772
|
Object.assign(inst["~standard"], {
|
|
@@ -12213,23 +12779,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12213
12779
|
inst.def = def;
|
|
12214
12780
|
inst.type = def.type;
|
|
12215
12781
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12216
|
-
inst.check = (...checks) => {
|
|
12217
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
12218
|
-
checks: [
|
|
12219
|
-
...def.checks ?? [],
|
|
12220
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12221
|
-
]
|
|
12222
|
-
}), {
|
|
12223
|
-
parent: true
|
|
12224
|
-
});
|
|
12225
|
-
};
|
|
12226
|
-
inst.with = inst.check;
|
|
12227
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12228
|
-
inst.brand = () => inst;
|
|
12229
|
-
inst.register = ((reg, meta3) => {
|
|
12230
|
-
reg.add(inst, meta3);
|
|
12231
|
-
return inst;
|
|
12232
|
-
});
|
|
12233
12782
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
12234
12783
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12235
12784
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12243,45 +12792,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12243
12792
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12244
12793
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12245
12794
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12246
|
-
inst
|
|
12247
|
-
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12795
|
+
_installLazyMethods(inst, "ZodType", {
|
|
12796
|
+
check(...chks) {
|
|
12797
|
+
const def2 = this.def;
|
|
12798
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
12799
|
+
checks: [
|
|
12800
|
+
...def2.checks ?? [],
|
|
12801
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12802
|
+
]
|
|
12803
|
+
}), { parent: true });
|
|
12804
|
+
},
|
|
12805
|
+
with(...chks) {
|
|
12806
|
+
return this.check(...chks);
|
|
12807
|
+
},
|
|
12808
|
+
clone(def2, params) {
|
|
12809
|
+
return clone(this, def2, params);
|
|
12810
|
+
},
|
|
12811
|
+
brand() {
|
|
12812
|
+
return this;
|
|
12813
|
+
},
|
|
12814
|
+
register(reg, meta3) {
|
|
12815
|
+
reg.add(this, meta3);
|
|
12816
|
+
return this;
|
|
12817
|
+
},
|
|
12818
|
+
refine(check2, params) {
|
|
12819
|
+
return this.check(refine(check2, params));
|
|
12820
|
+
},
|
|
12821
|
+
superRefine(refinement, params) {
|
|
12822
|
+
return this.check(superRefine(refinement, params));
|
|
12823
|
+
},
|
|
12824
|
+
overwrite(fn) {
|
|
12825
|
+
return this.check(_overwrite(fn));
|
|
12826
|
+
},
|
|
12827
|
+
optional() {
|
|
12828
|
+
return optional(this);
|
|
12829
|
+
},
|
|
12830
|
+
exactOptional() {
|
|
12831
|
+
return exactOptional(this);
|
|
12832
|
+
},
|
|
12833
|
+
nullable() {
|
|
12834
|
+
return nullable(this);
|
|
12835
|
+
},
|
|
12836
|
+
nullish() {
|
|
12837
|
+
return optional(nullable(this));
|
|
12838
|
+
},
|
|
12839
|
+
nonoptional(params) {
|
|
12840
|
+
return nonoptional(this, params);
|
|
12841
|
+
},
|
|
12842
|
+
array() {
|
|
12843
|
+
return array(this);
|
|
12844
|
+
},
|
|
12845
|
+
or(arg) {
|
|
12846
|
+
return union([this, arg]);
|
|
12847
|
+
},
|
|
12848
|
+
and(arg) {
|
|
12849
|
+
return intersection(this, arg);
|
|
12850
|
+
},
|
|
12851
|
+
transform(tx) {
|
|
12852
|
+
return pipe(this, transform(tx));
|
|
12853
|
+
},
|
|
12854
|
+
default(d) {
|
|
12855
|
+
return _default2(this, d);
|
|
12856
|
+
},
|
|
12857
|
+
prefault(d) {
|
|
12858
|
+
return prefault(this, d);
|
|
12859
|
+
},
|
|
12860
|
+
catch(params) {
|
|
12861
|
+
return _catch2(this, params);
|
|
12862
|
+
},
|
|
12863
|
+
pipe(target) {
|
|
12864
|
+
return pipe(this, target);
|
|
12865
|
+
},
|
|
12866
|
+
readonly() {
|
|
12867
|
+
return readonly(this);
|
|
12868
|
+
},
|
|
12869
|
+
describe(description) {
|
|
12870
|
+
const cl = this.clone();
|
|
12871
|
+
globalRegistry.add(cl, { description });
|
|
12872
|
+
return cl;
|
|
12873
|
+
},
|
|
12874
|
+
meta(...args) {
|
|
12875
|
+
if (args.length === 0)
|
|
12876
|
+
return globalRegistry.get(this);
|
|
12877
|
+
const cl = this.clone();
|
|
12878
|
+
globalRegistry.add(cl, args[0]);
|
|
12879
|
+
return cl;
|
|
12880
|
+
},
|
|
12881
|
+
isOptional() {
|
|
12882
|
+
return this.safeParse(void 0).success;
|
|
12883
|
+
},
|
|
12884
|
+
isNullable() {
|
|
12885
|
+
return this.safeParse(null).success;
|
|
12886
|
+
},
|
|
12887
|
+
apply(fn) {
|
|
12888
|
+
return fn(this);
|
|
12889
|
+
}
|
|
12890
|
+
});
|
|
12268
12891
|
Object.defineProperty(inst, "description", {
|
|
12269
12892
|
get() {
|
|
12270
12893
|
return globalRegistry.get(inst)?.description;
|
|
12271
12894
|
},
|
|
12272
12895
|
configurable: true
|
|
12273
12896
|
});
|
|
12274
|
-
inst.meta = (...args) => {
|
|
12275
|
-
if (args.length === 0) {
|
|
12276
|
-
return globalRegistry.get(inst);
|
|
12277
|
-
}
|
|
12278
|
-
const cl = inst.clone();
|
|
12279
|
-
globalRegistry.add(cl, args[0]);
|
|
12280
|
-
return cl;
|
|
12281
|
-
};
|
|
12282
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
12283
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12284
|
-
inst.apply = (fn) => fn(inst);
|
|
12285
12897
|
return inst;
|
|
12286
12898
|
});
|
|
12287
12899
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12292,21 +12904,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12292
12904
|
inst.format = bag.format ?? null;
|
|
12293
12905
|
inst.minLength = bag.minimum ?? null;
|
|
12294
12906
|
inst.maxLength = bag.maximum ?? null;
|
|
12295
|
-
inst
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
|
|
12907
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
12908
|
+
regex(...args) {
|
|
12909
|
+
return this.check(_regex(...args));
|
|
12910
|
+
},
|
|
12911
|
+
includes(...args) {
|
|
12912
|
+
return this.check(_includes(...args));
|
|
12913
|
+
},
|
|
12914
|
+
startsWith(...args) {
|
|
12915
|
+
return this.check(_startsWith(...args));
|
|
12916
|
+
},
|
|
12917
|
+
endsWith(...args) {
|
|
12918
|
+
return this.check(_endsWith(...args));
|
|
12919
|
+
},
|
|
12920
|
+
min(...args) {
|
|
12921
|
+
return this.check(_minLength(...args));
|
|
12922
|
+
},
|
|
12923
|
+
max(...args) {
|
|
12924
|
+
return this.check(_maxLength(...args));
|
|
12925
|
+
},
|
|
12926
|
+
length(...args) {
|
|
12927
|
+
return this.check(_length(...args));
|
|
12928
|
+
},
|
|
12929
|
+
nonempty(...args) {
|
|
12930
|
+
return this.check(_minLength(1, ...args));
|
|
12931
|
+
},
|
|
12932
|
+
lowercase(params) {
|
|
12933
|
+
return this.check(_lowercase(params));
|
|
12934
|
+
},
|
|
12935
|
+
uppercase(params) {
|
|
12936
|
+
return this.check(_uppercase(params));
|
|
12937
|
+
},
|
|
12938
|
+
trim() {
|
|
12939
|
+
return this.check(_trim());
|
|
12940
|
+
},
|
|
12941
|
+
normalize(...args) {
|
|
12942
|
+
return this.check(_normalize(...args));
|
|
12943
|
+
},
|
|
12944
|
+
toLowerCase() {
|
|
12945
|
+
return this.check(_toLowerCase());
|
|
12946
|
+
},
|
|
12947
|
+
toUpperCase() {
|
|
12948
|
+
return this.check(_toUpperCase());
|
|
12949
|
+
},
|
|
12950
|
+
slugify() {
|
|
12951
|
+
return this.check(_slugify());
|
|
12952
|
+
}
|
|
12953
|
+
});
|
|
12310
12954
|
});
|
|
12311
12955
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12312
12956
|
$ZodString.init(inst, def);
|
|
@@ -12385,7 +13029,7 @@ function url(params) {
|
|
|
12385
13029
|
}
|
|
12386
13030
|
function httpUrl(params) {
|
|
12387
13031
|
return _url(ZodURL, {
|
|
12388
|
-
protocol:
|
|
13032
|
+
protocol: regexes_exports.httpProtocol,
|
|
12389
13033
|
hostname: regexes_exports.domain,
|
|
12390
13034
|
...util_exports.normalizeParams(params)
|
|
12391
13035
|
});
|
|
@@ -12527,21 +13171,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
12527
13171
|
$ZodNumber.init(inst, def);
|
|
12528
13172
|
ZodType.init(inst, def);
|
|
12529
13173
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
12530
|
-
inst
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
13174
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
13175
|
+
gt(value, params) {
|
|
13176
|
+
return this.check(_gt(value, params));
|
|
13177
|
+
},
|
|
13178
|
+
gte(value, params) {
|
|
13179
|
+
return this.check(_gte(value, params));
|
|
13180
|
+
},
|
|
13181
|
+
min(value, params) {
|
|
13182
|
+
return this.check(_gte(value, params));
|
|
13183
|
+
},
|
|
13184
|
+
lt(value, params) {
|
|
13185
|
+
return this.check(_lt(value, params));
|
|
13186
|
+
},
|
|
13187
|
+
lte(value, params) {
|
|
13188
|
+
return this.check(_lte(value, params));
|
|
13189
|
+
},
|
|
13190
|
+
max(value, params) {
|
|
13191
|
+
return this.check(_lte(value, params));
|
|
13192
|
+
},
|
|
13193
|
+
int(params) {
|
|
13194
|
+
return this.check(int(params));
|
|
13195
|
+
},
|
|
13196
|
+
safe(params) {
|
|
13197
|
+
return this.check(int(params));
|
|
13198
|
+
},
|
|
13199
|
+
positive(params) {
|
|
13200
|
+
return this.check(_gt(0, params));
|
|
13201
|
+
},
|
|
13202
|
+
nonnegative(params) {
|
|
13203
|
+
return this.check(_gte(0, params));
|
|
13204
|
+
},
|
|
13205
|
+
negative(params) {
|
|
13206
|
+
return this.check(_lt(0, params));
|
|
13207
|
+
},
|
|
13208
|
+
nonpositive(params) {
|
|
13209
|
+
return this.check(_lte(0, params));
|
|
13210
|
+
},
|
|
13211
|
+
multipleOf(value, params) {
|
|
13212
|
+
return this.check(_multipleOf(value, params));
|
|
13213
|
+
},
|
|
13214
|
+
step(value, params) {
|
|
13215
|
+
return this.check(_multipleOf(value, params));
|
|
13216
|
+
},
|
|
13217
|
+
finite() {
|
|
13218
|
+
return this;
|
|
13219
|
+
}
|
|
13220
|
+
});
|
|
12545
13221
|
const bag = inst._zod.bag;
|
|
12546
13222
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
12547
13223
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -12688,11 +13364,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
12688
13364
|
ZodType.init(inst, def);
|
|
12689
13365
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
12690
13366
|
inst.element = def.element;
|
|
12691
|
-
inst
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
13367
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13368
|
+
min(n, params) {
|
|
13369
|
+
return this.check(_minLength(n, params));
|
|
13370
|
+
},
|
|
13371
|
+
nonempty(params) {
|
|
13372
|
+
return this.check(_minLength(1, params));
|
|
13373
|
+
},
|
|
13374
|
+
max(n, params) {
|
|
13375
|
+
return this.check(_maxLength(n, params));
|
|
13376
|
+
},
|
|
13377
|
+
length(n, params) {
|
|
13378
|
+
return this.check(_length(n, params));
|
|
13379
|
+
},
|
|
13380
|
+
unwrap() {
|
|
13381
|
+
return this.element;
|
|
13382
|
+
}
|
|
13383
|
+
});
|
|
12696
13384
|
});
|
|
12697
13385
|
function array(element, params) {
|
|
12698
13386
|
return _array(ZodArray, element, params);
|
|
@@ -12708,23 +13396,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
12708
13396
|
util_exports.defineLazy(inst, "shape", () => {
|
|
12709
13397
|
return def.shape;
|
|
12710
13398
|
});
|
|
12711
|
-
inst
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
13399
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13400
|
+
keyof() {
|
|
13401
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13402
|
+
},
|
|
13403
|
+
catchall(catchall) {
|
|
13404
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13405
|
+
},
|
|
13406
|
+
passthrough() {
|
|
13407
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13408
|
+
},
|
|
13409
|
+
loose() {
|
|
13410
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13411
|
+
},
|
|
13412
|
+
strict() {
|
|
13413
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13414
|
+
},
|
|
13415
|
+
strip() {
|
|
13416
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
13417
|
+
},
|
|
13418
|
+
extend(incoming) {
|
|
13419
|
+
return util_exports.extend(this, incoming);
|
|
13420
|
+
},
|
|
13421
|
+
safeExtend(incoming) {
|
|
13422
|
+
return util_exports.safeExtend(this, incoming);
|
|
13423
|
+
},
|
|
13424
|
+
merge(other) {
|
|
13425
|
+
return util_exports.merge(this, other);
|
|
13426
|
+
},
|
|
13427
|
+
pick(mask) {
|
|
13428
|
+
return util_exports.pick(this, mask);
|
|
13429
|
+
},
|
|
13430
|
+
omit(mask) {
|
|
13431
|
+
return util_exports.omit(this, mask);
|
|
13432
|
+
},
|
|
13433
|
+
partial(...args) {
|
|
13434
|
+
return util_exports.partial(ZodOptional, this, args[0]);
|
|
13435
|
+
},
|
|
13436
|
+
required(...args) {
|
|
13437
|
+
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
13438
|
+
}
|
|
13439
|
+
});
|
|
12728
13440
|
});
|
|
12729
13441
|
function object(shape, params) {
|
|
12730
13442
|
const def = {
|
|
@@ -12829,6 +13541,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
12829
13541
|
inst.valueType = def.valueType;
|
|
12830
13542
|
});
|
|
12831
13543
|
function record(keyType, valueType, params) {
|
|
13544
|
+
if (!valueType || !valueType._zod) {
|
|
13545
|
+
return new ZodRecord({
|
|
13546
|
+
type: "record",
|
|
13547
|
+
keyType: string2(),
|
|
13548
|
+
valueType: keyType,
|
|
13549
|
+
...util_exports.normalizeParams(valueType)
|
|
13550
|
+
});
|
|
13551
|
+
}
|
|
12832
13552
|
return new ZodRecord({
|
|
12833
13553
|
type: "record",
|
|
12834
13554
|
keyType,
|
|
@@ -13000,10 +13720,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
13000
13720
|
if (output instanceof Promise) {
|
|
13001
13721
|
return output.then((output2) => {
|
|
13002
13722
|
payload.value = output2;
|
|
13723
|
+
payload.fallback = true;
|
|
13003
13724
|
return payload;
|
|
13004
13725
|
});
|
|
13005
13726
|
}
|
|
13006
13727
|
payload.value = output;
|
|
13728
|
+
payload.fallback = true;
|
|
13007
13729
|
return payload;
|
|
13008
13730
|
};
|
|
13009
13731
|
});
|
|
@@ -13158,6 +13880,20 @@ function codec(in_, out, params) {
|
|
|
13158
13880
|
reverseTransform: params.encode
|
|
13159
13881
|
});
|
|
13160
13882
|
}
|
|
13883
|
+
function invertCodec(codec2) {
|
|
13884
|
+
const def = codec2._zod.def;
|
|
13885
|
+
return new ZodCodec({
|
|
13886
|
+
type: "pipe",
|
|
13887
|
+
in: def.out,
|
|
13888
|
+
out: def.in,
|
|
13889
|
+
transform: def.reverseTransform,
|
|
13890
|
+
reverseTransform: def.transform
|
|
13891
|
+
});
|
|
13892
|
+
}
|
|
13893
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
13894
|
+
ZodPipe.init(inst, def);
|
|
13895
|
+
$ZodPreprocess.init(inst, def);
|
|
13896
|
+
});
|
|
13161
13897
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13162
13898
|
$ZodReadonly.init(inst, def);
|
|
13163
13899
|
ZodType.init(inst, def);
|
|
@@ -13237,8 +13973,8 @@ function custom(fn, _params) {
|
|
|
13237
13973
|
function refine(fn, _params = {}) {
|
|
13238
13974
|
return _refine(ZodCustom, fn, _params);
|
|
13239
13975
|
}
|
|
13240
|
-
function superRefine(fn) {
|
|
13241
|
-
return _superRefine(fn);
|
|
13976
|
+
function superRefine(fn, params) {
|
|
13977
|
+
return _superRefine(fn, params);
|
|
13242
13978
|
}
|
|
13243
13979
|
var describe2 = describe;
|
|
13244
13980
|
var meta2 = meta;
|
|
@@ -13276,10 +14012,14 @@ function json(params) {
|
|
|
13276
14012
|
return jsonSchema;
|
|
13277
14013
|
}
|
|
13278
14014
|
function preprocess(fn, schema) {
|
|
13279
|
-
return
|
|
14015
|
+
return new ZodPreprocess({
|
|
14016
|
+
type: "pipe",
|
|
14017
|
+
in: transform(fn),
|
|
14018
|
+
out: schema
|
|
14019
|
+
});
|
|
13280
14020
|
}
|
|
13281
14021
|
|
|
13282
|
-
// node_modules/.pnpm/zod@4.3
|
|
14022
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
13283
14023
|
var ZodIssueCode = {
|
|
13284
14024
|
invalid_type: "invalid_type",
|
|
13285
14025
|
too_big: "too_big",
|
|
@@ -13305,7 +14045,7 @@ var ZodFirstPartyTypeKind;
|
|
|
13305
14045
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
13306
14046
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
13307
14047
|
|
|
13308
|
-
// node_modules/.pnpm/zod@4.3
|
|
14048
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
13309
14049
|
var z = {
|
|
13310
14050
|
...schemas_exports2,
|
|
13311
14051
|
...checks_exports2,
|
|
@@ -13697,12 +14437,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
13697
14437
|
default:
|
|
13698
14438
|
throw new Error(`Unsupported type: ${type}`);
|
|
13699
14439
|
}
|
|
13700
|
-
if (schema.description) {
|
|
13701
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
13702
|
-
}
|
|
13703
|
-
if (schema.default !== void 0) {
|
|
13704
|
-
zodSchema = zodSchema.default(schema.default);
|
|
13705
|
-
}
|
|
13706
14440
|
return zodSchema;
|
|
13707
14441
|
}
|
|
13708
14442
|
function convertSchema(schema, ctx) {
|
|
@@ -13739,6 +14473,9 @@ function convertSchema(schema, ctx) {
|
|
|
13739
14473
|
if (schema.readOnly === true) {
|
|
13740
14474
|
baseSchema = z.readonly(baseSchema);
|
|
13741
14475
|
}
|
|
14476
|
+
if (schema.default !== void 0) {
|
|
14477
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14478
|
+
}
|
|
13742
14479
|
const extraMeta = {};
|
|
13743
14480
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
13744
14481
|
for (const key of coreMetadataKeys) {
|
|
@@ -13760,26 +14497,35 @@ function convertSchema(schema, ctx) {
|
|
|
13760
14497
|
if (Object.keys(extraMeta).length > 0) {
|
|
13761
14498
|
ctx.registry.add(baseSchema, extraMeta);
|
|
13762
14499
|
}
|
|
14500
|
+
if (schema.description) {
|
|
14501
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14502
|
+
}
|
|
13763
14503
|
return baseSchema;
|
|
13764
14504
|
}
|
|
13765
14505
|
function fromJSONSchema(schema, params) {
|
|
13766
14506
|
if (typeof schema === "boolean") {
|
|
13767
14507
|
return schema ? z.any() : z.never();
|
|
13768
14508
|
}
|
|
13769
|
-
|
|
13770
|
-
|
|
14509
|
+
let normalized;
|
|
14510
|
+
try {
|
|
14511
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14512
|
+
} catch {
|
|
14513
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14514
|
+
}
|
|
14515
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14516
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
13771
14517
|
const ctx = {
|
|
13772
14518
|
version: version2,
|
|
13773
14519
|
defs,
|
|
13774
14520
|
refs: /* @__PURE__ */ new Map(),
|
|
13775
14521
|
processing: /* @__PURE__ */ new Set(),
|
|
13776
|
-
rootSchema:
|
|
14522
|
+
rootSchema: normalized,
|
|
13777
14523
|
registry: params?.registry ?? globalRegistry
|
|
13778
14524
|
};
|
|
13779
|
-
return convertSchema(
|
|
14525
|
+
return convertSchema(normalized, ctx);
|
|
13780
14526
|
}
|
|
13781
14527
|
|
|
13782
|
-
// node_modules/.pnpm/zod@4.3
|
|
14528
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
13783
14529
|
var coerce_exports = {};
|
|
13784
14530
|
__export(coerce_exports, {
|
|
13785
14531
|
bigint: () => bigint3,
|
|
@@ -13804,7 +14550,7 @@ function date4(params) {
|
|
|
13804
14550
|
return _coercedDate(ZodDate, params);
|
|
13805
14551
|
}
|
|
13806
14552
|
|
|
13807
|
-
// node_modules/.pnpm/zod@4.3
|
|
14553
|
+
// node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
13808
14554
|
config(en_default());
|
|
13809
14555
|
|
|
13810
14556
|
// src/lib/config-schema.ts
|
|
@@ -13885,9 +14631,9 @@ function loadConfig(configFile, logger = noopLogger) {
|
|
|
13885
14631
|
const yamlConfig = yaml.load(content);
|
|
13886
14632
|
logger.info(`Loaded config from ${configFile}`);
|
|
13887
14633
|
return mergeWithDefaults(yamlConfig);
|
|
13888
|
-
} catch (
|
|
13889
|
-
const isNotFound =
|
|
13890
|
-
|
|
14634
|
+
} catch (error51) {
|
|
14635
|
+
const isNotFound = error51 instanceof Error && "code" in error51 && // oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion
|
|
14636
|
+
error51.code === "ENOENT";
|
|
13891
14637
|
if (isNotFound) {
|
|
13892
14638
|
logger.info(`Config file not found at ${configFile}, using defaults`);
|
|
13893
14639
|
} else {
|
|
@@ -13963,8 +14709,8 @@ var GraphQLClientWrapper = class {
|
|
|
13963
14709
|
const retryInfo = attempt > 0 ? ` (succeeded on attempt ${attempt + 1})` : "";
|
|
13964
14710
|
this.logger.debug(`\u2713 GraphQL request completed in ${totalDuration2}ms${retryInfo}`, result);
|
|
13965
14711
|
return result;
|
|
13966
|
-
} catch (
|
|
13967
|
-
lastError =
|
|
14712
|
+
} catch (error51) {
|
|
14713
|
+
lastError = error51;
|
|
13968
14714
|
const duration3 = Date.now() - attemptStartTime;
|
|
13969
14715
|
if (this.metrics) {
|
|
13970
14716
|
this.metrics.recordRequestDuration(duration3);
|
|
@@ -13975,12 +14721,12 @@ var GraphQLClientWrapper = class {
|
|
|
13975
14721
|
}
|
|
13976
14722
|
break;
|
|
13977
14723
|
}
|
|
13978
|
-
if (!this.isRetryableError(
|
|
14724
|
+
if (!this.isRetryableError(error51, config2)) {
|
|
13979
14725
|
this.logger.error(
|
|
13980
14726
|
`\u2717 GraphQL request failed with non-retryable error in ${duration3}ms`,
|
|
13981
|
-
|
|
14727
|
+
error51
|
|
13982
14728
|
);
|
|
13983
|
-
throw
|
|
14729
|
+
throw error51;
|
|
13984
14730
|
}
|
|
13985
14731
|
const delay = this.calculateDelay(attempt, config2);
|
|
13986
14732
|
this.logger.debug(
|
|
@@ -13996,11 +14742,11 @@ var GraphQLClientWrapper = class {
|
|
|
13996
14742
|
);
|
|
13997
14743
|
throw lastError;
|
|
13998
14744
|
}
|
|
13999
|
-
isRetryableError(
|
|
14000
|
-
if (!
|
|
14745
|
+
isRetryableError(error51, config2) {
|
|
14746
|
+
if (!error51.response) {
|
|
14001
14747
|
return true;
|
|
14002
14748
|
}
|
|
14003
|
-
const status =
|
|
14749
|
+
const status = error51.response.status;
|
|
14004
14750
|
return config2.retryableStatusCodes.includes(status);
|
|
14005
14751
|
}
|
|
14006
14752
|
calculateDelay(attempt, config2) {
|
|
@@ -14092,7 +14838,7 @@ var CsvReader = class extends DataReader {
|
|
|
14092
14838
|
async readFile(filePath) {
|
|
14093
14839
|
return new Promise((resolve, reject) => {
|
|
14094
14840
|
const results = [];
|
|
14095
|
-
fs2.createReadStream(filePath).pipe(csv()).on("data", (data) => results.push(data)).on("end", () => resolve(results)).on("error", (
|
|
14841
|
+
fs2.createReadStream(filePath).pipe(csv()).on("data", (data) => results.push(data)).on("end", () => resolve(results)).on("error", (error51) => reject(error51));
|
|
14096
14842
|
});
|
|
14097
14843
|
}
|
|
14098
14844
|
};
|
|
@@ -14150,8 +14896,8 @@ var JsonlReader = class extends DataReader {
|
|
|
14150
14896
|
try {
|
|
14151
14897
|
const data = JSON.parse(lines[i]);
|
|
14152
14898
|
results.push(data);
|
|
14153
|
-
} catch (
|
|
14154
|
-
throw
|
|
14899
|
+
} catch (error51) {
|
|
14900
|
+
throw error51 instanceof Error ? new Error(`Invalid JSON at line ${i + 1} in file: ${filePath}: ${error51.message}`) : error51;
|
|
14155
14901
|
}
|
|
14156
14902
|
}
|
|
14157
14903
|
return results;
|
|
@@ -14429,18 +15175,18 @@ var DataMapper = class {
|
|
|
14429
15175
|
const progress = ((i + 1) / totalRows * 100).toFixed(1);
|
|
14430
15176
|
this.logger.info(`\u{1F4CA} Progress: ${i + 1}/${totalRows} (${progress}%) \u2713`);
|
|
14431
15177
|
}
|
|
14432
|
-
} catch (
|
|
15178
|
+
} catch (error51) {
|
|
14433
15179
|
if (signal?.aborted) {
|
|
14434
15180
|
this.logger.info(`Processing cancelled at row ${i + 1}/${totalRows}`);
|
|
14435
15181
|
return;
|
|
14436
15182
|
}
|
|
14437
15183
|
this.metrics.recordFailure(entityName);
|
|
14438
|
-
this.logger.error(`\u2717 Failed to create entity for row ${i + 1}`, row,
|
|
15184
|
+
this.logger.error(`\u2717 Failed to create entity for row ${i + 1}`, row, error51);
|
|
14439
15185
|
callbacks?.onRowFailure?.({
|
|
14440
15186
|
entityName,
|
|
14441
15187
|
rowIndex: i,
|
|
14442
15188
|
row,
|
|
14443
|
-
error:
|
|
15189
|
+
error: error51 instanceof Error ? error51 : new Error(String(error51)),
|
|
14444
15190
|
retryAttempts: retryConfig?.maxAttempts ?? 3
|
|
14445
15191
|
});
|
|
14446
15192
|
}
|
|
@@ -14481,16 +15227,16 @@ var DataMapper = class {
|
|
|
14481
15227
|
durationMs: Date.now() - rowStartTime
|
|
14482
15228
|
});
|
|
14483
15229
|
return { success: true, result, row, rowIndex };
|
|
14484
|
-
} catch (
|
|
15230
|
+
} catch (error51) {
|
|
14485
15231
|
this.metrics.recordFailure(entityName);
|
|
14486
15232
|
callbacks?.onRowFailure?.({
|
|
14487
15233
|
entityName,
|
|
14488
15234
|
rowIndex,
|
|
14489
15235
|
row,
|
|
14490
|
-
error:
|
|
15236
|
+
error: error51 instanceof Error ? error51 : new Error(String(error51)),
|
|
14491
15237
|
retryAttempts: retryConfig?.maxAttempts ?? 3
|
|
14492
15238
|
});
|
|
14493
|
-
return { success: false, error:
|
|
15239
|
+
return { success: false, error: error51, row, rowIndex };
|
|
14494
15240
|
}
|
|
14495
15241
|
});
|
|
14496
15242
|
const results = await Promise.allSettled(promises);
|
|
@@ -14503,12 +15249,12 @@ var DataMapper = class {
|
|
|
14503
15249
|
let chunkFailures = 0;
|
|
14504
15250
|
results.forEach((result) => {
|
|
14505
15251
|
if (result.status === "fulfilled") {
|
|
14506
|
-
const { success: success2, error:
|
|
15252
|
+
const { success: success2, error: error51, row } = result.value;
|
|
14507
15253
|
if (success2) {
|
|
14508
15254
|
chunkSuccesses++;
|
|
14509
15255
|
} else {
|
|
14510
15256
|
chunkFailures++;
|
|
14511
|
-
this.logger.error(`\u2717 Failed to create entity for row`, row,
|
|
15257
|
+
this.logger.error(`\u2717 Failed to create entity for row`, row, error51);
|
|
14512
15258
|
}
|
|
14513
15259
|
} else {
|
|
14514
15260
|
chunkFailures++;
|
|
@@ -14722,8 +15468,8 @@ var DataMapper = class {
|
|
|
14722
15468
|
}
|
|
14723
15469
|
}
|
|
14724
15470
|
}
|
|
14725
|
-
} catch (
|
|
14726
|
-
const message =
|
|
15471
|
+
} catch (error51) {
|
|
15472
|
+
const message = error51 instanceof Error ? error51.message : String(error51);
|
|
14727
15473
|
this.logger.error(`Error parsing GraphQL mutation: ${message}`);
|
|
14728
15474
|
}
|
|
14729
15475
|
return types;
|
|
@@ -14920,8 +15666,8 @@ var GQLIngest = class extends EventEmitter {
|
|
|
14920
15666
|
safeEmit(event, ...payload) {
|
|
14921
15667
|
try {
|
|
14922
15668
|
return this.emit(event, ...payload);
|
|
14923
|
-
} catch (
|
|
14924
|
-
this.logger.error(`Error in event listener for '${String(event)}':`,
|
|
15669
|
+
} catch (error51) {
|
|
15670
|
+
this.logger.error(`Error in event listener for '${String(event)}':`, error51);
|
|
14925
15671
|
return false;
|
|
14926
15672
|
}
|
|
14927
15673
|
}
|
|
@@ -15068,9 +15814,9 @@ var GQLIngest = class extends EventEmitter {
|
|
|
15068
15814
|
const validationErrors = resolver.validateDependencies();
|
|
15069
15815
|
if (validationErrors.length > 0) {
|
|
15070
15816
|
this.logger.error("Dependency validation errors:");
|
|
15071
|
-
validationErrors.forEach((
|
|
15072
|
-
this.logger.error(` - ${
|
|
15073
|
-
errors.push(
|
|
15817
|
+
validationErrors.forEach((error51) => {
|
|
15818
|
+
this.logger.error(` - ${error51}`);
|
|
15819
|
+
errors.push(error51);
|
|
15074
15820
|
});
|
|
15075
15821
|
return {
|
|
15076
15822
|
metrics: this.metrics.getMetrics(),
|
|
@@ -15114,16 +15860,16 @@ var GQLIngest = class extends EventEmitter {
|
|
|
15114
15860
|
metrics: finalMetrics,
|
|
15115
15861
|
success: true
|
|
15116
15862
|
};
|
|
15117
|
-
} catch (
|
|
15863
|
+
} catch (error51) {
|
|
15118
15864
|
this.stopProgressInterval();
|
|
15119
15865
|
if (signal.aborted) {
|
|
15120
15866
|
return this.handleCancellation(signal.reason);
|
|
15121
15867
|
}
|
|
15122
|
-
const errorMessage =
|
|
15868
|
+
const errorMessage = error51 instanceof Error ? error51.message : String(error51);
|
|
15123
15869
|
this.logger.error(`Error: ${errorMessage}`);
|
|
15124
15870
|
errors.push(errorMessage);
|
|
15125
15871
|
const erroredPayload = {
|
|
15126
|
-
error:
|
|
15872
|
+
error: error51 instanceof Error ? error51 : new Error(String(error51)),
|
|
15127
15873
|
metrics: this.metrics.getMetrics(),
|
|
15128
15874
|
currentEntity: this.currentEntity,
|
|
15129
15875
|
elapsedMs: Date.now() - this.startTime
|
|
@@ -15245,8 +15991,8 @@ var GQLIngest = class extends EventEmitter {
|
|
|
15245
15991
|
},
|
|
15246
15992
|
outputStore
|
|
15247
15993
|
);
|
|
15248
|
-
} catch (
|
|
15249
|
-
const message =
|
|
15994
|
+
} catch (error51) {
|
|
15995
|
+
const message = error51 instanceof Error ? error51.message : String(error51);
|
|
15250
15996
|
logger.warn(`Warning: Could not process ${configPath}: ${message}`);
|
|
15251
15997
|
}
|
|
15252
15998
|
}
|