Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

es6-shim

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-shim - npm Package Compare versions

Comparing version 0.34.0 to 0.34.1

test/array.js

4

.jscs.json

@@ -150,4 +150,6 @@ {

"requireObjectDestructuring": false
"requireObjectDestructuring": false,
"requireEarlyReturn": false
}
# es6-shim x.x.x (not yet released)
# es6-shim 0.34.1 (5 Jan 2016)
* [Fix] `RegExp#[Symbol.search]` was broken with a regex argument (#394)
* [Fix] ensure that Set#clear works with both primitive and object values
* [Fix] static Promise methods have the wrong length in Firefox
* [Robustness] Cache `Object.keys`
* [Performance] Avoid accessing arguments array without length check
* [Performance] Optimize ES.TypeIsObject (#388)
* [Performance] Promises: lots of improvements (#383)
* [Performance] Only use slow implementation of IsCallable where necessary (old browsers)
* [Performance] Promises: remove unnecessary `.bind` on `setImmediate`
* [Refactor] extract “decode fast Map key” logic
* [Dev Deps] update `s5-shim`, `@ljharb/eslint-config`
* Don’t npmignore tests
* [Tests] Fix a bug with “deep equal” wrt NaN
* [Tests] split up Map and Set test files
* [Tests] up to `node` `v5.3`
# es6-shim 0.34.0 (14 Dec 2015)

@@ -4,0 +21,0 @@ * [Breaking] Remove `Symbol.species` from `Promise.all` and `Promise.race` (#34)

{
"name": "es6-shim",
"version": "0.34.0",
"version": "0.34.1",
"repo": "paulmillr/es6-shim",

@@ -5,0 +5,0 @@ "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

@@ -5,4 +5,4 @@ /*!

* and contributors, MIT License
* es6-sham: v0.34.0
* see https://github.com/paulmillr/es6-shim/blob/0.34.0/LICENSE
* es6-sham: v0.34.1
* see https://github.com/paulmillr/es6-shim/blob/0.34.1/LICENSE
* Details and documentation:

@@ -9,0 +9,0 @@ * https://github.com/paulmillr/es6-shim/

@@ -5,4 +5,4 @@ /*!

* and contributors, MIT License
* es6-sham: v0.34.0
* see https://github.com/paulmillr/es6-shim/blob/0.34.0/LICENSE
* es6-sham: v0.34.1
* see https://github.com/paulmillr/es6-shim/blob/0.34.1/LICENSE
* Details and documentation:

@@ -9,0 +9,0 @@ * https://github.com/paulmillr/es6-shim/

@@ -5,9 +5,9 @@ /*!

* and contributors, MIT License
* es6-shim: v0.34.0
* see https://github.com/paulmillr/es6-shim/blob/0.34.0/LICENSE
* es6-shim: v0.34.1
* see https://github.com/paulmillr/es6-shim/blob/0.34.1/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-shim/
*/
(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=Function.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var o=function(e){try{e();return false}catch(t){return true}};var i=function valueOrFalseIfThrows(e){try{return e()}catch(t){return false}};var a=n(o);var u=function(){return!o(function(){Object.defineProperty({},"x",{get:function(){}})})};var s=!!Object.defineProperty&&u();var f=function foo(){}.name==="foo";var c=Function.call.bind(Array.prototype.forEach);var l=Function.call.bind(Array.prototype.reduce);var p=Function.call.bind(Array.prototype.filter);var v=Function.call.bind(Array.prototype.some);var y=function(e,t,r,n){if(!n&&t in e){return}if(s){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var h=function(e,t,r){c(Object.keys(t),function(n){var o=t[n];y(e,n,o,!!r)})};var g=Function.call.bind(Object.prototype.toString);var b=function isCallable(e){return typeof e==="function"&&g(e)==="[object Function]"};var d={getter:function(e,t,r){if(!s){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!s){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function getKey(){return e[t]},set:function setKey(r){e[t]=r}})},redefine:function(e,t,r){if(s){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(s){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){if(t&&b(t.toString)){y(e,"toString",t.toString.bind(t),true)}}};var m=Object.create||function(e,t){var r=function Prototype(){};r.prototype=e;var n=new r;if(typeof t!=="undefined"){Object.keys(t).forEach(function(e){d.defineByDescriptor(n,e,t[e])})}return n};var O=function(e,t){if(!Object.setPrototypeOf){return false}return i(function(){var r=function Subclass(t){var r=new e(t);Object.setPrototypeOf(r,Subclass.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=m(e.prototype,{constructor:{value:r}});return t(r)})};var w=function(){if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}throw new Error("unable to locate global object")};var j=w();var S=j.isFinite;var T=Function.call.bind(String.prototype.indexOf);var I=Function.call.bind(Array.prototype.concat);var E=Function.call.bind(Array.prototype.sort);var M=Function.call.bind(String.prototype.slice);var P=Function.call.bind(Array.prototype.push);var C=Function.apply.bind(Array.prototype.push);var x=Function.call.bind(Array.prototype.shift);var N=Math.max;var A=Math.min;var R=Math.floor;var k=Math.abs;var _=Math.log;var F=Math.sqrt;var D=Function.call.bind(Object.prototype.hasOwnProperty);var z;var L=function(){};var q=j.Symbol||{};var W=q.species||"@@species";var G=Number.isNaN||function isNaN(e){return e!==e};var B=Number.isFinite||function isFinite(e){return typeof e==="number"&&S(e)};var H=function isArguments(e){return g(e)==="[object Arguments]"};var $=function isArguments(e){return e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&g(e)!=="[object Array]"&&g(e.callee)==="[object Function]"};var V=H(arguments)?H:$;var J={primitive:function(e){return e===null||typeof e!=="function"&&typeof e!=="object"},object:function(e){return e!==null&&typeof e==="object"},string:function(e){return g(e)==="[object String]"},regex:function(e){return g(e)==="[object RegExp]"},symbol:function(e){return typeof j.Symbol==="function"&&typeof e==="symbol"}};var K=function overrideNative(e,t,r){var n=e[t];y(e,t,r,true);d.preserveToString(e[t],n)};var U=typeof q==="function"&&typeof q["for"]==="function"&&J.symbol(q());var X=J.symbol(q.iterator)?q.iterator:"_es6-shim iterator_";if(j.Set&&typeof(new j.Set)["@@iterator"]==="function"){X="@@iterator"}if(!j.Reflect){y(j,"Reflect",{})}var Z=j.Reflect;var Q=String;var Y={Call:function Call(t,r){var n=arguments.length>2?arguments[2]:[];if(!Y.IsCallable(t)){throw new TypeError(t+" is not a function")}return e(t,r,n)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}return e},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){return Object(Y.RequireObjectCoercible(e,t))},IsCallable:b,IsConstructor:function(e){return Y.IsCallable(e)},ToInt32:function(e){return Y.ToNumber(e)>>0},ToUint32:function(e){return Y.ToNumber(e)>>>0},ToNumber:function(e){if(g(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=Y.ToNumber(e);if(G(t)){return 0}if(t===0||!B(t)){return t}return(t>0?1:-1)*R(k(t))},ToLength:function(e){var t=Y.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return G(e)&&G(t)},SameValueZero:function(e,t){return e===t||G(e)&&G(t)},IsIterable:function(e){return Y.TypeIsObject(e)&&(typeof e[X]!=="undefined"||V(e))},GetIterator:function(e){if(V(e)){return new z(e,"value")}var t=Y.GetMethod(e,X);if(!Y.IsCallable(t)){throw new TypeError("value is not an iterable")}var r=Y.Call(t,e);if(!Y.TypeIsObject(r)){throw new TypeError("bad iterator")}return r},GetMethod:function(e,t){var r=Y.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!Y.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var r=Y.GetMethod(e,"return");if(r===void 0){return}var n,o;try{n=Y.Call(r,e)}catch(i){o=i}if(t){return}if(o){throw o}if(!Y.TypeIsObject(n)){throw new TypeError("Iterator's return method returned a non-object.")}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!Y.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=Y.IteratorNext(e);var r=Y.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){var o=typeof r==="undefined"?e:r;if(!n&&Z.construct){return Z.construct(e,t,o)}var i=o.prototype;if(!Y.TypeIsObject(i)){i=Object.prototype}var a=m(i);var u=Y.Call(e,a,t);return Y.TypeIsObject(u)?u:a},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!Y.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[W];if(n===void 0||n===null){return t}if(!Y.IsConstructor(n)){throw new TypeError("Bad @@species")}return n},CreateHTML:function(e,t,r,n){var o=Y.ToString(e);var i="<"+t;if(r!==""){var a=Y.ToString(n);var u=a.replace(/"/g,"&quot;");i+=" "+r+'="'+u+'"'}var s=i+">";var f=s+o;return f+"</"+t+">"},IsRegExp:function IsRegExp(e){if(!Y.TypeIsObject(e)){return false}var t=e[q.match];if(typeof t!=="undefined"){return!!t}return J.regex(e)},ToString:function ToString(e){return Q(e)}};if(s&&U){var ee=function defineWellKnownSymbol(e){if(J.symbol(q[e])){return q[e]}var t=q["for"]("Symbol."+e);Object.defineProperty(q,e,{configurable:false,enumerable:false,writable:false,value:t});return t};if(!J.symbol(q.search)){var te=ee("search");var re=String.prototype.search;y(RegExp.prototype,te,function search(e){return Y.Call(re,e,[Y.ToString(this)])});var ne=function search(e){var t=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var r=Y.GetMethod(e,te);if(typeof r!=="undefined"){return Y.Call(r,e,[t])}}return Y.Call(re,t,[Y.ToString(e)])};K(String.prototype,"search",ne)}if(!J.symbol(q.replace)){var oe=ee("replace");var ie=String.prototype.replace;y(RegExp.prototype,oe,function replace(e,t){return Y.Call(ie,e,[this,t])});var ae=function replace(e,t){var r=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var n=Y.GetMethod(e,oe);if(typeof n!=="undefined"){return Y.Call(n,e,[r,t])}}return Y.Call(ie,r,[Y.ToString(e),t])};K(String.prototype,"replace",ae)}if(!J.symbol(q.split)){var ue=ee("split");var se=String.prototype.split;y(RegExp.prototype,ue,function split(e,t){return Y.Call(se,e,[this,t])});var fe=function split(e,t){var r=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var n=Y.GetMethod(e,ue);if(typeof n!=="undefined"){return Y.Call(n,e,[r,t])}}return Y.Call(se,r,[Y.ToString(e),t])};K(String.prototype,"split",fe)}var ce=J.symbol(q.match);var le=ce&&function(){var e={};e[q.match]=function(){return 42};return"a".match(e)!==42}();if(!ce||le){var pe=ee("match");var ve=String.prototype.match;y(RegExp.prototype,pe,function match(e){return Y.Call(ve,e,[this])});var ye=function match(e){var t=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var r=Y.GetMethod(e,pe);if(typeof r!=="undefined"){return Y.Call(r,e,[t])}}return Y.Call(ve,t,[Y.ToString(e)])};K(String.prototype,"match",ye)}}var he=function wrapConstructor(e,t,r){d.preserveToString(t,e);if(Object.setPrototypeOf){Object.setPrototypeOf(e,t)}if(s){c(Object.getOwnPropertyNames(e),function(n){if(n in L||r[n]){return}d.proxy(e,n,t)})}else{c(Object.keys(e),function(n){if(n in L||r[n]){return}t[n]=e[n]})}t.prototype=e.prototype;d.redefine(e.prototype,"constructor",t)};var ge=function(){return this};var be=function(e){if(s&&!D(e,W)){d.getter(e,W,ge)}};var de=function(e,t){var r=t||function iterator(){return this};y(e,X,r);if(!e[X]&&J.symbol(X)){e[X]=r}};var me=function createDataProperty(e,t,r){if(s){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var Oe=function createDataPropertyOrThrow(e,t,r){me(e,t,r);if(!Y.SameValue(e[t],r)){throw new TypeError("property is nonconfigurable")}};var we=function(e,t,r,n){if(!Y.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!Y.TypeIsObject(o)){o=r}var i=m(o);for(var a in n){if(D(n,a)){var u=n[a];y(i,a,u,true)}}return i};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var je=String.fromCodePoint;K(String,"fromCodePoint",function fromCodePoint(e){return Y.Call(je,this,arguments)})}var Se={fromCodePoint:function fromCodePoint(e){var t=[];var r;for(var n=0,o=arguments.length;n<o;n++){r=Number(arguments[n]);if(!Y.SameValue(r,Y.ToInteger(r))||r<0||r>1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){P(t,String.fromCharCode(r))}else{r-=65536;P(t,String.fromCharCode((r>>10)+55296));P(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function raw(e){var t=Y.ToObject(e,"bad callSite");var r=Y.ToObject(t.raw,"bad raw value");var n=r.length;var o=Y.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,s,f,c;while(a<o){u=Y.ToString(a);f=Y.ToString(r[u]);P(i,f);if(a+1>=o){break}s=a+1<arguments.length?arguments[a+1]:"";c=Y.ToString(s);P(i,c);a+=1}return i.join("")}};if(String.raw&&String.raw({raw:{0:"x",1:"y",length:2}})!=="xy"){K(String,"raw",Se.raw)}h(String,Se);var Te=function repeat(e,t){if(t<1){return""}if(t%2){return repeat(e,t-1)+e}var r=repeat(e,t/2);return r+r};var Ie=Infinity;var Ee={repeat:function repeat(e){var t=Y.ToString(Y.RequireObjectCoercible(this));var r=Y.ToInteger(e);if(r<0||r>=Ie){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return Te(t,r)},startsWith:function startsWith(e){var t=Y.ToString(Y.RequireObjectCoercible(this));if(Y.IsRegExp(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}var r=Y.ToString(e);var n=arguments.length>1?arguments[1]:void 0;var o=N(Y.ToInteger(n),0);return M(t,o,o+r.length)===r},endsWith:function endsWith(e){var t=Y.ToString(Y.RequireObjectCoercible(this));if(Y.IsRegExp(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}var r=Y.ToString(e);var n=t.length;var o=arguments.length>1?arguments[1]:void 0;var i=typeof o==="undefined"?n:Y.ToInteger(o);var a=A(N(i,0),n);return M(t,a-r.length,a)===r},includes:function includes(e){if(Y.IsRegExp(e)){throw new TypeError('"includes" does not accept a RegExp')}var t=Y.ToString(e);var r;if(arguments.length>1){r=arguments[1]}return T(this,t,r)!==-1},codePointAt:function codePointAt(e){var t=Y.ToString(Y.RequireObjectCoercible(this));var r=Y.ToInteger(e);var n=t.length;if(r>=0&&r<n){var o=t.charCodeAt(r);var i=r+1===n;if(o<55296||o>56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",Infinity)!==false){K(String.prototype,"includes",Ee.includes)}if(String.prototype.startsWith&&String.prototype.endsWith){var Me=o(function(){"/a/".startsWith(/a/)});var Pe="abc".startsWith("a",Infinity)===false;if(!Me||!Pe){K(String.prototype,"startsWith",Ee.startsWith);K(String.prototype,"endsWith",Ee.endsWith)}}if(U){var Ce=i(function(){var e=/a/;e[q.match]=false;return"/a/".startsWith(e)});if(!Ce){K(String.prototype,"startsWith",Ee.startsWith)}var xe=i(function(){var e=/a/;e[q.match]=false;return"/a/".endsWith(e)});if(!xe){K(String.prototype,"endsWith",Ee.endsWith)}var Ne=i(function(){var e=/a/;e[q.match]=false;return"/a/".includes(e)});if(!Ne){K(String.prototype,"includes",Ee.includes)}}h(String.prototype,Ee);var Ae=[" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join("");var Re=new RegExp("(^["+Ae+"]+)|(["+Ae+"]+$)","g");var ke=function trim(){return Y.ToString(Y.RequireObjectCoercible(this)).replace(Re,"")};var _e=["\x85","\u200b","\ufffe"].join("");var Fe=new RegExp("["+_e+"]","g");var De=/^[\-+]0x[0-9a-f]+$/i;var ze=_e.trim().length!==_e.length;y(String.prototype,"trim",ke,ze);var Le=function(e){Y.RequireObjectCoercible(e);this._s=Y.ToString(e);this._i=0};Le.prototype.next=function(){var e=this._s,t=this._i;if(typeof e==="undefined"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,o;if(r<55296||r>56319||t+1===e.length){o=1}else{n=e.charCodeAt(t+1);o=n<56320||n>57343?1:2}this._i=t+o;return{value:e.substr(t,o),done:false}};de(Le.prototype);de(String.prototype,function(){return new Le(this)});var qe={from:function from(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!Y.IsCallable(n)){throw new TypeError("Array.from: when provided, the second argument must be a function")}i=arguments.length>2?arguments[2]:void 0;o=true}var a=typeof(V(e)||Y.GetMethod(e,X))!=="undefined";var u,s,f;if(a){s=Y.IsConstructor(r)?Object(new r):[];var c=Y.GetIterator(e);var l,p;f=0;while(true){l=Y.IteratorStep(c);if(l===false){break}p=l.value;try{if(o){p=i===undefined?n(p,f):t(n,i,p,f)}s[f]=p}catch(v){Y.IteratorClose(c,true);throw v}f+=1}u=f}else{var y=Y.ToObject(e);u=Y.ToLength(y.length);s=Y.IsConstructor(r)?Object(new r(u)):new Array(u);var h;for(f=0;f<u;++f){h=y[f];if(o){h=i!==undefined?t(n,i,h,f):n(h,f)}s[f]=h}}s.length=u;return s},of:function of(){var e=arguments.length;var t=this;var n=r(t)||!Y.IsCallable(t)?new Array(e):Y.Construct(t,[e]);for(var o=0;o<e;++o){Oe(n,o,arguments[o])}n.length=e;return n}};h(Array,qe);be(Array);var We=function(e){return{value:e,done:arguments.length===0}};z=function(e,t){this.i=0;this.array=e;this.kind=t};h(z.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof z)){throw new TypeError("Not an ArrayIterator")}if(typeof t!=="undefined"){var r=Y.ToLength(t.length);for(;e<r;e++){var n=this.kind;var o;if(n==="key"){o=e}else if(n==="value"){o=t[e]}else if(n==="entry"){o=[e,t[e]]}this.i=e+1;return{value:o,done:false}}}this.array=void 0;return{value:void 0,done:true}}});de(z.prototype);var Ge=function orderKeys(e,t){var r=String(Y.ToInteger(e))===e;var n=String(Y.ToInteger(t))===t;if(r&&n){return t-e}else if(r&&!n){return-1}else if(!r&&n){return 1}else{return e.localeCompare(t)}};var Be=function getAllKeys(e){var t=[];var r=[];for(var n in e){P(D(e,n)?t:r,n)}E(t,Ge);E(r,Ge);return I(t,r)};var He=function(e,t){h(this,{object:e,array:Be(e),kind:t})};h(He.prototype,{next:function next(){var e;var t=this.array;if(!(this instanceof He)){throw new TypeError("Not an ObjectIterator")}while(t.length>0){e=x(t);if(!(e in this.object)){continue}if(this.kind==="key"){return We(e)}else if(this.kind==="value"){return We(this.object[e])}else{return We([e,this.object[e]])}}return We()}});de(He.prototype);var $e=Array.of===qe.of||function(){var e=function Foo(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!$e){K(Array,"of",qe.of)}var Ve={copyWithin:function copyWithin(e,t){var r=arguments[2];var n=Y.ToObject(this);var o=Y.ToLength(n.length);var i=Y.ToInteger(e);var a=Y.ToInteger(t);var u=i<0?N(o+i,0):A(i,o);var s=a<0?N(o+a,0):A(a,o);r=typeof r==="undefined"?o:Y.ToInteger(r);var f=r<0?N(o+r,0):A(r,o);var c=A(f-s,o-u);var l=1;if(s<u&&u<s+c){l=-1;s+=c-1;u+=c-1}while(c>0){if(D(n,s)){n[u]=n[s]}else{delete n[s]}s+=l;u+=l;c-=1}return n},fill:function fill(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=Y.ToObject(this);var o=Y.ToLength(n.length);t=Y.ToInteger(typeof t==="undefined"?0:t);r=Y.ToInteger(typeof r==="undefined"?o:r);var i=t<0?N(o+t,0):A(t,o);var a=r<0?o+r:r;for(var u=i;u<o&&u<a;++u){n[u]=e}return n},find:function find(e){var r=Y.ToObject(this);var n=Y.ToLength(r.length);if(!Y.IsCallable(e)){throw new TypeError("Array#find: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0,a;i<n;i++){a=r[i];if(o){if(t(e,o,a,i,r)){return a}}else if(e(a,i,r)){return a}}},findIndex:function findIndex(e){var r=Y.ToObject(this);var n=Y.ToLength(r.length);if(!Y.IsCallable(e)){throw new TypeError("Array#findIndex: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0;i<n;i++){if(o){if(t(e,o,r[i],i,r)){return i}}else if(e(r[i],i,r)){return i}}return-1},keys:function keys(){return new z(this,"key")},values:function values(){return new z(this,"value")},entries:function entries(){return new z(this,"entry")}};if(Array.prototype.keys&&!Y.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!Y.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[X]){h(Array.prototype,{values:Array.prototype[X]});if(J.symbol(q.unscopables)){Array.prototype[q.unscopables].values=true}}if(f&&Array.prototype.values&&Array.prototype.values.name!=="values"){var Je=Array.prototype.values;K(Array.prototype,"values",function values(){return Y.Call(Je,this,arguments)});y(Array.prototype,X,Array.prototype.values,true)}h(Array.prototype,Ve);de(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){de(Object.getPrototypeOf([].values()))}var Ke=function(){return i(function(){return Array.from({length:-1}).length===0})}();var Ue=function(){var e=Array.from([0].entries());return e.length===1&&r(e[0])&&e[0][0]===0&&e[0][1]===0}();if(!Ke||!Ue){K(Array,"from",qe.from)}var Xe=function(){return i(function(){return Array.from([0],undefined)})}();if(!Xe){var Ze=Array.from;K(Array,"from",function from(e){if(arguments.length>0&&typeof arguments[1]!=="undefined"){return Y.Call(Ze,this,arguments)}else{return t(Ze,this,e)}})}var Qe=-(Math.pow(2,32)-1);var Ye=function(e,r){var n={length:Qe};n[r?(n.length>>>0)-1:0]=true;return i(function(){t(e,n,function(){throw new RangeError("should not reach here")},[]);return true})};if(!Ye(Array.prototype.forEach)){var et=Array.prototype.forEach;K(Array.prototype,"forEach",function forEach(e){return Y.Call(et,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.map)){var tt=Array.prototype.map;K(Array.prototype,"map",function map(e){return Y.Call(tt,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.filter)){var rt=Array.prototype.filter;K(Array.prototype,"filter",function filter(e){return Y.Call(rt,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.some)){var nt=Array.prototype.some;K(Array.prototype,"some",function some(e){return Y.Call(nt,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.every)){var ot=Array.prototype.every;K(Array.prototype,"every",function every(e){return Y.Call(ot,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.reduce)){var it=Array.prototype.reduce;K(Array.prototype,"reduce",function reduce(e){return Y.Call(it,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.reduceRight,true)){var at=Array.prototype.reduceRight;K(Array.prototype,"reduceRight",function reduceRight(e){return Y.Call(at,this.length>=0?this:[],arguments)},true)}var ut=Number("0o10")!==8;var st=Number("0b10")!==2;var ft=v(_e,function(e){return Number(e+0+e)===0});if(ut||st||ft){var ct=Number;var lt=/^0b[01]+$/i;var pt=/^0o[0-7]+$/i;var vt=lt.test.bind(lt);var yt=pt.test.bind(pt);var ht=function(e){var t;if(typeof e.valueOf==="function"){t=e.valueOf();if(J.primitive(t)){return t}}if(typeof e.toString==="function"){t=e.toString();if(J.primitive(t)){return t}}throw new TypeError("No default value")};var gt=Fe.test.bind(Fe);var bt=De.test.bind(De);var dt=function(){var e=function Number(t){var r;if(arguments.length>0){r=J.primitive(t)?t:ht(t,"number")}else{r=0}if(typeof r==="string"){r=Y.Call(ke,r);if(vt(r)){r=parseInt(M(r,2),2)}else if(yt(r)){r=parseInt(M(r,2),8)}else if(gt(r)||bt(r)){r=NaN}}var n=this;var o=i(function(){ct.prototype.valueOf.call(n);return true});if(n instanceof e&&!o){return new ct(r)}return ct(r)};return e}();he(ct,dt,{});Number=dt;d.redefine(j,"Number",dt)}var mt=Math.pow(2,53)-1;h(Number,{MAX_SAFE_INTEGER:mt,MIN_SAFE_INTEGER:-mt,EPSILON:2.220446049250313e-16,parseInt:j.parseInt,parseFloat:j.parseFloat,isFinite:B,isInteger:function isInteger(e){return B(e)&&Y.ToInteger(e)===e},isSafeInteger:function isSafeInteger(e){return Number.isInteger(e)&&k(e)<=Number.MAX_SAFE_INTEGER},isNaN:G});y(Number,"parseInt",j.parseInt,Number.parseInt!==j.parseInt);if(![,1].find(function(e,t){return t===0})){K(Array.prototype,"find",Ve.find)}if([,1].findIndex(function(e,t){return t===0})!==0){K(Array.prototype,"findIndex",Ve.findIndex)}var Ot=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var wt=function ensureEnumerable(e,t){if(s&&Ot(e,t)){Object.defineProperty(e,t,{enumerable:false})}};var jt=function sliceArgs(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o<t;++o){n[o-e]=arguments[o]}return n};var St=function assignTo(e){return function assignToSource(t,r){t[r]=e[r];return t}};var Tt=function(e,t){var r=Object.keys(Object(t));var n;if(Y.IsCallable(Object.getOwnPropertySymbols)){n=p(Object.getOwnPropertySymbols(Object(t)),Ot(t))}return l(I(r,n||[]),St(t),e)};var It={assign:function(e,t){var r=Y.ToObject(e,"Cannot convert undefined or null to object");return l(Y.Call(jt,1,arguments),Tt,r)},is:function is(e,t){return Y.SameValue(e,t)}};var Et=Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return e[1]==="y"}}();if(Et){K(Object,"assign",It.assign)}h(Object,It);if(s){var Mt={setPrototypeOf:function(e,r){var n;var o=function(e,t){if(!Y.TypeIsObject(e)){throw new TypeError("cannot set prototype on a non-object")}if(!(t===null||Y.TypeIsObject(t))){throw new TypeError("can only set prototype to an object or null"+t)}};var i=function(e,r){o(e,r);t(n,e,r);return e};try{n=e.getOwnPropertyDescriptor(e.prototype,r).set;t(n,{},null)}catch(a){if(e.prototype!=={}[r]){return}n=function(e){this[r]=e};i.polyfill=i(i({},null),e.prototype)instanceof e}return i}(Object,"__proto__")};h(Object,Mt)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var e=Object.create(null);var t=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=t(r);return n===e?null:n};Object.setPrototypeOf=function(t,n){var o=n===null?e:n;return r(t,o)};Object.setPrototypeOf.polyfill=false})()}var Pt=!o(function(){Object.keys("foo")});if(!Pt){var Ct=Object.keys;K(Object,"keys",function keys(e){return Ct(Y.ToObject(e))})}if(Object.getOwnPropertyNames){var xt=!o(function(){Object.getOwnPropertyNames("foo")});if(!xt){var Nt=typeof window==="object"?Object.getOwnPropertyNames(window):[];var At=Object.getOwnPropertyNames;K(Object,"getOwnPropertyNames",function getOwnPropertyNames(e){var t=Y.ToObject(e);if(g(t)==="[object Window]"){try{return At(t)}catch(r){return I([],Nt)}}return At(t)})}}if(Object.getOwnPropertyDescriptor){var Rt=!o(function(){Object.getOwnPropertyDescriptor("foo","bar")});if(!Rt){var kt=Object.getOwnPropertyDescriptor;K(Object,"getOwnPropertyDescriptor",function getOwnPropertyDescriptor(e,t){return kt(Y.ToObject(e),t)})}}if(Object.seal){var _t=!o(function(){Object.seal("foo")});if(!_t){var Ft=Object.seal;K(Object,"seal",function seal(e){if(!J.object(e)){return e}return Ft(e)})}}if(Object.isSealed){var Dt=!o(function(){Object.isSealed("foo")});if(!Dt){var zt=Object.isSealed;K(Object,"isSealed",function isSealed(e){if(!J.object(e)){return true}return zt(e)})}}if(Object.freeze){var Lt=!o(function(){Object.freeze("foo")});if(!Lt){var qt=Object.freeze;K(Object,"freeze",function freeze(e){if(!J.object(e)){return e}return qt(e)})}}if(Object.isFrozen){var Wt=!o(function(){Object.isFrozen("foo")});if(!Wt){var Gt=Object.isFrozen;K(Object,"isFrozen",function isFrozen(e){if(!J.object(e)){return true}return Gt(e)})}}if(Object.preventExtensions){var Bt=!o(function(){Object.preventExtensions("foo")});if(!Bt){var Ht=Object.preventExtensions;K(Object,"preventExtensions",function preventExtensions(e){if(!J.object(e)){return e}return Ht(e)})}}if(Object.isExtensible){var $t=!o(function(){Object.isExtensible("foo")});if(!$t){var Vt=Object.isExtensible;K(Object,"isExtensible",function isExtensible(e){if(!J.object(e)){return false}return Vt(e)})}}if(Object.getPrototypeOf){var Jt=!o(function(){Object.getPrototypeOf("foo")});if(!Jt){var Kt=Object.getPrototypeOf;K(Object,"getPrototypeOf",function getPrototypeOf(e){return Kt(Y.ToObject(e))})}}var Ut=s&&function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags");return e&&Y.IsCallable(e.get)}();if(s&&!Ut){var Xt=function flags(){if(!Y.TypeIsObject(this)){throw new TypeError("Method called on incompatible type: must be an object.")}var e="";if(this.global){e+="g"}if(this.ignoreCase){e+="i"}if(this.multiline){e+="m"}if(this.unicode){e+="u"}if(this.sticky){e+="y"}return e};d.getter(RegExp.prototype,"flags",Xt)}var Zt=s&&i(function(){return String(new RegExp(/a/g,"i"))==="/a/i"});var Qt=U&&s&&function(){var e=/./;e[q.match]=false;return RegExp(e)===e}();if(s&&(!Zt||Qt)){var Yt=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get;var er=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{};var tr=function(){return this.source};var rr=Y.IsCallable(er.get)?er.get:tr;var nr=RegExp;var or=function(){return function RegExp(e,t){var r=Y.IsRegExp(e);var n=this instanceof RegExp;if(!n&&r&&typeof t==="undefined"&&e.constructor===RegExp){return e}var o=e;var i=t;if(J.regex(e)){o=Y.Call(rr,e);i=typeof t==="undefined"?Y.Call(Yt,e):t;return new RegExp(o,i)}else if(r){o=e.source;i=typeof t==="undefined"?e.flags:t}return new nr(e,t)}}();he(nr,or,{$input:true});RegExp=or;d.redefine(j,"RegExp",or)}if(s){var ir={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};c(Object.keys(ir),function(e){if(e in RegExp&&!(ir[e]in RegExp)){d.getter(RegExp,ir[e],function get(){return RegExp[e]})}})}be(RegExp);var ar=1/Number.EPSILON;var ur=function roundTiesToEven(e){return e+ar-ar};var sr=Math.pow(2,-23);var fr=Math.pow(2,127)*(2-sr);var cr=Math.pow(2,-126);var lr=Number.prototype.clz;delete Number.prototype.clz;var pr={acosh:function acosh(e){var t=Number(e);if(Number.isNaN(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}return _(t/Math.E+F(t+1)*F(t-1)/Math.E)+1},asinh:function asinh(e){var t=Number(e);if(t===0||!S(t)){return t}return t<0?-Math.asinh(-t):_(t+F(t*t+1))},atanh:function atanh(e){var t=Number(e);if(Number.isNaN(t)||t<-1||t>1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*_((1+t)/(1-t))},cbrt:function cbrt(e){var t=Number(e);if(t===0){return t}var r=t<0,n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=Math.exp(_(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function clz32(e){var t=Number(e);var r=Y.ToUint32(t);if(r===0){return 32}return lr?Y.Call(lr,r):31-R(_(r+.5)*Math.LOG2E)},cosh:function cosh(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!S(t)){return Infinity}if(t<0){t=-t}if(t>21){return Math.exp(t)/2}return(Math.exp(t)+Math.exp(-t))/2},expm1:function expm1(e){var t=Number(e);if(t===-Infinity){return-1}if(!S(t)||t===0){return t}if(k(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function hypot(e,t){var r=0;var n=0;for(var o=0;o<arguments.length;++o){var i=k(Number(arguments[o]));if(n<i){r*=n/i*(n/i);r+=1;n=i}else{r+=i>0?i/n*(i/n):i}}return n===Infinity?Infinity:n*F(r)},log2:function log2(e){return _(e)*Math.LOG2E},log10:function log10(e){return _(e)*Math.LOG10E},log1p:function log1p(e){var t=Number(e);if(t<-1||Number.isNaN(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(_(1+t)/(1+t-1))},sign:function sign(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function sinh(e){var t=Number(e);if(!S(t)||t===0){return t}if(k(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function tanh(e){var t=Number(e);if(Number.isNaN(t)||t===0){return t}if(t===Infinity){return 1}if(t===-Infinity){return-1}var r=Math.expm1(t);var n=Math.expm1(-t);if(r===Infinity){return 1}if(n===Infinity){return-1}return(r-n)/(Math.exp(t)+Math.exp(-t))},trunc:function trunc(e){var t=Number(e);return t<0?-R(-t):R(t)},imul:function imul(e,t){var r=Y.ToUint32(e);var n=Y.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function fround(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||G(t)){return t}var r=Math.sign(t);var n=k(t);if(n<cr){return r*ur(n/cr/sr)*cr*sr}var o=(1+sr/Number.EPSILON)*n;var i=o-(o-n);if(i>fr||G(i)){return r*Infinity}return r*i}};h(Math,pr);y(Math,"log1p",pr.log1p,Math.log1p(-1e-17)!==-1e-17);y(Math,"asinh",pr.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));y(Math,"tanh",pr.tanh,Math.tanh(-2e-17)!==-2e-17);y(Math,"acosh",pr.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);y(Math,"cbrt",pr.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);y(Math,"sinh",pr.sinh,Math.sinh(-2e-17)!==-2e-17);var vr=Math.expm1(10);y(Math,"expm1",pr.expm1,vr>22025.465794806718||vr<22025.465794806718);var yr=Math.round;var hr=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var gr=ar+1;var br=2*ar-1;var dr=[gr,br].every(function(e){return Math.round(e)===e});y(Math,"round",function round(e){var t=R(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!hr||!dr);d.preserveToString(Math.round,yr);var mr=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=pr.imul;d.preserveToString(Math.imul,mr)}if(Math.imul.length!==2){K(Math,"imul",function imul(e,t){return Y.Call(mr,Math,arguments)})}var Or=function(){var e=j.setTimeout;if(typeof e!=="function"&&typeof e!=="object"){return}Y.IsPromise=function(e){if(!Y.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var r=function(e){if(!Y.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){
throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.promise=new e(r);if(!(Y.IsCallable(t.resolve)&&Y.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var n;if(typeof window!=="undefined"&&Y.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){P(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=x(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=j.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=Y.IsCallable(j.setImmediate)?j.setImmediate.bind(j):typeof process==="object"&&process.nextTick?process.nextTick:o()||(Y.IsCallable(n)?n():function(t){e(t,0)});var a=1;var u=2;var s=3;var f=4;var l=5;var p=function(e,t){var r=e.capabilities;var n=e.handler;var o,i=false,s;if(n===a){o=t}else if(n===u){o=t;i=true}else{try{o=n(t)}catch(f){o=f;i=true}}s=i?r.reject:r.resolve;s(o)};var v=function(e,t){c(e,function(e){i(function(){p(e,t)})})};var y=function(e,t){var r=e._promise;var n=r.fulfillReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=f;v(n,t)};var g=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=l;v(n,t)};var b=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return g(e,new TypeError("Self resolution"))}if(!Y.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return g(e,o)}if(!Y.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return g(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=b(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var m;var O=function(){var e=function Promise(t){if(!(this instanceof e)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!Y.IsCallable(t)){throw new TypeError("not a valid resolver")}var r=we(this,e,m,{_promise:{result:void 0,state:s,fulfillReactions:[],rejectReactions:[]}});var n=b(r);var o=n.reject;try{t(n.resolve,o)}catch(i){o(i)}return r};return e}();m=O.prototype;var w=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var S=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;var s=0;while(true){try{a=Y.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(f){e.done=true;throw f}o[s]=void 0;var c=t.resolve(u);var l=w(s,o,r,i);i.count+=1;c.then(l,r.reject);s+=1}if(--i.count===0){var p=r.resolve;p(o)}return r.promise};var T=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=Y.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);a.then(r.resolve,r.reject)}return r.promise};h(O,{all:function all(e){var t=this;if(!Y.TypeIsObject(t)){throw new TypeError("Promise is not object")}var n=new r(t);var o,i;try{o=Y.GetIterator(e);i={iterator:o,done:false};return S(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{Y.IteratorClose(o,true)}catch(s){u=s}}var f=n.reject;f(u);return n.promise}},race:function race(e){var t=this;if(!Y.TypeIsObject(t)){throw new TypeError("Promise is not object")}var n=new r(t);var o,i;try{o=Y.GetIterator(e);i={iterator:o,done:false};return T(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{Y.IteratorClose(o,true)}catch(s){u=s}}var f=n.reject;f(u);return n.promise}},reject:function reject(e){var t=this;if(!Y.TypeIsObject(t)){throw new TypeError("Bad promise constructor")}var n=new r(t);var o=n.reject;o(e);return n.promise},resolve:function resolve(e){var t=this;if(!Y.TypeIsObject(t)){throw new TypeError("Bad promise constructor")}if(Y.IsPromise(e)){var n=e.constructor;if(n===t){return e}}var o=new r(t);var i=o.resolve;i(e);return o.promise}});h(m,{"catch":function(e){return this.then(void 0,e)},then:function then(e,t){var n=this;if(!Y.IsPromise(n)){throw new TypeError("not a promise")}var o=Y.SpeciesConstructor(n,O);var c=new r(o);var v={capabilities:c,handler:Y.IsCallable(e)?e:a};var y={capabilities:c,handler:Y.IsCallable(t)?t:u};var h=n._promise;var g;if(h.state===s){P(h.fulfillReactions,v);P(h.rejectReactions,y)}else if(h.state===f){g=h.result;i(function(){p(v,g)})}else if(h.state===l){g=h.result;i(function(){p(y,g)})}else{throw new TypeError("unexpected Promise state")}return c.promise}});return O}();if(j.Promise){delete j.Promise.accept;delete j.Promise.defer;delete j.Promise.prototype.chain}if(typeof Or==="function"){h(j,{Promise:Or});var wr=O(j.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var jr=!o(function(){j.Promise.reject(42).then(null,5).then(null,L)});var Sr=o(function(){j.Promise.call(3,L)});var Tr=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(j.Promise);var Ir=s&&function(){var e=0;var t=Object.defineProperty({},"then",{get:function(){e+=1}});Promise.resolve(t);return e===1}();var Er=function BadResolverPromise(e){var t=new Promise(e);e(3,function(){});this.then=t.then;this.constructor=BadResolverPromise};Er.prototype=Promise.prototype;Er.all=Promise.all;var Mr=i(function(){return!!Er.all([1,2])});if(!wr||!jr||!Sr||Tr||!Ir||Mr){Promise=Or;K(j,"Promise",Or)}wt(Promise,"all");wt(Promise,"race");wt(Promise,"resolve");wt(Promise,"reject");be(Promise)}var Pr=function(e){var t=Object.keys(l(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var Cr=Pr(["z","a","bb"]);var xr=Pr(["z",1,"a","3",2]);if(s){var Nr=function fastkey(e){if(!Cr){return null}var t=typeof e;if(t==="undefined"||e===null){return"^"+Y.ToString(e)}else if(t==="string"){return"$"+e}else if(t==="number"){if(!xr){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var Ar=function emptyObject(){return Object.create?Object.create(null):{}};var Rr=function addIterableToMap(e,n,o){if(r(o)||J.string(o)){c(o,function(e){if(!Y.TypeIsObject(e)){throw new TypeError("Iterator value "+e+" is not an entry object")}n.set(e[0],e[1])})}else if(o instanceof e){t(e.prototype.forEach,o,function(e,t){n.set(t,e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.set;if(!Y.IsCallable(a)){throw new TypeError("bad map")}i=Y.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=Y.IteratorStep(i);if(u===false){break}var s=u.value;try{if(!Y.TypeIsObject(s)){throw new TypeError("Iterator value "+s+" is not an entry object")}t(a,n,s[0],s[1])}catch(f){Y.IteratorClose(i,true);throw f}}}}};var kr=function addIterableToSet(e,n,o){if(r(o)||J.string(o)){c(o,function(e){n.add(e)})}else if(o instanceof e){t(e.prototype.forEach,o,function(e){n.add(e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.add;if(!Y.IsCallable(a)){throw new TypeError("bad set")}i=Y.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=Y.IteratorStep(i);if(u===false){break}var s=u.value;try{t(a,n,s)}catch(f){Y.IteratorClose(i,true);throw f}}}}};var _r={Map:function(){var e={};var r=function MapEntry(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function isRemoved(){return this.key===e};var n=function isMap(e){return!!e._es6map};var o=function requireMapSlot(e,t){if(!Y.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+Y.ToString(e))}};var i=function MapIterator(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function next(){var e=this.i,t=this.kind,r=this.head,n;if(typeof this.i==="undefined"){return{value:void 0,done:true}}while(e.isRemoved()&&e!==r){e=e.prev}while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t==="key"){n=e.key}else if(t==="value"){n=e.value}else{n=[e.key,e.value]}this.i=e;return{value:n,done:false}}}this.i=void 0;return{value:void 0,done:true}}};de(i.prototype);var a;var u=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=we(this,Map,a,{_es6map:true,_head:null,_storage:Ar(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Rr(Map,e,arguments[0])}return e};a=u.prototype;d.getter(a,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});h(a,{get:function get(e){o(this,"get");var t=Nr(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(Y.SameValueZero(i.key,e)){return i.value}}},has:function has(e){o(this,"has");var t=Nr(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(Y.SameValueZero(n.key,e)){return true}}return false},set:function set(e,t){o(this,"set");var n=this._head,i=n,a;var u=Nr(e);if(u!==null){if(typeof this._storage[u]!=="undefined"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(Y.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(Y.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},"delete":function(t){o(this,"delete");var r=this._head,n=r;var i=Nr(t);if(i!==null){if(typeof this._storage[i]==="undefined"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(Y.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function clear(){o(this,"clear");this._size=0;this._storage=Ar();var t=this._head,r=t,n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function keys(){o(this,"keys");return new i(this,"key")},values:function values(){o(this,"values");return new i(this,"value")},entries:function entries(){o(this,"entries");return new i(this,"key+value")},forEach:function forEach(e){o(this,"forEach");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});de(a,a.entries);return u}(),Set:function(){var e=function isSet(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function requireSetSlot(t,r){if(!Y.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+Y.ToString(t))}};var n;var o=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=we(this,Set,n,{_es6set:true,"[[SetData]]":null,_storage:Ar()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){kr(Set,e,arguments[0])}return e};n=o.prototype;var i=function ensureMap(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new _r.Map;c(Object.keys(e._storage),function(e){var r=e;if(r==="^null"){r=null}else if(r==="^undefined"){r=void 0}else{var n=r.charAt(0);if(n==="$"){r=M(r,1)}else if(n==="n"){r=+M(r,1)}else if(n==="b"){r=r==="btrue"}else{r=+r}}t.set(r,r)});e._storage=null}};d.getter(o.prototype,"size",function(){r(this,"size");i(this);return this["[[SetData]]"].size});h(o.prototype,{has:function has(e){r(this,"has");var t;if(this._storage&&(t=Nr(e))!==null){return!!this._storage[t]}i(this);return this["[[SetData]]"].has(e)},add:function add(e){r(this,"add");var t;if(this._storage&&(t=Nr(e))!==null){this._storage[t]=true;return this}i(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){r(this,"delete");var t;if(this._storage&&(t=Nr(e))!==null){var n=D(this._storage,t);return delete this._storage[t]&&n}i(this);return this["[[SetData]]"]["delete"](e)},clear:function clear(){r(this,"clear");if(this._storage){this._storage=Ar()}else{this["[[SetData]]"].clear()}},values:function values(){r(this,"values");i(this);return this["[[SetData]]"].values()},entries:function entries(){r(this,"entries");i(this);return this["[[SetData]]"].entries()},forEach:function forEach(e){r(this,"forEach");var n=arguments.length>1?arguments[1]:null;var o=this;i(o);this["[[SetData]]"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});y(o.prototype,"keys",o.prototype.values,true);de(o.prototype,o.prototype.values);return o}()};if(j.Map||j.Set){var Fr=i(function(){return new Map([[1,2]]).get(1)===2});if(!Fr){var Dr=j.Map;j.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new Dr;if(arguments.length>0){Rr(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,j.Map.prototype);return e};j.Map.prototype=m(Dr.prototype);y(j.Map.prototype,"constructor",j.Map,true);d.preserveToString(j.Map,Dr)}var zr=new Map;var Lr=function(){var e=new Map([[1,0],[2,0],[3,0],[4,0]]);e.set(-0,e);return e.get(0)===e&&e.get(-0)===e&&e.has(0)&&e.has(-0)}();var qr=zr.set(1,2)===zr;if(!Lr||!qr){var Wr=Map.prototype.set;K(Map.prototype,"set",function set(e,r){t(Wr,this,e===0?0:e,r);return this})}if(!Lr){var Gr=Map.prototype.get;var Br=Map.prototype.has;h(Map.prototype,{get:function get(e){return t(Gr,this,e===0?0:e)},has:function has(e){return t(Br,this,e===0?0:e)}},true);d.preserveToString(Map.prototype.get,Gr);d.preserveToString(Map.prototype.has,Br)}var Hr=new Set;var $r=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(Hr);var Vr=Hr.add(1)===Hr;if(!$r||!Vr){var Jr=Set.prototype.add;Set.prototype.add=function add(e){t(Jr,this,e===0?0:e);return this};d.preserveToString(Set.prototype.add,Jr)}if(!$r){var Kr=Set.prototype.has;Set.prototype.has=function has(e){return t(Kr,this,e===0?0:e)};d.preserveToString(Set.prototype.has,Kr);var Ur=Set.prototype["delete"];Set.prototype["delete"]=function SetDelete(e){return t(Ur,this,e===0?0:e)};d.preserveToString(Set.prototype["delete"],Ur)}var Xr=O(j.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var Zr=Object.setPrototypeOf&&!Xr;var Qr=function(){try{return!(j.Map()instanceof j.Map)}catch(e){return e instanceof TypeError}}();if(j.Map.length!==0||Zr||!Qr){var Yr=j.Map;j.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new Yr;if(arguments.length>0){Rr(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Map.prototype);return e};j.Map.prototype=Yr.prototype;y(j.Map.prototype,"constructor",j.Map,true);d.preserveToString(j.Map,Yr)}var en=O(j.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var tn=Object.setPrototypeOf&&!en;var rn=function(){try{return!(j.Set()instanceof j.Set)}catch(e){return e instanceof TypeError}}();if(j.Set.length!==0||tn||!rn){var nn=j.Set;j.Set=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}var e=new nn;if(arguments.length>0){kr(Set,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Set.prototype);return e};j.Set.prototype=nn.prototype;y(j.Set.prototype,"constructor",j.Set,true);d.preserveToString(j.Set,nn)}var on=!i(function(){return(new Map).keys().next().done});if(typeof j.Map.prototype.clear!=="function"||(new j.Set).size!==0||(new j.Map).size!==0||typeof j.Map.prototype.keys!=="function"||typeof j.Set.prototype.keys!=="function"||typeof j.Map.prototype.forEach!=="function"||typeof j.Set.prototype.forEach!=="function"||a(j.Map)||a(j.Set)||typeof(new j.Map).keys().next!=="function"||on||!Xr){h(j,{Map:_r.Map,Set:_r.Set},true)}if(j.Set.prototype.keys!==j.Set.prototype.values){y(j.Set.prototype,"keys",j.Set.prototype.values,true)}de(Object.getPrototypeOf((new j.Map).keys()));de(Object.getPrototypeOf((new j.Set).keys()));if(f&&j.Set.prototype.has.name!=="has"){var an=j.Set.prototype.has;K(j.Set.prototype,"has",function has(e){return t(an,this,e)})}}h(j,_r);be(j.Map);be(j.Set)}var un=function throwUnlessTargetIsObject(e){if(!Y.TypeIsObject(e)){throw new TypeError("target must be an object")}};var sn={apply:function apply(){return Y.Call(Y.Call,null,arguments)},construct:function construct(e,t){if(!Y.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length<3?e:arguments[2];if(!Y.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return Y.Construct(e,t,r,"internal")},deleteProperty:function deleteProperty(e,t){un(e);if(s){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function enumerate(e){un(e);return new He(e,"key")},has:function has(e,t){un(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(sn,{ownKeys:function ownKeys(e){un(e);var t=Object.getOwnPropertyNames(e);if(Y.IsCallable(Object.getOwnPropertySymbols)){C(t,Object.getOwnPropertySymbols(e))}return t}})}var fn=function ConvertExceptionToBoolean(e){return!o(e)};if(Object.preventExtensions){Object.assign(sn,{isExtensible:function isExtensible(e){un(e);return Object.isExtensible(e)},preventExtensions:function preventExtensions(e){un(e);return fn(function(){Object.preventExtensions(e)})}})}if(s){var cn=function get(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n){var o=Object.getPrototypeOf(e);if(o===null){return undefined}return cn(o,t,r)}if("value"in n){return n.value}if(n.get){return Y.Call(n.get,r)}return undefined};var ln=function set(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return ln(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!Y.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return Z.defineProperty(o,r,{value:n})}else{return Z.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};Object.assign(sn,{defineProperty:function defineProperty(e,t,r){un(e);return fn(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){un(e);return Object.getOwnPropertyDescriptor(e,t)},get:function get(e,t){un(e);var r=arguments.length>2?arguments[2]:e;return cn(e,t,r)},set:function set(e,t,r){un(e);var n=arguments.length>3?arguments[3]:e;return ln(e,t,r,n)}})}if(Object.getPrototypeOf){var pn=Object.getPrototypeOf;sn.getPrototypeOf=function getPrototypeOf(e){un(e);return pn(e)}}if(Object.setPrototypeOf&&sn.getPrototypeOf){var vn=function(e,t){var r=t;while(r){if(e===r){return true}r=sn.getPrototypeOf(r)}return false};Object.assign(sn,{setPrototypeOf:function setPrototypeOf(e,t){un(e);if(t!==null&&!Y.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===Z.getPrototypeOf(e)){return true}if(Z.isExtensible&&!Z.isExtensible(e)){return false}if(vn(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var yn=function(e,t){if(!Y.IsCallable(j.Reflect[e])){y(j.Reflect,e,t)}else{var r=i(function(){j.Reflect[e](1);j.Reflect[e](NaN);j.Reflect[e](true);return true});if(r){K(j.Reflect,e,t)}}};Object.keys(sn).forEach(function(e){yn(e,sn[e])});if(f&&j.Reflect.getPrototypeOf.name!=="getPrototypeOf"){var hn=j.Reflect.getPrototypeOf;K(j.Reflect,"getPrototypeOf",function getPrototypeOf(e){return t(hn,j.Reflect,e)})}if(j.Reflect.setPrototypeOf){if(i(function(){j.Reflect.setPrototypeOf(1,{});return true})){K(j.Reflect,"setPrototypeOf",sn.setPrototypeOf)}}if(j.Reflect.defineProperty){if(!i(function(){var e=!j.Reflect.defineProperty(1,"test",{value:1});var t=typeof Object.preventExtensions!=="function"||!j.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t})){K(j.Reflect,"defineProperty",sn.defineProperty)}}if(j.Reflect.construct){if(!i(function(){var e=function F(){};return j.Reflect.construct(function(){},[],e)instanceof e})){K(j.Reflect,"construct",sn.construct)}}if(String(new Date(NaN))!=="Invalid Date"){var gn=Date.prototype.toString;var bn=function toString(){var e=+this;if(e!==e){return"Invalid Date"}return Y.Call(gn,this)};K(Date.prototype,"toString",bn)}var dn={anchor:function anchor(e){return Y.CreateHTML(this,"a","name",e)},big:function big(){return Y.CreateHTML(this,"big","","")},blink:function blink(){return Y.CreateHTML(this,"blink","","")},bold:function bold(){return Y.CreateHTML(this,"b","","")},fixed:function fixed(){return Y.CreateHTML(this,"tt","","")},fontcolor:function fontcolor(e){return Y.CreateHTML(this,"font","color",e)},fontsize:function fontsize(e){return Y.CreateHTML(this,"font","size",e)},italics:function italics(){return Y.CreateHTML(this,"i","","")},link:function link(e){return Y.CreateHTML(this,"a","href",e)},small:function small(){return Y.CreateHTML(this,"small","","")},strike:function strike(){return Y.CreateHTML(this,"strike","","")},sub:function sub(){return Y.CreateHTML(this,"sub","","")},sup:function sub(){return Y.CreateHTML(this,"sup","","")}};c(Object.keys(dn),function(e){var r=String.prototype[e];var n=false;if(Y.IsCallable(r)){var o=t(r,"",' " ');var i=I([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){K(String.prototype,e,dn[e])}});var mn=function(){if(!U){return false}var e=typeof JSON==="object"&&typeof JSON.stringify==="function"?JSON.stringify:null;if(!e){return false}if(typeof e(q())!=="undefined"){return true}if(e([q()])!=="[null]"){return true}var t={a:q()};t[q()]=true;if(e(t)!=="{}"){return true}return false}();var On=i(function(){if(!U){return true}return JSON.stringify(Object(q()))==="{}"&&JSON.stringify([Object(q())])==="[{}]"});if(mn||!On){var wn=JSON.stringify;K(JSON,"stringify",function stringify(e){if(typeof e==="symbol"){return}var n;if(arguments.length>1){n=arguments[1]}var o=[e];if(!r(n)){var i=Y.IsCallable(n)?n:null;var a=function(e,r){var o=n?t(n,this,e,r):r;if(typeof o!=="symbol"){if(J.symbol(o)){return St({})(o)}else{return o}}};o.push(a)}else{o.push(n)}if(arguments.length>2){o.push(arguments[2])}return wn.apply(this,o)})}return j});
(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=Function.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=Object.keys;var o=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var i=function(e){try{e();return false}catch(t){return true}};var a=function valueOrFalseIfThrows(e){try{return e()}catch(t){return false}};var u=o(i);var f=function(){return!i(function(){Object.defineProperty({},"x",{get:function(){}})})};var s=!!Object.defineProperty&&f();var c=function foo(){}.name==="foo";var l=Function.call.bind(Array.prototype.forEach);var p=Function.call.bind(Array.prototype.reduce);var v=Function.call.bind(Array.prototype.filter);var y=Function.call.bind(Array.prototype.some);var h=function(e,t,r,n){if(!n&&t in e){return}if(s){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var g=function(e,t,r){l(n(t),function(n){var o=t[n];h(e,n,o,!!r)})};var b=Function.call.bind(Object.prototype.toString);var d=typeof/abc/==="function"?function IsCallableSlow(e){return typeof e==="function"&&b(e)==="[object Function]"}:function IsCallableFast(e){return typeof e==="function"};var m={getter:function(e,t,r){if(!s){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!s){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function getKey(){return e[t]},set:function setKey(r){e[t]=r}})},redefine:function(e,t,r){if(s){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(s){Object.defineProperty(e,t,r)}else if("value"in r){e[t]=r.value}},preserveToString:function(e,t){if(t&&d(t.toString)){h(e,"toString",t.toString.bind(t),true)}}};var O=Object.create||function(e,t){var r=function Prototype(){};r.prototype=e;var o=new r;if(typeof t!=="undefined"){n(t).forEach(function(e){m.defineByDescriptor(o,e,t[e])})}return o};var w=function(e,t){if(!Object.setPrototypeOf){return false}return a(function(){var r=function Subclass(t){var r=new e(t);Object.setPrototypeOf(r,Subclass.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=O(e.prototype,{constructor:{value:r}});return t(r)})};var j=function(){if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}throw new Error("unable to locate global object")};var S=j();var T=S.isFinite;var I=Function.call.bind(String.prototype.indexOf);var E=Function.call.bind(Array.prototype.concat);var P=Function.call.bind(Array.prototype.sort);var C=Function.call.bind(String.prototype.slice);var M=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var N=Function.call.bind(Array.prototype.shift);var A=Math.max;var R=Math.min;var _=Math.floor;var k=Math.abs;var F=Math.log;var L=Math.sqrt;var D=Function.call.bind(Object.prototype.hasOwnProperty);var z;var q=function(){};var W=S.Symbol||{};var G=W.species||"@@species";var H=Number.isNaN||function isNaN(e){return e!==e};var B=Number.isFinite||function isFinite(e){return typeof e==="number"&&T(e)};var $=function isArguments(e){return b(e)==="[object Arguments]"};var V=function isArguments(e){return e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&b(e)!=="[object Array]"&&b(e.callee)==="[object Function]"};var J=$(arguments)?$:V;var K={primitive:function(e){return e===null||typeof e!=="function"&&typeof e!=="object"},object:function(e){return e!==null&&typeof e==="object"},string:function(e){return b(e)==="[object String]"},regex:function(e){return b(e)==="[object RegExp]"},symbol:function(e){return typeof S.Symbol==="function"&&typeof e==="symbol"}};var U=function overrideNative(e,t,r){var n=e[t];h(e,t,r,true);m.preserveToString(e[t],n)};var X=typeof W==="function"&&typeof W["for"]==="function"&&K.symbol(W());var Z=K.symbol(W.iterator)?W.iterator:"_es6-shim iterator_";if(S.Set&&typeof(new S.Set)["@@iterator"]==="function"){Z="@@iterator"}if(!S.Reflect){h(S,"Reflect",{})}var Q=S.Reflect;var Y=String;var ee={Call:function Call(t,r){var n=arguments.length>2?arguments[2]:[];if(!ee.IsCallable(t)){throw new TypeError(t+" is not a function")}return e(t,r,n)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}return e},TypeIsObject:function(e){if(e===void 0||e===null||e===true||e===false){return false}return typeof e==="function"||typeof e==="object"},ToObject:function(e,t){return Object(ee.RequireObjectCoercible(e,t))},IsCallable:d,IsConstructor:function(e){return ee.IsCallable(e)},ToInt32:function(e){return ee.ToNumber(e)>>0},ToUint32:function(e){return ee.ToNumber(e)>>>0},ToNumber:function(e){if(b(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=ee.ToNumber(e);if(H(t)){return 0}if(t===0||!B(t)){return t}return(t>0?1:-1)*_(k(t))},ToLength:function(e){var t=ee.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return H(e)&&H(t)},SameValueZero:function(e,t){return e===t||H(e)&&H(t)},IsIterable:function(e){return ee.TypeIsObject(e)&&(typeof e[Z]!=="undefined"||J(e))},GetIterator:function(e){if(J(e)){return new z(e,"value")}var t=ee.GetMethod(e,Z);if(!ee.IsCallable(t)){throw new TypeError("value is not an iterable")}var r=ee.Call(t,e);if(!ee.TypeIsObject(r)){throw new TypeError("bad iterator")}return r},GetMethod:function(e,t){var r=ee.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!ee.IsCallable(r)){throw new TypeError("Method not callable: "+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var r=ee.GetMethod(e,"return");if(r===void 0){return}var n,o;try{n=ee.Call(r,e)}catch(i){o=i}if(t){return}if(o){throw o}if(!ee.TypeIsObject(n)){throw new TypeError("Iterator's return method returned a non-object.")}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!ee.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorStep:function(e){var t=ee.IteratorNext(e);var r=ee.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){var o=typeof r==="undefined"?e:r;if(!n&&Q.construct){return Q.construct(e,t,o)}var i=o.prototype;if(!ee.TypeIsObject(i)){i=Object.prototype}var a=O(i);var u=ee.Call(e,a,t);return ee.TypeIsObject(u)?u:a},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!ee.TypeIsObject(r)){throw new TypeError("Bad constructor")}var n=r[G];if(n===void 0||n===null){return t}if(!ee.IsConstructor(n)){throw new TypeError("Bad @@species")}return n},CreateHTML:function(e,t,r,n){var o=ee.ToString(e);var i="<"+t;if(r!==""){var a=ee.ToString(n);var u=a.replace(/"/g,"&quot;");i+=" "+r+'="'+u+'"'}var f=i+">";var s=f+o;return s+"</"+t+">"},IsRegExp:function IsRegExp(e){if(!ee.TypeIsObject(e)){return false}var t=e[W.match];if(typeof t!=="undefined"){return!!t}return K.regex(e)},ToString:function ToString(e){return Y(e)}};if(s&&X){var te=function defineWellKnownSymbol(e){if(K.symbol(W[e])){return W[e]}var t=W["for"]("Symbol."+e);Object.defineProperty(W,e,{configurable:false,enumerable:false,writable:false,value:t});return t};if(!K.symbol(W.search)){var re=te("search");var ne=String.prototype.search;h(RegExp.prototype,re,function search(e){return ee.Call(ne,e,[this])});var oe=function search(e){var t=ee.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var r=ee.GetMethod(e,re);if(typeof r!=="undefined"){return ee.Call(r,e,[t])}}return ee.Call(ne,t,[ee.ToString(e)])};U(String.prototype,"search",oe)}if(!K.symbol(W.replace)){var ie=te("replace");var ae=String.prototype.replace;h(RegExp.prototype,ie,function replace(e,t){return ee.Call(ae,e,[this,t])});var ue=function replace(e,t){var r=ee.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var n=ee.GetMethod(e,ie);if(typeof n!=="undefined"){return ee.Call(n,e,[r,t])}}return ee.Call(ae,r,[ee.ToString(e),t])};U(String.prototype,"replace",ue)}if(!K.symbol(W.split)){var fe=te("split");var se=String.prototype.split;h(RegExp.prototype,fe,function split(e,t){return ee.Call(se,e,[this,t])});var ce=function split(e,t){var r=ee.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var n=ee.GetMethod(e,fe);if(typeof n!=="undefined"){return ee.Call(n,e,[r,t])}}return ee.Call(se,r,[ee.ToString(e),t])};U(String.prototype,"split",ce)}var le=K.symbol(W.match);var pe=le&&function(){var e={};e[W.match]=function(){return 42};return"a".match(e)!==42}();if(!le||pe){var ve=te("match");var ye=String.prototype.match;h(RegExp.prototype,ve,function match(e){return ee.Call(ye,e,[this])});var he=function match(e){var t=ee.RequireObjectCoercible(this);if(e!==null&&typeof e!=="undefined"){var r=ee.GetMethod(e,ve);if(typeof r!=="undefined"){return ee.Call(r,e,[t])}}return ee.Call(ye,t,[ee.ToString(e)])};U(String.prototype,"match",he)}}var ge=function wrapConstructor(e,t,r){m.preserveToString(t,e);if(Object.setPrototypeOf){Object.setPrototypeOf(e,t)}if(s){l(Object.getOwnPropertyNames(e),function(n){if(n in q||r[n]){return}m.proxy(e,n,t)})}else{l(Object.keys(e),function(n){if(n in q||r[n]){return}t[n]=e[n]})}t.prototype=e.prototype;m.redefine(e.prototype,"constructor",t)};var be=function(){return this};var de=function(e){if(s&&!D(e,G)){m.getter(e,G,be)}};var me=function(e,t){var r=t||function iterator(){return this};h(e,Z,r);if(!e[Z]&&K.symbol(Z)){e[Z]=r}};var Oe=function createDataProperty(e,t,r){if(s){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var we=function createDataPropertyOrThrow(e,t,r){Oe(e,t,r);if(!ee.SameValue(e[t],r)){throw new TypeError("property is nonconfigurable")}};var je=function(e,t,r,n){if(!ee.TypeIsObject(e)){throw new TypeError("Constructor requires `new`: "+t.name)}var o=t.prototype;if(!ee.TypeIsObject(o)){o=r}var i=O(o);for(var a in n){if(D(n,a)){var u=n[a];h(i,a,u,true)}}return i};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var Se=String.fromCodePoint;U(String,"fromCodePoint",function fromCodePoint(e){return ee.Call(Se,this,arguments)})}var Te={fromCodePoint:function fromCodePoint(e){var t=[];var r;for(var n=0,o=arguments.length;n<o;n++){r=Number(arguments[n]);if(!ee.SameValue(r,ee.ToInteger(r))||r<0||r>1114111){throw new RangeError("Invalid code point "+r)}if(r<65536){M(t,String.fromCharCode(r))}else{r-=65536;M(t,String.fromCharCode((r>>10)+55296));M(t,String.fromCharCode(r%1024+56320))}}return t.join("")},raw:function raw(e){var t=ee.ToObject(e,"bad callSite");var r=ee.ToObject(t.raw,"bad raw value");var n=r.length;var o=ee.ToLength(n);if(o<=0){return""}var i=[];var a=0;var u,f,s,c;while(a<o){u=ee.ToString(a);s=ee.ToString(r[u]);M(i,s);if(a+1>=o){break}f=a+1<arguments.length?arguments[a+1]:"";c=ee.ToString(f);M(i,c);a+=1}return i.join("")}};if(String.raw&&String.raw({raw:{0:"x",1:"y",length:2}})!=="xy"){U(String,"raw",Te.raw)}g(String,Te);var Ie=function repeat(e,t){if(t<1){return""}if(t%2){return repeat(e,t-1)+e}var r=repeat(e,t/2);return r+r};var Ee=Infinity;var Pe={repeat:function repeat(e){var t=ee.ToString(ee.RequireObjectCoercible(this));var r=ee.ToInteger(e);if(r<0||r>=Ee){throw new RangeError("repeat count must be less than infinity and not overflow maximum string size")}return Ie(t,r)},startsWith:function startsWith(e){var t=ee.ToString(ee.RequireObjectCoercible(this));if(ee.IsRegExp(e)){throw new TypeError('Cannot call method "startsWith" with a regex')}var r=ee.ToString(e);var n;if(arguments.length>1){n=arguments[1]}var o=A(ee.ToInteger(n),0);return C(t,o,o+r.length)===r},endsWith:function endsWith(e){var t=ee.ToString(ee.RequireObjectCoercible(this));if(ee.IsRegExp(e)){throw new TypeError('Cannot call method "endsWith" with a regex')}var r=ee.ToString(e);var n=t.length;var o;if(arguments.length>1){o=arguments[1]}var i=typeof o==="undefined"?n:ee.ToInteger(o);var a=R(A(i,0),n);return C(t,a-r.length,a)===r},includes:function includes(e){if(ee.IsRegExp(e)){throw new TypeError('"includes" does not accept a RegExp')}var t=ee.ToString(e);var r;if(arguments.length>1){r=arguments[1]}return I(this,t,r)!==-1},codePointAt:function codePointAt(e){var t=ee.ToString(ee.RequireObjectCoercible(this));var r=ee.ToInteger(e);var n=t.length;if(r>=0&&r<n){var o=t.charCodeAt(r);var i=r+1===n;if(o<55296||o>56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",Infinity)!==false){U(String.prototype,"includes",Pe.includes)}if(String.prototype.startsWith&&String.prototype.endsWith){var Ce=i(function(){"/a/".startsWith(/a/)});var Me="abc".startsWith("a",Infinity)===false;if(!Ce||!Me){U(String.prototype,"startsWith",Pe.startsWith);U(String.prototype,"endsWith",Pe.endsWith)}}if(X){var xe=a(function(){var e=/a/;e[W.match]=false;return"/a/".startsWith(e)});if(!xe){U(String.prototype,"startsWith",Pe.startsWith)}var Ne=a(function(){var e=/a/;e[W.match]=false;return"/a/".endsWith(e)});if(!Ne){U(String.prototype,"endsWith",Pe.endsWith)}var Ae=a(function(){var e=/a/;e[W.match]=false;return"/a/".includes(e)});if(!Ae){U(String.prototype,"includes",Pe.includes)}}g(String.prototype,Pe);var Re=[" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join("");var _e=new RegExp("(^["+Re+"]+)|(["+Re+"]+$)","g");var ke=function trim(){return ee.ToString(ee.RequireObjectCoercible(this)).replace(_e,"")};var Fe=["\x85","\u200b","\ufffe"].join("");var Le=new RegExp("["+Fe+"]","g");var De=/^[\-+]0x[0-9a-f]+$/i;var ze=Fe.trim().length!==Fe.length;h(String.prototype,"trim",ke,ze);var qe=function(e){ee.RequireObjectCoercible(e);this._s=ee.ToString(e);this._i=0};qe.prototype.next=function(){var e=this._s,t=this._i;if(typeof e==="undefined"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,o;if(r<55296||r>56319||t+1===e.length){o=1}else{n=e.charCodeAt(t+1);o=n<56320||n>57343?1:2}this._i=t+o;return{value:e.substr(t,o),done:false}};me(qe.prototype);me(String.prototype,function(){return new qe(this)});var We={from:function from(e){var r=this;var n;if(arguments.length>1){n=arguments[1]}var o,i;if(typeof n==="undefined"){o=false}else{if(!ee.IsCallable(n)){throw new TypeError("Array.from: when provided, the second argument must be a function")}if(arguments.length>2){i=arguments[2]}o=true}var a=typeof(J(e)||ee.GetMethod(e,Z))!=="undefined";var u,f,s;if(a){f=ee.IsConstructor(r)?Object(new r):[];var c=ee.GetIterator(e);var l,p;s=0;while(true){l=ee.IteratorStep(c);if(l===false){break}p=l.value;try{if(o){p=typeof i==="undefined"?n(p,s):t(n,i,p,s)}f[s]=p}catch(v){ee.IteratorClose(c,true);throw v}s+=1}u=s}else{var y=ee.ToObject(e);u=ee.ToLength(y.length);f=ee.IsConstructor(r)?Object(new r(u)):new Array(u);var h;for(s=0;s<u;++s){h=y[s];if(o){h=typeof i==="undefined"?n(h,s):t(n,i,h,s)}f[s]=h}}f.length=u;return f},of:function of(){var e=arguments.length;var t=this;var n=r(t)||!ee.IsCallable(t)?new Array(e):ee.Construct(t,[e]);for(var o=0;o<e;++o){we(n,o,arguments[o])}n.length=e;return n}};g(Array,We);de(Array);var Ge=function(e){return{value:e,done:arguments.length===0}};z=function(e,t){this.i=0;this.array=e;this.kind=t};g(z.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof z)){throw new TypeError("Not an ArrayIterator")}if(typeof t!=="undefined"){var r=ee.ToLength(t.length);for(;e<r;e++){var n=this.kind;var o;if(n==="key"){o=e}else if(n==="value"){o=t[e]}else if(n==="entry"){o=[e,t[e]]}this.i=e+1;return{value:o,done:false}}}this.array=void 0;return{value:void 0,done:true}}});me(z.prototype);var He=function orderKeys(e,t){var r=String(ee.ToInteger(e))===e;var n=String(ee.ToInteger(t))===t;if(r&&n){return t-e}else if(r&&!n){return-1}else if(!r&&n){return 1}else{return e.localeCompare(t)}};var Be=function getAllKeys(e){var t=[];var r=[];for(var n in e){M(D(e,n)?t:r,n)}P(t,He);P(r,He);return E(t,r)};var $e=function(e,t){g(this,{object:e,array:Be(e),kind:t})};g($e.prototype,{next:function next(){var e;var t=this.array;if(!(this instanceof $e)){throw new TypeError("Not an ObjectIterator")}while(t.length>0){e=N(t);if(!(e in this.object)){continue}if(this.kind==="key"){return Ge(e)}else if(this.kind==="value"){return Ge(this.object[e])}else{return Ge([e,this.object[e]])}}return Ge()}});me($e.prototype);var Ve=Array.of===We.of||function(){var e=function Foo(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!Ve){U(Array,"of",We.of)}var Je={copyWithin:function copyWithin(e,t){var r=ee.ToObject(this);var n=ee.ToLength(r.length);var o=ee.ToInteger(e);var i=ee.ToInteger(t);var a=o<0?A(n+o,0):R(o,n);var u=i<0?A(n+i,0):R(i,n);var f;if(arguments.length>2){f=arguments[2]}var s=typeof f==="undefined"?n:ee.ToInteger(f);var c=s<0?A(n+s,0):R(s,n);var l=R(c-u,n-a);var p=1;if(u<a&&a<u+l){p=-1;u+=l-1;a+=l-1}while(l>0){if(D(r,u)){r[a]=r[u]}else{delete r[u]}u+=p;a+=p;l-=1}return r},fill:function fill(e){var t;if(arguments.length>1){t=arguments[1]}var r;if(arguments.length>2){r=arguments[2]}var n=ee.ToObject(this);var o=ee.ToLength(n.length);t=ee.ToInteger(typeof t==="undefined"?0:t);r=ee.ToInteger(typeof r==="undefined"?o:r);var i=t<0?A(o+t,0):R(t,o);var a=r<0?o+r:r;for(var u=i;u<o&&u<a;++u){n[u]=e}return n},find:function find(e){var r=ee.ToObject(this);var n=ee.ToLength(r.length);if(!ee.IsCallable(e)){throw new TypeError("Array#find: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0,a;i<n;i++){a=r[i];if(o){if(t(e,o,a,i,r)){return a}}else if(e(a,i,r)){return a}}},findIndex:function findIndex(e){var r=ee.ToObject(this);var n=ee.ToLength(r.length);if(!ee.IsCallable(e)){throw new TypeError("Array#findIndex: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0;i<n;i++){if(o){if(t(e,o,r[i],i,r)){return i}}else if(e(r[i],i,r)){return i}}return-1},keys:function keys(){return new z(this,"key")},values:function values(){return new z(this,"value")},entries:function entries(){return new z(this,"entry")}};if(Array.prototype.keys&&!ee.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!ee.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[Z]){g(Array.prototype,{values:Array.prototype[Z]});if(K.symbol(W.unscopables)){Array.prototype[W.unscopables].values=true}}if(c&&Array.prototype.values&&Array.prototype.values.name!=="values"){var Ke=Array.prototype.values;U(Array.prototype,"values",function values(){return ee.Call(Ke,this,arguments)});h(Array.prototype,Z,Array.prototype.values,true)}g(Array.prototype,Je);me(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){me(Object.getPrototypeOf([].values()))}var Ue=function(){return a(function(){return Array.from({length:-1}).length===0})}();var Xe=function(){var e=Array.from([0].entries());return e.length===1&&r(e[0])&&e[0][0]===0&&e[0][1]===0}();if(!Ue||!Xe){U(Array,"from",We.from)}var Ze=function(){return a(function(){return Array.from([0],void 0)})}();if(!Ze){var Qe=Array.from;U(Array,"from",function from(e){if(arguments.length>1&&typeof arguments[1]!=="undefined"){return ee.Call(Qe,this,arguments)}else{return t(Qe,this,e)}})}var Ye=-(Math.pow(2,32)-1);var et=function(e,r){var n={length:Ye};n[r?(n.length>>>0)-1:0]=true;return a(function(){t(e,n,function(){throw new RangeError("should not reach here")},[]);return true})};if(!et(Array.prototype.forEach)){var tt=Array.prototype.forEach;U(Array.prototype,"forEach",function forEach(e){return ee.Call(tt,this.length>=0?this:[],arguments)},true)}if(!et(Array.prototype.map)){var rt=Array.prototype.map;U(Array.prototype,"map",function map(e){return ee.Call(rt,this.length>=0?this:[],arguments)},true)}if(!et(Array.prototype.filter)){var nt=Array.prototype.filter;U(Array.prototype,"filter",function filter(e){return ee.Call(nt,this.length>=0?this:[],arguments)},true)}if(!et(Array.prototype.some)){var ot=Array.prototype.some;U(Array.prototype,"some",function some(e){return ee.Call(ot,this.length>=0?this:[],arguments)},true)}if(!et(Array.prototype.every)){var it=Array.prototype.every;U(Array.prototype,"every",function every(e){return ee.Call(it,this.length>=0?this:[],arguments)},true)}if(!et(Array.prototype.reduce)){var at=Array.prototype.reduce;U(Array.prototype,"reduce",function reduce(e){return ee.Call(at,this.length>=0?this:[],arguments)},true)}if(!et(Array.prototype.reduceRight,true)){var ut=Array.prototype.reduceRight;U(Array.prototype,"reduceRight",function reduceRight(e){return ee.Call(ut,this.length>=0?this:[],arguments)},true)}var ft=Number("0o10")!==8;var st=Number("0b10")!==2;var ct=y(Fe,function(e){return Number(e+0+e)===0});if(ft||st||ct){var lt=Number;var pt=/^0b[01]+$/i;var vt=/^0o[0-7]+$/i;var yt=pt.test.bind(pt);var ht=vt.test.bind(vt);var gt=function(e){var t;if(typeof e.valueOf==="function"){t=e.valueOf();if(K.primitive(t)){return t}}if(typeof e.toString==="function"){t=e.toString();if(K.primitive(t)){return t}}throw new TypeError("No default value")};var bt=Le.test.bind(Le);var dt=De.test.bind(De);var mt=function(){var e=function Number(t){var r;if(arguments.length>0){r=K.primitive(t)?t:gt(t,"number")}else{r=0}if(typeof r==="string"){r=ee.Call(ke,r);if(yt(r)){r=parseInt(C(r,2),2)}else if(ht(r)){r=parseInt(C(r,2),8)}else if(bt(r)||dt(r)){r=NaN}}var n=this;var o=a(function(){lt.prototype.valueOf.call(n);return true});if(n instanceof e&&!o){return new lt(r)}return lt(r)};return e}();ge(lt,mt,{});Number=mt;m.redefine(S,"Number",mt)}var Ot=Math.pow(2,53)-1;g(Number,{MAX_SAFE_INTEGER:Ot,MIN_SAFE_INTEGER:-Ot,EPSILON:2.220446049250313e-16,parseInt:S.parseInt,parseFloat:S.parseFloat,isFinite:B,isInteger:function isInteger(e){return B(e)&&ee.ToInteger(e)===e},isSafeInteger:function isSafeInteger(e){return Number.isInteger(e)&&k(e)<=Number.MAX_SAFE_INTEGER},isNaN:H});h(Number,"parseInt",S.parseInt,Number.parseInt!==S.parseInt);if(![,1].find(function(e,t){return t===0})){U(Array.prototype,"find",Je.find)}if([,1].findIndex(function(e,t){return t===0})!==0){U(Array.prototype,"findIndex",Je.findIndex)}var wt=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var jt=function ensureEnumerable(e,t){if(s&&wt(e,t)){Object.defineProperty(e,t,{enumerable:false})}};var St=function sliceArgs(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o<t;++o){n[o-e]=arguments[o]}return n};var Tt=function assignTo(e){return function assignToSource(t,r){t[r]=e[r];return t}};var It=function(e,t){var r=n(Object(t));var o;if(ee.IsCallable(Object.getOwnPropertySymbols)){o=v(Object.getOwnPropertySymbols(Object(t)),wt(t))}return p(E(r,o||[]),Tt(t),e)};var Et={assign:function(e,t){var r=ee.ToObject(e,"Cannot convert undefined or null to object");return p(ee.Call(St,1,arguments),It,r)},is:function is(e,t){return ee.SameValue(e,t)}};var Pt=Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return e[1]==="y"}}();if(Pt){U(Object,"assign",Et.assign)}g(Object,Et);if(s){var Ct={setPrototypeOf:function(e,r){var n;var o=function(e,t){if(!ee.TypeIsObject(e)){throw new TypeError("cannot set prototype on a non-object")}if(!(t===null||ee.TypeIsObject(t))){throw new TypeError("can only set prototype to an object or null"+t)}};var i=function(e,r){o(e,r);t(n,e,r);return e};try{n=e.getOwnPropertyDescriptor(e.prototype,r).set;t(n,{},null)}catch(a){if(e.prototype!=={}[r]){return}n=function(e){this[r]=e};i.polyfill=i(i({},null),e.prototype)instanceof e}return i}(Object,"__proto__")};g(Object,Ct)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var e=Object.create(null);var t=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=t(r);return n===e?null:n};Object.setPrototypeOf=function(t,n){var o=n===null?e:n;return r(t,o)};Object.setPrototypeOf.polyfill=false})()}var Mt=!i(function(){Object.keys("foo")});if(!Mt){var xt=Object.keys;U(Object,"keys",function keys(e){return xt(ee.ToObject(e))});n=Object.keys}if(Object.getOwnPropertyNames){var Nt=!i(function(){Object.getOwnPropertyNames("foo")});if(!Nt){var At=typeof window==="object"?Object.getOwnPropertyNames(window):[];var Rt=Object.getOwnPropertyNames;U(Object,"getOwnPropertyNames",function getOwnPropertyNames(e){var t=ee.ToObject(e);if(b(t)==="[object Window]"){try{return Rt(t)}catch(r){return E([],At)}}return Rt(t)})}}if(Object.getOwnPropertyDescriptor){var _t=!i(function(){Object.getOwnPropertyDescriptor("foo","bar")});if(!_t){var kt=Object.getOwnPropertyDescriptor;U(Object,"getOwnPropertyDescriptor",function getOwnPropertyDescriptor(e,t){return kt(ee.ToObject(e),t)})}}if(Object.seal){var Ft=!i(function(){Object.seal("foo")});if(!Ft){var Lt=Object.seal;U(Object,"seal",function seal(e){if(!K.object(e)){return e}return Lt(e)})}}if(Object.isSealed){var Dt=!i(function(){Object.isSealed("foo")});if(!Dt){var zt=Object.isSealed;U(Object,"isSealed",function isSealed(e){if(!K.object(e)){return true}return zt(e)})}}if(Object.freeze){var qt=!i(function(){Object.freeze("foo")});if(!qt){var Wt=Object.freeze;U(Object,"freeze",function freeze(e){if(!K.object(e)){return e}return Wt(e)})}}if(Object.isFrozen){var Gt=!i(function(){Object.isFrozen("foo")});if(!Gt){var Ht=Object.isFrozen;U(Object,"isFrozen",function isFrozen(e){if(!K.object(e)){return true}return Ht(e)})}}if(Object.preventExtensions){var Bt=!i(function(){Object.preventExtensions("foo")});if(!Bt){var $t=Object.preventExtensions;U(Object,"preventExtensions",function preventExtensions(e){if(!K.object(e)){return e}return $t(e)})}}if(Object.isExtensible){var Vt=!i(function(){Object.isExtensible("foo")});if(!Vt){var Jt=Object.isExtensible;U(Object,"isExtensible",function isExtensible(e){if(!K.object(e)){return false}return Jt(e)})}}if(Object.getPrototypeOf){var Kt=!i(function(){Object.getPrototypeOf("foo")});if(!Kt){var Ut=Object.getPrototypeOf;U(Object,"getPrototypeOf",function getPrototypeOf(e){return Ut(ee.ToObject(e))})}}var Xt=s&&function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags");return e&&ee.IsCallable(e.get)}();if(s&&!Xt){var Zt=function flags(){if(!ee.TypeIsObject(this)){throw new TypeError("Method called on incompatible type: must be an object.")}var e="";if(this.global){e+="g"}if(this.ignoreCase){e+="i"}if(this.multiline){e+="m"}if(this.unicode){e+="u"}if(this.sticky){e+="y"}return e};m.getter(RegExp.prototype,"flags",Zt)}var Qt=s&&a(function(){return String(new RegExp(/a/g,"i"))==="/a/i"});var Yt=X&&s&&function(){var e=/./;e[W.match]=false;return RegExp(e)===e}();if(s&&(!Qt||Yt)){var er=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get;var tr=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{};var rr=function(){return this.source};var nr=ee.IsCallable(tr.get)?tr.get:rr;var or=RegExp;var ir=function(){return function RegExp(e,t){var r=ee.IsRegExp(e);var n=this instanceof RegExp;if(!n&&r&&typeof t==="undefined"&&e.constructor===RegExp){return e}var o=e;var i=t;if(K.regex(e)){o=ee.Call(nr,e);i=typeof t==="undefined"?ee.Call(er,e):t;return new RegExp(o,i)}else if(r){o=e.source;i=typeof t==="undefined"?e.flags:t}return new or(e,t)}}();ge(or,ir,{$input:true});RegExp=ir;m.redefine(S,"RegExp",ir)}if(s){var ar={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};l(n(ar),function(e){if(e in RegExp&&!(ar[e]in RegExp)){m.getter(RegExp,ar[e],function get(){return RegExp[e]})}})}de(RegExp);var ur=1/Number.EPSILON;var fr=function roundTiesToEven(e){return e+ur-ur};var sr=Math.pow(2,-23);var cr=Math.pow(2,127)*(2-sr);var lr=Math.pow(2,-126);var pr=Number.prototype.clz;delete Number.prototype.clz;var vr={acosh:function acosh(e){var t=Number(e);if(Number.isNaN(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}return F(t/Math.E+L(t+1)*L(t-1)/Math.E)+1},asinh:function asinh(e){var t=Number(e);if(t===0||!T(t)){return t}return t<0?-Math.asinh(-t):F(t+L(t*t+1))},atanh:function atanh(e){var t=Number(e);if(Number.isNaN(t)||t<-1||t>1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*F((1+t)/(1-t))},cbrt:function cbrt(e){var t=Number(e);if(t===0){return t}var r=t<0,n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=Math.exp(F(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function clz32(e){var t=Number(e);var r=ee.ToUint32(t);if(r===0){return 32}return pr?ee.Call(pr,r):31-_(F(r+.5)*Math.LOG2E)},cosh:function cosh(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!T(t)){return Infinity}if(t<0){t=-t}if(t>21){return Math.exp(t)/2}return(Math.exp(t)+Math.exp(-t))/2},expm1:function expm1(e){var t=Number(e);if(t===-Infinity){return-1}if(!T(t)||t===0){return t}if(k(t)>.5){return Math.exp(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function hypot(e,t){var r=0;var n=0;for(var o=0;o<arguments.length;++o){var i=k(Number(arguments[o]));if(n<i){r*=n/i*(n/i);r+=1;n=i}else{r+=i>0?i/n*(i/n):i}}return n===Infinity?Infinity:n*L(r)},log2:function log2(e){return F(e)*Math.LOG2E},log10:function log10(e){return F(e)*Math.LOG10E},log1p:function log1p(e){var t=Number(e);if(t<-1||Number.isNaN(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(F(1+t)/(1+t-1))},sign:function sign(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function sinh(e){var t=Number(e);if(!T(t)||t===0){return t}if(k(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function tanh(e){var t=Number(e);if(Number.isNaN(t)||t===0){return t}if(t===Infinity){return 1}if(t===-Infinity){return-1}var r=Math.expm1(t);var n=Math.expm1(-t);if(r===Infinity){return 1}if(n===Infinity){return-1}return(r-n)/(Math.exp(t)+Math.exp(-t))},trunc:function trunc(e){var t=Number(e);return t<0?-_(-t):_(t)},imul:function imul(e,t){var r=ee.ToUint32(e);var n=ee.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function fround(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||H(t)){return t}var r=Math.sign(t);var n=k(t);if(n<lr){return r*fr(n/lr/sr)*lr*sr}var o=(1+sr/Number.EPSILON)*n;var i=o-(o-n);if(i>cr||H(i)){return r*Infinity}return r*i}};g(Math,vr);h(Math,"log1p",vr.log1p,Math.log1p(-1e-17)!==-1e-17);h(Math,"asinh",vr.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));h(Math,"tanh",vr.tanh,Math.tanh(-2e-17)!==-2e-17);h(Math,"acosh",vr.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);h(Math,"cbrt",vr.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);h(Math,"sinh",vr.sinh,Math.sinh(-2e-17)!==-2e-17);var yr=Math.expm1(10);h(Math,"expm1",vr.expm1,yr>22025.465794806718||yr<22025.465794806718);var hr=Math.round;var gr=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var br=ur+1;var dr=2*ur-1;var mr=[br,dr].every(function(e){return Math.round(e)===e});h(Math,"round",function round(e){var t=_(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!gr||!mr);m.preserveToString(Math.round,hr);var Or=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=vr.imul;m.preserveToString(Math.imul,Or)}if(Math.imul.length!==2){U(Math,"imul",function imul(e,t){return ee.Call(Or,Math,arguments)})}var wr=function(){var e=S.setTimeout;
if(typeof e!=="function"&&typeof e!=="object"){return}ee.IsPromise=function(e){if(!ee.TypeIsObject(e)){return false}if(typeof e._promise==="undefined"){return false}return true};var r=function(e){if(!ee.IsConstructor(e)){throw new TypeError("Bad promise constructor")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){throw new TypeError("Bad Promise implementation!")}t.resolve=e;t.reject=r};t.resolve=void 0;t.reject=void 0;t.promise=new e(r);if(!(ee.IsCallable(t.resolve)&&ee.IsCallable(t.reject))){throw new TypeError("Bad promise constructor")}};var n;if(typeof window!=="undefined"&&ee.IsCallable(window.postMessage)){n=function(){var e=[];var t="zero-timeout-message";var r=function(r){M(e,r);window.postMessage(t,"*")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=N(e);n()}};window.addEventListener("message",n,true);return r}}var o=function(){var e=S.Promise;var t=e&&e.resolve&&e.resolve();return t&&function(e){return t.then(e)}};var i=ee.IsCallable(S.setImmediate)?S.setImmediate:typeof process==="object"&&process.nextTick?process.nextTick:o()||(ee.IsCallable(n)?n():function(t){e(t,0)});var a=function(e){return e};var u=function(e){throw e};var f=0;var s=1;var c=2;var l=0;var p=1;var v=2;var y={};var h=function(e,t,r){i(function(){b(e,t,r)})};var b=function(e,t,r){var n,o;if(t===y){return e(r)}try{n=e(r);o=t.resolve}catch(i){n=i;o=t.reject}o(n)};var d=function(e,t){var r=e._promise;var n=r.reactionLength;if(n>0){h(r.fulfillReactionHandler0,r.reactionCapability0,t);r.fulfillReactionHandler0=void 0;r.rejectReactions0=void 0;r.reactionCapability0=void 0;if(n>1){for(var o=1,i=0;o<n;o++,i+=3){h(r[i+l],r[i+v],t);e[i+l]=void 0;e[i+p]=void 0;e[i+v]=void 0}}}r.result=t;r.state=s;r.reactionLength=0};var m=function(e,t){var r=e._promise;var n=r.reactionLength;if(n>0){h(r.rejectReactionHandler0,r.reactionCapability0,t);r.fulfillReactionHandler0=void 0;r.rejectReactions0=void 0;r.reactionCapability0=void 0;if(n>1){for(var o=1,i=0;o<n;o++,i+=3){h(r[i+p],r[i+v],t);e[i+l]=void 0;e[i+p]=void 0;e[i+v]=void 0}}}r.result=t;r.state=c;r.reactionLength=0};var O=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return m(e,new TypeError("Self resolution"))}if(!ee.TypeIsObject(r)){return d(e,r)}try{n=r.then}catch(o){return m(e,o)}if(!ee.IsCallable(n)){return d(e,r)}i(function(){j(e,r,n)})};var n=function(r){if(t){return}t=true;return m(e,r)};return{resolve:r,reject:n}};var w=function(e,r,n,o){if(e===I){t(e,r,n,o,y)}else{t(e,r,n,o)}};var j=function(e,t,r){var n=O(e);var o=n.resolve;var i=n.reject;try{w(r,t,o,i)}catch(a){i(a)}};var T,I;var E=function(){var e=function Promise(t){if(!(this instanceof e)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!ee.IsCallable(t)){throw new TypeError("not a valid resolver")}var r=je(this,e,T,{_promise:{result:void 0,state:f,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}});var n=O(r);var o=n.reject;try{t(n.resolve,o)}catch(i){o(i)}return r};return e}();T=E.prototype;var P=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var C=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;var f=0;while(true){try{a=ee.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(s){e.done=true;throw s}o[f]=void 0;var c=t.resolve(u);var l=P(f,o,r,i);i.count+=1;w(c.then,c,l,r.reject);f+=1}if(--i.count===0){var p=r.resolve;p(o)}return r.promise};var x=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=ee.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);w(a.then,a,r.resolve,r.reject)}return r.promise};g(E,{all:function all(e){var t=this;if(!ee.TypeIsObject(t)){throw new TypeError("Promise is not object")}var n=new r(t);var o,i;try{o=ee.GetIterator(e);i={iterator:o,done:false};return C(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{ee.IteratorClose(o,true)}catch(f){u=f}}var s=n.reject;s(u);return n.promise}},race:function race(e){var t=this;if(!ee.TypeIsObject(t)){throw new TypeError("Promise is not object")}var n=new r(t);var o,i;try{o=ee.GetIterator(e);i={iterator:o,done:false};return x(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{ee.IteratorClose(o,true)}catch(f){u=f}}var s=n.reject;s(u);return n.promise}},reject:function reject(e){var t=this;if(!ee.TypeIsObject(t)){throw new TypeError("Bad promise constructor")}var n=new r(t);var o=n.reject;o(e);return n.promise},resolve:function resolve(e){var t=this;if(!ee.TypeIsObject(t)){throw new TypeError("Bad promise constructor")}if(ee.IsPromise(e)){var n=e.constructor;if(n===t){return e}}var o=new r(t);var i=o.resolve;i(e);return o.promise}});g(T,{"catch":function(e){return this.then(null,e)},then:function then(e,t){var n=this;if(!ee.IsPromise(n)){throw new TypeError("not a promise")}var o=ee.SpeciesConstructor(n,E);var i;var g=arguments.length>2&&arguments[2]===y;if(g&&o===E){i=y}else{i=new r(o)}var b=ee.IsCallable(e)?e:a;var d=ee.IsCallable(t)?t:u;var m=n._promise;var O;if(m.state===f){if(m.reactionLength===0){m.fulfillReactionHandler0=b;m.rejectReactionHandler0=d;m.reactionCapability0=i}else{var w=3*(m.reactionLength-1);m[w+l]=b;m[w+p]=d;m[w+v]=i}m.reactionLength+=1}else if(m.state===s){O=m.result;h(b,i,O)}else if(m.state===c){O=m.result;h(d,i,O)}else{throw new TypeError("unexpected Promise state")}return i.promise}});y=new r(E);I=T.then;return E}();if(S.Promise){delete S.Promise.accept;delete S.Promise.defer;delete S.Promise.prototype.chain}if(typeof wr==="function"){g(S,{Promise:wr});var jr=w(S.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var Sr=!i(function(){S.Promise.reject(42).then(null,5).then(null,q)});var Tr=i(function(){S.Promise.call(3,q)});var Ir=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(S.Promise);var Er=s&&function(){var e=0;var t=Object.defineProperty({},"then",{get:function(){e+=1}});Promise.resolve(t);return e===1}();var Pr=function BadResolverPromise(e){var t=new Promise(e);e(3,function(){});this.then=t.then;this.constructor=BadResolverPromise};Pr.prototype=Promise.prototype;Pr.all=Promise.all;var Cr=a(function(){return!!Pr.all([1,2])});if(!jr||!Sr||!Tr||Ir||!Er||Cr){Promise=wr;U(S,"Promise",wr)}if(Promise.all.length!==1){var Mr=Promise.all;U(Promise,"all",function all(e){return ee.Call(Mr,this,arguments)})}if(Promise.race.length!==1){var xr=Promise.race;U(Promise,"race",function race(e){return ee.Call(xr,this,arguments)})}if(Promise.resolve.length!==1){var Nr=Promise.resolve;U(Promise,"resolve",function resolve(e){return ee.Call(Nr,this,arguments)})}if(Promise.reject.length!==1){var Ar=Promise.reject;U(Promise,"reject",function reject(e){return ee.Call(Ar,this,arguments)})}jt(Promise,"all");jt(Promise,"race");jt(Promise,"resolve");jt(Promise,"reject");de(Promise)}var Rr=function(e){var t=n(p(e,function(e,t){e[t]=true;return e},{}));return e.join(":")===t.join(":")};var _r=Rr(["z","a","bb"]);var kr=Rr(["z",1,"a","3",2]);if(s){var Fr=function fastkey(e){if(!_r){return null}var t=typeof e;if(t==="undefined"||e===null){return"^"+ee.ToString(e)}else if(t==="string"){return"$"+e}else if(t==="number"){if(!kr){return"n"+e}return e}else if(t==="boolean"){return"b"+e}return null};var Lr=function emptyObject(){return Object.create?Object.create(null):{}};var Dr=function addIterableToMap(e,n,o){if(r(o)||K.string(o)){l(o,function(e){if(!ee.TypeIsObject(e)){throw new TypeError("Iterator value "+e+" is not an entry object")}n.set(e[0],e[1])})}else if(o instanceof e){t(e.prototype.forEach,o,function(e,t){n.set(t,e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.set;if(!ee.IsCallable(a)){throw new TypeError("bad map")}i=ee.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=ee.IteratorStep(i);if(u===false){break}var f=u.value;try{if(!ee.TypeIsObject(f)){throw new TypeError("Iterator value "+f+" is not an entry object")}t(a,n,f[0],f[1])}catch(s){ee.IteratorClose(i,true);throw s}}}}};var zr=function addIterableToSet(e,n,o){if(r(o)||K.string(o)){l(o,function(e){n.add(e)})}else if(o instanceof e){t(e.prototype.forEach,o,function(e){n.add(e)})}else{var i,a;if(o!==null&&typeof o!=="undefined"){a=n.add;if(!ee.IsCallable(a)){throw new TypeError("bad set")}i=ee.GetIterator(o)}if(typeof i!=="undefined"){while(true){var u=ee.IteratorStep(i);if(u===false){break}var f=u.value;try{t(a,n,f)}catch(s){ee.IteratorClose(i,true);throw s}}}}};var qr={Map:function(){var e={};var r=function MapEntry(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function isRemoved(){return this.key===e};var n=function isMap(e){return!!e._es6map};var o=function requireMapSlot(e,t){if(!ee.TypeIsObject(e)||!n(e)){throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+ee.ToString(e))}};var i=function MapIterator(e,t){o(e,"[[MapIterator]]");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function next(){var e=this.i,t=this.kind,r=this.head,n;if(typeof this.i==="undefined"){return{value:void 0,done:true}}while(e.isRemoved()&&e!==r){e=e.prev}while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t==="key"){n=e.key}else if(t==="value"){n=e.value}else{n=[e.key,e.value]}this.i=e;return{value:n,done:false}}}this.i=void 0;return{value:void 0,done:true}}};me(i.prototype);var a;var u=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}if(this&&this._es6map){throw new TypeError("Bad construction")}var e=je(this,Map,a,{_es6map:true,_head:null,_storage:Lr(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Dr(Map,e,arguments[0])}return e};a=u.prototype;m.getter(a,"size",function(){if(typeof this._size==="undefined"){throw new TypeError("size method called on incompatible Map")}return this._size});g(a,{get:function get(e){o(this,"get");var t=Fr(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(ee.SameValueZero(i.key,e)){return i.value}}},has:function has(e){o(this,"has");var t=Fr(e);if(t!==null){return typeof this._storage[t]!=="undefined"}var r=this._head,n=r;while((n=n.next)!==r){if(ee.SameValueZero(n.key,e)){return true}}return false},set:function set(e,t){o(this,"set");var n=this._head,i=n,a;var u=Fr(e);if(u!==null){if(typeof this._storage[u]!=="undefined"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(ee.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(ee.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},"delete":function(t){o(this,"delete");var r=this._head,n=r;var i=Fr(t);if(i!==null){if(typeof this._storage[i]==="undefined"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(ee.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function clear(){o(this,"clear");this._size=0;this._storage=Lr();var t=this._head,r=t,n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function keys(){o(this,"keys");return new i(this,"key")},values:function values(){o(this,"values");return new i(this,"value")},entries:function entries(){o(this,"entries");return new i(this,"key+value")},forEach:function forEach(e){o(this,"forEach");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});me(a,a.entries);return u}(),Set:function(){var e=function isSet(e){return e._es6set&&typeof e._storage!=="undefined"};var r=function requireSetSlot(t,r){if(!ee.TypeIsObject(t)||!e(t)){throw new TypeError("Set.prototype."+r+" called on incompatible receiver "+ee.ToString(t))}};var o;var i=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}if(this&&this._es6set){throw new TypeError("Bad construction")}var e=je(this,Set,o,{_es6set:true,"[[SetData]]":null,_storage:Lr()});if(!e._es6set){throw new TypeError("bad set")}if(arguments.length>0){zr(Set,e,arguments[0])}return e};o=i.prototype;var a=function(e){var t=e;if(t==="^null"){return null}else if(t==="^undefined"){return void 0}else{var r=t.charAt(0);if(r==="$"){return C(t,1)}else if(r==="n"){return+C(t,1)}else if(r==="b"){return t==="btrue"}}return+t};var u=function ensureMap(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new qr.Map;l(n(e._storage),function(e){var r=a(e);t.set(r,r)});e["[[SetData]]"]=t}e._storage=null};m.getter(i.prototype,"size",function(){r(this,"size");if(this._storage){return n(this._storage).length}u(this);return this["[[SetData]]"].size});g(i.prototype,{has:function has(e){r(this,"has");var t;if(this._storage&&(t=Fr(e))!==null){return!!this._storage[t]}u(this);return this["[[SetData]]"].has(e)},add:function add(e){r(this,"add");var t;if(this._storage&&(t=Fr(e))!==null){this._storage[t]=true;return this}u(this);this["[[SetData]]"].set(e,e);return this},"delete":function(e){r(this,"delete");var t;if(this._storage&&(t=Fr(e))!==null){var n=D(this._storage,t);return delete this._storage[t]&&n}u(this);return this["[[SetData]]"]["delete"](e)},clear:function clear(){r(this,"clear");if(this._storage){this._storage=Lr()}if(this["[[SetData]]"]){this["[[SetData]]"].clear()}},values:function values(){r(this,"values");u(this);return this["[[SetData]]"].values()},entries:function entries(){r(this,"entries");u(this);return this["[[SetData]]"].entries()},forEach:function forEach(e){r(this,"forEach");var n=arguments.length>1?arguments[1]:null;var o=this;u(o);this["[[SetData]]"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});h(i.prototype,"keys",i.prototype.values,true);me(i.prototype,i.prototype.values);return i}()};if(S.Map||S.Set){var Wr=a(function(){return new Map([[1,2]]).get(1)===2});if(!Wr){var Gr=S.Map;S.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new Gr;if(arguments.length>0){Dr(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,S.Map.prototype);return e};S.Map.prototype=O(Gr.prototype);h(S.Map.prototype,"constructor",S.Map,true);m.preserveToString(S.Map,Gr)}var Hr=new Map;var Br=function(){var e=new Map([[1,0],[2,0],[3,0],[4,0]]);e.set(-0,e);return e.get(0)===e&&e.get(-0)===e&&e.has(0)&&e.has(-0)}();var $r=Hr.set(1,2)===Hr;if(!Br||!$r){var Vr=Map.prototype.set;U(Map.prototype,"set",function set(e,r){t(Vr,this,e===0?0:e,r);return this})}if(!Br){var Jr=Map.prototype.get;var Kr=Map.prototype.has;g(Map.prototype,{get:function get(e){return t(Jr,this,e===0?0:e)},has:function has(e){return t(Kr,this,e===0?0:e)}},true);m.preserveToString(Map.prototype.get,Jr);m.preserveToString(Map.prototype.has,Kr)}var Ur=new Set;var Xr=function(e){e["delete"](0);e.add(-0);return!e.has(0)}(Ur);var Zr=Ur.add(1)===Ur;if(!Xr||!Zr){var Qr=Set.prototype.add;Set.prototype.add=function add(e){t(Qr,this,e===0?0:e);return this};m.preserveToString(Set.prototype.add,Qr)}if(!Xr){var Yr=Set.prototype.has;Set.prototype.has=function has(e){return t(Yr,this,e===0?0:e)};m.preserveToString(Set.prototype.has,Yr);var en=Set.prototype["delete"];Set.prototype["delete"]=function SetDelete(e){return t(en,this,e===0?0:e)};m.preserveToString(Set.prototype["delete"],en)}var tn=w(S.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var rn=Object.setPrototypeOf&&!tn;var nn=function(){try{return!(S.Map()instanceof S.Map)}catch(e){return e instanceof TypeError}}();if(S.Map.length!==0||rn||!nn){var on=S.Map;S.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires "new"')}var e=new on;if(arguments.length>0){Dr(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Map.prototype);return e};S.Map.prototype=on.prototype;h(S.Map.prototype,"constructor",S.Map,true);m.preserveToString(S.Map,on)}var an=w(S.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var un=Object.setPrototypeOf&&!an;var fn=function(){try{return!(S.Set()instanceof S.Set)}catch(e){return e instanceof TypeError}}();if(S.Set.length!==0||un||!fn){var sn=S.Set;S.Set=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires "new"')}var e=new sn;if(arguments.length>0){zr(Set,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Set.prototype);return e};S.Set.prototype=sn.prototype;h(S.Set.prototype,"constructor",S.Set,true);m.preserveToString(S.Set,sn)}var cn=!a(function(){return(new Map).keys().next().done});if(typeof S.Map.prototype.clear!=="function"||(new S.Set).size!==0||(new S.Map).size!==0||typeof S.Map.prototype.keys!=="function"||typeof S.Set.prototype.keys!=="function"||typeof S.Map.prototype.forEach!=="function"||typeof S.Set.prototype.forEach!=="function"||u(S.Map)||u(S.Set)||typeof(new S.Map).keys().next!=="function"||cn||!tn){g(S,{Map:qr.Map,Set:qr.Set},true)}if(S.Set.prototype.keys!==S.Set.prototype.values){h(S.Set.prototype,"keys",S.Set.prototype.values,true)}me(Object.getPrototypeOf((new S.Map).keys()));me(Object.getPrototypeOf((new S.Set).keys()));if(c&&S.Set.prototype.has.name!=="has"){var ln=S.Set.prototype.has;U(S.Set.prototype,"has",function has(e){return t(ln,this,e)})}}g(S,qr);de(S.Map);de(S.Set)}var pn=function throwUnlessTargetIsObject(e){if(!ee.TypeIsObject(e)){throw new TypeError("target must be an object")}};var vn={apply:function apply(){return ee.Call(ee.Call,null,arguments)},construct:function construct(e,t){if(!ee.IsConstructor(e)){throw new TypeError("First argument must be a constructor.")}var r=arguments.length>2?arguments[2]:e;if(!ee.IsConstructor(r)){throw new TypeError("new.target must be a constructor.")}return ee.Construct(e,t,r,"internal")},deleteProperty:function deleteProperty(e,t){pn(e);if(s){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function enumerate(e){pn(e);return new $e(e,"key")},has:function has(e,t){pn(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(vn,{ownKeys:function ownKeys(e){pn(e);var t=Object.getOwnPropertyNames(e);if(ee.IsCallable(Object.getOwnPropertySymbols)){x(t,Object.getOwnPropertySymbols(e))}return t}})}var yn=function ConvertExceptionToBoolean(e){return!i(e)};if(Object.preventExtensions){Object.assign(vn,{isExtensible:function isExtensible(e){pn(e);return Object.isExtensible(e)},preventExtensions:function preventExtensions(e){pn(e);return yn(function(){Object.preventExtensions(e)})}})}if(s){var hn=function get(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n){var o=Object.getPrototypeOf(e);if(o===null){return void 0}return hn(o,t,r)}if("value"in n){return n.value}if(n.get){return ee.Call(n.get,r)}return void 0};var gn=function set(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return gn(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if("value"in i){if(!i.writable){return false}if(!ee.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return Q.defineProperty(o,r,{value:n})}else{return Q.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};Object.assign(vn,{defineProperty:function defineProperty(e,t,r){pn(e);return yn(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){pn(e);return Object.getOwnPropertyDescriptor(e,t)},get:function get(e,t){pn(e);var r=arguments.length>2?arguments[2]:e;return hn(e,t,r)},set:function set(e,t,r){pn(e);var n=arguments.length>3?arguments[3]:e;return gn(e,t,r,n)}})}if(Object.getPrototypeOf){var bn=Object.getPrototypeOf;vn.getPrototypeOf=function getPrototypeOf(e){pn(e);return bn(e)}}if(Object.setPrototypeOf&&vn.getPrototypeOf){var dn=function(e,t){var r=t;while(r){if(e===r){return true}r=vn.getPrototypeOf(r)}return false};Object.assign(vn,{setPrototypeOf:function setPrototypeOf(e,t){pn(e);if(t!==null&&!ee.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===Q.getPrototypeOf(e)){return true}if(Q.isExtensible&&!Q.isExtensible(e)){return false}if(dn(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var mn=function(e,t){if(!ee.IsCallable(S.Reflect[e])){h(S.Reflect,e,t)}else{var r=a(function(){S.Reflect[e](1);S.Reflect[e](NaN);S.Reflect[e](true);return true});if(r){U(S.Reflect,e,t)}}};Object.keys(vn).forEach(function(e){mn(e,vn[e])});if(c&&S.Reflect.getPrototypeOf.name!=="getPrototypeOf"){var On=S.Reflect.getPrototypeOf;U(S.Reflect,"getPrototypeOf",function getPrototypeOf(e){return t(On,S.Reflect,e)})}if(S.Reflect.setPrototypeOf){if(a(function(){S.Reflect.setPrototypeOf(1,{});return true})){U(S.Reflect,"setPrototypeOf",vn.setPrototypeOf)}}if(S.Reflect.defineProperty){if(!a(function(){var e=!S.Reflect.defineProperty(1,"test",{value:1});var t=typeof Object.preventExtensions!=="function"||!S.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t})){U(S.Reflect,"defineProperty",vn.defineProperty)}}if(S.Reflect.construct){if(!a(function(){var e=function F(){};return S.Reflect.construct(function(){},[],e)instanceof e})){U(S.Reflect,"construct",vn.construct)}}if(String(new Date(NaN))!=="Invalid Date"){var wn=Date.prototype.toString;var jn=function toString(){var e=+this;if(e!==e){return"Invalid Date"}return ee.Call(wn,this)};U(Date.prototype,"toString",jn)}var Sn={anchor:function anchor(e){return ee.CreateHTML(this,"a","name",e)},big:function big(){return ee.CreateHTML(this,"big","","")},blink:function blink(){return ee.CreateHTML(this,"blink","","")},bold:function bold(){return ee.CreateHTML(this,"b","","")},fixed:function fixed(){return ee.CreateHTML(this,"tt","","")},fontcolor:function fontcolor(e){return ee.CreateHTML(this,"font","color",e)},fontsize:function fontsize(e){return ee.CreateHTML(this,"font","size",e)},italics:function italics(){return ee.CreateHTML(this,"i","","")},link:function link(e){return ee.CreateHTML(this,"a","href",e)},small:function small(){return ee.CreateHTML(this,"small","","")},strike:function strike(){return ee.CreateHTML(this,"strike","","")},sub:function sub(){return ee.CreateHTML(this,"sub","","")},sup:function sub(){return ee.CreateHTML(this,"sup","","")}};l(Object.keys(Sn),function(e){var r=String.prototype[e];var n=false;if(ee.IsCallable(r)){var o=t(r,"",' " ');var i=E([],o.match(/"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){U(String.prototype,e,Sn[e])}});var Tn=function(){if(!X){return false}var e=typeof JSON==="object"&&typeof JSON.stringify==="function"?JSON.stringify:null;if(!e){return false}if(typeof e(W())!=="undefined"){return true}if(e([W()])!=="[null]"){return true}var t={a:W()};t[W()]=true;if(e(t)!=="{}"){return true}return false}();var In=a(function(){if(!X){return true}return JSON.stringify(Object(W()))==="{}"&&JSON.stringify([Object(W())])==="[{}]"});if(Tn||!In){var En=JSON.stringify;U(JSON,"stringify",function stringify(e){if(typeof e==="symbol"){return}var n;if(arguments.length>1){n=arguments[1]}var o=[e];if(!r(n)){var i=ee.IsCallable(n)?n:null;var a=function(e,r){var o=n?t(n,this,e,r):r;if(typeof o!=="symbol"){if(K.symbol(o)){return Tt({})(o)}else{return o}}};o.push(a)}else{o.push(n)}if(arguments.length>2){o.push(arguments[2])}return En.apply(this,o)})}return S});
//# sourceMappingURL=es6-shim.map
{
"name": "es6-shim",
"version": "0.34.0",
"version": "0.34.1",
"author": "Paul Miller (http://paulmillr.com)",

@@ -71,5 +71,5 @@ "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",

"chai": "^3.4.1",
"es5-shim": "^4.4.0",
"es5-shim": "^4.4.1",
"eslint": "^1.10.3",
"@ljharb/eslint-config": "^1.6.0",
"@ljharb/eslint-config": "^1.6.1",
"grunt": "^0.4.5",

@@ -76,0 +76,0 @@ "grunt-contrib-connect": "^0.11.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc