1 | | /******/ (function(modules) { // webpackBootstrap |
2 | | /******/ // The module cache |
3 | | /******/ var installedModules = {}; |
4 | | |
5 | | /******/ // The require function |
6 | | /******/ function __webpack_require__(moduleId) { |
7 | | |
8 | | /******/ // Check if module is in cache |
9 | | /******/ if(installedModules[moduleId]) |
10 | | /******/ return installedModules[moduleId].exports; |
11 | | |
12 | | /******/ // Create a new module (and put it into the cache) |
13 | | /******/ var module = installedModules[moduleId] = { |
14 | | /******/ exports: {}, |
15 | | /******/ id: moduleId, |
16 | | /******/ loaded: false |
17 | | /******/ }; |
18 | | |
19 | | /******/ // Execute the module function |
20 | | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
21 | | |
22 | | /******/ // Flag the module as loaded |
23 | | /******/ module.loaded = true; |
24 | | |
25 | | /******/ // Return the exports of the module |
26 | | /******/ return module.exports; |
27 | | /******/ } |
28 | | |
29 | | |
30 | | /******/ // expose the modules object (__webpack_modules__) |
31 | | /******/ __webpack_require__.m = modules; |
32 | | |
33 | | /******/ // expose the module cache |
34 | | /******/ __webpack_require__.c = installedModules; |
35 | | |
36 | | /******/ // __webpack_public_path__ |
37 | | /******/ __webpack_require__.p = ""; |
38 | | |
39 | | /******/ // Load entry module and return exports |
40 | | /******/ return __webpack_require__(0); |
41 | | /******/ }) |
42 | | /************************************************************************/ |
43 | | /******/ ([ |
44 | | /* 0 */ |
45 | | /***/ (function(module, exports, __webpack_require__) { |
46 | | |
47 | | __webpack_require__(1); |
48 | | module.exports = __webpack_require__(331); |
49 | | |
50 | | |
51 | | /***/ }), |
52 | | /* 1 */ |
53 | | /***/ (function(module, exports, __webpack_require__) { |
54 | | |
55 | | /* WEBPACK VAR INJECTION */(function(global) {"use strict"; |
56 | | |
57 | | __webpack_require__(2); |
58 | | |
59 | | __webpack_require__(327); |
60 | | |
61 | | __webpack_require__(328); |
62 | | |
63 | | if (global._babelPolyfill) { |
64 | | throw new Error("only one instance of babel-polyfill is allowed"); |
65 | | } |
66 | | global._babelPolyfill = true; |
67 | | |
68 | | var DEFINE_PROPERTY = "defineProperty"; |
69 | | function define(O, key, value) { |
70 | | O[key] || Object[DEFINE_PROPERTY](O, key, { |
71 | | writable: true, |
72 | | configurable: true, |
73 | | value: value |
74 | | }); |
75 | | } |
76 | | |
77 | | define(String.prototype, "padLeft", "".padStart); |
78 | | define(String.prototype, "padRight", "".padEnd); |
79 | | |
80 | | "pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) { |
81 | | [][key] && define(Array, key, Function.call.bind([][key])); |
82 | | }); |
83 | | /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) |
84 | | |
85 | | /***/ }), |
86 | | /* 2 */ |
87 | | /***/ (function(module, exports, __webpack_require__) { |
88 | | |
89 | | __webpack_require__(3); |
90 | | __webpack_require__(51); |
91 | | __webpack_require__(52); |
92 | | __webpack_require__(53); |
93 | | __webpack_require__(54); |
94 | | __webpack_require__(56); |
95 | | __webpack_require__(59); |
96 | | __webpack_require__(60); |
97 | | __webpack_require__(61); |
98 | | __webpack_require__(62); |
99 | | __webpack_require__(63); |
100 | | __webpack_require__(64); |
101 | | __webpack_require__(65); |
102 | | __webpack_require__(66); |
103 | | __webpack_require__(67); |
104 | | __webpack_require__(69); |
105 | | __webpack_require__(71); |
106 | | __webpack_require__(73); |
107 | | __webpack_require__(75); |
108 | | __webpack_require__(78); |
109 | | __webpack_require__(79); |
110 | | __webpack_require__(80); |
111 | | __webpack_require__(84); |
112 | | __webpack_require__(86); |
113 | | __webpack_require__(88); |
114 | | __webpack_require__(91); |
115 | | __webpack_require__(92); |
116 | | __webpack_require__(93); |
117 | | __webpack_require__(94); |
118 | | __webpack_require__(96); |
119 | | __webpack_require__(97); |
120 | | __webpack_require__(98); |
121 | | __webpack_require__(99); |
122 | | __webpack_require__(100); |
123 | | __webpack_require__(101); |
124 | | __webpack_require__(102); |
125 | | __webpack_require__(104); |
126 | | __webpack_require__(105); |
127 | | __webpack_require__(106); |
128 | | __webpack_require__(108); |
129 | | __webpack_require__(109); |
130 | | __webpack_require__(110); |
131 | | __webpack_require__(112); |
132 | | __webpack_require__(114); |
133 | | __webpack_require__(115); |
134 | | __webpack_require__(116); |
135 | | __webpack_require__(117); |
136 | | __webpack_require__(118); |
137 | | __webpack_require__(119); |
138 | | __webpack_require__(120); |
139 | | __webpack_require__(121); |
140 | | __webpack_require__(122); |
141 | | __webpack_require__(123); |
142 | | __webpack_require__(124); |
143 | | __webpack_require__(125); |
144 | | __webpack_require__(126); |
145 | | __webpack_require__(131); |
146 | | __webpack_require__(132); |
147 | | __webpack_require__(136); |
148 | | __webpack_require__(137); |
149 | | __webpack_require__(138); |
150 | | __webpack_require__(139); |
151 | | __webpack_require__(141); |
152 | | __webpack_require__(142); |
153 | | __webpack_require__(143); |
154 | | __webpack_require__(144); |
155 | | __webpack_require__(145); |
156 | | __webpack_require__(146); |
157 | | __webpack_require__(147); |
158 | | __webpack_require__(148); |
159 | | __webpack_require__(149); |
160 | | __webpack_require__(150); |
161 | | __webpack_require__(151); |
162 | | __webpack_require__(152); |
163 | | __webpack_require__(153); |
164 | | __webpack_require__(154); |
165 | | __webpack_require__(155); |
166 | | __webpack_require__(157); |
167 | | __webpack_require__(158); |
168 | | __webpack_require__(160); |
169 | | __webpack_require__(161); |
170 | | __webpack_require__(167); |
171 | | __webpack_require__(168); |
172 | | __webpack_require__(170); |
173 | | __webpack_require__(171); |
174 | | __webpack_require__(172); |
175 | | __webpack_require__(176); |
176 | | __webpack_require__(177); |
177 | | __webpack_require__(178); |
178 | | __webpack_require__(179); |
179 | | __webpack_require__(180); |
180 | | __webpack_require__(182); |
181 | | __webpack_require__(183); |
182 | | __webpack_require__(184); |
183 | | __webpack_require__(185); |
184 | | __webpack_require__(188); |
185 | | __webpack_require__(190); |
186 | | __webpack_require__(191); |
187 | | __webpack_require__(192); |
188 | | __webpack_require__(194); |
189 | | __webpack_require__(196); |
190 | | __webpack_require__(198); |
191 | | __webpack_require__(200); |
192 | | __webpack_require__(201); |
193 | | __webpack_require__(202); |
194 | | __webpack_require__(206); |
195 | | __webpack_require__(207); |
196 | | __webpack_require__(208); |
197 | | __webpack_require__(210); |
198 | | __webpack_require__(220); |
199 | | __webpack_require__(224); |
200 | | __webpack_require__(225); |
201 | | __webpack_require__(227); |
202 | | __webpack_require__(228); |
203 | | __webpack_require__(232); |
204 | | __webpack_require__(233); |
205 | | __webpack_require__(235); |
206 | | __webpack_require__(236); |
207 | | __webpack_require__(237); |
208 | | __webpack_require__(238); |
209 | | __webpack_require__(239); |
210 | | __webpack_require__(240); |
211 | | __webpack_require__(241); |
212 | | __webpack_require__(242); |
213 | | __webpack_require__(243); |
214 | | __webpack_require__(244); |
215 | | __webpack_require__(245); |
216 | | __webpack_require__(246); |
217 | | __webpack_require__(247); |
218 | | __webpack_require__(248); |
219 | | __webpack_require__(249); |
220 | | __webpack_require__(250); |
221 | | __webpack_require__(251); |
222 | | __webpack_require__(252); |
223 | | __webpack_require__(253); |
224 | | __webpack_require__(255); |
225 | | __webpack_require__(256); |
226 | | __webpack_require__(257); |
227 | | __webpack_require__(258); |
228 | | __webpack_require__(259); |
229 | | __webpack_require__(261); |
230 | | __webpack_require__(262); |
231 | | __webpack_require__(263); |
232 | | __webpack_require__(265); |
233 | | __webpack_require__(266); |
234 | | __webpack_require__(267); |
235 | | __webpack_require__(268); |
236 | | __webpack_require__(269); |
237 | | __webpack_require__(270); |
238 | | __webpack_require__(271); |
239 | | __webpack_require__(272); |
240 | | __webpack_require__(274); |
241 | | __webpack_require__(275); |
242 | | __webpack_require__(277); |
243 | | __webpack_require__(278); |
244 | | __webpack_require__(279); |
245 | | __webpack_require__(280); |
246 | | __webpack_require__(283); |
247 | | __webpack_require__(284); |
248 | | __webpack_require__(286); |
249 | | __webpack_require__(287); |
250 | | __webpack_require__(288); |
251 | | __webpack_require__(289); |
252 | | __webpack_require__(291); |
253 | | __webpack_require__(292); |
254 | | __webpack_require__(293); |
255 | | __webpack_require__(294); |
256 | | __webpack_require__(295); |
257 | | __webpack_require__(296); |
258 | | __webpack_require__(297); |
259 | | __webpack_require__(298); |
260 | | __webpack_require__(299); |
261 | | __webpack_require__(300); |
262 | | __webpack_require__(302); |
263 | | __webpack_require__(303); |
264 | | __webpack_require__(304); |
265 | | __webpack_require__(305); |
266 | | __webpack_require__(306); |
267 | | __webpack_require__(307); |
268 | | __webpack_require__(308); |
269 | | __webpack_require__(309); |
270 | | __webpack_require__(310); |
271 | | __webpack_require__(311); |
272 | | __webpack_require__(312); |
273 | | __webpack_require__(314); |
274 | | __webpack_require__(315); |
275 | | __webpack_require__(316); |
276 | | __webpack_require__(317); |
277 | | __webpack_require__(318); |
278 | | __webpack_require__(319); |
279 | | __webpack_require__(320); |
280 | | __webpack_require__(321); |
281 | | __webpack_require__(322); |
282 | | __webpack_require__(323); |
283 | | __webpack_require__(324); |
284 | | __webpack_require__(325); |
285 | | __webpack_require__(326); |
286 | | module.exports = __webpack_require__(9); |
287 | | |
288 | | |
289 | | /***/ }), |
290 | | /* 3 */ |
291 | | /***/ (function(module, exports, __webpack_require__) { |
292 | | |
293 | | 'use strict'; |
294 | | // ECMAScript 6 symbols shim |
295 | | var global = __webpack_require__(4); |
296 | | var has = __webpack_require__(5); |
297 | | var DESCRIPTORS = __webpack_require__(6); |
298 | | var $export = __webpack_require__(8); |
299 | | var redefine = __webpack_require__(18); |
300 | | var META = __webpack_require__(22).KEY; |
301 | | var $fails = __webpack_require__(7); |
302 | | var shared = __webpack_require__(23); |
303 | | var setToStringTag = __webpack_require__(25); |
304 | | var uid = __webpack_require__(19); |
305 | | var wks = __webpack_require__(26); |
306 | | var wksExt = __webpack_require__(27); |
307 | | var wksDefine = __webpack_require__(28); |
308 | | var enumKeys = __webpack_require__(29); |
309 | | var isArray = __webpack_require__(44); |
310 | | var anObject = __webpack_require__(12); |
311 | | var isObject = __webpack_require__(13); |
312 | | var toIObject = __webpack_require__(32); |
313 | | var toPrimitive = __webpack_require__(16); |
314 | | var createDesc = __webpack_require__(17); |
315 | | var _create = __webpack_require__(45); |
316 | | var gOPNExt = __webpack_require__(48); |
317 | | var $GOPD = __webpack_require__(50); |
318 | | var $DP = __webpack_require__(11); |
319 | | var $keys = __webpack_require__(30); |
320 | | var gOPD = $GOPD.f; |
321 | | var dP = $DP.f; |
322 | | var gOPN = gOPNExt.f; |
323 | | var $Symbol = global.Symbol; |
324 | | var $JSON = global.JSON; |
325 | | var _stringify = $JSON && $JSON.stringify; |
326 | | var PROTOTYPE = 'prototype'; |
327 | | var HIDDEN = wks('_hidden'); |
328 | | var TO_PRIMITIVE = wks('toPrimitive'); |
329 | | var isEnum = {}.propertyIsEnumerable; |
330 | | var SymbolRegistry = shared('symbol-registry'); |
331 | | var AllSymbols = shared('symbols'); |
332 | | var OPSymbols = shared('op-symbols'); |
333 | | var ObjectProto = Object[PROTOTYPE]; |
334 | | var USE_NATIVE = typeof $Symbol == 'function'; |
335 | | var QObject = global.QObject; |
336 | | // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 |
337 | | var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; |
338 | | |
339 | | // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 |
340 | | var setSymbolDesc = DESCRIPTORS && $fails(function () { |
341 | | return _create(dP({}, 'a', { |
342 | | get: function () { return dP(this, 'a', { value: 7 }).a; } |
343 | | })).a != 7; |
344 | | }) ? function (it, key, D) { |
345 | | var protoDesc = gOPD(ObjectProto, key); |
346 | | if (protoDesc) delete ObjectProto[key]; |
347 | | dP(it, key, D); |
348 | | if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); |
349 | | } : dP; |
350 | | |
351 | | var wrap = function (tag) { |
352 | | var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); |
353 | | sym._k = tag; |
354 | | return sym; |
355 | | }; |
356 | | |
357 | | var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { |
358 | | return typeof it == 'symbol'; |
359 | | } : function (it) { |
360 | | return it instanceof $Symbol; |
361 | | }; |
362 | | |
363 | | var $defineProperty = function defineProperty(it, key, D) { |
364 | | if (it === ObjectProto) $defineProperty(OPSymbols, key, D); |
365 | | anObject(it); |
366 | | key = toPrimitive(key, true); |
367 | | anObject(D); |
368 | | if (has(AllSymbols, key)) { |
369 | | if (!D.enumerable) { |
370 | | if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); |
371 | | it[HIDDEN][key] = true; |
372 | | } else { |
373 | | if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; |
374 | | D = _create(D, { enumerable: createDesc(0, false) }); |
375 | | } return setSymbolDesc(it, key, D); |
376 | | } return dP(it, key, D); |
377 | | }; |
378 | | var $defineProperties = function defineProperties(it, P) { |
379 | | anObject(it); |
380 | | var keys = enumKeys(P = toIObject(P)); |
381 | | var i = 0; |
382 | | var l = keys.length; |
383 | | var key; |
384 | | while (l > i) $defineProperty(it, key = keys[i++], P[key]); |
385 | | return it; |
386 | | }; |
387 | | var $create = function create(it, P) { |
388 | | return P === undefined ? _create(it) : $defineProperties(_create(it), P); |
389 | | }; |
390 | | var $propertyIsEnumerable = function propertyIsEnumerable(key) { |
391 | | var E = isEnum.call(this, key = toPrimitive(key, true)); |
392 | | if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; |
393 | | return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; |
394 | | }; |
395 | | var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { |
396 | | it = toIObject(it); |
397 | | key = toPrimitive(key, true); |
398 | | if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; |
399 | | var D = gOPD(it, key); |
400 | | if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; |
401 | | return D; |
402 | | }; |
403 | | var $getOwnPropertyNames = function getOwnPropertyNames(it) { |
404 | | var names = gOPN(toIObject(it)); |
405 | | var result = []; |
406 | | var i = 0; |
407 | | var key; |
408 | | while (names.length > i) { |
409 | | if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); |
410 | | } return result; |
411 | | }; |
412 | | var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { |
413 | | var IS_OP = it === ObjectProto; |
414 | | var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); |
415 | | var result = []; |
416 | | var i = 0; |
417 | | var key; |
418 | | while (names.length > i) { |
419 | | if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); |
420 | | } return result; |
421 | | }; |
422 | | |
423 | | // 19.4.1.1 Symbol([description]) |
424 | | if (!USE_NATIVE) { |
425 | | $Symbol = function Symbol() { |
426 | | if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); |
427 | | var tag = uid(arguments.length > 0 ? arguments[0] : undefined); |
428 | | var $set = function (value) { |
429 | | if (this === ObjectProto) $set.call(OPSymbols, value); |
430 | | if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; |
431 | | setSymbolDesc(this, tag, createDesc(1, value)); |
432 | | }; |
433 | | if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); |
434 | | return wrap(tag); |
435 | | }; |
436 | | redefine($Symbol[PROTOTYPE], 'toString', function toString() { |
437 | | return this._k; |
438 | | }); |
439 | | |
440 | | $GOPD.f = $getOwnPropertyDescriptor; |
441 | | $DP.f = $defineProperty; |
442 | | __webpack_require__(49).f = gOPNExt.f = $getOwnPropertyNames; |
443 | | __webpack_require__(43).f = $propertyIsEnumerable; |
444 | | __webpack_require__(42).f = $getOwnPropertySymbols; |
445 | | |
446 | | if (DESCRIPTORS && !__webpack_require__(24)) { |
447 | | redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); |
448 | | } |
449 | | |
450 | | wksExt.f = function (name) { |
451 | | return wrap(wks(name)); |
452 | | }; |
453 | | } |
454 | | |
455 | | $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); |
456 | | |
457 | | for (var es6Symbols = ( |
458 | | // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 |
459 | | 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' |
460 | | ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); |
461 | | |
462 | | for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); |
463 | | |
464 | | $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { |
465 | | // 19.4.2.1 Symbol.for(key) |
466 | | 'for': function (key) { |
467 | | return has(SymbolRegistry, key += '') |
468 | | ? SymbolRegistry[key] |
469 | | : SymbolRegistry[key] = $Symbol(key); |
470 | | }, |
471 | | // 19.4.2.5 Symbol.keyFor(sym) |
472 | | keyFor: function keyFor(sym) { |
473 | | if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); |
474 | | for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; |
475 | | }, |
476 | | useSetter: function () { setter = true; }, |
477 | | useSimple: function () { setter = false; } |
478 | | }); |
479 | | |
480 | | $export($export.S + $export.F * !USE_NATIVE, 'Object', { |
481 | | // 19.1.2.2 Object.create(O [, Properties]) |
482 | | create: $create, |
483 | | // 19.1.2.4 Object.defineProperty(O, P, Attributes) |
484 | | defineProperty: $defineProperty, |
485 | | // 19.1.2.3 Object.defineProperties(O, Properties) |
486 | | defineProperties: $defineProperties, |
487 | | // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) |
488 | | getOwnPropertyDescriptor: $getOwnPropertyDescriptor, |
489 | | // 19.1.2.7 Object.getOwnPropertyNames(O) |
490 | | getOwnPropertyNames: $getOwnPropertyNames, |
491 | | // 19.1.2.8 Object.getOwnPropertySymbols(O) |
492 | | getOwnPropertySymbols: $getOwnPropertySymbols |
493 | | }); |
494 | | |
495 | | // 24.3.2 JSON.stringify(value [, replacer [, space]]) |
496 | | $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { |
497 | | var S = $Symbol(); |
498 | | // MS Edge converts symbol values to JSON as {} |
499 | | // WebKit converts symbol values to JSON as null |
500 | | // V8 throws on boxed symbols |
501 | | return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; |
502 | | })), 'JSON', { |
503 | | stringify: function stringify(it) { |
504 | | var args = [it]; |
505 | | var i = 1; |
506 | | var replacer, $replacer; |
507 | | while (arguments.length > i) args.push(arguments[i++]); |
508 | | $replacer = replacer = args[1]; |
509 | | if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined |
510 | | if (!isArray(replacer)) replacer = function (key, value) { |
511 | | if (typeof $replacer == 'function') value = $replacer.call(this, key, value); |
512 | | if (!isSymbol(value)) return value; |
513 | | }; |
514 | | args[1] = replacer; |
515 | | return _stringify.apply($JSON, args); |
516 | | } |
517 | | }); |
518 | | |
519 | | // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) |
520 | | $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(10)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); |
521 | | // 19.4.3.5 Symbol.prototype[@@toStringTag] |
522 | | setToStringTag($Symbol, 'Symbol'); |
523 | | // 20.2.1.9 Math[@@toStringTag] |
524 | | setToStringTag(Math, 'Math', true); |
525 | | // 24.3.3 JSON[@@toStringTag] |
526 | | setToStringTag(global.JSON, 'JSON', true); |
527 | | |
528 | | |
529 | | /***/ }), |
530 | | /* 4 */ |
531 | | /***/ (function(module, exports) { |
532 | | |
533 | | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 |
534 | | var global = module.exports = typeof window != 'undefined' && window.Math == Math |
535 | | ? window : typeof self != 'undefined' && self.Math == Math ? self |
536 | | // eslint-disable-next-line no-new-func |
537 | | : Function('return this')(); |
538 | | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef |
539 | | |
540 | | |
541 | | /***/ }), |
542 | | /* 5 */ |
543 | | /***/ (function(module, exports) { |
544 | | |
545 | | var hasOwnProperty = {}.hasOwnProperty; |
546 | | module.exports = function (it, key) { |
547 | | return hasOwnProperty.call(it, key); |
548 | | }; |
549 | | |
550 | | |
551 | | /***/ }), |
552 | | /* 6 */ |
553 | | /***/ (function(module, exports, __webpack_require__) { |
554 | | |
555 | | // Thank's IE8 for his funny defineProperty |
556 | | module.exports = !__webpack_require__(7)(function () { |
557 | | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; |
558 | | }); |
559 | | |
560 | | |
561 | | /***/ }), |
562 | | /* 7 */ |
563 | | /***/ (function(module, exports) { |
564 | | |
565 | | module.exports = function (exec) { |
566 | | try { |
567 | | return !!exec(); |
568 | | } catch (e) { |
569 | | return true; |
570 | | } |
571 | | }; |
572 | | |
573 | | |
574 | | /***/ }), |
575 | | /* 8 */ |
576 | | /***/ (function(module, exports, __webpack_require__) { |
577 | | |
578 | | var global = __webpack_require__(4); |
579 | | var core = __webpack_require__(9); |
580 | | var hide = __webpack_require__(10); |
581 | | var redefine = __webpack_require__(18); |
582 | | var ctx = __webpack_require__(20); |
583 | | var PROTOTYPE = 'prototype'; |
584 | | |
585 | | var $export = function (type, name, source) { |
586 | | var IS_FORCED = type & $export.F; |
587 | | var IS_GLOBAL = type & $export.G; |
588 | | var IS_STATIC = type & $export.S; |
589 | | var IS_PROTO = type & $export.P; |
590 | | var IS_BIND = type & $export.B; |
591 | | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; |
592 | | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); |
593 | | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); |
594 | | var key, own, out, exp; |
595 | | if (IS_GLOBAL) source = name; |
596 | | for (key in source) { |
597 | | // contains in native |
598 | | own = !IS_FORCED && target && target[key] !== undefined; |
599 | | // export native or passed |
600 | | out = (own ? target : source)[key]; |
601 | | // bind timers to global for call from export context |
602 | | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; |
603 | | // extend global |
604 | | if (target) redefine(target, key, out, type & $export.U); |
605 | | // export |
606 | | if (exports[key] != out) hide(exports, key, exp); |
607 | | if (IS_PROTO && expProto[key] != out) expProto[key] = out; |
608 | | } |
609 | | }; |
610 | | global.core = core; |
611 | | // type bitmap |
612 | | $export.F = 1; // forced |
613 | | $export.G = 2; // global |
614 | | $export.S = 4; // static |
615 | | $export.P = 8; // proto |
616 | | $export.B = 16; // bind |
617 | | $export.W = 32; // wrap |
618 | | $export.U = 64; // safe |
619 | | $export.R = 128; // real proto method for `library` |
620 | | module.exports = $export; |
621 | | |
622 | | |
623 | | /***/ }), |
624 | | /* 9 */ |
625 | | /***/ (function(module, exports) { |
626 | | |
627 | | var core = module.exports = { version: '2.6.0' }; |
628 | | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef |
629 | | |
630 | | |
631 | | /***/ }), |
632 | | /* 10 */ |
633 | | /***/ (function(module, exports, __webpack_require__) { |
634 | | |
635 | | var dP = __webpack_require__(11); |
636 | | var createDesc = __webpack_require__(17); |
637 | | module.exports = __webpack_require__(6) ? function (object, key, value) { |
638 | | return dP.f(object, key, createDesc(1, value)); |
639 | | } : function (object, key, value) { |
640 | | object[key] = value; |
641 | | return object; |
642 | | }; |
643 | | |
644 | | |
645 | | /***/ }), |
646 | | /* 11 */ |
647 | | /***/ (function(module, exports, __webpack_require__) { |
648 | | |
649 | | var anObject = __webpack_require__(12); |
650 | | var IE8_DOM_DEFINE = __webpack_require__(14); |
651 | | var toPrimitive = __webpack_require__(16); |
652 | | var dP = Object.defineProperty; |
653 | | |
654 | | exports.f = __webpack_require__(6) ? Object.defineProperty : function defineProperty(O, P, Attributes) { |
655 | | anObject(O); |
656 | | P = toPrimitive(P, true); |
657 | | anObject(Attributes); |
658 | | if (IE8_DOM_DEFINE) try { |
659 | | return dP(O, P, Attributes); |
660 | | } catch (e) { /* empty */ } |
661 | | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); |
662 | | if ('value' in Attributes) O[P] = Attributes.value; |
663 | | return O; |
664 | | }; |
665 | | |
666 | | |
667 | | /***/ }), |
668 | | /* 12 */ |
669 | | /***/ (function(module, exports, __webpack_require__) { |
670 | | |
671 | | var isObject = __webpack_require__(13); |
672 | | module.exports = function (it) { |
673 | | if (!isObject(it)) throw TypeError(it + ' is not an object!'); |
674 | | return it; |
675 | | }; |
676 | | |
677 | | |
678 | | /***/ }), |
679 | | /* 13 */ |
680 | | /***/ (function(module, exports) { |
681 | | |
682 | | module.exports = function (it) { |
683 | | return typeof it === 'object' ? it !== null : typeof it === 'function'; |
684 | | }; |
685 | | |
686 | | |
687 | | /***/ }), |
688 | | /* 14 */ |
689 | | /***/ (function(module, exports, __webpack_require__) { |
690 | | |
691 | | module.exports = !__webpack_require__(6) && !__webpack_require__(7)(function () { |
692 | | return Object.defineProperty(__webpack_require__(15)('div'), 'a', { get: function () { return 7; } }).a != 7; |
693 | | }); |
694 | | |
695 | | |
696 | | /***/ }), |
697 | | /* 15 */ |
698 | | /***/ (function(module, exports, __webpack_require__) { |
699 | | |
700 | | var isObject = __webpack_require__(13); |
701 | | var document = __webpack_require__(4).document; |
702 | | // typeof document.createElement is 'object' in old IE |
703 | | var is = isObject(document) && isObject(document.createElement); |
704 | | module.exports = function (it) { |
705 | | return is ? document.createElement(it) : {}; |
706 | | }; |
707 | | |
708 | | |
709 | | /***/ }), |
710 | | /* 16 */ |
711 | | /***/ (function(module, exports, __webpack_require__) { |
712 | | |
713 | | // 7.1.1 ToPrimitive(input [, PreferredType]) |
714 | | var isObject = __webpack_require__(13); |
715 | | // instead of the ES6 spec version, we didn't implement @@toPrimitive case |
716 | | // and the second argument - flag - preferred type is a string |
717 | | module.exports = function (it, S) { |
718 | | if (!isObject(it)) return it; |
719 | | var fn, val; |
720 | | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; |
721 | | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; |
722 | | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; |
723 | | throw TypeError("Can't convert object to primitive value"); |
724 | | }; |
725 | | |
726 | | |
727 | | /***/ }), |
728 | | /* 17 */ |
729 | | /***/ (function(module, exports) { |
730 | | |
731 | | module.exports = function (bitmap, value) { |
732 | | return { |
733 | | enumerable: !(bitmap & 1), |
734 | | configurable: !(bitmap & 2), |
735 | | writable: !(bitmap & 4), |
736 | | value: value |
737 | | }; |
738 | | }; |
739 | | |
740 | | |
741 | | /***/ }), |
742 | | /* 18 */ |
743 | | /***/ (function(module, exports, __webpack_require__) { |
744 | | |
745 | | var global = __webpack_require__(4); |
746 | | var hide = __webpack_require__(10); |
747 | | var has = __webpack_require__(5); |
748 | | var SRC = __webpack_require__(19)('src'); |
749 | | var TO_STRING = 'toString'; |
750 | | var $toString = Function[TO_STRING]; |
751 | | var TPL = ('' + $toString).split(TO_STRING); |
752 | | |
753 | | __webpack_require__(9).inspectSource = function (it) { |
754 | | return $toString.call(it); |
755 | | }; |
756 | | |
757 | | (module.exports = function (O, key, val, safe) { |
758 | | var isFunction = typeof val == 'function'; |
759 | | if (isFunction) has(val, 'name') || hide(val, 'name', key); |
760 | | if (O[key] === val) return; |
761 | | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); |
762 | | if (O === global) { |
763 | | O[key] = val; |
764 | | } else if (!safe) { |
765 | | delete O[key]; |
766 | | hide(O, key, val); |
767 | | } else if (O[key]) { |
768 | | O[key] = val; |
769 | | } else { |
770 | | hide(O, key, val); |
771 | | } |
772 | | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative |
773 | | })(Function.prototype, TO_STRING, function toString() { |
774 | | return typeof this == 'function' && this[SRC] || $toString.call(this); |
775 | | }); |
776 | | |
777 | | |
778 | | /***/ }), |
779 | | /* 19 */ |
780 | | /***/ (function(module, exports) { |
781 | | |
782 | | var id = 0; |
783 | | var px = Math.random(); |
784 | | module.exports = function (key) { |
785 | | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); |
786 | | }; |
787 | | |
788 | | |
789 | | /***/ }), |
790 | | /* 20 */ |
791 | | /***/ (function(module, exports, __webpack_require__) { |
792 | | |
793 | | // optional / simple context binding |
794 | | var aFunction = __webpack_require__(21); |
795 | | module.exports = function (fn, that, length) { |
796 | | aFunction(fn); |
797 | | if (that === undefined) return fn; |
798 | | switch (length) { |
799 | | case 1: return function (a) { |
800 | | return fn.call(that, a); |
801 | | }; |
802 | | case 2: return function (a, b) { |
803 | | return fn.call(that, a, b); |
804 | | }; |
805 | | case 3: return function (a, b, c) { |
806 | | return fn.call(that, a, b, c); |
807 | | }; |
808 | | } |
809 | | return function (/* ...args */) { |
810 | | return fn.apply(that, arguments); |
811 | | }; |
812 | | }; |
813 | | |
814 | | |
815 | | /***/ }), |
816 | | /* 21 */ |
817 | | /***/ (function(module, exports) { |
818 | | |
819 | | module.exports = function (it) { |
820 | | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); |
821 | | return it; |
822 | | }; |
823 | | |
824 | | |
825 | | /***/ }), |
826 | | /* 22 */ |
827 | | /***/ (function(module, exports, __webpack_require__) { |
828 | | |
829 | | var META = __webpack_require__(19)('meta'); |
830 | | var isObject = __webpack_require__(13); |
831 | | var has = __webpack_require__(5); |
832 | | var setDesc = __webpack_require__(11).f; |
833 | | var id = 0; |
834 | | var isExtensible = Object.isExtensible || function () { |
835 | | return true; |
836 | | }; |
837 | | var FREEZE = !__webpack_require__(7)(function () { |
838 | | return isExtensible(Object.preventExtensions({})); |
839 | | }); |
840 | | var setMeta = function (it) { |
841 | | setDesc(it, META, { value: { |
842 | | i: 'O' + ++id, // object ID |
843 | | w: {} // weak collections IDs |
844 | | } }); |
845 | | }; |
846 | | var fastKey = function (it, create) { |
847 | | // return primitive with prefix |
848 | | if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; |
849 | | if (!has(it, META)) { |
850 | | // can't set metadata to uncaught frozen object |
851 | | if (!isExtensible(it)) return 'F'; |
852 | | // not necessary to add metadata |
853 | | if (!create) return 'E'; |
854 | | // add missing metadata |
855 | | setMeta(it); |
856 | | // return object ID |
857 | | } return it[META].i; |
858 | | }; |
859 | | var getWeak = function (it, create) { |
860 | | if (!has(it, META)) { |
861 | | // can't set metadata to uncaught frozen object |
862 | | if (!isExtensible(it)) return true; |
863 | | // not necessary to add metadata |
864 | | if (!create) return false; |
865 | | // add missing metadata |
866 | | setMeta(it); |
867 | | // return hash weak collections IDs |
868 | | } return it[META].w; |
869 | | }; |
870 | | // add metadata on freeze-family methods calling |
871 | | var onFreeze = function (it) { |
872 | | if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); |
873 | | return it; |
874 | | }; |
875 | | var meta = module.exports = { |
876 | | KEY: META, |
877 | | NEED: false, |
878 | | fastKey: fastKey, |
879 | | getWeak: getWeak, |
880 | | onFreeze: onFreeze |
881 | | }; |
882 | | |
883 | | |
884 | | /***/ }), |
885 | | /* 23 */ |
886 | | /***/ (function(module, exports, __webpack_require__) { |
887 | | |
888 | | var core = __webpack_require__(9); |
889 | | var global = __webpack_require__(4); |
890 | | var SHARED = '__core-js_shared__'; |
891 | | var store = global[SHARED] || (global[SHARED] = {}); |
892 | | |
893 | | (module.exports = function (key, value) { |
894 | | return store[key] || (store[key] = value !== undefined ? value : {}); |
895 | | })('versions', []).push({ |
896 | | version: core.version, |
897 | | mode: __webpack_require__(24) ? 'pure' : 'global', |
898 | | copyright: '© 2018 Denis Pushkarev (zloirock.ru)' |
899 | | }); |
900 | | |
901 | | |
902 | | /***/ }), |
903 | | /* 24 */ |
904 | | /***/ (function(module, exports) { |
905 | | |
906 | | module.exports = false; |
907 | | |
908 | | |
909 | | /***/ }), |
910 | | /* 25 */ |
911 | | /***/ (function(module, exports, __webpack_require__) { |
912 | | |
913 | | var def = __webpack_require__(11).f; |
914 | | var has = __webpack_require__(5); |
915 | | var TAG = __webpack_require__(26)('toStringTag'); |
916 | | |
917 | | module.exports = function (it, tag, stat) { |
918 | | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); |
919 | | }; |
920 | | |
921 | | |
922 | | /***/ }), |
923 | | /* 26 */ |
924 | | /***/ (function(module, exports, __webpack_require__) { |
925 | | |
926 | | var store = __webpack_require__(23)('wks'); |
927 | | var uid = __webpack_require__(19); |
928 | | var Symbol = __webpack_require__(4).Symbol; |
929 | | var USE_SYMBOL = typeof Symbol == 'function'; |
930 | | |
931 | | var $exports = module.exports = function (name) { |
932 | | return store[name] || (store[name] = |
933 | | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); |
934 | | }; |
935 | | |
936 | | $exports.store = store; |
937 | | |
938 | | |
939 | | /***/ }), |
940 | | /* 27 */ |
941 | | /***/ (function(module, exports, __webpack_require__) { |
942 | | |
943 | | exports.f = __webpack_require__(26); |
944 | | |
945 | | |
946 | | /***/ }), |
947 | | /* 28 */ |
948 | | /***/ (function(module, exports, __webpack_require__) { |
949 | | |
950 | | var global = __webpack_require__(4); |
951 | | var core = __webpack_require__(9); |
952 | | var LIBRARY = __webpack_require__(24); |
953 | | var wksExt = __webpack_require__(27); |
954 | | var defineProperty = __webpack_require__(11).f; |
955 | | module.exports = function (name) { |
956 | | var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); |
957 | | if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); |
958 | | }; |
959 | | |
960 | | |
961 | | /***/ }), |
962 | | /* 29 */ |
963 | | /***/ (function(module, exports, __webpack_require__) { |
964 | | |
965 | | // all enumerable object keys, includes symbols |
966 | | var getKeys = __webpack_require__(30); |
967 | | var gOPS = __webpack_require__(42); |
968 | | var pIE = __webpack_require__(43); |
969 | | module.exports = function (it) { |
970 | | var result = getKeys(it); |
971 | | var getSymbols = gOPS.f; |
972 | | if (getSymbols) { |
973 | | var symbols = getSymbols(it); |
974 | | var isEnum = pIE.f; |
975 | | var i = 0; |
976 | | var key; |
977 | | while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); |
978 | | } return result; |
979 | | }; |
980 | | |
981 | | |
982 | | /***/ }), |
983 | | /* 30 */ |
984 | | /***/ (function(module, exports, __webpack_require__) { |
985 | | |
986 | | // 19.1.2.14 / 15.2.3.14 Object.keys(O) |
987 | | var $keys = __webpack_require__(31); |
988 | | var enumBugKeys = __webpack_require__(41); |
989 | | |
990 | | module.exports = Object.keys || function keys(O) { |
991 | | return $keys(O, enumBugKeys); |
992 | | }; |
993 | | |
994 | | |
995 | | /***/ }), |
996 | | /* 31 */ |
997 | | /***/ (function(module, exports, __webpack_require__) { |
998 | | |
999 | | var has = __webpack_require__(5); |
1000 | | var toIObject = __webpack_require__(32); |
1001 | | var arrayIndexOf = __webpack_require__(36)(false); |
1002 | | var IE_PROTO = __webpack_require__(40)('IE_PROTO'); |
1003 | | |
1004 | | module.exports = function (object, names) { |
1005 | | var O = toIObject(object); |
1006 | | var i = 0; |
1007 | | var result = []; |
1008 | | var key; |
1009 | | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); |
1010 | | // Don't enum bug & hidden keys |
1011 | | while (names.length > i) if (has(O, key = names[i++])) { |
1012 | | ~arrayIndexOf(result, key) || result.push(key); |
1013 | | } |
1014 | | return result; |
1015 | | }; |
1016 | | |
1017 | | |
1018 | | /***/ }), |
1019 | | /* 32 */ |
1020 | | /***/ (function(module, exports, __webpack_require__) { |
1021 | | |
1022 | | // to indexed object, toObject with fallback for non-array-like ES3 strings |
1023 | | var IObject = __webpack_require__(33); |
1024 | | var defined = __webpack_require__(35); |
1025 | | module.exports = function (it) { |
1026 | | return IObject(defined(it)); |
1027 | | }; |
1028 | | |
1029 | | |
1030 | | /***/ }), |
1031 | | /* 33 */ |
1032 | | /***/ (function(module, exports, __webpack_require__) { |
1033 | | |
1034 | | // fallback for non-array-like ES3 and non-enumerable old V8 strings |
1035 | | var cof = __webpack_require__(34); |
1036 | | // eslint-disable-next-line no-prototype-builtins |
1037 | | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { |
1038 | | return cof(it) == 'String' ? it.split('') : Object(it); |
1039 | | }; |
1040 | | |
1041 | | |
1042 | | /***/ }), |
1043 | | /* 34 */ |
1044 | | /***/ (function(module, exports) { |
1045 | | |
1046 | | var toString = {}.toString; |
1047 | | |
1048 | | module.exports = function (it) { |
1049 | | return toString.call(it).slice(8, -1); |
1050 | | }; |
1051 | | |
1052 | | |
1053 | | /***/ }), |
1054 | | /* 35 */ |
1055 | | /***/ (function(module, exports) { |
1056 | | |
1057 | | // 7.2.1 RequireObjectCoercible(argument) |
1058 | | module.exports = function (it) { |
1059 | | if (it == undefined) throw TypeError("Can't call method on " + it); |
1060 | | return it; |
1061 | | }; |
1062 | | |
1063 | | |
1064 | | /***/ }), |
1065 | | /* 36 */ |
1066 | | /***/ (function(module, exports, __webpack_require__) { |
1067 | | |
1068 | | // false -> Array#indexOf |
1069 | | // true -> Array#includes |
1070 | | var toIObject = __webpack_require__(32); |
1071 | | var toLength = __webpack_require__(37); |
1072 | | var toAbsoluteIndex = __webpack_require__(39); |
1073 | | module.exports = function (IS_INCLUDES) { |
1074 | | return function ($this, el, fromIndex) { |
1075 | | var O = toIObject($this); |
1076 | | var length = toLength(O.length); |
1077 | | var index = toAbsoluteIndex(fromIndex, length); |
1078 | | var value; |
1079 | | // Array#includes uses SameValueZero equality algorithm |
1080 | | // eslint-disable-next-line no-self-compare |
1081 | | if (IS_INCLUDES && el != el) while (length > index) { |
1082 | | value = O[index++]; |
1083 | | // eslint-disable-next-line no-self-compare |
1084 | | if (value != value) return true; |
1085 | | // Array#indexOf ignores holes, Array#includes - not |
1086 | | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { |
1087 | | if (O[index] === el) return IS_INCLUDES || index || 0; |
1088 | | } return !IS_INCLUDES && -1; |
1089 | | }; |
1090 | | }; |
1091 | | |
1092 | | |
1093 | | /***/ }), |
1094 | | /* 37 */ |
1095 | | /***/ (function(module, exports, __webpack_require__) { |
1096 | | |
1097 | | // 7.1.15 ToLength |
1098 | | var toInteger = __webpack_require__(38); |
1099 | | var min = Math.min; |
1100 | | module.exports = function (it) { |
1101 | | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 |
1102 | | }; |
1103 | | |
1104 | | |
1105 | | /***/ }), |
1106 | | /* 38 */ |
1107 | | /***/ (function(module, exports) { |
1108 | | |
1109 | | // 7.1.4 ToInteger |
1110 | | var ceil = Math.ceil; |
1111 | | var floor = Math.floor; |
1112 | | module.exports = function (it) { |
1113 | | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); |
1114 | | }; |
1115 | | |
1116 | | |
1117 | | /***/ }), |
1118 | | /* 39 */ |
1119 | | /***/ (function(module, exports, __webpack_require__) { |
1120 | | |
1121 | | var toInteger = __webpack_require__(38); |
1122 | | var max = Math.max; |
1123 | | var min = Math.min; |
1124 | | module.exports = function (index, length) { |
1125 | | index = toInteger(index); |
1126 | | return index < 0 ? max(index + length, 0) : min(index, length); |
1127 | | }; |
1128 | | |
1129 | | |
1130 | | /***/ }), |
1131 | | /* 40 */ |
1132 | | /***/ (function(module, exports, __webpack_require__) { |
1133 | | |
1134 | | var shared = __webpack_require__(23)('keys'); |
1135 | | var uid = __webpack_require__(19); |
1136 | | module.exports = function (key) { |
1137 | | return shared[key] || (shared[key] = uid(key)); |
1138 | | }; |
1139 | | |
1140 | | |
1141 | | /***/ }), |
1142 | | /* 41 */ |
1143 | | /***/ (function(module, exports) { |
1144 | | |
1145 | | // IE 8- don't enum bug keys |
1146 | | module.exports = ( |
1147 | | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' |
1148 | | ).split(','); |
1149 | | |
1150 | | |
1151 | | /***/ }), |
1152 | | /* 42 */ |
1153 | | /***/ (function(module, exports) { |
1154 | | |
1155 | | exports.f = Object.getOwnPropertySymbols; |
1156 | | |
1157 | | |
1158 | | /***/ }), |
1159 | | /* 43 */ |
1160 | | /***/ (function(module, exports) { |
1161 | | |
1162 | | exports.f = {}.propertyIsEnumerable; |
1163 | | |
1164 | | |
1165 | | /***/ }), |
1166 | | /* 44 */ |
1167 | | /***/ (function(module, exports, __webpack_require__) { |
1168 | | |
1169 | | // 7.2.2 IsArray(argument) |
1170 | | var cof = __webpack_require__(34); |
1171 | | module.exports = Array.isArray || function isArray(arg) { |
1172 | | return cof(arg) == 'Array'; |
1173 | | }; |
1174 | | |
1175 | | |
1176 | | /***/ }), |
1177 | | /* 45 */ |
1178 | | /***/ (function(module, exports, __webpack_require__) { |
1179 | | |
1180 | | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) |
1181 | | var anObject = __webpack_require__(12); |
1182 | | var dPs = __webpack_require__(46); |
1183 | | var enumBugKeys = __webpack_require__(41); |
1184 | | var IE_PROTO = __webpack_require__(40)('IE_PROTO'); |
1185 | | var Empty = function () { /* empty */ }; |
1186 | | var PROTOTYPE = 'prototype'; |
1187 | | |
1188 | | // Create object with fake `null` prototype: use iframe Object with cleared prototype |
1189 | | var createDict = function () { |
1190 | | // Thrash, waste and sodomy: IE GC bug |
1191 | | var iframe = __webpack_require__(15)('iframe'); |
1192 | | var i = enumBugKeys.length; |
1193 | | var lt = '<'; |
1194 | | var gt = '>'; |
1195 | | var iframeDocument; |
1196 | | iframe.style.display = 'none'; |
1197 | | __webpack_require__(47).appendChild(iframe); |
1198 | | iframe.src = 'javascript:'; // eslint-disable-line no-script-url |
1199 | | // createDict = iframe.contentWindow.Object; |
1200 | | // html.removeChild(iframe); |
1201 | | iframeDocument = iframe.contentWindow.document; |
1202 | | iframeDocument.open(); |
1203 | | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); |
1204 | | iframeDocument.close(); |
1205 | | createDict = iframeDocument.F; |
1206 | | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; |
1207 | | return createDict(); |
1208 | | }; |
1209 | | |
1210 | | module.exports = Object.create || function create(O, Properties) { |
1211 | | var result; |
1212 | | if (O !== null) { |
1213 | | Empty[PROTOTYPE] = anObject(O); |
1214 | | result = new Empty(); |
1215 | | Empty[PROTOTYPE] = null; |
1216 | | // add "__proto__" for Object.getPrototypeOf polyfill |
1217 | | result[IE_PROTO] = O; |
1218 | | } else result = createDict(); |
1219 | | return Properties === undefined ? result : dPs(result, Properties); |
1220 | | }; |
1221 | | |
1222 | | |
1223 | | /***/ }), |
1224 | | /* 46 */ |
1225 | | /***/ (function(module, exports, __webpack_require__) { |
1226 | | |
1227 | | var dP = __webpack_require__(11); |
1228 | | var anObject = __webpack_require__(12); |
1229 | | var getKeys = __webpack_require__(30); |
1230 | | |
1231 | | module.exports = __webpack_require__(6) ? Object.defineProperties : function defineProperties(O, Properties) { |
1232 | | anObject(O); |
1233 | | var keys = getKeys(Properties); |
1234 | | var length = keys.length; |
1235 | | var i = 0; |
1236 | | var P; |
1237 | | while (length > i) dP.f(O, P = keys[i++], Properties[P]); |
1238 | | return O; |
1239 | | }; |
1240 | | |
1241 | | |
1242 | | /***/ }), |
1243 | | /* 47 */ |
1244 | | /***/ (function(module, exports, __webpack_require__) { |
1245 | | |
1246 | | var document = __webpack_require__(4).document; |
1247 | | module.exports = document && document.documentElement; |
1248 | | |
1249 | | |
1250 | | /***/ }), |
1251 | | /* 48 */ |
1252 | | /***/ (function(module, exports, __webpack_require__) { |
1253 | | |
1254 | | // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window |
1255 | | var toIObject = __webpack_require__(32); |
1256 | | var gOPN = __webpack_require__(49).f; |
1257 | | var toString = {}.toString; |
1258 | | |
1259 | | var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames |
1260 | | ? Object.getOwnPropertyNames(window) : []; |
1261 | | |
1262 | | var getWindowNames = function (it) { |
1263 | | try { |
1264 | | return gOPN(it); |
1265 | | } catch (e) { |
1266 | | return windowNames.slice(); |
1267 | | } |
1268 | | }; |
1269 | | |
1270 | | module.exports.f = function getOwnPropertyNames(it) { |
1271 | | return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); |
1272 | | }; |
1273 | | |
1274 | | |
1275 | | /***/ }), |
1276 | | /* 49 */ |
1277 | | /***/ (function(module, exports, __webpack_require__) { |
1278 | | |
1279 | | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) |
1280 | | var $keys = __webpack_require__(31); |
1281 | | var hiddenKeys = __webpack_require__(41).concat('length', 'prototype'); |
1282 | | |
1283 | | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { |
1284 | | return $keys(O, hiddenKeys); |
1285 | | }; |
1286 | | |
1287 | | |
1288 | | /***/ }), |
1289 | | /* 50 */ |
1290 | | /***/ (function(module, exports, __webpack_require__) { |
1291 | | |
1292 | | var pIE = __webpack_require__(43); |
1293 | | var createDesc = __webpack_require__(17); |
1294 | | var toIObject = __webpack_require__(32); |
1295 | | var toPrimitive = __webpack_require__(16); |
1296 | | var has = __webpack_require__(5); |
1297 | | var IE8_DOM_DEFINE = __webpack_require__(14); |
1298 | | var gOPD = Object.getOwnPropertyDescriptor; |
1299 | | |
1300 | | exports.f = __webpack_require__(6) ? gOPD : function getOwnPropertyDescriptor(O, P) { |
1301 | | O = toIObject(O); |
1302 | | P = toPrimitive(P, true); |
1303 | | if (IE8_DOM_DEFINE) try { |
1304 | | return gOPD(O, P); |
1305 | | } catch (e) { /* empty */ } |
1306 | | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); |
1307 | | }; |
1308 | | |
1309 | | |
1310 | | /***/ }), |
1311 | | /* 51 */ |
1312 | | /***/ (function(module, exports, __webpack_require__) { |
1313 | | |
1314 | | var $export = __webpack_require__(8); |
1315 | | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) |
1316 | | $export($export.S, 'Object', { create: __webpack_require__(45) }); |
1317 | | |
1318 | | |
1319 | | /***/ }), |
1320 | | /* 52 */ |
1321 | | /***/ (function(module, exports, __webpack_require__) { |
1322 | | |
1323 | | var $export = __webpack_require__(8); |
1324 | | // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) |
1325 | | $export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperty: __webpack_require__(11).f }); |
1326 | | |
1327 | | |
1328 | | /***/ }), |
1329 | | /* 53 */ |
1330 | | /***/ (function(module, exports, __webpack_require__) { |
1331 | | |
1332 | | var $export = __webpack_require__(8); |
1333 | | // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) |
1334 | | $export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperties: __webpack_require__(46) }); |
1335 | | |
1336 | | |
1337 | | /***/ }), |
1338 | | /* 54 */ |
1339 | | /***/ (function(module, exports, __webpack_require__) { |
1340 | | |
1341 | | // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) |
1342 | | var toIObject = __webpack_require__(32); |
1343 | | var $getOwnPropertyDescriptor = __webpack_require__(50).f; |
1344 | | |
1345 | | __webpack_require__(55)('getOwnPropertyDescriptor', function () { |
1346 | | return function getOwnPropertyDescriptor(it, key) { |
1347 | | return $getOwnPropertyDescriptor(toIObject(it), key); |
1348 | | }; |
1349 | | }); |
1350 | | |
1351 | | |
1352 | | /***/ }), |
1353 | | /* 55 */ |
1354 | | /***/ (function(module, exports, __webpack_require__) { |
1355 | | |
1356 | | // most Object methods by ES6 should accept primitives |
1357 | | var $export = __webpack_require__(8); |
1358 | | var core = __webpack_require__(9); |
1359 | | var fails = __webpack_require__(7); |
1360 | | module.exports = function (KEY, exec) { |
1361 | | var fn = (core.Object || {})[KEY] || Object[KEY]; |
1362 | | var exp = {}; |
1363 | | exp[KEY] = exec(fn); |
1364 | | $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); |
1365 | | }; |
1366 | | |
1367 | | |
1368 | | /***/ }), |
1369 | | /* 56 */ |
1370 | | /***/ (function(module, exports, __webpack_require__) { |
1371 | | |
1372 | | // 19.1.2.9 Object.getPrototypeOf(O) |
1373 | | var toObject = __webpack_require__(57); |
1374 | | var $getPrototypeOf = __webpack_require__(58); |
1375 | | |
1376 | | __webpack_require__(55)('getPrototypeOf', function () { |
1377 | | return function getPrototypeOf(it) { |
1378 | | return $getPrototypeOf(toObject(it)); |
1379 | | }; |
1380 | | }); |
1381 | | |
1382 | | |
1383 | | /***/ }), |
1384 | | /* 57 */ |
1385 | | /***/ (function(module, exports, __webpack_require__) { |
1386 | | |
1387 | | // 7.1.13 ToObject(argument) |
1388 | | var defined = __webpack_require__(35); |
1389 | | module.exports = function (it) { |
1390 | | return Object(defined(it)); |
1391 | | }; |
1392 | | |
1393 | | |
1394 | | /***/ }), |
1395 | | /* 58 */ |
1396 | | /***/ (function(module, exports, __webpack_require__) { |
1397 | | |
1398 | | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) |
1399 | | var has = __webpack_require__(5); |
1400 | | var toObject = __webpack_require__(57); |
1401 | | var IE_PROTO = __webpack_require__(40)('IE_PROTO'); |
1402 | | var ObjectProto = Object.prototype; |
1403 | | |
1404 | | module.exports = Object.getPrototypeOf || function (O) { |
1405 | | O = toObject(O); |
1406 | | if (has(O, IE_PROTO)) return O[IE_PROTO]; |
1407 | | if (typeof O.constructor == 'function' && O instanceof O.constructor) { |
1408 | | return O.constructor.prototype; |
1409 | | } return O instanceof Object ? ObjectProto : null; |
1410 | | }; |
1411 | | |
1412 | | |
1413 | | /***/ }), |
1414 | | /* 59 */ |
1415 | | /***/ (function(module, exports, __webpack_require__) { |
1416 | | |
1417 | | // 19.1.2.14 Object.keys(O) |
1418 | | var toObject = __webpack_require__(57); |
1419 | | var $keys = __webpack_require__(30); |
1420 | | |
1421 | | __webpack_require__(55)('keys', function () { |
1422 | | return function keys(it) { |
1423 | | return $keys(toObject(it)); |
1424 | | }; |
1425 | | }); |
1426 | | |
1427 | | |
1428 | | /***/ }), |
1429 | | /* 60 */ |
1430 | | /***/ (function(module, exports, __webpack_require__) { |
1431 | | |
1432 | | // 19.1.2.7 Object.getOwnPropertyNames(O) |
1433 | | __webpack_require__(55)('getOwnPropertyNames', function () { |
1434 | | return __webpack_require__(48).f; |
1435 | | }); |
1436 | | |
1437 | | |
1438 | | /***/ }), |
1439 | | /* 61 */ |
1440 | | /***/ (function(module, exports, __webpack_require__) { |
1441 | | |
1442 | | // 19.1.2.5 Object.freeze(O) |
1443 | | var isObject = __webpack_require__(13); |
1444 | | var meta = __webpack_require__(22).onFreeze; |
1445 | | |
1446 | | __webpack_require__(55)('freeze', function ($freeze) { |
1447 | | return function freeze(it) { |
1448 | | return $freeze && isObject(it) ? $freeze(meta(it)) : it; |
1449 | | }; |
1450 | | }); |
1451 | | |
1452 | | |
1453 | | /***/ }), |
1454 | | /* 62 */ |
1455 | | /***/ (function(module, exports, __webpack_require__) { |
1456 | | |
1457 | | // 19.1.2.17 Object.seal(O) |
1458 | | var isObject = __webpack_require__(13); |
1459 | | var meta = __webpack_require__(22).onFreeze; |
1460 | | |
1461 | | __webpack_require__(55)('seal', function ($seal) { |
1462 | | return function seal(it) { |
1463 | | return $seal && isObject(it) ? $seal(meta(it)) : it; |
1464 | | }; |
1465 | | }); |
1466 | | |
1467 | | |
1468 | | /***/ }), |
1469 | | /* 63 */ |
1470 | | /***/ (function(module, exports, __webpack_require__) { |
1471 | | |
1472 | | // 19.1.2.15 Object.preventExtensions(O) |
1473 | | var isObject = __webpack_require__(13); |
1474 | | var meta = __webpack_require__(22).onFreeze; |
1475 | | |
1476 | | __webpack_require__(55)('preventExtensions', function ($preventExtensions) { |
1477 | | return function preventExtensions(it) { |
1478 | | return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it; |
1479 | | }; |
1480 | | }); |
1481 | | |
1482 | | |
1483 | | /***/ }), |
1484 | | /* 64 */ |
1485 | | /***/ (function(module, exports, __webpack_require__) { |
1486 | | |
1487 | | // 19.1.2.12 Object.isFrozen(O) |
1488 | | var isObject = __webpack_require__(13); |
1489 | | |
1490 | | __webpack_require__(55)('isFrozen', function ($isFrozen) { |
1491 | | return function isFrozen(it) { |
1492 | | return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true; |
1493 | | }; |
1494 | | }); |
1495 | | |
1496 | | |
1497 | | /***/ }), |
1498 | | /* 65 */ |
1499 | | /***/ (function(module, exports, __webpack_require__) { |
1500 | | |
1501 | | // 19.1.2.13 Object.isSealed(O) |
1502 | | var isObject = __webpack_require__(13); |
1503 | | |
1504 | | __webpack_require__(55)('isSealed', function ($isSealed) { |
1505 | | return function isSealed(it) { |
1506 | | return isObject(it) ? $isSealed ? $isSealed(it) : false : true; |
1507 | | }; |
1508 | | }); |
1509 | | |
1510 | | |
1511 | | /***/ }), |
1512 | | /* 66 */ |
1513 | | /***/ (function(module, exports, __webpack_require__) { |
1514 | | |
1515 | | // 19.1.2.11 Object.isExtensible(O) |
1516 | | var isObject = __webpack_require__(13); |
1517 | | |
1518 | | __webpack_require__(55)('isExtensible', function ($isExtensible) { |
1519 | | return function isExtensible(it) { |
1520 | | return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false; |
1521 | | }; |
1522 | | }); |
1523 | | |
1524 | | |
1525 | | /***/ }), |
1526 | | /* 67 */ |
1527 | | /***/ (function(module, exports, __webpack_require__) { |
1528 | | |
1529 | | // 19.1.3.1 Object.assign(target, source) |
1530 | | var $export = __webpack_require__(8); |
1531 | | |
1532 | | $export($export.S + $export.F, 'Object', { assign: __webpack_require__(68) }); |
1533 | | |
1534 | | |
1535 | | /***/ }), |
1536 | | /* 68 */ |
1537 | | /***/ (function(module, exports, __webpack_require__) { |
1538 | | |
1539 | | 'use strict'; |
1540 | | // 19.1.2.1 Object.assign(target, source, ...) |
1541 | | var getKeys = __webpack_require__(30); |
1542 | | var gOPS = __webpack_require__(42); |
1543 | | var pIE = __webpack_require__(43); |
1544 | | var toObject = __webpack_require__(57); |
1545 | | var IObject = __webpack_require__(33); |
1546 | | var $assign = Object.assign; |
1547 | | |
1548 | | // should work with symbols and should have deterministic property order (V8 bug) |
1549 | | module.exports = !$assign || __webpack_require__(7)(function () { |
1550 | | var A = {}; |
1551 | | var B = {}; |
1552 | | // eslint-disable-next-line no-undef |
1553 | | var S = Symbol(); |
1554 | | var K = 'abcdefghijklmnopqrst'; |
1555 | | A[S] = 7; |
1556 | | K.split('').forEach(function (k) { B[k] = k; }); |
1557 | | return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; |
1558 | | }) ? function assign(target, source) { // eslint-disable-line no-unused-vars |
1559 | | var T = toObject(target); |
1560 | | var aLen = arguments.length; |
1561 | | var index = 1; |
1562 | | var getSymbols = gOPS.f; |
1563 | | var isEnum = pIE.f; |
1564 | | while (aLen > index) { |
1565 | | var S = IObject(arguments[index++]); |
1566 | | var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); |
1567 | | var length = keys.length; |
1568 | | var j = 0; |
1569 | | var key; |
1570 | | while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; |
1571 | | } return T; |
1572 | | } : $assign; |
1573 | | |
1574 | | |
1575 | | /***/ }), |
1576 | | /* 69 */ |
1577 | | /***/ (function(module, exports, __webpack_require__) { |
1578 | | |
1579 | | // 19.1.3.10 Object.is(value1, value2) |
1580 | | var $export = __webpack_require__(8); |
1581 | | $export($export.S, 'Object', { is: __webpack_require__(70) }); |
1582 | | |
1583 | | |
1584 | | /***/ }), |
1585 | | /* 70 */ |
1586 | | /***/ (function(module, exports) { |
1587 | | |
1588 | | // 7.2.9 SameValue(x, y) |
1589 | | module.exports = Object.is || function is(x, y) { |
1590 | | // eslint-disable-next-line no-self-compare |
1591 | | return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; |
1592 | | }; |
1593 | | |
1594 | | |
1595 | | /***/ }), |
1596 | | /* 71 */ |
1597 | | /***/ (function(module, exports, __webpack_require__) { |
1598 | | |
1599 | | // 19.1.3.19 Object.setPrototypeOf(O, proto) |
1600 | | var $export = __webpack_require__(8); |
1601 | | $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(72).set }); |
1602 | | |
1603 | | |
1604 | | /***/ }), |
1605 | | /* 72 */ |
1606 | | /***/ (function(module, exports, __webpack_require__) { |
1607 | | |
1608 | | // Works with __proto__ only. Old v8 can't work with null proto objects. |
1609 | | /* eslint-disable no-proto */ |
1610 | | var isObject = __webpack_require__(13); |
1611 | | var anObject = __webpack_require__(12); |
1612 | | var check = function (O, proto) { |
1613 | | anObject(O); |
1614 | | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); |
1615 | | }; |
1616 | | module.exports = { |
1617 | | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line |
1618 | | function (test, buggy, set) { |
1619 | | try { |
1620 | | set = __webpack_require__(20)(Function.call, __webpack_require__(50).f(Object.prototype, '__proto__').set, 2); |
1621 | | set(test, []); |
1622 | | buggy = !(test instanceof Array); |
1623 | | } catch (e) { buggy = true; } |
1624 | | return function setPrototypeOf(O, proto) { |
1625 | | check(O, proto); |
1626 | | if (buggy) O.__proto__ = proto; |
1627 | | else set(O, proto); |
1628 | | return O; |
1629 | | }; |
1630 | | }({}, false) : undefined), |
1631 | | check: check |
1632 | | }; |
1633 | | |
1634 | | |
1635 | | /***/ }), |
1636 | | /* 73 */ |
1637 | | /***/ (function(module, exports, __webpack_require__) { |
1638 | | |
1639 | | 'use strict'; |
1640 | | // 19.1.3.6 Object.prototype.toString() |
1641 | | var classof = __webpack_require__(74); |
1642 | | var test = {}; |
1643 | | test[__webpack_require__(26)('toStringTag')] = 'z'; |
1644 | | if (test + '' != '[object z]') { |
1645 | | __webpack_require__(18)(Object.prototype, 'toString', function toString() { |
1646 | | return '[object ' + classof(this) + ']'; |
1647 | | }, true); |
1648 | | } |
1649 | | |
1650 | | |
1651 | | /***/ }), |
1652 | | /* 74 */ |
1653 | | /***/ (function(module, exports, __webpack_require__) { |
1654 | | |
1655 | | // getting tag from 19.1.3.6 Object.prototype.toString() |
1656 | | var cof = __webpack_require__(34); |
1657 | | var TAG = __webpack_require__(26)('toStringTag'); |
1658 | | // ES3 wrong here |
1659 | | var ARG = cof(function () { return arguments; }()) == 'Arguments'; |
1660 | | |
1661 | | // fallback for IE11 Script Access Denied error |
1662 | | var tryGet = function (it, key) { |
1663 | | try { |
1664 | | return it[key]; |
1665 | | } catch (e) { /* empty */ } |
1666 | | }; |
1667 | | |
1668 | | module.exports = function (it) { |
1669 | | var O, T, B; |
1670 | | return it === undefined ? 'Undefined' : it === null ? 'Null' |
1671 | | // @@toStringTag case |
1672 | | : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T |
1673 | | // builtinTag case |
1674 | | : ARG ? cof(O) |
1675 | | // ES3 arguments fallback |
1676 | | : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; |
1677 | | }; |
1678 | | |
1679 | | |
1680 | | /***/ }), |
1681 | | /* 75 */ |
1682 | | /***/ (function(module, exports, __webpack_require__) { |
1683 | | |
1684 | | // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) |
1685 | | var $export = __webpack_require__(8); |
1686 | | |
1687 | | $export($export.P, 'Function', { bind: __webpack_require__(76) }); |
1688 | | |
1689 | | |
1690 | | /***/ }), |
1691 | | /* 76 */ |
1692 | | /***/ (function(module, exports, __webpack_require__) { |
1693 | | |
1694 | | 'use strict'; |
1695 | | var aFunction = __webpack_require__(21); |
1696 | | var isObject = __webpack_require__(13); |
1697 | | var invoke = __webpack_require__(77); |
1698 | | var arraySlice = [].slice; |
1699 | | var factories = {}; |
1700 | | |
1701 | | var construct = function (F, len, args) { |
1702 | | if (!(len in factories)) { |
1703 | | for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; |
1704 | | // eslint-disable-next-line no-new-func |
1705 | | factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); |
1706 | | } return factories[len](F, args); |
1707 | | }; |
1708 | | |
1709 | | module.exports = Function.bind || function bind(that /* , ...args */) { |
1710 | | var fn = aFunction(this); |
1711 | | var partArgs = arraySlice.call(arguments, 1); |
1712 | | var bound = function (/* args... */) { |
1713 | | var args = partArgs.concat(arraySlice.call(arguments)); |
1714 | | return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); |
1715 | | }; |
1716 | | if (isObject(fn.prototype)) bound.prototype = fn.prototype; |
1717 | | return bound; |
1718 | | }; |
1719 | | |
1720 | | |
1721 | | /***/ }), |
1722 | | /* 77 */ |
1723 | | /***/ (function(module, exports) { |
1724 | | |
1725 | | // fast apply, http://jsperf.lnkit.com/fast-apply/5 |
1726 | | module.exports = function (fn, args, that) { |
1727 | | var un = that === undefined; |
1728 | | switch (args.length) { |
1729 | | case 0: return un ? fn() |
1730 | | : fn.call(that); |
1731 | | case 1: return un ? fn(args[0]) |
1732 | | : fn.call(that, args[0]); |
1733 | | case 2: return un ? fn(args[0], args[1]) |
1734 | | : fn.call(that, args[0], args[1]); |
1735 | | case 3: return un ? fn(args[0], args[1], args[2]) |
1736 | | : fn.call(that, args[0], args[1], args[2]); |
1737 | | case 4: return un ? fn(args[0], args[1], args[2], args[3]) |
1738 | | : fn.call(that, args[0], args[1], args[2], args[3]); |
1739 | | } return fn.apply(that, args); |
1740 | | }; |
1741 | | |
1742 | | |
1743 | | /***/ }), |
1744 | | /* 78 */ |
1745 | | /***/ (function(module, exports, __webpack_require__) { |
1746 | | |
1747 | | var dP = __webpack_require__(11).f; |
1748 | | var FProto = Function.prototype; |
1749 | | var nameRE = /^\s*function ([^ (]*)/; |
1750 | | var NAME = 'name'; |
1751 | | |
1752 | | // 19.2.4.2 name |
1753 | | NAME in FProto || __webpack_require__(6) && dP(FProto, NAME, { |
1754 | | configurable: true, |
1755 | | get: function () { |
1756 | | try { |
1757 | | return ('' + this).match(nameRE)[1]; |
1758 | | } catch (e) { |
1759 | | return ''; |
1760 | | } |
1761 | | } |
1762 | | }); |
1763 | | |
1764 | | |
1765 | | /***/ }), |
1766 | | /* 79 */ |
1767 | | /***/ (function(module, exports, __webpack_require__) { |
1768 | | |
1769 | | 'use strict'; |
1770 | | var isObject = __webpack_require__(13); |
1771 | | var getPrototypeOf = __webpack_require__(58); |
1772 | | var HAS_INSTANCE = __webpack_require__(26)('hasInstance'); |
1773 | | var FunctionProto = Function.prototype; |
1774 | | // 19.2.3.6 Function.prototype[@@hasInstance](V) |
1775 | | if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(11).f(FunctionProto, HAS_INSTANCE, { value: function (O) { |
1776 | | if (typeof this != 'function' || !isObject(O)) return false; |
1777 | | if (!isObject(this.prototype)) return O instanceof this; |
1778 | | // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: |
1779 | | while (O = getPrototypeOf(O)) if (this.prototype === O) return true; |
1780 | | return false; |
1781 | | } }); |
1782 | | |
1783 | | |
1784 | | /***/ }), |
1785 | | /* 80 */ |
1786 | | /***/ (function(module, exports, __webpack_require__) { |
1787 | | |
1788 | | var $export = __webpack_require__(8); |
1789 | | var $parseInt = __webpack_require__(81); |
1790 | | // 18.2.5 parseInt(string, radix) |
1791 | | $export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); |
1792 | | |
1793 | | |
1794 | | /***/ }), |
1795 | | /* 81 */ |
1796 | | /***/ (function(module, exports, __webpack_require__) { |
1797 | | |
1798 | | var $parseInt = __webpack_require__(4).parseInt; |
1799 | | var $trim = __webpack_require__(82).trim; |
1800 | | var ws = __webpack_require__(83); |
1801 | | var hex = /^[-+]?0[xX]/; |
1802 | | |
1803 | | module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { |
1804 | | var string = $trim(String(str), 3); |
1805 | | return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); |
1806 | | } : $parseInt; |
1807 | | |
1808 | | |
1809 | | /***/ }), |
1810 | | /* 82 */ |
1811 | | /***/ (function(module, exports, __webpack_require__) { |
1812 | | |
1813 | | var $export = __webpack_require__(8); |
1814 | | var defined = __webpack_require__(35); |
1815 | | var fails = __webpack_require__(7); |
1816 | | var spaces = __webpack_require__(83); |
1817 | | var space = '[' + spaces + ']'; |
1818 | | var non = '\u200b\u0085'; |
1819 | | var ltrim = RegExp('^' + space + space + '*'); |
1820 | | var rtrim = RegExp(space + space + '*$'); |
1821 | | |
1822 | | var exporter = function (KEY, exec, ALIAS) { |
1823 | | var exp = {}; |
1824 | | var FORCE = fails(function () { |
1825 | | return !!spaces[KEY]() || non[KEY]() != non; |
1826 | | }); |
1827 | | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; |
1828 | | if (ALIAS) exp[ALIAS] = fn; |
1829 | | $export($export.P + $export.F * FORCE, 'String', exp); |
1830 | | }; |
1831 | | |
1832 | | // 1 -> String#trimLeft |
1833 | | // 2 -> String#trimRight |
1834 | | // 3 -> String#trim |
1835 | | var trim = exporter.trim = function (string, TYPE) { |
1836 | | string = String(defined(string)); |
1837 | | if (TYPE & 1) string = string.replace(ltrim, ''); |
1838 | | if (TYPE & 2) string = string.replace(rtrim, ''); |
1839 | | return string; |
1840 | | }; |
1841 | | |
1842 | | module.exports = exporter; |
1843 | | |
1844 | | |
1845 | | /***/ }), |
1846 | | /* 83 */ |
1847 | | /***/ (function(module, exports) { |
1848 | | |
1849 | | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + |
1850 | | '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; |
1851 | | |
1852 | | |
1853 | | /***/ }), |
1854 | | /* 84 */ |
1855 | | /***/ (function(module, exports, __webpack_require__) { |
1856 | | |
1857 | | var $export = __webpack_require__(8); |
1858 | | var $parseFloat = __webpack_require__(85); |
1859 | | // 18.2.4 parseFloat(string) |
1860 | | $export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat }); |
1861 | | |
1862 | | |
1863 | | /***/ }), |
1864 | | /* 85 */ |
1865 | | /***/ (function(module, exports, __webpack_require__) { |
1866 | | |
1867 | | var $parseFloat = __webpack_require__(4).parseFloat; |
1868 | | var $trim = __webpack_require__(82).trim; |
1869 | | |
1870 | | module.exports = 1 / $parseFloat(__webpack_require__(83) + '-0') !== -Infinity ? function parseFloat(str) { |
1871 | | var string = $trim(String(str), 3); |
1872 | | var result = $parseFloat(string); |
1873 | | return result === 0 && string.charAt(0) == '-' ? -0 : result; |
1874 | | } : $parseFloat; |
1875 | | |
1876 | | |
1877 | | /***/ }), |
1878 | | /* 86 */ |
1879 | | /***/ (function(module, exports, __webpack_require__) { |
1880 | | |
1881 | | 'use strict'; |
1882 | | var global = __webpack_require__(4); |
1883 | | var has = __webpack_require__(5); |
1884 | | var cof = __webpack_require__(34); |
1885 | | var inheritIfRequired = __webpack_require__(87); |
1886 | | var toPrimitive = __webpack_require__(16); |
1887 | | var fails = __webpack_require__(7); |
1888 | | var gOPN = __webpack_require__(49).f; |
1889 | | var gOPD = __webpack_require__(50).f; |
1890 | | var dP = __webpack_require__(11).f; |
1891 | | var $trim = __webpack_require__(82).trim; |
1892 | | var NUMBER = 'Number'; |
1893 | | var $Number = global[NUMBER]; |
1894 | | var Base = $Number; |
1895 | | var proto = $Number.prototype; |
1896 | | // Opera ~12 has broken Object#toString |
1897 | | var BROKEN_COF = cof(__webpack_require__(45)(proto)) == NUMBER; |
1898 | | var TRIM = 'trim' in String.prototype; |
1899 | | |
1900 | | // 7.1.3 ToNumber(argument) |
1901 | | var toNumber = function (argument) { |
1902 | | var it = toPrimitive(argument, false); |
1903 | | if (typeof it == 'string' && it.length > 2) { |
1904 | | it = TRIM ? it.trim() : $trim(it, 3); |
1905 | | var first = it.charCodeAt(0); |
1906 | | var third, radix, maxCode; |
1907 | | if (first === 43 || first === 45) { |
1908 | | third = it.charCodeAt(2); |
1909 | | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix |
1910 | | } else if (first === 48) { |
1911 | | switch (it.charCodeAt(1)) { |
1912 | | case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i |
1913 | | case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i |
1914 | | default: return +it; |
1915 | | } |
1916 | | for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { |
1917 | | code = digits.charCodeAt(i); |
1918 | | // parseInt parses a string to a first unavailable symbol |
1919 | | // but ToNumber should return NaN if a string contains unavailable symbols |
1920 | | if (code < 48 || code > maxCode) return NaN; |
1921 | | } return parseInt(digits, radix); |
1922 | | } |
1923 | | } return +it; |
1924 | | }; |
1925 | | |
1926 | | if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { |
1927 | | $Number = function Number(value) { |
1928 | | var it = arguments.length < 1 ? 0 : value; |
1929 | | var that = this; |
1930 | | return that instanceof $Number |
1931 | | // check on 1..constructor(foo) case |
1932 | | && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) |
1933 | | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); |
1934 | | }; |
1935 | | for (var keys = __webpack_require__(6) ? gOPN(Base) : ( |
1936 | | // ES3: |
1937 | | 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + |
1938 | | // ES6 (in case, if modules with ES6 Number statics required before): |
1939 | | 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + |
1940 | | 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' |
1941 | | ).split(','), j = 0, key; keys.length > j; j++) { |
1942 | | if (has(Base, key = keys[j]) && !has($Number, key)) { |
1943 | | dP($Number, key, gOPD(Base, key)); |
1944 | | } |
1945 | | } |
1946 | | $Number.prototype = proto; |
1947 | | proto.constructor = $Number; |
1948 | | __webpack_require__(18)(global, NUMBER, $Number); |
1949 | | } |
1950 | | |
1951 | | |
1952 | | /***/ }), |
1953 | | /* 87 */ |
1954 | | /***/ (function(module, exports, __webpack_require__) { |
1955 | | |
1956 | | var isObject = __webpack_require__(13); |
1957 | | var setPrototypeOf = __webpack_require__(72).set; |
1958 | | module.exports = function (that, target, C) { |
1959 | | var S = target.constructor; |
1960 | | var P; |
1961 | | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { |
1962 | | setPrototypeOf(that, P); |
1963 | | } return that; |
1964 | | }; |
1965 | | |
1966 | | |
1967 | | /***/ }), |
1968 | | /* 88 */ |
1969 | | /***/ (function(module, exports, __webpack_require__) { |
1970 | | |
1971 | | 'use strict'; |
1972 | | var $export = __webpack_require__(8); |
1973 | | var toInteger = __webpack_require__(38); |
1974 | | var aNumberValue = __webpack_require__(89); |
1975 | | var repeat = __webpack_require__(90); |
1976 | | var $toFixed = 1.0.toFixed; |
1977 | | var floor = Math.floor; |
1978 | | var data = [0, 0, 0, 0, 0, 0]; |
1979 | | var ERROR = 'Number.toFixed: incorrect invocation!'; |
1980 | | var ZERO = '0'; |
1981 | | |
1982 | | var multiply = function (n, c) { |
1983 | | var i = -1; |
1984 | | var c2 = c; |
1985 | | while (++i < 6) { |
1986 | | c2 += n * data[i]; |
1987 | | data[i] = c2 % 1e7; |
1988 | | c2 = floor(c2 / 1e7); |
1989 | | } |
1990 | | }; |
1991 | | var divide = function (n) { |
1992 | | var i = 6; |
1993 | | var c = 0; |
1994 | | while (--i >= 0) { |
1995 | | c += data[i]; |
1996 | | data[i] = floor(c / n); |
1997 | | c = (c % n) * 1e7; |
1998 | | } |
1999 | | }; |
2000 | | var numToString = function () { |
2001 | | var i = 6; |
2002 | | var s = ''; |
2003 | | while (--i >= 0) { |
2004 | | if (s !== '' || i === 0 || data[i] !== 0) { |
2005 | | var t = String(data[i]); |
2006 | | s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t; |
2007 | | } |
2008 | | } return s; |
2009 | | }; |
2010 | | var pow = function (x, n, acc) { |
2011 | | return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); |
2012 | | }; |
2013 | | var log = function (x) { |
2014 | | var n = 0; |
2015 | | var x2 = x; |
2016 | | while (x2 >= 4096) { |
2017 | | n += 12; |
2018 | | x2 /= 4096; |
2019 | | } |
2020 | | while (x2 >= 2) { |
2021 | | n += 1; |
2022 | | x2 /= 2; |
2023 | | } return n; |
2024 | | }; |
2025 | | |
2026 | | $export($export.P + $export.F * (!!$toFixed && ( |
2027 | | 0.00008.toFixed(3) !== '0.000' || |
2028 | | 0.9.toFixed(0) !== '1' || |
2029 | | 1.255.toFixed(2) !== '1.25' || |
2030 | | 1000000000000000128.0.toFixed(0) !== '1000000000000000128' |
2031 | | ) || !__webpack_require__(7)(function () { |
2032 | | // V8 ~ Android 4.3- |
2033 | | $toFixed.call({}); |
2034 | | })), 'Number', { |
2035 | | toFixed: function toFixed(fractionDigits) { |
2036 | | var x = aNumberValue(this, ERROR); |
2037 | | var f = toInteger(fractionDigits); |
2038 | | var s = ''; |
2039 | | var m = ZERO; |
2040 | | var e, z, j, k; |
2041 | | if (f < 0 || f > 20) throw RangeError(ERROR); |
2042 | | // eslint-disable-next-line no-self-compare |
2043 | | if (x != x) return 'NaN'; |
2044 | | if (x <= -1e21 || x >= 1e21) return String(x); |
2045 | | if (x < 0) { |
2046 | | s = '-'; |
2047 | | x = -x; |
2048 | | } |
2049 | | if (x > 1e-21) { |
2050 | | e = log(x * pow(2, 69, 1)) - 69; |
2051 | | z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1); |
2052 | | z *= 0x10000000000000; |
2053 | | e = 52 - e; |
2054 | | if (e > 0) { |
2055 | | multiply(0, z); |
2056 | | j = f; |
2057 | | while (j >= 7) { |
2058 | | multiply(1e7, 0); |
2059 | | j -= 7; |
2060 | | } |
2061 | | multiply(pow(10, j, 1), 0); |
2062 | | j = e - 1; |
2063 | | while (j >= 23) { |
2064 | | divide(1 << 23); |
2065 | | j -= 23; |
2066 | | } |
2067 | | divide(1 << j); |
2068 | | multiply(1, 1); |
2069 | | divide(2); |
2070 | | m = numToString(); |
2071 | | } else { |
2072 | | multiply(0, z); |
2073 | | multiply(1 << -e, 0); |
2074 | | m = numToString() + repeat.call(ZERO, f); |
2075 | | } |
2076 | | } |
2077 | | if (f > 0) { |
2078 | | k = m.length; |
2079 | | m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f)); |
2080 | | } else { |
2081 | | m = s + m; |
2082 | | } return m; |
2083 | | } |
2084 | | }); |
2085 | | |
2086 | | |
2087 | | /***/ }), |
2088 | | /* 89 */ |
2089 | | /***/ (function(module, exports, __webpack_require__) { |
2090 | | |
2091 | | var cof = __webpack_require__(34); |
2092 | | module.exports = function (it, msg) { |
2093 | | if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg); |
2094 | | return +it; |
2095 | | }; |
2096 | | |
2097 | | |
2098 | | /***/ }), |
2099 | | /* 90 */ |
2100 | | /***/ (function(module, exports, __webpack_require__) { |
2101 | | |
2102 | | 'use strict'; |
2103 | | var toInteger = __webpack_require__(38); |
2104 | | var defined = __webpack_require__(35); |
2105 | | |
2106 | | module.exports = function repeat(count) { |
2107 | | var str = String(defined(this)); |
2108 | | var res = ''; |
2109 | | var n = toInteger(count); |
2110 | | if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); |
2111 | | for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; |
2112 | | return res; |
2113 | | }; |
2114 | | |
2115 | | |
2116 | | /***/ }), |
2117 | | /* 91 */ |
2118 | | /***/ (function(module, exports, __webpack_require__) { |
2119 | | |
2120 | | 'use strict'; |
2121 | | var $export = __webpack_require__(8); |
2122 | | var $fails = __webpack_require__(7); |
2123 | | var aNumberValue = __webpack_require__(89); |
2124 | | var $toPrecision = 1.0.toPrecision; |
2125 | | |
2126 | | $export($export.P + $export.F * ($fails(function () { |
2127 | | // IE7- |
2128 | | return $toPrecision.call(1, undefined) !== '1'; |
2129 | | }) || !$fails(function () { |
2130 | | // V8 ~ Android 4.3- |
2131 | | $toPrecision.call({}); |
2132 | | })), 'Number', { |
2133 | | toPrecision: function toPrecision(precision) { |
2134 | | var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!'); |
2135 | | return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision); |
2136 | | } |
2137 | | }); |
2138 | | |
2139 | | |
2140 | | /***/ }), |
2141 | | /* 92 */ |
2142 | | /***/ (function(module, exports, __webpack_require__) { |
2143 | | |
2144 | | // 20.1.2.1 Number.EPSILON |
2145 | | var $export = __webpack_require__(8); |
2146 | | |
2147 | | $export($export.S, 'Number', { EPSILON: Math.pow(2, -52) }); |
2148 | | |
2149 | | |
2150 | | /***/ }), |
2151 | | /* 93 */ |
2152 | | /***/ (function(module, exports, __webpack_require__) { |
2153 | | |
2154 | | // 20.1.2.2 Number.isFinite(number) |
2155 | | var $export = __webpack_require__(8); |
2156 | | var _isFinite = __webpack_require__(4).isFinite; |
2157 | | |
2158 | | $export($export.S, 'Number', { |
2159 | | isFinite: function isFinite(it) { |
2160 | | return typeof it == 'number' && _isFinite(it); |
2161 | | } |
2162 | | }); |
2163 | | |
2164 | | |
2165 | | /***/ }), |
2166 | | /* 94 */ |
2167 | | /***/ (function(module, exports, __webpack_require__) { |
2168 | | |
2169 | | // 20.1.2.3 Number.isInteger(number) |
2170 | | var $export = __webpack_require__(8); |
2171 | | |
2172 | | $export($export.S, 'Number', { isInteger: __webpack_require__(95) }); |
2173 | | |
2174 | | |
2175 | | /***/ }), |
2176 | | /* 95 */ |
2177 | | /***/ (function(module, exports, __webpack_require__) { |
2178 | | |
2179 | | // 20.1.2.3 Number.isInteger(number) |
2180 | | var isObject = __webpack_require__(13); |
2181 | | var floor = Math.floor; |
2182 | | module.exports = function isInteger(it) { |
2183 | | return !isObject(it) && isFinite(it) && floor(it) === it; |
2184 | | }; |
2185 | | |
2186 | | |
2187 | | /***/ }), |
2188 | | /* 96 */ |
2189 | | /***/ (function(module, exports, __webpack_require__) { |
2190 | | |
2191 | | // 20.1.2.4 Number.isNaN(number) |
2192 | | var $export = __webpack_require__(8); |
2193 | | |
2194 | | $export($export.S, 'Number', { |
2195 | | isNaN: function isNaN(number) { |
2196 | | // eslint-disable-next-line no-self-compare |
2197 | | return number != number; |
2198 | | } |
2199 | | }); |
2200 | | |
2201 | | |
2202 | | /***/ }), |
2203 | | /* 97 */ |
2204 | | /***/ (function(module, exports, __webpack_require__) { |
2205 | | |
2206 | | // 20.1.2.5 Number.isSafeInteger(number) |
2207 | | var $export = __webpack_require__(8); |
2208 | | var isInteger = __webpack_require__(95); |
2209 | | var abs = Math.abs; |
2210 | | |
2211 | | $export($export.S, 'Number', { |
2212 | | isSafeInteger: function isSafeInteger(number) { |
2213 | | return isInteger(number) && abs(number) <= 0x1fffffffffffff; |
2214 | | } |
2215 | | }); |
2216 | | |
2217 | | |
2218 | | /***/ }), |
2219 | | /* 98 */ |
2220 | | /***/ (function(module, exports, __webpack_require__) { |
2221 | | |
2222 | | // 20.1.2.6 Number.MAX_SAFE_INTEGER |
2223 | | var $export = __webpack_require__(8); |
2224 | | |
2225 | | $export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); |
2226 | | |
2227 | | |
2228 | | /***/ }), |
2229 | | /* 99 */ |
2230 | | /***/ (function(module, exports, __webpack_require__) { |
2231 | | |
2232 | | // 20.1.2.10 Number.MIN_SAFE_INTEGER |
2233 | | var $export = __webpack_require__(8); |
2234 | | |
2235 | | $export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); |
2236 | | |
2237 | | |
2238 | | /***/ }), |
2239 | | /* 100 */ |
2240 | | /***/ (function(module, exports, __webpack_require__) { |
2241 | | |
2242 | | var $export = __webpack_require__(8); |
2243 | | var $parseFloat = __webpack_require__(85); |
2244 | | // 20.1.2.12 Number.parseFloat(string) |
2245 | | $export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat }); |
2246 | | |
2247 | | |
2248 | | /***/ }), |
2249 | | /* 101 */ |
2250 | | /***/ (function(module, exports, __webpack_require__) { |
2251 | | |
2252 | | var $export = __webpack_require__(8); |
2253 | | var $parseInt = __webpack_require__(81); |
2254 | | // 20.1.2.13 Number.parseInt(string, radix) |
2255 | | $export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt }); |
2256 | | |
2257 | | |
2258 | | /***/ }), |
2259 | | /* 102 */ |
2260 | | /***/ (function(module, exports, __webpack_require__) { |
2261 | | |
2262 | | // 20.2.2.3 Math.acosh(x) |
2263 | | var $export = __webpack_require__(8); |
2264 | | var log1p = __webpack_require__(103); |
2265 | | var sqrt = Math.sqrt; |
2266 | | var $acosh = Math.acosh; |
2267 | | |
2268 | | $export($export.S + $export.F * !($acosh |
2269 | | // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 |
2270 | | && Math.floor($acosh(Number.MAX_VALUE)) == 710 |
2271 | | // Tor Browser bug: Math.acosh(Infinity) -> NaN |
2272 | | && $acosh(Infinity) == Infinity |
2273 | | ), 'Math', { |
2274 | | acosh: function acosh(x) { |
2275 | | return (x = +x) < 1 ? NaN : x > 94906265.62425156 |
2276 | | ? Math.log(x) + Math.LN2 |
2277 | | : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); |
2278 | | } |
2279 | | }); |
2280 | | |
2281 | | |
2282 | | /***/ }), |
2283 | | /* 103 */ |
2284 | | /***/ (function(module, exports) { |
2285 | | |
2286 | | // 20.2.2.20 Math.log1p(x) |
2287 | | module.exports = Math.log1p || function log1p(x) { |
2288 | | return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); |
2289 | | }; |
2290 | | |
2291 | | |
2292 | | /***/ }), |
2293 | | /* 104 */ |
2294 | | /***/ (function(module, exports, __webpack_require__) { |
2295 | | |
2296 | | // 20.2.2.5 Math.asinh(x) |
2297 | | var $export = __webpack_require__(8); |
2298 | | var $asinh = Math.asinh; |
2299 | | |
2300 | | function asinh(x) { |
2301 | | return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1)); |
2302 | | } |
2303 | | |
2304 | | // Tor Browser bug: Math.asinh(0) -> -0 |
2305 | | $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); |
2306 | | |
2307 | | |
2308 | | /***/ }), |
2309 | | /* 105 */ |
2310 | | /***/ (function(module, exports, __webpack_require__) { |
2311 | | |
2312 | | // 20.2.2.7 Math.atanh(x) |
2313 | | var $export = __webpack_require__(8); |
2314 | | var $atanh = Math.atanh; |
2315 | | |
2316 | | // Tor Browser bug: Math.atanh(-0) -> 0 |
2317 | | $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { |
2318 | | atanh: function atanh(x) { |
2319 | | return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2; |
2320 | | } |
2321 | | }); |
2322 | | |
2323 | | |
2324 | | /***/ }), |
2325 | | /* 106 */ |
2326 | | /***/ (function(module, exports, __webpack_require__) { |
2327 | | |
2328 | | // 20.2.2.9 Math.cbrt(x) |
2329 | | var $export = __webpack_require__(8); |
2330 | | var sign = __webpack_require__(107); |
2331 | | |
2332 | | $export($export.S, 'Math', { |
2333 | | cbrt: function cbrt(x) { |
2334 | | return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3); |
2335 | | } |
2336 | | }); |
2337 | | |
2338 | | |
2339 | | /***/ }), |
2340 | | /* 107 */ |
2341 | | /***/ (function(module, exports) { |
2342 | | |
2343 | | // 20.2.2.28 Math.sign(x) |
2344 | | module.exports = Math.sign || function sign(x) { |
2345 | | // eslint-disable-next-line no-self-compare |
2346 | | return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; |
2347 | | }; |
2348 | | |
2349 | | |
2350 | | /***/ }), |
2351 | | /* 108 */ |
2352 | | /***/ (function(module, exports, __webpack_require__) { |
2353 | | |
2354 | | // 20.2.2.11 Math.clz32(x) |
2355 | | var $export = __webpack_require__(8); |
2356 | | |
2357 | | $export($export.S, 'Math', { |
2358 | | clz32: function clz32(x) { |
2359 | | return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32; |
2360 | | } |
2361 | | }); |
2362 | | |
2363 | | |
2364 | | /***/ }), |
2365 | | /* 109 */ |
2366 | | /***/ (function(module, exports, __webpack_require__) { |
2367 | | |
2368 | | // 20.2.2.12 Math.cosh(x) |
2369 | | var $export = __webpack_require__(8); |
2370 | | var exp = Math.exp; |
2371 | | |
2372 | | $export($export.S, 'Math', { |
2373 | | cosh: function cosh(x) { |
2374 | | return (exp(x = +x) + exp(-x)) / 2; |
2375 | | } |
2376 | | }); |
2377 | | |
2378 | | |
2379 | | /***/ }), |
2380 | | /* 110 */ |
2381 | | /***/ (function(module, exports, __webpack_require__) { |
2382 | | |
2383 | | // 20.2.2.14 Math.expm1(x) |
2384 | | var $export = __webpack_require__(8); |
2385 | | var $expm1 = __webpack_require__(111); |
2386 | | |
2387 | | $export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 }); |
2388 | | |
2389 | | |
2390 | | /***/ }), |
2391 | | /* 111 */ |
2392 | | /***/ (function(module, exports) { |
2393 | | |
2394 | | // 20.2.2.14 Math.expm1(x) |
2395 | | var $expm1 = Math.expm1; |
2396 | | module.exports = (!$expm1 |
2397 | | // Old FF bug |
2398 | | || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 |
2399 | | // Tor Browser bug |
2400 | | || $expm1(-2e-17) != -2e-17 |
2401 | | ) ? function expm1(x) { |
2402 | | return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; |
2403 | | } : $expm1; |
2404 | | |
2405 | | |
2406 | | /***/ }), |
2407 | | /* 112 */ |
2408 | | /***/ (function(module, exports, __webpack_require__) { |
2409 | | |
2410 | | // 20.2.2.16 Math.fround(x) |
2411 | | var $export = __webpack_require__(8); |
2412 | | |
2413 | | $export($export.S, 'Math', { fround: __webpack_require__(113) }); |
2414 | | |
2415 | | |
2416 | | /***/ }), |
2417 | | /* 113 */ |
2418 | | /***/ (function(module, exports, __webpack_require__) { |
2419 | | |
2420 | | // 20.2.2.16 Math.fround(x) |
2421 | | var sign = __webpack_require__(107); |
2422 | | var pow = Math.pow; |
2423 | | var EPSILON = pow(2, -52); |
2424 | | var EPSILON32 = pow(2, -23); |
2425 | | var MAX32 = pow(2, 127) * (2 - EPSILON32); |
2426 | | var MIN32 = pow(2, -126); |
2427 | | |
2428 | | var roundTiesToEven = function (n) { |
2429 | | return n + 1 / EPSILON - 1 / EPSILON; |
2430 | | }; |
2431 | | |
2432 | | module.exports = Math.fround || function fround(x) { |
2433 | | var $abs = Math.abs(x); |
2434 | | var $sign = sign(x); |
2435 | | var a, result; |
2436 | | if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32; |
2437 | | a = (1 + EPSILON32 / EPSILON) * $abs; |
2438 | | result = a - (a - $abs); |
2439 | | // eslint-disable-next-line no-self-compare |
2440 | | if (result > MAX32 || result != result) return $sign * Infinity; |
2441 | | return $sign * result; |
2442 | | }; |
2443 | | |
2444 | | |
2445 | | /***/ }), |
2446 | | /* 114 */ |
2447 | | /***/ (function(module, exports, __webpack_require__) { |
2448 | | |
2449 | | // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) |
2450 | | var $export = __webpack_require__(8); |
2451 | | var abs = Math.abs; |
2452 | | |
2453 | | $export($export.S, 'Math', { |
2454 | | hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars |
2455 | | var sum = 0; |
2456 | | var i = 0; |
2457 | | var aLen = arguments.length; |
2458 | | var larg = 0; |
2459 | | var arg, div; |
2460 | | while (i < aLen) { |
2461 | | arg = abs(arguments[i++]); |
2462 | | if (larg < arg) { |
2463 | | div = larg / arg; |
2464 | | sum = sum * div * div + 1; |
2465 | | larg = arg; |
2466 | | } else if (arg > 0) { |
2467 | | div = arg / larg; |
2468 | | sum += div * div; |
2469 | | } else sum += arg; |
2470 | | } |
2471 | | return larg === Infinity ? Infinity : larg * Math.sqrt(sum); |
2472 | | } |
2473 | | }); |
2474 | | |
2475 | | |
2476 | | /***/ }), |
2477 | | /* 115 */ |
2478 | | /***/ (function(module, exports, __webpack_require__) { |
2479 | | |
2480 | | // 20.2.2.18 Math.imul(x, y) |
2481 | | var $export = __webpack_require__(8); |
2482 | | var $imul = Math.imul; |
2483 | | |
2484 | | // some WebKit versions fails with big numbers, some has wrong arity |
2485 | | $export($export.S + $export.F * __webpack_require__(7)(function () { |
2486 | | return $imul(0xffffffff, 5) != -5 || $imul.length != 2; |
2487 | | }), 'Math', { |
2488 | | imul: function imul(x, y) { |
2489 | | var UINT16 = 0xffff; |
2490 | | var xn = +x; |
2491 | | var yn = +y; |
2492 | | var xl = UINT16 & xn; |
2493 | | var yl = UINT16 & yn; |
2494 | | return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0); |
2495 | | } |
2496 | | }); |
2497 | | |
2498 | | |
2499 | | /***/ }), |
2500 | | /* 116 */ |
2501 | | /***/ (function(module, exports, __webpack_require__) { |
2502 | | |
2503 | | // 20.2.2.21 Math.log10(x) |
2504 | | var $export = __webpack_require__(8); |
2505 | | |
2506 | | $export($export.S, 'Math', { |
2507 | | log10: function log10(x) { |
2508 | | return Math.log(x) * Math.LOG10E; |
2509 | | } |
2510 | | }); |
2511 | | |
2512 | | |
2513 | | /***/ }), |
2514 | | /* 117 */ |
2515 | | /***/ (function(module, exports, __webpack_require__) { |
2516 | | |
2517 | | // 20.2.2.20 Math.log1p(x) |
2518 | | var $export = __webpack_require__(8); |
2519 | | |
2520 | | $export($export.S, 'Math', { log1p: __webpack_require__(103) }); |
2521 | | |
2522 | | |
2523 | | /***/ }), |
2524 | | /* 118 */ |
2525 | | /***/ (function(module, exports, __webpack_require__) { |
2526 | | |
2527 | | // 20.2.2.22 Math.log2(x) |
2528 | | var $export = __webpack_require__(8); |
2529 | | |
2530 | | $export($export.S, 'Math', { |
2531 | | log2: function log2(x) { |
2532 | | return Math.log(x) / Math.LN2; |
2533 | | } |
2534 | | }); |
2535 | | |
2536 | | |
2537 | | /***/ }), |
2538 | | /* 119 */ |
2539 | | /***/ (function(module, exports, __webpack_require__) { |
2540 | | |
2541 | | // 20.2.2.28 Math.sign(x) |
2542 | | var $export = __webpack_require__(8); |
2543 | | |
2544 | | $export($export.S, 'Math', { sign: __webpack_require__(107) }); |
2545 | | |
2546 | | |
2547 | | /***/ }), |
2548 | | /* 120 */ |
2549 | | /***/ (function(module, exports, __webpack_require__) { |
2550 | | |
2551 | | // 20.2.2.30 Math.sinh(x) |
2552 | | var $export = __webpack_require__(8); |
2553 | | var expm1 = __webpack_require__(111); |
2554 | | var exp = Math.exp; |
2555 | | |
2556 | | // V8 near Chromium 38 has a problem with very small numbers |
2557 | | $export($export.S + $export.F * __webpack_require__(7)(function () { |
2558 | | return !Math.sinh(-2e-17) != -2e-17; |
2559 | | }), 'Math', { |
2560 | | sinh: function sinh(x) { |
2561 | | return Math.abs(x = +x) < 1 |
2562 | | ? (expm1(x) - expm1(-x)) / 2 |
2563 | | : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); |
2564 | | } |
2565 | | }); |
2566 | | |
2567 | | |
2568 | | /***/ }), |
2569 | | /* 121 */ |
2570 | | /***/ (function(module, exports, __webpack_require__) { |
2571 | | |
2572 | | // 20.2.2.33 Math.tanh(x) |
2573 | | var $export = __webpack_require__(8); |
2574 | | var expm1 = __webpack_require__(111); |
2575 | | var exp = Math.exp; |
2576 | | |
2577 | | $export($export.S, 'Math', { |
2578 | | tanh: function tanh(x) { |
2579 | | var a = expm1(x = +x); |
2580 | | var b = expm1(-x); |
2581 | | return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x)); |
2582 | | } |
2583 | | }); |
2584 | | |
2585 | | |
2586 | | /***/ }), |
2587 | | /* 122 */ |
2588 | | /***/ (function(module, exports, __webpack_require__) { |
2589 | | |
2590 | | // 20.2.2.34 Math.trunc(x) |
2591 | | var $export = __webpack_require__(8); |
2592 | | |
2593 | | $export($export.S, 'Math', { |
2594 | | trunc: function trunc(it) { |
2595 | | return (it > 0 ? Math.floor : Math.ceil)(it); |
2596 | | } |
2597 | | }); |
2598 | | |
2599 | | |
2600 | | /***/ }), |
2601 | | /* 123 */ |
2602 | | /***/ (function(module, exports, __webpack_require__) { |
2603 | | |
2604 | | var $export = __webpack_require__(8); |
2605 | | var toAbsoluteIndex = __webpack_require__(39); |
2606 | | var fromCharCode = String.fromCharCode; |
2607 | | var $fromCodePoint = String.fromCodePoint; |
2608 | | |
2609 | | // length should be 1, old FF problem |
2610 | | $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { |
2611 | | // 21.1.2.2 String.fromCodePoint(...codePoints) |
2612 | | fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars |
2613 | | var res = []; |
2614 | | var aLen = arguments.length; |
2615 | | var i = 0; |
2616 | | var code; |
2617 | | while (aLen > i) { |
2618 | | code = +arguments[i++]; |
2619 | | if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); |
2620 | | res.push(code < 0x10000 |
2621 | | ? fromCharCode(code) |
2622 | | : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) |
2623 | | ); |
2624 | | } return res.join(''); |
2625 | | } |
2626 | | }); |
2627 | | |
2628 | | |
2629 | | /***/ }), |
2630 | | /* 124 */ |
2631 | | /***/ (function(module, exports, __webpack_require__) { |
2632 | | |
2633 | | var $export = __webpack_require__(8); |
2634 | | var toIObject = __webpack_require__(32); |
2635 | | var toLength = __webpack_require__(37); |
2636 | | |
2637 | | $export($export.S, 'String', { |
2638 | | // 21.1.2.4 String.raw(callSite, ...substitutions) |
2639 | | raw: function raw(callSite) { |
2640 | | var tpl = toIObject(callSite.raw); |
2641 | | var len = toLength(tpl.length); |
2642 | | var aLen = arguments.length; |
2643 | | var res = []; |
2644 | | var i = 0; |
2645 | | while (len > i) { |
2646 | | res.push(String(tpl[i++])); |
2647 | | if (i < aLen) res.push(String(arguments[i])); |
2648 | | } return res.join(''); |
2649 | | } |
2650 | | }); |
2651 | | |
2652 | | |
2653 | | /***/ }), |
2654 | | /* 125 */ |
2655 | | /***/ (function(module, exports, __webpack_require__) { |
2656 | | |
2657 | | 'use strict'; |
2658 | | // 21.1.3.25 String.prototype.trim() |
2659 | | __webpack_require__(82)('trim', function ($trim) { |
2660 | | return function trim() { |
2661 | | return $trim(this, 3); |
2662 | | }; |
2663 | | }); |
2664 | | |
2665 | | |
2666 | | /***/ }), |
2667 | | /* 126 */ |
2668 | | /***/ (function(module, exports, __webpack_require__) { |
2669 | | |
2670 | | 'use strict'; |
2671 | | var $at = __webpack_require__(127)(true); |
2672 | | |
2673 | | // 21.1.3.27 String.prototype[@@iterator]() |
2674 | | __webpack_require__(128)(String, 'String', function (iterated) { |
2675 | | this._t = String(iterated); // target |
2676 | | this._i = 0; // next index |
2677 | | // 21.1.5.2.1 %StringIteratorPrototype%.next() |
2678 | | }, function () { |
2679 | | var O = this._t; |
2680 | | var index = this._i; |
2681 | | var point; |
2682 | | if (index >= O.length) return { value: undefined, done: true }; |
2683 | | point = $at(O, index); |
2684 | | this._i += point.length; |
2685 | | return { value: point, done: false }; |
2686 | | }); |
2687 | | |
2688 | | |
2689 | | /***/ }), |
2690 | | /* 127 */ |
2691 | | /***/ (function(module, exports, __webpack_require__) { |
2692 | | |
2693 | | var toInteger = __webpack_require__(38); |
2694 | | var defined = __webpack_require__(35); |
2695 | | // true -> String#at |
2696 | | // false -> String#codePointAt |
2697 | | module.exports = function (TO_STRING) { |
2698 | | return function (that, pos) { |
2699 | | var s = String(defined(that)); |
2700 | | var i = toInteger(pos); |
2701 | | var l = s.length; |
2702 | | var a, b; |
2703 | | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; |
2704 | | a = s.charCodeAt(i); |
2705 | | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff |
2706 | | ? TO_STRING ? s.charAt(i) : a |
2707 | | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; |
2708 | | }; |
2709 | | }; |
2710 | | |
2711 | | |
2712 | | /***/ }), |
2713 | | /* 128 */ |
2714 | | /***/ (function(module, exports, __webpack_require__) { |
2715 | | |
2716 | | 'use strict'; |
2717 | | var LIBRARY = __webpack_require__(24); |
2718 | | var $export = __webpack_require__(8); |
2719 | | var redefine = __webpack_require__(18); |
2720 | | var hide = __webpack_require__(10); |
2721 | | var Iterators = __webpack_require__(129); |
2722 | | var $iterCreate = __webpack_require__(130); |
2723 | | var setToStringTag = __webpack_require__(25); |
2724 | | var getPrototypeOf = __webpack_require__(58); |
2725 | | var ITERATOR = __webpack_require__(26)('iterator'); |
2726 | | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` |
2727 | | var FF_ITERATOR = '@@iterator'; |
2728 | | var KEYS = 'keys'; |
2729 | | var VALUES = 'values'; |
2730 | | |
2731 | | var returnThis = function () { return this; }; |
2732 | | |
2733 | | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { |
2734 | | $iterCreate(Constructor, NAME, next); |
2735 | | var getMethod = function (kind) { |
2736 | | if (!BUGGY && kind in proto) return proto[kind]; |
2737 | | switch (kind) { |
2738 | | case KEYS: return function keys() { return new Constructor(this, kind); }; |
2739 | | case VALUES: return function values() { return new Constructor(this, kind); }; |
2740 | | } return function entries() { return new Constructor(this, kind); }; |
2741 | | }; |
2742 | | var TAG = NAME + ' Iterator'; |
2743 | | var DEF_VALUES = DEFAULT == VALUES; |
2744 | | var VALUES_BUG = false; |
2745 | | var proto = Base.prototype; |
2746 | | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; |
2747 | | var $default = $native || getMethod(DEFAULT); |
2748 | | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; |
2749 | | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; |
2750 | | var methods, key, IteratorPrototype; |
2751 | | // Fix native |
2752 | | if ($anyNative) { |
2753 | | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); |
2754 | | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { |
2755 | | // Set @@toStringTag to native iterators |
2756 | | setToStringTag(IteratorPrototype, TAG, true); |
2757 | | // fix for some old engines |
2758 | | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); |
2759 | | } |
2760 | | } |
2761 | | // fix Array#{values, @@iterator}.name in V8 / FF |
2762 | | if (DEF_VALUES && $native && $native.name !== VALUES) { |
2763 | | VALUES_BUG = true; |
2764 | | $default = function values() { return $native.call(this); }; |
2765 | | } |
2766 | | // Define iterator |
2767 | | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { |
2768 | | hide(proto, ITERATOR, $default); |
2769 | | } |
2770 | | // Plug for library |
2771 | | Iterators[NAME] = $default; |
2772 | | Iterators[TAG] = returnThis; |
2773 | | if (DEFAULT) { |
2774 | | methods = { |
2775 | | values: DEF_VALUES ? $default : getMethod(VALUES), |
2776 | | keys: IS_SET ? $default : getMethod(KEYS), |
2777 | | entries: $entries |
2778 | | }; |
2779 | | if (FORCED) for (key in methods) { |
2780 | | if (!(key in proto)) redefine(proto, key, methods[key]); |
2781 | | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); |
2782 | | } |
2783 | | return methods; |
2784 | | }; |
2785 | | |
2786 | | |
2787 | | /***/ }), |
2788 | | /* 129 */ |
2789 | | /***/ (function(module, exports) { |
2790 | | |
2791 | | module.exports = {}; |
2792 | | |
2793 | | |
2794 | | /***/ }), |
2795 | | /* 130 */ |
2796 | | /***/ (function(module, exports, __webpack_require__) { |
2797 | | |
2798 | | 'use strict'; |
2799 | | var create = __webpack_require__(45); |
2800 | | var descriptor = __webpack_require__(17); |
2801 | | var setToStringTag = __webpack_require__(25); |
2802 | | var IteratorPrototype = {}; |
2803 | | |
2804 | | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() |
2805 | | __webpack_require__(10)(IteratorPrototype, __webpack_require__(26)('iterator'), function () { return this; }); |
2806 | | |
2807 | | module.exports = function (Constructor, NAME, next) { |
2808 | | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); |
2809 | | setToStringTag(Constructor, NAME + ' Iterator'); |
2810 | | }; |
2811 | | |
2812 | | |
2813 | | /***/ }), |
2814 | | /* 131 */ |
2815 | | /***/ (function(module, exports, __webpack_require__) { |
2816 | | |
2817 | | 'use strict'; |
2818 | | var $export = __webpack_require__(8); |
2819 | | var $at = __webpack_require__(127)(false); |
2820 | | $export($export.P, 'String', { |
2821 | | // 21.1.3.3 String.prototype.codePointAt(pos) |
2822 | | codePointAt: function codePointAt(pos) { |
2823 | | return $at(this, pos); |
2824 | | } |
2825 | | }); |
2826 | | |
2827 | | |
2828 | | /***/ }), |
2829 | | /* 132 */ |
2830 | | /***/ (function(module, exports, __webpack_require__) { |
2831 | | |
2832 | | // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) |
2833 | | 'use strict'; |
2834 | | var $export = __webpack_require__(8); |
2835 | | var toLength = __webpack_require__(37); |
2836 | | var context = __webpack_require__(133); |
2837 | | var ENDS_WITH = 'endsWith'; |
2838 | | var $endsWith = ''[ENDS_WITH]; |
2839 | | |
2840 | | $export($export.P + $export.F * __webpack_require__(135)(ENDS_WITH), 'String', { |
2841 | | endsWith: function endsWith(searchString /* , endPosition = @length */) { |
2842 | | var that = context(this, searchString, ENDS_WITH); |
2843 | | var endPosition = arguments.length > 1 ? arguments[1] : undefined; |
2844 | | var len = toLength(that.length); |
2845 | | var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); |
2846 | | var search = String(searchString); |
2847 | | return $endsWith |
2848 | | ? $endsWith.call(that, search, end) |
2849 | | : that.slice(end - search.length, end) === search; |
2850 | | } |
2851 | | }); |
2852 | | |
2853 | | |
2854 | | /***/ }), |
2855 | | /* 133 */ |
2856 | | /***/ (function(module, exports, __webpack_require__) { |
2857 | | |
2858 | | // helper for String#{startsWith, endsWith, includes} |
2859 | | var isRegExp = __webpack_require__(134); |
2860 | | var defined = __webpack_require__(35); |
2861 | | |
2862 | | module.exports = function (that, searchString, NAME) { |
2863 | | if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); |
2864 | | return String(defined(that)); |
2865 | | }; |
2866 | | |
2867 | | |
2868 | | /***/ }), |
2869 | | /* 134 */ |
2870 | | /***/ (function(module, exports, __webpack_require__) { |
2871 | | |
2872 | | // 7.2.8 IsRegExp(argument) |
2873 | | var isObject = __webpack_require__(13); |
2874 | | var cof = __webpack_require__(34); |
2875 | | var MATCH = __webpack_require__(26)('match'); |
2876 | | module.exports = function (it) { |
2877 | | var isRegExp; |
2878 | | return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); |
2879 | | }; |
2880 | | |
2881 | | |
2882 | | /***/ }), |
2883 | | /* 135 */ |
2884 | | /***/ (function(module, exports, __webpack_require__) { |
2885 | | |
2886 | | var MATCH = __webpack_require__(26)('match'); |
2887 | | module.exports = function (KEY) { |
2888 | | var re = /./; |
2889 | | try { |
2890 | | '/./'[KEY](re); |
2891 | | } catch (e) { |
2892 | | try { |
2893 | | re[MATCH] = false; |
2894 | | return !'/./'[KEY](re); |
2895 | | } catch (f) { /* empty */ } |
2896 | | } return true; |
2897 | | }; |
2898 | | |
2899 | | |
2900 | | /***/ }), |
2901 | | /* 136 */ |
2902 | | /***/ (function(module, exports, __webpack_require__) { |
2903 | | |
2904 | | // 21.1.3.7 String.prototype.includes(searchString, position = 0) |
2905 | | 'use strict'; |
2906 | | var $export = __webpack_require__(8); |
2907 | | var context = __webpack_require__(133); |
2908 | | var INCLUDES = 'includes'; |
2909 | | |
2910 | | $export($export.P + $export.F * __webpack_require__(135)(INCLUDES), 'String', { |
2911 | | includes: function includes(searchString /* , position = 0 */) { |
2912 | | return !!~context(this, searchString, INCLUDES) |
2913 | | .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); |
2914 | | } |
2915 | | }); |
2916 | | |
2917 | | |
2918 | | /***/ }), |
2919 | | /* 137 */ |
2920 | | /***/ (function(module, exports, __webpack_require__) { |
2921 | | |
2922 | | var $export = __webpack_require__(8); |
2923 | | |
2924 | | $export($export.P, 'String', { |
2925 | | // 21.1.3.13 String.prototype.repeat(count) |
2926 | | repeat: __webpack_require__(90) |
2927 | | }); |
2928 | | |
2929 | | |
2930 | | /***/ }), |
2931 | | /* 138 */ |
2932 | | /***/ (function(module, exports, __webpack_require__) { |
2933 | | |
2934 | | // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) |
2935 | | 'use strict'; |
2936 | | var $export = __webpack_require__(8); |
2937 | | var toLength = __webpack_require__(37); |
2938 | | var context = __webpack_require__(133); |
2939 | | var STARTS_WITH = 'startsWith'; |
2940 | | var $startsWith = ''[STARTS_WITH]; |
2941 | | |
2942 | | $export($export.P + $export.F * __webpack_require__(135)(STARTS_WITH), 'String', { |
2943 | | startsWith: function startsWith(searchString /* , position = 0 */) { |
2944 | | var that = context(this, searchString, STARTS_WITH); |
2945 | | var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); |
2946 | | var search = String(searchString); |
2947 | | return $startsWith |
2948 | | ? $startsWith.call(that, search, index) |
2949 | | : that.slice(index, index + search.length) === search; |
2950 | | } |
2951 | | }); |
2952 | | |
2953 | | |
2954 | | /***/ }), |
2955 | | /* 139 */ |
2956 | | /***/ (function(module, exports, __webpack_require__) { |
2957 | | |
2958 | | 'use strict'; |
2959 | | // B.2.3.2 String.prototype.anchor(name) |
2960 | | __webpack_require__(140)('anchor', function (createHTML) { |
2961 | | return function anchor(name) { |
2962 | | return createHTML(this, 'a', 'name', name); |
2963 | | }; |
2964 | | }); |
2965 | | |
2966 | | |
2967 | | /***/ }), |
2968 | | /* 140 */ |
2969 | | /***/ (function(module, exports, __webpack_require__) { |
2970 | | |
2971 | | var $export = __webpack_require__(8); |
2972 | | var fails = __webpack_require__(7); |
2973 | | var defined = __webpack_require__(35); |
2974 | | var quot = /"/g; |
2975 | | // B.2.3.2.1 CreateHTML(string, tag, attribute, value) |
2976 | | var createHTML = function (string, tag, attribute, value) { |
2977 | | var S = String(defined(string)); |
2978 | | var p1 = '<' + tag; |
2979 | | if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; |
2980 | | return p1 + '>' + S + '</' + tag + '>'; |
2981 | | }; |
2982 | | module.exports = function (NAME, exec) { |
2983 | | var O = {}; |
2984 | | O[NAME] = exec(createHTML); |
2985 | | $export($export.P + $export.F * fails(function () { |
2986 | | var test = ''[NAME]('"'); |
2987 | | return test !== test.toLowerCase() || test.split('"').length > 3; |
2988 | | }), 'String', O); |
2989 | | }; |
2990 | | |
2991 | | |
2992 | | /***/ }), |
2993 | | /* 141 */ |
2994 | | /***/ (function(module, exports, __webpack_require__) { |
2995 | | |
2996 | | 'use strict'; |
2997 | | // B.2.3.3 String.prototype.big() |
2998 | | __webpack_require__(140)('big', function (createHTML) { |
2999 | | return function big() { |
3000 | | return createHTML(this, 'big', '', ''); |
3001 | | }; |
3002 | | }); |
3003 | | |
3004 | | |
3005 | | /***/ }), |
3006 | | /* 142 */ |
3007 | | /***/ (function(module, exports, __webpack_require__) { |
3008 | | |
3009 | | 'use strict'; |
3010 | | // B.2.3.4 String.prototype.blink() |
3011 | | __webpack_require__(140)('blink', function (createHTML) { |
3012 | | return function blink() { |
3013 | | return createHTML(this, 'blink', '', ''); |
3014 | | }; |
3015 | | }); |
3016 | | |
3017 | | |
3018 | | /***/ }), |
3019 | | /* 143 */ |
3020 | | /***/ (function(module, exports, __webpack_require__) { |
3021 | | |
3022 | | 'use strict'; |
3023 | | // B.2.3.5 String.prototype.bold() |
3024 | | __webpack_require__(140)('bold', function (createHTML) { |
3025 | | return function bold() { |
3026 | | return createHTML(this, 'b', '', ''); |
3027 | | }; |
3028 | | }); |
3029 | | |
3030 | | |
3031 | | /***/ }), |
3032 | | /* 144 */ |
3033 | | /***/ (function(module, exports, __webpack_require__) { |
3034 | | |
3035 | | 'use strict'; |
3036 | | // B.2.3.6 String.prototype.fixed() |
3037 | | __webpack_require__(140)('fixed', function (createHTML) { |
3038 | | return function fixed() { |
3039 | | return createHTML(this, 'tt', '', ''); |
3040 | | }; |
3041 | | }); |
3042 | | |
3043 | | |
3044 | | /***/ }), |
3045 | | /* 145 */ |
3046 | | /***/ (function(module, exports, __webpack_require__) { |
3047 | | |
3048 | | 'use strict'; |
3049 | | // B.2.3.7 String.prototype.fontcolor(color) |
3050 | | __webpack_require__(140)('fontcolor', function (createHTML) { |
3051 | | return function fontcolor(color) { |
3052 | | return createHTML(this, 'font', 'color', color); |
3053 | | }; |
3054 | | }); |
3055 | | |
3056 | | |
3057 | | /***/ }), |
3058 | | /* 146 */ |
3059 | | /***/ (function(module, exports, __webpack_require__) { |
3060 | | |
3061 | | 'use strict'; |
3062 | | // B.2.3.8 String.prototype.fontsize(size) |
3063 | | __webpack_require__(140)('fontsize', function (createHTML) { |
3064 | | return function fontsize(size) { |
3065 | | return createHTML(this, 'font', 'size', size); |
3066 | | }; |
3067 | | }); |
3068 | | |
3069 | | |
3070 | | /***/ }), |
3071 | | /* 147 */ |
3072 | | /***/ (function(module, exports, __webpack_require__) { |
3073 | | |
3074 | | 'use strict'; |
3075 | | // B.2.3.9 String.prototype.italics() |
3076 | | __webpack_require__(140)('italics', function (createHTML) { |
3077 | | return function italics() { |
3078 | | return createHTML(this, 'i', '', ''); |
3079 | | }; |
3080 | | }); |
3081 | | |
3082 | | |
3083 | | /***/ }), |
3084 | | /* 148 */ |
3085 | | /***/ (function(module, exports, __webpack_require__) { |
3086 | | |
3087 | | 'use strict'; |
3088 | | // B.2.3.10 String.prototype.link(url) |
3089 | | __webpack_require__(140)('link', function (createHTML) { |
3090 | | return function link(url) { |
3091 | | return createHTML(this, 'a', 'href', url); |
3092 | | }; |
3093 | | }); |
3094 | | |
3095 | | |
3096 | | /***/ }), |
3097 | | /* 149 */ |
3098 | | /***/ (function(module, exports, __webpack_require__) { |
3099 | | |
3100 | | 'use strict'; |
3101 | | // B.2.3.11 String.prototype.small() |
3102 | | __webpack_require__(140)('small', function (createHTML) { |
3103 | | return function small() { |
3104 | | return createHTML(this, 'small', '', ''); |
3105 | | }; |
3106 | | }); |
3107 | | |
3108 | | |
3109 | | /***/ }), |
3110 | | /* 150 */ |
3111 | | /***/ (function(module, exports, __webpack_require__) { |
3112 | | |
3113 | | 'use strict'; |
3114 | | // B.2.3.12 String.prototype.strike() |
3115 | | __webpack_require__(140)('strike', function (createHTML) { |
3116 | | return function strike() { |
3117 | | return createHTML(this, 'strike', '', ''); |
3118 | | }; |
3119 | | }); |
3120 | | |
3121 | | |
3122 | | /***/ }), |
3123 | | /* 151 */ |
3124 | | /***/ (function(module, exports, __webpack_require__) { |
3125 | | |
3126 | | 'use strict'; |
3127 | | // B.2.3.13 String.prototype.sub() |
3128 | | __webpack_require__(140)('sub', function (createHTML) { |
3129 | | return function sub() { |
3130 | | return createHTML(this, 'sub', '', ''); |
3131 | | }; |
3132 | | }); |
3133 | | |
3134 | | |
3135 | | /***/ }), |
3136 | | /* 152 */ |
3137 | | /***/ (function(module, exports, __webpack_require__) { |
3138 | | |
3139 | | 'use strict'; |
3140 | | // B.2.3.14 String.prototype.sup() |
3141 | | __webpack_require__(140)('sup', function (createHTML) { |
3142 | | return function sup() { |
3143 | | return createHTML(this, 'sup', '', ''); |
3144 | | }; |
3145 | | }); |
3146 | | |
3147 | | |
3148 | | /***/ }), |
3149 | | /* 153 */ |
3150 | | /***/ (function(module, exports, __webpack_require__) { |
3151 | | |
3152 | | // 20.3.3.1 / 15.9.4.4 Date.now() |
3153 | | var $export = __webpack_require__(8); |
3154 | | |
3155 | | $export($export.S, 'Date', { now: function () { return new Date().getTime(); } }); |
3156 | | |
3157 | | |
3158 | | /***/ }), |
3159 | | /* 154 */ |
3160 | | /***/ (function(module, exports, __webpack_require__) { |
3161 | | |
3162 | | 'use strict'; |
3163 | | var $export = __webpack_require__(8); |
3164 | | var toObject = __webpack_require__(57); |
3165 | | var toPrimitive = __webpack_require__(16); |
3166 | | |
3167 | | $export($export.P + $export.F * __webpack_require__(7)(function () { |
3168 | | return new Date(NaN).toJSON() !== null |
3169 | | || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; |
3170 | | }), 'Date', { |
3171 | | // eslint-disable-next-line no-unused-vars |
3172 | | toJSON: function toJSON(key) { |
3173 | | var O = toObject(this); |
3174 | | var pv = toPrimitive(O); |
3175 | | return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString(); |
3176 | | } |
3177 | | }); |
3178 | | |
3179 | | |
3180 | | /***/ }), |
3181 | | /* 155 */ |
3182 | | /***/ (function(module, exports, __webpack_require__) { |
3183 | | |
3184 | | // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() |
3185 | | var $export = __webpack_require__(8); |
3186 | | var toISOString = __webpack_require__(156); |
3187 | | |
3188 | | // PhantomJS / old WebKit has a broken implementations |
3189 | | $export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', { |
3190 | | toISOString: toISOString |
3191 | | }); |
3192 | | |
3193 | | |
3194 | | /***/ }), |
3195 | | /* 156 */ |
3196 | | /***/ (function(module, exports, __webpack_require__) { |
3197 | | |
3198 | | 'use strict'; |
3199 | | // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() |
3200 | | var fails = __webpack_require__(7); |
3201 | | var getTime = Date.prototype.getTime; |
3202 | | var $toISOString = Date.prototype.toISOString; |
3203 | | |
3204 | | var lz = function (num) { |
3205 | | return num > 9 ? num : '0' + num; |
3206 | | }; |
3207 | | |
3208 | | // PhantomJS / old WebKit has a broken implementations |
3209 | | module.exports = (fails(function () { |
3210 | | return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z'; |
3211 | | }) || !fails(function () { |
3212 | | $toISOString.call(new Date(NaN)); |
3213 | | })) ? function toISOString() { |
3214 | | if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value'); |
3215 | | var d = this; |
3216 | | var y = d.getUTCFullYear(); |
3217 | | var m = d.getUTCMilliseconds(); |
3218 | | var s = y < 0 ? '-' : y > 9999 ? '+' : ''; |
3219 | | return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + |
3220 | | '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + |
3221 | | 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + |
3222 | | ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; |
3223 | | } : $toISOString; |
3224 | | |
3225 | | |
3226 | | /***/ }), |
3227 | | /* 157 */ |
3228 | | /***/ (function(module, exports, __webpack_require__) { |
3229 | | |
3230 | | var DateProto = Date.prototype; |
3231 | | var INVALID_DATE = 'Invalid Date'; |
3232 | | var TO_STRING = 'toString'; |
3233 | | var $toString = DateProto[TO_STRING]; |
3234 | | var getTime = DateProto.getTime; |
3235 | | if (new Date(NaN) + '' != INVALID_DATE) { |
3236 | | __webpack_require__(18)(DateProto, TO_STRING, function toString() { |
3237 | | var value = getTime.call(this); |
3238 | | // eslint-disable-next-line no-self-compare |
3239 | | return value === value ? $toString.call(this) : INVALID_DATE; |
3240 | | }); |
3241 | | } |
3242 | | |
3243 | | |
3244 | | /***/ }), |
3245 | | /* 158 */ |
3246 | | /***/ (function(module, exports, __webpack_require__) { |
3247 | | |
3248 | | var TO_PRIMITIVE = __webpack_require__(26)('toPrimitive'); |
3249 | | var proto = Date.prototype; |
3250 | | |
3251 | | if (!(TO_PRIMITIVE in proto)) __webpack_require__(10)(proto, TO_PRIMITIVE, __webpack_require__(159)); |
3252 | | |
3253 | | |
3254 | | /***/ }), |
3255 | | /* 159 */ |
3256 | | /***/ (function(module, exports, __webpack_require__) { |
3257 | | |
3258 | | 'use strict'; |
3259 | | var anObject = __webpack_require__(12); |
3260 | | var toPrimitive = __webpack_require__(16); |
3261 | | var NUMBER = 'number'; |
3262 | | |
3263 | | module.exports = function (hint) { |
3264 | | if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint'); |
3265 | | return toPrimitive(anObject(this), hint != NUMBER); |
3266 | | }; |
3267 | | |
3268 | | |
3269 | | /***/ }), |
3270 | | /* 160 */ |
3271 | | /***/ (function(module, exports, __webpack_require__) { |
3272 | | |
3273 | | // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) |
3274 | | var $export = __webpack_require__(8); |
3275 | | |
3276 | | $export($export.S, 'Array', { isArray: __webpack_require__(44) }); |
3277 | | |
3278 | | |
3279 | | /***/ }), |
3280 | | /* 161 */ |
3281 | | /***/ (function(module, exports, __webpack_require__) { |
3282 | | |
3283 | | 'use strict'; |
3284 | | var ctx = __webpack_require__(20); |
3285 | | var $export = __webpack_require__(8); |
3286 | | var toObject = __webpack_require__(57); |
3287 | | var call = __webpack_require__(162); |
3288 | | var isArrayIter = __webpack_require__(163); |
3289 | | var toLength = __webpack_require__(37); |
3290 | | var createProperty = __webpack_require__(164); |
3291 | | var getIterFn = __webpack_require__(165); |
3292 | | |
3293 | | $export($export.S + $export.F * !__webpack_require__(166)(function (iter) { Array.from(iter); }), 'Array', { |
3294 | | // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) |
3295 | | from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { |
3296 | | var O = toObject(arrayLike); |
3297 | | var C = typeof this == 'function' ? this : Array; |
3298 | | var aLen = arguments.length; |
3299 | | var mapfn = aLen > 1 ? arguments[1] : undefined; |
3300 | | var mapping = mapfn !== undefined; |
3301 | | var index = 0; |
3302 | | var iterFn = getIterFn(O); |
3303 | | var length, result, step, iterator; |
3304 | | if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); |
3305 | | // if object isn't iterable or it's array with default iterator - use simple case |
3306 | | if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { |
3307 | | for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { |
3308 | | createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); |
3309 | | } |
3310 | | } else { |
3311 | | length = toLength(O.length); |
3312 | | for (result = new C(length); length > index; index++) { |
3313 | | createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); |
3314 | | } |
3315 | | } |
3316 | | result.length = index; |
3317 | | return result; |
3318 | | } |
3319 | | }); |
3320 | | |
3321 | | |
3322 | | /***/ }), |
3323 | | /* 162 */ |
3324 | | /***/ (function(module, exports, __webpack_require__) { |
3325 | | |
3326 | | // call something on iterator step with safe closing on error |
3327 | | var anObject = __webpack_require__(12); |
3328 | | module.exports = function (iterator, fn, value, entries) { |
3329 | | try { |
3330 | | return entries ? fn(anObject(value)[0], value[1]) : fn(value); |
3331 | | // 7.4.6 IteratorClose(iterator, completion) |
3332 | | } catch (e) { |
3333 | | var ret = iterator['return']; |
3334 | | if (ret !== undefined) anObject(ret.call(iterator)); |
3335 | | throw e; |
3336 | | } |
3337 | | }; |
3338 | | |
3339 | | |
3340 | | /***/ }), |
3341 | | /* 163 */ |
3342 | | /***/ (function(module, exports, __webpack_require__) { |
3343 | | |
3344 | | // check on default Array iterator |
3345 | | var Iterators = __webpack_require__(129); |
3346 | | var ITERATOR = __webpack_require__(26)('iterator'); |
3347 | | var ArrayProto = Array.prototype; |
3348 | | |
3349 | | module.exports = function (it) { |
3350 | | return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); |
3351 | | }; |
3352 | | |
3353 | | |
3354 | | /***/ }), |
3355 | | /* 164 */ |
3356 | | /***/ (function(module, exports, __webpack_require__) { |
3357 | | |
3358 | | 'use strict'; |
3359 | | var $defineProperty = __webpack_require__(11); |
3360 | | var createDesc = __webpack_require__(17); |
3361 | | |
3362 | | module.exports = function (object, index, value) { |
3363 | | if (index in object) $defineProperty.f(object, index, createDesc(0, value)); |
3364 | | else object[index] = value; |
3365 | | }; |
3366 | | |
3367 | | |
3368 | | /***/ }), |
3369 | | /* 165 */ |
3370 | | /***/ (function(module, exports, __webpack_require__) { |
3371 | | |
3372 | | var classof = __webpack_require__(74); |
3373 | | var ITERATOR = __webpack_require__(26)('iterator'); |
3374 | | var Iterators = __webpack_require__(129); |
3375 | | module.exports = __webpack_require__(9).getIteratorMethod = function (it) { |
3376 | | if (it != undefined) return it[ITERATOR] |
3377 | | || it['@@iterator'] |
3378 | | || Iterators[classof(it)]; |
3379 | | }; |
3380 | | |
3381 | | |
3382 | | /***/ }), |
3383 | | /* 166 */ |
3384 | | /***/ (function(module, exports, __webpack_require__) { |
3385 | | |
3386 | | var ITERATOR = __webpack_require__(26)('iterator'); |
3387 | | var SAFE_CLOSING = false; |
3388 | | |
3389 | | try { |
3390 | | var riter = [7][ITERATOR](); |
3391 | | riter['return'] = function () { SAFE_CLOSING = true; }; |
3392 | | // eslint-disable-next-line no-throw-literal |
3393 | | Array.from(riter, function () { throw 2; }); |
3394 | | } catch (e) { /* empty */ } |
3395 | | |
3396 | | module.exports = function (exec, skipClosing) { |
3397 | | if (!skipClosing && !SAFE_CLOSING) return false; |
3398 | | var safe = false; |
3399 | | try { |
3400 | | var arr = [7]; |
3401 | | var iter = arr[ITERATOR](); |
3402 | | iter.next = function () { return { done: safe = true }; }; |
3403 | | arr[ITERATOR] = function () { return iter; }; |
3404 | | exec(arr); |
3405 | | } catch (e) { /* empty */ } |
3406 | | return safe; |
3407 | | }; |
3408 | | |
3409 | | |
3410 | | /***/ }), |
3411 | | /* 167 */ |
3412 | | /***/ (function(module, exports, __webpack_require__) { |
3413 | | |
3414 | | 'use strict'; |
3415 | | var $export = __webpack_require__(8); |
3416 | | var createProperty = __webpack_require__(164); |
3417 | | |
3418 | | // WebKit Array.of isn't generic |
3419 | | $export($export.S + $export.F * __webpack_require__(7)(function () { |
3420 | | function F() { /* empty */ } |
3421 | | return !(Array.of.call(F) instanceof F); |
3422 | | }), 'Array', { |
3423 | | // 22.1.2.3 Array.of( ...items) |
3424 | | of: function of(/* ...args */) { |
3425 | | var index = 0; |
3426 | | var aLen = arguments.length; |
3427 | | var result = new (typeof this == 'function' ? this : Array)(aLen); |
3428 | | while (aLen > index) createProperty(result, index, arguments[index++]); |
3429 | | result.length = aLen; |
3430 | | return result; |
3431 | | } |
3432 | | }); |
3433 | | |
3434 | | |
3435 | | /***/ }), |
3436 | | /* 168 */ |
3437 | | /***/ (function(module, exports, __webpack_require__) { |
3438 | | |
3439 | | 'use strict'; |
3440 | | // 22.1.3.13 Array.prototype.join(separator) |
3441 | | var $export = __webpack_require__(8); |
3442 | | var toIObject = __webpack_require__(32); |
3443 | | var arrayJoin = [].join; |
3444 | | |
3445 | | // fallback for not array-like strings |
3446 | | $export($export.P + $export.F * (__webpack_require__(33) != Object || !__webpack_require__(169)(arrayJoin)), 'Array', { |
3447 | | join: function join(separator) { |
3448 | | return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator); |
3449 | | } |
3450 | | }); |
3451 | | |
3452 | | |
3453 | | /***/ }), |
3454 | | /* 169 */ |
3455 | | /***/ (function(module, exports, __webpack_require__) { |
3456 | | |
3457 | | 'use strict'; |
3458 | | var fails = __webpack_require__(7); |
3459 | | |
3460 | | module.exports = function (method, arg) { |
3461 | | return !!method && fails(function () { |
3462 | | // eslint-disable-next-line no-useless-call |
3463 | | arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); |
3464 | | }); |
3465 | | }; |
3466 | | |
3467 | | |
3468 | | /***/ }), |
3469 | | /* 170 */ |
3470 | | /***/ (function(module, exports, __webpack_require__) { |
3471 | | |
3472 | | 'use strict'; |
3473 | | var $export = __webpack_require__(8); |
3474 | | var html = __webpack_require__(47); |
3475 | | var cof = __webpack_require__(34); |
3476 | | var toAbsoluteIndex = __webpack_require__(39); |
3477 | | var toLength = __webpack_require__(37); |
3478 | | var arraySlice = [].slice; |
3479 | | |
3480 | | // fallback for not array-like ES3 strings and DOM objects |
3481 | | $export($export.P + $export.F * __webpack_require__(7)(function () { |
3482 | | if (html) arraySlice.call(html); |
3483 | | }), 'Array', { |
3484 | | slice: function slice(begin, end) { |
3485 | | var len = toLength(this.length); |
3486 | | var klass = cof(this); |
3487 | | end = end === undefined ? len : end; |
3488 | | if (klass == 'Array') return arraySlice.call(this, begin, end); |
3489 | | var start = toAbsoluteIndex(begin, len); |
3490 | | var upTo = toAbsoluteIndex(end, len); |
3491 | | var size = toLength(upTo - start); |
3492 | | var cloned = new Array(size); |
3493 | | var i = 0; |
3494 | | for (; i < size; i++) cloned[i] = klass == 'String' |
3495 | | ? this.charAt(start + i) |
3496 | | : this[start + i]; |
3497 | | return cloned; |
3498 | | } |
3499 | | }); |
3500 | | |
3501 | | |
3502 | | /***/ }), |
3503 | | /* 171 */ |
3504 | | /***/ (function(module, exports, __webpack_require__) { |
3505 | | |
3506 | | 'use strict'; |
3507 | | var $export = __webpack_require__(8); |
3508 | | var aFunction = __webpack_require__(21); |
3509 | | var toObject = __webpack_require__(57); |
3510 | | var fails = __webpack_require__(7); |
3511 | | var $sort = [].sort; |
3512 | | var test = [1, 2, 3]; |
3513 | | |
3514 | | $export($export.P + $export.F * (fails(function () { |
3515 | | // IE8- |
3516 | | test.sort(undefined); |
3517 | | }) || !fails(function () { |
3518 | | // V8 bug |
3519 | | test.sort(null); |
3520 | | // Old WebKit |
3521 | | }) || !__webpack_require__(169)($sort)), 'Array', { |
3522 | | // 22.1.3.25 Array.prototype.sort(comparefn) |
3523 | | sort: function sort(comparefn) { |
3524 | | return comparefn === undefined |
3525 | | ? $sort.call(toObject(this)) |
3526 | | : $sort.call(toObject(this), aFunction(comparefn)); |
3527 | | } |
3528 | | }); |
3529 | | |
3530 | | |
3531 | | /***/ }), |
3532 | | /* 172 */ |
3533 | | /***/ (function(module, exports, __webpack_require__) { |
3534 | | |
3535 | | 'use strict'; |
3536 | | var $export = __webpack_require__(8); |
3537 | | var $forEach = __webpack_require__(173)(0); |
3538 | | var STRICT = __webpack_require__(169)([].forEach, true); |
3539 | | |
3540 | | $export($export.P + $export.F * !STRICT, 'Array', { |
3541 | | // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg]) |
3542 | | forEach: function forEach(callbackfn /* , thisArg */) { |
3543 | | return $forEach(this, callbackfn, arguments[1]); |
3544 | | } |
3545 | | }); |
3546 | | |
3547 | | |
3548 | | /***/ }), |
3549 | | /* 173 */ |
3550 | | /***/ (function(module, exports, __webpack_require__) { |
3551 | | |
3552 | | // 0 -> Array#forEach |
3553 | | // 1 -> Array#map |
3554 | | // 2 -> Array#filter |
3555 | | // 3 -> Array#some |
3556 | | // 4 -> Array#every |
3557 | | // 5 -> Array#find |
3558 | | // 6 -> Array#findIndex |
3559 | | var ctx = __webpack_require__(20); |
3560 | | var IObject = __webpack_require__(33); |
3561 | | var toObject = __webpack_require__(57); |
3562 | | var toLength = __webpack_require__(37); |
3563 | | var asc = __webpack_require__(174); |
3564 | | module.exports = function (TYPE, $create) { |
3565 | | var IS_MAP = TYPE == 1; |
3566 | | var IS_FILTER = TYPE == 2; |
3567 | | var IS_SOME = TYPE == 3; |
3568 | | var IS_EVERY = TYPE == 4; |
3569 | | var IS_FIND_INDEX = TYPE == 6; |
3570 | | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; |
3571 | | var create = $create || asc; |
3572 | | return function ($this, callbackfn, that) { |
3573 | | var O = toObject($this); |
3574 | | var self = IObject(O); |
3575 | | var f = ctx(callbackfn, that, 3); |
3576 | | var length = toLength(self.length); |
3577 | | var index = 0; |
3578 | | var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; |
3579 | | var val, res; |
3580 | | for (;length > index; index++) if (NO_HOLES || index in self) { |
3581 | | val = self[index]; |
3582 | | res = f(val, index, O); |
3583 | | if (TYPE) { |
3584 | | if (IS_MAP) result[index] = res; // map |
3585 | | else if (res) switch (TYPE) { |
3586 | | case 3: return true; // some |
3587 | | case 5: return val; // find |
3588 | | case 6: return index; // findIndex |
3589 | | case 2: result.push(val); // filter |
3590 | | } else if (IS_EVERY) return false; // every |
3591 | | } |
3592 | | } |
3593 | | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; |
3594 | | }; |
3595 | | }; |
3596 | | |
3597 | | |
3598 | | /***/ }), |
3599 | | /* 174 */ |
3600 | | /***/ (function(module, exports, __webpack_require__) { |
3601 | | |
3602 | | // 9.4.2.3 ArraySpeciesCreate(originalArray, length) |
3603 | | var speciesConstructor = __webpack_require__(175); |
3604 | | |
3605 | | module.exports = function (original, length) { |
3606 | | return new (speciesConstructor(original))(length); |
3607 | | }; |
3608 | | |
3609 | | |
3610 | | /***/ }), |
3611 | | /* 175 */ |
3612 | | /***/ (function(module, exports, __webpack_require__) { |
3613 | | |
3614 | | var isObject = __webpack_require__(13); |
3615 | | var isArray = __webpack_require__(44); |
3616 | | var SPECIES = __webpack_require__(26)('species'); |
3617 | | |
3618 | | module.exports = function (original) { |
3619 | | var C; |
3620 | | if (isArray(original)) { |
3621 | | C = original.constructor; |
3622 | | // cross-realm fallback |
3623 | | if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; |
3624 | | if (isObject(C)) { |
3625 | | C = C[SPECIES]; |
3626 | | if (C === null) C = undefined; |
3627 | | } |
3628 | | } return C === undefined ? Array : C; |
3629 | | }; |
3630 | | |
3631 | | |
3632 | | /***/ }), |
3633 | | /* 176 */ |
3634 | | /***/ (function(module, exports, __webpack_require__) { |
3635 | | |
3636 | | 'use strict'; |
3637 | | var $export = __webpack_require__(8); |
3638 | | var $map = __webpack_require__(173)(1); |
3639 | | |
3640 | | $export($export.P + $export.F * !__webpack_require__(169)([].map, true), 'Array', { |
3641 | | // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg]) |
3642 | | map: function map(callbackfn /* , thisArg */) { |
3643 | | return $map(this, callbackfn, arguments[1]); |
3644 | | } |
3645 | | }); |
3646 | | |
3647 | | |
3648 | | /***/ }), |
3649 | | /* 177 */ |
3650 | | /***/ (function(module, exports, __webpack_require__) { |
3651 | | |
3652 | | 'use strict'; |
3653 | | var $export = __webpack_require__(8); |
3654 | | var $filter = __webpack_require__(173)(2); |
3655 | | |
3656 | | $export($export.P + $export.F * !__webpack_require__(169)([].filter, true), 'Array', { |
3657 | | // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg]) |
3658 | | filter: function filter(callbackfn /* , thisArg */) { |
3659 | | return $filter(this, callbackfn, arguments[1]); |
3660 | | } |
3661 | | }); |
3662 | | |
3663 | | |
3664 | | /***/ }), |
3665 | | /* 178 */ |
3666 | | /***/ (function(module, exports, __webpack_require__) { |
3667 | | |
3668 | | 'use strict'; |
3669 | | var $export = __webpack_require__(8); |
3670 | | var $some = __webpack_require__(173)(3); |
3671 | | |
3672 | | $export($export.P + $export.F * !__webpack_require__(169)([].some, true), 'Array', { |
3673 | | // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg]) |
3674 | | some: function some(callbackfn /* , thisArg */) { |
3675 | | return $some(this, callbackfn, arguments[1]); |
3676 | | } |
3677 | | }); |
3678 | | |
3679 | | |
3680 | | /***/ }), |
3681 | | /* 179 */ |
3682 | | /***/ (function(module, exports, __webpack_require__) { |
3683 | | |
3684 | | 'use strict'; |
3685 | | var $export = __webpack_require__(8); |
3686 | | var $every = __webpack_require__(173)(4); |
3687 | | |
3688 | | $export($export.P + $export.F * !__webpack_require__(169)([].every, true), 'Array', { |
3689 | | // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg]) |
3690 | | every: function every(callbackfn /* , thisArg */) { |
3691 | | return $every(this, callbackfn, arguments[1]); |
3692 | | } |
3693 | | }); |
3694 | | |
3695 | | |
3696 | | /***/ }), |
3697 | | /* 180 */ |
3698 | | /***/ (function(module, exports, __webpack_require__) { |
3699 | | |
3700 | | 'use strict'; |
3701 | | var $export = __webpack_require__(8); |
3702 | | var $reduce = __webpack_require__(181); |
3703 | | |
3704 | | $export($export.P + $export.F * !__webpack_require__(169)([].reduce, true), 'Array', { |
3705 | | // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue]) |
3706 | | reduce: function reduce(callbackfn /* , initialValue */) { |
3707 | | return $reduce(this, callbackfn, arguments.length, arguments[1], false); |
3708 | | } |
3709 | | }); |
3710 | | |
3711 | | |
3712 | | /***/ }), |
3713 | | /* 181 */ |
3714 | | /***/ (function(module, exports, __webpack_require__) { |
3715 | | |
3716 | | var aFunction = __webpack_require__(21); |
3717 | | var toObject = __webpack_require__(57); |
3718 | | var IObject = __webpack_require__(33); |
3719 | | var toLength = __webpack_require__(37); |
3720 | | |
3721 | | module.exports = function (that, callbackfn, aLen, memo, isRight) { |
3722 | | aFunction(callbackfn); |
3723 | | var O = toObject(that); |
3724 | | var self = IObject(O); |
3725 | | var length = toLength(O.length); |
3726 | | var index = isRight ? length - 1 : 0; |
3727 | | var i = isRight ? -1 : 1; |
3728 | | if (aLen < 2) for (;;) { |
3729 | | if (index in self) { |
3730 | | memo = self[index]; |
3731 | | index += i; |
3732 | | break; |
3733 | | } |
3734 | | index += i; |
3735 | | if (isRight ? index < 0 : length <= index) { |
3736 | | throw TypeError('Reduce of empty array with no initial value'); |
3737 | | } |
3738 | | } |
3739 | | for (;isRight ? index >= 0 : length > index; index += i) if (index in self) { |
3740 | | memo = callbackfn(memo, self[index], index, O); |
3741 | | } |
3742 | | return memo; |
3743 | | }; |
3744 | | |
3745 | | |
3746 | | /***/ }), |
3747 | | /* 182 */ |
3748 | | /***/ (function(module, exports, __webpack_require__) { |
3749 | | |
3750 | | 'use strict'; |
3751 | | var $export = __webpack_require__(8); |
3752 | | var $reduce = __webpack_require__(181); |
3753 | | |
3754 | | $export($export.P + $export.F * !__webpack_require__(169)([].reduceRight, true), 'Array', { |
3755 | | // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue]) |
3756 | | reduceRight: function reduceRight(callbackfn /* , initialValue */) { |
3757 | | return $reduce(this, callbackfn, arguments.length, arguments[1], true); |
3758 | | } |
3759 | | }); |
3760 | | |
3761 | | |
3762 | | /***/ }), |
3763 | | /* 183 */ |
3764 | | /***/ (function(module, exports, __webpack_require__) { |
3765 | | |
3766 | | 'use strict'; |
3767 | | var $export = __webpack_require__(8); |
3768 | | var $indexOf = __webpack_require__(36)(false); |
3769 | | var $native = [].indexOf; |
3770 | | var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0; |
3771 | | |
3772 | | $export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(169)($native)), 'Array', { |
3773 | | // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex]) |
3774 | | indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { |
3775 | | return NEGATIVE_ZERO |
3776 | | // convert -0 to +0 |
3777 | | ? $native.apply(this, arguments) || 0 |
3778 | | : $indexOf(this, searchElement, arguments[1]); |
3779 | | } |
3780 | | }); |
3781 | | |
3782 | | |
3783 | | /***/ }), |
3784 | | /* 184 */ |
3785 | | /***/ (function(module, exports, __webpack_require__) { |
3786 | | |
3787 | | 'use strict'; |
3788 | | var $export = __webpack_require__(8); |
3789 | | var toIObject = __webpack_require__(32); |
3790 | | var toInteger = __webpack_require__(38); |
3791 | | var toLength = __webpack_require__(37); |
3792 | | var $native = [].lastIndexOf; |
3793 | | var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0; |
3794 | | |
3795 | | $export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(169)($native)), 'Array', { |
3796 | | // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex]) |
3797 | | lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { |
3798 | | // convert -0 to +0 |
3799 | | if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0; |
3800 | | var O = toIObject(this); |
3801 | | var length = toLength(O.length); |
3802 | | var index = length - 1; |
3803 | | if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1])); |
3804 | | if (index < 0) index = length + index; |
3805 | | for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0; |
3806 | | return -1; |
3807 | | } |
3808 | | }); |
3809 | | |
3810 | | |
3811 | | /***/ }), |
3812 | | /* 185 */ |
3813 | | /***/ (function(module, exports, __webpack_require__) { |
3814 | | |
3815 | | // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) |
3816 | | var $export = __webpack_require__(8); |
3817 | | |
3818 | | $export($export.P, 'Array', { copyWithin: __webpack_require__(186) }); |
3819 | | |
3820 | | __webpack_require__(187)('copyWithin'); |
3821 | | |
3822 | | |
3823 | | /***/ }), |
3824 | | /* 186 */ |
3825 | | /***/ (function(module, exports, __webpack_require__) { |
3826 | | |
3827 | | // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) |
3828 | | 'use strict'; |
3829 | | var toObject = __webpack_require__(57); |
3830 | | var toAbsoluteIndex = __webpack_require__(39); |
3831 | | var toLength = __webpack_require__(37); |
3832 | | |
3833 | | module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { |
3834 | | var O = toObject(this); |
3835 | | var len = toLength(O.length); |
3836 | | var to = toAbsoluteIndex(target, len); |
3837 | | var from = toAbsoluteIndex(start, len); |
3838 | | var end = arguments.length > 2 ? arguments[2] : undefined; |
3839 | | var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to); |
3840 | | var inc = 1; |
3841 | | if (from < to && to < from + count) { |
3842 | | inc = -1; |
3843 | | from += count - 1; |
3844 | | to += count - 1; |
3845 | | } |
3846 | | while (count-- > 0) { |
3847 | | if (from in O) O[to] = O[from]; |
3848 | | else delete O[to]; |
3849 | | to += inc; |
3850 | | from += inc; |
3851 | | } return O; |
3852 | | }; |
3853 | | |
3854 | | |
3855 | | /***/ }), |
3856 | | /* 187 */ |
3857 | | /***/ (function(module, exports, __webpack_require__) { |
3858 | | |
3859 | | // 22.1.3.31 Array.prototype[@@unscopables] |
3860 | | var UNSCOPABLES = __webpack_require__(26)('unscopables'); |
3861 | | var ArrayProto = Array.prototype; |
3862 | | if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(10)(ArrayProto, UNSCOPABLES, {}); |
3863 | | module.exports = function (key) { |
3864 | | ArrayProto[UNSCOPABLES][key] = true; |
3865 | | }; |
3866 | | |
3867 | | |
3868 | | /***/ }), |
3869 | | /* 188 */ |
3870 | | /***/ (function(module, exports, __webpack_require__) { |
3871 | | |
3872 | | // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) |
3873 | | var $export = __webpack_require__(8); |
3874 | | |
3875 | | $export($export.P, 'Array', { fill: __webpack_require__(189) }); |
3876 | | |
3877 | | __webpack_require__(187)('fill'); |
3878 | | |
3879 | | |
3880 | | /***/ }), |
3881 | | /* 189 */ |
3882 | | /***/ (function(module, exports, __webpack_require__) { |
3883 | | |
3884 | | // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) |
3885 | | 'use strict'; |
3886 | | var toObject = __webpack_require__(57); |
3887 | | var toAbsoluteIndex = __webpack_require__(39); |
3888 | | var toLength = __webpack_require__(37); |
3889 | | module.exports = function fill(value /* , start = 0, end = @length */) { |
3890 | | var O = toObject(this); |
3891 | | var length = toLength(O.length); |
3892 | | var aLen = arguments.length; |
3893 | | var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); |
3894 | | var end = aLen > 2 ? arguments[2] : undefined; |
3895 | | var endPos = end === undefined ? length : toAbsoluteIndex(end, length); |
3896 | | while (endPos > index) O[index++] = value; |
3897 | | return O; |
3898 | | }; |
3899 | | |
3900 | | |
3901 | | /***/ }), |
3902 | | /* 190 */ |
3903 | | /***/ (function(module, exports, __webpack_require__) { |
3904 | | |
3905 | | 'use strict'; |
3906 | | // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) |
3907 | | var $export = __webpack_require__(8); |
3908 | | var $find = __webpack_require__(173)(5); |
3909 | | var KEY = 'find'; |
3910 | | var forced = true; |
3911 | | // Shouldn't skip holes |
3912 | | if (KEY in []) Array(1)[KEY](function () { forced = false; }); |
3913 | | $export($export.P + $export.F * forced, 'Array', { |
3914 | | find: function find(callbackfn /* , that = undefined */) { |
3915 | | return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
3916 | | } |
3917 | | }); |
3918 | | __webpack_require__(187)(KEY); |
3919 | | |
3920 | | |
3921 | | /***/ }), |
3922 | | /* 191 */ |
3923 | | /***/ (function(module, exports, __webpack_require__) { |
3924 | | |
3925 | | 'use strict'; |
3926 | | // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) |
3927 | | var $export = __webpack_require__(8); |
3928 | | var $find = __webpack_require__(173)(6); |
3929 | | var KEY = 'findIndex'; |
3930 | | var forced = true; |
3931 | | // Shouldn't skip holes |
3932 | | if (KEY in []) Array(1)[KEY](function () { forced = false; }); |
3933 | | $export($export.P + $export.F * forced, 'Array', { |
3934 | | findIndex: function findIndex(callbackfn /* , that = undefined */) { |
3935 | | return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
3936 | | } |
3937 | | }); |
3938 | | __webpack_require__(187)(KEY); |
3939 | | |
3940 | | |
3941 | | /***/ }), |
3942 | | /* 192 */ |
3943 | | /***/ (function(module, exports, __webpack_require__) { |
3944 | | |
3945 | | __webpack_require__(193)('Array'); |
3946 | | |
3947 | | |
3948 | | /***/ }), |
3949 | | /* 193 */ |
3950 | | /***/ (function(module, exports, __webpack_require__) { |
3951 | | |
3952 | | 'use strict'; |
3953 | | var global = __webpack_require__(4); |
3954 | | var dP = __webpack_require__(11); |
3955 | | var DESCRIPTORS = __webpack_require__(6); |
3956 | | var SPECIES = __webpack_require__(26)('species'); |
3957 | | |
3958 | | module.exports = function (KEY) { |
3959 | | var C = global[KEY]; |
3960 | | if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { |
3961 | | configurable: true, |
3962 | | get: function () { return this; } |
3963 | | }); |
3964 | | }; |
3965 | | |
3966 | | |
3967 | | /***/ }), |
3968 | | /* 194 */ |
3969 | | /***/ (function(module, exports, __webpack_require__) { |
3970 | | |
3971 | | 'use strict'; |
3972 | | var addToUnscopables = __webpack_require__(187); |
3973 | | var step = __webpack_require__(195); |
3974 | | var Iterators = __webpack_require__(129); |
3975 | | var toIObject = __webpack_require__(32); |
3976 | | |
3977 | | // 22.1.3.4 Array.prototype.entries() |
3978 | | // 22.1.3.13 Array.prototype.keys() |
3979 | | // 22.1.3.29 Array.prototype.values() |
3980 | | // 22.1.3.30 Array.prototype[@@iterator]() |
3981 | | module.exports = __webpack_require__(128)(Array, 'Array', function (iterated, kind) { |
3982 | | this._t = toIObject(iterated); // target |
3983 | | this._i = 0; // next index |
3984 | | this._k = kind; // kind |
3985 | | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() |
3986 | | }, function () { |
3987 | | var O = this._t; |
3988 | | var kind = this._k; |
3989 | | var index = this._i++; |
3990 | | if (!O || index >= O.length) { |
3991 | | this._t = undefined; |
3992 | | return step(1); |
3993 | | } |
3994 | | if (kind == 'keys') return step(0, index); |
3995 | | if (kind == 'values') return step(0, O[index]); |
3996 | | return step(0, [index, O[index]]); |
3997 | | }, 'values'); |
3998 | | |
3999 | | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) |
4000 | | Iterators.Arguments = Iterators.Array; |
4001 | | |
4002 | | addToUnscopables('keys'); |
4003 | | addToUnscopables('values'); |
4004 | | addToUnscopables('entries'); |
4005 | | |
4006 | | |
4007 | | /***/ }), |
4008 | | /* 195 */ |
4009 | | /***/ (function(module, exports) { |
4010 | | |
4011 | | module.exports = function (done, value) { |
4012 | | return { value: value, done: !!done }; |
4013 | | }; |
4014 | | |
4015 | | |
4016 | | /***/ }), |
4017 | | /* 196 */ |
4018 | | /***/ (function(module, exports, __webpack_require__) { |
4019 | | |
4020 | | var global = __webpack_require__(4); |
4021 | | var inheritIfRequired = __webpack_require__(87); |
4022 | | var dP = __webpack_require__(11).f; |
4023 | | var gOPN = __webpack_require__(49).f; |
4024 | | var isRegExp = __webpack_require__(134); |
4025 | | var $flags = __webpack_require__(197); |
4026 | | var $RegExp = global.RegExp; |
4027 | | var Base = $RegExp; |
4028 | | var proto = $RegExp.prototype; |
4029 | | var re1 = /a/g; |
4030 | | var re2 = /a/g; |
4031 | | // "new" creates a new object, old webkit buggy here |
4032 | | var CORRECT_NEW = new $RegExp(re1) !== re1; |
4033 | | |
4034 | | if (__webpack_require__(6) && (!CORRECT_NEW || __webpack_require__(7)(function () { |
4035 | | re2[__webpack_require__(26)('match')] = false; |
4036 | | // RegExp constructor can alter flags and IsRegExp works correct with @@match |
4037 | | return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; |
4038 | | }))) { |
4039 | | $RegExp = function RegExp(p, f) { |
4040 | | var tiRE = this instanceof $RegExp; |
4041 | | var piRE = isRegExp(p); |
4042 | | var fiU = f === undefined; |
4043 | | return !tiRE && piRE && p.constructor === $RegExp && fiU ? p |
4044 | | : inheritIfRequired(CORRECT_NEW |
4045 | | ? new Base(piRE && !fiU ? p.source : p, f) |
4046 | | : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) |
4047 | | , tiRE ? this : proto, $RegExp); |
4048 | | }; |
4049 | | var proxy = function (key) { |
4050 | | key in $RegExp || dP($RegExp, key, { |
4051 | | configurable: true, |
4052 | | get: function () { return Base[key]; }, |
4053 | | set: function (it) { Base[key] = it; } |
4054 | | }); |
4055 | | }; |
4056 | | for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); |
4057 | | proto.constructor = $RegExp; |
4058 | | $RegExp.prototype = proto; |
4059 | | __webpack_require__(18)(global, 'RegExp', $RegExp); |
4060 | | } |
4061 | | |
4062 | | __webpack_require__(193)('RegExp'); |
4063 | | |
4064 | | |
4065 | | /***/ }), |
4066 | | /* 197 */ |
4067 | | /***/ (function(module, exports, __webpack_require__) { |
4068 | | |
4069 | | 'use strict'; |
4070 | | // 21.2.5.3 get RegExp.prototype.flags |
4071 | | var anObject = __webpack_require__(12); |
4072 | | module.exports = function () { |
4073 | | var that = anObject(this); |
4074 | | var result = ''; |
4075 | | if (that.global) result += 'g'; |
4076 | | if (that.ignoreCase) result += 'i'; |
4077 | | if (that.multiline) result += 'm'; |
4078 | | if (that.unicode) result += 'u'; |
4079 | | if (that.sticky) result += 'y'; |
4080 | | return result; |
4081 | | }; |
4082 | | |
4083 | | |
4084 | | /***/ }), |
4085 | | /* 198 */ |
4086 | | /***/ (function(module, exports, __webpack_require__) { |
4087 | | |
4088 | | 'use strict'; |
4089 | | var regexpExec = __webpack_require__(199); |
4090 | | __webpack_require__(8)({ |
4091 | | target: 'RegExp', |
4092 | | proto: true, |
4093 | | forced: regexpExec !== /./.exec |
4094 | | }, { |
4095 | | exec: regexpExec |
4096 | | }); |
4097 | | |
4098 | | |
4099 | | /***/ }), |
4100 | | /* 199 */ |
4101 | | /***/ (function(module, exports, __webpack_require__) { |
4102 | | |
4103 | | 'use strict'; |
4104 | | |
4105 | | var regexpFlags = __webpack_require__(197); |
4106 | | |
4107 | | var nativeExec = RegExp.prototype.exec; |
4108 | | // This always refers to the native implementation, because the |
4109 | | // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, |
4110 | | // which loads this file before patching the method. |
4111 | | var nativeReplace = String.prototype.replace; |
4112 | | |
4113 | | var patchedExec = nativeExec; |
4114 | | |
4115 | | var LAST_INDEX = 'lastIndex'; |
4116 | | |
4117 | | var UPDATES_LAST_INDEX_WRONG = (function () { |
4118 | | var re1 = /a/, |
4119 | | re2 = /b*/g; |
4120 | | nativeExec.call(re1, 'a'); |
4121 | | nativeExec.call(re2, 'a'); |
4122 | | return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; |
4123 | | })(); |
4124 | | |
4125 | | // nonparticipating capturing group, copied from es5-shim's String#split patch. |
4126 | | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; |
4127 | | |
4128 | | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; |
4129 | | |
4130 | | if (PATCH) { |
4131 | | patchedExec = function exec(str) { |
4132 | | var re = this; |
4133 | | var lastIndex, reCopy, match, i; |
4134 | | |
4135 | | if (NPCG_INCLUDED) { |
4136 | | reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); |
4137 | | } |
4138 | | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; |
4139 | | |
4140 | | match = nativeExec.call(re, str); |
4141 | | |
4142 | | if (UPDATES_LAST_INDEX_WRONG && match) { |
4143 | | re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; |
4144 | | } |
4145 | | if (NPCG_INCLUDED && match && match.length > 1) { |
4146 | | // Fix browsers whose `exec` methods don't consistently return `undefined` |
4147 | | // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ |
4148 | | // eslint-disable-next-line no-loop-func |
4149 | | nativeReplace.call(match[0], reCopy, function () { |
4150 | | for (i = 1; i < arguments.length - 2; i++) { |
4151 | | if (arguments[i] === undefined) match[i] = undefined; |
4152 | | } |
4153 | | }); |
4154 | | } |
4155 | | |
4156 | | return match; |
4157 | | }; |
4158 | | } |
4159 | | |
4160 | | module.exports = patchedExec; |
4161 | | |
4162 | | |
4163 | | /***/ }), |
4164 | | /* 200 */ |
4165 | | /***/ (function(module, exports, __webpack_require__) { |
4166 | | |
4167 | | 'use strict'; |
4168 | | __webpack_require__(201); |
4169 | | var anObject = __webpack_require__(12); |
4170 | | var $flags = __webpack_require__(197); |
4171 | | var DESCRIPTORS = __webpack_require__(6); |
4172 | | var TO_STRING = 'toString'; |
4173 | | var $toString = /./[TO_STRING]; |
4174 | | |
4175 | | var define = function (fn) { |
4176 | | __webpack_require__(18)(RegExp.prototype, TO_STRING, fn, true); |
4177 | | }; |
4178 | | |
4179 | | // 21.2.5.14 RegExp.prototype.toString() |
4180 | | if (__webpack_require__(7)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { |
4181 | | define(function toString() { |
4182 | | var R = anObject(this); |
4183 | | return '/'.concat(R.source, '/', |
4184 | | 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); |
4185 | | }); |
4186 | | // FF44- RegExp#toString has a wrong name |
4187 | | } else if ($toString.name != TO_STRING) { |
4188 | | define(function toString() { |
4189 | | return $toString.call(this); |
4190 | | }); |
4191 | | } |
4192 | | |
4193 | | |
4194 | | /***/ }), |
4195 | | /* 201 */ |
4196 | | /***/ (function(module, exports, __webpack_require__) { |
4197 | | |
4198 | | // 21.2.5.3 get RegExp.prototype.flags() |
4199 | | if (__webpack_require__(6) && /./g.flags != 'g') __webpack_require__(11).f(RegExp.prototype, 'flags', { |
4200 | | configurable: true, |
4201 | | get: __webpack_require__(197) |
4202 | | }); |
4203 | | |
4204 | | |
4205 | | /***/ }), |
4206 | | /* 202 */ |
4207 | | /***/ (function(module, exports, __webpack_require__) { |
4208 | | |
4209 | | 'use strict'; |
4210 | | |
4211 | | var anObject = __webpack_require__(12); |
4212 | | var toLength = __webpack_require__(37); |
4213 | | var advanceStringIndex = __webpack_require__(203); |
4214 | | var regExpExec = __webpack_require__(204); |
4215 | | |
4216 | | // @@match logic |
4217 | | __webpack_require__(205)('match', 1, function (defined, MATCH, $match, maybeCallNative) { |
4218 | | return [ |
4219 | | // `String.prototype.match` method |
4220 | | // https://tc39.github.io/ecma262/#sec-string.prototype.match |
4221 | | function match(regexp) { |
4222 | | var O = defined(this); |
4223 | | var fn = regexp == undefined ? undefined : regexp[MATCH]; |
4224 | | return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); |
4225 | | }, |
4226 | | // `RegExp.prototype[@@match]` method |
4227 | | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match |
4228 | | function (regexp) { |
4229 | | var res = maybeCallNative($match, regexp, this); |
4230 | | if (res.done) return res.value; |
4231 | | var rx = anObject(regexp); |
4232 | | var S = String(this); |
4233 | | if (!rx.global) return regExpExec(rx, S); |
4234 | | var fullUnicode = rx.unicode; |
4235 | | rx.lastIndex = 0; |
4236 | | var A = []; |
4237 | | var n = 0; |
4238 | | var result; |
4239 | | while ((result = regExpExec(rx, S)) !== null) { |
4240 | | var matchStr = String(result[0]); |
4241 | | A[n] = matchStr; |
4242 | | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); |
4243 | | n++; |
4244 | | } |
4245 | | return n === 0 ? null : A; |
4246 | | } |
4247 | | ]; |
4248 | | }); |
4249 | | |
4250 | | |
4251 | | /***/ }), |
4252 | | /* 203 */ |
4253 | | /***/ (function(module, exports, __webpack_require__) { |
4254 | | |
4255 | | 'use strict'; |
4256 | | var at = __webpack_require__(127)(true); |
4257 | | |
4258 | | // `AdvanceStringIndex` abstract operation |
4259 | | // https://tc39.github.io/ecma262/#sec-advancestringindex |
4260 | | module.exports = function (S, index, unicode) { |
4261 | | return index + (unicode ? at(S, index).length : 1); |
4262 | | }; |
4263 | | |
4264 | | |
4265 | | /***/ }), |
4266 | | /* 204 */ |
4267 | | /***/ (function(module, exports, __webpack_require__) { |
4268 | | |
4269 | | 'use strict'; |
4270 | | |
4271 | | var classof = __webpack_require__(74); |
4272 | | var builtinExec = RegExp.prototype.exec; |
4273 | | |
4274 | | // `RegExpExec` abstract operation |
4275 | | // https://tc39.github.io/ecma262/#sec-regexpexec |
4276 | | module.exports = function (R, S) { |
4277 | | var exec = R.exec; |
4278 | | if (typeof exec === 'function') { |
4279 | | var result = exec.call(R, S); |
4280 | | if (typeof result !== 'object') { |
4281 | | throw new TypeError('RegExp exec method returned something other than an Object or null'); |
4282 | | } |
4283 | | return result; |
4284 | | } |
4285 | | if (classof(R) !== 'RegExp') { |
4286 | | throw new TypeError('RegExp#exec called on incompatible receiver'); |
4287 | | } |
4288 | | return builtinExec.call(R, S); |
4289 | | }; |
4290 | | |
4291 | | |
4292 | | /***/ }), |
4293 | | /* 205 */ |
4294 | | /***/ (function(module, exports, __webpack_require__) { |
4295 | | |
4296 | | 'use strict'; |
4297 | | __webpack_require__(198); |
4298 | | var redefine = __webpack_require__(18); |
4299 | | var hide = __webpack_require__(10); |
4300 | | var fails = __webpack_require__(7); |
4301 | | var defined = __webpack_require__(35); |
4302 | | var wks = __webpack_require__(26); |
4303 | | var regexpExec = __webpack_require__(199); |
4304 | | |
4305 | | var SPECIES = wks('species'); |
4306 | | |
4307 | | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { |
4308 | | // #replace needs built-in support for named groups. |
4309 | | // #match works fine because it just return the exec results, even if it has |
4310 | | // a "grops" property. |
4311 | | var re = /./; |
4312 | | re.exec = function () { |
4313 | | var result = []; |
4314 | | result.groups = { a: '7' }; |
4315 | | return result; |
4316 | | }; |
4317 | | return ''.replace(re, '$<a>') !== '7'; |
4318 | | }); |
4319 | | |
4320 | | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { |
4321 | | // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec |
4322 | | var re = /(?:)/; |
4323 | | var originalExec = re.exec; |
4324 | | re.exec = function () { return originalExec.apply(this, arguments); }; |
4325 | | var result = 'ab'.split(re); |
4326 | | return result.length === 2 && result[0] === 'a' && result[1] === 'b'; |
4327 | | })(); |
4328 | | |
4329 | | module.exports = function (KEY, length, exec) { |
4330 | | var SYMBOL = wks(KEY); |
4331 | | |
4332 | | var DELEGATES_TO_SYMBOL = !fails(function () { |
4333 | | // String methods call symbol-named RegEp methods |
4334 | | var O = {}; |
4335 | | O[SYMBOL] = function () { return 7; }; |
4336 | | return ''[KEY](O) != 7; |
4337 | | }); |
4338 | | |
4339 | | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { |
4340 | | // Symbol-named RegExp methods call .exec |
4341 | | var execCalled = false; |
4342 | | var re = /a/; |
4343 | | re.exec = function () { execCalled = true; return null; }; |
4344 | | if (KEY === 'split') { |
4345 | | // RegExp[@@split] doesn't call the regex's exec method, but first creates |
4346 | | // a new one. We need to return the patched regex when creating the new one. |
4347 | | re.constructor = {}; |
4348 | | re.constructor[SPECIES] = function () { return re; }; |
4349 | | } |
4350 | | re[SYMBOL](''); |
4351 | | return !execCalled; |
4352 | | }) : undefined; |
4353 | | |
4354 | | if ( |
4355 | | !DELEGATES_TO_SYMBOL || |
4356 | | !DELEGATES_TO_EXEC || |
4357 | | (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || |
4358 | | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) |
4359 | | ) { |
4360 | | var nativeRegExpMethod = /./[SYMBOL]; |
4361 | | var fns = exec( |
4362 | | defined, |
4363 | | SYMBOL, |
4364 | | ''[KEY], |
4365 | | function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { |
4366 | | if (regexp.exec === regexpExec) { |
4367 | | if (DELEGATES_TO_SYMBOL && !forceStringMethod) { |
4368 | | // The native String method already delegates to @@method (this |
4369 | | // polyfilled function), leasing to infinite recursion. |
4370 | | // We avoid it by directly calling the native @@method method. |
4371 | | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; |
4372 | | } |
4373 | | return { done: true, value: nativeMethod.call(str, regexp, arg2) }; |
4374 | | } |
4375 | | return { done: false }; |
4376 | | } |
4377 | | ); |
4378 | | var strfn = fns[0]; |
4379 | | var rxfn = fns[1]; |
4380 | | |
4381 | | redefine(String.prototype, KEY, strfn); |
4382 | | hide(RegExp.prototype, SYMBOL, length == 2 |
4383 | | // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) |
4384 | | // 21.2.5.11 RegExp.prototype[@@split](string, limit) |
4385 | | ? function (string, arg) { return rxfn.call(string, this, arg); } |
4386 | | // 21.2.5.6 RegExp.prototype[@@match](string) |
4387 | | // 21.2.5.9 RegExp.prototype[@@search](string) |
4388 | | : function (string) { return rxfn.call(string, this); } |
4389 | | ); |
4390 | | } |
4391 | | }; |
4392 | | |
4393 | | |
4394 | | /***/ }), |
4395 | | /* 206 */ |
4396 | | /***/ (function(module, exports, __webpack_require__) { |
4397 | | |
4398 | | 'use strict'; |
4399 | | |
4400 | | var anObject = __webpack_require__(12); |
4401 | | var toObject = __webpack_require__(57); |
4402 | | var toLength = __webpack_require__(37); |
4403 | | var toInteger = __webpack_require__(38); |
4404 | | var advanceStringIndex = __webpack_require__(203); |
4405 | | var regExpExec = __webpack_require__(204); |
4406 | | var max = Math.max; |
4407 | | var min = Math.min; |
4408 | | var floor = Math.floor; |
4409 | | var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; |
4410 | | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; |
4411 | | |
4412 | | var maybeToString = function (it) { |
4413 | | return it === undefined ? it : String(it); |
4414 | | }; |
4415 | | |
4416 | | // @@replace logic |
4417 | | __webpack_require__(205)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { |
4418 | | return [ |
4419 | | // `String.prototype.replace` method |
4420 | | // https://tc39.github.io/ecma262/#sec-string.prototype.replace |
4421 | | function replace(searchValue, replaceValue) { |
4422 | | var O = defined(this); |
4423 | | var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; |
4424 | | return fn !== undefined |
4425 | | ? fn.call(searchValue, O, replaceValue) |
4426 | | : $replace.call(String(O), searchValue, replaceValue); |
4427 | | }, |
4428 | | // `RegExp.prototype[@@replace]` method |
4429 | | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace |
4430 | | function (regexp, replaceValue) { |
4431 | | var res = maybeCallNative($replace, regexp, this, replaceValue); |
4432 | | if (res.done) return res.value; |
4433 | | |
4434 | | var rx = anObject(regexp); |
4435 | | var S = String(this); |
4436 | | var functionalReplace = typeof replaceValue === 'function'; |
4437 | | if (!functionalReplace) replaceValue = String(replaceValue); |
4438 | | var global = rx.global; |
4439 | | if (global) { |
4440 | | var fullUnicode = rx.unicode; |
4441 | | rx.lastIndex = 0; |
4442 | | } |
4443 | | var results = []; |
4444 | | while (true) { |
4445 | | var result = regExpExec(rx, S); |
4446 | | if (result === null) break; |
4447 | | results.push(result); |
4448 | | if (!global) break; |
4449 | | var matchStr = String(result[0]); |
4450 | | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); |
4451 | | } |
4452 | | var accumulatedResult = ''; |
4453 | | var nextSourcePosition = 0; |
4454 | | for (var i = 0; i < results.length; i++) { |
4455 | | result = results[i]; |
4456 | | var matched = String(result[0]); |
4457 | | var position = max(min(toInteger(result.index), S.length), 0); |
4458 | | var captures = []; |
4459 | | // NOTE: This is equivalent to |
4460 | | // captures = result.slice(1).map(maybeToString) |
4461 | | // but for some reason `nativeSlice.call(result, 1, result.length)` (called in |
4462 | | // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and |
4463 | | // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. |
4464 | | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); |
4465 | | var namedCaptures = result.groups; |
4466 | | if (functionalReplace) { |
4467 | | var replacerArgs = [matched].concat(captures, position, S); |
4468 | | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); |
4469 | | var replacement = String(replaceValue.apply(undefined, replacerArgs)); |
4470 | | } else { |
4471 | | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); |
4472 | | } |
4473 | | if (position >= nextSourcePosition) { |
4474 | | accumulatedResult += S.slice(nextSourcePosition, position) + replacement; |
4475 | | nextSourcePosition = position + matched.length; |
4476 | | } |
4477 | | } |
4478 | | return accumulatedResult + S.slice(nextSourcePosition); |
4479 | | } |
4480 | | ]; |
4481 | | |
4482 | | // https://tc39.github.io/ecma262/#sec-getsubstitution |
4483 | | function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { |
4484 | | var tailPos = position + matched.length; |
4485 | | var m = captures.length; |
4486 | | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; |
4487 | | if (namedCaptures !== undefined) { |
4488 | | namedCaptures = toObject(namedCaptures); |
4489 | | symbols = SUBSTITUTION_SYMBOLS; |
4490 | | } |
4491 | | return $replace.call(replacement, symbols, function (match, ch) { |
4492 | | var capture; |
4493 | | switch (ch.charAt(0)) { |
4494 | | case '$': return '$'; |
4495 | | case '&': return matched; |
4496 | | case '`': return str.slice(0, position); |
4497 | | case "'": return str.slice(tailPos); |
4498 | | case '<': |
4499 | | capture = namedCaptures[ch.slice(1, -1)]; |
4500 | | break; |
4501 | | default: // \d\d? |
4502 | | var n = +ch; |
4503 | | if (n === 0) return ch; |
4504 | | if (n > m) { |
4505 | | var f = floor(n / 10); |
4506 | | if (f === 0) return ch; |
4507 | | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); |
4508 | | return ch; |
4509 | | } |
4510 | | capture = captures[n - 1]; |
4511 | | } |
4512 | | return capture === undefined ? '' : capture; |
4513 | | }); |
4514 | | } |
4515 | | }); |
4516 | | |
4517 | | |
4518 | | /***/ }), |
4519 | | /* 207 */ |
4520 | | /***/ (function(module, exports, __webpack_require__) { |
4521 | | |
4522 | | 'use strict'; |
4523 | | |
4524 | | var anObject = __webpack_require__(12); |
4525 | | var sameValue = __webpack_require__(70); |
4526 | | var regExpExec = __webpack_require__(204); |
4527 | | |
4528 | | // @@search logic |
4529 | | __webpack_require__(205)('search', 1, function (defined, SEARCH, $search, maybeCallNative) { |
4530 | | return [ |
4531 | | // `String.prototype.search` method |
4532 | | // https://tc39.github.io/ecma262/#sec-string.prototype.search |
4533 | | function search(regexp) { |
4534 | | var O = defined(this); |
4535 | | var fn = regexp == undefined ? undefined : regexp[SEARCH]; |
4536 | | return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); |
4537 | | }, |
4538 | | // `RegExp.prototype[@@search]` method |
4539 | | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search |
4540 | | function (regexp) { |
4541 | | var res = maybeCallNative($search, regexp, this); |
4542 | | if (res.done) return res.value; |
4543 | | var rx = anObject(regexp); |
4544 | | var S = String(this); |
4545 | | var previousLastIndex = rx.lastIndex; |
4546 | | if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; |
4547 | | var result = regExpExec(rx, S); |
4548 | | if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; |
4549 | | return result === null ? -1 : result.index; |
4550 | | } |
4551 | | ]; |
4552 | | }); |
4553 | | |
4554 | | |
4555 | | /***/ }), |
4556 | | /* 208 */ |
4557 | | /***/ (function(module, exports, __webpack_require__) { |
4558 | | |
4559 | | 'use strict'; |
4560 | | |
4561 | | var isRegExp = __webpack_require__(134); |
4562 | | var anObject = __webpack_require__(12); |
4563 | | var speciesConstructor = __webpack_require__(209); |
4564 | | var advanceStringIndex = __webpack_require__(203); |
4565 | | var toLength = __webpack_require__(37); |
4566 | | var callRegExpExec = __webpack_require__(204); |
4567 | | var regexpExec = __webpack_require__(199); |
4568 | | var $min = Math.min; |
4569 | | var $push = [].push; |
4570 | | var $SPLIT = 'split'; |
4571 | | var LENGTH = 'length'; |
4572 | | var LAST_INDEX = 'lastIndex'; |
4573 | | |
4574 | | // eslint-disable-next-line no-empty |
4575 | | var SUPPORTS_Y = !!(function () { try { return new RegExp('x', 'y'); } catch (e) {} })(); |
4576 | | |
4577 | | // @@split logic |
4578 | | __webpack_require__(205)('split', 2, function (defined, SPLIT, $split, maybeCallNative) { |
4579 | | var internalSplit = $split; |
4580 | | if ( |
4581 | | 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || |
4582 | | 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || |
4583 | | 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || |
4584 | | '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || |
4585 | | '.'[$SPLIT](/()()/)[LENGTH] > 1 || |
4586 | | ''[$SPLIT](/.?/)[LENGTH] |
4587 | | ) { |
4588 | | // based on es5-shim implementation, need to rework it |
4589 | | internalSplit = function (separator, limit) { |
4590 | | var string = String(this); |
4591 | | if (separator === undefined && limit === 0) return []; |
4592 | | // If `separator` is not a regex, use native split |
4593 | | if (!isRegExp(separator)) return $split.call(string, separator, limit); |
4594 | | var output = []; |
4595 | | var flags = (separator.ignoreCase ? 'i' : '') + |
4596 | | (separator.multiline ? 'm' : '') + |
4597 | | (separator.unicode ? 'u' : '') + |
4598 | | (separator.sticky ? 'y' : ''); |
4599 | | var lastLastIndex = 0; |
4600 | | var splitLimit = limit === undefined ? 4294967295 : limit >>> 0; |
4601 | | // Make `global` and avoid `lastIndex` issues by working with a copy |
4602 | | var separatorCopy = new RegExp(separator.source, flags + 'g'); |
4603 | | var match, lastIndex, lastLength; |
4604 | | while (match = regexpExec.call(separatorCopy, string)) { |
4605 | | lastIndex = separatorCopy[LAST_INDEX]; |
4606 | | if (lastIndex > lastLastIndex) { |
4607 | | output.push(string.slice(lastLastIndex, match.index)); |
4608 | | if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); |
4609 | | lastLength = match[0][LENGTH]; |
4610 | | lastLastIndex = lastIndex; |
4611 | | if (output[LENGTH] >= splitLimit) break; |
4612 | | } |
4613 | | if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop |
4614 | | } |
4615 | | if (lastLastIndex === string[LENGTH]) { |
4616 | | if (lastLength || !separatorCopy.test('')) output.push(''); |
4617 | | } else output.push(string.slice(lastLastIndex)); |
4618 | | return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; |
4619 | | }; |
4620 | | // Chakra, V8 |
4621 | | } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { |
4622 | | internalSplit = function (separator, limit) { |
4623 | | return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit); |
4624 | | }; |
4625 | | } |
4626 | | |
4627 | | return [ |
4628 | | // `String.prototype.split` method |
4629 | | // https://tc39.github.io/ecma262/#sec-string.prototype.split |
4630 | | function split(separator, limit) { |
4631 | | var O = defined(this); |
4632 | | var splitter = separator == undefined ? undefined : separator[SPLIT]; |
4633 | | return splitter !== undefined |
4634 | | ? splitter.call(separator, O, limit) |
4635 | | : internalSplit.call(String(O), separator, limit); |
4636 | | }, |
4637 | | // `RegExp.prototype[@@split]` method |
4638 | | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split |
4639 | | // |
4640 | | // NOTE: This cannot be properly polyfilled in engines that don't support |
4641 | | // the 'y' flag. |
4642 | | function (regexp, limit) { |
4643 | | var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split); |
4644 | | if (res.done) return res.value; |
4645 | | |
4646 | | var rx = anObject(regexp); |
4647 | | var S = String(this); |
4648 | | var C = speciesConstructor(rx, RegExp); |
4649 | | |
4650 | | var unicodeMatching = rx.unicode; |
4651 | | var flags = (rx.ignoreCase ? 'i' : '') + |
4652 | | (rx.multiline ? 'm' : '') + |
4653 | | (rx.unicode ? 'u' : '') + |
4654 | | (SUPPORTS_Y ? 'y' : 'g'); |
4655 | | |
4656 | | // ^(? + rx + ) is needed, in combination with some S slicing, to |
4657 | | // simulate the 'y' flag. |
4658 | | var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags); |
4659 | | var lim = limit === undefined ? 0xffffffff : limit >>> 0; |
4660 | | if (lim === 0) return []; |
4661 | | if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; |
4662 | | var p = 0; |
4663 | | var q = 0; |
4664 | | var A = []; |
4665 | | while (q < S.length) { |
4666 | | splitter.lastIndex = SUPPORTS_Y ? q : 0; |
4667 | | var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q)); |
4668 | | var e; |
4669 | | if ( |
4670 | | z === null || |
4671 | | (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p |
4672 | | ) { |
4673 | | q = advanceStringIndex(S, q, unicodeMatching); |
4674 | | } else { |
4675 | | A.push(S.slice(p, q)); |
4676 | | if (A.length === lim) return A; |
4677 | | for (var i = 1; i <= z.length - 1; i++) { |
4678 | | A.push(z[i]); |
4679 | | if (A.length === lim) return A; |
4680 | | } |
4681 | | q = p = e; |
4682 | | } |
4683 | | } |
4684 | | A.push(S.slice(p)); |
4685 | | return A; |
4686 | | } |
4687 | | ]; |
4688 | | }); |
4689 | | |
4690 | | |
4691 | | /***/ }), |
4692 | | /* 209 */ |
4693 | | /***/ (function(module, exports, __webpack_require__) { |
4694 | | |
4695 | | // 7.3.20 SpeciesConstructor(O, defaultConstructor) |
4696 | | var anObject = __webpack_require__(12); |
4697 | | var aFunction = __webpack_require__(21); |
4698 | | var SPECIES = __webpack_require__(26)('species'); |
4699 | | module.exports = function (O, D) { |
4700 | | var C = anObject(O).constructor; |
4701 | | var S; |
4702 | | return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); |
4703 | | }; |
4704 | | |
4705 | | |
4706 | | /***/ }), |
4707 | | /* 210 */ |
4708 | | /***/ (function(module, exports, __webpack_require__) { |
4709 | | |
4710 | | 'use strict'; |
4711 | | var LIBRARY = __webpack_require__(24); |
4712 | | var global = __webpack_require__(4); |
4713 | | var ctx = __webpack_require__(20); |
4714 | | var classof = __webpack_require__(74); |
4715 | | var $export = __webpack_require__(8); |
4716 | | var isObject = __webpack_require__(13); |
4717 | | var aFunction = __webpack_require__(21); |
4718 | | var anInstance = __webpack_require__(211); |
4719 | | var forOf = __webpack_require__(212); |
4720 | | var speciesConstructor = __webpack_require__(209); |
4721 | | var task = __webpack_require__(213).set; |
4722 | | var microtask = __webpack_require__(214)(); |
4723 | | var newPromiseCapabilityModule = __webpack_require__(215); |
4724 | | var perform = __webpack_require__(216); |
4725 | | var userAgent = __webpack_require__(217); |
4726 | | var promiseResolve = __webpack_require__(218); |
4727 | | var PROMISE = 'Promise'; |
4728 | | var TypeError = global.TypeError; |
4729 | | var process = global.process; |
4730 | | var versions = process && process.versions; |
4731 | | var v8 = versions && versions.v8 || ''; |
4732 | | var $Promise = global[PROMISE]; |
4733 | | var isNode = classof(process) == 'process'; |
4734 | | var empty = function () { /* empty */ }; |
4735 | | var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; |
4736 | | var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; |
4737 | | |
4738 | | var USE_NATIVE = !!function () { |
4739 | | try { |
4740 | | // correct subclassing with @@species support |
4741 | | var promise = $Promise.resolve(1); |
4742 | | var FakePromise = (promise.constructor = {})[__webpack_require__(26)('species')] = function (exec) { |
4743 | | exec(empty, empty); |
4744 | | }; |
4745 | | // unhandled rejections tracking support, NodeJS Promise without it fails @@species test |
4746 | | return (isNode || typeof PromiseRejectionEvent == 'function') |
4747 | | && promise.then(empty) instanceof FakePromise |
4748 | | // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables |
4749 | | // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 |
4750 | | // we can't detect it synchronously, so just check versions |
4751 | | && v8.indexOf('6.6') !== 0 |
4752 | | && userAgent.indexOf('Chrome/66') === -1; |
4753 | | } catch (e) { /* empty */ } |
4754 | | }(); |
4755 | | |
4756 | | // helpers |
4757 | | var isThenable = function (it) { |
4758 | | var then; |
4759 | | return isObject(it) && typeof (then = it.then) == 'function' ? then : false; |
4760 | | }; |
4761 | | var notify = function (promise, isReject) { |
4762 | | if (promise._n) return; |
4763 | | promise._n = true; |
4764 | | var chain = promise._c; |
4765 | | microtask(function () { |
4766 | | var value = promise._v; |
4767 | | var ok = promise._s == 1; |
4768 | | var i = 0; |
4769 | | var run = function (reaction) { |
4770 | | var handler = ok ? reaction.ok : reaction.fail; |
4771 | | var resolve = reaction.resolve; |
4772 | | var reject = reaction.reject; |
4773 | | var domain = reaction.domain; |
4774 | | var result, then, exited; |
4775 | | try { |
4776 | | if (handler) { |
4777 | | if (!ok) { |
4778 | | if (promise._h == 2) onHandleUnhandled(promise); |
4779 | | promise._h = 1; |
4780 | | } |
4781 | | if (handler === true) result = value; |
4782 | | else { |
4783 | | if (domain) domain.enter(); |
4784 | | result = handler(value); // may throw |
4785 | | if (domain) { |
4786 | | domain.exit(); |
4787 | | exited = true; |
4788 | | } |
4789 | | } |
4790 | | if (result === reaction.promise) { |
4791 | | reject(TypeError('Promise-chain cycle')); |
4792 | | } else if (then = isThenable(result)) { |
4793 | | then.call(result, resolve, reject); |
4794 | | } else resolve(result); |
4795 | | } else reject(value); |
4796 | | } catch (e) { |
4797 | | if (domain && !exited) domain.exit(); |
4798 | | reject(e); |
4799 | | } |
4800 | | }; |
4801 | | while (chain.length > i) run(chain[i++]); // variable length - can't use forEach |
4802 | | promise._c = []; |
4803 | | promise._n = false; |
4804 | | if (isReject && !promise._h) onUnhandled(promise); |
4805 | | }); |
4806 | | }; |
4807 | | var onUnhandled = function (promise) { |
4808 | | task.call(global, function () { |
4809 | | var value = promise._v; |
4810 | | var unhandled = isUnhandled(promise); |
4811 | | var result, handler, console; |
4812 | | if (unhandled) { |
4813 | | result = perform(function () { |
4814 | | if (isNode) { |
4815 | | process.emit('unhandledRejection', value, promise); |
4816 | | } else if (handler = global.onunhandledrejection) { |
4817 | | handler({ promise: promise, reason: value }); |
4818 | | } else if ((console = global.console) && console.error) { |
4819 | | console.error('Unhandled promise rejection', value); |
4820 | | } |
4821 | | }); |
4822 | | // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should |
4823 | | promise._h = isNode || isUnhandled(promise) ? 2 : 1; |
4824 | | } promise._a = undefined; |
4825 | | if (unhandled && result.e) throw result.v; |
4826 | | }); |
4827 | | }; |
4828 | | var isUnhandled = function (promise) { |
4829 | | return promise._h !== 1 && (promise._a || promise._c).length === 0; |
4830 | | }; |
4831 | | var onHandleUnhandled = function (promise) { |
4832 | | task.call(global, function () { |
4833 | | var handler; |
4834 | | if (isNode) { |
4835 | | process.emit('rejectionHandled', promise); |
4836 | | } else if (handler = global.onrejectionhandled) { |
4837 | | handler({ promise: promise, reason: promise._v }); |
4838 | | } |
4839 | | }); |
4840 | | }; |
4841 | | var $reject = function (value) { |
4842 | | var promise = this; |
4843 | | if (promise._d) return; |
4844 | | promise._d = true; |
4845 | | promise = promise._w || promise; // unwrap |
4846 | | promise._v = value; |
4847 | | promise._s = 2; |
4848 | | if (!promise._a) promise._a = promise._c.slice(); |
4849 | | notify(promise, true); |
4850 | | }; |
4851 | | var $resolve = function (value) { |
4852 | | var promise = this; |
4853 | | var then; |
4854 | | if (promise._d) return; |
4855 | | promise._d = true; |
4856 | | promise = promise._w || promise; // unwrap |
4857 | | try { |
4858 | | if (promise === value) throw TypeError("Promise can't be resolved itself"); |
4859 | | if (then = isThenable(value)) { |
4860 | | microtask(function () { |
4861 | | var wrapper = { _w: promise, _d: false }; // wrap |
4862 | | try { |
4863 | | then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); |
4864 | | } catch (e) { |
4865 | | $reject.call(wrapper, e); |
4866 | | } |
4867 | | }); |
4868 | | } else { |
4869 | | promise._v = value; |
4870 | | promise._s = 1; |
4871 | | notify(promise, false); |
4872 | | } |
4873 | | } catch (e) { |
4874 | | $reject.call({ _w: promise, _d: false }, e); // wrap |
4875 | | } |
4876 | | }; |
4877 | | |
4878 | | // constructor polyfill |
4879 | | if (!USE_NATIVE) { |
4880 | | // 25.4.3.1 Promise(executor) |
4881 | | $Promise = function Promise(executor) { |
4882 | | anInstance(this, $Promise, PROMISE, '_h'); |
4883 | | aFunction(executor); |
4884 | | Internal.call(this); |
4885 | | try { |
4886 | | executor(ctx($resolve, this, 1), ctx($reject, this, 1)); |
4887 | | } catch (err) { |
4888 | | $reject.call(this, err); |
4889 | | } |
4890 | | }; |
4891 | | // eslint-disable-next-line no-unused-vars |
4892 | | Internal = function Promise(executor) { |
4893 | | this._c = []; // <- awaiting reactions |
4894 | | this._a = undefined; // <- checked in isUnhandled reactions |
4895 | | this._s = 0; // <- state |
4896 | | this._d = false; // <- done |
4897 | | this._v = undefined; // <- value |
4898 | | this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled |
4899 | | this._n = false; // <- notify |
4900 | | }; |
4901 | | Internal.prototype = __webpack_require__(219)($Promise.prototype, { |
4902 | | // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) |
4903 | | then: function then(onFulfilled, onRejected) { |
4904 | | var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); |
4905 | | reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; |
4906 | | reaction.fail = typeof onRejected == 'function' && onRejected; |
4907 | | reaction.domain = isNode ? process.domain : undefined; |
4908 | | this._c.push(reaction); |
4909 | | if (this._a) this._a.push(reaction); |
4910 | | if (this._s) notify(this, false); |
4911 | | return reaction.promise; |
4912 | | }, |
4913 | | // 25.4.5.1 Promise.prototype.catch(onRejected) |
4914 | | 'catch': function (onRejected) { |
4915 | | return this.then(undefined, onRejected); |
4916 | | } |
4917 | | }); |
4918 | | OwnPromiseCapability = function () { |
4919 | | var promise = new Internal(); |
4920 | | this.promise = promise; |
4921 | | this.resolve = ctx($resolve, promise, 1); |
4922 | | this.reject = ctx($reject, promise, 1); |
4923 | | }; |
4924 | | newPromiseCapabilityModule.f = newPromiseCapability = function (C) { |
4925 | | return C === $Promise || C === Wrapper |
4926 | | ? new OwnPromiseCapability(C) |
4927 | | : newGenericPromiseCapability(C); |
4928 | | }; |
4929 | | } |
4930 | | |
4931 | | $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); |
4932 | | __webpack_require__(25)($Promise, PROMISE); |
4933 | | __webpack_require__(193)(PROMISE); |
4934 | | Wrapper = __webpack_require__(9)[PROMISE]; |
4935 | | |
4936 | | // statics |
4937 | | $export($export.S + $export.F * !USE_NATIVE, PROMISE, { |
4938 | | // 25.4.4.5 Promise.reject(r) |
4939 | | reject: function reject(r) { |
4940 | | var capability = newPromiseCapability(this); |
4941 | | var $$reject = capability.reject; |
4942 | | $$reject(r); |
4943 | | return capability.promise; |
4944 | | } |
4945 | | }); |
4946 | | $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { |
4947 | | // 25.4.4.6 Promise.resolve(x) |
4948 | | resolve: function resolve(x) { |
4949 | | return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); |
4950 | | } |
4951 | | }); |
4952 | | $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(166)(function (iter) { |
4953 | | $Promise.all(iter)['catch'](empty); |
4954 | | })), PROMISE, { |
4955 | | // 25.4.4.1 Promise.all(iterable) |
4956 | | all: function all(iterable) { |
4957 | | var C = this; |
4958 | | var capability = newPromiseCapability(C); |
4959 | | var resolve = capability.resolve; |
4960 | | var reject = capability.reject; |
4961 | | var result = perform(function () { |
4962 | | var values = []; |
4963 | | var index = 0; |
4964 | | var remaining = 1; |
4965 | | forOf(iterable, false, function (promise) { |
4966 | | var $index = index++; |
4967 | | var alreadyCalled = false; |
4968 | | values.push(undefined); |
4969 | | remaining++; |
4970 | | C.resolve(promise).then(function (value) { |
4971 | | if (alreadyCalled) return; |
4972 | | alreadyCalled = true; |
4973 | | values[$index] = value; |
4974 | | --remaining || resolve(values); |
4975 | | }, reject); |
4976 | | }); |
4977 | | --remaining || resolve(values); |
4978 | | }); |
4979 | | if (result.e) reject(result.v); |
4980 | | return capability.promise; |
4981 | | }, |
4982 | | // 25.4.4.4 Promise.race(iterable) |
4983 | | race: function race(iterable) { |
4984 | | var C = this; |
4985 | | var capability = newPromiseCapability(C); |
4986 | | var reject = capability.reject; |
4987 | | var result = perform(function () { |
4988 | | forOf(iterable, false, function (promise) { |
4989 | | C.resolve(promise).then(capability.resolve, reject); |
4990 | | }); |
4991 | | }); |
4992 | | if (result.e) reject(result.v); |
4993 | | return capability.promise; |
4994 | | } |
4995 | | }); |
4996 | | |
4997 | | |
4998 | | /***/ }), |
4999 | | /* 211 */ |
5000 | | /***/ (function(module, exports) { |
5001 | | |
5002 | | module.exports = function (it, Constructor, name, forbiddenField) { |
5003 | | if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { |
5004 | | throw TypeError(name + ': incorrect invocation!'); |
5005 | | } return it; |
5006 | | }; |
5007 | | |
5008 | | |
5009 | | /***/ }), |
5010 | | /* 212 */ |
5011 | | /***/ (function(module, exports, __webpack_require__) { |
5012 | | |
5013 | | var ctx = __webpack_require__(20); |
5014 | | var call = __webpack_require__(162); |
5015 | | var isArrayIter = __webpack_require__(163); |
5016 | | var anObject = __webpack_require__(12); |
5017 | | var toLength = __webpack_require__(37); |
5018 | | var getIterFn = __webpack_require__(165); |
5019 | | var BREAK = {}; |
5020 | | var RETURN = {}; |
5021 | | var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { |
5022 | | var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); |
5023 | | var f = ctx(fn, that, entries ? 2 : 1); |
5024 | | var index = 0; |
5025 | | var length, step, iterator, result; |
5026 | | if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); |
5027 | | // fast case for arrays with default iterator |
5028 | | if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { |
5029 | | result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); |
5030 | | if (result === BREAK || result === RETURN) return result; |
5031 | | } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { |
5032 | | result = call(iterator, f, step.value, entries); |
5033 | | if (result === BREAK || result === RETURN) return result; |
5034 | | } |
5035 | | }; |
5036 | | exports.BREAK = BREAK; |
5037 | | exports.RETURN = RETURN; |
5038 | | |
5039 | | |
5040 | | /***/ }), |
5041 | | /* 213 */ |
5042 | | /***/ (function(module, exports, __webpack_require__) { |
5043 | | |
5044 | | var ctx = __webpack_require__(20); |
5045 | | var invoke = __webpack_require__(77); |
5046 | | var html = __webpack_require__(47); |
5047 | | var cel = __webpack_require__(15); |
5048 | | var global = __webpack_require__(4); |
5049 | | var process = global.process; |
5050 | | var setTask = global.setImmediate; |
5051 | | var clearTask = global.clearImmediate; |
5052 | | var MessageChannel = global.MessageChannel; |
5053 | | var Dispatch = global.Dispatch; |
5054 | | var counter = 0; |
5055 | | var queue = {}; |
5056 | | var ONREADYSTATECHANGE = 'onreadystatechange'; |
5057 | | var defer, channel, port; |
5058 | | var run = function () { |
5059 | | var id = +this; |
5060 | | // eslint-disable-next-line no-prototype-builtins |
5061 | | if (queue.hasOwnProperty(id)) { |
5062 | | var fn = queue[id]; |
5063 | | delete queue[id]; |
5064 | | fn(); |
5065 | | } |
5066 | | }; |
5067 | | var listener = function (event) { |
5068 | | run.call(event.data); |
5069 | | }; |
5070 | | // Node.js 0.9+ & IE10+ has setImmediate, otherwise: |
5071 | | if (!setTask || !clearTask) { |
5072 | | setTask = function setImmediate(fn) { |
5073 | | var args = []; |
5074 | | var i = 1; |
5075 | | while (arguments.length > i) args.push(arguments[i++]); |
5076 | | queue[++counter] = function () { |
5077 | | // eslint-disable-next-line no-new-func |
5078 | | invoke(typeof fn == 'function' ? fn : Function(fn), args); |
5079 | | }; |
5080 | | defer(counter); |
5081 | | return counter; |
5082 | | }; |
5083 | | clearTask = function clearImmediate(id) { |
5084 | | delete queue[id]; |
5085 | | }; |
5086 | | // Node.js 0.8- |
5087 | | if (__webpack_require__(34)(process) == 'process') { |
5088 | | defer = function (id) { |
5089 | | process.nextTick(ctx(run, id, 1)); |
5090 | | }; |
5091 | | // Sphere (JS game engine) Dispatch API |
5092 | | } else if (Dispatch && Dispatch.now) { |
5093 | | defer = function (id) { |
5094 | | Dispatch.now(ctx(run, id, 1)); |
5095 | | }; |
5096 | | // Browsers with MessageChannel, includes WebWorkers |
5097 | | } else if (MessageChannel) { |
5098 | | channel = new MessageChannel(); |
5099 | | port = channel.port2; |
5100 | | channel.port1.onmessage = listener; |
5101 | | defer = ctx(port.postMessage, port, 1); |
5102 | | // Browsers with postMessage, skip WebWorkers |
5103 | | // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' |
5104 | | } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { |
5105 | | defer = function (id) { |
5106 | | global.postMessage(id + '', '*'); |
5107 | | }; |
5108 | | global.addEventListener('message', listener, false); |
5109 | | // IE8- |
5110 | | } else if (ONREADYSTATECHANGE in cel('script')) { |
5111 | | defer = function (id) { |
5112 | | html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { |
5113 | | html.removeChild(this); |
5114 | | run.call(id); |
5115 | | }; |
5116 | | }; |
5117 | | // Rest old browsers |
5118 | | } else { |
5119 | | defer = function (id) { |
5120 | | setTimeout(ctx(run, id, 1), 0); |
5121 | | }; |
5122 | | } |
5123 | | } |
5124 | | module.exports = { |
5125 | | set: setTask, |
5126 | | clear: clearTask |
5127 | | }; |
5128 | | |
5129 | | |
5130 | | /***/ }), |
5131 | | /* 214 */ |
5132 | | /***/ (function(module, exports, __webpack_require__) { |
5133 | | |
5134 | | var global = __webpack_require__(4); |
5135 | | var macrotask = __webpack_require__(213).set; |
5136 | | var Observer = global.MutationObserver || global.WebKitMutationObserver; |
5137 | | var process = global.process; |
5138 | | var Promise = global.Promise; |
5139 | | var isNode = __webpack_require__(34)(process) == 'process'; |
5140 | | |
5141 | | module.exports = function () { |
5142 | | var head, last, notify; |
5143 | | |
5144 | | var flush = function () { |
5145 | | var parent, fn; |
5146 | | if (isNode && (parent = process.domain)) parent.exit(); |
5147 | | while (head) { |
5148 | | fn = head.fn; |
5149 | | head = head.next; |
5150 | | try { |
5151 | | fn(); |
5152 | | } catch (e) { |
5153 | | if (head) notify(); |
5154 | | else last = undefined; |
5155 | | throw e; |
5156 | | } |
5157 | | } last = undefined; |
5158 | | if (parent) parent.enter(); |
5159 | | }; |
5160 | | |
5161 | | // Node.js |
5162 | | if (isNode) { |
5163 | | notify = function () { |
5164 | | process.nextTick(flush); |
5165 | | }; |
5166 | | // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 |
5167 | | } else if (Observer && !(global.navigator && global.navigator.standalone)) { |
5168 | | var toggle = true; |
5169 | | var node = document.createTextNode(''); |
5170 | | new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new |
5171 | | notify = function () { |
5172 | | node.data = toggle = !toggle; |
5173 | | }; |
5174 | | // environments with maybe non-completely correct, but existent Promise |
5175 | | } else if (Promise && Promise.resolve) { |
5176 | | // Promise.resolve without an argument throws an error in LG WebOS 2 |
5177 | | var promise = Promise.resolve(undefined); |
5178 | | notify = function () { |
5179 | | promise.then(flush); |
5180 | | }; |
5181 | | // for other environments - macrotask based on: |
5182 | | // - setImmediate |
5183 | | // - MessageChannel |
5184 | | // - window.postMessag |
5185 | | // - onreadystatechange |
5186 | | // - setTimeout |
5187 | | } else { |
5188 | | notify = function () { |
5189 | | // strange IE + webpack dev server bug - use .call(global) |
5190 | | macrotask.call(global, flush); |
5191 | | }; |
5192 | | } |
5193 | | |
5194 | | return function (fn) { |
5195 | | var task = { fn: fn, next: undefined }; |
5196 | | if (last) last.next = task; |
5197 | | if (!head) { |
5198 | | head = task; |
5199 | | notify(); |
5200 | | } last = task; |
5201 | | }; |
5202 | | }; |
5203 | | |
5204 | | |
5205 | | /***/ }), |
5206 | | /* 215 */ |
5207 | | /***/ (function(module, exports, __webpack_require__) { |
5208 | | |
5209 | | 'use strict'; |
5210 | | // 25.4.1.5 NewPromiseCapability(C) |
5211 | | var aFunction = __webpack_require__(21); |
5212 | | |
5213 | | function PromiseCapability(C) { |
5214 | | var resolve, reject; |
5215 | | this.promise = new C(function ($$resolve, $$reject) { |
5216 | | if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); |
5217 | | resolve = $$resolve; |
5218 | | reject = $$reject; |
5219 | | }); |
5220 | | this.resolve = aFunction(resolve); |
5221 | | this.reject = aFunction(reject); |
5222 | | } |
5223 | | |
5224 | | module.exports.f = function (C) { |
5225 | | return new PromiseCapability(C); |
5226 | | }; |
5227 | | |
5228 | | |
5229 | | /***/ }), |
5230 | | /* 216 */ |
5231 | | /***/ (function(module, exports) { |
5232 | | |
5233 | | module.exports = function (exec) { |
5234 | | try { |
5235 | | return { e: false, v: exec() }; |
5236 | | } catch (e) { |
5237 | | return { e: true, v: e }; |
5238 | | } |
5239 | | }; |
5240 | | |
5241 | | |
5242 | | /***/ }), |
5243 | | /* 217 */ |
5244 | | /***/ (function(module, exports, __webpack_require__) { |
5245 | | |
5246 | | var global = __webpack_require__(4); |
5247 | | var navigator = global.navigator; |
5248 | | |
5249 | | module.exports = navigator && navigator.userAgent || ''; |
5250 | | |
5251 | | |
5252 | | /***/ }), |
5253 | | /* 218 */ |
5254 | | /***/ (function(module, exports, __webpack_require__) { |
5255 | | |
5256 | | var anObject = __webpack_require__(12); |
5257 | | var isObject = __webpack_require__(13); |
5258 | | var newPromiseCapability = __webpack_require__(215); |
5259 | | |
5260 | | module.exports = function (C, x) { |
5261 | | anObject(C); |
5262 | | if (isObject(x) && x.constructor === C) return x; |
5263 | | var promiseCapability = newPromiseCapability.f(C); |
5264 | | var resolve = promiseCapability.resolve; |
5265 | | resolve(x); |
5266 | | return promiseCapability.promise; |
5267 | | }; |
5268 | | |
5269 | | |
5270 | | /***/ }), |
5271 | | /* 219 */ |
5272 | | /***/ (function(module, exports, __webpack_require__) { |
5273 | | |
5274 | | var redefine = __webpack_require__(18); |
5275 | | module.exports = function (target, src, safe) { |
5276 | | for (var key in src) redefine(target, key, src[key], safe); |
5277 | | return target; |
5278 | | }; |
5279 | | |
5280 | | |
5281 | | /***/ }), |
5282 | | /* 220 */ |
5283 | | /***/ (function(module, exports, __webpack_require__) { |
5284 | | |
5285 | | 'use strict'; |
5286 | | var strong = __webpack_require__(221); |
5287 | | var validate = __webpack_require__(222); |
5288 | | var MAP = 'Map'; |
5289 | | |
5290 | | // 23.1 Map Objects |
5291 | | module.exports = __webpack_require__(223)(MAP, function (get) { |
5292 | | return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; |
5293 | | }, { |
5294 | | // 23.1.3.6 Map.prototype.get(key) |
5295 | | get: function get(key) { |
5296 | | var entry = strong.getEntry(validate(this, MAP), key); |
5297 | | return entry && entry.v; |
5298 | | }, |
5299 | | // 23.1.3.9 Map.prototype.set(key, value) |
5300 | | set: function set(key, value) { |
5301 | | return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); |
5302 | | } |
5303 | | }, strong, true); |
5304 | | |
5305 | | |
5306 | | /***/ }), |
5307 | | /* 221 */ |
5308 | | /***/ (function(module, exports, __webpack_require__) { |
5309 | | |
5310 | | 'use strict'; |
5311 | | var dP = __webpack_require__(11).f; |
5312 | | var create = __webpack_require__(45); |
5313 | | var redefineAll = __webpack_require__(219); |
5314 | | var ctx = __webpack_require__(20); |
5315 | | var anInstance = __webpack_require__(211); |
5316 | | var forOf = __webpack_require__(212); |
5317 | | var $iterDefine = __webpack_require__(128); |
5318 | | var step = __webpack_require__(195); |
5319 | | var setSpecies = __webpack_require__(193); |
5320 | | var DESCRIPTORS = __webpack_require__(6); |
5321 | | var fastKey = __webpack_require__(22).fastKey; |
5322 | | var validate = __webpack_require__(222); |
5323 | | var SIZE = DESCRIPTORS ? '_s' : 'size'; |
5324 | | |
5325 | | var getEntry = function (that, key) { |
5326 | | // fast case |
5327 | | var index = fastKey(key); |
5328 | | var entry; |
5329 | | if (index !== 'F') return that._i[index]; |
5330 | | // frozen object case |
5331 | | for (entry = that._f; entry; entry = entry.n) { |
5332 | | if (entry.k == key) return entry; |
5333 | | } |
5334 | | }; |
5335 | | |
5336 | | module.exports = { |
5337 | | getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { |
5338 | | var C = wrapper(function (that, iterable) { |
5339 | | anInstance(that, C, NAME, '_i'); |
5340 | | that._t = NAME; // collection type |
5341 | | that._i = create(null); // index |
5342 | | that._f = undefined; // first entry |
5343 | | that._l = undefined; // last entry |
5344 | | that[SIZE] = 0; // size |
5345 | | if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); |
5346 | | }); |
5347 | | redefineAll(C.prototype, { |
5348 | | // 23.1.3.1 Map.prototype.clear() |
5349 | | // 23.2.3.2 Set.prototype.clear() |
5350 | | clear: function clear() { |
5351 | | for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { |
5352 | | entry.r = true; |
5353 | | if (entry.p) entry.p = entry.p.n = undefined; |
5354 | | delete data[entry.i]; |
5355 | | } |
5356 | | that._f = that._l = undefined; |
5357 | | that[SIZE] = 0; |
5358 | | }, |
5359 | | // 23.1.3.3 Map.prototype.delete(key) |
5360 | | // 23.2.3.4 Set.prototype.delete(value) |
5361 | | 'delete': function (key) { |
5362 | | var that = validate(this, NAME); |
5363 | | var entry = getEntry(that, key); |
5364 | | if (entry) { |
5365 | | var next = entry.n; |
5366 | | var prev = entry.p; |
5367 | | delete that._i[entry.i]; |
5368 | | entry.r = true; |
5369 | | if (prev) prev.n = next; |
5370 | | if (next) next.p = prev; |
5371 | | if (that._f == entry) that._f = next; |
5372 | | if (that._l == entry) that._l = prev; |
5373 | | that[SIZE]--; |
5374 | | } return !!entry; |
5375 | | }, |
5376 | | // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) |
5377 | | // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) |
5378 | | forEach: function forEach(callbackfn /* , that = undefined */) { |
5379 | | validate(this, NAME); |
5380 | | var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); |
5381 | | var entry; |
5382 | | while (entry = entry ? entry.n : this._f) { |
5383 | | f(entry.v, entry.k, this); |
5384 | | // revert to the last existing entry |
5385 | | while (entry && entry.r) entry = entry.p; |
5386 | | } |
5387 | | }, |
5388 | | // 23.1.3.7 Map.prototype.has(key) |
5389 | | // 23.2.3.7 Set.prototype.has(value) |
5390 | | has: function has(key) { |
5391 | | return !!getEntry(validate(this, NAME), key); |
5392 | | } |
5393 | | }); |
5394 | | if (DESCRIPTORS) dP(C.prototype, 'size', { |
5395 | | get: function () { |
5396 | | return validate(this, NAME)[SIZE]; |
5397 | | } |
5398 | | }); |
5399 | | return C; |
5400 | | }, |
5401 | | def: function (that, key, value) { |
5402 | | var entry = getEntry(that, key); |
5403 | | var prev, index; |
5404 | | // change existing entry |
5405 | | if (entry) { |
5406 | | entry.v = value; |
5407 | | // create new entry |
5408 | | } else { |
5409 | | that._l = entry = { |
5410 | | i: index = fastKey(key, true), // <- index |
5411 | | k: key, // <- key |
5412 | | v: value, // <- value |
5413 | | p: prev = that._l, // <- previous entry |
5414 | | n: undefined, // <- next entry |
5415 | | r: false // <- removed |
5416 | | }; |
5417 | | if (!that._f) that._f = entry; |
5418 | | if (prev) prev.n = entry; |
5419 | | that[SIZE]++; |
5420 | | // add to index |
5421 | | if (index !== 'F') that._i[index] = entry; |
5422 | | } return that; |
5423 | | }, |
5424 | | getEntry: getEntry, |
5425 | | setStrong: function (C, NAME, IS_MAP) { |
5426 | | // add .keys, .values, .entries, [@@iterator] |
5427 | | // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 |
5428 | | $iterDefine(C, NAME, function (iterated, kind) { |
5429 | | this._t = validate(iterated, NAME); // target |
5430 | | this._k = kind; // kind |
5431 | | this._l = undefined; // previous |
5432 | | }, function () { |
5433 | | var that = this; |
5434 | | var kind = that._k; |
5435 | | var entry = that._l; |
5436 | | // revert to the last existing entry |
5437 | | while (entry && entry.r) entry = entry.p; |
5438 | | // get next entry |
5439 | | if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { |
5440 | | // or finish the iteration |
5441 | | that._t = undefined; |
5442 | | return step(1); |
5443 | | } |
5444 | | // return step by kind |
5445 | | if (kind == 'keys') return step(0, entry.k); |
5446 | | if (kind == 'values') return step(0, entry.v); |
5447 | | return step(0, [entry.k, entry.v]); |
5448 | | }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); |
5449 | | |
5450 | | // add [@@species], 23.1.2.2, 23.2.2.2 |
5451 | | setSpecies(NAME); |
5452 | | } |
5453 | | }; |
5454 | | |
5455 | | |
5456 | | /***/ }), |
5457 | | /* 222 */ |
5458 | | /***/ (function(module, exports, __webpack_require__) { |
5459 | | |
5460 | | var isObject = __webpack_require__(13); |
5461 | | module.exports = function (it, TYPE) { |
5462 | | if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); |
5463 | | return it; |
5464 | | }; |
5465 | | |
5466 | | |
5467 | | /***/ }), |
5468 | | /* 223 */ |
5469 | | /***/ (function(module, exports, __webpack_require__) { |
5470 | | |
5471 | | 'use strict'; |
5472 | | var global = __webpack_require__(4); |
5473 | | var $export = __webpack_require__(8); |
5474 | | var redefine = __webpack_require__(18); |
5475 | | var redefineAll = __webpack_require__(219); |
5476 | | var meta = __webpack_require__(22); |
5477 | | var forOf = __webpack_require__(212); |
5478 | | var anInstance = __webpack_require__(211); |
5479 | | var isObject = __webpack_require__(13); |
5480 | | var fails = __webpack_require__(7); |
5481 | | var $iterDetect = __webpack_require__(166); |
5482 | | var setToStringTag = __webpack_require__(25); |
5483 | | var inheritIfRequired = __webpack_require__(87); |
5484 | | |
5485 | | module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { |
5486 | | var Base = global[NAME]; |
5487 | | var C = Base; |
5488 | | var ADDER = IS_MAP ? 'set' : 'add'; |
5489 | | var proto = C && C.prototype; |
5490 | | var O = {}; |
5491 | | var fixMethod = function (KEY) { |
5492 | | var fn = proto[KEY]; |
5493 | | redefine(proto, KEY, |
5494 | | KEY == 'delete' ? function (a) { |
5495 | | return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); |
5496 | | } : KEY == 'has' ? function has(a) { |
5497 | | return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); |
5498 | | } : KEY == 'get' ? function get(a) { |
5499 | | return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); |
5500 | | } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } |
5501 | | : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } |
5502 | | ); |
5503 | | }; |
5504 | | if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { |
5505 | | new C().entries().next(); |
5506 | | }))) { |
5507 | | // create collection constructor |
5508 | | C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); |
5509 | | redefineAll(C.prototype, methods); |
5510 | | meta.NEED = true; |
5511 | | } else { |
5512 | | var instance = new C(); |
5513 | | // early implementations not supports chaining |
5514 | | var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; |
5515 | | // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false |
5516 | | var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); |
5517 | | // most early implementations doesn't supports iterables, most modern - not close it correctly |
5518 | | var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new |
5519 | | // for early implementations -0 and +0 not the same |
5520 | | var BUGGY_ZERO = !IS_WEAK && fails(function () { |
5521 | | // V8 ~ Chromium 42- fails only with 5+ elements |
5522 | | var $instance = new C(); |
5523 | | var index = 5; |
5524 | | while (index--) $instance[ADDER](index, index); |
5525 | | return !$instance.has(-0); |
5526 | | }); |
5527 | | if (!ACCEPT_ITERABLES) { |
5528 | | C = wrapper(function (target, iterable) { |
5529 | | anInstance(target, C, NAME); |
5530 | | var that = inheritIfRequired(new Base(), target, C); |
5531 | | if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); |
5532 | | return that; |
5533 | | }); |
5534 | | C.prototype = proto; |
5535 | | proto.constructor = C; |
5536 | | } |
5537 | | if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { |
5538 | | fixMethod('delete'); |
5539 | | fixMethod('has'); |
5540 | | IS_MAP && fixMethod('get'); |
5541 | | } |
5542 | | if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); |
5543 | | // weak collections should not contains .clear method |
5544 | | if (IS_WEAK && proto.clear) delete proto.clear; |
5545 | | } |
5546 | | |
5547 | | setToStringTag(C, NAME); |
5548 | | |
5549 | | O[NAME] = C; |
5550 | | $export($export.G + $export.W + $export.F * (C != Base), O); |
5551 | | |
5552 | | if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); |
5553 | | |
5554 | | return C; |
5555 | | }; |
5556 | | |
5557 | | |
5558 | | /***/ }), |
5559 | | /* 224 */ |
5560 | | /***/ (function(module, exports, __webpack_require__) { |
5561 | | |
5562 | | 'use strict'; |
5563 | | var strong = __webpack_require__(221); |
5564 | | var validate = __webpack_require__(222); |
5565 | | var SET = 'Set'; |
5566 | | |
5567 | | // 23.2 Set Objects |
5568 | | module.exports = __webpack_require__(223)(SET, function (get) { |
5569 | | return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; |
5570 | | }, { |
5571 | | // 23.2.3.1 Set.prototype.add(value) |
5572 | | add: function add(value) { |
5573 | | return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value); |
5574 | | } |
5575 | | }, strong); |
5576 | | |
5577 | | |
5578 | | /***/ }), |
5579 | | /* 225 */ |
5580 | | /***/ (function(module, exports, __webpack_require__) { |
5581 | | |
5582 | | 'use strict'; |
5583 | | var each = __webpack_require__(173)(0); |
5584 | | var redefine = __webpack_require__(18); |
5585 | | var meta = __webpack_require__(22); |
5586 | | var assign = __webpack_require__(68); |
5587 | | var weak = __webpack_require__(226); |
5588 | | var isObject = __webpack_require__(13); |
5589 | | var fails = __webpack_require__(7); |
5590 | | var validate = __webpack_require__(222); |
5591 | | var WEAK_MAP = 'WeakMap'; |
5592 | | var getWeak = meta.getWeak; |
5593 | | var isExtensible = Object.isExtensible; |
5594 | | var uncaughtFrozenStore = weak.ufstore; |
5595 | | var tmp = {}; |
5596 | | var InternalMap; |
5597 | | |
5598 | | var wrapper = function (get) { |
5599 | | return function WeakMap() { |
5600 | | return get(this, arguments.length > 0 ? arguments[0] : undefined); |
5601 | | }; |
5602 | | }; |
5603 | | |
5604 | | var methods = { |
5605 | | // 23.3.3.3 WeakMap.prototype.get(key) |
5606 | | get: function get(key) { |
5607 | | if (isObject(key)) { |
5608 | | var data = getWeak(key); |
5609 | | if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); |
5610 | | return data ? data[this._i] : undefined; |
5611 | | } |
5612 | | }, |
5613 | | // 23.3.3.5 WeakMap.prototype.set(key, value) |
5614 | | set: function set(key, value) { |
5615 | | return weak.def(validate(this, WEAK_MAP), key, value); |
5616 | | } |
5617 | | }; |
5618 | | |
5619 | | // 23.3 WeakMap Objects |
5620 | | var $WeakMap = module.exports = __webpack_require__(223)(WEAK_MAP, wrapper, methods, weak, true, true); |
5621 | | |
5622 | | // IE11 WeakMap frozen keys fix |
5623 | | if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { |
5624 | | InternalMap = weak.getConstructor(wrapper, WEAK_MAP); |
5625 | | assign(InternalMap.prototype, methods); |
5626 | | meta.NEED = true; |
5627 | | each(['delete', 'has', 'get', 'set'], function (key) { |
5628 | | var proto = $WeakMap.prototype; |
5629 | | var method = proto[key]; |
5630 | | redefine(proto, key, function (a, b) { |
5631 | | // store frozen objects on internal weakmap shim |
5632 | | if (isObject(a) && !isExtensible(a)) { |
5633 | | if (!this._f) this._f = new InternalMap(); |
5634 | | var result = this._f[key](a, b); |
5635 | | return key == 'set' ? this : result; |
5636 | | // store all the rest on native weakmap |
5637 | | } return method.call(this, a, b); |
5638 | | }); |
5639 | | }); |
5640 | | } |
5641 | | |
5642 | | |
5643 | | /***/ }), |
5644 | | /* 226 */ |
5645 | | /***/ (function(module, exports, __webpack_require__) { |
5646 | | |
5647 | | 'use strict'; |
5648 | | var redefineAll = __webpack_require__(219); |
5649 | | var getWeak = __webpack_require__(22).getWeak; |
5650 | | var anObject = __webpack_require__(12); |
5651 | | var isObject = __webpack_require__(13); |
5652 | | var anInstance = __webpack_require__(211); |
5653 | | var forOf = __webpack_require__(212); |
5654 | | var createArrayMethod = __webpack_require__(173); |
5655 | | var $has = __webpack_require__(5); |
5656 | | var validate = __webpack_require__(222); |
5657 | | var arrayFind = createArrayMethod(5); |
5658 | | var arrayFindIndex = createArrayMethod(6); |
5659 | | var id = 0; |
5660 | | |
5661 | | // fallback for uncaught frozen keys |
5662 | | var uncaughtFrozenStore = function (that) { |
5663 | | return that._l || (that._l = new UncaughtFrozenStore()); |
5664 | | }; |
5665 | | var UncaughtFrozenStore = function () { |
5666 | | this.a = []; |
5667 | | }; |
5668 | | var findUncaughtFrozen = function (store, key) { |
5669 | | return arrayFind(store.a, function (it) { |
5670 | | return it[0] === key; |
5671 | | }); |
5672 | | }; |
5673 | | UncaughtFrozenStore.prototype = { |
5674 | | get: function (key) { |
5675 | | var entry = findUncaughtFrozen(this, key); |
5676 | | if (entry) return entry[1]; |
5677 | | }, |
5678 | | has: function (key) { |
5679 | | return !!findUncaughtFrozen(this, key); |
5680 | | }, |
5681 | | set: function (key, value) { |
5682 | | var entry = findUncaughtFrozen(this, key); |
5683 | | if (entry) entry[1] = value; |
5684 | | else this.a.push([key, value]); |
5685 | | }, |
5686 | | 'delete': function (key) { |
5687 | | var index = arrayFindIndex(this.a, function (it) { |
5688 | | return it[0] === key; |
5689 | | }); |
5690 | | if (~index) this.a.splice(index, 1); |
5691 | | return !!~index; |
5692 | | } |
5693 | | }; |
5694 | | |
5695 | | module.exports = { |
5696 | | getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { |
5697 | | var C = wrapper(function (that, iterable) { |
5698 | | anInstance(that, C, NAME, '_i'); |
5699 | | that._t = NAME; // collection type |
5700 | | that._i = id++; // collection id |
5701 | | that._l = undefined; // leak store for uncaught frozen objects |
5702 | | if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); |
5703 | | }); |
5704 | | redefineAll(C.prototype, { |
5705 | | // 23.3.3.2 WeakMap.prototype.delete(key) |
5706 | | // 23.4.3.3 WeakSet.prototype.delete(value) |
5707 | | 'delete': function (key) { |
5708 | | if (!isObject(key)) return false; |
5709 | | var data = getWeak(key); |
5710 | | if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); |
5711 | | return data && $has(data, this._i) && delete data[this._i]; |
5712 | | }, |
5713 | | // 23.3.3.4 WeakMap.prototype.has(key) |
5714 | | // 23.4.3.4 WeakSet.prototype.has(value) |
5715 | | has: function has(key) { |
5716 | | if (!isObject(key)) return false; |
5717 | | var data = getWeak(key); |
5718 | | if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); |
5719 | | return data && $has(data, this._i); |
5720 | | } |
5721 | | }); |
5722 | | return C; |
5723 | | }, |
5724 | | def: function (that, key, value) { |
5725 | | var data = getWeak(anObject(key), true); |
5726 | | if (data === true) uncaughtFrozenStore(that).set(key, value); |
5727 | | else data[that._i] = value; |
5728 | | return that; |
5729 | | }, |
5730 | | ufstore: uncaughtFrozenStore |
5731 | | }; |
5732 | | |
5733 | | |
5734 | | /***/ }), |
5735 | | /* 227 */ |
5736 | | /***/ (function(module, exports, __webpack_require__) { |
5737 | | |
5738 | | 'use strict'; |
5739 | | var weak = __webpack_require__(226); |
5740 | | var validate = __webpack_require__(222); |
5741 | | var WEAK_SET = 'WeakSet'; |
5742 | | |
5743 | | // 23.4 WeakSet Objects |
5744 | | __webpack_require__(223)(WEAK_SET, function (get) { |
5745 | | return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; |
5746 | | }, { |
5747 | | // 23.4.3.1 WeakSet.prototype.add(value) |
5748 | | add: function add(value) { |
5749 | | return weak.def(validate(this, WEAK_SET), value, true); |
5750 | | } |
5751 | | }, weak, false, true); |
5752 | | |
5753 | | |
5754 | | /***/ }), |
5755 | | /* 228 */ |
5756 | | /***/ (function(module, exports, __webpack_require__) { |
5757 | | |
5758 | | 'use strict'; |
5759 | | var $export = __webpack_require__(8); |
5760 | | var $typed = __webpack_require__(229); |
5761 | | var buffer = __webpack_require__(230); |
5762 | | var anObject = __webpack_require__(12); |
5763 | | var toAbsoluteIndex = __webpack_require__(39); |
5764 | | var toLength = __webpack_require__(37); |
5765 | | var isObject = __webpack_require__(13); |
5766 | | var ArrayBuffer = __webpack_require__(4).ArrayBuffer; |
5767 | | var speciesConstructor = __webpack_require__(209); |
5768 | | var $ArrayBuffer = buffer.ArrayBuffer; |
5769 | | var $DataView = buffer.DataView; |
5770 | | var $isView = $typed.ABV && ArrayBuffer.isView; |
5771 | | var $slice = $ArrayBuffer.prototype.slice; |
5772 | | var VIEW = $typed.VIEW; |
5773 | | var ARRAY_BUFFER = 'ArrayBuffer'; |
5774 | | |
5775 | | $export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer }); |
5776 | | |
5777 | | $export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, { |
5778 | | // 24.1.3.1 ArrayBuffer.isView(arg) |
5779 | | isView: function isView(it) { |
5780 | | return $isView && $isView(it) || isObject(it) && VIEW in it; |
5781 | | } |
5782 | | }); |
5783 | | |
5784 | | $export($export.P + $export.U + $export.F * __webpack_require__(7)(function () { |
5785 | | return !new $ArrayBuffer(2).slice(1, undefined).byteLength; |
5786 | | }), ARRAY_BUFFER, { |
5787 | | // 24.1.4.3 ArrayBuffer.prototype.slice(start, end) |
5788 | | slice: function slice(start, end) { |
5789 | | if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix |
5790 | | var len = anObject(this).byteLength; |
5791 | | var first = toAbsoluteIndex(start, len); |
5792 | | var fin = toAbsoluteIndex(end === undefined ? len : end, len); |
5793 | | var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first)); |
5794 | | var viewS = new $DataView(this); |
5795 | | var viewT = new $DataView(result); |
5796 | | var index = 0; |
5797 | | while (first < fin) { |
5798 | | viewT.setUint8(index++, viewS.getUint8(first++)); |
5799 | | } return result; |
5800 | | } |
5801 | | }); |
5802 | | |
5803 | | __webpack_require__(193)(ARRAY_BUFFER); |
5804 | | |
5805 | | |
5806 | | /***/ }), |
5807 | | /* 229 */ |
5808 | | /***/ (function(module, exports, __webpack_require__) { |
5809 | | |
5810 | | var global = __webpack_require__(4); |
5811 | | var hide = __webpack_require__(10); |
5812 | | var uid = __webpack_require__(19); |
5813 | | var TYPED = uid('typed_array'); |
5814 | | var VIEW = uid('view'); |
5815 | | var ABV = !!(global.ArrayBuffer && global.DataView); |
5816 | | var CONSTR = ABV; |
5817 | | var i = 0; |
5818 | | var l = 9; |
5819 | | var Typed; |
5820 | | |
5821 | | var TypedArrayConstructors = ( |
5822 | | 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array' |
5823 | | ).split(','); |
5824 | | |
5825 | | while (i < l) { |
5826 | | if (Typed = global[TypedArrayConstructors[i++]]) { |
5827 | | hide(Typed.prototype, TYPED, true); |
5828 | | hide(Typed.prototype, VIEW, true); |
5829 | | } else CONSTR = false; |
5830 | | } |
5831 | | |
5832 | | module.exports = { |
5833 | | ABV: ABV, |
5834 | | CONSTR: CONSTR, |
5835 | | TYPED: TYPED, |
5836 | | VIEW: VIEW |
5837 | | }; |
5838 | | |
5839 | | |
5840 | | /***/ }), |
5841 | | /* 230 */ |
5842 | | /***/ (function(module, exports, __webpack_require__) { |
5843 | | |
5844 | | 'use strict'; |
5845 | | var global = __webpack_require__(4); |
5846 | | var DESCRIPTORS = __webpack_require__(6); |
5847 | | var LIBRARY = __webpack_require__(24); |
5848 | | var $typed = __webpack_require__(229); |
5849 | | var hide = __webpack_require__(10); |
5850 | | var redefineAll = __webpack_require__(219); |
5851 | | var fails = __webpack_require__(7); |
5852 | | var anInstance = __webpack_require__(211); |
5853 | | var toInteger = __webpack_require__(38); |
5854 | | var toLength = __webpack_require__(37); |
5855 | | var toIndex = __webpack_require__(231); |
5856 | | var gOPN = __webpack_require__(49).f; |
5857 | | var dP = __webpack_require__(11).f; |
5858 | | var arrayFill = __webpack_require__(189); |
5859 | | var setToStringTag = __webpack_require__(25); |
5860 | | var ARRAY_BUFFER = 'ArrayBuffer'; |
5861 | | var DATA_VIEW = 'DataView'; |
5862 | | var PROTOTYPE = 'prototype'; |
5863 | | var WRONG_LENGTH = 'Wrong length!'; |
5864 | | var WRONG_INDEX = 'Wrong index!'; |
5865 | | var $ArrayBuffer = global[ARRAY_BUFFER]; |
5866 | | var $DataView = global[DATA_VIEW]; |
5867 | | var Math = global.Math; |
5868 | | var RangeError = global.RangeError; |
5869 | | // eslint-disable-next-line no-shadow-restricted-names |
5870 | | var Infinity = global.Infinity; |
5871 | | var BaseBuffer = $ArrayBuffer; |
5872 | | var abs = Math.abs; |
5873 | | var pow = Math.pow; |
5874 | | var floor = Math.floor; |
5875 | | var log = Math.log; |
5876 | | var LN2 = Math.LN2; |
5877 | | var BUFFER = 'buffer'; |
5878 | | var BYTE_LENGTH = 'byteLength'; |
5879 | | var BYTE_OFFSET = 'byteOffset'; |
5880 | | var $BUFFER = DESCRIPTORS ? '_b' : BUFFER; |
5881 | | var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH; |
5882 | | var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET; |
5883 | | |
5884 | | // IEEE754 conversions based on https://github.com/feross/ieee754 |
5885 | | function packIEEE754(value, mLen, nBytes) { |
5886 | | var buffer = new Array(nBytes); |
5887 | | var eLen = nBytes * 8 - mLen - 1; |
5888 | | var eMax = (1 << eLen) - 1; |
5889 | | var eBias = eMax >> 1; |
5890 | | var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0; |
5891 | | var i = 0; |
5892 | | var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0; |
5893 | | var e, m, c; |
5894 | | value = abs(value); |
5895 | | // eslint-disable-next-line no-self-compare |
5896 | | if (value != value || value === Infinity) { |
5897 | | // eslint-disable-next-line no-self-compare |
5898 | | m = value != value ? 1 : 0; |
5899 | | e = eMax; |
5900 | | } else { |
5901 | | e = floor(log(value) / LN2); |
5902 | | if (value * (c = pow(2, -e)) < 1) { |
5903 | | e--; |
5904 | | c *= 2; |
5905 | | } |
5906 | | if (e + eBias >= 1) { |
5907 | | value += rt / c; |
5908 | | } else { |
5909 | | value += rt * pow(2, 1 - eBias); |
5910 | | } |
5911 | | if (value * c >= 2) { |
5912 | | e++; |
5913 | | c /= 2; |
5914 | | } |
5915 | | if (e + eBias >= eMax) { |
5916 | | m = 0; |
5917 | | e = eMax; |
5918 | | } else if (e + eBias >= 1) { |
5919 | | m = (value * c - 1) * pow(2, mLen); |
5920 | | e = e + eBias; |
5921 | | } else { |
5922 | | m = value * pow(2, eBias - 1) * pow(2, mLen); |
5923 | | e = 0; |
5924 | | } |
5925 | | } |
5926 | | for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8); |
5927 | | e = e << mLen | m; |
5928 | | eLen += mLen; |
5929 | | for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8); |
5930 | | buffer[--i] |= s * 128; |
5931 | | return buffer; |
5932 | | } |
5933 | | function unpackIEEE754(buffer, mLen, nBytes) { |
5934 | | var eLen = nBytes * 8 - mLen - 1; |
5935 | | var eMax = (1 << eLen) - 1; |
5936 | | var eBias = eMax >> 1; |
5937 | | var nBits = eLen - 7; |
5938 | | var i = nBytes - 1; |
5939 | | var s = buffer[i--]; |
5940 | | var e = s & 127; |
5941 | | var m; |
5942 | | s >>= 7; |
5943 | | for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8); |
5944 | | m = e & (1 << -nBits) - 1; |
5945 | | e >>= -nBits; |
5946 | | nBits += mLen; |
5947 | | for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8); |
5948 | | if (e === 0) { |
5949 | | e = 1 - eBias; |
5950 | | } else if (e === eMax) { |
5951 | | return m ? NaN : s ? -Infinity : Infinity; |
5952 | | } else { |
5953 | | m = m + pow(2, mLen); |
5954 | | e = e - eBias; |
5955 | | } return (s ? -1 : 1) * m * pow(2, e - mLen); |
5956 | | } |
5957 | | |
5958 | | function unpackI32(bytes) { |
5959 | | return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0]; |
5960 | | } |
5961 | | function packI8(it) { |
5962 | | return [it & 0xff]; |
5963 | | } |
5964 | | function packI16(it) { |
5965 | | return [it & 0xff, it >> 8 & 0xff]; |
5966 | | } |
5967 | | function packI32(it) { |
5968 | | return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff]; |
5969 | | } |
5970 | | function packF64(it) { |
5971 | | return packIEEE754(it, 52, 8); |
5972 | | } |
5973 | | function packF32(it) { |
5974 | | return packIEEE754(it, 23, 4); |
5975 | | } |
5976 | | |
5977 | | function addGetter(C, key, internal) { |
5978 | | dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } }); |
5979 | | } |
5980 | | |
5981 | | function get(view, bytes, index, isLittleEndian) { |
5982 | | var numIndex = +index; |
5983 | | var intIndex = toIndex(numIndex); |
5984 | | if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); |
5985 | | var store = view[$BUFFER]._b; |
5986 | | var start = intIndex + view[$OFFSET]; |
5987 | | var pack = store.slice(start, start + bytes); |
5988 | | return isLittleEndian ? pack : pack.reverse(); |
5989 | | } |
5990 | | function set(view, bytes, index, conversion, value, isLittleEndian) { |
5991 | | var numIndex = +index; |
5992 | | var intIndex = toIndex(numIndex); |
5993 | | if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); |
5994 | | var store = view[$BUFFER]._b; |
5995 | | var start = intIndex + view[$OFFSET]; |
5996 | | var pack = conversion(+value); |
5997 | | for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; |
5998 | | } |
5999 | | |
6000 | | if (!$typed.ABV) { |
6001 | | $ArrayBuffer = function ArrayBuffer(length) { |
6002 | | anInstance(this, $ArrayBuffer, ARRAY_BUFFER); |
6003 | | var byteLength = toIndex(length); |
6004 | | this._b = arrayFill.call(new Array(byteLength), 0); |
6005 | | this[$LENGTH] = byteLength; |
6006 | | }; |
6007 | | |
6008 | | $DataView = function DataView(buffer, byteOffset, byteLength) { |
6009 | | anInstance(this, $DataView, DATA_VIEW); |
6010 | | anInstance(buffer, $ArrayBuffer, DATA_VIEW); |
6011 | | var bufferLength = buffer[$LENGTH]; |
6012 | | var offset = toInteger(byteOffset); |
6013 | | if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!'); |
6014 | | byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength); |
6015 | | if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH); |
6016 | | this[$BUFFER] = buffer; |
6017 | | this[$OFFSET] = offset; |
6018 | | this[$LENGTH] = byteLength; |
6019 | | }; |
6020 | | |
6021 | | if (DESCRIPTORS) { |
6022 | | addGetter($ArrayBuffer, BYTE_LENGTH, '_l'); |
6023 | | addGetter($DataView, BUFFER, '_b'); |
6024 | | addGetter($DataView, BYTE_LENGTH, '_l'); |
6025 | | addGetter($DataView, BYTE_OFFSET, '_o'); |
6026 | | } |
6027 | | |
6028 | | redefineAll($DataView[PROTOTYPE], { |
6029 | | getInt8: function getInt8(byteOffset) { |
6030 | | return get(this, 1, byteOffset)[0] << 24 >> 24; |
6031 | | }, |