diff options
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r-- | dist/plyr.polyfilled.js | 2675 |
1 files changed, 1685 insertions, 990 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js index da610756..867f9ffe 100644 --- a/dist/plyr.polyfilled.js +++ b/dist/plyr.polyfilled.js @@ -23,20 +23,52 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Mat if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef }); + + +var _global$2 = Object.freeze({ + default: _global, + __moduleExports: _global +}); + var _core = createCommonjsModule(function (module) { var core = module.exports = { version: '2.5.3' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef }); +var _core_1 = _core.version; + + +var _core$2 = Object.freeze({ + default: _core, + __moduleExports: _core, + version: _core_1 +}); + var _isObject = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; + + +var _isObject$2 = Object.freeze({ + default: _isObject, + __moduleExports: _isObject +}); + +var isObject = ( _isObject$2 && _isObject ) || _isObject$2; + var _anObject = function (it) { - if (!_isObject(it)) throw TypeError(it + ' is not an object!'); + if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; + + +var _anObject$2 = Object.freeze({ + default: _anObject, + __moduleExports: _anObject +}); + var _fails = function (exec) { try { return !!exec(); @@ -45,42 +77,86 @@ var _fails = function (exec) { } }; -// Thank's IE8 for his funny defineProperty -var _descriptors = !_fails(function () { + + +var _fails$2 = Object.freeze({ + default: _fails, + __moduleExports: _fails +}); + +var require$$0 = ( _fails$2 && _fails ) || _fails$2; + +var _descriptors = !require$$0(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); -var document$1 = _global.document; + + +var _descriptors$2 = Object.freeze({ + default: _descriptors, + __moduleExports: _descriptors +}); + +var global$1 = ( _global$2 && _global ) || _global$2; + +var document$1 = global$1.document; // typeof document.createElement is 'object' in old IE -var is = _isObject(document$1) && _isObject(document$1.createElement); +var is = isObject(document$1) && isObject(document$1.createElement); var _domCreate = function (it) { return is ? document$1.createElement(it) : {}; }; -var _ie8DomDefine = !_descriptors && !_fails(function () { - return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7; + + +var _domCreate$2 = Object.freeze({ + default: _domCreate, + __moduleExports: _domCreate }); -// 7.1.1 ToPrimitive(input [, PreferredType]) +var require$$0$1 = ( _descriptors$2 && _descriptors ) || _descriptors$2; + +var cel = ( _domCreate$2 && _domCreate ) || _domCreate$2; + +var _ie8DomDefine = !require$$0$1 && !require$$0(function () { + return Object.defineProperty(cel('div'), 'a', { get: function () { return 7; } }).a != 7; +}); + + + +var _ie8DomDefine$2 = Object.freeze({ + default: _ie8DomDefine, + __moduleExports: _ie8DomDefine +}); -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string var _toPrimitive = function (it, S) { - if (!_isObject(it)) return it; + if (!isObject(it)) return it; var fn, val; - if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; - if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val; - if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; + + +var _toPrimitive$2 = Object.freeze({ + default: _toPrimitive, + __moduleExports: _toPrimitive +}); + +var anObject = ( _anObject$2 && _anObject ) || _anObject$2; + +var IE8_DOM_DEFINE = ( _ie8DomDefine$2 && _ie8DomDefine ) || _ie8DomDefine$2; + +var toPrimitive = ( _toPrimitive$2 && _toPrimitive ) || _toPrimitive$2; + var dP = Object.defineProperty; -var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { - _anObject(O); - P = _toPrimitive(P, true); - _anObject(Attributes); - if (_ie8DomDefine) try { +var f = require$$0$1 ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { return dP(O, P, Attributes); } catch (e) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); @@ -92,6 +168,14 @@ var _objectDp = { f: f }; + + +var _objectDp$2 = Object.freeze({ + default: _objectDp, + __moduleExports: _objectDp, + f: f +}); + var _propertyDesc = function (bitmap, value) { return { enumerable: !(bitmap & 1), @@ -101,48 +185,88 @@ var _propertyDesc = function (bitmap, value) { }; }; -var _hide = _descriptors ? function (object, key, value) { - return _objectDp.f(object, key, _propertyDesc(1, value)); + + +var _propertyDesc$2 = Object.freeze({ + default: _propertyDesc, + __moduleExports: _propertyDesc +}); + +var $defineProperty = ( _objectDp$2 && _objectDp ) || _objectDp$2; + +var createDesc = ( _propertyDesc$2 && _propertyDesc ) || _propertyDesc$2; + +var _hide = require$$0$1 ? function (object, key, value) { + return $defineProperty.f(object, key, createDesc(1, value)); } : function (object, key, value) { object[key] = value; return object; }; + + +var _hide$2 = Object.freeze({ + default: _hide, + __moduleExports: _hide +}); + var hasOwnProperty = {}.hasOwnProperty; var _has = function (it, key) { return hasOwnProperty.call(it, key); }; + + +var _has$2 = Object.freeze({ + default: _has, + __moduleExports: _has +}); + var id = 0; var px = Math.random(); var _uid = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; + + +var _uid$2 = Object.freeze({ + default: _uid, + __moduleExports: _uid +}); + +var hide = ( _hide$2 && _hide ) || _hide$2; + +var has = ( _has$2 && _has ) || _has$2; + +var uid = ( _uid$2 && _uid ) || _uid$2; + +var core = ( _core$2 && _core ) || _core$2; + var _redefine = createCommonjsModule(function (module) { -var SRC = _uid('src'); +var SRC = uid('src'); var TO_STRING = 'toString'; var $toString = Function[TO_STRING]; var TPL = ('' + $toString).split(TO_STRING); -_core.inspectSource = function (it) { +core.inspectSource = function (it) { return $toString.call(it); }; (module.exports = function (O, key, val, safe) { var isFunction = typeof val == 'function'; - if (isFunction) _has(val, 'name') || _hide(val, 'name', key); + if (isFunction) has(val, 'name') || hide(val, 'name', key); if (O[key] === val) return; - if (isFunction) _has(val, SRC) || _hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); - if (O === _global) { + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); + if (O === global$1) { O[key] = val; } else if (!safe) { delete O[key]; - _hide(O, key, val); + hide(O, key, val); } else if (O[key]) { O[key] = val; } else { - _hide(O, key, val); + hide(O, key, val); } // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, TO_STRING, function toString() { @@ -150,15 +274,29 @@ _core.inspectSource = function (it) { }); }); + + +var _redefine$2 = Object.freeze({ + default: _redefine, + __moduleExports: _redefine +}); + var _aFunction = function (it) { if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; -// optional / simple context binding + + +var _aFunction$2 = Object.freeze({ + default: _aFunction, + __moduleExports: _aFunction +}); + +var aFunction = ( _aFunction$2 && _aFunction ) || _aFunction$2; var _ctx = function (fn, that, length) { - _aFunction(fn); + aFunction(fn); if (that === undefined) return fn; switch (length) { case 1: return function (a) { @@ -176,6 +314,17 @@ var _ctx = function (fn, that, length) { }; }; + + +var _ctx$2 = Object.freeze({ + default: _ctx, + __moduleExports: _ctx +}); + +var redefine = ( _redefine$2 && _redefine ) || _redefine$2; + +var ctx = ( _ctx$2 && _ctx ) || _ctx$2; + var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { @@ -184,8 +333,8 @@ var $export = function (type, name, source) { var IS_STATIC = type & $export.S; var IS_PROTO = type & $export.P; var IS_BIND = type & $export.B; - var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] || (_global[name] = {}) : (_global[name] || {})[PROTOTYPE]; - var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {}); + var target = IS_GLOBAL ? global$1 : IS_STATIC ? global$1[name] || (global$1[name] = {}) : (global$1[name] || {})[PROTOTYPE]; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); var key, own, out, exp; if (IS_GLOBAL) source = name; @@ -195,15 +344,15 @@ var $export = function (type, name, source) { // export native or passed out = (own ? target : source)[key]; // bind timers to global for call from export context - exp = IS_BIND && own ? _ctx(out, _global) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out; + exp = IS_BIND && own ? ctx(out, global$1) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // extend global - if (target) _redefine(target, key, out, type & $export.U); + if (target) redefine(target, key, out, type & $export.U); // export - if (exports[key] != out) _hide(exports, key, exp); + if (exports[key] != out) hide(exports, key, exp); if (IS_PROTO && expProto[key] != out) expProto[key] = out; } }; -_global.core = _core; +global$1.core = core; // type bitmap $export.F = 1; // forced $export.G = 2; // global @@ -215,9 +364,16 @@ $export.U = 64; // safe $export.R = 128; // real proto method for `library` var _export = $export; -var TYPED = _uid('typed_array'); -var VIEW$1 = _uid('view'); -var ABV = !!(_global.ArrayBuffer && _global.DataView); + + +var _export$2 = Object.freeze({ + default: _export, + __moduleExports: _export +}); + +var TYPED = uid('typed_array'); +var VIEW$1 = uid('view'); +var ABV = !!(global$1.ArrayBuffer && global$1.DataView); var CONSTR = ABV; var i = 0; var l = 9; @@ -228,9 +384,9 @@ var TypedArrayConstructors = ( ).split(','); while (i < l) { - if (Typed = _global[TypedArrayConstructors[i++]]) { - _hide(Typed.prototype, TYPED, true); - _hide(Typed.prototype, VIEW$1, true); + if (Typed = global$1[TypedArrayConstructors[i++]]) { + hide(Typed.prototype, TYPED, true); + hide(Typed.prototype, VIEW$1, true); } else CONSTR = false; } @@ -241,19 +397,55 @@ var _typed = { VIEW: VIEW$1 }; +var _typed_1 = _typed.ABV; +var _typed_2 = _typed.CONSTR; +var _typed_3 = _typed.TYPED; +var _typed_4 = _typed.VIEW; + + +var _typed$2 = Object.freeze({ + default: _typed, + __moduleExports: _typed, + ABV: _typed_1, + CONSTR: _typed_2, + TYPED: _typed_3, + VIEW: _typed_4 +}); + var _library = false; + + +var _library$2 = Object.freeze({ + default: _library, + __moduleExports: _library +}); + var _redefineAll = function (target, src, safe) { - for (var key in src) _redefine(target, key, src[key], safe); + for (var key in src) redefine(target, key, src[key], safe); return target; }; + + +var _redefineAll$2 = Object.freeze({ + default: _redefineAll, + __moduleExports: _redefineAll +}); + var _anInstance = function (it, Constructor, name, forbiddenField) { if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { throw TypeError(name + ': incorrect invocation!'); } return it; }; + + +var _anInstance$2 = Object.freeze({ + default: _anInstance, + __moduleExports: _anInstance +}); + // 7.1.4 ToInteger var ceil = Math.ceil; var floor = Math.floor; @@ -261,67 +453,121 @@ var _toInteger = function (it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; -// 7.1.15 ToLength + + +var _toInteger$2 = Object.freeze({ + default: _toInteger, + __moduleExports: _toInteger +}); + +var toInteger = ( _toInteger$2 && _toInteger ) || _toInteger$2; var min = Math.min; var _toLength = function (it) { - return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; -// https://tc39.github.io/ecma262/#sec-toindex +var _toLength$2 = Object.freeze({ + default: _toLength, + __moduleExports: _toLength +}); + +var toLength = ( _toLength$2 && _toLength ) || _toLength$2; + var _toIndex = function (it) { if (it === undefined) return 0; - var number = _toInteger(it); - var length = _toLength(number); + var number = toInteger(it); + var length = toLength(number); if (number !== length) throw RangeError('Wrong length!'); return length; }; + + +var _toIndex$2 = Object.freeze({ + default: _toIndex, + __moduleExports: _toIndex +}); + var toString = {}.toString; var _cof = function (it) { return toString.call(it).slice(8, -1); }; -// fallback for non-array-like ES3 and non-enumerable old V8 strings -// eslint-disable-next-line no-prototype-builtins + +var _cof$2 = Object.freeze({ + default: _cof, + __moduleExports: _cof +}); + +var cof = ( _cof$2 && _cof ) || _cof$2; + var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) { - return _cof(it) == 'String' ? it.split('') : Object(it); + return cof(it) == 'String' ? it.split('') : Object(it); }; + + +var _iobject$2 = Object.freeze({ + default: _iobject, + __moduleExports: _iobject +}); + // 7.2.1 RequireObjectCoercible(argument) var _defined = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; -// to indexed object, toObject with fallback for non-array-like ES3 strings +var _defined$2 = Object.freeze({ + default: _defined, + __moduleExports: _defined +}); + +var IObject = ( _iobject$2 && _iobject ) || _iobject$2; + +var defined = ( _defined$2 && _defined ) || _defined$2; + var _toIobject = function (it) { - return _iobject(_defined(it)); + return IObject(defined(it)); }; + + +var _toIobject$2 = Object.freeze({ + default: _toIobject, + __moduleExports: _toIobject +}); + var max = Math.max; var min$1 = Math.min; var _toAbsoluteIndex = function (index, length) { - index = _toInteger(index); + index = toInteger(index); return index < 0 ? max(index + length, 0) : min$1(index, length); }; -// false -> Array#indexOf -// true -> Array#includes +var _toAbsoluteIndex$2 = Object.freeze({ + default: _toAbsoluteIndex, + __moduleExports: _toAbsoluteIndex +}); + +var toIObject = ( _toIobject$2 && _toIobject ) || _toIobject$2; + +var toAbsoluteIndex = ( _toAbsoluteIndex$2 && _toAbsoluteIndex ) || _toAbsoluteIndex$2; var _arrayIncludes = function (IS_INCLUDES) { return function ($this, el, fromIndex) { - var O = _toIobject($this); - var length = _toLength(O.length); - var index = _toAbsoluteIndex(fromIndex, length); + var O = toIObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare @@ -336,95 +582,191 @@ var _arrayIncludes = function (IS_INCLUDES) { }; }; + + +var _arrayIncludes$2 = Object.freeze({ + default: _arrayIncludes, + __moduleExports: _arrayIncludes +}); + var SHARED = '__core-js_shared__'; -var store = _global[SHARED] || (_global[SHARED] = {}); +var store = global$1[SHARED] || (global$1[SHARED] = {}); var _shared = function (key) { return store[key] || (store[key] = {}); }; -var shared = _shared('keys'); + + +var _shared$2 = Object.freeze({ + default: _shared, + __moduleExports: _shared +}); + +var shared$1 = ( _shared$2 && _shared ) || _shared$2; + +var shared = shared$1('keys'); var _sharedKey = function (key) { - return shared[key] || (shared[key] = _uid(key)); + return shared[key] || (shared[key] = uid(key)); }; -var arrayIndexOf = _arrayIncludes(false); -var IE_PROTO = _sharedKey('IE_PROTO'); + + +var _sharedKey$2 = Object.freeze({ + default: _sharedKey, + __moduleExports: _sharedKey +}); + +var require$$0$2 = ( _arrayIncludes$2 && _arrayIncludes ) || _arrayIncludes$2; + +var require$$0$3 = ( _sharedKey$2 && _sharedKey ) || _sharedKey$2; + +var arrayIndexOf = require$$0$2(false); +var IE_PROTO = require$$0$3('IE_PROTO'); var _objectKeysInternal = function (object, names) { - var O = _toIobject(object); + var O = toIObject(object); var i = 0; var result = []; var key; - for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key); + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys - while (names.length > i) if (_has(O, key = names[i++])) { + while (names.length > i) if (has(O, key = names[i++])) { ~arrayIndexOf(result, key) || result.push(key); } return result; }; + + +var _objectKeysInternal$2 = Object.freeze({ + default: _objectKeysInternal, + __moduleExports: _objectKeysInternal +}); + // IE 8- don't enum bug keys var _enumBugKeys = ( 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' ).split(','); -// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) -var hiddenKeys = _enumBugKeys.concat('length', 'prototype'); + +var _enumBugKeys$2 = Object.freeze({ + default: _enumBugKeys, + __moduleExports: _enumBugKeys +}); + +var $keys = ( _objectKeysInternal$2 && _objectKeysInternal ) || _objectKeysInternal$2; + +var enumBugKeys = ( _enumBugKeys$2 && _enumBugKeys ) || _enumBugKeys$2; + +var hiddenKeys = enumBugKeys.concat('length', 'prototype'); var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return _objectKeysInternal(O, hiddenKeys); + return $keys(O, hiddenKeys); }; var _objectGopn = { f: f$1 }; -// 7.1.13 ToObject(argument) + + +var _objectGopn$2 = Object.freeze({ + default: _objectGopn, + __moduleExports: _objectGopn, + f: f$1 +}); var _toObject = function (it) { - return Object(_defined(it)); + return Object(defined(it)); }; -// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) + + +var _toObject$2 = Object.freeze({ + default: _toObject, + __moduleExports: _toObject +}); + +var toObject = ( _toObject$2 && _toObject ) || _toObject$2; + 'use strict'; var _arrayFill = function fill(value /* , start = 0, end = @length */) { - var O = _toObject(this); - var length = _toLength(O.length); + var O = toObject(this); + var length = toLength(O.length); var aLen = arguments.length; - var index = _toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); + var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); var end = aLen > 2 ? arguments[2] : undefined; - var endPos = end === undefined ? length : _toAbsoluteIndex(end, length); + var endPos = end === undefined ? length : toAbsoluteIndex(end, length); while (endPos > index) O[index++] = value; return O; }; + + +var _arrayFill$2 = Object.freeze({ + default: _arrayFill, + __moduleExports: _arrayFill +}); + var _wks = createCommonjsModule(function (module) { -var store = _shared('wks'); +var store = shared$1('wks'); -var Symbol = _global.Symbol; +var Symbol = global$1.Symbol; var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { return store[name] || (store[name] = - USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name)); + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; }); -var def = _objectDp.f; -var TAG = _wks('toStringTag'); + +var _wks$2 = Object.freeze({ + default: _wks, + __moduleExports: _wks +}); + +var wks = ( _wks$2 && _wks ) || _wks$2; + +var def = $defineProperty.f; + +var TAG = wks('toStringTag'); var _setToStringTag = function (it, tag, stat) { - if (it && !_has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); }; + + +var _setToStringTag$2 = Object.freeze({ + default: _setToStringTag, + __moduleExports: _setToStringTag +}); + +var LIBRARY = ( _library$2 && _library ) || _library$2; + +var require$$5 = ( _typed$2 && _typed ) || _typed$2; + +var require$$3 = ( _redefineAll$2 && _redefineAll ) || _redefineAll$2; + +var anInstance = ( _anInstance$2 && _anInstance ) || _anInstance$2; + +var require$$14 = ( _toIndex$2 && _toIndex ) || _toIndex$2; + +var require$$0$4 = ( _objectGopn$2 && _objectGopn ) || _objectGopn$2; + +var require$$0$5 = ( _arrayFill$2 && _arrayFill ) || _arrayFill$2; + +var setToStringTag = ( _setToStringTag$2 && _setToStringTag ) || _setToStringTag$2; + var _typedBuffer = createCommonjsModule(function (module, exports) { 'use strict'; @@ -438,8 +780,8 @@ var _typedBuffer = createCommonjsModule(function (module, exports) { -var gOPN = _objectGopn.f; -var dP = _objectDp.f; +var gOPN = require$$0$4.f; +var dP = $defineProperty.f; var ARRAY_BUFFER = 'ArrayBuffer'; @@ -447,12 +789,12 @@ var DATA_VIEW = 'DataView'; var PROTOTYPE = 'prototype'; var WRONG_LENGTH = 'Wrong length!'; var WRONG_INDEX = 'Wrong index!'; -var $ArrayBuffer = _global[ARRAY_BUFFER]; -var $DataView = _global[DATA_VIEW]; -var Math = _global.Math; -var RangeError = _global.RangeError; +var $ArrayBuffer = global$1[ARRAY_BUFFER]; +var $DataView = global$1[DATA_VIEW]; +var Math = global$1.Math; +var RangeError = global$1.RangeError; // eslint-disable-next-line no-shadow-restricted-names -var Infinity = _global.Infinity; +var Infinity = global$1.Infinity; var BaseBuffer = $ArrayBuffer; var abs = Math.abs; var pow = Math.pow; @@ -462,9 +804,9 @@ var LN2 = Math.LN2; var BUFFER = 'buffer'; var BYTE_LENGTH = 'byteLength'; var BYTE_OFFSET = 'byteOffset'; -var $BUFFER = _descriptors ? '_b' : BUFFER; -var $LENGTH = _descriptors ? '_l' : BYTE_LENGTH; -var $OFFSET = _descriptors ? '_o' : BYTE_OFFSET; +var $BUFFER = require$$0$1 ? '_b' : BUFFER; +var $LENGTH = require$$0$1 ? '_l' : BYTE_LENGTH; +var $OFFSET = require$$0$1 ? '_o' : BYTE_OFFSET; // IEEE754 conversions based on https://github.com/feross/ieee754 function packIEEE754(value, mLen, nBytes) { @@ -565,7 +907,7 @@ function addGetter(C, key, internal) { function get(view, bytes, index, isLittleEndian) { var numIndex = +index; - var intIndex = _toIndex(numIndex); + var intIndex = require$$14(numIndex); if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); var store = view[$BUFFER]._b; var start = intIndex + view[$OFFSET]; @@ -574,7 +916,7 @@ function get(view, bytes, index, isLittleEndian) { } function set(view, bytes, index, conversion, value, isLittleEndian) { var numIndex = +index; - var intIndex = _toIndex(numIndex); + var intIndex = require$$14(numIndex); if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); var store = view[$BUFFER]._b; var start = intIndex + view[$OFFSET]; @@ -582,35 +924,35 @@ function set(view, bytes, index, conversion, value, isLittleEndian) { for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; } -if (!_typed.ABV) { +if (!require$$5.ABV) { $ArrayBuffer = function ArrayBuffer(length) { - _anInstance(this, $ArrayBuffer, ARRAY_BUFFER); - var byteLength = _toIndex(length); - this._b = _arrayFill.call(new Array(byteLength), 0); + anInstance(this, $ArrayBuffer, ARRAY_BUFFER); + var byteLength = require$$14(length); + this._b = require$$0$5.call(new Array(byteLength), 0); this[$LENGTH] = byteLength; }; $DataView = function DataView(buffer, byteOffset, byteLength) { - _anInstance(this, $DataView, DATA_VIEW); - _anInstance(buffer, $ArrayBuffer, DATA_VIEW); + anInstance(this, $DataView, DATA_VIEW); + anInstance(buffer, $ArrayBuffer, DATA_VIEW); var bufferLength = buffer[$LENGTH]; - var offset = _toInteger(byteOffset); + var offset = toInteger(byteOffset); if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!'); - byteLength = byteLength === undefined ? bufferLength - offset : _toLength(byteLength); + byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength); if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH); this[$BUFFER] = buffer; this[$OFFSET] = offset; this[$LENGTH] = byteLength; }; - if (_descriptors) { + if (require$$0$1) { addGetter($ArrayBuffer, BYTE_LENGTH, '_l'); addGetter($DataView, BUFFER, '_b'); addGetter($DataView, BYTE_LENGTH, '_l'); addGetter($DataView, BYTE_OFFSET, '_o'); } - _redefineAll($DataView[PROTOTYPE], { + require$$3($DataView[PROTOTYPE], { getInt8: function getInt8(byteOffset) { return get(this, 1, byteOffset)[0] << 24 >> 24; }, @@ -663,32 +1005,32 @@ if (!_typed.ABV) { } }); } else { - if (!_fails(function () { + if (!require$$0(function () { $ArrayBuffer(1); - }) || !_fails(function () { + }) || !require$$0(function () { new $ArrayBuffer(-1); // eslint-disable-line no-new - }) || _fails(function () { + }) || require$$0(function () { new $ArrayBuffer(); // eslint-disable-line no-new new $ArrayBuffer(1.5); // eslint-disable-line no-new new $ArrayBuffer(NaN); // eslint-disable-line no-new return $ArrayBuffer.name != ARRAY_BUFFER; })) { $ArrayBuffer = function ArrayBuffer(length) { - _anInstance(this, $ArrayBuffer); - return new BaseBuffer(_toIndex(length)); + anInstance(this, $ArrayBuffer); + return new BaseBuffer(require$$14(length)); }; var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE]; for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) { - if (!((key = keys[j++]) in $ArrayBuffer)) _hide($ArrayBuffer, key, BaseBuffer[key]); + if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]); } - if (!_library) ArrayBufferProto.constructor = $ArrayBuffer; + if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer; } // iOS Safari 7.x bug var view = new $DataView(new $ArrayBuffer(2)); var $setInt8 = $DataView[PROTOTYPE].setInt8; view.setInt8(0, 2147483648); view.setInt8(1, 2147483649); - if (view.getInt8(0) || !view.getInt8(1)) _redefineAll($DataView[PROTOTYPE], { + if (view.getInt8(0) || !view.getInt8(1)) require$$3($DataView[PROTOTYPE], { setInt8: function setInt8(byteOffset, value) { $setInt8.call(this, byteOffset, value << 24 >> 24); }, @@ -697,37 +1039,63 @@ if (!_typed.ABV) { } }, true); } -_setToStringTag($ArrayBuffer, ARRAY_BUFFER); -_setToStringTag($DataView, DATA_VIEW); -_hide($DataView[PROTOTYPE], _typed.VIEW, true); +setToStringTag($ArrayBuffer, ARRAY_BUFFER); +setToStringTag($DataView, DATA_VIEW); +hide($DataView[PROTOTYPE], require$$5.VIEW, true); exports[ARRAY_BUFFER] = $ArrayBuffer; exports[DATA_VIEW] = $DataView; }); -// 7.3.20 SpeciesConstructor(O, defaultConstructor) -var SPECIES = _wks('species'); +var _typedBuffer$2 = Object.freeze({ + default: _typedBuffer, + __moduleExports: _typedBuffer +}); + +var SPECIES = wks('species'); var _speciesConstructor = function (O, D) { - var C = _anObject(O).constructor; + var C = anObject(O).constructor; var S; - return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S); + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); }; + + +var _speciesConstructor$2 = Object.freeze({ + default: _speciesConstructor, + __moduleExports: _speciesConstructor +}); + 'use strict'; -var SPECIES$1 = _wks('species'); +var SPECIES$1 = wks('species'); var _setSpecies = function (KEY) { - var C = _global[KEY]; - if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, { + var C = global$1[KEY]; + if (require$$0$1 && C && !C[SPECIES$1]) $defineProperty.f(C, SPECIES$1, { configurable: true, get: function () { return this; } }); }; + + +var _setSpecies$2 = Object.freeze({ + default: _setSpecies, + __moduleExports: _setSpecies +}); + +var $export$1 = ( _export$2 && _export ) || _export$2; + +var require$$6 = ( _typedBuffer$2 && _typedBuffer ) || _typedBuffer$2; + +var speciesConstructor = ( _speciesConstructor$2 && _speciesConstructor ) || _speciesConstructor$2; + +var require$$5$1 = ( _setSpecies$2 && _setSpecies ) || _setSpecies$2; + 'use strict'; @@ -736,34 +1104,34 @@ var _setSpecies = function (KEY) { -var ArrayBuffer = _global.ArrayBuffer; +var ArrayBuffer = global$1.ArrayBuffer; -var $ArrayBuffer = _typedBuffer.ArrayBuffer; -var $DataView = _typedBuffer.DataView; -var $isView = _typed.ABV && ArrayBuffer.isView; +var $ArrayBuffer = require$$6.ArrayBuffer; +var $DataView = require$$6.DataView; +var $isView = require$$5.ABV && ArrayBuffer.isView; var $slice = $ArrayBuffer.prototype.slice; -var VIEW = _typed.VIEW; +var VIEW = require$$5.VIEW; var ARRAY_BUFFER = 'ArrayBuffer'; -_export(_export.G + _export.W + _export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer }); +$export$1($export$1.G + $export$1.W + $export$1.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer }); -_export(_export.S + _export.F * !_typed.CONSTR, ARRAY_BUFFER, { +$export$1($export$1.S + $export$1.F * !require$$5.CONSTR, ARRAY_BUFFER, { // 24.1.3.1 ArrayBuffer.isView(arg) isView: function isView(it) { - return $isView && $isView(it) || _isObject(it) && VIEW in it; + return $isView && $isView(it) || isObject(it) && VIEW in it; } }); -_export(_export.P + _export.U + _export.F * _fails(function () { +$export$1($export$1.P + $export$1.U + $export$1.F * require$$0(function () { return !new $ArrayBuffer(2).slice(1, undefined).byteLength; }), ARRAY_BUFFER, { // 24.1.4.3 ArrayBuffer.prototype.slice(start, end) slice: function slice(start, end) { - if ($slice !== undefined && end === undefined) return $slice.call(_anObject(this), start); // FF fix - var len = _anObject(this).byteLength; - var first = _toAbsoluteIndex(start, len); - var final = _toAbsoluteIndex(end === undefined ? len : end, len); - var result = new (_speciesConstructor(this, $ArrayBuffer))(_toLength(final - first)); + if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix + var len = anObject(this).byteLength; + var first = toAbsoluteIndex(start, len); + var final = toAbsoluteIndex(end === undefined ? len : end, len); + var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first)); var viewS = new $DataView(this); var viewT = new $DataView(result); var index = 0; @@ -773,13 +1141,11 @@ _export(_export.P + _export.U + _export.F * _fails(function () { } }); -_setSpecies(ARRAY_BUFFER); - -// getting tag from 19.1.3.6 Object.prototype.toString() +require$$5$1(ARRAY_BUFFER); -var TAG$1 = _wks('toStringTag'); +var TAG$1 = wks('toStringTag'); // ES3 wrong here -var ARG = _cof(function () { return arguments; }()) == 'Arguments'; +var ARG = cof(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { @@ -794,61 +1160,101 @@ var _classof = function (it) { // @@toStringTag case : typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T // builtinTag case - : ARG ? _cof(O) + : ARG ? cof(O) // ES3 arguments fallback - : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; + + +var _classof$2 = Object.freeze({ + default: _classof, + __moduleExports: _classof +}); + var _iterators = {}; -// check on default Array iterator -var ITERATOR = _wks('iterator'); + +var _iterators$2 = Object.freeze({ + default: _iterators, + __moduleExports: _iterators +}); + +var Iterators = ( _iterators$2 && _iterators ) || _iterators$2; + +var ITERATOR = wks('iterator'); var ArrayProto = Array.prototype; var _isArrayIter = function (it) { - return it !== undefined && (_iterators.Array === it || ArrayProto[ITERATOR] === it); + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); }; -// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var _isArrayIter$2 = Object.freeze({ + default: _isArrayIter, + __moduleExports: _isArrayIter +}); var _objectKeys = Object.keys || function keys(O) { - return _objectKeysInternal(O, _enumBugKeys); + return $keys(O, enumBugKeys); }; -var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) { - _anObject(O); - var keys = _objectKeys(Properties); + + +var _objectKeys$2 = Object.freeze({ + default: _objectKeys, + __moduleExports: _objectKeys +}); + +var getKeys = ( _objectKeys$2 && _objectKeys ) || _objectKeys$2; + +var _objectDps = require$$0$1 ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = getKeys(Properties); var length = keys.length; var i = 0; var P; - while (length > i) _objectDp.f(O, P = keys[i++], Properties[P]); + while (length > i) $defineProperty.f(O, P = keys[i++], Properties[P]); return O; }; -var document$2 = _global.document; + + +var _objectDps$2 = Object.freeze({ + default: _objectDps, + __moduleExports: _objectDps +}); + +var document$2 = global$1.document; var _html = document$2 && document$2.documentElement; -// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var _html$2 = Object.freeze({ + default: _html, + __moduleExports: _html +}); + +var dPs = ( _objectDps$2 && _objectDps ) || _objectDps$2; + +var html = ( _html$2 && _html ) || _html$2; -var IE_PROTO$1 = _sharedKey('IE_PROTO'); +var IE_PROTO$1 = require$$0$3('IE_PROTO'); var Empty = function () { /* empty */ }; var PROTOTYPE$1 = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype var createDict = function () { // Thrash, waste and sodomy: IE GC bug - var iframe = _domCreate('iframe'); - var i = _enumBugKeys.length; + var iframe = cel('iframe'); + var i = enumBugKeys.length; var lt = '<'; var gt = '>'; var iframeDocument; iframe.style.display = 'none'; - _html.appendChild(iframe); + html.appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); @@ -857,83 +1263,113 @@ var createDict = function () { iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); createDict = iframeDocument.F; - while (i--) delete createDict[PROTOTYPE$1][_enumBugKeys[i]]; + while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]]; return createDict(); }; var _objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { - Empty[PROTOTYPE$1] = _anObject(O); + Empty[PROTOTYPE$1] = anObject(O); result = new Empty(); Empty[PROTOTYPE$1] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO$1] = O; } else result = createDict(); - return Properties === undefined ? result : _objectDps(result, Properties); + return Properties === undefined ? result : dPs(result, Properties); }; -// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var IE_PROTO$2 = _sharedKey('IE_PROTO'); +var _objectCreate$2 = Object.freeze({ + default: _objectCreate, + __moduleExports: _objectCreate +}); + +var IE_PROTO$2 = require$$0$3('IE_PROTO'); var ObjectProto = Object.prototype; var _objectGpo = Object.getPrototypeOf || function (O) { - O = _toObject(O); - if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2]; + O = toObject(O); + if (has(O, IE_PROTO$2)) return O[IE_PROTO$2]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }; -var ITERATOR$1 = _wks('iterator'); -var core_getIteratorMethod = _core.getIteratorMethod = function (it) { + +var _objectGpo$2 = Object.freeze({ + default: _objectGpo, + __moduleExports: _objectGpo +}); + +var classof = ( _classof$2 && _classof ) || _classof$2; + +var ITERATOR$1 = wks('iterator'); + +var core_getIteratorMethod = core.getIteratorMethod = function (it) { if (it != undefined) return it[ITERATOR$1] || it['@@iterator'] - || _iterators[_classof(it)]; + || Iterators[classof(it)]; }; -// 7.2.2 IsArray(argument) + + +var core_getIteratorMethod$2 = Object.freeze({ + default: core_getIteratorMethod, + __moduleExports: core_getIteratorMethod +}); var _isArray = Array.isArray || function isArray(arg) { - return _cof(arg) == 'Array'; + return cof(arg) == 'Array'; }; -var SPECIES$2 = _wks('species'); + + +var _isArray$2 = Object.freeze({ + default: _isArray, + __moduleExports: _isArray +}); + +var isArray = ( _isArray$2 && _isArray ) || _isArray$2; + +var SPECIES$2 = wks('species'); var _arraySpeciesConstructor = function (original) { var C; - if (_isArray(original)) { + if (isArray(original)) { C = original.constructor; // cross-realm fallback - if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined; - if (_isObject(C)) { + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; + if (isObject(C)) { C = C[SPECIES$2]; if (C === null) C = undefined; } } return C === undefined ? Array : C; }; -// 9.4.2.3 ArraySpeciesCreate(originalArray, length) +var _arraySpeciesConstructor$2 = Object.freeze({ + default: _arraySpeciesConstructor, + __moduleExports: _arraySpeciesConstructor +}); + +var speciesConstructor$1 = ( _arraySpeciesConstructor$2 && _arraySpeciesConstructor ) || _arraySpeciesConstructor$2; + var _arraySpeciesCreate = function (original, length) { - return new (_arraySpeciesConstructor(original))(length); + return new (speciesConstructor$1(original))(length); }; -// 0 -> Array#forEach -// 1 -> Array#map -// 2 -> Array#filter -// 3 -> Array#some -// 4 -> Array#every -// 5 -> Array#find -// 6 -> Array#findIndex - +var _arraySpeciesCreate$2 = Object.freeze({ + default: _arraySpeciesCreate, + __moduleExports: _arraySpeciesCreate +}); +var asc = ( _arraySpeciesCreate$2 && _arraySpeciesCreate ) || _arraySpeciesCreate$2; var _arrayMethods = function (TYPE, $create) { var IS_MAP = TYPE == 1; @@ -942,12 +1378,12 @@ var _arrayMethods = function (TYPE, $create) { var IS_EVERY = TYPE == 4; var IS_FIND_INDEX = TYPE == 6; var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; - var create = $create || _arraySpeciesCreate; + var create = $create || asc; return function ($this, callbackfn, that) { - var O = _toObject($this); - var self = _iobject(O); - var f = _ctx(callbackfn, that, 3); - var length = _toLength(self.length); + var O = toObject($this); + var self = IObject(O); + var f = ctx(callbackfn, that, 3); + var length = toLength(self.length); var index = 0; var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; var val, res; @@ -968,18 +1404,40 @@ var _arrayMethods = function (TYPE, $create) { }; }; -// 22.1.3.31 Array.prototype[@@unscopables] -var UNSCOPABLES = _wks('unscopables'); + + +var _arrayMethods$2 = Object.freeze({ + default: _arrayMethods, + __moduleExports: _arrayMethods +}); + +var UNSCOPABLES = wks('unscopables'); var ArrayProto$1 = Array.prototype; -if (ArrayProto$1[UNSCOPABLES] == undefined) _hide(ArrayProto$1, UNSCOPABLES, {}); +if (ArrayProto$1[UNSCOPABLES] == undefined) hide(ArrayProto$1, UNSCOPABLES, {}); var _addToUnscopables = function (key) { ArrayProto$1[UNSCOPABLES][key] = true; }; + + +var _addToUnscopables$2 = Object.freeze({ + default: _addToUnscopables, + __moduleExports: _addToUnscopables +}); + var _iterStep = function (done, value) { return { value: value, done: !!done }; }; + + +var _iterStep$2 = Object.freeze({ + default: _iterStep, + __moduleExports: _iterStep +}); + +var _create = ( _objectCreate$2 && _objectCreate ) || _objectCreate$2; + 'use strict'; @@ -987,13 +1445,24 @@ var _iterStep = function (done, value) { var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -_hide(IteratorPrototype, _wks('iterator'), function () { return this; }); +hide(IteratorPrototype, wks('iterator'), function () { return this; }); var _iterCreate = function (Constructor, NAME, next) { - Constructor.prototype = _objectCreate(IteratorPrototype, { next: _propertyDesc(1, next) }); - _setToStringTag(Constructor, NAME + ' Iterator'); + Constructor.prototype = _create(IteratorPrototype, { next: createDesc(1, next) }); + setToStringTag(Constructor, NAME + ' Iterator'); }; + + +var _iterCreate$2 = Object.freeze({ + default: _iterCreate, + __moduleExports: _iterCreate +}); + +var $iterCreate = ( _iterCreate$2 && _iterCreate ) || _iterCreate$2; + +var $getPrototypeOf = ( _objectGpo$2 && _objectGpo ) || _objectGpo$2; + 'use strict'; @@ -1004,7 +1473,7 @@ var _iterCreate = function (Constructor, NAME, next) { -var ITERATOR$2 = _wks('iterator'); +var ITERATOR$2 = wks('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; @@ -1013,7 +1482,7 @@ var VALUES = 'values'; var returnThis = function () { return this; }; var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - _iterCreate(Constructor, NAME, next); + $iterCreate(Constructor, NAME, next); var getMethod = function (kind) { if (!BUGGY && kind in proto) return proto[kind]; switch (kind) { @@ -1032,12 +1501,12 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC var methods, key, IteratorPrototype; // Fix native if ($anyNative) { - IteratorPrototype = _objectGpo($anyNative.call(new Base())); + IteratorPrototype = $getPrototypeOf($anyNative.call(new Base())); if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { // Set @@toStringTag to native iterators - _setToStringTag(IteratorPrototype, TAG, true); + setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines - if (!_library && !_has(IteratorPrototype, ITERATOR$2)) _hide(IteratorPrototype, ITERATOR$2, returnThis); + if (!LIBRARY && !has(IteratorPrototype, ITERATOR$2)) hide(IteratorPrototype, ITERATOR$2, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF @@ -1046,12 +1515,12 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC $default = function values() { return $native.call(this); }; } // Define iterator - if ((!_library || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR$2])) { - _hide(proto, ITERATOR$2, $default); + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR$2])) { + hide(proto, ITERATOR$2, $default); } // Plug for library - _iterators[NAME] = $default; - _iterators[TAG] = returnThis; + Iterators[NAME] = $default; + Iterators[TAG] = returnThis; if (DEFAULT) { methods = { values: DEF_VALUES ? $default : getMethod(VALUES), @@ -1059,12 +1528,25 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC entries: $entries }; if (FORCED) for (key in methods) { - if (!(key in proto)) _redefine(proto, key, methods[key]); - } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods); + if (!(key in proto)) redefine(proto, key, methods[key]); + } else $export$1($export$1.P + $export$1.F * (BUGGY || VALUES_BUG), NAME, methods); } return methods; }; + + +var _iterDefine$2 = Object.freeze({ + default: _iterDefine, + __moduleExports: _iterDefine +}); + +var require$$1 = ( _addToUnscopables$2 && _addToUnscopables ) || _addToUnscopables$2; + +var step = ( _iterStep$2 && _iterStep ) || _iterStep$2; + +var $iterDefine = ( _iterDefine$2 && _iterDefine ) || _iterDefine$2; + 'use strict'; @@ -1075,8 +1557,8 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() -var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) { - this._t = _toIobject(iterated); // target +var es6_array_iterator = $iterDefine(Array, 'Array', function (iterated, kind) { + this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind // 22.1.5.2.1 %ArrayIteratorPrototype%.next() @@ -1086,21 +1568,28 @@ var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) { var index = this._i++; if (!O || index >= O.length) { this._t = undefined; - return _iterStep(1); + return step(1); } - if (kind == 'keys') return _iterStep(0, index); - if (kind == 'values') return _iterStep(0, O[index]); - return _iterStep(0, [index, O[index]]); + if (kind == 'keys') return step(0, index); + if (kind == 'values') return step(0, O[index]); + return step(0, [index, O[index]]); }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) -_iterators.Arguments = _iterators.Array; +Iterators.Arguments = Iterators.Array; + +require$$1('keys'); +require$$1('values'); +require$$1('entries'); -_addToUnscopables('keys'); -_addToUnscopables('values'); -_addToUnscopables('entries'); -var ITERATOR$3 = _wks('iterator'); + +var es6_array_iterator$2 = Object.freeze({ + default: es6_array_iterator, + __moduleExports: es6_array_iterator +}); + +var ITERATOR$3 = wks('iterator'); var SAFE_CLOSING = false; try { @@ -1123,19 +1612,25 @@ var _iterDetect = function (exec, skipClosing) { return safe; }; -// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) + + +var _iterDetect$2 = Object.freeze({ + default: _iterDetect, + __moduleExports: _iterDetect +}); + 'use strict'; var _arrayCopyWithin = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { - var O = _toObject(this); - var len = _toLength(O.length); - var to = _toAbsoluteIndex(target, len); - var from = _toAbsoluteIndex(start, len); + var O = toObject(this); + var len = toLength(O.length); + var to = toAbsoluteIndex(target, len); + var from = toAbsoluteIndex(start, len); var end = arguments.length > 2 ? arguments[2] : undefined; - var count = Math.min((end === undefined ? len : _toAbsoluteIndex(end, len)) - from, len - to); + var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to); var inc = 1; if (from < to && to < from + count) { inc = -1; @@ -1150,68 +1645,107 @@ var _arrayCopyWithin = [].copyWithin || function copyWithin(target /* = 0 */, st } return O; }; + + +var _arrayCopyWithin$2 = Object.freeze({ + default: _arrayCopyWithin, + __moduleExports: _arrayCopyWithin +}); + var f$3 = {}.propertyIsEnumerable; var _objectPie = { f: f$3 }; + + +var _objectPie$2 = Object.freeze({ + default: _objectPie, + __moduleExports: _objectPie, + f: f$3 +}); + +var require$$0$6 = ( _objectPie$2 && _objectPie ) || _objectPie$2; + var gOPD = Object.getOwnPropertyDescriptor; -var f$2 = _descriptors ? gOPD : function getOwnPropertyDescriptor(O, P) { - O = _toIobject(O); - P = _toPrimitive(P, true); - if (_ie8DomDefine) try { +var f$2 = require$$0$1 ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { return gOPD(O, P); } catch (e) { /* empty */ } - if (_has(O, P)) return _propertyDesc(!_objectPie.f.call(O, P), O[P]); + if (has(O, P)) return createDesc(!require$$0$6.f.call(O, P), O[P]); }; var _objectGopd = { f: f$2 }; + + +var _objectGopd$2 = Object.freeze({ + default: _objectGopd, + __moduleExports: _objectGopd, + f: f$2 +}); + +var isArrayIter = ( _isArrayIter$2 && _isArrayIter ) || _isArrayIter$2; + +var getIterFn = ( core_getIteratorMethod$2 && core_getIteratorMethod ) || core_getIteratorMethod$2; + +var require$$0$7 = ( _arrayMethods$2 && _arrayMethods ) || _arrayMethods$2; + +var $iterators = ( es6_array_iterator$2 && es6_array_iterator ) || es6_array_iterator$2; + +var require$$0$8 = ( _iterDetect$2 && _iterDetect ) || _iterDetect$2; + +var require$$0$9 = ( _arrayCopyWithin$2 && _arrayCopyWithin ) || _arrayCopyWithin$2; + +var gOPD$1 = ( _objectGopd$2 && _objectGopd ) || _objectGopd$2; + var _typedArray = createCommonjsModule(function (module) { 'use strict'; -if (_descriptors) { - var LIBRARY = _library; - var global = _global; - var fails = _fails; - var $export = _export; - var $typed = _typed; - var $buffer = _typedBuffer; - var ctx = _ctx; - var anInstance = _anInstance; - var propertyDesc = _propertyDesc; - var hide = _hide; - var redefineAll = _redefineAll; - var toInteger = _toInteger; - var toLength = _toLength; - var toIndex = _toIndex; - var toAbsoluteIndex = _toAbsoluteIndex; - var toPrimitive = _toPrimitive; - var has = _has; - var classof$$1 = _classof; - var isObject = _isObject; - var toObject = _toObject; - var isArrayIter$$1 = _isArrayIter; - var create = _objectCreate; - var getPrototypeOf = _objectGpo; - var gOPN = _objectGopn.f; - var getIterFn$$1 = core_getIteratorMethod; - var uid = _uid; - var wks = _wks; - var createArrayMethod = _arrayMethods; - var createArrayIncludes = _arrayIncludes; - var speciesConstructor = _speciesConstructor; - var ArrayIterators = es6_array_iterator; - var Iterators$$1 = _iterators; - var $iterDetect = _iterDetect; - var setSpecies = _setSpecies; - var arrayFill = _arrayFill; - var arrayCopyWithin = _arrayCopyWithin; - var $DP = _objectDp; - var $GOPD = _objectGopd; +if (require$$0$1) { + var LIBRARY$$1 = LIBRARY; + var global = global$1; + var fails = require$$0; + var $export = $export$1; + var $typed = require$$5; + var $buffer = require$$6; + var ctx$$1 = ctx; + var anInstance$$1 = anInstance; + var propertyDesc = createDesc; + var hide$$1 = hide; + var redefineAll = require$$3; + var toInteger$$1 = toInteger; + var toLength$$1 = toLength; + var toIndex = require$$14; + var toAbsoluteIndex$$1 = toAbsoluteIndex; + var toPrimitive$$1 = toPrimitive; + var has$$1 = has; + var classof$$1 = classof; + var isObject$$1 = isObject; + var toObject$$1 = toObject; + var isArrayIter$$1 = isArrayIter; + var create = _create; + var getPrototypeOf = $getPrototypeOf; + var gOPN = require$$0$4.f; + var getIterFn$$1 = getIterFn; + var uid$$1 = uid; + var wks$$1 = wks; + var createArrayMethod = require$$0$7; + var createArrayIncludes = require$$0$2; + var speciesConstructor$$1 = speciesConstructor; + var ArrayIterators = $iterators; + var Iterators$$1 = Iterators; + var $iterDetect = require$$0$8; + var setSpecies = require$$5$1; + var arrayFill = require$$0$5; + var arrayCopyWithin = require$$0$9; + var $DP = $defineProperty; + var $GOPD = gOPD$1; var dP = $DP.f; var gOPD = $GOPD.f; var RangeError = global.RangeError; @@ -1243,17 +1777,17 @@ if (_descriptors) { var arraySlice = ArrayProto.slice; var arrayToString = ArrayProto.toString; var arrayToLocaleString = ArrayProto.toLocaleString; - var ITERATOR = wks('iterator'); - var TAG = wks('toStringTag'); - var TYPED_CONSTRUCTOR = uid('typed_constructor'); - var DEF_CONSTRUCTOR = uid('def_constructor'); + var ITERATOR = wks$$1('iterator'); + var TAG = wks$$1('toStringTag'); + var TYPED_CONSTRUCTOR = uid$$1('typed_constructor'); + var DEF_CONSTRUCTOR = uid$$1('def_constructor'); var ALL_CONSTRUCTORS = $typed.CONSTR; var TYPED_ARRAY = $typed.TYPED; var VIEW = $typed.VIEW; var WRONG_LENGTH = 'Wrong length!'; var $map = createArrayMethod(1, function (O, length) { - return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length); + return allocate(speciesConstructor$$1(O, O[DEF_CONSTRUCTOR]), length); }); var LITTLE_ENDIAN = fails(function () { @@ -1266,24 +1800,24 @@ if (_descriptors) { }); var toOffset = function (it, BYTES) { - var offset = toInteger(it); + var offset = toInteger$$1(it); if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!'); return offset; }; var validate = function (it) { - if (isObject(it) && TYPED_ARRAY in it) return it; + if (isObject$$1(it) && TYPED_ARRAY in it) return it; throw TypeError(it + ' is not a typed array!'); }; var allocate = function (C, length) { - if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) { + if (!(isObject$$1(C) && TYPED_CONSTRUCTOR in C)) { throw TypeError('It is not a typed array constructor!'); } return new C(length); }; var speciesFromList = function (O, list) { - return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list); + return fromList(speciesConstructor$$1(O, O[DEF_CONSTRUCTOR]), list); }; var fromList = function (C, list) { @@ -1299,7 +1833,7 @@ if (_descriptors) { }; var $from = function from(source /* , mapfn, thisArg */) { - var O = toObject(source); + var O = toObject$$1(source); var aLen = arguments.length; var mapfn = aLen > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; @@ -1310,7 +1844,7 @@ if (_descriptors) { values.push(step.value); } O = values; } - if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2); + if (mapping && aLen > 2) mapfn = ctx$$1(mapfn, arguments[2], 2); for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) { result[i] = mapping ? mapfn(O[i], i) : O[i]; } @@ -1397,11 +1931,11 @@ if (_descriptors) { subarray: function subarray(begin, end) { var O = validate(this); var length = O.length; - var $begin = toAbsoluteIndex(begin, length); - return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))( + var $begin = toAbsoluteIndex$$1(begin, length); + return new (speciesConstructor$$1(O, O[DEF_CONSTRUCTOR]))( O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, - toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin) + toLength$$1((end === undefined ? length : toAbsoluteIndex$$1(end, length)) - $begin) ); } }; @@ -1414,8 +1948,8 @@ if (_descriptors) { validate(this); var offset = toOffset(arguments[1], 1); var length = this.length; - var src = toObject(arrayLike); - var len = toLength(src.length); + var src = toObject$$1(arrayLike); + var len = toLength$$1(src.length); var index = 0; if (len + offset > length) throw RangeError(WRONG_LENGTH); while (index < len) this[offset + index] = src[index++]; @@ -1434,27 +1968,27 @@ if (_descriptors) { }; var isTAIndex = function (target, key) { - return isObject(target) + return isObject$$1(target) && target[TYPED_ARRAY] && typeof key != 'symbol' && key in target && String(+key) == String(key); }; var $getDesc = function getOwnPropertyDescriptor(target, key) { - return isTAIndex(target, key = toPrimitive(key, true)) + return isTAIndex(target, key = toPrimitive$$1(key, true)) ? propertyDesc(2, target[key]) : gOPD(target, key); }; var $setDesc = function defineProperty(target, key, desc) { - if (isTAIndex(target, key = toPrimitive(key, true)) - && isObject(desc) - && has(desc, 'value') - && !has(desc, 'get') - && !has(desc, 'set') + if (isTAIndex(target, key = toPrimitive$$1(key, true)) + && isObject$$1(desc) + && has$$1(desc, 'value') + && !has$$1(desc, 'get') + && !has$$1(desc, 'set') // TODO: add validation descriptor w/o calling accessors && !desc.configurable - && (!has(desc, 'writable') || desc.writable) - && (!has(desc, 'enumerable') || desc.enumerable) + && (!has$$1(desc, 'writable') || desc.writable) + && (!has$$1(desc, 'enumerable') || desc.enumerable) ) { target[key] = desc.value; return target; @@ -1479,7 +2013,7 @@ if (_descriptors) { var $TypedArrayPrototype$ = redefineAll({}, proto); redefineAll($TypedArrayPrototype$, $iterators$$1); - hide($TypedArrayPrototype$, ITERATOR, $iterators$$1.values); + hide$$1($TypedArrayPrototype$, ITERATOR, $iterators$$1.values); redefineAll($TypedArrayPrototype$, { slice: $slice, set: $set, @@ -1529,11 +2063,11 @@ if (_descriptors) { }; if (FORCED) { TypedArray = wrapper(function (that, data, $offset, $length) { - anInstance(that, TypedArray, NAME, '_d'); + anInstance$$1(that, TypedArray, NAME, '_d'); var index = 0; var offset = 0; var buffer, byteLength, length, klass; - if (!isObject(data)) { + if (!isObject$$1(data)) { length = toIndex(data); byteLength = length * BYTES; buffer = new $ArrayBuffer(byteLength); @@ -1546,7 +2080,7 @@ if (_descriptors) { byteLength = $len - offset; if (byteLength < 0) throw RangeError(WRONG_LENGTH); } else { - byteLength = toLength($length) * BYTES; + byteLength = toLength$$1($length) * BYTES; if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH); } length = byteLength / BYTES; @@ -1555,7 +2089,7 @@ if (_descriptors) { } else { return $from.call(TypedArray, data); } - hide(that, '_d', { + hide$$1(that, '_d', { b: buffer, o: offset, l: byteLength, @@ -1565,7 +2099,7 @@ if (_descriptors) { while (index < length) addElement(that, index++); }); TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$); - hide(TypedArrayPrototype, 'constructor', TypedArray); + hide$$1(TypedArrayPrototype, 'constructor', TypedArray); } else if (!fails(function () { TypedArray(1); }) || !fails(function () { @@ -1577,11 +2111,11 @@ if (_descriptors) { new TypedArray(iter); // eslint-disable-line no-new }, true)) { TypedArray = wrapper(function (that, data, $offset, $length) { - anInstance(that, TypedArray, NAME); + anInstance$$1(that, TypedArray, NAME); var klass; // `ws` module bug, temporarily remove validation length for Uint8Array // https://github.com/websockets/ws/pull/645 - if (!isObject(data)) return new Base(toIndex(data)); + if (!isObject$$1(data)) return new Base(toIndex(data)); if (data instanceof $ArrayBuffer || (klass = classof$$1(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { return $length !== undefined ? new Base(data, toOffset($offset, BYTES), $length) @@ -1593,19 +2127,19 @@ if (_descriptors) { return $from.call(TypedArray, data); }); arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) { - if (!(key in TypedArray)) hide(TypedArray, key, Base[key]); + if (!(key in TypedArray)) hide$$1(TypedArray, key, Base[key]); }); TypedArray[PROTOTYPE] = TypedArrayPrototype; - if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray; + if (!LIBRARY$$1) TypedArrayPrototype.constructor = TypedArray; } var $nativeIterator = TypedArrayPrototype[ITERATOR]; var CORRECT_ITER_NAME = !!$nativeIterator && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); var $iterator = $iterators$$1.values; - hide(TypedArray, TYPED_CONSTRUCTOR, true); - hide(TypedArrayPrototype, TYPED_ARRAY, NAME); - hide(TypedArrayPrototype, VIEW, true); - hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray); + hide$$1(TypedArray, TYPED_CONSTRUCTOR, true); + hide$$1(TypedArrayPrototype, TYPED_ARRAY, NAME); + hide$$1(TypedArrayPrototype, VIEW, true); + hide$$1(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray); if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) { dP(TypedArrayPrototype, TAG, { @@ -1626,7 +2160,7 @@ if (_descriptors) { of: $of }); - if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES); + if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide$$1(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES); $export($export.P, NAME, proto); @@ -1636,7 +2170,7 @@ if (_descriptors) { $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators$$1); - if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString; + if (!LIBRARY$$1 && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString; $export($export.P + $export.F * fails(function () { new TypedArray(1).slice(); @@ -1649,93 +2183,109 @@ if (_descriptors) { })), NAME, { toLocaleString: $toLocaleString }); Iterators$$1[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator; - if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator); + if (!LIBRARY$$1 && !CORRECT_ITER_NAME) hide$$1(TypedArrayPrototype, ITERATOR, $iterator); }; } else module.exports = function () { /* empty */ }; }); -_typedArray('Int8', 1, function (init) { + + +var _typedArray$2 = Object.freeze({ + default: _typedArray, + __moduleExports: _typedArray +}); + +var require$$0$10 = ( _typedArray$2 && _typedArray ) || _typedArray$2; + +require$$0$10('Int8', 1, function (init) { return function Int8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -_typedArray('Uint8', 1, function (init) { +require$$0$10('Uint8', 1, function (init) { return function Uint8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -_typedArray('Uint8', 1, function (init) { +require$$0$10('Uint8', 1, function (init) { return function Uint8ClampedArray(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }, true); -_typedArray('Int16', 2, function (init) { +require$$0$10('Int16', 2, function (init) { return function Int16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -_typedArray('Uint16', 2, function (init) { +require$$0$10('Uint16', 2, function (init) { return function Uint16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -_typedArray('Int32', 4, function (init) { +require$$0$10('Int32', 4, function (init) { return function Int32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -_typedArray('Uint32', 4, function (init) { +require$$0$10('Uint32', 4, function (init) { return function Uint32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -_typedArray('Float32', 4, function (init) { +require$$0$10('Float32', 4, function (init) { return function Float32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -_typedArray('Float64', 8, function (init) { +require$$0$10('Float64', 8, function (init) { return function Float64Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); -// call something on iterator step with safe closing on error - var _iterCall = function (iterator, fn, value, entries) { try { - return entries ? fn(_anObject(value)[0], value[1]) : fn(value); + return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) } catch (e) { var ret = iterator['return']; - if (ret !== undefined) _anObject(ret.call(iterator)); + if (ret !== undefined) anObject(ret.call(iterator)); throw e; } }; + + +var _iterCall$2 = Object.freeze({ + default: _iterCall, + __moduleExports: _iterCall +}); + +var call = ( _iterCall$2 && _iterCall ) || _iterCall$2; + var _forOf = createCommonjsModule(function (module) { var BREAK = {}; var RETURN = {}; var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { - var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable); - var f = _ctx(fn, that, entries ? 2 : 1); + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); + var f = ctx(fn, that, entries ? 2 : 1); var index = 0; var length, step, iterator, result; if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); // fast case for arrays with default iterator - if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) { - result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { + result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); if (result === BREAK || result === RETURN) return result; } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { - result = _iterCall(iterator, f, step.value, entries); + result = call(iterator, f, step.value, entries); if (result === BREAK || result === RETURN) return result; } }; @@ -1743,16 +2293,23 @@ exports.BREAK = BREAK; exports.RETURN = RETURN; }); + + +var _forOf$2 = Object.freeze({ + default: _forOf, + __moduleExports: _forOf +}); + var _meta = createCommonjsModule(function (module) { -var META = _uid('meta'); +var META = uid('meta'); -var setDesc = _objectDp.f; +var setDesc = $defineProperty.f; var id = 0; var isExtensible = Object.isExtensible || function () { return true; }; -var FREEZE = !_fails(function () { +var FREEZE = !require$$0(function () { return isExtensible(Object.preventExtensions({})); }); var setMeta = function (it) { @@ -1763,8 +2320,8 @@ var setMeta = function (it) { }; var fastKey = function (it, create) { // return primitive with prefix - if (!_isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if (!_has(it, META)) { + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return 'F'; // not necessary to add metadata @@ -1775,7 +2332,7 @@ var fastKey = function (it, create) { } return it[META].i; }; var getWeak = function (it, create) { - if (!_has(it, META)) { + if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return true; // not necessary to add metadata @@ -1787,7 +2344,7 @@ var getWeak = function (it, create) { }; // add metadata on freeze-family methods calling var onFreeze = function (it) { - if (FREEZE && meta.NEED && isExtensible(it) && !_has(it, META)) setMeta(it); + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); return it; }; var meta = module.exports = { @@ -1799,13 +2356,43 @@ var meta = module.exports = { }; }); +var _meta_1 = _meta.KEY; +var _meta_2 = _meta.NEED; +var _meta_3 = _meta.fastKey; +var _meta_4 = _meta.getWeak; +var _meta_5 = _meta.onFreeze; + + +var _meta$2 = Object.freeze({ + default: _meta, + __moduleExports: _meta, + KEY: _meta_1, + NEED: _meta_2, + fastKey: _meta_3, + getWeak: _meta_4, + onFreeze: _meta_5 +}); + var _validateCollection = function (it, TYPE) { - if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); + if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); return it; }; + + +var _validateCollection$2 = Object.freeze({ + default: _validateCollection, + __moduleExports: _validateCollection +}); + +var forOf = ( _forOf$2 && _forOf ) || _forOf$2; + +var require$$0$11 = ( _meta$2 && _meta ) || _meta$2; + +var validate = ( _validateCollection$2 && _validateCollection ) || _validateCollection$2; + 'use strict'; -var dP$1 = _objectDp.f; +var dP$1 = $defineProperty.f; @@ -1815,9 +2402,9 @@ var dP$1 = _objectDp.f; -var fastKey = _meta.fastKey; +var fastKey = require$$0$11.fastKey; -var SIZE = _descriptors ? '_s' : 'size'; +var SIZE = require$$0$1 ? '_s' : 'size'; var getEntry = function (that, key) { // fast case @@ -1833,19 +2420,19 @@ var getEntry = function (that, key) { var _collectionStrong = { getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { - _anInstance(that, C, NAME, '_i'); + anInstance(that, C, NAME, '_i'); that._t = NAME; // collection type - that._i = _objectCreate(null); // index + that._i = _create(null); // index that._f = undefined; // first entry that._l = undefined; // last entry that[SIZE] = 0; // size - if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that); + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); - _redefineAll(C.prototype, { + require$$3(C.prototype, { // 23.1.3.1 Map.prototype.clear() // 23.2.3.2 Set.prototype.clear() clear: function clear() { - for (var that = _validateCollection(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { + for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { entry.r = true; if (entry.p) entry.p = entry.p.n = undefined; delete data[entry.i]; @@ -1856,7 +2443,7 @@ var _collectionStrong = { // 23.1.3.3 Map.prototype.delete(key) // 23.2.3.4 Set.prototype.delete(value) 'delete': function (key) { - var that = _validateCollection(this, NAME); + var that = validate(this, NAME); var entry = getEntry(that, key); if (entry) { var next = entry.n; @@ -1873,8 +2460,8 @@ var _collectionStrong = { // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) forEach: function forEach(callbackfn /* , that = undefined */) { - _validateCollection(this, NAME); - var f = _ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); + validate(this, NAME); + var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); var entry; while (entry = entry ? entry.n : this._f) { f(entry.v, entry.k, this); @@ -1885,12 +2472,12 @@ var _collectionStrong = { // 23.1.3.7 Map.prototype.has(key) // 23.2.3.7 Set.prototype.has(value) has: function has(key) { - return !!getEntry(_validateCollection(this, NAME), key); + return !!getEntry(validate(this, NAME), key); } }); - if (_descriptors) dP$1(C.prototype, 'size', { + if (require$$0$1) dP$1(C.prototype, 'size', { get: function () { - return _validateCollection(this, NAME)[SIZE]; + return validate(this, NAME)[SIZE]; } }); return C; @@ -1922,8 +2509,8 @@ var _collectionStrong = { 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 - _iterDefine(C, NAME, function (iterated, kind) { - this._t = _validateCollection(iterated, NAME); // target + $iterDefine(C, NAME, function (iterated, kind) { + this._t = validate(iterated, NAME); // target this._k = kind; // kind this._l = undefined; // previous }, function () { @@ -1936,32 +2523,43 @@ var _collectionStrong = { if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { // or finish the iteration that._t = undefined; - return _iterStep(1); + return step(1); } // return step by kind - if (kind == 'keys') return _iterStep(0, entry.k); - if (kind == 'values') return _iterStep(0, entry.v); - return _iterStep(0, [entry.k, entry.v]); + if (kind == 'keys') return step(0, entry.k); + if (kind == 'values') return step(0, entry.v); + return step(0, [entry.k, entry.v]); }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); // add [@@species], 23.1.2.2, 23.2.2.2 - _setSpecies(NAME); + require$$5$1(NAME); } }; -// Works with __proto__ only. Old v8 can't work with null proto objects. -/* eslint-disable no-proto */ +var _collectionStrong_1 = _collectionStrong.getConstructor; +var _collectionStrong_2 = _collectionStrong.def; +var _collectionStrong_3 = _collectionStrong.getEntry; +var _collectionStrong_4 = _collectionStrong.setStrong; +var _collectionStrong$2 = Object.freeze({ + default: _collectionStrong, + __moduleExports: _collectionStrong, + getConstructor: _collectionStrong_1, + def: _collectionStrong_2, + getEntry: _collectionStrong_3, + setStrong: _collectionStrong_4 +}); + var check = function (O, proto) { - _anObject(O); - if (!_isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); + anObject(O); + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); }; var _setProto = { set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line function (test, buggy, set) { try { - set = _ctx(Function.call, _objectGopd.f(Object.prototype, '__proto__').set, 2); + set = ctx(Function.call, gOPD$1.f(Object.prototype, '__proto__').set, 2); set(test, []); buggy = !(test instanceof Array); } catch (e) { buggy = true; } @@ -1975,15 +2573,37 @@ var _setProto = { check: check }; -var setPrototypeOf = _setProto.set; +var _setProto_1 = _setProto.set; +var _setProto_2 = _setProto.check; + + +var _setProto$2 = Object.freeze({ + default: _setProto, + __moduleExports: _setProto, + set: _setProto_1, + check: _setProto_2 +}); + +var setProto = ( _setProto$2 && _setProto ) || _setProto$2; + +var setPrototypeOf = setProto.set; var _inheritIfRequired = function (that, target, C) { var S = target.constructor; var P; - if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && _isObject(P) && setPrototypeOf) { + if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { setPrototypeOf(that, P); } return that; }; + + +var _inheritIfRequired$2 = Object.freeze({ + default: _inheritIfRequired, + __moduleExports: _inheritIfRequired +}); + +var inheritIfRequired = ( _inheritIfRequired$2 && _inheritIfRequired ) || _inheritIfRequired$2; + 'use strict'; @@ -1999,41 +2619,41 @@ var _inheritIfRequired = function (that, target, C) { var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { - var Base = _global[NAME]; + var Base = global$1[NAME]; var C = Base; var ADDER = IS_MAP ? 'set' : 'add'; var proto = C && C.prototype; var O = {}; var fixMethod = function (KEY) { var fn = proto[KEY]; - _redefine(proto, KEY, + redefine(proto, KEY, KEY == 'delete' ? function (a) { - return IS_WEAK && !_isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); + return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); } : KEY == 'has' ? function has(a) { - return IS_WEAK && !_isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); + return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); } : KEY == 'get' ? function get(a) { - return IS_WEAK && !_isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); + return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } ); }; - if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () { + if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !require$$0(function () { new C().entries().next(); }))) { // create collection constructor C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); - _redefineAll(C.prototype, methods); - _meta.NEED = true; + require$$3(C.prototype, methods); + require$$0$11.NEED = true; } else { var instance = new C(); // early implementations not supports chaining var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false - var THROWS_ON_PRIMITIVES = _fails(function () { instance.has(1); }); + var THROWS_ON_PRIMITIVES = require$$0(function () { instance.has(1); }); // most early implementations doesn't supports iterables, most modern - not close it correctly - var ACCEPT_ITERABLES = _iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new + var ACCEPT_ITERABLES = require$$0$8(function (iter) { new C(iter); }); // eslint-disable-line no-new // for early implementations -0 and +0 not the same - var BUGGY_ZERO = !IS_WEAK && _fails(function () { + var BUGGY_ZERO = !IS_WEAK && require$$0(function () { // V8 ~ Chromium 42- fails only with 5+ elements var $instance = new C(); var index = 5; @@ -2042,9 +2662,9 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { }); if (!ACCEPT_ITERABLES) { C = wrapper(function (target, iterable) { - _anInstance(target, C, NAME); - var that = _inheritIfRequired(new Base(), target, C); - if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that); + anInstance(target, C, NAME); + var that = inheritIfRequired(new Base(), target, C); + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); return that; }); C.prototype = proto; @@ -2060,35 +2680,46 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { if (IS_WEAK && proto.clear) delete proto.clear; } - _setToStringTag(C, NAME); + setToStringTag(C, NAME); O[NAME] = C; - _export(_export.G + _export.W + _export.F * (C != Base), O); + $export$1($export$1.G + $export$1.W + $export$1.F * (C != Base), O); if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); return C; }; + + +var _collection$2 = Object.freeze({ + default: _collection, + __moduleExports: _collection +}); + +var strong = ( _collectionStrong$2 && _collectionStrong ) || _collectionStrong$2; + +var require$$0$12 = ( _collection$2 && _collection ) || _collection$2; + 'use strict'; var MAP = 'Map'; // 23.1 Map Objects -var es6_map = _collection(MAP, function (get) { +var es6_map = require$$0$12(MAP, function (get) { return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.1.3.6 Map.prototype.get(key) get: function get(key) { - var entry = _collectionStrong.getEntry(_validateCollection(this, MAP), key); + var entry = strong.getEntry(validate(this, MAP), key); return entry && entry.v; }, // 23.1.3.9 Map.prototype.set(key, value) set: function set(key, value) { - return _collectionStrong.def(_validateCollection(this, MAP), key === 0 ? 0 : key, value); + return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); } -}, _collectionStrong, true); +}, strong, true); 'use strict'; @@ -2096,14 +2727,14 @@ var es6_map = _collection(MAP, function (get) { var SET = 'Set'; // 23.2 Set Objects -var es6_set = _collection(SET, function (get) { +var es6_set = require$$0$12(SET, function (get) { return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.2.3.1 Set.prototype.add(value) add: function add(value) { - return _collectionStrong.def(_validateCollection(this, SET), value = value === 0 ? 0 : value, value); + return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value); } -}, _collectionStrong); +}, strong); var f$4 = Object.getOwnPropertySymbols; @@ -2111,6 +2742,16 @@ var _objectGops = { f: f$4 }; + + +var _objectGops$2 = Object.freeze({ + default: _objectGops, + __moduleExports: _objectGops, + f: f$4 +}); + +var gOPS = ( _objectGops$2 && _objectGops ) || _objectGops$2; + 'use strict'; // 19.1.2.1 Object.assign(target, source, ...) @@ -2121,7 +2762,7 @@ var _objectGops = { var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug) -var _objectAssign = !$assign || _fails(function () { +var _objectAssign = !$assign || require$$0(function () { var A = {}; var B = {}; // eslint-disable-next-line no-undef @@ -2131,14 +2772,14 @@ var _objectAssign = !$assign || _fails(function () { K.split('').forEach(function (k) { B[k] = k; }); return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars - var T = _toObject(target); + var T = toObject(target); var aLen = arguments.length; var index = 1; - var getSymbols = _objectGops.f; - var isEnum = _objectPie.f; + var getSymbols = gOPS.f; + var isEnum = require$$0$6.f; while (aLen > index) { - var S = _iobject(arguments[index++]); - var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S); + var S = IObject(arguments[index++]); + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); var length = keys.length; var j = 0; var key; @@ -2146,9 +2787,16 @@ var _objectAssign = !$assign || _fails(function () { } return T; } : $assign; + + +var _objectAssign$2 = Object.freeze({ + default: _objectAssign, + __moduleExports: _objectAssign +}); + 'use strict'; -var getWeak = _meta.getWeak; +var getWeak = require$$0$11.getWeak; @@ -2156,8 +2804,8 @@ var getWeak = _meta.getWeak; -var arrayFind = _arrayMethods(5); -var arrayFindIndex = _arrayMethods(6); +var arrayFind = require$$0$7(5); +var arrayFindIndex = require$$0$7(6); var id$1 = 0; // fallback for uncaught frozen keys @@ -2197,34 +2845,34 @@ UncaughtFrozenStore.prototype = { var _collectionWeak = { getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { - _anInstance(that, C, NAME, '_i'); + anInstance(that, C, NAME, '_i'); that._t = NAME; // collection type that._i = id$1++; // collection id that._l = undefined; // leak store for uncaught frozen objects - if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that); + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); - _redefineAll(C.prototype, { + require$$3(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) 'delete': function (key) { - if (!_isObject(key)) return false; + if (!isObject(key)) return false; var data = getWeak(key); - if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME))['delete'](key); - return data && _has(data, this._i) && delete data[this._i]; + if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); + return data && has(data, this._i) && delete data[this._i]; }, // 23.3.3.4 WeakMap.prototype.has(key) // 23.4.3.4 WeakSet.prototype.has(value) - has: function has(key) { - if (!_isObject(key)) return false; + has: function has$$1(key) { + if (!isObject(key)) return false; var data = getWeak(key); - if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME)).has(key); - return data && _has(data, this._i); + if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); + return data && has(data, this._i); } }); return C; }, def: function (that, key, value) { - var data = getWeak(_anObject(key), true); + var data = getWeak(anObject(key), true); if (data === true) uncaughtFrozenStore(that).set(key, value); else data[that._i] = value; return that; @@ -2232,9 +2880,26 @@ var _collectionWeak = { ufstore: uncaughtFrozenStore }; +var _collectionWeak_1 = _collectionWeak.getConstructor; +var _collectionWeak_2 = _collectionWeak.def; +var _collectionWeak_3 = _collectionWeak.ufstore; + + +var _collectionWeak$2 = Object.freeze({ + default: _collectionWeak, + __moduleExports: _collectionWeak, + getConstructor: _collectionWeak_1, + def: _collectionWeak_2, + ufstore: _collectionWeak_3 +}); + +var require$$0$13 = ( _objectAssign$2 && _objectAssign ) || _objectAssign$2; + +var weak = ( _collectionWeak$2 && _collectionWeak ) || _collectionWeak$2; + var es6_weakMap = createCommonjsModule(function (module) { 'use strict'; -var each = _arrayMethods(0); +var each = require$$0$7(0); @@ -2243,9 +2908,9 @@ var each = _arrayMethods(0); var WEAK_MAP = 'WeakMap'; -var getWeak = _meta.getWeak; +var getWeak = require$$0$11.getWeak; var isExtensible = Object.isExtensible; -var uncaughtFrozenStore = _collectionWeak.ufstore; +var uncaughtFrozenStore = weak.ufstore; var tmp = {}; var InternalMap; @@ -2258,32 +2923,32 @@ var wrapper = function (get) { var methods = { // 23.3.3.3 WeakMap.prototype.get(key) get: function get(key) { - if (_isObject(key)) { + if (isObject(key)) { var data = getWeak(key); - if (data === true) return uncaughtFrozenStore(_validateCollection(this, WEAK_MAP)).get(key); + if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); return data ? data[this._i] : undefined; } }, // 23.3.3.5 WeakMap.prototype.set(key, value) set: function set(key, value) { - return _collectionWeak.def(_validateCollection(this, WEAK_MAP), key, value); + return weak.def(validate(this, WEAK_MAP), key, value); } }; // 23.3 WeakMap Objects -var $WeakMap = module.exports = _collection(WEAK_MAP, wrapper, methods, _collectionWeak, true, true); +var $WeakMap = module.exports = require$$0$12(WEAK_MAP, wrapper, methods, weak, true, true); // IE11 WeakMap frozen keys fix -if (_fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { - InternalMap = _collectionWeak.getConstructor(wrapper, WEAK_MAP); - _objectAssign(InternalMap.prototype, methods); - _meta.NEED = true; +if (require$$0(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { + InternalMap = weak.getConstructor(wrapper, WEAK_MAP); + require$$0$13(InternalMap.prototype, methods); + require$$0$11.NEED = true; each(['delete', 'has', 'get', 'set'], function (key) { var proto = $WeakMap.prototype; var method = proto[key]; - _redefine(proto, key, function (a, b) { + redefine(proto, key, function (a, b) { // store frozen objects on internal weakmap shim - if (_isObject(a) && !isExtensible(a)) { + if (isObject(a) && !isExtensible(a)) { if (!this._f) this._f = new InternalMap(); var result = this._f[key](a, b); return key == 'set' ? this : result; @@ -2300,28 +2965,24 @@ if (_fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp var WEAK_SET = 'WeakSet'; // 23.4 WeakSet Objects -_collection(WEAK_SET, function (get) { +require$$0$12(WEAK_SET, function (get) { return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) add: function add(value) { - return _collectionWeak.def(_validateCollection(this, WEAK_SET), value, true); + return weak.def(validate(this, WEAK_SET), value, true); } -}, _collectionWeak, false, true); - -// 26.1.1 Reflect.apply(target, thisArgument, argumentsList) +}, weak, false, true); - - -var rApply = (_global.Reflect || {}).apply; +var rApply = (global$1.Reflect || {}).apply; var fApply = Function.apply; // MS Edge argumentsList argument is optional -_export(_export.S + _export.F * !_fails(function () { +$export$1($export$1.S + $export$1.F * !require$$0(function () { rApply(function () { /* empty */ }); }), 'Reflect', { apply: function apply(target, thisArgument, argumentsList) { - var T = _aFunction(target); - var L = _anObject(argumentsList); + var T = aFunction(target); + var L = anObject(argumentsList); return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L); } }); @@ -2343,6 +3004,15 @@ var _invoke = function (fn, args, that) { } return fn.apply(that, args); }; + + +var _invoke$2 = Object.freeze({ + default: _invoke, + __moduleExports: _invoke +}); + +var invoke = ( _invoke$2 && _invoke ) || _invoke$2; + 'use strict'; @@ -2359,41 +3029,42 @@ var construct = function (F, len, args) { }; var _bind = Function.bind || function bind(that /* , ...args */) { - var fn = _aFunction(this); + var fn = aFunction(this); var partArgs = arraySlice.call(arguments, 1); var bound = function (/* args... */) { var args = partArgs.concat(arraySlice.call(arguments)); - return this instanceof bound ? construct(fn, args.length, args) : _invoke(fn, args, that); + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); }; - if (_isObject(fn.prototype)) bound.prototype = fn.prototype; + if (isObject(fn.prototype)) bound.prototype = fn.prototype; return bound; }; -// 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) - - - +var _bind$2 = Object.freeze({ + default: _bind, + __moduleExports: _bind +}); +var bind = ( _bind$2 && _bind ) || _bind$2; -var rConstruct = (_global.Reflect || {}).construct; +var rConstruct = (global$1.Reflect || {}).construct; // MS Edge supports only 2 arguments and argumentsList argument is optional // FF Nightly sets third argument as `new.target`, but does not create `this` from it -var NEW_TARGET_BUG = _fails(function () { +var NEW_TARGET_BUG = require$$0(function () { function F() { /* empty */ } return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); }); -var ARGS_BUG = !_fails(function () { +var ARGS_BUG = !require$$0(function () { rConstruct(function () { /* empty */ }); }); -_export(_export.S + _export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { +$export$1($export$1.S + $export$1.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { construct: function construct(Target, args /* , newTarget */) { - _aFunction(Target); - _anObject(args); - var newTarget = arguments.length < 3 ? Target : _aFunction(arguments[2]); + aFunction(Target); + anObject(args); + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); if (Target == newTarget) { // w/o altered newTarget, optimization for 0-4 arguments @@ -2407,33 +3078,26 @@ _export(_export.S + _export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { // w/o altered newTarget, lot of arguments case var $args = [null]; $args.push.apply($args, args); - return new (_bind.apply(Target, $args))(); + return new (bind.apply(Target, $args))(); } // with altered newTarget, not support built-in constructors var proto = newTarget.prototype; - var instance = _objectCreate(_isObject(proto) ? proto : Object.prototype); + var instance = _create(isObject(proto) ? proto : Object.prototype); var result = Function.apply.call(Target, instance, args); - return _isObject(result) ? result : instance; + return isObject(result) ? result : instance; } }); -// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) - - - - - -// MS Edge has broken Reflect.defineProperty - throwing instead of returning false -_export(_export.S + _export.F * _fails(function () { +$export$1($export$1.S + $export$1.F * require$$0(function () { // eslint-disable-next-line no-undef - Reflect.defineProperty(_objectDp.f({}, 1, { value: 1 }), 1, { value: 2 }); + Reflect.defineProperty($defineProperty.f({}, 1, { value: 1 }), 1, { value: 2 }); }), 'Reflect', { defineProperty: function defineProperty(target, propertyKey, attributes) { - _anObject(target); - propertyKey = _toPrimitive(propertyKey, true); - _anObject(attributes); + anObject(target); + propertyKey = toPrimitive(propertyKey, true); + anObject(attributes); try { - _objectDp.f(target, propertyKey, attributes); + $defineProperty.f(target, propertyKey, attributes); return true; } catch (e) { return false; @@ -2441,107 +3105,80 @@ _export(_export.S + _export.F * _fails(function () { } }); -// 26.1.4 Reflect.deleteProperty(target, propertyKey) - -var gOPD$2 = _objectGopd.f; +var gOPD$2 = gOPD$1.f; -_export(_export.S, 'Reflect', { +$export$1($export$1.S, 'Reflect', { deleteProperty: function deleteProperty(target, propertyKey) { - var desc = gOPD$2(_anObject(target), propertyKey); + var desc = gOPD$2(anObject(target), propertyKey); return desc && !desc.configurable ? false : delete target[propertyKey]; } }); -// 26.1.6 Reflect.get(target, propertyKey [, receiver]) - - - - - - - function get(target, propertyKey /* , receiver */) { var receiver = arguments.length < 3 ? target : arguments[2]; var desc, proto; - if (_anObject(target) === receiver) return target[propertyKey]; - if (desc = _objectGopd.f(target, propertyKey)) return _has(desc, 'value') + if (anObject(target) === receiver) return target[propertyKey]; + if (desc = gOPD$1.f(target, propertyKey)) return has(desc, 'value') ? desc.value : desc.get !== undefined ? desc.get.call(receiver) : undefined; - if (_isObject(proto = _objectGpo(target))) return get(proto, propertyKey, receiver); + if (isObject(proto = $getPrototypeOf(target))) return get(proto, propertyKey, receiver); } -_export(_export.S, 'Reflect', { get: get }); +$export$1($export$1.S, 'Reflect', { get: get }); -// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) - - - - -_export(_export.S, 'Reflect', { +$export$1($export$1.S, 'Reflect', { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { - return _objectGopd.f(_anObject(target), propertyKey); + return gOPD$1.f(anObject(target), propertyKey); } }); -// 26.1.8 Reflect.getPrototypeOf(target) - - - - -_export(_export.S, 'Reflect', { +$export$1($export$1.S, 'Reflect', { getPrototypeOf: function getPrototypeOf(target) { - return _objectGpo(_anObject(target)); + return $getPrototypeOf(anObject(target)); } }); -// 26.1.9 Reflect.has(target, propertyKey) - - -_export(_export.S, 'Reflect', { +$export$1($export$1.S, 'Reflect', { has: function has(target, propertyKey) { return propertyKey in target; } }); -// 26.1.10 Reflect.isExtensible(target) - - var $isExtensible = Object.isExtensible; -_export(_export.S, 'Reflect', { +$export$1($export$1.S, 'Reflect', { isExtensible: function isExtensible(target) { - _anObject(target); + anObject(target); return $isExtensible ? $isExtensible(target) : true; } }); -// all object keys, includes non-enumerable and symbols - - - -var Reflect$1 = _global.Reflect; +var Reflect$1 = global$1.Reflect; var _ownKeys = Reflect$1 && Reflect$1.ownKeys || function ownKeys(it) { - var keys = _objectGopn.f(_anObject(it)); - var getSymbols = _objectGops.f; + var keys = require$$0$4.f(anObject(it)); + var getSymbols = gOPS.f; return getSymbols ? keys.concat(getSymbols(it)) : keys; }; -// 26.1.11 Reflect.ownKeys(target) -_export(_export.S, 'Reflect', { ownKeys: _ownKeys }); +var _ownKeys$2 = Object.freeze({ + default: _ownKeys, + __moduleExports: _ownKeys +}); -// 26.1.12 Reflect.preventExtensions(target) +var ownKeys = ( _ownKeys$2 && _ownKeys ) || _ownKeys$2; +$export$1($export$1.S, 'Reflect', { ownKeys: ownKeys }); var $preventExtensions = Object.preventExtensions; -_export(_export.S, 'Reflect', { +$export$1($export$1.S, 'Reflect', { preventExtensions: function preventExtensions(target) { - _anObject(target); + anObject(target); try { if ($preventExtensions) $preventExtensions(target); return true; @@ -2551,47 +3188,33 @@ _export(_export.S, 'Reflect', { } }); -// 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) - - - - - - - - - function set(target, propertyKey, V /* , receiver */) { var receiver = arguments.length < 4 ? target : arguments[3]; - var ownDesc = _objectGopd.f(_anObject(target), propertyKey); + var ownDesc = gOPD$1.f(anObject(target), propertyKey); var existingDescriptor, proto; if (!ownDesc) { - if (_isObject(proto = _objectGpo(target))) { + if (isObject(proto = $getPrototypeOf(target))) { return set(proto, propertyKey, V, receiver); } - ownDesc = _propertyDesc(0); + ownDesc = createDesc(0); } - if (_has(ownDesc, 'value')) { - if (ownDesc.writable === false || !_isObject(receiver)) return false; - existingDescriptor = _objectGopd.f(receiver, propertyKey) || _propertyDesc(0); + if (has(ownDesc, 'value')) { + if (ownDesc.writable === false || !isObject(receiver)) return false; + existingDescriptor = gOPD$1.f(receiver, propertyKey) || createDesc(0); existingDescriptor.value = V; - _objectDp.f(receiver, propertyKey, existingDescriptor); + $defineProperty.f(receiver, propertyKey, existingDescriptor); return true; } return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true); } -_export(_export.S, 'Reflect', { set: set }); - -// 26.1.14 Reflect.setPrototypeOf(target, proto) - +$export$1($export$1.S, 'Reflect', { set: set }); - -if (_setProto) _export(_export.S, 'Reflect', { +if (setProto) $export$1($export$1.S, 'Reflect', { setPrototypeOf: function setPrototypeOf(target, proto) { - _setProto.check(target, proto); + setProto.check(target, proto); try { - _setProto.set(target, proto); + setProto.set(target, proto); return true; } catch (e) { return false; @@ -2599,11 +3222,11 @@ if (_setProto) _export(_export.S, 'Reflect', { } }); -var process$1 = _global.process; -var setTask = _global.setImmediate; -var clearTask = _global.clearImmediate; -var MessageChannel = _global.MessageChannel; -var Dispatch = _global.Dispatch; +var process$1 = global$1.process; +var setTask = global$1.setImmediate; +var clearTask = global$1.clearImmediate; +var MessageChannel = global$1.MessageChannel; +var Dispatch = global$1.Dispatch; var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; @@ -2630,7 +3253,7 @@ if (!setTask || !clearTask) { while (arguments.length > i) args.push(arguments[i++]); queue[++counter] = function () { // eslint-disable-next-line no-new-func - _invoke(typeof fn == 'function' ? fn : Function(fn), args); + invoke(typeof fn == 'function' ? fn : Function(fn), args); }; defer(counter); return counter; @@ -2639,40 +3262,40 @@ if (!setTask || !clearTask) { delete queue[id]; }; // Node.js 0.8- - if (_cof(process$1) == 'process') { + if (cof(process$1) == 'process') { defer = function (id) { - process$1.nextTick(_ctx(run, id, 1)); + process$1.nextTick(ctx(run, id, 1)); }; // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { defer = function (id) { - Dispatch.now(_ctx(run, id, 1)); + Dispatch.now(ctx(run, id, 1)); }; // Browsers with MessageChannel, includes WebWorkers } else if (MessageChannel) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; - defer = _ctx(port.postMessage, port, 1); + defer = ctx(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) { + } else if (global$1.addEventListener && typeof postMessage == 'function' && !global$1.importScripts) { defer = function (id) { - _global.postMessage(id + '', '*'); + global$1.postMessage(id + '', '*'); }; - _global.addEventListener('message', listener, false); + global$1.addEventListener('message', listener, false); // IE8- - } else if (ONREADYSTATECHANGE in _domCreate('script')) { + } else if (ONREADYSTATECHANGE in cel('script')) { defer = function (id) { - _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () { - _html.removeChild(this); + html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { + html.removeChild(this); run.call(id); }; }; // Rest old browsers } else { defer = function (id) { - setTimeout(_ctx(run, id, 1), 0); + setTimeout(ctx(run, id, 1), 0); }; } } @@ -2681,11 +3304,24 @@ var _task = { clear: clearTask }; -var macrotask = _task.set; -var Observer = _global.MutationObserver || _global.WebKitMutationObserver; -var process$2 = _global.process; -var Promise$1 = _global.Promise; -var isNode$1 = _cof(process$2) == 'process'; +var _task_1 = _task.set; +var _task_2 = _task.clear; + + +var _task$2 = Object.freeze({ + default: _task, + __moduleExports: _task, + set: _task_1, + clear: _task_2 +}); + +var $task = ( _task$2 && _task ) || _task$2; + +var macrotask = $task.set; +var Observer = global$1.MutationObserver || global$1.WebKitMutationObserver; +var process$2 = global$1.process; +var Promise$1 = global$1.Promise; +var isNode$1 = cof(process$2) == 'process'; var _microtask = function () { var head, last, notify; @@ -2713,7 +3349,7 @@ var _microtask = function () { process$2.nextTick(flush); }; // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 - } else if (Observer && !(_global.navigator && _global.navigator.standalone)) { + } else if (Observer && !(global$1.navigator && global$1.navigator.standalone)) { var toggle = true; var node = document.createTextNode(''); new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new @@ -2735,7 +3371,7 @@ var _microtask = function () { } else { notify = function () { // strange IE + webpack dev server bug - use .call(global) - macrotask.call(_global, flush); + macrotask.call(global$1, flush); }; } @@ -2749,6 +3385,13 @@ var _microtask = function () { }; }; + + +var _microtask$2 = Object.freeze({ + default: _microtask, + __moduleExports: _microtask +}); + 'use strict'; // 25.4.1.5 NewPromiseCapability(C) @@ -2760,8 +3403,8 @@ function PromiseCapability(C) { resolve = $$resolve; reject = $$reject; }); - this.resolve = _aFunction(resolve); - this.reject = _aFunction(reject); + this.resolve = aFunction(resolve); + this.reject = aFunction(reject); } var f$5 = function (C) { @@ -2772,6 +3415,14 @@ var _newPromiseCapability = { f: f$5 }; + + +var _newPromiseCapability$2 = Object.freeze({ + default: _newPromiseCapability, + __moduleExports: _newPromiseCapability, + f: f$5 +}); + var _perform = function (exec) { try { return { e: false, v: exec() }; @@ -2780,15 +3431,37 @@ var _perform = function (exec) { } }; + + +var _perform$2 = Object.freeze({ + default: _perform, + __moduleExports: _perform +}); + +var newPromiseCapability$1 = ( _newPromiseCapability$2 && _newPromiseCapability ) || _newPromiseCapability$2; + var _promiseResolve = function (C, x) { - _anObject(C); - if (_isObject(x) && x.constructor === C) return x; - var promiseCapability = _newPromiseCapability.f(C); + anObject(C); + if (isObject(x) && x.constructor === C) return x; + var promiseCapability = newPromiseCapability$1.f(C); var resolve = promiseCapability.resolve; resolve(x); return promiseCapability.promise; }; + + +var _promiseResolve$2 = Object.freeze({ + default: _promiseResolve, + __moduleExports: _promiseResolve +}); + +var require$$1$1 = ( _microtask$2 && _microtask ) || _microtask$2; + +var perform = ( _perform$2 && _perform ) || _perform$2; + +var promiseResolve = ( _promiseResolve$2 && _promiseResolve ) || _promiseResolve$2; + 'use strict'; @@ -2800,28 +3473,28 @@ var _promiseResolve = function (C, x) { -var task = _task.set; -var microtask = _microtask(); +var task = $task.set; +var microtask = require$$1$1(); var PROMISE = 'Promise'; -var TypeError$1 = _global.TypeError; -var process = _global.process; -var $Promise = _global[PROMISE]; -var isNode = _classof(process) == 'process'; +var TypeError$1 = global$1.TypeError; +var process = global$1.process; +var $Promise = global$1[PROMISE]; +var isNode = classof(process) == 'process'; var empty = function () { /* empty */ }; var Internal; var newGenericPromiseCapability; var OwnPromiseCapability; var Wrapper; -var newPromiseCapability = newGenericPromiseCapability = _newPromiseCapability.f; +var newPromiseCapability = newGenericPromiseCapability = newPromiseCapability$1.f; var USE_NATIVE = !!function () { try { // correct subclassing with @@species support var promise = $Promise.resolve(1); - var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) { + var FakePromise = (promise.constructor = {})[wks('species')] = function (exec) { exec(empty, empty); }; // unhandled rejections tracking support, NodeJS Promise without it fails @@species test @@ -2832,7 +3505,7 @@ var USE_NATIVE = !!function () { // helpers var isThenable = function (it) { var then; - return _isObject(it) && typeof (then = it.then) == 'function' ? then : false; + return isObject(it) && typeof (then = it.then) == 'function' ? then : false; }; var notify = function (promise, isReject) { if (promise._n) return; @@ -2877,17 +3550,17 @@ var notify = function (promise, isReject) { }); }; var onUnhandled = function (promise) { - task.call(_global, function () { + task.call(global$1, function () { var value = promise._v; var unhandled = isUnhandled(promise); var result, handler, console; if (unhandled) { - result = _perform(function () { + result = perform(function () { if (isNode) { process.emit('unhandledRejection', value, promise); - } else if (handler = _global.onunhandledrejection) { + } else if (handler = global$1.onunhandledrejection) { handler({ promise: promise, reason: value }); - } else if ((console = _global.console) && console.error) { + } else if ((console = global$1.console) && console.error) { console.error('Unhandled promise rejection', value); } }); @@ -2901,11 +3574,11 @@ var isUnhandled = function (promise) { return promise._h !== 1 && (promise._a || promise._c).length === 0; }; var onHandleUnhandled = function (promise) { - task.call(_global, function () { + task.call(global$1, function () { var handler; if (isNode) { process.emit('rejectionHandled', promise); - } else if (handler = _global.onrejectionhandled) { + } else if (handler = global$1.onrejectionhandled) { handler({ promise: promise, reason: promise._v }); } }); @@ -2932,7 +3605,7 @@ var $resolve = function (value) { microtask(function () { var wrapper = { _w: promise, _d: false }; // wrap try { - then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1)); + then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); } catch (e) { $reject.call(wrapper, e); } @@ -2951,11 +3624,11 @@ var $resolve = function (value) { if (!USE_NATIVE) { // 25.4.3.1 Promise(executor) $Promise = function Promise(executor) { - _anInstance(this, $Promise, PROMISE, '_h'); - _aFunction(executor); + anInstance(this, $Promise, PROMISE, '_h'); + aFunction(executor); Internal.call(this); try { - executor(_ctx($resolve, this, 1), _ctx($reject, this, 1)); + executor(ctx($resolve, this, 1), ctx($reject, this, 1)); } catch (err) { $reject.call(this, err); } @@ -2970,10 +3643,10 @@ if (!USE_NATIVE) { this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; - Internal.prototype = _redefineAll($Promise.prototype, { + Internal.prototype = require$$3($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected) { - var reaction = newPromiseCapability(_speciesConstructor(this, $Promise)); + var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; reaction.fail = typeof onRejected == 'function' && onRejected; reaction.domain = isNode ? process.domain : undefined; @@ -2990,23 +3663,23 @@ if (!USE_NATIVE) { OwnPromiseCapability = function () { var promise = new Internal(); this.promise = promise; - this.resolve = _ctx($resolve, promise, 1); - this.reject = _ctx($reject, promise, 1); + this.resolve = ctx($resolve, promise, 1); + this.reject = ctx($reject, promise, 1); }; - _newPromiseCapability.f = newPromiseCapability = function (C) { + newPromiseCapability$1.f = newPromiseCapability = function (C) { return C === $Promise || C === Wrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); }; } -_export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise }); -_setToStringTag($Promise, PROMISE); -_setSpecies(PROMISE); -Wrapper = _core[PROMISE]; +$export$1($export$1.G + $export$1.W + $export$1.F * !USE_NATIVE, { Promise: $Promise }); +setToStringTag($Promise, PROMISE); +require$$5$1(PROMISE); +Wrapper = core[PROMISE]; // statics -_export(_export.S + _export.F * !USE_NATIVE, PROMISE, { +$export$1($export$1.S + $export$1.F * !USE_NATIVE, PROMISE, { // 25.4.4.5 Promise.reject(r) reject: function reject(r) { var capability = newPromiseCapability(this); @@ -3015,13 +3688,13 @@ _export(_export.S + _export.F * !USE_NATIVE, PROMISE, { return capability.promise; } }); -_export(_export.S + _export.F * (_library || !USE_NATIVE), PROMISE, { +$export$1($export$1.S + $export$1.F * (LIBRARY || !USE_NATIVE), PROMISE, { // 25.4.4.6 Promise.resolve(x) resolve: function resolve(x) { - return _promiseResolve(_library && this === Wrapper ? $Promise : this, x); + return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); } }); -_export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) { +$export$1($export$1.S + $export$1.F * !(USE_NATIVE && require$$0$8(function (iter) { $Promise.all(iter)['catch'](empty); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) @@ -3030,11 +3703,11 @@ _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) { var capability = newPromiseCapability(C); var resolve = capability.resolve; var reject = capability.reject; - var result = _perform(function () { + var result = perform(function () { var values = []; var index = 0; var remaining = 1; - _forOf(iterable, false, function (promise) { + forOf(iterable, false, function (promise) { var $index = index++; var alreadyCalled = false; values.push(undefined); @@ -3056,8 +3729,8 @@ _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) { var C = this; var capability = newPromiseCapability(C); var reject = capability.reject; - var result = _perform(function () { - _forOf(iterable, false, function (promise) { + var result = perform(function () { + forOf(iterable, false, function (promise) { C.resolve(promise).then(capability.resolve, reject); }); }); @@ -3066,37 +3739,55 @@ _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) { } }); -var f$6 = _wks; +var f$6 = wks; var _wksExt = { f: f$6 }; -var defineProperty = _objectDp.f; + + +var _wksExt$2 = Object.freeze({ + default: _wksExt, + __moduleExports: _wksExt, + f: f$6 +}); + +var wksExt = ( _wksExt$2 && _wksExt ) || _wksExt$2; + +var defineProperty = $defineProperty.f; var _wksDefine = function (name) { - var $Symbol = _core.Symbol || (_core.Symbol = _library ? {} : _global.Symbol || {}); - if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: _wksExt.f(name) }); + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global$1.Symbol || {}); + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); }; -// all enumerable object keys, includes symbols +var _wksDefine$2 = Object.freeze({ + default: _wksDefine, + __moduleExports: _wksDefine +}); var _enumKeys = function (it) { - var result = _objectKeys(it); - var getSymbols = _objectGops.f; + var result = getKeys(it); + var getSymbols = gOPS.f; if (getSymbols) { var symbols = getSymbols(it); - var isEnum = _objectPie.f; + var isEnum = require$$0$6.f; var i = 0; var key; while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); } return result; }; -// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -var gOPN$1 = _objectGopn.f; + +var _enumKeys$2 = Object.freeze({ + default: _enumKeys, + __moduleExports: _enumKeys +}); + +var gOPN$1 = require$$0$4.f; var toString$1 = {}.toString; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames @@ -3111,13 +3802,27 @@ var getWindowNames = function (it) { }; var f$7 = function getOwnPropertyNames(it) { - return windowNames && toString$1.call(it) == '[object Window]' ? getWindowNames(it) : gOPN$1(_toIobject(it)); + return windowNames && toString$1.call(it) == '[object Window]' ? getWindowNames(it) : gOPN$1(toIObject(it)); }; var _objectGopnExt = { f: f$7 }; + + +var _objectGopnExt$2 = Object.freeze({ + default: _objectGopnExt, + __moduleExports: _objectGopnExt, + f: f$7 +}); + +var wksDefine = ( _wksDefine$2 && _wksDefine ) || _wksDefine$2; + +var enumKeys = ( _enumKeys$2 && _enumKeys ) || _enumKeys$2; + +var require$$1$2 = ( _objectGopnExt$2 && _objectGopnExt ) || _objectGopnExt$2; + 'use strict'; // ECMAScript 6 symbols shim @@ -3125,7 +3830,7 @@ var _objectGopnExt = { -var META = _meta.KEY; +var META = require$$0$11.KEY; @@ -3145,28 +3850,28 @@ var META = _meta.KEY; -var gOPD$3 = _objectGopd.f; -var dP$2 = _objectDp.f; -var gOPN = _objectGopnExt.f; -var $Symbol = _global.Symbol; -var $JSON = _global.JSON; +var gOPD$3 = gOPD$1.f; +var dP$2 = $defineProperty.f; +var gOPN = require$$1$2.f; +var $Symbol = global$1.Symbol; +var $JSON = global$1.JSON; var _stringify = $JSON && $JSON.stringify; var PROTOTYPE$2 = 'prototype'; -var HIDDEN = _wks('_hidden'); -var TO_PRIMITIVE = _wks('toPrimitive'); +var HIDDEN = wks('_hidden'); +var TO_PRIMITIVE = wks('toPrimitive'); var isEnum = {}.propertyIsEnumerable; -var SymbolRegistry = _shared('symbol-registry'); -var AllSymbols = _shared('symbols'); -var OPSymbols = _shared('op-symbols'); +var SymbolRegistry = shared$1('symbol-registry'); +var AllSymbols = shared$1('symbols'); +var OPSymbols = shared$1('op-symbols'); var ObjectProto$1 = Object[PROTOTYPE$2]; var USE_NATIVE$1 = typeof $Symbol == 'function'; -var QObject = _global.QObject; +var QObject = global$1.QObject; // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 var setter = !QObject || !QObject[PROTOTYPE$2] || !QObject[PROTOTYPE$2].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 -var setSymbolDesc = _descriptors && _fails(function () { - return _objectCreate(dP$2({}, 'a', { +var setSymbolDesc = require$$0$1 && require$$0(function () { + return _create(dP$2({}, 'a', { get: function () { return dP$2(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (it, key, D) { @@ -3177,7 +3882,7 @@ var setSymbolDesc = _descriptors && _fails(function () { } : dP$2; var wrap = function (tag) { - var sym = AllSymbols[tag] = _objectCreate($Symbol[PROTOTYPE$2]); + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE$2]); sym._k = tag; return sym; }; @@ -3190,22 +3895,22 @@ var isSymbol = USE_NATIVE$1 && typeof $Symbol.iterator == 'symbol' ? function (i var $defineProperty$1 = function defineProperty(it, key, D) { if (it === ObjectProto$1) $defineProperty$1(OPSymbols, key, D); - _anObject(it); - key = _toPrimitive(key, true); - _anObject(D); - if (_has(AllSymbols, key)) { + anObject(it); + key = toPrimitive(key, true); + anObject(D); + if (has(AllSymbols, key)) { if (!D.enumerable) { - if (!_has(it, HIDDEN)) dP$2(it, HIDDEN, _propertyDesc(1, {})); + if (!has(it, HIDDEN)) dP$2(it, HIDDEN, createDesc(1, {})); it[HIDDEN][key] = true; } else { - if (_has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; - D = _objectCreate(D, { enumerable: _propertyDesc(0, false) }); + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; + D = _create(D, { enumerable: createDesc(0, false) }); } return setSymbolDesc(it, key, D); } return dP$2(it, key, D); }; var $defineProperties = function defineProperties(it, P) { - _anObject(it); - var keys = _enumKeys(P = _toIobject(P)); + anObject(it); + var keys = enumKeys(P = toIObject(P)); var i = 0; var l = keys.length; var key; @@ -3213,38 +3918,38 @@ var $defineProperties = function defineProperties(it, P) { return it; }; var $create = function create(it, P) { - return P === undefined ? _objectCreate(it) : $defineProperties(_objectCreate(it), P); + return P === undefined ? _create(it) : $defineProperties(_create(it), P); }; var $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, key = _toPrimitive(key, true)); - if (this === ObjectProto$1 && _has(AllSymbols, key) && !_has(OPSymbols, key)) return false; - return E || !_has(this, key) || !_has(AllSymbols, key) || _has(this, HIDDEN) && this[HIDDEN][key] ? E : true; + var E = isEnum.call(this, key = toPrimitive(key, true)); + if (this === ObjectProto$1 && has(AllSymbols, key) && !has(OPSymbols, key)) return false; + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - it = _toIobject(it); - key = _toPrimitive(key, true); - if (it === ObjectProto$1 && _has(AllSymbols, key) && !_has(OPSymbols, key)) return; + it = toIObject(it); + key = toPrimitive(key, true); + if (it === ObjectProto$1 && has(AllSymbols, key) && !has(OPSymbols, key)) return; var D = gOPD$3(it, key); - if (D && _has(AllSymbols, key) && !(_has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; return D; }; var $getOwnPropertyNames = function getOwnPropertyNames(it) { - var names = gOPN(_toIobject(it)); + var names = gOPN(toIObject(it)); var result = []; var i = 0; var key; while (names.length > i) { - if (!_has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); } return result; }; var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { var IS_OP = it === ObjectProto$1; - var names = gOPN(IS_OP ? OPSymbols : _toIobject(it)); + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); var result = []; var i = 0; var key; while (names.length > i) { - if (_has(AllSymbols, key = names[i++]) && (IS_OP ? _has(ObjectProto$1, key) : true)) result.push(AllSymbols[key]); + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto$1, key) : true)) result.push(AllSymbols[key]); } return result; }; @@ -3252,47 +3957,47 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { if (!USE_NATIVE$1) { $Symbol = function Symbol() { if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = _uid(arguments.length > 0 ? arguments[0] : undefined); + var tag = uid(arguments.length > 0 ? arguments[0] : undefined); var $set = function (value) { if (this === ObjectProto$1) $set.call(OPSymbols, value); - if (_has(this, HIDDEN) && _has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; - setSymbolDesc(this, tag, _propertyDesc(1, value)); + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; + setSymbolDesc(this, tag, createDesc(1, value)); }; - if (_descriptors && setter) setSymbolDesc(ObjectProto$1, tag, { configurable: true, set: $set }); + if (require$$0$1 && setter) setSymbolDesc(ObjectProto$1, tag, { configurable: true, set: $set }); return wrap(tag); }; - _redefine($Symbol[PROTOTYPE$2], 'toString', function toString() { + redefine($Symbol[PROTOTYPE$2], 'toString', function toString() { return this._k; }); - _objectGopd.f = $getOwnPropertyDescriptor; - _objectDp.f = $defineProperty$1; - _objectGopn.f = _objectGopnExt.f = $getOwnPropertyNames; - _objectPie.f = $propertyIsEnumerable; - _objectGops.f = $getOwnPropertySymbols; + gOPD$1.f = $getOwnPropertyDescriptor; + $defineProperty.f = $defineProperty$1; + require$$0$4.f = require$$1$2.f = $getOwnPropertyNames; + require$$0$6.f = $propertyIsEnumerable; + gOPS.f = $getOwnPropertySymbols; - if (_descriptors && !_library) { - _redefine(ObjectProto$1, 'propertyIsEnumerable', $propertyIsEnumerable, true); + if (require$$0$1 && !LIBRARY) { + redefine(ObjectProto$1, 'propertyIsEnumerable', $propertyIsEnumerable, true); } - _wksExt.f = function (name) { - return wrap(_wks(name)); + wksExt.f = function (name) { + return wrap(wks(name)); }; } -_export(_export.G + _export.W + _export.F * !USE_NATIVE$1, { Symbol: $Symbol }); +$export$1($export$1.G + $export$1.W + $export$1.F * !USE_NATIVE$1, { Symbol: $Symbol }); for (var es6Symbols = ( // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' -).split(','), j = 0; es6Symbols.length > j;)_wks(es6Symbols[j++]); +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); -for (var wellKnownSymbols = _objectKeys(_wks.store), k = 0; wellKnownSymbols.length > k;) _wksDefine(wellKnownSymbols[k++]); +for (var wellKnownSymbols = getKeys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); -_export(_export.S + _export.F * !USE_NATIVE$1, 'Symbol', { +$export$1($export$1.S + $export$1.F * !USE_NATIVE$1, 'Symbol', { // 19.4.2.1 Symbol.for(key) 'for': function (key) { - return _has(SymbolRegistry, key += '') + return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); }, @@ -3305,7 +4010,7 @@ _export(_export.S + _export.F * !USE_NATIVE$1, 'Symbol', { useSimple: function () { setter = false; } }); -_export(_export.S + _export.F * !USE_NATIVE$1, 'Object', { +$export$1($export$1.S + $export$1.F * !USE_NATIVE$1, 'Object', { // 19.1.2.2 Object.create(O [, Properties]) create: $create, // 19.1.2.4 Object.defineProperty(O, P, Attributes) @@ -3321,7 +4026,7 @@ _export(_export.S + _export.F * !USE_NATIVE$1, 'Object', { }); // 24.3.2 JSON.stringify(value [, replacer [, space]]) -$JSON && _export(_export.S + _export.F * (!USE_NATIVE$1 || _fails(function () { +$JSON && $export$1($export$1.S + $export$1.F * (!USE_NATIVE$1 || require$$0(function () { var S = $Symbol(); // MS Edge converts symbol values to JSON as {} // WebKit converts symbol values to JSON as null @@ -3334,8 +4039,8 @@ $JSON && _export(_export.S + _export.F * (!USE_NATIVE$1 || _fails(function () { var replacer, $replacer; while (arguments.length > i) args.push(arguments[i++]); $replacer = replacer = args[1]; - if (!_isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!_isArray(replacer)) replacer = function (key, value) { + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined + if (!isArray(replacer)) replacer = function (key, value) { if (typeof $replacer == 'function') value = $replacer.call(this, key, value); if (!isSymbol(value)) return value; }; @@ -3345,121 +4050,97 @@ $JSON && _export(_export.S + _export.F * (!USE_NATIVE$1 || _fails(function () { }); // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) -$Symbol[PROTOTYPE$2][TO_PRIMITIVE] || _hide($Symbol[PROTOTYPE$2], TO_PRIMITIVE, $Symbol[PROTOTYPE$2].valueOf); +$Symbol[PROTOTYPE$2][TO_PRIMITIVE] || hide($Symbol[PROTOTYPE$2], TO_PRIMITIVE, $Symbol[PROTOTYPE$2].valueOf); // 19.4.3.5 Symbol.prototype[@@toStringTag] -_setToStringTag($Symbol, 'Symbol'); +setToStringTag($Symbol, 'Symbol'); // 20.2.1.9 Math[@@toStringTag] -_setToStringTag(Math, 'Math', true); +setToStringTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] -_setToStringTag(_global.JSON, 'JSON', true); - -// most Object methods by ES6 should accept primitives - - +setToStringTag(global$1.JSON, 'JSON', true); var _objectSap = function (KEY, exec) { - var fn = (_core.Object || {})[KEY] || Object[KEY]; + var fn = (core.Object || {})[KEY] || Object[KEY]; var exp = {}; exp[KEY] = exec(fn); - _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp); + $export$1($export$1.S + $export$1.F * require$$0(function () { fn(1); }), 'Object', exp); }; -// 19.1.2.5 Object.freeze(O) -var meta = _meta.onFreeze; -_objectSap('freeze', function ($freeze) { +var _objectSap$2 = Object.freeze({ + default: _objectSap, + __moduleExports: _objectSap +}); + +var require$$0$14 = ( _objectSap$2 && _objectSap ) || _objectSap$2; + +var meta = require$$0$11.onFreeze; + +require$$0$14('freeze', function ($freeze) { return function freeze(it) { - return $freeze && _isObject(it) ? $freeze(meta(it)) : it; + return $freeze && isObject(it) ? $freeze(meta(it)) : it; }; }); -// 19.1.2.17 Object.seal(O) +var meta$1 = require$$0$11.onFreeze; -var meta$1 = _meta.onFreeze; - -_objectSap('seal', function ($seal) { +require$$0$14('seal', function ($seal) { return function seal(it) { - return $seal && _isObject(it) ? $seal(meta$1(it)) : it; + return $seal && isObject(it) ? $seal(meta$1(it)) : it; }; }); -// 19.1.2.15 Object.preventExtensions(O) - -var meta$2 = _meta.onFreeze; +var meta$2 = require$$0$11.onFreeze; -_objectSap('preventExtensions', function ($preventExtensions) { +require$$0$14('preventExtensions', function ($preventExtensions) { return function preventExtensions(it) { - return $preventExtensions && _isObject(it) ? $preventExtensions(meta$2(it)) : it; + return $preventExtensions && isObject(it) ? $preventExtensions(meta$2(it)) : it; }; }); -// 19.1.2.12 Object.isFrozen(O) - - -_objectSap('isFrozen', function ($isFrozen) { +require$$0$14('isFrozen', function ($isFrozen) { return function isFrozen(it) { - return _isObject(it) ? $isFrozen ? $isFrozen(it) : false : true; + return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true; }; }); -// 19.1.2.13 Object.isSealed(O) - - -_objectSap('isSealed', function ($isSealed) { +require$$0$14('isSealed', function ($isSealed) { return function isSealed(it) { - return _isObject(it) ? $isSealed ? $isSealed(it) : false : true; + return isObject(it) ? $isSealed ? $isSealed(it) : false : true; }; }); -// 19.1.2.11 Object.isExtensible(O) - - -_objectSap('isExtensible', function ($isExtensible) { +require$$0$14('isExtensible', function ($isExtensible) { return function isExtensible(it) { - return _isObject(it) ? $isExtensible ? $isExtensible(it) : true : false; + return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false; }; }); -// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) - -var $getOwnPropertyDescriptor$1 = _objectGopd.f; +var $getOwnPropertyDescriptor$1 = gOPD$1.f; -_objectSap('getOwnPropertyDescriptor', function () { +require$$0$14('getOwnPropertyDescriptor', function () { return function getOwnPropertyDescriptor(it, key) { - return $getOwnPropertyDescriptor$1(_toIobject(it), key); + return $getOwnPropertyDescriptor$1(toIObject(it), key); }; }); -// 19.1.2.9 Object.getPrototypeOf(O) - - - -_objectSap('getPrototypeOf', function () { +require$$0$14('getPrototypeOf', function () { return function getPrototypeOf(it) { - return _objectGpo(_toObject(it)); + return $getPrototypeOf(toObject(it)); }; }); -// 19.1.2.14 Object.keys(O) - - - -_objectSap('keys', function () { +require$$0$14('keys', function () { return function keys(it) { - return _objectKeys(_toObject(it)); + return getKeys(toObject(it)); }; }); -// 19.1.2.7 Object.getOwnPropertyNames(O) -_objectSap('getOwnPropertyNames', function () { - return _objectGopnExt.f; +require$$0$14('getOwnPropertyNames', function () { + return require$$1$2.f; }); -// 19.1.3.1 Object.assign(target, source) - - -_export(_export.S + _export.F, 'Object', { assign: _objectAssign }); +$export$1($export$1.S + $export$1.F, 'Object', { assign: require$$0$13 }); // 7.2.9 SameValue(x, y) var _sameValue = Object.is || function is(x, y) { @@ -3467,17 +4148,24 @@ var _sameValue = Object.is || function is(x, y) { return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; -// 19.1.3.10 Object.is(value1, value2) -_export(_export.S, 'Object', { is: _sameValue }); -var dP$3 = _objectDp.f; +var _sameValue$2 = Object.freeze({ + default: _sameValue, + __moduleExports: _sameValue +}); + +var require$$0$15 = ( _sameValue$2 && _sameValue ) || _sameValue$2; + +$export$1($export$1.S, 'Object', { is: require$$0$15 }); + +var dP$3 = $defineProperty.f; var FProto = Function.prototype; var nameRE = /^\s*function ([^ (]*)/; var NAME = 'name'; // 19.2.4.2 name -NAME in FProto || _descriptors && dP$3(FProto, NAME, { +NAME in FProto || require$$0$1 && dP$3(FProto, NAME, { configurable: true, get: function () { try { @@ -3488,11 +4176,11 @@ NAME in FProto || _descriptors && dP$3(FProto, NAME, { } }); -_export(_export.S, 'String', { +$export$1($export$1.S, 'String', { // 21.1.2.4 String.raw(callSite, ...substitutions) raw: function raw(callSite) { - var tpl = _toIobject(callSite.raw); - var len = _toLength(tpl.length); + var tpl = toIObject(callSite.raw); + var len = toLength(tpl.length); var aLen = arguments.length; var res = []; var i = 0; @@ -3507,7 +4195,7 @@ var fromCharCode = String.fromCharCode; var $fromCodePoint = String.fromCodePoint; // length should be 1, old FF problem -_export(_export.S + _export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { +$export$1($export$1.S + $export$1.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { // 21.1.2.2 String.fromCodePoint(...codePoints) fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars var res = []; @@ -3516,7 +4204,7 @@ _export(_export.S + _export.F * (!!$fromCodePoint && $fromCodePoint.length != 1) var code; while (aLen > i) { code = +arguments[i++]; - if (_toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); + if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); res.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) @@ -3525,12 +4213,10 @@ _export(_export.S + _export.F * (!!$fromCodePoint && $fromCodePoint.length != 1) } }); -// true -> String#at -// false -> String#codePointAt var _stringAt = function (TO_STRING) { return function (that, pos) { - var s = String(_defined(that)); - var i = _toInteger(pos); + var s = String(defined(that)); + var i = toInteger(pos); var l = s.length; var a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; @@ -3541,10 +4227,19 @@ var _stringAt = function (TO_STRING) { }; }; + + +var _stringAt$2 = Object.freeze({ + default: _stringAt, + __moduleExports: _stringAt +}); + +var require$$0$16 = ( _stringAt$2 && _stringAt ) || _stringAt$2; + 'use strict'; -var $at = _stringAt(false); -_export(_export.P, 'String', { +var $at = require$$0$16(false); +$export$1($export$1.P, 'String', { // 21.1.3.3 String.prototype.codePointAt(pos) codePointAt: function codePointAt(pos) { return $at(this, pos); @@ -3556,38 +4251,56 @@ _export(_export.P, 'String', { var _stringRepeat = function repeat(count) { - var str = String(_defined(this)); + var str = String(defined(this)); var res = ''; - var n = _toInteger(count); + var n = toInteger(count); if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; return res; }; -_export(_export.P, 'String', { - // 21.1.3.13 String.prototype.repeat(count) - repeat: _stringRepeat + + +var _stringRepeat$2 = Object.freeze({ + default: _stringRepeat, + __moduleExports: _stringRepeat }); -// 7.2.8 IsRegExp(argument) +var repeat = ( _stringRepeat$2 && _stringRepeat ) || _stringRepeat$2; +$export$1($export$1.P, 'String', { + // 21.1.3.13 String.prototype.repeat(count) + repeat: repeat +}); -var MATCH = _wks('match'); +var MATCH = wks('match'); var _isRegexp = function (it) { var isRegExp; - return _isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : _cof(it) == 'RegExp'); + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); }; -// helper for String#{startsWith, endsWith, includes} +var _isRegexp$2 = Object.freeze({ + default: _isRegexp, + __moduleExports: _isRegexp +}); + +var require$$1$3 = ( _isRegexp$2 && _isRegexp ) || _isRegexp$2; var _stringContext = function (that, searchString, NAME) { - if (_isRegexp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); - return String(_defined(that)); + if (require$$1$3(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); + return String(defined(that)); }; -var MATCH$1 = _wks('match'); + + +var _stringContext$2 = Object.freeze({ + default: _stringContext, + __moduleExports: _stringContext +}); + +var MATCH$1 = wks('match'); var _failsIsRegexp = function (KEY) { var re = /./; try { @@ -3600,7 +4313,17 @@ var _failsIsRegexp = function (KEY) { } return true; }; -// 21.1.3.18 String.prototype.startsWith(searchString [, position ]) + + +var _failsIsRegexp$2 = Object.freeze({ + default: _failsIsRegexp, + __moduleExports: _failsIsRegexp +}); + +var context = ( _stringContext$2 && _stringContext ) || _stringContext$2; + +var require$$0$17 = ( _failsIsRegexp$2 && _failsIsRegexp ) || _failsIsRegexp$2; + 'use strict'; @@ -3608,10 +4331,10 @@ var _failsIsRegexp = function (KEY) { var STARTS_WITH = 'startsWith'; var $startsWith = ''[STARTS_WITH]; -_export(_export.P + _export.F * _failsIsRegexp(STARTS_WITH), 'String', { +$export$1($export$1.P + $export$1.F * require$$0$17(STARTS_WITH), 'String', { startsWith: function startsWith(searchString /* , position = 0 */) { - var that = _stringContext(this, searchString, STARTS_WITH); - var index = _toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); + var that = context(this, searchString, STARTS_WITH); + var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); var search = String(searchString); return $startsWith ? $startsWith.call(that, search, index) @@ -3619,7 +4342,6 @@ _export(_export.P + _export.F * _failsIsRegexp(STARTS_WITH), 'String', { } }); -// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) 'use strict'; @@ -3627,12 +4349,12 @@ _export(_export.P + _export.F * _failsIsRegexp(STARTS_WITH), 'String', { var ENDS_WITH = 'endsWith'; var $endsWith = ''[ENDS_WITH]; -_export(_export.P + _export.F * _failsIsRegexp(ENDS_WITH), 'String', { +$export$1($export$1.P + $export$1.F * require$$0$17(ENDS_WITH), 'String', { endsWith: function endsWith(searchString /* , endPosition = @length */) { - var that = _stringContext(this, searchString, ENDS_WITH); + var that = context(this, searchString, ENDS_WITH); var endPosition = arguments.length > 1 ? arguments[1] : undefined; - var len = _toLength(that.length); - var end = endPosition === undefined ? len : Math.min(_toLength(endPosition), len); + var len = toLength(that.length); + var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); var search = String(searchString); return $endsWith ? $endsWith.call(that, search, end) @@ -3640,15 +4362,14 @@ _export(_export.P + _export.F * _failsIsRegexp(ENDS_WITH), 'String', { } }); -// 21.1.3.7 String.prototype.includes(searchString, position = 0) 'use strict'; var INCLUDES = 'includes'; -_export(_export.P + _export.F * _failsIsRegexp(INCLUDES), 'String', { +$export$1($export$1.P + $export$1.F * require$$0$17(INCLUDES), 'String', { includes: function includes(searchString /* , position = 0 */) { - return !!~_stringContext(this, searchString, INCLUDES) + return !!~context(this, searchString, INCLUDES) .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); } }); @@ -3657,7 +4378,7 @@ _export(_export.P + _export.F * _failsIsRegexp(INCLUDES), 'String', { // 21.2.5.3 get RegExp.prototype.flags var _flags = function () { - var that = _anObject(this); + var that = anObject(this); var result = ''; if (that.global) result += 'g'; if (that.ignoreCase) result += 'i'; @@ -3667,10 +4388,18 @@ var _flags = function () { return result; }; -// 21.2.5.3 get RegExp.prototype.flags() -if (_descriptors && /./g.flags != 'g') _objectDp.f(RegExp.prototype, 'flags', { + + +var _flags$2 = Object.freeze({ + default: _flags, + __moduleExports: _flags +}); + +var require$$2 = ( _flags$2 && _flags ) || _flags$2; + +if (require$$0$1 && /./g.flags != 'g') $defineProperty.f(RegExp.prototype, 'flags', { configurable: true, - get: _flags + get: require$$2 }); 'use strict'; @@ -3681,17 +4410,17 @@ if (_descriptors && /./g.flags != 'g') _objectDp.f(RegExp.prototype, 'flags', { var _fixReWks = function (KEY, length, exec) { - var SYMBOL = _wks(KEY); - var fns = exec(_defined, SYMBOL, ''[KEY]); + var SYMBOL = wks(KEY); + var fns = exec(defined, SYMBOL, ''[KEY]); var strfn = fns[0]; var rxfn = fns[1]; - if (_fails(function () { + if (require$$0(function () { var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; })) { - _redefine(String.prototype, KEY, strfn); - _hide(RegExp.prototype, SYMBOL, length == 2 + redefine(String.prototype, KEY, strfn); + hide(RegExp.prototype, SYMBOL, length == 2 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) // 21.2.5.11 RegExp.prototype[@@split](string, limit) ? function (string, arg) { return rxfn.call(string, this, arg); } @@ -3702,8 +4431,16 @@ var _fixReWks = function (KEY, length, exec) { } }; -// @@match logic -_fixReWks('match', 1, function (defined, MATCH, $match) { + + +var _fixReWks$2 = Object.freeze({ + default: _fixReWks, + __moduleExports: _fixReWks +}); + +var require$$0$18 = ( _fixReWks$2 && _fixReWks ) || _fixReWks$2; + +require$$0$18('match', 1, function (defined, MATCH, $match) { // 21.1.3.11 String.prototype.match(regexp) return [function match(regexp) { 'use strict'; @@ -3713,8 +4450,7 @@ _fixReWks('match', 1, function (defined, MATCH, $match) { }, $match]; }); -// @@replace logic -_fixReWks('replace', 2, function (defined, REPLACE, $replace) { +require$$0$18('replace', 2, function (defined, REPLACE, $replace) { // 21.1.3.14 String.prototype.replace(searchValue, replaceValue) return [function replace(searchValue, replaceValue) { 'use strict'; @@ -3726,10 +4462,9 @@ _fixReWks('replace', 2, function (defined, REPLACE, $replace) { }, $replace]; }); -// @@split logic -_fixReWks('split', 2, function (defined, SPLIT, $split) { +require$$0$18('split', 2, function (defined, SPLIT, $split) { 'use strict'; - var isRegExp = _isRegexp; + var isRegExp = require$$1$3; var _split = $split; var $push = [].push; var $SPLIT = 'split'; @@ -3798,8 +4533,7 @@ _fixReWks('split', 2, function (defined, SPLIT, $split) { }, $split]; }); -// @@search logic -_fixReWks('search', 1, function (defined, SEARCH, $search) { +require$$0$18('search', 1, function (defined, SEARCH, $search) { // 21.1.3.15 String.prototype.search(regexp) return [function search(regexp) { 'use strict'; @@ -3814,10 +4548,19 @@ _fixReWks('search', 1, function (defined, SEARCH, $search) { var _createProperty = function (object, index, value) { - if (index in object) _objectDp.f(object, index, _propertyDesc(0, value)); + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); else object[index] = value; }; + + +var _createProperty$2 = Object.freeze({ + default: _createProperty, + __moduleExports: _createProperty +}); + +var createProperty = ( _createProperty$2 && _createProperty ) || _createProperty$2; + 'use strict'; @@ -3828,27 +4571,27 @@ var _createProperty = function (object, index, value) { -_export(_export.S + _export.F * !_iterDetect(function (iter) { }), 'Array', { +$export$1($export$1.S + $export$1.F * !require$$0$8(function (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); + var O = toObject(arrayLike); var C = typeof this == 'function' ? this : Array; var aLen = arguments.length; var mapfn = aLen > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; var index = 0; - var iterFn = core_getIteratorMethod(O); + var iterFn = getIterFn(O); var length, result, step, iterator; - if (mapping) mapfn = _ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); // if object isn't iterable or it's array with default iterator - use simple case - if (iterFn != undefined && !(C == Array && _isArrayIter(iterFn))) { + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { - _createProperty(result, index, mapping ? _iterCall(iterator, mapfn, [step.value, index], true) : step.value); + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); } } else { - length = _toLength(O.length); + length = toLength(O.length); for (result = new C(length); length > index; index++) { - _createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); } } result.length = index; @@ -3861,7 +4604,7 @@ _export(_export.S + _export.F * !_iterDetect(function (iter) { }), 'Array', { // WebKit Array.of isn't generic -_export(_export.S + _export.F * _fails(function () { +$export$1($export$1.S + $export$1.F * require$$0(function () { function F() { /* empty */ } return !(Array.of.call(F) instanceof F); }), 'Array', { @@ -3870,126 +4613,113 @@ _export(_export.S + _export.F * _fails(function () { var index = 0; var aLen = arguments.length; var result = new (typeof this == 'function' ? this : Array)(aLen); - while (aLen > index) _createProperty(result, index, arguments[index++]); + while (aLen > index) createProperty(result, index, arguments[index++]); result.length = aLen; return result; } }); -// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) - +$export$1($export$1.P, 'Array', { copyWithin: require$$0$9 }); -_export(_export.P, 'Array', { copyWithin: _arrayCopyWithin }); - -_addToUnscopables('copyWithin'); +require$$1('copyWithin'); 'use strict'; // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) -var $find = _arrayMethods(5); +var $find = require$$0$7(5); var KEY = 'find'; var forced = true; // Shouldn't skip holes if (KEY in []) Array(1)[KEY](function () { forced = false; }); -_export(_export.P + _export.F * forced, 'Array', { +$export$1($export$1.P + $export$1.F * forced, 'Array', { find: function find(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -_addToUnscopables(KEY); +require$$1(KEY); 'use strict'; // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) -var $find$1 = _arrayMethods(6); +var $find$1 = require$$0$7(6); var KEY$1 = 'findIndex'; var forced$1 = true; // Shouldn't skip holes if (KEY$1 in []) Array(1)[KEY$1](function () { forced$1 = false; }); -_export(_export.P + _export.F * forced$1, 'Array', { +$export$1($export$1.P + $export$1.F * forced$1, 'Array', { findIndex: function findIndex(callbackfn /* , that = undefined */) { return $find$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); -_addToUnscopables(KEY$1); - -// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) - +require$$1(KEY$1); -_export(_export.P, 'Array', { fill: _arrayFill }); +$export$1($export$1.P, 'Array', { fill: require$$0$5 }); -_addToUnscopables('fill'); +require$$1('fill'); -// 20.1.2.2 Number.isFinite(number) +var _isFinite = global$1.isFinite; -var _isFinite = _global.isFinite; - -_export(_export.S, 'Number', { +$export$1($export$1.S, 'Number', { isFinite: function isFinite(it) { return typeof it == 'number' && _isFinite(it); } }); -// 20.1.2.3 Number.isInteger(number) - var floor$1 = Math.floor; var _isInteger = function isInteger(it) { - return !_isObject(it) && isFinite(it) && floor$1(it) === it; + return !isObject(it) && isFinite(it) && floor$1(it) === it; }; -// 20.1.2.3 Number.isInteger(number) -_export(_export.S, 'Number', { isInteger: _isInteger }); +var _isInteger$2 = Object.freeze({ + default: _isInteger, + __moduleExports: _isInteger +}); -// 20.1.2.5 Number.isSafeInteger(number) +var isInteger = ( _isInteger$2 && _isInteger ) || _isInteger$2; +$export$1($export$1.S, 'Number', { isInteger: isInteger }); var abs = Math.abs; -_export(_export.S, 'Number', { +$export$1($export$1.S, 'Number', { isSafeInteger: function isSafeInteger(number) { - return _isInteger(number) && abs(number) <= 0x1fffffffffffff; + return isInteger(number) && abs(number) <= 0x1fffffffffffff; } }); -// 20.1.2.4 Number.isNaN(number) - - -_export(_export.S, 'Number', { +$export$1($export$1.S, 'Number', { isNaN: function isNaN(number) { // eslint-disable-next-line no-self-compare return number != number; } }); -// 20.1.2.1 Number.EPSILON - +$export$1($export$1.S, 'Number', { EPSILON: Math.pow(2, -52) }); -_export(_export.S, 'Number', { EPSILON: Math.pow(2, -52) }); +$export$1($export$1.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); -// 20.1.2.10 Number.MIN_SAFE_INTEGER - - -_export(_export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); - -// 20.1.2.6 Number.MAX_SAFE_INTEGER - - -_export(_export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); +$export$1($export$1.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); // 20.2.2.20 Math.log1p(x) var _mathLog1p = Math.log1p || function log1p(x) { return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); }; -// 20.2.2.3 Math.acosh(x) +var _mathLog1p$2 = Object.freeze({ + default: _mathLog1p, + __moduleExports: _mathLog1p +}); + +var require$$0$19 = ( _mathLog1p$2 && _mathLog1p ) || _mathLog1p$2; + var sqrt = Math.sqrt; var $acosh = Math.acosh; -_export(_export.S + _export.F * !($acosh +$export$1($export$1.S + $export$1.F * !($acosh // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 && Math.floor($acosh(Number.MAX_VALUE)) == 710 // Tor Browser bug: Math.acosh(Infinity) -> NaN @@ -3998,12 +4728,10 @@ _export(_export.S + _export.F * !($acosh acosh: function acosh(x) { return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? Math.log(x) + Math.LN2 - : _mathLog1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); + : require$$0$19(x - 1 + sqrt(x - 1) * sqrt(x + 1)); } }); -// 20.2.2.5 Math.asinh(x) - var $asinh = Math.asinh; function asinh(x) { @@ -4011,14 +4739,12 @@ function asinh(x) { } // Tor Browser bug: Math.asinh(0) -> -0 -_export(_export.S + _export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); - -// 20.2.2.7 Math.atanh(x) +$export$1($export$1.S + $export$1.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); var $atanh = Math.atanh; // Tor Browser bug: Math.atanh(-0) -> 0 -_export(_export.S + _export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { +$export$1($export$1.S + $export$1.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { atanh: function atanh(x) { return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2; } @@ -4030,30 +4756,30 @@ var _mathSign = Math.sign || function sign(x) { return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; -// 20.2.2.9 Math.cbrt(x) +var _mathSign$2 = Object.freeze({ + default: _mathSign, + __moduleExports: _mathSign +}); + +var require$$0$20 = ( _mathSign$2 && _mathSign ) || _mathSign$2; -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { cbrt: function cbrt(x) { - return _mathSign(x = +x) * Math.pow(Math.abs(x), 1 / 3); + return require$$0$20(x = +x) * Math.pow(Math.abs(x), 1 / 3); } }); -// 20.2.2.11 Math.clz32(x) - - -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { clz32: function clz32(x) { return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32; } }); -// 20.2.2.12 Math.cosh(x) - var exp = Math.exp; -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { cosh: function cosh(x) { return (exp(x = +x) + exp(-x)) / 2; } @@ -4070,13 +4796,16 @@ var _mathExpm1 = (!$expm1 return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; } : $expm1; -// 20.2.2.14 Math.expm1(x) +var _mathExpm1$2 = Object.freeze({ + default: _mathExpm1, + __moduleExports: _mathExpm1 +}); -_export(_export.S + _export.F * (_mathExpm1 != Math.expm1), 'Math', { expm1: _mathExpm1 }); +var expm1 = ( _mathExpm1$2 && _mathExpm1 ) || _mathExpm1$2; -// 20.2.2.16 Math.fround(x) +$export$1($export$1.S + $export$1.F * (expm1 != Math.expm1), 'Math', { expm1: expm1 }); var pow = Math.pow; var EPSILON = pow(2, -52); @@ -4090,7 +4819,7 @@ var roundTiesToEven = function (n) { var _mathFround = Math.fround || function fround(x) { var $abs = Math.abs(x); - var $sign = _mathSign(x); + var $sign = require$$0$20(x); var a, result; if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32; a = (1 + EPSILON32 / EPSILON) * $abs; @@ -4100,16 +4829,20 @@ var _mathFround = Math.fround || function fround(x) { return $sign * result; }; -// 20.2.2.16 Math.fround(x) -_export(_export.S, 'Math', { fround: _mathFround }); +var _mathFround$2 = Object.freeze({ + default: _mathFround, + __moduleExports: _mathFround +}); + +var require$$0$21 = ( _mathFround$2 && _mathFround ) || _mathFround$2; -// 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) +$export$1($export$1.S, 'Math', { fround: require$$0$21 }); var abs$1 = Math.abs; -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars var sum = 0; var i = 0; @@ -4131,12 +4864,10 @@ _export(_export.S, 'Math', { } }); -// 20.2.2.18 Math.imul(x, y) - var $imul = Math.imul; // some WebKit versions fails with big numbers, some has wrong arity -_export(_export.S + _export.F * _fails(function () { +$export$1($export$1.S + $export$1.F * require$$0(function () { return $imul(0xffffffff, 5) != -5 || $imul.length != 2; }), 'Math', { imul: function imul(x, y) { @@ -4149,67 +4880,46 @@ _export(_export.S + _export.F * _fails(function () { } }); -// 20.2.2.20 Math.log1p(x) - - -_export(_export.S, 'Math', { log1p: _mathLog1p }); - -// 20.2.2.21 Math.log10(x) +$export$1($export$1.S, 'Math', { log1p: require$$0$19 }); - -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { log10: function log10(x) { return Math.log(x) * Math.LOG10E; } }); -// 20.2.2.22 Math.log2(x) - - -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { log2: function log2(x) { return Math.log(x) / Math.LN2; } }); -// 20.2.2.28 Math.sign(x) - - -_export(_export.S, 'Math', { sign: _mathSign }); - -// 20.2.2.30 Math.sinh(x) - +$export$1($export$1.S, 'Math', { sign: require$$0$20 }); var exp$1 = Math.exp; // V8 near Chromium 38 has a problem with very small numbers -_export(_export.S + _export.F * _fails(function () { +$export$1($export$1.S + $export$1.F * require$$0(function () { return !Math.sinh(-2e-17) != -2e-17; }), 'Math', { sinh: function sinh(x) { return Math.abs(x = +x) < 1 - ? (_mathExpm1(x) - _mathExpm1(-x)) / 2 + ? (expm1(x) - expm1(-x)) / 2 : (exp$1(x - 1) - exp$1(-x - 1)) * (Math.E / 2); } }); -// 20.2.2.33 Math.tanh(x) - - var exp$2 = Math.exp; -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { tanh: function tanh(x) { - var a = _mathExpm1(x = +x); - var b = _mathExpm1(-x); + var a = expm1(x = +x); + var b = expm1(-x); return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp$2(x) + exp$2(-x)); } }); -// 20.2.2.34 Math.trunc(x) - - -_export(_export.S, 'Math', { +$export$1($export$1.S, 'Math', { trunc: function trunc(it) { return (it > 0 ? Math.floor : Math.ceil)(it); } @@ -4218,21 +4928,21 @@ _export(_export.S, 'Math', { 'use strict'; // https://github.com/tc39/Array.prototype.includes -var $includes = _arrayIncludes(true); +var $includes = require$$0$2(true); -_export(_export.P, 'Array', { +$export$1($export$1.P, 'Array', { includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); -_addToUnscopables('includes'); +require$$1('includes'); -var isEnum$1 = _objectPie.f; +var isEnum$1 = require$$0$6.f; var _objectToArray = function (isEntries) { return function (it) { - var O = _toIobject(it); - var keys = _objectKeys(O); + var O = toIObject(it); + var keys = getKeys(O); var length = keys.length; var i = 0; var result = []; @@ -4243,70 +4953,81 @@ var _objectToArray = function (isEntries) { }; }; -// https://github.com/tc39/proposal-object-values-entries -var $values = _objectToArray(false); -_export(_export.S, 'Object', { +var _objectToArray$2 = Object.freeze({ + default: _objectToArray, + __moduleExports: _objectToArray +}); + +var require$$0$22 = ( _objectToArray$2 && _objectToArray ) || _objectToArray$2; + +var $values = require$$0$22(false); + +$export$1($export$1.S, 'Object', { values: function values(it) { return $values(it); } }); -// https://github.com/tc39/proposal-object-values-entries - -var $entries = _objectToArray(true); +var $entries = require$$0$22(true); -_export(_export.S, 'Object', { +$export$1($export$1.S, 'Object', { entries: function entries(it) { return $entries(it); } }); -// https://github.com/tc39/proposal-object-getownpropertydescriptors - - - - - - -_export(_export.S, 'Object', { +$export$1($export$1.S, 'Object', { getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { - var O = _toIobject(object); - var getDesc = _objectGopd.f; - var keys = _ownKeys(O); + var O = toIObject(object); + var getDesc = gOPD$1.f; + var keys = ownKeys(O); var result = {}; var i = 0; var key, desc; while (keys.length > i) { desc = getDesc(O, key = keys[i++]); - if (desc !== undefined) _createProperty(result, key, desc); + if (desc !== undefined) createProperty(result, key, desc); } return result; } }); -// https://github.com/tc39/proposal-string-pad-start-end - - - - var _stringPad = function (that, maxLength, fillString, left) { - var S = String(_defined(that)); + var S = String(defined(that)); var stringLength = S.length; var fillStr = fillString === undefined ? ' ' : String(fillString); - var intMaxLength = _toLength(maxLength); + var intMaxLength = toLength(maxLength); if (intMaxLength <= stringLength || fillStr == '') return S; var fillLen = intMaxLength - stringLength; - var stringFiller = _stringRepeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); + var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen); return left ? stringFiller + S : S + stringFiller; }; -var navigator$1 = _global.navigator; + + +var _stringPad$2 = Object.freeze({ + default: _stringPad, + __moduleExports: _stringPad +}); + +var navigator$1 = global$1.navigator; var _userAgent = navigator$1 && navigator$1.userAgent || ''; + + +var _userAgent$2 = Object.freeze({ + default: _userAgent, + __moduleExports: _userAgent +}); + +var $pad = ( _stringPad$2 && _stringPad ) || _stringPad$2; + +var userAgent = ( _userAgent$2 && _userAgent ) || _userAgent$2; + 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end @@ -4314,9 +5035,9 @@ var _userAgent = navigator$1 && navigator$1.userAgent || ''; // https://github.com/zloirock/core-js/issues/280 -_export(_export.P + _export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(_userAgent), 'String', { +$export$1($export$1.P + $export$1.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', { padStart: function padStart(maxLength /* , fillString = ' ' */) { - return _stringPad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true); + return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true); } }); @@ -4327,18 +5048,14 @@ _export(_export.P + _export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(_userAg // https://github.com/zloirock/core-js/issues/280 -_export(_export.P + _export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(_userAgent), 'String', { +$export$1($export$1.P + $export$1.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', { padEnd: function padEnd(maxLength /* , fillString = ' ' */) { - return _stringPad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false); + return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false); } }); -// ie9- setTimeout & setInterval additional parameters fix - - - var slice = [].slice; -var MSIE = /MSIE .\./.test(_userAgent); // <- dirty ie9- check +var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check var wrap$1 = function (set) { return function (fn, time /* , ...args */) { var boundArgs = arguments.length > 2; @@ -4349,19 +5066,19 @@ var wrap$1 = function (set) { } : fn, time); }; }; -_export(_export.G + _export.B + _export.F * MSIE, { - setTimeout: wrap$1(_global.setTimeout), - setInterval: wrap$1(_global.setInterval) +$export$1($export$1.G + $export$1.B + $export$1.F * MSIE, { + setTimeout: wrap$1(global$1.setTimeout), + setInterval: wrap$1(global$1.setInterval) }); -_export(_export.G + _export.B, { - setImmediate: _task.set, - clearImmediate: _task.clear +$export$1($export$1.G + $export$1.B, { + setImmediate: $task.set, + clearImmediate: $task.clear }); -var ITERATOR$4 = _wks('iterator'); -var TO_STRING_TAG = _wks('toStringTag'); -var ArrayValues = _iterators.Array; +var ITERATOR$4 = wks('iterator'); +var TO_STRING_TAG = wks('toStringTag'); +var ArrayValues = Iterators.Array; var DOMIterables = { CSSRuleList: true, // TODO: Not spec compliant, should be false. @@ -4397,17 +5114,17 @@ var DOMIterables = { TouchList: false }; -for (var collections = _objectKeys(DOMIterables), i$1 = 0; i$1 < collections.length; i$1++) { +for (var collections = getKeys(DOMIterables), i$1 = 0; i$1 < collections.length; i$1++) { var NAME$1 = collections[i$1]; var explicit = DOMIterables[NAME$1]; - var Collection = _global[NAME$1]; + var Collection = global$1[NAME$1]; var proto = Collection && Collection.prototype; var key; if (proto) { - if (!proto[ITERATOR$4]) _hide(proto, ITERATOR$4, ArrayValues); - if (!proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME$1); - _iterators[NAME$1] = ArrayValues; - if (explicit) for (key in es6_array_iterator) if (!proto[key]) _redefine(proto, key, es6_array_iterator[key], true); + if (!proto[ITERATOR$4]) hide(proto, ITERATOR$4, ArrayValues); + if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME$1); + Iterators[NAME$1] = ArrayValues; + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); } } @@ -6259,16 +6976,6 @@ var utils = { }, - // Determine if we're in an iframe - inFrame: function inFrame() { - try { - return window.self !== window.top; - } catch (e) { - return true; - } - }, - - // Wrap an element wrap: function wrap(elements, wrapper) { // Convert `elements` to an array, if necessary. @@ -7014,7 +7721,6 @@ var utils = { // Plyr support checks // ========================================================================== -// Check for feature support var support = { // Basic support audio: 'canPlayType' in document.createElement('audio'), @@ -7380,9 +8086,7 @@ var Fullscreen = function () { // Determine if fullscreen is enabled get: function get() { - var fallback = this.player.config.fullscreen.fallback && !utils.inFrame(); - - return (Fullscreen.native || fallback) && this.player.config.fullscreen.enabled && this.player.supported.ui && this.player.isVideo; + return (Fullscreen.native || this.player.config.fullscreen.fallback) && this.player.config.fullscreen.enabled && this.player.supported.ui && this.player.isVideo; } // Get active state @@ -8063,7 +8767,6 @@ var ui = { // Plyr controls // ========================================================================== -// Sniff out the browser var browser$2 = utils.getBrowser(); var controls = { @@ -9261,7 +9964,6 @@ var controls = { // Plyr Event Listeners // ========================================================================== -// Sniff out the browser var browser$1 = utils.getBrowser(); var Listeners = function () { @@ -11342,7 +12044,6 @@ var vimeo = { // Plyr Media // ========================================================================== -// Sniff out the browser var browser$3 = utils.getBrowser(); var media = { @@ -11587,12 +12288,6 @@ var source = { // License: The MIT License (MIT) // ========================================================================== -// Private properties -// TODO: Use a WeakMap for private globals -// const globals = new WeakMap(); - -// Plyr instance - var Plyr$1 = function () { function Plyr(target, options) { var _this = this; |