Spaces:
Sleeping
Sleeping
Upload 793 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- frontend/node_modules/@babel/code-frame/LICENSE +22 -0
- frontend/node_modules/@babel/code-frame/README.md +19 -0
- frontend/node_modules/@babel/code-frame/lib/index.js +216 -0
- frontend/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- frontend/node_modules/@babel/code-frame/package.json +31 -0
- frontend/node_modules/@babel/compat-data/LICENSE +22 -0
- frontend/node_modules/@babel/compat-data/README.md +19 -0
- frontend/node_modules/@babel/compat-data/corejs2-built-ins.js +2 -0
- frontend/node_modules/@babel/compat-data/corejs3-shipped-proposals.js +2 -0
- frontend/node_modules/@babel/compat-data/data/corejs2-built-ins.json +2106 -0
- frontend/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json +5 -0
- frontend/node_modules/@babel/compat-data/data/native-modules.json +18 -0
- frontend/node_modules/@babel/compat-data/data/overlapping-plugins.json +35 -0
- frontend/node_modules/@babel/compat-data/data/plugin-bugfixes.json +203 -0
- frontend/node_modules/@babel/compat-data/data/plugins.json +837 -0
- frontend/node_modules/@babel/compat-data/native-modules.js +2 -0
- frontend/node_modules/@babel/compat-data/overlapping-plugins.js +2 -0
- frontend/node_modules/@babel/compat-data/package.json +40 -0
- frontend/node_modules/@babel/compat-data/plugin-bugfixes.js +2 -0
- frontend/node_modules/@babel/compat-data/plugins.js +2 -0
- frontend/node_modules/@babel/core/LICENSE +22 -0
- frontend/node_modules/@babel/core/README.md +19 -0
- frontend/node_modules/@babel/core/lib/config/cache-contexts.js +5 -0
- frontend/node_modules/@babel/core/lib/config/cache-contexts.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/caching.js +261 -0
- frontend/node_modules/@babel/core/lib/config/caching.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/config-chain.js +469 -0
- frontend/node_modules/@babel/core/lib/config/config-chain.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
- frontend/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/configuration.js +290 -0
- frontend/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
- frontend/node_modules/@babel/core/lib/config/files/import.cjs.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/index-browser.js +58 -0
- frontend/node_modules/@babel/core/lib/config/files/index-browser.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/index.js +78 -0
- frontend/node_modules/@babel/core/lib/config/files/index.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/module-types.js +211 -0
- frontend/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/package.js +61 -0
- frontend/node_modules/@babel/core/lib/config/files/package.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/plugins.js +230 -0
- frontend/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/types.js +5 -0
- frontend/node_modules/@babel/core/lib/config/files/types.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/files/utils.js +36 -0
- frontend/node_modules/@babel/core/lib/config/files/utils.js.map +1 -0
- frontend/node_modules/@babel/core/lib/config/full.js +312 -0
- frontend/node_modules/@babel/core/lib/config/full.js.map +1 -0
frontend/node_modules/@babel/code-frame/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/@babel/code-frame/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/code-frame
|
| 2 |
+
|
| 3 |
+
> Generate errors that contain a code frame that point to source locations.
|
| 4 |
+
|
| 5 |
+
See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save-dev @babel/code-frame
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
var picocolors = require('picocolors');
|
| 6 |
+
var jsTokens = require('js-tokens');
|
| 7 |
+
var helperValidatorIdentifier = require('@babel/helper-validator-identifier');
|
| 8 |
+
|
| 9 |
+
function isColorSupported() {
|
| 10 |
+
return (typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported
|
| 11 |
+
);
|
| 12 |
+
}
|
| 13 |
+
const compose = (f, g) => v => f(g(v));
|
| 14 |
+
function buildDefs(colors) {
|
| 15 |
+
return {
|
| 16 |
+
keyword: colors.cyan,
|
| 17 |
+
capitalized: colors.yellow,
|
| 18 |
+
jsxIdentifier: colors.yellow,
|
| 19 |
+
punctuator: colors.yellow,
|
| 20 |
+
number: colors.magenta,
|
| 21 |
+
string: colors.green,
|
| 22 |
+
regex: colors.magenta,
|
| 23 |
+
comment: colors.gray,
|
| 24 |
+
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
| 25 |
+
gutter: colors.gray,
|
| 26 |
+
marker: compose(colors.red, colors.bold),
|
| 27 |
+
message: compose(colors.red, colors.bold),
|
| 28 |
+
reset: colors.reset
|
| 29 |
+
};
|
| 30 |
+
}
|
| 31 |
+
const defsOn = buildDefs(picocolors.createColors(true));
|
| 32 |
+
const defsOff = buildDefs(picocolors.createColors(false));
|
| 33 |
+
function getDefs(enabled) {
|
| 34 |
+
return enabled ? defsOn : defsOff;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
|
| 38 |
+
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
| 39 |
+
const BRACKET = /^[()[\]{}]$/;
|
| 40 |
+
let tokenize;
|
| 41 |
+
{
|
| 42 |
+
const JSX_TAG = /^[a-z][\w-]*$/i;
|
| 43 |
+
const getTokenType = function (token, offset, text) {
|
| 44 |
+
if (token.type === "name") {
|
| 45 |
+
if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) {
|
| 46 |
+
return "keyword";
|
| 47 |
+
}
|
| 48 |
+
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
|
| 49 |
+
return "jsxIdentifier";
|
| 50 |
+
}
|
| 51 |
+
if (token.value[0] !== token.value[0].toLowerCase()) {
|
| 52 |
+
return "capitalized";
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
if (token.type === "punctuator" && BRACKET.test(token.value)) {
|
| 56 |
+
return "bracket";
|
| 57 |
+
}
|
| 58 |
+
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
|
| 59 |
+
return "punctuator";
|
| 60 |
+
}
|
| 61 |
+
return token.type;
|
| 62 |
+
};
|
| 63 |
+
tokenize = function* (text) {
|
| 64 |
+
let match;
|
| 65 |
+
while (match = jsTokens.default.exec(text)) {
|
| 66 |
+
const token = jsTokens.matchToToken(match);
|
| 67 |
+
yield {
|
| 68 |
+
type: getTokenType(token, match.index, text),
|
| 69 |
+
value: token.value
|
| 70 |
+
};
|
| 71 |
+
}
|
| 72 |
+
};
|
| 73 |
+
}
|
| 74 |
+
function highlight(text) {
|
| 75 |
+
if (text === "") return "";
|
| 76 |
+
const defs = getDefs(true);
|
| 77 |
+
let highlighted = "";
|
| 78 |
+
for (const {
|
| 79 |
+
type,
|
| 80 |
+
value
|
| 81 |
+
} of tokenize(text)) {
|
| 82 |
+
if (type in defs) {
|
| 83 |
+
highlighted += value.split(NEWLINE$1).map(str => defs[type](str)).join("\n");
|
| 84 |
+
} else {
|
| 85 |
+
highlighted += value;
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
return highlighted;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
let deprecationWarningShown = false;
|
| 92 |
+
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
| 93 |
+
function getMarkerLines(loc, source, opts) {
|
| 94 |
+
const startLoc = Object.assign({
|
| 95 |
+
column: 0,
|
| 96 |
+
line: -1
|
| 97 |
+
}, loc.start);
|
| 98 |
+
const endLoc = Object.assign({}, startLoc, loc.end);
|
| 99 |
+
const {
|
| 100 |
+
linesAbove = 2,
|
| 101 |
+
linesBelow = 3
|
| 102 |
+
} = opts || {};
|
| 103 |
+
const startLine = startLoc.line;
|
| 104 |
+
const startColumn = startLoc.column;
|
| 105 |
+
const endLine = endLoc.line;
|
| 106 |
+
const endColumn = endLoc.column;
|
| 107 |
+
let start = Math.max(startLine - (linesAbove + 1), 0);
|
| 108 |
+
let end = Math.min(source.length, endLine + linesBelow);
|
| 109 |
+
if (startLine === -1) {
|
| 110 |
+
start = 0;
|
| 111 |
+
}
|
| 112 |
+
if (endLine === -1) {
|
| 113 |
+
end = source.length;
|
| 114 |
+
}
|
| 115 |
+
const lineDiff = endLine - startLine;
|
| 116 |
+
const markerLines = {};
|
| 117 |
+
if (lineDiff) {
|
| 118 |
+
for (let i = 0; i <= lineDiff; i++) {
|
| 119 |
+
const lineNumber = i + startLine;
|
| 120 |
+
if (!startColumn) {
|
| 121 |
+
markerLines[lineNumber] = true;
|
| 122 |
+
} else if (i === 0) {
|
| 123 |
+
const sourceLength = source[lineNumber - 1].length;
|
| 124 |
+
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
| 125 |
+
} else if (i === lineDiff) {
|
| 126 |
+
markerLines[lineNumber] = [0, endColumn];
|
| 127 |
+
} else {
|
| 128 |
+
const sourceLength = source[lineNumber - i].length;
|
| 129 |
+
markerLines[lineNumber] = [0, sourceLength];
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
} else {
|
| 133 |
+
if (startColumn === endColumn) {
|
| 134 |
+
if (startColumn) {
|
| 135 |
+
markerLines[startLine] = [startColumn, 0];
|
| 136 |
+
} else {
|
| 137 |
+
markerLines[startLine] = true;
|
| 138 |
+
}
|
| 139 |
+
} else {
|
| 140 |
+
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
return {
|
| 144 |
+
start,
|
| 145 |
+
end,
|
| 146 |
+
markerLines
|
| 147 |
+
};
|
| 148 |
+
}
|
| 149 |
+
function codeFrameColumns(rawLines, loc, opts = {}) {
|
| 150 |
+
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
| 151 |
+
const defs = getDefs(shouldHighlight);
|
| 152 |
+
const lines = rawLines.split(NEWLINE);
|
| 153 |
+
const {
|
| 154 |
+
start,
|
| 155 |
+
end,
|
| 156 |
+
markerLines
|
| 157 |
+
} = getMarkerLines(loc, lines, opts);
|
| 158 |
+
const hasColumns = loc.start && typeof loc.start.column === "number";
|
| 159 |
+
const numberMaxWidth = String(end).length;
|
| 160 |
+
const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
|
| 161 |
+
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
|
| 162 |
+
const number = start + 1 + index;
|
| 163 |
+
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
|
| 164 |
+
const gutter = ` ${paddedNumber} |`;
|
| 165 |
+
const hasMarker = markerLines[number];
|
| 166 |
+
const lastMarkerLine = !markerLines[number + 1];
|
| 167 |
+
if (hasMarker) {
|
| 168 |
+
let markerLine = "";
|
| 169 |
+
if (Array.isArray(hasMarker)) {
|
| 170 |
+
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
| 171 |
+
const numberOfMarkers = hasMarker[1] || 1;
|
| 172 |
+
markerLine = ["\n ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
|
| 173 |
+
if (lastMarkerLine && opts.message) {
|
| 174 |
+
markerLine += " " + defs.message(opts.message);
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
| 178 |
+
} else {
|
| 179 |
+
return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
| 180 |
+
}
|
| 181 |
+
}).join("\n");
|
| 182 |
+
if (opts.message && !hasColumns) {
|
| 183 |
+
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
| 184 |
+
}
|
| 185 |
+
if (shouldHighlight) {
|
| 186 |
+
return defs.reset(frame);
|
| 187 |
+
} else {
|
| 188 |
+
return frame;
|
| 189 |
+
}
|
| 190 |
+
}
|
| 191 |
+
function index (rawLines, lineNumber, colNumber, opts = {}) {
|
| 192 |
+
if (!deprecationWarningShown) {
|
| 193 |
+
deprecationWarningShown = true;
|
| 194 |
+
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
| 195 |
+
if (process.emitWarning) {
|
| 196 |
+
process.emitWarning(message, "DeprecationWarning");
|
| 197 |
+
} else {
|
| 198 |
+
const deprecationError = new Error(message);
|
| 199 |
+
deprecationError.name = "DeprecationWarning";
|
| 200 |
+
console.warn(new Error(message));
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
colNumber = Math.max(colNumber, 0);
|
| 204 |
+
const location = {
|
| 205 |
+
start: {
|
| 206 |
+
column: colNumber,
|
| 207 |
+
line: lineNumber
|
| 208 |
+
}
|
| 209 |
+
};
|
| 210 |
+
return codeFrameColumns(rawLines, location, opts);
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
exports.codeFrameColumns = codeFrameColumns;
|
| 214 |
+
exports.default = index;
|
| 215 |
+
exports.highlight = highlight;
|
| 216 |
+
//# sourceMappingURL=index.js.map
|
frontend/node_modules/@babel/code-frame/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.js","sources":["../src/defs.ts","../src/highlight.ts","../src/index.ts"],"sourcesContent":["import picocolors, { createColors } from \"picocolors\";\nimport type { Colors, Formatter } from \"picocolors/types\";\n\nexport function isColorSupported() {\n return (\n // See https://github.com/alexeyraspopov/picocolors/issues/62\n typeof process === \"object\" &&\n (process.env.FORCE_COLOR === \"0\" || process.env.FORCE_COLOR === \"false\")\n ? false\n : picocolors.isColorSupported\n );\n}\n\nexport type InternalTokenType =\n | \"keyword\"\n | \"capitalized\"\n | \"jsxIdentifier\"\n | \"punctuator\"\n | \"number\"\n | \"string\"\n | \"regex\"\n | \"comment\"\n | \"invalid\";\n\ntype UITokens = \"gutter\" | \"marker\" | \"message\";\n\nexport type Defs = {\n [_ in InternalTokenType | UITokens | \"reset\"]: Formatter;\n};\n\nconst compose: <T, U, V>(f: (gv: U) => V, g: (v: T) => U) => (v: T) => V =\n (f, g) => v =>\n f(g(v));\n\n/**\n * Styles for token types.\n */\nfunction buildDefs(colors: Colors): Defs {\n return {\n keyword: colors.cyan,\n capitalized: colors.yellow,\n jsxIdentifier: colors.yellow,\n punctuator: colors.yellow,\n number: colors.magenta,\n string: colors.green,\n regex: colors.magenta,\n comment: colors.gray,\n invalid: compose(compose(colors.white, colors.bgRed), colors.bold),\n\n gutter: colors.gray,\n marker: compose(colors.red, colors.bold),\n message: compose(colors.red, colors.bold),\n\n reset: colors.reset,\n };\n}\n\nconst defsOn = buildDefs(createColors(true));\nconst defsOff = buildDefs(createColors(false));\n\nexport function getDefs(enabled: boolean): Defs {\n return enabled ? defsOn : defsOff;\n}\n","import type { Token as JSToken, JSXToken } from \"js-tokens\";\nimport jsTokens from \"js-tokens\";\n\nimport {\n isStrictReservedWord,\n isKeyword,\n} from \"@babel/helper-validator-identifier\";\n\nimport { getDefs, type InternalTokenType } from \"./defs.ts\";\n\n/**\n * Names that are always allowed as identifiers, but also appear as keywords\n * within certain syntactic productions.\n *\n * https://tc39.es/ecma262/#sec-keywords-and-reserved-words\n *\n * `target` has been omitted since it is very likely going to be a false\n * positive.\n */\nconst sometimesKeywords = new Set([\"as\", \"async\", \"from\", \"get\", \"of\", \"set\"]);\n\ntype Token = {\n type: InternalTokenType | \"uncolored\";\n value: string;\n};\n\n/**\n * RegExp to test for newlines in terminal.\n */\nconst NEWLINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\n/**\n * RegExp to test for the three types of brackets.\n */\nconst BRACKET = /^[()[\\]{}]$/;\n\nlet tokenize: (\n text: string,\n) => Generator<{ type: InternalTokenType | \"uncolored\"; value: string }>;\n\nif (process.env.BABEL_8_BREAKING) {\n /**\n * Get the type of token, specifying punctuator type.\n */\n const getTokenType = function (\n token: JSToken | JSXToken,\n ): InternalTokenType | \"uncolored\" {\n if (token.type === \"IdentifierName\") {\n if (\n isKeyword(token.value) ||\n isStrictReservedWord(token.value, true) ||\n sometimesKeywords.has(token.value)\n ) {\n return \"keyword\";\n }\n\n if (token.value[0] !== token.value[0].toLowerCase()) {\n return \"capitalized\";\n }\n }\n\n if (token.type === \"Punctuator\" && BRACKET.test(token.value)) {\n return \"uncolored\";\n }\n\n if (token.type === \"Invalid\" && token.value === \"@\") {\n return \"punctuator\";\n }\n\n switch (token.type) {\n case \"NumericLiteral\":\n return \"number\";\n\n case \"StringLiteral\":\n case \"JSXString\":\n case \"NoSubstitutionTemplate\":\n return \"string\";\n\n case \"RegularExpressionLiteral\":\n return \"regex\";\n\n case \"Punctuator\":\n case \"JSXPunctuator\":\n return \"punctuator\";\n\n case \"MultiLineComment\":\n case \"SingleLineComment\":\n return \"comment\";\n\n case \"Invalid\":\n case \"JSXInvalid\":\n return \"invalid\";\n\n case \"JSXIdentifier\":\n return \"jsxIdentifier\";\n\n default:\n return \"uncolored\";\n }\n };\n\n /**\n * Turn a string of JS into an array of objects.\n */\n tokenize = function* (text: string): Generator<Token> {\n for (const token of jsTokens(text, { jsx: true })) {\n switch (token.type) {\n case \"TemplateHead\":\n yield { type: \"string\", value: token.value.slice(0, -2) };\n yield { type: \"punctuator\", value: \"${\" };\n break;\n\n case \"TemplateMiddle\":\n yield { type: \"punctuator\", value: \"}\" };\n yield { type: \"string\", value: token.value.slice(1, -2) };\n yield { type: \"punctuator\", value: \"${\" };\n break;\n\n case \"TemplateTail\":\n yield { type: \"punctuator\", value: \"}\" };\n yield { type: \"string\", value: token.value.slice(1) };\n break;\n\n default:\n yield {\n type: getTokenType(token),\n value: token.value,\n };\n }\n }\n };\n} else {\n /**\n * RegExp to test for what seems to be a JSX tag name.\n */\n const JSX_TAG = /^[a-z][\\w-]*$/i;\n\n // The token here is defined in js-tokens@4. However we don't bother\n // typing it since the whole block will be removed in Babel 8\n const getTokenType = function (token: any, offset: number, text: string) {\n if (token.type === \"name\") {\n if (\n isKeyword(token.value) ||\n isStrictReservedWord(token.value, true) ||\n sometimesKeywords.has(token.value)\n ) {\n return \"keyword\";\n }\n\n if (\n JSX_TAG.test(token.value) &&\n (text[offset - 1] === \"<\" || text.slice(offset - 2, offset) === \"</\")\n ) {\n return \"jsxIdentifier\";\n }\n\n if (token.value[0] !== token.value[0].toLowerCase()) {\n return \"capitalized\";\n }\n }\n\n if (token.type === \"punctuator\" && BRACKET.test(token.value)) {\n return \"bracket\";\n }\n\n if (\n token.type === \"invalid\" &&\n (token.value === \"@\" || token.value === \"#\")\n ) {\n return \"punctuator\";\n }\n\n return token.type;\n };\n\n tokenize = function* (text: string) {\n let match;\n while ((match = (jsTokens as any).default.exec(text))) {\n const token = (jsTokens as any).matchToToken(match);\n\n yield {\n type: getTokenType(token, match.index, text),\n value: token.value,\n };\n }\n };\n}\n\nexport function highlight(text: string) {\n if (text === \"\") return \"\";\n\n const defs = getDefs(true);\n\n let highlighted = \"\";\n\n for (const { type, value } of tokenize(text)) {\n if (type in defs) {\n highlighted += value\n .split(NEWLINE)\n .map(str => defs[type as InternalTokenType](str))\n .join(\"\\n\");\n } else {\n highlighted += value;\n }\n }\n\n return highlighted;\n}\n","import { getDefs, isColorSupported } from \"./defs.ts\";\nimport { highlight } from \"./highlight.ts\";\n\nexport { highlight };\n\nlet deprecationWarningShown = false;\n\ntype Location = {\n column: number;\n line: number;\n};\n\ntype NodeLocation = {\n end?: Location;\n start: Location;\n};\n\nexport interface Options {\n /** Syntax highlight the code as JavaScript for terminals. default: false */\n highlightCode?: boolean;\n /** The number of lines to show above the error. default: 2 */\n linesAbove?: number;\n /** The number of lines to show below the error. default: 3 */\n linesBelow?: number;\n /**\n * Forcibly syntax highlight the code as JavaScript (for non-terminals);\n * overrides highlightCode.\n * default: false\n */\n forceColor?: boolean;\n /**\n * Pass in a string to be displayed inline (if possible) next to the\n * highlighted location in the code. If it can't be positioned inline,\n * it will be placed above the code frame.\n * default: nothing\n */\n message?: string;\n}\n\n/**\n * RegExp to test for newlines in terminal.\n */\n\nconst NEWLINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\n/**\n * Extract what lines should be marked and highlighted.\n */\n\ntype MarkerLines = Record<number, true | [number, number]>;\n\nfunction getMarkerLines(\n loc: NodeLocation,\n source: Array<string>,\n opts: Options,\n): {\n start: number;\n end: number;\n markerLines: MarkerLines;\n} {\n const startLoc: Location = {\n column: 0,\n line: -1,\n ...loc.start,\n };\n const endLoc: Location = {\n ...startLoc,\n ...loc.end,\n };\n const { linesAbove = 2, linesBelow = 3 } = opts || {};\n const startLine = startLoc.line;\n const startColumn = startLoc.column;\n const endLine = endLoc.line;\n const endColumn = endLoc.column;\n\n let start = Math.max(startLine - (linesAbove + 1), 0);\n let end = Math.min(source.length, endLine + linesBelow);\n\n if (startLine === -1) {\n start = 0;\n }\n\n if (endLine === -1) {\n end = source.length;\n }\n\n const lineDiff = endLine - startLine;\n const markerLines: MarkerLines = {};\n\n if (lineDiff) {\n for (let i = 0; i <= lineDiff; i++) {\n const lineNumber = i + startLine;\n\n if (!startColumn) {\n markerLines[lineNumber] = true;\n } else if (i === 0) {\n const sourceLength = source[lineNumber - 1].length;\n\n markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];\n } else if (i === lineDiff) {\n markerLines[lineNumber] = [0, endColumn];\n } else {\n const sourceLength = source[lineNumber - i].length;\n\n markerLines[lineNumber] = [0, sourceLength];\n }\n }\n } else {\n if (startColumn === endColumn) {\n if (startColumn) {\n markerLines[startLine] = [startColumn, 0];\n } else {\n markerLines[startLine] = true;\n }\n } else {\n markerLines[startLine] = [startColumn, endColumn - startColumn];\n }\n }\n\n return { start, end, markerLines };\n}\n\nexport function codeFrameColumns(\n rawLines: string,\n loc: NodeLocation,\n opts: Options = {},\n): string {\n const shouldHighlight =\n opts.forceColor || (isColorSupported() && opts.highlightCode);\n const defs = getDefs(shouldHighlight);\n\n const lines = rawLines.split(NEWLINE);\n const { start, end, markerLines } = getMarkerLines(loc, lines, opts);\n const hasColumns = loc.start && typeof loc.start.column === \"number\";\n\n const numberMaxWidth = String(end).length;\n\n const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;\n\n let frame = highlightedLines\n .split(NEWLINE, end)\n .slice(start, end)\n .map((line, index) => {\n const number = start + 1 + index;\n const paddedNumber = ` ${number}`.slice(-numberMaxWidth);\n const gutter = ` ${paddedNumber} |`;\n const hasMarker = markerLines[number];\n const lastMarkerLine = !markerLines[number + 1];\n if (hasMarker) {\n let markerLine = \"\";\n if (Array.isArray(hasMarker)) {\n const markerSpacing = line\n .slice(0, Math.max(hasMarker[0] - 1, 0))\n .replace(/[^\\t]/g, \" \");\n const numberOfMarkers = hasMarker[1] || 1;\n\n markerLine = [\n \"\\n \",\n defs.gutter(gutter.replace(/\\d/g, \" \")),\n \" \",\n markerSpacing,\n defs.marker(\"^\").repeat(numberOfMarkers),\n ].join(\"\");\n\n if (lastMarkerLine && opts.message) {\n markerLine += \" \" + defs.message(opts.message);\n }\n }\n return [\n defs.marker(\">\"),\n defs.gutter(gutter),\n line.length > 0 ? ` ${line}` : \"\",\n markerLine,\n ].join(\"\");\n } else {\n return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : \"\"}`;\n }\n })\n .join(\"\\n\");\n\n if (opts.message && !hasColumns) {\n frame = `${\" \".repeat(numberMaxWidth + 1)}${opts.message}\\n${frame}`;\n }\n\n if (shouldHighlight) {\n return defs.reset(frame);\n } else {\n return frame;\n }\n}\n\n/**\n * Create a code frame, adding line numbers, code highlighting, and pointing to a given position.\n */\n\nexport default function (\n rawLines: string,\n lineNumber: number,\n colNumber?: number | null,\n opts: Options = {},\n): string {\n if (!deprecationWarningShown) {\n deprecationWarningShown = true;\n\n const message =\n \"Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.\";\n\n if (process.emitWarning) {\n // A string is directly supplied to emitWarning, because when supplying an\n // Error object node throws in the tests because of different contexts\n process.emitWarning(message, \"DeprecationWarning\");\n } else {\n const deprecationError = new Error(message);\n deprecationError.name = \"DeprecationWarning\";\n console.warn(new Error(message));\n }\n }\n\n colNumber = Math.max(colNumber, 0);\n\n const location: NodeLocation = {\n start: { column: colNumber, line: lineNumber },\n };\n\n return codeFrameColumns(rawLines, location, opts);\n}\n"],"names":["isColorSupported","process","env","FORCE_COLOR","picocolors","compose","f","g","v","buildDefs","colors","keyword","cyan","capitalized","yellow","jsxIdentifier","punctuator","number","magenta","string","green","regex","comment","gray","invalid","white","bgRed","bold","gutter","marker","red","message","reset","defsOn","createColors","defsOff","getDefs","enabled","sometimesKeywords","Set","NEWLINE","BRACKET","tokenize","JSX_TAG","getTokenType","token","offset","text","type","isKeyword","value","isStrictReservedWord","has","test","slice","toLowerCase","match","jsTokens","default","exec","matchToToken","index","highlight","defs","highlighted","split","map","str","join","deprecationWarningShown","getMarkerLines","loc","source","opts","startLoc","Object","assign","column","line","start","endLoc","end","linesAbove","linesBelow","startLine","startColumn","endLine","endColumn","Math","max","min","length","lineDiff","markerLines","i","lineNumber","sourceLength","codeFrameColumns","rawLines","shouldHighlight","forceColor","highlightCode","lines","hasColumns","numberMaxWidth","String","highlightedLines","frame","paddedNumber","hasMarker","lastMarkerLine","markerLine","Array","isArray","markerSpacing","replace","numberOfMarkers","repeat","colNumber","emitWarning","deprecationError","Error","name","console","warn","location"],"mappings":";;;;;;;;AAGO,SAASA,gBAAgBA,GAAG;EACjC,QAEE,OAAOC,OAAO,KAAK,QAAQ,KACxBA,OAAO,CAACC,GAAG,CAACC,WAAW,KAAK,GAAG,IAAIF,OAAO,CAACC,GAAG,CAACC,WAAW,KAAK,OAAO,CAAC,GACtE,KAAK,GACLC,UAAU,CAACJ,gBAAAA;AAAgB,IAAA;AAEnC,CAAA;AAmBA,MAAMK,OAAkE,GACtEA,CAACC,CAAC,EAAEC,CAAC,KAAKC,CAAC,IACTF,CAAC,CAACC,CAAC,CAACC,CAAC,CAAC,CAAC,CAAA;AAKX,SAASC,SAASA,CAACC,MAAc,EAAQ;EACvC,OAAO;IACLC,OAAO,EAAED,MAAM,CAACE,IAAI;IACpBC,WAAW,EAAEH,MAAM,CAACI,MAAM;IAC1BC,aAAa,EAAEL,MAAM,CAACI,MAAM;IAC5BE,UAAU,EAAEN,MAAM,CAACI,MAAM;IACzBG,MAAM,EAAEP,MAAM,CAACQ,OAAO;IACtBC,MAAM,EAAET,MAAM,CAACU,KAAK;IACpBC,KAAK,EAAEX,MAAM,CAACQ,OAAO;IACrBI,OAAO,EAAEZ,MAAM,CAACa,IAAI;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;;;"}
|
frontend/node_modules/@babel/code-frame/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/code-frame",
|
| 3 |
+
"version": "7.27.1",
|
| 4 |
+
"description": "Generate errors that contain a code frame that point to source locations.",
|
| 5 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 6 |
+
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
|
| 7 |
+
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
|
| 8 |
+
"license": "MIT",
|
| 9 |
+
"publishConfig": {
|
| 10 |
+
"access": "public"
|
| 11 |
+
},
|
| 12 |
+
"repository": {
|
| 13 |
+
"type": "git",
|
| 14 |
+
"url": "https://github.com/babel/babel.git",
|
| 15 |
+
"directory": "packages/babel-code-frame"
|
| 16 |
+
},
|
| 17 |
+
"main": "./lib/index.js",
|
| 18 |
+
"dependencies": {
|
| 19 |
+
"@babel/helper-validator-identifier": "^7.27.1",
|
| 20 |
+
"js-tokens": "^4.0.0",
|
| 21 |
+
"picocolors": "^1.1.1"
|
| 22 |
+
},
|
| 23 |
+
"devDependencies": {
|
| 24 |
+
"import-meta-resolve": "^4.1.0",
|
| 25 |
+
"strip-ansi": "^4.0.0"
|
| 26 |
+
},
|
| 27 |
+
"engines": {
|
| 28 |
+
"node": ">=6.9.0"
|
| 29 |
+
},
|
| 30 |
+
"type": "commonjs"
|
| 31 |
+
}
|
frontend/node_modules/@babel/compat-data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/@babel/compat-data/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/compat-data
|
| 2 |
+
|
| 3 |
+
> The compat-data to determine required Babel plugins
|
| 4 |
+
|
| 5 |
+
See our website [@babel/compat-data](https://babeljs.io/docs/babel-compat-data) for more information.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save @babel/compat-data
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/compat-data
|
| 19 |
+
```
|
frontend/node_modules/@babel/compat-data/corejs2-built-ins.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2
|
| 2 |
+
module.exports = require("./data/corejs2-built-ins.json");
|
frontend/node_modules/@babel/compat-data/corejs3-shipped-proposals.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Todo (Babel 8): remove this file now that it is included in babel-plugin-polyfill-corejs3
|
| 2 |
+
module.exports = require("./data/corejs3-shipped-proposals.json");
|
frontend/node_modules/@babel/compat-data/data/corejs2-built-ins.json
ADDED
|
@@ -0,0 +1,2106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
| 1 |
+
{
|
| 2 |
+
"es6.array.copy-within": {
|
| 3 |
+
"chrome": "45",
|
| 4 |
+
"opera": "32",
|
| 5 |
+
"edge": "12",
|
| 6 |
+
"firefox": "32",
|
| 7 |
+
"safari": "9",
|
| 8 |
+
"node": "4",
|
| 9 |
+
"deno": "1",
|
| 10 |
+
"ios": "9",
|
| 11 |
+
"samsung": "5",
|
| 12 |
+
"rhino": "1.7.13",
|
| 13 |
+
"opera_mobile": "32",
|
| 14 |
+
"electron": "0.31"
|
| 15 |
+
},
|
| 16 |
+
"es6.array.every": {
|
| 17 |
+
"chrome": "5",
|
| 18 |
+
"opera": "10.10",
|
| 19 |
+
"edge": "12",
|
| 20 |
+
"firefox": "2",
|
| 21 |
+
"safari": "3.1",
|
| 22 |
+
"node": "0.4",
|
| 23 |
+
"deno": "1",
|
| 24 |
+
"ie": "9",
|
| 25 |
+
"android": "4",
|
| 26 |
+
"ios": "6",
|
| 27 |
+
"phantom": "1.9",
|
| 28 |
+
"samsung": "1",
|
| 29 |
+
"rhino": "1.7.13",
|
| 30 |
+
"opera_mobile": "10.1",
|
| 31 |
+
"electron": "0.20"
|
| 32 |
+
},
|
| 33 |
+
"es6.array.fill": {
|
| 34 |
+
"chrome": "45",
|
| 35 |
+
"opera": "32",
|
| 36 |
+
"edge": "12",
|
| 37 |
+
"firefox": "31",
|
| 38 |
+
"safari": "7.1",
|
| 39 |
+
"node": "4",
|
| 40 |
+
"deno": "1",
|
| 41 |
+
"ios": "8",
|
| 42 |
+
"samsung": "5",
|
| 43 |
+
"rhino": "1.7.13",
|
| 44 |
+
"opera_mobile": "32",
|
| 45 |
+
"electron": "0.31"
|
| 46 |
+
},
|
| 47 |
+
"es6.array.filter": {
|
| 48 |
+
"chrome": "51",
|
| 49 |
+
"opera": "38",
|
| 50 |
+
"edge": "13",
|
| 51 |
+
"firefox": "48",
|
| 52 |
+
"safari": "10",
|
| 53 |
+
"node": "6.5",
|
| 54 |
+
"deno": "1",
|
| 55 |
+
"ios": "10",
|
| 56 |
+
"samsung": "5",
|
| 57 |
+
"opera_mobile": "41",
|
| 58 |
+
"electron": "1.2"
|
| 59 |
+
},
|
| 60 |
+
"es6.array.find": {
|
| 61 |
+
"chrome": "45",
|
| 62 |
+
"opera": "32",
|
| 63 |
+
"edge": "12",
|
| 64 |
+
"firefox": "25",
|
| 65 |
+
"safari": "7.1",
|
| 66 |
+
"node": "4",
|
| 67 |
+
"deno": "1",
|
| 68 |
+
"ios": "8",
|
| 69 |
+
"samsung": "5",
|
| 70 |
+
"rhino": "1.7.13",
|
| 71 |
+
"opera_mobile": "32",
|
| 72 |
+
"electron": "0.31"
|
| 73 |
+
},
|
| 74 |
+
"es6.array.find-index": {
|
| 75 |
+
"chrome": "45",
|
| 76 |
+
"opera": "32",
|
| 77 |
+
"edge": "12",
|
| 78 |
+
"firefox": "25",
|
| 79 |
+
"safari": "7.1",
|
| 80 |
+
"node": "4",
|
| 81 |
+
"deno": "1",
|
| 82 |
+
"ios": "8",
|
| 83 |
+
"samsung": "5",
|
| 84 |
+
"rhino": "1.7.13",
|
| 85 |
+
"opera_mobile": "32",
|
| 86 |
+
"electron": "0.31"
|
| 87 |
+
},
|
| 88 |
+
"es7.array.flat-map": {
|
| 89 |
+
"chrome": "69",
|
| 90 |
+
"opera": "56",
|
| 91 |
+
"edge": "79",
|
| 92 |
+
"firefox": "62",
|
| 93 |
+
"safari": "12",
|
| 94 |
+
"node": "11",
|
| 95 |
+
"deno": "1",
|
| 96 |
+
"ios": "12",
|
| 97 |
+
"samsung": "10",
|
| 98 |
+
"rhino": "1.7.15",
|
| 99 |
+
"opera_mobile": "48",
|
| 100 |
+
"electron": "4.0"
|
| 101 |
+
},
|
| 102 |
+
"es6.array.for-each": {
|
| 103 |
+
"chrome": "5",
|
| 104 |
+
"opera": "10.10",
|
| 105 |
+
"edge": "12",
|
| 106 |
+
"firefox": "2",
|
| 107 |
+
"safari": "3.1",
|
| 108 |
+
"node": "0.4",
|
| 109 |
+
"deno": "1",
|
| 110 |
+
"ie": "9",
|
| 111 |
+
"android": "4",
|
| 112 |
+
"ios": "6",
|
| 113 |
+
"phantom": "1.9",
|
| 114 |
+
"samsung": "1",
|
| 115 |
+
"rhino": "1.7.13",
|
| 116 |
+
"opera_mobile": "10.1",
|
| 117 |
+
"electron": "0.20"
|
| 118 |
+
},
|
| 119 |
+
"es6.array.from": {
|
| 120 |
+
"chrome": "51",
|
| 121 |
+
"opera": "38",
|
| 122 |
+
"edge": "15",
|
| 123 |
+
"firefox": "36",
|
| 124 |
+
"safari": "10",
|
| 125 |
+
"node": "6.5",
|
| 126 |
+
"deno": "1",
|
| 127 |
+
"ios": "10",
|
| 128 |
+
"samsung": "5",
|
| 129 |
+
"rhino": "1.7.15",
|
| 130 |
+
"opera_mobile": "41",
|
| 131 |
+
"electron": "1.2"
|
| 132 |
+
},
|
| 133 |
+
"es7.array.includes": {
|
| 134 |
+
"chrome": "47",
|
| 135 |
+
"opera": "34",
|
| 136 |
+
"edge": "14",
|
| 137 |
+
"firefox": "102",
|
| 138 |
+
"safari": "10",
|
| 139 |
+
"node": "6",
|
| 140 |
+
"deno": "1",
|
| 141 |
+
"ios": "10",
|
| 142 |
+
"samsung": "5",
|
| 143 |
+
"rhino": "1.8",
|
| 144 |
+
"opera_mobile": "34",
|
| 145 |
+
"electron": "0.36"
|
| 146 |
+
},
|
| 147 |
+
"es6.array.index-of": {
|
| 148 |
+
"chrome": "5",
|
| 149 |
+
"opera": "10.10",
|
| 150 |
+
"edge": "12",
|
| 151 |
+
"firefox": "2",
|
| 152 |
+
"safari": "3.1",
|
| 153 |
+
"node": "0.4",
|
| 154 |
+
"deno": "1",
|
| 155 |
+
"ie": "9",
|
| 156 |
+
"android": "4",
|
| 157 |
+
"ios": "6",
|
| 158 |
+
"phantom": "1.9",
|
| 159 |
+
"samsung": "1",
|
| 160 |
+
"rhino": "1.7.13",
|
| 161 |
+
"opera_mobile": "10.1",
|
| 162 |
+
"electron": "0.20"
|
| 163 |
+
},
|
| 164 |
+
"es6.array.is-array": {
|
| 165 |
+
"chrome": "5",
|
| 166 |
+
"opera": "10.50",
|
| 167 |
+
"edge": "12",
|
| 168 |
+
"firefox": "4",
|
| 169 |
+
"safari": "4",
|
| 170 |
+
"node": "0.4",
|
| 171 |
+
"deno": "1",
|
| 172 |
+
"ie": "9",
|
| 173 |
+
"android": "4",
|
| 174 |
+
"ios": "6",
|
| 175 |
+
"phantom": "1.9",
|
| 176 |
+
"samsung": "1",
|
| 177 |
+
"rhino": "1.7.13",
|
| 178 |
+
"opera_mobile": "10.1",
|
| 179 |
+
"electron": "0.20"
|
| 180 |
+
},
|
| 181 |
+
"es6.array.iterator": {
|
| 182 |
+
"chrome": "66",
|
| 183 |
+
"opera": "53",
|
| 184 |
+
"edge": "12",
|
| 185 |
+
"firefox": "60",
|
| 186 |
+
"safari": "9",
|
| 187 |
+
"node": "10",
|
| 188 |
+
"deno": "1",
|
| 189 |
+
"ios": "9",
|
| 190 |
+
"samsung": "9",
|
| 191 |
+
"rhino": "1.7.13",
|
| 192 |
+
"opera_mobile": "47",
|
| 193 |
+
"electron": "3.0"
|
| 194 |
+
},
|
| 195 |
+
"es6.array.last-index-of": {
|
| 196 |
+
"chrome": "5",
|
| 197 |
+
"opera": "10.10",
|
| 198 |
+
"edge": "12",
|
| 199 |
+
"firefox": "2",
|
| 200 |
+
"safari": "3.1",
|
| 201 |
+
"node": "0.4",
|
| 202 |
+
"deno": "1",
|
| 203 |
+
"ie": "9",
|
| 204 |
+
"android": "4",
|
| 205 |
+
"ios": "6",
|
| 206 |
+
"phantom": "1.9",
|
| 207 |
+
"samsung": "1",
|
| 208 |
+
"rhino": "1.7.13",
|
| 209 |
+
"opera_mobile": "10.1",
|
| 210 |
+
"electron": "0.20"
|
| 211 |
+
},
|
| 212 |
+
"es6.array.map": {
|
| 213 |
+
"chrome": "51",
|
| 214 |
+
"opera": "38",
|
| 215 |
+
"edge": "13",
|
| 216 |
+
"firefox": "48",
|
| 217 |
+
"safari": "10",
|
| 218 |
+
"node": "6.5",
|
| 219 |
+
"deno": "1",
|
| 220 |
+
"ios": "10",
|
| 221 |
+
"samsung": "5",
|
| 222 |
+
"opera_mobile": "41",
|
| 223 |
+
"electron": "1.2"
|
| 224 |
+
},
|
| 225 |
+
"es6.array.of": {
|
| 226 |
+
"chrome": "45",
|
| 227 |
+
"opera": "32",
|
| 228 |
+
"edge": "12",
|
| 229 |
+
"firefox": "25",
|
| 230 |
+
"safari": "9",
|
| 231 |
+
"node": "4",
|
| 232 |
+
"deno": "1",
|
| 233 |
+
"ios": "9",
|
| 234 |
+
"samsung": "5",
|
| 235 |
+
"rhino": "1.7.13",
|
| 236 |
+
"opera_mobile": "32",
|
| 237 |
+
"electron": "0.31"
|
| 238 |
+
},
|
| 239 |
+
"es6.array.reduce": {
|
| 240 |
+
"chrome": "5",
|
| 241 |
+
"opera": "10.50",
|
| 242 |
+
"edge": "12",
|
| 243 |
+
"firefox": "3",
|
| 244 |
+
"safari": "4",
|
| 245 |
+
"node": "0.4",
|
| 246 |
+
"deno": "1",
|
| 247 |
+
"ie": "9",
|
| 248 |
+
"android": "4",
|
| 249 |
+
"ios": "6",
|
| 250 |
+
"phantom": "1.9",
|
| 251 |
+
"samsung": "1",
|
| 252 |
+
"rhino": "1.7.13",
|
| 253 |
+
"opera_mobile": "10.1",
|
| 254 |
+
"electron": "0.20"
|
| 255 |
+
},
|
| 256 |
+
"es6.array.reduce-right": {
|
| 257 |
+
"chrome": "5",
|
| 258 |
+
"opera": "10.50",
|
| 259 |
+
"edge": "12",
|
| 260 |
+
"firefox": "3",
|
| 261 |
+
"safari": "4",
|
| 262 |
+
"node": "0.4",
|
| 263 |
+
"deno": "1",
|
| 264 |
+
"ie": "9",
|
| 265 |
+
"android": "4",
|
| 266 |
+
"ios": "6",
|
| 267 |
+
"phantom": "1.9",
|
| 268 |
+
"samsung": "1",
|
| 269 |
+
"rhino": "1.7.13",
|
| 270 |
+
"opera_mobile": "10.1",
|
| 271 |
+
"electron": "0.20"
|
| 272 |
+
},
|
| 273 |
+
"es6.array.slice": {
|
| 274 |
+
"chrome": "51",
|
| 275 |
+
"opera": "38",
|
| 276 |
+
"edge": "13",
|
| 277 |
+
"firefox": "48",
|
| 278 |
+
"safari": "10",
|
| 279 |
+
"node": "6.5",
|
| 280 |
+
"deno": "1",
|
| 281 |
+
"ios": "10",
|
| 282 |
+
"samsung": "5",
|
| 283 |
+
"opera_mobile": "41",
|
| 284 |
+
"electron": "1.2"
|
| 285 |
+
},
|
| 286 |
+
"es6.array.some": {
|
| 287 |
+
"chrome": "5",
|
| 288 |
+
"opera": "10.10",
|
| 289 |
+
"edge": "12",
|
| 290 |
+
"firefox": "2",
|
| 291 |
+
"safari": "3.1",
|
| 292 |
+
"node": "0.4",
|
| 293 |
+
"deno": "1",
|
| 294 |
+
"ie": "9",
|
| 295 |
+
"android": "4",
|
| 296 |
+
"ios": "6",
|
| 297 |
+
"phantom": "1.9",
|
| 298 |
+
"samsung": "1",
|
| 299 |
+
"rhino": "1.7.13",
|
| 300 |
+
"opera_mobile": "10.1",
|
| 301 |
+
"electron": "0.20"
|
| 302 |
+
},
|
| 303 |
+
"es6.array.sort": {
|
| 304 |
+
"chrome": "63",
|
| 305 |
+
"opera": "50",
|
| 306 |
+
"edge": "12",
|
| 307 |
+
"firefox": "5",
|
| 308 |
+
"safari": "12",
|
| 309 |
+
"node": "10",
|
| 310 |
+
"deno": "1",
|
| 311 |
+
"ie": "9",
|
| 312 |
+
"ios": "12",
|
| 313 |
+
"samsung": "8",
|
| 314 |
+
"rhino": "1.7.13",
|
| 315 |
+
"opera_mobile": "46",
|
| 316 |
+
"electron": "3.0"
|
| 317 |
+
},
|
| 318 |
+
"es6.array.species": {
|
| 319 |
+
"chrome": "51",
|
| 320 |
+
"opera": "38",
|
| 321 |
+
"edge": "13",
|
| 322 |
+
"firefox": "48",
|
| 323 |
+
"safari": "10",
|
| 324 |
+
"node": "6.5",
|
| 325 |
+
"deno": "1",
|
| 326 |
+
"ios": "10",
|
| 327 |
+
"samsung": "5",
|
| 328 |
+
"rhino": "1.7.15",
|
| 329 |
+
"opera_mobile": "41",
|
| 330 |
+
"electron": "1.2"
|
| 331 |
+
},
|
| 332 |
+
"es6.date.now": {
|
| 333 |
+
"chrome": "5",
|
| 334 |
+
"opera": "10.50",
|
| 335 |
+
"edge": "12",
|
| 336 |
+
"firefox": "2",
|
| 337 |
+
"safari": "4",
|
| 338 |
+
"node": "0.4",
|
| 339 |
+
"deno": "1",
|
| 340 |
+
"ie": "9",
|
| 341 |
+
"android": "4",
|
| 342 |
+
"ios": "6",
|
| 343 |
+
"phantom": "1.9",
|
| 344 |
+
"samsung": "1",
|
| 345 |
+
"rhino": "1.7.13",
|
| 346 |
+
"opera_mobile": "10.1",
|
| 347 |
+
"electron": "0.20"
|
| 348 |
+
},
|
| 349 |
+
"es6.date.to-iso-string": {
|
| 350 |
+
"chrome": "5",
|
| 351 |
+
"opera": "10.50",
|
| 352 |
+
"edge": "12",
|
| 353 |
+
"firefox": "3.5",
|
| 354 |
+
"safari": "4",
|
| 355 |
+
"node": "0.4",
|
| 356 |
+
"deno": "1",
|
| 357 |
+
"ie": "9",
|
| 358 |
+
"android": "4",
|
| 359 |
+
"ios": "6",
|
| 360 |
+
"phantom": "1.9",
|
| 361 |
+
"samsung": "1",
|
| 362 |
+
"rhino": "1.7.13",
|
| 363 |
+
"opera_mobile": "10.1",
|
| 364 |
+
"electron": "0.20"
|
| 365 |
+
},
|
| 366 |
+
"es6.date.to-json": {
|
| 367 |
+
"chrome": "5",
|
| 368 |
+
"opera": "12.10",
|
| 369 |
+
"edge": "12",
|
| 370 |
+
"firefox": "4",
|
| 371 |
+
"safari": "10",
|
| 372 |
+
"node": "0.4",
|
| 373 |
+
"deno": "1",
|
| 374 |
+
"ie": "9",
|
| 375 |
+
"android": "4",
|
| 376 |
+
"ios": "10",
|
| 377 |
+
"samsung": "1",
|
| 378 |
+
"rhino": "1.7.13",
|
| 379 |
+
"opera_mobile": "12.1",
|
| 380 |
+
"electron": "0.20"
|
| 381 |
+
},
|
| 382 |
+
"es6.date.to-primitive": {
|
| 383 |
+
"chrome": "47",
|
| 384 |
+
"opera": "34",
|
| 385 |
+
"edge": "15",
|
| 386 |
+
"firefox": "44",
|
| 387 |
+
"safari": "10",
|
| 388 |
+
"node": "6",
|
| 389 |
+
"deno": "1",
|
| 390 |
+
"ios": "10",
|
| 391 |
+
"samsung": "5",
|
| 392 |
+
"rhino": "1.8",
|
| 393 |
+
"opera_mobile": "34",
|
| 394 |
+
"electron": "0.36"
|
| 395 |
+
},
|
| 396 |
+
"es6.date.to-string": {
|
| 397 |
+
"chrome": "5",
|
| 398 |
+
"opera": "10.50",
|
| 399 |
+
"edge": "12",
|
| 400 |
+
"firefox": "2",
|
| 401 |
+
"safari": "3.1",
|
| 402 |
+
"node": "0.4",
|
| 403 |
+
"deno": "1",
|
| 404 |
+
"ie": "10",
|
| 405 |
+
"android": "4",
|
| 406 |
+
"ios": "6",
|
| 407 |
+
"phantom": "1.9",
|
| 408 |
+
"samsung": "1",
|
| 409 |
+
"rhino": "1.7.13",
|
| 410 |
+
"opera_mobile": "10.1",
|
| 411 |
+
"electron": "0.20"
|
| 412 |
+
},
|
| 413 |
+
"es6.function.bind": {
|
| 414 |
+
"chrome": "7",
|
| 415 |
+
"opera": "12",
|
| 416 |
+
"edge": "12",
|
| 417 |
+
"firefox": "4",
|
| 418 |
+
"safari": "5.1",
|
| 419 |
+
"node": "0.4",
|
| 420 |
+
"deno": "1",
|
| 421 |
+
"ie": "9",
|
| 422 |
+
"android": "4",
|
| 423 |
+
"ios": "6",
|
| 424 |
+
"phantom": "1.9",
|
| 425 |
+
"samsung": "1",
|
| 426 |
+
"rhino": "1.7.13",
|
| 427 |
+
"opera_mobile": "12",
|
| 428 |
+
"electron": "0.20"
|
| 429 |
+
},
|
| 430 |
+
"es6.function.has-instance": {
|
| 431 |
+
"chrome": "51",
|
| 432 |
+
"opera": "38",
|
| 433 |
+
"edge": "15",
|
| 434 |
+
"firefox": "50",
|
| 435 |
+
"safari": "10",
|
| 436 |
+
"node": "6.5",
|
| 437 |
+
"deno": "1",
|
| 438 |
+
"ios": "10",
|
| 439 |
+
"samsung": "5",
|
| 440 |
+
"opera_mobile": "41",
|
| 441 |
+
"electron": "1.2"
|
| 442 |
+
},
|
| 443 |
+
"es6.function.name": {
|
| 444 |
+
"chrome": "5",
|
| 445 |
+
"opera": "10.50",
|
| 446 |
+
"edge": "14",
|
| 447 |
+
"firefox": "2",
|
| 448 |
+
"safari": "4",
|
| 449 |
+
"node": "0.4",
|
| 450 |
+
"deno": "1",
|
| 451 |
+
"android": "4",
|
| 452 |
+
"ios": "6",
|
| 453 |
+
"phantom": "1.9",
|
| 454 |
+
"samsung": "1",
|
| 455 |
+
"rhino": "1.7.13",
|
| 456 |
+
"opera_mobile": "10.1",
|
| 457 |
+
"electron": "0.20"
|
| 458 |
+
},
|
| 459 |
+
"es6.map": {
|
| 460 |
+
"chrome": "51",
|
| 461 |
+
"opera": "38",
|
| 462 |
+
"edge": "15",
|
| 463 |
+
"firefox": "53",
|
| 464 |
+
"safari": "10",
|
| 465 |
+
"node": "6.5",
|
| 466 |
+
"deno": "1",
|
| 467 |
+
"ios": "10",
|
| 468 |
+
"samsung": "5",
|
| 469 |
+
"opera_mobile": "41",
|
| 470 |
+
"electron": "1.2"
|
| 471 |
+
},
|
| 472 |
+
"es6.math.acosh": {
|
| 473 |
+
"chrome": "38",
|
| 474 |
+
"opera": "25",
|
| 475 |
+
"edge": "12",
|
| 476 |
+
"firefox": "25",
|
| 477 |
+
"safari": "7.1",
|
| 478 |
+
"node": "0.12",
|
| 479 |
+
"deno": "1",
|
| 480 |
+
"ios": "8",
|
| 481 |
+
"samsung": "3",
|
| 482 |
+
"rhino": "1.7.13",
|
| 483 |
+
"opera_mobile": "25",
|
| 484 |
+
"electron": "0.20"
|
| 485 |
+
},
|
| 486 |
+
"es6.math.asinh": {
|
| 487 |
+
"chrome": "38",
|
| 488 |
+
"opera": "25",
|
| 489 |
+
"edge": "12",
|
| 490 |
+
"firefox": "25",
|
| 491 |
+
"safari": "7.1",
|
| 492 |
+
"node": "0.12",
|
| 493 |
+
"deno": "1",
|
| 494 |
+
"ios": "8",
|
| 495 |
+
"samsung": "3",
|
| 496 |
+
"rhino": "1.7.13",
|
| 497 |
+
"opera_mobile": "25",
|
| 498 |
+
"electron": "0.20"
|
| 499 |
+
},
|
| 500 |
+
"es6.math.atanh": {
|
| 501 |
+
"chrome": "38",
|
| 502 |
+
"opera": "25",
|
| 503 |
+
"edge": "12",
|
| 504 |
+
"firefox": "25",
|
| 505 |
+
"safari": "7.1",
|
| 506 |
+
"node": "0.12",
|
| 507 |
+
"deno": "1",
|
| 508 |
+
"ios": "8",
|
| 509 |
+
"samsung": "3",
|
| 510 |
+
"rhino": "1.7.13",
|
| 511 |
+
"opera_mobile": "25",
|
| 512 |
+
"electron": "0.20"
|
| 513 |
+
},
|
| 514 |
+
"es6.math.cbrt": {
|
| 515 |
+
"chrome": "38",
|
| 516 |
+
"opera": "25",
|
| 517 |
+
"edge": "12",
|
| 518 |
+
"firefox": "25",
|
| 519 |
+
"safari": "7.1",
|
| 520 |
+
"node": "0.12",
|
| 521 |
+
"deno": "1",
|
| 522 |
+
"ios": "8",
|
| 523 |
+
"samsung": "3",
|
| 524 |
+
"rhino": "1.7.13",
|
| 525 |
+
"opera_mobile": "25",
|
| 526 |
+
"electron": "0.20"
|
| 527 |
+
},
|
| 528 |
+
"es6.math.clz32": {
|
| 529 |
+
"chrome": "38",
|
| 530 |
+
"opera": "25",
|
| 531 |
+
"edge": "12",
|
| 532 |
+
"firefox": "31",
|
| 533 |
+
"safari": "9",
|
| 534 |
+
"node": "0.12",
|
| 535 |
+
"deno": "1",
|
| 536 |
+
"ios": "9",
|
| 537 |
+
"samsung": "3",
|
| 538 |
+
"rhino": "1.7.13",
|
| 539 |
+
"opera_mobile": "25",
|
| 540 |
+
"electron": "0.20"
|
| 541 |
+
},
|
| 542 |
+
"es6.math.cosh": {
|
| 543 |
+
"chrome": "38",
|
| 544 |
+
"opera": "25",
|
| 545 |
+
"edge": "12",
|
| 546 |
+
"firefox": "25",
|
| 547 |
+
"safari": "7.1",
|
| 548 |
+
"node": "0.12",
|
| 549 |
+
"deno": "1",
|
| 550 |
+
"ios": "8",
|
| 551 |
+
"samsung": "3",
|
| 552 |
+
"rhino": "1.7.13",
|
| 553 |
+
"opera_mobile": "25",
|
| 554 |
+
"electron": "0.20"
|
| 555 |
+
},
|
| 556 |
+
"es6.math.expm1": {
|
| 557 |
+
"chrome": "38",
|
| 558 |
+
"opera": "25",
|
| 559 |
+
"edge": "12",
|
| 560 |
+
"firefox": "25",
|
| 561 |
+
"safari": "7.1",
|
| 562 |
+
"node": "0.12",
|
| 563 |
+
"deno": "1",
|
| 564 |
+
"ios": "8",
|
| 565 |
+
"samsung": "3",
|
| 566 |
+
"rhino": "1.7.13",
|
| 567 |
+
"opera_mobile": "25",
|
| 568 |
+
"electron": "0.20"
|
| 569 |
+
},
|
| 570 |
+
"es6.math.fround": {
|
| 571 |
+
"chrome": "38",
|
| 572 |
+
"opera": "25",
|
| 573 |
+
"edge": "12",
|
| 574 |
+
"firefox": "26",
|
| 575 |
+
"safari": "7.1",
|
| 576 |
+
"node": "0.12",
|
| 577 |
+
"deno": "1",
|
| 578 |
+
"ios": "8",
|
| 579 |
+
"samsung": "3",
|
| 580 |
+
"rhino": "1.7.13",
|
| 581 |
+
"opera_mobile": "25",
|
| 582 |
+
"electron": "0.20"
|
| 583 |
+
},
|
| 584 |
+
"es6.math.hypot": {
|
| 585 |
+
"chrome": "38",
|
| 586 |
+
"opera": "25",
|
| 587 |
+
"edge": "12",
|
| 588 |
+
"firefox": "27",
|
| 589 |
+
"safari": "7.1",
|
| 590 |
+
"node": "0.12",
|
| 591 |
+
"deno": "1",
|
| 592 |
+
"ios": "8",
|
| 593 |
+
"samsung": "3",
|
| 594 |
+
"rhino": "1.7.13",
|
| 595 |
+
"opera_mobile": "25",
|
| 596 |
+
"electron": "0.20"
|
| 597 |
+
},
|
| 598 |
+
"es6.math.imul": {
|
| 599 |
+
"chrome": "30",
|
| 600 |
+
"opera": "17",
|
| 601 |
+
"edge": "12",
|
| 602 |
+
"firefox": "23",
|
| 603 |
+
"safari": "7",
|
| 604 |
+
"node": "0.12",
|
| 605 |
+
"deno": "1",
|
| 606 |
+
"android": "4.4",
|
| 607 |
+
"ios": "7",
|
| 608 |
+
"samsung": "2",
|
| 609 |
+
"rhino": "1.7.13",
|
| 610 |
+
"opera_mobile": "18",
|
| 611 |
+
"electron": "0.20"
|
| 612 |
+
},
|
| 613 |
+
"es6.math.log1p": {
|
| 614 |
+
"chrome": "38",
|
| 615 |
+
"opera": "25",
|
| 616 |
+
"edge": "12",
|
| 617 |
+
"firefox": "25",
|
| 618 |
+
"safari": "7.1",
|
| 619 |
+
"node": "0.12",
|
| 620 |
+
"deno": "1",
|
| 621 |
+
"ios": "8",
|
| 622 |
+
"samsung": "3",
|
| 623 |
+
"rhino": "1.7.13",
|
| 624 |
+
"opera_mobile": "25",
|
| 625 |
+
"electron": "0.20"
|
| 626 |
+
},
|
| 627 |
+
"es6.math.log10": {
|
| 628 |
+
"chrome": "38",
|
| 629 |
+
"opera": "25",
|
| 630 |
+
"edge": "12",
|
| 631 |
+
"firefox": "25",
|
| 632 |
+
"safari": "7.1",
|
| 633 |
+
"node": "0.12",
|
| 634 |
+
"deno": "1",
|
| 635 |
+
"ios": "8",
|
| 636 |
+
"samsung": "3",
|
| 637 |
+
"rhino": "1.7.13",
|
| 638 |
+
"opera_mobile": "25",
|
| 639 |
+
"electron": "0.20"
|
| 640 |
+
},
|
| 641 |
+
"es6.math.log2": {
|
| 642 |
+
"chrome": "38",
|
| 643 |
+
"opera": "25",
|
| 644 |
+
"edge": "12",
|
| 645 |
+
"firefox": "25",
|
| 646 |
+
"safari": "7.1",
|
| 647 |
+
"node": "0.12",
|
| 648 |
+
"deno": "1",
|
| 649 |
+
"ios": "8",
|
| 650 |
+
"samsung": "3",
|
| 651 |
+
"rhino": "1.7.13",
|
| 652 |
+
"opera_mobile": "25",
|
| 653 |
+
"electron": "0.20"
|
| 654 |
+
},
|
| 655 |
+
"es6.math.sign": {
|
| 656 |
+
"chrome": "38",
|
| 657 |
+
"opera": "25",
|
| 658 |
+
"edge": "12",
|
| 659 |
+
"firefox": "25",
|
| 660 |
+
"safari": "9",
|
| 661 |
+
"node": "0.12",
|
| 662 |
+
"deno": "1",
|
| 663 |
+
"ios": "9",
|
| 664 |
+
"samsung": "3",
|
| 665 |
+
"rhino": "1.7.13",
|
| 666 |
+
"opera_mobile": "25",
|
| 667 |
+
"electron": "0.20"
|
| 668 |
+
},
|
| 669 |
+
"es6.math.sinh": {
|
| 670 |
+
"chrome": "38",
|
| 671 |
+
"opera": "25",
|
| 672 |
+
"edge": "12",
|
| 673 |
+
"firefox": "25",
|
| 674 |
+
"safari": "7.1",
|
| 675 |
+
"node": "0.12",
|
| 676 |
+
"deno": "1",
|
| 677 |
+
"ios": "8",
|
| 678 |
+
"samsung": "3",
|
| 679 |
+
"rhino": "1.7.13",
|
| 680 |
+
"opera_mobile": "25",
|
| 681 |
+
"electron": "0.20"
|
| 682 |
+
},
|
| 683 |
+
"es6.math.tanh": {
|
| 684 |
+
"chrome": "38",
|
| 685 |
+
"opera": "25",
|
| 686 |
+
"edge": "12",
|
| 687 |
+
"firefox": "25",
|
| 688 |
+
"safari": "7.1",
|
| 689 |
+
"node": "0.12",
|
| 690 |
+
"deno": "1",
|
| 691 |
+
"ios": "8",
|
| 692 |
+
"samsung": "3",
|
| 693 |
+
"rhino": "1.7.13",
|
| 694 |
+
"opera_mobile": "25",
|
| 695 |
+
"electron": "0.20"
|
| 696 |
+
},
|
| 697 |
+
"es6.math.trunc": {
|
| 698 |
+
"chrome": "38",
|
| 699 |
+
"opera": "25",
|
| 700 |
+
"edge": "12",
|
| 701 |
+
"firefox": "25",
|
| 702 |
+
"safari": "7.1",
|
| 703 |
+
"node": "0.12",
|
| 704 |
+
"deno": "1",
|
| 705 |
+
"ios": "8",
|
| 706 |
+
"samsung": "3",
|
| 707 |
+
"rhino": "1.7.13",
|
| 708 |
+
"opera_mobile": "25",
|
| 709 |
+
"electron": "0.20"
|
| 710 |
+
},
|
| 711 |
+
"es6.number.constructor": {
|
| 712 |
+
"chrome": "41",
|
| 713 |
+
"opera": "28",
|
| 714 |
+
"edge": "12",
|
| 715 |
+
"firefox": "36",
|
| 716 |
+
"safari": "9",
|
| 717 |
+
"node": "4",
|
| 718 |
+
"deno": "1",
|
| 719 |
+
"ios": "9",
|
| 720 |
+
"samsung": "3.4",
|
| 721 |
+
"rhino": "1.7.13",
|
| 722 |
+
"opera_mobile": "28",
|
| 723 |
+
"electron": "0.21"
|
| 724 |
+
},
|
| 725 |
+
"es6.number.epsilon": {
|
| 726 |
+
"chrome": "34",
|
| 727 |
+
"opera": "21",
|
| 728 |
+
"edge": "12",
|
| 729 |
+
"firefox": "25",
|
| 730 |
+
"safari": "9",
|
| 731 |
+
"node": "0.12",
|
| 732 |
+
"deno": "1",
|
| 733 |
+
"ios": "9",
|
| 734 |
+
"samsung": "2",
|
| 735 |
+
"rhino": "1.7.14",
|
| 736 |
+
"opera_mobile": "21",
|
| 737 |
+
"electron": "0.20"
|
| 738 |
+
},
|
| 739 |
+
"es6.number.is-finite": {
|
| 740 |
+
"chrome": "19",
|
| 741 |
+
"opera": "15",
|
| 742 |
+
"edge": "12",
|
| 743 |
+
"firefox": "16",
|
| 744 |
+
"safari": "9",
|
| 745 |
+
"node": "0.8",
|
| 746 |
+
"deno": "1",
|
| 747 |
+
"android": "4.1",
|
| 748 |
+
"ios": "9",
|
| 749 |
+
"samsung": "1.5",
|
| 750 |
+
"rhino": "1.7.13",
|
| 751 |
+
"opera_mobile": "14",
|
| 752 |
+
"electron": "0.20"
|
| 753 |
+
},
|
| 754 |
+
"es6.number.is-integer": {
|
| 755 |
+
"chrome": "34",
|
| 756 |
+
"opera": "21",
|
| 757 |
+
"edge": "12",
|
| 758 |
+
"firefox": "16",
|
| 759 |
+
"safari": "9",
|
| 760 |
+
"node": "0.12",
|
| 761 |
+
"deno": "1",
|
| 762 |
+
"ios": "9",
|
| 763 |
+
"samsung": "2",
|
| 764 |
+
"rhino": "1.7.13",
|
| 765 |
+
"opera_mobile": "21",
|
| 766 |
+
"electron": "0.20"
|
| 767 |
+
},
|
| 768 |
+
"es6.number.is-nan": {
|
| 769 |
+
"chrome": "19",
|
| 770 |
+
"opera": "15",
|
| 771 |
+
"edge": "12",
|
| 772 |
+
"firefox": "15",
|
| 773 |
+
"safari": "9",
|
| 774 |
+
"node": "0.8",
|
| 775 |
+
"deno": "1",
|
| 776 |
+
"android": "4.1",
|
| 777 |
+
"ios": "9",
|
| 778 |
+
"samsung": "1.5",
|
| 779 |
+
"rhino": "1.7.13",
|
| 780 |
+
"opera_mobile": "14",
|
| 781 |
+
"electron": "0.20"
|
| 782 |
+
},
|
| 783 |
+
"es6.number.is-safe-integer": {
|
| 784 |
+
"chrome": "34",
|
| 785 |
+
"opera": "21",
|
| 786 |
+
"edge": "12",
|
| 787 |
+
"firefox": "32",
|
| 788 |
+
"safari": "9",
|
| 789 |
+
"node": "0.12",
|
| 790 |
+
"deno": "1",
|
| 791 |
+
"ios": "9",
|
| 792 |
+
"samsung": "2",
|
| 793 |
+
"rhino": "1.7.13",
|
| 794 |
+
"opera_mobile": "21",
|
| 795 |
+
"electron": "0.20"
|
| 796 |
+
},
|
| 797 |
+
"es6.number.max-safe-integer": {
|
| 798 |
+
"chrome": "34",
|
| 799 |
+
"opera": "21",
|
| 800 |
+
"edge": "12",
|
| 801 |
+
"firefox": "31",
|
| 802 |
+
"safari": "9",
|
| 803 |
+
"node": "0.12",
|
| 804 |
+
"deno": "1",
|
| 805 |
+
"ios": "9",
|
| 806 |
+
"samsung": "2",
|
| 807 |
+
"rhino": "1.7.13",
|
| 808 |
+
"opera_mobile": "21",
|
| 809 |
+
"electron": "0.20"
|
| 810 |
+
},
|
| 811 |
+
"es6.number.min-safe-integer": {
|
| 812 |
+
"chrome": "34",
|
| 813 |
+
"opera": "21",
|
| 814 |
+
"edge": "12",
|
| 815 |
+
"firefox": "31",
|
| 816 |
+
"safari": "9",
|
| 817 |
+
"node": "0.12",
|
| 818 |
+
"deno": "1",
|
| 819 |
+
"ios": "9",
|
| 820 |
+
"samsung": "2",
|
| 821 |
+
"rhino": "1.7.13",
|
| 822 |
+
"opera_mobile": "21",
|
| 823 |
+
"electron": "0.20"
|
| 824 |
+
},
|
| 825 |
+
"es6.number.parse-float": {
|
| 826 |
+
"chrome": "34",
|
| 827 |
+
"opera": "21",
|
| 828 |
+
"edge": "12",
|
| 829 |
+
"firefox": "25",
|
| 830 |
+
"safari": "9",
|
| 831 |
+
"node": "0.12",
|
| 832 |
+
"deno": "1",
|
| 833 |
+
"ios": "9",
|
| 834 |
+
"samsung": "2",
|
| 835 |
+
"rhino": "1.7.14",
|
| 836 |
+
"opera_mobile": "21",
|
| 837 |
+
"electron": "0.20"
|
| 838 |
+
},
|
| 839 |
+
"es6.number.parse-int": {
|
| 840 |
+
"chrome": "34",
|
| 841 |
+
"opera": "21",
|
| 842 |
+
"edge": "12",
|
| 843 |
+
"firefox": "25",
|
| 844 |
+
"safari": "9",
|
| 845 |
+
"node": "0.12",
|
| 846 |
+
"deno": "1",
|
| 847 |
+
"ios": "9",
|
| 848 |
+
"samsung": "2",
|
| 849 |
+
"rhino": "1.7.14",
|
| 850 |
+
"opera_mobile": "21",
|
| 851 |
+
"electron": "0.20"
|
| 852 |
+
},
|
| 853 |
+
"es6.object.assign": {
|
| 854 |
+
"chrome": "49",
|
| 855 |
+
"opera": "36",
|
| 856 |
+
"edge": "13",
|
| 857 |
+
"firefox": "36",
|
| 858 |
+
"safari": "10",
|
| 859 |
+
"node": "6",
|
| 860 |
+
"deno": "1",
|
| 861 |
+
"ios": "10",
|
| 862 |
+
"samsung": "5",
|
| 863 |
+
"rhino": "1.8",
|
| 864 |
+
"opera_mobile": "36",
|
| 865 |
+
"electron": "0.37"
|
| 866 |
+
},
|
| 867 |
+
"es6.object.create": {
|
| 868 |
+
"chrome": "5",
|
| 869 |
+
"opera": "12",
|
| 870 |
+
"edge": "12",
|
| 871 |
+
"firefox": "4",
|
| 872 |
+
"safari": "4",
|
| 873 |
+
"node": "0.4",
|
| 874 |
+
"deno": "1",
|
| 875 |
+
"ie": "9",
|
| 876 |
+
"android": "4",
|
| 877 |
+
"ios": "6",
|
| 878 |
+
"phantom": "1.9",
|
| 879 |
+
"samsung": "1",
|
| 880 |
+
"rhino": "1.7.13",
|
| 881 |
+
"opera_mobile": "12",
|
| 882 |
+
"electron": "0.20"
|
| 883 |
+
},
|
| 884 |
+
"es7.object.define-getter": {
|
| 885 |
+
"chrome": "62",
|
| 886 |
+
"opera": "49",
|
| 887 |
+
"edge": "16",
|
| 888 |
+
"firefox": "48",
|
| 889 |
+
"safari": "9",
|
| 890 |
+
"node": "8.10",
|
| 891 |
+
"deno": "1",
|
| 892 |
+
"ios": "9",
|
| 893 |
+
"samsung": "8",
|
| 894 |
+
"opera_mobile": "46",
|
| 895 |
+
"electron": "3.0"
|
| 896 |
+
},
|
| 897 |
+
"es7.object.define-setter": {
|
| 898 |
+
"chrome": "62",
|
| 899 |
+
"opera": "49",
|
| 900 |
+
"edge": "16",
|
| 901 |
+
"firefox": "48",
|
| 902 |
+
"safari": "9",
|
| 903 |
+
"node": "8.10",
|
| 904 |
+
"deno": "1",
|
| 905 |
+
"ios": "9",
|
| 906 |
+
"samsung": "8",
|
| 907 |
+
"opera_mobile": "46",
|
| 908 |
+
"electron": "3.0"
|
| 909 |
+
},
|
| 910 |
+
"es6.object.define-property": {
|
| 911 |
+
"chrome": "5",
|
| 912 |
+
"opera": "12",
|
| 913 |
+
"edge": "12",
|
| 914 |
+
"firefox": "4",
|
| 915 |
+
"safari": "5.1",
|
| 916 |
+
"node": "0.4",
|
| 917 |
+
"deno": "1",
|
| 918 |
+
"ie": "9",
|
| 919 |
+
"android": "4",
|
| 920 |
+
"ios": "6",
|
| 921 |
+
"phantom": "1.9",
|
| 922 |
+
"samsung": "1",
|
| 923 |
+
"rhino": "1.7.13",
|
| 924 |
+
"opera_mobile": "12",
|
| 925 |
+
"electron": "0.20"
|
| 926 |
+
},
|
| 927 |
+
"es6.object.define-properties": {
|
| 928 |
+
"chrome": "5",
|
| 929 |
+
"opera": "12",
|
| 930 |
+
"edge": "12",
|
| 931 |
+
"firefox": "4",
|
| 932 |
+
"safari": "4",
|
| 933 |
+
"node": "0.4",
|
| 934 |
+
"deno": "1",
|
| 935 |
+
"ie": "9",
|
| 936 |
+
"android": "4",
|
| 937 |
+
"ios": "6",
|
| 938 |
+
"phantom": "1.9",
|
| 939 |
+
"samsung": "1",
|
| 940 |
+
"rhino": "1.7.13",
|
| 941 |
+
"opera_mobile": "12",
|
| 942 |
+
"electron": "0.20"
|
| 943 |
+
},
|
| 944 |
+
"es7.object.entries": {
|
| 945 |
+
"chrome": "54",
|
| 946 |
+
"opera": "41",
|
| 947 |
+
"edge": "14",
|
| 948 |
+
"firefox": "47",
|
| 949 |
+
"safari": "10.1",
|
| 950 |
+
"node": "7",
|
| 951 |
+
"deno": "1",
|
| 952 |
+
"ios": "10.3",
|
| 953 |
+
"samsung": "6",
|
| 954 |
+
"rhino": "1.7.14",
|
| 955 |
+
"opera_mobile": "41",
|
| 956 |
+
"electron": "1.4"
|
| 957 |
+
},
|
| 958 |
+
"es6.object.freeze": {
|
| 959 |
+
"chrome": "44",
|
| 960 |
+
"opera": "31",
|
| 961 |
+
"edge": "12",
|
| 962 |
+
"firefox": "35",
|
| 963 |
+
"safari": "9",
|
| 964 |
+
"node": "4",
|
| 965 |
+
"deno": "1",
|
| 966 |
+
"ios": "9",
|
| 967 |
+
"samsung": "4",
|
| 968 |
+
"rhino": "1.7.13",
|
| 969 |
+
"opera_mobile": "32",
|
| 970 |
+
"electron": "0.30"
|
| 971 |
+
},
|
| 972 |
+
"es6.object.get-own-property-descriptor": {
|
| 973 |
+
"chrome": "44",
|
| 974 |
+
"opera": "31",
|
| 975 |
+
"edge": "12",
|
| 976 |
+
"firefox": "35",
|
| 977 |
+
"safari": "9",
|
| 978 |
+
"node": "4",
|
| 979 |
+
"deno": "1",
|
| 980 |
+
"ios": "9",
|
| 981 |
+
"samsung": "4",
|
| 982 |
+
"rhino": "1.7.13",
|
| 983 |
+
"opera_mobile": "32",
|
| 984 |
+
"electron": "0.30"
|
| 985 |
+
},
|
| 986 |
+
"es7.object.get-own-property-descriptors": {
|
| 987 |
+
"chrome": "54",
|
| 988 |
+
"opera": "41",
|
| 989 |
+
"edge": "15",
|
| 990 |
+
"firefox": "50",
|
| 991 |
+
"safari": "10.1",
|
| 992 |
+
"node": "7",
|
| 993 |
+
"deno": "1",
|
| 994 |
+
"ios": "10.3",
|
| 995 |
+
"samsung": "6",
|
| 996 |
+
"rhino": "1.8",
|
| 997 |
+
"opera_mobile": "41",
|
| 998 |
+
"electron": "1.4"
|
| 999 |
+
},
|
| 1000 |
+
"es6.object.get-own-property-names": {
|
| 1001 |
+
"chrome": "40",
|
| 1002 |
+
"opera": "27",
|
| 1003 |
+
"edge": "12",
|
| 1004 |
+
"firefox": "33",
|
| 1005 |
+
"safari": "9",
|
| 1006 |
+
"node": "4",
|
| 1007 |
+
"deno": "1",
|
| 1008 |
+
"ios": "9",
|
| 1009 |
+
"samsung": "3.4",
|
| 1010 |
+
"rhino": "1.7.13",
|
| 1011 |
+
"opera_mobile": "27",
|
| 1012 |
+
"electron": "0.21"
|
| 1013 |
+
},
|
| 1014 |
+
"es6.object.get-prototype-of": {
|
| 1015 |
+
"chrome": "44",
|
| 1016 |
+
"opera": "31",
|
| 1017 |
+
"edge": "12",
|
| 1018 |
+
"firefox": "35",
|
| 1019 |
+
"safari": "9",
|
| 1020 |
+
"node": "4",
|
| 1021 |
+
"deno": "1",
|
| 1022 |
+
"ios": "9",
|
| 1023 |
+
"samsung": "4",
|
| 1024 |
+
"rhino": "1.7.13",
|
| 1025 |
+
"opera_mobile": "32",
|
| 1026 |
+
"electron": "0.30"
|
| 1027 |
+
},
|
| 1028 |
+
"es7.object.lookup-getter": {
|
| 1029 |
+
"chrome": "62",
|
| 1030 |
+
"opera": "49",
|
| 1031 |
+
"edge": "79",
|
| 1032 |
+
"firefox": "36",
|
| 1033 |
+
"safari": "9",
|
| 1034 |
+
"node": "8.10",
|
| 1035 |
+
"deno": "1",
|
| 1036 |
+
"ios": "9",
|
| 1037 |
+
"samsung": "8",
|
| 1038 |
+
"opera_mobile": "46",
|
| 1039 |
+
"electron": "3.0"
|
| 1040 |
+
},
|
| 1041 |
+
"es7.object.lookup-setter": {
|
| 1042 |
+
"chrome": "62",
|
| 1043 |
+
"opera": "49",
|
| 1044 |
+
"edge": "79",
|
| 1045 |
+
"firefox": "36",
|
| 1046 |
+
"safari": "9",
|
| 1047 |
+
"node": "8.10",
|
| 1048 |
+
"deno": "1",
|
| 1049 |
+
"ios": "9",
|
| 1050 |
+
"samsung": "8",
|
| 1051 |
+
"opera_mobile": "46",
|
| 1052 |
+
"electron": "3.0"
|
| 1053 |
+
},
|
| 1054 |
+
"es6.object.prevent-extensions": {
|
| 1055 |
+
"chrome": "44",
|
| 1056 |
+
"opera": "31",
|
| 1057 |
+
"edge": "12",
|
| 1058 |
+
"firefox": "35",
|
| 1059 |
+
"safari": "9",
|
| 1060 |
+
"node": "4",
|
| 1061 |
+
"deno": "1",
|
| 1062 |
+
"ios": "9",
|
| 1063 |
+
"samsung": "4",
|
| 1064 |
+
"rhino": "1.7.13",
|
| 1065 |
+
"opera_mobile": "32",
|
| 1066 |
+
"electron": "0.30"
|
| 1067 |
+
},
|
| 1068 |
+
"es6.object.to-string": {
|
| 1069 |
+
"chrome": "57",
|
| 1070 |
+
"opera": "44",
|
| 1071 |
+
"edge": "15",
|
| 1072 |
+
"firefox": "51",
|
| 1073 |
+
"safari": "10",
|
| 1074 |
+
"node": "8",
|
| 1075 |
+
"deno": "1",
|
| 1076 |
+
"ios": "10",
|
| 1077 |
+
"samsung": "7",
|
| 1078 |
+
"opera_mobile": "43",
|
| 1079 |
+
"electron": "1.7"
|
| 1080 |
+
},
|
| 1081 |
+
"es6.object.is": {
|
| 1082 |
+
"chrome": "19",
|
| 1083 |
+
"opera": "15",
|
| 1084 |
+
"edge": "12",
|
| 1085 |
+
"firefox": "22",
|
| 1086 |
+
"safari": "9",
|
| 1087 |
+
"node": "0.8",
|
| 1088 |
+
"deno": "1",
|
| 1089 |
+
"android": "4.1",
|
| 1090 |
+
"ios": "9",
|
| 1091 |
+
"samsung": "1.5",
|
| 1092 |
+
"rhino": "1.7.13",
|
| 1093 |
+
"opera_mobile": "14",
|
| 1094 |
+
"electron": "0.20"
|
| 1095 |
+
},
|
| 1096 |
+
"es6.object.is-frozen": {
|
| 1097 |
+
"chrome": "44",
|
| 1098 |
+
"opera": "31",
|
| 1099 |
+
"edge": "12",
|
| 1100 |
+
"firefox": "35",
|
| 1101 |
+
"safari": "9",
|
| 1102 |
+
"node": "4",
|
| 1103 |
+
"deno": "1",
|
| 1104 |
+
"ios": "9",
|
| 1105 |
+
"samsung": "4",
|
| 1106 |
+
"rhino": "1.7.13",
|
| 1107 |
+
"opera_mobile": "32",
|
| 1108 |
+
"electron": "0.30"
|
| 1109 |
+
},
|
| 1110 |
+
"es6.object.is-sealed": {
|
| 1111 |
+
"chrome": "44",
|
| 1112 |
+
"opera": "31",
|
| 1113 |
+
"edge": "12",
|
| 1114 |
+
"firefox": "35",
|
| 1115 |
+
"safari": "9",
|
| 1116 |
+
"node": "4",
|
| 1117 |
+
"deno": "1",
|
| 1118 |
+
"ios": "9",
|
| 1119 |
+
"samsung": "4",
|
| 1120 |
+
"rhino": "1.7.13",
|
| 1121 |
+
"opera_mobile": "32",
|
| 1122 |
+
"electron": "0.30"
|
| 1123 |
+
},
|
| 1124 |
+
"es6.object.is-extensible": {
|
| 1125 |
+
"chrome": "44",
|
| 1126 |
+
"opera": "31",
|
| 1127 |
+
"edge": "12",
|
| 1128 |
+
"firefox": "35",
|
| 1129 |
+
"safari": "9",
|
| 1130 |
+
"node": "4",
|
| 1131 |
+
"deno": "1",
|
| 1132 |
+
"ios": "9",
|
| 1133 |
+
"samsung": "4",
|
| 1134 |
+
"rhino": "1.7.13",
|
| 1135 |
+
"opera_mobile": "32",
|
| 1136 |
+
"electron": "0.30"
|
| 1137 |
+
},
|
| 1138 |
+
"es6.object.keys": {
|
| 1139 |
+
"chrome": "40",
|
| 1140 |
+
"opera": "27",
|
| 1141 |
+
"edge": "12",
|
| 1142 |
+
"firefox": "35",
|
| 1143 |
+
"safari": "9",
|
| 1144 |
+
"node": "4",
|
| 1145 |
+
"deno": "1",
|
| 1146 |
+
"ios": "9",
|
| 1147 |
+
"samsung": "3.4",
|
| 1148 |
+
"rhino": "1.7.13",
|
| 1149 |
+
"opera_mobile": "27",
|
| 1150 |
+
"electron": "0.21"
|
| 1151 |
+
},
|
| 1152 |
+
"es6.object.seal": {
|
| 1153 |
+
"chrome": "44",
|
| 1154 |
+
"opera": "31",
|
| 1155 |
+
"edge": "12",
|
| 1156 |
+
"firefox": "35",
|
| 1157 |
+
"safari": "9",
|
| 1158 |
+
"node": "4",
|
| 1159 |
+
"deno": "1",
|
| 1160 |
+
"ios": "9",
|
| 1161 |
+
"samsung": "4",
|
| 1162 |
+
"rhino": "1.7.13",
|
| 1163 |
+
"opera_mobile": "32",
|
| 1164 |
+
"electron": "0.30"
|
| 1165 |
+
},
|
| 1166 |
+
"es6.object.set-prototype-of": {
|
| 1167 |
+
"chrome": "34",
|
| 1168 |
+
"opera": "21",
|
| 1169 |
+
"edge": "12",
|
| 1170 |
+
"firefox": "31",
|
| 1171 |
+
"safari": "9",
|
| 1172 |
+
"node": "0.12",
|
| 1173 |
+
"deno": "1",
|
| 1174 |
+
"ie": "11",
|
| 1175 |
+
"ios": "9",
|
| 1176 |
+
"samsung": "2",
|
| 1177 |
+
"rhino": "1.7.13",
|
| 1178 |
+
"opera_mobile": "21",
|
| 1179 |
+
"electron": "0.20"
|
| 1180 |
+
},
|
| 1181 |
+
"es7.object.values": {
|
| 1182 |
+
"chrome": "54",
|
| 1183 |
+
"opera": "41",
|
| 1184 |
+
"edge": "14",
|
| 1185 |
+
"firefox": "47",
|
| 1186 |
+
"safari": "10.1",
|
| 1187 |
+
"node": "7",
|
| 1188 |
+
"deno": "1",
|
| 1189 |
+
"ios": "10.3",
|
| 1190 |
+
"samsung": "6",
|
| 1191 |
+
"rhino": "1.7.14",
|
| 1192 |
+
"opera_mobile": "41",
|
| 1193 |
+
"electron": "1.4"
|
| 1194 |
+
},
|
| 1195 |
+
"es6.promise": {
|
| 1196 |
+
"chrome": "51",
|
| 1197 |
+
"opera": "38",
|
| 1198 |
+
"edge": "14",
|
| 1199 |
+
"firefox": "45",
|
| 1200 |
+
"safari": "10",
|
| 1201 |
+
"node": "6.5",
|
| 1202 |
+
"deno": "1",
|
| 1203 |
+
"ios": "10",
|
| 1204 |
+
"samsung": "5",
|
| 1205 |
+
"rhino": "1.7.15",
|
| 1206 |
+
"opera_mobile": "41",
|
| 1207 |
+
"electron": "1.2"
|
| 1208 |
+
},
|
| 1209 |
+
"es7.promise.finally": {
|
| 1210 |
+
"chrome": "63",
|
| 1211 |
+
"opera": "50",
|
| 1212 |
+
"edge": "18",
|
| 1213 |
+
"firefox": "58",
|
| 1214 |
+
"safari": "11.1",
|
| 1215 |
+
"node": "10",
|
| 1216 |
+
"deno": "1",
|
| 1217 |
+
"ios": "11.3",
|
| 1218 |
+
"samsung": "8",
|
| 1219 |
+
"rhino": "1.7.15",
|
| 1220 |
+
"opera_mobile": "46",
|
| 1221 |
+
"electron": "3.0"
|
| 1222 |
+
},
|
| 1223 |
+
"es6.reflect.apply": {
|
| 1224 |
+
"chrome": "49",
|
| 1225 |
+
"opera": "36",
|
| 1226 |
+
"edge": "12",
|
| 1227 |
+
"firefox": "42",
|
| 1228 |
+
"safari": "10",
|
| 1229 |
+
"node": "6",
|
| 1230 |
+
"deno": "1",
|
| 1231 |
+
"ios": "10",
|
| 1232 |
+
"samsung": "5",
|
| 1233 |
+
"rhino": "1.8",
|
| 1234 |
+
"opera_mobile": "36",
|
| 1235 |
+
"electron": "0.37"
|
| 1236 |
+
},
|
| 1237 |
+
"es6.reflect.construct": {
|
| 1238 |
+
"chrome": "49",
|
| 1239 |
+
"opera": "36",
|
| 1240 |
+
"edge": "13",
|
| 1241 |
+
"firefox": "49",
|
| 1242 |
+
"safari": "10",
|
| 1243 |
+
"node": "6",
|
| 1244 |
+
"deno": "1",
|
| 1245 |
+
"ios": "10",
|
| 1246 |
+
"samsung": "5",
|
| 1247 |
+
"opera_mobile": "36",
|
| 1248 |
+
"electron": "0.37"
|
| 1249 |
+
},
|
| 1250 |
+
"es6.reflect.define-property": {
|
| 1251 |
+
"chrome": "49",
|
| 1252 |
+
"opera": "36",
|
| 1253 |
+
"edge": "13",
|
| 1254 |
+
"firefox": "42",
|
| 1255 |
+
"safari": "10",
|
| 1256 |
+
"node": "6",
|
| 1257 |
+
"deno": "1",
|
| 1258 |
+
"ios": "10",
|
| 1259 |
+
"samsung": "5",
|
| 1260 |
+
"rhino": "1.8",
|
| 1261 |
+
"opera_mobile": "36",
|
| 1262 |
+
"electron": "0.37"
|
| 1263 |
+
},
|
| 1264 |
+
"es6.reflect.delete-property": {
|
| 1265 |
+
"chrome": "49",
|
| 1266 |
+
"opera": "36",
|
| 1267 |
+
"edge": "12",
|
| 1268 |
+
"firefox": "42",
|
| 1269 |
+
"safari": "10",
|
| 1270 |
+
"node": "6",
|
| 1271 |
+
"deno": "1",
|
| 1272 |
+
"ios": "10",
|
| 1273 |
+
"samsung": "5",
|
| 1274 |
+
"rhino": "1.8",
|
| 1275 |
+
"opera_mobile": "36",
|
| 1276 |
+
"electron": "0.37"
|
| 1277 |
+
},
|
| 1278 |
+
"es6.reflect.get": {
|
| 1279 |
+
"chrome": "49",
|
| 1280 |
+
"opera": "36",
|
| 1281 |
+
"edge": "12",
|
| 1282 |
+
"firefox": "42",
|
| 1283 |
+
"safari": "10",
|
| 1284 |
+
"node": "6",
|
| 1285 |
+
"deno": "1",
|
| 1286 |
+
"ios": "10",
|
| 1287 |
+
"samsung": "5",
|
| 1288 |
+
"rhino": "1.8",
|
| 1289 |
+
"opera_mobile": "36",
|
| 1290 |
+
"electron": "0.37"
|
| 1291 |
+
},
|
| 1292 |
+
"es6.reflect.get-own-property-descriptor": {
|
| 1293 |
+
"chrome": "49",
|
| 1294 |
+
"opera": "36",
|
| 1295 |
+
"edge": "12",
|
| 1296 |
+
"firefox": "42",
|
| 1297 |
+
"safari": "10",
|
| 1298 |
+
"node": "6",
|
| 1299 |
+
"deno": "1",
|
| 1300 |
+
"ios": "10",
|
| 1301 |
+
"samsung": "5",
|
| 1302 |
+
"rhino": "1.8",
|
| 1303 |
+
"opera_mobile": "36",
|
| 1304 |
+
"electron": "0.37"
|
| 1305 |
+
},
|
| 1306 |
+
"es6.reflect.get-prototype-of": {
|
| 1307 |
+
"chrome": "49",
|
| 1308 |
+
"opera": "36",
|
| 1309 |
+
"edge": "12",
|
| 1310 |
+
"firefox": "42",
|
| 1311 |
+
"safari": "10",
|
| 1312 |
+
"node": "6",
|
| 1313 |
+
"deno": "1",
|
| 1314 |
+
"ios": "10",
|
| 1315 |
+
"samsung": "5",
|
| 1316 |
+
"rhino": "1.8",
|
| 1317 |
+
"opera_mobile": "36",
|
| 1318 |
+
"electron": "0.37"
|
| 1319 |
+
},
|
| 1320 |
+
"es6.reflect.has": {
|
| 1321 |
+
"chrome": "49",
|
| 1322 |
+
"opera": "36",
|
| 1323 |
+
"edge": "12",
|
| 1324 |
+
"firefox": "42",
|
| 1325 |
+
"safari": "10",
|
| 1326 |
+
"node": "6",
|
| 1327 |
+
"deno": "1",
|
| 1328 |
+
"ios": "10",
|
| 1329 |
+
"samsung": "5",
|
| 1330 |
+
"rhino": "1.8",
|
| 1331 |
+
"opera_mobile": "36",
|
| 1332 |
+
"electron": "0.37"
|
| 1333 |
+
},
|
| 1334 |
+
"es6.reflect.is-extensible": {
|
| 1335 |
+
"chrome": "49",
|
| 1336 |
+
"opera": "36",
|
| 1337 |
+
"edge": "12",
|
| 1338 |
+
"firefox": "42",
|
| 1339 |
+
"safari": "10",
|
| 1340 |
+
"node": "6",
|
| 1341 |
+
"deno": "1",
|
| 1342 |
+
"ios": "10",
|
| 1343 |
+
"samsung": "5",
|
| 1344 |
+
"rhino": "1.8",
|
| 1345 |
+
"opera_mobile": "36",
|
| 1346 |
+
"electron": "0.37"
|
| 1347 |
+
},
|
| 1348 |
+
"es6.reflect.own-keys": {
|
| 1349 |
+
"chrome": "49",
|
| 1350 |
+
"opera": "36",
|
| 1351 |
+
"edge": "12",
|
| 1352 |
+
"firefox": "42",
|
| 1353 |
+
"safari": "10",
|
| 1354 |
+
"node": "6",
|
| 1355 |
+
"deno": "1",
|
| 1356 |
+
"ios": "10",
|
| 1357 |
+
"samsung": "5",
|
| 1358 |
+
"rhino": "1.8",
|
| 1359 |
+
"opera_mobile": "36",
|
| 1360 |
+
"electron": "0.37"
|
| 1361 |
+
},
|
| 1362 |
+
"es6.reflect.prevent-extensions": {
|
| 1363 |
+
"chrome": "49",
|
| 1364 |
+
"opera": "36",
|
| 1365 |
+
"edge": "12",
|
| 1366 |
+
"firefox": "42",
|
| 1367 |
+
"safari": "10",
|
| 1368 |
+
"node": "6",
|
| 1369 |
+
"deno": "1",
|
| 1370 |
+
"ios": "10",
|
| 1371 |
+
"samsung": "5",
|
| 1372 |
+
"rhino": "1.8",
|
| 1373 |
+
"opera_mobile": "36",
|
| 1374 |
+
"electron": "0.37"
|
| 1375 |
+
},
|
| 1376 |
+
"es6.reflect.set": {
|
| 1377 |
+
"chrome": "49",
|
| 1378 |
+
"opera": "36",
|
| 1379 |
+
"edge": "12",
|
| 1380 |
+
"firefox": "42",
|
| 1381 |
+
"safari": "10",
|
| 1382 |
+
"node": "6",
|
| 1383 |
+
"deno": "1",
|
| 1384 |
+
"ios": "10",
|
| 1385 |
+
"samsung": "5",
|
| 1386 |
+
"rhino": "1.8",
|
| 1387 |
+
"opera_mobile": "36",
|
| 1388 |
+
"electron": "0.37"
|
| 1389 |
+
},
|
| 1390 |
+
"es6.reflect.set-prototype-of": {
|
| 1391 |
+
"chrome": "49",
|
| 1392 |
+
"opera": "36",
|
| 1393 |
+
"edge": "12",
|
| 1394 |
+
"firefox": "42",
|
| 1395 |
+
"safari": "10",
|
| 1396 |
+
"node": "6",
|
| 1397 |
+
"deno": "1",
|
| 1398 |
+
"ios": "10",
|
| 1399 |
+
"samsung": "5",
|
| 1400 |
+
"rhino": "1.8",
|
| 1401 |
+
"opera_mobile": "36",
|
| 1402 |
+
"electron": "0.37"
|
| 1403 |
+
},
|
| 1404 |
+
"es6.regexp.constructor": {
|
| 1405 |
+
"chrome": "50",
|
| 1406 |
+
"opera": "37",
|
| 1407 |
+
"edge": "79",
|
| 1408 |
+
"firefox": "40",
|
| 1409 |
+
"safari": "10",
|
| 1410 |
+
"node": "6",
|
| 1411 |
+
"deno": "1",
|
| 1412 |
+
"ios": "10",
|
| 1413 |
+
"samsung": "5",
|
| 1414 |
+
"opera_mobile": "37",
|
| 1415 |
+
"electron": "1.1"
|
| 1416 |
+
},
|
| 1417 |
+
"es6.regexp.flags": {
|
| 1418 |
+
"chrome": "49",
|
| 1419 |
+
"opera": "36",
|
| 1420 |
+
"edge": "79",
|
| 1421 |
+
"firefox": "37",
|
| 1422 |
+
"safari": "9",
|
| 1423 |
+
"node": "6",
|
| 1424 |
+
"deno": "1",
|
| 1425 |
+
"ios": "9",
|
| 1426 |
+
"samsung": "5",
|
| 1427 |
+
"rhino": "1.7.15",
|
| 1428 |
+
"opera_mobile": "36",
|
| 1429 |
+
"electron": "0.37"
|
| 1430 |
+
},
|
| 1431 |
+
"es6.regexp.match": {
|
| 1432 |
+
"chrome": "50",
|
| 1433 |
+
"opera": "37",
|
| 1434 |
+
"edge": "79",
|
| 1435 |
+
"firefox": "49",
|
| 1436 |
+
"safari": "10",
|
| 1437 |
+
"node": "6",
|
| 1438 |
+
"deno": "1",
|
| 1439 |
+
"ios": "10",
|
| 1440 |
+
"samsung": "5",
|
| 1441 |
+
"rhino": "1.7.13",
|
| 1442 |
+
"opera_mobile": "37",
|
| 1443 |
+
"electron": "1.1"
|
| 1444 |
+
},
|
| 1445 |
+
"es6.regexp.replace": {
|
| 1446 |
+
"chrome": "50",
|
| 1447 |
+
"opera": "37",
|
| 1448 |
+
"edge": "79",
|
| 1449 |
+
"firefox": "49",
|
| 1450 |
+
"safari": "10",
|
| 1451 |
+
"node": "6",
|
| 1452 |
+
"deno": "1",
|
| 1453 |
+
"ios": "10",
|
| 1454 |
+
"samsung": "5",
|
| 1455 |
+
"opera_mobile": "37",
|
| 1456 |
+
"electron": "1.1"
|
| 1457 |
+
},
|
| 1458 |
+
"es6.regexp.split": {
|
| 1459 |
+
"chrome": "50",
|
| 1460 |
+
"opera": "37",
|
| 1461 |
+
"edge": "79",
|
| 1462 |
+
"firefox": "49",
|
| 1463 |
+
"safari": "10",
|
| 1464 |
+
"node": "6",
|
| 1465 |
+
"deno": "1",
|
| 1466 |
+
"ios": "10",
|
| 1467 |
+
"samsung": "5",
|
| 1468 |
+
"opera_mobile": "37",
|
| 1469 |
+
"electron": "1.1"
|
| 1470 |
+
},
|
| 1471 |
+
"es6.regexp.search": {
|
| 1472 |
+
"chrome": "50",
|
| 1473 |
+
"opera": "37",
|
| 1474 |
+
"edge": "79",
|
| 1475 |
+
"firefox": "49",
|
| 1476 |
+
"safari": "10",
|
| 1477 |
+
"node": "6",
|
| 1478 |
+
"deno": "1",
|
| 1479 |
+
"ios": "10",
|
| 1480 |
+
"samsung": "5",
|
| 1481 |
+
"rhino": "1.7.13",
|
| 1482 |
+
"opera_mobile": "37",
|
| 1483 |
+
"electron": "1.1"
|
| 1484 |
+
},
|
| 1485 |
+
"es6.regexp.to-string": {
|
| 1486 |
+
"chrome": "50",
|
| 1487 |
+
"opera": "37",
|
| 1488 |
+
"edge": "79",
|
| 1489 |
+
"firefox": "39",
|
| 1490 |
+
"safari": "10",
|
| 1491 |
+
"node": "6",
|
| 1492 |
+
"deno": "1",
|
| 1493 |
+
"ios": "10",
|
| 1494 |
+
"samsung": "5",
|
| 1495 |
+
"rhino": "1.7.15",
|
| 1496 |
+
"opera_mobile": "37",
|
| 1497 |
+
"electron": "1.1"
|
| 1498 |
+
},
|
| 1499 |
+
"es6.set": {
|
| 1500 |
+
"chrome": "51",
|
| 1501 |
+
"opera": "38",
|
| 1502 |
+
"edge": "15",
|
| 1503 |
+
"firefox": "53",
|
| 1504 |
+
"safari": "10",
|
| 1505 |
+
"node": "6.5",
|
| 1506 |
+
"deno": "1",
|
| 1507 |
+
"ios": "10",
|
| 1508 |
+
"samsung": "5",
|
| 1509 |
+
"opera_mobile": "41",
|
| 1510 |
+
"electron": "1.2"
|
| 1511 |
+
},
|
| 1512 |
+
"es6.symbol": {
|
| 1513 |
+
"chrome": "51",
|
| 1514 |
+
"opera": "38",
|
| 1515 |
+
"edge": "79",
|
| 1516 |
+
"firefox": "51",
|
| 1517 |
+
"safari": "10",
|
| 1518 |
+
"node": "6.5",
|
| 1519 |
+
"deno": "1",
|
| 1520 |
+
"ios": "10",
|
| 1521 |
+
"samsung": "5",
|
| 1522 |
+
"opera_mobile": "41",
|
| 1523 |
+
"electron": "1.2"
|
| 1524 |
+
},
|
| 1525 |
+
"es7.symbol.async-iterator": {
|
| 1526 |
+
"chrome": "63",
|
| 1527 |
+
"opera": "50",
|
| 1528 |
+
"edge": "79",
|
| 1529 |
+
"firefox": "57",
|
| 1530 |
+
"safari": "12",
|
| 1531 |
+
"node": "10",
|
| 1532 |
+
"deno": "1",
|
| 1533 |
+
"ios": "12",
|
| 1534 |
+
"samsung": "8",
|
| 1535 |
+
"opera_mobile": "46",
|
| 1536 |
+
"electron": "3.0"
|
| 1537 |
+
},
|
| 1538 |
+
"es6.string.anchor": {
|
| 1539 |
+
"chrome": "5",
|
| 1540 |
+
"opera": "15",
|
| 1541 |
+
"edge": "12",
|
| 1542 |
+
"firefox": "17",
|
| 1543 |
+
"safari": "6",
|
| 1544 |
+
"node": "0.4",
|
| 1545 |
+
"deno": "1",
|
| 1546 |
+
"android": "4",
|
| 1547 |
+
"ios": "7",
|
| 1548 |
+
"phantom": "1.9",
|
| 1549 |
+
"samsung": "1",
|
| 1550 |
+
"rhino": "1.7.14",
|
| 1551 |
+
"opera_mobile": "14",
|
| 1552 |
+
"electron": "0.20"
|
| 1553 |
+
},
|
| 1554 |
+
"es6.string.big": {
|
| 1555 |
+
"chrome": "5",
|
| 1556 |
+
"opera": "15",
|
| 1557 |
+
"edge": "12",
|
| 1558 |
+
"firefox": "17",
|
| 1559 |
+
"safari": "6",
|
| 1560 |
+
"node": "0.4",
|
| 1561 |
+
"deno": "1",
|
| 1562 |
+
"android": "4",
|
| 1563 |
+
"ios": "7",
|
| 1564 |
+
"phantom": "1.9",
|
| 1565 |
+
"samsung": "1",
|
| 1566 |
+
"rhino": "1.7.14",
|
| 1567 |
+
"opera_mobile": "14",
|
| 1568 |
+
"electron": "0.20"
|
| 1569 |
+
},
|
| 1570 |
+
"es6.string.blink": {
|
| 1571 |
+
"chrome": "5",
|
| 1572 |
+
"opera": "15",
|
| 1573 |
+
"edge": "12",
|
| 1574 |
+
"firefox": "17",
|
| 1575 |
+
"safari": "6",
|
| 1576 |
+
"node": "0.4",
|
| 1577 |
+
"deno": "1",
|
| 1578 |
+
"android": "4",
|
| 1579 |
+
"ios": "7",
|
| 1580 |
+
"phantom": "1.9",
|
| 1581 |
+
"samsung": "1",
|
| 1582 |
+
"rhino": "1.7.14",
|
| 1583 |
+
"opera_mobile": "14",
|
| 1584 |
+
"electron": "0.20"
|
| 1585 |
+
},
|
| 1586 |
+
"es6.string.bold": {
|
| 1587 |
+
"chrome": "5",
|
| 1588 |
+
"opera": "15",
|
| 1589 |
+
"edge": "12",
|
| 1590 |
+
"firefox": "17",
|
| 1591 |
+
"safari": "6",
|
| 1592 |
+
"node": "0.4",
|
| 1593 |
+
"deno": "1",
|
| 1594 |
+
"android": "4",
|
| 1595 |
+
"ios": "7",
|
| 1596 |
+
"phantom": "1.9",
|
| 1597 |
+
"samsung": "1",
|
| 1598 |
+
"rhino": "1.7.14",
|
| 1599 |
+
"opera_mobile": "14",
|
| 1600 |
+
"electron": "0.20"
|
| 1601 |
+
},
|
| 1602 |
+
"es6.string.code-point-at": {
|
| 1603 |
+
"chrome": "41",
|
| 1604 |
+
"opera": "28",
|
| 1605 |
+
"edge": "12",
|
| 1606 |
+
"firefox": "29",
|
| 1607 |
+
"safari": "9",
|
| 1608 |
+
"node": "4",
|
| 1609 |
+
"deno": "1",
|
| 1610 |
+
"ios": "9",
|
| 1611 |
+
"samsung": "3.4",
|
| 1612 |
+
"rhino": "1.7.13",
|
| 1613 |
+
"opera_mobile": "28",
|
| 1614 |
+
"electron": "0.21"
|
| 1615 |
+
},
|
| 1616 |
+
"es6.string.ends-with": {
|
| 1617 |
+
"chrome": "41",
|
| 1618 |
+
"opera": "28",
|
| 1619 |
+
"edge": "12",
|
| 1620 |
+
"firefox": "29",
|
| 1621 |
+
"safari": "9",
|
| 1622 |
+
"node": "4",
|
| 1623 |
+
"deno": "1",
|
| 1624 |
+
"ios": "9",
|
| 1625 |
+
"samsung": "3.4",
|
| 1626 |
+
"rhino": "1.7.13",
|
| 1627 |
+
"opera_mobile": "28",
|
| 1628 |
+
"electron": "0.21"
|
| 1629 |
+
},
|
| 1630 |
+
"es6.string.fixed": {
|
| 1631 |
+
"chrome": "5",
|
| 1632 |
+
"opera": "15",
|
| 1633 |
+
"edge": "12",
|
| 1634 |
+
"firefox": "17",
|
| 1635 |
+
"safari": "6",
|
| 1636 |
+
"node": "0.4",
|
| 1637 |
+
"deno": "1",
|
| 1638 |
+
"android": "4",
|
| 1639 |
+
"ios": "7",
|
| 1640 |
+
"phantom": "1.9",
|
| 1641 |
+
"samsung": "1",
|
| 1642 |
+
"rhino": "1.7.14",
|
| 1643 |
+
"opera_mobile": "14",
|
| 1644 |
+
"electron": "0.20"
|
| 1645 |
+
},
|
| 1646 |
+
"es6.string.fontcolor": {
|
| 1647 |
+
"chrome": "5",
|
| 1648 |
+
"opera": "15",
|
| 1649 |
+
"edge": "12",
|
| 1650 |
+
"firefox": "17",
|
| 1651 |
+
"safari": "6",
|
| 1652 |
+
"node": "0.4",
|
| 1653 |
+
"deno": "1",
|
| 1654 |
+
"android": "4",
|
| 1655 |
+
"ios": "7",
|
| 1656 |
+
"phantom": "1.9",
|
| 1657 |
+
"samsung": "1",
|
| 1658 |
+
"rhino": "1.7.14",
|
| 1659 |
+
"opera_mobile": "14",
|
| 1660 |
+
"electron": "0.20"
|
| 1661 |
+
},
|
| 1662 |
+
"es6.string.fontsize": {
|
| 1663 |
+
"chrome": "5",
|
| 1664 |
+
"opera": "15",
|
| 1665 |
+
"edge": "12",
|
| 1666 |
+
"firefox": "17",
|
| 1667 |
+
"safari": "6",
|
| 1668 |
+
"node": "0.4",
|
| 1669 |
+
"deno": "1",
|
| 1670 |
+
"android": "4",
|
| 1671 |
+
"ios": "7",
|
| 1672 |
+
"phantom": "1.9",
|
| 1673 |
+
"samsung": "1",
|
| 1674 |
+
"rhino": "1.7.14",
|
| 1675 |
+
"opera_mobile": "14",
|
| 1676 |
+
"electron": "0.20"
|
| 1677 |
+
},
|
| 1678 |
+
"es6.string.from-code-point": {
|
| 1679 |
+
"chrome": "41",
|
| 1680 |
+
"opera": "28",
|
| 1681 |
+
"edge": "12",
|
| 1682 |
+
"firefox": "29",
|
| 1683 |
+
"safari": "9",
|
| 1684 |
+
"node": "4",
|
| 1685 |
+
"deno": "1",
|
| 1686 |
+
"ios": "9",
|
| 1687 |
+
"samsung": "3.4",
|
| 1688 |
+
"rhino": "1.7.13",
|
| 1689 |
+
"opera_mobile": "28",
|
| 1690 |
+
"electron": "0.21"
|
| 1691 |
+
},
|
| 1692 |
+
"es6.string.includes": {
|
| 1693 |
+
"chrome": "41",
|
| 1694 |
+
"opera": "28",
|
| 1695 |
+
"edge": "12",
|
| 1696 |
+
"firefox": "40",
|
| 1697 |
+
"safari": "9",
|
| 1698 |
+
"node": "4",
|
| 1699 |
+
"deno": "1",
|
| 1700 |
+
"ios": "9",
|
| 1701 |
+
"samsung": "3.4",
|
| 1702 |
+
"rhino": "1.7.13",
|
| 1703 |
+
"opera_mobile": "28",
|
| 1704 |
+
"electron": "0.21"
|
| 1705 |
+
},
|
| 1706 |
+
"es6.string.italics": {
|
| 1707 |
+
"chrome": "5",
|
| 1708 |
+
"opera": "15",
|
| 1709 |
+
"edge": "12",
|
| 1710 |
+
"firefox": "17",
|
| 1711 |
+
"safari": "6",
|
| 1712 |
+
"node": "0.4",
|
| 1713 |
+
"deno": "1",
|
| 1714 |
+
"android": "4",
|
| 1715 |
+
"ios": "7",
|
| 1716 |
+
"phantom": "1.9",
|
| 1717 |
+
"samsung": "1",
|
| 1718 |
+
"rhino": "1.7.14",
|
| 1719 |
+
"opera_mobile": "14",
|
| 1720 |
+
"electron": "0.20"
|
| 1721 |
+
},
|
| 1722 |
+
"es6.string.iterator": {
|
| 1723 |
+
"chrome": "38",
|
| 1724 |
+
"opera": "25",
|
| 1725 |
+
"edge": "12",
|
| 1726 |
+
"firefox": "36",
|
| 1727 |
+
"safari": "9",
|
| 1728 |
+
"node": "0.12",
|
| 1729 |
+
"deno": "1",
|
| 1730 |
+
"ios": "9",
|
| 1731 |
+
"samsung": "3",
|
| 1732 |
+
"rhino": "1.7.13",
|
| 1733 |
+
"opera_mobile": "25",
|
| 1734 |
+
"electron": "0.20"
|
| 1735 |
+
},
|
| 1736 |
+
"es6.string.link": {
|
| 1737 |
+
"chrome": "5",
|
| 1738 |
+
"opera": "15",
|
| 1739 |
+
"edge": "12",
|
| 1740 |
+
"firefox": "17",
|
| 1741 |
+
"safari": "6",
|
| 1742 |
+
"node": "0.4",
|
| 1743 |
+
"deno": "1",
|
| 1744 |
+
"android": "4",
|
| 1745 |
+
"ios": "7",
|
| 1746 |
+
"phantom": "1.9",
|
| 1747 |
+
"samsung": "1",
|
| 1748 |
+
"rhino": "1.7.14",
|
| 1749 |
+
"opera_mobile": "14",
|
| 1750 |
+
"electron": "0.20"
|
| 1751 |
+
},
|
| 1752 |
+
"es7.string.pad-start": {
|
| 1753 |
+
"chrome": "57",
|
| 1754 |
+
"opera": "44",
|
| 1755 |
+
"edge": "15",
|
| 1756 |
+
"firefox": "48",
|
| 1757 |
+
"safari": "10",
|
| 1758 |
+
"node": "8",
|
| 1759 |
+
"deno": "1",
|
| 1760 |
+
"ios": "10",
|
| 1761 |
+
"samsung": "7",
|
| 1762 |
+
"rhino": "1.7.13",
|
| 1763 |
+
"opera_mobile": "43",
|
| 1764 |
+
"electron": "1.7"
|
| 1765 |
+
},
|
| 1766 |
+
"es7.string.pad-end": {
|
| 1767 |
+
"chrome": "57",
|
| 1768 |
+
"opera": "44",
|
| 1769 |
+
"edge": "15",
|
| 1770 |
+
"firefox": "48",
|
| 1771 |
+
"safari": "10",
|
| 1772 |
+
"node": "8",
|
| 1773 |
+
"deno": "1",
|
| 1774 |
+
"ios": "10",
|
| 1775 |
+
"samsung": "7",
|
| 1776 |
+
"rhino": "1.7.13",
|
| 1777 |
+
"opera_mobile": "43",
|
| 1778 |
+
"electron": "1.7"
|
| 1779 |
+
},
|
| 1780 |
+
"es6.string.raw": {
|
| 1781 |
+
"chrome": "41",
|
| 1782 |
+
"opera": "28",
|
| 1783 |
+
"edge": "12",
|
| 1784 |
+
"firefox": "34",
|
| 1785 |
+
"safari": "9",
|
| 1786 |
+
"node": "4",
|
| 1787 |
+
"deno": "1",
|
| 1788 |
+
"ios": "9",
|
| 1789 |
+
"samsung": "3.4",
|
| 1790 |
+
"rhino": "1.7.14",
|
| 1791 |
+
"opera_mobile": "28",
|
| 1792 |
+
"electron": "0.21"
|
| 1793 |
+
},
|
| 1794 |
+
"es6.string.repeat": {
|
| 1795 |
+
"chrome": "41",
|
| 1796 |
+
"opera": "28",
|
| 1797 |
+
"edge": "12",
|
| 1798 |
+
"firefox": "24",
|
| 1799 |
+
"safari": "9",
|
| 1800 |
+
"node": "4",
|
| 1801 |
+
"deno": "1",
|
| 1802 |
+
"ios": "9",
|
| 1803 |
+
"samsung": "3.4",
|
| 1804 |
+
"rhino": "1.7.13",
|
| 1805 |
+
"opera_mobile": "28",
|
| 1806 |
+
"electron": "0.21"
|
| 1807 |
+
},
|
| 1808 |
+
"es6.string.small": {
|
| 1809 |
+
"chrome": "5",
|
| 1810 |
+
"opera": "15",
|
| 1811 |
+
"edge": "12",
|
| 1812 |
+
"firefox": "17",
|
| 1813 |
+
"safari": "6",
|
| 1814 |
+
"node": "0.4",
|
| 1815 |
+
"deno": "1",
|
| 1816 |
+
"android": "4",
|
| 1817 |
+
"ios": "7",
|
| 1818 |
+
"phantom": "1.9",
|
| 1819 |
+
"samsung": "1",
|
| 1820 |
+
"rhino": "1.7.14",
|
| 1821 |
+
"opera_mobile": "14",
|
| 1822 |
+
"electron": "0.20"
|
| 1823 |
+
},
|
| 1824 |
+
"es6.string.starts-with": {
|
| 1825 |
+
"chrome": "41",
|
| 1826 |
+
"opera": "28",
|
| 1827 |
+
"edge": "12",
|
| 1828 |
+
"firefox": "29",
|
| 1829 |
+
"safari": "9",
|
| 1830 |
+
"node": "4",
|
| 1831 |
+
"deno": "1",
|
| 1832 |
+
"ios": "9",
|
| 1833 |
+
"samsung": "3.4",
|
| 1834 |
+
"rhino": "1.7.13",
|
| 1835 |
+
"opera_mobile": "28",
|
| 1836 |
+
"electron": "0.21"
|
| 1837 |
+
},
|
| 1838 |
+
"es6.string.strike": {
|
| 1839 |
+
"chrome": "5",
|
| 1840 |
+
"opera": "15",
|
| 1841 |
+
"edge": "12",
|
| 1842 |
+
"firefox": "17",
|
| 1843 |
+
"safari": "6",
|
| 1844 |
+
"node": "0.4",
|
| 1845 |
+
"deno": "1",
|
| 1846 |
+
"android": "4",
|
| 1847 |
+
"ios": "7",
|
| 1848 |
+
"phantom": "1.9",
|
| 1849 |
+
"samsung": "1",
|
| 1850 |
+
"rhino": "1.7.14",
|
| 1851 |
+
"opera_mobile": "14",
|
| 1852 |
+
"electron": "0.20"
|
| 1853 |
+
},
|
| 1854 |
+
"es6.string.sub": {
|
| 1855 |
+
"chrome": "5",
|
| 1856 |
+
"opera": "15",
|
| 1857 |
+
"edge": "12",
|
| 1858 |
+
"firefox": "17",
|
| 1859 |
+
"safari": "6",
|
| 1860 |
+
"node": "0.4",
|
| 1861 |
+
"deno": "1",
|
| 1862 |
+
"android": "4",
|
| 1863 |
+
"ios": "7",
|
| 1864 |
+
"phantom": "1.9",
|
| 1865 |
+
"samsung": "1",
|
| 1866 |
+
"rhino": "1.7.14",
|
| 1867 |
+
"opera_mobile": "14",
|
| 1868 |
+
"electron": "0.20"
|
| 1869 |
+
},
|
| 1870 |
+
"es6.string.sup": {
|
| 1871 |
+
"chrome": "5",
|
| 1872 |
+
"opera": "15",
|
| 1873 |
+
"edge": "12",
|
| 1874 |
+
"firefox": "17",
|
| 1875 |
+
"safari": "6",
|
| 1876 |
+
"node": "0.4",
|
| 1877 |
+
"deno": "1",
|
| 1878 |
+
"android": "4",
|
| 1879 |
+
"ios": "7",
|
| 1880 |
+
"phantom": "1.9",
|
| 1881 |
+
"samsung": "1",
|
| 1882 |
+
"rhino": "1.7.14",
|
| 1883 |
+
"opera_mobile": "14",
|
| 1884 |
+
"electron": "0.20"
|
| 1885 |
+
},
|
| 1886 |
+
"es6.string.trim": {
|
| 1887 |
+
"chrome": "5",
|
| 1888 |
+
"opera": "10.50",
|
| 1889 |
+
"edge": "12",
|
| 1890 |
+
"firefox": "3.5",
|
| 1891 |
+
"safari": "4",
|
| 1892 |
+
"node": "0.4",
|
| 1893 |
+
"deno": "1",
|
| 1894 |
+
"ie": "9",
|
| 1895 |
+
"android": "4",
|
| 1896 |
+
"ios": "6",
|
| 1897 |
+
"phantom": "1.9",
|
| 1898 |
+
"samsung": "1",
|
| 1899 |
+
"rhino": "1.7.13",
|
| 1900 |
+
"opera_mobile": "10.1",
|
| 1901 |
+
"electron": "0.20"
|
| 1902 |
+
},
|
| 1903 |
+
"es7.string.trim-left": {
|
| 1904 |
+
"chrome": "66",
|
| 1905 |
+
"opera": "53",
|
| 1906 |
+
"edge": "79",
|
| 1907 |
+
"firefox": "61",
|
| 1908 |
+
"safari": "12",
|
| 1909 |
+
"node": "10",
|
| 1910 |
+
"deno": "1",
|
| 1911 |
+
"ios": "12",
|
| 1912 |
+
"samsung": "9",
|
| 1913 |
+
"rhino": "1.7.13",
|
| 1914 |
+
"opera_mobile": "47",
|
| 1915 |
+
"electron": "3.0"
|
| 1916 |
+
},
|
| 1917 |
+
"es7.string.trim-right": {
|
| 1918 |
+
"chrome": "66",
|
| 1919 |
+
"opera": "53",
|
| 1920 |
+
"edge": "79",
|
| 1921 |
+
"firefox": "61",
|
| 1922 |
+
"safari": "12",
|
| 1923 |
+
"node": "10",
|
| 1924 |
+
"deno": "1",
|
| 1925 |
+
"ios": "12",
|
| 1926 |
+
"samsung": "9",
|
| 1927 |
+
"rhino": "1.7.13",
|
| 1928 |
+
"opera_mobile": "47",
|
| 1929 |
+
"electron": "3.0"
|
| 1930 |
+
},
|
| 1931 |
+
"es6.typed.array-buffer": {
|
| 1932 |
+
"chrome": "51",
|
| 1933 |
+
"opera": "38",
|
| 1934 |
+
"edge": "13",
|
| 1935 |
+
"firefox": "48",
|
| 1936 |
+
"safari": "10",
|
| 1937 |
+
"node": "6.5",
|
| 1938 |
+
"deno": "1",
|
| 1939 |
+
"ios": "10",
|
| 1940 |
+
"samsung": "5",
|
| 1941 |
+
"opera_mobile": "41",
|
| 1942 |
+
"electron": "1.2"
|
| 1943 |
+
},
|
| 1944 |
+
"es6.typed.data-view": {
|
| 1945 |
+
"chrome": "5",
|
| 1946 |
+
"opera": "12",
|
| 1947 |
+
"edge": "12",
|
| 1948 |
+
"firefox": "15",
|
| 1949 |
+
"safari": "5.1",
|
| 1950 |
+
"node": "0.4",
|
| 1951 |
+
"deno": "1",
|
| 1952 |
+
"ie": "10",
|
| 1953 |
+
"android": "4",
|
| 1954 |
+
"ios": "6",
|
| 1955 |
+
"phantom": "1.9",
|
| 1956 |
+
"samsung": "1",
|
| 1957 |
+
"rhino": "1.7.13",
|
| 1958 |
+
"opera_mobile": "12",
|
| 1959 |
+
"electron": "0.20"
|
| 1960 |
+
},
|
| 1961 |
+
"es6.typed.int8-array": {
|
| 1962 |
+
"chrome": "51",
|
| 1963 |
+
"opera": "38",
|
| 1964 |
+
"edge": "13",
|
| 1965 |
+
"firefox": "48",
|
| 1966 |
+
"safari": "10",
|
| 1967 |
+
"node": "6.5",
|
| 1968 |
+
"deno": "1",
|
| 1969 |
+
"ios": "10",
|
| 1970 |
+
"samsung": "5",
|
| 1971 |
+
"opera_mobile": "41",
|
| 1972 |
+
"electron": "1.2"
|
| 1973 |
+
},
|
| 1974 |
+
"es6.typed.uint8-array": {
|
| 1975 |
+
"chrome": "51",
|
| 1976 |
+
"opera": "38",
|
| 1977 |
+
"edge": "13",
|
| 1978 |
+
"firefox": "48",
|
| 1979 |
+
"safari": "10",
|
| 1980 |
+
"node": "6.5",
|
| 1981 |
+
"deno": "1",
|
| 1982 |
+
"ios": "10",
|
| 1983 |
+
"samsung": "5",
|
| 1984 |
+
"opera_mobile": "41",
|
| 1985 |
+
"electron": "1.2"
|
| 1986 |
+
},
|
| 1987 |
+
"es6.typed.uint8-clamped-array": {
|
| 1988 |
+
"chrome": "51",
|
| 1989 |
+
"opera": "38",
|
| 1990 |
+
"edge": "13",
|
| 1991 |
+
"firefox": "48",
|
| 1992 |
+
"safari": "10",
|
| 1993 |
+
"node": "6.5",
|
| 1994 |
+
"deno": "1",
|
| 1995 |
+
"ios": "10",
|
| 1996 |
+
"samsung": "5",
|
| 1997 |
+
"opera_mobile": "41",
|
| 1998 |
+
"electron": "1.2"
|
| 1999 |
+
},
|
| 2000 |
+
"es6.typed.int16-array": {
|
| 2001 |
+
"chrome": "51",
|
| 2002 |
+
"opera": "38",
|
| 2003 |
+
"edge": "13",
|
| 2004 |
+
"firefox": "48",
|
| 2005 |
+
"safari": "10",
|
| 2006 |
+
"node": "6.5",
|
| 2007 |
+
"deno": "1",
|
| 2008 |
+
"ios": "10",
|
| 2009 |
+
"samsung": "5",
|
| 2010 |
+
"opera_mobile": "41",
|
| 2011 |
+
"electron": "1.2"
|
| 2012 |
+
},
|
| 2013 |
+
"es6.typed.uint16-array": {
|
| 2014 |
+
"chrome": "51",
|
| 2015 |
+
"opera": "38",
|
| 2016 |
+
"edge": "13",
|
| 2017 |
+
"firefox": "48",
|
| 2018 |
+
"safari": "10",
|
| 2019 |
+
"node": "6.5",
|
| 2020 |
+
"deno": "1",
|
| 2021 |
+
"ios": "10",
|
| 2022 |
+
"samsung": "5",
|
| 2023 |
+
"opera_mobile": "41",
|
| 2024 |
+
"electron": "1.2"
|
| 2025 |
+
},
|
| 2026 |
+
"es6.typed.int32-array": {
|
| 2027 |
+
"chrome": "51",
|
| 2028 |
+
"opera": "38",
|
| 2029 |
+
"edge": "13",
|
| 2030 |
+
"firefox": "48",
|
| 2031 |
+
"safari": "10",
|
| 2032 |
+
"node": "6.5",
|
| 2033 |
+
"deno": "1",
|
| 2034 |
+
"ios": "10",
|
| 2035 |
+
"samsung": "5",
|
| 2036 |
+
"opera_mobile": "41",
|
| 2037 |
+
"electron": "1.2"
|
| 2038 |
+
},
|
| 2039 |
+
"es6.typed.uint32-array": {
|
| 2040 |
+
"chrome": "51",
|
| 2041 |
+
"opera": "38",
|
| 2042 |
+
"edge": "13",
|
| 2043 |
+
"firefox": "48",
|
| 2044 |
+
"safari": "10",
|
| 2045 |
+
"node": "6.5",
|
| 2046 |
+
"deno": "1",
|
| 2047 |
+
"ios": "10",
|
| 2048 |
+
"samsung": "5",
|
| 2049 |
+
"opera_mobile": "41",
|
| 2050 |
+
"electron": "1.2"
|
| 2051 |
+
},
|
| 2052 |
+
"es6.typed.float32-array": {
|
| 2053 |
+
"chrome": "51",
|
| 2054 |
+
"opera": "38",
|
| 2055 |
+
"edge": "13",
|
| 2056 |
+
"firefox": "48",
|
| 2057 |
+
"safari": "10",
|
| 2058 |
+
"node": "6.5",
|
| 2059 |
+
"deno": "1",
|
| 2060 |
+
"ios": "10",
|
| 2061 |
+
"samsung": "5",
|
| 2062 |
+
"opera_mobile": "41",
|
| 2063 |
+
"electron": "1.2"
|
| 2064 |
+
},
|
| 2065 |
+
"es6.typed.float64-array": {
|
| 2066 |
+
"chrome": "51",
|
| 2067 |
+
"opera": "38",
|
| 2068 |
+
"edge": "13",
|
| 2069 |
+
"firefox": "48",
|
| 2070 |
+
"safari": "10",
|
| 2071 |
+
"node": "6.5",
|
| 2072 |
+
"deno": "1",
|
| 2073 |
+
"ios": "10",
|
| 2074 |
+
"samsung": "5",
|
| 2075 |
+
"opera_mobile": "41",
|
| 2076 |
+
"electron": "1.2"
|
| 2077 |
+
},
|
| 2078 |
+
"es6.weak-map": {
|
| 2079 |
+
"chrome": "51",
|
| 2080 |
+
"opera": "38",
|
| 2081 |
+
"edge": "15",
|
| 2082 |
+
"firefox": "53",
|
| 2083 |
+
"safari": "9",
|
| 2084 |
+
"node": "6.5",
|
| 2085 |
+
"deno": "1",
|
| 2086 |
+
"ios": "9",
|
| 2087 |
+
"samsung": "5",
|
| 2088 |
+
"rhino": "1.7.15",
|
| 2089 |
+
"opera_mobile": "41",
|
| 2090 |
+
"electron": "1.2"
|
| 2091 |
+
},
|
| 2092 |
+
"es6.weak-set": {
|
| 2093 |
+
"chrome": "51",
|
| 2094 |
+
"opera": "38",
|
| 2095 |
+
"edge": "15",
|
| 2096 |
+
"firefox": "53",
|
| 2097 |
+
"safari": "9",
|
| 2098 |
+
"node": "6.5",
|
| 2099 |
+
"deno": "1",
|
| 2100 |
+
"ios": "9",
|
| 2101 |
+
"samsung": "5",
|
| 2102 |
+
"rhino": "1.7.15",
|
| 2103 |
+
"opera_mobile": "41",
|
| 2104 |
+
"electron": "1.2"
|
| 2105 |
+
}
|
| 2106 |
+
}
|
frontend/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"esnext.promise.all-settled",
|
| 3 |
+
"esnext.string.match-all",
|
| 4 |
+
"esnext.global-this"
|
| 5 |
+
]
|
frontend/node_modules/@babel/compat-data/data/native-modules.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"es6.module": {
|
| 3 |
+
"chrome": "61",
|
| 4 |
+
"and_chr": "61",
|
| 5 |
+
"edge": "16",
|
| 6 |
+
"firefox": "60",
|
| 7 |
+
"and_ff": "60",
|
| 8 |
+
"node": "13.2.0",
|
| 9 |
+
"opera": "48",
|
| 10 |
+
"op_mob": "45",
|
| 11 |
+
"safari": "10.1",
|
| 12 |
+
"ios": "10.3",
|
| 13 |
+
"samsung": "8.2",
|
| 14 |
+
"android": "61",
|
| 15 |
+
"electron": "2.0",
|
| 16 |
+
"ios_saf": "10.3"
|
| 17 |
+
}
|
| 18 |
+
}
|
frontend/node_modules/@babel/compat-data/data/overlapping-plugins.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"transform-async-to-generator": [
|
| 3 |
+
"bugfix/transform-async-arrows-in-class"
|
| 4 |
+
],
|
| 5 |
+
"transform-parameters": [
|
| 6 |
+
"bugfix/transform-edge-default-parameters",
|
| 7 |
+
"bugfix/transform-safari-id-destructuring-collision-in-function-expression"
|
| 8 |
+
],
|
| 9 |
+
"transform-function-name": [
|
| 10 |
+
"bugfix/transform-edge-function-name"
|
| 11 |
+
],
|
| 12 |
+
"transform-block-scoping": [
|
| 13 |
+
"bugfix/transform-safari-block-shadowing",
|
| 14 |
+
"bugfix/transform-safari-for-shadowing"
|
| 15 |
+
],
|
| 16 |
+
"transform-template-literals": [
|
| 17 |
+
"bugfix/transform-tagged-template-caching"
|
| 18 |
+
],
|
| 19 |
+
"transform-optional-chaining": [
|
| 20 |
+
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
|
| 21 |
+
],
|
| 22 |
+
"proposal-optional-chaining": [
|
| 23 |
+
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
|
| 24 |
+
],
|
| 25 |
+
"transform-class-properties": [
|
| 26 |
+
"bugfix/transform-v8-static-class-fields-redefine-readonly",
|
| 27 |
+
"bugfix/transform-firefox-class-in-computed-class-key",
|
| 28 |
+
"bugfix/transform-safari-class-field-initializer-scope"
|
| 29 |
+
],
|
| 30 |
+
"proposal-class-properties": [
|
| 31 |
+
"bugfix/transform-v8-static-class-fields-redefine-readonly",
|
| 32 |
+
"bugfix/transform-firefox-class-in-computed-class-key",
|
| 33 |
+
"bugfix/transform-safari-class-field-initializer-scope"
|
| 34 |
+
]
|
| 35 |
+
}
|
frontend/node_modules/@babel/compat-data/data/plugin-bugfixes.json
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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ix/transform-async-arrows-in-class": {
|
| 3 |
+
"chrome": "55",
|
| 4 |
+
"opera": "42",
|
| 5 |
+
"edge": "15",
|
| 6 |
+
"firefox": "52",
|
| 7 |
+
"safari": "11",
|
| 8 |
+
"node": "7.6",
|
| 9 |
+
"deno": "1",
|
| 10 |
+
"ios": "11",
|
| 11 |
+
"samsung": "6",
|
| 12 |
+
"opera_mobile": "42",
|
| 13 |
+
"electron": "1.6"
|
| 14 |
+
},
|
| 15 |
+
"bugfix/transform-edge-default-parameters": {
|
| 16 |
+
"chrome": "49",
|
| 17 |
+
"opera": "36",
|
| 18 |
+
"edge": "18",
|
| 19 |
+
"firefox": "52",
|
| 20 |
+
"safari": "10",
|
| 21 |
+
"node": "6",
|
| 22 |
+
"deno": "1",
|
| 23 |
+
"ios": "10",
|
| 24 |
+
"samsung": "5",
|
| 25 |
+
"opera_mobile": "36",
|
| 26 |
+
"electron": "0.37"
|
| 27 |
+
},
|
| 28 |
+
"bugfix/transform-edge-function-name": {
|
| 29 |
+
"chrome": "51",
|
| 30 |
+
"opera": "38",
|
| 31 |
+
"edge": "79",
|
| 32 |
+
"firefox": "53",
|
| 33 |
+
"safari": "10",
|
| 34 |
+
"node": "6.5",
|
| 35 |
+
"deno": "1",
|
| 36 |
+
"ios": "10",
|
| 37 |
+
"samsung": "5",
|
| 38 |
+
"opera_mobile": "41",
|
| 39 |
+
"electron": "1.2"
|
| 40 |
+
},
|
| 41 |
+
"bugfix/transform-safari-block-shadowing": {
|
| 42 |
+
"chrome": "49",
|
| 43 |
+
"opera": "36",
|
| 44 |
+
"edge": "12",
|
| 45 |
+
"firefox": "44",
|
| 46 |
+
"safari": "11",
|
| 47 |
+
"node": "6",
|
| 48 |
+
"deno": "1",
|
| 49 |
+
"ie": "11",
|
| 50 |
+
"ios": "11",
|
| 51 |
+
"samsung": "5",
|
| 52 |
+
"opera_mobile": "36",
|
| 53 |
+
"electron": "0.37"
|
| 54 |
+
},
|
| 55 |
+
"bugfix/transform-safari-for-shadowing": {
|
| 56 |
+
"chrome": "49",
|
| 57 |
+
"opera": "36",
|
| 58 |
+
"edge": "12",
|
| 59 |
+
"firefox": "4",
|
| 60 |
+
"safari": "11",
|
| 61 |
+
"node": "6",
|
| 62 |
+
"deno": "1",
|
| 63 |
+
"ie": "11",
|
| 64 |
+
"ios": "11",
|
| 65 |
+
"samsung": "5",
|
| 66 |
+
"rhino": "1.7.13",
|
| 67 |
+
"opera_mobile": "36",
|
| 68 |
+
"electron": "0.37"
|
| 69 |
+
},
|
| 70 |
+
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": {
|
| 71 |
+
"chrome": "49",
|
| 72 |
+
"opera": "36",
|
| 73 |
+
"edge": "14",
|
| 74 |
+
"firefox": "2",
|
| 75 |
+
"safari": "16.3",
|
| 76 |
+
"node": "6",
|
| 77 |
+
"deno": "1",
|
| 78 |
+
"ios": "16.3",
|
| 79 |
+
"samsung": "5",
|
| 80 |
+
"opera_mobile": "36",
|
| 81 |
+
"electron": "0.37"
|
| 82 |
+
},
|
| 83 |
+
"bugfix/transform-tagged-template-caching": {
|
| 84 |
+
"chrome": "41",
|
| 85 |
+
"opera": "28",
|
| 86 |
+
"edge": "12",
|
| 87 |
+
"firefox": "34",
|
| 88 |
+
"safari": "13",
|
| 89 |
+
"node": "4",
|
| 90 |
+
"deno": "1",
|
| 91 |
+
"ios": "13",
|
| 92 |
+
"samsung": "3.4",
|
| 93 |
+
"rhino": "1.7.14",
|
| 94 |
+
"opera_mobile": "28",
|
| 95 |
+
"electron": "0.21"
|
| 96 |
+
},
|
| 97 |
+
"bugfix/transform-v8-spread-parameters-in-optional-chaining": {
|
| 98 |
+
"chrome": "91",
|
| 99 |
+
"opera": "77",
|
| 100 |
+
"edge": "91",
|
| 101 |
+
"firefox": "74",
|
| 102 |
+
"safari": "13.1",
|
| 103 |
+
"node": "16.9",
|
| 104 |
+
"deno": "1.9",
|
| 105 |
+
"ios": "13.4",
|
| 106 |
+
"samsung": "16",
|
| 107 |
+
"opera_mobile": "64",
|
| 108 |
+
"electron": "13.0"
|
| 109 |
+
},
|
| 110 |
+
"transform-optional-chaining": {
|
| 111 |
+
"chrome": "80",
|
| 112 |
+
"opera": "67",
|
| 113 |
+
"edge": "80",
|
| 114 |
+
"firefox": "74",
|
| 115 |
+
"safari": "13.1",
|
| 116 |
+
"node": "14",
|
| 117 |
+
"deno": "1",
|
| 118 |
+
"ios": "13.4",
|
| 119 |
+
"samsung": "13",
|
| 120 |
+
"rhino": "1.8",
|
| 121 |
+
"opera_mobile": "57",
|
| 122 |
+
"electron": "8.0"
|
| 123 |
+
},
|
| 124 |
+
"proposal-optional-chaining": {
|
| 125 |
+
"chrome": "80",
|
| 126 |
+
"opera": "67",
|
| 127 |
+
"edge": "80",
|
| 128 |
+
"firefox": "74",
|
| 129 |
+
"safari": "13.1",
|
| 130 |
+
"node": "14",
|
| 131 |
+
"deno": "1",
|
| 132 |
+
"ios": "13.4",
|
| 133 |
+
"samsung": "13",
|
| 134 |
+
"rhino": "1.8",
|
| 135 |
+
"opera_mobile": "57",
|
| 136 |
+
"electron": "8.0"
|
| 137 |
+
},
|
| 138 |
+
"transform-parameters": {
|
| 139 |
+
"chrome": "49",
|
| 140 |
+
"opera": "36",
|
| 141 |
+
"edge": "15",
|
| 142 |
+
"firefox": "52",
|
| 143 |
+
"safari": "10",
|
| 144 |
+
"node": "6",
|
| 145 |
+
"deno": "1",
|
| 146 |
+
"ios": "10",
|
| 147 |
+
"samsung": "5",
|
| 148 |
+
"opera_mobile": "36",
|
| 149 |
+
"electron": "0.37"
|
| 150 |
+
},
|
| 151 |
+
"transform-async-to-generator": {
|
| 152 |
+
"chrome": "55",
|
| 153 |
+
"opera": "42",
|
| 154 |
+
"edge": "15",
|
| 155 |
+
"firefox": "52",
|
| 156 |
+
"safari": "10.1",
|
| 157 |
+
"node": "7.6",
|
| 158 |
+
"deno": "1",
|
| 159 |
+
"ios": "10.3",
|
| 160 |
+
"samsung": "6",
|
| 161 |
+
"opera_mobile": "42",
|
| 162 |
+
"electron": "1.6"
|
| 163 |
+
},
|
| 164 |
+
"transform-template-literals": {
|
| 165 |
+
"chrome": "41",
|
| 166 |
+
"opera": "28",
|
| 167 |
+
"edge": "13",
|
| 168 |
+
"firefox": "34",
|
| 169 |
+
"safari": "9",
|
| 170 |
+
"node": "4",
|
| 171 |
+
"deno": "1",
|
| 172 |
+
"ios": "9",
|
| 173 |
+
"samsung": "3.4",
|
| 174 |
+
"opera_mobile": "28",
|
| 175 |
+
"electron": "0.21"
|
| 176 |
+
},
|
| 177 |
+
"transform-function-name": {
|
| 178 |
+
"chrome": "51",
|
| 179 |
+
"opera": "38",
|
| 180 |
+
"edge": "14",
|
| 181 |
+
"firefox": "53",
|
| 182 |
+
"safari": "10",
|
| 183 |
+
"node": "6.5",
|
| 184 |
+
"deno": "1",
|
| 185 |
+
"ios": "10",
|
| 186 |
+
"samsung": "5",
|
| 187 |
+
"opera_mobile": "41",
|
| 188 |
+
"electron": "1.2"
|
| 189 |
+
},
|
| 190 |
+
"transform-block-scoping": {
|
| 191 |
+
"chrome": "50",
|
| 192 |
+
"opera": "37",
|
| 193 |
+
"edge": "14",
|
| 194 |
+
"firefox": "53",
|
| 195 |
+
"safari": "10",
|
| 196 |
+
"node": "6",
|
| 197 |
+
"deno": "1",
|
| 198 |
+
"ios": "10",
|
| 199 |
+
"samsung": "5",
|
| 200 |
+
"opera_mobile": "37",
|
| 201 |
+
"electron": "1.1"
|
| 202 |
+
}
|
| 203 |
+
}
|
frontend/node_modules/@babel/compat-data/data/plugins.json
ADDED
|
@@ -0,0 +1,837 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"transform-explicit-resource-management": {
|
| 3 |
+
"chrome": "134",
|
| 4 |
+
"edge": "134",
|
| 5 |
+
"node": "24",
|
| 6 |
+
"electron": "35.0"
|
| 7 |
+
},
|
| 8 |
+
"transform-duplicate-named-capturing-groups-regex": {
|
| 9 |
+
"chrome": "126",
|
| 10 |
+
"opera": "112",
|
| 11 |
+
"edge": "126",
|
| 12 |
+
"firefox": "129",
|
| 13 |
+
"safari": "17.4",
|
| 14 |
+
"node": "23",
|
| 15 |
+
"ios": "17.4",
|
| 16 |
+
"electron": "31.0"
|
| 17 |
+
},
|
| 18 |
+
"transform-regexp-modifiers": {
|
| 19 |
+
"chrome": "125",
|
| 20 |
+
"opera": "111",
|
| 21 |
+
"edge": "125",
|
| 22 |
+
"firefox": "132",
|
| 23 |
+
"node": "23",
|
| 24 |
+
"samsung": "27",
|
| 25 |
+
"electron": "31.0"
|
| 26 |
+
},
|
| 27 |
+
"transform-unicode-sets-regex": {
|
| 28 |
+
"chrome": "112",
|
| 29 |
+
"opera": "98",
|
| 30 |
+
"edge": "112",
|
| 31 |
+
"firefox": "116",
|
| 32 |
+
"safari": "17",
|
| 33 |
+
"node": "20",
|
| 34 |
+
"deno": "1.32",
|
| 35 |
+
"ios": "17",
|
| 36 |
+
"samsung": "23",
|
| 37 |
+
"opera_mobile": "75",
|
| 38 |
+
"electron": "24.0"
|
| 39 |
+
},
|
| 40 |
+
"bugfix/transform-v8-static-class-fields-redefine-readonly": {
|
| 41 |
+
"chrome": "98",
|
| 42 |
+
"opera": "84",
|
| 43 |
+
"edge": "98",
|
| 44 |
+
"firefox": "75",
|
| 45 |
+
"safari": "15",
|
| 46 |
+
"node": "12",
|
| 47 |
+
"deno": "1.18",
|
| 48 |
+
"ios": "15",
|
| 49 |
+
"samsung": "11",
|
| 50 |
+
"opera_mobile": "52",
|
| 51 |
+
"electron": "17.0"
|
| 52 |
+
},
|
| 53 |
+
"bugfix/transform-firefox-class-in-computed-class-key": {
|
| 54 |
+
"chrome": "74",
|
| 55 |
+
"opera": "62",
|
| 56 |
+
"edge": "79",
|
| 57 |
+
"firefox": "126",
|
| 58 |
+
"safari": "16",
|
| 59 |
+
"node": "12",
|
| 60 |
+
"deno": "1",
|
| 61 |
+
"ios": "16",
|
| 62 |
+
"samsung": "11",
|
| 63 |
+
"opera_mobile": "53",
|
| 64 |
+
"electron": "6.0"
|
| 65 |
+
},
|
| 66 |
+
"bugfix/transform-safari-class-field-initializer-scope": {
|
| 67 |
+
"chrome": "74",
|
| 68 |
+
"opera": "62",
|
| 69 |
+
"edge": "79",
|
| 70 |
+
"firefox": "69",
|
| 71 |
+
"safari": "16",
|
| 72 |
+
"node": "12",
|
| 73 |
+
"deno": "1",
|
| 74 |
+
"ios": "16",
|
| 75 |
+
"samsung": "11",
|
| 76 |
+
"opera_mobile": "53",
|
| 77 |
+
"electron": "6.0"
|
| 78 |
+
},
|
| 79 |
+
"transform-class-static-block": {
|
| 80 |
+
"chrome": "94",
|
| 81 |
+
"opera": "80",
|
| 82 |
+
"edge": "94",
|
| 83 |
+
"firefox": "93",
|
| 84 |
+
"safari": "16.4",
|
| 85 |
+
"node": "16.11",
|
| 86 |
+
"deno": "1.14",
|
| 87 |
+
"ios": "16.4",
|
| 88 |
+
"samsung": "17",
|
| 89 |
+
"opera_mobile": "66",
|
| 90 |
+
"electron": "15.0"
|
| 91 |
+
},
|
| 92 |
+
"proposal-class-static-block": {
|
| 93 |
+
"chrome": "94",
|
| 94 |
+
"opera": "80",
|
| 95 |
+
"edge": "94",
|
| 96 |
+
"firefox": "93",
|
| 97 |
+
"safari": "16.4",
|
| 98 |
+
"node": "16.11",
|
| 99 |
+
"deno": "1.14",
|
| 100 |
+
"ios": "16.4",
|
| 101 |
+
"samsung": "17",
|
| 102 |
+
"opera_mobile": "66",
|
| 103 |
+
"electron": "15.0"
|
| 104 |
+
},
|
| 105 |
+
"transform-private-property-in-object": {
|
| 106 |
+
"chrome": "91",
|
| 107 |
+
"opera": "77",
|
| 108 |
+
"edge": "91",
|
| 109 |
+
"firefox": "90",
|
| 110 |
+
"safari": "15",
|
| 111 |
+
"node": "16.9",
|
| 112 |
+
"deno": "1.9",
|
| 113 |
+
"ios": "15",
|
| 114 |
+
"samsung": "16",
|
| 115 |
+
"opera_mobile": "64",
|
| 116 |
+
"electron": "13.0"
|
| 117 |
+
},
|
| 118 |
+
"proposal-private-property-in-object": {
|
| 119 |
+
"chrome": "91",
|
| 120 |
+
"opera": "77",
|
| 121 |
+
"edge": "91",
|
| 122 |
+
"firefox": "90",
|
| 123 |
+
"safari": "15",
|
| 124 |
+
"node": "16.9",
|
| 125 |
+
"deno": "1.9",
|
| 126 |
+
"ios": "15",
|
| 127 |
+
"samsung": "16",
|
| 128 |
+
"opera_mobile": "64",
|
| 129 |
+
"electron": "13.0"
|
| 130 |
+
},
|
| 131 |
+
"transform-class-properties": {
|
| 132 |
+
"chrome": "74",
|
| 133 |
+
"opera": "62",
|
| 134 |
+
"edge": "79",
|
| 135 |
+
"firefox": "90",
|
| 136 |
+
"safari": "14.1",
|
| 137 |
+
"node": "12",
|
| 138 |
+
"deno": "1",
|
| 139 |
+
"ios": "14.5",
|
| 140 |
+
"samsung": "11",
|
| 141 |
+
"opera_mobile": "53",
|
| 142 |
+
"electron": "6.0"
|
| 143 |
+
},
|
| 144 |
+
"proposal-class-properties": {
|
| 145 |
+
"chrome": "74",
|
| 146 |
+
"opera": "62",
|
| 147 |
+
"edge": "79",
|
| 148 |
+
"firefox": "90",
|
| 149 |
+
"safari": "14.1",
|
| 150 |
+
"node": "12",
|
| 151 |
+
"deno": "1",
|
| 152 |
+
"ios": "14.5",
|
| 153 |
+
"samsung": "11",
|
| 154 |
+
"opera_mobile": "53",
|
| 155 |
+
"electron": "6.0"
|
| 156 |
+
},
|
| 157 |
+
"transform-private-methods": {
|
| 158 |
+
"chrome": "84",
|
| 159 |
+
"opera": "70",
|
| 160 |
+
"edge": "84",
|
| 161 |
+
"firefox": "90",
|
| 162 |
+
"safari": "15",
|
| 163 |
+
"node": "14.6",
|
| 164 |
+
"deno": "1",
|
| 165 |
+
"ios": "15",
|
| 166 |
+
"samsung": "14",
|
| 167 |
+
"opera_mobile": "60",
|
| 168 |
+
"electron": "10.0"
|
| 169 |
+
},
|
| 170 |
+
"proposal-private-methods": {
|
| 171 |
+
"chrome": "84",
|
| 172 |
+
"opera": "70",
|
| 173 |
+
"edge": "84",
|
| 174 |
+
"firefox": "90",
|
| 175 |
+
"safari": "15",
|
| 176 |
+
"node": "14.6",
|
| 177 |
+
"deno": "1",
|
| 178 |
+
"ios": "15",
|
| 179 |
+
"samsung": "14",
|
| 180 |
+
"opera_mobile": "60",
|
| 181 |
+
"electron": "10.0"
|
| 182 |
+
},
|
| 183 |
+
"transform-numeric-separator": {
|
| 184 |
+
"chrome": "75",
|
| 185 |
+
"opera": "62",
|
| 186 |
+
"edge": "79",
|
| 187 |
+
"firefox": "70",
|
| 188 |
+
"safari": "13",
|
| 189 |
+
"node": "12.5",
|
| 190 |
+
"deno": "1",
|
| 191 |
+
"ios": "13",
|
| 192 |
+
"samsung": "11",
|
| 193 |
+
"rhino": "1.7.14",
|
| 194 |
+
"opera_mobile": "54",
|
| 195 |
+
"electron": "6.0"
|
| 196 |
+
},
|
| 197 |
+
"proposal-numeric-separator": {
|
| 198 |
+
"chrome": "75",
|
| 199 |
+
"opera": "62",
|
| 200 |
+
"edge": "79",
|
| 201 |
+
"firefox": "70",
|
| 202 |
+
"safari": "13",
|
| 203 |
+
"node": "12.5",
|
| 204 |
+
"deno": "1",
|
| 205 |
+
"ios": "13",
|
| 206 |
+
"samsung": "11",
|
| 207 |
+
"rhino": "1.7.14",
|
| 208 |
+
"opera_mobile": "54",
|
| 209 |
+
"electron": "6.0"
|
| 210 |
+
},
|
| 211 |
+
"transform-logical-assignment-operators": {
|
| 212 |
+
"chrome": "85",
|
| 213 |
+
"opera": "71",
|
| 214 |
+
"edge": "85",
|
| 215 |
+
"firefox": "79",
|
| 216 |
+
"safari": "14",
|
| 217 |
+
"node": "15",
|
| 218 |
+
"deno": "1.2",
|
| 219 |
+
"ios": "14",
|
| 220 |
+
"samsung": "14",
|
| 221 |
+
"opera_mobile": "60",
|
| 222 |
+
"electron": "10.0"
|
| 223 |
+
},
|
| 224 |
+
"proposal-logical-assignment-operators": {
|
| 225 |
+
"chrome": "85",
|
| 226 |
+
"opera": "71",
|
| 227 |
+
"edge": "85",
|
| 228 |
+
"firefox": "79",
|
| 229 |
+
"safari": "14",
|
| 230 |
+
"node": "15",
|
| 231 |
+
"deno": "1.2",
|
| 232 |
+
"ios": "14",
|
| 233 |
+
"samsung": "14",
|
| 234 |
+
"opera_mobile": "60",
|
| 235 |
+
"electron": "10.0"
|
| 236 |
+
},
|
| 237 |
+
"transform-nullish-coalescing-operator": {
|
| 238 |
+
"chrome": "80",
|
| 239 |
+
"opera": "67",
|
| 240 |
+
"edge": "80",
|
| 241 |
+
"firefox": "72",
|
| 242 |
+
"safari": "13.1",
|
| 243 |
+
"node": "14",
|
| 244 |
+
"deno": "1",
|
| 245 |
+
"ios": "13.4",
|
| 246 |
+
"samsung": "13",
|
| 247 |
+
"rhino": "1.8",
|
| 248 |
+
"opera_mobile": "57",
|
| 249 |
+
"electron": "8.0"
|
| 250 |
+
},
|
| 251 |
+
"proposal-nullish-coalescing-operator": {
|
| 252 |
+
"chrome": "80",
|
| 253 |
+
"opera": "67",
|
| 254 |
+
"edge": "80",
|
| 255 |
+
"firefox": "72",
|
| 256 |
+
"safari": "13.1",
|
| 257 |
+
"node": "14",
|
| 258 |
+
"deno": "1",
|
| 259 |
+
"ios": "13.4",
|
| 260 |
+
"samsung": "13",
|
| 261 |
+
"rhino": "1.8",
|
| 262 |
+
"opera_mobile": "57",
|
| 263 |
+
"electron": "8.0"
|
| 264 |
+
},
|
| 265 |
+
"transform-optional-chaining": {
|
| 266 |
+
"chrome": "91",
|
| 267 |
+
"opera": "77",
|
| 268 |
+
"edge": "91",
|
| 269 |
+
"firefox": "74",
|
| 270 |
+
"safari": "13.1",
|
| 271 |
+
"node": "16.9",
|
| 272 |
+
"deno": "1.9",
|
| 273 |
+
"ios": "13.4",
|
| 274 |
+
"samsung": "16",
|
| 275 |
+
"opera_mobile": "64",
|
| 276 |
+
"electron": "13.0"
|
| 277 |
+
},
|
| 278 |
+
"proposal-optional-chaining": {
|
| 279 |
+
"chrome": "91",
|
| 280 |
+
"opera": "77",
|
| 281 |
+
"edge": "91",
|
| 282 |
+
"firefox": "74",
|
| 283 |
+
"safari": "13.1",
|
| 284 |
+
"node": "16.9",
|
| 285 |
+
"deno": "1.9",
|
| 286 |
+
"ios": "13.4",
|
| 287 |
+
"samsung": "16",
|
| 288 |
+
"opera_mobile": "64",
|
| 289 |
+
"electron": "13.0"
|
| 290 |
+
},
|
| 291 |
+
"transform-json-strings": {
|
| 292 |
+
"chrome": "66",
|
| 293 |
+
"opera": "53",
|
| 294 |
+
"edge": "79",
|
| 295 |
+
"firefox": "62",
|
| 296 |
+
"safari": "12",
|
| 297 |
+
"node": "10",
|
| 298 |
+
"deno": "1",
|
| 299 |
+
"ios": "12",
|
| 300 |
+
"samsung": "9",
|
| 301 |
+
"rhino": "1.7.14",
|
| 302 |
+
"opera_mobile": "47",
|
| 303 |
+
"electron": "3.0"
|
| 304 |
+
},
|
| 305 |
+
"proposal-json-strings": {
|
| 306 |
+
"chrome": "66",
|
| 307 |
+
"opera": "53",
|
| 308 |
+
"edge": "79",
|
| 309 |
+
"firefox": "62",
|
| 310 |
+
"safari": "12",
|
| 311 |
+
"node": "10",
|
| 312 |
+
"deno": "1",
|
| 313 |
+
"ios": "12",
|
| 314 |
+
"samsung": "9",
|
| 315 |
+
"rhino": "1.7.14",
|
| 316 |
+
"opera_mobile": "47",
|
| 317 |
+
"electron": "3.0"
|
| 318 |
+
},
|
| 319 |
+
"transform-optional-catch-binding": {
|
| 320 |
+
"chrome": "66",
|
| 321 |
+
"opera": "53",
|
| 322 |
+
"edge": "79",
|
| 323 |
+
"firefox": "58",
|
| 324 |
+
"safari": "11.1",
|
| 325 |
+
"node": "10",
|
| 326 |
+
"deno": "1",
|
| 327 |
+
"ios": "11.3",
|
| 328 |
+
"samsung": "9",
|
| 329 |
+
"opera_mobile": "47",
|
| 330 |
+
"electron": "3.0"
|
| 331 |
+
},
|
| 332 |
+
"proposal-optional-catch-binding": {
|
| 333 |
+
"chrome": "66",
|
| 334 |
+
"opera": "53",
|
| 335 |
+
"edge": "79",
|
| 336 |
+
"firefox": "58",
|
| 337 |
+
"safari": "11.1",
|
| 338 |
+
"node": "10",
|
| 339 |
+
"deno": "1",
|
| 340 |
+
"ios": "11.3",
|
| 341 |
+
"samsung": "9",
|
| 342 |
+
"opera_mobile": "47",
|
| 343 |
+
"electron": "3.0"
|
| 344 |
+
},
|
| 345 |
+
"transform-parameters": {
|
| 346 |
+
"chrome": "49",
|
| 347 |
+
"opera": "36",
|
| 348 |
+
"edge": "18",
|
| 349 |
+
"firefox": "52",
|
| 350 |
+
"safari": "16.3",
|
| 351 |
+
"node": "6",
|
| 352 |
+
"deno": "1",
|
| 353 |
+
"ios": "16.3",
|
| 354 |
+
"samsung": "5",
|
| 355 |
+
"opera_mobile": "36",
|
| 356 |
+
"electron": "0.37"
|
| 357 |
+
},
|
| 358 |
+
"transform-async-generator-functions": {
|
| 359 |
+
"chrome": "63",
|
| 360 |
+
"opera": "50",
|
| 361 |
+
"edge": "79",
|
| 362 |
+
"firefox": "57",
|
| 363 |
+
"safari": "12",
|
| 364 |
+
"node": "10",
|
| 365 |
+
"deno": "1",
|
| 366 |
+
"ios": "12",
|
| 367 |
+
"samsung": "8",
|
| 368 |
+
"opera_mobile": "46",
|
| 369 |
+
"electron": "3.0"
|
| 370 |
+
},
|
| 371 |
+
"proposal-async-generator-functions": {
|
| 372 |
+
"chrome": "63",
|
| 373 |
+
"opera": "50",
|
| 374 |
+
"edge": "79",
|
| 375 |
+
"firefox": "57",
|
| 376 |
+
"safari": "12",
|
| 377 |
+
"node": "10",
|
| 378 |
+
"deno": "1",
|
| 379 |
+
"ios": "12",
|
| 380 |
+
"samsung": "8",
|
| 381 |
+
"opera_mobile": "46",
|
| 382 |
+
"electron": "3.0"
|
| 383 |
+
},
|
| 384 |
+
"transform-object-rest-spread": {
|
| 385 |
+
"chrome": "60",
|
| 386 |
+
"opera": "47",
|
| 387 |
+
"edge": "79",
|
| 388 |
+
"firefox": "55",
|
| 389 |
+
"safari": "11.1",
|
| 390 |
+
"node": "8.3",
|
| 391 |
+
"deno": "1",
|
| 392 |
+
"ios": "11.3",
|
| 393 |
+
"samsung": "8",
|
| 394 |
+
"opera_mobile": "44",
|
| 395 |
+
"electron": "2.0"
|
| 396 |
+
},
|
| 397 |
+
"proposal-object-rest-spread": {
|
| 398 |
+
"chrome": "60",
|
| 399 |
+
"opera": "47",
|
| 400 |
+
"edge": "79",
|
| 401 |
+
"firefox": "55",
|
| 402 |
+
"safari": "11.1",
|
| 403 |
+
"node": "8.3",
|
| 404 |
+
"deno": "1",
|
| 405 |
+
"ios": "11.3",
|
| 406 |
+
"samsung": "8",
|
| 407 |
+
"opera_mobile": "44",
|
| 408 |
+
"electron": "2.0"
|
| 409 |
+
},
|
| 410 |
+
"transform-dotall-regex": {
|
| 411 |
+
"chrome": "62",
|
| 412 |
+
"opera": "49",
|
| 413 |
+
"edge": "79",
|
| 414 |
+
"firefox": "78",
|
| 415 |
+
"safari": "11.1",
|
| 416 |
+
"node": "8.10",
|
| 417 |
+
"deno": "1",
|
| 418 |
+
"ios": "11.3",
|
| 419 |
+
"samsung": "8",
|
| 420 |
+
"rhino": "1.7.15",
|
| 421 |
+
"opera_mobile": "46",
|
| 422 |
+
"electron": "3.0"
|
| 423 |
+
},
|
| 424 |
+
"transform-unicode-property-regex": {
|
| 425 |
+
"chrome": "64",
|
| 426 |
+
"opera": "51",
|
| 427 |
+
"edge": "79",
|
| 428 |
+
"firefox": "78",
|
| 429 |
+
"safari": "11.1",
|
| 430 |
+
"node": "10",
|
| 431 |
+
"deno": "1",
|
| 432 |
+
"ios": "11.3",
|
| 433 |
+
"samsung": "9",
|
| 434 |
+
"opera_mobile": "47",
|
| 435 |
+
"electron": "3.0"
|
| 436 |
+
},
|
| 437 |
+
"proposal-unicode-property-regex": {
|
| 438 |
+
"chrome": "64",
|
| 439 |
+
"opera": "51",
|
| 440 |
+
"edge": "79",
|
| 441 |
+
"firefox": "78",
|
| 442 |
+
"safari": "11.1",
|
| 443 |
+
"node": "10",
|
| 444 |
+
"deno": "1",
|
| 445 |
+
"ios": "11.3",
|
| 446 |
+
"samsung": "9",
|
| 447 |
+
"opera_mobile": "47",
|
| 448 |
+
"electron": "3.0"
|
| 449 |
+
},
|
| 450 |
+
"transform-named-capturing-groups-regex": {
|
| 451 |
+
"chrome": "64",
|
| 452 |
+
"opera": "51",
|
| 453 |
+
"edge": "79",
|
| 454 |
+
"firefox": "78",
|
| 455 |
+
"safari": "11.1",
|
| 456 |
+
"node": "10",
|
| 457 |
+
"deno": "1",
|
| 458 |
+
"ios": "11.3",
|
| 459 |
+
"samsung": "9",
|
| 460 |
+
"opera_mobile": "47",
|
| 461 |
+
"electron": "3.0"
|
| 462 |
+
},
|
| 463 |
+
"transform-async-to-generator": {
|
| 464 |
+
"chrome": "55",
|
| 465 |
+
"opera": "42",
|
| 466 |
+
"edge": "15",
|
| 467 |
+
"firefox": "52",
|
| 468 |
+
"safari": "11",
|
| 469 |
+
"node": "7.6",
|
| 470 |
+
"deno": "1",
|
| 471 |
+
"ios": "11",
|
| 472 |
+
"samsung": "6",
|
| 473 |
+
"opera_mobile": "42",
|
| 474 |
+
"electron": "1.6"
|
| 475 |
+
},
|
| 476 |
+
"transform-exponentiation-operator": {
|
| 477 |
+
"chrome": "52",
|
| 478 |
+
"opera": "39",
|
| 479 |
+
"edge": "14",
|
| 480 |
+
"firefox": "52",
|
| 481 |
+
"safari": "10.1",
|
| 482 |
+
"node": "7",
|
| 483 |
+
"deno": "1",
|
| 484 |
+
"ios": "10.3",
|
| 485 |
+
"samsung": "6",
|
| 486 |
+
"rhino": "1.7.14",
|
| 487 |
+
"opera_mobile": "41",
|
| 488 |
+
"electron": "1.3"
|
| 489 |
+
},
|
| 490 |
+
"transform-template-literals": {
|
| 491 |
+
"chrome": "41",
|
| 492 |
+
"opera": "28",
|
| 493 |
+
"edge": "13",
|
| 494 |
+
"firefox": "34",
|
| 495 |
+
"safari": "13",
|
| 496 |
+
"node": "4",
|
| 497 |
+
"deno": "1",
|
| 498 |
+
"ios": "13",
|
| 499 |
+
"samsung": "3.4",
|
| 500 |
+
"opera_mobile": "28",
|
| 501 |
+
"electron": "0.21"
|
| 502 |
+
},
|
| 503 |
+
"transform-literals": {
|
| 504 |
+
"chrome": "44",
|
| 505 |
+
"opera": "31",
|
| 506 |
+
"edge": "12",
|
| 507 |
+
"firefox": "53",
|
| 508 |
+
"safari": "9",
|
| 509 |
+
"node": "4",
|
| 510 |
+
"deno": "1",
|
| 511 |
+
"ios": "9",
|
| 512 |
+
"samsung": "4",
|
| 513 |
+
"rhino": "1.7.15",
|
| 514 |
+
"opera_mobile": "32",
|
| 515 |
+
"electron": "0.30"
|
| 516 |
+
},
|
| 517 |
+
"transform-function-name": {
|
| 518 |
+
"chrome": "51",
|
| 519 |
+
"opera": "38",
|
| 520 |
+
"edge": "79",
|
| 521 |
+
"firefox": "53",
|
| 522 |
+
"safari": "10",
|
| 523 |
+
"node": "6.5",
|
| 524 |
+
"deno": "1",
|
| 525 |
+
"ios": "10",
|
| 526 |
+
"samsung": "5",
|
| 527 |
+
"opera_mobile": "41",
|
| 528 |
+
"electron": "1.2"
|
| 529 |
+
},
|
| 530 |
+
"transform-arrow-functions": {
|
| 531 |
+
"chrome": "47",
|
| 532 |
+
"opera": "34",
|
| 533 |
+
"edge": "13",
|
| 534 |
+
"firefox": "43",
|
| 535 |
+
"safari": "10",
|
| 536 |
+
"node": "6",
|
| 537 |
+
"deno": "1",
|
| 538 |
+
"ios": "10",
|
| 539 |
+
"samsung": "5",
|
| 540 |
+
"rhino": "1.7.13",
|
| 541 |
+
"opera_mobile": "34",
|
| 542 |
+
"electron": "0.36"
|
| 543 |
+
},
|
| 544 |
+
"transform-block-scoped-functions": {
|
| 545 |
+
"chrome": "41",
|
| 546 |
+
"opera": "28",
|
| 547 |
+
"edge": "12",
|
| 548 |
+
"firefox": "46",
|
| 549 |
+
"safari": "10",
|
| 550 |
+
"node": "4",
|
| 551 |
+
"deno": "1",
|
| 552 |
+
"ie": "11",
|
| 553 |
+
"ios": "10",
|
| 554 |
+
"samsung": "3.4",
|
| 555 |
+
"opera_mobile": "28",
|
| 556 |
+
"electron": "0.21"
|
| 557 |
+
},
|
| 558 |
+
"transform-classes": {
|
| 559 |
+
"chrome": "46",
|
| 560 |
+
"opera": "33",
|
| 561 |
+
"edge": "13",
|
| 562 |
+
"firefox": "45",
|
| 563 |
+
"safari": "10",
|
| 564 |
+
"node": "5",
|
| 565 |
+
"deno": "1",
|
| 566 |
+
"ios": "10",
|
| 567 |
+
"samsung": "5",
|
| 568 |
+
"opera_mobile": "33",
|
| 569 |
+
"electron": "0.36"
|
| 570 |
+
},
|
| 571 |
+
"transform-object-super": {
|
| 572 |
+
"chrome": "46",
|
| 573 |
+
"opera": "33",
|
| 574 |
+
"edge": "13",
|
| 575 |
+
"firefox": "45",
|
| 576 |
+
"safari": "10",
|
| 577 |
+
"node": "5",
|
| 578 |
+
"deno": "1",
|
| 579 |
+
"ios": "10",
|
| 580 |
+
"samsung": "5",
|
| 581 |
+
"opera_mobile": "33",
|
| 582 |
+
"electron": "0.36"
|
| 583 |
+
},
|
| 584 |
+
"transform-shorthand-properties": {
|
| 585 |
+
"chrome": "43",
|
| 586 |
+
"opera": "30",
|
| 587 |
+
"edge": "12",
|
| 588 |
+
"firefox": "33",
|
| 589 |
+
"safari": "9",
|
| 590 |
+
"node": "4",
|
| 591 |
+
"deno": "1",
|
| 592 |
+
"ios": "9",
|
| 593 |
+
"samsung": "4",
|
| 594 |
+
"rhino": "1.7.14",
|
| 595 |
+
"opera_mobile": "30",
|
| 596 |
+
"electron": "0.27"
|
| 597 |
+
},
|
| 598 |
+
"transform-duplicate-keys": {
|
| 599 |
+
"chrome": "42",
|
| 600 |
+
"opera": "29",
|
| 601 |
+
"edge": "12",
|
| 602 |
+
"firefox": "34",
|
| 603 |
+
"safari": "9",
|
| 604 |
+
"node": "4",
|
| 605 |
+
"deno": "1",
|
| 606 |
+
"ios": "9",
|
| 607 |
+
"samsung": "3.4",
|
| 608 |
+
"opera_mobile": "29",
|
| 609 |
+
"electron": "0.25"
|
| 610 |
+
},
|
| 611 |
+
"transform-computed-properties": {
|
| 612 |
+
"chrome": "44",
|
| 613 |
+
"opera": "31",
|
| 614 |
+
"edge": "12",
|
| 615 |
+
"firefox": "34",
|
| 616 |
+
"safari": "7.1",
|
| 617 |
+
"node": "4",
|
| 618 |
+
"deno": "1",
|
| 619 |
+
"ios": "8",
|
| 620 |
+
"samsung": "4",
|
| 621 |
+
"rhino": "1.8",
|
| 622 |
+
"opera_mobile": "32",
|
| 623 |
+
"electron": "0.30"
|
| 624 |
+
},
|
| 625 |
+
"transform-for-of": {
|
| 626 |
+
"chrome": "51",
|
| 627 |
+
"opera": "38",
|
| 628 |
+
"edge": "15",
|
| 629 |
+
"firefox": "53",
|
| 630 |
+
"safari": "10",
|
| 631 |
+
"node": "6.5",
|
| 632 |
+
"deno": "1",
|
| 633 |
+
"ios": "10",
|
| 634 |
+
"samsung": "5",
|
| 635 |
+
"opera_mobile": "41",
|
| 636 |
+
"electron": "1.2"
|
| 637 |
+
},
|
| 638 |
+
"transform-sticky-regex": {
|
| 639 |
+
"chrome": "49",
|
| 640 |
+
"opera": "36",
|
| 641 |
+
"edge": "13",
|
| 642 |
+
"firefox": "3",
|
| 643 |
+
"safari": "10",
|
| 644 |
+
"node": "6",
|
| 645 |
+
"deno": "1",
|
| 646 |
+
"ios": "10",
|
| 647 |
+
"samsung": "5",
|
| 648 |
+
"rhino": "1.7.15",
|
| 649 |
+
"opera_mobile": "36",
|
| 650 |
+
"electron": "0.37"
|
| 651 |
+
},
|
| 652 |
+
"transform-unicode-escapes": {
|
| 653 |
+
"chrome": "44",
|
| 654 |
+
"opera": "31",
|
| 655 |
+
"edge": "12",
|
| 656 |
+
"firefox": "53",
|
| 657 |
+
"safari": "9",
|
| 658 |
+
"node": "4",
|
| 659 |
+
"deno": "1",
|
| 660 |
+
"ios": "9",
|
| 661 |
+
"samsung": "4",
|
| 662 |
+
"rhino": "1.7.15",
|
| 663 |
+
"opera_mobile": "32",
|
| 664 |
+
"electron": "0.30"
|
| 665 |
+
},
|
| 666 |
+
"transform-unicode-regex": {
|
| 667 |
+
"chrome": "50",
|
| 668 |
+
"opera": "37",
|
| 669 |
+
"edge": "13",
|
| 670 |
+
"firefox": "46",
|
| 671 |
+
"safari": "12",
|
| 672 |
+
"node": "6",
|
| 673 |
+
"deno": "1",
|
| 674 |
+
"ios": "12",
|
| 675 |
+
"samsung": "5",
|
| 676 |
+
"opera_mobile": "37",
|
| 677 |
+
"electron": "1.1"
|
| 678 |
+
},
|
| 679 |
+
"transform-spread": {
|
| 680 |
+
"chrome": "46",
|
| 681 |
+
"opera": "33",
|
| 682 |
+
"edge": "13",
|
| 683 |
+
"firefox": "45",
|
| 684 |
+
"safari": "10",
|
| 685 |
+
"node": "5",
|
| 686 |
+
"deno": "1",
|
| 687 |
+
"ios": "10",
|
| 688 |
+
"samsung": "5",
|
| 689 |
+
"opera_mobile": "33",
|
| 690 |
+
"electron": "0.36"
|
| 691 |
+
},
|
| 692 |
+
"transform-destructuring": {
|
| 693 |
+
"chrome": "51",
|
| 694 |
+
"opera": "38",
|
| 695 |
+
"edge": "15",
|
| 696 |
+
"firefox": "53",
|
| 697 |
+
"safari": "10",
|
| 698 |
+
"node": "6.5",
|
| 699 |
+
"deno": "1",
|
| 700 |
+
"ios": "10",
|
| 701 |
+
"samsung": "5",
|
| 702 |
+
"opera_mobile": "41",
|
| 703 |
+
"electron": "1.2"
|
| 704 |
+
},
|
| 705 |
+
"transform-block-scoping": {
|
| 706 |
+
"chrome": "50",
|
| 707 |
+
"opera": "37",
|
| 708 |
+
"edge": "14",
|
| 709 |
+
"firefox": "53",
|
| 710 |
+
"safari": "11",
|
| 711 |
+
"node": "6",
|
| 712 |
+
"deno": "1",
|
| 713 |
+
"ios": "11",
|
| 714 |
+
"samsung": "5",
|
| 715 |
+
"opera_mobile": "37",
|
| 716 |
+
"electron": "1.1"
|
| 717 |
+
},
|
| 718 |
+
"transform-typeof-symbol": {
|
| 719 |
+
"chrome": "48",
|
| 720 |
+
"opera": "35",
|
| 721 |
+
"edge": "12",
|
| 722 |
+
"firefox": "36",
|
| 723 |
+
"safari": "9",
|
| 724 |
+
"node": "6",
|
| 725 |
+
"deno": "1",
|
| 726 |
+
"ios": "9",
|
| 727 |
+
"samsung": "5",
|
| 728 |
+
"rhino": "1.8",
|
| 729 |
+
"opera_mobile": "35",
|
| 730 |
+
"electron": "0.37"
|
| 731 |
+
},
|
| 732 |
+
"transform-new-target": {
|
| 733 |
+
"chrome": "46",
|
| 734 |
+
"opera": "33",
|
| 735 |
+
"edge": "14",
|
| 736 |
+
"firefox": "41",
|
| 737 |
+
"safari": "10",
|
| 738 |
+
"node": "5",
|
| 739 |
+
"deno": "1",
|
| 740 |
+
"ios": "10",
|
| 741 |
+
"samsung": "5",
|
| 742 |
+
"opera_mobile": "33",
|
| 743 |
+
"electron": "0.36"
|
| 744 |
+
},
|
| 745 |
+
"transform-regenerator": {
|
| 746 |
+
"chrome": "50",
|
| 747 |
+
"opera": "37",
|
| 748 |
+
"edge": "13",
|
| 749 |
+
"firefox": "53",
|
| 750 |
+
"safari": "10",
|
| 751 |
+
"node": "6",
|
| 752 |
+
"deno": "1",
|
| 753 |
+
"ios": "10",
|
| 754 |
+
"samsung": "5",
|
| 755 |
+
"opera_mobile": "37",
|
| 756 |
+
"electron": "1.1"
|
| 757 |
+
},
|
| 758 |
+
"transform-member-expression-literals": {
|
| 759 |
+
"chrome": "7",
|
| 760 |
+
"opera": "12",
|
| 761 |
+
"edge": "12",
|
| 762 |
+
"firefox": "2",
|
| 763 |
+
"safari": "5.1",
|
| 764 |
+
"node": "0.4",
|
| 765 |
+
"deno": "1",
|
| 766 |
+
"ie": "9",
|
| 767 |
+
"android": "4",
|
| 768 |
+
"ios": "6",
|
| 769 |
+
"phantom": "1.9",
|
| 770 |
+
"samsung": "1",
|
| 771 |
+
"rhino": "1.7.13",
|
| 772 |
+
"opera_mobile": "12",
|
| 773 |
+
"electron": "0.20"
|
| 774 |
+
},
|
| 775 |
+
"transform-property-literals": {
|
| 776 |
+
"chrome": "7",
|
| 777 |
+
"opera": "12",
|
| 778 |
+
"edge": "12",
|
| 779 |
+
"firefox": "2",
|
| 780 |
+
"safari": "5.1",
|
| 781 |
+
"node": "0.4",
|
| 782 |
+
"deno": "1",
|
| 783 |
+
"ie": "9",
|
| 784 |
+
"android": "4",
|
| 785 |
+
"ios": "6",
|
| 786 |
+
"phantom": "1.9",
|
| 787 |
+
"samsung": "1",
|
| 788 |
+
"rhino": "1.7.13",
|
| 789 |
+
"opera_mobile": "12",
|
| 790 |
+
"electron": "0.20"
|
| 791 |
+
},
|
| 792 |
+
"transform-reserved-words": {
|
| 793 |
+
"chrome": "13",
|
| 794 |
+
"opera": "10.50",
|
| 795 |
+
"edge": "12",
|
| 796 |
+
"firefox": "2",
|
| 797 |
+
"safari": "3.1",
|
| 798 |
+
"node": "0.6",
|
| 799 |
+
"deno": "1",
|
| 800 |
+
"ie": "9",
|
| 801 |
+
"android": "4.4",
|
| 802 |
+
"ios": "6",
|
| 803 |
+
"phantom": "1.9",
|
| 804 |
+
"samsung": "1",
|
| 805 |
+
"rhino": "1.7.13",
|
| 806 |
+
"opera_mobile": "10.1",
|
| 807 |
+
"electron": "0.20"
|
| 808 |
+
},
|
| 809 |
+
"transform-export-namespace-from": {
|
| 810 |
+
"chrome": "72",
|
| 811 |
+
"deno": "1.0",
|
| 812 |
+
"edge": "79",
|
| 813 |
+
"firefox": "80",
|
| 814 |
+
"node": "13.2.0",
|
| 815 |
+
"opera": "60",
|
| 816 |
+
"opera_mobile": "51",
|
| 817 |
+
"safari": "14.1",
|
| 818 |
+
"ios": "14.5",
|
| 819 |
+
"samsung": "11.0",
|
| 820 |
+
"android": "72",
|
| 821 |
+
"electron": "5.0"
|
| 822 |
+
},
|
| 823 |
+
"proposal-export-namespace-from": {
|
| 824 |
+
"chrome": "72",
|
| 825 |
+
"deno": "1.0",
|
| 826 |
+
"edge": "79",
|
| 827 |
+
"firefox": "80",
|
| 828 |
+
"node": "13.2.0",
|
| 829 |
+
"opera": "60",
|
| 830 |
+
"opera_mobile": "51",
|
| 831 |
+
"safari": "14.1",
|
| 832 |
+
"ios": "14.5",
|
| 833 |
+
"samsung": "11.0",
|
| 834 |
+
"android": "72",
|
| 835 |
+
"electron": "5.0"
|
| 836 |
+
}
|
| 837 |
+
}
|
frontend/node_modules/@babel/compat-data/native-modules.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
| 2 |
+
module.exports = require("./data/native-modules.json");
|
frontend/node_modules/@babel/compat-data/overlapping-plugins.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
| 2 |
+
module.exports = require("./data/overlapping-plugins.json");
|
frontend/node_modules/@babel/compat-data/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@babel/compat-data",
|
| 3 |
+
"version": "7.28.0",
|
| 4 |
+
"author": "The Babel Team (https://babel.dev/team)",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"description": "The compat-data to determine required Babel plugins",
|
| 7 |
+
"repository": {
|
| 8 |
+
"type": "git",
|
| 9 |
+
"url": "https://github.com/babel/babel.git",
|
| 10 |
+
"directory": "packages/babel-compat-data"
|
| 11 |
+
},
|
| 12 |
+
"publishConfig": {
|
| 13 |
+
"access": "public"
|
| 14 |
+
},
|
| 15 |
+
"exports": {
|
| 16 |
+
"./plugins": "./plugins.js",
|
| 17 |
+
"./native-modules": "./native-modules.js",
|
| 18 |
+
"./corejs2-built-ins": "./corejs2-built-ins.js",
|
| 19 |
+
"./corejs3-shipped-proposals": "./corejs3-shipped-proposals.js",
|
| 20 |
+
"./overlapping-plugins": "./overlapping-plugins.js",
|
| 21 |
+
"./plugin-bugfixes": "./plugin-bugfixes.js"
|
| 22 |
+
},
|
| 23 |
+
"scripts": {
|
| 24 |
+
"build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.mjs && node ./scripts/build-modules-support.mjs && node ./scripts/build-bugfixes-targets.mjs"
|
| 25 |
+
},
|
| 26 |
+
"keywords": [
|
| 27 |
+
"babel",
|
| 28 |
+
"compat-table",
|
| 29 |
+
"compat-data"
|
| 30 |
+
],
|
| 31 |
+
"devDependencies": {
|
| 32 |
+
"@mdn/browser-compat-data": "^6.0.8",
|
| 33 |
+
"core-js-compat": "^3.43.0",
|
| 34 |
+
"electron-to-chromium": "^1.5.140"
|
| 35 |
+
},
|
| 36 |
+
"engines": {
|
| 37 |
+
"node": ">=6.9.0"
|
| 38 |
+
},
|
| 39 |
+
"type": "commonjs"
|
| 40 |
+
}
|
frontend/node_modules/@babel/compat-data/plugin-bugfixes.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
| 2 |
+
module.exports = require("./data/plugin-bugfixes.json");
|
frontend/node_modules/@babel/compat-data/plugins.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
| 2 |
+
module.exports = require("./data/plugins.json");
|
frontend/node_modules/@babel/core/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
"Software"), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 19 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 20 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 21 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 22 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
frontend/node_modules/@babel/core/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @babel/core
|
| 2 |
+
|
| 3 |
+
> Babel compiler core.
|
| 4 |
+
|
| 5 |
+
See our website [@babel/core](https://babeljs.io/docs/babel-core) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen) associated with this package.
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
Using npm:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
npm install --save-dev @babel/core
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
or using yarn:
|
| 16 |
+
|
| 17 |
+
```sh
|
| 18 |
+
yarn add @babel/core --dev
|
| 19 |
+
```
|
frontend/node_modules/@babel/core/lib/config/cache-contexts.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
0 && 0;
|
| 4 |
+
|
| 5 |
+
//# sourceMappingURL=cache-contexts.js.map
|
frontend/node_modules/@babel/core/lib/config/cache-contexts.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":[],"sources":["../../src/config/cache-contexts.ts"],"sourcesContent":["import type { Targets } from \"@babel/helper-compilation-targets\";\n\nimport type { ConfigContext } from \"./config-chain.ts\";\nimport type { CallerMetadata } from \"./validation/options.ts\";\n\nexport type { ConfigContext as FullConfig };\n\nexport type FullPreset = {\n targets: Targets;\n} & ConfigContext;\nexport type FullPlugin = {\n assumptions: { [name: string]: boolean };\n} & FullPreset;\n\n// Context not including filename since it is used in places that cannot\n// process 'ignore'/'only' and other filename-based logic.\nexport type SimpleConfig = {\n envName: string;\n caller: CallerMetadata | undefined;\n};\nexport type SimplePreset = {\n targets: Targets;\n} & SimpleConfig;\nexport type SimplePlugin = {\n assumptions: {\n [name: string]: boolean;\n };\n} & SimplePreset;\n"],"mappings":"","ignoreList":[]}
|
frontend/node_modules/@babel/core/lib/config/caching.js
ADDED
|
@@ -0,0 +1,261 @@
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.assertSimpleType = assertSimpleType;
|
| 7 |
+
exports.makeStrongCache = makeStrongCache;
|
| 8 |
+
exports.makeStrongCacheSync = makeStrongCacheSync;
|
| 9 |
+
exports.makeWeakCache = makeWeakCache;
|
| 10 |
+
exports.makeWeakCacheSync = makeWeakCacheSync;
|
| 11 |
+
function _gensync() {
|
| 12 |
+
const data = require("gensync");
|
| 13 |
+
_gensync = function () {
|
| 14 |
+
return data;
|
| 15 |
+
};
|
| 16 |
+
return data;
|
| 17 |
+
}
|
| 18 |
+
var _async = require("../gensync-utils/async.js");
|
| 19 |
+
var _util = require("./util.js");
|
| 20 |
+
const synchronize = gen => {
|
| 21 |
+
return _gensync()(gen).sync;
|
| 22 |
+
};
|
| 23 |
+
function* genTrue() {
|
| 24 |
+
return true;
|
| 25 |
+
}
|
| 26 |
+
function makeWeakCache(handler) {
|
| 27 |
+
return makeCachedFunction(WeakMap, handler);
|
| 28 |
+
}
|
| 29 |
+
function makeWeakCacheSync(handler) {
|
| 30 |
+
return synchronize(makeWeakCache(handler));
|
| 31 |
+
}
|
| 32 |
+
function makeStrongCache(handler) {
|
| 33 |
+
return makeCachedFunction(Map, handler);
|
| 34 |
+
}
|
| 35 |
+
function makeStrongCacheSync(handler) {
|
| 36 |
+
return synchronize(makeStrongCache(handler));
|
| 37 |
+
}
|
| 38 |
+
function makeCachedFunction(CallCache, handler) {
|
| 39 |
+
const callCacheSync = new CallCache();
|
| 40 |
+
const callCacheAsync = new CallCache();
|
| 41 |
+
const futureCache = new CallCache();
|
| 42 |
+
return function* cachedFunction(arg, data) {
|
| 43 |
+
const asyncContext = yield* (0, _async.isAsync)();
|
| 44 |
+
const callCache = asyncContext ? callCacheAsync : callCacheSync;
|
| 45 |
+
const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data);
|
| 46 |
+
if (cached.valid) return cached.value;
|
| 47 |
+
const cache = new CacheConfigurator(data);
|
| 48 |
+
const handlerResult = handler(arg, cache);
|
| 49 |
+
let finishLock;
|
| 50 |
+
let value;
|
| 51 |
+
if ((0, _util.isIterableIterator)(handlerResult)) {
|
| 52 |
+
value = yield* (0, _async.onFirstPause)(handlerResult, () => {
|
| 53 |
+
finishLock = setupAsyncLocks(cache, futureCache, arg);
|
| 54 |
+
});
|
| 55 |
+
} else {
|
| 56 |
+
value = handlerResult;
|
| 57 |
+
}
|
| 58 |
+
updateFunctionCache(callCache, cache, arg, value);
|
| 59 |
+
if (finishLock) {
|
| 60 |
+
futureCache.delete(arg);
|
| 61 |
+
finishLock.release(value);
|
| 62 |
+
}
|
| 63 |
+
return value;
|
| 64 |
+
};
|
| 65 |
+
}
|
| 66 |
+
function* getCachedValue(cache, arg, data) {
|
| 67 |
+
const cachedValue = cache.get(arg);
|
| 68 |
+
if (cachedValue) {
|
| 69 |
+
for (const {
|
| 70 |
+
value,
|
| 71 |
+
valid
|
| 72 |
+
} of cachedValue) {
|
| 73 |
+
if (yield* valid(data)) return {
|
| 74 |
+
valid: true,
|
| 75 |
+
value
|
| 76 |
+
};
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
return {
|
| 80 |
+
valid: false,
|
| 81 |
+
value: null
|
| 82 |
+
};
|
| 83 |
+
}
|
| 84 |
+
function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) {
|
| 85 |
+
const cached = yield* getCachedValue(callCache, arg, data);
|
| 86 |
+
if (cached.valid) {
|
| 87 |
+
return cached;
|
| 88 |
+
}
|
| 89 |
+
if (asyncContext) {
|
| 90 |
+
const cached = yield* getCachedValue(futureCache, arg, data);
|
| 91 |
+
if (cached.valid) {
|
| 92 |
+
const value = yield* (0, _async.waitFor)(cached.value.promise);
|
| 93 |
+
return {
|
| 94 |
+
valid: true,
|
| 95 |
+
value
|
| 96 |
+
};
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
return {
|
| 100 |
+
valid: false,
|
| 101 |
+
value: null
|
| 102 |
+
};
|
| 103 |
+
}
|
| 104 |
+
function setupAsyncLocks(config, futureCache, arg) {
|
| 105 |
+
const finishLock = new Lock();
|
| 106 |
+
updateFunctionCache(futureCache, config, arg, finishLock);
|
| 107 |
+
return finishLock;
|
| 108 |
+
}
|
| 109 |
+
function updateFunctionCache(cache, config, arg, value) {
|
| 110 |
+
if (!config.configured()) config.forever();
|
| 111 |
+
let cachedValue = cache.get(arg);
|
| 112 |
+
config.deactivate();
|
| 113 |
+
switch (config.mode()) {
|
| 114 |
+
case "forever":
|
| 115 |
+
cachedValue = [{
|
| 116 |
+
value,
|
| 117 |
+
valid: genTrue
|
| 118 |
+
}];
|
| 119 |
+
cache.set(arg, cachedValue);
|
| 120 |
+
break;
|
| 121 |
+
case "invalidate":
|
| 122 |
+
cachedValue = [{
|
| 123 |
+
value,
|
| 124 |
+
valid: config.validator()
|
| 125 |
+
}];
|
| 126 |
+
cache.set(arg, cachedValue);
|
| 127 |
+
break;
|
| 128 |
+
case "valid":
|
| 129 |
+
if (cachedValue) {
|
| 130 |
+
cachedValue.push({
|
| 131 |
+
value,
|
| 132 |
+
valid: config.validator()
|
| 133 |
+
});
|
| 134 |
+
} else {
|
| 135 |
+
cachedValue = [{
|
| 136 |
+
value,
|
| 137 |
+
valid: config.validator()
|
| 138 |
+
}];
|
| 139 |
+
cache.set(arg, cachedValue);
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
class CacheConfigurator {
|
| 144 |
+
constructor(data) {
|
| 145 |
+
this._active = true;
|
| 146 |
+
this._never = false;
|
| 147 |
+
this._forever = false;
|
| 148 |
+
this._invalidate = false;
|
| 149 |
+
this._configured = false;
|
| 150 |
+
this._pairs = [];
|
| 151 |
+
this._data = void 0;
|
| 152 |
+
this._data = data;
|
| 153 |
+
}
|
| 154 |
+
simple() {
|
| 155 |
+
return makeSimpleConfigurator(this);
|
| 156 |
+
}
|
| 157 |
+
mode() {
|
| 158 |
+
if (this._never) return "never";
|
| 159 |
+
if (this._forever) return "forever";
|
| 160 |
+
if (this._invalidate) return "invalidate";
|
| 161 |
+
return "valid";
|
| 162 |
+
}
|
| 163 |
+
forever() {
|
| 164 |
+
if (!this._active) {
|
| 165 |
+
throw new Error("Cannot change caching after evaluation has completed.");
|
| 166 |
+
}
|
| 167 |
+
if (this._never) {
|
| 168 |
+
throw new Error("Caching has already been configured with .never()");
|
| 169 |
+
}
|
| 170 |
+
this._forever = true;
|
| 171 |
+
this._configured = true;
|
| 172 |
+
}
|
| 173 |
+
never() {
|
| 174 |
+
if (!this._active) {
|
| 175 |
+
throw new Error("Cannot change caching after evaluation has completed.");
|
| 176 |
+
}
|
| 177 |
+
if (this._forever) {
|
| 178 |
+
throw new Error("Caching has already been configured with .forever()");
|
| 179 |
+
}
|
| 180 |
+
this._never = true;
|
| 181 |
+
this._configured = true;
|
| 182 |
+
}
|
| 183 |
+
using(handler) {
|
| 184 |
+
if (!this._active) {
|
| 185 |
+
throw new Error("Cannot change caching after evaluation has completed.");
|
| 186 |
+
}
|
| 187 |
+
if (this._never || this._forever) {
|
| 188 |
+
throw new Error("Caching has already been configured with .never or .forever()");
|
| 189 |
+
}
|
| 190 |
+
this._configured = true;
|
| 191 |
+
const key = handler(this._data);
|
| 192 |
+
const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`);
|
| 193 |
+
if ((0, _async.isThenable)(key)) {
|
| 194 |
+
return key.then(key => {
|
| 195 |
+
this._pairs.push([key, fn]);
|
| 196 |
+
return key;
|
| 197 |
+
});
|
| 198 |
+
}
|
| 199 |
+
this._pairs.push([key, fn]);
|
| 200 |
+
return key;
|
| 201 |
+
}
|
| 202 |
+
invalidate(handler) {
|
| 203 |
+
this._invalidate = true;
|
| 204 |
+
return this.using(handler);
|
| 205 |
+
}
|
| 206 |
+
validator() {
|
| 207 |
+
const pairs = this._pairs;
|
| 208 |
+
return function* (data) {
|
| 209 |
+
for (const [key, fn] of pairs) {
|
| 210 |
+
if (key !== (yield* fn(data))) return false;
|
| 211 |
+
}
|
| 212 |
+
return true;
|
| 213 |
+
};
|
| 214 |
+
}
|
| 215 |
+
deactivate() {
|
| 216 |
+
this._active = false;
|
| 217 |
+
}
|
| 218 |
+
configured() {
|
| 219 |
+
return this._configured;
|
| 220 |
+
}
|
| 221 |
+
}
|
| 222 |
+
function makeSimpleConfigurator(cache) {
|
| 223 |
+
function cacheFn(val) {
|
| 224 |
+
if (typeof val === "boolean") {
|
| 225 |
+
if (val) cache.forever();else cache.never();
|
| 226 |
+
return;
|
| 227 |
+
}
|
| 228 |
+
return cache.using(() => assertSimpleType(val()));
|
| 229 |
+
}
|
| 230 |
+
cacheFn.forever = () => cache.forever();
|
| 231 |
+
cacheFn.never = () => cache.never();
|
| 232 |
+
cacheFn.using = cb => cache.using(() => assertSimpleType(cb()));
|
| 233 |
+
cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb()));
|
| 234 |
+
return cacheFn;
|
| 235 |
+
}
|
| 236 |
+
function assertSimpleType(value) {
|
| 237 |
+
if ((0, _async.isThenable)(value)) {
|
| 238 |
+
throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`);
|
| 239 |
+
}
|
| 240 |
+
if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") {
|
| 241 |
+
throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");
|
| 242 |
+
}
|
| 243 |
+
return value;
|
| 244 |
+
}
|
| 245 |
+
class Lock {
|
| 246 |
+
constructor() {
|
| 247 |
+
this.released = false;
|
| 248 |
+
this.promise = void 0;
|
| 249 |
+
this._resolve = void 0;
|
| 250 |
+
this.promise = new Promise(resolve => {
|
| 251 |
+
this._resolve = resolve;
|
| 252 |
+
});
|
| 253 |
+
}
|
| 254 |
+
release(value) {
|
| 255 |
+
this.released = true;
|
| 256 |
+
this._resolve(value);
|
| 257 |
+
}
|
| 258 |
+
}
|
| 259 |
+
0 && 0;
|
| 260 |
+
|
| 261 |
+
//# sourceMappingURL=caching.js.map
|
frontend/node_modules/@babel/core/lib/config/caching.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_gensync","data","require","_async","_util","synchronize","gen","gensync","sync","genTrue","makeWeakCache","handler","makeCachedFunction","WeakMap","makeWeakCacheSync","makeStrongCache","Map","makeStrongCacheSync","CallCache","callCacheSync","callCacheAsync","futureCache","cachedFunction","arg","asyncContext","isAsync","callCache","cached","getCachedValueOrWait","valid","value","cache","CacheConfigurator","handlerResult","finishLock","isIterableIterator","onFirstPause","setupAsyncLocks","updateFunctionCache","delete","release","getCachedValue","cachedValue","get","waitFor","promise","config","Lock","configured","forever","deactivate","mode","set","validator","push","constructor","_active","_never","_forever","_invalidate","_configured","_pairs","_data","simple","makeSimpleConfigurator","Error","never","using","key","fn","maybeAsync","isThenable","then","invalidate","pairs","cacheFn","val","assertSimpleType","cb","released","_resolve","Promise","resolve"],"sources":["../../src/config/caching.ts"],"sourcesContent":["import gensync from \"gensync\";\nimport type { Handler } from \"gensync\";\nimport {\n maybeAsync,\n isAsync,\n onFirstPause,\n waitFor,\n isThenable,\n} from \"../gensync-utils/async.ts\";\nimport { isIterableIterator } from \"./util.ts\";\n\nexport type { CacheConfigurator };\n\nexport type SimpleCacheConfigurator = {\n (forever: boolean): void;\n <T>(handler: () => T): T;\n\n forever: () => void;\n never: () => void;\n using: <T>(handler: () => T) => T;\n invalidate: <T>(handler: () => T) => T;\n};\n\nexport type CacheEntry<ResultT, SideChannel> = Array<{\n value: ResultT;\n valid: (channel: SideChannel) => Handler<boolean>;\n}>;\n\nconst synchronize = <ArgsT extends unknown[], ResultT>(\n gen: (...args: ArgsT) => Handler<ResultT>,\n): ((...args: ArgsT) => ResultT) => {\n return gensync(gen).sync;\n};\n\n// eslint-disable-next-line require-yield\nfunction* genTrue() {\n return true;\n}\n\nexport function makeWeakCache<ArgT extends object, ResultT, SideChannel>(\n handler: (\n arg: ArgT,\n cache: CacheConfigurator<SideChannel>,\n ) => Handler<ResultT> | ResultT,\n): (arg: ArgT, data: SideChannel) => Handler<ResultT> {\n return makeCachedFunction<ArgT, ResultT, SideChannel>(WeakMap, handler);\n}\n\nexport function makeWeakCacheSync<ArgT extends object, ResultT, SideChannel>(\n handler: (arg: ArgT, cache?: CacheConfigurator<SideChannel>) => ResultT,\n): (arg: ArgT, data?: SideChannel) => ResultT {\n return synchronize<[ArgT, SideChannel], ResultT>(\n makeWeakCache<ArgT, ResultT, SideChannel>(handler),\n );\n}\n\nexport function makeStrongCache<ArgT, ResultT, SideChannel>(\n handler: (\n arg: ArgT,\n cache: CacheConfigurator<SideChannel>,\n ) => Handler<ResultT> | ResultT,\n): (arg: ArgT, data: SideChannel) => Handler<ResultT> {\n return makeCachedFunction<ArgT, ResultT, SideChannel>(Map, handler);\n}\n\nexport function makeStrongCacheSync<ArgT, ResultT, SideChannel>(\n handler: (arg: ArgT, cache?: CacheConfigurator<SideChannel>) => ResultT,\n): (arg: ArgT, data?: SideChannel) => ResultT {\n return synchronize<[ArgT, SideChannel], ResultT>(\n makeStrongCache<ArgT, ResultT, SideChannel>(handler),\n );\n}\n\n/* NOTE: Part of the logic explained in this comment is explained in the\n * getCachedValueOrWait and setupAsyncLocks functions.\n *\n * > There are only two hard things in Computer Science: cache invalidation and naming things.\n * > -- Phil Karlton\n *\n * I don't know if Phil was also thinking about handling a cache whose invalidation function is\n * defined asynchronously is considered, but it is REALLY hard to do correctly.\n *\n * The implemented logic (only when gensync is run asynchronously) is the following:\n * 1. If there is a valid cache associated to the current \"arg\" parameter,\n * a. RETURN the cached value\n * 3. If there is a FinishLock associated to the current \"arg\" parameter representing a valid cache,\n * a. Wait for that lock to be released\n * b. RETURN the value associated with that lock\n * 5. Start executing the function to be cached\n * a. If it pauses on a promise, then\n * i. Let FinishLock be a new lock\n * ii. Store FinishLock as associated to the current \"arg\" parameter\n * iii. Wait for the function to finish executing\n * iv. Release FinishLock\n * v. Send the function result to anyone waiting on FinishLock\n * 6. Store the result in the cache\n * 7. RETURN the result\n */\nfunction makeCachedFunction<ArgT, ResultT, SideChannel>(\n CallCache: new <Cached>() => CacheMap<ArgT, Cached, SideChannel>,\n handler: (\n arg: ArgT,\n cache: CacheConfigurator<SideChannel>,\n ) => Handler<ResultT> | ResultT,\n): (arg: ArgT, data: SideChannel) => Handler<ResultT> {\n const callCacheSync = new CallCache<ResultT>();\n const callCacheAsync = new CallCache<ResultT>();\n const futureCache = new CallCache<Lock<ResultT>>();\n\n return function* cachedFunction(arg: ArgT, data: SideChannel) {\n const asyncContext = yield* isAsync();\n const callCache = asyncContext ? callCacheAsync : callCacheSync;\n\n const cached = yield* getCachedValueOrWait<ArgT, ResultT, SideChannel>(\n asyncContext,\n callCache,\n futureCache,\n arg,\n data,\n );\n if (cached.valid) return cached.value;\n\n const cache = new CacheConfigurator(data);\n\n const handlerResult: Handler<ResultT> | ResultT = handler(arg, cache);\n\n let finishLock: Lock<ResultT>;\n let value: ResultT;\n\n if (isIterableIterator(handlerResult)) {\n value = yield* onFirstPause(handlerResult, () => {\n finishLock = setupAsyncLocks(cache, futureCache, arg);\n });\n } else {\n value = handlerResult;\n }\n\n updateFunctionCache(callCache, cache, arg, value);\n\n if (finishLock) {\n futureCache.delete(arg);\n finishLock.release(value);\n }\n\n return value;\n };\n}\n\ntype CacheMap<ArgT, ResultT, SideChannel> =\n | Map<ArgT, CacheEntry<ResultT, SideChannel>>\n // @ts-expect-error todo(flow->ts): add `extends object` constraint to ArgT\n | WeakMap<ArgT, CacheEntry<ResultT, SideChannel>>;\n\nfunction* getCachedValue<ArgT, ResultT, SideChannel>(\n cache: CacheMap<ArgT, ResultT, SideChannel>,\n arg: ArgT,\n data: SideChannel,\n): Handler<{ valid: true; value: ResultT } | { valid: false; value: null }> {\n const cachedValue: CacheEntry<ResultT, SideChannel> | void = cache.get(arg);\n\n if (cachedValue) {\n for (const { value, valid } of cachedValue) {\n if (yield* valid(data)) return { valid: true, value };\n }\n }\n\n return { valid: false, value: null };\n}\n\nfunction* getCachedValueOrWait<ArgT, ResultT, SideChannel>(\n asyncContext: boolean,\n callCache: CacheMap<ArgT, ResultT, SideChannel>,\n futureCache: CacheMap<ArgT, Lock<ResultT>, SideChannel>,\n arg: ArgT,\n data: SideChannel,\n): Handler<{ valid: true; value: ResultT } | { valid: false; value: null }> {\n const cached = yield* getCachedValue(callCache, arg, data);\n if (cached.valid) {\n return cached;\n }\n\n if (asyncContext) {\n const cached = yield* getCachedValue(futureCache, arg, data);\n if (cached.valid) {\n const value = yield* waitFor<ResultT>(cached.value.promise);\n return { valid: true, value };\n }\n }\n\n return { valid: false, value: null };\n}\n\nfunction setupAsyncLocks<ArgT, ResultT, SideChannel>(\n config: CacheConfigurator<SideChannel>,\n futureCache: CacheMap<ArgT, Lock<ResultT>, SideChannel>,\n arg: ArgT,\n): Lock<ResultT> {\n const finishLock = new Lock<ResultT>();\n\n updateFunctionCache(futureCache, config, arg, finishLock);\n\n return finishLock;\n}\n\nfunction updateFunctionCache<\n ArgT,\n ResultT,\n SideChannel,\n Cache extends CacheMap<ArgT, ResultT, SideChannel>,\n>(\n cache: Cache,\n config: CacheConfigurator<SideChannel>,\n arg: ArgT,\n value: ResultT,\n) {\n if (!config.configured()) config.forever();\n\n let cachedValue: CacheEntry<ResultT, SideChannel> | void = cache.get(arg);\n\n config.deactivate();\n\n switch (config.mode()) {\n case \"forever\":\n cachedValue = [{ value, valid: genTrue }];\n cache.set(arg, cachedValue);\n break;\n case \"invalidate\":\n cachedValue = [{ value, valid: config.validator() }];\n cache.set(arg, cachedValue);\n break;\n case \"valid\":\n if (cachedValue) {\n cachedValue.push({ value, valid: config.validator() });\n } else {\n cachedValue = [{ value, valid: config.validator() }];\n cache.set(arg, cachedValue);\n }\n }\n}\n\nclass CacheConfigurator<SideChannel = void> {\n _active: boolean = true;\n _never: boolean = false;\n _forever: boolean = false;\n _invalidate: boolean = false;\n\n _configured: boolean = false;\n\n _pairs: Array<\n [cachedValue: unknown, handler: (data: SideChannel) => Handler<unknown>]\n > = [];\n\n _data: SideChannel;\n\n constructor(data: SideChannel) {\n this._data = data;\n }\n\n simple() {\n return makeSimpleConfigurator(this);\n }\n\n mode() {\n if (this._never) return \"never\";\n if (this._forever) return \"forever\";\n if (this._invalidate) return \"invalidate\";\n return \"valid\";\n }\n\n forever() {\n if (!this._active) {\n throw new Error(\"Cannot change caching after evaluation has completed.\");\n }\n if (this._never) {\n throw new Error(\"Caching has already been configured with .never()\");\n }\n this._forever = true;\n this._configured = true;\n }\n\n never() {\n if (!this._active) {\n throw new Error(\"Cannot change caching after evaluation has completed.\");\n }\n if (this._forever) {\n throw new Error(\"Caching has already been configured with .forever()\");\n }\n this._never = true;\n this._configured = true;\n }\n\n using<T>(handler: (data: SideChannel) => T): T {\n if (!this._active) {\n throw new Error(\"Cannot change caching after evaluation has completed.\");\n }\n if (this._never || this._forever) {\n throw new Error(\n \"Caching has already been configured with .never or .forever()\",\n );\n }\n this._configured = true;\n\n const key = handler(this._data);\n\n const fn = maybeAsync(\n handler,\n `You appear to be using an async cache handler, but Babel has been called synchronously`,\n );\n\n if (isThenable(key)) {\n // @ts-expect-error todo(flow->ts): improve function return type annotation\n return key.then((key: unknown) => {\n this._pairs.push([key, fn]);\n return key;\n });\n }\n\n this._pairs.push([key, fn]);\n return key;\n }\n\n invalidate<T>(handler: (data: SideChannel) => T): T {\n this._invalidate = true;\n return this.using(handler);\n }\n\n validator(): (data: SideChannel) => Handler<boolean> {\n const pairs = this._pairs;\n return function* (data: SideChannel) {\n for (const [key, fn] of pairs) {\n if (key !== (yield* fn(data))) return false;\n }\n return true;\n };\n }\n\n deactivate() {\n this._active = false;\n }\n\n configured() {\n return this._configured;\n }\n}\n\nfunction makeSimpleConfigurator(\n cache: CacheConfigurator<any>,\n): SimpleCacheConfigurator {\n function cacheFn(val: any) {\n if (typeof val === \"boolean\") {\n if (val) cache.forever();\n else cache.never();\n return;\n }\n\n return cache.using(() => assertSimpleType(val()));\n }\n cacheFn.forever = () => cache.forever();\n cacheFn.never = () => cache.never();\n cacheFn.using = (cb: () => SimpleType) =>\n cache.using(() => assertSimpleType(cb()));\n cacheFn.invalidate = (cb: () => SimpleType) =>\n cache.invalidate(() => assertSimpleType(cb()));\n\n return cacheFn as any;\n}\n\n// Types are limited here so that in the future these values can be used\n// as part of Babel's caching logic.\nexport type SimpleType =\n | string\n | boolean\n | number\n | null\n | void\n | Promise<SimpleType>;\nexport function assertSimpleType(value: unknown): SimpleType {\n if (isThenable(value)) {\n throw new Error(\n `You appear to be using an async cache handler, ` +\n `which your current version of Babel does not support. ` +\n `We may add support for this in the future, ` +\n `but if you're on the most recent version of @babel/core and still ` +\n `seeing this error, then you'll need to synchronously handle your caching logic.`,\n );\n }\n\n if (\n value != null &&\n typeof value !== \"string\" &&\n typeof value !== \"boolean\" &&\n typeof value !== \"number\"\n ) {\n throw new Error(\n \"Cache keys must be either string, boolean, number, null, or undefined.\",\n );\n }\n // @ts-expect-error Type 'unknown' is not assignable to type 'SimpleType'. This can be removed\n // when strictNullCheck is enabled\n return value;\n}\n\nclass Lock<T> {\n released: boolean = false;\n promise: Promise<T>;\n _resolve: (value: T) => void;\n\n constructor() {\n this.promise = new Promise(resolve => {\n this._resolve = resolve;\n });\n }\n\n release(value: T) {\n this.released = true;\n this._resolve(value);\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,MAAA,GAAAD,OAAA;AAOA,IAAAE,KAAA,GAAAF,OAAA;AAmBA,MAAMG,WAAW,GACfC,GAAyC,IACP;EAClC,OAAOC,SAAMA,CAAC,CAACD,GAAG,CAAC,CAACE,IAAI;AAC1B,CAAC;AAGD,UAAUC,OAAOA,CAAA,EAAG;EAClB,OAAO,IAAI;AACb;AAEO,SAASC,aAAaA,CAC3BC,OAG+B,EACqB;EACpD,OAAOC,kBAAkB,CAA6BC,OAAO,EAAEF,OAAO,CAAC;AACzE;AAEO,SAASG,iBAAiBA,CAC/BH,OAAuE,EAC3B;EAC5C,OAAON,WAAW,CAChBK,aAAa,CAA6BC,OAAO,CACnD,CAAC;AACH;AAEO,SAASI,eAAeA,CAC7BJ,OAG+B,EACqB;EACpD,OAAOC,kBAAkB,CAA6BI,GAAG,EAAEL,OAAO,CAAC;AACrE;AAEO,SAASM,mBAAmBA,CACjCN,OAAuE,EAC3B;EAC5C,OAAON,WAAW,CAChBU,eAAe,CAA6BJ,OAAO,CACrD,CAAC;AACH;AA2BA,SAASC,kBAAkBA,CACzBM,SAAgE,EAChEP,OAG+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
exports.buildPresetChain = buildPresetChain;
|
| 7 |
+
exports.buildPresetChainWalker = void 0;
|
| 8 |
+
exports.buildRootChain = buildRootChain;
|
| 9 |
+
function _path() {
|
| 10 |
+
const data = require("path");
|
| 11 |
+
_path = function () {
|
| 12 |
+
return data;
|
| 13 |
+
};
|
| 14 |
+
return data;
|
| 15 |
+
}
|
| 16 |
+
function _debug() {
|
| 17 |
+
const data = require("debug");
|
| 18 |
+
_debug = function () {
|
| 19 |
+
return data;
|
| 20 |
+
};
|
| 21 |
+
return data;
|
| 22 |
+
}
|
| 23 |
+
var _options = require("./validation/options.js");
|
| 24 |
+
var _patternToRegex = require("./pattern-to-regex.js");
|
| 25 |
+
var _printer = require("./printer.js");
|
| 26 |
+
var _rewriteStackTrace = require("../errors/rewrite-stack-trace.js");
|
| 27 |
+
var _configError = require("../errors/config-error.js");
|
| 28 |
+
var _index = require("./files/index.js");
|
| 29 |
+
var _caching = require("./caching.js");
|
| 30 |
+
var _configDescriptors = require("./config-descriptors.js");
|
| 31 |
+
const debug = _debug()("babel:config:config-chain");
|
| 32 |
+
function* buildPresetChain(arg, context) {
|
| 33 |
+
const chain = yield* buildPresetChainWalker(arg, context);
|
| 34 |
+
if (!chain) return null;
|
| 35 |
+
return {
|
| 36 |
+
plugins: dedupDescriptors(chain.plugins),
|
| 37 |
+
presets: dedupDescriptors(chain.presets),
|
| 38 |
+
options: chain.options.map(o => normalizeOptions(o)),
|
| 39 |
+
files: new Set()
|
| 40 |
+
};
|
| 41 |
+
}
|
| 42 |
+
const buildPresetChainWalker = exports.buildPresetChainWalker = makeChainWalker({
|
| 43 |
+
root: preset => loadPresetDescriptors(preset),
|
| 44 |
+
env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),
|
| 45 |
+
overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index),
|
| 46 |
+
overridesEnv: (preset, index, envName) => loadPresetOverridesEnvDescriptors(preset)(index)(envName),
|
| 47 |
+
createLogger: () => () => {}
|
| 48 |
+
});
|
| 49 |
+
const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors));
|
| 50 |
+
const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName)));
|
| 51 |
+
const loadPresetOverridesDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index)));
|
| 52 |
+
const loadPresetOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index, envName))));
|
| 53 |
+
function* buildRootChain(opts, context) {
|
| 54 |
+
let configReport, babelRcReport;
|
| 55 |
+
const programmaticLogger = new _printer.ConfigPrinter();
|
| 56 |
+
const programmaticChain = yield* loadProgrammaticChain({
|
| 57 |
+
options: opts,
|
| 58 |
+
dirname: context.cwd
|
| 59 |
+
}, context, undefined, programmaticLogger);
|
| 60 |
+
if (!programmaticChain) return null;
|
| 61 |
+
const programmaticReport = yield* programmaticLogger.output();
|
| 62 |
+
let configFile;
|
| 63 |
+
if (typeof opts.configFile === "string") {
|
| 64 |
+
configFile = yield* (0, _index.loadConfig)(opts.configFile, context.cwd, context.envName, context.caller);
|
| 65 |
+
} else if (opts.configFile !== false) {
|
| 66 |
+
configFile = yield* (0, _index.findRootConfig)(context.root, context.envName, context.caller);
|
| 67 |
+
}
|
| 68 |
+
let {
|
| 69 |
+
babelrc,
|
| 70 |
+
babelrcRoots
|
| 71 |
+
} = opts;
|
| 72 |
+
let babelrcRootsDirectory = context.cwd;
|
| 73 |
+
const configFileChain = emptyChain();
|
| 74 |
+
const configFileLogger = new _printer.ConfigPrinter();
|
| 75 |
+
if (configFile) {
|
| 76 |
+
const validatedFile = validateConfigFile(configFile);
|
| 77 |
+
const result = yield* loadFileChain(validatedFile, context, undefined, configFileLogger);
|
| 78 |
+
if (!result) return null;
|
| 79 |
+
configReport = yield* configFileLogger.output();
|
| 80 |
+
if (babelrc === undefined) {
|
| 81 |
+
babelrc = validatedFile.options.babelrc;
|
| 82 |
+
}
|
| 83 |
+
if (babelrcRoots === undefined) {
|
| 84 |
+
babelrcRootsDirectory = validatedFile.dirname;
|
| 85 |
+
babelrcRoots = validatedFile.options.babelrcRoots;
|
| 86 |
+
}
|
| 87 |
+
mergeChain(configFileChain, result);
|
| 88 |
+
}
|
| 89 |
+
let ignoreFile, babelrcFile;
|
| 90 |
+
let isIgnored = false;
|
| 91 |
+
const fileChain = emptyChain();
|
| 92 |
+
if ((babelrc === true || babelrc === undefined) && typeof context.filename === "string") {
|
| 93 |
+
const pkgData = yield* (0, _index.findPackageData)(context.filename);
|
| 94 |
+
if (pkgData && babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)) {
|
| 95 |
+
({
|
| 96 |
+
ignore: ignoreFile,
|
| 97 |
+
config: babelrcFile
|
| 98 |
+
} = yield* (0, _index.findRelativeConfig)(pkgData, context.envName, context.caller));
|
| 99 |
+
if (ignoreFile) {
|
| 100 |
+
fileChain.files.add(ignoreFile.filepath);
|
| 101 |
+
}
|
| 102 |
+
if (ignoreFile && shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)) {
|
| 103 |
+
isIgnored = true;
|
| 104 |
+
}
|
| 105 |
+
if (babelrcFile && !isIgnored) {
|
| 106 |
+
const validatedFile = validateBabelrcFile(babelrcFile);
|
| 107 |
+
const babelrcLogger = new _printer.ConfigPrinter();
|
| 108 |
+
const result = yield* loadFileChain(validatedFile, context, undefined, babelrcLogger);
|
| 109 |
+
if (!result) {
|
| 110 |
+
isIgnored = true;
|
| 111 |
+
} else {
|
| 112 |
+
babelRcReport = yield* babelrcLogger.output();
|
| 113 |
+
mergeChain(fileChain, result);
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
if (babelrcFile && isIgnored) {
|
| 117 |
+
fileChain.files.add(babelrcFile.filepath);
|
| 118 |
+
}
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
if (context.showConfig) {
|
| 122 |
+
console.log(`Babel configs on "${context.filename}" (ascending priority):\n` + [configReport, babelRcReport, programmaticReport].filter(x => !!x).join("\n\n") + "\n-----End Babel configs-----");
|
| 123 |
+
}
|
| 124 |
+
const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain);
|
| 125 |
+
return {
|
| 126 |
+
plugins: isIgnored ? [] : dedupDescriptors(chain.plugins),
|
| 127 |
+
presets: isIgnored ? [] : dedupDescriptors(chain.presets),
|
| 128 |
+
options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)),
|
| 129 |
+
fileHandling: isIgnored ? "ignored" : "transpile",
|
| 130 |
+
ignore: ignoreFile || undefined,
|
| 131 |
+
babelrc: babelrcFile || undefined,
|
| 132 |
+
config: configFile || undefined,
|
| 133 |
+
files: chain.files
|
| 134 |
+
};
|
| 135 |
+
}
|
| 136 |
+
function babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory) {
|
| 137 |
+
if (typeof babelrcRoots === "boolean") return babelrcRoots;
|
| 138 |
+
const absoluteRoot = context.root;
|
| 139 |
+
if (babelrcRoots === undefined) {
|
| 140 |
+
return pkgData.directories.includes(absoluteRoot);
|
| 141 |
+
}
|
| 142 |
+
let babelrcPatterns = babelrcRoots;
|
| 143 |
+
if (!Array.isArray(babelrcPatterns)) {
|
| 144 |
+
babelrcPatterns = [babelrcPatterns];
|
| 145 |
+
}
|
| 146 |
+
babelrcPatterns = babelrcPatterns.map(pat => {
|
| 147 |
+
return typeof pat === "string" ? _path().resolve(babelrcRootsDirectory, pat) : pat;
|
| 148 |
+
});
|
| 149 |
+
if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {
|
| 150 |
+
return pkgData.directories.includes(absoluteRoot);
|
| 151 |
+
}
|
| 152 |
+
return babelrcPatterns.some(pat => {
|
| 153 |
+
if (typeof pat === "string") {
|
| 154 |
+
pat = (0, _patternToRegex.default)(pat, babelrcRootsDirectory);
|
| 155 |
+
}
|
| 156 |
+
return pkgData.directories.some(directory => {
|
| 157 |
+
return matchPattern(pat, babelrcRootsDirectory, directory, context);
|
| 158 |
+
});
|
| 159 |
+
});
|
| 160 |
+
}
|
| 161 |
+
const validateConfigFile = (0, _caching.makeWeakCacheSync)(file => ({
|
| 162 |
+
filepath: file.filepath,
|
| 163 |
+
dirname: file.dirname,
|
| 164 |
+
options: (0, _options.validate)("configfile", file.options, file.filepath)
|
| 165 |
+
}));
|
| 166 |
+
const validateBabelrcFile = (0, _caching.makeWeakCacheSync)(file => ({
|
| 167 |
+
filepath: file.filepath,
|
| 168 |
+
dirname: file.dirname,
|
| 169 |
+
options: (0, _options.validate)("babelrcfile", file.options, file.filepath)
|
| 170 |
+
}));
|
| 171 |
+
const validateExtendFile = (0, _caching.makeWeakCacheSync)(file => ({
|
| 172 |
+
filepath: file.filepath,
|
| 173 |
+
dirname: file.dirname,
|
| 174 |
+
options: (0, _options.validate)("extendsfile", file.options, file.filepath)
|
| 175 |
+
}));
|
| 176 |
+
const loadProgrammaticChain = makeChainWalker({
|
| 177 |
+
root: input => buildRootDescriptors(input, "base", _configDescriptors.createCachedDescriptors),
|
| 178 |
+
env: (input, envName) => buildEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, envName),
|
| 179 |
+
overrides: (input, index) => buildOverrideDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index),
|
| 180 |
+
overridesEnv: (input, index, envName) => buildOverrideEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index, envName),
|
| 181 |
+
createLogger: (input, context, baseLogger) => buildProgrammaticLogger(input, context, baseLogger)
|
| 182 |
+
});
|
| 183 |
+
const loadFileChainWalker = makeChainWalker({
|
| 184 |
+
root: file => loadFileDescriptors(file),
|
| 185 |
+
env: (file, envName) => loadFileEnvDescriptors(file)(envName),
|
| 186 |
+
overrides: (file, index) => loadFileOverridesDescriptors(file)(index),
|
| 187 |
+
overridesEnv: (file, index, envName) => loadFileOverridesEnvDescriptors(file)(index)(envName),
|
| 188 |
+
createLogger: (file, context, baseLogger) => buildFileLogger(file.filepath, context, baseLogger)
|
| 189 |
+
});
|
| 190 |
+
function* loadFileChain(input, context, files, baseLogger) {
|
| 191 |
+
const chain = yield* loadFileChainWalker(input, context, files, baseLogger);
|
| 192 |
+
chain == null || chain.files.add(input.filepath);
|
| 193 |
+
return chain;
|
| 194 |
+
}
|
| 195 |
+
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(file => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors));
|
| 196 |
+
const loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName)));
|
| 197 |
+
const loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index)));
|
| 198 |
+
const loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
|
| 199 |
+
function buildFileLogger(filepath, context, baseLogger) {
|
| 200 |
+
if (!baseLogger) {
|
| 201 |
+
return () => {};
|
| 202 |
+
}
|
| 203 |
+
return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Config, {
|
| 204 |
+
filepath
|
| 205 |
+
});
|
| 206 |
+
}
|
| 207 |
+
function buildRootDescriptors({
|
| 208 |
+
dirname,
|
| 209 |
+
options
|
| 210 |
+
}, alias, descriptors) {
|
| 211 |
+
return descriptors(dirname, options, alias);
|
| 212 |
+
}
|
| 213 |
+
function buildProgrammaticLogger(_, context, baseLogger) {
|
| 214 |
+
var _context$caller;
|
| 215 |
+
if (!baseLogger) {
|
| 216 |
+
return () => {};
|
| 217 |
+
}
|
| 218 |
+
return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Programmatic, {
|
| 219 |
+
callerName: (_context$caller = context.caller) == null ? void 0 : _context$caller.name
|
| 220 |
+
});
|
| 221 |
+
}
|
| 222 |
+
function buildEnvDescriptors({
|
| 223 |
+
dirname,
|
| 224 |
+
options
|
| 225 |
+
}, alias, descriptors, envName) {
|
| 226 |
+
var _options$env;
|
| 227 |
+
const opts = (_options$env = options.env) == null ? void 0 : _options$env[envName];
|
| 228 |
+
return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null;
|
| 229 |
+
}
|
| 230 |
+
function buildOverrideDescriptors({
|
| 231 |
+
dirname,
|
| 232 |
+
options
|
| 233 |
+
}, alias, descriptors, index) {
|
| 234 |
+
var _options$overrides;
|
| 235 |
+
const opts = (_options$overrides = options.overrides) == null ? void 0 : _options$overrides[index];
|
| 236 |
+
if (!opts) throw new Error("Assertion failure - missing override");
|
| 237 |
+
return descriptors(dirname, opts, `${alias}.overrides[${index}]`);
|
| 238 |
+
}
|
| 239 |
+
function buildOverrideEnvDescriptors({
|
| 240 |
+
dirname,
|
| 241 |
+
options
|
| 242 |
+
}, alias, descriptors, index, envName) {
|
| 243 |
+
var _options$overrides2, _override$env;
|
| 244 |
+
const override = (_options$overrides2 = options.overrides) == null ? void 0 : _options$overrides2[index];
|
| 245 |
+
if (!override) throw new Error("Assertion failure - missing override");
|
| 246 |
+
const opts = (_override$env = override.env) == null ? void 0 : _override$env[envName];
|
| 247 |
+
return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
| 248 |
+
}
|
| 249 |
+
function makeChainWalker({
|
| 250 |
+
root,
|
| 251 |
+
env,
|
| 252 |
+
overrides,
|
| 253 |
+
overridesEnv,
|
| 254 |
+
createLogger
|
| 255 |
+
}) {
|
| 256 |
+
return function* chainWalker(input, context, files = new Set(), baseLogger) {
|
| 257 |
+
const {
|
| 258 |
+
dirname
|
| 259 |
+
} = input;
|
| 260 |
+
const flattenedConfigs = [];
|
| 261 |
+
const rootOpts = root(input);
|
| 262 |
+
if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {
|
| 263 |
+
flattenedConfigs.push({
|
| 264 |
+
config: rootOpts,
|
| 265 |
+
envName: undefined,
|
| 266 |
+
index: undefined
|
| 267 |
+
});
|
| 268 |
+
const envOpts = env(input, context.envName);
|
| 269 |
+
if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) {
|
| 270 |
+
flattenedConfigs.push({
|
| 271 |
+
config: envOpts,
|
| 272 |
+
envName: context.envName,
|
| 273 |
+
index: undefined
|
| 274 |
+
});
|
| 275 |
+
}
|
| 276 |
+
(rootOpts.options.overrides || []).forEach((_, index) => {
|
| 277 |
+
const overrideOps = overrides(input, index);
|
| 278 |
+
if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {
|
| 279 |
+
flattenedConfigs.push({
|
| 280 |
+
config: overrideOps,
|
| 281 |
+
index,
|
| 282 |
+
envName: undefined
|
| 283 |
+
});
|
| 284 |
+
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
| 285 |
+
if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) {
|
| 286 |
+
flattenedConfigs.push({
|
| 287 |
+
config: overrideEnvOpts,
|
| 288 |
+
index,
|
| 289 |
+
envName: context.envName
|
| 290 |
+
});
|
| 291 |
+
}
|
| 292 |
+
}
|
| 293 |
+
});
|
| 294 |
+
}
|
| 295 |
+
if (flattenedConfigs.some(({
|
| 296 |
+
config: {
|
| 297 |
+
options: {
|
| 298 |
+
ignore,
|
| 299 |
+
only
|
| 300 |
+
}
|
| 301 |
+
}
|
| 302 |
+
}) => shouldIgnore(context, ignore, only, dirname))) {
|
| 303 |
+
return null;
|
| 304 |
+
}
|
| 305 |
+
const chain = emptyChain();
|
| 306 |
+
const logger = createLogger(input, context, baseLogger);
|
| 307 |
+
for (const {
|
| 308 |
+
config,
|
| 309 |
+
index,
|
| 310 |
+
envName
|
| 311 |
+
} of flattenedConfigs) {
|
| 312 |
+
if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) {
|
| 313 |
+
return null;
|
| 314 |
+
}
|
| 315 |
+
logger(config, index, envName);
|
| 316 |
+
yield* mergeChainOpts(chain, config);
|
| 317 |
+
}
|
| 318 |
+
return chain;
|
| 319 |
+
};
|
| 320 |
+
}
|
| 321 |
+
function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) {
|
| 322 |
+
if (opts.extends === undefined) return true;
|
| 323 |
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname, context.envName, context.caller);
|
| 324 |
+
if (files.has(file)) {
|
| 325 |
+
throw new Error(`Configuration cycle detected loading ${file.filepath}.\n` + `File already loaded following the config chain:\n` + Array.from(files, file => ` - ${file.filepath}`).join("\n"));
|
| 326 |
+
}
|
| 327 |
+
files.add(file);
|
| 328 |
+
const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger);
|
| 329 |
+
files.delete(file);
|
| 330 |
+
if (!fileChain) return false;
|
| 331 |
+
mergeChain(chain, fileChain);
|
| 332 |
+
return true;
|
| 333 |
+
}
|
| 334 |
+
function mergeChain(target, source) {
|
| 335 |
+
target.options.push(...source.options);
|
| 336 |
+
target.plugins.push(...source.plugins);
|
| 337 |
+
target.presets.push(...source.presets);
|
| 338 |
+
for (const file of source.files) {
|
| 339 |
+
target.files.add(file);
|
| 340 |
+
}
|
| 341 |
+
return target;
|
| 342 |
+
}
|
| 343 |
+
function* mergeChainOpts(target, {
|
| 344 |
+
options,
|
| 345 |
+
plugins,
|
| 346 |
+
presets
|
| 347 |
+
}) {
|
| 348 |
+
target.options.push(options);
|
| 349 |
+
target.plugins.push(...(yield* plugins()));
|
| 350 |
+
target.presets.push(...(yield* presets()));
|
| 351 |
+
return target;
|
| 352 |
+
}
|
| 353 |
+
function emptyChain() {
|
| 354 |
+
return {
|
| 355 |
+
options: [],
|
| 356 |
+
presets: [],
|
| 357 |
+
plugins: [],
|
| 358 |
+
files: new Set()
|
| 359 |
+
};
|
| 360 |
+
}
|
| 361 |
+
function normalizeOptions(opts) {
|
| 362 |
+
const options = Object.assign({}, opts);
|
| 363 |
+
delete options.extends;
|
| 364 |
+
delete options.env;
|
| 365 |
+
delete options.overrides;
|
| 366 |
+
delete options.plugins;
|
| 367 |
+
delete options.presets;
|
| 368 |
+
delete options.passPerPreset;
|
| 369 |
+
delete options.ignore;
|
| 370 |
+
delete options.only;
|
| 371 |
+
delete options.test;
|
| 372 |
+
delete options.include;
|
| 373 |
+
delete options.exclude;
|
| 374 |
+
if (hasOwnProperty.call(options, "sourceMap")) {
|
| 375 |
+
options.sourceMaps = options.sourceMap;
|
| 376 |
+
delete options.sourceMap;
|
| 377 |
+
}
|
| 378 |
+
return options;
|
| 379 |
+
}
|
| 380 |
+
function dedupDescriptors(items) {
|
| 381 |
+
const map = new Map();
|
| 382 |
+
const descriptors = [];
|
| 383 |
+
for (const item of items) {
|
| 384 |
+
if (typeof item.value === "function") {
|
| 385 |
+
const fnKey = item.value;
|
| 386 |
+
let nameMap = map.get(fnKey);
|
| 387 |
+
if (!nameMap) {
|
| 388 |
+
nameMap = new Map();
|
| 389 |
+
map.set(fnKey, nameMap);
|
| 390 |
+
}
|
| 391 |
+
let desc = nameMap.get(item.name);
|
| 392 |
+
if (!desc) {
|
| 393 |
+
desc = {
|
| 394 |
+
value: item
|
| 395 |
+
};
|
| 396 |
+
descriptors.push(desc);
|
| 397 |
+
if (!item.ownPass) nameMap.set(item.name, desc);
|
| 398 |
+
} else {
|
| 399 |
+
desc.value = item;
|
| 400 |
+
}
|
| 401 |
+
} else {
|
| 402 |
+
descriptors.push({
|
| 403 |
+
value: item
|
| 404 |
+
});
|
| 405 |
+
}
|
| 406 |
+
}
|
| 407 |
+
return descriptors.reduce((acc, desc) => {
|
| 408 |
+
acc.push(desc.value);
|
| 409 |
+
return acc;
|
| 410 |
+
}, []);
|
| 411 |
+
}
|
| 412 |
+
function configIsApplicable({
|
| 413 |
+
options
|
| 414 |
+
}, dirname, context, configName) {
|
| 415 |
+
return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName));
|
| 416 |
+
}
|
| 417 |
+
function configFieldIsApplicable(context, test, dirname, configName) {
|
| 418 |
+
const patterns = Array.isArray(test) ? test : [test];
|
| 419 |
+
return matchesPatterns(context, patterns, dirname, configName);
|
| 420 |
+
}
|
| 421 |
+
function ignoreListReplacer(_key, value) {
|
| 422 |
+
if (value instanceof RegExp) {
|
| 423 |
+
return String(value);
|
| 424 |
+
}
|
| 425 |
+
return value;
|
| 426 |
+
}
|
| 427 |
+
function shouldIgnore(context, ignore, only, dirname) {
|
| 428 |
+
if (ignore && matchesPatterns(context, ignore, dirname)) {
|
| 429 |
+
var _context$filename;
|
| 430 |
+
const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`;
|
| 431 |
+
debug(message);
|
| 432 |
+
if (context.showConfig) {
|
| 433 |
+
console.log(message);
|
| 434 |
+
}
|
| 435 |
+
return true;
|
| 436 |
+
}
|
| 437 |
+
if (only && !matchesPatterns(context, only, dirname)) {
|
| 438 |
+
var _context$filename2;
|
| 439 |
+
const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`;
|
| 440 |
+
debug(message);
|
| 441 |
+
if (context.showConfig) {
|
| 442 |
+
console.log(message);
|
| 443 |
+
}
|
| 444 |
+
return true;
|
| 445 |
+
}
|
| 446 |
+
return false;
|
| 447 |
+
}
|
| 448 |
+
function matchesPatterns(context, patterns, dirname, configName) {
|
| 449 |
+
return patterns.some(pattern => matchPattern(pattern, dirname, context.filename, context, configName));
|
| 450 |
+
}
|
| 451 |
+
function matchPattern(pattern, dirname, pathToTest, context, configName) {
|
| 452 |
+
if (typeof pattern === "function") {
|
| 453 |
+
return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, {
|
| 454 |
+
dirname,
|
| 455 |
+
envName: context.envName,
|
| 456 |
+
caller: context.caller
|
| 457 |
+
});
|
| 458 |
+
}
|
| 459 |
+
if (typeof pathToTest !== "string") {
|
| 460 |
+
throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName);
|
| 461 |
+
}
|
| 462 |
+
if (typeof pattern === "string") {
|
| 463 |
+
pattern = (0, _patternToRegex.default)(pattern, dirname);
|
| 464 |
+
}
|
| 465 |
+
return pattern.test(pathToTest);
|
| 466 |
+
}
|
| 467 |
+
0 && 0;
|
| 468 |
+
|
| 469 |
+
//# sourceMappingURL=config-chain.js.map
|
frontend/node_modules/@babel/core/lib/config/config-chain.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_path","data","require","_debug","_options","_patternToRegex","_printer","_rewriteStackTrace","_configError","_index","_caching","_configDescriptors","debug","buildDebug","buildPresetChain","arg","context","chain","buildPresetChainWalker","plugins","dedupDescriptors","presets","options","map","o","normalizeOptions","files","Set","exports","makeChainWalker","root","preset","loadPresetDescriptors","env","envName","loadPresetEnvDescriptors","overrides","index","loadPresetOverridesDescriptors","overridesEnv","loadPresetOverridesEnvDescriptors","createLogger","makeWeakCacheSync","buildRootDescriptors","alias","createUncachedDescriptors","makeStrongCacheSync","buildEnvDescriptors","buildOverrideDescriptors","buildOverrideEnvDescriptors","buildRootChain","opts","configReport","babelRcReport","programmaticLogger","ConfigPrinter","programmaticChain","loadProgrammaticChain","dirname","cwd","undefined","programmaticReport","output","configFile","loadConfig","caller","findRootConfig","babelrc","babelrcRoots","babelrcRootsDirectory","configFileChain","emptyChain","configFileLogger","validatedFile","validateConfigFile","result","loadFileChain","mergeChain","ignoreFile","babelrcFile","isIgnored","fileChain","filename","pkgData","findPackageData","babelrcLoadEnabled","ignore","config","findRelativeConfig","add","filepath","shouldIgnore","validateBabelrcFile","babelrcLogger","showConfig","console","log","filter","x","join","fileHandling","absoluteRoot","directories","includes","babelrcPatterns","Array","isArray","pat","path","resolve","length","some","pathPatternToRegex","directory","matchPattern","file","validate","validateExtendFile","input","createCachedDescriptors","baseLogger","buildProgrammaticLogger","loadFileChainWalker","loadFileDescriptors","loadFileEnvDescriptors","loadFileOverridesDescriptors","loadFileOverridesEnvDescriptors","buildFileLogger","configure","ChainFormatter","Config","descriptors","_","_context$caller","Programmatic","callerName","name","_options$env","_options$overrides","Error","_options$overrides2","_override$env","override","chainWalker","flattenedConfigs","rootOpts","configIsApplicable","push","envOpts","forEach","overrideOps","overrideEnvOpts","only","logger","mergeExtendsChain","mergeChainOpts","extends","has","from","delete","target","source","Object","assign","passPerPreset","test","include","exclude","hasOwnProperty","call","sourceMaps","sourceMap","items","Map","item","value","fnKey","nameMap","get","set","desc","ownPass","reduce","acc","configName","configFieldIsApplicable","patterns","matchesPatterns","ignoreListReplacer","_key","RegExp","String","_context$filename","message","JSON","stringify","_context$filename2","pattern","pathToTest","endHiddenCallStack","ConfigError"],"sources":["../../src/config/config-chain.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-use-before-define */\n\nimport path from \"node:path\";\nimport buildDebug from \"debug\";\nimport type { Handler } from \"gensync\";\nimport { validate } from \"./validation/options.ts\";\nimport type {\n ValidatedOptions,\n IgnoreList,\n ConfigApplicableTest,\n BabelrcSearch,\n CallerMetadata,\n IgnoreItem,\n} from \"./validation/options.ts\";\nimport pathPatternToRegex from \"./pattern-to-regex.ts\";\nimport { ConfigPrinter, ChainFormatter } from \"./printer.ts\";\nimport type { ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\n\nimport { endHiddenCallStack } from \"../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../errors/config-error.ts\";\nimport type { PluginAPI, PresetAPI } from \"./helpers/config-api.ts\";\n\nconst debug = buildDebug(\"babel:config:config-chain\");\n\nimport {\n findPackageData,\n findRelativeConfig,\n findRootConfig,\n loadConfig,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile, FilePackageData } from \"./files/index.ts\";\n\nimport { makeWeakCacheSync, makeStrongCacheSync } from \"./caching.ts\";\n\nimport {\n createCachedDescriptors,\n createUncachedDescriptors,\n} from \"./config-descriptors.ts\";\nimport type {\n UnloadedDescriptor,\n OptionsAndDescriptors,\n ValidatedFile,\n} from \"./config-descriptors.ts\";\n\nexport type ConfigChain = {\n plugins: Array<UnloadedDescriptor<PluginAPI>>;\n presets: Array<UnloadedDescriptor<PresetAPI>>;\n options: Array<ValidatedOptions>;\n files: Set<string>;\n};\n\nexport type PresetInstance = {\n options: ValidatedOptions;\n alias: string;\n dirname: string;\n externalDependencies: ReadonlyDeepArray<string>;\n};\n\nexport type ConfigContext = {\n filename: string | undefined;\n cwd: string;\n root: string;\n envName: string;\n caller: CallerMetadata | undefined;\n showConfig: boolean;\n};\n\n/**\n * Build a config chain for a given preset.\n */\nexport function* buildPresetChain(\n arg: PresetInstance,\n context: any,\n): Handler<ConfigChain | null> {\n const chain = yield* buildPresetChainWalker(arg, context);\n if (!chain) return null;\n\n return {\n plugins: dedupDescriptors(chain.plugins),\n presets: dedupDescriptors(chain.presets),\n options: chain.options.map(o => normalizeOptions(o)),\n files: new Set(),\n };\n}\n\nexport const buildPresetChainWalker = makeChainWalker<PresetInstance>({\n root: preset => loadPresetDescriptors(preset),\n env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),\n overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index),\n overridesEnv: (preset, index, envName) =>\n loadPresetOverridesEnvDescriptors(preset)(index)(envName),\n createLogger: () => () => {}, // Currently we don't support logging how preset is expanded\n});\nconst loadPresetDescriptors = makeWeakCacheSync((preset: PresetInstance) =>\n buildRootDescriptors(preset, preset.alias, createUncachedDescriptors),\n);\nconst loadPresetEnvDescriptors = makeWeakCacheSync((preset: PresetInstance) =>\n makeStrongCacheSync((envName: string) =>\n buildEnvDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n envName,\n ),\n ),\n);\nconst loadPresetOverridesDescriptors = makeWeakCacheSync(\n (preset: PresetInstance) =>\n makeStrongCacheSync((index: number) =>\n buildOverrideDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n index,\n ),\n ),\n);\nconst loadPresetOverridesEnvDescriptors = makeWeakCacheSync(\n (preset: PresetInstance) =>\n makeStrongCacheSync((index: number) =>\n makeStrongCacheSync((envName: string) =>\n buildOverrideEnvDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n index,\n envName,\n ),\n ),\n ),\n);\n\nexport type FileHandling = \"transpile\" | \"ignored\" | \"unsupported\";\nexport type RootConfigChain = ConfigChain & {\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set<string>;\n};\n\n/**\n * Build a config chain for Babel's full root configuration.\n */\nexport function* buildRootChain(\n opts: ValidatedOptions,\n context: ConfigContext,\n): Handler<RootConfigChain | null> {\n let configReport, babelRcReport;\n const programmaticLogger = new ConfigPrinter();\n const programmaticChain = yield* loadProgrammaticChain(\n {\n options: opts,\n dirname: context.cwd,\n },\n context,\n undefined,\n programmaticLogger,\n );\n if (!programmaticChain) return null;\n const programmaticReport = yield* programmaticLogger.output();\n\n let configFile;\n if (typeof opts.configFile === \"string\") {\n configFile = yield* loadConfig(\n opts.configFile,\n context.cwd,\n context.envName,\n context.caller,\n );\n } else if (opts.configFile !== false) {\n configFile = yield* findRootConfig(\n context.root,\n context.envName,\n context.caller,\n );\n }\n\n let { babelrc, babelrcRoots } = opts;\n let babelrcRootsDirectory = context.cwd;\n\n const configFileChain = emptyChain();\n const configFileLogger = new ConfigPrinter();\n if (configFile) {\n const validatedFile = validateConfigFile(configFile);\n const result = yield* loadFileChain(\n validatedFile,\n context,\n undefined,\n configFileLogger,\n );\n if (!result) return null;\n configReport = yield* configFileLogger.output();\n\n // Allow config files to toggle `.babelrc` resolution on and off and\n // specify where the roots are.\n if (babelrc === undefined) {\n babelrc = validatedFile.options.babelrc;\n }\n if (babelrcRoots === undefined) {\n babelrcRootsDirectory = validatedFile.dirname;\n babelrcRoots = validatedFile.options.babelrcRoots;\n }\n\n mergeChain(configFileChain, result);\n }\n\n let ignoreFile, babelrcFile;\n let isIgnored = false;\n const fileChain = emptyChain();\n // resolve all .babelrc files\n if (\n (babelrc === true || babelrc === undefined) &&\n typeof context.filename === \"string\"\n ) {\n const pkgData = yield* findPackageData(context.filename);\n\n if (\n pkgData &&\n babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)\n ) {\n ({ ignore: ignoreFile, config: babelrcFile } = yield* findRelativeConfig(\n pkgData,\n context.envName,\n context.caller,\n ));\n\n if (ignoreFile) {\n fileChain.files.add(ignoreFile.filepath);\n }\n\n if (\n ignoreFile &&\n shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)\n ) {\n isIgnored = true;\n }\n\n if (babelrcFile && !isIgnored) {\n const validatedFile = validateBabelrcFile(babelrcFile);\n const babelrcLogger = new ConfigPrinter();\n const result = yield* loadFileChain(\n validatedFile,\n context,\n undefined,\n babelrcLogger,\n );\n if (!result) {\n isIgnored = true;\n } else {\n babelRcReport = yield* babelrcLogger.output();\n mergeChain(fileChain, result);\n }\n }\n\n if (babelrcFile && isIgnored) {\n fileChain.files.add(babelrcFile.filepath);\n }\n }\n }\n\n if (context.showConfig) {\n console.log(\n `Babel configs on \"${context.filename}\" (ascending priority):\\n` +\n // print config by the order of ascending priority\n [configReport, babelRcReport, programmaticReport]\n .filter(x => !!x)\n .join(\"\\n\\n\") +\n \"\\n-----End Babel configs-----\",\n );\n }\n // Insert file chain in front so programmatic options have priority\n // over configuration file chain items.\n const chain = mergeChain(\n mergeChain(mergeChain(emptyChain(), configFileChain), fileChain),\n programmaticChain,\n );\n\n return {\n plugins: isIgnored ? [] : dedupDescriptors(chain.plugins),\n presets: isIgnored ? [] : dedupDescriptors(chain.presets),\n options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)),\n fileHandling: isIgnored ? \"ignored\" : \"transpile\",\n ignore: ignoreFile || undefined,\n babelrc: babelrcFile || undefined,\n config: configFile || undefined,\n files: chain.files,\n };\n}\n\nfunction babelrcLoadEnabled(\n context: ConfigContext,\n pkgData: FilePackageData,\n babelrcRoots: BabelrcSearch | undefined,\n babelrcRootsDirectory: string,\n): boolean {\n if (typeof babelrcRoots === \"boolean\") return babelrcRoots;\n\n const absoluteRoot = context.root;\n\n // Fast path to avoid having to match patterns if the babelrc is just\n // loading in the standard root directory.\n if (babelrcRoots === undefined) {\n return pkgData.directories.includes(absoluteRoot);\n }\n\n let babelrcPatterns = babelrcRoots;\n if (!Array.isArray(babelrcPatterns)) {\n babelrcPatterns = [babelrcPatterns as IgnoreItem];\n }\n babelrcPatterns = babelrcPatterns.map(pat => {\n return typeof pat === \"string\"\n ? path.resolve(babelrcRootsDirectory, pat)\n : pat;\n });\n\n // Fast path to avoid having to match patterns if the babelrc is just\n // loading in the standard root directory.\n if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {\n return pkgData.directories.includes(absoluteRoot);\n }\n\n return babelrcPatterns.some(pat => {\n if (typeof pat === \"string\") {\n pat = pathPatternToRegex(pat, babelrcRootsDirectory);\n }\n\n return pkgData.directories.some(directory => {\n return matchPattern(pat, babelrcRootsDirectory, directory, context);\n });\n });\n}\n\nconst validateConfigFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"configfile\", file.options, file.filepath),\n }),\n);\n\nconst validateBabelrcFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"babelrcfile\", file.options, file.filepath),\n }),\n);\n\nconst validateExtendFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"extendsfile\", file.options, file.filepath),\n }),\n);\n\n/**\n * Build a config chain for just the programmatic options passed into Babel.\n */\nconst loadProgrammaticChain = makeChainWalker({\n root: input => buildRootDescriptors(input, \"base\", createCachedDescriptors),\n env: (input, envName) =>\n buildEnvDescriptors(input, \"base\", createCachedDescriptors, envName),\n overrides: (input, index) =>\n buildOverrideDescriptors(input, \"base\", createCachedDescriptors, index),\n overridesEnv: (input, index, envName) =>\n buildOverrideEnvDescriptors(\n input,\n \"base\",\n createCachedDescriptors,\n index,\n envName,\n ),\n createLogger: (input, context, baseLogger) =>\n buildProgrammaticLogger(input, context, baseLogger),\n});\n\n/**\n * Build a config chain for a given file.\n */\nconst loadFileChainWalker = makeChainWalker<ValidatedFile>({\n root: file => loadFileDescriptors(file),\n env: (file, envName) => loadFileEnvDescriptors(file)(envName),\n overrides: (file, index) => loadFileOverridesDescriptors(file)(index),\n overridesEnv: (file, index, envName) =>\n loadFileOverridesEnvDescriptors(file)(index)(envName),\n createLogger: (file, context, baseLogger) =>\n buildFileLogger(file.filepath, context, baseLogger),\n});\n\nfunction* loadFileChain(\n input: ValidatedFile,\n context: ConfigContext,\n files: Set<ConfigFile>,\n baseLogger: ConfigPrinter,\n) {\n const chain = yield* loadFileChainWalker(input, context, files, baseLogger);\n chain?.files.add(input.filepath);\n\n return chain;\n}\n\nconst loadFileDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n buildRootDescriptors(file, file.filepath, createUncachedDescriptors),\n);\nconst loadFileEnvDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n makeStrongCacheSync((envName: string) =>\n buildEnvDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n envName,\n ),\n ),\n);\nconst loadFileOverridesDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n makeStrongCacheSync((index: number) =>\n buildOverrideDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n index,\n ),\n ),\n);\nconst loadFileOverridesEnvDescriptors = makeWeakCacheSync(\n (file: ValidatedFile) =>\n makeStrongCacheSync((index: number) =>\n makeStrongCacheSync((envName: string) =>\n buildOverrideEnvDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n index,\n envName,\n ),\n ),\n ),\n);\n\nfunction buildFileLogger(\n filepath: string,\n context: ConfigContext,\n baseLogger: ConfigPrinter | void,\n) {\n if (!baseLogger) {\n return () => {};\n }\n return baseLogger.configure(context.showConfig, ChainFormatter.Config, {\n filepath,\n });\n}\n\nfunction buildRootDescriptors(\n { dirname, options }: Partial<ValidatedFile>,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n) {\n return descriptors(dirname, options, alias);\n}\n\nfunction buildProgrammaticLogger(\n _: unknown,\n context: ConfigContext,\n baseLogger: ConfigPrinter | void,\n) {\n if (!baseLogger) {\n return () => {};\n }\n return baseLogger.configure(context.showConfig, ChainFormatter.Programmatic, {\n callerName: context.caller?.name,\n });\n}\n\nfunction buildEnvDescriptors(\n { dirname, options }: Partial<ValidatedFile>,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n envName: string,\n) {\n const opts = options.env?.[envName];\n return opts ? descriptors(dirname, opts, `${alias}.env[\"${envName}\"]`) : null;\n}\n\nfunction buildOverrideDescriptors(\n { dirname, options }: Partial<ValidatedFile>,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n index: number,\n) {\n const opts = options.overrides?.[index];\n if (!opts) throw new Error(\"Assertion failure - missing override\");\n\n return descriptors(dirname, opts, `${alias}.overrides[${index}]`);\n}\n\nfunction buildOverrideEnvDescriptors(\n { dirname, options }: Partial<ValidatedFile>,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n index: number,\n envName: string,\n) {\n const override = options.overrides?.[index];\n if (!override) throw new Error(\"Assertion failure - missing override\");\n\n const opts = override.env?.[envName];\n return opts\n ? descriptors(\n dirname,\n opts,\n `${alias}.overrides[${index}].env[\"${envName}\"]`,\n )\n : null;\n}\n\nfunction makeChainWalker<\n ArgT extends {\n options: ValidatedOptions;\n dirname: string;\n filepath?: string;\n },\n>({\n root,\n env,\n overrides,\n overridesEnv,\n createLogger,\n}: {\n root: (configEntry: ArgT) => OptionsAndDescriptors;\n env: (configEntry: ArgT, env: string) => OptionsAndDescriptors | null;\n overrides: (configEntry: ArgT, index: number) => OptionsAndDescriptors;\n overridesEnv: (\n configEntry: ArgT,\n index: number,\n env: string,\n ) => OptionsAndDescriptors | null;\n createLogger: (\n configEntry: ArgT,\n context: ConfigContext,\n printer: ConfigPrinter | void,\n ) => (\n opts: OptionsAndDescriptors,\n index?: number | null,\n env?: string | null,\n ) => void;\n}): (\n configEntry: ArgT,\n context: ConfigContext,\n files?: Set<ConfigFile>,\n baseLogger?: ConfigPrinter,\n) => Handler<ConfigChain | null> {\n return function* chainWalker(input, context, files = new Set(), baseLogger) {\n const { dirname } = input;\n\n const flattenedConfigs: Array<{\n config: OptionsAndDescriptors;\n index: number | undefined | null;\n envName: string | undefined | null;\n }> = [];\n\n const rootOpts = root(input);\n if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {\n flattenedConfigs.push({\n config: rootOpts,\n envName: undefined,\n index: undefined,\n });\n\n const envOpts = env(input, context.envName);\n if (\n envOpts &&\n configIsApplicable(envOpts, dirname, context, input.filepath)\n ) {\n flattenedConfigs.push({\n config: envOpts,\n envName: context.envName,\n index: undefined,\n });\n }\n\n (rootOpts.options.overrides || []).forEach((_, index) => {\n const overrideOps = overrides(input, index);\n if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {\n flattenedConfigs.push({\n config: overrideOps,\n index,\n envName: undefined,\n });\n\n const overrideEnvOpts = overridesEnv(input, index, context.envName);\n if (\n overrideEnvOpts &&\n configIsApplicable(\n overrideEnvOpts,\n dirname,\n context,\n input.filepath,\n )\n ) {\n flattenedConfigs.push({\n config: overrideEnvOpts,\n index,\n envName: context.envName,\n });\n }\n }\n });\n }\n\n // Process 'ignore' and 'only' before 'extends' items are processed so\n // that we don't do extra work loading extended configs if a file is\n // ignored.\n if (\n flattenedConfigs.some(\n ({\n config: {\n options: { ignore, only },\n },\n }) => shouldIgnore(context, ignore, only, dirname),\n )\n ) {\n return null;\n }\n\n const chain = emptyChain();\n const logger = createLogger(input, context, baseLogger);\n\n for (const { config, index, envName } of flattenedConfigs) {\n if (\n !(yield* mergeExtendsChain(\n chain,\n config.options,\n dirname,\n context,\n files,\n baseLogger,\n ))\n ) {\n return null;\n }\n\n logger(config, index, envName);\n yield* mergeChainOpts(chain, config);\n }\n return chain;\n };\n}\n\nfunction* mergeExtendsChain(\n chain: ConfigChain,\n opts: ValidatedOptions,\n dirname: string,\n context: ConfigContext,\n files: Set<ConfigFile>,\n baseLogger?: ConfigPrinter,\n): Handler<boolean> {\n if (opts.extends === undefined) return true;\n\n const file = yield* loadConfig(\n opts.extends,\n dirname,\n context.envName,\n context.caller,\n );\n\n if (files.has(file)) {\n throw new Error(\n `Configuration cycle detected loading ${file.filepath}.\\n` +\n `File already loaded following the config chain:\\n` +\n Array.from(files, file => ` - ${file.filepath}`).join(\"\\n\"),\n );\n }\n\n files.add(file);\n const fileChain = yield* loadFileChain(\n validateExtendFile(file),\n context,\n files,\n baseLogger,\n );\n files.delete(file);\n\n if (!fileChain) return false;\n\n mergeChain(chain, fileChain);\n\n return true;\n}\n\nfunction mergeChain(target: ConfigChain, source: ConfigChain): ConfigChain {\n target.options.push(...source.options);\n target.plugins.push(...source.plugins);\n target.presets.push(...source.presets);\n for (const file of source.files) {\n target.files.add(file);\n }\n\n return target;\n}\n\nfunction* mergeChainOpts(\n target: ConfigChain,\n { options, plugins, presets }: OptionsAndDescriptors,\n): Handler<ConfigChain> {\n target.options.push(options);\n target.plugins.push(...(yield* plugins()));\n target.presets.push(...(yield* presets()));\n\n return target;\n}\n\nfunction emptyChain(): ConfigChain {\n return {\n options: [],\n presets: [],\n plugins: [],\n files: new Set(),\n };\n}\n\nfunction normalizeOptions(opts: ValidatedOptions): ValidatedOptions {\n const options = {\n ...opts,\n };\n delete options.extends;\n delete options.env;\n delete options.overrides;\n delete options.plugins;\n delete options.presets;\n delete options.passPerPreset;\n delete options.ignore;\n delete options.only;\n delete options.test;\n delete options.include;\n delete options.exclude;\n\n // \"sourceMap\" is just aliased to sourceMap, so copy it over as\n // we merge the options together.\n if (Object.hasOwn(options, \"sourceMap\")) {\n options.sourceMaps = options.sourceMap;\n delete options.sourceMap;\n }\n return options;\n}\n\nfunction dedupDescriptors<API>(\n items: Array<UnloadedDescriptor<API>>,\n): Array<UnloadedDescriptor<API>> {\n const map: Map<\n Function,\n Map<string | void, { value: UnloadedDescriptor<API> }>\n > = new Map();\n\n const descriptors = [];\n\n for (const item of items) {\n if (typeof item.value === \"function\") {\n const fnKey = item.value;\n let nameMap = map.get(fnKey);\n if (!nameMap) {\n nameMap = new Map();\n map.set(fnKey, nameMap);\n }\n let desc = nameMap.get(item.name);\n if (!desc) {\n desc = { value: item };\n descriptors.push(desc);\n\n // Treat passPerPreset presets as unique, skipping them\n // in the merge processing steps.\n if (!item.ownPass) nameMap.set(item.name, desc);\n } else {\n desc.value = item;\n }\n } else {\n descriptors.push({ value: item });\n }\n }\n\n return descriptors.reduce((acc, desc) => {\n acc.push(desc.value);\n return acc;\n }, []);\n}\n\nfunction configIsApplicable(\n { options }: OptionsAndDescriptors,\n dirname: string,\n context: ConfigContext,\n configName: string,\n): boolean {\n return (\n (options.test === undefined ||\n configFieldIsApplicable(context, options.test, dirname, configName)) &&\n (options.include === undefined ||\n configFieldIsApplicable(context, options.include, dirname, configName)) &&\n (options.exclude === undefined ||\n !configFieldIsApplicable(context, options.exclude, dirname, configName))\n );\n}\n\nfunction configFieldIsApplicable(\n context: ConfigContext,\n test: ConfigApplicableTest,\n dirname: string,\n configName: string,\n): boolean {\n const patterns = Array.isArray(test) ? test : [test];\n\n return matchesPatterns(context, patterns, dirname, configName);\n}\n\n/**\n * Print the ignoreList-values in a more helpful way than the default.\n */\nfunction ignoreListReplacer(\n _key: string,\n value: IgnoreList | IgnoreItem,\n): IgnoreList | IgnoreItem | string {\n if (value instanceof RegExp) {\n return String(value);\n }\n\n return value;\n}\n\n/**\n * Tests if a filename should be ignored based on \"ignore\" and \"only\" options.\n */\nfunction shouldIgnore(\n context: ConfigContext,\n ignore: IgnoreList | undefined | null,\n only: IgnoreList | undefined | null,\n dirname: string,\n): boolean {\n if (ignore && matchesPatterns(context, ignore, dirname)) {\n const message = `No config is applied to \"${\n context.filename ?? \"(unknown)\"\n }\" because it matches one of \\`ignore: ${JSON.stringify(\n ignore,\n ignoreListReplacer,\n )}\\` from \"${dirname}\"`;\n debug(message);\n if (context.showConfig) {\n console.log(message);\n }\n return true;\n }\n\n if (only && !matchesPatterns(context, only, dirname)) {\n const message = `No config is applied to \"${\n context.filename ?? \"(unknown)\"\n }\" because it fails to match one of \\`only: ${JSON.stringify(\n only,\n ignoreListReplacer,\n )}\\` from \"${dirname}\"`;\n debug(message);\n if (context.showConfig) {\n console.log(message);\n }\n return true;\n }\n\n return false;\n}\n\n/**\n * Returns result of calling function with filename if pattern is a function.\n * Otherwise returns result of matching pattern Regex with filename.\n */\nfunction matchesPatterns(\n context: ConfigContext,\n patterns: IgnoreList,\n dirname: string,\n configName?: string,\n): boolean {\n return patterns.some(pattern =>\n matchPattern(pattern, dirname, context.filename, context, configName),\n );\n}\n\nfunction matchPattern(\n pattern: IgnoreItem,\n dirname: string,\n pathToTest: string | undefined,\n context: ConfigContext,\n configName?: string,\n): boolean {\n if (typeof pattern === \"function\") {\n return !!endHiddenCallStack(pattern)(pathToTest, {\n dirname,\n envName: context.envName,\n caller: context.caller,\n });\n }\n\n if (typeof pathToTest !== \"string\") {\n throw new ConfigError(\n `Configuration contains string/RegExp pattern, but no filename was passed to Babel`,\n configName,\n );\n }\n\n if (typeof pattern === \"string\") {\n pattern = pathPatternToRegex(pattern, dirname);\n }\n return pattern.test(pathToTest);\n}\n"],"mappings":";;;;;;;;AAEA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,QAAA,GAAAF,OAAA;AASA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAGA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAKA,IAAAO,MAAA,GAAAP,OAAA;AAQA,IAAAQ,QAAA,GAAAR,OAAA;AAEA,IAAAS,kBAAA,GAAAT,OAAA;AAZA,MAAMU,KAAK,GAAGC,OAASA,CAAC,CAAC,2BAA2B,CAAC;AAgD9C,UAAUC,gBAAgBA,CAC/BC,GAAmB,EACnBC,OAAY,EACiB;EAC7B,MAAMC,KAAK,GAAG,OAAOC,sBAAsB,CAACH,GAAG,EAAEC,OAAO,CAAC;EACzD,IAAI,CAACC,KAAK,EAAE,OAAO,IAAI;EAEvB,OAAO;IACLE,OAAO,EAAEC,gBAAgB,CAACH,KAAK,CAACE,OAAO,CAAC;IACxCE,OAAO,EAAED,gBAAgB,CAACH,KAAK,CAACI,OAAO,CAAC;IACxCC,OAAO,EAAEL,KAAK,CAACK,OAAO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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.createCachedDescriptors = createCachedDescriptors;
|
| 7 |
+
exports.createDescriptor = createDescriptor;
|
| 8 |
+
exports.createUncachedDescriptors = createUncachedDescriptors;
|
| 9 |
+
function _gensync() {
|
| 10 |
+
const data = require("gensync");
|
| 11 |
+
_gensync = function () {
|
| 12 |
+
return data;
|
| 13 |
+
};
|
| 14 |
+
return data;
|
| 15 |
+
}
|
| 16 |
+
var _functional = require("../gensync-utils/functional.js");
|
| 17 |
+
var _index = require("./files/index.js");
|
| 18 |
+
var _item = require("./item.js");
|
| 19 |
+
var _caching = require("./caching.js");
|
| 20 |
+
var _resolveTargets = require("./resolve-targets.js");
|
| 21 |
+
function isEqualDescriptor(a, b) {
|
| 22 |
+
var _a$file, _b$file, _a$file2, _b$file2;
|
| 23 |
+
return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && ((_a$file = a.file) == null ? void 0 : _a$file.request) === ((_b$file = b.file) == null ? void 0 : _b$file.request) && ((_a$file2 = a.file) == null ? void 0 : _a$file2.resolved) === ((_b$file2 = b.file) == null ? void 0 : _b$file2.resolved);
|
| 24 |
+
}
|
| 25 |
+
function* handlerOf(value) {
|
| 26 |
+
return value;
|
| 27 |
+
}
|
| 28 |
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname) {
|
| 29 |
+
if (typeof options.browserslistConfigFile === "string") {
|
| 30 |
+
options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname);
|
| 31 |
+
}
|
| 32 |
+
return options;
|
| 33 |
+
}
|
| 34 |
+
function createCachedDescriptors(dirname, options, alias) {
|
| 35 |
+
const {
|
| 36 |
+
plugins,
|
| 37 |
+
presets,
|
| 38 |
+
passPerPreset
|
| 39 |
+
} = options;
|
| 40 |
+
return {
|
| 41 |
+
options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
|
| 42 |
+
plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]),
|
| 43 |
+
presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([])
|
| 44 |
+
};
|
| 45 |
+
}
|
| 46 |
+
function createUncachedDescriptors(dirname, options, alias) {
|
| 47 |
+
return {
|
| 48 |
+
options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
|
| 49 |
+
plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)),
|
| 50 |
+
presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset))
|
| 51 |
+
};
|
| 52 |
+
}
|
| 53 |
+
const PRESET_DESCRIPTOR_CACHE = new WeakMap();
|
| 54 |
+
const createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
|
| 55 |
+
const dirname = cache.using(dir => dir);
|
| 56 |
+
return (0, _caching.makeStrongCacheSync)(alias => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
| 57 |
+
const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset);
|
| 58 |
+
return descriptors.map(desc => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
| 59 |
+
}));
|
| 60 |
+
});
|
| 61 |
+
const PLUGIN_DESCRIPTOR_CACHE = new WeakMap();
|
| 62 |
+
const createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
|
| 63 |
+
const dirname = cache.using(dir => dir);
|
| 64 |
+
return (0, _caching.makeStrongCache)(function* (alias) {
|
| 65 |
+
const descriptors = yield* createPluginDescriptors(items, dirname, alias);
|
| 66 |
+
return descriptors.map(desc => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
| 67 |
+
});
|
| 68 |
+
});
|
| 69 |
+
const DEFAULT_OPTIONS = {};
|
| 70 |
+
function loadCachedDescriptor(cache, desc) {
|
| 71 |
+
const {
|
| 72 |
+
value,
|
| 73 |
+
options = DEFAULT_OPTIONS
|
| 74 |
+
} = desc;
|
| 75 |
+
if (options === false) return desc;
|
| 76 |
+
let cacheByOptions = cache.get(value);
|
| 77 |
+
if (!cacheByOptions) {
|
| 78 |
+
cacheByOptions = new WeakMap();
|
| 79 |
+
cache.set(value, cacheByOptions);
|
| 80 |
+
}
|
| 81 |
+
let possibilities = cacheByOptions.get(options);
|
| 82 |
+
if (!possibilities) {
|
| 83 |
+
possibilities = [];
|
| 84 |
+
cacheByOptions.set(options, possibilities);
|
| 85 |
+
}
|
| 86 |
+
if (!possibilities.includes(desc)) {
|
| 87 |
+
const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc));
|
| 88 |
+
if (matches.length > 0) {
|
| 89 |
+
return matches[0];
|
| 90 |
+
}
|
| 91 |
+
possibilities.push(desc);
|
| 92 |
+
}
|
| 93 |
+
return desc;
|
| 94 |
+
}
|
| 95 |
+
function* createPresetDescriptors(items, dirname, alias, passPerPreset) {
|
| 96 |
+
return yield* createDescriptors("preset", items, dirname, alias, passPerPreset);
|
| 97 |
+
}
|
| 98 |
+
function* createPluginDescriptors(items, dirname, alias) {
|
| 99 |
+
return yield* createDescriptors("plugin", items, dirname, alias);
|
| 100 |
+
}
|
| 101 |
+
function* createDescriptors(type, items, dirname, alias, ownPass) {
|
| 102 |
+
const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, {
|
| 103 |
+
type,
|
| 104 |
+
alias: `${alias}$${index}`,
|
| 105 |
+
ownPass: !!ownPass
|
| 106 |
+
})));
|
| 107 |
+
assertNoDuplicates(descriptors);
|
| 108 |
+
return descriptors;
|
| 109 |
+
}
|
| 110 |
+
function* createDescriptor(pair, dirname, {
|
| 111 |
+
type,
|
| 112 |
+
alias,
|
| 113 |
+
ownPass
|
| 114 |
+
}) {
|
| 115 |
+
const desc = (0, _item.getItemDescriptor)(pair);
|
| 116 |
+
if (desc) {
|
| 117 |
+
return desc;
|
| 118 |
+
}
|
| 119 |
+
let name;
|
| 120 |
+
let options;
|
| 121 |
+
let value = pair;
|
| 122 |
+
if (Array.isArray(value)) {
|
| 123 |
+
if (value.length === 3) {
|
| 124 |
+
[value, options, name] = value;
|
| 125 |
+
} else {
|
| 126 |
+
[value, options] = value;
|
| 127 |
+
}
|
| 128 |
+
}
|
| 129 |
+
let file = undefined;
|
| 130 |
+
let filepath = null;
|
| 131 |
+
if (typeof value === "string") {
|
| 132 |
+
if (typeof type !== "string") {
|
| 133 |
+
throw new Error("To resolve a string-based item, the type of item must be given");
|
| 134 |
+
}
|
| 135 |
+
const resolver = type === "plugin" ? _index.loadPlugin : _index.loadPreset;
|
| 136 |
+
const request = value;
|
| 137 |
+
({
|
| 138 |
+
filepath,
|
| 139 |
+
value
|
| 140 |
+
} = yield* resolver(value, dirname));
|
| 141 |
+
file = {
|
| 142 |
+
request,
|
| 143 |
+
resolved: filepath
|
| 144 |
+
};
|
| 145 |
+
}
|
| 146 |
+
if (!value) {
|
| 147 |
+
throw new Error(`Unexpected falsy value: ${String(value)}`);
|
| 148 |
+
}
|
| 149 |
+
if (typeof value === "object" && value.__esModule) {
|
| 150 |
+
if (value.default) {
|
| 151 |
+
value = value.default;
|
| 152 |
+
} else {
|
| 153 |
+
throw new Error("Must export a default export when using ES6 modules.");
|
| 154 |
+
}
|
| 155 |
+
}
|
| 156 |
+
if (typeof value !== "object" && typeof value !== "function") {
|
| 157 |
+
throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`);
|
| 158 |
+
}
|
| 159 |
+
if (filepath !== null && typeof value === "object" && value) {
|
| 160 |
+
throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
| 161 |
+
}
|
| 162 |
+
return {
|
| 163 |
+
name,
|
| 164 |
+
alias: filepath || alias,
|
| 165 |
+
value,
|
| 166 |
+
options,
|
| 167 |
+
dirname,
|
| 168 |
+
ownPass,
|
| 169 |
+
file
|
| 170 |
+
};
|
| 171 |
+
}
|
| 172 |
+
function assertNoDuplicates(items) {
|
| 173 |
+
const map = new Map();
|
| 174 |
+
for (const item of items) {
|
| 175 |
+
if (typeof item.value !== "function") continue;
|
| 176 |
+
let nameMap = map.get(item.value);
|
| 177 |
+
if (!nameMap) {
|
| 178 |
+
nameMap = new Set();
|
| 179 |
+
map.set(item.value, nameMap);
|
| 180 |
+
}
|
| 181 |
+
if (nameMap.has(item.name)) {
|
| 182 |
+
const conflicts = items.filter(i => i.value === item.value);
|
| 183 |
+
throw new Error([`Duplicate plugin/preset detected.`, `If you'd like to use two separate instances of a plugin,`, `they need separate names, e.g.`, ``, ` plugins: [`, ` ['some-plugin', {}],`, ` ['some-plugin', {}, 'some unique name'],`, ` ]`, ``, `Duplicates detected are:`, `${JSON.stringify(conflicts, null, 2)}`].join("\n"));
|
| 184 |
+
}
|
| 185 |
+
nameMap.add(item.name);
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
0 && 0;
|
| 189 |
+
|
| 190 |
+
//# sourceMappingURL=config-descriptors.js.map
|
frontend/node_modules/@babel/core/lib/config/config-descriptors.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_gensync","data","require","_functional","_index","_item","_caching","_resolveTargets","isEqualDescriptor","a","b","_a$file","_b$file","_a$file2","_b$file2","name","value","options","dirname","alias","ownPass","file","request","resolved","handlerOf","optionsWithResolvedBrowserslistConfigFile","browserslistConfigFile","resolveBrowserslistConfigFile","createCachedDescriptors","plugins","presets","passPerPreset","createCachedPluginDescriptors","createCachedPresetDescriptors","createUncachedDescriptors","once","createPluginDescriptors","createPresetDescriptors","PRESET_DESCRIPTOR_CACHE","WeakMap","makeWeakCacheSync","items","cache","using","dir","makeStrongCacheSync","makeStrongCache","descriptors","map","desc","loadCachedDescriptor","PLUGIN_DESCRIPTOR_CACHE","DEFAULT_OPTIONS","cacheByOptions","get","set","possibilities","includes","matches","filter","possibility","length","push","createDescriptors","type","gensync","all","item","index","createDescriptor","assertNoDuplicates","pair","getItemDescriptor","Array","isArray","undefined","filepath","Error","resolver","loadPlugin","loadPreset","String","__esModule","default","Map","nameMap","Set","has","conflicts","i","JSON","stringify","join","add"],"sources":["../../src/config/config-descriptors.ts"],"sourcesContent":["import gensync, { type Handler } from \"gensync\";\nimport { once } from \"../gensync-utils/functional.ts\";\n\nimport { loadPlugin, loadPreset } from \"./files/index.ts\";\n\nimport { getItemDescriptor } from \"./item.ts\";\n\nimport {\n makeWeakCacheSync,\n makeStrongCacheSync,\n makeStrongCache,\n} from \"./caching.ts\";\nimport type { CacheConfigurator } from \"./caching.ts\";\n\nimport type {\n ValidatedOptions,\n PluginList,\n PluginItem,\n} from \"./validation/options.ts\";\n\nimport { resolveBrowserslistConfigFile } from \"./resolve-targets.ts\";\nimport type { PluginAPI, PresetAPI } from \"./helpers/config-api.ts\";\n\n// Represents a config object and functions to lazily load the descriptors\n// for the plugins and presets so we don't load the plugins/presets unless\n// the options object actually ends up being applicable.\nexport type OptionsAndDescriptors = {\n options: ValidatedOptions;\n plugins: () => Handler<Array<UnloadedDescriptor<PluginAPI>>>;\n presets: () => Handler<Array<UnloadedDescriptor<PresetAPI>>>;\n};\n\n// Represents a plugin or presets at a given location in a config object.\n// At this point these have been resolved to a specific object or function,\n// but have not yet been executed to call functions with options.\nexport interface UnloadedDescriptor<API, Options = object | undefined | false> {\n name: string | undefined;\n value: object | ((api: API, options: Options, dirname: string) => unknown);\n options: Options;\n dirname: string;\n alias: string;\n ownPass?: boolean;\n file?: {\n request: string;\n resolved: string;\n };\n}\n\nfunction isEqualDescriptor<API>(\n a: UnloadedDescriptor<API>,\n b: UnloadedDescriptor<API>,\n): boolean {\n return (\n a.name === b.name &&\n a.value === b.value &&\n a.options === b.options &&\n a.dirname === b.dirname &&\n a.alias === b.alias &&\n a.ownPass === b.ownPass &&\n a.file?.request === b.file?.request &&\n a.file?.resolved === b.file?.resolved\n );\n}\n\nexport type ValidatedFile = {\n filepath: string;\n dirname: string;\n options: ValidatedOptions;\n};\n\n// eslint-disable-next-line require-yield\nfunction* handlerOf<T>(value: T): Handler<T> {\n return value;\n}\n\nfunction optionsWithResolvedBrowserslistConfigFile(\n options: ValidatedOptions,\n dirname: string,\n): ValidatedOptions {\n if (typeof options.browserslistConfigFile === \"string\") {\n options.browserslistConfigFile = resolveBrowserslistConfigFile(\n options.browserslistConfigFile,\n dirname,\n );\n }\n return options;\n}\n\n/**\n * Create a set of descriptors from a given options object, preserving\n * descriptor identity based on the identity of the plugin/preset arrays\n * themselves, and potentially on the identity of the plugins/presets + options.\n */\nexport function createCachedDescriptors(\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n): OptionsAndDescriptors {\n const { plugins, presets, passPerPreset } = options;\n return {\n options: optionsWithResolvedBrowserslistConfigFile(options, dirname),\n plugins: plugins\n ? () =>\n // @ts-expect-error todo(flow->ts) ts complains about incorrect arguments\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n createCachedPluginDescriptors(plugins, dirname)(alias)\n : () => handlerOf([]),\n presets: presets\n ? () =>\n // @ts-expect-error todo(flow->ts) ts complains about incorrect arguments\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n createCachedPresetDescriptors(presets, dirname)(alias)(\n !!passPerPreset,\n )\n : () => handlerOf([]),\n };\n}\n\n/**\n * Create a set of descriptors from a given options object, with consistent\n * identity for the descriptors, but not caching based on any specific identity.\n */\nexport function createUncachedDescriptors(\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n): OptionsAndDescriptors {\n return {\n options: optionsWithResolvedBrowserslistConfigFile(options, dirname),\n // The returned result here is cached to represent a config object in\n // memory, so we build and memoize the descriptors to ensure the same\n // values are returned consistently.\n plugins: once(() =>\n createPluginDescriptors(options.plugins || [], dirname, alias),\n ),\n presets: once(() =>\n createPresetDescriptors(\n options.presets || [],\n dirname,\n alias,\n !!options.passPerPreset,\n ),\n ),\n };\n}\n\nconst PRESET_DESCRIPTOR_CACHE = new WeakMap();\nconst createCachedPresetDescriptors = makeWeakCacheSync(\n (items: PluginList, cache: CacheConfigurator<string>) => {\n const dirname = cache.using(dir => dir);\n return makeStrongCacheSync((alias: string) =>\n makeStrongCache(function* (\n passPerPreset: boolean,\n ): Handler<Array<UnloadedDescriptor<PresetAPI>>> {\n const descriptors = yield* createPresetDescriptors(\n items,\n dirname,\n alias,\n passPerPreset,\n );\n return descriptors.map(\n // Items are cached using the overall preset array identity when\n // possibly, but individual descriptors are also cached if a match\n // can be found in the previously-used descriptor lists.\n desc => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc),\n );\n }),\n );\n },\n);\n\nconst PLUGIN_DESCRIPTOR_CACHE = new WeakMap();\nconst createCachedPluginDescriptors = makeWeakCacheSync(\n (items: PluginList, cache: CacheConfigurator<string>) => {\n const dirname = cache.using(dir => dir);\n return makeStrongCache(function* (\n alias: string,\n ): Handler<Array<UnloadedDescriptor<PluginAPI>>> {\n const descriptors = yield* createPluginDescriptors(items, dirname, alias);\n return descriptors.map(\n // Items are cached using the overall plugin array identity when\n // possibly, but individual descriptors are also cached if a match\n // can be found in the previously-used descriptor lists.\n desc => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc),\n );\n });\n },\n);\n\n/**\n * When no options object is given in a descriptor, this object is used\n * as a WeakMap key in order to have consistent identity.\n */\nconst DEFAULT_OPTIONS = {};\n\n/**\n * Given the cache and a descriptor, returns a matching descriptor from the\n * cache, or else returns the input descriptor and adds it to the cache for\n * next time.\n */\nfunction loadCachedDescriptor<API>(\n cache: WeakMap<\n object | Function,\n WeakMap<object, Array<UnloadedDescriptor<API>>>\n >,\n desc: UnloadedDescriptor<API>,\n) {\n const { value, options = DEFAULT_OPTIONS } = desc;\n if (options === false) return desc;\n\n let cacheByOptions = cache.get(value);\n if (!cacheByOptions) {\n cacheByOptions = new WeakMap();\n cache.set(value, cacheByOptions);\n }\n\n let possibilities = cacheByOptions.get(options);\n if (!possibilities) {\n possibilities = [];\n cacheByOptions.set(options, possibilities);\n }\n\n if (!possibilities.includes(desc)) {\n const matches = possibilities.filter(possibility =>\n isEqualDescriptor(possibility, desc),\n );\n if (matches.length > 0) {\n return matches[0];\n }\n\n possibilities.push(desc);\n }\n\n return desc;\n}\n\nfunction* createPresetDescriptors(\n items: PluginList,\n dirname: string,\n alias: string,\n passPerPreset: boolean,\n): Handler<Array<UnloadedDescriptor<PresetAPI>>> {\n return yield* createDescriptors(\n \"preset\",\n items,\n dirname,\n alias,\n passPerPreset,\n );\n}\n\nfunction* createPluginDescriptors(\n items: PluginList,\n dirname: string,\n alias: string,\n): Handler<Array<UnloadedDescriptor<PluginAPI>>> {\n return yield* createDescriptors(\"plugin\", items, dirname, alias);\n}\n\nfunction* createDescriptors<API>(\n type: \"plugin\" | \"preset\",\n items: PluginList,\n dirname: string,\n alias: string,\n ownPass?: boolean,\n): Handler<Array<UnloadedDescriptor<API>>> {\n const descriptors = yield* gensync.all(\n items.map((item, index) =>\n createDescriptor(item, dirname, {\n type,\n alias: `${alias}$${index}`,\n ownPass: !!ownPass,\n }),\n ),\n );\n\n assertNoDuplicates(descriptors);\n\n return descriptors;\n}\n\n/**\n * Given a plugin/preset item, resolve it into a standard format.\n */\nexport function* createDescriptor<API>(\n pair: PluginItem,\n dirname: string,\n {\n type,\n alias,\n ownPass,\n }: {\n type?: \"plugin\" | \"preset\";\n alias: string;\n ownPass?: boolean;\n },\n): Handler<UnloadedDescriptor<API>> {\n const desc = getItemDescriptor(pair);\n if (desc) {\n return desc;\n }\n\n let name;\n let options;\n // todo(flow->ts) better type annotation\n let value: any = pair;\n if (Array.isArray(value)) {\n if (value.length === 3) {\n [value, options, name] = value;\n } else {\n [value, options] = value;\n }\n }\n\n let file = undefined;\n let filepath = null;\n if (typeof value === \"string\") {\n if (typeof type !== \"string\") {\n throw new Error(\n \"To resolve a string-based item, the type of item must be given\",\n );\n }\n const resolver = type === \"plugin\" ? loadPlugin : loadPreset;\n const request = value;\n\n ({ filepath, value } = yield* resolver(value, dirname));\n\n file = {\n request,\n resolved: filepath,\n };\n }\n\n if (!value) {\n throw new Error(`Unexpected falsy value: ${String(value)}`);\n }\n\n if (typeof value === \"object\" && value.__esModule) {\n if (value.default) {\n value = value.default;\n } else {\n throw new Error(\"Must export a default export when using ES6 modules.\");\n }\n }\n\n if (typeof value !== \"object\" && typeof value !== \"function\") {\n throw new Error(\n `Unsupported format: ${typeof value}. Expected an object or a function.`,\n );\n }\n\n if (filepath !== null && typeof value === \"object\" && value) {\n // We allow object values for plugins/presets nested directly within a\n // config object, because it can be useful to define them in nested\n // configuration contexts.\n throw new Error(\n `Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`,\n );\n }\n\n return {\n name,\n alias: filepath || alias,\n value,\n options,\n dirname,\n ownPass,\n file,\n };\n}\n\nfunction assertNoDuplicates<API>(items: Array<UnloadedDescriptor<API>>): void {\n const map = new Map();\n\n for (const item of items) {\n if (typeof item.value !== \"function\") continue;\n\n let nameMap = map.get(item.value);\n if (!nameMap) {\n nameMap = new Set();\n map.set(item.value, nameMap);\n }\n\n if (nameMap.has(item.name)) {\n const conflicts = items.filter(i => i.value === item.value);\n throw new Error(\n [\n `Duplicate plugin/preset detected.`,\n `If you'd like to use two separate instances of a plugin,`,\n `they need separate names, e.g.`,\n ``,\n ` plugins: [`,\n ` ['some-plugin', {}],`,\n ` ['some-plugin', {}, 'some unique name'],`,\n ` ]`,\n ``,\n `Duplicates detected are:`,\n `${JSON.stringify(conflicts, null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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.ROOT_CONFIG_FILENAMES = void 0;
|
| 7 |
+
exports.findConfigUpwards = findConfigUpwards;
|
| 8 |
+
exports.findRelativeConfig = findRelativeConfig;
|
| 9 |
+
exports.findRootConfig = findRootConfig;
|
| 10 |
+
exports.loadConfig = loadConfig;
|
| 11 |
+
exports.resolveShowConfigPath = resolveShowConfigPath;
|
| 12 |
+
function _debug() {
|
| 13 |
+
const data = require("debug");
|
| 14 |
+
_debug = function () {
|
| 15 |
+
return data;
|
| 16 |
+
};
|
| 17 |
+
return data;
|
| 18 |
+
}
|
| 19 |
+
function _fs() {
|
| 20 |
+
const data = require("fs");
|
| 21 |
+
_fs = function () {
|
| 22 |
+
return data;
|
| 23 |
+
};
|
| 24 |
+
return data;
|
| 25 |
+
}
|
| 26 |
+
function _path() {
|
| 27 |
+
const data = require("path");
|
| 28 |
+
_path = function () {
|
| 29 |
+
return data;
|
| 30 |
+
};
|
| 31 |
+
return data;
|
| 32 |
+
}
|
| 33 |
+
function _json() {
|
| 34 |
+
const data = require("json5");
|
| 35 |
+
_json = function () {
|
| 36 |
+
return data;
|
| 37 |
+
};
|
| 38 |
+
return data;
|
| 39 |
+
}
|
| 40 |
+
function _gensync() {
|
| 41 |
+
const data = require("gensync");
|
| 42 |
+
_gensync = function () {
|
| 43 |
+
return data;
|
| 44 |
+
};
|
| 45 |
+
return data;
|
| 46 |
+
}
|
| 47 |
+
var _caching = require("../caching.js");
|
| 48 |
+
var _configApi = require("../helpers/config-api.js");
|
| 49 |
+
var _utils = require("./utils.js");
|
| 50 |
+
var _moduleTypes = require("./module-types.js");
|
| 51 |
+
var _patternToRegex = require("../pattern-to-regex.js");
|
| 52 |
+
var _configError = require("../../errors/config-error.js");
|
| 53 |
+
var fs = require("../../gensync-utils/fs.js");
|
| 54 |
+
require("module");
|
| 55 |
+
var _rewriteStackTrace = require("../../errors/rewrite-stack-trace.js");
|
| 56 |
+
var _async = require("../../gensync-utils/async.js");
|
| 57 |
+
const debug = _debug()("babel:config:loading:files:configuration");
|
| 58 |
+
const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts", "babel.config.ts", "babel.config.mts"];
|
| 59 |
+
const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"];
|
| 60 |
+
const BABELIGNORE_FILENAME = ".babelignore";
|
| 61 |
+
const runConfig = (0, _caching.makeWeakCache)(function* runConfig(options, cache) {
|
| 62 |
+
yield* [];
|
| 63 |
+
return {
|
| 64 |
+
options: (0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache)),
|
| 65 |
+
cacheNeedsConfiguration: !cache.configured()
|
| 66 |
+
};
|
| 67 |
+
});
|
| 68 |
+
function* readConfigCode(filepath, data) {
|
| 69 |
+
if (!_fs().existsSync(filepath)) return null;
|
| 70 |
+
let options = yield* (0, _moduleTypes.default)(filepath, (yield* (0, _async.isAsync)()) ? "auto" : "require", "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", "You appear to be using a configuration file that contains top-level " + "await, which is only supported when running Babel asynchronously.");
|
| 71 |
+
let cacheNeedsConfiguration = false;
|
| 72 |
+
if (typeof options === "function") {
|
| 73 |
+
({
|
| 74 |
+
options,
|
| 75 |
+
cacheNeedsConfiguration
|
| 76 |
+
} = yield* runConfig(options, data));
|
| 77 |
+
}
|
| 78 |
+
if (!options || typeof options !== "object" || Array.isArray(options)) {
|
| 79 |
+
throw new _configError.default(`Configuration should be an exported JavaScript object.`, filepath);
|
| 80 |
+
}
|
| 81 |
+
if (typeof options.then === "function") {
|
| 82 |
+
options.catch == null || options.catch(() => {});
|
| 83 |
+
throw new _configError.default(`You appear to be using an async configuration, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously return your config.`, filepath);
|
| 84 |
+
}
|
| 85 |
+
if (cacheNeedsConfiguration) throwConfigError(filepath);
|
| 86 |
+
return buildConfigFileObject(options, filepath);
|
| 87 |
+
}
|
| 88 |
+
const cfboaf = new WeakMap();
|
| 89 |
+
function buildConfigFileObject(options, filepath) {
|
| 90 |
+
let configFilesByFilepath = cfboaf.get(options);
|
| 91 |
+
if (!configFilesByFilepath) {
|
| 92 |
+
cfboaf.set(options, configFilesByFilepath = new Map());
|
| 93 |
+
}
|
| 94 |
+
let configFile = configFilesByFilepath.get(filepath);
|
| 95 |
+
if (!configFile) {
|
| 96 |
+
configFile = {
|
| 97 |
+
filepath,
|
| 98 |
+
dirname: _path().dirname(filepath),
|
| 99 |
+
options
|
| 100 |
+
};
|
| 101 |
+
configFilesByFilepath.set(filepath, configFile);
|
| 102 |
+
}
|
| 103 |
+
return configFile;
|
| 104 |
+
}
|
| 105 |
+
const packageToBabelConfig = (0, _caching.makeWeakCacheSync)(file => {
|
| 106 |
+
const babel = file.options.babel;
|
| 107 |
+
if (babel === undefined) return null;
|
| 108 |
+
if (typeof babel !== "object" || Array.isArray(babel) || babel === null) {
|
| 109 |
+
throw new _configError.default(`.babel property must be an object`, file.filepath);
|
| 110 |
+
}
|
| 111 |
+
return {
|
| 112 |
+
filepath: file.filepath,
|
| 113 |
+
dirname: file.dirname,
|
| 114 |
+
options: babel
|
| 115 |
+
};
|
| 116 |
+
});
|
| 117 |
+
const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => {
|
| 118 |
+
let options;
|
| 119 |
+
try {
|
| 120 |
+
options = _json().parse(content);
|
| 121 |
+
} catch (err) {
|
| 122 |
+
throw new _configError.default(`Error while parsing config - ${err.message}`, filepath);
|
| 123 |
+
}
|
| 124 |
+
if (!options) throw new _configError.default(`No config detected`, filepath);
|
| 125 |
+
if (typeof options !== "object") {
|
| 126 |
+
throw new _configError.default(`Config returned typeof ${typeof options}`, filepath);
|
| 127 |
+
}
|
| 128 |
+
if (Array.isArray(options)) {
|
| 129 |
+
throw new _configError.default(`Expected config object but found array`, filepath);
|
| 130 |
+
}
|
| 131 |
+
delete options.$schema;
|
| 132 |
+
return {
|
| 133 |
+
filepath,
|
| 134 |
+
dirname: _path().dirname(filepath),
|
| 135 |
+
options
|
| 136 |
+
};
|
| 137 |
+
});
|
| 138 |
+
const readIgnoreConfig = (0, _utils.makeStaticFileCache)((filepath, content) => {
|
| 139 |
+
const ignoreDir = _path().dirname(filepath);
|
| 140 |
+
const ignorePatterns = content.split("\n").map(line => line.replace(/#.*$/, "").trim()).filter(Boolean);
|
| 141 |
+
for (const pattern of ignorePatterns) {
|
| 142 |
+
if (pattern[0] === "!") {
|
| 143 |
+
throw new _configError.default(`Negation of file paths is not supported.`, filepath);
|
| 144 |
+
}
|
| 145 |
+
}
|
| 146 |
+
return {
|
| 147 |
+
filepath,
|
| 148 |
+
dirname: _path().dirname(filepath),
|
| 149 |
+
ignore: ignorePatterns.map(pattern => (0, _patternToRegex.default)(pattern, ignoreDir))
|
| 150 |
+
};
|
| 151 |
+
});
|
| 152 |
+
function findConfigUpwards(rootDir) {
|
| 153 |
+
let dirname = rootDir;
|
| 154 |
+
for (;;) {
|
| 155 |
+
for (const filename of ROOT_CONFIG_FILENAMES) {
|
| 156 |
+
if (_fs().existsSync(_path().join(dirname, filename))) {
|
| 157 |
+
return dirname;
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
const nextDir = _path().dirname(dirname);
|
| 161 |
+
if (dirname === nextDir) break;
|
| 162 |
+
dirname = nextDir;
|
| 163 |
+
}
|
| 164 |
+
return null;
|
| 165 |
+
}
|
| 166 |
+
function* findRelativeConfig(packageData, envName, caller) {
|
| 167 |
+
let config = null;
|
| 168 |
+
let ignore = null;
|
| 169 |
+
const dirname = _path().dirname(packageData.filepath);
|
| 170 |
+
for (const loc of packageData.directories) {
|
| 171 |
+
if (!config) {
|
| 172 |
+
var _packageData$pkg;
|
| 173 |
+
config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, ((_packageData$pkg = packageData.pkg) == null ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null);
|
| 174 |
+
}
|
| 175 |
+
if (!ignore) {
|
| 176 |
+
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
| 177 |
+
ignore = yield* readIgnoreConfig(ignoreLoc);
|
| 178 |
+
if (ignore) {
|
| 179 |
+
debug("Found ignore %o from %o.", ignore.filepath, dirname);
|
| 180 |
+
}
|
| 181 |
+
}
|
| 182 |
+
}
|
| 183 |
+
return {
|
| 184 |
+
config,
|
| 185 |
+
ignore
|
| 186 |
+
};
|
| 187 |
+
}
|
| 188 |
+
function findRootConfig(dirname, envName, caller) {
|
| 189 |
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);
|
| 190 |
+
}
|
| 191 |
+
function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) {
|
| 192 |
+
const configs = yield* _gensync().all(names.map(filename => readConfig(_path().join(dirname, filename), envName, caller)));
|
| 193 |
+
const config = configs.reduce((previousConfig, config) => {
|
| 194 |
+
if (config && previousConfig) {
|
| 195 |
+
throw new _configError.default(`Multiple configuration files found. Please remove one:\n` + ` - ${_path().basename(previousConfig.filepath)}\n` + ` - ${config.filepath}\n` + `from ${dirname}`);
|
| 196 |
+
}
|
| 197 |
+
return config || previousConfig;
|
| 198 |
+
}, previousConfig);
|
| 199 |
+
if (config) {
|
| 200 |
+
debug("Found configuration %o from %o.", config.filepath, dirname);
|
| 201 |
+
}
|
| 202 |
+
return config;
|
| 203 |
+
}
|
| 204 |
+
function* loadConfig(name, dirname, envName, caller) {
|
| 205 |
+
const filepath = (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, {
|
| 206 |
+
paths: [b]
|
| 207 |
+
}, M = require("module")) => {
|
| 208 |
+
let f = M._findPath(r, M._nodeModulePaths(b).concat(b));
|
| 209 |
+
if (f) return f;
|
| 210 |
+
f = new Error(`Cannot resolve module '${r}'`);
|
| 211 |
+
f.code = "MODULE_NOT_FOUND";
|
| 212 |
+
throw f;
|
| 213 |
+
})(name, {
|
| 214 |
+
paths: [dirname]
|
| 215 |
+
});
|
| 216 |
+
const conf = yield* readConfig(filepath, envName, caller);
|
| 217 |
+
if (!conf) {
|
| 218 |
+
throw new _configError.default(`Config file contains no configuration data`, filepath);
|
| 219 |
+
}
|
| 220 |
+
debug("Loaded config %o from %o.", name, dirname);
|
| 221 |
+
return conf;
|
| 222 |
+
}
|
| 223 |
+
function readConfig(filepath, envName, caller) {
|
| 224 |
+
const ext = _path().extname(filepath);
|
| 225 |
+
switch (ext) {
|
| 226 |
+
case ".js":
|
| 227 |
+
case ".cjs":
|
| 228 |
+
case ".mjs":
|
| 229 |
+
case ".ts":
|
| 230 |
+
case ".cts":
|
| 231 |
+
case ".mts":
|
| 232 |
+
return readConfigCode(filepath, {
|
| 233 |
+
envName,
|
| 234 |
+
caller
|
| 235 |
+
});
|
| 236 |
+
default:
|
| 237 |
+
return readConfigJSON5(filepath);
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
function* resolveShowConfigPath(dirname) {
|
| 241 |
+
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
| 242 |
+
if (targetPath != null) {
|
| 243 |
+
const absolutePath = _path().resolve(dirname, targetPath);
|
| 244 |
+
const stats = yield* fs.stat(absolutePath);
|
| 245 |
+
if (!stats.isFile()) {
|
| 246 |
+
throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
| 247 |
+
}
|
| 248 |
+
return absolutePath;
|
| 249 |
+
}
|
| 250 |
+
return null;
|
| 251 |
+
}
|
| 252 |
+
function throwConfigError(filepath) {
|
| 253 |
+
throw new _configError.default(`\
|
| 254 |
+
Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured
|
| 255 |
+
for various types of caching, using the first param of their handler functions:
|
| 256 |
+
|
| 257 |
+
module.exports = function(api) {
|
| 258 |
+
// The API exposes the following:
|
| 259 |
+
|
| 260 |
+
// Cache the returned value forever and don't call this function again.
|
| 261 |
+
api.cache(true);
|
| 262 |
+
|
| 263 |
+
// Don't cache at all. Not recommended because it will be very slow.
|
| 264 |
+
api.cache(false);
|
| 265 |
+
|
| 266 |
+
// Cached based on the value of some function. If this function returns a value different from
|
| 267 |
+
// a previously-encountered value, the plugins will re-evaluate.
|
| 268 |
+
var env = api.cache(() => process.env.NODE_ENV);
|
| 269 |
+
|
| 270 |
+
// If testing for a specific env, we recommend specifics to avoid instantiating a plugin for
|
| 271 |
+
// any possible NODE_ENV value that might come up during plugin execution.
|
| 272 |
+
var isProd = api.cache(() => process.env.NODE_ENV === "production");
|
| 273 |
+
|
| 274 |
+
// .cache(fn) will perform a linear search though instances to find the matching plugin based
|
| 275 |
+
// based on previous instantiated plugins. If you want to recreate the plugin and discard the
|
| 276 |
+
// previous instance whenever something changes, you may use:
|
| 277 |
+
var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");
|
| 278 |
+
|
| 279 |
+
// Note, we also expose the following more-verbose versions of the above examples:
|
| 280 |
+
api.cache.forever(); // api.cache(true)
|
| 281 |
+
api.cache.never(); // api.cache(false)
|
| 282 |
+
api.cache.using(fn); // api.cache(fn)
|
| 283 |
+
|
| 284 |
+
// Return the value that will be cached.
|
| 285 |
+
return { };
|
| 286 |
+
};`, filepath);
|
| 287 |
+
}
|
| 288 |
+
0 && 0;
|
| 289 |
+
|
| 290 |
+
//# sourceMappingURL=configuration.js.map
|
frontend/node_modules/@babel/core/lib/config/files/configuration.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_debug","data","require","_fs","_path","_json","_gensync","_caching","_configApi","_utils","_moduleTypes","_patternToRegex","_configError","fs","_rewriteStackTrace","_async","debug","buildDebug","ROOT_CONFIG_FILENAMES","exports","RELATIVE_CONFIG_FILENAMES","BABELIGNORE_FILENAME","runConfig","makeWeakCache","options","cache","endHiddenCallStack","makeConfigAPI","cacheNeedsConfiguration","configured","readConfigCode","filepath","nodeFs","existsSync","loadCodeDefault","isAsync","Array","isArray","ConfigError","then","catch","throwConfigError","buildConfigFileObject","cfboaf","WeakMap","configFilesByFilepath","get","set","Map","configFile","dirname","path","packageToBabelConfig","makeWeakCacheSync","file","babel","undefined","readConfigJSON5","makeStaticFileCache","content","json5","parse","err","message","$schema","readIgnoreConfig","ignoreDir","ignorePatterns","split","map","line","replace","trim","filter","Boolean","pattern","ignore","pathPatternToRegex","findConfigUpwards","rootDir","filename","join","nextDir","findRelativeConfig","packageData","envName","caller","config","loc","directories","_packageData$pkg","loadOneConfig","pkg","ignoreLoc","findRootConfig","names","previousConfig","configs","gensync","all","readConfig","reduce","basename","loadConfig","name","v","w","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","code","conf","ext","extname","resolveShowConfigPath","targetPath","env","BABEL_SHOW_CONFIG_FOR","absolutePath","stats","stat","isFile"],"sources":["../../../src/config/files/configuration.ts"],"sourcesContent":["import buildDebug from \"debug\";\nimport nodeFs from \"node:fs\";\nimport path from \"node:path\";\nimport json5 from \"json5\";\nimport gensync from \"gensync\";\nimport type { Handler } from \"gensync\";\nimport { makeWeakCache, makeWeakCacheSync } from \"../caching.ts\";\nimport type { CacheConfigurator } from \"../caching.ts\";\nimport { makeConfigAPI } from \"../helpers/config-api.ts\";\nimport type { ConfigAPI } from \"../helpers/config-api.ts\";\nimport { makeStaticFileCache } from \"./utils.ts\";\nimport loadCodeDefault from \"./module-types.ts\";\nimport pathPatternToRegex from \"../pattern-to-regex.ts\";\nimport type { FilePackageData, RelativeConfig, ConfigFile } from \"./types.ts\";\nimport type { CallerMetadata, InputOptions } from \"../validation/options.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport * as fs from \"../../gensync-utils/fs.ts\";\n\nimport { createRequire } from \"node:module\";\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:configuration\");\n\nexport const ROOT_CONFIG_FILENAMES = [\n \"babel.config.js\",\n \"babel.config.cjs\",\n \"babel.config.mjs\",\n \"babel.config.json\",\n \"babel.config.cts\",\n \"babel.config.ts\",\n \"babel.config.mts\",\n];\nconst RELATIVE_CONFIG_FILENAMES = [\n \".babelrc\",\n \".babelrc.js\",\n \".babelrc.cjs\",\n \".babelrc.mjs\",\n \".babelrc.json\",\n \".babelrc.cts\",\n];\n\nconst BABELIGNORE_FILENAME = \".babelignore\";\n\ntype ConfigCacheData = {\n envName: string;\n caller: CallerMetadata | undefined;\n};\n\nconst runConfig = makeWeakCache(function* runConfig(\n options: Function,\n cache: CacheConfigurator<ConfigCacheData>,\n): Handler<{\n options: InputOptions | null;\n cacheNeedsConfiguration: boolean;\n}> {\n // if we want to make it possible to use async configs\n yield* [];\n\n return {\n options: endHiddenCallStack(options as any as (api: ConfigAPI) => unknown)(\n makeConfigAPI(cache),\n ),\n cacheNeedsConfiguration: !cache.configured(),\n };\n});\n\nfunction* readConfigCode(\n filepath: string,\n data: ConfigCacheData,\n): Handler<ConfigFile | null> {\n if (!nodeFs.existsSync(filepath)) return null;\n\n let options = yield* loadCodeDefault(\n filepath,\n (yield* isAsync()) ? \"auto\" : \"require\",\n \"You appear to be using a native ECMAScript module configuration \" +\n \"file, which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n \"You appear to be using a configuration file that contains top-level \" +\n \"await, which is only supported when running Babel asynchronously.\",\n );\n\n let cacheNeedsConfiguration = false;\n if (typeof options === \"function\") {\n ({ options, cacheNeedsConfiguration } = yield* runConfig(options, data));\n }\n\n if (!options || typeof options !== \"object\" || Array.isArray(options)) {\n throw new ConfigError(\n `Configuration should be an exported JavaScript object.`,\n filepath,\n );\n }\n\n // @ts-expect-error todo(flow->ts)\n if (typeof options.then === \"function\") {\n // @ts-expect-error We use ?. in case options is a thenable but not a promise\n options.catch?.(() => {});\n throw new ConfigError(\n `You appear to be using an async configuration, ` +\n `which your current version of Babel does not support. ` +\n `We may add support for this in the future, ` +\n `but if you're on the most recent version of @babel/core and still ` +\n `seeing this error, then you'll need to synchronously return your config.`,\n filepath,\n );\n }\n\n if (cacheNeedsConfiguration) throwConfigError(filepath);\n\n return buildConfigFileObject(options, filepath);\n}\n\n// We cache the generated ConfigFile object rather than creating a new one\n// every time, so that it can be used as a cache key in other functions.\nconst cfboaf /* configFilesByOptionsAndFilepath */ = new WeakMap<\n InputOptions,\n Map<string, ConfigFile>\n>();\nfunction buildConfigFileObject(\n options: InputOptions,\n filepath: string,\n): ConfigFile {\n let configFilesByFilepath = cfboaf.get(options);\n if (!configFilesByFilepath) {\n cfboaf.set(options, (configFilesByFilepath = new Map()));\n }\n\n let configFile = configFilesByFilepath.get(filepath);\n if (!configFile) {\n configFile = {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n configFilesByFilepath.set(filepath, configFile);\n }\n\n return configFile;\n}\n\nconst packageToBabelConfig = makeWeakCacheSync(\n (file: ConfigFile): ConfigFile | null => {\n const babel: unknown = file.options.babel;\n\n if (babel === undefined) return null;\n\n if (typeof babel !== \"object\" || Array.isArray(babel) || babel === null) {\n throw new ConfigError(`.babel property must be an object`, file.filepath);\n }\n\n return {\n filepath: file.filepath,\n dirname: file.dirname,\n options: babel,\n };\n },\n);\n\nconst readConfigJSON5 = makeStaticFileCache((filepath, content): ConfigFile => {\n let options;\n try {\n options = json5.parse(content);\n } catch (err) {\n throw new ConfigError(\n `Error while parsing config - ${err.message}`,\n filepath,\n );\n }\n\n if (!options) throw new ConfigError(`No config detected`, filepath);\n\n if (typeof options !== \"object\") {\n throw new ConfigError(`Config returned typeof ${typeof options}`, filepath);\n }\n if (Array.isArray(options)) {\n throw new ConfigError(`Expected config object but found array`, filepath);\n }\n\n delete options.$schema;\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n});\n\nconst readIgnoreConfig = makeStaticFileCache((filepath, content) => {\n const ignoreDir = path.dirname(filepath);\n const ignorePatterns = content\n .split(\"\\n\")\n .map(line =>\n line.replace(process.env.BABEL_8_BREAKING ? /^#.*$/ : /#.*$/, \"\").trim(),\n )\n .filter(Boolean);\n\n for (const pattern of ignorePatterns) {\n if (pattern[0] === \"!\") {\n throw new ConfigError(\n `Negation of file paths is not supported.`,\n filepath,\n );\n }\n }\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n ignore: ignorePatterns.map(pattern =>\n pathPatternToRegex(pattern, ignoreDir),\n ),\n };\n});\n\nexport function findConfigUpwards(rootDir: string): string | null {\n let dirname = rootDir;\n for (;;) {\n for (const filename of ROOT_CONFIG_FILENAMES) {\n if (nodeFs.existsSync(path.join(dirname, filename))) {\n return dirname;\n }\n }\n\n const nextDir = path.dirname(dirname);\n if (dirname === nextDir) break;\n dirname = nextDir;\n }\n\n return null;\n}\n\nexport function* findRelativeConfig(\n packageData: FilePackageData,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler<RelativeConfig> {\n let config = null;\n let ignore = null;\n\n const dirname = path.dirname(packageData.filepath);\n\n for (const loc of packageData.directories) {\n if (!config) {\n config = yield* loadOneConfig(\n RELATIVE_CONFIG_FILENAMES,\n loc,\n envName,\n caller,\n packageData.pkg?.dirname === loc\n ? packageToBabelConfig(packageData.pkg)\n : null,\n );\n }\n\n if (!ignore) {\n const ignoreLoc = path.join(loc, BABELIGNORE_FILENAME);\n ignore = yield* readIgnoreConfig(ignoreLoc);\n\n if (ignore) {\n debug(\"Found ignore %o from %o.\", ignore.filepath, dirname);\n }\n }\n }\n\n return { config, ignore };\n}\n\nexport function findRootConfig(\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler<ConfigFile | null> {\n return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);\n}\n\nfunction* loadOneConfig(\n names: string[],\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n previousConfig: ConfigFile | null = null,\n): Handler<ConfigFile | null> {\n const configs = yield* gensync.all(\n names.map(filename =>\n readConfig(path.join(dirname, filename), envName, caller),\n ),\n );\n const config = configs.reduce((previousConfig: ConfigFile | null, config) => {\n if (config && previousConfig) {\n throw new ConfigError(\n `Multiple configuration files found. Please remove one:\\n` +\n ` - ${path.basename(previousConfig.filepath)}\\n` +\n ` - ${config.filepath}\\n` +\n `from ${dirname}`,\n );\n }\n\n return config || previousConfig;\n }, previousConfig);\n\n if (config) {\n debug(\"Found configuration %o from %o.\", config.filepath, dirname);\n }\n return config;\n}\n\nexport function* loadConfig(\n name: string,\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler<ConfigFile> {\n const filepath = require.resolve(name, { paths: [dirname] });\n\n const conf = yield* readConfig(filepath, envName, caller);\n if (!conf) {\n throw new ConfigError(\n `Config file contains no configuration data`,\n filepath,\n );\n }\n\n debug(\"Loaded config %o from %o.\", name, dirname);\n return conf;\n}\n\n/**\n * Read the given config file, returning the result. Returns null if no config was found, but will\n * throw if there are parsing errors while loading a config.\n */\nfunction readConfig(\n filepath: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler<ConfigFile | null> {\n const ext = path.extname(filepath);\n switch (ext) {\n case \".js\":\n case \".cjs\":\n case \".mjs\":\n case \".ts\":\n case \".cts\":\n case \".mts\":\n return readConfigCode(filepath, { envName, caller });\n default:\n return readConfigJSON5(filepath);\n }\n}\n\nexport function* resolveShowConfigPath(\n dirname: string,\n): Handler<string | null> {\n const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;\n if (targetPath != null) {\n const absolutePath = path.resolve(dirname, targetPath);\n const stats = yield* fs.stat(absolutePath);\n if (!stats.isFile()) {\n throw new Error(\n `${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`,\n );\n }\n return absolutePath;\n }\n return null;\n}\n\nfunction throwConfigError(filepath: string): never {\n throw new ConfigError(\n `\\\nCaching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don't call this function again.\n api.cache(true);\n\n // Don't cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === \"production\");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === \"production\");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};`,\n filepath,\n );\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,EACCP,QACF,CAAC;AACH;AAAC","ignoreList":[]}
|
frontend/node_modules/@babel/core/lib/config/files/import.cjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = function import_(filepath) {
|
| 2 |
+
return import(filepath);
|
| 3 |
+
};
|
| 4 |
+
0 && 0;
|
| 5 |
+
|
| 6 |
+
//# sourceMappingURL=import.cjs.map
|
frontend/node_modules/@babel/core/lib/config/files/import.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["module","exports","import_","filepath"],"sources":["../../../src/config/files/import.cjs"],"sourcesContent":["// We keep this in a separate file so that in older node versions, where\n// import() isn't supported, we can try/catch around the require() call\n// when loading this file.\n\nmodule.exports = function import_(filepath) {\n return import(filepath);\n};\n"],"mappings":"AAIAA,MAAM,CAACC,OAAO,GAAG,SAASC,OAAOA,CAACC,QAAQ,EAAE;EAC1C,OAAO,OAAOA,QAAQ,CAAC;AACzB,CAAC;AAAC","ignoreList":[]}
|
frontend/node_modules/@babel/core/lib/config/files/index-browser.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.ROOT_CONFIG_FILENAMES = void 0;
|
| 7 |
+
exports.findConfigUpwards = findConfigUpwards;
|
| 8 |
+
exports.findPackageData = findPackageData;
|
| 9 |
+
exports.findRelativeConfig = findRelativeConfig;
|
| 10 |
+
exports.findRootConfig = findRootConfig;
|
| 11 |
+
exports.loadConfig = loadConfig;
|
| 12 |
+
exports.loadPlugin = loadPlugin;
|
| 13 |
+
exports.loadPreset = loadPreset;
|
| 14 |
+
exports.resolvePlugin = resolvePlugin;
|
| 15 |
+
exports.resolvePreset = resolvePreset;
|
| 16 |
+
exports.resolveShowConfigPath = resolveShowConfigPath;
|
| 17 |
+
function findConfigUpwards(rootDir) {
|
| 18 |
+
return null;
|
| 19 |
+
}
|
| 20 |
+
function* findPackageData(filepath) {
|
| 21 |
+
return {
|
| 22 |
+
filepath,
|
| 23 |
+
directories: [],
|
| 24 |
+
pkg: null,
|
| 25 |
+
isPackage: false
|
| 26 |
+
};
|
| 27 |
+
}
|
| 28 |
+
function* findRelativeConfig(pkgData, envName, caller) {
|
| 29 |
+
return {
|
| 30 |
+
config: null,
|
| 31 |
+
ignore: null
|
| 32 |
+
};
|
| 33 |
+
}
|
| 34 |
+
function* findRootConfig(dirname, envName, caller) {
|
| 35 |
+
return null;
|
| 36 |
+
}
|
| 37 |
+
function* loadConfig(name, dirname, envName, caller) {
|
| 38 |
+
throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);
|
| 39 |
+
}
|
| 40 |
+
function* resolveShowConfigPath(dirname) {
|
| 41 |
+
return null;
|
| 42 |
+
}
|
| 43 |
+
const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = [];
|
| 44 |
+
function resolvePlugin(name, dirname) {
|
| 45 |
+
return null;
|
| 46 |
+
}
|
| 47 |
+
function resolvePreset(name, dirname) {
|
| 48 |
+
return null;
|
| 49 |
+
}
|
| 50 |
+
function loadPlugin(name, dirname) {
|
| 51 |
+
throw new Error(`Cannot load plugin ${name} relative to ${dirname} in a browser`);
|
| 52 |
+
}
|
| 53 |
+
function loadPreset(name, dirname) {
|
| 54 |
+
throw new Error(`Cannot load preset ${name} relative to ${dirname} in a browser`);
|
| 55 |
+
}
|
| 56 |
+
0 && 0;
|
| 57 |
+
|
| 58 |
+
//# sourceMappingURL=index-browser.js.map
|
frontend/node_modules/@babel/core/lib/config/files/index-browser.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["findConfigUpwards","rootDir","findPackageData","filepath","directories","pkg","isPackage","findRelativeConfig","pkgData","envName","caller","config","ignore","findRootConfig","dirname","loadConfig","name","Error","resolveShowConfigPath","ROOT_CONFIG_FILENAMES","exports","resolvePlugin","resolvePreset","loadPlugin","loadPreset"],"sources":["../../../src/config/files/index-browser.ts"],"sourcesContent":["/* c8 ignore start */\n\nimport type { Handler } from \"gensync\";\n\nimport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types.ts\";\n\nimport type { CallerMetadata } from \"../validation/options.ts\";\n\nexport type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData };\n\nexport function findConfigUpwards(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n rootDir: string,\n): string | null {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* findPackageData(filepath: string): Handler<FilePackageData> {\n return {\n filepath,\n directories: [],\n pkg: null,\n isPackage: false,\n };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRelativeConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n pkgData: FilePackageData,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler<RelativeConfig> {\n return { config: null, ignore: null };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRootConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler<ConfigFile | null> {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* loadConfig(\n name: string,\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler<ConfigFile> {\n throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);\n}\n\n// eslint-disable-next-line require-yield\nexport function* resolveShowConfigPath(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n): Handler<string | null> {\n return null;\n}\n\nexport const ROOT_CONFIG_FILENAMES: string[] = [];\n\ntype Resolved =\n | { loader: \"require\"; filepath: string }\n | { loader: \"import\"; filepath: string };\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePlugin(name: string, dirname: string): Resolved | null {\n return null;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePreset(name: string, dirname: string): Resolved | null {\n return null;\n}\n\nexport function loadPlugin(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load plugin ${name} relative to ${dirname} in a browser`,\n );\n}\n\nexport function loadPreset(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load preset ${name} relative to ${dirname} in a browser`,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAeO,SAASA,iBAAiBA,CAE/BC,OAAe,EACA;EACf,OAAO,IAAI;AACb;AAGO,UAAUC,eAAeA,CAACC,QAAgB,EAA4B;EAC3E,OAAO;IACLA,QAAQ;IACRC,WAAW,EAAE,EAAE;IACfC,GAAG,EAAE,IAAI;IACTC,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
Object.defineProperty(exports, "ROOT_CONFIG_FILENAMES", {
|
| 7 |
+
enumerable: true,
|
| 8 |
+
get: function () {
|
| 9 |
+
return _configuration.ROOT_CONFIG_FILENAMES;
|
| 10 |
+
}
|
| 11 |
+
});
|
| 12 |
+
Object.defineProperty(exports, "findConfigUpwards", {
|
| 13 |
+
enumerable: true,
|
| 14 |
+
get: function () {
|
| 15 |
+
return _configuration.findConfigUpwards;
|
| 16 |
+
}
|
| 17 |
+
});
|
| 18 |
+
Object.defineProperty(exports, "findPackageData", {
|
| 19 |
+
enumerable: true,
|
| 20 |
+
get: function () {
|
| 21 |
+
return _package.findPackageData;
|
| 22 |
+
}
|
| 23 |
+
});
|
| 24 |
+
Object.defineProperty(exports, "findRelativeConfig", {
|
| 25 |
+
enumerable: true,
|
| 26 |
+
get: function () {
|
| 27 |
+
return _configuration.findRelativeConfig;
|
| 28 |
+
}
|
| 29 |
+
});
|
| 30 |
+
Object.defineProperty(exports, "findRootConfig", {
|
| 31 |
+
enumerable: true,
|
| 32 |
+
get: function () {
|
| 33 |
+
return _configuration.findRootConfig;
|
| 34 |
+
}
|
| 35 |
+
});
|
| 36 |
+
Object.defineProperty(exports, "loadConfig", {
|
| 37 |
+
enumerable: true,
|
| 38 |
+
get: function () {
|
| 39 |
+
return _configuration.loadConfig;
|
| 40 |
+
}
|
| 41 |
+
});
|
| 42 |
+
Object.defineProperty(exports, "loadPlugin", {
|
| 43 |
+
enumerable: true,
|
| 44 |
+
get: function () {
|
| 45 |
+
return _plugins.loadPlugin;
|
| 46 |
+
}
|
| 47 |
+
});
|
| 48 |
+
Object.defineProperty(exports, "loadPreset", {
|
| 49 |
+
enumerable: true,
|
| 50 |
+
get: function () {
|
| 51 |
+
return _plugins.loadPreset;
|
| 52 |
+
}
|
| 53 |
+
});
|
| 54 |
+
Object.defineProperty(exports, "resolvePlugin", {
|
| 55 |
+
enumerable: true,
|
| 56 |
+
get: function () {
|
| 57 |
+
return _plugins.resolvePlugin;
|
| 58 |
+
}
|
| 59 |
+
});
|
| 60 |
+
Object.defineProperty(exports, "resolvePreset", {
|
| 61 |
+
enumerable: true,
|
| 62 |
+
get: function () {
|
| 63 |
+
return _plugins.resolvePreset;
|
| 64 |
+
}
|
| 65 |
+
});
|
| 66 |
+
Object.defineProperty(exports, "resolveShowConfigPath", {
|
| 67 |
+
enumerable: true,
|
| 68 |
+
get: function () {
|
| 69 |
+
return _configuration.resolveShowConfigPath;
|
| 70 |
+
}
|
| 71 |
+
});
|
| 72 |
+
var _package = require("./package.js");
|
| 73 |
+
var _configuration = require("./configuration.js");
|
| 74 |
+
var _plugins = require("./plugins.js");
|
| 75 |
+
({});
|
| 76 |
+
0 && 0;
|
| 77 |
+
|
| 78 |
+
//# sourceMappingURL=index.js.map
|
frontend/node_modules/@babel/core/lib/config/files/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_package","require","_configuration","_plugins"],"sources":["../../../src/config/files/index.ts"],"sourcesContent":["type indexBrowserType = typeof import(\"./index-browser\");\ntype indexType = typeof import(\"./index\");\n\n// Kind of gross, but essentially asserting that the exports of this module are the same as the\n// exports of index-browser, since this file may be replaced at bundle time with index-browser.\n({}) as any as indexBrowserType as indexType;\n\nexport { findPackageData } from \"./package.ts\";\n\nexport {\n findConfigUpwards,\n findRelativeConfig,\n findRootConfig,\n loadConfig,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./configuration.ts\";\nexport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types.ts\";\nexport {\n loadPlugin,\n loadPreset,\n resolvePlugin,\n resolvePreset,\n} from \"./plugins.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAcA,IAAAE,QAAA,GAAAF,OAAA;AAlBA,CAAC,CAAC,CAAC;AAA0C","ignoreList":[]}
|
frontend/node_modules/@babel/core/lib/config/files/module-types.js
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = loadCodeDefault;
|
| 7 |
+
exports.supportsESM = void 0;
|
| 8 |
+
var _async = require("../../gensync-utils/async.js");
|
| 9 |
+
function _path() {
|
| 10 |
+
const data = require("path");
|
| 11 |
+
_path = function () {
|
| 12 |
+
return data;
|
| 13 |
+
};
|
| 14 |
+
return data;
|
| 15 |
+
}
|
| 16 |
+
function _url() {
|
| 17 |
+
const data = require("url");
|
| 18 |
+
_url = function () {
|
| 19 |
+
return data;
|
| 20 |
+
};
|
| 21 |
+
return data;
|
| 22 |
+
}
|
| 23 |
+
require("module");
|
| 24 |
+
function _semver() {
|
| 25 |
+
const data = require("semver");
|
| 26 |
+
_semver = function () {
|
| 27 |
+
return data;
|
| 28 |
+
};
|
| 29 |
+
return data;
|
| 30 |
+
}
|
| 31 |
+
function _debug() {
|
| 32 |
+
const data = require("debug");
|
| 33 |
+
_debug = function () {
|
| 34 |
+
return data;
|
| 35 |
+
};
|
| 36 |
+
return data;
|
| 37 |
+
}
|
| 38 |
+
var _rewriteStackTrace = require("../../errors/rewrite-stack-trace.js");
|
| 39 |
+
var _configError = require("../../errors/config-error.js");
|
| 40 |
+
var _transformFile = require("../../transform-file.js");
|
| 41 |
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
| 42 |
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
| 43 |
+
const debug = _debug()("babel:config:loading:files:module-types");
|
| 44 |
+
{
|
| 45 |
+
try {
|
| 46 |
+
var import_ = require("./import.cjs");
|
| 47 |
+
} catch (_unused) {}
|
| 48 |
+
}
|
| 49 |
+
const supportsESM = exports.supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2");
|
| 50 |
+
const LOADING_CJS_FILES = new Set();
|
| 51 |
+
function loadCjsDefault(filepath) {
|
| 52 |
+
if (LOADING_CJS_FILES.has(filepath)) {
|
| 53 |
+
debug("Auto-ignoring usage of config %o.", filepath);
|
| 54 |
+
return {};
|
| 55 |
+
}
|
| 56 |
+
let module;
|
| 57 |
+
try {
|
| 58 |
+
LOADING_CJS_FILES.add(filepath);
|
| 59 |
+
module = (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath);
|
| 60 |
+
} finally {
|
| 61 |
+
LOADING_CJS_FILES.delete(filepath);
|
| 62 |
+
}
|
| 63 |
+
{
|
| 64 |
+
return module != null && (module.__esModule || module[Symbol.toStringTag] === "Module") ? module.default || (arguments[1] ? module : undefined) : module;
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
const loadMjsFromPath = (0, _rewriteStackTrace.endHiddenCallStack)(function () {
|
| 68 |
+
var _loadMjsFromPath = _asyncToGenerator(function* (filepath) {
|
| 69 |
+
const url = (0, _url().pathToFileURL)(filepath).toString() + "?import";
|
| 70 |
+
{
|
| 71 |
+
if (!import_) {
|
| 72 |
+
throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath);
|
| 73 |
+
}
|
| 74 |
+
return yield import_(url);
|
| 75 |
+
}
|
| 76 |
+
});
|
| 77 |
+
function loadMjsFromPath(_x) {
|
| 78 |
+
return _loadMjsFromPath.apply(this, arguments);
|
| 79 |
+
}
|
| 80 |
+
return loadMjsFromPath;
|
| 81 |
+
}());
|
| 82 |
+
const tsNotSupportedError = ext => `\
|
| 83 |
+
You are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:
|
| 84 |
+
- Use a .cts config file
|
| 85 |
+
- Update to Node.js 23.6.0, which has native TypeScript support
|
| 86 |
+
- Install tsx to transpile ${ext} files on the fly\
|
| 87 |
+
`;
|
| 88 |
+
const SUPPORTED_EXTENSIONS = {
|
| 89 |
+
".js": "unknown",
|
| 90 |
+
".mjs": "esm",
|
| 91 |
+
".cjs": "cjs",
|
| 92 |
+
".ts": "unknown",
|
| 93 |
+
".mts": "esm",
|
| 94 |
+
".cts": "cjs"
|
| 95 |
+
};
|
| 96 |
+
const asyncModules = new Set();
|
| 97 |
+
function* loadCodeDefault(filepath, loader, esmError, tlaError) {
|
| 98 |
+
let async;
|
| 99 |
+
const ext = _path().extname(filepath);
|
| 100 |
+
const isTS = ext === ".ts" || ext === ".cts" || ext === ".mts";
|
| 101 |
+
const type = SUPPORTED_EXTENSIONS[hasOwnProperty.call(SUPPORTED_EXTENSIONS, ext) ? ext : ".js"];
|
| 102 |
+
const pattern = `${loader} ${type}`;
|
| 103 |
+
switch (pattern) {
|
| 104 |
+
case "require cjs":
|
| 105 |
+
case "auto cjs":
|
| 106 |
+
if (isTS) {
|
| 107 |
+
return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
|
| 108 |
+
} else {
|
| 109 |
+
return loadCjsDefault(filepath, arguments[2]);
|
| 110 |
+
}
|
| 111 |
+
case "auto unknown":
|
| 112 |
+
case "require unknown":
|
| 113 |
+
case "require esm":
|
| 114 |
+
try {
|
| 115 |
+
if (isTS) {
|
| 116 |
+
return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
|
| 117 |
+
} else {
|
| 118 |
+
return loadCjsDefault(filepath, arguments[2]);
|
| 119 |
+
}
|
| 120 |
+
} catch (e) {
|
| 121 |
+
if (e.code === "ERR_REQUIRE_ASYNC_MODULE" || e.code === "ERR_REQUIRE_CYCLE_MODULE" && asyncModules.has(filepath)) {
|
| 122 |
+
asyncModules.add(filepath);
|
| 123 |
+
if (!(async != null ? async : async = yield* (0, _async.isAsync)())) {
|
| 124 |
+
throw new _configError.default(tlaError, filepath);
|
| 125 |
+
}
|
| 126 |
+
} else if (e.code === "ERR_REQUIRE_ESM" || type === "esm") {} else {
|
| 127 |
+
throw e;
|
| 128 |
+
}
|
| 129 |
+
}
|
| 130 |
+
case "auto esm":
|
| 131 |
+
if (async != null ? async : async = yield* (0, _async.isAsync)()) {
|
| 132 |
+
const promise = isTS ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath)) : loadMjsFromPath(filepath);
|
| 133 |
+
return (yield* (0, _async.waitFor)(promise)).default;
|
| 134 |
+
}
|
| 135 |
+
if (isTS) {
|
| 136 |
+
throw new _configError.default(tsNotSupportedError(ext), filepath);
|
| 137 |
+
} else {
|
| 138 |
+
throw new _configError.default(esmError, filepath);
|
| 139 |
+
}
|
| 140 |
+
default:
|
| 141 |
+
throw new Error("Internal Babel error: unreachable code.");
|
| 142 |
+
}
|
| 143 |
+
}
|
| 144 |
+
function ensureTsSupport(filepath, ext, callback) {
|
| 145 |
+
if (process.features.typescript || require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]) {
|
| 146 |
+
return callback();
|
| 147 |
+
}
|
| 148 |
+
if (ext !== ".cts") {
|
| 149 |
+
throw new _configError.default(tsNotSupportedError(ext), filepath);
|
| 150 |
+
}
|
| 151 |
+
const opts = {
|
| 152 |
+
babelrc: false,
|
| 153 |
+
configFile: false,
|
| 154 |
+
sourceType: "unambiguous",
|
| 155 |
+
sourceMaps: "inline",
|
| 156 |
+
sourceFileName: _path().basename(filepath),
|
| 157 |
+
presets: [[getTSPreset(filepath), Object.assign({
|
| 158 |
+
onlyRemoveTypeImports: true,
|
| 159 |
+
optimizeConstEnums: true
|
| 160 |
+
}, {
|
| 161 |
+
allowDeclareFields: true
|
| 162 |
+
})]]
|
| 163 |
+
};
|
| 164 |
+
let handler = function (m, filename) {
|
| 165 |
+
if (handler && filename.endsWith(".cts")) {
|
| 166 |
+
try {
|
| 167 |
+
return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, {
|
| 168 |
+
filename
|
| 169 |
+
})).code, filename);
|
| 170 |
+
} catch (error) {
|
| 171 |
+
const packageJson = require("@babel/preset-typescript/package.json");
|
| 172 |
+
if (_semver().lt(packageJson.version, "7.21.4")) {
|
| 173 |
+
console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.");
|
| 174 |
+
}
|
| 175 |
+
throw error;
|
| 176 |
+
}
|
| 177 |
+
}
|
| 178 |
+
return require.extensions[".js"](m, filename);
|
| 179 |
+
};
|
| 180 |
+
require.extensions[ext] = handler;
|
| 181 |
+
try {
|
| 182 |
+
return callback();
|
| 183 |
+
} finally {
|
| 184 |
+
if (require.extensions[ext] === handler) delete require.extensions[ext];
|
| 185 |
+
handler = undefined;
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
function getTSPreset(filepath) {
|
| 189 |
+
try {
|
| 190 |
+
return require("@babel/preset-typescript");
|
| 191 |
+
} catch (error) {
|
| 192 |
+
if (error.code !== "MODULE_NOT_FOUND") throw error;
|
| 193 |
+
let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";
|
| 194 |
+
{
|
| 195 |
+
if (process.versions.pnp) {
|
| 196 |
+
message += `
|
| 197 |
+
If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
|
| 198 |
+
|
| 199 |
+
packageExtensions:
|
| 200 |
+
\t"@babel/core@*":
|
| 201 |
+
\t\tpeerDependencies:
|
| 202 |
+
\t\t\t"@babel/preset-typescript": "*"
|
| 203 |
+
`;
|
| 204 |
+
}
|
| 205 |
+
}
|
| 206 |
+
throw new _configError.default(message, filepath);
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
0 && 0;
|
| 210 |
+
|
| 211 |
+
//# sourceMappingURL=module-types.js.map
|
frontend/node_modules/@babel/core/lib/config/files/module-types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_async","require","_path","data","_url","_semver","_debug","_rewriteStackTrace","_configError","_transformFile","asyncGeneratorStep","n","t","e","r","o","a","c","i","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","debug","buildDebug","import_","_unused","supportsESM","exports","semver","satisfies","process","versions","node","LOADING_CJS_FILES","Set","loadCjsDefault","filepath","has","module","add","endHiddenCallStack","delete","__esModule","Symbol","toStringTag","default","undefined","loadMjsFromPath","_loadMjsFromPath","url","pathToFileURL","toString","ConfigError","_x","tsNotSupportedError","ext","SUPPORTED_EXTENSIONS","asyncModules","loadCodeDefault","loader","esmError","tlaError","async","path","extname","isTS","type","hasOwnProperty","call","pattern","ensureTsSupport","code","isAsync","promise","waitFor","Error","callback","features","typescript","extensions","opts","babelrc","configFile","sourceType","sourceMaps","sourceFileName","basename","presets","getTSPreset","Object","assign","onlyRemoveTypeImports","optimizeConstEnums","allowDeclareFields","handler","m","filename","endsWith","_compile","transformFileSync","error","packageJson","lt","version","console","message","pnp"],"sources":["../../../src/config/files/module-types.ts"],"sourcesContent":["import { isAsync, waitFor } from \"../../gensync-utils/async.ts\";\nimport type { Handler } from \"gensync\";\nimport path from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\nimport { createRequire } from \"node:module\";\nimport semver from \"semver\";\nimport buildDebug from \"debug\";\n\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport type { InputOptions } from \"../index.ts\";\nimport { transformFileSync } from \"../../transform-file.ts\";\n\nconst debug = buildDebug(\"babel:config:loading:files:module-types\");\n\nconst require = createRequire(import.meta.url);\n\nif (!process.env.BABEL_8_BREAKING) {\n try {\n // Old Node.js versions don't support import() syntax.\n // eslint-disable-next-line no-var\n var import_:\n | ((specifier: string | URL) => any)\n | undefined = require(\"./import.cjs\");\n } catch {}\n}\n\nexport const supportsESM = semver.satisfies(\n process.versions.node,\n // older versions, starting from 10, support the dynamic\n // import syntax but always return a rejected promise.\n \"^12.17 || >=13.2\",\n);\n\nconst LOADING_CJS_FILES = new Set();\n\nfunction loadCjsDefault(filepath: string) {\n // The `require()` call below can make this code reentrant if a require hook\n // like @babel/register has been loaded into the system. That would cause\n // Babel to attempt to compile the `.babelrc.js` file as it loads below. To\n // cover this case, we auto-ignore re-entrant config processing. ESM loaders\n // do not have this problem, because loaders do not apply to themselves.\n if (LOADING_CJS_FILES.has(filepath)) {\n debug(\"Auto-ignoring usage of config %o.\", filepath);\n return {};\n }\n\n let module;\n try {\n LOADING_CJS_FILES.add(filepath);\n module = endHiddenCallStack(require)(filepath);\n } finally {\n LOADING_CJS_FILES.delete(filepath);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default\n : module;\n } else {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default ||\n /* fallbackToTranspiledModule */ (arguments[1] ? module : undefined)\n : module;\n }\n}\n\nconst loadMjsFromPath = endHiddenCallStack(async function loadMjsFromPath(\n filepath: string,\n) {\n // Add ?import as a workaround for https://github.com/nodejs/node/issues/55500\n const url = pathToFileURL(filepath).toString() + \"?import\";\n\n if (process.env.BABEL_8_BREAKING) {\n return await import(url);\n } else {\n if (!import_) {\n throw new ConfigError(\n \"Internal error: Native ECMAScript modules aren't supported by this platform.\\n\",\n filepath,\n );\n }\n\n return await import_(url);\n }\n});\n\nconst tsNotSupportedError = (ext: string) => `\\\nYou are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:\n- Use a .cts config file\n- Update to Node.js 23.6.0, which has native TypeScript support\n- Install tsx to transpile ${ext} files on the fly\\\n`;\n\nconst SUPPORTED_EXTENSIONS = {\n \".js\": \"unknown\",\n \".mjs\": \"esm\",\n \".cjs\": \"cjs\",\n \".ts\": \"unknown\",\n \".mts\": \"esm\",\n \".cts\": \"cjs\",\n} as const;\n\nconst asyncModules = new Set();\n\nexport default function* loadCodeDefault(\n filepath: string,\n loader: \"require\" | \"auto\",\n esmError: string,\n tlaError: string,\n): Handler<unknown> {\n let async;\n\n const ext = path.extname(filepath);\n const isTS = ext === \".ts\" || ext === \".cts\" || ext === \".mts\";\n\n const type =\n SUPPORTED_EXTENSIONS[\n Object.hasOwn(SUPPORTED_EXTENSIONS, ext)\n ? (ext as keyof typeof SUPPORTED_EXTENSIONS)\n : (\".js\" as const)\n ];\n\n const pattern = `${loader} ${type}` as const;\n switch (pattern) {\n case \"require cjs\":\n case \"auto cjs\":\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n case \"auto unknown\":\n case \"require unknown\":\n case \"require esm\":\n try {\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n } catch (e) {\n if (\n e.code === \"ERR_REQUIRE_ASYNC_MODULE\" ||\n // Node.js 13.0.0 throws ERR_REQUIRE_CYCLE_MODULE instead of\n // ERR_REQUIRE_ASYNC_MODULE when requiring a module a second time\n // https://github.com/nodejs/node/issues/55516\n // This `asyncModules` won't catch all of such cases, but it will\n // at least catch those caused by Babel trying to load a module twice.\n (e.code === \"ERR_REQUIRE_CYCLE_MODULE\" && asyncModules.has(filepath))\n ) {\n asyncModules.add(filepath);\n if (!(async ??= yield* isAsync())) {\n throw new ConfigError(tlaError, filepath);\n }\n // fall through: require() failed due to TLA\n } else if (\n e.code === \"ERR_REQUIRE_ESM\" ||\n (!process.env.BABEL_8_BREAKING && type === \"esm\")\n ) {\n // fall through: require() failed due to ESM\n } else {\n throw e;\n }\n }\n // fall through: require() failed due to ESM or TLA, try import()\n case \"auto esm\":\n if ((async ??= yield* isAsync())) {\n const promise = isTS\n ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath))\n : loadMjsFromPath(filepath);\n\n return (yield* waitFor(promise)).default;\n }\n if (isTS) {\n throw new ConfigError(tsNotSupportedError(ext), filepath);\n } else {\n throw new ConfigError(esmError, filepath);\n }\n default:\n throw new Error(\"Internal Babel error: unreachable code.\");\n }\n}\n\nfunction ensureTsSupport<T>(\n filepath: string,\n ext: string,\n callback: () => T,\n): T {\n if (\n process.features.typescript ||\n require.extensions[\".ts\"] ||\n require.extensions[\".cts\"] ||\n require.extensions[\".mts\"]\n ) {\n return callback();\n }\n\n if (ext !== \".cts\") {\n throw new ConfigError(tsNotSupportedError(ext), filepath);\n }\n\n const opts: InputOptions = {\n babelrc: false,\n configFile: false,\n sourceType: \"unambiguous\",\n sourceMaps: \"inline\",\n sourceFileName: path.basename(filepath),\n presets: [\n [\n getTSPreset(filepath),\n {\n onlyRemoveTypeImports: true,\n optimizeConstEnums: true,\n ...(process.env.BABEL_8_BREAKING ? {} : { allowDeclareFields: true }),\n },\n ],\n ],\n };\n\n let handler: NodeJS.RequireExtensions[\"\"] = function (m, filename) {\n // If we want to support `.ts`, `.d.ts` must be handled specially.\n if (handler && filename.endsWith(\".cts\")) {\n try {\n // @ts-expect-error Undocumented API\n return m._compile(\n transformFileSync(filename, {\n ...opts,\n filename,\n }).code,\n filename,\n );\n } catch (error) {\n // TODO(Babel 8): Add this as an optional peer dependency\n // eslint-disable-next-line import/no-extraneous-dependencies\n const packageJson = require(\"@babel/preset-typescript/package.json\");\n if (semver.lt(packageJson.version, \"7.21.4\")) {\n console.error(\n \"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.\",\n );\n }\n throw error;\n }\n }\n return require.extensions[\".js\"](m, filename);\n };\n require.extensions[ext] = handler;\n\n try {\n return callback();\n } finally {\n if (require.extensions[ext] === handler) delete require.extensions[ext];\n handler = undefined;\n }\n}\n\nfunction getTSPreset(filepath: string) {\n try {\n // eslint-disable-next-line import/no-extraneous-dependencies\n return require(\"@babel/preset-typescript\");\n } catch (error) {\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n let message =\n \"You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!\";\n\n if (!process.env.BABEL_8_BREAKING) {\n if (process.versions.pnp) {\n // Using Yarn PnP, which doesn't allow requiring packages that are not\n // explicitly specified as dependencies.\n message += `\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npack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AEF,OAAO3C,OAAO,CAAC,0BAA0B,CAAC;EAC5C,CAAC,CAAC,OAAO2G,KAAK,EAAE;IACd,IAAIA,KAAK,CAAC7B,IAAI,KAAK,kBAAkB,EAAE,MAAM6B,KAAK;IAElD,IAAIK,OAAO,GACT,yIAAyI;IAExG;MACjC,IAAI3E,OAAO,CAACC,QAAQ,CAAC2E,GAAG,EAAE;QAGxBD,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;MACK;IACF;IAEA,MAAM,IAAIrD,oBAAW,CAACqD,OAAO,EAAErE,QAAQ,CAAC;EAC1C;AACF;AAAC","ignoreList":[]}
|
frontend/node_modules/@babel/core/lib/config/files/package.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.findPackageData = findPackageData;
|
| 7 |
+
function _path() {
|
| 8 |
+
const data = require("path");
|
| 9 |
+
_path = function () {
|
| 10 |
+
return data;
|
| 11 |
+
};
|
| 12 |
+
return data;
|
| 13 |
+
}
|
| 14 |
+
var _utils = require("./utils.js");
|
| 15 |
+
var _configError = require("../../errors/config-error.js");
|
| 16 |
+
const PACKAGE_FILENAME = "package.json";
|
| 17 |
+
const readConfigPackage = (0, _utils.makeStaticFileCache)((filepath, content) => {
|
| 18 |
+
let options;
|
| 19 |
+
try {
|
| 20 |
+
options = JSON.parse(content);
|
| 21 |
+
} catch (err) {
|
| 22 |
+
throw new _configError.default(`Error while parsing JSON - ${err.message}`, filepath);
|
| 23 |
+
}
|
| 24 |
+
if (!options) throw new Error(`${filepath}: No config detected`);
|
| 25 |
+
if (typeof options !== "object") {
|
| 26 |
+
throw new _configError.default(`Config returned typeof ${typeof options}`, filepath);
|
| 27 |
+
}
|
| 28 |
+
if (Array.isArray(options)) {
|
| 29 |
+
throw new _configError.default(`Expected config object but found array`, filepath);
|
| 30 |
+
}
|
| 31 |
+
return {
|
| 32 |
+
filepath,
|
| 33 |
+
dirname: _path().dirname(filepath),
|
| 34 |
+
options
|
| 35 |
+
};
|
| 36 |
+
});
|
| 37 |
+
function* findPackageData(filepath) {
|
| 38 |
+
let pkg = null;
|
| 39 |
+
const directories = [];
|
| 40 |
+
let isPackage = true;
|
| 41 |
+
let dirname = _path().dirname(filepath);
|
| 42 |
+
while (!pkg && _path().basename(dirname) !== "node_modules") {
|
| 43 |
+
directories.push(dirname);
|
| 44 |
+
pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME));
|
| 45 |
+
const nextLoc = _path().dirname(dirname);
|
| 46 |
+
if (dirname === nextLoc) {
|
| 47 |
+
isPackage = false;
|
| 48 |
+
break;
|
| 49 |
+
}
|
| 50 |
+
dirname = nextLoc;
|
| 51 |
+
}
|
| 52 |
+
return {
|
| 53 |
+
filepath,
|
| 54 |
+
directories,
|
| 55 |
+
pkg,
|
| 56 |
+
isPackage
|
| 57 |
+
};
|
| 58 |
+
}
|
| 59 |
+
0 && 0;
|
| 60 |
+
|
| 61 |
+
//# sourceMappingURL=package.js.map
|
frontend/node_modules/@babel/core/lib/config/files/package.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_path","data","require","_utils","_configError","PACKAGE_FILENAME","readConfigPackage","makeStaticFileCache","filepath","content","options","JSON","parse","err","ConfigError","message","Error","Array","isArray","dirname","path","findPackageData","pkg","directories","isPackage","basename","push","join","nextLoc"],"sources":["../../../src/config/files/package.ts"],"sourcesContent":["import path from \"node:path\";\nimport type { Handler } from \"gensync\";\nimport { makeStaticFileCache } from \"./utils.ts\";\n\nimport type { ConfigFile, FilePackageData } from \"./types.ts\";\n\nimport ConfigError from \"../../errors/config-error.ts\";\n\nconst PACKAGE_FILENAME = \"package.json\";\n\nconst readConfigPackage = makeStaticFileCache(\n (filepath, content): ConfigFile => {\n let options;\n try {\n options = JSON.parse(content) as unknown;\n } catch (err) {\n throw new ConfigError(\n `Error while parsing JSON - ${err.message}`,\n filepath,\n );\n }\n\n if (!options) throw new Error(`${filepath}: No config detected`);\n\n if (typeof options !== \"object\") {\n throw new ConfigError(\n `Config returned typeof ${typeof options}`,\n filepath,\n );\n }\n if (Array.isArray(options)) {\n throw new ConfigError(`Expected config object but found array`, filepath);\n }\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n },\n);\n\n/**\n * Find metadata about the package that this file is inside of. Resolution\n * of Babel's config requires general package information to decide when to\n * search for .babelrc files\n */\nexport function* findPackageData(filepath: string): Handler<FilePackageData> {\n let pkg = null;\n const directories = [];\n let isPackage = true;\n\n let dirname = path.dirname(filepath);\n while (!pkg && path.basename(dirname) !== \"node_modules\") {\n directories.push(dirname);\n\n pkg = yield* readConfigPackage(path.join(dirname, PACKAGE_FILENAME));\n\n const nextLoc = path.dirname(dirname);\n if (dirname === nextLoc) {\n isPackage = false;\n break;\n }\n dirname = nextLoc;\n }\n\n return { filepath, directories, pkg, isPackage };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;A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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.loadPlugin = loadPlugin;
|
| 7 |
+
exports.loadPreset = loadPreset;
|
| 8 |
+
exports.resolvePreset = exports.resolvePlugin = void 0;
|
| 9 |
+
function _debug() {
|
| 10 |
+
const data = require("debug");
|
| 11 |
+
_debug = function () {
|
| 12 |
+
return data;
|
| 13 |
+
};
|
| 14 |
+
return data;
|
| 15 |
+
}
|
| 16 |
+
function _path() {
|
| 17 |
+
const data = require("path");
|
| 18 |
+
_path = function () {
|
| 19 |
+
return data;
|
| 20 |
+
};
|
| 21 |
+
return data;
|
| 22 |
+
}
|
| 23 |
+
var _async = require("../../gensync-utils/async.js");
|
| 24 |
+
var _moduleTypes = require("./module-types.js");
|
| 25 |
+
function _url() {
|
| 26 |
+
const data = require("url");
|
| 27 |
+
_url = function () {
|
| 28 |
+
return data;
|
| 29 |
+
};
|
| 30 |
+
return data;
|
| 31 |
+
}
|
| 32 |
+
var _importMetaResolve = require("../../vendor/import-meta-resolve.js");
|
| 33 |
+
require("module");
|
| 34 |
+
function _fs() {
|
| 35 |
+
const data = require("fs");
|
| 36 |
+
_fs = function () {
|
| 37 |
+
return data;
|
| 38 |
+
};
|
| 39 |
+
return data;
|
| 40 |
+
}
|
| 41 |
+
const debug = _debug()("babel:config:loading:files:plugins");
|
| 42 |
+
const EXACT_RE = /^module:/;
|
| 43 |
+
const BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/;
|
| 44 |
+
const BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/;
|
| 45 |
+
const BABEL_PLUGIN_ORG_RE = /^(@babel\/)(?!plugin-|[^/]+\/)/;
|
| 46 |
+
const BABEL_PRESET_ORG_RE = /^(@babel\/)(?!preset-|[^/]+\/)/;
|
| 47 |
+
const OTHER_PLUGIN_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/;
|
| 48 |
+
const OTHER_PRESET_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/;
|
| 49 |
+
const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;
|
| 50 |
+
const resolvePlugin = exports.resolvePlugin = resolveStandardizedName.bind(null, "plugin");
|
| 51 |
+
const resolvePreset = exports.resolvePreset = resolveStandardizedName.bind(null, "preset");
|
| 52 |
+
function* loadPlugin(name, dirname) {
|
| 53 |
+
const {
|
| 54 |
+
filepath,
|
| 55 |
+
loader
|
| 56 |
+
} = resolvePlugin(name, dirname, yield* (0, _async.isAsync)());
|
| 57 |
+
const value = yield* requireModule("plugin", loader, filepath);
|
| 58 |
+
debug("Loaded plugin %o from %o.", name, dirname);
|
| 59 |
+
return {
|
| 60 |
+
filepath,
|
| 61 |
+
value
|
| 62 |
+
};
|
| 63 |
+
}
|
| 64 |
+
function* loadPreset(name, dirname) {
|
| 65 |
+
const {
|
| 66 |
+
filepath,
|
| 67 |
+
loader
|
| 68 |
+
} = resolvePreset(name, dirname, yield* (0, _async.isAsync)());
|
| 69 |
+
const value = yield* requireModule("preset", loader, filepath);
|
| 70 |
+
debug("Loaded preset %o from %o.", name, dirname);
|
| 71 |
+
return {
|
| 72 |
+
filepath,
|
| 73 |
+
value
|
| 74 |
+
};
|
| 75 |
+
}
|
| 76 |
+
function standardizeName(type, name) {
|
| 77 |
+
if (_path().isAbsolute(name)) return name;
|
| 78 |
+
const isPreset = type === "preset";
|
| 79 |
+
return name.replace(isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE, `babel-${type}-`).replace(isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE, `$1${type}-`).replace(isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE, `$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`).replace(EXACT_RE, "");
|
| 80 |
+
}
|
| 81 |
+
function* resolveAlternativesHelper(type, name) {
|
| 82 |
+
const standardizedName = standardizeName(type, name);
|
| 83 |
+
const {
|
| 84 |
+
error,
|
| 85 |
+
value
|
| 86 |
+
} = yield standardizedName;
|
| 87 |
+
if (!error) return value;
|
| 88 |
+
if (error.code !== "MODULE_NOT_FOUND") throw error;
|
| 89 |
+
if (standardizedName !== name && !(yield name).error) {
|
| 90 |
+
error.message += `\n- If you want to resolve "${name}", use "module:${name}"`;
|
| 91 |
+
}
|
| 92 |
+
if (!(yield standardizeName(type, "@babel/" + name)).error) {
|
| 93 |
+
error.message += `\n- Did you mean "@babel/${name}"?`;
|
| 94 |
+
}
|
| 95 |
+
const oppositeType = type === "preset" ? "plugin" : "preset";
|
| 96 |
+
if (!(yield standardizeName(oppositeType, name)).error) {
|
| 97 |
+
error.message += `\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;
|
| 98 |
+
}
|
| 99 |
+
if (type === "plugin") {
|
| 100 |
+
const transformName = standardizedName.replace("-proposal-", "-transform-");
|
| 101 |
+
if (transformName !== standardizedName && !(yield transformName).error) {
|
| 102 |
+
error.message += `\n- Did you mean "${transformName}"?`;
|
| 103 |
+
}
|
| 104 |
+
}
|
| 105 |
+
error.message += `\n
|
| 106 |
+
Make sure that all the Babel plugins and presets you are using
|
| 107 |
+
are defined as dependencies or devDependencies in your package.json
|
| 108 |
+
file. It's possible that the missing plugin is loaded by a preset
|
| 109 |
+
you are using that forgot to add the plugin to its dependencies: you
|
| 110 |
+
can workaround this problem by explicitly adding the missing package
|
| 111 |
+
to your top-level package.json.
|
| 112 |
+
`;
|
| 113 |
+
throw error;
|
| 114 |
+
}
|
| 115 |
+
function tryRequireResolve(id, dirname) {
|
| 116 |
+
try {
|
| 117 |
+
if (dirname) {
|
| 118 |
+
return {
|
| 119 |
+
error: null,
|
| 120 |
+
value: (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, {
|
| 121 |
+
paths: [b]
|
| 122 |
+
}, M = require("module")) => {
|
| 123 |
+
let f = M._findPath(r, M._nodeModulePaths(b).concat(b));
|
| 124 |
+
if (f) return f;
|
| 125 |
+
f = new Error(`Cannot resolve module '${r}'`);
|
| 126 |
+
f.code = "MODULE_NOT_FOUND";
|
| 127 |
+
throw f;
|
| 128 |
+
})(id, {
|
| 129 |
+
paths: [dirname]
|
| 130 |
+
})
|
| 131 |
+
};
|
| 132 |
+
} else {
|
| 133 |
+
return {
|
| 134 |
+
error: null,
|
| 135 |
+
value: require.resolve(id)
|
| 136 |
+
};
|
| 137 |
+
}
|
| 138 |
+
} catch (error) {
|
| 139 |
+
return {
|
| 140 |
+
error,
|
| 141 |
+
value: null
|
| 142 |
+
};
|
| 143 |
+
}
|
| 144 |
+
}
|
| 145 |
+
function tryImportMetaResolve(id, options) {
|
| 146 |
+
try {
|
| 147 |
+
return {
|
| 148 |
+
error: null,
|
| 149 |
+
value: (0, _importMetaResolve.resolve)(id, options)
|
| 150 |
+
};
|
| 151 |
+
} catch (error) {
|
| 152 |
+
return {
|
| 153 |
+
error,
|
| 154 |
+
value: null
|
| 155 |
+
};
|
| 156 |
+
}
|
| 157 |
+
}
|
| 158 |
+
function resolveStandardizedNameForRequire(type, name, dirname) {
|
| 159 |
+
const it = resolveAlternativesHelper(type, name);
|
| 160 |
+
let res = it.next();
|
| 161 |
+
while (!res.done) {
|
| 162 |
+
res = it.next(tryRequireResolve(res.value, dirname));
|
| 163 |
+
}
|
| 164 |
+
return {
|
| 165 |
+
loader: "require",
|
| 166 |
+
filepath: res.value
|
| 167 |
+
};
|
| 168 |
+
}
|
| 169 |
+
function resolveStandardizedNameForImport(type, name, dirname) {
|
| 170 |
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href;
|
| 171 |
+
const it = resolveAlternativesHelper(type, name);
|
| 172 |
+
let res = it.next();
|
| 173 |
+
while (!res.done) {
|
| 174 |
+
res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
| 175 |
+
}
|
| 176 |
+
return {
|
| 177 |
+
loader: "auto",
|
| 178 |
+
filepath: (0, _url().fileURLToPath)(res.value)
|
| 179 |
+
};
|
| 180 |
+
}
|
| 181 |
+
function resolveStandardizedName(type, name, dirname, allowAsync) {
|
| 182 |
+
if (!_moduleTypes.supportsESM || !allowAsync) {
|
| 183 |
+
return resolveStandardizedNameForRequire(type, name, dirname);
|
| 184 |
+
}
|
| 185 |
+
try {
|
| 186 |
+
const resolved = resolveStandardizedNameForImport(type, name, dirname);
|
| 187 |
+
if (!(0, _fs().existsSync)(resolved.filepath)) {
|
| 188 |
+
throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname}.`), {
|
| 189 |
+
type: "MODULE_NOT_FOUND"
|
| 190 |
+
});
|
| 191 |
+
}
|
| 192 |
+
return resolved;
|
| 193 |
+
} catch (e) {
|
| 194 |
+
try {
|
| 195 |
+
return resolveStandardizedNameForRequire(type, name, dirname);
|
| 196 |
+
} catch (e2) {
|
| 197 |
+
if (e.type === "MODULE_NOT_FOUND") throw e;
|
| 198 |
+
if (e2.type === "MODULE_NOT_FOUND") throw e2;
|
| 199 |
+
throw e;
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
{
|
| 204 |
+
var LOADING_MODULES = new Set();
|
| 205 |
+
}
|
| 206 |
+
function* requireModule(type, loader, name) {
|
| 207 |
+
{
|
| 208 |
+
if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) {
|
| 209 |
+
throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.');
|
| 210 |
+
}
|
| 211 |
+
}
|
| 212 |
+
try {
|
| 213 |
+
{
|
| 214 |
+
LOADING_MODULES.add(name);
|
| 215 |
+
}
|
| 216 |
+
{
|
| 217 |
+
return yield* (0, _moduleTypes.default)(name, loader, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", `You appear to be using a ${type} that contains top-level await, ` + "which is only supported when running Babel asynchronously.", true);
|
| 218 |
+
}
|
| 219 |
+
} catch (err) {
|
| 220 |
+
err.message = `[BABEL]: ${err.message} (While processing: ${name})`;
|
| 221 |
+
throw err;
|
| 222 |
+
} finally {
|
| 223 |
+
{
|
| 224 |
+
LOADING_MODULES.delete(name);
|
| 225 |
+
}
|
| 226 |
+
}
|
| 227 |
+
}
|
| 228 |
+
0 && 0;
|
| 229 |
+
|
| 230 |
+
//# sourceMappingURL=plugins.js.map
|
frontend/node_modules/@babel/core/lib/config/files/plugins.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","loader","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","allowAsync","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"node:path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"node:module\";\nimport { existsSync } from \"node:fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", loader, filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", loader, filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result<T> = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator<string, string, Result<string>> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- Did you mean \"@babel/${name}\"?`;\n }\n\n const oppositeType = type === \"preset\" ? \"plugin\" : \"preset\";\n if (!(yield standardizeName(oppositeType, name)).error) {\n error.message += `\\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;\n }\n\n if (type === \"plugin\") {\n const transformName = standardizedName.replace(\"-proposal-\", \"-transform-\");\n if (transformName !== standardizedName && !(yield transformName).error) {\n error.message += `\\n- Did you mean \"${transformName}\"?`;\n }\n }\n\n error.message += `\\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;\n\n throw error;\n}\n\nfunction tryRequireResolve(\n id: string,\n dirname: string | undefined,\n): Result<string> {\n try {\n if (dirname) {\n return { error: null, value: require.resolve(id, { paths: [dirname] }) };\n } else {\n return { error: null, value: require.resolve(id) };\n }\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction tryImportMetaResolve(\n id: Parameters<typeof importMetaResolve>[0],\n options: Parameters<typeof importMetaResolve>[1],\n): Result<string> {\n try {\n return { error: null, value: importMetaResolve(id, options) };\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction resolveStandardizedNameForRequire(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryRequireResolve(res.value, dirname));\n }\n return { loader: \"require\" as const, filepath: res.value };\n}\nfunction resolveStandardizedNameForImport(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const parentUrl = pathToFileURL(\n path.join(dirname, \"./babel-virtual-resolve-base.js\"),\n ).href;\n\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryImportMetaResolve(res.value, parentUrl));\n }\n return { loader: \"auto\" as const, filepath: fileURLToPath(res.value) };\n}\n\nfunction resolveStandardizedName(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n allowAsync: boolean,\n) {\n if (!supportsESM || !allowAsync) {\n return resolveStandardizedNameForRequire(type, name, dirname);\n }\n\n try {\n const resolved = resolveStandardizedNameForImport(type, name, dirname);\n // import-meta-resolve 4.0 does not throw if the module is not found.\n if (!existsSync(resolved.filepath)) {\n throw Object.assign(\n new Error(`Could not resolve \"${name}\" in file ${dirname}.`),\n { type: \"MODULE_NOT_FOUND\" },\n );\n }\n return resolved;\n } catch (e) {\n try {\n return resolveStandardizedNameForRequire(type, name, dirname);\n } catch (e2) {\n if (e.type === \"MODULE_NOT_FOUND\") throw e;\n if (e2.type === \"MODULE_NOT_FOUND\") throw e2;\n throw e;\n }\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var LOADING_MODULES = new Set();\n}\nfunction* requireModule(\n type: string,\n loader: \"require\" | \"auto\",\n name: string,\n): Handler<unknown> {\n if (!process.env.BABEL_8_BREAKING) {\n if (!(yield* isAsync()) && LOADING_MODULES.has(name)) {\n throw new Error(\n `Reentrant ${type} detected trying to load \"${name}\". This module is not ignored ` +\n \"and is trying to load itself while compiling itself, leading to a dependency cycle. \" +\n 'We recommend adding it to your \"ignore\" list in your babelrc, or to a .babelignore.',\n );\n }\n }\n\n try {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.add(name);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n );\n } else {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n // For backward compatibility, we need to support malformed presets\n // defined as separate named exports rather than a single default\n // export.\n // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js\n // @ts-ignore(Babel 7 vs Babel 8) This param has been removed\n true,\n );\n }\n } catch (err) {\n err.message = `[BABEL]: ${err.message} (While processing: ${name})`;\n throw err;\n } finally {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.delete(name);\n }\n }\n}\n"],"mappings":";;;;;;;;AAIA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;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AC,OAAOyD,GAAG,EAAE;IACZA,GAAG,CAAChD,OAAO,GAAG,YAAYgD,GAAG,CAAChD,OAAO,uBAAuBlB,IAAI,GAAG;IACnE,MAAMkE,GAAG;EACX,CAAC,SAAS;IAC2B;MACjCL,eAAe,CAACM,MAAM,CAACnE,IAAI,CAAC;IAC9B;EACF;AACF;AAAC","ignoreList":[]}
|
frontend/node_modules/@babel/core/lib/config/files/types.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
0 && 0;
|
| 4 |
+
|
| 5 |
+
//# sourceMappingURL=types.js.map
|
frontend/node_modules/@babel/core/lib/config/files/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":[],"sources":["../../../src/config/files/types.ts"],"sourcesContent":["import type { InputOptions } from \"../index.ts\";\n\nexport type ConfigFile = {\n filepath: string;\n dirname: string;\n options: InputOptions & { babel?: unknown };\n};\n\nexport type IgnoreFile = {\n filepath: string;\n dirname: string;\n ignore: Array<RegExp>;\n};\n\nexport type RelativeConfig = {\n // The actual config, either from package.json#babel, .babelrc, or\n // .babelrc.js, if there was one.\n config: ConfigFile | null;\n // The .babelignore, if there was one.\n ignore: IgnoreFile | null;\n};\n\nexport type FilePackageData = {\n // The file in the package.\n filepath: string;\n // Any ancestor directories of the file that are within the package.\n directories: Array<string>;\n // The contents of the package.json. May not be found if the package just\n // terminated at a node_modules folder without finding one.\n pkg: ConfigFile | null;\n // True if a package.json or node_modules folder was found while traversing\n // the directory structure.\n isPackage: boolean;\n};\n"],"mappings":"","ignoreList":[]}
|
frontend/node_modules/@babel/core/lib/config/files/utils.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.makeStaticFileCache = makeStaticFileCache;
|
| 7 |
+
var _caching = require("../caching.js");
|
| 8 |
+
var fs = require("../../gensync-utils/fs.js");
|
| 9 |
+
function _fs2() {
|
| 10 |
+
const data = require("fs");
|
| 11 |
+
_fs2 = function () {
|
| 12 |
+
return data;
|
| 13 |
+
};
|
| 14 |
+
return data;
|
| 15 |
+
}
|
| 16 |
+
function makeStaticFileCache(fn) {
|
| 17 |
+
return (0, _caching.makeStrongCache)(function* (filepath, cache) {
|
| 18 |
+
const cached = cache.invalidate(() => fileMtime(filepath));
|
| 19 |
+
if (cached === null) {
|
| 20 |
+
return null;
|
| 21 |
+
}
|
| 22 |
+
return fn(filepath, yield* fs.readFile(filepath, "utf8"));
|
| 23 |
+
});
|
| 24 |
+
}
|
| 25 |
+
function fileMtime(filepath) {
|
| 26 |
+
if (!_fs2().existsSync(filepath)) return null;
|
| 27 |
+
try {
|
| 28 |
+
return +_fs2().statSync(filepath).mtime;
|
| 29 |
+
} catch (e) {
|
| 30 |
+
if (e.code !== "ENOENT" && e.code !== "ENOTDIR") throw e;
|
| 31 |
+
}
|
| 32 |
+
return null;
|
| 33 |
+
}
|
| 34 |
+
0 && 0;
|
| 35 |
+
|
| 36 |
+
//# sourceMappingURL=utils.js.map
|
frontend/node_modules/@babel/core/lib/config/files/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_caching","require","fs","_fs2","data","makeStaticFileCache","fn","makeStrongCache","filepath","cache","cached","invalidate","fileMtime","readFile","nodeFs","existsSync","statSync","mtime","e","code"],"sources":["../../../src/config/files/utils.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\n\nimport { makeStrongCache } from \"../caching.ts\";\nimport type { CacheConfigurator } from \"../caching.ts\";\nimport * as fs from \"../../gensync-utils/fs.ts\";\nimport nodeFs from \"node:fs\";\n\nexport function makeStaticFileCache<T>(\n fn: (filepath: string, contents: string) => T,\n) {\n return makeStrongCache(function* (\n filepath: string,\n cache: CacheConfigurator<void>,\n ): Handler<null | T> {\n const cached = cache.invalidate(() => fileMtime(filepath));\n\n if (cached === null) {\n return null;\n }\n\n return fn(filepath, yield* fs.readFile(filepath, \"utf8\"));\n });\n}\n\nfunction fileMtime(filepath: string): number | null {\n if (!nodeFs.existsSync(filepath)) return null;\n\n try {\n return +nodeFs.statSync(filepath).mtime;\n } catch (e) {\n if (e.code !== \"ENOENT\" && e.code !== \"ENOTDIR\") throw e;\n }\n\n return null;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,EAAA,GAAAD,OAAA;AACA,SAAAE,KAAA;EAAA,MAAAC,IAAA,GAAAH,OAAA;EAAAE,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,SAASC,mBAAmBA,CACjCC,EAA6C,EAC7C;EACA,OAAO,IAAAC,wBAAe,EAAC,WACrBC,QAAgB,EAChBC,KAA8B,EACX;IACnB,MAAMC,MAAM,GAAGD,KAAK,CAACE,UAAU,CAAC,MAAMC,SAAS,CAACJ,QAAQ,CAAC,CAAC;IAE1D,IAAIE,MAAM,KAAK,IAAI,EAAE;MACnB,OAAO,IAAI;IACb;IAEA,OAAOJ,EAAE,CAACE,QAAQ,EAAE,OAAON,EAAE,CAACW,QAAQ,CAACL,QAAQ,EAAE,MAAM,CAAC,CAAC;EAC3D,CAAC,CAAC;AACJ;AAEA,SAASI,SAASA,CAACJ,QAAgB,EAAiB;EAClD,IAAI,CAACM,KAA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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = void 0;
|
| 7 |
+
function _gensync() {
|
| 8 |
+
const data = require("gensync");
|
| 9 |
+
_gensync = function () {
|
| 10 |
+
return data;
|
| 11 |
+
};
|
| 12 |
+
return data;
|
| 13 |
+
}
|
| 14 |
+
var _async = require("../gensync-utils/async.js");
|
| 15 |
+
var _util = require("./util.js");
|
| 16 |
+
var context = require("../index.js");
|
| 17 |
+
var _plugin = require("./plugin.js");
|
| 18 |
+
var _item = require("./item.js");
|
| 19 |
+
var _configChain = require("./config-chain.js");
|
| 20 |
+
var _deepArray = require("./helpers/deep-array.js");
|
| 21 |
+
function _traverse() {
|
| 22 |
+
const data = require("@babel/traverse");
|
| 23 |
+
_traverse = function () {
|
| 24 |
+
return data;
|
| 25 |
+
};
|
| 26 |
+
return data;
|
| 27 |
+
}
|
| 28 |
+
var _caching = require("./caching.js");
|
| 29 |
+
var _options = require("./validation/options.js");
|
| 30 |
+
var _plugins = require("./validation/plugins.js");
|
| 31 |
+
var _configApi = require("./helpers/config-api.js");
|
| 32 |
+
var _partial = require("./partial.js");
|
| 33 |
+
var _configError = require("../errors/config-error.js");
|
| 34 |
+
var _default = exports.default = _gensync()(function* loadFullConfig(inputOpts) {
|
| 35 |
+
var _opts$assumptions;
|
| 36 |
+
const result = yield* (0, _partial.default)(inputOpts);
|
| 37 |
+
if (!result) {
|
| 38 |
+
return null;
|
| 39 |
+
}
|
| 40 |
+
const {
|
| 41 |
+
options,
|
| 42 |
+
context,
|
| 43 |
+
fileHandling
|
| 44 |
+
} = result;
|
| 45 |
+
if (fileHandling === "ignored") {
|
| 46 |
+
return null;
|
| 47 |
+
}
|
| 48 |
+
const optionDefaults = {};
|
| 49 |
+
const {
|
| 50 |
+
plugins,
|
| 51 |
+
presets
|
| 52 |
+
} = options;
|
| 53 |
+
if (!plugins || !presets) {
|
| 54 |
+
throw new Error("Assertion failure - plugins and presets exist");
|
| 55 |
+
}
|
| 56 |
+
const presetContext = Object.assign({}, context, {
|
| 57 |
+
targets: options.targets
|
| 58 |
+
});
|
| 59 |
+
const toDescriptor = item => {
|
| 60 |
+
const desc = (0, _item.getItemDescriptor)(item);
|
| 61 |
+
if (!desc) {
|
| 62 |
+
throw new Error("Assertion failure - must be config item");
|
| 63 |
+
}
|
| 64 |
+
return desc;
|
| 65 |
+
};
|
| 66 |
+
const presetsDescriptors = presets.map(toDescriptor);
|
| 67 |
+
const initialPluginsDescriptors = plugins.map(toDescriptor);
|
| 68 |
+
const pluginDescriptorsByPass = [[]];
|
| 69 |
+
const passes = [];
|
| 70 |
+
const externalDependencies = [];
|
| 71 |
+
const ignored = yield* enhanceError(context, function* recursePresetDescriptors(rawPresets, pluginDescriptorsPass) {
|
| 72 |
+
const presets = [];
|
| 73 |
+
for (let i = 0; i < rawPresets.length; i++) {
|
| 74 |
+
const descriptor = rawPresets[i];
|
| 75 |
+
if (descriptor.options !== false) {
|
| 76 |
+
try {
|
| 77 |
+
var preset = yield* loadPresetDescriptor(descriptor, presetContext);
|
| 78 |
+
} catch (e) {
|
| 79 |
+
if (e.code === "BABEL_UNKNOWN_OPTION") {
|
| 80 |
+
(0, _options.checkNoUnwrappedItemOptionPairs)(rawPresets, i, "preset", e);
|
| 81 |
+
}
|
| 82 |
+
throw e;
|
| 83 |
+
}
|
| 84 |
+
externalDependencies.push(preset.externalDependencies);
|
| 85 |
+
if (descriptor.ownPass) {
|
| 86 |
+
presets.push({
|
| 87 |
+
preset: preset.chain,
|
| 88 |
+
pass: []
|
| 89 |
+
});
|
| 90 |
+
} else {
|
| 91 |
+
presets.unshift({
|
| 92 |
+
preset: preset.chain,
|
| 93 |
+
pass: pluginDescriptorsPass
|
| 94 |
+
});
|
| 95 |
+
}
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
if (presets.length > 0) {
|
| 99 |
+
pluginDescriptorsByPass.splice(1, 0, ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass));
|
| 100 |
+
for (const {
|
| 101 |
+
preset,
|
| 102 |
+
pass
|
| 103 |
+
} of presets) {
|
| 104 |
+
if (!preset) return true;
|
| 105 |
+
pass.push(...preset.plugins);
|
| 106 |
+
const ignored = yield* recursePresetDescriptors(preset.presets, pass);
|
| 107 |
+
if (ignored) return true;
|
| 108 |
+
preset.options.forEach(opts => {
|
| 109 |
+
(0, _util.mergeOptions)(optionDefaults, opts);
|
| 110 |
+
});
|
| 111 |
+
}
|
| 112 |
+
}
|
| 113 |
+
})(presetsDescriptors, pluginDescriptorsByPass[0]);
|
| 114 |
+
if (ignored) return null;
|
| 115 |
+
const opts = optionDefaults;
|
| 116 |
+
(0, _util.mergeOptions)(opts, options);
|
| 117 |
+
const pluginContext = Object.assign({}, presetContext, {
|
| 118 |
+
assumptions: (_opts$assumptions = opts.assumptions) != null ? _opts$assumptions : {}
|
| 119 |
+
});
|
| 120 |
+
yield* enhanceError(context, function* loadPluginDescriptors() {
|
| 121 |
+
pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors);
|
| 122 |
+
for (const descs of pluginDescriptorsByPass) {
|
| 123 |
+
const pass = [];
|
| 124 |
+
passes.push(pass);
|
| 125 |
+
for (let i = 0; i < descs.length; i++) {
|
| 126 |
+
const descriptor = descs[i];
|
| 127 |
+
if (descriptor.options !== false) {
|
| 128 |
+
try {
|
| 129 |
+
var plugin = yield* loadPluginDescriptor(descriptor, pluginContext);
|
| 130 |
+
} catch (e) {
|
| 131 |
+
if (e.code === "BABEL_UNKNOWN_PLUGIN_PROPERTY") {
|
| 132 |
+
(0, _options.checkNoUnwrappedItemOptionPairs)(descs, i, "plugin", e);
|
| 133 |
+
}
|
| 134 |
+
throw e;
|
| 135 |
+
}
|
| 136 |
+
pass.push(plugin);
|
| 137 |
+
externalDependencies.push(plugin.externalDependencies);
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
})();
|
| 142 |
+
opts.plugins = passes[0];
|
| 143 |
+
opts.presets = passes.slice(1).filter(plugins => plugins.length > 0).map(plugins => ({
|
| 144 |
+
plugins
|
| 145 |
+
}));
|
| 146 |
+
opts.passPerPreset = opts.presets.length > 0;
|
| 147 |
+
return {
|
| 148 |
+
options: opts,
|
| 149 |
+
passes: passes,
|
| 150 |
+
externalDependencies: (0, _deepArray.finalize)(externalDependencies)
|
| 151 |
+
};
|
| 152 |
+
});
|
| 153 |
+
function enhanceError(context, fn) {
|
| 154 |
+
return function* (arg1, arg2) {
|
| 155 |
+
try {
|
| 156 |
+
return yield* fn(arg1, arg2);
|
| 157 |
+
} catch (e) {
|
| 158 |
+
if (!/^\[BABEL\]/.test(e.message)) {
|
| 159 |
+
var _context$filename;
|
| 160 |
+
e.message = `[BABEL] ${(_context$filename = context.filename) != null ? _context$filename : "unknown file"}: ${e.message}`;
|
| 161 |
+
}
|
| 162 |
+
throw e;
|
| 163 |
+
}
|
| 164 |
+
};
|
| 165 |
+
}
|
| 166 |
+
const makeDescriptorLoader = apiFactory => (0, _caching.makeWeakCache)(function* ({
|
| 167 |
+
value,
|
| 168 |
+
options,
|
| 169 |
+
dirname,
|
| 170 |
+
alias
|
| 171 |
+
}, cache) {
|
| 172 |
+
if (options === false) throw new Error("Assertion failure");
|
| 173 |
+
options = options || {};
|
| 174 |
+
const externalDependencies = [];
|
| 175 |
+
let item = value;
|
| 176 |
+
if (typeof value === "function") {
|
| 177 |
+
const factory = (0, _async.maybeAsync)(value, `You appear to be using an async plugin/preset, but Babel has been called synchronously`);
|
| 178 |
+
const api = Object.assign({}, context, apiFactory(cache, externalDependencies));
|
| 179 |
+
try {
|
| 180 |
+
item = yield* factory(api, options, dirname);
|
| 181 |
+
} catch (e) {
|
| 182 |
+
if (alias) {
|
| 183 |
+
e.message += ` (While processing: ${JSON.stringify(alias)})`;
|
| 184 |
+
}
|
| 185 |
+
throw e;
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
if (!item || typeof item !== "object") {
|
| 189 |
+
throw new Error("Plugin/Preset did not return an object.");
|
| 190 |
+
}
|
| 191 |
+
if ((0, _async.isThenable)(item)) {
|
| 192 |
+
yield* [];
|
| 193 |
+
throw new Error(`You appear to be using a promise as a plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version. ` + `As an alternative, you can prefix the promise with "await". ` + `(While processing: ${JSON.stringify(alias)})`);
|
| 194 |
+
}
|
| 195 |
+
if (externalDependencies.length > 0 && (!cache.configured() || cache.mode() === "forever")) {
|
| 196 |
+
let error = `A plugin/preset has external untracked dependencies ` + `(${externalDependencies[0]}), but the cache `;
|
| 197 |
+
if (!cache.configured()) {
|
| 198 |
+
error += `has not been configured to be invalidated when the external dependencies change. `;
|
| 199 |
+
} else {
|
| 200 |
+
error += ` has been configured to never be invalidated. `;
|
| 201 |
+
}
|
| 202 |
+
error += `Plugins/presets should configure their cache to be invalidated when the external ` + `dependencies change, for example using \`api.cache.invalidate(() => ` + `statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n` + `(While processing: ${JSON.stringify(alias)})`;
|
| 203 |
+
throw new Error(error);
|
| 204 |
+
}
|
| 205 |
+
return {
|
| 206 |
+
value: item,
|
| 207 |
+
options,
|
| 208 |
+
dirname,
|
| 209 |
+
alias,
|
| 210 |
+
externalDependencies: (0, _deepArray.finalize)(externalDependencies)
|
| 211 |
+
};
|
| 212 |
+
});
|
| 213 |
+
const pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI);
|
| 214 |
+
const presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI);
|
| 215 |
+
const instantiatePlugin = (0, _caching.makeWeakCache)(function* ({
|
| 216 |
+
value,
|
| 217 |
+
options,
|
| 218 |
+
dirname,
|
| 219 |
+
alias,
|
| 220 |
+
externalDependencies
|
| 221 |
+
}, cache) {
|
| 222 |
+
const pluginObj = (0, _plugins.validatePluginObject)(value);
|
| 223 |
+
const plugin = Object.assign({}, pluginObj);
|
| 224 |
+
if (plugin.visitor) {
|
| 225 |
+
plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor));
|
| 226 |
+
}
|
| 227 |
+
if (plugin.inherits) {
|
| 228 |
+
const inheritsDescriptor = {
|
| 229 |
+
name: undefined,
|
| 230 |
+
alias: `${alias}$inherits`,
|
| 231 |
+
value: plugin.inherits,
|
| 232 |
+
options,
|
| 233 |
+
dirname
|
| 234 |
+
};
|
| 235 |
+
const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, run => {
|
| 236 |
+
return cache.invalidate(data => run(inheritsDescriptor, data));
|
| 237 |
+
});
|
| 238 |
+
plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre);
|
| 239 |
+
plugin.post = chainMaybeAsync(inherits.post, plugin.post);
|
| 240 |
+
plugin.manipulateOptions = chainMaybeAsync(inherits.manipulateOptions, plugin.manipulateOptions);
|
| 241 |
+
plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]);
|
| 242 |
+
if (inherits.externalDependencies.length > 0) {
|
| 243 |
+
if (externalDependencies.length === 0) {
|
| 244 |
+
externalDependencies = inherits.externalDependencies;
|
| 245 |
+
} else {
|
| 246 |
+
externalDependencies = (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]);
|
| 247 |
+
}
|
| 248 |
+
}
|
| 249 |
+
}
|
| 250 |
+
return new _plugin.default(plugin, options, alias, externalDependencies);
|
| 251 |
+
});
|
| 252 |
+
function* loadPluginDescriptor(descriptor, context) {
|
| 253 |
+
if (descriptor.value instanceof _plugin.default) {
|
| 254 |
+
if (descriptor.options) {
|
| 255 |
+
throw new Error("Passed options to an existing Plugin instance will not work.");
|
| 256 |
+
}
|
| 257 |
+
return descriptor.value;
|
| 258 |
+
}
|
| 259 |
+
return yield* instantiatePlugin(yield* pluginDescriptorLoader(descriptor, context), context);
|
| 260 |
+
}
|
| 261 |
+
const needsFilename = val => val && typeof val !== "function";
|
| 262 |
+
const validateIfOptionNeedsFilename = (options, descriptor) => {
|
| 263 |
+
if (needsFilename(options.test) || needsFilename(options.include) || needsFilename(options.exclude)) {
|
| 264 |
+
const formattedPresetName = descriptor.name ? `"${descriptor.name}"` : "/* your preset */";
|
| 265 |
+
throw new _configError.default([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`, `\`\`\``, `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`, `\`\`\``, `See https://babeljs.io/docs/en/options#filename for more information.`].join("\n"));
|
| 266 |
+
}
|
| 267 |
+
};
|
| 268 |
+
const validatePreset = (preset, context, descriptor) => {
|
| 269 |
+
if (!context.filename) {
|
| 270 |
+
var _options$overrides;
|
| 271 |
+
const {
|
| 272 |
+
options
|
| 273 |
+
} = preset;
|
| 274 |
+
validateIfOptionNeedsFilename(options, descriptor);
|
| 275 |
+
(_options$overrides = options.overrides) == null || _options$overrides.forEach(overrideOptions => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
| 276 |
+
}
|
| 277 |
+
};
|
| 278 |
+
const instantiatePreset = (0, _caching.makeWeakCacheSync)(({
|
| 279 |
+
value,
|
| 280 |
+
dirname,
|
| 281 |
+
alias,
|
| 282 |
+
externalDependencies
|
| 283 |
+
}) => {
|
| 284 |
+
return {
|
| 285 |
+
options: (0, _options.validate)("preset", value),
|
| 286 |
+
alias,
|
| 287 |
+
dirname,
|
| 288 |
+
externalDependencies
|
| 289 |
+
};
|
| 290 |
+
});
|
| 291 |
+
function* loadPresetDescriptor(descriptor, context) {
|
| 292 |
+
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context));
|
| 293 |
+
validatePreset(preset, context, descriptor);
|
| 294 |
+
return {
|
| 295 |
+
chain: yield* (0, _configChain.buildPresetChain)(preset, context),
|
| 296 |
+
externalDependencies: preset.externalDependencies
|
| 297 |
+
};
|
| 298 |
+
}
|
| 299 |
+
function chainMaybeAsync(a, b) {
|
| 300 |
+
if (!a) return b;
|
| 301 |
+
if (!b) return a;
|
| 302 |
+
return function (...args) {
|
| 303 |
+
const res = a.apply(this, args);
|
| 304 |
+
if (res && typeof res.then === "function") {
|
| 305 |
+
return res.then(() => b.apply(this, args));
|
| 306 |
+
}
|
| 307 |
+
return b.apply(this, args);
|
| 308 |
+
};
|
| 309 |
+
}
|
| 310 |
+
0 && 0;
|
| 311 |
+
|
| 312 |
+
//# sourceMappingURL=full.js.map
|
frontend/node_modules/@babel/core/lib/config/full.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"names":["_gensync","data","require","_async","_util","context","_plugin","_item","_configChain","_deepArray","_traverse","_caching","_options","_plugins","_configApi","_partial","_configError","_default","exports","default","gensync","loadFullConfig","inputOpts","_opts$assumptions","result","loadPrivatePartialConfig","options","fileHandling","optionDefaults","plugins","presets","Error","presetContext","Object","assign","targets","toDescriptor","item","desc","getItemDescriptor","presetsDescriptors","map","initialPluginsDescriptors","pluginDescriptorsByPass","passes","externalDependencies","ignored","enhanceError","recursePresetDescriptors","rawPresets","pluginDescriptorsPass","i","length","descriptor","preset","loadPresetDescriptor","e","code","checkNoUnwrappedItemOptionPairs","push","ownPass","chain","pass","unshift","splice","o","filter","p","forEach","opts","mergeOptions","pluginContext","assumptions","loadPluginDescriptors","descs","plugin","loadPluginDescriptor","slice","passPerPreset","freezeDeepArray","fn","arg1","arg2","test","message","_context$filename","filename","makeDescriptorLoader","apiFactory","makeWeakCache","value","dirname","alias","cache","factory","maybeAsync","api","JSON","stringify","isThenable","configured","mode","error","pluginDescriptorLoader","makePluginAPI","presetDescriptorLoader","makePresetAPI","instantiatePlugin","pluginObj","validatePluginObject","visitor","traverse","explode","inherits","inheritsDescriptor","name","undefined","forwardAsync","run","invalidate","pre","chainMaybeAsync","post","manipulateOptions","visitors","merge","Plugin","needsFilename","val","validateIfOptionNeedsFilename","include","exclude","formattedPresetName","ConfigError","join","validatePreset","_options$overrides","overrides","overrideOptions","instantiatePreset","makeWeakCacheSync","validate","buildPresetChain","a","b","args","res","apply","then"],"sources":["../../src/config/full.ts"],"sourcesContent":["import gensync, { type Handler } from \"gensync\";\nimport {\n forwardAsync,\n maybeAsync,\n isThenable,\n} from \"../gensync-utils/async.ts\";\n\nimport { mergeOptions } from \"./util.ts\";\nimport * as context from \"../index.ts\";\nimport Plugin from \"./plugin.ts\";\nimport { getItemDescriptor } from \"./item.ts\";\nimport { buildPresetChain } from \"./config-chain.ts\";\nimport { finalize as freezeDeepArray } from \"./helpers/deep-array.ts\";\nimport type { DeepArray, ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\nimport type {\n ConfigContext,\n ConfigChain,\n PresetInstance,\n} from \"./config-chain.ts\";\nimport type { UnloadedDescriptor } from \"./config-descriptors.ts\";\nimport traverse from \"@babel/traverse\";\nimport { makeWeakCache, makeWeakCacheSync } from \"./caching.ts\";\nimport type { CacheConfigurator } from \"./caching.ts\";\nimport {\n validate,\n checkNoUnwrappedItemOptionPairs,\n} from \"./validation/options.ts\";\nimport type { InputOptions, PluginItem } from \"./validation/options.ts\";\nimport { validatePluginObject } from \"./validation/plugins.ts\";\nimport { makePluginAPI, makePresetAPI } from \"./helpers/config-api.ts\";\nimport type { PluginAPI, PresetAPI } from \"./helpers/config-api.ts\";\n\nimport loadPrivatePartialConfig from \"./partial.ts\";\nimport type { ValidatedOptions } from \"./validation/options.ts\";\n\nimport type * as Context from \"./cache-contexts.ts\";\nimport ConfigError from \"../errors/config-error.ts\";\n\ntype LoadedDescriptor = {\n value: any;\n options: object;\n dirname: string;\n alias: string;\n externalDependencies: ReadonlyDeepArray<string>;\n};\n\nexport type { InputOptions } from \"./validation/options.ts\";\n\nexport type ResolvedConfig = {\n options: any;\n passes: PluginPasses;\n externalDependencies: ReadonlyDeepArray<string>;\n};\n\nexport type { Plugin };\nexport type PluginPassList = Array<Plugin>;\nexport type PluginPasses = Array<PluginPassList>;\n\nexport default gensync(function* loadFullConfig(\n inputOpts: InputOptions,\n): Handler<ResolvedConfig | null> {\n const result = yield* loadPrivatePartialConfig(inputOpts);\n if (!result) {\n return null;\n }\n const { options, context, fileHandling } = result;\n\n if (fileHandling === \"ignored\") {\n return null;\n }\n\n const optionDefaults: ValidatedOptions = {};\n\n const { plugins, presets } = options;\n\n if (!plugins || !presets) {\n throw new Error(\"Assertion failure - plugins and presets exist\");\n }\n\n const presetContext: Context.FullPreset = {\n ...context,\n targets: options.targets,\n };\n\n const toDescriptor = (item: PluginItem) => {\n const desc = getItemDescriptor(item);\n if (!desc) {\n throw new Error(\"Assertion failure - must be config item\");\n }\n\n return desc;\n };\n\n const presetsDescriptors = presets.map(toDescriptor);\n const initialPluginsDescriptors = plugins.map(toDescriptor);\n const pluginDescriptorsByPass: Array<Array<UnloadedDescriptor<PluginAPI>>> = [\n [],\n ];\n const passes: Array<Array<Plugin>> = [];\n\n const externalDependencies: DeepArray<string> = [];\n\n const ignored = yield* enhanceError(\n context,\n function* recursePresetDescriptors(\n rawPresets: Array<UnloadedDescriptor<PresetAPI>>,\n pluginDescriptorsPass: Array<UnloadedDescriptor<PluginAPI>>,\n ): Handler<true | void> {\n const presets: Array<{\n preset: ConfigChain | null;\n pass: Array<UnloadedDescriptor<PluginAPI>>;\n }> = [];\n\n for (let i = 0; i < rawPresets.length; i++) {\n const descriptor = rawPresets[i];\n if (descriptor.options !== false) {\n try {\n // eslint-disable-next-line no-var\n var preset = yield* loadPresetDescriptor(descriptor, presetContext);\n } catch (e) {\n if (e.code === \"BABEL_UNKNOWN_OPTION\") {\n checkNoUnwrappedItemOptionPairs(rawPresets, i, \"preset\", e);\n }\n throw e;\n }\n\n externalDependencies.push(preset.externalDependencies);\n\n // Presets normally run in reverse order, but if they\n // have their own pass they run after the presets\n // in the previous pass.\n if (descriptor.ownPass) {\n presets.push({ preset: preset.chain, pass: [] });\n } else {\n presets.unshift({\n preset: preset.chain,\n pass: pluginDescriptorsPass,\n });\n }\n }\n }\n\n // resolve presets\n if (presets.length > 0) {\n // The passes are created in the same order as the preset list, but are inserted before any\n // existing additional passes.\n pluginDescriptorsByPass.splice(\n 1,\n 0,\n ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass),\n );\n\n for (const { preset, pass } of presets) {\n if (!preset) return true;\n\n pass.push(...preset.plugins);\n\n const ignored = yield* recursePresetDescriptors(preset.presets, pass);\n if (ignored) return true;\n\n preset.options.forEach(opts => {\n mergeOptions(optionDefaults, opts);\n });\n }\n }\n },\n )(presetsDescriptors, pluginDescriptorsByPass[0]);\n\n if (ignored) return null;\n\n const opts: ValidatedOptions = optionDefaults;\n mergeOptions(opts, options);\n\n const pluginContext: Context.FullPlugin = {\n ...presetContext,\n assumptions: opts.assumptions ?? {},\n };\n\n yield* enhanceError(context, function* loadPluginDescriptors() {\n pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors);\n\n for (const descs of pluginDescriptorsByPass) {\n const pass: Plugin[] = [];\n passes.push(pass);\n\n for (let i = 0; i < descs.length; i++) {\n const descriptor = descs[i];\n if (descriptor.options !== false) {\n try {\n // eslint-disable-next-line no-var\n var plugin = yield* loadPluginDescriptor(descriptor, pluginContext);\n } catch (e) {\n if (e.code === \"BABEL_UNKNOWN_PLUGIN_PROPERTY\") {\n // print special message for `plugins: [\"@babel/foo\", { foo: \"option\" }]`\n checkNoUnwrappedItemOptionPairs(descs, i, \"plugin\", e);\n }\n throw e;\n }\n pass.push(plugin);\n\n externalDependencies.push(plugin.externalDependencies);\n }\n }\n }\n })();\n\n opts.plugins = passes[0];\n opts.presets = passes\n .slice(1)\n .filter(plugins => plugins.length > 0)\n .map(plugins => ({ plugins }));\n opts.passPerPreset = opts.presets.length > 0;\n\n return {\n options: opts,\n passes: passes,\n externalDependencies: freezeDeepArray(externalDependencies),\n };\n});\n\nfunction enhanceError<T extends Function>(context: ConfigContext, fn: T): T {\n return function* (arg1: unknown, arg2: unknown) {\n try {\n return yield* fn(arg1, arg2);\n } catch (e) {\n // There are a few case where thrown errors will try to annotate themselves multiple times, so\n // to keep things simple we just bail out if re-wrapping the message.\n if (!/^\\[BABEL\\]/.test(e.message)) {\n e.message = `[BABEL] ${context.filename ?? \"unknown file\"}: ${\n e.message\n }`;\n }\n\n throw e;\n }\n } as any;\n}\n\n/**\n * Load a generic plugin/preset from the given descriptor loaded from the config object.\n */\nconst makeDescriptorLoader = <Context, API>(\n apiFactory: (\n cache: CacheConfigurator<Context>,\n externalDependencies: Array<string>,\n ) => API,\n) =>\n makeWeakCache(function* (\n { value, options, dirname, alias }: UnloadedDescriptor<API>,\n cache: CacheConfigurator<Context>,\n ): Handler<LoadedDescriptor> {\n // Disabled presets should already have been filtered out\n if (options === false) throw new Error(\"Assertion failure\");\n\n options = options || {};\n\n const externalDependencies: Array<string> = [];\n\n let item: unknown = value;\n if (typeof value === \"function\") {\n const factory = maybeAsync(\n value as (api: API, options: object, dirname: string) => unknown,\n `You appear to be using an async plugin/preset, but Babel has been called synchronously`,\n );\n\n const api = {\n ...context,\n ...apiFactory(cache, externalDependencies),\n };\n try {\n item = yield* factory(api, options, dirname);\n } catch (e) {\n if (alias) {\n e.message += ` (While processing: ${JSON.stringify(alias)})`;\n }\n throw e;\n }\n }\n\n if (!item || typeof item !== \"object\") {\n throw new Error(\"Plugin/Preset did not return an object.\");\n }\n\n if (isThenable(item)) {\n // if we want to support async plugins\n yield* [];\n\n throw new Error(\n `You appear to be using a promise as a plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, ` +\n `you may need to upgrade your @babel/core version. ` +\n `As an alternative, you can prefix the promise with \"await\". ` +\n `(While processing: ${JSON.stringify(alias)})`,\n );\n }\n\n if (\n externalDependencies.length > 0 &&\n (!cache.configured() || cache.mode() === \"forever\")\n ) {\n let error =\n `A plugin/preset has external untracked dependencies ` +\n `(${externalDependencies[0]}), but the cache `;\n if (!cache.configured()) {\n error += `has not been configured to be invalidated when the external dependencies change. `;\n } else {\n error += ` has been configured to never be invalidated. `;\n }\n error +=\n `Plugins/presets should configure their cache to be invalidated when the external ` +\n `dependencies change, for example using \\`api.cache.invalidate(() => ` +\n `statSync(filepath).mtimeMs)\\` or \\`api.cache.never()\\`\\n` +\n `(While processing: ${JSON.stringify(alias)})`;\n\n throw new Error(error);\n }\n\n return {\n value: item,\n options,\n dirname,\n alias,\n externalDependencies: freezeDeepArray(externalDependencies),\n };\n });\n\nconst pluginDescriptorLoader = makeDescriptorLoader<\n Context.SimplePlugin,\n PluginAPI\n>(makePluginAPI);\nconst presetDescriptorLoader = makeDescriptorLoader<\n Context.SimplePreset,\n PresetAPI\n>(makePresetAPI);\n\nconst instantiatePlugin = makeWeakCache(function* (\n { value, options, dirname, alias, externalDependencies }: LoadedDescriptor,\n cache: CacheConfigurator<Context.SimplePlugin>,\n): Handler<Plugin> {\n const pluginObj = validatePluginObject(value);\n\n const plugin = {\n ...pluginObj,\n };\n if (plugin.visitor) {\n plugin.visitor = traverse.explode({\n ...plugin.visitor,\n });\n }\n\n if (plugin.inherits) {\n const inheritsDescriptor: UnloadedDescriptor<PluginAPI> = {\n name: undefined,\n alias: `${alias}$inherits`,\n value: plugin.inherits,\n options,\n dirname,\n };\n\n const inherits = yield* forwardAsync(loadPluginDescriptor, run => {\n // If the inherited plugin changes, reinstantiate this plugin.\n return cache.invalidate(data => run(inheritsDescriptor, data));\n });\n\n plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre);\n plugin.post = chainMaybeAsync(inherits.post, plugin.post);\n plugin.manipulateOptions = chainMaybeAsync(\n inherits.manipulateOptions,\n plugin.manipulateOptions,\n );\n plugin.visitor = traverse.visitors.merge([\n inherits.visitor || {},\n plugin.visitor || {},\n ]);\n\n if (inherits.externalDependencies.length > 0) {\n if (externalDependencies.length === 0) {\n externalDependencies = inherits.externalDependencies;\n } else {\n externalDependencies = freezeDeepArray([\n externalDependencies,\n inherits.externalDependencies,\n ]);\n }\n }\n }\n\n return new Plugin(plugin, options, alias, externalDependencies);\n});\n\n/**\n * Instantiate a plugin for the given descriptor, returning the plugin/options pair.\n */\nfunction* loadPluginDescriptor(\n descriptor: UnloadedDescriptor<PluginAPI>,\n context: Context.SimplePlugin,\n): Handler<Plugin> {\n if (descriptor.value instanceof Plugin) {\n if (descriptor.options) {\n throw new Error(\n \"Passed options to an existing Plugin instance will not work.\",\n );\n }\n\n return descriptor.value;\n }\n\n return yield* instantiatePlugin(\n yield* pluginDescriptorLoader(descriptor, context),\n context,\n );\n}\n\nconst needsFilename = (val: unknown) => val && typeof val !== \"function\";\n\nconst validateIfOptionNeedsFilename = (\n options: ValidatedOptions,\n descriptor: UnloadedDescriptor<PresetAPI>,\n): void => {\n if (\n needsFilename(options.test) ||\n needsFilename(options.include) ||\n needsFilename(options.exclude)\n ) {\n const formattedPresetName = descriptor.name\n ? `\"${descriptor.name}\"`\n : \"/* your preset */\";\n throw new ConfigError(\n [\n `Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`,\n `\\`\\`\\``,\n `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`,\n `\\`\\`\\``,\n `See https://babeljs.io/docs/en/options#filename for more information.`,\n ].join(\"\\n\"),\n );\n }\n};\n\nconst validatePreset = (\n preset: PresetInstance,\n context: ConfigContext,\n descriptor: UnloadedDescriptor<PresetAPI>,\n): void => {\n if (!context.filename) {\n const { options } = preset;\n validateIfOptionNeedsFilename(options, descriptor);\n options.overrides?.forEach(overrideOptions =>\n validateIfOptionNeedsFilename(overrideOptions, descriptor),\n );\n }\n};\n\nconst instantiatePreset = makeWeakCacheSync(\n ({\n value,\n dirname,\n alias,\n externalDependencies,\n }: LoadedDescriptor): PresetInstance => {\n return {\n options: validate(\"preset\", value),\n alias,\n dirname,\n externalDependencies,\n };\n },\n);\n\n/**\n * Generate a config object that will act as the root of a new nested config.\n */\nfunction* loadPresetDescriptor(\n descriptor: UnloadedDescriptor<PresetAPI>,\n context: Context.FullPreset,\n): Handler<{\n chain: ConfigChain | null;\n externalDependencies: ReadonlyDeepArray<string>;\n}> {\n const preset = instantiatePreset(\n yield* presetDescriptorLoader(descriptor, context),\n );\n validatePreset(preset, context, descriptor);\n return {\n chain: yield* buildPresetChain(preset, context),\n externalDependencies: preset.externalDependencies,\n };\n}\n\nfunction chainMaybeAsync<Args extends any[], R extends void | Promise<void>>(\n a: undefined | ((...args: Args) => R),\n b: undefined | ((...args: Args) => R),\n): (...args: Args) => R {\n if (!a) return b;\n if (!b) return a;\n\n return function (this: unknown, ...args: Args) {\n const res = a.apply(this, args);\n if (res && typeof res.then === \"function\") {\n return res.then(() => b.apply(this, args));\n }\n return b.apply(this, args);\n } as (...args: Args) => R;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAE,MAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAQA,SAAAQ,UAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,SAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAU,QAAA,GAAAT,OAAA;AAEA,IAAAU,QAAA,GAAAV,OAAA;AAKA,IAAAW,QAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAGA,IAAAa,QAAA,GAAAb,OAAA;AAIA,IAAAc,YAAA,GAAAd,OAAA;AAAoD,I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