@purescraps/purehtml 0.4.1 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/examples/simple.js +763 -1133
- package/dist/examples/simple.js.map +1 -1
- package/dist/src/index.js +763 -1133
- package/dist/src/index.js.map +1 -1
- package/package.json +14 -14
package/dist/examples/simple.js
CHANGED
|
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/ajv@8.
|
|
31
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js
|
|
32
32
|
var require_code = __commonJS({
|
|
33
|
-
"node_modules/.pnpm/ajv@8.
|
|
33
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
|
|
34
34
|
"use strict";
|
|
35
35
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
36
36
|
exports2.regexpCode = exports2.getEsmExportName = exports2.getProperty = exports2.safeStringify = exports2.stringify = exports2.strConcat = exports2.addCodeArg = exports2.str = exports2._ = exports2.nil = exports2._Code = exports2.Name = exports2.IDENTIFIER = exports2._CodeOrName = void 0;
|
|
@@ -182,9 +182,9 @@ var require_code = __commonJS({
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
// node_modules/.pnpm/ajv@8.
|
|
185
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js
|
|
186
186
|
var require_scope = __commonJS({
|
|
187
|
-
"node_modules/.pnpm/ajv@8.
|
|
187
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
|
|
188
188
|
"use strict";
|
|
189
189
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
190
190
|
exports2.ValueScope = exports2.ValueScopeName = exports2.Scope = exports2.varKinds = exports2.UsedValueState = void 0;
|
|
@@ -199,7 +199,7 @@ var require_scope = __commonJS({
|
|
|
199
199
|
(function(UsedValueState2) {
|
|
200
200
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
201
201
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
202
|
-
})(UsedValueState
|
|
202
|
+
})(UsedValueState || (exports2.UsedValueState = UsedValueState = {}));
|
|
203
203
|
exports2.varKinds = {
|
|
204
204
|
const: new code_1.Name("const"),
|
|
205
205
|
let: new code_1.Name("let"),
|
|
@@ -327,9 +327,9 @@ var require_scope = __commonJS({
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
// node_modules/.pnpm/ajv@8.
|
|
330
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js
|
|
331
331
|
var require_codegen = __commonJS({
|
|
332
|
-
"node_modules/.pnpm/ajv@8.
|
|
332
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
|
|
333
333
|
"use strict";
|
|
334
334
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
335
335
|
exports2.or = exports2.and = exports2.not = exports2.CodeGen = exports2.operators = exports2.varKinds = exports2.ValueScopeName = exports2.ValueScope = exports2.Scope = exports2.Name = exports2.regexpCode = exports2.stringify = exports2.getProperty = exports2.nil = exports2.strConcat = exports2.str = exports2._ = void 0;
|
|
@@ -1047,9 +1047,9 @@ var require_codegen = __commonJS({
|
|
|
1047
1047
|
}
|
|
1048
1048
|
});
|
|
1049
1049
|
|
|
1050
|
-
// node_modules/.pnpm/ajv@8.
|
|
1050
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js
|
|
1051
1051
|
var require_util = __commonJS({
|
|
1052
|
-
"node_modules/.pnpm/ajv@8.
|
|
1052
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js"(exports2) {
|
|
1053
1053
|
"use strict";
|
|
1054
1054
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1055
1055
|
exports2.checkStrictMode = exports2.getErrorPath = exports2.Type = exports2.useFunc = exports2.setEvaluated = exports2.evaluatedPropsToName = exports2.mergeEvaluated = exports2.eachItem = exports2.unescapeJsonPointer = exports2.escapeJsonPointer = exports2.escapeFragment = exports2.unescapeFragment = exports2.schemaRefOrVal = exports2.schemaHasRulesButRef = exports2.schemaHasRules = exports2.checkUnknownRules = exports2.alwaysValidSchema = exports2.toHash = void 0;
|
|
@@ -1193,7 +1193,7 @@ var require_util = __commonJS({
|
|
|
1193
1193
|
(function(Type2) {
|
|
1194
1194
|
Type2[Type2["Num"] = 0] = "Num";
|
|
1195
1195
|
Type2[Type2["Str"] = 1] = "Str";
|
|
1196
|
-
})(Type
|
|
1196
|
+
})(Type || (exports2.Type = Type = {}));
|
|
1197
1197
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1198
1198
|
if (dataProp instanceof codegen_1.Name) {
|
|
1199
1199
|
const isNumber = dataPropType === Type.Num;
|
|
@@ -1214,25 +1214,31 @@ var require_util = __commonJS({
|
|
|
1214
1214
|
}
|
|
1215
1215
|
});
|
|
1216
1216
|
|
|
1217
|
-
// node_modules/.pnpm/ajv@8.
|
|
1217
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js
|
|
1218
1218
|
var require_names = __commonJS({
|
|
1219
|
-
"node_modules/.pnpm/ajv@8.
|
|
1219
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js"(exports2) {
|
|
1220
1220
|
"use strict";
|
|
1221
1221
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1222
1222
|
var codegen_1 = require_codegen();
|
|
1223
1223
|
var names = {
|
|
1224
1224
|
// validation function arguments
|
|
1225
1225
|
data: new codegen_1.Name("data"),
|
|
1226
|
+
// data passed to validation function
|
|
1226
1227
|
// args passed from referencing schema
|
|
1227
1228
|
valCxt: new codegen_1.Name("valCxt"),
|
|
1229
|
+
// validation/data context - should not be used directly, it is destructured to the names below
|
|
1228
1230
|
instancePath: new codegen_1.Name("instancePath"),
|
|
1229
1231
|
parentData: new codegen_1.Name("parentData"),
|
|
1230
1232
|
parentDataProperty: new codegen_1.Name("parentDataProperty"),
|
|
1231
1233
|
rootData: new codegen_1.Name("rootData"),
|
|
1234
|
+
// root data - same as the data passed to the first/top validation function
|
|
1232
1235
|
dynamicAnchors: new codegen_1.Name("dynamicAnchors"),
|
|
1236
|
+
// used to support recursiveRef and dynamicRef
|
|
1233
1237
|
// function scoped variables
|
|
1234
1238
|
vErrors: new codegen_1.Name("vErrors"),
|
|
1239
|
+
// null or array of validation errors
|
|
1235
1240
|
errors: new codegen_1.Name("errors"),
|
|
1241
|
+
// counter of validation errors
|
|
1236
1242
|
this: new codegen_1.Name("this"),
|
|
1237
1243
|
// "globals"
|
|
1238
1244
|
self: new codegen_1.Name("self"),
|
|
@@ -1247,9 +1253,9 @@ var require_names = __commonJS({
|
|
|
1247
1253
|
}
|
|
1248
1254
|
});
|
|
1249
1255
|
|
|
1250
|
-
// node_modules/.pnpm/ajv@8.
|
|
1256
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js
|
|
1251
1257
|
var require_errors = __commonJS({
|
|
1252
|
-
"node_modules/.pnpm/ajv@8.
|
|
1258
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js"(exports2) {
|
|
1253
1259
|
"use strict";
|
|
1254
1260
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1255
1261
|
exports2.extendErrors = exports2.resetErrorsCount = exports2.reportExtraError = exports2.reportError = exports2.keyword$DataError = exports2.keywordError = void 0;
|
|
@@ -1320,6 +1326,7 @@ var require_errors = __commonJS({
|
|
|
1320
1326
|
var E = {
|
|
1321
1327
|
keyword: new codegen_1.Name("keyword"),
|
|
1322
1328
|
schemaPath: new codegen_1.Name("schemaPath"),
|
|
1329
|
+
// also used in JTD errors
|
|
1323
1330
|
params: new codegen_1.Name("params"),
|
|
1324
1331
|
propertyName: new codegen_1.Name("propertyName"),
|
|
1325
1332
|
message: new codegen_1.Name("message"),
|
|
@@ -1368,9 +1375,9 @@ var require_errors = __commonJS({
|
|
|
1368
1375
|
}
|
|
1369
1376
|
});
|
|
1370
1377
|
|
|
1371
|
-
// node_modules/.pnpm/ajv@8.
|
|
1378
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1372
1379
|
var require_boolSchema = __commonJS({
|
|
1373
|
-
"node_modules/.pnpm/ajv@8.
|
|
1380
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
|
|
1374
1381
|
"use strict";
|
|
1375
1382
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1376
1383
|
exports2.boolOrEmptySchema = exports2.topBoolOrEmptySchema = void 0;
|
|
@@ -1419,9 +1426,9 @@ var require_boolSchema = __commonJS({
|
|
|
1419
1426
|
}
|
|
1420
1427
|
});
|
|
1421
1428
|
|
|
1422
|
-
// node_modules/.pnpm/ajv@8.
|
|
1429
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js
|
|
1423
1430
|
var require_rules = __commonJS({
|
|
1424
|
-
"node_modules/.pnpm/ajv@8.
|
|
1431
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js"(exports2) {
|
|
1425
1432
|
"use strict";
|
|
1426
1433
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1427
1434
|
exports2.getRules = exports2.isJSONType = void 0;
|
|
@@ -1450,9 +1457,9 @@ var require_rules = __commonJS({
|
|
|
1450
1457
|
}
|
|
1451
1458
|
});
|
|
1452
1459
|
|
|
1453
|
-
// node_modules/.pnpm/ajv@8.
|
|
1460
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1454
1461
|
var require_applicability = __commonJS({
|
|
1455
|
-
"node_modules/.pnpm/ajv@8.
|
|
1462
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
|
|
1456
1463
|
"use strict";
|
|
1457
1464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1458
1465
|
exports2.shouldUseRule = exports2.shouldUseGroup = exports2.schemaHasRulesForType = void 0;
|
|
@@ -1473,9 +1480,9 @@ var require_applicability = __commonJS({
|
|
|
1473
1480
|
}
|
|
1474
1481
|
});
|
|
1475
1482
|
|
|
1476
|
-
// node_modules/.pnpm/ajv@8.
|
|
1483
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1477
1484
|
var require_dataType = __commonJS({
|
|
1478
|
-
"node_modules/.pnpm/ajv@8.
|
|
1485
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
|
|
1479
1486
|
"use strict";
|
|
1480
1487
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1481
1488
|
exports2.reportTypeError = exports2.checkDataTypes = exports2.checkDataType = exports2.coerceAndCheckDataType = exports2.getJSONTypes = exports2.getSchemaTypes = exports2.DataType = void 0;
|
|
@@ -1488,7 +1495,7 @@ var require_dataType = __commonJS({
|
|
|
1488
1495
|
(function(DataType2) {
|
|
1489
1496
|
DataType2[DataType2["Correct"] = 0] = "Correct";
|
|
1490
1497
|
DataType2[DataType2["Wrong"] = 1] = "Wrong";
|
|
1491
|
-
})(DataType
|
|
1498
|
+
})(DataType || (exports2.DataType = DataType = {}));
|
|
1492
1499
|
function getSchemaTypes(schema) {
|
|
1493
1500
|
const types = getJSONTypes(schema.type);
|
|
1494
1501
|
const hasNull = types.includes("null");
|
|
@@ -1657,9 +1664,9 @@ var require_dataType = __commonJS({
|
|
|
1657
1664
|
}
|
|
1658
1665
|
});
|
|
1659
1666
|
|
|
1660
|
-
// node_modules/.pnpm/ajv@8.
|
|
1667
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1661
1668
|
var require_defaults = __commonJS({
|
|
1662
|
-
"node_modules/.pnpm/ajv@8.
|
|
1669
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
|
|
1663
1670
|
"use strict";
|
|
1664
1671
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1665
1672
|
exports2.assignDefaults = void 0;
|
|
@@ -1694,9 +1701,9 @@ var require_defaults = __commonJS({
|
|
|
1694
1701
|
}
|
|
1695
1702
|
});
|
|
1696
1703
|
|
|
1697
|
-
// node_modules/.pnpm/ajv@8.
|
|
1704
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js
|
|
1698
1705
|
var require_code2 = __commonJS({
|
|
1699
|
-
"node_modules/.pnpm/ajv@8.
|
|
1706
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js"(exports2) {
|
|
1700
1707
|
"use strict";
|
|
1701
1708
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1702
1709
|
exports2.validateUnion = exports2.validateArray = exports2.usePattern = exports2.callValidateCode = exports2.schemaProperties = exports2.allSchemaProperties = exports2.noPropertyInData = exports2.propertyInData = exports2.isOwnProperty = exports2.hasPropFunc = exports2.reportMissingProp = exports2.checkMissingProp = exports2.checkReportMissingProp = void 0;
|
|
@@ -1827,9 +1834,9 @@ var require_code2 = __commonJS({
|
|
|
1827
1834
|
}
|
|
1828
1835
|
});
|
|
1829
1836
|
|
|
1830
|
-
// node_modules/.pnpm/ajv@8.
|
|
1837
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1831
1838
|
var require_keyword = __commonJS({
|
|
1832
|
-
"node_modules/.pnpm/ajv@8.
|
|
1839
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
|
|
1833
1840
|
"use strict";
|
|
1834
1841
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1835
1842
|
exports2.validateKeywordUsage = exports2.validSchemaType = exports2.funcKeywordCode = exports2.macroKeywordCode = void 0;
|
|
@@ -1945,9 +1952,9 @@ var require_keyword = __commonJS({
|
|
|
1945
1952
|
}
|
|
1946
1953
|
});
|
|
1947
1954
|
|
|
1948
|
-
// node_modules/.pnpm/ajv@8.
|
|
1955
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1949
1956
|
var require_subschema = __commonJS({
|
|
1950
|
-
"node_modules/.pnpm/ajv@8.
|
|
1957
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
|
|
1951
1958
|
"use strict";
|
|
1952
1959
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1953
1960
|
exports2.extendSubschemaMode = exports2.extendSubschemaData = exports2.getSubschema = void 0;
|
|
@@ -2033,38 +2040,28 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2033
2040
|
"node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports2, module2) {
|
|
2034
2041
|
"use strict";
|
|
2035
2042
|
module2.exports = function equal(a, b) {
|
|
2036
|
-
if (a === b)
|
|
2037
|
-
return true;
|
|
2043
|
+
if (a === b) return true;
|
|
2038
2044
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
2039
|
-
if (a.constructor !== b.constructor)
|
|
2040
|
-
return false;
|
|
2045
|
+
if (a.constructor !== b.constructor) return false;
|
|
2041
2046
|
var length, i, keys;
|
|
2042
2047
|
if (Array.isArray(a)) {
|
|
2043
2048
|
length = a.length;
|
|
2044
|
-
if (length != b.length)
|
|
2045
|
-
return false;
|
|
2049
|
+
if (length != b.length) return false;
|
|
2046
2050
|
for (i = length; i-- !== 0; )
|
|
2047
|
-
if (!equal(a[i], b[i]))
|
|
2048
|
-
return false;
|
|
2051
|
+
if (!equal(a[i], b[i])) return false;
|
|
2049
2052
|
return true;
|
|
2050
2053
|
}
|
|
2051
|
-
if (a.constructor === RegExp)
|
|
2052
|
-
|
|
2053
|
-
if (a.
|
|
2054
|
-
return a.valueOf() === b.valueOf();
|
|
2055
|
-
if (a.toString !== Object.prototype.toString)
|
|
2056
|
-
return a.toString() === b.toString();
|
|
2054
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
2055
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
2056
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
2057
2057
|
keys = Object.keys(a);
|
|
2058
2058
|
length = keys.length;
|
|
2059
|
-
if (length !== Object.keys(b).length)
|
|
2060
|
-
return false;
|
|
2059
|
+
if (length !== Object.keys(b).length) return false;
|
|
2061
2060
|
for (i = length; i-- !== 0; )
|
|
2062
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
|
|
2063
|
-
return false;
|
|
2061
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
2064
2062
|
for (i = length; i-- !== 0; ) {
|
|
2065
2063
|
var key = keys[i];
|
|
2066
|
-
if (!equal(a[key], b[key]))
|
|
2067
|
-
return false;
|
|
2064
|
+
if (!equal(a[key], b[key])) return false;
|
|
2068
2065
|
}
|
|
2069
2066
|
return true;
|
|
2070
2067
|
}
|
|
@@ -2161,9 +2158,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2161
2158
|
}
|
|
2162
2159
|
});
|
|
2163
2160
|
|
|
2164
|
-
// node_modules/.pnpm/ajv@8.
|
|
2161
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js
|
|
2165
2162
|
var require_resolve = __commonJS({
|
|
2166
|
-
"node_modules/.pnpm/ajv@8.
|
|
2163
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js"(exports2) {
|
|
2167
2164
|
"use strict";
|
|
2168
2165
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2169
2166
|
exports2.getSchemaRefs = exports2.resolveUrl = exports2.normalizeId = exports2._getFullPath = exports2.getFullPath = exports2.inlineRef = void 0;
|
|
@@ -2269,15 +2266,15 @@ var require_resolve = __commonJS({
|
|
|
2269
2266
|
if (parentJsonPtr === void 0)
|
|
2270
2267
|
return;
|
|
2271
2268
|
const fullPath = pathPrefix + jsonPtr;
|
|
2272
|
-
let
|
|
2269
|
+
let innerBaseId = baseIds[parentJsonPtr];
|
|
2273
2270
|
if (typeof sch[schemaId] == "string")
|
|
2274
|
-
|
|
2271
|
+
innerBaseId = addRef.call(this, sch[schemaId]);
|
|
2275
2272
|
addAnchor.call(this, sch.$anchor);
|
|
2276
2273
|
addAnchor.call(this, sch.$dynamicAnchor);
|
|
2277
|
-
baseIds[jsonPtr] =
|
|
2274
|
+
baseIds[jsonPtr] = innerBaseId;
|
|
2278
2275
|
function addRef(ref) {
|
|
2279
2276
|
const _resolve = this.opts.uriResolver.resolve;
|
|
2280
|
-
ref = normalizeId(
|
|
2277
|
+
ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref);
|
|
2281
2278
|
if (schemaRefs.has(ref))
|
|
2282
2279
|
throw ambiguos(ref);
|
|
2283
2280
|
schemaRefs.add(ref);
|
|
@@ -2317,9 +2314,9 @@ var require_resolve = __commonJS({
|
|
|
2317
2314
|
}
|
|
2318
2315
|
});
|
|
2319
2316
|
|
|
2320
|
-
// node_modules/.pnpm/ajv@8.
|
|
2317
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js
|
|
2321
2318
|
var require_validate = __commonJS({
|
|
2322
|
-
"node_modules/.pnpm/ajv@8.
|
|
2319
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js"(exports2) {
|
|
2323
2320
|
"use strict";
|
|
2324
2321
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2325
2322
|
exports2.getData = exports2.KeywordCxt = exports2.validateFunctionCode = void 0;
|
|
@@ -2825,9 +2822,9 @@ var require_validate = __commonJS({
|
|
|
2825
2822
|
}
|
|
2826
2823
|
});
|
|
2827
2824
|
|
|
2828
|
-
// node_modules/.pnpm/ajv@8.
|
|
2825
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js
|
|
2829
2826
|
var require_validation_error = __commonJS({
|
|
2830
|
-
"node_modules/.pnpm/ajv@8.
|
|
2827
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
|
|
2831
2828
|
"use strict";
|
|
2832
2829
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2833
2830
|
var ValidationError = class extends Error {
|
|
@@ -2841,9 +2838,9 @@ var require_validation_error = __commonJS({
|
|
|
2841
2838
|
}
|
|
2842
2839
|
});
|
|
2843
2840
|
|
|
2844
|
-
// node_modules/.pnpm/ajv@8.
|
|
2841
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js
|
|
2845
2842
|
var require_ref_error = __commonJS({
|
|
2846
|
-
"node_modules/.pnpm/ajv@8.
|
|
2843
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js"(exports2) {
|
|
2847
2844
|
"use strict";
|
|
2848
2845
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2849
2846
|
var resolve_1 = require_resolve();
|
|
@@ -2858,9 +2855,9 @@ var require_ref_error = __commonJS({
|
|
|
2858
2855
|
}
|
|
2859
2856
|
});
|
|
2860
2857
|
|
|
2861
|
-
// node_modules/.pnpm/ajv@8.
|
|
2858
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js
|
|
2862
2859
|
var require_compile = __commonJS({
|
|
2863
|
-
"node_modules/.pnpm/ajv@8.
|
|
2860
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js"(exports2) {
|
|
2864
2861
|
"use strict";
|
|
2865
2862
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2866
2863
|
exports2.resolveSchema = exports2.getCompilingSchema = exports2.resolveRef = exports2.compileSchema = exports2.SchemaEnv = void 0;
|
|
@@ -2915,6 +2912,7 @@ var require_compile = __commonJS({
|
|
|
2915
2912
|
parentDataProperty: names_1.default.parentDataProperty,
|
|
2916
2913
|
dataNames: [names_1.default.data],
|
|
2917
2914
|
dataPathArr: [codegen_1.nil],
|
|
2915
|
+
// TODO can its length be used as dataLevel if nil is removed?
|
|
2918
2916
|
dataLevel: 0,
|
|
2919
2917
|
dataTypes: [],
|
|
2920
2918
|
definedProperties: /* @__PURE__ */ new Set(),
|
|
@@ -3081,9 +3079,9 @@ var require_compile = __commonJS({
|
|
|
3081
3079
|
}
|
|
3082
3080
|
});
|
|
3083
3081
|
|
|
3084
|
-
// node_modules/.pnpm/ajv@8.
|
|
3082
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json
|
|
3085
3083
|
var require_data = __commonJS({
|
|
3086
|
-
"node_modules/.pnpm/ajv@8.
|
|
3084
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json"(exports2, module2) {
|
|
3087
3085
|
module2.exports = {
|
|
3088
3086
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3089
3087
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3100,1056 +3098,687 @@ var require_data = __commonJS({
|
|
|
3100
3098
|
}
|
|
3101
3099
|
});
|
|
3102
3100
|
|
|
3103
|
-
// node_modules/.pnpm/uri
|
|
3104
|
-
var
|
|
3105
|
-
"node_modules/.pnpm/uri
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
}
|
|
3145
|
-
|
|
3101
|
+
// node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/scopedChars.js
|
|
3102
|
+
var require_scopedChars = __commonJS({
|
|
3103
|
+
"node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/scopedChars.js"(exports2, module2) {
|
|
3104
|
+
"use strict";
|
|
3105
|
+
var HEX = {
|
|
3106
|
+
0: 0,
|
|
3107
|
+
1: 1,
|
|
3108
|
+
2: 2,
|
|
3109
|
+
3: 3,
|
|
3110
|
+
4: 4,
|
|
3111
|
+
5: 5,
|
|
3112
|
+
6: 6,
|
|
3113
|
+
7: 7,
|
|
3114
|
+
8: 8,
|
|
3115
|
+
9: 9,
|
|
3116
|
+
a: 10,
|
|
3117
|
+
A: 10,
|
|
3118
|
+
b: 11,
|
|
3119
|
+
B: 11,
|
|
3120
|
+
c: 12,
|
|
3121
|
+
C: 12,
|
|
3122
|
+
d: 13,
|
|
3123
|
+
D: 13,
|
|
3124
|
+
e: 14,
|
|
3125
|
+
E: 14,
|
|
3126
|
+
f: 15,
|
|
3127
|
+
F: 15
|
|
3128
|
+
};
|
|
3129
|
+
module2.exports = {
|
|
3130
|
+
HEX
|
|
3131
|
+
};
|
|
3132
|
+
}
|
|
3133
|
+
});
|
|
3134
|
+
|
|
3135
|
+
// node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/utils.js
|
|
3136
|
+
var require_utils = __commonJS({
|
|
3137
|
+
"node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/utils.js"(exports2, module2) {
|
|
3138
|
+
"use strict";
|
|
3139
|
+
var { HEX } = require_scopedChars();
|
|
3140
|
+
function normalizeIPv4(host) {
|
|
3141
|
+
if (findToken(host, ".") < 3) {
|
|
3142
|
+
return { host, isIPV4: false };
|
|
3143
|
+
}
|
|
3144
|
+
const matches = host.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u) || [];
|
|
3145
|
+
const [address] = matches;
|
|
3146
|
+
if (address) {
|
|
3147
|
+
return { host: stripLeadingZeros(address, "."), isIPV4: true };
|
|
3148
|
+
} else {
|
|
3149
|
+
return { host, isIPV4: false };
|
|
3146
3150
|
}
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
|
|
3156
|
-
NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
|
|
3157
|
-
ESCAPE: new RegExp(merge("[^]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
|
|
3158
|
-
UNRESERVED: new RegExp(UNRESERVED$$2, "g"),
|
|
3159
|
-
OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$2, RESERVED$$), "g"),
|
|
3160
|
-
PCT_ENCODED: new RegExp(PCT_ENCODED$2, "g"),
|
|
3161
|
-
IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
|
|
3162
|
-
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
|
|
3163
|
-
//RFC 6874, with relaxed parsing rules
|
|
3164
|
-
};
|
|
3151
|
+
}
|
|
3152
|
+
function stringArrayToHexStripped(input, keepZero = false) {
|
|
3153
|
+
let acc = "";
|
|
3154
|
+
let strip = true;
|
|
3155
|
+
for (const c of input) {
|
|
3156
|
+
if (HEX[c] === void 0) return void 0;
|
|
3157
|
+
if (c !== "0" && strip === true) strip = false;
|
|
3158
|
+
if (!strip) acc += c;
|
|
3165
3159
|
}
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
} finally {
|
|
3184
|
-
try {
|
|
3185
|
-
if (!_n && _i["return"])
|
|
3186
|
-
_i["return"]();
|
|
3187
|
-
} finally {
|
|
3188
|
-
if (_d)
|
|
3189
|
-
throw _e;
|
|
3190
|
-
}
|
|
3191
|
-
}
|
|
3192
|
-
return _arr;
|
|
3193
|
-
}
|
|
3194
|
-
return function(arr, i) {
|
|
3195
|
-
if (Array.isArray(arr)) {
|
|
3196
|
-
return arr;
|
|
3197
|
-
} else if (Symbol.iterator in Object(arr)) {
|
|
3198
|
-
return sliceIterator(arr, i);
|
|
3199
|
-
} else {
|
|
3200
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
3201
|
-
}
|
|
3202
|
-
};
|
|
3203
|
-
}();
|
|
3204
|
-
var toConsumableArray = function(arr) {
|
|
3205
|
-
if (Array.isArray(arr)) {
|
|
3206
|
-
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
|
|
3207
|
-
arr2[i] = arr[i];
|
|
3208
|
-
return arr2;
|
|
3209
|
-
} else {
|
|
3210
|
-
return Array.from(arr);
|
|
3211
|
-
}
|
|
3212
|
-
};
|
|
3213
|
-
var maxInt = 2147483647;
|
|
3214
|
-
var base = 36;
|
|
3215
|
-
var tMin = 1;
|
|
3216
|
-
var tMax = 26;
|
|
3217
|
-
var skew = 38;
|
|
3218
|
-
var damp = 700;
|
|
3219
|
-
var initialBias = 72;
|
|
3220
|
-
var initialN = 128;
|
|
3221
|
-
var delimiter = "-";
|
|
3222
|
-
var regexPunycode = /^xn--/;
|
|
3223
|
-
var regexNonASCII = /[^\0-\x7E]/;
|
|
3224
|
-
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
|
|
3225
|
-
var errors = {
|
|
3226
|
-
"overflow": "Overflow: input needs wider integers to process",
|
|
3227
|
-
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3228
|
-
"invalid-input": "Invalid input"
|
|
3229
|
-
};
|
|
3230
|
-
var baseMinusTMin = base - tMin;
|
|
3231
|
-
var floor = Math.floor;
|
|
3232
|
-
var stringFromCharCode = String.fromCharCode;
|
|
3233
|
-
function error$1(type2) {
|
|
3234
|
-
throw new RangeError(errors[type2]);
|
|
3235
|
-
}
|
|
3236
|
-
function map(array, fn) {
|
|
3237
|
-
var result = [];
|
|
3238
|
-
var length = array.length;
|
|
3239
|
-
while (length--) {
|
|
3240
|
-
result[length] = fn(array[length]);
|
|
3241
|
-
}
|
|
3242
|
-
return result;
|
|
3243
|
-
}
|
|
3244
|
-
function mapDomain(string, fn) {
|
|
3245
|
-
var parts = string.split("@");
|
|
3246
|
-
var result = "";
|
|
3247
|
-
if (parts.length > 1) {
|
|
3248
|
-
result = parts[0] + "@";
|
|
3249
|
-
string = parts[1];
|
|
3250
|
-
}
|
|
3251
|
-
string = string.replace(regexSeparators, ".");
|
|
3252
|
-
var labels = string.split(".");
|
|
3253
|
-
var encoded = map(labels, fn).join(".");
|
|
3254
|
-
return result + encoded;
|
|
3255
|
-
}
|
|
3256
|
-
function ucs2decode(string) {
|
|
3257
|
-
var output = [];
|
|
3258
|
-
var counter = 0;
|
|
3259
|
-
var length = string.length;
|
|
3260
|
-
while (counter < length) {
|
|
3261
|
-
var value = string.charCodeAt(counter++);
|
|
3262
|
-
if (value >= 55296 && value <= 56319 && counter < length) {
|
|
3263
|
-
var extra = string.charCodeAt(counter++);
|
|
3264
|
-
if ((extra & 64512) == 56320) {
|
|
3265
|
-
output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
|
|
3160
|
+
if (keepZero && acc.length === 0) acc = "0";
|
|
3161
|
+
return acc;
|
|
3162
|
+
}
|
|
3163
|
+
function getIPV6(input) {
|
|
3164
|
+
let tokenCount = 0;
|
|
3165
|
+
const output = { error: false, address: "", zone: "" };
|
|
3166
|
+
const address = [];
|
|
3167
|
+
const buffer = [];
|
|
3168
|
+
let isZone = false;
|
|
3169
|
+
let endipv6Encountered = false;
|
|
3170
|
+
let endIpv6 = false;
|
|
3171
|
+
function consume() {
|
|
3172
|
+
if (buffer.length) {
|
|
3173
|
+
if (isZone === false) {
|
|
3174
|
+
const hex = stringArrayToHexStripped(buffer);
|
|
3175
|
+
if (hex !== void 0) {
|
|
3176
|
+
address.push(hex);
|
|
3266
3177
|
} else {
|
|
3267
|
-
output.
|
|
3268
|
-
|
|
3178
|
+
output.error = true;
|
|
3179
|
+
return false;
|
|
3269
3180
|
}
|
|
3270
|
-
} else {
|
|
3271
|
-
output.push(value);
|
|
3272
3181
|
}
|
|
3182
|
+
buffer.length = 0;
|
|
3273
3183
|
}
|
|
3274
|
-
return
|
|
3184
|
+
return true;
|
|
3275
3185
|
}
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
if (codePoint - 48 < 10) {
|
|
3281
|
-
return codePoint - 22;
|
|
3282
|
-
}
|
|
3283
|
-
if (codePoint - 65 < 26) {
|
|
3284
|
-
return codePoint - 65;
|
|
3285
|
-
}
|
|
3286
|
-
if (codePoint - 97 < 26) {
|
|
3287
|
-
return codePoint - 97;
|
|
3186
|
+
for (let i = 0; i < input.length; i++) {
|
|
3187
|
+
const cursor = input[i];
|
|
3188
|
+
if (cursor === "[" || cursor === "]") {
|
|
3189
|
+
continue;
|
|
3288
3190
|
}
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
3293
|
-
};
|
|
3294
|
-
var adapt = function adapt2(delta, numPoints, firstTime) {
|
|
3295
|
-
var k = 0;
|
|
3296
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
3297
|
-
delta += floor(delta / numPoints);
|
|
3298
|
-
for (
|
|
3299
|
-
;
|
|
3300
|
-
/* no initialization */
|
|
3301
|
-
delta > baseMinusTMin * tMax >> 1;
|
|
3302
|
-
k += base
|
|
3303
|
-
) {
|
|
3304
|
-
delta = floor(delta / baseMinusTMin);
|
|
3305
|
-
}
|
|
3306
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
3307
|
-
};
|
|
3308
|
-
var decode = function decode2(input) {
|
|
3309
|
-
var output = [];
|
|
3310
|
-
var inputLength = input.length;
|
|
3311
|
-
var i = 0;
|
|
3312
|
-
var n = initialN;
|
|
3313
|
-
var bias = initialBias;
|
|
3314
|
-
var basic = input.lastIndexOf(delimiter);
|
|
3315
|
-
if (basic < 0) {
|
|
3316
|
-
basic = 0;
|
|
3317
|
-
}
|
|
3318
|
-
for (var j = 0; j < basic; ++j) {
|
|
3319
|
-
if (input.charCodeAt(j) >= 128) {
|
|
3320
|
-
error$1("not-basic");
|
|
3191
|
+
if (cursor === ":") {
|
|
3192
|
+
if (endipv6Encountered === true) {
|
|
3193
|
+
endIpv6 = true;
|
|
3321
3194
|
}
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
for (var index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
|
|
3325
|
-
var oldi = i;
|
|
3326
|
-
for (
|
|
3327
|
-
var w = 1, k = base;
|
|
3328
|
-
;
|
|
3329
|
-
/* no condition */
|
|
3330
|
-
k += base
|
|
3331
|
-
) {
|
|
3332
|
-
if (index >= inputLength) {
|
|
3333
|
-
error$1("invalid-input");
|
|
3334
|
-
}
|
|
3335
|
-
var digit = basicToDigit(input.charCodeAt(index++));
|
|
3336
|
-
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
|
3337
|
-
error$1("overflow");
|
|
3338
|
-
}
|
|
3339
|
-
i += digit * w;
|
|
3340
|
-
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
3341
|
-
if (digit < t) {
|
|
3342
|
-
break;
|
|
3343
|
-
}
|
|
3344
|
-
var baseMinusT = base - t;
|
|
3345
|
-
if (w > floor(maxInt / baseMinusT)) {
|
|
3346
|
-
error$1("overflow");
|
|
3347
|
-
}
|
|
3348
|
-
w *= baseMinusT;
|
|
3195
|
+
if (!consume()) {
|
|
3196
|
+
break;
|
|
3349
3197
|
}
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
if (
|
|
3353
|
-
error
|
|
3198
|
+
tokenCount++;
|
|
3199
|
+
address.push(":");
|
|
3200
|
+
if (tokenCount > 7) {
|
|
3201
|
+
output.error = true;
|
|
3202
|
+
break;
|
|
3354
3203
|
}
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
output.splice(i++, 0, n);
|
|
3358
|
-
}
|
|
3359
|
-
return String.fromCodePoint.apply(String, output);
|
|
3360
|
-
};
|
|
3361
|
-
var encode = function encode2(input) {
|
|
3362
|
-
var output = [];
|
|
3363
|
-
input = ucs2decode(input);
|
|
3364
|
-
var inputLength = input.length;
|
|
3365
|
-
var n = initialN;
|
|
3366
|
-
var delta = 0;
|
|
3367
|
-
var bias = initialBias;
|
|
3368
|
-
var _iteratorNormalCompletion = true;
|
|
3369
|
-
var _didIteratorError = false;
|
|
3370
|
-
var _iteratorError = void 0;
|
|
3371
|
-
try {
|
|
3372
|
-
for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3373
|
-
var _currentValue2 = _step.value;
|
|
3374
|
-
if (_currentValue2 < 128) {
|
|
3375
|
-
output.push(stringFromCharCode(_currentValue2));
|
|
3376
|
-
}
|
|
3204
|
+
if (i - 1 >= 0 && input[i - 1] === ":") {
|
|
3205
|
+
endipv6Encountered = true;
|
|
3377
3206
|
}
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
try {
|
|
3383
|
-
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
3384
|
-
_iterator.return();
|
|
3385
|
-
}
|
|
3386
|
-
} finally {
|
|
3387
|
-
if (_didIteratorError) {
|
|
3388
|
-
throw _iteratorError;
|
|
3389
|
-
}
|
|
3207
|
+
continue;
|
|
3208
|
+
} else if (cursor === "%") {
|
|
3209
|
+
if (!consume()) {
|
|
3210
|
+
break;
|
|
3390
3211
|
}
|
|
3212
|
+
isZone = true;
|
|
3213
|
+
} else {
|
|
3214
|
+
buffer.push(cursor);
|
|
3215
|
+
continue;
|
|
3391
3216
|
}
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
if (
|
|
3395
|
-
output.
|
|
3217
|
+
}
|
|
3218
|
+
if (buffer.length) {
|
|
3219
|
+
if (isZone) {
|
|
3220
|
+
output.zone = buffer.join("");
|
|
3221
|
+
} else if (endIpv6) {
|
|
3222
|
+
address.push(buffer.join(""));
|
|
3223
|
+
} else {
|
|
3224
|
+
address.push(stringArrayToHexStripped(buffer));
|
|
3396
3225
|
}
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
} finally {
|
|
3413
|
-
try {
|
|
3414
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
3415
|
-
_iterator2.return();
|
|
3416
|
-
}
|
|
3417
|
-
} finally {
|
|
3418
|
-
if (_didIteratorError2) {
|
|
3419
|
-
throw _iteratorError2;
|
|
3420
|
-
}
|
|
3421
|
-
}
|
|
3422
|
-
}
|
|
3423
|
-
var handledCPCountPlusOne = handledCPCount + 1;
|
|
3424
|
-
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
3425
|
-
error$1("overflow");
|
|
3426
|
-
}
|
|
3427
|
-
delta += (m - n) * handledCPCountPlusOne;
|
|
3428
|
-
n = m;
|
|
3429
|
-
var _iteratorNormalCompletion3 = true;
|
|
3430
|
-
var _didIteratorError3 = false;
|
|
3431
|
-
var _iteratorError3 = void 0;
|
|
3432
|
-
try {
|
|
3433
|
-
for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
3434
|
-
var _currentValue = _step3.value;
|
|
3435
|
-
if (_currentValue < n && ++delta > maxInt) {
|
|
3436
|
-
error$1("overflow");
|
|
3437
|
-
}
|
|
3438
|
-
if (_currentValue == n) {
|
|
3439
|
-
var q = delta;
|
|
3440
|
-
for (
|
|
3441
|
-
var k = base;
|
|
3442
|
-
;
|
|
3443
|
-
/* no condition */
|
|
3444
|
-
k += base
|
|
3445
|
-
) {
|
|
3446
|
-
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
3447
|
-
if (q < t) {
|
|
3448
|
-
break;
|
|
3449
|
-
}
|
|
3450
|
-
var qMinusT = q - t;
|
|
3451
|
-
var baseMinusT = base - t;
|
|
3452
|
-
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
|
|
3453
|
-
q = floor(qMinusT / baseMinusT);
|
|
3454
|
-
}
|
|
3455
|
-
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
3456
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
3457
|
-
delta = 0;
|
|
3458
|
-
++handledCPCount;
|
|
3459
|
-
}
|
|
3460
|
-
}
|
|
3461
|
-
} catch (err) {
|
|
3462
|
-
_didIteratorError3 = true;
|
|
3463
|
-
_iteratorError3 = err;
|
|
3464
|
-
} finally {
|
|
3465
|
-
try {
|
|
3466
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return) {
|
|
3467
|
-
_iterator3.return();
|
|
3468
|
-
}
|
|
3469
|
-
} finally {
|
|
3470
|
-
if (_didIteratorError3) {
|
|
3471
|
-
throw _iteratorError3;
|
|
3472
|
-
}
|
|
3473
|
-
}
|
|
3474
|
-
}
|
|
3475
|
-
++delta;
|
|
3476
|
-
++n;
|
|
3226
|
+
}
|
|
3227
|
+
output.address = address.join("");
|
|
3228
|
+
return output;
|
|
3229
|
+
}
|
|
3230
|
+
function normalizeIPv6(host, opts = {}) {
|
|
3231
|
+
if (findToken(host, ":") < 2) {
|
|
3232
|
+
return { host, isIPV6: false };
|
|
3233
|
+
}
|
|
3234
|
+
const ipv6 = getIPV6(host);
|
|
3235
|
+
if (!ipv6.error) {
|
|
3236
|
+
let newHost = ipv6.address;
|
|
3237
|
+
let escapedHost = ipv6.address;
|
|
3238
|
+
if (ipv6.zone) {
|
|
3239
|
+
newHost += "%" + ipv6.zone;
|
|
3240
|
+
escapedHost += "%25" + ipv6.zone;
|
|
3477
3241
|
}
|
|
3478
|
-
return
|
|
3479
|
-
}
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
* @memberOf punycode
|
|
3494
|
-
* @type String
|
|
3495
|
-
*/
|
|
3496
|
-
"version": "2.1.0",
|
|
3497
|
-
/**
|
|
3498
|
-
* An object of methods to convert from JavaScript's internal character
|
|
3499
|
-
* representation (UCS-2) to Unicode code points, and back.
|
|
3500
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
3501
|
-
* @memberOf punycode
|
|
3502
|
-
* @type Object
|
|
3503
|
-
*/
|
|
3504
|
-
"ucs2": {
|
|
3505
|
-
"decode": ucs2decode,
|
|
3506
|
-
"encode": ucs2encode
|
|
3507
|
-
},
|
|
3508
|
-
"decode": decode,
|
|
3509
|
-
"encode": encode,
|
|
3510
|
-
"toASCII": toASCII,
|
|
3511
|
-
"toUnicode": toUnicode
|
|
3512
|
-
};
|
|
3513
|
-
var SCHEMES = {};
|
|
3514
|
-
function pctEncChar(chr) {
|
|
3515
|
-
var c = chr.charCodeAt(0);
|
|
3516
|
-
var e = void 0;
|
|
3517
|
-
if (c < 16)
|
|
3518
|
-
e = "%0" + c.toString(16).toUpperCase();
|
|
3519
|
-
else if (c < 128)
|
|
3520
|
-
e = "%" + c.toString(16).toUpperCase();
|
|
3521
|
-
else if (c < 2048)
|
|
3522
|
-
e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
3523
|
-
else
|
|
3524
|
-
e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
3525
|
-
return e;
|
|
3526
|
-
}
|
|
3527
|
-
function pctDecChars(str) {
|
|
3528
|
-
var newStr = "";
|
|
3529
|
-
var i = 0;
|
|
3530
|
-
var il = str.length;
|
|
3531
|
-
while (i < il) {
|
|
3532
|
-
var c = parseInt(str.substr(i + 1, 2), 16);
|
|
3533
|
-
if (c < 128) {
|
|
3534
|
-
newStr += String.fromCharCode(c);
|
|
3535
|
-
i += 3;
|
|
3536
|
-
} else if (c >= 194 && c < 224) {
|
|
3537
|
-
if (il - i >= 6) {
|
|
3538
|
-
var c2 = parseInt(str.substr(i + 4, 2), 16);
|
|
3539
|
-
newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
|
|
3540
|
-
} else {
|
|
3541
|
-
newStr += str.substr(i, 6);
|
|
3542
|
-
}
|
|
3543
|
-
i += 6;
|
|
3544
|
-
} else if (c >= 224) {
|
|
3545
|
-
if (il - i >= 9) {
|
|
3546
|
-
var _c = parseInt(str.substr(i + 4, 2), 16);
|
|
3547
|
-
var c3 = parseInt(str.substr(i + 7, 2), 16);
|
|
3548
|
-
newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
|
|
3549
|
-
} else {
|
|
3550
|
-
newStr += str.substr(i, 9);
|
|
3551
|
-
}
|
|
3552
|
-
i += 9;
|
|
3553
|
-
} else {
|
|
3554
|
-
newStr += str.substr(i, 3);
|
|
3555
|
-
i += 3;
|
|
3242
|
+
return { host: newHost, escapedHost, isIPV6: true };
|
|
3243
|
+
} else {
|
|
3244
|
+
return { host, isIPV6: false };
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
function stripLeadingZeros(str, token) {
|
|
3248
|
+
let out = "";
|
|
3249
|
+
let skip = true;
|
|
3250
|
+
const l = str.length;
|
|
3251
|
+
for (let i = 0; i < l; i++) {
|
|
3252
|
+
const c = str[i];
|
|
3253
|
+
if (c === "0" && skip) {
|
|
3254
|
+
if (i + 1 <= l && str[i + 1] === token || i + 1 === l) {
|
|
3255
|
+
out += c;
|
|
3256
|
+
skip = false;
|
|
3556
3257
|
}
|
|
3557
|
-
}
|
|
3558
|
-
return newStr;
|
|
3559
|
-
}
|
|
3560
|
-
function _normalizeComponentEncoding(components, protocol) {
|
|
3561
|
-
function decodeUnreserved2(str) {
|
|
3562
|
-
var decStr = pctDecChars(str);
|
|
3563
|
-
return !decStr.match(protocol.UNRESERVED) ? str : decStr;
|
|
3564
|
-
}
|
|
3565
|
-
if (components.scheme)
|
|
3566
|
-
components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_SCHEME, "");
|
|
3567
|
-
if (components.userinfo !== void 0)
|
|
3568
|
-
components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3569
|
-
if (components.host !== void 0)
|
|
3570
|
-
components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3571
|
-
if (components.path !== void 0)
|
|
3572
|
-
components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3573
|
-
if (components.query !== void 0)
|
|
3574
|
-
components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3575
|
-
if (components.fragment !== void 0)
|
|
3576
|
-
components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3577
|
-
return components;
|
|
3578
|
-
}
|
|
3579
|
-
function _stripLeadingZeros(str) {
|
|
3580
|
-
return str.replace(/^0*(.*)/, "$1") || "0";
|
|
3581
|
-
}
|
|
3582
|
-
function _normalizeIPv4(host, protocol) {
|
|
3583
|
-
var matches = host.match(protocol.IPV4ADDRESS) || [];
|
|
3584
|
-
var _matches = slicedToArray(matches, 2), address = _matches[1];
|
|
3585
|
-
if (address) {
|
|
3586
|
-
return address.split(".").map(_stripLeadingZeros).join(".");
|
|
3587
3258
|
} else {
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
}
|
|
3591
|
-
function _normalizeIPv6(host, protocol) {
|
|
3592
|
-
var matches = host.match(protocol.IPV6ADDRESS) || [];
|
|
3593
|
-
var _matches2 = slicedToArray(matches, 3), address = _matches2[1], zone = _matches2[2];
|
|
3594
|
-
if (address) {
|
|
3595
|
-
var _address$toLowerCase$ = address.toLowerCase().split("::").reverse(), _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), last = _address$toLowerCase$2[0], first = _address$toLowerCase$2[1];
|
|
3596
|
-
var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
|
|
3597
|
-
var lastFields = last.split(":").map(_stripLeadingZeros);
|
|
3598
|
-
var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
|
|
3599
|
-
var fieldCount = isLastFieldIPv4Address ? 7 : 8;
|
|
3600
|
-
var lastFieldsStart = lastFields.length - fieldCount;
|
|
3601
|
-
var fields = Array(fieldCount);
|
|
3602
|
-
for (var x = 0; x < fieldCount; ++x) {
|
|
3603
|
-
fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || "";
|
|
3604
|
-
}
|
|
3605
|
-
if (isLastFieldIPv4Address) {
|
|
3606
|
-
fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
|
|
3607
|
-
}
|
|
3608
|
-
var allZeroFields = fields.reduce(function(acc, field, index) {
|
|
3609
|
-
if (!field || field === "0") {
|
|
3610
|
-
var lastLongest = acc[acc.length - 1];
|
|
3611
|
-
if (lastLongest && lastLongest.index + lastLongest.length === index) {
|
|
3612
|
-
lastLongest.length++;
|
|
3613
|
-
} else {
|
|
3614
|
-
acc.push({ index, length: 1 });
|
|
3615
|
-
}
|
|
3616
|
-
}
|
|
3617
|
-
return acc;
|
|
3618
|
-
}, []);
|
|
3619
|
-
var longestZeroFields = allZeroFields.sort(function(a, b) {
|
|
3620
|
-
return b.length - a.length;
|
|
3621
|
-
})[0];
|
|
3622
|
-
var newHost = void 0;
|
|
3623
|
-
if (longestZeroFields && longestZeroFields.length > 1) {
|
|
3624
|
-
var newFirst = fields.slice(0, longestZeroFields.index);
|
|
3625
|
-
var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
|
|
3626
|
-
newHost = newFirst.join(":") + "::" + newLast.join(":");
|
|
3259
|
+
if (c === token) {
|
|
3260
|
+
skip = true;
|
|
3627
3261
|
} else {
|
|
3628
|
-
|
|
3262
|
+
skip = false;
|
|
3629
3263
|
}
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3264
|
+
out += c;
|
|
3265
|
+
}
|
|
3266
|
+
}
|
|
3267
|
+
return out;
|
|
3268
|
+
}
|
|
3269
|
+
function findToken(str, token) {
|
|
3270
|
+
let ind = 0;
|
|
3271
|
+
for (let i = 0; i < str.length; i++) {
|
|
3272
|
+
if (str[i] === token) ind++;
|
|
3273
|
+
}
|
|
3274
|
+
return ind;
|
|
3275
|
+
}
|
|
3276
|
+
var RDS1 = /^\.\.?\//u;
|
|
3277
|
+
var RDS2 = /^\/\.(?:\/|$)/u;
|
|
3278
|
+
var RDS3 = /^\/\.\.(?:\/|$)/u;
|
|
3279
|
+
var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u;
|
|
3280
|
+
function removeDotSegments(input) {
|
|
3281
|
+
const output = [];
|
|
3282
|
+
while (input.length) {
|
|
3283
|
+
if (input.match(RDS1)) {
|
|
3284
|
+
input = input.replace(RDS1, "");
|
|
3285
|
+
} else if (input.match(RDS2)) {
|
|
3286
|
+
input = input.replace(RDS2, "/");
|
|
3287
|
+
} else if (input.match(RDS3)) {
|
|
3288
|
+
input = input.replace(RDS3, "/");
|
|
3289
|
+
output.pop();
|
|
3290
|
+
} else if (input === "." || input === "..") {
|
|
3291
|
+
input = "";
|
|
3634
3292
|
} else {
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
function parse2(uriString) {
|
|
3641
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3642
|
-
var components = {};
|
|
3643
|
-
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
3644
|
-
if (options.reference === "suffix")
|
|
3645
|
-
uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
|
|
3646
|
-
var matches = uriString.match(URI_PARSE);
|
|
3647
|
-
if (matches) {
|
|
3648
|
-
if (NO_MATCH_IS_UNDEFINED) {
|
|
3649
|
-
components.scheme = matches[1];
|
|
3650
|
-
components.userinfo = matches[3];
|
|
3651
|
-
components.host = matches[4];
|
|
3652
|
-
components.port = parseInt(matches[5], 10);
|
|
3653
|
-
components.path = matches[6] || "";
|
|
3654
|
-
components.query = matches[7];
|
|
3655
|
-
components.fragment = matches[8];
|
|
3656
|
-
if (isNaN(components.port)) {
|
|
3657
|
-
components.port = matches[5];
|
|
3658
|
-
}
|
|
3659
|
-
} else {
|
|
3660
|
-
components.scheme = matches[1] || void 0;
|
|
3661
|
-
components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : void 0;
|
|
3662
|
-
components.host = uriString.indexOf("//") !== -1 ? matches[4] : void 0;
|
|
3663
|
-
components.port = parseInt(matches[5], 10);
|
|
3664
|
-
components.path = matches[6] || "";
|
|
3665
|
-
components.query = uriString.indexOf("?") !== -1 ? matches[7] : void 0;
|
|
3666
|
-
components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : void 0;
|
|
3667
|
-
if (isNaN(components.port)) {
|
|
3668
|
-
components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : void 0;
|
|
3669
|
-
}
|
|
3670
|
-
}
|
|
3671
|
-
if (components.host) {
|
|
3672
|
-
components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
|
|
3673
|
-
}
|
|
3674
|
-
if (components.scheme === void 0 && components.userinfo === void 0 && components.host === void 0 && components.port === void 0 && !components.path && components.query === void 0) {
|
|
3675
|
-
components.reference = "same-document";
|
|
3676
|
-
} else if (components.scheme === void 0) {
|
|
3677
|
-
components.reference = "relative";
|
|
3678
|
-
} else if (components.fragment === void 0) {
|
|
3679
|
-
components.reference = "absolute";
|
|
3680
|
-
} else {
|
|
3681
|
-
components.reference = "uri";
|
|
3682
|
-
}
|
|
3683
|
-
if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
|
|
3684
|
-
components.error = components.error || "URI is not a " + options.reference + " reference.";
|
|
3685
|
-
}
|
|
3686
|
-
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
3687
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
3688
|
-
if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
|
|
3689
|
-
try {
|
|
3690
|
-
components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
|
|
3691
|
-
} catch (e) {
|
|
3692
|
-
components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
|
|
3693
|
-
}
|
|
3694
|
-
}
|
|
3695
|
-
_normalizeComponentEncoding(components, URI_PROTOCOL);
|
|
3293
|
+
const im = input.match(RDS5);
|
|
3294
|
+
if (im) {
|
|
3295
|
+
const s = im[0];
|
|
3296
|
+
input = input.slice(s.length);
|
|
3297
|
+
output.push(s);
|
|
3696
3298
|
} else {
|
|
3697
|
-
|
|
3698
|
-
}
|
|
3699
|
-
if (schemeHandler && schemeHandler.parse) {
|
|
3700
|
-
schemeHandler.parse(components, options);
|
|
3299
|
+
throw new Error("Unexpected dot segment condition");
|
|
3701
3300
|
}
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
return output.join("");
|
|
3304
|
+
}
|
|
3305
|
+
function normalizeComponentEncoding(components, esc) {
|
|
3306
|
+
const func = esc !== true ? escape : unescape;
|
|
3307
|
+
if (components.scheme !== void 0) {
|
|
3308
|
+
components.scheme = func(components.scheme);
|
|
3309
|
+
}
|
|
3310
|
+
if (components.userinfo !== void 0) {
|
|
3311
|
+
components.userinfo = func(components.userinfo);
|
|
3312
|
+
}
|
|
3313
|
+
if (components.host !== void 0) {
|
|
3314
|
+
components.host = func(components.host);
|
|
3315
|
+
}
|
|
3316
|
+
if (components.path !== void 0) {
|
|
3317
|
+
components.path = func(components.path);
|
|
3318
|
+
}
|
|
3319
|
+
if (components.query !== void 0) {
|
|
3320
|
+
components.query = func(components.query);
|
|
3321
|
+
}
|
|
3322
|
+
if (components.fragment !== void 0) {
|
|
3323
|
+
components.fragment = func(components.fragment);
|
|
3324
|
+
}
|
|
3325
|
+
return components;
|
|
3326
|
+
}
|
|
3327
|
+
function recomposeAuthority(components, options) {
|
|
3328
|
+
const uriTokens = [];
|
|
3329
|
+
if (components.userinfo !== void 0) {
|
|
3330
|
+
uriTokens.push(components.userinfo);
|
|
3331
|
+
uriTokens.push("@");
|
|
3332
|
+
}
|
|
3333
|
+
if (components.host !== void 0) {
|
|
3334
|
+
let host = unescape(components.host);
|
|
3335
|
+
const ipV4res = normalizeIPv4(host);
|
|
3336
|
+
if (ipV4res.isIPV4) {
|
|
3337
|
+
host = ipV4res.host;
|
|
3702
3338
|
} else {
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
}
|
|
3707
|
-
function _recomposeAuthority(components, options) {
|
|
3708
|
-
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
3709
|
-
var uriTokens = [];
|
|
3710
|
-
if (components.userinfo !== void 0) {
|
|
3711
|
-
uriTokens.push(components.userinfo);
|
|
3712
|
-
uriTokens.push("@");
|
|
3713
|
-
}
|
|
3714
|
-
if (components.host !== void 0) {
|
|
3715
|
-
uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function(_, $1, $2) {
|
|
3716
|
-
return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
|
|
3717
|
-
}));
|
|
3718
|
-
}
|
|
3719
|
-
if (typeof components.port === "number" || typeof components.port === "string") {
|
|
3720
|
-
uriTokens.push(":");
|
|
3721
|
-
uriTokens.push(String(components.port));
|
|
3722
|
-
}
|
|
3723
|
-
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3724
|
-
}
|
|
3725
|
-
var RDS1 = /^\.\.?\//;
|
|
3726
|
-
var RDS2 = /^\/\.(\/|$)/;
|
|
3727
|
-
var RDS3 = /^\/\.\.(\/|$)/;
|
|
3728
|
-
var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
|
|
3729
|
-
function removeDotSegments(input) {
|
|
3730
|
-
var output = [];
|
|
3731
|
-
while (input.length) {
|
|
3732
|
-
if (input.match(RDS1)) {
|
|
3733
|
-
input = input.replace(RDS1, "");
|
|
3734
|
-
} else if (input.match(RDS2)) {
|
|
3735
|
-
input = input.replace(RDS2, "/");
|
|
3736
|
-
} else if (input.match(RDS3)) {
|
|
3737
|
-
input = input.replace(RDS3, "/");
|
|
3738
|
-
output.pop();
|
|
3739
|
-
} else if (input === "." || input === "..") {
|
|
3740
|
-
input = "";
|
|
3339
|
+
const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false });
|
|
3340
|
+
if (ipV6res.isIPV6 === true) {
|
|
3341
|
+
host = `[${ipV6res.escapedHost}]`;
|
|
3741
3342
|
} else {
|
|
3742
|
-
|
|
3743
|
-
if (im) {
|
|
3744
|
-
var s = im[0];
|
|
3745
|
-
input = input.slice(s.length);
|
|
3746
|
-
output.push(s);
|
|
3747
|
-
} else {
|
|
3748
|
-
throw new Error("Unexpected dot segment condition");
|
|
3749
|
-
}
|
|
3343
|
+
host = components.host;
|
|
3750
3344
|
}
|
|
3751
3345
|
}
|
|
3752
|
-
|
|
3753
|
-
}
|
|
3754
|
-
function serialize(components) {
|
|
3755
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3756
|
-
var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
3757
|
-
var uriTokens = [];
|
|
3758
|
-
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
3759
|
-
if (schemeHandler && schemeHandler.serialize)
|
|
3760
|
-
schemeHandler.serialize(components, options);
|
|
3761
|
-
if (components.host) {
|
|
3762
|
-
if (protocol.IPV6ADDRESS.test(components.host)) {
|
|
3763
|
-
} else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
|
|
3764
|
-
try {
|
|
3765
|
-
components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
|
|
3766
|
-
} catch (e) {
|
|
3767
|
-
components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
3768
|
-
}
|
|
3769
|
-
}
|
|
3770
|
-
}
|
|
3771
|
-
_normalizeComponentEncoding(components, protocol);
|
|
3772
|
-
if (options.reference !== "suffix" && components.scheme) {
|
|
3773
|
-
uriTokens.push(components.scheme);
|
|
3774
|
-
uriTokens.push(":");
|
|
3775
|
-
}
|
|
3776
|
-
var authority = _recomposeAuthority(components, options);
|
|
3777
|
-
if (authority !== void 0) {
|
|
3778
|
-
if (options.reference !== "suffix") {
|
|
3779
|
-
uriTokens.push("//");
|
|
3780
|
-
}
|
|
3781
|
-
uriTokens.push(authority);
|
|
3782
|
-
if (components.path && components.path.charAt(0) !== "/") {
|
|
3783
|
-
uriTokens.push("/");
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
if (components.path !== void 0) {
|
|
3787
|
-
var s = components.path;
|
|
3788
|
-
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
3789
|
-
s = removeDotSegments(s);
|
|
3790
|
-
}
|
|
3791
|
-
if (authority === void 0) {
|
|
3792
|
-
s = s.replace(/^\/\//, "/%2F");
|
|
3793
|
-
}
|
|
3794
|
-
uriTokens.push(s);
|
|
3795
|
-
}
|
|
3796
|
-
if (components.query !== void 0) {
|
|
3797
|
-
uriTokens.push("?");
|
|
3798
|
-
uriTokens.push(components.query);
|
|
3799
|
-
}
|
|
3800
|
-
if (components.fragment !== void 0) {
|
|
3801
|
-
uriTokens.push("#");
|
|
3802
|
-
uriTokens.push(components.fragment);
|
|
3803
|
-
}
|
|
3804
|
-
return uriTokens.join("");
|
|
3346
|
+
uriTokens.push(host);
|
|
3805
3347
|
}
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3348
|
+
if (typeof components.port === "number" || typeof components.port === "string") {
|
|
3349
|
+
uriTokens.push(":");
|
|
3350
|
+
uriTokens.push(String(components.port));
|
|
3351
|
+
}
|
|
3352
|
+
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3353
|
+
}
|
|
3354
|
+
module2.exports = {
|
|
3355
|
+
recomposeAuthority,
|
|
3356
|
+
normalizeComponentEncoding,
|
|
3357
|
+
removeDotSegments,
|
|
3358
|
+
normalizeIPv4,
|
|
3359
|
+
normalizeIPv6,
|
|
3360
|
+
stringArrayToHexStripped
|
|
3361
|
+
};
|
|
3362
|
+
}
|
|
3363
|
+
});
|
|
3364
|
+
|
|
3365
|
+
// node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/schemes.js
|
|
3366
|
+
var require_schemes = __commonJS({
|
|
3367
|
+
"node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
|
|
3368
|
+
"use strict";
|
|
3369
|
+
var UUID_REG = /^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;
|
|
3370
|
+
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
3371
|
+
function isSecure(wsComponents) {
|
|
3372
|
+
return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
|
|
3373
|
+
}
|
|
3374
|
+
function httpParse(components) {
|
|
3375
|
+
if (!components.host) {
|
|
3376
|
+
components.error = components.error || "HTTP URIs must have a host.";
|
|
3377
|
+
}
|
|
3378
|
+
return components;
|
|
3379
|
+
}
|
|
3380
|
+
function httpSerialize(components) {
|
|
3381
|
+
const secure = String(components.scheme).toLowerCase() === "https";
|
|
3382
|
+
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
3383
|
+
components.port = void 0;
|
|
3384
|
+
}
|
|
3385
|
+
if (!components.path) {
|
|
3386
|
+
components.path = "/";
|
|
3387
|
+
}
|
|
3388
|
+
return components;
|
|
3389
|
+
}
|
|
3390
|
+
function wsParse(wsComponents) {
|
|
3391
|
+
wsComponents.secure = isSecure(wsComponents);
|
|
3392
|
+
wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
|
|
3393
|
+
wsComponents.path = void 0;
|
|
3394
|
+
wsComponents.query = void 0;
|
|
3395
|
+
return wsComponents;
|
|
3396
|
+
}
|
|
3397
|
+
function wsSerialize(wsComponents) {
|
|
3398
|
+
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
|
3399
|
+
wsComponents.port = void 0;
|
|
3400
|
+
}
|
|
3401
|
+
if (typeof wsComponents.secure === "boolean") {
|
|
3402
|
+
wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
|
|
3403
|
+
wsComponents.secure = void 0;
|
|
3404
|
+
}
|
|
3405
|
+
if (wsComponents.resourceName) {
|
|
3406
|
+
const [path, query] = wsComponents.resourceName.split("?");
|
|
3407
|
+
wsComponents.path = path && path !== "/" ? path : void 0;
|
|
3408
|
+
wsComponents.query = query;
|
|
3409
|
+
wsComponents.resourceName = void 0;
|
|
3410
|
+
}
|
|
3411
|
+
wsComponents.fragment = void 0;
|
|
3412
|
+
return wsComponents;
|
|
3413
|
+
}
|
|
3414
|
+
function urnParse(urnComponents, options) {
|
|
3415
|
+
if (!urnComponents.path) {
|
|
3416
|
+
urnComponents.error = "URN can not be parsed";
|
|
3417
|
+
return urnComponents;
|
|
3418
|
+
}
|
|
3419
|
+
const matches = urnComponents.path.match(URN_REG);
|
|
3420
|
+
if (matches) {
|
|
3421
|
+
const scheme = options.scheme || urnComponents.scheme || "urn";
|
|
3422
|
+
urnComponents.nid = matches[1].toLowerCase();
|
|
3423
|
+
urnComponents.nss = matches[2];
|
|
3424
|
+
const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`;
|
|
3425
|
+
const schemeHandler = SCHEMES[urnScheme];
|
|
3426
|
+
urnComponents.path = void 0;
|
|
3427
|
+
if (schemeHandler) {
|
|
3428
|
+
urnComponents = schemeHandler.parse(urnComponents, options);
|
|
3813
3429
|
}
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3430
|
+
} else {
|
|
3431
|
+
urnComponents.error = urnComponents.error || "URN can not be parsed.";
|
|
3432
|
+
}
|
|
3433
|
+
return urnComponents;
|
|
3434
|
+
}
|
|
3435
|
+
function urnSerialize(urnComponents, options) {
|
|
3436
|
+
const scheme = options.scheme || urnComponents.scheme || "urn";
|
|
3437
|
+
const nid = urnComponents.nid.toLowerCase();
|
|
3438
|
+
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
3439
|
+
const schemeHandler = SCHEMES[urnScheme];
|
|
3440
|
+
if (schemeHandler) {
|
|
3441
|
+
urnComponents = schemeHandler.serialize(urnComponents, options);
|
|
3442
|
+
}
|
|
3443
|
+
const uriComponents = urnComponents;
|
|
3444
|
+
const nss = urnComponents.nss;
|
|
3445
|
+
uriComponents.path = `${nid || options.nid}:${nss}`;
|
|
3446
|
+
options.skipEscape = true;
|
|
3447
|
+
return uriComponents;
|
|
3448
|
+
}
|
|
3449
|
+
function urnuuidParse(urnComponents, options) {
|
|
3450
|
+
const uuidComponents = urnComponents;
|
|
3451
|
+
uuidComponents.uuid = uuidComponents.nss;
|
|
3452
|
+
uuidComponents.nss = void 0;
|
|
3453
|
+
if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {
|
|
3454
|
+
uuidComponents.error = uuidComponents.error || "UUID is not valid.";
|
|
3455
|
+
}
|
|
3456
|
+
return uuidComponents;
|
|
3457
|
+
}
|
|
3458
|
+
function urnuuidSerialize(uuidComponents) {
|
|
3459
|
+
const urnComponents = uuidComponents;
|
|
3460
|
+
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
3461
|
+
return urnComponents;
|
|
3462
|
+
}
|
|
3463
|
+
var http = {
|
|
3464
|
+
scheme: "http",
|
|
3465
|
+
domainHost: true,
|
|
3466
|
+
parse: httpParse,
|
|
3467
|
+
serialize: httpSerialize
|
|
3468
|
+
};
|
|
3469
|
+
var https = {
|
|
3470
|
+
scheme: "https",
|
|
3471
|
+
domainHost: http.domainHost,
|
|
3472
|
+
parse: httpParse,
|
|
3473
|
+
serialize: httpSerialize
|
|
3474
|
+
};
|
|
3475
|
+
var ws = {
|
|
3476
|
+
scheme: "ws",
|
|
3477
|
+
domainHost: true,
|
|
3478
|
+
parse: wsParse,
|
|
3479
|
+
serialize: wsSerialize
|
|
3480
|
+
};
|
|
3481
|
+
var wss = {
|
|
3482
|
+
scheme: "wss",
|
|
3483
|
+
domainHost: ws.domainHost,
|
|
3484
|
+
parse: ws.parse,
|
|
3485
|
+
serialize: ws.serialize
|
|
3486
|
+
};
|
|
3487
|
+
var urn = {
|
|
3488
|
+
scheme: "urn",
|
|
3489
|
+
parse: urnParse,
|
|
3490
|
+
serialize: urnSerialize,
|
|
3491
|
+
skipNormalize: true
|
|
3492
|
+
};
|
|
3493
|
+
var urnuuid = {
|
|
3494
|
+
scheme: "urn:uuid",
|
|
3495
|
+
parse: urnuuidParse,
|
|
3496
|
+
serialize: urnuuidSerialize,
|
|
3497
|
+
skipNormalize: true
|
|
3498
|
+
};
|
|
3499
|
+
var SCHEMES = {
|
|
3500
|
+
http,
|
|
3501
|
+
https,
|
|
3502
|
+
ws,
|
|
3503
|
+
wss,
|
|
3504
|
+
urn,
|
|
3505
|
+
"urn:uuid": urnuuid
|
|
3506
|
+
};
|
|
3507
|
+
module2.exports = SCHEMES;
|
|
3508
|
+
}
|
|
3509
|
+
});
|
|
3510
|
+
|
|
3511
|
+
// node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/index.js
|
|
3512
|
+
var require_fast_uri = __commonJS({
|
|
3513
|
+
"node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/index.js"(exports2, module2) {
|
|
3514
|
+
"use strict";
|
|
3515
|
+
var { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require_utils();
|
|
3516
|
+
var SCHEMES = require_schemes();
|
|
3517
|
+
function normalize(uri, options) {
|
|
3518
|
+
if (typeof uri === "string") {
|
|
3519
|
+
uri = serialize(parse2(uri, options), options);
|
|
3520
|
+
} else if (typeof uri === "object") {
|
|
3521
|
+
uri = parse2(serialize(uri, options), options);
|
|
3522
|
+
}
|
|
3523
|
+
return uri;
|
|
3524
|
+
}
|
|
3525
|
+
function resolve(baseURI, relativeURI, options) {
|
|
3526
|
+
const schemelessOptions = Object.assign({ scheme: "null" }, options);
|
|
3527
|
+
const resolved = resolveComponents(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
3528
|
+
return serialize(resolved, { ...schemelessOptions, skipEscape: true });
|
|
3529
|
+
}
|
|
3530
|
+
function resolveComponents(base, relative, options, skipNormalization) {
|
|
3531
|
+
const target = {};
|
|
3532
|
+
if (!skipNormalization) {
|
|
3533
|
+
base = parse2(serialize(base, options), options);
|
|
3534
|
+
relative = parse2(serialize(relative, options), options);
|
|
3535
|
+
}
|
|
3536
|
+
options = options || {};
|
|
3537
|
+
if (!options.tolerant && relative.scheme) {
|
|
3538
|
+
target.scheme = relative.scheme;
|
|
3539
|
+
target.userinfo = relative.userinfo;
|
|
3540
|
+
target.host = relative.host;
|
|
3541
|
+
target.port = relative.port;
|
|
3542
|
+
target.path = removeDotSegments(relative.path || "");
|
|
3543
|
+
target.query = relative.query;
|
|
3544
|
+
} else {
|
|
3545
|
+
if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
|
|
3817
3546
|
target.userinfo = relative.userinfo;
|
|
3818
3547
|
target.host = relative.host;
|
|
3819
3548
|
target.port = relative.port;
|
|
3820
3549
|
target.path = removeDotSegments(relative.path || "");
|
|
3821
3550
|
target.query = relative.query;
|
|
3822
3551
|
} else {
|
|
3823
|
-
if (relative.
|
|
3824
|
-
target.
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3552
|
+
if (!relative.path) {
|
|
3553
|
+
target.path = base.path;
|
|
3554
|
+
if (relative.query !== void 0) {
|
|
3555
|
+
target.query = relative.query;
|
|
3556
|
+
} else {
|
|
3557
|
+
target.query = base.query;
|
|
3558
|
+
}
|
|
3829
3559
|
} else {
|
|
3830
|
-
if (
|
|
3831
|
-
target.path =
|
|
3832
|
-
if (relative.query !== void 0) {
|
|
3833
|
-
target.query = relative.query;
|
|
3834
|
-
} else {
|
|
3835
|
-
target.query = base2.query;
|
|
3836
|
-
}
|
|
3560
|
+
if (relative.path.charAt(0) === "/") {
|
|
3561
|
+
target.path = removeDotSegments(relative.path);
|
|
3837
3562
|
} else {
|
|
3838
|
-
if (
|
|
3839
|
-
target.path =
|
|
3563
|
+
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
|
|
3564
|
+
target.path = "/" + relative.path;
|
|
3565
|
+
} else if (!base.path) {
|
|
3566
|
+
target.path = relative.path;
|
|
3840
3567
|
} else {
|
|
3841
|
-
|
|
3842
|
-
target.path = "/" + relative.path;
|
|
3843
|
-
} else if (!base2.path) {
|
|
3844
|
-
target.path = relative.path;
|
|
3845
|
-
} else {
|
|
3846
|
-
target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative.path;
|
|
3847
|
-
}
|
|
3848
|
-
target.path = removeDotSegments(target.path);
|
|
3568
|
+
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
3849
3569
|
}
|
|
3850
|
-
target.
|
|
3570
|
+
target.path = removeDotSegments(target.path);
|
|
3851
3571
|
}
|
|
3852
|
-
target.
|
|
3853
|
-
target.host = base2.host;
|
|
3854
|
-
target.port = base2.port;
|
|
3572
|
+
target.query = relative.query;
|
|
3855
3573
|
}
|
|
3856
|
-
target.
|
|
3574
|
+
target.userinfo = base.userinfo;
|
|
3575
|
+
target.host = base.host;
|
|
3576
|
+
target.port = base.port;
|
|
3577
|
+
}
|
|
3578
|
+
target.scheme = base.scheme;
|
|
3579
|
+
}
|
|
3580
|
+
target.fragment = relative.fragment;
|
|
3581
|
+
return target;
|
|
3582
|
+
}
|
|
3583
|
+
function equal(uriA, uriB, options) {
|
|
3584
|
+
if (typeof uriA === "string") {
|
|
3585
|
+
uriA = unescape(uriA);
|
|
3586
|
+
uriA = serialize(normalizeComponentEncoding(parse2(uriA, options), true), { ...options, skipEscape: true });
|
|
3587
|
+
} else if (typeof uriA === "object") {
|
|
3588
|
+
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
3589
|
+
}
|
|
3590
|
+
if (typeof uriB === "string") {
|
|
3591
|
+
uriB = unescape(uriB);
|
|
3592
|
+
uriB = serialize(normalizeComponentEncoding(parse2(uriB, options), true), { ...options, skipEscape: true });
|
|
3593
|
+
} else if (typeof uriB === "object") {
|
|
3594
|
+
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
3595
|
+
}
|
|
3596
|
+
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
3597
|
+
}
|
|
3598
|
+
function serialize(cmpts, opts) {
|
|
3599
|
+
const components = {
|
|
3600
|
+
host: cmpts.host,
|
|
3601
|
+
scheme: cmpts.scheme,
|
|
3602
|
+
userinfo: cmpts.userinfo,
|
|
3603
|
+
port: cmpts.port,
|
|
3604
|
+
path: cmpts.path,
|
|
3605
|
+
query: cmpts.query,
|
|
3606
|
+
nid: cmpts.nid,
|
|
3607
|
+
nss: cmpts.nss,
|
|
3608
|
+
uuid: cmpts.uuid,
|
|
3609
|
+
fragment: cmpts.fragment,
|
|
3610
|
+
reference: cmpts.reference,
|
|
3611
|
+
resourceName: cmpts.resourceName,
|
|
3612
|
+
secure: cmpts.secure,
|
|
3613
|
+
error: ""
|
|
3614
|
+
};
|
|
3615
|
+
const options = Object.assign({}, opts);
|
|
3616
|
+
const uriTokens = [];
|
|
3617
|
+
const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
3618
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
|
|
3619
|
+
if (components.path !== void 0) {
|
|
3620
|
+
if (!options.skipEscape) {
|
|
3621
|
+
components.path = escape(components.path);
|
|
3622
|
+
if (components.scheme !== void 0) {
|
|
3623
|
+
components.path = components.path.split("%3A").join(":");
|
|
3624
|
+
}
|
|
3625
|
+
} else {
|
|
3626
|
+
components.path = unescape(components.path);
|
|
3857
3627
|
}
|
|
3858
|
-
target.fragment = relative.fragment;
|
|
3859
|
-
return target;
|
|
3860
3628
|
}
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
return serialize(resolveComponents(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
|
|
3629
|
+
if (options.reference !== "suffix" && components.scheme) {
|
|
3630
|
+
uriTokens.push(components.scheme, ":");
|
|
3864
3631
|
}
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3632
|
+
const authority = recomposeAuthority(components, options);
|
|
3633
|
+
if (authority !== void 0) {
|
|
3634
|
+
if (options.reference !== "suffix") {
|
|
3635
|
+
uriTokens.push("//");
|
|
3636
|
+
}
|
|
3637
|
+
uriTokens.push(authority);
|
|
3638
|
+
if (components.path && components.path.charAt(0) !== "/") {
|
|
3639
|
+
uriTokens.push("/");
|
|
3870
3640
|
}
|
|
3871
|
-
return uri;
|
|
3872
3641
|
}
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
uriA = serialize(uriA, options);
|
|
3642
|
+
if (components.path !== void 0) {
|
|
3643
|
+
let s = components.path;
|
|
3644
|
+
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
3645
|
+
s = removeDotSegments(s);
|
|
3878
3646
|
}
|
|
3879
|
-
if (
|
|
3880
|
-
|
|
3881
|
-
} else if (typeOf(uriB) === "object") {
|
|
3882
|
-
uriB = serialize(uriB, options);
|
|
3647
|
+
if (authority === void 0) {
|
|
3648
|
+
s = s.replace(/^\/\//u, "/%2F");
|
|
3883
3649
|
}
|
|
3884
|
-
|
|
3650
|
+
uriTokens.push(s);
|
|
3885
3651
|
}
|
|
3886
|
-
|
|
3887
|
-
|
|
3652
|
+
if (components.query !== void 0) {
|
|
3653
|
+
uriTokens.push("?", components.query);
|
|
3888
3654
|
}
|
|
3889
|
-
|
|
3890
|
-
|
|
3655
|
+
if (components.fragment !== void 0) {
|
|
3656
|
+
uriTokens.push("#", components.fragment);
|
|
3891
3657
|
}
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
serialize: function serialize2(components, options) {
|
|
3902
|
-
var secure = String(components.scheme).toLowerCase() === "https";
|
|
3903
|
-
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
3904
|
-
components.port = void 0;
|
|
3905
|
-
}
|
|
3906
|
-
if (!components.path) {
|
|
3907
|
-
components.path = "/";
|
|
3908
|
-
}
|
|
3909
|
-
return components;
|
|
3658
|
+
return uriTokens.join("");
|
|
3659
|
+
}
|
|
3660
|
+
var hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
|
|
3661
|
+
function nonSimpleDomain(value) {
|
|
3662
|
+
let code = 0;
|
|
3663
|
+
for (let i = 0, len = value.length; i < len; ++i) {
|
|
3664
|
+
code = value.charCodeAt(i);
|
|
3665
|
+
if (code > 126 || hexLookUp[code]) {
|
|
3666
|
+
return true;
|
|
3910
3667
|
}
|
|
3668
|
+
}
|
|
3669
|
+
return false;
|
|
3670
|
+
}
|
|
3671
|
+
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
3672
|
+
function parse2(uri, opts) {
|
|
3673
|
+
const options = Object.assign({}, opts);
|
|
3674
|
+
const parsed = {
|
|
3675
|
+
scheme: void 0,
|
|
3676
|
+
userinfo: void 0,
|
|
3677
|
+
host: "",
|
|
3678
|
+
port: void 0,
|
|
3679
|
+
path: "",
|
|
3680
|
+
query: void 0,
|
|
3681
|
+
fragment: void 0
|
|
3911
3682
|
};
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
if (typeof wsComponents.secure === "boolean") {
|
|
3937
|
-
wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
|
|
3938
|
-
wsComponents.secure = void 0;
|
|
3939
|
-
}
|
|
3940
|
-
if (wsComponents.resourceName) {
|
|
3941
|
-
var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
|
|
3942
|
-
wsComponents.path = path && path !== "/" ? path : void 0;
|
|
3943
|
-
wsComponents.query = query;
|
|
3944
|
-
wsComponents.resourceName = void 0;
|
|
3683
|
+
const gotEncoding = uri.indexOf("%") !== -1;
|
|
3684
|
+
let isIP = false;
|
|
3685
|
+
if (options.reference === "suffix") uri = (options.scheme ? options.scheme + ":" : "") + "//" + uri;
|
|
3686
|
+
const matches = uri.match(URI_PARSE);
|
|
3687
|
+
if (matches) {
|
|
3688
|
+
parsed.scheme = matches[1];
|
|
3689
|
+
parsed.userinfo = matches[3];
|
|
3690
|
+
parsed.host = matches[4];
|
|
3691
|
+
parsed.port = parseInt(matches[5], 10);
|
|
3692
|
+
parsed.path = matches[6] || "";
|
|
3693
|
+
parsed.query = matches[7];
|
|
3694
|
+
parsed.fragment = matches[8];
|
|
3695
|
+
if (isNaN(parsed.port)) {
|
|
3696
|
+
parsed.port = matches[5];
|
|
3697
|
+
}
|
|
3698
|
+
if (parsed.host) {
|
|
3699
|
+
const ipv4result = normalizeIPv4(parsed.host);
|
|
3700
|
+
if (ipv4result.isIPV4 === false) {
|
|
3701
|
+
const ipv6result = normalizeIPv6(ipv4result.host, { isIPV4: false });
|
|
3702
|
+
parsed.host = ipv6result.host.toLowerCase();
|
|
3703
|
+
isIP = ipv6result.isIPV6;
|
|
3704
|
+
} else {
|
|
3705
|
+
parsed.host = ipv4result.host;
|
|
3706
|
+
isIP = true;
|
|
3945
3707
|
}
|
|
3946
|
-
wsComponents.fragment = void 0;
|
|
3947
|
-
return wsComponents;
|
|
3948
3708
|
}
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
scheme
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
|
|
3969
|
-
var NOT_HFVALUE = NOT_HFNAME;
|
|
3970
|
-
function decodeUnreserved(str) {
|
|
3971
|
-
var decStr = pctDecChars(str);
|
|
3972
|
-
return !decStr.match(UNRESERVED) ? str : decStr;
|
|
3973
|
-
}
|
|
3974
|
-
var handler$4 = {
|
|
3975
|
-
scheme: "mailto",
|
|
3976
|
-
parse: function parse$$1(components, options) {
|
|
3977
|
-
var mailtoComponents = components;
|
|
3978
|
-
var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
|
|
3979
|
-
mailtoComponents.path = void 0;
|
|
3980
|
-
if (mailtoComponents.query) {
|
|
3981
|
-
var unknownHeaders = false;
|
|
3982
|
-
var headers = {};
|
|
3983
|
-
var hfields = mailtoComponents.query.split("&");
|
|
3984
|
-
for (var x = 0, xl = hfields.length; x < xl; ++x) {
|
|
3985
|
-
var hfield = hfields[x].split("=");
|
|
3986
|
-
switch (hfield[0]) {
|
|
3987
|
-
case "to":
|
|
3988
|
-
var toAddrs = hfield[1].split(",");
|
|
3989
|
-
for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
|
|
3990
|
-
to.push(toAddrs[_x]);
|
|
3991
|
-
}
|
|
3992
|
-
break;
|
|
3993
|
-
case "subject":
|
|
3994
|
-
mailtoComponents.subject = unescapeComponent(hfield[1], options);
|
|
3995
|
-
break;
|
|
3996
|
-
case "body":
|
|
3997
|
-
mailtoComponents.body = unescapeComponent(hfield[1], options);
|
|
3998
|
-
break;
|
|
3999
|
-
default:
|
|
4000
|
-
unknownHeaders = true;
|
|
4001
|
-
headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
|
|
4002
|
-
break;
|
|
4003
|
-
}
|
|
4004
|
-
}
|
|
4005
|
-
if (unknownHeaders)
|
|
4006
|
-
mailtoComponents.headers = headers;
|
|
4007
|
-
}
|
|
4008
|
-
mailtoComponents.query = void 0;
|
|
4009
|
-
for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
|
|
4010
|
-
var addr = to[_x2].split("@");
|
|
4011
|
-
addr[0] = unescapeComponent(addr[0]);
|
|
4012
|
-
if (!options.unicodeSupport) {
|
|
4013
|
-
try {
|
|
4014
|
-
addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
|
|
4015
|
-
} catch (e) {
|
|
4016
|
-
mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
|
|
4017
|
-
}
|
|
4018
|
-
} else {
|
|
4019
|
-
addr[1] = unescapeComponent(addr[1], options).toLowerCase();
|
|
3709
|
+
if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && !parsed.path && parsed.query === void 0) {
|
|
3710
|
+
parsed.reference = "same-document";
|
|
3711
|
+
} else if (parsed.scheme === void 0) {
|
|
3712
|
+
parsed.reference = "relative";
|
|
3713
|
+
} else if (parsed.fragment === void 0) {
|
|
3714
|
+
parsed.reference = "absolute";
|
|
3715
|
+
} else {
|
|
3716
|
+
parsed.reference = "uri";
|
|
3717
|
+
}
|
|
3718
|
+
if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
|
|
3719
|
+
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
3720
|
+
}
|
|
3721
|
+
const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || "").toLowerCase()];
|
|
3722
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
3723
|
+
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
3724
|
+
try {
|
|
3725
|
+
parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
|
|
3726
|
+
} catch (e) {
|
|
3727
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
4020
3728
|
}
|
|
4021
|
-
to[_x2] = addr.join("@");
|
|
4022
3729
|
}
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
var to = toArray(mailtoComponents.to);
|
|
4028
|
-
if (to) {
|
|
4029
|
-
for (var x = 0, xl = to.length; x < xl; ++x) {
|
|
4030
|
-
var toAddr = String(to[x]);
|
|
4031
|
-
var atIdx = toAddr.lastIndexOf("@");
|
|
4032
|
-
var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
|
|
4033
|
-
var domain = toAddr.slice(atIdx + 1);
|
|
4034
|
-
try {
|
|
4035
|
-
domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
|
|
4036
|
-
} catch (e) {
|
|
4037
|
-
components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
4038
|
-
}
|
|
4039
|
-
to[x] = localPart + "@" + domain;
|
|
4040
|
-
}
|
|
4041
|
-
components.path = to.join(",");
|
|
3730
|
+
}
|
|
3731
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
3732
|
+
if (gotEncoding && parsed.scheme !== void 0) {
|
|
3733
|
+
parsed.scheme = unescape(parsed.scheme);
|
|
4042
3734
|
}
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
headers["subject"] = mailtoComponents.subject;
|
|
4046
|
-
if (mailtoComponents.body)
|
|
4047
|
-
headers["body"] = mailtoComponents.body;
|
|
4048
|
-
var fields = [];
|
|
4049
|
-
for (var name in headers) {
|
|
4050
|
-
if (headers[name] !== O[name]) {
|
|
4051
|
-
fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
|
|
4052
|
-
}
|
|
3735
|
+
if (gotEncoding && parsed.host !== void 0) {
|
|
3736
|
+
parsed.host = unescape(parsed.host);
|
|
4053
3737
|
}
|
|
4054
|
-
if (
|
|
4055
|
-
|
|
3738
|
+
if (parsed.path !== void 0 && parsed.path.length) {
|
|
3739
|
+
parsed.path = escape(unescape(parsed.path));
|
|
4056
3740
|
}
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
};
|
|
4060
|
-
var URN_PARSE = /^([^\:]+)\:(.*)/;
|
|
4061
|
-
var handler$5 = {
|
|
4062
|
-
scheme: "urn",
|
|
4063
|
-
parse: function parse$$1(components, options) {
|
|
4064
|
-
var matches = components.path && components.path.match(URN_PARSE);
|
|
4065
|
-
var urnComponents = components;
|
|
4066
|
-
if (matches) {
|
|
4067
|
-
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
4068
|
-
var nid = matches[1].toLowerCase();
|
|
4069
|
-
var nss = matches[2];
|
|
4070
|
-
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
4071
|
-
var schemeHandler = SCHEMES[urnScheme];
|
|
4072
|
-
urnComponents.nid = nid;
|
|
4073
|
-
urnComponents.nss = nss;
|
|
4074
|
-
urnComponents.path = void 0;
|
|
4075
|
-
if (schemeHandler) {
|
|
4076
|
-
urnComponents = schemeHandler.parse(urnComponents, options);
|
|
4077
|
-
}
|
|
4078
|
-
} else {
|
|
4079
|
-
urnComponents.error = urnComponents.error || "URN can not be parsed.";
|
|
4080
|
-
}
|
|
4081
|
-
return urnComponents;
|
|
4082
|
-
},
|
|
4083
|
-
serialize: function serialize$$1(urnComponents, options) {
|
|
4084
|
-
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
4085
|
-
var nid = urnComponents.nid;
|
|
4086
|
-
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
4087
|
-
var schemeHandler = SCHEMES[urnScheme];
|
|
4088
|
-
if (schemeHandler) {
|
|
4089
|
-
urnComponents = schemeHandler.serialize(urnComponents, options);
|
|
3741
|
+
if (parsed.fragment !== void 0 && parsed.fragment.length) {
|
|
3742
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
4090
3743
|
}
|
|
4091
|
-
var uriComponents = urnComponents;
|
|
4092
|
-
var nss = urnComponents.nss;
|
|
4093
|
-
uriComponents.path = (nid || options.nid) + ":" + nss;
|
|
4094
|
-
return uriComponents;
|
|
4095
3744
|
}
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
var handler$6 = {
|
|
4099
|
-
scheme: "urn:uuid",
|
|
4100
|
-
parse: function parse3(urnComponents, options) {
|
|
4101
|
-
var uuidComponents = urnComponents;
|
|
4102
|
-
uuidComponents.uuid = uuidComponents.nss;
|
|
4103
|
-
uuidComponents.nss = void 0;
|
|
4104
|
-
if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
|
|
4105
|
-
uuidComponents.error = uuidComponents.error || "UUID is not valid.";
|
|
4106
|
-
}
|
|
4107
|
-
return uuidComponents;
|
|
4108
|
-
},
|
|
4109
|
-
serialize: function serialize2(uuidComponents, options) {
|
|
4110
|
-
var urnComponents = uuidComponents;
|
|
4111
|
-
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
4112
|
-
return urnComponents;
|
|
3745
|
+
if (schemeHandler && schemeHandler.parse) {
|
|
3746
|
+
schemeHandler.parse(parsed, options);
|
|
4113
3747
|
}
|
|
4114
|
-
}
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
SCHEMES
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
exports3.equal = equal;
|
|
4132
|
-
exports3.escapeComponent = escapeComponent;
|
|
4133
|
-
exports3.unescapeComponent = unescapeComponent;
|
|
4134
|
-
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
4135
|
-
});
|
|
3748
|
+
} else {
|
|
3749
|
+
parsed.error = parsed.error || "URI can not be parsed.";
|
|
3750
|
+
}
|
|
3751
|
+
return parsed;
|
|
3752
|
+
}
|
|
3753
|
+
var fastUri = {
|
|
3754
|
+
SCHEMES,
|
|
3755
|
+
normalize,
|
|
3756
|
+
resolve,
|
|
3757
|
+
resolveComponents,
|
|
3758
|
+
equal,
|
|
3759
|
+
serialize,
|
|
3760
|
+
parse: parse2
|
|
3761
|
+
};
|
|
3762
|
+
module2.exports = fastUri;
|
|
3763
|
+
module2.exports.default = fastUri;
|
|
3764
|
+
module2.exports.fastUri = fastUri;
|
|
4136
3765
|
}
|
|
4137
3766
|
});
|
|
4138
3767
|
|
|
4139
|
-
// node_modules/.pnpm/ajv@8.
|
|
3768
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js
|
|
4140
3769
|
var require_uri = __commonJS({
|
|
4141
|
-
"node_modules/.pnpm/ajv@8.
|
|
3770
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js"(exports2) {
|
|
4142
3771
|
"use strict";
|
|
4143
3772
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4144
|
-
var uri =
|
|
3773
|
+
var uri = require_fast_uri();
|
|
4145
3774
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
4146
3775
|
exports2.default = uri;
|
|
4147
3776
|
}
|
|
4148
3777
|
});
|
|
4149
3778
|
|
|
4150
|
-
// node_modules/.pnpm/ajv@8.
|
|
3779
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js
|
|
4151
3780
|
var require_core = __commonJS({
|
|
4152
|
-
"node_modules/.pnpm/ajv@8.
|
|
3781
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js"(exports2) {
|
|
4153
3782
|
"use strict";
|
|
4154
3783
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4155
3784
|
exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
|
|
@@ -4625,9 +4254,9 @@ var require_core = __commonJS({
|
|
|
4625
4254
|
}
|
|
4626
4255
|
}
|
|
4627
4256
|
};
|
|
4628
|
-
exports2.default = Ajv2;
|
|
4629
4257
|
Ajv2.ValidationError = validation_error_1.default;
|
|
4630
4258
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
4259
|
+
exports2.default = Ajv2;
|
|
4631
4260
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
4632
4261
|
for (const key in checkOpts) {
|
|
4633
4262
|
const opt = key;
|
|
@@ -4758,9 +4387,9 @@ var require_core = __commonJS({
|
|
|
4758
4387
|
}
|
|
4759
4388
|
});
|
|
4760
4389
|
|
|
4761
|
-
// node_modules/.pnpm/ajv@8.
|
|
4390
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4762
4391
|
var require_id = __commonJS({
|
|
4763
|
-
"node_modules/.pnpm/ajv@8.
|
|
4392
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
|
|
4764
4393
|
"use strict";
|
|
4765
4394
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4766
4395
|
var def = {
|
|
@@ -4773,9 +4402,9 @@ var require_id = __commonJS({
|
|
|
4773
4402
|
}
|
|
4774
4403
|
});
|
|
4775
4404
|
|
|
4776
|
-
// node_modules/.pnpm/ajv@8.
|
|
4405
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4777
4406
|
var require_ref = __commonJS({
|
|
4778
|
-
"node_modules/.pnpm/ajv@8.
|
|
4407
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
|
|
4779
4408
|
"use strict";
|
|
4780
4409
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4781
4410
|
exports2.callRef = exports2.getValidate = void 0;
|
|
@@ -4895,9 +4524,9 @@ var require_ref = __commonJS({
|
|
|
4895
4524
|
}
|
|
4896
4525
|
});
|
|
4897
4526
|
|
|
4898
|
-
// node_modules/.pnpm/ajv@8.
|
|
4527
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4899
4528
|
var require_core2 = __commonJS({
|
|
4900
|
-
"node_modules/.pnpm/ajv@8.
|
|
4529
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
|
|
4901
4530
|
"use strict";
|
|
4902
4531
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4903
4532
|
var id_1 = require_id();
|
|
@@ -4916,9 +4545,9 @@ var require_core2 = __commonJS({
|
|
|
4916
4545
|
}
|
|
4917
4546
|
});
|
|
4918
4547
|
|
|
4919
|
-
// node_modules/.pnpm/ajv@8.
|
|
4548
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4920
4549
|
var require_limitNumber = __commonJS({
|
|
4921
|
-
"node_modules/.pnpm/ajv@8.
|
|
4550
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
|
|
4922
4551
|
"use strict";
|
|
4923
4552
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4924
4553
|
var codegen_1 = require_codegen();
|
|
@@ -4948,9 +4577,9 @@ var require_limitNumber = __commonJS({
|
|
|
4948
4577
|
}
|
|
4949
4578
|
});
|
|
4950
4579
|
|
|
4951
|
-
// node_modules/.pnpm/ajv@8.
|
|
4580
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4952
4581
|
var require_multipleOf = __commonJS({
|
|
4953
|
-
"node_modules/.pnpm/ajv@8.
|
|
4582
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
|
|
4954
4583
|
"use strict";
|
|
4955
4584
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4956
4585
|
var codegen_1 = require_codegen();
|
|
@@ -4976,9 +4605,9 @@ var require_multipleOf = __commonJS({
|
|
|
4976
4605
|
}
|
|
4977
4606
|
});
|
|
4978
4607
|
|
|
4979
|
-
// node_modules/.pnpm/ajv@8.
|
|
4608
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4980
4609
|
var require_ucs2length = __commonJS({
|
|
4981
|
-
"node_modules/.pnpm/ajv@8.
|
|
4610
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
|
|
4982
4611
|
"use strict";
|
|
4983
4612
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4984
4613
|
function ucs2length(str) {
|
|
@@ -5002,9 +4631,9 @@ var require_ucs2length = __commonJS({
|
|
|
5002
4631
|
}
|
|
5003
4632
|
});
|
|
5004
4633
|
|
|
5005
|
-
// node_modules/.pnpm/ajv@8.
|
|
4634
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
5006
4635
|
var require_limitLength = __commonJS({
|
|
5007
|
-
"node_modules/.pnpm/ajv@8.
|
|
4636
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
|
|
5008
4637
|
"use strict";
|
|
5009
4638
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5010
4639
|
var codegen_1 = require_codegen();
|
|
@@ -5034,9 +4663,9 @@ var require_limitLength = __commonJS({
|
|
|
5034
4663
|
}
|
|
5035
4664
|
});
|
|
5036
4665
|
|
|
5037
|
-
// node_modules/.pnpm/ajv@8.
|
|
4666
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
5038
4667
|
var require_pattern = __commonJS({
|
|
5039
|
-
"node_modules/.pnpm/ajv@8.
|
|
4668
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
|
|
5040
4669
|
"use strict";
|
|
5041
4670
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5042
4671
|
var code_1 = require_code2();
|
|
@@ -5062,9 +4691,9 @@ var require_pattern = __commonJS({
|
|
|
5062
4691
|
}
|
|
5063
4692
|
});
|
|
5064
4693
|
|
|
5065
|
-
// node_modules/.pnpm/ajv@8.
|
|
4694
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
5066
4695
|
var require_limitProperties = __commonJS({
|
|
5067
|
-
"node_modules/.pnpm/ajv@8.
|
|
4696
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
|
|
5068
4697
|
"use strict";
|
|
5069
4698
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5070
4699
|
var codegen_1 = require_codegen();
|
|
@@ -5091,9 +4720,9 @@ var require_limitProperties = __commonJS({
|
|
|
5091
4720
|
}
|
|
5092
4721
|
});
|
|
5093
4722
|
|
|
5094
|
-
// node_modules/.pnpm/ajv@8.
|
|
4723
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
5095
4724
|
var require_required = __commonJS({
|
|
5096
|
-
"node_modules/.pnpm/ajv@8.
|
|
4725
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
|
|
5097
4726
|
"use strict";
|
|
5098
4727
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5099
4728
|
var code_1 = require_code2();
|
|
@@ -5173,9 +4802,9 @@ var require_required = __commonJS({
|
|
|
5173
4802
|
}
|
|
5174
4803
|
});
|
|
5175
4804
|
|
|
5176
|
-
// node_modules/.pnpm/ajv@8.
|
|
4805
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
5177
4806
|
var require_limitItems = __commonJS({
|
|
5178
|
-
"node_modules/.pnpm/ajv@8.
|
|
4807
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
|
|
5179
4808
|
"use strict";
|
|
5180
4809
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5181
4810
|
var codegen_1 = require_codegen();
|
|
@@ -5202,9 +4831,9 @@ var require_limitItems = __commonJS({
|
|
|
5202
4831
|
}
|
|
5203
4832
|
});
|
|
5204
4833
|
|
|
5205
|
-
// node_modules/.pnpm/ajv@8.
|
|
4834
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js
|
|
5206
4835
|
var require_equal = __commonJS({
|
|
5207
|
-
"node_modules/.pnpm/ajv@8.
|
|
4836
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js"(exports2) {
|
|
5208
4837
|
"use strict";
|
|
5209
4838
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5210
4839
|
var equal = require_fast_deep_equal();
|
|
@@ -5213,9 +4842,9 @@ var require_equal = __commonJS({
|
|
|
5213
4842
|
}
|
|
5214
4843
|
});
|
|
5215
4844
|
|
|
5216
|
-
// node_modules/.pnpm/ajv@8.
|
|
4845
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
5217
4846
|
var require_uniqueItems = __commonJS({
|
|
5218
|
-
"node_modules/.pnpm/ajv@8.
|
|
4847
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
|
|
5219
4848
|
"use strict";
|
|
5220
4849
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5221
4850
|
var dataType_1 = require_dataType();
|
|
@@ -5280,9 +4909,9 @@ var require_uniqueItems = __commonJS({
|
|
|
5280
4909
|
}
|
|
5281
4910
|
});
|
|
5282
4911
|
|
|
5283
|
-
// node_modules/.pnpm/ajv@8.
|
|
4912
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
5284
4913
|
var require_const = __commonJS({
|
|
5285
|
-
"node_modules/.pnpm/ajv@8.
|
|
4914
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
|
|
5286
4915
|
"use strict";
|
|
5287
4916
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5288
4917
|
var codegen_1 = require_codegen();
|
|
@@ -5309,9 +4938,9 @@ var require_const = __commonJS({
|
|
|
5309
4938
|
}
|
|
5310
4939
|
});
|
|
5311
4940
|
|
|
5312
|
-
// node_modules/.pnpm/ajv@8.
|
|
4941
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5313
4942
|
var require_enum = __commonJS({
|
|
5314
|
-
"node_modules/.pnpm/ajv@8.
|
|
4943
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
|
|
5315
4944
|
"use strict";
|
|
5316
4945
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5317
4946
|
var codegen_1 = require_codegen();
|
|
@@ -5358,9 +4987,9 @@ var require_enum = __commonJS({
|
|
|
5358
4987
|
}
|
|
5359
4988
|
});
|
|
5360
4989
|
|
|
5361
|
-
// node_modules/.pnpm/ajv@8.
|
|
4990
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5362
4991
|
var require_validation = __commonJS({
|
|
5363
|
-
"node_modules/.pnpm/ajv@8.
|
|
4992
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
|
|
5364
4993
|
"use strict";
|
|
5365
4994
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5366
4995
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5396,9 +5025,9 @@ var require_validation = __commonJS({
|
|
|
5396
5025
|
}
|
|
5397
5026
|
});
|
|
5398
5027
|
|
|
5399
|
-
// node_modules/.pnpm/ajv@8.
|
|
5028
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5400
5029
|
var require_additionalItems = __commonJS({
|
|
5401
|
-
"node_modules/.pnpm/ajv@8.
|
|
5030
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
|
|
5402
5031
|
"use strict";
|
|
5403
5032
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5404
5033
|
exports2.validateAdditionalItems = void 0;
|
|
@@ -5449,9 +5078,9 @@ var require_additionalItems = __commonJS({
|
|
|
5449
5078
|
}
|
|
5450
5079
|
});
|
|
5451
5080
|
|
|
5452
|
-
// node_modules/.pnpm/ajv@8.
|
|
5081
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5453
5082
|
var require_items = __commonJS({
|
|
5454
|
-
"node_modules/.pnpm/ajv@8.
|
|
5083
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
|
|
5455
5084
|
"use strict";
|
|
5456
5085
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5457
5086
|
exports2.validateTuple = void 0;
|
|
@@ -5506,9 +5135,9 @@ var require_items = __commonJS({
|
|
|
5506
5135
|
}
|
|
5507
5136
|
});
|
|
5508
5137
|
|
|
5509
|
-
// node_modules/.pnpm/ajv@8.
|
|
5138
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5510
5139
|
var require_prefixItems = __commonJS({
|
|
5511
|
-
"node_modules/.pnpm/ajv@8.
|
|
5140
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
|
|
5512
5141
|
"use strict";
|
|
5513
5142
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5514
5143
|
var items_1 = require_items();
|
|
@@ -5523,9 +5152,9 @@ var require_prefixItems = __commonJS({
|
|
|
5523
5152
|
}
|
|
5524
5153
|
});
|
|
5525
5154
|
|
|
5526
|
-
// node_modules/.pnpm/ajv@8.
|
|
5155
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5527
5156
|
var require_items2020 = __commonJS({
|
|
5528
|
-
"node_modules/.pnpm/ajv@8.
|
|
5157
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
|
|
5529
5158
|
"use strict";
|
|
5530
5159
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5531
5160
|
var codegen_1 = require_codegen();
|
|
@@ -5558,9 +5187,9 @@ var require_items2020 = __commonJS({
|
|
|
5558
5187
|
}
|
|
5559
5188
|
});
|
|
5560
5189
|
|
|
5561
|
-
// node_modules/.pnpm/ajv@8.
|
|
5190
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5562
5191
|
var require_contains = __commonJS({
|
|
5563
|
-
"node_modules/.pnpm/ajv@8.
|
|
5192
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
|
|
5564
5193
|
"use strict";
|
|
5565
5194
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5566
5195
|
var codegen_1 = require_codegen();
|
|
@@ -5652,9 +5281,9 @@ var require_contains = __commonJS({
|
|
|
5652
5281
|
}
|
|
5653
5282
|
});
|
|
5654
5283
|
|
|
5655
|
-
// node_modules/.pnpm/ajv@8.
|
|
5284
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5656
5285
|
var require_dependencies = __commonJS({
|
|
5657
|
-
"node_modules/.pnpm/ajv@8.
|
|
5286
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
|
|
5658
5287
|
"use strict";
|
|
5659
5288
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5660
5289
|
exports2.validateSchemaDeps = exports2.validatePropertyDeps = exports2.error = void 0;
|
|
@@ -5746,9 +5375,9 @@ var require_dependencies = __commonJS({
|
|
|
5746
5375
|
}
|
|
5747
5376
|
});
|
|
5748
5377
|
|
|
5749
|
-
// node_modules/.pnpm/ajv@8.
|
|
5378
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5750
5379
|
var require_propertyNames = __commonJS({
|
|
5751
|
-
"node_modules/.pnpm/ajv@8.
|
|
5380
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
|
|
5752
5381
|
"use strict";
|
|
5753
5382
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5754
5383
|
var codegen_1 = require_codegen();
|
|
@@ -5789,9 +5418,9 @@ var require_propertyNames = __commonJS({
|
|
|
5789
5418
|
}
|
|
5790
5419
|
});
|
|
5791
5420
|
|
|
5792
|
-
// node_modules/.pnpm/ajv@8.
|
|
5421
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5793
5422
|
var require_additionalProperties = __commonJS({
|
|
5794
|
-
"node_modules/.pnpm/ajv@8.
|
|
5423
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
|
|
5795
5424
|
"use strict";
|
|
5796
5425
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5797
5426
|
var code_1 = require_code2();
|
|
@@ -5895,9 +5524,9 @@ var require_additionalProperties = __commonJS({
|
|
|
5895
5524
|
}
|
|
5896
5525
|
});
|
|
5897
5526
|
|
|
5898
|
-
// node_modules/.pnpm/ajv@8.
|
|
5527
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5899
5528
|
var require_properties = __commonJS({
|
|
5900
|
-
"node_modules/.pnpm/ajv@8.
|
|
5529
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
|
|
5901
5530
|
"use strict";
|
|
5902
5531
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5903
5532
|
var validate_1 = require_validate();
|
|
@@ -5953,9 +5582,9 @@ var require_properties = __commonJS({
|
|
|
5953
5582
|
}
|
|
5954
5583
|
});
|
|
5955
5584
|
|
|
5956
|
-
// node_modules/.pnpm/ajv@8.
|
|
5585
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5957
5586
|
var require_patternProperties = __commonJS({
|
|
5958
|
-
"node_modules/.pnpm/ajv@8.
|
|
5587
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
|
|
5959
5588
|
"use strict";
|
|
5960
5589
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5961
5590
|
var code_1 = require_code2();
|
|
@@ -6027,9 +5656,9 @@ var require_patternProperties = __commonJS({
|
|
|
6027
5656
|
}
|
|
6028
5657
|
});
|
|
6029
5658
|
|
|
6030
|
-
// node_modules/.pnpm/ajv@8.
|
|
5659
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
6031
5660
|
var require_not = __commonJS({
|
|
6032
|
-
"node_modules/.pnpm/ajv@8.
|
|
5661
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
|
|
6033
5662
|
"use strict";
|
|
6034
5663
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6035
5664
|
var util_1 = require_util();
|
|
@@ -6058,9 +5687,9 @@ var require_not = __commonJS({
|
|
|
6058
5687
|
}
|
|
6059
5688
|
});
|
|
6060
5689
|
|
|
6061
|
-
// node_modules/.pnpm/ajv@8.
|
|
5690
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
6062
5691
|
var require_anyOf = __commonJS({
|
|
6063
|
-
"node_modules/.pnpm/ajv@8.
|
|
5692
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
|
|
6064
5693
|
"use strict";
|
|
6065
5694
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6066
5695
|
var code_1 = require_code2();
|
|
@@ -6075,9 +5704,9 @@ var require_anyOf = __commonJS({
|
|
|
6075
5704
|
}
|
|
6076
5705
|
});
|
|
6077
5706
|
|
|
6078
|
-
// node_modules/.pnpm/ajv@8.
|
|
5707
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
6079
5708
|
var require_oneOf = __commonJS({
|
|
6080
|
-
"node_modules/.pnpm/ajv@8.
|
|
5709
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
|
|
6081
5710
|
"use strict";
|
|
6082
5711
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6083
5712
|
var codegen_1 = require_codegen();
|
|
@@ -6133,9 +5762,9 @@ var require_oneOf = __commonJS({
|
|
|
6133
5762
|
}
|
|
6134
5763
|
});
|
|
6135
5764
|
|
|
6136
|
-
// node_modules/.pnpm/ajv@8.
|
|
5765
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
6137
5766
|
var require_allOf = __commonJS({
|
|
6138
|
-
"node_modules/.pnpm/ajv@8.
|
|
5767
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
|
|
6139
5768
|
"use strict";
|
|
6140
5769
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6141
5770
|
var util_1 = require_util();
|
|
@@ -6160,9 +5789,9 @@ var require_allOf = __commonJS({
|
|
|
6160
5789
|
}
|
|
6161
5790
|
});
|
|
6162
5791
|
|
|
6163
|
-
// node_modules/.pnpm/ajv@8.
|
|
5792
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
6164
5793
|
var require_if = __commonJS({
|
|
6165
|
-
"node_modules/.pnpm/ajv@8.
|
|
5794
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
|
|
6166
5795
|
"use strict";
|
|
6167
5796
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6168
5797
|
var codegen_1 = require_codegen();
|
|
@@ -6229,9 +5858,9 @@ var require_if = __commonJS({
|
|
|
6229
5858
|
}
|
|
6230
5859
|
});
|
|
6231
5860
|
|
|
6232
|
-
// node_modules/.pnpm/ajv@8.
|
|
5861
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
6233
5862
|
var require_thenElse = __commonJS({
|
|
6234
|
-
"node_modules/.pnpm/ajv@8.
|
|
5863
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
|
|
6235
5864
|
"use strict";
|
|
6236
5865
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6237
5866
|
var util_1 = require_util();
|
|
@@ -6247,9 +5876,9 @@ var require_thenElse = __commonJS({
|
|
|
6247
5876
|
}
|
|
6248
5877
|
});
|
|
6249
5878
|
|
|
6250
|
-
// node_modules/.pnpm/ajv@8.
|
|
5879
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
6251
5880
|
var require_applicator = __commonJS({
|
|
6252
|
-
"node_modules/.pnpm/ajv@8.
|
|
5881
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
|
|
6253
5882
|
"use strict";
|
|
6254
5883
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6255
5884
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -6295,9 +5924,9 @@ var require_applicator = __commonJS({
|
|
|
6295
5924
|
}
|
|
6296
5925
|
});
|
|
6297
5926
|
|
|
6298
|
-
// node_modules/.pnpm/ajv@8.
|
|
5927
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js
|
|
6299
5928
|
var require_format = __commonJS({
|
|
6300
|
-
"node_modules/.pnpm/ajv@8.
|
|
5929
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
|
|
6301
5930
|
"use strict";
|
|
6302
5931
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6303
5932
|
var codegen_1 = require_codegen();
|
|
@@ -6385,9 +6014,9 @@ var require_format = __commonJS({
|
|
|
6385
6014
|
}
|
|
6386
6015
|
});
|
|
6387
6016
|
|
|
6388
|
-
// node_modules/.pnpm/ajv@8.
|
|
6017
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js
|
|
6389
6018
|
var require_format2 = __commonJS({
|
|
6390
|
-
"node_modules/.pnpm/ajv@8.
|
|
6019
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
|
|
6391
6020
|
"use strict";
|
|
6392
6021
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6393
6022
|
var format_1 = require_format();
|
|
@@ -6396,9 +6025,9 @@ var require_format2 = __commonJS({
|
|
|
6396
6025
|
}
|
|
6397
6026
|
});
|
|
6398
6027
|
|
|
6399
|
-
// node_modules/.pnpm/ajv@8.
|
|
6028
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6400
6029
|
var require_metadata = __commonJS({
|
|
6401
|
-
"node_modules/.pnpm/ajv@8.
|
|
6030
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
|
|
6402
6031
|
"use strict";
|
|
6403
6032
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6404
6033
|
exports2.contentVocabulary = exports2.metadataVocabulary = void 0;
|
|
@@ -6419,9 +6048,9 @@ var require_metadata = __commonJS({
|
|
|
6419
6048
|
}
|
|
6420
6049
|
});
|
|
6421
6050
|
|
|
6422
|
-
// node_modules/.pnpm/ajv@8.
|
|
6051
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js
|
|
6423
6052
|
var require_draft7 = __commonJS({
|
|
6424
|
-
"node_modules/.pnpm/ajv@8.
|
|
6053
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
|
|
6425
6054
|
"use strict";
|
|
6426
6055
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6427
6056
|
var core_1 = require_core2();
|
|
@@ -6441,9 +6070,9 @@ var require_draft7 = __commonJS({
|
|
|
6441
6070
|
}
|
|
6442
6071
|
});
|
|
6443
6072
|
|
|
6444
|
-
// node_modules/.pnpm/ajv@8.
|
|
6073
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6445
6074
|
var require_types = __commonJS({
|
|
6446
|
-
"node_modules/.pnpm/ajv@8.
|
|
6075
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
|
|
6447
6076
|
"use strict";
|
|
6448
6077
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6449
6078
|
exports2.DiscrError = void 0;
|
|
@@ -6451,18 +6080,19 @@ var require_types = __commonJS({
|
|
|
6451
6080
|
(function(DiscrError2) {
|
|
6452
6081
|
DiscrError2["Tag"] = "tag";
|
|
6453
6082
|
DiscrError2["Mapping"] = "mapping";
|
|
6454
|
-
})(DiscrError
|
|
6083
|
+
})(DiscrError || (exports2.DiscrError = DiscrError = {}));
|
|
6455
6084
|
}
|
|
6456
6085
|
});
|
|
6457
6086
|
|
|
6458
|
-
// node_modules/.pnpm/ajv@8.
|
|
6087
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6459
6088
|
var require_discriminator = __commonJS({
|
|
6460
|
-
"node_modules/.pnpm/ajv@8.
|
|
6089
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
|
|
6461
6090
|
"use strict";
|
|
6462
6091
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6463
6092
|
var codegen_1 = require_codegen();
|
|
6464
6093
|
var types_1 = require_types();
|
|
6465
6094
|
var compile_1 = require_compile();
|
|
6095
|
+
var ref_error_1 = require_ref_error();
|
|
6466
6096
|
var util_1 = require_util();
|
|
6467
6097
|
var error = {
|
|
6468
6098
|
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
|
|
@@ -6515,9 +6145,12 @@ var require_discriminator = __commonJS({
|
|
|
6515
6145
|
for (let i = 0; i < oneOf2.length; i++) {
|
|
6516
6146
|
let sch = oneOf2[i];
|
|
6517
6147
|
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
6518
|
-
|
|
6148
|
+
const ref = sch.$ref;
|
|
6149
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
|
|
6519
6150
|
if (sch instanceof compile_1.SchemaEnv)
|
|
6520
6151
|
sch = sch.schema;
|
|
6152
|
+
if (sch === void 0)
|
|
6153
|
+
throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
|
|
6521
6154
|
}
|
|
6522
6155
|
const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
|
|
6523
6156
|
if (typeof propSch != "object") {
|
|
@@ -6556,9 +6189,9 @@ var require_discriminator = __commonJS({
|
|
|
6556
6189
|
}
|
|
6557
6190
|
});
|
|
6558
6191
|
|
|
6559
|
-
// node_modules/.pnpm/ajv@8.
|
|
6192
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6560
6193
|
var require_json_schema_draft_07 = __commonJS({
|
|
6561
|
-
"node_modules/.pnpm/ajv@8.
|
|
6194
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
|
|
6562
6195
|
module2.exports = {
|
|
6563
6196
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6564
6197
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6713,12 +6346,12 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6713
6346
|
}
|
|
6714
6347
|
});
|
|
6715
6348
|
|
|
6716
|
-
// node_modules/.pnpm/ajv@8.
|
|
6349
|
+
// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js
|
|
6717
6350
|
var require_ajv = __commonJS({
|
|
6718
|
-
"node_modules/.pnpm/ajv@8.
|
|
6351
|
+
"node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js"(exports2, module2) {
|
|
6719
6352
|
"use strict";
|
|
6720
6353
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6721
|
-
exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
|
|
6354
|
+
exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv = void 0;
|
|
6722
6355
|
var core_1 = require_core();
|
|
6723
6356
|
var draft7_1 = require_draft7();
|
|
6724
6357
|
var discriminator_1 = require_discriminator();
|
|
@@ -6744,7 +6377,9 @@ var require_ajv = __commonJS({
|
|
|
6744
6377
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
6745
6378
|
}
|
|
6746
6379
|
};
|
|
6380
|
+
exports2.Ajv = Ajv2;
|
|
6747
6381
|
module2.exports = exports2 = Ajv2;
|
|
6382
|
+
module2.exports.Ajv = Ajv2;
|
|
6748
6383
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6749
6384
|
exports2.default = Ajv2;
|
|
6750
6385
|
var validate_1 = require_validate();
|
|
@@ -7639,9 +7274,4 @@ console.log(
|
|
|
7639
7274
|
"Simple parse result:",
|
|
7640
7275
|
extract(cheerio, html, config, "https://example.com")
|
|
7641
7276
|
);
|
|
7642
|
-
/*! Bundled license information:
|
|
7643
|
-
|
|
7644
|
-
uri-js/dist/es5/uri.all.js:
|
|
7645
|
-
(** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *)
|
|
7646
|
-
*/
|
|
7647
7277
|
//# sourceMappingURL=simple.js.map
|