diff --git a/README.md b/README.md index 8ecf41aaeeb4..7ce2fee8f141 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ require('core-js/build')({ ``` ## Features: ### ECMAScript 5 -Module [`es5`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es5.js), nothing new - without examples. +Module [`es5`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es5.js), nothing new - without examples. ```javascript Object .create(proto | null, descriptors?) -> object @@ -164,7 +164,7 @@ String ### ECMAScript 6 #### ECMAScript 6: Object -Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.set-prototype-of.js) and [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.to-string.js). +Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.set-prototype-of.js) and [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.to-string.js). ```javascript Object .assign(target, ...src) -> target @@ -194,7 +194,7 @@ var O = {}; O[Symbol.toStringTag] = 'Foo'; '' + O; // => '[object Foo]' ``` -In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.object.get-own-property-names.js). +In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.object.get-own-property-names.js). ```javascript Object .freeze(var) -> var @@ -214,7 +214,7 @@ Object.keys('qwe'); // => ['0', '1', '2'] Object.getPrototypeOf('qwe') === String.prototype; // => true ``` #### ECMAScript 6: Function -Modules [`es6.function.name`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.function.has-instance.js). +Modules [`es6.function.name`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.function.has-instance.js). ```javascript Function #name -> string (IE9+) @@ -225,7 +225,7 @@ Function (function foo(){}).name // => 'foo' ``` #### ECMAScript 6: Array -Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.array.find.js) and [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.array.find-index.js). +Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.array.find.js) and [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.array.find-index.js). ```javascript Array .from(iterable | array-like, mapFn(val, index)?, that) -> array @@ -261,7 +261,7 @@ Array(5).fill(42); // => [42, 42, 42, 42, 42] [1, 2, 3, 4, 5].copyWithin(0, 3); // => [4, 5, 3, 4, 5] ``` #### ECMAScript 6: String -Modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.raw.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.trim.js). +Modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.raw.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.trim.js). ```javascript String .fromCodePoint(...codePoints) -> str @@ -292,9 +292,9 @@ String.raw`Hi\n${name}!`; // => 'Hi\\nBob!' (ES6 template string synta String.raw({raw: 'test'}, 0, 1, 2); // => 't0e1s2t' ``` #### ECMAScript 6: RegExp -Modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.regexp.flags.js). +Modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.regexp.flags.js). -Support well-known [symbols](#ecmascript-6-symbol) `@@match`, `@@replace`, `@@search` and `@@split`, modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.regexp.split.js). +Support well-known [symbols](#ecmascript-6-symbol) `@@match`, `@@replace`, `@@search` and `@@split`, modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.regexp.split.js). ``` String #match(tpl) -> var, ES6 fix for support @@match @@ -321,12 +321,12 @@ RegExp(/./g, 'm'); // => /./m 'foo'.split({[Symbol.split]: _ => 4}); // => 4 ``` #### ECMAScript 6: Number -Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.constructor.js). `Number` constructor support binary and octal literals, [example](http://goo.gl/jRd6b3): +Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.constructor.js). `Number` constructor support binary and octal literals, [example](http://goo.gl/jRd6b3): ```javascript Number('0b1010101'); // => 85 Number('0o7654321'); // => 2054353 ``` -`Number`: modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.number.parse-int.js). +`Number`: modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.number.parse-int.js). ```javascript [new] Number(var) -> number | number object .EPSILON -> num @@ -340,7 +340,7 @@ Number('0o7654321'); // => 2054353 .parseInt(str) -> int ``` #### ECMAScript 6: Math -`Math`: modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.math.trunc.js). +`Math`: modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.math.trunc.js). ```javascript Math .acosh(num) -> num @@ -363,7 +363,7 @@ Math ``` #### ECMAScript 6: Symbol -Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.symbol.js). +Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.symbol.js). ```javascript Symbol(description?) -> symbol .hasInstance -> @@hasInstance @@ -454,7 +454,7 @@ for(var key in o2)log(key); // nothing #### ECMAScript 6: Collections `core-js` uses native collections in most case, just fixes methods / constructor, if it's required, and in old environment uses fast polyfill (O(1) lookup). #### Map -Module [`es6.map`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.map.js). About iterators from this module [here](#ecmascript-6-iterators). +Module [`es6.map`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.map.js). About iterators from this module [here](#ecmascript-6-iterators). ```javascript new Map(iterable (entries) ?) -> map #clear() -> void @@ -486,7 +486,7 @@ log(map.get(a)); // => undefined log(Array.from(map)); // => [['a', 1], [42, 2], [true, 4]] ``` #### Set -Module [`es6.set`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.set.js). About iterators from this module [here](#ecmascript-6-iterators). +Module [`es6.set`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.set.js). About iterators from this module [here](#ecmascript-6-iterators). ```javascript new Set(iterable?) -> set #add(key) -> @ @@ -511,7 +511,7 @@ log(set.has('b')); // => false log(Array.from(set)); // => ['a', 'c', 'd', 'e'] ``` #### WeakMap -Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.weak-map.js). +Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.weak-map.js). ```javascript new WeakMap(iterable (entries) ?) -> weakmap #delete(key) -> bool @@ -550,7 +550,7 @@ log(person.getName()); // => 'Vasya' for(var key in person)log(key); // => only 'getName' ``` #### WeakSet -Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.weak-set.js). +Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.weak-set.js). ```javascript new WeakSet(iterable?) -> weakset #add(key) -> @ @@ -576,7 +576,7 @@ log(wset.has(b)); // => false * Weak-collections polyfill stores values as hidden properties of keys. It works correct and not leak in most cases. However, it is desirable to store a collection longer than its keys. #### ECMAScript 6: Iterators -Modules [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.string.iterator.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.array.iterator.js): +Modules [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.string.iterator.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.array.iterator.js): ```javascript String #@@iterator() -> iterator @@ -588,7 +588,7 @@ Array Arguments #@@iterator() -> iterator (available only in core-js methods) ``` -Modules [`es6.map`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.map.js) and [`es6.set`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.set.js): +Modules [`es6.map`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.map.js) and [`es6.set`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.set.js): ```javascript Map #values() -> iterator @@ -601,7 +601,7 @@ Set #entries() -> iterator (entries) #@@iterator() -> iterator ``` -Module [`web.dom.iterable`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/web.dom.iterable.js): +Module [`web.dom.iterable`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/web.dom.iterable.js): ```javascript NodeList #@@iterator() -> iterator @@ -649,7 +649,7 @@ for(var x of document.querySelectorAll('*')){ log(x.id); } ``` -Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.get-iterator-method.js) - helpers for check iterable / get iterator in `library` version or, for example, for `arguments` object: +Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.get-iterator-method.js) - helpers for check iterable / get iterator in `library` version or, for example, for `arguments` object: ```javascript core .isIterable(var) -> bool @@ -683,7 +683,7 @@ log(iter.next().value); // undefined log(core.getIteratorMethod({})); // undefined ``` #### ECMAScript 6: Promise -Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.promise.js). +Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.promise.js). ```javascript new Promise(executor(resolve(var), reject(var))) -> promise #then(resolved(var), rejected(var)) -> promise @@ -771,10 +771,29 @@ async function sleepError(time, msg){ } })(); ``` -`core-js` `Promise` supports (but not adds to native implementations) unhandled rejection tracking. In browser you will see notify in console, in node.js / io.js you can use [`unhandledRejection`](https://gist.github.com/benjamingr/0237932cee84712951a2) event. + +##### Unhandled rejection tracking + +`core-js` `Promise` supports (but not adds to native implementations) unhandled rejection tracking. + +[Node.js](https://gist.github.com/benjamingr/0237932cee84712951a2): +```js +process.on('unhandledRejection', (reason, promise) => console.log(reason, promise)); +Promise.reject(42); +// 42 [object Promise] + +``` +In a browser, by default, you will see notify in the console, or you can add a custom handler, [example](http://goo.gl/izTr2I): +```js +window.onunhandledrejection = e => log(e.reason, e.promise); +Promise.reject(42); +// 42 [object Promise] +``` +**Warning**: The problem here - we can't add it to native `Promise` implementations, but by idea `core-js` should use enough correct native implementation if it's available. Currently, most native implementations are buggy and `core-js` uses polyfill, but the situation will be changed. If someone wanna use this hook everywhere - he should delete `window.Promise` before inclusion `core-js`. + #### ECMAScript 6: Reflect -Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es6.reflect.set-prototype-of.js). +Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es6.reflect.set-prototype-of.js). ```javascript Reflect .apply(target, thisArgument, argumentsList) -> var @@ -807,14 +826,14 @@ var instance = Reflect.construct(C, [20, 22]); instance.c; // => 42 ``` ### ECMAScript 7 -* `Array#includes` [proposal](https://github.com/domenic/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.array.includes.js) -* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.string.at.js) -* `String#padLeft`, `String#padRight` [proposal](https://github.com/ljharb/proposal-string-pad-left-right) - modules [`es7.string.pad-left`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.string.pad-right.js) -* `String#trimLeft`, `String#trimRight` [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim) - modules [`es7.string.trim-left`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.string.trim-right.js) -* `Object.values`, `Object.entries` [proposal](https://github.com/ljharb/proposal-object-values-entries) - modules [`es7.object.values`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.object.entries.js) -* `Object.getOwnPropertyDescriptors` [proposal](https://gist.github.com/WebReflection/9353781) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.object.get-own-property-descriptors.js) -* `RegExp.escape` [proposal](https://github.com/benjamingr/RexExp.escape) - module [`es7.regexp.escape`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.regexp.escape.js) -* `Map#toJSON`, `Set#toJSON` [proposal](https://github.com/DavidBruant/Map-Set.prototype.toJSON) - modules [`es7.map.to-json`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/es7.set.to-json.js) +* `Array#includes` [proposal](https://github.com/domenic/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.array.includes.js) +* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.string.at.js) +* `String#padLeft`, `String#padRight` [proposal](https://github.com/ljharb/proposal-string-pad-left-right) - modules [`es7.string.pad-left`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.string.pad-right.js) +* `String#trimLeft`, `String#trimRight` [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim) - modules [`es7.string.trim-left`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.string.trim-right.js) +* `Object.values`, `Object.entries` [proposal](https://github.com/ljharb/proposal-object-values-entries) - modules [`es7.object.values`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.object.entries.js) +* `Object.getOwnPropertyDescriptors` [proposal](https://gist.github.com/WebReflection/9353781) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.object.get-own-property-descriptors.js) +* `RegExp.escape` [proposal](https://github.com/benjamingr/RexExp.escape) - module [`es7.regexp.escape`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.regexp.escape.js) +* `Map#toJSON`, `Set#toJSON` [proposal](https://github.com/DavidBruant/Map-Set.prototype.toJSON) - modules [`es7.map.to-json`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/es7.set.to-json.js) ```javascript Array @@ -872,7 +891,7 @@ JSON.stringify(new Map([['a', 'b'], ['c', 'd']])); // => '[["a","b"],["c","d"]]' JSON.stringify(new Set([1, 2, 3, 2, 1])); // => '[1,2,3]' ``` ### Mozilla JavaScript: Array generics -Module [`js.array.statics`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/js.array.statics.js). +Module [`js.array.statics`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/js.array.statics.js). ```javascript Array .{...ArrayPrototype methods} @@ -891,7 +910,7 @@ Array.reduce(form, function(memo, it){ ``` ### Web standards #### setTimeout / setInterval -Module [`web.timers`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/web.timers.js). Additional arguments fix for IE9-. +Module [`web.timers`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/web.timers.js). Additional arguments fix for IE9-. ```javascript setTimeout(fn(...args), time, ...args) -> id setInterval(fn(...args), time, ...args) -> id @@ -903,7 +922,7 @@ setTimeout(log.bind(null, 42), 1000); setTimeout(log, 1000, 42); ``` #### setImmediate -Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/web.immediate.js). [`setImmediate` proposal](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) polyfill. +Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/web.immediate.js). [`setImmediate` proposal](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) polyfill. ```javascript setImmediate(fn(...args), ...args) -> id clearImmediate(id) -> void @@ -920,7 +939,7 @@ clearImmediate(setImmediate(function(){ ``` ### Non-standard #### Object -Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.object.make.js). +Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.object.make.js). ```javascript Object .isObject(var) -> bool @@ -1025,7 +1044,7 @@ log(vector.xy); // => 15.811388300841896 log(vector.xyz); // => 25.495097567963924 ``` #### Dict -Module [`core.dict`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.dict.js). Based on [TC39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2012-11/nov-29.md#collection-apis-review) / [strawman](http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard#dictionaries). +Module [`core.dict`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.dict.js). Based on [TC39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2012-11/nov-29.md#collection-apis-review) / [strawman](http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard#dictionaries). ```javascript [new] Dict(iterable (entries) | object ?) -> dict .isDict(var) -> bool @@ -1168,7 +1187,7 @@ Dict.reduce(dict, function(memo, it){ }, ''); // => '123' ``` #### Partial application -Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.function.part.js). +Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.function.part.js). ```javascript Function #part(...args | _) -> fn(...args) @@ -1188,7 +1207,7 @@ fn2(1, 3, 5); // => 1, 2, 3, 4, 5 fn2(1); // => 1, 2, undefined, 4 ``` #### Number Iterator -Modules [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.number.iterator.js). +Modules [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.number.iterator.js). ```javascript Number #@@iterator() -> iterator @@ -1211,7 +1230,7 @@ Array.from(10, function(it){ Dict((for(i of 3)['key' + i, !(i % 2)])); // => {key0: true, key1: false, key2: true} ``` #### Escaping HTML -Modules [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.string.unescape-html.js). +Modules [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.string.unescape-html.js). ```javascript String #escapeHTML() -> str @@ -1223,7 +1242,7 @@ String '<script>doSomething();</script>'.unescapeHTML(); // => '' ``` #### delay -Module [`core.delay`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.delay.js). [Promise](#ecmascript-6-promise)-returning delay function, [esdiscuss](https://esdiscuss.org/topic/promise-returning-delay-function). [Example](http://goo.gl/lbucba): +Module [`core.delay`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.delay.js). [Promise](#ecmascript-6-promise)-returning delay function, [esdiscuss](https://esdiscuss.org/topic/promise-returning-delay-function). [Example](http://goo.gl/lbucba): ```javascript delay(1e3).then(() => log('after 1 sec')); @@ -1235,7 +1254,7 @@ delay(1e3).then(() => log('after 1 sec')); })(); ``` #### Console -Module [`core.log`](https://github.com/zloirock/core-js/blob/v1.1.4/modules/core.log.js). Console cap for old browsers and some additional functionality. In IE, Node.js / IO.js and Firebug `console` methods not require call from `console` object, but in Chromium and V8 this throws error. For some reason, we can't replace `console` methods by their bound versions. Add `log` object with bound console methods. Some more sugar: `log` is shortcut for `log.log`, we can disable output. +Module [`core.log`](https://github.com/zloirock/core-js/blob/v1.2.0/modules/core.log.js). Console cap for old browsers and some additional functionality. In IE, Node.js / IO.js and Firebug `console` methods not require call from `console` object, but in Chromium and V8 this throws error. For some reason, we can't replace `console` methods by their bound versions. Add `log` object with bound console methods. Some more sugar: `log` is shortcut for `log.log`, we can disable output. ```javascript log ==== log.log .{...console API} @@ -1274,6 +1293,15 @@ log.warn('Console is enabled again.'); - `window.fetch` is not crossplatform feature, in some environments it make no sense. For this reason I don't think it should be in `core-js`. Looking at the large number of requests it *maybe* added in the future. Now you can use, for example, [this polyfill](https://github.com/github/fetch). ## Changelog +##### 1.2.0 - 2015.09.27 + * added browser [`Promise` rejection hook](#unhandled-rejection-tracking), [#106](https://github.com/zloirock/core-js/issues/106) + * added correct [`IsRegExp`](http://www.ecma-international.org/ecma-262/6.0/#sec-isregexp) logic to [`String#{includes, startsWith, endsWith}`](#ecmascript-6-string) and [`RegExp` constructor](#ecmascript-6-regexp), `@@match` case, [example](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/match#Disabling_the_isRegExp_check) + * updated [`String#leftPad`](#ecmascript-7) [with proposal](https://github.com/ljharb/proposal-string-pad-left-right/issues/6): string filler truncated from the right side + * replaced V8 [`Object.assign`](#ecmascript-6-object) - its properties order not only [incorrect](https://github.com/sindresorhus/object-assign/issues/22), it is non-deterministic and it causes some problems + * fixed behavior with deleted in getters properties for `Object.{`[`assign`](#ecmascript-6-object)`, `[`entries, values`](#ecmascript-7)`}`, [example](http://goo.gl/iQE01c) + * fixed [`Math.sinh`](#ecmascript-6-math) with very small numbers in V8 near Chromium 38 + * some other fixes and optimizations + ##### 1.1.4 - 2015.09.05 * fixed support symbols in FF34-35 [`Object.assign`](#ecmascript-6-object) * fixed [collections iterators](#ecmascript-6-iterators) in FF25-26 diff --git a/client/core.js b/client/core.js index 970b5858becf..f9f02a99ebb0 100644 --- a/client/core.js +++ b/client/core.js @@ -53,13 +53,12 @@ /***/ function(module, exports, __webpack_require__) { __webpack_require__(1); - __webpack_require__(30); - __webpack_require__(38); - __webpack_require__(40); - __webpack_require__(42); - __webpack_require__(44); - __webpack_require__(46); - __webpack_require__(48); + __webpack_require__(33); + __webpack_require__(39); + __webpack_require__(41); + __webpack_require__(43); + __webpack_require__(45); + __webpack_require__(47); __webpack_require__(49); __webpack_require__(50); __webpack_require__(51); @@ -74,20 +73,20 @@ __webpack_require__(60); __webpack_require__(61); __webpack_require__(62); - __webpack_require__(64); + __webpack_require__(63); __webpack_require__(65); __webpack_require__(66); __webpack_require__(67); __webpack_require__(68); __webpack_require__(69); __webpack_require__(70); - __webpack_require__(72); + __webpack_require__(71); __webpack_require__(73); __webpack_require__(74); - __webpack_require__(76); + __webpack_require__(75); __webpack_require__(77); __webpack_require__(78); - __webpack_require__(80); + __webpack_require__(79); __webpack_require__(81); __webpack_require__(82); __webpack_require__(83); @@ -100,35 +99,31 @@ __webpack_require__(90); __webpack_require__(91); __webpack_require__(92); - __webpack_require__(94); - __webpack_require__(96); - __webpack_require__(98); - __webpack_require__(99); + __webpack_require__(93); + __webpack_require__(95); + __webpack_require__(97); __webpack_require__(101); __webpack_require__(102); - __webpack_require__(106); - __webpack_require__(111); - __webpack_require__(112); + __webpack_require__(104); + __webpack_require__(105); + __webpack_require__(109); + __webpack_require__(114); __webpack_require__(115); - __webpack_require__(117); __webpack_require__(118); - __webpack_require__(119); __webpack_require__(120); - __webpack_require__(121); - __webpack_require__(123); + __webpack_require__(122); __webpack_require__(124); + __webpack_require__(125); __webpack_require__(126); - __webpack_require__(127); __webpack_require__(128); __webpack_require__(129); - __webpack_require__(135); - __webpack_require__(138); - __webpack_require__(139); - __webpack_require__(141); - __webpack_require__(142); + __webpack_require__(131); + __webpack_require__(132); + __webpack_require__(133); + __webpack_require__(134); + __webpack_require__(140); __webpack_require__(143); __webpack_require__(144); - __webpack_require__(145); __webpack_require__(146); __webpack_require__(147); __webpack_require__(148); @@ -136,39 +131,44 @@ __webpack_require__(150); __webpack_require__(151); __webpack_require__(152); + __webpack_require__(153); __webpack_require__(154); __webpack_require__(155); __webpack_require__(156); __webpack_require__(157); - __webpack_require__(158); __webpack_require__(159); + __webpack_require__(160); __webpack_require__(161); __webpack_require__(162); __webpack_require__(163); __webpack_require__(164); __webpack_require__(166); __webpack_require__(167); + __webpack_require__(168); __webpack_require__(169); - __webpack_require__(170); + __webpack_require__(171); __webpack_require__(172); - __webpack_require__(173); __webpack_require__(174); __webpack_require__(175); + __webpack_require__(177); __webpack_require__(178); - __webpack_require__(109); - __webpack_require__(180); __webpack_require__(179); - __webpack_require__(181); - __webpack_require__(182); + __webpack_require__(180); __webpack_require__(183); - __webpack_require__(184); + __webpack_require__(112); __webpack_require__(185); + __webpack_require__(184); + __webpack_require__(186); __webpack_require__(187); __webpack_require__(188); __webpack_require__(189); __webpack_require__(190); - __webpack_require__(191); - module.exports = __webpack_require__(192); + __webpack_require__(192); + __webpack_require__(193); + __webpack_require__(194); + __webpack_require__(195); + __webpack_require__(196); + module.exports = __webpack_require__(197); /***/ }, @@ -188,12 +188,12 @@ , arrayMethod = __webpack_require__(18) , IE_PROTO = __webpack_require__(16)('__proto__') , isObject = __webpack_require__(9) - , anObject = __webpack_require__(26) + , anObject = __webpack_require__(29) , aFunction = __webpack_require__(20) , toObject = __webpack_require__(22) - , toIObject = __webpack_require__(27) + , toIObject = __webpack_require__(30) , toInteger = __webpack_require__(25) - , toIndex = __webpack_require__(28) + , toIndex = __webpack_require__(31) , toLength = __webpack_require__(24) , IObject = __webpack_require__(21) , fails = __webpack_require__(4) @@ -204,7 +204,7 @@ , defineProperty = $.setDesc , getOwnDescriptor = $.getDesc , defineProperties = $.setDescs - , $indexOf = __webpack_require__(29)(false) + , $indexOf = __webpack_require__(32)(false) , factories = {} , IE8_DOM_DEFINE; @@ -365,7 +365,7 @@ }); // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) - $def($def.S, 'Array', {isArray: function(arg){ return cof(arg) == 'Array'; }}); + $def($def.S, 'Array', {isArray: __webpack_require__(26)}); var createArrayReduce = function(isRight){ return function(callbackfn, memo){ @@ -535,9 +535,8 @@ /* 9 */ /***/ function(module, exports) { - // http://jsperf.com/core-js-isobject module.exports = function(it){ - return it !== null && (typeof it == 'object' || typeof it == 'function'); + return typeof it === 'object' ? it !== null : typeof it === 'function'; }; /***/ }, @@ -610,7 +609,7 @@ /* 13 */ /***/ function(module, exports) { - var core = module.exports = {}; + var core = module.exports = {version: '1.1.4'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef /***/ }, @@ -701,9 +700,20 @@ // 5 -> Array#find // 6 -> Array#findIndex var ctx = __webpack_require__(19) + , isObject = __webpack_require__(9) , IObject = __webpack_require__(21) , toObject = __webpack_require__(22) - , toLength = __webpack_require__(24); + , toLength = __webpack_require__(24) + , isArray = __webpack_require__(26) + , SPECIES = __webpack_require__(27)('species'); + // 9.4.2.3 ArraySpeciesCreate(originalArray, length) + var ASC = function(original, length){ + var C; + if(isArray(original) && isObject(C = original.constructor)){ + C = C[SPECIES]; + if(C === null)C = undefined; + } return new(C === undefined ? Array : C)(length); + }; module.exports = function(TYPE){ var IS_MAP = TYPE == 1 , IS_FILTER = TYPE == 2 @@ -717,7 +727,7 @@ , f = ctx(callbackfn, that, 3) , length = toLength(self.length) , index = 0 - , result = IS_MAP ? Array(length) : IS_FILTER ? [] : undefined + , result = IS_MAP ? ASC($this, length) : IS_FILTER ? ASC($this, 0) : undefined , val, res; for(;length > index; index++)if(NO_HOLES || index in self){ val = self[index]; @@ -755,9 +765,10 @@ case 3: return function(a, b, c){ return fn.call(that, a, b, c); }; - } return function(/* ...args */){ - return fn.apply(that, arguments); - }; + } + return function(/* ...args */){ + return fn.apply(that, arguments); + }; }; /***/ }, @@ -823,6 +834,38 @@ /***/ }, /* 26 */ +/***/ function(module, exports, __webpack_require__) { + + // 7.2.2 IsArray(argument) + var cof = __webpack_require__(11); + module.exports = Array.isArray || function(arg){ + return cof(arg) == 'Array'; + }; + +/***/ }, +/* 27 */ +/***/ function(module, exports, __webpack_require__) { + + var store = __webpack_require__(28)('wks') + , Symbol = __webpack_require__(7).Symbol; + module.exports = function(name){ + return store[name] || (store[name] = + Symbol && Symbol[name] || (Symbol || __webpack_require__(16))('Symbol.' + name)); + }; + +/***/ }, +/* 28 */ +/***/ function(module, exports, __webpack_require__) { + + var global = __webpack_require__(7) + , SHARED = '__core-js_shared__' + , store = global[SHARED] || (global[SHARED] = {}); + module.exports = function(key){ + return store[key] || (store[key] = {}); + }; + +/***/ }, +/* 29 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(9); @@ -832,7 +875,7 @@ }; /***/ }, -/* 27 */ +/* 30 */ /***/ function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings @@ -843,7 +886,7 @@ }; /***/ }, -/* 28 */ +/* 31 */ /***/ function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(25) @@ -855,14 +898,14 @@ }; /***/ }, -/* 29 */ +/* 32 */ /***/ function(module, exports, __webpack_require__) { // false -> Array#indexOf // true -> Array#includes - var toIObject = __webpack_require__(27) + var toIObject = __webpack_require__(30) , toLength = __webpack_require__(24) - , toIndex = __webpack_require__(28); + , toIndex = __webpack_require__(31); module.exports = function(IS_INCLUDES){ return function($this, el, fromIndex){ var O = toIObject($this) @@ -881,7 +924,7 @@ }; /***/ }, -/* 30 */ +/* 33 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -892,16 +935,17 @@ , SUPPORT_DESC = __webpack_require__(3) , $def = __webpack_require__(12) , $redef = __webpack_require__(15) - , shared = __webpack_require__(31) - , setTag = __webpack_require__(32) + , $fails = __webpack_require__(4) + , shared = __webpack_require__(28) + , setTag = __webpack_require__(34) , uid = __webpack_require__(16) - , wks = __webpack_require__(33) - , keyOf = __webpack_require__(34) - , $names = __webpack_require__(35) - , enumKeys = __webpack_require__(36) + , wks = __webpack_require__(27) + , keyOf = __webpack_require__(35) + , $names = __webpack_require__(36) + , enumKeys = __webpack_require__(37) , isObject = __webpack_require__(9) - , anObject = __webpack_require__(26) - , toIObject = __webpack_require__(27) + , anObject = __webpack_require__(29) + , toIObject = __webpack_require__(30) , createDesc = __webpack_require__(5) , getDesc = $.getDesc , setDesc = $.setDesc @@ -916,22 +960,17 @@ , useNative = typeof $Symbol == 'function' , ObjectProto = Object.prototype; - var setSymbolDesc = SUPPORT_DESC ? function(){ // fallback for old Android - try { - return _create(setDesc({}, HIDDEN, { - get: function(){ - return setDesc(this, HIDDEN, {value: false})[HIDDEN]; - } - }))[HIDDEN] || setDesc; - } catch(e){ - return function(it, key, D){ - var protoDesc = getDesc(ObjectProto, key); - if(protoDesc)delete ObjectProto[key]; - setDesc(it, key, D); - if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc); - }; - } - }() : setDesc; + // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 + var setSymbolDesc = SUPPORT_DESC && $fails(function(){ + return _create(setDesc({}, 'a', { + get: function(){ return setDesc(this, 'a', {value: 7}).a; } + })).a != 7; + }) ? function(it, key, D){ + var protoDesc = getDesc(ObjectProto, key); + if(protoDesc)delete ObjectProto[key]; + setDesc(it, key, D); + if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc); + } : setDesc; var wrap = function(tag){ var sym = AllSymbols[tag] = _create($Symbol.prototype); @@ -1014,15 +1053,14 @@ $.getNames = $names.get = $getOwnPropertyNames; $.getSymbols = $getOwnPropertySymbols; - if(SUPPORT_DESC && !__webpack_require__(37)){ + if(SUPPORT_DESC && !__webpack_require__(38)){ $redef(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); } } // MS Edge converts symbol values to JSON as {} - // WebKit converts symbol values in objects to JSON as null - if(!useNative || __webpack_require__(4)(function(){ - return JSON.stringify([{a: $Symbol()}, [$Symbol()]]) != '[{},[null]]'; + if(!useNative || $fails(function(){ + return JSON.stringify([$Symbol()]) != '[null]'; }))$redef($Symbol.prototype, 'toJSON', function toJSON(){ if(useNative && isObject(this))return this; }); @@ -1090,45 +1128,23 @@ setTag(global.JSON, 'JSON', true); /***/ }, -/* 31 */ -/***/ function(module, exports, __webpack_require__) { - - var global = __webpack_require__(7) - , SHARED = '__core-js_shared__' - , store = global[SHARED] || (global[SHARED] = {}); - module.exports = function(key){ - return store[key] || (store[key] = {}); - }; - -/***/ }, -/* 32 */ +/* 34 */ /***/ function(module, exports, __webpack_require__) { var has = __webpack_require__(10) , hide = __webpack_require__(14) - , TAG = __webpack_require__(33)('toStringTag'); + , TAG = __webpack_require__(27)('toStringTag'); module.exports = function(it, tag, stat){ if(it && !has(it = stat ? it : it.prototype, TAG))hide(it, TAG, tag); }; /***/ }, -/* 33 */ -/***/ function(module, exports, __webpack_require__) { - - var store = __webpack_require__(31)('wks') - , Symbol = __webpack_require__(7).Symbol; - module.exports = function(name){ - return store[name] || (store[name] = - Symbol && Symbol[name] || (Symbol || __webpack_require__(16))('Symbol.' + name)); - }; - -/***/ }, -/* 34 */ +/* 35 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) - , toIObject = __webpack_require__(27); + , toIObject = __webpack_require__(30); module.exports = function(object, el){ var O = toIObject(object) , keys = $.getKeys(O) @@ -1139,12 +1155,12 @@ }; /***/ }, -/* 35 */ +/* 36 */ /***/ function(module, exports, __webpack_require__) { // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toString = {}.toString - , toIObject = __webpack_require__(27) + , toIObject = __webpack_require__(30) , getNames = __webpack_require__(2).getNames; var windowNames = typeof window == 'object' && Object.getOwnPropertyNames @@ -1164,7 +1180,7 @@ }; /***/ }, -/* 36 */ +/* 37 */ /***/ function(module, exports, __webpack_require__) { // all enumerable object keys, includes symbols @@ -1183,31 +1199,40 @@ }; /***/ }, -/* 37 */ +/* 38 */ /***/ function(module, exports) { module.exports = false; /***/ }, -/* 38 */ +/* 39 */ /***/ function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $def = __webpack_require__(12); - $def($def.S + $def.F, 'Object', {assign: __webpack_require__(39)}); + $def($def.S + $def.F, 'Object', {assign: __webpack_require__(40)}); /***/ }, -/* 39 */ +/* 40 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.1 Object.assign(target, source, ...) var toObject = __webpack_require__(22) , IObject = __webpack_require__(21) - , enumKeys = __webpack_require__(36); + , enumKeys = __webpack_require__(37) + , has = __webpack_require__(10); + // should work with symbols and should have deterministic property order (V8 bug) module.exports = __webpack_require__(4)(function(){ - return Symbol() in Object.assign({}); // Object.assign available and Symbol is native + var a = Object.assign + , A = {} + , B = {} + , S = Symbol() + , K = 'abcdefghijklmnopqrst'; + A[S] = 7; + K.split('').forEach(function(k){ B[k] = k; }); + return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K; }) ? function assign(target, source){ // eslint-disable-line no-unused-vars var T = toObject(target) , l = arguments.length @@ -1218,23 +1243,23 @@ , length = keys.length , j = 0 , key; - while(length > j)T[key = keys[j++]] = S[key]; + while(length > j)if(has(S, key = keys[j++]))T[key] = S[key]; } return T; } : Object.assign; /***/ }, -/* 40 */ +/* 41 */ /***/ function(module, exports, __webpack_require__) { // 19.1.3.10 Object.is(value1, value2) var $def = __webpack_require__(12); $def($def.S, 'Object', { - is: __webpack_require__(41) + is: __webpack_require__(42) }); /***/ }, -/* 41 */ +/* 42 */ /***/ function(module, exports) { module.exports = Object.is || function is(x, y){ @@ -1242,53 +1267,53 @@ }; /***/ }, -/* 42 */ +/* 43 */ /***/ function(module, exports, __webpack_require__) { // 19.1.3.19 Object.setPrototypeOf(O, proto) var $def = __webpack_require__(12); - $def($def.S, 'Object', {setPrototypeOf: __webpack_require__(43).set}); + $def($def.S, 'Object', {setPrototypeOf: __webpack_require__(44).set}); /***/ }, -/* 43 */ +/* 44 */ /***/ function(module, exports, __webpack_require__) { // Works with __proto__ only. Old v8 can't work with null proto objects. /* eslint-disable no-proto */ var getDesc = __webpack_require__(2).getDesc , isObject = __webpack_require__(9) - , anObject = __webpack_require__(26); + , anObject = __webpack_require__(29); var check = function(O, proto){ anObject(O); if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!"); }; module.exports = { - set: Object.setPrototypeOf || ('__proto__' in {} // eslint-disable-line - ? function(buggy, set){ - try { - set = __webpack_require__(19)(Function.call, getDesc(Object.prototype, '__proto__').set, 2); - set({}, []); - } catch(e){ buggy = true; } - return function setPrototypeOf(O, proto){ - check(O, proto); - if(buggy)O.__proto__ = proto; - else set(O, proto); - return O; - }; - }() - : undefined), + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line no-proto + function(test, buggy, set){ + try { + set = __webpack_require__(19)(Function.call, getDesc(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch(e){ buggy = true; } + return function setPrototypeOf(O, proto){ + check(O, proto); + if(buggy)O.__proto__ = proto; + else set(O, proto); + return O; + }; + }({}, false) : undefined), check: check }; /***/ }, -/* 44 */ +/* 45 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; // 19.1.3.6 Object.prototype.toString() - var classof = __webpack_require__(45) + var classof = __webpack_require__(46) , test = {}; - test[__webpack_require__(33)('toStringTag')] = 'z'; + test[__webpack_require__(27)('toStringTag')] = 'z'; if(test + '' != '[object z]'){ __webpack_require__(15)(Object.prototype, 'toString', function toString(){ return '[object ' + classof(this) + ']'; @@ -1296,12 +1321,12 @@ } /***/ }, -/* 45 */ +/* 46 */ /***/ function(module, exports, __webpack_require__) { // getting tag from 19.1.3.6 Object.prototype.toString() var cof = __webpack_require__(11) - , TAG = __webpack_require__(33)('toStringTag') + , TAG = __webpack_require__(27)('toStringTag') // ES3 wrong here , ARG = cof(function(){ return arguments; }()) == 'Arguments'; @@ -1317,20 +1342,20 @@ }; /***/ }, -/* 46 */ +/* 47 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.5 Object.freeze(O) var isObject = __webpack_require__(9); - __webpack_require__(47)('freeze', function($freeze){ + __webpack_require__(48)('freeze', function($freeze){ return function freeze(it){ return $freeze && isObject(it) ? $freeze(it) : it; }; }); /***/ }, -/* 47 */ +/* 48 */ /***/ function(module, exports, __webpack_require__) { // most Object methods by ES6 should accept primitives @@ -1343,120 +1368,120 @@ }; /***/ }, -/* 48 */ +/* 49 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.17 Object.seal(O) var isObject = __webpack_require__(9); - __webpack_require__(47)('seal', function($seal){ + __webpack_require__(48)('seal', function($seal){ return function seal(it){ return $seal && isObject(it) ? $seal(it) : it; }; }); /***/ }, -/* 49 */ +/* 50 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.15 Object.preventExtensions(O) var isObject = __webpack_require__(9); - __webpack_require__(47)('preventExtensions', function($preventExtensions){ + __webpack_require__(48)('preventExtensions', function($preventExtensions){ return function preventExtensions(it){ return $preventExtensions && isObject(it) ? $preventExtensions(it) : it; }; }); /***/ }, -/* 50 */ +/* 51 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.12 Object.isFrozen(O) var isObject = __webpack_require__(9); - __webpack_require__(47)('isFrozen', function($isFrozen){ + __webpack_require__(48)('isFrozen', function($isFrozen){ return function isFrozen(it){ return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true; }; }); /***/ }, -/* 51 */ +/* 52 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.13 Object.isSealed(O) var isObject = __webpack_require__(9); - __webpack_require__(47)('isSealed', function($isSealed){ + __webpack_require__(48)('isSealed', function($isSealed){ return function isSealed(it){ return isObject(it) ? $isSealed ? $isSealed(it) : false : true; }; }); /***/ }, -/* 52 */ +/* 53 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.11 Object.isExtensible(O) var isObject = __webpack_require__(9); - __webpack_require__(47)('isExtensible', function($isExtensible){ + __webpack_require__(48)('isExtensible', function($isExtensible){ return function isExtensible(it){ return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false; }; }); /***/ }, -/* 53 */ +/* 54 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) - var toIObject = __webpack_require__(27); + var toIObject = __webpack_require__(30); - __webpack_require__(47)('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor){ + __webpack_require__(48)('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor){ return function getOwnPropertyDescriptor(it, key){ return $getOwnPropertyDescriptor(toIObject(it), key); }; }); /***/ }, -/* 54 */ +/* 55 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.9 Object.getPrototypeOf(O) var toObject = __webpack_require__(22); - __webpack_require__(47)('getPrototypeOf', function($getPrototypeOf){ + __webpack_require__(48)('getPrototypeOf', function($getPrototypeOf){ return function getPrototypeOf(it){ return $getPrototypeOf(toObject(it)); }; }); /***/ }, -/* 55 */ +/* 56 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.14 Object.keys(O) var toObject = __webpack_require__(22); - __webpack_require__(47)('keys', function($keys){ + __webpack_require__(48)('keys', function($keys){ return function keys(it){ return $keys(toObject(it)); }; }); /***/ }, -/* 56 */ +/* 57 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.7 Object.getOwnPropertyNames(O) - __webpack_require__(47)('getOwnPropertyNames', function(){ - return __webpack_require__(35).get; + __webpack_require__(48)('getOwnPropertyNames', function(){ + return __webpack_require__(36).get; }); /***/ }, -/* 57 */ +/* 58 */ /***/ function(module, exports, __webpack_require__) { var setDesc = __webpack_require__(2).setDesc @@ -1477,13 +1502,13 @@ }); /***/ }, -/* 58 */ +/* 59 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $ = __webpack_require__(2) , isObject = __webpack_require__(9) - , HAS_INSTANCE = __webpack_require__(33)('hasInstance') + , HAS_INSTANCE = __webpack_require__(27)('hasInstance') , FunctionProto = Function.prototype; // 19.2.3.6 Function.prototype[@@hasInstance](V) if(!(HAS_INSTANCE in FunctionProto))$.setDesc(FunctionProto, HAS_INSTANCE, {value: function(O){ @@ -1495,7 +1520,7 @@ }}); /***/ }, -/* 59 */ +/* 60 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -1553,7 +1578,7 @@ } /***/ }, -/* 60 */ +/* 61 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.1 Number.EPSILON @@ -1562,7 +1587,7 @@ $def($def.S, 'Number', {EPSILON: Math.pow(2, -52)}); /***/ }, -/* 61 */ +/* 62 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.2 Number.isFinite(number) @@ -1576,16 +1601,16 @@ }); /***/ }, -/* 62 */ +/* 63 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.3 Number.isInteger(number) var $def = __webpack_require__(12); - $def($def.S, 'Number', {isInteger: __webpack_require__(63)}); + $def($def.S, 'Number', {isInteger: __webpack_require__(64)}); /***/ }, -/* 63 */ +/* 64 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.3 Number.isInteger(number) @@ -1596,7 +1621,7 @@ }; /***/ }, -/* 64 */ +/* 65 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.4 Number.isNaN(number) @@ -1609,12 +1634,12 @@ }); /***/ }, -/* 65 */ +/* 66 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.5 Number.isSafeInteger(number) var $def = __webpack_require__(12) - , isInteger = __webpack_require__(63) + , isInteger = __webpack_require__(64) , abs = Math.abs; $def($def.S, 'Number', { @@ -1624,7 +1649,7 @@ }); /***/ }, -/* 66 */ +/* 67 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.6 Number.MAX_SAFE_INTEGER @@ -1633,7 +1658,7 @@ $def($def.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff}); /***/ }, -/* 67 */ +/* 68 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.10 Number.MIN_SAFE_INTEGER @@ -1642,7 +1667,7 @@ $def($def.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff}); /***/ }, -/* 68 */ +/* 69 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.12 Number.parseFloat(string) @@ -1651,7 +1676,7 @@ $def($def.S, 'Number', {parseFloat: parseFloat}); /***/ }, -/* 69 */ +/* 70 */ /***/ function(module, exports, __webpack_require__) { // 20.1.2.13 Number.parseInt(string, radix) @@ -1660,12 +1685,12 @@ $def($def.S, 'Number', {parseInt: parseInt}); /***/ }, -/* 70 */ +/* 71 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.3 Math.acosh(x) var $def = __webpack_require__(12) - , log1p = __webpack_require__(71) + , log1p = __webpack_require__(72) , sqrt = Math.sqrt , $acosh = Math.acosh; @@ -1679,7 +1704,7 @@ }); /***/ }, -/* 71 */ +/* 72 */ /***/ function(module, exports) { // 20.2.2.20 Math.log1p(x) @@ -1688,7 +1713,7 @@ }; /***/ }, -/* 72 */ +/* 73 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.5 Math.asinh(x) @@ -1701,7 +1726,7 @@ $def($def.S, 'Math', {asinh: asinh}); /***/ }, -/* 73 */ +/* 74 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.7 Math.atanh(x) @@ -1714,12 +1739,12 @@ }); /***/ }, -/* 74 */ +/* 75 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.9 Math.cbrt(x) var $def = __webpack_require__(12) - , sign = __webpack_require__(75); + , sign = __webpack_require__(76); $def($def.S, 'Math', { cbrt: function cbrt(x){ @@ -1728,7 +1753,7 @@ }); /***/ }, -/* 75 */ +/* 76 */ /***/ function(module, exports) { // 20.2.2.28 Math.sign(x) @@ -1737,7 +1762,7 @@ }; /***/ }, -/* 76 */ +/* 77 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.11 Math.clz32(x) @@ -1750,7 +1775,7 @@ }); /***/ }, -/* 77 */ +/* 78 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.12 Math.cosh(x) @@ -1764,16 +1789,16 @@ }); /***/ }, -/* 78 */ +/* 79 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.14 Math.expm1(x) var $def = __webpack_require__(12); - $def($def.S, 'Math', {expm1: __webpack_require__(79)}); + $def($def.S, 'Math', {expm1: __webpack_require__(80)}); /***/ }, -/* 79 */ +/* 80 */ /***/ function(module, exports) { // 20.2.2.14 Math.expm1(x) @@ -1782,12 +1807,12 @@ }; /***/ }, -/* 80 */ +/* 81 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.16 Math.fround(x) var $def = __webpack_require__(12) - , sign = __webpack_require__(75) + , sign = __webpack_require__(76) , pow = Math.pow , EPSILON = pow(2, -52) , EPSILON32 = pow(2, -23) @@ -1813,7 +1838,7 @@ }); /***/ }, -/* 81 */ +/* 82 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) @@ -1843,7 +1868,7 @@ }); /***/ }, -/* 82 */ +/* 83 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.18 Math.imul(x, y) @@ -1864,7 +1889,7 @@ }); /***/ }, -/* 83 */ +/* 84 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.21 Math.log10(x) @@ -1877,16 +1902,16 @@ }); /***/ }, -/* 84 */ +/* 85 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.20 Math.log1p(x) var $def = __webpack_require__(12); - $def($def.S, 'Math', {log1p: __webpack_require__(71)}); + $def($def.S, 'Math', {log1p: __webpack_require__(72)}); /***/ }, -/* 85 */ +/* 86 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.22 Math.log2(x) @@ -1899,24 +1924,27 @@ }); /***/ }, -/* 86 */ +/* 87 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.28 Math.sign(x) var $def = __webpack_require__(12); - $def($def.S, 'Math', {sign: __webpack_require__(75)}); + $def($def.S, 'Math', {sign: __webpack_require__(76)}); /***/ }, -/* 87 */ +/* 88 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.30 Math.sinh(x) var $def = __webpack_require__(12) - , expm1 = __webpack_require__(79) + , expm1 = __webpack_require__(80) , exp = Math.exp; - $def($def.S, 'Math', { + // V8 near Chromium 38 has a problem with very small numbers + $def($def.S + $def.F * __webpack_require__(4)(function(){ + return !Math.sinh(-2e-17) != -2e-17; + }), 'Math', { sinh: function sinh(x){ return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 @@ -1925,12 +1953,12 @@ }); /***/ }, -/* 88 */ +/* 89 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.33 Math.tanh(x) var $def = __webpack_require__(12) - , expm1 = __webpack_require__(79) + , expm1 = __webpack_require__(80) , exp = Math.exp; $def($def.S, 'Math', { @@ -1942,7 +1970,7 @@ }); /***/ }, -/* 89 */ +/* 90 */ /***/ function(module, exports, __webpack_require__) { // 20.2.2.34 Math.trunc(x) @@ -1955,11 +1983,11 @@ }); /***/ }, -/* 90 */ +/* 91 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) - , toIndex = __webpack_require__(28) + , toIndex = __webpack_require__(31) , fromCharCode = String.fromCharCode , $fromCodePoint = String.fromCodePoint; @@ -1983,11 +2011,11 @@ }); /***/ }, -/* 91 */ +/* 92 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) - , toIObject = __webpack_require__(27) + , toIObject = __webpack_require__(30) , toLength = __webpack_require__(24); $def($def.S, 'String', { @@ -2006,19 +2034,19 @@ }); /***/ }, -/* 92 */ +/* 93 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; // 21.1.3.25 String.prototype.trim() - __webpack_require__(93)('trim', function($trim){ + __webpack_require__(94)('trim', function($trim){ return function trim(){ return $trim(this, 3); }; }); /***/ }, -/* 93 */ +/* 94 */ /***/ function(module, exports, __webpack_require__) { // 1 -> String#trimLeft @@ -2049,12 +2077,12 @@ }; /***/ }, -/* 94 */ +/* 95 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $at = __webpack_require__(95)(false); + , $at = __webpack_require__(96)(false); $def($def.P, 'String', { // 21.1.3.3 String.prototype.codePointAt(pos) codePointAt: function codePointAt(pos){ @@ -2063,7 +2091,7 @@ }); /***/ }, -/* 95 */ +/* 96 */ /***/ function(module, exports, __webpack_require__) { // true -> String#at @@ -2086,68 +2114,101 @@ }; /***/ }, -/* 96 */ +/* 97 */ /***/ function(module, exports, __webpack_require__) { + // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) 'use strict'; - var $def = __webpack_require__(12) - , toLength = __webpack_require__(24) - , context = __webpack_require__(97); + var $def = __webpack_require__(12) + , toLength = __webpack_require__(24) + , context = __webpack_require__(98) + , ENDS_WITH = 'endsWith' + , $endsWith = ''[ENDS_WITH]; - // should throw error on regex - $def($def.P + $def.F * !__webpack_require__(4)(function(){ 'q'.endsWith(/./); }), 'String', { - // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) + $def($def.P + $def.F * __webpack_require__(100)(ENDS_WITH), 'String', { endsWith: function endsWith(searchString /*, endPosition = @length */){ - var that = context(this, searchString, 'endsWith') + var that = context(this, searchString, ENDS_WITH) , endPosition = arguments[1] , len = toLength(that.length) , end = endPosition === undefined ? len : Math.min(toLength(endPosition), len) , search = String(searchString); - return that.slice(end - search.length, end) === search; + return $endsWith + ? $endsWith.call(that, search, end) + : that.slice(end - search.length, end) === search; } }); /***/ }, -/* 97 */ +/* 98 */ /***/ function(module, exports, __webpack_require__) { // helper for String#{startsWith, endsWith, includes} - var defined = __webpack_require__(23) - , cof = __webpack_require__(11); + var isRegExp = __webpack_require__(99) + , defined = __webpack_require__(23); module.exports = function(that, searchString, NAME){ - if(cof(searchString) == 'RegExp')throw TypeError('String#' + NAME + " doesn't accept regex!"); + if(isRegExp(searchString))throw TypeError('String#' + NAME + " doesn't accept regex!"); return String(defined(that)); }; /***/ }, -/* 98 */ +/* 99 */ +/***/ function(module, exports, __webpack_require__) { + + // 7.2.8 IsRegExp(argument) + var isObject = __webpack_require__(9) + , cof = __webpack_require__(11) + , MATCH = __webpack_require__(27)('match'); + module.exports = function(it){ + var isRegExp; + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); + }; + +/***/ }, +/* 100 */ +/***/ function(module, exports, __webpack_require__) { + + module.exports = function(KEY){ + var re = /./; + try { + '/./'[KEY](re); + } catch(e){ + try { + re[__webpack_require__(27)('match')] = false; + return !'/./'[KEY](re); + } catch(e){ /* empty */ } + } return true; + }; + +/***/ }, +/* 101 */ /***/ function(module, exports, __webpack_require__) { + // 21.1.3.7 String.prototype.includes(searchString, position = 0) 'use strict'; - var $def = __webpack_require__(12) - , context = __webpack_require__(97); + var $def = __webpack_require__(12) + , context = __webpack_require__(98) + , INCLUDES = 'includes'; - $def($def.P, 'String', { - // 21.1.3.7 String.prototype.includes(searchString, position = 0) + $def($def.P + $def.F * __webpack_require__(100)(INCLUDES), 'String', { includes: function includes(searchString /*, position = 0 */){ - return !!~context(this, searchString, 'includes').indexOf(searchString, arguments[1]); + return !!~context(this, searchString, INCLUDES).indexOf(searchString, arguments[1]); } }); /***/ }, -/* 99 */ +/* 102 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12); $def($def.P, 'String', { // 21.1.3.13 String.prototype.repeat(count) - repeat: __webpack_require__(100) + repeat: __webpack_require__(103) }); /***/ }, -/* 100 */ +/* 103 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -2164,34 +2225,37 @@ }; /***/ }, -/* 101 */ +/* 104 */ /***/ function(module, exports, __webpack_require__) { + // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) 'use strict'; - var $def = __webpack_require__(12) - , toLength = __webpack_require__(24) - , context = __webpack_require__(97); + var $def = __webpack_require__(12) + , toLength = __webpack_require__(24) + , context = __webpack_require__(98) + , STARTS_WITH = 'startsWith' + , $startsWith = ''[STARTS_WITH]; - // should throw error on regex - $def($def.P + $def.F * !__webpack_require__(4)(function(){ 'q'.startsWith(/./); }), 'String', { - // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) + $def($def.P + $def.F * __webpack_require__(100)(STARTS_WITH), 'String', { startsWith: function startsWith(searchString /*, position = 0 */){ - var that = context(this, searchString, 'startsWith') + var that = context(this, searchString, STARTS_WITH) , index = toLength(Math.min(arguments[1], that.length)) , search = String(searchString); - return that.slice(index, index + search.length) === search; + return $startsWith + ? $startsWith.call(that, search, index) + : that.slice(index, index + search.length) === search; } }); /***/ }, -/* 102 */ +/* 105 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var $at = __webpack_require__(95)(true); + var $at = __webpack_require__(96)(true); // 21.1.3.27 String.prototype[@@iterator]() - __webpack_require__(103)(String, 'String', function(iterated){ + __webpack_require__(106)(String, 'String', function(iterated){ this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() @@ -2206,24 +2270,24 @@ }); /***/ }, -/* 103 */ +/* 106 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var LIBRARY = __webpack_require__(37) + var LIBRARY = __webpack_require__(38) , $def = __webpack_require__(12) , $redef = __webpack_require__(15) , hide = __webpack_require__(14) , has = __webpack_require__(10) - , SYMBOL_ITERATOR = __webpack_require__(33)('iterator') - , Iterators = __webpack_require__(104) + , SYMBOL_ITERATOR = __webpack_require__(27)('iterator') + , Iterators = __webpack_require__(107) , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` , FF_ITERATOR = '@@iterator' , KEYS = 'keys' , VALUES = 'values'; var returnThis = function(){ return this; }; module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE){ - __webpack_require__(105)(Constructor, NAME, next); + __webpack_require__(108)(Constructor, NAME, next); var createMethod = function(kind){ switch(kind){ case KEYS: return function keys(){ return new Constructor(this, kind); }; @@ -2239,7 +2303,7 @@ if(_native){ var IteratorPrototype = __webpack_require__(2).getProto(_default.call(new Base)); // Set @@toStringTag to native iterators - __webpack_require__(32)(IteratorPrototype, TAG, true); + __webpack_require__(34)(IteratorPrototype, TAG, true); // FF fix if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, SYMBOL_ITERATOR, returnThis); } @@ -2261,13 +2325,13 @@ }; /***/ }, -/* 104 */ +/* 107 */ /***/ function(module, exports) { module.exports = {}; /***/ }, -/* 105 */ +/* 108 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -2275,26 +2339,26 @@ , IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() - __webpack_require__(14)(IteratorPrototype, __webpack_require__(33)('iterator'), function(){ return this; }); + __webpack_require__(14)(IteratorPrototype, __webpack_require__(27)('iterator'), function(){ return this; }); module.exports = function(Constructor, NAME, next){ Constructor.prototype = $.create(IteratorPrototype, {next: __webpack_require__(5)(1,next)}); - __webpack_require__(32)(Constructor, NAME + ' Iterator'); + __webpack_require__(34)(Constructor, NAME + ' Iterator'); }; /***/ }, -/* 106 */ +/* 109 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var ctx = __webpack_require__(19) , $def = __webpack_require__(12) , toObject = __webpack_require__(22) - , call = __webpack_require__(107) - , isArrayIter = __webpack_require__(108) + , call = __webpack_require__(110) + , isArrayIter = __webpack_require__(111) , toLength = __webpack_require__(24) - , getIterFn = __webpack_require__(109); - $def($def.S + $def.F * !__webpack_require__(110)(function(iter){ Array.from(iter); }), 'Array', { + , getIterFn = __webpack_require__(112); + $def($def.S + $def.F * !__webpack_require__(113)(function(iter){ Array.from(iter); }), 'Array', { // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){ var O = toObject(arrayLike) @@ -2311,7 +2375,8 @@ result[index] = mapping ? call(iterator, mapfn, [step.value, index], true) : step.value; } } else { - for(result = new C(length = toLength(O.length)); length > index; index++){ + length = toLength(O.length); + for(result = new C(length); length > index; index++){ result[index] = mapping ? mapfn(O[index], index) : O[index]; } } @@ -2320,12 +2385,13 @@ } }); + /***/ }, -/* 107 */ +/* 110 */ /***/ function(module, exports, __webpack_require__) { // call something on iterator step with safe closing on error - var anObject = __webpack_require__(26); + var anObject = __webpack_require__(29); module.exports = function(iterator, fn, value, entries){ try { return entries ? fn(anObject(value)[0], value[1]) : fn(value); @@ -2338,32 +2404,32 @@ }; /***/ }, -/* 108 */ +/* 111 */ /***/ function(module, exports, __webpack_require__) { // check on default Array iterator - var Iterators = __webpack_require__(104) - , ITERATOR = __webpack_require__(33)('iterator'); + var Iterators = __webpack_require__(107) + , ITERATOR = __webpack_require__(27)('iterator'); module.exports = function(it){ return (Iterators.Array || Array.prototype[ITERATOR]) === it; }; /***/ }, -/* 109 */ +/* 112 */ /***/ function(module, exports, __webpack_require__) { - var classof = __webpack_require__(45) - , ITERATOR = __webpack_require__(33)('iterator') - , Iterators = __webpack_require__(104); + var classof = __webpack_require__(46) + , ITERATOR = __webpack_require__(27)('iterator') + , Iterators = __webpack_require__(107); module.exports = __webpack_require__(13).getIteratorMethod = function(it){ if(it != undefined)return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; }; /***/ }, -/* 110 */ +/* 113 */ /***/ function(module, exports, __webpack_require__) { - var SYMBOL_ITERATOR = __webpack_require__(33)('iterator') + var SYMBOL_ITERATOR = __webpack_require__(27)('iterator') , SAFE_CLOSING = false; try { var riter = [7][SYMBOL_ITERATOR](); @@ -2384,7 +2450,7 @@ }; /***/ }, -/* 111 */ +/* 114 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -2407,20 +2473,20 @@ }); /***/ }, -/* 112 */ +/* 115 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var setUnscope = __webpack_require__(113) - , step = __webpack_require__(114) - , Iterators = __webpack_require__(104) - , toIObject = __webpack_require__(27); + var setUnscope = __webpack_require__(116) + , step = __webpack_require__(117) + , Iterators = __webpack_require__(107) + , toIObject = __webpack_require__(30); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() - __webpack_require__(103)(Array, 'Array', function(iterated, kind){ + __webpack_require__(106)(Array, 'Array', function(iterated, kind){ this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind @@ -2446,18 +2512,18 @@ setUnscope('entries'); /***/ }, -/* 113 */ +/* 116 */ /***/ function(module, exports, __webpack_require__) { // 22.1.3.31 Array.prototype[@@unscopables] - var UNSCOPABLES = __webpack_require__(33)('unscopables'); - if(!(UNSCOPABLES in []))__webpack_require__(14)(Array.prototype, UNSCOPABLES, {}); + var UNSCOPABLES = __webpack_require__(27)('unscopables'); + if([][UNSCOPABLES] == undefined)__webpack_require__(14)(Array.prototype, UNSCOPABLES, {}); module.exports = function(key){ [][UNSCOPABLES][key] = true; }; /***/ }, -/* 114 */ +/* 117 */ /***/ function(module, exports) { module.exports = function(done, value){ @@ -2465,18 +2531,18 @@ }; /***/ }, -/* 115 */ +/* 118 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(116)(Array); + __webpack_require__(119)(Array); /***/ }, -/* 116 */ +/* 119 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $ = __webpack_require__(2) - , SPECIES = __webpack_require__(33)('species'); + , SPECIES = __webpack_require__(27)('species'); module.exports = function(C){ if(__webpack_require__(3) && !(SPECIES in C))$.setDesc(C, SPECIES, { configurable: true, @@ -2485,65 +2551,80 @@ }; /***/ }, -/* 117 */ +/* 120 */ /***/ function(module, exports, __webpack_require__) { + // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) 'use strict'; - var $def = __webpack_require__(12) - , toObject = __webpack_require__(22) - , toIndex = __webpack_require__(28) + var $def = __webpack_require__(12); + + $def($def.P, 'Array', {copyWithin: __webpack_require__(121)}); + + __webpack_require__(116)('copyWithin'); + +/***/ }, +/* 121 */ +/***/ function(module, exports, __webpack_require__) { + + // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) + 'use strict'; + var toObject = __webpack_require__(22) + , toIndex = __webpack_require__(31) , toLength = __webpack_require__(24); - $def($def.P, 'Array', { - // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) - copyWithin: function copyWithin(target/* = 0 */, start /* = 0, end = @length */){ - var O = toObject(this) - , len = toLength(O.length) - , to = toIndex(target, len) - , from = toIndex(start, len) - , end = arguments[2] - , fin = end === undefined ? len : toIndex(end, len) - , count = Math.min(fin - from, len - to) - , inc = 1; - if(from < to && to < from + count){ - inc = -1; - from = from + count - 1; - to = to + count - 1; - } - while(count-- > 0){ - if(from in O)O[to] = O[from]; - else delete O[to]; - to += inc; - from += inc; - } return O; + + module.exports = [].copyWithin || function copyWithin(target/*= 0*/, start/*= 0, end = @length*/){ + var O = toObject(this) + , len = toLength(O.length) + , to = toIndex(target, len) + , from = toIndex(start, len) + , end = arguments[2] + , count = Math.min((end === undefined ? len : toIndex(end, len)) - from, len - to) + , inc = 1; + if(from < to && to < from + count){ + inc = -1; + from += count - 1; + to += count - 1; } - }); - __webpack_require__(113)('copyWithin'); + while(count-- > 0){ + if(from in O)O[to] = O[from]; + else delete O[to]; + to += inc; + from += inc; + } return O; + }; /***/ }, -/* 118 */ +/* 122 */ /***/ function(module, exports, __webpack_require__) { + // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) + var $def = __webpack_require__(12); + + $def($def.P, 'Array', {fill: __webpack_require__(123)}); + + __webpack_require__(116)('fill'); + +/***/ }, +/* 123 */ +/***/ function(module, exports, __webpack_require__) { + + // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) 'use strict'; - var $def = __webpack_require__(12) - , toObject = __webpack_require__(22) - , toIndex = __webpack_require__(28) + var toObject = __webpack_require__(22) + , toIndex = __webpack_require__(31) , toLength = __webpack_require__(24); - $def($def.P, 'Array', { - // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) - fill: function fill(value /*, start = 0, end = @length */){ - var O = toObject(this, true) - , length = toLength(O.length) - , index = toIndex(arguments[1], length) - , end = arguments[2] - , endPos = end === undefined ? length : toIndex(end, length); - while(endPos > index)O[index++] = value; - return O; - } - }); - __webpack_require__(113)('fill'); + module.exports = [].fill || function fill(value /*, start = 0, end = @length */){ + var O = toObject(this, true) + , length = toLength(O.length) + , index = toIndex(arguments[1], length) + , end = arguments[2] + , endPos = end === undefined ? length : toIndex(end, length); + while(endPos > index)O[index++] = value; + return O; + }; /***/ }, -/* 119 */ +/* 124 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -2559,10 +2640,10 @@ return $find(this, callbackfn, arguments[1]); } }); - __webpack_require__(113)(KEY); + __webpack_require__(116)(KEY); /***/ }, -/* 120 */ +/* 125 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -2578,62 +2659,58 @@ return $find(this, callbackfn, arguments[1]); } }); - __webpack_require__(113)(KEY); + __webpack_require__(116)(KEY); /***/ }, -/* 121 */ +/* 126 */ /***/ function(module, exports, __webpack_require__) { - var $ = __webpack_require__(2) - , global = __webpack_require__(7) - , cof = __webpack_require__(11) - , $flags = __webpack_require__(122) - , $RegExp = global.RegExp - , Base = $RegExp - , proto = $RegExp.prototype - , re = /a/g - // "new" creates a new object - , CORRECT_NEW = new $RegExp(re) !== re - // RegExp allows a regex with flags as the pattern - , ALLOWS_RE_WITH_FLAGS = function(){ - try { - return $RegExp(re, 'i') == '/a/i'; - } catch(e){ /* empty */ } - }(); - - if(__webpack_require__(3)){ - if(!CORRECT_NEW || !ALLOWS_RE_WITH_FLAGS){ - $RegExp = function RegExp(pattern, flags){ - var patternIsRegExp = cof(pattern) == 'RegExp' - , flagsIsUndefined = flags === undefined; - if(!(this instanceof $RegExp) && patternIsRegExp && flagsIsUndefined)return pattern; - return CORRECT_NEW - ? new Base(patternIsRegExp && !flagsIsUndefined ? pattern.source : pattern, flags) - : new Base(patternIsRegExp ? pattern.source : pattern - , patternIsRegExp && flagsIsUndefined ? $flags.call(pattern) : flags); - }; - $.each.call($.getNames(Base), function(key){ - key in $RegExp || $.setDesc($RegExp, key, { - configurable: true, - get: function(){ return Base[key]; }, - set: function(it){ Base[key] = it; } - }); + var $ = __webpack_require__(2) + , global = __webpack_require__(7) + , isRegExp = __webpack_require__(99) + , $flags = __webpack_require__(127) + , $RegExp = global.RegExp + , Base = $RegExp + , proto = $RegExp.prototype + , re1 = /a/g + , re2 = /a/g + // "new" creates a new object, old webkit buggy here + , CORRECT_NEW = new $RegExp(re1) !== re1; + + if(__webpack_require__(3) && (!CORRECT_NEW || __webpack_require__(4)(function(){ + re2[__webpack_require__(27)('match')] = false; + // RegExp constructor can alter flags and IsRegExp works correct with @@match + return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; + }))){ + $RegExp = function RegExp(p, f){ + var piRE = isRegExp(p) + , fiU = f === undefined; + return !(this instanceof $RegExp) && piRE && p.constructor === $RegExp && fiU ? p + : CORRECT_NEW + ? new Base(piRE && !fiU ? p.source : p, f) + : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f); + }; + $.each.call($.getNames(Base), function(key){ + key in $RegExp || $.setDesc($RegExp, key, { + configurable: true, + get: function(){ return Base[key]; }, + set: function(it){ Base[key] = it; } }); - proto.constructor = $RegExp; - $RegExp.prototype = proto; - __webpack_require__(15)(global, 'RegExp', $RegExp); - } + }); + proto.constructor = $RegExp; + $RegExp.prototype = proto; + __webpack_require__(15)(global, 'RegExp', $RegExp); } - __webpack_require__(116)($RegExp); + __webpack_require__(119)($RegExp); /***/ }, -/* 122 */ +/* 127 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; // 21.2.5.3 get RegExp.prototype.flags - var anObject = __webpack_require__(26); + var anObject = __webpack_require__(29); module.exports = function(){ var that = anObject(this) , result = ''; @@ -2646,22 +2723,22 @@ }; /***/ }, -/* 123 */ +/* 128 */ /***/ function(module, exports, __webpack_require__) { // 21.2.5.3 get RegExp.prototype.flags() var $ = __webpack_require__(2); if(__webpack_require__(3) && /./g.flags != 'g')$.setDesc(RegExp.prototype, 'flags', { configurable: true, - get: __webpack_require__(122) + get: __webpack_require__(127) }); /***/ }, -/* 124 */ +/* 129 */ /***/ function(module, exports, __webpack_require__) { // @@match logic - __webpack_require__(125)('match', 1, function(defined, MATCH){ + __webpack_require__(130)('match', 1, function(defined, MATCH){ // 21.1.3.11 String.prototype.match(regexp) return function match(regexp){ 'use strict'; @@ -2672,13 +2749,13 @@ }); /***/ }, -/* 125 */ +/* 130 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; module.exports = function(KEY, length, exec){ var defined = __webpack_require__(23) - , SYMBOL = __webpack_require__(33)(KEY) + , SYMBOL = __webpack_require__(27)(KEY) , original = ''[KEY]; if(__webpack_require__(4)(function(){ var O = {}; @@ -2698,11 +2775,11 @@ }; /***/ }, -/* 126 */ +/* 131 */ /***/ function(module, exports, __webpack_require__) { // @@replace logic - __webpack_require__(125)('replace', 2, function(defined, REPLACE, $replace){ + __webpack_require__(130)('replace', 2, function(defined, REPLACE, $replace){ // 21.1.3.14 String.prototype.replace(searchValue, replaceValue) return function replace(searchValue, replaceValue){ 'use strict'; @@ -2715,11 +2792,11 @@ }); /***/ }, -/* 127 */ +/* 132 */ /***/ function(module, exports, __webpack_require__) { // @@search logic - __webpack_require__(125)('search', 1, function(defined, SEARCH){ + __webpack_require__(130)('search', 1, function(defined, SEARCH){ // 21.1.3.15 String.prototype.search(regexp) return function search(regexp){ 'use strict'; @@ -2730,11 +2807,11 @@ }); /***/ }, -/* 128 */ +/* 133 */ /***/ function(module, exports, __webpack_require__) { // @@split logic - __webpack_require__(125)('split', 2, function(defined, SPLIT, $split){ + __webpack_require__(130)('split', 2, function(defined, SPLIT, $split){ // 21.1.3.17 String.prototype.split(separator, limit) return function split(separator, limit){ 'use strict'; @@ -2747,27 +2824,27 @@ }); /***/ }, -/* 129 */ +/* 134 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $ = __webpack_require__(2) - , LIBRARY = __webpack_require__(37) + , LIBRARY = __webpack_require__(38) , global = __webpack_require__(7) , ctx = __webpack_require__(19) - , classof = __webpack_require__(45) + , classof = __webpack_require__(46) , $def = __webpack_require__(12) , isObject = __webpack_require__(9) - , anObject = __webpack_require__(26) + , anObject = __webpack_require__(29) , aFunction = __webpack_require__(20) - , strictNew = __webpack_require__(130) - , forOf = __webpack_require__(131) - , setProto = __webpack_require__(43).set - , same = __webpack_require__(41) - , species = __webpack_require__(116) - , SPECIES = __webpack_require__(33)('species') + , strictNew = __webpack_require__(135) + , forOf = __webpack_require__(136) + , setProto = __webpack_require__(44).set + , same = __webpack_require__(42) + , species = __webpack_require__(119) + , SPECIES = __webpack_require__(27)('species') , RECORD = __webpack_require__(16)('record') - , asap = __webpack_require__(132) + , asap = __webpack_require__(137) , PROMISE = 'Promise' , process = global.process , isNode = classof(process) == 'process' @@ -2853,10 +2930,14 @@ chain.length = 0; record.n = false; if(isReject)setTimeout(function(){ - if(isUnhandled(record.p)){ + var promise = record.p + , handler, console; + if(isUnhandled(promise)){ if(isNode){ - process.emit('unhandledRejection', value, record.p); - } else if(global.console && console.error){ + process.emit('unhandledRejection', value, promise); + } else if(handler = global.onunhandledrejection){ + handler({promise: promise, reason: value}); + } else if((console = global.console) && console.error){ console.error('Unhandled promise rejection', value); } } record.a = undefined; @@ -2932,7 +3013,7 @@ $reject.call(record, err); } }; - __webpack_require__(134)(P.prototype, { + __webpack_require__(139)(P.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected){ var S = anObject(anObject(this).constructor)[SPECIES]; @@ -2941,9 +3022,11 @@ fail: typeof onRejected == 'function' ? onRejected : false }; var promise = react.P = new (S != undefined ? S : P)(function(res, rej){ - react.res = aFunction(res); - react.rej = aFunction(rej); + react.res = res; + react.rej = rej; }); + aFunction(react.res); + aFunction(react.rej); var record = this[RECORD]; record.c.push(react); if(record.a)record.a.push(react); @@ -2959,7 +3042,7 @@ // export $def($def.G + $def.W + $def.F * !useNative, {Promise: P}); - __webpack_require__(32)(P, PROMISE); + __webpack_require__(34)(P, PROMISE); species(P); species(Wrapper = __webpack_require__(13)[PROMISE]); @@ -2977,7 +3060,7 @@ ? x : new this(function(res){ res(x); }); } }); - $def($def.S + $def.F * !(useNative && __webpack_require__(110)(function(iter){ + $def($def.S + $def.F * !(useNative && __webpack_require__(113)(function(iter){ P.all(iter)['catch'](function(){}); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) @@ -3009,7 +3092,7 @@ }); /***/ }, -/* 130 */ +/* 135 */ /***/ function(module, exports) { module.exports = function(it, Constructor, name){ @@ -3018,15 +3101,15 @@ }; /***/ }, -/* 131 */ +/* 136 */ /***/ function(module, exports, __webpack_require__) { var ctx = __webpack_require__(19) - , call = __webpack_require__(107) - , isArrayIter = __webpack_require__(108) - , anObject = __webpack_require__(26) + , call = __webpack_require__(110) + , isArrayIter = __webpack_require__(111) + , anObject = __webpack_require__(29) , toLength = __webpack_require__(24) - , getIterFn = __webpack_require__(109); + , getIterFn = __webpack_require__(112); module.exports = function(iterable, entries, fn, that){ var iterFn = getIterFn(iterable) , f = ctx(fn, that, entries ? 2 : 1) @@ -3042,11 +3125,11 @@ }; /***/ }, -/* 132 */ +/* 137 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(7) - , macrotask = __webpack_require__(133).set + , macrotask = __webpack_require__(138).set , Observer = global.MutationObserver || global.WebKitMutationObserver , process = global.process , isNode = __webpack_require__(11)(process) == 'process' @@ -3104,7 +3187,7 @@ }; /***/ }, -/* 133 */ +/* 138 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3185,7 +3268,7 @@ }; /***/ }, -/* 134 */ +/* 139 */ /***/ function(module, exports, __webpack_require__) { var $redef = __webpack_require__(15); @@ -3195,14 +3278,14 @@ }; /***/ }, -/* 135 */ +/* 140 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var strong = __webpack_require__(136); + var strong = __webpack_require__(141); // 23.1 Map Objects - __webpack_require__(137)('Map', function(get){ + __webpack_require__(142)('Map', function(get){ return function Map(){ return get(this, arguments[0]); }; }, { // 23.1.3.6 Map.prototype.get(key) @@ -3217,18 +3300,18 @@ }, strong, true); /***/ }, -/* 136 */ +/* 141 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $ = __webpack_require__(2) , hide = __webpack_require__(14) , ctx = __webpack_require__(19) - , species = __webpack_require__(116) - , strictNew = __webpack_require__(130) + , species = __webpack_require__(119) + , strictNew = __webpack_require__(135) , defined = __webpack_require__(23) - , forOf = __webpack_require__(131) - , step = __webpack_require__(114) + , forOf = __webpack_require__(136) + , step = __webpack_require__(117) , ID = __webpack_require__(16)('id') , $has = __webpack_require__(10) , isObject = __webpack_require__(9) @@ -3271,7 +3354,7 @@ that[SIZE] = 0; // size if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); }); - __webpack_require__(134)(C.prototype, { + __webpack_require__(139)(C.prototype, { // 23.1.3.1 Map.prototype.clear() // 23.2.3.2 Set.prototype.clear() clear: function clear(){ @@ -3351,7 +3434,7 @@ setStrong: function(C, NAME, IS_MAP){ // add .keys, .values, .entries, [@@iterator] // 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 - __webpack_require__(103)(C, NAME, function(iterated, kind){ + __webpack_require__(106)(C, NAME, function(iterated, kind){ this._t = iterated; // target this._k = kind; // kind this._l = undefined; // previous @@ -3380,14 +3463,14 @@ }; /***/ }, -/* 137 */ +/* 142 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var global = __webpack_require__(7) , $def = __webpack_require__(12) - , forOf = __webpack_require__(131) - , strictNew = __webpack_require__(130); + , forOf = __webpack_require__(136) + , strictNew = __webpack_require__(135); module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){ var Base = global[NAME] @@ -3410,13 +3493,13 @@ }))){ // create collection constructor C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); - __webpack_require__(134)(C.prototype, methods); + __webpack_require__(139)(C.prototype, methods); } else { var inst = new C , chain = inst[ADDER](IS_WEAK ? {} : -0, 1) , buggyZero; // wrap for init collections from iterable - if(!__webpack_require__(110)(function(iter){ new C(iter); })){ // eslint-disable-line no-new + if(!__webpack_require__(113)(function(iter){ new C(iter); })){ // eslint-disable-line no-new C = wrapper(function(target, iterable){ strictNew(target, C, NAME); var that = new Base; @@ -3441,7 +3524,7 @@ if(IS_WEAK && proto.clear)delete proto.clear; } - __webpack_require__(32)(C, NAME); + __webpack_require__(34)(C, NAME); O[NAME] = C; $def($def.G + $def.W + $def.F * (C != Base), O); @@ -3452,14 +3535,14 @@ }; /***/ }, -/* 138 */ +/* 143 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var strong = __webpack_require__(136); + var strong = __webpack_require__(141); // 23.2 Set Objects - __webpack_require__(137)('Set', function(get){ + __webpack_require__(142)('Set', function(get){ return function Set(){ return get(this, arguments[0]); }; }, { // 23.2.3.1 Set.prototype.add(value) @@ -3469,12 +3552,12 @@ }, strong); /***/ }, -/* 139 */ +/* 144 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $ = __webpack_require__(2) - , weak = __webpack_require__(140) + , weak = __webpack_require__(145) , isObject = __webpack_require__(9) , has = __webpack_require__(10) , frozenStore = weak.frozenStore @@ -3483,7 +3566,7 @@ , tmp = {}; // 23.3 WeakMap Objects - var $WeakMap = __webpack_require__(137)('WeakMap', function(get){ + var $WeakMap = __webpack_require__(142)('WeakMap', function(get){ return function WeakMap(){ return get(this, arguments[0]); }; }, { // 23.3.3.3 WeakMap.prototype.get(key) @@ -3516,14 +3599,14 @@ } /***/ }, -/* 140 */ +/* 145 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var hide = __webpack_require__(14) - , anObject = __webpack_require__(26) - , strictNew = __webpack_require__(130) - , forOf = __webpack_require__(131) + , anObject = __webpack_require__(29) + , strictNew = __webpack_require__(135) + , forOf = __webpack_require__(136) , method = __webpack_require__(18) , WEAK = __webpack_require__(16)('weak') , isObject = __webpack_require__(9) @@ -3575,7 +3658,7 @@ that._l = undefined; // leak store for frozen objects if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); }); - __webpack_require__(134)(C.prototype, { + __webpack_require__(139)(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) 'delete': function(key){ @@ -3606,14 +3689,14 @@ }; /***/ }, -/* 141 */ +/* 146 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var weak = __webpack_require__(140); + var weak = __webpack_require__(145); // 23.4 WeakSet Objects - __webpack_require__(137)('WeakSet', function(get){ + __webpack_require__(142)('WeakSet', function(get){ return function WeakSet(){ return get(this, arguments[0]); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) @@ -3623,7 +3706,7 @@ }, weak, false, true); /***/ }, -/* 142 */ +/* 147 */ /***/ function(module, exports, __webpack_require__) { // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) @@ -3637,14 +3720,14 @@ }); /***/ }, -/* 143 */ +/* 148 */ /***/ function(module, exports, __webpack_require__) { // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) var $ = __webpack_require__(2) , $def = __webpack_require__(12) , aFunction = __webpack_require__(20) - , anObject = __webpack_require__(26) + , anObject = __webpack_require__(29) , isObject = __webpack_require__(9) , bind = Function.bind || __webpack_require__(13).Function.prototype.bind; @@ -3680,13 +3763,13 @@ }); /***/ }, -/* 144 */ +/* 149 */ /***/ function(module, exports, __webpack_require__) { // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) var $ = __webpack_require__(2) , $def = __webpack_require__(12) - , anObject = __webpack_require__(26); + , anObject = __webpack_require__(29); // MS Edge has broken Reflect.defineProperty - throwing instead of returning false $def($def.S + $def.F * __webpack_require__(4)(function(){ @@ -3704,13 +3787,13 @@ }); /***/ }, -/* 145 */ +/* 150 */ /***/ function(module, exports, __webpack_require__) { // 26.1.4 Reflect.deleteProperty(target, propertyKey) var $def = __webpack_require__(12) , getDesc = __webpack_require__(2).getDesc - , anObject = __webpack_require__(26); + , anObject = __webpack_require__(29); $def($def.S, 'Reflect', { deleteProperty: function deleteProperty(target, propertyKey){ @@ -3720,13 +3803,13 @@ }); /***/ }, -/* 146 */ +/* 151 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; // 26.1.5 Reflect.enumerate(target) var $def = __webpack_require__(12) - , anObject = __webpack_require__(26); + , anObject = __webpack_require__(29); var Enumerate = function(iterated){ this._t = anObject(iterated); // target this._i = 0; // next index @@ -3734,7 +3817,7 @@ , key; for(key in iterated)keys.push(key); }; - __webpack_require__(105)(Enumerate, 'Object', function(){ + __webpack_require__(108)(Enumerate, 'Object', function(){ var that = this , keys = that._k , key; @@ -3751,7 +3834,7 @@ }); /***/ }, -/* 147 */ +/* 152 */ /***/ function(module, exports, __webpack_require__) { // 26.1.6 Reflect.get(target, propertyKey [, receiver]) @@ -3759,7 +3842,7 @@ , has = __webpack_require__(10) , $def = __webpack_require__(12) , isObject = __webpack_require__(9) - , anObject = __webpack_require__(26); + , anObject = __webpack_require__(29); function get(target, propertyKey/*, receiver*/){ var receiver = arguments.length < 3 ? target : arguments[2] @@ -3776,13 +3859,13 @@ $def($def.S, 'Reflect', {get: get}); /***/ }, -/* 148 */ +/* 153 */ /***/ function(module, exports, __webpack_require__) { // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) var $ = __webpack_require__(2) , $def = __webpack_require__(12) - , anObject = __webpack_require__(26); + , anObject = __webpack_require__(29); $def($def.S, 'Reflect', { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){ @@ -3791,13 +3874,13 @@ }); /***/ }, -/* 149 */ +/* 154 */ /***/ function(module, exports, __webpack_require__) { // 26.1.8 Reflect.getPrototypeOf(target) var $def = __webpack_require__(12) , getProto = __webpack_require__(2).getProto - , anObject = __webpack_require__(26); + , anObject = __webpack_require__(29); $def($def.S, 'Reflect', { getPrototypeOf: function getPrototypeOf(target){ @@ -3806,7 +3889,7 @@ }); /***/ }, -/* 150 */ +/* 155 */ /***/ function(module, exports, __webpack_require__) { // 26.1.9 Reflect.has(target, propertyKey) @@ -3819,12 +3902,12 @@ }); /***/ }, -/* 151 */ +/* 156 */ /***/ function(module, exports, __webpack_require__) { // 26.1.10 Reflect.isExtensible(target) var $def = __webpack_require__(12) - , anObject = __webpack_require__(26) + , anObject = __webpack_require__(29) , $isExtensible = Object.isExtensible; $def($def.S, 'Reflect', { @@ -3835,21 +3918,21 @@ }); /***/ }, -/* 152 */ +/* 157 */ /***/ function(module, exports, __webpack_require__) { // 26.1.11 Reflect.ownKeys(target) var $def = __webpack_require__(12); - $def($def.S, 'Reflect', {ownKeys: __webpack_require__(153)}); + $def($def.S, 'Reflect', {ownKeys: __webpack_require__(158)}); /***/ }, -/* 153 */ +/* 158 */ /***/ function(module, exports, __webpack_require__) { // all object keys, includes non-enumerable and symbols var $ = __webpack_require__(2) - , anObject = __webpack_require__(26) + , anObject = __webpack_require__(29) , Reflect = __webpack_require__(7).Reflect; module.exports = Reflect && Reflect.ownKeys || function ownKeys(it){ var keys = $.getNames(anObject(it)) @@ -3858,12 +3941,12 @@ }; /***/ }, -/* 154 */ +/* 159 */ /***/ function(module, exports, __webpack_require__) { // 26.1.12 Reflect.preventExtensions(target) var $def = __webpack_require__(12) - , anObject = __webpack_require__(26) + , anObject = __webpack_require__(29) , $preventExtensions = Object.preventExtensions; $def($def.S, 'Reflect', { @@ -3879,7 +3962,7 @@ }); /***/ }, -/* 155 */ +/* 160 */ /***/ function(module, exports, __webpack_require__) { // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) @@ -3887,7 +3970,7 @@ , has = __webpack_require__(10) , $def = __webpack_require__(12) , createDesc = __webpack_require__(5) - , anObject = __webpack_require__(26) + , anObject = __webpack_require__(29) , isObject = __webpack_require__(9); function set(target, propertyKey, V/*, receiver*/){ @@ -3913,12 +3996,12 @@ $def($def.S, 'Reflect', {set: set}); /***/ }, -/* 156 */ +/* 161 */ /***/ function(module, exports, __webpack_require__) { // 26.1.14 Reflect.setPrototypeOf(target, proto) var $def = __webpack_require__(12) - , setProto = __webpack_require__(43); + , setProto = __webpack_require__(44); if(setProto)$def($def.S, 'Reflect', { setPrototypeOf: function setPrototypeOf(target, proto){ @@ -3933,28 +4016,28 @@ }); /***/ }, -/* 157 */ +/* 162 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $includes = __webpack_require__(29)(true); + , $includes = __webpack_require__(32)(true); $def($def.P, 'Array', { // https://github.com/domenic/Array.prototype.includes includes: function includes(el /*, fromIndex = 0 */){ return $includes(this, el, arguments[1]); } }); - __webpack_require__(113)('includes'); + __webpack_require__(116)('includes'); /***/ }, -/* 158 */ +/* 163 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/mathiasbynens/String.prototype.at 'use strict'; var $def = __webpack_require__(12) - , $at = __webpack_require__(95)(true); + , $at = __webpack_require__(96)(true); $def($def.P, 'String', { at: function at(pos){ return $at(this, pos); @@ -3962,12 +4045,12 @@ }); /***/ }, -/* 159 */ +/* 164 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $pad = __webpack_require__(160); + , $pad = __webpack_require__(165); $def($def.P, 'String', { padLeft: function padLeft(maxLength /*, fillString = ' ' */){ return $pad(this, maxLength, arguments[1], true); @@ -3975,12 +4058,12 @@ }); /***/ }, -/* 160 */ +/* 165 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/ljharb/proposal-string-pad-left-right var toLength = __webpack_require__(24) - , repeat = __webpack_require__(100) + , repeat = __webpack_require__(103) , defined = __webpack_require__(23); module.exports = function(that, maxLength, fillString, left){ @@ -3992,19 +4075,17 @@ if(fillStr == '')fillStr = ' '; var fillLen = intMaxLength - stringLength , stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); - if(stringFiller.length > fillLen)stringFiller = left - ? stringFiller.slice(stringFiller.length - fillLen) - : stringFiller.slice(0, fillLen); + if(stringFiller.length > fillLen)stringFiller = stringFiller.slice(0, fillLen); return left ? stringFiller + S : S + stringFiller; }; /***/ }, -/* 161 */ +/* 166 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $pad = __webpack_require__(160); + , $pad = __webpack_require__(165); $def($def.P, 'String', { padRight: function padRight(maxLength /*, fillString = ' ' */){ return $pad(this, maxLength, arguments[1], false); @@ -4012,41 +4093,41 @@ }); /***/ }, -/* 162 */ +/* 167 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim - __webpack_require__(93)('trimLeft', function($trim){ + __webpack_require__(94)('trimLeft', function($trim){ return function trimLeft(){ return $trim(this, 1); }; }); /***/ }, -/* 163 */ +/* 168 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim - __webpack_require__(93)('trimRight', function($trim){ + __webpack_require__(94)('trimRight', function($trim){ return function trimRight(){ return $trim(this, 2); }; }); /***/ }, -/* 164 */ +/* 169 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/benjamingr/RexExp.escape var $def = __webpack_require__(12) - , $re = __webpack_require__(165)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); + , $re = __webpack_require__(170)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); $def($def.S, 'RegExp', {escape: function escape(it){ return $re(it); }}); /***/ }, -/* 165 */ +/* 170 */ /***/ function(module, exports) { module.exports = function(regExp, replace){ @@ -4059,14 +4140,14 @@ }; /***/ }, -/* 166 */ +/* 171 */ /***/ function(module, exports, __webpack_require__) { // https://gist.github.com/WebReflection/9353781 var $ = __webpack_require__(2) , $def = __webpack_require__(12) - , ownKeys = __webpack_require__(153) - , toIObject = __webpack_require__(27) + , ownKeys = __webpack_require__(158) + , toIObject = __webpack_require__(30) , createDesc = __webpack_require__(5); $def($def.S, 'Object', { @@ -4087,12 +4168,12 @@ }); /***/ }, -/* 167 */ +/* 172 */ /***/ function(module, exports, __webpack_require__) { // http://goo.gl/XkBrjD var $def = __webpack_require__(12) - , $values = __webpack_require__(168)(false); + , $values = __webpack_require__(173)(false); $def($def.S, 'Object', { values: function values(it){ @@ -4101,32 +4182,32 @@ }); /***/ }, -/* 168 */ +/* 173 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) - , toIObject = __webpack_require__(27); + , has = __webpack_require__(10) + , toIObject = __webpack_require__(30); module.exports = function(isEntries){ return function(it){ var O = toIObject(it) , keys = $.getKeys(O) , length = keys.length , i = 0 - , result = Array(length) + , result = [] , key; - if(isEntries)while(length > i)result[i] = [key = keys[i++], O[key]]; - else while(length > i)result[i] = O[keys[i++]]; + while(length > i)has(O, key = keys[i++]) && result.push(isEntries ? [key, O[key]] : O[key]); return result; }; }; /***/ }, -/* 169 */ +/* 174 */ /***/ function(module, exports, __webpack_require__) { // http://goo.gl/XkBrjD var $def = __webpack_require__(12) - , $entries = __webpack_require__(168)(true); + , $entries = __webpack_require__(173)(true); $def($def.S, 'Object', { entries: function entries(it){ @@ -4135,21 +4216,21 @@ }); /***/ }, -/* 170 */ +/* 175 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $def = __webpack_require__(12); - $def($def.P, 'Map', {toJSON: __webpack_require__(171)('Map')}); + $def($def.P, 'Map', {toJSON: __webpack_require__(176)('Map')}); /***/ }, -/* 171 */ +/* 176 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON - var forOf = __webpack_require__(131) - , classof = __webpack_require__(45); + var forOf = __webpack_require__(136) + , classof = __webpack_require__(46); module.exports = function(NAME){ return function toJSON(){ if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic"); @@ -4160,34 +4241,34 @@ }; /***/ }, -/* 172 */ +/* 177 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $def = __webpack_require__(12); - $def($def.P, 'Set', {toJSON: __webpack_require__(171)('Set')}); + $def($def.P, 'Set', {toJSON: __webpack_require__(176)('Set')}); /***/ }, -/* 173 */ +/* 178 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) - , $task = __webpack_require__(133); + , $task = __webpack_require__(138); $def($def.G + $def.B, { setImmediate: $task.set, clearImmediate: $task.clear }); /***/ }, -/* 174 */ +/* 179 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(112); + __webpack_require__(115); var global = __webpack_require__(7) , hide = __webpack_require__(14) - , Iterators = __webpack_require__(104) - , ITERATOR = __webpack_require__(33)('iterator') + , Iterators = __webpack_require__(107) + , ITERATOR = __webpack_require__(27)('iterator') , NL = global.NodeList , HTC = global.HTMLCollection , NLProto = NL && NL.prototype @@ -4197,14 +4278,14 @@ if(HTC && !(ITERATOR in HTCProto))hide(HTCProto, ITERATOR, ArrayValues); /***/ }, -/* 175 */ +/* 180 */ /***/ function(module, exports, __webpack_require__) { // ie9- setTimeout & setInterval additional parameters fix var global = __webpack_require__(7) , $def = __webpack_require__(12) , invoke = __webpack_require__(17) - , partial = __webpack_require__(176) + , partial = __webpack_require__(181) , navigator = global.navigator , MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check var wrap = function(set){ @@ -4222,11 +4303,11 @@ }); /***/ }, -/* 176 */ +/* 181 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var path = __webpack_require__(177) + var path = __webpack_require__(182) , invoke = __webpack_require__(17) , aFunction = __webpack_require__(20); module.exports = function(/* ...pargs */){ @@ -4250,13 +4331,13 @@ }; /***/ }, -/* 177 */ +/* 182 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(7); /***/ }, -/* 178 */ +/* 183 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -4264,14 +4345,14 @@ , ctx = __webpack_require__(19) , $def = __webpack_require__(12) , createDesc = __webpack_require__(5) - , assign = __webpack_require__(39) - , keyOf = __webpack_require__(34) + , assign = __webpack_require__(40) + , keyOf = __webpack_require__(35) , aFunction = __webpack_require__(20) - , forOf = __webpack_require__(131) - , isIterable = __webpack_require__(179) - , step = __webpack_require__(114) + , forOf = __webpack_require__(136) + , isIterable = __webpack_require__(184) + , step = __webpack_require__(117) , isObject = __webpack_require__(9) - , toIObject = __webpack_require__(27) + , toIObject = __webpack_require__(30) , SUPPORT_DESC = __webpack_require__(3) , has = __webpack_require__(10) , getKeys = $.getKeys; @@ -4323,7 +4404,7 @@ this._i = 0; // next index this._k = kind; // kind }; - __webpack_require__(105)(DictIterator, 'Dict', function(){ + __webpack_require__(108)(DictIterator, 'Dict', function(){ var that = this , O = that._t , keys = that._a @@ -4413,23 +4494,23 @@ }); /***/ }, -/* 179 */ +/* 184 */ /***/ function(module, exports, __webpack_require__) { - var classof = __webpack_require__(45) - , ITERATOR = __webpack_require__(33)('iterator') - , Iterators = __webpack_require__(104); + var classof = __webpack_require__(46) + , ITERATOR = __webpack_require__(27)('iterator') + , Iterators = __webpack_require__(107); module.exports = __webpack_require__(13).isIterable = function(it){ var O = Object(it); return ITERATOR in O || '@@iterator' in O || Iterators.hasOwnProperty(classof(O)); }; /***/ }, -/* 180 */ +/* 185 */ /***/ function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(26) - , get = __webpack_require__(109); + var anObject = __webpack_require__(29) + , get = __webpack_require__(112); module.exports = __webpack_require__(13).getIterator = function(it){ var iterFn = get(it); if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!'); @@ -4437,13 +4518,13 @@ }; /***/ }, -/* 181 */ +/* 186 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(7) , core = __webpack_require__(13) , $def = __webpack_require__(12) - , partial = __webpack_require__(176); + , partial = __webpack_require__(181); // https://esdiscuss.org/topic/promise-returning-delay-function $def($def.G + $def.F, { delay: function delay(time){ @@ -4454,20 +4535,20 @@ }); /***/ }, -/* 182 */ +/* 187 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var path = __webpack_require__(177) + var path = __webpack_require__(182) , $def = __webpack_require__(12); // Placeholder __webpack_require__(13)._ = path._ = path._ || {}; - $def($def.P + $def.F, 'Function', {part: __webpack_require__(176)}); + $def($def.P + $def.F, 'Function', {part: __webpack_require__(181)}); /***/ }, -/* 183 */ +/* 188 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12); @@ -4475,29 +4556,29 @@ $def($def.S + $def.F, 'Object', {isObject: __webpack_require__(9)}); /***/ }, -/* 184 */ +/* 189 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12); - $def($def.S + $def.F, 'Object', {classof: __webpack_require__(45)}); + $def($def.S + $def.F, 'Object', {classof: __webpack_require__(46)}); /***/ }, -/* 185 */ +/* 190 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) - , define = __webpack_require__(186); + , define = __webpack_require__(191); $def($def.S + $def.F, 'Object', {define: define}); /***/ }, -/* 186 */ +/* 191 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) - , ownKeys = __webpack_require__(153) - , toIObject = __webpack_require__(27); + , ownKeys = __webpack_require__(158) + , toIObject = __webpack_require__(30); module.exports = function define(target, mixin){ var keys = ownKeys(toIObject(mixin)) @@ -4508,12 +4589,12 @@ }; /***/ }, -/* 187 */ +/* 192 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) , create = __webpack_require__(2).create - , define = __webpack_require__(186); + , define = __webpack_require__(191); $def($def.S + $def.F, 'Object', { make: function(proto, mixin){ @@ -4522,11 +4603,11 @@ }); /***/ }, -/* 188 */ +/* 193 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - __webpack_require__(103)(Number, 'Number', function(iterated){ + __webpack_require__(106)(Number, 'Number', function(iterated){ this._l = +iterated; this._i = 0; }, function(){ @@ -4536,12 +4617,12 @@ }); /***/ }, -/* 189 */ +/* 194 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $re = __webpack_require__(165)(/[&<>"']/g, { + , $re = __webpack_require__(170)(/[&<>"']/g, { '&': '&', '<': '<', '>': '>', @@ -4552,12 +4633,12 @@ $def($def.P + $def.F, 'String', {escapeHTML: function escapeHTML(){ return $re(this); }}); /***/ }, -/* 190 */ +/* 195 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $re = __webpack_require__(165)(/&(?:amp|lt|gt|quot|apos);/g, { + , $re = __webpack_require__(170)(/&(?:amp|lt|gt|quot|apos);/g, { '&': '&', '<': '<', '>': '>', @@ -4568,7 +4649,7 @@ $def($def.P + $def.F, 'String', {unescapeHTML: function unescapeHTML(){ return $re(this); }}); /***/ }, -/* 191 */ +/* 196 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) @@ -4577,10 +4658,11 @@ , log = {} , enabled = true; // Methods from https://github.com/DeveloperToolsWG/console-object/blob/master/api.md - $.each.call(('assert,clear,count,debug,dir,dirxml,error,exception,' + - 'group,groupCollapsed,groupEnd,info,isIndependentlyComposed,log,' + - 'markTimeline,profile,profileEnd,table,time,timeEnd,timeline,' + - 'timelineEnd,timeStamp,trace,warn').split(','), function(key){ + $.each.call(( + 'assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,' + + 'info,isIndependentlyComposed,log,markTimeline,profile,profileEnd,table,' + + 'time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn' + ).split(','), function(key){ log[key] = function(){ var $console = global.console; if(enabled && $console && $console[key]){ @@ -4588,7 +4670,7 @@ } }; }); - $def($def.G + $def.F, {log: __webpack_require__(39)(log.log, log, { + $def($def.G + $def.F, {log: __webpack_require__(40)(log.log, log, { enable: function(){ enabled = true; }, @@ -4598,7 +4680,7 @@ })}); /***/ }, -/* 192 */ +/* 197 */ /***/ function(module, exports, __webpack_require__) { // JavaScript 1.6 / Strawman array statics shim diff --git a/client/core.min.js b/client/core.min.js index dc164854b3ad..08203d0cbfe9 100644 --- a/client/core.min.js +++ b/client/core.min.js @@ -4,6 +4,6 @@ * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ -!function(b,c,a){"use strict";!function(b){function __webpack_require__(c){if(a[c])return a[c].exports;var d=a[c]={exports:{},id:c,loaded:!1};return b[c].call(d.exports,d,d.exports,__webpack_require__),d.loaded=!0,d.exports}var a={};return __webpack_require__.m=b,__webpack_require__.c=a,__webpack_require__.p="",__webpack_require__(0)}([function(b,c,a){a(1),a(30),a(38),a(40),a(42),a(44),a(46),a(48),a(49),a(50),a(51),a(52),a(53),a(54),a(55),a(56),a(57),a(58),a(59),a(60),a(61),a(62),a(64),a(65),a(66),a(67),a(68),a(69),a(70),a(72),a(73),a(74),a(76),a(77),a(78),a(80),a(81),a(82),a(83),a(84),a(85),a(86),a(87),a(88),a(89),a(90),a(91),a(92),a(94),a(96),a(98),a(99),a(101),a(102),a(106),a(111),a(112),a(115),a(117),a(118),a(119),a(120),a(121),a(123),a(124),a(126),a(127),a(128),a(129),a(135),a(138),a(139),a(141),a(142),a(143),a(144),a(145),a(146),a(147),a(148),a(149),a(150),a(151),a(152),a(154),a(155),a(156),a(157),a(158),a(159),a(161),a(162),a(163),a(164),a(166),a(167),a(169),a(170),a(172),a(173),a(174),a(175),a(178),a(109),a(180),a(179),a(181),a(182),a(183),a(184),a(185),a(187),a(188),a(189),a(190),a(191),b.exports=a(192)},function(V,U,b){var o,d=b(2),I=b(3),O=b(5),r=b(6),G=b(8),l=b(10),E=b(11),c=b(12),M=b(17),g=b(18),i=b(16)("__proto__"),K=b(9),n=b(26),B=b(20),R=b(22),A=b(27),T=b(25),y=b(28),h=b(24),u=b(21),t=b(4),C=Object.prototype,w=[],m=w.slice,L=w.join,x=d.setDesc,N=d.getDesc,q=d.setDescs,z=b(29)(!1),p={};I||(o=!t(function(){return 7!=x(G("div"),"a",{get:function(){return 7}}).a}),d.setDesc=function(b,c,a){if(o)try{return x(b,c,a)}catch(d){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(n(b)[c]=a.value),b},d.getDesc=function(a,b){if(o)try{return N(a,b)}catch(c){}return l(a,b)?O(!C.propertyIsEnumerable.call(a,b),a[b]):void 0},d.setDescs=q=function(a,b){n(a);for(var c,e=d.getKeys(b),g=e.length,f=0;g>f;)d.setDesc(a,c=e[f++],b[c]);return a}),c(c.S+c.F*!I,"Object",{getOwnPropertyDescriptor:d.getDesc,defineProperty:d.setDesc,defineProperties:q});var j="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),v=j.concat("length","prototype"),D=j.length,k=function(){var a,b=G("iframe"),c=D,d=">";for(b.style.display="none",r.appendChild(b),b.src="javascript:",a=b.contentWindow.document,a.open(),a.write("