@umijs/bundler-webpack 3.5.18 → 4.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/bin/bundler-webpack.js +1 -2
- package/client/client/client.js +202 -0
- package/client/constants.js +12 -0
- package/client/utils/formatWebpackMessages.js +92 -0
- package/compiled/@svgr/webpack/LICENSE +7 -0
- package/compiled/@svgr/webpack/index.js +266 -0
- package/compiled/@svgr/webpack/package.json +1 -0
- package/compiled/autoprefixer/LICENSE +20 -0
- package/compiled/autoprefixer/browserslist/index.d.ts +172 -0
- package/compiled/autoprefixer/index.js +9 -0
- package/compiled/autoprefixer/lib/autoprefixer.d.ts +95 -0
- package/compiled/autoprefixer/package.json +1 -0
- package/compiled/autoprefixer/postcss/lib/at-rule.d.ts +106 -0
- package/compiled/autoprefixer/postcss/lib/comment.d.ts +56 -0
- package/compiled/autoprefixer/postcss/lib/container.d.ts +442 -0
- package/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts +192 -0
- package/compiled/autoprefixer/postcss/lib/declaration.d.ts +124 -0
- package/compiled/autoprefixer/postcss/lib/document.d.ts +57 -0
- package/compiled/autoprefixer/postcss/lib/input.d.ts +130 -0
- package/compiled/autoprefixer/postcss/lib/lazy-result.d.ts +175 -0
- package/compiled/autoprefixer/postcss/lib/list.d.ts +51 -0
- package/compiled/autoprefixer/postcss/lib/node.d.ts +444 -0
- package/compiled/autoprefixer/postcss/lib/postcss.d.ts +472 -0
- package/compiled/autoprefixer/postcss/lib/previous-map.d.ts +72 -0
- package/compiled/autoprefixer/postcss/lib/processor.d.ts +101 -0
- package/compiled/autoprefixer/postcss/lib/result.d.ts +195 -0
- package/compiled/autoprefixer/postcss/lib/root.d.ts +73 -0
- package/compiled/autoprefixer/postcss/lib/rule.d.ts +104 -0
- package/compiled/autoprefixer/postcss/lib/warning.d.ts +104 -0
- package/compiled/autoprefixer/source-map-js/source-map.d.ts +98 -0
- package/compiled/babel-loader/LICENSE +22 -0
- package/compiled/babel-loader/index.js +3 -0
- package/compiled/babel-loader/package.json +1 -0
- package/compiled/compression/LICENSE +23 -0
- package/compiled/compression/index.js +57 -0
- package/compiled/compression/package.json +1 -0
- package/compiled/connect-history-api-fallback/LICENSE +21 -0
- package/compiled/connect-history-api-fallback/index.js +1 -0
- package/compiled/connect-history-api-fallback/package.json +1 -0
- package/{lib/webpack/plugins/mini-css-extract-plugin → compiled/copy-webpack-plugin}/LICENSE +0 -0
- package/compiled/copy-webpack-plugin/index.js +46 -0
- package/compiled/copy-webpack-plugin/package.json +1 -0
- package/{lib/webpack/plugins/terser-webpack-plugin → compiled/css-loader}/LICENSE +0 -0
- package/compiled/css-loader/api.js +102 -0
- package/compiled/css-loader/getUrl.js +29 -0
- package/compiled/css-loader/index.js +2 -0
- package/compiled/css-loader/noSourceMaps.js +5 -0
- package/compiled/css-loader/package.json +1 -0
- package/compiled/css-loader/sourceMaps.js +22 -0
- package/compiled/css-minimizer-webpack-plugin/LICENSE +20 -0
- package/compiled/css-minimizer-webpack-plugin/index.js +3 -0
- package/compiled/css-minimizer-webpack-plugin/minify.js +72 -0
- package/compiled/css-minimizer-webpack-plugin/package.json +1 -0
- package/compiled/css-minimizer-webpack-plugin/utils.js +166 -0
- package/compiled/cssnano/index.js +192 -0
- package/compiled/cssnano/package.json +1 -0
- package/compiled/express/LICENSE +24 -0
- package/compiled/express/body-parser/index.d.ts +104 -0
- package/compiled/express/connect/index.d.ts +93 -0
- package/compiled/express/express-serve-static-core/index.d.ts +1252 -0
- package/compiled/express/index.d.ts +133 -0
- package/compiled/express/index.js +338 -0
- package/compiled/express/mime/index.d.ts +35 -0
- package/compiled/express/package.json +1 -0
- package/compiled/express/qs/index.d.ts +62 -0
- package/compiled/express/range-parser/index.d.ts +35 -0
- package/compiled/express/serve-static/index.d.ts +108 -0
- package/compiled/http-proxy-middleware/LICENSE +22 -0
- package/compiled/http-proxy-middleware/dist/index.d.ts +4 -0
- package/compiled/http-proxy-middleware/dist/types.d.ts +54 -0
- package/compiled/http-proxy-middleware/http-proxy/index.d.ts +226 -0
- package/compiled/http-proxy-middleware/index.js +66 -0
- package/compiled/http-proxy-middleware/package.json +1 -0
- package/compiled/less/index.js +31 -0
- package/compiled/less/package.json +1 -0
- package/compiled/less-loader/LICENSE +20 -0
- package/compiled/less-loader/index.js +1 -0
- package/compiled/less-loader/package.json +1 -0
- package/compiled/mini-css-extract-plugin/LICENSE +20 -0
- package/{lib/webpack/plugins/mini-css-extract-plugin/src → compiled/mini-css-extract-plugin}/hmr/hotModuleReplacement.js +50 -52
- package/compiled/mini-css-extract-plugin/hmr/normalize-url.js +35 -0
- package/compiled/mini-css-extract-plugin/index.js +11606 -0
- package/compiled/mini-css-extract-plugin/loader-options.json +32 -0
- package/compiled/mini-css-extract-plugin/loader.js +315 -0
- package/compiled/mini-css-extract-plugin/package.json +1 -0
- package/compiled/mini-css-extract-plugin/utils.js +154 -0
- package/compiled/postcss-flexbugs-fixes/LICENSE +20 -0
- package/compiled/postcss-flexbugs-fixes/index.js +1 -0
- package/compiled/postcss-flexbugs-fixes/package.json +1 -0
- package/compiled/postcss-loader/LICENSE +20 -0
- package/compiled/postcss-loader/index.js +1 -0
- package/compiled/postcss-loader/package.json +1 -0
- package/compiled/purgecss-webpack-plugin/LICENSE +21 -0
- package/compiled/purgecss-webpack-plugin/index.js +7781 -0
- package/compiled/purgecss-webpack-plugin/package.json +1 -0
- package/compiled/react-refresh/index.js +19 -0
- package/compiled/sass-loader/LICENSE +20 -0
- package/compiled/sass-loader/index.js +1 -0
- package/compiled/sass-loader/package.json +1 -0
- package/compiled/schema-utils/LICENSE +20 -0
- package/compiled/schema-utils/ajv/lib/ajv.d.ts +397 -0
- package/compiled/schema-utils/declarations/ValidationError.d.ts +74 -0
- package/compiled/schema-utils/declarations/index.d.ts +3 -0
- package/compiled/schema-utils/declarations/validate.d.ts +37 -0
- package/compiled/schema-utils/index.js +3 -0
- package/compiled/schema-utils/json-schema/index.d.ts +751 -0
- package/compiled/schema-utils/package.json +1 -0
- package/compiled/speed-measure-webpack-plugin/LICENSE +21 -0
- package/compiled/speed-measure-webpack-plugin/index.js +1 -0
- package/compiled/speed-measure-webpack-plugin/package.json +1 -0
- package/compiled/style-loader/LICENSE +20 -0
- package/compiled/style-loader/index.js +1 -0
- package/compiled/style-loader/package.json +1 -0
- package/compiled/style-loader/runtime/injectStylesIntoLinkTag.js +29 -0
- package/compiled/style-loader/runtime/injectStylesIntoStyleTag.js +104 -0
- package/compiled/style-loader/runtime/insertBySelector.js +39 -0
- package/compiled/style-loader/runtime/insertStyleElement.js +11 -0
- package/compiled/style-loader/runtime/isEqualLocals.js +35 -0
- package/compiled/style-loader/runtime/isOldIE.js +19 -0
- package/compiled/style-loader/runtime/setAttributesWithAttributes.js +16 -0
- package/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js +10 -0
- package/compiled/style-loader/runtime/setAttributesWithoutAttributes.js +12 -0
- package/compiled/style-loader/runtime/singletonStyleDomAPI.js +93 -0
- package/compiled/style-loader/runtime/styleDomAPI.js +70 -0
- package/compiled/style-loader/runtime/styleTagTransform.js +16 -0
- package/compiled/svgo-loader/LICENSE +22 -0
- package/compiled/svgo-loader/index.js +4 -0
- package/compiled/svgo-loader/package.json +1 -0
- package/compiled/swc-loader/LICENSE +25 -0
- package/compiled/swc-loader/index.js +1 -0
- package/compiled/swc-loader/package.json +1 -0
- package/compiled/tapable/LICENSE +21 -0
- package/compiled/tapable/index.js +1 -0
- package/compiled/tapable/package.json +1 -0
- package/compiled/tapable/tapable.d.ts +116 -0
- package/compiled/terser/LICENSE +29 -0
- package/compiled/terser/index.js +1 -0
- package/compiled/terser/mappings.wasm +0 -0
- package/compiled/terser/package.json +1 -0
- package/compiled/terser/source-map/source-map.d.ts +369 -0
- package/compiled/terser/tools/terser.d.ts +207 -0
- package/compiled/terser-webpack-plugin/LICENSE +20 -0
- package/compiled/terser-webpack-plugin/ajv/lib/ajv.d.ts +397 -0
- package/compiled/terser-webpack-plugin/index.js +15142 -0
- package/compiled/terser-webpack-plugin/jest-worker/build/index.d.ts +49 -0
- package/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts +142 -0
- package/compiled/terser-webpack-plugin/json-schema/index.d.ts +751 -0
- package/compiled/terser-webpack-plugin/minify.js +43 -0
- package/compiled/terser-webpack-plugin/package.json +1 -0
- package/compiled/terser-webpack-plugin/schema-utils/declarations/ValidationError.d.ts +74 -0
- package/compiled/terser-webpack-plugin/schema-utils/declarations/index.d.ts +3 -0
- package/compiled/terser-webpack-plugin/schema-utils/declarations/validate.d.ts +37 -0
- package/compiled/terser-webpack-plugin/source-map/source-map.d.ts +98 -0
- package/compiled/terser-webpack-plugin/types/cjs.d.ts +3 -0
- package/compiled/terser-webpack-plugin/types/index.d.ts +295 -0
- package/compiled/terser-webpack-plugin/types/utils.d.ts +105 -0
- package/compiled/terser-webpack-plugin/utils.js +594 -0
- package/compiled/url-loader/LICENSE +20 -0
- package/compiled/url-loader/index.js +15 -0
- package/compiled/url-loader/package.json +1 -0
- package/compiled/webpack/Chunk.js +1 -0
- package/compiled/webpack/Compilation.js +1 -0
- package/compiled/webpack/HotModuleReplacement.runtime.js +394 -0
- package/compiled/webpack/JavascriptHotModuleReplacement.runtime.js +462 -0
- package/compiled/webpack/LICENSE +20 -0
- package/compiled/webpack/LibraryTemplatePlugin.js +1 -0
- package/compiled/webpack/LoaderTargetPlugin.js +1 -0
- package/compiled/webpack/ModuleFilenameHelpers.js +1 -0
- package/compiled/webpack/NormalModule.js +1 -0
- package/compiled/webpack/RuntimeGlobals.js +1 -0
- package/compiled/webpack/RuntimeModule.js +1 -0
- package/compiled/webpack/SingleEntryPlugin.js +1 -0
- package/compiled/webpack/Template.js +1 -0
- package/compiled/webpack/ajv/lib/ajv.d.ts +397 -0
- package/compiled/webpack/deepImports.json +12 -0
- package/compiled/webpack/index.js +162861 -0
- package/compiled/webpack/json-schema/index.d.ts +751 -0
- package/compiled/webpack/lazy-compilation-node.js +40 -0
- package/compiled/webpack/lazy-compilation-web.js +74 -0
- package/compiled/webpack/package.json +5 -0
- package/compiled/webpack/schema-utils/declarations/ValidationError.d.ts +74 -0
- package/compiled/webpack/schema-utils/declarations/index.d.ts +3 -0
- package/compiled/webpack/schema-utils/declarations/validate.d.ts +37 -0
- package/compiled/webpack/types.d.ts +12664 -0
- package/compiled/webpack-5-chain/LICENSE +373 -0
- package/compiled/webpack-5-chain/index.js +1 -0
- package/compiled/webpack-5-chain/package.json +1 -0
- package/compiled/webpack-5-chain/types/index.d.ts +543 -0
- package/compiled/webpack-bundle-analyzer/LICENSE +20 -0
- package/compiled/webpack-bundle-analyzer/index.js +30 -0
- package/compiled/webpack-bundle-analyzer/package.json +1 -0
- package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
- package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
- package/compiled/webpack-bundle-analyzer/public/viewer.js.map +1 -0
- package/compiled/webpack-dev-middleware/LICENSE +20 -0
- package/compiled/webpack-dev-middleware/index.js +21 -0
- package/compiled/webpack-dev-middleware/package.json +1 -0
- package/compiled/webpack-sources/LICENSE +21 -0
- package/compiled/webpack-sources/index.d.ts +20 -0
- package/compiled/webpack-sources/index.js +1 -0
- package/compiled/webpack-sources/lib/CachedSource.d.ts +18 -0
- package/compiled/webpack-sources/lib/CompatSource.d.ts +9 -0
- package/compiled/webpack-sources/lib/ConcatSource.d.ts +22 -0
- package/compiled/webpack-sources/lib/OriginalSource.d.ts +18 -0
- package/compiled/webpack-sources/lib/PrefixSource.d.ts +12 -0
- package/compiled/webpack-sources/lib/RawSource.d.ts +13 -0
- package/compiled/webpack-sources/lib/ReplaceSource.d.ts +35 -0
- package/compiled/webpack-sources/lib/SizeOnlySource.d.ts +7 -0
- package/compiled/webpack-sources/lib/Source.d.ts +45 -0
- package/compiled/webpack-sources/lib/SourceMapSource.d.ts +22 -0
- package/compiled/webpack-sources/lib/index.d.ts +60 -0
- package/compiled/webpack-sources/package.json +1 -0
- package/compiled/webpack-sources/source-list-map/index.d.ts +91 -0
- package/compiled/webpack-sources/source-map/source-map.d.ts +369 -0
- package/compiled/ws/LICENSE +19 -0
- package/compiled/ws/index.d.ts +359 -0
- package/compiled/ws/index.js +1 -0
- package/compiled/ws/package.json +1 -0
- package/dist/build.d.ts +17 -0
- package/dist/build.js +72 -0
- package/{lib → dist}/cli.d.ts +0 -0
- package/dist/cli.js +93 -0
- package/{lib/webpackHotDevClient/webpackHotDevClient.d.ts → dist/client/client.d.ts} +0 -0
- package/dist/client/client.js +239 -0
- package/dist/config/_sampleFeature.d.ts +10 -0
- package/dist/config/_sampleFeature.js +22 -0
- package/dist/config/assetRules.d.ts +11 -0
- package/dist/config/assetRules.js +69 -0
- package/dist/config/bundleAnalyzerPlugin.d.ts +10 -0
- package/dist/config/bundleAnalyzerPlugin.js +30 -0
- package/dist/config/compressPlugin.d.ts +10 -0
- package/dist/config/compressPlugin.js +77 -0
- package/dist/config/config.d.ts +20 -0
- package/dist/config/config.js +178 -0
- package/dist/config/copyPlugin.d.ts +10 -0
- package/dist/config/copyPlugin.js +49 -0
- package/dist/config/cssRules.d.ts +11 -0
- package/dist/config/cssRules.js +98 -0
- package/dist/config/definePlugin.d.ts +15 -0
- package/dist/config/definePlugin.js +45 -0
- package/dist/config/fastRefreshPlugin.d.ts +12 -0
- package/dist/config/fastRefreshPlugin.js +34 -0
- package/dist/config/ignorePlugin.d.ts +10 -0
- package/dist/config/ignorePlugin.js +27 -0
- package/dist/config/javaScriptRules.d.ts +14 -0
- package/dist/config/javaScriptRules.js +155 -0
- package/dist/config/miniCSSExtractPlugin.d.ts +10 -0
- package/dist/config/miniCSSExtractPlugin.js +34 -0
- package/dist/config/nodePolyfill.d.ts +10 -0
- package/dist/config/nodePolyfill.js +34 -0
- package/dist/config/progressPlugin.d.ts +11 -0
- package/dist/config/progressPlugin.js +27 -0
- package/dist/config/purgecssWebpackPlugin.d.ts +10 -0
- package/dist/config/purgecssWebpackPlugin.js +32 -0
- package/dist/config/speedMeasureWebpackPlugin.d.ts +6 -0
- package/dist/config/speedMeasureWebpackPlugin.js +34 -0
- package/dist/config/svgRules.d.ts +11 -0
- package/dist/config/svgRules.js +43 -0
- package/dist/constants.d.ts +11 -0
- package/dist/constants.js +15 -0
- package/dist/dev.d.ts +19 -0
- package/dist/dev.js +87 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +16 -0
- package/dist/plugins/ESBuildCSSMinifyPlugin.d.ts +11 -0
- package/dist/plugins/ESBuildCSSMinifyPlugin.js +65 -0
- package/dist/plugins/ProgressPlugin.d.ts +15 -0
- package/dist/plugins/ProgressPlugin.js +44 -0
- package/dist/plugins/_SamplePlugin.d.ts +9 -0
- package/dist/plugins/_SamplePlugin.js +14 -0
- package/dist/requireHook.d.ts +1 -0
- package/dist/requireHook.js +31 -0
- package/dist/schema.d.ts +3 -0
- package/dist/schema.js +72 -0
- package/dist/server/server.d.ts +16 -0
- package/dist/server/server.js +158 -0
- package/dist/server/ws.d.ts +8 -0
- package/dist/server/ws.js +42 -0
- package/dist/swcPlugins/autoCSSModules.d.ts +8 -0
- package/dist/swcPlugins/autoCSSModules.js +35 -0
- package/dist/types.d.ts +100 -0
- package/dist/types.js +29 -0
- package/dist/utils/browsersList.d.ts +5 -0
- package/dist/utils/browsersList.js +10 -0
- package/dist/utils/depMatch.d.ts +6 -0
- package/dist/utils/depMatch.js +46 -0
- package/dist/utils/formatWebpackMessages.d.ts +12 -0
- package/dist/utils/formatWebpackMessages.js +100 -0
- package/package.json +170 -42
- package/bundled/css/hotModuleReplacement.js +0 -1203
- package/bundled/js/webpackHotDevClient.js +0 -13386
- package/lib/DevCompileDonePlugin.d.ts +0 -10
- package/lib/DevCompileDonePlugin.js +0 -53
- package/lib/cli.js +0 -184
- package/lib/getConfig/css.d.ts +0 -22
- package/lib/getConfig/css.js +0 -186
- package/lib/getConfig/getConfig.d.ts +0 -26
- package/lib/getConfig/getConfig.js +0 -578
- package/lib/getConfig/nodeModulesTransform.d.ts +0 -13
- package/lib/getConfig/nodeModulesTransform.js +0 -141
- package/lib/getConfig/pkgMatch.d.ts +0 -2
- package/lib/getConfig/pkgMatch.js +0 -58
- package/lib/getConfig/resolveDefine.d.ts +0 -5
- package/lib/getConfig/resolveDefine.js +0 -53
- package/lib/getConfig/runtimePublicPathEntry.d.ts +0 -1
- package/lib/getConfig/runtimePublicPathEntry.js +0 -3
- package/lib/getConfig/terserOptions.d.ts +0 -41
- package/lib/getConfig/terserOptions.js +0 -64
- package/lib/index.d.ts +0 -34
- package/lib/index.js +0 -314
- package/lib/requireHook.d.ts +0 -3
- package/lib/requireHook.js +0 -51
- package/lib/webpack/plugins/mini-css-extract-plugin/src/CssDependency.js +0 -94
- package/lib/webpack/plugins/mini-css-extract-plugin/src/CssDependencyTemplate.js +0 -26
- package/lib/webpack/plugins/mini-css-extract-plugin/src/CssLoadingRuntimeModule.js +0 -93
- package/lib/webpack/plugins/mini-css-extract-plugin/src/CssModule.js +0 -164
- package/lib/webpack/plugins/mini-css-extract-plugin/src/CssModuleFactory.js +0 -32
- package/lib/webpack/plugins/mini-css-extract-plugin/src/cjs.js +0 -15
- package/lib/webpack/plugins/mini-css-extract-plugin/src/index.js +0 -542
- package/lib/webpack/plugins/mini-css-extract-plugin/src/loader.js +0 -319
- package/lib/webpack/plugins/mini-css-extract-plugin/src/utils.js +0 -97
- package/lib/webpack/plugins/mini-css-extract-plugin.d.ts +0 -1
- package/lib/webpack/plugins/mini-css-extract-plugin.js +0 -15
- package/lib/webpack/plugins/terser-webpack-plugin/package.json +0 -3
- package/lib/webpack/plugins/terser-webpack-plugin/src/Webpack4Cache.js +0 -187
- package/lib/webpack/plugins/terser-webpack-plugin/src/Webpack5Cache.js +0 -61
- package/lib/webpack/plugins/terser-webpack-plugin/src/index.js +0 -683
- package/lib/webpack/plugins/terser-webpack-plugin/src/minify.js +0 -197
- package/lib/webpack/plugins/terser-webpack-plugin.d.ts +0 -1
- package/lib/webpack/plugins/terser-webpack-plugin.js +0 -15
- package/lib/webpackHotDevClient/formatWebpackMessages.d.ts +0 -11
- package/lib/webpackHotDevClient/formatWebpackMessages.js +0 -127
- package/lib/webpackHotDevClient/webpackHotDevClient.js +0 -311
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"schema-utils","author":"webpack Contrib (https://github.com/webpack-contrib)","license":"MIT","types":"declarations/index.d.ts"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Stephen Cook <stephen@stephencookdev.co.uk>
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var e={980:function(e,t,n){"use strict";e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let r;const makeDynamicStyles=(e,t,o,s)=>{if(r===undefined){r=n(808)}const i=s?10:0;const a={};for(const[n,s]of Object.entries(r)){const r=n==="ansi16"?"ansi":n;if(n===t){a[r]=e(o,i)}else if(typeof s==="object"){a[r]=e(s[t],i)}}return a};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,o]of Object.entries(r)){t[n]={open:`[${o[0]}m`,close:`[${o[1]}m`};r[n]=t[n];e.set(o[0],o[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},244:function(e,t,n){"use strict";const r=n(980);const{stdout:o,stderr:s}=n(821);const{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=n(991);const{isArray:c}=Array;const l=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=o?o.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p){u[e]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.color[l[t]][e](...n),r.color.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}for(const e of p){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const o=createStyler(r.bgColor[l[t]][e](...n),r.bgColor.close,this._styler);return createBuilder(this,o,this._isEmpty)}}}}const f=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let r;let o;if(n===undefined){r=e;o=t}else{r=n.openAll+e;o=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:o,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(c(e[0])&&c(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,f);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:o}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=i(t,n.close,n.open);n=n.parent}}const s=t.indexOf("\n");if(s!==-1){t=a(t,o,r,s)}return r+t+o};let d;const chalkTag=(e,...t)=>{const[r]=t;if(!c(r)||!c(r.raw)){return t.join(" ")}const o=t.slice(1);const s=[r.raw[0]];for(let e=1;e<r.length;e++){s.push(String(o[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(d===undefined){d=n(148)}return d(e,s.join(""))};Object.defineProperties(Chalk.prototype,u);const h=Chalk();h.supportsColor=o;h.stderr=Chalk({level:s?s.level:0});h.stderr.supportsColor=s;e.exports=h},148:function(e){"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return s.get(e)||e}function parseArguments(e,t){const n=[];const s=t.trim().split(/\s*,\s*/g);let i;for(const t of s){const s=Number(t);if(!Number.isNaN(s)){n.push(s)}else if(i=t.match(r)){n.push(i[2].replace(o,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[];const o=[];let s=[];n.replace(t,((t,n,i,a,c,l)=>{if(n){s.push(unescape(n))}else if(a){const t=s.join("");s=[];o.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:i,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}o.push(buildStyle(e,r)(s.join("")));s=[];r.pop()}else{s.push(l)}}));o.push(s.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},991:function(e){"use strict";const stringReplaceAll=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const o=t.length;let s=0;let i="";do{i+=e.substr(s,r-s)+t+n;s=r+o;r=e.indexOf(t,s)}while(r!==-1);i+=e.substr(s);return i};const stringEncaseCRLFWithFirstIndex=(e,t,n,r)=>{let o=0;let s="";do{const i=e[r-1]==="\r";s+=e.substr(o,(i?r-1:r)-o)+t+(i?"\r\n":"\n")+n;o=r+1;r=e.indexOf("\n",o)}while(r!==-1);s+=e.substr(o);return s};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},348:function(e,t,n){const r=n(702);const o={};for(const e of Object.keys(r)){o[r[e]]=e}const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e])){throw new Error("missing channels property: "+e)}if(!("labels"in s[e])){throw new Error("missing channel labels property: "+e)}if(s[e].labels.length!==s[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=s[e];delete s[e].channels;delete s[e].labels;Object.defineProperty(s[e],"channels",{value:t});Object.defineProperty(s[e],"labels",{value:n})}s.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(t,n,r);const s=Math.max(t,n,r);const i=s-o;let a;let c;if(s===o){a=0}else if(t===s){a=(n-r)/i}else if(n===s){a=2+(r-t)/i}else if(r===s){a=4+(t-n)/i}a=Math.min(a*60,360);if(a<0){a+=360}const l=(o+s)/2;if(s===o){c=0}else if(l<=.5){c=i/(s+o)}else{c=i/(2-s-o)}return[a,c*100,l*100]};s.rgb.hsv=function(e){let t;let n;let r;let o;let s;const i=e[0]/255;const a=e[1]/255;const c=e[2]/255;const l=Math.max(i,a,c);const u=l-Math.min(i,a,c);const diffc=function(e){return(l-e)/6/u+1/2};if(u===0){o=0;s=0}else{s=u/l;t=diffc(i);n=diffc(a);r=diffc(c);if(i===l){o=r-n}else if(a===l){o=1/3+t-r}else if(c===l){o=2/3+n-t}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,l*100]};s.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const o=s.rgb.hsl(e)[0];const i=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[o,i*100,r*100]};s.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.min(1-t,1-n,1-r);const s=(1-t-o)/(1-o)||0;const i=(1-n-o)/(1-o)||0;const a=(1-r-o)/(1-o)||0;return[s*100,i*100,a*100,o*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.keyword=function(e){const t=o[e];if(t){return t}let n=Infinity;let s;for(const t of Object.keys(r)){const o=r[t];const i=comparativeDistance(e,o);if(i<n){n=i;s=t}}return s};s.keyword.rgb=function(e){return r[e]};s.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805;const s=t*.2126+n*.7152+r*.0722;const i=t*.0193+n*.1192+r*.9505;return[o*100,s*100,i*100]};s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0];let r=t[1];let o=t[2];n/=95.047;r/=100;o/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const i=116*r-16;const a=500*(n-r);const c=200*(r-o);return[i,a,c]};s.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let o;let s;let i;if(n===0){i=r*255;return[i,i,i]}if(r<.5){o=r*(1+n)}else{o=r+n-r*n}const a=2*r-o;const c=[0,0,0];for(let e=0;e<3;e++){s=t+1/3*-(e-1);if(s<0){s++}if(s>1){s--}if(6*s<1){i=a+(o-a)*6*s}else if(2*s<1){i=o}else if(3*s<2){i=a+(o-a)*(2/3-s)*6}else{i=a}c[e]=i*255}return c};s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let o=n;const s=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;o*=s<=1?s:2-s;const i=(r+n)/2;const a=r===0?2*o/(s+o):2*n/(r+n);return[t,a*100,i*100]};s.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6;const s=t-Math.floor(t);const i=255*r*(1-n);const a=255*r*(1-n*s);const c=255*r*(1-n*(1-s));r*=255;switch(o){case 0:return[r,c,i];case 1:return[a,r,i];case 2:return[i,r,c];case 3:return[i,a,r];case 4:return[c,i,r];case 5:return[r,i,a]}};s.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const o=Math.max(r,.01);let s;let i;i=(2-n)*r;const a=(2-n)*o;s=n*o;s/=a<=1?a:2-a;s=s||0;i/=2;return[t,s*100,i*100]};s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const o=n+r;let s;if(o>1){n/=o;r/=o}const i=Math.floor(6*t);const a=1-r;s=6*t-i;if((i&1)!==0){s=1-s}const c=n+s*(a-n);let l;let u;let p;switch(i){default:case 6:case 0:l=a;u=c;p=n;break;case 1:l=c;u=a;p=n;break;case 2:l=n;u=a;p=c;break;case 3:l=n;u=c;p=a;break;case 4:l=c;u=n;p=a;break;case 5:l=a;u=n;p=c;break}return[l*255,u*255,p*255]};s.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const o=e[3]/100;const s=1-Math.min(1,t*(1-o)+o);const i=1-Math.min(1,n*(1-o)+o);const a=1-Math.min(1,r*(1-o)+o);return[s*255,i*255,a*255]};s.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let o;let s;let i;o=t*3.2406+n*-1.5372+r*-.4986;s=t*-.9689+n*1.8758+r*.0415;i=t*.0557+n*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);i=Math.min(Math.max(0,i),1);return[o*255,s*255,i*255]};s.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16;const s=500*(t-n);const i=200*(n-r);return[o,s,i]};s.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let o;let s;let i;s=(t+16)/116;o=n/500+s;i=s-r/200;const a=s**3;const c=o**3;const l=i**3;s=a>.008856?a:(s-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;i=l>.008856?l:(i-16/116)/7.787;o*=95.047;s*=100;i*=108.883;return[o,s,i]};s.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let o;const s=Math.atan2(r,n);o=s*360/2/Math.PI;if(o<0){o+=360}const i=Math.sqrt(n*n+r*r);return[t,i,o]};s.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const o=r/360*2*Math.PI;const s=n*Math.cos(o);const i=n*Math.sin(o);return[t,s,i]};s.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?s.rgb.hsv(e)[2]:t;i=Math.round(i/50);if(i===0){return 30}let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(i===2){a+=60}return a};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const o=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const o=(t>>1&1)*n*255;const s=(t>>2&1)*n*255;return[r,o,s]};s.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const o=t%6/5*255;return[n,r,o]};s.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const r=parseInt(n,16);const o=r>>16&255;const s=r>>8&255;const i=r&255;return[o,s,i]};s.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const o=Math.max(Math.max(t,n),r);const s=Math.min(Math.min(t,n),r);const i=o-s;let a;let c;if(i<1){a=s/(1-i)}else{a=0}if(i<=0){c=0}else if(o===t){c=(n-r)/i%6}else if(o===n){c=2+(r-t)/i}else{c=4+(t-n)/i}c/=6;c%=1;return[c*360,i*100,a*100]};s.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let o=0;if(r<1){o=(n-.5*r)/(1-r)}return[e[0],r*100,o*100]};s.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let o=0;if(r<1){o=(n-r)/(1-r)}return[e[0],r*100,o*100]};s.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=t%1*6;const i=s%1;const a=1-i;let c=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=i;o[2]=0;break;case 1:o[0]=a;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=i;break;case 3:o[0]=0;o[1]=a;o[2]=1;break;case 4:o[0]=i;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=a}c=(1-n)*r;return[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};s.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let o=0;if(r>0){o=t/r}return[e[0],o*100,r*100]};s.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let o=0;if(r>0&&r<.5){o=t/(2*r)}else if(r>=.5&&r<1){o=t/(2*(1-r))}return[e[0],o*100,r*100]};s.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};s.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const o=r-t;let s=0;if(o<1){s=(r-o)/(1-o)}return[e[0],o*100,s*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=function(e){return[0,0,e[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},808:function(e,t,n){const r=n(348);const o=n(682);const s={};const i=Object.keys(r);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}i.forEach((e=>{s[e]={};Object.defineProperty(s[e],"channels",{value:r[e].channels});Object.defineProperty(s[e],"labels",{value:r[e].labels});const t=o(e);const n=Object.keys(t);n.forEach((n=>{const r=t[n];s[e][n]=wrapRounded(r);s[e][n].raw=wrapRaw(r)}))}));e.exports=s},682:function(e,t,n){const r=n(348);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const o=Object.keys(r[e]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const i=t[r];if(i.distance===-1){i.distance=t[e].distance+1;i.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e];let s=t[e].parent;while(t[s].parent){n.unshift(t[s].parent);o=link(r[t[s].parent][s],o);s=t[s].parent}o.conversion=n;return o}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,o=0;o<e;o++){const e=r[o];const s=t[e];if(s.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},702:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},419:function(e){"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}},334:function(e){let t=0;const genWrappedFunc=({func:e,smp:n,context:r,timeEventName:o,pluginName:s,endType:i})=>(...a)=>{const c=t++;const addEndEvent=()=>n.addTimeEvent("plugins",o,"end",{id:c,allowFailure:true});n.addTimeEvent("plugins",o,"start",{id:c,name:s});addEndEvent();const normalArgMap=e=>wrap(e,s,n);let l;if(i==="wrapDone")l=e.apply(r,a.map((e=>wrap(e,s,n,addEndEvent))));else if(i==="async"){const t=a.slice(0,a.length-1);const n=a[a.length-1];l=e.apply(r,t.map(normalArgMap).concat(((...e)=>{addEndEvent();n(...e)})))}else if(i==="promise")l=e.apply(r,a.map(normalArgMap)).then((e=>{addEndEvent();return e}));else l=e.apply(r,a.map(normalArgMap));addEndEvent();return l};const genPluginMethod=(e,t,n,r)=>function(o,s){const i=t+"/"+r+"/"+o;const a=genWrappedFunc({func:s,smp:n,context:this,timeEventName:i,pluginName:t,endType:"wrapDone"});return e.plugin(o,a)};const wrapTap=(e,t,n,r,o)=>function(s,i){const a=t+"/"+r+"/"+o;const c=genWrappedFunc({func:i,smp:n,context:this,timeEventName:a,pluginName:t});return e.call(this,s,c)};const wrapTapAsync=(e,t,n,r,o)=>function(s,i){const a=t+"/"+r+"/"+o;const c=genWrappedFunc({func:i,smp:n,context:this,timeEventName:a,pluginName:t,endType:"async"});return e.call(this,s,c)};const wrapTapPromise=(e,t,n,r,o)=>function(s,i){const a=t+"/"+r+"/"+o;const c=genWrappedFunc({func:i,smp:n,context:this,timeEventName:a,pluginName:t,endType:"promise"});return e.call(this,s,c)};const n=[];const wrapHooks=(e,t,r,o)=>{const s=e.hooks;if(!s)return s;const i=n.find((e=>e.pluginName===t&&(e.orig===s||e.wrapped===s)));if(i)return i.wrapped;const genProxy=e=>{const n=new Proxy(s[e],{get:(s,i)=>{const a=Reflect.get(s,i);if(Object.isFrozen(s)){return a}if(i==="tap"&&typeof a==="function")return wrapTap(a,t,r,o,e).bind(n);if(i==="tapAsync"&&typeof a==="function")return wrapTapAsync(a,t,r,o,e).bind(n);if(i==="tapPromise"&&typeof a==="function")return wrapTapPromise(a,t,r,o,e).bind(n);return a},set:(e,t,n)=>Reflect.set(e,t,n),deleteProperty:(e,t)=>Reflect.deleteProperty(e,t)});return n};const a=Object.keys(s).reduce(((e,t)=>{e[t]=genProxy(t);return e}),{});n.push({orig:s,wrapped:a,pluginName:t});return a};const r=["Compiler","Compilation","MainTemplate","Parser","NormalModuleFactory","ContextModuleFactory"];const o=[];const findWrappedObj=(e,t)=>{const n=o.find((n=>n.pluginName===t&&(n.orig===e||n.wrapped===e)));if(n)return n.wrapped};const wrap=(e,t,n,s)=>{if(!e)return e;const i=findWrappedObj(e,t);if(i)return i;const getOrigConstrucName=e=>e&&e.constructor&&e.constructor.name;const getShouldWrap=e=>{const t=getOrigConstrucName(e);return r.includes(t)};const a=getShouldWrap(e);const c=Object.keys(e).map((t=>e[t])).some(getShouldWrap);let l;if(!a&&!c){const t=e.name==="next";l=t&&s?function(){s();return e.apply(this,arguments)}:e}else{const r=new Proxy(e,{get:(e,o)=>{const s=Reflect.get(e,o);if(a&&o==="plugin")return genPluginMethod(e,t,n,getOrigConstrucName(e)).bind(r);if(a&&o==="hooks")return wrapHooks(e,t,n,getOrigConstrucName(e));if(a&&o==="compiler"){const e=findWrappedObj(s,t);if(e){return e}}if(typeof s==="function"){const e=s.bind(r);if(o==="constructor")Object.defineProperty(e,"name",{value:s.name});const t=new Proxy(e,{get:(e,t)=>s[t]});return t}return s},set:(e,t,n)=>Reflect.set(e,t,n),deleteProperty:(e,t)=>Reflect.deleteProperty(e,t)});l=r}o.push({pluginName:t,orig:e,wrapped:l});return l};e.exports.clear=()=>{o.length=0;n.length=0};e.exports.WrappedPlugin=class WrappedPlugin{constructor(e,t,n){this._smp_plugin=e;this._smp_pluginName=t;this._smp=n;this.apply=this.apply.bind(this);const r=this;return new Proxy(e,{get(e,t){if(t==="apply"){return r.apply}return e[t]},set:(e,t,n)=>Reflect.set(e,t,n),deleteProperty:(e,t)=>Reflect.deleteProperty(e,t)})}apply(e){return this._smp_plugin.apply(wrap(e,this._smp_pluginName,this._smp))}}},185:function(e,t,n){const r=n(244);e.exports.fg=(e,t)=>{let n=r.bold;if(t>1e4)n=n.red;else if(t>2e3)n=n.yellow;else n=n.green;return n(e)};e.exports.bg=e=>r.bgBlack.green.bold(e)},428:function(e,t,n){const r=n(622);const o=n(747);const s=n(244);const{WrappedPlugin:i,clear:a}=n(334);const{getModuleName:c,getLoaderNames:l,prependLoader:u,tap:p}=n(226);const{getHumanOutput:f,getMiscOutput:d,getPluginsOutput:h,getLoadersOutput:g,smpTag:m}=n(664);const b=r.dirname(o.realpathSync(__filename));e.exports=class SpeedMeasurePlugin{constructor(e){this.options=e||{};this.timeEventData={};this.smpPluginAdded=false;this.wrap=this.wrap.bind(this);this.getOutput=this.getOutput.bind(this);this.addTimeEvent=this.addTimeEvent.bind(this);this.apply=this.apply.bind(this);this.provideLoaderTiming=this.provideLoaderTiming.bind(this);this.generateLoadersBuildComparison=this.generateLoadersBuildComparison.bind(this)}wrap(e){if(this.options.disable)return e;if(Array.isArray(e))return e.map(this.wrap);if(typeof e==="function")return(...t)=>this.wrap(e(...t));e.plugins=(e.plugins||[]).map((e=>{const t=Object.keys(this.options.pluginNames||{}).find((t=>e===this.options.pluginNames[t]))||e.constructor&&e.constructor.name||"(unable to deduce plugin name)";return new i(e,t,this)}));if(e.optimization&&e.optimization.minimizer){e.optimization.minimizer=e.optimization.minimizer.map((e=>new i(e,e.constructor.name,this)))}if(e.module&&this.options.granularLoaderData){e.module=u(e.module)}if(!this.smpPluginAdded){e.plugins=e.plugins.concat(this);this.smpPluginAdded=true}return e}generateLoadersBuildComparison(){const e={loaderInfo:[]};const t=this.options.compareLoadersBuild.filePath;const n=g(this.timeEventData.loaders);if(!t){throw new Error("`options.compareLoadersBuild.filePath` is a required field")}if(!n){throw new Error("No output found!")}const r=o.existsSync(t)?o.readFileSync(t):"[]";const s=JSON.parse(r.toString());const i=s.length;const a=i>0?s[i-1]["buildNo"]+1:1;n.build.forEach((t=>{const n={};n["Name"]=t.loaders.join(",")||"";n["Time"]=t.activeTime||"";n["Count"]=this.options.outputFormat==="humanVerbose"?t.averages.dataPoints:"";n[`Comparison`]="";if(i>0){const e=i-1;for(var r=0;r<s[e]["loaderInfo"].length;r++){const o=s[e]["loaderInfo"][r];if(n["Name"]==o["Name"]&&o["Time"]){const o=s[e]["loaderInfo"][r]["Time"];const i=o>t.activeTime;n[`Comparison`]=`${i?"-":"+"}${Math.abs(t.activeTime-o)}ms | ${i?"(slower)":"(faster)"}`}}}e["loaderInfo"].push(n)}));s.push({buildNo:a,loaderInfo:e["loaderInfo"]});o.writeFileSync(t,JSON.stringify(s));for(let e=0;e<s.length;e++){const t=[];console.log("--------------------------------------------");console.log("Build No ",s[e]["buildNo"]);console.log("--------------------------------------------");if(s[e]["loaderInfo"]){s[e]["loaderInfo"].forEach((e=>{const n={};n["Name"]=e["Name"]||"";n["Time (ms)"]=e["Time"]||"";if(this.options.outputFormat==="humanVerbose")n["Count"]=e["Count"]||0;n["Comparison"]=e["Comparison"]||"";t.push(n)}))}console.table(t)}}getOutput(){const e={};if(this.timeEventData.misc)e.misc=d(this.timeEventData.misc);if(this.timeEventData.plugins)e.plugins=h(this.timeEventData.plugins);if(this.timeEventData.loaders)e.loaders=g(this.timeEventData.loaders);if(this.options.outputFormat==="json")return JSON.stringify(e,null,2);if(typeof this.options.outputFormat==="function")return this.options.outputFormat(e);return f(e,Object.assign({verbose:this.options.outputFormat==="humanVerbose"},this.options))}addTimeEvent(e,t,n,r={}){const o=r.allowFailure;delete r.allowFailure;const s=this.timeEventData;if(!s[e])s[e]={};if(!s[e][t])s[e][t]=[];const i=s[e][t];const a=(new Date).getTime();if(n==="start"){r.start=a;i.push(r)}else if(n==="end"){const n=i.find((e=>{const t=!e.end||!r.fillLast;const n=e.id!==undefined&&e.id===r.id;const o=!r.id&&e.name!==undefined&&e.name===r.name;return t&&(n||o)}));const s=n||r.fillLast&&i.find((e=>!e.end));if(!s){console.error("Could not find a matching event to end",e,t,r);if(o)return;throw new Error("No matching event!")}s.end=a}}apply(e){if(this.options.disable)return;p(e,"compile",(()=>{this.addTimeEvent("misc","compile","start",{watch:false})}));p(e,"done",(()=>{a();this.addTimeEvent("misc","compile","end",{fillLast:true});const e=typeof this.options.outputTarget==="string";s.enabled=!e;const t=this.getOutput();s.enabled=true;if(e){const e=o.existsSync(this.options.outputTarget)?o.appendFileSync:o.writeFileSync;e(this.options.outputTarget,t+"\n");console.log(m()+"Outputted timing info to "+this.options.outputTarget)}else{const e=this.options.outputTarget||console.log;e(t)}if(this.options.compareLoadersBuild)this.generateLoadersBuildComparison();this.timeEventData={}}));p(e,"compilation",(e=>{p(e,"normal-module-loader",(e=>{e[b]=this.provideLoaderTiming}));p(e,"build-module",(e=>{const t=c(e);if(t){this.addTimeEvent("loaders","build","start",{name:t,fillLast:true,loaders:l(e.loaders)})}}));p(e,"succeed-module",(e=>{const t=c(e);if(t){this.addTimeEvent("loaders","build","end",{name:t,fillLast:true})}}))}))}provideLoaderTiming(e){const t={id:e.id};if(e.type!=="end"){t.loader=e.loaderName;t.name=e.module}this.addTimeEvent("loaders","build-specific",e.type,t)}}},664:function(e,t,n){const r=6e4;const o=1e3;const s=n(244);const{fg:i,bg:a}=n(185);const{groupBy:c,getAverages:l,getTotalActiveTime:u}=n(226);const humanTime=(e,t={})=>{if(t.verbose){return e.toLocaleString()+" ms"}const n=Math.floor(e/r);const s=(e-n*r)/o;const i=Math.floor(s);const a=i>0?2:3;const c=Math.min(s-i,.99);const l=i+c.toPrecision(a).replace(/^0/,"").replace(/0+$/,"").replace(/^\.$/,"");let u="";if(n>0)u+=n+" min"+(n>1?"s":"")+", ";u+=l+" secs";return u};const smpTag=()=>a(" SMP ")+" ⏱ ";e.exports.smpTag=smpTag;e.exports.getHumanOutput=(e,t={})=>{const hT=e=>humanTime(e,t);let n="\n\n"+smpTag()+"\n";if(e.misc){n+="General output time took "+i(hT(e.misc.compileTime,t),e.misc.compileTime);n+="\n\n"}if(e.plugins){n+=smpTag()+"Plugins\n";Object.keys(e.plugins).sort(((t,n)=>e.plugins[n]-e.plugins[t])).forEach((t=>{n+=s.bold(t)+" took "+i(hT(e.plugins[t]),e.plugins[t]);n+="\n"}));n+="\n"}if(e.loaders){n+=smpTag()+"Loaders\n";e.loaders.build.sort(((e,t)=>t.activeTime-e.activeTime)).forEach((e=>{n+=e.loaders.map(i).join(", and \n")+" took "+i(hT(e.activeTime),e.activeTime)+"\n";let r=[];if(t.verbose){r.push(["median",hT(e.averages.median)]);r.push(["mean",hT(e.averages.mean)]);if(typeof e.averages.variance==="number")r.push(["s.d.",hT(Math.sqrt(e.averages.variance))]);r.push(["range","("+hT(e.averages.range.start)+" --\x3e "+hT(e.averages.range.end)+")"])}if(e.loaders.length>1){Object.keys(e.subLoadersTime).forEach((t=>{r.push([t,hT(e.subLoadersTime[t])])}))}r.push(["module count",e.averages.dataPoints]);if(t.loaderTopFiles){const n=Math.min(e.rawStartEnds.length,t.loaderTopFiles);for(let t=0;t<n;t++){const n=e.rawStartEnds[t];r.push([n.name,hT(n.end-n.start)])}}const o=r.reduce(((e,t)=>Math.max(e,t[0].length)),0);r.forEach((e=>{const t=o-e[0].length;n+=" "+e[0]+" ".repeat(t)+" = "+e[1]+"\n"}))}))}n+="\n\n";return n};e.exports.getMiscOutput=e=>({compileTime:e.compile[0].end-e.compile[0].start});e.exports.getPluginsOutput=e=>Object.keys(e).reduce(((t,n)=>{const r=e[n];const o=c("name",r);return o.reduce(((e,t)=>{e[t[0].name]=(e[t[0].name]||0)+u(t);return e}),t)}),{});e.exports.getLoadersOutput=e=>{const t=c("loaders",e.build);const n=e["build-specific"]||[];const r=t.map((e=>{const t=l(e);const r=u(e);const o=c("loader",n.filter((t=>e.find((e=>e.name===t.name)))));const s=o.reduce(((e,t)=>{e[t[0].loader]=u(t);return e}),{});return{averages:t,activeTime:r,loaders:e[0].loaders,subLoadersTime:s,rawStartEnds:e.sort(((e,t)=>t.end-t.start-(e.end-e.start)))}}));return{build:r}}},226:function(e,t,n){const isEqual=(e,t)=>Array.isArray(e)?Array.isArray(t)&&e.every((e=>t.includes(e)))&&t.every((t=>e.includes(t))):e===t;const mergeRanges=e=>{const t=[];const n=[...e];while(n.length){const e=n.pop();const r=t.findIndex((t=>t.start>=e.start&&t.start<=e.end||t.end>=e.start&&t.end<=e.end));if(r===-1){t.push(e)}else{const o=t.splice(r,1)[0];n.push({start:Math.min(e.start,e.end,o.start,o.end),end:Math.max(e.start,e.end,o.start,o.end)})}}return t};const sqr=e=>e*e;const mean=e=>e.reduce(((e,t)=>e+t),0)/e.length;const median=e=>e.sort()[Math.floor(e.length/2)];const variance=(e,t)=>e.reduce(((e,n)=>e+sqr(n-t)),0)/(e.length-1);const range=e=>e.reduce(((e,t)=>({start:Math.min(t,e.start),end:Math.max(t,e.end)})),{start:Number.POSITIVE_INFINITY,end:Number.NEGATIVE_INFINITY});e.exports.getModuleName=e=>e.userRequest;e.exports.getLoaderNames=e=>e&&e.length?e.map((e=>e.loader||e)).map((e=>e.replace(/\\/g,"/").replace(/^.*\/node_modules\/(@[a-z0-9][\w-.]+\/[a-z0-9][\w-.]*|[^\/]+).*$/,((e,t)=>t)))).filter((e=>!e.includes("speed-measure-webpack-plugin"))):["modules with no loaders"];e.exports.groupBy=(e,t)=>{const n=[];(t||[]).forEach((t=>{const r=n.find((n=>isEqual(n[0][e],t[e])));if(r)r.push(t);else n.push([t])}));return n};e.exports.getAverages=e=>{const t=e.map((e=>e.end-e.start));const n={};n.dataPoints=e.length;n.median=median(t);n.mean=Math.round(mean(t));n.range=range(t);if(e.length>1)n.variance=Math.round(variance(t,n.mean));return n};e.exports.getTotalActiveTime=e=>{const t=mergeRanges(e);return t.reduce(((e,t)=>e+t.end-t.start),0)};const prependLoader=e=>{if(!e)return e;if(Array.isArray(e))return e.map(prependLoader);if(e.loader){e.use=[e.loader];if(e.options){e.use[0]={loader:e.loader,options:e.options};delete e.options}delete e.loader}if(e.use){if(!Array.isArray(e.use))e.use=[e.use];e.use.unshift("speed-measure-webpack-plugin/loader")}if(e.oneOf){e.oneOf=prependLoader(e.oneOf)}if(e.rules){e.rules=prependLoader(e.rules)}if(Array.isArray(e.resource)){e.resource=prependLoader(e.resource)}if(e.resource&&e.resource.and){e.resource.and=prependLoader(e.resource.and)}if(e.resource&&e.resource.or){e.resource.or=prependLoader(e.resource.or)}return e};e.exports.prependLoader=prependLoader;e.exports.hackWrapLoaders=(e,t)=>{const wrapReq=n=>function(){const r=n.apply(this,arguments);if(e.includes(arguments[0])){if(r.__smpHacked)return r;r.__smpHacked=true;return t(r,arguments[0])}return r};if(typeof System==="object"&&typeof System.import==="function"){System.import=wrapReq(System.import)}const r=n(282);r.prototype.require=wrapReq(r.prototype.require)};const toCamelCase=e=>e.replace(/(\-\w)/g,(e=>e[1].toUpperCase()));e.exports.tap=(e,t,n)=>{if(e.hooks){return e.hooks[toCamelCase(t)].tap("smp",n)}return e.plugin(t,n)}},821:function(e,t,n){"use strict";const r=n(87);const o=n(867);const s=n(419);const{env:i}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(i.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},747:function(e){"use strict";e.exports=require("fs")},282:function(e){"use strict";e.exports=require("module")},87:function(e){"use strict";e.exports=require("os")},622:function(e){"use strict";e.exports=require("path")},867:function(e){"use strict";e.exports=require("tty")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var o=t[n]={id:n,loaded:false,exports:{}};var s=true;try{e[n](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[n]}o.loaded=true;return o.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(428);module.exports=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"speed-measure-webpack-plugin","author":{"name":"Stephen Cook","email":"stephen@stephencookdev.co.uk"},"license":"MIT"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright JS Foundation and other contributors
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
'Software'), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var t={51:function(t,e,n){const o=n(494);t.exports=o.default},494:function(t,e,n){Object.defineProperty(e,"__esModule",{value:true});e.default=void 0;var o=_interopRequireDefault(n(622));var r=n(168);var i=_interopRequireDefault(n(298));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}const loaderAPI=()=>{};loaderAPI.pitch=function loader(t){const e=this.getOptions(i.default);const n=e.injectType||"styleTag";const s=typeof e.esModule!=="undefined"?e.esModule:true;const a={};if(e.attributes){a.attributes=e.attributes}if(e.base){a.base=e.base}const l=typeof e.insert==="function"?"function":e.insert&&o.default.isAbsolute(e.insert)?"module-path":"selector";const u=typeof e.styleTagTransform==="function"?"function":e.styleTagTransform&&o.default.isAbsolute(e.styleTagTransform)?"module-path":"default";switch(n){case"linkTag":{const n=this.hot?(0,r.getLinkHmrCode)(s,this,t):"";return`\n ${(0,r.getImportLinkAPICode)(s,this)}\n ${(0,r.getImportInsertBySelectorCode)(s,this,l,e)}\n ${(0,r.getImportLinkContentCode)(s,this,t)}\n ${s?"":`content = content.__esModule ? content.default : content;`}\n\nvar options = ${JSON.stringify(a)};\n\n${(0,r.getInsertOptionCode)(l,e)}\n\nvar update = API(content, options);\n\n${n}\n\n${s?"export default {}":""}`}case"lazyStyleTag":case"lazyAutoStyleTag":case"lazySingletonStyleTag":{const o=n==="lazySingletonStyleTag";const i=n==="lazyAutoStyleTag";const d=this.hot?(0,r.getStyleHmrCode)(s,this,t,true):"";return`\n var exported = {};\n\n ${(0,r.getImportStyleAPICode)(s,this)}\n ${(0,r.getImportStyleDomAPICode)(s,this,o,i)}\n ${(0,r.getImportInsertBySelectorCode)(s,this,l,e)}\n ${(0,r.getSetAttributesCode)(s,this,e)}\n ${(0,r.getImportInsertStyleElementCode)(s,this)}\n ${(0,r.getStyleTagTransformFnCode)(s,this,e,o,u)}\n ${(0,r.getImportStyleContentCode)(s,this,t)}\n ${i?(0,r.getImportIsOldIECode)(s,this):""}\n ${s?`if (content && content.locals) {\n exported.locals = content.locals;\n }\n `:`content = content.__esModule ? content.default : content;\n\n exported.locals = content.locals || {};`}\n\nvar refs = 0;\nvar update;\nvar options = ${JSON.stringify(a)};\n\n${(0,r.getStyleTagTransformFn)(e,o)};\noptions.setAttributes = setAttributes;\n${(0,r.getInsertOptionCode)(l,e)}\noptions.domAPI = ${(0,r.getdomAPI)(i)};\noptions.insertStyleElement = insertStyleElement;\n\nexported.use = function(insertOptions) {\n options.options = insertOptions || {};\n\n if (!(refs++)) {\n update = API(content, options);\n }\n\n return exported;\n};\nexported.unuse = function() {\n if (refs > 0 && !--refs) {\n update();\n update = null;\n }\n};\n\n${d}\n\n${(0,r.getExportLazyStyleCode)(s,this,t)}\n`}case"styleTag":case"autoStyleTag":case"singletonStyleTag":default:{const o=n==="singletonStyleTag";const i=n==="autoStyleTag";const d=this.hot?(0,r.getStyleHmrCode)(s,this,t,false):"";return`\n ${(0,r.getImportStyleAPICode)(s,this)}\n ${(0,r.getImportStyleDomAPICode)(s,this,o,i)}\n ${(0,r.getImportInsertBySelectorCode)(s,this,l,e)}\n ${(0,r.getSetAttributesCode)(s,this,e)}\n ${(0,r.getImportInsertStyleElementCode)(s,this)}\n ${(0,r.getStyleTagTransformFnCode)(s,this,e,o,u)}\n ${(0,r.getImportStyleContentCode)(s,this,t)}\n ${i?(0,r.getImportIsOldIECode)(s,this):""}\n ${s?"":`content = content.__esModule ? content.default : content;`}\n\nvar options = ${JSON.stringify(a)};\n\n${(0,r.getStyleTagTransformFn)(e,o)};\noptions.setAttributes = setAttributes;\n${(0,r.getInsertOptionCode)(l,e)}\noptions.domAPI = ${(0,r.getdomAPI)(i)};\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n${d}\n\n${(0,r.getExportStyleCode)(s,this,t)}\n`}}};var s=loaderAPI;e.default=s},557:function(t){function isEqualLocals(t,e,n){if(!t&&e||t&&!e){return false}var o;for(o in t){if(n&&o==="default"){continue}if(t[o]!==e[o]){return false}}for(o in e){if(n&&o==="default"){continue}if(!t[o]){return false}}return true}t.exports=isEqualLocals},168:function(t,e,n){Object.defineProperty(e,"__esModule",{value:true});e.stringifyRequest=stringifyRequest;e.getImportInsertStyleElementCode=getImportInsertStyleElementCode;e.getImportInsertBySelectorCode=getImportInsertBySelectorCode;e.getImportStyleContentCode=getImportStyleContentCode;e.getImportStyleDomAPICode=getImportStyleDomAPICode;e.getImportStyleAPICode=getImportStyleAPICode;e.getImportLinkContentCode=getImportLinkContentCode;e.getImportLinkAPICode=getImportLinkAPICode;e.getStyleHmrCode=getStyleHmrCode;e.getLinkHmrCode=getLinkHmrCode;e.getdomAPI=getdomAPI;e.getImportIsOldIECode=getImportIsOldIECode;e.getStyleTagTransformFn=getStyleTagTransformFn;e.getExportStyleCode=getExportStyleCode;e.getExportLazyStyleCode=getExportLazyStyleCode;e.getSetAttributesCode=getSetAttributesCode;e.getInsertOptionCode=getInsertOptionCode;e.getStyleTagTransformFnCode=getStyleTagTransformFnCode;var o=_interopRequireDefault(n(622));var r=_interopRequireDefault(n(557));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}const i=/^\.\.?[/\\]/;function isAbsolutePath(t){return o.default.posix.isAbsolute(t)||o.default.win32.isAbsolute(t)}function isRelativePath(t){return i.test(t)}function stringifyRequest(t,e){const n=e.split("!");const{context:r}=t;return JSON.stringify(n.map((t=>{const e=t.match(/^(.*?)(\?.*)/);const n=e?e[2]:"";let i=e?e[1]:t;if(isAbsolutePath(i)&&r){i=o.default.relative(r,i);if(isAbsolutePath(i)){return i+n}if(isRelativePath(i)===false){i=`./${i}`}}return i.replace(/\\/g,"/")+n})).join("!"))}function getImportLinkAPICode(t,e){const n=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/injectStylesIntoLinkTag.js")}`);return t?`import API from ${n};`:`var API = require(${n});`}function getImportLinkContentCode(t,e,n){const o=stringifyRequest(e,`!!${n}`);return t?`import content from ${o};`:`var content = require(${o});`}function getImportStyleAPICode(t,e){const n=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/injectStylesIntoStyleTag.js")}`);return t?`import API from ${n};`:`var API = require(${n});`}function getImportStyleDomAPICode(t,e,n,r){const i=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/styleDomAPI.js")}`);const s=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/singletonStyleDomAPI.js")}`);if(r){return t?`import domAPI from ${i};\n import domAPISingleton from ${s};`:`var domAPI = require(${i});\n var domAPISingleton = require(${s});`}return t?`import domAPI from ${n?s:i};`:`var domAPI = require(${n?s:i});`}function getImportStyleContentCode(t,e,n){const o=stringifyRequest(e,`!!${n}`);return t?`import content, * as namedExport from ${o};`:`var content = require(${o});`}function getImportInsertBySelectorCode(t,e,n,r){if(n==="selector"){const n=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/insertBySelector.js")}`);return t?`import insertFn from ${n};`:`var insertFn = require(${n});`}if(n==="module-path"){const n=stringifyRequest(e,`${r.insert}`);e.addBuildDependency(r.insert);return t?`import insertFn from ${n};`:`var insertFn = require(${n});`}return""}function getInsertOptionCode(t,e){if(t==="selector"){const t=e.insert?JSON.stringify(e.insert):'"head"';return`\n options.insert = insertFn.bind(null, ${t});\n `}if(t==="module-path"){return`options.insert = insertFn;`}return`options.insert = ${e.insert.toString()};`}function getImportInsertStyleElementCode(t,e){const n=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/insertStyleElement.js")}`);return t?`import insertStyleElement from ${n};`:`var insertStyleElement = require(${n});`}function getStyleHmrCode(t,e,n,o){const i=stringifyRequest(e,`!!${n}`);return`\nif (module.hot) {\n if (!content.locals || module.hot.invalidate) {\n var isEqualLocals = ${r.default.toString()};\n var isNamedExport = ${t?"!content.locals":false};\n var oldLocals = isNamedExport ? namedExport : content.locals;\n\n module.hot.accept(\n ${i},\n function () {\n ${t?`if (!isEqualLocals(oldLocals, isNamedExport ? namedExport : content.locals, isNamedExport)) {\n module.hot.invalidate();\n\n return;\n }\n\n oldLocals = isNamedExport ? namedExport : content.locals;\n\n ${o?`if (update && refs > 0) {\n update(content);\n }`:`update(content);`}`:`content = require(${i});\n\n content = content.__esModule ? content.default : content;\n\n ${o?"":`if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }`}\n\n if (!isEqualLocals(oldLocals, content.locals)) {\n module.hot.invalidate();\n\n return;\n }\n\n oldLocals = content.locals;\n\n ${o?`if (update && refs > 0) {\n update(content);\n }`:`update(content);`}`}\n }\n )\n }\n\n module.hot.dispose(function() {\n ${o?`if (update) {\n update();\n }`:`update();`}\n });\n}\n`}function getLinkHmrCode(t,e,n){const o=stringifyRequest(e,`!!${n}`);return`\nif (module.hot) {\n module.hot.accept(\n ${o},\n function() {\n ${t?"update(content);":`content = require(${o});\n\n content = content.__esModule ? content.default : content;\n\n update(content);`}\n }\n );\n\n module.hot.dispose(function() {\n update();\n });\n}`}function getdomAPI(t){return t?"isOldIE() ? domAPISingleton : domAPI":"domAPI"}function getImportIsOldIECode(t,e){const n=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/isOldIE.js")}`);return t?`import isOldIE from ${n};`:`var isOldIE = require(${n});`}function getStyleTagTransformFnCode(t,e,n,r,i){if(r){return""}if(i==="default"){const n=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/styleTagTransform.js")}`);return t?`import styleTagTransformFn from ${n};`:`var styleTagTransformFn = require(${n});`}if(i==="module-path"){const o=stringifyRequest(e,`${n.styleTagTransform}`);e.addBuildDependency(n.styleTagTransform);return t?`import styleTagTransformFn from ${o};`:`var styleTagTransformFn = require(${o});`}return""}function getStyleTagTransformFn(t,e){return e?"":typeof t.styleTagTransform==="function"?`options.styleTagTransform = ${t.styleTagTransform.toString()}`:`options.styleTagTransform = styleTagTransformFn`}function getExportStyleCode(t,e,n){const o=stringifyRequest(e,`!!${n}`);return t?`export * from ${o};\n export default content && content.locals ? content.locals : undefined;`:"module.exports = content && content.locals || {};"}function getExportLazyStyleCode(t,e,n){const o=stringifyRequest(e,`!!${n}`);return t?`export * from ${o};\n export default exported;`:"module.exports = exported;"}function getSetAttributesCode(t,e,n){let r;if(typeof n.attributes!=="undefined"){r=n.attributes.nonce!=="undefined"?stringifyRequest(e,`!${o.default.join(__dirname,"runtime/setAttributesWithAttributesAndNonce.js")}`):stringifyRequest(e,`!${o.default.join(__dirname,"runtime/setAttributesWithAttributes.js")}`)}else{r=stringifyRequest(e,`!${o.default.join(__dirname,"runtime/setAttributesWithoutAttributes.js")}`)}return t?`import setAttributes from ${r};`:`var setAttributes = require(${r});`}},298:function(t){t.exports=JSON.parse('{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}')},622:function(t){t.exports=require("path")}};var e={};function __nccwpck_require__(n){var o=e[n];if(o!==undefined){return o.exports}var r=e[n]={exports:{}};var i=true;try{t[n](r,r.exports,__nccwpck_require__);i=false}finally{if(i)delete e[n]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(51);module.exports=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"style-loader","author":"Tobias Koppers @sokra","license":"MIT"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = function (url, options) {
|
|
4
|
+
options = options || {};
|
|
5
|
+
options.attributes = typeof options.attributes === "object" ? options.attributes : {};
|
|
6
|
+
|
|
7
|
+
if (typeof options.attributes.nonce === "undefined") {
|
|
8
|
+
var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
|
|
9
|
+
|
|
10
|
+
if (nonce) {
|
|
11
|
+
options.attributes.nonce = nonce;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var linkElement = document.createElement("link");
|
|
16
|
+
linkElement.rel = "stylesheet";
|
|
17
|
+
linkElement.href = url;
|
|
18
|
+
Object.keys(options.attributes).forEach(function (key) {
|
|
19
|
+
linkElement.setAttribute(key, options.attributes[key]);
|
|
20
|
+
});
|
|
21
|
+
options.insert(linkElement);
|
|
22
|
+
return function (newUrl) {
|
|
23
|
+
if (typeof newUrl === "string") {
|
|
24
|
+
linkElement.href = newUrl;
|
|
25
|
+
} else {
|
|
26
|
+
linkElement.parentNode.removeChild(linkElement);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var stylesInDOM = [];
|
|
4
|
+
|
|
5
|
+
function getIndexByIdentifier(identifier) {
|
|
6
|
+
var result = -1;
|
|
7
|
+
|
|
8
|
+
for (var i = 0; i < stylesInDOM.length; i++) {
|
|
9
|
+
if (stylesInDOM[i].identifier === identifier) {
|
|
10
|
+
result = i;
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function modulesToDom(list, options) {
|
|
19
|
+
var idCountMap = {};
|
|
20
|
+
var identifiers = [];
|
|
21
|
+
|
|
22
|
+
for (var i = 0; i < list.length; i++) {
|
|
23
|
+
var item = list[i];
|
|
24
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
25
|
+
var count = idCountMap[id] || 0;
|
|
26
|
+
var identifier = "".concat(id, " ").concat(count);
|
|
27
|
+
idCountMap[id] = count + 1;
|
|
28
|
+
var indexByIdentifier = getIndexByIdentifier(identifier);
|
|
29
|
+
var obj = {
|
|
30
|
+
css: item[1],
|
|
31
|
+
media: item[2],
|
|
32
|
+
sourceMap: item[3],
|
|
33
|
+
supports: item[4],
|
|
34
|
+
layer: item[5]
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
if (indexByIdentifier !== -1) {
|
|
38
|
+
stylesInDOM[indexByIdentifier].references++;
|
|
39
|
+
stylesInDOM[indexByIdentifier].updater(obj);
|
|
40
|
+
} else {
|
|
41
|
+
var updater = addElementStyle(obj, options);
|
|
42
|
+
options.byIndex = i;
|
|
43
|
+
stylesInDOM.splice(i, 0, {
|
|
44
|
+
identifier: identifier,
|
|
45
|
+
updater: updater,
|
|
46
|
+
references: 1
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
identifiers.push(identifier);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return identifiers;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function addElementStyle(obj, options) {
|
|
57
|
+
var api = options.domAPI(options);
|
|
58
|
+
api.update(obj);
|
|
59
|
+
|
|
60
|
+
var updater = function updater(newObj) {
|
|
61
|
+
if (newObj) {
|
|
62
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
api.update(obj = newObj);
|
|
67
|
+
} else {
|
|
68
|
+
api.remove();
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
return updater;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
module.exports = function (list, options) {
|
|
76
|
+
options = options || {};
|
|
77
|
+
list = list || [];
|
|
78
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
79
|
+
return function update(newList) {
|
|
80
|
+
newList = newList || [];
|
|
81
|
+
|
|
82
|
+
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
83
|
+
var identifier = lastIdentifiers[i];
|
|
84
|
+
var index = getIndexByIdentifier(identifier);
|
|
85
|
+
stylesInDOM[index].references--;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
89
|
+
|
|
90
|
+
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
91
|
+
var _identifier = lastIdentifiers[_i];
|
|
92
|
+
|
|
93
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
94
|
+
|
|
95
|
+
if (stylesInDOM[_index].references === 0) {
|
|
96
|
+
stylesInDOM[_index].updater();
|
|
97
|
+
|
|
98
|
+
stylesInDOM.splice(_index, 1);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
lastIdentifiers = newLastIdentifiers;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var memo = {};
|
|
4
|
+
/* istanbul ignore next */
|
|
5
|
+
|
|
6
|
+
function getTarget(target) {
|
|
7
|
+
if (typeof memo[target] === "undefined") {
|
|
8
|
+
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
9
|
+
|
|
10
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
11
|
+
try {
|
|
12
|
+
// This will throw an exception if access to iframe is blocked
|
|
13
|
+
// due to cross-origin restrictions
|
|
14
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
15
|
+
} catch (e) {
|
|
16
|
+
// istanbul ignore next
|
|
17
|
+
styleTarget = null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
memo[target] = styleTarget;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return memo[target];
|
|
25
|
+
}
|
|
26
|
+
/* istanbul ignore next */
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
function insertBySelector(insert, style) {
|
|
30
|
+
var target = getTarget(insert);
|
|
31
|
+
|
|
32
|
+
if (!target) {
|
|
33
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
target.appendChild(style);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
module.exports = insertBySelector;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
function insertStyleElement(options) {
|
|
5
|
+
var element = document.createElement("style");
|
|
6
|
+
options.setAttributes(element, options.attributes);
|
|
7
|
+
options.insert(element, options.options);
|
|
8
|
+
return element;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = insertStyleElement;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function isEqualLocals(a, b, isNamedExport) {
|
|
4
|
+
if (!a && b || a && !b) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
var p;
|
|
9
|
+
|
|
10
|
+
for (p in a) {
|
|
11
|
+
if (isNamedExport && p === "default") {
|
|
12
|
+
// eslint-disable-next-line no-continue
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (a[p] !== b[p]) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
for (p in b) {
|
|
22
|
+
if (isNamedExport && p === "default") {
|
|
23
|
+
// eslint-disable-next-line no-continue
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (!a[p]) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = isEqualLocals;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var memo;
|
|
4
|
+
/* istanbul ignore next */
|
|
5
|
+
|
|
6
|
+
function isOldIE() {
|
|
7
|
+
if (typeof memo === "undefined") {
|
|
8
|
+
// Test for IE <= 9 as proposed by Browserhacks
|
|
9
|
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
10
|
+
// Tests for existence of standard globals is to allow style-loader
|
|
11
|
+
// to operate correctly into non-standard environments
|
|
12
|
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
13
|
+
memo = Boolean(window && document && document.all && !window.atob);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return memo;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module.exports = isOldIE;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
function setAttributesWithoutAttributes(styleElement, attributes) {
|
|
5
|
+
var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
|
|
6
|
+
|
|
7
|
+
if (nonce) {
|
|
8
|
+
attributes.nonce = nonce;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Object.keys(attributes).forEach(function (key) {
|
|
12
|
+
styleElement.setAttribute(key, attributes[key]);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = setAttributesWithoutAttributes;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
function setAttributesWithoutAttributes(styleElement, attributes) {
|
|
5
|
+
Object.keys(attributes).forEach(function (key) {
|
|
6
|
+
styleElement.setAttribute(key, attributes[key]);
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
module.exports = setAttributesWithoutAttributes;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
function setAttributesWithoutAttributes(styleElement) {
|
|
5
|
+
var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
|
|
6
|
+
|
|
7
|
+
if (nonce) {
|
|
8
|
+
styleElement.setAttribute("nonce", nonce);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
module.exports = setAttributesWithoutAttributes;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
var replaceText = function replaceText() {
|
|
5
|
+
var textStore = [];
|
|
6
|
+
return function replace(index, replacement) {
|
|
7
|
+
textStore[index] = replacement;
|
|
8
|
+
return textStore.filter(Boolean).join("\n");
|
|
9
|
+
};
|
|
10
|
+
}();
|
|
11
|
+
/* istanbul ignore next */
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
function apply(styleElement, index, remove, obj) {
|
|
15
|
+
var css;
|
|
16
|
+
|
|
17
|
+
if (remove) {
|
|
18
|
+
css = "";
|
|
19
|
+
} else {
|
|
20
|
+
css = "";
|
|
21
|
+
|
|
22
|
+
if (obj.supports) {
|
|
23
|
+
css += "@supports (".concat(obj.supports, ") {");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (obj.media) {
|
|
27
|
+
css += "@media ".concat(obj.media, " {");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var needLayer = typeof obj.layer !== "undefined";
|
|
31
|
+
|
|
32
|
+
if (needLayer) {
|
|
33
|
+
css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
css += obj.css;
|
|
37
|
+
|
|
38
|
+
if (needLayer) {
|
|
39
|
+
css += "}";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (obj.media) {
|
|
43
|
+
css += "}";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (obj.supports) {
|
|
47
|
+
css += "}";
|
|
48
|
+
}
|
|
49
|
+
} // For old IE
|
|
50
|
+
|
|
51
|
+
/* istanbul ignore if */
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
if (styleElement.styleSheet) {
|
|
55
|
+
styleElement.styleSheet.cssText = replaceText(index, css);
|
|
56
|
+
} else {
|
|
57
|
+
var cssNode = document.createTextNode(css);
|
|
58
|
+
var childNodes = styleElement.childNodes;
|
|
59
|
+
|
|
60
|
+
if (childNodes[index]) {
|
|
61
|
+
styleElement.removeChild(childNodes[index]);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (childNodes.length) {
|
|
65
|
+
styleElement.insertBefore(cssNode, childNodes[index]);
|
|
66
|
+
} else {
|
|
67
|
+
styleElement.appendChild(cssNode);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
var singletonData = {
|
|
73
|
+
singleton: null,
|
|
74
|
+
singletonCounter: 0
|
|
75
|
+
};
|
|
76
|
+
/* istanbul ignore next */
|
|
77
|
+
|
|
78
|
+
function domAPI(options) {
|
|
79
|
+
// eslint-disable-next-line no-undef,no-use-before-define
|
|
80
|
+
var styleIndex = singletonData.singletonCounter++;
|
|
81
|
+
var styleElement = // eslint-disable-next-line no-undef,no-use-before-define
|
|
82
|
+
singletonData.singleton || (singletonData.singleton = options.insertStyleElement(options));
|
|
83
|
+
return {
|
|
84
|
+
update: function update(obj) {
|
|
85
|
+
apply(styleElement, styleIndex, false, obj);
|
|
86
|
+
},
|
|
87
|
+
remove: function remove(obj) {
|
|
88
|
+
apply(styleElement, styleIndex, true, obj);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
module.exports = domAPI;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
function apply(styleElement, options, obj) {
|
|
5
|
+
var css = "";
|
|
6
|
+
|
|
7
|
+
if (obj.supports) {
|
|
8
|
+
css += "@supports (".concat(obj.supports, ") {");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
if (obj.media) {
|
|
12
|
+
css += "@media ".concat(obj.media, " {");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var needLayer = typeof obj.layer !== "undefined";
|
|
16
|
+
|
|
17
|
+
if (needLayer) {
|
|
18
|
+
css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
css += obj.css;
|
|
22
|
+
|
|
23
|
+
if (needLayer) {
|
|
24
|
+
css += "}";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (obj.media) {
|
|
28
|
+
css += "}";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (obj.supports) {
|
|
32
|
+
css += "}";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var sourceMap = obj.sourceMap;
|
|
36
|
+
|
|
37
|
+
if (sourceMap && typeof btoa !== "undefined") {
|
|
38
|
+
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
39
|
+
} // For old IE
|
|
40
|
+
|
|
41
|
+
/* istanbul ignore if */
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
options.styleTagTransform(css, styleElement, options.options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function removeStyleElement(styleElement) {
|
|
48
|
+
// istanbul ignore if
|
|
49
|
+
if (styleElement.parentNode === null) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
styleElement.parentNode.removeChild(styleElement);
|
|
54
|
+
}
|
|
55
|
+
/* istanbul ignore next */
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
function domAPI(options) {
|
|
59
|
+
var styleElement = options.insertStyleElement(options);
|
|
60
|
+
return {
|
|
61
|
+
update: function update(obj) {
|
|
62
|
+
apply(styleElement, options, obj);
|
|
63
|
+
},
|
|
64
|
+
remove: function remove() {
|
|
65
|
+
removeStyleElement(styleElement);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
module.exports = domAPI;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
function styleTagTransform(css, styleElement) {
|
|
5
|
+
if (styleElement.styleSheet) {
|
|
6
|
+
styleElement.styleSheet.cssText = css;
|
|
7
|
+
} else {
|
|
8
|
+
while (styleElement.firstChild) {
|
|
9
|
+
styleElement.removeChild(styleElement.firstChild);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
styleElement.appendChild(document.createTextNode(css));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = styleTagTransform;
|