main.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /*
  2. * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
  3. * This devtool is neither made for production nor for readable output files.
  4. * It uses "eval()" calls to create a separate source file in the browser devtools.
  5. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
  6. * or disable the default devtool with "devtool: false".
  7. * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
  8. */
  9. /******/ (function() { // webpackBootstrap
  10. /******/ "use strict";
  11. /******/ var __webpack_modules__ = ({
  12. /***/ "./src/add.js":
  13. /*!********************!*\
  14. !*** ./src/add.js ***!
  15. \********************/
  16. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  17. eval("__webpack_require__.r(__webpack_exports__);\nfunction add(x,y){\r\n return x + y\r\n}\r\n\r\n/* harmony default export */ __webpack_exports__[\"default\"] = (add);\n\n//# sourceURL=webpack:///./src/add.js?");
  18. /***/ }),
  19. /***/ "./src/count.js":
  20. /*!**********************!*\
  21. !*** ./src/count.js ***!
  22. \**********************/
  23. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  24. eval("__webpack_require__.r(__webpack_exports__);\nfunction count(x,y){\r\n return x - y\r\n}\r\n\r\n/* harmony default export */ __webpack_exports__[\"default\"] = (count);\n\n//# sourceURL=webpack:///./src/count.js?");
  25. /***/ }),
  26. /***/ "./src/index.js":
  27. /*!**********************!*\
  28. !*** ./src/index.js ***!
  29. \**********************/
  30. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  31. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _add__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add */ \"./src/add.js\");\n/* harmony import */ var _count__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./count */ \"./src/count.js\");\n/* harmony import */ var $css_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! $css/index */ \"./src/css/index.css\");\n\r\n\r\n\r\n\r\nconsole.log('index.js')\r\n\r\nconsole.log((0,_add__WEBPACK_IMPORTED_MODULE_0__.default)(1,2))\r\n\r\nconsole.log((0,_count__WEBPACK_IMPORTED_MODULE_1__.default)(4,3))\n\n//# sourceURL=webpack:///./src/index.js?");
  32. /***/ }),
  33. /***/ "../node_modules/css-loader/dist/cjs.js!./src/css/index.css":
  34. /*!******************************************************************!*\
  35. !*** ../node_modules/css-loader/dist/cjs.js!./src/css/index.css ***!
  36. \******************************************************************/
  37. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"../node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);\n// Imports\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"body,html{\\r\\n background:red;\\r\\n}\", \"\"]);\n// Exports\n/* harmony default export */ __webpack_exports__[\"default\"] = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack:///./src/css/index.css?../node_modules/css-loader/dist/cjs.js");
  39. /***/ }),
  40. /***/ "../node_modules/css-loader/dist/runtime/api.js":
  41. /*!******************************************************!*\
  42. !*** ../node_modules/css-loader/dist/runtime/api.js ***!
  43. \******************************************************/
  44. /***/ (function(module) {
  45. eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === \"string\") {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \"\"]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\n//# sourceURL=webpack:///../node_modules/css-loader/dist/runtime/api.js?");
  46. /***/ }),
  47. /***/ "./src/css/index.css":
  48. /*!***************************!*\
  49. !*** ./src/css/index.css ***!
  50. \***************************/
  51. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  52. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"../node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"../node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"../node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"../node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_index_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js!./index.css */ \"../node_modules/css-loader/dist/cjs.js!./src/css/index.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_index_css__WEBPACK_IMPORTED_MODULE_6__.default, options);\n\n\n\n\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_css_loader_dist_cjs_js_index_css__WEBPACK_IMPORTED_MODULE_6__.default && _node_modules_css_loader_dist_cjs_js_index_css__WEBPACK_IMPORTED_MODULE_6__.default.locals ? _node_modules_css_loader_dist_cjs_js_index_css__WEBPACK_IMPORTED_MODULE_6__.default.locals : undefined);\n\n\n//# sourceURL=webpack:///./src/css/index.css?");
  53. /***/ }),
  54. /***/ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
  55. /*!*****************************************************************************!*\
  56. !*** ../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
  57. \*****************************************************************************/
  58. /***/ (function(module) {
  59. eval("\n\nvar stylesInDom = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDom.length; i++) {\n if (stylesInDom[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var index = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3]\n };\n\n if (index !== -1) {\n stylesInDom[index].references++;\n stylesInDom[index].updater(obj);\n } else {\n stylesInDom.push({\n identifier: identifier,\n updater: addStyle(obj, options),\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDom[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDom[_index].references === 0) {\n stylesInDom[_index].updater();\n\n stylesInDom.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack:///../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?");
  60. /***/ }),
  61. /***/ "../node_modules/style-loader/dist/runtime/insertBySelector.js":
  62. /*!*********************************************************************!*\
  63. !*** ../node_modules/style-loader/dist/runtime/insertBySelector.js ***!
  64. \*********************************************************************/
  65. /***/ (function(module) {
  66. eval("\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack:///../node_modules/style-loader/dist/runtime/insertBySelector.js?");
  67. /***/ }),
  68. /***/ "../node_modules/style-loader/dist/runtime/insertStyleElement.js":
  69. /*!***********************************************************************!*\
  70. !*** ../node_modules/style-loader/dist/runtime/insertStyleElement.js ***!
  71. \***********************************************************************/
  72. /***/ (function(module) {
  73. eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var style = document.createElement(\"style\");\n options.setAttributes(style, options.attributes);\n options.insert(style);\n return style;\n}\n\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack:///../node_modules/style-loader/dist/runtime/insertStyleElement.js?");
  74. /***/ }),
  75. /***/ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":
  76. /*!***********************************************************************************!*\
  77. !*** ../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***!
  78. \***********************************************************************************/
  79. /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
  80. eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(style) {\n var nonce = true ? __webpack_require__.nc : 0;\n\n if (nonce) {\n style.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack:///../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?");
  81. /***/ }),
  82. /***/ "../node_modules/style-loader/dist/runtime/styleDomAPI.js":
  83. /*!****************************************************************!*\
  84. !*** ../node_modules/style-loader/dist/runtime/styleDomAPI.js ***!
  85. \****************************************************************/
  86. /***/ (function(module) {
  87. eval("\n\n/* istanbul ignore next */\nfunction apply(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute(\"media\", media);\n } else {\n style.removeAttribute(\"media\");\n }\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, style);\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var style = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(style, options, obj);\n },\n remove: function remove() {\n removeStyleElement(style);\n }\n };\n}\n\nmodule.exports = domAPI;\n\n//# sourceURL=webpack:///../node_modules/style-loader/dist/runtime/styleDomAPI.js?");
  88. /***/ }),
  89. /***/ "../node_modules/style-loader/dist/runtime/styleTagTransform.js":
  90. /*!**********************************************************************!*\
  91. !*** ../node_modules/style-loader/dist/runtime/styleTagTransform.js ***!
  92. \**********************************************************************/
  93. /***/ (function(module) {
  94. eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, style) {\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack:///../node_modules/style-loader/dist/runtime/styleTagTransform.js?");
  95. /***/ })
  96. /******/ });
  97. /************************************************************************/
  98. /******/ // The module cache
  99. /******/ var __webpack_module_cache__ = {};
  100. /******/
  101. /******/ // The require function
  102. /******/ function __webpack_require__(moduleId) {
  103. /******/ // Check if module is in cache
  104. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  105. /******/ if (cachedModule !== undefined) {
  106. /******/ return cachedModule.exports;
  107. /******/ }
  108. /******/ // Create a new module (and put it into the cache)
  109. /******/ var module = __webpack_module_cache__[moduleId] = {
  110. /******/ id: moduleId,
  111. /******/ // no module.loaded needed
  112. /******/ exports: {}
  113. /******/ };
  114. /******/
  115. /******/ // Execute the module function
  116. /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
  117. /******/
  118. /******/ // Return the exports of the module
  119. /******/ return module.exports;
  120. /******/ }
  121. /******/
  122. /************************************************************************/
  123. /******/ /* webpack/runtime/compat get default export */
  124. /******/ !function() {
  125. /******/ // getDefaultExport function for compatibility with non-harmony modules
  126. /******/ __webpack_require__.n = function(module) {
  127. /******/ var getter = module && module.__esModule ?
  128. /******/ function() { return module['default']; } :
  129. /******/ function() { return module; };
  130. /******/ __webpack_require__.d(getter, { a: getter });
  131. /******/ return getter;
  132. /******/ };
  133. /******/ }();
  134. /******/
  135. /******/ /* webpack/runtime/define property getters */
  136. /******/ !function() {
  137. /******/ // define getter functions for harmony exports
  138. /******/ __webpack_require__.d = function(exports, definition) {
  139. /******/ for(var key in definition) {
  140. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  141. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  142. /******/ }
  143. /******/ }
  144. /******/ };
  145. /******/ }();
  146. /******/
  147. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  148. /******/ !function() {
  149. /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
  150. /******/ }();
  151. /******/
  152. /******/ /* webpack/runtime/make namespace object */
  153. /******/ !function() {
  154. /******/ // define __esModule on exports
  155. /******/ __webpack_require__.r = function(exports) {
  156. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  157. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  158. /******/ }
  159. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  160. /******/ };
  161. /******/ }();
  162. /******/
  163. /************************************************************************/
  164. /******/
  165. /******/ // startup
  166. /******/ // Load entry module and return exports
  167. /******/ // This entry module can't be inlined because the eval devtool is used.
  168. /******/ var __webpack_exports__ = __webpack_require__("./src/index.js");
  169. /******/
  170. /******/ })()
  171. ;