@umijs/bundler-webpack 4.0.0-beta.9 → 4.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/compiled/autoprefixer/browserslist/index.d.ts +7 -7
  2. package/compiled/autoprefixer/index.js +3 -3
  3. package/compiled/autoprefixer/postcss/lib/container.d.ts +2 -2
  4. package/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts +55 -8
  5. package/compiled/autoprefixer/postcss/lib/input.d.ts +26 -6
  6. package/compiled/autoprefixer/postcss/lib/lazy-result.d.ts +11 -10
  7. package/compiled/autoprefixer/postcss/lib/no-work-result.d.ts +37 -0
  8. package/compiled/autoprefixer/postcss/lib/node.d.ts +36 -2
  9. package/compiled/autoprefixer/postcss/lib/postcss.d.ts +31 -30
  10. package/compiled/autoprefixer/postcss/lib/processor.d.ts +5 -4
  11. package/compiled/autoprefixer/postcss/lib/result.d.ts +3 -2
  12. package/compiled/autoprefixer/postcss/lib/warning.d.ts +37 -3
  13. package/compiled/babel-loader/index.js +2 -2
  14. package/compiled/fork-ts-checker-webpack-plugin/LICENSE +21 -0
  15. package/compiled/fork-ts-checker-webpack-plugin/fsevents.node +0 -0
  16. package/compiled/fork-ts-checker-webpack-plugin/index.js +49 -0
  17. package/compiled/fork-ts-checker-webpack-plugin/package.json +1 -0
  18. package/compiled/mini-css-extract-plugin/index.js +6769 -6731
  19. package/compiled/mini-css-extract-plugin/loader.js +1 -1
  20. package/compiled/mini-css-extract-plugin/utils.js +11 -6
  21. package/compiled/postcss-loader/index.js +1 -1
  22. package/compiled/react-refresh/index.js +3 -3
  23. package/compiled/sass-loader/index.js +1 -1
  24. package/compiled/schema-utils/ajv/dist/ajv.d.ts +16 -0
  25. package/compiled/schema-utils/ajv/dist/compile/codegen/code.d.ts +39 -0
  26. package/compiled/schema-utils/ajv/dist/compile/codegen/index.d.ts +79 -0
  27. package/compiled/schema-utils/ajv/dist/compile/codegen/scope.d.ts +79 -0
  28. package/compiled/schema-utils/ajv/dist/compile/errors.d.ts +13 -0
  29. package/compiled/schema-utils/ajv/dist/compile/index.d.ts +80 -0
  30. package/compiled/schema-utils/ajv/dist/compile/ref_error.d.ts +5 -0
  31. package/compiled/schema-utils/ajv/dist/compile/resolve.d.ts +12 -0
  32. package/compiled/schema-utils/ajv/dist/compile/rules.d.ts +28 -0
  33. package/compiled/schema-utils/ajv/dist/compile/util.d.ts +40 -0
  34. package/compiled/schema-utils/ajv/dist/compile/validate/index.d.ts +42 -0
  35. package/compiled/schema-utils/ajv/dist/compile/validate/subschema.d.ts +47 -0
  36. package/compiled/schema-utils/ajv/dist/core.d.ts +171 -0
  37. package/compiled/schema-utils/ajv/dist/runtime/validation_error.d.ts +7 -0
  38. package/compiled/schema-utils/ajv/dist/types/index.d.ts +177 -0
  39. package/compiled/schema-utils/ajv/dist/types/json-schema.d.ts +124 -0
  40. package/compiled/schema-utils/ajv/dist/types/jtd-schema.d.ts +168 -0
  41. package/compiled/schema-utils/declarations/validate.d.ts +4 -4
  42. package/compiled/schema-utils/index.js +8 -2
  43. package/compiled/schema-utils/uri-js/dist/es5/uri.all.d.ts +59 -0
  44. package/compiled/style-loader/index.js +1 -1
  45. package/compiled/terser/index.js +1 -1
  46. package/compiled/terser-webpack-plugin/index.js +328 -451
  47. package/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts +1 -0
  48. package/compiled/terser-webpack-plugin/minify.js +6 -1
  49. package/compiled/terser-webpack-plugin/types/index.d.ts +3 -3
  50. package/compiled/terser-webpack-plugin/types/utils.d.ts +9 -12
  51. package/compiled/terser-webpack-plugin/utils.js +113 -17
  52. package/compiled/webpack/index.js +4915 -4485
  53. package/compiled/webpack-dev-middleware/index.js +11 -5
  54. package/compiled/webpack-manifest-plugin/LICENSE +21 -0
  55. package/compiled/webpack-manifest-plugin/index.js +1 -0
  56. package/compiled/webpack-manifest-plugin/package.json +1 -0
  57. package/compiled/webpack-sources/index.js +1 -1
  58. package/dist/build.d.ts +3 -2
  59. package/dist/build.js +1 -0
  60. package/dist/cli.js +4 -7
  61. package/dist/config/assetRules.js +6 -14
  62. package/dist/config/config.d.ts +7 -2
  63. package/dist/config/config.js +45 -4
  64. package/dist/config/cssRules.js +1 -1
  65. package/dist/config/forkTSCheckerPlugin.d.ts +11 -0
  66. package/dist/config/forkTSCheckerPlugin.js +34 -0
  67. package/dist/config/harmonyLinkingErrorPlugin.d.ts +6 -0
  68. package/dist/config/harmonyLinkingErrorPlugin.js +42 -0
  69. package/dist/config/javaScriptRules.d.ts +1 -0
  70. package/dist/config/javaScriptRules.js +33 -19
  71. package/dist/config/manifestPlugin.d.ts +11 -0
  72. package/dist/config/manifestPlugin.js +25 -0
  73. package/dist/config/miniCSSExtractPlugin.d.ts +1 -0
  74. package/dist/config/miniCSSExtractPlugin.js +2 -3
  75. package/dist/config/svgRules.d.ts +1 -0
  76. package/dist/config/svgRules.js +17 -3
  77. package/dist/dev.d.ts +3 -2
  78. package/dist/dev.js +29 -5
  79. package/dist/esbuildHandler/autoCssModules.d.ts +2 -0
  80. package/dist/esbuildHandler/autoCssModules.js +23 -0
  81. package/dist/loader/esbuild.d.ts +5 -0
  82. package/dist/loader/esbuild.js +53 -0
  83. package/dist/loader/svgr.d.ts +4 -0
  84. package/dist/loader/svgr.js +67 -0
  85. package/dist/loader/swc.d.ts +4 -0
  86. package/dist/loader/swc.js +83 -0
  87. package/dist/plugins/RuntimePublicPathPlugin.d.ts +4 -0
  88. package/dist/plugins/RuntimePublicPathPlugin.js +20 -0
  89. package/dist/schema.js +11 -5
  90. package/dist/server/server.js +20 -1
  91. package/dist/swcPlugins/autoCSSModules.js +6 -4
  92. package/dist/swcPlugins/lockCoreJS.d.ts +6 -0
  93. package/dist/swcPlugins/lockCoreJS.js +23 -0
  94. package/dist/types.d.ts +18 -0
  95. package/package.json +36 -31
  96. package/compiled/@svgr/webpack/LICENSE +0 -7
  97. package/compiled/@svgr/webpack/index.js +0 -266
  98. package/compiled/@svgr/webpack/package.json +0 -1
  99. package/compiled/swc-loader/LICENSE +0 -25
  100. package/compiled/swc-loader/index.js +0 -1
  101. package/compiled/swc-loader/package.json +0 -1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Dane Thurber <dane.thurber@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ (function(){"use strict";var e={927:function(e,t,s){Object.defineProperty(t,"__esModule",{value:true});t.transformFiles=t.reduceChunk=t.reduceAssets=t.generateManifest=void 0;const n=s(17);const generateManifest=(e,t,{generate:s,seed:n={}})=>{let o;if(s){const i=Array.from(e.entrypoints.entries());const a=i.reduce(((e,[t,s])=>Object.assign(e,{[t]:s.getFiles()})),{});o=s(n,t,a)}else{o=t.reduce(((e,t)=>Object.assign(e,{[t.name]:t.path})),n)}return o};t.generateManifest=generateManifest;const getFileType=(e,{transformExtensions:t})=>{const s=e.replace(/\?.*/,"");const n=s.split(".");const o=n.pop();return t.test(o)?`${n.pop()}.${o}`:o};const reduceAssets=(e,t,s)=>{let o;if(s[t.name]){o=s[t.name]}else if(t.info.sourceFilename){o=n.join(n.dirname(t.name),n.basename(t.info.sourceFilename))}if(o){return e.concat({isAsset:true,isChunk:false,isInitial:false,isModuleAsset:true,name:o,path:t.name})}const i=t.chunks&&t.chunks.length>0;if(i){return e}return e.concat({isAsset:true,isChunk:false,isInitial:false,isModuleAsset:false,name:t.name,path:t.name})};t.reduceAssets=reduceAssets;const reduceChunk=(e,t,s,o)=>{Array.from(t.auxiliaryFiles||[]).forEach((e=>{o[e]={isAsset:true,isChunk:false,isInitial:false,isModuleAsset:true,name:n.basename(e),path:e}}));return Array.from(t.files).reduce(((e,n)=>{let o=t.name?t.name:null;o=o?s.useEntryKeys&&!n.endsWith(".map")?o:`${o}.${getFileType(n,s)}`:n;return e.concat({chunk:t,isAsset:false,isChunk:true,isInitial:t.isOnlyInitial(),isModuleAsset:false,name:o,path:n})}),e)};t.reduceChunk=reduceChunk;const standardizeFilePaths=e=>{const t=Object.assign({},e);t.name=e.name.replace(/\\/g,"/");t.path=e.path.replace(/\\/g,"/");return t};const transformFiles=(e,t)=>["filter","map","sort"].filter((e=>!!t[e])).reduce(((e,s)=>e[s](t[s])),e).map(standardizeFilePaths);t.transformFiles=transformFiles},961:function(e,t,s){Object.defineProperty(t,"__esModule",{value:true});t.normalModuleLoaderHook=t.getCompilerHooks=t.emitHook=t.beforeRunHook=void 0;const n=s(147);const o=s(17);const i=s(535);const a=s(728);const r=s(927);const u=new WeakMap;const getCompilerHooks=e=>{let t=u.get(e);if(typeof t==="undefined"){t={afterEmit:new i.SyncWaterfallHook(["manifest"]),beforeEmit:new i.SyncWaterfallHook(["manifest"])};u.set(e,t)}return t};t.getCompilerHooks=getCompilerHooks;const beforeRunHook=({emitCountMap:e,manifestFileName:t},s,n)=>{const o=e.get(t)||0;e.set(t,o+1);if(n){n()}};t.beforeRunHook=beforeRunHook;const l=function emit({compiler:e,emitCountMap:t,manifestAssetId:s,manifestFileName:i,moduleAssets:u,options:l},c){const p=t.get(i)-1;const m=c.getStats().toJson({all:false,assets:true,cachedAssets:true,ids:true,publicPath:true});const f=l.publicPath!==null?l.publicPath:m.publicPath;const{basePath:d,removeKeyHash:h}=l;t.set(i,p);const k={};let b=Array.from(c.chunks).reduce(((e,t)=>r.reduceChunk(e,t,l,k)),[]);b=m.assets.reduce(((e,t)=>r.reduceAssets(e,t,u)),b);b=b.filter((({name:s,path:n})=>{var i;return!n.includes("hot-update")&&typeof t.get(o.join(((i=e.options.output)===null||i===void 0?void 0:i.path)||"<unknown>",s))==="undefined"}));b.forEach((e=>{delete k[e.path]}));Object.keys(k).forEach((e=>{b=b.concat(k[e])}));b=b.map((e=>{const t={name:d?d+e.name:e.name,path:f?f+e.path:e.path};t.name=h?t.name.replace(h,""):t.name;return Object.assign(e,t)}));b=r.transformFiles(b,l);let g=r.generateManifest(c,b,l);const _=p===0;g=getCompilerHooks(e).beforeEmit.call(g);if(_){const e=l.serialize(g);c.emitAsset(s,new a.RawSource(e));if(l.writeToFileEmit){n.mkdirSync(o.dirname(i),{recursive:true});n.writeFileSync(i,e)}}getCompilerHooks(e).afterEmit.call(g)};t.emitHook=l;const normalModuleLoaderHook=({moduleAssets:e},t,s)=>{const{emitFile:n}=t;t.emitFile=(t,i,a)=>{if(s.userRequest&&!e[t]){Object.assign(e,{[t]:o.join(o.dirname(t),o.basename(s.userRequest))})}return n.call(s,t,i,a)}};t.normalModuleLoaderHook=normalModuleLoaderHook},871:function(e,t,s){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.WebpackManifestPlugin=t.getCompilerHooks=void 0;const o=s(17);const i=n(s(27));const a=n(s(205));const r=s(961);Object.defineProperty(t,"getCompilerHooks",{enumerable:true,get:function(){return r.getCompilerHooks}});const u=new Map;const l={basePath:"",fileName:"manifest.json",filter:null,generate:void 0,map:null,publicPath:null,removeKeyHash:/([a-f0-9]{16,32}\.?)/gi,seed:void 0,serialize(e){return JSON.stringify(e,null,2)},sort:null,transformExtensions:/^(gz|map)$/i,useEntryKeys:false,useLegacyEmit:false,writeToFileEmit:false};class WebpackManifestPlugin{constructor(e){this.options=Object.assign({},l,e)}apply(e){var t,s,n;const l={};const c=o.resolve(((t=e.options.output)===null||t===void 0?void 0:t.path)||"./",this.options.fileName);const p=o.relative(((s=e.options.output)===null||s===void 0?void 0:s.path)||"./",c);const m=r.beforeRunHook.bind(this,{emitCountMap:u,manifestFileName:c});const f=r.emitHook.bind(this,{compiler:e,emitCountMap:u,manifestAssetId:p,manifestFileName:c,moduleAssets:l,options:this.options});const d=r.normalModuleLoaderHook.bind(this,{moduleAssets:l});const h={name:"WebpackManifestPlugin",stage:Infinity};e.hooks.compilation.tap(h,(e=>{const t=!a.default.getCompilationHooks?e.hooks.normalModuleLoader:a.default.getCompilationHooks(e).loader;t.tap(h,d)}));if(((n=i.default.version)===null||n===void 0?void 0:n.startsWith("4"))||this.options.useLegacyEmit===true){e.hooks.emit.tap(h,f)}else{e.hooks.thisCompilation.tap(h,(e=>{e.hooks.processAssets.tap(h,(()=>f(e)))}))}e.hooks.run.tap(h,m);e.hooks.watchRun.tap(h,m)}}t.WebpackManifestPlugin=WebpackManifestPlugin},205:function(e){e.exports=require("../webpack/NormalModule")},535:function(e){e.exports=require("@umijs/bundler-webpack/compiled/tapable")},27:function(e){e.exports=require("@umijs/bundler-webpack/compiled/webpack")},728:function(e){e.exports=require("@umijs/bundler-webpack/compiled/webpack-sources")},147:function(e){e.exports=require("fs")},17:function(e){e.exports=require("path")}};var t={};function __nccwpck_require__(s){var n=t[s];if(n!==undefined){return n.exports}var o=t[s]={exports:{}};var i=true;try{e[s].call(o.exports,o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete t[s]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var s=__nccwpck_require__(871);module.exports=s})();
@@ -0,0 +1 @@
1
+ {"name":"webpack-manifest-plugin","author":"Dane Thurber <dane.thurber@gmail.com>","license":"MIT"}
@@ -1 +1 @@
1
- (function(){var e={821:function(e,t,n){"use strict";const s=n(178);const r=n(540);const i=n(263);const u=n(323);const mapToBufferedMap=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 bufferedMapToMap=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};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=mapToBufferedMap(this._getMapFromCacheEntry(n))}e.set(t[0],{map: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=bufferedMapToMap(e.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 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 r;if(s!==undefined){r=this.original().map(e)}else{const t=this.original().sourceAndMap(e);s=t.source;r=t.map;this._cachedSource=s}this._cachedMaps.set(t,{map:r,bufferedMap:undefined});return{source:s,map:r}}streamChunks(e,t,n,s){const o=e?JSON.stringify(e):"{}";if(this._cachedMaps.has(o)&&(this._cachedBuffer!==undefined||this._cachedSource!==undefined)){const{source:u,map:o}=this.sourceAndMap(e);if(o){return r(u,o,t,n,s,!!(e&&e.finalSource),true)}else{return i(u,t,n,s,!!(e&&e.finalSource))}}const{result:f,source:c,map:a}=u(this.original(),e,t,n,s);this._cachedSource=c;this._cachedMaps.set(o,{map:a,bufferedMap:undefined});return f}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,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.length>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},66:function(e,t,n){"use strict";const s=n(178);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},331:function(e,t,n){"use strict";const s=n(178);const r=n(210);const i=n(329);const{getMap:u,getSourceAndMap:o}=n(427);const f=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 u(this,e)}sourceAndMap(e){return o(this,e)}streamChunks(e,t,n,s){if(!this._isOptimized)this._optimize();if(this._children.length===1)return this._children[0].streamChunks(e,t,n,s);let r=0;let u=0;let o=new Map;let f=new Map;const c=!!(e&&e.finalSource);let a="";let h=false;for(const l of this._children){const d=[];const p=[];let _=0;const{generatedLine:g,generatedColumn:S,source:m}=i(l,e,((e,n,s,i,o,f,l)=>{const g=n+r;const S=n===1?s+u:s;if(h){if(n!==1||s!==0){t(undefined,r+1,u,-1,-1,-1,-1)}h=false}const m=i<0||i>=d.length?-1:d[i];const A=l<0||l>=p.length?-1:p[l];_=m<0?0:n;if(c){if(e!==undefined)a+=e;if(m>=0){t(undefined,g,S,m,o,f,A)}}else{if(m<0){t(e,g,S,-1,-1,-1,-1)}else{t(e,g,S,m,o,f,A)}}}),((e,t,s)=>{let r=o.get(t);if(r===undefined){o.set(t,r=o.size);n(r,t,s)}d[e]=r}),((e,t)=>{let n=f.get(t);if(n===undefined){f.set(t,n=f.size);s(n,t)}p[e]=n}));if(m!==undefined)a+=m;if(h){if(g!==1||S!==0){t(undefined,r+1,u,-1,-1,-1,-1);h=false}}if(g>1){u=S}else{u+=S}h=h||c&&_===g;r+=g-1}return{generatedLine:r+1,generatedColumn:u,source:c?a:undefined}}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 addStringToRawSources=e=>{if(n===undefined){n=e}else if(Array.isArray(n)){n.push(e)}else{n=[typeof n==="string"?n:n.source(),e]}};const addSourceToRawSources=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 mergeRawSources=()=>{if(Array.isArray(n)){const t=new r(n.join(""));f.add(t);e.push(t)}else if(typeof n==="string"){const t=new r(n);f.add(t);e.push(t)}else{e.push(n)}};for(const s of this._children){if(typeof s==="string"){if(t===undefined){t=s}else{t+=s}}else{if(t!==undefined){addStringToRawSources(t);t=undefined}if(f.has(s)){addSourceToRawSources(s)}else{if(n!==undefined){mergeRawSources();n=undefined}e.push(s)}}}if(t!==undefined){addStringToRawSources(t)}if(n!==undefined){mergeRawSources()}this._children=e;this._isOptimized=true}}e.exports=ConcatSource},87:function(e,t,n){"use strict";const{getMap:s,getSourceAndMap:r}=n(427);const i=n(333);const u=n(119);const o=n(178);const f=/[^\n;{}]+[;{} \r\t]*\n?|[;{} \r\t]+\n?|\n/g;class OriginalSource extends o{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 s(this,e)}sourceAndMap(e){return r(this,e)}streamChunks(e,t,n,s){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}n(0,this._name,this._value);const r=!!(e&&e.finalSource);if(!e||e.columns!==false){const e=this._value.match(f);let n=1;let s=0;if(e!==null){for(const i of e){const e=i.endsWith("\n");if(e&&i.length===1){if(!r)t(i,n,s,-1,-1,-1,-1)}else{const e=r?undefined:i;t(e,n,s,0,n,s,-1)}if(e){n++;s=0}else{s+=i.length}}}return{generatedLine:n,generatedColumn:s,source:r?this._value:undefined}}else if(r){const e=u(this._value);const{generatedLine:n,generatedColumn:s}=e;if(s===0){for(let e=1;e<n;e++)t(undefined,e,0,0,e,0,-1)}else{for(let e=1;e<=n;e++)t(undefined,e,0,0,e,0,-1)}return e}else{let e=1;const n=i(this._value);let s;for(s of n){t(r?undefined:s,e,0,0,e,0,-1);e++}return n.length===0||s.endsWith("\n")?{generatedLine:n.length+1,generatedColumn:0,source:r?this._value:undefined}:{generatedLine:n.length,generatedColumn:s.length,source:r?this._value:undefined}}}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},589:function(e,t,n){"use strict";const s=n(178);const r=n(210);const i=n(329);const{getMap:u,getSourceAndMap:o}=n(427);const f=/\n(?=.|\s)/g;class PrefixSource extends s{constructor(e,t){super();this._source=typeof t==="string"||Buffer.isBuffer(t)?new r(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 u(this,e)}sourceAndMap(e){return o(this,e)}streamChunks(e,t,n,s){const r=this._prefix;const u=r.length;const o=!!(e&&e.columns===false);const{generatedLine:c,generatedColumn:a,source:h}=i(this._source,e,((e,n,s,i,f,c,a)=>{if(s!==0){s+=u}else if(e!==undefined){if(o||i<0){e=r+e}else if(u>0){t(r,n,s,-1,-1,-1,-1);s+=u}}else if(!o){s+=u}t(e,n,s,i,f,c,a)}),n,s);return{generatedLine:c,generatedColumn:a===0?0:u+a,source:h!==undefined?r+h.replace(f,"\n"+r):undefined}}updateHash(e){e.update("PrefixSource");this._source.updateHash(e);e.update(this._prefix)}}e.exports=PrefixSource},210:function(e,t,n){"use strict";const s=n(263);const r=n(178);class RawSource extends r{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;this._valueAsString=n?undefined:e}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}streamChunks(e,t,n,r){if(this._value===undefined){this._value=Buffer.from(this._valueAsBuffer,"utf-8")}if(this._valueAsString===undefined){this._valueAsString=typeof this._value==="string"?this._value:this._value.toString("utf-8")}return s(this._valueAsString,t,n,r,!!(e&&e.finalSource))}updateHash(e){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}e.update("RawSource");e.update(this._valueAsBuffer)}}e.exports=RawSource},556:function(e,t,n){"use strict";const{getMap:s,getSourceAndMap:r}=n(427);const i=n(329);const u=n(178);const o=n(333);const f=typeof process==="object"&&process.versions&&typeof process.versions.v8==="string"&&!/^[0-6]\./.test(process.versions.v8);const c=536870912;class Replacement{constructor(e,t,n,s){this.start=e;this.end=t;this.content=n;this.name=s;if(!f){this.index=-1}}}class ReplaceSource extends u{constructor(e,t){super();this._source=e;this._name=t;this._replacements=[];this._isSorted=true}getName(){return this._name}getReplacements(){this._sortReplacements();return this._replacements}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,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,n));this._isSorted=false}source(){if(this._replacements.length===0){return this._source.source()}let e=this._source.source();let t=0;const n=[];this._sortReplacements();for(const s of this._replacements){const r=Math.floor(s.start);const i=Math.floor(s.end+1);if(t<r){const s=r-t;n.push(e.slice(0,s));e=e.slice(s);t=r}n.push(s.content);if(t<i){const n=i-t;e=e.slice(n);t=i}}n.push(e);return n.join("")}map(e){if(this._replacements.length===0){return this._source.map(e)}return s(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;if(f){this._replacements.sort((function(e,t){const n=e.start-t.start;if(n!==0)return n;const s=e.end-t.end;if(s!==0)return s;return 0}))}else{this._replacements.forEach(((e,t)=>e.index=t));this._replacements.sort((function(e,t){const n=e.start-t.start;if(n!==0)return n;const s=e.end-t.end;if(s!==0)return s;return e.index-t.index}))}this._isSorted=true}streamChunks(e,t,n,s){this._sortReplacements();const r=this._replacements;let u=0;let f=0;let a=-1;let h=f<r.length?Math.floor(r[f].start):c;let l=0;let d=0;let p=0;const _=[];const g=new Map;const S=[];const checkOriginalContent=(e,t,n,s)=>{let r=e<_.length?_[e]:undefined;if(r===undefined)return false;if(typeof r==="string"){r=o(r);_[e]=r}const i=t<=r.length?r[t-1]:null;if(i===null)return false;return i.slice(n,n+s.length)===s};let{generatedLine:m,generatedColumn:A}=i(this._source,Object.assign({},e,{finalSource:false}),((e,n,i,o,_,m,A)=>{let M=0;let B=u+e.length;if(a>u){if(a>=B){const t=n+l;if(e.endsWith("\n")){l--;if(p===t){d+=i}}else if(p===t){d-=e.length}else{d=-e.length;p=t}u=B;return}M=a-u;if(checkOriginalContent(o,_,m,e.slice(0,M))){m+=M}u+=M;const t=n+l;if(p===t){d-=M}else{d=-M;p=t}i+=M}if(h<B){do{let v=n+l;if(h>u){const n=h-u;const s=e.slice(M,M+n);t(s,v,i+(v===p?d:0),o,_,m,A<0||A>=S.length?-1:S[A]);i+=n;M+=n;u=h;if(checkOriginalContent(o,_,m,s)){m+=s.length}}const C=/[^\n]+\n?|\n/g;const{content:b,name:O}=r[f];let y=C.exec(b);let w=A;if(o>=0&&O){let e=g.get(O);if(e===undefined){e=g.size;g.set(O,e);s(e,O)}w=e}while(y!==null){const e=y[0];t(e,v,i+(v===p?d:0),o,_,m,w);w=-1;y=C.exec(b);if(y===null&&!e.endsWith("\n")){if(p===v){d+=e.length}else{d=e.length;p=v}}else{l++;v++;d=-i;p=v}}a=Math.max(a,Math.floor(r[f].end+1));f++;h=f<r.length?Math.floor(r[f].start):c;const x=e.length-B+a-M;if(x>0){if(a>=B){let t=n+l;if(e.endsWith("\n")){l--;if(p===t){d+=i}}else if(p===t){d-=e.length-M}else{d=M-e.length;p=t}u=B;return}const t=n+l;if(checkOriginalContent(o,_,m,e.slice(M,M+x))){m+=x}M+=x;u+=x;if(p===t){d-=x}else{d=-x;p=t}i+=x}}while(h<B)}if(M<e.length){const s=M===0?e:e.slice(M);const r=n+l;t(s,r,i+(r===p?d:0),o,_,m,A<0?-1:S[A])}u=B}),((e,t,s)=>{while(_.length<e)_.push(undefined);_[e]=s;n(e,t,s)}),((e,t)=>{let n=g.get(t);if(n===undefined){n=g.size;g.set(t,n);s(n,t)}S[e]=n}));let M="";for(;f<r.length;f++){M+=r[f].content}let B=m+l;const v=/[^\n]+\n?|\n/g;let C=v.exec(M);while(C!==null){const e=C[0];t(e,B,A+(B===p?d:0),-1,-1,-1,-1);C=v.exec(M);if(C===null&&!e.endsWith("\n")){if(p===B){d+=e.length}else{d=e.length;p=B}}else{l++;B++;d=-A;p=B}}return{generatedLine:B,generatedColumn:A+(B===p?d:0)}}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}${t.end}${t.content}${t.name}`)}}}e.exports=ReplaceSource},976:function(e,t,n){"use strict";const s=n(178);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},178: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},330:function(e,t,n){"use strict";const s=n(178);const r=n(540);const i=n(169);const{getMap:u,getSourceAndMap:o}=n(427);class SourceMapSource extends s{constructor(e,t,n,s,r,i){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=!!r;const a=Buffer.isBuffer(r);const h=typeof r==="string";this._innerSourceMapAsObject=a||h?undefined:r;this._innerSourceMapAsString=h?r:undefined;this._innerSourceMapAsBuffer=a?r:undefined;this._removeOriginalSource=i}_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]}buffer(){this._ensureValueBuffer();return this._valueAsBuffer}source(){this._ensureValueString();return this._valueAsString}map(e){if(!this._hasInnerSourceMap){this._ensureSourceMapObject();return this._sourceMapAsObject}return u(this,e)}sourceAndMap(e){if(!this._hasInnerSourceMap){this._ensureValueString();this._ensureSourceMapObject();return{source:this._valueAsString,map:this._sourceMapAsObject}}return o(this,e)}streamChunks(e,t,n,s){this._ensureValueString();this._ensureSourceMapObject();this._ensureOriginalSourceString();if(this._hasInnerSourceMap){this._ensureInnerSourceMapObject();return i(this._valueAsString,this._sourceMapAsObject,this._name,this._originalSourceAsString,this._innerSourceMapAsObject,this._removeOriginalSource,t,n,s,!!(e&&e.finalSource),!!(e&&e.columns!==false))}else{return r(this._valueAsString,this._sourceMapAsObject,t,n,s,!!(e&&e.finalSource),!!(e&&e.columns!==false))}}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},372:function(e){"use strict";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");const n=32;const createMappingsSerializer=e=>{const t=e&&e.columns===false;return t?createLinesOnlyMappingsSerializer():createFullMappingsSerializer()};const createFullMappingsSerializer=()=>{let e=1;let s=0;let r=0;let i=1;let u=0;let o=0;let f=false;let c=false;let a=true;return(h,l,d,p,_,g)=>{if(f&&e===h){if(d===r&&p===i&&_===u&&!c&&g<0){return""}}else{if(d<0){return""}}let S;if(e<h){S=";".repeat(h-e);e=h;s=0;a=false}else if(a){S="";a=false}else{S=","}const writeValue=e=>{const s=e>>>31&1;const r=e>>31;const i=e+r^r;let u=i<<1|s;for(;;){const e=u&31;u>>=5;if(u===0){S+=t[e];break}else{S+=t[e|n]}}};writeValue(l-s);s=l;if(d>=0){f=true;if(d===r){S+="A"}else{writeValue(d-r);r=d}writeValue(p-i);i=p;if(_===u){S+="A"}else{writeValue(_-u);u=_}if(g>=0){writeValue(g-o);o=g;c=true}else{c=false}}else{f=false}return S}};const createLinesOnlyMappingsSerializer=()=>{let e=0;let s=1;let r=0;let i=1;return(u,o,f,c,a,h)=>{if(f<0){return""}if(e===u){return""}let l;const writeValue=e=>{const s=e>>>31&1;const r=e>>31;const i=e+r^r;let u=i<<1|s;for(;;){const e=u&31;u>>=5;if(u===0){l+=t[e];break}else{l+=t[e|n]}}};e=u;if(u===s+1){s=u;if(f===r){r=f;if(c===i+1){i=c;return";AACA"}else{l=";AA";writeValue(c-i);i=c;return l+"A"}}else{l=";A";writeValue(f-r);r=f;writeValue(c-i);i=c;return l+"A"}}else{l=";".repeat(u-s);s=u;if(f===r){r=f;if(c===i+1){i=c;return l+"AACA"}else{l+="AA";writeValue(c-i);i=c;return l+"A"}}else{l+="A";writeValue(f-r);r=f;writeValue(c-i);i=c;return l+"A"}}}};e.exports=createMappingsSerializer},427:function(e,t,n){"use strict";const s=n(372);t.getSourceAndMap=(e,t)=>{let n="";let r="";let i=[];let u=[];let o=[];const f=s(t);const{source:c}=e.streamChunks(Object.assign({},t,{finalSource:true}),((e,t,s,i,u,o,c)=>{if(e!==undefined)n+=e;r+=f(t,s,i,u,o,c)}),((e,t,n)=>{while(i.length<e){i.push(null)}i[e]=t;if(n!==undefined){while(u.length<e){u.push(null)}u[e]=n}}),((e,t)=>{while(o.length<e){o.push(null)}o[e]=t}));return{source:c!==undefined?c:n,map:r.length>0?{version:3,file:"x",mappings:r,sources:i,sourcesContent:u.length>0?u:undefined,names:o}:null}};t.getMap=(e,t)=>{let n="";let r=[];let i=[];let u=[];const o=s(t);e.streamChunks(Object.assign({},t,{source:false,finalSource:true}),((e,t,s,r,i,u,f)=>{n+=o(t,s,r,i,u,f)}),((e,t,n)=>{while(r.length<e){r.push(null)}r[e]=t;if(n!==undefined){while(i.length<e){i.push(null)}i[e]=n}}),((e,t)=>{while(u.length<e){u.push(null)}u[e]=t}));return n.length>0?{version:3,file:"x",mappings:n,sources:r,sourcesContent:i.length>0?i:undefined,names:u}:null}},119:function(e){"use strict";const t="\n".charCodeAt(0);const getGeneratedSourceInfo=e=>{if(e===undefined){return{}}const n=e.lastIndexOf("\n");if(n===-1){return{generatedLine:1,generatedColumn:e.length,source:e}}let s=2;for(let r=0;r<n;r++){if(e.charCodeAt(r)===t)s++}return{generatedLine:s,generatedColumn:e.length-n-1,source:e}};e.exports=getGeneratedSourceInfo},897:function(e){"use strict";const getSource=(e,t)=>{if(t<0)return null;const{sourceRoot:n,sources:s}=e;const r=s[t];if(!n)return r;if(n.endsWith("/"))return n+r;return n+"/"+r};e.exports=getSource},943:function(e){"use strict";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const n=32;const s=64;const r=s|1;const i=s|2;const u=31;const o=new Uint8Array("z".charCodeAt(0)+1);{o.fill(i);for(let e=0;e<t.length;e++){o[t.charCodeAt(e)]=e}o[",".charCodeAt(0)]=s;o[";".charCodeAt(0)]=r}const f=o.length-1;const readMappings=(e,t)=>{const i=new Uint32Array([0,0,1,0,0]);let c=0;let a=0;let h=0;let l=1;let d=-1;for(let p=0;p<e.length;p++){const _=e.charCodeAt(p);if(_>f)continue;const g=o[_];if((g&s)!==0){if(i[0]>d){if(c===1){t(l,i[0],-1,-1,-1,-1)}else if(c===4){t(l,i[0],i[1],i[2],i[3],-1)}else if(c===5){t(l,i[0],i[1],i[2],i[3],i[4])}d=i[0]}c=0;if(g===r){l++;i[0]=0;d=-1}}else if((g&n)===0){a|=g<<h;const e=a&1?-(a>>1):a>>1;i[c++]+=e;h=0;a=0}else{a|=(g&u)<<h;h+=5}}if(c===1){t(l,i[0],-1,-1,-1,-1)}else if(c===4){t(l,i[0],i[1],i[2],i[3],-1)}else if(c===5){t(l,i[0],i[1],i[2],i[3],i[4])}};e.exports=readMappings},333:function(e){const splitIntoLines=e=>{const t=[];const n=e.length;let s=0;for(;s<n;){const r=e.charCodeAt(s);if(r===10){t.push("\n");s++}else{let r=s+1;while(r<n&&e.charCodeAt(r)!==10)r++;t.push(e.slice(s,r+1));s=r+1}}return t};e.exports=splitIntoLines},323:function(e,t,n){"use strict";const s=n(372);const r=n(329);const streamAndGetSourceAndMap=(e,t,n,i,u)=>{let o="";let f="";let c=[];let a=[];let h=[];const l=s(Object.assign({},t,{columns:true}));const d=!!(t&&t.finalSource);const{generatedLine:p,generatedColumn:_,source:g}=r(e,t,((e,t,s,r,i,u,c)=>{if(e!==undefined)o+=e;f+=l(t,s,r,i,u,c);return n(d?undefined:e,t,s,r,i,u,c)}),((e,t,n)=>{while(c.length<e){c.push(null)}c[e]=t;if(n!==undefined){while(a.length<e){a.push(null)}a[e]=n}return i(e,t,n)}),((e,t)=>{while(h.length<e){h.push(null)}h[e]=t;return u(e,t)}));const S=g!==undefined?g:o;return{result:{generatedLine:p,generatedColumn:_,source:d?S:undefined},source:S,map:f.length>0?{version:3,file:"x",mappings:f,sources:c,sourcesContent:a.length>0?a:undefined,names:h}:null}};e.exports=streamAndGetSourceAndMap},329:function(e,t,n){"use strict";const s=n(263);const r=n(540);e.exports=(e,t,n,i,u)=>{if(typeof e.streamChunks==="function"){return e.streamChunks(t,n,i,u)}else{const o=e.sourceAndMap(t);if(o.map){return r(o.source,o.map,n,i,u,!!(t&&t.finalSource),!!(t&&t.columns!==false))}else{return s(o.source,n,i,u,!!(t&&t.finalSource))}}}},169:function(e,t,n){"use strict";const s=n(540);const r=n(333);const streamChunksOfCombinedSourceMap=(e,t,n,i,u,o,f,c,a,h,l)=>{let d=new Map;let p=new Map;const _=[];const g=[];const S=[];let m=-2;const A=[];const M=[];const B=[];const v=[];const C=[];const b=[];const O=[];const findInnerMapping=(e,t)=>{if(e>O.length)return-1;const{mappingsData:n}=O[e-1];let s=0;let r=n.length/5;while(s<r){let e=s+r>>1;if(n[e*5]<=t){s=e+1}else{r=e}}if(s===0)return-1;return s-1};return s(e,t,((t,s,u,h,l,y,w)=>{if(h===m){const m=findInnerMapping(l,y);if(m!==-1){const{chunks:e,mappingsData:n}=O[l-1];const i=m*5;const o=n[i+1];const h=n[i+2];let _=n[i+3];let x=n[i+4];if(o>=0){const l=e[m];const O=n[i];const z=y-O;if(z>0){let e=o<v.length?v[o]:null;if(e===undefined){const t=B[o];e=t?r(t):null;v[o]=e}if(e!==null){const t=h<=e.length?e[h-1].slice(_,_+z):"";if(l.slice(0,z)===t){_+=z;x=-1}}}let k=o<A.length?A[o]:-2;if(k===-2){const[e,t]=o<M.length?M[o]:[null,undefined];let n=d.get(e);if(n===undefined){d.set(e,n=d.size);c(n,e,t)}k=n;A[o]=k}let L=-1;if(x>=0){L=x<C.length?C[x]:-2;if(L===-2){const e=x<b.length?b[x]:undefined;if(e){let t=p.get(e);if(t===undefined){p.set(e,t=p.size);a(t,e)}L=t}else{L=-1}C[x]=L}}else if(w>=0){let e=v[o];if(e===undefined){const t=B[o];e=t?r(t):null;v[o]=e}if(e!==null){const t=S[w];const n=h<=e.length?e[h-1].slice(_,_+t.length):"";if(t===n){L=w<g.length?g[w]:-2;if(L===-2){const e=S[w];if(e){let t=p.get(e);if(t===undefined){p.set(e,t=p.size);a(t,e)}L=t}else{L=-1}g[w]=L}}}}f(t,s,u,k,h,_,L);return}}if(o){f(t,s,u,-1,-1,-1,-1);return}else{if(_[h]===-2){let t=d.get(n);if(t===undefined){d.set(e,t=d.size);c(t,n,i)}_[h]=t}}}const x=h<0||h>=_.length?-1:_[h];if(x<0){f(t,s,u,-1,-1,-1,-1)}else{let e=-1;if(w>=0&&w<g.length){e=g[w];if(e===-2){const t=S[w];let n=p.get(t);if(n===undefined){p.set(t,n=p.size);a(n,t)}e=n;g[w]=e}}f(t,s,u,x,l,y,e)}}),((e,t,r)=>{if(t===n){m=e;if(i!==undefined)r=i;else i=r;_[e]=-2;s(r,u,((e,t,n,s,r,i,u)=>{while(O.length<t){O.push({mappingsData:[],chunks:[]})}const o=O[t-1];o.mappingsData.push(n,s,r,i,u);o.chunks.push(e)}),((e,t,n)=>{B[e]=n;v[e]=undefined;A[e]=-2;M[e]=[t,n]}),((e,t)=>{C[e]=-2;b[e]=t}),false,l)}else{let n=d.get(t);if(n===undefined){d.set(t,n=d.size);c(n,t,r)}_[e]=n}}),((e,t)=>{g[e]=-2;S[e]=t}),h,l)};e.exports=streamChunksOfCombinedSourceMap},263:function(e,t,n){"use strict";const s=n(119);const r=n(333);const streamChunksOfRawSource=(e,t,n,s)=>{let i=1;const u=r(e);let o;for(o of u){t(o,i,0,-1,-1,-1,-1);i++}return u.length===0||o.endsWith("\n")?{generatedLine:u.length+1,generatedColumn:0}:{generatedLine:u.length,generatedColumn:o.length}};e.exports=(e,t,n,r,i)=>i?s(e):streamChunksOfRawSource(e,t,n,r)},540:function(e,t,n){"use strict";const s=n(119);const r=n(897);const i=n(943);const u=n(333);const streamChunksOfSourceMapFull=(e,t,n,s,o)=>{const f=u(e);if(f.length===0){return{generatedLine:1,generatedColumn:0}}const{sources:c,sourcesContent:a,names:h,mappings:l}=t;for(let e=0;e<c.length;e++){s(e,r(t,e),a&&a[e]||undefined)}if(h){for(let e=0;e<h.length;e++){o(e,h[e])}}const d=f[f.length-1];const p=d.endsWith("\n");const _=p?f.length+1:f.length;const g=p?0:d.length;let S=1;let m=0;let A=false;let M=-1;let B=-1;let v=-1;let C=-1;const onMapping=(e,t,s,r,i,u)=>{if(A&&S<=f.length){let s;const r=S;const i=m;const u=f[S-1];if(e!==S){s=u.slice(m);S++;m=0}else{s=u.slice(m,t);m=t}if(s){n(s,r,i,M,B,v,C)}A=false}if(e>S&&m>0){if(S<=f.length){const e=f[S-1].slice(m);n(e,S,m,-1,-1,-1,-1)}S++;m=0}while(e>S){if(S<=f.length){n(f[S-1],S,0,-1,-1,-1,-1)}S++}if(t>m){if(S<=f.length){const e=f[S-1].slice(m,t);n(e,S,m,-1,-1,-1,-1)}m=t}if(s>=0&&(e<_||e===_&&t<g)){A=true;M=s;B=r;v=i;C=u}};i(l,onMapping);onMapping(_,g,-1,-1,-1,-1);return{generatedLine:_,generatedColumn:g}};const streamChunksOfSourceMapLinesFull=(e,t,n,s,o)=>{const f=u(e);if(f.length===0){return{generatedLine:1,generatedColumn:0}}const{sources:c,sourcesContent:a,mappings:h}=t;for(let e=0;e<c.length;e++){s(e,r(t,e),a&&a[e]||undefined)}let l=1;const onMapping=(e,t,s,r,i,u)=>{if(s<0||e<l||e>f.length){return}while(e>l){if(l<=f.length){n(f[l-1],l,0,-1,-1,-1,-1)}l++}if(e<=f.length){n(f[e-1],e,0,s,r,i,-1);l++}};i(h,onMapping);for(;l<=f.length;l++){n(f[l-1],l,0,-1,-1,-1,-1)}const d=f[f.length-1];const p=d.endsWith("\n");const _=p?f.length+1:f.length;const g=p?0:d.length;return{generatedLine:_,generatedColumn:g}};const streamChunksOfSourceMapFinal=(e,t,n,u,o)=>{const f=s(e);const{generatedLine:c,generatedColumn:a}=f;if(c===1&&a===0)return f;const{sources:h,sourcesContent:l,names:d,mappings:p}=t;for(let e=0;e<h.length;e++){u(e,r(t,e),l&&l[e]||undefined)}if(d){for(let e=0;e<d.length;e++){o(e,d[e])}}let _=0;const onMapping=(e,t,s,r,i,u)=>{if(e>=c&&(t>=a||e>c)){return}if(s>=0){n(undefined,e,t,s,r,i,u);_=e}else if(_===e){n(undefined,e,t,-1,-1,-1,-1);_=0}};i(p,onMapping);return f};const streamChunksOfSourceMapLinesFinal=(e,t,n,u,o)=>{const f=s(e);const{generatedLine:c,generatedColumn:a}=f;if(c===1&&a===0){return{generatedLine:1,generatedColumn:0}}const{sources:h,sourcesContent:l,mappings:d}=t;for(let e=0;e<h.length;e++){u(e,r(t,e),l&&l[e]||undefined)}const p=a===0?c-1:c;let _=1;const onMapping=(e,t,s,r,i,u)=>{if(s>=0&&_<=e&&e<=p){n(undefined,e,0,s,r,i,-1);_=e+1}};i(d,onMapping);return f};e.exports=(e,t,n,s,r,i,u)=>{if(u){return i?streamChunksOfSourceMapFinal(e,t,n,s,r):streamChunksOfSourceMapFull(e,t,n,s,r)}else{return i?streamChunksOfSourceMapLinesFinal(e,t,n,s,r):streamChunksOfSourceMapLinesFull(e,t,n,s,r)}}},938:function(e,t,n){const defineExport=(e,n)=>{let s;Object.defineProperty(t,e,{get:()=>{if(n!==undefined){s=n();n=undefined}return s},configurable:true})};defineExport("Source",(()=>n(178)));defineExport("RawSource",(()=>n(210)));defineExport("OriginalSource",(()=>n(87)));defineExport("SourceMapSource",(()=>n(330)));defineExport("CachedSource",(()=>n(821)));defineExport("ConcatSource",(()=>n(331)));defineExport("ReplaceSource",(()=>n(556)));defineExport("PrefixSource",(()=>n(589)));defineExport("SizeOnlySource",(()=>n(976)));defineExport("CompatSource",(()=>n(66)))}};var t={};function __nccwpck_require__(n){var s=t[n];if(s!==undefined){return s.exports}var r=t[n]={exports:{}};var i=true;try{e[n](r,r.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(938);module.exports=n})();
1
+ (function(){var e={385:function(e,t,n){"use strict";const s=n(535);const r=n(968);const i=n(704);const u=n(73);const mapToBufferedMap=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 bufferedMapToMap=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};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=mapToBufferedMap(this._getMapFromCacheEntry(n))}e.set(t[0],{map: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=bufferedMapToMap(e.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 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 r;if(s!==undefined){r=this.original().map(e)}else{const t=this.original().sourceAndMap(e);s=t.source;r=t.map;this._cachedSource=s}this._cachedMaps.set(t,{map:r,bufferedMap:undefined});return{source:s,map:r}}streamChunks(e,t,n,s){const o=e?JSON.stringify(e):"{}";if(this._cachedMaps.has(o)&&(this._cachedBuffer!==undefined||this._cachedSource!==undefined)){const{source:u,map:o}=this.sourceAndMap(e);if(o){return r(u,o,t,n,s,!!(e&&e.finalSource),true)}else{return i(u,t,n,s,!!(e&&e.finalSource))}}const{result:f,source:c,map:a}=u(this.original(),e,t,n,s);this._cachedSource=c;this._cachedMaps.set(o,{map:a,bufferedMap:undefined});return f}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,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.length>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},83:function(e,t,n){"use strict";const s=n(535);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},279:function(e,t,n){"use strict";const s=n(535);const r=n(459);const i=n(730);const{getMap:u,getSourceAndMap:o}=n(168);const f=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 u(this,e)}sourceAndMap(e){return o(this,e)}streamChunks(e,t,n,s){if(!this._isOptimized)this._optimize();if(this._children.length===1)return this._children[0].streamChunks(e,t,n,s);let r=0;let u=0;let o=new Map;let f=new Map;const c=!!(e&&e.finalSource);let a="";let h=false;for(const l of this._children){const d=[];const p=[];let _=0;const{generatedLine:g,generatedColumn:S,source:m}=i(l,e,((e,n,s,i,o,f,l)=>{const g=n+r;const S=n===1?s+u:s;if(h){if(n!==1||s!==0){t(undefined,r+1,u,-1,-1,-1,-1)}h=false}const m=i<0||i>=d.length?-1:d[i];const A=l<0||l>=p.length?-1:p[l];_=m<0?0:n;if(c){if(e!==undefined)a+=e;if(m>=0){t(undefined,g,S,m,o,f,A)}}else{if(m<0){t(e,g,S,-1,-1,-1,-1)}else{t(e,g,S,m,o,f,A)}}}),((e,t,s)=>{let r=o.get(t);if(r===undefined){o.set(t,r=o.size);n(r,t,s)}d[e]=r}),((e,t)=>{let n=f.get(t);if(n===undefined){f.set(t,n=f.size);s(n,t)}p[e]=n}));if(m!==undefined)a+=m;if(h){if(g!==1||S!==0){t(undefined,r+1,u,-1,-1,-1,-1);h=false}}if(g>1){u=S}else{u+=S}h=h||c&&_===g;r+=g-1}return{generatedLine:r+1,generatedColumn:u,source:c?a:undefined}}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 addStringToRawSources=e=>{if(n===undefined){n=e}else if(Array.isArray(n)){n.push(e)}else{n=[typeof n==="string"?n:n.source(),e]}};const addSourceToRawSources=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 mergeRawSources=()=>{if(Array.isArray(n)){const t=new r(n.join(""));f.add(t);e.push(t)}else if(typeof n==="string"){const t=new r(n);f.add(t);e.push(t)}else{e.push(n)}};for(const s of this._children){if(typeof s==="string"){if(t===undefined){t=s}else{t+=s}}else{if(t!==undefined){addStringToRawSources(t);t=undefined}if(f.has(s)){addSourceToRawSources(s)}else{if(n!==undefined){mergeRawSources();n=undefined}e.push(s)}}}if(t!==undefined){addStringToRawSources(t)}if(n!==undefined){mergeRawSources()}this._children=e;this._isOptimized=true}}e.exports=ConcatSource},627:function(e,t,n){"use strict";const{getMap:s,getSourceAndMap:r}=n(168);const i=n(394);const u=n(311);const o=n(535);const f=n(726);class OriginalSource extends o{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 s(this,e)}sourceAndMap(e){return r(this,e)}streamChunks(e,t,n,s){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}n(0,this._name,this._value);const r=!!(e&&e.finalSource);if(!e||e.columns!==false){const e=f(this._value);let n=1;let s=0;if(e!==null){for(const i of e){const e=i.endsWith("\n");if(e&&i.length===1){if(!r)t(i,n,s,-1,-1,-1,-1)}else{const e=r?undefined:i;t(e,n,s,0,n,s,-1)}if(e){n++;s=0}else{s+=i.length}}}return{generatedLine:n,generatedColumn:s,source:r?this._value:undefined}}else if(r){const e=u(this._value);const{generatedLine:n,generatedColumn:s}=e;if(s===0){for(let e=1;e<n;e++)t(undefined,e,0,0,e,0,-1)}else{for(let e=1;e<=n;e++)t(undefined,e,0,0,e,0,-1)}return e}else{let e=1;const n=i(this._value);let s;for(s of n){t(r?undefined:s,e,0,0,e,0,-1);e++}return n.length===0||s.endsWith("\n")?{generatedLine:n.length+1,generatedColumn:0,source:r?this._value:undefined}:{generatedLine:n.length,generatedColumn:s.length,source:r?this._value:undefined}}}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},212:function(e,t,n){"use strict";const s=n(535);const r=n(459);const i=n(730);const{getMap:u,getSourceAndMap:o}=n(168);const f=/\n(?=.|\s)/g;class PrefixSource extends s{constructor(e,t){super();this._source=typeof t==="string"||Buffer.isBuffer(t)?new r(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 u(this,e)}sourceAndMap(e){return o(this,e)}streamChunks(e,t,n,s){const r=this._prefix;const u=r.length;const o=!!(e&&e.columns===false);const{generatedLine:c,generatedColumn:a,source:h}=i(this._source,e,((e,n,s,i,f,c,a)=>{if(s!==0){s+=u}else if(e!==undefined){if(o||i<0){e=r+e}else if(u>0){t(r,n,s,-1,-1,-1,-1);s+=u}}else if(!o){s+=u}t(e,n,s,i,f,c,a)}),n,s);return{generatedLine:c,generatedColumn:a===0?0:u+a,source:h!==undefined?r+h.replace(f,"\n"+r):undefined}}updateHash(e){e.update("PrefixSource");this._source.updateHash(e);e.update(this._prefix)}}e.exports=PrefixSource},459:function(e,t,n){"use strict";const s=n(704);const r=n(535);class RawSource extends r{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;this._valueAsString=n?undefined:e}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}streamChunks(e,t,n,r){if(this._value===undefined){this._value=Buffer.from(this._valueAsBuffer,"utf-8")}if(this._valueAsString===undefined){this._valueAsString=typeof this._value==="string"?this._value:this._value.toString("utf-8")}return s(this._valueAsString,t,n,r,!!(e&&e.finalSource))}updateHash(e){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}e.update("RawSource");e.update(this._valueAsBuffer)}}e.exports=RawSource},266:function(e,t,n){"use strict";const{getMap:s,getSourceAndMap:r}=n(168);const i=n(730);const u=n(535);const o=n(394);const f=typeof process==="object"&&process.versions&&typeof process.versions.v8==="string"&&!/^[0-6]\./.test(process.versions.v8);const c=536870912;class Replacement{constructor(e,t,n,s){this.start=e;this.end=t;this.content=n;this.name=s;if(!f){this.index=-1}}}class ReplaceSource extends u{constructor(e,t){super();this._source=e;this._name=t;this._replacements=[];this._isSorted=true}getName(){return this._name}getReplacements(){this._sortReplacements();return this._replacements}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,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,n));this._isSorted=false}source(){if(this._replacements.length===0){return this._source.source()}let e=this._source.source();let t=0;const n=[];this._sortReplacements();for(const s of this._replacements){const r=Math.floor(s.start);const i=Math.floor(s.end+1);if(t<r){const s=r-t;n.push(e.slice(0,s));e=e.slice(s);t=r}n.push(s.content);if(t<i){const n=i-t;e=e.slice(n);t=i}}n.push(e);return n.join("")}map(e){if(this._replacements.length===0){return this._source.map(e)}return s(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;if(f){this._replacements.sort((function(e,t){const n=e.start-t.start;if(n!==0)return n;const s=e.end-t.end;if(s!==0)return s;return 0}))}else{this._replacements.forEach(((e,t)=>e.index=t));this._replacements.sort((function(e,t){const n=e.start-t.start;if(n!==0)return n;const s=e.end-t.end;if(s!==0)return s;return e.index-t.index}))}this._isSorted=true}streamChunks(e,t,n,s){this._sortReplacements();const r=this._replacements;let u=0;let f=0;let a=-1;let h=f<r.length?Math.floor(r[f].start):c;let l=0;let d=0;let p=0;const _=[];const g=new Map;const S=[];const checkOriginalContent=(e,t,n,s)=>{let r=e<_.length?_[e]:undefined;if(r===undefined)return false;if(typeof r==="string"){r=o(r);_[e]=r}const i=t<=r.length?r[t-1]:null;if(i===null)return false;return i.slice(n,n+s.length)===s};let{generatedLine:m,generatedColumn:A}=i(this._source,Object.assign({},e,{finalSource:false}),((e,n,i,o,_,m,A)=>{let M=0;let B=u+e.length;if(a>u){if(a>=B){const t=n+l;if(e.endsWith("\n")){l--;if(p===t){d+=i}}else if(p===t){d-=e.length}else{d=-e.length;p=t}u=B;return}M=a-u;if(checkOriginalContent(o,_,m,e.slice(0,M))){m+=M}u+=M;const t=n+l;if(p===t){d-=M}else{d=-M;p=t}i+=M}if(h<B){do{let v=n+l;if(h>u){const n=h-u;const s=e.slice(M,M+n);t(s,v,i+(v===p?d:0),o,_,m,A<0||A>=S.length?-1:S[A]);i+=n;M+=n;u=h;if(checkOriginalContent(o,_,m,s)){m+=s.length}}const C=/[^\n]+\n?|\n/g;const{content:b,name:O}=r[f];let w=C.exec(b);let y=A;if(o>=0&&O){let e=g.get(O);if(e===undefined){e=g.size;g.set(O,e);s(e,O)}y=e}while(w!==null){const e=w[0];t(e,v,i+(v===p?d:0),o,_,m,y);y=-1;w=C.exec(b);if(w===null&&!e.endsWith("\n")){if(p===v){d+=e.length}else{d=e.length;p=v}}else{l++;v++;d=-i;p=v}}a=Math.max(a,Math.floor(r[f].end+1));f++;h=f<r.length?Math.floor(r[f].start):c;const x=e.length-B+a-M;if(x>0){if(a>=B){let t=n+l;if(e.endsWith("\n")){l--;if(p===t){d+=i}}else if(p===t){d-=e.length-M}else{d=M-e.length;p=t}u=B;return}const t=n+l;if(checkOriginalContent(o,_,m,e.slice(M,M+x))){m+=x}M+=x;u+=x;if(p===t){d-=x}else{d=-x;p=t}i+=x}}while(h<B)}if(M<e.length){const s=M===0?e:e.slice(M);const r=n+l;t(s,r,i+(r===p?d:0),o,_,m,A<0?-1:S[A])}u=B}),((e,t,s)=>{while(_.length<e)_.push(undefined);_[e]=s;n(e,t,s)}),((e,t)=>{let n=g.get(t);if(n===undefined){n=g.size;g.set(t,n);s(n,t)}S[e]=n}));let M="";for(;f<r.length;f++){M+=r[f].content}let B=m+l;const v=/[^\n]+\n?|\n/g;let C=v.exec(M);while(C!==null){const e=C[0];t(e,B,A+(B===p?d:0),-1,-1,-1,-1);C=v.exec(M);if(C===null&&!e.endsWith("\n")){if(p===B){d+=e.length}else{d=e.length;p=B}}else{l++;B++;d=-A;p=B}}return{generatedLine:B,generatedColumn:A+(B===p?d:0)}}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}${t.end}${t.content}${t.name}`)}}}e.exports=ReplaceSource},498:function(e,t,n){"use strict";const s=n(535);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},535: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},69:function(e,t,n){"use strict";const s=n(535);const r=n(968);const i=n(372);const{getMap:u,getSourceAndMap:o}=n(168);class SourceMapSource extends s{constructor(e,t,n,s,r,i){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=!!r;const a=Buffer.isBuffer(r);const h=typeof r==="string";this._innerSourceMapAsObject=a||h?undefined:r;this._innerSourceMapAsString=h?r:undefined;this._innerSourceMapAsBuffer=a?r:undefined;this._removeOriginalSource=i}_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]}buffer(){this._ensureValueBuffer();return this._valueAsBuffer}source(){this._ensureValueString();return this._valueAsString}map(e){if(!this._hasInnerSourceMap){this._ensureSourceMapObject();return this._sourceMapAsObject}return u(this,e)}sourceAndMap(e){if(!this._hasInnerSourceMap){this._ensureValueString();this._ensureSourceMapObject();return{source:this._valueAsString,map:this._sourceMapAsObject}}return o(this,e)}streamChunks(e,t,n,s){this._ensureValueString();this._ensureSourceMapObject();this._ensureOriginalSourceString();if(this._hasInnerSourceMap){this._ensureInnerSourceMapObject();return i(this._valueAsString,this._sourceMapAsObject,this._name,this._originalSourceAsString,this._innerSourceMapAsObject,this._removeOriginalSource,t,n,s,!!(e&&e.finalSource),!!(e&&e.columns!==false))}else{return r(this._valueAsString,this._sourceMapAsObject,t,n,s,!!(e&&e.finalSource),!!(e&&e.columns!==false))}}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},682:function(e){"use strict";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");const n=32;const createMappingsSerializer=e=>{const t=e&&e.columns===false;return t?createLinesOnlyMappingsSerializer():createFullMappingsSerializer()};const createFullMappingsSerializer=()=>{let e=1;let s=0;let r=0;let i=1;let u=0;let o=0;let f=false;let c=false;let a=true;return(h,l,d,p,_,g)=>{if(f&&e===h){if(d===r&&p===i&&_===u&&!c&&g<0){return""}}else{if(d<0){return""}}let S;if(e<h){S=";".repeat(h-e);e=h;s=0;a=false}else if(a){S="";a=false}else{S=","}const writeValue=e=>{const s=e>>>31&1;const r=e>>31;const i=e+r^r;let u=i<<1|s;for(;;){const e=u&31;u>>=5;if(u===0){S+=t[e];break}else{S+=t[e|n]}}};writeValue(l-s);s=l;if(d>=0){f=true;if(d===r){S+="A"}else{writeValue(d-r);r=d}writeValue(p-i);i=p;if(_===u){S+="A"}else{writeValue(_-u);u=_}if(g>=0){writeValue(g-o);o=g;c=true}else{c=false}}else{f=false}return S}};const createLinesOnlyMappingsSerializer=()=>{let e=0;let s=1;let r=0;let i=1;return(u,o,f,c,a,h)=>{if(f<0){return""}if(e===u){return""}let l;const writeValue=e=>{const s=e>>>31&1;const r=e>>31;const i=e+r^r;let u=i<<1|s;for(;;){const e=u&31;u>>=5;if(u===0){l+=t[e];break}else{l+=t[e|n]}}};e=u;if(u===s+1){s=u;if(f===r){r=f;if(c===i+1){i=c;return";AACA"}else{l=";AA";writeValue(c-i);i=c;return l+"A"}}else{l=";A";writeValue(f-r);r=f;writeValue(c-i);i=c;return l+"A"}}else{l=";".repeat(u-s);s=u;if(f===r){r=f;if(c===i+1){i=c;return l+"AACA"}else{l+="AA";writeValue(c-i);i=c;return l+"A"}}else{l+="A";writeValue(f-r);r=f;writeValue(c-i);i=c;return l+"A"}}}};e.exports=createMappingsSerializer},168:function(e,t,n){"use strict";const s=n(682);t.getSourceAndMap=(e,t)=>{let n="";let r="";let i=[];let u=[];let o=[];const f=s(t);const{source:c}=e.streamChunks(Object.assign({},t,{finalSource:true}),((e,t,s,i,u,o,c)=>{if(e!==undefined)n+=e;r+=f(t,s,i,u,o,c)}),((e,t,n)=>{while(i.length<e){i.push(null)}i[e]=t;if(n!==undefined){while(u.length<e){u.push(null)}u[e]=n}}),((e,t)=>{while(o.length<e){o.push(null)}o[e]=t}));return{source:c!==undefined?c:n,map:r.length>0?{version:3,file:"x",mappings:r,sources:i,sourcesContent:u.length>0?u:undefined,names:o}:null}};t.getMap=(e,t)=>{let n="";let r=[];let i=[];let u=[];const o=s(t);e.streamChunks(Object.assign({},t,{source:false,finalSource:true}),((e,t,s,r,i,u,f)=>{n+=o(t,s,r,i,u,f)}),((e,t,n)=>{while(r.length<e){r.push(null)}r[e]=t;if(n!==undefined){while(i.length<e){i.push(null)}i[e]=n}}),((e,t)=>{while(u.length<e){u.push(null)}u[e]=t}));return n.length>0?{version:3,file:"x",mappings:n,sources:r,sourcesContent:i.length>0?i:undefined,names:u}:null}},311:function(e){"use strict";const t="\n".charCodeAt(0);const getGeneratedSourceInfo=e=>{if(e===undefined){return{}}const n=e.lastIndexOf("\n");if(n===-1){return{generatedLine:1,generatedColumn:e.length,source:e}}let s=2;for(let r=0;r<n;r++){if(e.charCodeAt(r)===t)s++}return{generatedLine:s,generatedColumn:e.length-n-1,source:e}};e.exports=getGeneratedSourceInfo},250:function(e){"use strict";const getSource=(e,t)=>{if(t<0)return null;const{sourceRoot:n,sources:s}=e;const r=s[t];if(!n)return r;if(n.endsWith("/"))return n+r;return n+"/"+r};e.exports=getSource},665:function(e){"use strict";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const n=32;const s=64;const r=s|1;const i=s|2;const u=31;const o=new Uint8Array("z".charCodeAt(0)+1);{o.fill(i);for(let e=0;e<t.length;e++){o[t.charCodeAt(e)]=e}o[",".charCodeAt(0)]=s;o[";".charCodeAt(0)]=r}const f=o.length-1;const readMappings=(e,t)=>{const i=new Uint32Array([0,0,1,0,0]);let c=0;let a=0;let h=0;let l=1;let d=-1;for(let p=0;p<e.length;p++){const _=e.charCodeAt(p);if(_>f)continue;const g=o[_];if((g&s)!==0){if(i[0]>d){if(c===1){t(l,i[0],-1,-1,-1,-1)}else if(c===4){t(l,i[0],i[1],i[2],i[3],-1)}else if(c===5){t(l,i[0],i[1],i[2],i[3],i[4])}d=i[0]}c=0;if(g===r){l++;i[0]=0;d=-1}}else if((g&n)===0){a|=g<<h;const e=a&1?-(a>>1):a>>1;i[c++]+=e;h=0;a=0}else{a|=(g&u)<<h;h+=5}}if(c===1){t(l,i[0],-1,-1,-1,-1)}else if(c===4){t(l,i[0],i[1],i[2],i[3],-1)}else if(c===5){t(l,i[0],i[1],i[2],i[3],i[4])}};e.exports=readMappings},394:function(e){const splitIntoLines=e=>{const t=[];const n=e.length;let s=0;for(;s<n;){const r=e.charCodeAt(s);if(r===10){t.push("\n");s++}else{let r=s+1;while(r<n&&e.charCodeAt(r)!==10)r++;t.push(e.slice(s,r+1));s=r+1}}return t};e.exports=splitIntoLines},726:function(e){const splitIntoPotentialTokens=e=>{const t=e.length;if(t===0)return null;const n=[];let s=0;for(;s<t;){const r=s;e:{let n=e.charCodeAt(s);while(n!==10&&n!==59&&n!==123&&n!==125){if(++s>=t)break e;n=e.charCodeAt(s)}while(n===59||n===32||n===123||n===125||n===13||n===9){if(++s>=t)break e;n=e.charCodeAt(s)}if(n===10){s++}}n.push(e.slice(r,s))}return n};e.exports=splitIntoPotentialTokens},73:function(e,t,n){"use strict";const s=n(682);const r=n(730);const streamAndGetSourceAndMap=(e,t,n,i,u)=>{let o="";let f="";let c=[];let a=[];let h=[];const l=s(Object.assign({},t,{columns:true}));const d=!!(t&&t.finalSource);const{generatedLine:p,generatedColumn:_,source:g}=r(e,t,((e,t,s,r,i,u,c)=>{if(e!==undefined)o+=e;f+=l(t,s,r,i,u,c);return n(d?undefined:e,t,s,r,i,u,c)}),((e,t,n)=>{while(c.length<e){c.push(null)}c[e]=t;if(n!==undefined){while(a.length<e){a.push(null)}a[e]=n}return i(e,t,n)}),((e,t)=>{while(h.length<e){h.push(null)}h[e]=t;return u(e,t)}));const S=g!==undefined?g:o;return{result:{generatedLine:p,generatedColumn:_,source:d?S:undefined},source:S,map:f.length>0?{version:3,file:"x",mappings:f,sources:c,sourcesContent:a.length>0?a:undefined,names:h}:null}};e.exports=streamAndGetSourceAndMap},730:function(e,t,n){"use strict";const s=n(704);const r=n(968);e.exports=(e,t,n,i,u)=>{if(typeof e.streamChunks==="function"){return e.streamChunks(t,n,i,u)}else{const o=e.sourceAndMap(t);if(o.map){return r(o.source,o.map,n,i,u,!!(t&&t.finalSource),!!(t&&t.columns!==false))}else{return s(o.source,n,i,u,!!(t&&t.finalSource))}}}},372:function(e,t,n){"use strict";const s=n(968);const r=n(394);const streamChunksOfCombinedSourceMap=(e,t,n,i,u,o,f,c,a,h,l)=>{let d=new Map;let p=new Map;const _=[];const g=[];const S=[];let m=-2;const A=[];const M=[];const B=[];const v=[];const C=[];const b=[];const O=[];const findInnerMapping=(e,t)=>{if(e>O.length)return-1;const{mappingsData:n}=O[e-1];let s=0;let r=n.length/5;while(s<r){let e=s+r>>1;if(n[e*5]<=t){s=e+1}else{r=e}}if(s===0)return-1;return s-1};return s(e,t,((t,s,u,h,l,w,y)=>{if(h===m){const m=findInnerMapping(l,w);if(m!==-1){const{chunks:e,mappingsData:n}=O[l-1];const i=m*5;const o=n[i+1];const h=n[i+2];let _=n[i+3];let x=n[i+4];if(o>=0){const l=e[m];const O=n[i];const z=w-O;if(z>0){let e=o<v.length?v[o]:null;if(e===undefined){const t=B[o];e=t?r(t):null;v[o]=e}if(e!==null){const t=h<=e.length?e[h-1].slice(_,_+z):"";if(l.slice(0,z)===t){_+=z;x=-1}}}let k=o<A.length?A[o]:-2;if(k===-2){const[e,t]=o<M.length?M[o]:[null,undefined];let n=d.get(e);if(n===undefined){d.set(e,n=d.size);c(n,e,t)}k=n;A[o]=k}let L=-1;if(x>=0){L=x<C.length?C[x]:-2;if(L===-2){const e=x<b.length?b[x]:undefined;if(e){let t=p.get(e);if(t===undefined){p.set(e,t=p.size);a(t,e)}L=t}else{L=-1}C[x]=L}}else if(y>=0){let e=v[o];if(e===undefined){const t=B[o];e=t?r(t):null;v[o]=e}if(e!==null){const t=S[y];const n=h<=e.length?e[h-1].slice(_,_+t.length):"";if(t===n){L=y<g.length?g[y]:-2;if(L===-2){const e=S[y];if(e){let t=p.get(e);if(t===undefined){p.set(e,t=p.size);a(t,e)}L=t}else{L=-1}g[y]=L}}}}f(t,s,u,k,h,_,L);return}}if(o){f(t,s,u,-1,-1,-1,-1);return}else{if(_[h]===-2){let t=d.get(n);if(t===undefined){d.set(e,t=d.size);c(t,n,i)}_[h]=t}}}const x=h<0||h>=_.length?-1:_[h];if(x<0){f(t,s,u,-1,-1,-1,-1)}else{let e=-1;if(y>=0&&y<g.length){e=g[y];if(e===-2){const t=S[y];let n=p.get(t);if(n===undefined){p.set(t,n=p.size);a(n,t)}e=n;g[y]=e}}f(t,s,u,x,l,w,e)}}),((e,t,r)=>{if(t===n){m=e;if(i!==undefined)r=i;else i=r;_[e]=-2;s(r,u,((e,t,n,s,r,i,u)=>{while(O.length<t){O.push({mappingsData:[],chunks:[]})}const o=O[t-1];o.mappingsData.push(n,s,r,i,u);o.chunks.push(e)}),((e,t,n)=>{B[e]=n;v[e]=undefined;A[e]=-2;M[e]=[t,n]}),((e,t)=>{C[e]=-2;b[e]=t}),false,l)}else{let n=d.get(t);if(n===undefined){d.set(t,n=d.size);c(n,t,r)}_[e]=n}}),((e,t)=>{g[e]=-2;S[e]=t}),h,l)};e.exports=streamChunksOfCombinedSourceMap},704:function(e,t,n){"use strict";const s=n(311);const r=n(394);const streamChunksOfRawSource=(e,t,n,s)=>{let i=1;const u=r(e);let o;for(o of u){t(o,i,0,-1,-1,-1,-1);i++}return u.length===0||o.endsWith("\n")?{generatedLine:u.length+1,generatedColumn:0}:{generatedLine:u.length,generatedColumn:o.length}};e.exports=(e,t,n,r,i)=>i?s(e):streamChunksOfRawSource(e,t,n,r)},968:function(e,t,n){"use strict";const s=n(311);const r=n(250);const i=n(665);const u=n(394);const streamChunksOfSourceMapFull=(e,t,n,s,o)=>{const f=u(e);if(f.length===0){return{generatedLine:1,generatedColumn:0}}const{sources:c,sourcesContent:a,names:h,mappings:l}=t;for(let e=0;e<c.length;e++){s(e,r(t,e),a&&a[e]||undefined)}if(h){for(let e=0;e<h.length;e++){o(e,h[e])}}const d=f[f.length-1];const p=d.endsWith("\n");const _=p?f.length+1:f.length;const g=p?0:d.length;let S=1;let m=0;let A=false;let M=-1;let B=-1;let v=-1;let C=-1;const onMapping=(e,t,s,r,i,u)=>{if(A&&S<=f.length){let s;const r=S;const i=m;const u=f[S-1];if(e!==S){s=u.slice(m);S++;m=0}else{s=u.slice(m,t);m=t}if(s){n(s,r,i,M,B,v,C)}A=false}if(e>S&&m>0){if(S<=f.length){const e=f[S-1].slice(m);n(e,S,m,-1,-1,-1,-1)}S++;m=0}while(e>S){if(S<=f.length){n(f[S-1],S,0,-1,-1,-1,-1)}S++}if(t>m){if(S<=f.length){const e=f[S-1].slice(m,t);n(e,S,m,-1,-1,-1,-1)}m=t}if(s>=0&&(e<_||e===_&&t<g)){A=true;M=s;B=r;v=i;C=u}};i(l,onMapping);onMapping(_,g,-1,-1,-1,-1);return{generatedLine:_,generatedColumn:g}};const streamChunksOfSourceMapLinesFull=(e,t,n,s,o)=>{const f=u(e);if(f.length===0){return{generatedLine:1,generatedColumn:0}}const{sources:c,sourcesContent:a,mappings:h}=t;for(let e=0;e<c.length;e++){s(e,r(t,e),a&&a[e]||undefined)}let l=1;const onMapping=(e,t,s,r,i,u)=>{if(s<0||e<l||e>f.length){return}while(e>l){if(l<=f.length){n(f[l-1],l,0,-1,-1,-1,-1)}l++}if(e<=f.length){n(f[e-1],e,0,s,r,i,-1);l++}};i(h,onMapping);for(;l<=f.length;l++){n(f[l-1],l,0,-1,-1,-1,-1)}const d=f[f.length-1];const p=d.endsWith("\n");const _=p?f.length+1:f.length;const g=p?0:d.length;return{generatedLine:_,generatedColumn:g}};const streamChunksOfSourceMapFinal=(e,t,n,u,o)=>{const f=s(e);const{generatedLine:c,generatedColumn:a}=f;if(c===1&&a===0)return f;const{sources:h,sourcesContent:l,names:d,mappings:p}=t;for(let e=0;e<h.length;e++){u(e,r(t,e),l&&l[e]||undefined)}if(d){for(let e=0;e<d.length;e++){o(e,d[e])}}let _=0;const onMapping=(e,t,s,r,i,u)=>{if(e>=c&&(t>=a||e>c)){return}if(s>=0){n(undefined,e,t,s,r,i,u);_=e}else if(_===e){n(undefined,e,t,-1,-1,-1,-1);_=0}};i(p,onMapping);return f};const streamChunksOfSourceMapLinesFinal=(e,t,n,u,o)=>{const f=s(e);const{generatedLine:c,generatedColumn:a}=f;if(c===1&&a===0){return{generatedLine:1,generatedColumn:0}}const{sources:h,sourcesContent:l,mappings:d}=t;for(let e=0;e<h.length;e++){u(e,r(t,e),l&&l[e]||undefined)}const p=a===0?c-1:c;let _=1;const onMapping=(e,t,s,r,i,u)=>{if(s>=0&&_<=e&&e<=p){n(undefined,e,0,s,r,i,-1);_=e+1}};i(d,onMapping);return f};e.exports=(e,t,n,s,r,i,u)=>{if(u){return i?streamChunksOfSourceMapFinal(e,t,n,s,r):streamChunksOfSourceMapFull(e,t,n,s,r)}else{return i?streamChunksOfSourceMapLinesFinal(e,t,n,s,r):streamChunksOfSourceMapLinesFull(e,t,n,s,r)}}},278:function(e,t,n){const defineExport=(e,n)=>{let s;Object.defineProperty(t,e,{get:()=>{if(n!==undefined){s=n();n=undefined}return s},configurable:true})};defineExport("Source",(()=>n(535)));defineExport("RawSource",(()=>n(459)));defineExport("OriginalSource",(()=>n(627)));defineExport("SourceMapSource",(()=>n(69)));defineExport("CachedSource",(()=>n(385)));defineExport("ConcatSource",(()=>n(279)));defineExport("ReplaceSource",(()=>n(266)));defineExport("PrefixSource",(()=>n(212)));defineExport("SizeOnlySource",(()=>n(498)));defineExport("CompatSource",(()=>n(83)))}};var t={};function __nccwpck_require__(n){var s=t[n];if(s!==undefined){return s.exports}var r=t[n]={exports:{}};var i=true;try{e[n](r,r.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(278);module.exports=n})();
package/dist/build.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { IOpts as IConfigOpts } from './config/config';
1
2
  import { IConfig } from './types';
2
- interface IOpts {
3
+ declare type IOpts = {
3
4
  cwd: string;
4
5
  entry: Record<string, string>;
5
6
  config: IConfig;
@@ -12,6 +13,6 @@ interface IOpts {
12
13
  extraBabelPlugins?: any[];
13
14
  extraBabelPresets?: any[];
14
15
  clean?: boolean;
15
- }
16
+ } & Pick<IConfigOpts, 'cache'>;
16
17
  export declare function build(opts: IOpts): Promise<void>;
17
18
  export {};
package/dist/build.js CHANGED
@@ -36,6 +36,7 @@ function build(opts) {
36
36
  ],
37
37
  chainWebpack: opts.chainWebpack,
38
38
  modifyWebpackConfig: opts.modifyWebpackConfig,
39
+ cache: opts.cache,
39
40
  });
