3 lines
53 KiB
JavaScript
3 lines
53 KiB
JavaScript
"use strict";(()=>{var Pt=Object.create;var Tt=Object.defineProperty;var kt=Object.getOwnPropertyDescriptor;var $t=Object.getOwnPropertyNames;var jt=Object.getPrototypeOf,Dt=Object.prototype.hasOwnProperty;var at=(m=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(m,{get:(A,I)=>(typeof require<"u"?require:A)[I]}):m)(function(m){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+m+'" is not supported')});var Rt=(m,A)=>()=>(m&&(A=m(m=0)),A);var Ft=(m,A)=>()=>(A||m((A={exports:{}}).exports,A),A.exports);var zt=(m,A,I,U)=>{if(A&&typeof A=="object"||typeof A=="function")for(let w of $t(A))!Dt.call(m,w)&&w!==I&&Tt(m,w,{get:()=>A[w],enumerable:!(U=kt(A,w))||U.enumerable});return m};var Yt=(m,A,I)=>(I=m!=null?Pt(jt(m)):{},zt(A||!m||!m.__esModule?Tt(I,"default",{value:m,enumerable:!0}):I,m));function _t(){throw new Error("setTimeout has not been defined")}function St(){throw new Error("clearTimeout has not been defined")}function Ot(m){if(Z===setTimeout)return setTimeout(m,0);if((Z===_t||!Z)&&setTimeout)return Z=setTimeout,setTimeout(m,0);try{return Z(m,0)}catch{try{return Z.call(null,m,0)}catch{return Z.call(this,m,0)}}}function qt(m){if(Q===clearTimeout)return clearTimeout(m);if((Q===St||!Q)&&clearTimeout)return Q=clearTimeout,clearTimeout(m);try{return Q(m)}catch{try{return Q.call(null,m)}catch{return Q.call(this,m)}}}function Vt(){!ft||!tt||(ft=!1,tt.length?X=tt.concat(X):dt=-1,X.length&&Ct())}function Ct(){if(!ft){var m=Ot(Vt);ft=!0;for(var A=X.length;A;){for(tt=X,X=[];++dt<A;)tt&&tt[dt].run();dt=-1,A=X.length}tt=null,ft=!1,qt(m)}}function Gt(m){var A=new Array(arguments.length-1);if(arguments.length>1)for(var I=1;I<arguments.length;I++)A[I-1]=arguments[I];X.push(new xt(m,A)),X.length===1&&!ft&&Ot(Ct)}function xt(m,A){this.fun=m,this.array=A}function et(){}function he(m){throw new Error("process.binding is not supported")}function ae(){return"/"}function ce(m){throw new Error("process.chdir is not supported")}function le(){return 0}function ge(m){var A=pe.call(it)*.001,I=Math.floor(A),U=Math.floor(A%1*1e9);return m&&(I=I-m[0],U=U-m[1],U<0&&(I--,U+=1e9)),[I,U]}function we(){var m=new Date,A=m-ye;return A/1e3}var Z,Q,X,ft,tt,dt,Wt,Xt,Jt,Ht,Zt,Qt,Kt,te,ee,re,ne,oe,ie,fe,ue,se,it,pe,ye,At,Lt,ct=Rt(()=>{Z=_t,Q=St;typeof globalThis.setTimeout=="function"&&(Z=setTimeout);typeof globalThis.clearTimeout=="function"&&(Q=clearTimeout);X=[],ft=!1,dt=-1;xt.prototype.run=function(){this.fun.apply(null,this.array)};Wt="browser",Xt="browser",Jt=!0,Ht={},Zt=[],Qt="",Kt={},te={},ee={};re=et,ne=et,oe=et,ie=et,fe=et,ue=et,se=et;it=globalThis.performance||{},pe=it.now||it.mozNow||it.msNow||it.oNow||it.webkitNow||function(){return new Date().getTime()};ye=new Date;At={nextTick:Gt,title:Wt,browser:Jt,env:Ht,argv:Zt,version:Qt,versions:Kt,on:re,addListener:ne,once:oe,off:ie,removeListener:fe,removeAllListeners:ue,emit:se,binding:he,cwd:ae,chdir:ce,umask:le,hrtime:ge,platform:Xt,release:te,config:ee,uptime:we},Lt={version:"3.65.22","env.PROJECT":"okxwallet-extension","env.NODE_ENV":"production","env.SOURCEMAP":"true","env.DEV_TARGET":"","env.APP_VERSION":"3.65.22","env.COMMIT_HASH":"1c1b","env.PLATFORM_WEB":void 0,"env.REDUX_DEVTOOLS":"","env.MONITOR_PLATFORM":"extension","env.ASSETS_BUILD_TYPE":"publish"};Object.keys(Lt).forEach(m=>{let A=m.split("."),I=At;for(let U=0;U<A.length;U++){let w=A[U];U===A.length-1?I[w]=Lt[m]:I=I[w]||(I[w]={})}})});var Nt=Ft((Mt,It)=>{ct();lt();(function(m){typeof Mt=="object"&&typeof It<"u"?It.exports=m():typeof define=="function"&&define.amd?define([],m):(typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:this).buffer=m()})(function(){return function(){return function m(A,I,U){function w(E,a){if(!I[E]){if(!A[E]){var u=typeof at=="function"&&at;if(!a&&u)return u(E,!0);if(x)return x(E,!0);var M=new Error("Cannot find module '"+E+"'");throw M.code="MODULE_NOT_FOUND",M}var d=I[E]={exports:{}};A[E][0].call(d.exports,function(b){return w(A[E][1][b]||b)},d,d.exports,m,A,I,U)}return I[E].exports}for(var x=typeof at=="function"&&at,O=0;O<U.length;O++)w(U[O]);return w}}()({1:[function(m,A,I){"use strict";I.byteLength=function(d){var b=u(d),y=b[0],B=b[1];return 3*(y+B)/4-B},I.toByteArray=function(d){var b,y,B=u(d),L=B[0],T=B[1],R=new x(function(rt,K,G){return 3*(K+G)/4-G}(0,L,T)),D=0,J=T>0?L-4:L;for(y=0;y<J;y+=4)b=w[d.charCodeAt(y)]<<18|w[d.charCodeAt(y+1)]<<12|w[d.charCodeAt(y+2)]<<6|w[d.charCodeAt(y+3)],R[D++]=b>>16&255,R[D++]=b>>8&255,R[D++]=255&b;return T===2&&(b=w[d.charCodeAt(y)]<<2|w[d.charCodeAt(y+1)]>>4,R[D++]=255&b),T===1&&(b=w[d.charCodeAt(y)]<<10|w[d.charCodeAt(y+1)]<<4|w[d.charCodeAt(y+2)]>>2,R[D++]=b>>8&255,R[D++]=255&b),R},I.fromByteArray=function(d){for(var b,y=d.length,B=y%3,L=[],T=0,R=y-B;T<R;T+=16383)L.push(M(d,T,T+16383>R?R:T+16383));return B===1?(b=d[y-1],L.push(U[b>>2]+U[b<<4&63]+"==")):B===2&&(b=(d[y-2]<<8)+d[y-1],L.push(U[b>>10]+U[b>>4&63]+U[b<<2&63]+"=")),L.join("")};for(var U=[],w=[],x=typeof Uint8Array<"u"?Uint8Array:Array,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,a=O.length;E<a;++E)U[E]=O[E],w[O.charCodeAt(E)]=E;function u(d){var b=d.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");return y===-1&&(y=b),[y,y===b?0:4-y%4]}function M(d,b,y){for(var B,L,T=[],R=b;R<y;R+=3)B=(d[R]<<16&16711680)+(d[R+1]<<8&65280)+(255&d[R+2]),T.push(U[(L=B)>>18&63]+U[L>>12&63]+U[L>>6&63]+U[63&L]);return T.join("")}w["-".charCodeAt(0)]=62,w["_".charCodeAt(0)]=63},{}],2:[function(m,A,I){(function(a){"use strict";var w=m("base64-js"),x=m("ieee754");I.Buffer=a,I.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},I.INSPECT_MAX_BYTES=50;var O=2147483647;function E(e){if(e>O)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return n.__proto__=a.prototype,n}function a(e,n,i){if(typeof e=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,n,i)}function u(e,n,i){if(typeof e=="string")return function(l,v){if(typeof v=="string"&&v!==""||(v="utf8"),!a.isEncoding(v))throw new TypeError("Unknown encoding: "+v);var _=0|B(l,v),P=E(_),k=P.write(l,v);return k!==_&&(P=P.slice(0,k)),P}(e,n);if(ArrayBuffer.isView(e))return b(e);if(e==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return function(l,v,_){if(v<0||l.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<v+(_||0))throw new RangeError('"length" is outside of buffer bounds');var P;return P=v===void 0&&_===void 0?new Uint8Array(l):_===void 0?new Uint8Array(l,v):new Uint8Array(l,v,_),P.__proto__=a.prototype,P}(e,n,i);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return a.from(s,n,i);var p=function(l){if(a.isBuffer(l)){var v=0|y(l.length),_=E(v);return _.length===0||l.copy(_,0,0,v),_}if(l.length!==void 0)return typeof l.length!="number"||ot(l.length)?E(0):b(l);if(l.type==="Buffer"&&Array.isArray(l.data))return b(l.data)}(e);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),n,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function M(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return M(e),E(e<0?0:0|y(e))}function b(e){for(var n=e.length<0?0:0|y(e.length),i=E(n),s=0;s<n;s+=1)i[s]=255&e[s];return i}function y(e){if(e>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return 0|e}function B(e,n){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&i===0)return 0;for(var p=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return nt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return W(e).length;default:if(p)return s?-1:nt(e).length;n=(""+n).toLowerCase(),p=!0}}function L(e,n,i){var s=e[n];e[n]=e[i],e[i]=s}function T(e,n,i,s,p){if(e.length===0)return-1;if(typeof i=="string"?(s=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),ot(i=+i)&&(i=p?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(p)return-1;i=e.length-1}else if(i<0){if(!p)return-1;i=0}if(typeof n=="string"&&(n=a.from(n,s)),a.isBuffer(n))return n.length===0?-1:R(e,n,i,s,p);if(typeof n=="number")return n&=255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(e,n,i):Uint8Array.prototype.lastIndexOf.call(e,n,i):R(e,[n],i,s,p);throw new TypeError("val must be string, number or Buffer")}function R(e,n,i,s,p){var l,v=1,_=e.length,P=n.length;if(s!==void 0&&((s=String(s).toLowerCase())==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||n.length<2)return-1;v=2,_/=2,P/=2,i/=2}function k(o,f){return v===1?o[f]:o.readUInt16BE(f*v)}if(p){var C=-1;for(l=i;l<_;l++)if(k(e,l)===k(n,C===-1?0:l-C)){if(C===-1&&(C=l),l-C+1===P)return C*v}else C!==-1&&(l-=l-C),C=-1}else for(i+P>_&&(i=_-P),l=i;l>=0;l--){for(var t=!0,r=0;r<P;r++)if(k(e,l+r)!==k(n,r)){t=!1;break}if(t)return l}return-1}function D(e,n,i,s){i=Number(i)||0;var p=e.length-i;s?(s=Number(s))>p&&(s=p):s=p;var l=n.length;s>l/2&&(s=l/2);for(var v=0;v<s;++v){var _=parseInt(n.substr(2*v,2),16);if(ot(_))return v;e[i+v]=_}return v}function J(e,n,i,s){return H(nt(n,e.length-i),e,i,s)}function rt(e,n,i,s){return H(function(p){for(var l=[],v=0;v<p.length;++v)l.push(255&p.charCodeAt(v));return l}(n),e,i,s)}function K(e,n,i,s){return rt(e,n,i,s)}function G(e,n,i,s){return H(W(n),e,i,s)}function bt(e,n,i,s){return H(function(p,l){for(var v,_,P,k=[],C=0;C<p.length&&!((l-=2)<0);++C)v=p.charCodeAt(C),_=v>>8,P=v%256,k.push(P),k.push(_);return k}(n,e.length-i),e,i,s)}function mt(e,n,i){return n===0&&i===e.length?w.fromByteArray(e):w.fromByteArray(e.slice(n,i))}function pt(e,n,i){i=Math.min(e.length,i);for(var s=[],p=n;p<i;){var l,v,_,P,k=e[p],C=null,t=k>239?4:k>223?3:k>191?2:1;if(p+t<=i)switch(t){case 1:k<128&&(C=k);break;case 2:(192&(l=e[p+1]))==128&&(P=(31&k)<<6|63&l)>127&&(C=P);break;case 3:l=e[p+1],v=e[p+2],(192&l)==128&&(192&v)==128&&(P=(15&k)<<12|(63&l)<<6|63&v)>2047&&(P<55296||P>57343)&&(C=P);break;case 4:l=e[p+1],v=e[p+2],_=e[p+3],(192&l)==128&&(192&v)==128&&(192&_)==128&&(P=(15&k)<<18|(63&l)<<12|(63&v)<<6|63&_)>65535&&P<1114112&&(C=P)}C===null?(C=65533,t=1):C>65535&&(C-=65536,s.push(C>>>10&1023|55296),C=56320|1023&C),s.push(C),p+=t}return function(r){var o=r.length;if(o<=ut)return String.fromCharCode.apply(String,r);for(var f="",h=0;h<o;)f+=String.fromCharCode.apply(String,r.slice(h,h+=ut));return f}(s)}I.kMaxLength=O,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}(),a.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,n,i){return u(e,n,i)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,n,i){return function(s,p,l){return M(s),s<=0?E(s):p!==void 0?typeof l=="string"?E(s).fill(p,l):E(s).fill(p):E(s)}(e,n,i)},a.allocUnsafe=function(e){return d(e)},a.allocUnsafeSlow=function(e){return d(e)},a.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==a.prototype},a.compare=function(e,n){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),V(n,Uint8Array)&&(n=a.from(n,n.offset,n.byteLength)),!a.isBuffer(e)||!a.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var i=e.length,s=n.length,p=0,l=Math.min(i,s);p<l;++p)if(e[p]!==n[p]){i=e[p],s=n[p];break}return i<s?-1:s<i?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return a.alloc(0);var i;if(n===void 0)for(n=0,i=0;i<e.length;++i)n+=e[i].length;var s=a.allocUnsafe(n),p=0;for(i=0;i<e.length;++i){var l=e[i];if(V(l,Uint8Array)&&(l=a.from(l)),!a.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(s,p),p+=l.length}return s},a.byteLength=B,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)L(this,n,n+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)L(this,n,n+3),L(this,n+1,n+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)L(this,n,n+7),L(this,n+1,n+6),L(this,n+2,n+5),L(this,n+3,n+4);return this},a.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?pt(this,0,e):function(n,i,s){var p=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0)<=(i>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return Et(this,i,s);case"utf8":case"utf-8":return pt(this,i,s);case"ascii":return gt(this,i,s);case"latin1":case"binary":return vt(this,i,s);case"base64":return mt(this,i,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,i,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),p=!0}}.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||a.compare(this,e)===0},a.prototype.inspect=function(){var e="",n=I.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,n,i,s,p){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(n===void 0&&(n=0),i===void 0&&(i=e?e.length:0),s===void 0&&(s=0),p===void 0&&(p=this.length),n<0||i>e.length||s<0||p>this.length)throw new RangeError("out of range index");if(s>=p&&n>=i)return 0;if(s>=p)return-1;if(n>=i)return 1;if(this===e)return 0;for(var l=(p>>>=0)-(s>>>=0),v=(i>>>=0)-(n>>>=0),_=Math.min(l,v),P=this.slice(s,p),k=e.slice(n,i),C=0;C<_;++C)if(P[C]!==k[C]){l=P[C],v=k[C];break}return l<v?-1:v<l?1:0},a.prototype.includes=function(e,n,i){return this.indexOf(e,n,i)!==-1},a.prototype.indexOf=function(e,n,i){return T(this,e,n,i,!0)},a.prototype.lastIndexOf=function(e,n,i){return T(this,e,n,i,!1)},a.prototype.write=function(e,n,i,s){if(n===void 0)s="utf8",i=this.length,n=0;else if(i===void 0&&typeof n=="string")s=n,i=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n>>>=0,isFinite(i)?(i>>>=0,s===void 0&&(s="utf8")):(s=i,i=void 0)}var p=this.length-n;if((i===void 0||i>p)&&(i=p),e.length>0&&(i<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var l=!1;;)switch(s){case"hex":return D(this,e,n,i);case"utf8":case"utf-8":return J(this,e,n,i);case"ascii":return rt(this,e,n,i);case"latin1":case"binary":return K(this,e,n,i);case"base64":return G(this,e,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,e,n,i);default:if(l)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),l=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ut=4096;function gt(e,n,i){var s="";i=Math.min(e.length,i);for(var p=n;p<i;++p)s+=String.fromCharCode(127&e[p]);return s}function vt(e,n,i){var s="";i=Math.min(e.length,i);for(var p=n;p<i;++p)s+=String.fromCharCode(e[p]);return s}function Et(e,n,i){var s=e.length;(!n||n<0)&&(n=0),(!i||i<0||i>s)&&(i=s);for(var p="",l=n;l<i;++l)p+=wt(e[l]);return p}function Bt(e,n,i){for(var s=e.slice(n,i),p="",l=0;l<s.length;l+=2)p+=String.fromCharCode(s[l]+256*s[l+1]);return p}function z(e,n,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>i)throw new RangeError("Trying to access beyond buffer length")}function N(e,n,i,s,p,l){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>p||n<l)throw new RangeError('"value" argument is out of bounds');if(i+s>e.length)throw new RangeError("Index out of range")}function Y(e,n,i,s,p,l){if(i+s>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function st(e,n,i,s,p){return n=+n,i>>>=0,p||Y(e,0,i,4),x.write(e,n,i,s,23,4),i+4}function ht(e,n,i,s,p){return n=+n,i>>>=0,p||Y(e,0,i,8),x.write(e,n,i,s,52,8),i+8}a.prototype.slice=function(e,n){var i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(n=n===void 0?i:~~n)<0?(n+=i)<0&&(n=0):n>i&&(n=i),n<e&&(n=e);var s=this.subarray(e,n);return s.__proto__=a.prototype,s},a.prototype.readUIntLE=function(e,n,i){e>>>=0,n>>>=0,i||z(e,n,this.length);for(var s=this[e],p=1,l=0;++l<n&&(p*=256);)s+=this[e+l]*p;return s},a.prototype.readUIntBE=function(e,n,i){e>>>=0,n>>>=0,i||z(e,n,this.length);for(var s=this[e+--n],p=1;n>0&&(p*=256);)s+=this[e+--n]*p;return s},a.prototype.readUInt8=function(e,n){return e>>>=0,n||z(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,n){return e>>>=0,n||z(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,n){return e>>>=0,n||z(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,n){return e>>>=0,n||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,n){return e>>>=0,n||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,n,i){e>>>=0,n>>>=0,i||z(e,n,this.length);for(var s=this[e],p=1,l=0;++l<n&&(p*=256);)s+=this[e+l]*p;return s>=(p*=128)&&(s-=Math.pow(2,8*n)),s},a.prototype.readIntBE=function(e,n,i){e>>>=0,n>>>=0,i||z(e,n,this.length);for(var s=n,p=1,l=this[e+--s];s>0&&(p*=256);)l+=this[e+--s]*p;return l>=(p*=128)&&(l-=Math.pow(2,8*n)),l},a.prototype.readInt8=function(e,n){return e>>>=0,n||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,n){e>>>=0,n||z(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt16BE=function(e,n){e>>>=0,n||z(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt32LE=function(e,n){return e>>>=0,n||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,n){return e>>>=0,n||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,n){return e>>>=0,n||z(e,4,this.length),x.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,n){return e>>>=0,n||z(e,4,this.length),x.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,n){return e>>>=0,n||z(e,8,this.length),x.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,n){return e>>>=0,n||z(e,8,this.length),x.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,n,i,s){e=+e,n>>>=0,i>>>=0,s||N(this,e,n,i,Math.pow(2,8*i)-1,0);var p=1,l=0;for(this[n]=255&e;++l<i&&(p*=256);)this[n+l]=e/p&255;return n+i},a.prototype.writeUIntBE=function(e,n,i,s){e=+e,n>>>=0,i>>>=0,s||N(this,e,n,i,Math.pow(2,8*i)-1,0);var p=i-1,l=1;for(this[n+p]=255&e;--p>=0&&(l*=256);)this[n+p]=e/l&255;return n+i},a.prototype.writeUInt8=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,1,255,0),this[n]=255&e,n+1},a.prototype.writeUInt16LE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,2,65535,0),this[n]=255&e,this[n+1]=e>>>8,n+2},a.prototype.writeUInt16BE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=255&e,n+2},a.prototype.writeUInt32LE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e,n+4},a.prototype.writeUInt32BE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},a.prototype.writeIntLE=function(e,n,i,s){if(e=+e,n>>>=0,!s){var p=Math.pow(2,8*i-1);N(this,e,n,i,p-1,-p)}var l=0,v=1,_=0;for(this[n]=255&e;++l<i&&(v*=256);)e<0&&_===0&&this[n+l-1]!==0&&(_=1),this[n+l]=(e/v>>0)-_&255;return n+i},a.prototype.writeIntBE=function(e,n,i,s){if(e=+e,n>>>=0,!s){var p=Math.pow(2,8*i-1);N(this,e,n,i,p-1,-p)}var l=i-1,v=1,_=0;for(this[n+l]=255&e;--l>=0&&(v*=256);)e<0&&_===0&&this[n+l+1]!==0&&(_=1),this[n+l]=(e/v>>0)-_&255;return n+i},a.prototype.writeInt8=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=255&e,n+1},a.prototype.writeInt16LE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,2,32767,-32768),this[n]=255&e,this[n+1]=e>>>8,n+2},a.prototype.writeInt16BE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=255&e,n+2},a.prototype.writeInt32LE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,4,2147483647,-2147483648),this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},a.prototype.writeInt32BE=function(e,n,i){return e=+e,n>>>=0,i||N(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},a.prototype.writeFloatLE=function(e,n,i){return st(this,e,n,!0,i)},a.prototype.writeFloatBE=function(e,n,i){return st(this,e,n,!1,i)},a.prototype.writeDoubleLE=function(e,n,i){return ht(this,e,n,!0,i)},a.prototype.writeDoubleBE=function(e,n,i){return ht(this,e,n,!1,i)},a.prototype.copy=function(e,n,i,s){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),s||s===0||(s=this.length),n>=e.length&&(n=e.length),n||(n=0),s>0&&s<i&&(s=i),s===i||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-n<s-i&&(s=e.length-n+i);var p=s-i;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(n,i,s);else if(this===e&&i<n&&n<s)for(var l=p-1;l>=0;--l)e[l+n]=this[l+i];else Uint8Array.prototype.set.call(e,this.subarray(i,s),n);return p},a.prototype.fill=function(e,n,i,s){if(typeof e=="string"){if(typeof n=="string"?(s=n,n=0,i=this.length):typeof i=="string"&&(s=i,i=this.length),s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(e.length===1){var p=e.charCodeAt(0);(s==="utf8"&&p<128||s==="latin1")&&(e=p)}}else typeof e=="number"&&(e&=255);if(n<0||this.length<n||this.length<i)throw new RangeError("Out of range index");if(i<=n)return this;var l;if(n>>>=0,i=i===void 0?this.length:i>>>0,e||(e=0),typeof e=="number")for(l=n;l<i;++l)this[l]=e;else{var v=a.isBuffer(e)?e:a.from(e,s),_=v.length;if(_===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<i-n;++l)this[l+n]=v[l%_]}return this};var yt=/[^+\/0-9A-Za-z-_]/g;function wt(e){return e<16?"0"+e.toString(16):e.toString(16)}function nt(e,n){var i;n=n||1/0;for(var s=e.length,p=null,l=[],v=0;v<s;++v){if((i=e.charCodeAt(v))>55295&&i<57344){if(!p){if(i>56319){(n-=3)>-1&&l.push(239,191,189);continue}if(v+1===s){(n-=3)>-1&&l.push(239,191,189);continue}p=i;continue}if(i<56320){(n-=3)>-1&&l.push(239,191,189),p=i;continue}i=65536+(p-55296<<10|i-56320)}else p&&(n-=3)>-1&&l.push(239,191,189);if(p=null,i<128){if((n-=1)<0)break;l.push(i)}else if(i<2048){if((n-=2)<0)break;l.push(i>>6|192,63&i|128)}else if(i<65536){if((n-=3)<0)break;l.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;l.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return l}function W(e){return w.toByteArray(function(n){if((n=(n=n.split("=")[0]).trim().replace(yt,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(e))}function H(e,n,i,s){for(var p=0;p<s&&!(p+i>=n.length||p>=e.length);++p)n[p+i]=e[p];return p}function V(e,n){return e instanceof n||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===n.name}function ot(e){return e!=e}}).call(this,m("buffer").Buffer)},{"base64-js":1,buffer:2,ieee754:3}],3:[function(m,A,I){I.read=function(U,w,x,O,E){var a,u,M=8*E-O-1,d=(1<<M)-1,b=d>>1,y=-7,B=x?E-1:0,L=x?-1:1,T=U[w+B];for(B+=L,a=T&(1<<-y)-1,T>>=-y,y+=M;y>0;a=256*a+U[w+B],B+=L,y-=8);for(u=a&(1<<-y)-1,a>>=-y,y+=O;y>0;u=256*u+U[w+B],B+=L,y-=8);if(a===0)a=1-b;else{if(a===d)return u?NaN:1/0*(T?-1:1);u+=Math.pow(2,O),a-=b}return(T?-1:1)*u*Math.pow(2,a-O)},I.write=function(U,w,x,O,E,a){var u,M,d,b=8*a-E-1,y=(1<<b)-1,B=y>>1,L=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=O?0:a-1,R=O?1:-1,D=w<0||w===0&&1/w<0?1:0;for(w=Math.abs(w),isNaN(w)||w===1/0?(M=isNaN(w)?1:0,u=y):(u=Math.floor(Math.log(w)/Math.LN2),w*(d=Math.pow(2,-u))<1&&(u--,d*=2),(w+=u+B>=1?L/d:L*Math.pow(2,1-B))*d>=2&&(u++,d/=2),u+B>=y?(M=0,u=y):u+B>=1?(M=(w*d-1)*Math.pow(2,E),u+=B):(M=w*Math.pow(2,B-1)*Math.pow(2,E),u=0));E>=8;U[x+T]=255&M,T+=R,M/=256,E-=8);for(u=u<<E|M,b+=E;b>0;U[x+T]=255&u,T+=R,u/=256,b-=8);U[x+T-R]|=128*D}},{}],4:[function(m,A,I){(function(u){"use strict";let w=m("base64-js"),x=m("ieee754"),O=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=u,I.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},I.INSPECT_MAX_BYTES=50;let E=2147483647;function a(t){if(t>E)throw new RangeError('The value "'+t+'" is invalid for option "size"');let r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,o){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(t)}return M(t,r,o)}function M(t,r,o){if(typeof t=="string")return function(c,g){if(typeof g=="string"&&g!==""||(g="utf8"),!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g);let S=0|T(c,g),$=a(S),F=$.write(c,g);return F!==S&&($=$.slice(0,F)),$}(t,r);if(ArrayBuffer.isView(t))return function(c){if(v(c,Uint8Array)){let g=new Uint8Array(c);return B(g.buffer,g.byteOffset,g.byteLength)}return y(c)}(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(v(t,ArrayBuffer)||t&&v(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(v(t,SharedArrayBuffer)||t&&v(t.buffer,SharedArrayBuffer)))return B(t,r,o);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let f=t.valueOf&&t.valueOf();if(f!=null&&f!==t)return u.from(f,r,o);let h=function(c){if(u.isBuffer(c)){let g=0|L(c.length),S=a(g);return S.length===0||c.copy(S,0,0,g),S}if(c.length!==void 0)return typeof c.length!="number"||_(c.length)?a(0):y(c);if(c.type==="Buffer"&&Array.isArray(c.data))return y(c.data)}(t);if(h)return h;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),r,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function d(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function b(t){return d(t),a(t<0?0:0|L(t))}function y(t){let r=t.length<0?0:0|L(t.length),o=a(r);for(let f=0;f<r;f+=1)o[f]=255&t[f];return o}function B(t,r,o){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(o||0))throw new RangeError('"length" is outside of buffer bounds');let f;return f=r===void 0&&o===void 0?new Uint8Array(t):o===void 0?new Uint8Array(t,r):new Uint8Array(t,r,o),Object.setPrototypeOf(f,u.prototype),f}function L(t){if(t>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return 0|t}function T(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||v(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let o=t.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&o===0)return 0;let h=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return s(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return p(t).length;default:if(h)return f?-1:s(t).length;r=(""+r).toLowerCase(),h=!0}}function R(t,r,o){let f=t[r];t[r]=t[o],t[o]=f}function D(t,r,o,f,h){if(t.length===0)return-1;if(typeof o=="string"?(f=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),_(o=+o)&&(o=h?0:t.length-1),o<0&&(o=t.length+o),o>=t.length){if(h)return-1;o=t.length-1}else if(o<0){if(!h)return-1;o=0}if(typeof r=="string"&&(r=u.from(r,f)),u.isBuffer(r))return r.length===0?-1:J(t,r,o,f,h);if(typeof r=="number")return r&=255,typeof Uint8Array.prototype.indexOf=="function"?h?Uint8Array.prototype.indexOf.call(t,r,o):Uint8Array.prototype.lastIndexOf.call(t,r,o):J(t,[r],o,f,h);throw new TypeError("val must be string, number or Buffer")}function J(t,r,o,f,h){let c,g=1,S=t.length,$=r.length;if(f!==void 0&&((f=String(f).toLowerCase())==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(t.length<2||r.length<2)return-1;g=2,S/=2,$/=2,o/=2}function F(j,q){return g===1?j[q]:j.readUInt16BE(q*g)}if(h){let j=-1;for(c=o;c<S;c++)if(F(t,c)===F(r,j===-1?0:c-j)){if(j===-1&&(j=c),c-j+1===$)return j*g}else j!==-1&&(c-=c-j),j=-1}else for(o+$>S&&(o=S-$),c=o;c>=0;c--){let j=!0;for(let q=0;q<$;q++)if(F(t,c+q)!==F(r,q)){j=!1;break}if(j)return c}return-1}function rt(t,r,o,f){o=Number(o)||0;let h=t.length-o;f?(f=Number(f))>h&&(f=h):f=h;let c=r.length,g;for(f>c/2&&(f=c/2),g=0;g<f;++g){let S=parseInt(r.substr(2*g,2),16);if(_(S))return g;t[o+g]=S}return g}function K(t,r,o,f){return l(s(r,t.length-o),t,o,f)}function G(t,r,o,f){return l(function(h){let c=[];for(let g=0;g<h.length;++g)c.push(255&h.charCodeAt(g));return c}(r),t,o,f)}function bt(t,r,o,f){return l(p(r),t,o,f)}function mt(t,r,o,f){return l(function(h,c){let g,S,$,F=[];for(let j=0;j<h.length&&!((c-=2)<0);++j)g=h.charCodeAt(j),S=g>>8,$=g%256,F.push($),F.push(S);return F}(r,t.length-o),t,o,f)}function pt(t,r,o){return r===0&&o===t.length?w.fromByteArray(t):w.fromByteArray(t.slice(r,o))}function ut(t,r,o){o=Math.min(t.length,o);let f=[],h=r;for(;h<o;){let c=t[h],g=null,S=c>239?4:c>223?3:c>191?2:1;if(h+S<=o){let $,F,j,q;switch(S){case 1:c<128&&(g=c);break;case 2:(192&($=t[h+1]))==128&&(q=(31&c)<<6|63&$)>127&&(g=q);break;case 3:$=t[h+1],F=t[h+2],(192&$)==128&&(192&F)==128&&(q=(15&c)<<12|(63&$)<<6|63&F)>2047&&(q<55296||q>57343)&&(g=q);break;case 4:$=t[h+1],F=t[h+2],j=t[h+3],(192&$)==128&&(192&F)==128&&(192&j)==128&&(q=(15&c)<<18|(63&$)<<12|(63&F)<<6|63&j)>65535&&q<1114112&&(g=q)}}g===null?(g=65533,S=1):g>65535&&(g-=65536,f.push(g>>>10&1023|55296),g=56320|1023&g),f.push(g),h+=S}return function(c){let g=c.length;if(g<=gt)return String.fromCharCode.apply(String,c);let S="",$=0;for(;$<g;)S+=String.fromCharCode.apply(String,c.slice($,$+=gt));return S}(f)}I.kMaxLength=E,u.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}(),u.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,o){return M(t,r,o)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,o){return function(f,h,c){return d(f),f<=0?a(f):h!==void 0?typeof c=="string"?a(f).fill(h,c):a(f).fill(h):a(f)}(t,r,o)},u.allocUnsafe=function(t){return b(t)},u.allocUnsafeSlow=function(t){return b(t)},u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype},u.compare=function(t,r){if(v(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),v(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let o=t.length,f=r.length;for(let h=0,c=Math.min(o,f);h<c;++h)if(t[h]!==r[h]){o=t[h],f=r[h];break}return o<f?-1:f<o?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);let o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;let f=u.allocUnsafe(r),h=0;for(o=0;o<t.length;++o){let c=t[o];if(v(c,Uint8Array))h+c.length>f.length?(u.isBuffer(c)||(c=u.from(c)),c.copy(f,h)):Uint8Array.prototype.set.call(f,c,h);else{if(!u.isBuffer(c))throw new TypeError('"list" argument must be an Array of Buffers');c.copy(f,h)}h+=c.length}return f},u.byteLength=T,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)R(this,r,r+1);return this},u.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)R(this,r,r+3),R(this,r+1,r+2);return this},u.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)R(this,r,r+7),R(this,r+1,r+6),R(this,r+2,r+5),R(this,r+3,r+4);return this},u.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?ut(this,0,t):function(r,o,f){let h=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(o>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return Bt(this,o,f);case"utf8":case"utf-8":return ut(this,o,f);case"ascii":return vt(this,o,f);case"latin1":case"binary":return Et(this,o,f);case"base64":return pt(this,o,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,o,f);default:if(h)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),h=!0}}.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||u.compare(this,t)===0},u.prototype.inspect=function(){let t="",r=I.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},O&&(u.prototype[O]=u.prototype.inspect),u.prototype.compare=function(t,r,o,f,h){if(v(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),f===void 0&&(f=0),h===void 0&&(h=this.length),r<0||o>t.length||f<0||h>this.length)throw new RangeError("out of range index");if(f>=h&&r>=o)return 0;if(f>=h)return-1;if(r>=o)return 1;if(this===t)return 0;let c=(h>>>=0)-(f>>>=0),g=(o>>>=0)-(r>>>=0),S=Math.min(c,g),$=this.slice(f,h),F=t.slice(r,o);for(let j=0;j<S;++j)if($[j]!==F[j]){c=$[j],g=F[j];break}return c<g?-1:g<c?1:0},u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1},u.prototype.indexOf=function(t,r,o){return D(this,t,r,o,!0)},u.prototype.lastIndexOf=function(t,r,o){return D(this,t,r,o,!1)},u.prototype.write=function(t,r,o,f){if(r===void 0)f="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")f=r,o=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r>>>=0,isFinite(o)?(o>>>=0,f===void 0&&(f="utf8")):(f=o,o=void 0)}let h=this.length-r;if((o===void 0||o>h)&&(o=h),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");let c=!1;for(;;)switch(f){case"hex":return rt(this,t,r,o);case"utf8":case"utf-8":return K(this,t,r,o);case"ascii":case"latin1":case"binary":return G(this,t,r,o);case"base64":return bt(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,t,r,o);default:if(c)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),c=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let gt=4096;function vt(t,r,o){let f="";o=Math.min(t.length,o);for(let h=r;h<o;++h)f+=String.fromCharCode(127&t[h]);return f}function Et(t,r,o){let f="";o=Math.min(t.length,o);for(let h=r;h<o;++h)f+=String.fromCharCode(t[h]);return f}function Bt(t,r,o){let f=t.length;(!r||r<0)&&(r=0),(!o||o<0||o>f)&&(o=f);let h="";for(let c=r;c<o;++c)h+=P[t[c]];return h}function z(t,r,o){let f=t.slice(r,o),h="";for(let c=0;c<f.length-1;c+=2)h+=String.fromCharCode(f[c]+256*f[c+1]);return h}function N(t,r,o){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>o)throw new RangeError("Trying to access beyond buffer length")}function Y(t,r,o,f,h,c){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>h||r<c)throw new RangeError('"value" argument is out of bounds');if(o+f>t.length)throw new RangeError("Index out of range")}function st(t,r,o,f,h){ot(r,f,h,t,o,7);let c=Number(r&BigInt(4294967295));t[o++]=c,c>>=8,t[o++]=c,c>>=8,t[o++]=c,c>>=8,t[o++]=c;let g=Number(r>>BigInt(32)&BigInt(4294967295));return t[o++]=g,g>>=8,t[o++]=g,g>>=8,t[o++]=g,g>>=8,t[o++]=g,o}function ht(t,r,o,f,h){ot(r,f,h,t,o,7);let c=Number(r&BigInt(4294967295));t[o+7]=c,c>>=8,t[o+6]=c,c>>=8,t[o+5]=c,c>>=8,t[o+4]=c;let g=Number(r>>BigInt(32)&BigInt(4294967295));return t[o+3]=g,g>>=8,t[o+2]=g,g>>=8,t[o+1]=g,g>>=8,t[o]=g,o+8}function yt(t,r,o,f,h,c){if(o+f>t.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function wt(t,r,o,f,h){return r=+r,o>>>=0,h||yt(t,0,o,4),x.write(t,r,o,f,23,4),o+4}function nt(t,r,o,f,h){return r=+r,o>>>=0,h||yt(t,0,o,8),x.write(t,r,o,f,52,8),o+8}u.prototype.slice=function(t,r){let o=this.length;(t=~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),(r=r===void 0?o:~~r)<0?(r+=o)<0&&(r=0):r>o&&(r=o),r<t&&(r=t);let f=this.subarray(t,r);return Object.setPrototypeOf(f,u.prototype),f},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t>>>=0,r>>>=0,o||N(t,r,this.length);let f=this[t],h=1,c=0;for(;++c<r&&(h*=256);)f+=this[t+c]*h;return f},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t>>>=0,r>>>=0,o||N(t,r,this.length);let f=this[t+--r],h=1;for(;r>0&&(h*=256);)f+=this[t+--r]*h;return f},u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t>>>=0,r||N(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=k(function(t){e(t>>>=0,"offset");let r=this[t],o=this[t+7];r!==void 0&&o!==void 0||n(t,this.length-8);let f=r+256*this[++t]+65536*this[++t]+this[++t]*2**24,h=this[++t]+256*this[++t]+65536*this[++t]+o*2**24;return BigInt(f)+(BigInt(h)<<BigInt(32))}),u.prototype.readBigUInt64BE=k(function(t){e(t>>>=0,"offset");let r=this[t],o=this[t+7];r!==void 0&&o!==void 0||n(t,this.length-8);let f=r*2**24+65536*this[++t]+256*this[++t]+this[++t],h=this[++t]*2**24+65536*this[++t]+256*this[++t]+o;return(BigInt(f)<<BigInt(32))+BigInt(h)}),u.prototype.readIntLE=function(t,r,o){t>>>=0,r>>>=0,o||N(t,r,this.length);let f=this[t],h=1,c=0;for(;++c<r&&(h*=256);)f+=this[t+c]*h;return f>=(h*=128)&&(f-=Math.pow(2,8*r)),f},u.prototype.readIntBE=function(t,r,o){t>>>=0,r>>>=0,o||N(t,r,this.length);let f=r,h=1,c=this[t+--f];for(;f>0&&(h*=256);)c+=this[t+--f]*h;return c>=(h*=128)&&(c-=Math.pow(2,8*r)),c},u.prototype.readInt8=function(t,r){return t>>>=0,r||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||N(t,2,this.length);let o=this[t]|this[t+1]<<8;return 32768&o?4294901760|o:o},u.prototype.readInt16BE=function(t,r){t>>>=0,r||N(t,2,this.length);let o=this[t+1]|this[t]<<8;return 32768&o?4294901760|o:o},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=k(function(t){e(t>>>=0,"offset");let r=this[t],o=this[t+7];r!==void 0&&o!==void 0||n(t,this.length-8);let f=this[t+4]+256*this[t+5]+65536*this[t+6]+(o<<24);return(BigInt(f)<<BigInt(32))+BigInt(r+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),u.prototype.readBigInt64BE=k(function(t){e(t>>>=0,"offset");let r=this[t],o=this[t+7];r!==void 0&&o!==void 0||n(t,this.length-8);let f=(r<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(f)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+o)}),u.prototype.readFloatLE=function(t,r){return t>>>=0,r||N(t,4,this.length),x.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||N(t,4,this.length),x.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||N(t,8,this.length),x.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||N(t,8,this.length),x.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,f){t=+t,r>>>=0,o>>>=0,!f&&Y(this,t,r,o,Math.pow(2,8*o)-1,0);let h=1,c=0;for(this[r]=255&t;++c<o&&(h*=256);)this[r+c]=t/h&255;return r+o},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,f){t=+t,r>>>=0,o>>>=0,!f&&Y(this,t,r,o,Math.pow(2,8*o)-1,0);let h=o-1,c=1;for(this[r+h]=255&t;--h>=0&&(c*=256);)this[r+h]=t/c&255;return r+o},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeBigUInt64LE=k(function(t,r=0){return st(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=k(function(t,r=0){return ht(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,r,o,f){if(t=+t,r>>>=0,!f){let S=Math.pow(2,8*o-1);Y(this,t,r,o,S-1,-S)}let h=0,c=1,g=0;for(this[r]=255&t;++h<o&&(c*=256);)t<0&&g===0&&this[r+h-1]!==0&&(g=1),this[r+h]=(t/c>>0)-g&255;return r+o},u.prototype.writeIntBE=function(t,r,o,f){if(t=+t,r>>>=0,!f){let S=Math.pow(2,8*o-1);Y(this,t,r,o,S-1,-S)}let h=o-1,c=1,g=0;for(this[r+h]=255&t;--h>=0&&(c*=256);)t<0&&g===0&&this[r+h+1]!==0&&(g=1),this[r+h]=(t/c>>0)-g&255;return r+o},u.prototype.writeInt8=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,o){return t=+t,r>>>=0,o||Y(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeBigInt64LE=k(function(t,r=0){return st(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=k(function(t,r=0){return ht(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(t,r,o){return wt(this,t,r,!0,o)},u.prototype.writeFloatBE=function(t,r,o){return wt(this,t,r,!1,o)},u.prototype.writeDoubleLE=function(t,r,o){return nt(this,t,r,!0,o)},u.prototype.writeDoubleBE=function(t,r,o){return nt(this,t,r,!1,o)},u.prototype.copy=function(t,r,o,f){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),f||f===0||(f=this.length),r>=t.length&&(r=t.length),r||(r=0),f>0&&f<o&&(f=o),f===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),t.length-r<f-o&&(f=t.length-r+o);let h=f-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,f):Uint8Array.prototype.set.call(t,this.subarray(o,f),r),h},u.prototype.fill=function(t,r,o,f){if(typeof t=="string"){if(typeof r=="string"?(f=r,r=0,o=this.length):typeof o=="string"&&(f=o,o=this.length),f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!u.isEncoding(f))throw new TypeError("Unknown encoding: "+f);if(t.length===1){let c=t.charCodeAt(0);(f==="utf8"&&c<128||f==="latin1")&&(t=c)}}else typeof t=="number"?t&=255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;let h;if(r>>>=0,o=o===void 0?this.length:o>>>0,t||(t=0),typeof t=="number")for(h=r;h<o;++h)this[h]=t;else{let c=u.isBuffer(t)?t:u.from(t,f),g=c.length;if(g===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(h=0;h<o-r;++h)this[h+r]=c[h%g]}return this};let W={};function H(t,r,o){W[t]=class extends o{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(f){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:f,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function V(t){let r="",o=t.length,f=t[0]==="-"?1:0;for(;o>=f+4;o-=3)r=`_${t.slice(o-3,o)}${r}`;return`${t.slice(0,o)}${r}`}function ot(t,r,o,f,h,c){if(t>o||t<r){let g=typeof r=="bigint"?"n":"",S;throw S=c>3?r===0||r===BigInt(0)?`>= 0${g} and < 2${g} ** ${8*(c+1)}${g}`:`>= -(2${g} ** ${8*(c+1)-1}${g}) and < 2 ** ${8*(c+1)-1}${g}`:`>= ${r}${g} and <= ${o}${g}`,new W.ERR_OUT_OF_RANGE("value",S,t)}(function(g,S,$){e(S,"offset"),g[S]!==void 0&&g[S+$]!==void 0||n(S,g.length-($+1))})(f,h,c)}function e(t,r){if(typeof t!="number")throw new W.ERR_INVALID_ARG_TYPE(r,"number",t)}function n(t,r,o){throw Math.floor(t)!==t?(e(t,o),new W.ERR_OUT_OF_RANGE(o||"offset","an integer",t)):r<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE(o||"offset",`>= ${o?1:0} and <= ${r}`,t)}H("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(t,r){return`The "${t}" argument must be of type number. Received type ${typeof r}`},TypeError),H("ERR_OUT_OF_RANGE",function(t,r,o){let f=`The value of "${t}" is out of range.`,h=o;return Number.isInteger(o)&&Math.abs(o)>2**32?h=V(String(o)):typeof o=="bigint"&&(h=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(h=V(h)),h+="n"),f+=` It must be ${r}. Received ${h}`},RangeError);let i=/[^+\/0-9A-Za-z-_]/g;function s(t,r){let o;r=r||1/0;let f=t.length,h=null,c=[];for(let g=0;g<f;++g){if((o=t.charCodeAt(g))>55295&&o<57344){if(!h){if(o>56319){(r-=3)>-1&&c.push(239,191,189);continue}if(g+1===f){(r-=3)>-1&&c.push(239,191,189);continue}h=o;continue}if(o<56320){(r-=3)>-1&&c.push(239,191,189),h=o;continue}o=65536+(h-55296<<10|o-56320)}else h&&(r-=3)>-1&&c.push(239,191,189);if(h=null,o<128){if((r-=1)<0)break;c.push(o)}else if(o<2048){if((r-=2)<0)break;c.push(o>>6|192,63&o|128)}else if(o<65536){if((r-=3)<0)break;c.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;c.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return c}function p(t){return w.toByteArray(function(r){if((r=(r=r.split("=")[0]).trim().replace(i,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(t))}function l(t,r,o,f){let h;for(h=0;h<f&&!(h+o>=r.length||h>=t.length);++h)r[h+o]=t[h];return h}function v(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function _(t){return t!=t}let P=function(){let t=new Array(256);for(let r=0;r<16;++r){let o=16*r;for(let f=0;f<16;++f)t[o+f]="0123456789abcdef"[r]+"0123456789abcdef"[f]}return t}();function k(t){return typeof BigInt>"u"?C:t}function C(){throw new Error("BigInt not supported")}}).call(this,m("buffer").Buffer)},{"base64-js":5,buffer:2,ieee754:6}],5:[function(m,A,I){"use strict";I.byteLength=function(d){var b=u(d),y=b[0],B=b[1];return 3*(y+B)/4-B},I.toByteArray=function(d){var b,y,B=u(d),L=B[0],T=B[1],R=new x(function(rt,K,G){return 3*(K+G)/4-G}(0,L,T)),D=0,J=T>0?L-4:L;for(y=0;y<J;y+=4)b=w[d.charCodeAt(y)]<<18|w[d.charCodeAt(y+1)]<<12|w[d.charCodeAt(y+2)]<<6|w[d.charCodeAt(y+3)],R[D++]=b>>16&255,R[D++]=b>>8&255,R[D++]=255&b;return T===2&&(b=w[d.charCodeAt(y)]<<2|w[d.charCodeAt(y+1)]>>4,R[D++]=255&b),T===1&&(b=w[d.charCodeAt(y)]<<10|w[d.charCodeAt(y+1)]<<4|w[d.charCodeAt(y+2)]>>2,R[D++]=b>>8&255,R[D++]=255&b),R},I.fromByteArray=function(d){for(var b,y=d.length,B=y%3,L=[],T=0,R=y-B;T<R;T+=16383)L.push(M(d,T,T+16383>R?R:T+16383));return B===1?(b=d[y-1],L.push(U[b>>2]+U[b<<4&63]+"==")):B===2&&(b=(d[y-2]<<8)+d[y-1],L.push(U[b>>10]+U[b>>4&63]+U[b<<2&63]+"=")),L.join("")};for(var U=[],w=[],x=typeof Uint8Array<"u"?Uint8Array:Array,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,a=O.length;E<a;++E)U[E]=O[E],w[O.charCodeAt(E)]=E;function u(d){var b=d.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");return y===-1&&(y=b),[y,y===b?0:4-y%4]}function M(d,b,y){for(var B,L,T=[],R=b;R<y;R+=3)B=(d[R]<<16&16711680)+(d[R+1]<<8&65280)+(255&d[R+2]),T.push(U[(L=B)>>18&63]+U[L>>12&63]+U[L>>6&63]+U[63&L]);return T.join("")}w["-".charCodeAt(0)]=62,w["_".charCodeAt(0)]=63},{}],6:[function(m,A,I){I.read=function(U,w,x,O,E){var a,u,M=8*E-O-1,d=(1<<M)-1,b=d>>1,y=-7,B=x?E-1:0,L=x?-1:1,T=U[w+B];for(B+=L,a=T&(1<<-y)-1,T>>=-y,y+=M;y>0;a=256*a+U[w+B],B+=L,y-=8);for(u=a&(1<<-y)-1,a>>=-y,y+=O;y>0;u=256*u+U[w+B],B+=L,y-=8);if(a===0)a=1-b;else{if(a===d)return u?NaN:1/0*(T?-1:1);u+=Math.pow(2,O),a-=b}return(T?-1:1)*u*Math.pow(2,a-O)},I.write=function(U,w,x,O,E,a){var u,M,d,b=8*a-E-1,y=(1<<b)-1,B=y>>1,L=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=O?0:a-1,R=O?1:-1,D=w<0||w===0&&1/w<0?1:0;for(w=Math.abs(w),isNaN(w)||w===1/0?(M=isNaN(w)?1:0,u=y):(u=Math.floor(Math.log(w)/Math.LN2),w*(d=Math.pow(2,-u))<1&&(u--,d*=2),(w+=u+B>=1?L/d:L*Math.pow(2,1-B))*d>=2&&(u++,d/=2),u+B>=y?(M=0,u=y):u+B>=1?(M=(w*d-1)*Math.pow(2,E),u+=B):(M=w*Math.pow(2,B-1)*Math.pow(2,E),u=0));E>=8;U[x+T]=255&M,T+=R,M/=256,E-=8);for(u=u<<E|M,b+=E;b>0;U[x+T]=255&u,T+=R,u/=256,b-=8);U[x+T-R]|=128*D}},{}]},{},[4])(4)})});var Ut,lt=Rt(()=>{Ut=Yt(Nt())});ct();lt();var de=async()=>{let m=chrome.runtime.connect({name:"trezor-connect"});m.onMessage.addListener(A=>{window.postMessage(A,window.location.origin)}),m.onDisconnect.addListener(()=>{m=null}),window.addEventListener("message",A=>{A.origin==="https://connect.trezor.io"&&m&&A.source===window&&A.data&&m.postMessage({data:A.data})})};de();})();
|
|
//# sourceMappingURL=trezor.js.map
|