├── .babelrc ├── index.html ├── package.json ├── LICENSE ├── .gitignore ├── README.md ├── webpack.config.js ├── src └── index.js └── dist └── bundle.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "loose": true, 5 | "targets": { 6 | "browsers": ["last 2 versions", "ie >= 8"] 7 | } 8 | }] 9 | ], 10 | plugins: [ 11 | "transform-runtime", 12 | "transform-flow-strip-types" 13 | ] 14 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Title here 8 | 9 | 10 | 11 | 12 | 13 | 14 | 18 | 19 | 20 | 21 |

Heading 1

22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webpack3test", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "webpack-dev-server --color", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "author": "Ian Routledge", 11 | "license": "MIT", 12 | "devDependencies": { 13 | "babel-core": "^6.26.0", 14 | "babel-loader": "^7.1.2", 15 | "babel-plugin-syntax-flow": "^6.18.0", 16 | "babel-plugin-transform-flow-strip-types": "^6.22.0", 17 | "babel-plugin-transform-runtime": "^6.23.0", 18 | "babel-preset-env": "^1.6.0", 19 | "es3ify-loader": "^0.2.0", 20 | "webpack": "^3.6.0", 21 | "webpack-dev-server": "^2.9.1" 22 | }, 23 | "dependencies": { 24 | "babel-polyfill": "^6.26.0" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Ian Routledge 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (http://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # Typescript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PoC for using ES6, Flow and Webpack 3 in IE8 2 | 3 | > IE8? Are you crazy? 4 | 5 | Sadly, some of us still have to use IE8 for production apps. But we still want to use modern tooling. So this repo is an attempt to use ES6, Flow and Webpack in IE8. 6 | 7 | ## Usage 8 | 9 | ```sh 10 | npm i 11 | npm start 12 | ``` 13 | 14 | ## Notes 15 | 16 | - Uses [es3ify](https://github.com/sorrycc/es3ify-loader) as a post loader to convert ES5 to ES3 17 | - Uses [es5-shim](https://github.com/es-shims/es5-shim) from a CDN in the HTML source 18 | - `"loose": true` is needed in *.babelrc* to avoid `Object.defineProperty` 19 | - HMR needs to be turned off (adds `Object.defineProperty` that breaks IE8) 20 | - If you use [UglifyJsPlugin](https://github.com/webpack-contrib/uglifyjs-webpack-plugin) don't forget the `screw_ie8` option. 21 | 22 | ## Related reading 23 | 24 | - [Getting React and Webpack to Run on IE8 (If You Must)](https://medium.com/react-university/getting-react-to-run-on-ie8-bfc0a3e7543a) 25 | - [webpack2 doesn't support IE8](https://github.com/webpack/webpack/issues/3070) 26 | - [How to tell WebPack Uglify to support IE8](http://johnliu.net/blog/2017/1/how-to-tell-webpack-uglify-to-support-ie8) -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require("path"), 2 | webpack = require("webpack"); 3 | 4 | var screw_ie8 = false; // Same name as uglify's IE8 option. Turn this on to enable HMR. 5 | 6 | var plugins = []; 7 | 8 | // HMR doesn't work with IE8 9 | if(screw_ie8) { 10 | plugins.push(new webpack.HotModuleReplacementPlugin()); 11 | } 12 | 13 | module.exports = { 14 | entry: "./src/index.js", 15 | output: { 16 | filename: "bundle.js", 17 | path: path.resolve(__dirname, "dist"), 18 | publicPath: "/dist/" 19 | }, 20 | devServer: { 21 | host: "0.0.0.0", // Use this rather than localhost so we can access from a VM for browser testing 22 | contentBase: path.join(__dirname, "./"), 23 | publicPath: "/dist/", 24 | // HMR adds `Object.defineProperty` that breaks IE8 25 | hot: screw_ie8, 26 | inline: screw_ie8 27 | }, 28 | plugins: plugins, 29 | module: { 30 | rules: [ 31 | { 32 | test: /\.js$/, 33 | include: [ 34 | path.resolve(__dirname, "src") 35 | ], 36 | use: { 37 | loader: "babel-loader" 38 | } 39 | }, 40 | { 41 | test: /\.js$/, 42 | enforce: "post", 43 | loader: "es3ify-loader" 44 | } 45 | ] 46 | } 47 | }; -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | // Here be some random ES6 code, some taken from https://github.com/lukehoban/es6features 2 | 3 | if (typeof console === "undefined") { 4 | console = { log: () => {} }; 5 | } 6 | 7 | var evens: Array = [2, 4, 6, 8]; 8 | 9 | // Expression bodies 10 | var odds = evens.map(v => v + 1); 11 | var nums = evens.map((v, i) => v + i); 12 | 13 | var fives: Array = []; 14 | 15 | // Statement bodies 16 | nums.forEach((v: number) => { 17 | if (v % 5 === 0) 18 | fives.push(v); 19 | }); 20 | 21 | // Lexical this 22 | var bob = { 23 | _name: "Bob", 24 | _friends: [], 25 | printFriends() { 26 | this._friends.forEach(f => 27 | console.log(this._name + " knows " + f)); 28 | } 29 | }; 30 | 31 | // Lexical arguments 32 | function square() { 33 | let example = () => { 34 | let numbers = []; 35 | for (let number of arguments) { 36 | numbers.push(number * number); 37 | } 38 | 39 | return numbers; 40 | }; 41 | 42 | return example(); 43 | } 44 | 45 | var sqrs = square(2, 4, 7.5, 8, 11.5, 21); // returns: [4, 16, 56.25, 64, 132.25, 441] 46 | 47 | console.log(sqrs); 48 | 49 | var foo = {}; 50 | var a = foo.catch; 51 | 52 | document.getElementById("heading1").innerText = `hello ${ " test" }`; 53 | 54 | export default square; -------------------------------------------------------------------------------- /dist/bundle.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ function hotDisposeChunk(chunkId) { 3 | /******/ delete installedChunks[chunkId]; 4 | /******/ } 5 | /******/ var parentHotUpdateCallback = this["webpackHotUpdate"]; 6 | /******/ this["webpackHotUpdate"] = 7 | /******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars 8 | /******/ hotAddUpdateChunk(chunkId, moreModules); 9 | /******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules); 10 | /******/ } ; 11 | /******/ 12 | /******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars 13 | /******/ var head = document.getElementsByTagName("head")[0]; 14 | /******/ var script = document.createElement("script"); 15 | /******/ script.type = "text/javascript"; 16 | /******/ script.charset = "utf-8"; 17 | /******/ script.src = __webpack_require__.p + "" + chunkId + "." + hotCurrentHash + ".hot-update.js"; 18 | /******/ head.appendChild(script); 19 | /******/ } 20 | /******/ 21 | /******/ function hotDownloadManifest(requestTimeout) { // eslint-disable-line no-unused-vars 22 | /******/ requestTimeout = requestTimeout || 10000; 23 | /******/ return new Promise(function(resolve, reject) { 24 | /******/ if(typeof XMLHttpRequest === "undefined") 25 | /******/ return reject(new Error("No browser support")); 26 | /******/ try { 27 | /******/ var request = new XMLHttpRequest(); 28 | /******/ var requestPath = __webpack_require__.p + "" + hotCurrentHash + ".hot-update.json"; 29 | /******/ request.open("GET", requestPath, true); 30 | /******/ request.timeout = requestTimeout; 31 | /******/ request.send(null); 32 | /******/ } catch(err) { 33 | /******/ return reject(err); 34 | /******/ } 35 | /******/ request.onreadystatechange = function() { 36 | /******/ if(request.readyState !== 4) return; 37 | /******/ if(request.status === 0) { 38 | /******/ // timeout 39 | /******/ reject(new Error("Manifest request to " + requestPath + " timed out.")); 40 | /******/ } else if(request.status === 404) { 41 | /******/ // no update available 42 | /******/ resolve(); 43 | /******/ } else if(request.status !== 200 && request.status !== 304) { 44 | /******/ // other failure 45 | /******/ reject(new Error("Manifest request to " + requestPath + " failed.")); 46 | /******/ } else { 47 | /******/ // success 48 | /******/ try { 49 | /******/ var update = JSON.parse(request.responseText); 50 | /******/ } catch(e) { 51 | /******/ reject(e); 52 | /******/ return; 53 | /******/ } 54 | /******/ resolve(update); 55 | /******/ } 56 | /******/ }; 57 | /******/ }); 58 | /******/ } 59 | /******/ 60 | /******/ 61 | /******/ 62 | /******/ var hotApplyOnUpdate = true; 63 | /******/ var hotCurrentHash = "3a0df25fe8015aa285b8"; // eslint-disable-line no-unused-vars 64 | /******/ var hotRequestTimeout = 10000; 65 | /******/ var hotCurrentModuleData = {}; 66 | /******/ var hotCurrentChildModule; // eslint-disable-line no-unused-vars 67 | /******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars 68 | /******/ var hotCurrentParentsTemp = []; // eslint-disable-line no-unused-vars 69 | /******/ 70 | /******/ function hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars 71 | /******/ var me = installedModules[moduleId]; 72 | /******/ if(!me) return __webpack_require__; 73 | /******/ var fn = function(request) { 74 | /******/ if(me.hot.active) { 75 | /******/ if(installedModules[request]) { 76 | /******/ if(installedModules[request].parents.indexOf(moduleId) < 0) 77 | /******/ installedModules[request].parents.push(moduleId); 78 | /******/ } else { 79 | /******/ hotCurrentParents = [moduleId]; 80 | /******/ hotCurrentChildModule = request; 81 | /******/ } 82 | /******/ if(me.children.indexOf(request) < 0) 83 | /******/ me.children.push(request); 84 | /******/ } else { 85 | /******/ console.warn("[HMR] unexpected require(" + request + ") from disposed module " + moduleId); 86 | /******/ hotCurrentParents = []; 87 | /******/ } 88 | /******/ return __webpack_require__(request); 89 | /******/ }; 90 | /******/ var ObjectFactory = function ObjectFactory(name) { 91 | /******/ return { 92 | /******/ configurable: true, 93 | /******/ enumerable: true, 94 | /******/ get: function() { 95 | /******/ return __webpack_require__[name]; 96 | /******/ }, 97 | /******/ set: function(value) { 98 | /******/ __webpack_require__[name] = value; 99 | /******/ } 100 | /******/ }; 101 | /******/ }; 102 | /******/ for(var name in __webpack_require__) { 103 | /******/ if(Object.prototype.hasOwnProperty.call(__webpack_require__, name) && name !== "e") { 104 | /******/ Object.defineProperty(fn, name, ObjectFactory(name)); 105 | /******/ } 106 | /******/ } 107 | /******/ fn.e = function(chunkId) { 108 | /******/ if(hotStatus === "ready") 109 | /******/ hotSetStatus("prepare"); 110 | /******/ hotChunksLoading++; 111 | /******/ return __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) { 112 | /******/ finishChunkLoading(); 113 | /******/ throw err; 114 | /******/ }); 115 | /******/ 116 | /******/ function finishChunkLoading() { 117 | /******/ hotChunksLoading--; 118 | /******/ if(hotStatus === "prepare") { 119 | /******/ if(!hotWaitingFilesMap[chunkId]) { 120 | /******/ hotEnsureUpdateChunk(chunkId); 121 | /******/ } 122 | /******/ if(hotChunksLoading === 0 && hotWaitingFiles === 0) { 123 | /******/ hotUpdateDownloaded(); 124 | /******/ } 125 | /******/ } 126 | /******/ } 127 | /******/ }; 128 | /******/ return fn; 129 | /******/ } 130 | /******/ 131 | /******/ function hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars 132 | /******/ var hot = { 133 | /******/ // private stuff 134 | /******/ _acceptedDependencies: {}, 135 | /******/ _declinedDependencies: {}, 136 | /******/ _selfAccepted: false, 137 | /******/ _selfDeclined: false, 138 | /******/ _disposeHandlers: [], 139 | /******/ _main: hotCurrentChildModule !== moduleId, 140 | /******/ 141 | /******/ // Module API 142 | /******/ active: true, 143 | /******/ accept: function(dep, callback) { 144 | /******/ if(typeof dep === "undefined") 145 | /******/ hot._selfAccepted = true; 146 | /******/ else if(typeof dep === "function") 147 | /******/ hot._selfAccepted = dep; 148 | /******/ else if(typeof dep === "object") 149 | /******/ for(var i = 0; i < dep.length; i++) 150 | /******/ hot._acceptedDependencies[dep[i]] = callback || function() {}; 151 | /******/ else 152 | /******/ hot._acceptedDependencies[dep] = callback || function() {}; 153 | /******/ }, 154 | /******/ decline: function(dep) { 155 | /******/ if(typeof dep === "undefined") 156 | /******/ hot._selfDeclined = true; 157 | /******/ else if(typeof dep === "object") 158 | /******/ for(var i = 0; i < dep.length; i++) 159 | /******/ hot._declinedDependencies[dep[i]] = true; 160 | /******/ else 161 | /******/ hot._declinedDependencies[dep] = true; 162 | /******/ }, 163 | /******/ dispose: function(callback) { 164 | /******/ hot._disposeHandlers.push(callback); 165 | /******/ }, 166 | /******/ addDisposeHandler: function(callback) { 167 | /******/ hot._disposeHandlers.push(callback); 168 | /******/ }, 169 | /******/ removeDisposeHandler: function(callback) { 170 | /******/ var idx = hot._disposeHandlers.indexOf(callback); 171 | /******/ if(idx >= 0) hot._disposeHandlers.splice(idx, 1); 172 | /******/ }, 173 | /******/ 174 | /******/ // Management API 175 | /******/ check: hotCheck, 176 | /******/ apply: hotApply, 177 | /******/ status: function(l) { 178 | /******/ if(!l) return hotStatus; 179 | /******/ hotStatusHandlers.push(l); 180 | /******/ }, 181 | /******/ addStatusHandler: function(l) { 182 | /******/ hotStatusHandlers.push(l); 183 | /******/ }, 184 | /******/ removeStatusHandler: function(l) { 185 | /******/ var idx = hotStatusHandlers.indexOf(l); 186 | /******/ if(idx >= 0) hotStatusHandlers.splice(idx, 1); 187 | /******/ }, 188 | /******/ 189 | /******/ //inherit from previous dispose call 190 | /******/ data: hotCurrentModuleData[moduleId] 191 | /******/ }; 192 | /******/ hotCurrentChildModule = undefined; 193 | /******/ return hot; 194 | /******/ } 195 | /******/ 196 | /******/ var hotStatusHandlers = []; 197 | /******/ var hotStatus = "idle"; 198 | /******/ 199 | /******/ function hotSetStatus(newStatus) { 200 | /******/ hotStatus = newStatus; 201 | /******/ for(var i = 0; i < hotStatusHandlers.length; i++) 202 | /******/ hotStatusHandlers[i].call(null, newStatus); 203 | /******/ } 204 | /******/ 205 | /******/ // while downloading 206 | /******/ var hotWaitingFiles = 0; 207 | /******/ var hotChunksLoading = 0; 208 | /******/ var hotWaitingFilesMap = {}; 209 | /******/ var hotRequestedFilesMap = {}; 210 | /******/ var hotAvailableFilesMap = {}; 211 | /******/ var hotDeferred; 212 | /******/ 213 | /******/ // The update info 214 | /******/ var hotUpdate, hotUpdateNewHash; 215 | /******/ 216 | /******/ function toModuleId(id) { 217 | /******/ var isNumber = (+id) + "" === id; 218 | /******/ return isNumber ? +id : id; 219 | /******/ } 220 | /******/ 221 | /******/ function hotCheck(apply) { 222 | /******/ if(hotStatus !== "idle") throw new Error("check() is only allowed in idle status"); 223 | /******/ hotApplyOnUpdate = apply; 224 | /******/ hotSetStatus("check"); 225 | /******/ return hotDownloadManifest(hotRequestTimeout).then(function(update) { 226 | /******/ if(!update) { 227 | /******/ hotSetStatus("idle"); 228 | /******/ return null; 229 | /******/ } 230 | /******/ hotRequestedFilesMap = {}; 231 | /******/ hotWaitingFilesMap = {}; 232 | /******/ hotAvailableFilesMap = update.c; 233 | /******/ hotUpdateNewHash = update.h; 234 | /******/ 235 | /******/ hotSetStatus("prepare"); 236 | /******/ var promise = new Promise(function(resolve, reject) { 237 | /******/ hotDeferred = { 238 | /******/ resolve: resolve, 239 | /******/ reject: reject 240 | /******/ }; 241 | /******/ }); 242 | /******/ hotUpdate = {}; 243 | /******/ var chunkId = 0; 244 | /******/ { // eslint-disable-line no-lone-blocks 245 | /******/ /*globals chunkId */ 246 | /******/ hotEnsureUpdateChunk(chunkId); 247 | /******/ } 248 | /******/ if(hotStatus === "prepare" && hotChunksLoading === 0 && hotWaitingFiles === 0) { 249 | /******/ hotUpdateDownloaded(); 250 | /******/ } 251 | /******/ return promise; 252 | /******/ }); 253 | /******/ } 254 | /******/ 255 | /******/ function hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars 256 | /******/ if(!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId]) 257 | /******/ return; 258 | /******/ hotRequestedFilesMap[chunkId] = false; 259 | /******/ for(var moduleId in moreModules) { 260 | /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { 261 | /******/ hotUpdate[moduleId] = moreModules[moduleId]; 262 | /******/ } 263 | /******/ } 264 | /******/ if(--hotWaitingFiles === 0 && hotChunksLoading === 0) { 265 | /******/ hotUpdateDownloaded(); 266 | /******/ } 267 | /******/ } 268 | /******/ 269 | /******/ function hotEnsureUpdateChunk(chunkId) { 270 | /******/ if(!hotAvailableFilesMap[chunkId]) { 271 | /******/ hotWaitingFilesMap[chunkId] = true; 272 | /******/ } else { 273 | /******/ hotRequestedFilesMap[chunkId] = true; 274 | /******/ hotWaitingFiles++; 275 | /******/ hotDownloadUpdateChunk(chunkId); 276 | /******/ } 277 | /******/ } 278 | /******/ 279 | /******/ function hotUpdateDownloaded() { 280 | /******/ hotSetStatus("ready"); 281 | /******/ var deferred = hotDeferred; 282 | /******/ hotDeferred = null; 283 | /******/ if(!deferred) return; 284 | /******/ if(hotApplyOnUpdate) { 285 | /******/ // Wrap deferred object in Promise to mark it as a well-handled Promise to 286 | /******/ // avoid triggering uncaught exception warning in Chrome. 287 | /******/ // See https://bugs.chromium.org/p/chromium/issues/detail?id=465666 288 | /******/ Promise.resolve().then(function() { 289 | /******/ return hotApply(hotApplyOnUpdate); 290 | /******/ }).then( 291 | /******/ function(result) { 292 | /******/ deferred.resolve(result); 293 | /******/ }, 294 | /******/ function(err) { 295 | /******/ deferred.reject(err); 296 | /******/ } 297 | /******/ ); 298 | /******/ } else { 299 | /******/ var outdatedModules = []; 300 | /******/ for(var id in hotUpdate) { 301 | /******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) { 302 | /******/ outdatedModules.push(toModuleId(id)); 303 | /******/ } 304 | /******/ } 305 | /******/ deferred.resolve(outdatedModules); 306 | /******/ } 307 | /******/ } 308 | /******/ 309 | /******/ function hotApply(options) { 310 | /******/ if(hotStatus !== "ready") throw new Error("apply() is only allowed in ready status"); 311 | /******/ options = options || {}; 312 | /******/ 313 | /******/ var cb; 314 | /******/ var i; 315 | /******/ var j; 316 | /******/ var module; 317 | /******/ var moduleId; 318 | /******/ 319 | /******/ function getAffectedStuff(updateModuleId) { 320 | /******/ var outdatedModules = [updateModuleId]; 321 | /******/ var outdatedDependencies = {}; 322 | /******/ 323 | /******/ var queue = outdatedModules.slice().map(function(id) { 324 | /******/ return { 325 | /******/ chain: [id], 326 | /******/ id: id 327 | /******/ }; 328 | /******/ }); 329 | /******/ while(queue.length > 0) { 330 | /******/ var queueItem = queue.pop(); 331 | /******/ var moduleId = queueItem.id; 332 | /******/ var chain = queueItem.chain; 333 | /******/ module = installedModules[moduleId]; 334 | /******/ if(!module || module.hot._selfAccepted) 335 | /******/ continue; 336 | /******/ if(module.hot._selfDeclined) { 337 | /******/ return { 338 | /******/ type: "self-declined", 339 | /******/ chain: chain, 340 | /******/ moduleId: moduleId 341 | /******/ }; 342 | /******/ } 343 | /******/ if(module.hot._main) { 344 | /******/ return { 345 | /******/ type: "unaccepted", 346 | /******/ chain: chain, 347 | /******/ moduleId: moduleId 348 | /******/ }; 349 | /******/ } 350 | /******/ for(var i = 0; i < module.parents.length; i++) { 351 | /******/ var parentId = module.parents[i]; 352 | /******/ var parent = installedModules[parentId]; 353 | /******/ if(!parent) continue; 354 | /******/ if(parent.hot._declinedDependencies[moduleId]) { 355 | /******/ return { 356 | /******/ type: "declined", 357 | /******/ chain: chain.concat([parentId]), 358 | /******/ moduleId: moduleId, 359 | /******/ parentId: parentId 360 | /******/ }; 361 | /******/ } 362 | /******/ if(outdatedModules.indexOf(parentId) >= 0) continue; 363 | /******/ if(parent.hot._acceptedDependencies[moduleId]) { 364 | /******/ if(!outdatedDependencies[parentId]) 365 | /******/ outdatedDependencies[parentId] = []; 366 | /******/ addAllToSet(outdatedDependencies[parentId], [moduleId]); 367 | /******/ continue; 368 | /******/ } 369 | /******/ delete outdatedDependencies[parentId]; 370 | /******/ outdatedModules.push(parentId); 371 | /******/ queue.push({ 372 | /******/ chain: chain.concat([parentId]), 373 | /******/ id: parentId 374 | /******/ }); 375 | /******/ } 376 | /******/ } 377 | /******/ 378 | /******/ return { 379 | /******/ type: "accepted", 380 | /******/ moduleId: updateModuleId, 381 | /******/ outdatedModules: outdatedModules, 382 | /******/ outdatedDependencies: outdatedDependencies 383 | /******/ }; 384 | /******/ } 385 | /******/ 386 | /******/ function addAllToSet(a, b) { 387 | /******/ for(var i = 0; i < b.length; i++) { 388 | /******/ var item = b[i]; 389 | /******/ if(a.indexOf(item) < 0) 390 | /******/ a.push(item); 391 | /******/ } 392 | /******/ } 393 | /******/ 394 | /******/ // at begin all updates modules are outdated 395 | /******/ // the "outdated" status can propagate to parents if they don't accept the children 396 | /******/ var outdatedDependencies = {}; 397 | /******/ var outdatedModules = []; 398 | /******/ var appliedUpdate = {}; 399 | /******/ 400 | /******/ var warnUnexpectedRequire = function warnUnexpectedRequire() { 401 | /******/ console.warn("[HMR] unexpected require(" + result.moduleId + ") to disposed module"); 402 | /******/ }; 403 | /******/ 404 | /******/ for(var id in hotUpdate) { 405 | /******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) { 406 | /******/ moduleId = toModuleId(id); 407 | /******/ var result; 408 | /******/ if(hotUpdate[id]) { 409 | /******/ result = getAffectedStuff(moduleId); 410 | /******/ } else { 411 | /******/ result = { 412 | /******/ type: "disposed", 413 | /******/ moduleId: id 414 | /******/ }; 415 | /******/ } 416 | /******/ var abortError = false; 417 | /******/ var doApply = false; 418 | /******/ var doDispose = false; 419 | /******/ var chainInfo = ""; 420 | /******/ if(result.chain) { 421 | /******/ chainInfo = "\nUpdate propagation: " + result.chain.join(" -> "); 422 | /******/ } 423 | /******/ switch(result.type) { 424 | /******/ case "self-declined": 425 | /******/ if(options.onDeclined) 426 | /******/ options.onDeclined(result); 427 | /******/ if(!options.ignoreDeclined) 428 | /******/ abortError = new Error("Aborted because of self decline: " + result.moduleId + chainInfo); 429 | /******/ break; 430 | /******/ case "declined": 431 | /******/ if(options.onDeclined) 432 | /******/ options.onDeclined(result); 433 | /******/ if(!options.ignoreDeclined) 434 | /******/ abortError = new Error("Aborted because of declined dependency: " + result.moduleId + " in " + result.parentId + chainInfo); 435 | /******/ break; 436 | /******/ case "unaccepted": 437 | /******/ if(options.onUnaccepted) 438 | /******/ options.onUnaccepted(result); 439 | /******/ if(!options.ignoreUnaccepted) 440 | /******/ abortError = new Error("Aborted because " + moduleId + " is not accepted" + chainInfo); 441 | /******/ break; 442 | /******/ case "accepted": 443 | /******/ if(options.onAccepted) 444 | /******/ options.onAccepted(result); 445 | /******/ doApply = true; 446 | /******/ break; 447 | /******/ case "disposed": 448 | /******/ if(options.onDisposed) 449 | /******/ options.onDisposed(result); 450 | /******/ doDispose = true; 451 | /******/ break; 452 | /******/ default: 453 | /******/ throw new Error("Unexception type " + result.type); 454 | /******/ } 455 | /******/ if(abortError) { 456 | /******/ hotSetStatus("abort"); 457 | /******/ return Promise.reject(abortError); 458 | /******/ } 459 | /******/ if(doApply) { 460 | /******/ appliedUpdate[moduleId] = hotUpdate[moduleId]; 461 | /******/ addAllToSet(outdatedModules, result.outdatedModules); 462 | /******/ for(moduleId in result.outdatedDependencies) { 463 | /******/ if(Object.prototype.hasOwnProperty.call(result.outdatedDependencies, moduleId)) { 464 | /******/ if(!outdatedDependencies[moduleId]) 465 | /******/ outdatedDependencies[moduleId] = []; 466 | /******/ addAllToSet(outdatedDependencies[moduleId], result.outdatedDependencies[moduleId]); 467 | /******/ } 468 | /******/ } 469 | /******/ } 470 | /******/ if(doDispose) { 471 | /******/ addAllToSet(outdatedModules, [result.moduleId]); 472 | /******/ appliedUpdate[moduleId] = warnUnexpectedRequire; 473 | /******/ } 474 | /******/ } 475 | /******/ } 476 | /******/ 477 | /******/ // Store self accepted outdated modules to require them later by the module system 478 | /******/ var outdatedSelfAcceptedModules = []; 479 | /******/ for(i = 0; i < outdatedModules.length; i++) { 480 | /******/ moduleId = outdatedModules[i]; 481 | /******/ if(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted) 482 | /******/ outdatedSelfAcceptedModules.push({ 483 | /******/ module: moduleId, 484 | /******/ errorHandler: installedModules[moduleId].hot._selfAccepted 485 | /******/ }); 486 | /******/ } 487 | /******/ 488 | /******/ // Now in "dispose" phase 489 | /******/ hotSetStatus("dispose"); 490 | /******/ Object.keys(hotAvailableFilesMap).forEach(function(chunkId) { 491 | /******/ if(hotAvailableFilesMap[chunkId] === false) { 492 | /******/ hotDisposeChunk(chunkId); 493 | /******/ } 494 | /******/ }); 495 | /******/ 496 | /******/ var idx; 497 | /******/ var queue = outdatedModules.slice(); 498 | /******/ while(queue.length > 0) { 499 | /******/ moduleId = queue.pop(); 500 | /******/ module = installedModules[moduleId]; 501 | /******/ if(!module) continue; 502 | /******/ 503 | /******/ var data = {}; 504 | /******/ 505 | /******/ // Call dispose handlers 506 | /******/ var disposeHandlers = module.hot._disposeHandlers; 507 | /******/ for(j = 0; j < disposeHandlers.length; j++) { 508 | /******/ cb = disposeHandlers[j]; 509 | /******/ cb(data); 510 | /******/ } 511 | /******/ hotCurrentModuleData[moduleId] = data; 512 | /******/ 513 | /******/ // disable module (this disables requires from this module) 514 | /******/ module.hot.active = false; 515 | /******/ 516 | /******/ // remove module from cache 517 | /******/ delete installedModules[moduleId]; 518 | /******/ 519 | /******/ // when disposing there is no need to call dispose handler 520 | /******/ delete outdatedDependencies[moduleId]; 521 | /******/ 522 | /******/ // remove "parents" references from all children 523 | /******/ for(j = 0; j < module.children.length; j++) { 524 | /******/ var child = installedModules[module.children[j]]; 525 | /******/ if(!child) continue; 526 | /******/ idx = child.parents.indexOf(moduleId); 527 | /******/ if(idx >= 0) { 528 | /******/ child.parents.splice(idx, 1); 529 | /******/ } 530 | /******/ } 531 | /******/ } 532 | /******/ 533 | /******/ // remove outdated dependency from module children 534 | /******/ var dependency; 535 | /******/ var moduleOutdatedDependencies; 536 | /******/ for(moduleId in outdatedDependencies) { 537 | /******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) { 538 | /******/ module = installedModules[moduleId]; 539 | /******/ if(module) { 540 | /******/ moduleOutdatedDependencies = outdatedDependencies[moduleId]; 541 | /******/ for(j = 0; j < moduleOutdatedDependencies.length; j++) { 542 | /******/ dependency = moduleOutdatedDependencies[j]; 543 | /******/ idx = module.children.indexOf(dependency); 544 | /******/ if(idx >= 0) module.children.splice(idx, 1); 545 | /******/ } 546 | /******/ } 547 | /******/ } 548 | /******/ } 549 | /******/ 550 | /******/ // Not in "apply" phase 551 | /******/ hotSetStatus("apply"); 552 | /******/ 553 | /******/ hotCurrentHash = hotUpdateNewHash; 554 | /******/ 555 | /******/ // insert new code 556 | /******/ for(moduleId in appliedUpdate) { 557 | /******/ if(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) { 558 | /******/ modules[moduleId] = appliedUpdate[moduleId]; 559 | /******/ } 560 | /******/ } 561 | /******/ 562 | /******/ // call accept handlers 563 | /******/ var error = null; 564 | /******/ for(moduleId in outdatedDependencies) { 565 | /******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) { 566 | /******/ module = installedModules[moduleId]; 567 | /******/ if(module) { 568 | /******/ moduleOutdatedDependencies = outdatedDependencies[moduleId]; 569 | /******/ var callbacks = []; 570 | /******/ for(i = 0; i < moduleOutdatedDependencies.length; i++) { 571 | /******/ dependency = moduleOutdatedDependencies[i]; 572 | /******/ cb = module.hot._acceptedDependencies[dependency]; 573 | /******/ if(cb) { 574 | /******/ if(callbacks.indexOf(cb) >= 0) continue; 575 | /******/ callbacks.push(cb); 576 | /******/ } 577 | /******/ } 578 | /******/ for(i = 0; i < callbacks.length; i++) { 579 | /******/ cb = callbacks[i]; 580 | /******/ try { 581 | /******/ cb(moduleOutdatedDependencies); 582 | /******/ } catch(err) { 583 | /******/ if(options.onErrored) { 584 | /******/ options.onErrored({ 585 | /******/ type: "accept-errored", 586 | /******/ moduleId: moduleId, 587 | /******/ dependencyId: moduleOutdatedDependencies[i], 588 | /******/ error: err 589 | /******/ }); 590 | /******/ } 591 | /******/ if(!options.ignoreErrored) { 592 | /******/ if(!error) 593 | /******/ error = err; 594 | /******/ } 595 | /******/ } 596 | /******/ } 597 | /******/ } 598 | /******/ } 599 | /******/ } 600 | /******/ 601 | /******/ // Load self accepted modules 602 | /******/ for(i = 0; i < outdatedSelfAcceptedModules.length; i++) { 603 | /******/ var item = outdatedSelfAcceptedModules[i]; 604 | /******/ moduleId = item.module; 605 | /******/ hotCurrentParents = [moduleId]; 606 | /******/ try { 607 | /******/ __webpack_require__(moduleId); 608 | /******/ } catch(err) { 609 | /******/ if(typeof item.errorHandler === "function") { 610 | /******/ try { 611 | /******/ item.errorHandler(err); 612 | /******/ } catch(err2) { 613 | /******/ if(options.onErrored) { 614 | /******/ options.onErrored({ 615 | /******/ type: "self-accept-error-handler-errored", 616 | /******/ moduleId: moduleId, 617 | /******/ error: err2, 618 | /******/ orginalError: err, // TODO remove in webpack 4 619 | /******/ originalError: err 620 | /******/ }); 621 | /******/ } 622 | /******/ if(!options.ignoreErrored) { 623 | /******/ if(!error) 624 | /******/ error = err2; 625 | /******/ } 626 | /******/ if(!error) 627 | /******/ error = err; 628 | /******/ } 629 | /******/ } else { 630 | /******/ if(options.onErrored) { 631 | /******/ options.onErrored({ 632 | /******/ type: "self-accept-errored", 633 | /******/ moduleId: moduleId, 634 | /******/ error: err 635 | /******/ }); 636 | /******/ } 637 | /******/ if(!options.ignoreErrored) { 638 | /******/ if(!error) 639 | /******/ error = err; 640 | /******/ } 641 | /******/ } 642 | /******/ } 643 | /******/ } 644 | /******/ 645 | /******/ // handle errors in accept handlers and self accepted module load 646 | /******/ if(error) { 647 | /******/ hotSetStatus("fail"); 648 | /******/ return Promise.reject(error); 649 | /******/ } 650 | /******/ 651 | /******/ hotSetStatus("idle"); 652 | /******/ return new Promise(function(resolve) { 653 | /******/ resolve(outdatedModules); 654 | /******/ }); 655 | /******/ } 656 | /******/ 657 | /******/ // The module cache 658 | /******/ var installedModules = {}; 659 | /******/ 660 | /******/ // The require function 661 | /******/ function __webpack_require__(moduleId) { 662 | /******/ 663 | /******/ // Check if module is in cache 664 | /******/ if(installedModules[moduleId]) { 665 | /******/ return installedModules[moduleId].exports; 666 | /******/ } 667 | /******/ // Create a new module (and put it into the cache) 668 | /******/ var module = installedModules[moduleId] = { 669 | /******/ i: moduleId, 670 | /******/ l: false, 671 | /******/ exports: {}, 672 | /******/ hot: hotCreateModule(moduleId), 673 | /******/ parents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp), 674 | /******/ children: [] 675 | /******/ }; 676 | /******/ 677 | /******/ // Execute the module function 678 | /******/ modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId)); 679 | /******/ 680 | /******/ // Flag the module as loaded 681 | /******/ module.l = true; 682 | /******/ 683 | /******/ // Return the exports of the module 684 | /******/ return module.exports; 685 | /******/ } 686 | /******/ 687 | /******/ 688 | /******/ // expose the modules object (__webpack_modules__) 689 | /******/ __webpack_require__.m = modules; 690 | /******/ 691 | /******/ // expose the module cache 692 | /******/ __webpack_require__.c = installedModules; 693 | /******/ 694 | /******/ // define getter function for harmony exports 695 | /******/ __webpack_require__.d = function(exports, name, getter) { 696 | /******/ if(!__webpack_require__.o(exports, name)) { 697 | /******/ Object.defineProperty(exports, name, { 698 | /******/ configurable: false, 699 | /******/ enumerable: true, 700 | /******/ get: getter 701 | /******/ }); 702 | /******/ } 703 | /******/ }; 704 | /******/ 705 | /******/ // getDefaultExport function for compatibility with non-harmony modules 706 | /******/ __webpack_require__.n = function(module) { 707 | /******/ var getter = module && module.__esModule ? 708 | /******/ function getDefault() { return module['default']; } : 709 | /******/ function getModuleExports() { return module; }; 710 | /******/ __webpack_require__.d(getter, 'a', getter); 711 | /******/ return getter; 712 | /******/ }; 713 | /******/ 714 | /******/ // Object.prototype.hasOwnProperty.call 715 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 716 | /******/ 717 | /******/ // __webpack_public_path__ 718 | /******/ __webpack_require__.p = "/dist/"; 719 | /******/ 720 | /******/ // __webpack_hash__ 721 | /******/ __webpack_require__.h = function() { return hotCurrentHash; }; 722 | /******/ 723 | /******/ // Load entry module and return exports 724 | /******/ return hotCreateRequire(23)(__webpack_require__.s = 23); 725 | /******/ }) 726 | /************************************************************************/ 727 | /******/ ([ 728 | /* 0 */ 729 | /***/ (function(module, exports) { 730 | 731 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 732 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 733 | ? window : typeof self != 'undefined' && self.Math == Math ? self 734 | // eslint-disable-next-line no-new-func 735 | : Function('return this')(); 736 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 737 | 738 | 739 | /***/ }), 740 | /* 1 */ 741 | /***/ (function(module, exports, __webpack_require__) { 742 | 743 | var store = __webpack_require__(19)('wks'); 744 | var uid = __webpack_require__(20); 745 | var Symbol = __webpack_require__(0).Symbol; 746 | var USE_SYMBOL = typeof Symbol == 'function'; 747 | 748 | var $exports = module.exports = function (name) { 749 | return store[name] || (store[name] = 750 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 751 | }; 752 | 753 | $exports.store = store; 754 | 755 | 756 | /***/ }), 757 | /* 2 */ 758 | /***/ (function(module, exports, __webpack_require__) { 759 | 760 | var dP = __webpack_require__(10); 761 | var createDesc = __webpack_require__(18); 762 | module.exports = __webpack_require__(5) ? function (object, key, value) { 763 | return dP.f(object, key, createDesc(1, value)); 764 | } : function (object, key, value) { 765 | object[key] = value; 766 | return object; 767 | }; 768 | 769 | 770 | /***/ }), 771 | /* 3 */ 772 | /***/ (function(module, exports) { 773 | 774 | module.exports = {}; 775 | 776 | 777 | /***/ }), 778 | /* 4 */ 779 | /***/ (function(module, exports, __webpack_require__) { 780 | 781 | var isObject = __webpack_require__(11); 782 | module.exports = function (it) { 783 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 784 | return it; 785 | }; 786 | 787 | 788 | /***/ }), 789 | /* 5 */ 790 | /***/ (function(module, exports, __webpack_require__) { 791 | 792 | // Thank's IE8 for his funny defineProperty 793 | module.exports = !__webpack_require__(16)(function () { 794 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 795 | }); 796 | 797 | 798 | /***/ }), 799 | /* 6 */ 800 | /***/ (function(module, exports) { 801 | 802 | var hasOwnProperty = {}.hasOwnProperty; 803 | module.exports = function (it, key) { 804 | return hasOwnProperty.call(it, key); 805 | }; 806 | 807 | 808 | /***/ }), 809 | /* 7 */ 810 | /***/ (function(module, exports, __webpack_require__) { 811 | 812 | // to indexed object, toObject with fallback for non-array-like ES3 strings 813 | var IObject = __webpack_require__(30); 814 | var defined = __webpack_require__(8); 815 | module.exports = function (it) { 816 | return IObject(defined(it)); 817 | }; 818 | 819 | 820 | /***/ }), 821 | /* 8 */ 822 | /***/ (function(module, exports) { 823 | 824 | // 7.2.1 RequireObjectCoercible(argument) 825 | module.exports = function (it) { 826 | if (it == undefined) throw TypeError("Can't call method on " + it); 827 | return it; 828 | }; 829 | 830 | 831 | /***/ }), 832 | /* 9 */ 833 | /***/ (function(module, exports) { 834 | 835 | var core = module.exports = { version: '2.5.1' }; 836 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 837 | 838 | 839 | /***/ }), 840 | /* 10 */ 841 | /***/ (function(module, exports, __webpack_require__) { 842 | 843 | var anObject = __webpack_require__(4); 844 | var IE8_DOM_DEFINE = __webpack_require__(35); 845 | var toPrimitive = __webpack_require__(36); 846 | var dP = Object.defineProperty; 847 | 848 | exports.f = __webpack_require__(5) ? Object.defineProperty : function defineProperty(O, P, Attributes) { 849 | anObject(O); 850 | P = toPrimitive(P, true); 851 | anObject(Attributes); 852 | if (IE8_DOM_DEFINE) try { 853 | return dP(O, P, Attributes); 854 | } catch (e) { /* empty */ } 855 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 856 | if ('value' in Attributes) O[P] = Attributes.value; 857 | return O; 858 | }; 859 | 860 | 861 | /***/ }), 862 | /* 11 */ 863 | /***/ (function(module, exports) { 864 | 865 | module.exports = function (it) { 866 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 867 | }; 868 | 869 | 870 | /***/ }), 871 | /* 12 */ 872 | /***/ (function(module, exports) { 873 | 874 | // 7.1.4 ToInteger 875 | var ceil = Math.ceil; 876 | var floor = Math.floor; 877 | module.exports = function (it) { 878 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 879 | }; 880 | 881 | 882 | /***/ }), 883 | /* 13 */ 884 | /***/ (function(module, exports, __webpack_require__) { 885 | 886 | var shared = __webpack_require__(19)('keys'); 887 | var uid = __webpack_require__(20); 888 | module.exports = function (key) { 889 | return shared[key] || (shared[key] = uid(key)); 890 | }; 891 | 892 | 893 | /***/ }), 894 | /* 14 */ 895 | /***/ (function(module, exports) { 896 | 897 | var toString = {}.toString; 898 | 899 | module.exports = function (it) { 900 | return toString.call(it).slice(8, -1); 901 | }; 902 | 903 | 904 | /***/ }), 905 | /* 15 */ 906 | /***/ (function(module, exports, __webpack_require__) { 907 | 908 | "use strict"; 909 | 910 | var LIBRARY = __webpack_require__(31); 911 | var $export = __webpack_require__(32); 912 | var redefine = __webpack_require__(37); 913 | var hide = __webpack_require__(2); 914 | var has = __webpack_require__(6); 915 | var Iterators = __webpack_require__(3); 916 | var $iterCreate = __webpack_require__(38); 917 | var setToStringTag = __webpack_require__(22); 918 | var getPrototypeOf = __webpack_require__(47); 919 | var ITERATOR = __webpack_require__(1)('iterator'); 920 | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 921 | var FF_ITERATOR = '@@iterator'; 922 | var KEYS = 'keys'; 923 | var VALUES = 'values'; 924 | 925 | var returnThis = function () { return this; }; 926 | 927 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 928 | $iterCreate(Constructor, NAME, next); 929 | var getMethod = function (kind) { 930 | if (!BUGGY && kind in proto) return proto[kind]; 931 | switch (kind) { 932 | case KEYS: return function keys() { return new Constructor(this, kind); }; 933 | case VALUES: return function values() { return new Constructor(this, kind); }; 934 | } return function entries() { return new Constructor(this, kind); }; 935 | }; 936 | var TAG = NAME + ' Iterator'; 937 | var DEF_VALUES = DEFAULT == VALUES; 938 | var VALUES_BUG = false; 939 | var proto = Base.prototype; 940 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 941 | var $default = $native || getMethod(DEFAULT); 942 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 943 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 944 | var methods, key, IteratorPrototype; 945 | // Fix native 946 | if ($anyNative) { 947 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 948 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 949 | // Set @@toStringTag to native iterators 950 | setToStringTag(IteratorPrototype, TAG, true); 951 | // fix for some old engines 952 | if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); 953 | } 954 | } 955 | // fix Array#{values, @@iterator}.name in V8 / FF 956 | if (DEF_VALUES && $native && $native.name !== VALUES) { 957 | VALUES_BUG = true; 958 | $default = function values() { return $native.call(this); }; 959 | } 960 | // Define iterator 961 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 962 | hide(proto, ITERATOR, $default); 963 | } 964 | // Plug for library 965 | Iterators[NAME] = $default; 966 | Iterators[TAG] = returnThis; 967 | if (DEFAULT) { 968 | methods = { 969 | values: DEF_VALUES ? $default : getMethod(VALUES), 970 | keys: IS_SET ? $default : getMethod(KEYS), 971 | entries: $entries 972 | }; 973 | if (FORCED) for (key in methods) { 974 | if (!(key in proto)) redefine(proto, key, methods[key]); 975 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 976 | } 977 | return methods; 978 | }; 979 | 980 | 981 | /***/ }), 982 | /* 16 */ 983 | /***/ (function(module, exports) { 984 | 985 | module.exports = function (exec) { 986 | try { 987 | return !!exec(); 988 | } catch (e) { 989 | return true; 990 | } 991 | }; 992 | 993 | 994 | /***/ }), 995 | /* 17 */ 996 | /***/ (function(module, exports, __webpack_require__) { 997 | 998 | var isObject = __webpack_require__(11); 999 | var document = __webpack_require__(0).document; 1000 | // typeof document.createElement is 'object' in old IE 1001 | var is = isObject(document) && isObject(document.createElement); 1002 | module.exports = function (it) { 1003 | return is ? document.createElement(it) : {}; 1004 | }; 1005 | 1006 | 1007 | /***/ }), 1008 | /* 18 */ 1009 | /***/ (function(module, exports) { 1010 | 1011 | module.exports = function (bitmap, value) { 1012 | return { 1013 | enumerable: !(bitmap & 1), 1014 | configurable: !(bitmap & 2), 1015 | writable: !(bitmap & 4), 1016 | value: value 1017 | }; 1018 | }; 1019 | 1020 | 1021 | /***/ }), 1022 | /* 19 */ 1023 | /***/ (function(module, exports, __webpack_require__) { 1024 | 1025 | var global = __webpack_require__(0); 1026 | var SHARED = '__core-js_shared__'; 1027 | var store = global[SHARED] || (global[SHARED] = {}); 1028 | module.exports = function (key) { 1029 | return store[key] || (store[key] = {}); 1030 | }; 1031 | 1032 | 1033 | /***/ }), 1034 | /* 20 */ 1035 | /***/ (function(module, exports) { 1036 | 1037 | var id = 0; 1038 | var px = Math.random(); 1039 | module.exports = function (key) { 1040 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 1041 | }; 1042 | 1043 | 1044 | /***/ }), 1045 | /* 21 */ 1046 | /***/ (function(module, exports) { 1047 | 1048 | // IE 8- don't enum bug keys 1049 | module.exports = ( 1050 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 1051 | ).split(','); 1052 | 1053 | 1054 | /***/ }), 1055 | /* 22 */ 1056 | /***/ (function(module, exports, __webpack_require__) { 1057 | 1058 | var def = __webpack_require__(10).f; 1059 | var has = __webpack_require__(6); 1060 | var TAG = __webpack_require__(1)('toStringTag'); 1061 | 1062 | module.exports = function (it, tag, stat) { 1063 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 1064 | }; 1065 | 1066 | 1067 | /***/ }), 1068 | /* 23 */ 1069 | /***/ (function(module, exports, __webpack_require__) { 1070 | 1071 | "use strict"; 1072 | 1073 | 1074 | exports.__esModule = true; 1075 | 1076 | var _getIterator2 = __webpack_require__(24); 1077 | 1078 | var _getIterator3 = _interopRequireDefault(_getIterator2); 1079 | 1080 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } 1081 | 1082 | if (typeof console === "undefined") { 1083 | console = { log: function log() {} }; 1084 | } 1085 | 1086 | var evens = [2, 4, 6, 8]; 1087 | 1088 | // Expression bodies 1089 | var odds = evens.map(function (v) { 1090 | return v + 1; 1091 | }); 1092 | var nums = evens.map(function (v, i) { 1093 | return v + i; 1094 | }); 1095 | 1096 | var fives = []; 1097 | 1098 | // Statement bodies 1099 | nums.forEach(function (v) { 1100 | if (v % 5 === 0) fives.push(v); 1101 | }); 1102 | 1103 | // Lexical this 1104 | var bob = { 1105 | _name: "Bob", 1106 | _friends: [], 1107 | printFriends: function printFriends() { 1108 | var _this = this; 1109 | 1110 | this._friends.forEach(function (f) { 1111 | return console.log(_this._name + " knows " + f); 1112 | }); 1113 | } 1114 | }; 1115 | 1116 | // Lexical arguments 1117 | function square() { 1118 | var _arguments = arguments; 1119 | 1120 | var example = function example() { 1121 | var numbers = []; 1122 | for (var _iterator = _arguments, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3["default"])(_iterator);;) { 1123 | var _ref; 1124 | 1125 | if (_isArray) { 1126 | if (_i >= _iterator.length) break; 1127 | _ref = _iterator[_i++]; 1128 | } else { 1129 | _i = _iterator.next(); 1130 | if (_i.done) break; 1131 | _ref = _i.value; 1132 | } 1133 | 1134 | var number = _ref; 1135 | 1136 | numbers.push(number * number); 1137 | } 1138 | 1139 | return numbers; 1140 | }; 1141 | 1142 | return example(); 1143 | } 1144 | 1145 | var sqrs = square(2, 4, 7.5, 8, 11.5, 21); // returns: [4, 16, 56.25, 64, 132.25, 441] 1146 | 1147 | console.log(sqrs); 1148 | 1149 | var foo = {}; 1150 | var a = foo["catch"]; 1151 | 1152 | document.getElementById("heading1").innerText = "hello " + " test"; 1153 | 1154 | exports["default"] = square; 1155 | 1156 | /***/ }), 1157 | /* 24 */ 1158 | /***/ (function(module, exports, __webpack_require__) { 1159 | 1160 | module.exports = { "default": __webpack_require__(25), __esModule: true }; 1161 | 1162 | /***/ }), 1163 | /* 25 */ 1164 | /***/ (function(module, exports, __webpack_require__) { 1165 | 1166 | __webpack_require__(26); 1167 | __webpack_require__(49); 1168 | module.exports = __webpack_require__(51); 1169 | 1170 | 1171 | /***/ }), 1172 | /* 26 */ 1173 | /***/ (function(module, exports, __webpack_require__) { 1174 | 1175 | __webpack_require__(27); 1176 | var global = __webpack_require__(0); 1177 | var hide = __webpack_require__(2); 1178 | var Iterators = __webpack_require__(3); 1179 | var TO_STRING_TAG = __webpack_require__(1)('toStringTag'); 1180 | 1181 | var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 1182 | 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 1183 | 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 1184 | 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 1185 | 'TextTrackList,TouchList').split(','); 1186 | 1187 | for (var i = 0; i < DOMIterables.length; i++) { 1188 | var NAME = DOMIterables[i]; 1189 | var Collection = global[NAME]; 1190 | var proto = Collection && Collection.prototype; 1191 | if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 1192 | Iterators[NAME] = Iterators.Array; 1193 | } 1194 | 1195 | 1196 | /***/ }), 1197 | /* 27 */ 1198 | /***/ (function(module, exports, __webpack_require__) { 1199 | 1200 | "use strict"; 1201 | 1202 | var addToUnscopables = __webpack_require__(28); 1203 | var step = __webpack_require__(29); 1204 | var Iterators = __webpack_require__(3); 1205 | var toIObject = __webpack_require__(7); 1206 | 1207 | // 22.1.3.4 Array.prototype.entries() 1208 | // 22.1.3.13 Array.prototype.keys() 1209 | // 22.1.3.29 Array.prototype.values() 1210 | // 22.1.3.30 Array.prototype[@@iterator]() 1211 | module.exports = __webpack_require__(15)(Array, 'Array', function (iterated, kind) { 1212 | this._t = toIObject(iterated); // target 1213 | this._i = 0; // next index 1214 | this._k = kind; // kind 1215 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1216 | }, function () { 1217 | var O = this._t; 1218 | var kind = this._k; 1219 | var index = this._i++; 1220 | if (!O || index >= O.length) { 1221 | this._t = undefined; 1222 | return step(1); 1223 | } 1224 | if (kind == 'keys') return step(0, index); 1225 | if (kind == 'values') return step(0, O[index]); 1226 | return step(0, [index, O[index]]); 1227 | }, 'values'); 1228 | 1229 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1230 | Iterators.Arguments = Iterators.Array; 1231 | 1232 | addToUnscopables('keys'); 1233 | addToUnscopables('values'); 1234 | addToUnscopables('entries'); 1235 | 1236 | 1237 | /***/ }), 1238 | /* 28 */ 1239 | /***/ (function(module, exports) { 1240 | 1241 | module.exports = function () { /* empty */ }; 1242 | 1243 | 1244 | /***/ }), 1245 | /* 29 */ 1246 | /***/ (function(module, exports) { 1247 | 1248 | module.exports = function (done, value) { 1249 | return { value: value, done: !!done }; 1250 | }; 1251 | 1252 | 1253 | /***/ }), 1254 | /* 30 */ 1255 | /***/ (function(module, exports, __webpack_require__) { 1256 | 1257 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 1258 | var cof = __webpack_require__(14); 1259 | // eslint-disable-next-line no-prototype-builtins 1260 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 1261 | return cof(it) == 'String' ? it.split('') : Object(it); 1262 | }; 1263 | 1264 | 1265 | /***/ }), 1266 | /* 31 */ 1267 | /***/ (function(module, exports) { 1268 | 1269 | module.exports = true; 1270 | 1271 | 1272 | /***/ }), 1273 | /* 32 */ 1274 | /***/ (function(module, exports, __webpack_require__) { 1275 | 1276 | var global = __webpack_require__(0); 1277 | var core = __webpack_require__(9); 1278 | var ctx = __webpack_require__(33); 1279 | var hide = __webpack_require__(2); 1280 | var PROTOTYPE = 'prototype'; 1281 | 1282 | var $export = function (type, name, source) { 1283 | var IS_FORCED = type & $export.F; 1284 | var IS_GLOBAL = type & $export.G; 1285 | var IS_STATIC = type & $export.S; 1286 | var IS_PROTO = type & $export.P; 1287 | var IS_BIND = type & $export.B; 1288 | var IS_WRAP = type & $export.W; 1289 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 1290 | var expProto = exports[PROTOTYPE]; 1291 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; 1292 | var key, own, out; 1293 | if (IS_GLOBAL) source = name; 1294 | for (key in source) { 1295 | // contains in native 1296 | own = !IS_FORCED && target && target[key] !== undefined; 1297 | if (own && key in exports) continue; 1298 | // export native or passed 1299 | out = own ? target[key] : source[key]; 1300 | // prevent global pollution for namespaces 1301 | exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 1302 | // bind timers to global for call from export context 1303 | : IS_BIND && own ? ctx(out, global) 1304 | // wrap global constructors for prevent change them in library 1305 | : IS_WRAP && target[key] == out ? (function (C) { 1306 | var F = function (a, b, c) { 1307 | if (this instanceof C) { 1308 | switch (arguments.length) { 1309 | case 0: return new C(); 1310 | case 1: return new C(a); 1311 | case 2: return new C(a, b); 1312 | } return new C(a, b, c); 1313 | } return C.apply(this, arguments); 1314 | }; 1315 | F[PROTOTYPE] = C[PROTOTYPE]; 1316 | return F; 1317 | // make static versions for prototype methods 1318 | })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 1319 | // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 1320 | if (IS_PROTO) { 1321 | (exports.virtual || (exports.virtual = {}))[key] = out; 1322 | // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 1323 | if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); 1324 | } 1325 | } 1326 | }; 1327 | // type bitmap 1328 | $export.F = 1; // forced 1329 | $export.G = 2; // global 1330 | $export.S = 4; // static 1331 | $export.P = 8; // proto 1332 | $export.B = 16; // bind 1333 | $export.W = 32; // wrap 1334 | $export.U = 64; // safe 1335 | $export.R = 128; // real proto method for `library` 1336 | module.exports = $export; 1337 | 1338 | 1339 | /***/ }), 1340 | /* 33 */ 1341 | /***/ (function(module, exports, __webpack_require__) { 1342 | 1343 | // optional / simple context binding 1344 | var aFunction = __webpack_require__(34); 1345 | module.exports = function (fn, that, length) { 1346 | aFunction(fn); 1347 | if (that === undefined) return fn; 1348 | switch (length) { 1349 | case 1: return function (a) { 1350 | return fn.call(that, a); 1351 | }; 1352 | case 2: return function (a, b) { 1353 | return fn.call(that, a, b); 1354 | }; 1355 | case 3: return function (a, b, c) { 1356 | return fn.call(that, a, b, c); 1357 | }; 1358 | } 1359 | return function (/* ...args */) { 1360 | return fn.apply(that, arguments); 1361 | }; 1362 | }; 1363 | 1364 | 1365 | /***/ }), 1366 | /* 34 */ 1367 | /***/ (function(module, exports) { 1368 | 1369 | module.exports = function (it) { 1370 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1371 | return it; 1372 | }; 1373 | 1374 | 1375 | /***/ }), 1376 | /* 35 */ 1377 | /***/ (function(module, exports, __webpack_require__) { 1378 | 1379 | module.exports = !__webpack_require__(5) && !__webpack_require__(16)(function () { 1380 | return Object.defineProperty(__webpack_require__(17)('div'), 'a', { get: function () { return 7; } }).a != 7; 1381 | }); 1382 | 1383 | 1384 | /***/ }), 1385 | /* 36 */ 1386 | /***/ (function(module, exports, __webpack_require__) { 1387 | 1388 | // 7.1.1 ToPrimitive(input [, PreferredType]) 1389 | var isObject = __webpack_require__(11); 1390 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1391 | // and the second argument - flag - preferred type is a string 1392 | module.exports = function (it, S) { 1393 | if (!isObject(it)) return it; 1394 | var fn, val; 1395 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1396 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 1397 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1398 | throw TypeError("Can't convert object to primitive value"); 1399 | }; 1400 | 1401 | 1402 | /***/ }), 1403 | /* 37 */ 1404 | /***/ (function(module, exports, __webpack_require__) { 1405 | 1406 | module.exports = __webpack_require__(2); 1407 | 1408 | 1409 | /***/ }), 1410 | /* 38 */ 1411 | /***/ (function(module, exports, __webpack_require__) { 1412 | 1413 | "use strict"; 1414 | 1415 | var create = __webpack_require__(39); 1416 | var descriptor = __webpack_require__(18); 1417 | var setToStringTag = __webpack_require__(22); 1418 | var IteratorPrototype = {}; 1419 | 1420 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 1421 | __webpack_require__(2)(IteratorPrototype, __webpack_require__(1)('iterator'), function () { return this; }); 1422 | 1423 | module.exports = function (Constructor, NAME, next) { 1424 | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 1425 | setToStringTag(Constructor, NAME + ' Iterator'); 1426 | }; 1427 | 1428 | 1429 | /***/ }), 1430 | /* 39 */ 1431 | /***/ (function(module, exports, __webpack_require__) { 1432 | 1433 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 1434 | var anObject = __webpack_require__(4); 1435 | var dPs = __webpack_require__(40); 1436 | var enumBugKeys = __webpack_require__(21); 1437 | var IE_PROTO = __webpack_require__(13)('IE_PROTO'); 1438 | var Empty = function () { /* empty */ }; 1439 | var PROTOTYPE = 'prototype'; 1440 | 1441 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 1442 | var createDict = function () { 1443 | // Thrash, waste and sodomy: IE GC bug 1444 | var iframe = __webpack_require__(17)('iframe'); 1445 | var i = enumBugKeys.length; 1446 | var lt = '<'; 1447 | var gt = '>'; 1448 | var iframeDocument; 1449 | iframe.style.display = 'none'; 1450 | __webpack_require__(46).appendChild(iframe); 1451 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 1452 | // createDict = iframe.contentWindow.Object; 1453 | // html.removeChild(iframe); 1454 | iframeDocument = iframe.contentWindow.document; 1455 | iframeDocument.open(); 1456 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 1457 | iframeDocument.close(); 1458 | createDict = iframeDocument.F; 1459 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 1460 | return createDict(); 1461 | }; 1462 | 1463 | module.exports = Object.create || function create(O, Properties) { 1464 | var result; 1465 | if (O !== null) { 1466 | Empty[PROTOTYPE] = anObject(O); 1467 | result = new Empty(); 1468 | Empty[PROTOTYPE] = null; 1469 | // add "__proto__" for Object.getPrototypeOf polyfill 1470 | result[IE_PROTO] = O; 1471 | } else result = createDict(); 1472 | return Properties === undefined ? result : dPs(result, Properties); 1473 | }; 1474 | 1475 | 1476 | /***/ }), 1477 | /* 40 */ 1478 | /***/ (function(module, exports, __webpack_require__) { 1479 | 1480 | var dP = __webpack_require__(10); 1481 | var anObject = __webpack_require__(4); 1482 | var getKeys = __webpack_require__(41); 1483 | 1484 | module.exports = __webpack_require__(5) ? Object.defineProperties : function defineProperties(O, Properties) { 1485 | anObject(O); 1486 | var keys = getKeys(Properties); 1487 | var length = keys.length; 1488 | var i = 0; 1489 | var P; 1490 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 1491 | return O; 1492 | }; 1493 | 1494 | 1495 | /***/ }), 1496 | /* 41 */ 1497 | /***/ (function(module, exports, __webpack_require__) { 1498 | 1499 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1500 | var $keys = __webpack_require__(42); 1501 | var enumBugKeys = __webpack_require__(21); 1502 | 1503 | module.exports = Object.keys || function keys(O) { 1504 | return $keys(O, enumBugKeys); 1505 | }; 1506 | 1507 | 1508 | /***/ }), 1509 | /* 42 */ 1510 | /***/ (function(module, exports, __webpack_require__) { 1511 | 1512 | var has = __webpack_require__(6); 1513 | var toIObject = __webpack_require__(7); 1514 | var arrayIndexOf = __webpack_require__(43)(false); 1515 | var IE_PROTO = __webpack_require__(13)('IE_PROTO'); 1516 | 1517 | module.exports = function (object, names) { 1518 | var O = toIObject(object); 1519 | var i = 0; 1520 | var result = []; 1521 | var key; 1522 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1523 | // Don't enum bug & hidden keys 1524 | while (names.length > i) if (has(O, key = names[i++])) { 1525 | ~arrayIndexOf(result, key) || result.push(key); 1526 | } 1527 | return result; 1528 | }; 1529 | 1530 | 1531 | /***/ }), 1532 | /* 43 */ 1533 | /***/ (function(module, exports, __webpack_require__) { 1534 | 1535 | // false -> Array#indexOf 1536 | // true -> Array#includes 1537 | var toIObject = __webpack_require__(7); 1538 | var toLength = __webpack_require__(44); 1539 | var toAbsoluteIndex = __webpack_require__(45); 1540 | module.exports = function (IS_INCLUDES) { 1541 | return function ($this, el, fromIndex) { 1542 | var O = toIObject($this); 1543 | var length = toLength(O.length); 1544 | var index = toAbsoluteIndex(fromIndex, length); 1545 | var value; 1546 | // Array#includes uses SameValueZero equality algorithm 1547 | // eslint-disable-next-line no-self-compare 1548 | if (IS_INCLUDES && el != el) while (length > index) { 1549 | value = O[index++]; 1550 | // eslint-disable-next-line no-self-compare 1551 | if (value != value) return true; 1552 | // Array#indexOf ignores holes, Array#includes - not 1553 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 1554 | if (O[index] === el) return IS_INCLUDES || index || 0; 1555 | } return !IS_INCLUDES && -1; 1556 | }; 1557 | }; 1558 | 1559 | 1560 | /***/ }), 1561 | /* 44 */ 1562 | /***/ (function(module, exports, __webpack_require__) { 1563 | 1564 | // 7.1.15 ToLength 1565 | var toInteger = __webpack_require__(12); 1566 | var min = Math.min; 1567 | module.exports = function (it) { 1568 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1569 | }; 1570 | 1571 | 1572 | /***/ }), 1573 | /* 45 */ 1574 | /***/ (function(module, exports, __webpack_require__) { 1575 | 1576 | var toInteger = __webpack_require__(12); 1577 | var max = Math.max; 1578 | var min = Math.min; 1579 | module.exports = function (index, length) { 1580 | index = toInteger(index); 1581 | return index < 0 ? max(index + length, 0) : min(index, length); 1582 | }; 1583 | 1584 | 1585 | /***/ }), 1586 | /* 46 */ 1587 | /***/ (function(module, exports, __webpack_require__) { 1588 | 1589 | var document = __webpack_require__(0).document; 1590 | module.exports = document && document.documentElement; 1591 | 1592 | 1593 | /***/ }), 1594 | /* 47 */ 1595 | /***/ (function(module, exports, __webpack_require__) { 1596 | 1597 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 1598 | var has = __webpack_require__(6); 1599 | var toObject = __webpack_require__(48); 1600 | var IE_PROTO = __webpack_require__(13)('IE_PROTO'); 1601 | var ObjectProto = Object.prototype; 1602 | 1603 | module.exports = Object.getPrototypeOf || function (O) { 1604 | O = toObject(O); 1605 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 1606 | if (typeof O.constructor == 'function' && O instanceof O.constructor) { 1607 | return O.constructor.prototype; 1608 | } return O instanceof Object ? ObjectProto : null; 1609 | }; 1610 | 1611 | 1612 | /***/ }), 1613 | /* 48 */ 1614 | /***/ (function(module, exports, __webpack_require__) { 1615 | 1616 | // 7.1.13 ToObject(argument) 1617 | var defined = __webpack_require__(8); 1618 | module.exports = function (it) { 1619 | return Object(defined(it)); 1620 | }; 1621 | 1622 | 1623 | /***/ }), 1624 | /* 49 */ 1625 | /***/ (function(module, exports, __webpack_require__) { 1626 | 1627 | "use strict"; 1628 | 1629 | var $at = __webpack_require__(50)(true); 1630 | 1631 | // 21.1.3.27 String.prototype[@@iterator]() 1632 | __webpack_require__(15)(String, 'String', function (iterated) { 1633 | this._t = String(iterated); // target 1634 | this._i = 0; // next index 1635 | // 21.1.5.2.1 %StringIteratorPrototype%.next() 1636 | }, function () { 1637 | var O = this._t; 1638 | var index = this._i; 1639 | var point; 1640 | if (index >= O.length) return { value: undefined, done: true }; 1641 | point = $at(O, index); 1642 | this._i += point.length; 1643 | return { value: point, done: false }; 1644 | }); 1645 | 1646 | 1647 | /***/ }), 1648 | /* 50 */ 1649 | /***/ (function(module, exports, __webpack_require__) { 1650 | 1651 | var toInteger = __webpack_require__(12); 1652 | var defined = __webpack_require__(8); 1653 | // true -> String#at 1654 | // false -> String#codePointAt 1655 | module.exports = function (TO_STRING) { 1656 | return function (that, pos) { 1657 | var s = String(defined(that)); 1658 | var i = toInteger(pos); 1659 | var l = s.length; 1660 | var a, b; 1661 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 1662 | a = s.charCodeAt(i); 1663 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 1664 | ? TO_STRING ? s.charAt(i) : a 1665 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 1666 | }; 1667 | }; 1668 | 1669 | 1670 | /***/ }), 1671 | /* 51 */ 1672 | /***/ (function(module, exports, __webpack_require__) { 1673 | 1674 | var anObject = __webpack_require__(4); 1675 | var get = __webpack_require__(52); 1676 | module.exports = __webpack_require__(9).getIterator = function (it) { 1677 | var iterFn = get(it); 1678 | if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); 1679 | return anObject(iterFn.call(it)); 1680 | }; 1681 | 1682 | 1683 | /***/ }), 1684 | /* 52 */ 1685 | /***/ (function(module, exports, __webpack_require__) { 1686 | 1687 | var classof = __webpack_require__(53); 1688 | var ITERATOR = __webpack_require__(1)('iterator'); 1689 | var Iterators = __webpack_require__(3); 1690 | module.exports = __webpack_require__(9).getIteratorMethod = function (it) { 1691 | if (it != undefined) return it[ITERATOR] 1692 | || it['@@iterator'] 1693 | || Iterators[classof(it)]; 1694 | }; 1695 | 1696 | 1697 | /***/ }), 1698 | /* 53 */ 1699 | /***/ (function(module, exports, __webpack_require__) { 1700 | 1701 | // getting tag from 19.1.3.6 Object.prototype.toString() 1702 | var cof = __webpack_require__(14); 1703 | var TAG = __webpack_require__(1)('toStringTag'); 1704 | // ES3 wrong here 1705 | var ARG = cof(function () { return arguments; }()) == 'Arguments'; 1706 | 1707 | // fallback for IE11 Script Access Denied error 1708 | var tryGet = function (it, key) { 1709 | try { 1710 | return it[key]; 1711 | } catch (e) { /* empty */ } 1712 | }; 1713 | 1714 | module.exports = function (it) { 1715 | var O, T, B; 1716 | return it === undefined ? 'Undefined' : it === null ? 'Null' 1717 | // @@toStringTag case 1718 | : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T 1719 | // builtinTag case 1720 | : ARG ? cof(O) 1721 | // ES3 arguments fallback 1722 | : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 1723 | }; 1724 | 1725 | 1726 | /***/ }) 1727 | /******/ ]); --------------------------------------------------------------------------------