@putout/babel 2.2.0 → 2.3.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/bundle/index.d.ts +1 -0
- package/bundle/index.js +280 -1286
- package/package.json +9 -9
package/bundle/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
function _array_like_to_array(arr, len) {
|
|
2
3
|
if (len == null || len > arr.length) len = arr.length;
|
|
3
4
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -496,19 +497,19 @@ var require_js_tokens = __commonJS({
|
|
|
496
497
|
var TokensPrecedingExpression;
|
|
497
498
|
var WhiteSpace;
|
|
498
499
|
var jsTokens2;
|
|
499
|
-
RegularExpressionLiteral = RegExp("\\/(?![*\\/])(?:\\[(?:
|
|
500
|
+
RegularExpressionLiteral = RegExp("\\/(?![*\\/])(?:\\[(?:[^\\]\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*\\]|[^\\/\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?", "yu");
|
|
500
501
|
Punctuator = RegExp("--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]", "y");
|
|
501
|
-
Identifier2 = RegExp("(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]
|
|
502
|
-
StringLiteral3 = RegExp("(['\"])(?:(?!\\1)[
|
|
502
|
+
Identifier2 = RegExp("(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]+|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+", "yu");
|
|
503
|
+
StringLiteral3 = RegExp("(['\"])(?:[^'\"\\\\\\n\\r]+|(?!\\1)['\"]|\\\\(?:\\r\\n|[^]))*(\\1)?", "y");
|
|
503
504
|
NumericLiteral3 = RegExp("(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+", "y");
|
|
504
|
-
Template = RegExp("[`}](?:[^`\\\\$]
|
|
505
|
+
Template = RegExp("[`}](?:[^`\\\\$]+|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?", "y");
|
|
505
506
|
WhiteSpace = RegExp("[\\t\\v\\f\\ufeff\\p{Zs}]+", "yu");
|
|
506
507
|
LineTerminatorSequence = RegExp("\\r?\\n|[\\r\\u2028\\u2029]", "y");
|
|
507
|
-
MultiLineComment = RegExp("\\/\\*(?:[^*]
|
|
508
|
+
MultiLineComment = RegExp("\\/\\*(?:[^*]+|\\*(?!\\/))*(\\*\\/)?", "y");
|
|
508
509
|
SingleLineComment = RegExp("\\/\\/.*", "y");
|
|
509
510
|
JSXPunctuator = RegExp("[<>.:={}]|\\/(?![\\/*])", "y");
|
|
510
511
|
JSXIdentifier2 = RegExp("[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*", "yu");
|
|
511
|
-
JSXString = RegExp("(['\"])(?:(?!\\1)[
|
|
512
|
+
JSXString = RegExp("(['\"])(?:[^'\"]+|(?!\\1)['\"])*(\\1)?", "y");
|
|
512
513
|
JSXText2 = RegExp("[^<>{}]+", "y");
|
|
513
514
|
TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
|
|
514
515
|
TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
|
|
@@ -1665,7 +1666,7 @@ var require_ms = __commonJS({
|
|
|
1665
1666
|
// node_modules/debug/src/common.js
|
|
1666
1667
|
var require_common = __commonJS({
|
|
1667
1668
|
"node_modules/debug/src/common.js": function(exports2, module2) {
|
|
1668
|
-
function setup2(
|
|
1669
|
+
function setup2(env2) {
|
|
1669
1670
|
createDebug.debug = createDebug;
|
|
1670
1671
|
createDebug.default = createDebug;
|
|
1671
1672
|
createDebug.coerce = coerce;
|
|
@@ -1674,8 +1675,8 @@ var require_common = __commonJS({
|
|
|
1674
1675
|
createDebug.enabled = enabled;
|
|
1675
1676
|
createDebug.humanize = require_ms();
|
|
1676
1677
|
createDebug.destroy = destroy;
|
|
1677
|
-
Object.keys(
|
|
1678
|
-
createDebug[key] =
|
|
1678
|
+
Object.keys(env2).forEach(function(key) {
|
|
1679
|
+
createDebug[key] = env2[key];
|
|
1679
1680
|
});
|
|
1680
1681
|
createDebug.names = [];
|
|
1681
1682
|
createDebug.skips = [];
|
|
@@ -2007,26 +2008,26 @@ var require_has_flag = __commonJS({
|
|
|
2007
2008
|
var require_supports_color = __commonJS({
|
|
2008
2009
|
"node_modules/supports-color/index.js": function(exports2, module2) {
|
|
2009
2010
|
"use strict";
|
|
2010
|
-
var
|
|
2011
|
-
var
|
|
2012
|
-
var
|
|
2013
|
-
var
|
|
2011
|
+
var os2 = require("os");
|
|
2012
|
+
var tty2 = require("tty");
|
|
2013
|
+
var hasFlag2 = require_has_flag();
|
|
2014
|
+
var env2 = process.env;
|
|
2014
2015
|
var forceColor;
|
|
2015
|
-
if (
|
|
2016
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
2016
2017
|
forceColor = 0;
|
|
2017
|
-
} else if (
|
|
2018
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
2018
2019
|
forceColor = 1;
|
|
2019
2020
|
}
|
|
2020
|
-
if ("FORCE_COLOR" in
|
|
2021
|
-
if (
|
|
2021
|
+
if ("FORCE_COLOR" in env2) {
|
|
2022
|
+
if (env2.FORCE_COLOR === "true") {
|
|
2022
2023
|
forceColor = 1;
|
|
2023
|
-
} else if (
|
|
2024
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
2024
2025
|
forceColor = 0;
|
|
2025
2026
|
} else {
|
|
2026
|
-
forceColor =
|
|
2027
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
2027
2028
|
}
|
|
2028
2029
|
}
|
|
2029
|
-
function
|
|
2030
|
+
function translateLevel2(level) {
|
|
2030
2031
|
if (level === 0) {
|
|
2031
2032
|
return false;
|
|
2032
2033
|
}
|
|
@@ -2037,31 +2038,31 @@ var require_supports_color = __commonJS({
|
|
|
2037
2038
|
has16m: level >= 3
|
|
2038
2039
|
};
|
|
2039
2040
|
}
|
|
2040
|
-
function
|
|
2041
|
+
function supportsColor2(haveStream, streamIsTTY) {
|
|
2041
2042
|
if (forceColor === 0) {
|
|
2042
2043
|
return 0;
|
|
2043
2044
|
}
|
|
2044
|
-
if (
|
|
2045
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
2045
2046
|
return 3;
|
|
2046
2047
|
}
|
|
2047
|
-
if (
|
|
2048
|
+
if (hasFlag2("color=256")) {
|
|
2048
2049
|
return 2;
|
|
2049
2050
|
}
|
|
2050
2051
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
2051
2052
|
return 0;
|
|
2052
2053
|
}
|
|
2053
2054
|
var min = forceColor || 0;
|
|
2054
|
-
if (
|
|
2055
|
+
if (env2.TERM === "dumb") {
|
|
2055
2056
|
return min;
|
|
2056
2057
|
}
|
|
2057
2058
|
if (process.platform === "win32") {
|
|
2058
|
-
var osRelease =
|
|
2059
|
+
var osRelease = os2.release().split(".");
|
|
2059
2060
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2060
2061
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2061
2062
|
}
|
|
2062
2063
|
return 1;
|
|
2063
2064
|
}
|
|
2064
|
-
if ("CI" in
|
|
2065
|
+
if ("CI" in env2) {
|
|
2065
2066
|
if ([
|
|
2066
2067
|
"TRAVIS",
|
|
2067
2068
|
"CIRCLECI",
|
|
@@ -2070,53 +2071,53 @@ var require_supports_color = __commonJS({
|
|
|
2070
2071
|
"GITHUB_ACTIONS",
|
|
2071
2072
|
"BUILDKITE"
|
|
2072
2073
|
].some(function(sign) {
|
|
2073
|
-
return sign in
|
|
2074
|
-
}) ||
|
|
2074
|
+
return sign in env2;
|
|
2075
|
+
}) || env2.CI_NAME === "codeship") {
|
|
2075
2076
|
return 1;
|
|
2076
2077
|
}
|
|
2077
2078
|
return min;
|
|
2078
2079
|
}
|
|
2079
|
-
if ("TEAMCITY_VERSION" in
|
|
2080
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
2080
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
2081
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
2081
2082
|
}
|
|
2082
|
-
if (
|
|
2083
|
+
if (env2.COLORTERM === "truecolor") {
|
|
2083
2084
|
return 3;
|
|
2084
2085
|
}
|
|
2085
|
-
if ("TERM_PROGRAM" in
|
|
2086
|
-
var version = parseInt((
|
|
2087
|
-
switch(
|
|
2086
|
+
if ("TERM_PROGRAM" in env2) {
|
|
2087
|
+
var version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2088
|
+
switch(env2.TERM_PROGRAM){
|
|
2088
2089
|
case "iTerm.app":
|
|
2089
2090
|
return version >= 3 ? 3 : 2;
|
|
2090
2091
|
case "Apple_Terminal":
|
|
2091
2092
|
return 2;
|
|
2092
2093
|
}
|
|
2093
2094
|
}
|
|
2094
|
-
if (/-256(color)?$/i.test(
|
|
2095
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
2095
2096
|
return 2;
|
|
2096
2097
|
}
|
|
2097
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
2098
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
2098
2099
|
return 1;
|
|
2099
2100
|
}
|
|
2100
|
-
if ("COLORTERM" in
|
|
2101
|
+
if ("COLORTERM" in env2) {
|
|
2101
2102
|
return 1;
|
|
2102
2103
|
}
|
|
2103
2104
|
return min;
|
|
2104
2105
|
}
|
|
2105
2106
|
function getSupportLevel(stream) {
|
|
2106
|
-
var level =
|
|
2107
|
-
return
|
|
2107
|
+
var level = supportsColor2(stream, stream && stream.isTTY);
|
|
2108
|
+
return translateLevel2(level);
|
|
2108
2109
|
}
|
|
2109
2110
|
module2.exports = {
|
|
2110
2111
|
supportsColor: getSupportLevel,
|
|
2111
|
-
stdout:
|
|
2112
|
-
stderr:
|
|
2112
|
+
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
2113
|
+
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
2113
2114
|
};
|
|
2114
2115
|
}
|
|
2115
2116
|
});
|
|
2116
2117
|
// node_modules/debug/src/node.js
|
|
2117
2118
|
var require_node = __commonJS({
|
|
2118
2119
|
"node_modules/debug/src/node.js": function(exports2, module2) {
|
|
2119
|
-
var
|
|
2120
|
+
var tty2 = require("tty");
|
|
2120
2121
|
var util = require("util");
|
|
2121
2122
|
exports2.init = init;
|
|
2122
2123
|
exports2.log = log;
|
|
@@ -2134,8 +2135,8 @@ var require_node = __commonJS({
|
|
|
2134
2135
|
1
|
|
2135
2136
|
];
|
|
2136
2137
|
try {
|
|
2137
|
-
var
|
|
2138
|
-
if (
|
|
2138
|
+
var supportsColor2 = require_supports_color();
|
|
2139
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
2139
2140
|
exports2.colors = [
|
|
2140
2141
|
20,
|
|
2141
2142
|
21,
|
|
@@ -2236,7 +2237,7 @@ var require_node = __commonJS({
|
|
|
2236
2237
|
return obj;
|
|
2237
2238
|
}, {});
|
|
2238
2239
|
function useColors() {
|
|
2239
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) :
|
|
2240
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
2240
2241
|
}
|
|
2241
2242
|
function formatArgs(args) {
|
|
2242
2243
|
var _this = this, name = _this.namespace, useColors2 = _this.useColors;
|
|
@@ -2304,9 +2305,9 @@ var require_src = __commonJS({
|
|
|
2304
2305
|
}
|
|
2305
2306
|
}
|
|
2306
2307
|
});
|
|
2307
|
-
// node_modules/globals/globals.json
|
|
2308
|
+
// node_modules/@babel/traverse/node_modules/globals/globals.json
|
|
2308
2309
|
var require_globals = __commonJS({
|
|
2309
|
-
"node_modules/globals/globals.json": function(exports2, module2) {
|
|
2310
|
+
"node_modules/@babel/traverse/node_modules/globals/globals.json": function(exports2, module2) {
|
|
2310
2311
|
module2.exports = {
|
|
2311
2312
|
builtin: {
|
|
2312
2313
|
AggregateError: false,
|
|
@@ -4307,9 +4308,9 @@ var require_globals = __commonJS({
|
|
|
4307
4308
|
};
|
|
4308
4309
|
}
|
|
4309
4310
|
});
|
|
4310
|
-
// node_modules/globals/index.js
|
|
4311
|
+
// node_modules/@babel/traverse/node_modules/globals/index.js
|
|
4311
4312
|
var require_globals2 = __commonJS({
|
|
4312
|
-
"node_modules/globals/index.js": function(exports2, module2) {
|
|
4313
|
+
"node_modules/@babel/traverse/node_modules/globals/index.js": function(exports2, module2) {
|
|
4313
4314
|
"use strict";
|
|
4314
4315
|
module2.exports = require_globals();
|
|
4315
4316
|
}
|
|
@@ -16232,7 +16233,7 @@ try {
|
|
|
16232
16233
|
var PLACEHOLDERS_FLIPPED_ALIAS = {};
|
|
16233
16234
|
Object.keys(PLACEHOLDERS_ALIAS).forEach(function(type) {
|
|
16234
16235
|
PLACEHOLDERS_ALIAS[type].forEach(function(alias) {
|
|
16235
|
-
if (!Object.
|
|
16236
|
+
if (!Object.hasOwn(PLACEHOLDERS_FLIPPED_ALIAS, alias)) {
|
|
16236
16237
|
PLACEHOLDERS_FLIPPED_ALIAS[alias] = [];
|
|
16237
16238
|
}
|
|
16238
16239
|
PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type);
|
|
@@ -17117,7 +17118,11 @@ defineType("TSImportType", {
|
|
|
17117
17118
|
fields: {
|
|
17118
17119
|
argument: validateType("StringLiteral"),
|
|
17119
17120
|
qualifier: validateOptionalType("TSEntityName"),
|
|
17120
|
-
typeParameters: validateOptionalType("TSTypeParameterInstantiation")
|
|
17121
|
+
typeParameters: validateOptionalType("TSTypeParameterInstantiation"),
|
|
17122
|
+
options: {
|
|
17123
|
+
validate: assertNodeType("Expression"),
|
|
17124
|
+
optional: true
|
|
17125
|
+
}
|
|
17121
17126
|
}
|
|
17122
17127
|
});
|
|
17123
17128
|
defineType("TSImportEqualsDeclaration", {
|
|
@@ -20324,7 +20329,7 @@ function createTSUnionType(typeAnnotations) {
|
|
|
20324
20329
|
function buildUndefinedNode() {
|
|
20325
20330
|
return unaryExpression("void", numericLiteral(0), true);
|
|
20326
20331
|
}
|
|
20327
|
-
var
|
|
20332
|
+
var hasOwn = Object.hasOwn;
|
|
20328
20333
|
function cloneIfNode(obj, deep, withoutLoc, commentsCache) {
|
|
20329
20334
|
if (obj && typeof obj.type === "string") {
|
|
20330
20335
|
return cloneNodeInternal(obj, deep, withoutLoc, commentsCache);
|
|
@@ -20352,20 +20357,20 @@ function cloneNodeInternal(node) {
|
|
|
20352
20357
|
};
|
|
20353
20358
|
if (isIdentifier(node)) {
|
|
20354
20359
|
newNode.name = node.name;
|
|
20355
|
-
if (
|
|
20360
|
+
if (hasOwn(node, "optional") && typeof node.optional === "boolean") {
|
|
20356
20361
|
newNode.optional = node.optional;
|
|
20357
20362
|
}
|
|
20358
|
-
if (
|
|
20363
|
+
if (hasOwn(node, "typeAnnotation")) {
|
|
20359
20364
|
newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
|
|
20360
20365
|
}
|
|
20361
|
-
} else if (!
|
|
20366
|
+
} else if (!hasOwn(NODE_FIELDS, type)) {
|
|
20362
20367
|
throw new Error('Unknown node type: "'.concat(type, '"'));
|
|
20363
20368
|
} else {
|
|
20364
20369
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
20365
20370
|
try {
|
|
20366
20371
|
for(var _iterator = Object.keys(NODE_FIELDS[type])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
20367
20372
|
var field = _step.value;
|
|
20368
|
-
if (
|
|
20373
|
+
if (hasOwn(node, field)) {
|
|
20369
20374
|
if (deep) {
|
|
20370
20375
|
newNode[field] = isFile(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
|
|
20371
20376
|
} else {
|
|
@@ -20388,23 +20393,23 @@ function cloneNodeInternal(node) {
|
|
|
20388
20393
|
}
|
|
20389
20394
|
}
|
|
20390
20395
|
}
|
|
20391
|
-
if (
|
|
20396
|
+
if (hasOwn(node, "loc")) {
|
|
20392
20397
|
if (withoutLoc) {
|
|
20393
20398
|
newNode.loc = null;
|
|
20394
20399
|
} else {
|
|
20395
20400
|
newNode.loc = node.loc;
|
|
20396
20401
|
}
|
|
20397
20402
|
}
|
|
20398
|
-
if (
|
|
20403
|
+
if (hasOwn(node, "leadingComments")) {
|
|
20399
20404
|
newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
|
|
20400
20405
|
}
|
|
20401
|
-
if (
|
|
20406
|
+
if (hasOwn(node, "innerComments")) {
|
|
20402
20407
|
newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
|
|
20403
20408
|
}
|
|
20404
|
-
if (
|
|
20409
|
+
if (hasOwn(node, "trailingComments")) {
|
|
20405
20410
|
newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
|
|
20406
20411
|
}
|
|
20407
|
-
if (
|
|
20412
|
+
if (hasOwn(node, "extra")) {
|
|
20408
20413
|
newNode.extra = Object.assign({}, node.extra);
|
|
20409
20414
|
}
|
|
20410
20415
|
return newNode;
|
|
@@ -20821,8 +20826,8 @@ function isPlainObject(value1) {
|
|
|
20821
20826
|
if (typeof value1 !== "object" || value1 === null || Object.prototype.toString.call(value1) !== "[object Object]") {
|
|
20822
20827
|
return false;
|
|
20823
20828
|
}
|
|
20824
|
-
var
|
|
20825
|
-
return
|
|
20829
|
+
var proto2 = Object.getPrototypeOf(value1);
|
|
20830
|
+
return proto2 === null || Object.getPrototypeOf(proto2) === null;
|
|
20826
20831
|
}
|
|
20827
20832
|
function valueToNode(value1) {
|
|
20828
20833
|
if (value1 === void 0) {
|
|
@@ -21857,7 +21862,7 @@ function toParseErrorConstructor(_ref) {
|
|
|
21857
21862
|
missingPlugin: details.missingPlugin
|
|
21858
21863
|
});
|
|
21859
21864
|
}
|
|
21860
|
-
defineHidden(error, "clone", function
|
|
21865
|
+
defineHidden(error, "clone", function clone2() {
|
|
21861
21866
|
var overrides = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
21862
21867
|
var _overrides_loc;
|
|
21863
21868
|
var _$_ref = (_overrides_loc = overrides.loc) !== null && _overrides_loc !== void 0 ? _overrides_loc : loc, line = _$_ref.line, column = _$_ref.column, index3 = _$_ref.index;
|
|
@@ -30828,7 +30833,7 @@ var TypeScriptScopeHandler = /*#__PURE__*/ function(ScopeHandler) {
|
|
|
30828
30833
|
return TypeScriptScopeHandler;
|
|
30829
30834
|
}(ScopeHandler);
|
|
30830
30835
|
var getOwn$1 = function(object, key) {
|
|
30831
|
-
return Object.
|
|
30836
|
+
return Object.hasOwn(object, key) && object[key];
|
|
30832
30837
|
};
|
|
30833
30838
|
var unwrapParenthesizedExpression = function(node) {
|
|
30834
30839
|
return node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node;
|
|
@@ -31314,7 +31319,7 @@ var LValParser = /*#__PURE__*/ function(NodeUtils) {
|
|
|
31314
31319
|
return LValParser;
|
|
31315
31320
|
}(NodeUtils);
|
|
31316
31321
|
var getOwn = function(object, key) {
|
|
31317
|
-
return Object.
|
|
31322
|
+
return Object.hasOwn(object, key) && object[key];
|
|
31318
31323
|
};
|
|
31319
31324
|
function nonNull(x) {
|
|
31320
31325
|
if (x == null) {
|
|
@@ -31617,7 +31622,7 @@ var typescript = function(superClass) {
|
|
|
31617
31622
|
modified[modifier] = true;
|
|
31618
31623
|
enforceOrder(startLoc, modifier, "in", "out");
|
|
31619
31624
|
} else {
|
|
31620
|
-
if (Object.
|
|
31625
|
+
if (Object.hasOwn(modified, modifier)) {
|
|
31621
31626
|
this.raise(TSErrors.DuplicateModifier, startLoc, {
|
|
31622
31627
|
modifier: modifier
|
|
31623
31628
|
});
|
|
@@ -31733,6 +31738,16 @@ var typescript = function(superClass) {
|
|
|
31733
31738
|
this.raise(TSErrors.UnsupportedImportTypeArgument, this.state.startLoc);
|
|
31734
31739
|
}
|
|
31735
31740
|
node.argument = _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseExprAtom", this).call(this);
|
|
31741
|
+
if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) {
|
|
31742
|
+
node.options = null;
|
|
31743
|
+
}
|
|
31744
|
+
if (this.eat(12)) {
|
|
31745
|
+
this.expectImportAttributesPlugin();
|
|
31746
|
+
if (!this.match(11)) {
|
|
31747
|
+
node.options = _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssignAllowIn", this).call(this);
|
|
31748
|
+
this.eat(12);
|
|
31749
|
+
}
|
|
31750
|
+
}
|
|
31736
31751
|
this.expect(11);
|
|
31737
31752
|
if (this.eat(16)) {
|
|
31738
31753
|
node.qualifier = this.tsParseEntityName();
|
|
@@ -39663,7 +39678,7 @@ function getParserClass(pluginsFromOptions) {
|
|
|
39663
39678
|
}
|
|
39664
39679
|
// node_modules/@babel/highlight/lib/index.js
|
|
39665
39680
|
var import_js_tokens = __toESM(require_js_tokens(), 1);
|
|
39666
|
-
// node_modules
|
|
39681
|
+
// node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
39667
39682
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
39668
39683
|
var wrapAnsi16 = function() {
|
|
39669
39684
|
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -40043,7 +40058,7 @@ function assembleStyles() {
|
|
|
40043
40058
|
}
|
|
40044
40059
|
var ansiStyles = assembleStyles();
|
|
40045
40060
|
var ansi_styles_default = ansiStyles;
|
|
40046
|
-
// node_modules
|
|
40061
|
+
// node_modules/chalk/source/vendor/supports-color/index.js
|
|
40047
40062
|
var import_node_process = __toESM(require("process"), 1);
|
|
40048
40063
|
var import_node_os = __toESM(require("os"), 1);
|
|
40049
40064
|
var import_node_tty = __toESM(require("tty"), 1);
|
|
@@ -40185,7 +40200,7 @@ var supportsColor = {
|
|
|
40185
40200
|
})
|
|
40186
40201
|
};
|
|
40187
40202
|
var supports_color_default = supportsColor;
|
|
40188
|
-
// node_modules
|
|
40203
|
+
// node_modules/chalk/source/utilities.js
|
|
40189
40204
|
function stringReplaceAll(string, substring, replacer) {
|
|
40190
40205
|
var index3 = string.indexOf(substring);
|
|
40191
40206
|
if (index3 === -1) {
|
|
@@ -40214,7 +40229,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix2, index3) {
|
|
|
40214
40229
|
returnValue += string.slice(endIndex);
|
|
40215
40230
|
return returnValue;
|
|
40216
40231
|
}
|
|
40217
|
-
// node_modules
|
|
40232
|
+
// node_modules/chalk/source/index.js
|
|
40218
40233
|
var stdoutColor = supports_color_default.stdout, stderrColor = supports_color_default.stderr;
|
|
40219
40234
|
var GENERATOR = Symbol("GENERATOR");
|
|
40220
40235
|
var STYLER = Symbol("STYLER");
|
|
@@ -40240,15 +40255,15 @@ var Chalk = function Chalk(options) {
|
|
|
40240
40255
|
return chalkFactory(options);
|
|
40241
40256
|
};
|
|
40242
40257
|
var chalkFactory = function(options) {
|
|
40243
|
-
var
|
|
40258
|
+
var chalk2 = function() {
|
|
40244
40259
|
for(var _len = arguments.length, strings = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40245
40260
|
strings[_key] = arguments[_key];
|
|
40246
40261
|
}
|
|
40247
40262
|
return strings.join(" ");
|
|
40248
40263
|
};
|
|
40249
|
-
applyOptions(
|
|
40250
|
-
Object.setPrototypeOf(
|
|
40251
|
-
return
|
|
40264
|
+
applyOptions(chalk2, options);
|
|
40265
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
40266
|
+
return chalk2;
|
|
40252
40267
|
};
|
|
40253
40268
|
function createChalk(options) {
|
|
40254
40269
|
return chalkFactory(options);
|
|
@@ -40455,17 +40470,17 @@ var sometimesKeywords = /* @__PURE__ */ new Set([
|
|
|
40455
40470
|
"of",
|
|
40456
40471
|
"set"
|
|
40457
40472
|
]);
|
|
40458
|
-
function getDefs(
|
|
40473
|
+
function getDefs(chalk2) {
|
|
40459
40474
|
return {
|
|
40460
|
-
keyword:
|
|
40461
|
-
capitalized:
|
|
40462
|
-
jsxIdentifier:
|
|
40463
|
-
punctuator:
|
|
40464
|
-
number:
|
|
40465
|
-
string:
|
|
40466
|
-
regex:
|
|
40467
|
-
comment:
|
|
40468
|
-
invalid:
|
|
40475
|
+
keyword: chalk2.cyan,
|
|
40476
|
+
capitalized: chalk2.yellow,
|
|
40477
|
+
jsxIdentifier: chalk2.yellow,
|
|
40478
|
+
punctuator: chalk2.yellow,
|
|
40479
|
+
number: chalk2.magenta,
|
|
40480
|
+
string: chalk2.green,
|
|
40481
|
+
regex: chalk2.magenta,
|
|
40482
|
+
comment: chalk2.grey,
|
|
40483
|
+
invalid: chalk2.white.bgRed.bold
|
|
40469
40484
|
};
|
|
40470
40485
|
}
|
|
40471
40486
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -40739,805 +40754,22 @@ function highlight(code2) {
|
|
|
40739
40754
|
return code2;
|
|
40740
40755
|
}
|
|
40741
40756
|
}
|
|
40742
|
-
// node_modules/@babel/code-frame/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
40743
|
-
var ANSI_BACKGROUND_OFFSET2 = 10;
|
|
40744
|
-
var wrapAnsi162 = function() {
|
|
40745
|
-
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
40746
|
-
return function(code2) {
|
|
40747
|
-
return "\x1b[".concat(code2 + offset, "m");
|
|
40748
|
-
};
|
|
40749
|
-
};
|
|
40750
|
-
var wrapAnsi2562 = function() {
|
|
40751
|
-
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
40752
|
-
return function(code2) {
|
|
40753
|
-
return "\x1b[".concat(38 + offset, ";5;").concat(code2, "m");
|
|
40754
|
-
};
|
|
40755
|
-
};
|
|
40756
|
-
var wrapAnsi16m2 = function() {
|
|
40757
|
-
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
40758
|
-
return function(red, green, blue) {
|
|
40759
|
-
return "\x1b[".concat(38 + offset, ";2;").concat(red, ";").concat(green, ";").concat(blue, "m");
|
|
40760
|
-
};
|
|
40761
|
-
};
|
|
40762
|
-
var styles3 = {
|
|
40763
|
-
modifier: {
|
|
40764
|
-
reset: [
|
|
40765
|
-
0,
|
|
40766
|
-
0
|
|
40767
|
-
],
|
|
40768
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
40769
|
-
bold: [
|
|
40770
|
-
1,
|
|
40771
|
-
22
|
|
40772
|
-
],
|
|
40773
|
-
dim: [
|
|
40774
|
-
2,
|
|
40775
|
-
22
|
|
40776
|
-
],
|
|
40777
|
-
italic: [
|
|
40778
|
-
3,
|
|
40779
|
-
23
|
|
40780
|
-
],
|
|
40781
|
-
underline: [
|
|
40782
|
-
4,
|
|
40783
|
-
24
|
|
40784
|
-
],
|
|
40785
|
-
overline: [
|
|
40786
|
-
53,
|
|
40787
|
-
55
|
|
40788
|
-
],
|
|
40789
|
-
inverse: [
|
|
40790
|
-
7,
|
|
40791
|
-
27
|
|
40792
|
-
],
|
|
40793
|
-
hidden: [
|
|
40794
|
-
8,
|
|
40795
|
-
28
|
|
40796
|
-
],
|
|
40797
|
-
strikethrough: [
|
|
40798
|
-
9,
|
|
40799
|
-
29
|
|
40800
|
-
]
|
|
40801
|
-
},
|
|
40802
|
-
color: {
|
|
40803
|
-
black: [
|
|
40804
|
-
30,
|
|
40805
|
-
39
|
|
40806
|
-
],
|
|
40807
|
-
red: [
|
|
40808
|
-
31,
|
|
40809
|
-
39
|
|
40810
|
-
],
|
|
40811
|
-
green: [
|
|
40812
|
-
32,
|
|
40813
|
-
39
|
|
40814
|
-
],
|
|
40815
|
-
yellow: [
|
|
40816
|
-
33,
|
|
40817
|
-
39
|
|
40818
|
-
],
|
|
40819
|
-
blue: [
|
|
40820
|
-
34,
|
|
40821
|
-
39
|
|
40822
|
-
],
|
|
40823
|
-
magenta: [
|
|
40824
|
-
35,
|
|
40825
|
-
39
|
|
40826
|
-
],
|
|
40827
|
-
cyan: [
|
|
40828
|
-
36,
|
|
40829
|
-
39
|
|
40830
|
-
],
|
|
40831
|
-
white: [
|
|
40832
|
-
37,
|
|
40833
|
-
39
|
|
40834
|
-
],
|
|
40835
|
-
// Bright color
|
|
40836
|
-
blackBright: [
|
|
40837
|
-
90,
|
|
40838
|
-
39
|
|
40839
|
-
],
|
|
40840
|
-
gray: [
|
|
40841
|
-
90,
|
|
40842
|
-
39
|
|
40843
|
-
],
|
|
40844
|
-
// Alias of `blackBright`
|
|
40845
|
-
grey: [
|
|
40846
|
-
90,
|
|
40847
|
-
39
|
|
40848
|
-
],
|
|
40849
|
-
// Alias of `blackBright`
|
|
40850
|
-
redBright: [
|
|
40851
|
-
91,
|
|
40852
|
-
39
|
|
40853
|
-
],
|
|
40854
|
-
greenBright: [
|
|
40855
|
-
92,
|
|
40856
|
-
39
|
|
40857
|
-
],
|
|
40858
|
-
yellowBright: [
|
|
40859
|
-
93,
|
|
40860
|
-
39
|
|
40861
|
-
],
|
|
40862
|
-
blueBright: [
|
|
40863
|
-
94,
|
|
40864
|
-
39
|
|
40865
|
-
],
|
|
40866
|
-
magentaBright: [
|
|
40867
|
-
95,
|
|
40868
|
-
39
|
|
40869
|
-
],
|
|
40870
|
-
cyanBright: [
|
|
40871
|
-
96,
|
|
40872
|
-
39
|
|
40873
|
-
],
|
|
40874
|
-
whiteBright: [
|
|
40875
|
-
97,
|
|
40876
|
-
39
|
|
40877
|
-
]
|
|
40878
|
-
},
|
|
40879
|
-
bgColor: {
|
|
40880
|
-
bgBlack: [
|
|
40881
|
-
40,
|
|
40882
|
-
49
|
|
40883
|
-
],
|
|
40884
|
-
bgRed: [
|
|
40885
|
-
41,
|
|
40886
|
-
49
|
|
40887
|
-
],
|
|
40888
|
-
bgGreen: [
|
|
40889
|
-
42,
|
|
40890
|
-
49
|
|
40891
|
-
],
|
|
40892
|
-
bgYellow: [
|
|
40893
|
-
43,
|
|
40894
|
-
49
|
|
40895
|
-
],
|
|
40896
|
-
bgBlue: [
|
|
40897
|
-
44,
|
|
40898
|
-
49
|
|
40899
|
-
],
|
|
40900
|
-
bgMagenta: [
|
|
40901
|
-
45,
|
|
40902
|
-
49
|
|
40903
|
-
],
|
|
40904
|
-
bgCyan: [
|
|
40905
|
-
46,
|
|
40906
|
-
49
|
|
40907
|
-
],
|
|
40908
|
-
bgWhite: [
|
|
40909
|
-
47,
|
|
40910
|
-
49
|
|
40911
|
-
],
|
|
40912
|
-
// Bright color
|
|
40913
|
-
bgBlackBright: [
|
|
40914
|
-
100,
|
|
40915
|
-
49
|
|
40916
|
-
],
|
|
40917
|
-
bgGray: [
|
|
40918
|
-
100,
|
|
40919
|
-
49
|
|
40920
|
-
],
|
|
40921
|
-
// Alias of `bgBlackBright`
|
|
40922
|
-
bgGrey: [
|
|
40923
|
-
100,
|
|
40924
|
-
49
|
|
40925
|
-
],
|
|
40926
|
-
// Alias of `bgBlackBright`
|
|
40927
|
-
bgRedBright: [
|
|
40928
|
-
101,
|
|
40929
|
-
49
|
|
40930
|
-
],
|
|
40931
|
-
bgGreenBright: [
|
|
40932
|
-
102,
|
|
40933
|
-
49
|
|
40934
|
-
],
|
|
40935
|
-
bgYellowBright: [
|
|
40936
|
-
103,
|
|
40937
|
-
49
|
|
40938
|
-
],
|
|
40939
|
-
bgBlueBright: [
|
|
40940
|
-
104,
|
|
40941
|
-
49
|
|
40942
|
-
],
|
|
40943
|
-
bgMagentaBright: [
|
|
40944
|
-
105,
|
|
40945
|
-
49
|
|
40946
|
-
],
|
|
40947
|
-
bgCyanBright: [
|
|
40948
|
-
106,
|
|
40949
|
-
49
|
|
40950
|
-
],
|
|
40951
|
-
bgWhiteBright: [
|
|
40952
|
-
107,
|
|
40953
|
-
49
|
|
40954
|
-
]
|
|
40955
|
-
}
|
|
40956
|
-
};
|
|
40957
|
-
var modifierNames2 = Object.keys(styles3.modifier);
|
|
40958
|
-
var foregroundColorNames2 = Object.keys(styles3.color);
|
|
40959
|
-
var backgroundColorNames2 = Object.keys(styles3.bgColor);
|
|
40960
|
-
var colorNames2 = _to_consumable_array(foregroundColorNames2).concat(_to_consumable_array(backgroundColorNames2));
|
|
40961
|
-
function assembleStyles2() {
|
|
40962
|
-
var _styles3;
|
|
40963
|
-
var codes = /* @__PURE__ */ new Map();
|
|
40964
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
40965
|
-
try {
|
|
40966
|
-
for(var _iterator = Object.entries(styles3)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
40967
|
-
var _step_value = _sliced_to_array(_step.value, 2), groupName = _step_value[0], group = _step_value[1];
|
|
40968
|
-
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
40969
|
-
try {
|
|
40970
|
-
for(var _iterator1 = Object.entries(group)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
40971
|
-
var _step_value1 = _sliced_to_array(_step1.value, 2), styleName = _step_value1[0], style = _step_value1[1];
|
|
40972
|
-
styles3[styleName] = {
|
|
40973
|
-
open: "\x1b[".concat(style[0], "m"),
|
|
40974
|
-
close: "\x1b[".concat(style[1], "m")
|
|
40975
|
-
};
|
|
40976
|
-
group[styleName] = styles3[styleName];
|
|
40977
|
-
codes.set(style[0], style[1]);
|
|
40978
|
-
}
|
|
40979
|
-
} catch (err) {
|
|
40980
|
-
_didIteratorError1 = true;
|
|
40981
|
-
_iteratorError1 = err;
|
|
40982
|
-
} finally{
|
|
40983
|
-
try {
|
|
40984
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
40985
|
-
_iterator1.return();
|
|
40986
|
-
}
|
|
40987
|
-
} finally{
|
|
40988
|
-
if (_didIteratorError1) {
|
|
40989
|
-
throw _iteratorError1;
|
|
40990
|
-
}
|
|
40991
|
-
}
|
|
40992
|
-
}
|
|
40993
|
-
Object.defineProperty(styles3, groupName, {
|
|
40994
|
-
value: group,
|
|
40995
|
-
enumerable: false
|
|
40996
|
-
});
|
|
40997
|
-
}
|
|
40998
|
-
} catch (err) {
|
|
40999
|
-
_didIteratorError = true;
|
|
41000
|
-
_iteratorError = err;
|
|
41001
|
-
} finally{
|
|
41002
|
-
try {
|
|
41003
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
41004
|
-
_iterator.return();
|
|
41005
|
-
}
|
|
41006
|
-
} finally{
|
|
41007
|
-
if (_didIteratorError) {
|
|
41008
|
-
throw _iteratorError;
|
|
41009
|
-
}
|
|
41010
|
-
}
|
|
41011
|
-
}
|
|
41012
|
-
Object.defineProperty(styles3, "codes", {
|
|
41013
|
-
value: codes,
|
|
41014
|
-
enumerable: false
|
|
41015
|
-
});
|
|
41016
|
-
styles3.color.close = "\x1b[39m";
|
|
41017
|
-
styles3.bgColor.close = "\x1b[49m";
|
|
41018
|
-
styles3.color.ansi = wrapAnsi162();
|
|
41019
|
-
styles3.color.ansi256 = wrapAnsi2562();
|
|
41020
|
-
styles3.color.ansi16m = wrapAnsi16m2();
|
|
41021
|
-
styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
|
|
41022
|
-
styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
|
|
41023
|
-
styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
|
|
41024
|
-
Object.defineProperties(styles3, {
|
|
41025
|
-
rgbToAnsi256: {
|
|
41026
|
-
value: function value1(red, green, blue) {
|
|
41027
|
-
if (red === green && green === blue) {
|
|
41028
|
-
if (red < 8) {
|
|
41029
|
-
return 16;
|
|
41030
|
-
}
|
|
41031
|
-
if (red > 248) {
|
|
41032
|
-
return 231;
|
|
41033
|
-
}
|
|
41034
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
41035
|
-
}
|
|
41036
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
41037
|
-
},
|
|
41038
|
-
enumerable: false
|
|
41039
|
-
},
|
|
41040
|
-
hexToRgb: {
|
|
41041
|
-
value: function value1(hex) {
|
|
41042
|
-
var matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
41043
|
-
if (!matches) {
|
|
41044
|
-
return [
|
|
41045
|
-
0,
|
|
41046
|
-
0,
|
|
41047
|
-
0
|
|
41048
|
-
];
|
|
41049
|
-
}
|
|
41050
|
-
var _matches = _sliced_to_array(matches, 1), colorString = _matches[0];
|
|
41051
|
-
if (colorString.length === 3) {
|
|
41052
|
-
colorString = _to_consumable_array(colorString).map(function(character) {
|
|
41053
|
-
return character + character;
|
|
41054
|
-
}).join("");
|
|
41055
|
-
}
|
|
41056
|
-
var integer = Number.parseInt(colorString, 16);
|
|
41057
|
-
return [
|
|
41058
|
-
/* eslint-disable no-bitwise */ integer >> 16 & 255,
|
|
41059
|
-
integer >> 8 & 255,
|
|
41060
|
-
integer & 255
|
|
41061
|
-
];
|
|
41062
|
-
},
|
|
41063
|
-
enumerable: false
|
|
41064
|
-
},
|
|
41065
|
-
hexToAnsi256: {
|
|
41066
|
-
value: function(hex) {
|
|
41067
|
-
return (_styles3 = styles3).rgbToAnsi256.apply(_styles3, _to_consumable_array(styles3.hexToRgb(hex)));
|
|
41068
|
-
},
|
|
41069
|
-
enumerable: false
|
|
41070
|
-
},
|
|
41071
|
-
ansi256ToAnsi: {
|
|
41072
|
-
value: function value1(code2) {
|
|
41073
|
-
if (code2 < 8) {
|
|
41074
|
-
return 30 + code2;
|
|
41075
|
-
}
|
|
41076
|
-
if (code2 < 16) {
|
|
41077
|
-
return 90 + (code2 - 8);
|
|
41078
|
-
}
|
|
41079
|
-
var red;
|
|
41080
|
-
var green;
|
|
41081
|
-
var blue;
|
|
41082
|
-
if (code2 >= 232) {
|
|
41083
|
-
red = ((code2 - 232) * 10 + 8) / 255;
|
|
41084
|
-
green = red;
|
|
41085
|
-
blue = red;
|
|
41086
|
-
} else {
|
|
41087
|
-
code2 -= 16;
|
|
41088
|
-
var remainder = code2 % 36;
|
|
41089
|
-
red = Math.floor(code2 / 36) / 5;
|
|
41090
|
-
green = Math.floor(remainder / 6) / 5;
|
|
41091
|
-
blue = remainder % 6 / 5;
|
|
41092
|
-
}
|
|
41093
|
-
var value1 = Math.max(red, green, blue) * 2;
|
|
41094
|
-
if (value1 === 0) {
|
|
41095
|
-
return 30;
|
|
41096
|
-
}
|
|
41097
|
-
var result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
41098
|
-
if (value1 === 2) {
|
|
41099
|
-
result += 60;
|
|
41100
|
-
}
|
|
41101
|
-
return result;
|
|
41102
|
-
},
|
|
41103
|
-
enumerable: false
|
|
41104
|
-
},
|
|
41105
|
-
rgbToAnsi: {
|
|
41106
|
-
value: function(red, green, blue) {
|
|
41107
|
-
return styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue));
|
|
41108
|
-
},
|
|
41109
|
-
enumerable: false
|
|
41110
|
-
},
|
|
41111
|
-
hexToAnsi: {
|
|
41112
|
-
value: function(hex) {
|
|
41113
|
-
return styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex));
|
|
41114
|
-
},
|
|
41115
|
-
enumerable: false
|
|
41116
|
-
}
|
|
41117
|
-
});
|
|
41118
|
-
return styles3;
|
|
41119
|
-
}
|
|
41120
|
-
var ansiStyles2 = assembleStyles2();
|
|
41121
|
-
var ansi_styles_default2 = ansiStyles2;
|
|
41122
|
-
// node_modules/@babel/code-frame/node_modules/chalk/source/vendor/supports-color/index.js
|
|
41123
|
-
var import_node_process2 = __toESM(require("process"), 1);
|
|
41124
|
-
var import_node_os2 = __toESM(require("os"), 1);
|
|
41125
|
-
var import_node_tty2 = __toESM(require("tty"), 1);
|
|
41126
|
-
function hasFlag2(flag) {
|
|
41127
|
-
var argv = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : globalThis.Deno ? globalThis.Deno.args : import_node_process2.default.argv;
|
|
41128
|
-
var prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
41129
|
-
var position = argv.indexOf(prefix2 + flag);
|
|
41130
|
-
var terminatorPosition = argv.indexOf("--");
|
|
41131
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
41132
|
-
}
|
|
41133
|
-
var _import_node_process2_default = import_node_process2.default, env2 = _import_node_process2_default.env;
|
|
41134
|
-
var flagForceColor2;
|
|
41135
|
-
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
41136
|
-
flagForceColor2 = 0;
|
|
41137
|
-
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
41138
|
-
flagForceColor2 = 1;
|
|
41139
|
-
}
|
|
41140
|
-
function envForceColor2() {
|
|
41141
|
-
if ("FORCE_COLOR" in env2) {
|
|
41142
|
-
if (env2.FORCE_COLOR === "true") {
|
|
41143
|
-
return 1;
|
|
41144
|
-
}
|
|
41145
|
-
if (env2.FORCE_COLOR === "false") {
|
|
41146
|
-
return 0;
|
|
41147
|
-
}
|
|
41148
|
-
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
41149
|
-
}
|
|
41150
|
-
}
|
|
41151
|
-
function translateLevel2(level) {
|
|
41152
|
-
if (level === 0) {
|
|
41153
|
-
return false;
|
|
41154
|
-
}
|
|
41155
|
-
return {
|
|
41156
|
-
level: level,
|
|
41157
|
-
hasBasic: true,
|
|
41158
|
-
has256: level >= 2,
|
|
41159
|
-
has16m: level >= 3
|
|
41160
|
-
};
|
|
41161
|
-
}
|
|
41162
|
-
function _supportsColor2(haveStream) {
|
|
41163
|
-
var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, streamIsTTY = _ref.streamIsTTY, _ref_sniffFlags = _ref.sniffFlags, sniffFlags = _ref_sniffFlags === void 0 ? true : _ref_sniffFlags;
|
|
41164
|
-
var noFlagForceColor = envForceColor2();
|
|
41165
|
-
if (noFlagForceColor !== void 0) {
|
|
41166
|
-
flagForceColor2 = noFlagForceColor;
|
|
41167
|
-
}
|
|
41168
|
-
var forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
41169
|
-
if (forceColor === 0) {
|
|
41170
|
-
return 0;
|
|
41171
|
-
}
|
|
41172
|
-
if (sniffFlags) {
|
|
41173
|
-
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
41174
|
-
return 3;
|
|
41175
|
-
}
|
|
41176
|
-
if (hasFlag2("color=256")) {
|
|
41177
|
-
return 2;
|
|
41178
|
-
}
|
|
41179
|
-
}
|
|
41180
|
-
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
|
|
41181
|
-
return 1;
|
|
41182
|
-
}
|
|
41183
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
41184
|
-
return 0;
|
|
41185
|
-
}
|
|
41186
|
-
var min = forceColor || 0;
|
|
41187
|
-
if (env2.TERM === "dumb") {
|
|
41188
|
-
return min;
|
|
41189
|
-
}
|
|
41190
|
-
if (import_node_process2.default.platform === "win32") {
|
|
41191
|
-
var osRelease = import_node_os2.default.release().split(".");
|
|
41192
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
41193
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
41194
|
-
}
|
|
41195
|
-
return 1;
|
|
41196
|
-
}
|
|
41197
|
-
if ("CI" in env2) {
|
|
41198
|
-
if ("GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2) {
|
|
41199
|
-
return 3;
|
|
41200
|
-
}
|
|
41201
|
-
if ([
|
|
41202
|
-
"TRAVIS",
|
|
41203
|
-
"CIRCLECI",
|
|
41204
|
-
"APPVEYOR",
|
|
41205
|
-
"GITLAB_CI",
|
|
41206
|
-
"BUILDKITE",
|
|
41207
|
-
"DRONE"
|
|
41208
|
-
].some(function(sign) {
|
|
41209
|
-
return sign in env2;
|
|
41210
|
-
}) || env2.CI_NAME === "codeship") {
|
|
41211
|
-
return 1;
|
|
41212
|
-
}
|
|
41213
|
-
return min;
|
|
41214
|
-
}
|
|
41215
|
-
if ("TEAMCITY_VERSION" in env2) {
|
|
41216
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
41217
|
-
}
|
|
41218
|
-
if (env2.COLORTERM === "truecolor") {
|
|
41219
|
-
return 3;
|
|
41220
|
-
}
|
|
41221
|
-
if (env2.TERM === "xterm-kitty") {
|
|
41222
|
-
return 3;
|
|
41223
|
-
}
|
|
41224
|
-
if ("TERM_PROGRAM" in env2) {
|
|
41225
|
-
var version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
41226
|
-
switch(env2.TERM_PROGRAM){
|
|
41227
|
-
case "iTerm.app":
|
|
41228
|
-
{
|
|
41229
|
-
return version >= 3 ? 3 : 2;
|
|
41230
|
-
}
|
|
41231
|
-
case "Apple_Terminal":
|
|
41232
|
-
{
|
|
41233
|
-
return 2;
|
|
41234
|
-
}
|
|
41235
|
-
}
|
|
41236
|
-
}
|
|
41237
|
-
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
41238
|
-
return 2;
|
|
41239
|
-
}
|
|
41240
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
41241
|
-
return 1;
|
|
41242
|
-
}
|
|
41243
|
-
if ("COLORTERM" in env2) {
|
|
41244
|
-
return 1;
|
|
41245
|
-
}
|
|
41246
|
-
return min;
|
|
41247
|
-
}
|
|
41248
|
-
function createSupportsColor2(stream) {
|
|
41249
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
41250
|
-
var level = _supportsColor2(stream, _object_spread({
|
|
41251
|
-
streamIsTTY: stream && stream.isTTY
|
|
41252
|
-
}, options));
|
|
41253
|
-
return translateLevel2(level);
|
|
41254
|
-
}
|
|
41255
|
-
var supportsColor2 = {
|
|
41256
|
-
stdout: createSupportsColor2({
|
|
41257
|
-
isTTY: import_node_tty2.default.isatty(1)
|
|
41258
|
-
}),
|
|
41259
|
-
stderr: createSupportsColor2({
|
|
41260
|
-
isTTY: import_node_tty2.default.isatty(2)
|
|
41261
|
-
})
|
|
41262
|
-
};
|
|
41263
|
-
var supports_color_default2 = supportsColor2;
|
|
41264
|
-
// node_modules/@babel/code-frame/node_modules/chalk/source/utilities.js
|
|
41265
|
-
function stringReplaceAll2(string, substring, replacer) {
|
|
41266
|
-
var index3 = string.indexOf(substring);
|
|
41267
|
-
if (index3 === -1) {
|
|
41268
|
-
return string;
|
|
41269
|
-
}
|
|
41270
|
-
var substringLength = substring.length;
|
|
41271
|
-
var endIndex = 0;
|
|
41272
|
-
var returnValue = "";
|
|
41273
|
-
do {
|
|
41274
|
-
returnValue += string.slice(endIndex, index3) + substring + replacer;
|
|
41275
|
-
endIndex = index3 + substringLength;
|
|
41276
|
-
index3 = string.indexOf(substring, endIndex);
|
|
41277
|
-
}while (index3 !== -1);
|
|
41278
|
-
returnValue += string.slice(endIndex);
|
|
41279
|
-
return returnValue;
|
|
41280
|
-
}
|
|
41281
|
-
function stringEncaseCRLFWithFirstIndex2(string, prefix2, postfix2, index3) {
|
|
41282
|
-
var endIndex = 0;
|
|
41283
|
-
var returnValue = "";
|
|
41284
|
-
do {
|
|
41285
|
-
var gotCR = string[index3 - 1] === "\r";
|
|
41286
|
-
returnValue += string.slice(endIndex, gotCR ? index3 - 1 : index3) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix2;
|
|
41287
|
-
endIndex = index3 + 1;
|
|
41288
|
-
index3 = string.indexOf("\n", endIndex);
|
|
41289
|
-
}while (index3 !== -1);
|
|
41290
|
-
returnValue += string.slice(endIndex);
|
|
41291
|
-
return returnValue;
|
|
41292
|
-
}
|
|
41293
|
-
// node_modules/@babel/code-frame/node_modules/chalk/source/index.js
|
|
41294
|
-
var stdoutColor2 = supports_color_default2.stdout, stderrColor2 = supports_color_default2.stderr;
|
|
41295
|
-
var GENERATOR2 = Symbol("GENERATOR");
|
|
41296
|
-
var STYLER2 = Symbol("STYLER");
|
|
41297
|
-
var IS_EMPTY2 = Symbol("IS_EMPTY");
|
|
41298
|
-
var levelMapping2 = [
|
|
41299
|
-
"ansi",
|
|
41300
|
-
"ansi",
|
|
41301
|
-
"ansi256",
|
|
41302
|
-
"ansi16m"
|
|
41303
|
-
];
|
|
41304
|
-
var styles4 = /* @__PURE__ */ Object.create(null);
|
|
41305
|
-
var applyOptions2 = function(object) {
|
|
41306
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
41307
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
41308
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
41309
|
-
}
|
|
41310
|
-
var colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
|
|
41311
|
-
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
41312
|
-
};
|
|
41313
|
-
var Chalk2 = function Chalk2(options) {
|
|
41314
|
-
"use strict";
|
|
41315
|
-
_class_call_check(this, Chalk2);
|
|
41316
|
-
return chalkFactory2(options);
|
|
41317
|
-
};
|
|
41318
|
-
var chalkFactory2 = function(options) {
|
|
41319
|
-
var chalk3 = function() {
|
|
41320
|
-
for(var _len = arguments.length, strings = new Array(_len), _key = 0; _key < _len; _key++){
|
|
41321
|
-
strings[_key] = arguments[_key];
|
|
41322
|
-
}
|
|
41323
|
-
return strings.join(" ");
|
|
41324
|
-
};
|
|
41325
|
-
applyOptions2(chalk3, options);
|
|
41326
|
-
Object.setPrototypeOf(chalk3, createChalk2.prototype);
|
|
41327
|
-
return chalk3;
|
|
41328
|
-
};
|
|
41329
|
-
function createChalk2(options) {
|
|
41330
|
-
return chalkFactory2(options);
|
|
41331
|
-
}
|
|
41332
|
-
Object.setPrototypeOf(createChalk2.prototype, Function.prototype);
|
|
41333
|
-
var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
|
|
41334
|
-
try {
|
|
41335
|
-
var _loop2 = function() {
|
|
41336
|
-
var _step_value = _sliced_to_array(_step4.value, 2), styleName = _step_value[0], style = _step_value[1];
|
|
41337
|
-
styles4[styleName] = {
|
|
41338
|
-
get: function get() {
|
|
41339
|
-
var builder = createBuilder2(this, createStyler2(style.open, style.close, this[STYLER2]), this[IS_EMPTY2]);
|
|
41340
|
-
Object.defineProperty(this, styleName, {
|
|
41341
|
-
value: builder
|
|
41342
|
-
});
|
|
41343
|
-
return builder;
|
|
41344
|
-
}
|
|
41345
|
-
};
|
|
41346
|
-
};
|
|
41347
|
-
for(var _iterator4 = Object.entries(ansi_styles_default2)[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true)_loop2();
|
|
41348
|
-
} catch (err) {
|
|
41349
|
-
_didIteratorError4 = true;
|
|
41350
|
-
_iteratorError4 = err;
|
|
41351
|
-
} finally{
|
|
41352
|
-
try {
|
|
41353
|
-
if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
|
|
41354
|
-
_iterator4.return();
|
|
41355
|
-
}
|
|
41356
|
-
} finally{
|
|
41357
|
-
if (_didIteratorError4) {
|
|
41358
|
-
throw _iteratorError4;
|
|
41359
|
-
}
|
|
41360
|
-
}
|
|
41361
|
-
}
|
|
41362
|
-
styles4.visible = {
|
|
41363
|
-
get: function get() {
|
|
41364
|
-
var builder = createBuilder2(this, this[STYLER2], true);
|
|
41365
|
-
Object.defineProperty(this, "visible", {
|
|
41366
|
-
value: builder
|
|
41367
|
-
});
|
|
41368
|
-
return builder;
|
|
41369
|
-
}
|
|
41370
|
-
};
|
|
41371
|
-
var getModelAnsi2 = function(model, level, type) {
|
|
41372
|
-
for(var _len = arguments.length, arguments_ = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
|
|
41373
|
-
arguments_[_key - 3] = arguments[_key];
|
|
41374
|
-
}
|
|
41375
|
-
var _ansi_styles_default2_type;
|
|
41376
|
-
if (model === "rgb") {
|
|
41377
|
-
var _ansi_styles_default2;
|
|
41378
|
-
if (level === "ansi16m") {
|
|
41379
|
-
var _ansi_styles_default2_type1;
|
|
41380
|
-
return (_ansi_styles_default2_type1 = ansi_styles_default2[type]).ansi16m.apply(_ansi_styles_default2_type1, _to_consumable_array(arguments_));
|
|
41381
|
-
}
|
|
41382
|
-
if (level === "ansi256") {
|
|
41383
|
-
var _ansi_styles_default21;
|
|
41384
|
-
return ansi_styles_default2[type].ansi256((_ansi_styles_default21 = ansi_styles_default2).rgbToAnsi256.apply(_ansi_styles_default21, _to_consumable_array(arguments_)));
|
|
41385
|
-
}
|
|
41386
|
-
return ansi_styles_default2[type].ansi((_ansi_styles_default2 = ansi_styles_default2).rgbToAnsi.apply(_ansi_styles_default2, _to_consumable_array(arguments_)));
|
|
41387
|
-
}
|
|
41388
|
-
if (model === "hex") {
|
|
41389
|
-
var _ansi_styles_default22;
|
|
41390
|
-
return getModelAnsi2.apply(void 0, [
|
|
41391
|
-
"rgb",
|
|
41392
|
-
level,
|
|
41393
|
-
type
|
|
41394
|
-
].concat(_to_consumable_array((_ansi_styles_default22 = ansi_styles_default2).hexToRgb.apply(_ansi_styles_default22, _to_consumable_array(arguments_)))));
|
|
41395
|
-
}
|
|
41396
|
-
return (_ansi_styles_default2_type = ansi_styles_default2[type])[model].apply(_ansi_styles_default2_type, _to_consumable_array(arguments_));
|
|
41397
|
-
};
|
|
41398
|
-
var usedModels2 = [
|
|
41399
|
-
"rgb",
|
|
41400
|
-
"hex",
|
|
41401
|
-
"ansi256"
|
|
41402
|
-
];
|
|
41403
|
-
var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = undefined;
|
|
41404
|
-
try {
|
|
41405
|
-
var _loop3 = function() {
|
|
41406
|
-
var model = _step5.value;
|
|
41407
|
-
styles4[model] = {
|
|
41408
|
-
get: function get() {
|
|
41409
|
-
var level = this.level;
|
|
41410
|
-
return function() {
|
|
41411
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
41412
|
-
arguments_[_key] = arguments[_key];
|
|
41413
|
-
}
|
|
41414
|
-
var styler = createStyler2(getModelAnsi2.apply(void 0, [
|
|
41415
|
-
model,
|
|
41416
|
-
levelMapping2[level],
|
|
41417
|
-
"color"
|
|
41418
|
-
].concat(_to_consumable_array(arguments_))), ansi_styles_default2.color.close, this[STYLER2]);
|
|
41419
|
-
return createBuilder2(this, styler, this[IS_EMPTY2]);
|
|
41420
|
-
};
|
|
41421
|
-
}
|
|
41422
|
-
};
|
|
41423
|
-
var bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
41424
|
-
styles4[bgModel] = {
|
|
41425
|
-
get: function get() {
|
|
41426
|
-
var level = this.level;
|
|
41427
|
-
return function() {
|
|
41428
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
41429
|
-
arguments_[_key] = arguments[_key];
|
|
41430
|
-
}
|
|
41431
|
-
var styler = createStyler2(getModelAnsi2.apply(void 0, [
|
|
41432
|
-
model,
|
|
41433
|
-
levelMapping2[level],
|
|
41434
|
-
"bgColor"
|
|
41435
|
-
].concat(_to_consumable_array(arguments_))), ansi_styles_default2.bgColor.close, this[STYLER2]);
|
|
41436
|
-
return createBuilder2(this, styler, this[IS_EMPTY2]);
|
|
41437
|
-
};
|
|
41438
|
-
}
|
|
41439
|
-
};
|
|
41440
|
-
};
|
|
41441
|
-
for(var _iterator5 = usedModels2[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true)_loop3();
|
|
41442
|
-
} catch (err) {
|
|
41443
|
-
_didIteratorError5 = true;
|
|
41444
|
-
_iteratorError5 = err;
|
|
41445
|
-
} finally{
|
|
41446
|
-
try {
|
|
41447
|
-
if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
|
|
41448
|
-
_iterator5.return();
|
|
41449
|
-
}
|
|
41450
|
-
} finally{
|
|
41451
|
-
if (_didIteratorError5) {
|
|
41452
|
-
throw _iteratorError5;
|
|
41453
|
-
}
|
|
41454
|
-
}
|
|
41455
|
-
}
|
|
41456
|
-
var proto2 = Object.defineProperties(function() {}, _object_spread_props(_object_spread({}, styles4), {
|
|
41457
|
-
level: {
|
|
41458
|
-
enumerable: true,
|
|
41459
|
-
get: function get() {
|
|
41460
|
-
return this[GENERATOR2].level;
|
|
41461
|
-
},
|
|
41462
|
-
set: function set(level) {
|
|
41463
|
-
this[GENERATOR2].level = level;
|
|
41464
|
-
}
|
|
41465
|
-
}
|
|
41466
|
-
}));
|
|
41467
|
-
var createStyler2 = function(open, close, parent) {
|
|
41468
|
-
var openAll;
|
|
41469
|
-
var closeAll;
|
|
41470
|
-
if (parent === void 0) {
|
|
41471
|
-
openAll = open;
|
|
41472
|
-
closeAll = close;
|
|
41473
|
-
} else {
|
|
41474
|
-
openAll = parent.openAll + open;
|
|
41475
|
-
closeAll = close + parent.closeAll;
|
|
41476
|
-
}
|
|
41477
|
-
return {
|
|
41478
|
-
open: open,
|
|
41479
|
-
close: close,
|
|
41480
|
-
openAll: openAll,
|
|
41481
|
-
closeAll: closeAll,
|
|
41482
|
-
parent: parent
|
|
41483
|
-
};
|
|
41484
|
-
};
|
|
41485
|
-
var createBuilder2 = function(self, _styler, _isEmpty) {
|
|
41486
|
-
var builder = function() {
|
|
41487
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
41488
|
-
arguments_[_key] = arguments[_key];
|
|
41489
|
-
}
|
|
41490
|
-
return applyStyle2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
41491
|
-
};
|
|
41492
|
-
Object.setPrototypeOf(builder, proto2);
|
|
41493
|
-
builder[GENERATOR2] = self;
|
|
41494
|
-
builder[STYLER2] = _styler;
|
|
41495
|
-
builder[IS_EMPTY2] = _isEmpty;
|
|
41496
|
-
return builder;
|
|
41497
|
-
};
|
|
41498
|
-
var applyStyle2 = function(self, string) {
|
|
41499
|
-
if (self.level <= 0 || !string) {
|
|
41500
|
-
return self[IS_EMPTY2] ? "" : string;
|
|
41501
|
-
}
|
|
41502
|
-
var styler = self[STYLER2];
|
|
41503
|
-
if (styler === void 0) {
|
|
41504
|
-
return string;
|
|
41505
|
-
}
|
|
41506
|
-
var openAll = styler.openAll, closeAll = styler.closeAll;
|
|
41507
|
-
if (string.includes("\x1b")) {
|
|
41508
|
-
while(styler !== void 0){
|
|
41509
|
-
string = stringReplaceAll2(string, styler.close, styler.open);
|
|
41510
|
-
styler = styler.parent;
|
|
41511
|
-
}
|
|
41512
|
-
}
|
|
41513
|
-
var lfIndex = string.indexOf("\n");
|
|
41514
|
-
if (lfIndex !== -1) {
|
|
41515
|
-
string = stringEncaseCRLFWithFirstIndex2(string, closeAll, openAll, lfIndex);
|
|
41516
|
-
}
|
|
41517
|
-
return openAll + string + closeAll;
|
|
41518
|
-
};
|
|
41519
|
-
Object.defineProperties(createChalk2.prototype, styles4);
|
|
41520
|
-
var chalk2 = createChalk2();
|
|
41521
|
-
var chalkStderr2 = createChalk2({
|
|
41522
|
-
level: stderrColor2 ? stderrColor2.level : 0
|
|
41523
|
-
});
|
|
41524
|
-
var source_default2 = chalk2;
|
|
41525
40757
|
// node_modules/@babel/code-frame/lib/index.js
|
|
41526
40758
|
var chalkWithForcedColor2 = void 0;
|
|
41527
40759
|
function getChalk2(forceColor) {
|
|
41528
40760
|
if (forceColor) {
|
|
41529
|
-
chalkWithForcedColor2 !== null && chalkWithForcedColor2 !== void 0 ? chalkWithForcedColor2 : chalkWithForcedColor2 = new
|
|
40761
|
+
chalkWithForcedColor2 !== null && chalkWithForcedColor2 !== void 0 ? chalkWithForcedColor2 : chalkWithForcedColor2 = new Chalk({
|
|
41530
40762
|
level: 1
|
|
41531
40763
|
});
|
|
41532
40764
|
return chalkWithForcedColor2;
|
|
41533
40765
|
}
|
|
41534
|
-
return
|
|
40766
|
+
return source_default;
|
|
41535
40767
|
}
|
|
41536
|
-
function getDefs2(
|
|
40768
|
+
function getDefs2(chalk2) {
|
|
41537
40769
|
return {
|
|
41538
|
-
gutter:
|
|
41539
|
-
marker:
|
|
41540
|
-
message:
|
|
40770
|
+
gutter: chalk2.grey,
|
|
40771
|
+
marker: chalk2.red.bold,
|
|
40772
|
+
message: chalk2.red.bold
|
|
41541
40773
|
};
|
|
41542
40774
|
}
|
|
41543
40775
|
var NEWLINE2 = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -41612,8 +40844,8 @@ function getMarkerLines(loc, source, opts) {
|
|
|
41612
40844
|
function codeFrameColumns(rawLines, loc) {
|
|
41613
40845
|
var opts = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
41614
40846
|
var highlighted = (opts.highlightCode || opts.forceColor) && shouldHighlight(opts);
|
|
41615
|
-
var
|
|
41616
|
-
var defs = getDefs2(
|
|
40847
|
+
var chalk2 = getChalk2(opts.forceColor);
|
|
40848
|
+
var defs = getDefs2(chalk2);
|
|
41617
40849
|
var maybeHighlight = function(chalkFn, string) {
|
|
41618
40850
|
return highlighted ? chalkFn(string) : string;
|
|
41619
40851
|
};
|
|
@@ -41658,7 +40890,7 @@ function codeFrameColumns(rawLines, loc) {
|
|
|
41658
40890
|
frame = "".concat(" ".repeat(numberMaxWidth + 1)).concat(opts.message, "\n").concat(frame);
|
|
41659
40891
|
}
|
|
41660
40892
|
if (highlighted) {
|
|
41661
|
-
return
|
|
40893
|
+
return chalk2.reset(frame);
|
|
41662
40894
|
} else {
|
|
41663
40895
|
return frame;
|
|
41664
40896
|
}
|
|
@@ -41917,7 +41149,7 @@ function populatePlaceholders(metadata, replacements) {
|
|
|
41917
41149
|
var ast = cloneNode2(metadata.ast);
|
|
41918
41150
|
if (replacements) {
|
|
41919
41151
|
metadata.placeholders.forEach(function(placeholder2) {
|
|
41920
|
-
if (!Object.
|
|
41152
|
+
if (!Object.hasOwn(replacements, placeholder2.name)) {
|
|
41921
41153
|
var placeholderName = placeholder2.name;
|
|
41922
41154
|
throw new Error('Error: No substitution given for "'.concat(placeholderName, "\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['").concat(placeholderName, "'])}\n - { placeholderPattern: /^").concat(placeholderName, "$/ }"));
|
|
41923
41155
|
}
|
|
@@ -42034,7 +41266,7 @@ function literalTemplate(formatter, tpl, opts) {
|
|
|
42034
41266
|
var replacements = normalizeReplacements(arg2);
|
|
42035
41267
|
if (replacements) {
|
|
42036
41268
|
Object.keys(replacements).forEach(function(key) {
|
|
42037
|
-
if (Object.
|
|
41269
|
+
if (Object.hasOwn(defaultReplacements, key)) {
|
|
42038
41270
|
throw new Error("Unexpected replacement overlap.");
|
|
42039
41271
|
}
|
|
42040
41272
|
});
|
|
@@ -42343,16 +41575,6 @@ function encodeInteger(buf, pos, state, segment, j) {
|
|
|
42343
41575
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
42344
41576
|
var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
42345
41577
|
var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
42346
|
-
var UrlType;
|
|
42347
|
-
(function(UrlType2) {
|
|
42348
|
-
UrlType2[UrlType2["Empty"] = 1] = "Empty";
|
|
42349
|
-
UrlType2[UrlType2["Hash"] = 2] = "Hash";
|
|
42350
|
-
UrlType2[UrlType2["Query"] = 3] = "Query";
|
|
42351
|
-
UrlType2[UrlType2["RelativePath"] = 4] = "RelativePath";
|
|
42352
|
-
UrlType2[UrlType2["AbsolutePath"] = 5] = "AbsolutePath";
|
|
42353
|
-
UrlType2[UrlType2["SchemeRelative"] = 6] = "SchemeRelative";
|
|
42354
|
-
UrlType2[UrlType2["Absolute"] = 7] = "Absolute";
|
|
42355
|
-
})(UrlType || (UrlType = {}));
|
|
42356
41578
|
function isAbsoluteUrl(input) {
|
|
42357
41579
|
return schemeRegex.test(input);
|
|
42358
41580
|
}
|
|
@@ -42386,21 +41608,21 @@ function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
|
42386
41608
|
path: path,
|
|
42387
41609
|
query: query,
|
|
42388
41610
|
hash: hash,
|
|
42389
|
-
type:
|
|
41611
|
+
type: 7
|
|
42390
41612
|
};
|
|
42391
41613
|
}
|
|
42392
41614
|
function parseUrl(input) {
|
|
42393
41615
|
if (isSchemeRelativeUrl(input)) {
|
|
42394
41616
|
var url2 = parseAbsoluteUrl("http:" + input);
|
|
42395
41617
|
url2.scheme = "";
|
|
42396
|
-
url2.type =
|
|
41618
|
+
url2.type = 6;
|
|
42397
41619
|
return url2;
|
|
42398
41620
|
}
|
|
42399
41621
|
if (isAbsolutePath(input)) {
|
|
42400
41622
|
var url21 = parseAbsoluteUrl("http://foo.com" + input);
|
|
42401
41623
|
url21.scheme = "";
|
|
42402
41624
|
url21.host = "";
|
|
42403
|
-
url21.type =
|
|
41625
|
+
url21.type = 5;
|
|
42404
41626
|
return url21;
|
|
42405
41627
|
}
|
|
42406
41628
|
if (isFileUrl(input)) return parseFileUrl(input);
|
|
@@ -42408,7 +41630,7 @@ function parseUrl(input) {
|
|
|
42408
41630
|
var url = parseAbsoluteUrl("http://foo.com/" + input);
|
|
42409
41631
|
url.scheme = "";
|
|
42410
41632
|
url.host = "";
|
|
42411
|
-
url.type = input ? input.startsWith("?") ?
|
|
41633
|
+
url.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1;
|
|
42412
41634
|
return url;
|
|
42413
41635
|
}
|
|
42414
41636
|
function stripPathFilename(path) {
|
|
@@ -42425,7 +41647,7 @@ function mergePaths(url, base) {
|
|
|
42425
41647
|
}
|
|
42426
41648
|
}
|
|
42427
41649
|
function normalizePath(url, type) {
|
|
42428
|
-
var rel = type <=
|
|
41650
|
+
var rel = type <= 4;
|
|
42429
41651
|
var pieces = url.path.split("/");
|
|
42430
41652
|
var pointer = 1;
|
|
42431
41653
|
var positive = 0;
|
|
@@ -42464,22 +41686,22 @@ function resolve(input, base) {
|
|
|
42464
41686
|
if (!input && !base) return "";
|
|
42465
41687
|
var url = parseUrl(input);
|
|
42466
41688
|
var inputType = url.type;
|
|
42467
|
-
if (base && inputType !==
|
|
41689
|
+
if (base && inputType !== 7) {
|
|
42468
41690
|
var baseUrl = parseUrl(base);
|
|
42469
41691
|
var baseType = baseUrl.type;
|
|
42470
41692
|
switch(inputType){
|
|
42471
|
-
case
|
|
41693
|
+
case 1:
|
|
42472
41694
|
url.hash = baseUrl.hash;
|
|
42473
|
-
case
|
|
41695
|
+
case 2:
|
|
42474
41696
|
url.query = baseUrl.query;
|
|
42475
|
-
case
|
|
42476
|
-
case
|
|
41697
|
+
case 3:
|
|
41698
|
+
case 4:
|
|
42477
41699
|
mergePaths(url, baseUrl);
|
|
42478
|
-
case
|
|
41700
|
+
case 5:
|
|
42479
41701
|
url.user = baseUrl.user;
|
|
42480
41702
|
url.host = baseUrl.host;
|
|
42481
41703
|
url.port = baseUrl.port;
|
|
42482
|
-
case
|
|
41704
|
+
case 6:
|
|
42483
41705
|
url.scheme = baseUrl.scheme;
|
|
42484
41706
|
}
|
|
42485
41707
|
if (baseType > inputType) inputType = baseType;
|
|
@@ -42487,10 +41709,10 @@ function resolve(input, base) {
|
|
|
42487
41709
|
normalizePath(url, inputType);
|
|
42488
41710
|
var queryHash = url.query + url.hash;
|
|
42489
41711
|
switch(inputType){
|
|
42490
|
-
case
|
|
42491
|
-
case
|
|
41712
|
+
case 2:
|
|
41713
|
+
case 3:
|
|
42492
41714
|
return queryHash;
|
|
42493
|
-
case
|
|
41715
|
+
case 4:
|
|
42494
41716
|
{
|
|
42495
41717
|
var path = url.path.slice(1);
|
|
42496
41718
|
if (!path) return queryHash || ".";
|
|
@@ -42499,7 +41721,7 @@ function resolve(input, base) {
|
|
|
42499
41721
|
}
|
|
42500
41722
|
return path + queryHash;
|
|
42501
41723
|
}
|
|
42502
|
-
case
|
|
41724
|
+
case 5:
|
|
42503
41725
|
return url.path + queryHash;
|
|
42504
41726
|
default:
|
|
42505
41727
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
@@ -42520,8 +41742,6 @@ var SOURCES_INDEX = 1;
|
|
|
42520
41742
|
var SOURCE_LINE = 2;
|
|
42521
41743
|
var SOURCE_COLUMN = 3;
|
|
42522
41744
|
var NAMES_INDEX = 4;
|
|
42523
|
-
var REV_GENERATED_LINE = 1;
|
|
42524
|
-
var REV_GENERATED_COLUMN = 2;
|
|
42525
41745
|
function maybeSort(mappings, owned) {
|
|
42526
41746
|
var unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
|
|
42527
41747
|
if (unsortedIndex === mappings.length) return mappings;
|
|
@@ -42608,55 +41828,10 @@ function memoizedBinarySearch(haystack, needle, state, key) {
|
|
|
42608
41828
|
state.lastNeedle = needle;
|
|
42609
41829
|
return state.lastIndex = binarySearch(haystack, needle, low, high);
|
|
42610
41830
|
}
|
|
42611
|
-
function buildBySources(decoded, memos) {
|
|
42612
|
-
var sources = memos.map(buildNullArray);
|
|
42613
|
-
for(var i = 0; i < decoded.length; i++){
|
|
42614
|
-
var line = decoded[i];
|
|
42615
|
-
for(var j = 0; j < line.length; j++){
|
|
42616
|
-
var seg = line[j];
|
|
42617
|
-
if (seg.length === 1) continue;
|
|
42618
|
-
var sourceIndex = seg[SOURCES_INDEX];
|
|
42619
|
-
var sourceLine = seg[SOURCE_LINE];
|
|
42620
|
-
var sourceColumn = seg[SOURCE_COLUMN];
|
|
42621
|
-
var originalSource = sources[sourceIndex];
|
|
42622
|
-
var originalLine = originalSource[sourceLine] || (originalSource[sourceLine] = []);
|
|
42623
|
-
var memo = memos[sourceIndex];
|
|
42624
|
-
var index3 = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));
|
|
42625
|
-
insert(originalLine, memo.lastIndex = index3 + 1, [
|
|
42626
|
-
sourceColumn,
|
|
42627
|
-
i,
|
|
42628
|
-
seg[COLUMN]
|
|
42629
|
-
]);
|
|
42630
|
-
}
|
|
42631
|
-
}
|
|
42632
|
-
return sources;
|
|
42633
|
-
}
|
|
42634
|
-
function insert(array, index3, value1) {
|
|
42635
|
-
for(var i = array.length; i > index3; i--){
|
|
42636
|
-
array[i] = array[i - 1];
|
|
42637
|
-
}
|
|
42638
|
-
array[index3] = value1;
|
|
42639
|
-
}
|
|
42640
|
-
function buildNullArray() {
|
|
42641
|
-
return {
|
|
42642
|
-
__proto__: null
|
|
42643
|
-
};
|
|
42644
|
-
}
|
|
42645
41831
|
var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
|
|
42646
41832
|
var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
42647
41833
|
var LEAST_UPPER_BOUND = -1;
|
|
42648
41834
|
var GREATEST_LOWER_BOUND = 1;
|
|
42649
|
-
var encodedMappings;
|
|
42650
|
-
var decodedMappings;
|
|
42651
|
-
var traceSegment;
|
|
42652
|
-
var originalPositionFor;
|
|
42653
|
-
var generatedPositionFor;
|
|
42654
|
-
var allGeneratedPositionsFor;
|
|
42655
|
-
var eachMapping;
|
|
42656
|
-
var sourceContentFor;
|
|
42657
|
-
var presortedDecodedMap;
|
|
42658
|
-
var decodedMap;
|
|
42659
|
-
var encodedMap;
|
|
42660
41835
|
var TraceMap = function TraceMap(map, mapUrl) {
|
|
42661
41836
|
"use strict";
|
|
42662
41837
|
_class_call_check(this, TraceMap);
|
|
@@ -42686,121 +41861,27 @@ var TraceMap = function TraceMap(map, mapUrl) {
|
|
|
42686
41861
|
this._bySources = void 0;
|
|
42687
41862
|
this._bySourceMemos = void 0;
|
|
42688
41863
|
};
|
|
42689
|
-
|
|
42690
|
-
|
|
42691
|
-
|
|
42692
|
-
|
|
42693
|
-
|
|
42694
|
-
|
|
42695
|
-
|
|
42696
|
-
|
|
42697
|
-
|
|
42698
|
-
|
|
42699
|
-
|
|
42700
|
-
|
|
42701
|
-
|
|
42702
|
-
|
|
42703
|
-
|
|
42704
|
-
|
|
42705
|
-
|
|
42706
|
-
|
|
42707
|
-
|
|
42708
|
-
|
|
42709
|
-
|
|
42710
|
-
return (_a = map._encoded) !== null && _a !== void 0 ? _a : map._encoded = encode(map._decoded);
|
|
42711
|
-
};
|
|
42712
|
-
decodedMappings = function(map) {
|
|
42713
|
-
return map._decoded || (map._decoded = decode(map._encoded));
|
|
42714
|
-
};
|
|
42715
|
-
traceSegment = function(map, line, column) {
|
|
42716
|
-
var decoded = decodedMappings(map);
|
|
42717
|
-
if (line >= decoded.length) return null;
|
|
42718
|
-
var segments = decoded[line];
|
|
42719
|
-
var index3 = traceSegmentInternal(segments, map._decodedMemo, line, column, GREATEST_LOWER_BOUND);
|
|
42720
|
-
return index3 === -1 ? null : segments[index3];
|
|
42721
|
-
};
|
|
42722
|
-
originalPositionFor = function(map, param) {
|
|
42723
|
-
var line = param.line, column = param.column, bias = param.bias;
|
|
42724
|
-
line--;
|
|
42725
|
-
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
42726
|
-
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
42727
|
-
var decoded = decodedMappings(map);
|
|
42728
|
-
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
42729
|
-
var segments = decoded[line];
|
|
42730
|
-
var index3 = traceSegmentInternal(segments, map._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
42731
|
-
if (index3 === -1) return OMapping(null, null, null, null);
|
|
42732
|
-
var segment = segments[index3];
|
|
42733
|
-
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
42734
|
-
var names = map.names, resolvedSources = map.resolvedSources;
|
|
42735
|
-
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
|
|
42736
|
-
};
|
|
42737
|
-
allGeneratedPositionsFor = function(map, param) {
|
|
42738
|
-
var source = param.source, line = param.line, column = param.column, bias = param.bias;
|
|
42739
|
-
return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true);
|
|
42740
|
-
};
|
|
42741
|
-
generatedPositionFor = function(map, param) {
|
|
42742
|
-
var source = param.source, line = param.line, column = param.column, bias = param.bias;
|
|
42743
|
-
return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);
|
|
42744
|
-
};
|
|
42745
|
-
eachMapping = function(map, cb) {
|
|
42746
|
-
var decoded = decodedMappings(map);
|
|
42747
|
-
var names = map.names, resolvedSources = map.resolvedSources;
|
|
42748
|
-
for(var i = 0; i < decoded.length; i++){
|
|
42749
|
-
var line = decoded[i];
|
|
42750
|
-
for(var j = 0; j < line.length; j++){
|
|
42751
|
-
var seg = line[j];
|
|
42752
|
-
var generatedLine = i + 1;
|
|
42753
|
-
var generatedColumn = seg[0];
|
|
42754
|
-
var source = null;
|
|
42755
|
-
var originalLine = null;
|
|
42756
|
-
var originalColumn = null;
|
|
42757
|
-
var name = null;
|
|
42758
|
-
if (seg.length !== 1) {
|
|
42759
|
-
source = resolvedSources[seg[1]];
|
|
42760
|
-
originalLine = seg[2] + 1;
|
|
42761
|
-
originalColumn = seg[3];
|
|
42762
|
-
}
|
|
42763
|
-
if (seg.length === 5) name = names[seg[4]];
|
|
42764
|
-
cb({
|
|
42765
|
-
generatedLine: generatedLine,
|
|
42766
|
-
generatedColumn: generatedColumn,
|
|
42767
|
-
source: source,
|
|
42768
|
-
originalLine: originalLine,
|
|
42769
|
-
originalColumn: originalColumn,
|
|
42770
|
-
name: name
|
|
42771
|
-
});
|
|
42772
|
-
}
|
|
42773
|
-
}
|
|
42774
|
-
};
|
|
42775
|
-
sourceContentFor = function(map, source) {
|
|
42776
|
-
var sources = map.sources, resolvedSources = map.resolvedSources, sourcesContent = map.sourcesContent;
|
|
42777
|
-
if (sourcesContent == null) return null;
|
|
42778
|
-
var index3 = sources.indexOf(source);
|
|
42779
|
-
if (index3 === -1) index3 = resolvedSources.indexOf(source);
|
|
42780
|
-
return index3 === -1 ? null : sourcesContent[index3];
|
|
42781
|
-
};
|
|
42782
|
-
presortedDecodedMap = function(map, mapUrl) {
|
|
42783
|
-
var tracer = new TraceMap(clone2(map, []), mapUrl);
|
|
42784
|
-
tracer._decoded = map.mappings;
|
|
42785
|
-
return tracer;
|
|
42786
|
-
};
|
|
42787
|
-
decodedMap = function(map) {
|
|
42788
|
-
return clone2(map, decodedMappings(map));
|
|
42789
|
-
};
|
|
42790
|
-
encodedMap = function(map) {
|
|
42791
|
-
return clone2(map, encodedMappings(map));
|
|
42792
|
-
};
|
|
42793
|
-
})();
|
|
42794
|
-
function clone2(map, mappings) {
|
|
42795
|
-
return {
|
|
42796
|
-
version: map.version,
|
|
42797
|
-
file: map.file,
|
|
42798
|
-
names: map.names,
|
|
42799
|
-
sourceRoot: map.sourceRoot,
|
|
42800
|
-
sources: map.sources,
|
|
42801
|
-
sourcesContent: map.sourcesContent,
|
|
42802
|
-
mappings: mappings
|
|
42803
|
-
};
|
|
41864
|
+
function cast(map) {
|
|
41865
|
+
return map;
|
|
41866
|
+
}
|
|
41867
|
+
function decodedMappings(map) {
|
|
41868
|
+
var _a;
|
|
41869
|
+
return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
|
|
41870
|
+
}
|
|
41871
|
+
function originalPositionFor(map, needle) {
|
|
41872
|
+
var line = needle.line, column = needle.column, bias = needle.bias;
|
|
41873
|
+
line--;
|
|
41874
|
+
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
41875
|
+
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
41876
|
+
var decoded = decodedMappings(map);
|
|
41877
|
+
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
41878
|
+
var segments = decoded[line];
|
|
41879
|
+
var index3 = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
41880
|
+
if (index3 === -1) return OMapping(null, null, null, null);
|
|
41881
|
+
var segment = segments[index3];
|
|
41882
|
+
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
41883
|
+
var names = map.names, resolvedSources = map.resolvedSources;
|
|
41884
|
+
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
|
|
42804
41885
|
}
|
|
42805
41886
|
function OMapping(source, line, column, name) {
|
|
42806
41887
|
return {
|
|
@@ -42810,12 +41891,6 @@ function OMapping(source, line, column, name) {
|
|
|
42810
41891
|
name: name
|
|
42811
41892
|
};
|
|
42812
41893
|
}
|
|
42813
|
-
function GMapping(line, column) {
|
|
42814
|
-
return {
|
|
42815
|
-
line: line,
|
|
42816
|
-
column: column
|
|
42817
|
-
};
|
|
42818
|
-
}
|
|
42819
41894
|
function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
42820
41895
|
var index3 = memoizedBinarySearch(segments, column, memo, line);
|
|
42821
41896
|
if (found) {
|
|
@@ -42824,20 +41899,6 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
42824
41899
|
if (index3 === -1 || index3 === segments.length) return -1;
|
|
42825
41900
|
return index3;
|
|
42826
41901
|
}
|
|
42827
|
-
function sliceGeneratedPositions(segments, memo, line, column, bias) {
|
|
42828
|
-
var min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);
|
|
42829
|
-
if (!found && bias === LEAST_UPPER_BOUND) min++;
|
|
42830
|
-
if (min === -1 || min === segments.length) return [];
|
|
42831
|
-
var matchedColumn = found ? column : segments[min][COLUMN];
|
|
42832
|
-
if (!found) min = lowerBound(segments, matchedColumn, min);
|
|
42833
|
-
var max = upperBound(segments, matchedColumn, min);
|
|
42834
|
-
var result = [];
|
|
42835
|
-
for(; min <= max; min++){
|
|
42836
|
-
var segment = segments[min];
|
|
42837
|
-
result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));
|
|
42838
|
-
}
|
|
42839
|
-
return result;
|
|
42840
|
-
}
|
|
42841
41902
|
// node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
42842
41903
|
var COLUMN2 = 0;
|
|
42843
41904
|
var SOURCES_INDEX2 = 1;
|
|
@@ -42845,16 +41906,6 @@ var SOURCE_LINE2 = 2;
|
|
|
42845
41906
|
var SOURCE_COLUMN2 = 3;
|
|
42846
41907
|
var NAMES_INDEX2 = 4;
|
|
42847
41908
|
var NO_NAME = -1;
|
|
42848
|
-
var addSegment;
|
|
42849
|
-
var addMapping;
|
|
42850
|
-
var maybeAddSegment;
|
|
42851
|
-
var maybeAddMapping;
|
|
42852
|
-
var setSourceContent;
|
|
42853
|
-
var toDecodedMap;
|
|
42854
|
-
var toEncodedMap;
|
|
42855
|
-
var fromMap;
|
|
42856
|
-
var allMappings;
|
|
42857
|
-
var addSegmentInternal;
|
|
42858
41909
|
var GenMapping = function GenMapping() {
|
|
42859
41910
|
"use strict";
|
|
42860
41911
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, file2 = _ref.file, sourceRoot = _ref.sourceRoot;
|
|
@@ -42866,118 +41917,96 @@ var GenMapping = function GenMapping() {
|
|
|
42866
41917
|
this.file = file2;
|
|
42867
41918
|
this.sourceRoot = sourceRoot;
|
|
42868
41919
|
};
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
|
|
42882
|
-
|
|
42883
|
-
|
|
42884
|
-
|
|
42885
|
-
|
|
42886
|
-
|
|
42887
|
-
|
|
42888
|
-
|
|
42889
|
-
|
|
42890
|
-
version: 3,
|
|
42891
|
-
file: file2 || void 0,
|
|
42892
|
-
names: names.array,
|
|
42893
|
-
sourceRoot: sourceRoot || void 0,
|
|
42894
|
-
sources: sources.array,
|
|
42895
|
-
sourcesContent: sourcesContent,
|
|
42896
|
-
mappings: mappings
|
|
42897
|
-
};
|
|
42898
|
-
};
|
|
42899
|
-
toEncodedMap = function(map) {
|
|
42900
|
-
var decoded = toDecodedMap(map);
|
|
42901
|
-
return Object.assign(Object.assign({}, decoded), {
|
|
42902
|
-
mappings: encode(decoded.mappings)
|
|
42903
|
-
});
|
|
41920
|
+
function cast2(map) {
|
|
41921
|
+
return map;
|
|
41922
|
+
}
|
|
41923
|
+
var maybeAddMapping = function(map, mapping) {
|
|
41924
|
+
return addMappingInternal(true, map, mapping);
|
|
41925
|
+
};
|
|
41926
|
+
function setSourceContent(map, source, content) {
|
|
41927
|
+
var _cast2 = cast2(map), sources = _cast2._sources, sourcesContent = _cast2._sourcesContent;
|
|
41928
|
+
sourcesContent[put(sources, source)] = content;
|
|
41929
|
+
}
|
|
41930
|
+
function toDecodedMap(map) {
|
|
41931
|
+
var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, sourcesContent = _cast2._sourcesContent, names = _cast2._names;
|
|
41932
|
+
removeEmptyFinalLines(mappings);
|
|
41933
|
+
return {
|
|
41934
|
+
version: 3,
|
|
41935
|
+
file: map.file || void 0,
|
|
41936
|
+
names: names.array,
|
|
41937
|
+
sourceRoot: map.sourceRoot || void 0,
|
|
41938
|
+
sources: sources.array,
|
|
41939
|
+
sourcesContent: sourcesContent,
|
|
41940
|
+
mappings: mappings
|
|
42904
41941
|
};
|
|
42905
|
-
|
|
42906
|
-
|
|
42907
|
-
|
|
42908
|
-
|
|
42909
|
-
|
|
42910
|
-
|
|
42911
|
-
|
|
42912
|
-
|
|
42913
|
-
|
|
42914
|
-
|
|
41942
|
+
}
|
|
41943
|
+
function toEncodedMap(map) {
|
|
41944
|
+
var decoded = toDecodedMap(map);
|
|
41945
|
+
return Object.assign(Object.assign({}, decoded), {
|
|
41946
|
+
mappings: encode(decoded.mappings)
|
|
41947
|
+
});
|
|
41948
|
+
}
|
|
41949
|
+
function allMappings(map) {
|
|
41950
|
+
var out = [];
|
|
41951
|
+
var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, names = _cast2._names;
|
|
41952
|
+
for(var i = 0; i < mappings.length; i++){
|
|
41953
|
+
var line = mappings[i];
|
|
41954
|
+
for(var j = 0; j < line.length; j++){
|
|
41955
|
+
var seg = line[j];
|
|
41956
|
+
var generated = {
|
|
41957
|
+
line: i + 1,
|
|
41958
|
+
column: seg[COLUMN2]
|
|
41959
|
+
};
|
|
41960
|
+
var source = void 0;
|
|
41961
|
+
var original = void 0;
|
|
41962
|
+
var name = void 0;
|
|
41963
|
+
if (seg.length !== 1) {
|
|
41964
|
+
source = sources.array[seg[SOURCES_INDEX2]];
|
|
41965
|
+
original = {
|
|
41966
|
+
line: seg[SOURCE_LINE2] + 1,
|
|
41967
|
+
column: seg[SOURCE_COLUMN2]
|
|
42915
41968
|
};
|
|
42916
|
-
|
|
42917
|
-
var original = void 0;
|
|
42918
|
-
var name = void 0;
|
|
42919
|
-
if (seg.length !== 1) {
|
|
42920
|
-
source = sources.array[seg[SOURCES_INDEX2]];
|
|
42921
|
-
original = {
|
|
42922
|
-
line: seg[SOURCE_LINE2] + 1,
|
|
42923
|
-
column: seg[SOURCE_COLUMN2]
|
|
42924
|
-
};
|
|
42925
|
-
if (seg.length === 5) name = names.array[seg[NAMES_INDEX2]];
|
|
42926
|
-
}
|
|
42927
|
-
out.push({
|
|
42928
|
-
generated: generated,
|
|
42929
|
-
source: source,
|
|
42930
|
-
original: original,
|
|
42931
|
-
name: name
|
|
42932
|
-
});
|
|
41969
|
+
if (seg.length === 5) name = names.array[seg[NAMES_INDEX2]];
|
|
42933
41970
|
}
|
|
41971
|
+
out.push({
|
|
41972
|
+
generated: generated,
|
|
41973
|
+
source: source,
|
|
41974
|
+
original: original,
|
|
41975
|
+
name: name
|
|
41976
|
+
});
|
|
42934
41977
|
}
|
|
42935
|
-
|
|
42936
|
-
|
|
42937
|
-
|
|
42938
|
-
|
|
42939
|
-
|
|
42940
|
-
|
|
42941
|
-
|
|
42942
|
-
|
|
42943
|
-
|
|
42944
|
-
|
|
42945
|
-
|
|
42946
|
-
return null;
|
|
42947
|
-
});
|
|
42948
|
-
gen._mappings = decodedMappings(map);
|
|
42949
|
-
return gen;
|
|
42950
|
-
};
|
|
42951
|
-
addSegmentInternal = function(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
|
42952
|
-
var mappings = map._mappings, sources = map._sources, sourcesContent = map._sourcesContent, names = map._names;
|
|
42953
|
-
var line = getLine(mappings, genLine);
|
|
42954
|
-
var index3 = getColumnIndex(line, genColumn);
|
|
42955
|
-
if (!source) {
|
|
42956
|
-
if (skipable && skipSourceless(line, index3)) return;
|
|
42957
|
-
return insert2(line, index3, [
|
|
42958
|
-
genColumn
|
|
42959
|
-
]);
|
|
42960
|
-
}
|
|
42961
|
-
var sourcesIndex = put(sources, source);
|
|
42962
|
-
var namesIndex = name ? put(names, name) : NO_NAME;
|
|
42963
|
-
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null;
|
|
42964
|
-
if (skipable && skipSource(line, index3, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {
|
|
42965
|
-
return;
|
|
42966
|
-
}
|
|
42967
|
-
return insert2(line, index3, name ? [
|
|
42968
|
-
genColumn,
|
|
42969
|
-
sourcesIndex,
|
|
42970
|
-
sourceLine,
|
|
42971
|
-
sourceColumn,
|
|
42972
|
-
namesIndex
|
|
42973
|
-
] : [
|
|
42974
|
-
genColumn,
|
|
42975
|
-
sourcesIndex,
|
|
42976
|
-
sourceLine,
|
|
42977
|
-
sourceColumn
|
|
41978
|
+
}
|
|
41979
|
+
return out;
|
|
41980
|
+
}
|
|
41981
|
+
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
|
41982
|
+
var _cast2 = cast2(map), mappings = _cast2._mappings, sources = _cast2._sources, sourcesContent = _cast2._sourcesContent, names = _cast2._names;
|
|
41983
|
+
var line = getLine(mappings, genLine);
|
|
41984
|
+
var index3 = getColumnIndex(line, genColumn);
|
|
41985
|
+
if (!source) {
|
|
41986
|
+
if (skipable && skipSourceless(line, index3)) return;
|
|
41987
|
+
return insert(line, index3, [
|
|
41988
|
+
genColumn
|
|
42978
41989
|
]);
|
|
42979
|
-
}
|
|
42980
|
-
|
|
41990
|
+
}
|
|
41991
|
+
var sourcesIndex = put(sources, source);
|
|
41992
|
+
var namesIndex = name ? put(names, name) : NO_NAME;
|
|
41993
|
+
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null;
|
|
41994
|
+
if (skipable && skipSource(line, index3, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {
|
|
41995
|
+
return;
|
|
41996
|
+
}
|
|
41997
|
+
return insert(line, index3, name ? [
|
|
41998
|
+
genColumn,
|
|
41999
|
+
sourcesIndex,
|
|
42000
|
+
sourceLine,
|
|
42001
|
+
sourceColumn,
|
|
42002
|
+
namesIndex
|
|
42003
|
+
] : [
|
|
42004
|
+
genColumn,
|
|
42005
|
+
sourcesIndex,
|
|
42006
|
+
sourceLine,
|
|
42007
|
+
sourceColumn
|
|
42008
|
+
]);
|
|
42009
|
+
}
|
|
42981
42010
|
function getLine(mappings, index3) {
|
|
42982
42011
|
for(var i = mappings.length; i <= index3; i++){
|
|
42983
42012
|
mappings[i] = [];
|
|
@@ -42992,7 +42021,7 @@ function getColumnIndex(line, genColumn) {
|
|
|
42992
42021
|
}
|
|
42993
42022
|
return index3;
|
|
42994
42023
|
}
|
|
42995
|
-
function
|
|
42024
|
+
function insert(array, index3, value1) {
|
|
42996
42025
|
for(var i = array.length; i > index3; i--){
|
|
42997
42026
|
array[i] = array[i - 1];
|
|
42998
42027
|
}
|
|
@@ -43006,9 +42035,6 @@ function removeEmptyFinalLines(mappings) {
|
|
|
43006
42035
|
}
|
|
43007
42036
|
if (len < length) mappings.length = len;
|
|
43008
42037
|
}
|
|
43009
|
-
function putAll(strarr, array) {
|
|
43010
|
-
for(var i = 0; i < array.length; i++)put(strarr, array[i]);
|
|
43011
|
-
}
|
|
43012
42038
|
function skipSourceless(line, index3) {
|
|
43013
42039
|
if (index3 === 0) return true;
|
|
43014
42040
|
var prev = line[index3 - 1];
|
|
@@ -43025,8 +42051,7 @@ function addMappingInternal(skipable, map, mapping) {
|
|
|
43025
42051
|
if (!source) {
|
|
43026
42052
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);
|
|
43027
42053
|
}
|
|
43028
|
-
|
|
43029
|
-
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, s, original.line - 1, original.column, name, content);
|
|
42054
|
+
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
43030
42055
|
}
|
|
43031
42056
|
// node_modules/@babel/generator/lib/index.js
|
|
43032
42057
|
var import_jsesc = __toESM(require_jsesc(), 1);
|
|
@@ -51824,7 +50849,7 @@ function _evaluate(path, state) {
|
|
|
51824
50849
|
if (object2.isIdentifier() && property2.isIdentifier() && isValidObjectCallee(object2.node.name) && !isInvalidMethod(property2.node.name)) {
|
|
51825
50850
|
context = global[object2.node.name];
|
|
51826
50851
|
var key2 = property2.node.name;
|
|
51827
|
-
if (Object.
|
|
50852
|
+
if (Object.hasOwn(context, key2)) {
|
|
51828
50853
|
func = context[key2];
|
|
51829
50854
|
}
|
|
51830
50855
|
}
|
|
@@ -52347,7 +51372,7 @@ var STATEMENT_OR_BLOCK_KEYS2 = lib_exports.STATEMENT_OR_BLOCK_KEYS, VISITOR_KEYS
|
|
|
52347
51372
|
function matchesPattern2(pattern, allowPartial) {
|
|
52348
51373
|
return _matchesPattern(this.node, pattern, allowPartial);
|
|
52349
51374
|
}
|
|
52350
|
-
function
|
|
51375
|
+
function has(key) {
|
|
52351
51376
|
var val = this.node && this.node[key];
|
|
52352
51377
|
if (val && Array.isArray(val)) {
|
|
52353
51378
|
return !!val.length;
|
|
@@ -52358,7 +51383,7 @@ function has2(key) {
|
|
|
52358
51383
|
function isStatic() {
|
|
52359
51384
|
return this.scope.isStatic(this.node);
|
|
52360
51385
|
}
|
|
52361
|
-
var is2 =
|
|
51386
|
+
var is2 = has;
|
|
52362
51387
|
function isnt(key) {
|
|
52363
51388
|
return !this.has(key);
|
|
52364
51389
|
}
|
|
@@ -52750,7 +51775,7 @@ var NodePath_introspection = /* @__PURE__ */ Object.freeze({
|
|
|
52750
51775
|
canSwapBetweenExpressionAndStatement: canSwapBetweenExpressionAndStatement,
|
|
52751
51776
|
equals: equals,
|
|
52752
51777
|
getSource: getSource,
|
|
52753
|
-
has:
|
|
51778
|
+
has: has,
|
|
52754
51779
|
is: is2,
|
|
52755
51780
|
isCompletionRecord: isCompletionRecord,
|
|
52756
51781
|
isConstantExpression: isConstantExpression,
|
|
@@ -54291,10 +53316,10 @@ var NodePath = /*#__PURE__*/ function() {
|
|
|
54291
53316
|
return _NodePath;
|
|
54292
53317
|
}();
|
|
54293
53318
|
Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments);
|
|
54294
|
-
var
|
|
53319
|
+
var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
|
|
54295
53320
|
try {
|
|
54296
|
-
var
|
|
54297
|
-
var type =
|
|
53321
|
+
var _loop2 = function() {
|
|
53322
|
+
var type = _step4.value;
|
|
54298
53323
|
var typeKey = "is".concat(type);
|
|
54299
53324
|
var fn = lib_exports[typeKey];
|
|
54300
53325
|
NodePath.prototype[typeKey] = function(opts) {
|
|
@@ -54306,40 +53331,40 @@ try {
|
|
|
54306
53331
|
}
|
|
54307
53332
|
};
|
|
54308
53333
|
};
|
|
54309
|
-
for(var
|
|
53334
|
+
for(var _iterator4 = TYPES[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true)_loop2();
|
|
54310
53335
|
} catch (err) {
|
|
54311
|
-
|
|
54312
|
-
|
|
53336
|
+
_didIteratorError4 = true;
|
|
53337
|
+
_iteratorError4 = err;
|
|
54313
53338
|
} finally{
|
|
54314
53339
|
try {
|
|
54315
|
-
if (!
|
|
54316
|
-
|
|
53340
|
+
if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
|
|
53341
|
+
_iterator4.return();
|
|
54317
53342
|
}
|
|
54318
53343
|
} finally{
|
|
54319
|
-
if (
|
|
54320
|
-
throw
|
|
53344
|
+
if (_didIteratorError4) {
|
|
53345
|
+
throw _iteratorError4;
|
|
54321
53346
|
}
|
|
54322
53347
|
}
|
|
54323
53348
|
}
|
|
54324
53349
|
Object.assign(NodePath.prototype, NodePath_virtual_types_validator);
|
|
54325
|
-
var
|
|
53350
|
+
var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = undefined;
|
|
54326
53351
|
try {
|
|
54327
|
-
for(var
|
|
54328
|
-
var type2 =
|
|
53352
|
+
for(var _iterator5 = Object.keys(virtualTypes)[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true){
|
|
53353
|
+
var type2 = _step5.value;
|
|
54329
53354
|
if (type2[0] === "_") continue;
|
|
54330
53355
|
if (!TYPES.includes(type2)) TYPES.push(type2);
|
|
54331
53356
|
}
|
|
54332
53357
|
} catch (err) {
|
|
54333
|
-
|
|
54334
|
-
|
|
53358
|
+
_didIteratorError5 = true;
|
|
53359
|
+
_iteratorError5 = err;
|
|
54335
53360
|
} finally{
|
|
54336
53361
|
try {
|
|
54337
|
-
if (!
|
|
54338
|
-
|
|
53362
|
+
if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
|
|
53363
|
+
_iterator5.return();
|
|
54339
53364
|
}
|
|
54340
53365
|
} finally{
|
|
54341
|
-
if (
|
|
54342
|
-
throw
|
|
53366
|
+
if (_didIteratorError5) {
|
|
53367
|
+
throw _iteratorError5;
|
|
54343
53368
|
}
|
|
54344
53369
|
}
|
|
54345
53370
|
}
|
|
@@ -54446,62 +53471,31 @@ var TraversalContext = /*#__PURE__*/ function() {
|
|
|
54446
53471
|
this.priorityQueue = [];
|
|
54447
53472
|
var visited = /* @__PURE__ */ new WeakSet();
|
|
54448
53473
|
var stop2 = false;
|
|
54449
|
-
var
|
|
54450
|
-
|
|
54451
|
-
|
|
54452
|
-
|
|
54453
|
-
|
|
54454
|
-
|
|
54455
|
-
|
|
54456
|
-
|
|
54457
|
-
|
|
54458
|
-
|
|
54459
|
-
|
|
54460
|
-
|
|
54461
|
-
|
|
54462
|
-
|
|
54463
|
-
|
|
54464
|
-
}
|
|
54465
|
-
if (this.priorityQueue.length) {
|
|
54466
|
-
stop2 = this.visitQueue(this.priorityQueue);
|
|
54467
|
-
this.priorityQueue = [];
|
|
54468
|
-
this.queue = queue;
|
|
54469
|
-
if (stop2) break;
|
|
54470
|
-
}
|
|
53474
|
+
var visitIndex = 0;
|
|
53475
|
+
for(; visitIndex < queue.length;){
|
|
53476
|
+
var path = queue[visitIndex];
|
|
53477
|
+
visitIndex++;
|
|
53478
|
+
path.resync();
|
|
53479
|
+
if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) {
|
|
53480
|
+
path.pushContext(this);
|
|
53481
|
+
}
|
|
53482
|
+
if (path.key === null) continue;
|
|
53483
|
+
var node = path.node;
|
|
53484
|
+
if (visited.has(node)) continue;
|
|
53485
|
+
if (node) visited.add(node);
|
|
53486
|
+
if (path.visit()) {
|
|
53487
|
+
stop2 = true;
|
|
53488
|
+
break;
|
|
54471
53489
|
}
|
|
54472
|
-
|
|
54473
|
-
|
|
54474
|
-
|
|
54475
|
-
|
|
54476
|
-
|
|
54477
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
54478
|
-
_iterator.return();
|
|
54479
|
-
}
|
|
54480
|
-
} finally{
|
|
54481
|
-
if (_didIteratorError) {
|
|
54482
|
-
throw _iteratorError;
|
|
54483
|
-
}
|
|
53490
|
+
if (this.priorityQueue.length) {
|
|
53491
|
+
stop2 = this.visitQueue(this.priorityQueue);
|
|
53492
|
+
this.priorityQueue = [];
|
|
53493
|
+
this.queue = queue;
|
|
53494
|
+
if (stop2) break;
|
|
54484
53495
|
}
|
|
54485
53496
|
}
|
|
54486
|
-
var
|
|
54487
|
-
|
|
54488
|
-
for(var _iterator1 = queue[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
54489
|
-
var path1 = _step1.value;
|
|
54490
|
-
path1.popContext();
|
|
54491
|
-
}
|
|
54492
|
-
} catch (err) {
|
|
54493
|
-
_didIteratorError1 = true;
|
|
54494
|
-
_iteratorError1 = err;
|
|
54495
|
-
} finally{
|
|
54496
|
-
try {
|
|
54497
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
54498
|
-
_iterator1.return();
|
|
54499
|
-
}
|
|
54500
|
-
} finally{
|
|
54501
|
-
if (_didIteratorError1) {
|
|
54502
|
-
throw _iteratorError1;
|
|
54503
|
-
}
|
|
54504
|
-
}
|
|
53497
|
+
for(var i = 0; i < visitIndex; i++){
|
|
53498
|
+
queue[i].popContext();
|
|
54505
53499
|
}
|
|
54506
53500
|
this.queue = null;
|
|
54507
53501
|
return stop2;
|