@keycloakify/svelte 0.2.4 → 0.2.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const id =
|
|
2
|
-
export const ids = [
|
|
1
|
+
export const id = 343;
|
|
2
|
+
export const ids = [343];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
5
|
/***/ 94:
|
|
@@ -29,7 +29,7 @@ function symToStr(wrap) {
|
|
|
29
29
|
|
|
30
30
|
/***/ }),
|
|
31
31
|
|
|
32
|
-
/***/
|
|
32
|
+
/***/ 455:
|
|
33
33
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
34
34
|
|
|
35
35
|
|
|
@@ -37,10 +37,11 @@ function symToStr(wrap) {
|
|
|
37
37
|
__webpack_require__.d(__webpack_exports__, {
|
|
38
38
|
Ikc: () => (/* reexport */ object),
|
|
39
39
|
g1P: () => (/* reexport */ record),
|
|
40
|
+
YjP: () => (/* reexport */ schemas_string),
|
|
40
41
|
L5J: () => (/* reexport */ unknown)
|
|
41
42
|
});
|
|
42
43
|
|
|
43
|
-
// UNUSED EXPORTS: $brand, $input, $output, NEVER, TimePrecision, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, ZodFile, ZodFirstPartyTypeKind, ZodFunction, ZodGUID, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodIntersection, ZodIssueCode, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPromise, ZodReadonly, ZodRealError, ZodRecord, ZodSet, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, _ZodString, _default, _function, any, array, base64, base64url, bigint, boolean, catch, check, cidrv4, cidrv6, clone, codec, coerce, config, core, cuid, cuid2, custom, date, decode, decodeAsync, discriminatedUnion, e164, email, emoji, encode, encodeAsync, endsWith, enum, file, flattenError, float32, float64, formatError, function, getErrorMap, globalRegistry, gt, gte, guid, hash, hex, hostname, httpUrl, includes, instanceof, int, int32, int64, intersection, ipv4, ipv6, iso, json, jwt, keyof, ksuid, lazy, length, literal, locales, looseObject, lowercase, lt, lte, map, maxLength, maxSize, mime, minLength, minSize, multipleOf, nan, nanoid, nativeEnum, negative, never, nonnegative, nonoptional, nonpositive, normalize, null, nullable, nullish, number, optional, overwrite, parse, parseAsync, partialRecord, pipe, positive, prefault, preprocess, prettifyError, promise, property, readonly, refine, regex, regexes, registry, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, setErrorMap, size, startsWith, strictObject,
|
|
44
|
+
// UNUSED EXPORTS: $brand, $input, $output, NEVER, TimePrecision, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, ZodFile, ZodFirstPartyTypeKind, ZodFunction, ZodGUID, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodIntersection, ZodIssueCode, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPromise, ZodReadonly, ZodRealError, ZodRecord, ZodSet, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, _ZodString, _default, _function, any, array, base64, base64url, bigint, boolean, catch, check, cidrv4, cidrv6, clone, codec, coerce, config, core, cuid, cuid2, custom, date, decode, decodeAsync, discriminatedUnion, e164, email, emoji, encode, encodeAsync, endsWith, enum, file, flattenError, float32, float64, formatError, function, getErrorMap, globalRegistry, gt, gte, guid, hash, hex, hostname, httpUrl, includes, instanceof, int, int32, int64, intersection, ipv4, ipv6, iso, json, jwt, keyof, ksuid, lazy, length, literal, locales, looseObject, lowercase, lt, lte, map, maxLength, maxSize, mime, minLength, minSize, multipleOf, nan, nanoid, nativeEnum, negative, never, nonnegative, nonoptional, nonpositive, normalize, null, nullable, nullish, number, optional, overwrite, parse, parseAsync, partialRecord, pipe, positive, prefault, preprocess, prettifyError, promise, property, readonly, refine, regex, regexes, registry, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, setErrorMap, size, startsWith, strictObject, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, toJSONSchema, toLowerCase, toUpperCase, transform, treeifyError, trim, tuple, uint32, uint64, ulid, undefined, union, uppercase, url, util, uuid, uuidv4, uuidv6, uuidv7, void, xid
|
|
44
45
|
|
|
45
46
|
;// CONCATENATED MODULE: ./node_modules/zod/v4/core/core.js
|
|
46
47
|
/** A special constant with type `never` */
|
|
@@ -749,11 +750,7 @@ function flattenError(error, mapper = (issue) => issue.message) {
|
|
|
749
750
|
}
|
|
750
751
|
return { formErrors, fieldErrors };
|
|
751
752
|
}
|
|
752
|
-
function formatError(error,
|
|
753
|
-
const mapper = _mapper ||
|
|
754
|
-
function (issue) {
|
|
755
|
-
return issue.message;
|
|
756
|
-
};
|
|
753
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
757
754
|
const fieldErrors = { _errors: [] };
|
|
758
755
|
const processError = (error) => {
|
|
759
756
|
for (const issue of error.issues) {
|
|
@@ -791,11 +788,7 @@ function formatError(error, _mapper) {
|
|
|
791
788
|
processError(error);
|
|
792
789
|
return fieldErrors;
|
|
793
790
|
}
|
|
794
|
-
function treeifyError(error,
|
|
795
|
-
const mapper = _mapper ||
|
|
796
|
-
function (issue) {
|
|
797
|
-
return issue.message;
|
|
798
|
-
};
|
|
791
|
+
function treeifyError(error, mapper = (issue) => issue.message) {
|
|
799
792
|
const result = { errors: [] };
|
|
800
793
|
const processError = (error, path = []) => {
|
|
801
794
|
var _a, _b;
|
|
@@ -1036,7 +1029,7 @@ const unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
|
|
|
1036
1029
|
const idnEmail = (/* unused pure expression or super */ null && (unicodeEmail));
|
|
1037
1030
|
const browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
1038
1031
|
// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
|
|
1039
|
-
const _emoji =
|
|
1032
|
+
const _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
1040
1033
|
function emoji() {
|
|
1041
1034
|
return new RegExp(_emoji, "u");
|
|
1042
1035
|
}
|
|
@@ -1530,7 +1523,7 @@ const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals"
|
|
|
1530
1523
|
});
|
|
1531
1524
|
};
|
|
1532
1525
|
});
|
|
1533
|
-
const $ZodCheckStringFormat = /*@__PURE__*/
|
|
1526
|
+
const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1534
1527
|
var _a, _b;
|
|
1535
1528
|
$ZodCheck.init(inst, def);
|
|
1536
1529
|
inst._zod.onattach.push((inst) => {
|
|
@@ -1558,8 +1551,8 @@ const $ZodCheckStringFormat = /*@__PURE__*/ (/* unused pure expression or super
|
|
|
1558
1551
|
});
|
|
1559
1552
|
else
|
|
1560
1553
|
(_b = inst._zod).check ?? (_b.check = () => { });
|
|
1561
|
-
})
|
|
1562
|
-
const $ZodCheckRegex = /*@__PURE__*/
|
|
1554
|
+
});
|
|
1555
|
+
const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1563
1556
|
$ZodCheckStringFormat.init(inst, def);
|
|
1564
1557
|
inst._zod.check = (payload) => {
|
|
1565
1558
|
def.pattern.lastIndex = 0;
|
|
@@ -1575,18 +1568,18 @@ const $ZodCheckRegex = /*@__PURE__*/ (/* unused pure expression or super */ null
|
|
|
1575
1568
|
continue: !def.abort,
|
|
1576
1569
|
});
|
|
1577
1570
|
};
|
|
1578
|
-
})
|
|
1579
|
-
const $ZodCheckLowerCase = /*@__PURE__*/
|
|
1580
|
-
def.pattern ?? (def.pattern =
|
|
1571
|
+
});
|
|
1572
|
+
const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
1573
|
+
def.pattern ?? (def.pattern = lowercase);
|
|
1581
1574
|
$ZodCheckStringFormat.init(inst, def);
|
|
1582
|
-
})
|
|
1583
|
-
const $ZodCheckUpperCase = /*@__PURE__*/
|
|
1584
|
-
def.pattern ?? (def.pattern =
|
|
1575
|
+
});
|
|
1576
|
+
const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
1577
|
+
def.pattern ?? (def.pattern = uppercase);
|
|
1585
1578
|
$ZodCheckStringFormat.init(inst, def);
|
|
1586
|
-
})
|
|
1587
|
-
const $ZodCheckIncludes = /*@__PURE__*/
|
|
1579
|
+
});
|
|
1580
|
+
const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
1588
1581
|
$ZodCheck.init(inst, def);
|
|
1589
|
-
const escapedRegex =
|
|
1582
|
+
const escapedRegex = escapeRegex(def.includes);
|
|
1590
1583
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
1591
1584
|
def.pattern = pattern;
|
|
1592
1585
|
inst._zod.onattach.push((inst) => {
|
|
@@ -1607,10 +1600,10 @@ const $ZodCheckIncludes = /*@__PURE__*/ (/* unused pure expression or super */ n
|
|
|
1607
1600
|
continue: !def.abort,
|
|
1608
1601
|
});
|
|
1609
1602
|
};
|
|
1610
|
-
})
|
|
1611
|
-
const $ZodCheckStartsWith = /*@__PURE__*/
|
|
1603
|
+
});
|
|
1604
|
+
const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
1612
1605
|
$ZodCheck.init(inst, def);
|
|
1613
|
-
const pattern = new RegExp(`^${
|
|
1606
|
+
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
1614
1607
|
def.pattern ?? (def.pattern = pattern);
|
|
1615
1608
|
inst._zod.onattach.push((inst) => {
|
|
1616
1609
|
const bag = inst._zod.bag;
|
|
@@ -1630,10 +1623,10 @@ const $ZodCheckStartsWith = /*@__PURE__*/ (/* unused pure expression or super */
|
|
|
1630
1623
|
continue: !def.abort,
|
|
1631
1624
|
});
|
|
1632
1625
|
};
|
|
1633
|
-
})
|
|
1634
|
-
const $ZodCheckEndsWith = /*@__PURE__*/
|
|
1626
|
+
});
|
|
1627
|
+
const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
1635
1628
|
$ZodCheck.init(inst, def);
|
|
1636
|
-
const pattern = new RegExp(`.*${
|
|
1629
|
+
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
1637
1630
|
def.pattern ?? (def.pattern = pattern);
|
|
1638
1631
|
inst._zod.onattach.push((inst) => {
|
|
1639
1632
|
const bag = inst._zod.bag;
|
|
@@ -1653,7 +1646,7 @@ const $ZodCheckEndsWith = /*@__PURE__*/ (/* unused pure expression or super */ n
|
|
|
1653
1646
|
continue: !def.abort,
|
|
1654
1647
|
});
|
|
1655
1648
|
};
|
|
1656
|
-
})
|
|
1649
|
+
});
|
|
1657
1650
|
///////////////////////////////////
|
|
1658
1651
|
///// $ZodCheckProperty /////
|
|
1659
1652
|
///////////////////////////////////
|
|
@@ -1742,7 +1735,7 @@ class Doc {
|
|
|
1742
1735
|
const version = {
|
|
1743
1736
|
major: 4,
|
|
1744
1737
|
minor: 1,
|
|
1745
|
-
patch:
|
|
1738
|
+
patch: 12,
|
|
1746
1739
|
};
|
|
1747
1740
|
|
|
1748
1741
|
;// CONCATENATED MODULE: ./node_modules/zod/v4/core/schemas.js
|
|
@@ -1885,9 +1878,9 @@ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
|
1885
1878
|
};
|
|
1886
1879
|
});
|
|
1887
1880
|
|
|
1888
|
-
const $ZodString = /*@__PURE__*/
|
|
1881
|
+
const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
1889
1882
|
$ZodType.init(inst, def);
|
|
1890
|
-
inst._zod.pattern = [...(inst?._zod.bag?.patterns ?? [])].pop() ??
|
|
1883
|
+
inst._zod.pattern = [...(inst?._zod.bag?.patterns ?? [])].pop() ?? string(inst._zod.bag);
|
|
1891
1884
|
inst._zod.parse = (payload, _) => {
|
|
1892
1885
|
if (def.coerce)
|
|
1893
1886
|
try {
|
|
@@ -1904,17 +1897,17 @@ const $ZodString = /*@__PURE__*/ (/* unused pure expression or super */ null &&
|
|
|
1904
1897
|
});
|
|
1905
1898
|
return payload;
|
|
1906
1899
|
};
|
|
1907
|
-
})
|
|
1908
|
-
const $ZodStringFormat = /*@__PURE__*/
|
|
1900
|
+
});
|
|
1901
|
+
const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
1909
1902
|
// check initialization must come first
|
|
1910
|
-
|
|
1903
|
+
$ZodCheckStringFormat.init(inst, def);
|
|
1911
1904
|
$ZodString.init(inst, def);
|
|
1912
|
-
})
|
|
1913
|
-
const $ZodGUID = /*@__PURE__*/
|
|
1914
|
-
def.pattern ?? (def.pattern =
|
|
1905
|
+
});
|
|
1906
|
+
const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
1907
|
+
def.pattern ?? (def.pattern = guid);
|
|
1915
1908
|
$ZodStringFormat.init(inst, def);
|
|
1916
|
-
})
|
|
1917
|
-
const $ZodUUID = /*@__PURE__*/
|
|
1909
|
+
});
|
|
1910
|
+
const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
1918
1911
|
if (def.version) {
|
|
1919
1912
|
const versionMap = {
|
|
1920
1913
|
v1: 1,
|
|
@@ -1929,17 +1922,17 @@ const $ZodUUID = /*@__PURE__*/ (/* unused pure expression or super */ null && (c
|
|
|
1929
1922
|
const v = versionMap[def.version];
|
|
1930
1923
|
if (v === undefined)
|
|
1931
1924
|
throw new Error(`Invalid UUID version: "${def.version}"`);
|
|
1932
|
-
def.pattern ?? (def.pattern =
|
|
1925
|
+
def.pattern ?? (def.pattern = uuid(v));
|
|
1933
1926
|
}
|
|
1934
1927
|
else
|
|
1935
|
-
def.pattern ?? (def.pattern =
|
|
1928
|
+
def.pattern ?? (def.pattern = uuid());
|
|
1936
1929
|
$ZodStringFormat.init(inst, def);
|
|
1937
|
-
})
|
|
1938
|
-
const $ZodEmail = /*@__PURE__*/
|
|
1939
|
-
def.pattern ?? (def.pattern =
|
|
1930
|
+
});
|
|
1931
|
+
const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
1932
|
+
def.pattern ?? (def.pattern = email);
|
|
1940
1933
|
$ZodStringFormat.init(inst, def);
|
|
1941
|
-
})
|
|
1942
|
-
const $ZodURL = /*@__PURE__*/
|
|
1934
|
+
});
|
|
1935
|
+
const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
1943
1936
|
$ZodStringFormat.init(inst, def);
|
|
1944
1937
|
inst._zod.check = (payload) => {
|
|
1945
1938
|
try {
|
|
@@ -1954,7 +1947,7 @@ const $ZodURL = /*@__PURE__*/ (/* unused pure expression or super */ null && (co
|
|
|
1954
1947
|
code: "invalid_format",
|
|
1955
1948
|
format: "url",
|
|
1956
1949
|
note: "Invalid hostname",
|
|
1957
|
-
pattern:
|
|
1950
|
+
pattern: hostname.source,
|
|
1958
1951
|
input: payload.value,
|
|
1959
1952
|
inst,
|
|
1960
1953
|
continue: !def.abort,
|
|
@@ -1996,61 +1989,61 @@ const $ZodURL = /*@__PURE__*/ (/* unused pure expression or super */ null && (co
|
|
|
1996
1989
|
});
|
|
1997
1990
|
}
|
|
1998
1991
|
};
|
|
1999
|
-
})
|
|
2000
|
-
const $ZodEmoji = /*@__PURE__*/
|
|
2001
|
-
def.pattern ?? (def.pattern =
|
|
1992
|
+
});
|
|
1993
|
+
const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
1994
|
+
def.pattern ?? (def.pattern = emoji());
|
|
2002
1995
|
$ZodStringFormat.init(inst, def);
|
|
2003
|
-
})
|
|
2004
|
-
const $ZodNanoID = /*@__PURE__*/
|
|
2005
|
-
def.pattern ?? (def.pattern =
|
|
1996
|
+
});
|
|
1997
|
+
const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
1998
|
+
def.pattern ?? (def.pattern = nanoid);
|
|
2006
1999
|
$ZodStringFormat.init(inst, def);
|
|
2007
|
-
})
|
|
2008
|
-
const $ZodCUID = /*@__PURE__*/
|
|
2009
|
-
def.pattern ?? (def.pattern =
|
|
2000
|
+
});
|
|
2001
|
+
const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
2002
|
+
def.pattern ?? (def.pattern = cuid);
|
|
2010
2003
|
$ZodStringFormat.init(inst, def);
|
|
2011
|
-
})
|
|
2012
|
-
const $ZodCUID2 = /*@__PURE__*/
|
|
2013
|
-
def.pattern ?? (def.pattern =
|
|
2004
|
+
});
|
|
2005
|
+
const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
2006
|
+
def.pattern ?? (def.pattern = cuid2);
|
|
2014
2007
|
$ZodStringFormat.init(inst, def);
|
|
2015
|
-
})
|
|
2016
|
-
const $ZodULID = /*@__PURE__*/
|
|
2017
|
-
def.pattern ?? (def.pattern =
|
|
2008
|
+
});
|
|
2009
|
+
const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
2010
|
+
def.pattern ?? (def.pattern = ulid);
|
|
2018
2011
|
$ZodStringFormat.init(inst, def);
|
|
2019
|
-
})
|
|
2020
|
-
const $ZodXID = /*@__PURE__*/
|
|
2021
|
-
def.pattern ?? (def.pattern =
|
|
2012
|
+
});
|
|
2013
|
+
const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
2014
|
+
def.pattern ?? (def.pattern = xid);
|
|
2022
2015
|
$ZodStringFormat.init(inst, def);
|
|
2023
|
-
})
|
|
2024
|
-
const $ZodKSUID = /*@__PURE__*/
|
|
2025
|
-
def.pattern ?? (def.pattern =
|
|
2016
|
+
});
|
|
2017
|
+
const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
2018
|
+
def.pattern ?? (def.pattern = ksuid);
|
|
2026
2019
|
$ZodStringFormat.init(inst, def);
|
|
2027
|
-
})
|
|
2028
|
-
const $ZodISODateTime = /*@__PURE__*/
|
|
2029
|
-
def.pattern ?? (def.pattern =
|
|
2020
|
+
});
|
|
2021
|
+
const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
2022
|
+
def.pattern ?? (def.pattern = datetime(def));
|
|
2030
2023
|
$ZodStringFormat.init(inst, def);
|
|
2031
|
-
})
|
|
2032
|
-
const $ZodISODate = /*@__PURE__*/
|
|
2033
|
-
def.pattern ?? (def.pattern =
|
|
2024
|
+
});
|
|
2025
|
+
const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
2026
|
+
def.pattern ?? (def.pattern = date);
|
|
2034
2027
|
$ZodStringFormat.init(inst, def);
|
|
2035
|
-
})
|
|
2036
|
-
const $ZodISOTime = /*@__PURE__*/
|
|
2037
|
-
def.pattern ?? (def.pattern =
|
|
2028
|
+
});
|
|
2029
|
+
const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
2030
|
+
def.pattern ?? (def.pattern = time(def));
|
|
2038
2031
|
$ZodStringFormat.init(inst, def);
|
|
2039
|
-
})
|
|
2040
|
-
const $ZodISODuration = /*@__PURE__*/
|
|
2041
|
-
def.pattern ?? (def.pattern =
|
|
2032
|
+
});
|
|
2033
|
+
const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
2034
|
+
def.pattern ?? (def.pattern = duration);
|
|
2042
2035
|
$ZodStringFormat.init(inst, def);
|
|
2043
|
-
})
|
|
2044
|
-
const $ZodIPv4 = /*@__PURE__*/
|
|
2045
|
-
def.pattern ?? (def.pattern =
|
|
2036
|
+
});
|
|
2037
|
+
const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
2038
|
+
def.pattern ?? (def.pattern = ipv4);
|
|
2046
2039
|
$ZodStringFormat.init(inst, def);
|
|
2047
2040
|
inst._zod.onattach.push((inst) => {
|
|
2048
2041
|
const bag = inst._zod.bag;
|
|
2049
2042
|
bag.format = `ipv4`;
|
|
2050
2043
|
});
|
|
2051
|
-
})
|
|
2052
|
-
const $ZodIPv6 = /*@__PURE__*/
|
|
2053
|
-
def.pattern ?? (def.pattern =
|
|
2044
|
+
});
|
|
2045
|
+
const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
2046
|
+
def.pattern ?? (def.pattern = ipv6);
|
|
2054
2047
|
$ZodStringFormat.init(inst, def);
|
|
2055
2048
|
inst._zod.onattach.push((inst) => {
|
|
2056
2049
|
const bag = inst._zod.bag;
|
|
@@ -2072,13 +2065,13 @@ const $ZodIPv6 = /*@__PURE__*/ (/* unused pure expression or super */ null && (c
|
|
|
2072
2065
|
});
|
|
2073
2066
|
}
|
|
2074
2067
|
};
|
|
2075
|
-
})
|
|
2076
|
-
const $ZodCIDRv4 = /*@__PURE__*/
|
|
2077
|
-
def.pattern ?? (def.pattern =
|
|
2068
|
+
});
|
|
2069
|
+
const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
2070
|
+
def.pattern ?? (def.pattern = cidrv4);
|
|
2078
2071
|
$ZodStringFormat.init(inst, def);
|
|
2079
|
-
})
|
|
2080
|
-
const $ZodCIDRv6 = /*@__PURE__*/
|
|
2081
|
-
def.pattern ?? (def.pattern =
|
|
2072
|
+
});
|
|
2073
|
+
const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
2074
|
+
def.pattern ?? (def.pattern = cidrv6); // not used for validation
|
|
2082
2075
|
$ZodStringFormat.init(inst, def);
|
|
2083
2076
|
inst._zod.check = (payload) => {
|
|
2084
2077
|
const parts = payload.value.split("/");
|
|
@@ -2106,7 +2099,7 @@ const $ZodCIDRv6 = /*@__PURE__*/ (/* unused pure expression or super */ null &&
|
|
|
2106
2099
|
});
|
|
2107
2100
|
}
|
|
2108
2101
|
};
|
|
2109
|
-
})
|
|
2102
|
+
});
|
|
2110
2103
|
////////////////////////////// ZodBase64 //////////////////////////////
|
|
2111
2104
|
function isValidBase64(data) {
|
|
2112
2105
|
if (data === "")
|
|
@@ -2122,8 +2115,8 @@ function isValidBase64(data) {
|
|
|
2122
2115
|
return false;
|
|
2123
2116
|
}
|
|
2124
2117
|
}
|
|
2125
|
-
const $ZodBase64 = /*@__PURE__*/
|
|
2126
|
-
def.pattern ?? (def.pattern =
|
|
2118
|
+
const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
2119
|
+
def.pattern ?? (def.pattern = base64);
|
|
2127
2120
|
$ZodStringFormat.init(inst, def);
|
|
2128
2121
|
inst._zod.onattach.push((inst) => {
|
|
2129
2122
|
inst._zod.bag.contentEncoding = "base64";
|
|
@@ -2139,17 +2132,17 @@ const $ZodBase64 = /*@__PURE__*/ (/* unused pure expression or super */ null &&
|
|
|
2139
2132
|
continue: !def.abort,
|
|
2140
2133
|
});
|
|
2141
2134
|
};
|
|
2142
|
-
})
|
|
2135
|
+
});
|
|
2143
2136
|
////////////////////////////// ZodBase64 //////////////////////////////
|
|
2144
2137
|
function isValidBase64URL(data) {
|
|
2145
|
-
if (!
|
|
2138
|
+
if (!base64url.test(data))
|
|
2146
2139
|
return false;
|
|
2147
2140
|
const base64 = data.replace(/[-_]/g, (c) => (c === "-" ? "+" : "/"));
|
|
2148
2141
|
const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
|
|
2149
2142
|
return isValidBase64(padded);
|
|
2150
2143
|
}
|
|
2151
|
-
const $ZodBase64URL = /*@__PURE__*/
|
|
2152
|
-
def.pattern ?? (def.pattern =
|
|
2144
|
+
const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
2145
|
+
def.pattern ?? (def.pattern = base64url);
|
|
2153
2146
|
$ZodStringFormat.init(inst, def);
|
|
2154
2147
|
inst._zod.onattach.push((inst) => {
|
|
2155
2148
|
inst._zod.bag.contentEncoding = "base64url";
|
|
@@ -2165,11 +2158,11 @@ const $ZodBase64URL = /*@__PURE__*/ (/* unused pure expression or super */ null
|
|
|
2165
2158
|
continue: !def.abort,
|
|
2166
2159
|
});
|
|
2167
2160
|
};
|
|
2168
|
-
})
|
|
2169
|
-
const $ZodE164 = /*@__PURE__*/
|
|
2170
|
-
def.pattern ?? (def.pattern =
|
|
2161
|
+
});
|
|
2162
|
+
const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
2163
|
+
def.pattern ?? (def.pattern = e164);
|
|
2171
2164
|
$ZodStringFormat.init(inst, def);
|
|
2172
|
-
})
|
|
2165
|
+
});
|
|
2173
2166
|
////////////////////////////// ZodJWT //////////////////////////////
|
|
2174
2167
|
function isValidJWT(token, algorithm = null) {
|
|
2175
2168
|
try {
|
|
@@ -2193,7 +2186,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
2193
2186
|
return false;
|
|
2194
2187
|
}
|
|
2195
2188
|
}
|
|
2196
|
-
const $ZodJWT = /*@__PURE__*/
|
|
2189
|
+
const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
2197
2190
|
$ZodStringFormat.init(inst, def);
|
|
2198
2191
|
inst._zod.check = (payload) => {
|
|
2199
2192
|
if (isValidJWT(payload.value, def.alg))
|
|
@@ -2206,7 +2199,7 @@ const $ZodJWT = /*@__PURE__*/ (/* unused pure expression or super */ null && (co
|
|
|
2206
2199
|
continue: !def.abort,
|
|
2207
2200
|
});
|
|
2208
2201
|
};
|
|
2209
|
-
})
|
|
2202
|
+
});
|
|
2210
2203
|
const $ZodCustomStringFormat = /*@__PURE__*/ (/* unused pure expression or super */ null && (core.$constructor("$ZodCustomStringFormat", (inst, def) => {
|
|
2211
2204
|
$ZodStringFormat.init(inst, def);
|
|
2212
2205
|
inst._zod.check = (payload) => {
|
|
@@ -2517,6 +2510,20 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2517
2510
|
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
2518
2511
|
// requires cast because technically $ZodObject doesn't extend
|
|
2519
2512
|
$ZodType.init(inst, def);
|
|
2513
|
+
// const sh = def.shape;
|
|
2514
|
+
const desc = Object.getOwnPropertyDescriptor(def, "shape");
|
|
2515
|
+
if (!desc?.get) {
|
|
2516
|
+
const sh = def.shape;
|
|
2517
|
+
Object.defineProperty(def, "shape", {
|
|
2518
|
+
get: () => {
|
|
2519
|
+
const newSh = { ...sh };
|
|
2520
|
+
Object.defineProperty(def, "shape", {
|
|
2521
|
+
value: newSh,
|
|
2522
|
+
});
|
|
2523
|
+
return newSh;
|
|
2524
|
+
},
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2520
2527
|
const _normalized = cached(() => normalizeDef(def));
|
|
2521
2528
|
defineLazy(inst._zod, "propValues", () => {
|
|
2522
2529
|
const shape = def.shape;
|
|
@@ -4089,6 +4096,136 @@ const be_error = () => {
|
|
|
4089
4096
|
};
|
|
4090
4097
|
}
|
|
4091
4098
|
|
|
4099
|
+
;// CONCATENATED MODULE: ./node_modules/zod/v4/locales/bg.js
|
|
4100
|
+
|
|
4101
|
+
const parsedType = (data) => {
|
|
4102
|
+
const t = typeof data;
|
|
4103
|
+
switch (t) {
|
|
4104
|
+
case "number": {
|
|
4105
|
+
return Number.isNaN(data) ? "NaN" : "число";
|
|
4106
|
+
}
|
|
4107
|
+
case "object": {
|
|
4108
|
+
if (Array.isArray(data)) {
|
|
4109
|
+
return "масив";
|
|
4110
|
+
}
|
|
4111
|
+
if (data === null) {
|
|
4112
|
+
return "null";
|
|
4113
|
+
}
|
|
4114
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
4115
|
+
return data.constructor.name;
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4119
|
+
return t;
|
|
4120
|
+
};
|
|
4121
|
+
const bg_error = () => {
|
|
4122
|
+
const Sizable = {
|
|
4123
|
+
string: { unit: "символа", verb: "да съдържа" },
|
|
4124
|
+
file: { unit: "байта", verb: "да съдържа" },
|
|
4125
|
+
array: { unit: "елемента", verb: "да съдържа" },
|
|
4126
|
+
set: { unit: "елемента", verb: "да съдържа" },
|
|
4127
|
+
};
|
|
4128
|
+
function getSizing(origin) {
|
|
4129
|
+
return Sizable[origin] ?? null;
|
|
4130
|
+
}
|
|
4131
|
+
const Nouns = {
|
|
4132
|
+
regex: "вход",
|
|
4133
|
+
email: "имейл адрес",
|
|
4134
|
+
url: "URL",
|
|
4135
|
+
emoji: "емоджи",
|
|
4136
|
+
uuid: "UUID",
|
|
4137
|
+
uuidv4: "UUIDv4",
|
|
4138
|
+
uuidv6: "UUIDv6",
|
|
4139
|
+
nanoid: "nanoid",
|
|
4140
|
+
guid: "GUID",
|
|
4141
|
+
cuid: "cuid",
|
|
4142
|
+
cuid2: "cuid2",
|
|
4143
|
+
ulid: "ULID",
|
|
4144
|
+
xid: "XID",
|
|
4145
|
+
ksuid: "KSUID",
|
|
4146
|
+
datetime: "ISO време",
|
|
4147
|
+
date: "ISO дата",
|
|
4148
|
+
time: "ISO време",
|
|
4149
|
+
duration: "ISO продължителност",
|
|
4150
|
+
ipv4: "IPv4 адрес",
|
|
4151
|
+
ipv6: "IPv6 адрес",
|
|
4152
|
+
cidrv4: "IPv4 диапазон",
|
|
4153
|
+
cidrv6: "IPv6 диапазон",
|
|
4154
|
+
base64: "base64-кодиран низ",
|
|
4155
|
+
base64url: "base64url-кодиран низ",
|
|
4156
|
+
json_string: "JSON низ",
|
|
4157
|
+
e164: "E.164 номер",
|
|
4158
|
+
jwt: "JWT",
|
|
4159
|
+
template_literal: "вход",
|
|
4160
|
+
};
|
|
4161
|
+
return (issue) => {
|
|
4162
|
+
switch (issue.code) {
|
|
4163
|
+
case "invalid_type":
|
|
4164
|
+
return `Невалиден вход: очакван ${issue.expected}, получен ${parsedType(issue.input)}`;
|
|
4165
|
+
case "invalid_value":
|
|
4166
|
+
if (issue.values.length === 1)
|
|
4167
|
+
return `Невалиден вход: очакван ${util.stringifyPrimitive(issue.values[0])}`;
|
|
4168
|
+
return `Невалидна опция: очаквано едно от ${util.joinValues(issue.values, "|")}`;
|
|
4169
|
+
case "too_big": {
|
|
4170
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
4171
|
+
const sizing = getSizing(issue.origin);
|
|
4172
|
+
if (sizing)
|
|
4173
|
+
return `Твърде голямо: очаква се ${issue.origin ?? "стойност"} да съдържа ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елемента"}`;
|
|
4174
|
+
return `Твърде голямо: очаква се ${issue.origin ?? "стойност"} да бъде ${adj}${issue.maximum.toString()}`;
|
|
4175
|
+
}
|
|
4176
|
+
case "too_small": {
|
|
4177
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
4178
|
+
const sizing = getSizing(issue.origin);
|
|
4179
|
+
if (sizing) {
|
|
4180
|
+
return `Твърде малко: очаква се ${issue.origin} да съдържа ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
4181
|
+
}
|
|
4182
|
+
return `Твърде малко: очаква се ${issue.origin} да бъде ${adj}${issue.minimum.toString()}`;
|
|
4183
|
+
}
|
|
4184
|
+
case "invalid_format": {
|
|
4185
|
+
const _issue = issue;
|
|
4186
|
+
if (_issue.format === "starts_with") {
|
|
4187
|
+
return `Невалиден низ: трябва да започва с "${_issue.prefix}"`;
|
|
4188
|
+
}
|
|
4189
|
+
if (_issue.format === "ends_with")
|
|
4190
|
+
return `Невалиден низ: трябва да завършва с "${_issue.suffix}"`;
|
|
4191
|
+
if (_issue.format === "includes")
|
|
4192
|
+
return `Невалиден низ: трябва да включва "${_issue.includes}"`;
|
|
4193
|
+
if (_issue.format === "regex")
|
|
4194
|
+
return `Невалиден низ: трябва да съвпада с ${_issue.pattern}`;
|
|
4195
|
+
let invalid_adj = "Невалиден";
|
|
4196
|
+
if (_issue.format === "emoji")
|
|
4197
|
+
invalid_adj = "Невалидно";
|
|
4198
|
+
if (_issue.format === "datetime")
|
|
4199
|
+
invalid_adj = "Невалидно";
|
|
4200
|
+
if (_issue.format === "date")
|
|
4201
|
+
invalid_adj = "Невалидна";
|
|
4202
|
+
if (_issue.format === "time")
|
|
4203
|
+
invalid_adj = "Невалидно";
|
|
4204
|
+
if (_issue.format === "duration")
|
|
4205
|
+
invalid_adj = "Невалидна";
|
|
4206
|
+
return `${invalid_adj} ${Nouns[_issue.format] ?? issue.format}`;
|
|
4207
|
+
}
|
|
4208
|
+
case "not_multiple_of":
|
|
4209
|
+
return `Невалидно число: трябва да бъде кратно на ${issue.divisor}`;
|
|
4210
|
+
case "unrecognized_keys":
|
|
4211
|
+
return `Неразпознат${issue.keys.length > 1 ? "и" : ""} ключ${issue.keys.length > 1 ? "ове" : ""}: ${util.joinValues(issue.keys, ", ")}`;
|
|
4212
|
+
case "invalid_key":
|
|
4213
|
+
return `Невалиден ключ в ${issue.origin}`;
|
|
4214
|
+
case "invalid_union":
|
|
4215
|
+
return "Невалиден вход";
|
|
4216
|
+
case "invalid_element":
|
|
4217
|
+
return `Невалидна стойност в ${issue.origin}`;
|
|
4218
|
+
default:
|
|
4219
|
+
return `Невалиден вход`;
|
|
4220
|
+
}
|
|
4221
|
+
};
|
|
4222
|
+
};
|
|
4223
|
+
/* harmony default export */ function bg() {
|
|
4224
|
+
return {
|
|
4225
|
+
localeError: bg_error(),
|
|
4226
|
+
};
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4092
4229
|
;// CONCATENATED MODULE: ./node_modules/zod/v4/locales/ca.js
|
|
4093
4230
|
|
|
4094
4231
|
const ca_error = () => {
|
|
@@ -4599,7 +4736,7 @@ const de_error = () => {
|
|
|
4599
4736
|
|
|
4600
4737
|
;// CONCATENATED MODULE: ./node_modules/zod/v4/locales/en.js
|
|
4601
4738
|
|
|
4602
|
-
const
|
|
4739
|
+
const en_parsedType = (data) => {
|
|
4603
4740
|
const t = typeof data;
|
|
4604
4741
|
switch (t) {
|
|
4605
4742
|
case "number": {
|
|
@@ -4662,7 +4799,7 @@ const en_error = () => {
|
|
|
4662
4799
|
return (issue) => {
|
|
4663
4800
|
switch (issue.code) {
|
|
4664
4801
|
case "invalid_type":
|
|
4665
|
-
return `Invalid input: expected ${issue.expected}, received ${
|
|
4802
|
+
return `Invalid input: expected ${issue.expected}, received ${en_parsedType(issue.input)}`;
|
|
4666
4803
|
case "invalid_value":
|
|
4667
4804
|
if (issue.values.length === 1)
|
|
4668
4805
|
return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`;
|
|
@@ -9267,6 +9404,7 @@ const yo_error = () => {
|
|
|
9267
9404
|
|
|
9268
9405
|
|
|
9269
9406
|
|
|
9407
|
+
|
|
9270
9408
|
|
|
9271
9409
|
|
|
9272
9410
|
;// CONCATENATED MODULE: ./node_modules/zod/v4/core/registries.js
|
|
@@ -9274,7 +9412,7 @@ const $output = Symbol("ZodOutput");
|
|
|
9274
9412
|
const $input = Symbol("ZodInput");
|
|
9275
9413
|
class registries_$ZodRegistry {
|
|
9276
9414
|
constructor() {
|
|
9277
|
-
this._map = new
|
|
9415
|
+
this._map = new WeakMap();
|
|
9278
9416
|
this._idmap = new Map();
|
|
9279
9417
|
}
|
|
9280
9418
|
add(schema, ..._meta) {
|
|
@@ -9289,7 +9427,7 @@ class registries_$ZodRegistry {
|
|
|
9289
9427
|
return this;
|
|
9290
9428
|
}
|
|
9291
9429
|
clear() {
|
|
9292
|
-
this._map = new
|
|
9430
|
+
this._map = new WeakMap();
|
|
9293
9431
|
this._idmap = new Map();
|
|
9294
9432
|
return this;
|
|
9295
9433
|
}
|
|
@@ -9330,7 +9468,7 @@ const registries_globalRegistry = /*@__PURE__*/ registry();
|
|
|
9330
9468
|
function _string(Class, params) {
|
|
9331
9469
|
return new Class({
|
|
9332
9470
|
type: "string",
|
|
9333
|
-
...
|
|
9471
|
+
...normalizeParams(params),
|
|
9334
9472
|
});
|
|
9335
9473
|
}
|
|
9336
9474
|
function _coercedString(Class, params) {
|
|
@@ -9346,7 +9484,7 @@ function _email(Class, params) {
|
|
|
9346
9484
|
format: "email",
|
|
9347
9485
|
check: "string_format",
|
|
9348
9486
|
abort: false,
|
|
9349
|
-
...
|
|
9487
|
+
...normalizeParams(params),
|
|
9350
9488
|
});
|
|
9351
9489
|
}
|
|
9352
9490
|
function _guid(Class, params) {
|
|
@@ -9355,7 +9493,7 @@ function _guid(Class, params) {
|
|
|
9355
9493
|
format: "guid",
|
|
9356
9494
|
check: "string_format",
|
|
9357
9495
|
abort: false,
|
|
9358
|
-
...
|
|
9496
|
+
...normalizeParams(params),
|
|
9359
9497
|
});
|
|
9360
9498
|
}
|
|
9361
9499
|
function _uuid(Class, params) {
|
|
@@ -9364,7 +9502,7 @@ function _uuid(Class, params) {
|
|
|
9364
9502
|
format: "uuid",
|
|
9365
9503
|
check: "string_format",
|
|
9366
9504
|
abort: false,
|
|
9367
|
-
...
|
|
9505
|
+
...normalizeParams(params),
|
|
9368
9506
|
});
|
|
9369
9507
|
}
|
|
9370
9508
|
function _uuidv4(Class, params) {
|
|
@@ -9374,7 +9512,7 @@ function _uuidv4(Class, params) {
|
|
|
9374
9512
|
check: "string_format",
|
|
9375
9513
|
abort: false,
|
|
9376
9514
|
version: "v4",
|
|
9377
|
-
...
|
|
9515
|
+
...normalizeParams(params),
|
|
9378
9516
|
});
|
|
9379
9517
|
}
|
|
9380
9518
|
function _uuidv6(Class, params) {
|
|
@@ -9384,7 +9522,7 @@ function _uuidv6(Class, params) {
|
|
|
9384
9522
|
check: "string_format",
|
|
9385
9523
|
abort: false,
|
|
9386
9524
|
version: "v6",
|
|
9387
|
-
...
|
|
9525
|
+
...normalizeParams(params),
|
|
9388
9526
|
});
|
|
9389
9527
|
}
|
|
9390
9528
|
function _uuidv7(Class, params) {
|
|
@@ -9394,7 +9532,7 @@ function _uuidv7(Class, params) {
|
|
|
9394
9532
|
check: "string_format",
|
|
9395
9533
|
abort: false,
|
|
9396
9534
|
version: "v7",
|
|
9397
|
-
...
|
|
9535
|
+
...normalizeParams(params),
|
|
9398
9536
|
});
|
|
9399
9537
|
}
|
|
9400
9538
|
function _url(Class, params) {
|
|
@@ -9403,7 +9541,7 @@ function _url(Class, params) {
|
|
|
9403
9541
|
format: "url",
|
|
9404
9542
|
check: "string_format",
|
|
9405
9543
|
abort: false,
|
|
9406
|
-
...
|
|
9544
|
+
...normalizeParams(params),
|
|
9407
9545
|
});
|
|
9408
9546
|
}
|
|
9409
9547
|
function api_emoji(Class, params) {
|
|
@@ -9412,7 +9550,7 @@ function api_emoji(Class, params) {
|
|
|
9412
9550
|
format: "emoji",
|
|
9413
9551
|
check: "string_format",
|
|
9414
9552
|
abort: false,
|
|
9415
|
-
...
|
|
9553
|
+
...normalizeParams(params),
|
|
9416
9554
|
});
|
|
9417
9555
|
}
|
|
9418
9556
|
function _nanoid(Class, params) {
|
|
@@ -9421,7 +9559,7 @@ function _nanoid(Class, params) {
|
|
|
9421
9559
|
format: "nanoid",
|
|
9422
9560
|
check: "string_format",
|
|
9423
9561
|
abort: false,
|
|
9424
|
-
...
|
|
9562
|
+
...normalizeParams(params),
|
|
9425
9563
|
});
|
|
9426
9564
|
}
|
|
9427
9565
|
function _cuid(Class, params) {
|
|
@@ -9430,7 +9568,7 @@ function _cuid(Class, params) {
|
|
|
9430
9568
|
format: "cuid",
|
|
9431
9569
|
check: "string_format",
|
|
9432
9570
|
abort: false,
|
|
9433
|
-
...
|
|
9571
|
+
...normalizeParams(params),
|
|
9434
9572
|
});
|
|
9435
9573
|
}
|
|
9436
9574
|
function _cuid2(Class, params) {
|
|
@@ -9439,7 +9577,7 @@ function _cuid2(Class, params) {
|
|
|
9439
9577
|
format: "cuid2",
|
|
9440
9578
|
check: "string_format",
|
|
9441
9579
|
abort: false,
|
|
9442
|
-
...
|
|
9580
|
+
...normalizeParams(params),
|
|
9443
9581
|
});
|
|
9444
9582
|
}
|
|
9445
9583
|
function _ulid(Class, params) {
|
|
@@ -9448,7 +9586,7 @@ function _ulid(Class, params) {
|
|
|
9448
9586
|
format: "ulid",
|
|
9449
9587
|
check: "string_format",
|
|
9450
9588
|
abort: false,
|
|
9451
|
-
...
|
|
9589
|
+
...normalizeParams(params),
|
|
9452
9590
|
});
|
|
9453
9591
|
}
|
|
9454
9592
|
function _xid(Class, params) {
|
|
@@ -9457,7 +9595,7 @@ function _xid(Class, params) {
|
|
|
9457
9595
|
format: "xid",
|
|
9458
9596
|
check: "string_format",
|
|
9459
9597
|
abort: false,
|
|
9460
|
-
...
|
|
9598
|
+
...normalizeParams(params),
|
|
9461
9599
|
});
|
|
9462
9600
|
}
|
|
9463
9601
|
function _ksuid(Class, params) {
|
|
@@ -9466,7 +9604,7 @@ function _ksuid(Class, params) {
|
|
|
9466
9604
|
format: "ksuid",
|
|
9467
9605
|
check: "string_format",
|
|
9468
9606
|
abort: false,
|
|
9469
|
-
...
|
|
9607
|
+
...normalizeParams(params),
|
|
9470
9608
|
});
|
|
9471
9609
|
}
|
|
9472
9610
|
function _ipv4(Class, params) {
|
|
@@ -9475,7 +9613,7 @@ function _ipv4(Class, params) {
|
|
|
9475
9613
|
format: "ipv4",
|
|
9476
9614
|
check: "string_format",
|
|
9477
9615
|
abort: false,
|
|
9478
|
-
...
|
|
9616
|
+
...normalizeParams(params),
|
|
9479
9617
|
});
|
|
9480
9618
|
}
|
|
9481
9619
|
function _ipv6(Class, params) {
|
|
@@ -9484,7 +9622,7 @@ function _ipv6(Class, params) {
|
|
|
9484
9622
|
format: "ipv6",
|
|
9485
9623
|
check: "string_format",
|
|
9486
9624
|
abort: false,
|
|
9487
|
-
...
|
|
9625
|
+
...normalizeParams(params),
|
|
9488
9626
|
});
|
|
9489
9627
|
}
|
|
9490
9628
|
function _cidrv4(Class, params) {
|
|
@@ -9493,7 +9631,7 @@ function _cidrv4(Class, params) {
|
|
|
9493
9631
|
format: "cidrv4",
|
|
9494
9632
|
check: "string_format",
|
|
9495
9633
|
abort: false,
|
|
9496
|
-
...
|
|
9634
|
+
...normalizeParams(params),
|
|
9497
9635
|
});
|
|
9498
9636
|
}
|
|
9499
9637
|
function _cidrv6(Class, params) {
|
|
@@ -9502,7 +9640,7 @@ function _cidrv6(Class, params) {
|
|
|
9502
9640
|
format: "cidrv6",
|
|
9503
9641
|
check: "string_format",
|
|
9504
9642
|
abort: false,
|
|
9505
|
-
...
|
|
9643
|
+
...normalizeParams(params),
|
|
9506
9644
|
});
|
|
9507
9645
|
}
|
|
9508
9646
|
function _base64(Class, params) {
|
|
@@ -9511,7 +9649,7 @@ function _base64(Class, params) {
|
|
|
9511
9649
|
format: "base64",
|
|
9512
9650
|
check: "string_format",
|
|
9513
9651
|
abort: false,
|
|
9514
|
-
...
|
|
9652
|
+
...normalizeParams(params),
|
|
9515
9653
|
});
|
|
9516
9654
|
}
|
|
9517
9655
|
function _base64url(Class, params) {
|
|
@@ -9520,7 +9658,7 @@ function _base64url(Class, params) {
|
|
|
9520
9658
|
format: "base64url",
|
|
9521
9659
|
check: "string_format",
|
|
9522
9660
|
abort: false,
|
|
9523
|
-
...
|
|
9661
|
+
...normalizeParams(params),
|
|
9524
9662
|
});
|
|
9525
9663
|
}
|
|
9526
9664
|
function _e164(Class, params) {
|
|
@@ -9529,7 +9667,7 @@ function _e164(Class, params) {
|
|
|
9529
9667
|
format: "e164",
|
|
9530
9668
|
check: "string_format",
|
|
9531
9669
|
abort: false,
|
|
9532
|
-
...
|
|
9670
|
+
...normalizeParams(params),
|
|
9533
9671
|
});
|
|
9534
9672
|
}
|
|
9535
9673
|
function _jwt(Class, params) {
|
|
@@ -9538,7 +9676,7 @@ function _jwt(Class, params) {
|
|
|
9538
9676
|
format: "jwt",
|
|
9539
9677
|
check: "string_format",
|
|
9540
9678
|
abort: false,
|
|
9541
|
-
...
|
|
9679
|
+
...normalizeParams(params),
|
|
9542
9680
|
});
|
|
9543
9681
|
}
|
|
9544
9682
|
const TimePrecision = {
|
|
@@ -9556,7 +9694,7 @@ function _isoDateTime(Class, params) {
|
|
|
9556
9694
|
offset: false,
|
|
9557
9695
|
local: false,
|
|
9558
9696
|
precision: null,
|
|
9559
|
-
...
|
|
9697
|
+
...normalizeParams(params),
|
|
9560
9698
|
});
|
|
9561
9699
|
}
|
|
9562
9700
|
function _isoDate(Class, params) {
|
|
@@ -9564,7 +9702,7 @@ function _isoDate(Class, params) {
|
|
|
9564
9702
|
type: "string",
|
|
9565
9703
|
format: "date",
|
|
9566
9704
|
check: "string_format",
|
|
9567
|
-
...
|
|
9705
|
+
...normalizeParams(params),
|
|
9568
9706
|
});
|
|
9569
9707
|
}
|
|
9570
9708
|
function _isoTime(Class, params) {
|
|
@@ -9573,7 +9711,7 @@ function _isoTime(Class, params) {
|
|
|
9573
9711
|
format: "time",
|
|
9574
9712
|
check: "string_format",
|
|
9575
9713
|
precision: null,
|
|
9576
|
-
...
|
|
9714
|
+
...normalizeParams(params),
|
|
9577
9715
|
});
|
|
9578
9716
|
}
|
|
9579
9717
|
function _isoDuration(Class, params) {
|
|
@@ -9581,7 +9719,7 @@ function _isoDuration(Class, params) {
|
|
|
9581
9719
|
type: "string",
|
|
9582
9720
|
format: "duration",
|
|
9583
9721
|
check: "string_format",
|
|
9584
|
-
...
|
|
9722
|
+
...normalizeParams(params),
|
|
9585
9723
|
});
|
|
9586
9724
|
}
|
|
9587
9725
|
function _number(Class, params) {
|
|
@@ -9847,48 +9985,48 @@ function _length(length, params) {
|
|
|
9847
9985
|
});
|
|
9848
9986
|
}
|
|
9849
9987
|
function _regex(pattern, params) {
|
|
9850
|
-
return new
|
|
9988
|
+
return new $ZodCheckRegex({
|
|
9851
9989
|
check: "string_format",
|
|
9852
9990
|
format: "regex",
|
|
9853
|
-
...
|
|
9991
|
+
...normalizeParams(params),
|
|
9854
9992
|
pattern,
|
|
9855
9993
|
});
|
|
9856
9994
|
}
|
|
9857
9995
|
function _lowercase(params) {
|
|
9858
|
-
return new
|
|
9996
|
+
return new $ZodCheckLowerCase({
|
|
9859
9997
|
check: "string_format",
|
|
9860
9998
|
format: "lowercase",
|
|
9861
|
-
...
|
|
9999
|
+
...normalizeParams(params),
|
|
9862
10000
|
});
|
|
9863
10001
|
}
|
|
9864
10002
|
function _uppercase(params) {
|
|
9865
|
-
return new
|
|
10003
|
+
return new $ZodCheckUpperCase({
|
|
9866
10004
|
check: "string_format",
|
|
9867
10005
|
format: "uppercase",
|
|
9868
|
-
...
|
|
10006
|
+
...normalizeParams(params),
|
|
9869
10007
|
});
|
|
9870
10008
|
}
|
|
9871
10009
|
function _includes(includes, params) {
|
|
9872
|
-
return new
|
|
10010
|
+
return new $ZodCheckIncludes({
|
|
9873
10011
|
check: "string_format",
|
|
9874
10012
|
format: "includes",
|
|
9875
|
-
...
|
|
10013
|
+
...normalizeParams(params),
|
|
9876
10014
|
includes,
|
|
9877
10015
|
});
|
|
9878
10016
|
}
|
|
9879
10017
|
function _startsWith(prefix, params) {
|
|
9880
|
-
return new
|
|
10018
|
+
return new $ZodCheckStartsWith({
|
|
9881
10019
|
check: "string_format",
|
|
9882
10020
|
format: "starts_with",
|
|
9883
|
-
...
|
|
10021
|
+
...normalizeParams(params),
|
|
9884
10022
|
prefix,
|
|
9885
10023
|
});
|
|
9886
10024
|
}
|
|
9887
10025
|
function _endsWith(suffix, params) {
|
|
9888
|
-
return new
|
|
10026
|
+
return new $ZodCheckEndsWith({
|
|
9889
10027
|
check: "string_format",
|
|
9890
10028
|
format: "ends_with",
|
|
9891
|
-
...
|
|
10029
|
+
...normalizeParams(params),
|
|
9892
10030
|
suffix,
|
|
9893
10031
|
});
|
|
9894
10032
|
}
|
|
@@ -11185,33 +11323,33 @@ function isTransforming(_schema, _ctx) {
|
|
|
11185
11323
|
;// CONCATENATED MODULE: ./node_modules/zod/v4/classic/iso.js
|
|
11186
11324
|
|
|
11187
11325
|
|
|
11188
|
-
const ZodISODateTime = /*@__PURE__*/
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
})
|
|
11326
|
+
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
11327
|
+
$ZodISODateTime.init(inst, def);
|
|
11328
|
+
ZodStringFormat.init(inst, def);
|
|
11329
|
+
});
|
|
11192
11330
|
function iso_datetime(params) {
|
|
11193
|
-
return
|
|
11331
|
+
return _isoDateTime(ZodISODateTime, params);
|
|
11194
11332
|
}
|
|
11195
|
-
const ZodISODate = /*@__PURE__*/
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
})
|
|
11333
|
+
const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
|
|
11334
|
+
$ZodISODate.init(inst, def);
|
|
11335
|
+
ZodStringFormat.init(inst, def);
|
|
11336
|
+
});
|
|
11199
11337
|
function iso_date(params) {
|
|
11200
|
-
return
|
|
11338
|
+
return _isoDate(ZodISODate, params);
|
|
11201
11339
|
}
|
|
11202
|
-
const ZodISOTime = /*@__PURE__*/
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
})
|
|
11340
|
+
const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
|
|
11341
|
+
$ZodISOTime.init(inst, def);
|
|
11342
|
+
ZodStringFormat.init(inst, def);
|
|
11343
|
+
});
|
|
11206
11344
|
function iso_time(params) {
|
|
11207
|
-
return
|
|
11345
|
+
return _isoTime(ZodISOTime, params);
|
|
11208
11346
|
}
|
|
11209
|
-
const ZodISODuration = /*@__PURE__*/
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
})
|
|
11347
|
+
const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
|
|
11348
|
+
$ZodISODuration.init(inst, def);
|
|
11349
|
+
ZodStringFormat.init(inst, def);
|
|
11350
|
+
});
|
|
11213
11351
|
function iso_duration(params) {
|
|
11214
|
-
return
|
|
11352
|
+
return _isoDuration(ZodISODuration, params);
|
|
11215
11353
|
}
|
|
11216
11354
|
|
|
11217
11355
|
;// CONCATENATED MODULE: ./node_modules/zod/v4/classic/errors.js
|
|
@@ -11294,15 +11432,12 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
|
11294
11432
|
Object.defineProperty(inst, "_def", { value: def });
|
|
11295
11433
|
// base methods
|
|
11296
11434
|
inst.check = (...checks) => {
|
|
11297
|
-
return inst.clone({
|
|
11298
|
-
...def,
|
|
11435
|
+
return inst.clone(mergeDefs(def, {
|
|
11299
11436
|
checks: [
|
|
11300
11437
|
...(def.checks ?? []),
|
|
11301
11438
|
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
|
|
11302
11439
|
],
|
|
11303
|
-
}
|
|
11304
|
-
// { parent: true }
|
|
11305
|
-
);
|
|
11440
|
+
}));
|
|
11306
11441
|
};
|
|
11307
11442
|
inst.clone = (def, params) => clone(inst, def, params);
|
|
11308
11443
|
inst.brand = () => inst;
|
|
@@ -11370,90 +11505,90 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
|
11370
11505
|
return inst;
|
|
11371
11506
|
});
|
|
11372
11507
|
/** @internal */
|
|
11373
|
-
const _ZodString = /*@__PURE__*/
|
|
11374
|
-
|
|
11508
|
+
const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
11509
|
+
$ZodString.init(inst, def);
|
|
11375
11510
|
ZodType.init(inst, def);
|
|
11376
11511
|
const bag = inst._zod.bag;
|
|
11377
11512
|
inst.format = bag.format ?? null;
|
|
11378
11513
|
inst.minLength = bag.minimum ?? null;
|
|
11379
11514
|
inst.maxLength = bag.maximum ?? null;
|
|
11380
11515
|
// validations
|
|
11381
|
-
inst.regex = (...args) => inst.check(
|
|
11382
|
-
inst.includes = (...args) => inst.check(
|
|
11383
|
-
inst.startsWith = (...args) => inst.check(
|
|
11384
|
-
inst.endsWith = (...args) => inst.check(
|
|
11385
|
-
inst.min = (...args) => inst.check(
|
|
11386
|
-
inst.max = (...args) => inst.check(
|
|
11387
|
-
inst.length = (...args) => inst.check(
|
|
11388
|
-
inst.nonempty = (...args) => inst.check(
|
|
11389
|
-
inst.lowercase = (params) => inst.check(
|
|
11390
|
-
inst.uppercase = (params) => inst.check(
|
|
11516
|
+
inst.regex = (...args) => inst.check(_regex(...args));
|
|
11517
|
+
inst.includes = (...args) => inst.check(_includes(...args));
|
|
11518
|
+
inst.startsWith = (...args) => inst.check(_startsWith(...args));
|
|
11519
|
+
inst.endsWith = (...args) => inst.check(_endsWith(...args));
|
|
11520
|
+
inst.min = (...args) => inst.check(_minLength(...args));
|
|
11521
|
+
inst.max = (...args) => inst.check(_maxLength(...args));
|
|
11522
|
+
inst.length = (...args) => inst.check(_length(...args));
|
|
11523
|
+
inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
|
|
11524
|
+
inst.lowercase = (params) => inst.check(_lowercase(params));
|
|
11525
|
+
inst.uppercase = (params) => inst.check(_uppercase(params));
|
|
11391
11526
|
// transforms
|
|
11392
|
-
inst.trim = () => inst.check(
|
|
11393
|
-
inst.normalize = (...args) => inst.check(
|
|
11394
|
-
inst.toLowerCase = () => inst.check(
|
|
11395
|
-
inst.toUpperCase = () => inst.check(
|
|
11396
|
-
})
|
|
11397
|
-
const ZodString = /*@__PURE__*/
|
|
11398
|
-
|
|
11527
|
+
inst.trim = () => inst.check(_trim());
|
|
11528
|
+
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
11529
|
+
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
11530
|
+
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
11531
|
+
});
|
|
11532
|
+
const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
11533
|
+
$ZodString.init(inst, def);
|
|
11399
11534
|
_ZodString.init(inst, def);
|
|
11400
|
-
inst.email = (params) => inst.check(
|
|
11401
|
-
inst.url = (params) => inst.check(
|
|
11402
|
-
inst.jwt = (params) => inst.check(
|
|
11403
|
-
inst.emoji = (params) => inst.check(
|
|
11404
|
-
inst.guid = (params) => inst.check(
|
|
11405
|
-
inst.uuid = (params) => inst.check(
|
|
11406
|
-
inst.uuidv4 = (params) => inst.check(
|
|
11407
|
-
inst.uuidv6 = (params) => inst.check(
|
|
11408
|
-
inst.uuidv7 = (params) => inst.check(
|
|
11409
|
-
inst.nanoid = (params) => inst.check(
|
|
11410
|
-
inst.guid = (params) => inst.check(
|
|
11411
|
-
inst.cuid = (params) => inst.check(
|
|
11412
|
-
inst.cuid2 = (params) => inst.check(
|
|
11413
|
-
inst.ulid = (params) => inst.check(
|
|
11414
|
-
inst.base64 = (params) => inst.check(
|
|
11415
|
-
inst.base64url = (params) => inst.check(
|
|
11416
|
-
inst.xid = (params) => inst.check(
|
|
11417
|
-
inst.ksuid = (params) => inst.check(
|
|
11418
|
-
inst.ipv4 = (params) => inst.check(
|
|
11419
|
-
inst.ipv6 = (params) => inst.check(
|
|
11420
|
-
inst.cidrv4 = (params) => inst.check(
|
|
11421
|
-
inst.cidrv6 = (params) => inst.check(
|
|
11422
|
-
inst.e164 = (params) => inst.check(
|
|
11535
|
+
inst.email = (params) => inst.check(_email(ZodEmail, params));
|
|
11536
|
+
inst.url = (params) => inst.check(_url(ZodURL, params));
|
|
11537
|
+
inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
|
|
11538
|
+
inst.emoji = (params) => inst.check(api_emoji(ZodEmoji, params));
|
|
11539
|
+
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
11540
|
+
inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
|
|
11541
|
+
inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
|
|
11542
|
+
inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
|
|
11543
|
+
inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
|
|
11544
|
+
inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
|
|
11545
|
+
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
11546
|
+
inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
|
|
11547
|
+
inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
|
|
11548
|
+
inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
|
|
11549
|
+
inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
|
|
11550
|
+
inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
|
|
11551
|
+
inst.xid = (params) => inst.check(_xid(ZodXID, params));
|
|
11552
|
+
inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
|
|
11553
|
+
inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
|
|
11554
|
+
inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
|
|
11555
|
+
inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
|
|
11556
|
+
inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
|
|
11557
|
+
inst.e164 = (params) => inst.check(_e164(ZodE164, params));
|
|
11423
11558
|
// iso
|
|
11424
|
-
inst.datetime = (params) => inst.check(
|
|
11425
|
-
inst.date = (params) => inst.check(
|
|
11426
|
-
inst.time = (params) => inst.check(
|
|
11427
|
-
inst.duration = (params) => inst.check(
|
|
11428
|
-
})
|
|
11559
|
+
inst.datetime = (params) => inst.check(iso_datetime(params));
|
|
11560
|
+
inst.date = (params) => inst.check(iso_date(params));
|
|
11561
|
+
inst.time = (params) => inst.check(iso_time(params));
|
|
11562
|
+
inst.duration = (params) => inst.check(iso_duration(params));
|
|
11563
|
+
});
|
|
11429
11564
|
function schemas_string(params) {
|
|
11430
|
-
return
|
|
11565
|
+
return _string(ZodString, params);
|
|
11431
11566
|
}
|
|
11432
|
-
const ZodStringFormat = /*@__PURE__*/
|
|
11433
|
-
|
|
11567
|
+
const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
11568
|
+
$ZodStringFormat.init(inst, def);
|
|
11434
11569
|
_ZodString.init(inst, def);
|
|
11435
|
-
})
|
|
11436
|
-
const ZodEmail = /*@__PURE__*/
|
|
11570
|
+
});
|
|
11571
|
+
const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
11437
11572
|
// ZodStringFormat.init(inst, def);
|
|
11438
|
-
|
|
11573
|
+
$ZodEmail.init(inst, def);
|
|
11439
11574
|
ZodStringFormat.init(inst, def);
|
|
11440
|
-
})
|
|
11575
|
+
});
|
|
11441
11576
|
function schemas_email(params) {
|
|
11442
11577
|
return core._email(ZodEmail, params);
|
|
11443
11578
|
}
|
|
11444
|
-
const ZodGUID = /*@__PURE__*/
|
|
11579
|
+
const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
11445
11580
|
// ZodStringFormat.init(inst, def);
|
|
11446
|
-
|
|
11581
|
+
$ZodGUID.init(inst, def);
|
|
11447
11582
|
ZodStringFormat.init(inst, def);
|
|
11448
|
-
})
|
|
11583
|
+
});
|
|
11449
11584
|
function schemas_guid(params) {
|
|
11450
11585
|
return core._guid(ZodGUID, params);
|
|
11451
11586
|
}
|
|
11452
|
-
const ZodUUID = /*@__PURE__*/
|
|
11587
|
+
const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
11453
11588
|
// ZodStringFormat.init(inst, def);
|
|
11454
|
-
|
|
11589
|
+
$ZodUUID.init(inst, def);
|
|
11455
11590
|
ZodStringFormat.init(inst, def);
|
|
11456
|
-
})
|
|
11591
|
+
});
|
|
11457
11592
|
function schemas_uuid(params) {
|
|
11458
11593
|
return core._uuid(ZodUUID, params);
|
|
11459
11594
|
}
|
|
@@ -11468,11 +11603,11 @@ function uuidv6(params) {
|
|
|
11468
11603
|
function uuidv7(params) {
|
|
11469
11604
|
return core._uuidv7(ZodUUID, params);
|
|
11470
11605
|
}
|
|
11471
|
-
const ZodURL = /*@__PURE__*/
|
|
11606
|
+
const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
11472
11607
|
// ZodStringFormat.init(inst, def);
|
|
11473
|
-
|
|
11608
|
+
$ZodURL.init(inst, def);
|
|
11474
11609
|
ZodStringFormat.init(inst, def);
|
|
11475
|
-
})
|
|
11610
|
+
});
|
|
11476
11611
|
function url(params) {
|
|
11477
11612
|
return core._url(ZodURL, params);
|
|
11478
11613
|
}
|
|
@@ -11483,121 +11618,121 @@ function httpUrl(params) {
|
|
|
11483
11618
|
...util.normalizeParams(params),
|
|
11484
11619
|
});
|
|
11485
11620
|
}
|
|
11486
|
-
const ZodEmoji = /*@__PURE__*/
|
|
11621
|
+
const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
11487
11622
|
// ZodStringFormat.init(inst, def);
|
|
11488
|
-
|
|
11623
|
+
$ZodEmoji.init(inst, def);
|
|
11489
11624
|
ZodStringFormat.init(inst, def);
|
|
11490
|
-
})
|
|
11625
|
+
});
|
|
11491
11626
|
function schemas_emoji(params) {
|
|
11492
11627
|
return core._emoji(ZodEmoji, params);
|
|
11493
11628
|
}
|
|
11494
|
-
const ZodNanoID = /*@__PURE__*/
|
|
11629
|
+
const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
11495
11630
|
// ZodStringFormat.init(inst, def);
|
|
11496
|
-
|
|
11631
|
+
$ZodNanoID.init(inst, def);
|
|
11497
11632
|
ZodStringFormat.init(inst, def);
|
|
11498
|
-
})
|
|
11633
|
+
});
|
|
11499
11634
|
function schemas_nanoid(params) {
|
|
11500
11635
|
return core._nanoid(ZodNanoID, params);
|
|
11501
11636
|
}
|
|
11502
|
-
const ZodCUID = /*@__PURE__*/
|
|
11637
|
+
const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
11503
11638
|
// ZodStringFormat.init(inst, def);
|
|
11504
|
-
|
|
11639
|
+
$ZodCUID.init(inst, def);
|
|
11505
11640
|
ZodStringFormat.init(inst, def);
|
|
11506
|
-
})
|
|
11641
|
+
});
|
|
11507
11642
|
function schemas_cuid(params) {
|
|
11508
11643
|
return core._cuid(ZodCUID, params);
|
|
11509
11644
|
}
|
|
11510
|
-
const ZodCUID2 = /*@__PURE__*/
|
|
11645
|
+
const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
11511
11646
|
// ZodStringFormat.init(inst, def);
|
|
11512
|
-
|
|
11647
|
+
$ZodCUID2.init(inst, def);
|
|
11513
11648
|
ZodStringFormat.init(inst, def);
|
|
11514
|
-
})
|
|
11649
|
+
});
|
|
11515
11650
|
function schemas_cuid2(params) {
|
|
11516
11651
|
return core._cuid2(ZodCUID2, params);
|
|
11517
11652
|
}
|
|
11518
|
-
const ZodULID = /*@__PURE__*/
|
|
11653
|
+
const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
11519
11654
|
// ZodStringFormat.init(inst, def);
|
|
11520
|
-
|
|
11655
|
+
$ZodULID.init(inst, def);
|
|
11521
11656
|
ZodStringFormat.init(inst, def);
|
|
11522
|
-
})
|
|
11657
|
+
});
|
|
11523
11658
|
function schemas_ulid(params) {
|
|
11524
11659
|
return core._ulid(ZodULID, params);
|
|
11525
11660
|
}
|
|
11526
|
-
const ZodXID = /*@__PURE__*/
|
|
11661
|
+
const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
11527
11662
|
// ZodStringFormat.init(inst, def);
|
|
11528
|
-
|
|
11663
|
+
$ZodXID.init(inst, def);
|
|
11529
11664
|
ZodStringFormat.init(inst, def);
|
|
11530
|
-
})
|
|
11665
|
+
});
|
|
11531
11666
|
function schemas_xid(params) {
|
|
11532
11667
|
return core._xid(ZodXID, params);
|
|
11533
11668
|
}
|
|
11534
|
-
const ZodKSUID = /*@__PURE__*/
|
|
11669
|
+
const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
11535
11670
|
// ZodStringFormat.init(inst, def);
|
|
11536
|
-
|
|
11671
|
+
$ZodKSUID.init(inst, def);
|
|
11537
11672
|
ZodStringFormat.init(inst, def);
|
|
11538
|
-
})
|
|
11673
|
+
});
|
|
11539
11674
|
function schemas_ksuid(params) {
|
|
11540
11675
|
return core._ksuid(ZodKSUID, params);
|
|
11541
11676
|
}
|
|
11542
|
-
const ZodIPv4 = /*@__PURE__*/
|
|
11677
|
+
const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
11543
11678
|
// ZodStringFormat.init(inst, def);
|
|
11544
|
-
|
|
11679
|
+
$ZodIPv4.init(inst, def);
|
|
11545
11680
|
ZodStringFormat.init(inst, def);
|
|
11546
|
-
})
|
|
11681
|
+
});
|
|
11547
11682
|
function schemas_ipv4(params) {
|
|
11548
11683
|
return core._ipv4(ZodIPv4, params);
|
|
11549
11684
|
}
|
|
11550
|
-
const ZodIPv6 = /*@__PURE__*/
|
|
11685
|
+
const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
11551
11686
|
// ZodStringFormat.init(inst, def);
|
|
11552
|
-
|
|
11687
|
+
$ZodIPv6.init(inst, def);
|
|
11553
11688
|
ZodStringFormat.init(inst, def);
|
|
11554
|
-
})
|
|
11689
|
+
});
|
|
11555
11690
|
function schemas_ipv6(params) {
|
|
11556
11691
|
return core._ipv6(ZodIPv6, params);
|
|
11557
11692
|
}
|
|
11558
|
-
const ZodCIDRv4 = /*@__PURE__*/
|
|
11559
|
-
|
|
11693
|
+
const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
11694
|
+
$ZodCIDRv4.init(inst, def);
|
|
11560
11695
|
ZodStringFormat.init(inst, def);
|
|
11561
|
-
})
|
|
11696
|
+
});
|
|
11562
11697
|
function schemas_cidrv4(params) {
|
|
11563
11698
|
return core._cidrv4(ZodCIDRv4, params);
|
|
11564
11699
|
}
|
|
11565
|
-
const ZodCIDRv6 = /*@__PURE__*/
|
|
11566
|
-
|
|
11700
|
+
const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
11701
|
+
$ZodCIDRv6.init(inst, def);
|
|
11567
11702
|
ZodStringFormat.init(inst, def);
|
|
11568
|
-
})
|
|
11703
|
+
});
|
|
11569
11704
|
function schemas_cidrv6(params) {
|
|
11570
11705
|
return core._cidrv6(ZodCIDRv6, params);
|
|
11571
11706
|
}
|
|
11572
|
-
const ZodBase64 = /*@__PURE__*/
|
|
11707
|
+
const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
11573
11708
|
// ZodStringFormat.init(inst, def);
|
|
11574
|
-
|
|
11709
|
+
$ZodBase64.init(inst, def);
|
|
11575
11710
|
ZodStringFormat.init(inst, def);
|
|
11576
|
-
})
|
|
11711
|
+
});
|
|
11577
11712
|
function schemas_base64(params) {
|
|
11578
11713
|
return core._base64(ZodBase64, params);
|
|
11579
11714
|
}
|
|
11580
|
-
const ZodBase64URL = /*@__PURE__*/
|
|
11715
|
+
const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
11581
11716
|
// ZodStringFormat.init(inst, def);
|
|
11582
|
-
|
|
11717
|
+
$ZodBase64URL.init(inst, def);
|
|
11583
11718
|
ZodStringFormat.init(inst, def);
|
|
11584
|
-
})
|
|
11719
|
+
});
|
|
11585
11720
|
function schemas_base64url(params) {
|
|
11586
11721
|
return core._base64url(ZodBase64URL, params);
|
|
11587
11722
|
}
|
|
11588
|
-
const ZodE164 = /*@__PURE__*/
|
|
11723
|
+
const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
11589
11724
|
// ZodStringFormat.init(inst, def);
|
|
11590
|
-
|
|
11725
|
+
$ZodE164.init(inst, def);
|
|
11591
11726
|
ZodStringFormat.init(inst, def);
|
|
11592
|
-
})
|
|
11727
|
+
});
|
|
11593
11728
|
function schemas_e164(params) {
|
|
11594
11729
|
return core._e164(ZodE164, params);
|
|
11595
11730
|
}
|
|
11596
|
-
const ZodJWT = /*@__PURE__*/
|
|
11731
|
+
const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
11597
11732
|
// ZodStringFormat.init(inst, def);
|
|
11598
|
-
|
|
11733
|
+
$ZodJWT.init(inst, def);
|
|
11599
11734
|
ZodStringFormat.init(inst, def);
|
|
11600
|
-
})
|
|
11735
|
+
});
|
|
11601
11736
|
function jwt(params) {
|
|
11602
11737
|
return core._jwt(ZodJWT, params);
|
|
11603
11738
|
}
|
|
@@ -11801,7 +11936,9 @@ function keyof(schema) {
|
|
|
11801
11936
|
const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
11802
11937
|
$ZodObjectJIT.init(inst, def);
|
|
11803
11938
|
ZodType.init(inst, def);
|
|
11804
|
-
defineLazy(inst, "shape", () =>
|
|
11939
|
+
defineLazy(inst, "shape", () => {
|
|
11940
|
+
return def.shape;
|
|
11941
|
+
});
|
|
11805
11942
|
inst.keyof = () => schemas_enum(Object.keys(inst._zod.def.shape));
|
|
11806
11943
|
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall: catchall });
|
|
11807
11944
|
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
@@ -11823,10 +11960,7 @@ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
|
11823
11960
|
function object(shape, params) {
|
|
11824
11961
|
const def = {
|
|
11825
11962
|
type: "object",
|
|
11826
|
-
|
|
11827
|
-
assignProp(this, "shape", shape ? objectClone(shape) : {});
|
|
11828
|
-
return this.shape;
|
|
11829
|
-
},
|
|
11963
|
+
shape: shape ?? {},
|
|
11830
11964
|
...normalizeParams(params),
|
|
11831
11965
|
};
|
|
11832
11966
|
return new ZodObject(def);
|
|
@@ -11835,10 +11969,7 @@ function object(shape, params) {
|
|
|
11835
11969
|
function strictObject(shape, params) {
|
|
11836
11970
|
return new ZodObject({
|
|
11837
11971
|
type: "object",
|
|
11838
|
-
|
|
11839
|
-
util.assignProp(this, "shape", util.objectClone(shape));
|
|
11840
|
-
return this.shape;
|
|
11841
|
-
},
|
|
11972
|
+
shape,
|
|
11842
11973
|
catchall: never(),
|
|
11843
11974
|
...util.normalizeParams(params),
|
|
11844
11975
|
});
|
|
@@ -11847,10 +11978,7 @@ function strictObject(shape, params) {
|
|
|
11847
11978
|
function looseObject(shape, params) {
|
|
11848
11979
|
return new ZodObject({
|
|
11849
11980
|
type: "object",
|
|
11850
|
-
|
|
11851
|
-
util.assignProp(this, "shape", util.objectClone(shape));
|
|
11852
|
-
return this.shape;
|
|
11853
|
-
},
|
|
11981
|
+
shape,
|
|
11854
11982
|
catchall: unknown(),
|
|
11855
11983
|
...util.normalizeParams(params),
|
|
11856
11984
|
});
|