@forsakringskassan/commitlint-config 3.0.9 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commitlint.js +683 -960
- package/dist/format.js +6 -0
- package/package.json +1 -1
package/dist/commitlint.js
CHANGED
|
@@ -4375,7 +4375,7 @@ var require_scope = __commonJS({
|
|
|
4375
4375
|
(function(UsedValueState2) {
|
|
4376
4376
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
4377
4377
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
4378
|
-
})(UsedValueState
|
|
4378
|
+
})(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
|
|
4379
4379
|
exports.varKinds = {
|
|
4380
4380
|
const: new code_1.Name("const"),
|
|
4381
4381
|
let: new code_1.Name("let"),
|
|
@@ -5369,7 +5369,7 @@ var require_util = __commonJS({
|
|
|
5369
5369
|
(function(Type2) {
|
|
5370
5370
|
Type2[Type2["Num"] = 0] = "Num";
|
|
5371
5371
|
Type2[Type2["Str"] = 1] = "Str";
|
|
5372
|
-
})(Type
|
|
5372
|
+
})(Type || (exports.Type = Type = {}));
|
|
5373
5373
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
5374
5374
|
if (dataProp instanceof codegen_1.Name) {
|
|
5375
5375
|
const isNumber = dataPropType === Type.Num;
|
|
@@ -5399,16 +5399,22 @@ var require_names = __commonJS({
|
|
|
5399
5399
|
var names = {
|
|
5400
5400
|
// validation function arguments
|
|
5401
5401
|
data: new codegen_1.Name("data"),
|
|
5402
|
+
// data passed to validation function
|
|
5402
5403
|
// args passed from referencing schema
|
|
5403
5404
|
valCxt: new codegen_1.Name("valCxt"),
|
|
5405
|
+
// validation/data context - should not be used directly, it is destructured to the names below
|
|
5404
5406
|
instancePath: new codegen_1.Name("instancePath"),
|
|
5405
5407
|
parentData: new codegen_1.Name("parentData"),
|
|
5406
5408
|
parentDataProperty: new codegen_1.Name("parentDataProperty"),
|
|
5407
5409
|
rootData: new codegen_1.Name("rootData"),
|
|
5410
|
+
// root data - same as the data passed to the first/top validation function
|
|
5408
5411
|
dynamicAnchors: new codegen_1.Name("dynamicAnchors"),
|
|
5412
|
+
// used to support recursiveRef and dynamicRef
|
|
5409
5413
|
// function scoped variables
|
|
5410
5414
|
vErrors: new codegen_1.Name("vErrors"),
|
|
5415
|
+
// null or array of validation errors
|
|
5411
5416
|
errors: new codegen_1.Name("errors"),
|
|
5417
|
+
// counter of validation errors
|
|
5412
5418
|
this: new codegen_1.Name("this"),
|
|
5413
5419
|
// "globals"
|
|
5414
5420
|
self: new codegen_1.Name("self"),
|
|
@@ -5496,6 +5502,7 @@ var require_errors = __commonJS({
|
|
|
5496
5502
|
var E = {
|
|
5497
5503
|
keyword: new codegen_1.Name("keyword"),
|
|
5498
5504
|
schemaPath: new codegen_1.Name("schemaPath"),
|
|
5505
|
+
// also used in JTD errors
|
|
5499
5506
|
params: new codegen_1.Name("params"),
|
|
5500
5507
|
propertyName: new codegen_1.Name("propertyName"),
|
|
5501
5508
|
message: new codegen_1.Name("message"),
|
|
@@ -5664,7 +5671,7 @@ var require_dataType = __commonJS({
|
|
|
5664
5671
|
(function(DataType2) {
|
|
5665
5672
|
DataType2[DataType2["Correct"] = 0] = "Correct";
|
|
5666
5673
|
DataType2[DataType2["Wrong"] = 1] = "Wrong";
|
|
5667
|
-
})(DataType
|
|
5674
|
+
})(DataType || (exports.DataType = DataType = {}));
|
|
5668
5675
|
function getSchemaTypes(schema2) {
|
|
5669
5676
|
const types = getJSONTypes(schema2.type);
|
|
5670
5677
|
const hasNull = types.includes("null");
|
|
@@ -6435,15 +6442,15 @@ var require_resolve = __commonJS({
|
|
|
6435
6442
|
if (parentJsonPtr === void 0)
|
|
6436
6443
|
return;
|
|
6437
6444
|
const fullPath = pathPrefix + jsonPtr;
|
|
6438
|
-
let
|
|
6445
|
+
let innerBaseId = baseIds[parentJsonPtr];
|
|
6439
6446
|
if (typeof sch[schemaId] == "string")
|
|
6440
|
-
|
|
6447
|
+
innerBaseId = addRef.call(this, sch[schemaId]);
|
|
6441
6448
|
addAnchor.call(this, sch.$anchor);
|
|
6442
6449
|
addAnchor.call(this, sch.$dynamicAnchor);
|
|
6443
|
-
baseIds[jsonPtr] =
|
|
6450
|
+
baseIds[jsonPtr] = innerBaseId;
|
|
6444
6451
|
function addRef(ref) {
|
|
6445
6452
|
const _resolve = this.opts.uriResolver.resolve;
|
|
6446
|
-
ref = normalizeId(
|
|
6453
|
+
ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref);
|
|
6447
6454
|
if (schemaRefs.has(ref))
|
|
6448
6455
|
throw ambiguos(ref);
|
|
6449
6456
|
schemaRefs.add(ref);
|
|
@@ -7081,6 +7088,7 @@ var require_compile = __commonJS({
|
|
|
7081
7088
|
parentDataProperty: names_1.default.parentDataProperty,
|
|
7082
7089
|
dataNames: [names_1.default.data],
|
|
7083
7090
|
dataPathArr: [codegen_1.nil],
|
|
7091
|
+
// TODO can its length be used as dataLevel if nil is removed?
|
|
7084
7092
|
dataLevel: 0,
|
|
7085
7093
|
dataTypes: [],
|
|
7086
7094
|
definedProperties: /* @__PURE__ */ new Set(),
|
|
@@ -7266,1020 +7274,725 @@ var require_data = __commonJS({
|
|
|
7266
7274
|
}
|
|
7267
7275
|
});
|
|
7268
7276
|
|
|
7269
|
-
// node_modules/uri
|
|
7270
|
-
var
|
|
7271
|
-
"node_modules/uri
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
for (var x2 = 1; x2 < xl; ++x2) {
|
|
7284
|
-
sets[x2] = sets[x2].slice(1, -1);
|
|
7285
|
-
}
|
|
7286
|
-
sets[xl] = sets[xl].slice(1);
|
|
7287
|
-
return sets.join("");
|
|
7288
|
-
} else {
|
|
7289
|
-
return sets[0];
|
|
7277
|
+
// node_modules/fast-uri/lib/utils.js
|
|
7278
|
+
var require_utils = __commonJS({
|
|
7279
|
+
"node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
7280
|
+
"use strict";
|
|
7281
|
+
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
7282
|
+
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
7283
|
+
function stringArrayToHexStripped(input) {
|
|
7284
|
+
let acc = "";
|
|
7285
|
+
let code = 0;
|
|
7286
|
+
let i = 0;
|
|
7287
|
+
for (i = 0; i < input.length; i++) {
|
|
7288
|
+
code = input[i].charCodeAt(0);
|
|
7289
|
+
if (code === 48) {
|
|
7290
|
+
continue;
|
|
7290
7291
|
}
|
|
7292
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
7293
|
+
return "";
|
|
7294
|
+
}
|
|
7295
|
+
acc += input[i];
|
|
7296
|
+
break;
|
|
7291
7297
|
}
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
return o === void 0 ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
|
|
7297
|
-
}
|
|
7298
|
-
function toUpperCase(str) {
|
|
7299
|
-
return str.toUpperCase();
|
|
7300
|
-
}
|
|
7301
|
-
function toArray(obj) {
|
|
7302
|
-
return obj !== void 0 && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
|
|
7303
|
-
}
|
|
7304
|
-
function assign(target, source) {
|
|
7305
|
-
var obj = target;
|
|
7306
|
-
if (source) {
|
|
7307
|
-
for (var key in source) {
|
|
7308
|
-
obj[key] = source[key];
|
|
7309
|
-
}
|
|
7298
|
+
for (i += 1; i < input.length; i++) {
|
|
7299
|
+
code = input[i].charCodeAt(0);
|
|
7300
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
7301
|
+
return "";
|
|
7310
7302
|
}
|
|
7311
|
-
|
|
7303
|
+
acc += input[i];
|
|
7312
7304
|
}
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
};
|
|
7305
|
+
return acc;
|
|
7306
|
+
}
|
|
7307
|
+
var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
7308
|
+
function consumeIsZone(buffer) {
|
|
7309
|
+
buffer.length = 0;
|
|
7310
|
+
return true;
|
|
7311
|
+
}
|
|
7312
|
+
function consumeHextets(buffer, address, output) {
|
|
7313
|
+
if (buffer.length) {
|
|
7314
|
+
const hex = stringArrayToHexStripped(buffer);
|
|
7315
|
+
if (hex !== "") {
|
|
7316
|
+
address.push(hex);
|
|
7317
|
+
} else {
|
|
7318
|
+
output.error = true;
|
|
7319
|
+
return false;
|
|
7320
|
+
}
|
|
7321
|
+
buffer.length = 0;
|
|
7331
7322
|
}
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
_d = true;
|
|
7347
|
-
_e = err;
|
|
7348
|
-
} finally {
|
|
7349
|
-
try {
|
|
7350
|
-
if (!_n && _i["return"]) _i["return"]();
|
|
7351
|
-
} finally {
|
|
7352
|
-
if (_d) throw _e;
|
|
7353
|
-
}
|
|
7354
|
-
}
|
|
7355
|
-
return _arr;
|
|
7323
|
+
return true;
|
|
7324
|
+
}
|
|
7325
|
+
function getIPV6(input) {
|
|
7326
|
+
let tokenCount = 0;
|
|
7327
|
+
const output = { error: false, address: "", zone: "" };
|
|
7328
|
+
const address = [];
|
|
7329
|
+
const buffer = [];
|
|
7330
|
+
let endipv6Encountered = false;
|
|
7331
|
+
let endIpv6 = false;
|
|
7332
|
+
let consume = consumeHextets;
|
|
7333
|
+
for (let i = 0; i < input.length; i++) {
|
|
7334
|
+
const cursor = input[i];
|
|
7335
|
+
if (cursor === "[" || cursor === "]") {
|
|
7336
|
+
continue;
|
|
7356
7337
|
}
|
|
7357
|
-
|
|
7358
|
-
if (
|
|
7359
|
-
|
|
7360
|
-
} else if (Symbol.iterator in Object(arr)) {
|
|
7361
|
-
return sliceIterator(arr, i);
|
|
7362
|
-
} else {
|
|
7363
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
7338
|
+
if (cursor === ":") {
|
|
7339
|
+
if (endipv6Encountered === true) {
|
|
7340
|
+
endIpv6 = true;
|
|
7364
7341
|
}
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7342
|
+
if (!consume(buffer, address, output)) {
|
|
7343
|
+
break;
|
|
7344
|
+
}
|
|
7345
|
+
if (++tokenCount > 7) {
|
|
7346
|
+
output.error = true;
|
|
7347
|
+
break;
|
|
7348
|
+
}
|
|
7349
|
+
if (i > 0 && input[i - 1] === ":") {
|
|
7350
|
+
endipv6Encountered = true;
|
|
7351
|
+
}
|
|
7352
|
+
address.push(":");
|
|
7353
|
+
continue;
|
|
7354
|
+
} else if (cursor === "%") {
|
|
7355
|
+
if (!consume(buffer, address, output)) {
|
|
7356
|
+
break;
|
|
7357
|
+
}
|
|
7358
|
+
consume = consumeIsZone;
|
|
7371
7359
|
} else {
|
|
7372
|
-
|
|
7360
|
+
buffer.push(cursor);
|
|
7361
|
+
continue;
|
|
7373
7362
|
}
|
|
7374
|
-
}
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
var initialN = 128;
|
|
7383
|
-
var delimiter = "-";
|
|
7384
|
-
var regexPunycode = /^xn--/;
|
|
7385
|
-
var regexNonASCII = /[^\0-\x7E]/;
|
|
7386
|
-
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
|
|
7387
|
-
var errors = {
|
|
7388
|
-
"overflow": "Overflow: input needs wider integers to process",
|
|
7389
|
-
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
7390
|
-
"invalid-input": "Invalid input"
|
|
7391
|
-
};
|
|
7392
|
-
var baseMinusTMin = base - tMin;
|
|
7393
|
-
var floor = Math.floor;
|
|
7394
|
-
var stringFromCharCode = String.fromCharCode;
|
|
7395
|
-
function error$1(type) {
|
|
7396
|
-
throw new RangeError(errors[type]);
|
|
7397
|
-
}
|
|
7398
|
-
function map(array, fn) {
|
|
7399
|
-
var result = [];
|
|
7400
|
-
var length = array.length;
|
|
7401
|
-
while (length--) {
|
|
7402
|
-
result[length] = fn(array[length]);
|
|
7363
|
+
}
|
|
7364
|
+
if (buffer.length) {
|
|
7365
|
+
if (consume === consumeIsZone) {
|
|
7366
|
+
output.zone = buffer.join("");
|
|
7367
|
+
} else if (endIpv6) {
|
|
7368
|
+
address.push(buffer.join(""));
|
|
7369
|
+
} else {
|
|
7370
|
+
address.push(stringArrayToHexStripped(buffer));
|
|
7403
7371
|
}
|
|
7404
|
-
return result;
|
|
7405
7372
|
}
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7373
|
+
output.address = address.join("");
|
|
7374
|
+
return output;
|
|
7375
|
+
}
|
|
7376
|
+
function normalizeIPv6(host) {
|
|
7377
|
+
if (findToken(host, ":") < 2) {
|
|
7378
|
+
return { host, isIPV6: false };
|
|
7379
|
+
}
|
|
7380
|
+
const ipv6 = getIPV6(host);
|
|
7381
|
+
if (!ipv6.error) {
|
|
7382
|
+
let newHost = ipv6.address;
|
|
7383
|
+
let escapedHost = ipv6.address;
|
|
7384
|
+
if (ipv6.zone) {
|
|
7385
|
+
newHost += "%" + ipv6.zone;
|
|
7386
|
+
escapedHost += "%25" + ipv6.zone;
|
|
7387
|
+
}
|
|
7388
|
+
return { host: newHost, isIPV6: true, escapedHost };
|
|
7389
|
+
} else {
|
|
7390
|
+
return { host, isIPV6: false };
|
|
7391
|
+
}
|
|
7392
|
+
}
|
|
7393
|
+
function findToken(str, token) {
|
|
7394
|
+
let ind = 0;
|
|
7395
|
+
for (let i = 0; i < str.length; i++) {
|
|
7396
|
+
if (str[i] === token) ind++;
|
|
7397
|
+
}
|
|
7398
|
+
return ind;
|
|
7399
|
+
}
|
|
7400
|
+
function removeDotSegments(path14) {
|
|
7401
|
+
let input = path14;
|
|
7402
|
+
const output = [];
|
|
7403
|
+
let nextSlash = -1;
|
|
7404
|
+
let len = 0;
|
|
7405
|
+
while (len = input.length) {
|
|
7406
|
+
if (len === 1) {
|
|
7407
|
+
if (input === ".") {
|
|
7408
|
+
break;
|
|
7409
|
+
} else if (input === "/") {
|
|
7410
|
+
output.push("/");
|
|
7411
|
+
break;
|
|
7432
7412
|
} else {
|
|
7433
|
-
output.push(
|
|
7413
|
+
output.push(input);
|
|
7414
|
+
break;
|
|
7434
7415
|
}
|
|
7435
|
-
}
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
var ucs2encode = function ucs2encode2(array) {
|
|
7439
|
-
return String.fromCodePoint.apply(String, toConsumableArray(array));
|
|
7440
|
-
};
|
|
7441
|
-
var basicToDigit = function basicToDigit2(codePoint) {
|
|
7442
|
-
if (codePoint - 48 < 10) {
|
|
7443
|
-
return codePoint - 22;
|
|
7444
|
-
}
|
|
7445
|
-
if (codePoint - 65 < 26) {
|
|
7446
|
-
return codePoint - 65;
|
|
7447
|
-
}
|
|
7448
|
-
if (codePoint - 97 < 26) {
|
|
7449
|
-
return codePoint - 97;
|
|
7450
|
-
}
|
|
7451
|
-
return base;
|
|
7452
|
-
};
|
|
7453
|
-
var digitToBasic = function digitToBasic2(digit, flag) {
|
|
7454
|
-
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
7455
|
-
};
|
|
7456
|
-
var adapt = function adapt2(delta, numPoints, firstTime) {
|
|
7457
|
-
var k = 0;
|
|
7458
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
7459
|
-
delta += floor(delta / numPoints);
|
|
7460
|
-
for (
|
|
7461
|
-
;
|
|
7462
|
-
/* no initialization */
|
|
7463
|
-
delta > baseMinusTMin * tMax >> 1;
|
|
7464
|
-
k += base
|
|
7465
|
-
) {
|
|
7466
|
-
delta = floor(delta / baseMinusTMin);
|
|
7467
|
-
}
|
|
7468
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
7469
|
-
};
|
|
7470
|
-
var decode = function decode2(input) {
|
|
7471
|
-
var output = [];
|
|
7472
|
-
var inputLength = input.length;
|
|
7473
|
-
var i = 0;
|
|
7474
|
-
var n = initialN;
|
|
7475
|
-
var bias = initialBias;
|
|
7476
|
-
var basic = input.lastIndexOf(delimiter);
|
|
7477
|
-
if (basic < 0) {
|
|
7478
|
-
basic = 0;
|
|
7479
|
-
}
|
|
7480
|
-
for (var j = 0; j < basic; ++j) {
|
|
7481
|
-
if (input.charCodeAt(j) >= 128) {
|
|
7482
|
-
error$1("not-basic");
|
|
7483
|
-
}
|
|
7484
|
-
output.push(input.charCodeAt(j));
|
|
7485
|
-
}
|
|
7486
|
-
for (var index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
|
|
7487
|
-
var oldi = i;
|
|
7488
|
-
for (
|
|
7489
|
-
var w = 1, k = base;
|
|
7490
|
-
;
|
|
7491
|
-
/* no condition */
|
|
7492
|
-
k += base
|
|
7493
|
-
) {
|
|
7494
|
-
if (index >= inputLength) {
|
|
7495
|
-
error$1("invalid-input");
|
|
7496
|
-
}
|
|
7497
|
-
var digit = basicToDigit(input.charCodeAt(index++));
|
|
7498
|
-
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
|
7499
|
-
error$1("overflow");
|
|
7500
|
-
}
|
|
7501
|
-
i += digit * w;
|
|
7502
|
-
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
7503
|
-
if (digit < t) {
|
|
7416
|
+
} else if (len === 2) {
|
|
7417
|
+
if (input[0] === ".") {
|
|
7418
|
+
if (input[1] === ".") {
|
|
7504
7419
|
break;
|
|
7420
|
+
} else if (input[1] === "/") {
|
|
7421
|
+
input = input.slice(2);
|
|
7422
|
+
continue;
|
|
7505
7423
|
}
|
|
7506
|
-
|
|
7507
|
-
if (
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
w *= baseMinusT;
|
|
7511
|
-
}
|
|
7512
|
-
var out = output.length + 1;
|
|
7513
|
-
bias = adapt(i - oldi, out, oldi == 0);
|
|
7514
|
-
if (floor(i / out) > maxInt - n) {
|
|
7515
|
-
error$1("overflow");
|
|
7516
|
-
}
|
|
7517
|
-
n += floor(i / out);
|
|
7518
|
-
i %= out;
|
|
7519
|
-
output.splice(i++, 0, n);
|
|
7520
|
-
}
|
|
7521
|
-
return String.fromCodePoint.apply(String, output);
|
|
7522
|
-
};
|
|
7523
|
-
var encode = function encode2(input) {
|
|
7524
|
-
var output = [];
|
|
7525
|
-
input = ucs2decode(input);
|
|
7526
|
-
var inputLength = input.length;
|
|
7527
|
-
var n = initialN;
|
|
7528
|
-
var delta = 0;
|
|
7529
|
-
var bias = initialBias;
|
|
7530
|
-
var _iteratorNormalCompletion = true;
|
|
7531
|
-
var _didIteratorError = false;
|
|
7532
|
-
var _iteratorError = void 0;
|
|
7533
|
-
try {
|
|
7534
|
-
for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
7535
|
-
var _currentValue2 = _step.value;
|
|
7536
|
-
if (_currentValue2 < 128) {
|
|
7537
|
-
output.push(stringFromCharCode(_currentValue2));
|
|
7424
|
+
} else if (input[0] === "/") {
|
|
7425
|
+
if (input[1] === "." || input[1] === "/") {
|
|
7426
|
+
output.push("/");
|
|
7427
|
+
break;
|
|
7538
7428
|
}
|
|
7539
7429
|
}
|
|
7540
|
-
}
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
try {
|
|
7545
|
-
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
7546
|
-
_iterator.return();
|
|
7547
|
-
}
|
|
7548
|
-
} finally {
|
|
7549
|
-
if (_didIteratorError) {
|
|
7550
|
-
throw _iteratorError;
|
|
7430
|
+
} else if (len === 3) {
|
|
7431
|
+
if (input === "/..") {
|
|
7432
|
+
if (output.length !== 0) {
|
|
7433
|
+
output.pop();
|
|
7551
7434
|
}
|
|
7435
|
+
output.push("/");
|
|
7436
|
+
break;
|
|
7552
7437
|
}
|
|
7553
7438
|
}
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
while (handledCPCount < inputLength) {
|
|
7560
|
-
var m = maxInt;
|
|
7561
|
-
var _iteratorNormalCompletion2 = true;
|
|
7562
|
-
var _didIteratorError2 = false;
|
|
7563
|
-
var _iteratorError2 = void 0;
|
|
7564
|
-
try {
|
|
7565
|
-
for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
7566
|
-
var currentValue = _step2.value;
|
|
7567
|
-
if (currentValue >= n && currentValue < m) {
|
|
7568
|
-
m = currentValue;
|
|
7569
|
-
}
|
|
7570
|
-
}
|
|
7571
|
-
} catch (err) {
|
|
7572
|
-
_didIteratorError2 = true;
|
|
7573
|
-
_iteratorError2 = err;
|
|
7574
|
-
} finally {
|
|
7575
|
-
try {
|
|
7576
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
7577
|
-
_iterator2.return();
|
|
7578
|
-
}
|
|
7579
|
-
} finally {
|
|
7580
|
-
if (_didIteratorError2) {
|
|
7581
|
-
throw _iteratorError2;
|
|
7582
|
-
}
|
|
7439
|
+
if (input[0] === ".") {
|
|
7440
|
+
if (input[1] === ".") {
|
|
7441
|
+
if (input[2] === "/") {
|
|
7442
|
+
input = input.slice(3);
|
|
7443
|
+
continue;
|
|
7583
7444
|
}
|
|
7445
|
+
} else if (input[1] === "/") {
|
|
7446
|
+
input = input.slice(2);
|
|
7447
|
+
continue;
|
|
7584
7448
|
}
|
|
7585
|
-
|
|
7586
|
-
if (
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
7596
|
-
var _currentValue = _step3.value;
|
|
7597
|
-
if (_currentValue < n && ++delta > maxInt) {
|
|
7598
|
-
error$1("overflow");
|
|
7599
|
-
}
|
|
7600
|
-
if (_currentValue == n) {
|
|
7601
|
-
var q2 = delta;
|
|
7602
|
-
for (
|
|
7603
|
-
var k = base;
|
|
7604
|
-
;
|
|
7605
|
-
/* no condition */
|
|
7606
|
-
k += base
|
|
7607
|
-
) {
|
|
7608
|
-
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
7609
|
-
if (q2 < t) {
|
|
7610
|
-
break;
|
|
7611
|
-
}
|
|
7612
|
-
var qMinusT = q2 - t;
|
|
7613
|
-
var baseMinusT = base - t;
|
|
7614
|
-
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
|
|
7615
|
-
q2 = floor(qMinusT / baseMinusT);
|
|
7449
|
+
} else if (input[0] === "/") {
|
|
7450
|
+
if (input[1] === ".") {
|
|
7451
|
+
if (input[2] === "/") {
|
|
7452
|
+
input = input.slice(2);
|
|
7453
|
+
continue;
|
|
7454
|
+
} else if (input[2] === ".") {
|
|
7455
|
+
if (input[3] === "/") {
|
|
7456
|
+
input = input.slice(3);
|
|
7457
|
+
if (output.length !== 0) {
|
|
7458
|
+
output.pop();
|
|
7616
7459
|
}
|
|
7617
|
-
|
|
7618
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
7619
|
-
delta = 0;
|
|
7620
|
-
++handledCPCount;
|
|
7621
|
-
}
|
|
7622
|
-
}
|
|
7623
|
-
} catch (err) {
|
|
7624
|
-
_didIteratorError3 = true;
|
|
7625
|
-
_iteratorError3 = err;
|
|
7626
|
-
} finally {
|
|
7627
|
-
try {
|
|
7628
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return) {
|
|
7629
|
-
_iterator3.return();
|
|
7630
|
-
}
|
|
7631
|
-
} finally {
|
|
7632
|
-
if (_didIteratorError3) {
|
|
7633
|
-
throw _iteratorError3;
|
|
7460
|
+
continue;
|
|
7634
7461
|
}
|
|
7635
7462
|
}
|
|
7636
7463
|
}
|
|
7637
|
-
++delta;
|
|
7638
|
-
++n;
|
|
7639
7464
|
}
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
};
|
|
7647
|
-
var toASCII = function toASCII2(input) {
|
|
7648
|
-
return mapDomain(input, function(string) {
|
|
7649
|
-
return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
|
|
7650
|
-
});
|
|
7651
|
-
};
|
|
7652
|
-
var punycode = {
|
|
7653
|
-
/**
|
|
7654
|
-
* A string representing the current Punycode.js version number.
|
|
7655
|
-
* @memberOf punycode
|
|
7656
|
-
* @type String
|
|
7657
|
-
*/
|
|
7658
|
-
"version": "2.1.0",
|
|
7659
|
-
/**
|
|
7660
|
-
* An object of methods to convert from JavaScript's internal character
|
|
7661
|
-
* representation (UCS-2) to Unicode code points, and back.
|
|
7662
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
7663
|
-
* @memberOf punycode
|
|
7664
|
-
* @type Object
|
|
7665
|
-
*/
|
|
7666
|
-
"ucs2": {
|
|
7667
|
-
"decode": ucs2decode,
|
|
7668
|
-
"encode": ucs2encode
|
|
7669
|
-
},
|
|
7670
|
-
"decode": decode,
|
|
7671
|
-
"encode": encode,
|
|
7672
|
-
"toASCII": toASCII,
|
|
7673
|
-
"toUnicode": toUnicode
|
|
7674
|
-
};
|
|
7675
|
-
var SCHEMES = {};
|
|
7676
|
-
function pctEncChar(chr) {
|
|
7677
|
-
var c = chr.charCodeAt(0);
|
|
7678
|
-
var e = void 0;
|
|
7679
|
-
if (c < 16) e = "%0" + c.toString(16).toUpperCase();
|
|
7680
|
-
else if (c < 128) e = "%" + c.toString(16).toUpperCase();
|
|
7681
|
-
else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
7682
|
-
else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
7683
|
-
return e;
|
|
7684
|
-
}
|
|
7685
|
-
function pctDecChars(str) {
|
|
7686
|
-
var newStr = "";
|
|
7687
|
-
var i = 0;
|
|
7688
|
-
var il = str.length;
|
|
7689
|
-
while (i < il) {
|
|
7690
|
-
var c = parseInt(str.substr(i + 1, 2), 16);
|
|
7691
|
-
if (c < 128) {
|
|
7692
|
-
newStr += String.fromCharCode(c);
|
|
7693
|
-
i += 3;
|
|
7694
|
-
} else if (c >= 194 && c < 224) {
|
|
7695
|
-
if (il - i >= 6) {
|
|
7696
|
-
var c2 = parseInt(str.substr(i + 4, 2), 16);
|
|
7697
|
-
newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
|
|
7698
|
-
} else {
|
|
7699
|
-
newStr += str.substr(i, 6);
|
|
7700
|
-
}
|
|
7701
|
-
i += 6;
|
|
7702
|
-
} else if (c >= 224) {
|
|
7703
|
-
if (il - i >= 9) {
|
|
7704
|
-
var _c2 = parseInt(str.substr(i + 4, 2), 16);
|
|
7705
|
-
var c3 = parseInt(str.substr(i + 7, 2), 16);
|
|
7706
|
-
newStr += String.fromCharCode((c & 15) << 12 | (_c2 & 63) << 6 | c3 & 63);
|
|
7707
|
-
} else {
|
|
7708
|
-
newStr += str.substr(i, 9);
|
|
7709
|
-
}
|
|
7710
|
-
i += 9;
|
|
7711
|
-
} else {
|
|
7712
|
-
newStr += str.substr(i, 3);
|
|
7713
|
-
i += 3;
|
|
7714
|
-
}
|
|
7465
|
+
if ((nextSlash = input.indexOf("/", 1)) === -1) {
|
|
7466
|
+
output.push(input);
|
|
7467
|
+
break;
|
|
7468
|
+
} else {
|
|
7469
|
+
output.push(input.slice(0, nextSlash));
|
|
7470
|
+
input = input.slice(nextSlash);
|
|
7715
7471
|
}
|
|
7716
|
-
return newStr;
|
|
7717
7472
|
}
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
if (components.userinfo !== void 0) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
7725
|
-
if (components.host !== void 0) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
7726
|
-
if (components.path !== void 0) 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);
|
|
7727
|
-
if (components.query !== void 0) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
7728
|
-
if (components.fragment !== void 0) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
7729
|
-
return components;
|
|
7473
|
+
return output.join("");
|
|
7474
|
+
}
|
|
7475
|
+
function normalizeComponentEncoding(component, esc) {
|
|
7476
|
+
const func = esc !== true ? escape : unescape;
|
|
7477
|
+
if (component.scheme !== void 0) {
|
|
7478
|
+
component.scheme = func(component.scheme);
|
|
7730
7479
|
}
|
|
7731
|
-
|
|
7732
|
-
|
|
7480
|
+
if (component.userinfo !== void 0) {
|
|
7481
|
+
component.userinfo = func(component.userinfo);
|
|
7733
7482
|
}
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
var _matches = slicedToArray(matches, 2), address = _matches[1];
|
|
7737
|
-
if (address) {
|
|
7738
|
-
return address.split(".").map(_stripLeadingZeros).join(".");
|
|
7739
|
-
} else {
|
|
7740
|
-
return host;
|
|
7741
|
-
}
|
|
7483
|
+
if (component.host !== void 0) {
|
|
7484
|
+
component.host = func(component.host);
|
|
7742
7485
|
}
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
var _matches2 = slicedToArray(matches, 3), address = _matches2[1], zone = _matches2[2];
|
|
7746
|
-
if (address) {
|
|
7747
|
-
var _address$toLowerCase$ = address.toLowerCase().split("::").reverse(), _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), last = _address$toLowerCase$2[0], first = _address$toLowerCase$2[1];
|
|
7748
|
-
var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
|
|
7749
|
-
var lastFields = last.split(":").map(_stripLeadingZeros);
|
|
7750
|
-
var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
|
|
7751
|
-
var fieldCount = isLastFieldIPv4Address ? 7 : 8;
|
|
7752
|
-
var lastFieldsStart = lastFields.length - fieldCount;
|
|
7753
|
-
var fields = Array(fieldCount);
|
|
7754
|
-
for (var x2 = 0; x2 < fieldCount; ++x2) {
|
|
7755
|
-
fields[x2] = firstFields[x2] || lastFields[lastFieldsStart + x2] || "";
|
|
7756
|
-
}
|
|
7757
|
-
if (isLastFieldIPv4Address) {
|
|
7758
|
-
fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
|
|
7759
|
-
}
|
|
7760
|
-
var allZeroFields = fields.reduce(function(acc, field, index) {
|
|
7761
|
-
if (!field || field === "0") {
|
|
7762
|
-
var lastLongest = acc[acc.length - 1];
|
|
7763
|
-
if (lastLongest && lastLongest.index + lastLongest.length === index) {
|
|
7764
|
-
lastLongest.length++;
|
|
7765
|
-
} else {
|
|
7766
|
-
acc.push({ index, length: 1 });
|
|
7767
|
-
}
|
|
7768
|
-
}
|
|
7769
|
-
return acc;
|
|
7770
|
-
}, []);
|
|
7771
|
-
var longestZeroFields = allZeroFields.sort(function(a, b) {
|
|
7772
|
-
return b.length - a.length;
|
|
7773
|
-
})[0];
|
|
7774
|
-
var newHost = void 0;
|
|
7775
|
-
if (longestZeroFields && longestZeroFields.length > 1) {
|
|
7776
|
-
var newFirst = fields.slice(0, longestZeroFields.index);
|
|
7777
|
-
var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
|
|
7778
|
-
newHost = newFirst.join(":") + "::" + newLast.join(":");
|
|
7779
|
-
} else {
|
|
7780
|
-
newHost = fields.join(":");
|
|
7781
|
-
}
|
|
7782
|
-
if (zone) {
|
|
7783
|
-
newHost += "%" + zone;
|
|
7784
|
-
}
|
|
7785
|
-
return newHost;
|
|
7786
|
-
} else {
|
|
7787
|
-
return host;
|
|
7788
|
-
}
|
|
7486
|
+
if (component.path !== void 0) {
|
|
7487
|
+
component.path = func(component.path);
|
|
7789
7488
|
}
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
function parse2(uriString) {
|
|
7793
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7794
|
-
var components = {};
|
|
7795
|
-
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
7796
|
-
if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
|
|
7797
|
-
var matches = uriString.match(URI_PARSE);
|
|
7798
|
-
if (matches) {
|
|
7799
|
-
if (NO_MATCH_IS_UNDEFINED) {
|
|
7800
|
-
components.scheme = matches[1];
|
|
7801
|
-
components.userinfo = matches[3];
|
|
7802
|
-
components.host = matches[4];
|
|
7803
|
-
components.port = parseInt(matches[5], 10);
|
|
7804
|
-
components.path = matches[6] || "";
|
|
7805
|
-
components.query = matches[7];
|
|
7806
|
-
components.fragment = matches[8];
|
|
7807
|
-
if (isNaN(components.port)) {
|
|
7808
|
-
components.port = matches[5];
|
|
7809
|
-
}
|
|
7810
|
-
} else {
|
|
7811
|
-
components.scheme = matches[1] || void 0;
|
|
7812
|
-
components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : void 0;
|
|
7813
|
-
components.host = uriString.indexOf("//") !== -1 ? matches[4] : void 0;
|
|
7814
|
-
components.port = parseInt(matches[5], 10);
|
|
7815
|
-
components.path = matches[6] || "";
|
|
7816
|
-
components.query = uriString.indexOf("?") !== -1 ? matches[7] : void 0;
|
|
7817
|
-
components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : void 0;
|
|
7818
|
-
if (isNaN(components.port)) {
|
|
7819
|
-
components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : void 0;
|
|
7820
|
-
}
|
|
7821
|
-
}
|
|
7822
|
-
if (components.host) {
|
|
7823
|
-
components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
|
|
7824
|
-
}
|
|
7825
|
-
if (components.scheme === void 0 && components.userinfo === void 0 && components.host === void 0 && components.port === void 0 && !components.path && components.query === void 0) {
|
|
7826
|
-
components.reference = "same-document";
|
|
7827
|
-
} else if (components.scheme === void 0) {
|
|
7828
|
-
components.reference = "relative";
|
|
7829
|
-
} else if (components.fragment === void 0) {
|
|
7830
|
-
components.reference = "absolute";
|
|
7831
|
-
} else {
|
|
7832
|
-
components.reference = "uri";
|
|
7833
|
-
}
|
|
7834
|
-
if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
|
|
7835
|
-
components.error = components.error || "URI is not a " + options.reference + " reference.";
|
|
7836
|
-
}
|
|
7837
|
-
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
7838
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
7839
|
-
if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
|
|
7840
|
-
try {
|
|
7841
|
-
components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
|
|
7842
|
-
} catch (e) {
|
|
7843
|
-
components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
|
|
7844
|
-
}
|
|
7845
|
-
}
|
|
7846
|
-
_normalizeComponentEncoding(components, URI_PROTOCOL);
|
|
7847
|
-
} else {
|
|
7848
|
-
_normalizeComponentEncoding(components, protocol);
|
|
7849
|
-
}
|
|
7850
|
-
if (schemeHandler && schemeHandler.parse) {
|
|
7851
|
-
schemeHandler.parse(components, options);
|
|
7852
|
-
}
|
|
7853
|
-
} else {
|
|
7854
|
-
components.error = components.error || "URI can not be parsed.";
|
|
7855
|
-
}
|
|
7856
|
-
return components;
|
|
7489
|
+
if (component.query !== void 0) {
|
|
7490
|
+
component.query = func(component.query);
|
|
7857
7491
|
}
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
}
|
|
7876
|
-
var RDS1 = /^\.\.?\//;
|
|
7877
|
-
var RDS2 = /^\/\.(\/|$)/;
|
|
7878
|
-
var RDS3 = /^\/\.\.(\/|$)/;
|
|
7879
|
-
var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
|
|
7880
|
-
function removeDotSegments(input) {
|
|
7881
|
-
var output = [];
|
|
7882
|
-
while (input.length) {
|
|
7883
|
-
if (input.match(RDS1)) {
|
|
7884
|
-
input = input.replace(RDS1, "");
|
|
7885
|
-
} else if (input.match(RDS2)) {
|
|
7886
|
-
input = input.replace(RDS2, "/");
|
|
7887
|
-
} else if (input.match(RDS3)) {
|
|
7888
|
-
input = input.replace(RDS3, "/");
|
|
7889
|
-
output.pop();
|
|
7890
|
-
} else if (input === "." || input === "..") {
|
|
7891
|
-
input = "";
|
|
7492
|
+
if (component.fragment !== void 0) {
|
|
7493
|
+
component.fragment = func(component.fragment);
|
|
7494
|
+
}
|
|
7495
|
+
return component;
|
|
7496
|
+
}
|
|
7497
|
+
function recomposeAuthority(component) {
|
|
7498
|
+
const uriTokens = [];
|
|
7499
|
+
if (component.userinfo !== void 0) {
|
|
7500
|
+
uriTokens.push(component.userinfo);
|
|
7501
|
+
uriTokens.push("@");
|
|
7502
|
+
}
|
|
7503
|
+
if (component.host !== void 0) {
|
|
7504
|
+
let host = unescape(component.host);
|
|
7505
|
+
if (!isIPv4(host)) {
|
|
7506
|
+
const ipV6res = normalizeIPv6(host);
|
|
7507
|
+
if (ipV6res.isIPV6 === true) {
|
|
7508
|
+
host = `[${ipV6res.escapedHost}]`;
|
|
7892
7509
|
} else {
|
|
7893
|
-
|
|
7894
|
-
if (im) {
|
|
7895
|
-
var s = im[0];
|
|
7896
|
-
input = input.slice(s.length);
|
|
7897
|
-
output.push(s);
|
|
7898
|
-
} else {
|
|
7899
|
-
throw new Error("Unexpected dot segment condition");
|
|
7900
|
-
}
|
|
7510
|
+
host = component.host;
|
|
7901
7511
|
}
|
|
7902
7512
|
}
|
|
7903
|
-
|
|
7513
|
+
uriTokens.push(host);
|
|
7904
7514
|
}
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
var uriTokens = [];
|
|
7909
|
-
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
7910
|
-
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
|
|
7911
|
-
if (components.host) {
|
|
7912
|
-
if (protocol.IPV6ADDRESS.test(components.host)) {
|
|
7913
|
-
} else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
|
|
7914
|
-
try {
|
|
7915
|
-
components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
|
|
7916
|
-
} catch (e) {
|
|
7917
|
-
components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
7918
|
-
}
|
|
7919
|
-
}
|
|
7920
|
-
}
|
|
7921
|
-
_normalizeComponentEncoding(components, protocol);
|
|
7922
|
-
if (options.reference !== "suffix" && components.scheme) {
|
|
7923
|
-
uriTokens.push(components.scheme);
|
|
7924
|
-
uriTokens.push(":");
|
|
7925
|
-
}
|
|
7926
|
-
var authority = _recomposeAuthority(components, options);
|
|
7927
|
-
if (authority !== void 0) {
|
|
7928
|
-
if (options.reference !== "suffix") {
|
|
7929
|
-
uriTokens.push("//");
|
|
7930
|
-
}
|
|
7931
|
-
uriTokens.push(authority);
|
|
7932
|
-
if (components.path && components.path.charAt(0) !== "/") {
|
|
7933
|
-
uriTokens.push("/");
|
|
7934
|
-
}
|
|
7935
|
-
}
|
|
7936
|
-
if (components.path !== void 0) {
|
|
7937
|
-
var s = components.path;
|
|
7938
|
-
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
7939
|
-
s = removeDotSegments(s);
|
|
7940
|
-
}
|
|
7941
|
-
if (authority === void 0) {
|
|
7942
|
-
s = s.replace(/^\/\//, "/%2F");
|
|
7943
|
-
}
|
|
7944
|
-
uriTokens.push(s);
|
|
7945
|
-
}
|
|
7946
|
-
if (components.query !== void 0) {
|
|
7947
|
-
uriTokens.push("?");
|
|
7948
|
-
uriTokens.push(components.query);
|
|
7949
|
-
}
|
|
7950
|
-
if (components.fragment !== void 0) {
|
|
7951
|
-
uriTokens.push("#");
|
|
7952
|
-
uriTokens.push(components.fragment);
|
|
7953
|
-
}
|
|
7954
|
-
return uriTokens.join("");
|
|
7515
|
+
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
7516
|
+
uriTokens.push(":");
|
|
7517
|
+
uriTokens.push(String(component.port));
|
|
7955
7518
|
}
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7519
|
+
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
7520
|
+
}
|
|
7521
|
+
module.exports = {
|
|
7522
|
+
nonSimpleDomain,
|
|
7523
|
+
recomposeAuthority,
|
|
7524
|
+
normalizeComponentEncoding,
|
|
7525
|
+
removeDotSegments,
|
|
7526
|
+
isIPv4,
|
|
7527
|
+
isUUID,
|
|
7528
|
+
normalizeIPv6,
|
|
7529
|
+
stringArrayToHexStripped
|
|
7530
|
+
};
|
|
7531
|
+
}
|
|
7532
|
+
});
|
|
7533
|
+
|
|
7534
|
+
// node_modules/fast-uri/lib/schemes.js
|
|
7535
|
+
var require_schemes = __commonJS({
|
|
7536
|
+
"node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
7537
|
+
"use strict";
|
|
7538
|
+
var { isUUID } = require_utils();
|
|
7539
|
+
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
7540
|
+
var supportedSchemeNames = (
|
|
7541
|
+
/** @type {const} */
|
|
7542
|
+
[
|
|
7543
|
+
"http",
|
|
7544
|
+
"https",
|
|
7545
|
+
"ws",
|
|
7546
|
+
"wss",
|
|
7547
|
+
"urn",
|
|
7548
|
+
"urn:uuid"
|
|
7549
|
+
]
|
|
7550
|
+
);
|
|
7551
|
+
function isValidSchemeName(name) {
|
|
7552
|
+
return supportedSchemeNames.indexOf(
|
|
7553
|
+
/** @type {*} */
|
|
7554
|
+
name
|
|
7555
|
+
) !== -1;
|
|
7556
|
+
}
|
|
7557
|
+
function wsIsSecure(wsComponent) {
|
|
7558
|
+
if (wsComponent.secure === true) {
|
|
7559
|
+
return true;
|
|
7560
|
+
} else if (wsComponent.secure === false) {
|
|
7561
|
+
return false;
|
|
7562
|
+
} else if (wsComponent.scheme) {
|
|
7563
|
+
return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
|
|
7564
|
+
} else {
|
|
7565
|
+
return false;
|
|
7566
|
+
}
|
|
7567
|
+
}
|
|
7568
|
+
function httpParse(component) {
|
|
7569
|
+
if (!component.host) {
|
|
7570
|
+
component.error = component.error || "HTTP URIs must have a host.";
|
|
7571
|
+
}
|
|
7572
|
+
return component;
|
|
7573
|
+
}
|
|
7574
|
+
function httpSerialize(component) {
|
|
7575
|
+
const secure = String(component.scheme).toLowerCase() === "https";
|
|
7576
|
+
if (component.port === (secure ? 443 : 80) || component.port === "") {
|
|
7577
|
+
component.port = void 0;
|
|
7578
|
+
}
|
|
7579
|
+
if (!component.path) {
|
|
7580
|
+
component.path = "/";
|
|
7581
|
+
}
|
|
7582
|
+
return component;
|
|
7583
|
+
}
|
|
7584
|
+
function wsParse(wsComponent) {
|
|
7585
|
+
wsComponent.secure = wsIsSecure(wsComponent);
|
|
7586
|
+
wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
|
|
7587
|
+
wsComponent.path = void 0;
|
|
7588
|
+
wsComponent.query = void 0;
|
|
7589
|
+
return wsComponent;
|
|
7590
|
+
}
|
|
7591
|
+
function wsSerialize(wsComponent) {
|
|
7592
|
+
if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") {
|
|
7593
|
+
wsComponent.port = void 0;
|
|
7594
|
+
}
|
|
7595
|
+
if (typeof wsComponent.secure === "boolean") {
|
|
7596
|
+
wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
|
|
7597
|
+
wsComponent.secure = void 0;
|
|
7598
|
+
}
|
|
7599
|
+
if (wsComponent.resourceName) {
|
|
7600
|
+
const [path14, query] = wsComponent.resourceName.split("?");
|
|
7601
|
+
wsComponent.path = path14 && path14 !== "/" ? path14 : void 0;
|
|
7602
|
+
wsComponent.query = query;
|
|
7603
|
+
wsComponent.resourceName = void 0;
|
|
7604
|
+
}
|
|
7605
|
+
wsComponent.fragment = void 0;
|
|
7606
|
+
return wsComponent;
|
|
7607
|
+
}
|
|
7608
|
+
function urnParse(urnComponent, options) {
|
|
7609
|
+
if (!urnComponent.path) {
|
|
7610
|
+
urnComponent.error = "URN can not be parsed";
|
|
7611
|
+
return urnComponent;
|
|
7612
|
+
}
|
|
7613
|
+
const matches = urnComponent.path.match(URN_REG);
|
|
7614
|
+
if (matches) {
|
|
7615
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
7616
|
+
urnComponent.nid = matches[1].toLowerCase();
|
|
7617
|
+
urnComponent.nss = matches[2];
|
|
7618
|
+
const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`;
|
|
7619
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
7620
|
+
urnComponent.path = void 0;
|
|
7621
|
+
if (schemeHandler) {
|
|
7622
|
+
urnComponent = schemeHandler.parse(urnComponent, options);
|
|
7963
7623
|
}
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7624
|
+
} else {
|
|
7625
|
+
urnComponent.error = urnComponent.error || "URN can not be parsed.";
|
|
7626
|
+
}
|
|
7627
|
+
return urnComponent;
|
|
7628
|
+
}
|
|
7629
|
+
function urnSerialize(urnComponent, options) {
|
|
7630
|
+
if (urnComponent.nid === void 0) {
|
|
7631
|
+
throw new Error("URN without nid cannot be serialized");
|
|
7632
|
+
}
|
|
7633
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
7634
|
+
const nid = urnComponent.nid.toLowerCase();
|
|
7635
|
+
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
7636
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
7637
|
+
if (schemeHandler) {
|
|
7638
|
+
urnComponent = schemeHandler.serialize(urnComponent, options);
|
|
7639
|
+
}
|
|
7640
|
+
const uriComponent = urnComponent;
|
|
7641
|
+
const nss = urnComponent.nss;
|
|
7642
|
+
uriComponent.path = `${nid || options.nid}:${nss}`;
|
|
7643
|
+
options.skipEscape = true;
|
|
7644
|
+
return uriComponent;
|
|
7645
|
+
}
|
|
7646
|
+
function urnuuidParse(urnComponent, options) {
|
|
7647
|
+
const uuidComponent = urnComponent;
|
|
7648
|
+
uuidComponent.uuid = uuidComponent.nss;
|
|
7649
|
+
uuidComponent.nss = void 0;
|
|
7650
|
+
if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
|
|
7651
|
+
uuidComponent.error = uuidComponent.error || "UUID is not valid.";
|
|
7652
|
+
}
|
|
7653
|
+
return uuidComponent;
|
|
7654
|
+
}
|
|
7655
|
+
function urnuuidSerialize(uuidComponent) {
|
|
7656
|
+
const urnComponent = uuidComponent;
|
|
7657
|
+
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
7658
|
+
return urnComponent;
|
|
7659
|
+
}
|
|
7660
|
+
var http = (
|
|
7661
|
+
/** @type {SchemeHandler} */
|
|
7662
|
+
{
|
|
7663
|
+
scheme: "http",
|
|
7664
|
+
domainHost: true,
|
|
7665
|
+
parse: httpParse,
|
|
7666
|
+
serialize: httpSerialize
|
|
7667
|
+
}
|
|
7668
|
+
);
|
|
7669
|
+
var https = (
|
|
7670
|
+
/** @type {SchemeHandler} */
|
|
7671
|
+
{
|
|
7672
|
+
scheme: "https",
|
|
7673
|
+
domainHost: http.domainHost,
|
|
7674
|
+
parse: httpParse,
|
|
7675
|
+
serialize: httpSerialize
|
|
7676
|
+
}
|
|
7677
|
+
);
|
|
7678
|
+
var ws = (
|
|
7679
|
+
/** @type {SchemeHandler} */
|
|
7680
|
+
{
|
|
7681
|
+
scheme: "ws",
|
|
7682
|
+
domainHost: true,
|
|
7683
|
+
parse: wsParse,
|
|
7684
|
+
serialize: wsSerialize
|
|
7685
|
+
}
|
|
7686
|
+
);
|
|
7687
|
+
var wss = (
|
|
7688
|
+
/** @type {SchemeHandler} */
|
|
7689
|
+
{
|
|
7690
|
+
scheme: "wss",
|
|
7691
|
+
domainHost: ws.domainHost,
|
|
7692
|
+
parse: ws.parse,
|
|
7693
|
+
serialize: ws.serialize
|
|
7694
|
+
}
|
|
7695
|
+
);
|
|
7696
|
+
var urn = (
|
|
7697
|
+
/** @type {SchemeHandler} */
|
|
7698
|
+
{
|
|
7699
|
+
scheme: "urn",
|
|
7700
|
+
parse: urnParse,
|
|
7701
|
+
serialize: urnSerialize,
|
|
7702
|
+
skipNormalize: true
|
|
7703
|
+
}
|
|
7704
|
+
);
|
|
7705
|
+
var urnuuid = (
|
|
7706
|
+
/** @type {SchemeHandler} */
|
|
7707
|
+
{
|
|
7708
|
+
scheme: "urn:uuid",
|
|
7709
|
+
parse: urnuuidParse,
|
|
7710
|
+
serialize: urnuuidSerialize,
|
|
7711
|
+
skipNormalize: true
|
|
7712
|
+
}
|
|
7713
|
+
);
|
|
7714
|
+
var SCHEMES = (
|
|
7715
|
+
/** @type {Record<SchemeName, SchemeHandler>} */
|
|
7716
|
+
{
|
|
7717
|
+
http,
|
|
7718
|
+
https,
|
|
7719
|
+
ws,
|
|
7720
|
+
wss,
|
|
7721
|
+
urn,
|
|
7722
|
+
"urn:uuid": urnuuid
|
|
7723
|
+
}
|
|
7724
|
+
);
|
|
7725
|
+
Object.setPrototypeOf(SCHEMES, null);
|
|
7726
|
+
function getSchemeHandler(scheme) {
|
|
7727
|
+
return scheme && (SCHEMES[
|
|
7728
|
+
/** @type {SchemeName} */
|
|
7729
|
+
scheme
|
|
7730
|
+
] || SCHEMES[
|
|
7731
|
+
/** @type {SchemeName} */
|
|
7732
|
+
scheme.toLowerCase()
|
|
7733
|
+
]) || void 0;
|
|
7734
|
+
}
|
|
7735
|
+
module.exports = {
|
|
7736
|
+
wsIsSecure,
|
|
7737
|
+
SCHEMES,
|
|
7738
|
+
isValidSchemeName,
|
|
7739
|
+
getSchemeHandler
|
|
7740
|
+
};
|
|
7741
|
+
}
|
|
7742
|
+
});
|
|
7743
|
+
|
|
7744
|
+
// node_modules/fast-uri/index.js
|
|
7745
|
+
var require_fast_uri = __commonJS({
|
|
7746
|
+
"node_modules/fast-uri/index.js"(exports, module) {
|
|
7747
|
+
"use strict";
|
|
7748
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
7749
|
+
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
7750
|
+
function normalize2(uri, options) {
|
|
7751
|
+
if (typeof uri === "string") {
|
|
7752
|
+
uri = /** @type {T} */
|
|
7753
|
+
serialize(parse2(uri, options), options);
|
|
7754
|
+
} else if (typeof uri === "object") {
|
|
7755
|
+
uri = /** @type {T} */
|
|
7756
|
+
parse2(serialize(uri, options), options);
|
|
7757
|
+
}
|
|
7758
|
+
return uri;
|
|
7759
|
+
}
|
|
7760
|
+
function resolve5(baseURI, relativeURI, options) {
|
|
7761
|
+
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
7762
|
+
const resolved = resolveComponent(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
7763
|
+
schemelessOptions.skipEscape = true;
|
|
7764
|
+
return serialize(resolved, schemelessOptions);
|
|
7765
|
+
}
|
|
7766
|
+
function resolveComponent(base, relative2, options, skipNormalization) {
|
|
7767
|
+
const target = {};
|
|
7768
|
+
if (!skipNormalization) {
|
|
7769
|
+
base = parse2(serialize(base, options), options);
|
|
7770
|
+
relative2 = parse2(serialize(relative2, options), options);
|
|
7771
|
+
}
|
|
7772
|
+
options = options || {};
|
|
7773
|
+
if (!options.tolerant && relative2.scheme) {
|
|
7774
|
+
target.scheme = relative2.scheme;
|
|
7775
|
+
target.userinfo = relative2.userinfo;
|
|
7776
|
+
target.host = relative2.host;
|
|
7777
|
+
target.port = relative2.port;
|
|
7778
|
+
target.path = removeDotSegments(relative2.path || "");
|
|
7779
|
+
target.query = relative2.query;
|
|
7780
|
+
} else {
|
|
7781
|
+
if (relative2.userinfo !== void 0 || relative2.host !== void 0 || relative2.port !== void 0) {
|
|
7967
7782
|
target.userinfo = relative2.userinfo;
|
|
7968
7783
|
target.host = relative2.host;
|
|
7969
7784
|
target.port = relative2.port;
|
|
7970
7785
|
target.path = removeDotSegments(relative2.path || "");
|
|
7971
7786
|
target.query = relative2.query;
|
|
7972
7787
|
} else {
|
|
7973
|
-
if (relative2.
|
|
7974
|
-
target.
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7788
|
+
if (!relative2.path) {
|
|
7789
|
+
target.path = base.path;
|
|
7790
|
+
if (relative2.query !== void 0) {
|
|
7791
|
+
target.query = relative2.query;
|
|
7792
|
+
} else {
|
|
7793
|
+
target.query = base.query;
|
|
7794
|
+
}
|
|
7979
7795
|
} else {
|
|
7980
|
-
if (
|
|
7981
|
-
target.path =
|
|
7982
|
-
if (relative2.query !== void 0) {
|
|
7983
|
-
target.query = relative2.query;
|
|
7984
|
-
} else {
|
|
7985
|
-
target.query = base2.query;
|
|
7986
|
-
}
|
|
7796
|
+
if (relative2.path[0] === "/") {
|
|
7797
|
+
target.path = removeDotSegments(relative2.path);
|
|
7987
7798
|
} else {
|
|
7988
|
-
if (
|
|
7989
|
-
target.path =
|
|
7799
|
+
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
|
|
7800
|
+
target.path = "/" + relative2.path;
|
|
7801
|
+
} else if (!base.path) {
|
|
7802
|
+
target.path = relative2.path;
|
|
7990
7803
|
} else {
|
|
7991
|
-
|
|
7992
|
-
target.path = "/" + relative2.path;
|
|
7993
|
-
} else if (!base2.path) {
|
|
7994
|
-
target.path = relative2.path;
|
|
7995
|
-
} else {
|
|
7996
|
-
target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative2.path;
|
|
7997
|
-
}
|
|
7998
|
-
target.path = removeDotSegments(target.path);
|
|
7804
|
+
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative2.path;
|
|
7999
7805
|
}
|
|
8000
|
-
target.
|
|
7806
|
+
target.path = removeDotSegments(target.path);
|
|
8001
7807
|
}
|
|
8002
|
-
target.
|
|
8003
|
-
|
|
8004
|
-
|
|
7808
|
+
target.query = relative2.query;
|
|
7809
|
+
}
|
|
7810
|
+
target.userinfo = base.userinfo;
|
|
7811
|
+
target.host = base.host;
|
|
7812
|
+
target.port = base.port;
|
|
7813
|
+
}
|
|
7814
|
+
target.scheme = base.scheme;
|
|
7815
|
+
}
|
|
7816
|
+
target.fragment = relative2.fragment;
|
|
7817
|
+
return target;
|
|
7818
|
+
}
|
|
7819
|
+
function equal(uriA, uriB, options) {
|
|
7820
|
+
if (typeof uriA === "string") {
|
|
7821
|
+
uriA = unescape(uriA);
|
|
7822
|
+
uriA = serialize(normalizeComponentEncoding(parse2(uriA, options), true), { ...options, skipEscape: true });
|
|
7823
|
+
} else if (typeof uriA === "object") {
|
|
7824
|
+
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
7825
|
+
}
|
|
7826
|
+
if (typeof uriB === "string") {
|
|
7827
|
+
uriB = unescape(uriB);
|
|
7828
|
+
uriB = serialize(normalizeComponentEncoding(parse2(uriB, options), true), { ...options, skipEscape: true });
|
|
7829
|
+
} else if (typeof uriB === "object") {
|
|
7830
|
+
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
7831
|
+
}
|
|
7832
|
+
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
7833
|
+
}
|
|
7834
|
+
function serialize(cmpts, opts) {
|
|
7835
|
+
const component = {
|
|
7836
|
+
host: cmpts.host,
|
|
7837
|
+
scheme: cmpts.scheme,
|
|
7838
|
+
userinfo: cmpts.userinfo,
|
|
7839
|
+
port: cmpts.port,
|
|
7840
|
+
path: cmpts.path,
|
|
7841
|
+
query: cmpts.query,
|
|
7842
|
+
nid: cmpts.nid,
|
|
7843
|
+
nss: cmpts.nss,
|
|
7844
|
+
uuid: cmpts.uuid,
|
|
7845
|
+
fragment: cmpts.fragment,
|
|
7846
|
+
reference: cmpts.reference,
|
|
7847
|
+
resourceName: cmpts.resourceName,
|
|
7848
|
+
secure: cmpts.secure,
|
|
7849
|
+
error: ""
|
|
7850
|
+
};
|
|
7851
|
+
const options = Object.assign({}, opts);
|
|
7852
|
+
const uriTokens = [];
|
|
7853
|
+
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
7854
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
7855
|
+
if (component.path !== void 0) {
|
|
7856
|
+
if (!options.skipEscape) {
|
|
7857
|
+
component.path = escape(component.path);
|
|
7858
|
+
if (component.scheme !== void 0) {
|
|
7859
|
+
component.path = component.path.split("%3A").join(":");
|
|
8005
7860
|
}
|
|
8006
|
-
|
|
7861
|
+
} else {
|
|
7862
|
+
component.path = unescape(component.path);
|
|
8007
7863
|
}
|
|
8008
|
-
target.fragment = relative2.fragment;
|
|
8009
|
-
return target;
|
|
8010
7864
|
}
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
return serialize(resolveComponents(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
|
|
7865
|
+
if (options.reference !== "suffix" && component.scheme) {
|
|
7866
|
+
uriTokens.push(component.scheme, ":");
|
|
8014
7867
|
}
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
7868
|
+
const authority = recomposeAuthority(component);
|
|
7869
|
+
if (authority !== void 0) {
|
|
7870
|
+
if (options.reference !== "suffix") {
|
|
7871
|
+
uriTokens.push("//");
|
|
7872
|
+
}
|
|
7873
|
+
uriTokens.push(authority);
|
|
7874
|
+
if (component.path && component.path[0] !== "/") {
|
|
7875
|
+
uriTokens.push("/");
|
|
8020
7876
|
}
|
|
8021
|
-
return uri;
|
|
8022
7877
|
}
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
uriA = serialize(uriA, options);
|
|
7878
|
+
if (component.path !== void 0) {
|
|
7879
|
+
let s = component.path;
|
|
7880
|
+
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
7881
|
+
s = removeDotSegments(s);
|
|
8028
7882
|
}
|
|
8029
|
-
if (
|
|
8030
|
-
|
|
8031
|
-
} else if (typeOf(uriB) === "object") {
|
|
8032
|
-
uriB = serialize(uriB, options);
|
|
7883
|
+
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
7884
|
+
s = "/%2F" + s.slice(2);
|
|
8033
7885
|
}
|
|
8034
|
-
|
|
7886
|
+
uriTokens.push(s);
|
|
8035
7887
|
}
|
|
8036
|
-
|
|
8037
|
-
|
|
7888
|
+
if (component.query !== void 0) {
|
|
7889
|
+
uriTokens.push("?", component.query);
|
|
8038
7890
|
}
|
|
8039
|
-
|
|
8040
|
-
|
|
7891
|
+
if (component.fragment !== void 0) {
|
|
7892
|
+
uriTokens.push("#", component.fragment);
|
|
8041
7893
|
}
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
}
|
|
8056
|
-
if (!components.path) {
|
|
8057
|
-
components.path = "/";
|
|
8058
|
-
}
|
|
8059
|
-
return components;
|
|
8060
|
-
}
|
|
8061
|
-
};
|
|
8062
|
-
var handler$1 = {
|
|
8063
|
-
scheme: "https",
|
|
8064
|
-
domainHost: handler.domainHost,
|
|
8065
|
-
parse: handler.parse,
|
|
8066
|
-
serialize: handler.serialize
|
|
7894
|
+
return uriTokens.join("");
|
|
7895
|
+
}
|
|
7896
|
+
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
7897
|
+
function parse2(uri, opts) {
|
|
7898
|
+
const options = Object.assign({}, opts);
|
|
7899
|
+
const parsed = {
|
|
7900
|
+
scheme: void 0,
|
|
7901
|
+
userinfo: void 0,
|
|
7902
|
+
host: "",
|
|
7903
|
+
port: void 0,
|
|
7904
|
+
path: "",
|
|
7905
|
+
query: void 0,
|
|
7906
|
+
fragment: void 0
|
|
8067
7907
|
};
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
if (
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
7908
|
+
let isIP = false;
|
|
7909
|
+
if (options.reference === "suffix") {
|
|
7910
|
+
if (options.scheme) {
|
|
7911
|
+
uri = options.scheme + ":" + uri;
|
|
7912
|
+
} else {
|
|
7913
|
+
uri = "//" + uri;
|
|
7914
|
+
}
|
|
7915
|
+
}
|
|
7916
|
+
const matches = uri.match(URI_PARSE);
|
|
7917
|
+
if (matches) {
|
|
7918
|
+
parsed.scheme = matches[1];
|
|
7919
|
+
parsed.userinfo = matches[3];
|
|
7920
|
+
parsed.host = matches[4];
|
|
7921
|
+
parsed.port = parseInt(matches[5], 10);
|
|
7922
|
+
parsed.path = matches[6] || "";
|
|
7923
|
+
parsed.query = matches[7];
|
|
7924
|
+
parsed.fragment = matches[8];
|
|
7925
|
+
if (isNaN(parsed.port)) {
|
|
7926
|
+
parsed.port = matches[5];
|
|
7927
|
+
}
|
|
7928
|
+
if (parsed.host) {
|
|
7929
|
+
const ipv4result = isIPv4(parsed.host);
|
|
7930
|
+
if (ipv4result === false) {
|
|
7931
|
+
const ipv6result = normalizeIPv6(parsed.host);
|
|
7932
|
+
parsed.host = ipv6result.host.toLowerCase();
|
|
7933
|
+
isIP = ipv6result.isIPV6;
|
|
7934
|
+
} else {
|
|
7935
|
+
isIP = true;
|
|
8095
7936
|
}
|
|
8096
|
-
wsComponents.fragment = void 0;
|
|
8097
|
-
return wsComponents;
|
|
8098
7937
|
}
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
scheme
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
var NOT_HFNAME = new RegExp(merge2("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
|
|
8119
|
-
var NOT_HFVALUE = NOT_HFNAME;
|
|
8120
|
-
function decodeUnreserved(str) {
|
|
8121
|
-
var decStr = pctDecChars(str);
|
|
8122
|
-
return !decStr.match(UNRESERVED) ? str : decStr;
|
|
8123
|
-
}
|
|
8124
|
-
var handler$4 = {
|
|
8125
|
-
scheme: "mailto",
|
|
8126
|
-
parse: function parse$$1(components, options) {
|
|
8127
|
-
var mailtoComponents = components;
|
|
8128
|
-
var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
|
|
8129
|
-
mailtoComponents.path = void 0;
|
|
8130
|
-
if (mailtoComponents.query) {
|
|
8131
|
-
var unknownHeaders = false;
|
|
8132
|
-
var headers = {};
|
|
8133
|
-
var hfields = mailtoComponents.query.split("&");
|
|
8134
|
-
for (var x2 = 0, xl = hfields.length; x2 < xl; ++x2) {
|
|
8135
|
-
var hfield = hfields[x2].split("=");
|
|
8136
|
-
switch (hfield[0]) {
|
|
8137
|
-
case "to":
|
|
8138
|
-
var toAddrs = hfield[1].split(",");
|
|
8139
|
-
for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
|
|
8140
|
-
to.push(toAddrs[_x]);
|
|
8141
|
-
}
|
|
8142
|
-
break;
|
|
8143
|
-
case "subject":
|
|
8144
|
-
mailtoComponents.subject = unescapeComponent(hfield[1], options);
|
|
8145
|
-
break;
|
|
8146
|
-
case "body":
|
|
8147
|
-
mailtoComponents.body = unescapeComponent(hfield[1], options);
|
|
8148
|
-
break;
|
|
8149
|
-
default:
|
|
8150
|
-
unknownHeaders = true;
|
|
8151
|
-
headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
|
|
8152
|
-
break;
|
|
8153
|
-
}
|
|
8154
|
-
}
|
|
8155
|
-
if (unknownHeaders) mailtoComponents.headers = headers;
|
|
8156
|
-
}
|
|
8157
|
-
mailtoComponents.query = void 0;
|
|
8158
|
-
for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
|
|
8159
|
-
var addr = to[_x2].split("@");
|
|
8160
|
-
addr[0] = unescapeComponent(addr[0]);
|
|
8161
|
-
if (!options.unicodeSupport) {
|
|
8162
|
-
try {
|
|
8163
|
-
addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
|
|
8164
|
-
} catch (e) {
|
|
8165
|
-
mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
|
|
8166
|
-
}
|
|
8167
|
-
} else {
|
|
8168
|
-
addr[1] = unescapeComponent(addr[1], options).toLowerCase();
|
|
7938
|
+
if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) {
|
|
7939
|
+
parsed.reference = "same-document";
|
|
7940
|
+
} else if (parsed.scheme === void 0) {
|
|
7941
|
+
parsed.reference = "relative";
|
|
7942
|
+
} else if (parsed.fragment === void 0) {
|
|
7943
|
+
parsed.reference = "absolute";
|
|
7944
|
+
} else {
|
|
7945
|
+
parsed.reference = "uri";
|
|
7946
|
+
}
|
|
7947
|
+
if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
|
|
7948
|
+
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
7949
|
+
}
|
|
7950
|
+
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
7951
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
7952
|
+
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
7953
|
+
try {
|
|
7954
|
+
parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
|
|
7955
|
+
} catch (e) {
|
|
7956
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
8169
7957
|
}
|
|
8170
|
-
to[_x2] = addr.join("@");
|
|
8171
7958
|
}
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
if (to) {
|
|
8178
|
-
for (var x2 = 0, xl = to.length; x2 < xl; ++x2) {
|
|
8179
|
-
var toAddr = String(to[x2]);
|
|
8180
|
-
var atIdx = toAddr.lastIndexOf("@");
|
|
8181
|
-
var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
|
|
8182
|
-
var domain = toAddr.slice(atIdx + 1);
|
|
8183
|
-
try {
|
|
8184
|
-
domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
|
|
8185
|
-
} catch (e) {
|
|
8186
|
-
components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
8187
|
-
}
|
|
8188
|
-
to[x2] = localPart + "@" + domain;
|
|
7959
|
+
}
|
|
7960
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
7961
|
+
if (uri.indexOf("%") !== -1) {
|
|
7962
|
+
if (parsed.scheme !== void 0) {
|
|
7963
|
+
parsed.scheme = unescape(parsed.scheme);
|
|
8189
7964
|
}
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
var headers = mailtoComponents.headers = mailtoComponents.headers || {};
|
|
8193
|
-
if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
|
|
8194
|
-
if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
|
|
8195
|
-
var fields = [];
|
|
8196
|
-
for (var name in headers) {
|
|
8197
|
-
if (headers[name] !== O[name]) {
|
|
8198
|
-
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));
|
|
7965
|
+
if (parsed.host !== void 0) {
|
|
7966
|
+
parsed.host = unescape(parsed.host);
|
|
8199
7967
|
}
|
|
8200
7968
|
}
|
|
8201
|
-
if (
|
|
8202
|
-
|
|
7969
|
+
if (parsed.path) {
|
|
7970
|
+
parsed.path = escape(unescape(parsed.path));
|
|
8203
7971
|
}
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
};
|
|
8207
|
-
var URN_PARSE = /^([^\:]+)\:(.*)/;
|
|
8208
|
-
var handler$5 = {
|
|
8209
|
-
scheme: "urn",
|
|
8210
|
-
parse: function parse$$1(components, options) {
|
|
8211
|
-
var matches = components.path && components.path.match(URN_PARSE);
|
|
8212
|
-
var urnComponents = components;
|
|
8213
|
-
if (matches) {
|
|
8214
|
-
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
8215
|
-
var nid = matches[1].toLowerCase();
|
|
8216
|
-
var nss = matches[2];
|
|
8217
|
-
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
8218
|
-
var schemeHandler = SCHEMES[urnScheme];
|
|
8219
|
-
urnComponents.nid = nid;
|
|
8220
|
-
urnComponents.nss = nss;
|
|
8221
|
-
urnComponents.path = void 0;
|
|
8222
|
-
if (schemeHandler) {
|
|
8223
|
-
urnComponents = schemeHandler.parse(urnComponents, options);
|
|
8224
|
-
}
|
|
8225
|
-
} else {
|
|
8226
|
-
urnComponents.error = urnComponents.error || "URN can not be parsed.";
|
|
7972
|
+
if (parsed.fragment) {
|
|
7973
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
8227
7974
|
}
|
|
8228
|
-
return urnComponents;
|
|
8229
|
-
},
|
|
8230
|
-
serialize: function serialize$$1(urnComponents, options) {
|
|
8231
|
-
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
8232
|
-
var nid = urnComponents.nid;
|
|
8233
|
-
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
8234
|
-
var schemeHandler = SCHEMES[urnScheme];
|
|
8235
|
-
if (schemeHandler) {
|
|
8236
|
-
urnComponents = schemeHandler.serialize(urnComponents, options);
|
|
8237
|
-
}
|
|
8238
|
-
var uriComponents = urnComponents;
|
|
8239
|
-
var nss = urnComponents.nss;
|
|
8240
|
-
uriComponents.path = (nid || options.nid) + ":" + nss;
|
|
8241
|
-
return uriComponents;
|
|
8242
7975
|
}
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
var handler$6 = {
|
|
8246
|
-
scheme: "urn:uuid",
|
|
8247
|
-
parse: function parse3(urnComponents, options) {
|
|
8248
|
-
var uuidComponents = urnComponents;
|
|
8249
|
-
uuidComponents.uuid = uuidComponents.nss;
|
|
8250
|
-
uuidComponents.nss = void 0;
|
|
8251
|
-
if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
|
|
8252
|
-
uuidComponents.error = uuidComponents.error || "UUID is not valid.";
|
|
8253
|
-
}
|
|
8254
|
-
return uuidComponents;
|
|
8255
|
-
},
|
|
8256
|
-
serialize: function serialize2(uuidComponents, options) {
|
|
8257
|
-
var urnComponents = uuidComponents;
|
|
8258
|
-
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
8259
|
-
return urnComponents;
|
|
7976
|
+
if (schemeHandler && schemeHandler.parse) {
|
|
7977
|
+
schemeHandler.parse(parsed, options);
|
|
8260
7978
|
}
|
|
8261
|
-
}
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
SCHEMES
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
exports2.equal = equal;
|
|
8279
|
-
exports2.escapeComponent = escapeComponent;
|
|
8280
|
-
exports2.unescapeComponent = unescapeComponent;
|
|
8281
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8282
|
-
}));
|
|
7979
|
+
} else {
|
|
7980
|
+
parsed.error = parsed.error || "URI can not be parsed.";
|
|
7981
|
+
}
|
|
7982
|
+
return parsed;
|
|
7983
|
+
}
|
|
7984
|
+
var fastUri = {
|
|
7985
|
+
SCHEMES,
|
|
7986
|
+
normalize: normalize2,
|
|
7987
|
+
resolve: resolve5,
|
|
7988
|
+
resolveComponent,
|
|
7989
|
+
equal,
|
|
7990
|
+
serialize,
|
|
7991
|
+
parse: parse2
|
|
7992
|
+
};
|
|
7993
|
+
module.exports = fastUri;
|
|
7994
|
+
module.exports.default = fastUri;
|
|
7995
|
+
module.exports.fastUri = fastUri;
|
|
8283
7996
|
}
|
|
8284
7997
|
});
|
|
8285
7998
|
|
|
@@ -8288,7 +8001,7 @@ var require_uri = __commonJS({
|
|
|
8288
8001
|
"node_modules/@commitlint/config-validator/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
8289
8002
|
"use strict";
|
|
8290
8003
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8291
|
-
var uri =
|
|
8004
|
+
var uri = require_fast_uri();
|
|
8292
8005
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
8293
8006
|
exports.default = uri;
|
|
8294
8007
|
}
|
|
@@ -8772,9 +8485,9 @@ var require_core = __commonJS({
|
|
|
8772
8485
|
}
|
|
8773
8486
|
}
|
|
8774
8487
|
};
|
|
8775
|
-
exports.default = Ajv2;
|
|
8776
8488
|
Ajv2.ValidationError = validation_error_1.default;
|
|
8777
8489
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
8490
|
+
exports.default = Ajv2;
|
|
8778
8491
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
8779
8492
|
for (const key in checkOpts) {
|
|
8780
8493
|
const opt = key;
|
|
@@ -10598,7 +10311,7 @@ var require_types = __commonJS({
|
|
|
10598
10311
|
(function(DiscrError2) {
|
|
10599
10312
|
DiscrError2["Tag"] = "tag";
|
|
10600
10313
|
DiscrError2["Mapping"] = "mapping";
|
|
10601
|
-
})(DiscrError
|
|
10314
|
+
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
10602
10315
|
}
|
|
10603
10316
|
});
|
|
10604
10317
|
|
|
@@ -10610,6 +10323,7 @@ var require_discriminator = __commonJS({
|
|
|
10610
10323
|
var codegen_1 = require_codegen();
|
|
10611
10324
|
var types_1 = require_types();
|
|
10612
10325
|
var compile_1 = require_compile();
|
|
10326
|
+
var ref_error_1 = require_ref_error();
|
|
10613
10327
|
var util_1 = require_util();
|
|
10614
10328
|
var error = {
|
|
10615
10329
|
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
|
|
@@ -10662,9 +10376,12 @@ var require_discriminator = __commonJS({
|
|
|
10662
10376
|
for (let i = 0; i < oneOf.length; i++) {
|
|
10663
10377
|
let sch = oneOf[i];
|
|
10664
10378
|
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
10665
|
-
|
|
10379
|
+
const ref = sch.$ref;
|
|
10380
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
|
|
10666
10381
|
if (sch instanceof compile_1.SchemaEnv)
|
|
10667
10382
|
sch = sch.schema;
|
|
10383
|
+
if (sch === void 0)
|
|
10384
|
+
throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
|
|
10668
10385
|
}
|
|
10669
10386
|
const propSch = (_a2 = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a2 === void 0 ? void 0 : _a2[tagName];
|
|
10670
10387
|
if (typeof propSch != "object") {
|
|
@@ -10865,7 +10582,7 @@ var require_ajv = __commonJS({
|
|
|
10865
10582
|
"node_modules/@commitlint/config-validator/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
10866
10583
|
"use strict";
|
|
10867
10584
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10868
|
-
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
10585
|
+
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
10869
10586
|
var core_1 = require_core();
|
|
10870
10587
|
var draft7_1 = require_draft7();
|
|
10871
10588
|
var discriminator_1 = require_discriminator();
|
|
@@ -10891,7 +10608,9 @@ var require_ajv = __commonJS({
|
|
|
10891
10608
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
10892
10609
|
}
|
|
10893
10610
|
};
|
|
10611
|
+
exports.Ajv = Ajv2;
|
|
10894
10612
|
module.exports = exports = Ajv2;
|
|
10613
|
+
module.exports.Ajv = Ajv2;
|
|
10895
10614
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10896
10615
|
exports.default = Ajv2;
|
|
10897
10616
|
var validate_1 = require_validate();
|
|
@@ -141820,7 +141539,7 @@ ${lanes.join("\n")}
|
|
|
141820
141539
|
return updated;
|
|
141821
141540
|
}
|
|
141822
141541
|
function transformAMDModule(node) {
|
|
141823
|
-
const
|
|
141542
|
+
const define = factory2.createIdentifier("define");
|
|
141824
141543
|
const moduleName2 = tryGetModuleNameFromFile(factory2, node, host, compilerOptions);
|
|
141825
141544
|
const jsonSourceFile = isJsonSourceFile(node) && node;
|
|
141826
141545
|
const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies(
|
|
@@ -141834,7 +141553,7 @@ ${lanes.join("\n")}
|
|
|
141834
141553
|
factory2.createNodeArray([
|
|
141835
141554
|
factory2.createExpressionStatement(
|
|
141836
141555
|
factory2.createCallExpression(
|
|
141837
|
-
|
|
141556
|
+
define,
|
|
141838
141557
|
/*typeArguments*/
|
|
141839
141558
|
void 0,
|
|
141840
141559
|
[
|
|
@@ -250455,7 +250174,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
250455
250174
|
if ("automatic" !== runtime) throw path14.buildCodeFrameError('Runtime must be either "classic" or "automatic".');
|
|
250456
250175
|
{
|
|
250457
250176
|
if (pragmaSet || pragmaFragSet) throw path14.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");
|
|
250458
|
-
const
|
|
250177
|
+
const define = (name2, id) => set(state, name2, /* @__PURE__ */ (function(pass, path15, importName, source2) {
|
|
250459
250178
|
return () => {
|
|
250460
250179
|
const actualSource = (function(source3, importName2) {
|
|
250461
250180
|
switch (importName2) {
|
|
@@ -250480,7 +250199,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
250480
250199
|
}
|
|
250481
250200
|
};
|
|
250482
250201
|
})(state, path14, id, source));
|
|
250483
|
-
|
|
250202
|
+
define("id/jsx", development ? "jsxDEV" : "jsx"), define("id/jsxs", development ? "jsxDEV" : "jsxs"), define("id/createElement", "createElement"), define("id/fragment", "Fragment"), set(state, "defaultPure", source === DEFAULT.importSource);
|
|
250484
250203
|
}
|
|
250485
250204
|
}
|
|
250486
250205
|
development && path14.traverse(injectMetaPropertiesVisitor, state);
|
|
@@ -262699,7 +262418,8 @@ var enum_default = (value2, enums = []) => {
|
|
|
262699
262418
|
var max_length_default = (value2, max) => typeof value2 === "string" && value2.length <= max;
|
|
262700
262419
|
|
|
262701
262420
|
// node_modules/@commitlint/ensure/lib/max-line-length.js
|
|
262702
|
-
var
|
|
262421
|
+
var URL_REGEX = /\bhttps?:\/\/\S+/;
|
|
262422
|
+
var max_line_length_default = (value2, max) => typeof value2 === "string" && value2.split(/\r?\n/).every((line) => URL_REGEX.test(line) || max_length_default(line, max));
|
|
262703
262423
|
|
|
262704
262424
|
// node_modules/@commitlint/ensure/lib/min-length.js
|
|
262705
262425
|
var min_length_default = (value2, min) => typeof value2 === "string" && value2.length >= min;
|
|
@@ -265435,6 +265155,12 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
265435
265155
|
if (env.TERM === "xterm-kitty") {
|
|
265436
265156
|
return 3;
|
|
265437
265157
|
}
|
|
265158
|
+
if (env.TERM === "xterm-ghostty") {
|
|
265159
|
+
return 3;
|
|
265160
|
+
}
|
|
265161
|
+
if (env.TERM === "wezterm") {
|
|
265162
|
+
return 3;
|
|
265163
|
+
}
|
|
265438
265164
|
if ("TERM_PROGRAM" in env) {
|
|
265439
265165
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
265440
265166
|
switch (env.TERM_PROGRAM) {
|
|
@@ -271923,9 +271649,6 @@ process.on("unhandledRejection", (reason, promise) => {
|
|
|
271923
271649
|
});
|
|
271924
271650
|
/*! Bundled license information:
|
|
271925
271651
|
|
|
271926
|
-
uri-js/dist/es5/uri.all.js:
|
|
271927
|
-
(** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *)
|
|
271928
|
-
|
|
271929
271652
|
typescript/lib/typescript.js:
|
|
271930
271653
|
(*! *****************************************************************************
|
|
271931
271654
|
Copyright (c) Microsoft Corporation. All rights reserved.
|