@unpackjs/core 1.5.4 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/bin/openChrome.applescript +94 -0
  2. package/compiled/chokidar/index.d.ts +327 -0
  3. package/compiled/chokidar/index.js +1773 -0
  4. package/compiled/chokidar/license +21 -0
  5. package/compiled/chokidar/package.json +1 -0
  6. package/compiled/commander/index.d.ts +971 -0
  7. package/compiled/commander/index.js +2190 -0
  8. package/compiled/commander/license +22 -0
  9. package/compiled/commander/package.json +1 -0
  10. package/compiled/css-loader/api.js +85 -0
  11. package/compiled/css-loader/getUrl.js +26 -0
  12. package/compiled/css-loader/index.d.ts +1 -0
  13. package/compiled/css-loader/index.js +8004 -0
  14. package/compiled/css-loader/license +20 -0
  15. package/compiled/css-loader/noSourceMaps.js +5 -0
  16. package/compiled/css-loader/package.json +1 -0
  17. package/compiled/css-loader/sourceMaps.js +16 -0
  18. package/compiled/fast-glob/index.d.ts +237 -0
  19. package/compiled/fast-glob/index.js +5726 -0
  20. package/compiled/fast-glob/license +21 -0
  21. package/compiled/fast-glob/package.json +1 -0
  22. package/compiled/less-loader/index.d.ts +1 -0
  23. package/compiled/less-loader/index.js +340 -0
  24. package/compiled/less-loader/license +20 -0
  25. package/compiled/less-loader/package.json +1 -0
  26. package/compiled/line-diff/index.d.ts +1 -0
  27. package/compiled/line-diff/index.js +160 -0
  28. package/compiled/line-diff/license +21 -0
  29. package/compiled/line-diff/package.json +1 -0
  30. package/compiled/log-update/index.d.ts +1 -0
  31. package/compiled/log-update/index.js +1970 -0
  32. package/compiled/log-update/package.json +1 -0
  33. package/compiled/portfinder/index.d.ts +64 -0
  34. package/compiled/portfinder/index.js +3401 -0
  35. package/compiled/portfinder/license +22 -0
  36. package/compiled/portfinder/package.json +1 -0
  37. package/compiled/postcss-loader/index.d.ts +1 -0
  38. package/compiled/postcss-loader/index.js +94945 -0
  39. package/compiled/postcss-loader/license +20 -0
  40. package/compiled/postcss-loader/package.json +1 -0
  41. package/compiled/sass-loader/index.d.ts +961 -0
  42. package/compiled/sass-loader/index.js +5610 -0
  43. package/compiled/sass-loader/index1.js +65 -0
  44. package/compiled/sass-loader/license +20 -0
  45. package/compiled/sass-loader/package.json +1 -0
  46. package/compiled/sass-loader/sass.node.js +12 -0
  47. package/compiled/semver/index.d.ts +1 -0
  48. package/compiled/semver/index.js +1940 -0
  49. package/compiled/semver/license +15 -0
  50. package/compiled/semver/package.json +1 -0
  51. package/compiled/style-loader/index.d.ts +1 -0
  52. package/compiled/style-loader/index.js +370 -0
  53. package/compiled/style-loader/license +20 -0
  54. package/compiled/style-loader/package.json +1 -0
  55. package/compiled/style-loader/runtime/injectStylesIntoLinkTag.js +29 -0
  56. package/compiled/style-loader/runtime/injectStylesIntoStyleTag.js +84 -0
  57. package/compiled/style-loader/runtime/insertBySelector.js +34 -0
  58. package/compiled/style-loader/runtime/insertStyleElement.js +10 -0
  59. package/compiled/style-loader/runtime/isEqualLocals.js +28 -0
  60. package/compiled/style-loader/runtime/isOldIE.js +17 -0
  61. package/compiled/style-loader/runtime/setAttributesWithAttributes.js +13 -0
  62. package/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js +9 -0
  63. package/compiled/style-loader/runtime/setAttributesWithoutAttributes.js +10 -0
  64. package/compiled/style-loader/runtime/singletonStyleDomAPI.js +86 -0
  65. package/compiled/style-loader/runtime/styleDomAPI.js +61 -0
  66. package/compiled/style-loader/runtime/styleTagTransform.js +14 -0
  67. package/compiled/webpack-bundle-analyzer/index.d.ts +1 -0
  68. package/compiled/webpack-bundle-analyzer/index.js +13276 -0
  69. package/compiled/webpack-bundle-analyzer/license +20 -0
  70. package/compiled/webpack-bundle-analyzer/package.json +1 -0
  71. package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
  72. package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
  73. package/compiled/webpack-merge/index.d.ts +31 -0
  74. package/compiled/webpack-merge/index.js +1200 -0
  75. package/compiled/webpack-merge/license +20 -0
  76. package/compiled/webpack-merge/package.json +1 -0
  77. package/dist/bundleRequire.cjs +200 -0
  78. package/dist/bundleRequire.d.ts +5 -0
  79. package/dist/bundleRequire.d.ts.map +1 -0
  80. package/dist/bundleRequire.js +173 -0
  81. package/dist/bundler-config/chunkSplit.cjs +151 -0
  82. package/dist/bundler-config/chunkSplit.d.ts +6 -0
  83. package/dist/bundler-config/chunkSplit.d.ts.map +1 -0
  84. package/dist/bundler-config/chunkSplit.js +127 -0
  85. package/dist/bundler-config/css.cjs +167 -0
  86. package/dist/bundler-config/css.d.ts +6 -0
  87. package/dist/bundler-config/css.d.ts.map +1 -0
  88. package/dist/bundler-config/css.js +158 -0
  89. package/dist/bundler-config/experimentCss.cjs +166 -0
  90. package/dist/bundler-config/experimentCss.d.ts +6 -0
  91. package/dist/bundler-config/experimentCss.d.ts.map +1 -0
  92. package/dist/bundler-config/experimentCss.js +157 -0
  93. package/dist/bundler-config/helper.cjs +83 -0
  94. package/dist/bundler-config/helper.d.ts +8 -0
  95. package/dist/bundler-config/helper.d.ts.map +1 -0
  96. package/dist/bundler-config/helper.js +58 -0
  97. package/dist/bundler-config/index.cjs +204 -0
  98. package/dist/bundler-config/index.d.ts +3 -0
  99. package/dist/bundler-config/index.d.ts.map +1 -0
  100. package/dist/bundler-config/index.js +180 -0
  101. package/dist/colors.cjs +60 -0
  102. package/dist/colors.d.ts +6 -0
  103. package/dist/colors.d.ts.map +1 -0
  104. package/dist/colors.js +40 -0
  105. package/dist/{config/index.cjs → config.cjs} +21 -47
  106. package/dist/{config/index.d.ts → config.d.ts} +4 -3
  107. package/dist/config.d.ts.map +1 -0
  108. package/dist/{config/index.js → config.js} +18 -52
  109. package/dist/constants.cjs +86 -0
  110. package/dist/constants.d.ts +25 -0
  111. package/dist/constants.d.ts.map +1 -0
  112. package/dist/constants.js +61 -0
  113. package/dist/createUnpack.cjs +102 -0
  114. package/dist/createUnpack.d.ts +7 -0
  115. package/dist/createUnpack.d.ts.map +1 -0
  116. package/dist/createUnpack.js +78 -0
  117. package/dist/index.cjs +26 -48
  118. package/dist/index.d.ts +7 -7
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/index.js +8 -52
  121. package/dist/lightningcss/cache.cjs +36 -0
  122. package/dist/lightningcss/cache.d.ts +2 -0
  123. package/dist/lightningcss/cache.d.ts.map +1 -0
  124. package/dist/lightningcss/cache.js +22 -0
  125. package/dist/lightningcss/index.cjs +21 -0
  126. package/dist/lightningcss/index.d.ts +2 -0
  127. package/dist/lightningcss/index.d.ts.map +1 -0
  128. package/dist/lightningcss/index.js +10 -0
  129. package/dist/lightningcss/loader.cjs +56 -0
  130. package/dist/lightningcss/loader.d.ts +5 -0
  131. package/dist/lightningcss/loader.d.ts.map +1 -0
  132. package/dist/lightningcss/loader.js +36 -0
  133. package/dist/lightningcss/minimizer.cjs +114 -0
  134. package/dist/lightningcss/minimizer.d.ts +11 -0
  135. package/dist/lightningcss/minimizer.d.ts.map +1 -0
  136. package/dist/lightningcss/minimizer.js +90 -0
  137. package/dist/logger.cjs +103 -0
  138. package/dist/logger.d.ts +3 -0
  139. package/dist/logger.d.ts.map +1 -0
  140. package/dist/logger.js +79 -0
  141. package/dist/openBrowser.cjs +85 -0
  142. package/dist/openBrowser.d.ts +2 -0
  143. package/dist/openBrowser.d.ts.map +1 -0
  144. package/dist/openBrowser.js +61 -0
  145. package/dist/plugin-progress/rspack.cjs +74 -0
  146. package/dist/plugin-progress/rspack.d.ts +9 -0
  147. package/dist/plugin-progress/rspack.d.ts.map +1 -0
  148. package/dist/plugin-progress/rspack.js +50 -0
  149. package/dist/plugin-progress/webpack.cjs +84 -0
  150. package/dist/plugin-progress/webpack.d.ts +9 -0
  151. package/dist/plugin-progress/webpack.d.ts.map +1 -0
  152. package/dist/plugin-progress/webpack.js +60 -0
  153. package/dist/plugin.cjs +33 -0
  154. package/dist/plugin.d.ts +3 -0
  155. package/dist/plugin.d.ts.map +1 -0
  156. package/dist/plugin.js +19 -0
  157. package/dist/progressBar.cjs +70 -0
  158. package/dist/progressBar.d.ts +14 -0
  159. package/dist/progressBar.d.ts.map +1 -0
  160. package/dist/progressBar.js +46 -0
  161. package/dist/reporter.cjs +133 -0
  162. package/dist/reporter.d.ts +9 -0
  163. package/dist/reporter.d.ts.map +1 -0
  164. package/dist/reporter.js +109 -0
  165. package/dist/run/build.cjs +77 -0
  166. package/dist/run/build.d.ts +3 -0
  167. package/dist/run/build.d.ts.map +1 -0
  168. package/dist/run/build.js +53 -0
  169. package/dist/run/dev.cjs +107 -0
  170. package/dist/run/dev.d.ts +3 -0
  171. package/dist/run/dev.d.ts.map +1 -0
  172. package/dist/run/dev.js +83 -0
  173. package/dist/run/index.cjs +23 -0
  174. package/dist/run/index.d.ts +3 -0
  175. package/dist/run/index.d.ts.map +1 -0
  176. package/dist/run/index.js +11 -0
  177. package/dist/thread-loader/WorkerError.cjs +41 -0
  178. package/dist/thread-loader/WorkerError.js +31 -0
  179. package/dist/thread-loader/WorkerPool.cjs +407 -0
  180. package/dist/thread-loader/WorkerPool.js +387 -0
  181. package/dist/thread-loader/index.cjs +100 -0
  182. package/dist/thread-loader/index.js +85 -0
  183. package/dist/thread-loader/readBuffer.cjs +55 -0
  184. package/dist/thread-loader/readBuffer.js +45 -0
  185. package/dist/thread-loader/serializer.cjs +46 -0
  186. package/dist/thread-loader/serializer.js +31 -0
  187. package/dist/thread-loader/utils.cjs +84 -0
  188. package/dist/thread-loader/utils.js +60 -0
  189. package/dist/thread-loader/worker.cjs +377 -0
  190. package/dist/thread-loader/worker.js +382 -0
  191. package/dist/thread-loader/workerPools.cjs +57 -0
  192. package/dist/thread-loader/workerPools.js +33 -0
  193. package/dist/typed-css-modules/index.cjs +21 -0
  194. package/dist/typed-css-modules/index.d.ts +2 -0
  195. package/dist/typed-css-modules/index.d.ts.map +1 -0
  196. package/dist/typed-css-modules/index.js +10 -0
  197. package/dist/typed-css-modules/loader.cjs +195 -0
  198. package/dist/typed-css-modules/loader.d.ts +10 -0
  199. package/dist/typed-css-modules/loader.d.ts.map +1 -0
  200. package/dist/typed-css-modules/loader.js +170 -0
  201. package/dist/typed-css-modules/plugin.cjs +96 -0
  202. package/dist/typed-css-modules/plugin.d.ts +16 -0
  203. package/dist/typed-css-modules/plugin.d.ts.map +1 -0
  204. package/dist/typed-css-modules/plugin.js +72 -0
  205. package/dist/typed-css-modules/utils.cjs +45 -0
  206. package/dist/typed-css-modules/utils.d.ts +6 -0
  207. package/dist/typed-css-modules/utils.d.ts.map +1 -0
  208. package/dist/typed-css-modules/utils.js +31 -0
  209. package/dist/types/chunkSplit.cjs +15 -0
  210. package/dist/types/chunkSplit.d.ts +35 -0
  211. package/dist/types/chunkSplit.d.ts.map +1 -0
  212. package/dist/types/chunkSplit.js +9 -0
  213. package/dist/types/config.cjs +15 -0
  214. package/dist/types/config.d.ts +176 -0
  215. package/dist/types/config.d.ts.map +1 -0
  216. package/dist/types/config.js +9 -0
  217. package/dist/types/index.cjs +29 -0
  218. package/dist/types/index.d.ts +16 -0
  219. package/dist/types/index.d.ts.map +1 -0
  220. package/dist/types/index.js +14 -0
  221. package/dist/types/lightningcss.cjs +15 -0
  222. package/dist/types/lightningcss.d.ts +11 -0
  223. package/dist/types/lightningcss.d.ts.map +1 -0
  224. package/dist/types/lightningcss.js +9 -0
  225. package/dist/types/logger.cjs +35 -0
  226. package/dist/types/logger.d.ts +16 -0
  227. package/dist/types/logger.d.ts.map +1 -0
  228. package/dist/types/logger.js +21 -0
  229. package/dist/types/plugin.cjs +15 -0
  230. package/dist/types/plugin.d.ts +18 -0
  231. package/dist/types/plugin.d.ts.map +1 -0
  232. package/dist/types/plugin.js +9 -0
  233. package/dist/utils.cjs +286 -0
  234. package/dist/utils.d.ts +43 -0
  235. package/dist/utils.d.ts.map +1 -0
  236. package/dist/utils.js +235 -0
  237. package/package.json +95 -6
  238. package/dist/config/index.d.ts.map +0 -1
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) Isaac Z. Schlueter and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"semver","author":"GitHub Inc.","version":"7.6.3","license":"ISC","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1 @@
1
+ export = any;
@@ -0,0 +1,370 @@
1
+ (() => {
2
+ "use strict";
3
+ var __webpack_modules__ = {
4
+ 994: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ const loader = __nccwpck_require__(170);
6
+ module.exports = loader.default;
7
+ },
8
+ 170: (__unused_webpack_module, exports, __nccwpck_require__) => {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports["default"] = void 0;
11
+ var _path = _interopRequireDefault(__nccwpck_require__(17));
12
+ var _utils = __nccwpck_require__(109);
13
+ var _options = _interopRequireDefault(__nccwpck_require__(877));
14
+ function _interopRequireDefault(obj) {
15
+ return obj && obj.__esModule ? obj : { default: obj };
16
+ }
17
+ const loader = function loader(content) {
18
+ if (
19
+ this._compiler &&
20
+ this._compiler.options &&
21
+ this._compiler.options.experiments &&
22
+ this._compiler.options.experiments.css &&
23
+ this._module &&
24
+ (this._module.type === "css" ||
25
+ this._module.type === "css/global" ||
26
+ this._module.type === "css/module" ||
27
+ this._module.type === "css/auto")
28
+ ) {
29
+ return content;
30
+ }
31
+ };
32
+ loader.pitch = function pitch(request) {
33
+ if (
34
+ this._compiler &&
35
+ this._compiler.options &&
36
+ this._compiler.options.experiments &&
37
+ this._compiler.options.experiments.css &&
38
+ this._module &&
39
+ (this._module.type === "css" ||
40
+ this._module.type === "css/global" ||
41
+ this._module.type === "css/module" ||
42
+ this._module.type === "css/auto")
43
+ ) {
44
+ this.emitWarning(
45
+ new Error(
46
+ 'You can\'t use `experiments.css` (`experiments.futureDefaults` enable built-in CSS support by default) and `style-loader` together, please set `experiments.css` to `false` or set `{ type: "javascript/auto" }` for rules with `style-loader` in your webpack config (now `style-loader` does nothing).',
47
+ ),
48
+ );
49
+ return;
50
+ }
51
+ const options = this.getOptions(_options.default);
52
+ const injectType = options.injectType || "styleTag";
53
+ const esModule =
54
+ typeof options.esModule !== "undefined" ? options.esModule : true;
55
+ const runtimeOptions = {};
56
+ if (options.attributes) {
57
+ runtimeOptions.attributes = options.attributes;
58
+ }
59
+ if (options.base) {
60
+ runtimeOptions.base = options.base;
61
+ }
62
+ const insertType =
63
+ options.insert && _path.default.isAbsolute(options.insert)
64
+ ? "module-path"
65
+ : "selector";
66
+ switch (injectType) {
67
+ case "linkTag": {
68
+ const hmrCode = this.hot
69
+ ? (0, _utils.getLinkHmrCode)(esModule, this, request)
70
+ : "";
71
+ return `\n ${(0, _utils.getImportLinkAPICode)(esModule, this)}\n ${(0, _utils.getImportInsertBySelectorCode)(esModule, this, insertType, options)}\n ${(0, _utils.getImportLinkContentCode)(esModule, this, request)}\n ${esModule ? "" : `content = content.__esModule ? content.default : content;`}\n\nvar options = ${JSON.stringify(runtimeOptions)};\n\n${(0, _utils.getInsertOptionCode)(insertType, options)}\n\nvar update = API(content, options);\n\n${hmrCode}\n\n${esModule ? "export default {}" : ""}`;
72
+ }
73
+ case "lazyStyleTag":
74
+ case "lazyAutoStyleTag":
75
+ case "lazySingletonStyleTag": {
76
+ const isSingleton = injectType === "lazySingletonStyleTag";
77
+ const isAuto = injectType === "lazyAutoStyleTag";
78
+ const hmrCode = this.hot
79
+ ? (0, _utils.getStyleHmrCode)(esModule, this, request, true)
80
+ : "";
81
+ return `\n var exported = {};\n\n ${(0, _utils.getImportStyleAPICode)(esModule, this)}\n ${(0, _utils.getImportStyleDomAPICode)(esModule, this, isSingleton, isAuto)}\n ${(0, _utils.getImportInsertBySelectorCode)(esModule, this, insertType, options)}\n ${(0, _utils.getSetAttributesCode)(esModule, this, options)}\n ${(0, _utils.getImportInsertStyleElementCode)(esModule, this)}\n ${(0, _utils.getStyleTagTransformFnCode)(esModule, this, options, isSingleton)}\n ${(0, _utils.getImportStyleContentCode)(esModule, this, request)}\n ${isAuto ? (0, _utils.getImportIsOldIECode)(esModule, this) : ""}\n ${esModule ? `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(runtimeOptions)};\n\n${(0, _utils.getStyleTagTransformFn)(options, isSingleton)};\noptions.setAttributes = setAttributes;\n${(0, _utils.getInsertOptionCode)(insertType, options)}\noptions.domAPI = ${(0, _utils.getdomAPI)(isAuto)};\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${hmrCode}\n\n${(0, _utils.getExportLazyStyleCode)(esModule, this, request)}\n`;
82
+ }
83
+ case "styleTag":
84
+ case "autoStyleTag":
85
+ case "singletonStyleTag":
86
+ default: {
87
+ const isSingleton = injectType === "singletonStyleTag";
88
+ const isAuto = injectType === "autoStyleTag";
89
+ const hmrCode = this.hot
90
+ ? (0, _utils.getStyleHmrCode)(esModule, this, request, false)
91
+ : "";
92
+ return `\n ${(0, _utils.getImportStyleAPICode)(esModule, this)}\n ${(0, _utils.getImportStyleDomAPICode)(esModule, this, isSingleton, isAuto)}\n ${(0, _utils.getImportInsertBySelectorCode)(esModule, this, insertType, options)}\n ${(0, _utils.getSetAttributesCode)(esModule, this, options)}\n ${(0, _utils.getImportInsertStyleElementCode)(esModule, this)}\n ${(0, _utils.getStyleTagTransformFnCode)(esModule, this, options, isSingleton)}\n ${(0, _utils.getImportStyleContentCode)(esModule, this, request)}\n ${isAuto ? (0, _utils.getImportIsOldIECode)(esModule, this) : ""}\n ${esModule ? "" : `content = content.__esModule ? content.default : content;`}\n\nvar options = ${JSON.stringify(runtimeOptions)};\n\n${(0, _utils.getStyleTagTransformFn)(options, isSingleton)};\noptions.setAttributes = setAttributes;\n${(0, _utils.getInsertOptionCode)(insertType, options)}\noptions.domAPI = ${(0, _utils.getdomAPI)(isAuto)};\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n${hmrCode}\n\n${(0, _utils.getExportStyleCode)(esModule, this, request)}\n`;
93
+ }
94
+ }
95
+ };
96
+ var _default = (exports["default"] = loader);
97
+ },
98
+ 962: (module) => {
99
+ function isEqualLocals(a, b, isNamedExport) {
100
+ if ((!a && b) || (a && !b)) {
101
+ return false;
102
+ }
103
+ var p;
104
+ for (p in a) {
105
+ if (isNamedExport && p === "default") {
106
+ continue;
107
+ }
108
+ if (a[p] !== b[p]) {
109
+ return false;
110
+ }
111
+ }
112
+ for (p in b) {
113
+ if (isNamedExport && p === "default") {
114
+ continue;
115
+ }
116
+ if (!a[p]) {
117
+ return false;
118
+ }
119
+ }
120
+ return true;
121
+ }
122
+ module.exports = isEqualLocals;
123
+ },
124
+ 109: (__unused_webpack_module, exports, __nccwpck_require__) => {
125
+ Object.defineProperty(exports, "__esModule", { value: true });
126
+ exports.getExportLazyStyleCode = getExportLazyStyleCode;
127
+ exports.getExportStyleCode = getExportStyleCode;
128
+ exports.getImportInsertBySelectorCode = getImportInsertBySelectorCode;
129
+ exports.getImportInsertStyleElementCode = getImportInsertStyleElementCode;
130
+ exports.getImportIsOldIECode = getImportIsOldIECode;
131
+ exports.getImportLinkAPICode = getImportLinkAPICode;
132
+ exports.getImportLinkContentCode = getImportLinkContentCode;
133
+ exports.getImportStyleAPICode = getImportStyleAPICode;
134
+ exports.getImportStyleContentCode = getImportStyleContentCode;
135
+ exports.getImportStyleDomAPICode = getImportStyleDomAPICode;
136
+ exports.getInsertOptionCode = getInsertOptionCode;
137
+ exports.getLinkHmrCode = getLinkHmrCode;
138
+ exports.getSetAttributesCode = getSetAttributesCode;
139
+ exports.getStyleHmrCode = getStyleHmrCode;
140
+ exports.getStyleTagTransformFn = getStyleTagTransformFn;
141
+ exports.getStyleTagTransformFnCode = getStyleTagTransformFnCode;
142
+ exports.getdomAPI = getdomAPI;
143
+ exports.stringifyRequest = stringifyRequest;
144
+ var _path = _interopRequireDefault(__nccwpck_require__(17));
145
+ var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(962));
146
+ function _interopRequireDefault(obj) {
147
+ return obj && obj.__esModule ? obj : { default: obj };
148
+ }
149
+ function stringifyRequest(loaderContext, request) {
150
+ return JSON.stringify(
151
+ loaderContext.utils.contextify(loaderContext.context, request),
152
+ );
153
+ }
154
+ function getImportLinkAPICode(esModule, loaderContext) {
155
+ const modulePath = stringifyRequest(
156
+ loaderContext,
157
+ `!${_path.default.join(__dirname, "runtime/injectStylesIntoLinkTag.js")}`,
158
+ );
159
+ return esModule
160
+ ? `import API from ${modulePath};`
161
+ : `var API = require(${modulePath});`;
162
+ }
163
+ function getImportLinkContentCode(esModule, loaderContext, request) {
164
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
165
+ return esModule
166
+ ? `import content from ${modulePath};`
167
+ : `var content = require(${modulePath});`;
168
+ }
169
+ function getImportStyleAPICode(esModule, loaderContext) {
170
+ const modulePath = stringifyRequest(
171
+ loaderContext,
172
+ `!${_path.default.join(__dirname, "runtime/injectStylesIntoStyleTag.js")}`,
173
+ );
174
+ return esModule
175
+ ? `import API from ${modulePath};`
176
+ : `var API = require(${modulePath});`;
177
+ }
178
+ function getImportStyleDomAPICode(
179
+ esModule,
180
+ loaderContext,
181
+ isSingleton,
182
+ isAuto,
183
+ ) {
184
+ const styleAPI = stringifyRequest(
185
+ loaderContext,
186
+ `!${_path.default.join(__dirname, "runtime/styleDomAPI.js")}`,
187
+ );
188
+ const singletonAPI = stringifyRequest(
189
+ loaderContext,
190
+ `!${_path.default.join(__dirname, "runtime/singletonStyleDomAPI.js")}`,
191
+ );
192
+ if (isAuto) {
193
+ return esModule
194
+ ? `import domAPI from ${styleAPI};\n import domAPISingleton from ${singletonAPI};`
195
+ : `var domAPI = require(${styleAPI});\n var domAPISingleton = require(${singletonAPI});`;
196
+ }
197
+ return esModule
198
+ ? `import domAPI from ${isSingleton ? singletonAPI : styleAPI};`
199
+ : `var domAPI = require(${isSingleton ? singletonAPI : styleAPI});`;
200
+ }
201
+ function getImportStyleContentCode(esModule, loaderContext, request) {
202
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
203
+ return esModule
204
+ ? `import content, * as namedExport from ${modulePath};`
205
+ : `var content = require(${modulePath});`;
206
+ }
207
+ function getImportInsertBySelectorCode(
208
+ esModule,
209
+ loaderContext,
210
+ insertType,
211
+ options,
212
+ ) {
213
+ if (insertType === "module-path") {
214
+ const modulePath = stringifyRequest(
215
+ loaderContext,
216
+ `${options.insert}`,
217
+ );
218
+ loaderContext.addBuildDependency(options.insert);
219
+ return esModule
220
+ ? `import insertFn from ${modulePath};`
221
+ : `var insertFn = require(${modulePath});`;
222
+ }
223
+ const modulePath = stringifyRequest(
224
+ loaderContext,
225
+ `!${_path.default.join(__dirname, "runtime/insertBySelector.js")}`,
226
+ );
227
+ return esModule
228
+ ? `import insertFn from ${modulePath};`
229
+ : `var insertFn = require(${modulePath});`;
230
+ }
231
+ function getInsertOptionCode(insertType, options) {
232
+ if (insertType === "module-path") {
233
+ return `options.insert = insertFn;`;
234
+ }
235
+ const insert = options.insert
236
+ ? JSON.stringify(options.insert)
237
+ : '"head"';
238
+ return `options.insert = insertFn.bind(null, ${insert});`;
239
+ }
240
+ function getImportInsertStyleElementCode(esModule, loaderContext) {
241
+ const modulePath = stringifyRequest(
242
+ loaderContext,
243
+ `!${_path.default.join(__dirname, "runtime/insertStyleElement.js")}`,
244
+ );
245
+ return esModule
246
+ ? `import insertStyleElement from ${modulePath};`
247
+ : `var insertStyleElement = require(${modulePath});`;
248
+ }
249
+ function getStyleHmrCode(esModule, loaderContext, request, lazy) {
250
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
251
+ return `\nif (module.hot) {\n if (!content.locals || module.hot.invalidate) {\n var isEqualLocals = ${_isEqualLocals.default.toString()};\n var isNamedExport = ${esModule ? "!content.locals" : false};\n var oldLocals = isNamedExport ? namedExport : content.locals;\n\n module.hot.accept(\n ${modulePath},\n function () {\n ${esModule ? `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 ${lazy ? `if (update && refs > 0) {\n update(content);\n }` : `update(content);`}` : `content = require(${modulePath});\n\n content = content.__esModule ? content.default : content;\n\n ${lazy ? "" : `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 ${lazy ? `if (update && refs > 0) {\n update(content);\n }` : `update(content);`}`}\n }\n )\n }\n\n module.hot.dispose(function() {\n ${lazy ? `if (update) {\n update();\n }` : `update();`}\n });\n}\n`;
252
+ }
253
+ function getLinkHmrCode(esModule, loaderContext, request) {
254
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
255
+ return `\nif (module.hot) {\n module.hot.accept(\n ${modulePath},\n function() {\n ${esModule ? "update(content);" : `content = require(${modulePath});\n\n content = content.__esModule ? content.default : content;\n\n update(content);`}\n }\n );\n\n module.hot.dispose(function() {\n update();\n });\n}`;
256
+ }
257
+ function getdomAPI(isAuto) {
258
+ return isAuto ? "isOldIE() ? domAPISingleton : domAPI" : "domAPI";
259
+ }
260
+ function getImportIsOldIECode(esModule, loaderContext) {
261
+ const modulePath = stringifyRequest(
262
+ loaderContext,
263
+ `!${_path.default.join(__dirname, "runtime/isOldIE.js")}`,
264
+ );
265
+ return esModule
266
+ ? `import isOldIE from ${modulePath};`
267
+ : `var isOldIE = require(${modulePath});`;
268
+ }
269
+ function getStyleTagTransformFnCode(
270
+ esModule,
271
+ loaderContext,
272
+ options,
273
+ isSingleton,
274
+ ) {
275
+ if (isSingleton) {
276
+ return "";
277
+ }
278
+ if (typeof options.styleTagTransform !== "undefined") {
279
+ const modulePath = stringifyRequest(
280
+ loaderContext,
281
+ `${options.styleTagTransform}`,
282
+ );
283
+ loaderContext.addBuildDependency(options.styleTagTransform);
284
+ return esModule
285
+ ? `import styleTagTransformFn from ${modulePath};`
286
+ : `var styleTagTransformFn = require(${modulePath});`;
287
+ }
288
+ const modulePath = stringifyRequest(
289
+ loaderContext,
290
+ `!${_path.default.join(__dirname, "runtime/styleTagTransform.js")}`,
291
+ );
292
+ return esModule
293
+ ? `import styleTagTransformFn from ${modulePath};`
294
+ : `var styleTagTransformFn = require(${modulePath});`;
295
+ }
296
+ function getStyleTagTransformFn(options, isSingleton) {
297
+ return isSingleton
298
+ ? ""
299
+ : `options.styleTagTransform = styleTagTransformFn`;
300
+ }
301
+ function getExportStyleCode(esModule, loaderContext, request) {
302
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
303
+ return esModule
304
+ ? `export * from ${modulePath};\n export default content && content.locals ? content.locals : undefined;`
305
+ : "module.exports = content && content.locals || {};";
306
+ }
307
+ function getExportLazyStyleCode(esModule, loaderContext, request) {
308
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
309
+ return esModule
310
+ ? `export * from ${modulePath};\n export default exported;`
311
+ : "module.exports = exported;";
312
+ }
313
+ function getSetAttributesCode(esModule, loaderContext, options) {
314
+ let modulePath;
315
+ if (typeof options.attributes !== "undefined") {
316
+ modulePath =
317
+ options.attributes.nonce !== "undefined"
318
+ ? stringifyRequest(
319
+ loaderContext,
320
+ `!${_path.default.join(__dirname, "runtime/setAttributesWithAttributesAndNonce.js")}`,
321
+ )
322
+ : stringifyRequest(
323
+ loaderContext,
324
+ `!${_path.default.join(__dirname, "runtime/setAttributesWithAttributes.js")}`,
325
+ );
326
+ } else {
327
+ modulePath = stringifyRequest(
328
+ loaderContext,
329
+ `!${_path.default.join(__dirname, "runtime/setAttributesWithoutAttributes.js")}`,
330
+ );
331
+ }
332
+ return esModule
333
+ ? `import setAttributes from ${modulePath};`
334
+ : `var setAttributes = require(${modulePath});`;
335
+ }
336
+ },
337
+ 17: (module) => {
338
+ module.exports = require("path");
339
+ },
340
+ 877: (module) => {
341
+ module.exports = JSON.parse(
342
+ '{"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","type":"string"},"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","type":"string"}},"additionalProperties":false}',
343
+ );
344
+ },
345
+ };
346
+ var __webpack_module_cache__ = {};
347
+ function __nccwpck_require__(moduleId) {
348
+ var cachedModule = __webpack_module_cache__[moduleId];
349
+ if (cachedModule !== undefined) {
350
+ return cachedModule.exports;
351
+ }
352
+ var module = (__webpack_module_cache__[moduleId] = { exports: {} });
353
+ var threw = true;
354
+ try {
355
+ __webpack_modules__[moduleId](
356
+ module,
357
+ module.exports,
358
+ __nccwpck_require__,
359
+ );
360
+ threw = false;
361
+ } finally {
362
+ if (threw) delete __webpack_module_cache__[moduleId];
363
+ }
364
+ return module.exports;
365
+ }
366
+ if (typeof __nccwpck_require__ !== "undefined")
367
+ __nccwpck_require__.ab = __dirname + "/";
368
+ var __webpack_exports__ = __nccwpck_require__(994);
369
+ module.exports = __webpack_exports__;
370
+ })();
@@ -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
+ {"name":"style-loader","author":"Tobias Koppers @sokra","version":"4.0.0","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ module.exports = function (url, options) {
4
+ if (typeof document === "undefined") {
5
+ return function () {};
6
+ }
7
+ options = options || {};
8
+ options.attributes = typeof options.attributes === "object" ? options.attributes : {};
9
+ if (typeof options.attributes.nonce === "undefined") {
10
+ var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
11
+ if (nonce) {
12
+ options.attributes.nonce = nonce;
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,84 @@
1
+ "use strict";
2
+
3
+ var stylesInDOM = [];
4
+ function getIndexByIdentifier(identifier) {
5
+ var result = -1;
6
+ for (var i = 0; i < stylesInDOM.length; i++) {
7
+ if (stylesInDOM[i].identifier === identifier) {
8
+ result = i;
9
+ break;
10
+ }
11
+ }
12
+ return result;
13
+ }
14
+ function modulesToDom(list, options) {
15
+ var idCountMap = {};
16
+ var identifiers = [];
17
+ for (var i = 0; i < list.length; i++) {
18
+ var item = list[i];
19
+ var id = options.base ? item[0] + options.base : item[0];
20
+ var count = idCountMap[id] || 0;
21
+ var identifier = "".concat(id, " ").concat(count);
22
+ idCountMap[id] = count + 1;
23
+ var indexByIdentifier = getIndexByIdentifier(identifier);
24
+ var obj = {
25
+ css: item[1],
26
+ media: item[2],
27
+ sourceMap: item[3],
28
+ supports: item[4],
29
+ layer: item[5]
30
+ };
31
+ if (indexByIdentifier !== -1) {
32
+ stylesInDOM[indexByIdentifier].references++;
33
+ stylesInDOM[indexByIdentifier].updater(obj);
34
+ } else {
35
+ var updater = addElementStyle(obj, options);
36
+ options.byIndex = i;
37
+ stylesInDOM.splice(i, 0, {
38
+ identifier: identifier,
39
+ updater: updater,
40
+ references: 1
41
+ });
42
+ }
43
+ identifiers.push(identifier);
44
+ }
45
+ return identifiers;
46
+ }
47
+ function addElementStyle(obj, options) {
48
+ var api = options.domAPI(options);
49
+ api.update(obj);
50
+ var updater = function updater(newObj) {
51
+ if (newObj) {
52
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
53
+ return;
54
+ }
55
+ api.update(obj = newObj);
56
+ } else {
57
+ api.remove();
58
+ }
59
+ };
60
+ return updater;
61
+ }
62
+ module.exports = function (list, options) {
63
+ options = options || {};
64
+ list = list || [];
65
+ var lastIdentifiers = modulesToDom(list, options);
66
+ return function update(newList) {
67
+ newList = newList || [];
68
+ for (var i = 0; i < lastIdentifiers.length; i++) {
69
+ var identifier = lastIdentifiers[i];
70
+ var index = getIndexByIdentifier(identifier);
71
+ stylesInDOM[index].references--;
72
+ }
73
+ var newLastIdentifiers = modulesToDom(newList, options);
74
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
75
+ var _identifier = lastIdentifiers[_i];
76
+ var _index = getIndexByIdentifier(_identifier);
77
+ if (stylesInDOM[_index].references === 0) {
78
+ stylesInDOM[_index].updater();
79
+ stylesInDOM.splice(_index, 1);
80
+ }
81
+ }
82
+ lastIdentifiers = newLastIdentifiers;
83
+ };
84
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var memo = {};
4
+
5
+ /* istanbul ignore next */
6
+ function getTarget(target) {
7
+ if (typeof memo[target] === "undefined") {
8
+ var styleTarget = document.querySelector(target);
9
+
10
+ // Special case to return head of iframe instead of iframe itself
11
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
12
+ try {
13
+ // This will throw an exception if access to iframe is blocked
14
+ // due to cross-origin restrictions
15
+ styleTarget = styleTarget.contentDocument.head;
16
+ } catch (e) {
17
+ // istanbul ignore next
18
+ styleTarget = null;
19
+ }
20
+ }
21
+ memo[target] = styleTarget;
22
+ }
23
+ return memo[target];
24
+ }
25
+
26
+ /* istanbul ignore next */
27
+ function insertBySelector(insert, style) {
28
+ var target = getTarget(insert);
29
+ if (!target) {
30
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
31
+ }
32
+ target.appendChild(style);
33
+ }
34
+ module.exports = insertBySelector;
@@ -0,0 +1,10 @@
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
+ module.exports = insertStyleElement;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ function isEqualLocals(a, b, isNamedExport) {
4
+ if (!a && b || a && !b) {
5
+ return false;
6
+ }
7
+ var p;
8
+ for (p in a) {
9
+ if (isNamedExport && p === "default") {
10
+ // eslint-disable-next-line no-continue
11
+ continue;
12
+ }
13
+ if (a[p] !== b[p]) {
14
+ return false;
15
+ }
16
+ }
17
+ for (p in b) {
18
+ if (isNamedExport && p === "default") {
19
+ // eslint-disable-next-line no-continue
20
+ continue;
21
+ }
22
+ if (!a[p]) {
23
+ return false;
24
+ }
25
+ }
26
+ return true;
27
+ }
28
+ module.exports = isEqualLocals;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ var memo;
4
+
5
+ /* istanbul ignore next */
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(typeof window !== "undefined" && typeof document !== "undefined" && document.all && !window.atob);
14
+ }
15
+ return memo;
16
+ }
17
+ module.exports = isOldIE;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ /* istanbul ignore next */
4
+ function setAttributesWithoutAttributes(styleElement, attributes) {
5
+ var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
6
+ if (nonce) {
7
+ attributes.nonce = nonce;
8
+ }
9
+ Object.keys(attributes).forEach(function (key) {
10
+ styleElement.setAttribute(key, attributes[key]);
11
+ });
12
+ }
13
+ module.exports = setAttributesWithoutAttributes;
@@ -0,0 +1,9 @@
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
+ module.exports = setAttributesWithoutAttributes;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ /* istanbul ignore next */
4
+ function setAttributesWithoutAttributes(styleElement) {
5
+ var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
6
+ if (nonce) {
7
+ styleElement.setAttribute("nonce", nonce);
8
+ }
9
+ }
10
+ module.exports = setAttributesWithoutAttributes;