@tileflow/core 0.1.0-alpha.41 → 0.1.0-alpha.43
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/README.md +51 -69
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/{3d-CzLTD0RK.d.ts → 3d-CW5Ls0An.d.ts} +32 -2
- package/dist/3d.d.ts +1 -1
- package/dist/3d.js +337 -34
- package/dist/browser.d.ts +119 -7
- package/dist/browser.js +754 -61
- package/dist/build.d.ts +8 -4
- package/dist/build.js +284 -4
- package/dist/config-reference.json +4005 -2284
- package/dist/{icon-composition-HUh_Lj8Z.d.ts → icon-composition-Bbw9umUA.d.ts} +46 -3
- package/dist/index.d.ts +22 -5
- package/dist/index.js +254 -6
- package/dist/{manifest-types-DnhSJjCM.d.ts → manifest-types-CwjHd4qc.d.ts} +10 -0
- package/dist/manifest.d.ts +2 -2
- package/dist/native-profile.d.ts +4 -0
- package/dist/native-profile.js +2 -0
- package/dist/native.d.ts +87 -1
- package/dist/native.js +980 -460
- package/dist/runtime.d.ts +1 -1
- package/dist/worker/camera-tile-worker.global.js +2 -2
- package/package.json +4 -5
- package/docs/application-tile-reading.md +0 -86
- package/docs/authoring-model.md +0 -269
- package/docs/boundary-areas-and-choropleths.md +0 -217
- package/docs/buildings-3d.md +0 -608
- package/docs/camera-moves-and-tile-cache.md +0 -112
- package/docs/capture-scenes.md +0 -40
- package/docs/capture-shots.md +0 -173
- package/docs/cartographic-defaults.md +0 -210
- package/docs/compiled-style-performance.md +0 -286
- package/docs/data-is-separate-from-design.md +0 -610
- package/docs/depth-markers.md +0 -65
- package/docs/dynamic-style-images.md +0 -100
- package/docs/globe-atmosphere.md +0 -113
- package/docs/hosted-session-authorization.md +0 -106
- package/docs/map-and-terrain-examples.md +0 -156
- package/docs/map-emphasis.md +0 -89
- package/docs/native-artifact-profile.md +0 -152
- package/docs/native-resource-urls.md +0 -369
- package/docs/nautical-marks.md +0 -308
- package/docs/public-api-and-browser-subpath.md +0 -101
- package/docs/route-drawing.md +0 -191
- package/docs/shared-visual-primitives.md +0 -101
- package/docs/street-lights.md +0 -127
- package/docs/street-sky.md +0 -156
- package/docs/style-states.md +0 -73
- package/docs/sun-and-light.md +0 -167
- package/docs/theme-transitions-and-blends.md +0 -317
- package/docs/themes-and-module-styles.md +0 -156
- package/docs/trees-3d.md +0 -295
package/dist/native.js
CHANGED
|
@@ -153,9 +153,9 @@ var init_native_url_utf8 = __esm({
|
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
// ../../node_modules/.pnpm/whatwg-url@17.
|
|
156
|
+
// ../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/infra.js
|
|
157
157
|
var require_infra = __commonJS({
|
|
158
|
-
"../../node_modules/.pnpm/whatwg-url@17.
|
|
158
|
+
"../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/infra.js"(exports, module) {
|
|
159
159
|
"use strict";
|
|
160
160
|
function isASCIIDigit(c) {
|
|
161
161
|
return c >= 48 && c <= 57;
|
|
@@ -768,16 +768,16 @@ var require_tr46 = __commonJS({
|
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
770
|
|
|
771
|
-
// ../../node_modules/.pnpm/whatwg-url@17.
|
|
771
|
+
// ../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/url-miscellaneous.js
|
|
772
772
|
var require_url_miscellaneous = __commonJS({
|
|
773
|
-
"../../node_modules/.pnpm/whatwg-url@17.
|
|
773
|
+
"../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/url-miscellaneous.js"(exports, module) {
|
|
774
774
|
"use strict";
|
|
775
775
|
var tr46 = require_tr46();
|
|
776
776
|
var infra = require_infra();
|
|
777
777
|
function p(char) {
|
|
778
778
|
return char.codePointAt(0);
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var failure2 = /* @__PURE__ */ Symbol("failure");
|
|
781
781
|
var specialSchemes = /* @__PURE__ */ new Map([
|
|
782
782
|
["ftp", 21],
|
|
783
783
|
["file", null],
|
|
@@ -860,7 +860,7 @@ var require_url_miscellaneous = __commonJS({
|
|
|
860
860
|
}
|
|
861
861
|
function parseIPv4Number(input, validationErrors = null) {
|
|
862
862
|
if (input === "") {
|
|
863
|
-
return
|
|
863
|
+
return failure2;
|
|
864
864
|
}
|
|
865
865
|
let validationErrorSeen = false;
|
|
866
866
|
let R = 10;
|
|
@@ -885,7 +885,7 @@ var require_url_miscellaneous = __commonJS({
|
|
|
885
885
|
regex = /[^0-9A-Fa-f]/u;
|
|
886
886
|
}
|
|
887
887
|
if (regex.test(input)) {
|
|
888
|
-
return
|
|
888
|
+
return failure2;
|
|
889
889
|
}
|
|
890
890
|
if (validationErrorSeen) {
|
|
891
891
|
validationErrors?.push("IPv4-non-decimal-part");
|
|
@@ -904,7 +904,7 @@ var require_url_miscellaneous = __commonJS({
|
|
|
904
904
|
if (/^[0-9]+$/u.test(last)) {
|
|
905
905
|
return true;
|
|
906
906
|
}
|
|
907
|
-
if (parseIPv4Number(last) !==
|
|
907
|
+
if (parseIPv4Number(last) !== failure2) {
|
|
908
908
|
return true;
|
|
909
909
|
}
|
|
910
910
|
return false;
|
|
@@ -916,7 +916,7 @@ var require_url_miscellaneous = __commonJS({
|
|
|
916
916
|
validationErrors?.push("domain-to-ASCII");
|
|
917
917
|
}
|
|
918
918
|
if (beStrict) {
|
|
919
|
-
return strictResult === null ?
|
|
919
|
+
return strictResult === null ? failure2 : strictResult;
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
let result;
|
|
@@ -925,14 +925,14 @@ var require_url_miscellaneous = __commonJS({
|
|
|
925
925
|
} else {
|
|
926
926
|
result = domainParserToASCII(domain, false);
|
|
927
927
|
if (result === null) {
|
|
928
|
-
return
|
|
928
|
+
return failure2;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
if (result === "") {
|
|
932
|
-
return
|
|
932
|
+
return failure2;
|
|
933
933
|
}
|
|
934
934
|
if (containsForbiddenDomainCodePoint(result)) {
|
|
935
|
-
return
|
|
935
|
+
return failure2;
|
|
936
936
|
}
|
|
937
937
|
return result;
|
|
938
938
|
}
|
|
@@ -960,7 +960,7 @@ var require_url_miscellaneous = __commonJS({
|
|
|
960
960
|
defaultPort,
|
|
961
961
|
domainParser,
|
|
962
962
|
endsInANumber,
|
|
963
|
-
failure,
|
|
963
|
+
failure: failure2,
|
|
964
964
|
forbiddenHostCodePoints,
|
|
965
965
|
isInvalidURLCodePoint,
|
|
966
966
|
isNormalizedWindowsDriveLetterString,
|
|
@@ -976,9 +976,9 @@ var require_url_miscellaneous = __commonJS({
|
|
|
976
976
|
}
|
|
977
977
|
});
|
|
978
978
|
|
|
979
|
-
// ../../node_modules/.pnpm/whatwg-url@17.
|
|
979
|
+
// ../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/percent-encoding.js
|
|
980
980
|
var require_percent_encoding = __commonJS({
|
|
981
|
-
"../../node_modules/.pnpm/whatwg-url@17.
|
|
981
|
+
"../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/percent-encoding.js"(exports, module) {
|
|
982
982
|
"use strict";
|
|
983
983
|
var { isASCIIHex } = require_infra();
|
|
984
984
|
var { utf8Encode: utf8Encode2 } = (init_native_url_utf8(), __toCommonJS(native_url_utf8_exports));
|
|
@@ -1090,9 +1090,9 @@ var require_percent_encoding = __commonJS({
|
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
|
|
1093
|
-
// ../../node_modules/.pnpm/whatwg-url@17.
|
|
1093
|
+
// ../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/url-state-machine.js
|
|
1094
1094
|
var require_url_state_machine = __commonJS({
|
|
1095
|
-
"../../node_modules/.pnpm/whatwg-url@17.
|
|
1095
|
+
"../../node_modules/.pnpm/whatwg-url@17.3.0/node_modules/whatwg-url/lib/url-state-machine.js"(exports, module) {
|
|
1096
1096
|
"use strict";
|
|
1097
1097
|
init_native_url_utf8();
|
|
1098
1098
|
var { percentEncodeAfterEncoding: percentEncodeAfterEncoding2 } = (init_native_url_utf8(), __toCommonJS(native_url_utf8_exports));
|
|
@@ -1104,7 +1104,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1104
1104
|
defaultPort,
|
|
1105
1105
|
domainParser,
|
|
1106
1106
|
endsInANumber,
|
|
1107
|
-
failure,
|
|
1107
|
+
failure: failure2,
|
|
1108
1108
|
isInvalidURLCodePoint,
|
|
1109
1109
|
isNormalizedWindowsDriveLetterString,
|
|
1110
1110
|
isSpecialScheme,
|
|
@@ -1169,7 +1169,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1169
1169
|
}
|
|
1170
1170
|
if (parts.length > 4) {
|
|
1171
1171
|
validationErrors?.push("IPv4-too-many-parts");
|
|
1172
|
-
return
|
|
1172
|
+
return failure2;
|
|
1173
1173
|
}
|
|
1174
1174
|
if (parts.length < 4) {
|
|
1175
1175
|
validationErrors?.push("IPv4-too-few-parts");
|
|
@@ -1177,9 +1177,9 @@ var require_url_state_machine = __commonJS({
|
|
|
1177
1177
|
const numbers = [];
|
|
1178
1178
|
for (const part of parts) {
|
|
1179
1179
|
const n = parseIPv4Number(part, validationErrors);
|
|
1180
|
-
if (n ===
|
|
1180
|
+
if (n === failure2) {
|
|
1181
1181
|
validationErrors?.push("IPv4-non-numeric-part");
|
|
1182
|
-
return
|
|
1182
|
+
return failure2;
|
|
1183
1183
|
}
|
|
1184
1184
|
numbers.push(n);
|
|
1185
1185
|
}
|
|
@@ -1188,11 +1188,11 @@ var require_url_state_machine = __commonJS({
|
|
|
1188
1188
|
}
|
|
1189
1189
|
for (let i = 0; i < numbers.length - 1; ++i) {
|
|
1190
1190
|
if (numbers[i] > 255) {
|
|
1191
|
-
return
|
|
1191
|
+
return failure2;
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
if (numbers[numbers.length - 1] >= 256 ** (5 - numbers.length)) {
|
|
1195
|
-
return
|
|
1195
|
+
return failure2;
|
|
1196
1196
|
}
|
|
1197
1197
|
let ipv42 = numbers.pop();
|
|
1198
1198
|
let counter = 0;
|
|
@@ -1223,7 +1223,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1223
1223
|
if (input[pointer] === p(":")) {
|
|
1224
1224
|
if (input[pointer + 1] !== p(":")) {
|
|
1225
1225
|
validationErrors?.push("IPv6-invalid-compression");
|
|
1226
|
-
return
|
|
1226
|
+
return failure2;
|
|
1227
1227
|
}
|
|
1228
1228
|
pointer += 2;
|
|
1229
1229
|
++pieceIndex;
|
|
@@ -1232,12 +1232,12 @@ var require_url_state_machine = __commonJS({
|
|
|
1232
1232
|
while (pointer < input.length) {
|
|
1233
1233
|
if (pieceIndex === 8) {
|
|
1234
1234
|
validationErrors?.push("IPv6-too-many-pieces");
|
|
1235
|
-
return
|
|
1235
|
+
return failure2;
|
|
1236
1236
|
}
|
|
1237
1237
|
if (input[pointer] === p(":")) {
|
|
1238
1238
|
if (compress !== null) {
|
|
1239
1239
|
validationErrors?.push("IPv6-multiple-compression");
|
|
1240
|
-
return
|
|
1240
|
+
return failure2;
|
|
1241
1241
|
}
|
|
1242
1242
|
++pointer;
|
|
1243
1243
|
++pieceIndex;
|
|
@@ -1254,12 +1254,12 @@ var require_url_state_machine = __commonJS({
|
|
|
1254
1254
|
if (input[pointer] === p(".")) {
|
|
1255
1255
|
if (length === 0) {
|
|
1256
1256
|
validationErrors?.push("IPv4-in-IPv6-invalid-code-point");
|
|
1257
|
-
return
|
|
1257
|
+
return failure2;
|
|
1258
1258
|
}
|
|
1259
1259
|
pointer -= length;
|
|
1260
1260
|
if (pieceIndex > 6) {
|
|
1261
1261
|
validationErrors?.push("IPv4-in-IPv6-too-many-pieces");
|
|
1262
|
-
return
|
|
1262
|
+
return failure2;
|
|
1263
1263
|
}
|
|
1264
1264
|
let numbersSeen = 0;
|
|
1265
1265
|
while (input[pointer] !== void 0) {
|
|
@@ -1269,12 +1269,12 @@ var require_url_state_machine = __commonJS({
|
|
|
1269
1269
|
++pointer;
|
|
1270
1270
|
} else {
|
|
1271
1271
|
validationErrors?.push("IPv4-in-IPv6-invalid-code-point");
|
|
1272
|
-
return
|
|
1272
|
+
return failure2;
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
if (!infra.isASCIIDigit(input[pointer])) {
|
|
1276
1276
|
validationErrors?.push("IPv4-in-IPv6-invalid-code-point");
|
|
1277
|
-
return
|
|
1277
|
+
return failure2;
|
|
1278
1278
|
}
|
|
1279
1279
|
while (infra.isASCIIDigit(input[pointer])) {
|
|
1280
1280
|
const number3 = parseInt(at(input, pointer), 10);
|
|
@@ -1282,13 +1282,13 @@ var require_url_state_machine = __commonJS({
|
|
|
1282
1282
|
ipv4Piece = number3;
|
|
1283
1283
|
} else if (ipv4Piece === 0) {
|
|
1284
1284
|
validationErrors?.push("IPv4-in-IPv6-invalid-code-point");
|
|
1285
|
-
return
|
|
1285
|
+
return failure2;
|
|
1286
1286
|
} else {
|
|
1287
1287
|
ipv4Piece = ipv4Piece * 10 + number3;
|
|
1288
1288
|
}
|
|
1289
1289
|
if (ipv4Piece > 255) {
|
|
1290
1290
|
validationErrors?.push("IPv4-in-IPv6-out-of-range-part");
|
|
1291
|
-
return
|
|
1291
|
+
return failure2;
|
|
1292
1292
|
}
|
|
1293
1293
|
++pointer;
|
|
1294
1294
|
}
|
|
@@ -1300,18 +1300,18 @@ var require_url_state_machine = __commonJS({
|
|
|
1300
1300
|
}
|
|
1301
1301
|
if (numbersSeen !== 4) {
|
|
1302
1302
|
validationErrors?.push("IPv4-in-IPv6-too-few-parts");
|
|
1303
|
-
return
|
|
1303
|
+
return failure2;
|
|
1304
1304
|
}
|
|
1305
1305
|
break;
|
|
1306
1306
|
} else if (input[pointer] === p(":")) {
|
|
1307
1307
|
++pointer;
|
|
1308
1308
|
if (input[pointer] === void 0) {
|
|
1309
1309
|
validationErrors?.push("IPv6-invalid-code-point");
|
|
1310
|
-
return
|
|
1310
|
+
return failure2;
|
|
1311
1311
|
}
|
|
1312
1312
|
} else if (input[pointer] !== void 0) {
|
|
1313
1313
|
validationErrors?.push("IPv6-invalid-code-point");
|
|
1314
|
-
return
|
|
1314
|
+
return failure2;
|
|
1315
1315
|
}
|
|
1316
1316
|
if (length > 1 && value < 16 ** (length - 1)) {
|
|
1317
1317
|
validationErrors?.push("IPv6-piece-leading-zero");
|
|
@@ -1331,7 +1331,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1331
1331
|
}
|
|
1332
1332
|
} else if (compress === null && pieceIndex !== 8) {
|
|
1333
1333
|
validationErrors?.push("IPv6-too-few-pieces");
|
|
1334
|
-
return
|
|
1334
|
+
return failure2;
|
|
1335
1335
|
}
|
|
1336
1336
|
return address;
|
|
1337
1337
|
}
|
|
@@ -1362,7 +1362,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1362
1362
|
if (input[0] === "[") {
|
|
1363
1363
|
if (input[input.length - 1] !== "]") {
|
|
1364
1364
|
validationErrors?.push("IPv6-unclosed");
|
|
1365
|
-
return
|
|
1365
|
+
return failure2;
|
|
1366
1366
|
}
|
|
1367
1367
|
return parseIPv6(input.substring(1, input.length - 1), validationErrors);
|
|
1368
1368
|
}
|
|
@@ -1374,8 +1374,8 @@ var require_url_state_machine = __commonJS({
|
|
|
1374
1374
|
}
|
|
1375
1375
|
const domain = utf8DecodeWithoutBOM2(percentDecodeString(input));
|
|
1376
1376
|
const asciiDomain = domainParser(domain, validationErrors);
|
|
1377
|
-
if (asciiDomain ===
|
|
1378
|
-
return
|
|
1377
|
+
if (asciiDomain === failure2) {
|
|
1378
|
+
return failure2;
|
|
1379
1379
|
}
|
|
1380
1380
|
if (endsInANumber(asciiDomain)) {
|
|
1381
1381
|
if (!infra.isASCIIString(domain)) {
|
|
@@ -1388,7 +1388,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1388
1388
|
function parseOpaqueHost(input, validationErrors) {
|
|
1389
1389
|
if (containsForbiddenHostCodePoint(input)) {
|
|
1390
1390
|
validationErrors?.push("host-invalid-code-point");
|
|
1391
|
-
return
|
|
1391
|
+
return failure2;
|
|
1392
1392
|
}
|
|
1393
1393
|
validateURLUnits(input, validationErrors);
|
|
1394
1394
|
return utf8PercentEncodeString(input, isC0ControlPercentEncode);
|
|
@@ -1507,7 +1507,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1507
1507
|
const ret = this[`parse ${this.state}`](c, cStr);
|
|
1508
1508
|
if (!ret) {
|
|
1509
1509
|
break;
|
|
1510
|
-
} else if (ret ===
|
|
1510
|
+
} else if (ret === failure2) {
|
|
1511
1511
|
this.failure = true;
|
|
1512
1512
|
break;
|
|
1513
1513
|
}
|
|
@@ -1532,7 +1532,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1532
1532
|
this.state = "no scheme";
|
|
1533
1533
|
--this.pointer;
|
|
1534
1534
|
} else {
|
|
1535
|
-
return
|
|
1535
|
+
return failure2;
|
|
1536
1536
|
}
|
|
1537
1537
|
return true;
|
|
1538
1538
|
};
|
|
@@ -1583,14 +1583,14 @@ var require_url_state_machine = __commonJS({
|
|
|
1583
1583
|
this.state = "no scheme";
|
|
1584
1584
|
this.pointer = -1;
|
|
1585
1585
|
} else {
|
|
1586
|
-
return
|
|
1586
|
+
return failure2;
|
|
1587
1587
|
}
|
|
1588
1588
|
return true;
|
|
1589
1589
|
};
|
|
1590
1590
|
URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
|
|
1591
1591
|
if (this.base === null || hasAnOpaquePath(this.base) && c !== p("#")) {
|
|
1592
1592
|
this.validationErrors?.push("missing-scheme-non-relative-URL");
|
|
1593
|
-
return
|
|
1593
|
+
return failure2;
|
|
1594
1594
|
} else if (hasAnOpaquePath(this.base) && c === p("#")) {
|
|
1595
1595
|
this.url.scheme = this.base.scheme;
|
|
1596
1596
|
this.url.path = this.base.path;
|
|
@@ -1717,7 +1717,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1717
1717
|
} else if (isNaN(c) || c === p("/") || c === p("?") || c === p("#") || isSpecial(this.url) && c === p("\\")) {
|
|
1718
1718
|
if (this.atSignSeen && this.buffer === "") {
|
|
1719
1719
|
this.validationErrors?.push("host-missing");
|
|
1720
|
-
return
|
|
1720
|
+
return failure2;
|
|
1721
1721
|
}
|
|
1722
1722
|
this.pointer -= countSymbols(this.buffer) + 1;
|
|
1723
1723
|
this.buffer = "";
|
|
@@ -1734,14 +1734,14 @@ var require_url_state_machine = __commonJS({
|
|
|
1734
1734
|
} else if (c === p(":") && !this.insideBrackets) {
|
|
1735
1735
|
if (this.buffer === "") {
|
|
1736
1736
|
this.validationErrors?.push("host-missing");
|
|
1737
|
-
return
|
|
1737
|
+
return failure2;
|
|
1738
1738
|
}
|
|
1739
1739
|
if (this.stateOverride === "hostname") {
|
|
1740
|
-
return
|
|
1740
|
+
return failure2;
|
|
1741
1741
|
}
|
|
1742
1742
|
const host = parseHost(this.buffer, this.validationErrors, isNotSpecial(this.url));
|
|
1743
|
-
if (host ===
|
|
1744
|
-
return
|
|
1743
|
+
if (host === failure2) {
|
|
1744
|
+
return failure2;
|
|
1745
1745
|
}
|
|
1746
1746
|
this.url.host = host;
|
|
1747
1747
|
this.buffer = "";
|
|
@@ -1750,13 +1750,13 @@ var require_url_state_machine = __commonJS({
|
|
|
1750
1750
|
--this.pointer;
|
|
1751
1751
|
if (isSpecial(this.url) && this.buffer === "") {
|
|
1752
1752
|
this.validationErrors?.push("host-missing");
|
|
1753
|
-
return
|
|
1753
|
+
return failure2;
|
|
1754
1754
|
} else if (this.stateOverride && this.buffer === "" && (includesCredentials(this.url) || this.url.port !== null)) {
|
|
1755
|
-
return
|
|
1755
|
+
return failure2;
|
|
1756
1756
|
}
|
|
1757
1757
|
const host = parseHost(this.buffer, this.validationErrors, isNotSpecial(this.url));
|
|
1758
|
-
if (host ===
|
|
1759
|
-
return
|
|
1758
|
+
if (host === failure2) {
|
|
1759
|
+
return failure2;
|
|
1760
1760
|
}
|
|
1761
1761
|
this.url.host = host;
|
|
1762
1762
|
this.buffer = "";
|
|
@@ -1782,7 +1782,7 @@ var require_url_state_machine = __commonJS({
|
|
|
1782
1782
|
const port = parseInt(this.buffer, 10);
|
|
1783
1783
|
if (port > 2 ** 16 - 1) {
|
|
1784
1784
|
this.validationErrors?.push("port-out-of-range");
|
|
1785
|
-
return
|
|
1785
|
+
return failure2;
|
|
1786
1786
|
}
|
|
1787
1787
|
this.url.port = port === defaultPort(this.url.scheme) ? null : port;
|
|
1788
1788
|
this.buffer = "";
|
|
@@ -1791,13 +1791,13 @@ var require_url_state_machine = __commonJS({
|
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
1793
|
if (this.stateOverride) {
|
|
1794
|
-
return
|
|
1794
|
+
return failure2;
|
|
1795
1795
|
}
|
|
1796
1796
|
this.state = "path start";
|
|
1797
1797
|
--this.pointer;
|
|
1798
1798
|
} else {
|
|
1799
1799
|
this.validationErrors?.push("port-invalid");
|
|
1800
|
-
return
|
|
1800
|
+
return failure2;
|
|
1801
1801
|
}
|
|
1802
1802
|
return true;
|
|
1803
1803
|
};
|
|
@@ -1873,8 +1873,8 @@ var require_url_state_machine = __commonJS({
|
|
|
1873
1873
|
this.state = "path start";
|
|
1874
1874
|
} else {
|
|
1875
1875
|
let host = parseHost(this.buffer, this.validationErrors, isNotSpecial(this.url));
|
|
1876
|
-
if (host ===
|
|
1877
|
-
return
|
|
1876
|
+
if (host === failure2) {
|
|
1877
|
+
return failure2;
|
|
1878
1878
|
}
|
|
1879
1879
|
if (host === "localhost") {
|
|
1880
1880
|
host = "";
|
|
@@ -2101,8 +2101,8 @@ var require_url_state_machine = __commonJS({
|
|
|
2101
2101
|
module.exports.serializeHost = serializeHost2;
|
|
2102
2102
|
module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
|
|
2103
2103
|
module.exports.hasAnOpaquePath = hasAnOpaquePath;
|
|
2104
|
-
module.exports.serializeInteger = function(
|
|
2105
|
-
return String(
|
|
2104
|
+
module.exports.serializeInteger = function(integer2) {
|
|
2105
|
+
return String(integer2);
|
|
2106
2106
|
};
|
|
2107
2107
|
module.exports.parseURL = function(input, options = {}) {
|
|
2108
2108
|
return module.exports.basicURLParse(input, {
|
|
@@ -2131,79 +2131,7 @@ var init_manifest_types = __esm({
|
|
|
2131
2131
|
}
|
|
2132
2132
|
});
|
|
2133
2133
|
|
|
2134
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2135
|
-
// @__NO_SIDE_EFFECTS__
|
|
2136
|
-
function $constructor(name, initializer2, params) {
|
|
2137
|
-
function init(inst, def) {
|
|
2138
|
-
if (!inst._zod) {
|
|
2139
|
-
Object.defineProperty(inst, "_zod", {
|
|
2140
|
-
value: {
|
|
2141
|
-
def,
|
|
2142
|
-
constr: _,
|
|
2143
|
-
traits: /* @__PURE__ */ new Set()
|
|
2144
|
-
},
|
|
2145
|
-
enumerable: false
|
|
2146
|
-
});
|
|
2147
|
-
}
|
|
2148
|
-
if (inst._zod.traits.has(name)) {
|
|
2149
|
-
return;
|
|
2150
|
-
}
|
|
2151
|
-
inst._zod.traits.add(name);
|
|
2152
|
-
initializer2(inst, def);
|
|
2153
|
-
const proto = _.prototype;
|
|
2154
|
-
const keys = Object.keys(proto);
|
|
2155
|
-
for (let i = 0; i < keys.length; i++) {
|
|
2156
|
-
const k = keys[i];
|
|
2157
|
-
if (!(k in inst)) {
|
|
2158
|
-
inst[k] = proto[k].bind(inst);
|
|
2159
|
-
}
|
|
2160
|
-
}
|
|
2161
|
-
}
|
|
2162
|
-
const Parent = params?.Parent ?? Object;
|
|
2163
|
-
class Definition extends Parent {
|
|
2164
|
-
}
|
|
2165
|
-
Object.defineProperty(Definition, "name", { value: name });
|
|
2166
|
-
function _(def) {
|
|
2167
|
-
var _a3;
|
|
2168
|
-
const inst = params?.Parent ? new Definition() : this;
|
|
2169
|
-
init(inst, def);
|
|
2170
|
-
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2171
|
-
for (const fn of inst._zod.deferred) {
|
|
2172
|
-
fn();
|
|
2173
|
-
}
|
|
2174
|
-
return inst;
|
|
2175
|
-
}
|
|
2176
|
-
Object.defineProperty(_, "init", { value: init });
|
|
2177
|
-
Object.defineProperty(_, Symbol.hasInstance, {
|
|
2178
|
-
value: (inst) => {
|
|
2179
|
-
if (params?.Parent && inst instanceof params.Parent)
|
|
2180
|
-
return true;
|
|
2181
|
-
return inst?._zod?.traits?.has(name);
|
|
2182
|
-
}
|
|
2183
|
-
});
|
|
2184
|
-
Object.defineProperty(_, "name", { value: name });
|
|
2185
|
-
return _;
|
|
2186
|
-
}
|
|
2187
|
-
function config(newConfig) {
|
|
2188
|
-
if (newConfig)
|
|
2189
|
-
Object.assign(globalConfig, newConfig);
|
|
2190
|
-
return globalConfig;
|
|
2191
|
-
}
|
|
2192
|
-
var _a, $ZodAsyncError, globalConfig;
|
|
2193
|
-
var init_core = __esm({
|
|
2194
|
-
"../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js"() {
|
|
2195
|
-
"use strict";
|
|
2196
|
-
$ZodAsyncError = class extends Error {
|
|
2197
|
-
constructor() {
|
|
2198
|
-
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
2199
|
-
}
|
|
2200
|
-
};
|
|
2201
|
-
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
2202
|
-
globalConfig = globalThis.__zod_globalConfig;
|
|
2203
|
-
}
|
|
2204
|
-
});
|
|
2205
|
-
|
|
2206
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
2134
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
2207
2135
|
function getEnumValues(entries) {
|
|
2208
2136
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
2209
2137
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -2215,17 +2143,7 @@ function jsonStringifyReplacer(_, value) {
|
|
|
2215
2143
|
return value;
|
|
2216
2144
|
}
|
|
2217
2145
|
function cached(getter) {
|
|
2218
|
-
|
|
2219
|
-
return {
|
|
2220
|
-
get value() {
|
|
2221
|
-
if (!set) {
|
|
2222
|
-
const value = getter();
|
|
2223
|
-
Object.defineProperty(this, "value", { value });
|
|
2224
|
-
return value;
|
|
2225
|
-
}
|
|
2226
|
-
throw new Error("cached value already set");
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2146
|
+
return new Cached(getter);
|
|
2229
2147
|
}
|
|
2230
2148
|
function nullish(input) {
|
|
2231
2149
|
return input === null || input === void 0;
|
|
@@ -2235,25 +2153,11 @@ function cleanRegex(source) {
|
|
|
2235
2153
|
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
2236
2154
|
return source.slice(start, end);
|
|
2237
2155
|
}
|
|
2238
|
-
function
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
return void 0;
|
|
2244
|
-
}
|
|
2245
|
-
if (value === void 0) {
|
|
2246
|
-
value = EVALUATING;
|
|
2247
|
-
value = getter();
|
|
2248
|
-
}
|
|
2249
|
-
return value;
|
|
2250
|
-
},
|
|
2251
|
-
set(v) {
|
|
2252
|
-
Object.defineProperty(object, key, {
|
|
2253
|
-
value: v
|
|
2254
|
-
// configurable: true,
|
|
2255
|
-
});
|
|
2256
|
-
},
|
|
2156
|
+
function assignProp(target, prop, value) {
|
|
2157
|
+
Object.defineProperty(target, prop, {
|
|
2158
|
+
value,
|
|
2159
|
+
writable: true,
|
|
2160
|
+
enumerable: true,
|
|
2257
2161
|
configurable: true
|
|
2258
2162
|
});
|
|
2259
2163
|
}
|
|
@@ -2303,7 +2207,7 @@ function normalizeParams(_params) {
|
|
|
2303
2207
|
}
|
|
2304
2208
|
function optionalKeys(shape) {
|
|
2305
2209
|
return Object.keys(shape).filter((k) => {
|
|
2306
|
-
return shape[k]._zod.optin
|
|
2210
|
+
return shape[k]._zod.optin !== void 0 && shape[k]._zod.optout === "optional";
|
|
2307
2211
|
});
|
|
2308
2212
|
}
|
|
2309
2213
|
function aborted(x, startIndex = 0) {
|
|
@@ -2337,15 +2241,60 @@ function prefixIssues(path, issues) {
|
|
|
2337
2241
|
function unwrapMessage(message) {
|
|
2338
2242
|
return typeof message === "string" ? message : message?.message;
|
|
2339
2243
|
}
|
|
2244
|
+
function sizeCaps(defChecks) {
|
|
2245
|
+
const caps = [];
|
|
2246
|
+
for (const ch of defChecks ?? []) {
|
|
2247
|
+
const d = ch._zod.def;
|
|
2248
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
2249
|
+
break;
|
|
2250
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
2251
|
+
if (max >= 0)
|
|
2252
|
+
caps.push([max, ch]);
|
|
2253
|
+
}
|
|
2254
|
+
return caps;
|
|
2255
|
+
}
|
|
2256
|
+
function attachSchema(issues, start, inst) {
|
|
2257
|
+
var _a3;
|
|
2258
|
+
for (let i = start; i < issues.length; i++) {
|
|
2259
|
+
(_a3 = issues[i]).schema ?? (_a3.schema = inst);
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2340
2262
|
function finalizeIssue(iss, ctx, config2) {
|
|
2341
|
-
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2344
|
-
|
|
2263
|
+
var _a3;
|
|
2264
|
+
const traits = iss.inst?._zod?.traits;
|
|
2265
|
+
if (traits?.has("$ZodType")) {
|
|
2266
|
+
if (traits.has("$ZodCheck"))
|
|
2267
|
+
(_a3 = iss).schema ?? (_a3.schema = iss.inst);
|
|
2268
|
+
else
|
|
2269
|
+
iss.schema = iss.inst;
|
|
2270
|
+
}
|
|
2271
|
+
const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : void 0;
|
|
2272
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
2273
|
+
const full = {};
|
|
2274
|
+
for (const k of Object.keys(iss)) {
|
|
2275
|
+
if (k === "inst" || k === "schema" || k === "continue" || k === "input" || k === "__proto__")
|
|
2276
|
+
continue;
|
|
2277
|
+
full[k] = iss[k];
|
|
2278
|
+
}
|
|
2279
|
+
full.path ?? (full.path = []);
|
|
2280
|
+
full.message = message;
|
|
2345
2281
|
if (ctx?.reportInput) {
|
|
2346
|
-
|
|
2282
|
+
full.input = iss.input;
|
|
2347
2283
|
}
|
|
2348
|
-
return
|
|
2284
|
+
return full;
|
|
2285
|
+
}
|
|
2286
|
+
function codePointLength(str) {
|
|
2287
|
+
const units = str.length;
|
|
2288
|
+
if (!highSurrogate.test(str))
|
|
2289
|
+
return units;
|
|
2290
|
+
let count = units;
|
|
2291
|
+
for (let i = 0; i < units - 1; i++) {
|
|
2292
|
+
if ((str.charCodeAt(i) & 64512) === 55296 && (str.charCodeAt(i + 1) & 64512) === 56320) {
|
|
2293
|
+
count--;
|
|
2294
|
+
i++;
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
return count;
|
|
2349
2298
|
}
|
|
2350
2299
|
function getLengthableOrigin(input) {
|
|
2351
2300
|
if (Array.isArray(input))
|
|
@@ -2366,85 +2315,349 @@ function issue(...args) {
|
|
|
2366
2315
|
}
|
|
2367
2316
|
return { ...iss };
|
|
2368
2317
|
}
|
|
2369
|
-
|
|
2318
|
+
function members(proto, table) {
|
|
2319
|
+
for (const key in table) {
|
|
2320
|
+
const desc = Object.getOwnPropertyDescriptor(table, key);
|
|
2321
|
+
if (desc.get)
|
|
2322
|
+
Object.defineProperty(proto, key, { ...desc, enumerable: false });
|
|
2323
|
+
else
|
|
2324
|
+
defineBound(proto, key, desc.value);
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
function own(inst, key, value, enumerable = true) {
|
|
2328
|
+
Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value });
|
|
2329
|
+
return value;
|
|
2330
|
+
}
|
|
2331
|
+
function hide(inst, key, value) {
|
|
2332
|
+
return own(inst, key, value, false);
|
|
2333
|
+
}
|
|
2334
|
+
function defineBound(proto, key, fn) {
|
|
2335
|
+
Object.defineProperty(proto, key, {
|
|
2336
|
+
configurable: true,
|
|
2337
|
+
get() {
|
|
2338
|
+
return this == null ? fn : own(this, key, fn.bind(this));
|
|
2339
|
+
},
|
|
2340
|
+
set(value) {
|
|
2341
|
+
own(this, key, value);
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2345
|
+
function claim(inst, sentinel) {
|
|
2346
|
+
const proto = Object.getPrototypeOf(inst);
|
|
2347
|
+
return sentinel in proto ? void 0 : proto;
|
|
2348
|
+
}
|
|
2349
|
+
function defineLazyInternal(inst, key, compute) {
|
|
2350
|
+
const proto = Object.getPrototypeOf(inst._zod);
|
|
2351
|
+
if (key in proto && installing !== inst._zod) {
|
|
2352
|
+
installing = void 0;
|
|
2353
|
+
return;
|
|
2354
|
+
}
|
|
2355
|
+
installing = inst._zod;
|
|
2356
|
+
Object.defineProperty(proto, key, {
|
|
2357
|
+
configurable: true,
|
|
2358
|
+
get() {
|
|
2359
|
+
Object.defineProperty(this, key, breaker);
|
|
2360
|
+
const outer = broke;
|
|
2361
|
+
broke = false;
|
|
2362
|
+
try {
|
|
2363
|
+
const value = compute(this);
|
|
2364
|
+
if (broke)
|
|
2365
|
+
delete this[key];
|
|
2366
|
+
else
|
|
2367
|
+
Object.defineProperty(this, key, { configurable: true, writable: true, value });
|
|
2368
|
+
broke = broke || outer;
|
|
2369
|
+
return value;
|
|
2370
|
+
} catch (err) {
|
|
2371
|
+
delete this[key];
|
|
2372
|
+
broke = broke || outer;
|
|
2373
|
+
throw err;
|
|
2374
|
+
}
|
|
2375
|
+
},
|
|
2376
|
+
set(value) {
|
|
2377
|
+
Object.defineProperty(this, key, { configurable: true, writable: true, value });
|
|
2378
|
+
}
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
function installLazyProp(inst, key, make, enumerable) {
|
|
2382
|
+
const proto = claim(inst, key);
|
|
2383
|
+
if (!proto)
|
|
2384
|
+
return;
|
|
2385
|
+
Object.defineProperty(proto, key, {
|
|
2386
|
+
configurable: true,
|
|
2387
|
+
get() {
|
|
2388
|
+
const desc = { configurable: true, writable: true, enumerable, value: void 0 };
|
|
2389
|
+
Object.defineProperty(this, key, desc);
|
|
2390
|
+
desc.value = make(this);
|
|
2391
|
+
Object.defineProperty(this, key, desc);
|
|
2392
|
+
return desc.value;
|
|
2393
|
+
},
|
|
2394
|
+
set(value) {
|
|
2395
|
+
Object.defineProperty(this, key, { configurable: true, writable: true, enumerable, value });
|
|
2396
|
+
}
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
var Cached, captureStackTrace, propertyKeyTypes, highSurrogate, installing, broke, breaker;
|
|
2370
2400
|
var init_util = __esm({
|
|
2371
|
-
"../../node_modules/.pnpm/zod@4.
|
|
2401
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js"() {
|
|
2372
2402
|
"use strict";
|
|
2373
|
-
|
|
2403
|
+
Cached = class {
|
|
2404
|
+
constructor(getter) {
|
|
2405
|
+
this._getter = getter;
|
|
2406
|
+
this._value = void 0;
|
|
2407
|
+
}
|
|
2408
|
+
get value() {
|
|
2409
|
+
const getter = this._getter;
|
|
2410
|
+
if (getter !== void 0) {
|
|
2411
|
+
this._value = getter();
|
|
2412
|
+
this._getter = void 0;
|
|
2413
|
+
}
|
|
2414
|
+
return this._value;
|
|
2415
|
+
}
|
|
2416
|
+
};
|
|
2374
2417
|
captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
2375
2418
|
};
|
|
2376
2419
|
propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2420
|
+
highSurrogate = /[\uD800-\uDBFF]/;
|
|
2421
|
+
broke = false;
|
|
2422
|
+
breaker = {
|
|
2423
|
+
configurable: true,
|
|
2424
|
+
get() {
|
|
2425
|
+
broke = true;
|
|
2426
|
+
return void 0;
|
|
2427
|
+
}
|
|
2428
|
+
};
|
|
2429
|
+
}
|
|
2430
|
+
});
|
|
2431
|
+
|
|
2432
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
2433
|
+
function newError(Definition) {
|
|
2434
|
+
const E = _E;
|
|
2435
|
+
if (E) {
|
|
2436
|
+
const saved = E.stackTraceLimit;
|
|
2437
|
+
if (typeof saved === "number") {
|
|
2438
|
+
try {
|
|
2439
|
+
E.stackTraceLimit = 0;
|
|
2440
|
+
} catch {
|
|
2441
|
+
_E = null;
|
|
2442
|
+
return new Definition();
|
|
2443
|
+
}
|
|
2444
|
+
try {
|
|
2445
|
+
return new Definition();
|
|
2446
|
+
} finally {
|
|
2447
|
+
E.stackTraceLimit = saved;
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
return new Definition();
|
|
2452
|
+
}
|
|
2453
|
+
// @__NO_SIDE_EFFECTS__
|
|
2454
|
+
function $constructor(name, initializer2, proto, params) {
|
|
2455
|
+
const zodProto = {};
|
|
2456
|
+
function Internals(def) {
|
|
2457
|
+
this.def = def;
|
|
2458
|
+
this.constr = _;
|
|
2459
|
+
this.traits = /* @__PURE__ */ new Set();
|
|
2460
|
+
}
|
|
2461
|
+
Internals.prototype = zodProto;
|
|
2462
|
+
const protoMembers = proto;
|
|
2463
|
+
const initialized = protoMembers && /* @__PURE__ */ new WeakSet();
|
|
2464
|
+
function init(inst, def) {
|
|
2465
|
+
if (!inst._zod) {
|
|
2466
|
+
_zodDesc.value = new Internals(def);
|
|
2467
|
+
try {
|
|
2468
|
+
Object.defineProperty(inst, "_zod", _zodDesc);
|
|
2469
|
+
} finally {
|
|
2470
|
+
_zodDesc.value = void 0;
|
|
2471
|
+
}
|
|
2472
|
+
} else if (inst._zod.traits.has(name)) {
|
|
2473
|
+
return;
|
|
2474
|
+
}
|
|
2475
|
+
inst._zod.traits.add(name);
|
|
2476
|
+
initializer2(inst, def);
|
|
2477
|
+
if (initialized) {
|
|
2478
|
+
const own2 = Object.getPrototypeOf(inst);
|
|
2479
|
+
const ctorProto = inst._zod.constr.prototype;
|
|
2480
|
+
let up = own2;
|
|
2481
|
+
while (up && up !== ctorProto)
|
|
2482
|
+
up = Object.getPrototypeOf(up);
|
|
2483
|
+
const target = up ?? own2;
|
|
2484
|
+
if (!initialized.has(target)) {
|
|
2485
|
+
initialized.add(target);
|
|
2486
|
+
members(target, protoMembers);
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
const proto2 = _.prototype;
|
|
2490
|
+
for (const k in proto2) {
|
|
2491
|
+
if (!Object.prototype.hasOwnProperty.call(proto2, k))
|
|
2492
|
+
continue;
|
|
2493
|
+
if (!(k in inst)) {
|
|
2494
|
+
inst[k] = proto2[k].bind(inst);
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
const Parent = params?.Parent ?? Object;
|
|
2499
|
+
class Definition extends Parent {
|
|
2500
|
+
}
|
|
2501
|
+
Object.defineProperty(Definition, "name", { value: name });
|
|
2502
|
+
function _(def) {
|
|
2503
|
+
const inst = params?.Parent ? newError(Definition) : this;
|
|
2504
|
+
init(inst, def);
|
|
2505
|
+
const deferred = inst._zod.deferred;
|
|
2506
|
+
if (deferred) {
|
|
2507
|
+
for (const fn of deferred) {
|
|
2508
|
+
fn();
|
|
2509
|
+
}
|
|
2510
|
+
inst._zod.deferred = void 0;
|
|
2511
|
+
}
|
|
2512
|
+
const pp = globalThis.__zod_globalConfig?.postProcessor;
|
|
2513
|
+
if (pp)
|
|
2514
|
+
pp(inst);
|
|
2515
|
+
return inst;
|
|
2516
|
+
}
|
|
2517
|
+
Object.defineProperty(_, "init", { value: init });
|
|
2518
|
+
Object.defineProperty(_, Symbol.hasInstance, {
|
|
2519
|
+
value: (inst) => {
|
|
2520
|
+
if (params?.Parent && inst instanceof params.Parent)
|
|
2521
|
+
return true;
|
|
2522
|
+
return inst?._zod?.traits?.has(name);
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
Object.defineProperty(_, "name", { value: name });
|
|
2526
|
+
return _;
|
|
2527
|
+
}
|
|
2528
|
+
function config(newConfig) {
|
|
2529
|
+
if (newConfig)
|
|
2530
|
+
Object.assign(globalConfig, newConfig);
|
|
2531
|
+
return globalConfig;
|
|
2532
|
+
}
|
|
2533
|
+
var _a, _zodDesc, _E, $ZodAsyncError, globalConfig;
|
|
2534
|
+
var init_core = __esm({
|
|
2535
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js"() {
|
|
2536
|
+
"use strict";
|
|
2537
|
+
init_util();
|
|
2538
|
+
_zodDesc = { value: void 0, enumerable: false };
|
|
2539
|
+
_E = "captureStackTrace" in Error ? Error : null;
|
|
2540
|
+
$ZodAsyncError = class extends Error {
|
|
2541
|
+
constructor() {
|
|
2542
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
2543
|
+
}
|
|
2383
2544
|
};
|
|
2545
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
2546
|
+
globalConfig = globalThis.__zod_globalConfig;
|
|
2384
2547
|
}
|
|
2385
2548
|
});
|
|
2386
2549
|
|
|
2387
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2388
|
-
|
|
2550
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
2551
|
+
function _getMessage() {
|
|
2552
|
+
const internals = this._zod;
|
|
2553
|
+
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
2554
|
+
return internals.message;
|
|
2555
|
+
}
|
|
2556
|
+
function _setMessage(value) {
|
|
2557
|
+
this._zod.message = value;
|
|
2558
|
+
}
|
|
2559
|
+
var _messageDesc, _issuesDesc, _installedToString, initializer, $ZodError, $ZodRealError;
|
|
2389
2560
|
var init_errors = __esm({
|
|
2390
|
-
"../../node_modules/.pnpm/zod@4.
|
|
2561
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js"() {
|
|
2391
2562
|
"use strict";
|
|
2392
2563
|
init_core();
|
|
2393
2564
|
init_util();
|
|
2565
|
+
_messageDesc = {
|
|
2566
|
+
get: _getMessage,
|
|
2567
|
+
set: _setMessage,
|
|
2568
|
+
enumerable: true,
|
|
2569
|
+
configurable: true
|
|
2570
|
+
};
|
|
2571
|
+
_issuesDesc = { value: void 0, enumerable: false };
|
|
2572
|
+
_installedToString = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
2394
2573
|
initializer = (inst, def) => {
|
|
2395
2574
|
inst.name = "$ZodError";
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
Object.
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2575
|
+
_issuesDesc.value = def;
|
|
2576
|
+
Object.defineProperty(inst, "issues", _issuesDesc);
|
|
2577
|
+
_issuesDesc.value = void 0;
|
|
2578
|
+
Object.defineProperty(inst, "message", _messageDesc);
|
|
2579
|
+
const proto = Object.getPrototypeOf(inst);
|
|
2580
|
+
if (!_installedToString.has(proto)) {
|
|
2581
|
+
_installedToString.add(proto);
|
|
2582
|
+
Object.defineProperty(proto, "toString", {
|
|
2583
|
+
configurable: true,
|
|
2584
|
+
enumerable: false,
|
|
2585
|
+
get() {
|
|
2586
|
+
const value = () => this.message;
|
|
2587
|
+
Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
|
|
2588
|
+
return value;
|
|
2589
|
+
},
|
|
2590
|
+
set(value) {
|
|
2591
|
+
Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
|
|
2592
|
+
}
|
|
2593
|
+
});
|
|
2594
|
+
}
|
|
2409
2595
|
};
|
|
2410
2596
|
$ZodError = $constructor("$ZodError", initializer);
|
|
2411
|
-
$ZodRealError = $constructor("$ZodError", initializer,
|
|
2597
|
+
$ZodRealError = $constructor("$ZodError", initializer, void 0, {
|
|
2598
|
+
Parent: Error
|
|
2599
|
+
});
|
|
2412
2600
|
}
|
|
2413
2601
|
});
|
|
2414
2602
|
|
|
2415
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2603
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
2604
|
+
function failure(Err, issues, ctx) {
|
|
2605
|
+
let error2;
|
|
2606
|
+
return {
|
|
2607
|
+
success: false,
|
|
2608
|
+
get error() {
|
|
2609
|
+
if (!error2) {
|
|
2610
|
+
error2 = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
2611
|
+
issues = void 0;
|
|
2612
|
+
ctx = void 0;
|
|
2613
|
+
}
|
|
2614
|
+
return error2;
|
|
2615
|
+
},
|
|
2616
|
+
set error(e) {
|
|
2617
|
+
error2 = e;
|
|
2618
|
+
issues = void 0;
|
|
2619
|
+
ctx = void 0;
|
|
2620
|
+
}
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2416
2623
|
var _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync;
|
|
2417
2624
|
var init_parse = __esm({
|
|
2418
|
-
"../../node_modules/.pnpm/zod@4.
|
|
2625
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js"() {
|
|
2419
2626
|
"use strict";
|
|
2420
2627
|
init_core();
|
|
2421
2628
|
init_errors();
|
|
2422
2629
|
init_util();
|
|
2423
|
-
_parse = (_Err) =>
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2630
|
+
_parse = (_Err) => {
|
|
2631
|
+
const fn = (schema2, value, _ctx, _params) => {
|
|
2632
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
2633
|
+
const result = schema2._zod.run({ value, issues: [] }, ctx);
|
|
2634
|
+
if (result instanceof Promise) {
|
|
2635
|
+
throw new $ZodAsyncError();
|
|
2636
|
+
}
|
|
2637
|
+
if (result.issues.length) {
|
|
2638
|
+
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
2639
|
+
captureStackTrace(e, _params?.callee ?? fn);
|
|
2640
|
+
throw e;
|
|
2641
|
+
}
|
|
2642
|
+
return result.value;
|
|
2643
|
+
};
|
|
2644
|
+
return fn;
|
|
2435
2645
|
};
|
|
2436
2646
|
parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
2437
|
-
_parseAsync = (_Err) =>
|
|
2438
|
-
const
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
result
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2647
|
+
_parseAsync = (_Err) => {
|
|
2648
|
+
const fn = async (schema2, value, _ctx, params) => {
|
|
2649
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
2650
|
+
let result = schema2._zod.run({ value, issues: [] }, ctx);
|
|
2651
|
+
if (result instanceof Promise)
|
|
2652
|
+
result = await result;
|
|
2653
|
+
if (result.issues.length) {
|
|
2654
|
+
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
2655
|
+
captureStackTrace(e, params?.callee ?? fn);
|
|
2656
|
+
throw e;
|
|
2657
|
+
}
|
|
2658
|
+
return result.value;
|
|
2659
|
+
};
|
|
2660
|
+
return fn;
|
|
2448
2661
|
};
|
|
2449
2662
|
parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
2450
2663
|
_safeParse = (_Err) => (schema2, value, _ctx) => {
|
|
@@ -2453,10 +2666,7 @@ var init_parse = __esm({
|
|
|
2453
2666
|
if (result instanceof Promise) {
|
|
2454
2667
|
throw new $ZodAsyncError();
|
|
2455
2668
|
}
|
|
2456
|
-
return result.issues.length ? {
|
|
2457
|
-
success: false,
|
|
2458
|
-
error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
2459
|
-
} : { success: true, data: result.value };
|
|
2669
|
+
return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value };
|
|
2460
2670
|
};
|
|
2461
2671
|
safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
2462
2672
|
_safeParseAsync = (_Err) => async (schema2, value, _ctx) => {
|
|
@@ -2464,34 +2674,26 @@ var init_parse = __esm({
|
|
|
2464
2674
|
let result = schema2._zod.run({ value, issues: [] }, ctx);
|
|
2465
2675
|
if (result instanceof Promise)
|
|
2466
2676
|
result = await result;
|
|
2467
|
-
return result.issues.length ? {
|
|
2468
|
-
success: false,
|
|
2469
|
-
error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
2470
|
-
} : { success: true, data: result.value };
|
|
2677
|
+
return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value };
|
|
2471
2678
|
};
|
|
2472
2679
|
safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
2473
2680
|
}
|
|
2474
2681
|
});
|
|
2475
2682
|
|
|
2476
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2477
|
-
var
|
|
2683
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js
|
|
2684
|
+
var anyString, number;
|
|
2478
2685
|
var init_regexes = __esm({
|
|
2479
|
-
"../../node_modules/.pnpm/zod@4.
|
|
2686
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js"() {
|
|
2480
2687
|
"use strict";
|
|
2481
|
-
|
|
2482
|
-
date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
2483
|
-
string = (params) => {
|
|
2484
|
-
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
2485
|
-
return new RegExp(`^${regex}$`);
|
|
2486
|
-
};
|
|
2688
|
+
anyString = /^[\s\S]{0,}$/;
|
|
2487
2689
|
number = /^-?\d+(?:\.\d+)?$/;
|
|
2488
2690
|
}
|
|
2489
2691
|
});
|
|
2490
2692
|
|
|
2491
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2492
|
-
var $ZodCheck, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckStringFormat, $ZodCheckRegex;
|
|
2693
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js
|
|
2694
|
+
var $ZodCheck, _whenHasLength, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckStringFormat, $ZodCheckRegex;
|
|
2493
2695
|
var init_checks = __esm({
|
|
2494
|
-
"../../node_modules/.pnpm/zod@4.
|
|
2696
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js"() {
|
|
2495
2697
|
"use strict";
|
|
2496
2698
|
init_core();
|
|
2497
2699
|
init_util();
|
|
@@ -2501,6 +2703,10 @@ var init_checks = __esm({
|
|
|
2501
2703
|
inst._zod.def = def;
|
|
2502
2704
|
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
2503
2705
|
});
|
|
2706
|
+
_whenHasLength = (payload) => {
|
|
2707
|
+
const val = payload.value;
|
|
2708
|
+
return !nullish(val) && val.length !== void 0;
|
|
2709
|
+
};
|
|
2504
2710
|
numericOriginMap = {
|
|
2505
2711
|
number: "number",
|
|
2506
2712
|
bigint: "bigint",
|
|
@@ -2509,22 +2715,12 @@ var init_checks = __esm({
|
|
|
2509
2715
|
$ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
2510
2716
|
$ZodCheck.init(inst, def);
|
|
2511
2717
|
const origin = numericOriginMap[typeof def.value];
|
|
2512
|
-
inst._zod.onattach.push((inst2) => {
|
|
2513
|
-
const bag = inst2._zod.bag;
|
|
2514
|
-
const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
2515
|
-
if (def.value < curr) {
|
|
2516
|
-
if (def.inclusive)
|
|
2517
|
-
bag.maximum = def.value;
|
|
2518
|
-
else
|
|
2519
|
-
bag.exclusiveMaximum = def.value;
|
|
2520
|
-
}
|
|
2521
|
-
});
|
|
2522
2718
|
inst._zod.check = (payload) => {
|
|
2523
2719
|
if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {
|
|
2524
2720
|
return;
|
|
2525
2721
|
}
|
|
2526
2722
|
payload.issues.push({
|
|
2527
|
-
origin,
|
|
2723
|
+
origin: numericOriginMap[typeof payload.value] ?? origin,
|
|
2528
2724
|
code: "too_big",
|
|
2529
2725
|
maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
2530
2726
|
input: payload.value,
|
|
@@ -2537,22 +2733,12 @@ var init_checks = __esm({
|
|
|
2537
2733
|
$ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
2538
2734
|
$ZodCheck.init(inst, def);
|
|
2539
2735
|
const origin = numericOriginMap[typeof def.value];
|
|
2540
|
-
inst._zod.onattach.push((inst2) => {
|
|
2541
|
-
const bag = inst2._zod.bag;
|
|
2542
|
-
const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
2543
|
-
if (def.value > curr) {
|
|
2544
|
-
if (def.inclusive)
|
|
2545
|
-
bag.minimum = def.value;
|
|
2546
|
-
else
|
|
2547
|
-
bag.exclusiveMinimum = def.value;
|
|
2548
|
-
}
|
|
2549
|
-
});
|
|
2550
2736
|
inst._zod.check = (payload) => {
|
|
2551
2737
|
if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {
|
|
2552
2738
|
return;
|
|
2553
2739
|
}
|
|
2554
2740
|
payload.issues.push({
|
|
2555
|
-
origin,
|
|
2741
|
+
origin: numericOriginMap[typeof payload.value] ?? origin,
|
|
2556
2742
|
code: "too_small",
|
|
2557
2743
|
minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
2558
2744
|
input: payload.value,
|
|
@@ -2565,18 +2751,11 @@ var init_checks = __esm({
|
|
|
2565
2751
|
$ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2566
2752
|
var _a3;
|
|
2567
2753
|
$ZodCheck.init(inst, def);
|
|
2568
|
-
(_a3 = inst._zod.def).when ?? (_a3.when =
|
|
2569
|
-
const val = payload.value;
|
|
2570
|
-
return !nullish(val) && val.length !== void 0;
|
|
2571
|
-
});
|
|
2572
|
-
inst._zod.onattach.push((inst2) => {
|
|
2573
|
-
const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
2574
|
-
if (def.maximum < curr)
|
|
2575
|
-
inst2._zod.bag.maximum = def.maximum;
|
|
2576
|
-
});
|
|
2754
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = _whenHasLength);
|
|
2577
2755
|
inst._zod.check = (payload) => {
|
|
2578
2756
|
const input = payload.value;
|
|
2579
|
-
const
|
|
2757
|
+
const units = input.length;
|
|
2758
|
+
const length = typeof input === "string" && units > def.maximum ? codePointLength(input) : units;
|
|
2580
2759
|
if (length <= def.maximum)
|
|
2581
2760
|
return;
|
|
2582
2761
|
const origin = getLengthableOrigin(input);
|
|
@@ -2594,18 +2773,11 @@ var init_checks = __esm({
|
|
|
2594
2773
|
$ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2595
2774
|
var _a3;
|
|
2596
2775
|
$ZodCheck.init(inst, def);
|
|
2597
|
-
(_a3 = inst._zod.def).when ?? (_a3.when =
|
|
2598
|
-
const val = payload.value;
|
|
2599
|
-
return !nullish(val) && val.length !== void 0;
|
|
2600
|
-
});
|
|
2601
|
-
inst._zod.onattach.push((inst2) => {
|
|
2602
|
-
const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
2603
|
-
if (def.minimum > curr)
|
|
2604
|
-
inst2._zod.bag.minimum = def.minimum;
|
|
2605
|
-
});
|
|
2776
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = _whenHasLength);
|
|
2606
2777
|
inst._zod.check = (payload) => {
|
|
2607
2778
|
const input = payload.value;
|
|
2608
|
-
const
|
|
2779
|
+
const units = input.length;
|
|
2780
|
+
const length = typeof input === "string" && units >= def.minimum && units < def.minimum * 2 ? codePointLength(input) : units;
|
|
2609
2781
|
if (length >= def.minimum)
|
|
2610
2782
|
return;
|
|
2611
2783
|
const origin = getLengthableOrigin(input);
|
|
@@ -2623,14 +2795,6 @@ var init_checks = __esm({
|
|
|
2623
2795
|
$ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2624
2796
|
var _a3, _b;
|
|
2625
2797
|
$ZodCheck.init(inst, def);
|
|
2626
|
-
inst._zod.onattach.push((inst2) => {
|
|
2627
|
-
const bag = inst2._zod.bag;
|
|
2628
|
-
bag.format = def.format;
|
|
2629
|
-
if (def.pattern) {
|
|
2630
|
-
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
2631
|
-
bag.patterns.add(def.pattern);
|
|
2632
|
-
}
|
|
2633
|
-
});
|
|
2634
2798
|
if (def.pattern)
|
|
2635
2799
|
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2636
2800
|
def.pattern.lastIndex = 0;
|
|
@@ -2670,42 +2834,88 @@ var init_checks = __esm({
|
|
|
2670
2834
|
}
|
|
2671
2835
|
});
|
|
2672
2836
|
|
|
2673
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2837
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js
|
|
2674
2838
|
var init_doc = __esm({
|
|
2675
|
-
"../../node_modules/.pnpm/zod@4.
|
|
2839
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js"() {
|
|
2676
2840
|
"use strict";
|
|
2677
2841
|
}
|
|
2678
2842
|
});
|
|
2679
2843
|
|
|
2680
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2844
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js
|
|
2681
2845
|
var version;
|
|
2682
2846
|
var init_versions = __esm({
|
|
2683
|
-
"../../node_modules/.pnpm/zod@4.
|
|
2847
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js"() {
|
|
2684
2848
|
"use strict";
|
|
2685
2849
|
version = {
|
|
2686
2850
|
major: 4,
|
|
2687
|
-
minor:
|
|
2688
|
-
patch:
|
|
2851
|
+
minor: 6,
|
|
2852
|
+
patch: 7
|
|
2689
2853
|
};
|
|
2690
2854
|
}
|
|
2691
2855
|
});
|
|
2692
2856
|
|
|
2693
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
2857
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js
|
|
2858
|
+
async function validateAsync(inst, value) {
|
|
2859
|
+
const ctx = { async: true };
|
|
2860
|
+
return toStandardResult(await inst._zod.run({ value, issues: [] }, ctx), ctx);
|
|
2861
|
+
}
|
|
2862
|
+
function standardProps(inst) {
|
|
2863
|
+
return {
|
|
2864
|
+
validate: (value) => {
|
|
2865
|
+
const ctx = { async: false };
|
|
2866
|
+
try {
|
|
2867
|
+
const r = inst._zod.run({ value, issues: [] }, ctx);
|
|
2868
|
+
if (!(r instanceof Promise))
|
|
2869
|
+
return toStandardResult(r, ctx);
|
|
2870
|
+
} catch (_) {
|
|
2871
|
+
}
|
|
2872
|
+
return validateAsync(inst, value);
|
|
2873
|
+
},
|
|
2874
|
+
vendor: "zod",
|
|
2875
|
+
version: 1
|
|
2876
|
+
};
|
|
2877
|
+
}
|
|
2878
|
+
function capSize(inst, size) {
|
|
2879
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
2880
|
+
if (!caps.length)
|
|
2881
|
+
return;
|
|
2882
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
2883
|
+
const parse2 = inst._zod.parse;
|
|
2884
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2885
|
+
const n = size(payload.value);
|
|
2886
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
2887
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
2888
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
2889
|
+
const start = payload.issues.length;
|
|
2890
|
+
ch._zod.check(payload);
|
|
2891
|
+
payload.issues[start].continue = false;
|
|
2892
|
+
attachSchema(payload.issues, start, inst);
|
|
2893
|
+
return payload;
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
return parse2(payload, ctx);
|
|
2898
|
+
};
|
|
2899
|
+
}
|
|
2694
2900
|
function handleArrayResult(result, final, index) {
|
|
2695
2901
|
if (result.issues.length) {
|
|
2696
2902
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
2697
2903
|
}
|
|
2698
2904
|
final.value[index] = result.value;
|
|
2699
2905
|
}
|
|
2700
|
-
function handlePropertyResult(result, final, key, input,
|
|
2906
|
+
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
2701
2907
|
const isPresent = key in input;
|
|
2908
|
+
const isOptionalOut = optout === "optional";
|
|
2909
|
+
if (!isPresent && isOptionalOut && optin === "optional") {
|
|
2910
|
+
return;
|
|
2911
|
+
}
|
|
2702
2912
|
if (result.issues.length) {
|
|
2703
|
-
if (
|
|
2913
|
+
if (optin !== void 0 && isOptionalOut && !isPresent) {
|
|
2704
2914
|
return;
|
|
2705
2915
|
}
|
|
2706
2916
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
2707
2917
|
}
|
|
2708
|
-
if (!isPresent &&
|
|
2918
|
+
if (!isPresent && optin === void 0) {
|
|
2709
2919
|
if (!result.issues.length) {
|
|
2710
2920
|
final.issues.push({
|
|
2711
2921
|
code: "invalid_type",
|
|
@@ -2717,7 +2927,7 @@ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptiona
|
|
|
2717
2927
|
return;
|
|
2718
2928
|
}
|
|
2719
2929
|
if (result.value === void 0) {
|
|
2720
|
-
if (isPresent) {
|
|
2930
|
+
if (isPresent || optin === "defaulted" && !isOptionalOut) {
|
|
2721
2931
|
final.value[key] = void 0;
|
|
2722
2932
|
}
|
|
2723
2933
|
} else {
|
|
@@ -2726,41 +2936,55 @@ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptiona
|
|
|
2726
2936
|
}
|
|
2727
2937
|
function normalizeDef(def) {
|
|
2728
2938
|
const keys = Object.keys(def.shape);
|
|
2729
|
-
|
|
2939
|
+
const ownSymbols = Object.getOwnPropertySymbols(def.shape);
|
|
2940
|
+
const symbolKeys = ownSymbols.length ? ownSymbols : NO_SYMBOL_KEYS;
|
|
2941
|
+
const allKeys = symbolKeys.length ? [...keys, ...symbolKeys] : keys;
|
|
2942
|
+
for (const k of allKeys) {
|
|
2730
2943
|
if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
|
|
2731
|
-
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
|
2944
|
+
throw new Error(`Invalid element at key "${String(k)}": expected a Zod schema`);
|
|
2732
2945
|
}
|
|
2733
2946
|
}
|
|
2734
2947
|
const okeys = optionalKeys(def.shape);
|
|
2735
2948
|
return {
|
|
2736
2949
|
...def,
|
|
2737
|
-
|
|
2950
|
+
allKeys,
|
|
2951
|
+
symbolKeys,
|
|
2952
|
+
// string-only: handleCatchall matches it against `for...in`, which never yields a symbol
|
|
2738
2953
|
keySet: new Set(keys),
|
|
2739
2954
|
numKeys: keys.length,
|
|
2740
2955
|
optionalKeys: new Set(okeys)
|
|
2741
2956
|
};
|
|
2742
2957
|
}
|
|
2743
|
-
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
2958
|
+
function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
|
|
2744
2959
|
const unrecognized = [];
|
|
2745
2960
|
const keySet = def.keySet;
|
|
2746
2961
|
const _catchall = def.catchall._zod;
|
|
2747
2962
|
const t = _catchall.def.type;
|
|
2748
|
-
const
|
|
2749
|
-
const
|
|
2963
|
+
const optin = _catchall.optin;
|
|
2964
|
+
const optout = _catchall.optout;
|
|
2965
|
+
let seen = 0;
|
|
2750
2966
|
for (const key in input) {
|
|
2751
|
-
if (
|
|
2752
|
-
|
|
2967
|
+
if (abortEarly && payload.issues.length !== seen) {
|
|
2968
|
+
if (aborted(payload, seen))
|
|
2969
|
+
break;
|
|
2970
|
+
seen = payload.issues.length;
|
|
2971
|
+
}
|
|
2753
2972
|
if (keySet.has(key))
|
|
2754
2973
|
continue;
|
|
2974
|
+
if (key === "__proto__") {
|
|
2975
|
+
if (t === "never")
|
|
2976
|
+
unrecognized.push(key);
|
|
2977
|
+
continue;
|
|
2978
|
+
}
|
|
2755
2979
|
if (t === "never") {
|
|
2756
2980
|
unrecognized.push(key);
|
|
2757
2981
|
continue;
|
|
2758
2982
|
}
|
|
2759
2983
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
2760
2984
|
if (r instanceof Promise) {
|
|
2761
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
2985
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, optin, optout)));
|
|
2762
2986
|
} else {
|
|
2763
|
-
handlePropertyResult(r, payload, key, input,
|
|
2987
|
+
handlePropertyResult(r, payload, key, input, optin, optout);
|
|
2764
2988
|
}
|
|
2765
2989
|
}
|
|
2766
2990
|
if (unrecognized.length) {
|
|
@@ -2768,7 +2992,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2768
2992
|
code: "unrecognized_keys",
|
|
2769
2993
|
keys: unrecognized,
|
|
2770
2994
|
input,
|
|
2771
|
-
inst
|
|
2995
|
+
inst,
|
|
2996
|
+
// Describes the shape of the input, not the validity of the parsed value, so it never aborts. The parse still fails; the schema's own checks just get to run first, and an enclosing intersection can reconcile the key against a sibling operand.
|
|
2997
|
+
continue: true
|
|
2772
2998
|
});
|
|
2773
2999
|
}
|
|
2774
3000
|
if (!proms.length)
|
|
@@ -2799,7 +3025,8 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
2799
3025
|
}
|
|
2800
3026
|
function getTupleOptStart(items, key) {
|
|
2801
3027
|
for (let i = items.length - 1; i >= 0; i--) {
|
|
2802
|
-
|
|
3028
|
+
const omittable = key === "optin" ? items[i]._zod.optin !== void 0 : items[i]._zod.optout === "optional";
|
|
3029
|
+
if (!omittable)
|
|
2803
3030
|
return i + 1;
|
|
2804
3031
|
}
|
|
2805
3032
|
return 0;
|
|
@@ -2814,6 +3041,10 @@ function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
|
2814
3041
|
for (let i = 0; i < items.length; i++) {
|
|
2815
3042
|
const r = itemResults[i];
|
|
2816
3043
|
const isPresent = i < input.length;
|
|
3044
|
+
if (!isPresent && i >= optoutStart && items[i]._zod.optin === "optional") {
|
|
3045
|
+
final.value.length = i;
|
|
3046
|
+
break;
|
|
3047
|
+
}
|
|
2817
3048
|
if (r.issues.length) {
|
|
2818
3049
|
if (!isPresent && i >= optoutStart) {
|
|
2819
3050
|
final.value.length = i;
|
|
@@ -2832,18 +3063,16 @@ function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
|
2832
3063
|
}
|
|
2833
3064
|
return final;
|
|
2834
3065
|
}
|
|
2835
|
-
function handleOptionalResult(
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
}
|
|
2839
|
-
return result;
|
|
3066
|
+
function handleOptionalResult(payload, result) {
|
|
3067
|
+
payload.value = result.issues.length ? void 0 : result.value;
|
|
3068
|
+
return payload;
|
|
2840
3069
|
}
|
|
2841
3070
|
function handlePipeResult(left, next, ctx) {
|
|
2842
|
-
if (left.issues.
|
|
3071
|
+
if (left.issues.some((iss) => iss.code !== "unrecognized_keys")) {
|
|
2843
3072
|
left.aborted = true;
|
|
2844
3073
|
return left;
|
|
2845
3074
|
}
|
|
2846
|
-
return next._zod.run({ value: left.value, issues: left.issues
|
|
3075
|
+
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
2847
3076
|
}
|
|
2848
3077
|
function handleRefineResult(result, payload, input, inst) {
|
|
2849
3078
|
if (!result) {
|
|
@@ -2862,13 +3091,12 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2862
3091
|
payload.issues.push(issue(_iss));
|
|
2863
3092
|
}
|
|
2864
3093
|
}
|
|
2865
|
-
var $ZodType, $ZodString, $ZodNumber, $ZodUnknown, $ZodNever, $ZodArray, $ZodObject, $ZodUnion, $ZodTuple, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodOptional, $ZodPipe, $ZodCustom;
|
|
3094
|
+
var $ZodType, toStandardResult, $ZodString, $ZodNumber, $ZodUnknown, $ZodNever, arraySize, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodUnion, $ZodTuple, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodOptional, $ZodPipe, $ZodCustom;
|
|
2866
3095
|
var init_schemas = __esm({
|
|
2867
|
-
"../../node_modules/.pnpm/zod@4.
|
|
3096
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js"() {
|
|
2868
3097
|
"use strict";
|
|
2869
3098
|
init_checks();
|
|
2870
3099
|
init_core();
|
|
2871
|
-
init_parse();
|
|
2872
3100
|
init_regexes();
|
|
2873
3101
|
init_util();
|
|
2874
3102
|
init_versions();
|
|
@@ -2879,10 +3107,8 @@ var init_schemas = __esm({
|
|
|
2879
3107
|
inst._zod.def = def;
|
|
2880
3108
|
inst._zod.bag = inst._zod.bag || {};
|
|
2881
3109
|
inst._zod.version = version;
|
|
2882
|
-
const
|
|
2883
|
-
|
|
2884
|
-
checks.unshift(inst);
|
|
2885
|
-
}
|
|
3110
|
+
const defChecks = inst._zod.def.checks;
|
|
3111
|
+
const checks = inst._zod.traits.has("$ZodCheck") ? [inst, ...defChecks ?? []] : defChecks?.length ? [...defChecks] : [];
|
|
2886
3112
|
for (const ch of checks) {
|
|
2887
3113
|
for (const fn of ch._zod.onattach) {
|
|
2888
3114
|
fn(inst);
|
|
@@ -2895,6 +3121,8 @@ var init_schemas = __esm({
|
|
|
2895
3121
|
});
|
|
2896
3122
|
} else {
|
|
2897
3123
|
const runChecks = (payload, checks2, ctx) => {
|
|
3124
|
+
if (payload.memo)
|
|
3125
|
+
return payload;
|
|
2898
3126
|
let isAborted = aborted(payload);
|
|
2899
3127
|
let asyncResult;
|
|
2900
3128
|
for (const ch of checks2) {
|
|
@@ -2918,6 +3146,7 @@ var init_schemas = __esm({
|
|
|
2918
3146
|
const nextLen = payload.issues.length;
|
|
2919
3147
|
if (nextLen === currLen)
|
|
2920
3148
|
return;
|
|
3149
|
+
attachSchema(payload.issues, currLen, inst);
|
|
2921
3150
|
if (!isAborted)
|
|
2922
3151
|
isAborted = aborted(payload, currLen);
|
|
2923
3152
|
});
|
|
@@ -2925,6 +3154,7 @@ var init_schemas = __esm({
|
|
|
2925
3154
|
const nextLen = payload.issues.length;
|
|
2926
3155
|
if (nextLen === currLen)
|
|
2927
3156
|
continue;
|
|
3157
|
+
attachSchema(payload.issues, currLen, inst);
|
|
2928
3158
|
if (!isAborted)
|
|
2929
3159
|
isAborted = aborted(payload, currLen);
|
|
2930
3160
|
}
|
|
@@ -2971,22 +3201,19 @@ var init_schemas = __esm({
|
|
|
2971
3201
|
return runChecks(result, checks, ctx);
|
|
2972
3202
|
};
|
|
2973
3203
|
}
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
},
|
|
2983
|
-
vendor: "zod",
|
|
2984
|
-
version: 1
|
|
2985
|
-
}));
|
|
3204
|
+
}, {
|
|
3205
|
+
// Wrappers extend this by installing a richer factory over it; reading it eagerly would defeat the laziness.
|
|
3206
|
+
get "~standard"() {
|
|
3207
|
+
return hide(this, "~standard", standardProps(this));
|
|
3208
|
+
},
|
|
3209
|
+
set "~standard"(value) {
|
|
3210
|
+
own(this, "~standard", value);
|
|
3211
|
+
}
|
|
2986
3212
|
});
|
|
3213
|
+
toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r.value };
|
|
2987
3214
|
$ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
2988
3215
|
$ZodType.init(inst, def);
|
|
2989
|
-
inst._zod.pattern =
|
|
3216
|
+
inst._zod.pattern = def.pattern ?? anyString;
|
|
2990
3217
|
inst._zod.parse = (payload, _) => {
|
|
2991
3218
|
if (def.coerce)
|
|
2992
3219
|
try {
|
|
@@ -3006,7 +3233,7 @@ var init_schemas = __esm({
|
|
|
3006
3233
|
});
|
|
3007
3234
|
$ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
3008
3235
|
$ZodType.init(inst, def);
|
|
3009
|
-
inst._zod.pattern =
|
|
3236
|
+
inst._zod.pattern = number;
|
|
3010
3237
|
inst._zod.parse = (payload, _ctx) => {
|
|
3011
3238
|
if (def.coerce)
|
|
3012
3239
|
try {
|
|
@@ -3017,7 +3244,7 @@ var init_schemas = __esm({
|
|
|
3017
3244
|
if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
|
|
3018
3245
|
return payload;
|
|
3019
3246
|
}
|
|
3020
|
-
const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ?
|
|
3247
|
+
const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? String(input) : void 0 : void 0;
|
|
3021
3248
|
payload.issues.push({
|
|
3022
3249
|
expected: "number",
|
|
3023
3250
|
code: "invalid_type",
|
|
@@ -3044,8 +3271,11 @@ var init_schemas = __esm({
|
|
|
3044
3271
|
return payload;
|
|
3045
3272
|
};
|
|
3046
3273
|
});
|
|
3274
|
+
arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
3047
3275
|
$ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
3048
3276
|
$ZodType.init(inst, def);
|
|
3277
|
+
const memo = globalConfig.memoizer;
|
|
3278
|
+
memo?.attach(inst);
|
|
3049
3279
|
inst._zod.parse = (payload, ctx) => {
|
|
3050
3280
|
const input = payload.value;
|
|
3051
3281
|
if (!Array.isArray(input)) {
|
|
@@ -3057,8 +3287,9 @@ var init_schemas = __esm({
|
|
|
3057
3287
|
});
|
|
3058
3288
|
return payload;
|
|
3059
3289
|
}
|
|
3060
|
-
payload.value = Array(input.length);
|
|
3290
|
+
payload.value = memo ? memo.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);
|
|
3061
3291
|
const proms = [];
|
|
3292
|
+
const abortEarly = ctx?.abortEarly;
|
|
3062
3293
|
for (let i = 0; i < input.length; i++) {
|
|
3063
3294
|
const item = input[i];
|
|
3064
3295
|
const result = def.element._zod.run({
|
|
@@ -3069,6 +3300,8 @@ var init_schemas = __esm({
|
|
|
3069
3300
|
proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
|
|
3070
3301
|
} else {
|
|
3071
3302
|
handleArrayResult(result, payload, i);
|
|
3303
|
+
if (abortEarly && result.issues.length !== 0 && aborted(result))
|
|
3304
|
+
break;
|
|
3072
3305
|
}
|
|
3073
3306
|
}
|
|
3074
3307
|
if (proms.length) {
|
|
@@ -3076,32 +3309,37 @@ var init_schemas = __esm({
|
|
|
3076
3309
|
}
|
|
3077
3310
|
return payload;
|
|
3078
3311
|
};
|
|
3312
|
+
capSize(inst, arraySize);
|
|
3079
3313
|
});
|
|
3314
|
+
NO_SYMBOL_KEYS = [];
|
|
3080
3315
|
$ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
3081
3316
|
$ZodType.init(inst, def);
|
|
3082
3317
|
const desc = Object.getOwnPropertyDescriptor(def, "shape");
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
});
|
|
3318
|
+
const sh = desc?.get ? desc.get.raw : def.shape ?? {};
|
|
3319
|
+
if (sh) {
|
|
3320
|
+
const get = () => {
|
|
3321
|
+
const newSh = { ...sh };
|
|
3322
|
+
Object.defineProperty(def, "shape", { value: newSh });
|
|
3323
|
+
get.raw = newSh;
|
|
3324
|
+
return newSh;
|
|
3325
|
+
};
|
|
3326
|
+
get.raw = sh;
|
|
3327
|
+
Object.defineProperty(def, "shape", { get });
|
|
3094
3328
|
}
|
|
3095
3329
|
const _normalized = cached(() => normalizeDef(def));
|
|
3096
|
-
|
|
3097
|
-
const shape = def.shape;
|
|
3330
|
+
defineLazyInternal(inst, "propValues", (zod) => {
|
|
3331
|
+
const shape = zod.def.shape;
|
|
3098
3332
|
const propValues = {};
|
|
3099
3333
|
for (const key in shape) {
|
|
3100
3334
|
const field = shape[key]._zod;
|
|
3101
3335
|
if (field.values) {
|
|
3102
|
-
|
|
3336
|
+
if (!Object.prototype.hasOwnProperty.call(propValues, key)) {
|
|
3337
|
+
assignProp(propValues, key, /* @__PURE__ */ new Set());
|
|
3338
|
+
}
|
|
3103
3339
|
for (const v of field.values)
|
|
3104
3340
|
propValues[key].add(v);
|
|
3341
|
+
if (field.optin !== void 0)
|
|
3342
|
+
propValues[key].add(void 0);
|
|
3105
3343
|
}
|
|
3106
3344
|
}
|
|
3107
3345
|
return propValues;
|
|
@@ -3109,6 +3347,8 @@ var init_schemas = __esm({
|
|
|
3109
3347
|
const isObject2 = isObject;
|
|
3110
3348
|
const catchall = def.catchall;
|
|
3111
3349
|
let value;
|
|
3350
|
+
const memo = globalConfig.memoizer;
|
|
3351
|
+
memo?.attach(inst);
|
|
3112
3352
|
inst._zod.parse = (payload, ctx) => {
|
|
3113
3353
|
value ?? (value = _normalized.value);
|
|
3114
3354
|
const input = payload.value;
|
|
@@ -3121,39 +3361,48 @@ var init_schemas = __esm({
|
|
|
3121
3361
|
});
|
|
3122
3362
|
return payload;
|
|
3123
3363
|
}
|
|
3124
|
-
payload.value = {};
|
|
3364
|
+
payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
|
|
3125
3365
|
const proms = [];
|
|
3126
3366
|
const shape = value.shape;
|
|
3127
|
-
|
|
3367
|
+
const abortEarly = ctx?.abortEarly;
|
|
3368
|
+
let seen = payload.issues.length;
|
|
3369
|
+
for (const key of value.allKeys) {
|
|
3370
|
+
if (abortEarly && payload.issues.length !== seen) {
|
|
3371
|
+
if (aborted(payload, seen))
|
|
3372
|
+
break;
|
|
3373
|
+
seen = payload.issues.length;
|
|
3374
|
+
}
|
|
3375
|
+
if (key === "__proto__")
|
|
3376
|
+
continue;
|
|
3128
3377
|
const el = shape[key];
|
|
3129
|
-
const
|
|
3130
|
-
const
|
|
3378
|
+
const optin = el._zod.optin;
|
|
3379
|
+
const optout = el._zod.optout;
|
|
3131
3380
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3132
3381
|
if (r instanceof Promise) {
|
|
3133
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
3382
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, optin, optout)));
|
|
3134
3383
|
} else {
|
|
3135
|
-
handlePropertyResult(r, payload, key, input,
|
|
3384
|
+
handlePropertyResult(r, payload, key, input, optin, optout);
|
|
3136
3385
|
}
|
|
3137
3386
|
}
|
|
3138
3387
|
if (!catchall) {
|
|
3139
3388
|
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
3140
3389
|
}
|
|
3141
|
-
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
3390
|
+
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst, abortEarly === true);
|
|
3142
3391
|
};
|
|
3143
3392
|
});
|
|
3144
3393
|
$ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
3145
3394
|
$ZodType.init(inst, def);
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
if (def.options.every((o) => o._zod.values)) {
|
|
3150
|
-
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
3395
|
+
defineLazyInternal(inst, "optin", (zod) => zod.def.options.some((o) => o._zod.optin === "defaulted") ? "defaulted" : zod.def.options.some((o) => o._zod.optin !== void 0) ? "optional" : void 0);
|
|
3396
|
+
defineLazyInternal(inst, "optout", (zod) => zod.def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
3397
|
+
defineLazyInternal(inst, "values", (zod) => {
|
|
3398
|
+
if (zod.def.options.every((o) => o._zod.values)) {
|
|
3399
|
+
return new Set(zod.def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
3151
3400
|
}
|
|
3152
3401
|
return void 0;
|
|
3153
3402
|
});
|
|
3154
|
-
|
|
3155
|
-
if (def.options.every((o) => o._zod.pattern)) {
|
|
3156
|
-
const patterns = def.options.map((o) => o._zod.pattern);
|
|
3403
|
+
defineLazyInternal(inst, "pattern", (zod) => {
|
|
3404
|
+
if (zod.def.options.every((o) => o._zod.pattern)) {
|
|
3405
|
+
const patterns = zod.def.options.map((o) => o._zod.pattern);
|
|
3157
3406
|
return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
|
|
3158
3407
|
}
|
|
3159
3408
|
return void 0;
|
|
@@ -3189,6 +3438,8 @@ var init_schemas = __esm({
|
|
|
3189
3438
|
$ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
3190
3439
|
$ZodType.init(inst, def);
|
|
3191
3440
|
const items = def.items;
|
|
3441
|
+
const memo = globalConfig.memoizer;
|
|
3442
|
+
memo?.attach(inst);
|
|
3192
3443
|
inst._zod.parse = (payload, ctx) => {
|
|
3193
3444
|
const input = payload.value;
|
|
3194
3445
|
if (!Array.isArray(input)) {
|
|
@@ -3200,7 +3451,7 @@ var init_schemas = __esm({
|
|
|
3200
3451
|
});
|
|
3201
3452
|
return payload;
|
|
3202
3453
|
}
|
|
3203
|
-
payload.value = [];
|
|
3454
|
+
payload.value = memo ? memo.alloc(inst, payload, [], ctx) : [];
|
|
3204
3455
|
const proms = [];
|
|
3205
3456
|
const optinStart = getTupleOptStart(items, "optin");
|
|
3206
3457
|
const optoutStart = getTupleOptStart(items, "optout");
|
|
@@ -3228,6 +3479,8 @@ var init_schemas = __esm({
|
|
|
3228
3479
|
}
|
|
3229
3480
|
}
|
|
3230
3481
|
const itemResults = new Array(items.length);
|
|
3482
|
+
const abortEarly = def.rest ? ctx?.abortEarly : void 0;
|
|
3483
|
+
let itemAborted = false;
|
|
3231
3484
|
for (let i = 0; i < items.length; i++) {
|
|
3232
3485
|
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3233
3486
|
if (r instanceof Promise) {
|
|
@@ -3236,12 +3489,20 @@ var init_schemas = __esm({
|
|
|
3236
3489
|
}));
|
|
3237
3490
|
} else {
|
|
3238
3491
|
itemResults[i] = r;
|
|
3492
|
+
if (abortEarly && !itemAborted && r.issues.length)
|
|
3493
|
+
itemAborted = aborted(r);
|
|
3239
3494
|
}
|
|
3240
3495
|
}
|
|
3241
|
-
if (def.rest) {
|
|
3496
|
+
if (def.rest && !itemAborted) {
|
|
3242
3497
|
let i = items.length - 1;
|
|
3243
3498
|
const rest = input.slice(items.length);
|
|
3499
|
+
let seen = payload.issues.length;
|
|
3244
3500
|
for (const el of rest) {
|
|
3501
|
+
if (abortEarly && payload.issues.length !== seen) {
|
|
3502
|
+
if (aborted(payload, seen))
|
|
3503
|
+
break;
|
|
3504
|
+
seen = payload.issues.length;
|
|
3505
|
+
}
|
|
3245
3506
|
i++;
|
|
3246
3507
|
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3247
3508
|
if (result instanceof Promise) {
|
|
@@ -3259,6 +3520,8 @@ var init_schemas = __esm({
|
|
|
3259
3520
|
});
|
|
3260
3521
|
$ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3261
3522
|
$ZodType.init(inst, def);
|
|
3523
|
+
const memo = globalConfig.memoizer;
|
|
3524
|
+
memo?.attach(inst);
|
|
3262
3525
|
inst._zod.parse = (payload, ctx) => {
|
|
3263
3526
|
const input = payload.value;
|
|
3264
3527
|
if (!isPlainObject(input)) {
|
|
@@ -3272,12 +3535,14 @@ var init_schemas = __esm({
|
|
|
3272
3535
|
}
|
|
3273
3536
|
const proms = [];
|
|
3274
3537
|
const values = def.keyType._zod.values;
|
|
3275
|
-
if (values) {
|
|
3276
|
-
payload.value = {};
|
|
3538
|
+
if (values && !def.partial) {
|
|
3539
|
+
payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
|
|
3277
3540
|
const recordKeys = /* @__PURE__ */ new Set();
|
|
3278
3541
|
for (const key of values) {
|
|
3279
3542
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3280
3543
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3544
|
+
if (key === "__proto__")
|
|
3545
|
+
continue;
|
|
3281
3546
|
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3282
3547
|
if (keyResult instanceof Promise) {
|
|
3283
3548
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3294,6 +3559,8 @@ var init_schemas = __esm({
|
|
|
3294
3559
|
continue;
|
|
3295
3560
|
}
|
|
3296
3561
|
const outKey = keyResult.value;
|
|
3562
|
+
if (outKey === "__proto__")
|
|
3563
|
+
continue;
|
|
3297
3564
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3298
3565
|
if (result instanceof Promise) {
|
|
3299
3566
|
proms.push(result.then((result2) => {
|
|
@@ -3313,8 +3580,14 @@ var init_schemas = __esm({
|
|
|
3313
3580
|
let unrecognized;
|
|
3314
3581
|
for (const key in input) {
|
|
3315
3582
|
if (!recordKeys.has(key)) {
|
|
3316
|
-
|
|
3317
|
-
|
|
3583
|
+
if (def.mode === "loose") {
|
|
3584
|
+
if (key === "__proto__")
|
|
3585
|
+
continue;
|
|
3586
|
+
payload.value[key] = input[key];
|
|
3587
|
+
} else {
|
|
3588
|
+
unrecognized = unrecognized ?? [];
|
|
3589
|
+
unrecognized.push(key);
|
|
3590
|
+
}
|
|
3318
3591
|
}
|
|
3319
3592
|
}
|
|
3320
3593
|
if (unrecognized && unrecognized.length > 0) {
|
|
@@ -3322,11 +3595,13 @@ var init_schemas = __esm({
|
|
|
3322
3595
|
code: "unrecognized_keys",
|
|
3323
3596
|
input,
|
|
3324
3597
|
inst,
|
|
3325
|
-
keys: unrecognized
|
|
3598
|
+
keys: unrecognized,
|
|
3599
|
+
continue: true
|
|
3326
3600
|
});
|
|
3327
3601
|
}
|
|
3328
3602
|
} else {
|
|
3329
|
-
payload.value = {};
|
|
3603
|
+
payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
|
|
3604
|
+
let unrecognized;
|
|
3330
3605
|
for (const key of Reflect.ownKeys(input)) {
|
|
3331
3606
|
if (key === "__proto__")
|
|
3332
3607
|
continue;
|
|
@@ -3349,6 +3624,9 @@ var init_schemas = __esm({
|
|
|
3349
3624
|
if (keyResult.issues.length) {
|
|
3350
3625
|
if (def.mode === "loose") {
|
|
3351
3626
|
payload.value[key] = input[key];
|
|
3627
|
+
} else if (values) {
|
|
3628
|
+
unrecognized = unrecognized ?? [];
|
|
3629
|
+
unrecognized.push(key);
|
|
3352
3630
|
} else {
|
|
3353
3631
|
payload.issues.push({
|
|
3354
3632
|
code: "invalid_key",
|
|
@@ -3361,21 +3639,33 @@ var init_schemas = __esm({
|
|
|
3361
3639
|
}
|
|
3362
3640
|
continue;
|
|
3363
3641
|
}
|
|
3642
|
+
const outKey = keyResult.value;
|
|
3643
|
+
if (outKey === "__proto__")
|
|
3644
|
+
continue;
|
|
3364
3645
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3365
3646
|
if (result instanceof Promise) {
|
|
3366
3647
|
proms.push(result.then((result2) => {
|
|
3367
3648
|
if (result2.issues.length) {
|
|
3368
3649
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3369
3650
|
}
|
|
3370
|
-
payload.value[
|
|
3651
|
+
payload.value[outKey] = result2.value;
|
|
3371
3652
|
}));
|
|
3372
3653
|
} else {
|
|
3373
3654
|
if (result.issues.length) {
|
|
3374
3655
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3375
3656
|
}
|
|
3376
|
-
payload.value[
|
|
3657
|
+
payload.value[outKey] = result.value;
|
|
3377
3658
|
}
|
|
3378
3659
|
}
|
|
3660
|
+
if (unrecognized && unrecognized.length > 0) {
|
|
3661
|
+
payload.issues.push({
|
|
3662
|
+
code: "unrecognized_keys",
|
|
3663
|
+
input,
|
|
3664
|
+
inst,
|
|
3665
|
+
keys: unrecognized,
|
|
3666
|
+
continue: true
|
|
3667
|
+
});
|
|
3668
|
+
}
|
|
3379
3669
|
}
|
|
3380
3670
|
if (proms.length) {
|
|
3381
3671
|
return Promise.all(proms).then(() => payload);
|
|
@@ -3388,7 +3678,10 @@ var init_schemas = __esm({
|
|
|
3388
3678
|
const values = getEnumValues(def.entries);
|
|
3389
3679
|
const valuesSet = new Set(values);
|
|
3390
3680
|
inst._zod.values = valuesSet;
|
|
3391
|
-
inst
|
|
3681
|
+
defineLazyInternal(inst, "pattern", (zod) => {
|
|
3682
|
+
const patternValues = getEnumValues(zod.def.entries).filter((k) => propertyKeyTypes.has(typeof k));
|
|
3683
|
+
return new RegExp(patternValues.length ? `^(${patternValues.map((o) => escapeRegex(o.toString())).join("|")})$` : "^[^\\s\\S]$");
|
|
3684
|
+
});
|
|
3392
3685
|
inst._zod.parse = (payload, _ctx) => {
|
|
3393
3686
|
const input = payload.value;
|
|
3394
3687
|
if (valuesSet.has(input)) {
|
|
@@ -3405,12 +3698,12 @@ var init_schemas = __esm({
|
|
|
3405
3698
|
});
|
|
3406
3699
|
$ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
3407
3700
|
$ZodType.init(inst, def);
|
|
3408
|
-
if (def.values.length === 0) {
|
|
3409
|
-
throw new Error("Cannot create literal schema with no valid values");
|
|
3410
|
-
}
|
|
3411
3701
|
const values = new Set(def.values);
|
|
3412
3702
|
inst._zod.values = values;
|
|
3413
|
-
inst
|
|
3703
|
+
defineLazyInternal(inst, "pattern", (zod) => {
|
|
3704
|
+
const vals = zod.def.values;
|
|
3705
|
+
return new RegExp(vals.length ? `^(${vals.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$` : "^[^\\s\\S]$");
|
|
3706
|
+
});
|
|
3414
3707
|
inst._zod.parse = (payload, _ctx) => {
|
|
3415
3708
|
const input = payload.value;
|
|
3416
3709
|
if (values.has(input)) {
|
|
@@ -3427,35 +3720,34 @@ var init_schemas = __esm({
|
|
|
3427
3720
|
});
|
|
3428
3721
|
$ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
3429
3722
|
$ZodType.init(inst, def);
|
|
3430
|
-
inst._zod.optin
|
|
3723
|
+
defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional");
|
|
3431
3724
|
inst._zod.optout = "optional";
|
|
3432
|
-
|
|
3433
|
-
|
|
3725
|
+
defineLazyInternal(inst, "values", (zod) => {
|
|
3726
|
+
const values = zod.def.innerType._zod.values;
|
|
3727
|
+
return values ? /* @__PURE__ */ new Set([...values, void 0]) : void 0;
|
|
3434
3728
|
});
|
|
3435
|
-
|
|
3436
|
-
const pattern = def.innerType._zod.pattern;
|
|
3729
|
+
defineLazyInternal(inst, "pattern", (zod) => {
|
|
3730
|
+
const pattern = zod.def.innerType._zod.pattern;
|
|
3437
3731
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
|
|
3438
3732
|
});
|
|
3439
3733
|
inst._zod.parse = (payload, ctx) => {
|
|
3440
|
-
if (def.innerType._zod.optin === "optional") {
|
|
3441
|
-
const input = payload.value;
|
|
3442
|
-
const result = def.innerType._zod.run(payload, ctx);
|
|
3443
|
-
if (result instanceof Promise)
|
|
3444
|
-
return result.then((r) => handleOptionalResult(r, input));
|
|
3445
|
-
return handleOptionalResult(result, input);
|
|
3446
|
-
}
|
|
3447
3734
|
if (payload.value === void 0) {
|
|
3448
|
-
|
|
3735
|
+
if (def.innerType._zod.optin !== "defaulted")
|
|
3736
|
+
return payload;
|
|
3737
|
+
const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);
|
|
3738
|
+
if (result instanceof Promise)
|
|
3739
|
+
return result.then((result2) => handleOptionalResult(payload, result2));
|
|
3740
|
+
return handleOptionalResult(payload, result);
|
|
3449
3741
|
}
|
|
3450
3742
|
return def.innerType._zod.run(payload, ctx);
|
|
3451
3743
|
};
|
|
3452
3744
|
});
|
|
3453
3745
|
$ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
3454
3746
|
$ZodType.init(inst, def);
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3747
|
+
defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values);
|
|
3748
|
+
defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin);
|
|
3749
|
+
defineLazyInternal(inst, "optout", (zod) => zod.def.out._zod.optout);
|
|
3750
|
+
defineLazyInternal(inst, "propValues", (zod) => zod.def.in._zod.propValues);
|
|
3459
3751
|
inst._zod.parse = (payload, ctx) => {
|
|
3460
3752
|
if (ctx.direction === "backward") {
|
|
3461
3753
|
const right = def.out._zod.run(payload, ctx);
|
|
@@ -3490,20 +3782,27 @@ var init_schemas = __esm({
|
|
|
3490
3782
|
}
|
|
3491
3783
|
});
|
|
3492
3784
|
|
|
3493
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
3785
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
3786
|
+
var init_memoizer = __esm({
|
|
3787
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js"() {
|
|
3788
|
+
"use strict";
|
|
3789
|
+
}
|
|
3790
|
+
});
|
|
3791
|
+
|
|
3792
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/index.js
|
|
3494
3793
|
var init_locales = __esm({
|
|
3495
|
-
"../../node_modules/.pnpm/zod@4.
|
|
3794
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/index.js"() {
|
|
3496
3795
|
"use strict";
|
|
3497
3796
|
}
|
|
3498
3797
|
});
|
|
3499
3798
|
|
|
3500
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
3799
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
3501
3800
|
function registry() {
|
|
3502
3801
|
return new $ZodRegistry();
|
|
3503
3802
|
}
|
|
3504
3803
|
var _a2, $ZodRegistry, globalRegistry;
|
|
3505
3804
|
var init_registries = __esm({
|
|
3506
|
-
"../../node_modules/.pnpm/zod@4.
|
|
3805
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js"() {
|
|
3507
3806
|
"use strict";
|
|
3508
3807
|
$ZodRegistry = class {
|
|
3509
3808
|
constructor() {
|
|
@@ -3550,21 +3849,26 @@ var init_registries = __esm({
|
|
|
3550
3849
|
}
|
|
3551
3850
|
});
|
|
3552
3851
|
|
|
3553
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
3852
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/compile.js
|
|
3853
|
+
var init_compile = __esm({
|
|
3854
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/compile.js"() {
|
|
3855
|
+
"use strict";
|
|
3856
|
+
}
|
|
3857
|
+
});
|
|
3858
|
+
|
|
3859
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
3860
|
+
function snapshotChecks(def) {
|
|
3861
|
+
if (def.checks)
|
|
3862
|
+
def.checks = [...def.checks];
|
|
3863
|
+
return def;
|
|
3864
|
+
}
|
|
3554
3865
|
// @__NO_SIDE_EFFECTS__
|
|
3555
3866
|
function _string(Class, params) {
|
|
3556
|
-
return new Class({
|
|
3557
|
-
type: "string",
|
|
3558
|
-
...normalizeParams(params)
|
|
3559
|
-
});
|
|
3867
|
+
return new Class(snapshotChecks({ type: "string", ...normalizeParams(params) }));
|
|
3560
3868
|
}
|
|
3561
3869
|
// @__NO_SIDE_EFFECTS__
|
|
3562
3870
|
function _number(Class, params) {
|
|
3563
|
-
return new Class({
|
|
3564
|
-
type: "number",
|
|
3565
|
-
checks: [],
|
|
3566
|
-
...normalizeParams(params)
|
|
3567
|
-
});
|
|
3871
|
+
return new Class(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
|
|
3568
3872
|
}
|
|
3569
3873
|
// @__NO_SIDE_EFFECTS__
|
|
3570
3874
|
function _unknown(Class) {
|
|
@@ -3644,7 +3948,8 @@ function _superRefine(fn, params) {
|
|
|
3644
3948
|
if (_issue.fatal)
|
|
3645
3949
|
_issue.continue = false;
|
|
3646
3950
|
_issue.code ?? (_issue.code = "custom");
|
|
3647
|
-
|
|
3951
|
+
if (!("input" in _issue))
|
|
3952
|
+
_issue.input = payload.value;
|
|
3648
3953
|
_issue.inst ?? (_issue.inst = ch);
|
|
3649
3954
|
_issue.continue ?? (_issue.continue = !ch._zod.def.abort);
|
|
3650
3955
|
payload.issues.push(issue(_issue));
|
|
@@ -3664,35 +3969,36 @@ function _check(fn, params) {
|
|
|
3664
3969
|
return ch;
|
|
3665
3970
|
}
|
|
3666
3971
|
var init_api = __esm({
|
|
3667
|
-
"../../node_modules/.pnpm/zod@4.
|
|
3972
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js"() {
|
|
3668
3973
|
"use strict";
|
|
3669
3974
|
init_checks();
|
|
3670
3975
|
init_util();
|
|
3671
3976
|
}
|
|
3672
3977
|
});
|
|
3673
3978
|
|
|
3674
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
3979
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
3675
3980
|
var init_to_json_schema = __esm({
|
|
3676
|
-
"../../node_modules/.pnpm/zod@4.
|
|
3981
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js"() {
|
|
3677
3982
|
"use strict";
|
|
3678
3983
|
}
|
|
3679
3984
|
});
|
|
3680
3985
|
|
|
3681
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
3986
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema.js
|
|
3682
3987
|
var init_json_schema = __esm({
|
|
3683
|
-
"../../node_modules/.pnpm/zod@4.
|
|
3988
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema.js"() {
|
|
3684
3989
|
"use strict";
|
|
3685
3990
|
}
|
|
3686
3991
|
});
|
|
3687
3992
|
|
|
3688
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
3993
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/index.js
|
|
3689
3994
|
var init_core2 = __esm({
|
|
3690
|
-
"../../node_modules/.pnpm/zod@4.
|
|
3995
|
+
"../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/index.js"() {
|
|
3691
3996
|
"use strict";
|
|
3692
3997
|
init_core();
|
|
3693
3998
|
init_parse();
|
|
3694
3999
|
init_errors();
|
|
3695
4000
|
init_schemas();
|
|
4001
|
+
init_memoizer();
|
|
3696
4002
|
init_checks();
|
|
3697
4003
|
init_versions();
|
|
3698
4004
|
init_util();
|
|
@@ -3700,6 +4006,7 @@ var init_core2 = __esm({
|
|
|
3700
4006
|
init_locales();
|
|
3701
4007
|
init_registries();
|
|
3702
4008
|
init_doc();
|
|
4009
|
+
init_compile();
|
|
3703
4010
|
init_api();
|
|
3704
4011
|
init_to_json_schema();
|
|
3705
4012
|
init_json_schema();
|
|
@@ -3906,7 +4213,7 @@ function planTileflowThemeBlend(styles, options = {}) {
|
|
|
3906
4213
|
if (type === "symbol") symbolLayers.add(resultId);
|
|
3907
4214
|
const overridden = new Set(result.extra.map((entry) => entry.property));
|
|
3908
4215
|
for (const entry of [
|
|
3909
|
-
...ownPaints.filter((
|
|
4216
|
+
...ownPaints.filter((own2) => !overridden.has(own2.property)),
|
|
3910
4217
|
...result.extra
|
|
3911
4218
|
])
|
|
3912
4219
|
paints.push({ layer: resultId, property: entry.property, template: entry.template, follows });
|
|
@@ -4994,10 +5301,10 @@ function resolveTileflowNativeResourceUrl(value, options) {
|
|
|
4994
5301
|
// src/native-manifest.ts
|
|
4995
5302
|
init_manifest_types();
|
|
4996
5303
|
|
|
4997
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
5304
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/parse.js
|
|
4998
5305
|
init_core2();
|
|
4999
5306
|
|
|
5000
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
5307
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/schemas.js
|
|
5001
5308
|
init_core2();
|
|
5002
5309
|
init_util();
|
|
5003
5310
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
@@ -5006,29 +5313,49 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
5006
5313
|
$ZodType.init(inst, def);
|
|
5007
5314
|
inst.def = def;
|
|
5008
5315
|
inst.type = def.type;
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5316
|
+
}, {
|
|
5317
|
+
// `with` is an alias for `check`: the same function object, not a wrapper.
|
|
5318
|
+
get with() {
|
|
5319
|
+
return this.check;
|
|
5320
|
+
},
|
|
5321
|
+
set with(value) {
|
|
5322
|
+
own(this, "with", value);
|
|
5323
|
+
},
|
|
5324
|
+
parse(data, params) {
|
|
5325
|
+
return parse(this, data, params, { callee: this.parse });
|
|
5326
|
+
},
|
|
5327
|
+
parseAsync(data, params) {
|
|
5328
|
+
return parseAsync(this, data, params, { callee: this.parseAsync });
|
|
5329
|
+
},
|
|
5330
|
+
safeParse(data, params) {
|
|
5331
|
+
return safeParse(this, data, params);
|
|
5332
|
+
},
|
|
5333
|
+
safeParseAsync(data, params) {
|
|
5334
|
+
return safeParseAsync(this, data, params);
|
|
5335
|
+
},
|
|
5336
|
+
check(...checks) {
|
|
5337
|
+
const def = this.def;
|
|
5338
|
+
return this.clone({
|
|
5015
5339
|
...def,
|
|
5016
5340
|
checks: [
|
|
5017
5341
|
...def.checks ?? [],
|
|
5018
|
-
...checks.map((ch) => typeof ch === "function" ? {
|
|
5019
|
-
_zod: { check: ch, def: { check: "custom" }, onattach: [] }
|
|
5020
|
-
} : ch)
|
|
5342
|
+
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
5021
5343
|
]
|
|
5022
5344
|
}, { parent: true });
|
|
5023
|
-
}
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5345
|
+
},
|
|
5346
|
+
clone(_def, params) {
|
|
5347
|
+
return clone(this, _def, params);
|
|
5348
|
+
},
|
|
5349
|
+
brand() {
|
|
5350
|
+
return this;
|
|
5351
|
+
},
|
|
5352
|
+
register(reg, meta2) {
|
|
5353
|
+
reg.add(this, meta2);
|
|
5354
|
+
return this;
|
|
5355
|
+
},
|
|
5356
|
+
apply(fn, ...args) {
|
|
5357
|
+
return args.length === 0 ? fn(this) : fn(this, ...args);
|
|
5358
|
+
}
|
|
5032
5359
|
});
|
|
5033
5360
|
var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
|
|
5034
5361
|
$ZodString.init(inst, def);
|
|
@@ -5077,7 +5404,7 @@ function array(element, params) {
|
|
|
5077
5404
|
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
|
|
5078
5405
|
$ZodObject.init(inst, def);
|
|
5079
5406
|
ZodMiniType.init(inst, def);
|
|
5080
|
-
|
|
5407
|
+
installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
|
|
5081
5408
|
});
|
|
5082
5409
|
// @__NO_SIDE_EFFECTS__
|
|
5083
5410
|
function strictObject(shape, params) {
|
|
@@ -5140,7 +5467,7 @@ function record(keyType, valueType, params) {
|
|
|
5140
5467
|
var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
5141
5468
|
$ZodEnum.init(inst, def);
|
|
5142
5469
|
ZodMiniType.init(inst, def);
|
|
5143
|
-
inst.options =
|
|
5470
|
+
inst.options = [...inst._zod.values];
|
|
5144
5471
|
});
|
|
5145
5472
|
// @__NO_SIDE_EFFECTS__
|
|
5146
5473
|
function _enum(values, params) {
|
|
@@ -5199,7 +5526,7 @@ function superRefine(fn, params) {
|
|
|
5199
5526
|
return _superRefine(fn, params);
|
|
5200
5527
|
}
|
|
5201
5528
|
|
|
5202
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
5529
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/checks.js
|
|
5203
5530
|
init_core2();
|
|
5204
5531
|
|
|
5205
5532
|
// src/native-manifest-schema.ts
|
|
@@ -5790,10 +6117,10 @@ function createTileflowNativeSourceController(options) {
|
|
|
5790
6117
|
if (disposed) throw new TileflowNativeSourceError("NATIVE_SOURCE_DISPOSED", "source");
|
|
5791
6118
|
if (generation >= Number.MAX_SAFE_INTEGER)
|
|
5792
6119
|
throw new TileflowNativeSourceError("NATIVE_SOURCE_INVALID", "source");
|
|
5793
|
-
const
|
|
6120
|
+
const own2 = { generation: ++generation, cancellation: new NativeSourceCancellation() };
|
|
5794
6121
|
const previous = active;
|
|
5795
|
-
active =
|
|
5796
|
-
const current = () => !disposed && generation ===
|
|
6122
|
+
active = own2;
|
|
6123
|
+
const current = () => !disposed && generation === own2.generation;
|
|
5797
6124
|
let sourceInput;
|
|
5798
6125
|
let selection;
|
|
5799
6126
|
let snapshotError;
|
|
@@ -5807,7 +6134,7 @@ function createTileflowNativeSourceController(options) {
|
|
|
5807
6134
|
let detach = () => void 0;
|
|
5808
6135
|
try {
|
|
5809
6136
|
if (!current()) return;
|
|
5810
|
-
publish({ status: "loading", generation:
|
|
6137
|
+
publish({ status: "loading", generation: own2.generation });
|
|
5811
6138
|
if (!current()) return;
|
|
5812
6139
|
if (snapshotError) throw snapshotError;
|
|
5813
6140
|
if (!sourceInput || !selection || Object.hasOwn(sourceInput, "kind") || Object.hasOwn(sourceInput, "style") || !isTileflowPortableId(sourceInput.map))
|
|
@@ -5829,14 +6156,14 @@ function createTileflowNativeSourceController(options) {
|
|
|
5829
6156
|
throw new TileflowNativeSourceError("NATIVE_MANIFEST_URL_INVALID", "manifestUrl");
|
|
5830
6157
|
}
|
|
5831
6158
|
}
|
|
5832
|
-
detach =
|
|
6159
|
+
detach = own2.cancellation.link(selection.signal);
|
|
5833
6160
|
const result = await loadNativeManifest(
|
|
5834
6161
|
selectedSource.manifestUrl,
|
|
5835
6162
|
acquire,
|
|
5836
6163
|
{
|
|
5837
6164
|
developmentOrigin: selectedSource.developmentOrigin
|
|
5838
6165
|
},
|
|
5839
|
-
|
|
6166
|
+
own2.cancellation
|
|
5840
6167
|
);
|
|
5841
6168
|
if (!current()) return;
|
|
5842
6169
|
if (!Object.hasOwn(result.manifest.maps, selectedSource.map)) {
|
|
@@ -5862,7 +6189,7 @@ function createTileflowNativeSourceController(options) {
|
|
|
5862
6189
|
}
|
|
5863
6190
|
publish({
|
|
5864
6191
|
status: "ready",
|
|
5865
|
-
generation:
|
|
6192
|
+
generation: own2.generation,
|
|
5866
6193
|
source: selectedSource,
|
|
5867
6194
|
...result,
|
|
5868
6195
|
map: map2,
|
|
@@ -5872,12 +6199,12 @@ function createTileflowNativeSourceController(options) {
|
|
|
5872
6199
|
if (current())
|
|
5873
6200
|
publish({
|
|
5874
6201
|
status: "error",
|
|
5875
|
-
generation:
|
|
6202
|
+
generation: own2.generation,
|
|
5876
6203
|
error: normalizeNativeSourceError(error2)
|
|
5877
6204
|
});
|
|
5878
6205
|
} finally {
|
|
5879
6206
|
detach();
|
|
5880
|
-
if (active ===
|
|
6207
|
+
if (active === own2) active = void 0;
|
|
5881
6208
|
}
|
|
5882
6209
|
},
|
|
5883
6210
|
dispose() {
|
|
@@ -5951,18 +6278,211 @@ function snapshotView(input) {
|
|
|
5951
6278
|
|
|
5952
6279
|
// src/native.ts
|
|
5953
6280
|
init_theme_blend();
|
|
6281
|
+
|
|
6282
|
+
// src/boundary-areas/schema.ts
|
|
6283
|
+
var tileflowBoundaryClasses = [
|
|
6284
|
+
"country",
|
|
6285
|
+
"dependency",
|
|
6286
|
+
"region",
|
|
6287
|
+
"province_or_county",
|
|
6288
|
+
"municipality",
|
|
6289
|
+
"district",
|
|
6290
|
+
"neighbourhood"
|
|
6291
|
+
];
|
|
6292
|
+
var tileflowBoundaryClassTiers = ["primary", "secondary"];
|
|
6293
|
+
var tileflowBoundaryAreasV1Schema = Object.freeze({
|
|
6294
|
+
classes: tileflowBoundaryClasses,
|
|
6295
|
+
/** First zoom at which each class appears, by tier. */
|
|
6296
|
+
classMinzoom: Object.freeze({
|
|
6297
|
+
country: Object.freeze({ primary: 0, secondary: 0 }),
|
|
6298
|
+
dependency: Object.freeze({ primary: 0, secondary: 0 }),
|
|
6299
|
+
region: Object.freeze({ primary: 3, secondary: 3 }),
|
|
6300
|
+
province_or_county: Object.freeze({ primary: 6, secondary: 7 }),
|
|
6301
|
+
municipality: Object.freeze({ primary: 8, secondary: 8 }),
|
|
6302
|
+
district: Object.freeze({ primary: 10, secondary: 10 }),
|
|
6303
|
+
neighbourhood: Object.freeze({ primary: 11, secondary: 11 })
|
|
6304
|
+
}),
|
|
6305
|
+
fields: Object.freeze({
|
|
6306
|
+
adminDepth: "admin_depth",
|
|
6307
|
+
adminLevel: "admin_level",
|
|
6308
|
+
class: "class",
|
|
6309
|
+
classTier: "class_tier",
|
|
6310
|
+
iso31661: "iso_3166_1",
|
|
6311
|
+
iso31662: "iso_3166_2",
|
|
6312
|
+
name: "name",
|
|
6313
|
+
nuts: "nuts",
|
|
6314
|
+
ref: "ref",
|
|
6315
|
+
wikidata: "wikidata"
|
|
6316
|
+
}),
|
|
6317
|
+
layers: Object.freeze({ areas: "boundary_area", labels: "boundary_label" }),
|
|
6318
|
+
/** Properties present on `boundary_area` polygons. */
|
|
6319
|
+
areaProperties: Object.freeze([
|
|
6320
|
+
"class",
|
|
6321
|
+
"class_tier",
|
|
6322
|
+
"admin_level",
|
|
6323
|
+
"admin_depth",
|
|
6324
|
+
"ref",
|
|
6325
|
+
"iso_3166_1"
|
|
6326
|
+
]),
|
|
6327
|
+
maxzoom: 12,
|
|
6328
|
+
minzoom: 0,
|
|
6329
|
+
product: "boundaries-v1",
|
|
6330
|
+
schemaVersion: 1,
|
|
6331
|
+
tiers: tileflowBoundaryClassTiers
|
|
6332
|
+
});
|
|
6333
|
+
var tileflowBoundaryFamilies = Object.freeze({
|
|
6334
|
+
boundaries: Object.freeze({
|
|
6335
|
+
attribution: "\xA9 OpenStreetMap contributors",
|
|
6336
|
+
license: "ODbL-1.0",
|
|
6337
|
+
path: "/tiles/boundaries/tiles.json",
|
|
6338
|
+
sourceId: "tileflow-boundaries"
|
|
6339
|
+
})
|
|
6340
|
+
});
|
|
6341
|
+
function isTileflowBoundaryFamily(value) {
|
|
6342
|
+
return typeof value === "string" && Object.hasOwn(tileflowBoundaryFamilies, value);
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
// src/boundary-areas/feature-state.ts
|
|
6346
|
+
function createBoundaryFeatureState(map2, options = {}) {
|
|
6347
|
+
const family = options.family ?? "boundaries";
|
|
6348
|
+
if (!isTileflowBoundaryFamily(family)) {
|
|
6349
|
+
throw new Error(`Unknown Tileflow Boundaries family: ${String(family)}.`);
|
|
6350
|
+
}
|
|
6351
|
+
const source = tileflowBoundaryFamilies[family].sourceId;
|
|
6352
|
+
const stateKey = options.state?.trim() || "value";
|
|
6353
|
+
const sourceLayers = [
|
|
6354
|
+
tileflowBoundaryAreasV1Schema.layers.areas,
|
|
6355
|
+
...options.labels ? [tileflowBoundaryAreasV1Schema.layers.labels] : []
|
|
6356
|
+
];
|
|
6357
|
+
let applied = /* @__PURE__ */ new Map();
|
|
6358
|
+
let disposed = false;
|
|
6359
|
+
const write = (id, value) => {
|
|
6360
|
+
for (const sourceLayer of sourceLayers) {
|
|
6361
|
+
map2.setFeatureState({ id, source, sourceLayer }, { [stateKey]: value });
|
|
6362
|
+
}
|
|
6363
|
+
};
|
|
6364
|
+
const erase = (id) => {
|
|
6365
|
+
for (const sourceLayer of sourceLayers) {
|
|
6366
|
+
map2.removeFeatureState({ id, source, sourceLayer }, stateKey);
|
|
6367
|
+
}
|
|
6368
|
+
};
|
|
6369
|
+
const sourceReady = () => map2.getSource(source) !== void 0;
|
|
6370
|
+
let pendingReload = false;
|
|
6371
|
+
const onStyleData = () => {
|
|
6372
|
+
if (!sourceReady()) {
|
|
6373
|
+
pendingReload = true;
|
|
6374
|
+
return;
|
|
6375
|
+
}
|
|
6376
|
+
if (!pendingReload) return;
|
|
6377
|
+
pendingReload = false;
|
|
6378
|
+
for (const [id, value] of applied) write(id, value);
|
|
6379
|
+
};
|
|
6380
|
+
map2.on("styledata", onStyleData);
|
|
6381
|
+
const assertOpen = () => {
|
|
6382
|
+
if (disposed) throw new Error("This Boundaries feature-state controller was disposed.");
|
|
6383
|
+
};
|
|
6384
|
+
return Object.freeze({
|
|
6385
|
+
clear() {
|
|
6386
|
+
assertOpen();
|
|
6387
|
+
if (sourceReady()) for (const id of applied.keys()) erase(id);
|
|
6388
|
+
applied = /* @__PURE__ */ new Map();
|
|
6389
|
+
},
|
|
6390
|
+
dispose() {
|
|
6391
|
+
if (disposed) return;
|
|
6392
|
+
if (sourceReady()) for (const id of applied.keys()) erase(id);
|
|
6393
|
+
applied = /* @__PURE__ */ new Map();
|
|
6394
|
+
map2.off("styledata", onStyleData);
|
|
6395
|
+
disposed = true;
|
|
6396
|
+
},
|
|
6397
|
+
set(values) {
|
|
6398
|
+
assertOpen();
|
|
6399
|
+
const featureKey = promotedKey(map2, source) ?? "id";
|
|
6400
|
+
if (values.joinBy !== featureKey) {
|
|
6401
|
+
throw new Error(
|
|
6402
|
+
`Boundaries feature-state is keyed by ${featureKey}; join the rows to ${featureKey} first with joinBoundaryRows.`
|
|
6403
|
+
);
|
|
6404
|
+
}
|
|
6405
|
+
const next = /* @__PURE__ */ new Map();
|
|
6406
|
+
for (const row of values.rows) {
|
|
6407
|
+
if (row.value === null) continue;
|
|
6408
|
+
if (featureKey === "id") {
|
|
6409
|
+
if (typeof row.key !== "number" || !Number.isSafeInteger(row.key) || row.key < 0) {
|
|
6410
|
+
throw new Error("Boundaries feature-state rows keyed by id need integer keys.");
|
|
6411
|
+
}
|
|
6412
|
+
} else if (typeof row.key !== "string" || !row.key) {
|
|
6413
|
+
throw new Error("Boundaries feature-state rows keyed by ref need string keys.");
|
|
6414
|
+
}
|
|
6415
|
+
next.set(row.key, row.value);
|
|
6416
|
+
}
|
|
6417
|
+
if (sourceReady()) {
|
|
6418
|
+
for (const id of applied.keys()) if (!next.has(id)) erase(id);
|
|
6419
|
+
for (const [id, value] of next) if (applied.get(id) !== value) write(id, value);
|
|
6420
|
+
} else {
|
|
6421
|
+
pendingReload = true;
|
|
6422
|
+
}
|
|
6423
|
+
applied = next;
|
|
6424
|
+
}
|
|
6425
|
+
});
|
|
6426
|
+
}
|
|
6427
|
+
function promotedKey(map2, source) {
|
|
6428
|
+
const definition = map2.getStyle?.()?.sources?.[source];
|
|
6429
|
+
const promoteId = definition?.promoteId;
|
|
6430
|
+
if (promoteId === void 0) return void 0;
|
|
6431
|
+
const value = typeof promoteId === "string" ? promoteId : promoteId[tileflowBoundaryAreasV1Schema.layers.areas];
|
|
6432
|
+
return value === "ref" ? "ref" : void 0;
|
|
6433
|
+
}
|
|
6434
|
+
|
|
6435
|
+
// src/mobile-discovery.ts
|
|
6436
|
+
var tileflowMobileDiscoveryMaximumBytes = 4096;
|
|
6437
|
+
function parseTileflowMobileDiscovery(value, discoveryUrl) {
|
|
6438
|
+
const fail = () => {
|
|
6439
|
+
throw new Error("Invalid mobile discovery.");
|
|
6440
|
+
};
|
|
6441
|
+
if (typeof discoveryUrl !== "string" || discoveryUrl.length > 2048) return fail();
|
|
6442
|
+
const url = parseNativeUrl(discoveryUrl);
|
|
6443
|
+
const match = /^\/maps\/(map_[A-Za-z0-9_-]{16})\/mobile\/manifest\.json$/u.exec(url.pathname);
|
|
6444
|
+
const secure = url.protocol === "https:" || url.protocol === "http:" && (url.hostname === "127.0.0.1" || url.hostname === "localhost");
|
|
6445
|
+
if (!match || !secure || discoveryUrl !== `${url.origin}${url.pathname}`) return fail();
|
|
6446
|
+
const record2 = (candidate) => candidate !== null && typeof candidate === "object" && !Array.isArray(candidate);
|
|
6447
|
+
if (!record2(value) || Object.keys(value).sort().join(",") !== "deploymentVersion,mapId,representations,version")
|
|
6448
|
+
return fail();
|
|
6449
|
+
if (value.version !== 1 || value.mapId !== match[1] || !Number.isSafeInteger(value.deploymentVersion) || Number(value.deploymentVersion) < 1 || !record2(value.representations))
|
|
6450
|
+
return fail();
|
|
6451
|
+
const representations = {};
|
|
6452
|
+
const entries = Object.entries(value.representations);
|
|
6453
|
+
if (!entries.length || entries.length > 2) fail();
|
|
6454
|
+
for (const [profile, representation] of entries) {
|
|
6455
|
+
if (profile !== "native-v1" && profile !== "webview-v1") return fail();
|
|
6456
|
+
if (!record2(representation) || Object.keys(representation).join(",") !== "manifestUrl")
|
|
6457
|
+
return fail();
|
|
6458
|
+
const path = profile === "native-v1" ? "native" : "mobile/webview-v1";
|
|
6459
|
+
const expected = `${url.origin}/maps/${value.mapId}/${path}/manifest.json`;
|
|
6460
|
+
if (representation.manifestUrl !== expected) fail();
|
|
6461
|
+
representations[profile] = Object.freeze({ manifestUrl: expected });
|
|
6462
|
+
}
|
|
6463
|
+
return Object.freeze({
|
|
6464
|
+
version: 1,
|
|
6465
|
+
mapId: value.mapId,
|
|
6466
|
+
deploymentVersion: Number(value.deploymentVersion),
|
|
6467
|
+
representations: Object.freeze(representations)
|
|
6468
|
+
});
|
|
6469
|
+
}
|
|
5954
6470
|
export {
|
|
5955
6471
|
TileflowNativeSourceError,
|
|
5956
6472
|
TileflowNativeUrlError,
|
|
5957
6473
|
TileflowThemeBlendError,
|
|
6474
|
+
createBoundaryFeatureState,
|
|
5958
6475
|
createTileflowNativeSourceController,
|
|
5959
6476
|
fillTileflowThemeBlendTemplate,
|
|
5960
6477
|
loadTileflowNativeManifest,
|
|
5961
6478
|
nearestTileflowBlendTheme,
|
|
6479
|
+
parseTileflowMobileDiscovery,
|
|
5962
6480
|
planTileflowThemeBlend,
|
|
5963
6481
|
resolveTileflowNativeInitialView,
|
|
5964
6482
|
resolveTileflowNativeManifestUrl,
|
|
5965
6483
|
resolveTileflowNativeResourceUrl,
|
|
6484
|
+
tileflowBoundaryFamilies,
|
|
6485
|
+
tileflowMobileDiscoveryMaximumBytes,
|
|
5966
6486
|
tileflowNativeManifestLimits,
|
|
5967
6487
|
tileflowNativeUrlLimits,
|
|
5968
6488
|
tileflowThemeBlendLimits,
|