(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new error("cannot find module '"+o+"'");throw f.code="module_not_found",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 2 ? arguments[2] : undefined; var count = math.min((end === undefined ? len : toabsoluteindex(end, len)) - from, len - to); var inc = 1; if (from < to && to < from + count) { inc = -1; from += count - 1; to += count - 1; } while (count-- > 0) { if (from in o) o[to] = o[from]; else delete o[to]; to += inc; from += inc; } return o; }; },{"113":113,"117":117,"118":118}],18:[function(_dereq_,module,exports){ // 22.1.3.6 array.prototype.fill(value, start = 0, end = this.length) 'use strict'; var toobject = _dereq_(118); var toabsoluteindex = _dereq_(113); var tolength = _dereq_(117); module.exports = function fill(value /* , start = 0, end = @length */) { var o = toobject(this); var length = tolength(o.length); var alen = arguments.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); while (endpos > index) o[index++] = value; return o; }; },{"113":113,"117":117,"118":118}],19:[function(_dereq_,module,exports){ // false -> array#indexof // true -> array#includes var toiobject = _dereq_(116); var tolength = _dereq_(117); var toabsoluteindex = _dereq_(113); module.exports = function (is_includes) { return function ($this, el, fromindex) { 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 if (is_includes && el != el) while (length > index) { value = o[index++]; // eslint-disable-next-line no-self-compare if (value != value) return true; // array#indexof ignores holes, array#includes - not } else for (;length > index; index++) if (is_includes || index in o) { if (o[index] === el) return is_includes || index || 0; } return !is_includes && -1; }; }; },{"113":113,"116":116,"117":117}],20:[function(_dereq_,module,exports){ // 0 -> array#foreach // 1 -> array#map // 2 -> array#filter // 3 -> array#some // 4 -> array#every // 5 -> array#find // 6 -> array#findindex var ctx = _dereq_(32); var iobject = _dereq_(53); var toobject = _dereq_(118); var tolength = _dereq_(117); var asc = _dereq_(23); module.exports = function (type, $create) { var is_map = type == 1; var is_filter = type == 2; var is_some = type == 3; var is_every = type == 4; var is_find_index = type == 6; var no_holes = type == 5 || is_find_index; 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 index = 0; var result = is_map ? create($this, length) : is_filter ? create($this, 0) : undefined; var val, res; for (;length > index; index++) if (no_holes || index in self) { val = self[index]; res = f(val, index, o); if (type) { if (is_map) result[index] = res; // map else if (res) switch (type) { case 3: return true; // some case 5: return val; // find case 6: return index; // findindex case 2: result.push(val); // filter } else if (is_every) return false; // every } } return is_find_index ? -1 : is_some || is_every ? is_every : result; }; }; },{"117":117,"118":118,"23":23,"32":32,"53":53}],21:[function(_dereq_,module,exports){ var afunction = _dereq_(11); var toobject = _dereq_(118); var iobject = _dereq_(53); var tolength = _dereq_(117); module.exports = function (that, callbackfn, alen, memo, isright) { afunction(callbackfn); var o = toobject(that); var self = iobject(o); var length = tolength(o.length); var index = isright ? length - 1 : 0; var i = isright ? -1 : 1; if (alen < 2) for (;;) { if (index in self) { memo = self[index]; index += i; break; } index += i; if (isright ? index < 0 : length <= index) { throw typeerror('reduce of empty array with no initial value'); } } for (;isright ? index >= 0 : length > index; index += i) if (index in self) { memo = callbackfn(memo, self[index], index, o); } return memo; }; },{"11":11,"117":117,"118":118,"53":53}],22:[function(_dereq_,module,exports){ var isobject = _dereq_(57); var isarray = _dereq_(55); var species = _dereq_(128)('species'); module.exports = function (original) { var c; if (isarray(original)) { c = original.constructor; // cross-realm fallback if (typeof c == 'function' && (c === array || isarray(c.prototype))) c = undefined; if (isobject(c)) { c = c[species]; if (c === null) c = undefined; } } return c === undefined ? array : c; }; },{"128":128,"55":55,"57":57}],23:[function(_dereq_,module,exports){ // 9.4.2.3 arrayspeciescreate(originalarray, length) var speciesconstructor = _dereq_(22); module.exports = function (original, length) { return new (speciesconstructor(original))(length); }; },{"22":22}],24:[function(_dereq_,module,exports){ 'use strict'; var afunction = _dereq_(11); var isobject = _dereq_(57); var invoke = _dereq_(52); var arrayslice = [].slice; var factories = {}; var construct = function (f, len, args) { if (!(len in factories)) { for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; // eslint-disable-next-line no-new-func factories[len] = function('f,a', 'return new f(' + n.join(',') + ')'); } return factories[len](f, args); }; module.exports = function.bind || function bind(that /* , ...args */) { 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); }; if (isobject(fn.prototype)) bound.prototype = fn.prototype; return bound; }; },{"11":11,"52":52,"57":57}],25:[function(_dereq_,module,exports){ // getting tag from 19.1.3.6 object.prototype.tostring() var cof = _dereq_(26); var tag = _dereq_(128)('tostringtag'); // es3 wrong here var arg = cof(function () { return arguments; }()) == 'arguments'; // fallback for ie11 script access denied error var tryget = function (it, key) { try { return it[key]; } catch (e) { /* empty */ } }; module.exports = function (it) { var o, t, b; return it === undefined ? 'undefined' : it === null ? 'null' // @@tostringtag case : typeof (t = tryget(o = object(it), tag)) == 'string' ? t // builtintag case : arg ? cof(o) // es3 arguments fallback : (b = cof(o)) == 'object' && typeof o.callee == 'function' ? 'arguments' : b; }; },{"128":128,"26":26}],26:[function(_dereq_,module,exports){ var tostring = {}.tostring; module.exports = function (it) { return tostring.call(it).slice(8, -1); }; },{}],27:[function(_dereq_,module,exports){ 'use strict'; var dp = _dereq_(75).f; var create = _dereq_(74); var redefineall = _dereq_(93); var ctx = _dereq_(32); var aninstance = _dereq_(15); var forof = _dereq_(45); var $iterdefine = _dereq_(61); var step = _dereq_(63); var setspecies = _dereq_(99); var descriptors = _dereq_(36); var fastkey = _dereq_(70).fastkey; var validate = _dereq_(125); var size = descriptors ? '_s' : 'size'; var getentry = function (that, key) { // fast case var index = fastkey(key); var entry; if (index !== 'f') return that._i[index]; // frozen object case for (entry = that._f; entry; entry = entry.n) { if (entry.k == key) return entry; } }; module.exports = { getconstructor: function (wrapper, name, is_map, adder) { var c = wrapper(function (that, iterable) { aninstance(that, c, name, '_i'); that._t = name; // collection type 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); }); redefineall(c.prototype, { // 23.1.3.1 map.prototype.clear() // 23.2.3.2 set.prototype.clear() clear: function clear() { 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]; } that._f = that._l = undefined; that[size] = 0; }, // 23.1.3.3 map.prototype.delete(key) // 23.2.3.4 set.prototype.delete(value) 'delete': function (key) { var that = validate(this, name); var entry = getentry(that, key); if (entry) { var next = entry.n; var prev = entry.p; delete that._i[entry.i]; entry.r = true; if (prev) prev.n = next; if (next) next.p = prev; if (that._f == entry) that._f = next; if (that._l == entry) that._l = prev; that[size]--; } return !!entry; }, // 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 */) { 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); // revert to the last existing entry while (entry && entry.r) entry = entry.p; } }, // 23.1.3.7 map.prototype.has(key) // 23.2.3.7 set.prototype.has(value) has: function has(key) { return !!getentry(validate(this, name), key); } }); if (descriptors) dp(c.prototype, 'size', { get: function () { return validate(this, name)[size]; } }); return c; }, def: function (that, key, value) { var entry = getentry(that, key); var prev, index; // change existing entry if (entry) { entry.v = value; // create new entry } else { that._l = entry = { i: index = fastkey(key, true), // <- index k: key, // <- key v: value, // <- value p: prev = that._l, // <- previous entry n: undefined, // <- next entry r: false // <- removed }; if (!that._f) that._f = entry; if (prev) prev.n = entry; that[size]++; // add to index if (index !== 'f') that._i[index] = entry; } return that; }, getentry: getentry, 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 = validate(iterated, name); // target this._k = kind; // kind this._l = undefined; // previous }, function () { var that = this; var kind = that._k; var entry = that._l; // revert to the last existing entry while (entry && entry.r) entry = entry.p; // get next entry if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { // or finish the iteration that._t = undefined; return step(1); } // return step by kind 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); } }; },{"125":125,"15":15,"32":32,"36":36,"45":45,"61":61,"63":63,"70":70,"74":74,"75":75,"93":93,"99":99}],28:[function(_dereq_,module,exports){ 'use strict'; var redefineall = _dereq_(93); var getweak = _dereq_(70).getweak; var anobject = _dereq_(16); var isobject = _dereq_(57); var aninstance = _dereq_(15); var forof = _dereq_(45); var createarraymethod = _dereq_(20); var $has = _dereq_(47); var validate = _dereq_(125); var arrayfind = createarraymethod(5); var arrayfindindex = createarraymethod(6); var id = 0; // fallback for uncaught frozen keys var uncaughtfrozenstore = function (that) { return that._l || (that._l = new uncaughtfrozenstore()); }; var uncaughtfrozenstore = function () { this.a = []; }; var finduncaughtfrozen = function (store, key) { return arrayfind(store.a, function (it) { return it[0] === key; }); }; uncaughtfrozenstore.prototype = { get: function (key) { var entry = finduncaughtfrozen(this, key); if (entry) return entry[1]; }, has: function (key) { return !!finduncaughtfrozen(this, key); }, set: function (key, value) { var entry = finduncaughtfrozen(this, key); if (entry) entry[1] = value; else this.a.push([key, value]); }, 'delete': function (key) { var index = arrayfindindex(this.a, function (it) { return it[0] === key; }); if (~index) this.a.splice(index, 1); return !!~index; } }; module.exports = { getconstructor: function (wrapper, name, is_map, adder) { var c = wrapper(function (that, iterable) { aninstance(that, c, name, '_i'); that._t = name; // collection type that._i = id++; // collection id that._l = undefined; // leak store for uncaught frozen objects if (iterable != undefined) forof(iterable, is_map, that[adder], that); }); redefineall(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; var data = getweak(key); 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; var data = getweak(key); 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); if (data === true) uncaughtfrozenstore(that).set(key, value); else data[that._i] = value; return that; }, ufstore: uncaughtfrozenstore }; },{"125":125,"15":15,"16":16,"20":20,"45":45,"47":47,"57":57,"70":70,"93":93}],29:[function(_dereq_,module,exports){ 'use strict'; var global = _dereq_(46); var $export = _dereq_(40); var redefine = _dereq_(94); var redefineall = _dereq_(93); var meta = _dereq_(70); var forof = _dereq_(45); var aninstance = _dereq_(15); var isobject = _dereq_(57); var fails = _dereq_(42); var $iterdetect = _dereq_(62); var settostringtag = _dereq_(100); var inheritifrequired = _dereq_(51); module.exports = function (name, wrapper, methods, common, is_map, is_weak) { var base = global[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, key == 'delete' ? function (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); } : key == 'get' ? function get(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 () { new c().entries().next(); }))) { // create collection constructor c = common.getconstructor(wrapper, name, is_map, adder); redefineall(c.prototype, methods); meta.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); }); // 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 // for early implementations -0 and +0 not the same var buggy_zero = !is_weak && fails(function () { // v8 ~ chromium 42- fails only with 5+ elements var $instance = new c(); var index = 5; while (index--) $instance[adder](index, index); return !$instance.has(-0); }); 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); return that; }); c.prototype = proto; proto.constructor = c; } if (throws_on_primitives || buggy_zero) { fixmethod('delete'); fixmethod('has'); is_map && fixmethod('get'); } if (buggy_zero || hasnt_chaining) fixmethod(adder); // weak collections should not contains .clear method if (is_weak && proto.clear) delete proto.clear; } settostringtag(c, name); o[name] = c; $export($export.g + $export.w + $export.f * (c != base), o); if (!is_weak) common.setstrong(c, name, is_map); return c; }; },{"100":100,"15":15,"40":40,"42":42,"45":45,"46":46,"51":51,"57":57,"62":62,"70":70,"93":93,"94":94}],30:[function(_dereq_,module,exports){ var core = module.exports = { version: '2.6.1' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef },{}],31:[function(_dereq_,module,exports){ 'use strict'; var $defineproperty = _dereq_(75); var createdesc = _dereq_(92); module.exports = function (object, index, value) { if (index in object) $defineproperty.f(object, index, createdesc(0, value)); else object[index] = value; }; },{"75":75,"92":92}],32:[function(_dereq_,module,exports){ // optional / simple context binding var afunction = _dereq_(11); module.exports = function (fn, that, length) { afunction(fn); if (that === undefined) return fn; switch (length) { case 1: return function (a) { return fn.call(that, a); }; case 2: return function (a, b) { return fn.call(that, a, b); }; case 3: return function (a, b, c) { return fn.call(that, a, b, c); }; } return function (/* ...args */) { return fn.apply(that, arguments); }; }; },{"11":11}],33:[function(_dereq_,module,exports){ 'use strict'; // 20.3.4.36 / 15.9.5.43 date.prototype.toisostring() var fails = _dereq_(42); var gettime = date.prototype.gettime; var $toisostring = date.prototype.toisostring; var lz = function (num) { return num > 9 ? num : '0' + num; }; // phantomjs / old webkit has a broken implementations module.exports = (fails(function () { return $toisostring.call(new date(-5e13 - 1)) != '0385-07-25t07:06:39.999z'; }) || !fails(function () { $toisostring.call(new date(nan)); })) ? function toisostring() { if (!isfinite(gettime.call(this))) throw rangeerror('invalid time value'); var d = this; var y = d.getutcfullyear(); var m = d.getutcmilliseconds(); var s = y < 0 ? '-' : y > 9999 ? '+' : ''; return s + ('00000' + math.abs(y)).slice(s ? -6 : -4) + '-' + lz(d.getutcmonth() + 1) + '-' + lz(d.getutcdate()) + 't' + lz(d.getutchours()) + ':' + lz(d.getutcminutes()) + ':' + lz(d.getutcseconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'z'; } : $toisostring; },{"42":42}],34:[function(_dereq_,module,exports){ 'use strict'; var anobject = _dereq_(16); var toprimitive = _dereq_(119); var number = 'number'; module.exports = function (hint) { if (hint !== 'string' && hint !== number && hint !== 'default') throw typeerror('incorrect hint'); return toprimitive(anobject(this), hint != number); }; },{"119":119,"16":16}],35:[function(_dereq_,module,exports){ // 7.2.1 requireobjectcoercible(argument) module.exports = function (it) { if (it == undefined) throw typeerror("can't call method on " + it); return it; }; },{}],36:[function(_dereq_,module,exports){ // thank's ie8 for his funny defineproperty module.exports = !_dereq_(42)(function () { return object.defineproperty({}, 'a', { get: function () { return 7; } }).a != 7; }); },{"42":42}],37:[function(_dereq_,module,exports){ var isobject = _dereq_(57); var document = _dereq_(46).document; // typeof document.createelement is 'object' in old ie var is = isobject(document) && isobject(document.createelement); module.exports = function (it) { return is ? document.createelement(it) : {}; }; },{"46":46,"57":57}],38:[function(_dereq_,module,exports){ // ie 8- don't enum bug keys module.exports = ( 'constructor,hasownproperty,isprototypeof,propertyisenumerable,tolocalestring,tostring,valueof' ).split(','); },{}],39:[function(_dereq_,module,exports){ // all enumerable object keys, includes symbols var getkeys = _dereq_(83); var gops = _dereq_(80); var pie = _dereq_(84); module.exports = function (it) { var result = getkeys(it); var getsymbols = gops.f; if (getsymbols) { var symbols = getsymbols(it); var isenum = pie.f; var i = 0; var key; while (symbols.length > i) if (isenum.call(it, key = symbols[i++])) result.push(key); } return result; }; },{"80":80,"83":83,"84":84}],40:[function(_dereq_,module,exports){ var global = _dereq_(46); var core = _dereq_(30); var hide = _dereq_(48); var redefine = _dereq_(94); var ctx = _dereq_(32); var prototype = 'prototype'; var $export = function (type, name, source) { var is_forced = type & $export.f; var is_global = type & $export.g; 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 expproto = exports[prototype] || (exports[prototype] = {}); var key, own, out, exp; if (is_global) source = name; for (key in source) { // contains in native own = !is_forced && target && target[key] !== undefined; // 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; // extend global if (target) redefine(target, key, out, type & $export.u); // export if (exports[key] != out) hide(exports, key, exp); if (is_proto && expproto[key] != out) expproto[key] = out; } }; global.core = core; // type bitmap $export.f = 1; // forced $export.g = 2; // global $export.s = 4; // static $export.p = 8; // proto $export.b = 16; // bind $export.w = 32; // wrap $export.u = 64; // safe $export.r = 128; // real proto method for `library` module.exports = $export; },{"30":30,"32":32,"46":46,"48":48,"94":94}],41:[function(_dereq_,module,exports){ var match = _dereq_(128)('match'); module.exports = function (key) { var re = /./; try { '/./'[key](re); } catch (e) { try { re[match] = false; return !'/./'[key](re); } catch (f) { /* empty */ } } return true; }; },{"128":128}],42:[function(_dereq_,module,exports){ module.exports = function (exec) { try { return !!exec(); } catch (e) { return true; } }; },{}],43:[function(_dereq_,module,exports){ 'use strict'; _dereq_(224); var redefine = _dereq_(94); var hide = _dereq_(48); var fails = _dereq_(42); var defined = _dereq_(35); var wks = _dereq_(128); var regexpexec = _dereq_(96); var species = wks('species'); var replace_supports_named_groups = !fails(function () { // #replace needs built-in support for named groups. // #match works fine because it just return the exec results, even if it has // a "grops" property. var re = /./; re.exec = function () { var result = []; result.groups = { a: '7' }; return result; }; return ''.replace(re, '$') !== '7'; }); var split_works_with_overwritten_exec = (function () { // chrome 51 has a buggy "split" implementation when regexp#exec !== nativeexec var re = /(?:)/; var originalexec = re.exec; re.exec = function () { return originalexec.apply(this, arguments); }; var result = 'ab'.split(re); return result.length === 2 && result[0] === 'a' && result[1] === 'b'; })(); module.exports = function (key, length, exec) { var symbol = wks(key); var delegates_to_symbol = !fails(function () { // string methods call symbol-named regep methods var o = {}; o[symbol] = function () { return 7; }; return ''[key](o) != 7; }); var delegates_to_exec = delegates_to_symbol ? !fails(function () { // symbol-named regexp methods call .exec var execcalled = false; var re = /a/; re.exec = function () { execcalled = true; return null; }; if (key === 'split') { // regexp[@@split] doesn't call the regex's exec method, but first creates // a new one. we need to return the patched regex when creating the new one. re.constructor = {}; re.constructor[species] = function () { return re; }; } re[symbol](''); return !execcalled; }) : undefined; if ( !delegates_to_symbol || !delegates_to_exec || (key === 'replace' && !replace_supports_named_groups) || (key === 'split' && !split_works_with_overwritten_exec) ) { var nativeregexpmethod = /./[symbol]; var fns = exec( defined, symbol, ''[key], function maybecallnative(nativemethod, regexp, str, arg2, forcestringmethod) { if (regexp.exec === regexpexec) { if (delegates_to_symbol && !forcestringmethod) { // the native string method already delegates to @@method (this // polyfilled function), leasing to infinite recursion. // we avoid it by directly calling the native @@method method. return { done: true, value: nativeregexpmethod.call(regexp, str, arg2) }; } return { done: true, value: nativemethod.call(str, regexp, arg2) }; } return { done: false }; } ); var strfn = fns[0]; var rxfn = fns[1]; 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); } // 21.2.5.6 regexp.prototype[@@match](string) // 21.2.5.9 regexp.prototype[@@search](string) : function (string) { return rxfn.call(string, this); } ); } }; },{"128":128,"224":224,"35":35,"42":42,"48":48,"94":94,"96":96}],44:[function(_dereq_,module,exports){ 'use strict'; // 21.2.5.3 get regexp.prototype.flags var anobject = _dereq_(16); module.exports = function () { var that = anobject(this); var result = ''; if (that.global) result += 'g'; if (that.ignorecase) result += 'i'; if (that.multiline) result += 'm'; if (that.unicode) result += 'u'; if (that.sticky) result += 'y'; return result; }; },{"16":16}],45:[function(_dereq_,module,exports){ var ctx = _dereq_(32); var call = _dereq_(59); var isarrayiter = _dereq_(54); var anobject = _dereq_(16); var tolength = _dereq_(117); var getiterfn = _dereq_(129); var break = {}; var return = {}; var exports = module.exports = function (iterable, entries, fn, that, iterator) { 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 (result === break || result === return) return result; } else for (iterator = iterfn.call(iterable); !(step = iterator.next()).done;) { result = call(iterator, f, step.value, entries); if (result === break || result === return) return result; } }; exports.break = break; exports.return = return; },{"117":117,"129":129,"16":16,"32":32,"54":54,"59":59}],46:[function(_dereq_,module,exports){ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.math == math ? window : typeof self != 'undefined' && self.math == math ? self // eslint-disable-next-line no-new-func : function('return this')(); if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef },{}],47:[function(_dereq_,module,exports){ var hasownproperty = {}.hasownproperty; module.exports = function (it, key) { return hasownproperty.call(it, key); }; },{}],48:[function(_dereq_,module,exports){ var dp = _dereq_(75); var createdesc = _dereq_(92); module.exports = _dereq_(36) ? function (object, key, value) { return dp.f(object, key, createdesc(1, value)); } : function (object, key, value) { object[key] = value; return object; }; },{"36":36,"75":75,"92":92}],49:[function(_dereq_,module,exports){ var document = _dereq_(46).document; module.exports = document && document.documentelement; },{"46":46}],50:[function(_dereq_,module,exports){ module.exports = !_dereq_(36) && !_dereq_(42)(function () { return object.defineproperty(_dereq_(37)('div'), 'a', { get: function () { return 7; } }).a != 7; }); },{"36":36,"37":37,"42":42}],51:[function(_dereq_,module,exports){ var isobject = _dereq_(57); var setprototypeof = _dereq_(98).set; module.exports = function (that, target, c) { var s = target.constructor; var p; if (s !== c && typeof s == 'function' && (p = s.prototype) !== c.prototype && isobject(p) && setprototypeof) { setprototypeof(that, p); } return that; }; },{"57":57,"98":98}],52:[function(_dereq_,module,exports){ // fast apply, http://jsperf.lnkit.com/fast-apply/5 module.exports = function (fn, args, that) { var un = that === undefined; switch (args.length) { case 0: return un ? fn() : fn.call(that); case 1: return un ? fn(args[0]) : fn.call(that, args[0]); case 2: return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); case 3: return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); case 4: return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); } return fn.apply(that, args); }; },{}],53:[function(_dereq_,module,exports){ // fallback for non-array-like es3 and non-enumerable old v8 strings var cof = _dereq_(26); // eslint-disable-next-line no-prototype-builtins module.exports = object('z').propertyisenumerable(0) ? object : function (it) { return cof(it) == 'string' ? it.split('') : object(it); }; },{"26":26}],54:[function(_dereq_,module,exports){ // check on default array iterator var iterators = _dereq_(64); var iterator = _dereq_(128)('iterator'); var arrayproto = array.prototype; module.exports = function (it) { return it !== undefined && (iterators.array === it || arrayproto[iterator] === it); }; },{"128":128,"64":64}],55:[function(_dereq_,module,exports){ // 7.2.2 isarray(argument) var cof = _dereq_(26); module.exports = array.isarray || function isarray(arg) { return cof(arg) == 'array'; }; },{"26":26}],56:[function(_dereq_,module,exports){ // 20.1.2.3 number.isinteger(number) var isobject = _dereq_(57); var floor = math.floor; module.exports = function isinteger(it) { return !isobject(it) && isfinite(it) && floor(it) === it; }; },{"57":57}],57:[function(_dereq_,module,exports){ module.exports = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; },{}],58:[function(_dereq_,module,exports){ // 7.2.8 isregexp(argument) var isobject = _dereq_(57); var cof = _dereq_(26); var match = _dereq_(128)('match'); module.exports = function (it) { var isregexp; return isobject(it) && ((isregexp = it[match]) !== undefined ? !!isregexp : cof(it) == 'regexp'); }; },{"128":128,"26":26,"57":57}],59:[function(_dereq_,module,exports){ // call something on iterator step with safe closing on error var anobject = _dereq_(16); module.exports = function (iterator, fn, value, entries) { try { 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)); throw e; } }; },{"16":16}],60:[function(_dereq_,module,exports){ 'use strict'; var create = _dereq_(74); var descriptor = _dereq_(92); var settostringtag = _dereq_(100); var iteratorprototype = {}; // 25.1.2.1.1 %iteratorprototype%[@@iterator]() _dereq_(48)(iteratorprototype, _dereq_(128)('iterator'), function () { return this; }); module.exports = function (constructor, name, next) { constructor.prototype = create(iteratorprototype, { next: descriptor(1, next) }); settostringtag(constructor, name + ' iterator'); }; },{"100":100,"128":128,"48":48,"74":74,"92":92}],61:[function(_dereq_,module,exports){ 'use strict'; var library = _dereq_(65); var $export = _dereq_(40); var redefine = _dereq_(94); var hide = _dereq_(48); var iterators = _dereq_(64); var $itercreate = _dereq_(60); var settostringtag = _dereq_(100); var getprototypeof = _dereq_(81); var iterator = _dereq_(128)('iterator'); var buggy = !([].keys && 'next' in [].keys()); // safari has buggy iterators w/o `next` var ff_iterator = '@@iterator'; var keys = 'keys'; var values = 'values'; var returnthis = function () { return this; }; module.exports = function (base, name, constructor, next, default, is_set, forced) { $itercreate(constructor, name, next); var getmethod = function (kind) { if (!buggy && kind in proto) return proto[kind]; switch (kind) { case keys: return function keys() { return new constructor(this, kind); }; case values: return function values() { return new constructor(this, kind); }; } return function entries() { return new constructor(this, kind); }; }; var tag = name + ' iterator'; var def_values = default == values; var values_bug = false; var proto = base.prototype; var $native = proto[iterator] || proto[ff_iterator] || default && proto[default]; var $default = $native || getmethod(default); var $entries = default ? !def_values ? $default : getmethod('entries') : undefined; var $anynative = name == 'array' ? proto.entries || $native : $native; var methods, key, iteratorprototype; // fix native if ($anynative) { iteratorprototype = getprototypeof($anynative.call(new base())); if (iteratorprototype !== object.prototype && iteratorprototype.next) { // set @@tostringtag to native iterators settostringtag(iteratorprototype, tag, true); // fix for some old engines if (!library && typeof iteratorprototype[iterator] != 'function') hide(iteratorprototype, iterator, returnthis); } } // fix array#{values, @@iterator}.name in v8 / ff if (def_values && $native && $native.name !== values) { values_bug = true; $default = function values() { return $native.call(this); }; } // define iterator if ((!library || forced) && (buggy || values_bug || !proto[iterator])) { hide(proto, iterator, $default); } // plug for library iterators[name] = $default; iterators[tag] = returnthis; if (default) { methods = { values: def_values ? $default : getmethod(values), keys: is_set ? $default : getmethod(keys), 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); } return methods; }; },{"100":100,"128":128,"40":40,"48":48,"60":60,"64":64,"65":65,"81":81,"94":94}],62:[function(_dereq_,module,exports){ var iterator = _dereq_(128)('iterator'); var safe_closing = false; try { var riter = [7][iterator](); riter['return'] = function () { safe_closing = true; }; // eslint-disable-next-line no-throw-literal array.from(riter, function () { throw 2; }); } catch (e) { /* empty */ } module.exports = function (exec, skipclosing) { if (!skipclosing && !safe_closing) return false; var safe = false; try { var arr = [7]; var iter = arr[iterator](); iter.next = function () { return { done: safe = true }; }; arr[iterator] = function () { return iter; }; exec(arr); } catch (e) { /* empty */ } return safe; }; },{"128":128}],63:[function(_dereq_,module,exports){ module.exports = function (done, value) { return { value: value, done: !!done }; }; },{}],64:[function(_dereq_,module,exports){ module.exports = {}; },{}],65:[function(_dereq_,module,exports){ module.exports = false; },{}],66:[function(_dereq_,module,exports){ // 20.2.2.14 math.expm1(x) var $expm1 = math.expm1; module.exports = (!$expm1 // old ff bug || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 // tor browser bug || $expm1(-2e-17) != -2e-17 ) ? function expm1(x) { return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : math.exp(x) - 1; } : $expm1; },{}],67:[function(_dereq_,module,exports){ // 20.2.2.16 math.fround(x) var sign = _dereq_(69); var pow = math.pow; var epsilon = pow(2, -52); var epsilon32 = pow(2, -23); var max32 = pow(2, 127) * (2 - epsilon32); var min32 = pow(2, -126); var roundtiestoeven = function (n) { return n + 1 / epsilon - 1 / epsilon; }; module.exports = math.fround || function fround(x) { var $abs = math.abs(x); var $sign = sign(x); var a, result; if ($abs < min32) return $sign * roundtiestoeven($abs / min32 / epsilon32) * min32 * epsilon32; a = (1 + epsilon32 / epsilon) * $abs; result = a - (a - $abs); // eslint-disable-next-line no-self-compare if (result > max32 || result != result) return $sign * infinity; return $sign * result; }; },{"69":69}],68:[function(_dereq_,module,exports){ // 20.2.2.20 math.log1p(x) module.exports = math.log1p || function log1p(x) { return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : math.log(1 + x); }; },{}],69:[function(_dereq_,module,exports){ // 20.2.2.28 math.sign(x) module.exports = math.sign || function sign(x) { // eslint-disable-next-line no-self-compare return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; },{}],70:[function(_dereq_,module,exports){ var meta = _dereq_(123)('meta'); var isobject = _dereq_(57); var has = _dereq_(47); var setdesc = _dereq_(75).f; var id = 0; var isextensible = object.isextensible || function () { return true; }; var freeze = !_dereq_(42)(function () { return isextensible(object.preventextensions({})); }); var setmeta = function (it) { setdesc(it, meta, { value: { i: 'o' + ++id, // object id w: {} // weak collections ids } }); }; 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)) { // can't set metadata to uncaught frozen object if (!isextensible(it)) return 'f'; // not necessary to add metadata if (!create) return 'e'; // add missing metadata setmeta(it); // return object id } return it[meta].i; }; var getweak = function (it, create) { if (!has(it, meta)) { // can't set metadata to uncaught frozen object if (!isextensible(it)) return true; // not necessary to add metadata if (!create) return false; // add missing metadata setmeta(it); // return hash weak collections ids } return it[meta].w; }; // add metadata on freeze-family methods calling var onfreeze = function (it) { if (freeze && meta.need && isextensible(it) && !has(it, meta)) setmeta(it); return it; }; var meta = module.exports = { key: meta, need: false, fastkey: fastkey, getweak: getweak, onfreeze: onfreeze }; },{"123":123,"42":42,"47":47,"57":57,"75":75}],71:[function(_dereq_,module,exports){ var global = _dereq_(46); var macrotask = _dereq_(112).set; var observer = global.mutationobserver || global.webkitmutationobserver; var process = global.process; var promise = global.promise; var isnode = _dereq_(26)(process) == 'process'; module.exports = function () { var head, last, notify; var flush = function () { var parent, fn; if (isnode && (parent = process.domain)) parent.exit(); while (head) { fn = head.fn; head = head.next; try { fn(); } catch (e) { if (head) notify(); else last = undefined; throw e; } } last = undefined; if (parent) parent.enter(); }; // node.js if (isnode) { notify = function () { process.nexttick(flush); }; // browsers with mutationobserver, except ios safari - https://github.com/zloirock/core-js/issues/339 } else if (observer && !(global.navigator && global.navigator.standalone)) { var toggle = true; var node = document.createtextnode(''); new observer(flush).observe(node, { characterdata: true }); // eslint-disable-line no-new notify = function () { node.data = toggle = !toggle; }; // environments with maybe non-completely correct, but existent promise } else if (promise && promise.resolve) { // promise.resolve without an argument throws an error in lg webos 2 var promise = promise.resolve(undefined); notify = function () { promise.then(flush); }; // for other environments - macrotask based on: // - setimmediate // - messagechannel // - window.postmessag // - onreadystatechange // - settimeout } else { notify = function () { // strange ie + webpack dev server bug - use .call(global) macrotask.call(global, flush); }; } return function (fn) { var task = { fn: fn, next: undefined }; if (last) last.next = task; if (!head) { head = task; notify(); } last = task; }; }; },{"112":112,"26":26,"46":46}],72:[function(_dereq_,module,exports){ 'use strict'; // 25.4.1.5 newpromisecapability(c) var afunction = _dereq_(11); function promisecapability(c) { var resolve, reject; this.promise = new c(function ($$resolve, $$reject) { if (resolve !== undefined || reject !== undefined) throw typeerror('bad promise constructor'); resolve = $$resolve; reject = $$reject; }); this.resolve = afunction(resolve); this.reject = afunction(reject); } module.exports.f = function (c) { return new promisecapability(c); }; },{"11":11}],73:[function(_dereq_,module,exports){ 'use strict'; // 19.1.2.1 object.assign(target, source, ...) var getkeys = _dereq_(83); var gops = _dereq_(80); var pie = _dereq_(84); var toobject = _dereq_(118); var iobject = _dereq_(53); var $assign = object.assign; // should work with symbols and should have deterministic property order (v8 bug) module.exports = !$assign || _dereq_(42)(function () { var a = {}; var b = {}; // eslint-disable-next-line no-undef var s = symbol(); var k = 'abcdefghijklmnopqrst'; a[s] = 7; 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 alen = arguments.length; var index = 1; var getsymbols = gops.f; var isenum = pie.f; while (alen > index) { var s = iobject(arguments[index++]); var keys = getsymbols ? getkeys(s).concat(getsymbols(s)) : getkeys(s); var length = keys.length; var j = 0; var key; while (length > j) if (isenum.call(s, key = keys[j++])) t[key] = s[key]; } return t; } : $assign; },{"118":118,"42":42,"53":53,"80":80,"83":83,"84":84}],74:[function(_dereq_,module,exports){ // 19.1.2.2 / 15.2.3.5 object.create(o [, properties]) var anobject = _dereq_(16); var dps = _dereq_(76); var enumbugkeys = _dereq_(38); var ie_proto = _dereq_(101)('ie_proto'); var empty = function () { /* empty */ }; var prototype = '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 = _dereq_(37)('iframe'); var i = enumbugkeys.length; var lt = '<'; var gt = '>'; var iframedocument; iframe.style.display = 'none'; _dereq_(49).appendchild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createdict = iframe.contentwindow.object; // html.removechild(iframe); iframedocument = iframe.contentwindow.document; iframedocument.open(); iframedocument.write(lt + 'script' + gt + 'document.f=object' + lt + '/script' + gt); iframedocument.close(); createdict = iframedocument.f; while (i--) delete createdict[prototype][enumbugkeys[i]]; return createdict(); }; module.exports = object.create || function create(o, properties) { var result; if (o !== null) { empty[prototype] = anobject(o); result = new empty(); empty[prototype] = null; // add "__proto__" for object.getprototypeof polyfill result[ie_proto] = o; } else result = createdict(); return properties === undefined ? result : dps(result, properties); }; },{"101":101,"16":16,"37":37,"38":38,"49":49,"76":76}],75:[function(_dereq_,module,exports){ var anobject = _dereq_(16); var ie8_dom_define = _dereq_(50); var toprimitive = _dereq_(119); var dp = object.defineproperty; exports.f = _dereq_(36) ? 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!'); if ('value' in attributes) o[p] = attributes.value; return o; }; },{"119":119,"16":16,"36":36,"50":50}],76:[function(_dereq_,module,exports){ var dp = _dereq_(75); var anobject = _dereq_(16); var getkeys = _dereq_(83); module.exports = _dereq_(36) ? object.defineproperties : function defineproperties(o, properties) { anobject(o); var keys = getkeys(properties); var length = keys.length; var i = 0; var p; while (length > i) dp.f(o, p = keys[i++], properties[p]); return o; }; },{"16":16,"36":36,"75":75,"83":83}],77:[function(_dereq_,module,exports){ var pie = _dereq_(84); var createdesc = _dereq_(92); var toiobject = _dereq_(116); var toprimitive = _dereq_(119); var has = _dereq_(47); var ie8_dom_define = _dereq_(50); var gopd = object.getownpropertydescriptor; exports.f = _dereq_(36) ? 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 createdesc(!pie.f.call(o, p), o[p]); }; },{"116":116,"119":119,"36":36,"47":47,"50":50,"84":84,"92":92}],78:[function(_dereq_,module,exports){ // fallback for ie11 buggy object.getownpropertynames with iframe and window var toiobject = _dereq_(116); var gopn = _dereq_(79).f; var tostring = {}.tostring; var windownames = typeof window == 'object' && window && object.getownpropertynames ? object.getownpropertynames(window) : []; var getwindownames = function (it) { try { return gopn(it); } catch (e) { return windownames.slice(); } }; module.exports.f = function getownpropertynames(it) { return windownames && tostring.call(it) == '[object window]' ? getwindownames(it) : gopn(toiobject(it)); }; },{"116":116,"79":79}],79:[function(_dereq_,module,exports){ // 19.1.2.7 / 15.2.3.4 object.getownpropertynames(o) var $keys = _dereq_(82); var hiddenkeys = _dereq_(38).concat('length', 'prototype'); exports.f = object.getownpropertynames || function getownpropertynames(o) { return $keys(o, hiddenkeys); }; },{"38":38,"82":82}],80:[function(_dereq_,module,exports){ exports.f = object.getownpropertysymbols; },{}],81:[function(_dereq_,module,exports){ // 19.1.2.9 / 15.2.3.2 object.getprototypeof(o) var has = _dereq_(47); var toobject = _dereq_(118); var ie_proto = _dereq_(101)('ie_proto'); var objectproto = object.prototype; module.exports = object.getprototypeof || function (o) { o = toobject(o); if (has(o, ie_proto)) return o[ie_proto]; if (typeof o.constructor == 'function' && o instanceof o.constructor) { return o.constructor.prototype; } return o instanceof object ? objectproto : null; }; },{"101":101,"118":118,"47":47}],82:[function(_dereq_,module,exports){ var has = _dereq_(47); var toiobject = _dereq_(116); var arrayindexof = _dereq_(19)(false); var ie_proto = _dereq_(101)('ie_proto'); module.exports = function (object, names) { 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); // don't enum bug & hidden keys while (names.length > i) if (has(o, key = names[i++])) { ~arrayindexof(result, key) || result.push(key); } return result; }; },{"101":101,"116":116,"19":19,"47":47}],83:[function(_dereq_,module,exports){ // 19.1.2.14 / 15.2.3.14 object.keys(o) var $keys = _dereq_(82); var enumbugkeys = _dereq_(38); module.exports = object.keys || function keys(o) { return $keys(o, enumbugkeys); }; },{"38":38,"82":82}],84:[function(_dereq_,module,exports){ exports.f = {}.propertyisenumerable; },{}],85:[function(_dereq_,module,exports){ // most object methods by es6 should accept primitives var $export = _dereq_(40); var core = _dereq_(30); var fails = _dereq_(42); module.exports = function (key, exec) { var fn = (core.object || {})[key] || object[key]; var exp = {}; exp[key] = exec(fn); $export($export.s + $export.f * fails(function () { fn(1); }), 'object', exp); }; },{"30":30,"40":40,"42":42}],86:[function(_dereq_,module,exports){ var getkeys = _dereq_(83); var toiobject = _dereq_(116); var isenum = _dereq_(84).f; module.exports = function (isentries) { return function (it) { var o = toiobject(it); var keys = getkeys(o); var length = keys.length; var i = 0; var result = []; var key; while (length > i) if (isenum.call(o, key = keys[i++])) { result.push(isentries ? [key, o[key]] : o[key]); } return result; }; }; },{"116":116,"83":83,"84":84}],87:[function(_dereq_,module,exports){ // all object keys, includes non-enumerable and symbols var gopn = _dereq_(79); var gops = _dereq_(80); var anobject = _dereq_(16); var reflect = _dereq_(46).reflect; module.exports = reflect && reflect.ownkeys || function ownkeys(it) { var keys = gopn.f(anobject(it)); var getsymbols = gops.f; return getsymbols ? keys.concat(getsymbols(it)) : keys; }; },{"16":16,"46":46,"79":79,"80":80}],88:[function(_dereq_,module,exports){ var $parsefloat = _dereq_(46).parsefloat; var $trim = _dereq_(110).trim; module.exports = 1 / $parsefloat(_dereq_(111) + '-0') !== -infinity ? function parsefloat(str) { var string = $trim(string(str), 3); var result = $parsefloat(string); return result === 0 && string.charat(0) == '-' ? -0 : result; } : $parsefloat; },{"110":110,"111":111,"46":46}],89:[function(_dereq_,module,exports){ var $parseint = _dereq_(46).parseint; var $trim = _dereq_(110).trim; var ws = _dereq_(111); var hex = /^[-+]?0[xx]/; module.exports = $parseint(ws + '08') !== 8 || $parseint(ws + '0x16') !== 22 ? function parseint(str, radix) { var string = $trim(string(str), 3); return $parseint(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); } : $parseint; },{"110":110,"111":111,"46":46}],90:[function(_dereq_,module,exports){ module.exports = function (exec) { try { return { e: false, v: exec() }; } catch (e) { return { e: true, v: e }; } }; },{}],91:[function(_dereq_,module,exports){ var anobject = _dereq_(16); var isobject = _dereq_(57); var newpromisecapability = _dereq_(72); module.exports = function (c, x) { anobject(c); if (isobject(x) && x.constructor === c) return x; var promisecapability = newpromisecapability.f(c); var resolve = promisecapability.resolve; resolve(x); return promisecapability.promise; }; },{"16":16,"57":57,"72":72}],92:[function(_dereq_,module,exports){ module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; },{}],93:[function(_dereq_,module,exports){ var redefine = _dereq_(94); module.exports = function (target, src, safe) { for (var key in src) redefine(target, key, src[key], safe); return target; }; },{"94":94}],94:[function(_dereq_,module,exports){ var global = _dereq_(46); var hide = _dereq_(48); var has = _dereq_(47); var src = _dereq_(123)('src'); var to_string = 'tostring'; var $tostring = function[to_string]; var tpl = ('' + $tostring).split(to_string); _dereq_(30).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 (o[key] === val) return; if (isfunction) has(val, src) || hide(val, src, o[key] ? '' + o[key] : tpl.join(string(key))); if (o === global) { o[key] = val; } else if (!safe) { delete o[key]; hide(o, key, val); } else if (o[key]) { o[key] = val; } else { 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() { return typeof this == 'function' && this[src] || $tostring.call(this); }); },{"123":123,"30":30,"46":46,"47":47,"48":48}],95:[function(_dereq_,module,exports){ 'use strict'; var classof = _dereq_(25); var builtinexec = regexp.prototype.exec; // `regexpexec` abstract operation // https://tc39.github.io/ecma262/#sec-regexpexec module.exports = function (r, s) { var exec = r.exec; if (typeof exec === 'function') { var result = exec.call(r, s); if (typeof result !== 'object') { throw new typeerror('regexp exec method returned something other than an object or null'); } return result; } if (classof(r) !== 'regexp') { throw new typeerror('regexp#exec called on incompatible receiver'); } return builtinexec.call(r, s); }; },{"25":25}],96:[function(_dereq_,module,exports){ 'use strict'; var regexpflags = _dereq_(44); var nativeexec = regexp.prototype.exec; // this always refers to the native implementation, because the // string#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, // which loads this file before patching the method. var nativereplace = string.prototype.replace; var patchedexec = nativeexec; var last_index = 'lastindex'; var updates_last_index_wrong = (function () { var re1 = /a/, re2 = /b*/g; nativeexec.call(re1, 'a'); nativeexec.call(re2, 'a'); return re1[last_index] !== 0 || re2[last_index] !== 0; })(); // nonparticipating capturing group, copied from es5-shim's string#split patch. var npcg_included = /()??/.exec('')[1] !== undefined; var patch = updates_last_index_wrong || npcg_included; if (patch) { patchedexec = function exec(str) { var re = this; var lastindex, recopy, match, i; if (npcg_included) { recopy = new regexp('^' + re.source + '$(?!\\s)', regexpflags.call(re)); } if (updates_last_index_wrong) lastindex = re[last_index]; match = nativeexec.call(re, str); if (updates_last_index_wrong && match) { re[last_index] = re.global ? match.index + match[0].length : lastindex; } if (npcg_included && match && match.length > 1) { // fix browsers whose `exec` methods don't consistently return `undefined` // for npcg, like ie8. note: this doesn' work for /(.?)?/ // eslint-disable-next-line no-loop-func nativereplace.call(match[0], recopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } }); } return match; }; } module.exports = patchedexec; },{"44":44}],97:[function(_dereq_,module,exports){ // 7.2.9 samevalue(x, y) module.exports = object.is || function is(x, y) { // eslint-disable-next-line no-self-compare return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; },{}],98:[function(_dereq_,module,exports){ // works with __proto__ only. old v8 can't work with null proto objects. /* eslint-disable no-proto */ var isobject = _dereq_(57); var anobject = _dereq_(16); var check = function (o, proto) { anobject(o); if (!isobject(proto) && proto !== null) throw typeerror(proto + ": can't set as prototype!"); }; module.exports = { set: object.setprototypeof || ('__proto__' in {} ? // eslint-disable-line function (test, buggy, set) { try { set = _dereq_(32)(function.call, _dereq_(77).f(object.prototype, '__proto__').set, 2); set(test, []); buggy = !(test instanceof array); } catch (e) { buggy = true; } return function setprototypeof(o, proto) { check(o, proto); if (buggy) o.__proto__ = proto; else set(o, proto); return o; }; }({}, false) : undefined), check: check }; },{"16":16,"32":32,"57":57,"77":77}],99:[function(_dereq_,module,exports){ 'use strict'; var global = _dereq_(46); var dp = _dereq_(75); var descriptors = _dereq_(36); var species = _dereq_(128)('species'); module.exports = function (key) { var c = global[key]; if (descriptors && c && !c[species]) dp.f(c, species, { configurable: true, get: function () { return this; } }); }; },{"128":128,"36":36,"46":46,"75":75}],100:[function(_dereq_,module,exports){ var def = _dereq_(75).f; var has = _dereq_(47); var tag = _dereq_(128)('tostringtag'); module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, tag)) def(it, tag, { configurable: true, value: tag }); }; },{"128":128,"47":47,"75":75}],101:[function(_dereq_,module,exports){ var shared = _dereq_(102)('keys'); var uid = _dereq_(123); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; },{"102":102,"123":123}],102:[function(_dereq_,module,exports){ var core = _dereq_(30); var global = _dereq_(46); var shared = '__core-js_shared__'; var store = global[shared] || (global[shared] = {}); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ version: core.version, mode: _dereq_(65) ? 'pure' : 'global', copyright: '⩠2018 denis pushkarev (zloirock.ru)' }); },{"30":30,"46":46,"65":65}],103:[function(_dereq_,module,exports){ // 7.3.20 speciesconstructor(o, defaultconstructor) var anobject = _dereq_(16); var afunction = _dereq_(11); var species = _dereq_(128)('species'); module.exports = function (o, d) { var c = anobject(o).constructor; var s; return c === undefined || (s = anobject(c)[species]) == undefined ? d : afunction(s); }; },{"11":11,"128":128,"16":16}],104:[function(_dereq_,module,exports){ 'use strict'; var fails = _dereq_(42); module.exports = function (method, arg) { return !!method && fails(function () { // eslint-disable-next-line no-useless-call arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); }); }; },{"42":42}],105:[function(_dereq_,module,exports){ var tointeger = _dereq_(115); var defined = _dereq_(35); // true -> string#at // false -> string#codepointat module.exports = function (to_string) { return function (that, 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; a = s.charcodeat(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charcodeat(i + 1)) < 0xdc00 || b > 0xdfff ? to_string ? s.charat(i) : a : to_string ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; },{"115":115,"35":35}],106:[function(_dereq_,module,exports){ // helper for string#{startswith, endswith, includes} var isregexp = _dereq_(58); var defined = _dereq_(35); module.exports = function (that, searchstring, name) { if (isregexp(searchstring)) throw typeerror('string#' + name + " doesn't accept regex!"); return string(defined(that)); }; },{"35":35,"58":58}],107:[function(_dereq_,module,exports){ var $export = _dereq_(40); var fails = _dereq_(42); var defined = _dereq_(35); var quot = /"/g; // b.2.3.2.1 createhtml(string, tag, attribute, value) var createhtml = function (string, tag, attribute, value) { var s = string(defined(string)); var p1 = '<' + tag; if (attribute !== '') p1 += ' ' + attribute + '="' + string(value).replace(quot, '"') + '"'; return p1 + '>' + s + ''; }; module.exports = function (name, exec) { var o = {}; o[name] = exec(createhtml); $export($export.p + $export.f * fails(function () { var test = ''[name]('"'); return test !== test.tolowercase() || test.split('"').length > 3; }), 'string', o); }; },{"35":35,"40":40,"42":42}],108:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-string-pad-start-end var tolength = _dereq_(117); var repeat = _dereq_(109); var defined = _dereq_(35); module.exports = function (that, maxlength, fillstring, left) { var s = string(defined(that)); var stringlength = s.length; var fillstr = fillstring === undefined ? ' ' : string(fillstring); var intmaxlength = tolength(maxlength); if (intmaxlength <= stringlength || fillstr == '') return s; var filllen = intmaxlength - stringlength; 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; }; },{"109":109,"117":117,"35":35}],109:[function(_dereq_,module,exports){ 'use strict'; var tointeger = _dereq_(115); var defined = _dereq_(35); module.exports = function repeat(count) { var str = string(defined(this)); var res = ''; 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; }; },{"115":115,"35":35}],110:[function(_dereq_,module,exports){ var $export = _dereq_(40); var defined = _dereq_(35); var fails = _dereq_(42); var spaces = _dereq_(111); var space = '[' + spaces + ']'; var non = '\u200b\u0085'; var ltrim = regexp('^' + space + space + '*'); var rtrim = regexp(space + space + '*$'); var exporter = function (key, exec, alias) { var exp = {}; var force = fails(function () { return !!spaces[key]() || non[key]() != non; }); var fn = exp[key] = force ? exec(trim) : spaces[key]; if (alias) exp[alias] = fn; $export($export.p + $export.f * force, 'string', exp); }; // 1 -> string#trimleft // 2 -> string#trimright // 3 -> string#trim var trim = exporter.trim = function (string, type) { string = string(defined(string)); if (type & 1) string = string.replace(ltrim, ''); if (type & 2) string = string.replace(rtrim, ''); return string; }; module.exports = exporter; },{"111":111,"35":35,"40":40,"42":42}],111:[function(_dereq_,module,exports){ module.exports = '\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff'; },{}],112:[function(_dereq_,module,exports){ var ctx = _dereq_(32); var invoke = _dereq_(52); var html = _dereq_(49); var cel = _dereq_(37); var global = _dereq_(46); var process = global.process; var settask = global.setimmediate; var cleartask = global.clearimmediate; var messagechannel = global.messagechannel; var dispatch = global.dispatch; var counter = 0; var queue = {}; var onreadystatechange = 'onreadystatechange'; var defer, channel, port; var run = function () { var id = +this; // eslint-disable-next-line no-prototype-builtins if (queue.hasownproperty(id)) { var fn = queue[id]; delete queue[id]; fn(); } }; var listener = function (event) { run.call(event.data); }; // node.js 0.9+ & ie10+ has setimmediate, otherwise: if (!settask || !cleartask) { settask = function setimmediate(fn) { var args = []; var i = 1; 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); }; defer(counter); return counter; }; cleartask = function clearimmediate(id) { delete queue[id]; }; // node.js 0.8- if (_dereq_(26)(process) == 'process') { defer = function (id) { process.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)); }; // browsers with messagechannel, includes webworkers } else if (messagechannel) { channel = new messagechannel(); port = channel.port2; channel.port1.onmessage = listener; 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) { defer = function (id) { global.postmessage(id + '', '*'); }; global.addeventlistener('message', listener, false); // ie8- } else if (onreadystatechange in cel('script')) { defer = function (id) { 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); }; } } module.exports = { set: settask, clear: cleartask }; },{"26":26,"32":32,"37":37,"46":46,"49":49,"52":52}],113:[function(_dereq_,module,exports){ var tointeger = _dereq_(115); var max = math.max; var min = math.min; module.exports = function (index, length) { index = tointeger(index); return index < 0 ? max(index + length, 0) : min(index, length); }; },{"115":115}],114:[function(_dereq_,module,exports){ // https://tc39.github.io/ecma262/#sec-toindex var tointeger = _dereq_(115); var tolength = _dereq_(117); module.exports = function (it) { if (it === undefined) return 0; var number = tointeger(it); var length = tolength(number); if (number !== length) throw rangeerror('wrong length!'); return length; }; },{"115":115,"117":117}],115:[function(_dereq_,module,exports){ // 7.1.4 tointeger var ceil = math.ceil; var floor = math.floor; module.exports = function (it) { return isnan(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; },{}],116:[function(_dereq_,module,exports){ // to indexed object, toobject with fallback for non-array-like es3 strings var iobject = _dereq_(53); var defined = _dereq_(35); module.exports = function (it) { return iobject(defined(it)); }; },{"35":35,"53":53}],117:[function(_dereq_,module,exports){ // 7.1.15 tolength var tointeger = _dereq_(115); var min = math.min; module.exports = function (it) { return it > 0 ? min(tointeger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; },{"115":115}],118:[function(_dereq_,module,exports){ // 7.1.13 toobject(argument) var defined = _dereq_(35); module.exports = function (it) { return object(defined(it)); }; },{"35":35}],119:[function(_dereq_,module,exports){ // 7.1.1 toprimitive(input [, preferredtype]) var isobject = _dereq_(57); // instead of the es6 spec version, we didn't implement @@toprimitive case // and the second argument - flag - preferred type is a string module.exports = function (it, s) { 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; throw typeerror("can't convert object to primitive value"); }; },{"57":57}],120:[function(_dereq_,module,exports){ 'use strict'; if (_dereq_(36)) { var library = _dereq_(65); var global = _dereq_(46); var fails = _dereq_(42); var $export = _dereq_(40); var $typed = _dereq_(122); var $buffer = _dereq_(121); var ctx = _dereq_(32); var aninstance = _dereq_(15); var propertydesc = _dereq_(92); var hide = _dereq_(48); var redefineall = _dereq_(93); var tointeger = _dereq_(115); var tolength = _dereq_(117); var toindex = _dereq_(114); var toabsoluteindex = _dereq_(113); var toprimitive = _dereq_(119); var has = _dereq_(47); var classof = _dereq_(25); var isobject = _dereq_(57); var toobject = _dereq_(118); var isarrayiter = _dereq_(54); var create = _dereq_(74); var getprototypeof = _dereq_(81); var gopn = _dereq_(79).f; var getiterfn = _dereq_(129); var uid = _dereq_(123); var wks = _dereq_(128); var createarraymethod = _dereq_(20); var createarrayincludes = _dereq_(19); var speciesconstructor = _dereq_(103); var arrayiterators = _dereq_(140); var iterators = _dereq_(64); var $iterdetect = _dereq_(62); var setspecies = _dereq_(99); var arrayfill = _dereq_(18); var arraycopywithin = _dereq_(17); var $dp = _dereq_(75); var $gopd = _dereq_(77); var dp = $dp.f; var gopd = $gopd.f; var rangeerror = global.rangeerror; var typeerror = global.typeerror; var uint8array = global.uint8array; var array_buffer = 'arraybuffer'; var shared_buffer = 'shared' + array_buffer; var bytes_per_element = 'bytes_per_element'; var prototype = 'prototype'; var arrayproto = array[prototype]; var $arraybuffer = $buffer.arraybuffer; var $dataview = $buffer.dataview; var arrayforeach = createarraymethod(0); var arrayfilter = createarraymethod(2); var arraysome = createarraymethod(3); var arrayevery = createarraymethod(4); var arrayfind = createarraymethod(5); var arrayfindindex = createarraymethod(6); var arrayincludes = createarrayincludes(true); var arrayindexof = createarrayincludes(false); var arrayvalues = arrayiterators.values; var arraykeys = arrayiterators.keys; var arrayentries = arrayiterators.entries; var arraylastindexof = arrayproto.lastindexof; var arrayreduce = arrayproto.reduce; var arrayreduceright = arrayproto.reduceright; var arrayjoin = arrayproto.join; var arraysort = arrayproto.sort; 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 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); }); var little_endian = fails(function () { // eslint-disable-next-line no-undef return new uint8array(new uint16array([1]).buffer)[0] === 1; }); var forced_set = !!uint8array && !!uint8array[prototype].set && fails(function () { new uint8array(1).set({}); }); var tooffset = function (it, bytes) { var offset = tointeger(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; throw typeerror(it + ' is not a typed array!'); }; var allocate = function (c, length) { if (!(isobject(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); }; var fromlist = function (c, list) { var index = 0; var length = list.length; var result = allocate(c, length); while (length > index) result[index] = list[index++]; return result; }; var addgetter = function (it, key, internal) { dp(it, key, { get: function () { return this._d[internal]; } }); }; var $from = function from(source /* , mapfn, thisarg */) { var o = toobject(source); var alen = arguments.length; var mapfn = alen > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; var iterfn = getiterfn(o); var i, length, values, result, step, iterator; if (iterfn != undefined && !isarrayiter(iterfn)) { for (iterator = iterfn.call(o), values = [], i = 0; !(step = iterator.next()).done; i++) { values.push(step.value); } o = values; } if (mapping && alen > 2) mapfn = ctx(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]; } return result; }; var $of = function of(/* ...items */) { var index = 0; var length = arguments.length; var result = allocate(this, length); while (length > index) result[index] = arguments[index++]; return result; }; // ios safari 6.x fails here var to_locale_bug = !!uint8array && fails(function () { arraytolocalestring.call(new uint8array(1)); }); var $tolocalestring = function tolocalestring() { return arraytolocalestring.apply(to_locale_bug ? arrayslice.call(validate(this)) : validate(this), arguments); }; var proto = { copywithin: function copywithin(target, start /* , end */) { return arraycopywithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined); }, every: function every(callbackfn /* , thisarg */) { return arrayevery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars return arrayfill.apply(validate(this), arguments); }, filter: function filter(callbackfn /* , thisarg */) { return speciesfromlist(this, arrayfilter(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined)); }, find: function find(predicate /* , thisarg */) { return arrayfind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }, findindex: function findindex(predicate /* , thisarg */) { return arrayfindindex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }, foreach: function foreach(callbackfn /* , thisarg */) { arrayforeach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, indexof: function indexof(searchelement /* , fromindex */) { return arrayindexof(validate(this), searchelement, arguments.length > 1 ? arguments[1] : undefined); }, includes: function includes(searchelement /* , fromindex */) { return arrayincludes(validate(this), searchelement, arguments.length > 1 ? arguments[1] : undefined); }, join: function join(separator) { // eslint-disable-line no-unused-vars return arrayjoin.apply(validate(this), arguments); }, lastindexof: function lastindexof(searchelement /* , fromindex */) { // eslint-disable-line no-unused-vars return arraylastindexof.apply(validate(this), arguments); }, map: function map(mapfn /* , thisarg */) { return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined); }, reduce: function reduce(callbackfn /* , initialvalue */) { // eslint-disable-line no-unused-vars return arrayreduce.apply(validate(this), arguments); }, reduceright: function reduceright(callbackfn /* , initialvalue */) { // eslint-disable-line no-unused-vars return arrayreduceright.apply(validate(this), arguments); }, reverse: function reverse() { var that = this; var length = validate(that).length; var middle = math.floor(length / 2); var index = 0; var value; while (index < middle) { value = that[index]; that[index++] = that[--length]; that[length] = value; } return that; }, some: function some(callbackfn /* , thisarg */) { return arraysome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, sort: function sort(comparefn) { return arraysort.call(validate(this), comparefn); }, 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]))( o.buffer, o.byteoffset + $begin * o.bytes_per_element, tolength((end === undefined ? length : toabsoluteindex(end, length)) - $begin) ); } }; var $slice = function slice(start, end) { return speciesfromlist(this, arrayslice.call(validate(this), start, end)); }; var $set = function set(arraylike /* , offset */) { validate(this); var offset = tooffset(arguments[1], 1); var length = this.length; var src = toobject(arraylike); var len = tolength(src.length); var index = 0; if (len + offset > length) throw rangeerror(wrong_length); while (index < len) this[offset + index] = src[index++]; }; var $iterators = { entries: function entries() { return arrayentries.call(validate(this)); }, keys: function keys() { return arraykeys.call(validate(this)); }, values: function values() { return arrayvalues.call(validate(this)); } }; var istaindex = function (target, key) { return isobject(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)) ? 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') // todo: add validation descriptor w/o calling accessors && !desc.configurable && (!has(desc, 'writable') || desc.writable) && (!has(desc, 'enumerable') || desc.enumerable) ) { target[key] = desc.value; return target; } return dp(target, key, desc); }; if (!all_constructors) { $gopd.f = $getdesc; $dp.f = $setdesc; } $export($export.s + $export.f * !all_constructors, 'object', { getownpropertydescriptor: $getdesc, defineproperty: $setdesc }); if (fails(function () { arraytostring.call({}); })) { arraytostring = arraytolocalestring = function tostring() { return arrayjoin.call(this); }; } var $typedarrayprototype$ = redefineall({}, proto); redefineall($typedarrayprototype$, $iterators); hide($typedarrayprototype$, iterator, $iterators.values); redefineall($typedarrayprototype$, { slice: $slice, set: $set, constructor: function () { /* noop */ }, tostring: arraytostring, tolocalestring: $tolocalestring }); addgetter($typedarrayprototype$, 'buffer', 'b'); addgetter($typedarrayprototype$, 'byteoffset', 'o'); addgetter($typedarrayprototype$, 'bytelength', 'l'); addgetter($typedarrayprototype$, 'length', 'e'); dp($typedarrayprototype$, tag, { get: function () { return this[typed_array]; } }); // eslint-disable-next-line max-statements module.exports = function (key, bytes, wrapper, clamped) { clamped = !!clamped; var name = key + (clamped ? 'clamped' : '') + 'array'; var getter = 'get' + key; var setter = 'set' + key; var typedarray = global[name]; var base = typedarray || {}; var tac = typedarray && getprototypeof(typedarray); var forced = !typedarray || !$typed.abv; var o = {}; var typedarrayprototype = typedarray && typedarray[prototype]; var getter = function (that, index) { var data = that._d; return data.v[getter](index * bytes + data.o, little_endian); }; var setter = function (that, index, value) { var data = that._d; if (clamped) value = (value = math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff; data.v[setter](index * bytes + data.o, value, little_endian); }; var addelement = function (that, index) { dp(that, index, { get: function () { return getter(this, index); }, set: function (value) { return setter(this, index, value); }, enumerable: true }); }; if (forced) { typedarray = wrapper(function (that, data, $offset, $length) { aninstance(that, typedarray, name, '_d'); var index = 0; var offset = 0; var buffer, bytelength, length, klass; if (!isobject(data)) { length = toindex(data); bytelength = length * bytes; buffer = new $arraybuffer(bytelength); } else if (data instanceof $arraybuffer || (klass = classof(data)) == array_buffer || klass == shared_buffer) { buffer = data; offset = tooffset($offset, bytes); var $len = data.bytelength; if ($length === undefined) { if ($len % bytes) throw rangeerror(wrong_length); bytelength = $len - offset; if (bytelength < 0) throw rangeerror(wrong_length); } else { bytelength = tolength($length) * bytes; if (bytelength + offset > $len) throw rangeerror(wrong_length); } length = bytelength / bytes; } else if (typed_array in data) { return fromlist(typedarray, data); } else { return $from.call(typedarray, data); } hide(that, '_d', { b: buffer, o: offset, l: bytelength, e: length, v: new $dataview(buffer) }); while (index < length) addelement(that, index++); }); typedarrayprototype = typedarray[prototype] = create($typedarrayprototype$); hide(typedarrayprototype, 'constructor', typedarray); } else if (!fails(function () { typedarray(1); }) || !fails(function () { new typedarray(-1); // eslint-disable-line no-new }) || !$iterdetect(function (iter) { new typedarray(); // eslint-disable-line no-new new typedarray(null); // eslint-disable-line no-new new typedarray(1.5); // eslint-disable-line no-new new typedarray(iter); // eslint-disable-line no-new }, true)) { typedarray = wrapper(function (that, data, $offset, $length) { aninstance(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 (data instanceof $arraybuffer || (klass = classof(data)) == array_buffer || klass == shared_buffer) { return $length !== undefined ? new base(data, tooffset($offset, bytes), $length) : $offset !== undefined ? new base(data, tooffset($offset, bytes)) : new base(data); } if (typed_array in data) return fromlist(typedarray, data); 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]); }); typedarray[prototype] = typedarrayprototype; if (!library) typedarrayprototype.constructor = typedarray; } var $nativeiterator = typedarrayprototype[iterator]; var correct_iter_name = !!$nativeiterator && ($nativeiterator.name == 'values' || $nativeiterator.name == undefined); var $iterator = $iterators.values; hide(typedarray, typed_constructor, true); hide(typedarrayprototype, typed_array, name); hide(typedarrayprototype, view, true); hide(typedarrayprototype, def_constructor, typedarray); if (clamped ? new typedarray(1)[tag] != name : !(tag in typedarrayprototype)) { dp(typedarrayprototype, tag, { get: function () { return name; } }); } o[name] = typedarray; $export($export.g + $export.w + $export.f * (typedarray != base), o); $export($export.s, name, { bytes_per_element: bytes }); $export($export.s + $export.f * fails(function () { base.of.call(typedarray, 1); }), name, { from: $from, of: $of }); if (!(bytes_per_element in typedarrayprototype)) hide(typedarrayprototype, bytes_per_element, bytes); $export($export.p, name, proto); setspecies(name); $export($export.p + $export.f * forced_set, name, { set: $set }); $export($export.p + $export.f * !correct_iter_name, name, $iterators); if (!library && typedarrayprototype.tostring != arraytostring) typedarrayprototype.tostring = arraytostring; $export($export.p + $export.f * fails(function () { new typedarray(1).slice(); }), name, { slice: $slice }); $export($export.p + $export.f * (fails(function () { return [1, 2].tolocalestring() != new typedarray([1, 2]).tolocalestring(); }) || !fails(function () { typedarrayprototype.tolocalestring.call([1, 2]); })), name, { tolocalestring: $tolocalestring }); iterators[name] = correct_iter_name ? $nativeiterator : $iterator; if (!library && !correct_iter_name) hide(typedarrayprototype, iterator, $iterator); }; } else module.exports = function () { /* empty */ }; },{"103":103,"113":113,"114":114,"115":115,"117":117,"118":118,"119":119,"121":121,"122":122,"123":123,"128":128,"129":129,"140":140,"15":15,"17":17,"18":18,"19":19,"20":20,"25":25,"32":32,"36":36,"40":40,"42":42,"46":46,"47":47,"48":48,"54":54,"57":57,"62":62,"64":64,"65":65,"74":74,"75":75,"77":77,"79":79,"81":81,"92":92,"93":93,"99":99}],121:[function(_dereq_,module,exports){ 'use strict'; var global = _dereq_(46); var descriptors = _dereq_(36); var library = _dereq_(65); var $typed = _dereq_(122); var hide = _dereq_(48); var redefineall = _dereq_(93); var fails = _dereq_(42); var aninstance = _dereq_(15); var tointeger = _dereq_(115); var tolength = _dereq_(117); var toindex = _dereq_(114); var gopn = _dereq_(79).f; var dp = _dereq_(75).f; var arrayfill = _dereq_(18); var settostringtag = _dereq_(100); var array_buffer = 'arraybuffer'; 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; // eslint-disable-next-line no-shadow-restricted-names var infinity = global.infinity; var basebuffer = $arraybuffer; var abs = math.abs; var pow = math.pow; var floor = math.floor; var log = math.log; 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; // ieee754 conversions based on https://github.com/feross/ieee754 function packieee754(value, mlen, nbytes) { var buffer = new array(nbytes); var elen = nbytes * 8 - mlen - 1; var emax = (1 << elen) - 1; var ebias = emax >> 1; var rt = mlen === 23 ? pow(2, -24) - pow(2, -77) : 0; var i = 0; var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0; var e, m, c; value = abs(value); // eslint-disable-next-line no-self-compare if (value != value || value === infinity) { // eslint-disable-next-line no-self-compare m = value != value ? 1 : 0; e = emax; } else { e = floor(log(value) / ln2); if (value * (c = pow(2, -e)) < 1) { e--; c *= 2; } if (e + ebias >= 1) { value += rt / c; } else { value += rt * pow(2, 1 - ebias); } if (value * c >= 2) { e++; c /= 2; } if (e + ebias >= emax) { m = 0; e = emax; } else if (e + ebias >= 1) { m = (value * c - 1) * pow(2, mlen); e = e + ebias; } else { m = value * pow(2, ebias - 1) * pow(2, mlen); e = 0; } } for (; mlen >= 8; buffer[i++] = m & 255, m /= 256, mlen -= 8); e = e << mlen | m; elen += mlen; for (; elen > 0; buffer[i++] = e & 255, e /= 256, elen -= 8); buffer[--i] |= s * 128; return buffer; } function unpackieee754(buffer, mlen, nbytes) { var elen = nbytes * 8 - mlen - 1; var emax = (1 << elen) - 1; var ebias = emax >> 1; var nbits = elen - 7; var i = nbytes - 1; var s = buffer[i--]; var e = s & 127; var m; s >>= 7; for (; nbits > 0; e = e * 256 + buffer[i], i--, nbits -= 8); m = e & (1 << -nbits) - 1; e >>= -nbits; nbits += mlen; for (; nbits > 0; m = m * 256 + buffer[i], i--, nbits -= 8); if (e === 0) { e = 1 - ebias; } else if (e === emax) { return m ? nan : s ? -infinity : infinity; } else { m = m + pow(2, mlen); e = e - ebias; } return (s ? -1 : 1) * m * pow(2, e - mlen); } function unpacki32(bytes) { return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0]; } function packi8(it) { return [it & 0xff]; } function packi16(it) { return [it & 0xff, it >> 8 & 0xff]; } function packi32(it) { return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff]; } function packf64(it) { return packieee754(it, 52, 8); } function packf32(it) { return packieee754(it, 23, 4); } function addgetter(c, key, internal) { dp(c[prototype], key, { get: function () { return this[internal]; } }); } function get(view, bytes, index, islittleendian) { var numindex = +index; var intindex = toindex(numindex); if (intindex + bytes > view[$length]) throw rangeerror(wrong_index); var store = view[$buffer]._b; var start = intindex + view[$offset]; var pack = store.slice(start, start + bytes); return islittleendian ? pack : pack.reverse(); } function set(view, bytes, index, conversion, value, islittleendian) { var numindex = +index; var intindex = toindex(numindex); if (intindex + bytes > view[$length]) throw rangeerror(wrong_index); var store = view[$buffer]._b; var start = intindex + view[$offset]; var pack = conversion(+value); for (var i = 0; i < bytes; i++) store[start + i] = pack[islittleendian ? i : bytes - i - 1]; } if (!$typed.abv) { $arraybuffer = function arraybuffer(length) { aninstance(this, $arraybuffer, array_buffer); var bytelength = toindex(length); this._b = arrayfill.call(new array(bytelength), 0); this[$length] = bytelength; }; $dataview = function dataview(buffer, byteoffset, bytelength) { aninstance(this, $dataview, data_view); aninstance(buffer, $arraybuffer, data_view); var bufferlength = buffer[$length]; var offset = tointeger(byteoffset); if (offset < 0 || offset > bufferlength) throw rangeerror('wrong offset!'); 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) { addgetter($arraybuffer, byte_length, '_l'); addgetter($dataview, buffer, '_b'); addgetter($dataview, byte_length, '_l'); addgetter($dataview, byte_offset, '_o'); } redefineall($dataview[prototype], { getint8: function getint8(byteoffset) { return get(this, 1, byteoffset)[0] << 24 >> 24; }, getuint8: function getuint8(byteoffset) { return get(this, 1, byteoffset)[0]; }, getint16: function getint16(byteoffset /* , littleendian */) { var bytes = get(this, 2, byteoffset, arguments[1]); return (bytes[1] << 8 | bytes[0]) << 16 >> 16; }, getuint16: function getuint16(byteoffset /* , littleendian */) { var bytes = get(this, 2, byteoffset, arguments[1]); return bytes[1] << 8 | bytes[0]; }, getint32: function getint32(byteoffset /* , littleendian */) { return unpacki32(get(this, 4, byteoffset, arguments[1])); }, getuint32: function getuint32(byteoffset /* , littleendian */) { return unpacki32(get(this, 4, byteoffset, arguments[1])) >>> 0; }, getfloat32: function getfloat32(byteoffset /* , littleendian */) { return unpackieee754(get(this, 4, byteoffset, arguments[1]), 23, 4); }, getfloat64: function getfloat64(byteoffset /* , littleendian */) { return unpackieee754(get(this, 8, byteoffset, arguments[1]), 52, 8); }, setint8: function setint8(byteoffset, value) { set(this, 1, byteoffset, packi8, value); }, setuint8: function setuint8(byteoffset, value) { set(this, 1, byteoffset, packi8, value); }, setint16: function setint16(byteoffset, value /* , littleendian */) { set(this, 2, byteoffset, packi16, value, arguments[2]); }, setuint16: function setuint16(byteoffset, value /* , littleendian */) { set(this, 2, byteoffset, packi16, value, arguments[2]); }, setint32: function setint32(byteoffset, value /* , littleendian */) { set(this, 4, byteoffset, packi32, value, arguments[2]); }, setuint32: function setuint32(byteoffset, value /* , littleendian */) { set(this, 4, byteoffset, packi32, value, arguments[2]); }, setfloat32: function setfloat32(byteoffset, value /* , littleendian */) { set(this, 4, byteoffset, packf32, value, arguments[2]); }, setfloat64: function setfloat64(byteoffset, value /* , littleendian */) { set(this, 8, byteoffset, packf64, value, arguments[2]); } }); } else { if (!fails(function () { $arraybuffer(1); }) || !fails(function () { new $arraybuffer(-1); // eslint-disable-line no-new }) || fails(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)); }; 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 (!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], { setint8: function setint8(byteoffset, value) { $setint8.call(this, byteoffset, value << 24 >> 24); }, setuint8: function setuint8(byteoffset, value) { $setint8.call(this, byteoffset, value << 24 >> 24); } }, true); } settostringtag($arraybuffer, array_buffer); settostringtag($dataview, data_view); hide($dataview[prototype], $typed.view, true); exports[array_buffer] = $arraybuffer; exports[data_view] = $dataview; },{"100":100,"114":114,"115":115,"117":117,"122":122,"15":15,"18":18,"36":36,"42":42,"46":46,"48":48,"65":65,"75":75,"79":79,"93":93}],122:[function(_dereq_,module,exports){ var global = _dereq_(46); var hide = _dereq_(48); var uid = _dereq_(123); var typed = uid('typed_array'); var view = uid('view'); var abv = !!(global.arraybuffer && global.dataview); var constr = abv; var i = 0; var l = 9; var typed; var typedarrayconstructors = ( 'int8array,uint8array,uint8clampedarray,int16array,uint16array,int32array,uint32array,float32array,float64array' ).split(','); while (i < l) { if (typed = global[typedarrayconstructors[i++]]) { hide(typed.prototype, typed, true); hide(typed.prototype, view, true); } else constr = false; } module.exports = { abv: abv, constr: constr, typed: typed, view: view }; },{"123":123,"46":46,"48":48}],123:[function(_dereq_,module,exports){ var id = 0; var px = math.random(); module.exports = function (key) { return 'symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).tostring(36)); }; },{}],124:[function(_dereq_,module,exports){ var global = _dereq_(46); var navigator = global.navigator; module.exports = navigator && navigator.useragent || ''; },{"46":46}],125:[function(_dereq_,module,exports){ var isobject = _dereq_(57); module.exports = function (it, type) { if (!isobject(it) || it._t !== type) throw typeerror('incompatible receiver, ' + type + ' required!'); return it; }; },{"57":57}],126:[function(_dereq_,module,exports){ var global = _dereq_(46); var core = _dereq_(30); var library = _dereq_(65); var wksext = _dereq_(127); var defineproperty = _dereq_(75).f; module.exports = 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) }); }; },{"127":127,"30":30,"46":46,"65":65,"75":75}],127:[function(_dereq_,module,exports){ exports.f = _dereq_(128); },{"128":128}],128:[function(_dereq_,module,exports){ var store = _dereq_(102)('wks'); var uid = _dereq_(123); var symbol = _dereq_(46).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)); }; $exports.store = store; },{"102":102,"123":123,"46":46}],129:[function(_dereq_,module,exports){ var classof = _dereq_(25); var iterator = _dereq_(128)('iterator'); var iterators = _dereq_(64); module.exports = _dereq_(30).getiteratormethod = function (it) { if (it != undefined) return it[iterator] || it['@@iterator'] || iterators[classof(it)]; }; },{"128":128,"25":25,"30":30,"64":64}],130:[function(_dereq_,module,exports){ // 22.1.3.3 array.prototype.copywithin(target, start, end = this.length) var $export = _dereq_(40); $export($export.p, 'array', { copywithin: _dereq_(17) }); _dereq_(13)('copywithin'); },{"13":13,"17":17,"40":40}],131:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $every = _dereq_(20)(4); $export($export.p + $export.f * !_dereq_(104)([].every, true), 'array', { // 22.1.3.5 / 15.4.4.16 array.prototype.every(callbackfn [, thisarg]) every: function every(callbackfn /* , thisarg */) { return $every(this, callbackfn, arguments[1]); } }); },{"104":104,"20":20,"40":40}],132:[function(_dereq_,module,exports){ // 22.1.3.6 array.prototype.fill(value, start = 0, end = this.length) var $export = _dereq_(40); $export($export.p, 'array', { fill: _dereq_(18) }); _dereq_(13)('fill'); },{"13":13,"18":18,"40":40}],133:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $filter = _dereq_(20)(2); $export($export.p + $export.f * !_dereq_(104)([].filter, true), 'array', { // 22.1.3.7 / 15.4.4.20 array.prototype.filter(callbackfn [, thisarg]) filter: function filter(callbackfn /* , thisarg */) { return $filter(this, callbackfn, arguments[1]); } }); },{"104":104,"20":20,"40":40}],134:[function(_dereq_,module,exports){ 'use strict'; // 22.1.3.9 array.prototype.findindex(predicate, thisarg = undefined) var $export = _dereq_(40); var $find = _dereq_(20)(6); var key = 'findindex'; var forced = true; // shouldn't skip holes if (key in []) array(1)[key](function () { forced = false; }); $export($export.p + $export.f * forced, 'array', { findindex: function findindex(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); _dereq_(13)(key); },{"13":13,"20":20,"40":40}],135:[function(_dereq_,module,exports){ 'use strict'; // 22.1.3.8 array.prototype.find(predicate, thisarg = undefined) var $export = _dereq_(40); var $find = _dereq_(20)(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', { find: function find(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); _dereq_(13)(key); },{"13":13,"20":20,"40":40}],136:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $foreach = _dereq_(20)(0); var strict = _dereq_(104)([].foreach, true); $export($export.p + $export.f * !strict, 'array', { // 22.1.3.10 / 15.4.4.18 array.prototype.foreach(callbackfn [, thisarg]) foreach: function foreach(callbackfn /* , thisarg */) { return $foreach(this, callbackfn, arguments[1]); } }); },{"104":104,"20":20,"40":40}],137:[function(_dereq_,module,exports){ 'use strict'; var ctx = _dereq_(32); var $export = _dereq_(40); var toobject = _dereq_(118); var call = _dereq_(59); var isarrayiter = _dereq_(54); var tolength = _dereq_(117); var createproperty = _dereq_(31); var getiterfn = _dereq_(129); $export($export.s + $export.f * !_dereq_(62)(function (iter) { array.from(iter); }), 'array', { // 22.1.2.1 array.from(arraylike, mapfn = undefined, thisarg = undefined) from: function from(arraylike /* , mapfn = undefined, thisarg = undefined */) { var o = toobject(arraylike); 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 = getiterfn(o); var length, result, step, iterator; 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))) { for (iterator = iterfn.call(o), result = new c(); !(step = iterator.next()).done; index++) { createproperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); } } else { length = tolength(o.length); for (result = new c(length); length > index; index++) { createproperty(result, index, mapping ? mapfn(o[index], index) : o[index]); } } result.length = index; return result; } }); },{"117":117,"118":118,"129":129,"31":31,"32":32,"40":40,"54":54,"59":59,"62":62}],138:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $indexof = _dereq_(19)(false); var $native = [].indexof; var negative_zero = !!$native && 1 / [1].indexof(1, -0) < 0; $export($export.p + $export.f * (negative_zero || !_dereq_(104)($native)), 'array', { // 22.1.3.11 / 15.4.4.14 array.prototype.indexof(searchelement [, fromindex]) indexof: function indexof(searchelement /* , fromindex = 0 */) { return negative_zero // convert -0 to +0 ? $native.apply(this, arguments) || 0 : $indexof(this, searchelement, arguments[1]); } }); },{"104":104,"19":19,"40":40}],139:[function(_dereq_,module,exports){ // 22.1.2.2 / 15.4.3.2 array.isarray(arg) var $export = _dereq_(40); $export($export.s, 'array', { isarray: _dereq_(55) }); },{"40":40,"55":55}],140:[function(_dereq_,module,exports){ 'use strict'; var addtounscopables = _dereq_(13); var step = _dereq_(63); var iterators = _dereq_(64); var toiobject = _dereq_(116); // 22.1.3.4 array.prototype.entries() // 22.1.3.13 array.prototype.keys() // 22.1.3.29 array.prototype.values() // 22.1.3.30 array.prototype[@@iterator]() module.exports = _dereq_(61)(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() }, function () { var o = this._t; var kind = this._k; var index = this._i++; if (!o || index >= o.length) { this._t = undefined; return step(1); } 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; addtounscopables('keys'); addtounscopables('values'); addtounscopables('entries'); },{"116":116,"13":13,"61":61,"63":63,"64":64}],141:[function(_dereq_,module,exports){ 'use strict'; // 22.1.3.13 array.prototype.join(separator) var $export = _dereq_(40); var toiobject = _dereq_(116); var arrayjoin = [].join; // fallback for not array-like strings $export($export.p + $export.f * (_dereq_(53) != object || !_dereq_(104)(arrayjoin)), 'array', { join: function join(separator) { return arrayjoin.call(toiobject(this), separator === undefined ? ',' : separator); } }); },{"104":104,"116":116,"40":40,"53":53}],142:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var toiobject = _dereq_(116); var tointeger = _dereq_(115); var tolength = _dereq_(117); var $native = [].lastindexof; var negative_zero = !!$native && 1 / [1].lastindexof(1, -0) < 0; $export($export.p + $export.f * (negative_zero || !_dereq_(104)($native)), 'array', { // 22.1.3.14 / 15.4.4.15 array.prototype.lastindexof(searchelement [, fromindex]) lastindexof: function lastindexof(searchelement /* , fromindex = @[*-1] */) { // convert -0 to +0 if (negative_zero) return $native.apply(this, arguments) || 0; var o = toiobject(this); var length = tolength(o.length); var index = length - 1; if (arguments.length > 1) index = math.min(index, tointeger(arguments[1])); if (index < 0) index = length + index; for (;index >= 0; index--) if (index in o) if (o[index] === searchelement) return index || 0; return -1; } }); },{"104":104,"115":115,"116":116,"117":117,"40":40}],143:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $map = _dereq_(20)(1); $export($export.p + $export.f * !_dereq_(104)([].map, true), 'array', { // 22.1.3.15 / 15.4.4.19 array.prototype.map(callbackfn [, thisarg]) map: function map(callbackfn /* , thisarg */) { return $map(this, callbackfn, arguments[1]); } }); },{"104":104,"20":20,"40":40}],144:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var createproperty = _dereq_(31); // webkit array.of isn't generic $export($export.s + $export.f * _dereq_(42)(function () { function f() { /* empty */ } return !(array.of.call(f) instanceof f); }), 'array', { // 22.1.2.3 array.of( ...items) of: function of(/* ...args */) { var index = 0; var alen = arguments.length; var result = new (typeof this == 'function' ? this : array)(alen); while (alen > index) createproperty(result, index, arguments[index++]); result.length = alen; return result; } }); },{"31":31,"40":40,"42":42}],145:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $reduce = _dereq_(21); $export($export.p + $export.f * !_dereq_(104)([].reduceright, true), 'array', { // 22.1.3.19 / 15.4.4.22 array.prototype.reduceright(callbackfn [, initialvalue]) reduceright: function reduceright(callbackfn /* , initialvalue */) { return $reduce(this, callbackfn, arguments.length, arguments[1], true); } }); },{"104":104,"21":21,"40":40}],146:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $reduce = _dereq_(21); $export($export.p + $export.f * !_dereq_(104)([].reduce, true), 'array', { // 22.1.3.18 / 15.4.4.21 array.prototype.reduce(callbackfn [, initialvalue]) reduce: function reduce(callbackfn /* , initialvalue */) { return $reduce(this, callbackfn, arguments.length, arguments[1], false); } }); },{"104":104,"21":21,"40":40}],147:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var html = _dereq_(49); var cof = _dereq_(26); var toabsoluteindex = _dereq_(113); var tolength = _dereq_(117); var arrayslice = [].slice; // fallback for not array-like es3 strings and dom objects $export($export.p + $export.f * _dereq_(42)(function () { if (html) arrayslice.call(html); }), 'array', { slice: function slice(begin, end) { var len = tolength(this.length); var klass = cof(this); end = end === undefined ? len : end; if (klass == 'array') return arrayslice.call(this, begin, end); var start = toabsoluteindex(begin, len); var upto = toabsoluteindex(end, len); var size = tolength(upto - start); var cloned = new array(size); var i = 0; for (; i < size; i++) cloned[i] = klass == 'string' ? this.charat(start + i) : this[start + i]; return cloned; } }); },{"113":113,"117":117,"26":26,"40":40,"42":42,"49":49}],148:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $some = _dereq_(20)(3); $export($export.p + $export.f * !_dereq_(104)([].some, true), 'array', { // 22.1.3.23 / 15.4.4.17 array.prototype.some(callbackfn [, thisarg]) some: function some(callbackfn /* , thisarg */) { return $some(this, callbackfn, arguments[1]); } }); },{"104":104,"20":20,"40":40}],149:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var afunction = _dereq_(11); var toobject = _dereq_(118); var fails = _dereq_(42); var $sort = [].sort; var test = [1, 2, 3]; $export($export.p + $export.f * (fails(function () { // ie8- test.sort(undefined); }) || !fails(function () { // v8 bug test.sort(null); // old webkit }) || !_dereq_(104)($sort)), 'array', { // 22.1.3.25 array.prototype.sort(comparefn) sort: function sort(comparefn) { return comparefn === undefined ? $sort.call(toobject(this)) : $sort.call(toobject(this), afunction(comparefn)); } }); },{"104":104,"11":11,"118":118,"40":40,"42":42}],150:[function(_dereq_,module,exports){ _dereq_(99)('array'); },{"99":99}],151:[function(_dereq_,module,exports){ // 20.3.3.1 / 15.9.4.4 date.now() var $export = _dereq_(40); $export($export.s, 'date', { now: function () { return new date().gettime(); } }); },{"40":40}],152:[function(_dereq_,module,exports){ // 20.3.4.36 / 15.9.5.43 date.prototype.toisostring() var $export = _dereq_(40); var toisostring = _dereq_(33); // phantomjs / old webkit has a broken implementations $export($export.p + $export.f * (date.prototype.toisostring !== toisostring), 'date', { toisostring: toisostring }); },{"33":33,"40":40}],153:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var toobject = _dereq_(118); var toprimitive = _dereq_(119); $export($export.p + $export.f * _dereq_(42)(function () { return new date(nan).tojson() !== null || date.prototype.tojson.call({ toisostring: function () { return 1; } }) !== 1; }), 'date', { // eslint-disable-next-line no-unused-vars tojson: function tojson(key) { var o = toobject(this); var pv = toprimitive(o); return typeof pv == 'number' && !isfinite(pv) ? null : o.toisostring(); } }); },{"118":118,"119":119,"40":40,"42":42}],154:[function(_dereq_,module,exports){ var to_primitive = _dereq_(128)('toprimitive'); var proto = date.prototype; if (!(to_primitive in proto)) _dereq_(48)(proto, to_primitive, _dereq_(34)); },{"128":128,"34":34,"48":48}],155:[function(_dereq_,module,exports){ var dateproto = date.prototype; var invalid_date = 'invalid date'; var to_string = 'tostring'; var $tostring = dateproto[to_string]; var gettime = dateproto.gettime; if (new date(nan) + '' != invalid_date) { _dereq_(94)(dateproto, to_string, function tostring() { var value = gettime.call(this); // eslint-disable-next-line no-self-compare return value === value ? $tostring.call(this) : invalid_date; }); } },{"94":94}],156:[function(_dereq_,module,exports){ // 19.2.3.2 / 15.3.4.5 function.prototype.bind(thisarg, args...) var $export = _dereq_(40); $export($export.p, 'function', { bind: _dereq_(24) }); },{"24":24,"40":40}],157:[function(_dereq_,module,exports){ 'use strict'; var isobject = _dereq_(57); var getprototypeof = _dereq_(81); var has_instance = _dereq_(128)('hasinstance'); var functionproto = function.prototype; // 19.2.3.6 function.prototype[@@hasinstance](v) if (!(has_instance in functionproto)) _dereq_(75).f(functionproto, has_instance, { value: function (o) { if (typeof this != 'function' || !isobject(o)) return false; if (!isobject(this.prototype)) return o instanceof this; // for environment w/o native `@@hasinstance` logic enough `instanceof`, but add this: while (o = getprototypeof(o)) if (this.prototype === o) return true; return false; } }); },{"128":128,"57":57,"75":75,"81":81}],158:[function(_dereq_,module,exports){ var dp = _dereq_(75).f; var fproto = function.prototype; var namere = /^\s*function ([^ (]*)/; var name = 'name'; // 19.2.4.2 name name in fproto || _dereq_(36) && dp(fproto, name, { configurable: true, get: function () { try { return ('' + this).match(namere)[1]; } catch (e) { return ''; } } }); },{"36":36,"75":75}],159:[function(_dereq_,module,exports){ 'use strict'; var strong = _dereq_(27); var validate = _dereq_(125); var map = 'map'; // 23.1 map objects module.exports = _dereq_(29)(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 = 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 strong.def(validate(this, map), key === 0 ? 0 : key, value); } }, strong, true); },{"125":125,"27":27,"29":29}],160:[function(_dereq_,module,exports){ // 20.2.2.3 math.acosh(x) var $export = _dereq_(40); var log1p = _dereq_(68); var sqrt = math.sqrt; var $acosh = math.acosh; $export($export.s + $export.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 && $acosh(infinity) == infinity ), 'math', { acosh: function acosh(x) { return (x = +x) < 1 ? nan : x > 94906265.62425156 ? math.log(x) + math.ln2 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); } }); },{"40":40,"68":68}],161:[function(_dereq_,module,exports){ // 20.2.2.5 math.asinh(x) var $export = _dereq_(40); var $asinh = math.asinh; function asinh(x) { return !isfinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : math.log(x + math.sqrt(x * x + 1)); } // tor browser bug: math.asinh(0) -> -0 $export($export.s + $export.f * !($asinh && 1 / $asinh(0) > 0), 'math', { asinh: asinh }); },{"40":40}],162:[function(_dereq_,module,exports){ // 20.2.2.7 math.atanh(x) var $export = _dereq_(40); var $atanh = math.atanh; // tor browser bug: math.atanh(-0) -> 0 $export($export.s + $export.f * !($atanh && 1 / $atanh(-0) < 0), 'math', { atanh: function atanh(x) { return (x = +x) == 0 ? x : math.log((1 + x) / (1 - x)) / 2; } }); },{"40":40}],163:[function(_dereq_,module,exports){ // 20.2.2.9 math.cbrt(x) var $export = _dereq_(40); var sign = _dereq_(69); $export($export.s, 'math', { cbrt: function cbrt(x) { return sign(x = +x) * math.pow(math.abs(x), 1 / 3); } }); },{"40":40,"69":69}],164:[function(_dereq_,module,exports){ // 20.2.2.11 math.clz32(x) var $export = _dereq_(40); $export($export.s, 'math', { clz32: function clz32(x) { return (x >>>= 0) ? 31 - math.floor(math.log(x + 0.5) * math.log2e) : 32; } }); },{"40":40}],165:[function(_dereq_,module,exports){ // 20.2.2.12 math.cosh(x) var $export = _dereq_(40); var exp = math.exp; $export($export.s, 'math', { cosh: function cosh(x) { return (exp(x = +x) + exp(-x)) / 2; } }); },{"40":40}],166:[function(_dereq_,module,exports){ // 20.2.2.14 math.expm1(x) var $export = _dereq_(40); var $expm1 = _dereq_(66); $export($export.s + $export.f * ($expm1 != math.expm1), 'math', { expm1: $expm1 }); },{"40":40,"66":66}],167:[function(_dereq_,module,exports){ // 20.2.2.16 math.fround(x) var $export = _dereq_(40); $export($export.s, 'math', { fround: _dereq_(67) }); },{"40":40,"67":67}],168:[function(_dereq_,module,exports){ // 20.2.2.17 math.hypot([value1[, value2[, … ]]]) var $export = _dereq_(40); var abs = math.abs; $export($export.s, 'math', { hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars var sum = 0; var i = 0; var alen = arguments.length; var larg = 0; var arg, div; while (i < alen) { arg = abs(arguments[i++]); if (larg < arg) { div = larg / arg; sum = sum * div * div + 1; larg = arg; } else if (arg > 0) { div = arg / larg; sum += div * div; } else sum += arg; } return larg === infinity ? infinity : larg * math.sqrt(sum); } }); },{"40":40}],169:[function(_dereq_,module,exports){ // 20.2.2.18 math.imul(x, y) var $export = _dereq_(40); var $imul = math.imul; // some webkit versions fails with big numbers, some has wrong arity $export($export.s + $export.f * _dereq_(42)(function () { return $imul(0xffffffff, 5) != -5 || $imul.length != 2; }), 'math', { imul: function imul(x, y) { var uint16 = 0xffff; var xn = +x; var yn = +y; var xl = uint16 & xn; var yl = uint16 & yn; return 0 | xl * yl + ((uint16 & xn >>> 16) * yl + xl * (uint16 & yn >>> 16) << 16 >>> 0); } }); },{"40":40,"42":42}],170:[function(_dereq_,module,exports){ // 20.2.2.21 math.log10(x) var $export = _dereq_(40); $export($export.s, 'math', { log10: function log10(x) { return math.log(x) * math.log10e; } }); },{"40":40}],171:[function(_dereq_,module,exports){ // 20.2.2.20 math.log1p(x) var $export = _dereq_(40); $export($export.s, 'math', { log1p: _dereq_(68) }); },{"40":40,"68":68}],172:[function(_dereq_,module,exports){ // 20.2.2.22 math.log2(x) var $export = _dereq_(40); $export($export.s, 'math', { log2: function log2(x) { return math.log(x) / math.ln2; } }); },{"40":40}],173:[function(_dereq_,module,exports){ // 20.2.2.28 math.sign(x) var $export = _dereq_(40); $export($export.s, 'math', { sign: _dereq_(69) }); },{"40":40,"69":69}],174:[function(_dereq_,module,exports){ // 20.2.2.30 math.sinh(x) var $export = _dereq_(40); var expm1 = _dereq_(66); var exp = math.exp; // v8 near chromium 38 has a problem with very small numbers $export($export.s + $export.f * _dereq_(42)(function () { return !math.sinh(-2e-17) != -2e-17; }), 'math', { sinh: function sinh(x) { return math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (math.e / 2); } }); },{"40":40,"42":42,"66":66}],175:[function(_dereq_,module,exports){ // 20.2.2.33 math.tanh(x) var $export = _dereq_(40); var expm1 = _dereq_(66); var exp = math.exp; $export($export.s, 'math', { tanh: function tanh(x) { var a = expm1(x = +x); var b = expm1(-x); return a == infinity ? 1 : b == infinity ? -1 : (a - b) / (exp(x) + exp(-x)); } }); },{"40":40,"66":66}],176:[function(_dereq_,module,exports){ // 20.2.2.34 math.trunc(x) var $export = _dereq_(40); $export($export.s, 'math', { trunc: function trunc(it) { return (it > 0 ? math.floor : math.ceil)(it); } }); },{"40":40}],177:[function(_dereq_,module,exports){ 'use strict'; var global = _dereq_(46); var has = _dereq_(47); var cof = _dereq_(26); var inheritifrequired = _dereq_(51); var toprimitive = _dereq_(119); var fails = _dereq_(42); var gopn = _dereq_(79).f; var gopd = _dereq_(77).f; var dp = _dereq_(75).f; var $trim = _dereq_(110).trim; var number = 'number'; var $number = global[number]; var base = $number; var proto = $number.prototype; // opera ~12 has broken object#tostring var broken_cof = cof(_dereq_(74)(proto)) == number; var trim = 'trim' in string.prototype; // 7.1.3 tonumber(argument) var tonumber = function (argument) { var it = toprimitive(argument, false); if (typeof it == 'string' && it.length > 2) { it = trim ? it.trim() : $trim(it, 3); var first = it.charcodeat(0); var third, radix, maxcode; if (first === 43 || first === 45) { third = it.charcodeat(2); if (third === 88 || third === 120) return nan; // number('+0x1') should be nan, old v8 fix } else if (first === 48) { switch (it.charcodeat(1)) { case 66: case 98: radix = 2; maxcode = 49; break; // fast equal /^0b[01]+$/i case 79: case 111: radix = 8; maxcode = 55; break; // fast equal /^0o[0-7]+$/i default: return +it; } for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { code = digits.charcodeat(i); // parseint parses a string to a first unavailable symbol // but tonumber should return nan if a string contains unavailable symbols if (code < 48 || code > maxcode) return nan; } return parseint(digits, radix); } } return +it; }; if (!$number(' 0o1') || !$number('0b1') || $number('+0x1')) { $number = function number(value) { var it = arguments.length < 1 ? 0 : value; var that = this; return that instanceof $number // check on 1..constructor(foo) case && (broken_cof ? fails(function () { proto.valueof.call(that); }) : cof(that) != number) ? inheritifrequired(new base(tonumber(it)), that, $number) : tonumber(it); }; for (var keys = _dereq_(36) ? gopn(base) : ( // es3: 'max_value,min_value,nan,negative_infinity,positive_infinity,' + // es6 (in case, if modules with es6 number statics required before): 'epsilon,isfinite,isinteger,isnan,issafeinteger,max_safe_integer,' + 'min_safe_integer,parsefloat,parseint,isinteger' ).split(','), j = 0, key; keys.length > j; j++) { if (has(base, key = keys[j]) && !has($number, key)) { dp($number, key, gopd(base, key)); } } $number.prototype = proto; proto.constructor = $number; _dereq_(94)(global, number, $number); } },{"110":110,"119":119,"26":26,"36":36,"42":42,"46":46,"47":47,"51":51,"74":74,"75":75,"77":77,"79":79,"94":94}],178:[function(_dereq_,module,exports){ // 20.1.2.1 number.epsilon var $export = _dereq_(40); $export($export.s, 'number', { epsilon: math.pow(2, -52) }); },{"40":40}],179:[function(_dereq_,module,exports){ // 20.1.2.2 number.isfinite(number) var $export = _dereq_(40); var _isfinite = _dereq_(46).isfinite; $export($export.s, 'number', { isfinite: function isfinite(it) { return typeof it == 'number' && _isfinite(it); } }); },{"40":40,"46":46}],180:[function(_dereq_,module,exports){ // 20.1.2.3 number.isinteger(number) var $export = _dereq_(40); $export($export.s, 'number', { isinteger: _dereq_(56) }); },{"40":40,"56":56}],181:[function(_dereq_,module,exports){ // 20.1.2.4 number.isnan(number) var $export = _dereq_(40); $export($export.s, 'number', { isnan: function isnan(number) { // eslint-disable-next-line no-self-compare return number != number; } }); },{"40":40}],182:[function(_dereq_,module,exports){ // 20.1.2.5 number.issafeinteger(number) var $export = _dereq_(40); var isinteger = _dereq_(56); var abs = math.abs; $export($export.s, 'number', { issafeinteger: function issafeinteger(number) { return isinteger(number) && abs(number) <= 0x1fffffffffffff; } }); },{"40":40,"56":56}],183:[function(_dereq_,module,exports){ // 20.1.2.6 number.max_safe_integer var $export = _dereq_(40); $export($export.s, 'number', { max_safe_integer: 0x1fffffffffffff }); },{"40":40}],184:[function(_dereq_,module,exports){ // 20.1.2.10 number.min_safe_integer var $export = _dereq_(40); $export($export.s, 'number', { min_safe_integer: -0x1fffffffffffff }); },{"40":40}],185:[function(_dereq_,module,exports){ var $export = _dereq_(40); var $parsefloat = _dereq_(88); // 20.1.2.12 number.parsefloat(string) $export($export.s + $export.f * (number.parsefloat != $parsefloat), 'number', { parsefloat: $parsefloat }); },{"40":40,"88":88}],186:[function(_dereq_,module,exports){ var $export = _dereq_(40); var $parseint = _dereq_(89); // 20.1.2.13 number.parseint(string, radix) $export($export.s + $export.f * (number.parseint != $parseint), 'number', { parseint: $parseint }); },{"40":40,"89":89}],187:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var tointeger = _dereq_(115); var anumbervalue = _dereq_(12); var repeat = _dereq_(109); var $tofixed = 1.0.tofixed; var floor = math.floor; var data = [0, 0, 0, 0, 0, 0]; var error = 'number.tofixed: incorrect invocation!'; var zero = '0'; var multiply = function (n, c) { var i = -1; var c2 = c; while (++i < 6) { c2 += n * data[i]; data[i] = c2 % 1e7; c2 = floor(c2 / 1e7); } }; var divide = function (n) { var i = 6; var c = 0; while (--i >= 0) { c += data[i]; data[i] = floor(c / n); c = (c % n) * 1e7; } }; var numtostring = function () { var i = 6; var s = ''; while (--i >= 0) { if (s !== '' || i === 0 || data[i] !== 0) { var t = string(data[i]); s = s === '' ? t : s + repeat.call(zero, 7 - t.length) + t; } } return s; }; var pow = function (x, n, acc) { return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); }; var log = function (x) { var n = 0; var x2 = x; while (x2 >= 4096) { n += 12; x2 /= 4096; } while (x2 >= 2) { n += 1; x2 /= 2; } return n; }; $export($export.p + $export.f * (!!$tofixed && ( 0.00008.tofixed(3) !== '0.000' || 0.9.tofixed(0) !== '1' || 1.255.tofixed(2) !== '1.25' || 1000000000000000128.0.tofixed(0) !== '1000000000000000128' ) || !_dereq_(42)(function () { // v8 ~ android 4.3- $tofixed.call({}); })), 'number', { tofixed: function tofixed(fractiondigits) { var x = anumbervalue(this, error); var f = tointeger(fractiondigits); var s = ''; var m = zero; var e, z, j, k; if (f < 0 || f > 20) throw rangeerror(error); // eslint-disable-next-line no-self-compare if (x != x) return 'nan'; if (x <= -1e21 || x >= 1e21) return string(x); if (x < 0) { s = '-'; x = -x; } if (x > 1e-21) { e = log(x * pow(2, 69, 1)) - 69; z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1); z *= 0x10000000000000; e = 52 - e; if (e > 0) { multiply(0, z); j = f; while (j >= 7) { multiply(1e7, 0); j -= 7; } multiply(pow(10, j, 1), 0); j = e - 1; while (j >= 23) { divide(1 << 23); j -= 23; } divide(1 << j); multiply(1, 1); divide(2); m = numtostring(); } else { multiply(0, z); multiply(1 << -e, 0); m = numtostring() + repeat.call(zero, f); } } if (f > 0) { k = m.length; m = s + (k <= f ? '0.' + repeat.call(zero, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f)); } else { m = s + m; } return m; } }); },{"109":109,"115":115,"12":12,"40":40,"42":42}],188:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $fails = _dereq_(42); var anumbervalue = _dereq_(12); var $toprecision = 1.0.toprecision; $export($export.p + $export.f * ($fails(function () { // ie7- return $toprecision.call(1, undefined) !== '1'; }) || !$fails(function () { // v8 ~ android 4.3- $toprecision.call({}); })), 'number', { toprecision: function toprecision(precision) { var that = anumbervalue(this, 'number#toprecision: incorrect invocation!'); return precision === undefined ? $toprecision.call(that) : $toprecision.call(that, precision); } }); },{"12":12,"40":40,"42":42}],189:[function(_dereq_,module,exports){ // 19.1.3.1 object.assign(target, source) var $export = _dereq_(40); $export($export.s + $export.f, 'object', { assign: _dereq_(73) }); },{"40":40,"73":73}],190:[function(_dereq_,module,exports){ var $export = _dereq_(40); // 19.1.2.2 / 15.2.3.5 object.create(o [, properties]) $export($export.s, 'object', { create: _dereq_(74) }); },{"40":40,"74":74}],191:[function(_dereq_,module,exports){ var $export = _dereq_(40); // 19.1.2.3 / 15.2.3.7 object.defineproperties(o, properties) $export($export.s + $export.f * !_dereq_(36), 'object', { defineproperties: _dereq_(76) }); },{"36":36,"40":40,"76":76}],192:[function(_dereq_,module,exports){ var $export = _dereq_(40); // 19.1.2.4 / 15.2.3.6 object.defineproperty(o, p, attributes) $export($export.s + $export.f * !_dereq_(36), 'object', { defineproperty: _dereq_(75).f }); },{"36":36,"40":40,"75":75}],193:[function(_dereq_,module,exports){ // 19.1.2.5 object.freeze(o) var isobject = _dereq_(57); var meta = _dereq_(70).onfreeze; _dereq_(85)('freeze', function ($freeze) { return function freeze(it) { return $freeze && isobject(it) ? $freeze(meta(it)) : it; }; }); },{"57":57,"70":70,"85":85}],194:[function(_dereq_,module,exports){ // 19.1.2.6 object.getownpropertydescriptor(o, p) var toiobject = _dereq_(116); var $getownpropertydescriptor = _dereq_(77).f; _dereq_(85)('getownpropertydescriptor', function () { return function getownpropertydescriptor(it, key) { return $getownpropertydescriptor(toiobject(it), key); }; }); },{"116":116,"77":77,"85":85}],195:[function(_dereq_,module,exports){ // 19.1.2.7 object.getownpropertynames(o) _dereq_(85)('getownpropertynames', function () { return _dereq_(78).f; }); },{"78":78,"85":85}],196:[function(_dereq_,module,exports){ // 19.1.2.9 object.getprototypeof(o) var toobject = _dereq_(118); var $getprototypeof = _dereq_(81); _dereq_(85)('getprototypeof', function () { return function getprototypeof(it) { return $getprototypeof(toobject(it)); }; }); },{"118":118,"81":81,"85":85}],197:[function(_dereq_,module,exports){ // 19.1.2.11 object.isextensible(o) var isobject = _dereq_(57); _dereq_(85)('isextensible', function ($isextensible) { return function isextensible(it) { return isobject(it) ? $isextensible ? $isextensible(it) : true : false; }; }); },{"57":57,"85":85}],198:[function(_dereq_,module,exports){ // 19.1.2.12 object.isfrozen(o) var isobject = _dereq_(57); _dereq_(85)('isfrozen', function ($isfrozen) { return function isfrozen(it) { return isobject(it) ? $isfrozen ? $isfrozen(it) : false : true; }; }); },{"57":57,"85":85}],199:[function(_dereq_,module,exports){ // 19.1.2.13 object.issealed(o) var isobject = _dereq_(57); _dereq_(85)('issealed', function ($issealed) { return function issealed(it) { return isobject(it) ? $issealed ? $issealed(it) : false : true; }; }); },{"57":57,"85":85}],200:[function(_dereq_,module,exports){ // 19.1.3.10 object.is(value1, value2) var $export = _dereq_(40); $export($export.s, 'object', { is: _dereq_(97) }); },{"40":40,"97":97}],201:[function(_dereq_,module,exports){ // 19.1.2.14 object.keys(o) var toobject = _dereq_(118); var $keys = _dereq_(83); _dereq_(85)('keys', function () { return function keys(it) { return $keys(toobject(it)); }; }); },{"118":118,"83":83,"85":85}],202:[function(_dereq_,module,exports){ // 19.1.2.15 object.preventextensions(o) var isobject = _dereq_(57); var meta = _dereq_(70).onfreeze; _dereq_(85)('preventextensions', function ($preventextensions) { return function preventextensions(it) { return $preventextensions && isobject(it) ? $preventextensions(meta(it)) : it; }; }); },{"57":57,"70":70,"85":85}],203:[function(_dereq_,module,exports){ // 19.1.2.17 object.seal(o) var isobject = _dereq_(57); var meta = _dereq_(70).onfreeze; _dereq_(85)('seal', function ($seal) { return function seal(it) { return $seal && isobject(it) ? $seal(meta(it)) : it; }; }); },{"57":57,"70":70,"85":85}],204:[function(_dereq_,module,exports){ // 19.1.3.19 object.setprototypeof(o, proto) var $export = _dereq_(40); $export($export.s, 'object', { setprototypeof: _dereq_(98).set }); },{"40":40,"98":98}],205:[function(_dereq_,module,exports){ 'use strict'; // 19.1.3.6 object.prototype.tostring() var classof = _dereq_(25); var test = {}; test[_dereq_(128)('tostringtag')] = 'z'; if (test + '' != '[object z]') { _dereq_(94)(object.prototype, 'tostring', function tostring() { return '[object ' + classof(this) + ']'; }, true); } },{"128":128,"25":25,"94":94}],206:[function(_dereq_,module,exports){ var $export = _dereq_(40); var $parsefloat = _dereq_(88); // 18.2.4 parsefloat(string) $export($export.g + $export.f * (parsefloat != $parsefloat), { parsefloat: $parsefloat }); },{"40":40,"88":88}],207:[function(_dereq_,module,exports){ var $export = _dereq_(40); var $parseint = _dereq_(89); // 18.2.5 parseint(string, radix) $export($export.g + $export.f * (parseint != $parseint), { parseint: $parseint }); },{"40":40,"89":89}],208:[function(_dereq_,module,exports){ 'use strict'; var library = _dereq_(65); var global = _dereq_(46); var ctx = _dereq_(32); var classof = _dereq_(25); var $export = _dereq_(40); var isobject = _dereq_(57); var afunction = _dereq_(11); var aninstance = _dereq_(15); var forof = _dereq_(45); var speciesconstructor = _dereq_(103); var task = _dereq_(112).set; var microtask = _dereq_(71)(); var newpromisecapabilitymodule = _dereq_(72); var perform = _dereq_(90); var useragent = _dereq_(124); var promiseresolve = _dereq_(91); var promise = 'promise'; var typeerror = global.typeerror; var process = global.process; var versions = process && process.versions; var v8 = versions && versions.v8 || ''; var $promise = global[promise]; var isnode = classof(process) == 'process'; var empty = function () { /* empty */ }; var internal, newgenericpromisecapability, ownpromisecapability, wrapper; var newpromisecapability = newgenericpromisecapability = newpromisecapabilitymodule.f; var use_native = !!function () { try { // correct subclassing with @@species support var promise = $promise.resolve(1); var fakepromise = (promise.constructor = {})[_dereq_(128)('species')] = function (exec) { exec(empty, empty); }; // unhandled rejections tracking support, nodejs promise without it fails @@species test return (isnode || typeof promiserejectionevent == 'function') && promise.then(empty) instanceof fakepromise // v8 6.6 (node 10 and chrome 66) have a bug with resolving custom thenables // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 // we can't detect it synchronously, so just check versions && v8.indexof('6.6') !== 0 && useragent.indexof('chrome/66') === -1; } catch (e) { /* empty */ } }(); // helpers var isthenable = function (it) { var then; return isobject(it) && typeof (then = it.then) == 'function' ? then : false; }; var notify = function (promise, isreject) { if (promise._n) return; promise._n = true; var chain = promise._c; microtask(function () { var value = promise._v; var ok = promise._s == 1; var i = 0; var run = function (reaction) { var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; var domain = reaction.domain; var result, then, exited; try { if (handler) { if (!ok) { if (promise._h == 2) onhandleunhandled(promise); promise._h = 1; } if (handler === true) result = value; else { if (domain) domain.enter(); result = handler(value); // may throw if (domain) { domain.exit(); exited = true; } } if (result === reaction.promise) { reject(typeerror('promise-chain cycle')); } else if (then = isthenable(result)) { then.call(result, resolve, reject); } else resolve(result); } else reject(value); } catch (e) { if (domain && !exited) domain.exit(); reject(e); } }; while (chain.length > i) run(chain[i++]); // variable length - can't use foreach promise._c = []; promise._n = false; if (isreject && !promise._h) onunhandled(promise); }); }; var onunhandled = function (promise) { task.call(global, function () { var value = promise._v; var unhandled = isunhandled(promise); var result, handler, console; if (unhandled) { result = perform(function () { if (isnode) { process.emit('unhandledrejection', value, promise); } else if (handler = global.onunhandledrejection) { handler({ promise: promise, reason: value }); } else if ((console = global.console) && console.error) { console.log('unhandled promise rejection', value); } }); // browsers should not trigger `rejectionhandled` event if it was handled here, nodejs - should promise._h = isnode || isunhandled(promise) ? 2 : 1; } promise._a = undefined; if (unhandled && result.e) throw result.v; }); }; var isunhandled = function (promise) { return promise._h !== 1 && (promise._a || promise._c).length === 0; }; var onhandleunhandled = function (promise) { task.call(global, function () { var handler; if (isnode) { process.emit('rejectionhandled', promise); } else if (handler = global.onrejectionhandled) { handler({ promise: promise, reason: promise._v }); } }); }; var $reject = function (value) { var promise = this; if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap promise._v = value; promise._s = 2; if (!promise._a) promise._a = promise._c.slice(); notify(promise, true); }; var $resolve = function (value) { var promise = this; var then; if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap try { if (promise === value) throw typeerror("promise can't be resolved itself"); if (then = isthenable(value)) { microtask(function () { var wrapper = { _w: promise, _d: false }; // wrap try { then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); } catch (e) { $reject.call(wrapper, e); } }); } else { promise._v = value; promise._s = 1; notify(promise, false); } } catch (e) { $reject.call({ _w: promise, _d: false }, e); // wrap } }; // constructor polyfill if (!use_native) { // 25.4.3.1 promise(executor) $promise = function promise(executor) { aninstance(this, $promise, promise, '_h'); afunction(executor); internal.call(this); try { executor(ctx($resolve, this, 1), ctx($reject, this, 1)); } catch (err) { $reject.call(this, err); } }; // eslint-disable-next-line no-unused-vars internal = function promise(executor) { this._c = []; // <- awaiting reactions this._a = undefined; // <- checked in isunhandled reactions this._s = 0; // <- state this._d = false; // <- done this._v = undefined; // <- value this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; internal.prototype = _dereq_(93)($promise.prototype, { // 25.4.5.3 promise.prototype.then(onfulfilled, onrejected) then: function then(onfulfilled, onrejected) { 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; this._c.push(reaction); if (this._a) this._a.push(reaction); if (this._s) notify(this, false); return reaction.promise; }, // 25.4.5.1 promise.prototype.catch(onrejected) 'catch': function (onrejected) { return this.then(undefined, onrejected); } }); ownpromisecapability = function () { var promise = new internal(); this.promise = promise; this.resolve = ctx($resolve, promise, 1); this.reject = ctx($reject, promise, 1); }; newpromisecapabilitymodule.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 }); _dereq_(100)($promise, promise); _dereq_(99)(promise); wrapper = _dereq_(30)[promise]; // statics $export($export.s + $export.f * !use_native, promise, { // 25.4.4.5 promise.reject(r) reject: function reject(r) { var capability = newpromisecapability(this); var $$reject = capability.reject; $$reject(r); return capability.promise; } }); $export($export.s + $export.f * (library || !use_native), promise, { // 25.4.4.6 promise.resolve(x) resolve: function resolve(x) { return promiseresolve(library && this === wrapper ? $promise : this, x); } }); $export($export.s + $export.f * !(use_native && _dereq_(62)(function (iter) { $promise.all(iter)['catch'](empty); })), promise, { // 25.4.4.1 promise.all(iterable) all: function all(iterable) { var c = this; var capability = newpromisecapability(c); var resolve = capability.resolve; var reject = capability.reject; var result = perform(function () { var values = []; var index = 0; var remaining = 1; forof(iterable, false, function (promise) { var $index = index++; var alreadycalled = false; values.push(undefined); remaining++; c.resolve(promise).then(function (value) { if (alreadycalled) return; alreadycalled = true; values[$index] = value; --remaining || resolve(values); }, reject); }); --remaining || resolve(values); }); if (result.e) reject(result.v); return capability.promise; }, // 25.4.4.4 promise.race(iterable) race: function race(iterable) { var c = this; var capability = newpromisecapability(c); var reject = capability.reject; var result = perform(function () { forof(iterable, false, function (promise) { c.resolve(promise).then(capability.resolve, reject); }); }); if (result.e) reject(result.v); return capability.promise; } }); },{"100":100,"103":103,"11":11,"112":112,"124":124,"128":128,"15":15,"25":25,"30":30,"32":32,"40":40,"45":45,"46":46,"57":57,"62":62,"65":65,"71":71,"72":72,"90":90,"91":91,"93":93,"99":99}],209:[function(_dereq_,module,exports){ // 26.1.1 reflect.apply(target, thisargument, argumentslist) var $export = _dereq_(40); var afunction = _dereq_(11); var anobject = _dereq_(16); var rapply = (_dereq_(46).reflect || {}).apply; var fapply = function.apply; // ms edge argumentslist argument is optional $export($export.s + $export.f * !_dereq_(42)(function () { rapply(function () { /* empty */ }); }), 'reflect', { apply: function apply(target, thisargument, argumentslist) { var t = afunction(target); var l = anobject(argumentslist); return rapply ? rapply(t, thisargument, l) : fapply.call(t, thisargument, l); } }); },{"11":11,"16":16,"40":40,"42":42,"46":46}],210:[function(_dereq_,module,exports){ // 26.1.2 reflect.construct(target, argumentslist [, newtarget]) var $export = _dereq_(40); var create = _dereq_(74); var afunction = _dereq_(11); var anobject = _dereq_(16); var isobject = _dereq_(57); var fails = _dereq_(42); var bind = _dereq_(24); var rconstruct = (_dereq_(46).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 () { function f() { /* empty */ } return !(rconstruct(function () { /* empty */ }, [], f) instanceof f); }); var args_bug = !fails(function () { rconstruct(function () { /* empty */ }); }); $export($export.s + $export.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]); if (args_bug && !new_target_bug) return rconstruct(target, args, newtarget); if (target == newtarget) { // w/o altered newtarget, optimization for 0-4 arguments switch (args.length) { case 0: return new target(); case 1: return new target(args[0]); case 2: return new target(args[0], args[1]); case 3: return new target(args[0], args[1], args[2]); case 4: return new target(args[0], args[1], args[2], args[3]); } // w/o altered newtarget, lot of arguments case var $args = [null]; $args.push.apply($args, args); return new (bind.apply(target, $args))(); } // with altered newtarget, not support built-in constructors var proto = newtarget.prototype; var instance = create(isobject(proto) ? proto : object.prototype); var result = function.apply.call(target, instance, args); return isobject(result) ? result : instance; } }); },{"11":11,"16":16,"24":24,"40":40,"42":42,"46":46,"57":57,"74":74}],211:[function(_dereq_,module,exports){ // 26.1.3 reflect.defineproperty(target, propertykey, attributes) var dp = _dereq_(75); var $export = _dereq_(40); var anobject = _dereq_(16); var toprimitive = _dereq_(119); // ms edge has broken reflect.defineproperty - throwing instead of returning false $export($export.s + $export.f * _dereq_(42)(function () { // eslint-disable-next-line no-undef reflect.defineproperty(dp.f({}, 1, { value: 1 }), 1, { value: 2 }); }), 'reflect', { defineproperty: function defineproperty(target, propertykey, attributes) { anobject(target); propertykey = toprimitive(propertykey, true); anobject(attributes); try { dp.f(target, propertykey, attributes); return true; } catch (e) { return false; } } }); },{"119":119,"16":16,"40":40,"42":42,"75":75}],212:[function(_dereq_,module,exports){ // 26.1.4 reflect.deleteproperty(target, propertykey) var $export = _dereq_(40); var gopd = _dereq_(77).f; var anobject = _dereq_(16); $export($export.s, 'reflect', { deleteproperty: function deleteproperty(target, propertykey) { var desc = gopd(anobject(target), propertykey); return desc && !desc.configurable ? false : delete target[propertykey]; } }); },{"16":16,"40":40,"77":77}],213:[function(_dereq_,module,exports){ 'use strict'; // 26.1.5 reflect.enumerate(target) var $export = _dereq_(40); var anobject = _dereq_(16); var enumerate = function (iterated) { this._t = anobject(iterated); // target this._i = 0; // next index var keys = this._k = []; // keys var key; for (key in iterated) keys.push(key); }; _dereq_(60)(enumerate, 'object', function () { var that = this; var keys = that._k; var key; do { if (that._i >= keys.length) return { value: undefined, done: true }; } while (!((key = keys[that._i++]) in that._t)); return { value: key, done: false }; }); $export($export.s, 'reflect', { enumerate: function enumerate(target) { return new enumerate(target); } }); },{"16":16,"40":40,"60":60}],214:[function(_dereq_,module,exports){ // 26.1.7 reflect.getownpropertydescriptor(target, propertykey) var gopd = _dereq_(77); var $export = _dereq_(40); var anobject = _dereq_(16); $export($export.s, 'reflect', { getownpropertydescriptor: function getownpropertydescriptor(target, propertykey) { return gopd.f(anobject(target), propertykey); } }); },{"16":16,"40":40,"77":77}],215:[function(_dereq_,module,exports){ // 26.1.8 reflect.getprototypeof(target) var $export = _dereq_(40); var getproto = _dereq_(81); var anobject = _dereq_(16); $export($export.s, 'reflect', { getprototypeof: function getprototypeof(target) { return getproto(anobject(target)); } }); },{"16":16,"40":40,"81":81}],216:[function(_dereq_,module,exports){ // 26.1.6 reflect.get(target, propertykey [, receiver]) var gopd = _dereq_(77); var getprototypeof = _dereq_(81); var has = _dereq_(47); var $export = _dereq_(40); var isobject = _dereq_(57); var anobject = _dereq_(16); 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 = gopd.f(target, propertykey)) return has(desc, 'value') ? desc.value : desc.get !== undefined ? desc.get.call(receiver) : undefined; if (isobject(proto = getprototypeof(target))) return get(proto, propertykey, receiver); } $export($export.s, 'reflect', { get: get }); },{"16":16,"40":40,"47":47,"57":57,"77":77,"81":81}],217:[function(_dereq_,module,exports){ // 26.1.9 reflect.has(target, propertykey) var $export = _dereq_(40); $export($export.s, 'reflect', { has: function has(target, propertykey) { return propertykey in target; } }); },{"40":40}],218:[function(_dereq_,module,exports){ // 26.1.10 reflect.isextensible(target) var $export = _dereq_(40); var anobject = _dereq_(16); var $isextensible = object.isextensible; $export($export.s, 'reflect', { isextensible: function isextensible(target) { anobject(target); return $isextensible ? $isextensible(target) : true; } }); },{"16":16,"40":40}],219:[function(_dereq_,module,exports){ // 26.1.11 reflect.ownkeys(target) var $export = _dereq_(40); $export($export.s, 'reflect', { ownkeys: _dereq_(87) }); },{"40":40,"87":87}],220:[function(_dereq_,module,exports){ // 26.1.12 reflect.preventextensions(target) var $export = _dereq_(40); var anobject = _dereq_(16); var $preventextensions = object.preventextensions; $export($export.s, 'reflect', { preventextensions: function preventextensions(target) { anobject(target); try { if ($preventextensions) $preventextensions(target); return true; } catch (e) { return false; } } }); },{"16":16,"40":40}],221:[function(_dereq_,module,exports){ // 26.1.14 reflect.setprototypeof(target, proto) var $export = _dereq_(40); var setproto = _dereq_(98); if (setproto) $export($export.s, 'reflect', { setprototypeof: function setprototypeof(target, proto) { setproto.check(target, proto); try { setproto.set(target, proto); return true; } catch (e) { return false; } } }); },{"40":40,"98":98}],222:[function(_dereq_,module,exports){ // 26.1.13 reflect.set(target, propertykey, v [, receiver]) var dp = _dereq_(75); var gopd = _dereq_(77); var getprototypeof = _dereq_(81); var has = _dereq_(47); var $export = _dereq_(40); var createdesc = _dereq_(92); var anobject = _dereq_(16); var isobject = _dereq_(57); function set(target, propertykey, v /* , receiver */) { var receiver = arguments.length < 4 ? target : arguments[3]; var owndesc = gopd.f(anobject(target), propertykey); var existingdescriptor, proto; if (!owndesc) { if (isobject(proto = getprototypeof(target))) { return set(proto, propertykey, v, receiver); } owndesc = createdesc(0); } if (has(owndesc, 'value')) { if (owndesc.writable === false || !isobject(receiver)) return false; if (existingdescriptor = gopd.f(receiver, propertykey)) { if (existingdescriptor.get || existingdescriptor.set || existingdescriptor.writable === false) return false; existingdescriptor.value = v; dp.f(receiver, propertykey, existingdescriptor); } else dp.f(receiver, propertykey, createdesc(0, v)); return true; } return owndesc.set === undefined ? false : (owndesc.set.call(receiver, v), true); } $export($export.s, 'reflect', { set: set }); },{"16":16,"40":40,"47":47,"57":57,"75":75,"77":77,"81":81,"92":92}],223:[function(_dereq_,module,exports){ var global = _dereq_(46); var inheritifrequired = _dereq_(51); var dp = _dereq_(75).f; var gopn = _dereq_(79).f; var isregexp = _dereq_(58); var $flags = _dereq_(44); var $regexp = global.regexp; var base = $regexp; var proto = $regexp.prototype; var re1 = /a/g; var re2 = /a/g; // "new" creates a new object, old webkit buggy here var correct_new = new $regexp(re1) !== re1; if (_dereq_(36) && (!correct_new || _dereq_(42)(function () { re2[_dereq_(128)('match')] = false; // regexp constructor can alter flags and isregexp works correct with @@match return $regexp(re1) != re1 || $regexp(re2) == re2 || $regexp(re1, 'i') != '/a/i'; }))) { $regexp = function regexp(p, f) { var tire = this instanceof $regexp; var pire = isregexp(p); var fiu = f === undefined; return !tire && pire && p.constructor === $regexp && fiu ? p : inheritifrequired(correct_new ? new base(pire && !fiu ? p.source : p, f) : base((pire = p instanceof $regexp) ? p.source : p, pire && fiu ? $flags.call(p) : f) , tire ? this : proto, $regexp); }; var proxy = function (key) { key in $regexp || dp($regexp, key, { configurable: true, get: function () { return base[key]; }, set: function (it) { base[key] = it; } }); }; for (var keys = gopn(base), i = 0; keys.length > i;) proxy(keys[i++]); proto.constructor = $regexp; $regexp.prototype = proto; _dereq_(94)(global, 'regexp', $regexp); } _dereq_(99)('regexp'); },{"128":128,"36":36,"42":42,"44":44,"46":46,"51":51,"58":58,"75":75,"79":79,"94":94,"99":99}],224:[function(_dereq_,module,exports){ 'use strict'; var regexpexec = _dereq_(96); _dereq_(40)({ target: 'regexp', proto: true, forced: regexpexec !== /./.exec }, { exec: regexpexec }); },{"40":40,"96":96}],225:[function(_dereq_,module,exports){ // 21.2.5.3 get regexp.prototype.flags() if (_dereq_(36) && /./g.flags != 'g') _dereq_(75).f(regexp.prototype, 'flags', { configurable: true, get: _dereq_(44) }); },{"36":36,"44":44,"75":75}],226:[function(_dereq_,module,exports){ 'use strict'; var anobject = _dereq_(16); var tolength = _dereq_(117); var advancestringindex = _dereq_(14); var regexpexec = _dereq_(95); // @@match logic _dereq_(43)('match', 1, function (defined, match, $match, maybecallnative) { return [ // `string.prototype.match` method // https://tc39.github.io/ecma262/#sec-string.prototype.match function match(regexp) { var o = defined(this); var fn = regexp == undefined ? undefined : regexp[match]; return fn !== undefined ? fn.call(regexp, o) : new regexp(regexp)[match](string(o)); }, // `regexp.prototype[@@match]` method // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match function (regexp) { var res = maybecallnative($match, regexp, this); if (res.done) return res.value; var rx = anobject(regexp); var s = string(this); if (!rx.global) return regexpexec(rx, s); var fullunicode = rx.unicode; rx.lastindex = 0; var a = []; var n = 0; var result; while ((result = regexpexec(rx, s)) !== null) { var matchstr = string(result[0]); a[n] = matchstr; if (matchstr === '') rx.lastindex = advancestringindex(s, tolength(rx.lastindex), fullunicode); n++; } return n === 0 ? null : a; } ]; }); },{"117":117,"14":14,"16":16,"43":43,"95":95}],227:[function(_dereq_,module,exports){ 'use strict'; var anobject = _dereq_(16); var toobject = _dereq_(118); var tolength = _dereq_(117); var tointeger = _dereq_(115); var advancestringindex = _dereq_(14); var regexpexec = _dereq_(95); var max = math.max; var min = math.min; var floor = math.floor; var substitution_symbols = /\$([$&`']|\d\d?|<[^>]*>)/g; var substitution_symbols_no_named = /\$([$&`']|\d\d?)/g; var maybetostring = function (it) { return it === undefined ? it : string(it); }; // @@replace logic _dereq_(43)('replace', 2, function (defined, replace, $replace, maybecallnative) { return [ // `string.prototype.replace` method // https://tc39.github.io/ecma262/#sec-string.prototype.replace function replace(searchvalue, replacevalue) { var o = defined(this); var fn = searchvalue == undefined ? undefined : searchvalue[replace]; return fn !== undefined ? fn.call(searchvalue, o, replacevalue) : $replace.call(string(o), searchvalue, replacevalue); }, // `regexp.prototype[@@replace]` method // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace function (regexp, replacevalue) { var res = maybecallnative($replace, regexp, this, replacevalue); if (res.done) return res.value; var rx = anobject(regexp); var s = string(this); var functionalreplace = typeof replacevalue === 'function'; if (!functionalreplace) replacevalue = string(replacevalue); var global = rx.global; if (global) { var fullunicode = rx.unicode; rx.lastindex = 0; } var results = []; while (true) { var result = regexpexec(rx, s); if (result === null) break; results.push(result); if (!global) break; var matchstr = string(result[0]); if (matchstr === '') rx.lastindex = advancestringindex(s, tolength(rx.lastindex), fullunicode); } var accumulatedresult = ''; var nextsourceposition = 0; for (var i = 0; i < results.length; i++) { result = results[i]; var matched = string(result[0]); var position = max(min(tointeger(result.index), s.length), 0); var captures = []; // note: this is equivalent to // captures = result.slice(1).map(maybetostring) // but for some reason `nativeslice.call(result, 1, result.length)` (called in // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and // causes a crash (https://pastebin.com/n21qzeqa) when trying to debug it. for (var j = 1; j < result.length; j++) captures.push(maybetostring(result[j])); var namedcaptures = result.groups; if (functionalreplace) { var replacerargs = [matched].concat(captures, position, s); if (namedcaptures !== undefined) replacerargs.push(namedcaptures); var replacement = string(replacevalue.apply(undefined, replacerargs)); } else { replacement = getsubstitution(matched, s, position, captures, namedcaptures, replacevalue); } if (position >= nextsourceposition) { accumulatedresult += s.slice(nextsourceposition, position) + replacement; nextsourceposition = position + matched.length; } } return accumulatedresult + s.slice(nextsourceposition); } ]; // https://tc39.github.io/ecma262/#sec-getsubstitution function getsubstitution(matched, str, position, captures, namedcaptures, replacement) { var tailpos = position + matched.length; var m = captures.length; var symbols = substitution_symbols_no_named; if (namedcaptures !== undefined) { namedcaptures = toobject(namedcaptures); symbols = substitution_symbols; } return $replace.call(replacement, symbols, function (match, ch) { var capture; switch (ch.charat(0)) { case '$': return '$'; case '&': return matched; case '`': return str.slice(0, position); case "'": return str.slice(tailpos); case '<': capture = namedcaptures[ch.slice(1, -1)]; break; default: // \d\d? var n = +ch; if (n === 0) return ch; if (n > m) { var f = floor(n / 10); if (f === 0) return ch; if (f <= m) return captures[f - 1] === undefined ? ch.charat(1) : captures[f - 1] + ch.charat(1); return ch; } capture = captures[n - 1]; } return capture === undefined ? '' : capture; }); } }); },{"115":115,"117":117,"118":118,"14":14,"16":16,"43":43,"95":95}],228:[function(_dereq_,module,exports){ 'use strict'; var anobject = _dereq_(16); var samevalue = _dereq_(97); var regexpexec = _dereq_(95); // @@search logic _dereq_(43)('search', 1, function (defined, search, $search, maybecallnative) { return [ // `string.prototype.search` method // https://tc39.github.io/ecma262/#sec-string.prototype.search function search(regexp) { var o = defined(this); var fn = regexp == undefined ? undefined : regexp[search]; return fn !== undefined ? fn.call(regexp, o) : new regexp(regexp)[search](string(o)); }, // `regexp.prototype[@@search]` method // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search function (regexp) { var res = maybecallnative($search, regexp, this); if (res.done) return res.value; var rx = anobject(regexp); var s = string(this); var previouslastindex = rx.lastindex; if (!samevalue(previouslastindex, 0)) rx.lastindex = 0; var result = regexpexec(rx, s); if (!samevalue(rx.lastindex, previouslastindex)) rx.lastindex = previouslastindex; return result === null ? -1 : result.index; } ]; }); },{"16":16,"43":43,"95":95,"97":97}],229:[function(_dereq_,module,exports){ 'use strict'; var isregexp = _dereq_(58); var anobject = _dereq_(16); var speciesconstructor = _dereq_(103); var advancestringindex = _dereq_(14); var tolength = _dereq_(117); var callregexpexec = _dereq_(95); var regexpexec = _dereq_(96); var $min = math.min; var $push = [].push; var $split = 'split'; var length = 'length'; var last_index = 'lastindex'; // eslint-disable-next-line no-empty var supports_y = !!(function () { try { return new regexp('x', 'y'); } catch (e) {} })(); // @@split logic _dereq_(43)('split', 2, function (defined, split, $split, maybecallnative) { var internalsplit; if ( 'abbc'[$split](/(b)*/)[1] == 'c' || 'test'[$split](/(?:)/, -1)[length] != 4 || 'ab'[$split](/(?:ab)*/)[length] != 2 || '.'[$split](/(.?)(.?)/)[length] != 4 || '.'[$split](/()()/)[length] > 1 || ''[$split](/.?/)[length] ) { // based on es5-shim implementation, need to rework it internalsplit = function (separator, limit) { var string = string(this); if (separator === undefined && limit === 0) return []; // if `separator` is not a regex, use native split if (!isregexp(separator)) return $split.call(string, separator, limit); var output = []; var flags = (separator.ignorecase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : ''); var lastlastindex = 0; var splitlimit = limit === undefined ? 4294967295 : limit >>> 0; // make `global` and avoid `lastindex` issues by working with a copy var separatorcopy = new regexp(separator.source, flags + 'g'); var match, lastindex, lastlength; while (match = regexpexec.call(separatorcopy, string)) { lastindex = separatorcopy[last_index]; if (lastindex > lastlastindex) { output.push(string.slice(lastlastindex, match.index)); if (match[length] > 1 && match.index < string[length]) $push.apply(output, match.slice(1)); lastlength = match[0][length]; lastlastindex = lastindex; if (output[length] >= splitlimit) break; } if (separatorcopy[last_index] === match.index) separatorcopy[last_index]++; // avoid an infinite loop } if (lastlastindex === string[length]) { if (lastlength || !separatorcopy.test('')) output.push(''); } else output.push(string.slice(lastlastindex)); return output[length] > splitlimit ? output.slice(0, splitlimit) : output; }; // chakra, v8 } else if ('0'[$split](undefined, 0)[length]) { internalsplit = function (separator, limit) { return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit); }; } else { internalsplit = $split; } return [ // `string.prototype.split` method // https://tc39.github.io/ecma262/#sec-string.prototype.split function split(separator, limit) { var o = defined(this); var splitter = separator == undefined ? undefined : separator[split]; return splitter !== undefined ? splitter.call(separator, o, limit) : internalsplit.call(string(o), separator, limit); }, // `regexp.prototype[@@split]` method // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split // // note: this cannot be properly polyfilled in engines that don't support // the 'y' flag. function (regexp, limit) { var res = maybecallnative(internalsplit, regexp, this, limit, internalsplit !== $split); if (res.done) return res.value; var rx = anobject(regexp); var s = string(this); var c = speciesconstructor(rx, regexp); var unicodematching = rx.unicode; var flags = (rx.ignorecase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (supports_y ? 'y' : 'g'); // ^(? + rx + ) is needed, in combination with some s slicing, to // simulate the 'y' flag. var splitter = new c(supports_y ? rx : '^(?:' + rx.source + ')', flags); var lim = limit === undefined ? 0xffffffff : limit >>> 0; if (lim === 0) return []; if (s.length === 0) return callregexpexec(splitter, s) === null ? [s] : []; var p = 0; var q = 0; var a = []; while (q < s.length) { splitter.lastindex = supports_y ? q : 0; var z = callregexpexec(splitter, supports_y ? s : s.slice(q)); var e; if ( z === null || (e = $min(tolength(splitter.lastindex + (supports_y ? 0 : q)), s.length)) === p ) { q = advancestringindex(s, q, unicodematching); } else { a.push(s.slice(p, q)); if (a.length === lim) return a; for (var i = 1; i <= z.length - 1; i++) { a.push(z[i]); if (a.length === lim) return a; } q = p = e; } } a.push(s.slice(p)); return a; } ]; }); },{"103":103,"117":117,"14":14,"16":16,"43":43,"58":58,"95":95,"96":96}],230:[function(_dereq_,module,exports){ 'use strict'; _dereq_(225); var anobject = _dereq_(16); var $flags = _dereq_(44); var descriptors = _dereq_(36); var to_string = 'tostring'; var $tostring = /./[to_string]; var define = function (fn) { _dereq_(94)(regexp.prototype, to_string, fn, true); }; // 21.2.5.14 regexp.prototype.tostring() if (_dereq_(42)(function () { return $tostring.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { define(function tostring() { var r = anobject(this); return '/'.concat(r.source, '/', 'flags' in r ? r.flags : !descriptors && r instanceof regexp ? $flags.call(r) : undefined); }); // ff44- regexp#tostring has a wrong name } else if ($tostring.name != to_string) { define(function tostring() { return $tostring.call(this); }); } },{"16":16,"225":225,"36":36,"42":42,"44":44,"94":94}],231:[function(_dereq_,module,exports){ 'use strict'; var strong = _dereq_(27); var validate = _dereq_(125); var set = 'set'; // 23.2 set objects module.exports = _dereq_(29)(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 strong.def(validate(this, set), value = value === 0 ? 0 : value, value); } }, strong); },{"125":125,"27":27,"29":29}],232:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.2 string.prototype.anchor(name) _dereq_(107)('anchor', function (createhtml) { return function anchor(name) { return createhtml(this, 'a', 'name', name); }; }); },{"107":107}],233:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.3 string.prototype.big() _dereq_(107)('big', function (createhtml) { return function big() { return createhtml(this, 'big', '', ''); }; }); },{"107":107}],234:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.4 string.prototype.blink() _dereq_(107)('blink', function (createhtml) { return function blink() { return createhtml(this, 'blink', '', ''); }; }); },{"107":107}],235:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.5 string.prototype.bold() _dereq_(107)('bold', function (createhtml) { return function bold() { return createhtml(this, 'b', '', ''); }; }); },{"107":107}],236:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $at = _dereq_(105)(false); $export($export.p, 'string', { // 21.1.3.3 string.prototype.codepointat(pos) codepointat: function codepointat(pos) { return $at(this, pos); } }); },{"105":105,"40":40}],237:[function(_dereq_,module,exports){ // 21.1.3.6 string.prototype.endswith(searchstring [, endposition]) 'use strict'; var $export = _dereq_(40); var tolength = _dereq_(117); var context = _dereq_(106); var ends_with = 'endswith'; var $endswith = ''[ends_with]; $export($export.p + $export.f * _dereq_(41)(ends_with), 'string', { endswith: function endswith(searchstring /* , endposition = @length */) { 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 search = string(searchstring); return $endswith ? $endswith.call(that, search, end) : that.slice(end - search.length, end) === search; } }); },{"106":106,"117":117,"40":40,"41":41}],238:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.6 string.prototype.fixed() _dereq_(107)('fixed', function (createhtml) { return function fixed() { return createhtml(this, 'tt', '', ''); }; }); },{"107":107}],239:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.7 string.prototype.fontcolor(color) _dereq_(107)('fontcolor', function (createhtml) { return function fontcolor(color) { return createhtml(this, 'font', 'color', color); }; }); },{"107":107}],240:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.8 string.prototype.fontsize(size) _dereq_(107)('fontsize', function (createhtml) { return function fontsize(size) { return createhtml(this, 'font', 'size', size); }; }); },{"107":107}],241:[function(_dereq_,module,exports){ var $export = _dereq_(40); var toabsoluteindex = _dereq_(113); 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', { // 21.1.2.2 string.fromcodepoint(...codepoints) fromcodepoint: function fromcodepoint(x) { // eslint-disable-line no-unused-vars var res = []; var alen = arguments.length; var i = 0; var code; while (alen > i) { code = +arguments[i++]; 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) ); } return res.join(''); } }); },{"113":113,"40":40}],242:[function(_dereq_,module,exports){ // 21.1.3.7 string.prototype.includes(searchstring, position = 0) 'use strict'; var $export = _dereq_(40); var context = _dereq_(106); var includes = 'includes'; $export($export.p + $export.f * _dereq_(41)(includes), 'string', { includes: function includes(searchstring /* , position = 0 */) { return !!~context(this, searchstring, includes) .indexof(searchstring, arguments.length > 1 ? arguments[1] : undefined); } }); },{"106":106,"40":40,"41":41}],243:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.9 string.prototype.italics() _dereq_(107)('italics', function (createhtml) { return function italics() { return createhtml(this, 'i', '', ''); }; }); },{"107":107}],244:[function(_dereq_,module,exports){ 'use strict'; var $at = _dereq_(105)(true); // 21.1.3.27 string.prototype[@@iterator]() _dereq_(61)(string, 'string', function (iterated) { this._t = string(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %stringiteratorprototype%.next() }, function () { var o = this._t; var index = this._i; var point; if (index >= o.length) return { value: undefined, done: true }; point = $at(o, index); this._i += point.length; return { value: point, done: false }; }); },{"105":105,"61":61}],245:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.10 string.prototype.link(url) _dereq_(107)('link', function (createhtml) { return function link(url) { return createhtml(this, 'a', 'href', url); }; }); },{"107":107}],246:[function(_dereq_,module,exports){ var $export = _dereq_(40); var toiobject = _dereq_(116); var tolength = _dereq_(117); $export($export.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 alen = arguments.length; var res = []; var i = 0; while (len > i) { res.push(string(tpl[i++])); if (i < alen) res.push(string(arguments[i])); } return res.join(''); } }); },{"116":116,"117":117,"40":40}],247:[function(_dereq_,module,exports){ var $export = _dereq_(40); $export($export.p, 'string', { // 21.1.3.13 string.prototype.repeat(count) repeat: _dereq_(109) }); },{"109":109,"40":40}],248:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.11 string.prototype.small() _dereq_(107)('small', function (createhtml) { return function small() { return createhtml(this, 'small', '', ''); }; }); },{"107":107}],249:[function(_dereq_,module,exports){ // 21.1.3.18 string.prototype.startswith(searchstring [, position ]) 'use strict'; var $export = _dereq_(40); var tolength = _dereq_(117); var context = _dereq_(106); var starts_with = 'startswith'; var $startswith = ''[starts_with]; $export($export.p + $export.f * _dereq_(41)(starts_with), 'string', { startswith: function startswith(searchstring /* , position = 0 */) { 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) : that.slice(index, index + search.length) === search; } }); },{"106":106,"117":117,"40":40,"41":41}],250:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.12 string.prototype.strike() _dereq_(107)('strike', function (createhtml) { return function strike() { return createhtml(this, 'strike', '', ''); }; }); },{"107":107}],251:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.13 string.prototype.sub() _dereq_(107)('sub', function (createhtml) { return function sub() { return createhtml(this, 'sub', '', ''); }; }); },{"107":107}],252:[function(_dereq_,module,exports){ 'use strict'; // b.2.3.14 string.prototype.sup() _dereq_(107)('sup', function (createhtml) { return function sup() { return createhtml(this, 'sup', '', ''); }; }); },{"107":107}],253:[function(_dereq_,module,exports){ 'use strict'; // 21.1.3.25 string.prototype.trim() _dereq_(110)('trim', function ($trim) { return function trim() { return $trim(this, 3); }; }); },{"110":110}],254:[function(_dereq_,module,exports){ 'use strict'; // ecmascript 6 symbols shim var global = _dereq_(46); var has = _dereq_(47); var descriptors = _dereq_(36); var $export = _dereq_(40); var redefine = _dereq_(94); var meta = _dereq_(70).key; var $fails = _dereq_(42); var shared = _dereq_(102); var settostringtag = _dereq_(100); var uid = _dereq_(123); var wks = _dereq_(128); var wksext = _dereq_(127); var wksdefine = _dereq_(126); var enumkeys = _dereq_(39); var isarray = _dereq_(55); var anobject = _dereq_(16); var isobject = _dereq_(57); var toiobject = _dereq_(116); var toprimitive = _dereq_(119); var createdesc = _dereq_(92); var _create = _dereq_(74); var gopnext = _dereq_(78); var $gopd = _dereq_(77); var $dp = _dereq_(75); var $keys = _dereq_(83); var gopd = $gopd.f; var dp = $dp.f; var gopn = gopnext.f; var $symbol = global.symbol; var $json = global.json; var _stringify = $json && $json.stringify; var prototype = 'prototype'; 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 objectproto = object[prototype]; var use_native = typeof $symbol == 'function'; var qobject = global.qobject; // don't use setters in qt script, https://github.com/zloirock/core-js/issues/173 var setter = !qobject || !qobject[prototype] || !qobject[prototype].findchild; // fallback for old android, https://code.google.com/p/v8/issues/detail?id=687 var setsymboldesc = descriptors && $fails(function () { return _create(dp({}, 'a', { get: function () { return dp(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (it, key, d) { var protodesc = gopd(objectproto, key); if (protodesc) delete objectproto[key]; dp(it, key, d); if (protodesc && it !== objectproto) dp(objectproto, key, protodesc); } : dp; var wrap = function (tag) { var sym = allsymbols[tag] = _create($symbol[prototype]); sym._k = tag; return sym; }; var issymbol = use_native && typeof $symbol.iterator == 'symbol' ? function (it) { return typeof it == 'symbol'; } : function (it) { return it instanceof $symbol; }; var $defineproperty = function defineproperty(it, key, d) { if (it === objectproto) $defineproperty(opsymbols, key, d); anobject(it); key = toprimitive(key, true); anobject(d); if (has(allsymbols, key)) { if (!d.enumerable) { if (!has(it, hidden)) dp(it, hidden, createdesc(1, {})); it[hidden][key] = true; } else { 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(it, key, d); }; var $defineproperties = function defineproperties(it, p) { anobject(it); var keys = enumkeys(p = toiobject(p)); var i = 0; var l = keys.length; var key; while (l > i) $defineproperty(it, key = keys[i++], p[key]); return it; }; var $create = function create(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 && 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 && has(allsymbols, key) && !has(opsymbols, key)) return; var d = gopd(it, key); 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 result = []; var i = 0; var key; while (names.length > i) { 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; 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, key) : true)) result.push(allsymbols[key]); } return result; }; // 19.4.1.1 symbol([description]) if (!use_native) { $symbol = function symbol() { if (this instanceof $symbol) throw typeerror('symbol is not a constructor!'); var tag = uid(arguments.length > 0 ? arguments[0] : undefined); var $set = function (value) { if (this === objectproto) $set.call(opsymbols, value); if (has(this, hidden) && has(this[hidden], tag)) this[hidden][tag] = false; setsymboldesc(this, tag, createdesc(1, value)); }; if (descriptors && setter) setsymboldesc(objectproto, tag, { configurable: true, set: $set }); return wrap(tag); }; redefine($symbol[prototype], 'tostring', function tostring() { return this._k; }); $gopd.f = $getownpropertydescriptor; $dp.f = $defineproperty; _dereq_(79).f = gopnext.f = $getownpropertynames; _dereq_(84).f = $propertyisenumerable; _dereq_(80).f = $getownpropertysymbols; if (descriptors && !_dereq_(65)) { redefine(objectproto, 'propertyisenumerable', $propertyisenumerable, true); } wksext.f = function (name) { return wrap(wks(name)); }; } $export($export.g + $export.w + $export.f * !use_native, { 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++]); for (var wellknownsymbols = $keys(wks.store), k = 0; wellknownsymbols.length > k;) wksdefine(wellknownsymbols[k++]); $export($export.s + $export.f * !use_native, 'symbol', { // 19.4.2.1 symbol.for(key) 'for': function (key) { return has(symbolregistry, key += '') ? symbolregistry[key] : symbolregistry[key] = $symbol(key); }, // 19.4.2.5 symbol.keyfor(sym) keyfor: function keyfor(sym) { if (!issymbol(sym)) throw typeerror(sym + ' is not a symbol!'); for (var key in symbolregistry) if (symbolregistry[key] === sym) return key; }, usesetter: function () { setter = true; }, usesimple: function () { setter = false; } }); $export($export.s + $export.f * !use_native, 'object', { // 19.1.2.2 object.create(o [, properties]) create: $create, // 19.1.2.4 object.defineproperty(o, p, attributes) defineproperty: $defineproperty, // 19.1.2.3 object.defineproperties(o, properties) defineproperties: $defineproperties, // 19.1.2.6 object.getownpropertydescriptor(o, p) getownpropertydescriptor: $getownpropertydescriptor, // 19.1.2.7 object.getownpropertynames(o) getownpropertynames: $getownpropertynames, // 19.1.2.8 object.getownpropertysymbols(o) getownpropertysymbols: $getownpropertysymbols }); // 24.3.2 json.stringify(value [, replacer [, space]]) $json && $export($export.s + $export.f * (!use_native || $fails(function () { var s = $symbol(); // ms edge converts symbol values to json as {} // webkit converts symbol values to json as null // v8 throws on boxed symbols return _stringify([s]) != '[null]' || _stringify({ a: s }) != '{}' || _stringify(object(s)) != '{}'; })), 'json', { stringify: function stringify(it) { var args = [it]; var i = 1; 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 (typeof $replacer == 'function') value = $replacer.call(this, key, value); if (!issymbol(value)) return value; }; args[1] = replacer; return _stringify.apply($json, args); } }); // 19.4.3.4 symbol.prototype[@@toprimitive](hint) $symbol[prototype][to_primitive] || _dereq_(48)($symbol[prototype], to_primitive, $symbol[prototype].valueof); // 19.4.3.5 symbol.prototype[@@tostringtag] settostringtag($symbol, 'symbol'); // 20.2.1.9 math[@@tostringtag] settostringtag(math, 'math', true); // 24.3.3 json[@@tostringtag] settostringtag(global.json, 'json', true); },{"100":100,"102":102,"116":116,"119":119,"123":123,"126":126,"127":127,"128":128,"16":16,"36":36,"39":39,"40":40,"42":42,"46":46,"47":47,"48":48,"55":55,"57":57,"65":65,"70":70,"74":74,"75":75,"77":77,"78":78,"79":79,"80":80,"83":83,"84":84,"92":92,"94":94}],255:[function(_dereq_,module,exports){ 'use strict'; var $export = _dereq_(40); var $typed = _dereq_(122); var buffer = _dereq_(121); var anobject = _dereq_(16); var toabsoluteindex = _dereq_(113); var tolength = _dereq_(117); var isobject = _dereq_(57); var arraybuffer = _dereq_(46).arraybuffer; var speciesconstructor = _dereq_(103); var $arraybuffer = buffer.arraybuffer; var $dataview = buffer.dataview; var $isview = $typed.abv && arraybuffer.isview; var $slice = $arraybuffer.prototype.slice; var view = $typed.view; var array_buffer = 'arraybuffer'; $export($export.g + $export.w + $export.f * (arraybuffer !== $arraybuffer), { arraybuffer: $arraybuffer }); $export($export.s + $export.f * !$typed.constr, array_buffer, { // 24.1.3.1 arraybuffer.isview(arg) isview: function isview(it) { return $isview && $isview(it) || isobject(it) && view in it; } }); $export($export.p + $export.u + $export.f * _dereq_(42)(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 fin = toabsoluteindex(end === undefined ? len : end, len); var result = new (speciesconstructor(this, $arraybuffer))(tolength(fin - first)); var views = new $dataview(this); var viewt = new $dataview(result); var index = 0; while (first < fin) { viewt.setuint8(index++, views.getuint8(first++)); } return result; } }); _dereq_(99)(array_buffer); },{"103":103,"113":113,"117":117,"121":121,"122":122,"16":16,"40":40,"42":42,"46":46,"57":57,"99":99}],256:[function(_dereq_,module,exports){ var $export = _dereq_(40); $export($export.g + $export.w + $export.f * !_dereq_(122).abv, { dataview: _dereq_(121).dataview }); },{"121":121,"122":122,"40":40}],257:[function(_dereq_,module,exports){ _dereq_(120)('float32', 4, function (init) { return function float32array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],258:[function(_dereq_,module,exports){ _dereq_(120)('float64', 8, function (init) { return function float64array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],259:[function(_dereq_,module,exports){ _dereq_(120)('int16', 2, function (init) { return function int16array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],260:[function(_dereq_,module,exports){ _dereq_(120)('int32', 4, function (init) { return function int32array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],261:[function(_dereq_,module,exports){ _dereq_(120)('int8', 1, function (init) { return function int8array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],262:[function(_dereq_,module,exports){ _dereq_(120)('uint16', 2, function (init) { return function uint16array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],263:[function(_dereq_,module,exports){ _dereq_(120)('uint32', 4, function (init) { return function uint32array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],264:[function(_dereq_,module,exports){ _dereq_(120)('uint8', 1, function (init) { return function uint8array(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }); },{"120":120}],265:[function(_dereq_,module,exports){ _dereq_(120)('uint8', 1, function (init) { return function uint8clampedarray(data, byteoffset, length) { return init(this, data, byteoffset, length); }; }, true); },{"120":120}],266:[function(_dereq_,module,exports){ 'use strict'; var each = _dereq_(20)(0); var redefine = _dereq_(94); var meta = _dereq_(70); var assign = _dereq_(73); var weak = _dereq_(28); var isobject = _dereq_(57); var fails = _dereq_(42); var validate = _dereq_(125); var weak_map = 'weakmap'; var getweak = meta.getweak; var isextensible = object.isextensible; var uncaughtfrozenstore = weak.ufstore; var tmp = {}; var internalmap; var wrapper = function (get) { return function weakmap() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }; var methods = { // 23.3.3.3 weakmap.prototype.get(key) get: function get(key) { if (isobject(key)) { var data = getweak(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 weak.def(validate(this, weak_map), key, value); } }; // 23.3 weakmap objects var $weakmap = module.exports = _dereq_(29)(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 = weak.getconstructor(wrapper, weak_map); assign(internalmap.prototype, methods); meta.need = true; each(['delete', 'has', 'get', 'set'], function (key) { var proto = $weakmap.prototype; var method = proto[key]; redefine(proto, key, function (a, b) { // store frozen objects on internal weakmap shim if (isobject(a) && !isextensible(a)) { if (!this._f) this._f = new internalmap(); var result = this._f[key](a, b); return key == 'set' ? this : result; // store all the rest on native weakmap } return method.call(this, a, b); }); }); } },{"125":125,"20":20,"28":28,"29":29,"42":42,"57":57,"70":70,"73":73,"94":94}],267:[function(_dereq_,module,exports){ 'use strict'; var weak = _dereq_(28); var validate = _dereq_(125); var weak_set = 'weakset'; // 23.4 weakset objects _dereq_(29)(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 weak.def(validate(this, weak_set), value, true); } }, weak, false, true); },{"125":125,"28":28,"29":29}],268:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/tc39/array.prototype.includes var $export = _dereq_(40); var $includes = _dereq_(19)(true); $export($export.p, 'array', { includes: function includes(el /* , fromindex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); _dereq_(13)('includes'); },{"13":13,"19":19,"40":40}],269:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-object-values-entries var $export = _dereq_(40); var $entries = _dereq_(86)(true); $export($export.s, 'object', { entries: function entries(it) { return $entries(it); } }); },{"40":40,"86":86}],270:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-object-getownpropertydescriptors var $export = _dereq_(40); var ownkeys = _dereq_(87); var toiobject = _dereq_(116); var gopd = _dereq_(77); var createproperty = _dereq_(31); $export($export.s, 'object', { getownpropertydescriptors: function getownpropertydescriptors(object) { var o = toiobject(object); var getdesc = gopd.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); } return result; } }); },{"116":116,"31":31,"40":40,"77":77,"87":87}],271:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-object-values-entries var $export = _dereq_(40); var $values = _dereq_(86)(false); $export($export.s, 'object', { values: function values(it) { return $values(it); } }); },{"40":40,"86":86}],272:[function(_dereq_,module,exports){ // https://github.com/tc39/proposal-promise-finally 'use strict'; var $export = _dereq_(40); var core = _dereq_(30); var global = _dereq_(46); var speciesconstructor = _dereq_(103); var promiseresolve = _dereq_(91); $export($export.p + $export.r, 'promise', { 'finally': function (onfinally) { var c = speciesconstructor(this, core.promise || global.promise); var isfunction = typeof onfinally == 'function'; return this.then( isfunction ? function (x) { return promiseresolve(c, onfinally()).then(function () { return x; }); } : onfinally, isfunction ? function (e) { return promiseresolve(c, onfinally()).then(function () { throw e; }); } : onfinally ); } }); },{"103":103,"30":30,"40":40,"46":46,"91":91}],273:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end var $export = _dereq_(40); var $pad = _dereq_(108); var useragent = _dereq_(124); // https://github.com/zloirock/core-js/issues/280 $export($export.p + $export.f * /version\/10\.\d+(\.\d+)? safari\//.test(useragent), 'string', { padend: function padend(maxlength /* , fillstring = ' ' */) { return $pad(this, maxlength, arguments.length > 1 ? arguments[1] : undefined, false); } }); },{"108":108,"124":124,"40":40}],274:[function(_dereq_,module,exports){ 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end var $export = _dereq_(40); var $pad = _dereq_(108); var useragent = _dereq_(124); // https://github.com/zloirock/core-js/issues/280 $export($export.p + $export.f * /version\/10\.\d+(\.\d+)? safari\//.test(useragent), 'string', { padstart: function padstart(maxlength /* , fillstring = ' ' */) { return $pad(this, maxlength, arguments.length > 1 ? arguments[1] : undefined, true); } }); },{"108":108,"124":124,"40":40}],275:[function(_dereq_,module,exports){ _dereq_(126)('asynciterator'); },{"126":126}],276:[function(_dereq_,module,exports){ var $iterators = _dereq_(140); var getkeys = _dereq_(83); var redefine = _dereq_(94); var global = _dereq_(46); var hide = _dereq_(48); var iterators = _dereq_(64); var wks = _dereq_(128); var iterator = wks('iterator'); var to_string_tag = wks('tostringtag'); var arrayvalues = iterators.array; var domiterables = { cssrulelist: true, // todo: not spec compliant, should be false. cssstyledeclaration: false, cssvaluelist: false, clientrectlist: false, domrectlist: false, domstringlist: false, domtokenlist: true, datatransferitemlist: false, filelist: false, htmlallcollection: false, htmlcollection: false, htmlformelement: false, htmlselectelement: false, medialist: true, // todo: not spec compliant, should be false. mimetypearray: false, namednodemap: false, nodelist: true, paintrequestlist: false, plugin: false, pluginarray: false, svglengthlist: false, svgnumberlist: false, svgpathseglist: false, svgpointlist: false, svgstringlist: false, svgtransformlist: false, sourcebufferlist: false, stylesheetlist: true, // todo: not spec compliant, should be false. texttrackcuelist: false, texttracklist: false, touchlist: false }; for (var collections = getkeys(domiterables), i = 0; i < collections.length; i++) { var name = collections[i]; var explicit = domiterables[name]; var collection = global[name]; var proto = collection && collection.prototype; var key; if (proto) { if (!proto[iterator]) hide(proto, iterator, arrayvalues); if (!proto[to_string_tag]) hide(proto, to_string_tag, name); iterators[name] = arrayvalues; if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); } } },{"128":128,"140":140,"46":46,"48":48,"64":64,"83":83,"94":94}],277:[function(_dereq_,module,exports){ var $export = _dereq_(40); var $task = _dereq_(112); $export($export.g + $export.b, { setimmediate: $task.set, clearimmediate: $task.clear }); },{"112":112,"40":40}],278:[function(_dereq_,module,exports){ // ie9- settimeout & setinterval additional parameters fix var global = _dereq_(46); var $export = _dereq_(40); var useragent = _dereq_(124); var slice = [].slice; var msie = /msie .\./.test(useragent); // <- dirty ie9- check var wrap = function (set) { return function (fn, time /* , ...args */) { var boundargs = arguments.length > 2; var args = boundargs ? slice.call(arguments, 2) : false; return set(boundargs ? function () { // eslint-disable-next-line no-new-func (typeof fn == 'function' ? fn : function(fn)).apply(this, args); } : fn, time); }; }; $export($export.g + $export.b + $export.f * msie, { settimeout: wrap(global.settimeout), setinterval: wrap(global.setinterval) }); },{"124":124,"40":40,"46":46}],279:[function(_dereq_,module,exports){ _dereq_(278); _dereq_(277); _dereq_(276); module.exports = _dereq_(30); },{"276":276,"277":277,"278":278,"30":30}],280:[function(_dereq_,module,exports){ /** * copyright (c) 2014-present, facebook, inc. * * this source code is licensed under the mit license found in the * license file in the root directory of this source tree. */ !(function(global) { "use strict"; var op = object.prototype; var hasown = op.hasownproperty; var undefined; // more compressible than void 0. var $symbol = typeof symbol === "function" ? symbol : {}; var iteratorsymbol = $symbol.iterator || "@@iterator"; var asynciteratorsymbol = $symbol.asynciterator || "@@asynciterator"; var tostringtagsymbol = $symbol.tostringtag || "@@tostringtag"; var inmodule = typeof module === "object"; var runtime = global.regeneratorruntime; if (runtime) { if (inmodule) { // if regeneratorruntime is defined globally and we're in a module, // make the exports object identical to regeneratorruntime. module.exports = runtime; } // don't bother evaluating the rest of this file if the runtime was // already defined globally. return; } // define the runtime globally (as expected by generated code) as either // module.exports (if we're in a module) or a new, empty object. runtime = global.regeneratorruntime = inmodule ? module.exports : {}; function wrap(innerfn, outerfn, self, trylocslist) { // if outerfn provided and outerfn.prototype is a generator, then outerfn.prototype instanceof generator. var protogenerator = outerfn && outerfn.prototype instanceof generator ? outerfn : generator; var generator = object.create(protogenerator.prototype); var context = new context(trylocslist || []); // the ._invoke method unifies the implementations of the .next, // .throw, and .return methods. generator._invoke = makeinvokemethod(innerfn, self, context); return generator; } runtime.wrap = wrap; // try/catch helper to minimize deoptimizations. returns a completion // record like context.tryentries[i].completion. this interface could // have been (and was previously) designed to take a closure to be // invoked without arguments, but in all the cases we care about we // already have an existing method we want to call, so there's no need // to create a new function object. we can even get away with assuming // the method takes exactly one argument, since that happens to be true // in every case, so we don't have to touch the arguments object. the // only additional allocation required is the completion record, which // has a stable shape and so hopefully should be cheap to allocate. function trycatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } var genstatesuspendedstart = "suspendedstart"; var genstatesuspendedyield = "suspendedyield"; var genstateexecuting = "executing"; var genstatecompleted = "completed"; // returning this object from the innerfn has the same effect as // breaking out of the dispatch switch statement. var continuesentinel = {}; // dummy constructor functions that we use as the .constructor and // .constructor.prototype properties for functions that return generator // objects. for full spec compliance, you may wish to configure your // minifier not to mangle the names of these two functions. function generator() {} function generatorfunction() {} function generatorfunctionprototype() {} // this is a polyfill for %iteratorprototype% for environments that // don't natively support it. var iteratorprototype = {}; iteratorprototype[iteratorsymbol] = function () { return this; }; var getproto = object.getprototypeof; var nativeiteratorprototype = getproto && getproto(getproto(values([]))); if (nativeiteratorprototype && nativeiteratorprototype !== op && hasown.call(nativeiteratorprototype, iteratorsymbol)) { // this environment has a native %iteratorprototype%; use it instead // of the polyfill. iteratorprototype = nativeiteratorprototype; } var gp = generatorfunctionprototype.prototype = generator.prototype = object.create(iteratorprototype); generatorfunction.prototype = gp.constructor = generatorfunctionprototype; generatorfunctionprototype.constructor = generatorfunction; generatorfunctionprototype[tostringtagsymbol] = generatorfunction.displayname = "generatorfunction"; // helper for defining the .next, .throw, and .return methods of the // iterator interface in terms of a single ._invoke method. function defineiteratormethods(prototype) { ["next", "throw", "return"].foreach(function(method) { prototype[method] = function(arg) { return this._invoke(method, arg); }; }); } runtime.isgeneratorfunction = function(genfun) { var ctor = typeof genfun === "function" && genfun.constructor; return ctor ? ctor === generatorfunction || // for the native generatorfunction constructor, the best we can // do is to check its .name property. (ctor.displayname || ctor.name) === "generatorfunction" : false; }; runtime.mark = function(genfun) { if (object.setprototypeof) { object.setprototypeof(genfun, generatorfunctionprototype); } else { genfun.__proto__ = generatorfunctionprototype; if (!(tostringtagsymbol in genfun)) { genfun[tostringtagsymbol] = "generatorfunction"; } } genfun.prototype = object.create(gp); return genfun; }; // within the body of any async function, `await x` is transformed to // `yield regeneratorruntime.awrap(x)`, so that the runtime can test // `hasown.call(value, "__await")` to determine if the yielded value is // meant to be awaited. runtime.awrap = function(arg) { return { __await: arg }; }; function asynciterator(generator) { function invoke(method, arg, resolve, reject) { var record = trycatch(generator[method], generator, arg); if (record.type === "throw") { reject(record.arg); } else { var result = record.arg; var value = result.value; if (value && typeof value === "object" && hasown.call(value, "__await")) { return promise.resolve(value.__await).then(function(value) { invoke("next", value, resolve, reject); }, function(err) { invoke("throw", err, resolve, reject); }); } return promise.resolve(value).then(function(unwrapped) { // when a yielded promise is resolved, its final value becomes // the .value of the promise<{value,done}> result for the // current iteration. result.value = unwrapped; resolve(result); }, function(error) { // if a rejected promise was yielded, throw the rejection back // into the async generator function so it can be handled there. return invoke("throw", error, resolve, reject); }); } } var previouspromise; function enqueue(method, arg) { function callinvokewithmethodandarg() { return new promise(function(resolve, reject) { invoke(method, arg, resolve, reject); }); } return previouspromise = // if enqueue has been called before, then we want to wait until // all previous promises have been resolved before calling invoke, // so that results are always delivered in the correct order. if // enqueue has not been called before, then it is important to // call invoke immediately, without waiting on a callback to fire, // so that the async generator function has the opportunity to do // any necessary setup in a predictable way. this predictability // is why the promise constructor synchronously invokes its // executor callback, and why async functions synchronously // execute code before the first await. since we implement simple // async functions in terms of async generators, it is especially // important to get this right, even though it requires care. previouspromise ? previouspromise.then( callinvokewithmethodandarg, // avoid propagating failures to promises returned by later // invocations of the iterator. callinvokewithmethodandarg ) : callinvokewithmethodandarg(); } // define the unified helper method that is used to implement .next, // .throw, and .return (see defineiteratormethods). this._invoke = enqueue; } defineiteratormethods(asynciterator.prototype); asynciterator.prototype[asynciteratorsymbol] = function () { return this; }; runtime.asynciterator = asynciterator; // note that simple async functions are implemented on top of // asynciterator objects; they just return a promise for the value of // the final result produced by the iterator. runtime.async = function(innerfn, outerfn, self, trylocslist) { var iter = new asynciterator( wrap(innerfn, outerfn, self, trylocslist) ); return runtime.isgeneratorfunction(outerfn) ? iter // if outerfn is a generator, return the full iterator. : iter.next().then(function(result) { return result.done ? result.value : iter.next(); }); }; function makeinvokemethod(innerfn, self, context) { var state = genstatesuspendedstart; return function invoke(method, arg) { if (state === genstateexecuting) { throw new error("generator is already running"); } if (state === genstatecompleted) { if (method === "throw") { throw arg; } // be forgiving, per 25.3.3.3.3 of the spec: // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume return doneresult(); } context.method = method; context.arg = arg; while (true) { var delegate = context.delegate; if (delegate) { var delegateresult = maybeinvokedelegate(delegate, context); if (delegateresult) { if (delegateresult === continuesentinel) continue; return delegateresult; } } if (context.method === "next") { // setting context._sent for legacy support of babel's // function.sent implementation. context.sent = context._sent = context.arg; } else if (context.method === "throw") { if (state === genstatesuspendedstart) { state = genstatecompleted; throw context.arg; } context.dispatchexception(context.arg); } else if (context.method === "return") { context.abrupt("return", context.arg); } state = genstateexecuting; var record = trycatch(innerfn, self, context); if (record.type === "normal") { // if an exception is thrown from innerfn, we leave state === // genstateexecuting and loop back for another invocation. state = context.done ? genstatecompleted : genstatesuspendedyield; if (record.arg === continuesentinel) { continue; } return { value: record.arg, done: context.done }; } else if (record.type === "throw") { state = genstatecompleted; // dispatch the exception by looping back around to the // context.dispatchexception(context.arg) call above. context.method = "throw"; context.arg = record.arg; } } }; } // call delegate.iterator[context.method](context.arg) and handle the // result, either by returning a { value, done } result from the // delegate iterator, or by modifying context.method and context.arg, // setting context.delegate to null, and returning the continuesentinel. function maybeinvokedelegate(delegate, context) { var method = delegate.iterator[context.method]; if (method === undefined) { // a .throw or .return when the delegate iterator has no .throw // method always terminates the yield* loop. context.delegate = null; if (context.method === "throw") { if (delegate.iterator.return) { // if the delegate iterator has a return method, give it a // chance to clean up. context.method = "return"; context.arg = undefined; maybeinvokedelegate(delegate, context); if (context.method === "throw") { // if maybeinvokedelegate(context) changed context.method from // "return" to "throw", var that override the typeerror below. return continuesentinel; } } context.method = "throw"; context.arg = new typeerror( "the iterator does not provide a 'throw' method"); } return continuesentinel; } var record = trycatch(method, delegate.iterator, context.arg); if (record.type === "throw") { context.method = "throw"; context.arg = record.arg; context.delegate = null; return continuesentinel; } var info = record.arg; if (! info) { context.method = "throw"; context.arg = new typeerror("iterator result is not an object"); context.delegate = null; return continuesentinel; } if (info.done) { // assign the result of the finished delegate to the temporary // variable specified by delegate.resultname (see delegateyield). context[delegate.resultname] = info.value; // resume execution at the desired location (see delegateyield). context.next = delegate.nextloc; // if context.method was "throw" but the delegate handled the // exception, var the outer generator proceed normally. if // context.method was "next", forget context.arg since it has been // "consumed" by the delegate iterator. if context.method was // "return", allow the original .return call to continue in the // outer generator. if (context.method !== "return") { context.method = "next"; context.arg = undefined; } } else { // re-yield the result returned by the delegate method. return info; } // the delegate iterator is finished, so forget it and continue with // the outer generator. context.delegate = null; return continuesentinel; } // define generator.prototype.{next,throw,return} in terms of the // unified ._invoke helper method. defineiteratormethods(gp); gp[tostringtagsymbol] = "generator"; // a generator should always return itself as the iterator object when the // @@iterator function is called on it. some browsers' implementations of the // iterator prototype chain incorrectly implement this, causing the generator // object to not be returned from this call. this ensures that doesn't happen. // see https://github.com/facebook/regenerator/issues/274 for more details. gp[iteratorsymbol] = function() { return this; }; gp.tostring = function() { return "[object generator]"; }; function pushtryentry(locs) { var entry = { tryloc: locs[0] }; if (1 in locs) { entry.catchloc = locs[1]; } if (2 in locs) { entry.finallyloc = locs[2]; entry.afterloc = locs[3]; } this.tryentries.push(entry); } function resettryentry(entry) { var record = entry.completion || {}; record.type = "normal"; delete record.arg; entry.completion = record; } function context(trylocslist) { // the root entry object (effectively a try statement without a catch // or a finally block) gives us a place to store values thrown from // locations where there is no enclosing try statement. this.tryentries = [{ tryloc: "root" }]; trylocslist.foreach(pushtryentry, this); this.reset(true); } runtime.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); } keys.reverse(); // rather than returning an object with a next method, we keep // things simple and return the next function itself. return function next() { while (keys.length) { var key = keys.pop(); if (key in object) { next.value = key; next.done = false; return next; } } // to avoid creating an additional object, we just hang the .value // and .done properties off the next function object itself. this // also ensures that the minifier will not anonymize the function. next.done = true; return next; }; }; function values(iterable) { if (iterable) { var iteratormethod = iterable[iteratorsymbol]; if (iteratormethod) { return iteratormethod.call(iterable); } if (typeof iterable.next === "function") { return iterable; } if (!isnan(iterable.length)) { var i = -1, next = function next() { while (++i < iterable.length) { if (hasown.call(iterable, i)) { next.value = iterable[i]; next.done = false; return next; } } next.value = undefined; next.done = true; return next; }; return next.next = next; } } // return an iterator with no values. return { next: doneresult }; } runtime.values = values; function doneresult() { return { value: undefined, done: true }; } context.prototype = { constructor: context, reset: function(skiptempreset) { this.prev = 0; this.next = 0; // resetting context._sent for legacy support of babel's // function.sent implementation. this.sent = this._sent = undefined; this.done = false; this.delegate = null; this.method = "next"; this.arg = undefined; this.tryentries.foreach(resettryentry); if (!skiptempreset) { for (var name in this) { // not sure about the optimal order of these conditions: if (name.charat(0) === "t" && hasown.call(this, name) && !isnan(+name.slice(1))) { this[name] = undefined; } } } }, stop: function() { this.done = true; var rootentry = this.tryentries[0]; var rootrecord = rootentry.completion; if (rootrecord.type === "throw") { throw rootrecord.arg; } return this.rval; }, dispatchexception: function(exception) { if (this.done) { throw exception; } var context = this; function handle(loc, caught) { record.type = "throw"; record.arg = exception; context.next = loc; if (caught) { // if the dispatched exception was caught by a catch block, // then var that catch block handle the exception normally. context.method = "next"; context.arg = undefined; } return !! caught; } for (var i = this.tryentries.length - 1; i >= 0; --i) { var entry = this.tryentries[i]; var record = entry.completion; if (entry.tryloc === "root") { // exception thrown outside of any try block that could handle // it, so set the completion value of the entire function to // throw the exception. return handle("end"); } if (entry.tryloc <= this.prev) { var hascatch = hasown.call(entry, "catchloc"); var hasfinally = hasown.call(entry, "finallyloc"); if (hascatch && hasfinally) { if (this.prev < entry.catchloc) { return handle(entry.catchloc, true); } else if (this.prev < entry.finallyloc) { return handle(entry.finallyloc); } } else if (hascatch) { if (this.prev < entry.catchloc) { return handle(entry.catchloc, true); } } else if (hasfinally) { if (this.prev < entry.finallyloc) { return handle(entry.finallyloc); } } else { throw new error("try statement without catch or finally"); } } } }, abrupt: function(type, arg) { for (var i = this.tryentries.length - 1; i >= 0; --i) { var entry = this.tryentries[i]; if (entry.tryloc <= this.prev && hasown.call(entry, "finallyloc") && this.prev < entry.finallyloc) { var finallyentry = entry; break; } } if (finallyentry && (type === "break" || type === "continue") && finallyentry.tryloc <= arg && arg <= finallyentry.finallyloc) { // ignore the finally entry if control is not jumping to a // location outside the try/catch block. finallyentry = null; } var record = finallyentry ? finallyentry.completion : {}; record.type = type; record.arg = arg; if (finallyentry) { this.method = "next"; this.next = finallyentry.finallyloc; return continuesentinel; } return this.complete(record); }, complete: function(record, afterloc) { if (record.type === "throw") { throw record.arg; } if (record.type === "break" || record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = this.arg = record.arg; this.method = "return"; this.next = "end"; } else if (record.type === "normal" && afterloc) { this.next = afterloc; } return continuesentinel; }, finish: function(finallyloc) { for (var i = this.tryentries.length - 1; i >= 0; --i) { var entry = this.tryentries[i]; if (entry.finallyloc === finallyloc) { this.complete(entry.completion, entry.afterloc); resettryentry(entry); return continuesentinel; } } }, "catch": function(tryloc) { for (var i = this.tryentries.length - 1; i >= 0; --i) { var entry = this.tryentries[i]; if (entry.tryloc === tryloc) { var record = entry.completion; if (record.type === "throw") { var thrown = record.arg; resettryentry(entry); } return thrown; } } // the context.catch method must only be called with a location // argument that corresponds to a known catch block. throw new error("illegal catch attempt"); }, delegateyield: function(iterable, resultname, nextloc) { this.delegate = { iterator: values(iterable), resultname: resultname, nextloc: nextloc }; if (this.method === "next") { // deliberately forget the last sent value so that we don't // accidentally pass it on to the delegate. this.arg = undefined; } return continuesentinel; } }; })( // in sloppy mode, unbound `this` refers to the global object, fallback to // function constructor if we're in global strict mode. that is sadly a form // of indirect eval which violates content security policy. (function() { return this || (typeof self === "object" && self); })() || function("return this")() ); },{}]},{},[1]);