Unverified Commit 4b33cef9 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

upgrade to webpack 5.47.0 and webpack-sources 3.1.1 (#27538)

* improve source-map performance
* improve watch performance
* bugfixes
* improvements to Data URIs
parent f5ee9ed5
{
"dependencies": {
"schema-utils3": "npm:schema-utils@3.0.0",
"webpack-sources2": "npm:webpack-sources@2.3.0",
"webpack5": "npm:webpack@5.44.0"
"webpack-sources3": "npm:webpack-sources@3.1.1",
"webpack5": "npm:webpack@5.47.0"
},
"resolutions": {
"browserslist": "4.16.6",
......
......@@ -9,6 +9,7 @@ var $interceptModuleExecution$ = undefined;
var $moduleCache$ = undefined;
// eslint-disable-next-line no-unused-vars
var $hmrModuleData$ = undefined;
/** @type {() => Promise} */
var $hmrDownloadManifest$ = undefined;
var $hmrDownloadUpdateHandlers$ = undefined;
var $hmrInvalidateModuleHandlers$ = undefined;
......@@ -209,8 +210,12 @@ module.exports = function () {
function setStatus(newStatus) {
currentStatus = newStatus;
var results = [];
for (var i = 0; i < registeredStatusHandlers.length; i++)
registeredStatusHandlers[i].call(null, newStatus);
results[i] = registeredStatusHandlers[i].call(null, newStatus);
return Promise.all(results);
}
function trackBlockingPromise(promise) {
......@@ -219,7 +224,7 @@ module.exports = function () {
setStatus("prepare");
blockingPromises.push(promise);
waitForBlockingPromises(function () {
setStatus("ready");
return setStatus("ready");
});
return promise;
case "prepare":
......@@ -243,47 +248,47 @@ module.exports = function () {
if (currentStatus !== "idle") {
throw new Error("check() is only allowed in idle status");
}
setStatus("check");
return $hmrDownloadManifest$().then(function (update) {
if (!update) {
setStatus(applyInvalidatedModules() ? "ready" : "idle");
return null;
}
setStatus("prepare");
var updatedModules = [];
blockingPromises = [];
currentUpdateApplyHandlers = [];
return Promise.all(
Object.keys($hmrDownloadUpdateHandlers$).reduce(function (
promises,
key
) {
$hmrDownloadUpdateHandlers$[key](
update.c,
update.r,
update.m,
promises,
currentUpdateApplyHandlers,
updatedModules
);
return promises;
},
[])
).then(function () {
return waitForBlockingPromises(function () {
if (applyOnUpdate) {
return internalApply(applyOnUpdate);
} else {
setStatus("ready");
return setStatus("check")
.then($hmrDownloadManifest$)
.then(function (update) {
if (!update) {
return setStatus(applyInvalidatedModules() ? "ready" : "idle");
}
return updatedModules;
}
return setStatus("prepare").then(function () {
var updatedModules = [];
blockingPromises = [];
currentUpdateApplyHandlers = [];
return Promise.all(
Object.keys($hmrDownloadUpdateHandlers$).reduce(function (
promises,
key
) {
$hmrDownloadUpdateHandlers$[key](
update.c,
update.r,
update.m,
promises,
currentUpdateApplyHandlers,
updatedModules
);
return promises;
},
[])
).then(function () {
return waitForBlockingPromises(function () {
if (applyOnUpdate) {
return internalApply(applyOnUpdate);
} else {
return setStatus("ready").then(function () {
return updatedModules;
});
}
});
});
});
});
});
}
function hotApply(options) {
......@@ -312,21 +317,20 @@ module.exports = function () {
.filter(Boolean);
if (errors.length > 0) {
setStatus("abort");
return Promise.resolve().then(function () {
return setStatus("abort").then(function () {
throw errors[0];
});
}
// Now in "dispose" phase
setStatus("dispose");
var disposePromise = setStatus("dispose");
results.forEach(function (result) {
if (result.dispose) result.dispose();
});
// Now in "apply" phase
setStatus("apply");
var applyPromise = setStatus("apply");
var error;
var reportError = function (err) {
......@@ -345,25 +349,27 @@ module.exports = function () {
}
});
// handle errors in accept handlers and self accepted module load
if (error) {
setStatus("fail");
return Promise.resolve().then(function () {
throw error;
});
}
return Promise.all([disposePromise, applyPromise]).then(function () {
// handle errors in accept handlers and self accepted module load
if (error) {
return setStatus("fail").then(function () {
throw error;
});
}
if (queuedInvalidatedModules) {
return internalApply(options).then(function (list) {
outdatedModules.forEach(function (moduleId) {
if (list.indexOf(moduleId) < 0) list.push(moduleId);
if (queuedInvalidatedModules) {
return internalApply(options).then(function (list) {
outdatedModules.forEach(function (moduleId) {
if (list.indexOf(moduleId) < 0) list.push(moduleId);
});
return list;
});
return list;
});
}
}
setStatus("idle");
return Promise.resolve(outdatedModules);
return setStatus("idle").then(function () {
return outdatedModules;
});
});
}
function applyInvalidatedModules() {
......
......@@ -11,9 +11,9 @@
"@types/estree" "*"
"@types/eslint@*":
version "7.2.14"
resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.2.14.tgz#088661518db0c3c23089ab45900b99dd9214b92a"
integrity sha512-pESyhSbUOskqrGcaN+bCXIQDyT5zTaRWfj5ZjjSlMatgGjIn3QQPfocAu4WSabUR7CGyLZ2CQaZyISOEX7/saw==
version "7.28.0"
resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.28.0.tgz#7e41f2481d301c68e14f483fe10b017753ce8d5a"
integrity sha512-07XlgzX0YJUn4iG1ocY4IX9DzKSmMGUs6ESKlxWhZRaa0fatIWaHWUVapcuGa8r5HFnTqzj+4OCjd5f7EZ/i/A==
dependencies:
"@types/estree" "*"
"@types/json-schema" "*"
......@@ -23,15 +23,15 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.50.tgz#1e0caa9364d3fccd2931c3ed96fdbeaa5d4cca83"
integrity sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==
"@types/json-schema@*", "@types/json-schema@^7.0.6", "@types/json-schema@^7.0.7":
"@types/json-schema@*", "@types/json-schema@^7.0.6", "@types/json-schema@^7.0.8":
version "7.0.8"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.8.tgz#edf1bf1dbf4e04413ca8e5b17b3b7d7d54b59818"
integrity sha512-YSBPTLTVm2e2OoQIDYx8HaeWJ5tTToLH67kXR7zYNGupXMEHa2++G8k+DczX2cFVgalypqtyZIcU19AFcmOpmg==
"@types/node@*":
version "16.0.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.0.0.tgz#067a6c49dc7a5c2412a505628e26902ae967bf6f"
integrity sha512-TmCW5HoZ2o2/z2EYi109jLqIaPIi9y/lc2LmDCWzuCi35bcaQ+OtUh6nwBiFK7SOu25FAU5+YKdqFZUwtqGSdg==
version "16.4.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.4.tgz#bb0744c1dcc1fc374f51d3fd41d028331a2420d4"
integrity sha512-BH/jX0HjzElFCQdAwaEMwuGBQwm6ViDZ00X6LKdnRRmGWOzkWugEH4+7a0BwfHQ8DfPPCSd/mdsm3Nu8FKFu0w==
"@webassemblyjs/ast@1.11.1":
version "1.11.1"
......@@ -221,9 +221,9 @@ commander@^2.20.0:
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
electron-to-chromium@^1.3.723:
version "1.3.769"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.769.tgz#73ad7e3f2d435810b6f8b29617ec344c782fcbed"
integrity sha512-B+3hW8D76/uoTPSobWI3D/CFn2S4jPn88dVJ+BkD88Lz6LijQpL+hfdzIFJGTQK4KdE0XwmNbjUQFH1OQVwKdQ==
version "1.3.789"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.789.tgz#c3ea060ba1e36e41c87943a47ed2daadc545be2b"
integrity sha512-lK4xn6C6ZF1kgLaC/EhOtC1MSKENExj3rMwGVnBTfHW81Z/Hb1Rge5YaWawN/YOXy3xCaESuE4KWSD50kOZ9rQ==
enhanced-resolve@^5.8.0:
version "5.8.2"
......@@ -327,17 +327,17 @@ merge-stream@^2.0.0:
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==
mime-db@1.48.0:
version "1.48.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.48.0.tgz#e35b31045dd7eada3aaad537ed88a33afbef2d1d"
integrity sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==
mime-db@1.49.0:
version "1.49.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed"
integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==
mime-types@^2.1.27:
version "2.1.31"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.31.tgz#a00d76b74317c61f9c2db2218b8e9f8e9c5c9e6b"
integrity sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==
version "2.1.32"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5"
integrity sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==
dependencies:
mime-db "1.48.0"
mime-db "1.49.0"
neo-async@^2.6.2:
version "2.6.2"
......@@ -382,12 +382,12 @@ safe-buffer@^5.1.0:
ajv "^6.12.5"
ajv-keywords "^3.5.2"
schema-utils@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.0.tgz#95986eb604f66daadeed56e379bfe7a7f963cdb9"
integrity sha512-tTEaeYkyIhEZ9uWgAjDerWov3T9MgX8dhhy2r0IGeeX4W8ngtGl1++dUve/RUqzuaASSh7shwCDJjEzthxki8w==
schema-utils@^3.0.0, schema-utils@^3.1.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281"
integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==
dependencies:
"@types/json-schema" "^7.0.7"
"@types/json-schema" "^7.0.8"
ajv "^6.12.5"
ajv-keywords "^3.5.2"
......@@ -398,11 +398,6 @@ serialize-javascript@^6.0.0:
dependencies:
randombytes "^2.1.0"
source-list-map@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==
source-map-support@~0.5.19:
version "0.5.19"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
......@@ -469,19 +464,15 @@ watchpack@^2.2.0:
glob-to-regexp "^0.4.1"
graceful-fs "^4.1.2"
"webpack-sources2@npm:webpack-sources@2.3.0", webpack-sources@^2.3.0:
name webpack-sources2
version "2.3.0"
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-2.3.0.tgz#9ed2de69b25143a4c18847586ad9eccb19278cfa"
integrity sha512-WyOdtwSvOML1kbgtXbTDnEW0jkJ7hZr/bDByIwszhWd/4XX1A3XMkrbFMsuH4+/MfLlZCUzlAdg4r7jaGKEIgQ==
dependencies:
source-list-map "^2.0.1"
source-map "^0.6.1"
"webpack-sources3@npm:webpack-sources@3.1.1", webpack-sources@^3.0.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.1.1.tgz#586d15bc9a9723765f6a735f672357d6402f9c57"
integrity sha512-ztUmIWq0LWaw+1YyR3bXtUPjt8vQedtI9WxGn/q1V1ASHsombnaso7MN9S25lzKS/OuC9Q8lEg3GsZexjDbdlQ==
"webpack5@npm:webpack@5.44.0":
version "5.44.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.44.0.tgz#97b13a02bd79fb71ac6301ce697920660fa214a1"
integrity sha512-I1S1w4QLoKmH19pX6YhYN0NiSXaWY8Ou00oA+aMcr9IUGeF5azns+IKBkfoAAG9Bu5zOIzZt/mN35OffBya8AQ==
"webpack5@npm:webpack@5.47.0":
version "5.47.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.47.0.tgz#3c13862b5d7b428792bfe76c5f67a0f43ba685f8"
integrity sha512-soKLGwcUM1R3YEbJhJNiZzy7T43TnI7ENda/ywfDp9G1mDlDTpO+qfc8I5b0AzMr9xM3jyvQ0n7ctJyiXuXW6Q==
dependencies:
"@types/eslint-scope" "^3.7.0"
"@types/estree" "^0.0.50"
......@@ -501,11 +492,11 @@ watchpack@^2.2.0:
loader-runner "^4.2.0"
mime-types "^2.1.27"
neo-async "^2.6.2"
schema-utils "^3.0.0"
schema-utils "^3.1.0"
tapable "^2.1.1"
terser-webpack-plugin "^5.1.3"
watchpack "^2.2.0"
webpack-sources "^2.3.0"
webpack-sources "^3.0.1"
yocto-queue@^0.1.0:
version "0.1.0"
......
module.exports=function(){var e={233:function(e,t,n){"use strict";const s=n(335).y;const i=n(335).P;class CodeNode{constructor(e){this.generatedCode=e}clone(){return new CodeNode(this.generatedCode)}getGeneratedCode(){return this.generatedCode}getMappings(e){const t=s(this.generatedCode);const n=Array(t+1).join(";");if(t>0){e.unfinishedGeneratedLine=i(this.generatedCode);if(e.unfinishedGeneratedLine>0){return n+"A"}else{return n}}else{const t=e.unfinishedGeneratedLine;e.unfinishedGeneratedLine+=i(this.generatedCode);if(t===0&&e.unfinishedGeneratedLine>0){return"A"}else{return""}}}addGeneratedCode(e){this.generatedCode+=e}mapGeneratedCode(e){const t=e(this.generatedCode);return new CodeNode(t)}getNormalizedNodes(){return[this]}merge(e){if(e instanceof CodeNode){this.generatedCode+=e.generatedCode;return this}return false}}e.exports=CodeNode},940:function(e){"use strict";class MappingsContext{constructor(){this.sourcesIndices=new Map;this.sourcesContent=new Map;this.hasSourceContent=false;this.currentOriginalLine=1;this.currentSource=0;this.unfinishedGeneratedLine=false}ensureSource(e,t){let n=this.sourcesIndices.get(e);if(typeof n==="number"){return n}n=this.sourcesIndices.size;this.sourcesIndices.set(e,n);this.sourcesContent.set(e,t);if(typeof t==="string")this.hasSourceContent=true;return n}getArrays(){const e=[];const t=[];for(const n of this.sourcesContent){e.push(n[0]);t.push(n[1])}return{sources:e,sourcesContent:t}}}e.exports=MappingsContext},482:function(e,t,n){"use strict";const s=n(439);const i=n(335).y;const r=n(335).P;const u=";AAAA";class SingleLineNode{constructor(e,t,n,s){this.generatedCode=e;this.originalSource=n;this.source=t;this.line=s||1;this._numberOfLines=i(this.generatedCode);this._endsWithNewLine=e[e.length-1]==="\n"}clone(){return new SingleLineNode(this.generatedCode,this.source,this.originalSource,this.line)}getGeneratedCode(){return this.generatedCode}getMappings(e){if(!this.generatedCode)return"";const t=this._numberOfLines;const n=e.ensureSource(this.source,this.originalSource);let i="A";if(e.unfinishedGeneratedLine)i=","+s.encode(e.unfinishedGeneratedLine);i+=s.encode(n-e.currentSource);i+=s.encode(this.line-e.currentOriginalLine);i+="A";e.currentSource=n;e.currentOriginalLine=this.line;const o=e.unfinishedGeneratedLine=r(this.generatedCode);i+=Array(t).join(u);if(o===0){i+=";"}else{if(t!==0)i+=u}return i}getNormalizedNodes(){return[this]}mapGeneratedCode(e){const t=e(this.generatedCode);return new SingleLineNode(t,this.source,this.originalSource,this.line)}merge(e){if(e instanceof SingleLineNode){return this.mergeSingleLineNode(e)}return false}mergeSingleLineNode(e){if(this.source===e.source&&this.originalSource===e.originalSource){if(this.line===e.line){this.generatedCode+=e.generatedCode;this._numberOfLines+=e._numberOfLines;this._endsWithNewLine=e._endsWithNewLine;return this}else if(this.line+1===e.line&&this._endsWithNewLine&&this._numberOfLines===1&&e._numberOfLines<=1){return new o(this.generatedCode+e.generatedCode,this.source,this.originalSource,this.line)}}return false}}e.exports=SingleLineNode;const o=n(839)},950:function(e,t,n){"use strict";const s=n(233);const i=n(839);const r=n(940);const u=n(335).y;class SourceListMap{constructor(e,t,n){if(Array.isArray(e)){this.children=e}else{this.children=[];if(e||t)this.add(e,t,n)}}add(e,t,n){if(typeof e==="string"){if(t){this.children.push(new i(e,t,n))}else if(this.children.length>0&&this.children[this.children.length-1]instanceof s){this.children[this.children.length-1].addGeneratedCode(e)}else{this.children.push(new s(e))}}else if(e.getMappings&&e.getGeneratedCode){this.children.push(e)}else if(e.children){e.children.forEach(function(e){this.children.push(e)},this)}else{throw new Error("Invalid arguments to SourceListMap.protfotype.add: Expected string, Node or SourceListMap")}}preprend(e,t,n){if(typeof e==="string"){if(t){this.children.unshift(new i(e,t,n))}else if(this.children.length>0&&this.children[this.children.length-1].preprendGeneratedCode){this.children[this.children.length-1].preprendGeneratedCode(e)}else{this.children.unshift(new s(e))}}else if(e.getMappings&&e.getGeneratedCode){this.children.unshift(e)}else if(e.children){e.children.slice().reverse().forEach(function(e){this.children.unshift(e)},this)}else{throw new Error("Invalid arguments to SourceListMap.protfotype.prerend: Expected string, Node or SourceListMap")}}mapGeneratedCode(e){const t=[];this.children.forEach(function(e){e.getNormalizedNodes().forEach(function(e){t.push(e)})});const n=[];t.forEach(function(t){t=t.mapGeneratedCode(e);if(n.length===0){n.push(t)}else{const e=n[n.length-1];const s=e.merge(t);if(s){n[n.length-1]=s}else{n.push(t)}}});return new SourceListMap(n)}toString(){return this.children.map(function(e){return e.getGeneratedCode()}).join("")}toStringWithSourceMap(e){const t=new r;const n=this.children.map(function(e){return e.getGeneratedCode()}).join("");const s=this.children.map(function(e){return e.getMappings(t)}).join("");const i=t.getArrays();return{source:n,map:{version:3,file:e&&e.file,sources:i.sources,sourcesContent:t.hasSourceContent?i.sourcesContent:undefined,mappings:s}}}}e.exports=SourceListMap},839:function(e,t,n){"use strict";const s=n(439);const i=n(335).y;const r=n(335).P;const u=";AACA";class SourceNode{constructor(e,t,n,s){this.generatedCode=e;this.originalSource=n;this.source=t;this.startingLine=s||1;this._numberOfLines=i(this.generatedCode);this._endsWithNewLine=e[e.length-1]==="\n"}clone(){return new SourceNode(this.generatedCode,this.source,this.originalSource,this.startingLine)}getGeneratedCode(){return this.generatedCode}addGeneratedCode(e){this.generatedCode+=e;this._numberOfLines+=i(e);this._endsWithNewLine=e[e.length-1]==="\n"}getMappings(e){if(!this.generatedCode)return"";const t=this._numberOfLines;const n=e.ensureSource(this.source,this.originalSource);let i="A";if(e.unfinishedGeneratedLine)i=","+s.encode(e.unfinishedGeneratedLine);i+=s.encode(n-e.currentSource);i+=s.encode(this.startingLine-e.currentOriginalLine);i+="A";e.currentSource=n;e.currentOriginalLine=this.startingLine+t-1;const o=e.unfinishedGeneratedLine=r(this.generatedCode);i+=Array(t).join(u);if(o===0){i+=";"}else{if(t!==0){i+=u}e.currentOriginalLine++}return i}mapGeneratedCode(e){throw new Error("Cannot map generated code on a SourceMap. Normalize to SingleLineNode first.")}getNormalizedNodes(){var e=[];var t=this.startingLine;var n=this.generatedCode;var s=0;var i=n.length;while(s<i){var r=n.indexOf("\n",s)+1;if(r===0)r=i;var u=n.substr(s,r-s);e.push(new o(u,this.source,this.originalSource,t));s=r;t++}return e}merge(e){if(e instanceof SourceNode){return this.mergeSourceNode(e)}else if(e instanceof o){return this.mergeSingleLineNode(e)}return false}mergeSourceNode(e){if(this.source===e.source&&this._endsWithNewLine&&this.startingLine+this._numberOfLines===e.startingLine){this.generatedCode+=e.generatedCode;this._numberOfLines+=e._numberOfLines;this._endsWithNewLine=e._endsWithNewLine;return this}return false}mergeSingleLineNode(e){if(this.source===e.source&&this._endsWithNewLine&&this.startingLine+this._numberOfLines===e.line&&e._numberOfLines<=1){this.addSingleLineNode(e);return this}return false}addSingleLineNode(e){this.generatedCode+=e.generatedCode;this._numberOfLines+=e._numberOfLines;this._endsWithNewLine=e._endsWithNewLine}}e.exports=SourceNode;const o=n(482)},439:function(e,t){var n={};var s={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,t){n[e]=t;s[t]=e});var i={};i.encode=function base64_encode(e){if(e in s){return s[e]}throw new TypeError("Must be between 0 and 63: "+e)};i.decode=function base64_decode(e){if(e in n){return n[e]}throw new TypeError("Not a valid base 64 digit: "+e)};var r=5;var u=1<<r;var o=u-1;var f=u;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var n=e>>1;return t?-n:n}t.encode=function base64VLQ_encode(e){var t="";var n;var s=toVLQSigned(e);do{n=s&o;s>>>=r;if(s>0){n|=f}t+=i.encode(n)}while(s>0);return t};t.decode=function base64VLQ_decode(e,t){var n=0;var s=e.length;var u=0;var c=0;var h,a;do{if(n>=s){throw new Error("Expected more digits in base 64 VLQ value.")}a=i.decode(e.charAt(n++));h=!!(a&f);a&=o;u=u+(a<<c);c+=r}while(h);t.value=fromVLQSigned(u);t.rest=e.slice(n)}},835:function(e,t,n){"use strict";const s=n(439);const i=n(839);const r=n(233);const u=n(950);e.exports=function fromStringWithSourceMap(e,t){const n=t.sources;const o=t.sourcesContent;const f=t.mappings.split(";");const c=e.split("\n");const h=[];let a=null;let l=1;let d=0;let p;function addCode(e){if(a&&a instanceof r){a.addGeneratedCode(e)}else if(a&&a instanceof i&&!e.trim()){a.addGeneratedCode(e);p++}else{a=new r(e);h.push(a)}}function addSource(e,t,n,s){if(a&&a instanceof i&&a.source===t&&p===s){a.addGeneratedCode(e);p++}else{a=new i(e,t,n,s);p=s+1;h.push(a)}}f.forEach(function(e,t){let n=c[t];if(typeof n==="undefined")return;if(t!==c.length-1)n+="\n";if(!e)return addCode(n);e={value:0,rest:e};let s=false;while(e.rest)s=processMapping(e,n,s)||s;if(!s)addCode(n)});if(f.length<c.length){let e=f.length;while(!c[e].trim()&&e<c.length-1){addCode(c[e]+"\n");e++}addCode(c.slice(e).join("\n"))}return new u(h);function processMapping(e,t,i){if(e.rest&&e.rest[0]!==","){s.decode(e.rest,e)}if(!e.rest)return false;if(e.rest[0]===","){e.rest=e.rest.substr(1);return false}s.decode(e.rest,e);const r=e.value+d;d=r;let u;if(e.rest&&e.rest[0]!==","){s.decode(e.rest,e);u=e.value+l;l=u}else{u=l}if(e.rest){const t=e.rest.indexOf(",");e.rest=t===-1?"":e.rest.substr(t)}if(!i){addSource(t,n?n[r]:null,o?o[r]:null,u);return true}}}},335:function(e,t){"use strict";t.y=function getNumberOfLines(e){let t=-1;let n=-1;do{t++;n=e.indexOf("\n",n+1)}while(n>=0);return t};t.P=function getUnfinishedLine(e){const t=e.lastIndexOf("\n");if(t===-1)return e.length;else return e.length-t-1}},728:function(e,t,n){t.SourceListMap=n(950);t.SourceNode=n(839);t.SingleLineNode=n(482);t.CodeNode=n(233);t.MappingsContext=n(940);t.fromStringWithSourceMap=n(835)},357:function(e,t,n){"use strict";const s=n(598);const{SourceMapConsumer:i,SourceNode:r}=n(241);const{SourceListMap:u,fromStringWithSourceMap:o}=n(728);const f={columns:false};const c=e=>{if(typeof e!=="object"||!e)return e;const t=Object.assign({},e);if(e.mappings){t.mappings=Buffer.from(e.mappings,"utf-8")}if(e.sourcesContent){t.sourcesContent=e.sourcesContent.map(e=>e&&Buffer.from(e,"utf-8"))}return t};const h=e=>{if(typeof e!=="object"||!e)return e;const t=Object.assign({},e);if(e.mappings){t.mappings=e.mappings.toString("utf-8")}if(e.sourcesContent){t.sourcesContent=e.sourcesContent.map(e=>e&&e.toString("utf-8"))}return t};const a=(e,t)=>{if(t){return r.fromStringWithSourceMap(e,new i(t))}else{return new r(null,null,null,e)}};const l=(e,t)=>{if(t){return o(e,t)}else{return new u(e)}};class CachedSource extends s{constructor(e,t){super();this._source=e;this._cachedSourceType=t?t.source:undefined;this._cachedSource=undefined;this._cachedBuffer=t?t.buffer:undefined;this._cachedSize=t?t.size:undefined;this._cachedMaps=t?t.maps:new Map;this._cachedHashUpdate=t?t.hash:undefined}getCachedData(){const e=new Map;for(const t of this._cachedMaps){let n=t[1];if(n.bufferedMap===undefined){n.bufferedMap=c(this._getMapFromCacheEntry(n))}e.set(t[0],{map:undefined,node:undefined,listMap:undefined,bufferedMap:n.bufferedMap})}if(this._cachedSource){this.buffer()}return{buffer:this._cachedBuffer,source:this._cachedSourceType!==undefined?this._cachedSourceType:typeof this._cachedSource==="string"?true:Buffer.isBuffer(this._cachedSource)?false:undefined,size:this._cachedSize,maps:e,hash:this._cachedHashUpdate}}originalLazy(){return this._source}original(){if(typeof this._source==="function")this._source=this._source();return this._source}source(){const e=this._getCachedSource();if(e!==undefined)return e;return this._cachedSource=this.original().source()}_getMapFromCacheEntry(e){if(e.map!==undefined){return e.map}else if(e.bufferedMap!==undefined){return e.map=h(e.bufferedMap)}else if(e.node!==undefined){const t=e.node.toStringWithSourceMap({file:"x"});if(this._cachedSource===undefined)this._cachedSource=t.code;return e.map=t.map.toJSON()}else if(e.listMap!==undefined){const t=e.listMap.toStringWithSourceMap({file:"x"});if(this._cachedSource===undefined)this._cachedSource=t.source;return e.map=t.map}}_getCachedSource(){if(this._cachedSource!==undefined)return this._cachedSource;if(this._cachedBuffer&&this._cachedSourceType!==undefined){return this._cachedSource=this._cachedSourceType?this._cachedBuffer.toString("utf-8"):this._cachedBuffer}for(const e of this._cachedMaps.values()){if(e.node!==undefined){return this._cachedSource=e.node.toString()}if(e.listMap!==undefined){return this._cachedSource=e.listMap.toString()}}}buffer(){if(this._cachedBuffer!==undefined)return this._cachedBuffer;if(this._cachedSource!==undefined){if(Buffer.isBuffer(this._cachedSource)){return this._cachedBuffer=this._cachedSource}return this._cachedBuffer=Buffer.from(this._cachedSource,"utf-8")}if(typeof this.original().buffer==="function"){return this._cachedBuffer=this.original().buffer()}const e=this.source();if(Buffer.isBuffer(e)){return this._cachedBuffer=e}return this._cachedBuffer=Buffer.from(e,"utf-8")}size(){if(this._cachedSize!==undefined)return this._cachedSize;if(this._cachedBuffer!==undefined){return this._cachedSize=this._cachedBuffer.length}const e=this._getCachedSource();if(e!==undefined){return this._cachedSize=Buffer.byteLength(e)}return this._cachedSize=this.original().size()}sourceAndMap(e){const t=e?JSON.stringify(e):"{}";const n=this._cachedMaps.get(t);if(n!==undefined){const e=this._getMapFromCacheEntry(n);return{source:this.source(),map:e}}let s=this._getCachedSource();let i;if(s!==undefined){i=this.original().map(e)}else{const t=this.original().sourceAndMap(e);s=t.source;i=t.map;this._cachedSource=s}this._cachedMaps.set(t,{map:i,node:undefined,listMap:undefined,bufferedMap:undefined});return{source:s,map:i}}node(e){const t=e?JSON.stringify(e):"{}";let n=this._cachedMaps.get(t);if(n!==undefined){if(n.node)return n.node;const e=this._getMapFromCacheEntry(n);const t=this.source();const s=a(t,e);n.node=s;return s}let s;const i=this.original();if(typeof i.node==="function"){s=i.node(e);this._cachedMaps.set(t,{map:undefined,node:s,listMap:undefined,bufferedMap:undefined})}else{const n=this.sourceAndMap(e);s=a(n.source,n.map);this._cachedMaps.get(t).node=s}return s}listMap(e){let t;if(!e){t='{"columns":false}';e=f}else{if(e.columns!==false){e=Object.assign({},e,f)}t=JSON.stringify(e)}let n=this._cachedMaps.get(t);if(n!==undefined){if(n.listMap)return n.listMap;const e=this._getMapFromCacheEntry(n);const t=this.source();const s=l(t,e);n.listMap=s;return s}let s;const i=this.original();if(typeof i.listMap==="function"){s=i.listMap(e);this._cachedMaps.set(t,{map:undefined,node:undefined,listMap:s,bufferedMap:undefined})}else{const n=this.sourceAndMap(e);s=l(n.source,n.map);this._cachedMaps.get(t).listMap=s}return s}map(e){const t=e?JSON.stringify(e):"{}";const n=this._cachedMaps.get(t);if(n!==undefined){return this._getMapFromCacheEntry(n)}const s=this.original().map(e);this._cachedMaps.set(t,{map:s,node:undefined,listMap:undefined,bufferedMap:undefined});return s}updateHash(e){if(this._cachedHashUpdate!==undefined){for(const t of this._cachedHashUpdate)e.update(t);return}const t=[];let n=undefined;const s={update:e=>{if(typeof e==="string"&&e.length<10240){if(n===undefined){n=e}else{n+=e;if(n>102400){t.push(Buffer.from(n));n=undefined}}}else{if(n!==undefined){t.push(Buffer.from(n));n=undefined}t.push(e)}}};this.original().updateHash(s);if(n!==undefined){t.push(Buffer.from(n))}for(const n of t)e.update(n);this._cachedHashUpdate=t}}e.exports=CachedSource},973:function(e,t,n){"use strict";const s=n(598);class CompatSource extends s{static from(e){return e instanceof s?e:new CompatSource(e)}constructor(e){super();this._sourceLike=e}source(){return this._sourceLike.source()}buffer(){if(typeof this._sourceLike.buffer==="function"){return this._sourceLike.buffer()}return super.buffer()}size(){if(typeof this._sourceLike.size==="function"){return this._sourceLike.size()}return super.size()}map(e){if(typeof this._sourceLike.map==="function"){return this._sourceLike.map(e)}return super.map(e)}sourceAndMap(e){if(typeof this._sourceLike.sourceAndMap==="function"){return this._sourceLike.sourceAndMap(e)}return super.sourceAndMap(e)}updateHash(e){if(typeof this._sourceLike.updateHash==="function"){return this._sourceLike.updateHash(e)}if(typeof this._sourceLike.map==="function"){throw new Error("A Source-like object with a 'map' method must also provide an 'updateHash' method")}e.update(this.buffer())}}e.exports=CompatSource},944:function(e,t,n){"use strict";const s=n(598);const i=n(891);const{SourceNode:r,SourceMapConsumer:u}=n(241);const{SourceListMap:o,fromStringWithSourceMap:f}=n(728);const{getSourceAndMap:c,getMap:h}=n(791);const a=new WeakSet;class ConcatSource extends s{constructor(){super();this._children=[];for(let e=0;e<arguments.length;e++){const t=arguments[e];if(t instanceof ConcatSource){for(const e of t._children){this._children.push(e)}}else{this._children.push(t)}}this._isOptimized=arguments.length===0}getChildren(){if(!this._isOptimized)this._optimize();return this._children}add(e){if(e instanceof ConcatSource){for(const t of e._children){this._children.push(t)}}else{this._children.push(e)}this._isOptimized=false}addAllSkipOptimizing(e){for(const t of e){this._children.push(t)}}buffer(){if(!this._isOptimized)this._optimize();const e=[];for(const t of this._children){if(typeof t.buffer==="function"){e.push(t.buffer())}else{const n=t.source();if(Buffer.isBuffer(n)){e.push(n)}else{e.push(Buffer.from(n,"utf-8"))}}}return Buffer.concat(e)}source(){if(!this._isOptimized)this._optimize();let e="";for(const t of this._children){e+=t.source()}return e}size(){if(!this._isOptimized)this._optimize();let e=0;for(const t of this._children){e+=t.size()}return e}map(e){return h(this,e)}sourceAndMap(e){return c(this,e)}node(e){if(!this._isOptimized)this._optimize();const t=new r(null,null,null,this._children.map(function(t){if(typeof t.node==="function")return t.node(e);const n=t.sourceAndMap(e);if(n.map){return r.fromStringWithSourceMap(n.source,new u(n.map))}else{return n.source}}));return t}listMap(e){if(!this._isOptimized)this._optimize();const t=new o;for(const n of this._children){if(typeof n==="string"){t.add(n)}else if(typeof n.listMap==="function"){t.add(n.listMap(e))}else{const s=n.sourceAndMap(e);if(s.map){t.add(f(s.source,s.map))}else{t.add(s.source)}}}return t}updateHash(e){if(!this._isOptimized)this._optimize();e.update("ConcatSource");for(const t of this._children){t.updateHash(e)}}_optimize(){const e=[];let t=undefined;let n=undefined;const s=e=>{if(n===undefined){n=e}else if(Array.isArray(n)){n.push(e)}else{n=[typeof n==="string"?n:n.source(),e]}};const r=e=>{if(n===undefined){n=e}else if(Array.isArray(n)){n.push(e.source())}else{n=[typeof n==="string"?n:n.source(),e.source()]}};const u=()=>{if(Array.isArray(n)){const t=new i(n.join(""));a.add(t);e.push(t)}else if(typeof n==="string"){const t=new i(n);a.add(t);e.push(t)}else{e.push(n)}};for(const i of this._children){if(typeof i==="string"){if(t===undefined){t=i}else{t+=i}}else{if(t!==undefined){s(t);t=undefined}if(a.has(i)){r(i)}else{if(n!==undefined){u();n=undefined}e.push(i)}}}if(t!==undefined){s(t)}if(n!==undefined){u()}this._children=e;this._isOptimized=true}}e.exports=ConcatSource},389:function(e,t,n){"use strict";const s=n(598);const{SourceNode:i}=n(241);const{SourceListMap:r}=n(728);const{getSourceAndMap:u,getMap:o}=n(791);const f=/(?!$)[^\n\r;{}]*[\n\r;{}]*/g;function _splitCode(e){return e.match(f)||[]}class OriginalSource extends s{constructor(e,t){super();const n=Buffer.isBuffer(e);this._value=n?undefined:e;this._valueAsBuffer=n?e:undefined;this._name=t}getName(){return this._name}source(){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return this._value}buffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}return this._valueAsBuffer}map(e){return o(this,e)}sourceAndMap(e){return u(this,e)}node(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}const t=this._value;const n=this._name;const s=t.split("\n");const r=new i(null,null,null,s.map(function(t,r){let u=0;if(e&&e.columns===false){const e=t+(r!==s.length-1?"\n":"");return new i(r+1,0,n,e)}return new i(null,null,null,_splitCode(t+(r!==s.length-1?"\n":"")).map(function(e){if(/^\s*$/.test(e)){u+=e.length;return e}const t=new i(r+1,u,n,e);u+=e.length;return t}))}));r.setSourceContent(n,t);return r}listMap(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return new r(this._value,this._name,this._value)}updateHash(e){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}e.update("OriginalSource");e.update(this._valueAsBuffer);e.update(this._name||"")}}e.exports=OriginalSource},193:function(e,t,n){"use strict";const s=n(598);const i=n(891);const{SourceNode:r}=n(241);const{getSourceAndMap:u,getMap:o}=n(791);const f=/\n(?=.|\s)/g;class PrefixSource extends s{constructor(e,t){super();this._source=typeof t==="string"||Buffer.isBuffer(t)?new i(t,true):t;this._prefix=e}getPrefix(){return this._prefix}original(){return this._source}source(){const e=this._source.source();const t=this._prefix;return t+e.replace(f,"\n"+t)}map(e){return o(this,e)}sourceAndMap(e){return u(this,e)}node(e){const t=this._source.node(e);const n=this._prefix;const s=[];const i=new r;t.walkSourceContents(function(e,t){i.setSourceContent(e,t)});let u=true;t.walk(function(e,t){const i=e.split(/(\n)/);for(let e=0;e<i.length;e+=2){const o=e+1<i.length;const f=i[e]+(o?"\n":"");if(f){if(u){s.push(n)}s.push(new r(t.line,t.column,t.source,f,t.name));u=o}}});i.add(s);return i}listMap(e){const t=this._prefix;const n=this._source.listMap(e);let s=true;return n.mapGeneratedCode(function(e){let n=e.replace(f,"\n"+t);if(s)n=t+n;s=e.charCodeAt(e.length-1)===10;return n})}updateHash(e){e.update("PrefixSource");this._source.updateHash(e);e.update(this._prefix)}}e.exports=PrefixSource},891:function(e,t,n){"use strict";const s=n(598);const{SourceNode:i}=n(241);const{SourceListMap:r}=n(728);class RawSource extends s{constructor(e,t=false){super();const n=Buffer.isBuffer(e);if(!n&&typeof e!=="string"){throw new TypeError("argument 'value' must be either string of Buffer")}this._valueIsBuffer=!t&&n;this._value=t&&n?undefined:e;this._valueAsBuffer=n?e:undefined}isBuffer(){return this._valueIsBuffer}source(){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return this._value}buffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}return this._valueAsBuffer}map(e){return null}node(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return new i(null,null,null,this._value)}listMap(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return new r(this._value)}updateHash(e){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}e.update("RawSource");e.update(this._valueAsBuffer)}}e.exports=RawSource},588:function(e,t,n){"use strict";const s=n(598);const{SourceNode:i}=n(241);const{getSourceAndMap:r,getMap:u,getNode:o,getListMap:f}=n(791);class Replacement{constructor(e,t,n,s,i){this.start=e;this.end=t;this.content=n;this.insertIndex=s;this.name=i}}class ReplaceSource extends s{constructor(e,t){super();this._source=e;this._name=t;this._replacements=[];this._isSorted=true}getName(){return this._name}getReplacements(){const e=Array.from(this._replacements);e.sort((e,t)=>{return e.insertIndex-t.insertIndex});return e}replace(e,t,n,s){if(typeof n!=="string")throw new Error("insertion must be a string, but is a "+typeof n);this._replacements.push(new Replacement(e,t,n,this._replacements.length,s));this._isSorted=false}insert(e,t,n){if(typeof t!=="string")throw new Error("insertion must be a string, but is a "+typeof t+": "+t);this._replacements.push(new Replacement(e,e-1,t,this._replacements.length,n));this._isSorted=false}source(){return this._replaceString(this._source.source())}map(e){if(this._replacements.length===0){return this._source.map(e)}return u(this,e)}sourceAndMap(e){if(this._replacements.length===0){return this._source.sourceAndMap(e)}return r(this,e)}original(){return this._source}_sortReplacements(){if(this._isSorted)return;this._replacements.sort(function(e,t){const n=t.end-e.end;if(n!==0)return n;const s=t.start-e.start;if(s!==0)return s;return t.insertIndex-e.insertIndex});this._isSorted=true}_replaceString(e){if(typeof e!=="string")throw new Error("str must be a string, but is a "+typeof e+": "+e);this._sortReplacements();const t=[e];this._replacements.forEach(function(e){const n=t.pop();const s=this._splitString(n,Math.floor(e.end+1));const i=this._splitString(s[0],Math.floor(e.start));t.push(s[1],e.content,i[0])},this);let n="";for(let e=t.length-1;e>=0;--e){n+=t[e]}return n}node(e){const t=o(this._source,e);if(this._replacements.length===0){return t}this._sortReplacements();const n=new ReplacementEnumerator(this._replacements);const s=[];let r=0;const u=Object.create(null);const f=Object.create(null);const c=new i;t.walkSourceContents(function(e,t){c.setSourceContent(e,t);u["$"+e]=t});const h=this._replaceInStringNode.bind(this,s,n,function getOriginalSource(e){const t="$"+e.source;let n=f[t];if(!n){const e=u[t];if(!e)return null;n=e.split("\n").map(function(e){return e+"\n"});f[t]=n}if(e.line>n.length)return null;const s=n[e.line-1];return s.substr(e.column)});t.walk(function(e,t){r=h(e,r,t)});const a=n.footer();if(a){s.push(a)}c.add(s);return c}listMap(e){let t=f(this._source,e);this._sortReplacements();let n=0;const s=this._replacements;let i=s.length-1;let r=0;t=t.mapGeneratedCode(function(e){const t=n+e.length;if(r>e.length){r-=e.length;e=""}else{if(r>0){e=e.substr(r);n+=r;r=0}let u="";while(i>=0&&s[i].start<t){const o=s[i];const f=Math.floor(o.start);const c=Math.floor(o.end+1);const h=e.substr(0,Math.max(0,f-n));if(c<=t){const t=e.substr(Math.max(0,c-n));u+=h+o.content;e=t;n=Math.max(n,c)}else{u+=h+o.content;e="";r=c-t}i--}e=u+e}n=t;return e});let u="";while(i>=0){u+=s[i].content;i--}if(u){t.add(u)}return t}_splitString(e,t){return t<=0?["",e]:[e.substr(0,t),e.substr(t)]}_replaceInStringNode(e,t,n,s,r,u){let o=undefined;do{let f=t.position-r;if(f<0){f=0}if(f>=s.length||t.done){if(t.emit){const t=new i(u.line,u.column,u.source,s,u.name);e.push(t)}return r+s.length}const c=u.column;let h;if(f>0){h=s.slice(0,f);if(o===undefined){o=n(u)}if(o&&o.length>=f&&o.startsWith(h)){u.column+=f;o=o.substr(f)}}const a=t.next();if(!a){if(f>0){const t=new i(u.line,c,u.source,h,u.name);e.push(t)}if(t.value){e.push(new i(u.line,u.column,u.source,t.value,u.name||t.name))}}s=s.substr(f);r+=f}while(true)}updateHash(e){this._sortReplacements();e.update("ReplaceSource");this._source.updateHash(e);e.update(this._name||"");for(const t of this._replacements){e.update(`${t.start}`);e.update(`${t.end}`);e.update(`${t.content}`);e.update(`${t.insertIndex}`);e.update(`${t.name}`)}}}class ReplacementEnumerator{constructor(e){this.replacements=e||[];this.index=this.replacements.length;this.done=false;this.emit=false;this.next()}next(){if(this.done)return true;if(this.emit){const e=this.replacements[this.index];const t=Math.floor(e.end+1);this.position=t;this.value=e.content;this.name=e.name}else{this.index--;if(this.index<0){this.done=true}else{const e=this.replacements[this.index];const t=Math.floor(e.start);this.position=t}}if(this.position<0)this.position=0;this.emit=!this.emit;return this.emit}footer(){if(!this.done&&!this.emit)this.next();if(this.done){return[]}else{let e="";for(let t=this.index;t>=0;t--){const n=this.replacements[t];e+=n.content}return e}}}e.exports=ReplaceSource},271:function(e,t,n){"use strict";const s=n(598);class SizeOnlySource extends s{constructor(e){super();this._size=e}_error(){return new Error("Content and Map of this Source is not available (only size() is supported)")}size(){return this._size}source(){throw this._error()}buffer(){throw this._error()}map(e){throw this._error()}updateHash(){throw this._error()}}e.exports=SizeOnlySource},598:function(e){"use strict";class Source{source(){throw new Error("Abstract")}buffer(){const e=this.source();if(Buffer.isBuffer(e))return e;return Buffer.from(e,"utf-8")}size(){return this.buffer().length}map(e){return null}sourceAndMap(e){return{source:this.source(),map:this.map(e)}}updateHash(e){throw new Error("Abstract")}}e.exports=Source},287:function(e,t,n){"use strict";const s=n(598);const{SourceNode:i,SourceMapConsumer:r}=n(241);const{SourceListMap:u,fromStringWithSourceMap:o}=n(728);const{getSourceAndMap:f,getMap:c}=n(791);const h=n(462);class SourceMapSource extends s{constructor(e,t,n,s,i,r){super();const u=Buffer.isBuffer(e);this._valueAsString=u?undefined:e;this._valueAsBuffer=u?e:undefined;this._name=t;this._hasSourceMap=!!n;const o=Buffer.isBuffer(n);const f=typeof n==="string";this._sourceMapAsObject=o||f?undefined:n;this._sourceMapAsString=f?n:undefined;this._sourceMapAsBuffer=o?n:undefined;this._hasOriginalSource=!!s;const c=Buffer.isBuffer(s);this._originalSourceAsString=c?undefined:s;this._originalSourceAsBuffer=c?s:undefined;this._hasInnerSourceMap=!!i;const h=Buffer.isBuffer(i);const a=typeof i==="string";this._innerSourceMapAsObject=h||a?undefined:i;this._innerSourceMapAsString=a?i:undefined;this._innerSourceMapAsBuffer=h?i:undefined;this._removeOriginalSource=r}_ensureValueBuffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._valueAsString,"utf-8")}}_ensureValueString(){if(this._valueAsString===undefined){this._valueAsString=this._valueAsBuffer.toString("utf-8")}}_ensureOriginalSourceBuffer(){if(this._originalSourceAsBuffer===undefined&&this._hasOriginalSource){this._originalSourceAsBuffer=Buffer.from(this._originalSourceAsString,"utf-8")}}_ensureOriginalSourceString(){if(this._originalSourceAsString===undefined&&this._hasOriginalSource){this._originalSourceAsString=this._originalSourceAsBuffer.toString("utf-8")}}_ensureInnerSourceMapObject(){if(this._innerSourceMapAsObject===undefined&&this._hasInnerSourceMap){this._ensureInnerSourceMapString();this._innerSourceMapAsObject=JSON.parse(this._innerSourceMapAsString)}}_ensureInnerSourceMapBuffer(){if(this._innerSourceMapAsBuffer===undefined&&this._hasInnerSourceMap){this._ensureInnerSourceMapString();this._innerSourceMapAsBuffer=Buffer.from(this._innerSourceMapAsString,"utf-8")}}_ensureInnerSourceMapString(){if(this._innerSourceMapAsString===undefined&&this._hasInnerSourceMap){if(this._innerSourceMapAsBuffer!==undefined){this._innerSourceMapAsString=this._innerSourceMapAsBuffer.toString("utf-8")}else{this._innerSourceMapAsString=JSON.stringify(this._innerSourceMapAsObject)}}}_ensureSourceMapObject(){if(this._sourceMapAsObject===undefined){this._ensureSourceMapString();this._sourceMapAsObject=JSON.parse(this._sourceMapAsString)}}_ensureSourceMapBuffer(){if(this._sourceMapAsBuffer===undefined){this._ensureSourceMapString();this._sourceMapAsBuffer=Buffer.from(this._sourceMapAsString,"utf-8")}}_ensureSourceMapString(){if(this._sourceMapAsString===undefined){if(this._sourceMapAsBuffer!==undefined){this._sourceMapAsString=this._sourceMapAsBuffer.toString("utf-8")}else{this._sourceMapAsString=JSON.stringify(this._sourceMapAsObject)}}}getArgsAsBuffers(){this._ensureValueBuffer();this._ensureSourceMapBuffer();this._ensureOriginalSourceBuffer();this._ensureInnerSourceMapBuffer();return[this._valueAsBuffer,this._name,this._sourceMapAsBuffer,this._originalSourceAsBuffer,this._innerSourceMapAsBuffer,this._removeOriginalSource]}source(){this._ensureValueString();return this._valueAsString}map(e){if(!this._hasInnerSourceMap){this._ensureSourceMapObject();return this._sourceMapAsObject}return c(this,e)}sourceAndMap(e){if(!this._hasInnerSourceMap){this._ensureValueString();this._ensureSourceMapObject();return{source:this._valueAsString,map:this._sourceMapAsObject}}return f(this,e)}node(e){this._ensureValueString();this._ensureSourceMapObject();this._ensureOriginalSourceString();let t=i.fromStringWithSourceMap(this._valueAsString,new r(this._sourceMapAsObject));t.setSourceContent(this._name,this._originalSourceAsString);if(this._hasInnerSourceMap){this._ensureInnerSourceMapObject();t=h(t,new r(this._innerSourceMapAsObject),this._name,this._removeOriginalSource)}return t}listMap(e){this._ensureValueString();this._ensureSourceMapObject();e=e||{};if(e.module===false)return new u(this._valueAsString,this._name,this._valueAsString);return o(this._valueAsString,this._sourceMapAsObject)}updateHash(e){this._ensureValueBuffer();this._ensureSourceMapBuffer();this._ensureOriginalSourceBuffer();this._ensureInnerSourceMapBuffer();e.update("SourceMapSource");e.update(this._valueAsBuffer);e.update(this._sourceMapAsBuffer);if(this._hasOriginalSource){e.update(this._originalSourceAsBuffer)}if(this._hasInnerSourceMap){e.update(this._innerSourceMapAsBuffer)}e.update(this._removeOriginalSource?"true":"false")}}e.exports=SourceMapSource},462:function(e,t,n){"use strict";const s=n(241).SourceNode;const i=n(241).SourceMapConsumer;const r=function(e,t,n,r){const u=new s;const o=[];const f={};const c={};const h={};const a={};t.eachMapping(function(e){(c[e.generatedLine]=c[e.generatedLine]||[]).push(e)},null,i.GENERATED_ORDER);const l=(e,t)=>{const n=c[e];let s=0;let i=n.length;while(s<i){let e=s+i>>1;if(n[e].generatedColumn<=t){s=e+1}else{i=e}}if(s===0)return undefined;return n[s-1]};e.walkSourceContents(function(e,t){f["$"+e]=t});const d=f["$"+n];const p=d?d.split("\n"):undefined;e.walk(function(e,i){if(i.source===n&&i.line&&c[i.line]){let n=l(i.line,i.column);if(n){let r=false;let f;let c;let l;const d=n.source;if(p&&d&&(f=p[n.generatedLine-1])&&((l=a[d])||(c=t.sourceContentFor(d,true)))){if(!l){l=a[d]=c.split("\n")}const e=l[n.originalLine-1];if(e){const t=i.column-n.generatedColumn;if(t>0){const s=f.slice(n.generatedColumn,i.column);const r=e.slice(n.originalColumn,n.originalColumn+t);if(s===r){n=Object.assign({},n,{originalColumn:n.originalColumn+t,generatedColumn:i.column,name:undefined})}}if(!n.name&&i.name){r=e.slice(n.originalColumn,n.originalColumn+i.name.length)===i.name}}}let _=n.source;if(_&&_!=="."){o.push(new s(n.originalLine,n.originalColumn,_,e,r?i.name:n.name));if(!("$"+_ in h)){h["$"+_]=true;const e=t.sourceContentFor(_,true);if(e){u.setSourceContent(_,e)}}return}}}if(r&&i.source===n||!i.source){o.push(e);return}const d=i.source;o.push(new s(i.line,i.column,d,e,i.name));if("$"+d in f){if(!("$"+d in h)){u.setSourceContent(d,f["$"+d]);delete f["$"+d]}}});u.add(o);return u};e.exports=r},791:function(e,t,n){"use strict";const{SourceNode:s,SourceMapConsumer:i}=n(241);const{SourceListMap:r,fromStringWithSourceMap:u}=n(728);t.getSourceAndMap=((e,t)=>{let n;let s;if(t&&t.columns===false){const i=e.listMap(t).toStringWithSourceMap({file:"x"});n=i.source;s=i.map}else{const i=e.node(t).toStringWithSourceMap({file:"x"});n=i.code;s=i.map.toJSON()}if(!s||!s.sources||s.sources.length===0)s=null;return{source:n,map:s}});t.getMap=((e,t)=>{let n;if(t&&t.columns===false){n=e.listMap(t).toStringWithSourceMap({file:"x"}).map}else{n=e.node(t).toStringWithSourceMap({file:"x"}).map.toJSON()}if(!n||!n.sources||n.sources.length===0)return null;return n});t.getNode=((e,t)=>{if(typeof e.node==="function"){return e.node(t)}else{const n=e.sourceAndMap(t);if(n.map){return s.fromStringWithSourceMap(n.source,new i(n.map))}else{return new s(null,null,null,n.source)}}});t.getListMap=((e,t)=>{if(typeof e.listMap==="function"){return e.listMap(t)}else{const n=e.sourceAndMap(t);if(n.map){return u(n.source,n.map)}else{return new r(n.source)}}})},351:function(e,t,n){const s=(e,n)=>{let s;Object.defineProperty(t,e,{get:()=>{if(n!==undefined){s=n();n=undefined}return s},configurable:true})};s("Source",()=>n(598));s("RawSource",()=>n(891));s("OriginalSource",()=>n(389));s("SourceMapSource",()=>n(287));s("CachedSource",()=>n(357));s("ConcatSource",()=>n(944));s("ReplaceSource",()=>n(588));s("PrefixSource",()=>n(193));s("SizeOnlySource",()=>n(271));s("CompatSource",()=>n(973))},241:function(e){"use strict";e.exports=require("next/dist/compiled/source-map")}};var t={};function __nccwpck_require__(n){if(t[n]){return t[n].exports}var s=t[n]={exports:{}};var i=true;try{e[n](s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return s.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(351)}();
\ No newline at end of file
module.exports=function(){var s={71:function(s,t,e){"use strict";const f=e(413);const i=e(116);const r=e(979);const u=e(404);const h=s=>{if(typeof s!=="object"||!s)return s;const t=Object.assign({},s);if(s.mappings){t.mappings=Buffer.from(s.mappings,"utf-8")}if(s.sourcesContent){t.sourcesContent=s.sourcesContent.map(s=>s&&Buffer.from(s,"utf-8"))}return t};const c=s=>{if(typeof s!=="object"||!s)return s;const t=Object.assign({},s);if(s.mappings){t.mappings=s.mappings.toString("utf-8")}if(s.sourcesContent){t.sourcesContent=s.sourcesContent.map(s=>s&&s.toString("utf-8"))}return t};class CachedSource extends f{constructor(s,t){super();this._source=s;this._cachedSourceType=t?t.source:undefined;this._cachedSource=undefined;this._cachedBuffer=t?t.buffer:undefined;this._cachedSize=t?t.size:undefined;this._cachedMaps=t?t.maps:new Map;this._cachedHashUpdate=t?t.hash:undefined}getCachedData(){const s=new Map;for(const t of this._cachedMaps){let e=t[1];if(e.bufferedMap===undefined){e.bufferedMap=h(this._getMapFromCacheEntry(e))}s.set(t[0],{map:undefined,bufferedMap:e.bufferedMap})}if(this._cachedSource){this.buffer()}return{buffer:this._cachedBuffer,source:this._cachedSourceType!==undefined?this._cachedSourceType:typeof this._cachedSource==="string"?true:Buffer.isBuffer(this._cachedSource)?false:undefined,size:this._cachedSize,maps:s,hash:this._cachedHashUpdate}}originalLazy(){return this._source}original(){if(typeof this._source==="function")this._source=this._source();return this._source}source(){const s=this._getCachedSource();if(s!==undefined)return s;return this._cachedSource=this.original().source()}_getMapFromCacheEntry(s){if(s.map!==undefined){return s.map}else if(s.bufferedMap!==undefined){return s.map=c(s.bufferedMap)}}_getCachedSource(){if(this._cachedSource!==undefined)return this._cachedSource;if(this._cachedBuffer&&this._cachedSourceType!==undefined){return this._cachedSource=this._cachedSourceType?this._cachedBuffer.toString("utf-8"):this._cachedBuffer}}buffer(){if(this._cachedBuffer!==undefined)return this._cachedBuffer;if(this._cachedSource!==undefined){if(Buffer.isBuffer(this._cachedSource)){return this._cachedBuffer=this._cachedSource}return this._cachedBuffer=Buffer.from(this._cachedSource,"utf-8")}if(typeof this.original().buffer==="function"){return this._cachedBuffer=this.original().buffer()}const s=this.source();if(Buffer.isBuffer(s)){return this._cachedBuffer=s}return this._cachedBuffer=Buffer.from(s,"utf-8")}size(){if(this._cachedSize!==undefined)return this._cachedSize;if(this._cachedBuffer!==undefined){return this._cachedSize=this._cachedBuffer.length}const s=this._getCachedSource();if(s!==undefined){return this._cachedSize=Buffer.byteLength(s)}return this._cachedSize=this.original().size()}sourceAndMap(s){const t=s?JSON.stringify(s):"{}";const e=this._cachedMaps.get(t);if(e!==undefined){const s=this._getMapFromCacheEntry(e);return{source:this.source(),map:s}}let f=this._getCachedSource();let i;if(f!==undefined){i=this.original().map(s)}else{const t=this.original().sourceAndMap(s);f=t.source;i=t.map;this._cachedSource=f}this._cachedMaps.set(t,{map:i,bufferedMap:undefined});return{source:f,map:i}}streamChunks(s,t,e,f){const h=s?JSON.stringify(s):"{}";if(this._cachedMaps.has(h)&&(this._cachedBuffer!==undefined||this._cachedSource!==undefined)){const{source:u,map:h}=this.sourceAndMap(s);if(h){return i(u,h,t,e,f,!!(s&&s.finalSource),true)}else{return r(u,t,e,f,!!(s&&s.finalSource))}}const{result:c,source:o,map:_}=u(this.original(),s,t,e,f);this._cachedSource=o;this._cachedMaps.set(h,{map:_,bufferedMap:undefined});return c}map(s){const t=s?JSON.stringify(s):"{}";const e=this._cachedMaps.get(t);if(e!==undefined){return this._getMapFromCacheEntry(e)}const f=this.original().map(s);this._cachedMaps.set(t,{map:f,bufferedMap:undefined});return f}updateHash(s){if(this._cachedHashUpdate!==undefined){for(const t of this._cachedHashUpdate)s.update(t);return}const t=[];let e=undefined;const f={update:s=>{if(typeof s==="string"&&s.length<10240){if(e===undefined){e=s}else{e+=s;if(e.length>102400){t.push(Buffer.from(e));e=undefined}}}else{if(e!==undefined){t.push(Buffer.from(e));e=undefined}t.push(s)}}};this.original().updateHash(f);if(e!==undefined){t.push(Buffer.from(e))}for(const e of t)s.update(e);this._cachedHashUpdate=t}}s.exports=CachedSource},387:function(s,t,e){"use strict";const f=e(413);class CompatSource extends f{static from(s){return s instanceof f?s:new CompatSource(s)}constructor(s){super();this._sourceLike=s}source(){return this._sourceLike.source()}buffer(){if(typeof this._sourceLike.buffer==="function"){return this._sourceLike.buffer()}return super.buffer()}size(){if(typeof this._sourceLike.size==="function"){return this._sourceLike.size()}return super.size()}map(s){if(typeof this._sourceLike.map==="function"){return this._sourceLike.map(s)}return super.map(s)}sourceAndMap(s){if(typeof this._sourceLike.sourceAndMap==="function"){return this._sourceLike.sourceAndMap(s)}return super.sourceAndMap(s)}updateHash(s){if(typeof this._sourceLike.updateHash==="function"){return this._sourceLike.updateHash(s)}if(typeof this._sourceLike.map==="function"){throw new Error("A Source-like object with a 'map' method must also provide an 'updateHash' method")}s.update(this.buffer())}}s.exports=CompatSource},745:function(s,t,e){"use strict";const f=e(413);const i=e(835);const r=e(805);const{getMap:u,getSourceAndMap:h}=e(740);const c=new WeakSet;class ConcatSource extends f{constructor(){super();this._children=[];for(let s=0;s<arguments.length;s++){const t=arguments[s];if(t instanceof ConcatSource){for(const s of t._children){this._children.push(s)}}else{this._children.push(t)}}this._isOptimized=arguments.length===0}getChildren(){if(!this._isOptimized)this._optimize();return this._children}add(s){if(s instanceof ConcatSource){for(const t of s._children){this._children.push(t)}}else{this._children.push(s)}this._isOptimized=false}addAllSkipOptimizing(s){for(const t of s){this._children.push(t)}}buffer(){if(!this._isOptimized)this._optimize();const s=[];for(const t of this._children){if(typeof t.buffer==="function"){s.push(t.buffer())}else{const e=t.source();if(Buffer.isBuffer(e)){s.push(e)}else{s.push(Buffer.from(e,"utf-8"))}}}return Buffer.concat(s)}source(){if(!this._isOptimized)this._optimize();let s="";for(const t of this._children){s+=t.source()}return s}size(){if(!this._isOptimized)this._optimize();let s=0;for(const t of this._children){s+=t.size()}return s}map(s){return u(this,s)}sourceAndMap(s){return h(this,s)}streamChunks(s,t,e,f){if(!this._isOptimized)this._optimize();if(this._children.length===1)return this._children[0].streamChunks(s,t,e,f);let i=0;let u=0;let h=new Map;let c=new Map;const o=!!(s&&s.finalSource);let _="";let p=false;for(const d of this._children){const l=[];const n=[];let B=0;const{generatedLine:S,generatedColumn:A,source:v}=r(d,s,(s,e,f,r,h,c,d)=>{const S=e+i;const A=e===1?f+u:f;if(p){if(e!==1||f!==0){t(undefined,i+1,u,-1,-1,-1,-1)}p=false}const v=r<0||r>=l.length?-1:l[r];const y=d<0||d>=n.length?-1:n[d];B=v<0?0:e;if(o){if(s!==undefined)_+=s;if(v>=0){t(undefined,S,A,v,h,c,y)}}else{if(v<0){t(s,S,A,-1,-1,-1,-1)}else{t(s,S,A,v,h,c,y)}}},(s,t,f)=>{let i=h.get(t);if(i===undefined){h.set(t,i=h.size);e(i,t,f)}l[s]=i},(s,t)=>{let e=c.get(t);if(e===undefined){c.set(t,e=c.size);f(e,t)}n[s]=e});if(v!==undefined)_+=v;if(p){if(S!==1||A!==0){t(undefined,i+1,u,-1,-1,-1,-1);p=false}}if(S>1){u=A}else{u+=A}p=p||o&&B===S;i+=S-1}if(p){t(undefined,i+1,u,-1,-1,-1,-1)}return{generatedLine:i+1,generatedColumn:u,source:o?_:undefined}}updateHash(s){if(!this._isOptimized)this._optimize();s.update("ConcatSource");for(const t of this._children){t.updateHash(s)}}_optimize(){const s=[];let t=undefined;let e=undefined;const f=s=>{if(e===undefined){e=s}else if(Array.isArray(e)){e.push(s)}else{e=[typeof e==="string"?e:e.source(),s]}};const r=s=>{if(e===undefined){e=s}else if(Array.isArray(e)){e.push(s.source())}else{e=[typeof e==="string"?e:e.source(),s.source()]}};const u=()=>{if(Array.isArray(e)){const t=new i(e.join(""));c.add(t);s.push(t)}else if(typeof e==="string"){const t=new i(e);c.add(t);s.push(t)}else{s.push(e)}};for(const i of this._children){if(typeof i==="string"){if(t===undefined){t=i}else{t+=i}}else{if(t!==undefined){f(t);t=undefined}if(c.has(i)){r(i)}else{if(e!==undefined){u();e=undefined}s.push(i)}}}if(t!==undefined){f(t)}if(e!==undefined){u()}this._children=s;this._isOptimized=true}}s.exports=ConcatSource},214:function(s,t,e){"use strict";const{getMap:f,getSourceAndMap:i}=e(740);const r=e(370);const u=e(413);const h=/[^\n;{}]+[;{} \r\t]*\n?|[;{} \r\t]+\n?|\n/g;const c=/[^\n]+\n?|\n/g;class OriginalSource extends u{constructor(s,t){super();const e=Buffer.isBuffer(s);this._value=e?undefined:s;this._valueAsBuffer=e?s:undefined;this._name=t}getName(){return this._name}source(){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return this._value}buffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}return this._valueAsBuffer}map(s){return f(this,s)}sourceAndMap(s){return i(this,s)}streamChunks(s,t,e,f){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}e(0,this._name,this._value);const i=!!(s&&s.finalSource);if(!s||s.columns!==false){const s=this._value.match(h);let e=1;let f=0;if(s!==null){for(const r of s){const s=r.endsWith("\n");if(s&&r.length===1){if(!i)t(r,e,f,-1,-1,-1,-1)}else{const s=i?undefined:r;t(s,e,f,0,e,f,-1)}if(s){e++;f=0}else{f+=r.length}}}return{generatedLine:e,generatedColumn:f,source:i?this._value:undefined}}else if(i){const s=r(this._value);const{generatedLine:e,generatedColumn:f}=s;if(f===0){for(let s=1;s<e;s++)t(undefined,s,0,0,s,0,-1)}else{for(let s=1;s<=e;s++)t(undefined,s,0,0,s,0,-1)}return s}else{let s=1;const e=this._value.match(c);if(e!==null){let f;for(f of e){t(i?undefined:f,s,0,0,s,0,-1);s++}return f.endsWith("\n")?{generatedLine:e.length+1,generatedColumn:0,source:i?this._value:undefined}:{generatedLine:e.length,generatedColumn:f.length,source:i?this._value:undefined}}return{generatedLine:1,generatedColumn:0,source:i?this._value:undefined}}}updateHash(s){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}s.update("OriginalSource");s.update(this._valueAsBuffer);s.update(this._name||"")}}s.exports=OriginalSource},381:function(s,t,e){"use strict";const f=e(413);const i=e(835);const r=e(805);const{getMap:u,getSourceAndMap:h}=e(740);const c=/\n(?=.|\s)/g;class PrefixSource extends f{constructor(s,t){super();this._source=typeof t==="string"||Buffer.isBuffer(t)?new i(t,true):t;this._prefix=s}getPrefix(){return this._prefix}original(){return this._source}source(){const s=this._source.source();const t=this._prefix;return t+s.replace(c,"\n"+t)}map(s){return u(this,s)}sourceAndMap(s){return h(this,s)}streamChunks(s,t,e,f){const i=this._prefix;const u=i.length;const h=!!(s&&s.columns===false);const{generatedLine:o,generatedColumn:_,source:p}=r(this._source,s,(s,e,f,r,c,o,_)=>{if(f!==0){f+=u}else if(s!==undefined){if(h||r<0){s=i+s}else{t(i,e,f,-1,-1,-1,-1);f+=u}}else if(!h){f+=u}t(s,e,f,r,c,o,_)},e,f);return{generatedLine:o,generatedColumn:_===0?0:u+_,source:p!==undefined?i+p.replace(c,"\n"+i):undefined}}updateHash(s){s.update("PrefixSource");this._source.updateHash(s);s.update(this._prefix)}}s.exports=PrefixSource},835:function(s,t,e){"use strict";const f=e(979);const i=e(413);class RawSource extends i{constructor(s,t=false){super();const e=Buffer.isBuffer(s);if(!e&&typeof s!=="string"){throw new TypeError("argument 'value' must be either string of Buffer")}this._valueIsBuffer=!t&&e;this._value=t&&e?undefined:s;this._valueAsBuffer=e?s:undefined}isBuffer(){return this._valueIsBuffer}source(){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return this._value}buffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}return this._valueAsBuffer}map(s){return null}streamChunks(s,t,e,i){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return f(this._value,t,e,i,!!(s&&s.finalSource))}updateHash(s){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}s.update("RawSource");s.update(this._valueAsBuffer)}}s.exports=RawSource},930:function(s,t,e){"use strict";const{getMap:f,getSourceAndMap:i}=e(740);const r=e(805);const u=e(413);const h=typeof process==="object"&&process.versions&&typeof process.versions.v8==="string"&&!/^[0-6]\./.test(process.versions.v8);const c=536870912;const o=/[^\n]+\n?|\n/g;class Replacement{constructor(s,t,e,f){this.start=s;this.end=t;this.content=e;this.name=f;if(!h){this.index=-1}}}class ReplaceSource extends u{constructor(s,t){super();this._source=s;this._name=t;this._replacements=[];this._isSorted=true}getName(){return this._name}getReplacements(){this._sortReplacements();return this._replacements}replace(s,t,e,f){if(typeof e!=="string")throw new Error("insertion must be a string, but is a "+typeof e);this._replacements.push(new Replacement(s,t,e,f));this._isSorted=false}insert(s,t,e){if(typeof t!=="string")throw new Error("insertion must be a string, but is a "+typeof t+": "+t);this._replacements.push(new Replacement(s,s-1,t,e));this._isSorted=false}source(){if(this._replacements.length===0){return this._source.source()}let s=this._source.source();let t=0;const e=[];this._sortReplacements();for(const f of this._replacements){const i=Math.floor(f.start);const r=Math.floor(f.end+1);if(t<i){const f=i-t;e.push(s.slice(0,f));s=s.slice(f);t=i}e.push(f.content);if(t<r){const e=r-t;s=s.slice(e);t=r}}e.push(s);return e.join("")}map(s){if(this._replacements.length===0){return this._source.map(s)}return f(this,s)}sourceAndMap(s){if(this._replacements.length===0){return this._source.sourceAndMap(s)}return i(this,s)}original(){return this._source}_sortReplacements(){if(this._isSorted)return;if(h){this._replacements.sort(function(s,t){const e=s.start-t.start;if(e!==0)return e;const f=s.end-t.end;if(f!==0)return f;return 0})}else{this._replacements.forEach((s,t)=>s.index=t);this._replacements.sort(function(s,t){const e=s.start-t.start;if(e!==0)return e;const f=s.end-t.end;if(f!==0)return f;return s.index-t.index})}this._isSorted=true}streamChunks(s,t,e,f){this._sortReplacements();const i=this._replacements;let u=0;let h=0;let _=-1;let p=h<i.length?Math.floor(i[h].start):c;let d=0;let l=0;let n=0;const B=[];const S=new Map;const A=[];const v=(s,t,e,f)=>{let i=s<B.length?B[s]:undefined;if(i===undefined)return false;if(typeof i==="string"){i=i.match(o)||[];B[s]=i}const r=t<=i.length?i[t-1]:null;if(r===null)return false;return r.slice(e,e+f.length)===f};let{generatedLine:y,generatedColumn:z}=r(this._source,Object.assign({},s,{finalSource:false}),(s,e,r,o,B,y,z)=>{let M=0;let j=u+s.length;if(_>u){if(_>=j){const t=e+d;if(s.endsWith("\n")){d--;if(n===t){l+=r}}else if(n===t){l-=s.length}else{l=-s.length;n=t}u=j;return}M=_-u;if(v(o,B,y,s.slice(0,M))){y+=M}u+=M;const t=e+d;if(n===t){l-=M}else{l=-M;n=t}r+=M}if(p<j){do{let g=e+d;if(p>u){const e=p-u;const f=s.slice(M,M+e);t(f,g,r+(g===n?l:0),o,B,y,z<0||z>=A.length?-1:A[z]);r+=e;M+=e;u=p;if(v(o,B,y,f)){y+=f.length}}const H=/[^\n]+\n?|\n/g;const{content:b,name:W}=i[h];let w=H.exec(b);let J=z;if(o>=0&&W){let s=S.get(W);if(s===undefined){s=S.size;S.set(W,s);f(s,W)}J=s}while(w!==null){const s=w[0];t(s,g,r+(g===n?l:0),o,B,y,J);J=-1;w=H.exec(b);if(w===null&&!s.endsWith("\n")){if(n===g){l+=s.length}else{l=s.length;n=g}}else{d++;g++;l=-r;n=g}}_=Math.max(_,Math.floor(i[h].end+1));h++;p=h<i.length?Math.floor(i[h].start):c;const U=s.length-j+_-M;if(U>0){if(_>=j){let t=e+d;if(s.endsWith("\n")){d--;if(n===t){l+=r}}else if(n===t){l-=s.length-M}else{l=M-s.length;n=t}u=j;return}const t=e+d;if(v(o,B,y,s.slice(M,M+U))){y+=U}M+=U;u+=U;if(n===t){l-=U}else{l=-U;n=t}r+=U}}while(p<j)}if(M<s.length){const f=M===0?s:s.slice(M);const i=e+d;t(f,i,r+(i===n?l:0),o,B,y,z<0?-1:A[z])}u=j},(s,t,f)=>{while(B.length<s)B.push(undefined);B[s]=f;e(s,t,f)},(s,t)=>{let e=S.get(t);if(e===undefined){e=S.size;S.set(t,e);f(e,t)}A[s]=e});let M="";for(;h<i.length;h++){M+=i[h].content}let j=y+d;const g=/[^\n]+\n?|\n/g;let H=g.exec(M);while(H!==null){const s=H[0];t(s,j,z+(j===n?l:0),-1,-1,-1,-1);H=g.exec(M);if(H===null&&!s.endsWith("\n")){if(n===j){l+=s.length}else{l=s.length;n=j}}else{d++;j++;l=-z;n=j}}return{generatedLine:j,generatedColumn:z+(j===n?l:0)}}updateHash(s){this._sortReplacements();s.update("ReplaceSource");this._source.updateHash(s);s.update(this._name||"");for(const t of this._replacements){s.update(`${t.start}${t.end}${t.content}${t.name}`)}}}s.exports=ReplaceSource},373:function(s,t,e){"use strict";const f=e(413);class SizeOnlySource extends f{constructor(s){super();this._size=s}_error(){return new Error("Content and Map of this Source is not available (only size() is supported)")}size(){return this._size}source(){throw this._error()}buffer(){throw this._error()}map(s){throw this._error()}updateHash(){throw this._error()}}s.exports=SizeOnlySource},413:function(s){"use strict";class Source{source(){throw new Error("Abstract")}buffer(){const s=this.source();if(Buffer.isBuffer(s))return s;return Buffer.from(s,"utf-8")}size(){return this.buffer().length}map(s){return null}sourceAndMap(s){return{source:this.source(),map:this.map(s)}}updateHash(s){throw new Error("Abstract")}}s.exports=Source},956:function(s,t,e){"use strict";const f=e(413);const i=e(116);const r=e(345);const{getMap:u,getSourceAndMap:h}=e(740);class SourceMapSource extends f{constructor(s,t,e,f,i,r){super();const u=Buffer.isBuffer(s);this._valueAsString=u?undefined:s;this._valueAsBuffer=u?s:undefined;this._name=t;this._hasSourceMap=!!e;const h=Buffer.isBuffer(e);const c=typeof e==="string";this._sourceMapAsObject=h||c?undefined:e;this._sourceMapAsString=c?e:undefined;this._sourceMapAsBuffer=h?e:undefined;this._hasOriginalSource=!!f;const o=Buffer.isBuffer(f);this._originalSourceAsString=o?undefined:f;this._originalSourceAsBuffer=o?f:undefined;this._hasInnerSourceMap=!!i;const _=Buffer.isBuffer(i);const p=typeof i==="string";this._innerSourceMapAsObject=_||p?undefined:i;this._innerSourceMapAsString=p?i:undefined;this._innerSourceMapAsBuffer=_?i:undefined;this._removeOriginalSource=r}_ensureValueBuffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._valueAsString,"utf-8")}}_ensureValueString(){if(this._valueAsString===undefined){this._valueAsString=this._valueAsBuffer.toString("utf-8")}}_ensureOriginalSourceBuffer(){if(this._originalSourceAsBuffer===undefined&&this._hasOriginalSource){this._originalSourceAsBuffer=Buffer.from(this._originalSourceAsString,"utf-8")}}_ensureOriginalSourceString(){if(this._originalSourceAsString===undefined&&this._hasOriginalSource){this._originalSourceAsString=this._originalSourceAsBuffer.toString("utf-8")}}_ensureInnerSourceMapObject(){if(this._innerSourceMapAsObject===undefined&&this._hasInnerSourceMap){this._ensureInnerSourceMapString();this._innerSourceMapAsObject=JSON.parse(this._innerSourceMapAsString)}}_ensureInnerSourceMapBuffer(){if(this._innerSourceMapAsBuffer===undefined&&this._hasInnerSourceMap){this._ensureInnerSourceMapString();this._innerSourceMapAsBuffer=Buffer.from(this._innerSourceMapAsString,"utf-8")}}_ensureInnerSourceMapString(){if(this._innerSourceMapAsString===undefined&&this._hasInnerSourceMap){if(this._innerSourceMapAsBuffer!==undefined){this._innerSourceMapAsString=this._innerSourceMapAsBuffer.toString("utf-8")}else{this._innerSourceMapAsString=JSON.stringify(this._innerSourceMapAsObject)}}}_ensureSourceMapObject(){if(this._sourceMapAsObject===undefined){this._ensureSourceMapString();this._sourceMapAsObject=JSON.parse(this._sourceMapAsString)}}_ensureSourceMapBuffer(){if(this._sourceMapAsBuffer===undefined){this._ensureSourceMapString();this._sourceMapAsBuffer=Buffer.from(this._sourceMapAsString,"utf-8")}}_ensureSourceMapString(){if(this._sourceMapAsString===undefined){if(this._sourceMapAsBuffer!==undefined){this._sourceMapAsString=this._sourceMapAsBuffer.toString("utf-8")}else{this._sourceMapAsString=JSON.stringify(this._sourceMapAsObject)}}}getArgsAsBuffers(){this._ensureValueBuffer();this._ensureSourceMapBuffer();this._ensureOriginalSourceBuffer();this._ensureInnerSourceMapBuffer();return[this._valueAsBuffer,this._name,this._sourceMapAsBuffer,this._originalSourceAsBuffer,this._innerSourceMapAsBuffer,this._removeOriginalSource]}source(){this._ensureValueString();return this._valueAsString}map(s){if(!this._hasInnerSourceMap){this._ensureSourceMapObject();return this._sourceMapAsObject}return u(this,s)}sourceAndMap(s){if(!this._hasInnerSourceMap){this._ensureValueString();this._ensureSourceMapObject();return{source:this._valueAsString,map:this._sourceMapAsObject}}return h(this,s)}streamChunks(s,t,e,f){this._ensureValueString();this._ensureSourceMapObject();this._ensureOriginalSourceString();if(this._hasInnerSourceMap){this._ensureInnerSourceMapObject();return r(this._valueAsString,this._sourceMapAsObject,this._name,this._originalSourceAsString,this._innerSourceMapAsObject,this._removeOriginalSource,t,e,f,!!(s&&s.finalSource),!!(s&&s.columns!==false))}else{return i(this._valueAsString,this._sourceMapAsObject,t,e,f,!!(s&&s.finalSource),!!(s&&s.columns!==false))}}updateHash(s){this._ensureValueBuffer();this._ensureSourceMapBuffer();this._ensureOriginalSourceBuffer();this._ensureInnerSourceMapBuffer();s.update("SourceMapSource");s.update(this._valueAsBuffer);s.update(this._sourceMapAsBuffer);if(this._hasOriginalSource){s.update(this._originalSourceAsBuffer)}if(this._hasInnerSourceMap){s.update(this._innerSourceMapAsBuffer)}s.update(this._removeOriginalSource?"true":"false")}}s.exports=SourceMapSource},975:function(s){"use strict";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");const e=32;const f=s=>{const t=s&&s.columns===false;return t?r():i()};const i=()=>{let s=1;let f=0;let i=0;let r=1;let u=0;let h=0;let c=false;let o=false;let _=true;return(p,d,l,n,B,S)=>{if(c&&s===p){if(l===i&&n===r&&B===u&&!o&&S<0){return""}}else{if(l<0){return""}}let A;if(s<p){A=";".repeat(p-s);s=p;f=0;_=false}else if(_){A="";_=false}else{A=","}const v=s=>{if(s===0){A+="A";return}const f=s>>>31&1;const i=s>>31;const r=s+i^i;let u=r<<1|f;for(;;){const s=u&31;u>>=5;if(u===0){A+=t[s];break}else{A+=t[s|e]}}};v(d-f);f=d;if(l>=0){c=true;v(l-i);i=l;v(n-r);r=n;v(B-u);u=B;if(S>=0){v(S-h);h=S;o=true}else{o=false}}else{c=false}return A}};const r=()=>{let s=0;let f=1;let i=0;let r=1;return(u,h,c,o,_,p)=>{let d="";if(c<0){return d}if(s===u){return d}while(f<u){d+=";";f++}const l=s=>{if(s===0){d+="A";return}const f=s>>>31&1;const i=s>>31;const r=s+i^i;let u=r<<1|f;for(;;){const s=u&31;u>>=5;if(u===0){d+=t[s];break}else{d+=t[s|e]}}};d+="A";if(c>=0){s=f;l(c-i);i=c;l(o-r);r=o;d+="A"}return d}};s.exports=f},740:function(s,t,e){"use strict";const f=e(975);t.getSourceAndMap=((s,t)=>{let e="";let i="";let r=[];let u=[];let h=[];const c=f(t);const{source:o}=s.streamChunks(Object.assign({},t,{finalSource:true}),(s,t,f,r,u,h,o)=>{if(s!==undefined)e+=s;i+=c(t,f,r,u,h,o)},(s,t,e)=>{while(r.length<s){r.push(null)}r[s]=t;if(e!==undefined){while(u.length<s){u.push(null)}u[s]=e}},(s,t)=>{while(h.length<s){h.push(null)}h[s]=t});return{source:o!==undefined?o:e,map:i.length>0?{version:3,file:"x",mappings:i,sources:r,sourcesContent:u.length>0?u:undefined,names:h}:null}});t.getMap=((s,t)=>{let e="";let i=[];let r=[];let u=[];const h=f(t);s.streamChunks(Object.assign({},t,{source:false,finalSource:true}),(s,t,f,i,r,u,c)=>{e+=h(t,f,i,r,u,c)},(s,t,e)=>{while(i.length<s){i.push(null)}i[s]=t;if(e!==undefined){while(r.length<s){r.push(null)}r[s]=e}},(s,t)=>{while(u.length<s){u.push(null)}u[s]=t});return e.length>0?{version:3,file:"x",mappings:e,sources:i,sourcesContent:r.length>0?r:undefined,names:u}:null})},370:function(s){"use strict";const t="\n".charCodeAt(0);const e=s=>{if(s===undefined){return{}}const e=s.lastIndexOf("\n");if(e===-1){return{generatedLine:1,generatedColumn:s.length,source:s}}let f=2;for(let i=0;i<e;i++){if(s.charCodeAt(i)===t)f++}return{generatedLine:f,generatedColumn:s.length-e-1,source:s}};s.exports=e},640:function(s){"use strict";const t=(s,t)=>{if(t<0)return null;const{sourceRoot:e,sources:f}=s;const i=f[t];if(!e)return i;if(e.endsWith("/"))return e+i;return e+"/"+i};s.exports=t},431:function(s){"use strict";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const e=32;const f=64;const i=f|1;const r=f|2;const u=31;const h=new Uint8Array("z".charCodeAt(0)+1);{h.fill(r);for(let s=0;s<t.length;s++){h[t.charCodeAt(s)]=s}h[",".charCodeAt(0)]=f;h[";".charCodeAt(0)]=i}const c=h.length-1;const o=(s,t)=>{const r=new Uint32Array([0,0,1,0,0]);let o=0;let _=0;let p=0;let d=1;for(let l=0;l<s.length;l++){const n=s.charCodeAt(l);if(n>c)continue;const B=h[n];if((B&f)!==0){if(o===1){t(d,r[0],-1,-1,-1,-1)}else if(o===4){t(d,r[0],r[1],r[2],r[3],-1)}else if(o===5){t(d,r[0],r[1],r[2],r[3],r[4])}o=0;if(B===i){d++;r[0]=0}}else if((B&e)===0){_|=B<<p;const s=_&1?-(_>>1):_>>1;r[o++]+=s;p=0;_=0}else{_|=(B&u)<<p;p+=5}}if(o===1){t(d,r[0],-1,-1,-1,-1)}else if(o===4){t(d,r[0],r[1],r[2],r[3],-1)}else if(o===5){t(d,r[0],r[1],r[2],r[3],r[4])}};s.exports=o},404:function(s,t,e){"use strict";const f=e(975);const i=e(805);const r=(s,t,e,r,u)=>{let h="";let c="";let o=[];let _=[];let p=[];const d=f(Object.assign({},t,{columns:true}));const l=!!(t&&t.finalSource);const{generatedLine:n,generatedColumn:B,source:S}=i(s,t,(s,t,f,i,r,u,o)=>{if(s!==undefined)h+=s;c+=d(t,f,i,r,u,o);return e(l?undefined:s,t,f,i,r,u,o)},(s,t,e)=>{while(o.length<s){o.push(null)}o[s]=t;if(e!==undefined){while(_.length<s){_.push(null)}_[s]=e}return r(s,t,e)},(s,t)=>{while(p.length<s){p.push(null)}p[s]=t;return u(s,t)});const A=S!==undefined?S:h;return{result:{generatedLine:n,generatedColumn:B,source:l?A:undefined},source:A,map:c.length>0?{version:3,file:"x",mappings:c,sources:o,sourcesContent:_.length>0?_:undefined,names:p}:null}};s.exports=r},805:function(s,t,e){"use strict";const f=e(979);const i=e(116);s.exports=((s,t,e,r,u)=>{if(typeof s.streamChunks==="function"){return s.streamChunks(t,e,r,u)}else{const h=s.sourceAndMap(t);if(h.map){return i(h.source,h.map,e,r,u,!!(t&&t.finalSource),!!(t&&t.columns!==false))}else{return f(h.source,e,r,u,!!(t&&t.finalSource))}}})},345:function(s,t,e){"use strict";const f=e(116);const i=/[^\n]+\n?|\n/g;const r=(s,t,e,r,u,h,c,o,_,p,d)=>{let l=new Map;let n=new Map;const B=[];const S=[];const A=[];let v=-2;const y=[];const z=[];const M=[];const j=[];const g=[];const H=[];const b=[];const W=(s,t)=>{if(s>b.length)return-1;const{mappingsData:e}=b[s-1];let f=0;let i=e.length/5;while(f<i){let s=f+i>>1;if(e[s*5]<=t){f=s+1}else{i=s}}if(f===0)return-1;return f-1};return f(s,t,(s,t,e,f,r,u,p)=>{if(f===v){const f=W(r,u);if(f!==-1){const{chunks:h,mappingsData:d}=b[r-1];const B=f*5;const v=d[B+1];const W=d[B+2];let w=d[B+3];let J=d[B+4];if(v>=0){const r=h[f];const b=d[B];const U=u-b;if(U>0){let s=v<j.length?j[v]:null;if(s===undefined){const t=M[v];s=t?t.match(i):null;j[v]=s}if(s!==null){const t=W<=s.length?s[W-1].slice(w,w+U):"";if(r.slice(0,U)===t){w+=U;J=-1}}}let q=v<y.length?y[v]:-2;if(q===-2){const[s,t]=v<z.length?z[v]:[null,undefined];let e=l.get(s);if(e===undefined){l.set(s,e=l.size);o(e,s,t)}q=e;y[v]=q}let $=-1;if(J>=0){$=J<g.length?g[J]:-2;if($===-2){const s=J<H.length?H[J]:undefined;if(s){let t=n.get(s);if(t===undefined){n.set(s,t=n.size);_(t,s)}$=t}else{$=-1}g[J]=$}}else if(p>=0){let s=j[v];if(s===undefined){const t=M[v];s=t?t.match(i):null;j[v]=s}const t=A[p];const e=W<=s.length?s[W-1].slice(w,w+t.length):"";if(t===e){$=p<S.length?S[p]:-2;if($===-2){const s=A[p];if(s){let t=n.get(s);if(t===undefined){n.set(s,t=n.size);_(t,s)}$=t}else{$=-1}S[p]=$}}}c(s,t,e,q,W,w,$);return}}if(h){c(s,t,e,-1,-1,-1,-1);return}}const d=f<0||f>=B.length?-1:B[f];if(d<0){c(s,t,e,-1,-1,-1,-1)}else{let f=-1;if(p>=0&&p<S.length){f=S[p];if(f===-2){const s=A[p];let t=n.get(s);if(t===undefined){n.set(s,t=n.size);_(t,s)}f=t;S[p]=f}}c(s,t,e,d,r,u,f)}},(s,t,i)=>{if(t===e){v=s;if(r!==undefined)i=r;f(i,u,(s,t,e,f,i,r,u)=>{while(b.length<t){b.push({mappingsData:[],chunks:[]})}const h=b[t-1];h.mappingsData.push(e,f,i,r,u);h.chunks.push(s)},(s,t,e)=>{M[s]=e;j[s]=undefined;y[s]=-2;z[s]=[t,e]},(s,t)=>{g[s]=-2;H[s]=t},false,d);if(h)return}let c=l.get(t);if(c===undefined){l.set(t,c=l.size);o(c,t,i)}B[s]=c},(s,t)=>{S[s]=-2;A[s]=t},p,d)};s.exports=r},979:function(s,t,e){"use strict";const f=e(370);const i=/(?:[^\n]+\n?|\n)/g;const r=(s,t,e,f)=>{let r=1;const u=s.match(i);if(u!==null){let s;for(s of u){t(s,r,0,-1,-1,-1,-1);r++}return s.endsWith("\n")?{generatedLine:u.length+1,generatedColumn:0}:{generatedLine:u.length,generatedColumn:s.length}}return{generatedLine:1,generatedColumn:0}};s.exports=((s,t,e,i,u)=>{return u?f(s):r(s,t,e,i)})},116:function(s,t,e){"use strict";const f=e(370);const i=e(640);const r=e(431);const u=/[^\n]+\n?|\n/g;const h=(s,t,e,f,h)=>{const c=s.match(u);if(c===null){return{generatedLine:1,generatedColumn:0}}const{sources:o,sourcesContent:_,names:p,mappings:d}=t;for(let s=0;s<o.length;s++){f(s,i(t,s),_&&_[s]||undefined)}if(p){for(let s=0;s<p.length;s++){h(s,p[s])}}let l=1;let n=0;let B=false;let S=-1;let A=-1;let v=-1;let y=-1;const z=(s,t,f,i,r,u)=>{if(B&&l<=c.length){let f;const i=l;const r=n;const u=c[l-1];if(s!==l){f=u.slice(n);l++;n=0}else{f=u.slice(n,t);n=t}if(f){e(f,i,r,S,A,v,y)}B=false}if(s>l&&n>0){if(l<=c.length){const s=c[l-1].slice(n);e(s,l,n,-1,-1,-1,-1)}l++;n=0}while(s>l){if(l<=c.length){e(c[l-1],l,0,-1,-1,-1,-1)}l++}if(t>n){if(l<=c.length){const s=c[l-1].slice(n,t);e(s,l,n,-1,-1,-1,-1)}n=t}if(f>=0){B=true;S=f;A=i;v=r;y=u}};r(d,z);z(c.length+1,0,-1,-1,-1,-1);const M=c[c.length-1];const j=M.endsWith("\n");return j?{generatedLine:c.length+1,generatedColumn:0}:{generatedLine:c.length,generatedColumn:M.length}};const c=(s,t,e,f,h)=>{const c=s.match(u);if(c===null){return{generatedLine:1,generatedColumn:0}}const{sources:o,sourcesContent:_,mappings:p}=t;for(let s=0;s<o.length;s++){f(s,i(t,s),_&&_[s]||undefined)}let d=1;const l=(s,t,f,i,r,u)=>{if(f<0||s<d)return;while(s>d){if(d<=c.length){e(c[d-1],d,0,-1,-1,-1,-1)}d++}if(s<=c.length){e(c[s-1],s,0,f,i,r,-1);d++}};r(p,l);for(;d<=c.length;d++){e(c[d-1],d,0,-1,-1,-1,-1)}const n=c[c.length-1];const B=n.endsWith("\n");return B?{generatedLine:c.length+1,generatedColumn:0}:{generatedLine:c.length,generatedColumn:n.length}};const o=(s,t,e,u,h)=>{const{sources:c,sourcesContent:o,names:_,mappings:p}=t;for(let s=0;s<c.length;s++){u(s,i(t,s),o&&o[s]||undefined)}if(_){for(let s=0;s<_.length;s++){h(s,_[s])}}let d=0;const l=(s,t,f,i,r,u)=>{if(f>=0){e(undefined,s,t,f,i,r,u);d=s}else if(d===s){e(undefined,s,t,-1,-1,-1,-1);d=0}};r(p,l);return f(s)};const _=(s,t,e,u,h)=>{const c=f(s);const{generatedLine:o,generatedColumn:_}=c;if(o===1&&_===0){return{generatedLine:1,generatedColumn:0}}const{sources:p,sourcesContent:d,mappings:l}=t;for(let s=0;s<p.length;s++){u(s,i(t,s),d&&d[s]||undefined)}let n=1;const B=(s,t,f,i,r,u)=>{if(f>=0&&n<=s&&s<=o){e(undefined,s,0,f,i,r,-1);n=s+1}};r(l,B);return c};s.exports=((s,t,e,f,i,r,u)=>{if(u){return r?o(s,t,e,f,i):h(s,t,e,f,i)}else{return r?_(s,t,e,f,i):c(s,t,e,f,i)}})},49:function(s,t,e){const f=(s,e)=>{let f;Object.defineProperty(t,s,{get:()=>{if(e!==undefined){f=e();e=undefined}return f},configurable:true})};f("Source",()=>e(413));f("RawSource",()=>e(835));f("OriginalSource",()=>e(214));f("SourceMapSource",()=>e(956));f("CachedSource",()=>e(71));f("ConcatSource",()=>e(745));f("ReplaceSource",()=>e(930));f("PrefixSource",()=>e(381));f("SizeOnlySource",()=>e(373));f("CompatSource",()=>e(387))}};var t={};function __nccwpck_require__(e){if(t[e]){return t[e].exports}var f=t[e]={exports:{}};var i=true;try{s[e](f,f.exports,__nccwpck_require__);i=false}finally{if(i)delete t[e]}return f.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(49)}();
\ No newline at end of file
......@@ -9,6 +9,7 @@ var $interceptModuleExecution$ = undefined;
var $moduleCache$ = undefined;
// eslint-disable-next-line no-unused-vars
var $hmrModuleData$ = undefined;
/** @type {() => Promise} */
var $hmrDownloadManifest$ = undefined;
var $hmrDownloadUpdateHandlers$ = undefined;
var $hmrInvalidateModuleHandlers$ = undefined;
......@@ -209,8 +210,12 @@ module.exports = function () {
function setStatus(newStatus) {
currentStatus = newStatus;
var results = [];
for (var i = 0; i < registeredStatusHandlers.length; i++)
registeredStatusHandlers[i].call(null, newStatus);
results[i] = registeredStatusHandlers[i].call(null, newStatus);
return Promise.all(results);
}
function trackBlockingPromise(promise) {
......@@ -219,7 +224,7 @@ module.exports = function () {
setStatus("prepare");
blockingPromises.push(promise);
waitForBlockingPromises(function () {
setStatus("ready");
return setStatus("ready");
});
return promise;
case "prepare":
......@@ -243,47 +248,47 @@ module.exports = function () {
if (currentStatus !== "idle") {
throw new Error("check() is only allowed in idle status");
}
setStatus("check");
return $hmrDownloadManifest$().then(function (update) {
if (!update) {
setStatus(applyInvalidatedModules() ? "ready" : "idle");
return null;
}
setStatus("prepare");
var updatedModules = [];
blockingPromises = [];
currentUpdateApplyHandlers = [];
return Promise.all(
Object.keys($hmrDownloadUpdateHandlers$).reduce(function (
promises,
key
) {
$hmrDownloadUpdateHandlers$[key](
update.c,
update.r,
update.m,
promises,
currentUpdateApplyHandlers,
updatedModules
);
return promises;
},
[])
).then(function () {
return waitForBlockingPromises(function () {
if (applyOnUpdate) {
return internalApply(applyOnUpdate);
} else {
setStatus("ready");
return setStatus("check")
.then($hmrDownloadManifest$)
.then(function (update) {
if (!update) {
return setStatus(applyInvalidatedModules() ? "ready" : "idle");
}
return updatedModules;
}
return setStatus("prepare").then(function () {
var updatedModules = [];
blockingPromises = [];
currentUpdateApplyHandlers = [];
return Promise.all(
Object.keys($hmrDownloadUpdateHandlers$).reduce(function (
promises,
key
) {
$hmrDownloadUpdateHandlers$[key](
update.c,
update.r,
update.m,
promises,
currentUpdateApplyHandlers,
updatedModules
);
return promises;
},
[])
).then(function () {
return waitForBlockingPromises(function () {
if (applyOnUpdate) {
return internalApply(applyOnUpdate);
} else {
return setStatus("ready").then(function () {
return updatedModules;
});
}
});
});
});
});
});
}
function hotApply(options) {
......@@ -312,21 +317,20 @@ module.exports = function () {
.filter(Boolean);
if (errors.length > 0) {
setStatus("abort");
return Promise.resolve().then(function () {
return setStatus("abort").then(function () {
throw errors[0];
});
}
// Now in "dispose" phase
setStatus("dispose");
var disposePromise = setStatus("dispose");
results.forEach(function (result) {
if (result.dispose) result.dispose();
});
// Now in "apply" phase
setStatus("apply");
var applyPromise = setStatus("apply");
var error;
var reportError = function (err) {
......@@ -345,25 +349,27 @@ module.exports = function () {
}
});
// handle errors in accept handlers and self accepted module load
if (error) {
setStatus("fail");
return Promise.resolve().then(function () {
throw error;
});
}
return Promise.all([disposePromise, applyPromise]).then(function () {
// handle errors in accept handlers and self accepted module load
if (error) {
return setStatus("fail").then(function () {
throw error;
});
}
if (queuedInvalidatedModules) {
return internalApply(options).then(function (list) {
outdatedModules.forEach(function (moduleId) {
if (list.indexOf(moduleId) < 0) list.push(moduleId);
if (queuedInvalidatedModules) {
return internalApply(options).then(function (list) {
outdatedModules.forEach(function (moduleId) {
if (list.indexOf(moduleId) < 0) list.push(moduleId);
});
return list;
});
return list;
});
}
}
setStatus("idle");
return Promise.resolve(outdatedModules);
return setStatus("idle").then(function () {
return outdatedModules;
});
});
}
function applyInvalidatedModules() {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -614,14 +614,14 @@ export async function ncc_webpack_sources(task, opts) {
.target('compiled/webpack-sources')
}
// eslint-disable-next-line camelcase
externals['webpack-sources2'] = 'next/dist/compiled/webpack-sources2'
export async function ncc_webpack_sources2(task, opts) {
externals['webpack-sources3'] = 'next/dist/compiled/webpack-sources3'
export async function ncc_webpack_sources3(task, opts) {
await task
.source(
opts.src || relative(__dirname, bundleRequire.resolve('webpack-sources2'))
opts.src || relative(__dirname, bundleRequire.resolve('webpack-sources3'))
)
.ncc({ packageName: 'webpack-sources2', externals, target: 'es5' })
.target('compiled/webpack-sources2')
.ncc({ packageName: 'webpack-sources3', externals, target: 'es5' })
.target('compiled/webpack-sources3')
}
// eslint-disable-next-line camelcase
externals['mini-css-extract-plugin'] =
......@@ -685,7 +685,7 @@ export async function ncc_webpack_bundle5(task, opts) {
externals: {
...externals,
'schema-utils': 'next/dist/compiled/schema-utils3',
'webpack-sources': 'next/dist/compiled/webpack-sources2',
'webpack-sources': 'next/dist/compiled/webpack-sources3',
},
minify: false,
target: 'es5',
......@@ -789,7 +789,7 @@ export async function ncc(task, opts) {
'ncc_webpack_bundle5',
'ncc_webpack_bundle_packages',
'ncc_webpack_sources',
'ncc_webpack_sources2',
'ncc_webpack_sources3',
'ncc_mini_css_extract_plugin',
],
opts
......
......@@ -182,9 +182,13 @@ export async function sandbox(
)
)
const root = portal.shadowRoot
return root.querySelector(
const frame = root.querySelector(
'[data-nextjs-codeframe], [data-nextjs-terminal]'
).innerText
)
if (!frame) {
throw new Error(`No source found in redbox`)
}
return frame.innerText
})
if (includeHeader) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment