UNPKG

dicomweb-proxy

Version:

A proxy to translate between dicomweb and dimse

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