@umijs/bundler-webpack 4.0.0-beta.9 → 4.0.0-rc.3
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/compiled/autoprefixer/browserslist/index.d.ts +11 -7
- package/compiled/autoprefixer/index.js +3 -3
- package/compiled/autoprefixer/postcss/lib/at-rule.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/comment.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/container.d.ts +2 -2
- package/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts +55 -8
- package/compiled/autoprefixer/postcss/lib/declaration.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/input.d.ts +26 -6
- package/compiled/autoprefixer/postcss/lib/lazy-result.d.ts +11 -10
- package/compiled/autoprefixer/postcss/lib/no-work-result.d.ts +37 -0
- package/compiled/autoprefixer/postcss/lib/node.d.ts +36 -2
- package/compiled/autoprefixer/postcss/lib/postcss.d.ts +31 -30
- package/compiled/autoprefixer/postcss/lib/processor.d.ts +5 -4
- package/compiled/autoprefixer/postcss/lib/result.d.ts +3 -2
- package/compiled/autoprefixer/postcss/lib/rule.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/warning.d.ts +37 -3
- package/compiled/autoprefixer/source-map-js/source-map.d.ts +99 -82
- package/compiled/babel-loader/index.js +2 -2
- package/compiled/copy-webpack-plugin/576.index.js +1171 -0
- package/compiled/copy-webpack-plugin/index.js +16 -10
- package/compiled/copy-webpack-plugin/package.json +1 -1
- package/compiled/css-minimizer-webpack-plugin/index.js +8 -2
- package/compiled/css-minimizer-webpack-plugin/minify.js +25 -11
- package/compiled/css-minimizer-webpack-plugin/package.json +1 -1
- package/compiled/css-minimizer-webpack-plugin/utils.js +225 -28
- package/compiled/cssnano/index.js +12 -11
- package/compiled/express/index.js +57 -74
- package/compiled/fork-ts-checker-webpack-plugin/LICENSE +21 -0
- package/compiled/fork-ts-checker-webpack-plugin/fsevents.node +0 -0
- package/compiled/fork-ts-checker-webpack-plugin/index.js +48 -0
- package/compiled/fork-ts-checker-webpack-plugin/package.json +1 -0
- package/compiled/http-proxy-middleware/dist/types.d.ts +5 -5
- package/compiled/http-proxy-middleware/http-proxy/index.d.ts +1 -1
- package/compiled/http-proxy-middleware/index.js +10 -10
- package/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +60 -8
- package/compiled/mini-css-extract-plugin/hmr/normalize-url.js +13 -1
- package/compiled/mini-css-extract-plugin/index.js +8103 -7617
- package/compiled/mini-css-extract-plugin/loader.js +177 -54
- package/compiled/mini-css-extract-plugin/package.json +1 -1
- package/compiled/mini-css-extract-plugin/utils.js +83 -24
- package/compiled/postcss-loader/index.js +1 -1
- package/compiled/react-refresh/index.js +3 -3
- package/compiled/sass-loader/index.js +1 -1
- package/compiled/schema-utils/ajv/dist/ajv.d.ts +16 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/code.d.ts +39 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/compiled/schema-utils/ajv/dist/compile/errors.d.ts +13 -0
- package/compiled/schema-utils/ajv/dist/compile/index.d.ts +80 -0
- package/compiled/schema-utils/ajv/dist/compile/ref_error.d.ts +5 -0
- package/compiled/schema-utils/ajv/dist/compile/resolve.d.ts +12 -0
- package/compiled/schema-utils/ajv/dist/compile/rules.d.ts +28 -0
- package/compiled/schema-utils/ajv/dist/compile/util.d.ts +40 -0
- package/compiled/schema-utils/ajv/dist/compile/validate/index.d.ts +42 -0
- package/compiled/schema-utils/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/compiled/schema-utils/ajv/dist/core.d.ts +171 -0
- package/compiled/schema-utils/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/compiled/schema-utils/ajv/dist/types/index.d.ts +177 -0
- package/compiled/schema-utils/ajv/dist/types/json-schema.d.ts +124 -0
- package/compiled/schema-utils/ajv/dist/types/jtd-schema.d.ts +168 -0
- package/compiled/schema-utils/declarations/validate.d.ts +4 -4
- package/compiled/schema-utils/index.js +8 -2
- package/compiled/schema-utils/uri-js/dist/es5/uri.all.d.ts +59 -0
- package/compiled/style-loader/index.js +1 -1
- package/compiled/terser/index.js +1 -1
- package/compiled/terser-webpack-plugin/index.js +393 -517
- package/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts +1 -0
- package/compiled/terser-webpack-plugin/minify.js +10 -3
- package/compiled/terser-webpack-plugin/package.json +1 -1
- package/compiled/terser-webpack-plugin/types/index.d.ts +183 -149
- package/compiled/terser-webpack-plugin/types/minify.d.ts +17 -0
- package/compiled/terser-webpack-plugin/types/utils.d.ts +10 -15
- package/compiled/terser-webpack-plugin/utils.js +118 -25
- package/compiled/webpack/index.js +10464 -5286
- package/compiled/webpack-dev-middleware/index.js +11 -5
- package/compiled/webpack-dev-middleware/package.json +1 -1
- package/compiled/webpack-manifest-plugin/LICENSE +21 -0
- package/compiled/webpack-manifest-plugin/index.js +1 -0
- package/compiled/webpack-manifest-plugin/package.json +1 -0
- package/compiled/webpack-sources/index.js +1 -1
- package/compiled/ws/index.d.ts +1 -2
- package/compiled/ws/index.js +1 -1
- package/dist/build.d.ts +5 -3
- package/dist/build.js +2 -1
- package/dist/cli.js +4 -7
- package/dist/config/assetRules.js +6 -14
- package/dist/config/compressPlugin.js +6 -0
- package/dist/config/config.d.ts +7 -2
- package/dist/config/config.js +49 -7
- package/dist/config/cssRules.js +1 -1
- package/dist/config/detectDeadCode.d.ts +12 -0
- package/dist/config/detectDeadCode.js +120 -0
- package/dist/config/detectDeadCodePlugin.d.ts +9 -0
- package/dist/config/detectDeadCodePlugin.js +71 -0
- package/dist/config/forkTSCheckerPlugin.d.ts +11 -0
- package/dist/config/forkTSCheckerPlugin.js +34 -0
- package/dist/config/harmonyLinkingErrorPlugin.d.ts +6 -0
- package/dist/config/harmonyLinkingErrorPlugin.js +42 -0
- package/dist/config/javaScriptRules.d.ts +1 -0
- package/dist/config/javaScriptRules.js +31 -20
- package/dist/config/manifestPlugin.d.ts +11 -0
- package/dist/config/manifestPlugin.js +25 -0
- package/dist/config/miniCSSExtractPlugin.d.ts +1 -0
- package/dist/config/miniCSSExtractPlugin.js +2 -3
- package/dist/config/svgRules.d.ts +1 -0
- package/dist/config/svgRules.js +17 -3
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +4 -1
- package/dist/dev.d.ts +4 -2
- package/dist/dev.js +31 -5
- package/dist/loader/svgr.d.ts +4 -0
- package/dist/loader/svgr.js +67 -0
- package/dist/loader/swc.d.ts +4 -0
- package/dist/loader/swc.js +79 -0
- package/dist/plugins/ParcelCSSMinifyPlugin.d.ts +10 -0
- package/dist/plugins/ParcelCSSMinifyPlugin.js +74 -0
- package/dist/plugins/RuntimePublicPathPlugin.d.ts +4 -0
- package/dist/plugins/RuntimePublicPathPlugin.js +20 -0
- package/dist/requireHook.js +1 -1
- package/dist/schema.js +14 -6
- package/dist/server/server.js +20 -1
- package/dist/swcPlugins/autoCSSModules.d.ts +7 -2
- package/dist/swcPlugins/autoCSSModules.js +13 -16
- package/dist/swcPlugins/lockCoreJS.d.ts +6 -0
- package/dist/swcPlugins/lockCoreJS.js +23 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.js +1 -0
- package/dist/utils/depMatch.js +1 -1
- package/package.json +45 -39
- package/compiled/@svgr/webpack/LICENSE +0 -7
- package/compiled/@svgr/webpack/index.js +0 -266
- package/compiled/@svgr/webpack/package.json +0 -1
- package/compiled/swc-loader/LICENSE +0 -25
- package/compiled/swc-loader/index.js +0 -1
- package/compiled/swc-loader/package.json +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface URIComponents {
|
|
2
|
+
scheme?: string;
|
|
3
|
+
userinfo?: string;
|
|
4
|
+
host?: string;
|
|
5
|
+
port?: number | string;
|
|
6
|
+
path?: string;
|
|
7
|
+
query?: string;
|
|
8
|
+
fragment?: string;
|
|
9
|
+
reference?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface URIOptions {
|
|
13
|
+
scheme?: string;
|
|
14
|
+
reference?: string;
|
|
15
|
+
tolerant?: boolean;
|
|
16
|
+
absolutePath?: boolean;
|
|
17
|
+
iri?: boolean;
|
|
18
|
+
unicodeSupport?: boolean;
|
|
19
|
+
domainHost?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {
|
|
22
|
+
scheme: string;
|
|
23
|
+
parse(components: ParentComponents, options: Options): Components;
|
|
24
|
+
serialize(components: Components, options: Options): ParentComponents;
|
|
25
|
+
unicodeSupport?: boolean;
|
|
26
|
+
domainHost?: boolean;
|
|
27
|
+
absolutePath?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface URIRegExps {
|
|
30
|
+
NOT_SCHEME: RegExp;
|
|
31
|
+
NOT_USERINFO: RegExp;
|
|
32
|
+
NOT_HOST: RegExp;
|
|
33
|
+
NOT_PATH: RegExp;
|
|
34
|
+
NOT_PATH_NOSCHEME: RegExp;
|
|
35
|
+
NOT_QUERY: RegExp;
|
|
36
|
+
NOT_FRAGMENT: RegExp;
|
|
37
|
+
ESCAPE: RegExp;
|
|
38
|
+
UNRESERVED: RegExp;
|
|
39
|
+
OTHER_CHARS: RegExp;
|
|
40
|
+
PCT_ENCODED: RegExp;
|
|
41
|
+
IPV4ADDRESS: RegExp;
|
|
42
|
+
IPV6ADDRESS: RegExp;
|
|
43
|
+
}
|
|
44
|
+
export declare const SCHEMES: {
|
|
45
|
+
[scheme: string]: URISchemeHandler;
|
|
46
|
+
};
|
|
47
|
+
export declare function pctEncChar(chr: string): string;
|
|
48
|
+
export declare function pctDecChars(str: string): string;
|
|
49
|
+
export declare function parse(uriString: string, options?: URIOptions): URIComponents;
|
|
50
|
+
export declare function removeDotSegments(input: string): string;
|
|
51
|
+
export declare function serialize(components: URIComponents, options?: URIOptions): string;
|
|
52
|
+
export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents;
|
|
53
|
+
export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string;
|
|
54
|
+
export declare function normalize(uri: string, options?: URIOptions): string;
|
|
55
|
+
export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents;
|
|
56
|
+
export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean;
|
|
57
|
+
export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean;
|
|
58
|
+
export declare function escapeComponent(str: string, options?: URIOptions): string;
|
|
59
|
+
export declare function unescapeComponent(str: string, options?: URIOptions): string;
|
|
@@ -1 +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})();
|
|
1
|
+
(function(){"use strict";var t={17:function(t,e,n){const o=n(429);t.exports=o.default},429:function(t,e,n){Object.defineProperty(e,"__esModule",{value:true});e["default"]=void 0;var o=_interopRequireDefault(n(822));var r=n(269);var i=_interopRequireDefault(n(265));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 l={};if(e.attributes){l.attributes=e.attributes}if(e.base){l.base=e.base}const a=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,a,e)}\n ${(0,r.getImportLinkContentCode)(s,this,t)}\n ${s?"":`content = content.__esModule ? content.default : content;`}\n\nvar options = ${JSON.stringify(l)};\n\n${(0,r.getInsertOptionCode)(a,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,a,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(l)};\n\n${(0,r.getStyleTagTransformFn)(e,o)};\noptions.setAttributes = setAttributes;\n${(0,r.getInsertOptionCode)(a,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,a,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(l)};\n\n${(0,r.getStyleTagTransformFn)(e,o)};\noptions.setAttributes = setAttributes;\n${(0,r.getInsertOptionCode)(a,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},211: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},269:function(t,e,n){Object.defineProperty(e,"__esModule",{value:true});e.getExportLazyStyleCode=getExportLazyStyleCode;e.getExportStyleCode=getExportStyleCode;e.getImportInsertBySelectorCode=getImportInsertBySelectorCode;e.getImportInsertStyleElementCode=getImportInsertStyleElementCode;e.getImportIsOldIECode=getImportIsOldIECode;e.getImportLinkAPICode=getImportLinkAPICode;e.getImportLinkContentCode=getImportLinkContentCode;e.getImportStyleAPICode=getImportStyleAPICode;e.getImportStyleContentCode=getImportStyleContentCode;e.getImportStyleDomAPICode=getImportStyleDomAPICode;e.getInsertOptionCode=getInsertOptionCode;e.getLinkHmrCode=getLinkHmrCode;e.getSetAttributesCode=getSetAttributesCode;e.getStyleHmrCode=getStyleHmrCode;e.getStyleTagTransformFn=getStyleTagTransformFn;e.getStyleTagTransformFnCode=getStyleTagTransformFnCode;e.getdomAPI=getdomAPI;e.stringifyRequest=stringifyRequest;var o=_interopRequireDefault(n(822));var r=_interopRequireDefault(n(211));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){if(typeof t.utils!=="undefined"&&typeof t.utils.contextify==="function"){return JSON.stringify(t.utils.contextify(t.context,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});`}},822:function(t){t.exports=require("path")},265: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}')}};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__(17);module.exports=n})();
|