@putout/babel 2.2.0 → 2.4.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 +407 -2149
- 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];
|
|
@@ -122,45 +123,6 @@ function _non_iterable_rest() {
|
|
|
122
123
|
function _non_iterable_spread() {
|
|
123
124
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
124
125
|
}
|
|
125
|
-
function _object_spread(target) {
|
|
126
|
-
for(var i = 1; i < arguments.length; i++){
|
|
127
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
128
|
-
var ownKeys = Object.keys(source);
|
|
129
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
130
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
131
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
132
|
-
}));
|
|
133
|
-
}
|
|
134
|
-
ownKeys.forEach(function(key) {
|
|
135
|
-
_define_property(target, key, source[key]);
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
return target;
|
|
139
|
-
}
|
|
140
|
-
function ownKeys(object, enumerableOnly) {
|
|
141
|
-
var keys = Object.keys(object);
|
|
142
|
-
if (Object.getOwnPropertySymbols) {
|
|
143
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
144
|
-
if (enumerableOnly) {
|
|
145
|
-
symbols = symbols.filter(function(sym) {
|
|
146
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
keys.push.apply(keys, symbols);
|
|
150
|
-
}
|
|
151
|
-
return keys;
|
|
152
|
-
}
|
|
153
|
-
function _object_spread_props(target, source) {
|
|
154
|
-
source = source != null ? source : {};
|
|
155
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
156
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
157
|
-
} else {
|
|
158
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
159
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
return target;
|
|
163
|
-
}
|
|
164
126
|
function _possible_constructor_return(self, call) {
|
|
165
127
|
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
166
128
|
return call;
|
|
@@ -496,19 +458,19 @@ var require_js_tokens = __commonJS({
|
|
|
496
458
|
var TokensPrecedingExpression;
|
|
497
459
|
var WhiteSpace;
|
|
498
460
|
var jsTokens2;
|
|
499
|
-
RegularExpressionLiteral = RegExp("\\/(?![*\\/])(?:\\[(?:
|
|
461
|
+
RegularExpressionLiteral = RegExp("\\/(?![*\\/])(?:\\[(?:[^\\]\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*\\]|[^\\/\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?", "yu");
|
|
500
462
|
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)[
|
|
463
|
+
Identifier2 = RegExp("(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]+|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+", "yu");
|
|
464
|
+
StringLiteral3 = RegExp("(['\"])(?:[^'\"\\\\\\n\\r]+|(?!\\1)['\"]|\\\\(?:\\r\\n|[^]))*(\\1)?", "y");
|
|
503
465
|
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("[`}](?:[^`\\\\$]
|
|
466
|
+
Template = RegExp("[`}](?:[^`\\\\$]+|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?", "y");
|
|
505
467
|
WhiteSpace = RegExp("[\\t\\v\\f\\ufeff\\p{Zs}]+", "yu");
|
|
506
468
|
LineTerminatorSequence = RegExp("\\r?\\n|[\\r\\u2028\\u2029]", "y");
|
|
507
|
-
MultiLineComment = RegExp("\\/\\*(?:[^*]
|
|
469
|
+
MultiLineComment = RegExp("\\/\\*(?:[^*]+|\\*(?!\\/))*(\\*\\/)?", "y");
|
|
508
470
|
SingleLineComment = RegExp("\\/\\/.*", "y");
|
|
509
471
|
JSXPunctuator = RegExp("[<>.:={}]|\\/(?![\\/*])", "y");
|
|
510
472
|
JSXIdentifier2 = RegExp("[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*", "yu");
|
|
511
|
-
JSXString = RegExp("(['\"])(?:(?!\\1)[
|
|
473
|
+
JSXString = RegExp("(['\"])(?:[^'\"]+|(?!\\1)['\"])*(\\1)?", "y");
|
|
512
474
|
JSXText2 = RegExp("[^<>{}]+", "y");
|
|
513
475
|
TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
|
|
514
476
|
TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
|
|
@@ -1292,6 +1254,62 @@ var require_js_tokens = __commonJS({
|
|
|
1292
1254
|
};
|
|
1293
1255
|
}
|
|
1294
1256
|
});
|
|
1257
|
+
// node_modules/picocolors/picocolors.js
|
|
1258
|
+
var require_picocolors = __commonJS({
|
|
1259
|
+
"node_modules/picocolors/picocolors.js": function(exports2, module2) {
|
|
1260
|
+
var tty = require("tty");
|
|
1261
|
+
var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
|
|
1262
|
+
var formatter = function(open, close) {
|
|
1263
|
+
var replace = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : open;
|
|
1264
|
+
return function(input) {
|
|
1265
|
+
var string = "" + input;
|
|
1266
|
+
var index3 = string.indexOf(close, open.length);
|
|
1267
|
+
return ~index3 ? open + replaceClose(string, close, replace, index3) + close : open + string + close;
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
var replaceClose = function(string, close, replace, index3) {
|
|
1271
|
+
var start = string.substring(0, index3) + replace;
|
|
1272
|
+
var end = string.substring(index3 + close.length);
|
|
1273
|
+
var nextIndex = end.indexOf(close);
|
|
1274
|
+
return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
|
|
1275
|
+
};
|
|
1276
|
+
var createColors3 = function() {
|
|
1277
|
+
var enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : isColorSupported;
|
|
1278
|
+
return {
|
|
1279
|
+
isColorSupported: enabled,
|
|
1280
|
+
reset: enabled ? function(s) {
|
|
1281
|
+
return "\x1b[0m".concat(s, "\x1b[0m");
|
|
1282
|
+
} : String,
|
|
1283
|
+
bold: enabled ? formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m") : String,
|
|
1284
|
+
dim: enabled ? formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m") : String,
|
|
1285
|
+
italic: enabled ? formatter("\x1b[3m", "\x1b[23m") : String,
|
|
1286
|
+
underline: enabled ? formatter("\x1b[4m", "\x1b[24m") : String,
|
|
1287
|
+
inverse: enabled ? formatter("\x1b[7m", "\x1b[27m") : String,
|
|
1288
|
+
hidden: enabled ? formatter("\x1b[8m", "\x1b[28m") : String,
|
|
1289
|
+
strikethrough: enabled ? formatter("\x1b[9m", "\x1b[29m") : String,
|
|
1290
|
+
black: enabled ? formatter("\x1b[30m", "\x1b[39m") : String,
|
|
1291
|
+
red: enabled ? formatter("\x1b[31m", "\x1b[39m") : String,
|
|
1292
|
+
green: enabled ? formatter("\x1b[32m", "\x1b[39m") : String,
|
|
1293
|
+
yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String,
|
|
1294
|
+
blue: enabled ? formatter("\x1b[34m", "\x1b[39m") : String,
|
|
1295
|
+
magenta: enabled ? formatter("\x1b[35m", "\x1b[39m") : String,
|
|
1296
|
+
cyan: enabled ? formatter("\x1b[36m", "\x1b[39m") : String,
|
|
1297
|
+
white: enabled ? formatter("\x1b[37m", "\x1b[39m") : String,
|
|
1298
|
+
gray: enabled ? formatter("\x1b[90m", "\x1b[39m") : String,
|
|
1299
|
+
bgBlack: enabled ? formatter("\x1b[40m", "\x1b[49m") : String,
|
|
1300
|
+
bgRed: enabled ? formatter("\x1b[41m", "\x1b[49m") : String,
|
|
1301
|
+
bgGreen: enabled ? formatter("\x1b[42m", "\x1b[49m") : String,
|
|
1302
|
+
bgYellow: enabled ? formatter("\x1b[43m", "\x1b[49m") : String,
|
|
1303
|
+
bgBlue: enabled ? formatter("\x1b[44m", "\x1b[49m") : String,
|
|
1304
|
+
bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String,
|
|
1305
|
+
bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String,
|
|
1306
|
+
bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
module2.exports = createColors3();
|
|
1310
|
+
module2.exports.createColors = createColors3;
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1295
1313
|
// node_modules/jsesc/jsesc.js
|
|
1296
1314
|
var require_jsesc = __commonJS({
|
|
1297
1315
|
"node_modules/jsesc/jsesc.js": function(exports2, module2) {
|
|
@@ -1665,7 +1683,7 @@ var require_ms = __commonJS({
|
|
|
1665
1683
|
// node_modules/debug/src/common.js
|
|
1666
1684
|
var require_common = __commonJS({
|
|
1667
1685
|
"node_modules/debug/src/common.js": function(exports2, module2) {
|
|
1668
|
-
function setup2(
|
|
1686
|
+
function setup2(env) {
|
|
1669
1687
|
createDebug.debug = createDebug;
|
|
1670
1688
|
createDebug.default = createDebug;
|
|
1671
1689
|
createDebug.coerce = coerce;
|
|
@@ -1674,8 +1692,8 @@ var require_common = __commonJS({
|
|
|
1674
1692
|
createDebug.enabled = enabled;
|
|
1675
1693
|
createDebug.humanize = require_ms();
|
|
1676
1694
|
createDebug.destroy = destroy;
|
|
1677
|
-
Object.keys(
|
|
1678
|
-
createDebug[key] =
|
|
1695
|
+
Object.keys(env).forEach(function(key) {
|
|
1696
|
+
createDebug[key] = env[key];
|
|
1679
1697
|
});
|
|
1680
1698
|
createDebug.names = [];
|
|
1681
1699
|
createDebug.skips = [];
|
|
@@ -2007,26 +2025,26 @@ var require_has_flag = __commonJS({
|
|
|
2007
2025
|
var require_supports_color = __commonJS({
|
|
2008
2026
|
"node_modules/supports-color/index.js": function(exports2, module2) {
|
|
2009
2027
|
"use strict";
|
|
2010
|
-
var
|
|
2011
|
-
var
|
|
2012
|
-
var
|
|
2013
|
-
var
|
|
2028
|
+
var os = require("os");
|
|
2029
|
+
var tty = require("tty");
|
|
2030
|
+
var hasFlag = require_has_flag();
|
|
2031
|
+
var env = process.env;
|
|
2014
2032
|
var forceColor;
|
|
2015
|
-
if (
|
|
2033
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
2016
2034
|
forceColor = 0;
|
|
2017
|
-
} else if (
|
|
2035
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
2018
2036
|
forceColor = 1;
|
|
2019
2037
|
}
|
|
2020
|
-
if ("FORCE_COLOR" in
|
|
2021
|
-
if (
|
|
2038
|
+
if ("FORCE_COLOR" in env) {
|
|
2039
|
+
if (env.FORCE_COLOR === "true") {
|
|
2022
2040
|
forceColor = 1;
|
|
2023
|
-
} else if (
|
|
2041
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
2024
2042
|
forceColor = 0;
|
|
2025
2043
|
} else {
|
|
2026
|
-
forceColor =
|
|
2044
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
2027
2045
|
}
|
|
2028
2046
|
}
|
|
2029
|
-
function
|
|
2047
|
+
function translateLevel(level) {
|
|
2030
2048
|
if (level === 0) {
|
|
2031
2049
|
return false;
|
|
2032
2050
|
}
|
|
@@ -2037,31 +2055,31 @@ var require_supports_color = __commonJS({
|
|
|
2037
2055
|
has16m: level >= 3
|
|
2038
2056
|
};
|
|
2039
2057
|
}
|
|
2040
|
-
function
|
|
2058
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
2041
2059
|
if (forceColor === 0) {
|
|
2042
2060
|
return 0;
|
|
2043
2061
|
}
|
|
2044
|
-
if (
|
|
2062
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
2045
2063
|
return 3;
|
|
2046
2064
|
}
|
|
2047
|
-
if (
|
|
2065
|
+
if (hasFlag("color=256")) {
|
|
2048
2066
|
return 2;
|
|
2049
2067
|
}
|
|
2050
2068
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
2051
2069
|
return 0;
|
|
2052
2070
|
}
|
|
2053
2071
|
var min = forceColor || 0;
|
|
2054
|
-
if (
|
|
2072
|
+
if (env.TERM === "dumb") {
|
|
2055
2073
|
return min;
|
|
2056
2074
|
}
|
|
2057
2075
|
if (process.platform === "win32") {
|
|
2058
|
-
var osRelease =
|
|
2076
|
+
var osRelease = os.release().split(".");
|
|
2059
2077
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2060
2078
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2061
2079
|
}
|
|
2062
2080
|
return 1;
|
|
2063
2081
|
}
|
|
2064
|
-
if ("CI" in
|
|
2082
|
+
if ("CI" in env) {
|
|
2065
2083
|
if ([
|
|
2066
2084
|
"TRAVIS",
|
|
2067
2085
|
"CIRCLECI",
|
|
@@ -2070,53 +2088,53 @@ var require_supports_color = __commonJS({
|
|
|
2070
2088
|
"GITHUB_ACTIONS",
|
|
2071
2089
|
"BUILDKITE"
|
|
2072
2090
|
].some(function(sign) {
|
|
2073
|
-
return sign in
|
|
2074
|
-
}) ||
|
|
2091
|
+
return sign in env;
|
|
2092
|
+
}) || env.CI_NAME === "codeship") {
|
|
2075
2093
|
return 1;
|
|
2076
2094
|
}
|
|
2077
2095
|
return min;
|
|
2078
2096
|
}
|
|
2079
|
-
if ("TEAMCITY_VERSION" in
|
|
2080
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
2097
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
2098
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2081
2099
|
}
|
|
2082
|
-
if (
|
|
2100
|
+
if (env.COLORTERM === "truecolor") {
|
|
2083
2101
|
return 3;
|
|
2084
2102
|
}
|
|
2085
|
-
if ("TERM_PROGRAM" in
|
|
2086
|
-
var version = parseInt((
|
|
2087
|
-
switch(
|
|
2103
|
+
if ("TERM_PROGRAM" in env) {
|
|
2104
|
+
var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2105
|
+
switch(env.TERM_PROGRAM){
|
|
2088
2106
|
case "iTerm.app":
|
|
2089
2107
|
return version >= 3 ? 3 : 2;
|
|
2090
2108
|
case "Apple_Terminal":
|
|
2091
2109
|
return 2;
|
|
2092
2110
|
}
|
|
2093
2111
|
}
|
|
2094
|
-
if (/-256(color)?$/i.test(
|
|
2112
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
2095
2113
|
return 2;
|
|
2096
2114
|
}
|
|
2097
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
2115
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
2098
2116
|
return 1;
|
|
2099
2117
|
}
|
|
2100
|
-
if ("COLORTERM" in
|
|
2118
|
+
if ("COLORTERM" in env) {
|
|
2101
2119
|
return 1;
|
|
2102
2120
|
}
|
|
2103
2121
|
return min;
|
|
2104
2122
|
}
|
|
2105
2123
|
function getSupportLevel(stream) {
|
|
2106
|
-
var level =
|
|
2107
|
-
return
|
|
2124
|
+
var level = supportsColor(stream, stream && stream.isTTY);
|
|
2125
|
+
return translateLevel(level);
|
|
2108
2126
|
}
|
|
2109
2127
|
module2.exports = {
|
|
2110
2128
|
supportsColor: getSupportLevel,
|
|
2111
|
-
stdout:
|
|
2112
|
-
stderr:
|
|
2129
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
2130
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
2113
2131
|
};
|
|
2114
2132
|
}
|
|
2115
2133
|
});
|
|
2116
2134
|
// node_modules/debug/src/node.js
|
|
2117
2135
|
var require_node = __commonJS({
|
|
2118
2136
|
"node_modules/debug/src/node.js": function(exports2, module2) {
|
|
2119
|
-
var
|
|
2137
|
+
var tty = require("tty");
|
|
2120
2138
|
var util = require("util");
|
|
2121
2139
|
exports2.init = init;
|
|
2122
2140
|
exports2.log = log;
|
|
@@ -2134,8 +2152,8 @@ var require_node = __commonJS({
|
|
|
2134
2152
|
1
|
|
2135
2153
|
];
|
|
2136
2154
|
try {
|
|
2137
|
-
var
|
|
2138
|
-
if (
|
|
2155
|
+
var supportsColor = require_supports_color();
|
|
2156
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2139
2157
|
exports2.colors = [
|
|
2140
2158
|
20,
|
|
2141
2159
|
21,
|
|
@@ -2236,7 +2254,7 @@ var require_node = __commonJS({
|
|
|
2236
2254
|
return obj;
|
|
2237
2255
|
}, {});
|
|
2238
2256
|
function useColors() {
|
|
2239
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) :
|
|
2257
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
2240
2258
|
}
|
|
2241
2259
|
function formatArgs(args) {
|
|
2242
2260
|
var _this = this, name = _this.namespace, useColors2 = _this.useColors;
|
|
@@ -2304,9 +2322,9 @@ var require_src = __commonJS({
|
|
|
2304
2322
|
}
|
|
2305
2323
|
}
|
|
2306
2324
|
});
|
|
2307
|
-
// node_modules/globals/globals.json
|
|
2325
|
+
// node_modules/@babel/traverse/node_modules/globals/globals.json
|
|
2308
2326
|
var require_globals = __commonJS({
|
|
2309
|
-
"node_modules/globals/globals.json": function(exports2, module2) {
|
|
2327
|
+
"node_modules/@babel/traverse/node_modules/globals/globals.json": function(exports2, module2) {
|
|
2310
2328
|
module2.exports = {
|
|
2311
2329
|
builtin: {
|
|
2312
2330
|
AggregateError: false,
|
|
@@ -4307,9 +4325,9 @@ var require_globals = __commonJS({
|
|
|
4307
4325
|
};
|
|
4308
4326
|
}
|
|
4309
4327
|
});
|
|
4310
|
-
// node_modules/globals/index.js
|
|
4328
|
+
// node_modules/@babel/traverse/node_modules/globals/index.js
|
|
4311
4329
|
var require_globals2 = __commonJS({
|
|
4312
|
-
"node_modules/globals/index.js": function(exports2, module2) {
|
|
4330
|
+
"node_modules/@babel/traverse/node_modules/globals/index.js": function(exports2, module2) {
|
|
4313
4331
|
"use strict";
|
|
4314
4332
|
module2.exports = require_globals();
|
|
4315
4333
|
}
|
|
@@ -16232,7 +16250,7 @@ try {
|
|
|
16232
16250
|
var PLACEHOLDERS_FLIPPED_ALIAS = {};
|
|
16233
16251
|
Object.keys(PLACEHOLDERS_ALIAS).forEach(function(type) {
|
|
16234
16252
|
PLACEHOLDERS_ALIAS[type].forEach(function(alias) {
|
|
16235
|
-
if (!Object.
|
|
16253
|
+
if (!Object.hasOwn(PLACEHOLDERS_FLIPPED_ALIAS, alias)) {
|
|
16236
16254
|
PLACEHOLDERS_FLIPPED_ALIAS[alias] = [];
|
|
16237
16255
|
}
|
|
16238
16256
|
PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type);
|
|
@@ -17117,7 +17135,11 @@ defineType("TSImportType", {
|
|
|
17117
17135
|
fields: {
|
|
17118
17136
|
argument: validateType("StringLiteral"),
|
|
17119
17137
|
qualifier: validateOptionalType("TSEntityName"),
|
|
17120
|
-
typeParameters: validateOptionalType("TSTypeParameterInstantiation")
|
|
17138
|
+
typeParameters: validateOptionalType("TSTypeParameterInstantiation"),
|
|
17139
|
+
options: {
|
|
17140
|
+
validate: assertNodeType("Expression"),
|
|
17141
|
+
optional: true
|
|
17142
|
+
}
|
|
17121
17143
|
}
|
|
17122
17144
|
});
|
|
17123
17145
|
defineType("TSImportEqualsDeclaration", {
|
|
@@ -20324,7 +20346,7 @@ function createTSUnionType(typeAnnotations) {
|
|
|
20324
20346
|
function buildUndefinedNode() {
|
|
20325
20347
|
return unaryExpression("void", numericLiteral(0), true);
|
|
20326
20348
|
}
|
|
20327
|
-
var
|
|
20349
|
+
var hasOwn = Object.hasOwn;
|
|
20328
20350
|
function cloneIfNode(obj, deep, withoutLoc, commentsCache) {
|
|
20329
20351
|
if (obj && typeof obj.type === "string") {
|
|
20330
20352
|
return cloneNodeInternal(obj, deep, withoutLoc, commentsCache);
|
|
@@ -20352,20 +20374,20 @@ function cloneNodeInternal(node) {
|
|
|
20352
20374
|
};
|
|
20353
20375
|
if (isIdentifier(node)) {
|
|
20354
20376
|
newNode.name = node.name;
|
|
20355
|
-
if (
|
|
20377
|
+
if (hasOwn(node, "optional") && typeof node.optional === "boolean") {
|
|
20356
20378
|
newNode.optional = node.optional;
|
|
20357
20379
|
}
|
|
20358
|
-
if (
|
|
20380
|
+
if (hasOwn(node, "typeAnnotation")) {
|
|
20359
20381
|
newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
|
|
20360
20382
|
}
|
|
20361
|
-
} else if (!
|
|
20383
|
+
} else if (!hasOwn(NODE_FIELDS, type)) {
|
|
20362
20384
|
throw new Error('Unknown node type: "'.concat(type, '"'));
|
|
20363
20385
|
} else {
|
|
20364
20386
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
20365
20387
|
try {
|
|
20366
20388
|
for(var _iterator = Object.keys(NODE_FIELDS[type])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
20367
20389
|
var field = _step.value;
|
|
20368
|
-
if (
|
|
20390
|
+
if (hasOwn(node, field)) {
|
|
20369
20391
|
if (deep) {
|
|
20370
20392
|
newNode[field] = isFile(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
|
|
20371
20393
|
} else {
|
|
@@ -20388,23 +20410,23 @@ function cloneNodeInternal(node) {
|
|
|
20388
20410
|
}
|
|
20389
20411
|
}
|
|
20390
20412
|
}
|
|
20391
|
-
if (
|
|
20413
|
+
if (hasOwn(node, "loc")) {
|
|
20392
20414
|
if (withoutLoc) {
|
|
20393
20415
|
newNode.loc = null;
|
|
20394
20416
|
} else {
|
|
20395
20417
|
newNode.loc = node.loc;
|
|
20396
20418
|
}
|
|
20397
20419
|
}
|
|
20398
|
-
if (
|
|
20420
|
+
if (hasOwn(node, "leadingComments")) {
|
|
20399
20421
|
newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
|
|
20400
20422
|
}
|
|
20401
|
-
if (
|
|
20423
|
+
if (hasOwn(node, "innerComments")) {
|
|
20402
20424
|
newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
|
|
20403
20425
|
}
|
|
20404
|
-
if (
|
|
20426
|
+
if (hasOwn(node, "trailingComments")) {
|
|
20405
20427
|
newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
|
|
20406
20428
|
}
|
|
20407
|
-
if (
|
|
20429
|
+
if (hasOwn(node, "extra")) {
|
|
20408
20430
|
newNode.extra = Object.assign({}, node.extra);
|
|
20409
20431
|
}
|
|
20410
20432
|
return newNode;
|
|
@@ -20821,8 +20843,8 @@ function isPlainObject(value1) {
|
|
|
20821
20843
|
if (typeof value1 !== "object" || value1 === null || Object.prototype.toString.call(value1) !== "[object Object]") {
|
|
20822
20844
|
return false;
|
|
20823
20845
|
}
|
|
20824
|
-
var
|
|
20825
|
-
return
|
|
20846
|
+
var proto = Object.getPrototypeOf(value1);
|
|
20847
|
+
return proto === null || Object.getPrototypeOf(proto) === null;
|
|
20826
20848
|
}
|
|
20827
20849
|
function valueToNode(value1) {
|
|
20828
20850
|
if (value1 === void 0) {
|
|
@@ -21857,7 +21879,7 @@ function toParseErrorConstructor(_ref) {
|
|
|
21857
21879
|
missingPlugin: details.missingPlugin
|
|
21858
21880
|
});
|
|
21859
21881
|
}
|
|
21860
|
-
defineHidden(error, "clone", function
|
|
21882
|
+
defineHidden(error, "clone", function clone2() {
|
|
21861
21883
|
var overrides = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
21862
21884
|
var _overrides_loc;
|
|
21863
21885
|
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 +30850,7 @@ var TypeScriptScopeHandler = /*#__PURE__*/ function(ScopeHandler) {
|
|
|
30828
30850
|
return TypeScriptScopeHandler;
|
|
30829
30851
|
}(ScopeHandler);
|
|
30830
30852
|
var getOwn$1 = function(object, key) {
|
|
30831
|
-
return Object.
|
|
30853
|
+
return Object.hasOwn(object, key) && object[key];
|
|
30832
30854
|
};
|
|
30833
30855
|
var unwrapParenthesizedExpression = function(node) {
|
|
30834
30856
|
return node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node;
|
|
@@ -31314,7 +31336,7 @@ var LValParser = /*#__PURE__*/ function(NodeUtils) {
|
|
|
31314
31336
|
return LValParser;
|
|
31315
31337
|
}(NodeUtils);
|
|
31316
31338
|
var getOwn = function(object, key) {
|
|
31317
|
-
return Object.
|
|
31339
|
+
return Object.hasOwn(object, key) && object[key];
|
|
31318
31340
|
};
|
|
31319
31341
|
function nonNull(x) {
|
|
31320
31342
|
if (x == null) {
|
|
@@ -31617,7 +31639,7 @@ var typescript = function(superClass) {
|
|
|
31617
31639
|
modified[modifier] = true;
|
|
31618
31640
|
enforceOrder(startLoc, modifier, "in", "out");
|
|
31619
31641
|
} else {
|
|
31620
|
-
if (Object.
|
|
31642
|
+
if (Object.hasOwn(modified, modifier)) {
|
|
31621
31643
|
this.raise(TSErrors.DuplicateModifier, startLoc, {
|
|
31622
31644
|
modifier: modifier
|
|
31623
31645
|
});
|
|
@@ -31733,6 +31755,16 @@ var typescript = function(superClass) {
|
|
|
31733
31755
|
this.raise(TSErrors.UnsupportedImportTypeArgument, this.state.startLoc);
|
|
31734
31756
|
}
|
|
31735
31757
|
node.argument = _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseExprAtom", this).call(this);
|
|
31758
|
+
if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) {
|
|
31759
|
+
node.options = null;
|
|
31760
|
+
}
|
|
31761
|
+
if (this.eat(12)) {
|
|
31762
|
+
this.expectImportAttributesPlugin();
|
|
31763
|
+
if (!this.match(11)) {
|
|
31764
|
+
node.options = _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseMaybeAssignAllowIn", this).call(this);
|
|
31765
|
+
this.eat(12);
|
|
31766
|
+
}
|
|
31767
|
+
}
|
|
31736
31768
|
this.expect(11);
|
|
31737
31769
|
if (this.eat(16)) {
|
|
31738
31770
|
node.qualifier = this.tsParseEntityName();
|
|
@@ -38215,9 +38247,9 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38215
38247
|
this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
38216
38248
|
kind: "destructuring"
|
|
38217
38249
|
});
|
|
38218
|
-
} else if (kind === "const" && !(this.match(58) || this.isContextual(102))) {
|
|
38250
|
+
} else if ((kind === "const" || kind === "using" || kind === "await using") && !(this.match(58) || this.isContextual(102))) {
|
|
38219
38251
|
this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
38220
|
-
kind:
|
|
38252
|
+
kind: kind
|
|
38221
38253
|
});
|
|
38222
38254
|
}
|
|
38223
38255
|
}
|
|
@@ -39663,790 +39695,13 @@ function getParserClass(pluginsFromOptions) {
|
|
|
39663
39695
|
}
|
|
39664
39696
|
// node_modules/@babel/highlight/lib/index.js
|
|
39665
39697
|
var import_js_tokens = __toESM(require_js_tokens(), 1);
|
|
39666
|
-
|
|
39667
|
-
var
|
|
39668
|
-
var
|
|
39669
|
-
|
|
39670
|
-
|
|
39671
|
-
return "\x1b[".concat(code2 + offset, "m");
|
|
39672
|
-
};
|
|
39673
|
-
};
|
|
39674
|
-
var wrapAnsi256 = function() {
|
|
39675
|
-
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
39676
|
-
return function(code2) {
|
|
39677
|
-
return "\x1b[".concat(38 + offset, ";5;").concat(code2, "m");
|
|
39698
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
39699
|
+
var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, import_picocolors.createColors)(false) : import_picocolors.default;
|
|
39700
|
+
var compose = function(f, g) {
|
|
39701
|
+
return function(v) {
|
|
39702
|
+
return f(g(v));
|
|
39678
39703
|
};
|
|
39679
39704
|
};
|
|
39680
|
-
var wrapAnsi16m = function() {
|
|
39681
|
-
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
39682
|
-
return function(red, green, blue) {
|
|
39683
|
-
return "\x1b[".concat(38 + offset, ";2;").concat(red, ";").concat(green, ";").concat(blue, "m");
|
|
39684
|
-
};
|
|
39685
|
-
};
|
|
39686
|
-
var styles = {
|
|
39687
|
-
modifier: {
|
|
39688
|
-
reset: [
|
|
39689
|
-
0,
|
|
39690
|
-
0
|
|
39691
|
-
],
|
|
39692
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
39693
|
-
bold: [
|
|
39694
|
-
1,
|
|
39695
|
-
22
|
|
39696
|
-
],
|
|
39697
|
-
dim: [
|
|
39698
|
-
2,
|
|
39699
|
-
22
|
|
39700
|
-
],
|
|
39701
|
-
italic: [
|
|
39702
|
-
3,
|
|
39703
|
-
23
|
|
39704
|
-
],
|
|
39705
|
-
underline: [
|
|
39706
|
-
4,
|
|
39707
|
-
24
|
|
39708
|
-
],
|
|
39709
|
-
overline: [
|
|
39710
|
-
53,
|
|
39711
|
-
55
|
|
39712
|
-
],
|
|
39713
|
-
inverse: [
|
|
39714
|
-
7,
|
|
39715
|
-
27
|
|
39716
|
-
],
|
|
39717
|
-
hidden: [
|
|
39718
|
-
8,
|
|
39719
|
-
28
|
|
39720
|
-
],
|
|
39721
|
-
strikethrough: [
|
|
39722
|
-
9,
|
|
39723
|
-
29
|
|
39724
|
-
]
|
|
39725
|
-
},
|
|
39726
|
-
color: {
|
|
39727
|
-
black: [
|
|
39728
|
-
30,
|
|
39729
|
-
39
|
|
39730
|
-
],
|
|
39731
|
-
red: [
|
|
39732
|
-
31,
|
|
39733
|
-
39
|
|
39734
|
-
],
|
|
39735
|
-
green: [
|
|
39736
|
-
32,
|
|
39737
|
-
39
|
|
39738
|
-
],
|
|
39739
|
-
yellow: [
|
|
39740
|
-
33,
|
|
39741
|
-
39
|
|
39742
|
-
],
|
|
39743
|
-
blue: [
|
|
39744
|
-
34,
|
|
39745
|
-
39
|
|
39746
|
-
],
|
|
39747
|
-
magenta: [
|
|
39748
|
-
35,
|
|
39749
|
-
39
|
|
39750
|
-
],
|
|
39751
|
-
cyan: [
|
|
39752
|
-
36,
|
|
39753
|
-
39
|
|
39754
|
-
],
|
|
39755
|
-
white: [
|
|
39756
|
-
37,
|
|
39757
|
-
39
|
|
39758
|
-
],
|
|
39759
|
-
// Bright color
|
|
39760
|
-
blackBright: [
|
|
39761
|
-
90,
|
|
39762
|
-
39
|
|
39763
|
-
],
|
|
39764
|
-
gray: [
|
|
39765
|
-
90,
|
|
39766
|
-
39
|
|
39767
|
-
],
|
|
39768
|
-
// Alias of `blackBright`
|
|
39769
|
-
grey: [
|
|
39770
|
-
90,
|
|
39771
|
-
39
|
|
39772
|
-
],
|
|
39773
|
-
// Alias of `blackBright`
|
|
39774
|
-
redBright: [
|
|
39775
|
-
91,
|
|
39776
|
-
39
|
|
39777
|
-
],
|
|
39778
|
-
greenBright: [
|
|
39779
|
-
92,
|
|
39780
|
-
39
|
|
39781
|
-
],
|
|
39782
|
-
yellowBright: [
|
|
39783
|
-
93,
|
|
39784
|
-
39
|
|
39785
|
-
],
|
|
39786
|
-
blueBright: [
|
|
39787
|
-
94,
|
|
39788
|
-
39
|
|
39789
|
-
],
|
|
39790
|
-
magentaBright: [
|
|
39791
|
-
95,
|
|
39792
|
-
39
|
|
39793
|
-
],
|
|
39794
|
-
cyanBright: [
|
|
39795
|
-
96,
|
|
39796
|
-
39
|
|
39797
|
-
],
|
|
39798
|
-
whiteBright: [
|
|
39799
|
-
97,
|
|
39800
|
-
39
|
|
39801
|
-
]
|
|
39802
|
-
},
|
|
39803
|
-
bgColor: {
|
|
39804
|
-
bgBlack: [
|
|
39805
|
-
40,
|
|
39806
|
-
49
|
|
39807
|
-
],
|
|
39808
|
-
bgRed: [
|
|
39809
|
-
41,
|
|
39810
|
-
49
|
|
39811
|
-
],
|
|
39812
|
-
bgGreen: [
|
|
39813
|
-
42,
|
|
39814
|
-
49
|
|
39815
|
-
],
|
|
39816
|
-
bgYellow: [
|
|
39817
|
-
43,
|
|
39818
|
-
49
|
|
39819
|
-
],
|
|
39820
|
-
bgBlue: [
|
|
39821
|
-
44,
|
|
39822
|
-
49
|
|
39823
|
-
],
|
|
39824
|
-
bgMagenta: [
|
|
39825
|
-
45,
|
|
39826
|
-
49
|
|
39827
|
-
],
|
|
39828
|
-
bgCyan: [
|
|
39829
|
-
46,
|
|
39830
|
-
49
|
|
39831
|
-
],
|
|
39832
|
-
bgWhite: [
|
|
39833
|
-
47,
|
|
39834
|
-
49
|
|
39835
|
-
],
|
|
39836
|
-
// Bright color
|
|
39837
|
-
bgBlackBright: [
|
|
39838
|
-
100,
|
|
39839
|
-
49
|
|
39840
|
-
],
|
|
39841
|
-
bgGray: [
|
|
39842
|
-
100,
|
|
39843
|
-
49
|
|
39844
|
-
],
|
|
39845
|
-
// Alias of `bgBlackBright`
|
|
39846
|
-
bgGrey: [
|
|
39847
|
-
100,
|
|
39848
|
-
49
|
|
39849
|
-
],
|
|
39850
|
-
// Alias of `bgBlackBright`
|
|
39851
|
-
bgRedBright: [
|
|
39852
|
-
101,
|
|
39853
|
-
49
|
|
39854
|
-
],
|
|
39855
|
-
bgGreenBright: [
|
|
39856
|
-
102,
|
|
39857
|
-
49
|
|
39858
|
-
],
|
|
39859
|
-
bgYellowBright: [
|
|
39860
|
-
103,
|
|
39861
|
-
49
|
|
39862
|
-
],
|
|
39863
|
-
bgBlueBright: [
|
|
39864
|
-
104,
|
|
39865
|
-
49
|
|
39866
|
-
],
|
|
39867
|
-
bgMagentaBright: [
|
|
39868
|
-
105,
|
|
39869
|
-
49
|
|
39870
|
-
],
|
|
39871
|
-
bgCyanBright: [
|
|
39872
|
-
106,
|
|
39873
|
-
49
|
|
39874
|
-
],
|
|
39875
|
-
bgWhiteBright: [
|
|
39876
|
-
107,
|
|
39877
|
-
49
|
|
39878
|
-
]
|
|
39879
|
-
}
|
|
39880
|
-
};
|
|
39881
|
-
var modifierNames = Object.keys(styles.modifier);
|
|
39882
|
-
var foregroundColorNames = Object.keys(styles.color);
|
|
39883
|
-
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
39884
|
-
var colorNames = _to_consumable_array(foregroundColorNames).concat(_to_consumable_array(backgroundColorNames));
|
|
39885
|
-
function assembleStyles() {
|
|
39886
|
-
var _styles;
|
|
39887
|
-
var codes = /* @__PURE__ */ new Map();
|
|
39888
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
39889
|
-
try {
|
|
39890
|
-
for(var _iterator = Object.entries(styles)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
39891
|
-
var _step_value = _sliced_to_array(_step.value, 2), groupName = _step_value[0], group = _step_value[1];
|
|
39892
|
-
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
39893
|
-
try {
|
|
39894
|
-
for(var _iterator1 = Object.entries(group)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
39895
|
-
var _step_value1 = _sliced_to_array(_step1.value, 2), styleName = _step_value1[0], style = _step_value1[1];
|
|
39896
|
-
styles[styleName] = {
|
|
39897
|
-
open: "\x1b[".concat(style[0], "m"),
|
|
39898
|
-
close: "\x1b[".concat(style[1], "m")
|
|
39899
|
-
};
|
|
39900
|
-
group[styleName] = styles[styleName];
|
|
39901
|
-
codes.set(style[0], style[1]);
|
|
39902
|
-
}
|
|
39903
|
-
} catch (err) {
|
|
39904
|
-
_didIteratorError1 = true;
|
|
39905
|
-
_iteratorError1 = err;
|
|
39906
|
-
} finally{
|
|
39907
|
-
try {
|
|
39908
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
39909
|
-
_iterator1.return();
|
|
39910
|
-
}
|
|
39911
|
-
} finally{
|
|
39912
|
-
if (_didIteratorError1) {
|
|
39913
|
-
throw _iteratorError1;
|
|
39914
|
-
}
|
|
39915
|
-
}
|
|
39916
|
-
}
|
|
39917
|
-
Object.defineProperty(styles, groupName, {
|
|
39918
|
-
value: group,
|
|
39919
|
-
enumerable: false
|
|
39920
|
-
});
|
|
39921
|
-
}
|
|
39922
|
-
} catch (err) {
|
|
39923
|
-
_didIteratorError = true;
|
|
39924
|
-
_iteratorError = err;
|
|
39925
|
-
} finally{
|
|
39926
|
-
try {
|
|
39927
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
39928
|
-
_iterator.return();
|
|
39929
|
-
}
|
|
39930
|
-
} finally{
|
|
39931
|
-
if (_didIteratorError) {
|
|
39932
|
-
throw _iteratorError;
|
|
39933
|
-
}
|
|
39934
|
-
}
|
|
39935
|
-
}
|
|
39936
|
-
Object.defineProperty(styles, "codes", {
|
|
39937
|
-
value: codes,
|
|
39938
|
-
enumerable: false
|
|
39939
|
-
});
|
|
39940
|
-
styles.color.close = "\x1b[39m";
|
|
39941
|
-
styles.bgColor.close = "\x1b[49m";
|
|
39942
|
-
styles.color.ansi = wrapAnsi16();
|
|
39943
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
39944
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
39945
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
39946
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
39947
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
39948
|
-
Object.defineProperties(styles, {
|
|
39949
|
-
rgbToAnsi256: {
|
|
39950
|
-
value: function value1(red, green, blue) {
|
|
39951
|
-
if (red === green && green === blue) {
|
|
39952
|
-
if (red < 8) {
|
|
39953
|
-
return 16;
|
|
39954
|
-
}
|
|
39955
|
-
if (red > 248) {
|
|
39956
|
-
return 231;
|
|
39957
|
-
}
|
|
39958
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
39959
|
-
}
|
|
39960
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
39961
|
-
},
|
|
39962
|
-
enumerable: false
|
|
39963
|
-
},
|
|
39964
|
-
hexToRgb: {
|
|
39965
|
-
value: function value1(hex) {
|
|
39966
|
-
var matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
39967
|
-
if (!matches) {
|
|
39968
|
-
return [
|
|
39969
|
-
0,
|
|
39970
|
-
0,
|
|
39971
|
-
0
|
|
39972
|
-
];
|
|
39973
|
-
}
|
|
39974
|
-
var _matches = _sliced_to_array(matches, 1), colorString = _matches[0];
|
|
39975
|
-
if (colorString.length === 3) {
|
|
39976
|
-
colorString = _to_consumable_array(colorString).map(function(character) {
|
|
39977
|
-
return character + character;
|
|
39978
|
-
}).join("");
|
|
39979
|
-
}
|
|
39980
|
-
var integer = Number.parseInt(colorString, 16);
|
|
39981
|
-
return [
|
|
39982
|
-
/* eslint-disable no-bitwise */ integer >> 16 & 255,
|
|
39983
|
-
integer >> 8 & 255,
|
|
39984
|
-
integer & 255
|
|
39985
|
-
];
|
|
39986
|
-
},
|
|
39987
|
-
enumerable: false
|
|
39988
|
-
},
|
|
39989
|
-
hexToAnsi256: {
|
|
39990
|
-
value: function(hex) {
|
|
39991
|
-
return (_styles = styles).rgbToAnsi256.apply(_styles, _to_consumable_array(styles.hexToRgb(hex)));
|
|
39992
|
-
},
|
|
39993
|
-
enumerable: false
|
|
39994
|
-
},
|
|
39995
|
-
ansi256ToAnsi: {
|
|
39996
|
-
value: function value1(code2) {
|
|
39997
|
-
if (code2 < 8) {
|
|
39998
|
-
return 30 + code2;
|
|
39999
|
-
}
|
|
40000
|
-
if (code2 < 16) {
|
|
40001
|
-
return 90 + (code2 - 8);
|
|
40002
|
-
}
|
|
40003
|
-
var red;
|
|
40004
|
-
var green;
|
|
40005
|
-
var blue;
|
|
40006
|
-
if (code2 >= 232) {
|
|
40007
|
-
red = ((code2 - 232) * 10 + 8) / 255;
|
|
40008
|
-
green = red;
|
|
40009
|
-
blue = red;
|
|
40010
|
-
} else {
|
|
40011
|
-
code2 -= 16;
|
|
40012
|
-
var remainder = code2 % 36;
|
|
40013
|
-
red = Math.floor(code2 / 36) / 5;
|
|
40014
|
-
green = Math.floor(remainder / 6) / 5;
|
|
40015
|
-
blue = remainder % 6 / 5;
|
|
40016
|
-
}
|
|
40017
|
-
var value1 = Math.max(red, green, blue) * 2;
|
|
40018
|
-
if (value1 === 0) {
|
|
40019
|
-
return 30;
|
|
40020
|
-
}
|
|
40021
|
-
var result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
40022
|
-
if (value1 === 2) {
|
|
40023
|
-
result += 60;
|
|
40024
|
-
}
|
|
40025
|
-
return result;
|
|
40026
|
-
},
|
|
40027
|
-
enumerable: false
|
|
40028
|
-
},
|
|
40029
|
-
rgbToAnsi: {
|
|
40030
|
-
value: function(red, green, blue) {
|
|
40031
|
-
return styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue));
|
|
40032
|
-
},
|
|
40033
|
-
enumerable: false
|
|
40034
|
-
},
|
|
40035
|
-
hexToAnsi: {
|
|
40036
|
-
value: function(hex) {
|
|
40037
|
-
return styles.ansi256ToAnsi(styles.hexToAnsi256(hex));
|
|
40038
|
-
},
|
|
40039
|
-
enumerable: false
|
|
40040
|
-
}
|
|
40041
|
-
});
|
|
40042
|
-
return styles;
|
|
40043
|
-
}
|
|
40044
|
-
var ansiStyles = assembleStyles();
|
|
40045
|
-
var ansi_styles_default = ansiStyles;
|
|
40046
|
-
// node_modules/@babel/highlight/node_modules/chalk/source/vendor/supports-color/index.js
|
|
40047
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
40048
|
-
var import_node_os = __toESM(require("os"), 1);
|
|
40049
|
-
var import_node_tty = __toESM(require("tty"), 1);
|
|
40050
|
-
function hasFlag(flag) {
|
|
40051
|
-
var argv = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv;
|
|
40052
|
-
var prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
40053
|
-
var position = argv.indexOf(prefix2 + flag);
|
|
40054
|
-
var terminatorPosition = argv.indexOf("--");
|
|
40055
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
40056
|
-
}
|
|
40057
|
-
var env = import_node_process.default.env;
|
|
40058
|
-
var flagForceColor;
|
|
40059
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
40060
|
-
flagForceColor = 0;
|
|
40061
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
40062
|
-
flagForceColor = 1;
|
|
40063
|
-
}
|
|
40064
|
-
function envForceColor() {
|
|
40065
|
-
if ("FORCE_COLOR" in env) {
|
|
40066
|
-
if (env.FORCE_COLOR === "true") {
|
|
40067
|
-
return 1;
|
|
40068
|
-
}
|
|
40069
|
-
if (env.FORCE_COLOR === "false") {
|
|
40070
|
-
return 0;
|
|
40071
|
-
}
|
|
40072
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
40073
|
-
}
|
|
40074
|
-
}
|
|
40075
|
-
function translateLevel(level) {
|
|
40076
|
-
if (level === 0) {
|
|
40077
|
-
return false;
|
|
40078
|
-
}
|
|
40079
|
-
return {
|
|
40080
|
-
level: level,
|
|
40081
|
-
hasBasic: true,
|
|
40082
|
-
has256: level >= 2,
|
|
40083
|
-
has16m: level >= 3
|
|
40084
|
-
};
|
|
40085
|
-
}
|
|
40086
|
-
function _supportsColor(haveStream) {
|
|
40087
|
-
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;
|
|
40088
|
-
var noFlagForceColor = envForceColor();
|
|
40089
|
-
if (noFlagForceColor !== void 0) {
|
|
40090
|
-
flagForceColor = noFlagForceColor;
|
|
40091
|
-
}
|
|
40092
|
-
var forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
40093
|
-
if (forceColor === 0) {
|
|
40094
|
-
return 0;
|
|
40095
|
-
}
|
|
40096
|
-
if (sniffFlags) {
|
|
40097
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
40098
|
-
return 3;
|
|
40099
|
-
}
|
|
40100
|
-
if (hasFlag("color=256")) {
|
|
40101
|
-
return 2;
|
|
40102
|
-
}
|
|
40103
|
-
}
|
|
40104
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
40105
|
-
return 1;
|
|
40106
|
-
}
|
|
40107
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
40108
|
-
return 0;
|
|
40109
|
-
}
|
|
40110
|
-
var min = forceColor || 0;
|
|
40111
|
-
if (env.TERM === "dumb") {
|
|
40112
|
-
return min;
|
|
40113
|
-
}
|
|
40114
|
-
if (import_node_process.default.platform === "win32") {
|
|
40115
|
-
var osRelease = import_node_os.default.release().split(".");
|
|
40116
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
40117
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
40118
|
-
}
|
|
40119
|
-
return 1;
|
|
40120
|
-
}
|
|
40121
|
-
if ("CI" in env) {
|
|
40122
|
-
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
40123
|
-
return 3;
|
|
40124
|
-
}
|
|
40125
|
-
if ([
|
|
40126
|
-
"TRAVIS",
|
|
40127
|
-
"CIRCLECI",
|
|
40128
|
-
"APPVEYOR",
|
|
40129
|
-
"GITLAB_CI",
|
|
40130
|
-
"BUILDKITE",
|
|
40131
|
-
"DRONE"
|
|
40132
|
-
].some(function(sign) {
|
|
40133
|
-
return sign in env;
|
|
40134
|
-
}) || env.CI_NAME === "codeship") {
|
|
40135
|
-
return 1;
|
|
40136
|
-
}
|
|
40137
|
-
return min;
|
|
40138
|
-
}
|
|
40139
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
40140
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
40141
|
-
}
|
|
40142
|
-
if (env.COLORTERM === "truecolor") {
|
|
40143
|
-
return 3;
|
|
40144
|
-
}
|
|
40145
|
-
if (env.TERM === "xterm-kitty") {
|
|
40146
|
-
return 3;
|
|
40147
|
-
}
|
|
40148
|
-
if ("TERM_PROGRAM" in env) {
|
|
40149
|
-
var version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
40150
|
-
switch(env.TERM_PROGRAM){
|
|
40151
|
-
case "iTerm.app":
|
|
40152
|
-
{
|
|
40153
|
-
return version >= 3 ? 3 : 2;
|
|
40154
|
-
}
|
|
40155
|
-
case "Apple_Terminal":
|
|
40156
|
-
{
|
|
40157
|
-
return 2;
|
|
40158
|
-
}
|
|
40159
|
-
}
|
|
40160
|
-
}
|
|
40161
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
40162
|
-
return 2;
|
|
40163
|
-
}
|
|
40164
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
40165
|
-
return 1;
|
|
40166
|
-
}
|
|
40167
|
-
if ("COLORTERM" in env) {
|
|
40168
|
-
return 1;
|
|
40169
|
-
}
|
|
40170
|
-
return min;
|
|
40171
|
-
}
|
|
40172
|
-
function createSupportsColor(stream) {
|
|
40173
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
40174
|
-
var level = _supportsColor(stream, _object_spread({
|
|
40175
|
-
streamIsTTY: stream && stream.isTTY
|
|
40176
|
-
}, options));
|
|
40177
|
-
return translateLevel(level);
|
|
40178
|
-
}
|
|
40179
|
-
var supportsColor = {
|
|
40180
|
-
stdout: createSupportsColor({
|
|
40181
|
-
isTTY: import_node_tty.default.isatty(1)
|
|
40182
|
-
}),
|
|
40183
|
-
stderr: createSupportsColor({
|
|
40184
|
-
isTTY: import_node_tty.default.isatty(2)
|
|
40185
|
-
})
|
|
40186
|
-
};
|
|
40187
|
-
var supports_color_default = supportsColor;
|
|
40188
|
-
// node_modules/@babel/highlight/node_modules/chalk/source/utilities.js
|
|
40189
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
40190
|
-
var index3 = string.indexOf(substring);
|
|
40191
|
-
if (index3 === -1) {
|
|
40192
|
-
return string;
|
|
40193
|
-
}
|
|
40194
|
-
var substringLength = substring.length;
|
|
40195
|
-
var endIndex = 0;
|
|
40196
|
-
var returnValue = "";
|
|
40197
|
-
do {
|
|
40198
|
-
returnValue += string.slice(endIndex, index3) + substring + replacer;
|
|
40199
|
-
endIndex = index3 + substringLength;
|
|
40200
|
-
index3 = string.indexOf(substring, endIndex);
|
|
40201
|
-
}while (index3 !== -1);
|
|
40202
|
-
returnValue += string.slice(endIndex);
|
|
40203
|
-
return returnValue;
|
|
40204
|
-
}
|
|
40205
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix2, index3) {
|
|
40206
|
-
var endIndex = 0;
|
|
40207
|
-
var returnValue = "";
|
|
40208
|
-
do {
|
|
40209
|
-
var gotCR = string[index3 - 1] === "\r";
|
|
40210
|
-
returnValue += string.slice(endIndex, gotCR ? index3 - 1 : index3) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix2;
|
|
40211
|
-
endIndex = index3 + 1;
|
|
40212
|
-
index3 = string.indexOf("\n", endIndex);
|
|
40213
|
-
}while (index3 !== -1);
|
|
40214
|
-
returnValue += string.slice(endIndex);
|
|
40215
|
-
return returnValue;
|
|
40216
|
-
}
|
|
40217
|
-
// node_modules/@babel/highlight/node_modules/chalk/source/index.js
|
|
40218
|
-
var stdoutColor = supports_color_default.stdout, stderrColor = supports_color_default.stderr;
|
|
40219
|
-
var GENERATOR = Symbol("GENERATOR");
|
|
40220
|
-
var STYLER = Symbol("STYLER");
|
|
40221
|
-
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
40222
|
-
var levelMapping = [
|
|
40223
|
-
"ansi",
|
|
40224
|
-
"ansi",
|
|
40225
|
-
"ansi256",
|
|
40226
|
-
"ansi16m"
|
|
40227
|
-
];
|
|
40228
|
-
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
40229
|
-
var applyOptions = function(object) {
|
|
40230
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
40231
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
40232
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
40233
|
-
}
|
|
40234
|
-
var colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
40235
|
-
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
40236
|
-
};
|
|
40237
|
-
var Chalk = function Chalk(options) {
|
|
40238
|
-
"use strict";
|
|
40239
|
-
_class_call_check(this, Chalk);
|
|
40240
|
-
return chalkFactory(options);
|
|
40241
|
-
};
|
|
40242
|
-
var chalkFactory = function(options) {
|
|
40243
|
-
var chalk3 = function() {
|
|
40244
|
-
for(var _len = arguments.length, strings = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40245
|
-
strings[_key] = arguments[_key];
|
|
40246
|
-
}
|
|
40247
|
-
return strings.join(" ");
|
|
40248
|
-
};
|
|
40249
|
-
applyOptions(chalk3, options);
|
|
40250
|
-
Object.setPrototypeOf(chalk3, createChalk.prototype);
|
|
40251
|
-
return chalk3;
|
|
40252
|
-
};
|
|
40253
|
-
function createChalk(options) {
|
|
40254
|
-
return chalkFactory(options);
|
|
40255
|
-
}
|
|
40256
|
-
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
40257
|
-
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
40258
|
-
try {
|
|
40259
|
-
var _loop = function() {
|
|
40260
|
-
var _step_value = _sliced_to_array(_step2.value, 2), styleName = _step_value[0], style = _step_value[1];
|
|
40261
|
-
styles2[styleName] = {
|
|
40262
|
-
get: function get() {
|
|
40263
|
-
var builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
40264
|
-
Object.defineProperty(this, styleName, {
|
|
40265
|
-
value: builder
|
|
40266
|
-
});
|
|
40267
|
-
return builder;
|
|
40268
|
-
}
|
|
40269
|
-
};
|
|
40270
|
-
};
|
|
40271
|
-
for(var _iterator2 = Object.entries(ansi_styles_default)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
|
|
40272
|
-
} catch (err) {
|
|
40273
|
-
_didIteratorError2 = true;
|
|
40274
|
-
_iteratorError2 = err;
|
|
40275
|
-
} finally{
|
|
40276
|
-
try {
|
|
40277
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
40278
|
-
_iterator2.return();
|
|
40279
|
-
}
|
|
40280
|
-
} finally{
|
|
40281
|
-
if (_didIteratorError2) {
|
|
40282
|
-
throw _iteratorError2;
|
|
40283
|
-
}
|
|
40284
|
-
}
|
|
40285
|
-
}
|
|
40286
|
-
styles2.visible = {
|
|
40287
|
-
get: function get() {
|
|
40288
|
-
var builder = createBuilder(this, this[STYLER], true);
|
|
40289
|
-
Object.defineProperty(this, "visible", {
|
|
40290
|
-
value: builder
|
|
40291
|
-
});
|
|
40292
|
-
return builder;
|
|
40293
|
-
}
|
|
40294
|
-
};
|
|
40295
|
-
var getModelAnsi = function(model, level, type) {
|
|
40296
|
-
for(var _len = arguments.length, arguments_ = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
|
|
40297
|
-
arguments_[_key - 3] = arguments[_key];
|
|
40298
|
-
}
|
|
40299
|
-
var _ansi_styles_default_type;
|
|
40300
|
-
if (model === "rgb") {
|
|
40301
|
-
var _ansi_styles_default;
|
|
40302
|
-
if (level === "ansi16m") {
|
|
40303
|
-
var _ansi_styles_default_type1;
|
|
40304
|
-
return (_ansi_styles_default_type1 = ansi_styles_default[type]).ansi16m.apply(_ansi_styles_default_type1, _to_consumable_array(arguments_));
|
|
40305
|
-
}
|
|
40306
|
-
if (level === "ansi256") {
|
|
40307
|
-
var _ansi_styles_default1;
|
|
40308
|
-
return ansi_styles_default[type].ansi256((_ansi_styles_default1 = ansi_styles_default).rgbToAnsi256.apply(_ansi_styles_default1, _to_consumable_array(arguments_)));
|
|
40309
|
-
}
|
|
40310
|
-
return ansi_styles_default[type].ansi((_ansi_styles_default = ansi_styles_default).rgbToAnsi.apply(_ansi_styles_default, _to_consumable_array(arguments_)));
|
|
40311
|
-
}
|
|
40312
|
-
if (model === "hex") {
|
|
40313
|
-
var _ansi_styles_default2;
|
|
40314
|
-
return getModelAnsi.apply(void 0, [
|
|
40315
|
-
"rgb",
|
|
40316
|
-
level,
|
|
40317
|
-
type
|
|
40318
|
-
].concat(_to_consumable_array((_ansi_styles_default2 = ansi_styles_default).hexToRgb.apply(_ansi_styles_default2, _to_consumable_array(arguments_)))));
|
|
40319
|
-
}
|
|
40320
|
-
return (_ansi_styles_default_type = ansi_styles_default[type])[model].apply(_ansi_styles_default_type, _to_consumable_array(arguments_));
|
|
40321
|
-
};
|
|
40322
|
-
var usedModels = [
|
|
40323
|
-
"rgb",
|
|
40324
|
-
"hex",
|
|
40325
|
-
"ansi256"
|
|
40326
|
-
];
|
|
40327
|
-
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
40328
|
-
try {
|
|
40329
|
-
var _loop1 = function() {
|
|
40330
|
-
var model = _step3.value;
|
|
40331
|
-
styles2[model] = {
|
|
40332
|
-
get: function get() {
|
|
40333
|
-
var level = this.level;
|
|
40334
|
-
return function() {
|
|
40335
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40336
|
-
arguments_[_key] = arguments[_key];
|
|
40337
|
-
}
|
|
40338
|
-
var styler = createStyler(getModelAnsi.apply(void 0, [
|
|
40339
|
-
model,
|
|
40340
|
-
levelMapping[level],
|
|
40341
|
-
"color"
|
|
40342
|
-
].concat(_to_consumable_array(arguments_))), ansi_styles_default.color.close, this[STYLER]);
|
|
40343
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
40344
|
-
};
|
|
40345
|
-
}
|
|
40346
|
-
};
|
|
40347
|
-
var bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
40348
|
-
styles2[bgModel] = {
|
|
40349
|
-
get: function get() {
|
|
40350
|
-
var level = this.level;
|
|
40351
|
-
return function() {
|
|
40352
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40353
|
-
arguments_[_key] = arguments[_key];
|
|
40354
|
-
}
|
|
40355
|
-
var styler = createStyler(getModelAnsi.apply(void 0, [
|
|
40356
|
-
model,
|
|
40357
|
-
levelMapping[level],
|
|
40358
|
-
"bgColor"
|
|
40359
|
-
].concat(_to_consumable_array(arguments_))), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
40360
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
40361
|
-
};
|
|
40362
|
-
}
|
|
40363
|
-
};
|
|
40364
|
-
};
|
|
40365
|
-
for(var _iterator3 = usedModels[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true)_loop1();
|
|
40366
|
-
} catch (err) {
|
|
40367
|
-
_didIteratorError3 = true;
|
|
40368
|
-
_iteratorError3 = err;
|
|
40369
|
-
} finally{
|
|
40370
|
-
try {
|
|
40371
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
|
|
40372
|
-
_iterator3.return();
|
|
40373
|
-
}
|
|
40374
|
-
} finally{
|
|
40375
|
-
if (_didIteratorError3) {
|
|
40376
|
-
throw _iteratorError3;
|
|
40377
|
-
}
|
|
40378
|
-
}
|
|
40379
|
-
}
|
|
40380
|
-
var proto = Object.defineProperties(function() {}, _object_spread_props(_object_spread({}, styles2), {
|
|
40381
|
-
level: {
|
|
40382
|
-
enumerable: true,
|
|
40383
|
-
get: function get() {
|
|
40384
|
-
return this[GENERATOR].level;
|
|
40385
|
-
},
|
|
40386
|
-
set: function set(level) {
|
|
40387
|
-
this[GENERATOR].level = level;
|
|
40388
|
-
}
|
|
40389
|
-
}
|
|
40390
|
-
}));
|
|
40391
|
-
var createStyler = function(open, close, parent) {
|
|
40392
|
-
var openAll;
|
|
40393
|
-
var closeAll;
|
|
40394
|
-
if (parent === void 0) {
|
|
40395
|
-
openAll = open;
|
|
40396
|
-
closeAll = close;
|
|
40397
|
-
} else {
|
|
40398
|
-
openAll = parent.openAll + open;
|
|
40399
|
-
closeAll = close + parent.closeAll;
|
|
40400
|
-
}
|
|
40401
|
-
return {
|
|
40402
|
-
open: open,
|
|
40403
|
-
close: close,
|
|
40404
|
-
openAll: openAll,
|
|
40405
|
-
closeAll: closeAll,
|
|
40406
|
-
parent: parent
|
|
40407
|
-
};
|
|
40408
|
-
};
|
|
40409
|
-
var createBuilder = function(self, _styler, _isEmpty) {
|
|
40410
|
-
var builder = function() {
|
|
40411
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40412
|
-
arguments_[_key] = arguments[_key];
|
|
40413
|
-
}
|
|
40414
|
-
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
40415
|
-
};
|
|
40416
|
-
Object.setPrototypeOf(builder, proto);
|
|
40417
|
-
builder[GENERATOR] = self;
|
|
40418
|
-
builder[STYLER] = _styler;
|
|
40419
|
-
builder[IS_EMPTY] = _isEmpty;
|
|
40420
|
-
return builder;
|
|
40421
|
-
};
|
|
40422
|
-
var applyStyle = function(self, string) {
|
|
40423
|
-
if (self.level <= 0 || !string) {
|
|
40424
|
-
return self[IS_EMPTY] ? "" : string;
|
|
40425
|
-
}
|
|
40426
|
-
var styler = self[STYLER];
|
|
40427
|
-
if (styler === void 0) {
|
|
40428
|
-
return string;
|
|
40429
|
-
}
|
|
40430
|
-
var openAll = styler.openAll, closeAll = styler.closeAll;
|
|
40431
|
-
if (string.includes("\x1b")) {
|
|
40432
|
-
while(styler !== void 0){
|
|
40433
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
40434
|
-
styler = styler.parent;
|
|
40435
|
-
}
|
|
40436
|
-
}
|
|
40437
|
-
var lfIndex = string.indexOf("\n");
|
|
40438
|
-
if (lfIndex !== -1) {
|
|
40439
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
40440
|
-
}
|
|
40441
|
-
return openAll + string + closeAll;
|
|
40442
|
-
};
|
|
40443
|
-
Object.defineProperties(createChalk.prototype, styles2);
|
|
40444
|
-
var chalk = createChalk();
|
|
40445
|
-
var chalkStderr = createChalk({
|
|
40446
|
-
level: stderrColor ? stderrColor.level : 0
|
|
40447
|
-
});
|
|
40448
|
-
var source_default = chalk;
|
|
40449
|
-
// node_modules/@babel/highlight/lib/index.js
|
|
40450
39705
|
var sometimesKeywords = /* @__PURE__ */ new Set([
|
|
40451
39706
|
"as",
|
|
40452
39707
|
"async",
|
|
@@ -40455,17 +39710,17 @@ var sometimesKeywords = /* @__PURE__ */ new Set([
|
|
|
40455
39710
|
"of",
|
|
40456
39711
|
"set"
|
|
40457
39712
|
]);
|
|
40458
|
-
function getDefs(
|
|
39713
|
+
function getDefs(colors3) {
|
|
40459
39714
|
return {
|
|
40460
|
-
keyword:
|
|
40461
|
-
capitalized:
|
|
40462
|
-
jsxIdentifier:
|
|
40463
|
-
punctuator:
|
|
40464
|
-
number:
|
|
40465
|
-
string:
|
|
40466
|
-
regex:
|
|
40467
|
-
comment:
|
|
40468
|
-
invalid:
|
|
39715
|
+
keyword: colors3.cyan,
|
|
39716
|
+
capitalized: colors3.yellow,
|
|
39717
|
+
jsxIdentifier: colors3.yellow,
|
|
39718
|
+
punctuator: colors3.yellow,
|
|
39719
|
+
number: colors3.magenta,
|
|
39720
|
+
string: colors3.green,
|
|
39721
|
+
regex: colors3.magenta,
|
|
39722
|
+
comment: colors3.gray,
|
|
39723
|
+
invalid: compose(compose(colors3.white, colors3.bgRed), colors3.bold)
|
|
40469
39724
|
};
|
|
40470
39725
|
}
|
|
40471
39726
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -40718,826 +39973,46 @@ var tokenize;
|
|
|
40718
39973
|
return highlighted;
|
|
40719
39974
|
}
|
|
40720
39975
|
function shouldHighlight(options) {
|
|
40721
|
-
return
|
|
39976
|
+
return colors.isColorSupported || options.forceColor;
|
|
40722
39977
|
}
|
|
40723
|
-
var
|
|
40724
|
-
function
|
|
39978
|
+
var pcWithForcedColor = void 0;
|
|
39979
|
+
function getColors(forceColor) {
|
|
40725
39980
|
if (forceColor) {
|
|
40726
|
-
|
|
40727
|
-
|
|
40728
|
-
});
|
|
40729
|
-
return chalkWithForcedColor;
|
|
39981
|
+
pcWithForcedColor !== null && pcWithForcedColor !== void 0 ? pcWithForcedColor : pcWithForcedColor = (0, import_picocolors.createColors)(true);
|
|
39982
|
+
return pcWithForcedColor;
|
|
40730
39983
|
}
|
|
40731
|
-
return
|
|
39984
|
+
return colors;
|
|
40732
39985
|
}
|
|
40733
39986
|
function highlight(code2) {
|
|
40734
39987
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
40735
39988
|
if (code2 !== "" && shouldHighlight(options)) {
|
|
40736
|
-
var defs = getDefs(
|
|
39989
|
+
var defs = getDefs(getColors(options.forceColor));
|
|
40737
39990
|
return highlightTokens(defs, code2);
|
|
40738
39991
|
} else {
|
|
40739
39992
|
return code2;
|
|
40740
39993
|
}
|
|
40741
39994
|
}
|
|
40742
|
-
// node_modules/@babel/code-frame/
|
|
40743
|
-
var
|
|
40744
|
-
var
|
|
40745
|
-
|
|
40746
|
-
return function(
|
|
40747
|
-
return
|
|
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(" "));
|
|
39995
|
+
// node_modules/@babel/code-frame/lib/index.js
|
|
39996
|
+
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
39997
|
+
var colors2 = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, import_picocolors2.createColors)(false) : import_picocolors2.default;
|
|
39998
|
+
var compose2 = function(f, g) {
|
|
39999
|
+
return function(v) {
|
|
40000
|
+
return f(g(v));
|
|
41491
40001
|
};
|
|
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
40002
|
};
|
|
41519
|
-
|
|
41520
|
-
|
|
41521
|
-
var chalkStderr2 = createChalk2({
|
|
41522
|
-
level: stderrColor2 ? stderrColor2.level : 0
|
|
41523
|
-
});
|
|
41524
|
-
var source_default2 = chalk2;
|
|
41525
|
-
// node_modules/@babel/code-frame/lib/index.js
|
|
41526
|
-
var chalkWithForcedColor2 = void 0;
|
|
41527
|
-
function getChalk2(forceColor) {
|
|
40003
|
+
var pcWithForcedColor2 = void 0;
|
|
40004
|
+
function getColors2(forceColor) {
|
|
41528
40005
|
if (forceColor) {
|
|
41529
|
-
|
|
41530
|
-
|
|
41531
|
-
});
|
|
41532
|
-
return chalkWithForcedColor2;
|
|
40006
|
+
pcWithForcedColor2 !== null && pcWithForcedColor2 !== void 0 ? pcWithForcedColor2 : pcWithForcedColor2 = (0, import_picocolors2.createColors)(true);
|
|
40007
|
+
return pcWithForcedColor2;
|
|
41533
40008
|
}
|
|
41534
|
-
return
|
|
40009
|
+
return colors2;
|
|
41535
40010
|
}
|
|
41536
|
-
function getDefs2(
|
|
40011
|
+
function getDefs2(colors3) {
|
|
41537
40012
|
return {
|
|
41538
|
-
gutter:
|
|
41539
|
-
marker:
|
|
41540
|
-
message:
|
|
40013
|
+
gutter: colors3.gray,
|
|
40014
|
+
marker: compose2(colors3.red, colors3.bold),
|
|
40015
|
+
message: compose2(colors3.red, colors3.bold)
|
|
41541
40016
|
};
|
|
41542
40017
|
}
|
|
41543
40018
|
var NEWLINE2 = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -41612,10 +40087,10 @@ function getMarkerLines(loc, source, opts) {
|
|
|
41612
40087
|
function codeFrameColumns(rawLines, loc) {
|
|
41613
40088
|
var opts = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
41614
40089
|
var highlighted = (opts.highlightCode || opts.forceColor) && shouldHighlight(opts);
|
|
41615
|
-
var
|
|
41616
|
-
var defs = getDefs2(
|
|
41617
|
-
var maybeHighlight = function(
|
|
41618
|
-
return highlighted ?
|
|
40090
|
+
var colors3 = getColors2(opts.forceColor);
|
|
40091
|
+
var defs = getDefs2(colors3);
|
|
40092
|
+
var maybeHighlight = function(fmt, string) {
|
|
40093
|
+
return highlighted ? fmt(string) : string;
|
|
41619
40094
|
};
|
|
41620
40095
|
var lines = rawLines.split(NEWLINE2);
|
|
41621
40096
|
var _getMarkerLines = getMarkerLines(loc, lines, opts), start = _getMarkerLines.start, end = _getMarkerLines.end, markerLines = _getMarkerLines.markerLines;
|
|
@@ -41658,7 +40133,7 @@ function codeFrameColumns(rawLines, loc) {
|
|
|
41658
40133
|
frame = "".concat(" ".repeat(numberMaxWidth + 1)).concat(opts.message, "\n").concat(frame);
|
|
41659
40134
|
}
|
|
41660
40135
|
if (highlighted) {
|
|
41661
|
-
return
|
|
40136
|
+
return colors3.reset(frame);
|
|
41662
40137
|
} else {
|
|
41663
40138
|
return frame;
|
|
41664
40139
|
}
|
|
@@ -41917,7 +40392,7 @@ function populatePlaceholders(metadata, replacements) {
|
|
|
41917
40392
|
var ast = cloneNode2(metadata.ast);
|
|
41918
40393
|
if (replacements) {
|
|
41919
40394
|
metadata.placeholders.forEach(function(placeholder2) {
|
|
41920
|
-
if (!Object.
|
|
40395
|
+
if (!Object.hasOwn(replacements, placeholder2.name)) {
|
|
41921
40396
|
var placeholderName = placeholder2.name;
|
|
41922
40397
|
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
40398
|
}
|
|
@@ -42034,7 +40509,7 @@ function literalTemplate(formatter, tpl, opts) {
|
|
|
42034
40509
|
var replacements = normalizeReplacements(arg2);
|
|
42035
40510
|
if (replacements) {
|
|
42036
40511
|
Object.keys(replacements).forEach(function(key) {
|
|
42037
|
-
if (Object.
|
|
40512
|
+
if (Object.hasOwn(defaultReplacements, key)) {
|
|
42038
40513
|
throw new Error("Unexpected replacement overlap.");
|
|
42039
40514
|
}
|
|
42040
40515
|
});
|
|
@@ -42153,9 +40628,6 @@ var index = Object.assign(smart.bind(void 0), {
|
|
|
42153
40628
|
ast: smart.ast
|
|
42154
40629
|
});
|
|
42155
40630
|
// node_modules/@jridgewell/set-array/dist/set-array.mjs
|
|
42156
|
-
var get;
|
|
42157
|
-
var put;
|
|
42158
|
-
var pop;
|
|
42159
40631
|
var SetArray = function SetArray() {
|
|
42160
40632
|
"use strict";
|
|
42161
40633
|
_class_call_check(this, SetArray);
|
|
@@ -42164,23 +40636,19 @@ var SetArray = function SetArray() {
|
|
|
42164
40636
|
};
|
|
42165
40637
|
this.array = [];
|
|
42166
40638
|
};
|
|
42167
|
-
|
|
42168
|
-
|
|
42169
|
-
|
|
42170
|
-
|
|
42171
|
-
|
|
42172
|
-
|
|
42173
|
-
|
|
42174
|
-
|
|
42175
|
-
|
|
42176
|
-
|
|
42177
|
-
|
|
42178
|
-
|
|
42179
|
-
|
|
42180
|
-
var last2 = array.pop();
|
|
42181
|
-
indexes[last2] = void 0;
|
|
42182
|
-
};
|
|
42183
|
-
})();
|
|
40639
|
+
function cast(set) {
|
|
40640
|
+
return set;
|
|
40641
|
+
}
|
|
40642
|
+
function get(setarr, key) {
|
|
40643
|
+
return cast(setarr)._indexes[key];
|
|
40644
|
+
}
|
|
40645
|
+
function put(setarr, key) {
|
|
40646
|
+
var index3 = get(setarr, key);
|
|
40647
|
+
if (index3 !== void 0) return index3;
|
|
40648
|
+
var _cast = cast(setarr), array = _cast.array, indexes = _cast._indexes;
|
|
40649
|
+
var length = array.push(key);
|
|
40650
|
+
return indexes[key] = length - 1;
|
|
40651
|
+
}
|
|
42184
40652
|
// node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
42185
40653
|
var comma = ",".charCodeAt(0);
|
|
42186
40654
|
var semicolon = ";".charCodeAt(0);
|
|
@@ -42343,16 +40811,6 @@ function encodeInteger(buf, pos, state, segment, j) {
|
|
|
42343
40811
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
42344
40812
|
var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
42345
40813
|
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
40814
|
function isAbsoluteUrl(input) {
|
|
42357
40815
|
return schemeRegex.test(input);
|
|
42358
40816
|
}
|
|
@@ -42386,21 +40844,21 @@ function makeUrl(scheme, user, host, port, path, query, hash) {
|
|
|
42386
40844
|
path: path,
|
|
42387
40845
|
query: query,
|
|
42388
40846
|
hash: hash,
|
|
42389
|
-
type:
|
|
40847
|
+
type: 7
|
|
42390
40848
|
};
|
|
42391
40849
|
}
|
|
42392
40850
|
function parseUrl(input) {
|
|
42393
40851
|
if (isSchemeRelativeUrl(input)) {
|
|
42394
40852
|
var url2 = parseAbsoluteUrl("http:" + input);
|
|
42395
40853
|
url2.scheme = "";
|
|
42396
|
-
url2.type =
|
|
40854
|
+
url2.type = 6;
|
|
42397
40855
|
return url2;
|
|
42398
40856
|
}
|
|
42399
40857
|
if (isAbsolutePath(input)) {
|
|
42400
40858
|
var url21 = parseAbsoluteUrl("http://foo.com" + input);
|
|
42401
40859
|
url21.scheme = "";
|
|
42402
40860
|
url21.host = "";
|
|
42403
|
-
url21.type =
|
|
40861
|
+
url21.type = 5;
|
|
42404
40862
|
return url21;
|
|
42405
40863
|
}
|
|
42406
40864
|
if (isFileUrl(input)) return parseFileUrl(input);
|
|
@@ -42408,7 +40866,7 @@ function parseUrl(input) {
|
|
|
42408
40866
|
var url = parseAbsoluteUrl("http://foo.com/" + input);
|
|
42409
40867
|
url.scheme = "";
|
|
42410
40868
|
url.host = "";
|
|
42411
|
-
url.type = input ? input.startsWith("?") ?
|
|
40869
|
+
url.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1;
|
|
42412
40870
|
return url;
|
|
42413
40871
|
}
|
|
42414
40872
|
function stripPathFilename(path) {
|
|
@@ -42425,7 +40883,7 @@ function mergePaths(url, base) {
|
|
|
42425
40883
|
}
|
|
42426
40884
|
}
|
|
42427
40885
|
function normalizePath(url, type) {
|
|
42428
|
-
var rel = type <=
|
|
40886
|
+
var rel = type <= 4;
|
|
42429
40887
|
var pieces = url.path.split("/");
|
|
42430
40888
|
var pointer = 1;
|
|
42431
40889
|
var positive = 0;
|
|
@@ -42464,22 +40922,22 @@ function resolve(input, base) {
|
|
|
42464
40922
|
if (!input && !base) return "";
|
|
42465
40923
|
var url = parseUrl(input);
|
|
42466
40924
|
var inputType = url.type;
|
|
42467
|
-
if (base && inputType !==
|
|
40925
|
+
if (base && inputType !== 7) {
|
|
42468
40926
|
var baseUrl = parseUrl(base);
|
|
42469
40927
|
var baseType = baseUrl.type;
|
|
42470
40928
|
switch(inputType){
|
|
42471
|
-
case
|
|
40929
|
+
case 1:
|
|
42472
40930
|
url.hash = baseUrl.hash;
|
|
42473
|
-
case
|
|
40931
|
+
case 2:
|
|
42474
40932
|
url.query = baseUrl.query;
|
|
42475
|
-
case
|
|
42476
|
-
case
|
|
40933
|
+
case 3:
|
|
40934
|
+
case 4:
|
|
42477
40935
|
mergePaths(url, baseUrl);
|
|
42478
|
-
case
|
|
40936
|
+
case 5:
|
|
42479
40937
|
url.user = baseUrl.user;
|
|
42480
40938
|
url.host = baseUrl.host;
|
|
42481
40939
|
url.port = baseUrl.port;
|
|
42482
|
-
case
|
|
40940
|
+
case 6:
|
|
42483
40941
|
url.scheme = baseUrl.scheme;
|
|
42484
40942
|
}
|
|
42485
40943
|
if (baseType > inputType) inputType = baseType;
|
|
@@ -42487,10 +40945,10 @@ function resolve(input, base) {
|
|
|
42487
40945
|
normalizePath(url, inputType);
|
|
42488
40946
|
var queryHash = url.query + url.hash;
|
|
42489
40947
|
switch(inputType){
|
|
42490
|
-
case
|
|
42491
|
-
case
|
|
40948
|
+
case 2:
|
|
40949
|
+
case 3:
|
|
42492
40950
|
return queryHash;
|
|
42493
|
-
case
|
|
40951
|
+
case 4:
|
|
42494
40952
|
{
|
|
42495
40953
|
var path = url.path.slice(1);
|
|
42496
40954
|
if (!path) return queryHash || ".";
|
|
@@ -42499,7 +40957,7 @@ function resolve(input, base) {
|
|
|
42499
40957
|
}
|
|
42500
40958
|
return path + queryHash;
|
|
42501
40959
|
}
|
|
42502
|
-
case
|
|
40960
|
+
case 5:
|
|
42503
40961
|
return url.path + queryHash;
|
|
42504
40962
|
default:
|
|
42505
40963
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
@@ -42520,8 +40978,6 @@ var SOURCES_INDEX = 1;
|
|
|
42520
40978
|
var SOURCE_LINE = 2;
|
|
42521
40979
|
var SOURCE_COLUMN = 3;
|
|
42522
40980
|
var NAMES_INDEX = 4;
|
|
42523
|
-
var REV_GENERATED_LINE = 1;
|
|
42524
|
-
var REV_GENERATED_COLUMN = 2;
|
|
42525
40981
|
function maybeSort(mappings, owned) {
|
|
42526
40982
|
var unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
|
|
42527
40983
|
if (unsortedIndex === mappings.length) return mappings;
|
|
@@ -42608,55 +41064,10 @@ function memoizedBinarySearch(haystack, needle, state, key) {
|
|
|
42608
41064
|
state.lastNeedle = needle;
|
|
42609
41065
|
return state.lastIndex = binarySearch(haystack, needle, low, high);
|
|
42610
41066
|
}
|
|
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
41067
|
var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
|
|
42646
41068
|
var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
42647
41069
|
var LEAST_UPPER_BOUND = -1;
|
|
42648
41070
|
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
41071
|
var TraceMap = function TraceMap(map, mapUrl) {
|
|
42661
41072
|
"use strict";
|
|
42662
41073
|
_class_call_check(this, TraceMap);
|
|
@@ -42670,6 +41081,7 @@ var TraceMap = function TraceMap(map, mapUrl) {
|
|
|
42670
41081
|
this.sourceRoot = sourceRoot;
|
|
42671
41082
|
this.sources = sources;
|
|
42672
41083
|
this.sourcesContent = sourcesContent;
|
|
41084
|
+
this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
42673
41085
|
var from = resolve2(sourceRoot || "", stripFilename(mapUrl));
|
|
42674
41086
|
this.resolvedSources = sources.map(function(s) {
|
|
42675
41087
|
return resolve2(s || "", from);
|
|
@@ -42686,121 +41098,27 @@ var TraceMap = function TraceMap(map, mapUrl) {
|
|
|
42686
41098
|
this._bySources = void 0;
|
|
42687
41099
|
this._bySourceMemos = void 0;
|
|
42688
41100
|
};
|
|
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
|
-
};
|
|
41101
|
+
function cast2(map) {
|
|
41102
|
+
return map;
|
|
41103
|
+
}
|
|
41104
|
+
function decodedMappings(map) {
|
|
41105
|
+
var _a;
|
|
41106
|
+
return (_a = cast2(map))._decoded || (_a._decoded = decode(cast2(map)._encoded));
|
|
41107
|
+
}
|
|
41108
|
+
function originalPositionFor(map, needle) {
|
|
41109
|
+
var line = needle.line, column = needle.column, bias = needle.bias;
|
|
41110
|
+
line--;
|
|
41111
|
+
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
41112
|
+
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
41113
|
+
var decoded = decodedMappings(map);
|
|
41114
|
+
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
41115
|
+
var segments = decoded[line];
|
|
41116
|
+
var index3 = traceSegmentInternal(segments, cast2(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
41117
|
+
if (index3 === -1) return OMapping(null, null, null, null);
|
|
41118
|
+
var segment = segments[index3];
|
|
41119
|
+
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
41120
|
+
var names = map.names, resolvedSources = map.resolvedSources;
|
|
41121
|
+
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
|
|
42804
41122
|
}
|
|
42805
41123
|
function OMapping(source, line, column, name) {
|
|
42806
41124
|
return {
|
|
@@ -42810,12 +41128,6 @@ function OMapping(source, line, column, name) {
|
|
|
42810
41128
|
name: name
|
|
42811
41129
|
};
|
|
42812
41130
|
}
|
|
42813
|
-
function GMapping(line, column) {
|
|
42814
|
-
return {
|
|
42815
|
-
line: line,
|
|
42816
|
-
column: column
|
|
42817
|
-
};
|
|
42818
|
-
}
|
|
42819
41131
|
function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
42820
41132
|
var index3 = memoizedBinarySearch(segments, column, memo, line);
|
|
42821
41133
|
if (found) {
|
|
@@ -42824,20 +41136,6 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
42824
41136
|
if (index3 === -1 || index3 === segments.length) return -1;
|
|
42825
41137
|
return index3;
|
|
42826
41138
|
}
|
|
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
41139
|
// node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
|
42842
41140
|
var COLUMN2 = 0;
|
|
42843
41141
|
var SOURCES_INDEX2 = 1;
|
|
@@ -42845,16 +41143,6 @@ var SOURCE_LINE2 = 2;
|
|
|
42845
41143
|
var SOURCE_COLUMN2 = 3;
|
|
42846
41144
|
var NAMES_INDEX2 = 4;
|
|
42847
41145
|
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
41146
|
var GenMapping = function GenMapping() {
|
|
42859
41147
|
"use strict";
|
|
42860
41148
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, file2 = _ref.file, sourceRoot = _ref.sourceRoot;
|
|
@@ -42865,119 +41153,100 @@ var GenMapping = function GenMapping() {
|
|
|
42865
41153
|
this._mappings = [];
|
|
42866
41154
|
this.file = file2;
|
|
42867
41155
|
this.sourceRoot = sourceRoot;
|
|
41156
|
+
this._ignoreList = new SetArray();
|
|
42868
41157
|
};
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
|
|
42882
|
-
|
|
42883
|
-
|
|
42884
|
-
|
|
42885
|
-
|
|
42886
|
-
|
|
42887
|
-
|
|
42888
|
-
|
|
42889
|
-
|
|
42890
|
-
|
|
42891
|
-
|
|
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
|
-
});
|
|
41158
|
+
function cast3(map) {
|
|
41159
|
+
return map;
|
|
41160
|
+
}
|
|
41161
|
+
var maybeAddMapping = function(map, mapping) {
|
|
41162
|
+
return addMappingInternal(true, map, mapping);
|
|
41163
|
+
};
|
|
41164
|
+
function setSourceContent(map, source, content) {
|
|
41165
|
+
var _cast3 = cast3(map), sources = _cast3._sources, sourcesContent = _cast3._sourcesContent;
|
|
41166
|
+
var index3 = put(sources, source);
|
|
41167
|
+
sourcesContent[index3] = content;
|
|
41168
|
+
}
|
|
41169
|
+
function toDecodedMap(map) {
|
|
41170
|
+
var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names, ignoreList = _cast3._ignoreList;
|
|
41171
|
+
removeEmptyFinalLines(mappings);
|
|
41172
|
+
return {
|
|
41173
|
+
version: 3,
|
|
41174
|
+
file: map.file || void 0,
|
|
41175
|
+
names: names.array,
|
|
41176
|
+
sourceRoot: map.sourceRoot || void 0,
|
|
41177
|
+
sources: sources.array,
|
|
41178
|
+
sourcesContent: sourcesContent,
|
|
41179
|
+
mappings: mappings,
|
|
41180
|
+
ignoreList: ignoreList.array
|
|
42904
41181
|
};
|
|
42905
|
-
|
|
42906
|
-
|
|
42907
|
-
|
|
42908
|
-
|
|
42909
|
-
|
|
42910
|
-
|
|
42911
|
-
|
|
42912
|
-
|
|
42913
|
-
|
|
42914
|
-
|
|
41182
|
+
}
|
|
41183
|
+
function toEncodedMap(map) {
|
|
41184
|
+
var decoded = toDecodedMap(map);
|
|
41185
|
+
return Object.assign(Object.assign({}, decoded), {
|
|
41186
|
+
mappings: encode(decoded.mappings)
|
|
41187
|
+
});
|
|
41188
|
+
}
|
|
41189
|
+
function allMappings(map) {
|
|
41190
|
+
var out = [];
|
|
41191
|
+
var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, names = _cast3._names;
|
|
41192
|
+
for(var i = 0; i < mappings.length; i++){
|
|
41193
|
+
var line = mappings[i];
|
|
41194
|
+
for(var j = 0; j < line.length; j++){
|
|
41195
|
+
var seg = line[j];
|
|
41196
|
+
var generated = {
|
|
41197
|
+
line: i + 1,
|
|
41198
|
+
column: seg[COLUMN2]
|
|
41199
|
+
};
|
|
41200
|
+
var source = void 0;
|
|
41201
|
+
var original = void 0;
|
|
41202
|
+
var name = void 0;
|
|
41203
|
+
if (seg.length !== 1) {
|
|
41204
|
+
source = sources.array[seg[SOURCES_INDEX2]];
|
|
41205
|
+
original = {
|
|
41206
|
+
line: seg[SOURCE_LINE2] + 1,
|
|
41207
|
+
column: seg[SOURCE_COLUMN2]
|
|
42915
41208
|
};
|
|
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
|
-
});
|
|
41209
|
+
if (seg.length === 5) name = names.array[seg[NAMES_INDEX2]];
|
|
42933
41210
|
}
|
|
41211
|
+
out.push({
|
|
41212
|
+
generated: generated,
|
|
41213
|
+
source: source,
|
|
41214
|
+
original: original,
|
|
41215
|
+
name: name
|
|
41216
|
+
});
|
|
42934
41217
|
}
|
|
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
|
|
41218
|
+
}
|
|
41219
|
+
return out;
|
|
41220
|
+
}
|
|
41221
|
+
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
|
41222
|
+
var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names;
|
|
41223
|
+
var line = getLine(mappings, genLine);
|
|
41224
|
+
var index3 = getColumnIndex(line, genColumn);
|
|
41225
|
+
if (!source) {
|
|
41226
|
+
if (skipable && skipSourceless(line, index3)) return;
|
|
41227
|
+
return insert(line, index3, [
|
|
41228
|
+
genColumn
|
|
42978
41229
|
]);
|
|
42979
|
-
}
|
|
42980
|
-
|
|
41230
|
+
}
|
|
41231
|
+
var sourcesIndex = put(sources, source);
|
|
41232
|
+
var namesIndex = name ? put(names, name) : NO_NAME;
|
|
41233
|
+
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null;
|
|
41234
|
+
if (skipable && skipSource(line, index3, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {
|
|
41235
|
+
return;
|
|
41236
|
+
}
|
|
41237
|
+
return insert(line, index3, name ? [
|
|
41238
|
+
genColumn,
|
|
41239
|
+
sourcesIndex,
|
|
41240
|
+
sourceLine,
|
|
41241
|
+
sourceColumn,
|
|
41242
|
+
namesIndex
|
|
41243
|
+
] : [
|
|
41244
|
+
genColumn,
|
|
41245
|
+
sourcesIndex,
|
|
41246
|
+
sourceLine,
|
|
41247
|
+
sourceColumn
|
|
41248
|
+
]);
|
|
41249
|
+
}
|
|
42981
41250
|
function getLine(mappings, index3) {
|
|
42982
41251
|
for(var i = mappings.length; i <= index3; i++){
|
|
42983
41252
|
mappings[i] = [];
|
|
@@ -42992,7 +41261,7 @@ function getColumnIndex(line, genColumn) {
|
|
|
42992
41261
|
}
|
|
42993
41262
|
return index3;
|
|
42994
41263
|
}
|
|
42995
|
-
function
|
|
41264
|
+
function insert(array, index3, value1) {
|
|
42996
41265
|
for(var i = array.length; i > index3; i--){
|
|
42997
41266
|
array[i] = array[i - 1];
|
|
42998
41267
|
}
|
|
@@ -43006,9 +41275,6 @@ function removeEmptyFinalLines(mappings) {
|
|
|
43006
41275
|
}
|
|
43007
41276
|
if (len < length) mappings.length = len;
|
|
43008
41277
|
}
|
|
43009
|
-
function putAll(strarr, array) {
|
|
43010
|
-
for(var i = 0; i < array.length; i++)put(strarr, array[i]);
|
|
43011
|
-
}
|
|
43012
41278
|
function skipSourceless(line, index3) {
|
|
43013
41279
|
if (index3 === 0) return true;
|
|
43014
41280
|
var prev = line[index3 - 1];
|
|
@@ -43025,8 +41291,7 @@ function addMappingInternal(skipable, map, mapping) {
|
|
|
43025
41291
|
if (!source) {
|
|
43026
41292
|
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);
|
|
43027
41293
|
}
|
|
43028
|
-
|
|
43029
|
-
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, s, original.line - 1, original.column, name, content);
|
|
41294
|
+
return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
|
|
43030
41295
|
}
|
|
43031
41296
|
// node_modules/@babel/generator/lib/index.js
|
|
43032
41297
|
var import_jsesc = __toESM(require_jsesc(), 1);
|
|
@@ -46490,7 +44755,7 @@ function TSIndexedAccessType(node) {
|
|
|
46490
44755
|
this.tokenChar(93);
|
|
46491
44756
|
}
|
|
46492
44757
|
function TSMappedType(node) {
|
|
46493
|
-
var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter;
|
|
44758
|
+
var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter, typeAnnotation2 = node.typeAnnotation;
|
|
46494
44759
|
this.tokenChar(123);
|
|
46495
44760
|
this.space();
|
|
46496
44761
|
if (readonly) {
|
|
@@ -46515,9 +44780,11 @@ function TSMappedType(node) {
|
|
|
46515
44780
|
tokenIfPlusMinus(this, optional);
|
|
46516
44781
|
this.tokenChar(63);
|
|
46517
44782
|
}
|
|
46518
|
-
|
|
46519
|
-
|
|
46520
|
-
|
|
44783
|
+
if (typeAnnotation2) {
|
|
44784
|
+
this.tokenChar(58);
|
|
44785
|
+
this.space();
|
|
44786
|
+
this.print(typeAnnotation2, node);
|
|
44787
|
+
}
|
|
46521
44788
|
this.space();
|
|
46522
44789
|
this.tokenChar(125);
|
|
46523
44790
|
}
|
|
@@ -48258,7 +46525,7 @@ var virtualTypes = /* @__PURE__ */ Object.freeze({
|
|
|
48258
46525
|
User: User,
|
|
48259
46526
|
Var: Var
|
|
48260
46527
|
});
|
|
48261
|
-
var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6 = lib_exports.isIdentifier, isImportDeclaration$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression,
|
|
46528
|
+
var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6 = lib_exports.isIdentifier, isImportDeclaration$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression, isMemberExpression$12 = lib_exports.isMemberExpression, nodeIsRestElement = lib_exports.isRestElement, nodeIsReferenced = lib_exports.isReferenced, nodeIsScope = lib_exports.isScope, nodeIsStatement = lib_exports.isStatement, nodeIsVar = lib_exports.isVar, isVariableDeclaration$2 = lib_exports.isVariableDeclaration, react$1 = lib_exports.react, isForOfStatement3 = lib_exports.isForOfStatement;
|
|
48262
46529
|
var isCompatTag2 = react$1.isCompatTag;
|
|
48263
46530
|
function isReferencedIdentifier(opts) {
|
|
48264
46531
|
var _this = this, node = _this.node, parent = _this.parent;
|
|
@@ -48273,7 +46540,7 @@ function isReferencedIdentifier(opts) {
|
|
|
48273
46540
|
}
|
|
48274
46541
|
function isReferencedMemberExpression() {
|
|
48275
46542
|
var _this = this, node = _this.node, parent = _this.parent;
|
|
48276
|
-
return
|
|
46543
|
+
return isMemberExpression$12(node) && nodeIsReferenced(node, parent);
|
|
48277
46544
|
}
|
|
48278
46545
|
function isBindingIdentifier() {
|
|
48279
46546
|
var _this = this, node = _this.node, parent = _this.parent;
|
|
@@ -49046,7 +47313,7 @@ function isDeclaredInLoop(path) {
|
|
|
49046
47313
|
}
|
|
49047
47314
|
return false;
|
|
49048
47315
|
}
|
|
49049
|
-
var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1 = lib_exports.isVariableDeclaration, matchesPattern$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
|
|
47316
|
+
var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isCallExpression$12 = lib_exports.isCallExpression, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMemberExpression3 = lib_exports.isMemberExpression, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1 = lib_exports.isVariableDeclaration, matchesPattern$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
|
|
49050
47317
|
function gatherNodeParts(node, parts) {
|
|
49051
47318
|
switch(node === null || node === void 0 ? void 0 : node.type){
|
|
49052
47319
|
default:
|
|
@@ -49950,8 +48217,6 @@ var _Scope = /*#__PURE__*/ function() {
|
|
|
49950
48217
|
return true;
|
|
49951
48218
|
} else if (isUnaryExpression2(node)) {
|
|
49952
48219
|
return this.isPure(node.argument, constantsOnly);
|
|
49953
|
-
} else if (isTaggedTemplateExpression2(node)) {
|
|
49954
|
-
return matchesPattern$1(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly);
|
|
49955
48220
|
} else if (isTemplateLiteral3(node)) {
|
|
49956
48221
|
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
49957
48222
|
try {
|
|
@@ -49974,6 +48239,18 @@ var _Scope = /*#__PURE__*/ function() {
|
|
|
49974
48239
|
}
|
|
49975
48240
|
}
|
|
49976
48241
|
return true;
|
|
48242
|
+
} else if (isTaggedTemplateExpression2(node)) {
|
|
48243
|
+
return matchesPattern$1(node.tag, "String.raw") && !this.hasBinding("String", {
|
|
48244
|
+
noGlobals: true
|
|
48245
|
+
}) && this.isPure(node.quasi, constantsOnly);
|
|
48246
|
+
} else if (isMemberExpression3(node)) {
|
|
48247
|
+
return !node.computed && isIdentifier$5(node.object) && node.object.name === "Symbol" && isIdentifier$5(node.property) && node.property.name !== "for" && !this.hasBinding("Symbol", {
|
|
48248
|
+
noGlobals: true
|
|
48249
|
+
});
|
|
48250
|
+
} else if (isCallExpression$12(node)) {
|
|
48251
|
+
return matchesPattern$1(node.callee, "Symbol.for") && !this.hasBinding("Symbol", {
|
|
48252
|
+
noGlobals: true
|
|
48253
|
+
}) && node.arguments.length === 1 && isStringLiteral(node.arguments[0]);
|
|
49977
48254
|
} else {
|
|
49978
48255
|
return isPureish2(node);
|
|
49979
48256
|
}
|
|
@@ -50180,9 +48457,9 @@ var _Scope = /*#__PURE__*/ function() {
|
|
|
50180
48457
|
path = (this.getFunctionParent() || this.getProgramParent()).path;
|
|
50181
48458
|
}
|
|
50182
48459
|
var init = opts.init, unique = opts.unique, _opts_kind = opts.kind, kind = _opts_kind === void 0 ? "var" : _opts_kind, id = opts.id;
|
|
50183
|
-
if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression(path.parent, {
|
|
48460
|
+
if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression$12(path.parent, {
|
|
50184
48461
|
callee: path.node
|
|
50185
|
-
}) && path.parent.arguments.length <= path.node.params.length && isIdentifier(id)) {
|
|
48462
|
+
}) && path.parent.arguments.length <= path.node.params.length && isIdentifier$5(id)) {
|
|
50186
48463
|
path.pushContainer("params", id);
|
|
50187
48464
|
path.scope.registerBinding("param", path.get("params")[path.node.params.length - 1]);
|
|
50188
48465
|
return;
|
|
@@ -51824,7 +50101,7 @@ function _evaluate(path, state) {
|
|
|
51824
50101
|
if (object2.isIdentifier() && property2.isIdentifier() && isValidObjectCallee(object2.node.name) && !isInvalidMethod(property2.node.name)) {
|
|
51825
50102
|
context = global[object2.node.name];
|
|
51826
50103
|
var key2 = property2.node.name;
|
|
51827
|
-
if (Object.
|
|
50104
|
+
if (Object.hasOwn(context, key2)) {
|
|
51828
50105
|
func = context[key2];
|
|
51829
50106
|
}
|
|
51830
50107
|
}
|
|
@@ -52347,7 +50624,7 @@ var STATEMENT_OR_BLOCK_KEYS2 = lib_exports.STATEMENT_OR_BLOCK_KEYS, VISITOR_KEYS
|
|
|
52347
50624
|
function matchesPattern2(pattern, allowPartial) {
|
|
52348
50625
|
return _matchesPattern(this.node, pattern, allowPartial);
|
|
52349
50626
|
}
|
|
52350
|
-
function
|
|
50627
|
+
function has(key) {
|
|
52351
50628
|
var val = this.node && this.node[key];
|
|
52352
50629
|
if (val && Array.isArray(val)) {
|
|
52353
50630
|
return !!val.length;
|
|
@@ -52358,7 +50635,7 @@ function has2(key) {
|
|
|
52358
50635
|
function isStatic() {
|
|
52359
50636
|
return this.scope.isStatic(this.node);
|
|
52360
50637
|
}
|
|
52361
|
-
var is2 =
|
|
50638
|
+
var is2 = has;
|
|
52362
50639
|
function isnt(key) {
|
|
52363
50640
|
return !this.has(key);
|
|
52364
50641
|
}
|
|
@@ -52697,6 +50974,18 @@ function isConstantExpression() {
|
|
|
52697
50974
|
var operator = this.node.operator;
|
|
52698
50975
|
return operator !== "in" && operator !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression();
|
|
52699
50976
|
}
|
|
50977
|
+
if (this.isMemberExpression()) {
|
|
50978
|
+
return !this.node.computed && this.get("object").isIdentifier({
|
|
50979
|
+
name: "Symbol"
|
|
50980
|
+
}) && !this.scope.hasBinding("Symbol", {
|
|
50981
|
+
noGlobals: true
|
|
50982
|
+
});
|
|
50983
|
+
}
|
|
50984
|
+
if (this.isCallExpression()) {
|
|
50985
|
+
return this.node.arguments.length === 1 && this.get("callee").matchesPattern("Symbol.for") && !this.scope.hasBinding("Symbol", {
|
|
50986
|
+
noGlobals: true
|
|
50987
|
+
}) && this.get("arguments")[0].isStringLiteral();
|
|
50988
|
+
}
|
|
52700
50989
|
return false;
|
|
52701
50990
|
}
|
|
52702
50991
|
function isInStrictMode() {
|
|
@@ -52750,7 +51039,7 @@ var NodePath_introspection = /* @__PURE__ */ Object.freeze({
|
|
|
52750
51039
|
canSwapBetweenExpressionAndStatement: canSwapBetweenExpressionAndStatement,
|
|
52751
51040
|
equals: equals,
|
|
52752
51041
|
getSource: getSource,
|
|
52753
|
-
has:
|
|
51042
|
+
has: has,
|
|
52754
51043
|
is: is2,
|
|
52755
51044
|
isCompletionRecord: isCompletionRecord,
|
|
52756
51045
|
isConstantExpression: isConstantExpression,
|
|
@@ -53070,7 +51359,7 @@ var hooks = [
|
|
|
53070
51359
|
}
|
|
53071
51360
|
];
|
|
53072
51361
|
var getBindingIdentifiers$1 = lib_exports.getBindingIdentifiers;
|
|
53073
|
-
function
|
|
51362
|
+
function remove2() {
|
|
53074
51363
|
var _this_opts;
|
|
53075
51364
|
this._assertUnremoved();
|
|
53076
51365
|
this.resync();
|
|
@@ -53143,7 +51432,7 @@ var NodePath_removal = /* @__PURE__ */ Object.freeze({
|
|
|
53143
51432
|
_markRemoved: _markRemoved,
|
|
53144
51433
|
_remove: _remove,
|
|
53145
51434
|
_removeFromScope: _removeFromScope,
|
|
53146
|
-
remove:
|
|
51435
|
+
remove: remove2
|
|
53147
51436
|
});
|
|
53148
51437
|
var react2 = lib_exports.react;
|
|
53149
51438
|
var cloneNode$1 = lib_exports.cloneNode, jsxExpressionContainer2 = lib_exports.jsxExpressionContainer, variableDeclaration3 = lib_exports.variableDeclaration, variableDeclarator3 = lib_exports.variableDeclarator;
|
|
@@ -54291,10 +52580,10 @@ var NodePath = /*#__PURE__*/ function() {
|
|
|
54291
52580
|
return _NodePath;
|
|
54292
52581
|
}();
|
|
54293
52582
|
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
|
|
52583
|
+
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
54295
52584
|
try {
|
|
54296
|
-
var
|
|
54297
|
-
var type =
|
|
52585
|
+
var _loop = function() {
|
|
52586
|
+
var type = _step2.value;
|
|
54298
52587
|
var typeKey = "is".concat(type);
|
|
54299
52588
|
var fn = lib_exports[typeKey];
|
|
54300
52589
|
NodePath.prototype[typeKey] = function(opts) {
|
|
@@ -54306,40 +52595,40 @@ try {
|
|
|
54306
52595
|
}
|
|
54307
52596
|
};
|
|
54308
52597
|
};
|
|
54309
|
-
for(var
|
|
52598
|
+
for(var _iterator2 = TYPES[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
|
|
54310
52599
|
} catch (err) {
|
|
54311
|
-
|
|
54312
|
-
|
|
52600
|
+
_didIteratorError2 = true;
|
|
52601
|
+
_iteratorError2 = err;
|
|
54313
52602
|
} finally{
|
|
54314
52603
|
try {
|
|
54315
|
-
if (!
|
|
54316
|
-
|
|
52604
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
52605
|
+
_iterator2.return();
|
|
54317
52606
|
}
|
|
54318
52607
|
} finally{
|
|
54319
|
-
if (
|
|
54320
|
-
throw
|
|
52608
|
+
if (_didIteratorError2) {
|
|
52609
|
+
throw _iteratorError2;
|
|
54321
52610
|
}
|
|
54322
52611
|
}
|
|
54323
52612
|
}
|
|
54324
52613
|
Object.assign(NodePath.prototype, NodePath_virtual_types_validator);
|
|
54325
|
-
var
|
|
52614
|
+
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
54326
52615
|
try {
|
|
54327
|
-
for(var
|
|
54328
|
-
var type2 =
|
|
52616
|
+
for(var _iterator3 = Object.keys(virtualTypes)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
|
|
52617
|
+
var type2 = _step3.value;
|
|
54329
52618
|
if (type2[0] === "_") continue;
|
|
54330
52619
|
if (!TYPES.includes(type2)) TYPES.push(type2);
|
|
54331
52620
|
}
|
|
54332
52621
|
} catch (err) {
|
|
54333
|
-
|
|
54334
|
-
|
|
52622
|
+
_didIteratorError3 = true;
|
|
52623
|
+
_iteratorError3 = err;
|
|
54335
52624
|
} finally{
|
|
54336
52625
|
try {
|
|
54337
|
-
if (!
|
|
54338
|
-
|
|
52626
|
+
if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
|
|
52627
|
+
_iterator3.return();
|
|
54339
52628
|
}
|
|
54340
52629
|
} finally{
|
|
54341
|
-
if (
|
|
54342
|
-
throw
|
|
52630
|
+
if (_didIteratorError3) {
|
|
52631
|
+
throw _iteratorError3;
|
|
54343
52632
|
}
|
|
54344
52633
|
}
|
|
54345
52634
|
}
|
|
@@ -54446,62 +52735,31 @@ var TraversalContext = /*#__PURE__*/ function() {
|
|
|
54446
52735
|
this.priorityQueue = [];
|
|
54447
52736
|
var visited = /* @__PURE__ */ new WeakSet();
|
|
54448
52737
|
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
|
-
}
|
|
52738
|
+
var visitIndex = 0;
|
|
52739
|
+
for(; visitIndex < queue.length;){
|
|
52740
|
+
var path = queue[visitIndex];
|
|
52741
|
+
visitIndex++;
|
|
52742
|
+
path.resync();
|
|
52743
|
+
if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) {
|
|
52744
|
+
path.pushContext(this);
|
|
52745
|
+
}
|
|
52746
|
+
if (path.key === null) continue;
|
|
52747
|
+
var node = path.node;
|
|
52748
|
+
if (visited.has(node)) continue;
|
|
52749
|
+
if (node) visited.add(node);
|
|
52750
|
+
if (path.visit()) {
|
|
52751
|
+
stop2 = true;
|
|
52752
|
+
break;
|
|
54471
52753
|
}
|
|
54472
|
-
|
|
54473
|
-
|
|
54474
|
-
|
|
54475
|
-
|
|
54476
|
-
|
|
54477
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
54478
|
-
_iterator.return();
|
|
54479
|
-
}
|
|
54480
|
-
} finally{
|
|
54481
|
-
if (_didIteratorError) {
|
|
54482
|
-
throw _iteratorError;
|
|
54483
|
-
}
|
|
52754
|
+
if (this.priorityQueue.length) {
|
|
52755
|
+
stop2 = this.visitQueue(this.priorityQueue);
|
|
52756
|
+
this.priorityQueue = [];
|
|
52757
|
+
this.queue = queue;
|
|
52758
|
+
if (stop2) break;
|
|
54484
52759
|
}
|
|
54485
52760
|
}
|
|
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
|
-
}
|
|
52761
|
+
for(var i = 0; i < visitIndex; i++){
|
|
52762
|
+
queue[i].popContext();
|
|
54505
52763
|
}
|
|
54506
52764
|
this.queue = null;
|
|
54507
52765
|
return stop2;
|