40
41
  let isFirstCompile = true;
41
42
  return new Promise((resolve, reject) => {
package/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ const dev_1 = require("./dev");
22
22
  const args = (0, utils_1.yParser)(process.argv.slice(2), {});
23
23
  const command = args._[0];
24
24
  const cwd = process.cwd();
25
- const entry = tryPaths([
25
+ const entry = (0, utils_1.tryPaths)([
26
26
  (0, path_1.join)(cwd, 'src/index.tsx'),
27
27
  (0, path_1.join)(cwd, 'src/index.ts'),
28
28
  (0, path_1.join)(cwd, 'index.tsx'),
@@ -69,6 +69,9 @@ else if (command === 'dev') {
69
69
  entry: {
70
70
  [getEntryKey(entry)]: entry,
71
71
  },
72
+ cache: {
73
+ buildDependencies: [].filter(Boolean),
74
+ },
72
75
  });
73
76
  }
74
77
  catch (e) {
@@ -82,12 +85,6 @@ else {
82
85
  function error(msg) {
83
86
  console.error(utils_1.chalk.red(msg));
84
87
  }
85
- function tryPaths(paths) {
86
- for (const path of paths) {
87
- if ((0, fs_1.existsSync)(path))
88
- return path;
89
- }
90
- }
91
88
  function getEntryKey(path) {
92
89
  return (0, path_1.basename)(path, (0, path_1.extname)(path));
93
90
  }
@@ -40,25 +40,17 @@ function addAssetRules(opts) {
40
40
  .generator({
41
41
  filename: `${opts.staticPathPrefix}[name].[hash:8].[ext]`,
42
42
  });
43
- rule
44
- .oneOf('svg')
45
- .type('asset')
46
- .resourceQuery(/url/)
47
- .parser({
48
- dataUrlCondition: {
49
- maxSize: 1000,
50
- },
51
- })
52
- .generator({
53
- filename: `${opts.staticPathPrefix}[name].[hash:8].[ext]`,
54
- });
55
- rule
43
+ const fallback = rule
56
44
  .oneOf('fallback')
57
45
  .exclude.add(/^$/) /* handle data: resources */
58
46
  .add(/\.(js|mjs|jsx|ts|tsx)$/)
59
47
  .add(/\.(css|less|sass|scss|stylus)$/)
60
48
  .add(/\.html$/)
61
- .add(/\.json$/)
49
+ .add(/\.json$/);
50
+ if (userConfig.mdx) {
51
+ fallback.add(/\.mdx?$/);
52
+ }
53
+ fallback
62
54
  .end()
63
55
  .type('asset/resource')
64
56
  .generator({
@@ -1,11 +1,12 @@
1
1
  import { Configuration } from '../../compiled/webpack';
2
2
  import { Env, IConfig } from '../types';
3
- interface IOpts {
3
+ export interface IOpts {
4
4
  cwd: string;
5
5
  env: Env;
6
6
  entry: Record<string, string>;
7
7
  extraBabelPresets?: any[];
8
8
  extraBabelPlugins?: any[];
9
+ extraEsbuildLoaderHandler?: any[];
9
10
  babelPreset?: any;
10
11
  chainWebpack?: Function;
11
12
  modifyWebpackConfig?: Function;
@@ -15,6 +16,10 @@ interface IOpts {
15
16
  userConfig: IConfig;
16
17
  analyze?: any;
17
18
  name?: string;
19
+ cache?: {
20
+ absNodeModulesPath?: string;
21
+ buildDependencies?: string[];
22
+ cacheDirectory?: string;
23
+ };
18
24
  }
19
25
  export declare function getConfig(opts: IOpts): Promise<Configuration>;
20
- export {};
@@ -17,6 +17,7 @@ const path_1 = require("path");
17
17
  const webpack_1 = __importDefault(require("../../compiled/webpack"));
18
18
  const webpack_5_chain_1 = __importDefault(require("../../compiled/webpack-5-chain"));
19
19
  const constants_1 = require("../constants");
20
+ const RuntimePublicPathPlugin_1 = require("../plugins/RuntimePublicPathPlugin");
20
21
  const types_1 = require("../types");
21
22
  const browsersList_1 = require("../utils/browsersList");
22
23
  const assetRules_1 = require("./assetRules");
@@ -26,8 +27,11 @@ const copyPlugin_1 = require("./copyPlugin");
26
27
  const cssRules_1 = require("./cssRules");
27
28
  const definePlugin_1 = require("./definePlugin");
28
29
  const fastRefreshPlugin_1 = require("./fastRefreshPlugin");
30
+ const forkTSCheckerPlugin_1 = require("./forkTSCheckerPlugin");
31
+ const harmonyLinkingErrorPlugin_1 = require("./harmonyLinkingErrorPlugin");
29
32
  const ignorePlugin_1 = require("./ignorePlugin");
30
33
  const javaScriptRules_1 = require("./javaScriptRules");
34
+ const manifestPlugin_1 = require("./manifestPlugin");
31
35
  const miniCSSExtractPlugin_1 = require("./miniCSSExtractPlugin");
32
36
  const nodePolyfill_1 = require("./nodePolyfill");
33
37
  const progressPlugin_1 = require("./progressPlugin");
@@ -41,6 +45,7 @@ function getConfig(opts) {
41
45
  userConfig.targets = userConfig.targets || {
42
46
  chrome: 80,
43
47
  };
48
+ const useHash = !!(opts.hash || (userConfig.hash && !isDev));
44
49
  const applyOpts = {
45
50
  name: opts.name,
46
51
  config,
@@ -50,9 +55,11 @@ function getConfig(opts) {
50
55
  babelPreset: opts.babelPreset,
51
56
  extraBabelPlugins: opts.extraBabelPlugins || [],
52
57
  extraBabelPresets: opts.extraBabelPresets || [],
58
+ extraEsbuildLoaderHandler: opts.extraEsbuildLoaderHandler || [],
53
59
  browsers: (0, browsersList_1.getBrowsersList)({
54
60
  targets: userConfig.targets,
55
61
  }),
62
+ useHash,
56
63
  staticPathPrefix: opts.staticPathPrefix !== undefined ? opts.staticPathPrefix : 'static/',
57
64
  };
58
65
  // mode
@@ -61,7 +68,6 @@ function getConfig(opts) {
61
68
  // entry
62
69
  Object.keys(opts.entry).forEach((key) => {
63
70
  const entry = config.entry(key);
64
- // TODO: runtimePublicPath
65
71
  if (isDev && opts.hmr) {
66
72
  entry.add(require.resolve('../../client/client/client'));
67
73
  }
@@ -75,7 +81,6 @@ function getConfig(opts) {
75
81
  : userConfig.devtool);
76
82
  // output
77
83
  const absOutputPath = (0, path_1.join)(opts.cwd, userConfig.outputPath || constants_1.DEFAULT_OUTPUT_PATH);
78
- const useHash = opts.hash || (userConfig.hash && !isDev);
79
84
  const disableCompress = process.env.COMPRESS === 'none';
80
85
  config.output
81
86
  .path(absOutputPath)
@@ -131,10 +136,12 @@ function getConfig(opts) {
131
136
  yield (0, fastRefreshPlugin_1.addFastRefreshPlugin)(applyOpts);
132
137
  // progress
133
138
  yield (0, progressPlugin_1.addProgressPlugin)(applyOpts);
139
+ // fork-ts-checker
140
+ yield (0, forkTSCheckerPlugin_1.addForkTSCheckerPlugin)(applyOpts);
134
141
  // copy
135
142
  yield (0, copyPlugin_1.addCopyPlugin)(applyOpts);
136
- // TODO: friendly-error
137
- // TODO: manifest
143
+ // manifest
144
+ yield (0, manifestPlugin_1.addManifestPlugin)(applyOpts);
138
145
  // hmr
139
146
  if (isDev && opts.hmr) {
140
147
  config.plugin('hmr').use(webpack_1.default.HotModuleReplacementPlugin);
@@ -143,6 +150,40 @@ function getConfig(opts) {
143
150
  yield (0, compressPlugin_1.addCompressPlugin)(applyOpts);
144
151
  // purgecss
145
152
  // await applyPurgeCSSWebpackPlugin(applyOpts);
153
+ // handle HarmonyLinkingError
154
+ yield (0, harmonyLinkingErrorPlugin_1.addHarmonyLinkingErrorPlugin)(applyOpts);
155
+ // runtimePublicPath
156
+ if (userConfig.runtimePublicPath) {
157
+ config.plugin('runtimePublicPath').use(RuntimePublicPathPlugin_1.RuntimePublicPathPlugin);
158
+ }
159
+ // cache
160
+ if (opts.cache) {
161
+ config.cache({
162
+ type: 'filesystem',
163
+ version: require('../../package.json').version,
164
+ buildDependencies: {
165
+ config: opts.cache.buildDependencies || [],
166
+ },
167
+ cacheDirectory: opts.cache.cacheDirectory ||
168
+ (0, path_1.join)(opts.cwd, 'node_modules', '.cache', 'bundler-webpack'),
169
+ });
170
+ // tnpm 安装依赖的情况 webpack 默认的 managedPaths 不生效
171
+ // 使用 immutablePaths 避免 node_modules 的内容被写入缓存
172
+ // tnpm 安装的依赖路径中同时包含包名和版本号,满足 immutablePaths 使用的条件
173
+ // ref: smallfish
174
+ if ( /*isTnpm*/require('@umijs/utils/package').__npminstall_done) {
175
+ config.snapshot({
176
+ immutablePaths: [
177
+ opts.cache.absNodeModulesPath || (0, path_1.join)(opts.cwd, 'node_modules'),
178
+ ],
179
+ });
180
+ }
181
+ config.infrastructureLogging(Object.assign({ level: 'error' }, (process.env.WEBPACK_FS_CACHE_DEBUG
182
+ ? {
183
+ debug: /webpack\.cache/,
184
+ }
185
+ : {})));
186
+ }
146
187
  // analyzer
147
188
  if (opts.analyze) {
148
189
  yield (0, bundleAnalyzerPlugin_1.addBundleAnalyzerPlugin)(applyOpts);
@@ -56,7 +56,7 @@ function addCSSRules(opts) {
56
56
  }
57
57
  else {
58
58
  rule
59
- .use('mini-css-extract-plugin-loader')
59
+ .use('mini-css-extract-plugin')
60
60
  .loader(require.resolve('@umijs/bundler-webpack/compiled/mini-css-extract-plugin/loader'))
61
61
  .options({
62
62
  publicPath: './',
@@ -0,0 +1,11 @@
1
+ import Config from '@umijs/bundler-webpack/compiled/webpack-5-chain';
2
+ import { Env, IConfig } from '../types';
3
+ interface IOpts {
4
+ name?: string;
5
+ config: Config;
6
+ userConfig: IConfig;
7
+ cwd: string;
8
+ env: Env;
9
+ }
10
+ export declare function addForkTSCheckerPlugin(opts: IOpts): Promise<void>;
11
+ export {};
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.addForkTSCheckerPlugin = void 0;
16
+ // @ts-ignore
17
+ const fork_ts_checker_webpack_plugin_1 = __importDefault(require("@umijs/bundler-webpack/compiled/fork-ts-checker-webpack-plugin"));
18
+ function addForkTSCheckerPlugin(opts) {
19
+ var _a;
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const { config, userConfig } = opts;
22
+ if (userConfig.forkTSChecker) {
23
+ // use user's typescript
24
+ if ((_a = userConfig.forkTSChecker.typescript) === null || _a === void 0 ? void 0 : _a.enable) {
25
+ userConfig.forkTSChecker.typescript.typescriptPath =
26
+ require.resolve('typescript');
27
+ }
28
+ config
29
+ .plugin('fork-ts-checker-plugin')
30
+ .use(fork_ts_checker_webpack_plugin_1.default, [userConfig.forkTSChecker]);
31
+ }
32
+ });
33
+ }
34
+ exports.addForkTSCheckerPlugin = addForkTSCheckerPlugin;
@@ -0,0 +1,6 @@
1
+ import Config from '@umijs/bundler-webpack/compiled/webpack-5-chain';
2
+ interface IOpts {
3
+ config: Config;
4
+ }
5
+ export declare function addHarmonyLinkingErrorPlugin(opts: IOpts): Promise<void>;
6
+ export {};
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.addHarmonyLinkingErrorPlugin = void 0;
13
+ // ref: https://github.com/webpack/webpack/blob/ccecc17c01af96edddb931a76e7a3b21ef2969d8/lib/dependencies/HarmonyImportDependency.js#L164
14
+ const LINKING_ERROR_TAG = 'was not found in';
15
+ // build 时会出现 css modules 的引用警告,但这应该是需要忽略的
16
+ const CSS_NO_EXPORTS = /\.(css|sass|scss|styl|less)' \(module has no exports\)/;
17
+ class HarmonyLinkingErrorPlugin {
18
+ apply(compiler) {
19
+ compiler.hooks.afterCompile.tap('HarmonyLinkingErrorPlugin', (compilation) => {
20
+ if (!compilation.warnings.length) {
21
+ return;
22
+ }
23
+ const harmonyLinkingErrors = compilation.warnings.filter((w) => {
24
+ return (w.name === 'ModuleDependencyWarning' &&
25
+ !w.module.resource.includes('node_modules') &&
26
+ w.message.includes(LINKING_ERROR_TAG) &&
27
+ !CSS_NO_EXPORTS.test(w.message));
28
+ });
29
+ if (!harmonyLinkingErrors.length) {
30
+ return;
31
+ }
32
+ compilation.errors.push(...harmonyLinkingErrors);
33
+ });
34
+ }
35
+ }
36
+ function addHarmonyLinkingErrorPlugin(opts) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const { config } = opts;
39
+ config.plugin('harmony-linking-error-plugin').use(HarmonyLinkingErrorPlugin);
40
+ });
41
+ }
42
+ exports.addHarmonyLinkingErrorPlugin = addHarmonyLinkingErrorPlugin;
@@ -7,6 +7,7 @@ interface IOpts {
7
7
  env: Env;
8
8
  extraBabelPlugins: any[];
9
9
  extraBabelPresets: any[];
10
+ extraEsbuildLoaderHandler: any[];
10
11
  babelPreset: any;
11
12
  name?: string;
12
13
  }