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