@coinflowlabs/vue 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/coinflow-vue.js +13276 -18657
- package/dist/coinflow-vue.umd.cjs +14 -19
- package/dist/components/CoinflowPurchase.vue.d.ts +43 -0
- package/dist/components/CoinflowWithdraw.vue.d.ts +32 -6
- package/dist/lib/common/CoinflowTypes.d.ts +50 -7
- package/dist/lib/common/CoinflowUtils.d.ts +2 -1
- package/dist/lib/common/types/Subtotal.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
(function(pe,Zt){typeof exports=="object"&&typeof module<"u"?Zt(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],Zt):(pe=typeof globalThis<"u"?globalThis:pe||self,Zt(pe.VueTypeWriter={},pe.Vue))})(this,(function(pe,Zt){"use strict";var Gc=(r=>(r.USER="user",r.BUSINESS="business",r))(Gc||{}),Kc=(r=>(r.ASAP="asap",r.SAME_DAY="same_day",r.STANDARD="standard",r.CARD="card",r.IBAN="iban",r.PIX="pix",r.EFT="eft",r.VENMO="venmo",r.PAYPAL="paypal",r.WIRE="wire",r.INTERAC="interac",r))(Kc||{}),jc=(r=>(r.Credits="Credits",r.USDC="USDC",r.Bank="Bank",r))(jc||{});function oh(r){return"cardToken"in r}function sh(r){return"disableSavedPaymentMethods"in r}var Yc=(r=>(r.Rounded="rounded",r.Sharp="sharp",r.Pill="pill",r))(Yc||{}),qc=(r=>(r.NoPreference="NoPreference",r.Frictionless="Frictionless",r.Challenge="Challenge",r))(qc||{}),Zc=(r=>(r.card="card",r.ach="ach",r.fasterPayments="fasterPayments",r.sepa="sepa",r.pix="pix",r.usdc="usdc",r.googlePay="googlePay",r.applePay="applePay",r.credits="credits",r.crypto="crypto",r.instantBankTransfer="instantBankTransfer",r.wire="wire",r))(Zc||{});const ah={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",instantBankTransfer:"Instant Bank Transfer",wire:"Wire Transfer"};var vi=(r=>(r.VISA="VISA",r.MASTERCARD="MSTR",r.AMEX="AMEX",r.DISCOVER="DISC",r))(vi||{});const ch="rnredirect";function qi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function js(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var n=function e(){var o=!1;try{o=this instanceof e}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var o=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:function(){return r[e]}})}),n}var Ys={},Zi={},$c;function uh(){if($c)return Zi;$c=1,Zi.byteLength=d,Zi.toByteArray=p,Zi.fromByteArray=T;for(var r=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=e.length;o<i;++o)r[o]=e[o],t[e.charCodeAt(o)]=o;t[45]=62,t[95]=63;function c(k){var C=k.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=k.indexOf("=");M===-1&&(M=C);var V=M===C?0:4-M%4;return[M,V]}function d(k){var C=c(k),M=C[0],V=C[1];return(M+V)*3/4-V}function f(k,C,M){return(C+M)*3/4-M}function p(k){var C,M=c(k),V=M[0],G=M[1],J=new n(f(k,V,G)),$=0,nt=G>0?V-4:V,pt;for(pt=0;pt<nt;pt+=4)C=t[k.charCodeAt(pt)]<<18|t[k.charCodeAt(pt+1)]<<12|t[k.charCodeAt(pt+2)]<<6|t[k.charCodeAt(pt+3)],J[$++]=C>>16&255,J[$++]=C>>8&255,J[$++]=C&255;return G===2&&(C=t[k.charCodeAt(pt)]<<2|t[k.charCodeAt(pt+1)]>>4,J[$++]=C&255),G===1&&(C=t[k.charCodeAt(pt)]<<10|t[k.charCodeAt(pt+1)]<<4|t[k.charCodeAt(pt+2)]>>2,J[$++]=C>>8&255,J[$++]=C&255),J}function S(k){return r[k>>18&63]+r[k>>12&63]+r[k>>6&63]+r[k&63]}function x(k,C,M){for(var V,G=[],J=C;J<M;J+=3)V=(k[J]<<16&16711680)+(k[J+1]<<8&65280)+(k[J+2]&255),G.push(S(V));return G.join("")}function T(k){for(var C,M=k.length,V=M%3,G=[],J=16383,$=0,nt=M-V;$<nt;$+=J)G.push(x(k,$,$+J>nt?nt:$+J));return V===1?(C=k[M-1],G.push(r[C>>2]+r[C<<4&63]+"==")):V===2&&(C=(k[M-2]<<8)+k[M-1],G.push(r[C>>10]+r[C>>4&63]+r[C<<2&63]+"=")),G.join("")}return Zi}var Ho={};var Xc;function fh(){return Xc||(Xc=1,Ho.read=function(r,t,n,e,o){var i,c,d=o*8-e-1,f=(1<<d)-1,p=f>>1,S=-7,x=n?o-1:0,T=n?-1:1,k=r[t+x];for(x+=T,i=k&(1<<-S)-1,k>>=-S,S+=d;S>0;i=i*256+r[t+x],x+=T,S-=8);for(c=i&(1<<-S)-1,i>>=-S,S+=e;S>0;c=c*256+r[t+x],x+=T,S-=8);if(i===0)i=1-p;else{if(i===f)return c?NaN:(k?-1:1)*(1/0);c=c+Math.pow(2,e),i=i-p}return(k?-1:1)*c*Math.pow(2,i-e)},Ho.write=function(r,t,n,e,o,i){var c,d,f,p=i*8-o-1,S=(1<<p)-1,x=S>>1,T=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=e?0:i-1,C=e?1:-1,M=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,c=S):(c=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-c))<1&&(c--,f*=2),c+x>=1?t+=T/f:t+=T*Math.pow(2,1-x),t*f>=2&&(c++,f/=2),c+x>=S?(d=0,c=S):c+x>=1?(d=(t*f-1)*Math.pow(2,o),c=c+x):(d=t*Math.pow(2,x-1)*Math.pow(2,o),c=0));o>=8;r[n+k]=d&255,k+=C,d/=256,o-=8);for(c=c<<o|d,p+=o;p>0;r[n+k]=c&255,k+=C,c/=256,p-=8);r[n+k-C]|=M*128}),Ho}var Jc;function qs(){return Jc||(Jc=1,(function(r){const t=uh(),n=fh(),e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=d,r.SlowBuffer=J,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,d.TYPED_ARRAY_SUPPORT=i(),!d.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.");function i(){try{const F=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(F,R),F.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function c(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const R=new Uint8Array(F);return Object.setPrototypeOf(R,d.prototype),R}function d(F,R,N){if(typeof F=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(F)}return f(F,R,N)}d.poolSize=8192;function f(F,R,N){if(typeof F=="string")return T(F,R);if(ArrayBuffer.isView(F))return C(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(yt(F,ArrayBuffer)||F&&yt(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(yt(F,SharedArrayBuffer)||F&&yt(F.buffer,SharedArrayBuffer)))return M(F,R,N);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=F.valueOf&&F.valueOf();if(A!=null&&A!==F)return d.from(A,R,N);const W=V(F);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return d.from(F[Symbol.toPrimitive]("string"),R,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}d.from=function(F,R,N){return f(F,R,N)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function p(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function S(F,R,N){return p(F),F<=0?c(F):R!==void 0?typeof N=="string"?c(F).fill(R,N):c(F).fill(R):c(F)}d.alloc=function(F,R,N){return S(F,R,N)};function x(F){return p(F),c(F<0?0:G(F)|0)}d.allocUnsafe=function(F){return x(F)},d.allocUnsafeSlow=function(F){return x(F)};function T(F,R){if((typeof R!="string"||R==="")&&(R="utf8"),!d.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const N=$(F,R)|0;let A=c(N);const W=A.write(F,R);return W!==N&&(A=A.slice(0,W)),A}function k(F){const R=F.length<0?0:G(F.length)|0,N=c(R);for(let A=0;A<R;A+=1)N[A]=F[A]&255;return N}function C(F){if(yt(F,Uint8Array)){const R=new Uint8Array(F);return M(R.buffer,R.byteOffset,R.byteLength)}return k(F)}function M(F,R,N){if(R<0||F.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<R+(N||0))throw new RangeError('"length" is outside of buffer bounds');let A;return R===void 0&&N===void 0?A=new Uint8Array(F):N===void 0?A=new Uint8Array(F,R):A=new Uint8Array(F,R,N),Object.setPrototypeOf(A,d.prototype),A}function V(F){if(d.isBuffer(F)){const R=G(F.length)|0,N=c(R);return N.length===0||F.copy(N,0,0,R),N}if(F.length!==void 0)return typeof F.length!="number"||bt(F.length)?c(0):k(F);if(F.type==="Buffer"&&Array.isArray(F.data))return k(F.data)}function G(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function J(F){return+F!=F&&(F=0),d.alloc(+F)}d.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==d.prototype},d.compare=function(R,N){if(yt(R,Uint8Array)&&(R=d.from(R,R.offset,R.byteLength)),yt(N,Uint8Array)&&(N=d.from(N,N.offset,N.byteLength)),!d.isBuffer(R)||!d.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===N)return 0;let A=R.length,W=N.length;for(let z=0,ot=Math.min(A,W);z<ot;++z)if(R[z]!==N[z]){A=R[z],W=N[z];break}return A<W?-1:W<A?1:0},d.isEncoding=function(R){switch(String(R).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}},d.concat=function(R,N){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return d.alloc(0);let A;if(N===void 0)for(N=0,A=0;A<R.length;++A)N+=R[A].length;const W=d.allocUnsafe(N);let z=0;for(A=0;A<R.length;++A){let ot=R[A];if(yt(ot,Uint8Array))z+ot.length>W.length?(d.isBuffer(ot)||(ot=d.from(ot)),ot.copy(W,z)):Uint8Array.prototype.set.call(W,ot,z);else if(d.isBuffer(ot))ot.copy(W,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ot.length}return W};function $(F,R){if(d.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||yt(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const N=F.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&N===0)return 0;let W=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return Be(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N*2;case"hex":return N>>>1;case"base64":return H(F).length;default:if(W)return A?-1:Be(F).length;R=(""+R).toLowerCase(),W=!0}}d.byteLength=$;function nt(F,R,N){let A=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((N===void 0||N>this.length)&&(N=this.length),N<=0)||(N>>>=0,R>>>=0,N<=R))return"";for(F||(F="utf8");;)switch(F){case"hex":return et(this,R,N);case"utf8":case"utf-8":return h(this,R,N);case"ascii":return j(this,R,N);case"latin1":case"binary":return X(this,R,N);case"base64":return D(this,R,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,R,N);default:if(A)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),A=!0}}d.prototype._isBuffer=!0;function pt(F,R,N){const A=F[R];F[R]=F[N],F[N]=A}d.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;N<R;N+=2)pt(this,N,N+1);return this},d.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let N=0;N<R;N+=4)pt(this,N,N+3),pt(this,N+1,N+2);return this},d.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let N=0;N<R;N+=8)pt(this,N,N+7),pt(this,N+1,N+6),pt(this,N+2,N+5),pt(this,N+3,N+4);return this},d.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?h(this,0,R):nt.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(R){if(!d.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:d.compare(this,R)===0},d.prototype.inspect=function(){let R="";const N=r.INSPECT_MAX_BYTES;return R=this.toString("hex",0,N).replace(/(.{2})/g,"$1 ").trim(),this.length>N&&(R+=" ... "),"<Buffer "+R+">"},e&&(d.prototype[e]=d.prototype.inspect),d.prototype.compare=function(R,N,A,W,z){if(yt(R,Uint8Array)&&(R=d.from(R,R.offset,R.byteLength)),!d.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(N===void 0&&(N=0),A===void 0&&(A=R?R.length:0),W===void 0&&(W=0),z===void 0&&(z=this.length),N<0||A>R.length||W<0||z>this.length)throw new RangeError("out of range index");if(W>=z&&N>=A)return 0;if(W>=z)return-1;if(N>=A)return 1;if(N>>>=0,A>>>=0,W>>>=0,z>>>=0,this===R)return 0;let ot=z-W,Ct=A-N;const Lt=Math.min(ot,Ct),Mt=this.slice(W,z),Pt=R.slice(N,A);for(let it=0;it<Lt;++it)if(Mt[it]!==Pt[it]){ot=Mt[it],Ct=Pt[it];break}return ot<Ct?-1:Ct<ot?1:0};function lt(F,R,N,A,W){if(F.length===0)return-1;if(typeof N=="string"?(A=N,N=0):N>2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),N=+N,bt(N)&&(N=W?0:F.length-1),N<0&&(N=F.length+N),N>=F.length){if(W)return-1;N=F.length-1}else if(N<0)if(W)N=0;else return-1;if(typeof R=="string"&&(R=d.from(R,A)),d.isBuffer(R))return R.length===0?-1:St(F,R,N,A,W);if(typeof R=="number")return R=R&255,typeof Uint8Array.prototype.indexOf=="function"?W?Uint8Array.prototype.indexOf.call(F,R,N):Uint8Array.prototype.lastIndexOf.call(F,R,N):St(F,[R],N,A,W);throw new TypeError("val must be string, number or Buffer")}function St(F,R,N,A,W){let z=1,ot=F.length,Ct=R.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(F.length<2||R.length<2)return-1;z=2,ot/=2,Ct/=2,N/=2}function Lt(Pt,it){return z===1?Pt[it]:Pt.readUInt16BE(it*z)}let Mt;if(W){let Pt=-1;for(Mt=N;Mt<ot;Mt++)if(Lt(F,Mt)===Lt(R,Pt===-1?0:Mt-Pt)){if(Pt===-1&&(Pt=Mt),Mt-Pt+1===Ct)return Pt*z}else Pt!==-1&&(Mt-=Mt-Pt),Pt=-1}else for(N+Ct>ot&&(N=ot-Ct),Mt=N;Mt>=0;Mt--){let Pt=!0;for(let it=0;it<Ct;it++)if(Lt(F,Mt+it)!==Lt(R,it)){Pt=!1;break}if(Pt)return Mt}return-1}d.prototype.includes=function(R,N,A){return this.indexOf(R,N,A)!==-1},d.prototype.indexOf=function(R,N,A){return lt(this,R,N,A,!0)},d.prototype.lastIndexOf=function(R,N,A){return lt(this,R,N,A,!1)};function At(F,R,N,A){N=Number(N)||0;const W=F.length-N;A?(A=Number(A),A>W&&(A=W)):A=W;const z=R.length;A>z/2&&(A=z/2);let ot;for(ot=0;ot<A;++ot){const Ct=parseInt(R.substr(ot*2,2),16);if(bt(Ct))return ot;F[N+ot]=Ct}return ot}function st(F,R,N,A){return ft(Be(R,F.length-N),F,N,A)}function dt(F,R,N,A){return ft(y(R),F,N,A)}function vt(F,R,N,A){return ft(H(R),F,N,A)}function wt(F,R,N,A){return ft(P(R,F.length-N),F,N,A)}d.prototype.write=function(R,N,A,W){if(N===void 0)W="utf8",A=this.length,N=0;else if(A===void 0&&typeof N=="string")W=N,A=this.length,N=0;else if(isFinite(N))N=N>>>0,isFinite(A)?(A=A>>>0,W===void 0&&(W="utf8")):(W=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-N;if((A===void 0||A>z)&&(A=z),R.length>0&&(A<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let ot=!1;for(;;)switch(W){case"hex":return At(this,R,N,A);case"utf8":case"utf-8":return st(this,R,N,A);case"ascii":case"latin1":case"binary":return dt(this,R,N,A);case"base64":return vt(this,R,N,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,R,N,A);default:if(ot)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),ot=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(F,R,N){return R===0&&N===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(R,N))}function h(F,R,N){N=Math.min(F.length,N);const A=[];let W=R;for(;W<N;){const z=F[W];let ot=null,Ct=z>239?4:z>223?3:z>191?2:1;if(W+Ct<=N){let Lt,Mt,Pt,it;switch(Ct){case 1:z<128&&(ot=z);break;case 2:Lt=F[W+1],(Lt&192)===128&&(it=(z&31)<<6|Lt&63,it>127&&(ot=it));break;case 3:Lt=F[W+1],Mt=F[W+2],(Lt&192)===128&&(Mt&192)===128&&(it=(z&15)<<12|(Lt&63)<<6|Mt&63,it>2047&&(it<55296||it>57343)&&(ot=it));break;case 4:Lt=F[W+1],Mt=F[W+2],Pt=F[W+3],(Lt&192)===128&&(Mt&192)===128&&(Pt&192)===128&&(it=(z&15)<<18|(Lt&63)<<12|(Mt&63)<<6|Pt&63,it>65535&&it<1114112&&(ot=it))}}ot===null?(ot=65533,Ct=1):ot>65535&&(ot-=65536,A.push(ot>>>10&1023|55296),ot=56320|ot&1023),A.push(ot),W+=Ct}return U(A)}const I=4096;function U(F){const R=F.length;if(R<=I)return String.fromCharCode.apply(String,F);let N="",A=0;for(;A<R;)N+=String.fromCharCode.apply(String,F.slice(A,A+=I));return N}function j(F,R,N){let A="";N=Math.min(F.length,N);for(let W=R;W<N;++W)A+=String.fromCharCode(F[W]&127);return A}function X(F,R,N){let A="";N=Math.min(F.length,N);for(let W=R;W<N;++W)A+=String.fromCharCode(F[W]);return A}function et(F,R,N){const A=F.length;(!R||R<0)&&(R=0),(!N||N<0||N>A)&&(N=A);let W="";for(let z=R;z<N;++z)W+=xt[F[z]];return W}function ut(F,R,N){const A=F.slice(R,N);let W="";for(let z=0;z<A.length-1;z+=2)W+=String.fromCharCode(A[z]+A[z+1]*256);return W}d.prototype.slice=function(R,N){const A=this.length;R=~~R,N=N===void 0?A:~~N,R<0?(R+=A,R<0&&(R=0)):R>A&&(R=A),N<0?(N+=A,N<0&&(N=0)):N>A&&(N=A),N<R&&(N=R);const W=this.subarray(R,N);return Object.setPrototypeOf(W,d.prototype),W};function Y(F,R,N){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+R>N)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(R,N,A){R=R>>>0,N=N>>>0,A||Y(R,N,this.length);let W=this[R],z=1,ot=0;for(;++ot<N&&(z*=256);)W+=this[R+ot]*z;return W},d.prototype.readUintBE=d.prototype.readUIntBE=function(R,N,A){R=R>>>0,N=N>>>0,A||Y(R,N,this.length);let W=this[R+--N],z=1;for(;N>0&&(z*=256);)W+=this[R+--N]*z;return W},d.prototype.readUint8=d.prototype.readUInt8=function(R,N){return R=R>>>0,N||Y(R,1,this.length),this[R]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(R,N){return R=R>>>0,N||Y(R,2,this.length),this[R]|this[R+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(R,N){return R=R>>>0,N||Y(R,2,this.length),this[R]<<8|this[R+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(R,N){return R=R>>>0,N||Y(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(R,N){return R=R>>>0,N||Y(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},d.prototype.readBigUInt64LE=zt(function(R){R=R>>>0,Ne(R,"offset");const N=this[R],A=this[R+7];(N===void 0||A===void 0)&&Oe(R,this.length-8);const W=N+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,z=this[++R]+this[++R]*2**8+this[++R]*2**16+A*2**24;return BigInt(W)+(BigInt(z)<<BigInt(32))}),d.prototype.readBigUInt64BE=zt(function(R){R=R>>>0,Ne(R,"offset");const N=this[R],A=this[R+7];(N===void 0||A===void 0)&&Oe(R,this.length-8);const W=N*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],z=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A;return(BigInt(W)<<BigInt(32))+BigInt(z)}),d.prototype.readIntLE=function(R,N,A){R=R>>>0,N=N>>>0,A||Y(R,N,this.length);let W=this[R],z=1,ot=0;for(;++ot<N&&(z*=256);)W+=this[R+ot]*z;return z*=128,W>=z&&(W-=Math.pow(2,8*N)),W},d.prototype.readIntBE=function(R,N,A){R=R>>>0,N=N>>>0,A||Y(R,N,this.length);let W=N,z=1,ot=this[R+--W];for(;W>0&&(z*=256);)ot+=this[R+--W]*z;return z*=128,ot>=z&&(ot-=Math.pow(2,8*N)),ot},d.prototype.readInt8=function(R,N){return R=R>>>0,N||Y(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},d.prototype.readInt16LE=function(R,N){R=R>>>0,N||Y(R,2,this.length);const A=this[R]|this[R+1]<<8;return A&32768?A|4294901760:A},d.prototype.readInt16BE=function(R,N){R=R>>>0,N||Y(R,2,this.length);const A=this[R+1]|this[R]<<8;return A&32768?A|4294901760:A},d.prototype.readInt32LE=function(R,N){return R=R>>>0,N||Y(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},d.prototype.readInt32BE=function(R,N){return R=R>>>0,N||Y(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},d.prototype.readBigInt64LE=zt(function(R){R=R>>>0,Ne(R,"offset");const N=this[R],A=this[R+7];(N===void 0||A===void 0)&&Oe(R,this.length-8);const W=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(A<<24);return(BigInt(W)<<BigInt(32))+BigInt(N+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),d.prototype.readBigInt64BE=zt(function(R){R=R>>>0,Ne(R,"offset");const N=this[R],A=this[R+7];(N===void 0||A===void 0)&&Oe(R,this.length-8);const W=(N<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(W)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A)}),d.prototype.readFloatLE=function(R,N){return R=R>>>0,N||Y(R,4,this.length),n.read(this,R,!0,23,4)},d.prototype.readFloatBE=function(R,N){return R=R>>>0,N||Y(R,4,this.length),n.read(this,R,!1,23,4)},d.prototype.readDoubleLE=function(R,N){return R=R>>>0,N||Y(R,8,this.length),n.read(this,R,!0,52,8)},d.prototype.readDoubleBE=function(R,N){return R=R>>>0,N||Y(R,8,this.length),n.read(this,R,!1,52,8)};function g(F,R,N,A,W,z){if(!d.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>W||R<z)throw new RangeError('"value" argument is out of bounds');if(N+A>F.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(R,N,A,W){if(R=+R,N=N>>>0,A=A>>>0,!W){const Ct=Math.pow(2,8*A)-1;g(this,R,N,A,Ct,0)}let z=1,ot=0;for(this[N]=R&255;++ot<A&&(z*=256);)this[N+ot]=R/z&255;return N+A},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(R,N,A,W){if(R=+R,N=N>>>0,A=A>>>0,!W){const Ct=Math.pow(2,8*A)-1;g(this,R,N,A,Ct,0)}let z=A-1,ot=1;for(this[N+z]=R&255;--z>=0&&(ot*=256);)this[N+z]=R/ot&255;return N+A},d.prototype.writeUint8=d.prototype.writeUInt8=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,1,255,0),this[N]=R&255,N+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,2,65535,0),this[N]=R&255,this[N+1]=R>>>8,N+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,2,65535,0),this[N]=R>>>8,this[N+1]=R&255,N+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,4,4294967295,0),this[N+3]=R>>>24,this[N+2]=R>>>16,this[N+1]=R>>>8,this[N]=R&255,N+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,4,4294967295,0),this[N]=R>>>24,this[N+1]=R>>>16,this[N+2]=R>>>8,this[N+3]=R&255,N+4};function E(F,R,N,A,W){jt(R,A,W,F,N,7);let z=Number(R&BigInt(4294967295));F[N++]=z,z=z>>8,F[N++]=z,z=z>>8,F[N++]=z,z=z>>8,F[N++]=z;let ot=Number(R>>BigInt(32)&BigInt(4294967295));return F[N++]=ot,ot=ot>>8,F[N++]=ot,ot=ot>>8,F[N++]=ot,ot=ot>>8,F[N++]=ot,N}function K(F,R,N,A,W){jt(R,A,W,F,N,7);let z=Number(R&BigInt(4294967295));F[N+7]=z,z=z>>8,F[N+6]=z,z=z>>8,F[N+5]=z,z=z>>8,F[N+4]=z;let ot=Number(R>>BigInt(32)&BigInt(4294967295));return F[N+3]=ot,ot=ot>>8,F[N+2]=ot,ot=ot>>8,F[N+1]=ot,ot=ot>>8,F[N]=ot,N+8}d.prototype.writeBigUInt64LE=zt(function(R,N=0){return E(this,R,N,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=zt(function(R,N=0){return K(this,R,N,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(R,N,A,W){if(R=+R,N=N>>>0,!W){const Lt=Math.pow(2,8*A-1);g(this,R,N,A,Lt-1,-Lt)}let z=0,ot=1,Ct=0;for(this[N]=R&255;++z<A&&(ot*=256);)R<0&&Ct===0&&this[N+z-1]!==0&&(Ct=1),this[N+z]=(R/ot>>0)-Ct&255;return N+A},d.prototype.writeIntBE=function(R,N,A,W){if(R=+R,N=N>>>0,!W){const Lt=Math.pow(2,8*A-1);g(this,R,N,A,Lt-1,-Lt)}let z=A-1,ot=1,Ct=0;for(this[N+z]=R&255;--z>=0&&(ot*=256);)R<0&&Ct===0&&this[N+z+1]!==0&&(Ct=1),this[N+z]=(R/ot>>0)-Ct&255;return N+A},d.prototype.writeInt8=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,1,127,-128),R<0&&(R=255+R+1),this[N]=R&255,N+1},d.prototype.writeInt16LE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,2,32767,-32768),this[N]=R&255,this[N+1]=R>>>8,N+2},d.prototype.writeInt16BE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,2,32767,-32768),this[N]=R>>>8,this[N+1]=R&255,N+2},d.prototype.writeInt32LE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,4,2147483647,-2147483648),this[N]=R&255,this[N+1]=R>>>8,this[N+2]=R>>>16,this[N+3]=R>>>24,N+4},d.prototype.writeInt32BE=function(R,N,A){return R=+R,N=N>>>0,A||g(this,R,N,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[N]=R>>>24,this[N+1]=R>>>16,this[N+2]=R>>>8,this[N+3]=R&255,N+4},d.prototype.writeBigInt64LE=zt(function(R,N=0){return E(this,R,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=zt(function(R,N=0){return K(this,R,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(F,R,N,A,W,z){if(N+A>F.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function ht(F,R,N,A,W){return R=+R,N=N>>>0,W||Z(F,R,N,4),n.write(F,R,N,A,23,4),N+4}d.prototype.writeFloatLE=function(R,N,A){return ht(this,R,N,!0,A)},d.prototype.writeFloatBE=function(R,N,A){return ht(this,R,N,!1,A)};function It(F,R,N,A,W){return R=+R,N=N>>>0,W||Z(F,R,N,8),n.write(F,R,N,A,52,8),N+8}d.prototype.writeDoubleLE=function(R,N,A){return It(this,R,N,!0,A)},d.prototype.writeDoubleBE=function(R,N,A){return It(this,R,N,!1,A)},d.prototype.copy=function(R,N,A,W){if(!d.isBuffer(R))throw new TypeError("argument should be a Buffer");if(A||(A=0),!W&&W!==0&&(W=this.length),N>=R.length&&(N=R.length),N||(N=0),W>0&&W<A&&(W=A),W===A||R.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),R.length-N<W-A&&(W=R.length-N+A);const z=W-A;return this===R&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(N,A,W):Uint8Array.prototype.set.call(R,this.subarray(A,W),N),z},d.prototype.fill=function(R,N,A,W){if(typeof R=="string"){if(typeof N=="string"?(W=N,N=0,A=this.length):typeof A=="string"&&(W=A,A=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!d.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(R.length===1){const ot=R.charCodeAt(0);(W==="utf8"&&ot<128||W==="latin1")&&(R=ot)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(N<0||this.length<N||this.length<A)throw new RangeError("Out of range index");if(A<=N)return this;N=N>>>0,A=A===void 0?this.length:A>>>0,R||(R=0);let z;if(typeof R=="number")for(z=N;z<A;++z)this[z]=R;else{const ot=d.isBuffer(R)?R:d.from(R,W),Ct=ot.length;if(Ct===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(z=0;z<A-N;++z)this[z+N]=ot[z%Ct]}return this};const Ft={};function Kt(F,R,N){Ft[F]=class extends N{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}Kt("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Kt("ERR_INVALID_ARG_TYPE",function(F,R){return`The "${F}" argument must be of type number. Received type ${typeof R}`},TypeError),Kt("ERR_OUT_OF_RANGE",function(F,R,N){let A=`The value of "${F}" is out of range.`,W=N;return Number.isInteger(N)&&Math.abs(N)>2**32?W=me(String(N)):typeof N=="bigint"&&(W=String(N),(N>BigInt(2)**BigInt(32)||N<-(BigInt(2)**BigInt(32)))&&(W=me(W)),W+="n"),A+=` It must be ${R}. Received ${W}`,A},RangeError);function me(F){let R="",N=F.length;const A=F[0]==="-"?1:0;for(;N>=A+4;N-=3)R=`_${F.slice(N-3,N)}${R}`;return`${F.slice(0,N)}${R}`}function Ee(F,R,N){Ne(R,"offset"),(F[R]===void 0||F[R+N]===void 0)&&Oe(R,F.length-(N+1))}function jt(F,R,N,A,W,z){if(F>N||F<R){const ot=typeof R=="bigint"?"n":"";let Ct;throw R===0||R===BigInt(0)?Ct=`>= 0${ot} and < 2${ot} ** ${(z+1)*8}${ot}`:Ct=`>= -(2${ot} ** ${(z+1)*8-1}${ot}) and < 2 ** ${(z+1)*8-1}${ot}`,new Ft.ERR_OUT_OF_RANGE("value",Ct,F)}Ee(A,W,z)}function Ne(F,R){if(typeof F!="number")throw new Ft.ERR_INVALID_ARG_TYPE(R,"number",F)}function Oe(F,R,N){throw Math.floor(F)!==F?(Ne(F,N),new Ft.ERR_OUT_OF_RANGE("offset","an integer",F)):R<0?new Ft.ERR_BUFFER_OUT_OF_BOUNDS:new Ft.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,F)}const Ie=/[^+/0-9A-Za-z-_]/g;function en(F){if(F=F.split("=")[0],F=F.trim().replace(Ie,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function Be(F,R){R=R||1/0;let N;const A=F.length;let W=null;const z=[];for(let ot=0;ot<A;++ot){if(N=F.charCodeAt(ot),N>55295&&N<57344){if(!W){if(N>56319){(R-=3)>-1&&z.push(239,191,189);continue}else if(ot+1===A){(R-=3)>-1&&z.push(239,191,189);continue}W=N;continue}if(N<56320){(R-=3)>-1&&z.push(239,191,189),W=N;continue}N=(W-55296<<10|N-56320)+65536}else W&&(R-=3)>-1&&z.push(239,191,189);if(W=null,N<128){if((R-=1)<0)break;z.push(N)}else if(N<2048){if((R-=2)<0)break;z.push(N>>6|192,N&63|128)}else if(N<65536){if((R-=3)<0)break;z.push(N>>12|224,N>>6&63|128,N&63|128)}else if(N<1114112){if((R-=4)<0)break;z.push(N>>18|240,N>>12&63|128,N>>6&63|128,N&63|128)}else throw new Error("Invalid code point")}return z}function y(F){const R=[];for(let N=0;N<F.length;++N)R.push(F.charCodeAt(N)&255);return R}function P(F,R){let N,A,W;const z=[];for(let ot=0;ot<F.length&&!((R-=2)<0);++ot)N=F.charCodeAt(ot),A=N>>8,W=N%256,z.push(W),z.push(A);return z}function H(F){return t.toByteArray(en(F))}function ft(F,R,N,A){let W;for(W=0;W<A&&!(W+N>=R.length||W>=F.length);++W)R[W+N]=F[W];return W}function yt(F,R){return F instanceof R||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===R.name}function bt(F){return F!==F}const xt=(function(){const F="0123456789abcdef",R=new Array(256);for(let N=0;N<16;++N){const A=N*16;for(let W=0;W<16;++W)R[A+W]=F[N]+F[W]}return R})();function zt(F){return typeof BigInt>"u"?ie:F}function ie(){throw new Error("BigInt not supported")}})(Ys)),Ys}var ge=qs();const yi=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function $i(r){return r instanceof Uint8Array||ArrayBuffer.isView(r)&&r.constructor.name==="Uint8Array"}function Xi(r){if(!Number.isSafeInteger(r)||r<0)throw new Error("positive integer expected, got "+r)}function br(r,...t){if(!$i(r))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(r.length))throw new Error("Uint8Array expected of length "+t+", got length="+r.length)}function Qc(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Xi(r.outputLen),Xi(r.blockLen)}function wi(r,t=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(t&&r.finished)throw new Error("Hash#digest() has already been called")}function tu(r,t){br(r);const n=t.outputLen;if(r.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function lh(r){return new Uint32Array(r.buffer,r.byteOffset,Math.floor(r.byteLength/4))}function Lr(...r){for(let t=0;t<r.length;t++)r[t].fill(0)}function Zs(r){return new DataView(r.buffer,r.byteOffset,r.byteLength)}function or(r,t){return r<<32-t|r>>>t}const dh=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function hh(r){return r<<24&4278190080|r<<8&16711680|r>>>8&65280|r>>>24&255}function ph(r){for(let t=0;t<r.length;t++)r[t]=hh(r[t]);return r}const eu=dh?r=>r:ph,nu=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",gh=Array.from({length:256},(r,t)=>t.toString(16).padStart(2,"0"));function Jr(r){if(br(r),nu)return r.toHex();let t="";for(let n=0;n<r.length;n++)t+=gh[r[n]];return t}const _r={_0:48,_9:57,A:65,F:70,a:97,f:102};function ru(r){if(r>=_r._0&&r<=_r._9)return r-_r._0;if(r>=_r.A&&r<=_r.F)return r-(_r.A-10);if(r>=_r.a&&r<=_r.f)return r-(_r.a-10)}function Wo(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);if(nu)return Uint8Array.fromHex(r);const t=r.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const e=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){const c=ru(r.charCodeAt(i)),d=ru(r.charCodeAt(i+1));if(c===void 0||d===void 0){const f=r[i]+r[i+1];throw new Error('hex string expected, got non-hex character "'+f+'" at index '+i)}e[o]=c*16+d}return e}function mh(r){if(typeof r!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(r))}function zo(r){return typeof r=="string"&&(r=mh(r)),br(r),r}function sr(...r){let t=0;for(let e=0;e<r.length;e++){const o=r[e];br(o),t+=o.length}const n=new Uint8Array(t);for(let e=0,o=0;e<r.length;e++){const i=r[e];n.set(i,o),o+=i.length}return n}class $s{}function Xs(r){const t=e=>r().update(zo(e)).digest(),n=r();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>r(),t}function Js(r=32){if(yi&&typeof yi.getRandomValues=="function")return yi.getRandomValues(new Uint8Array(r));if(yi&&typeof yi.randomBytes=="function")return Uint8Array.from(yi.randomBytes(r));throw new Error("crypto.getRandomValues must be defined")}function vh(r,t,n,e){if(typeof r.setBigUint64=="function")return r.setBigUint64(t,n,e);const o=BigInt(32),i=BigInt(4294967295),c=Number(n>>o&i),d=Number(n&i),f=e?4:0,p=e?0:4;r.setUint32(t+f,c,e),r.setUint32(t+p,d,e)}function yh(r,t,n){return r&t^~r&n}function wh(r,t,n){return r&t^r&n^t&n}class iu extends $s{constructor(t,n,e,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=e,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Zs(this.buffer)}update(t){wi(this),t=zo(t),br(t);const{view:n,buffer:e,blockLen:o}=this,i=t.length;for(let c=0;c<i;){const d=Math.min(o-this.pos,i-c);if(d===o){const f=Zs(t);for(;o<=i-c;c+=o)this.process(f,c);continue}e.set(t.subarray(c,c+d),this.pos),this.pos+=d,c+=d,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){wi(this),tu(t,this),this.finished=!0;const{buffer:n,view:e,blockLen:o,isLE:i}=this;let{pos:c}=this;n[c++]=128,Lr(this.buffer.subarray(c)),this.padOffset>o-c&&(this.process(e,0),c=0);for(let x=c;x<o;x++)n[x]=0;vh(e,o-8,BigInt(this.length*8),i),this.process(e,0);const d=Zs(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const p=f/4,S=this.get();if(p>S.length)throw new Error("_sha2: outputLen bigger than state");for(let x=0;x<p;x++)d.setUint32(4*x,S[x],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const e=t.slice(0,n);return this.destroy(),e}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:e,length:o,finished:i,destroyed:c,pos:d}=this;return t.destroyed=c,t.finished=i,t.length=o,t.pos=d,o%n&&t.buffer.set(e),t}clone(){return this._cloneInto()}}const Br=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),xn=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Go=BigInt(2**32-1),ou=BigInt(32);function bh(r,t=!1){return t?{h:Number(r&Go),l:Number(r>>ou&Go)}:{h:Number(r>>ou&Go)|0,l:Number(r&Go)|0}}function su(r,t=!1){const n=r.length;let e=new Uint32Array(n),o=new Uint32Array(n);for(let i=0;i<n;i++){const{h:c,l:d}=bh(r[i],t);[e[i],o[i]]=[c,d]}return[e,o]}const au=(r,t,n)=>r>>>n,cu=(r,t,n)=>r<<32-n|t>>>n,bi=(r,t,n)=>r>>>n|t<<32-n,_i=(r,t,n)=>r<<32-n|t>>>n,Ko=(r,t,n)=>r<<64-n|t>>>n-32,jo=(r,t,n)=>r>>>n-32|t<<64-n,_h=(r,t,n)=>r<<n|t>>>32-n,Eh=(r,t,n)=>t<<n|r>>>32-n,Rh=(r,t,n)=>t<<n-32|r>>>64-n,Sh=(r,t,n)=>r<<n-32|t>>>64-n;function Er(r,t,n,e){const o=(t>>>0)+(e>>>0);return{h:r+n+(o/2**32|0)|0,l:o|0}}const Ah=(r,t,n)=>(r>>>0)+(t>>>0)+(n>>>0),Ih=(r,t,n,e)=>t+n+e+(r/2**32|0)|0,kh=(r,t,n,e)=>(r>>>0)+(t>>>0)+(n>>>0)+(e>>>0),Oh=(r,t,n,e,o)=>t+n+e+o+(r/2**32|0)|0,Th=(r,t,n,e,o)=>(r>>>0)+(t>>>0)+(n>>>0)+(e>>>0)+(o>>>0),Nh=(r,t,n,e,o,i)=>t+n+e+o+i+(r/2**32|0)|0,xh=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Pr=new Uint32Array(64);class Ch extends iu{constructor(t=32){super(64,t,8,!1),this.A=Br[0]|0,this.B=Br[1]|0,this.C=Br[2]|0,this.D=Br[3]|0,this.E=Br[4]|0,this.F=Br[5]|0,this.G=Br[6]|0,this.H=Br[7]|0}get(){const{A:t,B:n,C:e,D:o,E:i,F:c,G:d,H:f}=this;return[t,n,e,o,i,c,d,f]}set(t,n,e,o,i,c,d,f){this.A=t|0,this.B=n|0,this.C=e|0,this.D=o|0,this.E=i|0,this.F=c|0,this.G=d|0,this.H=f|0}process(t,n){for(let x=0;x<16;x++,n+=4)Pr[x]=t.getUint32(n,!1);for(let x=16;x<64;x++){const T=Pr[x-15],k=Pr[x-2],C=or(T,7)^or(T,18)^T>>>3,M=or(k,17)^or(k,19)^k>>>10;Pr[x]=M+Pr[x-7]+C+Pr[x-16]|0}let{A:e,B:o,C:i,D:c,E:d,F:f,G:p,H:S}=this;for(let x=0;x<64;x++){const T=or(d,6)^or(d,11)^or(d,25),k=S+T+yh(d,f,p)+xh[x]+Pr[x]|0,M=(or(e,2)^or(e,13)^or(e,22))+wh(e,o,i)|0;S=p,p=f,f=d,d=c+k|0,c=i,i=o,o=e,e=k+M|0}e=e+this.A|0,o=o+this.B|0,i=i+this.C|0,c=c+this.D|0,d=d+this.E|0,f=f+this.F|0,p=p+this.G|0,S=S+this.H|0,this.set(e,o,i,c,d,f,p,S)}roundClean(){Lr(Pr)}destroy(){this.set(0,0,0,0,0,0,0,0),Lr(this.buffer)}}const uu=su(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(r=>BigInt(r))),Lh=uu[0],Bh=uu[1],Mr=new Uint32Array(80),Ur=new Uint32Array(80);class Ph extends iu{constructor(t=64){super(128,t,16,!1),this.Ah=xn[0]|0,this.Al=xn[1]|0,this.Bh=xn[2]|0,this.Bl=xn[3]|0,this.Ch=xn[4]|0,this.Cl=xn[5]|0,this.Dh=xn[6]|0,this.Dl=xn[7]|0,this.Eh=xn[8]|0,this.El=xn[9]|0,this.Fh=xn[10]|0,this.Fl=xn[11]|0,this.Gh=xn[12]|0,this.Gl=xn[13]|0,this.Hh=xn[14]|0,this.Hl=xn[15]|0}get(){const{Ah:t,Al:n,Bh:e,Bl:o,Ch:i,Cl:c,Dh:d,Dl:f,Eh:p,El:S,Fh:x,Fl:T,Gh:k,Gl:C,Hh:M,Hl:V}=this;return[t,n,e,o,i,c,d,f,p,S,x,T,k,C,M,V]}set(t,n,e,o,i,c,d,f,p,S,x,T,k,C,M,V){this.Ah=t|0,this.Al=n|0,this.Bh=e|0,this.Bl=o|0,this.Ch=i|0,this.Cl=c|0,this.Dh=d|0,this.Dl=f|0,this.Eh=p|0,this.El=S|0,this.Fh=x|0,this.Fl=T|0,this.Gh=k|0,this.Gl=C|0,this.Hh=M|0,this.Hl=V|0}process(t,n){for(let $=0;$<16;$++,n+=4)Mr[$]=t.getUint32(n),Ur[$]=t.getUint32(n+=4);for(let $=16;$<80;$++){const nt=Mr[$-15]|0,pt=Ur[$-15]|0,lt=bi(nt,pt,1)^bi(nt,pt,8)^au(nt,pt,7),St=_i(nt,pt,1)^_i(nt,pt,8)^cu(nt,pt,7),At=Mr[$-2]|0,st=Ur[$-2]|0,dt=bi(At,st,19)^Ko(At,st,61)^au(At,st,6),vt=_i(At,st,19)^jo(At,st,61)^cu(At,st,6),wt=kh(St,vt,Ur[$-7],Ur[$-16]),D=Oh(wt,lt,dt,Mr[$-7],Mr[$-16]);Mr[$]=D|0,Ur[$]=wt|0}let{Ah:e,Al:o,Bh:i,Bl:c,Ch:d,Cl:f,Dh:p,Dl:S,Eh:x,El:T,Fh:k,Fl:C,Gh:M,Gl:V,Hh:G,Hl:J}=this;for(let $=0;$<80;$++){const nt=bi(x,T,14)^bi(x,T,18)^Ko(x,T,41),pt=_i(x,T,14)^_i(x,T,18)^jo(x,T,41),lt=x&k^~x&M,St=T&C^~T&V,At=Th(J,pt,St,Bh[$],Ur[$]),st=Nh(At,G,nt,lt,Lh[$],Mr[$]),dt=At|0,vt=bi(e,o,28)^Ko(e,o,34)^Ko(e,o,39),wt=_i(e,o,28)^jo(e,o,34)^jo(e,o,39),D=e&i^e&d^i&d,h=o&c^o&f^c&f;G=M|0,J=V|0,M=k|0,V=C|0,k=x|0,C=T|0,{h:x,l:T}=Er(p|0,S|0,st|0,dt|0),p=d|0,S=f|0,d=i|0,f=c|0,i=e|0,c=o|0;const I=Ah(dt,wt,h);e=Ih(I,st,vt,D),o=I|0}({h:e,l:o}=Er(this.Ah|0,this.Al|0,e|0,o|0)),{h:i,l:c}=Er(this.Bh|0,this.Bl|0,i|0,c|0),{h:d,l:f}=Er(this.Ch|0,this.Cl|0,d|0,f|0),{h:p,l:S}=Er(this.Dh|0,this.Dl|0,p|0,S|0),{h:x,l:T}=Er(this.Eh|0,this.El|0,x|0,T|0),{h:k,l:C}=Er(this.Fh|0,this.Fl|0,k|0,C|0),{h:M,l:V}=Er(this.Gh|0,this.Gl|0,M|0,V|0),{h:G,l:J}=Er(this.Hh|0,this.Hl|0,G|0,J|0),this.set(e,o,i,c,d,f,p,S,x,T,k,C,M,V,G,J)}roundClean(){Lr(Mr,Ur)}destroy(){Lr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const fu=Xs(()=>new Ch),Mh=Xs(()=>new Ph);const Qs=BigInt(0),ta=BigInt(1);function Qr(r,t=""){if(typeof r!="boolean"){const n=t&&`"${t}"`;throw new Error(n+"expected boolean, got type="+typeof r)}return r}function Xn(r,t,n=""){const e=$i(r),o=r?.length,i=t!==void 0;if(!e||i&&o!==t){const c=n&&`"${n}" `,d=i?` of length ${t}`:"",f=e?`length=${o}`:`type=${typeof r}`;throw new Error(c+"expected Uint8Array"+d+", got "+f)}return r}function Yo(r){const t=r.toString(16);return t.length&1?"0"+t:t}function lu(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);return r===""?Qs:BigInt("0x"+r)}function qo(r){return lu(Jr(r))}function Ji(r){return br(r),lu(Jr(Uint8Array.from(r).reverse()))}function ea(r,t){return Wo(r.toString(16).padStart(t*2,"0"))}function du(r,t){return ea(r,t).reverse()}function on(r,t,n){let e;if(typeof t=="string")try{e=Wo(t)}catch(i){throw new Error(r+" must be hex string or Uint8Array, cause: "+i)}else if($i(t))e=Uint8Array.from(t);else throw new Error(r+" must be hex string or Uint8Array");const o=e.length;if(typeof n=="number"&&o!==n)throw new Error(r+" of length "+n+" expected, got "+o);return e}function hu(r){return Uint8Array.from(r)}const na=r=>typeof r=="bigint"&&Qs<=r;function Uh(r,t,n){return na(r)&&na(t)&&na(n)&&t<=r&&r<n}function ra(r,t,n,e){if(!Uh(t,n,e))throw new Error("expected valid "+r+": "+n+" <= n < "+e+", got "+t)}function pu(r){let t;for(t=0;r>Qs;r>>=ta,t+=1);return t}const Qi=r=>(ta<<BigInt(r))-ta;function Dh(r,t,n){if(typeof r!="number"||r<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");const e=k=>new Uint8Array(k),o=k=>Uint8Array.of(k);let i=e(r),c=e(r),d=0;const f=()=>{i.fill(1),c.fill(0),d=0},p=(...k)=>n(c,i,...k),S=(k=e(0))=>{c=p(o(0),k),i=p(),k.length!==0&&(c=p(o(1),k),i=p())},x=()=>{if(d++>=1e3)throw new Error("drbg: tried 1000 values");let k=0;const C=[];for(;k<t;){i=p();const M=i.slice();C.push(M),k+=i.length}return sr(...C)};return(k,C)=>{f(),S(k);let M;for(;!(M=C(x()));)S();return f(),M}}function to(r,t,n={}){if(!r||typeof r!="object")throw new Error("expected valid options object");function e(o,i,c){const d=r[o];if(c&&d===void 0)return;const f=typeof d;if(f!==i||d===null)throw new Error(`param "${o}" is invalid: expected ${i}, got ${f}`)}Object.entries(t).forEach(([o,i])=>e(o,i,!1)),Object.entries(n).forEach(([o,i])=>e(o,i,!0))}function Zo(r){const t=new WeakMap;return(n,...e)=>{const o=t.get(n);if(o!==void 0)return o;const i=r(n,...e);return t.set(n,i),i}}const Vn=BigInt(0),kn=BigInt(1),ti=BigInt(2),gu=BigInt(3),mu=BigInt(4),vu=BigInt(5),Fh=BigInt(7),yu=BigInt(8),Vh=BigInt(9),wu=BigInt(16);function vn(r,t){const n=r%t;return n>=Vn?n:t+n}function sn(r,t,n){let e=r;for(;t-- >Vn;)e*=e,e%=n;return e}function bu(r,t){if(r===Vn)throw new Error("invert: expected non-zero number");if(t<=Vn)throw new Error("invert: expected positive modulus, got "+t);let n=vn(r,t),e=t,o=Vn,i=kn;for(;n!==Vn;){const d=e/n,f=e%n,p=o-i*d;e=n,n=f,o=i,i=p}if(e!==kn)throw new Error("invert: does not exist");return vn(o,t)}function ia(r,t,n){if(!r.eql(r.sqr(t),n))throw new Error("Cannot find square root")}function _u(r,t){const n=(r.ORDER+kn)/mu,e=r.pow(t,n);return ia(r,e,t),e}function Hh(r,t){const n=(r.ORDER-vu)/yu,e=r.mul(t,ti),o=r.pow(e,n),i=r.mul(t,o),c=r.mul(r.mul(i,ti),o),d=r.mul(i,r.sub(c,r.ONE));return ia(r,d,t),d}function Wh(r){const t=ei(r),n=Eu(r),e=n(t,t.neg(t.ONE)),o=n(t,e),i=n(t,t.neg(e)),c=(r+Fh)/wu;return(d,f)=>{let p=d.pow(f,c),S=d.mul(p,e);const x=d.mul(p,o),T=d.mul(p,i),k=d.eql(d.sqr(S),f),C=d.eql(d.sqr(x),f);p=d.cmov(p,S,k),S=d.cmov(T,x,C);const M=d.eql(d.sqr(S),f),V=d.cmov(p,S,M);return ia(d,V,f),V}}function Eu(r){if(r<gu)throw new Error("sqrt is not defined for small field");let t=r-kn,n=0;for(;t%ti===Vn;)t/=ti,n++;let e=ti;const o=ei(r);for(;Su(o,e)===1;)if(e++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return _u;let i=o.pow(e,t);const c=(t+kn)/ti;return function(f,p){if(f.is0(p))return p;if(Su(f,p)!==1)throw new Error("Cannot find square root");let S=n,x=f.mul(f.ONE,i),T=f.pow(p,t),k=f.pow(p,c);for(;!f.eql(T,f.ONE);){if(f.is0(T))return f.ZERO;let C=1,M=f.sqr(T);for(;!f.eql(M,f.ONE);)if(C++,M=f.sqr(M),C===S)throw new Error("Cannot find square root");const V=kn<<BigInt(S-C-1),G=f.pow(x,V);S=C,x=f.sqr(G),T=f.mul(T,x),k=f.mul(k,G)}return k}}function zh(r){return r%mu===gu?_u:r%yu===vu?Hh:r%wu===Vh?Wh(r):Eu(r)}const Gh=(r,t)=>(vn(r,t)&kn)===kn,Kh=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function jh(r){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},n=Kh.reduce((e,o)=>(e[o]="function",e),t);return to(r,n),r}function Yh(r,t,n){if(n<Vn)throw new Error("invalid exponent, negatives unsupported");if(n===Vn)return r.ONE;if(n===kn)return t;let e=r.ONE,o=t;for(;n>Vn;)n&kn&&(e=r.mul(e,o)),o=r.sqr(o),n>>=kn;return e}function Ru(r,t,n=!1){const e=new Array(t.length).fill(n?r.ZERO:void 0),o=t.reduce((c,d,f)=>r.is0(d)?c:(e[f]=c,r.mul(c,d)),r.ONE),i=r.inv(o);return t.reduceRight((c,d,f)=>r.is0(d)?c:(e[f]=r.mul(c,e[f]),r.mul(c,d)),i),e}function Su(r,t){const n=(r.ORDER-kn)/ti,e=r.pow(t,n),o=r.eql(e,r.ONE),i=r.eql(e,r.ZERO),c=r.eql(e,r.neg(r.ONE));if(!o&&!i&&!c)throw new Error("invalid Legendre symbol result");return o?1:i?0:-1}function Au(r,t){t!==void 0&&Xi(t);const n=t!==void 0?t:r.toString(2).length,e=Math.ceil(n/8);return{nBitLength:n,nByteLength:e}}function ei(r,t,n=!1,e={}){if(r<=Vn)throw new Error("invalid field: expected ORDER > 0, got "+r);let o,i,c=!1,d;if(typeof t=="object"&&t!=null){if(e.sqrt||n)throw new Error("cannot specify opts in two arguments");const T=t;T.BITS&&(o=T.BITS),T.sqrt&&(i=T.sqrt),typeof T.isLE=="boolean"&&(n=T.isLE),typeof T.modFromBytes=="boolean"&&(c=T.modFromBytes),d=T.allowedLengths}else typeof t=="number"&&(o=t),e.sqrt&&(i=e.sqrt);const{nBitLength:f,nByteLength:p}=Au(r,o);if(p>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let S;const x=Object.freeze({ORDER:r,isLE:n,BITS:f,BYTES:p,MASK:Qi(f),ZERO:Vn,ONE:kn,allowedLengths:d,create:T=>vn(T,r),isValid:T=>{if(typeof T!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof T);return Vn<=T&&T<r},is0:T=>T===Vn,isValidNot0:T=>!x.is0(T)&&x.isValid(T),isOdd:T=>(T&kn)===kn,neg:T=>vn(-T,r),eql:(T,k)=>T===k,sqr:T=>vn(T*T,r),add:(T,k)=>vn(T+k,r),sub:(T,k)=>vn(T-k,r),mul:(T,k)=>vn(T*k,r),pow:(T,k)=>Yh(x,T,k),div:(T,k)=>vn(T*bu(k,r),r),sqrN:T=>T*T,addN:(T,k)=>T+k,subN:(T,k)=>T-k,mulN:(T,k)=>T*k,inv:T=>bu(T,r),sqrt:i||(T=>(S||(S=zh(r)),S(x,T))),toBytes:T=>n?du(T,p):ea(T,p),fromBytes:(T,k=!0)=>{if(d){if(!d.includes(T.length)||T.length>p)throw new Error("Field.fromBytes: expected "+d+" bytes, got "+T.length);const M=new Uint8Array(p);M.set(T,n?0:M.length-T.length),T=M}if(T.length!==p)throw new Error("Field.fromBytes: expected "+p+" bytes, got "+T.length);let C=n?Ji(T):qo(T);if(c&&(C=vn(C,r)),!k&&!x.isValid(C))throw new Error("invalid field element: outside of range 0..ORDER");return C},invertBatch:T=>Ru(x,T),cmov:(T,k,C)=>C?k:T});return Object.freeze(x)}function Iu(r){if(typeof r!="bigint")throw new Error("field order must be bigint");const t=r.toString(2).length;return Math.ceil(t/8)}function ku(r){const t=Iu(r);return t+Math.ceil(t/2)}function qh(r,t,n=!1){const e=r.length,o=Iu(t),i=ku(t);if(e<16||e<i||e>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+e);const c=n?Ji(r):qo(r),d=vn(c,t-kn)+kn;return n?du(d,o):ea(d,o)}const Ei=BigInt(0),ni=BigInt(1);function $o(r,t){const n=t.negate();return r?n:t}function ri(r,t){const n=Ru(r.Fp,t.map(e=>e.Z));return t.map((e,o)=>r.fromAffine(e.toAffine(n[o])))}function Ou(r,t){if(!Number.isSafeInteger(r)||r<=0||r>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+r)}function oa(r,t){Ou(r,t);const n=Math.ceil(t/r)+1,e=2**(r-1),o=2**r,i=Qi(r),c=BigInt(r);return{windows:n,windowSize:e,mask:i,maxNumber:o,shiftBy:c}}function Tu(r,t,n){const{windowSize:e,mask:o,maxNumber:i,shiftBy:c}=n;let d=Number(r&o),f=r>>c;d>e&&(d-=i,f+=ni);const p=t*e,S=p+Math.abs(d)-1,x=d===0,T=d<0,k=t%2!==0;return{nextN:f,offset:S,isZero:x,isNeg:T,isNegF:k,offsetF:p}}function Zh(r,t){if(!Array.isArray(r))throw new Error("array expected");r.forEach((n,e)=>{if(!(n instanceof t))throw new Error("invalid point at index "+e)})}function $h(r,t){if(!Array.isArray(r))throw new Error("array of scalars expected");r.forEach((n,e)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+e)})}const sa=new WeakMap,Nu=new WeakMap;function aa(r){return Nu.get(r)||1}function xu(r){if(r!==Ei)throw new Error("invalid wNAF")}class Cu{constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,e=this.ZERO){let o=t;for(;n>Ei;)n&ni&&(e=e.add(o)),o=o.double(),n>>=ni;return e}precomputeWindow(t,n){const{windows:e,windowSize:o}=oa(n,this.bits),i=[];let c=t,d=c;for(let f=0;f<e;f++){d=c,i.push(d);for(let p=1;p<o;p++)d=d.add(c),i.push(d);c=d.double()}return i}wNAF(t,n,e){if(!this.Fn.isValid(e))throw new Error("invalid scalar");let o=this.ZERO,i=this.BASE;const c=oa(t,this.bits);for(let d=0;d<c.windows;d++){const{nextN:f,offset:p,isZero:S,isNeg:x,isNegF:T,offsetF:k}=Tu(e,d,c);e=f,S?i=i.add($o(T,n[k])):o=o.add($o(x,n[p]))}return xu(e),{p:o,f:i}}wNAFUnsafe(t,n,e,o=this.ZERO){const i=oa(t,this.bits);for(let c=0;c<i.windows&&e!==Ei;c++){const{nextN:d,offset:f,isZero:p,isNeg:S}=Tu(e,c,i);if(e=d,!p){const x=n[f];o=o.add(S?x.negate():x)}}return xu(e),o}getPrecomputes(t,n,e){let o=sa.get(n);return o||(o=this.precomputeWindow(n,t),t!==1&&(typeof e=="function"&&(o=e(o)),sa.set(n,o))),o}cached(t,n,e){const o=aa(t);return this.wNAF(o,this.getPrecomputes(o,t,e),n)}unsafe(t,n,e,o){const i=aa(t);return i===1?this._unsafeLadder(t,n,o):this.wNAFUnsafe(i,this.getPrecomputes(i,t,e),n,o)}createCache(t,n){Ou(n,this.bits),Nu.set(t,n),sa.delete(t)}hasCache(t){return aa(t)!==1}}function Xh(r,t,n,e){let o=t,i=r.ZERO,c=r.ZERO;for(;n>Ei||e>Ei;)n&ni&&(i=i.add(o)),e&ni&&(c=c.add(o)),o=o.double(),n>>=ni,e>>=ni;return{p1:i,p2:c}}function Lu(r,t,n,e){Zh(n,r),$h(e,t);const o=n.length,i=e.length;if(o!==i)throw new Error("arrays of points and scalars must have equal length");const c=r.ZERO,d=pu(BigInt(o));let f=1;d>12?f=d-3:d>4?f=d-2:d>0&&(f=2);const p=Qi(f),S=new Array(Number(p)+1).fill(c),x=Math.floor((t.BITS-1)/f)*f;let T=c;for(let k=x;k>=0;k-=f){S.fill(c);for(let M=0;M<i;M++){const V=e[M],G=Number(V>>BigInt(k)&p);S[G]=S[G].add(n[M])}let C=c;for(let M=S.length-1,V=c;M>0;M--)V=V.add(S[M]),C=C.add(V);if(T=T.add(C),k!==0)for(let M=0;M<f;M++)T=T.double()}return T}function Bu(r,t,n){if(t){if(t.ORDER!==r)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return jh(t),t}else return ei(r,{isLE:n})}function Pu(r,t,n={},e){if(e===void 0&&(e=r==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${r} CURVE object`);for(const f of["p","n","h"]){const p=t[f];if(!(typeof p=="bigint"&&p>Ei))throw new Error(`CURVE.${f} must be positive bigint`)}const o=Bu(t.p,n.Fp,e),i=Bu(t.n,n.Fn,e),d=["Gx","Gy","a",r==="weierstrass"?"b":"d"];for(const f of d)if(!o.isValid(t[f]))throw new Error(`CURVE.${f} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:o,Fn:i}}const Dr=BigInt(0),_n=BigInt(1),ca=BigInt(2),Jh=BigInt(8);function Qh(r,t,n,e){const o=r.sqr(n),i=r.sqr(e),c=r.add(r.mul(t.a,o),i),d=r.add(r.ONE,r.mul(t.d,r.mul(o,i)));return r.eql(c,d)}function t1(r,t={}){const n=Pu("edwards",r,t,t.FpFnLE),{Fp:e,Fn:o}=n;let i=n.CURVE;const{h:c}=i;to(t,{},{uvRatio:"function"});const d=ca<<BigInt(o.BYTES*8)-_n,f=V=>e.create(V),p=t.uvRatio||((V,G)=>{try{return{isValid:!0,value:e.sqrt(e.div(V,G))}}catch{return{isValid:!1,value:Dr}}});if(!Qh(e,i,i.Gx,i.Gy))throw new Error("bad curve params: generator point");function S(V,G,J=!1){const $=J?_n:Dr;return ra("coordinate "+V,G,$,d),G}function x(V){if(!(V instanceof C))throw new Error("ExtendedPoint expected")}const T=Zo((V,G)=>{const{X:J,Y:$,Z:nt}=V,pt=V.is0();G==null&&(G=pt?Jh:e.inv(nt));const lt=f(J*G),St=f($*G),At=e.mul(nt,G);if(pt)return{x:Dr,y:_n};if(At!==_n)throw new Error("invZ was invalid");return{x:lt,y:St}}),k=Zo(V=>{const{a:G,d:J}=i;if(V.is0())throw new Error("bad point: ZERO");const{X:$,Y:nt,Z:pt,T:lt}=V,St=f($*$),At=f(nt*nt),st=f(pt*pt),dt=f(st*st),vt=f(St*G),wt=f(st*f(vt+At)),D=f(dt+f(J*f(St*At)));if(wt!==D)throw new Error("bad point: equation left != right (1)");const h=f($*nt),I=f(pt*lt);if(h!==I)throw new Error("bad point: equation left != right (2)");return!0});class C{constructor(G,J,$,nt){this.X=S("x",G),this.Y=S("y",J),this.Z=S("z",$,!0),this.T=S("t",nt),Object.freeze(this)}static CURVE(){return i}static fromAffine(G){if(G instanceof C)throw new Error("extended point not allowed");const{x:J,y:$}=G||{};return S("x",J),S("y",$),new C(J,$,_n,f(J*$))}static fromBytes(G,J=!1){const $=e.BYTES,{a:nt,d:pt}=i;G=hu(Xn(G,$,"point")),Qr(J,"zip215");const lt=hu(G),St=G[$-1];lt[$-1]=St&-129;const At=Ji(lt),st=J?d:e.ORDER;ra("point.y",At,Dr,st);const dt=f(At*At),vt=f(dt-_n),wt=f(pt*dt-nt);let{isValid:D,value:h}=p(vt,wt);if(!D)throw new Error("bad point: invalid y coordinate");const I=(h&_n)===_n,U=(St&128)!==0;if(!J&&h===Dr&&U)throw new Error("bad point: x=0 and x_0=1");return U!==I&&(h=f(-h)),C.fromAffine({x:h,y:At})}static fromHex(G,J=!1){return C.fromBytes(on("point",G),J)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(G=8,J=!0){return M.createCache(this,G),J||this.multiply(ca),this}assertValidity(){k(this)}equals(G){x(G);const{X:J,Y:$,Z:nt}=this,{X:pt,Y:lt,Z:St}=G,At=f(J*St),st=f(pt*nt),dt=f($*St),vt=f(lt*nt);return At===st&&dt===vt}is0(){return this.equals(C.ZERO)}negate(){return new C(f(-this.X),this.Y,this.Z,f(-this.T))}double(){const{a:G}=i,{X:J,Y:$,Z:nt}=this,pt=f(J*J),lt=f($*$),St=f(ca*f(nt*nt)),At=f(G*pt),st=J+$,dt=f(f(st*st)-pt-lt),vt=At+lt,wt=vt-St,D=At-lt,h=f(dt*wt),I=f(vt*D),U=f(dt*D),j=f(wt*vt);return new C(h,I,j,U)}add(G){x(G);const{a:J,d:$}=i,{X:nt,Y:pt,Z:lt,T:St}=this,{X:At,Y:st,Z:dt,T:vt}=G,wt=f(nt*At),D=f(pt*st),h=f(St*$*vt),I=f(lt*dt),U=f((nt+pt)*(At+st)-wt-D),j=I-h,X=I+h,et=f(D-J*wt),ut=f(U*j),Y=f(X*et),g=f(U*et),E=f(j*X);return new C(ut,Y,E,g)}subtract(G){return this.add(G.negate())}multiply(G){if(!o.isValidNot0(G))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:J,f:$}=M.cached(this,G,nt=>ri(C,nt));return ri(C,[J,$])[0]}multiplyUnsafe(G,J=C.ZERO){if(!o.isValid(G))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return G===Dr?C.ZERO:this.is0()||G===_n?this:M.unsafe(this,G,$=>ri(C,$),J)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return M.unsafe(this,i.n).is0()}toAffine(G){return T(this,G)}clearCofactor(){return c===_n?this:this.multiplyUnsafe(c)}toBytes(){const{x:G,y:J}=this.toAffine(),$=e.toBytes(J);return $[$.length-1]|=G&_n?128:0,$}toHex(){return Jr(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(G){return ri(C,G)}static msm(G,J){return Lu(C,o,G,J)}_setWindowSize(G){this.precompute(G)}toRawBytes(){return this.toBytes()}}C.BASE=new C(i.Gx,i.Gy,_n,f(i.Gx*i.Gy)),C.ZERO=new C(Dr,_n,_n,Dr),C.Fp=e,C.Fn=o;const M=new Cu(C,o.BITS);return C.BASE.precompute(8),C}function e1(r,t,n={}){if(typeof t!="function")throw new Error('"hash" function param is required');to(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:e}=n,{BASE:o,Fp:i,Fn:c}=r,d=n.randomBytes||Js,f=n.adjustScalarBytes||(st=>st),p=n.domain||((st,dt,vt)=>{if(Qr(vt,"phflag"),dt.length||vt)throw new Error("Contexts/pre-hash are not supported");return st});function S(st){return c.create(Ji(st))}function x(st){const dt=$.secretKey;st=on("private key",st,dt);const vt=on("hashed private key",t(st),2*dt),wt=f(vt.slice(0,dt)),D=vt.slice(dt,2*dt),h=S(wt);return{head:wt,prefix:D,scalar:h}}function T(st){const{head:dt,prefix:vt,scalar:wt}=x(st),D=o.multiply(wt),h=D.toBytes();return{head:dt,prefix:vt,scalar:wt,point:D,pointBytes:h}}function k(st){return T(st).pointBytes}function C(st=Uint8Array.of(),...dt){const vt=sr(...dt);return S(t(p(vt,on("context",st),!!e)))}function M(st,dt,vt={}){st=on("message",st),e&&(st=e(st));const{prefix:wt,scalar:D,pointBytes:h}=T(dt),I=C(vt.context,wt,st),U=o.multiply(I).toBytes(),j=C(vt.context,U,h,st),X=c.create(I+j*D);if(!c.isValid(X))throw new Error("sign failed: invalid s");const et=sr(U,c.toBytes(X));return Xn(et,$.signature,"result")}const V={zip215:!0};function G(st,dt,vt,wt=V){const{context:D,zip215:h}=wt,I=$.signature;st=on("signature",st,I),dt=on("message",dt),vt=on("publicKey",vt,$.publicKey),h!==void 0&&Qr(h,"zip215"),e&&(dt=e(dt));const U=I/2,j=st.subarray(0,U),X=Ji(st.subarray(U,I));let et,ut,Y;try{et=r.fromBytes(vt,h),ut=r.fromBytes(j,h),Y=o.multiplyUnsafe(X)}catch{return!1}if(!h&&et.isSmallOrder())return!1;const g=C(D,ut.toBytes(),et.toBytes(),dt);return ut.add(et.multiplyUnsafe(g)).subtract(Y).clearCofactor().is0()}const J=i.BYTES,$={secretKey:J,publicKey:J,signature:2*J,seed:J};function nt(st=d($.seed)){return Xn(st,$.seed,"seed")}function pt(st){const dt=At.randomSecretKey(st);return{secretKey:dt,publicKey:k(dt)}}function lt(st){return $i(st)&&st.length===c.BYTES}function St(st,dt){try{return!!r.fromBytes(st,dt)}catch{return!1}}const At={getExtendedPublicKey:T,randomSecretKey:nt,isValidSecretKey:lt,isValidPublicKey:St,toMontgomery(st){const{y:dt}=r.fromBytes(st),vt=$.publicKey,wt=vt===32;if(!wt&&vt!==57)throw new Error("only defined for 25519 and 448");const D=wt?i.div(_n+dt,_n-dt):i.div(dt-_n,dt+_n);return i.toBytes(D)},toMontgomerySecret(st){const dt=$.secretKey;Xn(st,dt);const vt=t(st.subarray(0,dt));return f(vt).subarray(0,dt)},randomPrivateKey:nt,precompute(st=8,dt=r.BASE){return dt.precompute(st,!1)}};return Object.freeze({keygen:pt,getPublicKey:k,sign:M,verify:G,utils:At,Point:r,lengths:$})}function n1(r){const t={a:r.a,d:r.d,p:r.Fp.ORDER,n:r.n,h:r.h,Gx:r.Gx,Gy:r.Gy},n=r.Fp,e=ei(t.n,r.nBitLength,!0),o={Fp:n,Fn:e,uvRatio:r.uvRatio},i={randomBytes:r.randomBytes,adjustScalarBytes:r.adjustScalarBytes,domain:r.domain,prehash:r.prehash,mapToCurve:r.mapToCurve};return{CURVE:t,curveOpts:o,hash:r.hash,eddsaOpts:i}}function r1(r,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:r,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}function i1(r){const{CURVE:t,curveOpts:n,hash:e,eddsaOpts:o}=n1(r),i=t1(t,n),c=e1(i,e,o);return r1(r,c)}const o1=BigInt(1),Mu=BigInt(2);BigInt(3);const s1=BigInt(5),a1=BigInt(8),ua=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),Uu={p:ua,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:a1,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function c1(r){const t=BigInt(10),n=BigInt(20),e=BigInt(40),o=BigInt(80),i=ua,d=r*r%i*r%i,f=sn(d,Mu,i)*d%i,p=sn(f,o1,i)*r%i,S=sn(p,s1,i)*p%i,x=sn(S,t,i)*S%i,T=sn(x,n,i)*x%i,k=sn(T,e,i)*T%i,C=sn(k,o,i)*k%i,M=sn(C,o,i)*k%i,V=sn(M,t,i)*S%i;return{pow_p_5_8:sn(V,Mu,i)*r%i,b2:d}}function u1(r){return r[0]&=248,r[31]&=127,r[31]|=64,r}const Du=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function f1(r,t){const n=ua,e=vn(t*t*t,n),o=vn(e*e*t,n),i=c1(r*o).pow_p_5_8;let c=vn(r*e*i,n);const d=vn(t*c*c,n),f=c,p=vn(c*Du,n),S=d===r,x=d===vn(-r,n),T=d===vn(-r*Du,n);return S&&(c=f),(x||T)&&(c=p),Gh(c,n)&&(c=vn(-c,n)),{isValid:S||x,value:c}}const l1=ei(Uu.p,{isLE:!0}),d1={...Uu,Fp:l1,hash:Mh,adjustScalarBytes:u1,uvRatio:f1},Ri=i1(d1);var Xo={exports:{}};const h1=js(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var p1=Xo.exports,Fu;function Vu(){return Fu||(Fu=1,(function(r){(function(t,n){function e(D,h){if(!D)throw new Error(h||"Assertion failed")}function o(D,h){D.super_=h;var I=function(){};I.prototype=h.prototype,D.prototype=new I,D.prototype.constructor=D}function i(D,h,I){if(i.isBN(D))return D;this.negative=0,this.words=null,this.length=0,this.red=null,D!==null&&((h==="le"||h==="be")&&(I=h,h=10),this._init(D||0,h||10,I||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=h1.Buffer}catch{}i.isBN=function(h){return h instanceof i?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===i.wordSize&&Array.isArray(h.words)},i.max=function(h,I){return h.cmp(I)>0?h:I},i.min=function(h,I){return h.cmp(I)<0?h:I},i.prototype._init=function(h,I,U){if(typeof h=="number")return this._initNumber(h,I,U);if(typeof h=="object")return this._initArray(h,I,U);I==="hex"&&(I=16),e(I===(I|0)&&I>=2&&I<=36),h=h.toString().replace(/\s+/g,"");var j=0;h[0]==="-"&&(j++,this.negative=1),j<h.length&&(I===16?this._parseHex(h,j,U):(this._parseBase(h,I,j),U==="le"&&this._initArray(this.toArray(),I,U)))},i.prototype._initNumber=function(h,I,U){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(e(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),I,U)},i.prototype._initArray=function(h,I,U){if(e(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var j=0;j<this.length;j++)this.words[j]=0;var X,et,ut=0;if(U==="be")for(j=h.length-1,X=0;j>=0;j-=3)et=h[j]|h[j-1]<<8|h[j-2]<<16,this.words[X]|=et<<ut&67108863,this.words[X+1]=et>>>26-ut&67108863,ut+=24,ut>=26&&(ut-=26,X++);else if(U==="le")for(j=0,X=0;j<h.length;j+=3)et=h[j]|h[j+1]<<8|h[j+2]<<16,this.words[X]|=et<<ut&67108863,this.words[X+1]=et>>>26-ut&67108863,ut+=24,ut>=26&&(ut-=26,X++);return this._strip()};function d(D,h){var I=D.charCodeAt(h);if(I>=48&&I<=57)return I-48;if(I>=65&&I<=70)return I-55;if(I>=97&&I<=102)return I-87;e(!1,"Invalid character in "+D)}function f(D,h,I){var U=d(D,I);return I-1>=h&&(U|=d(D,I-1)<<4),U}i.prototype._parseHex=function(h,I,U){this.length=Math.ceil((h.length-I)/6),this.words=new Array(this.length);for(var j=0;j<this.length;j++)this.words[j]=0;var X=0,et=0,ut;if(U==="be")for(j=h.length-1;j>=I;j-=2)ut=f(h,I,j)<<X,this.words[et]|=ut&67108863,X>=18?(X-=18,et+=1,this.words[et]|=ut>>>26):X+=8;else{var Y=h.length-I;for(j=Y%2===0?I+1:I;j<h.length;j+=2)ut=f(h,I,j)<<X,this.words[et]|=ut&67108863,X>=18?(X-=18,et+=1,this.words[et]|=ut>>>26):X+=8}this._strip()};function p(D,h,I,U){for(var j=0,X=0,et=Math.min(D.length,I),ut=h;ut<et;ut++){var Y=D.charCodeAt(ut)-48;j*=U,Y>=49?X=Y-49+10:Y>=17?X=Y-17+10:X=Y,e(Y>=0&&X<U,"Invalid character"),j+=X}return j}i.prototype._parseBase=function(h,I,U){this.words=[0],this.length=1;for(var j=0,X=1;X<=67108863;X*=I)j++;j--,X=X/I|0;for(var et=h.length-U,ut=et%j,Y=Math.min(et,et-ut)+U,g=0,E=U;E<Y;E+=j)g=p(h,E,E+j,I),this.imuln(X),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g);if(ut!==0){var K=1;for(g=p(h,E,h.length,I),E=0;E<ut;E++)K*=I;this.imuln(K),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g)}this._strip()},i.prototype.copy=function(h){h.words=new Array(this.length);for(var I=0;I<this.length;I++)h.words[I]=this.words[I];h.length=this.length,h.negative=this.negative,h.red=this.red};function S(D,h){D.words=h.words,D.length=h.length,D.negative=h.negative,D.red=h.red}if(i.prototype._move=function(h){S(h,this)},i.prototype.clone=function(){var h=new i(null);return this.copy(h),h},i.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=x}catch{i.prototype.inspect=x}else i.prototype.inspect=x;function x(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(h,I){h=h||10,I=I|0||1;var U;if(h===16||h==="hex"){U="";for(var j=0,X=0,et=0;et<this.length;et++){var ut=this.words[et],Y=((ut<<j|X)&16777215).toString(16);X=ut>>>24-j&16777215,j+=2,j>=26&&(j-=26,et--),X!==0||et!==this.length-1?U=T[6-Y.length]+Y+U:U=Y+U}for(X!==0&&(U=X.toString(16)+U);U.length%I!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(h===(h|0)&&h>=2&&h<=36){var g=k[h],E=C[h];U="";var K=this.clone();for(K.negative=0;!K.isZero();){var Z=K.modrn(E).toString(h);K=K.idivn(E),K.isZero()?U=Z+U:U=T[g-Z.length]+Z+U}for(this.isZero()&&(U="0"+U);U.length%I!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}e(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},i.prototype.toJSON=function(){return this.toString(16,2)},c&&(i.prototype.toBuffer=function(h,I){return this.toArrayLike(c,h,I)}),i.prototype.toArray=function(h,I){return this.toArrayLike(Array,h,I)};var M=function(h,I){return h.allocUnsafe?h.allocUnsafe(I):new h(I)};i.prototype.toArrayLike=function(h,I,U){this._strip();var j=this.byteLength(),X=U||Math.max(1,j);e(j<=X,"byte array longer than desired length"),e(X>0,"Requested array length <= 0");var et=M(h,X),ut=I==="le"?"LE":"BE";return this["_toArrayLike"+ut](et,j),et},i.prototype._toArrayLikeLE=function(h,I){for(var U=0,j=0,X=0,et=0;X<this.length;X++){var ut=this.words[X]<<et|j;h[U++]=ut&255,U<h.length&&(h[U++]=ut>>8&255),U<h.length&&(h[U++]=ut>>16&255),et===6?(U<h.length&&(h[U++]=ut>>24&255),j=0,et=0):(j=ut>>>24,et+=2)}if(U<h.length)for(h[U++]=j;U<h.length;)h[U++]=0},i.prototype._toArrayLikeBE=function(h,I){for(var U=h.length-1,j=0,X=0,et=0;X<this.length;X++){var ut=this.words[X]<<et|j;h[U--]=ut&255,U>=0&&(h[U--]=ut>>8&255),U>=0&&(h[U--]=ut>>16&255),et===6?(U>=0&&(h[U--]=ut>>24&255),j=0,et=0):(j=ut>>>24,et+=2)}if(U>=0)for(h[U--]=j;U>=0;)h[U--]=0},Math.clz32?i.prototype._countBits=function(h){return 32-Math.clz32(h)}:i.prototype._countBits=function(h){var I=h,U=0;return I>=4096&&(U+=13,I>>>=13),I>=64&&(U+=7,I>>>=7),I>=8&&(U+=4,I>>>=4),I>=2&&(U+=2,I>>>=2),U+I},i.prototype._zeroBits=function(h){if(h===0)return 26;var I=h,U=0;return(I&8191)===0&&(U+=13,I>>>=13),(I&127)===0&&(U+=7,I>>>=7),(I&15)===0&&(U+=4,I>>>=4),(I&3)===0&&(U+=2,I>>>=2),(I&1)===0&&U++,U},i.prototype.bitLength=function(){var h=this.words[this.length-1],I=this._countBits(h);return(this.length-1)*26+I};function V(D){for(var h=new Array(D.bitLength()),I=0;I<h.length;I++){var U=I/26|0,j=I%26;h[I]=D.words[U]>>>j&1}return h}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,I=0;I<this.length;I++){var U=this._zeroBits(this.words[I]);if(h+=U,U!==26)break}return h},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},i.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var I=0;I<h.length;I++)this.words[I]=this.words[I]|h.words[I];return this._strip()},i.prototype.ior=function(h){return e((this.negative|h.negative)===0),this.iuor(h)},i.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},i.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},i.prototype.iuand=function(h){var I;this.length>h.length?I=h:I=this;for(var U=0;U<I.length;U++)this.words[U]=this.words[U]&h.words[U];return this.length=I.length,this._strip()},i.prototype.iand=function(h){return e((this.negative|h.negative)===0),this.iuand(h)},i.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},i.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},i.prototype.iuxor=function(h){var I,U;this.length>h.length?(I=this,U=h):(I=h,U=this);for(var j=0;j<U.length;j++)this.words[j]=I.words[j]^U.words[j];if(this!==I)for(;j<I.length;j++)this.words[j]=I.words[j];return this.length=I.length,this._strip()},i.prototype.ixor=function(h){return e((this.negative|h.negative)===0),this.iuxor(h)},i.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},i.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},i.prototype.inotn=function(h){e(typeof h=="number"&&h>=0);var I=Math.ceil(h/26)|0,U=h%26;this._expand(I),U>0&&I--;for(var j=0;j<I;j++)this.words[j]=~this.words[j]&67108863;return U>0&&(this.words[j]=~this.words[j]&67108863>>26-U),this._strip()},i.prototype.notn=function(h){return this.clone().inotn(h)},i.prototype.setn=function(h,I){e(typeof h=="number"&&h>=0);var U=h/26|0,j=h%26;return this._expand(U+1),I?this.words[U]=this.words[U]|1<<j:this.words[U]=this.words[U]&~(1<<j),this._strip()},i.prototype.iadd=function(h){var I;if(this.negative!==0&&h.negative===0)return this.negative=0,I=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,I=this.isub(h),h.negative=1,I._normSign();var U,j;this.length>h.length?(U=this,j=h):(U=h,j=this);for(var X=0,et=0;et<j.length;et++)I=(U.words[et]|0)+(j.words[et]|0)+X,this.words[et]=I&67108863,X=I>>>26;for(;X!==0&&et<U.length;et++)I=(U.words[et]|0)+X,this.words[et]=I&67108863,X=I>>>26;if(this.length=U.length,X!==0)this.words[this.length]=X,this.length++;else if(U!==this)for(;et<U.length;et++)this.words[et]=U.words[et];return this},i.prototype.add=function(h){var I;return h.negative!==0&&this.negative===0?(h.negative=0,I=this.sub(h),h.negative^=1,I):h.negative===0&&this.negative!==0?(this.negative=0,I=h.sub(this),this.negative=1,I):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},i.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var I=this.iadd(h);return h.negative=1,I._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var U=this.cmp(h);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var j,X;U>0?(j=this,X=h):(j=h,X=this);for(var et=0,ut=0;ut<X.length;ut++)I=(j.words[ut]|0)-(X.words[ut]|0)+et,et=I>>26,this.words[ut]=I&67108863;for(;et!==0&&ut<j.length;ut++)I=(j.words[ut]|0)+et,et=I>>26,this.words[ut]=I&67108863;if(et===0&&ut<j.length&&j!==this)for(;ut<j.length;ut++)this.words[ut]=j.words[ut];return this.length=Math.max(this.length,ut),j!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(h){return this.clone().isub(h)};function G(D,h,I){I.negative=h.negative^D.negative;var U=D.length+h.length|0;I.length=U,U=U-1|0;var j=D.words[0]|0,X=h.words[0]|0,et=j*X,ut=et&67108863,Y=et/67108864|0;I.words[0]=ut;for(var g=1;g<U;g++){for(var E=Y>>>26,K=Y&67108863,Z=Math.min(g,h.length-1),ht=Math.max(0,g-D.length+1);ht<=Z;ht++){var It=g-ht|0;j=D.words[It]|0,X=h.words[ht]|0,et=j*X+K,E+=et/67108864|0,K=et&67108863}I.words[g]=K|0,Y=E|0}return Y!==0?I.words[g]=Y|0:I.length--,I._strip()}var J=function(h,I,U){var j=h.words,X=I.words,et=U.words,ut=0,Y,g,E,K=j[0]|0,Z=K&8191,ht=K>>>13,It=j[1]|0,Ft=It&8191,Kt=It>>>13,me=j[2]|0,Ee=me&8191,jt=me>>>13,Ne=j[3]|0,Oe=Ne&8191,Ie=Ne>>>13,en=j[4]|0,Be=en&8191,y=en>>>13,P=j[5]|0,H=P&8191,ft=P>>>13,yt=j[6]|0,bt=yt&8191,xt=yt>>>13,zt=j[7]|0,ie=zt&8191,F=zt>>>13,R=j[8]|0,N=R&8191,A=R>>>13,W=j[9]|0,z=W&8191,ot=W>>>13,Ct=X[0]|0,Lt=Ct&8191,Mt=Ct>>>13,Pt=X[1]|0,it=Pt&8191,Gt=Pt>>>13,ye=X[2]|0,oe=ye&8191,ae=ye>>>13,ve=X[3]|0,he=ve&8191,fe=ve>>>13,nn=X[4]|0,be=nn&8191,Ae=nn>>>13,yn=X[5]|0,Ve=yn&8191,Ke=yn>>>13,Tr=X[6]|0,Xe=Tr&8191,$e=Tr>>>13,li=X[7]|0,an=li&8191,cn=li>>>13,Is=X[8]|0,un=Is&8191,fn=Is>>>13,ks=X[9]|0,ln=ks&8191,dn=ks>>>13;U.negative=h.negative^I.negative,U.length=19,Y=Math.imul(Z,Lt),g=Math.imul(Z,Mt),g=g+Math.imul(ht,Lt)|0,E=Math.imul(ht,Mt);var go=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(go>>>26)|0,go&=67108863,Y=Math.imul(Ft,Lt),g=Math.imul(Ft,Mt),g=g+Math.imul(Kt,Lt)|0,E=Math.imul(Kt,Mt),Y=Y+Math.imul(Z,it)|0,g=g+Math.imul(Z,Gt)|0,g=g+Math.imul(ht,it)|0,E=E+Math.imul(ht,Gt)|0;var mo=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(mo>>>26)|0,mo&=67108863,Y=Math.imul(Ee,Lt),g=Math.imul(Ee,Mt),g=g+Math.imul(jt,Lt)|0,E=Math.imul(jt,Mt),Y=Y+Math.imul(Ft,it)|0,g=g+Math.imul(Ft,Gt)|0,g=g+Math.imul(Kt,it)|0,E=E+Math.imul(Kt,Gt)|0,Y=Y+Math.imul(Z,oe)|0,g=g+Math.imul(Z,ae)|0,g=g+Math.imul(ht,oe)|0,E=E+Math.imul(ht,ae)|0;var vo=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(vo>>>26)|0,vo&=67108863,Y=Math.imul(Oe,Lt),g=Math.imul(Oe,Mt),g=g+Math.imul(Ie,Lt)|0,E=Math.imul(Ie,Mt),Y=Y+Math.imul(Ee,it)|0,g=g+Math.imul(Ee,Gt)|0,g=g+Math.imul(jt,it)|0,E=E+Math.imul(jt,Gt)|0,Y=Y+Math.imul(Ft,oe)|0,g=g+Math.imul(Ft,ae)|0,g=g+Math.imul(Kt,oe)|0,E=E+Math.imul(Kt,ae)|0,Y=Y+Math.imul(Z,he)|0,g=g+Math.imul(Z,fe)|0,g=g+Math.imul(ht,he)|0,E=E+Math.imul(ht,fe)|0;var yo=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(yo>>>26)|0,yo&=67108863,Y=Math.imul(Be,Lt),g=Math.imul(Be,Mt),g=g+Math.imul(y,Lt)|0,E=Math.imul(y,Mt),Y=Y+Math.imul(Oe,it)|0,g=g+Math.imul(Oe,Gt)|0,g=g+Math.imul(Ie,it)|0,E=E+Math.imul(Ie,Gt)|0,Y=Y+Math.imul(Ee,oe)|0,g=g+Math.imul(Ee,ae)|0,g=g+Math.imul(jt,oe)|0,E=E+Math.imul(jt,ae)|0,Y=Y+Math.imul(Ft,he)|0,g=g+Math.imul(Ft,fe)|0,g=g+Math.imul(Kt,he)|0,E=E+Math.imul(Kt,fe)|0,Y=Y+Math.imul(Z,be)|0,g=g+Math.imul(Z,Ae)|0,g=g+Math.imul(ht,be)|0,E=E+Math.imul(ht,Ae)|0;var wo=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(wo>>>26)|0,wo&=67108863,Y=Math.imul(H,Lt),g=Math.imul(H,Mt),g=g+Math.imul(ft,Lt)|0,E=Math.imul(ft,Mt),Y=Y+Math.imul(Be,it)|0,g=g+Math.imul(Be,Gt)|0,g=g+Math.imul(y,it)|0,E=E+Math.imul(y,Gt)|0,Y=Y+Math.imul(Oe,oe)|0,g=g+Math.imul(Oe,ae)|0,g=g+Math.imul(Ie,oe)|0,E=E+Math.imul(Ie,ae)|0,Y=Y+Math.imul(Ee,he)|0,g=g+Math.imul(Ee,fe)|0,g=g+Math.imul(jt,he)|0,E=E+Math.imul(jt,fe)|0,Y=Y+Math.imul(Ft,be)|0,g=g+Math.imul(Ft,Ae)|0,g=g+Math.imul(Kt,be)|0,E=E+Math.imul(Kt,Ae)|0,Y=Y+Math.imul(Z,Ve)|0,g=g+Math.imul(Z,Ke)|0,g=g+Math.imul(ht,Ve)|0,E=E+Math.imul(ht,Ke)|0;var bo=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(bo>>>26)|0,bo&=67108863,Y=Math.imul(bt,Lt),g=Math.imul(bt,Mt),g=g+Math.imul(xt,Lt)|0,E=Math.imul(xt,Mt),Y=Y+Math.imul(H,it)|0,g=g+Math.imul(H,Gt)|0,g=g+Math.imul(ft,it)|0,E=E+Math.imul(ft,Gt)|0,Y=Y+Math.imul(Be,oe)|0,g=g+Math.imul(Be,ae)|0,g=g+Math.imul(y,oe)|0,E=E+Math.imul(y,ae)|0,Y=Y+Math.imul(Oe,he)|0,g=g+Math.imul(Oe,fe)|0,g=g+Math.imul(Ie,he)|0,E=E+Math.imul(Ie,fe)|0,Y=Y+Math.imul(Ee,be)|0,g=g+Math.imul(Ee,Ae)|0,g=g+Math.imul(jt,be)|0,E=E+Math.imul(jt,Ae)|0,Y=Y+Math.imul(Ft,Ve)|0,g=g+Math.imul(Ft,Ke)|0,g=g+Math.imul(Kt,Ve)|0,E=E+Math.imul(Kt,Ke)|0,Y=Y+Math.imul(Z,Xe)|0,g=g+Math.imul(Z,$e)|0,g=g+Math.imul(ht,Xe)|0,E=E+Math.imul(ht,$e)|0;var _o=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(_o>>>26)|0,_o&=67108863,Y=Math.imul(ie,Lt),g=Math.imul(ie,Mt),g=g+Math.imul(F,Lt)|0,E=Math.imul(F,Mt),Y=Y+Math.imul(bt,it)|0,g=g+Math.imul(bt,Gt)|0,g=g+Math.imul(xt,it)|0,E=E+Math.imul(xt,Gt)|0,Y=Y+Math.imul(H,oe)|0,g=g+Math.imul(H,ae)|0,g=g+Math.imul(ft,oe)|0,E=E+Math.imul(ft,ae)|0,Y=Y+Math.imul(Be,he)|0,g=g+Math.imul(Be,fe)|0,g=g+Math.imul(y,he)|0,E=E+Math.imul(y,fe)|0,Y=Y+Math.imul(Oe,be)|0,g=g+Math.imul(Oe,Ae)|0,g=g+Math.imul(Ie,be)|0,E=E+Math.imul(Ie,Ae)|0,Y=Y+Math.imul(Ee,Ve)|0,g=g+Math.imul(Ee,Ke)|0,g=g+Math.imul(jt,Ve)|0,E=E+Math.imul(jt,Ke)|0,Y=Y+Math.imul(Ft,Xe)|0,g=g+Math.imul(Ft,$e)|0,g=g+Math.imul(Kt,Xe)|0,E=E+Math.imul(Kt,$e)|0,Y=Y+Math.imul(Z,an)|0,g=g+Math.imul(Z,cn)|0,g=g+Math.imul(ht,an)|0,E=E+Math.imul(ht,cn)|0;var Eo=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(Eo>>>26)|0,Eo&=67108863,Y=Math.imul(N,Lt),g=Math.imul(N,Mt),g=g+Math.imul(A,Lt)|0,E=Math.imul(A,Mt),Y=Y+Math.imul(ie,it)|0,g=g+Math.imul(ie,Gt)|0,g=g+Math.imul(F,it)|0,E=E+Math.imul(F,Gt)|0,Y=Y+Math.imul(bt,oe)|0,g=g+Math.imul(bt,ae)|0,g=g+Math.imul(xt,oe)|0,E=E+Math.imul(xt,ae)|0,Y=Y+Math.imul(H,he)|0,g=g+Math.imul(H,fe)|0,g=g+Math.imul(ft,he)|0,E=E+Math.imul(ft,fe)|0,Y=Y+Math.imul(Be,be)|0,g=g+Math.imul(Be,Ae)|0,g=g+Math.imul(y,be)|0,E=E+Math.imul(y,Ae)|0,Y=Y+Math.imul(Oe,Ve)|0,g=g+Math.imul(Oe,Ke)|0,g=g+Math.imul(Ie,Ve)|0,E=E+Math.imul(Ie,Ke)|0,Y=Y+Math.imul(Ee,Xe)|0,g=g+Math.imul(Ee,$e)|0,g=g+Math.imul(jt,Xe)|0,E=E+Math.imul(jt,$e)|0,Y=Y+Math.imul(Ft,an)|0,g=g+Math.imul(Ft,cn)|0,g=g+Math.imul(Kt,an)|0,E=E+Math.imul(Kt,cn)|0,Y=Y+Math.imul(Z,un)|0,g=g+Math.imul(Z,fn)|0,g=g+Math.imul(ht,un)|0,E=E+Math.imul(ht,fn)|0;var Ro=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(Ro>>>26)|0,Ro&=67108863,Y=Math.imul(z,Lt),g=Math.imul(z,Mt),g=g+Math.imul(ot,Lt)|0,E=Math.imul(ot,Mt),Y=Y+Math.imul(N,it)|0,g=g+Math.imul(N,Gt)|0,g=g+Math.imul(A,it)|0,E=E+Math.imul(A,Gt)|0,Y=Y+Math.imul(ie,oe)|0,g=g+Math.imul(ie,ae)|0,g=g+Math.imul(F,oe)|0,E=E+Math.imul(F,ae)|0,Y=Y+Math.imul(bt,he)|0,g=g+Math.imul(bt,fe)|0,g=g+Math.imul(xt,he)|0,E=E+Math.imul(xt,fe)|0,Y=Y+Math.imul(H,be)|0,g=g+Math.imul(H,Ae)|0,g=g+Math.imul(ft,be)|0,E=E+Math.imul(ft,Ae)|0,Y=Y+Math.imul(Be,Ve)|0,g=g+Math.imul(Be,Ke)|0,g=g+Math.imul(y,Ve)|0,E=E+Math.imul(y,Ke)|0,Y=Y+Math.imul(Oe,Xe)|0,g=g+Math.imul(Oe,$e)|0,g=g+Math.imul(Ie,Xe)|0,E=E+Math.imul(Ie,$e)|0,Y=Y+Math.imul(Ee,an)|0,g=g+Math.imul(Ee,cn)|0,g=g+Math.imul(jt,an)|0,E=E+Math.imul(jt,cn)|0,Y=Y+Math.imul(Ft,un)|0,g=g+Math.imul(Ft,fn)|0,g=g+Math.imul(Kt,un)|0,E=E+Math.imul(Kt,fn)|0,Y=Y+Math.imul(Z,ln)|0,g=g+Math.imul(Z,dn)|0,g=g+Math.imul(ht,ln)|0,E=E+Math.imul(ht,dn)|0;var So=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(So>>>26)|0,So&=67108863,Y=Math.imul(z,it),g=Math.imul(z,Gt),g=g+Math.imul(ot,it)|0,E=Math.imul(ot,Gt),Y=Y+Math.imul(N,oe)|0,g=g+Math.imul(N,ae)|0,g=g+Math.imul(A,oe)|0,E=E+Math.imul(A,ae)|0,Y=Y+Math.imul(ie,he)|0,g=g+Math.imul(ie,fe)|0,g=g+Math.imul(F,he)|0,E=E+Math.imul(F,fe)|0,Y=Y+Math.imul(bt,be)|0,g=g+Math.imul(bt,Ae)|0,g=g+Math.imul(xt,be)|0,E=E+Math.imul(xt,Ae)|0,Y=Y+Math.imul(H,Ve)|0,g=g+Math.imul(H,Ke)|0,g=g+Math.imul(ft,Ve)|0,E=E+Math.imul(ft,Ke)|0,Y=Y+Math.imul(Be,Xe)|0,g=g+Math.imul(Be,$e)|0,g=g+Math.imul(y,Xe)|0,E=E+Math.imul(y,$e)|0,Y=Y+Math.imul(Oe,an)|0,g=g+Math.imul(Oe,cn)|0,g=g+Math.imul(Ie,an)|0,E=E+Math.imul(Ie,cn)|0,Y=Y+Math.imul(Ee,un)|0,g=g+Math.imul(Ee,fn)|0,g=g+Math.imul(jt,un)|0,E=E+Math.imul(jt,fn)|0,Y=Y+Math.imul(Ft,ln)|0,g=g+Math.imul(Ft,dn)|0,g=g+Math.imul(Kt,ln)|0,E=E+Math.imul(Kt,dn)|0;var Sn=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Y=Math.imul(z,oe),g=Math.imul(z,ae),g=g+Math.imul(ot,oe)|0,E=Math.imul(ot,ae),Y=Y+Math.imul(N,he)|0,g=g+Math.imul(N,fe)|0,g=g+Math.imul(A,he)|0,E=E+Math.imul(A,fe)|0,Y=Y+Math.imul(ie,be)|0,g=g+Math.imul(ie,Ae)|0,g=g+Math.imul(F,be)|0,E=E+Math.imul(F,Ae)|0,Y=Y+Math.imul(bt,Ve)|0,g=g+Math.imul(bt,Ke)|0,g=g+Math.imul(xt,Ve)|0,E=E+Math.imul(xt,Ke)|0,Y=Y+Math.imul(H,Xe)|0,g=g+Math.imul(H,$e)|0,g=g+Math.imul(ft,Xe)|0,E=E+Math.imul(ft,$e)|0,Y=Y+Math.imul(Be,an)|0,g=g+Math.imul(Be,cn)|0,g=g+Math.imul(y,an)|0,E=E+Math.imul(y,cn)|0,Y=Y+Math.imul(Oe,un)|0,g=g+Math.imul(Oe,fn)|0,g=g+Math.imul(Ie,un)|0,E=E+Math.imul(Ie,fn)|0,Y=Y+Math.imul(Ee,ln)|0,g=g+Math.imul(Ee,dn)|0,g=g+Math.imul(jt,ln)|0,E=E+Math.imul(jt,dn)|0;var Ao=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(Ao>>>26)|0,Ao&=67108863,Y=Math.imul(z,he),g=Math.imul(z,fe),g=g+Math.imul(ot,he)|0,E=Math.imul(ot,fe),Y=Y+Math.imul(N,be)|0,g=g+Math.imul(N,Ae)|0,g=g+Math.imul(A,be)|0,E=E+Math.imul(A,Ae)|0,Y=Y+Math.imul(ie,Ve)|0,g=g+Math.imul(ie,Ke)|0,g=g+Math.imul(F,Ve)|0,E=E+Math.imul(F,Ke)|0,Y=Y+Math.imul(bt,Xe)|0,g=g+Math.imul(bt,$e)|0,g=g+Math.imul(xt,Xe)|0,E=E+Math.imul(xt,$e)|0,Y=Y+Math.imul(H,an)|0,g=g+Math.imul(H,cn)|0,g=g+Math.imul(ft,an)|0,E=E+Math.imul(ft,cn)|0,Y=Y+Math.imul(Be,un)|0,g=g+Math.imul(Be,fn)|0,g=g+Math.imul(y,un)|0,E=E+Math.imul(y,fn)|0,Y=Y+Math.imul(Oe,ln)|0,g=g+Math.imul(Oe,dn)|0,g=g+Math.imul(Ie,ln)|0,E=E+Math.imul(Ie,dn)|0;var Io=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(Io>>>26)|0,Io&=67108863,Y=Math.imul(z,be),g=Math.imul(z,Ae),g=g+Math.imul(ot,be)|0,E=Math.imul(ot,Ae),Y=Y+Math.imul(N,Ve)|0,g=g+Math.imul(N,Ke)|0,g=g+Math.imul(A,Ve)|0,E=E+Math.imul(A,Ke)|0,Y=Y+Math.imul(ie,Xe)|0,g=g+Math.imul(ie,$e)|0,g=g+Math.imul(F,Xe)|0,E=E+Math.imul(F,$e)|0,Y=Y+Math.imul(bt,an)|0,g=g+Math.imul(bt,cn)|0,g=g+Math.imul(xt,an)|0,E=E+Math.imul(xt,cn)|0,Y=Y+Math.imul(H,un)|0,g=g+Math.imul(H,fn)|0,g=g+Math.imul(ft,un)|0,E=E+Math.imul(ft,fn)|0,Y=Y+Math.imul(Be,ln)|0,g=g+Math.imul(Be,dn)|0,g=g+Math.imul(y,ln)|0,E=E+Math.imul(y,dn)|0;var ko=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(ko>>>26)|0,ko&=67108863,Y=Math.imul(z,Ve),g=Math.imul(z,Ke),g=g+Math.imul(ot,Ve)|0,E=Math.imul(ot,Ke),Y=Y+Math.imul(N,Xe)|0,g=g+Math.imul(N,$e)|0,g=g+Math.imul(A,Xe)|0,E=E+Math.imul(A,$e)|0,Y=Y+Math.imul(ie,an)|0,g=g+Math.imul(ie,cn)|0,g=g+Math.imul(F,an)|0,E=E+Math.imul(F,cn)|0,Y=Y+Math.imul(bt,un)|0,g=g+Math.imul(bt,fn)|0,g=g+Math.imul(xt,un)|0,E=E+Math.imul(xt,fn)|0,Y=Y+Math.imul(H,ln)|0,g=g+Math.imul(H,dn)|0,g=g+Math.imul(ft,ln)|0,E=E+Math.imul(ft,dn)|0;var We=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(We>>>26)|0,We&=67108863,Y=Math.imul(z,Xe),g=Math.imul(z,$e),g=g+Math.imul(ot,Xe)|0,E=Math.imul(ot,$e),Y=Y+Math.imul(N,an)|0,g=g+Math.imul(N,cn)|0,g=g+Math.imul(A,an)|0,E=E+Math.imul(A,cn)|0,Y=Y+Math.imul(ie,un)|0,g=g+Math.imul(ie,fn)|0,g=g+Math.imul(F,un)|0,E=E+Math.imul(F,fn)|0,Y=Y+Math.imul(bt,ln)|0,g=g+Math.imul(bt,dn)|0,g=g+Math.imul(xt,ln)|0,E=E+Math.imul(xt,dn)|0;var Oo=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(Oo>>>26)|0,Oo&=67108863,Y=Math.imul(z,an),g=Math.imul(z,cn),g=g+Math.imul(ot,an)|0,E=Math.imul(ot,cn),Y=Y+Math.imul(N,un)|0,g=g+Math.imul(N,fn)|0,g=g+Math.imul(A,un)|0,E=E+Math.imul(A,fn)|0,Y=Y+Math.imul(ie,ln)|0,g=g+Math.imul(ie,dn)|0,g=g+Math.imul(F,ln)|0,E=E+Math.imul(F,dn)|0;var jn=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(jn>>>26)|0,jn&=67108863,Y=Math.imul(z,un),g=Math.imul(z,fn),g=g+Math.imul(ot,un)|0,E=Math.imul(ot,fn),Y=Y+Math.imul(N,ln)|0,g=g+Math.imul(N,dn)|0,g=g+Math.imul(A,ln)|0,E=E+Math.imul(A,dn)|0;var Vi=(ut+Y|0)+((g&8191)<<13)|0;ut=(E+(g>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,Y=Math.imul(z,ln),g=Math.imul(z,dn),g=g+Math.imul(ot,ln)|0,E=Math.imul(ot,dn);var Hi=(ut+Y|0)+((g&8191)<<13)|0;return ut=(E+(g>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,et[0]=go,et[1]=mo,et[2]=vo,et[3]=yo,et[4]=wo,et[5]=bo,et[6]=_o,et[7]=Eo,et[8]=Ro,et[9]=So,et[10]=Sn,et[11]=Ao,et[12]=Io,et[13]=ko,et[14]=We,et[15]=Oo,et[16]=jn,et[17]=Vi,et[18]=Hi,ut!==0&&(et[19]=ut,U.length++),U};Math.imul||(J=G);function $(D,h,I){I.negative=h.negative^D.negative,I.length=D.length+h.length;for(var U=0,j=0,X=0;X<I.length-1;X++){var et=j;j=0;for(var ut=U&67108863,Y=Math.min(X,h.length-1),g=Math.max(0,X-D.length+1);g<=Y;g++){var E=X-g,K=D.words[E]|0,Z=h.words[g]|0,ht=K*Z,It=ht&67108863;et=et+(ht/67108864|0)|0,It=It+ut|0,ut=It&67108863,et=et+(It>>>26)|0,j+=et>>>26,et&=67108863}I.words[X]=ut,U=et,et=j}return U!==0?I.words[X]=U:I.length--,I._strip()}function nt(D,h,I){return $(D,h,I)}i.prototype.mulTo=function(h,I){var U,j=this.length+h.length;return this.length===10&&h.length===10?U=J(this,h,I):j<63?U=G(this,h,I):j<1024?U=$(this,h,I):U=nt(this,h,I),U},i.prototype.mul=function(h){var I=new i(null);return I.words=new Array(this.length+h.length),this.mulTo(h,I)},i.prototype.mulf=function(h){var I=new i(null);return I.words=new Array(this.length+h.length),nt(this,h,I)},i.prototype.imul=function(h){return this.clone().mulTo(h,this)},i.prototype.imuln=function(h){var I=h<0;I&&(h=-h),e(typeof h=="number"),e(h<67108864);for(var U=0,j=0;j<this.length;j++){var X=(this.words[j]|0)*h,et=(X&67108863)+(U&67108863);U>>=26,U+=X/67108864|0,U+=et>>>26,this.words[j]=et&67108863}return U!==0&&(this.words[j]=U,this.length++),this.length=h===0?1:this.length,I?this.ineg():this},i.prototype.muln=function(h){return this.clone().imuln(h)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(h){var I=V(h);if(I.length===0)return new i(1);for(var U=this,j=0;j<I.length&&I[j]===0;j++,U=U.sqr());if(++j<I.length)for(var X=U.sqr();j<I.length;j++,X=X.sqr())I[j]!==0&&(U=U.mul(X));return U},i.prototype.iushln=function(h){e(typeof h=="number"&&h>=0);var I=h%26,U=(h-I)/26,j=67108863>>>26-I<<26-I,X;if(I!==0){var et=0;for(X=0;X<this.length;X++){var ut=this.words[X]&j,Y=(this.words[X]|0)-ut<<I;this.words[X]=Y|et,et=ut>>>26-I}et&&(this.words[X]=et,this.length++)}if(U!==0){for(X=this.length-1;X>=0;X--)this.words[X+U]=this.words[X];for(X=0;X<U;X++)this.words[X]=0;this.length+=U}return this._strip()},i.prototype.ishln=function(h){return e(this.negative===0),this.iushln(h)},i.prototype.iushrn=function(h,I,U){e(typeof h=="number"&&h>=0);var j;I?j=(I-I%26)/26:j=0;var X=h%26,et=Math.min((h-X)/26,this.length),ut=67108863^67108863>>>X<<X,Y=U;if(j-=et,j=Math.max(0,j),Y){for(var g=0;g<et;g++)Y.words[g]=this.words[g];Y.length=et}if(et!==0)if(this.length>et)for(this.length-=et,g=0;g<this.length;g++)this.words[g]=this.words[g+et];else this.words[0]=0,this.length=1;var E=0;for(g=this.length-1;g>=0&&(E!==0||g>=j);g--){var K=this.words[g]|0;this.words[g]=E<<26-X|K>>>X,E=K&ut}return Y&&E!==0&&(Y.words[Y.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(h,I,U){return e(this.negative===0),this.iushrn(h,I,U)},i.prototype.shln=function(h){return this.clone().ishln(h)},i.prototype.ushln=function(h){return this.clone().iushln(h)},i.prototype.shrn=function(h){return this.clone().ishrn(h)},i.prototype.ushrn=function(h){return this.clone().iushrn(h)},i.prototype.testn=function(h){e(typeof h=="number"&&h>=0);var I=h%26,U=(h-I)/26,j=1<<I;if(this.length<=U)return!1;var X=this.words[U];return!!(X&j)},i.prototype.imaskn=function(h){e(typeof h=="number"&&h>=0);var I=h%26,U=(h-I)/26;if(e(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(I!==0&&U++,this.length=Math.min(U,this.length),I!==0){var j=67108863^67108863>>>I<<I;this.words[this.length-1]&=j}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.maskn=function(h){return this.clone().imaskn(h)},i.prototype.iaddn=function(h){return e(typeof h=="number"),e(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<=h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},i.prototype._iaddn=function(h){this.words[0]+=h;for(var I=0;I<this.length&&this.words[I]>=67108864;I++)this.words[I]-=67108864,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},i.prototype.isubn=function(h){if(e(typeof h=="number"),e(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I<this.length&&this.words[I]<0;I++)this.words[I]+=67108864,this.words[I+1]-=1;return this._strip()},i.prototype.addn=function(h){return this.clone().iaddn(h)},i.prototype.subn=function(h){return this.clone().isubn(h)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(h,I,U){var j=h.length+U,X;this._expand(j);var et,ut=0;for(X=0;X<h.length;X++){et=(this.words[X+U]|0)+ut;var Y=(h.words[X]|0)*I;et-=Y&67108863,ut=(et>>26)-(Y/67108864|0),this.words[X+U]=et&67108863}for(;X<this.length-U;X++)et=(this.words[X+U]|0)+ut,ut=et>>26,this.words[X+U]=et&67108863;if(ut===0)return this._strip();for(e(ut===-1),ut=0,X=0;X<this.length;X++)et=-(this.words[X]|0)+ut,ut=et>>26,this.words[X]=et&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(h,I){var U=this.length-h.length,j=this.clone(),X=h,et=X.words[X.length-1]|0,ut=this._countBits(et);U=26-ut,U!==0&&(X=X.ushln(U),j.iushln(U),et=X.words[X.length-1]|0);var Y=j.length-X.length,g;if(I!=="mod"){g=new i(null),g.length=Y+1,g.words=new Array(g.length);for(var E=0;E<g.length;E++)g.words[E]=0}var K=j.clone()._ishlnsubmul(X,1,Y);K.negative===0&&(j=K,g&&(g.words[Y]=1));for(var Z=Y-1;Z>=0;Z--){var ht=(j.words[X.length+Z]|0)*67108864+(j.words[X.length+Z-1]|0);for(ht=Math.min(ht/et|0,67108863),j._ishlnsubmul(X,ht,Z);j.negative!==0;)ht--,j.negative=0,j._ishlnsubmul(X,1,Z),j.isZero()||(j.negative^=1);g&&(g.words[Z]=ht)}return g&&g._strip(),j._strip(),I!=="div"&&U!==0&&j.iushrn(U),{div:g||null,mod:j}},i.prototype.divmod=function(h,I,U){if(e(!h.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var j,X,et;return this.negative!==0&&h.negative===0?(et=this.neg().divmod(h,I),I!=="mod"&&(j=et.div.neg()),I!=="div"&&(X=et.mod.neg(),U&&X.negative!==0&&X.iadd(h)),{div:j,mod:X}):this.negative===0&&h.negative!==0?(et=this.divmod(h.neg(),I),I!=="mod"&&(j=et.div.neg()),{div:j,mod:et.mod}):(this.negative&h.negative)!==0?(et=this.neg().divmod(h.neg(),I),I!=="div"&&(X=et.mod.neg(),U&&X.negative!==0&&X.isub(h)),{div:et.div,mod:X}):h.length>this.length||this.cmp(h)<0?{div:new i(0),mod:this}:h.length===1?I==="div"?{div:this.divn(h.words[0]),mod:null}:I==="mod"?{div:null,mod:new i(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new i(this.modrn(h.words[0]))}:this._wordDiv(h,I)},i.prototype.div=function(h){return this.divmod(h,"div",!1).div},i.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},i.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},i.prototype.divRound=function(h){var I=this.divmod(h);if(I.mod.isZero())return I.div;var U=I.div.negative!==0?I.mod.isub(h):I.mod,j=h.ushrn(1),X=h.andln(1),et=U.cmp(j);return et<0||X===1&&et===0?I.div:I.div.negative!==0?I.div.isubn(1):I.div.iaddn(1)},i.prototype.modrn=function(h){var I=h<0;I&&(h=-h),e(h<=67108863);for(var U=(1<<26)%h,j=0,X=this.length-1;X>=0;X--)j=(U*j+(this.words[X]|0))%h;return I?-j:j},i.prototype.modn=function(h){return this.modrn(h)},i.prototype.idivn=function(h){var I=h<0;I&&(h=-h),e(h<=67108863);for(var U=0,j=this.length-1;j>=0;j--){var X=(this.words[j]|0)+U*67108864;this.words[j]=X/h|0,U=X%h}return this._strip(),I?this.ineg():this},i.prototype.divn=function(h){return this.clone().idivn(h)},i.prototype.egcd=function(h){e(h.negative===0),e(!h.isZero());var I=this,U=h.clone();I.negative!==0?I=I.umod(h):I=I.clone();for(var j=new i(1),X=new i(0),et=new i(0),ut=new i(1),Y=0;I.isEven()&&U.isEven();)I.iushrn(1),U.iushrn(1),++Y;for(var g=U.clone(),E=I.clone();!I.isZero();){for(var K=0,Z=1;(I.words[0]&Z)===0&&K<26;++K,Z<<=1);if(K>0)for(I.iushrn(K);K-- >0;)(j.isOdd()||X.isOdd())&&(j.iadd(g),X.isub(E)),j.iushrn(1),X.iushrn(1);for(var ht=0,It=1;(U.words[0]&It)===0&&ht<26;++ht,It<<=1);if(ht>0)for(U.iushrn(ht);ht-- >0;)(et.isOdd()||ut.isOdd())&&(et.iadd(g),ut.isub(E)),et.iushrn(1),ut.iushrn(1);I.cmp(U)>=0?(I.isub(U),j.isub(et),X.isub(ut)):(U.isub(I),et.isub(j),ut.isub(X))}return{a:et,b:ut,gcd:U.iushln(Y)}},i.prototype._invmp=function(h){e(h.negative===0),e(!h.isZero());var I=this,U=h.clone();I.negative!==0?I=I.umod(h):I=I.clone();for(var j=new i(1),X=new i(0),et=U.clone();I.cmpn(1)>0&&U.cmpn(1)>0;){for(var ut=0,Y=1;(I.words[0]&Y)===0&&ut<26;++ut,Y<<=1);if(ut>0)for(I.iushrn(ut);ut-- >0;)j.isOdd()&&j.iadd(et),j.iushrn(1);for(var g=0,E=1;(U.words[0]&E)===0&&g<26;++g,E<<=1);if(g>0)for(U.iushrn(g);g-- >0;)X.isOdd()&&X.iadd(et),X.iushrn(1);I.cmp(U)>=0?(I.isub(U),j.isub(X)):(U.isub(I),X.isub(j))}var K;return I.cmpn(1)===0?K=j:K=X,K.cmpn(0)<0&&K.iadd(h),K},i.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var I=this.clone(),U=h.clone();I.negative=0,U.negative=0;for(var j=0;I.isEven()&&U.isEven();j++)I.iushrn(1),U.iushrn(1);do{for(;I.isEven();)I.iushrn(1);for(;U.isEven();)U.iushrn(1);var X=I.cmp(U);if(X<0){var et=I;I=U,U=et}else if(X===0||U.cmpn(1)===0)break;I.isub(U)}while(!0);return U.iushln(j)},i.prototype.invm=function(h){return this.egcd(h).a.umod(h)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(h){return this.words[0]&h},i.prototype.bincn=function(h){e(typeof h=="number");var I=h%26,U=(h-I)/26,j=1<<I;if(this.length<=U)return this._expand(U+1),this.words[U]|=j,this;for(var X=j,et=U;X!==0&&et<this.length;et++){var ut=this.words[et]|0;ut+=X,X=ut>>>26,ut&=67108863,this.words[et]=ut}return X!==0&&(this.words[et]=X,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(h){var I=h<0;if(this.negative!==0&&!I)return-1;if(this.negative===0&&I)return 1;this._strip();var U;if(this.length>1)U=1;else{I&&(h=-h),e(h<=67108863,"Number is too big");var j=this.words[0]|0;U=j===h?0:j<h?-1:1}return this.negative!==0?-U|0:U},i.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var I=this.ucmp(h);return this.negative!==0?-I|0:I},i.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var I=0,U=this.length-1;U>=0;U--){var j=this.words[U]|0,X=h.words[U]|0;if(j!==X){j<X?I=-1:j>X&&(I=1);break}}return I},i.prototype.gtn=function(h){return this.cmpn(h)===1},i.prototype.gt=function(h){return this.cmp(h)===1},i.prototype.gten=function(h){return this.cmpn(h)>=0},i.prototype.gte=function(h){return this.cmp(h)>=0},i.prototype.ltn=function(h){return this.cmpn(h)===-1},i.prototype.lt=function(h){return this.cmp(h)===-1},i.prototype.lten=function(h){return this.cmpn(h)<=0},i.prototype.lte=function(h){return this.cmp(h)<=0},i.prototype.eqn=function(h){return this.cmpn(h)===0},i.prototype.eq=function(h){return this.cmp(h)===0},i.red=function(h){return new vt(h)},i.prototype.toRed=function(h){return e(!this.red,"Already a number in reduction context"),e(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},i.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(h){return this.red=h,this},i.prototype.forceRed=function(h){return e(!this.red,"Already a number in reduction context"),this._forceRed(h)},i.prototype.redAdd=function(h){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},i.prototype.redIAdd=function(h){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},i.prototype.redSub=function(h){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},i.prototype.redISub=function(h){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},i.prototype.redShl=function(h){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},i.prototype.redMul=function(h){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},i.prototype.redIMul=function(h){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},i.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(h){return e(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var pt={k256:null,p224:null,p192:null,p25519:null};function lt(D,h){this.name=D,this.p=new i(h,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}lt.prototype._tmp=function(){var h=new i(null);return h.words=new Array(Math.ceil(this.n/13)),h},lt.prototype.ireduce=function(h){var I=h,U;do this.split(I,this.tmp),I=this.imulK(I),I=I.iadd(this.tmp),U=I.bitLength();while(U>this.n);var j=U<this.n?-1:I.ucmp(this.p);return j===0?(I.words[0]=0,I.length=1):j>0?I.isub(this.p):I.strip!==void 0?I.strip():I._strip(),I},lt.prototype.split=function(h,I){h.iushrn(this.n,0,I)},lt.prototype.imulK=function(h){return h.imul(this.k)};function St(){lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(St,lt),St.prototype.split=function(h,I){for(var U=4194303,j=Math.min(h.length,9),X=0;X<j;X++)I.words[X]=h.words[X];if(I.length=j,h.length<=9){h.words[0]=0,h.length=1;return}var et=h.words[9];for(I.words[I.length++]=et&U,X=10;X<h.length;X++){var ut=h.words[X]|0;h.words[X-10]=(ut&U)<<4|et>>>22,et=ut}et>>>=22,h.words[X-10]=et,et===0&&h.length>10?h.length-=10:h.length-=9},St.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var I=0,U=0;U<h.length;U++){var j=h.words[U]|0;I+=j*977,h.words[U]=I&67108863,I=j*64+(I/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function At(){lt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(At,lt);function st(){lt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(st,lt);function dt(){lt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(dt,lt),dt.prototype.imulK=function(h){for(var I=0,U=0;U<h.length;U++){var j=(h.words[U]|0)*19+I,X=j&67108863;j>>>=26,h.words[U]=X,I=j}return I!==0&&(h.words[h.length++]=I),h},i._prime=function(h){if(pt[h])return pt[h];var I;if(h==="k256")I=new St;else if(h==="p224")I=new At;else if(h==="p192")I=new st;else if(h==="p25519")I=new dt;else throw new Error("Unknown prime "+h);return pt[h]=I,I};function vt(D){if(typeof D=="string"){var h=i._prime(D);this.m=h.p,this.prime=h}else e(D.gtn(1),"modulus must be greater than 1"),this.m=D,this.prime=null}vt.prototype._verify1=function(h){e(h.negative===0,"red works only with positives"),e(h.red,"red works only with red numbers")},vt.prototype._verify2=function(h,I){e((h.negative|I.negative)===0,"red works only with positives"),e(h.red&&h.red===I.red,"red works only with red numbers")},vt.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(S(h,h.umod(this.m)._forceRed(this)),h)},vt.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},vt.prototype.add=function(h,I){this._verify2(h,I);var U=h.add(I);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},vt.prototype.iadd=function(h,I){this._verify2(h,I);var U=h.iadd(I);return U.cmp(this.m)>=0&&U.isub(this.m),U},vt.prototype.sub=function(h,I){this._verify2(h,I);var U=h.sub(I);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},vt.prototype.isub=function(h,I){this._verify2(h,I);var U=h.isub(I);return U.cmpn(0)<0&&U.iadd(this.m),U},vt.prototype.shl=function(h,I){return this._verify1(h),this.imod(h.ushln(I))},vt.prototype.imul=function(h,I){return this._verify2(h,I),this.imod(h.imul(I))},vt.prototype.mul=function(h,I){return this._verify2(h,I),this.imod(h.mul(I))},vt.prototype.isqr=function(h){return this.imul(h,h.clone())},vt.prototype.sqr=function(h){return this.mul(h,h)},vt.prototype.sqrt=function(h){if(h.isZero())return h.clone();var I=this.m.andln(3);if(e(I%2===1),I===3){var U=this.m.add(new i(1)).iushrn(2);return this.pow(h,U)}for(var j=this.m.subn(1),X=0;!j.isZero()&&j.andln(1)===0;)X++,j.iushrn(1);e(!j.isZero());var et=new i(1).toRed(this),ut=et.redNeg(),Y=this.m.subn(1).iushrn(1),g=this.m.bitLength();for(g=new i(2*g*g).toRed(this);this.pow(g,Y).cmp(ut)!==0;)g.redIAdd(ut);for(var E=this.pow(g,j),K=this.pow(h,j.addn(1).iushrn(1)),Z=this.pow(h,j),ht=X;Z.cmp(et)!==0;){for(var It=Z,Ft=0;It.cmp(et)!==0;Ft++)It=It.redSqr();e(Ft<ht);var Kt=this.pow(E,new i(1).iushln(ht-Ft-1));K=K.redMul(Kt),E=Kt.redSqr(),Z=Z.redMul(E),ht=Ft}return K},vt.prototype.invm=function(h){var I=h._invmp(this.m);return I.negative!==0?(I.negative=0,this.imod(I).redNeg()):this.imod(I)},vt.prototype.pow=function(h,I){if(I.isZero())return new i(1).toRed(this);if(I.cmpn(1)===0)return h.clone();var U=4,j=new Array(1<<U);j[0]=new i(1).toRed(this),j[1]=h;for(var X=2;X<j.length;X++)j[X]=this.mul(j[X-1],h);var et=j[0],ut=0,Y=0,g=I.bitLength()%26;for(g===0&&(g=26),X=I.length-1;X>=0;X--){for(var E=I.words[X],K=g-1;K>=0;K--){var Z=E>>K&1;if(et!==j[0]&&(et=this.sqr(et)),Z===0&&ut===0){Y=0;continue}ut<<=1,ut|=Z,Y++,!(Y!==U&&(X!==0||K!==0))&&(et=this.mul(et,j[ut]),Y=0,ut=0)}g=26}return et},vt.prototype.convertTo=function(h){var I=h.umod(this.m);return I===h?I.clone():I},vt.prototype.convertFrom=function(h){var I=h.clone();return I.red=null,I},i.mont=function(h){return new wt(h)};function wt(D){vt.call(this,D),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}o(wt,vt),wt.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},wt.prototype.convertFrom=function(h){var I=this.imod(h.mul(this.rinv));return I.red=null,I},wt.prototype.imul=function(h,I){if(h.isZero()||I.isZero())return h.words[0]=0,h.length=1,h;var U=h.imul(I),j=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=U.isub(j).iushrn(this.shift),et=X;return X.cmp(this.m)>=0?et=X.isub(this.m):X.cmpn(0)<0&&(et=X.iadd(this.m)),et._forceRed(this)},wt.prototype.mul=function(h,I){if(h.isZero()||I.isZero())return new i(0)._forceRed(this);var U=h.mul(I),j=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=U.isub(j).iushrn(this.shift),et=X;return X.cmp(this.m)>=0?et=X.isub(this.m):X.cmpn(0)<0&&(et=X.iadd(this.m)),et._forceRed(this)},wt.prototype.invm=function(h){var I=this.imod(h._invmp(this.m).mul(this.r2));return I._forceRed(this)}})(r,p1)})(Xo)),Xo.exports}var g1=Vu();const Hu=qi(g1);var Jo={exports:{}};var Wu;function zu(){return Wu||(Wu=1,(function(r,t){var n=qs(),e=n.Buffer;function o(c,d){for(var f in c)d[f]=c[f]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?r.exports=n:(o(n,t),t.Buffer=i);function i(c,d,f){return e(c,d,f)}i.prototype=Object.create(e.prototype),o(e,i),i.from=function(c,d,f){if(typeof c=="number")throw new TypeError("Argument must not be a number");return e(c,d,f)},i.alloc=function(c,d,f){if(typeof c!="number")throw new TypeError("Argument must be a number");var p=e(c);return d!==void 0?typeof f=="string"?p.fill(d,f):p.fill(d):p.fill(0),p},i.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return e(c)},i.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(c)}})(Jo,Jo.exports)),Jo.exports}var fa,Gu;function m1(){if(Gu)return fa;Gu=1;var r=zu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),o=0;o<e.length;o++)e[o]=255;for(var i=0;i<n.length;i++){var c=n.charAt(i),d=c.charCodeAt(0);if(e[d]!==255)throw new TypeError(c+" is ambiguous");e[d]=i}var f=n.length,p=n.charAt(0),S=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function T(M){if((Array.isArray(M)||M instanceof Uint8Array)&&(M=r.from(M)),!r.isBuffer(M))throw new TypeError("Expected Buffer");if(M.length===0)return"";for(var V=0,G=0,J=0,$=M.length;J!==$&&M[J]===0;)J++,V++;for(var nt=($-J)*x+1>>>0,pt=new Uint8Array(nt);J!==$;){for(var lt=M[J],St=0,At=nt-1;(lt!==0||St<G)&&At!==-1;At--,St++)lt+=256*pt[At]>>>0,pt[At]=lt%f>>>0,lt=lt/f>>>0;if(lt!==0)throw new Error("Non-zero carry");G=St,J++}for(var st=nt-G;st!==nt&&pt[st]===0;)st++;for(var dt=p.repeat(V);st<nt;++st)dt+=n.charAt(pt[st]);return dt}function k(M){if(typeof M!="string")throw new TypeError("Expected String");if(M.length===0)return r.alloc(0);for(var V=0,G=0,J=0;M[V]===p;)G++,V++;for(var $=(M.length-V)*S+1>>>0,nt=new Uint8Array($);V<M.length;){var pt=M.charCodeAt(V);if(pt>255)return;var lt=e[pt];if(lt===255)return;for(var St=0,At=$-1;(lt!==0||St<J)&&At!==-1;At--,St++)lt+=f*nt[At]>>>0,nt[At]=lt%256>>>0,lt=lt/256>>>0;if(lt!==0)throw new Error("Non-zero carry");J=St,V++}for(var st=$-J;st!==$&&nt[st]===0;)st++;var dt=r.allocUnsafe(G+($-st));dt.fill(0,0,G);for(var vt=G;st!==$;)dt[vt++]=nt[st++];return dt}function C(M){var V=k(M);if(V)return V;throw new Error("Non-base"+f+" character")}return{encode:T,decodeUnsafe:k,decode:C}}return fa=t,fa}var la,Ku;function v1(){if(Ku)return la;Ku=1;var r=m1(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return la=r(t),la}var y1=v1();const On=qi(y1),ju=fu;var Ge={},da,Yu;function w1(){if(Yu)return da;Yu=1;var r=zu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),o=0;o<e.length;o++)e[o]=255;for(var i=0;i<n.length;i++){var c=n.charAt(i),d=c.charCodeAt(0);if(e[d]!==255)throw new TypeError(c+" is ambiguous");e[d]=i}var f=n.length,p=n.charAt(0),S=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function T(M){if((Array.isArray(M)||M instanceof Uint8Array)&&(M=r.from(M)),!r.isBuffer(M))throw new TypeError("Expected Buffer");if(M.length===0)return"";for(var V=0,G=0,J=0,$=M.length;J!==$&&M[J]===0;)J++,V++;for(var nt=($-J)*x+1>>>0,pt=new Uint8Array(nt);J!==$;){for(var lt=M[J],St=0,At=nt-1;(lt!==0||St<G)&&At!==-1;At--,St++)lt+=256*pt[At]>>>0,pt[At]=lt%f>>>0,lt=lt/f>>>0;if(lt!==0)throw new Error("Non-zero carry");G=St,J++}for(var st=nt-G;st!==nt&&pt[st]===0;)st++;for(var dt=p.repeat(V);st<nt;++st)dt+=n.charAt(pt[st]);return dt}function k(M){if(typeof M!="string")throw new TypeError("Expected String");if(M.length===0)return r.alloc(0);for(var V=0,G=0,J=0;M[V]===p;)G++,V++;for(var $=(M.length-V)*S+1>>>0,nt=new Uint8Array($);V<M.length;){var pt=M.charCodeAt(V);if(pt>255)return;var lt=e[pt];if(lt===255)return;for(var St=0,At=$-1;(lt!==0||St<J)&&At!==-1;At--,St++)lt+=f*nt[At]>>>0,nt[At]=lt%256>>>0,lt=lt/256>>>0;if(lt!==0)throw new Error("Non-zero carry");J=St,V++}for(var st=$-J;st!==$&&nt[st]===0;)st++;var dt=r.allocUnsafe(G+($-st));dt.fill(0,0,G);for(var vt=G;st!==$;)dt[vt++]=nt[st++];return dt}function C(M){var V=k(M);if(V)return V;throw new Error("Non-base"+f+" character")}return{encode:T,decodeUnsafe:k,decode:C}}return da=t,da}var ha,qu;function b1(){if(qu)return ha;qu=1;var r=w1(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return ha=r(t),ha}function Rr(r,t,n){return t<=r&&r<=n}function Qo(r){if(r===void 0)return{};if(r===Object(r))return r;throw TypeError("Could not convert argument to dictionary")}function _1(r){for(var t=String(r),n=t.length,e=0,o=[];e<n;){var i=t.charCodeAt(e);if(i<55296||i>57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(e===n-1)o.push(65533);else{var c=r.charCodeAt(e+1);if(56320<=c&&c<=57343){var d=i&1023,f=c&1023;o.push(65536+(d<<10)+f),e+=1}else o.push(65533)}e+=1}return o}function E1(r){for(var t="",n=0;n<r.length;++n){var e=r[n];e<=65535?t+=String.fromCharCode(e):(e-=65536,t+=String.fromCharCode((e>>10)+55296,(e&1023)+56320))}return t}var ts=-1;function pa(r){this.tokens=[].slice.call(r)}pa.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():ts},prepend:function(r){if(Array.isArray(r))for(var t=r;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(r)},push:function(r){if(Array.isArray(r))for(var t=r;t.length;)this.tokens.push(t.shift());else this.tokens.push(r)}};var Si=-1;function ga(r,t){if(r)throw TypeError("Decoder error");return t||65533}var es="utf-8";function ns(r,t){if(!(this instanceof ns))return new ns(r,t);if(r=r!==void 0?String(r).toLowerCase():es,r!==es)throw new Error("Encoding not supported. Only utf-8 is supported");t=Qo(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}ns.prototype={decode:function(t,n){var e;typeof t=="object"&&t instanceof ArrayBuffer?e=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):e=new Uint8Array(0),n=Qo(n),this._streaming||(this._decoder=new R1({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var o=new pa(e),i=[],c;!o.endOfStream()&&(c=this._decoder.handler(o,o.read()),c!==Si);)c!==null&&(Array.isArray(c)?i.push.apply(i,c):i.push(c));if(!this._streaming){do{if(c=this._decoder.handler(o,o.read()),c===Si)break;c!==null&&(Array.isArray(c)?i.push.apply(i,c):i.push(c))}while(!o.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),E1(i)}};function rs(r,t){if(!(this instanceof rs))return new rs(r,t);if(r=r!==void 0?String(r).toLowerCase():es,r!==es)throw new Error("Encoding not supported. Only utf-8 is supported");t=Qo(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}rs.prototype={encode:function(t,n){t=t?String(t):"",n=Qo(n),this._streaming||(this._encoder=new S1(this._options)),this._streaming=!!n.stream;for(var e=[],o=new pa(_1(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Si);)Array.isArray(i)?e.push.apply(e,i):e.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Si;)Array.isArray(i)?e.push.apply(e,i):e.push(i);this._encoder=null}return new Uint8Array(e)}};function R1(r){var t=r.fatal,n=0,e=0,o=0,i=128,c=191;this.handler=function(d,f){if(f===ts&&o!==0)return o=0,ga(t);if(f===ts)return Si;if(o===0){if(Rr(f,0,127))return f;if(Rr(f,194,223))o=1,n=f-192;else if(Rr(f,224,239))f===224&&(i=160),f===237&&(c=159),o=2,n=f-224;else if(Rr(f,240,244))f===240&&(i=144),f===244&&(c=143),o=3,n=f-240;else return ga(t);return n=n<<6*o,null}if(!Rr(f,i,c))return n=o=e=0,i=128,c=191,d.prepend(f),ga(t);if(i=128,c=191,e+=1,n+=f-128<<6*(o-e),e!==o)return null;var p=n;return n=o=e=0,p}}function S1(r){r.fatal,this.handler=function(t,n){if(n===ts)return Si;if(Rr(n,0,127))return n;var e,o;Rr(n,128,2047)?(e=1,o=192):Rr(n,2048,65535)?(e=2,o=224):Rr(n,65536,1114111)&&(e=3,o=240);for(var i=[(n>>6*e)+o];e>0;){var c=n>>6*(e-1);i.push(128|c&63),e-=1}return i}}const A1=js(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:ns,TextEncoder:rs},Symbol.toStringTag,{value:"Module"})));var Zu;function I1(){if(Zu)return Ge;Zu=1;var r=Ge&&Ge.__createBinding||(Object.create?(function(st,dt,vt,wt){wt===void 0&&(wt=vt),Object.defineProperty(st,wt,{enumerable:!0,get:function(){return dt[vt]}})}):(function(st,dt,vt,wt){wt===void 0&&(wt=vt),st[wt]=dt[vt]})),t=Ge&&Ge.__setModuleDefault||(Object.create?(function(st,dt){Object.defineProperty(st,"default",{enumerable:!0,value:dt})}):function(st,dt){st.default=dt}),n=Ge&&Ge.__decorate||function(st,dt,vt,wt){var D=arguments.length,h=D<3?dt:wt===null?wt=Object.getOwnPropertyDescriptor(dt,vt):wt,I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(st,dt,vt,wt);else for(var U=st.length-1;U>=0;U--)(I=st[U])&&(h=(D<3?I(h):D>3?I(dt,vt,h):I(dt,vt))||h);return D>3&&h&&Object.defineProperty(dt,vt,h),h},e=Ge&&Ge.__importStar||function(st){if(st&&st.__esModule)return st;var dt={};if(st!=null)for(var vt in st)vt!=="default"&&Object.hasOwnProperty.call(st,vt)&&r(dt,st,vt);return t(dt,st),dt},o=Ge&&Ge.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.deserializeUnchecked=Ge.deserialize=Ge.serialize=Ge.BinaryReader=Ge.BinaryWriter=Ge.BorshError=Ge.baseDecode=Ge.baseEncode=void 0;const i=o(Vu()),c=o(b1()),d=e(A1),f=typeof TextDecoder!="function"?d.TextDecoder:TextDecoder,p=new f("utf-8",{fatal:!0});function S(st){return typeof st=="string"&&(st=Buffer.from(st,"utf8")),c.default.encode(Buffer.from(st))}Ge.baseEncode=S;function x(st){return Buffer.from(c.default.decode(st))}Ge.baseDecode=x;const T=1024;class k extends Error{constructor(dt){super(dt),this.fieldPath=[],this.originalMessage=dt}addToFieldPath(dt){this.fieldPath.splice(0,0,dt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ge.BorshError=k;class C{constructor(){this.buf=Buffer.alloc(T),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(T)]))}writeU8(dt){this.maybeResize(),this.buf.writeUInt8(dt,this.length),this.length+=1}writeU16(dt){this.maybeResize(),this.buf.writeUInt16LE(dt,this.length),this.length+=2}writeU32(dt){this.maybeResize(),this.buf.writeUInt32LE(dt,this.length),this.length+=4}writeU64(dt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(dt).toArray("le",8)))}writeU128(dt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(dt).toArray("le",16)))}writeU256(dt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(dt).toArray("le",32)))}writeU512(dt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(dt).toArray("le",64)))}writeBuffer(dt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),dt,Buffer.alloc(T)]),this.length+=dt.length}writeString(dt){this.maybeResize();const vt=Buffer.from(dt,"utf8");this.writeU32(vt.length),this.writeBuffer(vt)}writeFixedArray(dt){this.writeBuffer(Buffer.from(dt))}writeArray(dt,vt){this.maybeResize(),this.writeU32(dt.length);for(const wt of dt)this.maybeResize(),vt(wt)}toArray(){return this.buf.subarray(0,this.length)}}Ge.BinaryWriter=C;function M(st,dt,vt){const wt=vt.value;vt.value=function(...D){try{return wt.apply(this,D)}catch(h){if(h instanceof RangeError){const I=h.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(I)>=0)throw new k("Reached the end of buffer when deserializing")}throw h}}}class V{constructor(dt){this.buf=dt,this.offset=0}readU8(){const dt=this.buf.readUInt8(this.offset);return this.offset+=1,dt}readU16(){const dt=this.buf.readUInt16LE(this.offset);return this.offset+=2,dt}readU32(){const dt=this.buf.readUInt32LE(this.offset);return this.offset+=4,dt}readU64(){const dt=this.readBuffer(8);return new i.default(dt,"le")}readU128(){const dt=this.readBuffer(16);return new i.default(dt,"le")}readU256(){const dt=this.readBuffer(32);return new i.default(dt,"le")}readU512(){const dt=this.readBuffer(64);return new i.default(dt,"le")}readBuffer(dt){if(this.offset+dt>this.buf.length)throw new k(`Expected buffer length ${dt} isn't within bounds`);const vt=this.buf.slice(this.offset,this.offset+dt);return this.offset+=dt,vt}readString(){const dt=this.readU32(),vt=this.readBuffer(dt);try{return p.decode(vt)}catch(wt){throw new k(`Error decoding UTF-8 string: ${wt}`)}}readFixedArray(dt){return new Uint8Array(this.readBuffer(dt))}readArray(dt){const vt=this.readU32(),wt=Array();for(let D=0;D<vt;++D)wt.push(dt());return wt}}n([M],V.prototype,"readU8",null),n([M],V.prototype,"readU16",null),n([M],V.prototype,"readU32",null),n([M],V.prototype,"readU64",null),n([M],V.prototype,"readU128",null),n([M],V.prototype,"readU256",null),n([M],V.prototype,"readU512",null),n([M],V.prototype,"readString",null),n([M],V.prototype,"readFixedArray",null),n([M],V.prototype,"readArray",null),Ge.BinaryReader=V;function G(st){return st.charAt(0).toUpperCase()+st.slice(1)}function J(st,dt,vt,wt,D){try{if(typeof wt=="string")D[`write${G(wt)}`](vt);else if(wt instanceof Array)if(typeof wt[0]=="number"){if(vt.length!==wt[0])throw new k(`Expecting byte array of length ${wt[0]}, but got ${vt.length} bytes`);D.writeFixedArray(vt)}else if(wt.length===2&&typeof wt[1]=="number"){if(vt.length!==wt[1])throw new k(`Expecting byte array of length ${wt[1]}, but got ${vt.length} bytes`);for(let h=0;h<wt[1];h++)J(st,null,vt[h],wt[0],D)}else D.writeArray(vt,h=>{J(st,dt,h,wt[0],D)});else if(wt.kind!==void 0)switch(wt.kind){case"option":{vt==null?D.writeU8(0):(D.writeU8(1),J(st,dt,vt,wt.type,D));break}case"map":{D.writeU32(vt.size),vt.forEach((h,I)=>{J(st,dt,I,wt.key,D),J(st,dt,h,wt.value,D)});break}default:throw new k(`FieldType ${wt} unrecognized`)}else $(st,vt,D)}catch(h){throw h instanceof k&&h.addToFieldPath(dt),h}}function $(st,dt,vt){if(typeof dt.borshSerialize=="function"){dt.borshSerialize(vt);return}const wt=st.get(dt.constructor);if(!wt)throw new k(`Class ${dt.constructor.name} is missing in schema`);if(wt.kind==="struct")wt.fields.map(([D,h])=>{J(st,D,dt[D],h,vt)});else if(wt.kind==="enum"){const D=dt[wt.field];for(let h=0;h<wt.values.length;++h){const[I,U]=wt.values[h];if(I===D){vt.writeU8(h),J(st,I,dt[I],U,vt);break}}}else throw new k(`Unexpected schema kind: ${wt.kind} for ${dt.constructor.name}`)}function nt(st,dt,vt=C){const wt=new vt;return $(st,dt,wt),wt.toArray()}Ge.serialize=nt;function pt(st,dt,vt,wt){try{if(typeof vt=="string")return wt[`read${G(vt)}`]();if(vt instanceof Array){if(typeof vt[0]=="number")return wt.readFixedArray(vt[0]);if(typeof vt[1]=="number"){const D=[];for(let h=0;h<vt[1];h++)D.push(pt(st,null,vt[0],wt));return D}else return wt.readArray(()=>pt(st,dt,vt[0],wt))}if(vt.kind==="option")return wt.readU8()?pt(st,dt,vt.type,wt):void 0;if(vt.kind==="map"){let D=new Map;const h=wt.readU32();for(let I=0;I<h;I++){const U=pt(st,dt,vt.key,wt),j=pt(st,dt,vt.value,wt);D.set(U,j)}return D}return lt(st,vt,wt)}catch(D){throw D instanceof k&&D.addToFieldPath(dt),D}}function lt(st,dt,vt){if(typeof dt.borshDeserialize=="function")return dt.borshDeserialize(vt);const wt=st.get(dt);if(!wt)throw new k(`Class ${dt.name} is missing in schema`);if(wt.kind==="struct"){const D={};for(const[h,I]of st.get(dt).fields)D[h]=pt(st,h,I,vt);return new dt(D)}if(wt.kind==="enum"){const D=vt.readU8();if(D>=wt.values.length)throw new k(`Enum index: ${D} is out of range`);const[h,I]=wt.values[D],U=pt(st,h,I,vt);return new dt({[h]:U})}throw new k(`Unexpected schema kind: ${wt.kind} for ${dt.constructor.name}`)}function St(st,dt,vt,wt=V){const D=new wt(vt),h=lt(st,dt,D);if(D.offset<vt.length)throw new k(`Unexpected ${vt.length-D.offset} bytes after deserialized data`);return h}Ge.deserialize=St;function At(st,dt,vt,wt=V){const D=new wt(vt);return lt(st,dt,D)}return Ge.deserializeUnchecked=At,Ge}var ma=I1(),kt={},$u;function k1(){if($u)return kt;$u=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.s16=kt.s8=kt.nu64be=kt.u48be=kt.u40be=kt.u32be=kt.u24be=kt.u16be=kt.nu64=kt.u48=kt.u40=kt.u32=kt.u24=kt.u16=kt.u8=kt.offset=kt.greedy=kt.Constant=kt.UTF8=kt.CString=kt.Blob=kt.Boolean=kt.BitField=kt.BitStructure=kt.VariantLayout=kt.Union=kt.UnionLayoutDiscriminator=kt.UnionDiscriminator=kt.Structure=kt.Sequence=kt.DoubleBE=kt.Double=kt.FloatBE=kt.Float=kt.NearInt64BE=kt.NearInt64=kt.NearUInt64BE=kt.NearUInt64=kt.IntBE=kt.Int=kt.UIntBE=kt.UInt=kt.OffsetLayout=kt.GreedyCount=kt.ExternalLayout=kt.bindConstructorLayout=kt.nameWithProperty=kt.Layout=kt.uint8ArrayToBuffer=kt.checkUint8Array=void 0,kt.constant=kt.utf8=kt.cstr=kt.blob=kt.unionLayoutDiscriminator=kt.union=kt.seq=kt.bits=kt.struct=kt.f64be=kt.f64=kt.f32be=kt.f32=kt.ns64be=kt.s48be=kt.s40be=kt.s32be=kt.s24be=kt.s16be=kt.ns64=kt.s48=kt.s40=kt.s32=kt.s24=void 0;const r=qs();function t(g){if(!(g instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}kt.checkUint8Array=t;function n(g){return t(g),r.Buffer.from(g.buffer,g.byteOffset,g.length)}kt.uint8ArrayToBuffer=n;let e=class{constructor(E,K){if(!Number.isInteger(E))throw new TypeError("span must be an integer");this.span=E,this.property=K}makeDestinationObject(){return{}}getSpan(E,K){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(E){const K=Object.create(this.constructor.prototype);return Object.assign(K,this),K.property=E,K}fromArray(E){}};kt.Layout=e;function o(g,E){return E.property?g+"["+E.property+"]":g}kt.nameWithProperty=o;function i(g,E){if(typeof g!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(g,"layout_"))throw new Error("Class is already bound to a layout");if(!(E&&E instanceof e))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(E,"boundConstructor_"))throw new Error("layout is already bound to a constructor");g.layout_=E,E.boundConstructor_=g,E.makeDestinationObject=(()=>new g),Object.defineProperty(g.prototype,"encode",{value(K,Z){return E.encode(this,K,Z)},writable:!0}),Object.defineProperty(g,"decode",{value(K,Z){return E.decode(K,Z)},writable:!0})}kt.bindConstructorLayout=i;class c extends e{isCount(){throw new Error("ExternalLayout is abstract")}}kt.ExternalLayout=c;class d extends c{constructor(E=1,K){if(!Number.isInteger(E)||0>=E)throw new TypeError("elementSpan must be a (positive) integer");super(-1,K),this.elementSpan=E}isCount(){return!0}decode(E,K=0){t(E);const Z=E.length-K;return Math.floor(Z/this.elementSpan)}encode(E,K,Z){return 0}}kt.GreedyCount=d;class f extends c{constructor(E,K=0,Z){if(!(E instanceof e))throw new TypeError("layout must be a Layout");if(!Number.isInteger(K))throw new TypeError("offset must be integer or undefined");super(E.span,Z||E.property),this.layout=E,this.offset=K}isCount(){return this.layout instanceof p||this.layout instanceof S}decode(E,K=0){return this.layout.decode(E,K+this.offset)}encode(E,K,Z=0){return this.layout.encode(E,K,Z+this.offset)}}kt.OffsetLayout=f;class p extends e{constructor(E,K){if(super(E,K),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,K=0){return n(E).readUIntLE(K,this.span)}encode(E,K,Z=0){return n(K).writeUIntLE(E,Z,this.span),this.span}}kt.UInt=p;class S extends e{constructor(E,K){if(super(E,K),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,K=0){return n(E).readUIntBE(K,this.span)}encode(E,K,Z=0){return n(K).writeUIntBE(E,Z,this.span),this.span}}kt.UIntBE=S;class x extends e{constructor(E,K){if(super(E,K),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,K=0){return n(E).readIntLE(K,this.span)}encode(E,K,Z=0){return n(K).writeIntLE(E,Z,this.span),this.span}}kt.Int=x;class T extends e{constructor(E,K){if(super(E,K),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,K=0){return n(E).readIntBE(K,this.span)}encode(E,K,Z=0){return n(K).writeIntBE(E,Z,this.span),this.span}}kt.IntBE=T;const k=Math.pow(2,32);function C(g){const E=Math.floor(g/k),K=g-E*k;return{hi32:E,lo32:K}}function M(g,E){return g*k+E}class V extends e{constructor(E){super(8,E)}decode(E,K=0){const Z=n(E),ht=Z.readUInt32LE(K),It=Z.readUInt32LE(K+4);return M(It,ht)}encode(E,K,Z=0){const ht=C(E),It=n(K);return It.writeUInt32LE(ht.lo32,Z),It.writeUInt32LE(ht.hi32,Z+4),8}}kt.NearUInt64=V;class G extends e{constructor(E){super(8,E)}decode(E,K=0){const Z=n(E),ht=Z.readUInt32BE(K),It=Z.readUInt32BE(K+4);return M(ht,It)}encode(E,K,Z=0){const ht=C(E),It=n(K);return It.writeUInt32BE(ht.hi32,Z),It.writeUInt32BE(ht.lo32,Z+4),8}}kt.NearUInt64BE=G;class J extends e{constructor(E){super(8,E)}decode(E,K=0){const Z=n(E),ht=Z.readUInt32LE(K),It=Z.readInt32LE(K+4);return M(It,ht)}encode(E,K,Z=0){const ht=C(E),It=n(K);return It.writeUInt32LE(ht.lo32,Z),It.writeInt32LE(ht.hi32,Z+4),8}}kt.NearInt64=J;class $ extends e{constructor(E){super(8,E)}decode(E,K=0){const Z=n(E),ht=Z.readInt32BE(K),It=Z.readUInt32BE(K+4);return M(ht,It)}encode(E,K,Z=0){const ht=C(E),It=n(K);return It.writeInt32BE(ht.hi32,Z),It.writeUInt32BE(ht.lo32,Z+4),8}}kt.NearInt64BE=$;class nt extends e{constructor(E){super(4,E)}decode(E,K=0){return n(E).readFloatLE(K)}encode(E,K,Z=0){return n(K).writeFloatLE(E,Z),4}}kt.Float=nt;class pt extends e{constructor(E){super(4,E)}decode(E,K=0){return n(E).readFloatBE(K)}encode(E,K,Z=0){return n(K).writeFloatBE(E,Z),4}}kt.FloatBE=pt;class lt extends e{constructor(E){super(8,E)}decode(E,K=0){return n(E).readDoubleLE(K)}encode(E,K,Z=0){return n(K).writeDoubleLE(E,Z),8}}kt.Double=lt;class St extends e{constructor(E){super(8,E)}decode(E,K=0){return n(E).readDoubleBE(K)}encode(E,K,Z=0){return n(K).writeDoubleBE(E,Z),8}}kt.DoubleBE=St;class At extends e{constructor(E,K,Z){if(!(E instanceof e))throw new TypeError("elementLayout must be a Layout");if(!(K instanceof c&&K.isCount()||Number.isInteger(K)&&0<=K))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let ht=-1;!(K instanceof c)&&0<E.span&&(ht=K*E.span),super(ht,Z),this.elementLayout=E,this.count=K}getSpan(E,K=0){if(0<=this.span)return this.span;let Z=0,ht=this.count;if(ht instanceof c&&(ht=ht.decode(E,K)),0<this.elementLayout.span)Z=ht*this.elementLayout.span;else{let It=0;for(;It<ht;)Z+=this.elementLayout.getSpan(E,K+Z),++It}return Z}decode(E,K=0){const Z=[];let ht=0,It=this.count;for(It instanceof c&&(It=It.decode(E,K));ht<It;)Z.push(this.elementLayout.decode(E,K)),K+=this.elementLayout.getSpan(E,K),ht+=1;return Z}encode(E,K,Z=0){const ht=this.elementLayout,It=E.reduce((Ft,Kt)=>Ft+ht.encode(Kt,K,Z+Ft),0);return this.count instanceof c&&this.count.encode(E.length,K,Z),It}}kt.Sequence=At;class st extends e{constructor(E,K,Z){if(!(Array.isArray(E)&&E.reduce((It,Ft)=>It&&Ft instanceof e,!0)))throw new TypeError("fields must be array of Layout instances");typeof K=="boolean"&&Z===void 0&&(Z=K,K=void 0);for(const It of E)if(0>It.span&&It.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let ht=-1;try{ht=E.reduce((It,Ft)=>It+Ft.getSpan(),0)}catch{}super(ht,K),this.fields=E,this.decodePrefixes=!!Z}getSpan(E,K=0){if(0<=this.span)return this.span;let Z=0;try{Z=this.fields.reduce((ht,It)=>{const Ft=It.getSpan(E,K);return K+=Ft,ht+Ft},0)}catch{throw new RangeError("indeterminate span")}return Z}decode(E,K=0){t(E);const Z=this.makeDestinationObject();for(const ht of this.fields)if(ht.property!==void 0&&(Z[ht.property]=ht.decode(E,K)),K+=ht.getSpan(E,K),this.decodePrefixes&&E.length===K)break;return Z}encode(E,K,Z=0){const ht=Z;let It=0,Ft=0;for(const Kt of this.fields){let me=Kt.span;if(Ft=0<me?me:0,Kt.property!==void 0){const Ee=E[Kt.property];Ee!==void 0&&(Ft=Kt.encode(Ee,K,Z),0>me&&(me=Kt.getSpan(K,Z)))}It=Z,Z+=me}return It+Ft-ht}fromArray(E){const K=this.makeDestinationObject();for(const Z of this.fields)Z.property!==void 0&&0<E.length&&(K[Z.property]=E.shift());return K}layoutFor(E){if(typeof E!="string")throw new TypeError("property must be string");for(const K of this.fields)if(K.property===E)return K}offsetOf(E){if(typeof E!="string")throw new TypeError("property must be string");let K=0;for(const Z of this.fields){if(Z.property===E)return K;0>Z.span?K=-1:0<=K&&(K+=Z.span)}}}kt.Structure=st;class dt{constructor(E){this.property=E}decode(E,K){throw new Error("UnionDiscriminator is abstract")}encode(E,K,Z){throw new Error("UnionDiscriminator is abstract")}}kt.UnionDiscriminator=dt;class vt extends dt{constructor(E,K){if(!(E instanceof c&&E.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(K||E.property||"variant"),this.layout=E}decode(E,K){return this.layout.decode(E,K)}encode(E,K,Z){return this.layout.encode(E,K,Z)}}kt.UnionLayoutDiscriminator=vt;class wt extends e{constructor(E,K,Z){let ht;if(E instanceof p||E instanceof S)ht=new vt(new f(E));else if(E instanceof c&&E.isCount())ht=new vt(E);else if(E instanceof dt)ht=E;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(K===void 0&&(K=null),!(K===null||K instanceof e))throw new TypeError("defaultLayout must be null or a Layout");if(K!==null){if(0>K.span)throw new Error("defaultLayout must have constant span");K.property===void 0&&(K=K.replicate("content"))}let It=-1;K&&(It=K.span,0<=It&&(E instanceof p||E instanceof S)&&(It+=ht.layout.span)),super(It,Z),this.discriminator=ht,this.usesPrefixDiscriminator=E instanceof p||E instanceof S,this.defaultLayout=K,this.registry={};let Ft=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(Kt){return Ft(Kt)},this.configGetSourceVariant=function(Kt){Ft=Kt.bind(this)}}getSpan(E,K=0){if(0<=this.span)return this.span;const Z=this.getVariant(E,K);if(!Z)throw new Error("unable to determine span for unrecognized variant");return Z.getSpan(E,K)}defaultGetSourceVariant(E){if(Object.prototype.hasOwnProperty.call(E,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(E,this.defaultLayout.property))return;const K=this.registry[E[this.discriminator.property]];if(K&&(!K.layout||K.property&&Object.prototype.hasOwnProperty.call(E,K.property)))return K}else for(const K in this.registry){const Z=this.registry[K];if(Z.property&&Object.prototype.hasOwnProperty.call(E,Z.property))return Z}throw new Error("unable to infer src variant")}decode(E,K=0){let Z;const ht=this.discriminator,It=ht.decode(E,K),Ft=this.registry[It];if(Ft===void 0){const Kt=this.defaultLayout;let me=0;this.usesPrefixDiscriminator&&(me=ht.layout.span),Z=this.makeDestinationObject(),Z[ht.property]=It,Z[Kt.property]=Kt.decode(E,K+me)}else Z=Ft.decode(E,K);return Z}encode(E,K,Z=0){const ht=this.getSourceVariant(E);if(ht===void 0){const It=this.discriminator,Ft=this.defaultLayout;let Kt=0;return this.usesPrefixDiscriminator&&(Kt=It.layout.span),It.encode(E[It.property],K,Z),Kt+Ft.encode(E[Ft.property],K,Z+Kt)}return ht.encode(E,K,Z)}addVariant(E,K,Z){const ht=new D(this,E,K,Z);return this.registry[E]=ht,ht}getVariant(E,K=0){let Z;return E instanceof Uint8Array?Z=this.discriminator.decode(E,K):Z=E,this.registry[Z]}}kt.Union=wt;class D extends e{constructor(E,K,Z,ht){if(!(E instanceof wt))throw new TypeError("union must be a Union");if(!Number.isInteger(K)||0>K)throw new TypeError("variant must be a (non-negative) integer");if(typeof Z=="string"&&ht===void 0&&(ht=Z,Z=null),Z){if(!(Z instanceof e))throw new TypeError("layout must be a Layout");if(E.defaultLayout!==null&&0<=Z.span&&Z.span>E.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof ht!="string")throw new TypeError("variant must have a String property")}let It=E.span;0>E.span&&(It=Z?Z.span:0,0<=It&&E.usesPrefixDiscriminator&&(It+=E.discriminator.layout.span)),super(It,ht),this.union=E,this.variant=K,this.layout=Z||null}getSpan(E,K=0){if(0<=this.span)return this.span;let Z=0;this.union.usesPrefixDiscriminator&&(Z=this.union.discriminator.layout.span);let ht=0;return this.layout&&(ht=this.layout.getSpan(E,K+Z)),Z+ht}decode(E,K=0){const Z=this.makeDestinationObject();if(this!==this.union.getVariant(E,K))throw new Error("variant mismatch");let ht=0;return this.union.usesPrefixDiscriminator&&(ht=this.union.discriminator.layout.span),this.layout?Z[this.property]=this.layout.decode(E,K+ht):this.property?Z[this.property]=!0:this.union.usesPrefixDiscriminator&&(Z[this.union.discriminator.property]=this.variant),Z}encode(E,K,Z=0){let ht=0;if(this.union.usesPrefixDiscriminator&&(ht=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(E,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,K,Z);let It=ht;if(this.layout&&(this.layout.encode(E[this.property],K,Z+ht),It+=this.layout.getSpan(K,Z+ht),0<=this.union.span&&It>this.union.span))throw new Error("encoded variant overruns containing union");return It}fromArray(E){if(this.layout)return this.layout.fromArray(E)}}kt.VariantLayout=D;function h(g){return 0>g&&(g+=4294967296),g}class I extends e{constructor(E,K,Z){if(!(E instanceof p||E instanceof S))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof K=="string"&&Z===void 0&&(Z=K,K=!1),4<E.span)throw new RangeError("word cannot exceed 32 bits");super(E.span,Z),this.word=E,this.msb=!!K,this.fields=[];let ht=0;this._packedSetValue=function(It){return ht=h(It),this},this._packedGetValue=function(){return ht}}decode(E,K=0){const Z=this.makeDestinationObject(),ht=this.word.decode(E,K);this._packedSetValue(ht);for(const It of this.fields)It.property!==void 0&&(Z[It.property]=It.decode(E));return Z}encode(E,K,Z=0){const ht=this.word.decode(K,Z);this._packedSetValue(ht);for(const It of this.fields)if(It.property!==void 0){const Ft=E[It.property];Ft!==void 0&&It.encode(Ft)}return this.word.encode(this._packedGetValue(),K,Z)}addField(E,K){const Z=new U(this,E,K);return this.fields.push(Z),Z}addBoolean(E){const K=new j(this,E);return this.fields.push(K),K}fieldFor(E){if(typeof E!="string")throw new TypeError("property must be string");for(const K of this.fields)if(K.property===E)return K}}kt.BitStructure=I;class U{constructor(E,K,Z){if(!(E instanceof I))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(K)||0>=K)throw new TypeError("bits must be positive integer");const ht=8*E.span,It=E.fields.reduce((Ft,Kt)=>Ft+Kt.bits,0);if(K+It>ht)throw new Error("bits too long for span remainder ("+(ht-It)+" of "+ht+" remain)");this.container=E,this.bits=K,this.valueMask=(1<<K)-1,K===32&&(this.valueMask=4294967295),this.start=It,this.container.msb&&(this.start=ht-It-K),this.wordMask=h(this.valueMask<<this.start),this.property=Z}decode(E,K){const Z=this.container._packedGetValue();return h(Z&this.wordMask)>>>this.start}encode(E){if(typeof E!="number"||!Number.isInteger(E)||E!==h(E&this.valueMask))throw new TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const K=this.container._packedGetValue(),Z=h(E<<this.start);this.container._packedSetValue(h(K&~this.wordMask)|Z)}}kt.BitField=U;class j extends U{constructor(E,K){super(E,1,K)}decode(E,K){return!!super.decode(E,K)}encode(E){typeof E=="boolean"&&(E=+E),super.encode(E)}}kt.Boolean=j;class X extends e{constructor(E,K){if(!(E instanceof c&&E.isCount()||Number.isInteger(E)&&0<=E))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let Z=-1;E instanceof c||(Z=E),super(Z,K),this.length=E}getSpan(E,K){let Z=this.span;return 0>Z&&(Z=this.length.decode(E,K)),Z}decode(E,K=0){let Z=this.span;return 0>Z&&(Z=this.length.decode(E,K)),n(E).slice(K,K+Z)}encode(E,K,Z){let ht=this.length;if(this.length instanceof c&&(ht=E.length),!(E instanceof Uint8Array&&ht===E.length))throw new TypeError(o("Blob.encode",this)+" requires (length "+ht+") Uint8Array as src");if(Z+ht>K.length)throw new RangeError("encoding overruns Uint8Array");const It=n(E);return n(K).write(It.toString("hex"),Z,ht,"hex"),this.length instanceof c&&this.length.encode(ht,K,Z),ht}}kt.Blob=X;class et extends e{constructor(E){super(-1,E)}getSpan(E,K=0){t(E);let Z=K;for(;Z<E.length&&E[Z]!==0;)Z+=1;return 1+Z-K}decode(E,K=0){const Z=this.getSpan(E,K);return n(E).slice(K,K+Z-1).toString("utf-8")}encode(E,K,Z=0){typeof E!="string"&&(E=String(E));const ht=r.Buffer.from(E,"utf8"),It=ht.length;if(Z+It>K.length)throw new RangeError("encoding overruns Buffer");const Ft=n(K);return ht.copy(Ft,Z),Ft[Z+It]=0,It+1}}kt.CString=et;class ut extends e{constructor(E,K){if(typeof E=="string"&&K===void 0&&(K=E,E=void 0),E===void 0)E=-1;else if(!Number.isInteger(E))throw new TypeError("maxSpan must be an integer");super(-1,K),this.maxSpan=E}getSpan(E,K=0){return t(E),E.length-K}decode(E,K=0){const Z=this.getSpan(E,K);if(0<=this.maxSpan&&this.maxSpan<Z)throw new RangeError("text length exceeds maxSpan");return n(E).slice(K,K+Z).toString("utf-8")}encode(E,K,Z=0){typeof E!="string"&&(E=String(E));const ht=r.Buffer.from(E,"utf8"),It=ht.length;if(0<=this.maxSpan&&this.maxSpan<It)throw new RangeError("text length exceeds maxSpan");if(Z+It>K.length)throw new RangeError("encoding overruns Buffer");return ht.copy(n(K),Z),It}}kt.UTF8=ut;class Y extends e{constructor(E,K){super(0,K),this.value=E}decode(E,K){return this.value}encode(E,K,Z){return 0}}return kt.Constant=Y,kt.greedy=((g,E)=>new d(g,E)),kt.offset=((g,E,K)=>new f(g,E,K)),kt.u8=(g=>new p(1,g)),kt.u16=(g=>new p(2,g)),kt.u24=(g=>new p(3,g)),kt.u32=(g=>new p(4,g)),kt.u40=(g=>new p(5,g)),kt.u48=(g=>new p(6,g)),kt.nu64=(g=>new V(g)),kt.u16be=(g=>new S(2,g)),kt.u24be=(g=>new S(3,g)),kt.u32be=(g=>new S(4,g)),kt.u40be=(g=>new S(5,g)),kt.u48be=(g=>new S(6,g)),kt.nu64be=(g=>new G(g)),kt.s8=(g=>new x(1,g)),kt.s16=(g=>new x(2,g)),kt.s24=(g=>new x(3,g)),kt.s32=(g=>new x(4,g)),kt.s40=(g=>new x(5,g)),kt.s48=(g=>new x(6,g)),kt.ns64=(g=>new J(g)),kt.s16be=(g=>new T(2,g)),kt.s24be=(g=>new T(3,g)),kt.s32be=(g=>new T(4,g)),kt.s40be=(g=>new T(5,g)),kt.s48be=(g=>new T(6,g)),kt.ns64be=(g=>new $(g)),kt.f32=(g=>new nt(g)),kt.f32be=(g=>new pt(g)),kt.f64=(g=>new lt(g)),kt.f64be=(g=>new St(g)),kt.struct=((g,E,K)=>new st(g,E,K)),kt.bits=((g,E,K)=>new I(g,E,K)),kt.seq=((g,E,K)=>new At(g,E,K)),kt.union=((g,E,K)=>new wt(g,E,K)),kt.unionLayoutDiscriminator=((g,E)=>new vt(g,E)),kt.blob=((g,E)=>new X(g,E)),kt.cstr=(g=>new et(g)),kt.utf8=((g,E)=>new ut(g,E)),kt.constant=((g,E)=>new Y(g,E)),kt}var at=k1(),O1=1,T1=2,N1=3,x1=4,C1=5,L1=6,B1=7,P1=8,M1=9,U1=10,D1=-32700,F1=-32603,V1=-32602,H1=-32601,W1=-32600,z1=-32016,G1=-32015,K1=-32014,j1=-32013,Y1=-32012,q1=-32011,Z1=-32010,$1=-32009,X1=-32008,J1=-32007,Q1=-32006,tp=-32005,ep=-32004,np=-32003,rp=-32002,ip=-32001,op=28e5,sp=2800001,ap=2800002,cp=2800003,up=2800004,fp=2800005,lp=2800006,dp=2800007,hp=2800008,pp=2800009,gp=2800010,mp=2800011,vp=323e4,yp=32300001,wp=3230002,bp=3230003,_p=3230004,Ep=361e4,Rp=3610001,Sp=3610002,Ap=3610003,Ip=3610004,kp=3610005,Op=3610006,Tp=3610007,Np=3611e3,xp=3704e3,Cp=3704001,Lp=3704002,Bp=3704003,Pp=3704004,Mp=4128e3,Up=4128001,Dp=4128002,Fp=4615e3,Vp=4615001,Hp=4615002,Wp=4615003,zp=4615004,Gp=4615005,Kp=4615006,jp=4615007,Yp=4615008,qp=4615009,Zp=4615010,$p=4615011,Xp=4615012,Jp=4615013,Qp=4615014,t2=4615015,e2=4615016,n2=4615017,r2=4615018,i2=4615019,o2=4615020,s2=4615021,a2=4615022,c2=4615023,u2=4615024,f2=4615025,l2=4615026,d2=4615027,h2=4615028,p2=4615029,g2=4615030,m2=4615031,v2=4615032,y2=4615033,w2=4615034,b2=4615035,_2=4615036,E2=4615037,R2=4615038,S2=4615039,A2=4615040,I2=4615041,k2=4615042,O2=4615043,T2=4615044,N2=4615045,x2=4615046,C2=4615047,L2=4615048,B2=4615049,P2=4615050,M2=4615051,U2=4615052,D2=4615053,F2=4615054,V2=5508e3,H2=5508001,W2=5508002,z2=5508003,G2=5508004,K2=5508005,j2=5508006,Y2=5508007,q2=5508008,Z2=5508009,$2=5508010,X2=5508011,J2=5663e3,Q2=5663001,tg=5663002,eg=5663003,ng=5663004,rg=5663005,ig=5663006,og=5663007,sg=5663008,ag=5663009,cg=5663010,ug=5663011,fg=5663012,lg=5663013,dg=5663014,hg=5663015,pg=5663016,gg=5663017,mg=5663018,vg=5663019,yg=5663020,wg=705e4,bg=7050001,_g=7050002,Eg=7050003,Rg=7050004,Sg=7050005,Ag=7050006,Ig=7050007,kg=7050008,Og=7050009,Tg=7050010,Ng=7050011,xg=7050012,Cg=7050013,Lg=7050014,Bg=7050015,Pg=7050016,Mg=7050017,Ug=7050018,Dg=7050019,Fg=7050020,Vg=7050021,Hg=7050022,Wg=7050023,zg=7050024,Gg=7050025,Kg=7050026,jg=7050027,Yg=7050028,qg=7050029,Zg=7050030,$g=7050031,Xg=7050032,Jg=7050033,Qg=7050034,tm=7050035,em=7050036,Xu=8078e3,Ju=8078001,nm=8078002,rm=8078003,Qu=8078004,tf=8078005,ef=8078006,im=8078007,om=8078008,sm=8078009,am=8078010,nf=8078011,cm=8078012,um=8078013,fm=8078014,lm=8078015,dm=8078016,hm=8078017,pm=8078018,gm=8078019,mm=8078020,vm=8078021,ym=8078022,wm=81e5,bm=8100001,_m=8100002,Em=8100003,Rm=819e4,Sm=8190001,Am=8190002,Im=8190003,km=8190004,Om=99e5,Tm=9900001,Nm=9900002,xm=9900003,Cm=9900004;function rf(r){return Array.isArray(r)?"%5B"+r.map(rf).join("%2C%20")+"%5D":typeof r=="bigint"?`${r}n`:encodeURIComponent(String(r!=null&&Object.getPrototypeOf(r)===null?{...r}:r))}function Lm([r,t]){return`${r}=${rf(t)}`}function Bm(r){const t=Object.entries(r).map(Lm).join("&");return btoa(t)}var Pm={[vp]:"Account not found at address: $address",[_p]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[bp]:"Expected decoded account at address: $address",[wp]:"Failed to decode account data at address: $address",[yp]:"Accounts not found at addresses: $addresses",[pp]:"Unable to find a viable program address bump seed.",[ap]:"$putativeAddress is not a base58-encoded address.",[op]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[cp]:"The `CryptoKey` must be an `Ed25519` public key.",[mp]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[hp]:"Invalid seeds; point must fall off the Ed25519 curve.",[up]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[lp]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[dp]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[fp]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[gp]:"Program address cannot end with PDA marker.",[sp]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[x1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[O1]:"The network has progressed past the last block for which this transaction could have been committed.",[Xu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[ym]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[mm]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[tf]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[ef]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Qu]:"Encoder and decoder must either both be fixed-size or variable-size.",[om]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[nm]:"Expected a fixed-size codec, got a variable-size one.",[um]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[rm]:"Expected a variable-size codec, got a fixed-size one.",[gm]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Ju]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[pm]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[sm]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[am]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[lm]:"Invalid literal union variant. Expected one of [$variants], got $value.",[im]:"Expected [$codecDescription] to have $expected items, got $actual.",[cm]:"Invalid value $value for base $base with alphabet $alphabet.",[dm]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[nf]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[fm]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[vm]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[hm]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Np]:"No random values implementation could be found.",[qp]:"instruction requires an uninitialized account",[c2]:"instruction tries to borrow reference for an account which is already borrowed",[u2]:"instruction left account with an outstanding borrowed reference",[s2]:"program other than the account's owner changed the size of the account data",[Gp]:"account data too small for instruction",[a2]:"instruction expected an executable account",[x2]:"An account does not have enough lamports to be rent-exempt",[L2]:"Program arithmetic overflowed",[N2]:"Failed to serialize or deserialize account data: $encodedData",[F2]:"Builtin programs must consume compute units",[v2]:"Cross-program invocation call depth too deep",[R2]:"Computational budget exceeded",[l2]:"custom program error: #$code",[n2]:"instruction contains duplicate accounts",[f2]:"instruction modifications of multiply-passed account differ",[g2]:"executable accounts must be rent exempt",[h2]:"instruction changed executable accounts data",[p2]:"instruction changed the balance of an executable account",[r2]:"instruction changed executable bit of an account",[Qp]:"instruction modified data of an account it does not own",[Jp]:"instruction spent from the balance of an account it does not own",[Vp]:"generic instruction error",[P2]:"Provided owner is not allowed",[O2]:"Account is immutable",[T2]:"Incorrect authority provided",[jp]:"incorrect program id for instruction",[Kp]:"insufficient funds for instruction",[zp]:"invalid account data for instruction",[C2]:"Invalid account owner",[Hp]:"invalid program argument",[d2]:"program returned invalid error code",[Wp]:"invalid instruction data",[E2]:"Failed to reallocate account data",[_2]:"Provided seeds do not result in a valid address",[M2]:"Accounts data allocations exceeded the maximum allowed per transaction",[U2]:"Max accounts exceeded",[D2]:"Max instruction trace length exceeded",[b2]:"Length of the seed is too long for address generation",[y2]:"An account required by the instruction is missing",[Yp]:"missing required signature for instruction",[Xp]:"instruction illegally modified the program id of an account",[o2]:"insufficient account keys for instruction",[S2]:"Cross-program invocation with unauthorized signer or writable account",[A2]:"Failed to create program execution environment",[k2]:"Program failed to compile",[I2]:"Program failed to complete",[e2]:"instruction modified data of a read-only account",[t2]:"instruction changed the balance of a read-only account",[w2]:"Cross-program invocation reentrancy not allowed for this instruction",[i2]:"instruction modified rent epoch of an account",[$p]:"sum of account balances before and after instruction do not match",[Zp]:"instruction requires an initialized account",[Fp]:"",[m2]:"Unsupported program id",[B2]:"Unsupported sysvar",[Mp]:"The instruction does not have any accounts.",[Up]:"The instruction does not have any data.",[Dp]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[C1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[T1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Nm]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Cm]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Tm]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Om]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[xm]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[F1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[V1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[W1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[H1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[D1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Y1]:"$__serverMessage",[ip]:"$__serverMessage",[ep]:"$__serverMessage",[K1]:"$__serverMessage",[Z1]:"$__serverMessage",[$1]:"$__serverMessage",[z1]:"Minimum context slot has not been reached",[tp]:"Node is unhealthy; behind by $numSlotsBehind slots",[X1]:"No snapshot",[rp]:"Transaction simulation failed",[J1]:"$__serverMessage",[q1]:"Transaction history is not available from this node",[Q1]:"$__serverMessage",[j1]:"Transaction signature length mismatch",[np]:"Transaction signature verification failure",[G1]:"$__serverMessage",[xp]:"Key pair bytes must be of length 64, got $byteLength.",[Cp]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Lp]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Pp]:"The provided private key does not match the provided public key.",[Bp]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[L1]:"Lamports value must be in the range [0, 2e64-1]",[B1]:"`$value` cannot be parsed as a `BigInt`",[U1]:"$message",[P1]:"`$value` cannot be parsed as a `Number`",[N1]:"No nonce account could be found at address `$nonceAccountAddress`",[Rm]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Am]:"WebSocket was closed before payload could be added to the send buffer",[Im]:"WebSocket connection closed",[km]:"WebSocket failed to connect",[Sm]:"Failed to obtain a subscription id from the server",[Em]:"Could not find an API plan for RPC method: `$method`",[wm]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[_m]:"HTTP error ($statusCode): $message",[bm]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[V2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[H2]:"The provided value does not implement the `KeyPairSigner` interface",[z2]:"The provided value does not implement the `MessageModifyingSigner` interface",[G2]:"The provided value does not implement the `MessagePartialSigner` interface",[W2]:"The provided value does not implement any of the `MessageSigner` interfaces",[j2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Y2]:"The provided value does not implement the `TransactionPartialSigner` interface",[q2]:"The provided value does not implement the `TransactionSendingSigner` interface",[K2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Z2]:"More than one `TransactionSendingSigner` was identified.",[$2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[X2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Tp]:"Cannot export a non-extractable key.",[Rp]:"No digest implementation could be found.",[Ep]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Sp]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
1
|
+
(function(le,Kt){typeof exports=="object"&&typeof module<"u"?Kt(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],Kt):(le=typeof globalThis<"u"?globalThis:le||self,Kt(le.VueTypeWriter={},le.Vue))})(this,(function(le,Kt){"use strict";var Wa=(t=>(t.USER="user",t.BUSINESS="business",t))(Wa||{}),za=(t=>(t.ASAP="asap",t.SAME_DAY="same_day",t.STANDARD="standard",t.CARD="card",t.IBAN="iban",t.PIX="pix",t.EFT="eft",t.VENMO="venmo",t.PAYPAL="paypal",t.WIRE="wire",t.INTERAC="interac",t))(za||{}),Za=(t=>(t.Credits="Credits",t.USDC="USDC",t.Bank="Bank",t))(Za||{});function Ol(t){return"cardToken"in t}function Tl(t){return"disableSavedPaymentMethods"in t}var Ka=(t=>(t.Rounded="rounded",t.Sharp="sharp",t.Pill="pill",t))(Ka||{}),Xa=(t=>(t.NoPreference="NoPreference",t.Frictionless="Frictionless",t.Challenge="Challenge",t))(Xa||{}),qa=(t=>(t.card="card",t.ach="ach",t.fasterPayments="fasterPayments",t.sepa="sepa",t.pix="pix",t.usdc="usdc",t.googlePay="googlePay",t.applePay="applePay",t.credits="credits",t.crypto="crypto",t.instantBankTransfer="instantBankTransfer",t.wire="wire",t))(qa||{});const Nl={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",instantBankTransfer:"Instant Bank Transfer",wire:"Wire Transfer"};var qr=(t=>(t.VISA="VISA",t.MASTERCARD="MSTR",t.AMEX="AMEX",t.DISCOVER="DISC",t))(qr||{});const xl="rnredirect";function fs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ls(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if(typeof n=="function"){var r=function e(){var u=!1;try{u=this instanceof e}catch{}return u?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var u=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,u.get?u:{enumerable:!0,get:function(){return t[e]}})}),r}var ds={},_i={},$a;function Ll(){if($a)return _i;$a=1,_i.byteLength=E,_i.toByteArray=b,_i.fromByteArray=N;for(var t=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=e.length;u<a;++u)t[u]=e[u],n[e.charCodeAt(u)]=u;n[45]=62,n[95]=63;function d(x){var M=x.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var D=x.indexOf("=");D===-1&&(D=M);var Y=D===M?0:4-D%4;return[D,Y]}function E(x){var M=d(x),D=M[0],Y=M[1];return(D+Y)*3/4-Y}function l(x,M,D){return(M+D)*3/4-D}function b(x){var M,D=d(x),Y=D[0],W=D[1],J=new r(l(x,Y,W)),q=0,ot=W>0?Y-4:Y,pt;for(pt=0;pt<ot;pt+=4)M=n[x.charCodeAt(pt)]<<18|n[x.charCodeAt(pt+1)]<<12|n[x.charCodeAt(pt+2)]<<6|n[x.charCodeAt(pt+3)],J[q++]=M>>16&255,J[q++]=M>>8&255,J[q++]=M&255;return W===2&&(M=n[x.charCodeAt(pt)]<<2|n[x.charCodeAt(pt+1)]>>4,J[q++]=M&255),W===1&&(M=n[x.charCodeAt(pt)]<<10|n[x.charCodeAt(pt+1)]<<4|n[x.charCodeAt(pt+2)]>>2,J[q++]=M>>8&255,J[q++]=M&255),J}function T(x){return t[x>>18&63]+t[x>>12&63]+t[x>>6&63]+t[x&63]}function L(x,M,D){for(var Y,W=[],J=M;J<D;J+=3)Y=(x[J]<<16&16711680)+(x[J+1]<<8&65280)+(x[J+2]&255),W.push(T(Y));return W.join("")}function N(x){for(var M,D=x.length,Y=D%3,W=[],J=16383,q=0,ot=D-Y;q<ot;q+=J)W.push(L(x,q,q+J>ot?ot:q+J));return Y===1?(M=x[D-1],W.push(t[M>>2]+t[M<<4&63]+"==")):Y===2&&(M=(x[D-2]<<8)+x[D-1],W.push(t[M>>10]+t[M>>4&63]+t[M<<2&63]+"=")),W.join("")}return _i}var fo={};var Ja;function Cl(){return Ja||(Ja=1,fo.read=function(t,n,r,e,u){var a,d,E=u*8-e-1,l=(1<<E)-1,b=l>>1,T=-7,L=r?u-1:0,N=r?-1:1,x=t[n+L];for(L+=N,a=x&(1<<-T)-1,x>>=-T,T+=E;T>0;a=a*256+t[n+L],L+=N,T-=8);for(d=a&(1<<-T)-1,a>>=-T,T+=e;T>0;d=d*256+t[n+L],L+=N,T-=8);if(a===0)a=1-b;else{if(a===l)return d?NaN:(x?-1:1)*(1/0);d=d+Math.pow(2,e),a=a-b}return(x?-1:1)*d*Math.pow(2,a-e)},fo.write=function(t,n,r,e,u,a){var d,E,l,b=a*8-u-1,T=(1<<b)-1,L=T>>1,N=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:a-1,M=e?1:-1,D=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(E=isNaN(n)?1:0,d=T):(d=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-d))<1&&(d--,l*=2),d+L>=1?n+=N/l:n+=N*Math.pow(2,1-L),n*l>=2&&(d++,l/=2),d+L>=T?(E=0,d=T):d+L>=1?(E=(n*l-1)*Math.pow(2,u),d=d+L):(E=n*Math.pow(2,L-1)*Math.pow(2,u),d=0));u>=8;t[r+x]=E&255,x+=M,E/=256,u-=8);for(d=d<<u|E,b+=u;b>0;t[r+x]=d&255,x+=M,d/=256,b-=8);t[r+x-M]|=D*128}),fo}var Qa;function hs(){return Qa||(Qa=1,(function(t){const n=Ll(),r=Cl(),e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=E,t.SlowBuffer=J,t.INSPECT_MAX_BYTES=50;const u=2147483647;t.kMaxLength=u,E.TYPED_ARRAY_SUPPORT=a(),!E.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.");function a(){try{const F=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(F,R),F.foo()===42}catch{return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}});function d(F){if(F>u)throw new RangeError('The value "'+F+'" is invalid for option "size"');const R=new Uint8Array(F);return Object.setPrototypeOf(R,E.prototype),R}function E(F,R,O){if(typeof F=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(F)}return l(F,R,O)}E.poolSize=8192;function l(F,R,O){if(typeof F=="string")return N(F,R);if(ArrayBuffer.isView(F))return M(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(yt(F,ArrayBuffer)||F&&yt(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(yt(F,SharedArrayBuffer)||F&&yt(F.buffer,SharedArrayBuffer)))return D(F,R,O);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=F.valueOf&&F.valueOf();if(A!=null&&A!==F)return E.from(A,R,O);const H=Y(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return E.from(F[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 F)}E.from=function(F,R,O){return l(F,R,O)},Object.setPrototypeOf(E.prototype,Uint8Array.prototype),Object.setPrototypeOf(E,Uint8Array);function b(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function T(F,R,O){return b(F),F<=0?d(F):R!==void 0?typeof O=="string"?d(F).fill(R,O):d(F).fill(R):d(F)}E.alloc=function(F,R,O){return T(F,R,O)};function L(F){return b(F),d(F<0?0:W(F)|0)}E.allocUnsafe=function(F){return L(F)},E.allocUnsafeSlow=function(F){return L(F)};function N(F,R){if((typeof R!="string"||R==="")&&(R="utf8"),!E.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const O=q(F,R)|0;let A=d(O);const H=A.write(F,R);return H!==O&&(A=A.slice(0,H)),A}function x(F){const R=F.length<0?0:W(F.length)|0,O=d(R);for(let A=0;A<R;A+=1)O[A]=F[A]&255;return O}function M(F){if(yt(F,Uint8Array)){const R=new Uint8Array(F);return D(R.buffer,R.byteOffset,R.byteLength)}return x(F)}function D(F,R,O){if(R<0||F.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<R+(O||0))throw new RangeError('"length" is outside of buffer bounds');let A;return R===void 0&&O===void 0?A=new Uint8Array(F):O===void 0?A=new Uint8Array(F,R):A=new Uint8Array(F,R,O),Object.setPrototypeOf(A,E.prototype),A}function Y(F){if(E.isBuffer(F)){const R=W(F.length)|0,O=d(R);return O.length===0||F.copy(O,0,0,R),O}if(F.length!==void 0)return typeof F.length!="number"||Et(F.length)?d(0):x(F);if(F.type==="Buffer"&&Array.isArray(F.data))return x(F.data)}function W(F){if(F>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return F|0}function J(F){return+F!=F&&(F=0),E.alloc(+F)}E.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==E.prototype},E.compare=function(R,O){if(yt(R,Uint8Array)&&(R=E.from(R,R.offset,R.byteLength)),yt(O,Uint8Array)&&(O=E.from(O,O.offset,O.byteLength)),!E.isBuffer(R)||!E.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===O)return 0;let A=R.length,H=O.length;for(let G=0,it=Math.min(A,H);G<it;++G)if(R[G]!==O[G]){A=R[G],H=O[G];break}return A<H?-1:H<A?1:0},E.isEncoding=function(R){switch(String(R).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}},E.concat=function(R,O){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return E.alloc(0);let A;if(O===void 0)for(O=0,A=0;A<R.length;++A)O+=R[A].length;const H=E.allocUnsafe(O);let G=0;for(A=0;A<R.length;++A){let it=R[A];if(yt(it,Uint8Array))G+it.length>H.length?(E.isBuffer(it)||(it=E.from(it)),it.copy(H,G)):Uint8Array.prototype.set.call(H,it,G);else if(E.isBuffer(it))it.copy(H,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=it.length}return H};function q(F,R){if(E.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||yt(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const O=F.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&O===0)return 0;let H=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Ne(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return V(F).length;default:if(H)return A?-1:Ne(F).length;R=(""+R).toLowerCase(),H=!0}}E.byteLength=q;function ot(F,R,O){let A=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,R>>>=0,O<=R))return"";for(F||(F="utf8");;)switch(F){case"hex":return et(this,R,O);case"utf8":case"utf-8":return f(this,R,O);case"ascii":return z(this,R,O);case"latin1":case"binary":return $(this,R,O);case"base64":return P(this,R,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,R,O);default:if(A)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),A=!0}}E.prototype._isBuffer=!0;function pt(F,R,O){const A=F[R];F[R]=F[O],F[O]=A}E.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<R;O+=2)pt(this,O,O+1);return this},E.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<R;O+=4)pt(this,O,O+3),pt(this,O+1,O+2);return this},E.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<R;O+=8)pt(this,O,O+7),pt(this,O+1,O+6),pt(this,O+2,O+5),pt(this,O+3,O+4);return this},E.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?f(this,0,R):ot.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(R){if(!E.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:E.compare(this,R)===0},E.prototype.inspect=function(){let R="";const O=t.INSPECT_MAX_BYTES;return R=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(R+=" ... "),"<Buffer "+R+">"},e&&(E.prototype[e]=E.prototype.inspect),E.prototype.compare=function(R,O,A,H,G){if(yt(R,Uint8Array)&&(R=E.from(R,R.offset,R.byteLength)),!E.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(O===void 0&&(O=0),A===void 0&&(A=R?R.length:0),H===void 0&&(H=0),G===void 0&&(G=this.length),O<0||A>R.length||H<0||G>this.length)throw new RangeError("out of range index");if(H>=G&&O>=A)return 0;if(H>=G)return-1;if(O>=A)return 1;if(O>>>=0,A>>>=0,H>>>=0,G>>>=0,this===R)return 0;let it=G-H,Ct=A-O;const Bt=Math.min(it,Ct),Ut=this.slice(H,G),kt=R.slice(O,A);for(let rt=0;rt<Bt;++rt)if(Ut[rt]!==kt[rt]){it=Ut[rt],Ct=kt[rt];break}return it<Ct?-1:Ct<it?1:0};function ft(F,R,O,A,H){if(F.length===0)return-1;if(typeof O=="string"?(A=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Et(O)&&(O=H?0:F.length-1),O<0&&(O=F.length+O),O>=F.length){if(H)return-1;O=F.length-1}else if(O<0)if(H)O=0;else return-1;if(typeof R=="string"&&(R=E.from(R,A)),E.isBuffer(R))return R.length===0?-1:Rt(F,R,O,A,H);if(typeof R=="number")return R=R&255,typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call(F,R,O):Uint8Array.prototype.lastIndexOf.call(F,R,O):Rt(F,[R],O,A,H);throw new TypeError("val must be string, number or Buffer")}function Rt(F,R,O,A,H){let G=1,it=F.length,Ct=R.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(F.length<2||R.length<2)return-1;G=2,it/=2,Ct/=2,O/=2}function Bt(kt,rt){return G===1?kt[rt]:kt.readUInt16BE(rt*G)}let Ut;if(H){let kt=-1;for(Ut=O;Ut<it;Ut++)if(Bt(F,Ut)===Bt(R,kt===-1?0:Ut-kt)){if(kt===-1&&(kt=Ut),Ut-kt+1===Ct)return kt*G}else kt!==-1&&(Ut-=Ut-kt),kt=-1}else for(O+Ct>it&&(O=it-Ct),Ut=O;Ut>=0;Ut--){let kt=!0;for(let rt=0;rt<Ct;rt++)if(Bt(F,Ut+rt)!==Bt(R,rt)){kt=!1;break}if(kt)return Ut}return-1}E.prototype.includes=function(R,O,A){return this.indexOf(R,O,A)!==-1},E.prototype.indexOf=function(R,O,A){return ft(this,R,O,A,!0)},E.prototype.lastIndexOf=function(R,O,A){return ft(this,R,O,A,!1)};function At(F,R,O,A){O=Number(O)||0;const H=F.length-O;A?(A=Number(A),A>H&&(A=H)):A=H;const G=R.length;A>G/2&&(A=G/2);let it;for(it=0;it<A;++it){const Ct=parseInt(R.substr(it*2,2),16);if(Et(Ct))return it;F[O+it]=Ct}return it}function st(F,R,O,A){return ct(Ne(R,F.length-O),F,O,A)}function lt(F,R,O,A){return ct(g(R),F,O,A)}function mt(F,R,O,A){return ct(V(R),F,O,A)}function wt(F,R,O,A){return ct(k(R,F.length-O),F,O,A)}E.prototype.write=function(R,O,A,H){if(O===void 0)H="utf8",A=this.length,O=0;else if(A===void 0&&typeof O=="string")H=O,A=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(A)?(A=A>>>0,H===void 0&&(H="utf8")):(H=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-O;if((A===void 0||A>G)&&(A=G),R.length>0&&(A<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let it=!1;for(;;)switch(H){case"hex":return At(this,R,O,A);case"utf8":case"utf-8":return st(this,R,O,A);case"ascii":case"latin1":case"binary":return lt(this,R,O,A);case"base64":return mt(this,R,O,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,R,O,A);default:if(it)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),it=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(F,R,O){return R===0&&O===F.length?n.fromByteArray(F):n.fromByteArray(F.slice(R,O))}function f(F,R,O){O=Math.min(F.length,O);const A=[];let H=R;for(;H<O;){const G=F[H];let it=null,Ct=G>239?4:G>223?3:G>191?2:1;if(H+Ct<=O){let Bt,Ut,kt,rt;switch(Ct){case 1:G<128&&(it=G);break;case 2:Bt=F[H+1],(Bt&192)===128&&(rt=(G&31)<<6|Bt&63,rt>127&&(it=rt));break;case 3:Bt=F[H+1],Ut=F[H+2],(Bt&192)===128&&(Ut&192)===128&&(rt=(G&15)<<12|(Bt&63)<<6|Ut&63,rt>2047&&(rt<55296||rt>57343)&&(it=rt));break;case 4:Bt=F[H+1],Ut=F[H+2],kt=F[H+3],(Bt&192)===128&&(Ut&192)===128&&(kt&192)===128&&(rt=(G&15)<<18|(Bt&63)<<12|(Ut&63)<<6|kt&63,rt>65535&&rt<1114112&&(it=rt))}}it===null?(it=65533,Ct=1):it>65535&&(it-=65536,A.push(it>>>10&1023|55296),it=56320|it&1023),A.push(it),H+=Ct}return U(A)}const S=4096;function U(F){const R=F.length;if(R<=S)return String.fromCharCode.apply(String,F);let O="",A=0;for(;A<R;)O+=String.fromCharCode.apply(String,F.slice(A,A+=S));return O}function z(F,R,O){let A="";O=Math.min(F.length,O);for(let H=R;H<O;++H)A+=String.fromCharCode(F[H]&127);return A}function $(F,R,O){let A="";O=Math.min(F.length,O);for(let H=R;H<O;++H)A+=String.fromCharCode(F[H]);return A}function et(F,R,O){const A=F.length;(!R||R<0)&&(R=0),(!O||O<0||O>A)&&(O=A);let H="";for(let G=R;G<O;++G)H+=Lt[F[G]];return H}function ut(F,R,O){const A=F.slice(R,O);let H="";for(let G=0;G<A.length-1;G+=2)H+=String.fromCharCode(A[G]+A[G+1]*256);return H}E.prototype.slice=function(R,O){const A=this.length;R=~~R,O=O===void 0?A:~~O,R<0?(R+=A,R<0&&(R=0)):R>A&&(R=A),O<0?(O+=A,O<0&&(O=0)):O>A&&(O=A),O<R&&(O=R);const H=this.subarray(R,O);return Object.setPrototypeOf(H,E.prototype),H};function Z(F,R,O){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+R>O)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUintLE=E.prototype.readUIntLE=function(R,O,A){R=R>>>0,O=O>>>0,A||Z(R,O,this.length);let H=this[R],G=1,it=0;for(;++it<O&&(G*=256);)H+=this[R+it]*G;return H},E.prototype.readUintBE=E.prototype.readUIntBE=function(R,O,A){R=R>>>0,O=O>>>0,A||Z(R,O,this.length);let H=this[R+--O],G=1;for(;O>0&&(G*=256);)H+=this[R+--O]*G;return H},E.prototype.readUint8=E.prototype.readUInt8=function(R,O){return R=R>>>0,O||Z(R,1,this.length),this[R]},E.prototype.readUint16LE=E.prototype.readUInt16LE=function(R,O){return R=R>>>0,O||Z(R,2,this.length),this[R]|this[R+1]<<8},E.prototype.readUint16BE=E.prototype.readUInt16BE=function(R,O){return R=R>>>0,O||Z(R,2,this.length),this[R]<<8|this[R+1]},E.prototype.readUint32LE=E.prototype.readUInt32LE=function(R,O){return R=R>>>0,O||Z(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},E.prototype.readUint32BE=E.prototype.readUInt32BE=function(R,O){return R=R>>>0,O||Z(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},E.prototype.readBigUInt64LE=jt(function(R){R=R>>>0,$t(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&be(R,this.length-8);const H=O+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,G=this[++R]+this[++R]*2**8+this[++R]*2**16+A*2**24;return BigInt(H)+(BigInt(G)<<BigInt(32))}),E.prototype.readBigUInt64BE=jt(function(R){R=R>>>0,$t(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&be(R,this.length-8);const H=O*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],G=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A;return(BigInt(H)<<BigInt(32))+BigInt(G)}),E.prototype.readIntLE=function(R,O,A){R=R>>>0,O=O>>>0,A||Z(R,O,this.length);let H=this[R],G=1,it=0;for(;++it<O&&(G*=256);)H+=this[R+it]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*O)),H},E.prototype.readIntBE=function(R,O,A){R=R>>>0,O=O>>>0,A||Z(R,O,this.length);let H=O,G=1,it=this[R+--H];for(;H>0&&(G*=256);)it+=this[R+--H]*G;return G*=128,it>=G&&(it-=Math.pow(2,8*O)),it},E.prototype.readInt8=function(R,O){return R=R>>>0,O||Z(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},E.prototype.readInt16LE=function(R,O){R=R>>>0,O||Z(R,2,this.length);const A=this[R]|this[R+1]<<8;return A&32768?A|4294901760:A},E.prototype.readInt16BE=function(R,O){R=R>>>0,O||Z(R,2,this.length);const A=this[R+1]|this[R]<<8;return A&32768?A|4294901760:A},E.prototype.readInt32LE=function(R,O){return R=R>>>0,O||Z(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},E.prototype.readInt32BE=function(R,O){return R=R>>>0,O||Z(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},E.prototype.readBigInt64LE=jt(function(R){R=R>>>0,$t(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&be(R,this.length-8);const H=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(A<<24);return(BigInt(H)<<BigInt(32))+BigInt(O+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),E.prototype.readBigInt64BE=jt(function(R){R=R>>>0,$t(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&be(R,this.length-8);const H=(O<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(H)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A)}),E.prototype.readFloatLE=function(R,O){return R=R>>>0,O||Z(R,4,this.length),r.read(this,R,!0,23,4)},E.prototype.readFloatBE=function(R,O){return R=R>>>0,O||Z(R,4,this.length),r.read(this,R,!1,23,4)},E.prototype.readDoubleLE=function(R,O){return R=R>>>0,O||Z(R,8,this.length),r.read(this,R,!0,52,8)},E.prototype.readDoubleBE=function(R,O){return R=R>>>0,O||Z(R,8,this.length),r.read(this,R,!1,52,8)};function h(F,R,O,A,H,G){if(!E.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>H||R<G)throw new RangeError('"value" argument is out of bounds');if(O+A>F.length)throw new RangeError("Index out of range")}E.prototype.writeUintLE=E.prototype.writeUIntLE=function(R,O,A,H){if(R=+R,O=O>>>0,A=A>>>0,!H){const Ct=Math.pow(2,8*A)-1;h(this,R,O,A,Ct,0)}let G=1,it=0;for(this[O]=R&255;++it<A&&(G*=256);)this[O+it]=R/G&255;return O+A},E.prototype.writeUintBE=E.prototype.writeUIntBE=function(R,O,A,H){if(R=+R,O=O>>>0,A=A>>>0,!H){const Ct=Math.pow(2,8*A)-1;h(this,R,O,A,Ct,0)}let G=A-1,it=1;for(this[O+G]=R&255;--G>=0&&(it*=256);)this[O+G]=R/it&255;return O+A},E.prototype.writeUint8=E.prototype.writeUInt8=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,1,255,0),this[O]=R&255,O+1},E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,65535,0),this[O]=R&255,this[O+1]=R>>>8,O+2},E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,65535,0),this[O]=R>>>8,this[O+1]=R&255,O+2},E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,4294967295,0),this[O+3]=R>>>24,this[O+2]=R>>>16,this[O+1]=R>>>8,this[O]=R&255,O+4},E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,4294967295,0),this[O]=R>>>24,this[O+1]=R>>>16,this[O+2]=R>>>8,this[O+3]=R&255,O+4};function _(F,R,O,A,H){me(R,A,H,F,O,7);let G=Number(R&BigInt(4294967295));F[O++]=G,G=G>>8,F[O++]=G,G=G>>8,F[O++]=G,G=G>>8,F[O++]=G;let it=Number(R>>BigInt(32)&BigInt(4294967295));return F[O++]=it,it=it>>8,F[O++]=it,it=it>>8,F[O++]=it,it=it>>8,F[O++]=it,O}function j(F,R,O,A,H){me(R,A,H,F,O,7);let G=Number(R&BigInt(4294967295));F[O+7]=G,G=G>>8,F[O+6]=G,G=G>>8,F[O+5]=G,G=G>>8,F[O+4]=G;let it=Number(R>>BigInt(32)&BigInt(4294967295));return F[O+3]=it,it=it>>8,F[O+2]=it,it=it>>8,F[O+1]=it,it=it>>8,F[O]=it,O+8}E.prototype.writeBigUInt64LE=jt(function(R,O=0){return _(this,R,O,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeBigUInt64BE=jt(function(R,O=0){return j(this,R,O,BigInt(0),BigInt("0xffffffffffffffff"))}),E.prototype.writeIntLE=function(R,O,A,H){if(R=+R,O=O>>>0,!H){const Bt=Math.pow(2,8*A-1);h(this,R,O,A,Bt-1,-Bt)}let G=0,it=1,Ct=0;for(this[O]=R&255;++G<A&&(it*=256);)R<0&&Ct===0&&this[O+G-1]!==0&&(Ct=1),this[O+G]=(R/it>>0)-Ct&255;return O+A},E.prototype.writeIntBE=function(R,O,A,H){if(R=+R,O=O>>>0,!H){const Bt=Math.pow(2,8*A-1);h(this,R,O,A,Bt-1,-Bt)}let G=A-1,it=1,Ct=0;for(this[O+G]=R&255;--G>=0&&(it*=256);)R<0&&Ct===0&&this[O+G+1]!==0&&(Ct=1),this[O+G]=(R/it>>0)-Ct&255;return O+A},E.prototype.writeInt8=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,1,127,-128),R<0&&(R=255+R+1),this[O]=R&255,O+1},E.prototype.writeInt16LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,32767,-32768),this[O]=R&255,this[O+1]=R>>>8,O+2},E.prototype.writeInt16BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,32767,-32768),this[O]=R>>>8,this[O+1]=R&255,O+2},E.prototype.writeInt32LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,2147483647,-2147483648),this[O]=R&255,this[O+1]=R>>>8,this[O+2]=R>>>16,this[O+3]=R>>>24,O+4},E.prototype.writeInt32BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[O]=R>>>24,this[O+1]=R>>>16,this[O+2]=R>>>8,this[O+3]=R&255,O+4},E.prototype.writeBigInt64LE=jt(function(R,O=0){return _(this,R,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),E.prototype.writeBigInt64BE=jt(function(R,O=0){return j(this,R,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(F,R,O,A,H,G){if(O+A>F.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ht(F,R,O,A,H){return R=+R,O=O>>>0,H||K(F,R,O,4),r.write(F,R,O,A,23,4),O+4}E.prototype.writeFloatLE=function(R,O,A){return ht(this,R,O,!0,A)},E.prototype.writeFloatBE=function(R,O,A){return ht(this,R,O,!1,A)};function St(F,R,O,A,H){return R=+R,O=O>>>0,H||K(F,R,O,8),r.write(F,R,O,A,52,8),O+8}E.prototype.writeDoubleLE=function(R,O,A){return St(this,R,O,!0,A)},E.prototype.writeDoubleBE=function(R,O,A){return St(this,R,O,!1,A)},E.prototype.copy=function(R,O,A,H){if(!E.isBuffer(R))throw new TypeError("argument should be a Buffer");if(A||(A=0),!H&&H!==0&&(H=this.length),O>=R.length&&(O=R.length),O||(O=0),H>0&&H<A&&(H=A),H===A||R.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),R.length-O<H-A&&(H=R.length-O+A);const G=H-A;return this===R&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,A,H):Uint8Array.prototype.set.call(R,this.subarray(A,H),O),G},E.prototype.fill=function(R,O,A,H){if(typeof R=="string"){if(typeof O=="string"?(H=O,O=0,A=this.length):typeof A=="string"&&(H=A,A=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!E.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(R.length===1){const it=R.charCodeAt(0);(H==="utf8"&&it<128||H==="latin1")&&(R=it)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(O<0||this.length<O||this.length<A)throw new RangeError("Out of range index");if(A<=O)return this;O=O>>>0,A=A===void 0?this.length:A>>>0,R||(R=0);let G;if(typeof R=="number")for(G=O;G<A;++G)this[G]=R;else{const it=E.isBuffer(R)?R:E.from(R,H),Ct=it.length;if(Ct===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(G=0;G<A-O;++G)this[G+O]=it[G%Ct]}return this};const Ft={};function zt(F,R,O){Ft[F]=class extends O{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}zt("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),zt("ERR_INVALID_ARG_TYPE",function(F,R){return`The "${F}" argument must be of type number. Received type ${typeof R}`},TypeError),zt("ERR_OUT_OF_RANGE",function(F,R,O){let A=`The value of "${F}" is out of range.`,H=O;return Number.isInteger(O)&&Math.abs(O)>2**32?H=de(String(O)):typeof O=="bigint"&&(H=String(O),(O>BigInt(2)**BigInt(32)||O<-(BigInt(2)**BigInt(32)))&&(H=de(H)),H+="n"),A+=` It must be ${R}. Received ${H}`,A},RangeError);function de(F){let R="",O=F.length;const A=F[0]==="-"?1:0;for(;O>=A+4;O-=3)R=`_${F.slice(O-3,O)}${R}`;return`${F.slice(0,O)}${R}`}function Ee(F,R,O){$t(R,"offset"),(F[R]===void 0||F[R+O]===void 0)&&be(R,F.length-(O+1))}function me(F,R,O,A,H,G){if(F>O||F<R){const it=typeof R=="bigint"?"n":"";let Ct;throw R===0||R===BigInt(0)?Ct=`>= 0${it} and < 2${it} ** ${(G+1)*8}${it}`:Ct=`>= -(2${it} ** ${(G+1)*8-1}${it}) and < 2 ** ${(G+1)*8-1}${it}`,new Ft.ERR_OUT_OF_RANGE("value",Ct,F)}Ee(A,H,G)}function $t(F,R){if(typeof F!="number")throw new Ft.ERR_INVALID_ARG_TYPE(R,"number",F)}function be(F,R,O){throw Math.floor(F)!==F?($t(F,O),new Ft.ERR_OUT_OF_RANGE("offset","an integer",F)):R<0?new Ft.ERR_BUFFER_OUT_OF_BOUNDS:new Ft.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,F)}const Re=/[^+/0-9A-Za-z-_]/g;function Ye(F){if(F=F.split("=")[0],F=F.trim().replace(Re,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function Ne(F,R){R=R||1/0;let O;const A=F.length;let H=null;const G=[];for(let it=0;it<A;++it){if(O=F.charCodeAt(it),O>55295&&O<57344){if(!H){if(O>56319){(R-=3)>-1&&G.push(239,191,189);continue}else if(it+1===A){(R-=3)>-1&&G.push(239,191,189);continue}H=O;continue}if(O<56320){(R-=3)>-1&&G.push(239,191,189),H=O;continue}O=(H-55296<<10|O-56320)+65536}else H&&(R-=3)>-1&&G.push(239,191,189);if(H=null,O<128){if((R-=1)<0)break;G.push(O)}else if(O<2048){if((R-=2)<0)break;G.push(O>>6|192,O&63|128)}else if(O<65536){if((R-=3)<0)break;G.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((R-=4)<0)break;G.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return G}function g(F){const R=[];for(let O=0;O<F.length;++O)R.push(F.charCodeAt(O)&255);return R}function k(F,R){let O,A,H;const G=[];for(let it=0;it<F.length&&!((R-=2)<0);++it)O=F.charCodeAt(it),A=O>>8,H=O%256,G.push(H),G.push(A);return G}function V(F){return n.toByteArray(Ye(F))}function ct(F,R,O,A){let H;for(H=0;H<A&&!(H+O>=R.length||H>=F.length);++H)R[H+O]=F[H];return H}function yt(F,R){return F instanceof R||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===R.name}function Et(F){return F!==F}const Lt=(function(){const F="0123456789abcdef",R=new Array(256);for(let O=0;O<16;++O){const A=O*16;for(let H=0;H<16;++H)R[A+H]=F[O]+F[H]}return R})();function jt(F){return typeof BigInt>"u"?te:F}function te(){throw new Error("BigInt not supported")}})(ds)),ds}var Ae=hs();const $r=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Ri(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function ps(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function Cr(t,...n){if(!Ri(t))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(t.length))throw new Error("Uint8Array expected of length "+n+", got length="+t.length)}function tu(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ps(t.outputLen),ps(t.blockLen)}function lo(t,n=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(n&&t.finished)throw new Error("Hash#digest() has already been called")}function Bl(t,n){Cr(t);const r=n.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Jr(...t){for(let n=0;n<t.length;n++)t[n].fill(0)}function vs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Zn(t,n){return t<<32-n|t>>>n}const eu=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Ml=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function Br(t){if(Cr(t),eu)return t.toHex();let n="";for(let r=0;r<t.length;r++)n+=Ml[t[r]];return n}const rr={_0:48,_9:57,A:65,F:70,a:97,f:102};function nu(t){if(t>=rr._0&&t<=rr._9)return t-rr._0;if(t>=rr.A&&t<=rr.F)return t-(rr.A-10);if(t>=rr.a&&t<=rr.f)return t-(rr.a-10)}function ho(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(eu)return Uint8Array.fromHex(t);const n=t.length,r=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const e=new Uint8Array(r);for(let u=0,a=0;u<r;u++,a+=2){const d=nu(t.charCodeAt(a)),E=nu(t.charCodeAt(a+1));if(d===void 0||E===void 0){const l=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+a)}e[u]=d*16+E}return e}function kl(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function gs(t){return typeof t=="string"&&(t=kl(t)),Cr(t),t}function Kn(...t){let n=0;for(let e=0;e<t.length;e++){const u=t[e];Cr(u),n+=u.length}const r=new Uint8Array(n);for(let e=0,u=0;e<t.length;e++){const a=t[e];r.set(a,u),u+=a.length}return r}class ru{}function iu(t){const n=e=>t().update(gs(e)).digest(),r=t();return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=()=>t(),n}function ms(t=32){if($r&&typeof $r.getRandomValues=="function")return $r.getRandomValues(new Uint8Array(t));if($r&&typeof $r.randomBytes=="function")return Uint8Array.from($r.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function Ul(t,n,r,e){if(typeof t.setBigUint64=="function")return t.setBigUint64(n,r,e);const u=BigInt(32),a=BigInt(4294967295),d=Number(r>>u&a),E=Number(r&a),l=e?4:0,b=e?0:4;t.setUint32(n+l,d,e),t.setUint32(n+b,E,e)}function Dl(t,n,r){return t&n^~t&r}function Pl(t,n,r){return t&n^t&r^n&r}class ou extends ru{constructor(n,r,e,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=n,this.outputLen=r,this.padOffset=e,this.isLE=u,this.buffer=new Uint8Array(n),this.view=vs(this.buffer)}update(n){lo(this),n=gs(n),Cr(n);const{view:r,buffer:e,blockLen:u}=this,a=n.length;for(let d=0;d<a;){const E=Math.min(u-this.pos,a-d);if(E===u){const l=vs(n);for(;u<=a-d;d+=u)this.process(l,d);continue}e.set(n.subarray(d,d+E),this.pos),this.pos+=E,d+=E,this.pos===u&&(this.process(r,0),this.pos=0)}return this.length+=n.length,this.roundClean(),this}digestInto(n){lo(this),Bl(n,this),this.finished=!0;const{buffer:r,view:e,blockLen:u,isLE:a}=this;let{pos:d}=this;r[d++]=128,Jr(this.buffer.subarray(d)),this.padOffset>u-d&&(this.process(e,0),d=0);for(let L=d;L<u;L++)r[L]=0;Ul(e,u-8,BigInt(this.length*8),a),this.process(e,0);const E=vs(n),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const b=l/4,T=this.get();if(b>T.length)throw new Error("_sha2: outputLen bigger than state");for(let L=0;L<b;L++)E.setUint32(4*L,T[L],a)}digest(){const{buffer:n,outputLen:r}=this;this.digestInto(n);const e=n.slice(0,r);return this.destroy(),e}_cloneInto(n){n||(n=new this.constructor),n.set(...this.get());const{blockLen:r,buffer:e,length:u,finished:a,destroyed:d,pos:E}=this;return n.destroyed=d,n.finished=a,n.length=u,n.pos=E,u%r&&n.buffer.set(e),n}clone(){return this._cloneInto()}}const vr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yn=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),po=BigInt(2**32-1),su=BigInt(32);function Fl(t,n=!1){return n?{h:Number(t&po),l:Number(t>>su&po)}:{h:Number(t>>su&po)|0,l:Number(t&po)|0}}function Vl(t,n=!1){const r=t.length;let e=new Uint32Array(r),u=new Uint32Array(r);for(let a=0;a<r;a++){const{h:d,l:E}=Fl(t[a],n);[e[a],u[a]]=[d,E]}return[e,u]}const au=(t,n,r)=>t>>>r,uu=(t,n,r)=>t<<32-r|n>>>r,Qr=(t,n,r)=>t>>>r|n<<32-r,ti=(t,n,r)=>t<<32-r|n>>>r,vo=(t,n,r)=>t<<64-r|n>>>r-32,go=(t,n,r)=>t>>>r-32|n<<64-r;function ir(t,n,r,e){const u=(n>>>0)+(e>>>0);return{h:t+r+(u/2**32|0)|0,l:u|0}}const Hl=(t,n,r)=>(t>>>0)+(n>>>0)+(r>>>0),Gl=(t,n,r,e)=>n+r+e+(t/2**32|0)|0,jl=(t,n,r,e)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0),Yl=(t,n,r,e,u)=>n+r+e+u+(t/2**32|0)|0,Wl=(t,n,r,e,u)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0)+(u>>>0),zl=(t,n,r,e,u,a)=>n+r+e+u+a+(t/2**32|0)|0,Zl=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),gr=new Uint32Array(64);class Kl extends ou{constructor(n=32){super(64,n,8,!1),this.A=vr[0]|0,this.B=vr[1]|0,this.C=vr[2]|0,this.D=vr[3]|0,this.E=vr[4]|0,this.F=vr[5]|0,this.G=vr[6]|0,this.H=vr[7]|0}get(){const{A:n,B:r,C:e,D:u,E:a,F:d,G:E,H:l}=this;return[n,r,e,u,a,d,E,l]}set(n,r,e,u,a,d,E,l){this.A=n|0,this.B=r|0,this.C=e|0,this.D=u|0,this.E=a|0,this.F=d|0,this.G=E|0,this.H=l|0}process(n,r){for(let L=0;L<16;L++,r+=4)gr[L]=n.getUint32(r,!1);for(let L=16;L<64;L++){const N=gr[L-15],x=gr[L-2],M=Zn(N,7)^Zn(N,18)^N>>>3,D=Zn(x,17)^Zn(x,19)^x>>>10;gr[L]=D+gr[L-7]+M+gr[L-16]|0}let{A:e,B:u,C:a,D:d,E,F:l,G:b,H:T}=this;for(let L=0;L<64;L++){const N=Zn(E,6)^Zn(E,11)^Zn(E,25),x=T+N+Dl(E,l,b)+Zl[L]+gr[L]|0,D=(Zn(e,2)^Zn(e,13)^Zn(e,22))+Pl(e,u,a)|0;T=b,b=l,l=E,E=d+x|0,d=a,a=u,u=e,e=x+D|0}e=e+this.A|0,u=u+this.B|0,a=a+this.C|0,d=d+this.D|0,E=E+this.E|0,l=l+this.F|0,b=b+this.G|0,T=T+this.H|0,this.set(e,u,a,d,E,l,b,T)}roundClean(){Jr(gr)}destroy(){this.set(0,0,0,0,0,0,0,0),Jr(this.buffer)}}const cu=Vl(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Xl=cu[0],ql=cu[1],mr=new Uint32Array(80),yr=new Uint32Array(80);class $l extends ou{constructor(n=64){super(128,n,16,!1),this.Ah=yn[0]|0,this.Al=yn[1]|0,this.Bh=yn[2]|0,this.Bl=yn[3]|0,this.Ch=yn[4]|0,this.Cl=yn[5]|0,this.Dh=yn[6]|0,this.Dl=yn[7]|0,this.Eh=yn[8]|0,this.El=yn[9]|0,this.Fh=yn[10]|0,this.Fl=yn[11]|0,this.Gh=yn[12]|0,this.Gl=yn[13]|0,this.Hh=yn[14]|0,this.Hl=yn[15]|0}get(){const{Ah:n,Al:r,Bh:e,Bl:u,Ch:a,Cl:d,Dh:E,Dl:l,Eh:b,El:T,Fh:L,Fl:N,Gh:x,Gl:M,Hh:D,Hl:Y}=this;return[n,r,e,u,a,d,E,l,b,T,L,N,x,M,D,Y]}set(n,r,e,u,a,d,E,l,b,T,L,N,x,M,D,Y){this.Ah=n|0,this.Al=r|0,this.Bh=e|0,this.Bl=u|0,this.Ch=a|0,this.Cl=d|0,this.Dh=E|0,this.Dl=l|0,this.Eh=b|0,this.El=T|0,this.Fh=L|0,this.Fl=N|0,this.Gh=x|0,this.Gl=M|0,this.Hh=D|0,this.Hl=Y|0}process(n,r){for(let q=0;q<16;q++,r+=4)mr[q]=n.getUint32(r),yr[q]=n.getUint32(r+=4);for(let q=16;q<80;q++){const ot=mr[q-15]|0,pt=yr[q-15]|0,ft=Qr(ot,pt,1)^Qr(ot,pt,8)^au(ot,pt,7),Rt=ti(ot,pt,1)^ti(ot,pt,8)^uu(ot,pt,7),At=mr[q-2]|0,st=yr[q-2]|0,lt=Qr(At,st,19)^vo(At,st,61)^au(At,st,6),mt=ti(At,st,19)^go(At,st,61)^uu(At,st,6),wt=jl(Rt,mt,yr[q-7],yr[q-16]),P=Yl(wt,ft,lt,mr[q-7],mr[q-16]);mr[q]=P|0,yr[q]=wt|0}let{Ah:e,Al:u,Bh:a,Bl:d,Ch:E,Cl:l,Dh:b,Dl:T,Eh:L,El:N,Fh:x,Fl:M,Gh:D,Gl:Y,Hh:W,Hl:J}=this;for(let q=0;q<80;q++){const ot=Qr(L,N,14)^Qr(L,N,18)^vo(L,N,41),pt=ti(L,N,14)^ti(L,N,18)^go(L,N,41),ft=L&x^~L&D,Rt=N&M^~N&Y,At=Wl(J,pt,Rt,ql[q],yr[q]),st=zl(At,W,ot,ft,Xl[q],mr[q]),lt=At|0,mt=Qr(e,u,28)^vo(e,u,34)^vo(e,u,39),wt=ti(e,u,28)^go(e,u,34)^go(e,u,39),P=e&a^e&E^a&E,f=u&d^u&l^d&l;W=D|0,J=Y|0,D=x|0,Y=M|0,x=L|0,M=N|0,{h:L,l:N}=ir(b|0,T|0,st|0,lt|0),b=E|0,T=l|0,E=a|0,l=d|0,a=e|0,d=u|0;const S=Hl(lt,wt,f);e=Gl(S,st,mt,P),u=S|0}({h:e,l:u}=ir(this.Ah|0,this.Al|0,e|0,u|0)),{h:a,l:d}=ir(this.Bh|0,this.Bl|0,a|0,d|0),{h:E,l}=ir(this.Ch|0,this.Cl|0,E|0,l|0),{h:b,l:T}=ir(this.Dh|0,this.Dl|0,b|0,T|0),{h:L,l:N}=ir(this.Eh|0,this.El|0,L|0,N|0),{h:x,l:M}=ir(this.Fh|0,this.Fl|0,x|0,M|0),{h:D,l:Y}=ir(this.Gh|0,this.Gl|0,D|0,Y|0),{h:W,l:J}=ir(this.Hh|0,this.Hl|0,W|0,J|0),this.set(e,u,a,d,E,l,b,T,L,N,x,M,D,Y,W,J)}roundClean(){Jr(mr,yr)}destroy(){Jr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const fu=iu(()=>new Kl),Jl=iu(()=>new $l);const ys=BigInt(0),ws=BigInt(1);function Mr(t,n=""){if(typeof t!="boolean"){const r=n&&`"${n}"`;throw new Error(r+"expected boolean, got type="+typeof t)}return t}function Fn(t,n,r=""){const e=Ri(t),u=t?.length,a=n!==void 0;if(!e||a&&u!==n){const d=r&&`"${r}" `,E=a?` of length ${n}`:"",l=e?`length=${u}`:`type=${typeof t}`;throw new Error(d+"expected Uint8Array"+E+", got "+l)}return t}function mo(t){const n=t.toString(16);return n.length&1?"0"+n:n}function lu(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?ys:BigInt("0x"+t)}function yo(t){return lu(Br(t))}function Ai(t){return Cr(t),lu(Br(Uint8Array.from(t).reverse()))}function Es(t,n){return ho(t.toString(16).padStart(n*2,"0"))}function du(t,n){return Es(t,n).reverse()}function Ze(t,n,r){let e;if(typeof n=="string")try{e=ho(n)}catch(a){throw new Error(t+" must be hex string or Uint8Array, cause: "+a)}else if(Ri(n))e=Uint8Array.from(n);else throw new Error(t+" must be hex string or Uint8Array");const u=e.length;if(typeof r=="number"&&u!==r)throw new Error(t+" of length "+r+" expected, got "+u);return e}function hu(t){return Uint8Array.from(t)}const bs=t=>typeof t=="bigint"&&ys<=t;function Ql(t,n,r){return bs(t)&&bs(n)&&bs(r)&&n<=t&&t<r}function _s(t,n,r,e){if(!Ql(n,r,e))throw new Error("expected valid "+t+": "+r+" <= n < "+e+", got "+n)}function pu(t){let n;for(n=0;t>ys;t>>=ws,n+=1);return n}const Si=t=>(ws<<BigInt(t))-ws;function td(t,n,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");const e=x=>new Uint8Array(x),u=x=>Uint8Array.of(x);let a=e(t),d=e(t),E=0;const l=()=>{a.fill(1),d.fill(0),E=0},b=(...x)=>r(d,a,...x),T=(x=e(0))=>{d=b(u(0),x),a=b(),x.length!==0&&(d=b(u(1),x),a=b())},L=()=>{if(E++>=1e3)throw new Error("drbg: tried 1000 values");let x=0;const M=[];for(;x<n;){a=b();const D=a.slice();M.push(D),x+=a.length}return Kn(...M)};return(x,M)=>{l(),T(x);let D;for(;!(D=M(L()));)T();return l(),D}}function Ii(t,n,r={}){if(!t||typeof t!="object")throw new Error("expected valid options object");function e(u,a,d){const E=t[u];if(d&&E===void 0)return;const l=typeof E;if(l!==a||E===null)throw new Error(`param "${u}" is invalid: expected ${a}, got ${l}`)}Object.entries(n).forEach(([u,a])=>e(u,a,!1)),Object.entries(r).forEach(([u,a])=>e(u,a,!0))}function wo(t){const n=new WeakMap;return(r,...e)=>{const u=n.get(r);if(u!==void 0)return u;const a=t(r,...e);return n.set(r,a),a}}const Tn=BigInt(0),vn=BigInt(1),kr=BigInt(2),vu=BigInt(3),gu=BigInt(4),mu=BigInt(5),ed=BigInt(7),yu=BigInt(8),nd=BigInt(9),wu=BigInt(16);function sn(t,n){const r=t%n;return r>=Tn?r:n+r}function Ke(t,n,r){let e=t;for(;n-- >Tn;)e*=e,e%=r;return e}function Eu(t,n){if(t===Tn)throw new Error("invert: expected non-zero number");if(n<=Tn)throw new Error("invert: expected positive modulus, got "+n);let r=sn(t,n),e=n,u=Tn,a=vn;for(;r!==Tn;){const E=e/r,l=e%r,b=u-a*E;e=r,r=l,u=a,a=b}if(e!==vn)throw new Error("invert: does not exist");return sn(u,n)}function Rs(t,n,r){if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root")}function bu(t,n){const r=(t.ORDER+vn)/gu,e=t.pow(n,r);return Rs(t,e,n),e}function rd(t,n){const r=(t.ORDER-mu)/yu,e=t.mul(n,kr),u=t.pow(e,r),a=t.mul(n,u),d=t.mul(t.mul(a,kr),u),E=t.mul(a,t.sub(d,t.ONE));return Rs(t,E,n),E}function id(t){const n=Ur(t),r=_u(t),e=r(n,n.neg(n.ONE)),u=r(n,e),a=r(n,n.neg(e)),d=(t+ed)/wu;return(E,l)=>{let b=E.pow(l,d),T=E.mul(b,e);const L=E.mul(b,u),N=E.mul(b,a),x=E.eql(E.sqr(T),l),M=E.eql(E.sqr(L),l);b=E.cmov(b,T,x),T=E.cmov(N,L,M);const D=E.eql(E.sqr(T),l),Y=E.cmov(b,T,D);return Rs(E,Y,l),Y}}function _u(t){if(t<vu)throw new Error("sqrt is not defined for small field");let n=t-vn,r=0;for(;n%kr===Tn;)n/=kr,r++;let e=kr;const u=Ur(t);for(;Au(u,e)===1;)if(e++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return bu;let a=u.pow(e,n);const d=(n+vn)/kr;return function(l,b){if(l.is0(b))return b;if(Au(l,b)!==1)throw new Error("Cannot find square root");let T=r,L=l.mul(l.ONE,a),N=l.pow(b,n),x=l.pow(b,d);for(;!l.eql(N,l.ONE);){if(l.is0(N))return l.ZERO;let M=1,D=l.sqr(N);for(;!l.eql(D,l.ONE);)if(M++,D=l.sqr(D),M===T)throw new Error("Cannot find square root");const Y=vn<<BigInt(T-M-1),W=l.pow(L,Y);T=M,L=l.sqr(W),N=l.mul(N,L),x=l.mul(x,W)}return x}}function od(t){return t%gu===vu?bu:t%yu===mu?rd:t%wu===nd?id(t):_u(t)}const sd=(t,n)=>(sn(t,n)&vn)===vn,ad=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ud(t){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=ad.reduce((e,u)=>(e[u]="function",e),n);return Ii(t,r),t}function cd(t,n,r){if(r<Tn)throw new Error("invalid exponent, negatives unsupported");if(r===Tn)return t.ONE;if(r===vn)return n;let e=t.ONE,u=n;for(;r>Tn;)r&vn&&(e=t.mul(e,u)),u=t.sqr(u),r>>=vn;return e}function Ru(t,n,r=!1){const e=new Array(n.length).fill(r?t.ZERO:void 0),u=n.reduce((d,E,l)=>t.is0(E)?d:(e[l]=d,t.mul(d,E)),t.ONE),a=t.inv(u);return n.reduceRight((d,E,l)=>t.is0(E)?d:(e[l]=t.mul(d,e[l]),t.mul(d,E)),a),e}function Au(t,n){const r=(t.ORDER-vn)/kr,e=t.pow(n,r),u=t.eql(e,t.ONE),a=t.eql(e,t.ZERO),d=t.eql(e,t.neg(t.ONE));if(!u&&!a&&!d)throw new Error("invalid Legendre symbol result");return u?1:a?0:-1}function Su(t,n){n!==void 0&&ps(n);const r=n!==void 0?n:t.toString(2).length,e=Math.ceil(r/8);return{nBitLength:r,nByteLength:e}}function Ur(t,n,r=!1,e={}){if(t<=Tn)throw new Error("invalid field: expected ORDER > 0, got "+t);let u,a,d=!1,E;if(typeof n=="object"&&n!=null){if(e.sqrt||r)throw new Error("cannot specify opts in two arguments");const N=n;N.BITS&&(u=N.BITS),N.sqrt&&(a=N.sqrt),typeof N.isLE=="boolean"&&(r=N.isLE),typeof N.modFromBytes=="boolean"&&(d=N.modFromBytes),E=N.allowedLengths}else typeof n=="number"&&(u=n),e.sqrt&&(a=e.sqrt);const{nBitLength:l,nByteLength:b}=Su(t,u);if(b>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let T;const L=Object.freeze({ORDER:t,isLE:r,BITS:l,BYTES:b,MASK:Si(l),ZERO:Tn,ONE:vn,allowedLengths:E,create:N=>sn(N,t),isValid:N=>{if(typeof N!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof N);return Tn<=N&&N<t},is0:N=>N===Tn,isValidNot0:N=>!L.is0(N)&&L.isValid(N),isOdd:N=>(N&vn)===vn,neg:N=>sn(-N,t),eql:(N,x)=>N===x,sqr:N=>sn(N*N,t),add:(N,x)=>sn(N+x,t),sub:(N,x)=>sn(N-x,t),mul:(N,x)=>sn(N*x,t),pow:(N,x)=>cd(L,N,x),div:(N,x)=>sn(N*Eu(x,t),t),sqrN:N=>N*N,addN:(N,x)=>N+x,subN:(N,x)=>N-x,mulN:(N,x)=>N*x,inv:N=>Eu(N,t),sqrt:a||(N=>(T||(T=od(t)),T(L,N))),toBytes:N=>r?du(N,b):Es(N,b),fromBytes:(N,x=!0)=>{if(E){if(!E.includes(N.length)||N.length>b)throw new Error("Field.fromBytes: expected "+E+" bytes, got "+N.length);const D=new Uint8Array(b);D.set(N,r?0:D.length-N.length),N=D}if(N.length!==b)throw new Error("Field.fromBytes: expected "+b+" bytes, got "+N.length);let M=r?Ai(N):yo(N);if(d&&(M=sn(M,t)),!x&&!L.isValid(M))throw new Error("invalid field element: outside of range 0..ORDER");return M},invertBatch:N=>Ru(L,N),cmov:(N,x,M)=>M?x:N});return Object.freeze(L)}function Iu(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const n=t.toString(2).length;return Math.ceil(n/8)}function Ou(t){const n=Iu(t);return n+Math.ceil(n/2)}function fd(t,n,r=!1){const e=t.length,u=Iu(n),a=Ou(n);if(e<16||e<a||e>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+e);const d=r?Ai(t):yo(t),E=sn(d,n-vn)+vn;return r?du(E,u):Es(E,u)}const ei=BigInt(0),Dr=BigInt(1);function Eo(t,n){const r=n.negate();return t?r:n}function Pr(t,n){const r=Ru(t.Fp,n.map(e=>e.Z));return n.map((e,u)=>t.fromAffine(e.toAffine(r[u])))}function Tu(t,n){if(!Number.isSafeInteger(t)||t<=0||t>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+t)}function As(t,n){Tu(t,n);const r=Math.ceil(n/t)+1,e=2**(t-1),u=2**t,a=Si(t),d=BigInt(t);return{windows:r,windowSize:e,mask:a,maxNumber:u,shiftBy:d}}function Nu(t,n,r){const{windowSize:e,mask:u,maxNumber:a,shiftBy:d}=r;let E=Number(t&u),l=t>>d;E>e&&(E-=a,l+=Dr);const b=n*e,T=b+Math.abs(E)-1,L=E===0,N=E<0,x=n%2!==0;return{nextN:l,offset:T,isZero:L,isNeg:N,isNegF:x,offsetF:b}}function ld(t,n){if(!Array.isArray(t))throw new Error("array expected");t.forEach((r,e)=>{if(!(r instanceof n))throw new Error("invalid point at index "+e)})}function dd(t,n){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((r,e)=>{if(!n.isValid(r))throw new Error("invalid scalar at index "+e)})}const Ss=new WeakMap,xu=new WeakMap;function Is(t){return xu.get(t)||1}function Lu(t){if(t!==ei)throw new Error("invalid wNAF")}class Cu{constructor(n,r){this.BASE=n.BASE,this.ZERO=n.ZERO,this.Fn=n.Fn,this.bits=r}_unsafeLadder(n,r,e=this.ZERO){let u=n;for(;r>ei;)r&Dr&&(e=e.add(u)),u=u.double(),r>>=Dr;return e}precomputeWindow(n,r){const{windows:e,windowSize:u}=As(r,this.bits),a=[];let d=n,E=d;for(let l=0;l<e;l++){E=d,a.push(E);for(let b=1;b<u;b++)E=E.add(d),a.push(E);d=E.double()}return a}wNAF(n,r,e){if(!this.Fn.isValid(e))throw new Error("invalid scalar");let u=this.ZERO,a=this.BASE;const d=As(n,this.bits);for(let E=0;E<d.windows;E++){const{nextN:l,offset:b,isZero:T,isNeg:L,isNegF:N,offsetF:x}=Nu(e,E,d);e=l,T?a=a.add(Eo(N,r[x])):u=u.add(Eo(L,r[b]))}return Lu(e),{p:u,f:a}}wNAFUnsafe(n,r,e,u=this.ZERO){const a=As(n,this.bits);for(let d=0;d<a.windows&&e!==ei;d++){const{nextN:E,offset:l,isZero:b,isNeg:T}=Nu(e,d,a);if(e=E,!b){const L=r[l];u=u.add(T?L.negate():L)}}return Lu(e),u}getPrecomputes(n,r,e){let u=Ss.get(r);return u||(u=this.precomputeWindow(r,n),n!==1&&(typeof e=="function"&&(u=e(u)),Ss.set(r,u))),u}cached(n,r,e){const u=Is(n);return this.wNAF(u,this.getPrecomputes(u,n,e),r)}unsafe(n,r,e,u){const a=Is(n);return a===1?this._unsafeLadder(n,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,n,e),r,u)}createCache(n,r){Tu(r,this.bits),xu.set(n,r),Ss.delete(n)}hasCache(n){return Is(n)!==1}}function hd(t,n,r,e){let u=n,a=t.ZERO,d=t.ZERO;for(;r>ei||e>ei;)r&Dr&&(a=a.add(u)),e&Dr&&(d=d.add(u)),u=u.double(),r>>=Dr,e>>=Dr;return{p1:a,p2:d}}function Bu(t,n,r,e){ld(r,t),dd(e,n);const u=r.length,a=e.length;if(u!==a)throw new Error("arrays of points and scalars must have equal length");const d=t.ZERO,E=pu(BigInt(u));let l=1;E>12?l=E-3:E>4?l=E-2:E>0&&(l=2);const b=Si(l),T=new Array(Number(b)+1).fill(d),L=Math.floor((n.BITS-1)/l)*l;let N=d;for(let x=L;x>=0;x-=l){T.fill(d);for(let D=0;D<a;D++){const Y=e[D],W=Number(Y>>BigInt(x)&b);T[W]=T[W].add(r[D])}let M=d;for(let D=T.length-1,Y=d;D>0;D--)Y=Y.add(T[D]),M=M.add(Y);if(N=N.add(M),x!==0)for(let D=0;D<l;D++)N=N.double()}return N}function Mu(t,n,r){if(n){if(n.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return ud(n),n}else return Ur(t,{isLE:r})}function ku(t,n,r={},e){if(e===void 0&&(e=t==="edwards"),!n||typeof n!="object")throw new Error(`expected valid ${t} CURVE object`);for(const l of["p","n","h"]){const b=n[l];if(!(typeof b=="bigint"&&b>ei))throw new Error(`CURVE.${l} must be positive bigint`)}const u=Mu(n.p,r.Fp,e),a=Mu(n.n,r.Fn,e),E=["Gx","Gy","a",t==="weierstrass"?"b":"d"];for(const l of E)if(!u.isValid(n[l]))throw new Error(`CURVE.${l} must be valid field element of CURVE.Fp`);return n=Object.freeze(Object.assign({},n)),{CURVE:n,Fp:u,Fn:a}}const wr=BigInt(0),ln=BigInt(1),Os=BigInt(2),pd=BigInt(8);function vd(t,n,r,e){const u=t.sqr(r),a=t.sqr(e),d=t.add(t.mul(n.a,u),a),E=t.add(t.ONE,t.mul(n.d,t.mul(u,a)));return t.eql(d,E)}function gd(t,n={}){const r=ku("edwards",t,n,n.FpFnLE),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:d}=a;Ii(n,{},{uvRatio:"function"});const E=Os<<BigInt(u.BYTES*8)-ln,l=Y=>e.create(Y),b=n.uvRatio||((Y,W)=>{try{return{isValid:!0,value:e.sqrt(e.div(Y,W))}}catch{return{isValid:!1,value:wr}}});if(!vd(e,a,a.Gx,a.Gy))throw new Error("bad curve params: generator point");function T(Y,W,J=!1){const q=J?ln:wr;return _s("coordinate "+Y,W,q,E),W}function L(Y){if(!(Y instanceof M))throw new Error("ExtendedPoint expected")}const N=wo((Y,W)=>{const{X:J,Y:q,Z:ot}=Y,pt=Y.is0();W==null&&(W=pt?pd:e.inv(ot));const ft=l(J*W),Rt=l(q*W),At=e.mul(ot,W);if(pt)return{x:wr,y:ln};if(At!==ln)throw new Error("invZ was invalid");return{x:ft,y:Rt}}),x=wo(Y=>{const{a:W,d:J}=a;if(Y.is0())throw new Error("bad point: ZERO");const{X:q,Y:ot,Z:pt,T:ft}=Y,Rt=l(q*q),At=l(ot*ot),st=l(pt*pt),lt=l(st*st),mt=l(Rt*W),wt=l(st*l(mt+At)),P=l(lt+l(J*l(Rt*At)));if(wt!==P)throw new Error("bad point: equation left != right (1)");const f=l(q*ot),S=l(pt*ft);if(f!==S)throw new Error("bad point: equation left != right (2)");return!0});class M{constructor(W,J,q,ot){this.X=T("x",W),this.Y=T("y",J),this.Z=T("z",q,!0),this.T=T("t",ot),Object.freeze(this)}static CURVE(){return a}static fromAffine(W){if(W instanceof M)throw new Error("extended point not allowed");const{x:J,y:q}=W||{};return T("x",J),T("y",q),new M(J,q,ln,l(J*q))}static fromBytes(W,J=!1){const q=e.BYTES,{a:ot,d:pt}=a;W=hu(Fn(W,q,"point")),Mr(J,"zip215");const ft=hu(W),Rt=W[q-1];ft[q-1]=Rt&-129;const At=Ai(ft),st=J?E:e.ORDER;_s("point.y",At,wr,st);const lt=l(At*At),mt=l(lt-ln),wt=l(pt*lt-ot);let{isValid:P,value:f}=b(mt,wt);if(!P)throw new Error("bad point: invalid y coordinate");const S=(f&ln)===ln,U=(Rt&128)!==0;if(!J&&f===wr&&U)throw new Error("bad point: x=0 and x_0=1");return U!==S&&(f=l(-f)),M.fromAffine({x:f,y:At})}static fromHex(W,J=!1){return M.fromBytes(Ze("point",W),J)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(W=8,J=!0){return D.createCache(this,W),J||this.multiply(Os),this}assertValidity(){x(this)}equals(W){L(W);const{X:J,Y:q,Z:ot}=this,{X:pt,Y:ft,Z:Rt}=W,At=l(J*Rt),st=l(pt*ot),lt=l(q*Rt),mt=l(ft*ot);return At===st&<===mt}is0(){return this.equals(M.ZERO)}negate(){return new M(l(-this.X),this.Y,this.Z,l(-this.T))}double(){const{a:W}=a,{X:J,Y:q,Z:ot}=this,pt=l(J*J),ft=l(q*q),Rt=l(Os*l(ot*ot)),At=l(W*pt),st=J+q,lt=l(l(st*st)-pt-ft),mt=At+ft,wt=mt-Rt,P=At-ft,f=l(lt*wt),S=l(mt*P),U=l(lt*P),z=l(wt*mt);return new M(f,S,z,U)}add(W){L(W);const{a:J,d:q}=a,{X:ot,Y:pt,Z:ft,T:Rt}=this,{X:At,Y:st,Z:lt,T:mt}=W,wt=l(ot*At),P=l(pt*st),f=l(Rt*q*mt),S=l(ft*lt),U=l((ot+pt)*(At+st)-wt-P),z=S-f,$=S+f,et=l(P-J*wt),ut=l(U*z),Z=l($*et),h=l(U*et),_=l(z*$);return new M(ut,Z,_,h)}subtract(W){return this.add(W.negate())}multiply(W){if(!u.isValidNot0(W))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:J,f:q}=D.cached(this,W,ot=>Pr(M,ot));return Pr(M,[J,q])[0]}multiplyUnsafe(W,J=M.ZERO){if(!u.isValid(W))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return W===wr?M.ZERO:this.is0()||W===ln?this:D.unsafe(this,W,q=>Pr(M,q),J)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return D.unsafe(this,a.n).is0()}toAffine(W){return N(this,W)}clearCofactor(){return d===ln?this:this.multiplyUnsafe(d)}toBytes(){const{x:W,y:J}=this.toAffine(),q=e.toBytes(J);return q[q.length-1]|=W&ln?128:0,q}toHex(){return Br(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(W){return Pr(M,W)}static msm(W,J){return Bu(M,u,W,J)}_setWindowSize(W){this.precompute(W)}toRawBytes(){return this.toBytes()}}M.BASE=new M(a.Gx,a.Gy,ln,l(a.Gx*a.Gy)),M.ZERO=new M(wr,ln,ln,wr),M.Fp=e,M.Fn=u;const D=new Cu(M,u.BITS);return M.BASE.precompute(8),M}function md(t,n,r={}){if(typeof n!="function")throw new Error('"hash" function param is required');Ii(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:e}=r,{BASE:u,Fp:a,Fn:d}=t,E=r.randomBytes||ms,l=r.adjustScalarBytes||(st=>st),b=r.domain||((st,lt,mt)=>{if(Mr(mt,"phflag"),lt.length||mt)throw new Error("Contexts/pre-hash are not supported");return st});function T(st){return d.create(Ai(st))}function L(st){const lt=q.secretKey;st=Ze("private key",st,lt);const mt=Ze("hashed private key",n(st),2*lt),wt=l(mt.slice(0,lt)),P=mt.slice(lt,2*lt),f=T(wt);return{head:wt,prefix:P,scalar:f}}function N(st){const{head:lt,prefix:mt,scalar:wt}=L(st),P=u.multiply(wt),f=P.toBytes();return{head:lt,prefix:mt,scalar:wt,point:P,pointBytes:f}}function x(st){return N(st).pointBytes}function M(st=Uint8Array.of(),...lt){const mt=Kn(...lt);return T(n(b(mt,Ze("context",st),!!e)))}function D(st,lt,mt={}){st=Ze("message",st),e&&(st=e(st));const{prefix:wt,scalar:P,pointBytes:f}=N(lt),S=M(mt.context,wt,st),U=u.multiply(S).toBytes(),z=M(mt.context,U,f,st),$=d.create(S+z*P);if(!d.isValid($))throw new Error("sign failed: invalid s");const et=Kn(U,d.toBytes($));return Fn(et,q.signature,"result")}const Y={zip215:!0};function W(st,lt,mt,wt=Y){const{context:P,zip215:f}=wt,S=q.signature;st=Ze("signature",st,S),lt=Ze("message",lt),mt=Ze("publicKey",mt,q.publicKey),f!==void 0&&Mr(f,"zip215"),e&&(lt=e(lt));const U=S/2,z=st.subarray(0,U),$=Ai(st.subarray(U,S));let et,ut,Z;try{et=t.fromBytes(mt,f),ut=t.fromBytes(z,f),Z=u.multiplyUnsafe($)}catch{return!1}if(!f&&et.isSmallOrder())return!1;const h=M(P,ut.toBytes(),et.toBytes(),lt);return ut.add(et.multiplyUnsafe(h)).subtract(Z).clearCofactor().is0()}const J=a.BYTES,q={secretKey:J,publicKey:J,signature:2*J,seed:J};function ot(st=E(q.seed)){return Fn(st,q.seed,"seed")}function pt(st){const lt=At.randomSecretKey(st);return{secretKey:lt,publicKey:x(lt)}}function ft(st){return Ri(st)&&st.length===d.BYTES}function Rt(st,lt){try{return!!t.fromBytes(st,lt)}catch{return!1}}const At={getExtendedPublicKey:N,randomSecretKey:ot,isValidSecretKey:ft,isValidPublicKey:Rt,toMontgomery(st){const{y:lt}=t.fromBytes(st),mt=q.publicKey,wt=mt===32;if(!wt&&mt!==57)throw new Error("only defined for 25519 and 448");const P=wt?a.div(ln+lt,ln-lt):a.div(lt-ln,lt+ln);return a.toBytes(P)},toMontgomerySecret(st){const lt=q.secretKey;Fn(st,lt);const mt=n(st.subarray(0,lt));return l(mt).subarray(0,lt)},randomPrivateKey:ot,precompute(st=8,lt=t.BASE){return lt.precompute(st,!1)}};return Object.freeze({keygen:pt,getPublicKey:x,sign:D,verify:W,utils:At,Point:t,lengths:q})}function yd(t){const n={a:t.a,d:t.d,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,e=Ur(n.n,t.nBitLength,!0),u={Fp:r,Fn:e,uvRatio:t.uvRatio},a={randomBytes:t.randomBytes,adjustScalarBytes:t.adjustScalarBytes,domain:t.domain,prehash:t.prehash,mapToCurve:t.mapToCurve};return{CURVE:n,curveOpts:u,hash:t.hash,eddsaOpts:a}}function wd(t,n){const r=n.Point;return Object.assign({},n,{ExtendedPoint:r,CURVE:t,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}function Ed(t){const{CURVE:n,curveOpts:r,hash:e,eddsaOpts:u}=yd(t),a=gd(n,r),d=md(a,e,u);return wd(t,d)}const bd=BigInt(1),Uu=BigInt(2);BigInt(3);const _d=BigInt(5),Rd=BigInt(8),Ts=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),Du={p:Ts,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:Rd,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function Ad(t){const n=BigInt(10),r=BigInt(20),e=BigInt(40),u=BigInt(80),a=Ts,E=t*t%a*t%a,l=Ke(E,Uu,a)*E%a,b=Ke(l,bd,a)*t%a,T=Ke(b,_d,a)*b%a,L=Ke(T,n,a)*T%a,N=Ke(L,r,a)*L%a,x=Ke(N,e,a)*N%a,M=Ke(x,u,a)*x%a,D=Ke(M,u,a)*x%a,Y=Ke(D,n,a)*T%a;return{pow_p_5_8:Ke(Y,Uu,a)*t%a,b2:E}}function Sd(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const Pu=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function Id(t,n){const r=Ts,e=sn(n*n*n,r),u=sn(e*e*n,r),a=Ad(t*u).pow_p_5_8;let d=sn(t*e*a,r);const E=sn(n*d*d,r),l=d,b=sn(d*Pu,r),T=E===t,L=E===sn(-t,r),N=E===sn(-t*Pu,r);return T&&(d=l),(L||N)&&(d=b),sd(d,r)&&(d=sn(-d,r)),{isValid:T||L,value:d}}const Od=Ur(Du.p,{isLE:!0}),Td={...Du,Fp:Od,hash:Jl,adjustScalarBytes:Sd,uvRatio:Id},Oi=Ed(Td);var bo={exports:{}};const Nd=ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xd=bo.exports,Fu;function Vu(){return Fu||(Fu=1,(function(t){(function(n,r){function e(P,f){if(!P)throw new Error(f||"Assertion failed")}function u(P,f){P.super_=f;var S=function(){};S.prototype=f.prototype,P.prototype=new S,P.prototype.constructor=P}function a(P,f,S){if(a.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((f==="le"||f==="be")&&(S=f,f=10),this._init(P||0,f||10,S||"be"))}typeof n=="object"?n.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=Nd.Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,S){return f.cmp(S)>0?f:S},a.min=function(f,S){return f.cmp(S)<0?f:S},a.prototype._init=function(f,S,U){if(typeof f=="number")return this._initNumber(f,S,U);if(typeof f=="object")return this._initArray(f,S,U);S==="hex"&&(S=16),e(S===(S|0)&&S>=2&&S<=36),f=f.toString().replace(/\s+/g,"");var z=0;f[0]==="-"&&(z++,this.negative=1),z<f.length&&(S===16?this._parseHex(f,z,U):(this._parseBase(f,S,z),U==="le"&&this._initArray(this.toArray(),S,U)))},a.prototype._initNumber=function(f,S,U){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(e(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),S,U)},a.prototype._initArray=function(f,S,U){if(e(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var $,et,ut=0;if(U==="be")for(z=f.length-1,$=0;z>=0;z-=3)et=f[z]|f[z-1]<<8|f[z-2]<<16,this.words[$]|=et<<ut&67108863,this.words[$+1]=et>>>26-ut&67108863,ut+=24,ut>=26&&(ut-=26,$++);else if(U==="le")for(z=0,$=0;z<f.length;z+=3)et=f[z]|f[z+1]<<8|f[z+2]<<16,this.words[$]|=et<<ut&67108863,this.words[$+1]=et>>>26-ut&67108863,ut+=24,ut>=26&&(ut-=26,$++);return this._strip()};function E(P,f){var S=P.charCodeAt(f);if(S>=48&&S<=57)return S-48;if(S>=65&&S<=70)return S-55;if(S>=97&&S<=102)return S-87;e(!1,"Invalid character in "+P)}function l(P,f,S){var U=E(P,S);return S-1>=f&&(U|=E(P,S-1)<<4),U}a.prototype._parseHex=function(f,S,U){this.length=Math.ceil((f.length-S)/6),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var $=0,et=0,ut;if(U==="be")for(z=f.length-1;z>=S;z-=2)ut=l(f,S,z)<<$,this.words[et]|=ut&67108863,$>=18?($-=18,et+=1,this.words[et]|=ut>>>26):$+=8;else{var Z=f.length-S;for(z=Z%2===0?S+1:S;z<f.length;z+=2)ut=l(f,S,z)<<$,this.words[et]|=ut&67108863,$>=18?($-=18,et+=1,this.words[et]|=ut>>>26):$+=8}this._strip()};function b(P,f,S,U){for(var z=0,$=0,et=Math.min(P.length,S),ut=f;ut<et;ut++){var Z=P.charCodeAt(ut)-48;z*=U,Z>=49?$=Z-49+10:Z>=17?$=Z-17+10:$=Z,e(Z>=0&&$<U,"Invalid character"),z+=$}return z}a.prototype._parseBase=function(f,S,U){this.words=[0],this.length=1;for(var z=0,$=1;$<=67108863;$*=S)z++;z--,$=$/S|0;for(var et=f.length-U,ut=et%z,Z=Math.min(et,et-ut)+U,h=0,_=U;_<Z;_+=z)h=b(f,_,_+z,S),this.imuln($),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(ut!==0){var j=1;for(h=b(f,_,f.length,S),_=0;_<ut;_++)j*=S;this.imuln(j),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},a.prototype.copy=function(f){f.words=new Array(this.length);for(var S=0;S<this.length;S++)f.words[S]=this.words[S];f.length=this.length,f.negative=this.negative,f.red=this.red};function T(P,f){P.words=f.words,P.length=f.length,P.negative=f.negative,P.red=f.red}if(a.prototype._move=function(f){T(f,this)},a.prototype.clone=function(){var f=new a(null);return this.copy(f),f},a.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=L}catch{a.prototype.inspect=L}else a.prototype.inspect=L;function L(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(f,S){f=f||10,S=S|0||1;var U;if(f===16||f==="hex"){U="";for(var z=0,$=0,et=0;et<this.length;et++){var ut=this.words[et],Z=((ut<<z|$)&16777215).toString(16);$=ut>>>24-z&16777215,z+=2,z>=26&&(z-=26,et--),$!==0||et!==this.length-1?U=N[6-Z.length]+Z+U:U=Z+U}for($!==0&&(U=$.toString(16)+U);U.length%S!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(f===(f|0)&&f>=2&&f<=36){var h=x[f],_=M[f];U="";var j=this.clone();for(j.negative=0;!j.isZero();){var K=j.modrn(_).toString(f);j=j.idivn(_),j.isZero()?U=K+U:U=N[h-K.length]+K+U}for(this.isZero()&&(U="0"+U);U.length%S!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}e(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(f,S){return this.toArrayLike(d,f,S)}),a.prototype.toArray=function(f,S){return this.toArrayLike(Array,f,S)};var D=function(f,S){return f.allocUnsafe?f.allocUnsafe(S):new f(S)};a.prototype.toArrayLike=function(f,S,U){this._strip();var z=this.byteLength(),$=U||Math.max(1,z);e(z<=$,"byte array longer than desired length"),e($>0,"Requested array length <= 0");var et=D(f,$),ut=S==="le"?"LE":"BE";return this["_toArrayLike"+ut](et,z),et},a.prototype._toArrayLikeLE=function(f,S){for(var U=0,z=0,$=0,et=0;$<this.length;$++){var ut=this.words[$]<<et|z;f[U++]=ut&255,U<f.length&&(f[U++]=ut>>8&255),U<f.length&&(f[U++]=ut>>16&255),et===6?(U<f.length&&(f[U++]=ut>>24&255),z=0,et=0):(z=ut>>>24,et+=2)}if(U<f.length)for(f[U++]=z;U<f.length;)f[U++]=0},a.prototype._toArrayLikeBE=function(f,S){for(var U=f.length-1,z=0,$=0,et=0;$<this.length;$++){var ut=this.words[$]<<et|z;f[U--]=ut&255,U>=0&&(f[U--]=ut>>8&255),U>=0&&(f[U--]=ut>>16&255),et===6?(U>=0&&(f[U--]=ut>>24&255),z=0,et=0):(z=ut>>>24,et+=2)}if(U>=0)for(f[U--]=z;U>=0;)f[U--]=0},Math.clz32?a.prototype._countBits=function(f){return 32-Math.clz32(f)}:a.prototype._countBits=function(f){var S=f,U=0;return S>=4096&&(U+=13,S>>>=13),S>=64&&(U+=7,S>>>=7),S>=8&&(U+=4,S>>>=4),S>=2&&(U+=2,S>>>=2),U+S},a.prototype._zeroBits=function(f){if(f===0)return 26;var S=f,U=0;return(S&8191)===0&&(U+=13,S>>>=13),(S&127)===0&&(U+=7,S>>>=7),(S&15)===0&&(U+=4,S>>>=4),(S&3)===0&&(U+=2,S>>>=2),(S&1)===0&&U++,U},a.prototype.bitLength=function(){var f=this.words[this.length-1],S=this._countBits(f);return(this.length-1)*26+S};function Y(P){for(var f=new Array(P.bitLength()),S=0;S<f.length;S++){var U=S/26|0,z=S%26;f[S]=P.words[U]>>>z&1}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,S=0;S<this.length;S++){var U=this._zeroBits(this.words[S]);if(f+=U,U!==26)break}return f},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},a.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var S=0;S<f.length;S++)this.words[S]=this.words[S]|f.words[S];return this._strip()},a.prototype.ior=function(f){return e((this.negative|f.negative)===0),this.iuor(f)},a.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var S;this.length>f.length?S=f:S=this;for(var U=0;U<S.length;U++)this.words[U]=this.words[U]&f.words[U];return this.length=S.length,this._strip()},a.prototype.iand=function(f){return e((this.negative|f.negative)===0),this.iuand(f)},a.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var S,U;this.length>f.length?(S=this,U=f):(S=f,U=this);for(var z=0;z<U.length;z++)this.words[z]=S.words[z]^U.words[z];if(this!==S)for(;z<S.length;z++)this.words[z]=S.words[z];return this.length=S.length,this._strip()},a.prototype.ixor=function(f){return e((this.negative|f.negative)===0),this.iuxor(f)},a.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){e(typeof f=="number"&&f>=0);var S=Math.ceil(f/26)|0,U=f%26;this._expand(S),U>0&&S--;for(var z=0;z<S;z++)this.words[z]=~this.words[z]&67108863;return U>0&&(this.words[z]=~this.words[z]&67108863>>26-U),this._strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,S){e(typeof f=="number"&&f>=0);var U=f/26|0,z=f%26;return this._expand(U+1),S?this.words[U]=this.words[U]|1<<z:this.words[U]=this.words[U]&~(1<<z),this._strip()},a.prototype.iadd=function(f){var S;if(this.negative!==0&&f.negative===0)return this.negative=0,S=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,S=this.isub(f),f.negative=1,S._normSign();var U,z;this.length>f.length?(U=this,z=f):(U=f,z=this);for(var $=0,et=0;et<z.length;et++)S=(U.words[et]|0)+(z.words[et]|0)+$,this.words[et]=S&67108863,$=S>>>26;for(;$!==0&&et<U.length;et++)S=(U.words[et]|0)+$,this.words[et]=S&67108863,$=S>>>26;if(this.length=U.length,$!==0)this.words[this.length]=$,this.length++;else if(U!==this)for(;et<U.length;et++)this.words[et]=U.words[et];return this},a.prototype.add=function(f){var S;return f.negative!==0&&this.negative===0?(f.negative=0,S=this.sub(f),f.negative^=1,S):f.negative===0&&this.negative!==0?(this.negative=0,S=f.sub(this),this.negative=1,S):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var S=this.iadd(f);return f.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var U=this.cmp(f);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var z,$;U>0?(z=this,$=f):(z=f,$=this);for(var et=0,ut=0;ut<$.length;ut++)S=(z.words[ut]|0)-($.words[ut]|0)+et,et=S>>26,this.words[ut]=S&67108863;for(;et!==0&&ut<z.length;ut++)S=(z.words[ut]|0)+et,et=S>>26,this.words[ut]=S&67108863;if(et===0&&ut<z.length&&z!==this)for(;ut<z.length;ut++)this.words[ut]=z.words[ut];return this.length=Math.max(this.length,ut),z!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(f){return this.clone().isub(f)};function W(P,f,S){S.negative=f.negative^P.negative;var U=P.length+f.length|0;S.length=U,U=U-1|0;var z=P.words[0]|0,$=f.words[0]|0,et=z*$,ut=et&67108863,Z=et/67108864|0;S.words[0]=ut;for(var h=1;h<U;h++){for(var _=Z>>>26,j=Z&67108863,K=Math.min(h,f.length-1),ht=Math.max(0,h-P.length+1);ht<=K;ht++){var St=h-ht|0;z=P.words[St]|0,$=f.words[ht]|0,et=z*$+j,_+=et/67108864|0,j=et&67108863}S.words[h]=j|0,Z=_|0}return Z!==0?S.words[h]=Z|0:S.length--,S._strip()}var J=function(f,S,U){var z=f.words,$=S.words,et=U.words,ut=0,Z,h,_,j=z[0]|0,K=j&8191,ht=j>>>13,St=z[1]|0,Ft=St&8191,zt=St>>>13,de=z[2]|0,Ee=de&8191,me=de>>>13,$t=z[3]|0,be=$t&8191,Re=$t>>>13,Ye=z[4]|0,Ne=Ye&8191,g=Ye>>>13,k=z[5]|0,V=k&8191,ct=k>>>13,yt=z[6]|0,Et=yt&8191,Lt=yt>>>13,jt=z[7]|0,te=jt&8191,F=jt>>>13,R=z[8]|0,O=R&8191,A=R>>>13,H=z[9]|0,G=H&8191,it=H>>>13,Ct=$[0]|0,Bt=Ct&8191,Ut=Ct>>>13,kt=$[1]|0,rt=kt&8191,Yt=kt>>>13,pe=$[2]|0,ee=pe&8191,oe=pe>>>13,he=$[3]|0,fe=he&8191,ae=he>>>13,We=$[4]|0,ye=We&8191,_e=We>>>13,an=$[5]|0,Be=an&8191,De=an>>>13,lr=$[6]|0,He=lr&8191,Ve=lr>>>13,Yr=$[7]|0,qe=Yr&8191,$e=Yr>>>13,Yo=$[8]|0,Je=Yo&8191,Qe=Yo>>>13,Wo=$[9]|0,tn=Wo&8191,en=Wo>>>13;U.negative=f.negative^S.negative,U.length=19,Z=Math.imul(K,Bt),h=Math.imul(K,Ut),h=h+Math.imul(ht,Bt)|0,_=Math.imul(ht,Ut);var Pi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,Z=Math.imul(Ft,Bt),h=Math.imul(Ft,Ut),h=h+Math.imul(zt,Bt)|0,_=Math.imul(zt,Ut),Z=Z+Math.imul(K,rt)|0,h=h+Math.imul(K,Yt)|0,h=h+Math.imul(ht,rt)|0,_=_+Math.imul(ht,Yt)|0;var Fi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,Z=Math.imul(Ee,Bt),h=Math.imul(Ee,Ut),h=h+Math.imul(me,Bt)|0,_=Math.imul(me,Ut),Z=Z+Math.imul(Ft,rt)|0,h=h+Math.imul(Ft,Yt)|0,h=h+Math.imul(zt,rt)|0,_=_+Math.imul(zt,Yt)|0,Z=Z+Math.imul(K,ee)|0,h=h+Math.imul(K,oe)|0,h=h+Math.imul(ht,ee)|0,_=_+Math.imul(ht,oe)|0;var Vi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,Z=Math.imul(be,Bt),h=Math.imul(be,Ut),h=h+Math.imul(Re,Bt)|0,_=Math.imul(Re,Ut),Z=Z+Math.imul(Ee,rt)|0,h=h+Math.imul(Ee,Yt)|0,h=h+Math.imul(me,rt)|0,_=_+Math.imul(me,Yt)|0,Z=Z+Math.imul(Ft,ee)|0,h=h+Math.imul(Ft,oe)|0,h=h+Math.imul(zt,ee)|0,_=_+Math.imul(zt,oe)|0,Z=Z+Math.imul(K,fe)|0,h=h+Math.imul(K,ae)|0,h=h+Math.imul(ht,fe)|0,_=_+Math.imul(ht,ae)|0;var Hi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,Z=Math.imul(Ne,Bt),h=Math.imul(Ne,Ut),h=h+Math.imul(g,Bt)|0,_=Math.imul(g,Ut),Z=Z+Math.imul(be,rt)|0,h=h+Math.imul(be,Yt)|0,h=h+Math.imul(Re,rt)|0,_=_+Math.imul(Re,Yt)|0,Z=Z+Math.imul(Ee,ee)|0,h=h+Math.imul(Ee,oe)|0,h=h+Math.imul(me,ee)|0,_=_+Math.imul(me,oe)|0,Z=Z+Math.imul(Ft,fe)|0,h=h+Math.imul(Ft,ae)|0,h=h+Math.imul(zt,fe)|0,_=_+Math.imul(zt,ae)|0,Z=Z+Math.imul(K,ye)|0,h=h+Math.imul(K,_e)|0,h=h+Math.imul(ht,ye)|0,_=_+Math.imul(ht,_e)|0;var Gi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,Z=Math.imul(V,Bt),h=Math.imul(V,Ut),h=h+Math.imul(ct,Bt)|0,_=Math.imul(ct,Ut),Z=Z+Math.imul(Ne,rt)|0,h=h+Math.imul(Ne,Yt)|0,h=h+Math.imul(g,rt)|0,_=_+Math.imul(g,Yt)|0,Z=Z+Math.imul(be,ee)|0,h=h+Math.imul(be,oe)|0,h=h+Math.imul(Re,ee)|0,_=_+Math.imul(Re,oe)|0,Z=Z+Math.imul(Ee,fe)|0,h=h+Math.imul(Ee,ae)|0,h=h+Math.imul(me,fe)|0,_=_+Math.imul(me,ae)|0,Z=Z+Math.imul(Ft,ye)|0,h=h+Math.imul(Ft,_e)|0,h=h+Math.imul(zt,ye)|0,_=_+Math.imul(zt,_e)|0,Z=Z+Math.imul(K,Be)|0,h=h+Math.imul(K,De)|0,h=h+Math.imul(ht,Be)|0,_=_+Math.imul(ht,De)|0;var ji=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(ji>>>26)|0,ji&=67108863,Z=Math.imul(Et,Bt),h=Math.imul(Et,Ut),h=h+Math.imul(Lt,Bt)|0,_=Math.imul(Lt,Ut),Z=Z+Math.imul(V,rt)|0,h=h+Math.imul(V,Yt)|0,h=h+Math.imul(ct,rt)|0,_=_+Math.imul(ct,Yt)|0,Z=Z+Math.imul(Ne,ee)|0,h=h+Math.imul(Ne,oe)|0,h=h+Math.imul(g,ee)|0,_=_+Math.imul(g,oe)|0,Z=Z+Math.imul(be,fe)|0,h=h+Math.imul(be,ae)|0,h=h+Math.imul(Re,fe)|0,_=_+Math.imul(Re,ae)|0,Z=Z+Math.imul(Ee,ye)|0,h=h+Math.imul(Ee,_e)|0,h=h+Math.imul(me,ye)|0,_=_+Math.imul(me,_e)|0,Z=Z+Math.imul(Ft,Be)|0,h=h+Math.imul(Ft,De)|0,h=h+Math.imul(zt,Be)|0,_=_+Math.imul(zt,De)|0,Z=Z+Math.imul(K,He)|0,h=h+Math.imul(K,Ve)|0,h=h+Math.imul(ht,He)|0,_=_+Math.imul(ht,Ve)|0;var Yi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,Z=Math.imul(te,Bt),h=Math.imul(te,Ut),h=h+Math.imul(F,Bt)|0,_=Math.imul(F,Ut),Z=Z+Math.imul(Et,rt)|0,h=h+Math.imul(Et,Yt)|0,h=h+Math.imul(Lt,rt)|0,_=_+Math.imul(Lt,Yt)|0,Z=Z+Math.imul(V,ee)|0,h=h+Math.imul(V,oe)|0,h=h+Math.imul(ct,ee)|0,_=_+Math.imul(ct,oe)|0,Z=Z+Math.imul(Ne,fe)|0,h=h+Math.imul(Ne,ae)|0,h=h+Math.imul(g,fe)|0,_=_+Math.imul(g,ae)|0,Z=Z+Math.imul(be,ye)|0,h=h+Math.imul(be,_e)|0,h=h+Math.imul(Re,ye)|0,_=_+Math.imul(Re,_e)|0,Z=Z+Math.imul(Ee,Be)|0,h=h+Math.imul(Ee,De)|0,h=h+Math.imul(me,Be)|0,_=_+Math.imul(me,De)|0,Z=Z+Math.imul(Ft,He)|0,h=h+Math.imul(Ft,Ve)|0,h=h+Math.imul(zt,He)|0,_=_+Math.imul(zt,Ve)|0,Z=Z+Math.imul(K,qe)|0,h=h+Math.imul(K,$e)|0,h=h+Math.imul(ht,qe)|0,_=_+Math.imul(ht,$e)|0;var Wi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,Z=Math.imul(O,Bt),h=Math.imul(O,Ut),h=h+Math.imul(A,Bt)|0,_=Math.imul(A,Ut),Z=Z+Math.imul(te,rt)|0,h=h+Math.imul(te,Yt)|0,h=h+Math.imul(F,rt)|0,_=_+Math.imul(F,Yt)|0,Z=Z+Math.imul(Et,ee)|0,h=h+Math.imul(Et,oe)|0,h=h+Math.imul(Lt,ee)|0,_=_+Math.imul(Lt,oe)|0,Z=Z+Math.imul(V,fe)|0,h=h+Math.imul(V,ae)|0,h=h+Math.imul(ct,fe)|0,_=_+Math.imul(ct,ae)|0,Z=Z+Math.imul(Ne,ye)|0,h=h+Math.imul(Ne,_e)|0,h=h+Math.imul(g,ye)|0,_=_+Math.imul(g,_e)|0,Z=Z+Math.imul(be,Be)|0,h=h+Math.imul(be,De)|0,h=h+Math.imul(Re,Be)|0,_=_+Math.imul(Re,De)|0,Z=Z+Math.imul(Ee,He)|0,h=h+Math.imul(Ee,Ve)|0,h=h+Math.imul(me,He)|0,_=_+Math.imul(me,Ve)|0,Z=Z+Math.imul(Ft,qe)|0,h=h+Math.imul(Ft,$e)|0,h=h+Math.imul(zt,qe)|0,_=_+Math.imul(zt,$e)|0,Z=Z+Math.imul(K,Je)|0,h=h+Math.imul(K,Qe)|0,h=h+Math.imul(ht,Je)|0,_=_+Math.imul(ht,Qe)|0;var zi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(zi>>>26)|0,zi&=67108863,Z=Math.imul(G,Bt),h=Math.imul(G,Ut),h=h+Math.imul(it,Bt)|0,_=Math.imul(it,Ut),Z=Z+Math.imul(O,rt)|0,h=h+Math.imul(O,Yt)|0,h=h+Math.imul(A,rt)|0,_=_+Math.imul(A,Yt)|0,Z=Z+Math.imul(te,ee)|0,h=h+Math.imul(te,oe)|0,h=h+Math.imul(F,ee)|0,_=_+Math.imul(F,oe)|0,Z=Z+Math.imul(Et,fe)|0,h=h+Math.imul(Et,ae)|0,h=h+Math.imul(Lt,fe)|0,_=_+Math.imul(Lt,ae)|0,Z=Z+Math.imul(V,ye)|0,h=h+Math.imul(V,_e)|0,h=h+Math.imul(ct,ye)|0,_=_+Math.imul(ct,_e)|0,Z=Z+Math.imul(Ne,Be)|0,h=h+Math.imul(Ne,De)|0,h=h+Math.imul(g,Be)|0,_=_+Math.imul(g,De)|0,Z=Z+Math.imul(be,He)|0,h=h+Math.imul(be,Ve)|0,h=h+Math.imul(Re,He)|0,_=_+Math.imul(Re,Ve)|0,Z=Z+Math.imul(Ee,qe)|0,h=h+Math.imul(Ee,$e)|0,h=h+Math.imul(me,qe)|0,_=_+Math.imul(me,$e)|0,Z=Z+Math.imul(Ft,Je)|0,h=h+Math.imul(Ft,Qe)|0,h=h+Math.imul(zt,Je)|0,_=_+Math.imul(zt,Qe)|0,Z=Z+Math.imul(K,tn)|0,h=h+Math.imul(K,en)|0,h=h+Math.imul(ht,tn)|0,_=_+Math.imul(ht,en)|0;var Zi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,Z=Math.imul(G,rt),h=Math.imul(G,Yt),h=h+Math.imul(it,rt)|0,_=Math.imul(it,Yt),Z=Z+Math.imul(O,ee)|0,h=h+Math.imul(O,oe)|0,h=h+Math.imul(A,ee)|0,_=_+Math.imul(A,oe)|0,Z=Z+Math.imul(te,fe)|0,h=h+Math.imul(te,ae)|0,h=h+Math.imul(F,fe)|0,_=_+Math.imul(F,ae)|0,Z=Z+Math.imul(Et,ye)|0,h=h+Math.imul(Et,_e)|0,h=h+Math.imul(Lt,ye)|0,_=_+Math.imul(Lt,_e)|0,Z=Z+Math.imul(V,Be)|0,h=h+Math.imul(V,De)|0,h=h+Math.imul(ct,Be)|0,_=_+Math.imul(ct,De)|0,Z=Z+Math.imul(Ne,He)|0,h=h+Math.imul(Ne,Ve)|0,h=h+Math.imul(g,He)|0,_=_+Math.imul(g,Ve)|0,Z=Z+Math.imul(be,qe)|0,h=h+Math.imul(be,$e)|0,h=h+Math.imul(Re,qe)|0,_=_+Math.imul(Re,$e)|0,Z=Z+Math.imul(Ee,Je)|0,h=h+Math.imul(Ee,Qe)|0,h=h+Math.imul(me,Je)|0,_=_+Math.imul(me,Qe)|0,Z=Z+Math.imul(Ft,tn)|0,h=h+Math.imul(Ft,en)|0,h=h+Math.imul(zt,tn)|0,_=_+Math.imul(zt,en)|0;var dn=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(dn>>>26)|0,dn&=67108863,Z=Math.imul(G,ee),h=Math.imul(G,oe),h=h+Math.imul(it,ee)|0,_=Math.imul(it,oe),Z=Z+Math.imul(O,fe)|0,h=h+Math.imul(O,ae)|0,h=h+Math.imul(A,fe)|0,_=_+Math.imul(A,ae)|0,Z=Z+Math.imul(te,ye)|0,h=h+Math.imul(te,_e)|0,h=h+Math.imul(F,ye)|0,_=_+Math.imul(F,_e)|0,Z=Z+Math.imul(Et,Be)|0,h=h+Math.imul(Et,De)|0,h=h+Math.imul(Lt,Be)|0,_=_+Math.imul(Lt,De)|0,Z=Z+Math.imul(V,He)|0,h=h+Math.imul(V,Ve)|0,h=h+Math.imul(ct,He)|0,_=_+Math.imul(ct,Ve)|0,Z=Z+Math.imul(Ne,qe)|0,h=h+Math.imul(Ne,$e)|0,h=h+Math.imul(g,qe)|0,_=_+Math.imul(g,$e)|0,Z=Z+Math.imul(be,Je)|0,h=h+Math.imul(be,Qe)|0,h=h+Math.imul(Re,Je)|0,_=_+Math.imul(Re,Qe)|0,Z=Z+Math.imul(Ee,tn)|0,h=h+Math.imul(Ee,en)|0,h=h+Math.imul(me,tn)|0,_=_+Math.imul(me,en)|0;var Ki=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,Z=Math.imul(G,fe),h=Math.imul(G,ae),h=h+Math.imul(it,fe)|0,_=Math.imul(it,ae),Z=Z+Math.imul(O,ye)|0,h=h+Math.imul(O,_e)|0,h=h+Math.imul(A,ye)|0,_=_+Math.imul(A,_e)|0,Z=Z+Math.imul(te,Be)|0,h=h+Math.imul(te,De)|0,h=h+Math.imul(F,Be)|0,_=_+Math.imul(F,De)|0,Z=Z+Math.imul(Et,He)|0,h=h+Math.imul(Et,Ve)|0,h=h+Math.imul(Lt,He)|0,_=_+Math.imul(Lt,Ve)|0,Z=Z+Math.imul(V,qe)|0,h=h+Math.imul(V,$e)|0,h=h+Math.imul(ct,qe)|0,_=_+Math.imul(ct,$e)|0,Z=Z+Math.imul(Ne,Je)|0,h=h+Math.imul(Ne,Qe)|0,h=h+Math.imul(g,Je)|0,_=_+Math.imul(g,Qe)|0,Z=Z+Math.imul(be,tn)|0,h=h+Math.imul(be,en)|0,h=h+Math.imul(Re,tn)|0,_=_+Math.imul(Re,en)|0;var Xi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,Z=Math.imul(G,ye),h=Math.imul(G,_e),h=h+Math.imul(it,ye)|0,_=Math.imul(it,_e),Z=Z+Math.imul(O,Be)|0,h=h+Math.imul(O,De)|0,h=h+Math.imul(A,Be)|0,_=_+Math.imul(A,De)|0,Z=Z+Math.imul(te,He)|0,h=h+Math.imul(te,Ve)|0,h=h+Math.imul(F,He)|0,_=_+Math.imul(F,Ve)|0,Z=Z+Math.imul(Et,qe)|0,h=h+Math.imul(Et,$e)|0,h=h+Math.imul(Lt,qe)|0,_=_+Math.imul(Lt,$e)|0,Z=Z+Math.imul(V,Je)|0,h=h+Math.imul(V,Qe)|0,h=h+Math.imul(ct,Je)|0,_=_+Math.imul(ct,Qe)|0,Z=Z+Math.imul(Ne,tn)|0,h=h+Math.imul(Ne,en)|0,h=h+Math.imul(g,tn)|0,_=_+Math.imul(g,en)|0;var qi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(qi>>>26)|0,qi&=67108863,Z=Math.imul(G,Be),h=Math.imul(G,De),h=h+Math.imul(it,Be)|0,_=Math.imul(it,De),Z=Z+Math.imul(O,He)|0,h=h+Math.imul(O,Ve)|0,h=h+Math.imul(A,He)|0,_=_+Math.imul(A,Ve)|0,Z=Z+Math.imul(te,qe)|0,h=h+Math.imul(te,$e)|0,h=h+Math.imul(F,qe)|0,_=_+Math.imul(F,$e)|0,Z=Z+Math.imul(Et,Je)|0,h=h+Math.imul(Et,Qe)|0,h=h+Math.imul(Lt,Je)|0,_=_+Math.imul(Lt,Qe)|0,Z=Z+Math.imul(V,tn)|0,h=h+Math.imul(V,en)|0,h=h+Math.imul(ct,tn)|0,_=_+Math.imul(ct,en)|0;var Me=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Me>>>26)|0,Me&=67108863,Z=Math.imul(G,He),h=Math.imul(G,Ve),h=h+Math.imul(it,He)|0,_=Math.imul(it,Ve),Z=Z+Math.imul(O,qe)|0,h=h+Math.imul(O,$e)|0,h=h+Math.imul(A,qe)|0,_=_+Math.imul(A,$e)|0,Z=Z+Math.imul(te,Je)|0,h=h+Math.imul(te,Qe)|0,h=h+Math.imul(F,Je)|0,_=_+Math.imul(F,Qe)|0,Z=Z+Math.imul(Et,tn)|0,h=h+Math.imul(Et,en)|0,h=h+Math.imul(Lt,tn)|0,_=_+Math.imul(Lt,en)|0;var $i=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+($i>>>26)|0,$i&=67108863,Z=Math.imul(G,qe),h=Math.imul(G,$e),h=h+Math.imul(it,qe)|0,_=Math.imul(it,$e),Z=Z+Math.imul(O,Je)|0,h=h+Math.imul(O,Qe)|0,h=h+Math.imul(A,Je)|0,_=_+Math.imul(A,Qe)|0,Z=Z+Math.imul(te,tn)|0,h=h+Math.imul(te,en)|0,h=h+Math.imul(F,tn)|0,_=_+Math.imul(F,en)|0;var Mn=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,Z=Math.imul(G,Je),h=Math.imul(G,Qe),h=h+Math.imul(it,Je)|0,_=Math.imul(it,Qe),Z=Z+Math.imul(O,tn)|0,h=h+Math.imul(O,en)|0,h=h+Math.imul(A,tn)|0,_=_+Math.imul(A,en)|0;var pi=(ut+Z|0)+((h&8191)<<13)|0;ut=(_+(h>>>13)|0)+(pi>>>26)|0,pi&=67108863,Z=Math.imul(G,tn),h=Math.imul(G,en),h=h+Math.imul(it,tn)|0,_=Math.imul(it,en);var vi=(ut+Z|0)+((h&8191)<<13)|0;return ut=(_+(h>>>13)|0)+(vi>>>26)|0,vi&=67108863,et[0]=Pi,et[1]=Fi,et[2]=Vi,et[3]=Hi,et[4]=Gi,et[5]=ji,et[6]=Yi,et[7]=Wi,et[8]=zi,et[9]=Zi,et[10]=dn,et[11]=Ki,et[12]=Xi,et[13]=qi,et[14]=Me,et[15]=$i,et[16]=Mn,et[17]=pi,et[18]=vi,ut!==0&&(et[19]=ut,U.length++),U};Math.imul||(J=W);function q(P,f,S){S.negative=f.negative^P.negative,S.length=P.length+f.length;for(var U=0,z=0,$=0;$<S.length-1;$++){var et=z;z=0;for(var ut=U&67108863,Z=Math.min($,f.length-1),h=Math.max(0,$-P.length+1);h<=Z;h++){var _=$-h,j=P.words[_]|0,K=f.words[h]|0,ht=j*K,St=ht&67108863;et=et+(ht/67108864|0)|0,St=St+ut|0,ut=St&67108863,et=et+(St>>>26)|0,z+=et>>>26,et&=67108863}S.words[$]=ut,U=et,et=z}return U!==0?S.words[$]=U:S.length--,S._strip()}function ot(P,f,S){return q(P,f,S)}a.prototype.mulTo=function(f,S){var U,z=this.length+f.length;return this.length===10&&f.length===10?U=J(this,f,S):z<63?U=W(this,f,S):z<1024?U=q(this,f,S):U=ot(this,f,S),U},a.prototype.mul=function(f){var S=new a(null);return S.words=new Array(this.length+f.length),this.mulTo(f,S)},a.prototype.mulf=function(f){var S=new a(null);return S.words=new Array(this.length+f.length),ot(this,f,S)},a.prototype.imul=function(f){return this.clone().mulTo(f,this)},a.prototype.imuln=function(f){var S=f<0;S&&(f=-f),e(typeof f=="number"),e(f<67108864);for(var U=0,z=0;z<this.length;z++){var $=(this.words[z]|0)*f,et=($&67108863)+(U&67108863);U>>=26,U+=$/67108864|0,U+=et>>>26,this.words[z]=et&67108863}return U!==0&&(this.words[z]=U,this.length++),this.length=f===0?1:this.length,S?this.ineg():this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var S=Y(f);if(S.length===0)return new a(1);for(var U=this,z=0;z<S.length&&S[z]===0;z++,U=U.sqr());if(++z<S.length)for(var $=U.sqr();z<S.length;z++,$=$.sqr())S[z]!==0&&(U=U.mul($));return U},a.prototype.iushln=function(f){e(typeof f=="number"&&f>=0);var S=f%26,U=(f-S)/26,z=67108863>>>26-S<<26-S,$;if(S!==0){var et=0;for($=0;$<this.length;$++){var ut=this.words[$]&z,Z=(this.words[$]|0)-ut<<S;this.words[$]=Z|et,et=ut>>>26-S}et&&(this.words[$]=et,this.length++)}if(U!==0){for($=this.length-1;$>=0;$--)this.words[$+U]=this.words[$];for($=0;$<U;$++)this.words[$]=0;this.length+=U}return this._strip()},a.prototype.ishln=function(f){return e(this.negative===0),this.iushln(f)},a.prototype.iushrn=function(f,S,U){e(typeof f=="number"&&f>=0);var z;S?z=(S-S%26)/26:z=0;var $=f%26,et=Math.min((f-$)/26,this.length),ut=67108863^67108863>>>$<<$,Z=U;if(z-=et,z=Math.max(0,z),Z){for(var h=0;h<et;h++)Z.words[h]=this.words[h];Z.length=et}if(et!==0)if(this.length>et)for(this.length-=et,h=0;h<this.length;h++)this.words[h]=this.words[h+et];else this.words[0]=0,this.length=1;var _=0;for(h=this.length-1;h>=0&&(_!==0||h>=z);h--){var j=this.words[h]|0;this.words[h]=_<<26-$|j>>>$,_=j&ut}return Z&&_!==0&&(Z.words[Z.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(f,S,U){return e(this.negative===0),this.iushrn(f,S,U)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){e(typeof f=="number"&&f>=0);var S=f%26,U=(f-S)/26,z=1<<S;if(this.length<=U)return!1;var $=this.words[U];return!!($&z)},a.prototype.imaskn=function(f){e(typeof f=="number"&&f>=0);var S=f%26,U=(f-S)/26;if(e(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(S!==0&&U++,this.length=Math.min(U,this.length),S!==0){var z=67108863^67108863>>>S<<S;this.words[this.length-1]&=z}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.maskn=function(f){return this.clone().imaskn(f)},a.prototype.iaddn=function(f){return e(typeof f=="number"),e(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},a.prototype._iaddn=function(f){this.words[0]+=f;for(var S=0;S<this.length&&this.words[S]>=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},a.prototype.isubn=function(f){if(e(typeof f=="number"),e(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S<this.length&&this.words[S]<0;S++)this.words[S]+=67108864,this.words[S+1]-=1;return this._strip()},a.prototype.addn=function(f){return this.clone().iaddn(f)},a.prototype.subn=function(f){return this.clone().isubn(f)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(f,S,U){var z=f.length+U,$;this._expand(z);var et,ut=0;for($=0;$<f.length;$++){et=(this.words[$+U]|0)+ut;var Z=(f.words[$]|0)*S;et-=Z&67108863,ut=(et>>26)-(Z/67108864|0),this.words[$+U]=et&67108863}for(;$<this.length-U;$++)et=(this.words[$+U]|0)+ut,ut=et>>26,this.words[$+U]=et&67108863;if(ut===0)return this._strip();for(e(ut===-1),ut=0,$=0;$<this.length;$++)et=-(this.words[$]|0)+ut,ut=et>>26,this.words[$]=et&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(f,S){var U=this.length-f.length,z=this.clone(),$=f,et=$.words[$.length-1]|0,ut=this._countBits(et);U=26-ut,U!==0&&($=$.ushln(U),z.iushln(U),et=$.words[$.length-1]|0);var Z=z.length-$.length,h;if(S!=="mod"){h=new a(null),h.length=Z+1,h.words=new Array(h.length);for(var _=0;_<h.length;_++)h.words[_]=0}var j=z.clone()._ishlnsubmul($,1,Z);j.negative===0&&(z=j,h&&(h.words[Z]=1));for(var K=Z-1;K>=0;K--){var ht=(z.words[$.length+K]|0)*67108864+(z.words[$.length+K-1]|0);for(ht=Math.min(ht/et|0,67108863),z._ishlnsubmul($,ht,K);z.negative!==0;)ht--,z.negative=0,z._ishlnsubmul($,1,K),z.isZero()||(z.negative^=1);h&&(h.words[K]=ht)}return h&&h._strip(),z._strip(),S!=="div"&&U!==0&&z.iushrn(U),{div:h||null,mod:z}},a.prototype.divmod=function(f,S,U){if(e(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var z,$,et;return this.negative!==0&&f.negative===0?(et=this.neg().divmod(f,S),S!=="mod"&&(z=et.div.neg()),S!=="div"&&($=et.mod.neg(),U&&$.negative!==0&&$.iadd(f)),{div:z,mod:$}):this.negative===0&&f.negative!==0?(et=this.divmod(f.neg(),S),S!=="mod"&&(z=et.div.neg()),{div:z,mod:et.mod}):(this.negative&f.negative)!==0?(et=this.neg().divmod(f.neg(),S),S!=="div"&&($=et.mod.neg(),U&&$.negative!==0&&$.isub(f)),{div:et.div,mod:$}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?S==="div"?{div:this.divn(f.words[0]),mod:null}:S==="mod"?{div:null,mod:new a(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modrn(f.words[0]))}:this._wordDiv(f,S)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var S=this.divmod(f);if(S.mod.isZero())return S.div;var U=S.div.negative!==0?S.mod.isub(f):S.mod,z=f.ushrn(1),$=f.andln(1),et=U.cmp(z);return et<0||$===1&&et===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},a.prototype.modrn=function(f){var S=f<0;S&&(f=-f),e(f<=67108863);for(var U=(1<<26)%f,z=0,$=this.length-1;$>=0;$--)z=(U*z+(this.words[$]|0))%f;return S?-z:z},a.prototype.modn=function(f){return this.modrn(f)},a.prototype.idivn=function(f){var S=f<0;S&&(f=-f),e(f<=67108863);for(var U=0,z=this.length-1;z>=0;z--){var $=(this.words[z]|0)+U*67108864;this.words[z]=$/f|0,U=$%f}return this._strip(),S?this.ineg():this},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){e(f.negative===0),e(!f.isZero());var S=this,U=f.clone();S.negative!==0?S=S.umod(f):S=S.clone();for(var z=new a(1),$=new a(0),et=new a(0),ut=new a(1),Z=0;S.isEven()&&U.isEven();)S.iushrn(1),U.iushrn(1),++Z;for(var h=U.clone(),_=S.clone();!S.isZero();){for(var j=0,K=1;(S.words[0]&K)===0&&j<26;++j,K<<=1);if(j>0)for(S.iushrn(j);j-- >0;)(z.isOdd()||$.isOdd())&&(z.iadd(h),$.isub(_)),z.iushrn(1),$.iushrn(1);for(var ht=0,St=1;(U.words[0]&St)===0&&ht<26;++ht,St<<=1);if(ht>0)for(U.iushrn(ht);ht-- >0;)(et.isOdd()||ut.isOdd())&&(et.iadd(h),ut.isub(_)),et.iushrn(1),ut.iushrn(1);S.cmp(U)>=0?(S.isub(U),z.isub(et),$.isub(ut)):(U.isub(S),et.isub(z),ut.isub($))}return{a:et,b:ut,gcd:U.iushln(Z)}},a.prototype._invmp=function(f){e(f.negative===0),e(!f.isZero());var S=this,U=f.clone();S.negative!==0?S=S.umod(f):S=S.clone();for(var z=new a(1),$=new a(0),et=U.clone();S.cmpn(1)>0&&U.cmpn(1)>0;){for(var ut=0,Z=1;(S.words[0]&Z)===0&&ut<26;++ut,Z<<=1);if(ut>0)for(S.iushrn(ut);ut-- >0;)z.isOdd()&&z.iadd(et),z.iushrn(1);for(var h=0,_=1;(U.words[0]&_)===0&&h<26;++h,_<<=1);if(h>0)for(U.iushrn(h);h-- >0;)$.isOdd()&&$.iadd(et),$.iushrn(1);S.cmp(U)>=0?(S.isub(U),z.isub($)):(U.isub(S),$.isub(z))}var j;return S.cmpn(1)===0?j=z:j=$,j.cmpn(0)<0&&j.iadd(f),j},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var S=this.clone(),U=f.clone();S.negative=0,U.negative=0;for(var z=0;S.isEven()&&U.isEven();z++)S.iushrn(1),U.iushrn(1);do{for(;S.isEven();)S.iushrn(1);for(;U.isEven();)U.iushrn(1);var $=S.cmp(U);if($<0){var et=S;S=U,U=et}else if($===0||U.cmpn(1)===0)break;S.isub(U)}while(!0);return U.iushln(z)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){e(typeof f=="number");var S=f%26,U=(f-S)/26,z=1<<S;if(this.length<=U)return this._expand(U+1),this.words[U]|=z,this;for(var $=z,et=U;$!==0&&et<this.length;et++){var ut=this.words[et]|0;ut+=$,$=ut>>>26,ut&=67108863,this.words[et]=ut}return $!==0&&(this.words[et]=$,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var S=f<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var U;if(this.length>1)U=1;else{S&&(f=-f),e(f<=67108863,"Number is too big");var z=this.words[0]|0;U=z===f?0:z<f?-1:1}return this.negative!==0?-U|0:U},a.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var S=this.ucmp(f);return this.negative!==0?-S|0:S},a.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var S=0,U=this.length-1;U>=0;U--){var z=this.words[U]|0,$=f.words[U]|0;if(z!==$){z<$?S=-1:z>$&&(S=1);break}}return S},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new mt(f)},a.prototype.toRed=function(f){return e(!this.red,"Already a number in reduction context"),e(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return e(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return e(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var pt={k256:null,p224:null,p192:null,p25519:null};function ft(P,f){this.name=P,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ft.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},ft.prototype.ireduce=function(f){var S=f,U;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),U=S.bitLength();while(U>this.n);var z=U<this.n?-1:S.ucmp(this.p);return z===0?(S.words[0]=0,S.length=1):z>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},ft.prototype.split=function(f,S){f.iushrn(this.n,0,S)},ft.prototype.imulK=function(f){return f.imul(this.k)};function Rt(){ft.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(Rt,ft),Rt.prototype.split=function(f,S){for(var U=4194303,z=Math.min(f.length,9),$=0;$<z;$++)S.words[$]=f.words[$];if(S.length=z,f.length<=9){f.words[0]=0,f.length=1;return}var et=f.words[9];for(S.words[S.length++]=et&U,$=10;$<f.length;$++){var ut=f.words[$]|0;f.words[$-10]=(ut&U)<<4|et>>>22,et=ut}et>>>=22,f.words[$-10]=et,et===0&&f.length>10?f.length-=10:f.length-=9},Rt.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var S=0,U=0;U<f.length;U++){var z=f.words[U]|0;S+=z*977,f.words[U]=S&67108863,S=z*64+(S/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function At(){ft.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(At,ft);function st(){ft.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(st,ft);function lt(){ft.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(lt,ft),lt.prototype.imulK=function(f){for(var S=0,U=0;U<f.length;U++){var z=(f.words[U]|0)*19+S,$=z&67108863;z>>>=26,f.words[U]=$,S=z}return S!==0&&(f.words[f.length++]=S),f},a._prime=function(f){if(pt[f])return pt[f];var S;if(f==="k256")S=new Rt;else if(f==="p224")S=new At;else if(f==="p192")S=new st;else if(f==="p25519")S=new lt;else throw new Error("Unknown prime "+f);return pt[f]=S,S};function mt(P){if(typeof P=="string"){var f=a._prime(P);this.m=f.p,this.prime=f}else e(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}mt.prototype._verify1=function(f){e(f.negative===0,"red works only with positives"),e(f.red,"red works only with red numbers")},mt.prototype._verify2=function(f,S){e((f.negative|S.negative)===0,"red works only with positives"),e(f.red&&f.red===S.red,"red works only with red numbers")},mt.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(T(f,f.umod(this.m)._forceRed(this)),f)},mt.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},mt.prototype.add=function(f,S){this._verify2(f,S);var U=f.add(S);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},mt.prototype.iadd=function(f,S){this._verify2(f,S);var U=f.iadd(S);return U.cmp(this.m)>=0&&U.isub(this.m),U},mt.prototype.sub=function(f,S){this._verify2(f,S);var U=f.sub(S);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},mt.prototype.isub=function(f,S){this._verify2(f,S);var U=f.isub(S);return U.cmpn(0)<0&&U.iadd(this.m),U},mt.prototype.shl=function(f,S){return this._verify1(f),this.imod(f.ushln(S))},mt.prototype.imul=function(f,S){return this._verify2(f,S),this.imod(f.imul(S))},mt.prototype.mul=function(f,S){return this._verify2(f,S),this.imod(f.mul(S))},mt.prototype.isqr=function(f){return this.imul(f,f.clone())},mt.prototype.sqr=function(f){return this.mul(f,f)},mt.prototype.sqrt=function(f){if(f.isZero())return f.clone();var S=this.m.andln(3);if(e(S%2===1),S===3){var U=this.m.add(new a(1)).iushrn(2);return this.pow(f,U)}for(var z=this.m.subn(1),$=0;!z.isZero()&&z.andln(1)===0;)$++,z.iushrn(1);e(!z.isZero());var et=new a(1).toRed(this),ut=et.redNeg(),Z=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new a(2*h*h).toRed(this);this.pow(h,Z).cmp(ut)!==0;)h.redIAdd(ut);for(var _=this.pow(h,z),j=this.pow(f,z.addn(1).iushrn(1)),K=this.pow(f,z),ht=$;K.cmp(et)!==0;){for(var St=K,Ft=0;St.cmp(et)!==0;Ft++)St=St.redSqr();e(Ft<ht);var zt=this.pow(_,new a(1).iushln(ht-Ft-1));j=j.redMul(zt),_=zt.redSqr(),K=K.redMul(_),ht=Ft}return j},mt.prototype.invm=function(f){var S=f._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},mt.prototype.pow=function(f,S){if(S.isZero())return new a(1).toRed(this);if(S.cmpn(1)===0)return f.clone();var U=4,z=new Array(1<<U);z[0]=new a(1).toRed(this),z[1]=f;for(var $=2;$<z.length;$++)z[$]=this.mul(z[$-1],f);var et=z[0],ut=0,Z=0,h=S.bitLength()%26;for(h===0&&(h=26),$=S.length-1;$>=0;$--){for(var _=S.words[$],j=h-1;j>=0;j--){var K=_>>j&1;if(et!==z[0]&&(et=this.sqr(et)),K===0&&ut===0){Z=0;continue}ut<<=1,ut|=K,Z++,!(Z!==U&&($!==0||j!==0))&&(et=this.mul(et,z[ut]),Z=0,ut=0)}h=26}return et},mt.prototype.convertTo=function(f){var S=f.umod(this.m);return S===f?S.clone():S},mt.prototype.convertFrom=function(f){var S=f.clone();return S.red=null,S},a.mont=function(f){return new wt(f)};function wt(P){mt.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}u(wt,mt),wt.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},wt.prototype.convertFrom=function(f){var S=this.imod(f.mul(this.rinv));return S.red=null,S},wt.prototype.imul=function(f,S){if(f.isZero()||S.isZero())return f.words[0]=0,f.length=1,f;var U=f.imul(S),z=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=U.isub(z).iushrn(this.shift),et=$;return $.cmp(this.m)>=0?et=$.isub(this.m):$.cmpn(0)<0&&(et=$.iadd(this.m)),et._forceRed(this)},wt.prototype.mul=function(f,S){if(f.isZero()||S.isZero())return new a(0)._forceRed(this);var U=f.mul(S),z=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=U.isub(z).iushrn(this.shift),et=$;return $.cmp(this.m)>=0?et=$.isub(this.m):$.cmpn(0)<0&&(et=$.iadd(this.m)),et._forceRed(this)},wt.prototype.invm=function(f){var S=this.imod(f._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(t,xd)})(bo)),bo.exports}var Ld=Vu();const Hu=fs(Ld);var _o={exports:{}};var Gu;function ju(){return Gu||(Gu=1,(function(t,n){var r=hs(),e=r.Buffer;function u(d,E){for(var l in d)E[l]=d[l]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?t.exports=r:(u(r,n),n.Buffer=a);function a(d,E,l){return e(d,E,l)}a.prototype=Object.create(e.prototype),u(e,a),a.from=function(d,E,l){if(typeof d=="number")throw new TypeError("Argument must not be a number");return e(d,E,l)},a.alloc=function(d,E,l){if(typeof d!="number")throw new TypeError("Argument must be a number");var b=e(d);return E!==void 0?typeof l=="string"?b.fill(E,l):b.fill(E):b.fill(0),b},a.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return e(d)},a.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(d)}})(_o,_o.exports)),_o.exports}var Ns,Yu;function Cd(){if(Yu)return Ns;Yu=1;var t=ju().Buffer;function n(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),u=0;u<e.length;u++)e[u]=255;for(var a=0;a<r.length;a++){var d=r.charAt(a),E=d.charCodeAt(0);if(e[E]!==255)throw new TypeError(d+" is ambiguous");e[E]=a}var l=r.length,b=r.charAt(0),T=Math.log(l)/Math.log(256),L=Math.log(256)/Math.log(l);function N(D){if((Array.isArray(D)||D instanceof Uint8Array)&&(D=t.from(D)),!t.isBuffer(D))throw new TypeError("Expected Buffer");if(D.length===0)return"";for(var Y=0,W=0,J=0,q=D.length;J!==q&&D[J]===0;)J++,Y++;for(var ot=(q-J)*L+1>>>0,pt=new Uint8Array(ot);J!==q;){for(var ft=D[J],Rt=0,At=ot-1;(ft!==0||Rt<W)&&At!==-1;At--,Rt++)ft+=256*pt[At]>>>0,pt[At]=ft%l>>>0,ft=ft/l>>>0;if(ft!==0)throw new Error("Non-zero carry");W=Rt,J++}for(var st=ot-W;st!==ot&&pt[st]===0;)st++;for(var lt=b.repeat(Y);st<ot;++st)lt+=r.charAt(pt[st]);return lt}function x(D){if(typeof D!="string")throw new TypeError("Expected String");if(D.length===0)return t.alloc(0);for(var Y=0,W=0,J=0;D[Y]===b;)W++,Y++;for(var q=(D.length-Y)*T+1>>>0,ot=new Uint8Array(q);Y<D.length;){var pt=D.charCodeAt(Y);if(pt>255)return;var ft=e[pt];if(ft===255)return;for(var Rt=0,At=q-1;(ft!==0||Rt<J)&&At!==-1;At--,Rt++)ft+=l*ot[At]>>>0,ot[At]=ft%256>>>0,ft=ft/256>>>0;if(ft!==0)throw new Error("Non-zero carry");J=Rt,Y++}for(var st=q-J;st!==q&&ot[st]===0;)st++;var lt=t.allocUnsafe(W+(q-st));lt.fill(0,0,W);for(var mt=W;st!==q;)lt[mt++]=ot[st++];return lt}function M(D){var Y=x(D);if(Y)return Y;throw new Error("Non-base"+l+" character")}return{encode:N,decodeUnsafe:x,decode:M}}return Ns=n,Ns}var xs,Wu;function Bd(){if(Wu)return xs;Wu=1;var t=Cd(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return xs=t(n),xs}var Md=Bd();const An=fs(Md),zu=fu;var Ue={},Ls,Zu;function kd(){if(Zu)return Ls;Zu=1;var t=ju().Buffer;function n(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),u=0;u<e.length;u++)e[u]=255;for(var a=0;a<r.length;a++){var d=r.charAt(a),E=d.charCodeAt(0);if(e[E]!==255)throw new TypeError(d+" is ambiguous");e[E]=a}var l=r.length,b=r.charAt(0),T=Math.log(l)/Math.log(256),L=Math.log(256)/Math.log(l);function N(D){if((Array.isArray(D)||D instanceof Uint8Array)&&(D=t.from(D)),!t.isBuffer(D))throw new TypeError("Expected Buffer");if(D.length===0)return"";for(var Y=0,W=0,J=0,q=D.length;J!==q&&D[J]===0;)J++,Y++;for(var ot=(q-J)*L+1>>>0,pt=new Uint8Array(ot);J!==q;){for(var ft=D[J],Rt=0,At=ot-1;(ft!==0||Rt<W)&&At!==-1;At--,Rt++)ft+=256*pt[At]>>>0,pt[At]=ft%l>>>0,ft=ft/l>>>0;if(ft!==0)throw new Error("Non-zero carry");W=Rt,J++}for(var st=ot-W;st!==ot&&pt[st]===0;)st++;for(var lt=b.repeat(Y);st<ot;++st)lt+=r.charAt(pt[st]);return lt}function x(D){if(typeof D!="string")throw new TypeError("Expected String");if(D.length===0)return t.alloc(0);for(var Y=0,W=0,J=0;D[Y]===b;)W++,Y++;for(var q=(D.length-Y)*T+1>>>0,ot=new Uint8Array(q);Y<D.length;){var pt=D.charCodeAt(Y);if(pt>255)return;var ft=e[pt];if(ft===255)return;for(var Rt=0,At=q-1;(ft!==0||Rt<J)&&At!==-1;At--,Rt++)ft+=l*ot[At]>>>0,ot[At]=ft%256>>>0,ft=ft/256>>>0;if(ft!==0)throw new Error("Non-zero carry");J=Rt,Y++}for(var st=q-J;st!==q&&ot[st]===0;)st++;var lt=t.allocUnsafe(W+(q-st));lt.fill(0,0,W);for(var mt=W;st!==q;)lt[mt++]=ot[st++];return lt}function M(D){var Y=x(D);if(Y)return Y;throw new Error("Non-base"+l+" character")}return{encode:N,decodeUnsafe:x,decode:M}}return Ls=n,Ls}var Cs,Ku;function Ud(){if(Ku)return Cs;Ku=1;var t=kd(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return Cs=t(n),Cs}function or(t,n,r){return n<=t&&t<=r}function Ro(t){if(t===void 0)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function Dd(t){for(var n=String(t),r=n.length,e=0,u=[];e<r;){var a=n.charCodeAt(e);if(a<55296||a>57343)u.push(a);else if(56320<=a&&a<=57343)u.push(65533);else if(55296<=a&&a<=56319)if(e===r-1)u.push(65533);else{var d=t.charCodeAt(e+1);if(56320<=d&&d<=57343){var E=a&1023,l=d&1023;u.push(65536+(E<<10)+l),e+=1}else u.push(65533)}e+=1}return u}function Pd(t){for(var n="",r=0;r<t.length;++r){var e=t[r];e<=65535?n+=String.fromCharCode(e):(e-=65536,n+=String.fromCharCode((e>>10)+55296,(e&1023)+56320))}return n}var Ao=-1;function Bs(t){this.tokens=[].slice.call(t)}Bs.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Ao},prepend:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.tokens.unshift(n.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.tokens.push(n.shift());else this.tokens.push(t)}};var ni=-1;function Ms(t,n){if(t)throw TypeError("Decoder error");return n||65533}var So="utf-8";function Io(t,n){if(!(this instanceof Io))return new Io(t,n);if(t=t!==void 0?String(t).toLowerCase():So,t!==So)throw new Error("Encoding not supported. Only utf-8 is supported");n=Ro(n),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!n.fatal,this._ignoreBOM=!!n.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Io.prototype={decode:function(n,r){var e;typeof n=="object"&&n instanceof ArrayBuffer?e=new Uint8Array(n):typeof n=="object"&&"buffer"in n&&n.buffer instanceof ArrayBuffer?e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):e=new Uint8Array(0),r=Ro(r),this._streaming||(this._decoder=new Fd({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var u=new Bs(e),a=[],d;!u.endOfStream()&&(d=this._decoder.handler(u,u.read()),d!==ni);)d!==null&&(Array.isArray(d)?a.push.apply(a,d):a.push(d));if(!this._streaming){do{if(d=this._decoder.handler(u,u.read()),d===ni)break;d!==null&&(Array.isArray(d)?a.push.apply(a,d):a.push(d))}while(!u.endOfStream());this._decoder=null}return a.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(a[0]===65279?(this._BOMseen=!0,a.shift()):this._BOMseen=!0),Pd(a)}};function Oo(t,n){if(!(this instanceof Oo))return new Oo(t,n);if(t=t!==void 0?String(t).toLowerCase():So,t!==So)throw new Error("Encoding not supported. Only utf-8 is supported");n=Ro(n),this._streaming=!1,this._encoder=null,this._options={fatal:!!n.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Oo.prototype={encode:function(n,r){n=n?String(n):"",r=Ro(r),this._streaming||(this._encoder=new Vd(this._options)),this._streaming=!!r.stream;for(var e=[],u=new Bs(Dd(n)),a;!u.endOfStream()&&(a=this._encoder.handler(u,u.read()),a!==ni);)Array.isArray(a)?e.push.apply(e,a):e.push(a);if(!this._streaming){for(;a=this._encoder.handler(u,u.read()),a!==ni;)Array.isArray(a)?e.push.apply(e,a):e.push(a);this._encoder=null}return new Uint8Array(e)}};function Fd(t){var n=t.fatal,r=0,e=0,u=0,a=128,d=191;this.handler=function(E,l){if(l===Ao&&u!==0)return u=0,Ms(n);if(l===Ao)return ni;if(u===0){if(or(l,0,127))return l;if(or(l,194,223))u=1,r=l-192;else if(or(l,224,239))l===224&&(a=160),l===237&&(d=159),u=2,r=l-224;else if(or(l,240,244))l===240&&(a=144),l===244&&(d=143),u=3,r=l-240;else return Ms(n);return r=r<<6*u,null}if(!or(l,a,d))return r=u=e=0,a=128,d=191,E.prepend(l),Ms(n);if(a=128,d=191,e+=1,r+=l-128<<6*(u-e),e!==u)return null;var b=r;return r=u=e=0,b}}function Vd(t){t.fatal,this.handler=function(n,r){if(r===Ao)return ni;if(or(r,0,127))return r;var e,u;or(r,128,2047)?(e=1,u=192):or(r,2048,65535)?(e=2,u=224):or(r,65536,1114111)&&(e=3,u=240);for(var a=[(r>>6*e)+u];e>0;){var d=r>>6*(e-1);a.push(128|d&63),e-=1}return a}}const Hd=ls(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Io,TextEncoder:Oo},Symbol.toStringTag,{value:"Module"})));var Xu;function Gd(){if(Xu)return Ue;Xu=1;var t=Ue&&Ue.__createBinding||(Object.create?(function(st,lt,mt,wt){wt===void 0&&(wt=mt),Object.defineProperty(st,wt,{enumerable:!0,get:function(){return lt[mt]}})}):(function(st,lt,mt,wt){wt===void 0&&(wt=mt),st[wt]=lt[mt]})),n=Ue&&Ue.__setModuleDefault||(Object.create?(function(st,lt){Object.defineProperty(st,"default",{enumerable:!0,value:lt})}):function(st,lt){st.default=lt}),r=Ue&&Ue.__decorate||function(st,lt,mt,wt){var P=arguments.length,f=P<3?lt:wt===null?wt=Object.getOwnPropertyDescriptor(lt,mt):wt,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(st,lt,mt,wt);else for(var U=st.length-1;U>=0;U--)(S=st[U])&&(f=(P<3?S(f):P>3?S(lt,mt,f):S(lt,mt))||f);return P>3&&f&&Object.defineProperty(lt,mt,f),f},e=Ue&&Ue.__importStar||function(st){if(st&&st.__esModule)return st;var lt={};if(st!=null)for(var mt in st)mt!=="default"&&Object.hasOwnProperty.call(st,mt)&&t(lt,st,mt);return n(lt,st),lt},u=Ue&&Ue.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.deserializeUnchecked=Ue.deserialize=Ue.serialize=Ue.BinaryReader=Ue.BinaryWriter=Ue.BorshError=Ue.baseDecode=Ue.baseEncode=void 0;const a=u(Vu()),d=u(Ud()),E=e(Hd),l=typeof TextDecoder!="function"?E.TextDecoder:TextDecoder,b=new l("utf-8",{fatal:!0});function T(st){return typeof st=="string"&&(st=Buffer.from(st,"utf8")),d.default.encode(Buffer.from(st))}Ue.baseEncode=T;function L(st){return Buffer.from(d.default.decode(st))}Ue.baseDecode=L;const N=1024;class x extends Error{constructor(lt){super(lt),this.fieldPath=[],this.originalMessage=lt}addToFieldPath(lt){this.fieldPath.splice(0,0,lt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ue.BorshError=x;class M{constructor(){this.buf=Buffer.alloc(N),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(N)]))}writeU8(lt){this.maybeResize(),this.buf.writeUInt8(lt,this.length),this.length+=1}writeU16(lt){this.maybeResize(),this.buf.writeUInt16LE(lt,this.length),this.length+=2}writeU32(lt){this.maybeResize(),this.buf.writeUInt32LE(lt,this.length),this.length+=4}writeU64(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",8)))}writeU128(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",16)))}writeU256(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",32)))}writeU512(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",64)))}writeBuffer(lt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),lt,Buffer.alloc(N)]),this.length+=lt.length}writeString(lt){this.maybeResize();const mt=Buffer.from(lt,"utf8");this.writeU32(mt.length),this.writeBuffer(mt)}writeFixedArray(lt){this.writeBuffer(Buffer.from(lt))}writeArray(lt,mt){this.maybeResize(),this.writeU32(lt.length);for(const wt of lt)this.maybeResize(),mt(wt)}toArray(){return this.buf.subarray(0,this.length)}}Ue.BinaryWriter=M;function D(st,lt,mt){const wt=mt.value;mt.value=function(...P){try{return wt.apply(this,P)}catch(f){if(f instanceof RangeError){const S=f.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(S)>=0)throw new x("Reached the end of buffer when deserializing")}throw f}}}class Y{constructor(lt){this.buf=lt,this.offset=0}readU8(){const lt=this.buf.readUInt8(this.offset);return this.offset+=1,lt}readU16(){const lt=this.buf.readUInt16LE(this.offset);return this.offset+=2,lt}readU32(){const lt=this.buf.readUInt32LE(this.offset);return this.offset+=4,lt}readU64(){const lt=this.readBuffer(8);return new a.default(lt,"le")}readU128(){const lt=this.readBuffer(16);return new a.default(lt,"le")}readU256(){const lt=this.readBuffer(32);return new a.default(lt,"le")}readU512(){const lt=this.readBuffer(64);return new a.default(lt,"le")}readBuffer(lt){if(this.offset+lt>this.buf.length)throw new x(`Expected buffer length ${lt} isn't within bounds`);const mt=this.buf.slice(this.offset,this.offset+lt);return this.offset+=lt,mt}readString(){const lt=this.readU32(),mt=this.readBuffer(lt);try{return b.decode(mt)}catch(wt){throw new x(`Error decoding UTF-8 string: ${wt}`)}}readFixedArray(lt){return new Uint8Array(this.readBuffer(lt))}readArray(lt){const mt=this.readU32(),wt=Array();for(let P=0;P<mt;++P)wt.push(lt());return wt}}r([D],Y.prototype,"readU8",null),r([D],Y.prototype,"readU16",null),r([D],Y.prototype,"readU32",null),r([D],Y.prototype,"readU64",null),r([D],Y.prototype,"readU128",null),r([D],Y.prototype,"readU256",null),r([D],Y.prototype,"readU512",null),r([D],Y.prototype,"readString",null),r([D],Y.prototype,"readFixedArray",null),r([D],Y.prototype,"readArray",null),Ue.BinaryReader=Y;function W(st){return st.charAt(0).toUpperCase()+st.slice(1)}function J(st,lt,mt,wt,P){try{if(typeof wt=="string")P[`write${W(wt)}`](mt);else if(wt instanceof Array)if(typeof wt[0]=="number"){if(mt.length!==wt[0])throw new x(`Expecting byte array of length ${wt[0]}, but got ${mt.length} bytes`);P.writeFixedArray(mt)}else if(wt.length===2&&typeof wt[1]=="number"){if(mt.length!==wt[1])throw new x(`Expecting byte array of length ${wt[1]}, but got ${mt.length} bytes`);for(let f=0;f<wt[1];f++)J(st,null,mt[f],wt[0],P)}else P.writeArray(mt,f=>{J(st,lt,f,wt[0],P)});else if(wt.kind!==void 0)switch(wt.kind){case"option":{mt==null?P.writeU8(0):(P.writeU8(1),J(st,lt,mt,wt.type,P));break}case"map":{P.writeU32(mt.size),mt.forEach((f,S)=>{J(st,lt,S,wt.key,P),J(st,lt,f,wt.value,P)});break}default:throw new x(`FieldType ${wt} unrecognized`)}else q(st,mt,P)}catch(f){throw f instanceof x&&f.addToFieldPath(lt),f}}function q(st,lt,mt){if(typeof lt.borshSerialize=="function"){lt.borshSerialize(mt);return}const wt=st.get(lt.constructor);if(!wt)throw new x(`Class ${lt.constructor.name} is missing in schema`);if(wt.kind==="struct")wt.fields.map(([P,f])=>{J(st,P,lt[P],f,mt)});else if(wt.kind==="enum"){const P=lt[wt.field];for(let f=0;f<wt.values.length;++f){const[S,U]=wt.values[f];if(S===P){mt.writeU8(f),J(st,S,lt[S],U,mt);break}}}else throw new x(`Unexpected schema kind: ${wt.kind} for ${lt.constructor.name}`)}function ot(st,lt,mt=M){const wt=new mt;return q(st,lt,wt),wt.toArray()}Ue.serialize=ot;function pt(st,lt,mt,wt){try{if(typeof mt=="string")return wt[`read${W(mt)}`]();if(mt instanceof Array){if(typeof mt[0]=="number")return wt.readFixedArray(mt[0]);if(typeof mt[1]=="number"){const P=[];for(let f=0;f<mt[1];f++)P.push(pt(st,null,mt[0],wt));return P}else return wt.readArray(()=>pt(st,lt,mt[0],wt))}if(mt.kind==="option")return wt.readU8()?pt(st,lt,mt.type,wt):void 0;if(mt.kind==="map"){let P=new Map;const f=wt.readU32();for(let S=0;S<f;S++){const U=pt(st,lt,mt.key,wt),z=pt(st,lt,mt.value,wt);P.set(U,z)}return P}return ft(st,mt,wt)}catch(P){throw P instanceof x&&P.addToFieldPath(lt),P}}function ft(st,lt,mt){if(typeof lt.borshDeserialize=="function")return lt.borshDeserialize(mt);const wt=st.get(lt);if(!wt)throw new x(`Class ${lt.name} is missing in schema`);if(wt.kind==="struct"){const P={};for(const[f,S]of st.get(lt).fields)P[f]=pt(st,f,S,mt);return new lt(P)}if(wt.kind==="enum"){const P=mt.readU8();if(P>=wt.values.length)throw new x(`Enum index: ${P} is out of range`);const[f,S]=wt.values[P],U=pt(st,f,S,mt);return new lt({[f]:U})}throw new x(`Unexpected schema kind: ${wt.kind} for ${lt.constructor.name}`)}function Rt(st,lt,mt,wt=Y){const P=new wt(mt),f=ft(st,lt,P);if(P.offset<mt.length)throw new x(`Unexpected ${mt.length-P.offset} bytes after deserialized data`);return f}Ue.deserialize=Rt;function At(st,lt,mt,wt=Y){const P=new wt(mt);return ft(st,lt,P)}return Ue.deserializeUnchecked=At,Ue}var ks=Gd(),Ot={},qu;function jd(){if(qu)return Ot;qu=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.s16=Ot.s8=Ot.nu64be=Ot.u48be=Ot.u40be=Ot.u32be=Ot.u24be=Ot.u16be=Ot.nu64=Ot.u48=Ot.u40=Ot.u32=Ot.u24=Ot.u16=Ot.u8=Ot.offset=Ot.greedy=Ot.Constant=Ot.UTF8=Ot.CString=Ot.Blob=Ot.Boolean=Ot.BitField=Ot.BitStructure=Ot.VariantLayout=Ot.Union=Ot.UnionLayoutDiscriminator=Ot.UnionDiscriminator=Ot.Structure=Ot.Sequence=Ot.DoubleBE=Ot.Double=Ot.FloatBE=Ot.Float=Ot.NearInt64BE=Ot.NearInt64=Ot.NearUInt64BE=Ot.NearUInt64=Ot.IntBE=Ot.Int=Ot.UIntBE=Ot.UInt=Ot.OffsetLayout=Ot.GreedyCount=Ot.ExternalLayout=Ot.bindConstructorLayout=Ot.nameWithProperty=Ot.Layout=Ot.uint8ArrayToBuffer=Ot.checkUint8Array=void 0,Ot.constant=Ot.utf8=Ot.cstr=Ot.blob=Ot.unionLayoutDiscriminator=Ot.union=Ot.seq=Ot.bits=Ot.struct=Ot.f64be=Ot.f64=Ot.f32be=Ot.f32=Ot.ns64be=Ot.s48be=Ot.s40be=Ot.s32be=Ot.s24be=Ot.s16be=Ot.ns64=Ot.s48=Ot.s40=Ot.s32=Ot.s24=void 0;const t=hs();function n(h){if(!(h instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Ot.checkUint8Array=n;function r(h){return n(h),t.Buffer.from(h.buffer,h.byteOffset,h.length)}Ot.uint8ArrayToBuffer=r;let e=class{constructor(_,j){if(!Number.isInteger(_))throw new TypeError("span must be an integer");this.span=_,this.property=j}makeDestinationObject(){return{}}getSpan(_,j){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(_){const j=Object.create(this.constructor.prototype);return Object.assign(j,this),j.property=_,j}fromArray(_){}};Ot.Layout=e;function u(h,_){return _.property?h+"["+_.property+"]":h}Ot.nameWithProperty=u;function a(h,_){if(typeof h!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(h,"layout_"))throw new Error("Class is already bound to a layout");if(!(_&&_ instanceof e))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(_,"boundConstructor_"))throw new Error("layout is already bound to a constructor");h.layout_=_,_.boundConstructor_=h,_.makeDestinationObject=(()=>new h),Object.defineProperty(h.prototype,"encode",{value(j,K){return _.encode(this,j,K)},writable:!0}),Object.defineProperty(h,"decode",{value(j,K){return _.decode(j,K)},writable:!0})}Ot.bindConstructorLayout=a;class d extends e{isCount(){throw new Error("ExternalLayout is abstract")}}Ot.ExternalLayout=d;class E extends d{constructor(_=1,j){if(!Number.isInteger(_)||0>=_)throw new TypeError("elementSpan must be a (positive) integer");super(-1,j),this.elementSpan=_}isCount(){return!0}decode(_,j=0){n(_);const K=_.length-j;return Math.floor(K/this.elementSpan)}encode(_,j,K){return 0}}Ot.GreedyCount=E;class l extends d{constructor(_,j=0,K){if(!(_ instanceof e))throw new TypeError("layout must be a Layout");if(!Number.isInteger(j))throw new TypeError("offset must be integer or undefined");super(_.span,K||_.property),this.layout=_,this.offset=j}isCount(){return this.layout instanceof b||this.layout instanceof T}decode(_,j=0){return this.layout.decode(_,j+this.offset)}encode(_,j,K=0){return this.layout.encode(_,j,K+this.offset)}}Ot.OffsetLayout=l;class b extends e{constructor(_,j){if(super(_,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,j=0){return r(_).readUIntLE(j,this.span)}encode(_,j,K=0){return r(j).writeUIntLE(_,K,this.span),this.span}}Ot.UInt=b;class T extends e{constructor(_,j){if(super(_,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,j=0){return r(_).readUIntBE(j,this.span)}encode(_,j,K=0){return r(j).writeUIntBE(_,K,this.span),this.span}}Ot.UIntBE=T;class L extends e{constructor(_,j){if(super(_,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,j=0){return r(_).readIntLE(j,this.span)}encode(_,j,K=0){return r(j).writeIntLE(_,K,this.span),this.span}}Ot.Int=L;class N extends e{constructor(_,j){if(super(_,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,j=0){return r(_).readIntBE(j,this.span)}encode(_,j,K=0){return r(j).writeIntBE(_,K,this.span),this.span}}Ot.IntBE=N;const x=Math.pow(2,32);function M(h){const _=Math.floor(h/x),j=h-_*x;return{hi32:_,lo32:j}}function D(h,_){return h*x+_}class Y extends e{constructor(_){super(8,_)}decode(_,j=0){const K=r(_),ht=K.readUInt32LE(j),St=K.readUInt32LE(j+4);return D(St,ht)}encode(_,j,K=0){const ht=M(_),St=r(j);return St.writeUInt32LE(ht.lo32,K),St.writeUInt32LE(ht.hi32,K+4),8}}Ot.NearUInt64=Y;class W extends e{constructor(_){super(8,_)}decode(_,j=0){const K=r(_),ht=K.readUInt32BE(j),St=K.readUInt32BE(j+4);return D(ht,St)}encode(_,j,K=0){const ht=M(_),St=r(j);return St.writeUInt32BE(ht.hi32,K),St.writeUInt32BE(ht.lo32,K+4),8}}Ot.NearUInt64BE=W;class J extends e{constructor(_){super(8,_)}decode(_,j=0){const K=r(_),ht=K.readUInt32LE(j),St=K.readInt32LE(j+4);return D(St,ht)}encode(_,j,K=0){const ht=M(_),St=r(j);return St.writeUInt32LE(ht.lo32,K),St.writeInt32LE(ht.hi32,K+4),8}}Ot.NearInt64=J;class q extends e{constructor(_){super(8,_)}decode(_,j=0){const K=r(_),ht=K.readInt32BE(j),St=K.readUInt32BE(j+4);return D(ht,St)}encode(_,j,K=0){const ht=M(_),St=r(j);return St.writeInt32BE(ht.hi32,K),St.writeUInt32BE(ht.lo32,K+4),8}}Ot.NearInt64BE=q;class ot extends e{constructor(_){super(4,_)}decode(_,j=0){return r(_).readFloatLE(j)}encode(_,j,K=0){return r(j).writeFloatLE(_,K),4}}Ot.Float=ot;class pt extends e{constructor(_){super(4,_)}decode(_,j=0){return r(_).readFloatBE(j)}encode(_,j,K=0){return r(j).writeFloatBE(_,K),4}}Ot.FloatBE=pt;class ft extends e{constructor(_){super(8,_)}decode(_,j=0){return r(_).readDoubleLE(j)}encode(_,j,K=0){return r(j).writeDoubleLE(_,K),8}}Ot.Double=ft;class Rt extends e{constructor(_){super(8,_)}decode(_,j=0){return r(_).readDoubleBE(j)}encode(_,j,K=0){return r(j).writeDoubleBE(_,K),8}}Ot.DoubleBE=Rt;class At extends e{constructor(_,j,K){if(!(_ instanceof e))throw new TypeError("elementLayout must be a Layout");if(!(j instanceof d&&j.isCount()||Number.isInteger(j)&&0<=j))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let ht=-1;!(j instanceof d)&&0<_.span&&(ht=j*_.span),super(ht,K),this.elementLayout=_,this.count=j}getSpan(_,j=0){if(0<=this.span)return this.span;let K=0,ht=this.count;if(ht instanceof d&&(ht=ht.decode(_,j)),0<this.elementLayout.span)K=ht*this.elementLayout.span;else{let St=0;for(;St<ht;)K+=this.elementLayout.getSpan(_,j+K),++St}return K}decode(_,j=0){const K=[];let ht=0,St=this.count;for(St instanceof d&&(St=St.decode(_,j));ht<St;)K.push(this.elementLayout.decode(_,j)),j+=this.elementLayout.getSpan(_,j),ht+=1;return K}encode(_,j,K=0){const ht=this.elementLayout,St=_.reduce((Ft,zt)=>Ft+ht.encode(zt,j,K+Ft),0);return this.count instanceof d&&this.count.encode(_.length,j,K),St}}Ot.Sequence=At;class st extends e{constructor(_,j,K){if(!(Array.isArray(_)&&_.reduce((St,Ft)=>St&&Ft instanceof e,!0)))throw new TypeError("fields must be array of Layout instances");typeof j=="boolean"&&K===void 0&&(K=j,j=void 0);for(const St of _)if(0>St.span&&St.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let ht=-1;try{ht=_.reduce((St,Ft)=>St+Ft.getSpan(),0)}catch{}super(ht,j),this.fields=_,this.decodePrefixes=!!K}getSpan(_,j=0){if(0<=this.span)return this.span;let K=0;try{K=this.fields.reduce((ht,St)=>{const Ft=St.getSpan(_,j);return j+=Ft,ht+Ft},0)}catch{throw new RangeError("indeterminate span")}return K}decode(_,j=0){n(_);const K=this.makeDestinationObject();for(const ht of this.fields)if(ht.property!==void 0&&(K[ht.property]=ht.decode(_,j)),j+=ht.getSpan(_,j),this.decodePrefixes&&_.length===j)break;return K}encode(_,j,K=0){const ht=K;let St=0,Ft=0;for(const zt of this.fields){let de=zt.span;if(Ft=0<de?de:0,zt.property!==void 0){const Ee=_[zt.property];Ee!==void 0&&(Ft=zt.encode(Ee,j,K),0>de&&(de=zt.getSpan(j,K)))}St=K,K+=de}return St+Ft-ht}fromArray(_){const j=this.makeDestinationObject();for(const K of this.fields)K.property!==void 0&&0<_.length&&(j[K.property]=_.shift());return j}layoutFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const j of this.fields)if(j.property===_)return j}offsetOf(_){if(typeof _!="string")throw new TypeError("property must be string");let j=0;for(const K of this.fields){if(K.property===_)return j;0>K.span?j=-1:0<=j&&(j+=K.span)}}}Ot.Structure=st;class lt{constructor(_){this.property=_}decode(_,j){throw new Error("UnionDiscriminator is abstract")}encode(_,j,K){throw new Error("UnionDiscriminator is abstract")}}Ot.UnionDiscriminator=lt;class mt extends lt{constructor(_,j){if(!(_ instanceof d&&_.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(j||_.property||"variant"),this.layout=_}decode(_,j){return this.layout.decode(_,j)}encode(_,j,K){return this.layout.encode(_,j,K)}}Ot.UnionLayoutDiscriminator=mt;class wt extends e{constructor(_,j,K){let ht;if(_ instanceof b||_ instanceof T)ht=new mt(new l(_));else if(_ instanceof d&&_.isCount())ht=new mt(_);else if(_ instanceof lt)ht=_;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(j===void 0&&(j=null),!(j===null||j instanceof e))throw new TypeError("defaultLayout must be null or a Layout");if(j!==null){if(0>j.span)throw new Error("defaultLayout must have constant span");j.property===void 0&&(j=j.replicate("content"))}let St=-1;j&&(St=j.span,0<=St&&(_ instanceof b||_ instanceof T)&&(St+=ht.layout.span)),super(St,K),this.discriminator=ht,this.usesPrefixDiscriminator=_ instanceof b||_ instanceof T,this.defaultLayout=j,this.registry={};let Ft=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(zt){return Ft(zt)},this.configGetSourceVariant=function(zt){Ft=zt.bind(this)}}getSpan(_,j=0){if(0<=this.span)return this.span;const K=this.getVariant(_,j);if(!K)throw new Error("unable to determine span for unrecognized variant");return K.getSpan(_,j)}defaultGetSourceVariant(_){if(Object.prototype.hasOwnProperty.call(_,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(_,this.defaultLayout.property))return;const j=this.registry[_[this.discriminator.property]];if(j&&(!j.layout||j.property&&Object.prototype.hasOwnProperty.call(_,j.property)))return j}else for(const j in this.registry){const K=this.registry[j];if(K.property&&Object.prototype.hasOwnProperty.call(_,K.property))return K}throw new Error("unable to infer src variant")}decode(_,j=0){let K;const ht=this.discriminator,St=ht.decode(_,j),Ft=this.registry[St];if(Ft===void 0){const zt=this.defaultLayout;let de=0;this.usesPrefixDiscriminator&&(de=ht.layout.span),K=this.makeDestinationObject(),K[ht.property]=St,K[zt.property]=zt.decode(_,j+de)}else K=Ft.decode(_,j);return K}encode(_,j,K=0){const ht=this.getSourceVariant(_);if(ht===void 0){const St=this.discriminator,Ft=this.defaultLayout;let zt=0;return this.usesPrefixDiscriminator&&(zt=St.layout.span),St.encode(_[St.property],j,K),zt+Ft.encode(_[Ft.property],j,K+zt)}return ht.encode(_,j,K)}addVariant(_,j,K){const ht=new P(this,_,j,K);return this.registry[_]=ht,ht}getVariant(_,j=0){let K;return _ instanceof Uint8Array?K=this.discriminator.decode(_,j):K=_,this.registry[K]}}Ot.Union=wt;class P extends e{constructor(_,j,K,ht){if(!(_ instanceof wt))throw new TypeError("union must be a Union");if(!Number.isInteger(j)||0>j)throw new TypeError("variant must be a (non-negative) integer");if(typeof K=="string"&&ht===void 0&&(ht=K,K=null),K){if(!(K instanceof e))throw new TypeError("layout must be a Layout");if(_.defaultLayout!==null&&0<=K.span&&K.span>_.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof ht!="string")throw new TypeError("variant must have a String property")}let St=_.span;0>_.span&&(St=K?K.span:0,0<=St&&_.usesPrefixDiscriminator&&(St+=_.discriminator.layout.span)),super(St,ht),this.union=_,this.variant=j,this.layout=K||null}getSpan(_,j=0){if(0<=this.span)return this.span;let K=0;this.union.usesPrefixDiscriminator&&(K=this.union.discriminator.layout.span);let ht=0;return this.layout&&(ht=this.layout.getSpan(_,j+K)),K+ht}decode(_,j=0){const K=this.makeDestinationObject();if(this!==this.union.getVariant(_,j))throw new Error("variant mismatch");let ht=0;return this.union.usesPrefixDiscriminator&&(ht=this.union.discriminator.layout.span),this.layout?K[this.property]=this.layout.decode(_,j+ht):this.property?K[this.property]=!0:this.union.usesPrefixDiscriminator&&(K[this.union.discriminator.property]=this.variant),K}encode(_,j,K=0){let ht=0;if(this.union.usesPrefixDiscriminator&&(ht=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(_,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,j,K);let St=ht;if(this.layout&&(this.layout.encode(_[this.property],j,K+ht),St+=this.layout.getSpan(j,K+ht),0<=this.union.span&&St>this.union.span))throw new Error("encoded variant overruns containing union");return St}fromArray(_){if(this.layout)return this.layout.fromArray(_)}}Ot.VariantLayout=P;function f(h){return 0>h&&(h+=4294967296),h}class S extends e{constructor(_,j,K){if(!(_ instanceof b||_ instanceof T))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof j=="string"&&K===void 0&&(K=j,j=!1),4<_.span)throw new RangeError("word cannot exceed 32 bits");super(_.span,K),this.word=_,this.msb=!!j,this.fields=[];let ht=0;this._packedSetValue=function(St){return ht=f(St),this},this._packedGetValue=function(){return ht}}decode(_,j=0){const K=this.makeDestinationObject(),ht=this.word.decode(_,j);this._packedSetValue(ht);for(const St of this.fields)St.property!==void 0&&(K[St.property]=St.decode(_));return K}encode(_,j,K=0){const ht=this.word.decode(j,K);this._packedSetValue(ht);for(const St of this.fields)if(St.property!==void 0){const Ft=_[St.property];Ft!==void 0&&St.encode(Ft)}return this.word.encode(this._packedGetValue(),j,K)}addField(_,j){const K=new U(this,_,j);return this.fields.push(K),K}addBoolean(_){const j=new z(this,_);return this.fields.push(j),j}fieldFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const j of this.fields)if(j.property===_)return j}}Ot.BitStructure=S;class U{constructor(_,j,K){if(!(_ instanceof S))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(j)||0>=j)throw new TypeError("bits must be positive integer");const ht=8*_.span,St=_.fields.reduce((Ft,zt)=>Ft+zt.bits,0);if(j+St>ht)throw new Error("bits too long for span remainder ("+(ht-St)+" of "+ht+" remain)");this.container=_,this.bits=j,this.valueMask=(1<<j)-1,j===32&&(this.valueMask=4294967295),this.start=St,this.container.msb&&(this.start=ht-St-j),this.wordMask=f(this.valueMask<<this.start),this.property=K}decode(_,j){const K=this.container._packedGetValue();return f(K&this.wordMask)>>>this.start}encode(_){if(typeof _!="number"||!Number.isInteger(_)||_!==f(_&this.valueMask))throw new TypeError(u("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const j=this.container._packedGetValue(),K=f(_<<this.start);this.container._packedSetValue(f(j&~this.wordMask)|K)}}Ot.BitField=U;class z extends U{constructor(_,j){super(_,1,j)}decode(_,j){return!!super.decode(_,j)}encode(_){typeof _=="boolean"&&(_=+_),super.encode(_)}}Ot.Boolean=z;class $ extends e{constructor(_,j){if(!(_ instanceof d&&_.isCount()||Number.isInteger(_)&&0<=_))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let K=-1;_ instanceof d||(K=_),super(K,j),this.length=_}getSpan(_,j){let K=this.span;return 0>K&&(K=this.length.decode(_,j)),K}decode(_,j=0){let K=this.span;return 0>K&&(K=this.length.decode(_,j)),r(_).slice(j,j+K)}encode(_,j,K){let ht=this.length;if(this.length instanceof d&&(ht=_.length),!(_ instanceof Uint8Array&&ht===_.length))throw new TypeError(u("Blob.encode",this)+" requires (length "+ht+") Uint8Array as src");if(K+ht>j.length)throw new RangeError("encoding overruns Uint8Array");const St=r(_);return r(j).write(St.toString("hex"),K,ht,"hex"),this.length instanceof d&&this.length.encode(ht,j,K),ht}}Ot.Blob=$;class et extends e{constructor(_){super(-1,_)}getSpan(_,j=0){n(_);let K=j;for(;K<_.length&&_[K]!==0;)K+=1;return 1+K-j}decode(_,j=0){const K=this.getSpan(_,j);return r(_).slice(j,j+K-1).toString("utf-8")}encode(_,j,K=0){typeof _!="string"&&(_=String(_));const ht=t.Buffer.from(_,"utf8"),St=ht.length;if(K+St>j.length)throw new RangeError("encoding overruns Buffer");const Ft=r(j);return ht.copy(Ft,K),Ft[K+St]=0,St+1}}Ot.CString=et;class ut extends e{constructor(_,j){if(typeof _=="string"&&j===void 0&&(j=_,_=void 0),_===void 0)_=-1;else if(!Number.isInteger(_))throw new TypeError("maxSpan must be an integer");super(-1,j),this.maxSpan=_}getSpan(_,j=0){return n(_),_.length-j}decode(_,j=0){const K=this.getSpan(_,j);if(0<=this.maxSpan&&this.maxSpan<K)throw new RangeError("text length exceeds maxSpan");return r(_).slice(j,j+K).toString("utf-8")}encode(_,j,K=0){typeof _!="string"&&(_=String(_));const ht=t.Buffer.from(_,"utf8"),St=ht.length;if(0<=this.maxSpan&&this.maxSpan<St)throw new RangeError("text length exceeds maxSpan");if(K+St>j.length)throw new RangeError("encoding overruns Buffer");return ht.copy(r(j),K),St}}Ot.UTF8=ut;class Z extends e{constructor(_,j){super(0,j),this.value=_}decode(_,j){return this.value}encode(_,j,K){return 0}}return Ot.Constant=Z,Ot.greedy=((h,_)=>new E(h,_)),Ot.offset=((h,_,j)=>new l(h,_,j)),Ot.u8=(h=>new b(1,h)),Ot.u16=(h=>new b(2,h)),Ot.u24=(h=>new b(3,h)),Ot.u32=(h=>new b(4,h)),Ot.u40=(h=>new b(5,h)),Ot.u48=(h=>new b(6,h)),Ot.nu64=(h=>new Y(h)),Ot.u16be=(h=>new T(2,h)),Ot.u24be=(h=>new T(3,h)),Ot.u32be=(h=>new T(4,h)),Ot.u40be=(h=>new T(5,h)),Ot.u48be=(h=>new T(6,h)),Ot.nu64be=(h=>new W(h)),Ot.s8=(h=>new L(1,h)),Ot.s16=(h=>new L(2,h)),Ot.s24=(h=>new L(3,h)),Ot.s32=(h=>new L(4,h)),Ot.s40=(h=>new L(5,h)),Ot.s48=(h=>new L(6,h)),Ot.ns64=(h=>new J(h)),Ot.s16be=(h=>new N(2,h)),Ot.s24be=(h=>new N(3,h)),Ot.s32be=(h=>new N(4,h)),Ot.s40be=(h=>new N(5,h)),Ot.s48be=(h=>new N(6,h)),Ot.ns64be=(h=>new q(h)),Ot.f32=(h=>new ot(h)),Ot.f32be=(h=>new pt(h)),Ot.f64=(h=>new ft(h)),Ot.f64be=(h=>new Rt(h)),Ot.struct=((h,_,j)=>new st(h,_,j)),Ot.bits=((h,_,j)=>new S(h,_,j)),Ot.seq=((h,_,j)=>new At(h,_,j)),Ot.union=((h,_,j)=>new wt(h,_,j)),Ot.unionLayoutDiscriminator=((h,_)=>new mt(h,_)),Ot.blob=((h,_)=>new $(h,_)),Ot.cstr=(h=>new et(h)),Ot.utf8=((h,_)=>new ut(h,_)),Ot.constant=((h,_)=>new Z(h,_)),Ot}var dt=jd(),Yd=1,Wd=2,zd=3,Zd=4,Kd=5,Xd=6,qd=7,$d=8,Jd=9,Qd=10,t1=-32700,e1=-32603,n1=-32602,r1=-32601,i1=-32600,o1=-32016,s1=-32015,a1=-32014,u1=-32013,c1=-32012,f1=-32011,l1=-32010,d1=-32009,h1=-32008,p1=-32007,v1=-32006,g1=-32005,m1=-32004,y1=-32003,w1=-32002,E1=-32001,b1=28e5,_1=2800001,R1=2800002,A1=2800003,S1=2800004,I1=2800005,O1=2800006,T1=2800007,N1=2800008,x1=2800009,L1=2800010,C1=2800011,B1=323e4,M1=32300001,k1=3230002,U1=3230003,D1=3230004,P1=361e4,F1=3610001,V1=3610002,H1=3610003,G1=3610004,j1=3610005,Y1=3610006,W1=3610007,z1=3611e3,Z1=3704e3,K1=3704001,X1=3704002,q1=3704003,$1=3704004,J1=4128e3,Q1=4128001,th=4128002,eh=4615e3,nh=4615001,rh=4615002,ih=4615003,oh=4615004,sh=4615005,ah=4615006,uh=4615007,ch=4615008,fh=4615009,lh=4615010,dh=4615011,hh=4615012,ph=4615013,vh=4615014,gh=4615015,mh=4615016,yh=4615017,wh=4615018,Eh=4615019,bh=4615020,_h=4615021,Rh=4615022,Ah=4615023,Sh=4615024,Ih=4615025,Oh=4615026,Th=4615027,Nh=4615028,xh=4615029,Lh=4615030,Ch=4615031,Bh=4615032,Mh=4615033,kh=4615034,Uh=4615035,Dh=4615036,Ph=4615037,Fh=4615038,Vh=4615039,Hh=4615040,Gh=4615041,jh=4615042,Yh=4615043,Wh=4615044,zh=4615045,Zh=4615046,Kh=4615047,Xh=4615048,qh=4615049,$h=4615050,Jh=4615051,Qh=4615052,t2=4615053,e2=4615054,n2=5508e3,r2=5508001,i2=5508002,o2=5508003,s2=5508004,a2=5508005,u2=5508006,c2=5508007,f2=5508008,l2=5508009,d2=5508010,h2=5508011,p2=5663e3,v2=5663001,g2=5663002,m2=5663003,y2=5663004,w2=5663005,E2=5663006,b2=5663007,_2=5663008,R2=5663009,A2=5663010,S2=5663011,I2=5663012,O2=5663013,T2=5663014,N2=5663015,x2=5663016,L2=5663017,C2=5663018,B2=5663019,M2=5663020,k2=705e4,U2=7050001,D2=7050002,P2=7050003,F2=7050004,V2=7050005,H2=7050006,G2=7050007,j2=7050008,Y2=7050009,W2=7050010,z2=7050011,Z2=7050012,K2=7050013,X2=7050014,q2=7050015,$2=7050016,J2=7050017,Q2=7050018,tp=7050019,ep=7050020,np=7050021,rp=7050022,ip=7050023,op=7050024,sp=7050025,ap=7050026,up=7050027,cp=7050028,fp=7050029,lp=7050030,dp=7050031,hp=7050032,pp=7050033,vp=7050034,gp=7050035,mp=7050036,$u=8078e3,Ju=8078001,yp=8078002,wp=8078003,Qu=8078004,tc=8078005,ec=8078006,Ep=8078007,bp=8078008,_p=8078009,Rp=8078010,nc=8078011,Ap=8078012,Sp=8078013,Ip=8078014,Op=8078015,Tp=8078016,Np=8078017,xp=8078018,Lp=8078019,Cp=8078020,Bp=8078021,Mp=8078022,kp=81e5,Up=8100001,Dp=8100002,Pp=8100003,Fp=819e4,Vp=8190001,Hp=8190002,Gp=8190003,jp=8190004,Yp=99e5,Wp=9900001,zp=9900002,Zp=9900003,Kp=9900004;function rc(t){return Array.isArray(t)?"%5B"+t.map(rc).join("%2C%20")+"%5D":typeof t=="bigint"?`${t}n`:encodeURIComponent(String(t!=null&&Object.getPrototypeOf(t)===null?{...t}:t))}function Xp([t,n]){return`${t}=${rc(n)}`}function qp(t){const n=Object.entries(t).map(Xp).join("&");return btoa(n)}var $p={[B1]:"Account not found at address: $address",[D1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[U1]:"Expected decoded account at address: $address",[k1]:"Failed to decode account data at address: $address",[M1]:"Accounts not found at addresses: $addresses",[x1]:"Unable to find a viable program address bump seed.",[R1]:"$putativeAddress is not a base58-encoded address.",[b1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[A1]:"The `CryptoKey` must be an `Ed25519` public key.",[C1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[N1]:"Invalid seeds; point must fall off the Ed25519 curve.",[S1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[O1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[T1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[I1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[L1]:"Program address cannot end with PDA marker.",[_1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Zd]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Yd]:"The network has progressed past the last block for which this transaction could have been committed.",[$u]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Mp]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Cp]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[tc]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[ec]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Qu]:"Encoder and decoder must either both be fixed-size or variable-size.",[bp]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[yp]:"Expected a fixed-size codec, got a variable-size one.",[Sp]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[wp]:"Expected a variable-size codec, got a fixed-size one.",[Lp]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Ju]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[xp]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[_p]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Rp]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Op]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Ep]:"Expected [$codecDescription] to have $expected items, got $actual.",[Ap]:"Invalid value $value for base $base with alphabet $alphabet.",[Tp]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[nc]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Ip]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Bp]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Np]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[z1]:"No random values implementation could be found.",[fh]:"instruction requires an uninitialized account",[Ah]:"instruction tries to borrow reference for an account which is already borrowed",[Sh]:"instruction left account with an outstanding borrowed reference",[_h]:"program other than the account's owner changed the size of the account data",[sh]:"account data too small for instruction",[Rh]:"instruction expected an executable account",[Zh]:"An account does not have enough lamports to be rent-exempt",[Xh]:"Program arithmetic overflowed",[zh]:"Failed to serialize or deserialize account data: $encodedData",[e2]:"Builtin programs must consume compute units",[Bh]:"Cross-program invocation call depth too deep",[Fh]:"Computational budget exceeded",[Oh]:"custom program error: #$code",[yh]:"instruction contains duplicate accounts",[Ih]:"instruction modifications of multiply-passed account differ",[Lh]:"executable accounts must be rent exempt",[Nh]:"instruction changed executable accounts data",[xh]:"instruction changed the balance of an executable account",[wh]:"instruction changed executable bit of an account",[vh]:"instruction modified data of an account it does not own",[ph]:"instruction spent from the balance of an account it does not own",[nh]:"generic instruction error",[$h]:"Provided owner is not allowed",[Yh]:"Account is immutable",[Wh]:"Incorrect authority provided",[uh]:"incorrect program id for instruction",[ah]:"insufficient funds for instruction",[oh]:"invalid account data for instruction",[Kh]:"Invalid account owner",[rh]:"invalid program argument",[Th]:"program returned invalid error code",[ih]:"invalid instruction data",[Ph]:"Failed to reallocate account data",[Dh]:"Provided seeds do not result in a valid address",[Jh]:"Accounts data allocations exceeded the maximum allowed per transaction",[Qh]:"Max accounts exceeded",[t2]:"Max instruction trace length exceeded",[Uh]:"Length of the seed is too long for address generation",[Mh]:"An account required by the instruction is missing",[ch]:"missing required signature for instruction",[hh]:"instruction illegally modified the program id of an account",[bh]:"insufficient account keys for instruction",[Vh]:"Cross-program invocation with unauthorized signer or writable account",[Hh]:"Failed to create program execution environment",[jh]:"Program failed to compile",[Gh]:"Program failed to complete",[mh]:"instruction modified data of a read-only account",[gh]:"instruction changed the balance of a read-only account",[kh]:"Cross-program invocation reentrancy not allowed for this instruction",[Eh]:"instruction modified rent epoch of an account",[dh]:"sum of account balances before and after instruction do not match",[lh]:"instruction requires an initialized account",[eh]:"",[Ch]:"Unsupported program id",[qh]:"Unsupported sysvar",[J1]:"The instruction does not have any accounts.",[Q1]:"The instruction does not have any data.",[th]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Kd]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Wd]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[zp]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Kp]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Wp]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yp]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Zp]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[e1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[n1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[i1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[r1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[t1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[c1]:"$__serverMessage",[E1]:"$__serverMessage",[m1]:"$__serverMessage",[a1]:"$__serverMessage",[l1]:"$__serverMessage",[d1]:"$__serverMessage",[o1]:"Minimum context slot has not been reached",[g1]:"Node is unhealthy; behind by $numSlotsBehind slots",[h1]:"No snapshot",[w1]:"Transaction simulation failed",[p1]:"$__serverMessage",[f1]:"Transaction history is not available from this node",[v1]:"$__serverMessage",[u1]:"Transaction signature length mismatch",[y1]:"Transaction signature verification failure",[s1]:"$__serverMessage",[Z1]:"Key pair bytes must be of length 64, got $byteLength.",[K1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[X1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[$1]:"The provided private key does not match the provided public key.",[q1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Xd]:"Lamports value must be in the range [0, 2e64-1]",[qd]:"`$value` cannot be parsed as a `BigInt`",[Qd]:"$message",[$d]:"`$value` cannot be parsed as a `Number`",[zd]:"No nonce account could be found at address `$nonceAccountAddress`",[Fp]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Hp]:"WebSocket was closed before payload could be added to the send buffer",[Gp]:"WebSocket connection closed",[jp]:"WebSocket failed to connect",[Vp]:"Failed to obtain a subscription id from the server",[Pp]:"Could not find an API plan for RPC method: `$method`",[kp]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Dp]:"HTTP error ($statusCode): $message",[Up]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[n2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[r2]:"The provided value does not implement the `KeyPairSigner` interface",[o2]:"The provided value does not implement the `MessageModifyingSigner` interface",[s2]:"The provided value does not implement the `MessagePartialSigner` interface",[i2]:"The provided value does not implement any of the `MessageSigner` interfaces",[u2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[c2]:"The provided value does not implement the `TransactionPartialSigner` interface",[f2]:"The provided value does not implement the `TransactionSendingSigner` interface",[a2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[l2]:"More than one `TransactionSendingSigner` was identified.",[d2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[h2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[W1]:"Cannot export a non-extractable key.",[F1]:"No digest implementation could be found.",[P1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[V1]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
2
2
|
|
|
3
3
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
4
4
|
|
|
5
|
-
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Ap]:"No signature verification implementation could be found.",[Ip]:"No key generation implementation could be found.",[kp]:"No signing implementation could be found.",[Op]:"No key export implementation could be found.",[M1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Pg]:"Transaction processing left an account with an outstanding borrowed reference",[bg]:"Account in use",[_g]:"Account loaded twice",[Eg]:"Attempt to debit an account but found no record of a prior credit.",[Wg]:"Transaction loads an address table account that doesn't exist",[Ig]:"This transaction has already been processed",[kg]:"Blockhash not found",[Og]:"Loader call chain is too deep",[Bg]:"Transactions are currently disabled due to cluster maintenance",[Zg]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Sg]:"Insufficient funds for fee",[$g]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Ag]:"This account may not be used to pay transaction fees",[Ng]:"Transaction contains an invalid account reference",[Gg]:"Transaction loads an address table account with invalid data",[Kg]:"Transaction address table lookup uses an invalid index",[zg]:"Transaction loads an address table account with an invalid owner",[Jg]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Cg]:"This program may not be used for executing instructions",[jg]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Dg]:"Transaction loads a writable account that cannot be written",[Xg]:"Transaction exceeded max loaded accounts data size cap",[Tg]:"Transaction requires a fee but has no signature present",[Rg]:"Attempt to load a program that does not exist",[tm]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Qg]:"ResanitizationNeeded",[Lg]:"Transaction failed to sanitize accounts offsets correctly",[xg]:"Transaction did not pass signature verification",[Hg]:"Transaction locked too many accounts",[em]:"Sum of account balances before and after transaction do not match",[wg]:"The transaction failed with the error `$errorName`",[Ug]:"Transaction version is unsupported",[Vg]:"Transaction would exceed account data limit within the block",[qg]:"Transaction would exceed total account data limit",[Fg]:"Transaction would exceed max account limit within the block",[Mg]:"Transaction would exceed max Block Cost Limit",[Yg]:"Transaction would exceed max Vote Cost Limit",[hg]:"Attempted to sign a transaction with an address that is not a signer for it",[cg]:"Transaction is missing an address at index: $index.",[pg]:"Transaction has no expected signers therefore it cannot be encoded",[yg]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[tg]:"Transaction does not have a blockhash lifetime",[eg]:"Transaction is not a durable nonce transaction",[rg]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[ig]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[sg]:"No fee payer set in CompiledTransaction",[og]:"Could not find program address at index $index",[mg]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[vg]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[ug]:"Transaction is missing a fee payer.",[fg]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[dg]:"Transaction first instruction is not advance nonce account instruction.",[lg]:"Transaction with no instructions cannot be durable nonce transaction.",[J2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Q2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[gg]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[ag]:"Transaction is missing signatures for addresses: $addresses.",[ng]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},Sr="i",ar="t";function Mm(r,t={}){const n=Pm[r];if(n.length===0)return"";let e;function o(c){if(e[ar]===2){const d=n.slice(e[Sr]+1,c);i.push(d in t?`${t[d]}`:`$${d}`)}else e[ar]===1&&i.push(n.slice(e[Sr],c))}const i=[];return n.split("").forEach((c,d)=>{if(d===0){e={[Sr]:0,[ar]:n[0]==="\\"?0:n[0]==="$"?2:1};return}let f;switch(e[ar]){case 0:f={[Sr]:d,[ar]:1};break;case 1:c==="\\"?f={[Sr]:d,[ar]:0}:c==="$"&&(f={[Sr]:d,[ar]:2});break;case 2:c==="\\"?f={[Sr]:d,[ar]:0}:c==="$"?f={[Sr]:d,[ar]:2}:c.match(/\w/)||(f={[Sr]:d,[ar]:1});break}f&&(e!==f&&o(d),e=f)}),o(),i.join("")}function Um(r,t={}){if(process.env.NODE_ENV!=="production")return Mm(r,t);{let n=`Solana error #${r}; Decode this error by running \`npx @solana/errors decode -- ${r}`;return Object.keys(t).length&&(n+=` '${Bm(t)}'`),`${n}\``}}var Ai=class extends Error{cause=this.cause;context;constructor(...[r,t]){let n,e;if(t){const{cause:i,...c}=t;i&&(e={cause:i}),Object.keys(c).length>0&&(n=c)}const o=Um(r,n);super(o,e),this.context={__code:r,...n},this.name="SolanaError"}};function Dm(r,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(r)}function Fm(r){return Object.freeze({...r,encode:t=>{const n=new Uint8Array(Dm(t,r));return r.write(t,n,0),n}})}function Vm(r){return Object.freeze({...r,decode:(t,n=0)=>r.read(t,n)[0]})}function Ii(r){return"fixedSize"in r&&typeof r.fixedSize=="number"}function Hm(r,t){if(Ii(r)!==Ii(t))throw new Ai(Qu);if(Ii(r)&&Ii(t)&&r.fixedSize!==t.fixedSize)throw new Ai(tf,{decoderFixedSize:t.fixedSize,encoderFixedSize:r.fixedSize});if(!Ii(r)&&!Ii(t)&&r.maxSize!==t.maxSize)throw new Ai(ef,{decoderMaxSize:t.maxSize,encoderMaxSize:r.maxSize});return{...t,...r,decode:t.decode,encode:r.encode,read:t.read,write:r.write}}function Wm(r,t,n=0){if(t.length-n<=0)throw new Ai(Xu,{codecDescription:r})}function zm(r,t,n,e=0){const o=n.length-e;if(o<t)throw new Ai(Ju,{bytesLength:o,codecDescription:r,expected:t})}function Gm(r,t,n,e){if(e<t||e>n)throw new Ai(nf,{codecDescription:r,max:n,min:t,value:e})}function of(r){return r?.endian!==1}function Km(r){return Fm({fixedSize:r.size,write(t,n,e){r.range&&Gm(r.name,r.range[0],r.range[1],t);const o=new ArrayBuffer(r.size);return r.set(new DataView(o),t,of(r.config)),n.set(new Uint8Array(o),e),e+r.size}})}function jm(r){return Vm({fixedSize:r.size,read(t,n=0){Wm(r.name,t,n),zm(r.name,r.size,t,n);const e=new DataView(Ym(t,n,r.size));return[r.get(e,of(r.config)),n+r.size]}})}function Ym(r,t,n){const e=r.byteOffset+(t??0),o=n??r.byteLength;return r.buffer.slice(e,e+o)}var sf=(r={})=>Km({config:r,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,n,e)=>t.setBigUint64(0,BigInt(n),e),size:8}),qm=(r={})=>jm({config:r,get:(t,n)=>t.getBigUint64(0,n),name:"u64",size:8}),Zm=(r={})=>Hm(sf(r),qm(r));class $m extends TypeError{constructor(t,n){let e;const{message:o,explanation:i,...c}=t,{path:d}=t,f=d.length===0?o:`At path: ${d.join(".")} -- ${o}`;super(i??f),i!=null&&(this.cause=f),Object.assign(this,c),this.name=this.constructor.name,this.failures=()=>e??(e=[t,...n()])}}function Xm(r){return eo(r)&&typeof r[Symbol.iterator]=="function"}function eo(r){return typeof r=="object"&&r!=null}function is(r){return eo(r)&&!Array.isArray(r)}function Jn(r){return typeof r=="symbol"?r.toString():typeof r=="string"?JSON.stringify(r):`${r}`}function Jm(r){const{done:t,value:n}=r.next();return t?void 0:n}function Qm(r,t,n,e){if(r===!0)return;r===!1?r={}:typeof r=="string"&&(r={message:r});const{path:o,branch:i}=t,{type:c}=n,{refinement:d,message:f=`Expected a value of type \`${c}\`${d?` with refinement \`${d}\``:""}, but received: \`${Jn(e)}\``}=r;return{value:e,type:c,refinement:d,key:o[o.length-1],path:o,branch:i,...r,message:f}}function*af(r,t,n,e){Xm(r)||(r=[r]);for(const o of r){const i=Qm(o,t,n,e);i&&(yield i)}}function*va(r,t,n={}){const{path:e=[],branch:o=[r],coerce:i=!1,mask:c=!1}=n,d={path:e,branch:o,mask:c};i&&(r=t.coercer(r,d));let f="valid";for(const p of t.validator(r,d))p.explanation=n.message,f="not_valid",yield[p,void 0];for(let[p,S,x]of t.entries(r,d)){const T=va(S,x,{path:p===void 0?e:[...e,p],branch:p===void 0?o:[...o,S],coerce:i,mask:c,message:n.message});for(const k of T)k[0]?(f=k[0].refinement!=null?"not_refined":"not_valid",yield[k[0],void 0]):i&&(S=k[1],p===void 0?r=S:r instanceof Map?r.set(p,S):r instanceof Set?r.add(S):eo(r)&&(S!==void 0||p in r)&&(r[p]=S))}if(f!=="not_valid")for(const p of t.refiner(r,d))p.explanation=n.message,f="not_refined",yield[p,void 0];f==="valid"&&(yield[void 0,r])}let cr=class{constructor(t){const{type:n,schema:e,validator:o,refiner:i,coercer:c=f=>f,entries:d=function*(){}}=t;this.type=n,this.schema=e,this.entries=d,this.coercer=c,o?this.validator=(f,p)=>{const S=o(f,p);return af(S,p,this,f)}:this.validator=()=>[],i?this.refiner=(f,p)=>{const S=i(f,p);return af(S,p,this,f)}:this.refiner=()=>[]}assert(t,n){return cf(t,this,n)}create(t,n){return Qt(t,this,n)}is(t){return uf(t,this)}mask(t,n){return tv(t,this,n)}validate(t,n={}){return no(t,this,n)}};function cf(r,t,n){const e=no(r,t,{message:n});if(e[0])throw e[0]}function Qt(r,t,n){const e=no(r,t,{coerce:!0,message:n});if(e[0])throw e[0];return e[1]}function tv(r,t,n){const e=no(r,t,{coerce:!0,mask:!0,message:n});if(e[0])throw e[0];return e[1]}function uf(r,t){return!no(r,t)[0]}function no(r,t,n={}){const e=va(r,t,n),o=Jm(e);return o[0]?[new $m(o[0],function*(){for(const c of e)c[0]&&(yield c[0])}),void 0]:[void 0,o[1]]}function ii(r,t){return new cr({type:r,schema:null,validator:t})}function ev(){return ii("any",()=>!0)}function ne(r){return new cr({type:"array",schema:r,*entries(t){if(r&&Array.isArray(t))for(const[n,e]of t.entries())yield[n,e,r]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Jn(t)}`}})}function ur(){return ii("boolean",r=>typeof r=="boolean")}function ya(r){return ii("instance",t=>t instanceof r||`Expected a \`${r.name}\` instance, but received: ${Jn(t)}`)}function Qe(r){const t=Jn(r),n=typeof r;return new cr({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?r:null,validator(e){return e===r||`Expected the literal \`${t}\`, but received: ${Jn(e)}`}})}function nv(){return ii("never",()=>!1)}function re(r){return new cr({...r,validator:(t,n)=>t===null||r.validator(t,n),refiner:(t,n)=>t===null||r.refiner(t,n)})}function Rt(){return ii("number",r=>typeof r=="number"&&!isNaN(r)||`Expected a number, but received: ${Jn(r)}`)}function de(r){return new cr({...r,validator:(t,n)=>t===void 0||r.validator(t,n),refiner:(t,n)=>t===void 0||r.refiner(t,n)})}function ff(r,t){return new cr({type:"record",schema:null,*entries(n){if(eo(n))for(const e in n){const o=n[e];yield[e,e,r],yield[e,o,t]}},validator(n){return is(n)||`Expected an object, but received: ${Jn(n)}`},coercer(n){return is(n)?{...n}:n}})}function $t(){return ii("string",r=>typeof r=="string"||`Expected a string, but received: ${Jn(r)}`)}function wa(r){const t=nv();return new cr({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const e=Math.max(r.length,n.length);for(let o=0;o<e;o++)yield[o,n[o],r[o]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${Jn(n)}`},coercer(n){return Array.isArray(n)?n.slice():n}})}function Dt(r){const t=Object.keys(r);return new cr({type:"type",schema:r,*entries(n){if(eo(n))for(const e of t)yield[e,n[e],r[e]]},validator(n){return is(n)||`Expected an object, but received: ${Jn(n)}`},coercer(n){return is(n)?{...n}:n}})}function Un(r){const t=r.map(n=>n.type).join(" | ");return new cr({type:"union",schema:null,coercer(n,e){for(const o of r){const[i,c]=o.validate(n,{coerce:!0,mask:e.mask});if(!i)return c}return n},validator(n,e){const o=[];for(const i of r){const[...c]=va(n,i,e),[d]=c;if(d[0])for(const[f]of c)f&&o.push(f);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Jn(n)}`,...o]}})}function ki(){return ii("unknown",()=>!0)}function ro(r,t,n){return new cr({...r,coercer:(e,o)=>uf(e,t)?r.coercer(n(e,o),o):r.coercer(e,o)})}var os,rv=new Uint8Array(16);function lf(){if(!os&&(os=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!os))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return os(rv)}const iv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ss(r){return typeof r=="string"&&iv.test(r)}for(var Tn=[],ba=0;ba<256;++ba)Tn.push((ba+256).toString(16).substr(1));function as(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Tn[r[t+0]]+Tn[r[t+1]]+Tn[r[t+2]]+Tn[r[t+3]]+"-"+Tn[r[t+4]]+Tn[r[t+5]]+"-"+Tn[r[t+6]]+Tn[r[t+7]]+"-"+Tn[r[t+8]]+Tn[r[t+9]]+"-"+Tn[r[t+10]]+Tn[r[t+11]]+Tn[r[t+12]]+Tn[r[t+13]]+Tn[r[t+14]]+Tn[r[t+15]]).toLowerCase();if(!ss(n))throw TypeError("Stringified UUID is invalid");return n}var df,_a,Ea=0,Ra=0;function ov(r,t,n){var e=t&&n||0,o=t||new Array(16);r=r||{};var i=r.node||df,c=r.clockseq!==void 0?r.clockseq:_a;if(i==null||c==null){var d=r.random||(r.rng||lf)();i==null&&(i=df=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]),c==null&&(c=_a=(d[6]<<8|d[7])&16383)}var f=r.msecs!==void 0?r.msecs:Date.now(),p=r.nsecs!==void 0?r.nsecs:Ra+1,S=f-Ea+(p-Ra)/1e4;if(S<0&&r.clockseq===void 0&&(c=c+1&16383),(S<0||f>Ea)&&r.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ea=f,Ra=p,_a=c,f+=122192928e5;var x=((f&268435455)*1e4+p)%4294967296;o[e++]=x>>>24&255,o[e++]=x>>>16&255,o[e++]=x>>>8&255,o[e++]=x&255;var T=f/4294967296*1e4&268435455;o[e++]=T>>>8&255,o[e++]=T&255,o[e++]=T>>>24&15|16,o[e++]=T>>>16&255,o[e++]=c>>>8|128,o[e++]=c&255;for(var k=0;k<6;++k)o[e+k]=i[k];return t||as(o)}function hf(r){if(!ss(r))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(r.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(r.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(r.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(r.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function sv(r){r=unescape(encodeURIComponent(r));for(var t=[],n=0;n<r.length;++n)t.push(r.charCodeAt(n));return t}var av="6ba7b810-9dad-11d1-80b4-00c04fd430c8",cv="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function pf(r,t,n){function e(o,i,c,d){if(typeof o=="string"&&(o=sv(o)),typeof i=="string"&&(i=hf(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var f=new Uint8Array(16+o.length);if(f.set(i),f.set(o,i.length),f=n(f),f[6]=f[6]&15|t,f[8]=f[8]&63|128,c){d=d||0;for(var p=0;p<16;++p)c[d+p]=f[p];return c}return as(f)}try{e.name=r}catch{}return e.DNS=av,e.URL=cv,e}function uv(r){if(typeof r=="string"){var t=unescape(encodeURIComponent(r));r=new Uint8Array(t.length);for(var n=0;n<t.length;++n)r[n]=t.charCodeAt(n)}return fv(lv(dv(r),r.length*8))}function fv(r){for(var t=[],n=r.length*32,e="0123456789abcdef",o=0;o<n;o+=8){var i=r[o>>5]>>>o%32&255,c=parseInt(e.charAt(i>>>4&15)+e.charAt(i&15),16);t.push(c)}return t}function gf(r){return(r+64>>>9<<4)+14+1}function lv(r,t){r[t>>5]|=128<<t%32,r[gf(t)-1]=t;for(var n=1732584193,e=-271733879,o=-1732584194,i=271733878,c=0;c<r.length;c+=16){var d=n,f=e,p=o,S=i;n=Cn(n,e,o,i,r[c],7,-680876936),i=Cn(i,n,e,o,r[c+1],12,-389564586),o=Cn(o,i,n,e,r[c+2],17,606105819),e=Cn(e,o,i,n,r[c+3],22,-1044525330),n=Cn(n,e,o,i,r[c+4],7,-176418897),i=Cn(i,n,e,o,r[c+5],12,1200080426),o=Cn(o,i,n,e,r[c+6],17,-1473231341),e=Cn(e,o,i,n,r[c+7],22,-45705983),n=Cn(n,e,o,i,r[c+8],7,1770035416),i=Cn(i,n,e,o,r[c+9],12,-1958414417),o=Cn(o,i,n,e,r[c+10],17,-42063),e=Cn(e,o,i,n,r[c+11],22,-1990404162),n=Cn(n,e,o,i,r[c+12],7,1804603682),i=Cn(i,n,e,o,r[c+13],12,-40341101),o=Cn(o,i,n,e,r[c+14],17,-1502002290),e=Cn(e,o,i,n,r[c+15],22,1236535329),n=Ln(n,e,o,i,r[c+1],5,-165796510),i=Ln(i,n,e,o,r[c+6],9,-1069501632),o=Ln(o,i,n,e,r[c+11],14,643717713),e=Ln(e,o,i,n,r[c],20,-373897302),n=Ln(n,e,o,i,r[c+5],5,-701558691),i=Ln(i,n,e,o,r[c+10],9,38016083),o=Ln(o,i,n,e,r[c+15],14,-660478335),e=Ln(e,o,i,n,r[c+4],20,-405537848),n=Ln(n,e,o,i,r[c+9],5,568446438),i=Ln(i,n,e,o,r[c+14],9,-1019803690),o=Ln(o,i,n,e,r[c+3],14,-187363961),e=Ln(e,o,i,n,r[c+8],20,1163531501),n=Ln(n,e,o,i,r[c+13],5,-1444681467),i=Ln(i,n,e,o,r[c+2],9,-51403784),o=Ln(o,i,n,e,r[c+7],14,1735328473),e=Ln(e,o,i,n,r[c+12],20,-1926607734),n=Bn(n,e,o,i,r[c+5],4,-378558),i=Bn(i,n,e,o,r[c+8],11,-2022574463),o=Bn(o,i,n,e,r[c+11],16,1839030562),e=Bn(e,o,i,n,r[c+14],23,-35309556),n=Bn(n,e,o,i,r[c+1],4,-1530992060),i=Bn(i,n,e,o,r[c+4],11,1272893353),o=Bn(o,i,n,e,r[c+7],16,-155497632),e=Bn(e,o,i,n,r[c+10],23,-1094730640),n=Bn(n,e,o,i,r[c+13],4,681279174),i=Bn(i,n,e,o,r[c],11,-358537222),o=Bn(o,i,n,e,r[c+3],16,-722521979),e=Bn(e,o,i,n,r[c+6],23,76029189),n=Bn(n,e,o,i,r[c+9],4,-640364487),i=Bn(i,n,e,o,r[c+12],11,-421815835),o=Bn(o,i,n,e,r[c+15],16,530742520),e=Bn(e,o,i,n,r[c+2],23,-995338651),n=Pn(n,e,o,i,r[c],6,-198630844),i=Pn(i,n,e,o,r[c+7],10,1126891415),o=Pn(o,i,n,e,r[c+14],15,-1416354905),e=Pn(e,o,i,n,r[c+5],21,-57434055),n=Pn(n,e,o,i,r[c+12],6,1700485571),i=Pn(i,n,e,o,r[c+3],10,-1894986606),o=Pn(o,i,n,e,r[c+10],15,-1051523),e=Pn(e,o,i,n,r[c+1],21,-2054922799),n=Pn(n,e,o,i,r[c+8],6,1873313359),i=Pn(i,n,e,o,r[c+15],10,-30611744),o=Pn(o,i,n,e,r[c+6],15,-1560198380),e=Pn(e,o,i,n,r[c+13],21,1309151649),n=Pn(n,e,o,i,r[c+4],6,-145523070),i=Pn(i,n,e,o,r[c+11],10,-1120210379),o=Pn(o,i,n,e,r[c+2],15,718787259),e=Pn(e,o,i,n,r[c+9],21,-343485551),n=Fr(n,d),e=Fr(e,f),o=Fr(o,p),i=Fr(i,S)}return[n,e,o,i]}function dv(r){if(r.length===0)return[];for(var t=r.length*8,n=new Uint32Array(gf(t)),e=0;e<t;e+=8)n[e>>5]|=(r[e/8]&255)<<e%32;return n}function Fr(r,t){var n=(r&65535)+(t&65535),e=(r>>16)+(t>>16)+(n>>16);return e<<16|n&65535}function hv(r,t){return r<<t|r>>>32-t}function cs(r,t,n,e,o,i){return Fr(hv(Fr(Fr(t,r),Fr(e,i)),o),n)}function Cn(r,t,n,e,o,i,c){return cs(t&n|~t&e,r,t,o,i,c)}function Ln(r,t,n,e,o,i,c){return cs(t&e|n&~e,r,t,o,i,c)}function Bn(r,t,n,e,o,i,c){return cs(t^n^e,r,t,o,i,c)}function Pn(r,t,n,e,o,i,c){return cs(n^(t|~e),r,t,o,i,c)}var pv=pf("v3",48,uv);function gv(r,t,n){r=r||{};var e=r.random||(r.rng||lf)();if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=e[o];return t}return as(e)}function mv(r,t,n,e){switch(r){case 0:return t&n^~t&e;case 1:return t^n^e;case 2:return t&n^t&e^n&e;case 3:return t^n^e}}function Sa(r,t){return r<<t|r>>>32-t}function vv(r){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){var e=unescape(encodeURIComponent(r));r=[];for(var o=0;o<e.length;++o)r.push(e.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var i=r.length/4+2,c=Math.ceil(i/16),d=new Array(c),f=0;f<c;++f){for(var p=new Uint32Array(16),S=0;S<16;++S)p[S]=r[f*64+S*4]<<24|r[f*64+S*4+1]<<16|r[f*64+S*4+2]<<8|r[f*64+S*4+3];d[f]=p}d[c-1][14]=(r.length-1)*8/Math.pow(2,32),d[c-1][14]=Math.floor(d[c-1][14]),d[c-1][15]=(r.length-1)*8&4294967295;for(var x=0;x<c;++x){for(var T=new Uint32Array(80),k=0;k<16;++k)T[k]=d[x][k];for(var C=16;C<80;++C)T[C]=Sa(T[C-3]^T[C-8]^T[C-14]^T[C-16],1);for(var M=n[0],V=n[1],G=n[2],J=n[3],$=n[4],nt=0;nt<80;++nt){var pt=Math.floor(nt/20),lt=Sa(M,5)+mv(pt,V,G,J)+$+t[pt]+T[nt]>>>0;$=J,J=G,G=Sa(V,30)>>>0,V=M,M=lt}n[0]=n[0]+M>>>0,n[1]=n[1]+V>>>0,n[2]=n[2]+G>>>0,n[3]=n[3]+J>>>0,n[4]=n[4]+$>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var yv=pf("v5",80,vv);const wv="00000000-0000-0000-0000-000000000000";function bv(r){if(!ss(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)}const mf=js(Object.freeze(Object.defineProperty({__proto__:null,NIL:wv,parse:hf,stringify:as,v1:ov,v3:pv,v4:gv,v5:yv,validate:ss,version:bv},Symbol.toStringTag,{value:"Module"})));var Aa,vf;function _v(){if(vf)return Aa;vf=1;const r=mf.v4;return Aa=function(n,e,o,i){if(typeof n!="string")throw new TypeError(n+" must be a string");i=i||{};const c=typeof i.version=="number"?i.version:2;if(c!==1&&c!==2)throw new TypeError(c+" must be 1 or 2");const d={method:n};if(c===2&&(d.jsonrpc="2.0"),e){if(typeof e!="object"&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");d.params=e}if(typeof o>"u"){const f=typeof i.generator=="function"?i.generator:function(){return r()};d.id=f(d,i)}else c===2&&o===null?i.notificationIdNull&&(d.id=null):d.id=o;return d},Aa}var Ia,yf;function Ev(){if(yf)return Ia;yf=1;const r=mf.v4,t=_v(),n=function(e,o){if(!(this instanceof n))return new n(e,o);o||(o={}),this.options={reviver:typeof o.reviver<"u"?o.reviver:null,replacer:typeof o.replacer<"u"?o.replacer:null,generator:typeof o.generator<"u"?o.generator:function(){return r()},version:typeof o.version<"u"?o.version:2,notificationIdNull:typeof o.notificationIdNull=="boolean"?o.notificationIdNull:!1},this.callServer=e};return Ia=n,n.prototype.request=function(e,o,i,c){const d=this;let f=null;const p=Array.isArray(e)&&typeof o=="function";if(this.options.version===1&&p)throw new TypeError("JSON-RPC 1.0 does not support batching");if(p||!p&&e&&typeof e=="object"&&typeof o=="function")c=o,f=e;else{typeof i=="function"&&(c=i,i=void 0);const T=typeof c=="function";try{f=t(e,o,i,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(k){if(T)return c(k);throw k}if(!T)return f}let x;try{x=JSON.stringify(f,this.options.replacer)}catch(T){return c(T)}return this.callServer(x,function(T,k){d._parseResponse(T,k,c)}),f},n.prototype._parseResponse=function(e,o,i){if(e){i(e);return}if(!o)return i();let c;try{c=JSON.parse(o,this.options.reviver)}catch(d){return i(d)}if(i.length===3)if(Array.isArray(c)){const d=function(p){return typeof p.error<"u"},f=function(p){return!d(p)};return i(null,c.filter(d),c.filter(f))}else return i(null,c.error,c.result);i(null,c)},Ia}var Rv=Ev();const Sv=qi(Rv);var ka={exports:{}},wf;function Av(){return wf||(wf=1,(function(r){var t=Object.prototype.hasOwnProperty,n="~";function e(){}Object.create&&(e.prototype=Object.create(null),new e().__proto__||(n=!1));function o(f,p,S){this.fn=f,this.context=p,this.once=S||!1}function i(f,p,S,x,T){if(typeof S!="function")throw new TypeError("The listener must be a function");var k=new o(S,x||f,T),C=n?n+p:p;return f._events[C]?f._events[C].fn?f._events[C]=[f._events[C],k]:f._events[C].push(k):(f._events[C]=k,f._eventsCount++),f}function c(f,p){--f._eventsCount===0?f._events=new e:delete f._events[p]}function d(){this._events=new e,this._eventsCount=0}d.prototype.eventNames=function(){var p=[],S,x;if(this._eventsCount===0)return p;for(x in S=this._events)t.call(S,x)&&p.push(n?x.slice(1):x);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(S)):p},d.prototype.listeners=function(p){var S=n?n+p:p,x=this._events[S];if(!x)return[];if(x.fn)return[x.fn];for(var T=0,k=x.length,C=new Array(k);T<k;T++)C[T]=x[T].fn;return C},d.prototype.listenerCount=function(p){var S=n?n+p:p,x=this._events[S];return x?x.fn?1:x.length:0},d.prototype.emit=function(p,S,x,T,k,C){var M=n?n+p:p;if(!this._events[M])return!1;var V=this._events[M],G=arguments.length,J,$;if(V.fn){switch(V.once&&this.removeListener(p,V.fn,void 0,!0),G){case 1:return V.fn.call(V.context),!0;case 2:return V.fn.call(V.context,S),!0;case 3:return V.fn.call(V.context,S,x),!0;case 4:return V.fn.call(V.context,S,x,T),!0;case 5:return V.fn.call(V.context,S,x,T,k),!0;case 6:return V.fn.call(V.context,S,x,T,k,C),!0}for($=1,J=new Array(G-1);$<G;$++)J[$-1]=arguments[$];V.fn.apply(V.context,J)}else{var nt=V.length,pt;for($=0;$<nt;$++)switch(V[$].once&&this.removeListener(p,V[$].fn,void 0,!0),G){case 1:V[$].fn.call(V[$].context);break;case 2:V[$].fn.call(V[$].context,S);break;case 3:V[$].fn.call(V[$].context,S,x);break;case 4:V[$].fn.call(V[$].context,S,x,T);break;default:if(!J)for(pt=1,J=new Array(G-1);pt<G;pt++)J[pt-1]=arguments[pt];V[$].fn.apply(V[$].context,J)}}return!0},d.prototype.on=function(p,S,x){return i(this,p,S,x,!1)},d.prototype.once=function(p,S,x){return i(this,p,S,x,!0)},d.prototype.removeListener=function(p,S,x,T){var k=n?n+p:p;if(!this._events[k])return this;if(!S)return c(this,k),this;var C=this._events[k];if(C.fn)C.fn===S&&(!T||C.once)&&(!x||C.context===x)&&c(this,k);else{for(var M=0,V=[],G=C.length;M<G;M++)(C[M].fn!==S||T&&!C[M].once||x&&C[M].context!==x)&&V.push(C[M]);V.length?this._events[k]=V.length===1?V[0]:V:c(this,k)}return this},d.prototype.removeAllListeners=function(p){var S;return p?(S=n?n+p:p,this._events[S]&&c(this,S)):(this._events=new e,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=n,d.EventEmitter=d,r.exports=d})(ka)),ka.exports}var Iv=Av();const bf=qi(Iv);var kv=class extends bf{socket;constructor(r,t){super(),this.socket=new window.WebSocket(r,t.protocols),this.socket.onopen=()=>this.emit("open"),this.socket.onmessage=n=>this.emit("message",n.data),this.socket.onerror=n=>this.emit("error",n),this.socket.onclose=n=>{this.emit("close",n.code,n.reason)}}send(r,t,n){const e=n||t;try{this.socket.send(r),e()}catch(o){e(o)}}close(r,t){this.socket.close(r,t)}addEventListener(r,t,n){this.socket.addEventListener(r,t,n)}};function Ov(r,t){return new kv(r,t)}var Tv=class{encode(r){return JSON.stringify(r)}decode(r){return JSON.parse(r)}},Nv=class extends bf{address;rpc_id;queue;options;autoconnect;ready;reconnect;reconnect_timer_id;reconnect_interval;max_reconnects;rest_options;current_reconnects;generate_request_id;socket;webSocketFactory;dataPack;constructor(r,t="ws://localhost:8080",{autoconnect:n=!0,reconnect:e=!0,reconnect_interval:o=1e3,max_reconnects:i=5,...c}={},d,f){super(),this.webSocketFactory=r,this.queue={},this.rpc_id=0,this.address=t,this.autoconnect=n,this.ready=!1,this.reconnect=e,this.reconnect_timer_id=void 0,this.reconnect_interval=o,this.max_reconnects=i,this.rest_options=c,this.current_reconnects=0,this.generate_request_id=d||(()=>typeof this.rpc_id=="number"?++this.rpc_id:Number(this.rpc_id)+1),f?this.dataPack=f:this.dataPack=new Tv,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(r,t,n,e){return!e&&typeof n=="object"&&(e=n,n=null),new Promise((o,i)=>{if(!this.ready)return i(new Error("socket not ready"));const c=this.generate_request_id(r,t),d={jsonrpc:"2.0",method:r,params:t||void 0,id:c};this.socket.send(this.dataPack.encode(d),e,f=>{if(f)return i(f);this.queue[c]={promise:[o,i]},n&&(this.queue[c].timeout=setTimeout(()=>{delete this.queue[c],i(new Error("reply timeout"))},n))})})}async login(r){const t=await this.call("rpc.login",r);if(!t)throw new Error("authentication failed");return t}async listMethods(){return await this.call("__listMethods")}notify(r,t){return new Promise((n,e)=>{if(!this.ready)return e(new Error("socket not ready"));const o={jsonrpc:"2.0",method:r,params:t};this.socket.send(this.dataPack.encode(o),i=>{if(i)return e(i);n()})})}async subscribe(r){typeof r=="string"&&(r=[r]);const t=await this.call("rpc.on",r);if(typeof r=="string"&&t[r]!=="ok")throw new Error("Failed subscribing to an event '"+r+"' with: "+t[r]);return t}async unsubscribe(r){typeof r=="string"&&(r=[r]);const t=await this.call("rpc.off",r);if(typeof r=="string"&&t[r]!=="ok")throw new Error("Failed unsubscribing from an event with: "+t);return t}close(r,t){this.socket&&this.socket.close(r||1e3,t)}setAutoReconnect(r){this.reconnect=r}setReconnectInterval(r){this.reconnect_interval=r}setMaxReconnects(r){this.max_reconnects=r}getCurrentReconnects(){return this.current_reconnects}getMaxReconnects(){return this.max_reconnects}isReconnecting(){return this.reconnect_timer_id!==void 0}willReconnect(){return this.reconnect&&(this.max_reconnects===0||this.current_reconnects<this.max_reconnects)}_connect(r,t){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(r,t),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:n})=>{n instanceof ArrayBuffer&&(n=ge.Buffer.from(n).toString());try{n=this.dataPack.decode(n)}catch{return}if(n.notification&&this.listeners(n.notification).length){if(!Object.keys(n.params).length)return this.emit(n.notification);const e=[n.notification];if(n.params.constructor===Object)e.push(n.params);else for(let o=0;o<n.params.length;o++)e.push(n.params[o]);return Promise.resolve().then(()=>{this.emit.apply(this,e)})}if(!this.queue[n.id])return n.method?Promise.resolve().then(()=>{this.emit(n.method,n?.params)}):void 0;"error"in n=="result"in n&&this.queue[n.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[n.id].timeout&&clearTimeout(this.queue[n.id].timeout),n.error?this.queue[n.id].promise[1](n.error):this.queue[n.id].promise[0](n.result),delete this.queue[n.id]}),this.socket.addEventListener("error",n=>this.emit("error",n)),this.socket.addEventListener("close",({code:n,reason:e})=>{this.ready&&setTimeout(()=>this.emit("close",n,e),0),this.ready=!1,this.socket=void 0,n!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)?this.reconnect_timer_id=setTimeout(()=>this._connect(r,t),this.reconnect_interval):this.reconnect&&this.max_reconnects>0&&this.current_reconnects>=this.max_reconnects&&setTimeout(()=>this.emit("max_reconnects_reached",n,e),1))})}};const xv=BigInt(0),io=BigInt(1),Cv=BigInt(2),Lv=BigInt(7),Bv=BigInt(256),Pv=BigInt(113),_f=[],Ef=[],Rf=[];for(let r=0,t=io,n=1,e=0;r<24;r++){[n,e]=[e,(2*n+3*e)%5],_f.push(2*(5*e+n)),Ef.push((r+1)*(r+2)/2%64);let o=xv;for(let i=0;i<7;i++)t=(t<<io^(t>>Lv)*Pv)%Bv,t&Cv&&(o^=io<<(io<<BigInt(i))-io);Rf.push(o)}const Sf=su(Rf,!0),Mv=Sf[0],Uv=Sf[1],Af=(r,t,n)=>n>32?Rh(r,t,n):_h(r,t,n),If=(r,t,n)=>n>32?Sh(r,t,n):Eh(r,t,n);function Dv(r,t=24){const n=new Uint32Array(10);for(let e=24-t;e<24;e++){for(let c=0;c<10;c++)n[c]=r[c]^r[c+10]^r[c+20]^r[c+30]^r[c+40];for(let c=0;c<10;c+=2){const d=(c+8)%10,f=(c+2)%10,p=n[f],S=n[f+1],x=Af(p,S,1)^n[d],T=If(p,S,1)^n[d+1];for(let k=0;k<50;k+=10)r[c+k]^=x,r[c+k+1]^=T}let o=r[2],i=r[3];for(let c=0;c<24;c++){const d=Ef[c],f=Af(o,i,d),p=If(o,i,d),S=_f[c];o=r[S],i=r[S+1],r[S]=f,r[S+1]=p}for(let c=0;c<50;c+=10){for(let d=0;d<10;d++)n[d]=r[c+d];for(let d=0;d<10;d++)r[c+d]^=~n[(d+2)%10]&n[(d+4)%10]}r[0]^=Mv[e],r[1]^=Uv[e]}Lr(n)}class Oa extends $s{constructor(t,n,e,o=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=e,this.enableXOF=o,this.rounds=i,Xi(e),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=lh(this.state)}clone(){return this._cloneInto()}keccak(){eu(this.state32),Dv(this.state32,this.rounds),eu(this.state32),this.posOut=0,this.pos=0}update(t){wi(this),t=zo(t),br(t);const{blockLen:n,state:e}=this,o=t.length;for(let i=0;i<o;){const c=Math.min(n-this.pos,o-i);for(let d=0;d<c;d++)e[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:e,blockLen:o}=this;t[e]^=n,(n&128)!==0&&e===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){wi(this,!1),br(t),this.finish();const n=this.state,{blockLen:e}=this;for(let o=0,i=t.length;o<i;){this.posOut>=e&&this.keccak();const c=Math.min(e-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+c),o),this.posOut+=c,o+=c}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Xi(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(tu(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Lr(this.state)}_cloneInto(t){const{blockLen:n,suffix:e,outputLen:o,rounds:i,enableXOF:c}=this;return t||(t=new Oa(n,e,o,c,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=e,t.outputLen=o,t.enableXOF=c,t.destroyed=this.destroyed,t}}const Fv=(r,t,n)=>Xs(()=>new Oa(t,r,n)),kf=Fv(1,136,256/8);class Of extends $s{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Qc(t);const e=zo(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(e.length>o?t.create().update(e).digest():e);for(let c=0;c<i.length;c++)i[c]^=54;this.iHash.update(i),this.oHash=t.create();for(let c=0;c<i.length;c++)i[c]^=106;this.oHash.update(i),Lr(i)}update(t){return wi(this),this.iHash.update(t),this}digestInto(t){wi(this),br(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:e,finished:o,destroyed:i,blockLen:c,outputLen:d}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=c,t.outputLen=d,t.oHash=n._cloneInto(t.oHash),t.iHash=e._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Tf=(r,t,n)=>new Of(r,t).update(n).digest();Tf.create=(r,t)=>new Of(r,t);const Nf=(r,t)=>(r+(r>=0?t:-t)/xf)/t;function Vv(r,t,n){const[[e,o],[i,c]]=t,d=Nf(c*r,n),f=Nf(-o*r,n);let p=r-d*e-f*i,S=-d*o-f*c;const x=p<Ir,T=S<Ir;x&&(p=-p),T&&(S=-S);const k=Qi(Math.ceil(pu(n)/2))+Oi;if(p<Ir||p>=k||S<Ir||S>=k)throw new Error("splitScalar (endomorphism): failed, k="+r);return{k1neg:x,k1:p,k2neg:T,k2:S}}function Ta(r){if(!["compact","recovered","der"].includes(r))throw new Error('Signature format must be "compact", "recovered", or "der"');return r}function Na(r,t){const n={};for(let e of Object.keys(t))n[e]=r[e]===void 0?t[e]:r[e];return Qr(n.lowS,"lowS"),Qr(n.prehash,"prehash"),n.format!==void 0&&Ta(n.format),n}class Hv extends Error{constructor(t=""){super(t)}}const Ar={Err:Hv,_tlv:{encode:(r,t)=>{const{Err:n}=Ar;if(r<0||r>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const e=t.length/2,o=Yo(e);if(o.length/2&128)throw new n("tlv.encode: long form length too big");const i=e>127?Yo(o.length/2|128):"";return Yo(r)+i+o+t},decode(r,t){const{Err:n}=Ar;let e=0;if(r<0||r>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[e++]!==r)throw new n("tlv.decode: wrong tlv");const o=t[e++],i=!!(o&128);let c=0;if(!i)c=o;else{const f=o&127;if(!f)throw new n("tlv.decode(long): indefinite length not supported");if(f>4)throw new n("tlv.decode(long): byte length is too big");const p=t.subarray(e,e+f);if(p.length!==f)throw new n("tlv.decode: length bytes not complete");if(p[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const S of p)c=c<<8|S;if(e+=f,c<128)throw new n("tlv.decode(long): not minimal encoding")}const d=t.subarray(e,e+c);if(d.length!==c)throw new n("tlv.decode: wrong value length");return{v:d,l:t.subarray(e+c)}}},_int:{encode(r){const{Err:t}=Ar;if(r<Ir)throw new t("integer: negative integers are not allowed");let n=Yo(r);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(r){const{Err:t}=Ar;if(r[0]&128)throw new t("invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return qo(r)}},toSig(r){const{Err:t,_int:n,_tlv:e}=Ar,o=on("signature",r),{v:i,l:c}=e.decode(48,o);if(c.length)throw new t("invalid signature: left bytes after parsing");const{v:d,l:f}=e.decode(2,i),{v:p,l:S}=e.decode(2,f);if(S.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(d),s:n.decode(p)}},hexFromSig(r){const{_tlv:t,_int:n}=Ar,e=t.encode(2,n.encode(r.r)),o=t.encode(2,n.encode(r.s)),i=e+o;return t.encode(48,i)}},Ir=BigInt(0),Oi=BigInt(1),xf=BigInt(2),us=BigInt(3),Wv=BigInt(4);function Ti(r,t){const{BYTES:n}=r;let e;if(typeof t=="bigint")e=t;else{let o=on("private key",t);try{e=r.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!r.isValidNot0(e))throw new Error("invalid private key: out of range [1..N-1]");return e}function zv(r,t={}){const n=Pu("weierstrass",r,t),{Fp:e,Fn:o}=n;let i=n.CURVE;const{h:c,n:d}=i;to(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:f}=t;if(f&&(!e.is0(i.a)||typeof f.beta!="bigint"||!Array.isArray(f.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const p=Lf(e,o);function S(){if(!e.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function x(wt,D,h){const{x:I,y:U}=D.toAffine(),j=e.toBytes(I);if(Qr(h,"isCompressed"),h){S();const X=!e.isOdd(U);return sr(Cf(X),j)}else return sr(Uint8Array.of(4),j,e.toBytes(U))}function T(wt){Xn(wt,void 0,"Point");const{publicKey:D,publicKeyUncompressed:h}=p,I=wt.length,U=wt[0],j=wt.subarray(1);if(I===D&&(U===2||U===3)){const X=e.fromBytes(j);if(!e.isValid(X))throw new Error("bad point: is not on curve, wrong x");const et=M(X);let ut;try{ut=e.sqrt(et)}catch(E){const K=E instanceof Error?": "+E.message:"";throw new Error("bad point: is not on curve, sqrt error"+K)}S();const Y=e.isOdd(ut);return(U&1)===1!==Y&&(ut=e.neg(ut)),{x:X,y:ut}}else if(I===h&&U===4){const X=e.BYTES,et=e.fromBytes(j.subarray(0,X)),ut=e.fromBytes(j.subarray(X,X*2));if(!V(et,ut))throw new Error("bad point: is not on curve");return{x:et,y:ut}}else throw new Error(`bad point: got length ${I}, expected compressed=${D} or uncompressed=${h}`)}const k=t.toBytes||x,C=t.fromBytes||T;function M(wt){const D=e.sqr(wt),h=e.mul(D,wt);return e.add(e.add(h,e.mul(wt,i.a)),i.b)}function V(wt,D){const h=e.sqr(D),I=M(wt);return e.eql(h,I)}if(!V(i.Gx,i.Gy))throw new Error("bad curve params: generator point");const G=e.mul(e.pow(i.a,us),Wv),J=e.mul(e.sqr(i.b),BigInt(27));if(e.is0(e.add(G,J)))throw new Error("bad curve params: a or b");function $(wt,D,h=!1){if(!e.isValid(D)||h&&e.is0(D))throw new Error(`bad point coordinate ${wt}`);return D}function nt(wt){if(!(wt instanceof st))throw new Error("ProjectivePoint expected")}function pt(wt){if(!f||!f.basises)throw new Error("no endo");return Vv(wt,f.basises,o.ORDER)}const lt=Zo((wt,D)=>{const{X:h,Y:I,Z:U}=wt;if(e.eql(U,e.ONE))return{x:h,y:I};const j=wt.is0();D==null&&(D=j?e.ONE:e.inv(U));const X=e.mul(h,D),et=e.mul(I,D),ut=e.mul(U,D);if(j)return{x:e.ZERO,y:e.ZERO};if(!e.eql(ut,e.ONE))throw new Error("invZ was invalid");return{x:X,y:et}}),St=Zo(wt=>{if(wt.is0()){if(t.allowInfinityPoint&&!e.is0(wt.Y))return;throw new Error("bad point: ZERO")}const{x:D,y:h}=wt.toAffine();if(!e.isValid(D)||!e.isValid(h))throw new Error("bad point: x or y not field elements");if(!V(D,h))throw new Error("bad point: equation left != right");if(!wt.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function At(wt,D,h,I,U){return h=new st(e.mul(h.X,wt),h.Y,h.Z),D=$o(I,D),h=$o(U,h),D.add(h)}class st{constructor(D,h,I){this.X=$("x",D),this.Y=$("y",h,!0),this.Z=$("z",I),Object.freeze(this)}static CURVE(){return i}static fromAffine(D){const{x:h,y:I}=D||{};if(!D||!e.isValid(h)||!e.isValid(I))throw new Error("invalid affine point");if(D instanceof st)throw new Error("projective point not allowed");return e.is0(h)&&e.is0(I)?st.ZERO:new st(h,I,e.ONE)}static fromBytes(D){const h=st.fromAffine(C(Xn(D,void 0,"point")));return h.assertValidity(),h}static fromHex(D){return st.fromBytes(on("pointHex",D))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(D=8,h=!0){return vt.createCache(this,D),h||this.multiply(us),this}assertValidity(){St(this)}hasEvenY(){const{y:D}=this.toAffine();if(!e.isOdd)throw new Error("Field doesn't support isOdd");return!e.isOdd(D)}equals(D){nt(D);const{X:h,Y:I,Z:U}=this,{X:j,Y:X,Z:et}=D,ut=e.eql(e.mul(h,et),e.mul(j,U)),Y=e.eql(e.mul(I,et),e.mul(X,U));return ut&&Y}negate(){return new st(this.X,e.neg(this.Y),this.Z)}double(){const{a:D,b:h}=i,I=e.mul(h,us),{X:U,Y:j,Z:X}=this;let et=e.ZERO,ut=e.ZERO,Y=e.ZERO,g=e.mul(U,U),E=e.mul(j,j),K=e.mul(X,X),Z=e.mul(U,j);return Z=e.add(Z,Z),Y=e.mul(U,X),Y=e.add(Y,Y),et=e.mul(D,Y),ut=e.mul(I,K),ut=e.add(et,ut),et=e.sub(E,ut),ut=e.add(E,ut),ut=e.mul(et,ut),et=e.mul(Z,et),Y=e.mul(I,Y),K=e.mul(D,K),Z=e.sub(g,K),Z=e.mul(D,Z),Z=e.add(Z,Y),Y=e.add(g,g),g=e.add(Y,g),g=e.add(g,K),g=e.mul(g,Z),ut=e.add(ut,g),K=e.mul(j,X),K=e.add(K,K),g=e.mul(K,Z),et=e.sub(et,g),Y=e.mul(K,E),Y=e.add(Y,Y),Y=e.add(Y,Y),new st(et,ut,Y)}add(D){nt(D);const{X:h,Y:I,Z:U}=this,{X:j,Y:X,Z:et}=D;let ut=e.ZERO,Y=e.ZERO,g=e.ZERO;const E=i.a,K=e.mul(i.b,us);let Z=e.mul(h,j),ht=e.mul(I,X),It=e.mul(U,et),Ft=e.add(h,I),Kt=e.add(j,X);Ft=e.mul(Ft,Kt),Kt=e.add(Z,ht),Ft=e.sub(Ft,Kt),Kt=e.add(h,U);let me=e.add(j,et);return Kt=e.mul(Kt,me),me=e.add(Z,It),Kt=e.sub(Kt,me),me=e.add(I,U),ut=e.add(X,et),me=e.mul(me,ut),ut=e.add(ht,It),me=e.sub(me,ut),g=e.mul(E,Kt),ut=e.mul(K,It),g=e.add(ut,g),ut=e.sub(ht,g),g=e.add(ht,g),Y=e.mul(ut,g),ht=e.add(Z,Z),ht=e.add(ht,Z),It=e.mul(E,It),Kt=e.mul(K,Kt),ht=e.add(ht,It),It=e.sub(Z,It),It=e.mul(E,It),Kt=e.add(Kt,It),Z=e.mul(ht,Kt),Y=e.add(Y,Z),Z=e.mul(me,Kt),ut=e.mul(Ft,ut),ut=e.sub(ut,Z),Z=e.mul(Ft,ht),g=e.mul(me,g),g=e.add(g,Z),new st(ut,Y,g)}subtract(D){return this.add(D.negate())}is0(){return this.equals(st.ZERO)}multiply(D){const{endo:h}=t;if(!o.isValidNot0(D))throw new Error("invalid scalar: out of range");let I,U;const j=X=>vt.cached(this,X,et=>ri(st,et));if(h){const{k1neg:X,k1:et,k2neg:ut,k2:Y}=pt(D),{p:g,f:E}=j(et),{p:K,f:Z}=j(Y);U=E.add(Z),I=At(h.beta,g,K,X,ut)}else{const{p:X,f:et}=j(D);I=X,U=et}return ri(st,[I,U])[0]}multiplyUnsafe(D){const{endo:h}=t,I=this;if(!o.isValid(D))throw new Error("invalid scalar: out of range");if(D===Ir||I.is0())return st.ZERO;if(D===Oi)return I;if(vt.hasCache(this))return this.multiply(D);if(h){const{k1neg:U,k1:j,k2neg:X,k2:et}=pt(D),{p1:ut,p2:Y}=Xh(st,I,j,et);return At(h.beta,ut,Y,U,X)}else return vt.unsafe(I,D)}multiplyAndAddUnsafe(D,h,I){const U=this.multiplyUnsafe(h).add(D.multiplyUnsafe(I));return U.is0()?void 0:U}toAffine(D){return lt(this,D)}isTorsionFree(){const{isTorsionFree:D}=t;return c===Oi?!0:D?D(st,this):vt.unsafe(this,d).is0()}clearCofactor(){const{clearCofactor:D}=t;return c===Oi?this:D?D(st,this):this.multiplyUnsafe(c)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}toBytes(D=!0){return Qr(D,"isCompressed"),this.assertValidity(),k(st,this,D)}toHex(D=!0){return Jr(this.toBytes(D))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(D=!0){return this.toBytes(D)}_setWindowSize(D){this.precompute(D)}static normalizeZ(D){return ri(st,D)}static msm(D,h){return Lu(st,o,D,h)}static fromPrivateKey(D){return st.BASE.multiply(Ti(o,D))}}st.BASE=new st(i.Gx,i.Gy,e.ONE),st.ZERO=new st(e.ZERO,e.ONE,e.ZERO),st.Fp=e,st.Fn=o;const dt=o.BITS,vt=new Cu(st,t.endo?Math.ceil(dt/2):dt);return st.BASE.precompute(8),st}function Cf(r){return Uint8Array.of(r?2:3)}function Lf(r,t){return{secretKey:t.BYTES,publicKey:1+r.BYTES,publicKeyUncompressed:1+2*r.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Gv(r,t={}){const{Fn:n}=r,e=t.randomBytes||Js,o=Object.assign(Lf(r.Fp,n),{seed:ku(n.ORDER)});function i(k){try{return!!Ti(n,k)}catch{return!1}}function c(k,C){const{publicKey:M,publicKeyUncompressed:V}=o;try{const G=k.length;return C===!0&&G!==M||C===!1&&G!==V?!1:!!r.fromBytes(k)}catch{return!1}}function d(k=e(o.seed)){return qh(Xn(k,o.seed,"seed"),n.ORDER)}function f(k,C=!0){return r.BASE.multiply(Ti(n,k)).toBytes(C)}function p(k){const C=d(k);return{secretKey:C,publicKey:f(C)}}function S(k){if(typeof k=="bigint")return!1;if(k instanceof r)return!0;const{secretKey:C,publicKey:M,publicKeyUncompressed:V}=o;if(n.allowedLengths||C===M)return;const G=on("key",k).length;return G===M||G===V}function x(k,C,M=!0){if(S(k)===!0)throw new Error("first arg must be private key");if(S(C)===!1)throw new Error("second arg must be public key");const V=Ti(n,k);return r.fromHex(C).multiply(V).toBytes(M)}return Object.freeze({getPublicKey:f,getSharedSecret:x,keygen:p,Point:r,utils:{isValidSecretKey:i,isValidPublicKey:c,randomSecretKey:d,isValidPrivateKey:i,randomPrivateKey:d,normPrivateKeyToScalar:k=>Ti(n,k),precompute(k=8,C=r.BASE){return C.precompute(k,!1)}},lengths:o})}function Kv(r,t,n={}){Qc(t),to(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const e=n.randomBytes||Js,o=n.hmac||((h,...I)=>Tf(t,h,sr(...I))),{Fp:i,Fn:c}=r,{ORDER:d,BITS:f}=c,{keygen:p,getPublicKey:S,getSharedSecret:x,utils:T,lengths:k}=Gv(r,n),C={prehash:!1,lowS:typeof n.lowS=="boolean"?n.lowS:!1,format:void 0,extraEntropy:!1},M="compact";function V(h){const I=d>>Oi;return h>I}function G(h,I){if(!c.isValidNot0(I))throw new Error(`invalid signature ${h}: out of range 1..Point.Fn.ORDER`);return I}function J(h,I){Ta(I);const U=k.signature,j=I==="compact"?U:I==="recovered"?U+1:void 0;return Xn(h,j,`${I} signature`)}class ${constructor(I,U,j){this.r=G("r",I),this.s=G("s",U),j!=null&&(this.recovery=j),Object.freeze(this)}static fromBytes(I,U=M){J(I,U);let j;if(U==="der"){const{r:Y,s:g}=Ar.toSig(Xn(I));return new $(Y,g)}U==="recovered"&&(j=I[0],U="compact",I=I.subarray(1));const X=c.BYTES,et=I.subarray(0,X),ut=I.subarray(X,X*2);return new $(c.fromBytes(et),c.fromBytes(ut),j)}static fromHex(I,U){return this.fromBytes(Wo(I),U)}addRecoveryBit(I){return new $(this.r,this.s,I)}recoverPublicKey(I){const U=i.ORDER,{r:j,s:X,recovery:et}=this;if(et==null||![0,1,2,3].includes(et))throw new Error("recovery id invalid");if(d*xf<U&&et>1)throw new Error("recovery id is ambiguous for h>1 curve");const Y=et===2||et===3?j+d:j;if(!i.isValid(Y))throw new Error("recovery id 2 or 3 invalid");const g=i.toBytes(Y),E=r.fromBytes(sr(Cf((et&1)===0),g)),K=c.inv(Y),Z=pt(on("msgHash",I)),ht=c.create(-Z*K),It=c.create(X*K),Ft=r.BASE.multiplyUnsafe(ht).add(E.multiplyUnsafe(It));if(Ft.is0())throw new Error("point at infinify");return Ft.assertValidity(),Ft}hasHighS(){return V(this.s)}toBytes(I=M){if(Ta(I),I==="der")return Wo(Ar.hexFromSig(this));const U=c.toBytes(this.r),j=c.toBytes(this.s);if(I==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return sr(Uint8Array.of(this.recovery),U,j)}return sr(U,j)}toHex(I){return Jr(this.toBytes(I))}assertValidity(){}static fromCompact(I){return $.fromBytes(on("sig",I),"compact")}static fromDER(I){return $.fromBytes(on("sig",I),"der")}normalizeS(){return this.hasHighS()?new $(this.r,c.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Jr(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Jr(this.toBytes("compact"))}}const nt=n.bits2int||function(I){if(I.length>8192)throw new Error("input is too large");const U=qo(I),j=I.length*8-f;return j>0?U>>BigInt(j):U},pt=n.bits2int_modN||function(I){return c.create(nt(I))},lt=Qi(f);function St(h){return ra("num < 2^"+f,h,Ir,lt),c.toBytes(h)}function At(h,I){return Xn(h,void 0,"message"),I?Xn(t(h),void 0,"prehashed message"):h}function st(h,I,U){if(["recovered","canonical"].some(ht=>ht in U))throw new Error("sign() legacy options not supported");const{lowS:j,prehash:X,extraEntropy:et}=Na(U,C);h=At(h,X);const ut=pt(h),Y=Ti(c,I),g=[St(Y),St(ut)];if(et!=null&&et!==!1){const ht=et===!0?e(k.secretKey):et;g.push(on("extraEntropy",ht))}const E=sr(...g),K=ut;function Z(ht){const It=nt(ht);if(!c.isValidNot0(It))return;const Ft=c.inv(It),Kt=r.BASE.multiply(It).toAffine(),me=c.create(Kt.x);if(me===Ir)return;const Ee=c.create(Ft*c.create(K+me*Y));if(Ee===Ir)return;let jt=(Kt.x===me?0:2)|Number(Kt.y&Oi),Ne=Ee;return j&&V(Ee)&&(Ne=c.neg(Ee),jt^=1),new $(me,Ne,jt)}return{seed:E,k2sig:Z}}function dt(h,I,U={}){h=on("message",h);const{seed:j,k2sig:X}=st(h,I,U);return Dh(t.outputLen,c.BYTES,o)(j,X)}function vt(h){let I;const U=typeof h=="string"||$i(h),j=!U&&h!==null&&typeof h=="object"&&typeof h.r=="bigint"&&typeof h.s=="bigint";if(!U&&!j)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(j)I=new $(h.r,h.s);else if(U){try{I=$.fromBytes(on("sig",h),"der")}catch(X){if(!(X instanceof Ar.Err))throw X}if(!I)try{I=$.fromBytes(on("sig",h),"compact")}catch{return!1}}return I||!1}function wt(h,I,U,j={}){const{lowS:X,prehash:et,format:ut}=Na(j,C);if(U=on("publicKey",U),I=At(on("message",I),et),"strict"in j)throw new Error("options.strict was renamed to lowS");const Y=ut===void 0?vt(h):$.fromBytes(on("sig",h),ut);if(Y===!1)return!1;try{const g=r.fromBytes(U);if(X&&Y.hasHighS())return!1;const{r:E,s:K}=Y,Z=pt(I),ht=c.inv(K),It=c.create(Z*ht),Ft=c.create(E*ht),Kt=r.BASE.multiplyUnsafe(It).add(g.multiplyUnsafe(Ft));return Kt.is0()?!1:c.create(Kt.x)===E}catch{return!1}}function D(h,I,U={}){const{prehash:j}=Na(U,C);return I=At(I,j),$.fromBytes(h,"recovered").recoverPublicKey(I).toBytes()}return Object.freeze({keygen:p,getPublicKey:S,getSharedSecret:x,utils:T,lengths:k,Point:r,sign:dt,verify:wt,recoverPublicKey:D,Signature:$,hash:t})}function jv(r){const t={a:r.a,b:r.b,p:r.Fp.ORDER,n:r.n,h:r.h,Gx:r.Gx,Gy:r.Gy},n=r.Fp;let e=r.allowedPrivateKeyLengths?Array.from(new Set(r.allowedPrivateKeyLengths.map(c=>Math.ceil(c/2)))):void 0;const o=ei(t.n,{BITS:r.nBitLength,allowedLengths:e,modFromBytes:r.wrapPrivateKey}),i={Fp:n,Fn:o,allowInfinityPoint:r.allowInfinityPoint,endo:r.endo,isTorsionFree:r.isTorsionFree,clearCofactor:r.clearCofactor,fromBytes:r.fromBytes,toBytes:r.toBytes};return{CURVE:t,curveOpts:i}}function Yv(r){const{CURVE:t,curveOpts:n}=jv(r),e={hmac:r.hmac,randomBytes:r.randomBytes,lowS:r.lowS,bits2int:r.bits2int,bits2int_modN:r.bits2int_modN};return{CURVE:t,curveOpts:n,hash:r.hash,ecdsaOpts:e}}function qv(r,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},r,Au(n.Fn.ORDER,n.Fn.BITS))})}function Zv(r){const{CURVE:t,curveOpts:n,hash:e,ecdsaOpts:o}=Yv(r),i=zv(t,n),c=Kv(i,e,o);return qv(r,c)}function $v(r,t){const n=e=>Zv({...r,hash:e});return{...n(t),create:n}}const xa={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},Xv={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Bf=BigInt(2);function Jv(r){const t=xa.p,n=BigInt(3),e=BigInt(6),o=BigInt(11),i=BigInt(22),c=BigInt(23),d=BigInt(44),f=BigInt(88),p=r*r*r%t,S=p*p*r%t,x=sn(S,n,t)*S%t,T=sn(x,n,t)*S%t,k=sn(T,Bf,t)*p%t,C=sn(k,o,t)*k%t,M=sn(C,i,t)*C%t,V=sn(M,d,t)*M%t,G=sn(V,f,t)*V%t,J=sn(G,d,t)*M%t,$=sn(J,n,t)*S%t,nt=sn($,c,t)*C%t,pt=sn(nt,e,t)*p%t,lt=sn(pt,Bf,t);if(!Ca.eql(Ca.sqr(lt),r))throw new Error("Cannot find square root");return lt}const Ca=ei(xa.p,{sqrt:Jv}),La=$v({...xa,Fp:Ca,lowS:!0,endo:Xv},fu),Qv=Ri.utils.randomPrivateKey,Pf=()=>{const r=Ri.utils.randomPrivateKey(),t=fs(r),n=new Uint8Array(64);return n.set(r),n.set(t,32),{publicKey:t,secretKey:n}},fs=Ri.getPublicKey;function Mf(r){try{return Ri.ExtendedPoint.fromHex(r),!0}catch{return!1}}const Ba=(r,t)=>Ri.sign(r,t.slice(0,32)),ty=Ri.verify,Re=r=>ge.Buffer.isBuffer(r)?r:r instanceof Uint8Array?ge.Buffer.from(r.buffer,r.byteOffset,r.byteLength):ge.Buffer.from(r);class Pa{constructor(t){Object.assign(this,t)}encode(){return ge.Buffer.from(ma.serialize(oo,this))}static decode(t){return ma.deserialize(oo,this,t)}static decodeUnchecked(t){return ma.deserializeUnchecked(oo,this,t)}}class ey extends Pa{constructor(t){if(super(t),this.enum="",Object.keys(t).length!==1)throw new Error("Enum can only take single value");Object.keys(t).map(n=>{this.enum=n})}}const oo=new Map;var Uf;const Df=32,fr=32;function ny(r){return r._bn!==void 0}let Ff=1;class Jt extends Pa{constructor(t){if(super({}),this._bn=void 0,ny(t))this._bn=t._bn;else{if(typeof t=="string"){const n=On.decode(t);if(n.length!=fr)throw new Error("Invalid public key input");this._bn=new Hu(n)}else this._bn=new Hu(t);if(this._bn.byteLength()>fr)throw new Error("Invalid public key input")}}static unique(){const t=new Jt(Ff);return Ff+=1,new Jt(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return On.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(ge.Buffer);if(t.length===fr)return t;const n=ge.Buffer.alloc(32);return t.copy(n,32-t.length),n}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,n,e){const o=ge.Buffer.concat([t.toBuffer(),ge.Buffer.from(n),e.toBuffer()]),i=ju(o);return new Jt(i)}static createProgramAddressSync(t,n){let e=ge.Buffer.alloc(0);t.forEach(function(i){if(i.length>Df)throw new TypeError("Max seed length exceeded");e=ge.Buffer.concat([e,Re(i)])}),e=ge.Buffer.concat([e,n.toBuffer(),ge.Buffer.from("ProgramDerivedAddress")]);const o=ju(e);if(Mf(o))throw new Error("Invalid seeds, address must fall off the curve");return new Jt(o)}static async createProgramAddress(t,n){return this.createProgramAddressSync(t,n)}static findProgramAddressSync(t,n){let e=255,o;for(;e!=0;){try{const i=t.concat(ge.Buffer.from([e]));o=this.createProgramAddressSync(i,n)}catch(i){if(i instanceof TypeError)throw i;e--;continue}return[o,e]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,n){return this.findProgramAddressSync(t,n)}static isOnCurve(t){const n=new Jt(t);return Mf(n.toBytes())}}Uf=Jt,Jt.default=new Uf("11111111111111111111111111111111"),oo.set(Jt,{kind:"struct",fields:[["_bn","u256"]]});class ry{constructor(t){if(this._publicKey=void 0,this._secretKey=void 0,t){const n=Re(t);if(t.length!==64)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=Re(Qv()),this._publicKey=Re(fs(this._secretKey))}get publicKey(){return new Jt(this._publicKey)}get secretKey(){return ge.Buffer.concat([this._secretKey,this._publicKey],64)}}const iy=new Jt("BPFLoader1111111111111111111111111111111111"),Vr=1232,ls=127,so=64;class Ma extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Ma.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class Ua extends Error{constructor(t,n){super(`Transaction was not confirmed in ${n.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Ua.prototype,"name",{value:"TransactionExpiredTimeoutError"});class Ni extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Ni.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class ao{constructor(t,n){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const n of this.keySegments()){if(t<n.length)return n[t];t-=n.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const e=new Map;this.keySegments().flat().forEach((i,c)=>{e.set(i.toBase58(),c)});const o=i=>{const c=e.get(i.toBase58());if(c===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return c};return t.map(i=>({programIdIndex:o(i.programId),accountKeyIndexes:i.keys.map(c=>o(c.pubkey)),data:i.data}))}}const ke=(r="publicKey")=>at.blob(32,r),oy=(r="signature")=>at.blob(64,r),oi=(r="string")=>{const t=at.struct([at.u32("length"),at.u32("lengthPadding"),at.blob(at.offset(at.u32(),-8),"chars")],r),n=t.decode.bind(t),e=t.encode.bind(t),o=t;return o.decode=(i,c)=>n(i,c).chars.toString(),o.encode=(i,c,d)=>{const f={chars:ge.Buffer.from(i,"utf8")};return e(f,c,d)},o.alloc=i=>at.u32().span+at.u32().span+ge.Buffer.from(i,"utf8").length,o},sy=(r="authorized")=>at.struct([ke("staker"),ke("withdrawer")],r),ay=(r="lockup")=>at.struct([at.ns64("unixTimestamp"),at.ns64("epoch"),ke("custodian")],r),cy=(r="voteInit")=>at.struct([ke("nodePubkey"),ke("authorizedVoter"),ke("authorizedWithdrawer"),at.u8("commission")],r),uy=(r="voteAuthorizeWithSeedArgs")=>at.struct([at.u32("voteAuthorizationType"),ke("currentAuthorityDerivedKeyOwnerPubkey"),oi("currentAuthorityDerivedKeySeed"),ke("newAuthorized")],r);function Vf(r,t){const n=o=>{if(o.span>=0)return o.span;if(typeof o.alloc=="function")return o.alloc(t[o.property]);if("count"in o&&"elementLayout"in o){const i=t[o.property];if(Array.isArray(i))return i.length*n(o.elementLayout)}else if("fields"in o)return Vf({layout:o},t[o.property]);return 0};let e=0;return r.layout.fields.forEach(o=>{e+=n(o)}),e}function Hn(r){let t=0,n=0;for(;;){let e=r.shift();if(t|=(e&127)<<n*7,n+=1,(e&128)===0)break}return t}function Kn(r,t){let n=t;for(;;){let e=n&127;if(n>>=7,n==0){r.push(e);break}else e|=128,r.push(e)}}function Me(r,t){if(!r)throw new Error(t||"Assertion failed")}class ds{constructor(t,n){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}static compile(t,n){const e=new Map,o=c=>{const d=c.toBase58();let f=e.get(d);return f===void 0&&(f={isSigner:!1,isWritable:!1,isInvoked:!1},e.set(d,f)),f},i=o(n);i.isSigner=!0,i.isWritable=!0;for(const c of t){o(c.programId).isInvoked=!0;for(const d of c.keys){const f=o(d.pubkey);f.isSigner||=d.isSigner,f.isWritable||=d.isWritable}}return new ds(n,e)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];Me(t.length<=256,"Max static account keys length exceeded");const n=t.filter(([,f])=>f.isSigner&&f.isWritable),e=t.filter(([,f])=>f.isSigner&&!f.isWritable),o=t.filter(([,f])=>!f.isSigner&&f.isWritable),i=t.filter(([,f])=>!f.isSigner&&!f.isWritable),c={numRequiredSignatures:n.length+e.length,numReadonlySignedAccounts:e.length,numReadonlyUnsignedAccounts:i.length};{Me(n.length>0,"Expected at least one writable signer key");const[f]=n[0];Me(f===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const d=[...n.map(([f])=>new Jt(f)),...e.map(([f])=>new Jt(f)),...o.map(([f])=>new Jt(f)),...i.map(([f])=>new Jt(f))];return[c,d]}extractTableLookup(t){const[n,e]=this.drainKeysFoundInLookupTable(t.state.addresses,c=>!c.isSigner&&!c.isInvoked&&c.isWritable),[o,i]=this.drainKeysFoundInLookupTable(t.state.addresses,c=>!c.isSigner&&!c.isInvoked&&!c.isWritable);if(!(n.length===0&&o.length===0))return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:o},{writable:e,readonly:i}]}drainKeysFoundInLookupTable(t,n){const e=new Array,o=new Array;for(const[i,c]of this.keyMetaMap.entries())if(n(c)){const d=new Jt(i),f=t.findIndex(p=>p.equals(d));f>=0&&(Me(f<256,"Max lookup table index exceeded"),e.push(f),o.push(d),this.keyMetaMap.delete(i))}return[e,o]}}const Hf="Reached end of buffer unexpectedly";function lr(r){if(r.length===0)throw new Error(Hf);return r.shift()}function Wn(r,...t){const[n]=t;if(t.length===2?n+(t[1]??0)>r.length:n>=r.length)throw new Error(Hf);return r.splice(...t)}class Qn{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(n=>new Jt(n)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(n=>this.indexToProgramIds.set(n.programIdIndex,this.accountKeys[n.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:On.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new ao(this.staticAccountKeys)}static compile(t){const n=ds.compile(t.instructions,t.payerKey),[e,o]=n.getMessageComponents(),c=new ao(o).compileInstructions(t.instructions).map(d=>({programIdIndex:d.programIdIndex,accounts:d.accountKeyIndexes,data:On.encode(d.data)}));return new Qn({header:e,accountKeys:o,recentBlockhash:t.recentBlockhash,instructions:c})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){const e=t-n,i=this.accountKeys.length-n-this.header.numReadonlyUnsignedAccounts;return e<i}else{const e=n-this.header.numReadonlySignedAccounts;return t<e}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,n)=>!this.isProgramId(n))}serialize(){const t=this.accountKeys.length;let n=[];Kn(n,t);const e=this.instructions.map(x=>{const{accounts:T,programIdIndex:k}=x,C=Array.from(On.decode(x.data));let M=[];Kn(M,T.length);let V=[];return Kn(V,C.length),{programIdIndex:k,keyIndicesCount:ge.Buffer.from(M),keyIndices:T,dataLength:ge.Buffer.from(V),data:C}});let o=[];Kn(o,e.length);let i=ge.Buffer.alloc(Vr);ge.Buffer.from(o).copy(i);let c=o.length;e.forEach(x=>{const k=at.struct([at.u8("programIdIndex"),at.blob(x.keyIndicesCount.length,"keyIndicesCount"),at.seq(at.u8("keyIndex"),x.keyIndices.length,"keyIndices"),at.blob(x.dataLength.length,"dataLength"),at.seq(at.u8("userdatum"),x.data.length,"data")]).encode(x,i,c);c+=k}),i=i.slice(0,c);const d=at.struct([at.blob(1,"numRequiredSignatures"),at.blob(1,"numReadonlySignedAccounts"),at.blob(1,"numReadonlyUnsignedAccounts"),at.blob(n.length,"keyCount"),at.seq(ke("key"),t,"keys"),ke("recentBlockhash")]),f={numRequiredSignatures:ge.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:ge.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:ge.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:ge.Buffer.from(n),keys:this.accountKeys.map(x=>Re(x.toBytes())),recentBlockhash:On.decode(this.recentBlockhash)};let p=ge.Buffer.alloc(2048);const S=d.encode(f,p);return i.copy(p,S),p.slice(0,S+i.length)}static from(t){let n=[...t];const e=lr(n);if(e!==(e&ls))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const o=lr(n),i=lr(n),c=Hn(n);let d=[];for(let T=0;T<c;T++){const k=Wn(n,0,fr);d.push(new Jt(ge.Buffer.from(k)))}const f=Wn(n,0,fr),p=Hn(n);let S=[];for(let T=0;T<p;T++){const k=lr(n),C=Hn(n),M=Wn(n,0,C),V=Hn(n),G=Wn(n,0,V),J=On.encode(ge.Buffer.from(G));S.push({programIdIndex:k,accounts:M,data:J})}const x={header:{numRequiredSignatures:e,numReadonlySignedAccounts:o,numReadonlyUnsignedAccounts:i},recentBlockhash:On.encode(ge.Buffer.from(f)),accountKeys:d,instructions:S};return new Qn(x)}}class si{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const n of this.addressTableLookups)t+=n.readonlyIndexes.length+n.writableIndexes.length;return t}getAccountKeys(t){let n;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");n=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)n=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new ao(this.staticAccountKeys,n)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures,e=this.staticAccountKeys.length;if(t>=e){const o=t-e,i=this.addressTableLookups.reduce((c,d)=>c+d.writableIndexes.length,0);return o<i}else if(t>=this.header.numRequiredSignatures){const o=t-n,c=e-n-this.header.numReadonlyUnsignedAccounts;return o<c}else{const o=n-this.header.numReadonlySignedAccounts;return t<o}}resolveAddressTableLookups(t){const n={writable:[],readonly:[]};for(const e of this.addressTableLookups){const o=t.find(i=>i.key.equals(e.accountKey));if(!o)throw new Error(`Failed to find address lookup table account for table key ${e.accountKey.toBase58()}`);for(const i of e.writableIndexes)if(i<o.state.addresses.length)n.writable.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${e.accountKey.toBase58()}`);for(const i of e.readonlyIndexes)if(i<o.state.addresses.length)n.readonly.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${e.accountKey.toBase58()}`)}return n}static compile(t){const n=ds.compile(t.instructions,t.payerKey),e=new Array,o={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(const S of i){const x=n.extractTableLookup(S);if(x!==void 0){const[T,{writable:k,readonly:C}]=x;e.push(T),o.writable.push(...k),o.readonly.push(...C)}}const[c,d]=n.getMessageComponents(),p=new ao(d,o).compileInstructions(t.instructions);return new si({header:c,staticAccountKeys:d,recentBlockhash:t.recentBlockhash,compiledInstructions:p,addressTableLookups:e})}serialize(){const t=Array();Kn(t,this.staticAccountKeys.length);const n=this.serializeInstructions(),e=Array();Kn(e,this.compiledInstructions.length);const o=this.serializeAddressTableLookups(),i=Array();Kn(i,this.addressTableLookups.length);const c=at.struct([at.u8("prefix"),at.struct([at.u8("numRequiredSignatures"),at.u8("numReadonlySignedAccounts"),at.u8("numReadonlyUnsignedAccounts")],"header"),at.blob(t.length,"staticAccountKeysLength"),at.seq(ke(),this.staticAccountKeys.length,"staticAccountKeys"),ke("recentBlockhash"),at.blob(e.length,"instructionsLength"),at.blob(n.length,"serializedInstructions"),at.blob(i.length,"addressTableLookupsLength"),at.blob(o.length,"serializedAddressTableLookups")]),d=new Uint8Array(Vr),p=c.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(S=>S.toBytes()),recentBlockhash:On.decode(this.recentBlockhash),instructionsLength:new Uint8Array(e),serializedInstructions:n,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:o},d);return d.slice(0,p)}serializeInstructions(){let t=0;const n=new Uint8Array(Vr);for(const e of this.compiledInstructions){const o=Array();Kn(o,e.accountKeyIndexes.length);const i=Array();Kn(i,e.data.length);const c=at.struct([at.u8("programIdIndex"),at.blob(o.length,"encodedAccountKeyIndexesLength"),at.seq(at.u8(),e.accountKeyIndexes.length,"accountKeyIndexes"),at.blob(i.length,"encodedDataLength"),at.blob(e.data.length,"data")]);t+=c.encode({programIdIndex:e.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(o),accountKeyIndexes:e.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:e.data},n,t)}return n.slice(0,t)}serializeAddressTableLookups(){let t=0;const n=new Uint8Array(Vr);for(const e of this.addressTableLookups){const o=Array();Kn(o,e.writableIndexes.length);const i=Array();Kn(i,e.readonlyIndexes.length);const c=at.struct([ke("accountKey"),at.blob(o.length,"encodedWritableIndexesLength"),at.seq(at.u8(),e.writableIndexes.length,"writableIndexes"),at.blob(i.length,"encodedReadonlyIndexesLength"),at.seq(at.u8(),e.readonlyIndexes.length,"readonlyIndexes")]);t+=c.encode({accountKey:e.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(o),writableIndexes:e.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:e.readonlyIndexes},n,t)}return n.slice(0,t)}static deserialize(t){let n=[...t];const e=lr(n),o=e&ls;Me(e!==o,"Expected versioned message but received legacy message");const i=o;Me(i===0,`Expected versioned message with version 0 but found version ${i}`);const c={numRequiredSignatures:lr(n),numReadonlySignedAccounts:lr(n),numReadonlyUnsignedAccounts:lr(n)},d=[],f=Hn(n);for(let C=0;C<f;C++)d.push(new Jt(Wn(n,0,fr)));const p=On.encode(Wn(n,0,fr)),S=Hn(n),x=[];for(let C=0;C<S;C++){const M=lr(n),V=Hn(n),G=Wn(n,0,V),J=Hn(n),$=new Uint8Array(Wn(n,0,J));x.push({programIdIndex:M,accountKeyIndexes:G,data:$})}const T=Hn(n),k=[];for(let C=0;C<T;C++){const M=new Jt(Wn(n,0,fr)),V=Hn(n),G=Wn(n,0,V),J=Hn(n),$=Wn(n,0,J);k.push({accountKey:M,writableIndexes:G,readonlyIndexes:$})}return new si({header:c,staticAccountKeys:d,recentBlockhash:p,compiledInstructions:x,addressTableLookups:k})}}const Da={deserializeMessageVersion(r){const t=r[0],n=t&ls;return n===t?"legacy":n},deserialize:r=>{const t=Da.deserializeMessageVersion(r);if(t==="legacy")return Qn.from(r);if(t===0)return si.deserialize(r);throw new Error(`Transaction message version ${t} deserialization is not supported`)}};let kr=(function(r){return r[r.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",r[r.PROCESSED=1]="PROCESSED",r[r.TIMED_OUT=2]="TIMED_OUT",r[r.NONCE_INVALID=3]="NONCE_INVALID",r})({});const fy=ge.Buffer.alloc(so).fill(0);class je{constructor(t){this.keys=void 0,this.programId=void 0,this.data=ge.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:n,isWritable:e})=>({pubkey:t.toJSON(),isSigner:n,isWritable:e})),programId:this.programId.toJSON(),data:[...this.data]}}}class Fe{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:n,nonceInfo:e}=t;this.minNonceContextSlot=n,this.nonceInfo=e}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:n,lastValidBlockHeight:e}=t;this.recentBlockhash=n,this.lastValidBlockHeight=e}else{const{recentBlockhash:n,nonceInfo:e}=t;e&&(this.nonceInfo=e),this.recentBlockhash=n}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error("No instructions");return t.forEach(n=>{"instructions"in n?this.instructions=this.instructions.concat(n.instructions):"data"in n&&"programId"in n&&"keys"in n?this.instructions.push(n):this.instructions.push(new je(n))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?n=[this.nonceInfo.nonceInstruction,...this.instructions]:n=this.instructions):(t=this.recentBlockhash,n=this.instructions),!t)throw new Error("Transaction recentBlockhash required");n.length<1&&console.warn("No instructions provided");let e;if(this.feePayer)e=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)e=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let M=0;M<n.length;M++)if(n[M].programId===void 0)throw new Error(`Transaction instruction index ${M} has undefined program id`);const o=[],i=[];n.forEach(M=>{M.keys.forEach(G=>{i.push({...G})});const V=M.programId.toString();o.includes(V)||o.push(V)}),o.forEach(M=>{i.push({pubkey:new Jt(M),isSigner:!1,isWritable:!1})});const c=[];i.forEach(M=>{const V=M.pubkey.toString(),G=c.findIndex(J=>J.pubkey.toString()===V);G>-1?(c[G].isWritable=c[G].isWritable||M.isWritable,c[G].isSigner=c[G].isSigner||M.isSigner):c.push(M)}),c.sort(function(M,V){if(M.isSigner!==V.isSigner)return M.isSigner?-1:1;if(M.isWritable!==V.isWritable)return M.isWritable?-1:1;const G={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return M.pubkey.toBase58().localeCompare(V.pubkey.toBase58(),"en",G)});const d=c.findIndex(M=>M.pubkey.equals(e));if(d>-1){const[M]=c.splice(d,1);M.isSigner=!0,M.isWritable=!0,c.unshift(M)}else c.unshift({pubkey:e,isSigner:!0,isWritable:!0});for(const M of this.signatures){const V=c.findIndex(G=>G.pubkey.equals(M.publicKey));if(V>-1)c[V].isSigner||(c[V].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${M.publicKey.toString()}`)}let f=0,p=0,S=0;const x=[],T=[];c.forEach(({pubkey:M,isSigner:V,isWritable:G})=>{V?(x.push(M.toString()),f+=1,G||(p+=1)):(T.push(M.toString()),G||(S+=1))});const k=x.concat(T),C=n.map(M=>{const{data:V,programId:G}=M;return{programIdIndex:k.indexOf(G.toString()),accounts:M.keys.map(J=>k.indexOf(J.pubkey.toString())),data:On.encode(V)}});return C.forEach(M=>{Me(M.programIdIndex>=0),M.accounts.forEach(V=>Me(V>=0))}),new Qn({header:{numRequiredSignatures:f,numReadonlySignedAccounts:p,numReadonlyUnsignedAccounts:S},accountKeys:k,recentBlockhash:t,instructions:C})}_compile(){const t=this.compileMessage(),n=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===n.length&&this.signatures.every((o,i)=>n[i].equals(o.publicKey))||(this.signatures=n.map(e=>({signature:null,publicKey:e}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error("No signers");const n=new Set;this.signatures=t.filter(e=>{const o=e.toString();return n.has(o)?!1:(n.add(o),!0)}).map(e=>({signature:null,publicKey:e}))}sign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,e=[];for(const i of t){const c=i.publicKey.toString();n.has(c)||(n.add(c),e.push(i))}this.signatures=e.map(i=>({signature:null,publicKey:i.publicKey}));const o=this._compile();this._partialSign(o,...e)}partialSign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,e=[];for(const i of t){const c=i.publicKey.toString();n.has(c)||(n.add(c),e.push(i))}const o=this._compile();this._partialSign(o,...e)}_partialSign(t,...n){const e=t.serialize();n.forEach(o=>{const i=Ba(e,o.secretKey);this._addSignature(o.publicKey,Re(i))})}addSignature(t,n){this._compile(),this._addSignature(t,n)}_addSignature(t,n){Me(n.length===64);const e=this.signatures.findIndex(o=>t.equals(o.publicKey));if(e<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[e].signature=ge.Buffer.from(n)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,n){const e={};for(const{signature:o,publicKey:i}of this.signatures)o===null?n&&(e.missing||=[]).push(i):ty(o,t,i.toBytes())||(e.invalid||=[]).push(i);return e.invalid||e.missing?e:void 0}serialize(t){const{requireAllSignatures:n,verifySignatures:e}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),o=this.serializeMessage();if(e){const i=this._getMessageSignednessErrors(o,n);if(i){let c="Signature verification failed.";throw i.invalid&&(c+=`
|
|
6
|
-
Invalid signature for public key${
|
|
7
|
-
Missing signature for public key${i.missing.length===1?"":"(s)"} [\`${i.missing.map(d=>d.toBase58()).join("`, `")}\`].`),new Error(c)}}return this._serialize(o)}_serialize(t){const{signatures:n}=this,e=[];Kn(e,n.length);const o=e.length+n.length*64+t.length,i=ge.Buffer.alloc(o);return Me(n.length<256),ge.Buffer.from(e).copy(i,0),n.forEach(({signature:c},d)=>{c!==null&&(Me(c.length===64,"signature has invalid length"),ge.Buffer.from(c).copy(i,e.length+d*64))}),t.copy(i,e.length+n.length*64),Me(i.length<=Vr,`Transaction too large: ${i.length} > ${Vr}`),i}get keys(){return Me(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return Me(this.instructions.length===1),this.instructions[0].programId}get data(){return Me(this.instructions.length===1),this.instructions[0].data}static from(t){let n=[...t];const e=Hn(n);let o=[];for(let i=0;i<e;i++){const c=Wn(n,0,so);o.push(On.encode(ge.Buffer.from(c)))}return Fe.populate(Qn.from(n),o)}static populate(t,n=[]){const e=new Fe;return e.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(e.feePayer=t.accountKeys[0]),n.forEach((o,i)=>{const c={signature:o==On.encode(fy)?null:On.decode(o),publicKey:t.accountKeys[i]};e.signatures.push(c)}),t.instructions.forEach(o=>{const i=o.accounts.map(c=>{const d=t.accountKeys[c];return{pubkey:d,isSigner:e.signatures.some(f=>f.publicKey.toString()===d.toString())||t.isAccountSigner(c),isWritable:t.isAccountWritable(c)}});e.instructions.push(new je({keys:i,programId:t.accountKeys[o.programIdIndex],data:On.decode(o.data)}))}),e._message=t,e._json=e.toJSON(),e}}class Fa{constructor(t){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}static decompile(t,n){const{header:e,compiledInstructions:o,recentBlockhash:i}=t,{numRequiredSignatures:c,numReadonlySignedAccounts:d,numReadonlyUnsignedAccounts:f}=e,p=c-d;Me(p>0,"Message header is invalid");const S=t.staticAccountKeys.length-c-f;Me(S>=0,"Message header is invalid");const x=t.getAccountKeys(n),T=x.get(0);if(T===void 0)throw new Error("Failed to decompile message because no account keys were found");const k=[];for(const C of o){const M=[];for(const G of C.accountKeyIndexes){const J=x.get(G);if(J===void 0)throw new Error(`Failed to find key for account key index ${G}`);const $=G<c;let nt;$?nt=G<p:G<x.staticAccountKeys.length?nt=G-c<S:nt=G-x.staticAccountKeys.length<x.accountKeysFromLookups.writable.length,M.push({pubkey:J,isSigner:G<e.numRequiredSignatures,isWritable:nt})}const V=x.get(C.programIdIndex);if(V===void 0)throw new Error(`Failed to find program id for program id index ${C.programIdIndex}`);k.push(new je({programId:V,data:Re(C.data),keys:M}))}return new Fa({payerKey:T,instructions:k,recentBlockhash:i})}compileToLegacyMessage(){return Qn.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}compileToV0Message(t){return si.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:t})}}class Va{get version(){return this.message.version}constructor(t,n){if(this.signatures=void 0,this.message=void 0,n!==void 0)Me(n.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=n;else{const e=[];for(let o=0;o<t.header.numRequiredSignatures;o++)e.push(new Uint8Array(so));this.signatures=e}this.message=t}serialize(){const t=this.message.serialize(),n=Array();Kn(n,this.signatures.length);const e=at.struct([at.blob(n.length,"encodedSignaturesLength"),at.seq(oy(),this.signatures.length,"signatures"),at.blob(t.length,"serializedMessage")]),o=new Uint8Array(2048),i=e.encode({encodedSignaturesLength:new Uint8Array(n),signatures:this.signatures,serializedMessage:t},o);return o.slice(0,i)}static deserialize(t){let n=[...t];const e=[],o=Hn(n);for(let c=0;c<o;c++)e.push(new Uint8Array(Wn(n,0,so)));const i=Da.deserialize(new Uint8Array(n));return new Va(i,e)}sign(t){const n=this.message.serialize(),e=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const o of t){const i=e.findIndex(c=>c.equals(o.publicKey));Me(i>=0,`Cannot sign with non signer key ${o.publicKey.toBase58()}`),this.signatures[i]=Ba(n,o.secretKey)}}addSignature(t,n){Me(n.byteLength===64,"Signature must be 64 bytes long");const o=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));Me(o>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[o]=n}}const Wf=1e3/(160/64),dr=new Jt("SysvarC1ock11111111111111111111111111111111"),ly=new Jt("SysvarEpochSchedu1e111111111111111111111111"),dy=new Jt("Sysvar1nstructions1111111111111111111111111"),hs=new Jt("SysvarRecentB1ockHashes11111111111111111111"),xi=new Jt("SysvarRent111111111111111111111111111111111"),hy=new Jt("SysvarRewards111111111111111111111111111111"),py=new Jt("SysvarS1otHashes111111111111111111111111111"),gy=new Jt("SysvarS1otHistory11111111111111111111111111"),ps=new Jt("SysvarStakeHistory1111111111111111111111111");class co extends Error{constructor({action:t,signature:n,transactionMessage:e,logs:o}){const i=o?`Logs:
|
|
8
|
-
|
|
9
|
-
${e}. `+i+c;break;case"simulate":d=`Simulation failed.
|
|
10
|
-
|
|
11
|
-
`+i+c;break;default:d=`Unknown action '${(f=>f)(t)}'`}super(d),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=n,this.transactionMessage=e,this.transactionLogs=o||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const t=this.transactionLogs;if(!(t!=null&&typeof t=="object"&&"then"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((n,e)=>{t.getTransaction(this.signature).then(o=>{if(o&&o.meta&&o.meta.logMessages){const i=o.meta.logMessages;this.transactionLogs=i,n(i)}else e(new Error("Log messages not found"))}).catch(e)})),await this.transactionLogs}}const my={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class ue extends Error{constructor({code:t,message:n,data:e},o){super(o!=null?`${o}: ${n}`:n),this.code=void 0,this.data=void 0,this.code=t,this.data=e,this.name="SolanaJSONRPCError"}}async function Ha(r,t,n,e){const o=e&&{skipPreflight:e.skipPreflight,preflightCommitment:e.preflightCommitment||e.commitment,maxRetries:e.maxRetries,minContextSlot:e.minContextSlot},i=await r.sendTransaction(t,n,o);let c;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)c=(await r.confirmTransaction({abortSignal:e?.abortSignal,signature:i,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},e&&e.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){const{nonceInstruction:d}=t.nonceInfo,f=d.keys[0].pubkey;c=(await r.confirmTransaction({abortSignal:e?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:f,nonceValue:t.nonceInfo.nonce,signature:i},e&&e.commitment)).value}else e?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),c=(await r.confirmTransaction(i,e&&e.commitment)).value;if(c.err)throw i!=null?new co({action:"send",signature:i,transactionMessage:`Status: (${JSON.stringify(c)})`}):new Error(`Transaction ${i} failed (${JSON.stringify(c)})`);return i}function ai(r){return new Promise(t=>setTimeout(t,r))}function Ce(r,t){const n=r.layout.span>=0?r.layout.span:Vf(r,t),e=ge.Buffer.alloc(n),o=Object.assign({instruction:r.index},t);return r.layout.encode(o,e),e}function He(r,t){let n;try{n=r.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(n.instruction!==r.index)throw new Error(`invalid instruction; instruction index mismatch ${n.instruction} != ${r.index}`);return n}const zf=at.nu64("lamportsPerSignature"),Gf=at.struct([at.u32("version"),at.u32("state"),ke("authorizedPubkey"),ke("nonce"),at.struct([zf],"feeCalculator")]),Wa=Gf.span;class gs{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const n=Gf.decode(Re(t),0);return new gs({authorizedPubkey:new Jt(n.authorizedPubkey),nonce:new Jt(n.nonce).toString(),feeCalculator:n.feeCalculator})}}function Ci(r){const t=at.blob(8,r),n=t.decode.bind(t),e=t.encode.bind(t),o=t,i=Zm();return o.decode=(c,d)=>{const f=n(c,d);return i.decode(f)},o.encode=(c,d,f)=>{const p=i.encode(c);return e(p,d,f)},o}class vy{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=at.u32("instruction").decode(t.data);let o;for(const[i,c]of Object.entries(qe))if(c.index==e){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a SystemInstruction");return o}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:n,space:e,programId:o}=He(qe.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:n,space:e,programId:new Jt(o)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:n}=He(qe.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:n}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:n,seed:e,programId:o}=He(qe.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:n,seed:e,programId:new Jt(o)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:n}=He(qe.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:n}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:n,seed:e,space:o,programId:i}=He(qe.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Jt(n),seed:e,space:o,programId:new Jt(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:n}=He(qe.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new Jt(n)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:n,seed:e,programId:o}=He(qe.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Jt(n),seed:e,programId:new Jt(o)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:n,seed:e,lamports:o,space:i,programId:c}=He(qe.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new Jt(n),seed:e,lamports:o,space:i,programId:new Jt(c)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:n}=He(qe.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new Jt(n)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),He(qe.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:n}=He(qe.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:n}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:n}=He(qe.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new Jt(n)}}static checkProgramId(t){if(!t.equals(En.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,n){if(t.length<n)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${n}`)}}const qe=Object.freeze({Create:{index:0,layout:at.struct([at.u32("instruction"),at.ns64("lamports"),at.ns64("space"),ke("programId")])},Assign:{index:1,layout:at.struct([at.u32("instruction"),ke("programId")])},Transfer:{index:2,layout:at.struct([at.u32("instruction"),Ci("lamports")])},CreateWithSeed:{index:3,layout:at.struct([at.u32("instruction"),ke("base"),oi("seed"),at.ns64("lamports"),at.ns64("space"),ke("programId")])},AdvanceNonceAccount:{index:4,layout:at.struct([at.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:at.struct([at.u32("instruction"),at.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:at.struct([at.u32("instruction"),ke("authorized")])},AuthorizeNonceAccount:{index:7,layout:at.struct([at.u32("instruction"),ke("authorized")])},Allocate:{index:8,layout:at.struct([at.u32("instruction"),at.ns64("space")])},AllocateWithSeed:{index:9,layout:at.struct([at.u32("instruction"),ke("base"),oi("seed"),at.ns64("space"),ke("programId")])},AssignWithSeed:{index:10,layout:at.struct([at.u32("instruction"),ke("base"),oi("seed"),ke("programId")])},TransferWithSeed:{index:11,layout:at.struct([at.u32("instruction"),Ci("lamports"),oi("seed"),ke("programId")])},UpgradeNonceAccount:{index:12,layout:at.struct([at.u32("instruction")])}});class En{constructor(){}static createAccount(t){const n=qe.Create,e=Ce(n,{lamports:t.lamports,space:t.space,programId:Re(t.programId.toBuffer())});return new je({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}static transfer(t){let n,e;if("basePubkey"in t){const o=qe.TransferWithSeed;n=Ce(o,{lamports:BigInt(t.lamports),seed:t.seed,programId:Re(t.programId.toBuffer())}),e=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{const o=qe.Transfer;n=Ce(o,{lamports:BigInt(t.lamports)}),e=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new je({keys:e,programId:this.programId,data:n})}static assign(t){let n,e;if("basePubkey"in t){const o=qe.AssignWithSeed;n=Ce(o,{base:Re(t.basePubkey.toBuffer()),seed:t.seed,programId:Re(t.programId.toBuffer())}),e=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const o=qe.Assign;n=Ce(o,{programId:Re(t.programId.toBuffer())}),e=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new je({keys:e,programId:this.programId,data:n})}static createAccountWithSeed(t){const n=qe.CreateWithSeed,e=Ce(n,{base:Re(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:Re(t.programId.toBuffer())});let o=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||o.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new je({keys:o,programId:this.programId,data:e})}static createNonceAccount(t){const n=new Fe;"basePubkey"in t&&"seed"in t?n.add(En.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:Wa,programId:this.programId})):n.add(En.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:Wa,programId:this.programId}));const e={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return n.add(this.nonceInitialize(e)),n}static nonceInitialize(t){const n=qe.InitializeNonceAccount,e=Ce(n,{authorized:Re(t.authorizedPubkey.toBuffer())}),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:hs,isSigner:!1,isWritable:!1},{pubkey:xi,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new je(o)}static nonceAdvance(t){const n=qe.AdvanceNonceAccount,e=Ce(n),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:hs,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new je(o)}static nonceWithdraw(t){const n=qe.WithdrawNonceAccount,e=Ce(n,{lamports:t.lamports});return new je({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:hs,isSigner:!1,isWritable:!1},{pubkey:xi,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static nonceAuthorize(t){const n=qe.AuthorizeNonceAccount,e=Ce(n,{authorized:Re(t.newAuthorizedPubkey.toBuffer())});return new je({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static allocate(t){let n,e;if("basePubkey"in t){const o=qe.AllocateWithSeed;n=Ce(o,{base:Re(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:Re(t.programId.toBuffer())}),e=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const o=qe.Allocate;n=Ce(o,{space:t.space}),e=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new je({keys:e,programId:this.programId,data:n})}}En.programId=new Jt("11111111111111111111111111111111");const yy=Vr-300;class ci{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/ci.chunkSize)+1+1)}static async load(t,n,e,o,i){{const x=await t.getMinimumBalanceForRentExemption(i.length),T=await t.getAccountInfo(e.publicKey,"confirmed");let k=null;if(T!==null){if(T.executable)return console.error("Program load failed, account is already executable"),!1;T.data.length!==i.length&&(k=k||new Fe,k.add(En.allocate({accountPubkey:e.publicKey,space:i.length}))),T.owner.equals(o)||(k=k||new Fe,k.add(En.assign({accountPubkey:e.publicKey,programId:o}))),T.lamports<x&&(k=k||new Fe,k.add(En.transfer({fromPubkey:n.publicKey,toPubkey:e.publicKey,lamports:x-T.lamports})))}else k=new Fe().add(En.createAccount({fromPubkey:n.publicKey,newAccountPubkey:e.publicKey,lamports:x>0?x:1,space:i.length,programId:o}));k!==null&&await Ha(t,k,[n,e],{commitment:"confirmed"})}const c=at.struct([at.u32("instruction"),at.u32("offset"),at.u32("bytesLength"),at.u32("bytesLengthPadding"),at.seq(at.u8("byte"),at.offset(at.u32(),-8),"bytes")]),d=ci.chunkSize;let f=0,p=i,S=[];for(;p.length>0;){const x=p.slice(0,d),T=ge.Buffer.alloc(d+16);c.encode({instruction:0,offset:f,bytes:x,bytesLength:0,bytesLengthPadding:0},T);const k=new Fe().add({keys:[{pubkey:e.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:T});S.push(Ha(t,k,[n,e],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")&&await ai(1e3/4),f+=d,p=p.slice(d)}await Promise.all(S);{const x=at.struct([at.u32("instruction")]),T=ge.Buffer.alloc(x.span);x.encode({instruction:1},T);const k=new Fe().add({keys:[{pubkey:e.publicKey,isSigner:!0,isWritable:!0},{pubkey:xi,isSigner:!1,isWritable:!1}],programId:o,data:T}),C="processed",M=await t.sendTransaction(k,[n,e],{preflightCommitment:C}),{context:V,value:G}=await t.confirmTransaction({signature:M,lastValidBlockHeight:k.lastValidBlockHeight,blockhash:k.recentBlockhash},C);if(G.err)throw new Error(`Transaction ${M} failed (${JSON.stringify(G)})`);for(;;){try{if(await t.getSlot({commitment:C})>V.slot)break}catch{}await new Promise(J=>setTimeout(J,Math.round(Wf/2)))}}return!0}}ci.chunkSize=yy;const wy=new Jt("BPFLoader2111111111111111111111111111111111");class by{static getMinNumSignatures(t){return ci.getMinNumSignatures(t)}static load(t,n,e,o,i){return ci.load(t,n,e,i,o)}}function _y(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var za,Kf;function Ey(){if(Kf)return za;Kf=1;var r=Object.prototype.toString,t=Object.keys||function(e){var o=[];for(var i in e)o.push(i);return o};function n(e,o){var i,c,d,f,p,S,x;if(e===!0)return"true";if(e===!1)return"false";switch(typeof e){case"object":if(e===null)return null;if(e.toJSON&&typeof e.toJSON=="function")return n(e.toJSON(),o);if(x=r.call(e),x==="[object Array]"){for(d="[",c=e.length-1,i=0;i<c;i++)d+=n(e[i],!0)+",";return c>-1&&(d+=n(e[i],!0)),d+"]"}else if(x==="[object Object]"){for(f=t(e).sort(),c=f.length,d="",i=0;i<c;)p=f[i],S=n(e[p],!1),S!==void 0&&(d&&(d+=","),d+=JSON.stringify(p)+":"+S),i++;return"{"+d+"}"}else return JSON.stringify(e);case"function":case"undefined":return o?null:void 0;case"string":return JSON.stringify(e);default:return isFinite(e)?e:null}}return za=function(e){var o=n(e,!1);if(o!==void 0)return""+o},za}var Ry=Ey(),jf=_y(Ry);const uo=32;function Ga(r){let t=0;for(;r>1;)r/=2,t++;return t}function Sy(r){return r===0?1:(r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r|=r>>32,r+1)}class Yf{constructor(t,n,e,o,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=n,this.warmup=e,this.firstNormalEpoch=o,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const n=Ga(Sy(t+uo+1))-Ga(uo)-1,e=this.getSlotsInEpoch(n),o=t-(e-uo);return[n,o]}else{const n=t-this.firstNormalSlot,e=Math.floor(n/this.slotsPerEpoch),o=this.firstNormalEpoch+e,i=n%this.slotsPerEpoch;return[o,i]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?(Math.pow(2,t)-1)*uo:(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Ga(uo)):this.slotsPerEpoch}}var Ay=globalThis.fetch;class Iy extends Nv{constructor(t,n,e){const o=i=>{const c=Ov(i,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...n});return"socket"in c?this.underlyingSocket=c.socket:this.underlyingSocket=c,c};super(o,t,n,e),this.underlyingSocket=void 0}call(...t){const n=this.underlyingSocket?.readyState;return n===1?super.call(...t):Promise.reject(new Error("Tried to call a JSON-RPC method `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+n+")"))}notify(...t){const n=this.underlyingSocket?.readyState;return n===1?super.notify(...t):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+n+")"))}}function ky(r,t){let n;try{n=r.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(n.typeIndex!==r.index)throw new Error(`invalid account data; account type mismatch ${n.typeIndex} != ${r.index}`);return n}const qf=56;class Ka{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){const t=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===t}static deserialize(t){const n=ky(Oy,t),e=t.length-qf;Me(e>=0,"lookup table is invalid"),Me(e%32===0,"lookup table is invalid");const o=e/32,{addresses:i}=at.struct([at.seq(ke(),o,"addresses")]).decode(t.slice(qf));return{deactivationSlot:n.deactivationSlot,lastExtendedSlot:n.lastExtendedSlot,lastExtendedSlotStartIndex:n.lastExtendedStartIndex,authority:n.authority.length!==0?new Jt(n.authority[0]):void 0,addresses:i.map(c=>new Jt(c))}}}const Oy={index:1,layout:at.struct([at.u32("typeIndex"),Ci("deactivationSlot"),at.nu64("lastExtendedSlot"),at.u8("lastExtendedStartIndex"),at.u8(),at.seq(ke(),at.offset(at.u8(),-1),"authority")])},Ty=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function Ny(r){const t=r.match(Ty);if(t==null)throw TypeError(`Failed to validate endpoint URL \`${r}\``);const[n,e,o,i]=t,c=r.startsWith("https:")?"wss:":"ws:",d=o==null?null:parseInt(o.slice(1),10),f=d==null?"":`:${d+1}`;return`${c}//${e}${f}${i}`}const tn=ro(ya(Jt),$t(),r=>new Jt(r)),Zf=wa([$t(),Qe("base64")]),ja=ro(ya(ge.Buffer),Zf,r=>ge.Buffer.from(r[0],"base64")),$f=30*1e3;function xy(r){if(/^https?:/.test(r)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return r}function Ze(r){let t,n;if(typeof r=="string")t=r;else if(r){const{commitment:e,...o}=r;t=e,n=o}return{commitment:t,config:n}}function Xf(r){return r.map(t=>"memcmp"in t?{...t,memcmp:{...t.memcmp,encoding:t.memcmp.encoding??"base58"}}:t)}function Jf(r){return Un([Dt({jsonrpc:Qe("2.0"),id:$t(),result:r}),Dt({jsonrpc:Qe("2.0"),id:$t(),error:Dt({code:ki(),message:$t(),data:de(ev())})})])}const Cy=Jf(ki());function Se(r){return ro(Jf(r),Cy,t=>"error"in t?t:{...t,result:Qt(t.result,r)})}function pn(r){return Se(Dt({context:Dt({slot:Rt()}),value:r}))}function ms(r){return Dt({context:Dt({slot:Rt()}),value:r})}function Ya(r,t){return r===0?new si({header:t.header,staticAccountKeys:t.accountKeys.map(n=>new Jt(n)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(n=>({programIdIndex:n.programIdIndex,accountKeyIndexes:n.accounts,data:On.decode(n.data)})),addressTableLookups:t.addressTableLookups}):new Qn(t)}const Ly=Dt({foundation:Rt(),foundationTerm:Rt(),initial:Rt(),taper:Rt(),terminal:Rt()}),By=Se(ne(re(Dt({epoch:Rt(),effectiveSlot:Rt(),amount:Rt(),postBalance:Rt(),commission:de(re(Rt()))})))),Py=ne(Dt({slot:Rt(),prioritizationFee:Rt()})),My=Dt({total:Rt(),validator:Rt(),foundation:Rt(),epoch:Rt()}),Uy=Dt({epoch:Rt(),slotIndex:Rt(),slotsInEpoch:Rt(),absoluteSlot:Rt(),blockHeight:de(Rt()),transactionCount:de(Rt())}),Dy=Dt({slotsPerEpoch:Rt(),leaderScheduleSlotOffset:Rt(),warmup:ur(),firstNormalEpoch:Rt(),firstNormalSlot:Rt()}),Fy=ff($t(),ne(Rt())),ui=re(Un([Dt({}),$t()])),Vy=Dt({err:ui}),Hy=Qe("receivedSignature"),Wy=Dt({"solana-core":$t(),"feature-set":de(Rt())}),zy=Dt({program:$t(),programId:tn,parsed:ki()}),Gy=Dt({programId:tn,accounts:ne(tn),data:$t()}),Qf=pn(Dt({err:re(Un([Dt({}),$t()])),logs:re(ne($t())),accounts:de(re(ne(re(Dt({executable:ur(),owner:$t(),lamports:Rt(),data:ne($t()),rentEpoch:de(Rt())}))))),unitsConsumed:de(Rt()),returnData:de(re(Dt({programId:$t(),data:wa([$t(),Qe("base64")])}))),innerInstructions:de(re(ne(Dt({index:Rt(),instructions:ne(Un([zy,Gy]))}))))})),Ky=pn(Dt({byIdentity:ff($t(),ne(Rt())),range:Dt({firstSlot:Rt(),lastSlot:Rt()})}));function jy(r,t,n,e,o,i){const c=n||Ay;let d;i!=null&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");let f;return e&&(f=async(S,x)=>{const T=await new Promise((k,C)=>{try{e(S,x,(M,V)=>k([M,V]))}catch(M){C(M)}});return await c(...T)}),new Sv(async(S,x)=>{const T={method:"POST",body:S,agent:d,headers:Object.assign({"Content-Type":"application/json"},t||{},j3)};try{let k=5,C,M=500;for(;f?C=await f(r,T):C=await c(r,T),!(C.status!==429||o===!0||(k-=1,k===0));)console.error(`Server responded with ${C.status} ${C.statusText}. Retrying after ${M}ms delay...`),await ai(M),M*=2;const V=await C.text();C.ok?x(null,V):x(new Error(`${C.status} ${C.statusText}: ${V}`))}catch(k){k instanceof Error&&x(k)}},{})}function Yy(r){return(t,n)=>new Promise((e,o)=>{r.request(t,n,(i,c)=>{if(i){o(i);return}e(c)})})}function qy(r){return t=>new Promise((n,e)=>{t.length===0&&n([]);const o=t.map(i=>r.request(i.methodName,i.args));r.request(o,(i,c)=>{if(i){e(i);return}n(c)})})}const Zy=Se(Ly),$y=Se(My),Xy=Se(Py),Jy=Se(Uy),Qy=Se(Dy),t3=Se(Fy),e3=Se(Rt()),n3=pn(Dt({total:Rt(),circulating:Rt(),nonCirculating:Rt(),nonCirculatingAccounts:ne(tn)})),qa=Dt({amount:$t(),uiAmount:re(Rt()),decimals:Rt(),uiAmountString:de($t())}),r3=pn(ne(Dt({address:tn,amount:$t(),uiAmount:re(Rt()),decimals:Rt(),uiAmountString:de($t())}))),i3=pn(ne(Dt({pubkey:tn,account:Dt({executable:ur(),owner:tn,lamports:Rt(),data:ja,rentEpoch:Rt()})}))),Za=Dt({program:$t(),parsed:ki(),space:Rt()}),o3=pn(ne(Dt({pubkey:tn,account:Dt({executable:ur(),owner:tn,lamports:Rt(),data:Za,rentEpoch:Rt()})}))),s3=pn(ne(Dt({lamports:Rt(),address:tn}))),fo=Dt({executable:ur(),owner:tn,lamports:Rt(),data:ja,rentEpoch:Rt()}),a3=Dt({pubkey:tn,account:fo}),c3=ro(Un([ya(ge.Buffer),Za]),Un([Zf,Za]),r=>Array.isArray(r)?Qt(r,ja):r),$a=Dt({executable:ur(),owner:tn,lamports:Rt(),data:c3,rentEpoch:Rt()}),u3=Dt({pubkey:tn,account:$a}),f3=Dt({state:Un([Qe("active"),Qe("inactive"),Qe("activating"),Qe("deactivating")]),active:Rt(),inactive:Rt()}),l3=Se(ne(Dt({signature:$t(),slot:Rt(),err:ui,memo:re($t()),blockTime:de(re(Rt()))}))),d3=Se(ne(Dt({signature:$t(),slot:Rt(),err:ui,memo:re($t()),blockTime:de(re(Rt()))}))),h3=Dt({subscription:Rt(),result:ms(fo)}),p3=Dt({pubkey:tn,account:fo}),g3=Dt({subscription:Rt(),result:ms(p3)}),m3=Dt({parent:Rt(),slot:Rt(),root:Rt()}),v3=Dt({subscription:Rt(),result:m3}),y3=Un([Dt({type:Un([Qe("firstShredReceived"),Qe("completed"),Qe("optimisticConfirmation"),Qe("root")]),slot:Rt(),timestamp:Rt()}),Dt({type:Qe("createdBank"),parent:Rt(),slot:Rt(),timestamp:Rt()}),Dt({type:Qe("frozen"),slot:Rt(),timestamp:Rt(),stats:Dt({numTransactionEntries:Rt(),numSuccessfulTransactions:Rt(),numFailedTransactions:Rt(),maxTransactionsPerEntry:Rt()})}),Dt({type:Qe("dead"),slot:Rt(),timestamp:Rt(),err:$t()})]),w3=Dt({subscription:Rt(),result:y3}),b3=Dt({subscription:Rt(),result:ms(Un([Vy,Hy]))}),_3=Dt({subscription:Rt(),result:Rt()}),E3=Dt({pubkey:$t(),gossip:re($t()),tpu:re($t()),rpc:re($t()),version:re($t())}),tl=Dt({votePubkey:$t(),nodePubkey:$t(),activatedStake:Rt(),epochVoteAccount:ur(),epochCredits:ne(wa([Rt(),Rt(),Rt()])),commission:Rt(),lastVote:Rt(),rootSlot:re(Rt())}),R3=Se(Dt({current:ne(tl),delinquent:ne(tl)})),S3=Un([Qe("processed"),Qe("confirmed"),Qe("finalized")]),A3=Dt({slot:Rt(),confirmations:re(Rt()),err:ui,confirmationStatus:de(S3)}),I3=pn(ne(re(A3))),k3=Se(Rt()),el=Dt({accountKey:tn,writableIndexes:ne(Rt()),readonlyIndexes:ne(Rt())}),Xa=Dt({signatures:ne($t()),message:Dt({accountKeys:ne($t()),header:Dt({numRequiredSignatures:Rt(),numReadonlySignedAccounts:Rt(),numReadonlyUnsignedAccounts:Rt()}),instructions:ne(Dt({accounts:ne(Rt()),data:$t(),programIdIndex:Rt()})),recentBlockhash:$t(),addressTableLookups:de(ne(el))})}),nl=Dt({pubkey:tn,signer:ur(),writable:ur(),source:de(Un([Qe("transaction"),Qe("lookupTable")]))}),rl=Dt({accountKeys:ne(nl),signatures:ne($t())}),il=Dt({parsed:ki(),program:$t(),programId:tn}),ol=Dt({accounts:ne(tn),data:$t(),programId:tn}),O3=Un([ol,il]),T3=Un([Dt({parsed:ki(),program:$t(),programId:$t()}),Dt({accounts:ne($t()),data:$t(),programId:$t()})]),sl=ro(O3,T3,r=>"accounts"in r?Qt(r,ol):Qt(r,il)),al=Dt({signatures:ne($t()),message:Dt({accountKeys:ne(nl),instructions:ne(sl),recentBlockhash:$t(),addressTableLookups:de(re(ne(el)))})}),vs=Dt({accountIndex:Rt(),mint:$t(),owner:de($t()),programId:de($t()),uiTokenAmount:qa}),cl=Dt({writable:ne(tn),readonly:ne(tn)}),ys=Dt({err:ui,fee:Rt(),innerInstructions:de(re(ne(Dt({index:Rt(),instructions:ne(Dt({accounts:ne(Rt()),data:$t(),programIdIndex:Rt()}))})))),preBalances:ne(Rt()),postBalances:ne(Rt()),logMessages:de(re(ne($t()))),preTokenBalances:de(re(ne(vs))),postTokenBalances:de(re(ne(vs))),loadedAddresses:de(cl),computeUnitsConsumed:de(Rt()),costUnits:de(Rt())}),Ja=Dt({err:ui,fee:Rt(),innerInstructions:de(re(ne(Dt({index:Rt(),instructions:ne(sl)})))),preBalances:ne(Rt()),postBalances:ne(Rt()),logMessages:de(re(ne($t()))),preTokenBalances:de(re(ne(vs))),postTokenBalances:de(re(ne(vs))),loadedAddresses:de(cl),computeUnitsConsumed:de(Rt()),costUnits:de(Rt())}),Li=Un([Qe(0),Qe("legacy")]),fi=Dt({pubkey:$t(),lamports:Rt(),postBalance:re(Rt()),rewardType:re($t()),commission:de(re(Rt()))}),N3=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),transactions:ne(Dt({transaction:Xa,meta:re(ys),version:de(Li)})),rewards:de(ne(fi)),blockTime:re(Rt()),blockHeight:re(Rt())}))),x3=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),rewards:de(ne(fi)),blockTime:re(Rt()),blockHeight:re(Rt())}))),C3=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),transactions:ne(Dt({transaction:rl,meta:re(ys),version:de(Li)})),rewards:de(ne(fi)),blockTime:re(Rt()),blockHeight:re(Rt())}))),L3=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),transactions:ne(Dt({transaction:al,meta:re(Ja),version:de(Li)})),rewards:de(ne(fi)),blockTime:re(Rt()),blockHeight:re(Rt())}))),B3=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),transactions:ne(Dt({transaction:rl,meta:re(Ja),version:de(Li)})),rewards:de(ne(fi)),blockTime:re(Rt()),blockHeight:re(Rt())}))),P3=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),rewards:de(ne(fi)),blockTime:re(Rt()),blockHeight:re(Rt())}))),M3=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),transactions:ne(Dt({transaction:Xa,meta:re(ys)})),rewards:de(ne(fi)),blockTime:re(Rt())}))),ul=Se(re(Dt({blockhash:$t(),previousBlockhash:$t(),parentSlot:Rt(),signatures:ne($t()),blockTime:re(Rt())}))),Qa=Se(re(Dt({slot:Rt(),meta:re(ys),blockTime:de(re(Rt())),transaction:Xa,version:de(Li)}))),ws=Se(re(Dt({slot:Rt(),transaction:al,meta:re(Ja),blockTime:de(re(Rt())),version:de(Li)}))),U3=pn(Dt({blockhash:$t(),lastValidBlockHeight:Rt()})),D3=pn(ur()),F3=Dt({slot:Rt(),numTransactions:Rt(),numSlots:Rt(),samplePeriodSecs:Rt()}),V3=Se(ne(F3)),H3=pn(re(Dt({feeCalculator:Dt({lamportsPerSignature:Rt()})}))),W3=Se($t()),z3=Se($t()),G3=Dt({err:ui,logs:ne($t()),signature:$t()}),K3=Dt({result:ms(G3),subscription:Rt()}),j3={"solana-client":"js/1.0.0-maintenance"};class Y3{constructor(t,n){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const p={};return async S=>{const{commitment:x,config:T}=Ze(S),k=this._buildArgs([],x,void 0,T),C=jf(k);return p[C]=p[C]??(async()=>{try{const M=await this._rpcRequest("getBlockHeight",k),V=Qt(M,Se(Rt()));if("error"in V)throw new ue(V.error,"failed to get block height information");return V.result}finally{delete p[C]}})(),await p[C]}})();let e,o,i,c,d,f;n&&typeof n=="string"?this._commitment=n:n&&(this._commitment=n.commitment,this._confirmTransactionInitialTimeout=n.confirmTransactionInitialTimeout,e=n.wsEndpoint,o=n.httpHeaders,i=n.fetch,c=n.fetchMiddleware,d=n.disableRetryOnRateLimit,f=n.httpAgent),this._rpcEndpoint=xy(t),this._rpcWsEndpoint=e||Ny(t),this._rpcClient=jy(t,o,i,c,d,f),this._rpcRequest=Yy(this._rpcClient),this._rpcBatchRequest=qy(this._rpcClient),this._rpcWebSocket=new Iy(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgs([t.toBase58()],e,void 0,o),c=await this._rpcRequest("getBalance",i),d=Qt(c,pn(Rt()));if("error"in d)throw new ue(d.error,`failed to get balance for ${t.toBase58()}`);return d.result}async getBalance(t,n){return await this.getBalanceAndContext(t,n).then(e=>e.value).catch(e=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+e)})}async getBlockTime(t){const n=await this._rpcRequest("getBlockTime",[t]),e=Qt(n,Se(re(Rt())));if("error"in e)throw new ue(e.error,`failed to get block time for slot ${t}`);return e.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),n=Qt(t,Se(Rt()));if("error"in n)throw new ue(n.error,"failed to get minimum ledger slot");return n.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),n=Qt(t,e3);if("error"in n)throw new ue(n.error,"failed to get first available block");return n.result}async getSupply(t){let n={};typeof t=="string"?n={commitment:t}:t?n={...t,commitment:t&&t.commitment||this.commitment}:n={commitment:this.commitment};const e=await this._rpcRequest("getSupply",[n]),o=Qt(e,n3);if("error"in o)throw new ue(o.error,"failed to get supply");return o.result}async getTokenSupply(t,n){const e=this._buildArgs([t.toBase58()],n),o=await this._rpcRequest("getTokenSupply",e),i=Qt(o,pn(qa));if("error"in i)throw new ue(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,n){const e=this._buildArgs([t.toBase58()],n),o=await this._rpcRequest("getTokenAccountBalance",e),i=Qt(o,pn(qa));if("error"in i)throw new ue(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,n,e){const{commitment:o,config:i}=Ze(e);let c=[t.toBase58()];"mint"in n?c.push({mint:n.mint.toBase58()}):c.push({programId:n.programId.toBase58()});const d=this._buildArgs(c,o,"base64",i),f=await this._rpcRequest("getTokenAccountsByOwner",d),p=Qt(f,i3);if("error"in p)throw new ue(p.error,`failed to get token accounts owned by account ${t.toBase58()}`);return p.result}async getParsedTokenAccountsByOwner(t,n,e){let o=[t.toBase58()];"mint"in n?o.push({mint:n.mint.toBase58()}):o.push({programId:n.programId.toBase58()});const i=this._buildArgs(o,e,"jsonParsed"),c=await this._rpcRequest("getTokenAccountsByOwner",i),d=Qt(c,o3);if("error"in d)throw new ue(d.error,`failed to get token accounts owned by account ${t.toBase58()}`);return d.result}async getLargestAccounts(t){const n={...t,commitment:t&&t.commitment||this.commitment},e=n.filter||n.commitment?[n]:[],o=await this._rpcRequest("getLargestAccounts",e),i=Qt(o,s3);if("error"in i)throw new ue(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,n){const e=this._buildArgs([t.toBase58()],n),o=await this._rpcRequest("getTokenLargestAccounts",e),i=Qt(o,r3);if("error"in i)throw new ue(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgs([t.toBase58()],e,"base64",o),c=await this._rpcRequest("getAccountInfo",i),d=Qt(c,pn(re(fo)));if("error"in d)throw new ue(d.error,`failed to get info about account ${t.toBase58()}`);return d.result}async getParsedAccountInfo(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgs([t.toBase58()],e,"jsonParsed",o),c=await this._rpcRequest("getAccountInfo",i),d=Qt(c,pn(re($a)));if("error"in d)throw new ue(d.error,`failed to get info about account ${t.toBase58()}`);return d.result}async getAccountInfo(t,n){try{return(await this.getAccountInfoAndContext(t,n)).value}catch(e){throw new Error("failed to get info about account "+t.toBase58()+": "+e)}}async getMultipleParsedAccounts(t,n){const{commitment:e,config:o}=Ze(n),i=t.map(p=>p.toBase58()),c=this._buildArgs([i],e,"jsonParsed",o),d=await this._rpcRequest("getMultipleAccounts",c),f=Qt(d,pn(ne(re($a))));if("error"in f)throw new ue(f.error,`failed to get info for accounts ${i}`);return f.result}async getMultipleAccountsInfoAndContext(t,n){const{commitment:e,config:o}=Ze(n),i=t.map(p=>p.toBase58()),c=this._buildArgs([i],e,"base64",o),d=await this._rpcRequest("getMultipleAccounts",c),f=Qt(d,pn(ne(re(fo))));if("error"in f)throw new ue(f.error,`failed to get info for accounts ${i}`);return f.result}async getMultipleAccountsInfo(t,n){return(await this.getMultipleAccountsInfoAndContext(t,n)).value}async getStakeActivation(t,n,e){const{commitment:o,config:i}=Ze(n),c=this._buildArgs([t.toBase58()],o,void 0,{...i,epoch:e??i?.epoch}),d=await this._rpcRequest("getStakeActivation",c),f=Qt(d,Se(f3));if("error"in f)throw new ue(f.error,`failed to get Stake Activation ${t.toBase58()}`);return f.result}async getProgramAccounts(t,n){const{commitment:e,config:o}=Ze(n),{encoding:i,...c}=o||{},d=this._buildArgs([t.toBase58()],e,i||"base64",{...c,...c.filters?{filters:Xf(c.filters)}:null}),f=await this._rpcRequest("getProgramAccounts",d),p=ne(a3),S=c.withContext===!0?Qt(f,pn(p)):Qt(f,Se(p));if("error"in S)throw new ue(S.error,`failed to get accounts owned by program ${t.toBase58()}`);return S.result}async getParsedProgramAccounts(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgs([t.toBase58()],e,"jsonParsed",o),c=await this._rpcRequest("getProgramAccounts",i),d=Qt(c,Se(ne(u3)));if("error"in d)throw new ue(d.error,`failed to get accounts owned by program ${t.toBase58()}`);return d.result}async confirmTransaction(t,n){let e;if(typeof t=="string")e=t;else{const i=t;if(i.abortSignal?.aborted)return Promise.reject(i.abortSignal.reason);e=i.signature}let o;try{o=On.decode(e)}catch{throw new Error("signature must be base58 encoded: "+e)}return Me(o.length===64,"signature has invalid length"),typeof t=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:n||this.commitment,signature:e}):"lastValidBlockHeight"in t?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:n||this.commitment,strategy:t}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:n||this.commitment,strategy:t})}getCancellationPromise(t){return new Promise((n,e)=>{t!=null&&(t.aborted?e(t.reason):t.addEventListener("abort",()=>{e(t.reason)}))})}getTransactionConfirmationPromise({commitment:t,signature:n}){let e,o,i=!1;const c=new Promise((f,p)=>{try{e=this.onSignature(n,(x,T)=>{e=void 0;const k={context:T,value:x};f({__type:kr.PROCESSED,response:k})},t);const S=new Promise(x=>{e==null?x():o=this._onSubscriptionStateChange(e,T=>{T==="subscribed"&&x()})});(async()=>{if(await S,i)return;const x=await this.getSignatureStatus(n);if(i||x==null)return;const{context:T,value:k}=x;if(k!=null)if(k?.err)p(k.err);else{switch(t){case"confirmed":case"single":case"singleGossip":{if(k.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(k.confirmationStatus==="processed"||k.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}i=!0,f({__type:kr.PROCESSED,response:{context:T,value:k}})}})()}catch(S){p(S)}});return{abortConfirmation:()=>{o&&(o(),o=void 0),e!=null&&(this.removeSignatureListener(e),e=void 0)},confirmationPromise:c}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t,strategy:{abortSignal:n,lastValidBlockHeight:e,signature:o}}){let i=!1;const c=new Promise(x=>{const T=async()=>{try{return await this.getBlockHeight(t)}catch{return-1}};(async()=>{let k=await T();if(!i){for(;k<=e;)if(await ai(1e3),i||(k=await T(),i))return;x({__type:kr.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:d,confirmationPromise:f}=this.getTransactionConfirmationPromise({commitment:t,signature:o}),p=this.getCancellationPromise(n);let S;try{const x=await Promise.race([p,f,c]);if(x.__type===kr.PROCESSED)S=x.response;else throw new Ma(o)}finally{i=!0,d()}return S}async confirmTransactionUsingDurableNonceStrategy({commitment:t,strategy:{abortSignal:n,minContextSlot:e,nonceAccountPubkey:o,nonceValue:i,signature:c}}){let d=!1;const f=new Promise(k=>{let C=i,M=null;const V=async()=>{try{const{context:G,value:J}=await this.getNonceAndContext(o,{commitment:t,minContextSlot:e});return M=G.slot,J?.nonce}catch{return C}};(async()=>{if(C=await V(),!d)for(;;){if(i!==C){k({__type:kr.NONCE_INVALID,slotInWhichNonceDidAdvance:M});return}if(await ai(2e3),d||(C=await V(),d))return}})()}),{abortConfirmation:p,confirmationPromise:S}=this.getTransactionConfirmationPromise({commitment:t,signature:c}),x=this.getCancellationPromise(n);let T;try{const k=await Promise.race([x,S,f]);if(k.__type===kr.PROCESSED)T=k.response;else{let C;for(;;){const M=await this.getSignatureStatus(c);if(M==null)break;if(M.context.slot<(k.slotInWhichNonceDidAdvance??e)){await ai(400);continue}C=M;break}if(C?.value){const M=t||"finalized",{confirmationStatus:V}=C.value;switch(M){case"processed":case"recent":if(V!=="processed"&&V!=="confirmed"&&V!=="finalized")throw new Ni(c);break;case"confirmed":case"single":case"singleGossip":if(V!=="confirmed"&&V!=="finalized")throw new Ni(c);break;case"finalized":case"max":case"root":if(V!=="finalized")throw new Ni(c);break;default:}T={context:C.context,value:{err:C.value.err}}}else throw new Ni(c)}}finally{d=!0,p()}return T}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:t,signature:n}){let e;const o=new Promise(f=>{let p=this._confirmTransactionInitialTimeout||6e4;switch(t){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{p=this._confirmTransactionInitialTimeout||3e4;break}}e=setTimeout(()=>f({__type:kr.TIMED_OUT,timeoutMs:p}),p)}),{abortConfirmation:i,confirmationPromise:c}=this.getTransactionConfirmationPromise({commitment:t,signature:n});let d;try{const f=await Promise.race([c,o]);if(f.__type===kr.PROCESSED)d=f.response;else throw new Ua(n,f.timeoutMs/1e3)}finally{clearTimeout(e),i()}return d}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),n=Qt(t,Se(ne(E3)));if("error"in n)throw new ue(n.error,"failed to get cluster nodes");return n.result}async getVoteAccounts(t){const n=this._buildArgs([],t),e=await this._rpcRequest("getVoteAccounts",n),o=Qt(e,R3);if("error"in o)throw new ue(o.error,"failed to get vote accounts");return o.result}async getSlot(t){const{commitment:n,config:e}=Ze(t),o=this._buildArgs([],n,void 0,e),i=await this._rpcRequest("getSlot",o),c=Qt(i,Se(Rt()));if("error"in c)throw new ue(c.error,"failed to get slot");return c.result}async getSlotLeader(t){const{commitment:n,config:e}=Ze(t),o=this._buildArgs([],n,void 0,e),i=await this._rpcRequest("getSlotLeader",o),c=Qt(i,Se($t()));if("error"in c)throw new ue(c.error,"failed to get slot leader");return c.result}async getSlotLeaders(t,n){const e=[t,n],o=await this._rpcRequest("getSlotLeaders",e),i=Qt(o,Se(ne(tn)));if("error"in i)throw new ue(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,n){const{context:e,value:o}=await this.getSignatureStatuses([t],n);Me(o.length===1);const i=o[0];return{context:e,value:i}}async getSignatureStatuses(t,n){const e=[t];n&&e.push(n);const o=await this._rpcRequest("getSignatureStatuses",e),i=Qt(o,I3);if("error"in i)throw new ue(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:n,config:e}=Ze(t),o=this._buildArgs([],n,void 0,e),i=await this._rpcRequest("getTransactionCount",o),c=Qt(i,Se(Rt()));if("error"in c)throw new ue(c.error,"failed to get transaction count");return c.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const n=this._buildArgs([],t),e=await this._rpcRequest("getInflationGovernor",n),o=Qt(e,Zy);if("error"in o)throw new ue(o.error,"failed to get inflation");return o.result}async getInflationReward(t,n,e){const{commitment:o,config:i}=Ze(e),c=this._buildArgs([t.map(p=>p.toBase58())],o,void 0,{...i,epoch:n??i?.epoch}),d=await this._rpcRequest("getInflationReward",c),f=Qt(d,By);if("error"in f)throw new ue(f.error,"failed to get inflation reward");return f.result}async getInflationRate(){const t=await this._rpcRequest("getInflationRate",[]),n=Qt(t,$y);if("error"in n)throw new ue(n.error,"failed to get inflation rate");return n.result}async getEpochInfo(t){const{commitment:n,config:e}=Ze(t),o=this._buildArgs([],n,void 0,e),i=await this._rpcRequest("getEpochInfo",o),c=Qt(i,Jy);if("error"in c)throw new ue(c.error,"failed to get epoch info");return c.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),n=Qt(t,Qy);if("error"in n)throw new ue(n.error,"failed to get epoch schedule");const e=n.result;return new Yf(e.slotsPerEpoch,e.leaderScheduleSlotOffset,e.warmup,e.firstNormalEpoch,e.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),n=Qt(t,t3);if("error"in n)throw new ue(n.error,"failed to get leader schedule");return n.result}async getMinimumBalanceForRentExemption(t,n){const e=this._buildArgs([t],n),o=await this._rpcRequest("getMinimumBalanceForRentExemption",e),i=Qt(o,k3);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const{context:n,value:{blockhash:e}}=await this.getLatestBlockhashAndContext(t);return{context:n,value:{blockhash:e,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(t){const n=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),e=Qt(n,V3);if("error"in e)throw new ue(e.error,"failed to get recent performance samples");return e.result}async getFeeCalculatorForBlockhash(t,n){const e=this._buildArgs([t],n),o=await this._rpcRequest("getFeeCalculatorForBlockhash",e),i=Qt(o,H3);if("error"in i)throw new ue(i.error,"failed to get fee calculator");const{context:c,value:d}=i.result;return{context:c,value:d!==null?d.feeCalculator:null}}async getFeeForMessage(t,n){const e=Re(t.serialize()).toString("base64"),o=this._buildArgs([e],n),i=await this._rpcRequest("getFeeForMessage",o),c=Qt(i,pn(re(Rt())));if("error"in c)throw new ue(c.error,"failed to get fee for message");if(c.result===null)throw new Error("invalid blockhash");return c.result}async getRecentPrioritizationFees(t){const n=t?.lockedWritableAccounts?.map(c=>c.toBase58()),e=n?.length?[n]:[],o=await this._rpcRequest("getRecentPrioritizationFees",e),i=Qt(o,Xy);if("error"in i)throw new ue(i.error,"failed to get recent prioritization fees");return i.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(n){throw new Error("failed to get recent blockhash: "+n)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(n){throw new Error("failed to get recent blockhash: "+n)}}async getLatestBlockhashAndContext(t){const{commitment:n,config:e}=Ze(t),o=this._buildArgs([],n,void 0,e),i=await this._rpcRequest("getLatestBlockhash",o),c=Qt(i,U3);if("error"in c)throw new ue(c.error,"failed to get latest blockhash");return c.result}async isBlockhashValid(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgs([t],e,void 0,o),c=await this._rpcRequest("isBlockhashValid",i),d=Qt(c,D3);if("error"in d)throw new ue(d.error,"failed to determine if the blockhash `"+t+"`is valid");return d.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),n=Qt(t,Se(Wy));if("error"in n)throw new ue(n.error,"failed to get version");return n.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),n=Qt(t,Se($t()));if("error"in n)throw new ue(n.error,"failed to get genesis hash");return n.result}async getBlock(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgsAtLeastConfirmed([t],e,void 0,o),c=await this._rpcRequest("getBlock",i);try{switch(o?.transactionDetails){case"accounts":{const d=Qt(c,C3);if("error"in d)throw d.error;return d.result}case"none":{const d=Qt(c,x3);if("error"in d)throw d.error;return d.result}default:{const d=Qt(c,N3);if("error"in d)throw d.error;const{result:f}=d;return f?{...f,transactions:f.transactions.map(({transaction:p,meta:S,version:x})=>({meta:S,transaction:{...p,message:Ya(x,p.message)},version:x}))}:null}}}catch(d){throw new ue(d,"failed to get confirmed block")}}async getParsedBlock(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed",o),c=await this._rpcRequest("getBlock",i);try{switch(o?.transactionDetails){case"accounts":{const d=Qt(c,B3);if("error"in d)throw d.error;return d.result}case"none":{const d=Qt(c,P3);if("error"in d)throw d.error;return d.result}default:{const d=Qt(c,L3);if("error"in d)throw d.error;return d.result}}}catch(d){throw new ue(d,"failed to get block")}}async getBlockProduction(t){let n,e;if(typeof t=="string")e=t;else if(t){const{commitment:d,...f}=t;e=d,n=f}const o=this._buildArgs([],e,"base64",n),i=await this._rpcRequest("getBlockProduction",o),c=Qt(i,Ky);if("error"in c)throw new ue(c.error,"failed to get block production information");return c.result}async getTransaction(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgsAtLeastConfirmed([t],e,void 0,o),c=await this._rpcRequest("getTransaction",i),d=Qt(c,Qa);if("error"in d)throw new ue(d.error,"failed to get transaction");const f=d.result;return f&&{...f,transaction:{...f.transaction,message:Ya(f.version,f.transaction.message)}}}async getParsedTransaction(t,n){const{commitment:e,config:o}=Ze(n),i=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed",o),c=await this._rpcRequest("getTransaction",i),d=Qt(c,ws);if("error"in d)throw new ue(d.error,"failed to get transaction");return d.result}async getParsedTransactions(t,n){const{commitment:e,config:o}=Ze(n),i=t.map(f=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([f],e,"jsonParsed",o)}));return(await this._rpcBatchRequest(i)).map(f=>{const p=Qt(f,ws);if("error"in p)throw new ue(p.error,"failed to get transactions");return p.result})}async getTransactions(t,n){const{commitment:e,config:o}=Ze(n),i=t.map(f=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([f],e,void 0,o)}));return(await this._rpcBatchRequest(i)).map(f=>{const p=Qt(f,Qa);if("error"in p)throw new ue(p.error,"failed to get transactions");const S=p.result;return S&&{...S,transaction:{...S.transaction,message:Ya(S.version,S.transaction.message)}}})}async getConfirmedBlock(t,n){const e=this._buildArgsAtLeastConfirmed([t],n),o=await this._rpcRequest("getBlock",e),i=Qt(o,M3);if("error"in i)throw new ue(i.error,"failed to get confirmed block");const c=i.result;if(!c)throw new Error("Confirmed block "+t+" not found");const d={...c,transactions:c.transactions.map(({transaction:f,meta:p})=>{const S=new Qn(f.message);return{meta:p,transaction:{...f,message:S}}})};return{...d,transactions:d.transactions.map(({transaction:f,meta:p})=>({meta:p,transaction:Fe.populate(f.message,f.signatures)}))}}async getBlocks(t,n,e){const o=this._buildArgsAtLeastConfirmed(n!==void 0?[t,n]:[t],e),i=await this._rpcRequest("getBlocks",o),c=Qt(i,Se(ne(Rt())));if("error"in c)throw new ue(c.error,"failed to get blocks");return c.result}async getBlockSignatures(t,n){const e=this._buildArgsAtLeastConfirmed([t],n,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getBlock",e),i=Qt(o,ul);if("error"in i)throw new ue(i.error,"failed to get block");const c=i.result;if(!c)throw new Error("Block "+t+" not found");return c}async getConfirmedBlockSignatures(t,n){const e=this._buildArgsAtLeastConfirmed([t],n,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getBlock",e),i=Qt(o,ul);if("error"in i)throw new ue(i.error,"failed to get confirmed block");const c=i.result;if(!c)throw new Error("Confirmed block "+t+" not found");return c}async getConfirmedTransaction(t,n){const e=this._buildArgsAtLeastConfirmed([t],n),o=await this._rpcRequest("getTransaction",e),i=Qt(o,Qa);if("error"in i)throw new ue(i.error,"failed to get transaction");const c=i.result;if(!c)return c;const d=new Qn(c.transaction.message),f=c.transaction.signatures;return{...c,transaction:Fe.populate(d,f)}}async getParsedConfirmedTransaction(t,n){const e=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed"),o=await this._rpcRequest("getTransaction",e),i=Qt(o,ws);if("error"in i)throw new ue(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,n){const e=t.map(c=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([c],n,"jsonParsed")}));return(await this._rpcBatchRequest(e)).map(c=>{const d=Qt(c,ws);if("error"in d)throw new ue(d.error,"failed to get confirmed transactions");return d.result})}async getConfirmedSignaturesForAddress(t,n,e){let o={},i=await this.getFirstAvailableBlock();for(;!("until"in o)&&(n--,!(n<=0||n<i));)try{const f=await this.getConfirmedBlockSignatures(n,"finalized");f.signatures.length>0&&(o.until=f.signatures[f.signatures.length-1].toString())}catch(f){if(f instanceof Error&&f.message.includes("skipped"))continue;throw f}let c=await this.getSlot("finalized");for(;!("before"in o)&&(e++,!(e>c));)try{const f=await this.getConfirmedBlockSignatures(e);f.signatures.length>0&&(o.before=f.signatures[f.signatures.length-1].toString())}catch(f){if(f instanceof Error&&f.message.includes("skipped"))continue;throw f}return(await this.getConfirmedSignaturesForAddress2(t,o)).map(f=>f.signature)}async getConfirmedSignaturesForAddress2(t,n,e){const o=this._buildArgsAtLeastConfirmed([t.toBase58()],e,void 0,n),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",o),c=Qt(i,l3);if("error"in c)throw new ue(c.error,"failed to get confirmed signatures for address");return c.result}async getSignaturesForAddress(t,n,e){const o=this._buildArgsAtLeastConfirmed([t.toBase58()],e,void 0,n),i=await this._rpcRequest("getSignaturesForAddress",o),c=Qt(i,d3);if("error"in c)throw new ue(c.error,"failed to get signatures for address");return c.result}async getAddressLookupTable(t,n){const{context:e,value:o}=await this.getAccountInfoAndContext(t,n);let i=null;return o!==null&&(i=new Ka({key:t,state:Ka.deserialize(o.data)})),{context:e,value:i}}async getNonceAndContext(t,n){const{context:e,value:o}=await this.getAccountInfoAndContext(t,n);let i=null;return o!==null&&(i=gs.fromAccountData(o.data)),{context:e,value:i}}async getNonce(t,n){return await this.getNonceAndContext(t,n).then(e=>e.value).catch(e=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)})}async requestAirdrop(t,n){const e=await this._rpcRequest("requestAirdrop",[t.toBase58(),n]),o=Qt(e,W3);if("error"in o)throw new ue(o.error,`airdrop to ${t.toBase58()} failed`);return o.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await ai(100);const e=Date.now()-this._blockhashInfo.lastFetch>=$f;if(this._blockhashInfo.latestBlockhash!==null&&!e)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),n=this._blockhashInfo.latestBlockhash,e=n?n.blockhash:null;for(let o=0;o<50;o++){const i=await this.getLatestBlockhash("finalized");if(e!==i.blockhash)return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},i;await ai(Wf/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:n,config:e}=Ze(t),o=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getStakeMinimumDelegation",o),c=Qt(i,pn(Rt()));if("error"in c)throw new ue(c.error,"failed to get stake minimum delegation");return c.result}async simulateTransaction(t,n,e){if("message"in t){const M=t.serialize(),V=ge.Buffer.from(M).toString("base64");if(Array.isArray(n)||e!==void 0)throw new Error("Invalid arguments");const G=n||{};G.encoding="base64","commitment"in G||(G.commitment=this.commitment),n&&typeof n=="object"&&"innerInstructions"in n&&(G.innerInstructions=n.innerInstructions);const J=[V,G],$=await this._rpcRequest("simulateTransaction",J),nt=Qt($,Qf);if("error"in nt)throw new Error("failed to simulate transaction: "+nt.error.message);return nt.result}let o;if(t instanceof Fe){let C=t;o=new Fe,o.feePayer=C.feePayer,o.instructions=t.instructions,o.nonceInfo=C.nonceInfo,o.signatures=C.signatures}else o=Fe.populate(t),o._message=o._json=void 0;if(n!==void 0&&!Array.isArray(n))throw new Error("Invalid arguments");const i=n;if(o.nonceInfo&&i)o.sign(...i);else{let C=this._disableBlockhashCaching;for(;;){const M=await this._blockhashWithExpiryBlockHeight(C);if(o.lastValidBlockHeight=M.lastValidBlockHeight,o.recentBlockhash=M.blockhash,!i)break;if(o.sign(...i),!o.signature)throw new Error("!signature");const V=o.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(V)&&!this._blockhashInfo.transactionSignatures.includes(V)){this._blockhashInfo.simulatedSignatures.push(V);break}else C=!0}}const c=o._compile(),d=c.serialize(),p=o._serialize(d).toString("base64"),S={encoding:"base64",commitment:this.commitment};if(e){const C=(Array.isArray(e)?e:c.nonProgramIds()).map(M=>M.toBase58());S.accounts={encoding:"base64",addresses:C}}i&&(S.sigVerify=!0),n&&typeof n=="object"&&"innerInstructions"in n&&(S.innerInstructions=n.innerInstructions);const x=[p,S],T=await this._rpcRequest("simulateTransaction",x),k=Qt(T,Qf);if("error"in k){let C;if("data"in k.error&&(C=k.error.data.logs,C&&Array.isArray(C))){const M=`
|
|
12
|
-
`,V=M+C.join(M);console.error(k.error.message,V)}throw new co({action:"simulate",signature:"",transactionMessage:k.error.message,logs:C})}return k.result}async sendTransaction(t,n,e){if("version"in t){if(n&&Array.isArray(n))throw new Error("Invalid arguments");const c=t.serialize();return await this.sendRawTransaction(c,n)}if(n===void 0||!Array.isArray(n))throw new Error("Invalid arguments");const o=n;if(t.nonceInfo)t.sign(...o);else{let c=this._disableBlockhashCaching;for(;;){const d=await this._blockhashWithExpiryBlockHeight(c);if(t.lastValidBlockHeight=d.lastValidBlockHeight,t.recentBlockhash=d.blockhash,t.sign(...o),!t.signature)throw new Error("!signature");const f=t.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(f))c=!0;else{this._blockhashInfo.transactionSignatures.push(f);break}}}const i=t.serialize();return await this.sendRawTransaction(i,e)}async sendRawTransaction(t,n){const e=Re(t).toString("base64");return await this.sendEncodedTransaction(e,n)}async sendEncodedTransaction(t,n){const e={encoding:"base64"},o=n&&n.skipPreflight,i=o===!0?"processed":n&&n.preflightCommitment||this.commitment;n&&n.maxRetries!=null&&(e.maxRetries=n.maxRetries),n&&n.minContextSlot!=null&&(e.minContextSlot=n.minContextSlot),o&&(e.skipPreflight=o),i&&(e.preflightCommitment=i);const c=[t,e],d=await this._rpcRequest("sendTransaction",c),f=Qt(d,z3);if("error"in f){let p;throw"data"in f.error&&(p=f.error.data.logs),new co({action:o?"send":"simulate",signature:"",transactionMessage:f.error.message,logs:p})}return f.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),t===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([n,e])=>{this._setSubscription(n,{...e,state:"pending"})})}_setSubscription(t,n){const e=this._subscriptionsByHash[t]?.state;if(this._subscriptionsByHash[t]=n,e!==n.state){const o=this._subscriptionStateChangeCallbacksByHash[t];o&&o.forEach(i=>{try{i(n.state)}catch{}})}}_onSubscriptionStateChange(t,n){const e=this._subscriptionHashByClientSubscriptionId[t];if(e==null)return()=>{};const o=this._subscriptionStateChangeCallbacksByHash[e]||=new Set;return o.add(n),()=>{o.delete(n),o.size===0&&delete this._subscriptionStateChangeCallbacksByHash[e]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log(`Error when closing socket connection: ${e.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const t=this._rpcWebSocketGeneration,n=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async e=>{const o=this._subscriptionsByHash[e];if(o!==void 0)switch(o.state){case"pending":case"unsubscribed":if(o.callbacks.size===0){delete this._subscriptionsByHash[e],o.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[o.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:i,method:c}=o;try{this._setSubscription(e,{...o,state:"subscribing"});const d=await this._rpcWebSocket.call(c,i);this._setSubscription(e,{...o,serverSubscriptionId:d,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[d]=o.callbacks,await this._updateSubscriptions()}catch(d){if(console.error(`Received ${d instanceof Error?"":"JSON-RPC "}error calling \`${c}\``,{args:i,error:d}),!n())return;this._setSubscription(e,{...o,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":o.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:i,unsubscribeMethod:c}=o;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(e,{...o,state:"unsubscribing"}),this._setSubscription(e,{...o,state:"unsubscribing"});try{await this._rpcWebSocket.call(c,[i])}catch(d){if(d instanceof Error&&console.error(`${c} error:`,d.message),!n())return;this._setSubscription(e,{...o,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(e,{...o,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,n){const e=this._subscriptionCallbacksByServerSubscriptionId[t];e!==void 0&&e.forEach(o=>{try{o(...n)}catch(i){console.error(i)}})}_wsOnAccountNotification(t){const{result:n,subscription:e}=Qt(t,h3);this._handleServerNotification(e,[n.value,n.context])}_makeSubscription(t,n){const e=this._nextClientSubscriptionId++,o=jf([t.method,n]),i=this._subscriptionsByHash[o];return i===void 0?this._subscriptionsByHash[o]={...t,args:n,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[e]=o,this._subscriptionDisposeFunctionsByClientSubscriptionId[e]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[e],delete this._subscriptionHashByClientSubscriptionId[e];const c=this._subscriptionsByHash[o];Me(c!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${e}`),c.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),e}onAccountChange(t,n,e){const{commitment:o,config:i}=Ze(e),c=this._buildArgs([t.toBase58()],o||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:n,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},c)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:n,subscription:e}=Qt(t,g3);this._handleServerNotification(e,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}onProgramAccountChange(t,n,e,o){const{commitment:i,config:c}=Ze(e),d=this._buildArgs([t.toBase58()],i||this._commitment||"finalized","base64",c||(o?{filters:Xf(o)}:void 0));return this._makeSubscription({callback:n,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},d)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,n,e){const o=this._buildArgs([typeof t=="object"?{mentions:[t.toString()]}:t],e||this._commitment||"finalized");return this._makeSubscription({callback:n,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},o)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:n,subscription:e}=Qt(t,K3);this._handleServerNotification(e,[n.value,n.context])}_wsOnSlotNotification(t){const{result:n,subscription:e}=Qt(t,v3);this._handleServerNotification(e,[n])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:n,subscription:e}=Qt(t,w3);this._handleServerNotification(e,[n])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,n){const e=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];e?await e():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${n}' events could not be found.`)}_buildArgs(t,n,e,o){const i=n||this._commitment;if(i||e||o){let c={};e&&(c.encoding=e),i&&(c.commitment=i),o&&(c=Object.assign(c,o)),t.push(c)}return t}_buildArgsAtLeastConfirmed(t,n,e,o){const i=n||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,n,e,o)}_wsOnSignatureNotification(t){const{result:n,subscription:e}=Qt(t,b3);n.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(e),this._handleServerNotification(e,n.value==="receivedSignature"?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}onSignature(t,n,e){const o=this._buildArgs([t],e||this._commitment||"finalized"),i=this._makeSubscription({callback:(c,d)=>{if(c.type==="status"){n(c.result,d);try{this.removeSignatureListener(i)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return i}onSignatureWithOptions(t,n,e){const{commitment:o,...i}={...e,commitment:e&&e.commitment||this._commitment||"finalized"},c=this._buildArgs([t],o,void 0,i),d=this._makeSubscription({callback:(f,p)=>{n(f,p);try{this.removeSignatureListener(d)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},c);return d}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:n,subscription:e}=Qt(t,_3);this._handleServerNotification(e,[n])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Bi{constructor(t){this._keypair=void 0,this._keypair=t??Pf()}static generate(){return new Bi(Pf())}static fromSecretKey(t,n){if(t.byteLength!==64)throw new Error("bad secret key size");const e=t.slice(32,64);if(!n||!n.skipValidation){const o=t.slice(0,32),i=fs(o);for(let c=0;c<32;c++)if(e[c]!==i[c])throw new Error("provided secretKey is invalid")}return new Bi({publicKey:e,secretKey:t})}static fromSeed(t){const n=fs(t),e=new Uint8Array(64);return e.set(t),e.set(n,32),new Bi({publicKey:n,secretKey:e})}get publicKey(){return new Jt(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const Or=Object.freeze({CreateLookupTable:{index:0,layout:at.struct([at.u32("instruction"),Ci("recentSlot"),at.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:at.struct([at.u32("instruction")])},ExtendLookupTable:{index:2,layout:at.struct([at.u32("instruction"),Ci(),at.seq(ke(),at.offset(at.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:at.struct([at.u32("instruction")])},CloseLookupTable:{index:4,layout:at.struct([at.u32("instruction")])}});class q3{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=at.u32("instruction").decode(t.data);let o;for(const[i,c]of Object.entries(Or))if(c.index==e){o=i;break}if(!o)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return o}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:n}=He(Or.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(n)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:n}=He(Or.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:n.map(e=>new Jt(e))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(tc.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,n){if(t.length<n)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${n}`)}}class tc{constructor(){}static createLookupTable(t){const[n,e]=Jt.findProgramAddressSync([t.authority.toBuffer(),sf().encode(t.recentSlot)],this.programId),o=Or.CreateLookupTable,i=Ce(o,{recentSlot:BigInt(t.recentSlot),bumpSeed:e}),c=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:En.programId,isSigner:!1,isWritable:!1}];return[new je({programId:this.programId,keys:c,data:i}),n]}static freezeLookupTable(t){const n=Or.FreezeLookupTable,e=Ce(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new je({programId:this.programId,keys:o,data:e})}static extendLookupTable(t){const n=Or.ExtendLookupTable,e=Ce(n,{addresses:t.addresses.map(i=>i.toBytes())}),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&o.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:En.programId,isSigner:!1,isWritable:!1}),new je({programId:this.programId,keys:o,data:e})}static deactivateLookupTable(t){const n=Or.DeactivateLookupTable,e=Ce(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new je({programId:this.programId,keys:o,data:e})}static closeLookupTable(t){const n=Or.CloseLookupTable,e=Ce(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new je({programId:this.programId,keys:o,data:e})}}tc.programId=new Jt("AddressLookupTab1e1111111111111111111111111");class Z3{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=at.u8("instruction").decode(t.data);let o;for(const[i,c]of Object.entries(hr))if(c.index==e){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return o}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:n,additionalFee:e}=He(hr.RequestUnits,t.data);return{units:n,additionalFee:e}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:n}=He(hr.RequestHeapFrame,t.data);return{bytes:n}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:n}=He(hr.SetComputeUnitLimit,t.data);return{units:n}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:n}=He(hr.SetComputeUnitPrice,t.data);return{microLamports:n}}static checkProgramId(t){if(!t.equals(ec.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const hr=Object.freeze({RequestUnits:{index:0,layout:at.struct([at.u8("instruction"),at.u32("units"),at.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:at.struct([at.u8("instruction"),at.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:at.struct([at.u8("instruction"),at.u32("units")])},SetComputeUnitPrice:{index:3,layout:at.struct([at.u8("instruction"),Ci("microLamports")])}});class ec{constructor(){}static requestUnits(t){const n=hr.RequestUnits,e=Ce(n,t);return new je({keys:[],programId:this.programId,data:e})}static requestHeapFrame(t){const n=hr.RequestHeapFrame,e=Ce(n,t);return new je({keys:[],programId:this.programId,data:e})}static setComputeUnitLimit(t){const n=hr.SetComputeUnitLimit,e=Ce(n,t);return new je({keys:[],programId:this.programId,data:e})}static setComputeUnitPrice(t){const n=hr.SetComputeUnitPrice,e=Ce(n,{microLamports:BigInt(t.microLamports)});return new je({keys:[],programId:this.programId,data:e})}}ec.programId=new Jt("ComputeBudget111111111111111111111111111111");const fl=64,ll=32,dl=64,hl=at.struct([at.u8("numSignatures"),at.u8("padding"),at.u16("signatureOffset"),at.u16("signatureInstructionIndex"),at.u16("publicKeyOffset"),at.u16("publicKeyInstructionIndex"),at.u16("messageDataOffset"),at.u16("messageDataSize"),at.u16("messageInstructionIndex")]);class bs{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:n,message:e,signature:o,instructionIndex:i}=t;Me(n.length===ll,`Public Key must be ${ll} bytes but received ${n.length} bytes`),Me(o.length===dl,`Signature must be ${dl} bytes but received ${o.length} bytes`);const c=hl.span,d=c+n.length,f=d+o.length,p=1,S=ge.Buffer.alloc(f+e.length),x=i??65535;return hl.encode({numSignatures:p,padding:0,signatureOffset:d,signatureInstructionIndex:x,publicKeyOffset:c,publicKeyInstructionIndex:x,messageDataOffset:f,messageDataSize:e.length,messageInstructionIndex:x},S),S.fill(n,c),S.fill(o,d),S.fill(e,f),new je({keys:[],programId:bs.programId,data:S})}static createInstructionWithPrivateKey(t){const{privateKey:n,message:e,instructionIndex:o}=t;Me(n.length===fl,`Private key must be ${fl} bytes but received ${n.length} bytes`);try{const i=Bi.fromSecretKey(n),c=i.publicKey.toBytes(),d=Ba(e,i.secretKey);return this.createInstructionWithPublicKey({publicKey:c,message:e,signature:d,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}bs.programId=new Jt("Ed25519SigVerify111111111111111111111111111");const $3=(r,t)=>{const n=La.sign(r,t);return[n.toCompactRawBytes(),n.recovery]};La.utils.isValidPrivateKey;const X3=La.getPublicKey,pl=32,nc=20,gl=64,J3=11,rc=at.struct([at.u8("numSignatures"),at.u16("signatureOffset"),at.u8("signatureInstructionIndex"),at.u16("ethAddressOffset"),at.u8("ethAddressInstructionIndex"),at.u16("messageDataOffset"),at.u16("messageDataSize"),at.u8("messageInstructionIndex"),at.blob(20,"ethAddress"),at.blob(64,"signature"),at.u8("recoveryId")]);class Pi{constructor(){}static publicKeyToEthAddress(t){Me(t.length===gl,`Public key must be ${gl} bytes but received ${t.length} bytes`);try{return ge.Buffer.from(kf(Re(t))).slice(-nc)}catch(n){throw new Error(`Error constructing Ethereum address: ${n}`)}}static createInstructionWithPublicKey(t){const{publicKey:n,message:e,signature:o,recoveryId:i,instructionIndex:c}=t;return Pi.createInstructionWithEthAddress({ethAddress:Pi.publicKeyToEthAddress(n),message:e,signature:o,recoveryId:i,instructionIndex:c})}static createInstructionWithEthAddress(t){const{ethAddress:n,message:e,signature:o,recoveryId:i,instructionIndex:c=0}=t;let d;typeof n=="string"?n.startsWith("0x")?d=ge.Buffer.from(n.substr(2),"hex"):d=ge.Buffer.from(n,"hex"):d=n,Me(d.length===nc,`Address must be ${nc} bytes but received ${d.length} bytes`);const f=1+J3,p=f,S=f+d.length,x=S+o.length+1,T=1,k=ge.Buffer.alloc(rc.span+e.length);return rc.encode({numSignatures:T,signatureOffset:S,signatureInstructionIndex:c,ethAddressOffset:p,ethAddressInstructionIndex:c,messageDataOffset:x,messageDataSize:e.length,messageInstructionIndex:c,signature:Re(o),ethAddress:Re(d),recoveryId:i},k),k.fill(Re(e),rc.span),new je({keys:[],programId:Pi.programId,data:k})}static createInstructionWithPrivateKey(t){const{privateKey:n,message:e,instructionIndex:o}=t;Me(n.length===pl,`Private key must be ${pl} bytes but received ${n.length} bytes`);try{const i=Re(n),c=X3(i,!1).slice(1),d=ge.Buffer.from(kf(Re(e))),[f,p]=$3(d,i);return this.createInstructionWithPublicKey({publicKey:c,message:e,signature:f,recoveryId:p,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Pi.programId=new Jt("KeccakSecp256k11111111111111111111111111111");var ml;const vl=new Jt("StakeConfig11111111111111111111111111111111");class yl{constructor(t,n){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=n}}class lo{constructor(t,n,e){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=e}}ml=lo,lo.default=new ml(0,0,Jt.default);class Q3{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=at.u32("instruction").decode(t.data);let o;for(const[i,c]of Object.entries(Rn))if(c.index==e){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a StakeInstruction");return o}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:n,lockup:e}=He(Rn.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new yl(new Jt(n.staker),new Jt(n.withdrawer)),lockup:new lo(e.unixTimestamp,e.epoch,new Jt(e.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),He(Rn.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:n,stakeAuthorizationType:e}=He(Rn.Authorize,t.data),o={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Jt(n),stakeAuthorizationType:{index:e}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:n,stakeAuthorizationType:e,authoritySeed:o,authorityOwner:i}=He(Rn.AuthorizeWithSeed,t.data),c={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:o,authorityOwner:new Jt(i),newAuthorizedPubkey:new Jt(n),stakeAuthorizationType:{index:e}};return t.keys.length>3&&(c.custodianPubkey=t.keys[3].pubkey),c}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:n}=He(Rn.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:n}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),He(Rn.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:n}=He(Rn.Withdraw,t.data),e={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:n};return t.keys.length>5&&(e.custodianPubkey=t.keys[5].pubkey),e}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),He(Rn.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(_s.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,n){if(t.length<n)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${n}`)}}const Rn=Object.freeze({Initialize:{index:0,layout:at.struct([at.u32("instruction"),sy(),ay()])},Authorize:{index:1,layout:at.struct([at.u32("instruction"),ke("newAuthorized"),at.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:at.struct([at.u32("instruction")])},Split:{index:3,layout:at.struct([at.u32("instruction"),at.ns64("lamports")])},Withdraw:{index:4,layout:at.struct([at.u32("instruction"),at.ns64("lamports")])},Deactivate:{index:5,layout:at.struct([at.u32("instruction")])},Merge:{index:7,layout:at.struct([at.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:at.struct([at.u32("instruction"),ke("newAuthorized"),at.u32("stakeAuthorizationType"),oi("authoritySeed"),ke("authorityOwner")])}}),t4=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class _s{constructor(){}static initialize(t){const{stakePubkey:n,authorized:e,lockup:o}=t,i=o||lo.default,c=Rn.Initialize,d=Ce(c,{authorized:{staker:Re(e.staker.toBuffer()),withdrawer:Re(e.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:Re(i.custodian.toBuffer())}}),f={keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:xi,isSigner:!1,isWritable:!1}],programId:this.programId,data:d};return new je(f)}static createAccountWithSeed(t){const n=new Fe;n.add(En.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:e,authorized:o,lockup:i}=t;return n.add(this.initialize({stakePubkey:e,authorized:o,lockup:i}))}static createAccount(t){const n=new Fe;n.add(En.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:e,authorized:o,lockup:i}=t;return n.add(this.initialize({stakePubkey:e,authorized:o,lockup:i}))}static delegate(t){const{stakePubkey:n,authorizedPubkey:e,votePubkey:o}=t,i=Rn.Delegate,c=Ce(i);return new Fe().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ps,isSigner:!1,isWritable:!1},{pubkey:vl,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}],programId:this.programId,data:c})}static authorize(t){const{stakePubkey:n,authorizedPubkey:e,newAuthorizedPubkey:o,stakeAuthorizationType:i,custodianPubkey:c}=t,d=Rn.Authorize,f=Ce(d,{newAuthorized:Re(o.toBuffer()),stakeAuthorizationType:i.index}),p=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!0,isWritable:!1}];return c&&p.push({pubkey:c,isSigner:!0,isWritable:!1}),new Fe().add({keys:p,programId:this.programId,data:f})}static authorizeWithSeed(t){const{stakePubkey:n,authorityBase:e,authoritySeed:o,authorityOwner:i,newAuthorizedPubkey:c,stakeAuthorizationType:d,custodianPubkey:f}=t,p=Rn.AuthorizeWithSeed,S=Ce(p,{newAuthorized:Re(c.toBuffer()),stakeAuthorizationType:d.index,authoritySeed:o,authorityOwner:Re(i.toBuffer())}),x=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!0,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1}];return f&&x.push({pubkey:f,isSigner:!0,isWritable:!1}),new Fe().add({keys:x,programId:this.programId,data:S})}static splitInstruction(t){const{stakePubkey:n,authorizedPubkey:e,splitStakePubkey:o,lamports:i}=t,c=Rn.Split,d=Ce(c,{lamports:i});return new je({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!0,isWritable:!1}],programId:this.programId,data:d})}static split(t,n){const e=new Fe;return e.add(En.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:n,space:this.space,programId:this.programId})),e.add(this.splitInstruction(t))}static splitWithSeed(t,n){const{stakePubkey:e,authorizedPubkey:o,splitStakePubkey:i,basePubkey:c,seed:d,lamports:f}=t,p=new Fe;return p.add(En.allocate({accountPubkey:i,basePubkey:c,seed:d,space:this.space,programId:this.programId})),n&&n>0&&p.add(En.transfer({fromPubkey:t.authorizedPubkey,toPubkey:i,lamports:n})),p.add(this.splitInstruction({stakePubkey:e,authorizedPubkey:o,splitStakePubkey:i,lamports:f}))}static merge(t){const{stakePubkey:n,sourceStakePubKey:e,authorizedPubkey:o}=t,i=Rn.Merge,c=Ce(i);return new Fe().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ps,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!0,isWritable:!1}],programId:this.programId,data:c})}static withdraw(t){const{stakePubkey:n,authorizedPubkey:e,toPubkey:o,lamports:i,custodianPubkey:c}=t,d=Rn.Withdraw,f=Ce(d,{lamports:i}),p=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ps,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return c&&p.push({pubkey:c,isSigner:!0,isWritable:!1}),new Fe().add({keys:p,programId:this.programId,data:f})}static deactivate(t){const{stakePubkey:n,authorizedPubkey:e}=t,o=Rn.Deactivate,i=Ce(o);return new Fe().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}_s.programId=new Jt("Stake11111111111111111111111111111111111111"),_s.space=200;class wl{constructor(t,n,e,o){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=n,this.authorizedWithdrawer=e,this.commission=o}}class e4{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=at.u32("instruction").decode(t.data);let o;for(const[i,c]of Object.entries(pr))if(c.index==e){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a VoteInstruction");return o}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:n}=He(pr.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new wl(new Jt(n.nodePubkey),new Jt(n.authorizedVoter),new Jt(n.authorizedWithdrawer),n.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:n,voteAuthorizationType:e}=He(pr.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Jt(n),voteAuthorizationType:{index:e}}}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:e,newAuthorized:o,voteAuthorizationType:i}}=He(pr.AuthorizeWithSeed,t.data);return{currentAuthorityDerivedKeyBasePubkey:t.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new Jt(n),currentAuthorityDerivedKeySeed:e,newAuthorizedPubkey:new Jt(o),voteAuthorizationType:{index:i},votePubkey:t.keys[0].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:n}=He(pr.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:n,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Mi.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,n){if(t.length<n)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${n}`)}}const pr=Object.freeze({InitializeAccount:{index:0,layout:at.struct([at.u32("instruction"),cy()])},Authorize:{index:1,layout:at.struct([at.u32("instruction"),ke("newAuthorized"),at.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:at.struct([at.u32("instruction"),at.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:at.struct([at.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:at.struct([at.u32("instruction"),uy()])}}),n4=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Mi{constructor(){}static initializeAccount(t){const{votePubkey:n,nodePubkey:e,voteInit:o}=t,i=pr.InitializeAccount,c=Ce(i,{voteInit:{nodePubkey:Re(o.nodePubkey.toBuffer()),authorizedVoter:Re(o.authorizedVoter.toBuffer()),authorizedWithdrawer:Re(o.authorizedWithdrawer.toBuffer()),commission:o.commission}}),d={keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:xi,isSigner:!1,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}],programId:this.programId,data:c};return new je(d)}static createAccount(t){const n=new Fe;return n.add(En.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),n.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:n,authorizedPubkey:e,newAuthorizedPubkey:o,voteAuthorizationType:i}=t,c=pr.Authorize,d=Ce(c,{newAuthorized:Re(o.toBuffer()),voteAuthorizationType:i.index}),f=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return new Fe().add({keys:f,programId:this.programId,data:d})}static authorizeWithSeed(t){const{currentAuthorityDerivedKeyBasePubkey:n,currentAuthorityDerivedKeyOwnerPubkey:e,currentAuthorityDerivedKeySeed:o,newAuthorizedPubkey:i,voteAuthorizationType:c,votePubkey:d}=t,f=pr.AuthorizeWithSeed,p=Ce(f,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Re(e.toBuffer()),currentAuthorityDerivedKeySeed:o,newAuthorized:Re(i.toBuffer()),voteAuthorizationType:c.index}}),S=[{pubkey:d,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Fe().add({keys:S,programId:this.programId,data:p})}static withdraw(t){const{votePubkey:n,authorizedWithdrawerPubkey:e,lamports:o,toPubkey:i}=t,c=pr.Withdraw,d=Ce(c,{lamports:o}),f=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!0,isWritable:!1}];return new Fe().add({keys:f,programId:this.programId,data:d})}static safeWithdraw(t,n,e){if(t.lamports>n-e)throw new Error("Withdraw will leave vote account with insufficient funds.");return Mi.withdraw(t)}static updateValidatorIdentity(t){const{votePubkey:n,authorizedWithdrawerPubkey:e,nodePubkey:o}=t,i=pr.UpdateValidatorIdentity,c=Ce(i),d=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!0,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return new Fe().add({keys:d,programId:this.programId,data:c})}}Mi.programId=new Jt("Vote111111111111111111111111111111111111111"),Mi.space=3762;const bl=new Jt("Va1idator1nfo111111111111111111111111111111"),r4=Dt({name:$t(),website:de($t()),details:de($t()),iconUrl:de($t()),keybaseUsername:de($t())});class ic{constructor(t,n){this.key=void 0,this.info=void 0,this.key=t,this.info=n}static fromConfigData(t){let n=[...t];if(Hn(n)!==2)return null;const o=[];for(let i=0;i<2;i++){const c=new Jt(Wn(n,0,fr)),d=lr(n)===1;o.push({publicKey:c,isSigner:d})}if(o[0].publicKey.equals(bl)&&o[1].isSigner){const i=oi().decode(ge.Buffer.from(n)),c=JSON.parse(i);return cf(c,r4),new ic(o[1].publicKey,c)}return null}}const i4=new Jt("Vote111111111111111111111111111111111111111"),o4=at.struct([ke("nodePubkey"),ke("authorizedWithdrawer"),at.u8("commission"),at.nu64(),at.seq(at.struct([at.nu64("slot"),at.u32("confirmationCount")]),at.offset(at.u32(),-8),"votes"),at.u8("rootSlotValid"),at.nu64("rootSlot"),at.nu64(),at.seq(at.struct([at.nu64("epoch"),ke("authorizedVoter")]),at.offset(at.u32(),-8),"authorizedVoters"),at.struct([at.seq(at.struct([ke("authorizedPubkey"),at.nu64("epochOfLastAuthorizedSwitch"),at.nu64("targetEpoch")]),32,"buf"),at.nu64("idx"),at.u8("isEmpty")],"priorVoters"),at.nu64(),at.seq(at.struct([at.nu64("epoch"),at.nu64("credits"),at.nu64("prevCredits")]),at.offset(at.u32(),-8),"epochCredits"),at.struct([at.nu64("slot"),at.nu64("timestamp")],"lastTimestamp")]);class oc{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const e=o4.decode(Re(t),4);let o=e.rootSlot;return e.rootSlotValid||(o=null),new oc({nodePubkey:new Jt(e.nodePubkey),authorizedWithdrawer:new Jt(e.authorizedWithdrawer),commission:e.commission,votes:e.votes,rootSlot:o,authorizedVoters:e.authorizedVoters.map(s4),priorVoters:a4(e.priorVoters),epochCredits:e.epochCredits,lastTimestamp:e.lastTimestamp})}}function s4({authorizedVoter:r,epoch:t}){return{epoch:t,authorizedVoter:new Jt(r)}}function _l({authorizedPubkey:r,epochOfLastAuthorizedSwitch:t,targetEpoch:n}){return{authorizedPubkey:new Jt(r),epochOfLastAuthorizedSwitch:t,targetEpoch:n}}function a4({buf:r,idx:t,isEmpty:n}){return n?[]:[...r.slice(t+1).map(_l),...r.slice(0,t).map(_l)]}const El={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function c4(r,t){const n=t===!1?"http":"https";if(!r)return El[n].devnet;const e=El[n][r];if(!e)throw new Error(`Unknown ${n} cluster: ${r}`);return e}async function u4(r,t,n,e){let o,i;n&&Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")||n&&Object.prototype.hasOwnProperty.call(n,"nonceValue")?(o=n,i=e):i=n;const c=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,minContextSlot:i.minContextSlot},d=await r.sendRawTransaction(t,c),f=i&&i.commitment,S=(await(o?r.confirmTransaction(o,f):r.confirmTransaction(d,f))).value;if(S.err)throw d!=null?new co({action:c?.skipPreflight?"send":"simulate",signature:d,transactionMessage:`Status: (${JSON.stringify(S)})`}):new Error(`Raw transaction ${d} failed (${JSON.stringify(S)})`);return d}const f4=Object.freeze(Object.defineProperty({__proto__:null,Account:ry,AddressLookupTableAccount:Ka,AddressLookupTableInstruction:q3,AddressLookupTableProgram:tc,Authorized:yl,BLOCKHASH_CACHE_TIMEOUT_MS:$f,BPF_LOADER_DEPRECATED_PROGRAM_ID:iy,BPF_LOADER_PROGRAM_ID:wy,BpfLoader:by,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:hr,ComputeBudgetInstruction:Z3,ComputeBudgetProgram:ec,Connection:Y3,Ed25519Program:bs,Enum:ey,EpochSchedule:Yf,FeeCalculatorLayout:zf,Keypair:Bi,LAMPORTS_PER_SOL:1e9,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:Or,Loader:ci,Lockup:lo,MAX_SEED_LENGTH:Df,Message:Qn,MessageAccountKeys:ao,MessageV0:si,NONCE_ACCOUNT_LENGTH:Wa,NonceAccount:gs,PACKET_DATA_SIZE:Vr,PUBLIC_KEY_LENGTH:fr,PublicKey:Jt,SIGNATURE_LENGTH_IN_BYTES:so,SOLANA_SCHEMA:oo,STAKE_CONFIG_ID:vl,STAKE_INSTRUCTION_LAYOUTS:Rn,SYSTEM_INSTRUCTION_LAYOUTS:qe,SYSVAR_CLOCK_PUBKEY:dr,SYSVAR_EPOCH_SCHEDULE_PUBKEY:ly,SYSVAR_INSTRUCTIONS_PUBKEY:dy,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:hs,SYSVAR_RENT_PUBKEY:xi,SYSVAR_REWARDS_PUBKEY:hy,SYSVAR_SLOT_HASHES_PUBKEY:py,SYSVAR_SLOT_HISTORY_PUBKEY:gy,SYSVAR_STAKE_HISTORY_PUBKEY:ps,Secp256k1Program:Pi,SendTransactionError:co,SolanaJSONRPCError:ue,SolanaJSONRPCErrorCode:my,StakeAuthorizationLayout:t4,StakeInstruction:Q3,StakeProgram:_s,Struct:Pa,SystemInstruction:vy,SystemProgram:En,Transaction:Fe,TransactionExpiredBlockheightExceededError:Ma,TransactionExpiredNonceInvalidError:Ni,TransactionExpiredTimeoutError:Ua,TransactionInstruction:je,TransactionMessage:Fa,TransactionStatus:kr,VALIDATOR_INFO_KEY:bl,VERSION_PREFIX_MASK:ls,VOTE_PROGRAM_ID:i4,ValidatorInfo:ic,VersionedMessage:Da,VersionedTransaction:Va,VoteAccount:oc,VoteAuthorizationLayout:n4,VoteInit:wl,VoteInstruction:e4,VoteProgram:Mi,clusterApiUrl:c4,sendAndConfirmRawTransaction:u4,sendAndConfirmTransaction:Ha},Symbol.toStringTag,{value:"Module"}));function l4(r){if(r.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let p=0;p<t.length;p++)t[p]=255;for(let p=0;p<r.length;p++){const S=r.charAt(p),x=S.charCodeAt(0);if(t[x]!==255)throw new TypeError(S+" is ambiguous");t[x]=p}const n=r.length,e=r.charAt(0),o=Math.log(n)/Math.log(256),i=Math.log(256)/Math.log(n);function c(p){if(p instanceof Uint8Array||(ArrayBuffer.isView(p)?p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength):Array.isArray(p)&&(p=Uint8Array.from(p))),!(p instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(p.length===0)return"";let S=0,x=0,T=0;const k=p.length;for(;T!==k&&p[T]===0;)T++,S++;const C=(k-T)*i+1>>>0,M=new Uint8Array(C);for(;T!==k;){let J=p[T],$=0;for(let nt=C-1;(J!==0||$<x)&&nt!==-1;nt--,$++)J+=256*M[nt]>>>0,M[nt]=J%n>>>0,J=J/n>>>0;if(J!==0)throw new Error("Non-zero carry");x=$,T++}let V=C-x;for(;V!==C&&M[V]===0;)V++;let G=e.repeat(S);for(;V<C;++V)G+=r.charAt(M[V]);return G}function d(p){if(typeof p!="string")throw new TypeError("Expected String");if(p.length===0)return new Uint8Array;let S=0,x=0,T=0;for(;p[S]===e;)x++,S++;const k=(p.length-S)*o+1>>>0,C=new Uint8Array(k);for(;S<p.length;){const J=p.charCodeAt(S);if(J>255)return;let $=t[J];if($===255)return;let nt=0;for(let pt=k-1;($!==0||nt<T)&&pt!==-1;pt--,nt++)$+=n*C[pt]>>>0,C[pt]=$%256>>>0,$=$/256>>>0;if($!==0)throw new Error("Non-zero carry");T=nt,S++}let M=k-T;for(;M!==k&&C[M]===0;)M++;const V=new Uint8Array(x+(k-M));let G=x;for(;M!==k;)V[G++]=C[M++];return V}function f(p){const S=d(p);if(S)return S;throw new Error("Non-base"+n+" character")}return{encode:c,decodeUnsafe:d,decode:f}}var d4="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const h4=l4(d4),Es=f4,Hr=h4;var sc={exports:{}},Rl;function p4(){return Rl||(Rl=1,(function(r){var t=(function(){var n=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function c(f,p){if(!i[f]){i[f]={};for(var S=0;S<f.length;S++)i[f][f.charAt(S)]=S}return i[f][p]}var d={compressToBase64:function(f){if(f==null)return"";var p=d._compress(f,6,function(S){return e.charAt(S)});switch(p.length%4){default:case 0:return p;case 1:return p+"===";case 2:return p+"==";case 3:return p+"="}},decompressFromBase64:function(f){return f==null?"":f==""?null:d._decompress(f.length,32,function(p){return c(e,f.charAt(p))})},compressToUTF16:function(f){return f==null?"":d._compress(f,15,function(p){return n(p+32)})+" "},decompressFromUTF16:function(f){return f==null?"":f==""?null:d._decompress(f.length,16384,function(p){return f.charCodeAt(p)-32})},compressToUint8Array:function(f){for(var p=d.compress(f),S=new Uint8Array(p.length*2),x=0,T=p.length;x<T;x++){var k=p.charCodeAt(x);S[x*2]=k>>>8,S[x*2+1]=k%256}return S},decompressFromUint8Array:function(f){if(f==null)return d.decompress(f);for(var p=new Array(f.length/2),S=0,x=p.length;S<x;S++)p[S]=f[S*2]*256+f[S*2+1];var T=[];return p.forEach(function(k){T.push(n(k))}),d.decompress(T.join(""))},compressToEncodedURIComponent:function(f){return f==null?"":d._compress(f,6,function(p){return o.charAt(p)})},decompressFromEncodedURIComponent:function(f){return f==null?"":f==""?null:(f=f.replace(/ /g,"+"),d._decompress(f.length,32,function(p){return c(o,f.charAt(p))}))},compress:function(f){return d._compress(f,16,function(p){return n(p)})},_compress:function(f,p,S){if(f==null)return"";var x,T,k={},C={},M="",V="",G="",J=2,$=3,nt=2,pt=[],lt=0,St=0,At;for(At=0;At<f.length;At+=1)if(M=f.charAt(At),Object.prototype.hasOwnProperty.call(k,M)||(k[M]=$++,C[M]=!0),V=G+M,Object.prototype.hasOwnProperty.call(k,V))G=V;else{if(Object.prototype.hasOwnProperty.call(C,G)){if(G.charCodeAt(0)<256){for(x=0;x<nt;x++)lt=lt<<1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++;for(T=G.charCodeAt(0),x=0;x<8;x++)lt=lt<<1|T&1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=T>>1}else{for(T=1,x=0;x<nt;x++)lt=lt<<1|T,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=0;for(T=G.charCodeAt(0),x=0;x<16;x++)lt=lt<<1|T&1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=T>>1}J--,J==0&&(J=Math.pow(2,nt),nt++),delete C[G]}else for(T=k[G],x=0;x<nt;x++)lt=lt<<1|T&1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=T>>1;J--,J==0&&(J=Math.pow(2,nt),nt++),k[V]=$++,G=String(M)}if(G!==""){if(Object.prototype.hasOwnProperty.call(C,G)){if(G.charCodeAt(0)<256){for(x=0;x<nt;x++)lt=lt<<1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++;for(T=G.charCodeAt(0),x=0;x<8;x++)lt=lt<<1|T&1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=T>>1}else{for(T=1,x=0;x<nt;x++)lt=lt<<1|T,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=0;for(T=G.charCodeAt(0),x=0;x<16;x++)lt=lt<<1|T&1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=T>>1}J--,J==0&&(J=Math.pow(2,nt),nt++),delete C[G]}else for(T=k[G],x=0;x<nt;x++)lt=lt<<1|T&1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=T>>1;J--,J==0&&(J=Math.pow(2,nt),nt++)}for(T=2,x=0;x<nt;x++)lt=lt<<1|T&1,St==p-1?(St=0,pt.push(S(lt)),lt=0):St++,T=T>>1;for(;;)if(lt=lt<<1,St==p-1){pt.push(S(lt));break}else St++;return pt.join("")},decompress:function(f){return f==null?"":f==""?null:d._decompress(f.length,32768,function(p){return f.charCodeAt(p)})},_decompress:function(f,p,S){var x=[],T=4,k=4,C=3,M="",V=[],G,J,$,nt,pt,lt,St,At={val:S(0),position:p,index:1};for(G=0;G<3;G+=1)x[G]=G;for($=0,pt=Math.pow(2,2),lt=1;lt!=pt;)nt=At.val&At.position,At.position>>=1,At.position==0&&(At.position=p,At.val=S(At.index++)),$|=(nt>0?1:0)*lt,lt<<=1;switch($){case 0:for($=0,pt=Math.pow(2,8),lt=1;lt!=pt;)nt=At.val&At.position,At.position>>=1,At.position==0&&(At.position=p,At.val=S(At.index++)),$|=(nt>0?1:0)*lt,lt<<=1;St=n($);break;case 1:for($=0,pt=Math.pow(2,16),lt=1;lt!=pt;)nt=At.val&At.position,At.position>>=1,At.position==0&&(At.position=p,At.val=S(At.index++)),$|=(nt>0?1:0)*lt,lt<<=1;St=n($);break;case 2:return""}for(x[3]=St,J=St,V.push(St);;){if(At.index>f)return"";for($=0,pt=Math.pow(2,C),lt=1;lt!=pt;)nt=At.val&At.position,At.position>>=1,At.position==0&&(At.position=p,At.val=S(At.index++)),$|=(nt>0?1:0)*lt,lt<<=1;switch(St=$){case 0:for($=0,pt=Math.pow(2,8),lt=1;lt!=pt;)nt=At.val&At.position,At.position>>=1,At.position==0&&(At.position=p,At.val=S(At.index++)),$|=(nt>0?1:0)*lt,lt<<=1;x[k++]=n($),St=k-1,T--;break;case 1:for($=0,pt=Math.pow(2,16),lt=1;lt!=pt;)nt=At.val&At.position,At.position>>=1,At.position==0&&(At.position=p,At.val=S(At.index++)),$|=(nt>0?1:0)*lt,lt<<=1;x[k++]=n($),St=k-1,T--;break;case 2:return V.join("")}if(T==0&&(T=Math.pow(2,C),C++),x[St])M=x[St];else if(St===k)M=J+J.charAt(0);else return null;V.push(M),x[k++]=J+M.charAt(0),T--,J=M,T==0&&(T=Math.pow(2,C),C++)}}};return d})();r!=null?r.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(sc)),sc.exports}var g4=p4();const $n=qi(g4);var ac=(r=>(r.USD="USD",r.AED="AED",r.AFN="AFN",r.ALL="ALL",r.AMD="AMD",r.ANG="ANG",r.AOA="AOA",r.ARS="ARS",r.AUD="AUD",r.AWG="AWG",r.AZN="AZN",r.BAM="BAM",r.BBD="BBD",r.BDT="BDT",r.BGN="BGN",r.BHD="BHD",r.BIF="BIF",r.BMD="BMD",r.BND="BND",r.BOB="BOB",r.BRL="BRL",r.BSD="BSD",r.BTN="BTN",r.BWP="BWP",r.BYN="BYN",r.BZD="BZD",r.CAD="CAD",r.CHF="CHF",r.CLF="CLF",r.CLP="CLP",r.CNY="CNY",r.COP="COP",r.CRC="CRC",r.CUP="CUP",r.CVE="CVE",r.CZK="CZK",r.DJF="DJF",r.DKK="DKK",r.DOP="DOP",r.DZD="DZD",r.EGP="EGP",r.ETB="ETB",r.EUR="EUR",r.FJD="FJD",r.GBP="GBP",r.GEL="GEL",r.GHS="GHS",r.GMD="GMD",r.GNF="GNF",r.GTQ="GTQ",r.GYD="GYD",r.HKD="HKD",r.HNL="HNL",r.HTG="HTG",r.HUF="HUF",r.IDR="IDR",r.ILS="ILS",r.INR="INR",r.IQD="IQD",r.IRR="IRR",r.ISK="ISK",r.JMD="JMD",r.JOD="JOD",r.JPY="JPY",r.KES="KES",r.KGS="KGS",r.KHR="KHR",r.KMF="KMF",r.KRW="KRW",r.KWD="KWD",r.KYD="KYD",r.KZT="KZT",r.LAK="LAK",r.LBP="LBP",r.LKR="LKR",r.LRD="LRD",r.LSL="LSL",r.LYD="LYD",r.MAD="MAD",r.MDL="MDL",r.MGA="MGA",r.MKD="MKD",r.MMK="MMK",r.MNT="MNT",r.MOP="MOP",r.MRU="MRU",r.MUR="MUR",r.MWK="MWK",r.MVR="MVR",r.MXN="MXN",r.MYR="MYR",r.MZN="MZN",r.NAD="NAD",r.NGN="NGN",r.NIO="NIO",r.NOK="NOK",r.NPR="NPR",r.NZD="NZD",r.OMR="OMR",r.PAB="PAB",r.PEN="PEN",r.PGK="PGK",r.PHP="PHP",r.PKR="PKR",r.PLN="PLN",r.PYG="PYG",r.QAR="QAR",r.RON="RON",r.RSD="RSD",r.RWF="RWF",r.SAR="SAR",r.SCR="SCR",r.SDG="SDG",r.SEK="SEK",r.SGD="SGD",r.SLE="SLE",r.SLL="SLL",r.SOS="SOS",r.SRD="SRD",r.STN="STN",r.SVC="SVC",r.SYP="SYP",r.SZL="SZL",r.THB="THB",r.TJS="TJS",r.TMT="TMT",r.TND="TND",r.TOP="TOP",r.TRY="TRY",r.TTD="TTD",r.TWD="TWD",r.TZS="TZS",r.UAH="UAH",r.UGX="UGX",r.UYU="UYU",r.UZS="UZS",r.VND="VND",r.VUV="VUV",r.WST="WST",r.XAF="XAF",r.XCD="XCD",r.XOF="XOF",r.XPF="XPF",r.YER="YER",r.ZAR="ZAR",r.ZMW="ZMW",r.ZWL="ZWL",r.CDF="CDF",r.ERN="ERN",r.FKP="FKP",r.KPW="KPW",r.RUB="RUB",r.SBD="SBD",r.SHP="SHP",r.SSP="SSP",r.VES="VES",r))(ac||{});const m4={AED:"784",AFN:"971",ALL:"008",AMD:"051",ANG:"532",AOA:"973",AUD:"036",AWG:"533",AZN:"944",BAM:"977",BBD:"052",BDT:"050",BGN:"975",BHD:"048",BIF:"108",BND:"096",BOB:"068",BRL:"986",BTN:"064",BWP:"072",BZD:"084",CAD:"124",CHF:"756",CLP:"152",CNY:"156",COP:"170",CRC:"188",CVE:"132",CZK:"203",DJF:"262",DKK:"208",DOP:"214",DZD:"012",EGP:"818",ETB:"230",EUR:"978",GBP:"826",GEL:"981",GHS:"936",GMD:"270",GNF:"324",GTQ:"320",GYD:"328",HKD:"344",HNL:"340",HTG:"332",HUF:"348",IDR:"360",INR:"356",IQD:"368",IRR:"364",ISK:"352",JMD:"388",JOD:"400",JPY:"392",KES:"404",KGS:"417",KHR:"116",KMF:"174",KRW:"410",KWD:"414",KYD:"136",KZT:"398",LKR:"144",LRD:"430",LSL:"426",LYD:"434",MAD:"504",MDL:"498",MGA:"969",MKD:"807",MMK:"104",MNT:"496",MOP:"446",MRU:"929",MUR:"480",MVR:"462",MXN:"484",MYR:"458",NAD:"516",NGN:"566",NIO:"558",NOK:"578",NPR:"524",NZD:"554",OMR:"512",PAB:"590",PEN:"604",PHP:"608",PKR:"586",PLN:"985",PYG:"600",QAR:"634",RON:"946",RSD:"941",RWF:"646",SAR:"682",SCR:"690",SDG:"938",SEK:"752",SGD:"702",SLE:"925",SLL:"694",SOS:"706",STN:"930",SVC:"222",SYP:"760",SZL:"748",THB:"764",TJS:"972",TMT:"934",TND:"788",TRY:"949",TTD:"780",TWD:"901",TZS:"834",UAH:"980",UGX:"800",USD:"840",UYU:"858",UZS:"860",VND:"704",XAF:"950",XCD:"951",XOF:"952",XPF:"953",YER:"886",ZAR:"710",ZMW:"967",ARS:"032",BMD:"060",BSD:"044",BYN:"933",CUP:"192",FJD:"242",ILS:"376",LAK:"418",LBP:"422",MWK:"454",MZN:"943",PGK:"598",SRD:"968",TOP:"776",VUV:"548",WST:"882",ZWL:"932",CLF:"990",CDF:"976",ERN:"232",FKP:"238",KPW:"408",RUB:"643",SBD:"090",SHP:"654",SSP:"728",VES:"928"},Sl={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function v4(r){return r in Sl}const Al={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function y4(r){return r in Al}const w4=new Set(["CLF"]),b4=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),_4=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function E4(r){return w4.has(r)?4:b4.has(r)?3:_4.has(r)?0:2}function R4(r,t){return r.currency===t}var S4={269:function(r,t,n){n.r(t),n.d(t,{ERROR_API_KEY_EXPIRED:function(){return Ks},ERROR_API_KEY_INVALID:function(){return Gs},ERROR_API_KEY_MISSING:function(){return zs},ERROR_BAD_REQUEST_FORMAT:function(){return Qd},ERROR_BAD_RESPONSE_FORMAT:function(){return Oc},ERROR_CLIENT_TIMEOUT:function(){return Ac},ERROR_CSP_BLOCK:function(){return Tc},ERROR_FORBIDDEN_ENDPOINT:function(){return g0},ERROR_FORBIDDEN_HEADER:function(){return ih},ERROR_FORBIDDEN_ORIGIN:function(){return rh},ERROR_GENERAL_SERVER_FAILURE:function(){return th},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return p0},ERROR_INTEGRATION_FAILURE:function(){return m0},ERROR_INVALID_ENDPOINT:function(){return Nc},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return b0},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return w0},ERROR_NETWORK_ABORT:function(){return kc},ERROR_NETWORK_CONNECTION:function(){return Ic},ERROR_NETWORK_RESTRICTED:function(){return y0},ERROR_RATE_LIMIT:function(){return nh},ERROR_SERVER_TIMEOUT:function(){return eh},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return d0},ERROR_TOKEN_EXPIRED:function(){return Eb},ERROR_TOKEN_INVALID:function(){return _b},ERROR_TOKEN_MISSING:function(){return bb},ERROR_UNSUPPORTED_VERSION:function(){return h0},ERROR_WRONG_REGION:function(){return l0},default:function(){return Rb},defaultEndpoint:function(){return Bs},defaultTlsEndpoint:function(){return Ps},load:function(){return Z0},makeBotdModule:function(){return ub},makeConsoleDebugModule:function(){return yb},makeIdentificationModule:function(){return gb},makeLatencyReportModule:function(){return vb},makeRemoteDebugModule:function(){return wb},makeValidationModule:function(){return mb}});var e=n(635);function o(s,u){return new Promise((function(a){return setTimeout(a,s,u)}))}function i(s){return!!s&&typeof s.then=="function"}function c(s,u){try{var a=s();i(a)?a.then((function(l){return u(!0,l)}),(function(l){return u(!1,l)})):u(!0,a)}catch(l){u(!1,l)}}function d(s,u,a){return a===void 0&&(a=16),(0,e.sH)(this,void 0,void 0,(function(){var l,m,w,b;return(0,e.YH)(this,(function(_){switch(_.label){case 0:l=Array(s.length),m=Date.now(),w=0,_.label=1;case 1:return w<s.length?(l[w]=u(s[w],w),(b=Date.now())>=m+a?(m=b,[4,new Promise((function(v){var O=new MessageChannel;O.port1.onmessage=function(){return v()},O.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:_.sent(),_.label=3;case 3:return++w,[3,1];case 4:return[2,l]}}))}))}function f(s){return s.then(void 0,(function(){})),s}function p(s){return parseInt(s)}function S(s){return parseFloat(s)}function x(s,u){return typeof s=="number"&&isNaN(s)?u:s}function T(s){return s.reduce((function(u,a){return u+(a?1:0)}),0)}function k(s,u){var a=s[0]>>>16,l=65535&s[0],m=s[1]>>>16,w=65535&s[1],b=u[0]>>>16,_=65535&u[0],v=u[1]>>>16,O=0,B=0,L=0,q=0;L+=(q+=w+(65535&u[1]))>>>16,q&=65535,B+=(L+=m+v)>>>16,L&=65535,O+=(B+=l+_)>>>16,B&=65535,O+=a+b,O&=65535,s[0]=O<<16|B,s[1]=L<<16|q}function C(s,u){var a=s[0]>>>16,l=65535&s[0],m=s[1]>>>16,w=65535&s[1],b=u[0]>>>16,_=65535&u[0],v=u[1]>>>16,O=65535&u[1],B=0,L=0,q=0,Q=0;q+=(Q+=w*O)>>>16,Q&=65535,L+=(q+=m*O)>>>16,q&=65535,L+=(q+=w*v)>>>16,q&=65535,B+=(L+=l*O)>>>16,L&=65535,B+=(L+=m*v)>>>16,L&=65535,B+=(L+=w*_)>>>16,L&=65535,B+=a*O+l*v+m*_+w*b,B&=65535,s[0]=B<<16|L,s[1]=q<<16|Q}function M(s,u){var a=s[0];(u%=64)==32?(s[0]=s[1],s[1]=a):u<32?(s[0]=a<<u|s[1]>>>32-u,s[1]=s[1]<<u|a>>>32-u):(u-=32,s[0]=s[1]<<u|a>>>32-u,s[1]=a<<u|s[1]>>>32-u)}function V(s,u){(u%=64)!=0&&(u<32?(s[0]=s[1]>>>32-u,s[1]=s[1]<<u):(s[0]=s[1]<<u-32,s[1]=0))}function G(s,u){s[0]^=u[0],s[1]^=u[1]}var J=[4283543511,3981806797],$=[3301882366,444984403];function nt(s){var u=[0,s[0]>>>1];G(s,u),C(s,J),u[1]=s[0]>>>1,G(s,u),C(s,$),u[1]=s[0]>>>1,G(s,u)}var pt=[2277735313,289559509],lt=[1291169091,658871167],St=[0,5],At=[0,1390208809],st=[0,944331445];function dt(s){return typeof s!="function"}function vt(s,u,a,l){var m=Object.keys(s).filter((function(b){return!(function(_,v){for(var O=0,B=_.length;O<B;++O)if(_[O]===v)return!0;return!1})(a,b)})),w=f(d(m,(function(b){return(function(_,v){var O=f(new Promise((function(B){var L=Date.now();c(_.bind(null,v),(function(){for(var q=[],Q=0;Q<arguments.length;Q++)q[Q]=arguments[Q];var tt=Date.now()-L;if(!q[0])return B((function(){return{error:q[1],duration:tt}}));var rt=q[1];if(dt(rt))return B((function(){return{value:rt,duration:tt}}));B((function(){return new Promise((function(ct){var mt=Date.now();c(rt,(function(){for(var Et=[],gt=0;gt<arguments.length;gt++)Et[gt]=arguments[gt];var _t=tt+Date.now()-mt;if(!Et[0])return ct({error:Et[1],duration:_t});ct({value:Et[1],duration:_t})}))}))}))}))})));return function(){return O.then((function(B){return B()}))}})(s[b],u)}),l));return function(){return(0,e.sH)(this,void 0,void 0,(function(){var b,_,v,O;return(0,e.YH)(this,(function(B){switch(B.label){case 0:return[4,w];case 1:return[4,d(B.sent(),(function(L){return f(L())}),l)];case 2:return b=B.sent(),[4,Promise.all(b)];case 3:for(_=B.sent(),v={},O=0;O<m.length;++O)v[m[O]]=_[O];return[2,v]}}))}))}}function wt(s,u){var a=function(l){return dt(l)?u(l):function(){var m=l();return i(m)?m.then(u):u(m)}};return function(l){var m=s(l);return i(m)?m.then(a):a(m)}}function D(){var s=window,u=navigator;return T(["MSCSSMatrix"in s,"msSetImmediate"in s,"msIndexedDB"in s,"msMaxTouchPoints"in u,"msPointerEnabled"in u])>=4}function h(){var s=window,u=navigator;return T(["msWriteProfilerMark"in s,"MSStream"in s,"msLaunchUri"in u,"msSaveBlob"in u])>=3&&!D()}function I(){var s=window,u=navigator;return T(["webkitPersistentStorage"in u,"webkitTemporaryStorage"in u,(u.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in s,"BatteryManager"in s,"webkitMediaStream"in s,"webkitSpeechGrammar"in s])>=5}function U(){var s=window;return T(["ApplePayError"in s,"CSSPrimitiveValue"in s,"Counter"in s,navigator.vendor.indexOf("Apple")===0,"RGBColor"in s,"WebKitMediaKeys"in s])>=4}function j(){var s=window,u=s.HTMLElement,a=s.Document;return T(["safari"in s,!("ongestureend"in s),!("TouchEvent"in s),!("orientation"in s),u&&!("autocapitalize"in u.prototype),a&&"pointerLockElement"in a.prototype])>=4}function X(){var s,u,a=window;return T(["buildID"in navigator,"MozAppearance"in((u=(s=document.documentElement)===null||s===void 0?void 0:s.style)!==null&&u!==void 0?u:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function et(){var s=document;return s.fullscreenElement||s.msFullscreenElement||s.mozFullScreenElement||s.webkitFullscreenElement||null}function ut(){var s=I(),u=X(),a=window,l=navigator,m="connection";return s?T([!("SharedWorker"in a),l[m]&&"ontypechange"in l[m],!("sinkId"in new Audio)])>=2:!!u&&T(["onorientationchange"in a,"orientation"in a,/android/i.test(l.appVersion)])>=2}function Y(){var s=navigator,u=window,a=Audio.prototype,l=u.visualViewport;return T(["srLatency"in a,"srChannelCount"in a,"devicePosture"in s,l&&"segments"in l,"getTextInformation"in Image.prototype])>=3}function g(){var s=window,u=s.OfflineAudioContext||s.webkitOfflineAudioContext;if(!u)return-2;if(U()&&!j()&&!(function(){var O=window;return T(["DOMRectList"in O,"RTCPeerConnectionIceEvent"in O,"SVGGeometryElement"in O,"ontransitioncancel"in O])>=3})())return-1;var a=new u(1,5e3,44100),l=a.createOscillator();l.type="triangle",l.frequency.value=1e4;var m=a.createDynamicsCompressor();m.threshold.value=-50,m.knee.value=40,m.ratio.value=12,m.attack.value=0,m.release.value=.25,l.connect(m),m.connect(a.destination),l.start(0);var w=(function(O){var B=function(){};return[new Promise((function(L,q){var Q=!1,tt=0,rt=0;O.oncomplete=function(Et){return L(Et.renderedBuffer)};var ct=function(){setTimeout((function(){return q(E("timeout"))}),Math.min(500,rt+5e3-Date.now()))},mt=function(){try{var Et=O.startRendering();switch(i(Et)&&f(Et),O.state){case"running":rt=Date.now(),Q&&ct();break;case"suspended":document.hidden||tt++,Q&&tt>=3?q(E("suspended")):setTimeout(mt,500)}}catch(gt){q(gt)}};mt(),B=function(){Q||(Q=!0,rt>0&&ct())}})),B]})(a),b=w[0],_=w[1],v=f(b.then((function(O){return(function(B){for(var L=0,q=0;q<B.length;++q)L+=Math.abs(B[q]);return L})(O.getChannelData(0).subarray(4500))}),(function(O){if(O.name==="timeout"||O.name==="suspended")return-3;throw O})));return function(){return _(),v}}function E(s){var u=new Error(s);return u.name=s,u}function K(s,u,a){var l,m,w;return a===void 0&&(a=50),(0,e.sH)(this,void 0,void 0,(function(){var b,_;return(0,e.YH)(this,(function(v){switch(v.label){case 0:b=document,v.label=1;case 1:return b.body?[3,3]:[4,o(a)];case 2:return v.sent(),[3,1];case 3:_=b.createElement("iframe"),v.label=4;case 4:return v.trys.push([4,,10,11]),[4,new Promise((function(O,B){var L=!1,q=function(){L=!0,O()};_.onload=q,_.onerror=function(rt){L=!0,B(rt)};var Q=_.style;Q.setProperty("display","block","important"),Q.position="absolute",Q.top="0",Q.left="0",Q.visibility="hidden",u&&"srcdoc"in _?_.srcdoc=u:_.src="about:blank",b.body.appendChild(_);var tt=function(){var rt,ct;L||(((ct=(rt=_.contentWindow)===null||rt===void 0?void 0:rt.document)===null||ct===void 0?void 0:ct.readyState)==="complete"?q():setTimeout(tt,10))};tt()}))];case 5:v.sent(),v.label=6;case 6:return!((m=(l=_.contentWindow)===null||l===void 0?void 0:l.document)===null||m===void 0)&&m.body?[3,8]:[4,o(a)];case 7:return v.sent(),[3,6];case 8:return[4,s(_,_.contentWindow)];case 9:return[2,v.sent()];case 10:return(w=_.parentNode)===null||w===void 0||w.removeChild(_),[7];case 11:return[2]}}))}))}function Z(s){for(var u=(function(O){for(var B,L,q="Unexpected syntax '".concat(O,"'"),Q=/^\s*([a-z-]*)(.*)$/i.exec(O),tt=Q[1]||void 0,rt={},ct=/([.:#][\w-]+|\[.+?\])/gi,mt=function(Vt,Ht){rt[Vt]=rt[Vt]||[],rt[Vt].push(Ht)};;){var Et=ct.exec(Q[2]);if(!Et)break;var gt=Et[0];switch(gt[0]){case".":mt("class",gt.slice(1));break;case"#":mt("id",gt.slice(1));break;case"[":var _t=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(gt);if(!_t)throw new Error(q);mt(_t[1],(L=(B=_t[4])!==null&&B!==void 0?B:_t[5])!==null&&L!==void 0?L:"");break;default:throw new Error(q)}}return[tt,rt]})(s),a=u[0],l=u[1],m=document.createElement(a??"div"),w=0,b=Object.keys(l);w<b.length;w++){var _=b[w],v=l[_].join(" ");_==="style"?ht(m.style,v):m.setAttribute(_,v)}return m}function ht(s,u){for(var a=0,l=u.split(";");a<l.length;a++){var m=l[a],w=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(m);if(w){var b=w[1],_=w[2],v=w[4];s.setProperty(b,_,v||"")}}}var It=["monospace","sans-serif","serif"],Ft=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Kt(s){var u,a,l,m=!1,w=(function(){var v=document.createElement("canvas");return v.width=1,v.height=1,[v,v.getContext("2d")]})(),b=w[0],_=w[1];return(function(v,O){return!(!O||!v.toDataURL)})(b,_)?(m=(function(v){return v.rect(0,0,10,10),v.rect(2,2,6,6),!v.isPointInPath(5,5,"evenodd")})(_),u=(function(v,O){(function(L,q){L.width=240,L.height=60,q.textBaseline="alphabetic",q.fillStyle="#f60",q.fillRect(100,1,62,20),q.fillStyle="#069",q.font='11pt "Times New Roman"';var Q="Cwm fjordbank gly ".concat("😃");q.fillText(Q,2,15),q.fillStyle="rgba(102, 204, 0, 0.2)",q.font="18pt Arial",q.fillText(Q,4,45)})(v,O);var B=me(v);return B!==me(v)?["unstable","unstable"]:((function(L,q){L.width=122,L.height=110,q.globalCompositeOperation="multiply";for(var Q=0,tt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Q<tt.length;Q++){var rt=tt[Q],ct=rt[0],mt=rt[1],Et=rt[2];q.fillStyle=ct,q.beginPath(),q.arc(mt,Et,40,0,2*Math.PI,!0),q.closePath(),q.fill()}q.fillStyle="#f9c",q.arc(60,60,60,0,2*Math.PI,!0),q.arc(60,60,20,0,2*Math.PI,!0),q.fill("evenodd")})(v,O),[me(v),B])})(b,_),a=u[0],l=u[1]):a=l="unsupported",{winding:m,geometry:a,text:l}}function me(s){return s.toDataURL()}function Ee(){var s=screen,u=function(l){return x(p(l),null)},a=[u(s.width),u(s.height)];return a.sort().reverse(),a}var jt,Ne;function Oe(){var s=this;return(function(){if(Ne===void 0){var u=function(){var a=Ie();en(a)?Ne=setTimeout(u,2500):(jt=a,Ne=void 0)};u()}})(),function(){return(0,e.sH)(s,void 0,void 0,(function(){var u;return(0,e.YH)(this,(function(a){switch(a.label){case 0:return en(u=Ie())?jt?[2,(0,e.fX)([],jt,!0)]:et()?[4,(l=document,(l.exitFullscreen||l.msExitFullscreen||l.mozCancelFullScreen||l.webkitExitFullscreen).call(l))]:[3,2]:[3,2];case 1:a.sent(),u=Ie(),a.label=2;case 2:return en(u)||(jt=u),[2,u]}var l}))}))}}function Ie(){var s=screen;return[x(S(s.availTop),null),x(S(s.width)-S(s.availWidth)-x(S(s.availLeft),0),null),x(S(s.height)-S(s.availHeight)-x(S(s.availTop),0),null),x(S(s.availLeft),null)]}function en(s){for(var u=0;u<4;++u)if(s[u])return!1;return!0}function Be(s){var u;return(0,e.sH)(this,void 0,void 0,(function(){var a,l,m,w,b,_,v;return(0,e.YH)(this,(function(O){switch(O.label){case 0:for(a=document,l=a.createElement("div"),m=new Array(s.length),w={},y(l),v=0;v<s.length;++v)(b=Z(s[v])).tagName==="DIALOG"&&b.show(),y(_=a.createElement("div")),_.appendChild(b),l.appendChild(_),m[v]=b;O.label=1;case 1:return a.body?[3,3]:[4,o(50)];case 2:return O.sent(),[3,1];case 3:a.body.appendChild(l);try{for(v=0;v<s.length;++v)m[v].offsetParent||(w[s[v]]=!0)}finally{(u=l.parentNode)===null||u===void 0||u.removeChild(l)}return[2,w]}}))}))}function y(s){s.style.setProperty("visibility","hidden","important"),s.style.setProperty("display","block","important")}function P(s){return matchMedia("(inverted-colors: ".concat(s,")")).matches}function H(s){return matchMedia("(forced-colors: ".concat(s,")")).matches}function ft(s){return matchMedia("(prefers-contrast: ".concat(s,")")).matches}function yt(s){return matchMedia("(prefers-reduced-motion: ".concat(s,")")).matches}function bt(s){return matchMedia("(prefers-reduced-transparency: ".concat(s,")")).matches}function xt(s){return matchMedia("(dynamic-range: ".concat(s,")")).matches}var zt=Math,ie=function(){return 0},F={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},R=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),N=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),A=["FRAGMENT_SHADER","VERTEX_SHADER"],W=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],z="WEBGL_debug_renderer_info";function ot(s){if(s.webgl)return s.webgl.context;var u,a=document.createElement("canvas");a.addEventListener("webglCreateContextError",(function(){return u=void 0}));for(var l=0,m=["webgl","experimental-webgl"];l<m.length;l++){var w=m[l];try{u=a.getContext(w)}catch{}if(u)break}return s.webgl={context:u},u}function Ct(s,u,a){var l=s.getShaderPrecisionFormat(s[u],s[a]);return l?[l.rangeMin,l.rangeMax,l.precision]:[]}function Lt(s){return Object.keys(s.__proto__).filter(Mt)}function Mt(s){return typeof s=="string"&&!s.match(/[^A-Z0-9_x]/)}function Pt(){return X()}function it(s){return typeof s.getParameter=="function"}var Gt=function(){var s=this;return K((function(u,a){var l=a.document;return(0,e.sH)(s,void 0,void 0,(function(){var m,w,b,_,v,O,B,L,q,Q,tt;return(0,e.YH)(this,(function(rt){for((m=l.body).style.fontSize="48px",(w=l.createElement("div")).style.setProperty("visibility","hidden","important"),b={},_={},v=function(ct){var mt=l.createElement("span"),Et=mt.style;return Et.position="absolute",Et.top="0",Et.left="0",Et.fontFamily=ct,mt.textContent="mmMwWLliI0O&1",w.appendChild(mt),mt},O=function(ct,mt){return v("'".concat(ct,"',").concat(mt))},B=function(){for(var ct={},mt=function(_t){ct[_t]=It.map((function(Vt){return O(_t,Vt)}))},Et=0,gt=Ft;Et<gt.length;Et++)mt(gt[Et]);return ct},L=function(ct){return It.some((function(mt,Et){return ct[Et].offsetWidth!==b[mt]||ct[Et].offsetHeight!==_[mt]}))},q=It.map(v),Q=B(),m.appendChild(w),tt=0;tt<It.length;tt++)b[It[tt]]=q[tt].offsetWidth,_[It[tt]]=q[tt].offsetHeight;return[2,Ft.filter((function(ct){return L(Q[ct])}))]}))}))}))},ye=function(s){var u=(s===void 0?{}:s).debug;return(0,e.sH)(this,void 0,void 0,(function(){var a,l,m,w,b;return(0,e.YH)(this,(function(_){switch(_.label){case 0:return U()||ut()?(v=atob,a={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',v("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",v("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",v("LnNwb25zb3JpdA=="),".ylamainos",v("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",v("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",v("LmhlYWRlci1ibG9ja2VkLWFk"),v("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",v("I2FkXzMwMFgyNTA="),v("I2Jhbm5lcmZsb2F0MjI="),v("I2NhbXBhaWduLWJhbm5lcg=="),v("I0FkLUNvbnRlbnQ=")],adGuardChinese:[v("LlppX2FkX2FfSA=="),v("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",v("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),v("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",v("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",v("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",v("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),v("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),v("LmFkZ29vZ2xl"),v("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[v("YW1wLWF1dG8tYWRz"),v("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",v("I2FkX2ludmlld19hcmVh")],adGuardRussian:[v("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),v("LnJlY2xhbWE="),'div[id^="smi2adblock"]',v("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[v("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),v("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",v("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),v("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),v("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",v("I3Jla2xhbWk="),v("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),v("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),v("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[v("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",v("LndpZGdldF9wb19hZHNfd2lkZ2V0"),v("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",v("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[v("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),v("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",v("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",v("I3Jla2xhbW5pLWJveA=="),v("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",v("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[v("I2FkdmVydGVudGll"),v("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",v("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",v("LnNwb25zb3JsaW5rZ3J1ZW4="),v("I3dlcmJ1bmdza3k="),v("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),v("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[v("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",v("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[v("LnJla2xhbW9zX3RhcnBhcw=="),v("LnJla2xhbW9zX251b3JvZG9z"),v("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),v("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),v("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[v("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[v("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),v("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",v("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[v("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),v("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),v("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",v("LmFkX19tYWlu"),v("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[v("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[v("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),v("I2xpdmVyZUFkV3JhcHBlcg=="),v("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),v("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[v("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",v("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),v("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),v("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[v("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),v("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),v("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",v("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),v("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),v("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),v("ZGl2I3NrYXBpZWNfYWQ=")],ro:[v("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),v("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[v("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),v("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),v("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",v("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),v("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",v("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},l=Object.keys(a),[4,Be((b=[]).concat.apply(b,l.map((function(O){return a[O]}))))]):[2,void 0];case 1:return m=_.sent(),u&&(function(O,B){for(var L="DOM blockers debug:\n```",q=0,Q=Object.keys(O);q<Q.length;q++){var tt=Q[q];L+=`
|
|
13
|
-
`.concat(
|
|
14
|
-
`.concat(B[mt]?"🚫":"➡️"," ").concat(mt)}}console.log("".concat(L,"\n```"))})(a,m),(w=l.filter((function(O){var B=a[O];return T(B.map((function(L){return m[L]})))>.6*B.length}))).sort(),[2,w]}var v}))}))},oe=function(){return s===void 0&&(s=4e3),K((function(u,a){var l=a.document,m=l.body,w=m.style;w.width="".concat(s,"px"),w.webkitTextSizeAdjust=w.textSizeAdjust="none",I()?m.style.zoom="".concat(1/a.devicePixelRatio):U()&&(m.style.zoom="reset");var b=l.createElement("div");return b.textContent=(0,e.fX)([],Array(s/20|0),!0).map((function(){return"word"})).join(" "),m.appendChild(b),(function(_,v){for(var O={},B={},L=0,q=Object.keys(F);L<q.length;L++){var Q=q[L],tt=F[Q],rt=tt[0],ct=rt===void 0?{}:rt,mt=tt[1],Et=mt===void 0?"mmMwWLliI0fiflO&1":mt,gt=_.createElement("span");gt.textContent=Et,gt.style.whiteSpace="nowrap";for(var _t=0,Vt=Object.keys(ct);_t<Vt.length;_t++){var Ht=Vt[_t],Yt=ct[Ht];Yt!==void 0&&(gt.style[Ht]=Yt)}O[Q]=gt,v.append(_.createElement("br"),gt)}for(var Tt=0,Ut=Object.keys(F);Tt<Ut.length;Tt++)B[Q=Ut[Tt]]=O[Q].getBoundingClientRect().width;return B})(l,m)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var s},ae=function(){return navigator.oscpu},ve=function(){var s,u=navigator,a=[],l=u.language||u.userLanguage||u.browserLanguage||u.systemLanguage;if(l!==void 0&&a.push([l]),Array.isArray(u.languages))I()&&T([!("MediaSettingsRange"in(s=window)),"RTCEncodedAudioFrame"in s,""+s.Intl=="[object Intl]",""+s.Reflect=="[object Reflect]"])>=3||a.push(u.languages);else if(typeof u.languages=="string"){var m=u.languages;m&&a.push(m.split(","))}return a},he=function(){return window.screen.colorDepth},fe=function(){return x(S(navigator.deviceMemory),void 0)},nn=function(){return x(p(navigator.hardwareConcurrency),void 0)},be=function(){var s,u=(s=window.Intl)===null||s===void 0?void 0:s.DateTimeFormat;if(u){var a=new u().resolvedOptions().timeZone;if(a)return a}var l,m=(l=new Date().getFullYear(),-Math.max(S(new Date(l,0,1).getTimezoneOffset()),S(new Date(l,6,1).getTimezoneOffset())));return"UTC".concat(m>=0?"+":"").concat(m)},Ae=function(){try{return!!window.sessionStorage}catch{return!0}},yn=function(){try{return!!window.localStorage}catch{return!0}},Ve=function(){return!!window.openDatabase},Ke=function(){return navigator.cpuClass},Tr=function(){var s=navigator.platform;return s==="MacIntel"&&U()&&!j()?(function(){if(navigator.platform==="iPad")return!0;var u=screen,a=u.width/u.height;return T(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,a>.65&&a<1.53])>=2})()?"iPad":"iPhone":s},Xe=function(){var s=navigator.plugins;if(s){for(var u=[],a=0;a<s.length;++a){var l=s[a];if(l){for(var m=[],w=0;w<l.length;++w){var b=l[w];m.push({type:b.type,suffixes:b.suffixes})}u.push({name:l.name,description:l.description,mimeTypes:m})}}return u}},$e=function(){var s,u=navigator,a=0;u.maxTouchPoints!==void 0?a=p(u.maxTouchPoints):u.msMaxTouchPoints!==void 0&&(a=u.msMaxTouchPoints);try{document.createEvent("TouchEvent"),s=!0}catch{s=!1}return{maxTouchPoints:a,touchEvent:s,touchStart:"ontouchstart"in window}},li=function(){return navigator.vendor||""},an=function(){for(var s=[],u=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];u<a.length;u++){var l=a[u],m=window[l];m&&typeof m=="object"&&s.push(l)}return s.sort()},cn=function(){var s=document;try{s.cookie="cookietest=1; SameSite=Strict;";var u=s.cookie.indexOf("cookietest=")!==-1;return s.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",u}catch{return!1}},Is=function(){for(var s=0,u=["rec2020","p3","srgb"];s<u.length;s++){var a=u[s];if(matchMedia("(color-gamut: ".concat(a,")")).matches)return a}},un=function(){return!!P("inverted")||!P("none")&&void 0},fn=function(){return!!H("active")||!H("none")&&void 0},ks=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var s=0;s<=100;++s)if(matchMedia("(max-monochrome: ".concat(s,")")).matches)return s;throw new Error("Too high value")}},ln=function(){return ft("no-preference")?0:ft("high")||ft("more")?1:ft("low")||ft("less")?-1:ft("forced")?10:void 0},dn=function(){return!!yt("reduce")||!yt("no-preference")&&void 0},go=function(){return!!bt("reduce")||!bt("no-preference")&&void 0},mo=function(){return!!xt("high")||!xt("standard")&&void 0},vo=function(){var s,u=zt.acos||ie,a=zt.acosh||ie,l=zt.asin||ie,m=zt.asinh||ie,w=zt.atanh||ie,b=zt.atan||ie,_=zt.sin||ie,v=zt.sinh||ie,O=zt.cos||ie,B=zt.cosh||ie,L=zt.tan||ie,q=zt.tanh||ie,Q=zt.exp||ie,tt=zt.expm1||ie,rt=zt.log1p||ie;return{acos:u(.12312423423423424),acosh:a(1e308),acoshPf:(s=1e154,zt.log(s+zt.sqrt(s*s-1))),asin:l(.12312423423423424),asinh:m(1),asinhPf:zt.log(1+zt.sqrt(2)),atanh:w(.5),atanhPf:zt.log(3)/2,atan:b(.5),sin:_(-1e300),sinh:v(1),sinhPf:zt.exp(1)-1/zt.exp(1)/2,cos:O(10.000000000123),cosh:B(1),coshPf:(zt.exp(1)+1/zt.exp(1))/2,tan:L(-1e300),tanh:q(1),tanhPf:(zt.exp(2)-1)/(zt.exp(2)+1),exp:Q(1),expm1:tt(1),expm1Pf:zt.exp(1)-1,log1p:rt(10),log1pPf:zt.log(11),powPI:zt.pow(zt.PI,-100)}},yo=function(){return navigator.pdfViewerEnabled},wo=function(){var s=new Float32Array(1),u=new Uint8Array(s.buffer);return s[0]=1/0,s[0]=s[0]-s[0],u[3]},bo=function(){var s,u=document.createElement("a"),a=(s=u.attributionSourceId)!==null&&s!==void 0?s:u.attributionsourceid;return a===void 0?void 0:String(a)},_o=function(){if(!ut()&&!U())return-2;if(!window.AudioContext)return-1;var s=new AudioContext().baseLatency;return s==null?-1:isFinite(s)?s:-3},Eo=function(){if(!window.Intl)return-1;var s=window.Intl.DateTimeFormat;if(!s)return-2;var u=s().resolvedOptions().locale;return u||u===""?u:-3},Ro=function(s){var u,a,l,m,w,b,_=ot(s.cache);if(!_)return-1;if(!it(_))return-2;var v=Pt()?null:_.getExtension(z);return{version:((u=_.getParameter(_.VERSION))===null||u===void 0?void 0:u.toString())||"",vendor:((a=_.getParameter(_.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:v?(l=_.getParameter(v.UNMASKED_VENDOR_WEBGL))===null||l===void 0?void 0:l.toString():"",renderer:((m=_.getParameter(_.RENDERER))===null||m===void 0?void 0:m.toString())||"",rendererUnmasked:v?(w=_.getParameter(v.UNMASKED_RENDERER_WEBGL))===null||w===void 0?void 0:w.toString():"",shadingLanguageVersion:((b=_.getParameter(_.SHADING_LANGUAGE_VERSION))===null||b===void 0?void 0:b.toString())||""}},So=function(s){var u=ot(s.cache);if(!u)return-1;if(!it(u))return-2;var a=u.getSupportedExtensions(),l=u.getContextAttributes(),m=[],w=[],b=[],_=[],v=[];if(l)for(var O=0,B=Object.keys(l);O<B.length;O++){var L=B[O];w.push("".concat(L,"=").concat(l[L]))}for(var q=0,Q=Lt(u);q<Q.length;q++){var tt=u[Vt=Q[q]];b.push("".concat(Vt,"=").concat(tt).concat(R.has(tt)?"=".concat(u.getParameter(tt)):""))}if(a)for(var rt=0,ct=a;rt<ct.length;rt++){var mt=ct[rt];if(!(mt===z&&Pt()||mt==="WEBGL_polygon_mode"&&(I()||U()))){var Et=u.getExtension(mt);if(Et)for(var gt=0,_t=Lt(Et);gt<_t.length;gt++){var Vt;tt=Et[Vt=_t[gt]],_.push("".concat(Vt,"=").concat(tt).concat(N.has(tt)?"=".concat(u.getParameter(tt)):""))}else m.push(mt)}}for(var Ht=0,Yt=A;Ht<Yt.length;Ht++)for(var Tt=Yt[Ht],Ut=0,qt=W;Ut<qt.length;Ut++){var ee=qt[Ut],se=Ct(u,Tt,ee);v.push("".concat(Tt,".").concat(ee,"=").concat(se.join(",")))}return _.sort(),b.sort(),{contextAttributes:w,parameters:b,shaderPrecisions:v,extensions:a,extensionParameters:_,unsupportedExtensions:m}},Sn=function(s,u){var a=(function(q){for(var Q=new Uint8Array(q.length),tt=0;tt<q.length;tt++){var rt=q.charCodeAt(tt);if(rt>127)return new TextEncoder().encode(q);Q[tt]=rt}return Q})(s);u=u||0;var l,m=[0,a.length],w=m[1]%16,b=m[1]-w,_=[0,u],v=[0,u],O=[0,0],B=[0,0];for(l=0;l<b;l+=16)O[0]=a[l+4]|a[l+5]<<8|a[l+6]<<16|a[l+7]<<24,O[1]=a[l]|a[l+1]<<8|a[l+2]<<16|a[l+3]<<24,B[0]=a[l+12]|a[l+13]<<8|a[l+14]<<16|a[l+15]<<24,B[1]=a[l+8]|a[l+9]<<8|a[l+10]<<16|a[l+11]<<24,C(O,pt),M(O,31),C(O,lt),G(_,O),M(_,27),k(_,v),C(_,St),k(_,At),C(B,lt),M(B,33),C(B,pt),G(v,B),M(v,31),k(v,_),C(v,St),k(v,st);O[0]=0,O[1]=0,B[0]=0,B[1]=0;var L=[0,0];switch(w){case 15:L[1]=a[l+14],V(L,48),G(B,L);case 14:L[1]=a[l+13],V(L,40),G(B,L);case 13:L[1]=a[l+12],V(L,32),G(B,L);case 12:L[1]=a[l+11],V(L,24),G(B,L);case 11:L[1]=a[l+10],V(L,16),G(B,L);case 10:L[1]=a[l+9],V(L,8),G(B,L);case 9:L[1]=a[l+8],G(B,L),C(B,lt),M(B,33),C(B,pt),G(v,B);case 8:L[1]=a[l+7],V(L,56),G(O,L);case 7:L[1]=a[l+6],V(L,48),G(O,L);case 6:L[1]=a[l+5],V(L,40),G(O,L);case 5:L[1]=a[l+4],V(L,32),G(O,L);case 4:L[1]=a[l+3],V(L,24),G(O,L);case 3:L[1]=a[l+2],V(L,16),G(O,L);case 2:L[1]=a[l+1],V(L,8),G(O,L);case 1:L[1]=a[l],G(O,L),C(O,pt),M(O,31),C(O,lt),G(_,O)}return G(_,m),G(v,m),k(_,v),k(v,_),nt(_),nt(v),k(_,v),k(v,_),("00000000"+(_[0]>>>0).toString(16)).slice(-8)+("00000000"+(_[1]>>>0).toString(16)).slice(-8)+("00000000"+(v[0]>>>0).toString(16)).slice(-8)+("00000000"+(v[1]>>>0).toString(16)).slice(-8)},Ao="phantomjs",Io="selenium",ko="headless_chrome",We=(function(s){function u(a,l){var m=s.call(this,l)||this;return m.state=a,m.name="BotdError",Object.setPrototypeOf(m,u.prototype),m}return(0,e.C6)(u,s),u})(Error);function Oo(s,u){return s.indexOf(u)!==-1}function jn(s,u){return s.indexOf(u)!==-1}function Vi(s){return Object.getOwnPropertyNames(s)}function Hi(s){for(var u=[],a=1;a<arguments.length;a++)u[a-1]=arguments[a];for(var l=function(_){if(typeof _=="string"){if(Oo(s,_))return{value:!0}}else if((function(v,O){if("find"in v)return v.find(O);for(var B=0;B<v.length;B++)if(O(v[B]))return v[B]})(s,(function(v){return _.test(v)}))!=null)return{value:!0}},m=0,w=u;m<w.length;m++){var b=l(w[m]);if(typeof b=="object")return b.value}return!1}function To(s){return s.reduce((function(u,a){return u+(a?1:0)}),0)}function pc(){var s,u,a=window,l=navigator;return To(["webkitPersistentStorage"in l,"webkitTemporaryStorage"in l,l.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in a,"BatteryManager"in a,"webkitMediaStream"in a,"webkitSpeechGrammar"in a])>=5?"chromium":To(["ApplePayError"in a,"CSSPrimitiveValue"in a,"Counter"in a,l.vendor.indexOf("Apple")===0,"getStorageUpdates"in l,"WebKitMediaKeys"in a])>=4?"webkit":To(["buildID"in navigator,"MozAppearance"in((u=(s=document.documentElement)===null||s===void 0?void 0:s.style)!==null&&u!==void 0?u:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4?"gecko":"unknown"}var zn={android:function(){var s=pc(),u=s==="chromium",a=s==="gecko";if(!u&&!a)return!1;var l=window;return To(["onorientationchange"in l,"orientation"in l,u&&!("SharedWorker"in l),a&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var s,u=(s=navigator.userAgent)===null||s===void 0?void 0:s.toLowerCase();return jn(u,"edg/")?"edge":jn(u,"trident")||jn(u,"msie")?"internet_explorer":jn(u,"wechat")?"wechat":jn(u,"firefox")?"firefox":jn(u,"opera")||jn(u,"opr")?"opera":jn(u,"chrome")?"chrome":jn(u,"safari")?"safari":"unknown"},browserEngineKind:pc,documentFocus:function(){return document.hasFocus!==void 0&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var s=navigator.appVersion;if(s==null)throw new We(-1,"navigator.appVersion is undefined");return s},rtt:function(){if(navigator.connection===void 0)throw new We(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new We(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(navigator.plugins===void 0)throw new We(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new We(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(navigator.plugins===void 0)throw new We(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new We(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(s){if(s instanceof Error&&s.stack!=null)return s.stack.toString()}throw new We(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var s=navigator.productSub;if(s===void 0)throw new We(-1,"navigator.productSub is undefined");return s},windowExternal:function(){if(window.external===void 0)throw new We(-1,"window.external is undefined");var s=window.external;if(typeof s.toString!="function")throw new We(-2,"window.external.toString is not a function");return s.toString()},mimeTypesConsistent:function(){if(navigator.mimeTypes===void 0)throw new We(-1,"navigator.mimeTypes is undefined");for(var s=navigator.mimeTypes,u=Object.getPrototypeOf(s)===MimeTypeArray.prototype,a=0;a<s.length;a++)u&&(u=Object.getPrototypeOf(s[a])===MimeType.prototype);return u},evalLength:function(){return eval.toString().length},webGL:function(){var s=document.createElement("canvas");if(typeof s.getContext!="function")throw new We(-2,"HTMLCanvasElement.getContext is not a function");var u=s.getContext("webgl");if(u===null)throw new We(-4,"WebGLRenderingContext is null");if(typeof u.getParameter!="function")throw new We(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:u.getParameter(u.VENDOR),renderer:u.getParameter(u.RENDERER)}},webDriver:function(){if(navigator.webdriver==null)throw new We(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){var s,u=navigator,a=[],l=u.language||u.userLanguage||u.browserLanguage||u.systemLanguage;if(l!==void 0&&a.push([l]),Array.isArray(u.languages))pc()==="chromium"&&To([!("MediaSettingsRange"in(s=window)),"RTCEncodedAudioFrame"in s,""+s.Intl=="[object Intl]",""+s.Reflect=="[object Reflect]"])>=3||a.push(u.languages);else if(typeof u.languages=="string"){var m=u.languages;m&&a.push(m.split(","))}return a},notificationPermissions:function(){return(0,e.sH)(this,void 0,void 0,(function(){var s,u;return(0,e.YH)(this,(function(a){switch(a.label){case 0:if(window.Notification===void 0)throw new We(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new We(-1,"navigator.permissions is undefined");if(typeof(s=navigator.permissions).query!="function")throw new We(-2,"navigator.permissions.query is not a function");a.label=1;case 1:return a.trys.push([1,3,,4]),[4,s.query({name:"notifications"})];case 2:return u=a.sent(),[2,window.Notification.permission==="denied"&&u.state==="prompt"];case 3:throw a.sent(),new We(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}}))}))},documentElementKeys:function(){if(document.documentElement===void 0)throw new We(-1,"document.documentElement is undefined");var s=document.documentElement;if(typeof s.getAttributeNames!="function")throw new We(-2,"document.documentElement.getAttributeNames is not a function");return s.getAttributeNames()},functionBind:function(){if(Function.prototype.bind===void 0)throw new We(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var s=window.process,u="window.process is";if(s===void 0)throw new We(-1,"".concat(u," undefined"));if(s&&typeof s!="object")throw new We(-3,"".concat(u," not an object"));return s},distinctiveProps:function(){var s,u,a=((s={}).awesomium={window:["awesomium"]},s.cef={window:["RunPerfTest"]},s.cefsharp={window:["CefSharp"]},s.coachjs={window:["emit"]},s.fminer={window:["fmget_targets"]},s.geb={window:["geb"]},s.nightmarejs={window:["__nightmare","nightmare"]},s.phantomas={window:["__phantomas"]},s[Ao]={window:["callPhantom","_phantom"]},s.rhino={window:["spawn"]},s[Io]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},s.webdriverio={window:["wdioElectron"]},s.webdriver={window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},s[ko]={window:["domAutomation","domAutomationController"]},s),l={},m=Vi(window),w=[];for(u in window.document!==void 0&&(w=Vi(window.document)),a){var b=a[u];if(b!==void 0){var _=b.window!==void 0&&Hi.apply(void 0,(0,e.fX)([m],b.window,!1)),v=!(b.document===void 0||!w.length)&&Hi.apply(void 0,(0,e.fX)([w],b.document,!1));l[u]=_||v}}return l}};function No(s,u){return new Promise((function(a){return gc(a,s,u)}))}function gc(s,u){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var m=Date.now()+u,w=0,b=function(){w=setTimeout((function(){Date.now()<m?b():s.apply(void 0,a)}),m-Date.now())};return b(),function(){return clearTimeout(w)}}function Os(s,u){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var m=document,w="visibilitychange",b=function(){return m.hidden?O():v()},_=(function(B,L,q){for(var Q=[],tt=3;tt<arguments.length;tt++)Q[tt-3]=arguments[tt];var rt,ct=!1,mt=B,Et=0,gt=function(){ct||rt||(Et=Date.now(),rt=gc((function(){ct=!0,q.apply(void 0,Q)}),mt))};return L&>(),{start:gt,stop:function(){!ct&&rt&&(rt(),rt=void 0,mt-=Date.now()-Et)}}})(u,!m.hidden,(function(){m.removeEventListener(w,b),s.apply(void 0,a)})),v=_.start,O=_.stop;return m.addEventListener(w,b),function(){m.removeEventListener(w,b),O()}}function Yn(s,u){return new Promise((function(a){return Os(a,s,u)}))}function Pl(s,u){return(0,e.sH)(this,void 0,void 0,(function(){var a;return(0,e.YH)(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,s()];case 1:return[2,l.sent()];case 2:return a=l.sent(),console.error(a),[2,u];case 3:return[2]}}))}))}function mc(s,u){return new Promise((function(a,l){var m=!1;u?.then((function(){return m=!0}),(function(){return m=!0})),(typeof s=="function"?mc(Promise.resolve(),u).then(s):s).then((function(w){m||a(w)}),(function(w){m||l(w)}))}))}function xo(s){return s.then(void 0,(function(){})),s}function tr(s,u){return(0,e.sH)(this,void 0,void 0,(function(){var a,l,m,w;return(0,e.YH)(this,(function(b){switch(b.label){case 0:try{a=u().then((function(_){return l=[!0,_]}),(function(_){return l=[!1,_]}))}catch(_){l=[!1,_]}return w=s.then((function(_){return m=[!0,_]}),(function(_){return m=[!1,_]})),[4,Promise.race([a,w])];case 1:return b.sent(),[2,function(){if(l){if(l[0])return l[1];throw l[1]}if(m){if(m[0])return m[1];throw m[1]}throw new Error("96375")}]}}))}))}function Ml(){var s,u,a=new Promise((function(l,m){s=l,u=m}));return a.resolve=s,a.reject=u,a}function Ts(s){return s instanceof Error||s!==null&&typeof s=="object"&&"name"in s}function Ul(s,u){var a=0;return function(){return Math.random()*Math.min(u,s*Math.pow(2,a++))}}function di(s){return s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}function u5(s,u){return Object.prototype.hasOwnProperty.call(s,u)}function Wi(s,u,a,l){return s.addEventListener(u,a,l),function(){return s.removeEventListener(u,a,l)}}var vc,yc="0123456789abcdef";function Dl(s,u){if(u.length==0||u.length>s.length)return-1;for(var a=0;a<s.length;a++){for(var l=0,m=0;m<u.length;m++){if(s[a+m]!==u[m]){l=0;break}l++}if(l==u.length)return a}return-1}function Gr(s){for(var u=new Uint8Array(s.length),a=0;a<s.length;a++){var l=s.charCodeAt(a);if(l>127)return new TextEncoder().encode(s);u[a]=l}return u}function Ns(s){if(typeof TextDecoder=="function"){var u=new TextDecoder().decode(s);if(u)return u}var a=di(s);return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))}function zi(s){return s.reduce((function(u,a){return u+(a?1:0)}),0)}function Fl(s,u){return(s-u+256)%256}function mr(s){var u=di(s);return btoa(String.fromCharCode.apply(null,u))}function xs(s){for(var u=atob(s),a=u.length,l=new Uint8Array(a),m=0;m<a;m++)l[m]=u.charCodeAt(m);return l}function vr(s){return Vl(Gr(s))}function Vl(s){var u=di(s);vc=vc||(function(){for(var m,w=new Uint32Array(256),b=0;b<256;b++){m=b;for(var _=0;_<8;_++)m=1&m?3988292384^m>>>1:m>>>1;w[b]=m}return w})();for(var a=-1,l=0;l<u.length;l++)a=a>>>8^vc[255&(a^u[l])];return~a>>>0}function Hl(s){return s===void 0?void 0:"".concat(s)}function f5(s,u){if(s!==void 0){if(!Array.isArray(s))throw new TypeError("Expected ".concat(u," to be an array, a ").concat((function(a){return typeof a=="object"?a?Object.prototype.toString.call(a):"null":typeof a})(s)," is given"));return s.map(String)}}function l5(s){for(var u=new Uint8Array(s.length/2),a=0;a<s.length;a+=2)u[a/2]=parseInt(s[a]+s[a+1],16);return u}function Cs(s){if(s instanceof Array)return s.map(Cs);if(s&&typeof s=="object"){for(var u={},a=0,l=Object.keys(s);a<l.length;a++){var m=l[a];u[m]=Cs(s[m])}return u}return s}function d5(s,u){for(var a=[],l=Object.getOwnPropertyNames(s),m=0;m<l.length;m++){var w=l[m],b=vr(w);u.has(b)&&a.push({i:m,n:w})}return{l:l.length,p:a}}var wc=new Uint32Array(2);function Ls(){return crypto?(crypto.getRandomValues(wc),(1048576*wc[0]+(1048575&wc[1]))/4503599627370496):Math.random()}function Wl(s,u,a){a===void 0&&(a=Ls);for(var l="",m=0;m<s;m++)l+=u.charAt(a()*u.length);return l}function Co(s){return Wl(s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function zl(){return[8,4,4,4,12].map((function(s){return Wl(s,yc)})).join("-")}var Gl=new Uint8Array(1);function h5(){return crypto.getRandomValues(Gl),Gl[0]}function Kl(){return new TypeError("Can't pick from nothing")}function p5(s,u){return Math.floor(Ls()*(u-s+1))+s}function jl(s){return g5(s)?(function(u){if(u.length===0)throw Kl();return u[Math.floor(Ls()*u.length)]})(s):(function(u){for(var a=Ls(),l=0,m=0,w=0,b=u;w<b.length;w++)l+=L=b[w][1];for(var _=0,v=u;_<v.length;_++){var O=v[_],B=O[0],L=O[1];if(a>=m/l&&a<(m+L)/l)return B;m+=L}throw Kl()})(Object.entries(s))}var g5=Array.isArray,bc="3.11.11",Bs={default:"endpoint"},Yl={default:"tEndpoint"},Ps={default:"tlsEndpoint"};function ql(s){return s?{query:!0,fragment:!0}:void 0}var Zl="_vid";function $l(s){switch(s){case 0:return"load() start";case 1:return"load() success";case 2:return"load() fail";case 3:return"get() start";case 4:return"get() success";case 5:return"get() fail";case 6:return"TLS start";case 7:return"TLS success";case 8:return"TLS fail";case 9:return"TLS attempt start";case 10:return"TLS attempt success";case 11:return"TLS attempt fail";case 12:return"Signals start";case 13:return"Signals success";case 14:return"Signals fail";case 15:return"Ingress start";case 16:return"Ingress success";case 17:return"Ingress fail";case 18:return"Ingress attempt start";case 19:return"Ingress attempt success";case 20:return"Ingress attempt fail"}}function Xl(){return{len:0,arr:new Uint8Array(128)}}function yr(s,u){Ql(s,s.len+1),s.arr[s.len++]=u}function Ms(s,u){Ql(s,s.len+u.length),s.arr.set(u,s.len),s.len+=u.length}function Jl(s){return s.arr.subarray(0,s.len)}function Ql(s,u){if(s.arr.length<u){var a=new Uint8Array(Math.max(2*s.arr.length,u));a.set(s.arr),s.arr=a}}function t0(s){var u=Xl(),a=new WeakSet,l=function(m){if(typeof m=="string"){var w=m.replace(k5,(function(ct){return"\\"+(f0[ct]||"u"+ct.charCodeAt(0).toString(16).padStart(4,"0"))}));return yr(u,Lo),Ms(u,Gr(w)),void yr(u,Lo)}if(typeof m=="number"||m===!0||m===!1)return(Number.isNaN(m)||m===1/0||m===-1/0)&&(m=null),void Ms(u,Gr(String(m)));if(typeof m=="object"&&m){if(a.has(m))throw new TypeError("Recursive input");a.add(m);var b=m.toJSON;if(typeof b=="function")return void l(b.call(m));if(m instanceof Number||m instanceof String)return void l(m.valueOf());var _=!0,v=function(){_?_=!1:yr(u,_c)};if(Array.isArray(m)){yr(u,i0);for(var O=0,B=m;O<B.length;O++){var L=B[O];v(),l(L)}yr(u,o0)}else{yr(u,s0);for(var q=0,Q=Object.entries(m);q<Q.length;q++){var tt=Q[q],rt=tt[0];m5(L=tt[1])||(v(),l(rt),yr(u,n0),l(L))}yr(u,a0)}a.delete(m)}else Ms(u,Sc)};return l(s),Jl(u)}function Us(s){var u=Xl(),a=di(s),l=0,m=function(){return O(),a[l]===Lo?w():e0(a[l])?b():B(Sc)?(l+=Sc.length,null):B(c0)?(l+=c0.length,!0):B(u0)?(l+=u0.length,!1):a[l]===i0?_():a[l]===s0?v():L()},w=function(){for(u.len=0;l++,a[l]!==Lo;){if(a[l]===_5){if(l++,a[l]===Rc){var Q=parseInt(Ns(a.subarray(l+1,l+5)),16);Ms(u,Gr(String.fromCharCode(Q))),l+=4;continue}var tt=I5[a[l]];if(tt){yr(u,tt);continue}return L()}if(a[l]===void 0)return L();yr(u,a[l])}return l++,Ns(Jl(u))},b=function(){for(var Q=l;a[l]===A5||a[l]===Ec||a[l]===E5||a[l]===R5||e0(a[l]);)l++;return Number(Ns(a.subarray(Q,l)))},_=function(){var Q=[];for(l++;;){if(O(),a[l]===o0){l++;break}if(Q.length){if(a[l]!==_c)return L();l++}Q.push(m())}return Q},v=function(){var Q={},tt=!0;for(l++;;){if(O(),a[l]===a0){l++;break}if(!tt){if(a[l]!==_c)return L();l++,O()}if(a[l]!==Lo)return L();var rt=w();if(O(),a[l]!==n0)return L();l++,Object.defineProperty(Q,rt,{value:m(),configurable:!0,enumerable:!0,writable:!0}),tt=!1}return Q},O=function(){for(;a[l]===v5||a[l]===b5||a[l]===w5||a[l]===y5;)l++},B=function(Q){for(var tt=0;tt<Q.length;tt++)if(a[l+tt]!==Q[tt])return!1;return!0},L=function(){throw new SyntaxError("Unexpected ".concat(l<a.length?"byte ".concat(l):"end"))},q=m();return O(),a[l]!==void 0&&L(),q}function m5(s){return s===void 0||typeof s=="function"||typeof s=="symbol"}function e0(s){return s>=r0&&s<r0+10||s===S5}var Lo=34,_c=44,n0=58,v5=32,y5=9,w5=13,b5=10,_5=92,r0=48,Ec=101,Rc=117,E5=69,R5=43,S5=45,A5=46,i0=91,o0=93,s0=123,a0=125,Sc=new Uint8Array([110,Rc,108,108]),c0=new Uint8Array([116,114,Rc,Ec]),u0=new Uint8Array([102,97,108,115,Ec]),f0={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},I5=(function(){for(var s=new Uint8Array(128),u=0,a=Object.entries(f0);u<a.length;u++){var l=a[u],m=l[0];s[l[1].charCodeAt(0)]=m.charCodeAt(0)}return s})(),k5=/[\x00-\x1F"\\]/g,Ac="Client timeout",Ic="Network connection error",kc="Network request aborted",Oc="Response cannot be parsed",Tc="Blocked by CSP",Nc="The endpoint parameter is not a valid URL";function hi(s,u,a){return a===void 0&&(a="..."),s.length<=u?s:"".concat(s.slice(0,Math.max(0,u-a.length))).concat(a)}function er(s){for(var u="",a=0;a<s.length;++a)if(a>0){var l=s[a].toLowerCase();l!==s[a]?u+=" ".concat(l):u+=s[a]}else u+=s[a].toUpperCase();return u}var l0=er("WrongRegion"),d0=er("SubscriptionNotActive"),h0=er("UnsupportedVersion"),p0=er("InstallationMethodRestricted"),g0=er("HostnameRestricted"),m0=er("IntegrationFailed"),v0=er("VisitorNotFound"),y0=er("NetworkRestricted"),w0=er("InvalidProxyIntegrationSecret"),b0=er("InvalidProxyIntegrationHeaders");function O5(s){var u;try{u=Us(s.body)}catch{}return(0,e.Cl)((0,e.Cl)({},s),{bodyData:u})}function T5(s,u,a,l){var m=l.bodyData;return m===void 0?I0(l):(function(w){return w instanceof Object&&w.v==="2"&&w.products instanceof Object})(m)?(function(w,b,_,v){var O,B=w.notifications,L=w.requestId,q=w.sealedResult,Q=w.error,tt=w.products,rt=(function(Ht){for(var Yt=[],Tt=0,Ut=Object.keys(Ht);Tt<Ut.length;Tt++){var qt=Ht[Ut[Tt]];qt&&Yt.push(qt)}return Yt})(tt);A0(B);for(var ct=0,mt=rt;ct<mt.length;ct++)A0(mt[ct].notifications);if(Q)return _0(Q,L,q,_);for(var Et=0,gt=rt;Et<gt.length;Et++){var _t=gt[Et].error;if(_t)return _0(_t,L,q,_)}(function(Ht,Yt,Tt){for(var Ut,qt=0,ee=Yt;qt<ee.length;qt++){var se=ee[qt];(Ut=se.onResponse)===null||Ut===void 0||Ut.call(se,Ht,Tt)}})(w,b,v);var Vt=(O=tt.identification)===null||O===void 0?void 0:O.data;return{result:Vt?(0,e.Cl)((0,e.Cl)({requestId:L},q===void 0?{}:{sealedResult:q}),Vt.result):E0(L,q,_)}})(m,s,u,a):I0(l)}function _0(s,u,a,l){switch(s.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return R0(u,a,!0,l);case"NotAvailableWithoutUA":return R0(u,a,void 0,l);default:return{error:S0(N5(s),u,s),stop:s.code==="VisitorNotFound"}}}function N5(s){var u,a=s.code,l=s.message;return a===void 0?l:(u=(function(m){switch(m){case"TokenRequired":return"API key required";case"TokenNotFound":return"API key not found";case"TokenExpired":return"API key expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableForAIBots":return"Not available for AI bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}})(a))!==null&&u!==void 0?u:er(a)}function E0(s,u,a){var l={requestId:s,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(u!==void 0&&(l.sealedResult=u),!a)return l;var m="n/a";return(0,e.Cl)((0,e.Cl)({},l),{incognito:!1,browserName:m,browserVersion:m,device:m,ip:m,os:m,osVersion:m,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}})}function R0(s,u,a,l){return{result:(0,e.Cl)((0,e.Cl)({},E0(s,u,l)),{bot:(0,e.Cl)({probability:1},a===void 0?void 0:{safe:a})})}}function S0(s,u,a){var l=new Error(s);return u!==void 0&&(l.requestId=u),a!==void 0&&(l.raw=a),l}function A0(s){s?.forEach(x5)}function x5(s){var u=s.level,a=s.message;u==="error"?console.error(a):u==="warning"?console.warn(a):console.log(a)}function I0(s){return{error:S0(Oc,void 0,{httpStatusCode:s.status,bodyBase64:mr(s.body)})}}var k0="[Fingerprint Pro]";function C5(s){return s===void 0&&(s=k0),function(u){var a=console.log;switch(u.e){case 2:case 5:case 8:case 11:case 14:case 20:a=console.error;break;case 13:var l=u.result;Object.keys(l).some((function(w){return"error"in l[w]}))&&(a=console.warn);break;case 17:var m=u.error;a=u.stage===0&&Ts(m)&&m.message===v0?console.log:console.error}a.apply(console,(function(w,b){var _=b.e,v=b.stage,O=(0,e.Tt)(b,["e","stage"]),B=[w,new Date().toISOString().slice(11),$l(_)];if(v!==void 0)switch(v){case 0:B.push("(fast)");break;case 1:B.push("(final)");break;default:O.stage=v}return B.push(O),B})(s,u))}}function L5(s){s===void 0&&(s="".concat(k0," "));var u={};return function(a){switch(a.e){case 15:u[a.getCallId]=a.body;break;case 18:console.log("".concat(s,"Visitor id request"),u[a.getCallId]);break;case 19:console.log("".concat(s,"Visitor id response"),a.body);break;case 16:case 17:delete u[a.getCallId]}}}var O0="__fpjs_pvid";function T0(){var s=window,u=s[O0];return s[O0]=typeof u=="string"?u:Co(10)}function B5(){var s=window;try{return s.self!==s.top}catch{return!0}}function xc(){return!document.hidden}var N0="stripped",Cc=["path","query","fragment"];function Ds(s,u){return(0,e.sH)(this,void 0,void 0,(function(){var a,l=this;return(0,e.YH)(this,(function(m){switch(m.label){case 0:return x0(u)?[2,s]:(a=Fs(s),[4,Promise.all(Cc.map((function(w){return(0,e.sH)(l,void 0,void 0,(function(){var b,_,v;return(0,e.YH)(this,(function(O){switch(O.label){case 0:return b=a[w],u[w]&&b?(_=a,v=w,[4,P5(w==="query"?(B=b,B.split("&").sort().join("&")):b)]):[3,2];case 1:_[v]=O.sent(),O.label=2;case 2:return[2]}var B}))}))})))]);case 1:return m.sent(),[2,Vs(a)]}}))}))}function x0(s){return!(s&&Cc.some((function(u){return s[u]})))}function Fs(s){var u,a,l=s.split("#"),m=l[0],w=l.slice(1),b=m.split("?"),_=b[0],v=b.slice(1),O=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(_);return O?(u=(O[1]||"")+(O[4]||""),a=O[5]||""):(u="",a=_),{origin:u,path:a,query:v.length?v.join("?"):null,fragment:w.length?w.join("#"):null}}function Vs(s){var u=s.origin,a=s.path,l=s.query,m=s.fragment;return u+a+(l===null?"":"?".concat(l))+(m===null?"":"#".concat(m))}function P5(s){var u;return(0,e.sH)(this,void 0,void 0,(function(){var a;return(0,e.YH)(this,(function(l){switch(l.label){case 0:return s===""?[2,""]:(a=(u=window.crypto)===null||u===void 0?void 0:u.subtle)!=null&&a.digest?[4,a.digest("SHA-256",Gr(s))]:[2,N0];case 1:return[2,mr(l.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}}))}))}function M5(s,u){var a=Fs(s),l=a.origin+a.path;return l&&!l.endsWith("/")&&(l+="/"),l+=u,a.origin="",a.path=l,Vs(a)}function Lc(s,u){for(var a=Fs(s),l=a.query,m=0,w=Object.entries(u);m<w.length;m++)for(var b=w[m],_=b[0],v=b[1],O=0,B=Array.isArray(v)?v:[v];O<B.length;O++){var L=B[O];l="".concat(l?"".concat(l,"&"):"").concat(_,"=").concat(U5(L))}return a.query=l,Vs(a)}function U5(s){return s.split("/").map(encodeURIComponent).join("/")}function D5(s){return function(u){var a=[],l=new Map,m=window.setInterval((function(){var b=a.shift();if(b){var _=b[0],v=b[1],O=xo(s(v));l.set(_,O)}}),1);function w(){window.clearInterval(m)}return u.then(w,w),[a,l,u]}}function C0(s){var u,a,l=Math.random();return u=l,a=s,s.container[0].push([u,a]),(function(m,w,b){var _;function v(){window.clearInterval(_)}var O=m[1],B=m[2],L=new Promise((function(q,Q){_=window.setInterval((function(){var tt=O.get(w);if(tt)return O.delete(w),tt.then(q,Q)}),1)}));return L.then(v,v),b?.then(v,v),B.then(v,v),L})(s.container,l,s.abort)}var L0=D5(F5);function F5(s){return(function(u,a,l,m){var w,b=document,_="securitypolicyviolation",v=function(B){var L=new URL(u,location.href),q=B.blockedURI;q!==L.href&&q!==L.protocol.slice(0,-1)&&q!==L.origin||(w=B,O())};b.addEventListener(_,v);var O=function(){return b.removeEventListener(_,v)};return m?.then(O,O),Promise.resolve().then(a).then((function(B){return O(),B}),(function(B){return new Promise((function(L){var q=new MessageChannel;q.port1.onmessage=function(){return L()},q.port2.postMessage(null)})).then((function(){if(O(),w)return(function(){throw B0()})();throw B}))}))})(s.url,(function(){return a=(u=s).url,l=u.method,m=l===void 0?"get":l,w=u.body,b=u.headers,_=u.withCredentials,v=_!==void 0&&_,O=u.timeout,B=u.responseFormat,L=u.abort,new Promise((function(q,Q){if((function(Et){if(URL.prototype)try{return new URL(Et,location.href),!1}catch(gt){if(gt instanceof Error&>.name==="TypeError")return!0;throw gt}})(a))throw Bo("InvalidURLError","Invalid URL");var tt=new XMLHttpRequest;try{tt.open(m,a,!0)}catch(Et){throw Et instanceof Error&&/violate.+content security policy/i.test(Et.message)?B0():Et}if(tt.withCredentials=v,tt.timeout=O===void 0?0:Math.max(O,1),B==="binary"&&(tt.responseType="arraybuffer"),b)for(var rt=0,ct=Object.keys(b);rt<ct.length;rt++){var mt=ct[rt];tt.setRequestHeader(mt,b[mt])}tt.onload=function(){return q((function(Et){return{body:Et.response,status:Et.status,statusText:Et.statusText,getHeader:function(gt){return(function(_t,Vt){var Ht,Yt=new RegExp("^".concat((Ht=Vt,Ht.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),": (.*)$"),"im").exec(_t);return Yt?Yt[1]:void 0})(Et.getAllResponseHeaders(),gt)}}})(tt))},tt.ontimeout=function(){return Q(Bo("TimeoutError","The request timed out"))},tt.onabort=function(){return Q(Bo("AbortError","The request is aborted"))},tt.onerror=function(){return Q(Bo("TypeError",navigator.onLine?"Connection error":"Network offline"))},tt.send((function(Et){var gt=function(){try{return new Blob([]),!1}catch{return!0}};if(Et instanceof ArrayBuffer){if(!gt())return new Uint8Array(Et)}else if(Et?.buffer instanceof ArrayBuffer&>())return Et.buffer;return Et})(w)),L?.catch((function(){})).then((function(){tt.onabort=null,tt.abort()}))}));var u,a,l,m,w,b,_,v,O,B,L}),0,s.abort)}function Bo(s,u){var a=new Error(u);return a.name=s,a}function B0(){return Bo("CSPError","The request is blocked by the CSP")}function Nr(s,u){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];s&&Pl((function(){var m=u.apply(void 0,a);m!==void 0&&s(m)}))}function Po(s,u,a,l,m){return(0,e.sH)(this,void 0,void 0,(function(){var w,b;return(0,e.YH)(this,(function(_){switch(_.label){case 0:Nr(s,u),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,m()];case 2:return w=_.sent(),[3,4];case 3:throw b=_.sent(),Nr(s,l,b),b;case 4:return Nr(s,a,w),[2,w]}}))}))}function V5(s){for(var u={},a=0,l=Object.keys(s);a<l.length;a++){var m=l[a],w=s[m];if("value"in w){w.value;var b=(0,e.Tt)(w,["value"]);u[m]=b}else u[m]=w}return u}function P0(s){return typeof s.getCallId=="string"}function H5(s){if(typeof s!="object"||!s)return s;var u=s.modules;return u instanceof Array?(0,e.Cl)((0,e.Cl)({},s),{modules:u.map((function(a){if(typeof a!="object"||!a)return a;var l=a.key;return typeof l=="string"?{key:l}:a}))}):s}function W5(){var s=window,u=navigator;return zi(["maxTouchPoints"in u,"mediaCapabilities"in u,"PointerEvent"in s,"visualViewport"in s,"onafterprint"in s])>=4}function z5(){var s=window;return zi(["mediaSession"in navigator,"BigInt64Array"in s,"FormDataEvent"in s,"ImageBitmap"in s,"WebGL2RenderingContext"in s,"onclose"in s])>=4}function G5(){var s=window;return zi(["fromAsync"in Array,"OffscreenCanvas"in s,"CompressionStream"in s,"isWellFormed"in String.prototype])>=3}function K5(){var s,u=window;return zi(["Iterator"in u,u.Error&&"isError"in u.Error,u.Atomics&&"pause"in u.Atomics,((s=u.Document)===null||s===void 0?void 0:s.prototype)&&"fragmentDirective"in u.Document.prototype,u.CSSRule&&!("UNKNOWN_RULE"in u.CSSRule),!("SVGDocument"in u)])>=4}function M0(){var s=window;return zi([!("PushManager"in s),!("AudioBuffer"in s),!("RTCPeerConnection"in s),!("geolocation"in navigator),!("ServiceWorker"in s)])>=3}function j5(){var s=window;return zi(["ClipboardItem"in s,"PerformanceEventTiming"in s,"RTCSctpTransport"in s])>=2}var Y5=(function(){function s(u){var a=this;this.onReportReady=u,this.isStopped=!1,this.pageStartTimestamp=(function(){var tt,rt,ct=performance;if(ct.timeOrigin){var mt=(rt=(tt=ct.getEntriesByType)===null||tt===void 0?void 0:tt.call(ct,"navigation"))===null||rt===void 0?void 0:rt[0];if(mt)return ct.timeOrigin+(mt.responseStart||mt.unloadEventEnd)}return ct.timing.domLoading||ct.timing.responseStart||ct.timing.unloadEventEnd})(),this.events={};for(var l=window,m=document,w=[[m,"readystatechange",function(){return a.handleDocumentReadyStateChange()}],[m,"visibilitychange",function(){return a.handleVisibilityChange()}],[m,"pageshow",function(){return a.handlePageTransition(!0)}],[m,"pagehide",function(){return a.handlePageTransition(!1)}],[l,"unload",function(){return a.handlePageUnload()}]],b=0,_=w;b<_.length;b++){var v=_[b],O=v[0],B=v[1],L=v[2];O.addEventListener(B,L)}var q=(function(tt){var rt=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((function(ct){return Wi(document,ct,tt,void 0)}));return function(){for(var ct=0,mt=rt;ct<mt.length;ct++)(0,mt[ct])()}})((function(){return a.handleFullscreenChange()})),Q=(function(tt){var rt=window,ct=navigator.connection;if(ct)return Wi(ct,"change",tt);var mt=Wi(rt,"online",tt),Et=Wi(rt,"offline",tt);return function(){mt(),Et()}})((function(){return a.handleNetworkConnectionChange()}));this.stop=function(){a.isStopped=!0;for(var tt=0,rt=w;tt<rt.length;tt++){var ct=rt[tt],mt=ct[0],Et=ct[1],gt=ct[2];mt.removeEventListener(Et,gt)}q(),Q()}}return s.prototype.addEvent=function(u){var a;if(!this.isStopped){var l={time:new Date,type:"agentEvent",event:u};if(u.e===0){var m=u.options;this.urlHashing=(a=m?.urlHashing)!==null&&a!==void 0?a:ql(m?.stripUrlParams),l.documentReadyState=document.readyState,l.isPageVisible=xc(),l.isFullscreen=U0(),l.network=D0()}switch(this.storeAgentEvent(l),u.e){case 2:this.submitReport(u.agentId,void 0);break;case 4:case 5:this.submitReport(u.agentId,u.getCallId)}}},s.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},s.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:xc()})},s.prototype.handlePageTransition=function(u){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:u})},s.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:U0()})},s.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:D0()})},s.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var u=0,a=Object.keys(this.events);u<a.length;u++){var l=a[u],m=this.events[l];if(Object.keys(m.getCalls).length===0)this.submitReport(l,void 0);else for(var w=0,b=Object.keys(m.getCalls);w<b.length;w++){var _=b[w];q5(m.getCalls[_])||this.submitReport(l,_)}}this.stop()},s.prototype.storeAgentEvent=function(u){var a=u.event,l=a.agentId;if(this.events[l]||(this.events[l]={commonEvents:[],getCalls:{}}),P0(a)){var m=a.getCallId;this.events[l].getCalls[m]||(this.events[l].getCalls[m]=[]),this.events[l].getCalls[m].push(u)}else this.events[l].commonEvents.push(u)},s.prototype.storeEnvironmentEvent=function(u){for(var a=0,l=Object.keys(this.events);a<l.length;a++){var m=l[a];this.events[m].commonEvents.push(u)}},s.prototype.submitReport=function(u,a){var l=(function(w,b,_){var v=[];return w[b]&&(v.push.apply(v,w[b].commonEvents),_!==void 0&&v.push.apply(v,w[b].getCalls[_]||[])),v.sort((function(O,B){return O.time.getTime()-B.time.getTime()})),v})(this.events,u,a),m=(function(w,b,_){for(var v,O,B,L,q,Q,tt,rt,ct,mt=(function(Tt){for(var Ut={},qt=0,ee=Tt;qt<ee.length;qt++){var se=ee[qt];se.type==="agentEvent"&&(Ut[se.event.e]=se)}return Ut})(w),Et="null",gt=0,_t=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];gt<_t.length;gt++){var Vt=_t[gt],Ht=Vt[0],Yt=Vt[1];if(mt[Ht]){Et=Yt;break}}return{time:((v=w[w.length-1])===null||v===void 0?void 0:v.time)||new Date,pageUrl:location.href,pageStartTime:new Date(b),isInIframe:B5(),agentVersion:(O=mt[0])===null||O===void 0?void 0:O.event.version,userAgent:navigator.userAgent,pageViewId:T0(),agentId:(B=mt[0])===null||B===void 0?void 0:B.event.agentId,getCallId:(L=mt[3])===null||L===void 0?void 0:L.event.getCallId,requestId:(Q=(q=mt[4])===null||q===void 0?void 0:q.event.result.requestId)!==null&&Q!==void 0?Q:(rt=(tt=mt[5])===null||tt===void 0?void 0:tt.event.error)===null||rt===void 0?void 0:rt.requestId,visitorId:(ct=mt[4])===null||ct===void 0?void 0:ct.event.result.visitorId,identificationState:Et,events:w,urlHashing:_}})(l,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(m)}catch(w){console.error(w)}},s})();function q5(s){return s.some((function(u){return u.type==="agentEvent"&&(u.event.e===4||u.event.e===5)}))}function U0(){return!!et()}function D0(){var s=navigator.connection;return{online:navigator.onLine,downlink:s?.downlink,downlinkMax:s?.downlinkMax,effectiveType:s?.effectiveType,roundTrip:s?.rtt,saveData:s?.saveData,type:s?.type}}function Z5(s){var u=this,a=s.clientId,l=s.token,m=s.endpoint,w=m===void 0?"https://api.rollbar.com/api/1/item/":m,b=new Y5((function(_){return(0,e.sH)(u,void 0,void 0,(function(){var v;return(0,e.YH)(this,(function(O){switch(O.label){case 0:return v=(function(B,L,q){return{access_token:q,data:$5(B,L,void 0)}})(_,a,l),[4,Q5(w,v)];case 1:return O.sent(),[2]}}))}))}));return b.addEvent.bind(b)}function $5(s,u,a){var l;a===void 0&&(a=zl());var m=X5[s.identificationState],w=m.level,b=m.message,_=(function(v,O){if(x0(O))return v;for(var B=Fs(v),L=0,q=Cc;L<q.length;L++){var Q=q[L];O[Q]&&B[Q]&&(B[Q]=N0)}return Vs(B)})(s.pageUrl,s.urlHashing);return{environment:u,level:w,timestamp:Math.round(s.time.getTime()/1e3),platform:"browser",framework:"Fingerprint Pro",language:"javascript",uuid:a,notifier:{name:"Fingerprint Pro monitoring",version:bc},request:{url:_,query_string:((l=/\?.*$/.exec(_))!==null&&l!==void 0?l:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:s.userAgent,code_version:s.agentVersion}},person:s.visitorId===void 0?void 0:{id:"visitorId:".concat(s.visitorId)},body:{telemetry:(0,e.fX)([{level:"debug",source:"client",timestamp_ms:s.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],s.events.map(J5),!0),message:{body:b}},custom:{isInIframe:s.isInIframe,pageViewId:s.pageViewId,agentId:s.agentId,getCallId:s.getCallId,requestId:s.requestId,identificationState:s.identificationState}}}var X5={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function J5(s){var u={type:"manual",level:"debug",source:"client",timestamp_ms:s.time.getTime()};switch(s.type){case"documentReadyState":return(0,e.Cl)((0,e.Cl)({},u),{body:{message:'Document ready state becomes "'.concat(s.state,'"')}});case"pageVisibilityToggle":return(0,e.Cl)((0,e.Cl)({},u),{body:{message:"Page becomes ".concat(s.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return(0,e.Cl)((0,e.Cl)({},u),{body:{message:s.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return(0,e.Cl)((0,e.Cl)({},u),{body:{message:"Programmatic fullscreen ".concat(s.isFullscreen?"on":"off")}});case"networkChange":return(0,e.Cl)((0,e.Cl)({},u),{body:(0,e.Cl)((0,e.Cl)({},s.network),{message:"Network connection changes"})});case"pageUnload":return(0,e.Cl)((0,e.Cl)({},u),{body:{message:"Page is about to unload (terminate)"}})}var a=s.event,l=function(O,B){B===void 0&&(B="info");var L=O;L.e,L.agentId,L.getCallId;for(var q=(0,e.Tt)(L,["e","agentId","getCallId"]),Q=(0,e.Cl)((0,e.Cl)({},u),{level:B,body:(0,e.Cl)({message:$l(a.e)},q)}),tt=0,rt=["documentReadyState","isPageVisible","isFullscreen","network"];tt<rt.length;tt++){var ct=rt[tt];s[ct]!==void 0&&(Q.body[ct]=s[ct])}return Q};switch(a.e){case 0:a.version;var m=a.options,w=(0,e.Tt)(a,["version","options"]);return l((0,e.Cl)((0,e.Cl)({},w),{options:H5(m)}));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return l(a);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return l(a,"error");case 7:var b=a.result;return l((0,e.Cl)((0,e.Cl)({},a),{result:(0,e.Cl)((0,e.Cl)({},b),{v:"v"in b?b.v&&hi(b.v,1e3):void 0})}));case 10:return l((0,e.Cl)((0,e.Cl)({},a),{body:hi(a.body,1e3)}));case 13:var _=l((0,e.Cl)((0,e.Cl)({},a),{result:V5(a.result)}));return _.body.message+=" (the values are omitted)",_;case 19:var v=a.body;return v instanceof ArrayBuffer&&(v="(base64) ".concat(v.byteLength>1800?"".concat(mr(new Uint8Array(v,0,1800)),"..."):mr(v))),l((0,e.Cl)((0,e.Cl)({},a),{body:v}))}}function Q5(s,u){return(0,e.sH)(this,void 0,void 0,(function(){var a,l;return(0,e.YH)(this,(function(m){switch(m.label){case 0:a=(function(w){return JSON.stringify(w,(function(b,_){if(_ instanceof Error){var v=(function(O,B){var L;return B===void 0&&(B=!1),(0,e.Cl)({name:O.name,message:O.message,stack:B?(L=O.stack)===null||L===void 0?void 0:L.split(`
|
|
15
|
-
`):O.stack},O)})(_);return typeof v.stack=="string"&&(v.stack=hi(v.stack,1e3)),v}return _}))})(u),l=Ul(1e3,1e4),m.label=1;case 1:return navigator.onLine&&(function(w){var b,_=w.url,v=w.body,O=(function(){var L,q=(L=window.event)===null||L===void 0?void 0:L.type;return q==="pagehide"||q==="unload"})();if(O)try{if(!((b=navigator.sendBeacon)===null||b===void 0)&&b.call(navigator,_,v))return!0}catch(L){if(!(L instanceof Error&&L.message==="Illegal invocation"))throw L}var B=new XMLHttpRequest;B.open("POST",_,!O),v instanceof Blob&&B.setRequestHeader("Content-Type",v.type);try{B.send(v)}catch{return!1}return!0})({url:s,body:a})?[3,4]:[4,No(l())];case 2:m.sent(),m.label=3;case 3:return[3,1];case 4:return[2]}}))}))}function F0(s,u,a,l,m){l===void 0&&(l=1/0);var w,b={failedAttempts:[]},_=(function(L){var q=(function(rt){var ct=(0,e.fX)([],rt,!0);return{current:function(){return ct[0]},postpone:function(){var mt=ct.shift();mt!==void 0&&ct.push(mt)},exclude:function(){ct.shift()}}})(L),Q=Ul(200,1e4),tt=new Set;return[q.current(),function(rt,ct,mt){var Et;if(ct)Et=(function(Ht){var Yt=Ht.getHeader("retry-after");if(Yt){if(/^\s*\d+(\.\d+)?\s*$/.test(Yt))return 1e3*parseFloat(Yt);var Tt=new Date(Yt);return isNaN(Tt)?void 0:Tt.getTime()-Date.now()}})(ct),Et!==void 0?q.postpone():q.exclude();else if(mt instanceof Error&&(mt.name==="CSPError"||mt.name==="InvalidURLError"))q.exclude(),Et=0;else{var gt=Date.now()-rt.getTime()<50,_t=q.current();_t&>&&!tt.has(_t)&&(tt.add(_t),Et=0),q.postpone()}var Vt=q.current();return Vt===void 0?void 0:[Vt,Et??rt.getTime()+Q()-Date.now()]}]})(s),v=_[0],O=_[1],B=(w=[m?.then((function(L){return b.aborted={resolve:!0,value:L}}),(function(L){return b.aborted={resolve:!1,error:L}})),(0,e.sH)(this,void 0,void 0,(function(){var L,q,Q;return(0,e.YH)(this,(function(tt){switch(tt.label){case 0:if(v===void 0)return[2];L=v,q=function(rt){var ct,mt,Et,gt,_t,Vt;return(0,e.YH)(this,(function(Ht){switch(Ht.label){case 0:ct=new Date,mt=void 0,Et=void 0,Ht.label=1;case 1:return Ht.trys.push([1,3,,4]),[4,mc((function(){return u(L,rt,m)}),m)];case 2:return mt=Ht.sent(),[3,4];case 3:return gt=Ht.sent(),Et=gt,b.failedAttempts.push({level:0,endpoint:L,error:gt}),[3,4];case 4:if(mt){if("result"in(_t=a(mt)))return b.result=_t.result,[2,"break"];if(b.failedAttempts.push({level:1,endpoint:L,error:_t.error}),_t.stop)return[2,"break"]}return(Vt=O(ct,mt,Et))?[4,mc(No(Vt[1]),m)]:[2,"break"];case 5:return Ht.sent(),L=Vt[0],[2]}}))},Q=0,tt.label=1;case 1:return Q<l?[5,q(Q)]:[3,4];case 2:if(tt.sent()==="break")return[3,4];tt.label=3;case 3:return++Q,[3,1];case 4:return[2]}}))}))],Promise.race(w.filter((function(L){return!!L})))).then((function(){return b}));return{then:B.then.bind(B),current:b}}function V0(){return"js/".concat(bc)}var t6=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,e6=/@([^(^\s^}]+):(\d)+:(\d)+/i;function H0(s){return{e:n6(s)}}function n6(s){var u;try{s&&typeof s=="object"&&"message"in s?(u=String(s.message),"name"in s&&(u="".concat(s.name,": ").concat(u))):u=String(s)}catch(a){u="Code 3017: ".concat(a)}return hi(u,500)}function gn(s){return wt(s,(function(u){return{s:0,v:u}}))}function An(s,u){return wt(s,(function(a){return{s:a==null?u:0,v:a??null}}))}function W0(s){return wt(s,(function(u){return typeof u=="number"?{s:u,v:null}:{s:0,v:u}}))}function Gn(s){var u=function(l){return{s:0,v:l}},a=function(l){if(!(l instanceof We))throw l;var m=l.state;if(typeof m!="number")throw new Error("Unexpected non-numeric error state ".concat(JSON.stringify(m),". Error message: ").concat(l.message));return{s:m,v:null}};return function(){try{var l=s();return(function(m){return!!m&&typeof m.then=="function"})(l)?l.then(u,a):u(l)}catch(m){return a(m)}}}function r6(s){var u=s.modules,a=s.components,l=a===void 0?{}:a,m=s.customComponent,w=s.apiKey,b=s.tls,_=s.tag,v=s.extendedResult,O=s.exposeComponents,B=s.linkedId,L=s.algorithm,q=s.imi,Q=s.storageKey,tt=s.products,rt=s.urlHashing,ct=s.ab,mt=s.fast,Et=s.requestId;return(0,e.sH)(this,void 0,void 0,(function(){var gt,_t,Vt=this;return(0,e.YH)(this,(function(Ht){switch(Ht.label){case 0:return gt=(0,e.Cl)(((_t={}).c=w,_t.t=(Yt=_)&&typeof Yt=="object"?Yt:Yt!=null?{tag:Yt}:void 0,_t.cbd=v?1:void 0,_t.lid=B,_t.a=L,_t.m=q.m,_t.l=q.l,_t.ec=O?1:void 0,_t.mo=u.map((function(Tt){return Tt.key})).filter((function(Tt){return!!Tt})),_t.pr=tt,_t.s56=b,_t.s67=m?{s:0,v:m}:{s:-1,v:null},_t.sc=(function(){var Tt,Ut=(function(){var qt,ee,se,le,_e,we=new Error,Te=(qt=we).fileName?qt.fileName.split(" ")[0]:qt.sourceURL?qt.sourceURL:null;if(Te)return Te;if(we.stack){var Ue=(se=(ee=we.stack.split(`
|
|
16
|
-
`))[0],le=ee[1],(_e=t6.exec(le)||e6.exec(se))?_e[1]:void 0);if(Ue)return Ue}return null})();return(Tt={}).u=Ut?hi(Ut,1e3):null,Tt})(),_t.uh=(function(Tt){var Ut;if(Tt)return(Ut={}).p=Tt.path?1:void 0,Ut.q=Tt.query?1:void 0,Ut.f=Tt.fragment?1:void 0,Ut})(rt),_t.gt=1,_t.ab=ct,_t.hu=mt?0:Et?1:void 0,_t.ri=Et,_t),(function(Tt){for(var Ut={},qt=0,ee=Object.keys(Tt);qt<ee.length;qt++){var se=ee[qt],le=Tt[se];if(le){var _e="error"in le?H0(le.error):le.value;Ut[se]=_e}}return Ut})(l)),[4,Promise.all(u.map((function(Tt){var Ut=Tt.toRequest;return(0,e.sH)(Vt,void 0,void 0,(function(){var qt,ee,se;return(0,e.YH)(this,(function(le){switch(le.label){case 0:return Ut?(ee=(qt=Object).assign,se=[gt],[4,Ut(Q,rt)]):[3,2];case 1:ee.apply(qt,se.concat([le.sent()])),le.label=2;case 2:return[2]}}))}))})))];case 1:return Ht.sent(),[2,gt]}var Yt}))}))}function z0(s,u,a,l,m){m===void 0&&(m=h5);var w=m()%(a+1),b=di(s),_=1+u.length+1+w+l+b.length,v=new ArrayBuffer(_),O=new Uint8Array(v),B=0,L=m();O[B++]=L;for(var q=0,Q=u;q<Q.length;q++){var tt=Q[q];O[B++]=L+tt}O[B++]=L+w;for(var rt=0;rt<w;++rt)O[B++]=m();var ct=new Uint8Array(l);for(rt=0;rt<l;++rt)ct[rt]=m(),O[B++]=ct[rt];for(rt=0;rt<b.length;++rt)O[B++]=b[rt]^ct[rt%l];return v}function Bc(s,u,a){var l=function(){throw new Error("Invalid data")},m=di(s);m.length<u.length+2&&l();for(var w=0;w<u.length;++w)Fl(m[1+w],m[0])!==u[w]&&l();var b=1+u.length,_=Fl(m[b],m[0]);m.length<b+1+_+a&&l();var v=b+1+_,O=v+a,B=new ArrayBuffer(m.length-O),L=new Uint8Array(B);for(w=0;w<L.length;++w)L[w]=m[O+w]^m[v+w%a];return B}function i6(s){return(0,e.sH)(this,void 0,void 0,(function(){var u,a,l,m,w;return(0,e.YH)(this,(function(b){switch(b.label){case 0:return G0()?(u=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),a=u[0],l=u[1],[4,o6(s,l)]):[2,[!1,s]];case 1:return m=b.sent(),w=a?m:(function(_){return new Uint8Array(_.buffer,_.byteOffset+2,_.byteLength-6)})(m),[2,[!0,w]]}}))}))}function G0(){return typeof CompressionStream<"u"}function o6(s,u){return(0,e.sH)(this,void 0,void 0,(function(){var a,l,m,w,b,_,v,O,B,L,q;return(0,e.YH)(this,(function(Q){switch(Q.label){case 0:(a=u.writable.getWriter()).write(s),a.close(),l=u.readable.getReader(),m=[],w=0,Q.label=1;case 1:return[4,l.read()];case 2:if(b=Q.sent(),_=b.value,b.done)return[3,4];m.push(_),w+=_.byteLength,Q.label=3;case 3:return[3,1];case 4:if(m.length===1)return[2,m[0]];for(v=new Uint8Array(w),O=0,B=0,L=m;B<L.length;B++)q=L[B],v.set(q,O),O+=q.byteLength;return[2,v]}}))}))}var K0=[3,13],s6=[3,14];function a6(s,u){return z0(s,u?s6:K0,3,9)}function c6(s){var u=s.body,a=(0,e.Tt)(s,["body"]);return(0,e.sH)(this,void 0,void 0,(function(){var l,m,w,b,_,v,O;return(0,e.YH)(this,(function(B){switch(B.label){case 0:return j0(u)?[4,i6(u)]:[3,2];case 1:return b=B.sent(),[3,3];case 2:b=[!1,u],B.label=3;case 3:return m=(l=b)[0],w=l[1],[4,C0((0,e.Cl)((0,e.Cl)({},a),{body:a6(w,m),responseFormat:"binary"}))];case 4:_=B.sent(),v=_.body,O=!1;try{v=Bc(v,K0,9),O=!0}catch{}return[2,(0,e.Cl)((0,e.Cl)({},_),{body:v,wasSecret:O})]}}))}))}function j0(s){return s.byteLength>1024&&G0()}function Y0(s,u,a,l,m){return(0,e.sH)(this,void 0,void 0,(function(){var w,b,_,v,O=this;return(0,e.YH)(this,(function(B){switch(B.label){case 0:if(s.length===0)throw new TypeError("The list of endpoints is empty");return w=s.map((function(L){return(function(q,Q){var tt=Q.apiKey,rt=Q.integrations,ct=rt===void 0?[]:rt;return Lc(q,{ci:V0(),q:tt,ii:ct})})(L,u)})),[4,r6(u)];case 1:return b=B.sent(),_=t0(b),v=u.fast?0:1,[4,Po(m,(function(){return{e:15,stage:v,body:b,isCompressed:j0(_)}}),(function(L){return{e:16,stage:v,result:L}}),(function(L){return{e:17,stage:v,error:L}}),(function(){return(0,e.sH)(O,void 0,void 0,(function(){return(0,e.YH)(this,(function(L){switch(L.label){case 0:return[4,F0(w,u6.bind(null,_,m,v,a),T5.bind(null,u.modules,!!u.extendedResult,u.storageKey),1/0,l)];case 1:return[2,f6(L.sent())]}}))}))}))];case 2:return[2,B.sent()]}}))}))}function u6(s,u,a,l,m,w,b){var _=this;return Po(u,(function(){return{e:18,stage:a,tryNumber:w,url:m}}),(function(v){var O=v.status,B=v.getHeader,L=v.body,q=v.bodyData,Q=v.wasSecret;return{e:19,stage:a,tryNumber:w,status:O,retryAfter:B("retry-after"),body:q??L,wasSecret:Q}}),(function(v){return{e:20,stage:a,tryNumber:w,error:v}}),(function(){return(0,e.sH)(_,void 0,void 0,(function(){return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,c6({url:m,method:"post",headers:{"Content-Type":"text/plain"},body:s,withCredentials:!0,abort:b,container:l})];case 1:return[2,O5(v.sent())]}}))}))}))}function f6(s){var u=s.result,a=s.failedAttempts,l=s.aborted;if(u)return u;var m=a[0];if(!m)throw l&&!l.resolve?l.error:new Error("aborted");var w=m.level,b=m.error;if(w===0&&b instanceof Error){switch(b.name){case"CSPError":throw new Error(Tc);case"InvalidURLError":throw new Error(Nc);case"AbortError":throw new Error(kc)}throw new Error(Ic)}throw b}function l6(s,u,a){var l,m=this,w=(0,e.Cl)((0,e.Cl)({},a),{cache:{}}),b=(function(q){for(var Q={},tt={},rt={},ct=0,mt=q;ct<mt.length;ct++){var Et=mt[ct].sources;Et&&(Object.assign(Q,Et.stage1),Object.assign(tt,Et.stage2),Object.assign(rt,Et.stage3))}var gt=tt;return Object.assign(gt,rt),[Q,gt]})(s),_=b[0],v=b[1],O=u?1e5:50,B=vt(_,w,[],O),L=xo((l=8,l===void 0&&(l=50),(function(q,Q){Q===void 0&&(Q=1/0);var tt=window.requestIdleCallback;return tt?new Promise((function(rt){return tt.call(window,(function(){return rt()}),{timeout:Q})})):o(Math.min(q,Q))})(l,2*l)).then((function(){return vt(v,w,[],O)})));return function(){return(0,e.sH)(m,void 0,void 0,(function(){var q,Q,tt,rt;return(0,e.YH)(this,(function(ct){switch(ct.label){case 0:return[4,Promise.all([B(),L.then((function(mt){return mt()}))])];case 1:return q=ct.sent(),Q=q[0],tt=q[1],rt=tt,Object.assign(rt,Q),[2,rt]}}))}))}}function Kr(s,u){for(var a=s;a;){for(var l=Object.getOwnPropertyNames(a),m=0;m<l.length;m++){var w=l[m];if(vr(w)==u)return w}a=Object.getPrototypeOf(a)}return""}function Xt(s,u){var a=s[Kr(s,u)];return typeof a=="function"?a.bind(s):a}function Dn(s,u){var a;return function(l){return a||(a=(function(m,w){return Us(Bc(new Uint32Array(m),[],w))})(s,u)),Cs(a[l])}}function Mo(s,u,a){var l;return function(m){return l===null?l:(l||(l=(function(w,b,_){var v=Gr(b());try{return Us((function(O,B,L){for(var q=di(O),Q=new ArrayBuffer(q.length-L),tt=new Uint8Array(Q),rt=0;rt<q.length;++rt)tt[rt]=q[rt]^B[rt%B.length];return Q})(new Uint32Array(w),v,_))}catch(O){if(Ts(O)&&O.name==="SyntaxError")return null;throw O}})(s,u,a)),Cs(l&&l[m]))}}var pi=Dn([3237452699,2611787672,3045311674,2962332150,4003383289,4090353905,3805249708,3028587956,2899958253,2946027702,4002601983,4204452091,4039413417,3970602410,3953912762,2631244730,3973421252,2844251834,2861027766,2946406891,3050675130,3806041579,2961425392,4023946731,3800865722,4208313581,2776941242,3806041513,4208313085,2743259834,3806041513,4208314361,3012023994,3968505257,3045300922,2799294954,4001684968,2648037617],4),d6=[202,206];function h6(s){for(var u={uAVXy:"9|5|11|0|3|6|7|2|10|8|4|1",FInQd:function(rt,ct){return rt(ct)},kpZRq:function(rt,ct,mt){return rt(ct,mt)},UoPyk:function(rt,ct){return rt(ct)},UpGPH:function(rt,ct,mt){return rt(ct,mt)},ZuRYV:function(rt,ct){return rt-ct},VnFXf:function(rt,ct,mt,Et){return rt(ct,mt,Et)},fDQiC:function(rt,ct){return rt(ct)},eKHGy:function(rt,ct){return rt<ct},AkgUE:function(rt,ct){return rt/ct},iBJKB:function(rt,ct,mt){return rt(ct,mt)},lIinn:function(rt,ct){return rt+ct}},a=u.uAVXy.split("|"),l=0;;){switch(a[l++]){case"0":var m=u.FInQd(mr,v);continue;case"1":return u.kpZRq(M5,s,_);case"2":var w=u.kpZRq(g6,u.UoPyk(Gr,B),d6);continue;case"3":var b=u.UpGPH(parseInt,q[u.ZuRYV(q.length,1)],16);continue;case"4":var _=u.kpZRq(p6,L,v);continue;case"5":var v=new Uint8Array(16);continue;case"6":var O=u.VnFXf(q0,v[b],8,22);continue;case"7":var B=m.slice(0,Math.min(u.ZuRYV(m.length,2),O));continue;case"8":var L="".concat(B).concat(Q).replace(new RegExp(u.fDQiC(pi,1),"g"),"-").replace(new RegExp(u.fDQiC(pi,2),"g"),"_");continue;case"9":var q=u.UoPyk(Sn,s);continue;case"10":var Q=u.FInQd(mr,u.FInQd(m6,u.FInQd(Vl,w))).slice(0,2);continue;case"11":for(var tt=0;u.eKHGy(tt,q.length);tt+=2)v[u.AkgUE(tt,2)]=u.iBJKB(parseInt,"".concat(q[tt]).concat(q[u.lIinn(tt,1)]),16);continue}break}}function p6(s,u){for(var a={goMxK:"2|4|1|0|3",lnlOq:function(v,O){return v<O},RltcK:function(v,O,B,L){return v(O,B,L)},cVMXe:function(v,O){return v&O},SclSa:function(v,O){return v+O}},l=a.goMxK.split("|"),m=0;;){switch(l[m++]){case"0":for(;a.lnlOq(b,s.length);)_=a.RltcK(q0,u[a.cVMXe(b,15)],4,7),w+=s.slice(b,a.SclSa(b,_)),w+="/",b+=_;continue;case"1":var w="";continue;case"2":var b=0;continue;case"3":return w.slice(0,-1);case"4":var _=0;continue}break}}function q0(s,u,a){return(function(l,m){return l+m})(u,Math.floor((function(l,m){return l*m})((function(l){return l/256})(s),(function(l){return l+1})((function(l,m){return l-m})(a,u)))))}function g6(s,u){for(var a={toGYz:"0|3|4|1|2",OGfKZ:function(v,O){return v+O},ENgdo:function(v,O){return v<O},oVWhZ:function(v,O){return v+O}},l=a.toGYz.split("|"),m=0;;){switch(l[m++]){case"0":var w=a.OGfKZ(s.length,u.length);continue;case"1":for(var b=0;a.ENgdo(b,u.length);b++)_[a.oVWhZ(b,s.length)]=u[b];continue;case"2":return _;case"3":var _=new Uint8Array(w);continue;case"4":for(b=0;a.ENgdo(b,s.length);b++)_[b]=s[b];continue}break}}function m6(s){var u=function(a,l){return a>>l};return new Uint8Array([u(s,24),u(s,16),(function(a){return a>>8})(s),s])}function Pc(s,u){return!!s&&(function(a,l){return a===l})((function(a,l){return a(l,3814588639)})(Xt,s),(function(a,l){return a(l,3814588639)})(Xt,u))}function v6(s){var u=function(l,m){return l(m)},a=(function(l){return l(3)})(pi);return(function(l,m){return l!==m})(s,u(pi,4))&&(a="".concat(s,".").concat(a)),u(pi,5).concat(a,"/")}function y6(s){var u=(function(a){return a(6)})(pi)[s];return"".concat(u,(function(a){return a(7)})(pi))}var w6=(function(){var s;return(s={}).noop=["a","b"],s})();function b6(s,u,a,l,m,w,b,_,v,O,B,L,q){var Q=this,tt={modules:s,apiKey:l,integrations:_,imi:v,storageKey:b,ab:B,urlHashing:O},rt=function(_t,Vt,Ht){return(0,e.sH)(Q,void 0,void 0,(function(){var Yt,Tt,Ut;return(0,e.YH)(this,(function(qt){switch(qt.label){case 0:return L?[4,mt()]:[2,void 0];case 1:Yt=qt.sent(),Tt=!1,Vt.catch((function(){return Tt=!0})),qt.label=2;case 2:return qt.trys.push([2,4,,5]),[4,Y0(m,(0,e.Cl)((0,e.Cl)({},tt),{tls:Yt,fast:!0}),_t,Vt,Ht)];case 3:return[2,qt.sent()];case 4:if(Ut=qt.sent(),Tt)throw Ut;return Ts(Ut)&&Ut.message===v0||console.warn(Ut),[2,void 0];case 5:return[2]}}))}))},ct=function(_t,Vt,Ht){var Yt=_t.timeout,Tt=Yt===void 0?1e4:Yt,Ut=_t.tag,qt=_t.linkedId,ee=_t.disableTls,se=_t.extendedResult,le=_t.exposeComponents,_e=_t.environment,we=_t.products,Te=xo(Promise.all([gt(Ht),Et(Tt,ee,Ht)]));return function(Ue,De){return(0,e.sH)(Q,void 0,void 0,(function(){var Le,hn,Mn;return(0,e.YH)(this,(function(In){switch(In.label){case 0:return[4,Promise.race([De,Te])];case 1:return Le=In.sent(),hn=Le[0],Mn=Le[1],[4,Y0(m,(0,e.Cl)((0,e.Cl)({},tt),{components:hn,customComponent:_e,tag:Ut,tls:Mn,linkedId:Hl(qt),extendedResult:se,exposeComponents:le,algorithm:w,products:f5(we,"products"),requestId:Ue}),Vt,De,Ht)];case 2:return[2,In.sent()]}}))}))}},mt=function(){return a?.(0,50,!1,void 0)},Et=function(_t,Vt,Ht){return a?.(.1*_t,.4*_t,Vt,Ht)},gt=function(_t){return(0,e.sH)(Q,void 0,void 0,(function(){var Vt,Ht;return(0,e.YH)(this,(function(Yt){switch(Yt.label){case 0:return Yt.trys.push([0,2,,3]),[4,u()];case 1:return Vt=Yt.sent(),Nr(_t,(function(){return{e:13,result:Vt}})),[2,Vt];case 2:throw Ht=Yt.sent(),Nr(_t,(function(){return{e:14,error:Ht}})),Ht;case 3:return[2]}}))}))};return{get:function(_t){_t===void 0&&(_t={});var Vt=q&&(function(Ht,Yt){return function(Tt){return Ht((0,e.Cl)((0,e.Cl)({},Tt),{getCallId:Yt}))}})(q,Co(8));return Po(Vt,(function(){return{e:3,options:_t}}),(function(Ht){return{e:4,result:Ht}}),(function(Ht){return{e:5,error:Ht}}),(function(){return Ht=function(Yt){return(function(Tt,Ut,qt){return(0,e.sH)(Q,void 0,void 0,(function(){var ee,se,le,_e,we,Te,Ue;return(0,e.YH)(this,(function(De){switch(De.label){case 0:ee=Ml(),De.label=1;case 1:return De.trys.push([1,,7,8]),se=L0(ee),le=Yn((Ue=Tt.timeout)!==null&&Ue!==void 0?Ue:1e4).then((function(){return Promise.reject(new Error(Ac))})),_e=ct(Tt,se,Ut),[4,rt(se,le,Ut)];case 2:return(we=De.sent())?(qt(we),[4,_e(we.requestId,le)]):[3,4];case 3:return De.sent(),[3,6];case 4:return Te=qt,[4,_e(void 0,le)];case 5:Te.apply(void 0,[De.sent()]),De.label=6;case 6:return[3,8];case 7:return ee.resolve(),[7];case 8:return[2]}}))}))})(_t,Vt,Yt)},new Promise((function(Yt,Tt){Ht(Yt).then((function(){return Tt(new Error("Action didn't call `resolve` or `reject`"))}),Tt)}));var Ht}))}}}var Z0=function(s){return(0,e.sH)(this,void 0,void 0,(function(){var u,a;return(0,e.YH)(this,(function(l){switch(l.label){case 0:return m=(0,e.fX)([(b=/{(.*?)}/.exec(location.hash),!!b&&vr(b[1])===3025844545&&L5())],(s?.modules||[]).map((function(_){return _.addEvent})),!0),w=m.filter((function(_){return!!_})),u=w.length?function(){for(var _=[],v=0;v<arguments.length;v++)_[v]=arguments[v];for(var O=function(q){Pl((function(){return q.apply(void 0,_)}))},B=0,L=w;B<L.length;B++)O(L[B])}:void 0,a=u&&(function(_,v){return function(O){return _((0,e.Cl)((0,e.Cl)({},O),{agentId:v}))}})(u,Co(8)),[4,Po(a,(function(){return{e:0,version:bc,options:s}}),(function(_){return{e:1,ab:_[1]}}),(function(_){return{e:2,error:_}}),(function(){var _,v,O=s.token,B=s.apiKey,L=B===void 0?O:B,q=s.region,Q=q===void 0?"us":q,tt=s.tlsEndpoint,rt=tt===void 0?Ps:tt,ct=s.disableTls,mt=s.storageKey,Et=mt===void 0?Zl:mt,gt=s.endpoint,_t=gt===void 0?Bs:gt,Vt=s.te,Ht=Vt===void 0?Yl:Vt,Yt=s.integrationInfo,Tt=Yt===void 0?[]:Yt,Ut=s.algorithm,qt=s.imi,ee=qt===void 0?((_={}).m="s",_):qt,se=s.stripUrlParams,le=s.urlHashing,_e=le===void 0?ql(se):le,we=s.modules,Te=s.abTests,Ue=Te===void 0?{}:Te,De=s.externalABSelections,Le=De===void 0?{}:De,hn=s.optimizeRepeatedVisits,Mn=hn!==void 0&&hn,In=s.aggressiveOptimization,Zn=In!==void 0&&In;if(!L||typeof L!="string")throw new Error("API key required");var nr,rr,qr,mi,wr,bn,Bt,Ot,Nt,te=(function(xe,ze,rn){for(var Nn=(0,e.Cl)({},rn),Zr=0,Fo=Object.entries(xe);Zr<Fo.length;Zr++){var ji=Fo[Zr],Yi=ji[0],Vo=ji[1],Fn=ze[Yi];if(Fn)try{Nn[Yi]=jl(Fn);continue}catch(ir){console.error(ir)}Nn[Yi]=jl(Vo)}return Nn})((function(xe){for(var ze=(0,e.Cl)({},w6),rn=0,Nn=xe;rn<Nn.length;rn++){var Zr=Nn[rn];Object.assign(ze,Zr.ab)}return ze})(we),Ue,Le),ce=(nr=_t,rr=Q,qr=function(xe,ze,rn){return xe(ze,rn)},mi=function(xe,ze){return xe(ze)},wr=function(xe,ze){return xe(ze)},(Array.isArray(nr)?nr:[nr]).map((function(xe){return qr(Pc,xe,Bs)?mi(v6,rr):wr(String,xe)}))),wn=(v=(function(xe){for(var ze=0,rn=xe;ze<rn.length;ze++){var Nn=rn[ze];if(Nn.tls)return Nn.tls}})(we))===null||v===void 0?void 0:v(rt,ce,L,ct,void 0,a);return Nr(a,(function(){return{e:12}})),[b6(we,l6(we,Zn,{urlHashing:_e,ab:te,te:(Bt=Q,Ot=function(xe,ze){return xe(ze)},Nt=function(xe,ze){return xe(ze)},Pc(bn=Ht,Yl)?Ot(y6,Bt):Nt(String,bn))}),wn,L,ce,Hl(Ut),Et,Tt,ee,_e,te,Mn,a),te]}))];case 1:return[2,l.sent()[0]]}var m,w,b}))}))},_6=gn(Gt),E6=An(ye,-1),R6=gn(oe),S6=wt(g,(function(s){return s===-1||s===-2||s===-3?{s,v:null}:{s:0,v:s}})),A6=wt(Oe,(function(s){return{s:0,v:s.map((function(u){return u===null?-1:u}))}})),$0=An(ae,-1),X0=gn(ve),I6=An(he,-1),J0=An(fe,-1),Q0=wt(Ee,(function(s){return{s:0,v:s.map((function(u){return u===null?-1:u}))}})),td=An(nn,-1),k6=gn(be),O6=gn(Ae),T6=gn(yn),N6=gn(Ve),x6=An(Ke,-1),ed=An(Tr,-1),C6=An(Xe,-1),L6=wt((function(){return Kt()}),(function(s){var u=s.geometry,a=s.text,l=u==="unsupported"?-1:u==="unstable"?-2:0;return{s:l,v:(0,e.Cl)((0,e.Cl)({},s),{geometry:l===0?Sn(u):"",text:l===0?Sn(a):""})}})),nd=gn($e),rd=gn(li),B6=gn(an),P6=gn(cn),M6=An(Is,-1),U6=An(un,-1),D6=An(fn,-1),F6=An(ks,-1),V6=An(ln,-1),H6=An(dn,-1),W6=An(go,-1),z6=An(mo,-1),G6=wt(vo,(function(s){return{s:0,v:Sn(Object.keys(s).map((function(u){return"".concat(u,"=").concat(s[u])})).join(","))}})),K6=An(yo,-1),j6=gn(wo),Y6=An(bo,-1),q6=wt(_o,(function(s){return s===-1||s===-2||s===-3?{s,v:null}:{s:0,v:s}})),id=W0(Ro),od=wt(So,(function(s){var u;if(typeof s=="number")return{s,v:null};var a=["32926","32928"],l=s.parameters.map((function(w){var b=w.split("=",3),_=b[0],v=b[1];return b[2]!==void 0||a.includes(v)?"".concat(_,"(").concat(v,")=null"):"".concat(_,"=").concat(v)})),m=s.extensionParameters.map((function(w){var b=w.split("=",3),_=b[0],v=b[1],O=b[2];return O!==void 0&&v!=="34047"?"".concat(_,"(").concat(v,")=").concat(O):"".concat(_,"=").concat(v)}));return{s:0,v:{contextAttributes:Sn(s.contextAttributes.join("&")),parameters:Sn(l.join("&")),parameters2:Sn(s.parameters.join("&")),shaderPrecisions:Sn(s.shaderPrecisions.join("&")),extensions:Sn(((u=s.extensions)===null||u===void 0?void 0:u.join(","))||""),extensionParameters:Sn(m.join(",")),extensionParameters2:Sn(s.extensionParameters.join("&")),unsupportedExtensions:s.unsupportedExtensions}}})),Z6=W0(Eo),$6=Gn(zn.userAgent),X6=Gn(zn.appVersion),J6=Gn(zn.rtt),Q6=Gn(zn.notificationPermissions),tw=Gn(zn.pluginsLength),ew=Gn(zn.errorTrace),nw=Gn(zn.productSub),rw=Gn(zn.documentElementKeys),iw=Gn(zn.windowExternal),ow=Gn(zn.mimeTypesConsistent),sw=Gn(zn.functionBind),aw=Gn(zn.process),cw=Gn(zn.windowSize),uw=Gn(zn.distinctiveProps),sd=gn(D),ad=gn(h),cd=gn(I),ud=gn(U),fd=gn(j),ld=gn(X),dd=gn(ut),hd=gn(M0),fw=gn(Y);function lw(){var s=window;if(!I())return Gi(!1);try{if([66,114,97,118,101].map((function(b){return String.fromCharCode(b)})).join("")in s)return Gi(!0);var u=document.createElement("canvas");u.width=4,u.height=4,u.style.display="inline";var a=u.toDataURL();if(a==="")return Gi(!0);var l=xs(a.split(",")[1]),m=Dl(l,[73,68,65,84,24]);if(m===-1)return Gi(!1);var w=Dl(l,[73,69,78,68]);return Gi(w!==-1&&l.slice(m+5,w).reduce((function(b,_){return b+_}),0)!==1321)}catch{return Gi(!1)}}function Gi(s){return{s:0,v:s}}function pd(){return gd("dark")?{s:0,v:!0}:gd("light")?{s:0,v:!1}:{s:-1,v:null}}function gd(s){return matchMedia("(prefers-color-scheme: ".concat(s,")")).matches}function md(){var s=Date.now();return{s:0,v:[vd(s),vd(s-6e4*new Date().getTimezoneOffset())]}}function vd(s){var u=Number(s);return isNaN(u)?-1:u}function dw(){var s=window.performance;if(!s?.now)return{s:-1,v:null};for(var u=1,a=1,l=s.now(),m=l,w=0;w<5e4;w++)if((l=m)<(m=s.now())){var b=m-l;b>u?b<a&&(a=b):b<u&&(a=u,u=b)}return{s:0,v:[u,a]}}var hw=Dn([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);function pw(){var s,u,a=function(w,b){return w===b},l=function(w,b,_){return w(b,_)},m=a(u=(function(w){return w===null})(s=window[(function(w){return w(0)})(hw)])||a(s,void 0)?void 0:l(Xt,s,3933025333),null)||(function(w){return w===void 0})(u)?void 0:l(Xt,u,3098533860);return(function(w){return w===null})(m)||a(m,void 0)?{s:-1,v:null}:{s:0,v:m}}function gw(s){var u=ot(s.cache);return u?((function(a){a.clearColor(0,0,1,1);var l=a.createProgram();if(l){b(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),b(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),a.linkProgram(l),a.useProgram(l),a.enableVertexAttribArray(0);var m=a.getUniformLocation(l,"t"),w=a.createBuffer();a.bindBuffer(34962,w),a.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),a.vertexAttribPointer(0,2,5126,!1,0,0),a.clear(16384),a.uniform1f(m,3.65),a.drawArrays(4,0,3)}function b(_,v){var O=a.createShader(35633-_);l&&O&&(a.shaderSource(O,v),a.compileShader(O),a.attachShader(l,O))}})(u),{s:0,v:Sn(u.canvas.toDataURL())}):{s:-1,v:null}}function mw(s){return yd(s,yw)}function vw(s){return yd(s,ww)}function yd(s,u){var a=s.cache;return(0,e.sH)(this,void 0,void 0,(function(){var l,m;return(0,e.YH)(this,(function(w){switch(w.label){case 0:return typeof((l=window.speechSynthesis)==null?void 0:l.getVoices)!="function"?[2,{s:-1,v:null}]:(a.tts||(a.tts=(function(b){return(0,e.sH)(this,void 0,void 0,(function(){var _,v,O;return(0,e.YH)(this,(function(B){switch(B.label){case 0:if(_=function(){return b.getVoices()},(function(L){return!L.addEventListener||X()&&M0()})(b))return[2,{v:_()}];v={v:null},B.label=1;case 1:return B.trys.push([1,,3,4]),[4,new Promise((function(L,q){var Q,tt=function(){var rt=_();rt.length?(v.v=rt,Q?.(),Q=gc(L,50)):Q||(Q=Os(L,600))};O=Wi(b,"voiceschanged",(function(){try{tt()}catch(rt){q(rt)}})),tt()}))];case 2:return B.sent(),[3,4];case 3:return O&&Os(O,1e4),[7];case 4:return[2,v]}}))}))})(l)),[4,a.tts]);case 1:return m=w.sent(),[2,function(){return m.v?u(m.v):{s:-2,v:null}}]}}))}))}function yw(s){var u=function(l){return l.replace(/([,\\])/g,"\\$1")},a=s.map((function(l){return[u(l.voiceURI),u(l.name),u(l.lang),l.localService?"1":"0",l.default?"1":"0"].join(",")})).sort();return{s:s.length?0:1,v:Sn(JSON.stringify(a))}}function ww(s){var u=s.some((function(a){return vr(a.name.slice(0,6))===1655763047}));return{s:s.length?0:1,v:u}}var bw=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function _w(){var s;return(0,e.sH)(this,void 0,void 0,(function(){var u,a,l,m=this;return(0,e.YH)(this,(function(w){switch(w.label){case 0:return(u=navigator.userAgentData)&&typeof u=="object"?(a={},l=[],typeof u.getHighEntropyValues!="function"?[3,2]:[4,Promise.all(bw.map((function(b){return(0,e.sH)(m,void 0,void 0,(function(){var _,v;return(0,e.YH)(this,(function(O){switch(O.label){case 0:return O.trys.push([0,2,,3]),[4,u.getHighEntropyValues([b])];case 1:return(_=O.sent()[b])!==void 0&&(a[b]=typeof _=="string"?_:JSON.stringify(_)),[3,3];case 2:if(!((v=O.sent())instanceof Error&&v.name==="NotAllowedError"))throw v;return l.push(b),[3,3];case 3:return[2]}}))}))})))]):[2,{s:-1,v:null}];case 1:w.sent(),w.label=2;case 2:return[2,{s:0,v:{b:u.brands.map((function(b){return{b:b.brand,v:b.version}})),m:u.mobile,p:(s=u.platform)!==null&&s!==void 0?s:null,h:a,nah:l}}]}}))}))}function wd(s){var u=s.urlHashing;return(0,e.sH)(this,void 0,void 0,(function(){var a,l,m;return(0,e.YH)(this,(function(w){switch(w.label){case 0:return a=(function(){for(var b,_,v=[],O=window;;)try{var B=(b=O.location)===null||b===void 0?void 0:b.href,L=(_=O.document)===null||_===void 0?void 0:_.referrer;if(B===void 0||L===void 0)return{s:1,v};v.push({l:B,f:L});var q=O.parent;if(!q||q===O)return{s:0,v};O=q}catch(Q){if(Rw(Q))return{s:1,v};throw Q}})(),l=[(0,e.Cl)({},a)],m={},[4,Ew(a.v,u)];case 1:return[2,e.Cl.apply(void 0,l.concat([(m.v=w.sent(),m)]))]}}))}))}function Ew(s,u){return(0,e.sH)(this,void 0,void 0,(function(){var a=this;return(0,e.YH)(this,(function(l){return[2,Promise.all(s.map((function(m){return(0,e.sH)(a,void 0,void 0,(function(){var w,b,_;return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,Promise.all([Ds(m.l,u),Ds(m.f,u)])];case 1:return w=v.sent(),b=w[0],_=w[1],[2,{l:b,f:_}]}}))}))})))]}))}))}function Rw(s){if(!s||typeof s!="object")return!1;var u=s;return!(!D()&&!h()||u.name!=="Error"&&u.name!=="TypeError"||u.message!=="Permission denied")||u.name==="SecurityError"}function Sw(){return(function(s){var u=s.location,a=s.origin,l=u.origin,m=u.ancestorOrigins,w=null;if(m){w=new Array(m.length);for(var b=0;b<m.length;++b)w[b]=m[b]}return{s:0,v:{w:a??null,l:l??null,a:w}}})(window)}function bd(){return{s:0,v:eval.toString().length}}function _d(){var s=navigator.webdriver;return s===null?{s:-1,v:null}:s===void 0?{s:-2,v:null}:{s:0,v:s}}function Aw(){var s=function(a,l,m){return a(l,m)},u=this;return s(tr,Yn(250,{s:-2,v:null}),(function(){var a,l,m=function(w,b,_){return s(w,b,_)};return a=e.sH,l=function(){var w,b=function(_,v,O){return s(_,v,O)};return(function(_,v,O){return _(v,O)})(e.YH,this,(function(_){switch(_.label){case 0:return!((function(v,O){return(function(B,L){return B===L})(v,O)})(w=m(Xt,navigator,1417288500),null)||(function(v){return(function(O){return O===void 0})(v)})(w))&&m(Xt,w,3686698663)?[4,m(Xt,w,3686698663)().then((function(){return{s:0,v:""}}),(function(v){return{s:0,v:b(Xt,v,3065852031)}}))]:[2,{s:-1,v:null}];case 1:return[2,_.sent()]}}))},a(u,void 0,void 0,l)}))}function Mc(){var s;return Uc([Kr(s=new Image().style,2882756133),Kr(s,3858258232)],[18,23,22,11,23,17,3,20,4,22,19,11,25,13,23,22,7,7,17,18,4,18,11,8,11,8,3,5,2,4,3,3,5,6,5,3,1,2,2,0,0])}function Iw(){var s;return Uc([Kr(s=new Image().style,2487676862),Kr(s,41374024)],[5,23,47,9,35,9,44,7,37,41,19,25,32,26,30,32,8,31,12,15,40,18,15,20,9,4,2,13,21,17,18,34,40,2,48])}function kw(){return s=navigator,u=document.createElement("frameset"),a=Xt(s,704082790),Uc([Kr(u,3017323393),Ed(s,859837811,"QjslADtOBipACA")||Ed(a,72906005,"Tjo/DSpIETFCCQ")],[20,1,24,23,23,21,14,8,11,8,6,13,1,1,12,4,9,10,6,2,1,2,0,1,2,1,1]);var s,u,a}function Ed(s,u,a){var l=Kr(s,u);if(!l)return"";for(var m=xs(a),w=Array(m.length),b=0;b<m.length;b++)w[b]=m[b]^l.charCodeAt(b%l.length);return String.fromCharCode.apply(null,w)}function Uc(s,u){for(var a=s.join(""),l=a.split(""),m=Array(a.length),w=0;w<m.length;++w)m[w]=l.splice(u[w%u.length],1);return m.join("")}var Je=Mo([290799128,256122120,104421910,67116302,755371265,505093152,152897830,504707661,470222364,504898635,1531393810,35461445,285283613,151395398,386279171,454440300,1259148302,67715140,117915663,1445400833,70599515,280581,270008841,369435995,272236574,119803980,704973062,135268614,184563807,1026755337,824180753,521019142,404440330,1310525212,689393240,992889883,118162967,75079,371069214,14400,67440946,336725549,100928582,419697754,37884160,822483751,151655985,440867606,34934535,1544297499,69023765,1530421525,521022789,352788490,152182535,1095068179,168111383,102371362,1379942426,218301962,410405200,674697750,150995736,1460669954,289295192,422585355,276197185,1241580055,503401029,169544981,956309037,1628772625,269702473,1481182751,12887,860704273,607786827,1079856400,370150428,234881091,407897606,354309752,1157892134,252333381,1264080656,304025857,1627786793,302143352,172563473,34688007,17172047,337261841,285893380,117845831,1448695310,152569103,1095068178,68628788,120395278,352653340,1245924639,288361223,2951185,3425555],Mc,1);function Rd(){if(!(function(u){return u in window})((s=Je,s(1))))return!1;var s;try{return new window[(function(u){return u(1)})(Je)],!0}catch(u){if((function(a){return a instanceof Error})(u)&&(function(a,l){return a===l})(u.name,(function(a){return a(2)})(Je)))return!1;throw u}}function Ow(s){return u=e.sH,a=function(){var l,m,w,b,_=function(v,O){return(function(B,L){return B(L)})(v,O)};return(function(v,O,B){return v(O,B)})(e.YH,this,(function(v){var O=function(B,L){return _(B,L)};switch(v.label){case 0:return l=_(Dc,s),m=l[0],w=l[1],b=l[2],(function(B){return(function(L){return L!==0})(B)})(w)?[2,{n:m,l:w}]:[4,new Promise((function(B){var L=function(q,Q){return O(q,Q)};b[O(Je,3)]((function(q){L(B,{n:m,l:q[L(Je,4)]})}),(function(){L(B,{n:m,l:-1})}))}))];case 1:return[2,v.sent()]}}))},u(this,void 0,void 0,a);var u,a}function Dc(s){for(var u={WceTb:"5|3|7|0|9|10|6|2|8|1|11|4",YXrDm:function(B,L,q){return B(L,q)},JsRES:function(B,L){return B(L)},WmCxs:function(B,L){return B(L)},kyiGc:function(B,L){return B===L},xozCJ:function(B,L){return B(L)},oRPyT:function(B,L){return B(L)},Unnxw:function(B,L){return B instanceof L},ZXJxt:function(B,L){return B===L},hAXYn:function(B,L){return B(L)},rrdYU:function(B,L){return B!==L},IPLsn:function(B,L){return B===L},qpBPk:function(B,L){return B(L)},tTnsV:function(B,L){return B===L},UBZPU:function(B,L){return B(L)},ijSLc:function(B,L){return B(L)},azIFr:function(B,L){return B(L)},axwYs:function(B,L){return B(L)},eKSOZ:function(B,L){return B===L}},a=u.WceTb.split("|"),l=0;;){switch(a[l++]){case"0":var m=u.YXrDm(Kr,new window[u.JsRES(Je,5)]("")[u.WmCxs(Je,6)](""),3626513111);continue;case"1":if(u.kyiGc(typeof O[u.WmCxs(Je,16)],u.xozCJ(Je,17)))return[w,-4,null];continue;case"2":try{v[u.oRPyT(Je,11)][u.JsRES(Je,12)](_)}catch(B){if(u.Unnxw(B,Error)&&u.ZXJxt(B.name,u.hAXYn(Je,2))&&u.rrdYU(u.IPLsn(b=B[u.qpBPk(Je,13)],null)||u.tTnsV(b,void 0)?void 0:b.indexOf(u.UBZPU(Je,14)),-1))return[w,-3,null];throw B}continue;case"3":var w=s.split("/").slice(-1)[0];continue;case"4":return[w,0,O[u.ijSLc(Je,16)][0]];case"5":var b;continue;case"6":var _=new window[u.WmCxs(Je,9)]([],s,u.oRPyT(Je,10));continue;case"7":var v=new window[u.qpBPk(Je,1)];continue;case"8":O[u.azIFr(Je,15)]=v[u.qpBPk(Je,15)];continue;case"9":var O=document[u.oRPyT(Je,7)](m);continue;case"10":O[u.JsRES(Je,8)]=u.axwYs(Je,3);continue;case"11":if(u.eKSOZ(O[u.qpBPk(Je,16)].length,0))return[w,-2,null];continue}break}}var jr=Dn([752472786,243421427,250966661,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function Tw(){var s,u,a=function(_){return _()},l=function(_,v,O){return _(v,O)},m=function(_,v,O){return _(v,O)},w=function(_,v,O){return _(v,O)},b=function(_,v,O){return _(v,O)};return s=e.sH,u=function(){var _,v=this;return(0,e.YH)(this,(function(O){var B=function(tt,rt,ct){return(function(mt,Et,gt){return mt(Et,gt)})(tt,rt,ct)},L=function(tt){return a(tt)},q=function(tt,rt,ct,mt,Et){return(function(gt,_t,Vt,Ht,Yt){return gt(_t,Vt,Ht,Yt)})(tt,rt,ct,mt,Et)},Q=function(tt,rt){return(function(ct,mt){return ct(mt)})(tt,rt)};switch(O.label){case 0:return(_=Je(0))?[3,2]:[4,l(tr,l(Yn,350,{s:-3,v:null}),(function(){var tt=function(ct){return L(ct)},rt=function(ct,mt){return(function(Et,gt){return(function(_t,Vt){return _t(Vt)})(Et,gt)})(ct,mt)};return q(e.sH,v,void 0,void 0,(function(){var ct;return B(e.YH,this,(function(mt){switch(mt.label){case 0:return ct={s:-3},[4,Promise.all([tt(Sd)])];case 1:return[2,(ct[rt(jr,0)]=mt.sent(),ct)]}}))}))}))];case 1:case 3:case 5:return[2,O.sent()];case 2:return a(Rd)?[3,4]:[4,m(tr,w(Yn,350,{s:-1,v:null}),(function(){var tt=function(ct,mt){return(function(Et,gt){return(function(_t,Vt){return _t(Vt)})(Et,gt)})(ct,mt)},rt=function(ct,mt){return Q(ct,mt)};return q(e.sH,v,void 0,void 0,(function(){var ct;return(function(mt,Et,gt){return B(mt,Et,gt)})(e.YH,this,(function(mt){switch(mt.label){case 0:return ct={s:-1},[4,Promise.all([tt(Sd,_[0])])];case 1:return[2,(ct[rt(jr,0)]=mt.sent(),ct)]}}))}))}))];case 4:return[4,w(tr,b(Yn,350,{s:-2,v:null}),(function(){var tt=function(rt,ct){return Q(rt,ct)};return q(e.sH,v,void 0,void 0,(function(){var rt;return(function(ct,mt,Et){return B(ct,mt,Et)})(e.YH,this,(function(ct){switch(ct.label){case 0:return rt={s:0},[4,Promise.all(_.map(Ow))];case 1:return[2,(rt[tt(jr,0)]=ct.sent(),rt)]}}))}))}))]}}))},s(this,void 0,void 0,u)}function Sd(s){var u,a,l=function(v,O){return v(O)},m=function(v,O){return v(O)},w=function(v,O,B){return v(O,B)},b=function(v,O){return v===O},_=function(v,O){return v===O};return s===void 0&&(s=m(jr,1)),(function(v,O,B,L,q){return v(O,void 0,void 0,q)})(e.sH,this,0,0,(function(){var v,O,B;return w(e.YH,this,(function(L){v=s.split("/").slice(-1)[0];try{return O=new window[l(jr,2)]([],s),B=new window[l(jr,3)](m(jr,4).concat(w(Xt,O,4081332993)||"").concat(v,l(jr,5)).concat(w(Xt,O,3034174415))),(function(q){return q===""})(b(u=w(Xt,B,3518522040),null)||(function(q){return q===void 0})(u)?void 0:u.substring(1))?[2,{n:v,l:-2}]:[2,{n:v,l:m(vr,_(a=w(Xt,B,3518522040),null)||b(a,void 0)?void 0:a.substring(1))}]}catch{return[2,{n:v,l:-1}]}return[2]}))}))}var Nw=Dn([2072691393,3531177868,682500123,140161052,2954107647,581829239],6);function xw(){var s=function(a,l){return a===l},u=(function(a){return a(navigator,3087401394)})(Xt);return s(u,void 0)||s(u,null)?{s:-1,v:null}:{s:0,v:u}}function Cw(){for(var s={pCQFw:"0|5|1|3|6|4|2",QPheb:function(B,L){return B(L)},cvtRQ:function(B,L){return B<L},obwRn:function(B,L,q){return B(L,q)},zLaAT:function(B,L,q,Q){return B(L,q,Q)},BBhKA:function(B,L){return B===L},dlsEs:function(B,L,q){return B(L,q)}},u=s.pCQFw.split("|"),a=0;;){switch(u[a++]){case"0":var l=window[s.QPheb(Nw,0)];continue;case"1":var m=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10];continue;case"2":return{s:0,v:O};case"3":var w=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];continue;case"4":for(var b=0,_=w;s.cvtRQ(b,_.length);b++){var v=_[b];O<<=1,O|=s.obwRn(Xt,l,1108488788)(Uint8Array.of.apply(Uint8Array,s.zLaAT(e.fX,s.zLaAT(e.fX,[],m,!1),v,!1)))?1:0}continue;case"5":if(!(!(s.BBhKA(l,null)||s.BBhKA(l,void 0))&&s.dlsEs(Xt,l,1108488788)))return{s:-1,v:null};continue;case"6":var O=0;continue}break}}function Lw(){for(var s={tzfkk:"3|4|0|2|1|5",hnlPn:function(O,B){return O-B},YETaQ:function(O,B){return O*B},zzipR:function(O,B){return O>=B},QPpiL:function(O,B){return O===B},YposS:function(O,B){return O%B},FPDfz:function(O,B){return O|B}},u=s.tzfkk.split("|"),a=0;;){switch(u[a++]){case"0":var l=4096;continue;case"1":for(var m=s.hnlPn(s.YETaQ(v,l),1);s.zzipR(m,0);--m)if(s.QPpiL(s.YposS(m,l),0)){var w=Math.random();_.push(s.FPDfz(s.YETaQ(s.hnlPn(b,w),Math.pow(2,31)),0)),b=w}continue;case"2":var b=Math.random();continue;case"3":var _=[];continue;case"4":var v=6;continue;case"5":return{s:0,v:_}}break}}function Ad(){var s=window.devicePixelRatio;return s==null?{s:-1,v:null}:{s:0,v:s}}function Bw(){for(var s=navigator,u=["webkitPersistentStorage","connectionSpeed","xr","hid"],a=[],l=0,m=Object.getOwnPropertyNames(Object.getPrototypeOf(s));l<m.length;l++){var w=m[l];if(!u.includes(w)){var b=s[w];typeof b=="function"&&b.name!==void 0&&a.push(b.name)}}return{s:0,v:a}}function Pw(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}function Mw(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function Uw(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};var s=new window.SharedArrayBuffer(1);return s.byteLength===void 0?{s:-1,v:null}:{s:0,v:s.byteLength}}function Dw(){if(typeof window.matchMedia!="function")return{s:-2,v:null};var s=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return s.matches===void 0?{s:-1,v:null}:{s:0,v:s.matches}}function Fw(){try{throw"a"}catch(s){try{return s.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}function Vw(){return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(s){return[2,K((function(u,a){var l=a.document.createElement("div");return l.style.border=".5px dotted transparent",a.document.body.appendChild(l),{s:0,v:l.offsetHeight}}))]}))}))}function Hw(){return navigator.mimeTypes===void 0?{s:-1,v:null}:navigator.mimeTypes.length===void 0?{s:-3,v:null}:{s:0,v:navigator.mimeTypes.length}}function Ww(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function zw(){if(navigator.plugins===void 0)return{s:-1,v:null};for(var s=navigator.plugins,u=Object.getPrototypeOf(s)===PluginArray.prototype,a=0;a<s.length;a++)u&&(u=Object.getPrototypeOf(s[a])===Plugin.prototype);return{s:0,v:u}}function Gw(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}function Kw(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}function Id(){var s=navigator.language;return s?{s:0,v:s}:{s:-1,v:null}}function kd(){var s=navigator.languages;return s?{s:0,v:s}:{s:-1,v:null}}function jw(){var s,u,a=function(m,w,b){return m(w,b)},l=function(m,w,b){return m(w,b)};return s=e.sH,u=function(){var m,w,b,_;return(function(v,O,B){return v(O,B)})(e.YH,this,(function(v){switch(v.label){case 0:return m=navigator,w=a(Xt,m,1417288500),(b=a(Xt,m,2706846255))||!((function(O){return O===null})(w)||(function(O){return O===void 0})(w))&&a(Xt,w,3538568711)?b?[4,Promise.race([a(No,250,void 0),new Promise((function(O){(function(B,L){return a(B,L,1291883197)})(Xt,b)((function(B,L){return(function(q,Q){return(function(tt,rt){return tt(rt)})(q,Q)})(O,L)}))}))])]:[3,2]:[2,{s:-1,v:null}];case 1:if((function(O){return O!==void 0})(_=v.sent()))return[2,{s:0,v:_}];v.label=2;case 2:return!((function(O){return O===null})(w)||(function(O){return O===void 0})(w))&&l(Xt,w,3538568711)?[4,Promise.race([a(No,250,void 0),l(Xt,w,3538568711)().then((function(O){return(function(B,L){return a(B,L,1813778413)})(Xt,O)}))])]:[3,4];case 3:if((function(O){return O!==void 0})(_=v.sent()))return[2,{s:1,v:_}];v.label=4;case 4:return[2,{s:-2,v:null}]}}))},s(this,void 0,void 0,u)}var Yw=Dn([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function qw(){var s=function(u,a){return u===a};return(0,e.sH)(this,void 0,void 0,(function(){var u,a=function(w){return(function(b){return b()})(w)},l=function(w,b,_){return(function(v,O,B){return v(O,B)})(w,b,_)},m=function(w){return(function(b){return b()})(w)};return(function(w,b,_){return w(b,_)})(e.YH,this,(function(w){switch(w.label){case 0:return a(I)&&a(j5)?[2,{s:-3,v:null}]:[4,Promise.race([l(No,100,null),m(Zw)])];case 1:return(function(b){return s(b,null)})(u=w.sent())?[2,{s:-2,v:null}]:(function(b){return s(b,void 0)})(u)?[2,{s:-1,v:null}]:[2,{s:0,v:u}]}}))}))}function Zw(){var s=function(a,l){return a(l)},u=function(a,l,m,w,b){return a(l,m,w,b)};return u(e.sH,this,void 0,void 0,(function(){var a,l=function(m,w){return s(m,w)};return(function(m,w,b){return m(w,b)})(e.YH,this,(function(m){return(a=window[(function(w,b){return s(w,b)})(Yw,0)])?[2,new Promise((function(w){(function(b,_,v,O,B){u(b,_,v,O,B)})(a,0,1,(function(){return(function(b){return l(b,!0)})(w)}),(function(){return(function(b){return l(b,!1)})(w)}))}))]:[2,void 0]}))}))}function $w(){return K((function(s,u){var a=u.screen,l=function(m){var w=parseInt(m);return typeof w=="number"&&isNaN(w)?-1:w};return{s:0,v:{w:l(a.width),h:l(a.height)}}}))}var gi=Dn([3924185679,3632893699,2980828376,2699881398,2597186493,3081479162,2868636342,4104912311,2917654778,3120294056,3186092732,3169643453,4210205690,3086875321,2867519889,3068977853,2897456556,2783771306,3033247220,4104908215,3152862458,2900426157,2868628129,2242641335],4);function Xw(){try{return(function(u,a){return u(a)})(Od,!!window[s=gi,s(0)])}catch{return(function(a){return a(!0)})(Od)}var s}function Od(s){return{s:0,v:s}}function Jw(){var s=function(l){return l()},u=function(l,m,w){return l(m,w)},a=this;return u(tr,Yn(250,{s:-3,v:null}),(function(){return l=e.sH,m=function(){var w=function(b){return s(b)};return u(e.YH,this,(function(b){return w(U)||(function(_){return s(_)})(X)?[2,w(Qw)]:[2,{s:-1,v:null}]}))},l(a,void 0,void 0,m);var l,m}))}function Qw(){var s,u,a=function(l,m){return l(m)};return s=e.sH,u=function(){var l,m,w={BQeod:function(b,_){return a(b,_)},iOflQ:function(b,_,v){return(function(O,B,L){return O(B,L)})(b,_,v)},uZYOC:function(b,_){return a(b,_)},DssqK:function(b){return(function(_){return _()})(b)},FbFdf:function(b,_){return(function(v,O){return v(O)})(b,_)},TWEdd:function(b,_){return(function(v,O){return v instanceof O})(b,_)},NPofR:function(b,_){return(function(v,O){return v===O})(b,_)},saNhW:"4|2|0|3|1",ywkCU:function(b,_){return(function(v,O){return v(O)})(b,_)},tYhgW:function(b,_,v){return(function(O,B,L){return O(B,L)})(b,_,v)}};return(function(b,_,v){return b(_,v)})(e.YH,this,(function(b){for(var _=w.saNhW.split("|"),v=0;;){switch(_[v++]){case"0":if(!l)return[2,{s:-2,v:null}];continue;case"1":return[2,new Promise((function(B,L){try{var q=w.iOflQ(Xt,l,2758837156)(m,1);q[w.BQeod(gi,1)]=function(){(function(Q){w.BQeod(Q,{s:-5,v:null})})(B)},q[w.uZYOC(gi,2)]=function(Q){var tt=O.Qxjcv(Xt,O.Qxjcv(Xt,Q,1181691900),325763347);try{return O.Qxjcv(Xt,O.ehgXq(Xt,tt,138212912)("-",O.zaFXk(gi,3)),2928708052)(new window[O.zaFXk(gi,4)]),void O.zaFXk(B,{s:0,v:""})}catch(rt){if(O.pOfaM(rt,Error))return void O.zaFXk(B,{s:0,v:O.ehgXq(Xt,rt,3065852031)});O.zaFXk(L,rt)}finally{O.tUivq(Xt,tt,318865860)(),O.tUivq(Xt,l,3885781331)(m)}}}catch(Q){if(!w.DssqK(U))return void w.FbFdf(B,{s:-5,v:null});if(w.TWEdd(Q,Error)&&w.NPofR(Q.name,w.FbFdf(gi,5)))return void w.uZYOC(B,{s:-4,v:null});w.FbFdf(L,Q)}}))];case"2":l=window[w.FbFdf(gi,0)];continue;case"3":m="".concat(w.ywkCU(Co,16));continue;case"4":var O={Qxjcv:function(B,L,q){return w.tYhgW(B,L,q)},ehgXq:function(B,L,q){return w.iOflQ(B,L,q)},zaFXk:function(B,L){return w.BQeod(B,L)},pOfaM:function(B,L){return w.TWEdd(B,L)},tUivq:function(B,L,q){return w.tYhgW(B,L,q)}};continue}break}}))},s(this,void 0,void 0,u)}var Td=Dn([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,2452479215],4);function t8(){var s=function(m,w,b){return m(w,b)},u="test";if(!U()||(function(m){return m()})(W5))return{s:-1,v:null};var a=window[(function(m){return m(0)})(Td)],l=window[(function(m){return m(1)})(Td)];try{(function(m){m(null,null,null,null)})(a)}catch{return{s:0,v:!0}}try{return s(Xt,l,2330630162)(u,"1"),s(Xt,l,588657539)(u),{s:0,v:!1}}catch{return{s:0,v:!0}}}function e8(){var s=Object.getOwnPropertyDescriptor(document,"createElement");return s?{s:0,v:!("writeable"in s)}:{s:-1,v:null}}function n8(){return{s:0,v:!!navigator.onLine}}var Pe=Dn([2051009255,196400063,2525527446,4044416111,199305624,3777599729,664183563,2527137204,2959068455,280520411,4185511866,2144517134,3586067896,2987975794,1370780368,4217690097,2128325203,3518040290,2987517477,485718477,3408514487,1624764753,2525516212,3089101692,314277853,3777352609,1742208334,3751877875,4284477294,451175574,3090727933,1792130846,3451262692,4048669481,1370783684,4184381064,1876294928,2595627001,3189040251,285179857,3022493366,635026462,3602651639,2954672238,249917143,3022514673,664183579,3685769165,2736568422,1408460740,3831682485,1926610701,2533302452,3122262854,83050709,3022493344,1087813162,3516795391,2552037231,1608872657,3309737727,1657845296,3451270903,4048663672,149384902,3682584502,1792915224,3886684381,3054101874,519391961,3027814326,1859318097,3332770295,3205678702,1609525469,4167997183,2077073694,2578913506,3122262886,1606035925,4285518270,2077593628,3636076535,3054821986,1606035911,4184396215,1826273817,3686077407,2959063593,179857115,3765358778,634502420,3701674487,4048663658,351432409,4185430450,1859625224,2527613364,2803104104,702703057,3027158186,2127950151,2612794610,3897157222,435775636,2876823478,2077880609,2164071586,2404366395,1374366102,4184381096,1708238611,3299486178,4048008302,418538178,3865484220,1754589257,3619035641,4045515640,1291156949,3543761149,1475469901,2533318580,2701786985,1609793493,2788918761,697885517,3652325360,2803688558,1319905745,4264138979,1674820120,2162778082,4048660019,166879939,2687604411,667542345,3684786157,2802770793,249917146,3307835121,1323797546,4051773653,2318390612,1608081380,4247361710,1927784984,3652585957,3055482186,1370781895,4151957233,664188427,3602649012,3171542398,1608874193,3243808511,1223786530,3952488387,2200224840,1370768608,3849242609,1708898830,3517121730,2287055992,267615126,3799571872,650165528,3517977850,4044940645,1609377769,3798129338,1791013433,3517121730,2286400632,334719126,3126236848,1874965087,3582989055,3122657147,350380760,2888419254,1754703910,3517387769,2854871653,1203007172,4068398577,1721482260,3622324710,2954424932,1607087815,4148151486,629466963,2532385188,2382416758],5);function r8(s){return(function(u,a){return u(a,2660613247)})(Xt,s)||(s[(function(u){return u(0)})(Pe)]={})}var i8=[[Pe(1),function(s){return xd(!1,s)}],[Pe(2),function(){return xd(!0)}],[Pe(3),function(){return s=Uo,u=Pe(4),s(u);var s,u}],[Pe(5),function(){var s=function(u,a){return u(a)};return s(Uo,s(Pe,6))}],[Pe(7),function(){var s=function(u,a){return u(a)};return s(Uo,s(Pe,8))}],[Pe(9),function(){var s=function(u,a){return u(a)};return s(Uo,s(Pe,10))}]];function o8(){var s=function(a,l){return a(l)},u=function(a,l){return a in l};return((function(a){return a in window})(s(Pe,11))||(function(a){return a in window})(s(Pe,12))||u((function(a){return a(13)})(Pe),window))&&u((function(a){return a(14)})(Pe),navigator)}function s8(){var s,u=function(a,l){return a(l)};return!(function(a){return a()})(I)||!(function(a){return a in document})(u(Pe,15))||((function(a){return a===null})(s=document[u(Pe,15)])||(function(a){return a===void 0})(s)?void 0:(function(a,l){return a(l,2256349940)})(Xt,s)().includes(u(Pe,16)))}function a8(){return(function(s){return s in navigator})(Pe(17))&&(function(s,u){return s in u})((function(s){return s(18)})(Pe),(function(s){return s(navigator,2900309608)})(Xt))}function c8(s,u,a){var l,m=function(b,_){return b!==_},w=function(b,_){return b!==_};return(function(b){return b===void 0})(u)&&(u={}),m(a,null)&&m(a,void 0)||(a=[(function(b){return b()})(Cd)]),w(l=u[s],null)&&w(l,void 0)?l:u[s]=(function(b){return b(navigator,3994889901)})(Xt)(s,a)}function Uo(s,u,a){var l=function(m,w,b,_){return m(w,b,_)};return(function(m,w,b,_,v){return m(w,void 0,void 0,v)})(e.sH,this,0,0,(function(){var m,w,b;return(function(_,v,O){return _(v,O)})(e.YH,this,(function(_){switch(_.label){case 0:m=0,w=s,_.label=1;case 1:if(!(function(v,O){return v<O})(m,w.length))return[3,6];b=w[m],_.label=2;case 2:return _.trys.push([2,4,,5]),[4,l(c8,b,u,a)];case 3:return[2,!!_.sent()];case 4:return _.sent(),[3,5];case 5:return m++,[3,1];case 6:return[2,!1]}}))}))}var Nd=Pe(19);function u8(){var s=function(_,v){return _(v)},u=function(_,v){return _(v)},a=function(_,v){return _(v)},l=function(_,v,O){return _(v,O)},m=function(_,v){return _ in v},w=function(_,v){return _(v)},b=function(_){return _()};return(0,e.sH)(this,void 0,void 0,(function(){var _,v,O;return l(e.YH,this,(function(B){switch(B.label){case 0:return(function(L){return L()})(X)||(function(L){return L()})(ut)?[2,!1]:(_=!1,(function(L){return L()})(a8)?(v={type:s(Pe,20),audio:u(Pe,21),video:a(Pe,22),keySystemConfiguration:{keySystem:Nd,video:a(Pe,23)}},[4,l(Xt,l(Xt,navigator,2900309608),3516168465)(v)]):[3,2]);case 1:O=B.sent(),_=(function(L,q,Q){return L(q,Q)})(u5,O,(function(L){return L(24)})(Pe))&&O[(function(L){return L(24)})(Pe)],B.label=2;case 2:return[2,_&&!m(w(Pe,25),navigator)||!b(I)]}}))}))}function f8(s){for(var u={HkMtb:"3|2|0|4|1",pPhzD:function(w,b,_){return w(b,_)},EAQNq:function(w,b){return w(b)},cWdUy:function(w,b){return w(b)},NbRpv:function(w){return w()},dFENT:function(w,b){return w===b},npgEB:function(w,b){return w(b)}},a=u.HkMtb.split("|"),l=0;;){switch(a[l++]){case"0":u.pPhzD(Xt,m,621177879)&&(u.pPhzD(Xt,m,621177879)[0][u.EAQNq(Pe,26)]=u.cWdUy(Pe,27));continue;case"1":return m;case"2":var m=u.NbRpv(Cd);continue;case"3":u.dFENT(s,void 0)&&(s=!1);continue;case"4":s&&(m[u.cWdUy(Pe,28)]=u.npgEB(Pe,29));continue}break}}function xd(s,u){return s===void 0&&(s=!1),a=e.sH,l=function(){var m,w=function(_){return(function(v){return v()})(_)},b=function(_,v,O,B){return(function(L,q,Q,tt){return L(q,Q,tt)})(_,v,O,B)};return(function(_,v,O){return _(v,O)})(e.YH,this,(function(_){switch(_.label){case 0:return[4,w(u8)];case 1:return _.sent()?(m=(function(v,O){return(function(B,L){return B(L)})(v,O)})(f8,s),[4,b(Uo,[Nd],u,[m])]):[2,!1];case 2:return[2,_.sent()]}}))},a(this,void 0,void 0,l);var a,l}function Cd(){return Pe(30)}function l8(s){var u=function(w,b,_){return w(b,_)},a=function(w,b,_,v,O){return w(b,_,v,O)},l=function(w,b,_){return w(b,_)},m=l(Xt,s,1095199719);return a(e.sH,this,void 0,void 0,(function(){var w,b=function(Q,tt){return(function(rt,ct){return rt(ct)})(Q,tt)},_=function(Q,tt,rt){return u(Q,tt,rt)},v=function(Q,tt,rt,ct,mt){return a(Q,tt,rt,ct,mt)},O=function(Q){return(function(tt){return tt()})(Q)},B=function(Q,tt,rt){return u(Q,tt,rt)},L=function(Q,tt,rt){return u(Q,tt,rt)},q=this;return l(e.YH,this,(function(Q){return O(o8)&&O(s8)?O(ut)?[2,function(){return{s:-3,v:null}}]:(w=b(r8,m),[2,B(tr,L(Yn,250,{s:-2,v:null}),(function(){var tt=function(Et,gt){return(function(_t,Vt){return(function(Ht,Yt){return Ht<Yt})(_t,Vt)})(Et,gt)},rt=function(Et,gt){return b(Et,gt)},ct=function(Et,gt,_t){return _(Et,gt,_t)},mt=function(Et,gt,_t,Vt,Ht){return v(Et,gt,_t,Vt,Ht)};return v(e.sH,q,void 0,void 0,(function(){var Et,gt,_t,Vt,Ht,Yt,Tt,Ut=function(ee,se){return rt(ee,se)},qt=this;return ct(e.YH,this,(function(ee){switch(ee.label){case 0:return[4,Promise.all(i8.map((function(se){var le=function(_e,we){return Ut(_e,we)};return(function(_e,we,Te,Ue,De){return mt(_e,we,void 0,void 0,De)})(e.sH,qt,0,0,(function(){var _e,we,Te;return(function(Ue,De,Le){return(function(hn,Mn,In){return ct(hn,Mn,In)})(Ue,De,Le)})(e.YH,this,(function(Ue){switch(Ue.label){case 0:return _e=se[0],we=se[1],Te=[_e],[4,le(we,w)];case 1:return[2,Te.concat([Ue.sent()])]}}))}))})))];case 1:for(Et=ee.sent(),gt={},_t=0,Vt=Et;tt(_t,Vt.length);_t++)Ht=Vt[_t],Yt=Ht[0],Tt=Ht[1],gt[Yt]=Tt;return[2,{s:0,v:gt}]}}))}))}))]):[2,function(){return{s:-1,v:null}}]}))}))}var d8=Dn([1348463336,3803023018,4141740428,4039893696,3740108228,2696994793,2396890353,3287272953,2760289937,3639185880,3800550087,3229721822,3655845628,3956859780,3417230991,3987529206,3465536455,3286746798,3788241285,4155412936,2931392987,2279597529,2175059177,4024282809,2296682185,4202925994,3049385931,3321024229,4001931456,3270216648,2932772850,2345464011,3303269088,2766070917,4157718512],5);function h8(){for(var s,u,a={},l=0,m=d8(0);l<m.length;l++)for(var w=m[l],b=w[0],_=0,v=w[1];_<v.length;_++){var O=v[_],B=(u=(s=Object.getOwnPropertyDescriptor(window[b],O))===null||s===void 0?void 0:s.get)===null||u===void 0?void 0:u.toString();B!==void 0&&(a["".concat(b,".").concat(O)]=B)}return{s:0,v:a}}var Ld=4191585516,p8=new Set([4106781067,3209949814,2612078219,2382064880,3225112721,1018714844,2899793226,2094258580,3169460974,3079760821,392195965,3461410589,3582327722,1731918890,1767246934,3419607467,1110225616,1455947556,450291099,176445009,1998723369,2961538051,3413933903,2299562828,3945560591,485550147,3336694844,3737152292,2669437517,3860417393,Ld]);function g8(){for(var s=[],u=Object.getOwnPropertyNames(window),a=0;a<u.length;a++){var l=u[a],m=vr(l);if(p8.has(m)&&s.push(l),m===Ld){var w=u[a+1]||"";s.push(w)}}return{s:0,v:s}}function m8(){return K((function(s,u){var a={},l=u.document.createElement("div");u.document.body.appendChild(l);for(var m,w={AccentColor:"ac",AccentColorText:"act",ActiveText:"at",ActiveBorder:"ab",ActiveCaption:"aca",AppWorkspace:"aw",Background:"b",ButtonHighlight:"bh",ButtonShadow:"bs",ButtonBorder:"bb",ButtonFace:"bf",ButtonText:"bt",FieldText:"ft",GrayText:"gt",Highlight:"h",HighlightText:"ht",InactiveBorder:"ib",InactiveCaption:"ic",InactiveCaptionText:"ict",InfoBackground:"ib",InfoText:"it",LinkText:"lt",Mark:"m",Menu:"me",Scrollbar:"s",ThreeDDarkShadow:"tdds",ThreeDFace:"tdf",ThreeDHighlight:"tdh",ThreeDLightShadow:"tdls",ThreeDShadow:"tds",VisitedText:"vt",Window:"w",WindowFrame:"wf",WindowText:"wt",Selecteditem:"si",Selecteditemtext:"sit"},b=0,_=Object.keys(w);b<_.length;b++){var v=_[b];a[w[v]]=(m=v,l.style.color=m,u.getComputedStyle(l).color)}return{s:0,v:a}}))}function v8(){return K((function(s,u){var a=u.navigator.webdriver;return a===null?{s:-1,v:null}:a===void 0?{s:-2,v:null}:{s:0,v:a}}))}function y8(){return(function(s){var u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(s),"hardwareConcurrency");if(!u||!u.get)return{s:-1,v:null};var a=window.Function,l=window.Object,m=!1;try{m=delete window.Function&&delete window.Object}catch{m=!1}if(!m)return w(),{s:-2,v:null};try{return u.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{w()}function w(){try{window.Function=a,window.Object=l}catch{}}})(navigator)}function Bd(s,u){for(var a={},l=s.getBoundingClientRect(),m=0,w=["x","y","left","right","bottom","height","top","width"];m<w.length;m++){var b=w[m];b in l&&(a[b]=l[b])}var _=u.getComputedStyle(s,null).getPropertyValue("font-family");return a.font=_,a}function w8(){for(var s="",u=128512;u<=128591;u++){var a=String.fromCodePoint(u);s+=a}return K((function(l,m){var w=m.document.createElement("span");return w.style.whiteSpace="nowrap",w.innerHTML=s,m.document.body.append(w),{s:0,v:Bd(w,m)}}))}function b8(){var s="<mrow><munderover><mmultiscripts><mo>∏</mo>";function u(b,_,v,O,B){return"<mmultiscripts><mi>".concat(b,"</mi><mi>").concat(_,"</mi><mi>").concat(v,"</mi>")+"<mprescripts></mprescripts><mi>".concat(O,"</mi><mi>").concat(B,"</mi></mmultiscripts>")}for(var a=0,l=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];a<l.length;a++){var m=l[a],w=u.apply(void 0,m);s+=w}return s+="</munderover></mrow>",K((function(b,_){var v=_.document.createElement("math");return v.style.whiteSpace="nowrap",v.innerHTML=s,_.document.body.append(v),{s:0,v:Bd(v,_)}}))}var _8=Dn([1024705730,641842159,2578743392,3876471597,2070139803],6);function E8(){var s=Xt(navigator,2698072953);return s?{s:0,v:(function(u,a){return u(a)})(R8,s)}:{s:-1,v:null}}function R8(s){var u=function(_,v){return _<v},a=function(_,v,O){return _(v,O)},l=function(_,v,O){return _(v,O)},m=(function(_){return _(Object,1110892003)})(Xt)(s,(function(_){return _(0)})(_8));if(m&&(function(_,v){return _(v,2813370411)})(Xt,m))return!0;for(var w=0;u(w,s.length);w++){var b=a(Xt,Object,1110892003)(s,w);if(b&&(l(Xt,b,2813370411)||a(Xt,b,1651707638)))return!0}return!1}var Ye=Mo([855787288,642990106,254096950,926556982,87375404,1278677006,408486424,1479671850,1785924,253259062,240523559,673514752,658445118,1391164,607131925,722936367,271014668,151655183,36375323,656347974,1445350919,353197617,423242801,1160005147,1512002869,420283957,536958245,86705444,656408603,100677635,20185122,556090667,202191150,724518191,792405557,102894606,623247373,587992400,658457902,186065947,138173228,910037367,2368541,1529157659,892869409,976305177,203760670,1010441050,942083341,505880599,858547496,472786520,104733226,488840738,977151779,154821378,1044189198,942025224,606622265,960446235,537939522,1427451664,1594829109,757486355,521087014,119085350,638781191,792409347,3607069,137245730,740307761,975647282,992231996,556677182,121255207,522468654,103100716,805591826,205345105,352982566,809188375,538263045,590744875,204342828,87438137,657730594,355141642,1430208096,990394680,70993686,825163804,1060643342,419658253,86454317,808395603,960181563,1394880291,723543328,1059455265,422468123,1512636726,523643153,874654019,741018648,472326400,438382882,19791956,101085447,788741643,117637695,134556468,576544002,1817775652,828261639,390094395,253639961,1880502074,370026788,807930146,3016495,1527136534,71514660,945292548,304222e3,1580941075,2110514,203960841,321666847,858338073,408755024,134358831,521999910,104796679,1141842004,1376664580,355614474,1581667629,1510485767,671100941,1062295126,370957148,254414105,1535071780,561394448,1494427185,539892273,120535346,203499292,522594859,471863338,775098909,1597979140,907887673,758332434,655825187,758207319,419572773,2133349379,909508638,122886204,123473464,1463621412,641018151,1376126269,1462121850,472787007,725356864,341384543,206715932,20988416,404560468,236535349,136583426,654445841,943666452,840316960,1027350080,674639121,153557559,1510280726,961623300,1008474660,973157633,443359752,656934418,1461592383,472779801,238290498,1058027540,644034587,68093212,1597246981,1544182280,469976413,238374721,1174618196,1194143029,336400700,2066110510,34473564,1344553036,873275941,372524551,591344222,623860493,641412978,288168465,742072848,958995498,604449289,221971308,1495672659,723588667,355544366,808599331,459040,943462687,908866865,942887995,908264973,36774146,503972959,657396518,255140875,922816319,1426597669,724636239,873869836,422207e3,738338618,403715596,687875167,874774529,1040791559,120850268,604126999,775167011,470361864,992484109,419635991,743185,154018116,641337180,755635292,254040613,222176514,857754138,2505515,707068717,101333848,757538096,621551931,37443895,1547319336,456857894,3999031,908491345,775432019,439162173,706096427,358119961,1058025846,437977936,102439689,574895878,356259076,372648449,1142819334,742401113,1058341645,1362637919,70005800,202582592,1192122395,236594727,839523131,1750337312,207570485,590873144,123355928,22029379,67645968,269812016,638015583,757087233,657734424,1345271600,740439809,1561926978,1560608781,285688601,387387163,910180890,959256594,456272657,573188414,943880979,1029446156,1073890833,1029574938,1007884807,693115144,222574848,436674607,1174818049,1545405479,1275535655,823416647,86462535,523833608,974464036,658321980,1114075158,185861637,487922498,471600394,639451455,537999451,520699919,1079979324,236797980,168450619,393283123,456001101,186713889,1493375013,488440356,923600390,756164122,655898448,825951036,1411784533,34609698,1208103527,1128159247,253245995,940584251,573441833,19400266,993726249,18425437,139266084,137047810,190711400,1527646996,36582975,978979125,287314201,108201025,1057162756,1583308301,489622303,293476447,840836395,406279465,554701144,471161609,861221689,722419267,1360213011,1143874879,909322020,2035428162,438440025,106244122,322058780,891553820,1360617229,860762642,723856384,322969613,238895933,842924835,1879190897,52179258,453527317,643782993,169476647,858128388,1091178016,453267755,1179072280,1511742509,1364295471,894177538,1547456852,339630853,942212098,640433433,930292802,1599102517,1279285263,1160643877,829502250,1143043844,1530134532,559155459,188100392,1815413542,890521399,220333865,1042559767,520753679,1899432762,369635096,825252367,186328081,1513044992,104291868,842078054,537864570,823793936,1163282459,453314382,1632586541,1159401523,151472718,219612436,1343881243,302413385,67122704,252322835,289281282,520961808,570699029,470824736,843333652,387845450,1180440642,355535121,472254981,206261077,341444100,285219076,439879490,1158377805,188762957,457966854,420087833,2046827521,722541333,1263228164,1510343692,503979288,772677403,942886173,118822420,1074859273,339172401,203161933,353775648,386806050,1363745804,34035503,1295078920,654974826,103553585,17500434,84149518,1212816394,341192510,303115534,305863945,1314328859,136125003,239478532,1129799731,185012293,504893725,1243356169,158746440,1226710058,169542741,940646154,352652561,439419943,376860481,469959197,520567564,16778499,994532938,805575194,201332246,424232781,219809552,825559315,2019624473,285350999,201785371,1129190437,352980301,353764925,1159268906,235294021,236258823,1128289801,269945915,35194673,437005072,85329174,387714572,274102343,83897604,956964102,285213966,1079384090,117586755,995588193,739054110,33755162,289099606,292814850,388764421,575359829,254878242,892283406,674169947,873859604,690695688,556934411,1532961317,269620487,137047589,19803402,891619353,774844708,773205285,420423187,589300788,539835481,959397124,537535801,589641006,622930724,673579048,167981855,671091755,437650701,756498733,704784648,774251013,975510574,335745584,1040792358,134424354,772089349,891158532,18422329,1041391729,139998271,286612271,626670900,958605350,856111142,724383270,372644648,773794620,855909183,540223547,203108701,906494980,1040720168,807150682,571218739,219101490,371001128,137049628,705576492,808659290,705692733,791022080,538653958,671624507,739063102,809906233,639962113,637745182,744239416,236529698,811540526,626862600,788995891,606877246,842204468,573770006,638135325,892486697,791755096,842940166,218240539,974075680,1007048511,555429381,388115255,1057830682,907621664,941633087,892021814,705508445,656356372,641149279,592446271,960046629,421476140,36057648,673325652,639245336,253309464,286404120,19138609,941505862,52178751,537019707,103819782,990131740,87893776,572400132,940786999,991251806,420435997,705108243,621752107,792157219,556736060,860304940,908527152,707673142,893072223,87437101,69927728,540938258,421737780,56494849,220529437,637555989,587807551,201721412,1293836041,809393727,2165761,119747921,760221964,942670122,523578142,1023565147,1946881594,1495147345,302056256,118113602,33882179,1024137755,1462240834,138296332,33948685,202726697,185470982,1577530626,18037005,758717254,857941269,959654443,858460691,640372776,555703830,321330014,1482629131,492570962,473434659,589234776,1042363916,725122873,521305974,1495996214,824716089,120401469,1175858246,603988531,723400211,590361130,892885286,728181053,874711586,704914987,607397390,673849635,858927916,1980441910,271717152,588463451,186264864,439096898,237511981,336863746,1445603842,958933259,655710269,739654685,707734794,691939104,17112595,1479220487,17311610,1585157,253636865,792142081,858725420,892469556,975571478,794635822,554644258,218577412,974917174,219283825,219108949,320604719,839200021,358887210,1009990432,895033669,270346552,369371943,170854914,288163108,822414375,135800369,201547047,218968081,537737542,185541933,1023878402,621038898,302923324,896737594,722614578,18820911,907806763,119221853,34611475,85931888,134429956,219358233,51716651,436478992,772030467,169813541,134233615,270402344,353573131,318904915,654518079,773797416,222570033,974721590,893719153,186589236,689707610,822608991,1027559461,103755568,890844441,740165382,370948908,170874206,742132011,823276892,252001627,185024067,236004399,542196259,655377180,573518398,772752423,68573239,993141293,671090230,50540551,207364644,688129835,51264102,69160960,823668001,186531879,1721438,542523258,51782502,839058447,889528634,1058743644,909337639,855709264,691550208,1111303721,908535824,639830843,437662578,4131881,639639610,404095542,907748360,756363024,774594342,925979405,909059125,574562367,1041766962,2833664,906497055,773928241,354893625,86265618,186593554,771772968,911815229,705440282,237767514,22363698,991902554,576651358,641030188,842007853,1044645642,791428699,674312229,591608893,572594698,102513465,838863909,236594769,324688386,336408621,371011385,823482709,772604988,671293188,673386800,121376300,673579281,841623353,254488125,890642453,359400763,171709191,1077742878,1158229763,942290951,761559636,808342563,1529619006,73138759,371406637,924855586,489358620,823667740,773799490,2118792263,510668586,50463006,979182891,56492606,1308764941,205980450,855642373,121183505,674956826,605370372,67440411,1277167410,573652306,1594245935,375074050,1194403380,555890965,255144200,1194992947,136513541,875576142,1024269850,1510682155,1042688287,168629537,354423099,369503541,355479608,21052219,855835153,1345463855,1042756404,190065709,973626116,761204497,123093823,1915165206,459220566,370027800,1580407058,506730774,1025124126,1510744383,387514687,1141319970,1565204261,1359103771,185995575,35596554,84096006,672404008,857878564,3032093,207364681,555304731,488660742,557915986,861239815,1074597388,372852262,506478175,755175171,2581879,100939293,537605408,956701468,1060906552,202447182,84023075,925892957,1448158238,455885632,456995842,236397832,789581071,486539295,923009595,1632458001,772084274,288971043,504107035,184943133,825691398,1313151757,219814218,370679576,1229983007,134546550,33752117,420092230,101057883,353308952,927730989,320602150,437864198,403773963,3948554,603989776,303508501,119413321,1192230914,441860171,122042880,471431969,101403907,871429,1175061276,438371390,1050900,201330949,1079580686,1498700612,174478106,438317072,1145045533,403514955,18481974,639055628,1866663195,486674503,286853695,826998811],Mc,0);function S8(){for(var s={YQAxx:"0|2|4|1|3",NxnUc:"1|2|0|3|4|5",dRZXE:function(b,_){return b!==_},arEiG:function(b,_){return b(_)},FEyAC:function(b,_){return b|_},cUIUX:function(b,_){return b&_},vaJLl:function(b,_){return b&_},osTKi:function(b,_){return b(_)},vuPdB:function(b,_){return b+_},euenK:function(b,_){return b(_)}},u=s.YQAxx.split("|"),a=0;;){switch(u[a++]){case"0":var l={nkHEv:s.NxnUc,yPbQz:function(b,_){return s.dRZXE(b,_)},cIFeZ:function(b,_){return s.arEiG(b,_)},kGvFR:function(b,_){return s.FEyAC(b,_)},eFyAy:function(b,_){return s.cUIUX(b,_)},WLFtS:function(b,_){return s.vaJLl(b,_)},uzqnn:function(b,_){return s.osTKi(b,_)},rqcBN:function(b,_){return s.vuPdB(b,_)}};continue;case"1":Object.defineProperty(m,s.osTKi(Ye,2),{value:w});continue;case"2":var m=s.euenK(xs,s.arEiG(Ye,0));continue;case"3":return m;case"4":var w=function(b){for(var _=l.nkHEv.split("|"),v=0;;){switch(_[v++]){case"0":var O=this[L];continue;case"1":var B;continue;case"2":var L=l.yPbQz(B=this[l.cIFeZ(Ye,1)],null)&&l.yPbQz(B,void 0)?B:0;continue;case"3":this[L]=l.kGvFR(l.eFyAy(O,~b),l.WLFtS(~O,b));continue;case"4":this[l.uzqnn(Ye,1)]=l.rqcBN(L,1);continue;case"5":return O}break}};continue}break}}function A8(s){var u,a,l,m=function(_,v){return _(v)},w=function(_,v){return _===v},b=function(_,v){return _(v)};return a=e.sH,l=function(){var _,v,O,B,L,q,Q=function(gt,_t){return m(gt,_t)},tt=function(gt,_t){return b(gt,_t)},rt=function(gt,_t,Vt,Ht,Yt){return(function(Tt,Ut,qt,ee,se){return Tt(Ut,qt,ee,se)})(gt,_t,Vt,Ht,Yt)},ct=function(gt,_t){return m(gt,_t)},mt=function(gt,_t){return m(gt,_t)},Et=this;return(function(gt,_t,Vt){return gt(_t,Vt)})(e.YH,this,(function(gt){switch(gt.label){case 0:return _=window[m(Ye,3)],(v=w(u=_[m(Ye,4)],null)||w(u,void 0)?void 0:u.bind(_))?(O=b(Ye,5),B=m(Ye,6),L={},[4,Promise.all(O.map((function(_t){var Vt=function(ee,se,le){return(function(_e,we,Te){return(function(Ue,De,Le){return Ue(De,Le)})(_e,we,Te)})(ee,se,le)},Ht=function(ee,se){return Q(ee,se)},Yt=function(ee,se){return tt(ee,se)},Tt=function(ee,se){return(function(le,_e){return(function(we,Te){return we<Te})(le,_e)})(ee,se)},Ut=function(ee,se,le,_e,we){return rt(ee,se,le,_e,we)},qt=function(ee,se){return mt(ee,se)};return rt(e.sH,Et,void 0,void 0,(function(){var ee,se,le,_e,we,Te,Ue,De;return(function(Le,hn,Mn){return(function(In,Zn,nr){return In(Zn,nr)})(Le,hn,Mn)})(e.YH,this,(function(Le){switch(Le.label){case 0:return Le.trys.push([0,9,,10]),[4,Vt(v,_t,B)];case 1:return[4,Le.sent()[Ht(Ye,7)]()];case 2:ee=Le.sent(),se=ee[Yt(Ye,8)](),le=[92,189,203],_e=0,Le.label=3;case 3:if(!Tt(_e,3))return[3,8];Le.label=4;case 4:return Le.trys.push([4,6,,7]),we=L,Te=Yt(vr,_t),[4,Ut(I8,ee,se,s,le)];case 5:return we[Te]=Le.sent(),[2];case 6:if((function(hn,Mn){return ct(hn,Mn)})(T8,Ue=Le.sent()))return le=qt(k8,s),[3,7];throw qt(O8,le),Ue;case 7:return _e++,[3,3];case 8:return[3,10];case 9:return De=Le.sent(),q=De,[3,10];case 10:return[2]}}))}))})))]):[2,null];case 1:if(gt.sent(),q&&w(Object.keys(L).length,0))throw q;return[2,L]}}))},a(this,void 0,void 0,l)}function I8(s,u,a,l){var m=function(O,B){return O(B)},w=function(O,B){return O(B)},b=function(O,B){return O(B)},_=function(O,B){return O(B)},v=function(O,B){return O(B)};return new Promise((function(O,B){u[_(Ye,9)]=function(L){return m(O,{i:w(Ns,l),t:m(vr,L[w(Ye,10)]),s:u[w(Ye,11)],e:u[b(Ye,12)],p:_(mr,L[v(Ye,13)])})},s[_(Ye,14)](a),u[(function(L){return L(15)})(Ye)]((function(L){return L(16)})(Ye),l).catch(B)}))}function k8(s){for(var u={UtaFw:"4|0|1|2|3",ulOIn:function(O,B){return O-B},pxHuO:function(O,B){return O>=B},pGlZB:function(O,B){return O(B)},ooLWC:function(O,B){return O+B},buezi:function(O,B){return O<<B},btVnF:function(O,B){return O%B},wSoGJ:function(O,B){return O*B},lowup:function(O,B){return O%B},hsYMn:function(O,B){return O*B}},a=u.UtaFw.split("|"),l=0;;){switch(a[l++]){case"0":var m=v.length;continue;case"1":var w=137;continue;case"2":for(var b=u.ulOIn(s.length,1);u.pxHuO(b,0);b--){var _=s[u.pGlZB(Ye,2)](u.ooLWC(u.buezi(b,8),w));v[u.btVnF(b,m)]^=u.ooLWC(_,u.wSoGJ(v[u.btVnF(u.ooLWC(b,1),m)],17)),w=_}continue;case"3":return u.pGlZB(Gr,u.pGlZB(mr,v).slice(0,3));case"4":var v=new Uint8Array([u.lowup(Date.now(),1024),u.hsYMn(Math.random(),65536)]);continue}break}}function O8(s){for(var u=function(_,v){return _<v},a=function(_,v){return _+v},l=function(_,v){return _%v},m=function(_,v){return _-v},w=0;u(w,s.length);w++){var b=65;s[w]=a(b,l(s[w],m(122,b)))}}function T8(s){return(function(u,a){return u(a)})(Ts,s)&&(function(u,a){return u===a})("".concat(s),(function(u){return u(17)})(Ye))}function N8(){var s=function(u,a){return u(a)};return(function(u,a,l,m,w){return u(a,void 0,void 0,w)})(e.sH,this,0,0,(function(){var u,a,l,m=function(Q,tt){return s(Q,tt)},w=function(Q){return(function(tt){return tt()})(Q)},b=function(Q,tt){return(function(rt,ct){return rt in ct})(Q,tt)},_=function(Q,tt){return(function(rt,ct){return rt(ct)})(Q,tt)},v=function(Q,tt,rt,ct){return(function(mt,Et,gt,_t){return mt(Et,gt,_t)})(Q,tt,rt,ct)},O=function(Q,tt){return s(Q,tt)},B=function(Q,tt,rt,ct){return(function(mt,Et,gt,_t){return mt(Et,gt,_t)})(Q,tt,rt,ct)},L=function(Q,tt){return(function(rt,ct){return rt(ct)})(Q,tt)},q=function(Q,tt){return(function(rt,ct){return rt&&ct})(Q,tt)};return(function(Q,tt,rt){return Q(tt,rt)})(e.YH,this,(function(Q){switch(Q.label){case 0:return w(G5)?[2,!b(m(Ye,19),window[_(Ye,20)][m(Ye,21)])]:w(z5)?[4,Promise.all([v(Pd,O(Ye,22),(function(){return!0}),(function(){return!1})),B(Pd,L(Ye,23),(function(){return!1}),(function(tt){return(function(rt){return(function(ct,mt){return ct instanceof mt})(rt,Error)})(tt)&&(function(rt,ct){return(function(mt,Et){return mt===Et})(rt,ct)})(tt.name,m(Ye,24))}))])]:[3,2];case 1:return u=Q.sent(),a=u[0],l=u[1],[2,q(a,l)];case 2:return[2,!1]}}))}))}function Pd(s,u,a){var l=function(m,w){return m(w)};return new Promise((function(m){var w=function(O,B){return l(O,B)},b=l(Dc,s),_=b[1],v=b[2];if((function(O){return O!==0})(_))return(function(O){return O(!1)})(m);v[l(Ye,25)]((function(){return(function(O,B){return(function(L,q){return L(q)})(O,B)})(m,(function(O){return(function(B){return B()})(O)})(u))}),(function(O){return w(m,w(a,O))}))}))}var x8=Dn([229858650,783927519,3141207808,1645003411,2911373879,2084179082,2213201945,422262047,444852958,2568452659,961273073,4070116913,628296898,2516094721,19227916,46464143,2382904866,572186108,3147382845,1043469467,2611845399,171192596,1251730630,2338154040,2064948222,4070131749,623646351,2180159838,1719303453],7);function C8(){var s=function(u,a,l){return u(a,l)};return s(tr,s(Yn,2e3,{s:-2,v:null}),L8)}function L8(){var s,u=function(B){return B()},a=function(B,L){return B(L)},l=function(B,L){return B(L)},m=function(B,L){return B<L},w=function(B,L){return B===L},b=function(B,L,q){return B(L,q)},_=function(B,L,q){return B(L,q)},v=function(B,L){return B(L)},O=function(B,L){return B(L)};return(function(B,L,q,Q,tt){return B(L,void 0,void 0,tt)})(e.sH,this,0,0,(function(){var B,L,q,Q,tt,rt,ct,mt,Et,gt,_t,Vt,Ht;return _(e.YH,this,(function(Yt){switch(Yt.label){case 0:B=window,L=u(S8),q=a(x8,0),Yt.label=1;case 1:for(Yt.trys.push([1,2,,5]),Q="".concat(l(Fc,L[0])).concat(l(Fc,L[1])).concat(a(Fc,L[2])),tt=q[Q],rt=Object.values(tt),ct={},mt=0,Et=(Ht=Object.keys(B)).slice.apply(Ht,rt);m(mt,Et.length);mt++)gt=Et[mt],_t=w(s=b(Xt,Object,1110892003)(B,gt),null)||w(s,void 0)?void 0:_(Xt,s,494360628),ct[a(vr,gt)]={i:!0,t:null,s:gt.slice(-3),e:12,p:v(String,_t).slice(0,50)};return[2,{s:-3,v:ct}];case 2:return Yt.sent(),[4,u(N8)];case 3:return Yt.sent()?[2,{s:-4,v:null}]:[4,O(A8,L)];case 4:return(Vt=Yt.sent())?[2,{s:0,v:Vt}]:[2,{s:-1,v:null}];case 5:return[2]}}))}))}function Fc(s){return"".concat(yc[(function(u){return u>>4})(s)]).concat(yc[(function(u){return u%16})(s)])}var mn=Dn([2849665133,3102332852,3030028940,2360597915,3649086422,4118989755,2159729800,2492790230,3150617845,3422263962,3398214861,3000338617,2163578059,3720000219,2782764965,3422263962,3600523980,2895432685,2292567243,3617170646,3986333093,2578762955,2596645530,2227996313,2259142812,3700204490,3100285842,3422263963,3903489002,2496302258,2360989318,3615531995,4120169401,2192956830,3971720145,3000875412,2277047195,3431641814,4124477118,2273483461,3481713107,2781523129,3321219718,3599275162,4157376185,2293418634,3418993356,3067464120,3120021895,4221285085,3000403896,2260651146,2496373974,3051664885,2293418634,3735466700,2345307313,3287931573,3669330832,3151268020,2192890251,2525727716,3051664893,3382957959,3448764377,3201075897,3045840518,3837111258,2966063285,2276644252,3402212556,3201145010,3048463771,2462561764,2816128395,2359614875,3837109206,4221223093,2209732555,2594026717,2782776315,2862995355,2592912343,2781727739,3422263941,3683431633,3202123702,2359548301,3617301981,4120169381,2595804298,2496377821,3100936949,2257903002,3683432918,3117908131,2331350219,3431510730,2748951986,2294283144,3565992406,2564589462,2612190863,3687578522,2999682747,2277103530,3516773597,3220146104,2625885836,3601643978,2325387955],3);function Md(s){var u=function(l,m,w){return l(m,w)},a=Xt(s,928136154);return(0,e.sH)(this,void 0,void 0,(function(){var l,m,w=function(O){return(function(B){return B()})(O)},b=function(O,B){return(function(L,q){return L===q})(O,B)},_=function(O,B,L){return u(O,B,L)},v=function(O,B,L){return(function(q,Q,tt){return q(Q,tt)})(O,B,L)};return u(e.YH,this,(function(O){switch(O.label){case 0:return l=w(zl),[4,_(tr,v(Yn,300,-4),B8.bind(null,l,a))];case 1:return m=O.sent(),[2,function(){var B=(function(L){return w(L)})(m);return(function(L){return b(L,0)})(B)||(function(L){return b(L,-4)})(B)?{s:B,v:{u:l,e:[],s:[]}}:{s:B,v:null}}]}}))}))}function B8(s,u){var a=function(m,w,b){return m(w,b)},l=function(m,w,b){return m(w,b)};return(function(m,w,b,_,v){return m(w,void 0,void 0,v)})(e.sH,this,0,0,(function(){var m,w,b,_,v,O,B,L,q=function(mt,Et,gt){return a(mt,Et,gt)},Q=function(mt,Et,gt){return l(mt,Et,gt)},tt=function(mt,Et){return(function(gt,_t){return gt!==_t})(mt,Et)},rt=function(mt,Et,gt){return l(mt,Et,gt)},ct=function(mt,Et,gt){return(function(_t,Vt,Ht){return _t(Vt,Ht)})(mt,Et,gt)};return(function(mt,Et,gt){return mt(Et,gt)})(e.YH,this,(function(mt){switch(mt.label){case 0:if(m=q(P8,s,u),w=q(U8,m,!0),b=Q(Xt,w,453955339),_=Q(Xt,w,1801730948),tt(b,0))return[2,b];v=q(H8,_,u),mt.label=1;case 1:return mt.trys.push([1,,4,5]),[4,rt(Xt,v,142982734)()];case 2:return O=mt.sent(),B=Q(Xt,O,453955339),L=Q(Xt,O,1801730948),tt(B,0)?[2,B]:[4,ct(Xt,_,76151562)(L)];case 3:return mt.sent(),[2,0];case 4:return(function(Et,gt){return a(Et,gt,107910612)})(Xt,v)(),[7];case 5:return[2]}}))}))}function P8(s,u){for(var a={AvCwh:"2|1|5|0|3|4",sALZI:function(_,v){return _(v)}},l=a.AvCwh.split("|"),m=0;;){switch(l[m++]){case"0":var w={};continue;case"1":b[a.sALZI(mn,1)]=a.sALZI(M8,u);continue;case"2":var b=a.sALZI(mn,0);continue;case"3":w[a.sALZI(mn,3)]=[b];continue;case"4":return w;case"5":b[a.sALZI(mn,2)]=s;continue}break}}function M8(s){var u=function(a,l){return a(l)};return u(mn,4).concat((function(a,l,m){return a(l,m)})(Lc,s,u(mn,5)))}var Ud=mn(6);function U8(s,u){for(var a={xqmnO:"4|3|0|2|1",SaOtC:function(_,v){return _ instanceof v},xPGBK:function(_,v){return _===v},DCAVD:function(_,v){return _(v)},fgKXx:function(_,v){return _(v)}},l=a.xqmnO.split("|"),m=0;;){switch(l[m++]){case"0":var w;continue;case"1":return{s:0,v:w};case"2":try{w=new b(s)}catch(_){if(a.SaOtC(_,Error)){if(a.xPGBK(_.name,Ud))return{s:-6,v:null};if(a.DCAVD(F8,_))return{s:-9,v:null}}throw _}continue;case"3":if(!b)return{s:-3,v:null};continue;case"4":var b=u?window[a.fgKXx(mn,7)]||window[a.DCAVD(mn,8)]:window[a.DCAVD(mn,7)];continue}break}}function D8(s,u){var a,l=function(m,w){return m===w};try{return l(a=(function(m,w){return m(w,34843658)})(Xt,s),null)||l(a,void 0)||a.call(s,u||Math.random().toString()),0}catch(m){if((function(w){return w instanceof Error})(m)&&l(m.name,Ud))return-7;throw m}}function F8(s){return(function(u,a){return u===a})(s.name,(function(u){return u(9)})(mn))&&(function(u,a){return u(a,3632233996)})(Xt,new RegExp((function(u){return u(10)})(mn)))((function(u,a){return u(a,3065852031)})(Xt,s))}function Do(s){try{Xt(s,318865860)()}catch{}}function V8(s,u){var a=function(l,m,w){return l(m,w)};return(function(l,m,w,b,_){return l(m,void 0,void 0,_)})(e.sH,this,0,0,(function(){var l,m;return(function(w,b,_){return w(b,_)})(e.YH,this,(function(w){switch(w.label){case 0:try{l=(function(b,_,v){return a(b,_,v)})(Xt,s,882066760)(u)}catch(b){if(!(function(_,v){return(function(O,B){return O instanceof B})(_,v)})(b,Error)||!(function(_,v,O){return a(_,v,O)})(Xt,new RegExp((function(_){return(function(v){return v(11)})(_)})(mn),"i"),3632233996)((function(_,v,O){return a(_,v,O)})(Xt,b,3065852031)))throw b;l=new Promise((function(_,v){(function(O,B){return(function(L,q,Q){return a(L,q,Q)})(O,B,882066760)})(Xt,s)(_,v,u)}))}return[4,l];case 1:return(function(b){return(function(_,v){return _===v})(b,void 0)})(m=w.sent())?[2,{s:-8,v:null}]:[2,{s:0,v:m}]}}))}))}function H8(s,u){var a,l,m=function(Tt,Ut){return Tt(Ut)},w=function(Tt,Ut){return Tt===Ut},b=function(Tt,Ut,qt){return Tt(Ut,qt)},_=function(Tt,Ut){return Tt(Ut)},v=function(Tt,Ut){return Tt!==Ut},O=function(Tt,Ut){return Tt in Ut},B=function(Tt,Ut){return Tt in Ut},L=function(Tt){return Tt()},q=function(Tt,Ut){return Tt(Ut)},Q=function(Tt,Ut,qt){return Tt(Ut,qt)},tt=function(Tt,Ut,qt){return Tt(Ut,qt)},rt=function(Tt,Ut,qt,ee,se){return Tt(Ut,qt,ee,se)},ct=this;function mt(Tt,Ut){return m(Et,Tt)&&w(b(Xt,Tt,3920415024),400)&&b(Xt,Tt,4101391790).includes(Ut)}function Et(Tt){return w(typeof Tt,_(mn,12))&&v(Tt,null)&&O(m(mn,13),Tt)&&B(_(mn,14),Tt)}var gt=null,_t=!1;function Vt(){var Tt=function(qt,ee){return(function(se,le){return se!==le})(qt,ee)},Ut=function(qt,ee){return _(qt,ee)};return rt(e.sH,this,void 0,void 0,(function(){var qt,ee,se,le;return(function(_e,we,Te){return tt(_e,we,Te)})(e.YH,this,(function(_e){switch(_e.label){case 0:return qt=(function(we,Te){return q(we,Te)})(D8,s),Tt(qt,0)?[2,{s:qt,v:null}]:[4,Ut(V8,s)];case 1:return ee=_e.sent(),se=(function(we,Te){return Q(we,Te,453955339)})(Xt,ee),le=(function(we,Te){return(function(Ue,De,Le){return Ue(De,Le)})(we,Te,1801730948)})(Xt,ee),Tt(se,0)?[2,{s:se,v:null}]:[2,{s:0,v:le}]}}))}))}u&&tt(Xt,s,123626528)(mn(15),(function(Tt){b(mt,Tt,u)&&(gt?(L(gt),gt=null,q(Do,s)):_t=!0)}));var Ht,Yt=((a={})[Ht=mn,Ht(17)]=function(){return(function(Tt,Ut){return Tt(Ut)})(Do,s)},a[(function(Tt){return Tt(18)})(mn)]=function(){var Tt=function(qt){return L(qt)},Ut=function(qt,ee,se){return(function(le,_e,we){return le(_e,we)})(qt,ee,se)};return rt(e.sH,ct,void 0,void 0,(function(){var qt;return Ut(e.YH,this,(function(ee){switch(ee.label){case 0:return[4,Tt(Vt)];case 1:return qt=ee.sent(),(function(se){return v(se,0)})(Ut(Xt,qt,453955339))&&(function(se,le){m(se,le)})(Do,s),[2,qt]}}))}))},a);return u?Q(Xt,Object,1914874273)(Yt,((l={})[(function(Tt){return Tt(19)})(mn)]=function(){w((function(Tt,Ut){return Tt(Ut,4184312542)})(Xt,s),m(mn,16))||(_t?(function(Tt,Ut){Tt(Ut)})(Do,s):gt=(function(Tt,Ut,qt,ee){return Tt(Ut,5e3,ee)})(Os,Do,0,s))},l)):Yt}var qn=Mo([1158230590,352328197,922751784,234887733,1045777409,235013451,1077693209,86185296,321396490,462366,488115742,1213075980,4402479,184943903,188551425,1398147351,268897603,491523647,306988571,1261376568,269223502,570890009,34866732,470426899,403966778,253756433,304419089,491347009,508233756,403654977,421396492,1329803025,184551506,1057755406,136120322,118163754,373378420,453843998,1159464460,319444544,855642889,402851378,1191248155,151015493,219352090,67375366,17696018,1263095066,420348421,21908811,168961297,171640095,14413],Iw,2);function W8(){var s=function(b,_){return b(_)},u=function(b,_){return b(_)},a=function(b,_,v){return b(_,v)},l=function(b,_){return b<_},m=function(b,_,v){return b(_,v)},w=function(b,_,v){return b(_,v)};return(function(b,_,v,O,B){return b(_,void 0,void 0,B)})(e.sH,this,0,0,(function(){var b,_,v,O,B,L,q,Q;return a(e.YH,this,(function(tt){switch(tt.label){case 0:return(function(rt){return rt()})(K5)?[2,[-1,NaN]]:(b=new Uint8Array([0]),_=s(qn,0),[4,navigator[s(qn,1)](u(qn,2),_)]);case 1:return[4,tt.sent()[u(qn,3)]()];case 2:return v=tt.sent(),[4,a(Dd,v,b)];case 3:if(O=tt.sent(),!(B=l(O,10)))return[3,5];for(L=a(p5,10,2500),q=(function(rt){return rt-1})((function(rt,ct){return rt-ct})(L,O)),Q=0;l(Q,q);Q++)m(G8,v,b);return[4,w(Dd,v,b)];case 4:O=tt.sent(),tt.label=5;case 5:return[2,[B?1:0,O]]}}))}))}function z8(){return(function(u,a){return u==a})(typeof navigator[s=qn,s(1)],(function(u){return u(4)})(qn));var s}function Dd(s,u){var a=function(l,m){return l(m)};return(function(l,m,w,b,_){return l(m,void 0,void 0,_)})(e.sH,this,0,0,(function(){var l,m=function(v,O){return a(v,O)},w=function(v,O){return a(v,O)},b=function(v,O){return a(v,O)},_=function(v,O){return a(v,O)};return(function(v,O,B){return v(O,B)})(e.YH,this,(function(v){switch(v.label){case 0:return[4,(l=s[m(qn,5)]())[m(qn,6)](w(qn,7),u)];case 1:return v.sent(),[2,b(Number,l[_(qn,8)])]}}))}))}function G8(s,u){var a=function(m,w){return m(w)},l=s[a(qn,5)]();a(xo,l[a(qn,6)]((function(m){return m(7)})(qn),u))}function K8(){var s=function(u,a,l){return u(a,l)};return(function(u,a,l,m,w){return u(a,void 0,void 0,w)})(e.sH,this,0,0,(function(){var u=function(b){return(function(_){return _()})(b)},a=function(b,_,v){return s(b,_,v)},l=function(b,_,v){return s(b,_,v)},m=function(b,_,v){return s(b,_,v)},w=this;return(0,e.YH)(this,(function(b){var _=function(O){return u(O)},v=function(O,B){return(function(L,q){return(function(Q,tt){return Q===tt})(L,q)})(O,B)};return u(z8)?[2,l(tr,m(Yn,500,{s:-2,v:null}),(function(){var O=function(q){return _(q)},B=function(q,Q){return v(q,Q)},L=function(q,Q,tt){return(function(rt,ct,mt){return a(rt,ct,mt)})(q,Q,tt)};return(function(q,Q,tt,rt,ct){return(function(mt,Et,gt,_t,Vt){return(function(Ht,Yt,Tt,Ut,qt){return Ht(Yt,Tt,Ut,qt)})(mt,Et,gt,_t,Vt)})(q,Q,void 0,void 0,ct)})(e.sH,w,0,0,(function(){var q,Q=function(tt){return O(tt)};return L(e.YH,this,(function(tt){switch(tt.label){case 0:return[4,Q(W8)];case 1:return(function(rt){return B(rt,-1)})((q=tt.sent())[0])?[2,{s:-3,v:null}]:[2,{s:0,v:q}]}}))}))}))]:[2,function(){return{s:-1,v:null}}]}))}))}var Hs=Mo([89472536,67911963,202988290,386077465,1866537770,1224742518,488243476,419627011,184819487,437598027,340225859,172033032,437716482,471155211,1095068177,1092107040,419499526,423762697,100665116,490210839,1194790674,673115,85280006,1510540548,2756129,939992591,1246643516,1108281098,52370449,641031181,822350097,201595136,1447512348,1107565334,605101077,923815180,201460231,369557787,421401919,370608902,386208007,1158809130,67652933,420829977,1325996060,705104933,100734005,18485518,1079117841,520555597,117716299,441132557,117836552,454886414,1079380231,235285315,167851373,438045445,354104902,218503945,1450723136,1261309460,853525,339100932,1443038736,103498560,3566862,1175192861,252709131,16777237,1984516105,1829509143,185926151,436356353,185073670,1779174662,991969605,50610456,1275666182,419565839,202771726,1124408096,135546735,168313092,253563142,135813653,822480166,72178038,222758157,52298251,454823449,56244746,1427123716,67914571,353589766,51775754,625419022,219166498,1258491144,521093188,151601409,456523793,678234648,169481234,118557701,391005526,241568771,422784012,438716682,1309089280,806492,990010373,638390299,134885451,1481180934,17176407,655231834,2049314574,84410418,220531716,167778574,105923661,106502459,185600556,170279180,1046087172,151977997,35061763,1263338788,84282176,52366156,1544356616,420816433,50605842,1229146882,1511529224,186319630,4664589,35268139,100748290,1379942427,1174536207,322636309,208471067,373756952,7684,1481509910,69665358,440083533,1174866696,403505177,1129127711,956961098,571674714,285606663,67257606,151460637,725827670,862785030,168106503,289803037,203297033,1197361671,1327110967,169477163,84548876,1840656,1325404447,537919532,1158350651,118114894,454640143,269026054,471146315,372321280,1196229131,421140297,17891399,256321038,167983925,135074069,1379942427,1174536207,523897886,187303186,16788313,1007685120,1447054106,1193610767,121055758,235738112,118572573,1091181577,956569372,1632457991,1191843846,387122178,420174362,755830297,929124171,222888474,50727960,118447621,1229986830,202905462,51517293,1159661069,219156518,1296957445,772541034,285869946,471598093,437591628,102564608,341211207,72035854,453396244,286989059,252909895,100927823,207059041,440798984,347163,218169348,389222492,3416153,1128989210,404424777,102242906,1193875213,338048784,17827353,1077939469,33558354,973080134,923734551,118361931,390678349,407312666,756351505,606227719,1078676741,1275397643,369236248,102176796,152328767,505090338,1195966464,68884054,402849858,604117287,387586598,184555596,52366851,290079565,39467274,337061379,1044450054,822546697,1309087752,202009165,100891182,1259996933,521093188,51986689,390009692,187041819,1296385283,1528366088,1539,1194856717,20458516,188762957,374080774,100861208,604249353,906778884,134487574,1444022019,51205721,688201243,275581722,638910490,553654793,438246915,1191185666,68310648,100862061,1157897218,203233559,1296957442,1829962602,35198010,17122832,1079118092,101515597,370942795,117714965,54019863,889585674,1079385113,386672195,236790637,420024595,406539288,689707789,956765442,1198474037,1091441944,102564636,119409668,205263381,108670990,151781382,1313753605,457245696,855645709,391058950,235019008,471534109,474699863,756351517,540018203,272974679,51463965,386470914,67506497,1297423660,1224806753,520230941,878058775,289625664,571801658,289411104,88480259,1641997,388317194,1477786881,50998065,521022728,202398474,33949981,1095115776,1582986863,239750725,289150477,469830174,14416],Mc,2);function Fd(){return Hs(0)}function j8(){return(0,e.sH)(this,void 0,void 0,(function(){var s,u,a;return(function(l,m,w){return l(m,w)})(e.YH,this,(function(l){var m=function(w,b){return(function(_,v){return _(v)})(w,b)};switch(l.label){case 0:return s=(function(w){return w()})(Fd),[4,Promise.all(s.map(Y8))];case 1:return u=l.sent(),a={},s.forEach((function(w,b){var _=m(vr,w).toString(16);a[_]=u[b]})),[2,a]}}))}))}function Y8(s){var u=function(a,l){return a(l)};return new Promise((function(a){var l=u(Hs,1).concat(s,u(Hs,2));try{var m=(function(_,v){return _(v)})(Dc,l),w=m[1],b=m[2];if((function(_){return _!==0})(w))return void(function(_,v){_(v)})(a,w);b[(function(_){return _(3)})(Hs)]((function(){return u(a,0)}),(function(){return(function(_){return u(_,-1)})(a)}))}catch{u(a,-2)}}))}var q8=Dn([4291220175,857170018,1001396817,1198736693],6);function Vd(){var s=function(u,a,l){return u(a,l)};return(0,e.sH)(this,void 0,void 0,(function(){var u=function(v){return(function(O){return O()})(v)},a=function(v,O){return(function(B,L){return B(L)})(v,O)},l=function(v,O,B){return(function(L,q,Q){return L(q,Q)})(v,O,B)},m=function(v,O,B,L,q){return(function(Q,tt,rt,ct,mt){return Q(tt,rt,ct,mt)})(v,O,B,L,q)},w=function(v,O,B){return(function(L,q,Q){return L(q,Q)})(v,O,B)},b=function(v,O,B){return s(v,O,B)},_=this;return s(e.YH,this,(function(v){var O=function(tt){return u(tt)},B=function(tt){return u(tt)},L=function(tt,rt){return a(tt,rt)},q=function(tt,rt,ct){return l(tt,rt,ct)},Q=function(tt,rt,ct,mt,Et){return m(tt,rt,ct,mt,Et)};switch(v.label){case 0:return[4,w(tr,b(Yn,500,{s:-2,v:null}),(function(){var tt=function(ct){return B(ct)},rt=function(ct,mt){return L(ct,mt)};return Q(e.sH,_,void 0,void 0,(function(){var ct;return(function(mt,Et,gt){return q(mt,Et,gt)})(e.YH,this,(function(mt){switch(mt.label){case 0:return(function(Et){return O(Et)})(Fd)?(function(Et){return O(Et)})(Rd)?(ct={s:0},[4,tt(j8)]):[2,{s:-1,v:null}]:[2,{s:-3,v:null}];case 1:return[2,(ct[rt(q8,0)]=mt.sent(),ct)]}}))}))}))];case 1:return[2,v.sent()]}}))}))}function Z8(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function Hd(){return{s:0,v:!!window.isSecureContext}}var Wt=Mo([37637135,1447917654,1074862848,221320987,185417728,1279479069,287641348,1585126709,277761,1427768864,1124076042,2035529,455018507,23675461,120393521,1444036433,1141263183,303105822,319645969,1275726848,36457547,388709920,101924677,1077349638,303367169,135938595,1112349448,153357637,121505586,1480802129,1141246529,839976462,805901,167780891,1160643090,511382904,402929730,1381389121,68162311,1195642647,185270282,342447173,288103456,254704215,1208027939,253560323,369581389,17177344,138102537,455935783,39531596,1195379206,236466755,203181062,1581711622,523115086,3539255,286744647,1544706816,324279305,285825290,1174470656,37573638,1530878519,353133582,353131799,133385,1476726039,1511722500,1328372255,321869181,1226406481,437012226,1090917145,1258885148,253318160,1513180693,1227046965,1410678607,1342657549,425461277,474174799,340006467,1549931597,476332332,1229857560,235819533,223288402,491280640,1142379025,36132127,186666528,223027998,1427178840,1544423503,1578239775,1310394885,136860420,1547191847,408580948,1381244166,253559122,306596941,184767552,1512328723,1228555109,693174606,1108418398,425464923,1413482013,1192695620,526847309,494081918,122363912,1532891471,408493381,1430543951,889345088,292959062,342691121,223027723,1532560969,408420677,1413482012,1192629828,510070093,494081150,122364424,442325327,1011230978,101538648,373754205,140579917,24319871,239805199,1499006537,458752325,1413482015,1192564036,1466371405,691295613,39585552,1195379206,1364738631,1413750089,186471488,154737427,321591924,454109517,1281100816,554256710,268918530,1197360921,237579847,472910394,1565618756,1393893187,135923539,135938563,370036567,37573653,1228888631,100936803,17566743,391388169,120063254,436405788,291700750,388832305,436733275,135007239,340663119,1212227414,34873431,158013954,289151081,1497971729,222381907,1212243039,286081374,408027209,24710402,1115119484,1146055183,1142444618,1543655963,68837124,1073825552,1261573663,169885754,1510962778,218959899,403528705,1258684700,1108809489,523386889,1547125292,1478042459,1477265165,223304471,289954048,471666260,1466111750,1098210424,1196255759,358111311,1448625219,1380194633,1581472325,1365728331,1148542584,1162702351,374889039,1448624963,1464080457,1497585989,1348951115,1114987896,1095593487,341334351,1516061507,1159481353,470700572,1328680725,169885755,223294735,253445402,240651031,1225806923,387399942,526713163,73549612,104933442,1397696089,303759937,167860492,18698759,239013651,326172731,1581787227,353831957,973232649,939619857,1197359924,325393500,490346033,1225074764,69022230,323956569,387799296,1427984135,355216922,1512643387,876704531,1159331841,1225989126,323486805,491724040,170532189,3932708,101063192,151264268,559176543,17187847,1174929664,292243286,108600373,201600537,1141251095,1561346096,1532632579,470363986,36047110,343480890,117930573,1850605643,558522182,67846665,1565,1197629007,1178209058,286466373,1325800471,420546127,1726481,503451194,325257995,460660088,201600525,1394279936,474962699,1195659335,252321034,35195667,3934778,286339955,1142554639,290872909,151870732,1275724032,304761931,1585119520,16939096,1312359695,1532368651,185025351,1108495628,37293381,641473077,18162246,223742993,68948301,386745862,1112345356,86776901,472667701,1443637324,1899187023,420554298,1726481,151919676,1164397570,637610752,723781750,1698308129,1127431206,707465033,707802681,1265187380,388767606,1480802134,1208360513,69211931,387799325,1279479052,103685124,319425312,286075470,1515735825,102047565,285492259,1414339852,103678021,103418662,1447896833,1074862848,137762587,388974859,1277106694,36457547,472919072,454237511,1077418262,352394518,105513287,437127707,35796994,1349864483,352593984,1412828183,319886345,71958855,1276910865,1040796747,755641088,724770675,1815160102,1126186026,892276553,135933244,842599169,389943079,558069249,1848778797,1297497917,286083655,505351716,102304258,1346111802,286423055,56118039,1645594,1195642645,252321034,303696659,555752497,1480797766,1476414232,1532368671,134306119,253434892,1265180170,120982902,1313025613,56104017,251731212,1195642641,1009400376,572076350,605364487,1447917670,2015634976,572924208,373948743,1275729152,637946955,923480324,1480793698,1326521153,822482699,1192975876,1276392517,103678468,507000870,1313029974,307910968,1381646915,1447435593,1110597189,103023173,1344872752,402815001,50726918,352800835,705519370,1280658713,354687508,790907953,453146639,1611007503,34932251,185417741,1112349725,35788869,1349864483,924139332,1141250838,69207553,387799325,1279479052,103685124,488246048,436221774,1109011463,319886848,1192427847,185404933,1165052939,490340401,1444101959,1129727262,253564170,17188919,255794444,1265179924,104602998,286339955,1142554639,307650125,204101888,472386311,1161501448,388582520,101596241,1109002254,1129861130,1193230859,470502725,1265178886,372706166,105084417,1293621766,337975065,907108096,1112349452,388629317,104339975,1447917638,1075382038,85000735,105513287,739647238,36505618,808860198,285686870,56118033,135928585,1229604118,203037771,1161758474,121326712,100940869,1280722241,305463822,1191920412,1042828613,388637490,389873945,641955329,53487654,336023619,387599367,1112348168,589568581,657988149,1480791665,1192886337,1129861120,270092311,790305804,322637571,470817841,692270405],kw,0);function $8(){var s=function(u,a){return u(a)};return s(Wt,0)&&navigator[s(Wt,0)]}function X8(){var s=function(u,a){return u(a)};return document[s(Wt,1)](s(Wt,2))[s(Wt,3)](s(Wt,4))}function J8(s,u){return a=e.sH,l=function(){var m,w,b,_,v=function(B,L){return(function(q,Q){return q(Q)})(B,L)},O=function(B,L,q,Q){return(function(tt,rt,ct,mt){return tt(rt,ct,mt)})(B,L,q,Q)};return(function(B,L,q){return B(L,q)})(e.YH,this,(function(B){switch(B.label){case 0:return m=Array.from((function(L){return(function(q){return q===null})(L)})(s)||(function(L){return(function(q){return q===void 0})(L)})(s)?void 0:s[v(Wt,5)].values()),[4,Promise.all([O(Q8,s,m,u),v(eb,s)])];case 1:return w=B.sent(),b=w[0],_=w[1],[2,[b,_,m]]}}))},a(this,void 0,void 0,l);var a,l}var Ki=16;function Q8(s,u,a){var l=function(gt,_t){return gt(_t)},m=function(gt,_t){return gt*_t},w=function(gt,_t){return gt(_t)},b=function(gt,_t){return gt(_t)},_=function(gt,_t){return gt+_t},v=function(gt,_t){return gt(_t)},O=function(gt,_t){return gt(_t)},B=function(gt,_t){return gt(_t)},L=function(gt,_t){return gt(_t)},q=function(gt,_t){return gt(_t)},Q=function(gt,_t){return gt(_t)},tt=function(gt,_t){return gt(_t)},rt=function(gt,_t){return gt(_t)},ct=function(gt,_t){return gt(_t)},mt=function(gt,_t){return gt+_t},Et=function(gt,_t){return gt+_t};return(function(gt,_t,Vt,Ht,Yt){return gt(_t,void 0,void 0,Yt)})(e.sH,this,0,0,(function(){var gt,_t,Vt,Ht,Yt,Tt,Ut,qt,ee,se,le,_e,we,Te,Ue,De,Le,hn,Mn,In,Zn,nr,rr,qr,mi,wr,bn,Bt={LIcVF:"1|3|2|0|4",CVGyL:function(Ot,Nt){return l(Ot,Nt)},NQGua:function(Ot,Nt){return m(Ot,Nt)},IxGbO:function(Ot,Nt){return w(Ot,Nt)},qQoQh:function(Ot,Nt){return l(Ot,Nt)},eRsOG:function(Ot,Nt){return(function(te,ce){return te%ce})(Ot,Nt)},sTGJP:function(Ot,Nt){return b(Ot,Nt)},bLKEM:function(Ot,Nt){return(function(te,ce){return te/ce})(Ot,Nt)},BfmPO:function(Ot,Nt){return(function(te,ce){return te/ce})(Ot,Nt)},qiUeQ:function(Ot,Nt){return(function(te,ce){return te/ce})(Ot,Nt)},QCXCI:function(Ot,Nt){return(function(te,ce){return te*ce})(Ot,Nt)},YuwoT:function(Ot,Nt){return _(Ot,Nt)},NzoFK:function(Ot,Nt){return b(Ot,Nt)},nStre:function(Ot,Nt){return v(Ot,Nt)},cgngL:function(Ot,Nt){return O(Ot,Nt)},lnSsO:function(Ot,Nt){return B(Ot,Nt)},LWtIu:function(Ot,Nt){return O(Ot,Nt)},rnbTq:function(Ot,Nt){return B(Ot,Nt)},vXgTw:function(Ot,Nt){return(function(te,ce){return te|ce})(Ot,Nt)},SGWhR:function(Ot,Nt){return b(Ot,Nt)},tJskz:function(Ot,Nt){return v(Ot,Nt)},WwBMK:function(Ot,Nt){return b(Ot,Nt)},XvGWM:function(Ot,Nt){return O(Ot,Nt)},Czazt:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},TcuLX:function(Ot,Nt){return L(Ot,Nt)},qmLme:function(Ot,Nt){return q(Ot,Nt)},DHpBv:function(Ot,Nt){return l(Ot,Nt)},GXSjU:function(Ot,Nt){return O(Ot,Nt)},lZchU:function(Ot,Nt){return(function(te,ce){return te|ce})(Ot,Nt)},kdFZM:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},fjLlD:function(Ot,Nt){return Q(Ot,Nt)},NZEUH:function(Ot,Nt){return B(Ot,Nt)},rMQcE:function(Ot,Nt){return q(Ot,Nt)},cmdDW:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},fMGTS:function(Ot,Nt){return v(Ot,Nt)},Megnu:function(Ot,Nt){return tt(Ot,Nt)},dwDBV:function(Ot,Nt){return(function(te,ce){return te<ce})(Ot,Nt)},UStju:"16|13|12|14|1|11|3|2|15|6|5|0|7|8|4|10|9",yPtzU:function(Ot,Nt){return(function(te,ce){return te===ce})(Ot,Nt)},hIuvn:function(Ot,Nt){return tt(Ot,Nt)},LUaAI:function(Ot,Nt){return rt(Ot,Nt)},KBsRE:function(Ot,Nt){return l(Ot,Nt)},eiLib:function(Ot,Nt){return m(Ot,Nt)},gsIFj:function(Ot,Nt){return L(Ot,Nt)},ymkbA:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},RTTay:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},SXGAR:function(Ot,Nt){return ct(Ot,Nt)},rLyth:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},lnNJb:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},HtEmG:function(Ot,Nt){return m(Ot,Nt)},kEERD:function(Ot,Nt){return(function(te,ce){return te+ce})(Ot,Nt)},lEDdr:function(Ot,Nt){return mt(Ot,Nt)},VfkAG:function(Ot,Nt){return _(Ot,Nt)},FQVYm:function(Ot,Nt){return rt(Ot,Nt)},rjquO:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},zCjNE:function(Ot,Nt){return ct(Ot,Nt)},HfSqy:function(Ot,Nt){return Q(Ot,Nt)},xEOfR:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)},CsGxJ:function(Ot,Nt){return b(Ot,Nt)},CPukW:function(Ot,Nt){return w(Ot,Nt)},uiTcO:function(Ot,Nt){return(function(te,ce){return te*ce})(Ot,Nt)},gvEcj:function(Ot,Nt){return Et(Ot,Nt)},qonBa:function(Ot,Nt){return Et(Ot,Nt)},SQuSM:function(Ot,Nt){return(function(te,ce){return te+ce})(Ot,Nt)},qLjkZ:function(Ot,Nt){return(function(te,ce){return te*ce})(Ot,Nt)},XMYnt:function(Ot,Nt){return mt(Ot,Nt)},YtxIQ:function(Ot,Nt){return(function(te,ce){return te(ce)})(Ot,Nt)}};return(function(Ot,Nt,te){return Ot(Nt,te)})(e.YH,this,(function(Ot){switch(Ot.label){case 0:return[4,s[Bt.sTGJP(Wt,6)]({requiredFeatures:u})];case 1:for(gt=Ot.sent(),_t=Math.PI,Vt=[[0,1,0,Bt.bLKEM(_t,7)],[1,0,0,Bt.bLKEM(_t,8)],[0,1,1,Bt.BfmPO(_t,4)],[1,2,1,Bt.qiUeQ(_t,8)]],Ht=Vt.length,Yt=new Uint8Array(Bt.QCXCI(Ht,Bt.YuwoT(Bt.YuwoT(16,Ki),8))),Tt=navigator[Bt.IxGbO(Wt,0)][Bt.NzoFK(Wt,7)](),a[Bt.nStre(Wt,8)]({device:gt,format:Tt}),Ut=gt[Bt.cgngL(Wt,9)](Bt.IxGbO(Wt,10)),qt=gt[Bt.CVGyL(Wt,11)]({label:Bt.IxGbO(Wt,12),layout:Bt.cgngL(Wt,13),vertex:{module:Ut},fragment:{module:Ut,targets:[{format:Tt}]},primitive:Bt.lnSsO(Wt,14)}),ee=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],se=new Uint8Array(Bt.cgngL(Array,Bt.NQGua(7,9)).fill(void 0).map((function(ce,wn){return ee[(function(xe){return Bt.eRsOG(xe,3)})(wn)]})).flat()),le=gt[Bt.CVGyL(Wt,15)]({label:Bt.LWtIu(Wt,16),size:[7,9],format:Bt.rnbTq(Wt,17),usage:Bt.vXgTw(window[Bt.SGWhR(Wt,18)][Bt.IxGbO(Wt,19)],window[Bt.tJskz(Wt,18)][Bt.WwBMK(Wt,20)])}),gt[Bt.LWtIu(Wt,21)][Bt.XvGWM(Wt,22)]({texture:le},se,{bytesPerRow:Bt.NQGua(7,4)},{width:7,height:9}),_e=gt[Bt.SGWhR(Wt,23)](Bt.Czazt(Wt,24)),we=gt[Bt.XvGWM(Wt,25)]({layout:qt[Bt.TcuLX(Wt,26)](0),entries:[{binding:0,resource:_e},{binding:1,resource:le[Bt.qmLme(Wt,27)]()}]}),Te=Vt.map((function(ce){for(var wn=Bt.LIcVF.split("|"),xe=0;;){switch(wn[xe++]){case"0":ze[Bt.CVGyL(Wt,35)]();continue;case"1":var ze=gt[Bt.CVGyL(Wt,28)]({label:Bt.CVGyL(Wt,29),size:Bt.NQGua(4,Float32Array[Bt.IxGbO(Wt,30)]),usage:window[Bt.IxGbO(Wt,31)][Bt.CVGyL(Wt,32)],mappedAtCreation:!0});continue;case"2":rn[Bt.CVGyL(Wt,34)](ce);continue;case"3":var rn=new Float32Array(ze[Bt.IxGbO(Wt,33)]());continue;case"4":return gt[Bt.CVGyL(Wt,25)]({layout:qt[Bt.qQoQh(Wt,26)](1),entries:[{binding:0,resource:{buffer:ze}}]})}break}})),Ue=gt[Bt.DHpBv(Wt,36)](Bt.Czazt(Wt,37)),De=gt[Bt.qQoQh(Wt,28)]({size:Bt.QCXCI(Ue[Bt.GXSjU(Wt,38)],8),usage:Bt.lZchU(window[Bt.kdFZM(Wt,31)][Bt.tJskz(Wt,39)],window[Bt.fjLlD(Wt,31)][Bt.qmLme(Wt,40)])}),Le=gt[Bt.LWtIu(Wt,28)]({size:Bt.NQGua(De[Bt.NZEUH(Wt,41)],Ht),usage:Bt.vXgTw(window[Bt.rMQcE(Wt,31)][Bt.XvGWM(Wt,20)],window[Bt.cmdDW(Wt,31)][Bt.fMGTS(Wt,42)])}),hn={label:Bt.Megnu(Wt,43),colorAttachments:Bt.qmLme(Wt,44),timestampWrites:{querySet:Ue,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}},bn=0;Bt.dwDBV(bn,Te.length);bn++)for(var Nt=Bt.UStju.split("|"),te=0;;){switch(Nt[te++]){case"0":Bt.yPtzU(Le[Bt.hIuvn(Wt,58)],Bt.LUaAI(Wt,59))&&In[Bt.KBsRE(Wt,60)](De,0,Le,Bt.eiLib(bn,16),De[Bt.qQoQh(Wt,41)]);continue;case"1":Zn[Bt.gsIFj(Wt,51)](qt);continue;case"2":nr=window[Bt.ymkbA(Wt,53)][Bt.qQoQh(Wt,54)]();continue;case"3":Zn[Bt.sTGJP(Wt,52)](1,Mn);continue;case"4":qr=Bt.RTTay(tb,a[Bt.qmLme(Wt,2)]);continue;case"5":In[Bt.cmdDW(Wt,57)](Ue,0,Ue[Bt.hIuvn(Wt,38)],De,0);continue;case"6":Zn[Bt.SXGAR(Wt,56)]();continue;case"7":rr=In[Bt.rLyth(Wt,61)]();continue;case"8":gt[Bt.Megnu(Wt,21)][Bt.RTTay(Wt,62)]([rr]);continue;case"9":Yt[Bt.lnNJb(Wt,34)](new Uint8Array(new Float64Array([nr])[Bt.XvGWM(Wt,63)]),Bt.HtEmG(bn,Bt.YuwoT(Bt.kEERD(16,Ki),8)));continue;case"10":Yt[Bt.cgngL(Wt,34)](qr,Bt.lEDdr(8,Bt.NQGua(bn,Bt.VfkAG(Bt.lEDdr(16,Ki),8))));continue;case"11":Zn[Bt.FQVYm(Wt,52)](0,we);continue;case"12":In=gt[Bt.SGWhR(Wt,48)](Bt.kdFZM(Wt,49));continue;case"13":hn[Bt.rjquO(Wt,45)][0][Bt.hIuvn(Wt,46)]=a[Bt.CVGyL(Wt,47)]()[Bt.zCjNE(Wt,27)]();continue;case"14":Zn=In[Bt.FQVYm(Wt,50)](hn);continue;case"15":Zn[Bt.HfSqy(Wt,55)](48);continue;case"16":Mn=Te[bn];continue}break}return Bt.yPtzU(Le[Bt.xEOfR(Wt,58)],Bt.CsGxJ(Wt,59))?[4,Le[Bt.DHpBv(Wt,64)](window[Bt.WwBMK(Wt,65)][Bt.CPukW(Wt,66)])]:[3,3];case 2:for(Ot.sent(),mi=Le[Bt.cmdDW(Wt,33)](),wr=new Uint8Array(mi),bn=0;Bt.dwDBV(bn,Ht);bn++)Yt[Bt.TcuLX(Wt,34)](wr[Bt.sTGJP(Wt,67)](Bt.NQGua(bn,Ki),Bt.uiTcO(Bt.gvEcj(bn,1),Ki)),Bt.qonBa(Bt.SQuSM(8,16),Bt.qLjkZ(bn,Bt.gvEcj(Bt.XMYnt(16,Ki),8))));Le[Bt.YtxIQ(Wt,35)](),Ot.label=3;case 3:return[2,Bt.GXSjU(mr,Yt)]}}))}))}function tb(s){var u=function(a,l){return a(l)};return u(l5,u(Sn,s[u(Wt,68)]()))}function eb(s){var u,a=function(m,w){return m!==w},l=function(m,w){return m(w)};return(function(m,w,b,_,v){return m(w,void 0,void 0,v)})(e.sH,this,0,0,(function(){var m;return(function(w,b,_){return w(b,_)})(e.YH,this,(function(w){switch(w.label){case 0:return a(u=s[l(Wt,69)],null)&&a(u,void 0)?(m=u,[3,3]):[3,1];case 1:return[4,s[l(Wt,70)]()];case 2:m=w.sent(),w.label=3;case 3:return[2,m]}}))}))}function Wd(){var s=function(a,l,m){return a(l,m)},u=this;return s(tr,Yn(1e3,{s:-2,v:null}),(function(){var a,l,m=function(v){return(function(O){return O()})(v)},w=function(v,O,B){return s(v,O,B)},b=function(v,O,B){return(function(L,q,Q){return L(q,Q)})(v,O,B)},_=function(v,O,B){return(function(L,q,Q){return L(q,Q)})(v,O,B)};return a=e.sH,l=function(){var v,O,B,L,q,Q,tt;return s(e.YH,this,(function(rt){switch(rt.label){case 0:return[4,m(nb)];case 1:return v=rt.sent(),(function(ct,mt){return(function(Et,gt){return Et!==gt})(ct,mt)})(w(Xt,v,453955339),0)?[2,v]:(O=(function(ct,mt){return s(ct,mt,1801730948)})(Xt,v),B=O[0],L=O[1],[4,b(J8,B,L)]);case 2:return q=rt.sent(),Q=q[0],tt=q[1],[2,{s:0,v:{s:q[2],f:Q,v:w(Xt,tt,4112659446),a:_(Xt,tt,1956208378)}}]}}))},a(u,void 0,void 0,l)}))}function nb(){var s,u,a=function(m,w,b){return m(w,b)},l=function(m,w,b){return m(w,b)};return s=e.sH,u=function(){var m,w,b,_,v=function(L,q,Q){return l(L,q,Q)},O=function(L){return(function(q){return q()})(L)},B=function(L,q,Q){return l(L,q,Q)};return a(e.YH,this,(function(L){switch(L.label){case 0:if(!(m=(function(q,Q){return a(q,Q,3179935986)})(Xt,navigator)))return[2,{s:-3,v:null}];w=null,L.label=1;case 1:return L.trys.push([1,3,,4]),[4,v(Xt,m,1678473624)()];case 2:return w=L.sent(),[3,4];case 3:if((function(q){return(function(Q,tt){return Q instanceof tt})(q,Error)})(b=L.sent())&&O(X))return[2,{s:-3,v:B(Xt,b,3065852031)}];throw b;case 4:return w?O($8)?(_=(function(q){return(function(Q){return Q()})(q)})(X8))?[2,{s:0,v:[w,_]}]:[2,{s:-5,v:null}]:[2,{s:-1,v:null}]:[2,{s:-4,v:null}]}}))},s(this,void 0,void 0,u)}function rb(){var s;return{s:0,v:(s=performance.timeOrigin)!==null&&s!==void 0?s:Date.now()-performance.now()}}var Yr=Dn([1058085656,755065913,591387725,1190162267,3207354738,1862345487,1482820536,1963637024,16670991,4033829736,1867081798,1215448816,1812826169,279519816,3211723043,576614155,1881342384],5);function ib(){var s,u,a=function(l){return l()};return s=e.sH,u=function(){var l,m=function(b){return a(b)},w=function(b,_){return(function(v,O){return v(O)})(b,_)};return(function(b,_,v){return b(_,v)})(e.YH,this,(function(b){switch(b.label){case 0:return m(I)||(function(_){return a(_)})(U)?(l={s:0},[4,m(ob)]):[3,2];case 1:return[2,(l[w(Yr,0)]=b.sent(),l)];case 2:return[2,{s:-1,v:null}]}}))},s(this,void 0,void 0,u)}function ob(){var s={Blqbz:function(a,l){return a(l)},xZHoB:"2|1|3|0|4",dJhbP:function(a,l){return a(l)},SkSjD:function(a){return a()},KqpSs:function(a,l,m){return a(l,m)},hsbcg:function(a,l,m){return a(l,m)},QsyLE:function(a,l){return a(l)},BRhvx:function(a,l,m){return a(l,m)},FbvWI:function(a,l){return a(l)},iDelp:function(a,l){return a(l)}},u=new Promise((function(a){for(var l=s.xZHoB.split("|"),m=0;;){switch(l[m++]){case"0":window[s.Blqbz(Yr,5)](window[s.dJhbP(Yr,6)].debug,0,w);continue;case"1":var w;continue;case"2":var b={mXScH:function(_,v){return s.dJhbP(_,v)}};continue;case"3":s.SkSjD(I)?((w=new Error).name=" ",s.KqpSs(Xt,Object,1973166116)(w,s.dJhbP(Yr,1),{get:a.bind(null,!0)})):(w=s.hsbcg(Xt,window[s.dJhbP(Yr,2)],1297038992)(s.QsyLE(Yr,3)),s.BRhvx(Xt,Object,1973166116)(w,s.FbvWI(Yr,4),{get:function(){b.mXScH(a,!0);var _=new Error;throw _.name="",_}}));continue;case"4":window[s.iDelp(Yr,5)]((function(){s.Blqbz(a,!1)}));continue}break}}));return s.FbvWI(xo,u)}var sb=new Set([2882888216,2306836488,1040191956,1447924955]);function ab(){return{s:0,v:d5(Navigator.prototype,sb)}}var zd=Dn([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function cb(){var s,u=(function(a,l){return a(l,3966979758)})(Xt,new window[s=zd,s(0)](""));return(function(a,l){return a!==l})(typeof u,(function(a){return a(1)})(zd))?{s:-1,v:null}:{s:0,v:{isTrusted:u}}}var ub=function(){return{key:"bd",sources:{stage1:(s={},s.s94=Md,s),stage2:(u={},u.s106=Q6,u.s154=l8,u.s158=v8,u.s160=vw,u.s97=Vd,u.s70=Wd,u.s152=Vw,u),stage3:(a={},a.s1=$0,a.s2=X0,a.s4=J0,a.s5=Q0,a.s7=td,a.s15=ed,a.s19=nd,a.s27=rd,a.s74=id,a.s75=od,a.s24=bd,a.s44=pd,a.s45=md,a.s57=Ad,a.s59=sd,a.s60=ad,a.s61=cd,a.s62=ud,a.s63=fd,a.s64=ld,a.s65=dd,a.s68=hd,a.s69=wd,a.s72=_d,a.s82=Id,a.s83=kd,a.s99=Hd,a.s101=$6,a.s103=X6,a.s104=J6,a.s117=tw,a.s119=ew,a.s123=nw,a.s131=rw,a.s133=iw,a.s136=ow,a.s148=sw,a.s149=aw,a.s150=cw,a.s157=uw,a.s102=Ww,a.s118=zw,a.s120=Fw,a.s130=Gw,a.s132=Kw,a.s135=Hw,a.s139=Mw,a.s142=Dw,a.s144=Uw,a.s145=Bw,a.s146=Pw,a.s151=e8,a.s153=n8,a.s155=h8,a.s156=g8,a.s159=y8,a.s162=E8,a.s163=ib,a.s165=cb,a.s166=ab,a)}};var s,u,a};function fb(s,u,a,l,m,w){var b=l?[]:(function(L,q,Q){return(function(tt,rt){for(var ct=function(qt,ee){return qt<ee},mt=function(qt,ee,se){return qt(ee,se)},Et=function(qt,ee){return qt(ee)},gt=[],_t=0,Vt=Array.isArray(tt)?tt:[tt];ct(_t,Vt.length);_t++){var Ht=Vt[_t];if(mt(Pc,Ht,Ps))for(var Yt=0,Tt=rt;ct(Yt,Tt.length);Yt++){var Ut=Tt[Yt];gt.push(Et(h6,Ut))}else gt.push(Et(String,Ht))}return gt})(L,q).map((function(tt){return Lc(tt,{q:Q})}))})(s,u,a);if(b.length===0)return function(){return Promise.resolve({s:-1,v:null})};Nr(w,(function(){return{e:6}}));var _=Ml(),v=L0(_),O=Date.now(),B=F0(b,lb.bind(null,5e3,w,v),db,Math.max(10,b.length),m);return B.then((function(){return _.resolve()}),(function(){return _.resolve()})),function(L,q,Q,tt){return(0,e.sH)(this,void 0,void 0,(function(){var rt,ct;return(0,e.YH)(this,(function(mt){switch(mt.label){case 0:if(Q)return[2,{s:-1,v:null}];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,Promise.race([B,hb(O,L,q)])];case 2:return mt.sent(),rt=(function(Et){var gt=Et.result,_t=Et.failedAttempts;if(gt!==void 0)return gt;var Vt=_t[0];if(!Vt)return{s:-3,v:null};if(Vt.level===1)return Vt.error;var Ht=Vt.error,Yt=Vt.endpoint;if(Ht instanceof Error){var Tt=Ht.name,Ut=Ht.message;switch(Tt){case"AbortError":return{s:-2,v:Ut};case"TimeoutError":return{s:-3,v:Ut};case"CSPError":return{s:-6,v:Ut};case"InvalidURLError":return{s:-7,v:"Invalid URL: ".concat(hi(Yt,255))};case"TypeError":return{s:-4,v:Ut}}}return H0(Ht)})(B.current),Nr(tt,(function(){return{e:7,result:rt}})),[2,rt];case 3:throw ct=mt.sent(),Nr(tt,(function(){return{e:8,error:ct}})),ct;case 4:return[2]}}))}))}}function lb(s,u,a,l,m,w){return Po(u,(function(){return{e:9,tryNumber:m,url:l,timeout:s}}),(function(b){var _=b.status,v=b.getHeader,O=b.body;return{e:10,tryNumber:m,status:_,retryAfter:v("retry-after"),body:O}}),(function(b){return{e:11,tryNumber:m,error:b}}),(function(){return C0({url:l,timeout:s,abort:w,container:a})}))}function db(s){var u=s.status,a=s.body;return u===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(a)?{result:{s:0,v:a}}:{error:{s:-5,v:hi("".concat(u,": ").concat(a),255)}}}function hb(s,u,a){return Yn(Math.min(Math.max(u,s+1e4-Date.now()),a))}function Gd(s){for(var u="".concat(s,"="),a=0,l=document.cookie.split(";");a<l.length;a++){for(var m=l[a],w=0;m[w]===" "&&w<m.length;)++w;if(m.indexOf(u)===w)return m.slice(w+u.length)}}function Kd(s,u,a,l){var m="".concat(s,"=").concat(u),w=new Date(Date.now()+24*a*60*60*1e3),b="expires=".concat(w.toUTCString()),_=l?"domain=".concat(l):"";document.cookie=[m,"path=/",b,_,"SameSite=Lax"].join("; ")}function jd(s){var u=location.hostname,a=X();(function(l,m){var w=l.length-(l.slice(-1)==="."?1:0);do if(w=w>0?l.lastIndexOf(".",w-1):-1,m(l.slice(w+1))===!0)return!0;while(w>=0);return!1})(u,(function(l){if(!a||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(l)||l===u)return s(l)}))||s()}function Yd(s){return"".concat(s,"_t")}function Vc(s){return"".concat(s,"_lr")}function qd(s){var u,a;try{return(a=(u=localStorage==null?void 0:localStorage.getItem)===null||u===void 0?void 0:u.call(localStorage,s))!==null&&a!==void 0?a:void 0}catch{}}function Hc(s,u){var a;try{(a=localStorage==null?void 0:localStorage.setItem)===null||a===void 0||a.call(localStorage,s,u)}catch{}}function pb(s){var u=(function(m){return[Gd(m),qd(m)]})(Yd(s)),a=u[0],l=u[1];return a=Zd(a),l=Zd(l),a!==void 0&&l!==void 0?{s:0,v:a||l}:a!==void 0?{s:1,v:a}:l!==void 0?{s:2,v:l}:{s:-1,v:null}}function Zd(s){return s&&s.length<=1e3?s:void 0}var gb=function(){return{key:"id",sources:{stage1:(s={},s.s94=Md,s),stage2:(u={},u.s52=mw,u.s6=A6,u.s58=_w,u.s20=_6,u.s36=E6,u.s51=R6,u.s21=S6,u.s79=Tw,u.s69=wd,u.s23=qw,u.s29=jw,u.s84=$w,u.s85=Jw,u.s89=Aw,u.s17=L6,u.s87=m8,u.s92=b8,u.s93=w8,u.s95=K8,u.s97=Vd,u.s70=Wd,u),stage3:(a={},a.s22=Cw,a.s30=xw,a.s33=lw,a.s44=pd,a.s45=md,a.s49=dw,a.s50=pw,a.s57=Ad,a.s59=sd,a.s60=ad,a.s61=cd,a.s62=ud,a.s63=fd,a.s64=ld,a.s65=dd,a.s66=Y6,a.s68=hd,a.s71=Sw,a.s24=bd,a.s72=_d,a.s1=$0,a.s2=X0,a.s3=I6,a.s4=J0,a.s5=Q0,a.s7=td,a.s9=k6,a.s10=O6,a.s11=T6,a.s12=Xw,a.s13=N6,a.s14=x6,a.s15=ed,a.s16=C6,a.s19=nd,a.s27=rd,a.s28=B6,a.s32=P6,a.s37=M6,a.s41=U6,a.s39=D6,a.s42=F6,a.s38=V6,a.s43=H6,a.s40=z6,a.s46=G6,a.s80=K6,a.s81=j6,a.s82=Id,a.s83=kd,a.s86=t8,a.s91=W6,a.s96=q6,a.s98=Z8,a.s99=Hd,a.s200=rb,a.s201=fw,a.s202=Z6,a.s74=id,a.s75=od,a.s76=gw,a)},tls:fb,toRequest:function(l,m){return(0,e.sH)(this,void 0,void 0,(function(){var w,b,_,v,O,B;return(0,e.YH)(this,(function(L){switch(L.label){case 0:return w=location.href,b=document.referrer,[4,Promise.all([w&&Ds(w,m),b&&Ds(b,m)])];case 1:return _=L.sent(),v=_[0],O=_[1],[2,(B={},B.url=v,B.cr=O||void 0,B.s55=pb(l),B.s48=Lw(),B)]}}))}))},onResponse:function(l,m){var w,b,_;(function(v,O){var B=Yd(v);O&&(function(L,q){(function(Q,tt){jd((function(rt){(function(ct,mt){Kd(ct,"",-1,mt)})(Q,rt)})),jd((function(rt){return Kd(Q,tt,365,rt),Gd(Q)===tt}))})(q,L),Hc(q,L)})(O,B)})(m,(_=(b=(w=l.products)===null||w===void 0?void 0:w.identification)===null||b===void 0?void 0:b.data)===null||_===void 0?void 0:_.visitorToken)}};var s,u,a},mb=function(){return{key:"si",sources:{stage2:(s={},s.s77=C8,s)}};var s},$d=[3,7];function Wc(s){var u=qd(s);if(!u)return[];try{var a=u?JSON.parse(u):[];return Array.isArray(a)?a:[]}catch{return[]}}function Xd(s){var u={};return new Set(s).forEach((function(a){var l=(function(w){if(!URL.prototype)return w;try{return new URL(w,window.location.origin).toString()}catch{return w}})(a),m=performance.getEntriesByName(l,"resource");u[a]=m})),u}function zc(s,u,a,l,m,w){for(var b,_=[],v=0,O=s;v<O.length;v++){var B=O[v],L=B.event;L.e!==a&&L.e!==l&&L.e!==m||L.stage===w&&((_[b=L.tryNumber]||(_[b]={}))[L.e]=B)}return _.map((function(q){var Q,tt,rt,ct,mt,Et,gt=(Q=q[a])===null||Q===void 0?void 0:Q.timestamp,_t=(rt=(tt=q[l])===null||tt===void 0?void 0:tt.timestamp)!==null&&rt!==void 0?rt:(ct=q[m])===null||ct===void 0?void 0:ct.timestamp,Vt=(mt=q[a])===null||mt===void 0?void 0:mt.event.url,Ht=(Et=q[m])===null||Et===void 0?void 0:Et.event.error;return gt&&_t&&Vt?Jd(Vt,gt,_t,Ht,u[Vt]):null})).filter((function(q){return!!q}))}function Jd(s,u,a,l,m){var w,b=(function(_,v,O){if(_){for(var B,L=_.length-1;L>=0;L--){var q=_[L];if(q.startTime<v-1)break;q.responseEnd<=O+1&&(B=q)}return B}})(m,u,a);return(w={}).s=xr(b?.startTime)||Math.round(u),w.e=xr(b?.responseEnd)||Math.round(a),w.u=s||null,w.er=l?String(l):null,w.ds=xr(b?.domainLookupStart),w.de=xr(b?.domainLookupEnd),w.cs=xr(b?.connectStart),w.css=xr(b?.secureConnectionStart),w.ce=xr(b?.connectEnd),w.qs=xr(b?.requestStart),w.ss=xr(b?.responseStart),w}function xr(s){return typeof s=="number"?s===0?null:Math.round(s):null}function Ws(s){var u,a=(u=performance.timeOrigin)!==null&&u!==void 0?u:Date.now()-performance.now();return Math.round(s.getTime()-a)}var vb=function(){var s=(function(){var a={},l=[],m=[],w=!1,b=Wi(document,"visibilitychange",_);function _(){var O;m.push(((O={}).t=Math.round(performance.now()),O.s=xc()?"v":"h",O))}function v(O,B){for(var L,q,Q,tt,rt,ct,mt,Et,gt,_t,Vt,Ht,Yt=(function(te,ce,wn){var xe=[];return te[ce]&&(xe.push.apply(xe,te[ce].commonEvents),wn!==void 0&&xe.push.apply(xe,te[ce].getCalls[wn]||[])),xe})(a,O,B),Tt={},Ut=0,qt=Yt;Ut<qt.length;Ut++){var ee=qt[Ut];Tt[ee.event.e]=ee}var se=(q=Tt[4])!==null&&q!==void 0?q:Tt[5];if(Tt[0]&&Tt[1]&&Tt[3]&&Tt[12]&&se){var le=Tt[0].event.options,_e=le.token,we=le.apiKey,Te=we===void 0?_e:we,Ue=le.storageKey,De=Ue===void 0?Zl:Ue,Le=le.modules,hn=le.ldi,Mn=le.aggressiveOptimization,In=Mn!==void 0&&Mn,Zn=le.optimizeRepeatedVisits,nr=Zn!==void 0&&Zn;if(Te){var rr,qr,mi=Math.min(Tt[0].timestamp,Ws((Q=hn?.attempts[0].startedAt)!==null&&Q!==void 0?Q:new Date("8524-04-28"))),wr=(tt=Tt[5])===null||tt===void 0?void 0:tt.event.error,bn=(rt=Tt[4])===null||rt===void 0?void 0:rt.event.result,Bt=(ct=Tt[13])!==null&&ct!==void 0?ct:Tt[14],Ot=Xd(l),Nt=((L={}).v="1",L.dt=new Date().toISOString(),L.ci=V0(),L.pi=T0(),L.ai=O,L.ri=Co(12),L.c=Te,L.rid=(Et=(mt=bn?.requestId)!==null&&mt!==void 0?mt:wr?.requestId)!==null&&Et!==void 0?Et:null,L.er=(gt=wr?.message)!==null&>!==void 0?gt:null,L.mo=Le.map((function(te){return te.key})).filter((function(te){return!!te})),L.sa=(rr=(_t=hn?.attempts)!==null&&_t!==void 0?_t:[],qr=Xd(rr.map((function(te){return te.url})).filter((function(te){return!!te}))),rr.map((function(te,ce){var wn=rr.length>1&&ce<rr.length-1&&!("error"in te);return Jd(te.url,Ws(te.startedAt),Ws(te.finishedAt),wn?"Unknown":te.error,qr[te.url])}))),L.ls=Tt[0].timestamp,L.le=Tt[1].timestamp,L.ca=zc(Yt,Ot,9,10,11),L.ss=Tt[12].timestamp,L.se=(Vt=Bt?.timestamp)!==null&&Vt!==void 0?Vt:null,L.sd=(function(te){var ce,wn=(ce=te[13])===null||ce===void 0?void 0:ce.event.result;if(!wn)return{};var xe={};for(var ze in wn)xe[ze]=Math.round(wn[ze].duration);return xe})(Tt),L.gs=Tt[3].timestamp,L.ge=se.timestamp,L.fa=zc(Yt,Ot,18,19,20,0),L.ia=zc(Yt,Ot,18,19,20,1),L.vs=(function(te,ce,wn,xe){for(var ze=(function(Fn,ir){var $r,Xr;return(0,e.YH)(this,(function(Cr){switch(Cr.label){case 0:$r=0,Xr=0,Cr.label=1;case 1:return $r<Fn.length&&Xr<ir.length?(function(Sb,Ab){return Sb.t<Ab.t})(Fn[$r],ir[Xr])?[4,Fn[$r]]:[3,3]:[3,6];case 2:return Cr.sent(),$r++,[3,5];case 3:return[4,ir[Xr]];case 4:Cr.sent(),Xr++,Cr.label=5;case 5:return[3,1];case 6:return $r<Fn.length?[4,Fn[$r]]:[3,9];case 7:Cr.sent(),Cr.label=8;case 8:return $r++,[3,6];case 9:return Xr<ir.length?[4,ir[Xr]]:[3,12];case 10:Cr.sent(),Cr.label=11;case 11:return Xr++,[3,9];case 12:return[2]}}))})(te.map((function(Fn){var ir;return(ir={}).t=Ws(Fn.time),ir.s=Fn.state==="visible"?"v":"h",ir})),ce),rn=[],Nn=void 0,Zr=function(){var Fn;rn.length===0&&Nn!==void 0&&rn.push(((Fn={}).t=wn,Fn.s=Nn,Fn))};rn.length<100;){var Fo=ze.next();if(Fo.done)break;var ji=Fo.value,Yi=ji.t,Vo=ji.s;if(Yi>xe)break;Yi<wn?Nn=Vo:Vo!==Nn&&(Zr(),rn.push(ji),Nn=Vo)}return Zr(),rn})((Ht=hn?.visibilityStates)!==null&&Ht!==void 0?Ht:[],m,mi,se.timestamp),L.ab=Tt[1].event.ab,L.ao=In,L.or=nr,L);(function(te,ce){(function(wn,xe){var ze=Vc(xe),rn=Wc(ze)||[];rn.splice(0,rn.length-2);var Nn=z0(t0(wn),$d,3,7);rn.push([wn.ri,mr(Nn)]),Hc(ze,JSON.stringify(rn))})(te,ce)})(Nt,De)}}}return _(),{addEvent:function(O){if(!w)switch((function(B){var L=B.event,q=L.agentId;if(a[q]||(a[q]={commonEvents:[],getCalls:{}}),P0(L)){var Q=L.getCallId;a[q].getCalls[Q]||(a[q].getCalls[Q]=[]),a[q].getCalls[Q].push(B)}else a[q].commonEvents.push(B)})({timestamp:Math.round(performance.now()),event:O}),O.e){case 9:case 18:l.push(O.url);break;case 4:case 5:v(O.agentId,O.getCallId)}},destroy:function(){w=!0,b()}}})(),u=new Set;return{toRequest:function(a){var l,m=(function(w){var b=Wc(Vc(w))||[],_=[];return b.forEach((function(v){try{var O=Us(Bc(xs(v[1]),$d,7));_.push(O)}catch{}})),_})(a);return u=new Set(m.map((function(w){return w.ri}))),(l={}).lr=m,l},onResponse:function(a,l){(function(m,w){var b=Vc(m);if(w.size!==0){var _=Wc(b).filter((function(v){return!w.has(v[0])}));_.length!==0?Hc(b,JSON.stringify(_)):(function(v){var O;try{(O=localStorage==null?void 0:localStorage.removeItem)===null||O===void 0||O.call(localStorage,v)}catch{}})(b)}})(l,u)},addEvent:s.addEvent,destroy:s.destroy}},yb=function(s){return{addEvent:C5(s)}},wb=function(s){return{addEvent:Z5(s)}},zs="API key required",Gs="API key not found",Ks="API key expired",Qd="Request cannot be parsed",th="Request failed",eh="Request failed to process",nh="Too many requests, rate limit exceeded",rh="Not available for this origin",ih="Not available with restricted header",bb=zs,_b=Gs,Eb=Ks,Rb={load:Z0,defaultEndpoint:Bs,defaultTlsEndpoint:Ps,ERROR_CLIENT_TIMEOUT:Ac,ERROR_NETWORK_CONNECTION:Ic,ERROR_NETWORK_ABORT:kc,ERROR_WRONG_REGION:l0,ERROR_SUBSCRIPTION_NOT_ACTIVE:d0,ERROR_API_KEY_MISSING:zs,ERROR_API_KEY_INVALID:Gs,ERROR_API_KEY_EXPIRED:Ks,ERROR_BAD_REQUEST_FORMAT:Qd,ERROR_BAD_RESPONSE_FORMAT:Oc,ERROR_GENERAL_SERVER_FAILURE:th,ERROR_SERVER_TIMEOUT:eh,ERROR_RATE_LIMIT:nh,ERROR_FORBIDDEN_ORIGIN:rh,ERROR_FORBIDDEN_HEADER:ih,ERROR_UNSUPPORTED_VERSION:h0,ERROR_INSTALLATION_METHOD_RESTRICTED:p0,ERROR_FORBIDDEN_ENDPOINT:g0,ERROR_CSP_BLOCK:Tc,ERROR_INTEGRATION_FAILURE:m0,ERROR_INVALID_ENDPOINT:Nc,ERROR_NETWORK_RESTRICTED:y0,ERROR_INVALID_PROXY_INTEGRATION_SECRET:w0,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:b0,ERROR_TOKEN_MISSING:zs,ERROR_TOKEN_INVALID:Gs,ERROR_TOKEN_EXPIRED:Ks}},568:function(r,t,n){n.r(t),n.d(t,{componentsToDebugString:function(){return bt},default:function(){return R},getFullscreenElement:function(){return U},getScreenFrame:function(){return Ft},hashComponents:function(){return xt},isAndroid:function(){return j},isChromium:function(){return wt},isDesktopSafari:function(){return h},isEdgeHTML:function(){return vt},isGecko:function(){return I},isTrident:function(){return dt},isWebKit:function(){return D},load:function(){return F},loadSources:function(){return At},murmurX64Hash128:function(){return N},prepareForSources:function(){return zt},sources:function(){return ft},transformSource:function(){return st},withIframe:function(){return et}});var e=n(635),o="3.4.2";function i(A,W){return new Promise((function(z){return setTimeout(z,A,W)}))}function c(A){return!!A&&typeof A.then=="function"}function d(A,W){try{var z=A();c(z)?z.then((function(ot){return W(!0,ot)}),(function(ot){return W(!1,ot)})):W(!0,z)}catch(ot){W(!1,ot)}}function f(A,W,z){return z===void 0&&(z=16),(0,e.sH)(this,void 0,void 0,(function(){var ot,Ct,Lt,Mt;return(0,e.YH)(this,(function(Pt){switch(Pt.label){case 0:ot=Array(A.length),Ct=Date.now(),Lt=0,Pt.label=1;case 1:return Lt<A.length?(ot[Lt]=W(A[Lt],Lt),(Mt=Date.now())>=Ct+z?(Ct=Mt,[4,i(0)]):[3,3]):[3,4];case 2:Pt.sent(),Pt.label=3;case 3:return++Lt,[3,1];case 4:return[2,ot]}}))}))}function p(A){A.then(void 0,(function(){}))}function S(A,W){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],W=[W[0]>>>16,65535&W[0],W[1]>>>16,65535&W[1]];var z=[0,0,0,0];return z[3]+=A[3]+W[3],z[2]+=z[3]>>>16,z[3]&=65535,z[2]+=A[2]+W[2],z[1]+=z[2]>>>16,z[2]&=65535,z[1]+=A[1]+W[1],z[0]+=z[1]>>>16,z[1]&=65535,z[0]+=A[0]+W[0],z[0]&=65535,[z[0]<<16|z[1],z[2]<<16|z[3]]}function x(A,W){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],W=[W[0]>>>16,65535&W[0],W[1]>>>16,65535&W[1]];var z=[0,0,0,0];return z[3]+=A[3]*W[3],z[2]+=z[3]>>>16,z[3]&=65535,z[2]+=A[2]*W[3],z[1]+=z[2]>>>16,z[2]&=65535,z[2]+=A[3]*W[2],z[1]+=z[2]>>>16,z[2]&=65535,z[1]+=A[1]*W[3],z[0]+=z[1]>>>16,z[1]&=65535,z[1]+=A[2]*W[2],z[0]+=z[1]>>>16,z[1]&=65535,z[1]+=A[3]*W[1],z[0]+=z[1]>>>16,z[1]&=65535,z[0]+=A[0]*W[3]+A[1]*W[2]+A[2]*W[1]+A[3]*W[0],z[0]&=65535,[z[0]<<16|z[1],z[2]<<16|z[3]]}function T(A,W){return(W%=64)==32?[A[1],A[0]]:W<32?[A[0]<<W|A[1]>>>32-W,A[1]<<W|A[0]>>>32-W]:(W-=32,[A[1]<<W|A[0]>>>32-W,A[0]<<W|A[1]>>>32-W])}function k(A,W){return(W%=64)==0?A:W<32?[A[0]<<W|A[1]>>>32-W,A[1]<<W]:[A[1]<<W-32,0]}function C(A,W){return[A[0]^W[0],A[1]^W[1]]}function M(A){return A=C(A,[0,A[0]>>>1]),A=C(A=x(A,[4283543511,3981806797]),[0,A[0]>>>1]),C(A=x(A,[3301882366,444984403]),[0,A[0]>>>1])}function V(A,W){W=W||0;var z,ot=(A=A||"").length%16,Ct=A.length-ot,Lt=[0,W],Mt=[0,W],Pt=[0,0],it=[0,0],Gt=[2277735313,289559509],ye=[1291169091,658871167];for(z=0;z<Ct;z+=16)Pt=[255&A.charCodeAt(z+4)|(255&A.charCodeAt(z+5))<<8|(255&A.charCodeAt(z+6))<<16|(255&A.charCodeAt(z+7))<<24,255&A.charCodeAt(z)|(255&A.charCodeAt(z+1))<<8|(255&A.charCodeAt(z+2))<<16|(255&A.charCodeAt(z+3))<<24],it=[255&A.charCodeAt(z+12)|(255&A.charCodeAt(z+13))<<8|(255&A.charCodeAt(z+14))<<16|(255&A.charCodeAt(z+15))<<24,255&A.charCodeAt(z+8)|(255&A.charCodeAt(z+9))<<8|(255&A.charCodeAt(z+10))<<16|(255&A.charCodeAt(z+11))<<24],Pt=T(Pt=x(Pt,Gt),31),Lt=S(Lt=T(Lt=C(Lt,Pt=x(Pt,ye)),27),Mt),Lt=S(x(Lt,[0,5]),[0,1390208809]),it=T(it=x(it,ye),33),Mt=S(Mt=T(Mt=C(Mt,it=x(it,Gt)),31),Lt),Mt=S(x(Mt,[0,5]),[0,944331445]);switch(Pt=[0,0],it=[0,0],ot){case 15:it=C(it,k([0,A.charCodeAt(z+14)],48));case 14:it=C(it,k([0,A.charCodeAt(z+13)],40));case 13:it=C(it,k([0,A.charCodeAt(z+12)],32));case 12:it=C(it,k([0,A.charCodeAt(z+11)],24));case 11:it=C(it,k([0,A.charCodeAt(z+10)],16));case 10:it=C(it,k([0,A.charCodeAt(z+9)],8));case 9:it=x(it=C(it,[0,A.charCodeAt(z+8)]),ye),Mt=C(Mt,it=x(it=T(it,33),Gt));case 8:Pt=C(Pt,k([0,A.charCodeAt(z+7)],56));case 7:Pt=C(Pt,k([0,A.charCodeAt(z+6)],48));case 6:Pt=C(Pt,k([0,A.charCodeAt(z+5)],40));case 5:Pt=C(Pt,k([0,A.charCodeAt(z+4)],32));case 4:Pt=C(Pt,k([0,A.charCodeAt(z+3)],24));case 3:Pt=C(Pt,k([0,A.charCodeAt(z+2)],16));case 2:Pt=C(Pt,k([0,A.charCodeAt(z+1)],8));case 1:Pt=x(Pt=C(Pt,[0,A.charCodeAt(z)]),Gt),Lt=C(Lt,Pt=x(Pt=T(Pt,31),ye))}return Lt=S(Lt=C(Lt,[0,A.length]),Mt=C(Mt,[0,A.length])),Mt=S(Mt,Lt),Lt=S(Lt=M(Lt),Mt=M(Mt)),Mt=S(Mt,Lt),("00000000"+(Lt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Lt[1]>>>0).toString(16)).slice(-8)+("00000000"+(Mt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Mt[1]>>>0).toString(16)).slice(-8)}function G(A){return parseInt(A)}function J(A){return parseFloat(A)}function $(A,W){return typeof A=="number"&&isNaN(A)?W:A}function nt(A){return A.reduce((function(W,z){return W+(z?1:0)}),0)}function pt(A,W){if(W===void 0&&(W=1),Math.abs(W)>=1)return Math.round(A/W)*W;var z=1/W;return Math.round(A*z)/z}function lt(A){return A&&typeof A=="object"&&"message"in A?A:{message:A}}function St(A){return typeof A!="function"}function At(A,W,z){var ot=Object.keys(A).filter((function(Lt){return!(function(Mt,Pt){for(var it=0,Gt=Mt.length;it<Gt;++it)if(Mt[it]===Pt)return!0;return!1})(z,Lt)})),Ct=f(ot,(function(Lt){return(function(Mt,Pt){var it=new Promise((function(Gt){var ye=Date.now();d(Mt.bind(null,Pt),(function(){for(var oe=[],ae=0;ae<arguments.length;ae++)oe[ae]=arguments[ae];var ve=Date.now()-ye;if(!oe[0])return Gt((function(){return{error:lt(oe[1]),duration:ve}}));var he=oe[1];if(St(he))return Gt((function(){return{value:he,duration:ve}}));Gt((function(){return new Promise((function(fe){var nn=Date.now();d(he,(function(){for(var be=[],Ae=0;Ae<arguments.length;Ae++)be[Ae]=arguments[Ae];var yn=ve+Date.now()-nn;if(!be[0])return fe({error:lt(be[1]),duration:yn});fe({value:be[1],duration:yn})}))}))}))}))}));return p(it),function(){return it.then((function(Gt){return Gt()}))}})(A[Lt],W)}));return p(Ct),function(){return(0,e.sH)(this,void 0,void 0,(function(){var Lt,Mt,Pt,it;return(0,e.YH)(this,(function(Gt){switch(Gt.label){case 0:return[4,Ct];case 1:return[4,f(Gt.sent(),(function(ye){var oe=ye();return p(oe),oe}))];case 2:return Lt=Gt.sent(),[4,Promise.all(Lt)];case 3:for(Mt=Gt.sent(),Pt={},it=0;it<ot.length;++it)Pt[ot[it]]=Mt[it];return[2,Pt]}}))}))}}function st(A,W){var z=function(ot){return St(ot)?W(ot):function(){var Ct=ot();return c(Ct)?Ct.then(W):W(Ct)}};return function(ot){var Ct=A(ot);return c(Ct)?Ct.then(z):z(Ct)}}function dt(){var A=window,W=navigator;return nt(["MSCSSMatrix"in A,"msSetImmediate"in A,"msIndexedDB"in A,"msMaxTouchPoints"in W,"msPointerEnabled"in W])>=4}function vt(){var A=window,W=navigator;return nt(["msWriteProfilerMark"in A,"MSStream"in A,"msLaunchUri"in W,"msSaveBlob"in W])>=3&&!dt()}function wt(){var A=window,W=navigator;return nt(["webkitPersistentStorage"in W,"webkitTemporaryStorage"in W,W.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in A,"BatteryManager"in A,"webkitMediaStream"in A,"webkitSpeechGrammar"in A])>=5}function D(){var A=window,W=navigator;return nt(["ApplePayError"in A,"CSSPrimitiveValue"in A,"Counter"in A,W.vendor.indexOf("Apple")===0,"getStorageUpdates"in W,"WebKitMediaKeys"in A])>=4}function h(){var A=window;return nt(["safari"in A,!("DeviceMotionEvent"in A),!("ongestureend"in A),!("standalone"in navigator)])>=3}function I(){var A,W,z=window;return nt(["buildID"in navigator,"MozAppearance"in((W=(A=document.documentElement)===null||A===void 0?void 0:A.style)!==null&&W!==void 0?W:{}),"onmozfullscreenchange"in z,"mozInnerScreenX"in z,"CSSMozDocumentRule"in z,"CanvasCaptureMediaStream"in z])>=4}function U(){var A=document;return A.fullscreenElement||A.msFullscreenElement||A.mozFullScreenElement||A.webkitFullscreenElement||null}function j(){var A=wt(),W=I();if(!A&&!W)return!1;var z=window;return nt(["onorientationchange"in z,"orientation"in z,A&&!("SharedWorker"in z),W&&/android/i.test(navigator.appVersion)])>=2}function X(A){var W=new Error(A);return W.name=A,W}function et(A,W,z){var ot,Ct,Lt;return z===void 0&&(z=50),(0,e.sH)(this,void 0,void 0,(function(){var Mt,Pt;return(0,e.YH)(this,(function(it){switch(it.label){case 0:Mt=document,it.label=1;case 1:return Mt.body?[3,3]:[4,i(z)];case 2:return it.sent(),[3,1];case 3:Pt=Mt.createElement("iframe"),it.label=4;case 4:return it.trys.push([4,,10,11]),[4,new Promise((function(Gt,ye){var oe=!1,ae=function(){oe=!0,Gt()};Pt.onload=ae,Pt.onerror=function(fe){oe=!0,ye(fe)};var ve=Pt.style;ve.setProperty("display","block","important"),ve.position="absolute",ve.top="0",ve.left="0",ve.visibility="hidden",W&&"srcdoc"in Pt?Pt.srcdoc=W:Pt.src="about:blank",Mt.body.appendChild(Pt);var he=function(){var fe,nn;oe||(((nn=(fe=Pt.contentWindow)===null||fe===void 0?void 0:fe.document)===null||nn===void 0?void 0:nn.readyState)==="complete"?ae():setTimeout(he,10))};he()}))];case 5:it.sent(),it.label=6;case 6:return!((Ct=(ot=Pt.contentWindow)===null||ot===void 0?void 0:ot.document)===null||Ct===void 0)&&Ct.body?[3,8]:[4,i(z)];case 7:return it.sent(),[3,6];case 8:return[4,A(Pt,Pt.contentWindow)];case 9:return[2,it.sent()];case 10:return(Lt=Pt.parentNode)===null||Lt===void 0||Lt.removeChild(Pt),[7];case 11:return[2]}}))}))}function ut(A){for(var W=(function(Gt){for(var ye,oe,ae="Unexpected syntax '".concat(Gt,"'"),ve=/^\s*([a-z-]*)(.*)$/i.exec(Gt),he=ve[1]||void 0,fe={},nn=/([.:#][\w-]+|\[.+?\])/gi,be=function(Ke,Tr){fe[Ke]=fe[Ke]||[],fe[Ke].push(Tr)};;){var Ae=nn.exec(ve[2]);if(!Ae)break;var yn=Ae[0];switch(yn[0]){case".":be("class",yn.slice(1));break;case"#":be("id",yn.slice(1));break;case"[":var Ve=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(yn);if(!Ve)throw new Error(ae);be(Ve[1],(oe=(ye=Ve[4])!==null&&ye!==void 0?ye:Ve[5])!==null&&oe!==void 0?oe:"");break;default:throw new Error(ae)}}return[he,fe]})(A),z=W[0],ot=W[1],Ct=document.createElement(z??"div"),Lt=0,Mt=Object.keys(ot);Lt<Mt.length;Lt++){var Pt=Mt[Lt],it=ot[Pt].join(" ");Pt==="style"?Y(Ct.style,it):Ct.setAttribute(Pt,it)}return Ct}function Y(A,W){for(var z=0,ot=W.split(";");z<ot.length;z++){var Ct=ot[z],Lt=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Ct);if(Lt){var Mt=Lt[1],Pt=Lt[2],it=Lt[4];A.setProperty(Mt,Pt,it||"")}}}var g=["monospace","sans-serif","serif"],E=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function K(A){return A.toDataURL()}var Z,ht,It=2500;function Ft(){var A=this;return(function(){if(ht===void 0){var W=function(){var z=Kt();me(z)?ht=setTimeout(W,It):(Z=z,ht=void 0)};W()}})(),function(){return(0,e.sH)(A,void 0,void 0,(function(){var W;return(0,e.YH)(this,(function(z){switch(z.label){case 0:return me(W=Kt())?Z?[2,(0,e.fX)([],Z,!0)]:U()?[4,(ot=document,(ot.exitFullscreen||ot.msExitFullscreen||ot.mozCancelFullScreen||ot.webkitExitFullscreen).call(ot))]:[3,2]:[3,2];case 1:z.sent(),W=Kt(),z.label=2;case 2:return me(W)||(Z=W),[2,W]}var ot}))}))}}function Kt(){var A=screen;return[$(J(A.availTop),null),$(J(A.width)-J(A.availWidth)-$(J(A.availLeft),0),null),$(J(A.height)-J(A.availHeight)-$(J(A.availTop),0),null),$(J(A.availLeft),null)]}function me(A){for(var W=0;W<4;++W)if(A[W])return!1;return!0}function Ee(A){var W;return(0,e.sH)(this,void 0,void 0,(function(){var z,ot,Ct,Lt,Mt,Pt,it;return(0,e.YH)(this,(function(Gt){switch(Gt.label){case 0:for(z=document,ot=z.createElement("div"),Ct=new Array(A.length),Lt={},jt(ot),it=0;it<A.length;++it)(Mt=ut(A[it])).tagName==="DIALOG"&&Mt.show(),jt(Pt=z.createElement("div")),Pt.appendChild(Mt),ot.appendChild(Pt),Ct[it]=Mt;Gt.label=1;case 1:return z.body?[3,3]:[4,i(50)];case 2:return Gt.sent(),[3,1];case 3:z.body.appendChild(ot);try{for(it=0;it<A.length;++it)Ct[it].offsetParent||(Lt[A[it]]=!0)}finally{(W=ot.parentNode)===null||W===void 0||W.removeChild(ot)}return[2,Lt]}}))}))}function jt(A){A.style.setProperty("display","block","important")}function Ne(A){return matchMedia("(inverted-colors: ".concat(A,")")).matches}function Oe(A){return matchMedia("(forced-colors: ".concat(A,")")).matches}function Ie(A){return matchMedia("(prefers-contrast: ".concat(A,")")).matches}function en(A){return matchMedia("(prefers-reduced-motion: ".concat(A,")")).matches}function Be(A){return matchMedia("(dynamic-range: ".concat(A,")")).matches}var y=Math,P=function(){return 0},H={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},ft={fonts:function(){return et((function(A,W){var z=W.document,ot=z.body;ot.style.fontSize="48px";var Ct=z.createElement("div"),Lt={},Mt={},Pt=function(oe){var ae=z.createElement("span"),ve=ae.style;return ve.position="absolute",ve.top="0",ve.left="0",ve.fontFamily=oe,ae.textContent="mmMwWLliI0O&1",Ct.appendChild(ae),ae},it=g.map(Pt),Gt=(function(){for(var oe={},ae=function(fe){oe[fe]=g.map((function(nn){return(function(be,Ae){return Pt("'".concat(be,"',").concat(Ae))})(fe,nn)}))},ve=0,he=E;ve<he.length;ve++)ae(he[ve]);return oe})();ot.appendChild(Ct);for(var ye=0;ye<g.length;ye++)Lt[g[ye]]=it[ye].offsetWidth,Mt[g[ye]]=it[ye].offsetHeight;return E.filter((function(oe){return ae=Gt[oe],g.some((function(ve,he){return ae[he].offsetWidth!==Lt[ve]||ae[he].offsetHeight!==Mt[ve]}));var ae}))}))},domBlockers:function(A){var W=(A===void 0?{}:A).debug;return(0,e.sH)(this,void 0,void 0,(function(){var z,ot,Ct,Lt,Mt;return(0,e.YH)(this,(function(Pt){switch(Pt.label){case 0:return D()||j()?(it=atob,z={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',it("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",it("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",it("LnNwb25zb3JpdA=="),".ylamainos",it("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",it("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",it("LmhlYWRlci1ibG9ja2VkLWFk"),it("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",it("I2FkXzMwMFgyNTA="),it("I2Jhbm5lcmZsb2F0MjI="),it("I2NhbXBhaWduLWJhbm5lcg=="),it("I0FkLUNvbnRlbnQ=")],adGuardChinese:[it("LlppX2FkX2FfSA=="),it("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",it("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),it("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",it("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",it("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",it("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),it("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),it("LmFkZ29vZ2xl"),it("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[it("YW1wLWF1dG8tYWRz"),it("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",it("I2FkX2ludmlld19hcmVh")],adGuardRussian:[it("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),it("LnJlY2xhbWE="),'div[id^="smi2adblock"]',it("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[it("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),it("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",it("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),it("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),it("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",it("I3Jla2xhbWk="),it("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),it("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),it("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[it("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",it("LndpZGdldF9wb19hZHNfd2lkZ2V0"),it("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",it("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[it("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),it("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",it("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",it("I3Jla2xhbW5pLWJveA=="),it("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",it("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[it("I2FkdmVydGVudGll"),it("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",it("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",it("LnNwb25zb3JsaW5rZ3J1ZW4="),it("I3dlcmJ1bmdza3k="),it("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),it("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[it("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",it("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[it("LnJla2xhbW9zX3RhcnBhcw=="),it("LnJla2xhbW9zX251b3JvZG9z"),it("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),it("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),it("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[it("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[it("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),it("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",it("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[it("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),it("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),it("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",it("LmFkX19tYWlu"),it("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[it("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[it("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),it("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[it("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),it("I2xpdmVyZUFkV3JhcHBlcg=="),it("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),it("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[it("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",it("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),it("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),it("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[it("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),it("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),it("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",it("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),it("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),it("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),it("ZGl2I3NrYXBpZWNfYWQ=")],ro:[it("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),it("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),it("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[it("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),it("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),it("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",it("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),it("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",it("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},ot=Object.keys(z),[4,Ee((Mt=[]).concat.apply(Mt,ot.map((function(Gt){return z[Gt]}))))]):[2,void 0];case 1:return Ct=Pt.sent(),W&&(function(Gt,ye){for(var oe="DOM blockers debug:\n```",ae=0,ve=Object.keys(Gt);ae<ve.length;ae++){var he=ve[ae];oe+=`
|
|
17
|
-
`.concat(he,":");for(var fe=0,nn=Gt[he];fe<nn.length;fe++){var be=nn[fe];oe+=`
|
|
18
|
-
`.concat(ye[be]?"🚫":"➡️"," ").concat(be)}}console.log("".concat(oe,"\n```"))})(z,Ct),(Lt=ot.filter((function(Gt){var ye=z[Gt];return nt(ye.map((function(oe){return Ct[oe]})))>.6*ye.length}))).sort(),[2,Lt]}var it}))}))},fontPreferences:function(){return A===void 0&&(A=4e3),et((function(W,z){var ot=z.document,Ct=ot.body,Lt=Ct.style;Lt.width="".concat(A,"px"),Lt.webkitTextSizeAdjust=Lt.textSizeAdjust="none",wt()?Ct.style.zoom="".concat(1/z.devicePixelRatio):D()&&(Ct.style.zoom="reset");var Mt=ot.createElement("div");return Mt.textContent=(0,e.fX)([],Array(A/20|0),!0).map((function(){return"word"})).join(" "),Ct.appendChild(Mt),(function(Pt,it){for(var Gt={},ye={},oe=0,ae=Object.keys(H);oe<ae.length;oe++){var ve=ae[oe],he=H[ve],fe=he[0],nn=fe===void 0?{}:fe,be=he[1],Ae=be===void 0?"mmMwWLliI0fiflO&1":be,yn=Pt.createElement("span");yn.textContent=Ae,yn.style.whiteSpace="nowrap";for(var Ve=0,Ke=Object.keys(nn);Ve<Ke.length;Ve++){var Tr=Ke[Ve],Xe=nn[Tr];Xe!==void 0&&(yn.style[Tr]=Xe)}Gt[ve]=yn,it.appendChild(Pt.createElement("br")),it.appendChild(yn)}for(var $e=0,li=Object.keys(H);$e<li.length;$e++)ye[ve=li[$e]]=Gt[ve].getBoundingClientRect().width;return ye})(ot,Ct)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var A},audio:function(){var A=window,W=A.OfflineAudioContext||A.webkitOfflineAudioContext;if(!W)return-2;if(D()&&!h()&&!(function(){var Gt=window;return nt(["DOMRectList"in Gt,"RTCPeerConnectionIceEvent"in Gt,"SVGGeometryElement"in Gt,"ontransitioncancel"in Gt])>=3})())return-1;var z=new W(1,5e3,44100),ot=z.createOscillator();ot.type="triangle",ot.frequency.value=1e4;var Ct=z.createDynamicsCompressor();Ct.threshold.value=-50,Ct.knee.value=40,Ct.ratio.value=12,Ct.attack.value=0,Ct.release.value=.25,ot.connect(Ct),Ct.connect(z.destination),ot.start(0);var Lt=(function(Gt){var ye=function(){};return[new Promise((function(oe,ae){var ve=!1,he=0,fe=0;Gt.oncomplete=function(Ae){return oe(Ae.renderedBuffer)};var nn=function(){setTimeout((function(){return ae(X("timeout"))}),Math.min(500,fe+5e3-Date.now()))},be=function(){try{var Ae=Gt.startRendering();switch(c(Ae)&&p(Ae),Gt.state){case"running":fe=Date.now(),ve&&nn();break;case"suspended":document.hidden||he++,ve&&he>=3?ae(X("suspended")):setTimeout(be,500)}}catch(yn){ae(yn)}};be(),ye=function(){ve||(ve=!0,fe>0&&nn())}})),ye]})(z),Mt=Lt[0],Pt=Lt[1],it=Mt.then((function(Gt){return(function(ye){for(var oe=0,ae=0;ae<ye.length;++ae)oe+=Math.abs(ye[ae]);return oe})(Gt.getChannelData(0).subarray(4500))}),(function(Gt){if(Gt.name==="timeout"||Gt.name==="suspended")return-3;throw Gt}));return p(it),function(){return Pt(),it}},screenFrame:function(){var A=this,W=Ft();return function(){return(0,e.sH)(A,void 0,void 0,(function(){var z,ot;return(0,e.YH)(this,(function(Ct){switch(Ct.label){case 0:return[4,W()];case 1:return z=Ct.sent(),[2,[(ot=function(Lt){return Lt===null?null:pt(Lt,10)})(z[0]),ot(z[1]),ot(z[2]),ot(z[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var A,W=navigator,z=[],ot=W.language||W.userLanguage||W.browserLanguage||W.systemLanguage;if(ot!==void 0&&z.push([ot]),Array.isArray(W.languages))wt()&&nt([!("MediaSettingsRange"in(A=window)),"RTCEncodedAudioFrame"in A,""+A.Intl=="[object Intl]",""+A.Reflect=="[object Reflect]"])>=3||z.push(W.languages);else if(typeof W.languages=="string"){var Ct=W.languages;Ct&&z.push(Ct.split(","))}return z},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return $(J(navigator.deviceMemory),void 0)},screenResolution:function(){var A=screen,W=function(ot){return $(G(ot),null)},z=[W(A.width),W(A.height)];return z.sort().reverse(),z},hardwareConcurrency:function(){return $(G(navigator.hardwareConcurrency),void 0)},timezone:function(){var A,W=(A=window.Intl)===null||A===void 0?void 0:A.DateTimeFormat;if(W){var z=new W().resolvedOptions().timeZone;if(z)return z}var ot,Ct=(ot=new Date().getFullYear(),-Math.max(J(new Date(ot,0,1).getTimezoneOffset()),J(new Date(ot,6,1).getTimezoneOffset())));return"UTC".concat(Ct>=0?"+":"").concat(Math.abs(Ct))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!dt()&&!vt())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var A=navigator.platform;return A==="MacIntel"&&D()&&!h()?(function(){if(navigator.platform==="iPad")return!0;var W=screen,z=W.width/W.height;return nt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,z>.65&&z<1.53])>=2})()?"iPad":"iPhone":A},plugins:function(){var A=navigator.plugins;if(A){for(var W=[],z=0;z<A.length;++z){var ot=A[z];if(ot){for(var Ct=[],Lt=0;Lt<ot.length;++Lt){var Mt=ot[Lt];Ct.push({type:Mt.type,suffixes:Mt.suffixes})}W.push({name:ot.name,description:ot.description,mimeTypes:Ct})}}return W}},canvas:function(){var A,W,z=!1,ot=(function(){var Pt=document.createElement("canvas");return Pt.width=1,Pt.height=1,[Pt,Pt.getContext("2d")]})(),Ct=ot[0],Lt=ot[1];if((function(Pt,it){return!(!it||!Pt.toDataURL)})(Ct,Lt)){z=(function(Pt){return Pt.rect(0,0,10,10),Pt.rect(2,2,6,6),!Pt.isPointInPath(5,5,"evenodd")})(Lt),(function(Pt,it){Pt.width=240,Pt.height=60,it.textBaseline="alphabetic",it.fillStyle="#f60",it.fillRect(100,1,62,20),it.fillStyle="#069",it.font='11pt "Times New Roman"';var Gt="Cwm fjordbank gly ".concat("😃");it.fillText(Gt,2,15),it.fillStyle="rgba(102, 204, 0, 0.2)",it.font="18pt Arial",it.fillText(Gt,4,45)})(Ct,Lt);var Mt=K(Ct);Mt!==K(Ct)?A=W="unstable":(W=Mt,(function(Pt,it){Pt.width=122,Pt.height=110,it.globalCompositeOperation="multiply";for(var Gt=0,ye=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Gt<ye.length;Gt++){var oe=ye[Gt],ae=oe[0],ve=oe[1],he=oe[2];it.fillStyle=ae,it.beginPath(),it.arc(ve,he,40,0,2*Math.PI,!0),it.closePath(),it.fill()}it.fillStyle="#f9c",it.arc(60,60,60,0,2*Math.PI,!0),it.arc(60,60,20,0,2*Math.PI,!0),it.fill("evenodd")})(Ct,Lt),A=K(Ct))}else A=W="";return{winding:z,geometry:A,text:W}},touchSupport:function(){var A,W=navigator,z=0;W.maxTouchPoints!==void 0?z=G(W.maxTouchPoints):W.msMaxTouchPoints!==void 0&&(z=W.msMaxTouchPoints);try{document.createEvent("TouchEvent"),A=!0}catch{A=!1}return{maxTouchPoints:z,touchEvent:A,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var A=[],W=0,z=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];W<z.length;W++){var ot=z[W],Ct=window[ot];Ct&&typeof Ct=="object"&&A.push(ot)}return A.sort()},cookiesEnabled:function(){var A=document;try{A.cookie="cookietest=1; SameSite=Strict;";var W=A.cookie.indexOf("cookietest=")!==-1;return A.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",W}catch{return!1}},colorGamut:function(){for(var A=0,W=["rec2020","p3","srgb"];A<W.length;A++){var z=W[A];if(matchMedia("(color-gamut: ".concat(z,")")).matches)return z}},invertedColors:function(){return!!Ne("inverted")||!Ne("none")&&void 0},forcedColors:function(){return!!Oe("active")||!Oe("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var A=0;A<=100;++A)if(matchMedia("(max-monochrome: ".concat(A,")")).matches)return A;throw new Error("Too high value")}},contrast:function(){return Ie("no-preference")?0:Ie("high")||Ie("more")?1:Ie("low")||Ie("less")?-1:Ie("forced")?10:void 0},reducedMotion:function(){return!!en("reduce")||!en("no-preference")&&void 0},hdr:function(){return!!Be("high")||!Be("standard")&&void 0},math:function(){var A,W=y.acos||P,z=y.acosh||P,ot=y.asin||P,Ct=y.asinh||P,Lt=y.atanh||P,Mt=y.atan||P,Pt=y.sin||P,it=y.sinh||P,Gt=y.cos||P,ye=y.cosh||P,oe=y.tan||P,ae=y.tanh||P,ve=y.exp||P,he=y.expm1||P,fe=y.log1p||P;return{acos:W(.12312423423423424),acosh:z(1e308),acoshPf:(A=1e154,y.log(A+y.sqrt(A*A-1))),asin:ot(.12312423423423424),asinh:Ct(1),asinhPf:y.log(1+y.sqrt(2)),atanh:Lt(.5),atanhPf:y.log(3)/2,atan:Mt(.5),sin:Pt(-1e300),sinh:it(1),sinhPf:y.exp(1)-1/y.exp(1)/2,cos:Gt(10.000000000123),cosh:ye(1),coshPf:(y.exp(1)+1/y.exp(1))/2,tan:oe(-1e300),tanh:ae(1),tanhPf:(y.exp(2)-1)/(y.exp(2)+1),exp:ve(1),expm1:he(1),expm1Pf:y.exp(1)-1,log1p:fe(10),log1pPf:y.log(11),powPI:y.pow(y.PI,-100)}},videoCard:function(){var A,W=document.createElement("canvas"),z=(A=W.getContext("webgl"))!==null&&A!==void 0?A:W.getContext("experimental-webgl");if(z&&"getExtension"in z){var ot=z.getExtension("WEBGL_debug_renderer_info");if(ot)return{vendor:(z.getParameter(ot.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(z.getParameter(ot.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var A=new Float32Array(1),W=new Uint8Array(A.buffer);return A[0]=1/0,A[0]=A[0]-A[0],W[3]}},yt="$ if upgrade to Pro: https://fpjs.dev/pro";function bt(A){return JSON.stringify(A,(function(W,z){return z instanceof Error?(ot=z,(0,e.Cl)({name:ot.name,message:ot.message,stack:(Ct=ot.stack)===null||Ct===void 0?void 0:Ct.split(`
|
|
19
|
-
`)},ot)):z;var ot,Ct}),2)}function xt(A){return V((function(W){for(var z="",ot=0,Ct=Object.keys(W).sort();ot<Ct.length;ot++){var Lt=Ct[ot],Mt=W[Lt],Pt=Mt.error?"error":JSON.stringify(Mt.value);z+="".concat(z?"|":"").concat(Lt.replace(/([:|\\])/g,"\\$1"),":").concat(Pt)}return z})(A))}function zt(A){return A===void 0&&(A=50),(function(W,z){z===void 0&&(z=1/0);var ot=window.requestIdleCallback;return ot?new Promise((function(Ct){return ot.call(window,(function(){return Ct()}),{timeout:z})})):i(Math.min(W,z))})(A,2*A)}function ie(A,W){var z=Date.now();return{get:function(ot){return(0,e.sH)(this,void 0,void 0,(function(){var Ct,Lt,Mt;return(0,e.YH)(this,(function(Pt){switch(Pt.label){case 0:return Ct=Date.now(),[4,A()];case 1:return Lt=Pt.sent(),Mt=(function(it){var Gt,ye=(function(oe){var ae=(function(he){if(j())return .4;if(D())return h()?.5:.3;var fe=he.platform.value||"";return/^Win/.test(fe)?.6:/^Mac/.test(fe)?.5:.7})(oe),ve=(function(he){return pt(.99+.01*he,1e-4)})(ae);return{score:ae,comment:yt.replace(/\$/g,"".concat(ve))}})(it);return{get visitorId(){return Gt===void 0&&(Gt=xt(this.components)),Gt},set visitorId(oe){Gt=oe},confidence:ye,components:it,version:o}})(Lt),(W||ot?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Mt.version,`
|
|
5
|
+
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[H1]:"No signature verification implementation could be found.",[G1]:"No key generation implementation could be found.",[j1]:"No signing implementation could be found.",[Y1]:"No key export implementation could be found.",[Jd]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[$2]:"Transaction processing left an account with an outstanding borrowed reference",[U2]:"Account in use",[D2]:"Account loaded twice",[P2]:"Attempt to debit an account but found no record of a prior credit.",[ip]:"Transaction loads an address table account that doesn't exist",[G2]:"This transaction has already been processed",[j2]:"Blockhash not found",[Y2]:"Loader call chain is too deep",[q2]:"Transactions are currently disabled due to cluster maintenance",[lp]:"Transaction contains a duplicate instruction ($index) that is not allowed",[V2]:"Insufficient funds for fee",[dp]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[H2]:"This account may not be used to pay transaction fees",[z2]:"Transaction contains an invalid account reference",[sp]:"Transaction loads an address table account with invalid data",[ap]:"Transaction address table lookup uses an invalid index",[op]:"Transaction loads an address table account with an invalid owner",[pp]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[K2]:"This program may not be used for executing instructions",[up]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[tp]:"Transaction loads a writable account that cannot be written",[hp]:"Transaction exceeded max loaded accounts data size cap",[W2]:"Transaction requires a fee but has no signature present",[F2]:"Attempt to load a program that does not exist",[gp]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[vp]:"ResanitizationNeeded",[X2]:"Transaction failed to sanitize accounts offsets correctly",[Z2]:"Transaction did not pass signature verification",[rp]:"Transaction locked too many accounts",[mp]:"Sum of account balances before and after transaction do not match",[k2]:"The transaction failed with the error `$errorName`",[Q2]:"Transaction version is unsupported",[np]:"Transaction would exceed account data limit within the block",[fp]:"Transaction would exceed total account data limit",[ep]:"Transaction would exceed max account limit within the block",[J2]:"Transaction would exceed max Block Cost Limit",[cp]:"Transaction would exceed max Vote Cost Limit",[N2]:"Attempted to sign a transaction with an address that is not a signer for it",[A2]:"Transaction is missing an address at index: $index.",[x2]:"Transaction has no expected signers therefore it cannot be encoded",[M2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[g2]:"Transaction does not have a blockhash lifetime",[m2]:"Transaction is not a durable nonce transaction",[w2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[E2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[_2]:"No fee payer set in CompiledTransaction",[b2]:"Could not find program address at index $index",[C2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[B2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[S2]:"Transaction is missing a fee payer.",[I2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[T2]:"Transaction first instruction is not advance nonce account instruction.",[O2]:"Transaction with no instructions cannot be durable nonce transaction.",[p2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[v2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[L2]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[R2]:"Transaction is missing signatures for addresses: $addresses.",[y2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},sr="i",Xn="t";function Jp(t,n={}){const r=$p[t];if(r.length===0)return"";let e;function u(d){if(e[Xn]===2){const E=r.slice(e[sr]+1,d);a.push(E in n?`${n[E]}`:`$${E}`)}else e[Xn]===1&&a.push(r.slice(e[sr],d))}const a=[];return r.split("").forEach((d,E)=>{if(E===0){e={[sr]:0,[Xn]:r[0]==="\\"?0:r[0]==="$"?2:1};return}let l;switch(e[Xn]){case 0:l={[sr]:E,[Xn]:1};break;case 1:d==="\\"?l={[sr]:E,[Xn]:0}:d==="$"&&(l={[sr]:E,[Xn]:2});break;case 2:d==="\\"?l={[sr]:E,[Xn]:0}:d==="$"?l={[sr]:E,[Xn]:2}:d.match(/\w/)||(l={[sr]:E,[Xn]:1});break}l&&(e!==l&&u(E),e=l)}),u(),a.join("")}function Qp(t,n={}){if(process.env.NODE_ENV!=="production")return Jp(t,n);{let r=`Solana error #${t}; Decode this error by running \`npx @solana/errors decode -- ${t}`;return Object.keys(n).length&&(r+=` '${qp(n)}'`),`${r}\``}}var ri=class extends Error{cause=this.cause;context;constructor(...[t,n]){let r,e;if(n){const{cause:a,...d}=n;a&&(e={cause:a}),Object.keys(d).length>0&&(r=d)}const u=Qp(t,r);super(u,e),this.context={__code:t,...r},this.name="SolanaError"}};function tv(t,n){return"fixedSize"in n?n.fixedSize:n.getSizeFromValue(t)}function ev(t){return Object.freeze({...t,encode:n=>{const r=new Uint8Array(tv(n,t));return t.write(n,r,0),r}})}function nv(t){return Object.freeze({...t,decode:(n,r=0)=>t.read(n,r)[0]})}function ii(t){return"fixedSize"in t&&typeof t.fixedSize=="number"}function rv(t,n){if(ii(t)!==ii(n))throw new ri(Qu);if(ii(t)&&ii(n)&&t.fixedSize!==n.fixedSize)throw new ri(tc,{decoderFixedSize:n.fixedSize,encoderFixedSize:t.fixedSize});if(!ii(t)&&!ii(n)&&t.maxSize!==n.maxSize)throw new ri(ec,{decoderMaxSize:n.maxSize,encoderMaxSize:t.maxSize});return{...n,...t,decode:n.decode,encode:t.encode,read:n.read,write:t.write}}function iv(t,n,r=0){if(n.length-r<=0)throw new ri($u,{codecDescription:t})}function ov(t,n,r,e=0){const u=r.length-e;if(u<n)throw new ri(Ju,{bytesLength:u,codecDescription:t,expected:n})}function sv(t,n,r,e){if(e<n||e>r)throw new ri(nc,{codecDescription:t,max:r,min:n,value:e})}function ic(t){return t?.endian!==1}function av(t){return ev({fixedSize:t.size,write(n,r,e){t.range&&sv(t.name,t.range[0],t.range[1],n);const u=new ArrayBuffer(t.size);return t.set(new DataView(u),n,ic(t.config)),r.set(new Uint8Array(u),e),e+t.size}})}function uv(t){return nv({fixedSize:t.size,read(n,r=0){iv(t.name,n,r),ov(t.name,t.size,n,r);const e=new DataView(cv(n,r,t.size));return[t.get(e,ic(t.config)),r+t.size]}})}function cv(t,n,r){const e=t.byteOffset+(n??0),u=r??t.byteLength;return t.buffer.slice(e,e+u)}var fv=(t={})=>av({config:t,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(n,r,e)=>n.setBigUint64(0,BigInt(r),e),size:8}),lv=(t={})=>uv({config:t,get:(n,r)=>n.getBigUint64(0,r),name:"u64",size:8}),dv=(t={})=>rv(fv(t),lv(t));class hv extends TypeError{constructor(n,r){let e;const{message:u,explanation:a,...d}=n,{path:E}=n,l=E.length===0?u:`At path: ${E.join(".")} -- ${u}`;super(a??l),a!=null&&(this.cause=l),Object.assign(this,d),this.name=this.constructor.name,this.failures=()=>e??(e=[n,...r()])}}function pv(t){return Ti(t)&&typeof t[Symbol.iterator]=="function"}function Ti(t){return typeof t=="object"&&t!=null}function To(t){return Ti(t)&&!Array.isArray(t)}function Vn(t){return typeof t=="symbol"?t.toString():typeof t=="string"?JSON.stringify(t):`${t}`}function vv(t){const{done:n,value:r}=t.next();return n?void 0:r}function gv(t,n,r,e){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});const{path:u,branch:a}=n,{type:d}=r,{refinement:E,message:l=`Expected a value of type \`${d}\`${E?` with refinement \`${E}\``:""}, but received: \`${Vn(e)}\``}=t;return{value:e,type:d,refinement:E,key:u[u.length-1],path:u,branch:a,...t,message:l}}function*oc(t,n,r,e){pv(t)||(t=[t]);for(const u of t){const a=gv(u,n,r,e);a&&(yield a)}}function*Us(t,n,r={}){const{path:e=[],branch:u=[t],coerce:a=!1,mask:d=!1}=r,E={path:e,branch:u,mask:d};a&&(t=n.coercer(t,E));let l="valid";for(const b of n.validator(t,E))b.explanation=r.message,l="not_valid",yield[b,void 0];for(let[b,T,L]of n.entries(t,E)){const N=Us(T,L,{path:b===void 0?e:[...e,b],branch:b===void 0?u:[...u,T],coerce:a,mask:d,message:r.message});for(const x of N)x[0]?(l=x[0].refinement!=null?"not_refined":"not_valid",yield[x[0],void 0]):a&&(T=x[1],b===void 0?t=T:t instanceof Map?t.set(b,T):t instanceof Set?t.add(T):Ti(t)&&(T!==void 0||b in t)&&(t[b]=T))}if(l!=="not_valid")for(const b of n.refiner(t,E))b.explanation=r.message,l="not_refined",yield[b,void 0];l==="valid"&&(yield[void 0,t])}let qn=class{constructor(n){const{type:r,schema:e,validator:u,refiner:a,coercer:d=l=>l,entries:E=function*(){}}=n;this.type=r,this.schema=e,this.entries=E,this.coercer=d,u?this.validator=(l,b)=>{const T=u(l,b);return oc(T,b,this,l)}:this.validator=()=>[],a?this.refiner=(l,b)=>{const T=a(l,b);return oc(T,b,this,l)}:this.refiner=()=>[]}assert(n,r){return mv(n,this,r)}create(n,r){return Ni(n,this,r)}is(n){return sc(n,this)}mask(n,r){return yv(n,this,r)}validate(n,r={}){return xi(n,this,r)}};function mv(t,n,r){const e=xi(t,n,{message:r});if(e[0])throw e[0]}function Ni(t,n,r){const e=xi(t,n,{coerce:!0,message:r});if(e[0])throw e[0];return e[1]}function yv(t,n,r){const e=xi(t,n,{coerce:!0,mask:!0,message:r});if(e[0])throw e[0];return e[1]}function sc(t,n){return!xi(t,n)[0]}function xi(t,n,r={}){const e=Us(t,n,r),u=vv(e);return u[0]?[new hv(u[0],function*(){for(const d of e)d[0]&&(yield d[0])}),void 0]:[void 0,u[1]]}function Fr(t,n){return new qn({type:t,schema:null,validator:n})}function wv(){return Fr("any",()=>!0)}function re(t){return new qn({type:"array",schema:t,*entries(n){if(t&&Array.isArray(n))for(const[r,e]of n.entries())yield[r,e,t]},coercer(n){return Array.isArray(n)?n.slice():n},validator(n){return Array.isArray(n)||`Expected an array value, but received: ${Vn(n)}`}})}function $n(){return Fr("boolean",t=>typeof t=="boolean")}function Ds(t){return Fr("instance",n=>n instanceof t||`Expected a \`${t.name}\` instance, but received: ${Vn(n)}`)}function je(t){const n=Vn(t),r=typeof t;return new qn({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?t:null,validator(e){return e===t||`Expected the literal \`${n}\`, but received: ${Vn(e)}`}})}function Ev(){return Fr("never",()=>!1)}function ie(t){return new qn({...t,validator:(n,r)=>n===null||t.validator(n,r),refiner:(n,r)=>n===null||t.refiner(n,r)})}function It(){return Fr("number",t=>typeof t=="number"&&!isNaN(t)||`Expected a number, but received: ${Vn(t)}`)}function ce(t){return new qn({...t,validator:(n,r)=>n===void 0||t.validator(n,r),refiner:(n,r)=>n===void 0||t.refiner(n,r)})}function ac(t,n){return new qn({type:"record",schema:null,*entries(r){if(Ti(r))for(const e in r){const u=r[e];yield[e,e,t],yield[e,u,n]}},validator(r){return To(r)||`Expected an object, but received: ${Vn(r)}`},coercer(r){return To(r)?{...r}:r}})}function qt(){return Fr("string",t=>typeof t=="string"||`Expected a string, but received: ${Vn(t)}`)}function Ps(t){const n=Ev();return new qn({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const e=Math.max(t.length,r.length);for(let u=0;u<e;u++)yield[u,r[u],t[u]||n]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${Vn(r)}`},coercer(r){return Array.isArray(r)?r.slice():r}})}function Pt(t){const n=Object.keys(t);return new qn({type:"type",schema:t,*entries(r){if(Ti(r))for(const e of n)yield[e,r[e],t[e]]},validator(r){return To(r)||`Expected an object, but received: ${Vn(r)}`},coercer(r){return To(r)?{...r}:r}})}function Sn(t){const n=t.map(r=>r.type).join(" | ");return new qn({type:"union",schema:null,coercer(r,e){for(const u of t){const[a,d]=u.validate(r,{coerce:!0,mask:e.mask});if(!a)return d}return r},validator(r,e){const u=[];for(const a of t){const[...d]=Us(r,a,e),[E]=d;if(E[0])for(const[l]of d)l&&u.push(l);else return[]}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${Vn(r)}`,...u]}})}function oi(){return Fr("unknown",()=>!0)}function Li(t,n,r){return new qn({...t,coercer:(e,u)=>sc(e,n)?t.coercer(r(e,u),u):t.coercer(e,u)})}var No,bv=new Uint8Array(16);function uc(){if(!No&&(No=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!No))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return No(bv)}const _v=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function xo(t){return typeof t=="string"&&_v.test(t)}for(var gn=[],Fs=0;Fs<256;++Fs)gn.push((Fs+256).toString(16).substr(1));function Lo(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(gn[t[n+0]]+gn[t[n+1]]+gn[t[n+2]]+gn[t[n+3]]+"-"+gn[t[n+4]]+gn[t[n+5]]+"-"+gn[t[n+6]]+gn[t[n+7]]+"-"+gn[t[n+8]]+gn[t[n+9]]+"-"+gn[t[n+10]]+gn[t[n+11]]+gn[t[n+12]]+gn[t[n+13]]+gn[t[n+14]]+gn[t[n+15]]).toLowerCase();if(!xo(r))throw TypeError("Stringified UUID is invalid");return r}var cc,Vs,Hs=0,Gs=0;function Rv(t,n,r){var e=n&&r||0,u=n||new Array(16);t=t||{};var a=t.node||cc,d=t.clockseq!==void 0?t.clockseq:Vs;if(a==null||d==null){var E=t.random||(t.rng||uc)();a==null&&(a=cc=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),d==null&&(d=Vs=(E[6]<<8|E[7])&16383)}var l=t.msecs!==void 0?t.msecs:Date.now(),b=t.nsecs!==void 0?t.nsecs:Gs+1,T=l-Hs+(b-Gs)/1e4;if(T<0&&t.clockseq===void 0&&(d=d+1&16383),(T<0||l>Hs)&&t.nsecs===void 0&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Hs=l,Gs=b,Vs=d,l+=122192928e5;var L=((l&268435455)*1e4+b)%4294967296;u[e++]=L>>>24&255,u[e++]=L>>>16&255,u[e++]=L>>>8&255,u[e++]=L&255;var N=l/4294967296*1e4&268435455;u[e++]=N>>>8&255,u[e++]=N&255,u[e++]=N>>>24&15|16,u[e++]=N>>>16&255,u[e++]=d>>>8|128,u[e++]=d&255;for(var x=0;x<6;++x)u[e+x]=a[x];return n||Lo(u)}function fc(t){if(!xo(t))throw TypeError("Invalid UUID");var n,r=new Uint8Array(16);return r[0]=(n=parseInt(t.slice(0,8),16))>>>24,r[1]=n>>>16&255,r[2]=n>>>8&255,r[3]=n&255,r[4]=(n=parseInt(t.slice(9,13),16))>>>8,r[5]=n&255,r[6]=(n=parseInt(t.slice(14,18),16))>>>8,r[7]=n&255,r[8]=(n=parseInt(t.slice(19,23),16))>>>8,r[9]=n&255,r[10]=(n=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=n/4294967296&255,r[12]=n>>>24&255,r[13]=n>>>16&255,r[14]=n>>>8&255,r[15]=n&255,r}function Av(t){t=unescape(encodeURIComponent(t));for(var n=[],r=0;r<t.length;++r)n.push(t.charCodeAt(r));return n}var Sv="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Iv="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function lc(t,n,r){function e(u,a,d,E){if(typeof u=="string"&&(u=Av(u)),typeof a=="string"&&(a=fc(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+u.length);if(l.set(a),l.set(u,a.length),l=r(l),l[6]=l[6]&15|n,l[8]=l[8]&63|128,d){E=E||0;for(var b=0;b<16;++b)d[E+b]=l[b];return d}return Lo(l)}try{e.name=t}catch{}return e.DNS=Sv,e.URL=Iv,e}function Ov(t){if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=new Uint8Array(n.length);for(var r=0;r<n.length;++r)t[r]=n.charCodeAt(r)}return Tv(Nv(xv(t),t.length*8))}function Tv(t){for(var n=[],r=t.length*32,e="0123456789abcdef",u=0;u<r;u+=8){var a=t[u>>5]>>>u%32&255,d=parseInt(e.charAt(a>>>4&15)+e.charAt(a&15),16);n.push(d)}return n}function dc(t){return(t+64>>>9<<4)+14+1}function Nv(t,n){t[n>>5]|=128<<n%32,t[dc(n)-1]=n;for(var r=1732584193,e=-271733879,u=-1732584194,a=271733878,d=0;d<t.length;d+=16){var E=r,l=e,b=u,T=a;r=wn(r,e,u,a,t[d],7,-680876936),a=wn(a,r,e,u,t[d+1],12,-389564586),u=wn(u,a,r,e,t[d+2],17,606105819),e=wn(e,u,a,r,t[d+3],22,-1044525330),r=wn(r,e,u,a,t[d+4],7,-176418897),a=wn(a,r,e,u,t[d+5],12,1200080426),u=wn(u,a,r,e,t[d+6],17,-1473231341),e=wn(e,u,a,r,t[d+7],22,-45705983),r=wn(r,e,u,a,t[d+8],7,1770035416),a=wn(a,r,e,u,t[d+9],12,-1958414417),u=wn(u,a,r,e,t[d+10],17,-42063),e=wn(e,u,a,r,t[d+11],22,-1990404162),r=wn(r,e,u,a,t[d+12],7,1804603682),a=wn(a,r,e,u,t[d+13],12,-40341101),u=wn(u,a,r,e,t[d+14],17,-1502002290),e=wn(e,u,a,r,t[d+15],22,1236535329),r=En(r,e,u,a,t[d+1],5,-165796510),a=En(a,r,e,u,t[d+6],9,-1069501632),u=En(u,a,r,e,t[d+11],14,643717713),e=En(e,u,a,r,t[d],20,-373897302),r=En(r,e,u,a,t[d+5],5,-701558691),a=En(a,r,e,u,t[d+10],9,38016083),u=En(u,a,r,e,t[d+15],14,-660478335),e=En(e,u,a,r,t[d+4],20,-405537848),r=En(r,e,u,a,t[d+9],5,568446438),a=En(a,r,e,u,t[d+14],9,-1019803690),u=En(u,a,r,e,t[d+3],14,-187363961),e=En(e,u,a,r,t[d+8],20,1163531501),r=En(r,e,u,a,t[d+13],5,-1444681467),a=En(a,r,e,u,t[d+2],9,-51403784),u=En(u,a,r,e,t[d+7],14,1735328473),e=En(e,u,a,r,t[d+12],20,-1926607734),r=bn(r,e,u,a,t[d+5],4,-378558),a=bn(a,r,e,u,t[d+8],11,-2022574463),u=bn(u,a,r,e,t[d+11],16,1839030562),e=bn(e,u,a,r,t[d+14],23,-35309556),r=bn(r,e,u,a,t[d+1],4,-1530992060),a=bn(a,r,e,u,t[d+4],11,1272893353),u=bn(u,a,r,e,t[d+7],16,-155497632),e=bn(e,u,a,r,t[d+10],23,-1094730640),r=bn(r,e,u,a,t[d+13],4,681279174),a=bn(a,r,e,u,t[d],11,-358537222),u=bn(u,a,r,e,t[d+3],16,-722521979),e=bn(e,u,a,r,t[d+6],23,76029189),r=bn(r,e,u,a,t[d+9],4,-640364487),a=bn(a,r,e,u,t[d+12],11,-421815835),u=bn(u,a,r,e,t[d+15],16,530742520),e=bn(e,u,a,r,t[d+2],23,-995338651),r=_n(r,e,u,a,t[d],6,-198630844),a=_n(a,r,e,u,t[d+7],10,1126891415),u=_n(u,a,r,e,t[d+14],15,-1416354905),e=_n(e,u,a,r,t[d+5],21,-57434055),r=_n(r,e,u,a,t[d+12],6,1700485571),a=_n(a,r,e,u,t[d+3],10,-1894986606),u=_n(u,a,r,e,t[d+10],15,-1051523),e=_n(e,u,a,r,t[d+1],21,-2054922799),r=_n(r,e,u,a,t[d+8],6,1873313359),a=_n(a,r,e,u,t[d+15],10,-30611744),u=_n(u,a,r,e,t[d+6],15,-1560198380),e=_n(e,u,a,r,t[d+13],21,1309151649),r=_n(r,e,u,a,t[d+4],6,-145523070),a=_n(a,r,e,u,t[d+11],10,-1120210379),u=_n(u,a,r,e,t[d+2],15,718787259),e=_n(e,u,a,r,t[d+9],21,-343485551),r=Er(r,E),e=Er(e,l),u=Er(u,b),a=Er(a,T)}return[r,e,u,a]}function xv(t){if(t.length===0)return[];for(var n=t.length*8,r=new Uint32Array(dc(n)),e=0;e<n;e+=8)r[e>>5]|=(t[e/8]&255)<<e%32;return r}function Er(t,n){var r=(t&65535)+(n&65535),e=(t>>16)+(n>>16)+(r>>16);return e<<16|r&65535}function Lv(t,n){return t<<n|t>>>32-n}function Co(t,n,r,e,u,a){return Er(Lv(Er(Er(n,t),Er(e,a)),u),r)}function wn(t,n,r,e,u,a,d){return Co(n&r|~n&e,t,n,u,a,d)}function En(t,n,r,e,u,a,d){return Co(n&e|r&~e,t,n,u,a,d)}function bn(t,n,r,e,u,a,d){return Co(n^r^e,t,n,u,a,d)}function _n(t,n,r,e,u,a,d){return Co(r^(n|~e),t,n,u,a,d)}var Cv=lc("v3",48,Ov);function Bv(t,n,r){t=t||{};var e=t.random||(t.rng||uc)();if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,n){r=r||0;for(var u=0;u<16;++u)n[r+u]=e[u];return n}return Lo(e)}function Mv(t,n,r,e){switch(t){case 0:return n&r^~n&e;case 1:return n^r^e;case 2:return n&r^n&e^r&e;case 3:return n^r^e}}function js(t,n){return t<<n|t>>>32-n}function kv(t){var n=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var e=unescape(encodeURIComponent(t));t=[];for(var u=0;u<e.length;++u)t.push(e.charCodeAt(u))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var a=t.length/4+2,d=Math.ceil(a/16),E=new Array(d),l=0;l<d;++l){for(var b=new Uint32Array(16),T=0;T<16;++T)b[T]=t[l*64+T*4]<<24|t[l*64+T*4+1]<<16|t[l*64+T*4+2]<<8|t[l*64+T*4+3];E[l]=b}E[d-1][14]=(t.length-1)*8/Math.pow(2,32),E[d-1][14]=Math.floor(E[d-1][14]),E[d-1][15]=(t.length-1)*8&4294967295;for(var L=0;L<d;++L){for(var N=new Uint32Array(80),x=0;x<16;++x)N[x]=E[L][x];for(var M=16;M<80;++M)N[M]=js(N[M-3]^N[M-8]^N[M-14]^N[M-16],1);for(var D=r[0],Y=r[1],W=r[2],J=r[3],q=r[4],ot=0;ot<80;++ot){var pt=Math.floor(ot/20),ft=js(D,5)+Mv(pt,Y,W,J)+q+n[pt]+N[ot]>>>0;q=J,J=W,W=js(Y,30)>>>0,Y=D,D=ft}r[0]=r[0]+D>>>0,r[1]=r[1]+Y>>>0,r[2]=r[2]+W>>>0,r[3]=r[3]+J>>>0,r[4]=r[4]+q>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Uv=lc("v5",80,kv);const Dv="00000000-0000-0000-0000-000000000000";function Pv(t){if(!xo(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}const hc=ls(Object.freeze(Object.defineProperty({__proto__:null,NIL:Dv,parse:fc,stringify:Lo,v1:Rv,v3:Cv,v4:Bv,v5:Uv,validate:xo,version:Pv},Symbol.toStringTag,{value:"Module"})));var Ys,pc;function Fv(){if(pc)return Ys;pc=1;const t=hc.v4;return Ys=function(r,e,u,a){if(typeof r!="string")throw new TypeError(r+" must be a string");a=a||{};const d=typeof a.version=="number"?a.version:2;if(d!==1&&d!==2)throw new TypeError(d+" must be 1 or 2");const E={method:r};if(d===2&&(E.jsonrpc="2.0"),e){if(typeof e!="object"&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");E.params=e}if(typeof u>"u"){const l=typeof a.generator=="function"?a.generator:function(){return t()};E.id=l(E,a)}else d===2&&u===null?a.notificationIdNull&&(E.id=null):E.id=u;return E},Ys}var Ws,vc;function Vv(){if(vc)return Ws;vc=1;const t=hc.v4,n=Fv(),r=function(e,u){if(!(this instanceof r))return new r(e,u);u||(u={}),this.options={reviver:typeof u.reviver<"u"?u.reviver:null,replacer:typeof u.replacer<"u"?u.replacer:null,generator:typeof u.generator<"u"?u.generator:function(){return t()},version:typeof u.version<"u"?u.version:2,notificationIdNull:typeof u.notificationIdNull=="boolean"?u.notificationIdNull:!1},this.callServer=e};return Ws=r,r.prototype.request=function(e,u,a,d){const E=this;let l=null;const b=Array.isArray(e)&&typeof u=="function";if(this.options.version===1&&b)throw new TypeError("JSON-RPC 1.0 does not support batching");if(b||!b&&e&&typeof e=="object"&&typeof u=="function")d=u,l=e;else{typeof a=="function"&&(d=a,a=void 0);const N=typeof d=="function";try{l=n(e,u,a,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(x){if(N)return d(x);throw x}if(!N)return l}let L;try{L=JSON.stringify(l,this.options.replacer)}catch(N){return d(N)}return this.callServer(L,function(N,x){E._parseResponse(N,x,d)}),l},r.prototype._parseResponse=function(e,u,a){if(e){a(e);return}if(!u)return a();let d;try{d=JSON.parse(u,this.options.reviver)}catch(E){return a(E)}if(a.length===3)if(Array.isArray(d)){const E=function(b){return typeof b.error<"u"},l=function(b){return!E(b)};return a(null,d.filter(E),d.filter(l))}else return a(null,d.error,d.result);a(null,d)},Ws}Vv();var zs={exports:{}},gc;function Hv(){return gc||(gc=1,(function(t){var n=Object.prototype.hasOwnProperty,r="~";function e(){}Object.create&&(e.prototype=Object.create(null),new e().__proto__||(r=!1));function u(l,b,T){this.fn=l,this.context=b,this.once=T||!1}function a(l,b,T,L,N){if(typeof T!="function")throw new TypeError("The listener must be a function");var x=new u(T,L||l,N),M=r?r+b:b;return l._events[M]?l._events[M].fn?l._events[M]=[l._events[M],x]:l._events[M].push(x):(l._events[M]=x,l._eventsCount++),l}function d(l,b){--l._eventsCount===0?l._events=new e:delete l._events[b]}function E(){this._events=new e,this._eventsCount=0}E.prototype.eventNames=function(){var b=[],T,L;if(this._eventsCount===0)return b;for(L in T=this._events)n.call(T,L)&&b.push(r?L.slice(1):L);return Object.getOwnPropertySymbols?b.concat(Object.getOwnPropertySymbols(T)):b},E.prototype.listeners=function(b){var T=r?r+b:b,L=this._events[T];if(!L)return[];if(L.fn)return[L.fn];for(var N=0,x=L.length,M=new Array(x);N<x;N++)M[N]=L[N].fn;return M},E.prototype.listenerCount=function(b){var T=r?r+b:b,L=this._events[T];return L?L.fn?1:L.length:0},E.prototype.emit=function(b,T,L,N,x,M){var D=r?r+b:b;if(!this._events[D])return!1;var Y=this._events[D],W=arguments.length,J,q;if(Y.fn){switch(Y.once&&this.removeListener(b,Y.fn,void 0,!0),W){case 1:return Y.fn.call(Y.context),!0;case 2:return Y.fn.call(Y.context,T),!0;case 3:return Y.fn.call(Y.context,T,L),!0;case 4:return Y.fn.call(Y.context,T,L,N),!0;case 5:return Y.fn.call(Y.context,T,L,N,x),!0;case 6:return Y.fn.call(Y.context,T,L,N,x,M),!0}for(q=1,J=new Array(W-1);q<W;q++)J[q-1]=arguments[q];Y.fn.apply(Y.context,J)}else{var ot=Y.length,pt;for(q=0;q<ot;q++)switch(Y[q].once&&this.removeListener(b,Y[q].fn,void 0,!0),W){case 1:Y[q].fn.call(Y[q].context);break;case 2:Y[q].fn.call(Y[q].context,T);break;case 3:Y[q].fn.call(Y[q].context,T,L);break;case 4:Y[q].fn.call(Y[q].context,T,L,N);break;default:if(!J)for(pt=1,J=new Array(W-1);pt<W;pt++)J[pt-1]=arguments[pt];Y[q].fn.apply(Y[q].context,J)}}return!0},E.prototype.on=function(b,T,L){return a(this,b,T,L,!1)},E.prototype.once=function(b,T,L){return a(this,b,T,L,!0)},E.prototype.removeListener=function(b,T,L,N){var x=r?r+b:b;if(!this._events[x])return this;if(!T)return d(this,x),this;var M=this._events[x];if(M.fn)M.fn===T&&(!N||M.once)&&(!L||M.context===L)&&d(this,x);else{for(var D=0,Y=[],W=M.length;D<W;D++)(M[D].fn!==T||N&&!M[D].once||L&&M[D].context!==L)&&Y.push(M[D]);Y.length?this._events[x]=Y.length===1?Y[0]:Y:d(this,x)}return this},E.prototype.removeAllListeners=function(b){var T;return b?(T=r?r+b:b,this._events[T]&&d(this,T)):(this._events=new e,this._eventsCount=0),this},E.prototype.off=E.prototype.removeListener,E.prototype.addListener=E.prototype.on,E.prefixed=r,E.EventEmitter=E,t.exports=E})(zs)),zs.exports}Hv();class mc extends ru{constructor(n,r){super(),this.finished=!1,this.destroyed=!1,tu(n);const e=gs(r);if(this.iHash=n.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,a=new Uint8Array(u);a.set(e.length>u?n.create().update(e).digest():e);for(let d=0;d<a.length;d++)a[d]^=54;this.iHash.update(a),this.oHash=n.create();for(let d=0;d<a.length;d++)a[d]^=106;this.oHash.update(a),Jr(a)}update(n){return lo(this),this.iHash.update(n),this}digestInto(n){lo(this),Cr(n,this.outputLen),this.finished=!0,this.iHash.digestInto(n),this.oHash.update(n),this.oHash.digestInto(n),this.destroy()}digest(){const n=new Uint8Array(this.oHash.outputLen);return this.digestInto(n),n}_cloneInto(n){n||(n=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:e,finished:u,destroyed:a,blockLen:d,outputLen:E}=this;return n=n,n.finished=u,n.destroyed=a,n.blockLen=d,n.outputLen=E,n.oHash=r._cloneInto(n.oHash),n.iHash=e._cloneInto(n.iHash),n}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const yc=(t,n,r)=>new mc(t,n).update(r).digest();yc.create=(t,n)=>new mc(t,n);const wc=(t,n)=>(t+(t>=0?n:-n)/Ec)/n;function Gv(t,n,r){const[[e,u],[a,d]]=n,E=wc(d*t,r),l=wc(-u*t,r);let b=t-E*e-l*a,T=-E*u-l*d;const L=b<ur,N=T<ur;L&&(b=-b),N&&(T=-T);const x=Si(Math.ceil(pu(r)/2))+si;if(b<ur||b>=x||T<ur||T>=x)throw new Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:L,k1:b,k2neg:N,k2:T}}function Zs(t){if(!["compact","recovered","der"].includes(t))throw new Error('Signature format must be "compact", "recovered", or "der"');return t}function Ks(t,n){const r={};for(let e of Object.keys(n))r[e]=t[e]===void 0?n[e]:t[e];return Mr(r.lowS,"lowS"),Mr(r.prehash,"prehash"),r.format!==void 0&&Zs(r.format),r}class jv extends Error{constructor(n=""){super(n)}}const ar={Err:jv,_tlv:{encode:(t,n)=>{const{Err:r}=ar;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length&1)throw new r("tlv.encode: unpadded data");const e=n.length/2,u=mo(e);if(u.length/2&128)throw new r("tlv.encode: long form length too big");const a=e>127?mo(u.length/2|128):"";return mo(t)+a+u+n},decode(t,n){const{Err:r}=ar;let e=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[e++]!==t)throw new r("tlv.decode: wrong tlv");const u=n[e++],a=!!(u&128);let d=0;if(!a)d=u;else{const l=u&127;if(!l)throw new r("tlv.decode(long): indefinite length not supported");if(l>4)throw new r("tlv.decode(long): byte length is too big");const b=n.subarray(e,e+l);if(b.length!==l)throw new r("tlv.decode: length bytes not complete");if(b[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const T of b)d=d<<8|T;if(e+=l,d<128)throw new r("tlv.decode(long): not minimal encoding")}const E=n.subarray(e,e+d);if(E.length!==d)throw new r("tlv.decode: wrong value length");return{v:E,l:n.subarray(e+d)}}},_int:{encode(t){const{Err:n}=ar;if(t<ur)throw new n("integer: negative integers are not allowed");let r=mo(t);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:n}=ar;if(t[0]&128)throw new n("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return yo(t)}},toSig(t){const{Err:n,_int:r,_tlv:e}=ar,u=Ze("signature",t),{v:a,l:d}=e.decode(48,u);if(d.length)throw new n("invalid signature: left bytes after parsing");const{v:E,l}=e.decode(2,a),{v:b,l:T}=e.decode(2,l);if(T.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(E),s:r.decode(b)}},hexFromSig(t){const{_tlv:n,_int:r}=ar,e=n.encode(2,r.encode(t.r)),u=n.encode(2,r.encode(t.s)),a=e+u;return n.encode(48,a)}},ur=BigInt(0),si=BigInt(1),Ec=BigInt(2),Bo=BigInt(3),Yv=BigInt(4);function ai(t,n){const{BYTES:r}=t;let e;if(typeof n=="bigint")e=n;else{let u=Ze("private key",n);try{e=t.fromBytes(u)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof n}`)}}if(!t.isValidNot0(e))throw new Error("invalid private key: out of range [1..N-1]");return e}function Wv(t,n={}){const r=ku("weierstrass",t,n),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:d,n:E}=a;Ii(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:l}=n;if(l&&(!e.is0(a.a)||typeof l.beta!="bigint"||!Array.isArray(l.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const b=_c(e,u);function T(){if(!e.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function L(wt,P,f){const{x:S,y:U}=P.toAffine(),z=e.toBytes(S);if(Mr(f,"isCompressed"),f){T();const $=!e.isOdd(U);return Kn(bc($),z)}else return Kn(Uint8Array.of(4),z,e.toBytes(U))}function N(wt){Fn(wt,void 0,"Point");const{publicKey:P,publicKeyUncompressed:f}=b,S=wt.length,U=wt[0],z=wt.subarray(1);if(S===P&&(U===2||U===3)){const $=e.fromBytes(z);if(!e.isValid($))throw new Error("bad point: is not on curve, wrong x");const et=D($);let ut;try{ut=e.sqrt(et)}catch(_){const j=_ instanceof Error?": "+_.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}T();const Z=e.isOdd(ut);return(U&1)===1!==Z&&(ut=e.neg(ut)),{x:$,y:ut}}else if(S===f&&U===4){const $=e.BYTES,et=e.fromBytes(z.subarray(0,$)),ut=e.fromBytes(z.subarray($,$*2));if(!Y(et,ut))throw new Error("bad point: is not on curve");return{x:et,y:ut}}else throw new Error(`bad point: got length ${S}, expected compressed=${P} or uncompressed=${f}`)}const x=n.toBytes||L,M=n.fromBytes||N;function D(wt){const P=e.sqr(wt),f=e.mul(P,wt);return e.add(e.add(f,e.mul(wt,a.a)),a.b)}function Y(wt,P){const f=e.sqr(P),S=D(wt);return e.eql(f,S)}if(!Y(a.Gx,a.Gy))throw new Error("bad curve params: generator point");const W=e.mul(e.pow(a.a,Bo),Yv),J=e.mul(e.sqr(a.b),BigInt(27));if(e.is0(e.add(W,J)))throw new Error("bad curve params: a or b");function q(wt,P,f=!1){if(!e.isValid(P)||f&&e.is0(P))throw new Error(`bad point coordinate ${wt}`);return P}function ot(wt){if(!(wt instanceof st))throw new Error("ProjectivePoint expected")}function pt(wt){if(!l||!l.basises)throw new Error("no endo");return Gv(wt,l.basises,u.ORDER)}const ft=wo((wt,P)=>{const{X:f,Y:S,Z:U}=wt;if(e.eql(U,e.ONE))return{x:f,y:S};const z=wt.is0();P==null&&(P=z?e.ONE:e.inv(U));const $=e.mul(f,P),et=e.mul(S,P),ut=e.mul(U,P);if(z)return{x:e.ZERO,y:e.ZERO};if(!e.eql(ut,e.ONE))throw new Error("invZ was invalid");return{x:$,y:et}}),Rt=wo(wt=>{if(wt.is0()){if(n.allowInfinityPoint&&!e.is0(wt.Y))return;throw new Error("bad point: ZERO")}const{x:P,y:f}=wt.toAffine();if(!e.isValid(P)||!e.isValid(f))throw new Error("bad point: x or y not field elements");if(!Y(P,f))throw new Error("bad point: equation left != right");if(!wt.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function At(wt,P,f,S,U){return f=new st(e.mul(f.X,wt),f.Y,f.Z),P=Eo(S,P),f=Eo(U,f),P.add(f)}class st{constructor(P,f,S){this.X=q("x",P),this.Y=q("y",f,!0),this.Z=q("z",S),Object.freeze(this)}static CURVE(){return a}static fromAffine(P){const{x:f,y:S}=P||{};if(!P||!e.isValid(f)||!e.isValid(S))throw new Error("invalid affine point");if(P instanceof st)throw new Error("projective point not allowed");return e.is0(f)&&e.is0(S)?st.ZERO:new st(f,S,e.ONE)}static fromBytes(P){const f=st.fromAffine(M(Fn(P,void 0,"point")));return f.assertValidity(),f}static fromHex(P){return st.fromBytes(Ze("pointHex",P))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(P=8,f=!0){return mt.createCache(this,P),f||this.multiply(Bo),this}assertValidity(){Rt(this)}hasEvenY(){const{y:P}=this.toAffine();if(!e.isOdd)throw new Error("Field doesn't support isOdd");return!e.isOdd(P)}equals(P){ot(P);const{X:f,Y:S,Z:U}=this,{X:z,Y:$,Z:et}=P,ut=e.eql(e.mul(f,et),e.mul(z,U)),Z=e.eql(e.mul(S,et),e.mul($,U));return ut&&Z}negate(){return new st(this.X,e.neg(this.Y),this.Z)}double(){const{a:P,b:f}=a,S=e.mul(f,Bo),{X:U,Y:z,Z:$}=this;let et=e.ZERO,ut=e.ZERO,Z=e.ZERO,h=e.mul(U,U),_=e.mul(z,z),j=e.mul($,$),K=e.mul(U,z);return K=e.add(K,K),Z=e.mul(U,$),Z=e.add(Z,Z),et=e.mul(P,Z),ut=e.mul(S,j),ut=e.add(et,ut),et=e.sub(_,ut),ut=e.add(_,ut),ut=e.mul(et,ut),et=e.mul(K,et),Z=e.mul(S,Z),j=e.mul(P,j),K=e.sub(h,j),K=e.mul(P,K),K=e.add(K,Z),Z=e.add(h,h),h=e.add(Z,h),h=e.add(h,j),h=e.mul(h,K),ut=e.add(ut,h),j=e.mul(z,$),j=e.add(j,j),h=e.mul(j,K),et=e.sub(et,h),Z=e.mul(j,_),Z=e.add(Z,Z),Z=e.add(Z,Z),new st(et,ut,Z)}add(P){ot(P);const{X:f,Y:S,Z:U}=this,{X:z,Y:$,Z:et}=P;let ut=e.ZERO,Z=e.ZERO,h=e.ZERO;const _=a.a,j=e.mul(a.b,Bo);let K=e.mul(f,z),ht=e.mul(S,$),St=e.mul(U,et),Ft=e.add(f,S),zt=e.add(z,$);Ft=e.mul(Ft,zt),zt=e.add(K,ht),Ft=e.sub(Ft,zt),zt=e.add(f,U);let de=e.add(z,et);return zt=e.mul(zt,de),de=e.add(K,St),zt=e.sub(zt,de),de=e.add(S,U),ut=e.add($,et),de=e.mul(de,ut),ut=e.add(ht,St),de=e.sub(de,ut),h=e.mul(_,zt),ut=e.mul(j,St),h=e.add(ut,h),ut=e.sub(ht,h),h=e.add(ht,h),Z=e.mul(ut,h),ht=e.add(K,K),ht=e.add(ht,K),St=e.mul(_,St),zt=e.mul(j,zt),ht=e.add(ht,St),St=e.sub(K,St),St=e.mul(_,St),zt=e.add(zt,St),K=e.mul(ht,zt),Z=e.add(Z,K),K=e.mul(de,zt),ut=e.mul(Ft,ut),ut=e.sub(ut,K),K=e.mul(Ft,ht),h=e.mul(de,h),h=e.add(h,K),new st(ut,Z,h)}subtract(P){return this.add(P.negate())}is0(){return this.equals(st.ZERO)}multiply(P){const{endo:f}=n;if(!u.isValidNot0(P))throw new Error("invalid scalar: out of range");let S,U;const z=$=>mt.cached(this,$,et=>Pr(st,et));if(f){const{k1neg:$,k1:et,k2neg:ut,k2:Z}=pt(P),{p:h,f:_}=z(et),{p:j,f:K}=z(Z);U=_.add(K),S=At(f.beta,h,j,$,ut)}else{const{p:$,f:et}=z(P);S=$,U=et}return Pr(st,[S,U])[0]}multiplyUnsafe(P){const{endo:f}=n,S=this;if(!u.isValid(P))throw new Error("invalid scalar: out of range");if(P===ur||S.is0())return st.ZERO;if(P===si)return S;if(mt.hasCache(this))return this.multiply(P);if(f){const{k1neg:U,k1:z,k2neg:$,k2:et}=pt(P),{p1:ut,p2:Z}=hd(st,S,z,et);return At(f.beta,ut,Z,U,$)}else return mt.unsafe(S,P)}multiplyAndAddUnsafe(P,f,S){const U=this.multiplyUnsafe(f).add(P.multiplyUnsafe(S));return U.is0()?void 0:U}toAffine(P){return ft(this,P)}isTorsionFree(){const{isTorsionFree:P}=n;return d===si?!0:P?P(st,this):mt.unsafe(this,E).is0()}clearCofactor(){const{clearCofactor:P}=n;return d===si?this:P?P(st,this):this.multiplyUnsafe(d)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}toBytes(P=!0){return Mr(P,"isCompressed"),this.assertValidity(),x(st,this,P)}toHex(P=!0){return Br(this.toBytes(P))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(P=!0){return this.toBytes(P)}_setWindowSize(P){this.precompute(P)}static normalizeZ(P){return Pr(st,P)}static msm(P,f){return Bu(st,u,P,f)}static fromPrivateKey(P){return st.BASE.multiply(ai(u,P))}}st.BASE=new st(a.Gx,a.Gy,e.ONE),st.ZERO=new st(e.ZERO,e.ONE,e.ZERO),st.Fp=e,st.Fn=u;const lt=u.BITS,mt=new Cu(st,n.endo?Math.ceil(lt/2):lt);return st.BASE.precompute(8),st}function bc(t){return Uint8Array.of(t?2:3)}function _c(t,n){return{secretKey:n.BYTES,publicKey:1+t.BYTES,publicKeyUncompressed:1+2*t.BYTES,publicKeyHasPrefix:!0,signature:2*n.BYTES}}function zv(t,n={}){const{Fn:r}=t,e=n.randomBytes||ms,u=Object.assign(_c(t.Fp,r),{seed:Ou(r.ORDER)});function a(x){try{return!!ai(r,x)}catch{return!1}}function d(x,M){const{publicKey:D,publicKeyUncompressed:Y}=u;try{const W=x.length;return M===!0&&W!==D||M===!1&&W!==Y?!1:!!t.fromBytes(x)}catch{return!1}}function E(x=e(u.seed)){return fd(Fn(x,u.seed,"seed"),r.ORDER)}function l(x,M=!0){return t.BASE.multiply(ai(r,x)).toBytes(M)}function b(x){const M=E(x);return{secretKey:M,publicKey:l(M)}}function T(x){if(typeof x=="bigint")return!1;if(x instanceof t)return!0;const{secretKey:M,publicKey:D,publicKeyUncompressed:Y}=u;if(r.allowedLengths||M===D)return;const W=Ze("key",x).length;return W===D||W===Y}function L(x,M,D=!0){if(T(x)===!0)throw new Error("first arg must be private key");if(T(M)===!1)throw new Error("second arg must be public key");const Y=ai(r,x);return t.fromHex(M).multiply(Y).toBytes(D)}return Object.freeze({getPublicKey:l,getSharedSecret:L,keygen:b,Point:t,utils:{isValidSecretKey:a,isValidPublicKey:d,randomSecretKey:E,isValidPrivateKey:a,randomPrivateKey:E,normPrivateKeyToScalar:x=>ai(r,x),precompute(x=8,M=t.BASE){return M.precompute(x,!1)}},lengths:u})}function Zv(t,n,r={}){tu(n),Ii(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const e=r.randomBytes||ms,u=r.hmac||((f,...S)=>yc(n,f,Kn(...S))),{Fp:a,Fn:d}=t,{ORDER:E,BITS:l}=d,{keygen:b,getPublicKey:T,getSharedSecret:L,utils:N,lengths:x}=zv(t,r),M={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},D="compact";function Y(f){const S=E>>si;return f>S}function W(f,S){if(!d.isValidNot0(S))throw new Error(`invalid signature ${f}: out of range 1..Point.Fn.ORDER`);return S}function J(f,S){Zs(S);const U=x.signature,z=S==="compact"?U:S==="recovered"?U+1:void 0;return Fn(f,z,`${S} signature`)}class q{constructor(S,U,z){this.r=W("r",S),this.s=W("s",U),z!=null&&(this.recovery=z),Object.freeze(this)}static fromBytes(S,U=D){J(S,U);let z;if(U==="der"){const{r:Z,s:h}=ar.toSig(Fn(S));return new q(Z,h)}U==="recovered"&&(z=S[0],U="compact",S=S.subarray(1));const $=d.BYTES,et=S.subarray(0,$),ut=S.subarray($,$*2);return new q(d.fromBytes(et),d.fromBytes(ut),z)}static fromHex(S,U){return this.fromBytes(ho(S),U)}addRecoveryBit(S){return new q(this.r,this.s,S)}recoverPublicKey(S){const U=a.ORDER,{r:z,s:$,recovery:et}=this;if(et==null||![0,1,2,3].includes(et))throw new Error("recovery id invalid");if(E*Ec<U&&et>1)throw new Error("recovery id is ambiguous for h>1 curve");const Z=et===2||et===3?z+E:z;if(!a.isValid(Z))throw new Error("recovery id 2 or 3 invalid");const h=a.toBytes(Z),_=t.fromBytes(Kn(bc((et&1)===0),h)),j=d.inv(Z),K=pt(Ze("msgHash",S)),ht=d.create(-K*j),St=d.create($*j),Ft=t.BASE.multiplyUnsafe(ht).add(_.multiplyUnsafe(St));if(Ft.is0())throw new Error("point at infinify");return Ft.assertValidity(),Ft}hasHighS(){return Y(this.s)}toBytes(S=D){if(Zs(S),S==="der")return ho(ar.hexFromSig(this));const U=d.toBytes(this.r),z=d.toBytes(this.s);if(S==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Kn(Uint8Array.of(this.recovery),U,z)}return Kn(U,z)}toHex(S){return Br(this.toBytes(S))}assertValidity(){}static fromCompact(S){return q.fromBytes(Ze("sig",S),"compact")}static fromDER(S){return q.fromBytes(Ze("sig",S),"der")}normalizeS(){return this.hasHighS()?new q(this.r,d.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Br(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Br(this.toBytes("compact"))}}const ot=r.bits2int||function(S){if(S.length>8192)throw new Error("input is too large");const U=yo(S),z=S.length*8-l;return z>0?U>>BigInt(z):U},pt=r.bits2int_modN||function(S){return d.create(ot(S))},ft=Si(l);function Rt(f){return _s("num < 2^"+l,f,ur,ft),d.toBytes(f)}function At(f,S){return Fn(f,void 0,"message"),S?Fn(n(f),void 0,"prehashed message"):f}function st(f,S,U){if(["recovered","canonical"].some(ht=>ht in U))throw new Error("sign() legacy options not supported");const{lowS:z,prehash:$,extraEntropy:et}=Ks(U,M);f=At(f,$);const ut=pt(f),Z=ai(d,S),h=[Rt(Z),Rt(ut)];if(et!=null&&et!==!1){const ht=et===!0?e(x.secretKey):et;h.push(Ze("extraEntropy",ht))}const _=Kn(...h),j=ut;function K(ht){const St=ot(ht);if(!d.isValidNot0(St))return;const Ft=d.inv(St),zt=t.BASE.multiply(St).toAffine(),de=d.create(zt.x);if(de===ur)return;const Ee=d.create(Ft*d.create(j+de*Z));if(Ee===ur)return;let me=(zt.x===de?0:2)|Number(zt.y&si),$t=Ee;return z&&Y(Ee)&&($t=d.neg(Ee),me^=1),new q(de,$t,me)}return{seed:_,k2sig:K}}function lt(f,S,U={}){f=Ze("message",f);const{seed:z,k2sig:$}=st(f,S,U);return td(n.outputLen,d.BYTES,u)(z,$)}function mt(f){let S;const U=typeof f=="string"||Ri(f),z=!U&&f!==null&&typeof f=="object"&&typeof f.r=="bigint"&&typeof f.s=="bigint";if(!U&&!z)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(z)S=new q(f.r,f.s);else if(U){try{S=q.fromBytes(Ze("sig",f),"der")}catch($){if(!($ instanceof ar.Err))throw $}if(!S)try{S=q.fromBytes(Ze("sig",f),"compact")}catch{return!1}}return S||!1}function wt(f,S,U,z={}){const{lowS:$,prehash:et,format:ut}=Ks(z,M);if(U=Ze("publicKey",U),S=At(Ze("message",S),et),"strict"in z)throw new Error("options.strict was renamed to lowS");const Z=ut===void 0?mt(f):q.fromBytes(Ze("sig",f),ut);if(Z===!1)return!1;try{const h=t.fromBytes(U);if($&&Z.hasHighS())return!1;const{r:_,s:j}=Z,K=pt(S),ht=d.inv(j),St=d.create(K*ht),Ft=d.create(_*ht),zt=t.BASE.multiplyUnsafe(St).add(h.multiplyUnsafe(Ft));return zt.is0()?!1:d.create(zt.x)===_}catch{return!1}}function P(f,S,U={}){const{prehash:z}=Ks(U,M);return S=At(S,z),q.fromBytes(f,"recovered").recoverPublicKey(S).toBytes()}return Object.freeze({keygen:b,getPublicKey:T,getSharedSecret:L,utils:N,lengths:x,Point:t,sign:lt,verify:wt,recoverPublicKey:P,Signature:q,hash:n})}function Kv(t){const n={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp;let e=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(d=>Math.ceil(d/2)))):void 0;const u=Ur(n.n,{BITS:t.nBitLength,allowedLengths:e,modFromBytes:t.wrapPrivateKey}),a={Fp:r,Fn:u,allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes};return{CURVE:n,curveOpts:a}}function Xv(t){const{CURVE:n,curveOpts:r}=Kv(t),e={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:n,curveOpts:r,hash:t.hash,ecdsaOpts:e}}function qv(t,n){const r=n.Point;return Object.assign({},n,{ProjectivePoint:r,CURVE:Object.assign({},t,Su(r.Fn.ORDER,r.Fn.BITS))})}function $v(t){const{CURVE:n,curveOpts:r,hash:e,ecdsaOpts:u}=Xv(t),a=Wv(n,r),d=Zv(a,e,u);return qv(t,d)}function Jv(t,n){const r=e=>$v({...t,hash:e});return{...r(n),create:r}}const Xs={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},Qv={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Rc=BigInt(2);function t3(t){const n=Xs.p,r=BigInt(3),e=BigInt(6),u=BigInt(11),a=BigInt(22),d=BigInt(23),E=BigInt(44),l=BigInt(88),b=t*t*t%n,T=b*b*t%n,L=Ke(T,r,n)*T%n,N=Ke(L,r,n)*T%n,x=Ke(N,Rc,n)*b%n,M=Ke(x,u,n)*x%n,D=Ke(M,a,n)*M%n,Y=Ke(D,E,n)*D%n,W=Ke(Y,l,n)*Y%n,J=Ke(W,E,n)*D%n,q=Ke(J,r,n)*T%n,ot=Ke(q,d,n)*M%n,pt=Ke(ot,e,n)*b%n,ft=Ke(pt,Rc,n);if(!qs.eql(qs.sqr(ft),t))throw new Error("Cannot find square root");return ft}const qs=Ur(Xs.p,{sqrt:t3}),e3=Jv({...Xs,Fp:qs,lowS:!0,endo:Qv},fu);Oi.utils.randomPrivateKey,Oi.getPublicKey;function Ac(t){try{return Oi.ExtendedPoint.fromHex(t),!0}catch{return!1}}const Sc=(t,n)=>Oi.sign(t,n.slice(0,32)),n3=Oi.verify,$s=t=>Ae.Buffer.isBuffer(t)?t:t instanceof Uint8Array?Ae.Buffer.from(t.buffer,t.byteOffset,t.byteLength):Ae.Buffer.from(t);class Ic{constructor(n){Object.assign(this,n)}encode(){return Ae.Buffer.from(ks.serialize(Ci,this))}static decode(n){return ks.deserialize(Ci,this,n)}static decodeUnchecked(n){return ks.deserializeUnchecked(Ci,this,n)}}const Ci=new Map;var Oc;const Tc=32,cr=32;function r3(t){return t._bn!==void 0}let Nc=1;class ge extends Ic{constructor(n){if(super({}),this._bn=void 0,r3(n))this._bn=n._bn;else{if(typeof n=="string"){const r=An.decode(n);if(r.length!=cr)throw new Error("Invalid public key input");this._bn=new Hu(r)}else this._bn=new Hu(n);if(this._bn.byteLength()>cr)throw new Error("Invalid public key input")}}static unique(){const n=new ge(Nc);return Nc+=1,new ge(n.toBuffer())}equals(n){return this._bn.eq(n._bn)}toBase58(){return An.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const n=this.toBuffer();return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}toBuffer(){const n=this._bn.toArrayLike(Ae.Buffer);if(n.length===cr)return n;const r=Ae.Buffer.alloc(32);return n.copy(r,32-n.length),r}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(n,r,e){const u=Ae.Buffer.concat([n.toBuffer(),Ae.Buffer.from(r),e.toBuffer()]),a=zu(u);return new ge(a)}static createProgramAddressSync(n,r){let e=Ae.Buffer.alloc(0);n.forEach(function(a){if(a.length>Tc)throw new TypeError("Max seed length exceeded");e=Ae.Buffer.concat([e,$s(a)])}),e=Ae.Buffer.concat([e,r.toBuffer(),Ae.Buffer.from("ProgramDerivedAddress")]);const u=zu(e);if(Ac(u))throw new Error("Invalid seeds, address must fall off the curve");return new ge(u)}static async createProgramAddress(n,r){return this.createProgramAddressSync(n,r)}static findProgramAddressSync(n,r){let e=255,u;for(;e!=0;){try{const a=n.concat(Ae.Buffer.from([e]));u=this.createProgramAddressSync(a,r)}catch(a){if(a instanceof TypeError)throw a;e--;continue}return[u,e]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(n,r){return this.findProgramAddressSync(n,r)}static isOnCurve(n){const r=new ge(n);return Ac(r.toBytes())}}Oc=ge,ge.default=new Oc("11111111111111111111111111111111"),Ci.set(ge,{kind:"struct",fields:[["_bn","u256"]]}),new ge("BPFLoader1111111111111111111111111111111111");const Vr=1232,Mo=127,Bi=64;class Mi{constructor(n,r){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=n,this.accountKeysFromLookups=r}keySegments(){const n=[this.staticAccountKeys];return this.accountKeysFromLookups&&(n.push(this.accountKeysFromLookups.writable),n.push(this.accountKeysFromLookups.readonly)),n}get(n){for(const r of this.keySegments()){if(n<r.length)return r[n];n-=r.length}}get length(){return this.keySegments().flat().length}compileInstructions(n){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const e=new Map;this.keySegments().flat().forEach((a,d)=>{e.set(a.toBase58(),d)});const u=a=>{const d=e.get(a.toBase58());if(d===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return d};return n.map(a=>({programIdIndex:u(a.programId),accountKeyIndexes:a.keys.map(d=>u(d.pubkey)),data:a.data}))}}const Se=(t="publicKey")=>dt.blob(32,t),i3=(t="signature")=>dt.blob(64,t),ui=(t="string")=>{const n=dt.struct([dt.u32("length"),dt.u32("lengthPadding"),dt.blob(dt.offset(dt.u32(),-8),"chars")],t),r=n.decode.bind(n),e=n.encode.bind(n),u=n;return u.decode=(a,d)=>r(a,d).chars.toString(),u.encode=(a,d,E)=>{const l={chars:Ae.Buffer.from(a,"utf8")};return e(l,d,E)},u.alloc=a=>dt.u32().span+dt.u32().span+Ae.Buffer.from(a,"utf8").length,u},o3=(t="authorized")=>dt.struct([Se("staker"),Se("withdrawer")],t),s3=(t="lockup")=>dt.struct([dt.ns64("unixTimestamp"),dt.ns64("epoch"),Se("custodian")],t),a3=(t="voteInit")=>dt.struct([Se("nodePubkey"),Se("authorizedVoter"),Se("authorizedWithdrawer"),dt.u8("commission")],t),u3=(t="voteAuthorizeWithSeedArgs")=>dt.struct([dt.u32("voteAuthorizationType"),Se("currentAuthorityDerivedKeyOwnerPubkey"),ui("currentAuthorityDerivedKeySeed"),Se("newAuthorized")],t);function Ln(t){let n=0,r=0;for(;;){let e=t.shift();if(n|=(e&127)<<r*7,r+=1,(e&128)===0)break}return n}function Cn(t,n){let r=n;for(;;){let e=r&127;if(r>>=7,r==0){t.push(e);break}else e|=128,t.push(e)}}function cn(t,n){if(!t)throw new Error(n||"Assertion failed")}class ko{constructor(n,r){this.payer=void 0,this.keyMetaMap=void 0,this.payer=n,this.keyMetaMap=r}static compile(n,r){const e=new Map,u=d=>{const E=d.toBase58();let l=e.get(E);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},e.set(E,l)),l},a=u(r);a.isSigner=!0,a.isWritable=!0;for(const d of n){u(d.programId).isInvoked=!0;for(const E of d.keys){const l=u(E.pubkey);l.isSigner||=E.isSigner,l.isWritable||=E.isWritable}}return new ko(r,e)}getMessageComponents(){const n=[...this.keyMetaMap.entries()];cn(n.length<=256,"Max static account keys length exceeded");const r=n.filter(([,l])=>l.isSigner&&l.isWritable),e=n.filter(([,l])=>l.isSigner&&!l.isWritable),u=n.filter(([,l])=>!l.isSigner&&l.isWritable),a=n.filter(([,l])=>!l.isSigner&&!l.isWritable),d={numRequiredSignatures:r.length+e.length,numReadonlySignedAccounts:e.length,numReadonlyUnsignedAccounts:a.length};{cn(r.length>0,"Expected at least one writable signer key");const[l]=r[0];cn(l===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const E=[...r.map(([l])=>new ge(l)),...e.map(([l])=>new ge(l)),...u.map(([l])=>new ge(l)),...a.map(([l])=>new ge(l))];return[d,E]}extractTableLookup(n){const[r,e]=this.drainKeysFoundInLookupTable(n.state.addresses,d=>!d.isSigner&&!d.isInvoked&&d.isWritable),[u,a]=this.drainKeysFoundInLookupTable(n.state.addresses,d=>!d.isSigner&&!d.isInvoked&&!d.isWritable);if(!(r.length===0&&u.length===0))return[{accountKey:n.key,writableIndexes:r,readonlyIndexes:u},{writable:e,readonly:a}]}drainKeysFoundInLookupTable(n,r){const e=new Array,u=new Array;for(const[a,d]of this.keyMetaMap.entries())if(r(d)){const E=new ge(a),l=n.findIndex(b=>b.equals(E));l>=0&&(cn(l<256,"Max lookup table index exceeded"),e.push(l),u.push(E),this.keyMetaMap.delete(a))}return[e,u]}}const xc="Reached end of buffer unexpectedly";function fr(t){if(t.length===0)throw new Error(xc);return t.shift()}function Bn(t,...n){const[r]=n;if(n.length===2?r+(n[1]??0)>t.length:r>=t.length)throw new Error(xc);return t.splice(...n)}class Hr{constructor(n){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=n.header,this.accountKeys=n.accountKeys.map(r=>new ge(r)),this.recentBlockhash=n.recentBlockhash,this.instructions=n.instructions,this.instructions.forEach(r=>this.indexToProgramIds.set(r.programIdIndex,this.accountKeys[r.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(n=>({programIdIndex:n.programIdIndex,accountKeyIndexes:n.accounts,data:An.decode(n.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new Mi(this.staticAccountKeys)}static compile(n){const r=ko.compile(n.instructions,n.payerKey),[e,u]=r.getMessageComponents(),d=new Mi(u).compileInstructions(n.instructions).map(E=>({programIdIndex:E.programIdIndex,accounts:E.accountKeyIndexes,data:An.encode(E.data)}));return new Hr({header:e,accountKeys:u,recentBlockhash:n.recentBlockhash,instructions:d})}isAccountSigner(n){return n<this.header.numRequiredSignatures}isAccountWritable(n){const r=this.header.numRequiredSignatures;if(n>=this.header.numRequiredSignatures){const e=n-r,a=this.accountKeys.length-r-this.header.numReadonlyUnsignedAccounts;return e<a}else{const e=r-this.header.numReadonlySignedAccounts;return n<e}}isProgramId(n){return this.indexToProgramIds.has(n)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((n,r)=>!this.isProgramId(r))}serialize(){const n=this.accountKeys.length;let r=[];Cn(r,n);const e=this.instructions.map(L=>{const{accounts:N,programIdIndex:x}=L,M=Array.from(An.decode(L.data));let D=[];Cn(D,N.length);let Y=[];return Cn(Y,M.length),{programIdIndex:x,keyIndicesCount:Ae.Buffer.from(D),keyIndices:N,dataLength:Ae.Buffer.from(Y),data:M}});let u=[];Cn(u,e.length);let a=Ae.Buffer.alloc(Vr);Ae.Buffer.from(u).copy(a);let d=u.length;e.forEach(L=>{const x=dt.struct([dt.u8("programIdIndex"),dt.blob(L.keyIndicesCount.length,"keyIndicesCount"),dt.seq(dt.u8("keyIndex"),L.keyIndices.length,"keyIndices"),dt.blob(L.dataLength.length,"dataLength"),dt.seq(dt.u8("userdatum"),L.data.length,"data")]).encode(L,a,d);d+=x}),a=a.slice(0,d);const E=dt.struct([dt.blob(1,"numRequiredSignatures"),dt.blob(1,"numReadonlySignedAccounts"),dt.blob(1,"numReadonlyUnsignedAccounts"),dt.blob(r.length,"keyCount"),dt.seq(Se("key"),n,"keys"),Se("recentBlockhash")]),l={numRequiredSignatures:Ae.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:Ae.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:Ae.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:Ae.Buffer.from(r),keys:this.accountKeys.map(L=>$s(L.toBytes())),recentBlockhash:An.decode(this.recentBlockhash)};let b=Ae.Buffer.alloc(2048);const T=E.encode(l,b);return a.copy(b,T),b.slice(0,T+a.length)}static from(n){let r=[...n];const e=fr(r);if(e!==(e&Mo))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const u=fr(r),a=fr(r),d=Ln(r);let E=[];for(let N=0;N<d;N++){const x=Bn(r,0,cr);E.push(new ge(Ae.Buffer.from(x)))}const l=Bn(r,0,cr),b=Ln(r);let T=[];for(let N=0;N<b;N++){const x=fr(r),M=Ln(r),D=Bn(r,0,M),Y=Ln(r),W=Bn(r,0,Y),J=An.encode(Ae.Buffer.from(W));T.push({programIdIndex:x,accounts:D,data:J})}const L={header:{numRequiredSignatures:e,numReadonlySignedAccounts:u,numReadonlyUnsignedAccounts:a},recentBlockhash:An.encode(Ae.Buffer.from(l)),accountKeys:E,instructions:T};return new Hr(L)}}class ki{constructor(n){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=n.header,this.staticAccountKeys=n.staticAccountKeys,this.recentBlockhash=n.recentBlockhash,this.compiledInstructions=n.compiledInstructions,this.addressTableLookups=n.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let n=0;for(const r of this.addressTableLookups)n+=r.readonlyIndexes.length+r.writableIndexes.length;return n}getAccountKeys(n){let r;if(n&&"accountKeysFromLookups"in n&&n.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=n.accountKeysFromLookups.writable.length+n.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");r=n.accountKeysFromLookups}else if(n&&"addressLookupTableAccounts"in n&&n.addressLookupTableAccounts)r=this.resolveAddressTableLookups(n.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new Mi(this.staticAccountKeys,r)}isAccountSigner(n){return n<this.header.numRequiredSignatures}isAccountWritable(n){const r=this.header.numRequiredSignatures,e=this.staticAccountKeys.length;if(n>=e){const u=n-e,a=this.addressTableLookups.reduce((d,E)=>d+E.writableIndexes.length,0);return u<a}else if(n>=this.header.numRequiredSignatures){const u=n-r,d=e-r-this.header.numReadonlyUnsignedAccounts;return u<d}else{const u=r-this.header.numReadonlySignedAccounts;return n<u}}resolveAddressTableLookups(n){const r={writable:[],readonly:[]};for(const e of this.addressTableLookups){const u=n.find(a=>a.key.equals(e.accountKey));if(!u)throw new Error(`Failed to find address lookup table account for table key ${e.accountKey.toBase58()}`);for(const a of e.writableIndexes)if(a<u.state.addresses.length)r.writable.push(u.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${e.accountKey.toBase58()}`);for(const a of e.readonlyIndexes)if(a<u.state.addresses.length)r.readonly.push(u.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${e.accountKey.toBase58()}`)}return r}static compile(n){const r=ko.compile(n.instructions,n.payerKey),e=new Array,u={writable:new Array,readonly:new Array},a=n.addressLookupTableAccounts||[];for(const T of a){const L=r.extractTableLookup(T);if(L!==void 0){const[N,{writable:x,readonly:M}]=L;e.push(N),u.writable.push(...x),u.readonly.push(...M)}}const[d,E]=r.getMessageComponents(),b=new Mi(E,u).compileInstructions(n.instructions);return new ki({header:d,staticAccountKeys:E,recentBlockhash:n.recentBlockhash,compiledInstructions:b,addressTableLookups:e})}serialize(){const n=Array();Cn(n,this.staticAccountKeys.length);const r=this.serializeInstructions(),e=Array();Cn(e,this.compiledInstructions.length);const u=this.serializeAddressTableLookups(),a=Array();Cn(a,this.addressTableLookups.length);const d=dt.struct([dt.u8("prefix"),dt.struct([dt.u8("numRequiredSignatures"),dt.u8("numReadonlySignedAccounts"),dt.u8("numReadonlyUnsignedAccounts")],"header"),dt.blob(n.length,"staticAccountKeysLength"),dt.seq(Se(),this.staticAccountKeys.length,"staticAccountKeys"),Se("recentBlockhash"),dt.blob(e.length,"instructionsLength"),dt.blob(r.length,"serializedInstructions"),dt.blob(a.length,"addressTableLookupsLength"),dt.blob(u.length,"serializedAddressTableLookups")]),E=new Uint8Array(Vr),b=d.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(n),staticAccountKeys:this.staticAccountKeys.map(T=>T.toBytes()),recentBlockhash:An.decode(this.recentBlockhash),instructionsLength:new Uint8Array(e),serializedInstructions:r,addressTableLookupsLength:new Uint8Array(a),serializedAddressTableLookups:u},E);return E.slice(0,b)}serializeInstructions(){let n=0;const r=new Uint8Array(Vr);for(const e of this.compiledInstructions){const u=Array();Cn(u,e.accountKeyIndexes.length);const a=Array();Cn(a,e.data.length);const d=dt.struct([dt.u8("programIdIndex"),dt.blob(u.length,"encodedAccountKeyIndexesLength"),dt.seq(dt.u8(),e.accountKeyIndexes.length,"accountKeyIndexes"),dt.blob(a.length,"encodedDataLength"),dt.blob(e.data.length,"data")]);n+=d.encode({programIdIndex:e.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(u),accountKeyIndexes:e.accountKeyIndexes,encodedDataLength:new Uint8Array(a),data:e.data},r,n)}return r.slice(0,n)}serializeAddressTableLookups(){let n=0;const r=new Uint8Array(Vr);for(const e of this.addressTableLookups){const u=Array();Cn(u,e.writableIndexes.length);const a=Array();Cn(a,e.readonlyIndexes.length);const d=dt.struct([Se("accountKey"),dt.blob(u.length,"encodedWritableIndexesLength"),dt.seq(dt.u8(),e.writableIndexes.length,"writableIndexes"),dt.blob(a.length,"encodedReadonlyIndexesLength"),dt.seq(dt.u8(),e.readonlyIndexes.length,"readonlyIndexes")]);n+=d.encode({accountKey:e.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(u),writableIndexes:e.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(a),readonlyIndexes:e.readonlyIndexes},r,n)}return r.slice(0,n)}static deserialize(n){let r=[...n];const e=fr(r),u=e&Mo;cn(e!==u,"Expected versioned message but received legacy message");const a=u;cn(a===0,`Expected versioned message with version 0 but found version ${a}`);const d={numRequiredSignatures:fr(r),numReadonlySignedAccounts:fr(r),numReadonlyUnsignedAccounts:fr(r)},E=[],l=Ln(r);for(let M=0;M<l;M++)E.push(new ge(Bn(r,0,cr)));const b=An.encode(Bn(r,0,cr)),T=Ln(r),L=[];for(let M=0;M<T;M++){const D=fr(r),Y=Ln(r),W=Bn(r,0,Y),J=Ln(r),q=new Uint8Array(Bn(r,0,J));L.push({programIdIndex:D,accountKeyIndexes:W,data:q})}const N=Ln(r),x=[];for(let M=0;M<N;M++){const D=new ge(Bn(r,0,cr)),Y=Ln(r),W=Bn(r,0,Y),J=Ln(r),q=Bn(r,0,J);x.push({accountKey:D,writableIndexes:W,readonlyIndexes:q})}return new ki({header:d,staticAccountKeys:E,recentBlockhash:b,compiledInstructions:L,addressTableLookups:x})}}const Js={deserializeMessageVersion(t){const n=t[0],r=n&Mo;return r===n?"legacy":r},deserialize:t=>{const n=Js.deserializeMessageVersion(t);if(n==="legacy")return Hr.from(t);if(n===0)return ki.deserialize(t);throw new Error(`Transaction message version ${n} deserialization is not supported`)}},c3=Ae.Buffer.alloc(Bi).fill(0);class Qs{constructor(n){this.keys=void 0,this.programId=void 0,this.data=Ae.Buffer.alloc(0),this.programId=n.programId,this.keys=n.keys,n.data&&(this.data=n.data)}toJSON(){return{keys:this.keys.map(({pubkey:n,isSigner:r,isWritable:e})=>({pubkey:n.toJSON(),isSigner:r,isWritable:e})),programId:this.programId.toJSON(),data:[...this.data]}}}class Uo{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(n){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!n)if(n.feePayer&&(this.feePayer=n.feePayer),n.signatures&&(this.signatures=n.signatures),Object.prototype.hasOwnProperty.call(n,"nonceInfo")){const{minContextSlot:r,nonceInfo:e}=n;this.minNonceContextSlot=r,this.nonceInfo=e}else if(Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")){const{blockhash:r,lastValidBlockHeight:e}=n;this.recentBlockhash=r,this.lastValidBlockHeight=e}else{const{recentBlockhash:r,nonceInfo:e}=n;e&&(this.nonceInfo=e),this.recentBlockhash=r}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(n=>n.toJSON()),signers:this.signatures.map(({publicKey:n})=>n.toJSON())}}add(...n){if(n.length===0)throw new Error("No instructions");return n.forEach(r=>{"instructions"in r?this.instructions=this.instructions.concat(r.instructions):"data"in r&&"programId"in r&&"keys"in r?this.instructions.push(r):this.instructions.push(new Qs(r))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let n,r;if(this.nonceInfo?(n=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?r=[this.nonceInfo.nonceInstruction,...this.instructions]:r=this.instructions):(n=this.recentBlockhash,r=this.instructions),!n)throw new Error("Transaction recentBlockhash required");r.length<1&&console.warn("No instructions provided");let e;if(this.feePayer)e=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)e=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let D=0;D<r.length;D++)if(r[D].programId===void 0)throw new Error(`Transaction instruction index ${D} has undefined program id`);const u=[],a=[];r.forEach(D=>{D.keys.forEach(W=>{a.push({...W})});const Y=D.programId.toString();u.includes(Y)||u.push(Y)}),u.forEach(D=>{a.push({pubkey:new ge(D),isSigner:!1,isWritable:!1})});const d=[];a.forEach(D=>{const Y=D.pubkey.toString(),W=d.findIndex(J=>J.pubkey.toString()===Y);W>-1?(d[W].isWritable=d[W].isWritable||D.isWritable,d[W].isSigner=d[W].isSigner||D.isSigner):d.push(D)}),d.sort(function(D,Y){if(D.isSigner!==Y.isSigner)return D.isSigner?-1:1;if(D.isWritable!==Y.isWritable)return D.isWritable?-1:1;const W={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return D.pubkey.toBase58().localeCompare(Y.pubkey.toBase58(),"en",W)});const E=d.findIndex(D=>D.pubkey.equals(e));if(E>-1){const[D]=d.splice(E,1);D.isSigner=!0,D.isWritable=!0,d.unshift(D)}else d.unshift({pubkey:e,isSigner:!0,isWritable:!0});for(const D of this.signatures){const Y=d.findIndex(W=>W.pubkey.equals(D.publicKey));if(Y>-1)d[Y].isSigner||(d[Y].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${D.publicKey.toString()}`)}let l=0,b=0,T=0;const L=[],N=[];d.forEach(({pubkey:D,isSigner:Y,isWritable:W})=>{Y?(L.push(D.toString()),l+=1,W||(b+=1)):(N.push(D.toString()),W||(T+=1))});const x=L.concat(N),M=r.map(D=>{const{data:Y,programId:W}=D;return{programIdIndex:x.indexOf(W.toString()),accounts:D.keys.map(J=>x.indexOf(J.pubkey.toString())),data:An.encode(Y)}});return M.forEach(D=>{cn(D.programIdIndex>=0),D.accounts.forEach(Y=>cn(Y>=0))}),new Hr({header:{numRequiredSignatures:l,numReadonlySignedAccounts:b,numReadonlyUnsignedAccounts:T},accountKeys:x,recentBlockhash:n,instructions:M})}_compile(){const n=this.compileMessage(),r=n.accountKeys.slice(0,n.header.numRequiredSignatures);return this.signatures.length===r.length&&this.signatures.every((u,a)=>r[a].equals(u.publicKey))||(this.signatures=r.map(e=>({signature:null,publicKey:e}))),n}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(n){return(await n.getFeeForMessage(this.compileMessage())).value}setSigners(...n){if(n.length===0)throw new Error("No signers");const r=new Set;this.signatures=n.filter(e=>{const u=e.toString();return r.has(u)?!1:(r.add(u),!0)}).map(e=>({signature:null,publicKey:e}))}sign(...n){if(n.length===0)throw new Error("No signers");const r=new Set,e=[];for(const a of n){const d=a.publicKey.toString();r.has(d)||(r.add(d),e.push(a))}this.signatures=e.map(a=>({signature:null,publicKey:a.publicKey}));const u=this._compile();this._partialSign(u,...e)}partialSign(...n){if(n.length===0)throw new Error("No signers");const r=new Set,e=[];for(const a of n){const d=a.publicKey.toString();r.has(d)||(r.add(d),e.push(a))}const u=this._compile();this._partialSign(u,...e)}_partialSign(n,...r){const e=n.serialize();r.forEach(u=>{const a=Sc(e,u.secretKey);this._addSignature(u.publicKey,$s(a))})}addSignature(n,r){this._compile(),this._addSignature(n,r)}_addSignature(n,r){cn(r.length===64);const e=this.signatures.findIndex(u=>n.equals(u.publicKey));if(e<0)throw new Error(`unknown signer: ${n.toString()}`);this.signatures[e].signature=Ae.Buffer.from(r)}verifySignatures(n=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),n)}_getMessageSignednessErrors(n,r){const e={};for(const{signature:u,publicKey:a}of this.signatures)u===null?r&&(e.missing||=[]).push(a):n3(u,n,a.toBytes())||(e.invalid||=[]).push(a);return e.invalid||e.missing?e:void 0}serialize(n){const{requireAllSignatures:r,verifySignatures:e}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},n),u=this.serializeMessage();if(e){const a=this._getMessageSignednessErrors(u,r);if(a){let d="Signature verification failed.";throw a.invalid&&(d+=`
|
|
6
|
+
Invalid signature for public key${a.invalid.length===1?"":"(s)"} [\`${a.invalid.map(E=>E.toBase58()).join("`, `")}\`].`),a.missing&&(d+=`
|
|
7
|
+
Missing signature for public key${a.missing.length===1?"":"(s)"} [\`${a.missing.map(E=>E.toBase58()).join("`, `")}\`].`),new Error(d)}}return this._serialize(u)}_serialize(n){const{signatures:r}=this,e=[];Cn(e,r.length);const u=e.length+r.length*64+n.length,a=Ae.Buffer.alloc(u);return cn(r.length<256),Ae.Buffer.from(e).copy(a,0),r.forEach(({signature:d},E)=>{d!==null&&(cn(d.length===64,"signature has invalid length"),Ae.Buffer.from(d).copy(a,e.length+E*64))}),n.copy(a,e.length+r.length*64),cn(a.length<=Vr,`Transaction too large: ${a.length} > ${Vr}`),a}get keys(){return cn(this.instructions.length===1),this.instructions[0].keys.map(n=>n.pubkey)}get programId(){return cn(this.instructions.length===1),this.instructions[0].programId}get data(){return cn(this.instructions.length===1),this.instructions[0].data}static from(n){let r=[...n];const e=Ln(r);let u=[];for(let a=0;a<e;a++){const d=Bn(r,0,Bi);u.push(An.encode(Ae.Buffer.from(d)))}return Uo.populate(Hr.from(r),u)}static populate(n,r=[]){const e=new Uo;return e.recentBlockhash=n.recentBlockhash,n.header.numRequiredSignatures>0&&(e.feePayer=n.accountKeys[0]),r.forEach((u,a)=>{const d={signature:u==An.encode(c3)?null:An.decode(u),publicKey:n.accountKeys[a]};e.signatures.push(d)}),n.instructions.forEach(u=>{const a=u.accounts.map(d=>{const E=n.accountKeys[d];return{pubkey:E,isSigner:e.signatures.some(l=>l.publicKey.toString()===E.toString())||n.isAccountSigner(d),isWritable:n.isAccountWritable(d)}});e.instructions.push(new Qs({keys:a,programId:n.accountKeys[u.programIdIndex],data:An.decode(u.data)}))}),e._message=n,e._json=e.toJSON(),e}}class ta{get version(){return this.message.version}constructor(n,r){if(this.signatures=void 0,this.message=void 0,r!==void 0)cn(r.length===n.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=r;else{const e=[];for(let u=0;u<n.header.numRequiredSignatures;u++)e.push(new Uint8Array(Bi));this.signatures=e}this.message=n}serialize(){const n=this.message.serialize(),r=Array();Cn(r,this.signatures.length);const e=dt.struct([dt.blob(r.length,"encodedSignaturesLength"),dt.seq(i3(),this.signatures.length,"signatures"),dt.blob(n.length,"serializedMessage")]),u=new Uint8Array(2048),a=e.encode({encodedSignaturesLength:new Uint8Array(r),signatures:this.signatures,serializedMessage:n},u);return u.slice(0,a)}static deserialize(n){let r=[...n];const e=[],u=Ln(r);for(let d=0;d<u;d++)e.push(new Uint8Array(Bn(r,0,Bi)));const a=Js.deserialize(new Uint8Array(r));return new ta(a,e)}sign(n){const r=this.message.serialize(),e=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const u of n){const a=e.findIndex(d=>d.equals(u.publicKey));cn(a>=0,`Cannot sign with non signer key ${u.publicKey.toBase58()}`),this.signatures[a]=Sc(r,u.secretKey)}}addSignature(n,r){cn(r.byteLength===64,"Signature must be 64 bytes long");const u=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(a=>a.equals(n));cn(u>=0,`Can not add signature; \`${n.toBase58()}\` is not required to sign this transaction`),this.signatures[u]=r}}new ge("SysvarC1ock11111111111111111111111111111111"),new ge("SysvarEpochSchedu1e111111111111111111111111"),new ge("Sysvar1nstructions1111111111111111111111111"),new ge("SysvarRecentB1ockHashes11111111111111111111"),new ge("SysvarRent111111111111111111111111111111111"),new ge("SysvarRewards111111111111111111111111111111"),new ge("SysvarS1otHashes111111111111111111111111111"),new ge("SysvarS1otHistory11111111111111111111111111"),new ge("SysvarStakeHistory1111111111111111111111111");const Lc=dt.nu64("lamportsPerSignature");dt.struct([dt.u32("version"),dt.u32("state"),Se("authorizedPubkey"),Se("nonce"),dt.struct([Lc],"feeCalculator")]).span;function ci(t){const n=dt.blob(8,t),r=n.decode.bind(n),e=n.encode.bind(n),u=n,a=dv();return u.decode=(d,E)=>{const l=r(d,E);return a.decode(l)},u.encode=(d,E,l)=>{const b=a.encode(d);return e(b,E,l)},u}Object.freeze({Create:{index:0,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports"),dt.ns64("space"),Se("programId")])},Assign:{index:1,layout:dt.struct([dt.u32("instruction"),Se("programId")])},Transfer:{index:2,layout:dt.struct([dt.u32("instruction"),ci("lamports")])},CreateWithSeed:{index:3,layout:dt.struct([dt.u32("instruction"),Se("base"),ui("seed"),dt.ns64("lamports"),dt.ns64("space"),Se("programId")])},AdvanceNonceAccount:{index:4,layout:dt.struct([dt.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:dt.struct([dt.u32("instruction"),Se("authorized")])},AuthorizeNonceAccount:{index:7,layout:dt.struct([dt.u32("instruction"),Se("authorized")])},Allocate:{index:8,layout:dt.struct([dt.u32("instruction"),dt.ns64("space")])},AllocateWithSeed:{index:9,layout:dt.struct([dt.u32("instruction"),Se("base"),ui("seed"),dt.ns64("space"),Se("programId")])},AssignWithSeed:{index:10,layout:dt.struct([dt.u32("instruction"),Se("base"),ui("seed"),Se("programId")])},TransferWithSeed:{index:11,layout:dt.struct([dt.u32("instruction"),ci("lamports"),ui("seed"),Se("programId")])},UpgradeNonceAccount:{index:12,layout:dt.struct([dt.u32("instruction")])}}),new ge("11111111111111111111111111111111"),new ge("BPFLoader2111111111111111111111111111111111"),dt.struct([dt.u32("typeIndex"),ci("deactivationSlot"),dt.nu64("lastExtendedSlot"),dt.u8("lastExtendedStartIndex"),dt.u8(),dt.seq(Se(),dt.offset(dt.u8(),-1),"authority")]);const Xe=Li(Ds(ge),qt(),t=>new ge(t)),Cc=Ps([qt(),je("base64")]),ea=Li(Ds(Ae.Buffer),Cc,t=>Ae.Buffer.from(t[0],"base64"));function Bc(t){return Sn([Pt({jsonrpc:je("2.0"),id:qt(),result:t}),Pt({jsonrpc:je("2.0"),id:qt(),error:Pt({code:oi(),message:qt(),data:ce(wv())})})])}const f3=Bc(oi());function Fe(t){return Li(Bc(t),f3,n=>"error"in n?n:{...n,result:Ni(n.result,t)})}function Hn(t){return Fe(Pt({context:Pt({slot:It()}),value:t}))}function Do(t){return Pt({context:Pt({slot:It()}),value:t})}const l3=Pt({foundation:It(),foundationTerm:It(),initial:It(),taper:It(),terminal:It()});Fe(re(ie(Pt({epoch:It(),effectiveSlot:It(),amount:It(),postBalance:It(),commission:ce(ie(It()))}))));const d3=re(Pt({slot:It(),prioritizationFee:It()})),h3=Pt({total:It(),validator:It(),foundation:It(),epoch:It()}),p3=Pt({epoch:It(),slotIndex:It(),slotsInEpoch:It(),absoluteSlot:It(),blockHeight:ce(It()),transactionCount:ce(It())}),v3=Pt({slotsPerEpoch:It(),leaderScheduleSlotOffset:It(),warmup:$n(),firstNormalEpoch:It(),firstNormalSlot:It()}),g3=ac(qt(),re(It())),Gr=ie(Sn([Pt({}),qt()])),m3=Pt({err:Gr}),y3=je("receivedSignature");Pt({"solana-core":qt(),"feature-set":ce(It())});const w3=Pt({program:qt(),programId:Xe,parsed:oi()}),E3=Pt({programId:Xe,accounts:re(Xe),data:qt()});Hn(Pt({err:ie(Sn([Pt({}),qt()])),logs:ie(re(qt())),accounts:ce(ie(re(ie(Pt({executable:$n(),owner:qt(),lamports:It(),data:re(qt()),rentEpoch:ce(It())}))))),unitsConsumed:ce(It()),returnData:ce(ie(Pt({programId:qt(),data:Ps([qt(),je("base64")])}))),innerInstructions:ce(ie(re(Pt({index:It(),instructions:re(Sn([w3,E3]))}))))})),Hn(Pt({byIdentity:ac(qt(),re(It())),range:Pt({firstSlot:It(),lastSlot:It()})})),Fe(l3),Fe(h3),Fe(d3),Fe(p3),Fe(v3),Fe(g3),Fe(It()),Hn(Pt({total:It(),circulating:It(),nonCirculating:It(),nonCirculatingAccounts:re(Xe)}));const b3=Pt({amount:qt(),uiAmount:ie(It()),decimals:It(),uiAmountString:ce(qt())});Hn(re(Pt({address:Xe,amount:qt(),uiAmount:ie(It()),decimals:It(),uiAmountString:ce(qt())}))),Hn(re(Pt({pubkey:Xe,account:Pt({executable:$n(),owner:Xe,lamports:It(),data:ea,rentEpoch:It()})})));const na=Pt({program:qt(),parsed:oi(),space:It()});Hn(re(Pt({pubkey:Xe,account:Pt({executable:$n(),owner:Xe,lamports:It(),data:na,rentEpoch:It()})}))),Hn(re(Pt({lamports:It(),address:Xe})));const ra=Pt({executable:$n(),owner:Xe,lamports:It(),data:ea,rentEpoch:It()});Pt({pubkey:Xe,account:ra});const _3=Li(Sn([Ds(Ae.Buffer),na]),Sn([Cc,na]),t=>Array.isArray(t)?Ni(t,ea):t),R3=Pt({executable:$n(),owner:Xe,lamports:It(),data:_3,rentEpoch:It()});Pt({pubkey:Xe,account:R3}),Pt({state:Sn([je("active"),je("inactive"),je("activating"),je("deactivating")]),active:It(),inactive:It()}),Fe(re(Pt({signature:qt(),slot:It(),err:Gr,memo:ie(qt()),blockTime:ce(ie(It()))}))),Fe(re(Pt({signature:qt(),slot:It(),err:Gr,memo:ie(qt()),blockTime:ce(ie(It()))}))),Pt({subscription:It(),result:Do(ra)});const A3=Pt({pubkey:Xe,account:ra});Pt({subscription:It(),result:Do(A3)});const S3=Pt({parent:It(),slot:It(),root:It()});Pt({subscription:It(),result:S3});const I3=Sn([Pt({type:Sn([je("firstShredReceived"),je("completed"),je("optimisticConfirmation"),je("root")]),slot:It(),timestamp:It()}),Pt({type:je("createdBank"),parent:It(),slot:It(),timestamp:It()}),Pt({type:je("frozen"),slot:It(),timestamp:It(),stats:Pt({numTransactionEntries:It(),numSuccessfulTransactions:It(),numFailedTransactions:It(),maxTransactionsPerEntry:It()})}),Pt({type:je("dead"),slot:It(),timestamp:It(),err:qt()})]);Pt({subscription:It(),result:I3}),Pt({subscription:It(),result:Do(Sn([m3,y3]))}),Pt({subscription:It(),result:It()}),Pt({pubkey:qt(),gossip:ie(qt()),tpu:ie(qt()),rpc:ie(qt()),version:ie(qt())});const Mc=Pt({votePubkey:qt(),nodePubkey:qt(),activatedStake:It(),epochVoteAccount:$n(),epochCredits:re(Ps([It(),It(),It()])),commission:It(),lastVote:It(),rootSlot:ie(It())});Fe(Pt({current:re(Mc),delinquent:re(Mc)}));const O3=Sn([je("processed"),je("confirmed"),je("finalized")]),T3=Pt({slot:It(),confirmations:ie(It()),err:Gr,confirmationStatus:ce(O3)});Hn(re(ie(T3))),Fe(It());const kc=Pt({accountKey:Xe,writableIndexes:re(It()),readonlyIndexes:re(It())}),ia=Pt({signatures:re(qt()),message:Pt({accountKeys:re(qt()),header:Pt({numRequiredSignatures:It(),numReadonlySignedAccounts:It(),numReadonlyUnsignedAccounts:It()}),instructions:re(Pt({accounts:re(It()),data:qt(),programIdIndex:It()})),recentBlockhash:qt(),addressTableLookups:ce(re(kc))})}),Uc=Pt({pubkey:Xe,signer:$n(),writable:$n(),source:ce(Sn([je("transaction"),je("lookupTable")]))}),Dc=Pt({accountKeys:re(Uc),signatures:re(qt())}),Pc=Pt({parsed:oi(),program:qt(),programId:Xe}),Fc=Pt({accounts:re(Xe),data:qt(),programId:Xe}),N3=Sn([Fc,Pc]),x3=Sn([Pt({parsed:oi(),program:qt(),programId:qt()}),Pt({accounts:re(qt()),data:qt(),programId:qt()})]),Vc=Li(N3,x3,t=>"accounts"in t?Ni(t,Fc):Ni(t,Pc)),Hc=Pt({signatures:re(qt()),message:Pt({accountKeys:re(Uc),instructions:re(Vc),recentBlockhash:qt(),addressTableLookups:ce(ie(re(kc)))})}),Po=Pt({accountIndex:It(),mint:qt(),owner:ce(qt()),programId:ce(qt()),uiTokenAmount:b3}),Gc=Pt({writable:re(Xe),readonly:re(Xe)}),Fo=Pt({err:Gr,fee:It(),innerInstructions:ce(ie(re(Pt({index:It(),instructions:re(Pt({accounts:re(It()),data:qt(),programIdIndex:It()}))})))),preBalances:re(It()),postBalances:re(It()),logMessages:ce(ie(re(qt()))),preTokenBalances:ce(ie(re(Po))),postTokenBalances:ce(ie(re(Po))),loadedAddresses:ce(Gc),computeUnitsConsumed:ce(It()),costUnits:ce(It())}),oa=Pt({err:Gr,fee:It(),innerInstructions:ce(ie(re(Pt({index:It(),instructions:re(Vc)})))),preBalances:re(It()),postBalances:re(It()),logMessages:ce(ie(re(qt()))),preTokenBalances:ce(ie(re(Po))),postTokenBalances:ce(ie(re(Po))),loadedAddresses:ce(Gc),computeUnitsConsumed:ce(It()),costUnits:ce(It())}),fi=Sn([je(0),je("legacy")]),jr=Pt({pubkey:qt(),lamports:It(),postBalance:ie(It()),rewardType:ie(qt()),commission:ce(ie(It()))});Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Pt({transaction:ia,meta:ie(Fo),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Pt({transaction:Dc,meta:ie(Fo),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Pt({transaction:Hc,meta:ie(oa),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Pt({transaction:Dc,meta:ie(oa),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Pt({transaction:ia,meta:ie(Fo)})),rewards:ce(re(jr)),blockTime:ie(It())}))),Fe(ie(Pt({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),signatures:re(qt()),blockTime:ie(It())}))),Fe(ie(Pt({slot:It(),meta:ie(Fo),blockTime:ce(ie(It())),transaction:ia,version:ce(fi)}))),Fe(ie(Pt({slot:It(),transaction:Hc,meta:ie(oa),blockTime:ce(ie(It())),version:ce(fi)}))),Hn(Pt({blockhash:qt(),lastValidBlockHeight:It()})),Hn($n());const L3=Pt({slot:It(),numTransactions:It(),numSlots:It(),samplePeriodSecs:It()});Fe(re(L3)),Hn(ie(Pt({feeCalculator:Pt({lamportsPerSignature:It()})}))),Fe(qt()),Fe(qt());const C3=Pt({err:Gr,logs:re(qt()),signature:qt()});Pt({result:Do(C3),subscription:It()}),Object.freeze({CreateLookupTable:{index:0,layout:dt.struct([dt.u32("instruction"),ci("recentSlot"),dt.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:dt.struct([dt.u32("instruction")])},ExtendLookupTable:{index:2,layout:dt.struct([dt.u32("instruction"),ci(),dt.seq(Se(),dt.offset(dt.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:dt.struct([dt.u32("instruction")])},CloseLookupTable:{index:4,layout:dt.struct([dt.u32("instruction")])}}),new ge("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:dt.struct([dt.u8("instruction"),dt.u32("units"),dt.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:dt.struct([dt.u8("instruction"),dt.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:dt.struct([dt.u8("instruction"),dt.u32("units")])},SetComputeUnitPrice:{index:3,layout:dt.struct([dt.u8("instruction"),ci("microLamports")])}}),new ge("ComputeBudget111111111111111111111111111111"),dt.struct([dt.u8("numSignatures"),dt.u8("padding"),dt.u16("signatureOffset"),dt.u16("signatureInstructionIndex"),dt.u16("publicKeyOffset"),dt.u16("publicKeyInstructionIndex"),dt.u16("messageDataOffset"),dt.u16("messageDataSize"),dt.u16("messageInstructionIndex")]),new ge("Ed25519SigVerify111111111111111111111111111"),e3.utils.isValidPrivateKey,dt.struct([dt.u8("numSignatures"),dt.u16("signatureOffset"),dt.u8("signatureInstructionIndex"),dt.u16("ethAddressOffset"),dt.u8("ethAddressInstructionIndex"),dt.u16("messageDataOffset"),dt.u16("messageDataSize"),dt.u8("messageInstructionIndex"),dt.blob(20,"ethAddress"),dt.blob(64,"signature"),dt.u8("recoveryId")]),new ge("KeccakSecp256k11111111111111111111111111111");var jc;new ge("StakeConfig11111111111111111111111111111111");class sa{constructor(n,r,e){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=n,this.epoch=r,this.custodian=e}}jc=sa,sa.default=new jc(0,0,ge.default),Object.freeze({Initialize:{index:0,layout:dt.struct([dt.u32("instruction"),o3(),s3()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Se("newAuthorized"),dt.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:dt.struct([dt.u32("instruction")])},Split:{index:3,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},Withdraw:{index:4,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},Deactivate:{index:5,layout:dt.struct([dt.u32("instruction")])},Merge:{index:7,layout:dt.struct([dt.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:dt.struct([dt.u32("instruction"),Se("newAuthorized"),dt.u32("stakeAuthorizationType"),ui("authoritySeed"),Se("authorityOwner")])}}),new ge("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:dt.struct([dt.u32("instruction"),a3()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Se("newAuthorized"),dt.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:dt.struct([dt.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:dt.struct([dt.u32("instruction"),u3()])}}),new ge("Vote111111111111111111111111111111111111111"),new ge("Va1idator1nfo111111111111111111111111111111"),Pt({name:qt(),website:ce(qt()),details:ce(qt()),iconUrl:ce(qt()),keybaseUsername:ce(qt())}),new ge("Vote111111111111111111111111111111111111111"),dt.struct([Se("nodePubkey"),Se("authorizedWithdrawer"),dt.u8("commission"),dt.nu64(),dt.seq(dt.struct([dt.nu64("slot"),dt.u32("confirmationCount")]),dt.offset(dt.u32(),-8),"votes"),dt.u8("rootSlotValid"),dt.nu64("rootSlot"),dt.nu64(),dt.seq(dt.struct([dt.nu64("epoch"),Se("authorizedVoter")]),dt.offset(dt.u32(),-8),"authorizedVoters"),dt.struct([dt.seq(dt.struct([Se("authorizedPubkey"),dt.nu64("epochOfLastAuthorizedSwitch"),dt.nu64("targetEpoch")]),32,"buf"),dt.nu64("idx"),dt.u8("isEmpty")],"priorVoters"),dt.nu64(),dt.seq(dt.struct([dt.nu64("epoch"),dt.nu64("credits"),dt.nu64("prevCredits")]),dt.offset(dt.u32(),-8),"epochCredits"),dt.struct([dt.nu64("slot"),dt.nu64("timestamp")],"lastTimestamp")]);const B3=Object.freeze(Object.defineProperty({__proto__:null,FeeCalculatorLayout:Lc,Lockup:sa,MAX_SEED_LENGTH:Tc,Message:Hr,MessageAccountKeys:Mi,MessageV0:ki,PACKET_DATA_SIZE:Vr,PUBLIC_KEY_LENGTH:cr,PublicKey:ge,SIGNATURE_LENGTH_IN_BYTES:Bi,SOLANA_SCHEMA:Ci,Struct:Ic,Transaction:Uo,TransactionInstruction:Qs,VERSION_PREFIX_MASK:Mo,VersionedMessage:Js,VersionedTransaction:ta},Symbol.toStringTag,{value:"Module"}));function M3(t){if(t.length>=255)throw new TypeError("Alphabet too long");const n=new Uint8Array(256);for(let b=0;b<n.length;b++)n[b]=255;for(let b=0;b<t.length;b++){const T=t.charAt(b),L=T.charCodeAt(0);if(n[L]!==255)throw new TypeError(T+" is ambiguous");n[L]=b}const r=t.length,e=t.charAt(0),u=Math.log(r)/Math.log(256),a=Math.log(256)/Math.log(r);function d(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";let T=0,L=0,N=0;const x=b.length;for(;N!==x&&b[N]===0;)N++,T++;const M=(x-N)*a+1>>>0,D=new Uint8Array(M);for(;N!==x;){let J=b[N],q=0;for(let ot=M-1;(J!==0||q<L)&&ot!==-1;ot--,q++)J+=256*D[ot]>>>0,D[ot]=J%r>>>0,J=J/r>>>0;if(J!==0)throw new Error("Non-zero carry");L=q,N++}let Y=M-L;for(;Y!==M&&D[Y]===0;)Y++;let W=e.repeat(T);for(;Y<M;++Y)W+=t.charAt(D[Y]);return W}function E(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;let T=0,L=0,N=0;for(;b[T]===e;)L++,T++;const x=(b.length-T)*u+1>>>0,M=new Uint8Array(x);for(;T<b.length;){const J=b.charCodeAt(T);if(J>255)return;let q=n[J];if(q===255)return;let ot=0;for(let pt=x-1;(q!==0||ot<N)&&pt!==-1;pt--,ot++)q+=r*M[pt]>>>0,M[pt]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");N=ot,T++}let D=x-N;for(;D!==x&&M[D]===0;)D++;const Y=new Uint8Array(L+(x-D));let W=L;for(;D!==x;)Y[W++]=M[D++];return Y}function l(b){const T=E(b);if(T)return T;throw new Error("Non-base"+r+" character")}return{encode:d,decodeUnsafe:E,decode:l}}var k3="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const U3=M3(k3),Vo=B3,br=U3;var aa={exports:{}},Yc;function D3(){return Yc||(Yc=1,(function(t){var n=(function(){var r=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function d(l,b){if(!a[l]){a[l]={};for(var T=0;T<l.length;T++)a[l][l.charAt(T)]=T}return a[l][b]}var E={compressToBase64:function(l){if(l==null)return"";var b=E._compress(l,6,function(T){return e.charAt(T)});switch(b.length%4){default:case 0:return b;case 1:return b+"===";case 2:return b+"==";case 3:return b+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:E._decompress(l.length,32,function(b){return d(e,l.charAt(b))})},compressToUTF16:function(l){return l==null?"":E._compress(l,15,function(b){return r(b+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:E._decompress(l.length,16384,function(b){return l.charCodeAt(b)-32})},compressToUint8Array:function(l){for(var b=E.compress(l),T=new Uint8Array(b.length*2),L=0,N=b.length;L<N;L++){var x=b.charCodeAt(L);T[L*2]=x>>>8,T[L*2+1]=x%256}return T},decompressFromUint8Array:function(l){if(l==null)return E.decompress(l);for(var b=new Array(l.length/2),T=0,L=b.length;T<L;T++)b[T]=l[T*2]*256+l[T*2+1];var N=[];return b.forEach(function(x){N.push(r(x))}),E.decompress(N.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":E._compress(l,6,function(b){return u.charAt(b)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),E._decompress(l.length,32,function(b){return d(u,l.charAt(b))}))},compress:function(l){return E._compress(l,16,function(b){return r(b)})},_compress:function(l,b,T){if(l==null)return"";var L,N,x={},M={},D="",Y="",W="",J=2,q=3,ot=2,pt=[],ft=0,Rt=0,At;for(At=0;At<l.length;At+=1)if(D=l.charAt(At),Object.prototype.hasOwnProperty.call(x,D)||(x[D]=q++,M[D]=!0),Y=W+D,Object.prototype.hasOwnProperty.call(x,Y))W=Y;else{if(Object.prototype.hasOwnProperty.call(M,W)){if(W.charCodeAt(0)<256){for(L=0;L<ot;L++)ft=ft<<1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++;for(N=W.charCodeAt(0),L=0;L<8;L++)ft=ft<<1|N&1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=N>>1}else{for(N=1,L=0;L<ot;L++)ft=ft<<1|N,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=0;for(N=W.charCodeAt(0),L=0;L<16;L++)ft=ft<<1|N&1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=N>>1}J--,J==0&&(J=Math.pow(2,ot),ot++),delete M[W]}else for(N=x[W],L=0;L<ot;L++)ft=ft<<1|N&1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=N>>1;J--,J==0&&(J=Math.pow(2,ot),ot++),x[Y]=q++,W=String(D)}if(W!==""){if(Object.prototype.hasOwnProperty.call(M,W)){if(W.charCodeAt(0)<256){for(L=0;L<ot;L++)ft=ft<<1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++;for(N=W.charCodeAt(0),L=0;L<8;L++)ft=ft<<1|N&1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=N>>1}else{for(N=1,L=0;L<ot;L++)ft=ft<<1|N,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=0;for(N=W.charCodeAt(0),L=0;L<16;L++)ft=ft<<1|N&1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=N>>1}J--,J==0&&(J=Math.pow(2,ot),ot++),delete M[W]}else for(N=x[W],L=0;L<ot;L++)ft=ft<<1|N&1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=N>>1;J--,J==0&&(J=Math.pow(2,ot),ot++)}for(N=2,L=0;L<ot;L++)ft=ft<<1|N&1,Rt==b-1?(Rt=0,pt.push(T(ft)),ft=0):Rt++,N=N>>1;for(;;)if(ft=ft<<1,Rt==b-1){pt.push(T(ft));break}else Rt++;return pt.join("")},decompress:function(l){return l==null?"":l==""?null:E._decompress(l.length,32768,function(b){return l.charCodeAt(b)})},_decompress:function(l,b,T){var L=[],N=4,x=4,M=3,D="",Y=[],W,J,q,ot,pt,ft,Rt,At={val:T(0),position:b,index:1};for(W=0;W<3;W+=1)L[W]=W;for(q=0,pt=Math.pow(2,2),ft=1;ft!=pt;)ot=At.val&At.position,At.position>>=1,At.position==0&&(At.position=b,At.val=T(At.index++)),q|=(ot>0?1:0)*ft,ft<<=1;switch(q){case 0:for(q=0,pt=Math.pow(2,8),ft=1;ft!=pt;)ot=At.val&At.position,At.position>>=1,At.position==0&&(At.position=b,At.val=T(At.index++)),q|=(ot>0?1:0)*ft,ft<<=1;Rt=r(q);break;case 1:for(q=0,pt=Math.pow(2,16),ft=1;ft!=pt;)ot=At.val&At.position,At.position>>=1,At.position==0&&(At.position=b,At.val=T(At.index++)),q|=(ot>0?1:0)*ft,ft<<=1;Rt=r(q);break;case 2:return""}for(L[3]=Rt,J=Rt,Y.push(Rt);;){if(At.index>l)return"";for(q=0,pt=Math.pow(2,M),ft=1;ft!=pt;)ot=At.val&At.position,At.position>>=1,At.position==0&&(At.position=b,At.val=T(At.index++)),q|=(ot>0?1:0)*ft,ft<<=1;switch(Rt=q){case 0:for(q=0,pt=Math.pow(2,8),ft=1;ft!=pt;)ot=At.val&At.position,At.position>>=1,At.position==0&&(At.position=b,At.val=T(At.index++)),q|=(ot>0?1:0)*ft,ft<<=1;L[x++]=r(q),Rt=x-1,N--;break;case 1:for(q=0,pt=Math.pow(2,16),ft=1;ft!=pt;)ot=At.val&At.position,At.position>>=1,At.position==0&&(At.position=b,At.val=T(At.index++)),q|=(ot>0?1:0)*ft,ft<<=1;L[x++]=r(q),Rt=x-1,N--;break;case 2:return Y.join("")}if(N==0&&(N=Math.pow(2,M),M++),L[Rt])D=L[Rt];else if(Rt===x)D=J+J.charAt(0);else return null;Y.push(D),L[x++]=J+D.charAt(0),N--,J=D,N==0&&(N=Math.pow(2,M),M++)}}};return E})();t!=null?t.exports=n:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return n})})(aa)),aa.exports}var P3=D3();const Pn=fs(P3);var ua=(t=>(t.USD="USD",t.AED="AED",t.AFN="AFN",t.ALL="ALL",t.AMD="AMD",t.ANG="ANG",t.AOA="AOA",t.ARS="ARS",t.AUD="AUD",t.AWG="AWG",t.AZN="AZN",t.BAM="BAM",t.BBD="BBD",t.BDT="BDT",t.BGN="BGN",t.BHD="BHD",t.BIF="BIF",t.BMD="BMD",t.BND="BND",t.BOB="BOB",t.BRL="BRL",t.BSD="BSD",t.BTN="BTN",t.BWP="BWP",t.BYN="BYN",t.BZD="BZD",t.CAD="CAD",t.CHF="CHF",t.CLF="CLF",t.CLP="CLP",t.CNY="CNY",t.COP="COP",t.CRC="CRC",t.CUP="CUP",t.CVE="CVE",t.CZK="CZK",t.DJF="DJF",t.DKK="DKK",t.DOP="DOP",t.DZD="DZD",t.EGP="EGP",t.ETB="ETB",t.EUR="EUR",t.FJD="FJD",t.GBP="GBP",t.GEL="GEL",t.GHS="GHS",t.GMD="GMD",t.GNF="GNF",t.GTQ="GTQ",t.GYD="GYD",t.HKD="HKD",t.HNL="HNL",t.HTG="HTG",t.HUF="HUF",t.IDR="IDR",t.ILS="ILS",t.INR="INR",t.IQD="IQD",t.IRR="IRR",t.ISK="ISK",t.JMD="JMD",t.JOD="JOD",t.JPY="JPY",t.KES="KES",t.KGS="KGS",t.KHR="KHR",t.KMF="KMF",t.KRW="KRW",t.KWD="KWD",t.KYD="KYD",t.KZT="KZT",t.LAK="LAK",t.LBP="LBP",t.LKR="LKR",t.LRD="LRD",t.LSL="LSL",t.LYD="LYD",t.MAD="MAD",t.MDL="MDL",t.MGA="MGA",t.MKD="MKD",t.MMK="MMK",t.MNT="MNT",t.MOP="MOP",t.MRU="MRU",t.MUR="MUR",t.MWK="MWK",t.MVR="MVR",t.MXN="MXN",t.MYR="MYR",t.MZN="MZN",t.NAD="NAD",t.NGN="NGN",t.NIO="NIO",t.NOK="NOK",t.NPR="NPR",t.NZD="NZD",t.OMR="OMR",t.PAB="PAB",t.PEN="PEN",t.PGK="PGK",t.PHP="PHP",t.PKR="PKR",t.PLN="PLN",t.PYG="PYG",t.QAR="QAR",t.RON="RON",t.RSD="RSD",t.RWF="RWF",t.SAR="SAR",t.SCR="SCR",t.SDG="SDG",t.SEK="SEK",t.SGD="SGD",t.SLE="SLE",t.SLL="SLL",t.SOS="SOS",t.SRD="SRD",t.STN="STN",t.SVC="SVC",t.SYP="SYP",t.SZL="SZL",t.THB="THB",t.TJS="TJS",t.TMT="TMT",t.TND="TND",t.TOP="TOP",t.TRY="TRY",t.TTD="TTD",t.TWD="TWD",t.TZS="TZS",t.UAH="UAH",t.UGX="UGX",t.UYU="UYU",t.UZS="UZS",t.VND="VND",t.VUV="VUV",t.WST="WST",t.XAF="XAF",t.XCD="XCD",t.XOF="XOF",t.XPF="XPF",t.YER="YER",t.ZAR="ZAR",t.ZMW="ZMW",t.ZWL="ZWL",t.CDF="CDF",t.ERN="ERN",t.FKP="FKP",t.KPW="KPW",t.RUB="RUB",t.SBD="SBD",t.SHP="SHP",t.SSP="SSP",t.VES="VES",t))(ua||{});const F3={AED:"784",AFN:"971",ALL:"008",AMD:"051",ANG:"532",AOA:"973",AUD:"036",AWG:"533",AZN:"944",BAM:"977",BBD:"052",BDT:"050",BGN:"975",BHD:"048",BIF:"108",BND:"096",BOB:"068",BRL:"986",BTN:"064",BWP:"072",BZD:"084",CAD:"124",CHF:"756",CLP:"152",CNY:"156",COP:"170",CRC:"188",CVE:"132",CZK:"203",DJF:"262",DKK:"208",DOP:"214",DZD:"012",EGP:"818",ETB:"230",EUR:"978",GBP:"826",GEL:"981",GHS:"936",GMD:"270",GNF:"324",GTQ:"320",GYD:"328",HKD:"344",HNL:"340",HTG:"332",HUF:"348",IDR:"360",INR:"356",IQD:"368",IRR:"364",ISK:"352",JMD:"388",JOD:"400",JPY:"392",KES:"404",KGS:"417",KHR:"116",KMF:"174",KRW:"410",KWD:"414",KYD:"136",KZT:"398",LKR:"144",LRD:"430",LSL:"426",LYD:"434",MAD:"504",MDL:"498",MGA:"969",MKD:"807",MMK:"104",MNT:"496",MOP:"446",MRU:"929",MUR:"480",MVR:"462",MXN:"484",MYR:"458",NAD:"516",NGN:"566",NIO:"558",NOK:"578",NPR:"524",NZD:"554",OMR:"512",PAB:"590",PEN:"604",PHP:"608",PKR:"586",PLN:"985",PYG:"600",QAR:"634",RON:"946",RSD:"941",RWF:"646",SAR:"682",SCR:"690",SDG:"938",SEK:"752",SGD:"702",SLE:"925",SLL:"694",SOS:"706",STN:"930",SVC:"222",SYP:"760",SZL:"748",THB:"764",TJS:"972",TMT:"934",TND:"788",TRY:"949",TTD:"780",TWD:"901",TZS:"834",UAH:"980",UGX:"800",USD:"840",UYU:"858",UZS:"860",VND:"704",XAF:"950",XCD:"951",XOF:"952",XPF:"953",YER:"886",ZAR:"710",ZMW:"967",ARS:"032",BMD:"060",BSD:"044",BYN:"933",CUP:"192",FJD:"242",ILS:"376",LAK:"418",LBP:"422",MWK:"454",MZN:"943",PGK:"598",SRD:"968",TOP:"776",VUV:"548",WST:"882",ZWL:"932",CLF:"990",CDF:"976",ERN:"232",FKP:"238",KPW:"408",RUB:"643",SBD:"090",SHP:"654",SSP:"728",VES:"928"},Wc={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function V3(t){return t in Wc}const zc={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function H3(t){return t in zc}const G3=new Set(["CLF"]),j3=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),Y3=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function W3(t){return G3.has(t)?4:j3.has(t)?3:Y3.has(t)?0:2}function z3(t,n){return t.currency===n}var Z3={269:function(t,n,r){r.r(n),r.d(n,{ERROR_API_KEY_EXPIRED:function(){return cs},ERROR_API_KEY_INVALID:function(){return us},ERROR_API_KEY_MISSING:function(){return as},ERROR_BAD_REQUEST_FORMAT:function(){return bl},ERROR_BAD_RESPONSE_FORMAT:function(){return Na},ERROR_CLIENT_TIMEOUT:function(){return Ia},ERROR_CSP_BLOCK:function(){return xa},ERROR_FORBIDDEN_ENDPOINT:function(){return Df},ERROR_FORBIDDEN_HEADER:function(){return Il},ERROR_FORBIDDEN_ORIGIN:function(){return Sl},ERROR_GENERAL_SERVER_FAILURE:function(){return _l},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return Uf},ERROR_INTEGRATION_FAILURE:function(){return Pf},ERROR_INVALID_ENDPOINT:function(){return La},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return Gf},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return Hf},ERROR_NETWORK_ABORT:function(){return Ta},ERROR_NETWORK_CONNECTION:function(){return Oa},ERROR_NETWORK_RESTRICTED:function(){return Vf},ERROR_RATE_LIMIT:function(){return Al},ERROR_SERVER_TIMEOUT:function(){return Rl},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return Mf},ERROR_TOKEN_EXPIRED:function(){return z6},ERROR_TOKEN_INVALID:function(){return W6},ERROR_TOKEN_MISSING:function(){return Y6},ERROR_UNSUPPORTED_VERSION:function(){return kf},ERROR_WRONG_REGION:function(){return Bf},default:function(){return Z6},defaultEndpoint:function(){return Jo},defaultTlsEndpoint:function(){return Qo},load:function(){return m0},makeBotdModule:function(){return B6},makeConsoleDebugModule:function(){return G6},makeIdentificationModule:function(){return F6},makeLatencyReportModule:function(){return H6},makeRemoteDebugModule:function(){return j6},makeValidationModule:function(){return V6}});var e=r(635);function u(i,s){return new Promise((function(o){return setTimeout(o,i,s)}))}function a(i){return!!i&&typeof i.then=="function"}function d(i,s){try{var o=i();a(o)?o.then((function(c){return s(!0,c)}),(function(c){return s(!1,c)})):s(!0,o)}catch(c){s(!1,c)}}function E(i,s,o){return o===void 0&&(o=16),(0,e.sH)(this,void 0,void 0,(function(){var c,p,m,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:c=Array(i.length),p=Date.now(),m=0,w.label=1;case 1:return m<i.length?(c[m]=s(i[m],m),(y=Date.now())>=p+o?(p=y,[4,new Promise((function(v){var I=new MessageChannel;I.port1.onmessage=function(){return v()},I.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:w.sent(),w.label=3;case 3:return++m,[3,1];case 4:return[2,c]}}))}))}function l(i){return i.then(void 0,(function(){})),i}function b(i){return parseInt(i)}function T(i){return parseFloat(i)}function L(i,s){return typeof i=="number"&&isNaN(i)?s:i}function N(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function x(i,s){var o=i[0]>>>16,c=65535&i[0],p=i[1]>>>16,m=65535&i[1],y=s[0]>>>16,w=65535&s[0],v=s[1]>>>16,I=0,B=0,C=0,X=0;C+=(X+=m+(65535&s[1]))>>>16,X&=65535,B+=(C+=p+v)>>>16,C&=65535,I+=(B+=c+w)>>>16,B&=65535,I+=o+y,I&=65535,i[0]=I<<16|B,i[1]=C<<16|X}function M(i,s){var o=i[0]>>>16,c=65535&i[0],p=i[1]>>>16,m=65535&i[1],y=s[0]>>>16,w=65535&s[0],v=s[1]>>>16,I=65535&s[1],B=0,C=0,X=0,Q=0;X+=(Q+=m*I)>>>16,Q&=65535,C+=(X+=p*I)>>>16,X&=65535,C+=(X+=m*v)>>>16,X&=65535,B+=(C+=c*I)>>>16,C&=65535,B+=(C+=p*v)>>>16,C&=65535,B+=(C+=m*w)>>>16,C&=65535,B+=o*I+c*v+p*w+m*y,B&=65535,i[0]=B<<16|C,i[1]=X<<16|Q}function D(i,s){var o=i[0];(s%=64)==32?(i[0]=i[1],i[1]=o):s<32?(i[0]=o<<s|i[1]>>>32-s,i[1]=i[1]<<s|o>>>32-s):(s-=32,i[0]=i[1]<<s|o>>>32-s,i[1]=o<<s|i[1]>>>32-s)}function Y(i,s){(s%=64)!=0&&(s<32?(i[0]=i[1]>>>32-s,i[1]=i[1]<<s):(i[0]=i[1]<<s-32,i[1]=0))}function W(i,s){i[0]^=s[0],i[1]^=s[1]}var J=[4283543511,3981806797],q=[3301882366,444984403];function ot(i){var s=[0,i[0]>>>1];W(i,s),M(i,J),s[1]=i[0]>>>1,W(i,s),M(i,q),s[1]=i[0]>>>1,W(i,s)}var pt=[2277735313,289559509],ft=[1291169091,658871167],Rt=[0,5],At=[0,1390208809],st=[0,944331445];function lt(i){return typeof i!="function"}function mt(i,s,o,c){var p=Object.keys(i).filter((function(y){return!(function(w,v){for(var I=0,B=w.length;I<B;++I)if(w[I]===v)return!0;return!1})(o,y)})),m=l(E(p,(function(y){return(function(w,v){var I=l(new Promise((function(B){var C=Date.now();d(w.bind(null,v),(function(){for(var X=[],Q=0;Q<arguments.length;Q++)X[Q]=arguments[Q];var tt=Date.now()-C;if(!X[0])return B((function(){return{error:X[1],duration:tt}}));var nt=X[1];if(lt(nt))return B((function(){return{value:nt,duration:tt}}));B((function(){return new Promise((function(at){var gt=Date.now();d(nt,(function(){for(var _t=[],vt=0;vt<arguments.length;vt++)_t[vt]=arguments[vt];var bt=tt+Date.now()-gt;if(!_t[0])return at({error:_t[1],duration:bt});at({value:_t[1],duration:bt})}))}))}))}))})));return function(){return I.then((function(B){return B()}))}})(i[y],s)}),c));return function(){return(0,e.sH)(this,void 0,void 0,(function(){var y,w,v,I;return(0,e.YH)(this,(function(B){switch(B.label){case 0:return[4,m];case 1:return[4,E(B.sent(),(function(C){return l(C())}),c)];case 2:return y=B.sent(),[4,Promise.all(y)];case 3:for(w=B.sent(),v={},I=0;I<p.length;++I)v[p[I]]=w[I];return[2,v]}}))}))}}function wt(i,s){var o=function(c){return lt(c)?s(c):function(){var p=c();return a(p)?p.then(s):s(p)}};return function(c){var p=i(c);return a(p)?p.then(o):o(p)}}function P(){var i=window,s=navigator;return N(["MSCSSMatrix"in i,"msSetImmediate"in i,"msIndexedDB"in i,"msMaxTouchPoints"in s,"msPointerEnabled"in s])>=4}function f(){var i=window,s=navigator;return N(["msWriteProfilerMark"in i,"MSStream"in i,"msLaunchUri"in s,"msSaveBlob"in s])>=3&&!P()}function S(){var i=window,s=navigator;return N(["webkitPersistentStorage"in s,"webkitTemporaryStorage"in s,(s.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in i,"BatteryManager"in i,"webkitMediaStream"in i,"webkitSpeechGrammar"in i])>=5}function U(){var i=window;return N(["ApplePayError"in i,"CSSPrimitiveValue"in i,"Counter"in i,navigator.vendor.indexOf("Apple")===0,"RGBColor"in i,"WebKitMediaKeys"in i])>=4}function z(){var i=window,s=i.HTMLElement,o=i.Document;return N(["safari"in i,!("ongestureend"in i),!("TouchEvent"in i),!("orientation"in i),s&&!("autocapitalize"in s.prototype),o&&"pointerLockElement"in o.prototype])>=4}function $(){var i,s,o=window;return N(["buildID"in navigator,"MozAppearance"in((s=(i=document.documentElement)===null||i===void 0?void 0:i.style)!==null&&s!==void 0?s:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4}function et(){var i=document;return i.fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||null}function ut(){var i=S(),s=$(),o=window,c=navigator,p="connection";return i?N([!("SharedWorker"in o),c[p]&&"ontypechange"in c[p],!("sinkId"in new Audio)])>=2:!!s&&N(["onorientationchange"in o,"orientation"in o,/android/i.test(c.appVersion)])>=2}function Z(){var i=navigator,s=window,o=Audio.prototype,c=s.visualViewport;return N(["srLatency"in o,"srChannelCount"in o,"devicePosture"in i,c&&"segments"in c,"getTextInformation"in Image.prototype])>=3}function h(){var i=window,s=i.OfflineAudioContext||i.webkitOfflineAudioContext;if(!s)return-2;if(U()&&!z()&&!(function(){var I=window;return N(["DOMRectList"in I,"RTCPeerConnectionIceEvent"in I,"SVGGeometryElement"in I,"ontransitioncancel"in I])>=3})())return-1;var o=new s(1,5e3,44100),c=o.createOscillator();c.type="triangle",c.frequency.value=1e4;var p=o.createDynamicsCompressor();p.threshold.value=-50,p.knee.value=40,p.ratio.value=12,p.attack.value=0,p.release.value=.25,c.connect(p),p.connect(o.destination),c.start(0);var m=(function(I){var B=function(){};return[new Promise((function(C,X){var Q=!1,tt=0,nt=0;I.oncomplete=function(_t){return C(_t.renderedBuffer)};var at=function(){setTimeout((function(){return X(_("timeout"))}),Math.min(500,nt+5e3-Date.now()))},gt=function(){try{var _t=I.startRendering();switch(a(_t)&&l(_t),I.state){case"running":nt=Date.now(),Q&&at();break;case"suspended":document.hidden||tt++,Q&&tt>=3?X(_("suspended")):setTimeout(gt,500)}}catch(vt){X(vt)}};gt(),B=function(){Q||(Q=!0,nt>0&&at())}})),B]})(o),y=m[0],w=m[1],v=l(y.then((function(I){return(function(B){for(var C=0,X=0;X<B.length;++X)C+=Math.abs(B[X]);return C})(I.getChannelData(0).subarray(4500))}),(function(I){if(I.name==="timeout"||I.name==="suspended")return-3;throw I})));return function(){return w(),v}}function _(i){var s=new Error(i);return s.name=i,s}function j(i,s,o){var c,p,m;return o===void 0&&(o=50),(0,e.sH)(this,void 0,void 0,(function(){var y,w;return(0,e.YH)(this,(function(v){switch(v.label){case 0:y=document,v.label=1;case 1:return y.body?[3,3]:[4,u(o)];case 2:return v.sent(),[3,1];case 3:w=y.createElement("iframe"),v.label=4;case 4:return v.trys.push([4,,10,11]),[4,new Promise((function(I,B){var C=!1,X=function(){C=!0,I()};w.onload=X,w.onerror=function(nt){C=!0,B(nt)};var Q=w.style;Q.setProperty("display","block","important"),Q.position="absolute",Q.top="0",Q.left="0",Q.visibility="hidden",s&&"srcdoc"in w?w.srcdoc=s:w.src="about:blank",y.body.appendChild(w);var tt=function(){var nt,at;C||(((at=(nt=w.contentWindow)===null||nt===void 0?void 0:nt.document)===null||at===void 0?void 0:at.readyState)==="complete"?X():setTimeout(tt,10))};tt()}))];case 5:v.sent(),v.label=6;case 6:return!((p=(c=w.contentWindow)===null||c===void 0?void 0:c.document)===null||p===void 0)&&p.body?[3,8]:[4,u(o)];case 7:return v.sent(),[3,6];case 8:return[4,i(w,w.contentWindow)];case 9:return[2,v.sent()];case 10:return(m=w.parentNode)===null||m===void 0||m.removeChild(w),[7];case 11:return[2]}}))}))}function K(i){for(var s=(function(I){for(var B,C,X="Unexpected syntax '".concat(I,"'"),Q=/^\s*([a-z-]*)(.*)$/i.exec(I),tt=Q[1]||void 0,nt={},at=/([.:#][\w-]+|\[.+?\])/gi,gt=function(Vt,Ht){nt[Vt]=nt[Vt]||[],nt[Vt].push(Ht)};;){var _t=at.exec(Q[2]);if(!_t)break;var vt=_t[0];switch(vt[0]){case".":gt("class",vt.slice(1));break;case"#":gt("id",vt.slice(1));break;case"[":var bt=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(vt);if(!bt)throw new Error(X);gt(bt[1],(C=(B=bt[4])!==null&&B!==void 0?B:bt[5])!==null&&C!==void 0?C:"");break;default:throw new Error(X)}}return[tt,nt]})(i),o=s[0],c=s[1],p=document.createElement(o??"div"),m=0,y=Object.keys(c);m<y.length;m++){var w=y[m],v=c[w].join(" ");w==="style"?ht(p.style,v):p.setAttribute(w,v)}return p}function ht(i,s){for(var o=0,c=s.split(";");o<c.length;o++){var p=c[o],m=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(p);if(m){var y=m[1],w=m[2],v=m[4];i.setProperty(y,w,v||"")}}}var St=["monospace","sans-serif","serif"],Ft=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function zt(i){var s,o,c,p=!1,m=(function(){var v=document.createElement("canvas");return v.width=1,v.height=1,[v,v.getContext("2d")]})(),y=m[0],w=m[1];return(function(v,I){return!(!I||!v.toDataURL)})(y,w)?(p=(function(v){return v.rect(0,0,10,10),v.rect(2,2,6,6),!v.isPointInPath(5,5,"evenodd")})(w),s=(function(v,I){(function(C,X){C.width=240,C.height=60,X.textBaseline="alphabetic",X.fillStyle="#f60",X.fillRect(100,1,62,20),X.fillStyle="#069",X.font='11pt "Times New Roman"';var Q="Cwm fjordbank gly ".concat("😃");X.fillText(Q,2,15),X.fillStyle="rgba(102, 204, 0, 0.2)",X.font="18pt Arial",X.fillText(Q,4,45)})(v,I);var B=de(v);return B!==de(v)?["unstable","unstable"]:((function(C,X){C.width=122,C.height=110,X.globalCompositeOperation="multiply";for(var Q=0,tt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Q<tt.length;Q++){var nt=tt[Q],at=nt[0],gt=nt[1],_t=nt[2];X.fillStyle=at,X.beginPath(),X.arc(gt,_t,40,0,2*Math.PI,!0),X.closePath(),X.fill()}X.fillStyle="#f9c",X.arc(60,60,60,0,2*Math.PI,!0),X.arc(60,60,20,0,2*Math.PI,!0),X.fill("evenodd")})(v,I),[de(v),B])})(y,w),o=s[0],c=s[1]):o=c="unsupported",{winding:p,geometry:o,text:c}}function de(i){return i.toDataURL()}function Ee(){var i=screen,s=function(c){return L(b(c),null)},o=[s(i.width),s(i.height)];return o.sort().reverse(),o}var me,$t;function be(){var i=this;return(function(){if($t===void 0){var s=function(){var o=Re();Ye(o)?$t=setTimeout(s,2500):(me=o,$t=void 0)};s()}})(),function(){return(0,e.sH)(i,void 0,void 0,(function(){var s;return(0,e.YH)(this,(function(o){switch(o.label){case 0:return Ye(s=Re())?me?[2,(0,e.fX)([],me,!0)]:et()?[4,(c=document,(c.exitFullscreen||c.msExitFullscreen||c.mozCancelFullScreen||c.webkitExitFullscreen).call(c))]:[3,2]:[3,2];case 1:o.sent(),s=Re(),o.label=2;case 2:return Ye(s)||(me=s),[2,s]}var c}))}))}}function Re(){var i=screen;return[L(T(i.availTop),null),L(T(i.width)-T(i.availWidth)-L(T(i.availLeft),0),null),L(T(i.height)-T(i.availHeight)-L(T(i.availTop),0),null),L(T(i.availLeft),null)]}function Ye(i){for(var s=0;s<4;++s)if(i[s])return!1;return!0}function Ne(i){var s;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,m,y,w,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:for(o=document,c=o.createElement("div"),p=new Array(i.length),m={},g(c),v=0;v<i.length;++v)(y=K(i[v])).tagName==="DIALOG"&&y.show(),g(w=o.createElement("div")),w.appendChild(y),c.appendChild(w),p[v]=y;I.label=1;case 1:return o.body?[3,3]:[4,u(50)];case 2:return I.sent(),[3,1];case 3:o.body.appendChild(c);try{for(v=0;v<i.length;++v)p[v].offsetParent||(m[i[v]]=!0)}finally{(s=c.parentNode)===null||s===void 0||s.removeChild(c)}return[2,m]}}))}))}function g(i){i.style.setProperty("visibility","hidden","important"),i.style.setProperty("display","block","important")}function k(i){return matchMedia("(inverted-colors: ".concat(i,")")).matches}function V(i){return matchMedia("(forced-colors: ".concat(i,")")).matches}function ct(i){return matchMedia("(prefers-contrast: ".concat(i,")")).matches}function yt(i){return matchMedia("(prefers-reduced-motion: ".concat(i,")")).matches}function Et(i){return matchMedia("(prefers-reduced-transparency: ".concat(i,")")).matches}function Lt(i){return matchMedia("(dynamic-range: ".concat(i,")")).matches}var jt=Math,te=function(){return 0},F={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},R=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),O=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),A=["FRAGMENT_SHADER","VERTEX_SHADER"],H=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],G="WEBGL_debug_renderer_info";function it(i){if(i.webgl)return i.webgl.context;var s,o=document.createElement("canvas");o.addEventListener("webglCreateContextError",(function(){return s=void 0}));for(var c=0,p=["webgl","experimental-webgl"];c<p.length;c++){var m=p[c];try{s=o.getContext(m)}catch{}if(s)break}return i.webgl={context:s},s}function Ct(i,s,o){var c=i.getShaderPrecisionFormat(i[s],i[o]);return c?[c.rangeMin,c.rangeMax,c.precision]:[]}function Bt(i){return Object.keys(i.__proto__).filter(Ut)}function Ut(i){return typeof i=="string"&&!i.match(/[^A-Z0-9_x]/)}function kt(){return $()}function rt(i){return typeof i.getParameter=="function"}var Yt=function(){var i=this;return j((function(s,o){var c=o.document;return(0,e.sH)(i,void 0,void 0,(function(){var p,m,y,w,v,I,B,C,X,Q,tt;return(0,e.YH)(this,(function(nt){for((p=c.body).style.fontSize="48px",(m=c.createElement("div")).style.setProperty("visibility","hidden","important"),y={},w={},v=function(at){var gt=c.createElement("span"),_t=gt.style;return _t.position="absolute",_t.top="0",_t.left="0",_t.fontFamily=at,gt.textContent="mmMwWLliI0O&1",m.appendChild(gt),gt},I=function(at,gt){return v("'".concat(at,"',").concat(gt))},B=function(){for(var at={},gt=function(bt){at[bt]=St.map((function(Vt){return I(bt,Vt)}))},_t=0,vt=Ft;_t<vt.length;_t++)gt(vt[_t]);return at},C=function(at){return St.some((function(gt,_t){return at[_t].offsetWidth!==y[gt]||at[_t].offsetHeight!==w[gt]}))},X=St.map(v),Q=B(),p.appendChild(m),tt=0;tt<St.length;tt++)y[St[tt]]=X[tt].offsetWidth,w[St[tt]]=X[tt].offsetHeight;return[2,Ft.filter((function(at){return C(Q[at])}))]}))}))}))},pe=function(i){var s=(i===void 0?{}:i).debug;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,m,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:return U()||ut()?(v=atob,o={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',v("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",v("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",v("LnNwb25zb3JpdA=="),".ylamainos",v("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",v("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",v("LmhlYWRlci1ibG9ja2VkLWFk"),v("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",v("I2FkXzMwMFgyNTA="),v("I2Jhbm5lcmZsb2F0MjI="),v("I2NhbXBhaWduLWJhbm5lcg=="),v("I0FkLUNvbnRlbnQ=")],adGuardChinese:[v("LlppX2FkX2FfSA=="),v("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",v("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),v("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",v("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",v("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",v("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),v("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),v("LmFkZ29vZ2xl"),v("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[v("YW1wLWF1dG8tYWRz"),v("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",v("I2FkX2ludmlld19hcmVh")],adGuardRussian:[v("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),v("LnJlY2xhbWE="),'div[id^="smi2adblock"]',v("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[v("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),v("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",v("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),v("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),v("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",v("I3Jla2xhbWk="),v("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),v("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),v("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[v("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",v("LndpZGdldF9wb19hZHNfd2lkZ2V0"),v("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",v("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[v("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),v("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",v("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",v("I3Jla2xhbW5pLWJveA=="),v("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",v("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[v("I2FkdmVydGVudGll"),v("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",v("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",v("LnNwb25zb3JsaW5rZ3J1ZW4="),v("I3dlcmJ1bmdza3k="),v("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),v("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[v("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",v("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[v("LnJla2xhbW9zX3RhcnBhcw=="),v("LnJla2xhbW9zX251b3JvZG9z"),v("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),v("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),v("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[v("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[v("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),v("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",v("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[v("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),v("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),v("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",v("LmFkX19tYWlu"),v("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[v("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[v("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),v("I2xpdmVyZUFkV3JhcHBlcg=="),v("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),v("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[v("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",v("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),v("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),v("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[v("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),v("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),v("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",v("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),v("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),v("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),v("ZGl2I3NrYXBpZWNfYWQ=")],ro:[v("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),v("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[v("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),v("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),v("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",v("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),v("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",v("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},c=Object.keys(o),[4,Ne((y=[]).concat.apply(y,c.map((function(I){return o[I]}))))]):[2,void 0];case 1:return p=w.sent(),s&&(function(I,B){for(var C="DOM blockers debug:\n```",X=0,Q=Object.keys(I);X<Q.length;X++){var tt=Q[X];C+=`
|
|
8
|
+
`.concat(tt,":");for(var nt=0,at=I[tt];nt<at.length;nt++){var gt=at[nt];C+=`
|
|
9
|
+
`.concat(B[gt]?"🚫":"➡️"," ").concat(gt)}}console.log("".concat(C,"\n```"))})(o,p),(m=c.filter((function(I){var B=o[I];return N(B.map((function(C){return p[C]})))>.6*B.length}))).sort(),[2,m]}var v}))}))},ee=function(){return i===void 0&&(i=4e3),j((function(s,o){var c=o.document,p=c.body,m=p.style;m.width="".concat(i,"px"),m.webkitTextSizeAdjust=m.textSizeAdjust="none",S()?p.style.zoom="".concat(1/o.devicePixelRatio):U()&&(p.style.zoom="reset");var y=c.createElement("div");return y.textContent=(0,e.fX)([],Array(i/20|0),!0).map((function(){return"word"})).join(" "),p.appendChild(y),(function(w,v){for(var I={},B={},C=0,X=Object.keys(F);C<X.length;C++){var Q=X[C],tt=F[Q],nt=tt[0],at=nt===void 0?{}:nt,gt=tt[1],_t=gt===void 0?"mmMwWLliI0fiflO&1":gt,vt=w.createElement("span");vt.textContent=_t,vt.style.whiteSpace="nowrap";for(var bt=0,Vt=Object.keys(at);bt<Vt.length;bt++){var Ht=Vt[bt],Wt=at[Ht];Wt!==void 0&&(vt.style[Ht]=Wt)}I[Q]=vt,v.append(w.createElement("br"),vt)}for(var Nt=0,Dt=Object.keys(F);Nt<Dt.length;Nt++)B[Q=Dt[Nt]]=I[Q].getBoundingClientRect().width;return B})(c,p)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var i},oe=function(){return navigator.oscpu},he=function(){var i,s=navigator,o=[],c=s.language||s.userLanguage||s.browserLanguage||s.systemLanguage;if(c!==void 0&&o.push([c]),Array.isArray(s.languages))S()&&N([!("MediaSettingsRange"in(i=window)),"RTCEncodedAudioFrame"in i,""+i.Intl=="[object Intl]",""+i.Reflect=="[object Reflect]"])>=3||o.push(s.languages);else if(typeof s.languages=="string"){var p=s.languages;p&&o.push(p.split(","))}return o},fe=function(){return window.screen.colorDepth},ae=function(){return L(T(navigator.deviceMemory),void 0)},We=function(){return L(b(navigator.hardwareConcurrency),void 0)},ye=function(){var i,s=(i=window.Intl)===null||i===void 0?void 0:i.DateTimeFormat;if(s){var o=new s().resolvedOptions().timeZone;if(o)return o}var c,p=(c=new Date().getFullYear(),-Math.max(T(new Date(c,0,1).getTimezoneOffset()),T(new Date(c,6,1).getTimezoneOffset())));return"UTC".concat(p>=0?"+":"").concat(p)},_e=function(){try{return!!window.sessionStorage}catch{return!0}},an=function(){try{return!!window.localStorage}catch{return!0}},Be=function(){return!!window.openDatabase},De=function(){return navigator.cpuClass},lr=function(){var i=navigator.platform;return i==="MacIntel"&&U()&&!z()?(function(){if(navigator.platform==="iPad")return!0;var s=screen,o=s.width/s.height;return N(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,o>.65&&o<1.53])>=2})()?"iPad":"iPhone":i},He=function(){var i=navigator.plugins;if(i){for(var s=[],o=0;o<i.length;++o){var c=i[o];if(c){for(var p=[],m=0;m<c.length;++m){var y=c[m];p.push({type:y.type,suffixes:y.suffixes})}s.push({name:c.name,description:c.description,mimeTypes:p})}}return s}},Ve=function(){var i,s=navigator,o=0;s.maxTouchPoints!==void 0?o=b(s.maxTouchPoints):s.msMaxTouchPoints!==void 0&&(o=s.msMaxTouchPoints);try{document.createEvent("TouchEvent"),i=!0}catch{i=!1}return{maxTouchPoints:o,touchEvent:i,touchStart:"ontouchstart"in window}},Yr=function(){return navigator.vendor||""},qe=function(){for(var i=[],s=0,o=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];s<o.length;s++){var c=o[s],p=window[c];p&&typeof p=="object"&&i.push(c)}return i.sort()},$e=function(){var i=document;try{i.cookie="cookietest=1; SameSite=Strict;";var s=i.cookie.indexOf("cookietest=")!==-1;return i.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",s}catch{return!1}},Yo=function(){for(var i=0,s=["rec2020","p3","srgb"];i<s.length;i++){var o=s[i];if(matchMedia("(color-gamut: ".concat(o,")")).matches)return o}},Je=function(){return!!k("inverted")||!k("none")&&void 0},Qe=function(){return!!V("active")||!V("none")&&void 0},Wo=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var i=0;i<=100;++i)if(matchMedia("(max-monochrome: ".concat(i,")")).matches)return i;throw new Error("Too high value")}},tn=function(){return ct("no-preference")?0:ct("high")||ct("more")?1:ct("low")||ct("less")?-1:ct("forced")?10:void 0},en=function(){return!!yt("reduce")||!yt("no-preference")&&void 0},Pi=function(){return!!Et("reduce")||!Et("no-preference")&&void 0},Fi=function(){return!!Lt("high")||!Lt("standard")&&void 0},Vi=function(){var i,s=jt.acos||te,o=jt.acosh||te,c=jt.asin||te,p=jt.asinh||te,m=jt.atanh||te,y=jt.atan||te,w=jt.sin||te,v=jt.sinh||te,I=jt.cos||te,B=jt.cosh||te,C=jt.tan||te,X=jt.tanh||te,Q=jt.exp||te,tt=jt.expm1||te,nt=jt.log1p||te;return{acos:s(.12312423423423424),acosh:o(1e308),acoshPf:(i=1e154,jt.log(i+jt.sqrt(i*i-1))),asin:c(.12312423423423424),asinh:p(1),asinhPf:jt.log(1+jt.sqrt(2)),atanh:m(.5),atanhPf:jt.log(3)/2,atan:y(.5),sin:w(-1e300),sinh:v(1),sinhPf:jt.exp(1)-1/jt.exp(1)/2,cos:I(10.000000000123),cosh:B(1),coshPf:(jt.exp(1)+1/jt.exp(1))/2,tan:C(-1e300),tanh:X(1),tanhPf:(jt.exp(2)-1)/(jt.exp(2)+1),exp:Q(1),expm1:tt(1),expm1Pf:jt.exp(1)-1,log1p:nt(10),log1pPf:jt.log(11),powPI:jt.pow(jt.PI,-100)}},Hi=function(){return navigator.pdfViewerEnabled},Gi=function(){var i=new Float32Array(1),s=new Uint8Array(i.buffer);return i[0]=1/0,i[0]=i[0]-i[0],s[3]},ji=function(){var i,s=document.createElement("a"),o=(i=s.attributionSourceId)!==null&&i!==void 0?i:s.attributionsourceid;return o===void 0?void 0:String(o)},Yi=function(){if(!ut()&&!U())return-2;if(!window.AudioContext)return-1;var i=new AudioContext().baseLatency;return i==null?-1:isFinite(i)?i:-3},Wi=function(){if(!window.Intl)return-1;var i=window.Intl.DateTimeFormat;if(!i)return-2;var s=i().resolvedOptions().locale;return s||s===""?s:-3},zi=function(i){var s,o,c,p,m,y,w=it(i.cache);if(!w)return-1;if(!rt(w))return-2;var v=kt()?null:w.getExtension(G);return{version:((s=w.getParameter(w.VERSION))===null||s===void 0?void 0:s.toString())||"",vendor:((o=w.getParameter(w.VENDOR))===null||o===void 0?void 0:o.toString())||"",vendorUnmasked:v?(c=w.getParameter(v.UNMASKED_VENDOR_WEBGL))===null||c===void 0?void 0:c.toString():"",renderer:((p=w.getParameter(w.RENDERER))===null||p===void 0?void 0:p.toString())||"",rendererUnmasked:v?(m=w.getParameter(v.UNMASKED_RENDERER_WEBGL))===null||m===void 0?void 0:m.toString():"",shadingLanguageVersion:((y=w.getParameter(w.SHADING_LANGUAGE_VERSION))===null||y===void 0?void 0:y.toString())||""}},Zi=function(i){var s=it(i.cache);if(!s)return-1;if(!rt(s))return-2;var o=s.getSupportedExtensions(),c=s.getContextAttributes(),p=[],m=[],y=[],w=[],v=[];if(c)for(var I=0,B=Object.keys(c);I<B.length;I++){var C=B[I];m.push("".concat(C,"=").concat(c[C]))}for(var X=0,Q=Bt(s);X<Q.length;X++){var tt=s[Vt=Q[X]];y.push("".concat(Vt,"=").concat(tt).concat(R.has(tt)?"=".concat(s.getParameter(tt)):""))}if(o)for(var nt=0,at=o;nt<at.length;nt++){var gt=at[nt];if(!(gt===G&&kt()||gt==="WEBGL_polygon_mode"&&(S()||U()))){var _t=s.getExtension(gt);if(_t)for(var vt=0,bt=Bt(_t);vt<bt.length;vt++){var Vt;tt=_t[Vt=bt[vt]],w.push("".concat(Vt,"=").concat(tt).concat(O.has(tt)?"=".concat(s.getParameter(tt)):""))}else p.push(gt)}}for(var Ht=0,Wt=A;Ht<Wt.length;Ht++)for(var Nt=Wt[Ht],Dt=0,Zt=H;Dt<Zt.length;Dt++){var Qt=Zt[Dt],ne=Ct(s,Nt,Qt);v.push("".concat(Nt,".").concat(Qt,"=").concat(ne.join(",")))}return w.sort(),y.sort(),{contextAttributes:m,parameters:y,shaderPrecisions:v,extensions:o,extensionParameters:w,unsupportedExtensions:p}},dn=function(i,s){var o=(function(X){for(var Q=new Uint8Array(X.length),tt=0;tt<X.length;tt++){var nt=X.charCodeAt(tt);if(nt>127)return new TextEncoder().encode(X);Q[tt]=nt}return Q})(i);s=s||0;var c,p=[0,o.length],m=p[1]%16,y=p[1]-m,w=[0,s],v=[0,s],I=[0,0],B=[0,0];for(c=0;c<y;c+=16)I[0]=o[c+4]|o[c+5]<<8|o[c+6]<<16|o[c+7]<<24,I[1]=o[c]|o[c+1]<<8|o[c+2]<<16|o[c+3]<<24,B[0]=o[c+12]|o[c+13]<<8|o[c+14]<<16|o[c+15]<<24,B[1]=o[c+8]|o[c+9]<<8|o[c+10]<<16|o[c+11]<<24,M(I,pt),D(I,31),M(I,ft),W(w,I),D(w,27),x(w,v),M(w,Rt),x(w,At),M(B,ft),D(B,33),M(B,pt),W(v,B),D(v,31),x(v,w),M(v,Rt),x(v,st);I[0]=0,I[1]=0,B[0]=0,B[1]=0;var C=[0,0];switch(m){case 15:C[1]=o[c+14],Y(C,48),W(B,C);case 14:C[1]=o[c+13],Y(C,40),W(B,C);case 13:C[1]=o[c+12],Y(C,32),W(B,C);case 12:C[1]=o[c+11],Y(C,24),W(B,C);case 11:C[1]=o[c+10],Y(C,16),W(B,C);case 10:C[1]=o[c+9],Y(C,8),W(B,C);case 9:C[1]=o[c+8],W(B,C),M(B,ft),D(B,33),M(B,pt),W(v,B);case 8:C[1]=o[c+7],Y(C,56),W(I,C);case 7:C[1]=o[c+6],Y(C,48),W(I,C);case 6:C[1]=o[c+5],Y(C,40),W(I,C);case 5:C[1]=o[c+4],Y(C,32),W(I,C);case 4:C[1]=o[c+3],Y(C,24),W(I,C);case 3:C[1]=o[c+2],Y(C,16),W(I,C);case 2:C[1]=o[c+1],Y(C,8),W(I,C);case 1:C[1]=o[c],W(I,C),M(I,pt),D(I,31),M(I,ft),W(w,I)}return W(w,p),W(v,p),x(w,v),x(v,w),ot(w),ot(v),x(w,v),x(v,w),("00000000"+(w[0]>>>0).toString(16)).slice(-8)+("00000000"+(w[1]>>>0).toString(16)).slice(-8)+("00000000"+(v[0]>>>0).toString(16)).slice(-8)+("00000000"+(v[1]>>>0).toString(16)).slice(-8)},Ki="phantomjs",Xi="selenium",qi="headless_chrome",Me=(function(i){function s(o,c){var p=i.call(this,c)||this;return p.state=o,p.name="BotdError",Object.setPrototypeOf(p,s.prototype),p}return(0,e.C6)(s,i),s})(Error);function $i(i,s){return i.indexOf(s)!==-1}function Mn(i,s){return i.indexOf(s)!==-1}function pi(i){return Object.getOwnPropertyNames(i)}function vi(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];for(var c=function(w){if(typeof w=="string"){if($i(i,w))return{value:!0}}else if((function(v,I){if("find"in v)return v.find(I);for(var B=0;B<v.length;B++)if(I(v[B]))return v[B]})(i,(function(v){return w.test(v)}))!=null)return{value:!0}},p=0,m=s;p<m.length;p++){var y=c(m[p]);if(typeof y=="object")return y.value}return!1}function Ji(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function va(){var i,s,o=window,c=navigator;return Ji(["webkitPersistentStorage"in c,"webkitTemporaryStorage"in c,c.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in o,"BatteryManager"in o,"webkitMediaStream"in o,"webkitSpeechGrammar"in o])>=5?"chromium":Ji(["ApplePayError"in o,"CSSPrimitiveValue"in o,"Counter"in o,c.vendor.indexOf("Apple")===0,"getStorageUpdates"in c,"WebKitMediaKeys"in o])>=4?"webkit":Ji(["buildID"in navigator,"MozAppearance"in((s=(i=document.documentElement)===null||i===void 0?void 0:i.style)!==null&&s!==void 0?s:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4?"gecko":"unknown"}var Nn={android:function(){var i=va(),s=i==="chromium",o=i==="gecko";if(!s&&!o)return!1;var c=window;return Ji(["onorientationchange"in c,"orientation"in c,s&&!("SharedWorker"in c),o&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var i,s=(i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase();return Mn(s,"edg/")?"edge":Mn(s,"trident")||Mn(s,"msie")?"internet_explorer":Mn(s,"wechat")?"wechat":Mn(s,"firefox")?"firefox":Mn(s,"opera")||Mn(s,"opr")?"opera":Mn(s,"chrome")?"chrome":Mn(s,"safari")?"safari":"unknown"},browserEngineKind:va,documentFocus:function(){return document.hasFocus!==void 0&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var i=navigator.appVersion;if(i==null)throw new Me(-1,"navigator.appVersion is undefined");return i},rtt:function(){if(navigator.connection===void 0)throw new Me(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new Me(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(navigator.plugins===void 0)throw new Me(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new Me(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(navigator.plugins===void 0)throw new Me(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new Me(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(i){if(i instanceof Error&&i.stack!=null)return i.stack.toString()}throw new Me(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var i=navigator.productSub;if(i===void 0)throw new Me(-1,"navigator.productSub is undefined");return i},windowExternal:function(){if(window.external===void 0)throw new Me(-1,"window.external is undefined");var i=window.external;if(typeof i.toString!="function")throw new Me(-2,"window.external.toString is not a function");return i.toString()},mimeTypesConsistent:function(){if(navigator.mimeTypes===void 0)throw new Me(-1,"navigator.mimeTypes is undefined");for(var i=navigator.mimeTypes,s=Object.getPrototypeOf(i)===MimeTypeArray.prototype,o=0;o<i.length;o++)s&&(s=Object.getPrototypeOf(i[o])===MimeType.prototype);return s},evalLength:function(){return eval.toString().length},webGL:function(){var i=document.createElement("canvas");if(typeof i.getContext!="function")throw new Me(-2,"HTMLCanvasElement.getContext is not a function");var s=i.getContext("webgl");if(s===null)throw new Me(-4,"WebGLRenderingContext is null");if(typeof s.getParameter!="function")throw new Me(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:s.getParameter(s.VENDOR),renderer:s.getParameter(s.RENDERER)}},webDriver:function(){if(navigator.webdriver==null)throw new Me(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){var i,s=navigator,o=[],c=s.language||s.userLanguage||s.browserLanguage||s.systemLanguage;if(c!==void 0&&o.push([c]),Array.isArray(s.languages))va()==="chromium"&&Ji([!("MediaSettingsRange"in(i=window)),"RTCEncodedAudioFrame"in i,""+i.Intl=="[object Intl]",""+i.Reflect=="[object Reflect]"])>=3||o.push(s.languages);else if(typeof s.languages=="string"){var p=s.languages;p&&o.push(p.split(","))}return o},notificationPermissions:function(){return(0,e.sH)(this,void 0,void 0,(function(){var i,s;return(0,e.YH)(this,(function(o){switch(o.label){case 0:if(window.Notification===void 0)throw new Me(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new Me(-1,"navigator.permissions is undefined");if(typeof(i=navigator.permissions).query!="function")throw new Me(-2,"navigator.permissions.query is not a function");o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.query({name:"notifications"})];case 2:return s=o.sent(),[2,window.Notification.permission==="denied"&&s.state==="prompt"];case 3:throw o.sent(),new Me(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}}))}))},documentElementKeys:function(){if(document.documentElement===void 0)throw new Me(-1,"document.documentElement is undefined");var i=document.documentElement;if(typeof i.getAttributeNames!="function")throw new Me(-2,"document.documentElement.getAttributeNames is not a function");return i.getAttributeNames()},functionBind:function(){if(Function.prototype.bind===void 0)throw new Me(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var i=window.process,s="window.process is";if(i===void 0)throw new Me(-1,"".concat(s," undefined"));if(i&&typeof i!="object")throw new Me(-3,"".concat(s," not an object"));return i},distinctiveProps:function(){var i,s,o=((i={}).awesomium={window:["awesomium"]},i.cef={window:["RunPerfTest"]},i.cefsharp={window:["CefSharp"]},i.coachjs={window:["emit"]},i.fminer={window:["fmget_targets"]},i.geb={window:["geb"]},i.nightmarejs={window:["__nightmare","nightmare"]},i.phantomas={window:["__phantomas"]},i[Ki]={window:["callPhantom","_phantom"]},i.rhino={window:["spawn"]},i[Xi]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},i.webdriverio={window:["wdioElectron"]},i.webdriver={window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},i[qi]={window:["domAutomation","domAutomationController"]},i),c={},p=pi(window),m=[];for(s in window.document!==void 0&&(m=pi(window.document)),o){var y=o[s];if(y!==void 0){var w=y.window!==void 0&&vi.apply(void 0,(0,e.fX)([p],y.window,!1)),v=!(y.document===void 0||!m.length)&&vi.apply(void 0,(0,e.fX)([m],y.document,!1));c[s]=w||v}}return c}};function Qi(i,s){return new Promise((function(o){return ga(o,i,s)}))}function ga(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=Date.now()+s,m=0,y=function(){m=setTimeout((function(){Date.now()<p?y():i.apply(void 0,o)}),p-Date.now())};return y(),function(){return clearTimeout(m)}}function zo(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=document,m="visibilitychange",y=function(){return p.hidden?I():v()},w=(function(B,C,X){for(var Q=[],tt=3;tt<arguments.length;tt++)Q[tt-3]=arguments[tt];var nt,at=!1,gt=B,_t=0,vt=function(){at||nt||(_t=Date.now(),nt=ga((function(){at=!0,X.apply(void 0,Q)}),gt))};return C&&vt(),{start:vt,stop:function(){!at&&nt&&(nt(),nt=void 0,gt-=Date.now()-_t)}}})(s,!p.hidden,(function(){p.removeEventListener(m,y),i.apply(void 0,o)})),v=w.start,I=w.stop;return p.addEventListener(m,y),function(){p.removeEventListener(m,y),I()}}function kn(i,s){return new Promise((function(o){return zo(o,i,s)}))}function nf(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,i()];case 1:return[2,c.sent()];case 2:return o=c.sent(),console.error(o),[2,s];case 3:return[2]}}))}))}function ma(i,s){return new Promise((function(o,c){var p=!1;s?.then((function(){return p=!0}),(function(){return p=!0})),(typeof i=="function"?ma(Promise.resolve(),s).then(i):i).then((function(m){p||o(m)}),(function(m){p||c(m)}))}))}function to(i){return i.then(void 0,(function(){})),i}function Gn(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,m;return(0,e.YH)(this,(function(y){switch(y.label){case 0:try{o=s().then((function(w){return c=[!0,w]}),(function(w){return c=[!1,w]}))}catch(w){c=[!1,w]}return m=i.then((function(w){return p=[!0,w]}),(function(w){return p=[!1,w]})),[4,Promise.race([o,m])];case 1:return y.sent(),[2,function(){if(c){if(c[0])return c[1];throw c[1]}if(p){if(p[0])return p[1];throw p[1]}throw new Error("96375")}]}}))}))}function rf(){var i,s,o=new Promise((function(c,p){i=c,s=p}));return o.resolve=i,o.reject=s,o}function Zo(i){return i instanceof Error||i!==null&&typeof i=="object"&&"name"in i}function of(i,s){var o=0;return function(){return Math.random()*Math.min(s,i*Math.pow(2,o++))}}function Wr(i){return i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}function Bg(i,s){return Object.prototype.hasOwnProperty.call(i,s)}function gi(i,s,o,c){return i.addEventListener(s,o,c),function(){return i.removeEventListener(s,o,c)}}var ya,wa="0123456789abcdef";function sf(i,s){if(s.length==0||s.length>i.length)return-1;for(var o=0;o<i.length;o++){for(var c=0,p=0;p<s.length;p++){if(i[o+p]!==s[p]){c=0;break}c++}if(c==s.length)return o}return-1}function Ar(i){for(var s=new Uint8Array(i.length),o=0;o<i.length;o++){var c=i.charCodeAt(o);if(c>127)return new TextEncoder().encode(i);s[o]=c}return s}function Ko(i){if(typeof TextDecoder=="function"){var s=new TextDecoder().decode(i);if(s)return s}var o=Wr(i);return decodeURIComponent(escape(String.fromCharCode.apply(null,o)))}function mi(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function af(i,s){return(i-s+256)%256}function Qn(i){var s=Wr(i);return btoa(String.fromCharCode.apply(null,s))}function Xo(i){for(var s=atob(i),o=s.length,c=new Uint8Array(o),p=0;p<o;p++)c[p]=s.charCodeAt(p);return c}function tr(i){return uf(Ar(i))}function uf(i){var s=Wr(i);ya=ya||(function(){for(var p,m=new Uint32Array(256),y=0;y<256;y++){p=y;for(var w=0;w<8;w++)p=1&p?3988292384^p>>>1:p>>>1;m[y]=p}return m})();for(var o=-1,c=0;c<s.length;c++)o=o>>>8^ya[255&(o^s[c])];return~o>>>0}function cf(i){return i===void 0?void 0:"".concat(i)}function Mg(i,s){if(i!==void 0){if(!Array.isArray(i))throw new TypeError("Expected ".concat(s," to be an array, a ").concat((function(o){return typeof o=="object"?o?Object.prototype.toString.call(o):"null":typeof o})(i)," is given"));return i.map(String)}}function kg(i){for(var s=new Uint8Array(i.length/2),o=0;o<i.length;o+=2)s[o/2]=parseInt(i[o]+i[o+1],16);return s}function qo(i){if(i instanceof Array)return i.map(qo);if(i&&typeof i=="object"){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o];s[p]=qo(i[p])}return s}return i}function Ug(i,s){for(var o=[],c=Object.getOwnPropertyNames(i),p=0;p<c.length;p++){var m=c[p],y=tr(m);s.has(y)&&o.push({i:p,n:m})}return{l:c.length,p:o}}var Ea=new Uint32Array(2);function $o(){return crypto?(crypto.getRandomValues(Ea),(1048576*Ea[0]+(1048575&Ea[1]))/4503599627370496):Math.random()}function ff(i,s,o){o===void 0&&(o=$o);for(var c="",p=0;p<i;p++)c+=s.charAt(o()*s.length);return c}function eo(i){return ff(i,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function lf(){return[8,4,4,4,12].map((function(i){return ff(i,wa)})).join("-")}var df=new Uint8Array(1);function Dg(){return crypto.getRandomValues(df),df[0]}function hf(){return new TypeError("Can't pick from nothing")}function Pg(i,s){return Math.floor($o()*(s-i+1))+i}function pf(i){return Fg(i)?(function(s){if(s.length===0)throw hf();return s[Math.floor($o()*s.length)]})(i):(function(s){for(var o=$o(),c=0,p=0,m=0,y=s;m<y.length;m++)c+=C=y[m][1];for(var w=0,v=s;w<v.length;w++){var I=v[w],B=I[0],C=I[1];if(o>=p/c&&o<(p+C)/c)return B;p+=C}throw hf()})(Object.entries(i))}var Fg=Array.isArray,ba="3.11.11",Jo={default:"endpoint"},vf={default:"tEndpoint"},Qo={default:"tlsEndpoint"};function gf(i){return i?{query:!0,fragment:!0}:void 0}var mf="_vid";function yf(i){switch(i){case 0:return"load() start";case 1:return"load() success";case 2:return"load() fail";case 3:return"get() start";case 4:return"get() success";case 5:return"get() fail";case 6:return"TLS start";case 7:return"TLS success";case 8:return"TLS fail";case 9:return"TLS attempt start";case 10:return"TLS attempt success";case 11:return"TLS attempt fail";case 12:return"Signals start";case 13:return"Signals success";case 14:return"Signals fail";case 15:return"Ingress start";case 16:return"Ingress success";case 17:return"Ingress fail";case 18:return"Ingress attempt start";case 19:return"Ingress attempt success";case 20:return"Ingress attempt fail"}}function wf(){return{len:0,arr:new Uint8Array(128)}}function er(i,s){bf(i,i.len+1),i.arr[i.len++]=s}function ts(i,s){bf(i,i.len+s.length),i.arr.set(s,i.len),i.len+=s.length}function Ef(i){return i.arr.subarray(0,i.len)}function bf(i,s){if(i.arr.length<s){var o=new Uint8Array(Math.max(2*i.arr.length,s));o.set(i.arr),i.arr=o}}function _f(i){var s=wf(),o=new WeakSet,c=function(p){if(typeof p=="string"){var m=p.replace($g,(function(at){return"\\"+(Cf[at]||"u"+at.charCodeAt(0).toString(16).padStart(4,"0"))}));return er(s,no),ts(s,Ar(m)),void er(s,no)}if(typeof p=="number"||p===!0||p===!1)return(Number.isNaN(p)||p===1/0||p===-1/0)&&(p=null),void ts(s,Ar(String(p)));if(typeof p=="object"&&p){if(o.has(p))throw new TypeError("Recursive input");o.add(p);var y=p.toJSON;if(typeof y=="function")return void c(y.call(p));if(p instanceof Number||p instanceof String)return void c(p.valueOf());var w=!0,v=function(){w?w=!1:er(s,_a)};if(Array.isArray(p)){er(s,If);for(var I=0,B=p;I<B.length;I++){var C=B[I];v(),c(C)}er(s,Of)}else{er(s,Tf);for(var X=0,Q=Object.entries(p);X<Q.length;X++){var tt=Q[X],nt=tt[0];Vg(C=tt[1])||(v(),c(nt),er(s,Af),c(C))}er(s,Nf)}o.delete(p)}else ts(s,Sa)};return c(i),Ef(s)}function es(i){var s=wf(),o=Wr(i),c=0,p=function(){return I(),o[c]===no?m():Rf(o[c])?y():B(Sa)?(c+=Sa.length,null):B(xf)?(c+=xf.length,!0):B(Lf)?(c+=Lf.length,!1):o[c]===If?w():o[c]===Tf?v():C()},m=function(){for(s.len=0;c++,o[c]!==no;){if(o[c]===Wg){if(c++,o[c]===Aa){var Q=parseInt(Ko(o.subarray(c+1,c+5)),16);ts(s,Ar(String.fromCharCode(Q))),c+=4;continue}var tt=qg[o[c]];if(tt){er(s,tt);continue}return C()}if(o[c]===void 0)return C();er(s,o[c])}return c++,Ko(Ef(s))},y=function(){for(var Q=c;o[c]===Xg||o[c]===Ra||o[c]===zg||o[c]===Zg||Rf(o[c]);)c++;return Number(Ko(o.subarray(Q,c)))},w=function(){var Q=[];for(c++;;){if(I(),o[c]===Of){c++;break}if(Q.length){if(o[c]!==_a)return C();c++}Q.push(p())}return Q},v=function(){var Q={},tt=!0;for(c++;;){if(I(),o[c]===Nf){c++;break}if(!tt){if(o[c]!==_a)return C();c++,I()}if(o[c]!==no)return C();var nt=m();if(I(),o[c]!==Af)return C();c++,Object.defineProperty(Q,nt,{value:p(),configurable:!0,enumerable:!0,writable:!0}),tt=!1}return Q},I=function(){for(;o[c]===Hg||o[c]===Yg||o[c]===jg||o[c]===Gg;)c++},B=function(Q){for(var tt=0;tt<Q.length;tt++)if(o[c+tt]!==Q[tt])return!1;return!0},C=function(){throw new SyntaxError("Unexpected ".concat(c<o.length?"byte ".concat(c):"end"))},X=p();return I(),o[c]!==void 0&&C(),X}function Vg(i){return i===void 0||typeof i=="function"||typeof i=="symbol"}function Rf(i){return i>=Sf&&i<Sf+10||i===Kg}var no=34,_a=44,Af=58,Hg=32,Gg=9,jg=13,Yg=10,Wg=92,Sf=48,Ra=101,Aa=117,zg=69,Zg=43,Kg=45,Xg=46,If=91,Of=93,Tf=123,Nf=125,Sa=new Uint8Array([110,Aa,108,108]),xf=new Uint8Array([116,114,Aa,Ra]),Lf=new Uint8Array([102,97,108,115,Ra]),Cf={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},qg=(function(){for(var i=new Uint8Array(128),s=0,o=Object.entries(Cf);s<o.length;s++){var c=o[s],p=c[0];i[c[1].charCodeAt(0)]=p.charCodeAt(0)}return i})(),$g=/[\x00-\x1F"\\]/g,Ia="Client timeout",Oa="Network connection error",Ta="Network request aborted",Na="Response cannot be parsed",xa="Blocked by CSP",La="The endpoint parameter is not a valid URL";function zr(i,s,o){return o===void 0&&(o="..."),i.length<=s?i:"".concat(i.slice(0,Math.max(0,s-o.length))).concat(o)}function jn(i){for(var s="",o=0;o<i.length;++o)if(o>0){var c=i[o].toLowerCase();c!==i[o]?s+=" ".concat(c):s+=i[o]}else s+=i[o].toUpperCase();return s}var Bf=jn("WrongRegion"),Mf=jn("SubscriptionNotActive"),kf=jn("UnsupportedVersion"),Uf=jn("InstallationMethodRestricted"),Df=jn("HostnameRestricted"),Pf=jn("IntegrationFailed"),Ff=jn("VisitorNotFound"),Vf=jn("NetworkRestricted"),Hf=jn("InvalidProxyIntegrationSecret"),Gf=jn("InvalidProxyIntegrationHeaders");function Jg(i){var s;try{s=es(i.body)}catch{}return(0,e.Cl)((0,e.Cl)({},i),{bodyData:s})}function Qg(i,s,o,c){var p=c.bodyData;return p===void 0?Kf(c):(function(m){return m instanceof Object&&m.v==="2"&&m.products instanceof Object})(p)?(function(m,y,w,v){var I,B=m.notifications,C=m.requestId,X=m.sealedResult,Q=m.error,tt=m.products,nt=(function(Ht){for(var Wt=[],Nt=0,Dt=Object.keys(Ht);Nt<Dt.length;Nt++){var Zt=Ht[Dt[Nt]];Zt&&Wt.push(Zt)}return Wt})(tt);Zf(B);for(var at=0,gt=nt;at<gt.length;at++)Zf(gt[at].notifications);if(Q)return jf(Q,C,X,w);for(var _t=0,vt=nt;_t<vt.length;_t++){var bt=vt[_t].error;if(bt)return jf(bt,C,X,w)}(function(Ht,Wt,Nt){for(var Dt,Zt=0,Qt=Wt;Zt<Qt.length;Zt++){var ne=Qt[Zt];(Dt=ne.onResponse)===null||Dt===void 0||Dt.call(ne,Ht,Nt)}})(m,y,v);var Vt=(I=tt.identification)===null||I===void 0?void 0:I.data;return{result:Vt?(0,e.Cl)((0,e.Cl)({requestId:C},X===void 0?{}:{sealedResult:X}),Vt.result):Yf(C,X,w)}})(p,i,s,o):Kf(c)}function jf(i,s,o,c){switch(i.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return Wf(s,o,!0,c);case"NotAvailableWithoutUA":return Wf(s,o,void 0,c);default:return{error:zf(tm(i),s,i),stop:i.code==="VisitorNotFound"}}}function tm(i){var s,o=i.code,c=i.message;return o===void 0?c:(s=(function(p){switch(p){case"TokenRequired":return"API key required";case"TokenNotFound":return"API key not found";case"TokenExpired":return"API key expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableForAIBots":return"Not available for AI bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}})(o))!==null&&s!==void 0?s:jn(o)}function Yf(i,s,o){var c={requestId:i,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(s!==void 0&&(c.sealedResult=s),!o)return c;var p="n/a";return(0,e.Cl)((0,e.Cl)({},c),{incognito:!1,browserName:p,browserVersion:p,device:p,ip:p,os:p,osVersion:p,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}})}function Wf(i,s,o,c){return{result:(0,e.Cl)((0,e.Cl)({},Yf(i,s,c)),{bot:(0,e.Cl)({probability:1},o===void 0?void 0:{safe:o})})}}function zf(i,s,o){var c=new Error(i);return s!==void 0&&(c.requestId=s),o!==void 0&&(c.raw=o),c}function Zf(i){i?.forEach(em)}function em(i){var s=i.level,o=i.message;s==="error"?console.error(o):s==="warning"?console.warn(o):console.log(o)}function Kf(i){return{error:zf(Na,void 0,{httpStatusCode:i.status,bodyBase64:Qn(i.body)})}}var Xf="[Fingerprint Pro]";function nm(i){return i===void 0&&(i=Xf),function(s){var o=console.log;switch(s.e){case 2:case 5:case 8:case 11:case 14:case 20:o=console.error;break;case 13:var c=s.result;Object.keys(c).some((function(m){return"error"in c[m]}))&&(o=console.warn);break;case 17:var p=s.error;o=s.stage===0&&Zo(p)&&p.message===Ff?console.log:console.error}o.apply(console,(function(m,y){var w=y.e,v=y.stage,I=(0,e.Tt)(y,["e","stage"]),B=[m,new Date().toISOString().slice(11),yf(w)];if(v!==void 0)switch(v){case 0:B.push("(fast)");break;case 1:B.push("(final)");break;default:I.stage=v}return B.push(I),B})(i,s))}}function rm(i){i===void 0&&(i="".concat(Xf," "));var s={};return function(o){switch(o.e){case 15:s[o.getCallId]=o.body;break;case 18:console.log("".concat(i,"Visitor id request"),s[o.getCallId]);break;case 19:console.log("".concat(i,"Visitor id response"),o.body);break;case 16:case 17:delete s[o.getCallId]}}}var qf="__fpjs_pvid";function $f(){var i=window,s=i[qf];return i[qf]=typeof s=="string"?s:eo(10)}function im(){var i=window;try{return i.self!==i.top}catch{return!0}}function Ca(){return!document.hidden}var Jf="stripped",Ba=["path","query","fragment"];function ns(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c=this;return(0,e.YH)(this,(function(p){switch(p.label){case 0:return Qf(s)?[2,i]:(o=rs(i),[4,Promise.all(Ba.map((function(m){return(0,e.sH)(c,void 0,void 0,(function(){var y,w,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return y=o[m],s[m]&&y?(w=o,v=m,[4,om(m==="query"?(B=y,B.split("&").sort().join("&")):y)]):[3,2];case 1:w[v]=I.sent(),I.label=2;case 2:return[2]}var B}))}))})))]);case 1:return p.sent(),[2,is(o)]}}))}))}function Qf(i){return!(i&&Ba.some((function(s){return i[s]})))}function rs(i){var s,o,c=i.split("#"),p=c[0],m=c.slice(1),y=p.split("?"),w=y[0],v=y.slice(1),I=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(w);return I?(s=(I[1]||"")+(I[4]||""),o=I[5]||""):(s="",o=w),{origin:s,path:o,query:v.length?v.join("?"):null,fragment:m.length?m.join("#"):null}}function is(i){var s=i.origin,o=i.path,c=i.query,p=i.fragment;return s+o+(c===null?"":"?".concat(c))+(p===null?"":"#".concat(p))}function om(i){var s;return(0,e.sH)(this,void 0,void 0,(function(){var o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return i===""?[2,""]:(o=(s=window.crypto)===null||s===void 0?void 0:s.subtle)!=null&&o.digest?[4,o.digest("SHA-256",Ar(i))]:[2,Jf];case 1:return[2,Qn(c.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}}))}))}function sm(i,s){var o=rs(i),c=o.origin+o.path;return c&&!c.endsWith("/")&&(c+="/"),c+=s,o.origin="",o.path=c,is(o)}function Ma(i,s){for(var o=rs(i),c=o.query,p=0,m=Object.entries(s);p<m.length;p++)for(var y=m[p],w=y[0],v=y[1],I=0,B=Array.isArray(v)?v:[v];I<B.length;I++){var C=B[I];c="".concat(c?"".concat(c,"&"):"").concat(w,"=").concat(am(C))}return o.query=c,is(o)}function am(i){return i.split("/").map(encodeURIComponent).join("/")}function um(i){return function(s){var o=[],c=new Map,p=window.setInterval((function(){var y=o.shift();if(y){var w=y[0],v=y[1],I=to(i(v));c.set(w,I)}}),1);function m(){window.clearInterval(p)}return s.then(m,m),[o,c,s]}}function t0(i){var s,o,c=Math.random();return s=c,o=i,i.container[0].push([s,o]),(function(p,m,y){var w;function v(){window.clearInterval(w)}var I=p[1],B=p[2],C=new Promise((function(X,Q){w=window.setInterval((function(){var tt=I.get(m);if(tt)return I.delete(m),tt.then(X,Q)}),1)}));return C.then(v,v),y?.then(v,v),B.then(v,v),C})(i.container,c,i.abort)}var e0=um(cm);function cm(i){return(function(s,o,c,p){var m,y=document,w="securitypolicyviolation",v=function(B){var C=new URL(s,location.href),X=B.blockedURI;X!==C.href&&X!==C.protocol.slice(0,-1)&&X!==C.origin||(m=B,I())};y.addEventListener(w,v);var I=function(){return y.removeEventListener(w,v)};return p?.then(I,I),Promise.resolve().then(o).then((function(B){return I(),B}),(function(B){return new Promise((function(C){var X=new MessageChannel;X.port1.onmessage=function(){return C()},X.port2.postMessage(null)})).then((function(){if(I(),m)return(function(){throw n0()})();throw B}))}))})(i.url,(function(){return o=(s=i).url,c=s.method,p=c===void 0?"get":c,m=s.body,y=s.headers,w=s.withCredentials,v=w!==void 0&&w,I=s.timeout,B=s.responseFormat,C=s.abort,new Promise((function(X,Q){if((function(_t){if(URL.prototype)try{return new URL(_t,location.href),!1}catch(vt){if(vt instanceof Error&&vt.name==="TypeError")return!0;throw vt}})(o))throw ro("InvalidURLError","Invalid URL");var tt=new XMLHttpRequest;try{tt.open(p,o,!0)}catch(_t){throw _t instanceof Error&&/violate.+content security policy/i.test(_t.message)?n0():_t}if(tt.withCredentials=v,tt.timeout=I===void 0?0:Math.max(I,1),B==="binary"&&(tt.responseType="arraybuffer"),y)for(var nt=0,at=Object.keys(y);nt<at.length;nt++){var gt=at[nt];tt.setRequestHeader(gt,y[gt])}tt.onload=function(){return X((function(_t){return{body:_t.response,status:_t.status,statusText:_t.statusText,getHeader:function(vt){return(function(bt,Vt){var Ht,Wt=new RegExp("^".concat((Ht=Vt,Ht.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),": (.*)$"),"im").exec(bt);return Wt?Wt[1]:void 0})(_t.getAllResponseHeaders(),vt)}}})(tt))},tt.ontimeout=function(){return Q(ro("TimeoutError","The request timed out"))},tt.onabort=function(){return Q(ro("AbortError","The request is aborted"))},tt.onerror=function(){return Q(ro("TypeError",navigator.onLine?"Connection error":"Network offline"))},tt.send((function(_t){var vt=function(){try{return new Blob([]),!1}catch{return!0}};if(_t instanceof ArrayBuffer){if(!vt())return new Uint8Array(_t)}else if(_t?.buffer instanceof ArrayBuffer&&vt())return _t.buffer;return _t})(m)),C?.catch((function(){})).then((function(){tt.onabort=null,tt.abort()}))}));var s,o,c,p,m,y,w,v,I,B,C}),0,i.abort)}function ro(i,s){var o=new Error(s);return o.name=i,o}function n0(){return ro("CSPError","The request is blocked by the CSP")}function dr(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];i&&nf((function(){var p=s.apply(void 0,o);p!==void 0&&i(p)}))}function io(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var m,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:dr(i,s),w.label=1;case 1:return w.trys.push([1,3,,4]),[4,p()];case 2:return m=w.sent(),[3,4];case 3:throw y=w.sent(),dr(i,c,y),y;case 4:return dr(i,o,m),[2,m]}}))}))}function fm(i){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o],m=i[p];if("value"in m){m.value;var y=(0,e.Tt)(m,["value"]);s[p]=y}else s[p]=m}return s}function r0(i){return typeof i.getCallId=="string"}function lm(i){if(typeof i!="object"||!i)return i;var s=i.modules;return s instanceof Array?(0,e.Cl)((0,e.Cl)({},i),{modules:s.map((function(o){if(typeof o!="object"||!o)return o;var c=o.key;return typeof c=="string"?{key:c}:o}))}):i}function dm(){var i=window,s=navigator;return mi(["maxTouchPoints"in s,"mediaCapabilities"in s,"PointerEvent"in i,"visualViewport"in i,"onafterprint"in i])>=4}function hm(){var i=window;return mi(["mediaSession"in navigator,"BigInt64Array"in i,"FormDataEvent"in i,"ImageBitmap"in i,"WebGL2RenderingContext"in i,"onclose"in i])>=4}function pm(){var i=window;return mi(["fromAsync"in Array,"OffscreenCanvas"in i,"CompressionStream"in i,"isWellFormed"in String.prototype])>=3}function vm(){var i,s=window;return mi(["Iterator"in s,s.Error&&"isError"in s.Error,s.Atomics&&"pause"in s.Atomics,((i=s.Document)===null||i===void 0?void 0:i.prototype)&&"fragmentDirective"in s.Document.prototype,s.CSSRule&&!("UNKNOWN_RULE"in s.CSSRule),!("SVGDocument"in s)])>=4}function i0(){var i=window;return mi([!("PushManager"in i),!("AudioBuffer"in i),!("RTCPeerConnection"in i),!("geolocation"in navigator),!("ServiceWorker"in i)])>=3}function gm(){var i=window;return mi(["ClipboardItem"in i,"PerformanceEventTiming"in i,"RTCSctpTransport"in i])>=2}var mm=(function(){function i(s){var o=this;this.onReportReady=s,this.isStopped=!1,this.pageStartTimestamp=(function(){var tt,nt,at=performance;if(at.timeOrigin){var gt=(nt=(tt=at.getEntriesByType)===null||tt===void 0?void 0:tt.call(at,"navigation"))===null||nt===void 0?void 0:nt[0];if(gt)return at.timeOrigin+(gt.responseStart||gt.unloadEventEnd)}return at.timing.domLoading||at.timing.responseStart||at.timing.unloadEventEnd})(),this.events={};for(var c=window,p=document,m=[[p,"readystatechange",function(){return o.handleDocumentReadyStateChange()}],[p,"visibilitychange",function(){return o.handleVisibilityChange()}],[p,"pageshow",function(){return o.handlePageTransition(!0)}],[p,"pagehide",function(){return o.handlePageTransition(!1)}],[c,"unload",function(){return o.handlePageUnload()}]],y=0,w=m;y<w.length;y++){var v=w[y],I=v[0],B=v[1],C=v[2];I.addEventListener(B,C)}var X=(function(tt){var nt=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((function(at){return gi(document,at,tt,void 0)}));return function(){for(var at=0,gt=nt;at<gt.length;at++)(0,gt[at])()}})((function(){return o.handleFullscreenChange()})),Q=(function(tt){var nt=window,at=navigator.connection;if(at)return gi(at,"change",tt);var gt=gi(nt,"online",tt),_t=gi(nt,"offline",tt);return function(){gt(),_t()}})((function(){return o.handleNetworkConnectionChange()}));this.stop=function(){o.isStopped=!0;for(var tt=0,nt=m;tt<nt.length;tt++){var at=nt[tt],gt=at[0],_t=at[1],vt=at[2];gt.removeEventListener(_t,vt)}X(),Q()}}return i.prototype.addEvent=function(s){var o;if(!this.isStopped){var c={time:new Date,type:"agentEvent",event:s};if(s.e===0){var p=s.options;this.urlHashing=(o=p?.urlHashing)!==null&&o!==void 0?o:gf(p?.stripUrlParams),c.documentReadyState=document.readyState,c.isPageVisible=Ca(),c.isFullscreen=o0(),c.network=s0()}switch(this.storeAgentEvent(c),s.e){case 2:this.submitReport(s.agentId,void 0);break;case 4:case 5:this.submitReport(s.agentId,s.getCallId)}}},i.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},i.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Ca()})},i.prototype.handlePageTransition=function(s){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:s})},i.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:o0()})},i.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:s0()})},i.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var s=0,o=Object.keys(this.events);s<o.length;s++){var c=o[s],p=this.events[c];if(Object.keys(p.getCalls).length===0)this.submitReport(c,void 0);else for(var m=0,y=Object.keys(p.getCalls);m<y.length;m++){var w=y[m];ym(p.getCalls[w])||this.submitReport(c,w)}}this.stop()},i.prototype.storeAgentEvent=function(s){var o=s.event,c=o.agentId;if(this.events[c]||(this.events[c]={commonEvents:[],getCalls:{}}),r0(o)){var p=o.getCallId;this.events[c].getCalls[p]||(this.events[c].getCalls[p]=[]),this.events[c].getCalls[p].push(s)}else this.events[c].commonEvents.push(s)},i.prototype.storeEnvironmentEvent=function(s){for(var o=0,c=Object.keys(this.events);o<c.length;o++){var p=c[o];this.events[p].commonEvents.push(s)}},i.prototype.submitReport=function(s,o){var c=(function(m,y,w){var v=[];return m[y]&&(v.push.apply(v,m[y].commonEvents),w!==void 0&&v.push.apply(v,m[y].getCalls[w]||[])),v.sort((function(I,B){return I.time.getTime()-B.time.getTime()})),v})(this.events,s,o),p=(function(m,y,w){for(var v,I,B,C,X,Q,tt,nt,at,gt=(function(Nt){for(var Dt={},Zt=0,Qt=Nt;Zt<Qt.length;Zt++){var ne=Qt[Zt];ne.type==="agentEvent"&&(Dt[ne.event.e]=ne)}return Dt})(m),_t="null",vt=0,bt=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];vt<bt.length;vt++){var Vt=bt[vt],Ht=Vt[0],Wt=Vt[1];if(gt[Ht]){_t=Wt;break}}return{time:((v=m[m.length-1])===null||v===void 0?void 0:v.time)||new Date,pageUrl:location.href,pageStartTime:new Date(y),isInIframe:im(),agentVersion:(I=gt[0])===null||I===void 0?void 0:I.event.version,userAgent:navigator.userAgent,pageViewId:$f(),agentId:(B=gt[0])===null||B===void 0?void 0:B.event.agentId,getCallId:(C=gt[3])===null||C===void 0?void 0:C.event.getCallId,requestId:(Q=(X=gt[4])===null||X===void 0?void 0:X.event.result.requestId)!==null&&Q!==void 0?Q:(nt=(tt=gt[5])===null||tt===void 0?void 0:tt.event.error)===null||nt===void 0?void 0:nt.requestId,visitorId:(at=gt[4])===null||at===void 0?void 0:at.event.result.visitorId,identificationState:_t,events:m,urlHashing:w}})(c,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(p)}catch(m){console.error(m)}},i})();function ym(i){return i.some((function(s){return s.type==="agentEvent"&&(s.event.e===4||s.event.e===5)}))}function o0(){return!!et()}function s0(){var i=navigator.connection;return{online:navigator.onLine,downlink:i?.downlink,downlinkMax:i?.downlinkMax,effectiveType:i?.effectiveType,roundTrip:i?.rtt,saveData:i?.saveData,type:i?.type}}function wm(i){var s=this,o=i.clientId,c=i.token,p=i.endpoint,m=p===void 0?"https://api.rollbar.com/api/1/item/":p,y=new mm((function(w){return(0,e.sH)(s,void 0,void 0,(function(){var v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return v=(function(B,C,X){return{access_token:X,data:Em(B,C,void 0)}})(w,o,c),[4,Rm(m,v)];case 1:return I.sent(),[2]}}))}))}));return y.addEvent.bind(y)}function Em(i,s,o){var c;o===void 0&&(o=lf());var p=bm[i.identificationState],m=p.level,y=p.message,w=(function(v,I){if(Qf(I))return v;for(var B=rs(v),C=0,X=Ba;C<X.length;C++){var Q=X[C];I[Q]&&B[Q]&&(B[Q]=Jf)}return is(B)})(i.pageUrl,i.urlHashing);return{environment:s,level:m,timestamp:Math.round(i.time.getTime()/1e3),platform:"browser",framework:"Fingerprint Pro",language:"javascript",uuid:o,notifier:{name:"Fingerprint Pro monitoring",version:ba},request:{url:w,query_string:((c=/\?.*$/.exec(w))!==null&&c!==void 0?c:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:i.userAgent,code_version:i.agentVersion}},person:i.visitorId===void 0?void 0:{id:"visitorId:".concat(i.visitorId)},body:{telemetry:(0,e.fX)([{level:"debug",source:"client",timestamp_ms:i.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],i.events.map(_m),!0),message:{body:y}},custom:{isInIframe:i.isInIframe,pageViewId:i.pageViewId,agentId:i.agentId,getCallId:i.getCallId,requestId:i.requestId,identificationState:i.identificationState}}}var bm={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function _m(i){var s={type:"manual",level:"debug",source:"client",timestamp_ms:i.time.getTime()};switch(i.type){case"documentReadyState":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:'Document ready state becomes "'.concat(i.state,'"')}});case"pageVisibilityToggle":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Page becomes ".concat(i.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:i.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Programmatic fullscreen ".concat(i.isFullscreen?"on":"off")}});case"networkChange":return(0,e.Cl)((0,e.Cl)({},s),{body:(0,e.Cl)((0,e.Cl)({},i.network),{message:"Network connection changes"})});case"pageUnload":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Page is about to unload (terminate)"}})}var o=i.event,c=function(I,B){B===void 0&&(B="info");var C=I;C.e,C.agentId,C.getCallId;for(var X=(0,e.Tt)(C,["e","agentId","getCallId"]),Q=(0,e.Cl)((0,e.Cl)({},s),{level:B,body:(0,e.Cl)({message:yf(o.e)},X)}),tt=0,nt=["documentReadyState","isPageVisible","isFullscreen","network"];tt<nt.length;tt++){var at=nt[tt];i[at]!==void 0&&(Q.body[at]=i[at])}return Q};switch(o.e){case 0:o.version;var p=o.options,m=(0,e.Tt)(o,["version","options"]);return c((0,e.Cl)((0,e.Cl)({},m),{options:lm(p)}));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return c(o);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return c(o,"error");case 7:var y=o.result;return c((0,e.Cl)((0,e.Cl)({},o),{result:(0,e.Cl)((0,e.Cl)({},y),{v:"v"in y?y.v&&zr(y.v,1e3):void 0})}));case 10:return c((0,e.Cl)((0,e.Cl)({},o),{body:zr(o.body,1e3)}));case 13:var w=c((0,e.Cl)((0,e.Cl)({},o),{result:fm(o.result)}));return w.body.message+=" (the values are omitted)",w;case 19:var v=o.body;return v instanceof ArrayBuffer&&(v="(base64) ".concat(v.byteLength>1800?"".concat(Qn(new Uint8Array(v,0,1800)),"..."):Qn(v))),c((0,e.Cl)((0,e.Cl)({},o),{body:v}))}}function Rm(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c;return(0,e.YH)(this,(function(p){switch(p.label){case 0:o=(function(m){return JSON.stringify(m,(function(y,w){if(w instanceof Error){var v=(function(I,B){var C;return B===void 0&&(B=!1),(0,e.Cl)({name:I.name,message:I.message,stack:B?(C=I.stack)===null||C===void 0?void 0:C.split(`
|
|
10
|
+
`):I.stack},I)})(w);return typeof v.stack=="string"&&(v.stack=zr(v.stack,1e3)),v}return w}))})(s),c=of(1e3,1e4),p.label=1;case 1:return navigator.onLine&&(function(m){var y,w=m.url,v=m.body,I=(function(){var C,X=(C=window.event)===null||C===void 0?void 0:C.type;return X==="pagehide"||X==="unload"})();if(I)try{if(!((y=navigator.sendBeacon)===null||y===void 0)&&y.call(navigator,w,v))return!0}catch(C){if(!(C instanceof Error&&C.message==="Illegal invocation"))throw C}var B=new XMLHttpRequest;B.open("POST",w,!I),v instanceof Blob&&B.setRequestHeader("Content-Type",v.type);try{B.send(v)}catch{return!1}return!0})({url:i,body:o})?[3,4]:[4,Qi(c())];case 2:p.sent(),p.label=3;case 3:return[3,1];case 4:return[2]}}))}))}function a0(i,s,o,c,p){c===void 0&&(c=1/0);var m,y={failedAttempts:[]},w=(function(C){var X=(function(nt){var at=(0,e.fX)([],nt,!0);return{current:function(){return at[0]},postpone:function(){var gt=at.shift();gt!==void 0&&at.push(gt)},exclude:function(){at.shift()}}})(C),Q=of(200,1e4),tt=new Set;return[X.current(),function(nt,at,gt){var _t;if(at)_t=(function(Ht){var Wt=Ht.getHeader("retry-after");if(Wt){if(/^\s*\d+(\.\d+)?\s*$/.test(Wt))return 1e3*parseFloat(Wt);var Nt=new Date(Wt);return isNaN(Nt)?void 0:Nt.getTime()-Date.now()}})(at),_t!==void 0?X.postpone():X.exclude();else if(gt instanceof Error&&(gt.name==="CSPError"||gt.name==="InvalidURLError"))X.exclude(),_t=0;else{var vt=Date.now()-nt.getTime()<50,bt=X.current();bt&&vt&&!tt.has(bt)&&(tt.add(bt),_t=0),X.postpone()}var Vt=X.current();return Vt===void 0?void 0:[Vt,_t??nt.getTime()+Q()-Date.now()]}]})(i),v=w[0],I=w[1],B=(m=[p?.then((function(C){return y.aborted={resolve:!0,value:C}}),(function(C){return y.aborted={resolve:!1,error:C}})),(0,e.sH)(this,void 0,void 0,(function(){var C,X,Q;return(0,e.YH)(this,(function(tt){switch(tt.label){case 0:if(v===void 0)return[2];C=v,X=function(nt){var at,gt,_t,vt,bt,Vt;return(0,e.YH)(this,(function(Ht){switch(Ht.label){case 0:at=new Date,gt=void 0,_t=void 0,Ht.label=1;case 1:return Ht.trys.push([1,3,,4]),[4,ma((function(){return s(C,nt,p)}),p)];case 2:return gt=Ht.sent(),[3,4];case 3:return vt=Ht.sent(),_t=vt,y.failedAttempts.push({level:0,endpoint:C,error:vt}),[3,4];case 4:if(gt){if("result"in(bt=o(gt)))return y.result=bt.result,[2,"break"];if(y.failedAttempts.push({level:1,endpoint:C,error:bt.error}),bt.stop)return[2,"break"]}return(Vt=I(at,gt,_t))?[4,ma(Qi(Vt[1]),p)]:[2,"break"];case 5:return Ht.sent(),C=Vt[0],[2]}}))},Q=0,tt.label=1;case 1:return Q<c?[5,X(Q)]:[3,4];case 2:if(tt.sent()==="break")return[3,4];tt.label=3;case 3:return++Q,[3,1];case 4:return[2]}}))}))],Promise.race(m.filter((function(C){return!!C})))).then((function(){return y}));return{then:B.then.bind(B),current:y}}function u0(){return"js/".concat(ba)}var Am=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,Sm=/@([^(^\s^}]+):(\d)+:(\d)+/i;function c0(i){return{e:Im(i)}}function Im(i){var s;try{i&&typeof i=="object"&&"message"in i?(s=String(i.message),"name"in i&&(s="".concat(i.name,": ").concat(s))):s=String(i)}catch(o){s="Code 3017: ".concat(o)}return zr(s,500)}function rn(i){return wt(i,(function(s){return{s:0,v:s}}))}function hn(i,s){return wt(i,(function(o){return{s:o==null?s:0,v:o??null}}))}function f0(i){return wt(i,(function(s){return typeof s=="number"?{s,v:null}:{s:0,v:s}}))}function xn(i){var s=function(c){return{s:0,v:c}},o=function(c){if(!(c instanceof Me))throw c;var p=c.state;if(typeof p!="number")throw new Error("Unexpected non-numeric error state ".concat(JSON.stringify(p),". Error message: ").concat(c.message));return{s:p,v:null}};return function(){try{var c=i();return(function(p){return!!p&&typeof p.then=="function"})(c)?c.then(s,o):s(c)}catch(p){return o(p)}}}function Om(i){var s=i.modules,o=i.components,c=o===void 0?{}:o,p=i.customComponent,m=i.apiKey,y=i.tls,w=i.tag,v=i.extendedResult,I=i.exposeComponents,B=i.linkedId,C=i.algorithm,X=i.imi,Q=i.storageKey,tt=i.products,nt=i.urlHashing,at=i.ab,gt=i.fast,_t=i.requestId;return(0,e.sH)(this,void 0,void 0,(function(){var vt,bt,Vt=this;return(0,e.YH)(this,(function(Ht){switch(Ht.label){case 0:return vt=(0,e.Cl)(((bt={}).c=m,bt.t=(Wt=w)&&typeof Wt=="object"?Wt:Wt!=null?{tag:Wt}:void 0,bt.cbd=v?1:void 0,bt.lid=B,bt.a=C,bt.m=X.m,bt.l=X.l,bt.ec=I?1:void 0,bt.mo=s.map((function(Nt){return Nt.key})).filter((function(Nt){return!!Nt})),bt.pr=tt,bt.s56=y,bt.s67=p?{s:0,v:p}:{s:-1,v:null},bt.sc=(function(){var Nt,Dt=(function(){var Zt,Qt,ne,ue,we,ve=new Error,Ie=(Zt=ve).fileName?Zt.fileName.split(" ")[0]:Zt.sourceURL?Zt.sourceURL:null;if(Ie)return Ie;if(ve.stack){var Le=(ne=(Qt=ve.stack.split(`
|
|
11
|
+
`))[0],ue=Qt[1],(we=Am.exec(ue)||Sm.exec(ne))?we[1]:void 0);if(Le)return Le}return null})();return(Nt={}).u=Dt?zr(Dt,1e3):null,Nt})(),bt.uh=(function(Nt){var Dt;if(Nt)return(Dt={}).p=Nt.path?1:void 0,Dt.q=Nt.query?1:void 0,Dt.f=Nt.fragment?1:void 0,Dt})(nt),bt.gt=1,bt.ab=at,bt.hu=gt?0:_t?1:void 0,bt.ri=_t,bt),(function(Nt){for(var Dt={},Zt=0,Qt=Object.keys(Nt);Zt<Qt.length;Zt++){var ne=Qt[Zt],ue=Nt[ne];if(ue){var we="error"in ue?c0(ue.error):ue.value;Dt[ne]=we}}return Dt})(c)),[4,Promise.all(s.map((function(Nt){var Dt=Nt.toRequest;return(0,e.sH)(Vt,void 0,void 0,(function(){var Zt,Qt,ne;return(0,e.YH)(this,(function(ue){switch(ue.label){case 0:return Dt?(Qt=(Zt=Object).assign,ne=[vt],[4,Dt(Q,nt)]):[3,2];case 1:Qt.apply(Zt,ne.concat([ue.sent()])),ue.label=2;case 2:return[2]}}))}))})))];case 1:return Ht.sent(),[2,vt]}var Wt}))}))}function l0(i,s,o,c,p){p===void 0&&(p=Dg);var m=p()%(o+1),y=Wr(i),w=1+s.length+1+m+c+y.length,v=new ArrayBuffer(w),I=new Uint8Array(v),B=0,C=p();I[B++]=C;for(var X=0,Q=s;X<Q.length;X++){var tt=Q[X];I[B++]=C+tt}I[B++]=C+m;for(var nt=0;nt<m;++nt)I[B++]=p();var at=new Uint8Array(c);for(nt=0;nt<c;++nt)at[nt]=p(),I[B++]=at[nt];for(nt=0;nt<y.length;++nt)I[B++]=y[nt]^at[nt%c];return v}function ka(i,s,o){var c=function(){throw new Error("Invalid data")},p=Wr(i);p.length<s.length+2&&c();for(var m=0;m<s.length;++m)af(p[1+m],p[0])!==s[m]&&c();var y=1+s.length,w=af(p[y],p[0]);p.length<y+1+w+o&&c();var v=y+1+w,I=v+o,B=new ArrayBuffer(p.length-I),C=new Uint8Array(B);for(m=0;m<C.length;++m)C[m]=p[I+m]^p[v+m%o];return B}function Tm(i){return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p,m;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return d0()?(s=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),o=s[0],c=s[1],[4,Nm(i,c)]):[2,[!1,i]];case 1:return p=y.sent(),m=o?p:(function(w){return new Uint8Array(w.buffer,w.byteOffset+2,w.byteLength-6)})(p),[2,[!0,m]]}}))}))}function d0(){return typeof CompressionStream<"u"}function Nm(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,m,y,w,v,I,B,C,X;return(0,e.YH)(this,(function(Q){switch(Q.label){case 0:(o=s.writable.getWriter()).write(i),o.close(),c=s.readable.getReader(),p=[],m=0,Q.label=1;case 1:return[4,c.read()];case 2:if(y=Q.sent(),w=y.value,y.done)return[3,4];p.push(w),m+=w.byteLength,Q.label=3;case 3:return[3,1];case 4:if(p.length===1)return[2,p[0]];for(v=new Uint8Array(m),I=0,B=0,C=p;B<C.length;B++)X=C[B],v.set(X,I),I+=X.byteLength;return[2,v]}}))}))}var h0=[3,13],xm=[3,14];function Lm(i,s){return l0(i,s?xm:h0,3,9)}function Cm(i){var s=i.body,o=(0,e.Tt)(i,["body"]);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,m,y,w,v,I;return(0,e.YH)(this,(function(B){switch(B.label){case 0:return p0(s)?[4,Tm(s)]:[3,2];case 1:return y=B.sent(),[3,3];case 2:y=[!1,s],B.label=3;case 3:return p=(c=y)[0],m=c[1],[4,t0((0,e.Cl)((0,e.Cl)({},o),{body:Lm(m,p),responseFormat:"binary"}))];case 4:w=B.sent(),v=w.body,I=!1;try{v=ka(v,h0,9),I=!0}catch{}return[2,(0,e.Cl)((0,e.Cl)({},w),{body:v,wasSecret:I})]}}))}))}function p0(i){return i.byteLength>1024&&d0()}function v0(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var m,y,w,v,I=this;return(0,e.YH)(this,(function(B){switch(B.label){case 0:if(i.length===0)throw new TypeError("The list of endpoints is empty");return m=i.map((function(C){return(function(X,Q){var tt=Q.apiKey,nt=Q.integrations,at=nt===void 0?[]:nt;return Ma(X,{ci:u0(),q:tt,ii:at})})(C,s)})),[4,Om(s)];case 1:return y=B.sent(),w=_f(y),v=s.fast?0:1,[4,io(p,(function(){return{e:15,stage:v,body:y,isCompressed:p0(w)}}),(function(C){return{e:16,stage:v,result:C}}),(function(C){return{e:17,stage:v,error:C}}),(function(){return(0,e.sH)(I,void 0,void 0,(function(){return(0,e.YH)(this,(function(C){switch(C.label){case 0:return[4,a0(m,Bm.bind(null,w,p,v,o),Qg.bind(null,s.modules,!!s.extendedResult,s.storageKey),1/0,c)];case 1:return[2,Mm(C.sent())]}}))}))}))];case 2:return[2,B.sent()]}}))}))}function Bm(i,s,o,c,p,m,y){var w=this;return io(s,(function(){return{e:18,stage:o,tryNumber:m,url:p}}),(function(v){var I=v.status,B=v.getHeader,C=v.body,X=v.bodyData,Q=v.wasSecret;return{e:19,stage:o,tryNumber:m,status:I,retryAfter:B("retry-after"),body:X??C,wasSecret:Q}}),(function(v){return{e:20,stage:o,tryNumber:m,error:v}}),(function(){return(0,e.sH)(w,void 0,void 0,(function(){return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,Cm({url:p,method:"post",headers:{"Content-Type":"text/plain"},body:i,withCredentials:!0,abort:y,container:c})];case 1:return[2,Jg(v.sent())]}}))}))}))}function Mm(i){var s=i.result,o=i.failedAttempts,c=i.aborted;if(s)return s;var p=o[0];if(!p)throw c&&!c.resolve?c.error:new Error("aborted");var m=p.level,y=p.error;if(m===0&&y instanceof Error){switch(y.name){case"CSPError":throw new Error(xa);case"InvalidURLError":throw new Error(La);case"AbortError":throw new Error(Ta)}throw new Error(Oa)}throw y}function km(i,s,o){var c,p=this,m=(0,e.Cl)((0,e.Cl)({},o),{cache:{}}),y=(function(X){for(var Q={},tt={},nt={},at=0,gt=X;at<gt.length;at++){var _t=gt[at].sources;_t&&(Object.assign(Q,_t.stage1),Object.assign(tt,_t.stage2),Object.assign(nt,_t.stage3))}var vt=tt;return Object.assign(vt,nt),[Q,vt]})(i),w=y[0],v=y[1],I=s?1e5:50,B=mt(w,m,[],I),C=to((c=8,c===void 0&&(c=50),(function(X,Q){Q===void 0&&(Q=1/0);var tt=window.requestIdleCallback;return tt?new Promise((function(nt){return tt.call(window,(function(){return nt()}),{timeout:Q})})):u(Math.min(X,Q))})(c,2*c)).then((function(){return mt(v,m,[],I)})));return function(){return(0,e.sH)(p,void 0,void 0,(function(){var X,Q,tt,nt;return(0,e.YH)(this,(function(at){switch(at.label){case 0:return[4,Promise.all([B(),C.then((function(gt){return gt()}))])];case 1:return X=at.sent(),Q=X[0],tt=X[1],nt=tt,Object.assign(nt,Q),[2,nt]}}))}))}}function Sr(i,s){for(var o=i;o;){for(var c=Object.getOwnPropertyNames(o),p=0;p<c.length;p++){var m=c[p];if(tr(m)==s)return m}o=Object.getPrototypeOf(o)}return""}function Xt(i,s){var o=i[Sr(i,s)];return typeof o=="function"?o.bind(i):o}function In(i,s){var o;return function(c){return o||(o=(function(p,m){return es(ka(new Uint32Array(p),[],m))})(i,s)),qo(o[c])}}function oo(i,s,o){var c;return function(p){return c===null?c:(c||(c=(function(m,y,w){var v=Ar(y());try{return es((function(I,B,C){for(var X=Wr(I),Q=new ArrayBuffer(X.length-C),tt=new Uint8Array(Q),nt=0;nt<X.length;++nt)tt[nt]=X[nt]^B[nt%B.length];return Q})(new Uint32Array(m),v,w))}catch(I){if(Zo(I)&&I.name==="SyntaxError")return null;throw I}})(i,s,o)),qo(c&&c[p]))}}var Zr=In([3237452699,2611787672,3045311674,2962332150,4003383289,4090353905,3805249708,3028587956,2899958253,2946027702,4002601983,4204452091,4039413417,3970602410,3953912762,2631244730,3973421252,2844251834,2861027766,2946406891,3050675130,3806041579,2961425392,4023946731,3800865722,4208313581,2776941242,3806041513,4208313085,2743259834,3806041513,4208314361,3012023994,3968505257,3045300922,2799294954,4001684968,2648037617],4),Um=[202,206];function Dm(i){for(var s={uAVXy:"9|5|11|0|3|6|7|2|10|8|4|1",FInQd:function(nt,at){return nt(at)},kpZRq:function(nt,at,gt){return nt(at,gt)},UoPyk:function(nt,at){return nt(at)},UpGPH:function(nt,at,gt){return nt(at,gt)},ZuRYV:function(nt,at){return nt-at},VnFXf:function(nt,at,gt,_t){return nt(at,gt,_t)},fDQiC:function(nt,at){return nt(at)},eKHGy:function(nt,at){return nt<at},AkgUE:function(nt,at){return nt/at},iBJKB:function(nt,at,gt){return nt(at,gt)},lIinn:function(nt,at){return nt+at}},o=s.uAVXy.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.FInQd(Qn,v);continue;case"1":return s.kpZRq(sm,i,w);case"2":var m=s.kpZRq(Fm,s.UoPyk(Ar,B),Um);continue;case"3":var y=s.UpGPH(parseInt,X[s.ZuRYV(X.length,1)],16);continue;case"4":var w=s.kpZRq(Pm,C,v);continue;case"5":var v=new Uint8Array(16);continue;case"6":var I=s.VnFXf(g0,v[y],8,22);continue;case"7":var B=p.slice(0,Math.min(s.ZuRYV(p.length,2),I));continue;case"8":var C="".concat(B).concat(Q).replace(new RegExp(s.fDQiC(Zr,1),"g"),"-").replace(new RegExp(s.fDQiC(Zr,2),"g"),"_");continue;case"9":var X=s.UoPyk(dn,i);continue;case"10":var Q=s.FInQd(Qn,s.FInQd(Vm,s.FInQd(uf,m))).slice(0,2);continue;case"11":for(var tt=0;s.eKHGy(tt,X.length);tt+=2)v[s.AkgUE(tt,2)]=s.iBJKB(parseInt,"".concat(X[tt]).concat(X[s.lIinn(tt,1)]),16);continue}break}}function Pm(i,s){for(var o={goMxK:"2|4|1|0|3",lnlOq:function(v,I){return v<I},RltcK:function(v,I,B,C){return v(I,B,C)},cVMXe:function(v,I){return v&I},SclSa:function(v,I){return v+I}},c=o.goMxK.split("|"),p=0;;){switch(c[p++]){case"0":for(;o.lnlOq(y,i.length);)w=o.RltcK(g0,s[o.cVMXe(y,15)],4,7),m+=i.slice(y,o.SclSa(y,w)),m+="/",y+=w;continue;case"1":var m="";continue;case"2":var y=0;continue;case"3":return m.slice(0,-1);case"4":var w=0;continue}break}}function g0(i,s,o){return(function(c,p){return c+p})(s,Math.floor((function(c,p){return c*p})((function(c){return c/256})(i),(function(c){return c+1})((function(c,p){return c-p})(o,s)))))}function Fm(i,s){for(var o={toGYz:"0|3|4|1|2",OGfKZ:function(v,I){return v+I},ENgdo:function(v,I){return v<I},oVWhZ:function(v,I){return v+I}},c=o.toGYz.split("|"),p=0;;){switch(c[p++]){case"0":var m=o.OGfKZ(i.length,s.length);continue;case"1":for(var y=0;o.ENgdo(y,s.length);y++)w[o.oVWhZ(y,i.length)]=s[y];continue;case"2":return w;case"3":var w=new Uint8Array(m);continue;case"4":for(y=0;o.ENgdo(y,i.length);y++)w[y]=i[y];continue}break}}function Vm(i){var s=function(o,c){return o>>c};return new Uint8Array([s(i,24),s(i,16),(function(o){return o>>8})(i),i])}function Ua(i,s){return!!i&&(function(o,c){return o===c})((function(o,c){return o(c,3814588639)})(Xt,i),(function(o,c){return o(c,3814588639)})(Xt,s))}function Hm(i){var s=function(c,p){return c(p)},o=(function(c){return c(3)})(Zr);return(function(c,p){return c!==p})(i,s(Zr,4))&&(o="".concat(i,".").concat(o)),s(Zr,5).concat(o,"/")}function Gm(i){var s=(function(o){return o(6)})(Zr)[i];return"".concat(s,(function(o){return o(7)})(Zr))}var jm=(function(){var i;return(i={}).noop=["a","b"],i})();function Ym(i,s,o,c,p,m,y,w,v,I,B,C,X){var Q=this,tt={modules:i,apiKey:c,integrations:w,imi:v,storageKey:y,ab:B,urlHashing:I},nt=function(bt,Vt,Ht){return(0,e.sH)(Q,void 0,void 0,(function(){var Wt,Nt,Dt;return(0,e.YH)(this,(function(Zt){switch(Zt.label){case 0:return C?[4,gt()]:[2,void 0];case 1:Wt=Zt.sent(),Nt=!1,Vt.catch((function(){return Nt=!0})),Zt.label=2;case 2:return Zt.trys.push([2,4,,5]),[4,v0(p,(0,e.Cl)((0,e.Cl)({},tt),{tls:Wt,fast:!0}),bt,Vt,Ht)];case 3:return[2,Zt.sent()];case 4:if(Dt=Zt.sent(),Nt)throw Dt;return Zo(Dt)&&Dt.message===Ff||console.warn(Dt),[2,void 0];case 5:return[2]}}))}))},at=function(bt,Vt,Ht){var Wt=bt.timeout,Nt=Wt===void 0?1e4:Wt,Dt=bt.tag,Zt=bt.linkedId,Qt=bt.disableTls,ne=bt.extendedResult,ue=bt.exposeComponents,we=bt.environment,ve=bt.products,Ie=to(Promise.all([vt(Ht),_t(Nt,Qt,Ht)]));return function(Le,Ce){return(0,e.sH)(Q,void 0,void 0,(function(){var Te,nn,Rn;return(0,e.YH)(this,(function(pn){switch(pn.label){case 0:return[4,Promise.race([Ce,Ie])];case 1:return Te=pn.sent(),nn=Te[0],Rn=Te[1],[4,v0(p,(0,e.Cl)((0,e.Cl)({},tt),{components:nn,customComponent:we,tag:Dt,tls:Rn,linkedId:cf(Zt),extendedResult:ne,exposeComponents:ue,algorithm:m,products:Mg(ve,"products"),requestId:Le}),Vt,Ce,Ht)];case 2:return[2,pn.sent()]}}))}))}},gt=function(){return o?.(0,50,!1,void 0)},_t=function(bt,Vt,Ht){return o?.(.1*bt,.4*bt,Vt,Ht)},vt=function(bt){return(0,e.sH)(Q,void 0,void 0,(function(){var Vt,Ht;return(0,e.YH)(this,(function(Wt){switch(Wt.label){case 0:return Wt.trys.push([0,2,,3]),[4,s()];case 1:return Vt=Wt.sent(),dr(bt,(function(){return{e:13,result:Vt}})),[2,Vt];case 2:throw Ht=Wt.sent(),dr(bt,(function(){return{e:14,error:Ht}})),Ht;case 3:return[2]}}))}))};return{get:function(bt){bt===void 0&&(bt={});var Vt=X&&(function(Ht,Wt){return function(Nt){return Ht((0,e.Cl)((0,e.Cl)({},Nt),{getCallId:Wt}))}})(X,eo(8));return io(Vt,(function(){return{e:3,options:bt}}),(function(Ht){return{e:4,result:Ht}}),(function(Ht){return{e:5,error:Ht}}),(function(){return Ht=function(Wt){return(function(Nt,Dt,Zt){return(0,e.sH)(Q,void 0,void 0,(function(){var Qt,ne,ue,we,ve,Ie,Le;return(0,e.YH)(this,(function(Ce){switch(Ce.label){case 0:Qt=rf(),Ce.label=1;case 1:return Ce.trys.push([1,,7,8]),ne=e0(Qt),ue=kn((Le=Nt.timeout)!==null&&Le!==void 0?Le:1e4).then((function(){return Promise.reject(new Error(Ia))})),we=at(Nt,ne,Dt),[4,nt(ne,ue,Dt)];case 2:return(ve=Ce.sent())?(Zt(ve),[4,we(ve.requestId,ue)]):[3,4];case 3:return Ce.sent(),[3,6];case 4:return Ie=Zt,[4,we(void 0,ue)];case 5:Ie.apply(void 0,[Ce.sent()]),Ce.label=6;case 6:return[3,8];case 7:return Qt.resolve(),[7];case 8:return[2]}}))}))})(bt,Vt,Wt)},new Promise((function(Wt,Nt){Ht(Wt).then((function(){return Nt(new Error("Action didn't call `resolve` or `reject`"))}),Nt)}));var Ht}))}}}var m0=function(i){return(0,e.sH)(this,void 0,void 0,(function(){var s,o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return p=(0,e.fX)([(y=/{(.*?)}/.exec(location.hash),!!y&&tr(y[1])===3025844545&&rm())],(i?.modules||[]).map((function(w){return w.addEvent})),!0),m=p.filter((function(w){return!!w})),s=m.length?function(){for(var w=[],v=0;v<arguments.length;v++)w[v]=arguments[v];for(var I=function(X){nf((function(){return X.apply(void 0,w)}))},B=0,C=m;B<C.length;B++)I(C[B])}:void 0,o=s&&(function(w,v){return function(I){return w((0,e.Cl)((0,e.Cl)({},I),{agentId:v}))}})(s,eo(8)),[4,io(o,(function(){return{e:0,version:ba,options:i}}),(function(w){return{e:1,ab:w[1]}}),(function(w){return{e:2,error:w}}),(function(){var w,v,I=i.token,B=i.apiKey,C=B===void 0?I:B,X=i.region,Q=X===void 0?"us":X,tt=i.tlsEndpoint,nt=tt===void 0?Qo:tt,at=i.disableTls,gt=i.storageKey,_t=gt===void 0?mf:gt,vt=i.endpoint,bt=vt===void 0?Jo:vt,Vt=i.te,Ht=Vt===void 0?vf:Vt,Wt=i.integrationInfo,Nt=Wt===void 0?[]:Wt,Dt=i.algorithm,Zt=i.imi,Qt=Zt===void 0?((w={}).m="s",w):Zt,ne=i.stripUrlParams,ue=i.urlHashing,we=ue===void 0?gf(ne):ue,ve=i.modules,Ie=i.abTests,Le=Ie===void 0?{}:Ie,Ce=i.externalABSelections,Te=Ce===void 0?{}:Ce,nn=i.optimizeRepeatedVisits,Rn=nn!==void 0&&nn,pn=i.aggressiveOptimization,Dn=pn!==void 0&&pn;if(!C||typeof C!="string")throw new Error("API key required");var Yn,Wn,Tr,Xr,nr,fn,Mt,Tt,xt,Jt=(function(Oe,ke,ze){for(var mn=(0,e.Cl)({},ze),Nr=0,uo=Object.entries(Oe);Nr<uo.length;Nr++){var Ei=uo[Nr],bi=Ei[0],co=Ei[1],On=ke[bi];if(On)try{mn[bi]=pf(On);continue}catch(zn){console.error(zn)}mn[bi]=pf(co)}return mn})((function(Oe){for(var ke=(0,e.Cl)({},jm),ze=0,mn=Oe;ze<mn.length;ze++){var Nr=mn[ze];Object.assign(ke,Nr.ab)}return ke})(ve),Le,Te),se=(Yn=bt,Wn=Q,Tr=function(Oe,ke,ze){return Oe(ke,ze)},Xr=function(Oe,ke){return Oe(ke)},nr=function(Oe,ke){return Oe(ke)},(Array.isArray(Yn)?Yn:[Yn]).map((function(Oe){return Tr(Ua,Oe,Jo)?Xr(Hm,Wn):nr(String,Oe)}))),un=(v=(function(Oe){for(var ke=0,ze=Oe;ke<ze.length;ke++){var mn=ze[ke];if(mn.tls)return mn.tls}})(ve))===null||v===void 0?void 0:v(nt,se,C,at,void 0,o);return dr(o,(function(){return{e:12}})),[Ym(ve,km(ve,Dn,{urlHashing:we,ab:Jt,te:(Mt=Q,Tt=function(Oe,ke){return Oe(ke)},xt=function(Oe,ke){return Oe(ke)},Ua(fn=Ht,vf)?Tt(Gm,Mt):xt(String,fn))}),un,C,se,cf(Dt),_t,Nt,Qt,we,Jt,Rn,o),Jt]}))];case 1:return[2,c.sent()[0]]}var p,m,y}))}))},Wm=rn(Yt),zm=hn(pe,-1),Zm=rn(ee),Km=wt(h,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),Xm=wt(be,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),y0=hn(oe,-1),w0=rn(he),qm=hn(fe,-1),E0=hn(ae,-1),b0=wt(Ee,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),_0=hn(We,-1),$m=rn(ye),Jm=rn(_e),Qm=rn(an),t4=rn(Be),e4=hn(De,-1),R0=hn(lr,-1),n4=hn(He,-1),r4=wt((function(){return zt()}),(function(i){var s=i.geometry,o=i.text,c=s==="unsupported"?-1:s==="unstable"?-2:0;return{s:c,v:(0,e.Cl)((0,e.Cl)({},i),{geometry:c===0?dn(s):"",text:c===0?dn(o):""})}})),A0=rn(Ve),S0=rn(Yr),i4=rn(qe),o4=rn($e),s4=hn(Yo,-1),a4=hn(Je,-1),u4=hn(Qe,-1),c4=hn(Wo,-1),f4=hn(tn,-1),l4=hn(en,-1),d4=hn(Pi,-1),h4=hn(Fi,-1),p4=wt(Vi,(function(i){return{s:0,v:dn(Object.keys(i).map((function(s){return"".concat(s,"=").concat(i[s])})).join(","))}})),v4=hn(Hi,-1),g4=rn(Gi),m4=hn(ji,-1),y4=wt(Yi,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),I0=f0(zi),O0=wt(Zi,(function(i){var s;if(typeof i=="number")return{s:i,v:null};var o=["32926","32928"],c=i.parameters.map((function(m){var y=m.split("=",3),w=y[0],v=y[1];return y[2]!==void 0||o.includes(v)?"".concat(w,"(").concat(v,")=null"):"".concat(w,"=").concat(v)})),p=i.extensionParameters.map((function(m){var y=m.split("=",3),w=y[0],v=y[1],I=y[2];return I!==void 0&&v!=="34047"?"".concat(w,"(").concat(v,")=").concat(I):"".concat(w,"=").concat(v)}));return{s:0,v:{contextAttributes:dn(i.contextAttributes.join("&")),parameters:dn(c.join("&")),parameters2:dn(i.parameters.join("&")),shaderPrecisions:dn(i.shaderPrecisions.join("&")),extensions:dn(((s=i.extensions)===null||s===void 0?void 0:s.join(","))||""),extensionParameters:dn(p.join(",")),extensionParameters2:dn(i.extensionParameters.join("&")),unsupportedExtensions:i.unsupportedExtensions}}})),w4=f0(Wi),E4=xn(Nn.userAgent),b4=xn(Nn.appVersion),_4=xn(Nn.rtt),R4=xn(Nn.notificationPermissions),A4=xn(Nn.pluginsLength),S4=xn(Nn.errorTrace),I4=xn(Nn.productSub),O4=xn(Nn.documentElementKeys),T4=xn(Nn.windowExternal),N4=xn(Nn.mimeTypesConsistent),x4=xn(Nn.functionBind),L4=xn(Nn.process),C4=xn(Nn.windowSize),B4=xn(Nn.distinctiveProps),T0=rn(P),N0=rn(f),x0=rn(S),L0=rn(U),C0=rn(z),B0=rn($),M0=rn(ut),k0=rn(i0),M4=rn(Z);function k4(){var i=window;if(!S())return yi(!1);try{if([66,114,97,118,101].map((function(y){return String.fromCharCode(y)})).join("")in i)return yi(!0);var s=document.createElement("canvas");s.width=4,s.height=4,s.style.display="inline";var o=s.toDataURL();if(o==="")return yi(!0);var c=Xo(o.split(",")[1]),p=sf(c,[73,68,65,84,24]);if(p===-1)return yi(!1);var m=sf(c,[73,69,78,68]);return yi(m!==-1&&c.slice(p+5,m).reduce((function(y,w){return y+w}),0)!==1321)}catch{return yi(!1)}}function yi(i){return{s:0,v:i}}function U0(){return D0("dark")?{s:0,v:!0}:D0("light")?{s:0,v:!1}:{s:-1,v:null}}function D0(i){return matchMedia("(prefers-color-scheme: ".concat(i,")")).matches}function P0(){var i=Date.now();return{s:0,v:[F0(i),F0(i-6e4*new Date().getTimezoneOffset())]}}function F0(i){var s=Number(i);return isNaN(s)?-1:s}function U4(){var i=window.performance;if(!i?.now)return{s:-1,v:null};for(var s=1,o=1,c=i.now(),p=c,m=0;m<5e4;m++)if((c=p)<(p=i.now())){var y=p-c;y>s?y<o&&(o=y):y<s&&(o=s,s=y)}return{s:0,v:[s,o]}}var D4=In([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);function P4(){var i,s,o=function(m,y){return m===y},c=function(m,y,w){return m(y,w)},p=o(s=(function(m){return m===null})(i=window[(function(m){return m(0)})(D4)])||o(i,void 0)?void 0:c(Xt,i,3933025333),null)||(function(m){return m===void 0})(s)?void 0:c(Xt,s,3098533860);return(function(m){return m===null})(p)||o(p,void 0)?{s:-1,v:null}:{s:0,v:p}}function F4(i){var s=it(i.cache);return s?((function(o){o.clearColor(0,0,1,1);var c=o.createProgram();if(c){y(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),y(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),o.linkProgram(c),o.useProgram(c),o.enableVertexAttribArray(0);var p=o.getUniformLocation(c,"t"),m=o.createBuffer();o.bindBuffer(34962,m),o.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),o.vertexAttribPointer(0,2,5126,!1,0,0),o.clear(16384),o.uniform1f(p,3.65),o.drawArrays(4,0,3)}function y(w,v){var I=o.createShader(35633-w);c&&I&&(o.shaderSource(I,v),o.compileShader(I),o.attachShader(c,I))}})(s),{s:0,v:dn(s.canvas.toDataURL())}):{s:-1,v:null}}function V4(i){return V0(i,G4)}function H4(i){return V0(i,j4)}function V0(i,s){var o=i.cache;return(0,e.sH)(this,void 0,void 0,(function(){var c,p;return(0,e.YH)(this,(function(m){switch(m.label){case 0:return typeof((c=window.speechSynthesis)==null?void 0:c.getVoices)!="function"?[2,{s:-1,v:null}]:(o.tts||(o.tts=(function(y){return(0,e.sH)(this,void 0,void 0,(function(){var w,v,I;return(0,e.YH)(this,(function(B){switch(B.label){case 0:if(w=function(){return y.getVoices()},(function(C){return!C.addEventListener||$()&&i0()})(y))return[2,{v:w()}];v={v:null},B.label=1;case 1:return B.trys.push([1,,3,4]),[4,new Promise((function(C,X){var Q,tt=function(){var nt=w();nt.length?(v.v=nt,Q?.(),Q=ga(C,50)):Q||(Q=zo(C,600))};I=gi(y,"voiceschanged",(function(){try{tt()}catch(nt){X(nt)}})),tt()}))];case 2:return B.sent(),[3,4];case 3:return I&&zo(I,1e4),[7];case 4:return[2,v]}}))}))})(c)),[4,o.tts]);case 1:return p=m.sent(),[2,function(){return p.v?s(p.v):{s:-2,v:null}}]}}))}))}function G4(i){var s=function(c){return c.replace(/([,\\])/g,"\\$1")},o=i.map((function(c){return[s(c.voiceURI),s(c.name),s(c.lang),c.localService?"1":"0",c.default?"1":"0"].join(",")})).sort();return{s:i.length?0:1,v:dn(JSON.stringify(o))}}function j4(i){var s=i.some((function(o){return tr(o.name.slice(0,6))===1655763047}));return{s:i.length?0:1,v:s}}var Y4=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function W4(){var i;return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p=this;return(0,e.YH)(this,(function(m){switch(m.label){case 0:return(s=navigator.userAgentData)&&typeof s=="object"?(o={},c=[],typeof s.getHighEntropyValues!="function"?[3,2]:[4,Promise.all(Y4.map((function(y){return(0,e.sH)(p,void 0,void 0,(function(){var w,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,s.getHighEntropyValues([y])];case 1:return(w=I.sent()[y])!==void 0&&(o[y]=typeof w=="string"?w:JSON.stringify(w)),[3,3];case 2:if(!((v=I.sent())instanceof Error&&v.name==="NotAllowedError"))throw v;return c.push(y),[3,3];case 3:return[2]}}))}))})))]):[2,{s:-1,v:null}];case 1:m.sent(),m.label=2;case 2:return[2,{s:0,v:{b:s.brands.map((function(y){return{b:y.brand,v:y.version}})),m:s.mobile,p:(i=s.platform)!==null&&i!==void 0?i:null,h:o,nah:c}}]}}))}))}function H0(i){var s=i.urlHashing;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p;return(0,e.YH)(this,(function(m){switch(m.label){case 0:return o=(function(){for(var y,w,v=[],I=window;;)try{var B=(y=I.location)===null||y===void 0?void 0:y.href,C=(w=I.document)===null||w===void 0?void 0:w.referrer;if(B===void 0||C===void 0)return{s:1,v};v.push({l:B,f:C});var X=I.parent;if(!X||X===I)return{s:0,v};I=X}catch(Q){if(Z4(Q))return{s:1,v};throw Q}})(),c=[(0,e.Cl)({},o)],p={},[4,z4(o.v,s)];case 1:return[2,e.Cl.apply(void 0,c.concat([(p.v=m.sent(),p)]))]}}))}))}function z4(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o=this;return(0,e.YH)(this,(function(c){return[2,Promise.all(i.map((function(p){return(0,e.sH)(o,void 0,void 0,(function(){var m,y,w;return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,Promise.all([ns(p.l,s),ns(p.f,s)])];case 1:return m=v.sent(),y=m[0],w=m[1],[2,{l:y,f:w}]}}))}))})))]}))}))}function Z4(i){if(!i||typeof i!="object")return!1;var s=i;return!(!P()&&!f()||s.name!=="Error"&&s.name!=="TypeError"||s.message!=="Permission denied")||s.name==="SecurityError"}function K4(){return(function(i){var s=i.location,o=i.origin,c=s.origin,p=s.ancestorOrigins,m=null;if(p){m=new Array(p.length);for(var y=0;y<p.length;++y)m[y]=p[y]}return{s:0,v:{w:o??null,l:c??null,a:m}}})(window)}function G0(){return{s:0,v:eval.toString().length}}function j0(){var i=navigator.webdriver;return i===null?{s:-1,v:null}:i===void 0?{s:-2,v:null}:{s:0,v:i}}function X4(){var i=function(o,c,p){return o(c,p)},s=this;return i(Gn,kn(250,{s:-2,v:null}),(function(){var o,c,p=function(m,y,w){return i(m,y,w)};return o=e.sH,c=function(){var m,y=function(w,v,I){return i(w,v,I)};return(function(w,v,I){return w(v,I)})(e.YH,this,(function(w){switch(w.label){case 0:return!((function(v,I){return(function(B,C){return B===C})(v,I)})(m=p(Xt,navigator,1417288500),null)||(function(v){return(function(I){return I===void 0})(v)})(m))&&p(Xt,m,3686698663)?[4,p(Xt,m,3686698663)().then((function(){return{s:0,v:""}}),(function(v){return{s:0,v:y(Xt,v,3065852031)}}))]:[2,{s:-1,v:null}];case 1:return[2,w.sent()]}}))},o(s,void 0,void 0,c)}))}function Da(){var i;return Pa([Sr(i=new Image().style,2882756133),Sr(i,3858258232)],[18,23,22,11,23,17,3,20,4,22,19,11,25,13,23,22,7,7,17,18,4,18,11,8,11,8,3,5,2,4,3,3,5,6,5,3,1,2,2,0,0])}function q4(){var i;return Pa([Sr(i=new Image().style,2487676862),Sr(i,41374024)],[5,23,47,9,35,9,44,7,37,41,19,25,32,26,30,32,8,31,12,15,40,18,15,20,9,4,2,13,21,17,18,34,40,2,48])}function $4(){return i=navigator,s=document.createElement("frameset"),o=Xt(i,704082790),Pa([Sr(s,3017323393),Y0(i,859837811,"QjslADtOBipACA")||Y0(o,72906005,"Tjo/DSpIETFCCQ")],[20,1,24,23,23,21,14,8,11,8,6,13,1,1,12,4,9,10,6,2,1,2,0,1,2,1,1]);var i,s,o}function Y0(i,s,o){var c=Sr(i,s);if(!c)return"";for(var p=Xo(o),m=Array(p.length),y=0;y<p.length;y++)m[y]=p[y]^c.charCodeAt(y%c.length);return String.fromCharCode.apply(null,m)}function Pa(i,s){for(var o=i.join(""),c=o.split(""),p=Array(o.length),m=0;m<p.length;++m)p[m]=c.splice(s[m%s.length],1);return p.join("")}var Ge=oo([290799128,256122120,104421910,67116302,755371265,505093152,152897830,504707661,470222364,504898635,1531393810,35461445,285283613,151395398,386279171,454440300,1259148302,67715140,117915663,1445400833,70599515,280581,270008841,369435995,272236574,119803980,704973062,135268614,184563807,1026755337,824180753,521019142,404440330,1310525212,689393240,992889883,118162967,75079,371069214,14400,67440946,336725549,100928582,419697754,37884160,822483751,151655985,440867606,34934535,1544297499,69023765,1530421525,521022789,352788490,152182535,1095068179,168111383,102371362,1379942426,218301962,410405200,674697750,150995736,1460669954,289295192,422585355,276197185,1241580055,503401029,169544981,956309037,1628772625,269702473,1481182751,12887,860704273,607786827,1079856400,370150428,234881091,407897606,354309752,1157892134,252333381,1264080656,304025857,1627786793,302143352,172563473,34688007,17172047,337261841,285893380,117845831,1448695310,152569103,1095068178,68628788,120395278,352653340,1245924639,288361223,2951185,3425555],Da,1);function W0(){if(!(function(s){return s in window})((i=Ge,i(1))))return!1;var i;try{return new window[(function(s){return s(1)})(Ge)],!0}catch(s){if((function(o){return o instanceof Error})(s)&&(function(o,c){return o===c})(s.name,(function(o){return o(2)})(Ge)))return!1;throw s}}function J4(i){return s=e.sH,o=function(){var c,p,m,y,w=function(v,I){return(function(B,C){return B(C)})(v,I)};return(function(v,I,B){return v(I,B)})(e.YH,this,(function(v){var I=function(B,C){return w(B,C)};switch(v.label){case 0:return c=w(Fa,i),p=c[0],m=c[1],y=c[2],(function(B){return(function(C){return C!==0})(B)})(m)?[2,{n:p,l:m}]:[4,new Promise((function(B){var C=function(X,Q){return I(X,Q)};y[I(Ge,3)]((function(X){C(B,{n:p,l:X[C(Ge,4)]})}),(function(){C(B,{n:p,l:-1})}))}))];case 1:return[2,v.sent()]}}))},s(this,void 0,void 0,o);var s,o}function Fa(i){for(var s={WceTb:"5|3|7|0|9|10|6|2|8|1|11|4",YXrDm:function(B,C,X){return B(C,X)},JsRES:function(B,C){return B(C)},WmCxs:function(B,C){return B(C)},kyiGc:function(B,C){return B===C},xozCJ:function(B,C){return B(C)},oRPyT:function(B,C){return B(C)},Unnxw:function(B,C){return B instanceof C},ZXJxt:function(B,C){return B===C},hAXYn:function(B,C){return B(C)},rrdYU:function(B,C){return B!==C},IPLsn:function(B,C){return B===C},qpBPk:function(B,C){return B(C)},tTnsV:function(B,C){return B===C},UBZPU:function(B,C){return B(C)},ijSLc:function(B,C){return B(C)},azIFr:function(B,C){return B(C)},axwYs:function(B,C){return B(C)},eKSOZ:function(B,C){return B===C}},o=s.WceTb.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.YXrDm(Sr,new window[s.JsRES(Ge,5)]("")[s.WmCxs(Ge,6)](""),3626513111);continue;case"1":if(s.kyiGc(typeof I[s.WmCxs(Ge,16)],s.xozCJ(Ge,17)))return[m,-4,null];continue;case"2":try{v[s.oRPyT(Ge,11)][s.JsRES(Ge,12)](w)}catch(B){if(s.Unnxw(B,Error)&&s.ZXJxt(B.name,s.hAXYn(Ge,2))&&s.rrdYU(s.IPLsn(y=B[s.qpBPk(Ge,13)],null)||s.tTnsV(y,void 0)?void 0:y.indexOf(s.UBZPU(Ge,14)),-1))return[m,-3,null];throw B}continue;case"3":var m=i.split("/").slice(-1)[0];continue;case"4":return[m,0,I[s.ijSLc(Ge,16)][0]];case"5":var y;continue;case"6":var w=new window[s.WmCxs(Ge,9)]([],i,s.oRPyT(Ge,10));continue;case"7":var v=new window[s.qpBPk(Ge,1)];continue;case"8":I[s.azIFr(Ge,15)]=v[s.qpBPk(Ge,15)];continue;case"9":var I=document[s.oRPyT(Ge,7)](p);continue;case"10":I[s.JsRES(Ge,8)]=s.axwYs(Ge,3);continue;case"11":if(s.eKSOZ(I[s.qpBPk(Ge,16)].length,0))return[m,-2,null];continue}break}}var Ir=In([752472786,243421427,250966661,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function Q4(){var i,s,o=function(w){return w()},c=function(w,v,I){return w(v,I)},p=function(w,v,I){return w(v,I)},m=function(w,v,I){return w(v,I)},y=function(w,v,I){return w(v,I)};return i=e.sH,s=function(){var w,v=this;return(0,e.YH)(this,(function(I){var B=function(tt,nt,at){return(function(gt,_t,vt){return gt(_t,vt)})(tt,nt,at)},C=function(tt){return o(tt)},X=function(tt,nt,at,gt,_t){return(function(vt,bt,Vt,Ht,Wt){return vt(bt,Vt,Ht,Wt)})(tt,nt,at,gt,_t)},Q=function(tt,nt){return(function(at,gt){return at(gt)})(tt,nt)};switch(I.label){case 0:return(w=Ge(0))?[3,2]:[4,c(Gn,c(kn,350,{s:-3,v:null}),(function(){var tt=function(at){return C(at)},nt=function(at,gt){return(function(_t,vt){return(function(bt,Vt){return bt(Vt)})(_t,vt)})(at,gt)};return X(e.sH,v,void 0,void 0,(function(){var at;return B(e.YH,this,(function(gt){switch(gt.label){case 0:return at={s:-3},[4,Promise.all([tt(z0)])];case 1:return[2,(at[nt(Ir,0)]=gt.sent(),at)]}}))}))}))];case 1:case 3:case 5:return[2,I.sent()];case 2:return o(W0)?[3,4]:[4,p(Gn,m(kn,350,{s:-1,v:null}),(function(){var tt=function(at,gt){return(function(_t,vt){return(function(bt,Vt){return bt(Vt)})(_t,vt)})(at,gt)},nt=function(at,gt){return Q(at,gt)};return X(e.sH,v,void 0,void 0,(function(){var at;return(function(gt,_t,vt){return B(gt,_t,vt)})(e.YH,this,(function(gt){switch(gt.label){case 0:return at={s:-1},[4,Promise.all([tt(z0,w[0])])];case 1:return[2,(at[nt(Ir,0)]=gt.sent(),at)]}}))}))}))];case 4:return[4,m(Gn,y(kn,350,{s:-2,v:null}),(function(){var tt=function(nt,at){return Q(nt,at)};return X(e.sH,v,void 0,void 0,(function(){var nt;return(function(at,gt,_t){return B(at,gt,_t)})(e.YH,this,(function(at){switch(at.label){case 0:return nt={s:0},[4,Promise.all(w.map(J4))];case 1:return[2,(nt[tt(Ir,0)]=at.sent(),nt)]}}))}))}))]}}))},i(this,void 0,void 0,s)}function z0(i){var s,o,c=function(v,I){return v(I)},p=function(v,I){return v(I)},m=function(v,I,B){return v(I,B)},y=function(v,I){return v===I},w=function(v,I){return v===I};return i===void 0&&(i=p(Ir,1)),(function(v,I,B,C,X){return v(I,void 0,void 0,X)})(e.sH,this,0,0,(function(){var v,I,B;return m(e.YH,this,(function(C){v=i.split("/").slice(-1)[0];try{return I=new window[c(Ir,2)]([],i),B=new window[c(Ir,3)](p(Ir,4).concat(m(Xt,I,4081332993)||"").concat(v,c(Ir,5)).concat(m(Xt,I,3034174415))),(function(X){return X===""})(y(s=m(Xt,B,3518522040),null)||(function(X){return X===void 0})(s)?void 0:s.substring(1))?[2,{n:v,l:-2}]:[2,{n:v,l:p(tr,w(o=m(Xt,B,3518522040),null)||y(o,void 0)?void 0:o.substring(1))}]}catch{return[2,{n:v,l:-1}]}return[2]}))}))}var t5=In([2072691393,3531177868,682500123,140161052,2954107647,581829239],6);function e5(){var i=function(o,c){return o===c},s=(function(o){return o(navigator,3087401394)})(Xt);return i(s,void 0)||i(s,null)?{s:-1,v:null}:{s:0,v:s}}function n5(){for(var i={pCQFw:"0|5|1|3|6|4|2",QPheb:function(B,C){return B(C)},cvtRQ:function(B,C){return B<C},obwRn:function(B,C,X){return B(C,X)},zLaAT:function(B,C,X,Q){return B(C,X,Q)},BBhKA:function(B,C){return B===C},dlsEs:function(B,C,X){return B(C,X)}},s=i.pCQFw.split("|"),o=0;;){switch(s[o++]){case"0":var c=window[i.QPheb(t5,0)];continue;case"1":var p=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10];continue;case"2":return{s:0,v:I};case"3":var m=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];continue;case"4":for(var y=0,w=m;i.cvtRQ(y,w.length);y++){var v=w[y];I<<=1,I|=i.obwRn(Xt,c,1108488788)(Uint8Array.of.apply(Uint8Array,i.zLaAT(e.fX,i.zLaAT(e.fX,[],p,!1),v,!1)))?1:0}continue;case"5":if(!(!(i.BBhKA(c,null)||i.BBhKA(c,void 0))&&i.dlsEs(Xt,c,1108488788)))return{s:-1,v:null};continue;case"6":var I=0;continue}break}}function r5(){for(var i={tzfkk:"3|4|0|2|1|5",hnlPn:function(I,B){return I-B},YETaQ:function(I,B){return I*B},zzipR:function(I,B){return I>=B},QPpiL:function(I,B){return I===B},YposS:function(I,B){return I%B},FPDfz:function(I,B){return I|B}},s=i.tzfkk.split("|"),o=0;;){switch(s[o++]){case"0":var c=4096;continue;case"1":for(var p=i.hnlPn(i.YETaQ(v,c),1);i.zzipR(p,0);--p)if(i.QPpiL(i.YposS(p,c),0)){var m=Math.random();w.push(i.FPDfz(i.YETaQ(i.hnlPn(y,m),Math.pow(2,31)),0)),y=m}continue;case"2":var y=Math.random();continue;case"3":var w=[];continue;case"4":var v=6;continue;case"5":return{s:0,v:w}}break}}function Z0(){var i=window.devicePixelRatio;return i==null?{s:-1,v:null}:{s:0,v:i}}function i5(){for(var i=navigator,s=["webkitPersistentStorage","connectionSpeed","xr","hid"],o=[],c=0,p=Object.getOwnPropertyNames(Object.getPrototypeOf(i));c<p.length;c++){var m=p[c];if(!s.includes(m)){var y=i[m];typeof y=="function"&&y.name!==void 0&&o.push(y.name)}}return{s:0,v:o}}function o5(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}function s5(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function a5(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};var i=new window.SharedArrayBuffer(1);return i.byteLength===void 0?{s:-1,v:null}:{s:0,v:i.byteLength}}function u5(){if(typeof window.matchMedia!="function")return{s:-2,v:null};var i=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return i.matches===void 0?{s:-1,v:null}:{s:0,v:i.matches}}function c5(){try{throw"a"}catch(i){try{return i.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}function f5(){return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(i){return[2,j((function(s,o){var c=o.document.createElement("div");return c.style.border=".5px dotted transparent",o.document.body.appendChild(c),{s:0,v:c.offsetHeight}}))]}))}))}function l5(){return navigator.mimeTypes===void 0?{s:-1,v:null}:navigator.mimeTypes.length===void 0?{s:-3,v:null}:{s:0,v:navigator.mimeTypes.length}}function d5(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function h5(){if(navigator.plugins===void 0)return{s:-1,v:null};for(var i=navigator.plugins,s=Object.getPrototypeOf(i)===PluginArray.prototype,o=0;o<i.length;o++)s&&(s=Object.getPrototypeOf(i[o])===Plugin.prototype);return{s:0,v:s}}function p5(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}function v5(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}function K0(){var i=navigator.language;return i?{s:0,v:i}:{s:-1,v:null}}function X0(){var i=navigator.languages;return i?{s:0,v:i}:{s:-1,v:null}}function g5(){var i,s,o=function(p,m,y){return p(m,y)},c=function(p,m,y){return p(m,y)};return i=e.sH,s=function(){var p,m,y,w;return(function(v,I,B){return v(I,B)})(e.YH,this,(function(v){switch(v.label){case 0:return p=navigator,m=o(Xt,p,1417288500),(y=o(Xt,p,2706846255))||!((function(I){return I===null})(m)||(function(I){return I===void 0})(m))&&o(Xt,m,3538568711)?y?[4,Promise.race([o(Qi,250,void 0),new Promise((function(I){(function(B,C){return o(B,C,1291883197)})(Xt,y)((function(B,C){return(function(X,Q){return(function(tt,nt){return tt(nt)})(X,Q)})(I,C)}))}))])]:[3,2]:[2,{s:-1,v:null}];case 1:if((function(I){return I!==void 0})(w=v.sent()))return[2,{s:0,v:w}];v.label=2;case 2:return!((function(I){return I===null})(m)||(function(I){return I===void 0})(m))&&c(Xt,m,3538568711)?[4,Promise.race([o(Qi,250,void 0),c(Xt,m,3538568711)().then((function(I){return(function(B,C){return o(B,C,1813778413)})(Xt,I)}))])]:[3,4];case 3:if((function(I){return I!==void 0})(w=v.sent()))return[2,{s:1,v:w}];v.label=4;case 4:return[2,{s:-2,v:null}]}}))},i(this,void 0,void 0,s)}var m5=In([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function y5(){var i=function(s,o){return s===o};return(0,e.sH)(this,void 0,void 0,(function(){var s,o=function(m){return(function(y){return y()})(m)},c=function(m,y,w){return(function(v,I,B){return v(I,B)})(m,y,w)},p=function(m){return(function(y){return y()})(m)};return(function(m,y,w){return m(y,w)})(e.YH,this,(function(m){switch(m.label){case 0:return o(S)&&o(gm)?[2,{s:-3,v:null}]:[4,Promise.race([c(Qi,100,null),p(w5)])];case 1:return(function(y){return i(y,null)})(s=m.sent())?[2,{s:-2,v:null}]:(function(y){return i(y,void 0)})(s)?[2,{s:-1,v:null}]:[2,{s:0,v:s}]}}))}))}function w5(){var i=function(o,c){return o(c)},s=function(o,c,p,m,y){return o(c,p,m,y)};return s(e.sH,this,void 0,void 0,(function(){var o,c=function(p,m){return i(p,m)};return(function(p,m,y){return p(m,y)})(e.YH,this,(function(p){return(o=window[(function(m,y){return i(m,y)})(m5,0)])?[2,new Promise((function(m){(function(y,w,v,I,B){s(y,w,v,I,B)})(o,0,1,(function(){return(function(y){return c(y,!0)})(m)}),(function(){return(function(y){return c(y,!1)})(m)}))}))]:[2,void 0]}))}))}function E5(){return j((function(i,s){var o=s.screen,c=function(p){var m=parseInt(p);return typeof m=="number"&&isNaN(m)?-1:m};return{s:0,v:{w:c(o.width),h:c(o.height)}}}))}var Kr=In([3924185679,3632893699,2980828376,2699881398,2597186493,3081479162,2868636342,4104912311,2917654778,3120294056,3186092732,3169643453,4210205690,3086875321,2867519889,3068977853,2897456556,2783771306,3033247220,4104908215,3152862458,2900426157,2868628129,2242641335],4);function b5(){try{return(function(s,o){return s(o)})(q0,!!window[i=Kr,i(0)])}catch{return(function(o){return o(!0)})(q0)}var i}function q0(i){return{s:0,v:i}}function _5(){var i=function(c){return c()},s=function(c,p,m){return c(p,m)},o=this;return s(Gn,kn(250,{s:-3,v:null}),(function(){return c=e.sH,p=function(){var m=function(y){return i(y)};return s(e.YH,this,(function(y){return m(U)||(function(w){return i(w)})($)?[2,m(R5)]:[2,{s:-1,v:null}]}))},c(o,void 0,void 0,p);var c,p}))}function R5(){var i,s,o=function(c,p){return c(p)};return i=e.sH,s=function(){var c,p,m={BQeod:function(y,w){return o(y,w)},iOflQ:function(y,w,v){return(function(I,B,C){return I(B,C)})(y,w,v)},uZYOC:function(y,w){return o(y,w)},DssqK:function(y){return(function(w){return w()})(y)},FbFdf:function(y,w){return(function(v,I){return v(I)})(y,w)},TWEdd:function(y,w){return(function(v,I){return v instanceof I})(y,w)},NPofR:function(y,w){return(function(v,I){return v===I})(y,w)},saNhW:"4|2|0|3|1",ywkCU:function(y,w){return(function(v,I){return v(I)})(y,w)},tYhgW:function(y,w,v){return(function(I,B,C){return I(B,C)})(y,w,v)}};return(function(y,w,v){return y(w,v)})(e.YH,this,(function(y){for(var w=m.saNhW.split("|"),v=0;;){switch(w[v++]){case"0":if(!c)return[2,{s:-2,v:null}];continue;case"1":return[2,new Promise((function(B,C){try{var X=m.iOflQ(Xt,c,2758837156)(p,1);X[m.BQeod(Kr,1)]=function(){(function(Q){m.BQeod(Q,{s:-5,v:null})})(B)},X[m.uZYOC(Kr,2)]=function(Q){var tt=I.Qxjcv(Xt,I.Qxjcv(Xt,Q,1181691900),325763347);try{return I.Qxjcv(Xt,I.ehgXq(Xt,tt,138212912)("-",I.zaFXk(Kr,3)),2928708052)(new window[I.zaFXk(Kr,4)]),void I.zaFXk(B,{s:0,v:""})}catch(nt){if(I.pOfaM(nt,Error))return void I.zaFXk(B,{s:0,v:I.ehgXq(Xt,nt,3065852031)});I.zaFXk(C,nt)}finally{I.tUivq(Xt,tt,318865860)(),I.tUivq(Xt,c,3885781331)(p)}}}catch(Q){if(!m.DssqK(U))return void m.FbFdf(B,{s:-5,v:null});if(m.TWEdd(Q,Error)&&m.NPofR(Q.name,m.FbFdf(Kr,5)))return void m.uZYOC(B,{s:-4,v:null});m.FbFdf(C,Q)}}))];case"2":c=window[m.FbFdf(Kr,0)];continue;case"3":p="".concat(m.ywkCU(eo,16));continue;case"4":var I={Qxjcv:function(B,C,X){return m.tYhgW(B,C,X)},ehgXq:function(B,C,X){return m.iOflQ(B,C,X)},zaFXk:function(B,C){return m.BQeod(B,C)},pOfaM:function(B,C){return m.TWEdd(B,C)},tUivq:function(B,C,X){return m.tYhgW(B,C,X)}};continue}break}}))},i(this,void 0,void 0,s)}var $0=In([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,2452479215],4);function A5(){var i=function(p,m,y){return p(m,y)},s="test";if(!U()||(function(p){return p()})(dm))return{s:-1,v:null};var o=window[(function(p){return p(0)})($0)],c=window[(function(p){return p(1)})($0)];try{(function(p){p(null,null,null,null)})(o)}catch{return{s:0,v:!0}}try{return i(Xt,c,2330630162)(s,"1"),i(Xt,c,588657539)(s),{s:0,v:!1}}catch{return{s:0,v:!0}}}function S5(){var i=Object.getOwnPropertyDescriptor(document,"createElement");return i?{s:0,v:!("writeable"in i)}:{s:-1,v:null}}function I5(){return{s:0,v:!!navigator.onLine}}var xe=In([2051009255,196400063,2525527446,4044416111,199305624,3777599729,664183563,2527137204,2959068455,280520411,4185511866,2144517134,3586067896,2987975794,1370780368,4217690097,2128325203,3518040290,2987517477,485718477,3408514487,1624764753,2525516212,3089101692,314277853,3777352609,1742208334,3751877875,4284477294,451175574,3090727933,1792130846,3451262692,4048669481,1370783684,4184381064,1876294928,2595627001,3189040251,285179857,3022493366,635026462,3602651639,2954672238,249917143,3022514673,664183579,3685769165,2736568422,1408460740,3831682485,1926610701,2533302452,3122262854,83050709,3022493344,1087813162,3516795391,2552037231,1608872657,3309737727,1657845296,3451270903,4048663672,149384902,3682584502,1792915224,3886684381,3054101874,519391961,3027814326,1859318097,3332770295,3205678702,1609525469,4167997183,2077073694,2578913506,3122262886,1606035925,4285518270,2077593628,3636076535,3054821986,1606035911,4184396215,1826273817,3686077407,2959063593,179857115,3765358778,634502420,3701674487,4048663658,351432409,4185430450,1859625224,2527613364,2803104104,702703057,3027158186,2127950151,2612794610,3897157222,435775636,2876823478,2077880609,2164071586,2404366395,1374366102,4184381096,1708238611,3299486178,4048008302,418538178,3865484220,1754589257,3619035641,4045515640,1291156949,3543761149,1475469901,2533318580,2701786985,1609793493,2788918761,697885517,3652325360,2803688558,1319905745,4264138979,1674820120,2162778082,4048660019,166879939,2687604411,667542345,3684786157,2802770793,249917146,3307835121,1323797546,4051773653,2318390612,1608081380,4247361710,1927784984,3652585957,3055482186,1370781895,4151957233,664188427,3602649012,3171542398,1608874193,3243808511,1223786530,3952488387,2200224840,1370768608,3849242609,1708898830,3517121730,2287055992,267615126,3799571872,650165528,3517977850,4044940645,1609377769,3798129338,1791013433,3517121730,2286400632,334719126,3126236848,1874965087,3582989055,3122657147,350380760,2888419254,1754703910,3517387769,2854871653,1203007172,4068398577,1721482260,3622324710,2954424932,1607087815,4148151486,629466963,2532385188,2382416758],5);function O5(i){return(function(s,o){return s(o,2660613247)})(Xt,i)||(i[(function(s){return s(0)})(xe)]={})}var T5=[[xe(1),function(i){return Q0(!1,i)}],[xe(2),function(){return Q0(!0)}],[xe(3),function(){return i=so,s=xe(4),i(s);var i,s}],[xe(5),function(){var i=function(s,o){return s(o)};return i(so,i(xe,6))}],[xe(7),function(){var i=function(s,o){return s(o)};return i(so,i(xe,8))}],[xe(9),function(){var i=function(s,o){return s(o)};return i(so,i(xe,10))}]];function N5(){var i=function(o,c){return o(c)},s=function(o,c){return o in c};return((function(o){return o in window})(i(xe,11))||(function(o){return o in window})(i(xe,12))||s((function(o){return o(13)})(xe),window))&&s((function(o){return o(14)})(xe),navigator)}function x5(){var i,s=function(o,c){return o(c)};return!(function(o){return o()})(S)||!(function(o){return o in document})(s(xe,15))||((function(o){return o===null})(i=document[s(xe,15)])||(function(o){return o===void 0})(i)?void 0:(function(o,c){return o(c,2256349940)})(Xt,i)().includes(s(xe,16)))}function L5(){return(function(i){return i in navigator})(xe(17))&&(function(i,s){return i in s})((function(i){return i(18)})(xe),(function(i){return i(navigator,2900309608)})(Xt))}function C5(i,s,o){var c,p=function(y,w){return y!==w},m=function(y,w){return y!==w};return(function(y){return y===void 0})(s)&&(s={}),p(o,null)&&p(o,void 0)||(o=[(function(y){return y()})(tl)]),m(c=s[i],null)&&m(c,void 0)?c:s[i]=(function(y){return y(navigator,3994889901)})(Xt)(i,o)}function so(i,s,o){var c=function(p,m,y,w){return p(m,y,w)};return(function(p,m,y,w,v){return p(m,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,m,y;return(function(w,v,I){return w(v,I)})(e.YH,this,(function(w){switch(w.label){case 0:p=0,m=i,w.label=1;case 1:if(!(function(v,I){return v<I})(p,m.length))return[3,6];y=m[p],w.label=2;case 2:return w.trys.push([2,4,,5]),[4,c(C5,y,s,o)];case 3:return[2,!!w.sent()];case 4:return w.sent(),[3,5];case 5:return p++,[3,1];case 6:return[2,!1]}}))}))}var J0=xe(19);function B5(){var i=function(w,v){return w(v)},s=function(w,v){return w(v)},o=function(w,v){return w(v)},c=function(w,v,I){return w(v,I)},p=function(w,v){return w in v},m=function(w,v){return w(v)},y=function(w){return w()};return(0,e.sH)(this,void 0,void 0,(function(){var w,v,I;return c(e.YH,this,(function(B){switch(B.label){case 0:return(function(C){return C()})($)||(function(C){return C()})(ut)?[2,!1]:(w=!1,(function(C){return C()})(L5)?(v={type:i(xe,20),audio:s(xe,21),video:o(xe,22),keySystemConfiguration:{keySystem:J0,video:o(xe,23)}},[4,c(Xt,c(Xt,navigator,2900309608),3516168465)(v)]):[3,2]);case 1:I=B.sent(),w=(function(C,X,Q){return C(X,Q)})(Bg,I,(function(C){return C(24)})(xe))&&I[(function(C){return C(24)})(xe)],B.label=2;case 2:return[2,w&&!p(m(xe,25),navigator)||!y(S)]}}))}))}function M5(i){for(var s={HkMtb:"3|2|0|4|1",pPhzD:function(m,y,w){return m(y,w)},EAQNq:function(m,y){return m(y)},cWdUy:function(m,y){return m(y)},NbRpv:function(m){return m()},dFENT:function(m,y){return m===y},npgEB:function(m,y){return m(y)}},o=s.HkMtb.split("|"),c=0;;){switch(o[c++]){case"0":s.pPhzD(Xt,p,621177879)&&(s.pPhzD(Xt,p,621177879)[0][s.EAQNq(xe,26)]=s.cWdUy(xe,27));continue;case"1":return p;case"2":var p=s.NbRpv(tl);continue;case"3":s.dFENT(i,void 0)&&(i=!1);continue;case"4":i&&(p[s.cWdUy(xe,28)]=s.npgEB(xe,29));continue}break}}function Q0(i,s){return i===void 0&&(i=!1),o=e.sH,c=function(){var p,m=function(w){return(function(v){return v()})(w)},y=function(w,v,I,B){return(function(C,X,Q,tt){return C(X,Q,tt)})(w,v,I,B)};return(function(w,v,I){return w(v,I)})(e.YH,this,(function(w){switch(w.label){case 0:return[4,m(B5)];case 1:return w.sent()?(p=(function(v,I){return(function(B,C){return B(C)})(v,I)})(M5,i),[4,y(so,[J0],s,[p])]):[2,!1];case 2:return[2,w.sent()]}}))},o(this,void 0,void 0,c);var o,c}function tl(){return xe(30)}function k5(i){var s=function(m,y,w){return m(y,w)},o=function(m,y,w,v,I){return m(y,w,v,I)},c=function(m,y,w){return m(y,w)},p=c(Xt,i,1095199719);return o(e.sH,this,void 0,void 0,(function(){var m,y=function(Q,tt){return(function(nt,at){return nt(at)})(Q,tt)},w=function(Q,tt,nt){return s(Q,tt,nt)},v=function(Q,tt,nt,at,gt){return o(Q,tt,nt,at,gt)},I=function(Q){return(function(tt){return tt()})(Q)},B=function(Q,tt,nt){return s(Q,tt,nt)},C=function(Q,tt,nt){return s(Q,tt,nt)},X=this;return c(e.YH,this,(function(Q){return I(N5)&&I(x5)?I(ut)?[2,function(){return{s:-3,v:null}}]:(m=y(O5,p),[2,B(Gn,C(kn,250,{s:-2,v:null}),(function(){var tt=function(_t,vt){return(function(bt,Vt){return(function(Ht,Wt){return Ht<Wt})(bt,Vt)})(_t,vt)},nt=function(_t,vt){return y(_t,vt)},at=function(_t,vt,bt){return w(_t,vt,bt)},gt=function(_t,vt,bt,Vt,Ht){return v(_t,vt,bt,Vt,Ht)};return v(e.sH,X,void 0,void 0,(function(){var _t,vt,bt,Vt,Ht,Wt,Nt,Dt=function(Qt,ne){return nt(Qt,ne)},Zt=this;return at(e.YH,this,(function(Qt){switch(Qt.label){case 0:return[4,Promise.all(T5.map((function(ne){var ue=function(we,ve){return Dt(we,ve)};return(function(we,ve,Ie,Le,Ce){return gt(we,ve,void 0,void 0,Ce)})(e.sH,Zt,0,0,(function(){var we,ve,Ie;return(function(Le,Ce,Te){return(function(nn,Rn,pn){return at(nn,Rn,pn)})(Le,Ce,Te)})(e.YH,this,(function(Le){switch(Le.label){case 0:return we=ne[0],ve=ne[1],Ie=[we],[4,ue(ve,m)];case 1:return[2,Ie.concat([Le.sent()])]}}))}))})))];case 1:for(_t=Qt.sent(),vt={},bt=0,Vt=_t;tt(bt,Vt.length);bt++)Ht=Vt[bt],Wt=Ht[0],Nt=Ht[1],vt[Wt]=Nt;return[2,{s:0,v:vt}]}}))}))}))]):[2,function(){return{s:-1,v:null}}]}))}))}var U5=In([1348463336,3803023018,4141740428,4039893696,3740108228,2696994793,2396890353,3287272953,2760289937,3639185880,3800550087,3229721822,3655845628,3956859780,3417230991,3987529206,3465536455,3286746798,3788241285,4155412936,2931392987,2279597529,2175059177,4024282809,2296682185,4202925994,3049385931,3321024229,4001931456,3270216648,2932772850,2345464011,3303269088,2766070917,4157718512],5);function D5(){for(var i,s,o={},c=0,p=U5(0);c<p.length;c++)for(var m=p[c],y=m[0],w=0,v=m[1];w<v.length;w++){var I=v[w],B=(s=(i=Object.getOwnPropertyDescriptor(window[y],I))===null||i===void 0?void 0:i.get)===null||s===void 0?void 0:s.toString();B!==void 0&&(o["".concat(y,".").concat(I)]=B)}return{s:0,v:o}}var el=4191585516,P5=new Set([4106781067,3209949814,2612078219,2382064880,3225112721,1018714844,2899793226,2094258580,3169460974,3079760821,392195965,3461410589,3582327722,1731918890,1767246934,3419607467,1110225616,1455947556,450291099,176445009,1998723369,2961538051,3413933903,2299562828,3945560591,485550147,3336694844,3737152292,2669437517,3860417393,el]);function F5(){for(var i=[],s=Object.getOwnPropertyNames(window),o=0;o<s.length;o++){var c=s[o],p=tr(c);if(P5.has(p)&&i.push(c),p===el){var m=s[o+1]||"";i.push(m)}}return{s:0,v:i}}function V5(){return j((function(i,s){var o={},c=s.document.createElement("div");s.document.body.appendChild(c);for(var p,m={AccentColor:"ac",AccentColorText:"act",ActiveText:"at",ActiveBorder:"ab",ActiveCaption:"aca",AppWorkspace:"aw",Background:"b",ButtonHighlight:"bh",ButtonShadow:"bs",ButtonBorder:"bb",ButtonFace:"bf",ButtonText:"bt",FieldText:"ft",GrayText:"gt",Highlight:"h",HighlightText:"ht",InactiveBorder:"ib",InactiveCaption:"ic",InactiveCaptionText:"ict",InfoBackground:"ib",InfoText:"it",LinkText:"lt",Mark:"m",Menu:"me",Scrollbar:"s",ThreeDDarkShadow:"tdds",ThreeDFace:"tdf",ThreeDHighlight:"tdh",ThreeDLightShadow:"tdls",ThreeDShadow:"tds",VisitedText:"vt",Window:"w",WindowFrame:"wf",WindowText:"wt",Selecteditem:"si",Selecteditemtext:"sit"},y=0,w=Object.keys(m);y<w.length;y++){var v=w[y];o[m[v]]=(p=v,c.style.color=p,s.getComputedStyle(c).color)}return{s:0,v:o}}))}function H5(){return j((function(i,s){var o=s.navigator.webdriver;return o===null?{s:-1,v:null}:o===void 0?{s:-2,v:null}:{s:0,v:o}}))}function G5(){return(function(i){var s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"hardwareConcurrency");if(!s||!s.get)return{s:-1,v:null};var o=window.Function,c=window.Object,p=!1;try{p=delete window.Function&&delete window.Object}catch{p=!1}if(!p)return m(),{s:-2,v:null};try{return s.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{m()}function m(){try{window.Function=o,window.Object=c}catch{}}})(navigator)}function nl(i,s){for(var o={},c=i.getBoundingClientRect(),p=0,m=["x","y","left","right","bottom","height","top","width"];p<m.length;p++){var y=m[p];y in c&&(o[y]=c[y])}var w=s.getComputedStyle(i,null).getPropertyValue("font-family");return o.font=w,o}function j5(){for(var i="",s=128512;s<=128591;s++){var o=String.fromCodePoint(s);i+=o}return j((function(c,p){var m=p.document.createElement("span");return m.style.whiteSpace="nowrap",m.innerHTML=i,p.document.body.append(m),{s:0,v:nl(m,p)}}))}function Y5(){var i="<mrow><munderover><mmultiscripts><mo>∏</mo>";function s(y,w,v,I,B){return"<mmultiscripts><mi>".concat(y,"</mi><mi>").concat(w,"</mi><mi>").concat(v,"</mi>")+"<mprescripts></mprescripts><mi>".concat(I,"</mi><mi>").concat(B,"</mi></mmultiscripts>")}for(var o=0,c=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];o<c.length;o++){var p=c[o],m=s.apply(void 0,p);i+=m}return i+="</munderover></mrow>",j((function(y,w){var v=w.document.createElement("math");return v.style.whiteSpace="nowrap",v.innerHTML=i,w.document.body.append(v),{s:0,v:nl(v,w)}}))}var W5=In([1024705730,641842159,2578743392,3876471597,2070139803],6);function z5(){var i=Xt(navigator,2698072953);return i?{s:0,v:(function(s,o){return s(o)})(Z5,i)}:{s:-1,v:null}}function Z5(i){var s=function(w,v){return w<v},o=function(w,v,I){return w(v,I)},c=function(w,v,I){return w(v,I)},p=(function(w){return w(Object,1110892003)})(Xt)(i,(function(w){return w(0)})(W5));if(p&&(function(w,v){return w(v,2813370411)})(Xt,p))return!0;for(var m=0;s(m,i.length);m++){var y=o(Xt,Object,1110892003)(i,m);if(y&&(c(Xt,y,2813370411)||o(Xt,y,1651707638)))return!0}return!1}var Pe=oo([855787288,642990106,254096950,926556982,87375404,1278677006,408486424,1479671850,1785924,253259062,240523559,673514752,658445118,1391164,607131925,722936367,271014668,151655183,36375323,656347974,1445350919,353197617,423242801,1160005147,1512002869,420283957,536958245,86705444,656408603,100677635,20185122,556090667,202191150,724518191,792405557,102894606,623247373,587992400,658457902,186065947,138173228,910037367,2368541,1529157659,892869409,976305177,203760670,1010441050,942083341,505880599,858547496,472786520,104733226,488840738,977151779,154821378,1044189198,942025224,606622265,960446235,537939522,1427451664,1594829109,757486355,521087014,119085350,638781191,792409347,3607069,137245730,740307761,975647282,992231996,556677182,121255207,522468654,103100716,805591826,205345105,352982566,809188375,538263045,590744875,204342828,87438137,657730594,355141642,1430208096,990394680,70993686,825163804,1060643342,419658253,86454317,808395603,960181563,1394880291,723543328,1059455265,422468123,1512636726,523643153,874654019,741018648,472326400,438382882,19791956,101085447,788741643,117637695,134556468,576544002,1817775652,828261639,390094395,253639961,1880502074,370026788,807930146,3016495,1527136534,71514660,945292548,304222e3,1580941075,2110514,203960841,321666847,858338073,408755024,134358831,521999910,104796679,1141842004,1376664580,355614474,1581667629,1510485767,671100941,1062295126,370957148,254414105,1535071780,561394448,1494427185,539892273,120535346,203499292,522594859,471863338,775098909,1597979140,907887673,758332434,655825187,758207319,419572773,2133349379,909508638,122886204,123473464,1463621412,641018151,1376126269,1462121850,472787007,725356864,341384543,206715932,20988416,404560468,236535349,136583426,654445841,943666452,840316960,1027350080,674639121,153557559,1510280726,961623300,1008474660,973157633,443359752,656934418,1461592383,472779801,238290498,1058027540,644034587,68093212,1597246981,1544182280,469976413,238374721,1174618196,1194143029,336400700,2066110510,34473564,1344553036,873275941,372524551,591344222,623860493,641412978,288168465,742072848,958995498,604449289,221971308,1495672659,723588667,355544366,808599331,459040,943462687,908866865,942887995,908264973,36774146,503972959,657396518,255140875,922816319,1426597669,724636239,873869836,422207e3,738338618,403715596,687875167,874774529,1040791559,120850268,604126999,775167011,470361864,992484109,419635991,743185,154018116,641337180,755635292,254040613,222176514,857754138,2505515,707068717,101333848,757538096,621551931,37443895,1547319336,456857894,3999031,908491345,775432019,439162173,706096427,358119961,1058025846,437977936,102439689,574895878,356259076,372648449,1142819334,742401113,1058341645,1362637919,70005800,202582592,1192122395,236594727,839523131,1750337312,207570485,590873144,123355928,22029379,67645968,269812016,638015583,757087233,657734424,1345271600,740439809,1561926978,1560608781,285688601,387387163,910180890,959256594,456272657,573188414,943880979,1029446156,1073890833,1029574938,1007884807,693115144,222574848,436674607,1174818049,1545405479,1275535655,823416647,86462535,523833608,974464036,658321980,1114075158,185861637,487922498,471600394,639451455,537999451,520699919,1079979324,236797980,168450619,393283123,456001101,186713889,1493375013,488440356,923600390,756164122,655898448,825951036,1411784533,34609698,1208103527,1128159247,253245995,940584251,573441833,19400266,993726249,18425437,139266084,137047810,190711400,1527646996,36582975,978979125,287314201,108201025,1057162756,1583308301,489622303,293476447,840836395,406279465,554701144,471161609,861221689,722419267,1360213011,1143874879,909322020,2035428162,438440025,106244122,322058780,891553820,1360617229,860762642,723856384,322969613,238895933,842924835,1879190897,52179258,453527317,643782993,169476647,858128388,1091178016,453267755,1179072280,1511742509,1364295471,894177538,1547456852,339630853,942212098,640433433,930292802,1599102517,1279285263,1160643877,829502250,1143043844,1530134532,559155459,188100392,1815413542,890521399,220333865,1042559767,520753679,1899432762,369635096,825252367,186328081,1513044992,104291868,842078054,537864570,823793936,1163282459,453314382,1632586541,1159401523,151472718,219612436,1343881243,302413385,67122704,252322835,289281282,520961808,570699029,470824736,843333652,387845450,1180440642,355535121,472254981,206261077,341444100,285219076,439879490,1158377805,188762957,457966854,420087833,2046827521,722541333,1263228164,1510343692,503979288,772677403,942886173,118822420,1074859273,339172401,203161933,353775648,386806050,1363745804,34035503,1295078920,654974826,103553585,17500434,84149518,1212816394,341192510,303115534,305863945,1314328859,136125003,239478532,1129799731,185012293,504893725,1243356169,158746440,1226710058,169542741,940646154,352652561,439419943,376860481,469959197,520567564,16778499,994532938,805575194,201332246,424232781,219809552,825559315,2019624473,285350999,201785371,1129190437,352980301,353764925,1159268906,235294021,236258823,1128289801,269945915,35194673,437005072,85329174,387714572,274102343,83897604,956964102,285213966,1079384090,117586755,995588193,739054110,33755162,289099606,292814850,388764421,575359829,254878242,892283406,674169947,873859604,690695688,556934411,1532961317,269620487,137047589,19803402,891619353,774844708,773205285,420423187,589300788,539835481,959397124,537535801,589641006,622930724,673579048,167981855,671091755,437650701,756498733,704784648,774251013,975510574,335745584,1040792358,134424354,772089349,891158532,18422329,1041391729,139998271,286612271,626670900,958605350,856111142,724383270,372644648,773794620,855909183,540223547,203108701,906494980,1040720168,807150682,571218739,219101490,371001128,137049628,705576492,808659290,705692733,791022080,538653958,671624507,739063102,809906233,639962113,637745182,744239416,236529698,811540526,626862600,788995891,606877246,842204468,573770006,638135325,892486697,791755096,842940166,218240539,974075680,1007048511,555429381,388115255,1057830682,907621664,941633087,892021814,705508445,656356372,641149279,592446271,960046629,421476140,36057648,673325652,639245336,253309464,286404120,19138609,941505862,52178751,537019707,103819782,990131740,87893776,572400132,940786999,991251806,420435997,705108243,621752107,792157219,556736060,860304940,908527152,707673142,893072223,87437101,69927728,540938258,421737780,56494849,220529437,637555989,587807551,201721412,1293836041,809393727,2165761,119747921,760221964,942670122,523578142,1023565147,1946881594,1495147345,302056256,118113602,33882179,1024137755,1462240834,138296332,33948685,202726697,185470982,1577530626,18037005,758717254,857941269,959654443,858460691,640372776,555703830,321330014,1482629131,492570962,473434659,589234776,1042363916,725122873,521305974,1495996214,824716089,120401469,1175858246,603988531,723400211,590361130,892885286,728181053,874711586,704914987,607397390,673849635,858927916,1980441910,271717152,588463451,186264864,439096898,237511981,336863746,1445603842,958933259,655710269,739654685,707734794,691939104,17112595,1479220487,17311610,1585157,253636865,792142081,858725420,892469556,975571478,794635822,554644258,218577412,974917174,219283825,219108949,320604719,839200021,358887210,1009990432,895033669,270346552,369371943,170854914,288163108,822414375,135800369,201547047,218968081,537737542,185541933,1023878402,621038898,302923324,896737594,722614578,18820911,907806763,119221853,34611475,85931888,134429956,219358233,51716651,436478992,772030467,169813541,134233615,270402344,353573131,318904915,654518079,773797416,222570033,974721590,893719153,186589236,689707610,822608991,1027559461,103755568,890844441,740165382,370948908,170874206,742132011,823276892,252001627,185024067,236004399,542196259,655377180,573518398,772752423,68573239,993141293,671090230,50540551,207364644,688129835,51264102,69160960,823668001,186531879,1721438,542523258,51782502,839058447,889528634,1058743644,909337639,855709264,691550208,1111303721,908535824,639830843,437662578,4131881,639639610,404095542,907748360,756363024,774594342,925979405,909059125,574562367,1041766962,2833664,906497055,773928241,354893625,86265618,186593554,771772968,911815229,705440282,237767514,22363698,991902554,576651358,641030188,842007853,1044645642,791428699,674312229,591608893,572594698,102513465,838863909,236594769,324688386,336408621,371011385,823482709,772604988,671293188,673386800,121376300,673579281,841623353,254488125,890642453,359400763,171709191,1077742878,1158229763,942290951,761559636,808342563,1529619006,73138759,371406637,924855586,489358620,823667740,773799490,2118792263,510668586,50463006,979182891,56492606,1308764941,205980450,855642373,121183505,674956826,605370372,67440411,1277167410,573652306,1594245935,375074050,1194403380,555890965,255144200,1194992947,136513541,875576142,1024269850,1510682155,1042688287,168629537,354423099,369503541,355479608,21052219,855835153,1345463855,1042756404,190065709,973626116,761204497,123093823,1915165206,459220566,370027800,1580407058,506730774,1025124126,1510744383,387514687,1141319970,1565204261,1359103771,185995575,35596554,84096006,672404008,857878564,3032093,207364681,555304731,488660742,557915986,861239815,1074597388,372852262,506478175,755175171,2581879,100939293,537605408,956701468,1060906552,202447182,84023075,925892957,1448158238,455885632,456995842,236397832,789581071,486539295,923009595,1632458001,772084274,288971043,504107035,184943133,825691398,1313151757,219814218,370679576,1229983007,134546550,33752117,420092230,101057883,353308952,927730989,320602150,437864198,403773963,3948554,603989776,303508501,119413321,1192230914,441860171,122042880,471431969,101403907,871429,1175061276,438371390,1050900,201330949,1079580686,1498700612,174478106,438317072,1145045533,403514955,18481974,639055628,1866663195,486674503,286853695,826998811],Da,0);function K5(){for(var i={YQAxx:"0|2|4|1|3",NxnUc:"1|2|0|3|4|5",dRZXE:function(y,w){return y!==w},arEiG:function(y,w){return y(w)},FEyAC:function(y,w){return y|w},cUIUX:function(y,w){return y&w},vaJLl:function(y,w){return y&w},osTKi:function(y,w){return y(w)},vuPdB:function(y,w){return y+w},euenK:function(y,w){return y(w)}},s=i.YQAxx.split("|"),o=0;;){switch(s[o++]){case"0":var c={nkHEv:i.NxnUc,yPbQz:function(y,w){return i.dRZXE(y,w)},cIFeZ:function(y,w){return i.arEiG(y,w)},kGvFR:function(y,w){return i.FEyAC(y,w)},eFyAy:function(y,w){return i.cUIUX(y,w)},WLFtS:function(y,w){return i.vaJLl(y,w)},uzqnn:function(y,w){return i.osTKi(y,w)},rqcBN:function(y,w){return i.vuPdB(y,w)}};continue;case"1":Object.defineProperty(p,i.osTKi(Pe,2),{value:m});continue;case"2":var p=i.euenK(Xo,i.arEiG(Pe,0));continue;case"3":return p;case"4":var m=function(y){for(var w=c.nkHEv.split("|"),v=0;;){switch(w[v++]){case"0":var I=this[C];continue;case"1":var B;continue;case"2":var C=c.yPbQz(B=this[c.cIFeZ(Pe,1)],null)&&c.yPbQz(B,void 0)?B:0;continue;case"3":this[C]=c.kGvFR(c.eFyAy(I,~y),c.WLFtS(~I,y));continue;case"4":this[c.uzqnn(Pe,1)]=c.rqcBN(C,1);continue;case"5":return I}break}};continue}break}}function X5(i){var s,o,c,p=function(w,v){return w(v)},m=function(w,v){return w===v},y=function(w,v){return w(v)};return o=e.sH,c=function(){var w,v,I,B,C,X,Q=function(vt,bt){return p(vt,bt)},tt=function(vt,bt){return y(vt,bt)},nt=function(vt,bt,Vt,Ht,Wt){return(function(Nt,Dt,Zt,Qt,ne){return Nt(Dt,Zt,Qt,ne)})(vt,bt,Vt,Ht,Wt)},at=function(vt,bt){return p(vt,bt)},gt=function(vt,bt){return p(vt,bt)},_t=this;return(function(vt,bt,Vt){return vt(bt,Vt)})(e.YH,this,(function(vt){switch(vt.label){case 0:return w=window[p(Pe,3)],(v=m(s=w[p(Pe,4)],null)||m(s,void 0)?void 0:s.bind(w))?(I=y(Pe,5),B=p(Pe,6),C={},[4,Promise.all(I.map((function(bt){var Vt=function(Qt,ne,ue){return(function(we,ve,Ie){return(function(Le,Ce,Te){return Le(Ce,Te)})(we,ve,Ie)})(Qt,ne,ue)},Ht=function(Qt,ne){return Q(Qt,ne)},Wt=function(Qt,ne){return tt(Qt,ne)},Nt=function(Qt,ne){return(function(ue,we){return(function(ve,Ie){return ve<Ie})(ue,we)})(Qt,ne)},Dt=function(Qt,ne,ue,we,ve){return nt(Qt,ne,ue,we,ve)},Zt=function(Qt,ne){return gt(Qt,ne)};return nt(e.sH,_t,void 0,void 0,(function(){var Qt,ne,ue,we,ve,Ie,Le,Ce;return(function(Te,nn,Rn){return(function(pn,Dn,Yn){return pn(Dn,Yn)})(Te,nn,Rn)})(e.YH,this,(function(Te){switch(Te.label){case 0:return Te.trys.push([0,9,,10]),[4,Vt(v,bt,B)];case 1:return[4,Te.sent()[Ht(Pe,7)]()];case 2:Qt=Te.sent(),ne=Qt[Wt(Pe,8)](),ue=[92,189,203],we=0,Te.label=3;case 3:if(!Nt(we,3))return[3,8];Te.label=4;case 4:return Te.trys.push([4,6,,7]),ve=C,Ie=Wt(tr,bt),[4,Dt(q5,Qt,ne,i,ue)];case 5:return ve[Ie]=Te.sent(),[2];case 6:if((function(nn,Rn){return at(nn,Rn)})(Q5,Le=Te.sent()))return ue=Zt($5,i),[3,7];throw Zt(J5,ue),Le;case 7:return we++,[3,3];case 8:return[3,10];case 9:return Ce=Te.sent(),X=Ce,[3,10];case 10:return[2]}}))}))})))]):[2,null];case 1:if(vt.sent(),X&&m(Object.keys(C).length,0))throw X;return[2,C]}}))},o(this,void 0,void 0,c)}function q5(i,s,o,c){var p=function(I,B){return I(B)},m=function(I,B){return I(B)},y=function(I,B){return I(B)},w=function(I,B){return I(B)},v=function(I,B){return I(B)};return new Promise((function(I,B){s[w(Pe,9)]=function(C){return p(I,{i:m(Ko,c),t:p(tr,C[m(Pe,10)]),s:s[m(Pe,11)],e:s[y(Pe,12)],p:w(Qn,C[v(Pe,13)])})},i[w(Pe,14)](o),s[(function(C){return C(15)})(Pe)]((function(C){return C(16)})(Pe),c).catch(B)}))}function $5(i){for(var s={UtaFw:"4|0|1|2|3",ulOIn:function(I,B){return I-B},pxHuO:function(I,B){return I>=B},pGlZB:function(I,B){return I(B)},ooLWC:function(I,B){return I+B},buezi:function(I,B){return I<<B},btVnF:function(I,B){return I%B},wSoGJ:function(I,B){return I*B},lowup:function(I,B){return I%B},hsYMn:function(I,B){return I*B}},o=s.UtaFw.split("|"),c=0;;){switch(o[c++]){case"0":var p=v.length;continue;case"1":var m=137;continue;case"2":for(var y=s.ulOIn(i.length,1);s.pxHuO(y,0);y--){var w=i[s.pGlZB(Pe,2)](s.ooLWC(s.buezi(y,8),m));v[s.btVnF(y,p)]^=s.ooLWC(w,s.wSoGJ(v[s.btVnF(s.ooLWC(y,1),p)],17)),m=w}continue;case"3":return s.pGlZB(Ar,s.pGlZB(Qn,v).slice(0,3));case"4":var v=new Uint8Array([s.lowup(Date.now(),1024),s.hsYMn(Math.random(),65536)]);continue}break}}function J5(i){for(var s=function(w,v){return w<v},o=function(w,v){return w+v},c=function(w,v){return w%v},p=function(w,v){return w-v},m=0;s(m,i.length);m++){var y=65;i[m]=o(y,c(i[m],p(122,y)))}}function Q5(i){return(function(s,o){return s(o)})(Zo,i)&&(function(s,o){return s===o})("".concat(i),(function(s){return s(17)})(Pe))}function t6(){var i=function(s,o){return s(o)};return(function(s,o,c,p,m){return s(o,void 0,void 0,m)})(e.sH,this,0,0,(function(){var s,o,c,p=function(Q,tt){return i(Q,tt)},m=function(Q){return(function(tt){return tt()})(Q)},y=function(Q,tt){return(function(nt,at){return nt in at})(Q,tt)},w=function(Q,tt){return(function(nt,at){return nt(at)})(Q,tt)},v=function(Q,tt,nt,at){return(function(gt,_t,vt,bt){return gt(_t,vt,bt)})(Q,tt,nt,at)},I=function(Q,tt){return i(Q,tt)},B=function(Q,tt,nt,at){return(function(gt,_t,vt,bt){return gt(_t,vt,bt)})(Q,tt,nt,at)},C=function(Q,tt){return(function(nt,at){return nt(at)})(Q,tt)},X=function(Q,tt){return(function(nt,at){return nt&&at})(Q,tt)};return(function(Q,tt,nt){return Q(tt,nt)})(e.YH,this,(function(Q){switch(Q.label){case 0:return m(pm)?[2,!y(p(Pe,19),window[w(Pe,20)][p(Pe,21)])]:m(hm)?[4,Promise.all([v(rl,I(Pe,22),(function(){return!0}),(function(){return!1})),B(rl,C(Pe,23),(function(){return!1}),(function(tt){return(function(nt){return(function(at,gt){return at instanceof gt})(nt,Error)})(tt)&&(function(nt,at){return(function(gt,_t){return gt===_t})(nt,at)})(tt.name,p(Pe,24))}))])]:[3,2];case 1:return s=Q.sent(),o=s[0],c=s[1],[2,X(o,c)];case 2:return[2,!1]}}))}))}function rl(i,s,o){var c=function(p,m){return p(m)};return new Promise((function(p){var m=function(I,B){return c(I,B)},y=c(Fa,i),w=y[1],v=y[2];if((function(I){return I!==0})(w))return(function(I){return I(!1)})(p);v[c(Pe,25)]((function(){return(function(I,B){return(function(C,X){return C(X)})(I,B)})(p,(function(I){return(function(B){return B()})(I)})(s))}),(function(I){return m(p,m(o,I))}))}))}var e6=In([229858650,783927519,3141207808,1645003411,2911373879,2084179082,2213201945,422262047,444852958,2568452659,961273073,4070116913,628296898,2516094721,19227916,46464143,2382904866,572186108,3147382845,1043469467,2611845399,171192596,1251730630,2338154040,2064948222,4070131749,623646351,2180159838,1719303453],7);function n6(){var i=function(s,o,c){return s(o,c)};return i(Gn,i(kn,2e3,{s:-2,v:null}),r6)}function r6(){var i,s=function(B){return B()},o=function(B,C){return B(C)},c=function(B,C){return B(C)},p=function(B,C){return B<C},m=function(B,C){return B===C},y=function(B,C,X){return B(C,X)},w=function(B,C,X){return B(C,X)},v=function(B,C){return B(C)},I=function(B,C){return B(C)};return(function(B,C,X,Q,tt){return B(C,void 0,void 0,tt)})(e.sH,this,0,0,(function(){var B,C,X,Q,tt,nt,at,gt,_t,vt,bt,Vt,Ht;return w(e.YH,this,(function(Wt){switch(Wt.label){case 0:B=window,C=s(K5),X=o(e6,0),Wt.label=1;case 1:for(Wt.trys.push([1,2,,5]),Q="".concat(c(Va,C[0])).concat(c(Va,C[1])).concat(o(Va,C[2])),tt=X[Q],nt=Object.values(tt),at={},gt=0,_t=(Ht=Object.keys(B)).slice.apply(Ht,nt);p(gt,_t.length);gt++)vt=_t[gt],bt=m(i=y(Xt,Object,1110892003)(B,vt),null)||m(i,void 0)?void 0:w(Xt,i,494360628),at[o(tr,vt)]={i:!0,t:null,s:vt.slice(-3),e:12,p:v(String,bt).slice(0,50)};return[2,{s:-3,v:at}];case 2:return Wt.sent(),[4,s(t6)];case 3:return Wt.sent()?[2,{s:-4,v:null}]:[4,I(X5,C)];case 4:return(Vt=Wt.sent())?[2,{s:0,v:Vt}]:[2,{s:-1,v:null}];case 5:return[2]}}))}))}function Va(i){return"".concat(wa[(function(s){return s>>4})(i)]).concat(wa[(function(s){return s%16})(i)])}var on=In([2849665133,3102332852,3030028940,2360597915,3649086422,4118989755,2159729800,2492790230,3150617845,3422263962,3398214861,3000338617,2163578059,3720000219,2782764965,3422263962,3600523980,2895432685,2292567243,3617170646,3986333093,2578762955,2596645530,2227996313,2259142812,3700204490,3100285842,3422263963,3903489002,2496302258,2360989318,3615531995,4120169401,2192956830,3971720145,3000875412,2277047195,3431641814,4124477118,2273483461,3481713107,2781523129,3321219718,3599275162,4157376185,2293418634,3418993356,3067464120,3120021895,4221285085,3000403896,2260651146,2496373974,3051664885,2293418634,3735466700,2345307313,3287931573,3669330832,3151268020,2192890251,2525727716,3051664893,3382957959,3448764377,3201075897,3045840518,3837111258,2966063285,2276644252,3402212556,3201145010,3048463771,2462561764,2816128395,2359614875,3837109206,4221223093,2209732555,2594026717,2782776315,2862995355,2592912343,2781727739,3422263941,3683431633,3202123702,2359548301,3617301981,4120169381,2595804298,2496377821,3100936949,2257903002,3683432918,3117908131,2331350219,3431510730,2748951986,2294283144,3565992406,2564589462,2612190863,3687578522,2999682747,2277103530,3516773597,3220146104,2625885836,3601643978,2325387955],3);function il(i){var s=function(c,p,m){return c(p,m)},o=Xt(i,928136154);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,m=function(I){return(function(B){return B()})(I)},y=function(I,B){return(function(C,X){return C===X})(I,B)},w=function(I,B,C){return s(I,B,C)},v=function(I,B,C){return(function(X,Q,tt){return X(Q,tt)})(I,B,C)};return s(e.YH,this,(function(I){switch(I.label){case 0:return c=m(lf),[4,w(Gn,v(kn,300,-4),i6.bind(null,c,o))];case 1:return p=I.sent(),[2,function(){var B=(function(C){return m(C)})(p);return(function(C){return y(C,0)})(B)||(function(C){return y(C,-4)})(B)?{s:B,v:{u:c,e:[],s:[]}}:{s:B,v:null}}]}}))}))}function i6(i,s){var o=function(p,m,y){return p(m,y)},c=function(p,m,y){return p(m,y)};return(function(p,m,y,w,v){return p(m,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,m,y,w,v,I,B,C,X=function(gt,_t,vt){return o(gt,_t,vt)},Q=function(gt,_t,vt){return c(gt,_t,vt)},tt=function(gt,_t){return(function(vt,bt){return vt!==bt})(gt,_t)},nt=function(gt,_t,vt){return c(gt,_t,vt)},at=function(gt,_t,vt){return(function(bt,Vt,Ht){return bt(Vt,Ht)})(gt,_t,vt)};return(function(gt,_t,vt){return gt(_t,vt)})(e.YH,this,(function(gt){switch(gt.label){case 0:if(p=X(o6,i,s),m=X(a6,p,!0),y=Q(Xt,m,453955339),w=Q(Xt,m,1801730948),tt(y,0))return[2,y];v=X(l6,w,s),gt.label=1;case 1:return gt.trys.push([1,,4,5]),[4,nt(Xt,v,142982734)()];case 2:return I=gt.sent(),B=Q(Xt,I,453955339),C=Q(Xt,I,1801730948),tt(B,0)?[2,B]:[4,at(Xt,w,76151562)(C)];case 3:return gt.sent(),[2,0];case 4:return(function(_t,vt){return o(_t,vt,107910612)})(Xt,v)(),[7];case 5:return[2]}}))}))}function o6(i,s){for(var o={AvCwh:"2|1|5|0|3|4",sALZI:function(w,v){return w(v)}},c=o.AvCwh.split("|"),p=0;;){switch(c[p++]){case"0":var m={};continue;case"1":y[o.sALZI(on,1)]=o.sALZI(s6,s);continue;case"2":var y=o.sALZI(on,0);continue;case"3":m[o.sALZI(on,3)]=[y];continue;case"4":return m;case"5":y[o.sALZI(on,2)]=i;continue}break}}function s6(i){var s=function(o,c){return o(c)};return s(on,4).concat((function(o,c,p){return o(c,p)})(Ma,i,s(on,5)))}var ol=on(6);function a6(i,s){for(var o={xqmnO:"4|3|0|2|1",SaOtC:function(w,v){return w instanceof v},xPGBK:function(w,v){return w===v},DCAVD:function(w,v){return w(v)},fgKXx:function(w,v){return w(v)}},c=o.xqmnO.split("|"),p=0;;){switch(c[p++]){case"0":var m;continue;case"1":return{s:0,v:m};case"2":try{m=new y(i)}catch(w){if(o.SaOtC(w,Error)){if(o.xPGBK(w.name,ol))return{s:-6,v:null};if(o.DCAVD(c6,w))return{s:-9,v:null}}throw w}continue;case"3":if(!y)return{s:-3,v:null};continue;case"4":var y=s?window[o.fgKXx(on,7)]||window[o.DCAVD(on,8)]:window[o.DCAVD(on,7)];continue}break}}function u6(i,s){var o,c=function(p,m){return p===m};try{return c(o=(function(p,m){return p(m,34843658)})(Xt,i),null)||c(o,void 0)||o.call(i,s||Math.random().toString()),0}catch(p){if((function(m){return m instanceof Error})(p)&&c(p.name,ol))return-7;throw p}}function c6(i){return(function(s,o){return s===o})(i.name,(function(s){return s(9)})(on))&&(function(s,o){return s(o,3632233996)})(Xt,new RegExp((function(s){return s(10)})(on)))((function(s,o){return s(o,3065852031)})(Xt,i))}function ao(i){try{Xt(i,318865860)()}catch{}}function f6(i,s){var o=function(c,p,m){return c(p,m)};return(function(c,p,m,y,w){return c(p,void 0,void 0,w)})(e.sH,this,0,0,(function(){var c,p;return(function(m,y,w){return m(y,w)})(e.YH,this,(function(m){switch(m.label){case 0:try{c=(function(y,w,v){return o(y,w,v)})(Xt,i,882066760)(s)}catch(y){if(!(function(w,v){return(function(I,B){return I instanceof B})(w,v)})(y,Error)||!(function(w,v,I){return o(w,v,I)})(Xt,new RegExp((function(w){return(function(v){return v(11)})(w)})(on),"i"),3632233996)((function(w,v,I){return o(w,v,I)})(Xt,y,3065852031)))throw y;c=new Promise((function(w,v){(function(I,B){return(function(C,X,Q){return o(C,X,Q)})(I,B,882066760)})(Xt,i)(w,v,s)}))}return[4,c];case 1:return(function(y){return(function(w,v){return w===v})(y,void 0)})(p=m.sent())?[2,{s:-8,v:null}]:[2,{s:0,v:p}]}}))}))}function l6(i,s){var o,c,p=function(Nt,Dt){return Nt(Dt)},m=function(Nt,Dt){return Nt===Dt},y=function(Nt,Dt,Zt){return Nt(Dt,Zt)},w=function(Nt,Dt){return Nt(Dt)},v=function(Nt,Dt){return Nt!==Dt},I=function(Nt,Dt){return Nt in Dt},B=function(Nt,Dt){return Nt in Dt},C=function(Nt){return Nt()},X=function(Nt,Dt){return Nt(Dt)},Q=function(Nt,Dt,Zt){return Nt(Dt,Zt)},tt=function(Nt,Dt,Zt){return Nt(Dt,Zt)},nt=function(Nt,Dt,Zt,Qt,ne){return Nt(Dt,Zt,Qt,ne)},at=this;function gt(Nt,Dt){return p(_t,Nt)&&m(y(Xt,Nt,3920415024),400)&&y(Xt,Nt,4101391790).includes(Dt)}function _t(Nt){return m(typeof Nt,w(on,12))&&v(Nt,null)&&I(p(on,13),Nt)&&B(w(on,14),Nt)}var vt=null,bt=!1;function Vt(){var Nt=function(Zt,Qt){return(function(ne,ue){return ne!==ue})(Zt,Qt)},Dt=function(Zt,Qt){return w(Zt,Qt)};return nt(e.sH,this,void 0,void 0,(function(){var Zt,Qt,ne,ue;return(function(we,ve,Ie){return tt(we,ve,Ie)})(e.YH,this,(function(we){switch(we.label){case 0:return Zt=(function(ve,Ie){return X(ve,Ie)})(u6,i),Nt(Zt,0)?[2,{s:Zt,v:null}]:[4,Dt(f6,i)];case 1:return Qt=we.sent(),ne=(function(ve,Ie){return Q(ve,Ie,453955339)})(Xt,Qt),ue=(function(ve,Ie){return(function(Le,Ce,Te){return Le(Ce,Te)})(ve,Ie,1801730948)})(Xt,Qt),Nt(ne,0)?[2,{s:ne,v:null}]:[2,{s:0,v:ue}]}}))}))}s&&tt(Xt,i,123626528)(on(15),(function(Nt){y(gt,Nt,s)&&(vt?(C(vt),vt=null,X(ao,i)):bt=!0)}));var Ht,Wt=((o={})[Ht=on,Ht(17)]=function(){return(function(Nt,Dt){return Nt(Dt)})(ao,i)},o[(function(Nt){return Nt(18)})(on)]=function(){var Nt=function(Zt){return C(Zt)},Dt=function(Zt,Qt,ne){return(function(ue,we,ve){return ue(we,ve)})(Zt,Qt,ne)};return nt(e.sH,at,void 0,void 0,(function(){var Zt;return Dt(e.YH,this,(function(Qt){switch(Qt.label){case 0:return[4,Nt(Vt)];case 1:return Zt=Qt.sent(),(function(ne){return v(ne,0)})(Dt(Xt,Zt,453955339))&&(function(ne,ue){p(ne,ue)})(ao,i),[2,Zt]}}))}))},o);return s?Q(Xt,Object,1914874273)(Wt,((c={})[(function(Nt){return Nt(19)})(on)]=function(){m((function(Nt,Dt){return Nt(Dt,4184312542)})(Xt,i),p(on,16))||(bt?(function(Nt,Dt){Nt(Dt)})(ao,i):vt=(function(Nt,Dt,Zt,Qt){return Nt(Dt,5e3,Qt)})(zo,ao,0,i))},c)):Wt}var Un=oo([1158230590,352328197,922751784,234887733,1045777409,235013451,1077693209,86185296,321396490,462366,488115742,1213075980,4402479,184943903,188551425,1398147351,268897603,491523647,306988571,1261376568,269223502,570890009,34866732,470426899,403966778,253756433,304419089,491347009,508233756,403654977,421396492,1329803025,184551506,1057755406,136120322,118163754,373378420,453843998,1159464460,319444544,855642889,402851378,1191248155,151015493,219352090,67375366,17696018,1263095066,420348421,21908811,168961297,171640095,14413],q4,2);function d6(){var i=function(y,w){return y(w)},s=function(y,w){return y(w)},o=function(y,w,v){return y(w,v)},c=function(y,w){return y<w},p=function(y,w,v){return y(w,v)},m=function(y,w,v){return y(w,v)};return(function(y,w,v,I,B){return y(w,void 0,void 0,B)})(e.sH,this,0,0,(function(){var y,w,v,I,B,C,X,Q;return o(e.YH,this,(function(tt){switch(tt.label){case 0:return(function(nt){return nt()})(vm)?[2,[-1,NaN]]:(y=new Uint8Array([0]),w=i(Un,0),[4,navigator[i(Un,1)](s(Un,2),w)]);case 1:return[4,tt.sent()[s(Un,3)]()];case 2:return v=tt.sent(),[4,o(sl,v,y)];case 3:if(I=tt.sent(),!(B=c(I,10)))return[3,5];for(C=o(Pg,10,2500),X=(function(nt){return nt-1})((function(nt,at){return nt-at})(C,I)),Q=0;c(Q,X);Q++)p(p6,v,y);return[4,m(sl,v,y)];case 4:I=tt.sent(),tt.label=5;case 5:return[2,[B?1:0,I]]}}))}))}function h6(){return(function(s,o){return s==o})(typeof navigator[i=Un,i(1)],(function(s){return s(4)})(Un));var i}function sl(i,s){var o=function(c,p){return c(p)};return(function(c,p,m,y,w){return c(p,void 0,void 0,w)})(e.sH,this,0,0,(function(){var c,p=function(v,I){return o(v,I)},m=function(v,I){return o(v,I)},y=function(v,I){return o(v,I)},w=function(v,I){return o(v,I)};return(function(v,I,B){return v(I,B)})(e.YH,this,(function(v){switch(v.label){case 0:return[4,(c=i[p(Un,5)]())[p(Un,6)](m(Un,7),s)];case 1:return v.sent(),[2,y(Number,c[w(Un,8)])]}}))}))}function p6(i,s){var o=function(p,m){return p(m)},c=i[o(Un,5)]();o(to,c[o(Un,6)]((function(p){return p(7)})(Un),s))}function v6(){var i=function(s,o,c){return s(o,c)};return(function(s,o,c,p,m){return s(o,void 0,void 0,m)})(e.sH,this,0,0,(function(){var s=function(y){return(function(w){return w()})(y)},o=function(y,w,v){return i(y,w,v)},c=function(y,w,v){return i(y,w,v)},p=function(y,w,v){return i(y,w,v)},m=this;return(0,e.YH)(this,(function(y){var w=function(I){return s(I)},v=function(I,B){return(function(C,X){return(function(Q,tt){return Q===tt})(C,X)})(I,B)};return s(h6)?[2,c(Gn,p(kn,500,{s:-2,v:null}),(function(){var I=function(X){return w(X)},B=function(X,Q){return v(X,Q)},C=function(X,Q,tt){return(function(nt,at,gt){return o(nt,at,gt)})(X,Q,tt)};return(function(X,Q,tt,nt,at){return(function(gt,_t,vt,bt,Vt){return(function(Ht,Wt,Nt,Dt,Zt){return Ht(Wt,Nt,Dt,Zt)})(gt,_t,vt,bt,Vt)})(X,Q,void 0,void 0,at)})(e.sH,m,0,0,(function(){var X,Q=function(tt){return I(tt)};return C(e.YH,this,(function(tt){switch(tt.label){case 0:return[4,Q(d6)];case 1:return(function(nt){return B(nt,-1)})((X=tt.sent())[0])?[2,{s:-3,v:null}]:[2,{s:0,v:X}]}}))}))}))]:[2,function(){return{s:-1,v:null}}]}))}))}var os=oo([89472536,67911963,202988290,386077465,1866537770,1224742518,488243476,419627011,184819487,437598027,340225859,172033032,437716482,471155211,1095068177,1092107040,419499526,423762697,100665116,490210839,1194790674,673115,85280006,1510540548,2756129,939992591,1246643516,1108281098,52370449,641031181,822350097,201595136,1447512348,1107565334,605101077,923815180,201460231,369557787,421401919,370608902,386208007,1158809130,67652933,420829977,1325996060,705104933,100734005,18485518,1079117841,520555597,117716299,441132557,117836552,454886414,1079380231,235285315,167851373,438045445,354104902,218503945,1450723136,1261309460,853525,339100932,1443038736,103498560,3566862,1175192861,252709131,16777237,1984516105,1829509143,185926151,436356353,185073670,1779174662,991969605,50610456,1275666182,419565839,202771726,1124408096,135546735,168313092,253563142,135813653,822480166,72178038,222758157,52298251,454823449,56244746,1427123716,67914571,353589766,51775754,625419022,219166498,1258491144,521093188,151601409,456523793,678234648,169481234,118557701,391005526,241568771,422784012,438716682,1309089280,806492,990010373,638390299,134885451,1481180934,17176407,655231834,2049314574,84410418,220531716,167778574,105923661,106502459,185600556,170279180,1046087172,151977997,35061763,1263338788,84282176,52366156,1544356616,420816433,50605842,1229146882,1511529224,186319630,4664589,35268139,100748290,1379942427,1174536207,322636309,208471067,373756952,7684,1481509910,69665358,440083533,1174866696,403505177,1129127711,956961098,571674714,285606663,67257606,151460637,725827670,862785030,168106503,289803037,203297033,1197361671,1327110967,169477163,84548876,1840656,1325404447,537919532,1158350651,118114894,454640143,269026054,471146315,372321280,1196229131,421140297,17891399,256321038,167983925,135074069,1379942427,1174536207,523897886,187303186,16788313,1007685120,1447054106,1193610767,121055758,235738112,118572573,1091181577,956569372,1632457991,1191843846,387122178,420174362,755830297,929124171,222888474,50727960,118447621,1229986830,202905462,51517293,1159661069,219156518,1296957445,772541034,285869946,471598093,437591628,102564608,341211207,72035854,453396244,286989059,252909895,100927823,207059041,440798984,347163,218169348,389222492,3416153,1128989210,404424777,102242906,1193875213,338048784,17827353,1077939469,33558354,973080134,923734551,118361931,390678349,407312666,756351505,606227719,1078676741,1275397643,369236248,102176796,152328767,505090338,1195966464,68884054,402849858,604117287,387586598,184555596,52366851,290079565,39467274,337061379,1044450054,822546697,1309087752,202009165,100891182,1259996933,521093188,51986689,390009692,187041819,1296385283,1528366088,1539,1194856717,20458516,188762957,374080774,100861208,604249353,906778884,134487574,1444022019,51205721,688201243,275581722,638910490,553654793,438246915,1191185666,68310648,100862061,1157897218,203233559,1296957442,1829962602,35198010,17122832,1079118092,101515597,370942795,117714965,54019863,889585674,1079385113,386672195,236790637,420024595,406539288,689707789,956765442,1198474037,1091441944,102564636,119409668,205263381,108670990,151781382,1313753605,457245696,855645709,391058950,235019008,471534109,474699863,756351517,540018203,272974679,51463965,386470914,67506497,1297423660,1224806753,520230941,878058775,289625664,571801658,289411104,88480259,1641997,388317194,1477786881,50998065,521022728,202398474,33949981,1095115776,1582986863,239750725,289150477,469830174,14416],Da,2);function al(){return os(0)}function g6(){return(0,e.sH)(this,void 0,void 0,(function(){var i,s,o;return(function(c,p,m){return c(p,m)})(e.YH,this,(function(c){var p=function(m,y){return(function(w,v){return w(v)})(m,y)};switch(c.label){case 0:return i=(function(m){return m()})(al),[4,Promise.all(i.map(m6))];case 1:return s=c.sent(),o={},i.forEach((function(m,y){var w=p(tr,m).toString(16);o[w]=s[y]})),[2,o]}}))}))}function m6(i){var s=function(o,c){return o(c)};return new Promise((function(o){var c=s(os,1).concat(i,s(os,2));try{var p=(function(w,v){return w(v)})(Fa,c),m=p[1],y=p[2];if((function(w){return w!==0})(m))return void(function(w,v){w(v)})(o,m);y[(function(w){return w(3)})(os)]((function(){return s(o,0)}),(function(){return(function(w){return s(w,-1)})(o)}))}catch{s(o,-2)}}))}var y6=In([4291220175,857170018,1001396817,1198736693],6);function ul(){var i=function(s,o,c){return s(o,c)};return(0,e.sH)(this,void 0,void 0,(function(){var s=function(v){return(function(I){return I()})(v)},o=function(v,I){return(function(B,C){return B(C)})(v,I)},c=function(v,I,B){return(function(C,X,Q){return C(X,Q)})(v,I,B)},p=function(v,I,B,C,X){return(function(Q,tt,nt,at,gt){return Q(tt,nt,at,gt)})(v,I,B,C,X)},m=function(v,I,B){return(function(C,X,Q){return C(X,Q)})(v,I,B)},y=function(v,I,B){return i(v,I,B)},w=this;return i(e.YH,this,(function(v){var I=function(tt){return s(tt)},B=function(tt){return s(tt)},C=function(tt,nt){return o(tt,nt)},X=function(tt,nt,at){return c(tt,nt,at)},Q=function(tt,nt,at,gt,_t){return p(tt,nt,at,gt,_t)};switch(v.label){case 0:return[4,m(Gn,y(kn,500,{s:-2,v:null}),(function(){var tt=function(at){return B(at)},nt=function(at,gt){return C(at,gt)};return Q(e.sH,w,void 0,void 0,(function(){var at;return(function(gt,_t,vt){return X(gt,_t,vt)})(e.YH,this,(function(gt){switch(gt.label){case 0:return(function(_t){return I(_t)})(al)?(function(_t){return I(_t)})(W0)?(at={s:0},[4,tt(g6)]):[2,{s:-1,v:null}]:[2,{s:-3,v:null}];case 1:return[2,(at[nt(y6,0)]=gt.sent(),at)]}}))}))}))];case 1:return[2,v.sent()]}}))}))}function w6(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function cl(){return{s:0,v:!!window.isSecureContext}}var Gt=oo([37637135,1447917654,1074862848,221320987,185417728,1279479069,287641348,1585126709,277761,1427768864,1124076042,2035529,455018507,23675461,120393521,1444036433,1141263183,303105822,319645969,1275726848,36457547,388709920,101924677,1077349638,303367169,135938595,1112349448,153357637,121505586,1480802129,1141246529,839976462,805901,167780891,1160643090,511382904,402929730,1381389121,68162311,1195642647,185270282,342447173,288103456,254704215,1208027939,253560323,369581389,17177344,138102537,455935783,39531596,1195379206,236466755,203181062,1581711622,523115086,3539255,286744647,1544706816,324279305,285825290,1174470656,37573638,1530878519,353133582,353131799,133385,1476726039,1511722500,1328372255,321869181,1226406481,437012226,1090917145,1258885148,253318160,1513180693,1227046965,1410678607,1342657549,425461277,474174799,340006467,1549931597,476332332,1229857560,235819533,223288402,491280640,1142379025,36132127,186666528,223027998,1427178840,1544423503,1578239775,1310394885,136860420,1547191847,408580948,1381244166,253559122,306596941,184767552,1512328723,1228555109,693174606,1108418398,425464923,1413482013,1192695620,526847309,494081918,122363912,1532891471,408493381,1430543951,889345088,292959062,342691121,223027723,1532560969,408420677,1413482012,1192629828,510070093,494081150,122364424,442325327,1011230978,101538648,373754205,140579917,24319871,239805199,1499006537,458752325,1413482015,1192564036,1466371405,691295613,39585552,1195379206,1364738631,1413750089,186471488,154737427,321591924,454109517,1281100816,554256710,268918530,1197360921,237579847,472910394,1565618756,1393893187,135923539,135938563,370036567,37573653,1228888631,100936803,17566743,391388169,120063254,436405788,291700750,388832305,436733275,135007239,340663119,1212227414,34873431,158013954,289151081,1497971729,222381907,1212243039,286081374,408027209,24710402,1115119484,1146055183,1142444618,1543655963,68837124,1073825552,1261573663,169885754,1510962778,218959899,403528705,1258684700,1108809489,523386889,1547125292,1478042459,1477265165,223304471,289954048,471666260,1466111750,1098210424,1196255759,358111311,1448625219,1380194633,1581472325,1365728331,1148542584,1162702351,374889039,1448624963,1464080457,1497585989,1348951115,1114987896,1095593487,341334351,1516061507,1159481353,470700572,1328680725,169885755,223294735,253445402,240651031,1225806923,387399942,526713163,73549612,104933442,1397696089,303759937,167860492,18698759,239013651,326172731,1581787227,353831957,973232649,939619857,1197359924,325393500,490346033,1225074764,69022230,323956569,387799296,1427984135,355216922,1512643387,876704531,1159331841,1225989126,323486805,491724040,170532189,3932708,101063192,151264268,559176543,17187847,1174929664,292243286,108600373,201600537,1141251095,1561346096,1532632579,470363986,36047110,343480890,117930573,1850605643,558522182,67846665,1565,1197629007,1178209058,286466373,1325800471,420546127,1726481,503451194,325257995,460660088,201600525,1394279936,474962699,1195659335,252321034,35195667,3934778,286339955,1142554639,290872909,151870732,1275724032,304761931,1585119520,16939096,1312359695,1532368651,185025351,1108495628,37293381,641473077,18162246,223742993,68948301,386745862,1112345356,86776901,472667701,1443637324,1899187023,420554298,1726481,151919676,1164397570,637610752,723781750,1698308129,1127431206,707465033,707802681,1265187380,388767606,1480802134,1208360513,69211931,387799325,1279479052,103685124,319425312,286075470,1515735825,102047565,285492259,1414339852,103678021,103418662,1447896833,1074862848,137762587,388974859,1277106694,36457547,472919072,454237511,1077418262,352394518,105513287,437127707,35796994,1349864483,352593984,1412828183,319886345,71958855,1276910865,1040796747,755641088,724770675,1815160102,1126186026,892276553,135933244,842599169,389943079,558069249,1848778797,1297497917,286083655,505351716,102304258,1346111802,286423055,56118039,1645594,1195642645,252321034,303696659,555752497,1480797766,1476414232,1532368671,134306119,253434892,1265180170,120982902,1313025613,56104017,251731212,1195642641,1009400376,572076350,605364487,1447917670,2015634976,572924208,373948743,1275729152,637946955,923480324,1480793698,1326521153,822482699,1192975876,1276392517,103678468,507000870,1313029974,307910968,1381646915,1447435593,1110597189,103023173,1344872752,402815001,50726918,352800835,705519370,1280658713,354687508,790907953,453146639,1611007503,34932251,185417741,1112349725,35788869,1349864483,924139332,1141250838,69207553,387799325,1279479052,103685124,488246048,436221774,1109011463,319886848,1192427847,185404933,1165052939,490340401,1444101959,1129727262,253564170,17188919,255794444,1265179924,104602998,286339955,1142554639,307650125,204101888,472386311,1161501448,388582520,101596241,1109002254,1129861130,1193230859,470502725,1265178886,372706166,105084417,1293621766,337975065,907108096,1112349452,388629317,104339975,1447917638,1075382038,85000735,105513287,739647238,36505618,808860198,285686870,56118033,135928585,1229604118,203037771,1161758474,121326712,100940869,1280722241,305463822,1191920412,1042828613,388637490,389873945,641955329,53487654,336023619,387599367,1112348168,589568581,657988149,1480791665,1192886337,1129861120,270092311,790305804,322637571,470817841,692270405],$4,0);function E6(){var i=function(s,o){return s(o)};return i(Gt,0)&&navigator[i(Gt,0)]}function b6(){var i=function(s,o){return s(o)};return document[i(Gt,1)](i(Gt,2))[i(Gt,3)](i(Gt,4))}function _6(i,s){return o=e.sH,c=function(){var p,m,y,w,v=function(B,C){return(function(X,Q){return X(Q)})(B,C)},I=function(B,C,X,Q){return(function(tt,nt,at,gt){return tt(nt,at,gt)})(B,C,X,Q)};return(function(B,C,X){return B(C,X)})(e.YH,this,(function(B){switch(B.label){case 0:return p=Array.from((function(C){return(function(X){return X===null})(C)})(i)||(function(C){return(function(X){return X===void 0})(C)})(i)?void 0:i[v(Gt,5)].values()),[4,Promise.all([I(R6,i,p,s),v(S6,i)])];case 1:return m=B.sent(),y=m[0],w=m[1],[2,[y,w,p]]}}))},o(this,void 0,void 0,c);var o,c}var wi=16;function R6(i,s,o){var c=function(vt,bt){return vt(bt)},p=function(vt,bt){return vt*bt},m=function(vt,bt){return vt(bt)},y=function(vt,bt){return vt(bt)},w=function(vt,bt){return vt+bt},v=function(vt,bt){return vt(bt)},I=function(vt,bt){return vt(bt)},B=function(vt,bt){return vt(bt)},C=function(vt,bt){return vt(bt)},X=function(vt,bt){return vt(bt)},Q=function(vt,bt){return vt(bt)},tt=function(vt,bt){return vt(bt)},nt=function(vt,bt){return vt(bt)},at=function(vt,bt){return vt(bt)},gt=function(vt,bt){return vt+bt},_t=function(vt,bt){return vt+bt};return(function(vt,bt,Vt,Ht,Wt){return vt(bt,void 0,void 0,Wt)})(e.sH,this,0,0,(function(){var vt,bt,Vt,Ht,Wt,Nt,Dt,Zt,Qt,ne,ue,we,ve,Ie,Le,Ce,Te,nn,Rn,pn,Dn,Yn,Wn,Tr,Xr,nr,fn,Mt={LIcVF:"1|3|2|0|4",CVGyL:function(Tt,xt){return c(Tt,xt)},NQGua:function(Tt,xt){return p(Tt,xt)},IxGbO:function(Tt,xt){return m(Tt,xt)},qQoQh:function(Tt,xt){return c(Tt,xt)},eRsOG:function(Tt,xt){return(function(Jt,se){return Jt%se})(Tt,xt)},sTGJP:function(Tt,xt){return y(Tt,xt)},bLKEM:function(Tt,xt){return(function(Jt,se){return Jt/se})(Tt,xt)},BfmPO:function(Tt,xt){return(function(Jt,se){return Jt/se})(Tt,xt)},qiUeQ:function(Tt,xt){return(function(Jt,se){return Jt/se})(Tt,xt)},QCXCI:function(Tt,xt){return(function(Jt,se){return Jt*se})(Tt,xt)},YuwoT:function(Tt,xt){return w(Tt,xt)},NzoFK:function(Tt,xt){return y(Tt,xt)},nStre:function(Tt,xt){return v(Tt,xt)},cgngL:function(Tt,xt){return I(Tt,xt)},lnSsO:function(Tt,xt){return B(Tt,xt)},LWtIu:function(Tt,xt){return I(Tt,xt)},rnbTq:function(Tt,xt){return B(Tt,xt)},vXgTw:function(Tt,xt){return(function(Jt,se){return Jt|se})(Tt,xt)},SGWhR:function(Tt,xt){return y(Tt,xt)},tJskz:function(Tt,xt){return v(Tt,xt)},WwBMK:function(Tt,xt){return y(Tt,xt)},XvGWM:function(Tt,xt){return I(Tt,xt)},Czazt:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},TcuLX:function(Tt,xt){return C(Tt,xt)},qmLme:function(Tt,xt){return X(Tt,xt)},DHpBv:function(Tt,xt){return c(Tt,xt)},GXSjU:function(Tt,xt){return I(Tt,xt)},lZchU:function(Tt,xt){return(function(Jt,se){return Jt|se})(Tt,xt)},kdFZM:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},fjLlD:function(Tt,xt){return Q(Tt,xt)},NZEUH:function(Tt,xt){return B(Tt,xt)},rMQcE:function(Tt,xt){return X(Tt,xt)},cmdDW:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},fMGTS:function(Tt,xt){return v(Tt,xt)},Megnu:function(Tt,xt){return tt(Tt,xt)},dwDBV:function(Tt,xt){return(function(Jt,se){return Jt<se})(Tt,xt)},UStju:"16|13|12|14|1|11|3|2|15|6|5|0|7|8|4|10|9",yPtzU:function(Tt,xt){return(function(Jt,se){return Jt===se})(Tt,xt)},hIuvn:function(Tt,xt){return tt(Tt,xt)},LUaAI:function(Tt,xt){return nt(Tt,xt)},KBsRE:function(Tt,xt){return c(Tt,xt)},eiLib:function(Tt,xt){return p(Tt,xt)},gsIFj:function(Tt,xt){return C(Tt,xt)},ymkbA:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},RTTay:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},SXGAR:function(Tt,xt){return at(Tt,xt)},rLyth:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},lnNJb:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},HtEmG:function(Tt,xt){return p(Tt,xt)},kEERD:function(Tt,xt){return(function(Jt,se){return Jt+se})(Tt,xt)},lEDdr:function(Tt,xt){return gt(Tt,xt)},VfkAG:function(Tt,xt){return w(Tt,xt)},FQVYm:function(Tt,xt){return nt(Tt,xt)},rjquO:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},zCjNE:function(Tt,xt){return at(Tt,xt)},HfSqy:function(Tt,xt){return Q(Tt,xt)},xEOfR:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)},CsGxJ:function(Tt,xt){return y(Tt,xt)},CPukW:function(Tt,xt){return m(Tt,xt)},uiTcO:function(Tt,xt){return(function(Jt,se){return Jt*se})(Tt,xt)},gvEcj:function(Tt,xt){return _t(Tt,xt)},qonBa:function(Tt,xt){return _t(Tt,xt)},SQuSM:function(Tt,xt){return(function(Jt,se){return Jt+se})(Tt,xt)},qLjkZ:function(Tt,xt){return(function(Jt,se){return Jt*se})(Tt,xt)},XMYnt:function(Tt,xt){return gt(Tt,xt)},YtxIQ:function(Tt,xt){return(function(Jt,se){return Jt(se)})(Tt,xt)}};return(function(Tt,xt,Jt){return Tt(xt,Jt)})(e.YH,this,(function(Tt){switch(Tt.label){case 0:return[4,i[Mt.sTGJP(Gt,6)]({requiredFeatures:s})];case 1:for(vt=Tt.sent(),bt=Math.PI,Vt=[[0,1,0,Mt.bLKEM(bt,7)],[1,0,0,Mt.bLKEM(bt,8)],[0,1,1,Mt.BfmPO(bt,4)],[1,2,1,Mt.qiUeQ(bt,8)]],Ht=Vt.length,Wt=new Uint8Array(Mt.QCXCI(Ht,Mt.YuwoT(Mt.YuwoT(16,wi),8))),Nt=navigator[Mt.IxGbO(Gt,0)][Mt.NzoFK(Gt,7)](),o[Mt.nStre(Gt,8)]({device:vt,format:Nt}),Dt=vt[Mt.cgngL(Gt,9)](Mt.IxGbO(Gt,10)),Zt=vt[Mt.CVGyL(Gt,11)]({label:Mt.IxGbO(Gt,12),layout:Mt.cgngL(Gt,13),vertex:{module:Dt},fragment:{module:Dt,targets:[{format:Nt}]},primitive:Mt.lnSsO(Gt,14)}),Qt=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],ne=new Uint8Array(Mt.cgngL(Array,Mt.NQGua(7,9)).fill(void 0).map((function(se,un){return Qt[(function(Oe){return Mt.eRsOG(Oe,3)})(un)]})).flat()),ue=vt[Mt.CVGyL(Gt,15)]({label:Mt.LWtIu(Gt,16),size:[7,9],format:Mt.rnbTq(Gt,17),usage:Mt.vXgTw(window[Mt.SGWhR(Gt,18)][Mt.IxGbO(Gt,19)],window[Mt.tJskz(Gt,18)][Mt.WwBMK(Gt,20)])}),vt[Mt.LWtIu(Gt,21)][Mt.XvGWM(Gt,22)]({texture:ue},ne,{bytesPerRow:Mt.NQGua(7,4)},{width:7,height:9}),we=vt[Mt.SGWhR(Gt,23)](Mt.Czazt(Gt,24)),ve=vt[Mt.XvGWM(Gt,25)]({layout:Zt[Mt.TcuLX(Gt,26)](0),entries:[{binding:0,resource:we},{binding:1,resource:ue[Mt.qmLme(Gt,27)]()}]}),Ie=Vt.map((function(se){for(var un=Mt.LIcVF.split("|"),Oe=0;;){switch(un[Oe++]){case"0":ke[Mt.CVGyL(Gt,35)]();continue;case"1":var ke=vt[Mt.CVGyL(Gt,28)]({label:Mt.CVGyL(Gt,29),size:Mt.NQGua(4,Float32Array[Mt.IxGbO(Gt,30)]),usage:window[Mt.IxGbO(Gt,31)][Mt.CVGyL(Gt,32)],mappedAtCreation:!0});continue;case"2":ze[Mt.CVGyL(Gt,34)](se);continue;case"3":var ze=new Float32Array(ke[Mt.IxGbO(Gt,33)]());continue;case"4":return vt[Mt.CVGyL(Gt,25)]({layout:Zt[Mt.qQoQh(Gt,26)](1),entries:[{binding:0,resource:{buffer:ke}}]})}break}})),Le=vt[Mt.DHpBv(Gt,36)](Mt.Czazt(Gt,37)),Ce=vt[Mt.qQoQh(Gt,28)]({size:Mt.QCXCI(Le[Mt.GXSjU(Gt,38)],8),usage:Mt.lZchU(window[Mt.kdFZM(Gt,31)][Mt.tJskz(Gt,39)],window[Mt.fjLlD(Gt,31)][Mt.qmLme(Gt,40)])}),Te=vt[Mt.LWtIu(Gt,28)]({size:Mt.NQGua(Ce[Mt.NZEUH(Gt,41)],Ht),usage:Mt.vXgTw(window[Mt.rMQcE(Gt,31)][Mt.XvGWM(Gt,20)],window[Mt.cmdDW(Gt,31)][Mt.fMGTS(Gt,42)])}),nn={label:Mt.Megnu(Gt,43),colorAttachments:Mt.qmLme(Gt,44),timestampWrites:{querySet:Le,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}},fn=0;Mt.dwDBV(fn,Ie.length);fn++)for(var xt=Mt.UStju.split("|"),Jt=0;;){switch(xt[Jt++]){case"0":Mt.yPtzU(Te[Mt.hIuvn(Gt,58)],Mt.LUaAI(Gt,59))&&pn[Mt.KBsRE(Gt,60)](Ce,0,Te,Mt.eiLib(fn,16),Ce[Mt.qQoQh(Gt,41)]);continue;case"1":Dn[Mt.gsIFj(Gt,51)](Zt);continue;case"2":Yn=window[Mt.ymkbA(Gt,53)][Mt.qQoQh(Gt,54)]();continue;case"3":Dn[Mt.sTGJP(Gt,52)](1,Rn);continue;case"4":Tr=Mt.RTTay(A6,o[Mt.qmLme(Gt,2)]);continue;case"5":pn[Mt.cmdDW(Gt,57)](Le,0,Le[Mt.hIuvn(Gt,38)],Ce,0);continue;case"6":Dn[Mt.SXGAR(Gt,56)]();continue;case"7":Wn=pn[Mt.rLyth(Gt,61)]();continue;case"8":vt[Mt.Megnu(Gt,21)][Mt.RTTay(Gt,62)]([Wn]);continue;case"9":Wt[Mt.lnNJb(Gt,34)](new Uint8Array(new Float64Array([Yn])[Mt.XvGWM(Gt,63)]),Mt.HtEmG(fn,Mt.YuwoT(Mt.kEERD(16,wi),8)));continue;case"10":Wt[Mt.cgngL(Gt,34)](Tr,Mt.lEDdr(8,Mt.NQGua(fn,Mt.VfkAG(Mt.lEDdr(16,wi),8))));continue;case"11":Dn[Mt.FQVYm(Gt,52)](0,ve);continue;case"12":pn=vt[Mt.SGWhR(Gt,48)](Mt.kdFZM(Gt,49));continue;case"13":nn[Mt.rjquO(Gt,45)][0][Mt.hIuvn(Gt,46)]=o[Mt.CVGyL(Gt,47)]()[Mt.zCjNE(Gt,27)]();continue;case"14":Dn=pn[Mt.FQVYm(Gt,50)](nn);continue;case"15":Dn[Mt.HfSqy(Gt,55)](48);continue;case"16":Rn=Ie[fn];continue}break}return Mt.yPtzU(Te[Mt.xEOfR(Gt,58)],Mt.CsGxJ(Gt,59))?[4,Te[Mt.DHpBv(Gt,64)](window[Mt.WwBMK(Gt,65)][Mt.CPukW(Gt,66)])]:[3,3];case 2:for(Tt.sent(),Xr=Te[Mt.cmdDW(Gt,33)](),nr=new Uint8Array(Xr),fn=0;Mt.dwDBV(fn,Ht);fn++)Wt[Mt.TcuLX(Gt,34)](nr[Mt.sTGJP(Gt,67)](Mt.NQGua(fn,wi),Mt.uiTcO(Mt.gvEcj(fn,1),wi)),Mt.qonBa(Mt.SQuSM(8,16),Mt.qLjkZ(fn,Mt.gvEcj(Mt.XMYnt(16,wi),8))));Te[Mt.YtxIQ(Gt,35)](),Tt.label=3;case 3:return[2,Mt.GXSjU(Qn,Wt)]}}))}))}function A6(i){var s=function(o,c){return o(c)};return s(kg,s(dn,i[s(Gt,68)]()))}function S6(i){var s,o=function(p,m){return p!==m},c=function(p,m){return p(m)};return(function(p,m,y,w,v){return p(m,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p;return(function(m,y,w){return m(y,w)})(e.YH,this,(function(m){switch(m.label){case 0:return o(s=i[c(Gt,69)],null)&&o(s,void 0)?(p=s,[3,3]):[3,1];case 1:return[4,i[c(Gt,70)]()];case 2:p=m.sent(),m.label=3;case 3:return[2,p]}}))}))}function fl(){var i=function(o,c,p){return o(c,p)},s=this;return i(Gn,kn(1e3,{s:-2,v:null}),(function(){var o,c,p=function(v){return(function(I){return I()})(v)},m=function(v,I,B){return i(v,I,B)},y=function(v,I,B){return(function(C,X,Q){return C(X,Q)})(v,I,B)},w=function(v,I,B){return(function(C,X,Q){return C(X,Q)})(v,I,B)};return o=e.sH,c=function(){var v,I,B,C,X,Q,tt;return i(e.YH,this,(function(nt){switch(nt.label){case 0:return[4,p(I6)];case 1:return v=nt.sent(),(function(at,gt){return(function(_t,vt){return _t!==vt})(at,gt)})(m(Xt,v,453955339),0)?[2,v]:(I=(function(at,gt){return i(at,gt,1801730948)})(Xt,v),B=I[0],C=I[1],[4,y(_6,B,C)]);case 2:return X=nt.sent(),Q=X[0],tt=X[1],[2,{s:0,v:{s:X[2],f:Q,v:m(Xt,tt,4112659446),a:w(Xt,tt,1956208378)}}]}}))},o(s,void 0,void 0,c)}))}function I6(){var i,s,o=function(p,m,y){return p(m,y)},c=function(p,m,y){return p(m,y)};return i=e.sH,s=function(){var p,m,y,w,v=function(C,X,Q){return c(C,X,Q)},I=function(C){return(function(X){return X()})(C)},B=function(C,X,Q){return c(C,X,Q)};return o(e.YH,this,(function(C){switch(C.label){case 0:if(!(p=(function(X,Q){return o(X,Q,3179935986)})(Xt,navigator)))return[2,{s:-3,v:null}];m=null,C.label=1;case 1:return C.trys.push([1,3,,4]),[4,v(Xt,p,1678473624)()];case 2:return m=C.sent(),[3,4];case 3:if((function(X){return(function(Q,tt){return Q instanceof tt})(X,Error)})(y=C.sent())&&I($))return[2,{s:-3,v:B(Xt,y,3065852031)}];throw y;case 4:return m?I(E6)?(w=(function(X){return(function(Q){return Q()})(X)})(b6))?[2,{s:0,v:[m,w]}]:[2,{s:-5,v:null}]:[2,{s:-1,v:null}]:[2,{s:-4,v:null}]}}))},i(this,void 0,void 0,s)}function O6(){var i;return{s:0,v:(i=performance.timeOrigin)!==null&&i!==void 0?i:Date.now()-performance.now()}}var Or=In([1058085656,755065913,591387725,1190162267,3207354738,1862345487,1482820536,1963637024,16670991,4033829736,1867081798,1215448816,1812826169,279519816,3211723043,576614155,1881342384],5);function T6(){var i,s,o=function(c){return c()};return i=e.sH,s=function(){var c,p=function(y){return o(y)},m=function(y,w){return(function(v,I){return v(I)})(y,w)};return(function(y,w,v){return y(w,v)})(e.YH,this,(function(y){switch(y.label){case 0:return p(S)||(function(w){return o(w)})(U)?(c={s:0},[4,p(N6)]):[3,2];case 1:return[2,(c[m(Or,0)]=y.sent(),c)];case 2:return[2,{s:-1,v:null}]}}))},i(this,void 0,void 0,s)}function N6(){var i={Blqbz:function(o,c){return o(c)},xZHoB:"2|1|3|0|4",dJhbP:function(o,c){return o(c)},SkSjD:function(o){return o()},KqpSs:function(o,c,p){return o(c,p)},hsbcg:function(o,c,p){return o(c,p)},QsyLE:function(o,c){return o(c)},BRhvx:function(o,c,p){return o(c,p)},FbvWI:function(o,c){return o(c)},iDelp:function(o,c){return o(c)}},s=new Promise((function(o){for(var c=i.xZHoB.split("|"),p=0;;){switch(c[p++]){case"0":window[i.Blqbz(Or,5)](window[i.dJhbP(Or,6)].debug,0,m);continue;case"1":var m;continue;case"2":var y={mXScH:function(w,v){return i.dJhbP(w,v)}};continue;case"3":i.SkSjD(S)?((m=new Error).name=" ",i.KqpSs(Xt,Object,1973166116)(m,i.dJhbP(Or,1),{get:o.bind(null,!0)})):(m=i.hsbcg(Xt,window[i.dJhbP(Or,2)],1297038992)(i.QsyLE(Or,3)),i.BRhvx(Xt,Object,1973166116)(m,i.FbvWI(Or,4),{get:function(){y.mXScH(o,!0);var w=new Error;throw w.name="",w}}));continue;case"4":window[i.iDelp(Or,5)]((function(){i.Blqbz(o,!1)}));continue}break}}));return i.FbvWI(to,s)}var x6=new Set([2882888216,2306836488,1040191956,1447924955]);function L6(){return{s:0,v:Ug(Navigator.prototype,x6)}}var ll=In([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function C6(){var i,s=(function(o,c){return o(c,3966979758)})(Xt,new window[i=ll,i(0)](""));return(function(o,c){return o!==c})(typeof s,(function(o){return o(1)})(ll))?{s:-1,v:null}:{s:0,v:{isTrusted:s}}}var B6=function(){return{key:"bd",sources:{stage1:(i={},i.s94=il,i),stage2:(s={},s.s106=R4,s.s154=k5,s.s158=H5,s.s160=H4,s.s97=ul,s.s70=fl,s.s152=f5,s),stage3:(o={},o.s1=y0,o.s2=w0,o.s4=E0,o.s5=b0,o.s7=_0,o.s15=R0,o.s19=A0,o.s27=S0,o.s74=I0,o.s75=O0,o.s24=G0,o.s44=U0,o.s45=P0,o.s57=Z0,o.s59=T0,o.s60=N0,o.s61=x0,o.s62=L0,o.s63=C0,o.s64=B0,o.s65=M0,o.s68=k0,o.s69=H0,o.s72=j0,o.s82=K0,o.s83=X0,o.s99=cl,o.s101=E4,o.s103=b4,o.s104=_4,o.s117=A4,o.s119=S4,o.s123=I4,o.s131=O4,o.s133=T4,o.s136=N4,o.s148=x4,o.s149=L4,o.s150=C4,o.s157=B4,o.s102=d5,o.s118=h5,o.s120=c5,o.s130=p5,o.s132=v5,o.s135=l5,o.s139=s5,o.s142=u5,o.s144=a5,o.s145=i5,o.s146=o5,o.s151=S5,o.s153=I5,o.s155=D5,o.s156=F5,o.s159=G5,o.s162=z5,o.s163=T6,o.s165=C6,o.s166=L6,o)}};var i,s,o};function M6(i,s,o,c,p,m){var y=c?[]:(function(C,X,Q){return(function(tt,nt){for(var at=function(Zt,Qt){return Zt<Qt},gt=function(Zt,Qt,ne){return Zt(Qt,ne)},_t=function(Zt,Qt){return Zt(Qt)},vt=[],bt=0,Vt=Array.isArray(tt)?tt:[tt];at(bt,Vt.length);bt++){var Ht=Vt[bt];if(gt(Ua,Ht,Qo))for(var Wt=0,Nt=nt;at(Wt,Nt.length);Wt++){var Dt=Nt[Wt];vt.push(_t(Dm,Dt))}else vt.push(_t(String,Ht))}return vt})(C,X).map((function(tt){return Ma(tt,{q:Q})}))})(i,s,o);if(y.length===0)return function(){return Promise.resolve({s:-1,v:null})};dr(m,(function(){return{e:6}}));var w=rf(),v=e0(w),I=Date.now(),B=a0(y,k6.bind(null,5e3,m,v),U6,Math.max(10,y.length),p);return B.then((function(){return w.resolve()}),(function(){return w.resolve()})),function(C,X,Q,tt){return(0,e.sH)(this,void 0,void 0,(function(){var nt,at;return(0,e.YH)(this,(function(gt){switch(gt.label){case 0:if(Q)return[2,{s:-1,v:null}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,Promise.race([B,D6(I,C,X)])];case 2:return gt.sent(),nt=(function(_t){var vt=_t.result,bt=_t.failedAttempts;if(vt!==void 0)return vt;var Vt=bt[0];if(!Vt)return{s:-3,v:null};if(Vt.level===1)return Vt.error;var Ht=Vt.error,Wt=Vt.endpoint;if(Ht instanceof Error){var Nt=Ht.name,Dt=Ht.message;switch(Nt){case"AbortError":return{s:-2,v:Dt};case"TimeoutError":return{s:-3,v:Dt};case"CSPError":return{s:-6,v:Dt};case"InvalidURLError":return{s:-7,v:"Invalid URL: ".concat(zr(Wt,255))};case"TypeError":return{s:-4,v:Dt}}}return c0(Ht)})(B.current),dr(tt,(function(){return{e:7,result:nt}})),[2,nt];case 3:throw at=gt.sent(),dr(tt,(function(){return{e:8,error:at}})),at;case 4:return[2]}}))}))}}function k6(i,s,o,c,p,m){return io(s,(function(){return{e:9,tryNumber:p,url:c,timeout:i}}),(function(y){var w=y.status,v=y.getHeader,I=y.body;return{e:10,tryNumber:p,status:w,retryAfter:v("retry-after"),body:I}}),(function(y){return{e:11,tryNumber:p,error:y}}),(function(){return t0({url:c,timeout:i,abort:m,container:o})}))}function U6(i){var s=i.status,o=i.body;return s===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(o)?{result:{s:0,v:o}}:{error:{s:-5,v:zr("".concat(s,": ").concat(o),255)}}}function D6(i,s,o){return kn(Math.min(Math.max(s,i+1e4-Date.now()),o))}function dl(i){for(var s="".concat(i,"="),o=0,c=document.cookie.split(";");o<c.length;o++){for(var p=c[o],m=0;p[m]===" "&&m<p.length;)++m;if(p.indexOf(s)===m)return p.slice(m+s.length)}}function hl(i,s,o,c){var p="".concat(i,"=").concat(s),m=new Date(Date.now()+24*o*60*60*1e3),y="expires=".concat(m.toUTCString()),w=c?"domain=".concat(c):"";document.cookie=[p,"path=/",y,w,"SameSite=Lax"].join("; ")}function pl(i){var s=location.hostname,o=$();(function(c,p){var m=c.length-(c.slice(-1)==="."?1:0);do if(m=m>0?c.lastIndexOf(".",m-1):-1,p(c.slice(m+1))===!0)return!0;while(m>=0);return!1})(s,(function(c){if(!o||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(c)||c===s)return i(c)}))||i()}function vl(i){return"".concat(i,"_t")}function Ha(i){return"".concat(i,"_lr")}function gl(i){var s,o;try{return(o=(s=localStorage==null?void 0:localStorage.getItem)===null||s===void 0?void 0:s.call(localStorage,i))!==null&&o!==void 0?o:void 0}catch{}}function Ga(i,s){var o;try{(o=localStorage==null?void 0:localStorage.setItem)===null||o===void 0||o.call(localStorage,i,s)}catch{}}function P6(i){var s=(function(p){return[dl(p),gl(p)]})(vl(i)),o=s[0],c=s[1];return o=ml(o),c=ml(c),o!==void 0&&c!==void 0?{s:0,v:o||c}:o!==void 0?{s:1,v:o}:c!==void 0?{s:2,v:c}:{s:-1,v:null}}function ml(i){return i&&i.length<=1e3?i:void 0}var F6=function(){return{key:"id",sources:{stage1:(i={},i.s94=il,i),stage2:(s={},s.s52=V4,s.s6=Xm,s.s58=W4,s.s20=Wm,s.s36=zm,s.s51=Zm,s.s21=Km,s.s79=Q4,s.s69=H0,s.s23=y5,s.s29=g5,s.s84=E5,s.s85=_5,s.s89=X4,s.s17=r4,s.s87=V5,s.s92=Y5,s.s93=j5,s.s95=v6,s.s97=ul,s.s70=fl,s),stage3:(o={},o.s22=n5,o.s30=e5,o.s33=k4,o.s44=U0,o.s45=P0,o.s49=U4,o.s50=P4,o.s57=Z0,o.s59=T0,o.s60=N0,o.s61=x0,o.s62=L0,o.s63=C0,o.s64=B0,o.s65=M0,o.s66=m4,o.s68=k0,o.s71=K4,o.s24=G0,o.s72=j0,o.s1=y0,o.s2=w0,o.s3=qm,o.s4=E0,o.s5=b0,o.s7=_0,o.s9=$m,o.s10=Jm,o.s11=Qm,o.s12=b5,o.s13=t4,o.s14=e4,o.s15=R0,o.s16=n4,o.s19=A0,o.s27=S0,o.s28=i4,o.s32=o4,o.s37=s4,o.s41=a4,o.s39=u4,o.s42=c4,o.s38=f4,o.s43=l4,o.s40=h4,o.s46=p4,o.s80=v4,o.s81=g4,o.s82=K0,o.s83=X0,o.s86=A5,o.s91=d4,o.s96=y4,o.s98=w6,o.s99=cl,o.s200=O6,o.s201=M4,o.s202=w4,o.s74=I0,o.s75=O0,o.s76=F4,o)},tls:M6,toRequest:function(c,p){return(0,e.sH)(this,void 0,void 0,(function(){var m,y,w,v,I,B;return(0,e.YH)(this,(function(C){switch(C.label){case 0:return m=location.href,y=document.referrer,[4,Promise.all([m&&ns(m,p),y&&ns(y,p)])];case 1:return w=C.sent(),v=w[0],I=w[1],[2,(B={},B.url=v,B.cr=I||void 0,B.s55=P6(c),B.s48=r5(),B)]}}))}))},onResponse:function(c,p){var m,y,w;(function(v,I){var B=vl(v);I&&(function(C,X){(function(Q,tt){pl((function(nt){(function(at,gt){hl(at,"",-1,gt)})(Q,nt)})),pl((function(nt){return hl(Q,tt,365,nt),dl(Q)===tt}))})(X,C),Ga(X,C)})(I,B)})(p,(w=(y=(m=c.products)===null||m===void 0?void 0:m.identification)===null||y===void 0?void 0:y.data)===null||w===void 0?void 0:w.visitorToken)}};var i,s,o},V6=function(){return{key:"si",sources:{stage2:(i={},i.s77=n6,i)}};var i},yl=[3,7];function ja(i){var s=gl(i);if(!s)return[];try{var o=s?JSON.parse(s):[];return Array.isArray(o)?o:[]}catch{return[]}}function wl(i){var s={};return new Set(i).forEach((function(o){var c=(function(m){if(!URL.prototype)return m;try{return new URL(m,window.location.origin).toString()}catch{return m}})(o),p=performance.getEntriesByName(c,"resource");s[o]=p})),s}function Ya(i,s,o,c,p,m){for(var y,w=[],v=0,I=i;v<I.length;v++){var B=I[v],C=B.event;C.e!==o&&C.e!==c&&C.e!==p||C.stage===m&&((w[y=C.tryNumber]||(w[y]={}))[C.e]=B)}return w.map((function(X){var Q,tt,nt,at,gt,_t,vt=(Q=X[o])===null||Q===void 0?void 0:Q.timestamp,bt=(nt=(tt=X[c])===null||tt===void 0?void 0:tt.timestamp)!==null&&nt!==void 0?nt:(at=X[p])===null||at===void 0?void 0:at.timestamp,Vt=(gt=X[o])===null||gt===void 0?void 0:gt.event.url,Ht=(_t=X[p])===null||_t===void 0?void 0:_t.event.error;return vt&&bt&&Vt?El(Vt,vt,bt,Ht,s[Vt]):null})).filter((function(X){return!!X}))}function El(i,s,o,c,p){var m,y=(function(w,v,I){if(w){for(var B,C=w.length-1;C>=0;C--){var X=w[C];if(X.startTime<v-1)break;X.responseEnd<=I+1&&(B=X)}return B}})(p,s,o);return(m={}).s=hr(y?.startTime)||Math.round(s),m.e=hr(y?.responseEnd)||Math.round(o),m.u=i||null,m.er=c?String(c):null,m.ds=hr(y?.domainLookupStart),m.de=hr(y?.domainLookupEnd),m.cs=hr(y?.connectStart),m.css=hr(y?.secureConnectionStart),m.ce=hr(y?.connectEnd),m.qs=hr(y?.requestStart),m.ss=hr(y?.responseStart),m}function hr(i){return typeof i=="number"?i===0?null:Math.round(i):null}function ss(i){var s,o=(s=performance.timeOrigin)!==null&&s!==void 0?s:Date.now()-performance.now();return Math.round(i.getTime()-o)}var H6=function(){var i=(function(){var o={},c=[],p=[],m=!1,y=gi(document,"visibilitychange",w);function w(){var I;p.push(((I={}).t=Math.round(performance.now()),I.s=Ca()?"v":"h",I))}function v(I,B){for(var C,X,Q,tt,nt,at,gt,_t,vt,bt,Vt,Ht,Wt=(function(Jt,se,un){var Oe=[];return Jt[se]&&(Oe.push.apply(Oe,Jt[se].commonEvents),un!==void 0&&Oe.push.apply(Oe,Jt[se].getCalls[un]||[])),Oe})(o,I,B),Nt={},Dt=0,Zt=Wt;Dt<Zt.length;Dt++){var Qt=Zt[Dt];Nt[Qt.event.e]=Qt}var ne=(X=Nt[4])!==null&&X!==void 0?X:Nt[5];if(Nt[0]&&Nt[1]&&Nt[3]&&Nt[12]&&ne){var ue=Nt[0].event.options,we=ue.token,ve=ue.apiKey,Ie=ve===void 0?we:ve,Le=ue.storageKey,Ce=Le===void 0?mf:Le,Te=ue.modules,nn=ue.ldi,Rn=ue.aggressiveOptimization,pn=Rn!==void 0&&Rn,Dn=ue.optimizeRepeatedVisits,Yn=Dn!==void 0&&Dn;if(Ie){var Wn,Tr,Xr=Math.min(Nt[0].timestamp,ss((Q=nn?.attempts[0].startedAt)!==null&&Q!==void 0?Q:new Date("8524-04-28"))),nr=(tt=Nt[5])===null||tt===void 0?void 0:tt.event.error,fn=(nt=Nt[4])===null||nt===void 0?void 0:nt.event.result,Mt=(at=Nt[13])!==null&&at!==void 0?at:Nt[14],Tt=wl(c),xt=((C={}).v="1",C.dt=new Date().toISOString(),C.ci=u0(),C.pi=$f(),C.ai=I,C.ri=eo(12),C.c=Ie,C.rid=(_t=(gt=fn?.requestId)!==null&>!==void 0?gt:nr?.requestId)!==null&&_t!==void 0?_t:null,C.er=(vt=nr?.message)!==null&&vt!==void 0?vt:null,C.mo=Te.map((function(Jt){return Jt.key})).filter((function(Jt){return!!Jt})),C.sa=(Wn=(bt=nn?.attempts)!==null&&bt!==void 0?bt:[],Tr=wl(Wn.map((function(Jt){return Jt.url})).filter((function(Jt){return!!Jt}))),Wn.map((function(Jt,se){var un=Wn.length>1&&se<Wn.length-1&&!("error"in Jt);return El(Jt.url,ss(Jt.startedAt),ss(Jt.finishedAt),un?"Unknown":Jt.error,Tr[Jt.url])}))),C.ls=Nt[0].timestamp,C.le=Nt[1].timestamp,C.ca=Ya(Wt,Tt,9,10,11),C.ss=Nt[12].timestamp,C.se=(Vt=Mt?.timestamp)!==null&&Vt!==void 0?Vt:null,C.sd=(function(Jt){var se,un=(se=Jt[13])===null||se===void 0?void 0:se.event.result;if(!un)return{};var Oe={};for(var ke in un)Oe[ke]=Math.round(un[ke].duration);return Oe})(Nt),C.gs=Nt[3].timestamp,C.ge=ne.timestamp,C.fa=Ya(Wt,Tt,18,19,20,0),C.ia=Ya(Wt,Tt,18,19,20,1),C.vs=(function(Jt,se,un,Oe){for(var ke=(function(On,zn){var xr,Lr;return(0,e.YH)(this,(function(pr){switch(pr.label){case 0:xr=0,Lr=0,pr.label=1;case 1:return xr<On.length&&Lr<zn.length?(function(K6,X6){return K6.t<X6.t})(On[xr],zn[Lr])?[4,On[xr]]:[3,3]:[3,6];case 2:return pr.sent(),xr++,[3,5];case 3:return[4,zn[Lr]];case 4:pr.sent(),Lr++,pr.label=5;case 5:return[3,1];case 6:return xr<On.length?[4,On[xr]]:[3,9];case 7:pr.sent(),pr.label=8;case 8:return xr++,[3,6];case 9:return Lr<zn.length?[4,zn[Lr]]:[3,12];case 10:pr.sent(),pr.label=11;case 11:return Lr++,[3,9];case 12:return[2]}}))})(Jt.map((function(On){var zn;return(zn={}).t=ss(On.time),zn.s=On.state==="visible"?"v":"h",zn})),se),ze=[],mn=void 0,Nr=function(){var On;ze.length===0&&mn!==void 0&&ze.push(((On={}).t=un,On.s=mn,On))};ze.length<100;){var uo=ke.next();if(uo.done)break;var Ei=uo.value,bi=Ei.t,co=Ei.s;if(bi>Oe)break;bi<un?mn=co:co!==mn&&(Nr(),ze.push(Ei),mn=co)}return Nr(),ze})((Ht=nn?.visibilityStates)!==null&&Ht!==void 0?Ht:[],p,Xr,ne.timestamp),C.ab=Nt[1].event.ab,C.ao=pn,C.or=Yn,C);(function(Jt,se){(function(un,Oe){var ke=Ha(Oe),ze=ja(ke)||[];ze.splice(0,ze.length-2);var mn=l0(_f(un),yl,3,7);ze.push([un.ri,Qn(mn)]),Ga(ke,JSON.stringify(ze))})(Jt,se)})(xt,Ce)}}}return w(),{addEvent:function(I){if(!m)switch((function(B){var C=B.event,X=C.agentId;if(o[X]||(o[X]={commonEvents:[],getCalls:{}}),r0(C)){var Q=C.getCallId;o[X].getCalls[Q]||(o[X].getCalls[Q]=[]),o[X].getCalls[Q].push(B)}else o[X].commonEvents.push(B)})({timestamp:Math.round(performance.now()),event:I}),I.e){case 9:case 18:c.push(I.url);break;case 4:case 5:v(I.agentId,I.getCallId)}},destroy:function(){m=!0,y()}}})(),s=new Set;return{toRequest:function(o){var c,p=(function(m){var y=ja(Ha(m))||[],w=[];return y.forEach((function(v){try{var I=es(ka(Xo(v[1]),yl,7));w.push(I)}catch{}})),w})(o);return s=new Set(p.map((function(m){return m.ri}))),(c={}).lr=p,c},onResponse:function(o,c){(function(p,m){var y=Ha(p);if(m.size!==0){var w=ja(y).filter((function(v){return!m.has(v[0])}));w.length!==0?Ga(y,JSON.stringify(w)):(function(v){var I;try{(I=localStorage==null?void 0:localStorage.removeItem)===null||I===void 0||I.call(localStorage,v)}catch{}})(y)}})(c,s)},addEvent:i.addEvent,destroy:i.destroy}},G6=function(i){return{addEvent:nm(i)}},j6=function(i){return{addEvent:wm(i)}},as="API key required",us="API key not found",cs="API key expired",bl="Request cannot be parsed",_l="Request failed",Rl="Request failed to process",Al="Too many requests, rate limit exceeded",Sl="Not available for this origin",Il="Not available with restricted header",Y6=as,W6=us,z6=cs,Z6={load:m0,defaultEndpoint:Jo,defaultTlsEndpoint:Qo,ERROR_CLIENT_TIMEOUT:Ia,ERROR_NETWORK_CONNECTION:Oa,ERROR_NETWORK_ABORT:Ta,ERROR_WRONG_REGION:Bf,ERROR_SUBSCRIPTION_NOT_ACTIVE:Mf,ERROR_API_KEY_MISSING:as,ERROR_API_KEY_INVALID:us,ERROR_API_KEY_EXPIRED:cs,ERROR_BAD_REQUEST_FORMAT:bl,ERROR_BAD_RESPONSE_FORMAT:Na,ERROR_GENERAL_SERVER_FAILURE:_l,ERROR_SERVER_TIMEOUT:Rl,ERROR_RATE_LIMIT:Al,ERROR_FORBIDDEN_ORIGIN:Sl,ERROR_FORBIDDEN_HEADER:Il,ERROR_UNSUPPORTED_VERSION:kf,ERROR_INSTALLATION_METHOD_RESTRICTED:Uf,ERROR_FORBIDDEN_ENDPOINT:Df,ERROR_CSP_BLOCK:xa,ERROR_INTEGRATION_FAILURE:Pf,ERROR_INVALID_ENDPOINT:La,ERROR_NETWORK_RESTRICTED:Vf,ERROR_INVALID_PROXY_INTEGRATION_SECRET:Hf,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:Gf,ERROR_TOKEN_MISSING:as,ERROR_TOKEN_INVALID:us,ERROR_TOKEN_EXPIRED:cs}},568:function(t,n,r){r.r(n),r.d(n,{componentsToDebugString:function(){return Et},default:function(){return R},getFullscreenElement:function(){return U},getScreenFrame:function(){return Ft},hashComponents:function(){return Lt},isAndroid:function(){return z},isChromium:function(){return wt},isDesktopSafari:function(){return f},isEdgeHTML:function(){return mt},isGecko:function(){return S},isTrident:function(){return lt},isWebKit:function(){return P},load:function(){return F},loadSources:function(){return At},murmurX64Hash128:function(){return O},prepareForSources:function(){return jt},sources:function(){return ct},transformSource:function(){return st},withIframe:function(){return et}});var e=r(635),u="3.4.2";function a(A,H){return new Promise((function(G){return setTimeout(G,A,H)}))}function d(A){return!!A&&typeof A.then=="function"}function E(A,H){try{var G=A();d(G)?G.then((function(it){return H(!0,it)}),(function(it){return H(!1,it)})):H(!0,G)}catch(it){H(!1,it)}}function l(A,H,G){return G===void 0&&(G=16),(0,e.sH)(this,void 0,void 0,(function(){var it,Ct,Bt,Ut;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:it=Array(A.length),Ct=Date.now(),Bt=0,kt.label=1;case 1:return Bt<A.length?(it[Bt]=H(A[Bt],Bt),(Ut=Date.now())>=Ct+G?(Ct=Ut,[4,a(0)]):[3,3]):[3,4];case 2:kt.sent(),kt.label=3;case 3:return++Bt,[3,1];case 4:return[2,it]}}))}))}function b(A){A.then(void 0,(function(){}))}function T(A,H){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],H=[H[0]>>>16,65535&H[0],H[1]>>>16,65535&H[1]];var G=[0,0,0,0];return G[3]+=A[3]+H[3],G[2]+=G[3]>>>16,G[3]&=65535,G[2]+=A[2]+H[2],G[1]+=G[2]>>>16,G[2]&=65535,G[1]+=A[1]+H[1],G[0]+=G[1]>>>16,G[1]&=65535,G[0]+=A[0]+H[0],G[0]&=65535,[G[0]<<16|G[1],G[2]<<16|G[3]]}function L(A,H){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],H=[H[0]>>>16,65535&H[0],H[1]>>>16,65535&H[1]];var G=[0,0,0,0];return G[3]+=A[3]*H[3],G[2]+=G[3]>>>16,G[3]&=65535,G[2]+=A[2]*H[3],G[1]+=G[2]>>>16,G[2]&=65535,G[2]+=A[3]*H[2],G[1]+=G[2]>>>16,G[2]&=65535,G[1]+=A[1]*H[3],G[0]+=G[1]>>>16,G[1]&=65535,G[1]+=A[2]*H[2],G[0]+=G[1]>>>16,G[1]&=65535,G[1]+=A[3]*H[1],G[0]+=G[1]>>>16,G[1]&=65535,G[0]+=A[0]*H[3]+A[1]*H[2]+A[2]*H[1]+A[3]*H[0],G[0]&=65535,[G[0]<<16|G[1],G[2]<<16|G[3]]}function N(A,H){return(H%=64)==32?[A[1],A[0]]:H<32?[A[0]<<H|A[1]>>>32-H,A[1]<<H|A[0]>>>32-H]:(H-=32,[A[1]<<H|A[0]>>>32-H,A[0]<<H|A[1]>>>32-H])}function x(A,H){return(H%=64)==0?A:H<32?[A[0]<<H|A[1]>>>32-H,A[1]<<H]:[A[1]<<H-32,0]}function M(A,H){return[A[0]^H[0],A[1]^H[1]]}function D(A){return A=M(A,[0,A[0]>>>1]),A=M(A=L(A,[4283543511,3981806797]),[0,A[0]>>>1]),M(A=L(A,[3301882366,444984403]),[0,A[0]>>>1])}function Y(A,H){H=H||0;var G,it=(A=A||"").length%16,Ct=A.length-it,Bt=[0,H],Ut=[0,H],kt=[0,0],rt=[0,0],Yt=[2277735313,289559509],pe=[1291169091,658871167];for(G=0;G<Ct;G+=16)kt=[255&A.charCodeAt(G+4)|(255&A.charCodeAt(G+5))<<8|(255&A.charCodeAt(G+6))<<16|(255&A.charCodeAt(G+7))<<24,255&A.charCodeAt(G)|(255&A.charCodeAt(G+1))<<8|(255&A.charCodeAt(G+2))<<16|(255&A.charCodeAt(G+3))<<24],rt=[255&A.charCodeAt(G+12)|(255&A.charCodeAt(G+13))<<8|(255&A.charCodeAt(G+14))<<16|(255&A.charCodeAt(G+15))<<24,255&A.charCodeAt(G+8)|(255&A.charCodeAt(G+9))<<8|(255&A.charCodeAt(G+10))<<16|(255&A.charCodeAt(G+11))<<24],kt=N(kt=L(kt,Yt),31),Bt=T(Bt=N(Bt=M(Bt,kt=L(kt,pe)),27),Ut),Bt=T(L(Bt,[0,5]),[0,1390208809]),rt=N(rt=L(rt,pe),33),Ut=T(Ut=N(Ut=M(Ut,rt=L(rt,Yt)),31),Bt),Ut=T(L(Ut,[0,5]),[0,944331445]);switch(kt=[0,0],rt=[0,0],it){case 15:rt=M(rt,x([0,A.charCodeAt(G+14)],48));case 14:rt=M(rt,x([0,A.charCodeAt(G+13)],40));case 13:rt=M(rt,x([0,A.charCodeAt(G+12)],32));case 12:rt=M(rt,x([0,A.charCodeAt(G+11)],24));case 11:rt=M(rt,x([0,A.charCodeAt(G+10)],16));case 10:rt=M(rt,x([0,A.charCodeAt(G+9)],8));case 9:rt=L(rt=M(rt,[0,A.charCodeAt(G+8)]),pe),Ut=M(Ut,rt=L(rt=N(rt,33),Yt));case 8:kt=M(kt,x([0,A.charCodeAt(G+7)],56));case 7:kt=M(kt,x([0,A.charCodeAt(G+6)],48));case 6:kt=M(kt,x([0,A.charCodeAt(G+5)],40));case 5:kt=M(kt,x([0,A.charCodeAt(G+4)],32));case 4:kt=M(kt,x([0,A.charCodeAt(G+3)],24));case 3:kt=M(kt,x([0,A.charCodeAt(G+2)],16));case 2:kt=M(kt,x([0,A.charCodeAt(G+1)],8));case 1:kt=L(kt=M(kt,[0,A.charCodeAt(G)]),Yt),Bt=M(Bt,kt=L(kt=N(kt,31),pe))}return Bt=T(Bt=M(Bt,[0,A.length]),Ut=M(Ut,[0,A.length])),Ut=T(Ut,Bt),Bt=T(Bt=D(Bt),Ut=D(Ut)),Ut=T(Ut,Bt),("00000000"+(Bt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Bt[1]>>>0).toString(16)).slice(-8)+("00000000"+(Ut[0]>>>0).toString(16)).slice(-8)+("00000000"+(Ut[1]>>>0).toString(16)).slice(-8)}function W(A){return parseInt(A)}function J(A){return parseFloat(A)}function q(A,H){return typeof A=="number"&&isNaN(A)?H:A}function ot(A){return A.reduce((function(H,G){return H+(G?1:0)}),0)}function pt(A,H){if(H===void 0&&(H=1),Math.abs(H)>=1)return Math.round(A/H)*H;var G=1/H;return Math.round(A*G)/G}function ft(A){return A&&typeof A=="object"&&"message"in A?A:{message:A}}function Rt(A){return typeof A!="function"}function At(A,H,G){var it=Object.keys(A).filter((function(Bt){return!(function(Ut,kt){for(var rt=0,Yt=Ut.length;rt<Yt;++rt)if(Ut[rt]===kt)return!0;return!1})(G,Bt)})),Ct=l(it,(function(Bt){return(function(Ut,kt){var rt=new Promise((function(Yt){var pe=Date.now();E(Ut.bind(null,kt),(function(){for(var ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];var he=Date.now()-pe;if(!ee[0])return Yt((function(){return{error:ft(ee[1]),duration:he}}));var fe=ee[1];if(Rt(fe))return Yt((function(){return{value:fe,duration:he}}));Yt((function(){return new Promise((function(ae){var We=Date.now();E(fe,(function(){for(var ye=[],_e=0;_e<arguments.length;_e++)ye[_e]=arguments[_e];var an=he+Date.now()-We;if(!ye[0])return ae({error:ft(ye[1]),duration:an});ae({value:ye[1],duration:an})}))}))}))}))}));return b(rt),function(){return rt.then((function(Yt){return Yt()}))}})(A[Bt],H)}));return b(Ct),function(){return(0,e.sH)(this,void 0,void 0,(function(){var Bt,Ut,kt,rt;return(0,e.YH)(this,(function(Yt){switch(Yt.label){case 0:return[4,Ct];case 1:return[4,l(Yt.sent(),(function(pe){var ee=pe();return b(ee),ee}))];case 2:return Bt=Yt.sent(),[4,Promise.all(Bt)];case 3:for(Ut=Yt.sent(),kt={},rt=0;rt<it.length;++rt)kt[it[rt]]=Ut[rt];return[2,kt]}}))}))}}function st(A,H){var G=function(it){return Rt(it)?H(it):function(){var Ct=it();return d(Ct)?Ct.then(H):H(Ct)}};return function(it){var Ct=A(it);return d(Ct)?Ct.then(G):G(Ct)}}function lt(){var A=window,H=navigator;return ot(["MSCSSMatrix"in A,"msSetImmediate"in A,"msIndexedDB"in A,"msMaxTouchPoints"in H,"msPointerEnabled"in H])>=4}function mt(){var A=window,H=navigator;return ot(["msWriteProfilerMark"in A,"MSStream"in A,"msLaunchUri"in H,"msSaveBlob"in H])>=3&&!lt()}function wt(){var A=window,H=navigator;return ot(["webkitPersistentStorage"in H,"webkitTemporaryStorage"in H,H.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in A,"BatteryManager"in A,"webkitMediaStream"in A,"webkitSpeechGrammar"in A])>=5}function P(){var A=window,H=navigator;return ot(["ApplePayError"in A,"CSSPrimitiveValue"in A,"Counter"in A,H.vendor.indexOf("Apple")===0,"getStorageUpdates"in H,"WebKitMediaKeys"in A])>=4}function f(){var A=window;return ot(["safari"in A,!("DeviceMotionEvent"in A),!("ongestureend"in A),!("standalone"in navigator)])>=3}function S(){var A,H,G=window;return ot(["buildID"in navigator,"MozAppearance"in((H=(A=document.documentElement)===null||A===void 0?void 0:A.style)!==null&&H!==void 0?H:{}),"onmozfullscreenchange"in G,"mozInnerScreenX"in G,"CSSMozDocumentRule"in G,"CanvasCaptureMediaStream"in G])>=4}function U(){var A=document;return A.fullscreenElement||A.msFullscreenElement||A.mozFullScreenElement||A.webkitFullscreenElement||null}function z(){var A=wt(),H=S();if(!A&&!H)return!1;var G=window;return ot(["onorientationchange"in G,"orientation"in G,A&&!("SharedWorker"in G),H&&/android/i.test(navigator.appVersion)])>=2}function $(A){var H=new Error(A);return H.name=A,H}function et(A,H,G){var it,Ct,Bt;return G===void 0&&(G=50),(0,e.sH)(this,void 0,void 0,(function(){var Ut,kt;return(0,e.YH)(this,(function(rt){switch(rt.label){case 0:Ut=document,rt.label=1;case 1:return Ut.body?[3,3]:[4,a(G)];case 2:return rt.sent(),[3,1];case 3:kt=Ut.createElement("iframe"),rt.label=4;case 4:return rt.trys.push([4,,10,11]),[4,new Promise((function(Yt,pe){var ee=!1,oe=function(){ee=!0,Yt()};kt.onload=oe,kt.onerror=function(ae){ee=!0,pe(ae)};var he=kt.style;he.setProperty("display","block","important"),he.position="absolute",he.top="0",he.left="0",he.visibility="hidden",H&&"srcdoc"in kt?kt.srcdoc=H:kt.src="about:blank",Ut.body.appendChild(kt);var fe=function(){var ae,We;ee||(((We=(ae=kt.contentWindow)===null||ae===void 0?void 0:ae.document)===null||We===void 0?void 0:We.readyState)==="complete"?oe():setTimeout(fe,10))};fe()}))];case 5:rt.sent(),rt.label=6;case 6:return!((Ct=(it=kt.contentWindow)===null||it===void 0?void 0:it.document)===null||Ct===void 0)&&Ct.body?[3,8]:[4,a(G)];case 7:return rt.sent(),[3,6];case 8:return[4,A(kt,kt.contentWindow)];case 9:return[2,rt.sent()];case 10:return(Bt=kt.parentNode)===null||Bt===void 0||Bt.removeChild(kt),[7];case 11:return[2]}}))}))}function ut(A){for(var H=(function(Yt){for(var pe,ee,oe="Unexpected syntax '".concat(Yt,"'"),he=/^\s*([a-z-]*)(.*)$/i.exec(Yt),fe=he[1]||void 0,ae={},We=/([.:#][\w-]+|\[.+?\])/gi,ye=function(De,lr){ae[De]=ae[De]||[],ae[De].push(lr)};;){var _e=We.exec(he[2]);if(!_e)break;var an=_e[0];switch(an[0]){case".":ye("class",an.slice(1));break;case"#":ye("id",an.slice(1));break;case"[":var Be=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(an);if(!Be)throw new Error(oe);ye(Be[1],(ee=(pe=Be[4])!==null&&pe!==void 0?pe:Be[5])!==null&&ee!==void 0?ee:"");break;default:throw new Error(oe)}}return[fe,ae]})(A),G=H[0],it=H[1],Ct=document.createElement(G??"div"),Bt=0,Ut=Object.keys(it);Bt<Ut.length;Bt++){var kt=Ut[Bt],rt=it[kt].join(" ");kt==="style"?Z(Ct.style,rt):Ct.setAttribute(kt,rt)}return Ct}function Z(A,H){for(var G=0,it=H.split(";");G<it.length;G++){var Ct=it[G],Bt=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Ct);if(Bt){var Ut=Bt[1],kt=Bt[2],rt=Bt[4];A.setProperty(Ut,kt,rt||"")}}}var h=["monospace","sans-serif","serif"],_=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function j(A){return A.toDataURL()}var K,ht,St=2500;function Ft(){var A=this;return(function(){if(ht===void 0){var H=function(){var G=zt();de(G)?ht=setTimeout(H,St):(K=G,ht=void 0)};H()}})(),function(){return(0,e.sH)(A,void 0,void 0,(function(){var H;return(0,e.YH)(this,(function(G){switch(G.label){case 0:return de(H=zt())?K?[2,(0,e.fX)([],K,!0)]:U()?[4,(it=document,(it.exitFullscreen||it.msExitFullscreen||it.mozCancelFullScreen||it.webkitExitFullscreen).call(it))]:[3,2]:[3,2];case 1:G.sent(),H=zt(),G.label=2;case 2:return de(H)||(K=H),[2,H]}var it}))}))}}function zt(){var A=screen;return[q(J(A.availTop),null),q(J(A.width)-J(A.availWidth)-q(J(A.availLeft),0),null),q(J(A.height)-J(A.availHeight)-q(J(A.availTop),0),null),q(J(A.availLeft),null)]}function de(A){for(var H=0;H<4;++H)if(A[H])return!1;return!0}function Ee(A){var H;return(0,e.sH)(this,void 0,void 0,(function(){var G,it,Ct,Bt,Ut,kt,rt;return(0,e.YH)(this,(function(Yt){switch(Yt.label){case 0:for(G=document,it=G.createElement("div"),Ct=new Array(A.length),Bt={},me(it),rt=0;rt<A.length;++rt)(Ut=ut(A[rt])).tagName==="DIALOG"&&Ut.show(),me(kt=G.createElement("div")),kt.appendChild(Ut),it.appendChild(kt),Ct[rt]=Ut;Yt.label=1;case 1:return G.body?[3,3]:[4,a(50)];case 2:return Yt.sent(),[3,1];case 3:G.body.appendChild(it);try{for(rt=0;rt<A.length;++rt)Ct[rt].offsetParent||(Bt[A[rt]]=!0)}finally{(H=it.parentNode)===null||H===void 0||H.removeChild(it)}return[2,Bt]}}))}))}function me(A){A.style.setProperty("display","block","important")}function $t(A){return matchMedia("(inverted-colors: ".concat(A,")")).matches}function be(A){return matchMedia("(forced-colors: ".concat(A,")")).matches}function Re(A){return matchMedia("(prefers-contrast: ".concat(A,")")).matches}function Ye(A){return matchMedia("(prefers-reduced-motion: ".concat(A,")")).matches}function Ne(A){return matchMedia("(dynamic-range: ".concat(A,")")).matches}var g=Math,k=function(){return 0},V={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},ct={fonts:function(){return et((function(A,H){var G=H.document,it=G.body;it.style.fontSize="48px";var Ct=G.createElement("div"),Bt={},Ut={},kt=function(ee){var oe=G.createElement("span"),he=oe.style;return he.position="absolute",he.top="0",he.left="0",he.fontFamily=ee,oe.textContent="mmMwWLliI0O&1",Ct.appendChild(oe),oe},rt=h.map(kt),Yt=(function(){for(var ee={},oe=function(ae){ee[ae]=h.map((function(We){return(function(ye,_e){return kt("'".concat(ye,"',").concat(_e))})(ae,We)}))},he=0,fe=_;he<fe.length;he++)oe(fe[he]);return ee})();it.appendChild(Ct);for(var pe=0;pe<h.length;pe++)Bt[h[pe]]=rt[pe].offsetWidth,Ut[h[pe]]=rt[pe].offsetHeight;return _.filter((function(ee){return oe=Yt[ee],h.some((function(he,fe){return oe[fe].offsetWidth!==Bt[he]||oe[fe].offsetHeight!==Ut[he]}));var oe}))}))},domBlockers:function(A){var H=(A===void 0?{}:A).debug;return(0,e.sH)(this,void 0,void 0,(function(){var G,it,Ct,Bt,Ut;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:return P()||z()?(rt=atob,G={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',rt("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",rt("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",rt("LnNwb25zb3JpdA=="),".ylamainos",rt("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",rt("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",rt("LmhlYWRlci1ibG9ja2VkLWFk"),rt("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",rt("I2FkXzMwMFgyNTA="),rt("I2Jhbm5lcmZsb2F0MjI="),rt("I2NhbXBhaWduLWJhbm5lcg=="),rt("I0FkLUNvbnRlbnQ=")],adGuardChinese:[rt("LlppX2FkX2FfSA=="),rt("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",rt("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),rt("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",rt("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",rt("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",rt("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),rt("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),rt("LmFkZ29vZ2xl"),rt("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[rt("YW1wLWF1dG8tYWRz"),rt("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",rt("I2FkX2ludmlld19hcmVh")],adGuardRussian:[rt("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),rt("LnJlY2xhbWE="),'div[id^="smi2adblock"]',rt("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[rt("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),rt("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",rt("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),rt("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),rt("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",rt("I3Jla2xhbWk="),rt("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),rt("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),rt("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[rt("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",rt("LndpZGdldF9wb19hZHNfd2lkZ2V0"),rt("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",rt("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[rt("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),rt("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",rt("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",rt("I3Jla2xhbW5pLWJveA=="),rt("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",rt("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[rt("I2FkdmVydGVudGll"),rt("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",rt("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",rt("LnNwb25zb3JsaW5rZ3J1ZW4="),rt("I3dlcmJ1bmdza3k="),rt("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),rt("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[rt("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",rt("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[rt("LnJla2xhbW9zX3RhcnBhcw=="),rt("LnJla2xhbW9zX251b3JvZG9z"),rt("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),rt("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),rt("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[rt("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[rt("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),rt("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",rt("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[rt("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),rt("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),rt("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",rt("LmFkX19tYWlu"),rt("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[rt("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[rt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),rt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[rt("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),rt("I2xpdmVyZUFkV3JhcHBlcg=="),rt("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),rt("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[rt("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",rt("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),rt("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),rt("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[rt("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),rt("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),rt("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",rt("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),rt("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),rt("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),rt("ZGl2I3NrYXBpZWNfYWQ=")],ro:[rt("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),rt("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[rt("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),rt("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),rt("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",rt("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),rt("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",rt("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},it=Object.keys(G),[4,Ee((Ut=[]).concat.apply(Ut,it.map((function(Yt){return G[Yt]}))))]):[2,void 0];case 1:return Ct=kt.sent(),H&&(function(Yt,pe){for(var ee="DOM blockers debug:\n```",oe=0,he=Object.keys(Yt);oe<he.length;oe++){var fe=he[oe];ee+=`
|
|
12
|
+
`.concat(fe,":");for(var ae=0,We=Yt[fe];ae<We.length;ae++){var ye=We[ae];ee+=`
|
|
13
|
+
`.concat(pe[ye]?"🚫":"➡️"," ").concat(ye)}}console.log("".concat(ee,"\n```"))})(G,Ct),(Bt=it.filter((function(Yt){var pe=G[Yt];return ot(pe.map((function(ee){return Ct[ee]})))>.6*pe.length}))).sort(),[2,Bt]}var rt}))}))},fontPreferences:function(){return A===void 0&&(A=4e3),et((function(H,G){var it=G.document,Ct=it.body,Bt=Ct.style;Bt.width="".concat(A,"px"),Bt.webkitTextSizeAdjust=Bt.textSizeAdjust="none",wt()?Ct.style.zoom="".concat(1/G.devicePixelRatio):P()&&(Ct.style.zoom="reset");var Ut=it.createElement("div");return Ut.textContent=(0,e.fX)([],Array(A/20|0),!0).map((function(){return"word"})).join(" "),Ct.appendChild(Ut),(function(kt,rt){for(var Yt={},pe={},ee=0,oe=Object.keys(V);ee<oe.length;ee++){var he=oe[ee],fe=V[he],ae=fe[0],We=ae===void 0?{}:ae,ye=fe[1],_e=ye===void 0?"mmMwWLliI0fiflO&1":ye,an=kt.createElement("span");an.textContent=_e,an.style.whiteSpace="nowrap";for(var Be=0,De=Object.keys(We);Be<De.length;Be++){var lr=De[Be],He=We[lr];He!==void 0&&(an.style[lr]=He)}Yt[he]=an,rt.appendChild(kt.createElement("br")),rt.appendChild(an)}for(var Ve=0,Yr=Object.keys(V);Ve<Yr.length;Ve++)pe[he=Yr[Ve]]=Yt[he].getBoundingClientRect().width;return pe})(it,Ct)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var A},audio:function(){var A=window,H=A.OfflineAudioContext||A.webkitOfflineAudioContext;if(!H)return-2;if(P()&&!f()&&!(function(){var Yt=window;return ot(["DOMRectList"in Yt,"RTCPeerConnectionIceEvent"in Yt,"SVGGeometryElement"in Yt,"ontransitioncancel"in Yt])>=3})())return-1;var G=new H(1,5e3,44100),it=G.createOscillator();it.type="triangle",it.frequency.value=1e4;var Ct=G.createDynamicsCompressor();Ct.threshold.value=-50,Ct.knee.value=40,Ct.ratio.value=12,Ct.attack.value=0,Ct.release.value=.25,it.connect(Ct),Ct.connect(G.destination),it.start(0);var Bt=(function(Yt){var pe=function(){};return[new Promise((function(ee,oe){var he=!1,fe=0,ae=0;Yt.oncomplete=function(_e){return ee(_e.renderedBuffer)};var We=function(){setTimeout((function(){return oe($("timeout"))}),Math.min(500,ae+5e3-Date.now()))},ye=function(){try{var _e=Yt.startRendering();switch(d(_e)&&b(_e),Yt.state){case"running":ae=Date.now(),he&&We();break;case"suspended":document.hidden||fe++,he&&fe>=3?oe($("suspended")):setTimeout(ye,500)}}catch(an){oe(an)}};ye(),pe=function(){he||(he=!0,ae>0&&We())}})),pe]})(G),Ut=Bt[0],kt=Bt[1],rt=Ut.then((function(Yt){return(function(pe){for(var ee=0,oe=0;oe<pe.length;++oe)ee+=Math.abs(pe[oe]);return ee})(Yt.getChannelData(0).subarray(4500))}),(function(Yt){if(Yt.name==="timeout"||Yt.name==="suspended")return-3;throw Yt}));return b(rt),function(){return kt(),rt}},screenFrame:function(){var A=this,H=Ft();return function(){return(0,e.sH)(A,void 0,void 0,(function(){var G,it;return(0,e.YH)(this,(function(Ct){switch(Ct.label){case 0:return[4,H()];case 1:return G=Ct.sent(),[2,[(it=function(Bt){return Bt===null?null:pt(Bt,10)})(G[0]),it(G[1]),it(G[2]),it(G[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var A,H=navigator,G=[],it=H.language||H.userLanguage||H.browserLanguage||H.systemLanguage;if(it!==void 0&&G.push([it]),Array.isArray(H.languages))wt()&&ot([!("MediaSettingsRange"in(A=window)),"RTCEncodedAudioFrame"in A,""+A.Intl=="[object Intl]",""+A.Reflect=="[object Reflect]"])>=3||G.push(H.languages);else if(typeof H.languages=="string"){var Ct=H.languages;Ct&&G.push(Ct.split(","))}return G},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return q(J(navigator.deviceMemory),void 0)},screenResolution:function(){var A=screen,H=function(it){return q(W(it),null)},G=[H(A.width),H(A.height)];return G.sort().reverse(),G},hardwareConcurrency:function(){return q(W(navigator.hardwareConcurrency),void 0)},timezone:function(){var A,H=(A=window.Intl)===null||A===void 0?void 0:A.DateTimeFormat;if(H){var G=new H().resolvedOptions().timeZone;if(G)return G}var it,Ct=(it=new Date().getFullYear(),-Math.max(J(new Date(it,0,1).getTimezoneOffset()),J(new Date(it,6,1).getTimezoneOffset())));return"UTC".concat(Ct>=0?"+":"").concat(Math.abs(Ct))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!lt()&&!mt())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var A=navigator.platform;return A==="MacIntel"&&P()&&!f()?(function(){if(navigator.platform==="iPad")return!0;var H=screen,G=H.width/H.height;return ot(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,G>.65&&G<1.53])>=2})()?"iPad":"iPhone":A},plugins:function(){var A=navigator.plugins;if(A){for(var H=[],G=0;G<A.length;++G){var it=A[G];if(it){for(var Ct=[],Bt=0;Bt<it.length;++Bt){var Ut=it[Bt];Ct.push({type:Ut.type,suffixes:Ut.suffixes})}H.push({name:it.name,description:it.description,mimeTypes:Ct})}}return H}},canvas:function(){var A,H,G=!1,it=(function(){var kt=document.createElement("canvas");return kt.width=1,kt.height=1,[kt,kt.getContext("2d")]})(),Ct=it[0],Bt=it[1];if((function(kt,rt){return!(!rt||!kt.toDataURL)})(Ct,Bt)){G=(function(kt){return kt.rect(0,0,10,10),kt.rect(2,2,6,6),!kt.isPointInPath(5,5,"evenodd")})(Bt),(function(kt,rt){kt.width=240,kt.height=60,rt.textBaseline="alphabetic",rt.fillStyle="#f60",rt.fillRect(100,1,62,20),rt.fillStyle="#069",rt.font='11pt "Times New Roman"';var Yt="Cwm fjordbank gly ".concat("😃");rt.fillText(Yt,2,15),rt.fillStyle="rgba(102, 204, 0, 0.2)",rt.font="18pt Arial",rt.fillText(Yt,4,45)})(Ct,Bt);var Ut=j(Ct);Ut!==j(Ct)?A=H="unstable":(H=Ut,(function(kt,rt){kt.width=122,kt.height=110,rt.globalCompositeOperation="multiply";for(var Yt=0,pe=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Yt<pe.length;Yt++){var ee=pe[Yt],oe=ee[0],he=ee[1],fe=ee[2];rt.fillStyle=oe,rt.beginPath(),rt.arc(he,fe,40,0,2*Math.PI,!0),rt.closePath(),rt.fill()}rt.fillStyle="#f9c",rt.arc(60,60,60,0,2*Math.PI,!0),rt.arc(60,60,20,0,2*Math.PI,!0),rt.fill("evenodd")})(Ct,Bt),A=j(Ct))}else A=H="";return{winding:G,geometry:A,text:H}},touchSupport:function(){var A,H=navigator,G=0;H.maxTouchPoints!==void 0?G=W(H.maxTouchPoints):H.msMaxTouchPoints!==void 0&&(G=H.msMaxTouchPoints);try{document.createEvent("TouchEvent"),A=!0}catch{A=!1}return{maxTouchPoints:G,touchEvent:A,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var A=[],H=0,G=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];H<G.length;H++){var it=G[H],Ct=window[it];Ct&&typeof Ct=="object"&&A.push(it)}return A.sort()},cookiesEnabled:function(){var A=document;try{A.cookie="cookietest=1; SameSite=Strict;";var H=A.cookie.indexOf("cookietest=")!==-1;return A.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",H}catch{return!1}},colorGamut:function(){for(var A=0,H=["rec2020","p3","srgb"];A<H.length;A++){var G=H[A];if(matchMedia("(color-gamut: ".concat(G,")")).matches)return G}},invertedColors:function(){return!!$t("inverted")||!$t("none")&&void 0},forcedColors:function(){return!!be("active")||!be("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var A=0;A<=100;++A)if(matchMedia("(max-monochrome: ".concat(A,")")).matches)return A;throw new Error("Too high value")}},contrast:function(){return Re("no-preference")?0:Re("high")||Re("more")?1:Re("low")||Re("less")?-1:Re("forced")?10:void 0},reducedMotion:function(){return!!Ye("reduce")||!Ye("no-preference")&&void 0},hdr:function(){return!!Ne("high")||!Ne("standard")&&void 0},math:function(){var A,H=g.acos||k,G=g.acosh||k,it=g.asin||k,Ct=g.asinh||k,Bt=g.atanh||k,Ut=g.atan||k,kt=g.sin||k,rt=g.sinh||k,Yt=g.cos||k,pe=g.cosh||k,ee=g.tan||k,oe=g.tanh||k,he=g.exp||k,fe=g.expm1||k,ae=g.log1p||k;return{acos:H(.12312423423423424),acosh:G(1e308),acoshPf:(A=1e154,g.log(A+g.sqrt(A*A-1))),asin:it(.12312423423423424),asinh:Ct(1),asinhPf:g.log(1+g.sqrt(2)),atanh:Bt(.5),atanhPf:g.log(3)/2,atan:Ut(.5),sin:kt(-1e300),sinh:rt(1),sinhPf:g.exp(1)-1/g.exp(1)/2,cos:Yt(10.000000000123),cosh:pe(1),coshPf:(g.exp(1)+1/g.exp(1))/2,tan:ee(-1e300),tanh:oe(1),tanhPf:(g.exp(2)-1)/(g.exp(2)+1),exp:he(1),expm1:fe(1),expm1Pf:g.exp(1)-1,log1p:ae(10),log1pPf:g.log(11),powPI:g.pow(g.PI,-100)}},videoCard:function(){var A,H=document.createElement("canvas"),G=(A=H.getContext("webgl"))!==null&&A!==void 0?A:H.getContext("experimental-webgl");if(G&&"getExtension"in G){var it=G.getExtension("WEBGL_debug_renderer_info");if(it)return{vendor:(G.getParameter(it.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(G.getParameter(it.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var A=new Float32Array(1),H=new Uint8Array(A.buffer);return A[0]=1/0,A[0]=A[0]-A[0],H[3]}},yt="$ if upgrade to Pro: https://fpjs.dev/pro";function Et(A){return JSON.stringify(A,(function(H,G){return G instanceof Error?(it=G,(0,e.Cl)({name:it.name,message:it.message,stack:(Ct=it.stack)===null||Ct===void 0?void 0:Ct.split(`
|
|
14
|
+
`)},it)):G;var it,Ct}),2)}function Lt(A){return Y((function(H){for(var G="",it=0,Ct=Object.keys(H).sort();it<Ct.length;it++){var Bt=Ct[it],Ut=H[Bt],kt=Ut.error?"error":JSON.stringify(Ut.value);G+="".concat(G?"|":"").concat(Bt.replace(/([:|\\])/g,"\\$1"),":").concat(kt)}return G})(A))}function jt(A){return A===void 0&&(A=50),(function(H,G){G===void 0&&(G=1/0);var it=window.requestIdleCallback;return it?new Promise((function(Ct){return it.call(window,(function(){return Ct()}),{timeout:G})})):a(Math.min(H,G))})(A,2*A)}function te(A,H){var G=Date.now();return{get:function(it){return(0,e.sH)(this,void 0,void 0,(function(){var Ct,Bt,Ut;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:return Ct=Date.now(),[4,A()];case 1:return Bt=kt.sent(),Ut=(function(rt){var Yt,pe=(function(ee){var oe=(function(fe){if(z())return .4;if(P())return f()?.5:.3;var ae=fe.platform.value||"";return/^Win/.test(ae)?.6:/^Mac/.test(ae)?.5:.7})(ee),he=(function(fe){return pt(.99+.01*fe,1e-4)})(oe);return{score:oe,comment:yt.replace(/\$/g,"".concat(he))}})(rt);return{get visitorId(){return Yt===void 0&&(Yt=Lt(this.components)),Yt},set visitorId(ee){Yt=ee},confidence:pe,components:rt,version:u}})(Bt),(H||it?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Ut.version,`
|
|
20
15
|
userAgent: `).concat(navigator.userAgent,`
|
|
21
|
-
timeBetweenLoadAndGet: `).concat(Ct-
|
|
22
|
-
visitorId: `).concat(
|
|
23
|
-
components: `).concat(bt(Lt),"\n```")),[2,Mt]}}))}))}}}function F(A){var W=A===void 0?{}:A,z=W.delayFallback,ot=W.debug,Ct=W.monitoring,Lt=Ct===void 0||Ct;return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(Mt){switch(Mt.label){case 0:return Lt&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Pt=new XMLHttpRequest;Pt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),Pt.send()}catch(it){console.error(it)}})(),[4,zt(z)];case 1:return Mt.sent(),[2,ie(At(ft,{debug:ot},[]),ot)]}}))}))}var R={load:F,hashComponents:xt,componentsToDebugString:bt},N=V},526:function(r,t){t.byteLength=function(p){var S=d(p),x=S[0],T=S[1];return 3*(x+T)/4-T},t.toByteArray=function(p){var S,x,T=d(p),k=T[0],C=T[1],M=new o((function(J,$,nt){return 3*($+nt)/4-nt})(0,k,C)),V=0,G=C>0?k-4:k;for(x=0;x<G;x+=4)S=e[p.charCodeAt(x)]<<18|e[p.charCodeAt(x+1)]<<12|e[p.charCodeAt(x+2)]<<6|e[p.charCodeAt(x+3)],M[V++]=S>>16&255,M[V++]=S>>8&255,M[V++]=255&S;return C===2&&(S=e[p.charCodeAt(x)]<<2|e[p.charCodeAt(x+1)]>>4,M[V++]=255&S),C===1&&(S=e[p.charCodeAt(x)]<<10|e[p.charCodeAt(x+1)]<<4|e[p.charCodeAt(x+2)]>>2,M[V++]=S>>8&255,M[V++]=255&S),M},t.fromByteArray=function(p){for(var S,x=p.length,T=x%3,k=[],C=16383,M=0,V=x-T;M<V;M+=C)k.push(f(p,M,M+C>V?V:M+C));return T===1?(S=p[x-1],k.push(n[S>>2]+n[S<<4&63]+"==")):T===2&&(S=(p[x-2]<<8)+p[x-1],k.push(n[S>>10]+n[S>>4&63]+n[S<<2&63]+"=")),k.join("")};for(var n=[],e=[],o=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)n[c]=i[c],e[i.charCodeAt(c)]=c;function d(p){var S=p.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=p.indexOf("=");return x===-1&&(x=S),[x,x===S?0:4-x%4]}function f(p,S,x){for(var T,k,C=[],M=S;M<x;M+=3)T=(p[M]<<16&16711680)+(p[M+1]<<8&65280)+(255&p[M+2]),C.push(n[(k=T)>>18&63]+n[k>>12&63]+n[k>>6&63]+n[63&k]);return C.join("")}e[45]=62,e[95]=63},287:function(r,t,n){const e=n(526),o=n(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=f,t.IS=50;const c=2147483647;function d(y){if(y>c)throw new RangeError('The value "'+y+'" is invalid for option "size"');const P=new Uint8Array(y);return Object.setPrototypeOf(P,f.prototype),P}function f(y,P,H){if(typeof y=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(y)}return p(y,P,H)}function p(y,P,H){if(typeof y=="string")return(function(bt,xt){if(typeof xt=="string"&&xt!==""||(xt="utf8"),!f.isEncoding(xt))throw new TypeError("Unknown encoding: "+xt);const zt=0|M(bt,xt);let ie=d(zt);const F=ie.write(bt,xt);return F!==zt&&(ie=ie.slice(0,F)),ie})(y,P);if(ArrayBuffer.isView(y))return(function(bt){if(Ne(bt,Uint8Array)){const xt=new Uint8Array(bt);return k(xt.buffer,xt.byteOffset,xt.byteLength)}return T(bt)})(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(Ne(y,ArrayBuffer)||y&&Ne(y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ne(y,SharedArrayBuffer)||y&&Ne(y.buffer,SharedArrayBuffer)))return k(y,P,H);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ft=y.valueOf&&y.valueOf();if(ft!=null&&ft!==y)return f.from(ft,P,H);const yt=(function(bt){if(f.isBuffer(bt)){const xt=0|C(bt.length),zt=d(xt);return zt.length===0||bt.copy(zt,0,0,xt),zt}return bt.length!==void 0?typeof bt.length!="number"||Oe(bt.length)?d(0):T(bt):bt.type==="Buffer"&&Array.isArray(bt.data)?T(bt.data):void 0})(y);if(yt)return yt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return f.from(y[Symbol.toPrimitive]("string"),P,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function S(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function x(y){return S(y),d(y<0?0:0|C(y))}function T(y){const P=y.length<0?0:0|C(y.length),H=d(P);for(let ft=0;ft<P;ft+=1)H[ft]=255&y[ft];return H}function k(y,P,H){if(P<0||y.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<P+(H||0))throw new RangeError('"length" is outside of buffer bounds');let ft;return ft=P===void 0&&H===void 0?new Uint8Array(y):H===void 0?new Uint8Array(y,P):new Uint8Array(y,P,H),Object.setPrototypeOf(ft,f.prototype),ft}function C(y){if(y>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return 0|y}function M(y,P){if(f.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||Ne(y,ArrayBuffer))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const H=y.length,ft=arguments.length>2&&arguments[2]===!0;if(!ft&&H===0)return 0;let yt=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return me(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return Ee(y).length;default:if(yt)return ft?-1:me(y).length;P=(""+P).toLowerCase(),yt=!0}}function V(y,P,H){let ft=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(P>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return h(this,P,H);case"utf8":case"utf-8":return dt(this,P,H);case"ascii":return wt(this,P,H);case"latin1":case"binary":return D(this,P,H);case"base64":return st(this,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,P,H);default:if(ft)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),ft=!0}}function G(y,P,H){const ft=y[P];y[P]=y[H],y[H]=ft}function J(y,P,H,ft,yt){if(y.length===0)return-1;if(typeof H=="string"?(ft=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),Oe(H=+H)&&(H=yt?0:y.length-1),H<0&&(H=y.length+H),H>=y.length){if(yt)return-1;H=y.length-1}else if(H<0){if(!yt)return-1;H=0}if(typeof P=="string"&&(P=f.from(P,ft)),f.isBuffer(P))return P.length===0?-1:$(y,P,H,ft,yt);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?yt?Uint8Array.prototype.indexOf.call(y,P,H):Uint8Array.prototype.lastIndexOf.call(y,P,H):$(y,[P],H,ft,yt);throw new TypeError("val must be string, number or Buffer")}function $(y,P,H,ft,yt){let bt,xt=1,zt=y.length,ie=P.length;if(ft!==void 0&&((ft=String(ft).toLowerCase())==="ucs2"||ft==="ucs-2"||ft==="utf16le"||ft==="utf-16le")){if(y.length<2||P.length<2)return-1;xt=2,zt/=2,ie/=2,H/=2}function F(R,N){return xt===1?R[N]:R.readUInt16BE(N*xt)}if(yt){let R=-1;for(bt=H;bt<zt;bt++)if(F(y,bt)===F(P,R===-1?0:bt-R)){if(R===-1&&(R=bt),bt-R+1===ie)return R*xt}else R!==-1&&(bt-=bt-R),R=-1}else for(H+ie>zt&&(H=zt-ie),bt=H;bt>=0;bt--){let R=!0;for(let N=0;N<ie;N++)if(F(y,bt+N)!==F(P,N)){R=!1;break}if(R)return bt}return-1}function nt(y,P,H,ft){H=Number(H)||0;const yt=y.length-H;ft?(ft=Number(ft))>yt&&(ft=yt):ft=yt;const bt=P.length;let xt;for(ft>bt/2&&(ft=bt/2),xt=0;xt<ft;++xt){const zt=parseInt(P.substr(2*xt,2),16);if(Oe(zt))return xt;y[H+xt]=zt}return xt}function pt(y,P,H,ft){return jt(me(P,y.length-H),y,H,ft)}function lt(y,P,H,ft){return jt((function(yt){const bt=[];for(let xt=0;xt<yt.length;++xt)bt.push(255&yt.charCodeAt(xt));return bt})(P),y,H,ft)}function St(y,P,H,ft){return jt(Ee(P),y,H,ft)}function At(y,P,H,ft){return jt((function(yt,bt){let xt,zt,ie;const F=[];for(let R=0;R<yt.length&&!((bt-=2)<0);++R)xt=yt.charCodeAt(R),zt=xt>>8,ie=xt%256,F.push(ie),F.push(zt);return F})(P,y.length-H),y,H,ft)}function st(y,P,H){return P===0&&H===y.length?e.fromByteArray(y):e.fromByteArray(y.slice(P,H))}function dt(y,P,H){H=Math.min(y.length,H);const ft=[];let yt=P;for(;yt<H;){const bt=y[yt];let xt=null,zt=bt>239?4:bt>223?3:bt>191?2:1;if(yt+zt<=H){let ie,F,R,N;switch(zt){case 1:bt<128&&(xt=bt);break;case 2:ie=y[yt+1],(192&ie)==128&&(N=(31&bt)<<6|63&ie,N>127&&(xt=N));break;case 3:ie=y[yt+1],F=y[yt+2],(192&ie)==128&&(192&F)==128&&(N=(15&bt)<<12|(63&ie)<<6|63&F,N>2047&&(N<55296||N>57343)&&(xt=N));break;case 4:ie=y[yt+1],F=y[yt+2],R=y[yt+3],(192&ie)==128&&(192&F)==128&&(192&R)==128&&(N=(15&bt)<<18|(63&ie)<<12|(63&F)<<6|63&R,N>65535&&N<1114112&&(xt=N))}}xt===null?(xt=65533,zt=1):xt>65535&&(xt-=65536,ft.push(xt>>>10&1023|55296),xt=56320|1023&xt),ft.push(xt),yt+=zt}return(function(bt){const xt=bt.length;if(xt<=vt)return String.fromCharCode.apply(String,bt);let zt="",ie=0;for(;ie<xt;)zt+=String.fromCharCode.apply(String,bt.slice(ie,ie+=vt));return zt})(ft)}f.TYPED_ARRAY_SUPPORT=(function(){try{const y=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(y,P),y.foo()===42}catch{return!1}})(),f.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(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(y,P,H){return p(y,P,H)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(y,P,H){return(function(ft,yt,bt){return S(ft),ft<=0?d(ft):yt!==void 0?typeof bt=="string"?d(ft).fill(yt,bt):d(ft).fill(yt):d(ft)})(y,P,H)},f.allocUnsafe=function(y){return x(y)},f.allocUnsafeSlow=function(y){return x(y)},f.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==f.prototype},f.compare=function(y,P){if(Ne(y,Uint8Array)&&(y=f.from(y,y.offset,y.byteLength)),Ne(P,Uint8Array)&&(P=f.from(P,P.offset,P.byteLength)),!f.isBuffer(y)||!f.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===P)return 0;let H=y.length,ft=P.length;for(let yt=0,bt=Math.min(H,ft);yt<bt;++yt)if(y[yt]!==P[yt]){H=y[yt],ft=P[yt];break}return H<ft?-1:ft<H?1:0},f.isEncoding=function(y){switch(String(y).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}},f.concat=function(y,P){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return f.alloc(0);let H;if(P===void 0)for(P=0,H=0;H<y.length;++H)P+=y[H].length;const ft=f.allocUnsafe(P);let yt=0;for(H=0;H<y.length;++H){let bt=y[H];if(Ne(bt,Uint8Array))yt+bt.length>ft.length?(f.isBuffer(bt)||(bt=f.from(bt)),bt.copy(ft,yt)):Uint8Array.prototype.set.call(ft,bt,yt);else{if(!f.isBuffer(bt))throw new TypeError('"list" argument must be an Array of Buffers');bt.copy(ft,yt)}yt+=bt.length}return ft},f.byteLength=M,f.prototype._isBuffer=!0,f.prototype.swap16=function(){const y=this.length;if(y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<y;P+=2)G(this,P,P+1);return this},f.prototype.swap32=function(){const y=this.length;if(y%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<y;P+=4)G(this,P,P+3),G(this,P+1,P+2);return this},f.prototype.swap64=function(){const y=this.length;if(y%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<y;P+=8)G(this,P,P+7),G(this,P+1,P+6),G(this,P+2,P+5),G(this,P+3,P+4);return this},f.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?dt(this,0,y):V.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(y){if(!f.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y||f.compare(this,y)===0},f.prototype.inspect=function(){let y="";const P=t.IS;return y=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(y+=" ... "),"<Buffer "+y+">"},i&&(f.prototype[i]=f.prototype.inspect),f.prototype.compare=function(y,P,H,ft,yt){if(Ne(y,Uint8Array)&&(y=f.from(y,y.offset,y.byteLength)),!f.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(P===void 0&&(P=0),H===void 0&&(H=y?y.length:0),ft===void 0&&(ft=0),yt===void 0&&(yt=this.length),P<0||H>y.length||ft<0||yt>this.length)throw new RangeError("out of range index");if(ft>=yt&&P>=H)return 0;if(ft>=yt)return-1;if(P>=H)return 1;if(this===y)return 0;let bt=(yt>>>=0)-(ft>>>=0),xt=(H>>>=0)-(P>>>=0);const zt=Math.min(bt,xt),ie=this.slice(ft,yt),F=y.slice(P,H);for(let R=0;R<zt;++R)if(ie[R]!==F[R]){bt=ie[R],xt=F[R];break}return bt<xt?-1:xt<bt?1:0},f.prototype.includes=function(y,P,H){return this.indexOf(y,P,H)!==-1},f.prototype.indexOf=function(y,P,H){return J(this,y,P,H,!0)},f.prototype.lastIndexOf=function(y,P,H){return J(this,y,P,H,!1)},f.prototype.write=function(y,P,H,ft){if(P===void 0)ft="utf8",H=this.length,P=0;else if(H===void 0&&typeof P=="string")ft=P,H=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P>>>=0,isFinite(H)?(H>>>=0,ft===void 0&&(ft="utf8")):(ft=H,H=void 0)}const yt=this.length-P;if((H===void 0||H>yt)&&(H=yt),y.length>0&&(H<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");ft||(ft="utf8");let bt=!1;for(;;)switch(ft){case"hex":return nt(this,y,P,H);case"utf8":case"utf-8":return pt(this,y,P,H);case"ascii":case"latin1":case"binary":return lt(this,y,P,H);case"base64":return St(this,y,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,y,P,H);default:if(bt)throw new TypeError("Unknown encoding: "+ft);ft=(""+ft).toLowerCase(),bt=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const vt=4096;function wt(y,P,H){let ft="";H=Math.min(y.length,H);for(let yt=P;yt<H;++yt)ft+=String.fromCharCode(127&y[yt]);return ft}function D(y,P,H){let ft="";H=Math.min(y.length,H);for(let yt=P;yt<H;++yt)ft+=String.fromCharCode(y[yt]);return ft}function h(y,P,H){const ft=y.length;(!P||P<0)&&(P=0),(!H||H<0||H>ft)&&(H=ft);let yt="";for(let bt=P;bt<H;++bt)yt+=Ie[y[bt]];return yt}function I(y,P,H){const ft=y.slice(P,H);let yt="";for(let bt=0;bt<ft.length-1;bt+=2)yt+=String.fromCharCode(ft[bt]+256*ft[bt+1]);return yt}function U(y,P,H){if(y%1!=0||y<0)throw new RangeError("offset is not uint");if(y+P>H)throw new RangeError("Trying to access beyond buffer length")}function j(y,P,H,ft,yt,bt){if(!f.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>yt||P<bt)throw new RangeError('"value" argument is out of bounds');if(H+ft>y.length)throw new RangeError("Index out of range")}function X(y,P,H,ft,yt){ht(P,ft,yt,y,H,7);let bt=Number(P&BigInt(4294967295));y[H++]=bt,bt>>=8,y[H++]=bt,bt>>=8,y[H++]=bt,bt>>=8,y[H++]=bt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,H}function et(y,P,H,ft,yt){ht(P,ft,yt,y,H,7);let bt=Number(P&BigInt(4294967295));y[H+7]=bt,bt>>=8,y[H+6]=bt,bt>>=8,y[H+5]=bt,bt>>=8,y[H+4]=bt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H+3]=xt,xt>>=8,y[H+2]=xt,xt>>=8,y[H+1]=xt,xt>>=8,y[H]=xt,H+8}function ut(y,P,H,ft,yt,bt){if(H+ft>y.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function Y(y,P,H,ft,yt){return P=+P,H>>>=0,yt||ut(y,0,H,4),o.write(y,P,H,ft,23,4),H+4}function g(y,P,H,ft,yt){return P=+P,H>>>=0,yt||ut(y,0,H,8),o.write(y,P,H,ft,52,8),H+8}f.prototype.slice=function(y,P){const H=this.length;(y=~~y)<0?(y+=H)<0&&(y=0):y>H&&(y=H),(P=P===void 0?H:~~P)<0?(P+=H)<0&&(P=0):P>H&&(P=H),P<y&&(P=y);const ft=this.subarray(y,P);return Object.setPrototypeOf(ft,f.prototype),ft},f.prototype.readUintLE=f.prototype.readUIntLE=function(y,P,H){y>>>=0,P>>>=0,H||U(y,P,this.length);let ft=this[y],yt=1,bt=0;for(;++bt<P&&(yt*=256);)ft+=this[y+bt]*yt;return ft},f.prototype.readUintBE=f.prototype.readUIntBE=function(y,P,H){y>>>=0,P>>>=0,H||U(y,P,this.length);let ft=this[y+--P],yt=1;for(;P>0&&(yt*=256);)ft+=this[y+--P]*yt;return ft},f.prototype.readUint8=f.prototype.readUInt8=function(y,P){return y>>>=0,P||U(y,1,this.length),this[y]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(y,P){return y>>>=0,P||U(y,2,this.length),this[y]|this[y+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(y,P){return y>>>=0,P||U(y,2,this.length),this[y]<<8|this[y+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(y,P){return y>>>=0,P||U(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+16777216*this[y+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(y,P){return y>>>=0,P||U(y,4,this.length),16777216*this[y]+(this[y+1]<<16|this[y+2]<<8|this[y+3])},f.prototype.readBigUInt64LE=en((function(y){It(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ft(y,this.length-8);const ft=P+256*this[++y]+65536*this[++y]+this[++y]*2**24,yt=this[++y]+256*this[++y]+65536*this[++y]+H*2**24;return BigInt(ft)+(BigInt(yt)<<BigInt(32))})),f.prototype.readBigUInt64BE=en((function(y){It(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ft(y,this.length-8);const ft=P*2**24+65536*this[++y]+256*this[++y]+this[++y],yt=this[++y]*2**24+65536*this[++y]+256*this[++y]+H;return(BigInt(ft)<<BigInt(32))+BigInt(yt)})),f.prototype.readIntLE=function(y,P,H){y>>>=0,P>>>=0,H||U(y,P,this.length);let ft=this[y],yt=1,bt=0;for(;++bt<P&&(yt*=256);)ft+=this[y+bt]*yt;return yt*=128,ft>=yt&&(ft-=Math.pow(2,8*P)),ft},f.prototype.readIntBE=function(y,P,H){y>>>=0,P>>>=0,H||U(y,P,this.length);let ft=P,yt=1,bt=this[y+--ft];for(;ft>0&&(yt*=256);)bt+=this[y+--ft]*yt;return yt*=128,bt>=yt&&(bt-=Math.pow(2,8*P)),bt},f.prototype.readInt8=function(y,P){return y>>>=0,P||U(y,1,this.length),128&this[y]?-1*(255-this[y]+1):this[y]},f.prototype.readInt16LE=function(y,P){y>>>=0,P||U(y,2,this.length);const H=this[y]|this[y+1]<<8;return 32768&H?4294901760|H:H},f.prototype.readInt16BE=function(y,P){y>>>=0,P||U(y,2,this.length);const H=this[y+1]|this[y]<<8;return 32768&H?4294901760|H:H},f.prototype.readInt32LE=function(y,P){return y>>>=0,P||U(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},f.prototype.readInt32BE=function(y,P){return y>>>=0,P||U(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},f.prototype.readBigInt64LE=en((function(y){It(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ft(y,this.length-8);const ft=this[y+4]+256*this[y+5]+65536*this[y+6]+(H<<24);return(BigInt(ft)<<BigInt(32))+BigInt(P+256*this[++y]+65536*this[++y]+this[++y]*2**24)})),f.prototype.readBigInt64BE=en((function(y){It(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ft(y,this.length-8);const ft=(P<<24)+65536*this[++y]+256*this[++y]+this[++y];return(BigInt(ft)<<BigInt(32))+BigInt(this[++y]*2**24+65536*this[++y]+256*this[++y]+H)})),f.prototype.readFloatLE=function(y,P){return y>>>=0,P||U(y,4,this.length),o.read(this,y,!0,23,4)},f.prototype.readFloatBE=function(y,P){return y>>>=0,P||U(y,4,this.length),o.read(this,y,!1,23,4)},f.prototype.readDoubleLE=function(y,P){return y>>>=0,P||U(y,8,this.length),o.read(this,y,!0,52,8)},f.prototype.readDoubleBE=function(y,P){return y>>>=0,P||U(y,8,this.length),o.read(this,y,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(y,P,H,ft){y=+y,P>>>=0,H>>>=0,ft||j(this,y,P,H,Math.pow(2,8*H)-1,0);let yt=1,bt=0;for(this[P]=255&y;++bt<H&&(yt*=256);)this[P+bt]=y/yt&255;return P+H},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(y,P,H,ft){y=+y,P>>>=0,H>>>=0,ft||j(this,y,P,H,Math.pow(2,8*H)-1,0);let yt=H-1,bt=1;for(this[P+yt]=255&y;--yt>=0&&(bt*=256);)this[P+yt]=y/bt&255;return P+H},f.prototype.writeUint8=f.prototype.writeUInt8=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,1,255,0),this[P]=255&y,P+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,2,65535,0),this[P]=255&y,this[P+1]=y>>>8,P+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,2,65535,0),this[P]=y>>>8,this[P+1]=255&y,P+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,4,4294967295,0),this[P+3]=y>>>24,this[P+2]=y>>>16,this[P+1]=y>>>8,this[P]=255&y,P+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,4,4294967295,0),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},f.prototype.writeBigUInt64LE=en((function(y,P=0){return X(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))})),f.prototype.writeBigUInt64BE=en((function(y,P=0){return et(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))})),f.prototype.writeIntLE=function(y,P,H,ft){if(y=+y,P>>>=0,!ft){const zt=Math.pow(2,8*H-1);j(this,y,P,H,zt-1,-zt)}let yt=0,bt=1,xt=0;for(this[P]=255&y;++yt<H&&(bt*=256);)y<0&&xt===0&&this[P+yt-1]!==0&&(xt=1),this[P+yt]=(y/bt|0)-xt&255;return P+H},f.prototype.writeIntBE=function(y,P,H,ft){if(y=+y,P>>>=0,!ft){const zt=Math.pow(2,8*H-1);j(this,y,P,H,zt-1,-zt)}let yt=H-1,bt=1,xt=0;for(this[P+yt]=255&y;--yt>=0&&(bt*=256);)y<0&&xt===0&&this[P+yt+1]!==0&&(xt=1),this[P+yt]=(y/bt|0)-xt&255;return P+H},f.prototype.writeInt8=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,1,127,-128),y<0&&(y=255+y+1),this[P]=255&y,P+1},f.prototype.writeInt16LE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,2,32767,-32768),this[P]=255&y,this[P+1]=y>>>8,P+2},f.prototype.writeInt16BE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,2,32767,-32768),this[P]=y>>>8,this[P+1]=255&y,P+2},f.prototype.writeInt32LE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,4,2147483647,-2147483648),this[P]=255&y,this[P+1]=y>>>8,this[P+2]=y>>>16,this[P+3]=y>>>24,P+4},f.prototype.writeInt32BE=function(y,P,H){return y=+y,P>>>=0,H||j(this,y,P,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},f.prototype.writeBigInt64LE=en((function(y,P=0){return X(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),f.prototype.writeBigInt64BE=en((function(y,P=0){return et(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),f.prototype.writeFloatLE=function(y,P,H){return Y(this,y,P,!0,H)},f.prototype.writeFloatBE=function(y,P,H){return Y(this,y,P,!1,H)},f.prototype.writeDoubleLE=function(y,P,H){return g(this,y,P,!0,H)},f.prototype.writeDoubleBE=function(y,P,H){return g(this,y,P,!1,H)},f.prototype.copy=function(y,P,H,ft){if(!f.isBuffer(y))throw new TypeError("argument should be a Buffer");if(H||(H=0),ft||ft===0||(ft=this.length),P>=y.length&&(P=y.length),P||(P=0),ft>0&&ft<H&&(ft=H),ft===H||y.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("sourceEnd out of bounds");ft>this.length&&(ft=this.length),y.length-P<ft-H&&(ft=y.length-P+H);const yt=ft-H;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,H,ft):Uint8Array.prototype.set.call(y,this.subarray(H,ft),P),yt},f.prototype.fill=function(y,P,H,ft){if(typeof y=="string"){if(typeof P=="string"?(ft=P,P=0,H=this.length):typeof H=="string"&&(ft=H,H=this.length),ft!==void 0&&typeof ft!="string")throw new TypeError("encoding must be a string");if(typeof ft=="string"&&!f.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);if(y.length===1){const bt=y.charCodeAt(0);(ft==="utf8"&&bt<128||ft==="latin1")&&(y=bt)}}else typeof y=="number"?y&=255:typeof y=="boolean"&&(y=Number(y));if(P<0||this.length<P||this.length<H)throw new RangeError("Out of range index");if(H<=P)return this;let yt;if(P>>>=0,H=H===void 0?this.length:H>>>0,y||(y=0),typeof y=="number")for(yt=P;yt<H;++yt)this[yt]=y;else{const bt=f.isBuffer(y)?y:f.from(y,ft),xt=bt.length;if(xt===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(yt=0;yt<H-P;++yt)this[yt+P]=bt[yt%xt]}return this};const E={};function K(y,P,H){E[y]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(ft){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ft,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}function Z(y){let P="",H=y.length;const ft=y[0]==="-"?1:0;for(;H>=ft+4;H-=3)P=`_${y.slice(H-3,H)}${P}`;return`${y.slice(0,H)}${P}`}function ht(y,P,H,ft,yt,bt){if(y>H||y<P){const xt=typeof P=="bigint"?"n":"";let zt;throw zt=P===0||P===BigInt(0)?`>= 0${xt} and < 2${xt} ** ${8*(bt+1)}${xt}`:`>= -(2${xt} ** ${8*(bt+1)-1}${xt}) and < 2 ** ${8*(bt+1)-1}${xt}`,new E.ERR_OUT_OF_RANGE("value",zt,y)}(function(xt,zt,ie){It(zt,"offset"),xt[zt]!==void 0&&xt[zt+ie]!==void 0||Ft(zt,xt.length-(ie+1))})(ft,yt,bt)}function It(y,P){if(typeof y!="number")throw new E.ERR_INVALID_ARG_TYPE(P,"number",y)}function Ft(y,P,H){throw Math.floor(y)!==y?(It(y,H),new E.ERR_OUT_OF_RANGE("offset","an integer",y)):P<0?new E.ERR_BUFFER_OUT_OF_BOUNDS:new E.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,y)}K("ERR_BUFFER_OUT_OF_BOUNDS",(function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),K("ERR_INVALID_ARG_TYPE",(function(y,P){return`The "${y}" argument must be of type number. Received type ${typeof P}`}),TypeError),K("ERR_OUT_OF_RANGE",(function(y,P,H){let ft=`The value of "${y}" is out of range.`,yt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?yt=Z(String(H)):typeof H=="bigint"&&(yt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(yt=Z(yt)),yt+="n"),ft+=` It must be ${P}. Received ${yt}`,ft}),RangeError);const Kt=/[^+/0-9A-Za-z-_]/g;function me(y,P){let H;P=P||1/0;const ft=y.length;let yt=null;const bt=[];for(let xt=0;xt<ft;++xt){if(H=y.charCodeAt(xt),H>55295&&H<57344){if(!yt){if(H>56319){(P-=3)>-1&&bt.push(239,191,189);continue}if(xt+1===ft){(P-=3)>-1&&bt.push(239,191,189);continue}yt=H;continue}if(H<56320){(P-=3)>-1&&bt.push(239,191,189),yt=H;continue}H=65536+(yt-55296<<10|H-56320)}else yt&&(P-=3)>-1&&bt.push(239,191,189);if(yt=null,H<128){if((P-=1)<0)break;bt.push(H)}else if(H<2048){if((P-=2)<0)break;bt.push(H>>6|192,63&H|128)}else if(H<65536){if((P-=3)<0)break;bt.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;bt.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return bt}function Ee(y){return e.toByteArray((function(P){if((P=(P=P.split("=")[0]).trim().replace(Kt,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P})(y))}function jt(y,P,H,ft){let yt;for(yt=0;yt<ft&&!(yt+H>=P.length||yt>=y.length);++yt)P[yt+H]=y[yt];return yt}function Ne(y,P){return y instanceof P||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===P.name}function Oe(y){return y!=y}const Ie=(function(){const y="0123456789abcdef",P=new Array(256);for(let H=0;H<16;++H){const ft=16*H;for(let yt=0;yt<16;++yt)P[ft+yt]=y[H]+y[yt]}return P})();function en(y){return typeof BigInt>"u"?Be:y}function Be(){throw new Error("BigInt not supported")}},527:function(r,t,n){var e=n(188),o=n(539),i=n(682);for(var c in e)e[c]=i(d(c));function d(f){return e[f]}e._api=o,r.exports=e},539:function(r){r.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(r){r.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(r,t,n){var e=n(539),o={};function i(f){try{return d(f),!0}catch{return!1}}function c(f){try{return d(f)}catch{return!1}}function d(f){return new Function(f)()}o._api=e,r.exports=function f(p){if(p==="class"&&(p="classes"),o._api[p].dependencies){for(var S=0;S<o._api[p].dependencies.length;S++)if(f(o._api[p].dependencies[S])===!1)return!1}return o._api[p].passes?i(o._api[p].passes):o._api[p].fails?!i(o._api[p].fails):o._api[p].is?c(o._api[p].is):o._api[p].not?!c(o._api[p].not):void 0}},251:function(r,t){t.read=function(n,e,o,i,c){var d,f,p=8*c-i-1,S=(1<<p)-1,x=S>>1,T=-7,k=o?c-1:0,C=o?-1:1,M=n[e+k];for(k+=C,d=M&(1<<-T)-1,M>>=-T,T+=p;T>0;d=256*d+n[e+k],k+=C,T-=8);for(f=d&(1<<-T)-1,d>>=-T,T+=i;T>0;f=256*f+n[e+k],k+=C,T-=8);if(d===0)d=1-x;else{if(d===S)return f?NaN:1/0*(M?-1:1);f+=Math.pow(2,i),d-=x}return(M?-1:1)*f*Math.pow(2,d-i)},t.write=function(n,e,o,i,c,d){var f,p,S,x=8*d-c-1,T=(1<<x)-1,k=T>>1,C=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:d-1,V=i?1:-1,G=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,f=T):(f=Math.floor(Math.log(e)/Math.LN2),e*(S=Math.pow(2,-f))<1&&(f--,S*=2),(e+=f+k>=1?C/S:C*Math.pow(2,1-k))*S>=2&&(f++,S/=2),f+k>=T?(p=0,f=T):f+k>=1?(p=(e*S-1)*Math.pow(2,c),f+=k):(p=e*Math.pow(2,k-1)*Math.pow(2,c),f=0));c>=8;n[o+M]=255&p,M+=V,p/=256,c-=8);for(f=f<<c|p,x+=c;x>0;n[o+M]=255&f,M+=V,f/=256,x-=8);n[o+M-V]|=128*G}},943:function(r){function t(n){this.message=n}t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(n){var e=String(n).replace(/=+$/,"");if(e.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,c=0,d=0,f="";i=e.charAt(d++);~i&&(o=c%4?64*o+i:i,c++%4)?f+=String.fromCharCode(255&o>>(-2*c&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return f}},863:function(r,t,n){var e=n(943);r.exports=function(o){var i=o.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return(function(c){return decodeURIComponent(e(c).replace(/(.)/g,(function(d,f){var p=f.charCodeAt(0).toString(16).toUpperCase();return p.length<2&&(p="0"+p),"%"+p})))})(i)}catch{return e(i)}}},127:function(r,t,n){var e=n(863);function o(i){this.message=i}o.prototype=new Error,o.prototype.name="InvalidTokenError",r.exports=function(i,c){if(typeof i!="string")throw new o("Invalid token specified");var d=(c=c||{}).header===!0?0:1;try{return JSON.parse(e(i.split(".")[d]))}catch(f){throw new o("Invalid token specified: "+f.message)}},r.exports.InvalidTokenError=o},471:function(r){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);r.exports=function(e,o){var i=o||0,c=t;return[c[e[i++]],c[e[i++]],c[e[i++]],c[e[i++]],"-",c[e[i++]],c[e[i++]],"-",c[e[i++]],c[e[i++]],"-",c[e[i++]],c[e[i++]],"-",c[e[i++]],c[e[i++]],c[e[i++]],c[e[i++]],c[e[i++]],c[e[i++]]].join("")}},814:function(r){var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);r.exports=function(){return t(n),n}}else{var e=new Array(16);r.exports=function(){for(var o,i=0;i<16;i++)3&i||(o=4294967296*Math.random()),e[i]=o>>>((3&i)<<3)&255;return e}}},550:function(r,t,n){var e=n(814),o=n(471);r.exports=function(i,c,d){var f=c&&d||0;typeof i=="string"&&(c=i==="binary"?new Array(16):null,i=null);var p=(i=i||{}).random||(i.rng||e)();if(p[6]=15&p[6]|64,p[8]=63&p[8]|128,c)for(var S=0;S<16;++S)c[f+S]=p[S];return c||o(p)}},723:function(r){r.exports={version:"1.1.92",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},616:function(r,t,n){var e=n(287).hp;r.exports={toArray:function(o,i){if(!o||o.length!==36)return o;for(var c="",d=i?"0":"1",f=0;f<36;f+=1)c+=f>=26&&f<30?d:o[f];var p=(function(T){for(var k=255,C=255,M=0,V=T.length;V;){var G=V>20?20:V;V-=G;do C+=k+=T[M++];while(--G);k=(255&k)+(k>>8),C=(255&C)+(C>>8)}return((C=(255&C)+(C>>8))<<8|(k=(255&k)+(k>>8))).toString(16)})(e.from(c));if(p){var S="";if(p.length===4)S+=p;else if(p.length<4){for(var x=0;x<4-p.length;x+=1)S+=d;S+=p}else S+=p.slice(-4)}return c.substring(0,26)+S+c.substring(26+S.length)}}},108:function(r){function t(){this.listeners={}}t.prototype.addEventListener=function(n,e){n in this.listeners||(this.listeners[n]=[]),this.listeners[n].push(e)},t.prototype.removeEventListener=function(n,e){if(n in this.listeners){for(var o=this.listeners[n],i=0,c=o.length;i<c;i++)if(o[i]===e)return void o.splice(i,1)}},t.prototype.dispatchEvent=function(n){if(!(n.type in this.listeners))return!0;for(var e=this.listeners[n.type].slice(),o=0,i=e.length;o<i;o++)e[o].call(this,n);return!n.defaultPrevented},r.exports=t},1:function(r){var t=null,n=null,e=0;function o(i,c){return encodeURIComponent(i)+"="+encodeURIComponent(c)}r.exports={init:function(i,c){t=i.errorServerUrl+"/reportSdkMsg",n=c.appId,e=typeof c.logMessageRate=="number"?c.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>e)){var c=t;c+="?"+o("appId",n),c+="&"+o("msg",JSON.stringify(i));var d=new Image;d.onerror=function(){},d.src=c}}}},611:function(r){var t=(function(){function n(o,i){this.method=o,this.url=i,this.headers={},this.data=null,this.timeout=1e4}n.prototype.set=function(o,i){if(typeof o=="object")for(var c in o)o.hasOwnProperty(c)&&(this.headers[c]=o[c]);else this.headers[o]=i;return this},n.prototype.send=function(o){return this.data=o,this},n.prototype.timeout=function(o){return this.timeout=o,this},n.prototype.end=function(o){var i=this,c={method:this.method,headers:this.headers};function d(T,k){return{ok:!1,status:k?k.status:400,response:T instanceof Error?T.message:T}}if(this.data&&(c.body=JSON.stringify(this.data)),typeof fetch=="function"){var f,p=fetch(this.url,c).then((function(T){if(!T.ok)throw{response:T,message:T.statusText||"HTTP error "+T.status};return(function(k){var C=k.headers.get("content-type");return C&&C.includes("application/json")?k.json().then((function(M){return{ok:k.ok,status:k.status,body:M}})):k.text().then((function(M){return{ok:k.ok,status:k.status,body:M}}))})(T)}));p.catch((function(){}));var S=new Promise((function(T,k){f=setTimeout((function(){k(new Error("Request timeout"))}),i.timeout)}));Promise.race([p,S]).then((function(T){clearTimeout(f),T.ok?o(null,T):o(d(T.response,T))})).catch((function(T){clearTimeout(f),o(d(T.message,T&&T.response))}))}else{var x=new XMLHttpRequest;x.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(T){x.setRequestHeader(T,i.headers[T])})),x.timeout=this.timeout,x.onload=function(){var T={ok:x.status>=200&&x.status<300,status:x.status,body:x.responseText};try{T.body=JSON.parse(x.responseText)}catch{}T.ok?o(null,T):o(d("HTTP error "+x.status,T))},x.onerror=function(){o(d("Error",{status:400}))},x.ontimeout=function(){o(d("Timeout",{status:408}))},x.send(this.data?JSON.stringify(this.data):null)}};var e={};return["get","post","put","delete"].forEach((function(o){e[o]=function(i){return new n(o,i)}})),e})();r.exports=t},776:function(r,t,n){var e,o,i=n(611),c=n(723),d=n(884),f=c.serverUrl;function p(){e=e||{},o!==void 0&&(e[c.headers.sessionId]=o);var S={Accept:"application/json","Content-Type":"application/json"};return Object.keys(e).forEach((function(x){e[x]!==void 0&&(S[x]=e[x])})),S}r.exports={setSessionId:function(S){o=S},makeRequest:function(S,x){var T=S.path,k=S.data,C=S.method;(function M(V){i[C](V+"/"+T).set(p()).send(k).end((function(G,J){if(G){if(V!==c.serverUrl)return void M(c.serverUrl);d.isFunction(x)&&x({ok:!1,status:G.status,response:G.response})}else d.isFunction(x)&&x(null,{ok:J.ok,status:J.status,response:J.body})}))})(f)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:p,init:function(S,x){(function(T){e=T})(S),x.eventsReportUrl&&typeof x.eventsReportUrl=="string"&&(f=d.normalizePath(x.eventsReportUrl))}}},13:function(r,t,n){var e,o=n(723),i="getItem";function c(f,p){f&&f.contentWindow.postMessage(p,"*")}function d(f,p,S){f.removeEventListener?f.removeEventListener(p,S,!1):f.attachEvent&&f.detachEvent("on"+p,S)}r.exports={init:function(f){var p,S=(p=!1,function(){p||(p=!0,f())});(e=document.createElement("iframe")).id="storageIframe",e.width=e.height=e.frameBorder=0,e.style.display="none",e.setAttribute("src",o.storageIframeUrl),e.onload=S,e.onerror=S,document.body.appendChild(e),window.setTimeout(S,1e4)},getKey:function(f,p){var S,x,T,k,C,M;e||p(),S=window,x="message",k=function V(G){if(G.data&&typeof G.data=="string")try{var J=JSON.parse(G.data);if(J.command===i){var $=J.response;d(window,"message",V),p($)}}catch{d(window,"message",V),p()}},C=p,M=!1,window.setTimeout((function(){M||(M=!0,C())}),5e3),T=function(V){M||(M=!0,k(V))},S.addEventListener?S.addEventListener(x,T,!1):S.attachEvent&&S.attachEvent("on"+x,T),c(e,JSON.stringify({command:i,key:f}))},setKey:function(f,p){c(e,JSON.stringify({command:"setItem",key:f,value:p}))},cleanup:function(){e&&e.parentElement&&e.parentElement.removeChild&&(e.parentElement.removeChild(e),e=null)}}},528:function(r){var t,n={setItem:function(f,p){this[f]=p},getItem:function(f){return this[f]},removeItem:function(f){delete this[f]}};function e(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function o(){return t===void 0&&(t=e()),t?localStorage:n}function i(f,p){o().setItem(f,p)}function c(f){return o().getItem(f)}function d(f){return o().removeItem(f)}r.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:c,getBackwardCompatabilityItem:function(f,p){var S=c(f);return!S&&p&&(S=c(p))&&(i(f,S),d(p)),S},removeItem:d,hasAccessToLocalStorage:e,getSessionItem:function(f){try{return sessionStorage.getItem(f)}catch{return n.getItem(f)}},setSessionItem:function(f,p){try{return sessionStorage.setItem(f,p)}catch{return n.setItem(f,p)}}}},884:function(r){var t="nsure-app-cid";function n(e){var o=e;return o&&o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1)),o&&!/^https?:\/\//i.test(o)&&(o="https://"+o),o}r.exports={isFunction:function(e){return typeof e=="function"},loadScript:function(e,o){var i=!1,c=document.createElement("script");function d(){i||(i=!0,o())}c.onload=d,c.onreadystatechange=function(){i||c.readyState!=="complete"||d()},c.onerror=function(){i||(i=!0,o("Error loading script"))},c.src=e,document.body.appendChild(c)},loadImage:function(e){var o=document.createElement("img");o.src=e,o.style.height=0,o.style.width=0,o.style.display="none",o.style.visibility="hidden",document.body.appendChild(o)},randomInt:function(e,o){var i,c=o-e+1;return Math.floor(((i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?i(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*c+e)},isValidDate:function(e){return e instanceof Date&&!isNaN(e)},getAppContextId:function(){try{var e=sessionStorage.getItem(t);e?sessionStorage.removeItem(t):e=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(o=e,function(){try{sessionStorage.setItem(t,o)}catch{}}))}catch{e=0}var o;return e},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:n,getConfigBaseUrls:function(e,o){var i=null;if(typeof e.configBaseUrl=="string"&&e.configBaseUrl.length>0){var c=o.coreConfigFileUrl.indexOf("/core-config/"),d=c>0?o.coreConfigFileUrl.substring(c):"/core-config/config.json";i=n(e.configBaseUrl)+d}return{mainConfigBaseUrl:i||o.coreConfigFileUrl,altConfigBaseUrl:i===o.coreConfigFileUrl?null:o.coreConfigFileUrl}}}},543:function(r){var t="f8ad0f9b-",n="ns_install_reported",e=t+n,o=t+"ns_reportedFpInSession";r.exports={webType:"Web",oldInstallEventReportedKeyName:n,installEventReportedKeyName:e,fingerprintReportedInSessionKey:o,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(r){r.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(r){r.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(r,t,n){var e=n(723),o=n(776),i=n(387),c=n(733),d=n(472),f=n(376),p=n(120),S=n(142),x=n(636),T=n(496),k=n(1),C=n(336);r.exports={init:function(M){var V=M.deviceId,G=M.linkedDevices,J={};J[e.headers.appId]=M.appId,J[e.headers.partnerId]=M.partnerId,J[e.headers.sdkClientVersion]=e.version,J[e.headers.sdkApiVersion]=e.sdkApiVersion,J[e.headers.sdkClientType]=e.sdkClientType,J[e.headers.appContextId]=M.appContextId,o.init(J,M),i.addMetadataProps(M),k.init(e,M),i.reportInitEvent(V),T.init(M),C.init(M),c.installSdk(M,(function($){$||f.manageFingerprint(V,!0)})),c.reportLinkDevices(V,G),d.manageSessionId({deviceId:V,initModuleConfig:M}),p.manageDomEvents(V),S.manageKeepAlive({deviceId:V}),x.reportVersionUpgrade({deviceId:V,initModuleVersion:M.clientVersion,coreModuleVersion:e.version})}}},143:function(r,t,n){var e=n(108),o=n(23).oneMinute,i=n(298);function c(){e.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function d(f){e.call(this),this.activityServiceId=f}c.prototype=Object.create(e.prototype),c.prototype.constructor=c,c.prototype.observe=function(){var f=this;Object.keys(this.activityEvents).forEach((function(p){document.addEventListener(p,f.activityEvents[p]=function(){f.activityHandler()})}))},c.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},c.prototype.stopActivityListeners=function(){var f=this;Object.keys(this.activityEvents).forEach((function(p){document.removeEventListener(p,f.activityEvents[p])}))},d.prototype=Object.create(e.prototype),d.prototype.constructor=d,d.prototype.trackInactivity=function(f){var p,S=new c,x=this,T=!1;function k(){T||(clearTimeout(p),setTimeout((function(){x.trackInactivity(f)}),o))}S.addEventListener(i.activityEvent,k),S.observe(),p=setTimeout((function(){T=!0,S.stopActivityListeners(),S.removeEventListener(i.activityEvent,k),x.dispatchEvent(new Event(i.inactivityEvent))}),f)},r.exports=d},496:function(r,t,n){var e,o=n(120),i=n(776),c=n(376),d=n(23),f=n(723),p=n(38),S=n(543),x=n(336),T=n(884),k=[],C=[],M=null,V=6e4,G=5e3,J=null,$=T.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),nt=0,pt=null,lt=Date.now(),St=0,At=null,st=!1,dt=!1,vt=!1,wt=!1,D=[];function h(){C=k,k=[],j(),I()}function I(){M&&clearTimeout(M),M=setTimeout(h,V)}function U(){var Z={device:{id:e,type:S.webType},metadata:{clientRequestId:d.getClientRequestId()}};return J&&J.fingerprintHash&&(Z.device.fingerprint=J.fingerprintHash),Z}function j(Z){if(C.length)if(J!==null){var ht=Object.assign(U(),{events:C});i.makeRequest({path:"bulk",data:ht,method:i.methods.post},Z)}else c.getFingerprint((function(It){J=It,j(Z)}))}function X(Z,ht){return k.push(Z),ht?new Blob([JSON.stringify(k)]).size:0}function et(){if(vt){var Z=Date.now();Z-lt>G&&(X({i:{dr:Z-lt,ac:Z-lt-St},metadata:{type:p.I,timestamp:Z}},!1),St=0)}}function ut(){I(),C=k,k=[],j()}function Y(Z){et(),(function(){if(wt&&Math.random()<.25){for(var ht=[],It=0;It<3;It++)ht.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Ft=p.DY+ht[0],Kt={metadata:{type:Ft,timestamp:Date.now()}};Kt[Ft]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Kt[Ft][ht.join("")]=Math.floor(1e3*Math.random())+1,X(Kt,!1)}})(),(function(ht){x.triggerEventOnEvent(ht)})(Z),X(Object.assign({metadata:{type:Z.eventType,timestamp:Date.now()}},Z.payload),!0)>32768&&ut(),Z.eventType!==p.C&&Z.eventType!==p.S&&Z.eventType!==p.KD&&Z.eventType!==p.MM||(lt=Date.now())}function g(){st&&ut()}function E(Z){return window.addEventListener(Z,g,!0),function(){window.removeEventListener(Z,g,!0)}}function K(Z,ht){return!Z||Z.indexOf(ht)>-1}r.exports={init:function(Z){if(!st){var ht=Z.bulkEvents&&Z.bulkEvents.mask;if(!Array.isArray(ht)||ht.length!==0){var It=Z.bulkEvents&&typeof Z.bulkEvents.pct=="number"?Z.bulkEvents.pct:100;if(!(It===0||Math.random()>It/100)){var Ft=Z.bulkEvents&&Z.bulkEvents.appMaskInclude;if(!Array.isArray(Ft)||Ft.indexOf(Z.appId)!==-1){var Kt=Z.bulkEvents&&Z.bulkEvents.appMaskExclude;if(!Array.isArray(Kt)||Kt.indexOf(Z.appId)===-1){var me=K(ht,p.C),Ee=K(ht,p.KD),jt=K(ht,p.S),Ne=K(ht,p.PC),Oe=K(ht,p.MM),Ie=K(ht,p.PL),en=K(ht,p.I),Be=K(ht,p.DY),y=en||Ie;e=Z.deviceId,I(),me&&D.push(o.setClickListener(Y)),Ee&&D.push(o.setKeyDownListener(Y)),jt&&D.push(o.setScrollListener(Y)),Ne&&D.push(o.setPageChangeListener(Y)),Oe&&D.push(o.setMouseMoveListener(Y)),dt=Ie,vt=en,wt=Be,y&&D.push((function(){function P(){if(document.hidden)pt=Date.now(),At=pt;else if(pt!==null){var H=Date.now();nt+=H-pt,pt=null,St+=H-At}}return document.addEventListener("visibilitychange",P),function(){document.removeEventListener("visibilitychange",P)}})()),D.push((function(){function P(){if(et(),(function(){if(dt){var xt=Date.now(),zt=xt-$;X({metadata:{type:p.PL,timestamp:xt},pl:{dr:zt,ac:zt-nt}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(k.length>0)try{var H=i.getRequestHeaders(),ft=Object.assign(U(),{events:k}),yt=new URLSearchParams;yt.append("data",JSON.stringify(ft)),yt.append("headers",JSON.stringify(H));var bt=new Blob([yt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(f.serverUrl+"/bulk",bt)}catch{}}else C=k,j()}return window.addEventListener("beforeunload",P),function(){window.removeEventListener("beforeunload",P)}})()),st=!0,k=[],me||D.push(E("click")),D.push(E("paste"))}}}}}},cleanup:function(){st&&(M&&clearTimeout(M),D.forEach((function(Z){Z()})),D=[],st=!1)},trigger:g}},120:function(r,t,n){var e=n(709),o=n(38),i=n(23);function c(){return"ontouchstart"in window}function d(f){var p={};if(f.nodeName){p.name=f.nodeName,f.className&&(p.className=String(f.className)),f.id&&(p.id=f.id);var S=f.getAttribute&&f.getAttribute("type");S&&(p.type=S),f.placeholder&&(p.placeholder=f.placeholder)}return p}r.exports={manageDomEvents:function(f){e.managePasteEvents(f)},getDomProperties:d,setClickListener:function(f){function p(x){var T={eventType:o.C,payload:{c:{d:d(x.target)}}},k=x.target.textContent||x.target.innerText||"";if(k){var C=i.transformDomNodeContent(k);T.payload[o.C].x={p:C.prefix,s:C.suffix,l:C.length}}f(T)}var S=c()?"touchend":"click";return window.addEventListener(S,p,!0),function(){window.removeEventListener(S,p,!0)}},setKeyDownListener:function(f){function p(S){f({eventType:o.KD,payload:{kd:{d:d(S.target),k:S.key||S.code||"na"}}})}return window.addEventListener("keydown",p,!0),function(){window.removeEventListener("keydown",p,!0)}},setScrollListener:function(f){var p=null,S=0,x=0,T={x:0,y:0},k=0,C=0,M=0,V=0,G=0,J=0;function $(pt){f({eventType:o.S,payload:{s:{d:d(pt.target),di:{x:T.x,y:T.y},t:C-k,sx:M,sy:V,ex:G,ey:J}}}),S=0,x=0,T.x=0,T.y=0,p=null,k=0,C=0}function nt(pt){var lt=pt.target.scrollingElement||pt.target;if(lt&&(lt===document&&(lt=document.documentElement),lt instanceof Element)){var St=lt.getBoundingClientRect(),At=-St.left+lt.scrollLeft,st=-St.top+lt.scrollTop;p?(clearTimeout(p),C=Date.now(),G=At,J=st):(k=Date.now(),C=k,G=M=At,J=V=st),(T.x||T.y||S||x)&&(T.x+=Math.abs(At-S),T.y+=Math.abs(st-x)),S=At,x=st,p=setTimeout($.bind(null,pt),200)}}return window.addEventListener("scroll",nt,!0),function(){p&&clearTimeout(p),window.removeEventListener("scroll",nt,!0)}},setPageChangeListener:function(f){var p,S,x,T=null,k=null,C=0;function M($){var nt;if(window.URL){var pt=new URL($,"http://example.com");nt=pt.pathname+pt.hash}else nt=$.indexOf("?")>-1?$.split("?")[0]:$.indexOf("#")>-1?$.split("#")[0]:$;if(nt!==T){var lt=Date.now()-x;f({eventType:o.PC,payload:{pc:{f:T,t:nt,dr:lt,ac:lt-C}}}),T=nt,x=Date.now()}}function V(){if(document.hidden)k=Date.now();else if(k!==null){var $=Date.now();C+=$-k,k=null}}function G($){M($.newURL)}function J(){M(window.location.href)}return window.history?(T=window.location.pathname||"/",p=history.pushState,S=history.replaceState,x=Date.now(),window.addEventListener("hashchange",G),window.addEventListener("popstate",J),history.pushState=function($,nt,pt){return M(pt),p.apply(history,arguments)},history.replaceState=function($,nt,pt){return M(pt),S.apply(history,arguments)},document.addEventListener("visibilitychange",V),function(){history.pushState=p,history.replaceState=S,window.removeEventListener("hashchange",G),window.removeEventListener("popstate",J),document.removeEventListener("visibilitychange",V),T=null,C=0}):function(){}},setMouseMoveListener:function(f){var p=[],S=!1,x=null,T=0,k={x:0,y:0};function C(){p.length!==0&&(f({eventType:o.MM,payload:{mm:{s:p.slice(),l:S,di:k}}}),p=[])}function M(G){var J,$;G.touches&&G.touches.length>0?(J=G.touches[0].clientX,$=G.touches[0].clientY):(J=G.clientX,$=G.clientY),J!==void 0&&$!==void 0&&(p.length>0&&(k.x+=Math.abs(J-p[p.length-1][0]),k.y+=Math.abs($-p[p.length-1][1])),p.push([J,$]),p.length>1e3&&(S=!0,(T+=2)>=1e3&&(T=2),p.splice(T,1)),x&&clearTimeout(x),x=setTimeout(C,200))}var V=c()?"touchmove":"mousemove";return window.addEventListener(V,M,!0),function(){x&&clearTimeout(x),window.removeEventListener(V,M,!0)}}}},387:function(r,t,n){var e=n(776),o=n(23),i=n(287).hp,c=n(527),d=n(543),f=["storeInfo"],p={};function S(){var k={};for(var C in c)if(c.hasOwnProperty(C)){var M=C.charAt(0);M===M.toLowerCase()&&M!==M.toUpperCase()&&(k[C]=c[C])}return k}function x(k,C){var M=k.eventType,V=k.deviceId,G=k.fingerprintProVisitorId,J=k.fingerprintProRequestId,$=k.fingerprintHash,nt=(function(vt){try{return i.from(JSON.stringify(vt)).toString("base64")}catch{return}})(k.fingerprintComponents),pt=k.deviceExtendedInfo,lt=k.payload,St={metadata:{type:M},device:{id:V,fingerprint:$,rawFingerprint:nt,type:d.webType}};G&&(St.device.visitorId=G),J&&(St.device.fpRequestId=J);var At=Object.assign({},o.getClientMetadata(o.metadataType.payload),p);for(var st in At)At.hasOwnProperty(st)&&(St.metadata[st]=At[st]);for(var dt in lt)lt.hasOwnProperty(dt)&&(St[dt]=lt[dt]);pt&&(St.device.extendedInfo=pt),e.makeRequest({path:"events",data:St,method:e.methods.post},C)}function T(k){var C=k.type,M=k.deviceId,V=k.fingerprintProVisitorId,G=k.fingerprintProRequestId,J=k.fingerprintHash,$=k.fingerprintComponents,nt=k.deviceExtendedInfo,pt=k.callback,lt={eventType:C,deviceId:M,fingerprintHash:J,fingerprintComponents:$,deviceExtendedInfo:nt};V&&(lt.fingerprintProVisitorId=V),G&&(lt.fingerprintProRequestId=G),x(lt,pt)}r.exports={addMetadataProps:function(k){for(var C=0;C<f.length;C+=1){var M=f[C];k.hasOwnProperty(M)&&(p[M]=k[M])}},reportEvent:x,reportAppInstallEvent:function(k,C,M,V,G,J){T({type:"appInstall",deviceId:k,fingerprintProVisitorId:C,fingerprintProRequestId:M,fingerprintHash:V,fingerprintComponents:G,deviceExtendedInfo:S(),callback:J})},reportFingerprintEvent:function(k,C,M,V){T({type:"fingerprint",deviceId:k,fingerprintHash:C,fingerprintComponents:M,fingerprintProRequestId:V})},reportInitEvent:function(k){T({type:"appInit",deviceId:k})}}},625:function(r,t,n){var e=n(269),o=n(1);r.exports={getFingerprint:function(i,c){if(e&&i)try{e.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",e.defaultEndpoint],modules:[e.makeIdentificationModule(),e.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",e.defaultScriptUrlPattern],remoteControlDetection:!0}).then((function(f){return f.get()})).then((function(f){typeof c=="function"&&c(f?{fingerprintVisitorId:f.visitorId,fingerprintRequestId:f.requestId}:{})})).catch((function(){typeof c=="function"&&c({})}))}catch(f){var d={msg:"FingerprintJS.load pro error",err:JSON.stringify(f)};o.send(d),typeof c=="function"&&c({})}else c({})}}},376:function(r,t,n){var e=n(568),o=n(528),i=n(387),c=n(1),d="ns_fp_hash";function f(S,x,T,k){i.reportFingerprintEvent(T,S,x,k)}function p(S){try{e.load({monitoring:!1}).then((function(T){T.get().then((function(k){S(k?{fingerprintHash:k.visitorId,fingerprintComponents:k.components}:{})})).catch((function(){typeof S=="function"&&S({})}))})).catch((function(){typeof S=="function"&&S({})}))}catch(T){var x={msg:"FingerprintJS.load error",err:JSON.stringify(T)};c.send(x),typeof S=="function"&&S({})}}r.exports={manageFingerprint:function(S,x,T){p((function(k){var C=k.fingerprintHash,M=k.fingerprintComponents;o.getItem(d)!==C&&(x&&f(C,M,S),o.setItem(d,C)),typeof T=="function"&&T({fingerprintHash:C,fingerprintComponents:M})}))},getFingerprint:p,reportFingerprintWithProInfo:function(S,x){p((function(T){f(T.fingerprintHash,T.fingerprintComponents,S,x)}))}}},733:function(r,t,n){var e=n(528),o=n(376),i=n(625),c=n(387),d=n(142),f=n(1),p=n(543),S="linkDevices";function x(k,C,M){o.getFingerprint((function(V){var G=V.fingerprintHash,J=V.fingerprintComponents;c.reportEvent({eventType:S,deviceId:k,fingerprintHash:G,fingerprintComponents:J,payload:{linkedDevices:[C,M]}})}))}function T(k,C){if(C)for(var M=0,V=C.length;M<V;M+=1){var G=C[M];if(G&&G.length>1){var J=G[0],$=G[1];J&&$&&J!==$&&x(k,J,$)}}}r.exports={installSdk:function(k,C){var M=k.deviceId,V=k.loadFingerprintJsPro,G=(k.supressInstallBackwardCompatibility||[]).indexOf(k.appId)===-1,J=(function(nt,pt){var lt=pt?e.getBackwardCompatabilityItem(p.installEventReportedKeyName,p.oldInstallEventReportedKeyName):e.getItem(p.installEventReportedKeyName);return lt?(lt==="true"&&(e.setItem(p.installEventReportedKeyName,nt),lt=nt),nt===lt?{isInstalled:!0,reportedDeviceId:nt}:{isInstalled:!1,reportedDeviceId:lt}):{isInstalled:!1,reportedDeviceId:null}})(M,G);function $(nt,pt,lt){if(lt>3)C&&C(!1);else{var St=pt.fingerprintHash,At=pt.fingerprintComponents,st=nt.fingerprintVisitorId,dt=nt.fingerprintRequestId;c.reportAppInstallEvent(M,st,dt,St,At,(function(vt){if(vt){var wt={msg:"Failed sending appInstall",err:JSON.stringify(vt),deviceId:M,fingerprintHash:St,fingerprintRequestId:dt,numberOfRetry:lt};f.send(wt),$(nt,pt,lt+1)}else e.setItem(p.installEventReportedKeyName,M),e.setItem("ns_irts",Date.now()),d.manageKeepAlive({deviceId:M,fingerprintInfo:pt,setStartTimestamp:!0}),C&&C(!0)}))}}J.isInstalled?C&&C(!1):(J.reportedDeviceId&&J.reportedDeviceId!==M&&T(M,[[M,J.reportedDeviceId]]),i.getFingerprint(V,(function(nt){o.manageFingerprint(M,!1,(function(pt){$(nt,pt,1)}))})))},reportLinkDevices:T}},142:function(r,t,n){var e=n(528),o=n(884),i=n(387),c=n(376),d="ns_ka_ts",f="ns_ka_step_",p=[10,30,40,60];function S(C){return f+C}function x(){var C=parseInt(e.getItem(d),10);return o.isValidDate(new Date(C))?C:null}function T(C,M){var V=(function(){var G=x();if(!G)return null;for(var J,$=Math.floor((new Date().getTime()-G)/1e3),nt=0;nt<p.length;nt+=1){var pt=p[nt],lt=nt<p.length-1?p[nt+1]:null;if($>=pt&&(!lt||$<lt)&&(J=pt,!e.getItem(S(J))))return{stepToReport:pt,timeToWaitInSeconds:0};if($<pt)return{stepToReport:pt,timeToWaitInSeconds:pt-$}}return null})();V&&(V.timeToWaitInSeconds===0?((function(G,J,$){var nt=J.fingerprintHash,pt=J.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:G,fingerprintHash:nt,fingerprintComponents:pt,payload:{keepAlive:{step:$}}}),e.setItem(S($),!0)})(C,M,V.stepToReport),T(C,M)):V.timeToWaitInSeconds>0&&setTimeout((function(){T(C,M)}),1e3*V.timeToWaitInSeconds))}var k={manageKeepAlive:function(C){var M=C.deviceId,V=C.fingerprintInfo;C.setStartTimestamp&&!x()&&e.setItem(d,new Date().getTime()),V?T(M,V):c.getFingerprint((function(G){T(M,G)}))}};r.exports=k},709:function(r,t,n){var e=n(387),o=n(376),i=n(23);function c(p){var S,x=p?p.value||p.innerText:null;return{nodeContent:x,normalizedNodeContent:(S=x,i.removeWhitespaces(S))}}function d(p){var S=i.transformDomNodeContent(p),x=p||"";return S.onlyDigits=/^[0-9]+$/.test(x),S.containsWhitespace=/\s/.test(x),S.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(x),S}var f={managePasteEvents:function(p){document.addEventListener("paste",(function(S){var x=c(S.target);setTimeout((function(){(function(T){var k=T.deviceId,C=T.contentBeforePaste,M=C.nodeContent,V=C.normalizedNodeContent,G=T.domNode,J={paste:{domNode:{}}};if(G.nodeName){J.paste.domNode.name=G.nodeName,G.className&&(J.paste.domNode.className=G.className),G.id&&(J.paste.domNode.id=G.id);var $=G.getAttribute&&G.getAttribute("type");$&&(J.paste.domNode.type=$),J.paste.domNode.content={};var nt=c(G),pt=nt.nodeContent,lt=nt.normalizedNodeContent;J.paste.domNode.content.beforePaste=d(M),J.paste.domNode.content.afterPaste=d(pt),J.paste.domNode.normalizedContent={},J.paste.domNode.normalizedContent.beforePaste=d(V),J.paste.domNode.normalizedContent.afterPaste=d(lt),G.placeholder&&(J.paste.domNode.placeholder=G.placeholder),J.paste.url=window.location.href}o.getFingerprint((function(St){var At=St.fingerprintHash;e.reportEvent({eventType:"paste",deviceId:k,fingerprintHash:At,payload:J})}))})({deviceId:p,contentBeforePaste:x,domNode:S.target})}),0)}))}};r.exports=f},472:function(r,t,n){var e=n(127),o=n(108),i=n(884),c=n(23),d=n(776),f=n(528),p=n(298).inactivityEvent,S=n(143),x=n(387),T=n(376),k="ns_sid";function C(){o.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function M(G){var J=G.deviceId,$=G.initModuleConfig,nt=G.jwtSessionId,pt=G.callback,lt=1e4;try{lt=e(nt).inactivityTimeout}catch{lt=1e4}var St=new S(new Date().getTime());St.addEventListener(p,(function At(){St.removeEventListener(p,At),V({deviceId:J,initModuleConfig:$,forceRenewSessionDueToInactivity:!0,callback:pt})})),St.trackInactivity(lt)}function V(G){var J,$=G.deviceId,nt=G.initModuleConfig,pt=!!G.forceRenewSessionDueToInactivity,lt=G.callback,St=f.getItem(k);try{J=e(St),d.setSessionId(St)}catch{J=null}pt||!J||1e3*((J||{}).exp||0)<new Date().getTime()?(function(At,st){var dt=At.deviceId,vt=(At.initModuleConfig||{}).storeInfo,wt=new C;wt.addEventListener(wt.eventTypes.fetchComplete,(function D(h){wt.removeEventListener(wt.eventTypes.fetchComplete,D),st(h.detail)})),wt.fetchSessionId(dt,vt)})({deviceId:$,initModuleConfig:nt},(function(At){St=At,f.setItem(k,St),d.setSessionId(St),(function(st){try{var dt=st.deviceId,vt=e(st.jwtSessionId).ets;if(!vt)return;T.getFingerprint((function(wt){var D=wt.fingerprintHash,h=wt.fingerprintComponents;x.reportEvent({eventType:"ping",deviceId:dt,fingerprintHash:D,fingerprintComponents:h,payload:{ping:{ets:vt}}})}))}catch{}})({deviceId:$,jwtSessionId:St}),M({deviceId:$,initModuleConfig:nt,jwtSessionId:St,callback:lt}),i.isFunction(lt)&<(St)})):(M({deviceId:$,initModuleConfig:nt,jwtSessionId:St,callback:lt}),i.isFunction(lt)&<(St))}C.prototype=Object.create(o.prototype),C.prototype.constructor=C,C.prototype.fetchSessionId=function(G,J){var $=this,nt="session?"+c.getClientMetadata(c.metadataType.queryString)+"&deviceId="+G;J&&(J.id&&(nt+="&storeId="+J.id),J.type&&(nt+="&storeType="+J.type)),(function pt(){var lt;lt=function(St,At){!St&&At&&At.ok?$.dispatchEvent(new CustomEvent($.eventTypes.fetchComplete,{detail:At.response})):setTimeout(pt,i.randomInt(4e4,6e4))},d.makeRequest({path:nt,method:d.methods.get},lt)})()},r.exports={manageSessionId:V,setRetrySessionTimeout:function(G){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(r,t,n){var e=n(23),o=n(376),i=n(625),c=n(528),d=n(543).fingerprintReportedInSessionKey,f=n(543).eventTriggers,p={},S=null,x=!1,T=!1;function k(M){var V=M||{};Object.keys(V).forEach((function(G){G===f.fingerPrint&&T&&(c.getSessionItem(d)||(i.getFingerprint(x,(function(J){o.reportFingerprintWithProInfo(S,J.fingerprintRequestId)})),c.setSessionItem(d,!0)))}))}function C(M,V,G){for(var J=0;J<V.payload.length;J++){var $=V.payload[J];$&&$.event&&$.action&&e.isSubObject($.event,M.payload)&&(G[$.action]=!0)}}r.exports={init:function(M){if(M.eventTrigger){try{var V=atob(M.eventTrigger),G=JSON.parse(V);if(!G||!(p=G[M.appId]))return}catch{return}S=M.deviceId,x=M.loadFingerprintJsPro,T=!0,(function(){if(T&&p.init&&Array.isArray(p.init)){for(var J={},$=0;$<p.init.length;$++){var nt=p.init[$];nt&&nt.url&&nt.action&&new RegExp(p.init[$].url).test(window.location.href)&&(J[p.init[$].action]=!0)}k(J)}})()}},triggerEventOnEvent:function(M){if(T){var V=p[M.eventType];if(Array.isArray(V)){for(var G={},J=0;J<V.length;J++){var $=V[J];$&&$.url&&$.payload&&new RegExp($.url).test(window.location.href)&&C(M,$,G)}k(G)}}}}},636:function(r,t,n){var e=n(528),o=n(387),i=n(376),c="ns_c_ver",d="c";function f(S){e.setItem(c,JSON.stringify(S))}function p(S,x,T,k){var C=x.fingerprintHash,M=x.fingerprintComponents;o.reportEvent({eventType:"sdkVersionUpgrade",deviceId:S,fingerprintHash:C,fingerprintComponents:M,payload:{versionUpgrade:{version:T,prevVersion:k||""}}}),f(T)}r.exports={reportVersionUpgrade:function(S){var x=S.initModuleVersion,T=S.coreModuleVersion,k={};k.i=x,k[d]=T;var C=S.deviceId,M=S.fingerprintInfo,V=(function(){var G=e.getItem(c);if(G){try{var J=JSON.parse(G);if(typeof J=="object")return J}catch{}return{i:G}}return null})();V&&V.i?V.i!==x||V[d]&&V[d]!==T?(V[d]||(V[d]=T),M?p(C,M,k,V):i.getFingerprint((function(G){p(C,G,k,V)}))):V[d]||f(k):f(k)}}},23:function(r,t,n){var e=n(550),o={payload:"payload",queryString:"queryString"};function i(){return e()}function c(f,p){for(var S in f)if(f.hasOwnProperty(S)&&(!p.hasOwnProperty(S)||!d(f[S],p[S])))return!1;return!0}function d(f,p){if(f===p)return!0;if(typeof f!=typeof p)return!1;if(Array.isArray(f)&&Array.isArray(p)){if(f.length!==p.length)return!1;for(var S=0;S<f.length;S++)if(!d(f[S],p[S]))return!1;return!0}return typeof f=="object"&&f!==null&&typeof p=="object"&&p!==null&&c(f,p)}r.exports={metadataType:o,getClientMetadata:function(f){var p=new Date().getTime(),S=i();return f===o.queryString?"timestamp="+p+"&clientRequestId="+S:{timestamp:p,clientRequestId:S}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(f){var p,S,x=f||"",T=x.length;return T<=1?(p="",S=""):T===2?(p=x.slice(0,1),S=""):T===3?(p=x.slice(0,1),S=x.slice(T-1)):T===4?(p=x.slice(0,2),S=x.slice(T-1)):T===5?(p=x.slice(0,2),S=x.slice(T-2)):T===6?(p=x.slice(0,3),S=x.slice(T-2)):T===7?(p=x.slice(0,3),S=x.slice(T-3)):T===8?(p=x.slice(0,4),S=x.slice(T-3)):T===9?(p=x.slice(0,5),S=x.slice(T-3)):T===10?(p=x.slice(0,5),S=x.slice(T-4)):T>10&&(p=x.slice(0,6),S=x.slice(T-4)),{length:T,prefix:p,suffix:S}},isSubObject:c,removeWhitespaces:function(f){return f&&(f instanceof String||typeof f=="string")?f.replace(/\s/g,""):f}}},651:function(r,t,n){var e,o=n(723),i=n(115),c=n(884);function d(){return i.getDeviceId()}r.exports={getDeviceId:function(){return e||(e=d()),e},getCoreModuleParams:function(f,p){var S=p||{},x=!!S.isFingerprintJsProOff,T=[];e&&e!==d()&&T.push([e,d()]);var k=c.getAppContextId(),C=S.bulkEvents||{},M=S.supressInstallBackwardCompatibility||[],V=typeof S.logMessageRate=="number"?S.logMessageRate:100,G=S.eventTrigger||"";return Object.assign(f,{deviceId:d(),linkedDevices:T,loadFingerprintJsPro:!x,clientVersion:o.version,appContextId:k,bulkEvents:C,supressInstallBackwardCompatibility:M,logMessageRate:V,eventTrigger:G,eventsReportUrl:S.eventsReportUrl})},parseInitParams:function(f,p){return typeof(S=f)=="string"||S instanceof String?{appId:f,partnerId:p}:f;var S},internalGetDeviceId:d}},342:function(r,t,n){var e=n(723),o=n(242),i=n(1),c=n(102),d=n(651),f=n(884),p=n(884);r.exports={version:e.version,init:f.isBrowser()?function(S,x){var T=d.parseInitParams(S,x),k=T.appId;i.init(e,{appId:k});var C=p.getConfigBaseUrls(T,e),M=C.mainConfigBaseUrl,V=C.altConfigBaseUrl;function G($,nt){o.getCoreModuleLoadingInfo({appId:k,url:$},(function(pt,lt){!pt&<||e.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:e.coreConfigFileUrl,errorDescription:pt}),nt(lt)}))}function J($){typeof $.onPercentage=="number"&&f.randomInt(0,100)>$.onPercentage||(function(nt,pt){var lt=d.getCoreModuleParams(nt,pt);c.init(lt)})(T,$)}return G(M,(function($){if($)J($);else{if(!V)return;G(V,(function(nt){nt&&J(nt)}))}})),d.getDeviceId()}:function(S,x){return null},getDeviceId:f.isBrowser()?function(){return d.getDeviceId()}:function(){return null}}},242:function(r,t,n){var e=n(611),o=n(528),i=n(884),c="ns_group";function d(f,p){(function(S,x){e.get(S).end((function(T,k){T?i.isFunction(x)&&x({ok:!1,errorDescription:JSON.stringify({err:T,res:k})}):i.isFunction(x)&&x(null,{ok:k.ok,status:k.status,response:k.body})}))})(f.url,(function(S,x){!S&&x&&x.response?i.isFunction(p)&&p(null,(function(T,k){var C,M=k||{},V=M.configurations||{},G=V[T];if(G){var J=(function(){var St=o.getItem(c);return St||(St=i.randomInt(1,100),o.setItem(c,St)),St})(),$=(function(St){var At=[],st=0;for(var dt in St)if(St.hasOwnProperty(dt)){var vt=St[dt],wt=st;st+=vt.percentage,At.push({from:wt,to:st,url:vt.url})}return At})(G.groups),nt=(function(St,At){for(var st=0,dt=St.length;st<dt;st++){var vt=St[st];if(At>vt.from&&At<=vt.to)return vt}return null})($,J)||{};if(nt)for(C in nt)nt.hasOwnProperty(C)&&(G[C]=nt[C]);var pt=V.default||{};for(C in pt)pt.hasOwnProperty(C)&&!G.hasOwnProperty(C)&&(G[C]=pt[C])}else G=V.default||{};var lt={};for(C in M)M.hasOwnProperty(C)&&C!=="configurations"&&(lt[C]=M[C]);for(C in G)G.hasOwnProperty(C)&&["groups","from","to"].indexOf(C)===-1&&(lt[C]=G[C]);return lt})(f.appId,x.response)):i.isFunction(p)&&p(S.errorDescription)}))}r.exports={getCoreModuleLoadingInfo:function(f,p){var S=0;f&&f.url?d(f,(function x(T,k){T?(S+=1)<=3?d(f,x):i.isFunction(p)&&p(T):i.isFunction(p)&&p(null,k)})):i.isFunction(p)&&p("config url is not configured")}}},115:function(r,t,n){var e,o=n(550),i=n(528),c=n(13),d=n(884),f=n(616),p="ns_dev_id",S=[];function x(){var T=i.getItem(p);e||(e=T||f.toArray(o(),i.hasAccessToLocalStorage()),i.setItem(p,e))}r.exports={init:function(){c.init((function(){c.getKey(p,(function(T){T?(e=T,i.setItem(p,e),c.cleanup()):(x(),c.setKey(p,e),setTimeout(c.cleanup,2e3));for(var k=0,C=S.length;k<C;k+=1){var M=S[k];d.isFunction(M)&&M()}S=[]}))}))},addOnReadyListener:function(T){S.push(T)},getDeviceId:function(){return x(),e},reset:function(){throw new Error("Cannot call reset!")}}},635:function(r,t,n){n.d(t,{C6:function(){return o},Cl:function(){return i},Tt:function(){return c},YH:function(){return f},fX:function(){return p},sH:function(){return d}});var e=function(S,x){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,k){T.__proto__=k}||function(T,k){for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&(T[C]=k[C])},e(S,x)};function o(S,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function T(){this.constructor=S}e(S,x),S.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)}var i=function(){return i=Object.assign||function(S){for(var x,T=1,k=arguments.length;T<k;T++)for(var C in x=arguments[T])Object.prototype.hasOwnProperty.call(x,C)&&(S[C]=x[C]);return S},i.apply(this,arguments)};function c(S,x){var T={};for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&x.indexOf(k)<0&&(T[k]=S[k]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function"){var C=0;for(k=Object.getOwnPropertySymbols(S);C<k.length;C++)x.indexOf(k[C])<0&&Object.prototype.propertyIsEnumerable.call(S,k[C])&&(T[k[C]]=S[k[C]])}return T}function d(S,x,T,k){return new(T||(T=Promise))((function(C,M){function V($){try{J(k.next($))}catch(nt){M(nt)}}function G($){try{J(k.throw($))}catch(nt){M(nt)}}function J($){var nt;$.done?C($.value):(nt=$.value,nt instanceof T?nt:new T((function(pt){pt(nt)}))).then(V,G)}J((k=k.apply(S,x||[])).next())}))}function f(S,x){var T,k,C,M,V={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return M={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function G(J){return function($){return(function(nt){if(T)throw new TypeError("Generator is already executing.");for(;M&&(M=0,nt[0]&&(V=0)),V;)try{if(T=1,k&&(C=2&nt[0]?k.return:nt[0]?k.throw||((C=k.return)&&C.call(k),0):k.next)&&!(C=C.call(k,nt[1])).done)return C;switch(k=0,C&&(nt=[2&nt[0],C.value]),nt[0]){case 0:case 1:C=nt;break;case 4:return V.label++,{value:nt[1],done:!1};case 5:V.label++,k=nt[1],nt=[0];continue;case 7:nt=V.ops.pop(),V.trys.pop();continue;default:if(!((C=(C=V.trys).length>0&&C[C.length-1])||nt[0]!==6&&nt[0]!==2)){V=0;continue}if(nt[0]===3&&(!C||nt[1]>C[0]&&nt[1]<C[3])){V.label=nt[1];break}if(nt[0]===6&&V.label<C[1]){V.label=C[1],C=nt;break}if(C&&V.label<C[2]){V.label=C[2],V.ops.push(nt);break}C[2]&&V.ops.pop(),V.trys.pop();continue}nt=x.call(S,V)}catch(pt){nt=[6,pt],k=0}finally{T=C=0}if(5&nt[0])throw nt[1];return{value:nt[0]?nt[1]:void 0,done:!0}})([J,$])}}}function p(S,x,T){if(T||arguments.length===2)for(var k,C=0,M=x.length;C<M;C++)!k&&C in x||(k||(k=Array.prototype.slice.call(x,0,C)),k[C]=x[C]);return S.concat(k||Array.prototype.slice.call(x))}typeof SuppressedError=="function"&&SuppressedError}},Il={};function Wr(r){var t=Il[r];if(t!==void 0)return t.exports;var n=Il[r]={exports:{}};return S4[r](n,n.exports,Wr),n.exports}Wr.d=function(r,t){for(var n in t)Wr.o(t,n)&&!Wr.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},Wr.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},Wr.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var Ui={};Wr.d(Ui,{IP:function(){return Di.getDeviceId},Ts:function(){return Di.init},rE:function(){return Di.version}});var Di=Wr(342);const A4={version:Di.version,init:Di.init,getDeviceId:Di.getDeviceId};Ui.Ay=A4;var cc=Ui.Ay;Ui.IP,Ui.Ts,Ui.rE;function I4(){return cc?cc.getDeviceId():null}class gr{env;url;constructor(t){this.env=t??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(t){return fetch(this.url+`/merchant/view/${t}`).then(n=>n.json()).then(n=>n.nSureSettings?.nSurePartnerId||n.nSurePartnerId).catch(n=>{console.error(n)})}static getCoinflowBaseUrl(t){return!t||t==="prod"?"https://coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3000":`https://${t}.coinflow.cash`}static getCoinflowAppBaseUrl(t){return!t||t==="prod"?"https://app.coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3003":`https://app-${t}.coinflow.cash`}static getCoinflowApiUrl(t){return!t||t==="prod"?"https://api.coinflow.cash":t==="local"?"http://localhost:5000":`https://api-${t}.coinflow.cash`}static getCoinflowUrl({walletPubkey:t,sessionKey:n,route:e,routePrefix:o,env:i,subtotal:c,presentment:d,transaction:f,blockchain:p="solana",webhookInfo:S,email:x,loaderBackground:T,handleHeightChangeId:k,bankAccountLinkRedirect:C,additionalWallets:M,chargebackProtectionData:V,merchantCss:G,color:J,rent:$,lockDefaultToken:nt,tokens:pt,planCode:lt,disableApplePay:St,disableGooglePay:At,customerInfo:st,settlementType:dt,lockAmount:vt,nativeSolToConvert:wt,theme:D,usePermit:h,transactionSigner:I,authOnly:U,deviceId:j,jwtToken:X,origins:et,threeDsChallengePreference:ut,supportEmail:Y,destinationAuthKey:g,allowedPaymentMethods:E,accountFundingTransaction:K,partialUsdcChecked:Z,redemptionCheck:ht,allowedWithdrawSpeeds:It,isZeroAuthorization:Ft,zeroAuthorizationConfig:Kt,baseUrl:me}){const Ee=o?`/${o}/${p}`:`/${p}`,jt=new URL(Ee+e,me??gr.getCoinflowBaseUrl(i));if(t&&jt.searchParams.append("pubkey",t),n&&jt.searchParams.append("sessionKey",n),f&&jt.searchParams.append("transaction",f),c&&("cents"in c?(jt.searchParams.append("cents",c.cents.toString()),"currency"in c?jt.searchParams.append("currency",c.currency.toString()):jt.searchParams.append("currency",ac.USD)):(jt.searchParams.append("token",c.address.toString()),jt.searchParams.append("amount",c.amount.toString()))),d&&jt.searchParams.append("presentment",d),S&&jt.searchParams.append("webhookInfo",$n.compressToEncodedURIComponent(JSON.stringify(S))),D&&jt.searchParams.append("theme",$n.compressToEncodedURIComponent(JSON.stringify(D))),st&&jt.searchParams.append("customerInfo",$n.compressToEncodedURIComponent(JSON.stringify(st))),x&&jt.searchParams.append("email",x),Y&&jt.searchParams.append("supportEmail",Y),pt&&jt.searchParams.append("tokens",pt.toString()),T&&jt.searchParams.append("loaderBackground",T),k&&jt.searchParams.append("useHeightChange",k.toString()),C&&jt.searchParams.append("bankAccountLinkRedirect",C),M&&jt.searchParams.append("additionalWallets",$n.compressToEncodedURIComponent(JSON.stringify(M))),V&&jt.searchParams.append("chargebackProtectionData",$n.compressToEncodedURIComponent(JSON.stringify(V))),j)jt.searchParams.append("deviceId",j);else{const Ne=I4();Ne&&jt.searchParams.append("deviceId",Ne)}return G&&jt.searchParams.append("merchantCss",G),J&&jt.searchParams.append("color",J),$&&jt.searchParams.append("rent",$.lamports.toString()),ht&&jt.searchParams.append("redemptionCheck","true"),wt&&jt.searchParams.append("nativeSolToConvert",wt.lamports.toString()),nt&&jt.searchParams.append("lockDefaultToken","true"),lt&&jt.searchParams.append("planCode",lt),St&&jt.searchParams.append("disableApplePay","true"),At&&jt.searchParams.append("disableGooglePay","true"),dt&&jt.searchParams.append("settlementType",dt),vt&&jt.searchParams.append("lockAmount","true"),h===!1&&jt.searchParams.append("usePermit","false"),I&&jt.searchParams.append("transactionSigner",I),U===!0&&jt.searchParams.append("authOnly","true"),Kt?jt.searchParams.append("zeroAuthorizationConfig",JSON.stringify(Kt)):Ft===!0&&jt.searchParams.append("isZeroAuthorization","true"),Z===!0&&jt.searchParams.append("partialUsdcChecked","true"),X&&jt.searchParams.append("jwtToken",X),et&&jt.searchParams.append("origins",$n.compressToEncodedURIComponent(JSON.stringify(et))),E&&jt.searchParams.append("allowedPaymentMethods",E.join(",")),ut&&jt.searchParams.append("threeDsChallengePreference",ut),g&&jt.searchParams.append("destinationAuthKey",g),K&&jt.searchParams.append("accountFundingTransaction",$n.compressToEncodedURIComponent(JSON.stringify(K))),It&&jt.searchParams.append("allowedWithdrawSpeeds",It.join(",")),jt.toString()}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:n}=t;if(!Es)throw new Error("@solana/web3.js dependency is required for Solana");if(!Hr)throw new Error("bs58 dependency is required for Solana");if(n)return Hr.encode(Uint8Array.from(n.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return $n.compressToEncodedURIComponent(JSON.stringify(n))},eth:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return $n.compressToEncodedURIComponent(JSON.stringify(n))},base:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return $n.compressToEncodedURIComponent(JSON.stringify(n))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return $n.compressToEncodedURIComponent(JSON.stringify(n))},monad:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return $n.compressToEncodedURIComponent(JSON.stringify(n))},user:()=>{}})()}static byBlockchain(t,n){switch(t){case"solana":return n.solana;case"polygon":return n.polygon;case"eth":return n.eth;case"base":return n.base;case"arbitrum":return n.arbitrum;case"monad":return n.monad;case"user":return n.user;default:throw new Error("blockchain not supported!")}}}function k4(r){if(!r)return;let t,n;if("name"in r&&r.name&&(t=r.name.split(" ")[0],n=r.name.split(" ").slice(1).join(" ")),"firstName"in r&&r.firstName&&(t=r.firstName),"lastName"in r&&r.lastName&&(n=r.lastName),t&&n)return{firstName:t,lastName:n}}var uc=(r=>(r.SignMessage="signMessage",r.SignTransaction="signTransaction",r.SendTransaction="sendTransaction",r.HeightChange="heightChange",r.Success="success",r.AuthDeclined="authDeclined",r.Loaded="loaded",r.AccountLinked="accountLinked",r))(uc||{});function Rs(r){let t;if("signer"in r&&typeof r.signer=="object"&&r.signer&&"wallet"in r.signer?t=r.signer.wallet:"wallet"in r&&r.wallet&&(t=r.wallet),!!t){if(typeof t=="string")return t;if(typeof t=="object"){if("publicKey"in t)return t.publicKey?t.publicKey.toString():void 0;if("address"in t)return t.address?t.address:void 0}return null}}function kl(r,t,n){let e;try{if(e=JSON.parse(r),!("method"in e)||!("data"in e))return}catch(c){console.error("handleIFrameMessage JSON parse",c);return}const{data:o,method:i}=e;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(o):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(o):void 0;case"sendTransaction":return t.handleSendTransaction(o);case"heightChange:"+n:return t.handleHeightChange?t.handleHeightChange(o):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(e.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(e.info);return;case"loaded":return;case"accountLinked":return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(uc)}`)}function Ss(r){let t,n;return"signer"in r&&typeof r.signer=="object"&&r.signer&&"blockchain"in r.signer&&"wallet"in r.signer?(t=r.signer.blockchain,n=r.signer.wallet):"blockchain"in r&&r.blockchain&&(t=r.blockchain,n=r.wallet),t?gr.byBlockchain(t,{solana:()=>O4({wallet:n,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),eth:()=>ho({wallet:n,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),polygon:()=>ho({wallet:n,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),base:()=>ho({wallet:n,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),arbitrum:()=>ho({wallet:n,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),monad:()=>ho({wallet:n,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),user:()=>T4(r)})():{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}}function O4({wallet:r,onSuccess:t,onAuthDeclined:n}){return{handleSendTransaction:async e=>{const o=Ol(e);return await r.sendTransaction(o)},handleSignMessage:async e=>{const o=r.signMessage;if(!o)throw new Error("signMessage is not supported by this wallet");const i=await o(new TextEncoder().encode(e));if(!Hr)throw new Error("bs58 dependency is required");return Hr.encode(i)},handleSignTransaction:async e=>{const o=r.signTransaction;if(!o)throw new Error("signTransaction is not supported by this wallet");const i=Ol(e),c=await o(i);if(!Hr)throw new Error("bs58 dependency is required");return Hr.encode(Uint8Array.from(c.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:t,onAuthDeclined:n}}function Ol(r){if(!Es)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!Hr)throw new Error("bs58 is not defined. Please install bs58 into your project");const t=Hr.decode(r),n=Es.VersionedTransaction.deserialize(t);return n.version==="legacy"?Es.Transaction.from(t):n}function ho({wallet:r,onSuccess:t,onAuthDeclined:n}){return{handleSendTransaction:async e=>{const o=JSON.parse(Buffer.from(e,"base64").toString()),{hash:i}=await r.sendTransaction(o);return i},handleSignMessage:async e=>r.signMessage(e),onSuccess:t,onAuthDeclined:n}}function T4({onSuccess:r,onAuthDeclined:t}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:r,onAuthDeclined:t}}class N4{static on(t,n){document.addEventListener(t,n)}static dispatch(t,n){document.dispatchEvent(new CustomEvent(t,{detail:n}))}static remove(t,n){document.removeEventListener(t,n)}}const po="tokenExCardNumber",Fi="tokenExCardCvv",Tl={[vi.VISA]:"visa",[vi.MASTERCARD]:"masterCard",[vi.AMEX]:"americanExpress",[vi.DISCOVER]:"discover"};async function Nl(r){const{token:t,origins:n,env:e}=r;return new Promise((o,i)=>{fetch(new gr(e).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:n,token:t,merchantId:"merchantId"in r?r.merchantId:void 0,checkoutJwt:"checkoutJwt"in r?r.checkoutJwt:void 0})}).then(async c=>{o(await c.json())}).catch(c=>i(c))})}function fc({env:r,setTokenExScriptLoaded:t}){const n="tokenex-script";document.head.querySelector(`#${n}`)&&t(!0);const e=document.createElement("script");e.src=r==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",e.id=n,document.head.appendChild(e),document.getElementById(n).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),t(!0)})}function x4({iframe:r,setCachedToken:t,setLoaded:n}){const e=async()=>(r.tokenize(),await new Promise((o,i)=>{r.on("tokenize",c=>{t(c.token),o(c)}),r.on("validate",c=>{(!c.isValid||c.isCvvValid===!1)&&i(c)})}));return r.on("change",()=>t(void 0)),r.on("cvvChange",()=>t(void 0)),r.on("load",()=>{setTimeout(()=>n(!0),350);const o=document.querySelector("#tx_iframe_tokenExCardNumber");o&&(o.scrolling="no")}),r.on("focus",()=>{r.focus()}),r.on("cvvFocus",()=>{r.cvvFocus()}),n(!1),r.load(),{...r,tokenize:e}}async function xl(r){const{token:t,cardType:n}=r;return await lc(Fi,r,{cvvOnly:!0,cvv:!0,cvvContainerID:Fi,placeholder:"CVV",token:t,cardType:Tl[n]})}async function Cl(r){return await lc(po,r,{cvv:!0,cvvContainerID:Fi,cvvPlaceholder:"CVV"})}async function Ll(r){return await lc(po,r,{cvv:!1})}async function lc(r,t,n){const{tokenExScriptLoaded:e,css:o,debug:i,font:c,setCachedToken:d,setLoaded:f}=t;if(!e&&typeof TokenEx>"u"){console.warn("Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script");return}const p=await Nl({...t,token:n.token}),{styles:S}=C4(o),x={...p,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:S,font:c,debug:i??!1,...n},T=TokenEx.Iframe(r,x);return x4({iframe:T,setCachedToken:d,setLoaded:f})}function C4(r){const t=JSON.parse(r);return{styles:{base:zr(t.base),focus:zr(t.focus),error:zr(t.error),placeholder:zr(t.placeholder),cvv:{base:zr(t.cvv?.base),focus:zr(t.cvv?.focus),error:zr(t.cvv?.error),placeholder:zr(t?.placeholder)}}}}function zr(r){if(!r)return"";if(typeof r=="string")return r;let t="";for(const[n,e]of Object.entries(r)){let o="";n.split("").forEach(i=>{i.toUpperCase()===i?o+="-"+i.toLowerCase():o+=i}),t+=o+":"+e+";"}return t}pe.nftCartItem=void 0,(r=>{(t=>{t.NFT="nft"})(r.itemClass||(r.itemClass={})),(t=>{t.IN_GAME_PRODUCT="inGameProduct",t.GAME_OF_SKILL="gameOfSkill",t.DATA_STORAGE="dataStorage",t.COMPUTING_RESOURCES="computingResources",t.SPORTS_TICKET="sportsTicket",t.E_SPORTS_TICKET="eSportsTicket",t.MUSIC_TICKET="musicTicket",t.CONFERENCE_TICKET="conferenceTicket",t.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",t.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",t.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",t.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",t.ALCOHOL="alcohol",t.DLC="DLC",t.SUBSCRIPTION="subscription",t.FUND_ACAUSE="fundACause",t.REAL_ESTATE="realEstate",t.COMPUTING_CONTRACT="computingContract",t.DIGITAL_ART="digitalArt",t.TOP_UP="topUp",t.OWNERSHIP_CONTRACT="ownershipContract",t.IN_GAME_CURRENCY="inGameCurrency",t.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(r.productType||(r.productType={}))})(pe.nftCartItem||(pe.nftCartItem={}));const L4=Zt.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return gr.getCoinflowUrl(this.args)}},emits:{onMessage(r){return!0}},methods:{sendMessage(r){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(r,"*")},handleIframeMessages({data:r,origin:t}){if(!t.includes(gr.getCoinflowBaseUrl(this.args.env)))return;this.$emit("onMessage",{data:r,origin:t});const n=kl(r,this.args,this.args.handleHeightChangeId);n&&n.then(this.sendMessage).catch(e=>{console.error(e),this.sendMessage("ERROR "+e.message)})},async listenForMessage(r){let t;return new Promise((n,e)=>{if(t=({data:o,origin:i})=>{if(i.includes(gr.getCoinflowBaseUrl(this.args.env))){if(o.startsWith("ERROR")){e(new Error(o.replace("ERROR","")));return}r(o)&&n(o)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(r,t){return this.sendMessage(r),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),dc=(r,t)=>{const n=r.__vccOpts||r;for(const[e,o]of t)n[e]=o;return n},B4=["src","scrolling"];function P4(r,t,n,e,o,i){return Zt.openBlock(),Zt.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write",title:"withdraw",frameBorder:"0",src:r.url,scrolling:r.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const c=r.$refs.iframeRef;c&&(c.style.opacity="1")})},null,40,B4)}const As=dc(L4,[["render",P4]]),M4=Zt.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:As},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=Rs(this.args);return{...this.args,walletPubkey:r,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...Ss(this.args),handleHeightChange:this.args.handleHeightChange}}}});function U4(r,t,n,e,o,i){const c=Zt.resolveComponent("coinflow-i-frame");return Zt.openBlock(),Zt.createBlock(c,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const D4=dc(M4,[["render",U4]]),F4=Zt.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:As},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=Rs(this.args);return{...this.args,walletPubkey:r,route:`/purchase-v2/${this.args.merchantId}`,transaction:gr.getTransaction(this.args)}},messageHandlers(){return{...Ss(this.args),handleHeightChange:this.args.handleHeightChange}}}});function V4(r,t,n,e,o,i){const c=Zt.resolveComponent("coinflow-i-frame");return Zt.openBlock(),Zt.createBlock(c,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const H4=dc(F4,[["render",V4]]),hc=r=>{const t=Zt.ref(!1),n=Zt.ref(!1),e=Zt.ref(void 0),o=Zt.ref(void 0);Zt.onMounted(()=>{fc({env:r.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),n.value=!0}})});const i=x=>o.value=x,c=()=>t.value=!0,d=x=>e.value=x,f=async x=>{const T=await xl({...r,...x,tokenExScriptLoaded:n.value,setCachedToken:i,setLoaded:c});return d(T),T},p=async x=>{const T=await Cl({...r,...x,tokenExScriptLoaded:n.value,setCachedToken:i,setLoaded:c});return d(T),T},S=async x=>{const T=await Ll({...r,...x,tokenExScriptLoaded:n.value,setCachedToken:i,setLoaded:c});return d(T),T};return Zt.watchEffect(x=>{e.value&&(e.value.load(),x(()=>e.value?.remove()))}),{tokenExIframe:e,initializeTokenExIframe:p,initializeCvvOnlyTokenExIframe:f,initializeTokenExCardOnlyIframe:S,loaded:t,cachedToken:o,setTokenExScriptTag:fc,tokenExScriptLoaded:n}},W4=["id"],z4=Zt.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeTokenExIframe:n,tokenExIframe:e}=hc(r.args);async function o(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return Zt.watchEffect(()=>{n({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(c,d)=>(Zt.openBlock(),Zt.createElementBlock("div",{id:Zt.unref(po)},null,8,W4))}}),G4=["id"],K4=Zt.defineComponent({__name:"CoinflowCvvInput",setup(r){return(t,n)=>(Zt.openBlock(),Zt.createElementBlock("div",{id:Zt.unref(Fi)},null,8,G4))}}),j4=["id"],Y4=Zt.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeCvvOnlyTokenExIframe:n,tokenExIframe:e}=hc(r.args);async function o(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return Zt.watchEffect(()=>{n({...r.args,origins:r.args.origins??[],css:i(),font:r.args.font})},{}),(c,d)=>(Zt.openBlock(),Zt.createElementBlock("div",{id:Zt.unref(Fi)},null,8,j4))}}),q4=Zt.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(r){const t=Zt.ref(void 0);Zt.onMounted(()=>new gr(r.args.env).getNSurePartnerId(r.args.merchantId).then(e=>t.value=e));function n(){return r.args.env==="prod"?"9JBW2RHC7JNJN8ZQ":"SANDBOX_CTCE4XK53ZW0R7V1"}return Zt.watchEffect(e=>{t.value&&cc.init(n(),t.value)}),(e,o)=>null}}),Z4=["id"],$4=Zt.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{tokenExIframe:n,initializeTokenExCardOnlyIframe:e}=hc(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return Zt.watchEffect(()=>{e({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(c,d)=>(Zt.openBlock(),Zt.createElementBlock("div",{id:Zt.unref(po)},null,8,Z4))}}),X4={style:{position:"relative",height:"100%"}},J4={style:{position:"relative",zIndex:10,height:"100%"}},Bl=Zt.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(r){const{onSuccess:t}=r.args;function n(){const f=Rs(r.args);return{...r.args,walletPubkey:f,transaction:void 0,routePrefix:"form",route:`/${r.route}/${r.args.merchantId}`}}function e(){return{...Ss(r.args),handleHeightChange:r.args.handleHeightChange}}const o=Zt.ref(.8),i=Zt.ref("flex"),c=Math.random().toString(16).substring(2);function d({data:f}){try{const p=JSON.parse(f);if("method"in p&&p.method==="loaded"&&(o.value=1,i.value="none"),"method"in p&&p.data.startsWith("ERROR"))return r.args?.onError?.(p.info),!1;if(!("method"in p)||p.method!=="getToken")return}catch{return}t?.(f)}return(f,p)=>(Zt.openBlock(),Zt.createElementBlock("div",X4,[Zt.createElementVNode("div",{style:Zt.normalizeStyle({backgroundColor:r.args.color,display:r.overlayDisplayOverride??i.value,opacity:o.value,alignItems:r.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[Zt.renderSlot(f.$slots,"default")],4),Zt.createElementVNode("div",J4,[Zt.createVNode(As,{onOnMessage:d,args:{...n(),...e(),handleHeightChangeId:Zt.unref(c)}},null,8,["args"])])]))}}),Q4={id:"svg-logo",viewBox:"0 0 35 15"},t5={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e5={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},n5=["fill"],r5=Zt.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(r){const t=r.color==="white"?"#000":"#FFF";return(n,e)=>(Zt.openBlock(),Zt.createElementBlock("svg",Q4,[(Zt.openBlock(),Zt.createElementBlock("svg",t5,[e[1]||(e[1]=Zt.createElementVNode("title",null,"Apple Logo",-1)),Zt.createElementVNode("g",e5,[Zt.createElementVNode("g",{fill:Zt.unref(t)},[...e[0]||(e[0]=[Zt.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,n5)])]))]))}}),i5=Zt.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,n)=>(Zt.openBlock(),Zt.createBlock(Bl,{route:"apple-pay",args:r.args},{default:Zt.withCtx(()=>[Zt.createVNode(r5,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}}),o5={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},s5={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},a5=Zt.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(r){return(t,n)=>(Zt.openBlock(),Zt.createElementBlock(Zt.Fragment,null,[r.color==="white"?(Zt.openBlock(),Zt.createElementBlock("svg",o5,[...n[0]||(n[0]=[Zt.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):Zt.createCommentVNode("",!0),r.color==="black"?(Zt.openBlock(),Zt.createElementBlock("svg",s5,[...n[1]||(n[1]=[Zt.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):Zt.createCommentVNode("",!0)],64))}}),c5=Zt.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,n)=>(Zt.openBlock(),Zt.createBlock(Bl,{route:"google-pay",args:r.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:Zt.withCtx(()=>[Zt.createVNode(a5,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}});pe.BankingCurrencies=Al,pe.CARD_TYPE_MAPPING=Tl,pe.CardType=vi,pe.CoinflowApplePayButton=i5,pe.CoinflowCardNumberInput=z4,pe.CoinflowCardNumberOnlyInput=$4,pe.CoinflowCvvInput=K4,pe.CoinflowCvvOnlyInput=Y4,pe.CoinflowGooglePayButton=c5,pe.CoinflowIframe=As,pe.CoinflowPurchase=H4,pe.CoinflowPurchaseProtection=q4,pe.CoinflowUtils=gr,pe.CoinflowWithdraw=D4,pe.Currency=ac,pe.CurrencyToISO4217=m4,pe.EventBus=N4,pe.IFrameMessageMethods=uc,pe.MerchantStyle=Yc,pe.PaymentMethods=Zc,pe.RN_REDIRECT_MESSAGE_NAME=ch,pe.SettlementType=jc,pe.ThreeDsChallengePreference=qc,pe.TokenExCardNumberIframeId=po,pe.TokenExCvvContainerID=Fi,pe.WithdrawCategory=Gc,pe.WithdrawCurrencies=Sl,pe.WithdrawSpeed=Kc,pe.doInitializeCvvOnlyTokenExIframe=xl,pe.doInitializeTokenExCardOnlyIframe=Ll,pe.doInitializeTokenExIframe=Cl,pe.getCurrencyDecimals=E4,pe.getCustomerName=k4,pe.getHandlers=Ss,pe.getIframeConfig=Nl,pe.getWalletPubkey=Rs,pe.handleIFrameMessage=kl,pe.isBankingCurrency=y4,pe.isTypedCurrencyCents=R4,pe.isWithdrawCurrency=v4,pe.isZeroAuthSavedPaymentMethods=sh,pe.isZeroAuthVerifyCard=oh,pe.paymentMethodLabels=ah,pe.setTokenExScriptTag=fc,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})}));
|
|
16
|
+
timeBetweenLoadAndGet: `).concat(Ct-G,`
|
|
17
|
+
visitorId: `).concat(Ut.visitorId,`
|
|
18
|
+
components: `).concat(Et(Bt),"\n```")),[2,Ut]}}))}))}}}function F(A){var H=A===void 0?{}:A,G=H.delayFallback,it=H.debug,Ct=H.monitoring,Bt=Ct===void 0||Ct;return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(Ut){switch(Ut.label){case 0:return Bt&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var kt=new XMLHttpRequest;kt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(u,"/npm-monitoring"),!0),kt.send()}catch(rt){console.error(rt)}})(),[4,jt(G)];case 1:return Ut.sent(),[2,te(At(ct,{debug:it},[]),it)]}}))}))}var R={load:F,hashComponents:Lt,componentsToDebugString:Et},O=Y},526:function(t,n){n.byteLength=function(b){var T=E(b),L=T[0],N=T[1];return 3*(L+N)/4-N},n.toByteArray=function(b){var T,L,N=E(b),x=N[0],M=N[1],D=new u((function(J,q,ot){return 3*(q+ot)/4-ot})(0,x,M)),Y=0,W=M>0?x-4:x;for(L=0;L<W;L+=4)T=e[b.charCodeAt(L)]<<18|e[b.charCodeAt(L+1)]<<12|e[b.charCodeAt(L+2)]<<6|e[b.charCodeAt(L+3)],D[Y++]=T>>16&255,D[Y++]=T>>8&255,D[Y++]=255&T;return M===2&&(T=e[b.charCodeAt(L)]<<2|e[b.charCodeAt(L+1)]>>4,D[Y++]=255&T),M===1&&(T=e[b.charCodeAt(L)]<<10|e[b.charCodeAt(L+1)]<<4|e[b.charCodeAt(L+2)]>>2,D[Y++]=T>>8&255,D[Y++]=255&T),D},n.fromByteArray=function(b){for(var T,L=b.length,N=L%3,x=[],M=16383,D=0,Y=L-N;D<Y;D+=M)x.push(l(b,D,D+M>Y?Y:D+M));return N===1?(T=b[L-1],x.push(r[T>>2]+r[T<<4&63]+"==")):N===2&&(T=(b[L-2]<<8)+b[L-1],x.push(r[T>>10]+r[T>>4&63]+r[T<<2&63]+"=")),x.join("")};for(var r=[],e=[],u=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0;d<64;++d)r[d]=a[d],e[a.charCodeAt(d)]=d;function E(b){var T=b.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=b.indexOf("=");return L===-1&&(L=T),[L,L===T?0:4-L%4]}function l(b,T,L){for(var N,x,M=[],D=T;D<L;D+=3)N=(b[D]<<16&16711680)+(b[D+1]<<8&65280)+(255&b[D+2]),M.push(r[(x=N)>>18&63]+r[x>>12&63]+r[x>>6&63]+r[63&x]);return M.join("")}e[45]=62,e[95]=63},287:function(t,n,r){const e=r(526),u=r(251),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.hp=l,n.IS=50;const d=2147483647;function E(g){if(g>d)throw new RangeError('The value "'+g+'" is invalid for option "size"');const k=new Uint8Array(g);return Object.setPrototypeOf(k,l.prototype),k}function l(g,k,V){if(typeof g=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(g)}return b(g,k,V)}function b(g,k,V){if(typeof g=="string")return(function(Et,Lt){if(typeof Lt=="string"&&Lt!==""||(Lt="utf8"),!l.isEncoding(Lt))throw new TypeError("Unknown encoding: "+Lt);const jt=0|D(Et,Lt);let te=E(jt);const F=te.write(Et,Lt);return F!==jt&&(te=te.slice(0,F)),te})(g,k);if(ArrayBuffer.isView(g))return(function(Et){if($t(Et,Uint8Array)){const Lt=new Uint8Array(Et);return x(Lt.buffer,Lt.byteOffset,Lt.byteLength)}return N(Et)})(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if($t(g,ArrayBuffer)||g&&$t(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($t(g,SharedArrayBuffer)||g&&$t(g.buffer,SharedArrayBuffer)))return x(g,k,V);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ct=g.valueOf&&g.valueOf();if(ct!=null&&ct!==g)return l.from(ct,k,V);const yt=(function(Et){if(l.isBuffer(Et)){const Lt=0|M(Et.length),jt=E(Lt);return jt.length===0||Et.copy(jt,0,0,Lt),jt}return Et.length!==void 0?typeof Et.length!="number"||be(Et.length)?E(0):N(Et):Et.type==="Buffer"&&Array.isArray(Et.data)?N(Et.data):void 0})(g);if(yt)return yt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return l.from(g[Symbol.toPrimitive]("string"),k,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}function T(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function L(g){return T(g),E(g<0?0:0|M(g))}function N(g){const k=g.length<0?0:0|M(g.length),V=E(k);for(let ct=0;ct<k;ct+=1)V[ct]=255&g[ct];return V}function x(g,k,V){if(k<0||g.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<k+(V||0))throw new RangeError('"length" is outside of buffer bounds');let ct;return ct=k===void 0&&V===void 0?new Uint8Array(g):V===void 0?new Uint8Array(g,k):new Uint8Array(g,k,V),Object.setPrototypeOf(ct,l.prototype),ct}function M(g){if(g>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|g}function D(g,k){if(l.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||$t(g,ArrayBuffer))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);const V=g.length,ct=arguments.length>2&&arguments[2]===!0;if(!ct&&V===0)return 0;let yt=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return de(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return Ee(g).length;default:if(yt)return ct?-1:de(g).length;k=(""+k).toLowerCase(),yt=!0}}function Y(g,k,V){let ct=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(k>>>=0))return"";for(g||(g="utf8");;)switch(g){case"hex":return f(this,k,V);case"utf8":case"utf-8":return lt(this,k,V);case"ascii":return wt(this,k,V);case"latin1":case"binary":return P(this,k,V);case"base64":return st(this,k,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,k,V);default:if(ct)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),ct=!0}}function W(g,k,V){const ct=g[k];g[k]=g[V],g[V]=ct}function J(g,k,V,ct,yt){if(g.length===0)return-1;if(typeof V=="string"?(ct=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),be(V=+V)&&(V=yt?0:g.length-1),V<0&&(V=g.length+V),V>=g.length){if(yt)return-1;V=g.length-1}else if(V<0){if(!yt)return-1;V=0}if(typeof k=="string"&&(k=l.from(k,ct)),l.isBuffer(k))return k.length===0?-1:q(g,k,V,ct,yt);if(typeof k=="number")return k&=255,typeof Uint8Array.prototype.indexOf=="function"?yt?Uint8Array.prototype.indexOf.call(g,k,V):Uint8Array.prototype.lastIndexOf.call(g,k,V):q(g,[k],V,ct,yt);throw new TypeError("val must be string, number or Buffer")}function q(g,k,V,ct,yt){let Et,Lt=1,jt=g.length,te=k.length;if(ct!==void 0&&((ct=String(ct).toLowerCase())==="ucs2"||ct==="ucs-2"||ct==="utf16le"||ct==="utf-16le")){if(g.length<2||k.length<2)return-1;Lt=2,jt/=2,te/=2,V/=2}function F(R,O){return Lt===1?R[O]:R.readUInt16BE(O*Lt)}if(yt){let R=-1;for(Et=V;Et<jt;Et++)if(F(g,Et)===F(k,R===-1?0:Et-R)){if(R===-1&&(R=Et),Et-R+1===te)return R*Lt}else R!==-1&&(Et-=Et-R),R=-1}else for(V+te>jt&&(V=jt-te),Et=V;Et>=0;Et--){let R=!0;for(let O=0;O<te;O++)if(F(g,Et+O)!==F(k,O)){R=!1;break}if(R)return Et}return-1}function ot(g,k,V,ct){V=Number(V)||0;const yt=g.length-V;ct?(ct=Number(ct))>yt&&(ct=yt):ct=yt;const Et=k.length;let Lt;for(ct>Et/2&&(ct=Et/2),Lt=0;Lt<ct;++Lt){const jt=parseInt(k.substr(2*Lt,2),16);if(be(jt))return Lt;g[V+Lt]=jt}return Lt}function pt(g,k,V,ct){return me(de(k,g.length-V),g,V,ct)}function ft(g,k,V,ct){return me((function(yt){const Et=[];for(let Lt=0;Lt<yt.length;++Lt)Et.push(255&yt.charCodeAt(Lt));return Et})(k),g,V,ct)}function Rt(g,k,V,ct){return me(Ee(k),g,V,ct)}function At(g,k,V,ct){return me((function(yt,Et){let Lt,jt,te;const F=[];for(let R=0;R<yt.length&&!((Et-=2)<0);++R)Lt=yt.charCodeAt(R),jt=Lt>>8,te=Lt%256,F.push(te),F.push(jt);return F})(k,g.length-V),g,V,ct)}function st(g,k,V){return k===0&&V===g.length?e.fromByteArray(g):e.fromByteArray(g.slice(k,V))}function lt(g,k,V){V=Math.min(g.length,V);const ct=[];let yt=k;for(;yt<V;){const Et=g[yt];let Lt=null,jt=Et>239?4:Et>223?3:Et>191?2:1;if(yt+jt<=V){let te,F,R,O;switch(jt){case 1:Et<128&&(Lt=Et);break;case 2:te=g[yt+1],(192&te)==128&&(O=(31&Et)<<6|63&te,O>127&&(Lt=O));break;case 3:te=g[yt+1],F=g[yt+2],(192&te)==128&&(192&F)==128&&(O=(15&Et)<<12|(63&te)<<6|63&F,O>2047&&(O<55296||O>57343)&&(Lt=O));break;case 4:te=g[yt+1],F=g[yt+2],R=g[yt+3],(192&te)==128&&(192&F)==128&&(192&R)==128&&(O=(15&Et)<<18|(63&te)<<12|(63&F)<<6|63&R,O>65535&&O<1114112&&(Lt=O))}}Lt===null?(Lt=65533,jt=1):Lt>65535&&(Lt-=65536,ct.push(Lt>>>10&1023|55296),Lt=56320|1023&Lt),ct.push(Lt),yt+=jt}return(function(Et){const Lt=Et.length;if(Lt<=mt)return String.fromCharCode.apply(String,Et);let jt="",te=0;for(;te<Lt;)jt+=String.fromCharCode.apply(String,Et.slice(te,te+=mt));return jt})(ct)}l.TYPED_ARRAY_SUPPORT=(function(){try{const g=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(g,k),g.foo()===42}catch{return!1}})(),l.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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(g,k,V){return b(g,k,V)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(g,k,V){return(function(ct,yt,Et){return T(ct),ct<=0?E(ct):yt!==void 0?typeof Et=="string"?E(ct).fill(yt,Et):E(ct).fill(yt):E(ct)})(g,k,V)},l.allocUnsafe=function(g){return L(g)},l.allocUnsafeSlow=function(g){return L(g)},l.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==l.prototype},l.compare=function(g,k){if($t(g,Uint8Array)&&(g=l.from(g,g.offset,g.byteLength)),$t(k,Uint8Array)&&(k=l.from(k,k.offset,k.byteLength)),!l.isBuffer(g)||!l.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===k)return 0;let V=g.length,ct=k.length;for(let yt=0,Et=Math.min(V,ct);yt<Et;++yt)if(g[yt]!==k[yt]){V=g[yt],ct=k[yt];break}return V<ct?-1:ct<V?1:0},l.isEncoding=function(g){switch(String(g).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}},l.concat=function(g,k){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return l.alloc(0);let V;if(k===void 0)for(k=0,V=0;V<g.length;++V)k+=g[V].length;const ct=l.allocUnsafe(k);let yt=0;for(V=0;V<g.length;++V){let Et=g[V];if($t(Et,Uint8Array))yt+Et.length>ct.length?(l.isBuffer(Et)||(Et=l.from(Et)),Et.copy(ct,yt)):Uint8Array.prototype.set.call(ct,Et,yt);else{if(!l.isBuffer(Et))throw new TypeError('"list" argument must be an Array of Buffers');Et.copy(ct,yt)}yt+=Et.length}return ct},l.byteLength=D,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const g=this.length;if(g%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<g;k+=2)W(this,k,k+1);return this},l.prototype.swap32=function(){const g=this.length;if(g%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<g;k+=4)W(this,k,k+3),W(this,k+1,k+2);return this},l.prototype.swap64=function(){const g=this.length;if(g%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<g;k+=8)W(this,k,k+7),W(this,k+1,k+6),W(this,k+2,k+5),W(this,k+3,k+4);return this},l.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?lt(this,0,g):Y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(g){if(!l.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g||l.compare(this,g)===0},l.prototype.inspect=function(){let g="";const k=n.IS;return g=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(g+=" ... "),"<Buffer "+g+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(g,k,V,ct,yt){if($t(g,Uint8Array)&&(g=l.from(g,g.offset,g.byteLength)),!l.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(k===void 0&&(k=0),V===void 0&&(V=g?g.length:0),ct===void 0&&(ct=0),yt===void 0&&(yt=this.length),k<0||V>g.length||ct<0||yt>this.length)throw new RangeError("out of range index");if(ct>=yt&&k>=V)return 0;if(ct>=yt)return-1;if(k>=V)return 1;if(this===g)return 0;let Et=(yt>>>=0)-(ct>>>=0),Lt=(V>>>=0)-(k>>>=0);const jt=Math.min(Et,Lt),te=this.slice(ct,yt),F=g.slice(k,V);for(let R=0;R<jt;++R)if(te[R]!==F[R]){Et=te[R],Lt=F[R];break}return Et<Lt?-1:Lt<Et?1:0},l.prototype.includes=function(g,k,V){return this.indexOf(g,k,V)!==-1},l.prototype.indexOf=function(g,k,V){return J(this,g,k,V,!0)},l.prototype.lastIndexOf=function(g,k,V){return J(this,g,k,V,!1)},l.prototype.write=function(g,k,V,ct){if(k===void 0)ct="utf8",V=this.length,k=0;else if(V===void 0&&typeof k=="string")ct=k,V=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k>>>=0,isFinite(V)?(V>>>=0,ct===void 0&&(ct="utf8")):(ct=V,V=void 0)}const yt=this.length-k;if((V===void 0||V>yt)&&(V=yt),g.length>0&&(V<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");ct||(ct="utf8");let Et=!1;for(;;)switch(ct){case"hex":return ot(this,g,k,V);case"utf8":case"utf-8":return pt(this,g,k,V);case"ascii":case"latin1":case"binary":return ft(this,g,k,V);case"base64":return Rt(this,g,k,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,g,k,V);default:if(Et)throw new TypeError("Unknown encoding: "+ct);ct=(""+ct).toLowerCase(),Et=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const mt=4096;function wt(g,k,V){let ct="";V=Math.min(g.length,V);for(let yt=k;yt<V;++yt)ct+=String.fromCharCode(127&g[yt]);return ct}function P(g,k,V){let ct="";V=Math.min(g.length,V);for(let yt=k;yt<V;++yt)ct+=String.fromCharCode(g[yt]);return ct}function f(g,k,V){const ct=g.length;(!k||k<0)&&(k=0),(!V||V<0||V>ct)&&(V=ct);let yt="";for(let Et=k;Et<V;++Et)yt+=Re[g[Et]];return yt}function S(g,k,V){const ct=g.slice(k,V);let yt="";for(let Et=0;Et<ct.length-1;Et+=2)yt+=String.fromCharCode(ct[Et]+256*ct[Et+1]);return yt}function U(g,k,V){if(g%1!=0||g<0)throw new RangeError("offset is not uint");if(g+k>V)throw new RangeError("Trying to access beyond buffer length")}function z(g,k,V,ct,yt,Et){if(!l.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>yt||k<Et)throw new RangeError('"value" argument is out of bounds');if(V+ct>g.length)throw new RangeError("Index out of range")}function $(g,k,V,ct,yt){ht(k,ct,yt,g,V,7);let Et=Number(k&BigInt(4294967295));g[V++]=Et,Et>>=8,g[V++]=Et,Et>>=8,g[V++]=Et,Et>>=8,g[V++]=Et;let Lt=Number(k>>BigInt(32)&BigInt(4294967295));return g[V++]=Lt,Lt>>=8,g[V++]=Lt,Lt>>=8,g[V++]=Lt,Lt>>=8,g[V++]=Lt,V}function et(g,k,V,ct,yt){ht(k,ct,yt,g,V,7);let Et=Number(k&BigInt(4294967295));g[V+7]=Et,Et>>=8,g[V+6]=Et,Et>>=8,g[V+5]=Et,Et>>=8,g[V+4]=Et;let Lt=Number(k>>BigInt(32)&BigInt(4294967295));return g[V+3]=Lt,Lt>>=8,g[V+2]=Lt,Lt>>=8,g[V+1]=Lt,Lt>>=8,g[V]=Lt,V+8}function ut(g,k,V,ct,yt,Et){if(V+ct>g.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function Z(g,k,V,ct,yt){return k=+k,V>>>=0,yt||ut(g,0,V,4),u.write(g,k,V,ct,23,4),V+4}function h(g,k,V,ct,yt){return k=+k,V>>>=0,yt||ut(g,0,V,8),u.write(g,k,V,ct,52,8),V+8}l.prototype.slice=function(g,k){const V=this.length;(g=~~g)<0?(g+=V)<0&&(g=0):g>V&&(g=V),(k=k===void 0?V:~~k)<0?(k+=V)<0&&(k=0):k>V&&(k=V),k<g&&(k=g);const ct=this.subarray(g,k);return Object.setPrototypeOf(ct,l.prototype),ct},l.prototype.readUintLE=l.prototype.readUIntLE=function(g,k,V){g>>>=0,k>>>=0,V||U(g,k,this.length);let ct=this[g],yt=1,Et=0;for(;++Et<k&&(yt*=256);)ct+=this[g+Et]*yt;return ct},l.prototype.readUintBE=l.prototype.readUIntBE=function(g,k,V){g>>>=0,k>>>=0,V||U(g,k,this.length);let ct=this[g+--k],yt=1;for(;k>0&&(yt*=256);)ct+=this[g+--k]*yt;return ct},l.prototype.readUint8=l.prototype.readUInt8=function(g,k){return g>>>=0,k||U(g,1,this.length),this[g]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(g,k){return g>>>=0,k||U(g,2,this.length),this[g]|this[g+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(g,k){return g>>>=0,k||U(g,2,this.length),this[g]<<8|this[g+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(g,k){return g>>>=0,k||U(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+16777216*this[g+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(g,k){return g>>>=0,k||U(g,4,this.length),16777216*this[g]+(this[g+1]<<16|this[g+2]<<8|this[g+3])},l.prototype.readBigUInt64LE=Ye((function(g){St(g>>>=0,"offset");const k=this[g],V=this[g+7];k!==void 0&&V!==void 0||Ft(g,this.length-8);const ct=k+256*this[++g]+65536*this[++g]+this[++g]*2**24,yt=this[++g]+256*this[++g]+65536*this[++g]+V*2**24;return BigInt(ct)+(BigInt(yt)<<BigInt(32))})),l.prototype.readBigUInt64BE=Ye((function(g){St(g>>>=0,"offset");const k=this[g],V=this[g+7];k!==void 0&&V!==void 0||Ft(g,this.length-8);const ct=k*2**24+65536*this[++g]+256*this[++g]+this[++g],yt=this[++g]*2**24+65536*this[++g]+256*this[++g]+V;return(BigInt(ct)<<BigInt(32))+BigInt(yt)})),l.prototype.readIntLE=function(g,k,V){g>>>=0,k>>>=0,V||U(g,k,this.length);let ct=this[g],yt=1,Et=0;for(;++Et<k&&(yt*=256);)ct+=this[g+Et]*yt;return yt*=128,ct>=yt&&(ct-=Math.pow(2,8*k)),ct},l.prototype.readIntBE=function(g,k,V){g>>>=0,k>>>=0,V||U(g,k,this.length);let ct=k,yt=1,Et=this[g+--ct];for(;ct>0&&(yt*=256);)Et+=this[g+--ct]*yt;return yt*=128,Et>=yt&&(Et-=Math.pow(2,8*k)),Et},l.prototype.readInt8=function(g,k){return g>>>=0,k||U(g,1,this.length),128&this[g]?-1*(255-this[g]+1):this[g]},l.prototype.readInt16LE=function(g,k){g>>>=0,k||U(g,2,this.length);const V=this[g]|this[g+1]<<8;return 32768&V?4294901760|V:V},l.prototype.readInt16BE=function(g,k){g>>>=0,k||U(g,2,this.length);const V=this[g+1]|this[g]<<8;return 32768&V?4294901760|V:V},l.prototype.readInt32LE=function(g,k){return g>>>=0,k||U(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},l.prototype.readInt32BE=function(g,k){return g>>>=0,k||U(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},l.prototype.readBigInt64LE=Ye((function(g){St(g>>>=0,"offset");const k=this[g],V=this[g+7];k!==void 0&&V!==void 0||Ft(g,this.length-8);const ct=this[g+4]+256*this[g+5]+65536*this[g+6]+(V<<24);return(BigInt(ct)<<BigInt(32))+BigInt(k+256*this[++g]+65536*this[++g]+this[++g]*2**24)})),l.prototype.readBigInt64BE=Ye((function(g){St(g>>>=0,"offset");const k=this[g],V=this[g+7];k!==void 0&&V!==void 0||Ft(g,this.length-8);const ct=(k<<24)+65536*this[++g]+256*this[++g]+this[++g];return(BigInt(ct)<<BigInt(32))+BigInt(this[++g]*2**24+65536*this[++g]+256*this[++g]+V)})),l.prototype.readFloatLE=function(g,k){return g>>>=0,k||U(g,4,this.length),u.read(this,g,!0,23,4)},l.prototype.readFloatBE=function(g,k){return g>>>=0,k||U(g,4,this.length),u.read(this,g,!1,23,4)},l.prototype.readDoubleLE=function(g,k){return g>>>=0,k||U(g,8,this.length),u.read(this,g,!0,52,8)},l.prototype.readDoubleBE=function(g,k){return g>>>=0,k||U(g,8,this.length),u.read(this,g,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(g,k,V,ct){g=+g,k>>>=0,V>>>=0,ct||z(this,g,k,V,Math.pow(2,8*V)-1,0);let yt=1,Et=0;for(this[k]=255&g;++Et<V&&(yt*=256);)this[k+Et]=g/yt&255;return k+V},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(g,k,V,ct){g=+g,k>>>=0,V>>>=0,ct||z(this,g,k,V,Math.pow(2,8*V)-1,0);let yt=V-1,Et=1;for(this[k+yt]=255&g;--yt>=0&&(Et*=256);)this[k+yt]=g/Et&255;return k+V},l.prototype.writeUint8=l.prototype.writeUInt8=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,1,255,0),this[k]=255&g,k+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,2,65535,0),this[k]=255&g,this[k+1]=g>>>8,k+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,2,65535,0),this[k]=g>>>8,this[k+1]=255&g,k+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,4,4294967295,0),this[k+3]=g>>>24,this[k+2]=g>>>16,this[k+1]=g>>>8,this[k]=255&g,k+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,4,4294967295,0),this[k]=g>>>24,this[k+1]=g>>>16,this[k+2]=g>>>8,this[k+3]=255&g,k+4},l.prototype.writeBigUInt64LE=Ye((function(g,k=0){return $(this,g,k,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Ye((function(g,k=0){return et(this,g,k,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(g,k,V,ct){if(g=+g,k>>>=0,!ct){const jt=Math.pow(2,8*V-1);z(this,g,k,V,jt-1,-jt)}let yt=0,Et=1,Lt=0;for(this[k]=255&g;++yt<V&&(Et*=256);)g<0&&Lt===0&&this[k+yt-1]!==0&&(Lt=1),this[k+yt]=(g/Et|0)-Lt&255;return k+V},l.prototype.writeIntBE=function(g,k,V,ct){if(g=+g,k>>>=0,!ct){const jt=Math.pow(2,8*V-1);z(this,g,k,V,jt-1,-jt)}let yt=V-1,Et=1,Lt=0;for(this[k+yt]=255&g;--yt>=0&&(Et*=256);)g<0&&Lt===0&&this[k+yt+1]!==0&&(Lt=1),this[k+yt]=(g/Et|0)-Lt&255;return k+V},l.prototype.writeInt8=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,1,127,-128),g<0&&(g=255+g+1),this[k]=255&g,k+1},l.prototype.writeInt16LE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,2,32767,-32768),this[k]=255&g,this[k+1]=g>>>8,k+2},l.prototype.writeInt16BE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,2,32767,-32768),this[k]=g>>>8,this[k+1]=255&g,k+2},l.prototype.writeInt32LE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,4,2147483647,-2147483648),this[k]=255&g,this[k+1]=g>>>8,this[k+2]=g>>>16,this[k+3]=g>>>24,k+4},l.prototype.writeInt32BE=function(g,k,V){return g=+g,k>>>=0,V||z(this,g,k,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[k]=g>>>24,this[k+1]=g>>>16,this[k+2]=g>>>8,this[k+3]=255&g,k+4},l.prototype.writeBigInt64LE=Ye((function(g,k=0){return $(this,g,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Ye((function(g,k=0){return et(this,g,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(g,k,V){return Z(this,g,k,!0,V)},l.prototype.writeFloatBE=function(g,k,V){return Z(this,g,k,!1,V)},l.prototype.writeDoubleLE=function(g,k,V){return h(this,g,k,!0,V)},l.prototype.writeDoubleBE=function(g,k,V){return h(this,g,k,!1,V)},l.prototype.copy=function(g,k,V,ct){if(!l.isBuffer(g))throw new TypeError("argument should be a Buffer");if(V||(V=0),ct||ct===0||(ct=this.length),k>=g.length&&(k=g.length),k||(k=0),ct>0&&ct<V&&(ct=V),ct===V||g.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(ct<0)throw new RangeError("sourceEnd out of bounds");ct>this.length&&(ct=this.length),g.length-k<ct-V&&(ct=g.length-k+V);const yt=ct-V;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,V,ct):Uint8Array.prototype.set.call(g,this.subarray(V,ct),k),yt},l.prototype.fill=function(g,k,V,ct){if(typeof g=="string"){if(typeof k=="string"?(ct=k,k=0,V=this.length):typeof V=="string"&&(ct=V,V=this.length),ct!==void 0&&typeof ct!="string")throw new TypeError("encoding must be a string");if(typeof ct=="string"&&!l.isEncoding(ct))throw new TypeError("Unknown encoding: "+ct);if(g.length===1){const Et=g.charCodeAt(0);(ct==="utf8"&&Et<128||ct==="latin1")&&(g=Et)}}else typeof g=="number"?g&=255:typeof g=="boolean"&&(g=Number(g));if(k<0||this.length<k||this.length<V)throw new RangeError("Out of range index");if(V<=k)return this;let yt;if(k>>>=0,V=V===void 0?this.length:V>>>0,g||(g=0),typeof g=="number")for(yt=k;yt<V;++yt)this[yt]=g;else{const Et=l.isBuffer(g)?g:l.from(g,ct),Lt=Et.length;if(Lt===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(yt=0;yt<V-k;++yt)this[yt+k]=Et[yt%Lt]}return this};const _={};function j(g,k,V){_[g]=class extends V{constructor(){super(),Object.defineProperty(this,"message",{value:k.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${g}]`,this.stack,delete this.name}get code(){return g}set code(ct){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ct,writable:!0})}toString(){return`${this.name} [${g}]: ${this.message}`}}}function K(g){let k="",V=g.length;const ct=g[0]==="-"?1:0;for(;V>=ct+4;V-=3)k=`_${g.slice(V-3,V)}${k}`;return`${g.slice(0,V)}${k}`}function ht(g,k,V,ct,yt,Et){if(g>V||g<k){const Lt=typeof k=="bigint"?"n":"";let jt;throw jt=k===0||k===BigInt(0)?`>= 0${Lt} and < 2${Lt} ** ${8*(Et+1)}${Lt}`:`>= -(2${Lt} ** ${8*(Et+1)-1}${Lt}) and < 2 ** ${8*(Et+1)-1}${Lt}`,new _.ERR_OUT_OF_RANGE("value",jt,g)}(function(Lt,jt,te){St(jt,"offset"),Lt[jt]!==void 0&&Lt[jt+te]!==void 0||Ft(jt,Lt.length-(te+1))})(ct,yt,Et)}function St(g,k){if(typeof g!="number")throw new _.ERR_INVALID_ARG_TYPE(k,"number",g)}function Ft(g,k,V){throw Math.floor(g)!==g?(St(g,V),new _.ERR_OUT_OF_RANGE("offset","an integer",g)):k<0?new _.ERR_BUFFER_OUT_OF_BOUNDS:new _.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${k}`,g)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(g){return g?`${g} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(g,k){return`The "${g}" argument must be of type number. Received type ${typeof k}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(g,k,V){let ct=`The value of "${g}" is out of range.`,yt=V;return Number.isInteger(V)&&Math.abs(V)>2**32?yt=K(String(V)):typeof V=="bigint"&&(yt=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(yt=K(yt)),yt+="n"),ct+=` It must be ${k}. Received ${yt}`,ct}),RangeError);const zt=/[^+/0-9A-Za-z-_]/g;function de(g,k){let V;k=k||1/0;const ct=g.length;let yt=null;const Et=[];for(let Lt=0;Lt<ct;++Lt){if(V=g.charCodeAt(Lt),V>55295&&V<57344){if(!yt){if(V>56319){(k-=3)>-1&&Et.push(239,191,189);continue}if(Lt+1===ct){(k-=3)>-1&&Et.push(239,191,189);continue}yt=V;continue}if(V<56320){(k-=3)>-1&&Et.push(239,191,189),yt=V;continue}V=65536+(yt-55296<<10|V-56320)}else yt&&(k-=3)>-1&&Et.push(239,191,189);if(yt=null,V<128){if((k-=1)<0)break;Et.push(V)}else if(V<2048){if((k-=2)<0)break;Et.push(V>>6|192,63&V|128)}else if(V<65536){if((k-=3)<0)break;Et.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;Et.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return Et}function Ee(g){return e.toByteArray((function(k){if((k=(k=k.split("=")[0]).trim().replace(zt,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k})(g))}function me(g,k,V,ct){let yt;for(yt=0;yt<ct&&!(yt+V>=k.length||yt>=g.length);++yt)k[yt+V]=g[yt];return yt}function $t(g,k){return g instanceof k||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===k.name}function be(g){return g!=g}const Re=(function(){const g="0123456789abcdef",k=new Array(256);for(let V=0;V<16;++V){const ct=16*V;for(let yt=0;yt<16;++yt)k[ct+yt]=g[V]+g[yt]}return k})();function Ye(g){return typeof BigInt>"u"?Ne:g}function Ne(){throw new Error("BigInt not supported")}},527:function(t,n,r){var e=r(188),u=r(539),a=r(682);for(var d in e)e[d]=a(E(d));function E(l){return e[l]}e._api=u,t.exports=e},539:function(t){t.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(t){t.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(t,n,r){var e=r(539),u={};function a(l){try{return E(l),!0}catch{return!1}}function d(l){try{return E(l)}catch{return!1}}function E(l){return new Function(l)()}u._api=e,t.exports=function l(b){if(b==="class"&&(b="classes"),u._api[b].dependencies){for(var T=0;T<u._api[b].dependencies.length;T++)if(l(u._api[b].dependencies[T])===!1)return!1}return u._api[b].passes?a(u._api[b].passes):u._api[b].fails?!a(u._api[b].fails):u._api[b].is?d(u._api[b].is):u._api[b].not?!d(u._api[b].not):void 0}},251:function(t,n){n.read=function(r,e,u,a,d){var E,l,b=8*d-a-1,T=(1<<b)-1,L=T>>1,N=-7,x=u?d-1:0,M=u?-1:1,D=r[e+x];for(x+=M,E=D&(1<<-N)-1,D>>=-N,N+=b;N>0;E=256*E+r[e+x],x+=M,N-=8);for(l=E&(1<<-N)-1,E>>=-N,N+=a;N>0;l=256*l+r[e+x],x+=M,N-=8);if(E===0)E=1-L;else{if(E===T)return l?NaN:1/0*(D?-1:1);l+=Math.pow(2,a),E-=L}return(D?-1:1)*l*Math.pow(2,E-a)},n.write=function(r,e,u,a,d,E){var l,b,T,L=8*E-d-1,N=(1<<L)-1,x=N>>1,M=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=a?0:E-1,Y=a?1:-1,W=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(b=isNaN(e)?1:0,l=N):(l=Math.floor(Math.log(e)/Math.LN2),e*(T=Math.pow(2,-l))<1&&(l--,T*=2),(e+=l+x>=1?M/T:M*Math.pow(2,1-x))*T>=2&&(l++,T/=2),l+x>=N?(b=0,l=N):l+x>=1?(b=(e*T-1)*Math.pow(2,d),l+=x):(b=e*Math.pow(2,x-1)*Math.pow(2,d),l=0));d>=8;r[u+D]=255&b,D+=Y,b/=256,d-=8);for(l=l<<d|b,L+=d;L>0;r[u+D]=255&l,D+=Y,l/=256,L-=8);r[u+D-Y]|=128*W}},943:function(t){function n(r){this.message=r}n.prototype=new Error,n.prototype.name="InvalidCharacterError",t.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(r){var e=String(r).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var u,a,d=0,E=0,l="";a=e.charAt(E++);~a&&(u=d%4?64*u+a:a,d++%4)?l+=String.fromCharCode(255&u>>(-2*d&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return l}},863:function(t,n,r){var e=r(943);t.exports=function(u){var a=u.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return(function(d){return decodeURIComponent(e(d).replace(/(.)/g,(function(E,l){var b=l.charCodeAt(0).toString(16).toUpperCase();return b.length<2&&(b="0"+b),"%"+b})))})(a)}catch{return e(a)}}},127:function(t,n,r){var e=r(863);function u(a){this.message=a}u.prototype=new Error,u.prototype.name="InvalidTokenError",t.exports=function(a,d){if(typeof a!="string")throw new u("Invalid token specified");var E=(d=d||{}).header===!0?0:1;try{return JSON.parse(e(a.split(".")[E]))}catch(l){throw new u("Invalid token specified: "+l.message)}},t.exports.InvalidTokenError=u},471:function(t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(e,u){var a=u||0,d=n;return[d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]]].join("")}},814:function(t){var n=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var e=new Array(16);t.exports=function(){for(var u,a=0;a<16;a++)3&a||(u=4294967296*Math.random()),e[a]=u>>>((3&a)<<3)&255;return e}}},550:function(t,n,r){var e=r(814),u=r(471);t.exports=function(a,d,E){var l=d&&E||0;typeof a=="string"&&(d=a==="binary"?new Array(16):null,a=null);var b=(a=a||{}).random||(a.rng||e)();if(b[6]=15&b[6]|64,b[8]=63&b[8]|128,d)for(var T=0;T<16;++T)d[l+T]=b[T];return d||u(b)}},723:function(t){t.exports={version:"1.1.92",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},616:function(t,n,r){var e=r(287).hp;t.exports={toArray:function(u,a){if(!u||u.length!==36)return u;for(var d="",E=a?"0":"1",l=0;l<36;l+=1)d+=l>=26&&l<30?E:u[l];var b=(function(N){for(var x=255,M=255,D=0,Y=N.length;Y;){var W=Y>20?20:Y;Y-=W;do M+=x+=N[D++];while(--W);x=(255&x)+(x>>8),M=(255&M)+(M>>8)}return((M=(255&M)+(M>>8))<<8|(x=(255&x)+(x>>8))).toString(16)})(e.from(d));if(b){var T="";if(b.length===4)T+=b;else if(b.length<4){for(var L=0;L<4-b.length;L+=1)T+=E;T+=b}else T+=b.slice(-4)}return d.substring(0,26)+T+d.substring(26+T.length)}}},108:function(t){function n(){this.listeners={}}n.prototype.addEventListener=function(r,e){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push(e)},n.prototype.removeEventListener=function(r,e){if(r in this.listeners){for(var u=this.listeners[r],a=0,d=u.length;a<d;a++)if(u[a]===e)return void u.splice(a,1)}},n.prototype.dispatchEvent=function(r){if(!(r.type in this.listeners))return!0;for(var e=this.listeners[r.type].slice(),u=0,a=e.length;u<a;u++)e[u].call(this,r);return!r.defaultPrevented},t.exports=n},1:function(t){var n=null,r=null,e=0;function u(a,d){return encodeURIComponent(a)+"="+encodeURIComponent(d)}t.exports={init:function(a,d){n=a.errorServerUrl+"/reportSdkMsg",r=d.appId,e=typeof d.logMessageRate=="number"?d.logMessageRate:100},send:function(a){if(n&&!(100*Math.random()>e)){var d=n;d+="?"+u("appId",r),d+="&"+u("msg",JSON.stringify(a));var E=new Image;E.onerror=function(){},E.src=d}}}},611:function(t){var n=(function(){function r(u,a){this.method=u,this.url=a,this.headers={},this.data=null,this.timeout=1e4}r.prototype.set=function(u,a){if(typeof u=="object")for(var d in u)u.hasOwnProperty(d)&&(this.headers[d]=u[d]);else this.headers[u]=a;return this},r.prototype.send=function(u){return this.data=u,this},r.prototype.timeout=function(u){return this.timeout=u,this},r.prototype.end=function(u){var a=this,d={method:this.method,headers:this.headers};function E(N,x){return{ok:!1,status:x?x.status:400,response:N instanceof Error?N.message:N}}if(this.data&&(d.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,b=fetch(this.url,d).then((function(N){if(!N.ok)throw{response:N,message:N.statusText||"HTTP error "+N.status};return(function(x){var M=x.headers.get("content-type");return M&&M.includes("application/json")?x.json().then((function(D){return{ok:x.ok,status:x.status,body:D}})):x.text().then((function(D){return{ok:x.ok,status:x.status,body:D}}))})(N)}));b.catch((function(){}));var T=new Promise((function(N,x){l=setTimeout((function(){x(new Error("Request timeout"))}),a.timeout)}));Promise.race([b,T]).then((function(N){clearTimeout(l),N.ok?u(null,N):u(E(N.response,N))})).catch((function(N){clearTimeout(l),u(E(N.message,N&&N.response))}))}else{var L=new XMLHttpRequest;L.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(N){L.setRequestHeader(N,a.headers[N])})),L.timeout=this.timeout,L.onload=function(){var N={ok:L.status>=200&&L.status<300,status:L.status,body:L.responseText};try{N.body=JSON.parse(L.responseText)}catch{}N.ok?u(null,N):u(E("HTTP error "+L.status,N))},L.onerror=function(){u(E("Error",{status:400}))},L.ontimeout=function(){u(E("Timeout",{status:408}))},L.send(this.data?JSON.stringify(this.data):null)}};var e={};return["get","post","put","delete"].forEach((function(u){e[u]=function(a){return new r(u,a)}})),e})();t.exports=n},776:function(t,n,r){var e,u,a=r(611),d=r(723),E=r(884),l=d.serverUrl;function b(){e=e||{},u!==void 0&&(e[d.headers.sessionId]=u);var T={Accept:"application/json","Content-Type":"application/json"};return Object.keys(e).forEach((function(L){e[L]!==void 0&&(T[L]=e[L])})),T}t.exports={setSessionId:function(T){u=T},makeRequest:function(T,L){var N=T.path,x=T.data,M=T.method;(function D(Y){a[M](Y+"/"+N).set(b()).send(x).end((function(W,J){if(W){if(Y!==d.serverUrl)return void D(d.serverUrl);E.isFunction(L)&&L({ok:!1,status:W.status,response:W.response})}else E.isFunction(L)&&L(null,{ok:J.ok,status:J.status,response:J.body})}))})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:b,init:function(T,L){(function(N){e=N})(T),L.eventsReportUrl&&typeof L.eventsReportUrl=="string"&&(l=E.normalizePath(L.eventsReportUrl))}}},13:function(t,n,r){var e,u=r(723),a="getItem";function d(l,b){l&&l.contentWindow.postMessage(b,"*")}function E(l,b,T){l.removeEventListener?l.removeEventListener(b,T,!1):l.attachEvent&&l.detachEvent("on"+b,T)}t.exports={init:function(l){var b,T=(b=!1,function(){b||(b=!0,l())});(e=document.createElement("iframe")).id="storageIframe",e.width=e.height=e.frameBorder=0,e.style.display="none",e.setAttribute("src",u.storageIframeUrl),e.onload=T,e.onerror=T,document.body.appendChild(e),window.setTimeout(T,1e4)},getKey:function(l,b){var T,L,N,x,M,D;e||b(),T=window,L="message",x=function Y(W){if(W.data&&typeof W.data=="string")try{var J=JSON.parse(W.data);if(J.command===a){var q=J.response;E(window,"message",Y),b(q)}}catch{E(window,"message",Y),b()}},M=b,D=!1,window.setTimeout((function(){D||(D=!0,M())}),5e3),N=function(Y){D||(D=!0,x(Y))},T.addEventListener?T.addEventListener(L,N,!1):T.attachEvent&&T.attachEvent("on"+L,N),d(e,JSON.stringify({command:a,key:l}))},setKey:function(l,b){d(e,JSON.stringify({command:"setItem",key:l,value:b}))},cleanup:function(){e&&e.parentElement&&e.parentElement.removeChild&&(e.parentElement.removeChild(e),e=null)}}},528:function(t){var n,r={setItem:function(l,b){this[l]=b},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function e(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function u(){return n===void 0&&(n=e()),n?localStorage:r}function a(l,b){u().setItem(l,b)}function d(l){return u().getItem(l)}function E(l){return u().removeItem(l)}t.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:a,getItem:d,getBackwardCompatabilityItem:function(l,b){var T=d(l);return!T&&b&&(T=d(b))&&(a(l,T),E(b)),T},removeItem:E,hasAccessToLocalStorage:e,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return r.getItem(l)}},setSessionItem:function(l,b){try{return sessionStorage.setItem(l,b)}catch{return r.setItem(l,b)}}}},884:function(t){var n="nsure-app-cid";function r(e){var u=e;return u&&u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),u&&!/^https?:\/\//i.test(u)&&(u="https://"+u),u}t.exports={isFunction:function(e){return typeof e=="function"},loadScript:function(e,u){var a=!1,d=document.createElement("script");function E(){a||(a=!0,u())}d.onload=E,d.onreadystatechange=function(){a||d.readyState!=="complete"||E()},d.onerror=function(){a||(a=!0,u("Error loading script"))},d.src=e,document.body.appendChild(d)},loadImage:function(e){var u=document.createElement("img");u.src=e,u.style.height=0,u.style.width=0,u.style.display="none",u.style.visibility="hidden",document.body.appendChild(u)},randomInt:function(e,u){var a,d=u-e+1;return Math.floor(((a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?a(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*d+e)},isValidDate:function(e){return e instanceof Date&&!isNaN(e)},getAppContextId:function(){try{var e=sessionStorage.getItem(n);e?sessionStorage.removeItem(n):e=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(u=e,function(){try{sessionStorage.setItem(n,u)}catch{}}))}catch{e=0}var u;return e},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:r,getConfigBaseUrls:function(e,u){var a=null;if(typeof e.configBaseUrl=="string"&&e.configBaseUrl.length>0){var d=u.coreConfigFileUrl.indexOf("/core-config/"),E=d>0?u.coreConfigFileUrl.substring(d):"/core-config/config.json";a=r(e.configBaseUrl)+E}return{mainConfigBaseUrl:a||u.coreConfigFileUrl,altConfigBaseUrl:a===u.coreConfigFileUrl?null:u.coreConfigFileUrl}}}},543:function(t){var n="f8ad0f9b-",r="ns_install_reported",e=n+r,u=n+"ns_reportedFpInSession";t.exports={webType:"Web",oldInstallEventReportedKeyName:r,installEventReportedKeyName:e,fingerprintReportedInSessionKey:u,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(t){t.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(t){t.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(t,n,r){var e=r(723),u=r(776),a=r(387),d=r(733),E=r(472),l=r(376),b=r(120),T=r(142),L=r(636),N=r(496),x=r(1),M=r(336);t.exports={init:function(D){var Y=D.deviceId,W=D.linkedDevices,J={};J[e.headers.appId]=D.appId,J[e.headers.partnerId]=D.partnerId,J[e.headers.sdkClientVersion]=e.version,J[e.headers.sdkApiVersion]=e.sdkApiVersion,J[e.headers.sdkClientType]=e.sdkClientType,J[e.headers.appContextId]=D.appContextId,u.init(J,D),a.addMetadataProps(D),x.init(e,D),a.reportInitEvent(Y),N.init(D),M.init(D),d.installSdk(D,(function(q){q||l.manageFingerprint(Y,!0)})),d.reportLinkDevices(Y,W),E.manageSessionId({deviceId:Y,initModuleConfig:D}),b.manageDomEvents(Y),T.manageKeepAlive({deviceId:Y}),L.reportVersionUpgrade({deviceId:Y,initModuleVersion:D.clientVersion,coreModuleVersion:e.version})}}},143:function(t,n,r){var e=r(108),u=r(23).oneMinute,a=r(298);function d(){e.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function E(l){e.call(this),this.activityServiceId=l}d.prototype=Object.create(e.prototype),d.prototype.constructor=d,d.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach((function(b){document.addEventListener(b,l.activityEvents[b]=function(){l.activityHandler()})}))},d.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(a.activityEvent))},d.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach((function(b){document.removeEventListener(b,l.activityEvents[b])}))},E.prototype=Object.create(e.prototype),E.prototype.constructor=E,E.prototype.trackInactivity=function(l){var b,T=new d,L=this,N=!1;function x(){N||(clearTimeout(b),setTimeout((function(){L.trackInactivity(l)}),u))}T.addEventListener(a.activityEvent,x),T.observe(),b=setTimeout((function(){N=!0,T.stopActivityListeners(),T.removeEventListener(a.activityEvent,x),L.dispatchEvent(new Event(a.inactivityEvent))}),l)},t.exports=E},496:function(t,n,r){var e,u=r(120),a=r(776),d=r(376),E=r(23),l=r(723),b=r(38),T=r(543),L=r(336),N=r(884),x=[],M=[],D=null,Y=6e4,W=5e3,J=null,q=N.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),ot=0,pt=null,ft=Date.now(),Rt=0,At=null,st=!1,lt=!1,mt=!1,wt=!1,P=[];function f(){M=x,x=[],z(),S()}function S(){D&&clearTimeout(D),D=setTimeout(f,Y)}function U(){var K={device:{id:e,type:T.webType},metadata:{clientRequestId:E.getClientRequestId()}};return J&&J.fingerprintHash&&(K.device.fingerprint=J.fingerprintHash),K}function z(K){if(M.length)if(J!==null){var ht=Object.assign(U(),{events:M});a.makeRequest({path:"bulk",data:ht,method:a.methods.post},K)}else d.getFingerprint((function(St){J=St,z(K)}))}function $(K,ht){return x.push(K),ht?new Blob([JSON.stringify(x)]).size:0}function et(){if(mt){var K=Date.now();K-ft>W&&($({i:{dr:K-ft,ac:K-ft-Rt},metadata:{type:b.I,timestamp:K}},!1),Rt=0)}}function ut(){S(),M=x,x=[],z()}function Z(K){et(),(function(){if(wt&&Math.random()<.25){for(var ht=[],St=0;St<3;St++)ht.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Ft=b.DY+ht[0],zt={metadata:{type:Ft,timestamp:Date.now()}};zt[Ft]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},zt[Ft][ht.join("")]=Math.floor(1e3*Math.random())+1,$(zt,!1)}})(),(function(ht){L.triggerEventOnEvent(ht)})(K),$(Object.assign({metadata:{type:K.eventType,timestamp:Date.now()}},K.payload),!0)>32768&&ut(),K.eventType!==b.C&&K.eventType!==b.S&&K.eventType!==b.KD&&K.eventType!==b.MM||(ft=Date.now())}function h(){st&&ut()}function _(K){return window.addEventListener(K,h,!0),function(){window.removeEventListener(K,h,!0)}}function j(K,ht){return!K||K.indexOf(ht)>-1}t.exports={init:function(K){if(!st){var ht=K.bulkEvents&&K.bulkEvents.mask;if(!Array.isArray(ht)||ht.length!==0){var St=K.bulkEvents&&typeof K.bulkEvents.pct=="number"?K.bulkEvents.pct:100;if(!(St===0||Math.random()>St/100)){var Ft=K.bulkEvents&&K.bulkEvents.appMaskInclude;if(!Array.isArray(Ft)||Ft.indexOf(K.appId)!==-1){var zt=K.bulkEvents&&K.bulkEvents.appMaskExclude;if(!Array.isArray(zt)||zt.indexOf(K.appId)===-1){var de=j(ht,b.C),Ee=j(ht,b.KD),me=j(ht,b.S),$t=j(ht,b.PC),be=j(ht,b.MM),Re=j(ht,b.PL),Ye=j(ht,b.I),Ne=j(ht,b.DY),g=Ye||Re;e=K.deviceId,S(),de&&P.push(u.setClickListener(Z)),Ee&&P.push(u.setKeyDownListener(Z)),me&&P.push(u.setScrollListener(Z)),$t&&P.push(u.setPageChangeListener(Z)),be&&P.push(u.setMouseMoveListener(Z)),lt=Re,mt=Ye,wt=Ne,g&&P.push((function(){function k(){if(document.hidden)pt=Date.now(),At=pt;else if(pt!==null){var V=Date.now();ot+=V-pt,pt=null,Rt+=V-At}}return document.addEventListener("visibilitychange",k),function(){document.removeEventListener("visibilitychange",k)}})()),P.push((function(){function k(){if(et(),(function(){if(lt){var Lt=Date.now(),jt=Lt-q;$({metadata:{type:b.PL,timestamp:Lt},pl:{dr:jt,ac:jt-ot}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(x.length>0)try{var V=a.getRequestHeaders(),ct=Object.assign(U(),{events:x}),yt=new URLSearchParams;yt.append("data",JSON.stringify(ct)),yt.append("headers",JSON.stringify(V));var Et=new Blob([yt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",Et)}catch{}}else M=x,z()}return window.addEventListener("beforeunload",k),function(){window.removeEventListener("beforeunload",k)}})()),st=!0,x=[],de||P.push(_("click")),P.push(_("paste"))}}}}}},cleanup:function(){st&&(D&&clearTimeout(D),P.forEach((function(K){K()})),P=[],st=!1)},trigger:h}},120:function(t,n,r){var e=r(709),u=r(38),a=r(23);function d(){return"ontouchstart"in window}function E(l){var b={};if(l.nodeName){b.name=l.nodeName,l.className&&(b.className=String(l.className)),l.id&&(b.id=l.id);var T=l.getAttribute&&l.getAttribute("type");T&&(b.type=T),l.placeholder&&(b.placeholder=l.placeholder)}return b}t.exports={manageDomEvents:function(l){e.managePasteEvents(l)},getDomProperties:E,setClickListener:function(l){function b(L){var N={eventType:u.C,payload:{c:{d:E(L.target)}}},x=L.target.textContent||L.target.innerText||"";if(x){var M=a.transformDomNodeContent(x);N.payload[u.C].x={p:M.prefix,s:M.suffix,l:M.length}}l(N)}var T=d()?"touchend":"click";return window.addEventListener(T,b,!0),function(){window.removeEventListener(T,b,!0)}},setKeyDownListener:function(l){function b(T){l({eventType:u.KD,payload:{kd:{d:E(T.target),k:T.key||T.code||"na"}}})}return window.addEventListener("keydown",b,!0),function(){window.removeEventListener("keydown",b,!0)}},setScrollListener:function(l){var b=null,T=0,L=0,N={x:0,y:0},x=0,M=0,D=0,Y=0,W=0,J=0;function q(pt){l({eventType:u.S,payload:{s:{d:E(pt.target),di:{x:N.x,y:N.y},t:M-x,sx:D,sy:Y,ex:W,ey:J}}}),T=0,L=0,N.x=0,N.y=0,b=null,x=0,M=0}function ot(pt){var ft=pt.target.scrollingElement||pt.target;if(ft&&(ft===document&&(ft=document.documentElement),ft instanceof Element)){var Rt=ft.getBoundingClientRect(),At=-Rt.left+ft.scrollLeft,st=-Rt.top+ft.scrollTop;b?(clearTimeout(b),M=Date.now(),W=At,J=st):(x=Date.now(),M=x,W=D=At,J=Y=st),(N.x||N.y||T||L)&&(N.x+=Math.abs(At-T),N.y+=Math.abs(st-L)),T=At,L=st,b=setTimeout(q.bind(null,pt),200)}}return window.addEventListener("scroll",ot,!0),function(){b&&clearTimeout(b),window.removeEventListener("scroll",ot,!0)}},setPageChangeListener:function(l){var b,T,L,N=null,x=null,M=0;function D(q){var ot;if(window.URL){var pt=new URL(q,"http://example.com");ot=pt.pathname+pt.hash}else ot=q.indexOf("?")>-1?q.split("?")[0]:q.indexOf("#")>-1?q.split("#")[0]:q;if(ot!==N){var ft=Date.now()-L;l({eventType:u.PC,payload:{pc:{f:N,t:ot,dr:ft,ac:ft-M}}}),N=ot,L=Date.now()}}function Y(){if(document.hidden)x=Date.now();else if(x!==null){var q=Date.now();M+=q-x,x=null}}function W(q){D(q.newURL)}function J(){D(window.location.href)}return window.history?(N=window.location.pathname||"/",b=history.pushState,T=history.replaceState,L=Date.now(),window.addEventListener("hashchange",W),window.addEventListener("popstate",J),history.pushState=function(q,ot,pt){return D(pt),b.apply(history,arguments)},history.replaceState=function(q,ot,pt){return D(pt),T.apply(history,arguments)},document.addEventListener("visibilitychange",Y),function(){history.pushState=b,history.replaceState=T,window.removeEventListener("hashchange",W),window.removeEventListener("popstate",J),document.removeEventListener("visibilitychange",Y),N=null,M=0}):function(){}},setMouseMoveListener:function(l){var b=[],T=!1,L=null,N=0,x={x:0,y:0};function M(){b.length!==0&&(l({eventType:u.MM,payload:{mm:{s:b.slice(),l:T,di:x}}}),b=[])}function D(W){var J,q;W.touches&&W.touches.length>0?(J=W.touches[0].clientX,q=W.touches[0].clientY):(J=W.clientX,q=W.clientY),J!==void 0&&q!==void 0&&(b.length>0&&(x.x+=Math.abs(J-b[b.length-1][0]),x.y+=Math.abs(q-b[b.length-1][1])),b.push([J,q]),b.length>1e3&&(T=!0,(N+=2)>=1e3&&(N=2),b.splice(N,1)),L&&clearTimeout(L),L=setTimeout(M,200))}var Y=d()?"touchmove":"mousemove";return window.addEventListener(Y,D,!0),function(){L&&clearTimeout(L),window.removeEventListener(Y,D,!0)}}}},387:function(t,n,r){var e=r(776),u=r(23),a=r(287).hp,d=r(527),E=r(543),l=["storeInfo"],b={};function T(){var x={};for(var M in d)if(d.hasOwnProperty(M)){var D=M.charAt(0);D===D.toLowerCase()&&D!==D.toUpperCase()&&(x[M]=d[M])}return x}function L(x,M){var D=x.eventType,Y=x.deviceId,W=x.fingerprintProVisitorId,J=x.fingerprintProRequestId,q=x.fingerprintHash,ot=(function(mt){try{return a.from(JSON.stringify(mt)).toString("base64")}catch{return}})(x.fingerprintComponents),pt=x.deviceExtendedInfo,ft=x.payload,Rt={metadata:{type:D},device:{id:Y,fingerprint:q,rawFingerprint:ot,type:E.webType}};W&&(Rt.device.visitorId=W),J&&(Rt.device.fpRequestId=J);var At=Object.assign({},u.getClientMetadata(u.metadataType.payload),b);for(var st in At)At.hasOwnProperty(st)&&(Rt.metadata[st]=At[st]);for(var lt in ft)ft.hasOwnProperty(lt)&&(Rt[lt]=ft[lt]);pt&&(Rt.device.extendedInfo=pt),e.makeRequest({path:"events",data:Rt,method:e.methods.post},M)}function N(x){var M=x.type,D=x.deviceId,Y=x.fingerprintProVisitorId,W=x.fingerprintProRequestId,J=x.fingerprintHash,q=x.fingerprintComponents,ot=x.deviceExtendedInfo,pt=x.callback,ft={eventType:M,deviceId:D,fingerprintHash:J,fingerprintComponents:q,deviceExtendedInfo:ot};Y&&(ft.fingerprintProVisitorId=Y),W&&(ft.fingerprintProRequestId=W),L(ft,pt)}t.exports={addMetadataProps:function(x){for(var M=0;M<l.length;M+=1){var D=l[M];x.hasOwnProperty(D)&&(b[D]=x[D])}},reportEvent:L,reportAppInstallEvent:function(x,M,D,Y,W,J){N({type:"appInstall",deviceId:x,fingerprintProVisitorId:M,fingerprintProRequestId:D,fingerprintHash:Y,fingerprintComponents:W,deviceExtendedInfo:T(),callback:J})},reportFingerprintEvent:function(x,M,D,Y){N({type:"fingerprint",deviceId:x,fingerprintHash:M,fingerprintComponents:D,fingerprintProRequestId:Y})},reportInitEvent:function(x){N({type:"appInit",deviceId:x})}}},625:function(t,n,r){var e=r(269),u=r(1);t.exports={getFingerprint:function(a,d){if(e&&a)try{e.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",e.defaultEndpoint],modules:[e.makeIdentificationModule(),e.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",e.defaultScriptUrlPattern],remoteControlDetection:!0}).then((function(l){return l.get()})).then((function(l){typeof d=="function"&&d(l?{fingerprintVisitorId:l.visitorId,fingerprintRequestId:l.requestId}:{})})).catch((function(){typeof d=="function"&&d({})}))}catch(l){var E={msg:"FingerprintJS.load pro error",err:JSON.stringify(l)};u.send(E),typeof d=="function"&&d({})}else d({})}}},376:function(t,n,r){var e=r(568),u=r(528),a=r(387),d=r(1),E="ns_fp_hash";function l(T,L,N,x){a.reportFingerprintEvent(N,T,L,x)}function b(T){try{e.load({monitoring:!1}).then((function(N){N.get().then((function(x){T(x?{fingerprintHash:x.visitorId,fingerprintComponents:x.components}:{})})).catch((function(){typeof T=="function"&&T({})}))})).catch((function(){typeof T=="function"&&T({})}))}catch(N){var L={msg:"FingerprintJS.load error",err:JSON.stringify(N)};d.send(L),typeof T=="function"&&T({})}}t.exports={manageFingerprint:function(T,L,N){b((function(x){var M=x.fingerprintHash,D=x.fingerprintComponents;u.getItem(E)!==M&&(L&&l(M,D,T),u.setItem(E,M)),typeof N=="function"&&N({fingerprintHash:M,fingerprintComponents:D})}))},getFingerprint:b,reportFingerprintWithProInfo:function(T,L){b((function(N){l(N.fingerprintHash,N.fingerprintComponents,T,L)}))}}},733:function(t,n,r){var e=r(528),u=r(376),a=r(625),d=r(387),E=r(142),l=r(1),b=r(543),T="linkDevices";function L(x,M,D){u.getFingerprint((function(Y){var W=Y.fingerprintHash,J=Y.fingerprintComponents;d.reportEvent({eventType:T,deviceId:x,fingerprintHash:W,fingerprintComponents:J,payload:{linkedDevices:[M,D]}})}))}function N(x,M){if(M)for(var D=0,Y=M.length;D<Y;D+=1){var W=M[D];if(W&&W.length>1){var J=W[0],q=W[1];J&&q&&J!==q&&L(x,J,q)}}}t.exports={installSdk:function(x,M){var D=x.deviceId,Y=x.loadFingerprintJsPro,W=(x.supressInstallBackwardCompatibility||[]).indexOf(x.appId)===-1,J=(function(ot,pt){var ft=pt?e.getBackwardCompatabilityItem(b.installEventReportedKeyName,b.oldInstallEventReportedKeyName):e.getItem(b.installEventReportedKeyName);return ft?(ft==="true"&&(e.setItem(b.installEventReportedKeyName,ot),ft=ot),ot===ft?{isInstalled:!0,reportedDeviceId:ot}:{isInstalled:!1,reportedDeviceId:ft}):{isInstalled:!1,reportedDeviceId:null}})(D,W);function q(ot,pt,ft){if(ft>3)M&&M(!1);else{var Rt=pt.fingerprintHash,At=pt.fingerprintComponents,st=ot.fingerprintVisitorId,lt=ot.fingerprintRequestId;d.reportAppInstallEvent(D,st,lt,Rt,At,(function(mt){if(mt){var wt={msg:"Failed sending appInstall",err:JSON.stringify(mt),deviceId:D,fingerprintHash:Rt,fingerprintRequestId:lt,numberOfRetry:ft};l.send(wt),q(ot,pt,ft+1)}else e.setItem(b.installEventReportedKeyName,D),e.setItem("ns_irts",Date.now()),E.manageKeepAlive({deviceId:D,fingerprintInfo:pt,setStartTimestamp:!0}),M&&M(!0)}))}}J.isInstalled?M&&M(!1):(J.reportedDeviceId&&J.reportedDeviceId!==D&&N(D,[[D,J.reportedDeviceId]]),a.getFingerprint(Y,(function(ot){u.manageFingerprint(D,!1,(function(pt){q(ot,pt,1)}))})))},reportLinkDevices:N}},142:function(t,n,r){var e=r(528),u=r(884),a=r(387),d=r(376),E="ns_ka_ts",l="ns_ka_step_",b=[10,30,40,60];function T(M){return l+M}function L(){var M=parseInt(e.getItem(E),10);return u.isValidDate(new Date(M))?M:null}function N(M,D){var Y=(function(){var W=L();if(!W)return null;for(var J,q=Math.floor((new Date().getTime()-W)/1e3),ot=0;ot<b.length;ot+=1){var pt=b[ot],ft=ot<b.length-1?b[ot+1]:null;if(q>=pt&&(!ft||q<ft)&&(J=pt,!e.getItem(T(J))))return{stepToReport:pt,timeToWaitInSeconds:0};if(q<pt)return{stepToReport:pt,timeToWaitInSeconds:pt-q}}return null})();Y&&(Y.timeToWaitInSeconds===0?((function(W,J,q){var ot=J.fingerprintHash,pt=J.fingerprintComponents;a.reportEvent({eventType:"keepAlive",deviceId:W,fingerprintHash:ot,fingerprintComponents:pt,payload:{keepAlive:{step:q}}}),e.setItem(T(q),!0)})(M,D,Y.stepToReport),N(M,D)):Y.timeToWaitInSeconds>0&&setTimeout((function(){N(M,D)}),1e3*Y.timeToWaitInSeconds))}var x={manageKeepAlive:function(M){var D=M.deviceId,Y=M.fingerprintInfo;M.setStartTimestamp&&!L()&&e.setItem(E,new Date().getTime()),Y?N(D,Y):d.getFingerprint((function(W){N(D,W)}))}};t.exports=x},709:function(t,n,r){var e=r(387),u=r(376),a=r(23);function d(b){var T,L=b?b.value||b.innerText:null;return{nodeContent:L,normalizedNodeContent:(T=L,a.removeWhitespaces(T))}}function E(b){var T=a.transformDomNodeContent(b),L=b||"";return T.onlyDigits=/^[0-9]+$/.test(L),T.containsWhitespace=/\s/.test(L),T.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(L),T}var l={managePasteEvents:function(b){document.addEventListener("paste",(function(T){var L=d(T.target);setTimeout((function(){(function(N){var x=N.deviceId,M=N.contentBeforePaste,D=M.nodeContent,Y=M.normalizedNodeContent,W=N.domNode,J={paste:{domNode:{}}};if(W.nodeName){J.paste.domNode.name=W.nodeName,W.className&&(J.paste.domNode.className=W.className),W.id&&(J.paste.domNode.id=W.id);var q=W.getAttribute&&W.getAttribute("type");q&&(J.paste.domNode.type=q),J.paste.domNode.content={};var ot=d(W),pt=ot.nodeContent,ft=ot.normalizedNodeContent;J.paste.domNode.content.beforePaste=E(D),J.paste.domNode.content.afterPaste=E(pt),J.paste.domNode.normalizedContent={},J.paste.domNode.normalizedContent.beforePaste=E(Y),J.paste.domNode.normalizedContent.afterPaste=E(ft),W.placeholder&&(J.paste.domNode.placeholder=W.placeholder),J.paste.url=window.location.href}u.getFingerprint((function(Rt){var At=Rt.fingerprintHash;e.reportEvent({eventType:"paste",deviceId:x,fingerprintHash:At,payload:J})}))})({deviceId:b,contentBeforePaste:L,domNode:T.target})}),0)}))}};t.exports=l},472:function(t,n,r){var e=r(127),u=r(108),a=r(884),d=r(23),E=r(776),l=r(528),b=r(298).inactivityEvent,T=r(143),L=r(387),N=r(376),x="ns_sid";function M(){u.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function D(W){var J=W.deviceId,q=W.initModuleConfig,ot=W.jwtSessionId,pt=W.callback,ft=1e4;try{ft=e(ot).inactivityTimeout}catch{ft=1e4}var Rt=new T(new Date().getTime());Rt.addEventListener(b,(function At(){Rt.removeEventListener(b,At),Y({deviceId:J,initModuleConfig:q,forceRenewSessionDueToInactivity:!0,callback:pt})})),Rt.trackInactivity(ft)}function Y(W){var J,q=W.deviceId,ot=W.initModuleConfig,pt=!!W.forceRenewSessionDueToInactivity,ft=W.callback,Rt=l.getItem(x);try{J=e(Rt),E.setSessionId(Rt)}catch{J=null}pt||!J||1e3*((J||{}).exp||0)<new Date().getTime()?(function(At,st){var lt=At.deviceId,mt=(At.initModuleConfig||{}).storeInfo,wt=new M;wt.addEventListener(wt.eventTypes.fetchComplete,(function P(f){wt.removeEventListener(wt.eventTypes.fetchComplete,P),st(f.detail)})),wt.fetchSessionId(lt,mt)})({deviceId:q,initModuleConfig:ot},(function(At){Rt=At,l.setItem(x,Rt),E.setSessionId(Rt),(function(st){try{var lt=st.deviceId,mt=e(st.jwtSessionId).ets;if(!mt)return;N.getFingerprint((function(wt){var P=wt.fingerprintHash,f=wt.fingerprintComponents;L.reportEvent({eventType:"ping",deviceId:lt,fingerprintHash:P,fingerprintComponents:f,payload:{ping:{ets:mt}}})}))}catch{}})({deviceId:q,jwtSessionId:Rt}),D({deviceId:q,initModuleConfig:ot,jwtSessionId:Rt,callback:ft}),a.isFunction(ft)&&ft(Rt)})):(D({deviceId:q,initModuleConfig:ot,jwtSessionId:Rt,callback:ft}),a.isFunction(ft)&&ft(Rt))}M.prototype=Object.create(u.prototype),M.prototype.constructor=M,M.prototype.fetchSessionId=function(W,J){var q=this,ot="session?"+d.getClientMetadata(d.metadataType.queryString)+"&deviceId="+W;J&&(J.id&&(ot+="&storeId="+J.id),J.type&&(ot+="&storeType="+J.type)),(function pt(){var ft;ft=function(Rt,At){!Rt&&At&&At.ok?q.dispatchEvent(new CustomEvent(q.eventTypes.fetchComplete,{detail:At.response})):setTimeout(pt,a.randomInt(4e4,6e4))},E.makeRequest({path:ot,method:E.methods.get},ft)})()},t.exports={manageSessionId:Y,setRetrySessionTimeout:function(W){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(t,n,r){var e=r(23),u=r(376),a=r(625),d=r(528),E=r(543).fingerprintReportedInSessionKey,l=r(543).eventTriggers,b={},T=null,L=!1,N=!1;function x(D){var Y=D||{};Object.keys(Y).forEach((function(W){W===l.fingerPrint&&N&&(d.getSessionItem(E)||(a.getFingerprint(L,(function(J){u.reportFingerprintWithProInfo(T,J.fingerprintRequestId)})),d.setSessionItem(E,!0)))}))}function M(D,Y,W){for(var J=0;J<Y.payload.length;J++){var q=Y.payload[J];q&&q.event&&q.action&&e.isSubObject(q.event,D.payload)&&(W[q.action]=!0)}}t.exports={init:function(D){if(D.eventTrigger){try{var Y=atob(D.eventTrigger),W=JSON.parse(Y);if(!W||!(b=W[D.appId]))return}catch{return}T=D.deviceId,L=D.loadFingerprintJsPro,N=!0,(function(){if(N&&b.init&&Array.isArray(b.init)){for(var J={},q=0;q<b.init.length;q++){var ot=b.init[q];ot&&ot.url&&ot.action&&new RegExp(b.init[q].url).test(window.location.href)&&(J[b.init[q].action]=!0)}x(J)}})()}},triggerEventOnEvent:function(D){if(N){var Y=b[D.eventType];if(Array.isArray(Y)){for(var W={},J=0;J<Y.length;J++){var q=Y[J];q&&q.url&&q.payload&&new RegExp(q.url).test(window.location.href)&&M(D,q,W)}x(W)}}}}},636:function(t,n,r){var e=r(528),u=r(387),a=r(376),d="ns_c_ver",E="c";function l(T){e.setItem(d,JSON.stringify(T))}function b(T,L,N,x){var M=L.fingerprintHash,D=L.fingerprintComponents;u.reportEvent({eventType:"sdkVersionUpgrade",deviceId:T,fingerprintHash:M,fingerprintComponents:D,payload:{versionUpgrade:{version:N,prevVersion:x||""}}}),l(N)}t.exports={reportVersionUpgrade:function(T){var L=T.initModuleVersion,N=T.coreModuleVersion,x={};x.i=L,x[E]=N;var M=T.deviceId,D=T.fingerprintInfo,Y=(function(){var W=e.getItem(d);if(W){try{var J=JSON.parse(W);if(typeof J=="object")return J}catch{}return{i:W}}return null})();Y&&Y.i?Y.i!==L||Y[E]&&Y[E]!==N?(Y[E]||(Y[E]=N),D?b(M,D,x,Y):a.getFingerprint((function(W){b(M,W,x,Y)}))):Y[E]||l(x):l(x)}}},23:function(t,n,r){var e=r(550),u={payload:"payload",queryString:"queryString"};function a(){return e()}function d(l,b){for(var T in l)if(l.hasOwnProperty(T)&&(!b.hasOwnProperty(T)||!E(l[T],b[T])))return!1;return!0}function E(l,b){if(l===b)return!0;if(typeof l!=typeof b)return!1;if(Array.isArray(l)&&Array.isArray(b)){if(l.length!==b.length)return!1;for(var T=0;T<l.length;T++)if(!E(l[T],b[T]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof b=="object"&&b!==null&&d(l,b)}t.exports={metadataType:u,getClientMetadata:function(l){var b=new Date().getTime(),T=a();return l===u.queryString?"timestamp="+b+"&clientRequestId="+T:{timestamp:b,clientRequestId:T}},oneMinute:6e4,getClientRequestId:a,transformDomNodeContent:function(l){var b,T,L=l||"",N=L.length;return N<=1?(b="",T=""):N===2?(b=L.slice(0,1),T=""):N===3?(b=L.slice(0,1),T=L.slice(N-1)):N===4?(b=L.slice(0,2),T=L.slice(N-1)):N===5?(b=L.slice(0,2),T=L.slice(N-2)):N===6?(b=L.slice(0,3),T=L.slice(N-2)):N===7?(b=L.slice(0,3),T=L.slice(N-3)):N===8?(b=L.slice(0,4),T=L.slice(N-3)):N===9?(b=L.slice(0,5),T=L.slice(N-3)):N===10?(b=L.slice(0,5),T=L.slice(N-4)):N>10&&(b=L.slice(0,6),T=L.slice(N-4)),{length:N,prefix:b,suffix:T}},isSubObject:d,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(t,n,r){var e,u=r(723),a=r(115),d=r(884);function E(){return a.getDeviceId()}t.exports={getDeviceId:function(){return e||(e=E()),e},getCoreModuleParams:function(l,b){var T=b||{},L=!!T.isFingerprintJsProOff,N=[];e&&e!==E()&&N.push([e,E()]);var x=d.getAppContextId(),M=T.bulkEvents||{},D=T.supressInstallBackwardCompatibility||[],Y=typeof T.logMessageRate=="number"?T.logMessageRate:100,W=T.eventTrigger||"";return Object.assign(l,{deviceId:E(),linkedDevices:N,loadFingerprintJsPro:!L,clientVersion:u.version,appContextId:x,bulkEvents:M,supressInstallBackwardCompatibility:D,logMessageRate:Y,eventTrigger:W,eventsReportUrl:T.eventsReportUrl})},parseInitParams:function(l,b){return typeof(T=l)=="string"||T instanceof String?{appId:l,partnerId:b}:l;var T},internalGetDeviceId:E}},342:function(t,n,r){var e=r(723),u=r(242),a=r(1),d=r(102),E=r(651),l=r(884),b=r(884);t.exports={version:e.version,init:l.isBrowser()?function(T,L){var N=E.parseInitParams(T,L),x=N.appId;a.init(e,{appId:x});var M=b.getConfigBaseUrls(N,e),D=M.mainConfigBaseUrl,Y=M.altConfigBaseUrl;function W(q,ot){u.getCoreModuleLoadingInfo({appId:x,url:q},(function(pt,ft){!pt&&ft||e.errorServerUrl&&a.send({msg:"Core loading error",reason:"config-file-load-fail",url:e.coreConfigFileUrl,errorDescription:pt}),ot(ft)}))}function J(q){typeof q.onPercentage=="number"&&l.randomInt(0,100)>q.onPercentage||(function(ot,pt){var ft=E.getCoreModuleParams(ot,pt);d.init(ft)})(N,q)}return W(D,(function(q){if(q)J(q);else{if(!Y)return;W(Y,(function(ot){ot&&J(ot)}))}})),E.getDeviceId()}:function(T,L){return null},getDeviceId:l.isBrowser()?function(){return E.getDeviceId()}:function(){return null}}},242:function(t,n,r){var e=r(611),u=r(528),a=r(884),d="ns_group";function E(l,b){(function(T,L){e.get(T).end((function(N,x){N?a.isFunction(L)&&L({ok:!1,errorDescription:JSON.stringify({err:N,res:x})}):a.isFunction(L)&&L(null,{ok:x.ok,status:x.status,response:x.body})}))})(l.url,(function(T,L){!T&&L&&L.response?a.isFunction(b)&&b(null,(function(N,x){var M,D=x||{},Y=D.configurations||{},W=Y[N];if(W){var J=(function(){var Rt=u.getItem(d);return Rt||(Rt=a.randomInt(1,100),u.setItem(d,Rt)),Rt})(),q=(function(Rt){var At=[],st=0;for(var lt in Rt)if(Rt.hasOwnProperty(lt)){var mt=Rt[lt],wt=st;st+=mt.percentage,At.push({from:wt,to:st,url:mt.url})}return At})(W.groups),ot=(function(Rt,At){for(var st=0,lt=Rt.length;st<lt;st++){var mt=Rt[st];if(At>mt.from&&At<=mt.to)return mt}return null})(q,J)||{};if(ot)for(M in ot)ot.hasOwnProperty(M)&&(W[M]=ot[M]);var pt=Y.default||{};for(M in pt)pt.hasOwnProperty(M)&&!W.hasOwnProperty(M)&&(W[M]=pt[M])}else W=Y.default||{};var ft={};for(M in D)D.hasOwnProperty(M)&&M!=="configurations"&&(ft[M]=D[M]);for(M in W)W.hasOwnProperty(M)&&["groups","from","to"].indexOf(M)===-1&&(ft[M]=W[M]);return ft})(l.appId,L.response)):a.isFunction(b)&&b(T.errorDescription)}))}t.exports={getCoreModuleLoadingInfo:function(l,b){var T=0;l&&l.url?E(l,(function L(N,x){N?(T+=1)<=3?E(l,L):a.isFunction(b)&&b(N):a.isFunction(b)&&b(null,x)})):a.isFunction(b)&&b("config url is not configured")}}},115:function(t,n,r){var e,u=r(550),a=r(528),d=r(13),E=r(884),l=r(616),b="ns_dev_id",T=[];function L(){var N=a.getItem(b);e||(e=N||l.toArray(u(),a.hasAccessToLocalStorage()),a.setItem(b,e))}t.exports={init:function(){d.init((function(){d.getKey(b,(function(N){N?(e=N,a.setItem(b,e),d.cleanup()):(L(),d.setKey(b,e),setTimeout(d.cleanup,2e3));for(var x=0,M=T.length;x<M;x+=1){var D=T[x];E.isFunction(D)&&D()}T=[]}))}))},addOnReadyListener:function(N){T.push(N)},getDeviceId:function(){return L(),e},reset:function(){throw new Error("Cannot call reset!")}}},635:function(t,n,r){r.d(n,{C6:function(){return u},Cl:function(){return a},Tt:function(){return d},YH:function(){return l},fX:function(){return b},sH:function(){return E}});var e=function(T,L){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,x){N.__proto__=x}||function(N,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(N[M]=x[M])},e(T,L)};function u(T,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function N(){this.constructor=T}e(T,L),T.prototype=L===null?Object.create(L):(N.prototype=L.prototype,new N)}var a=function(){return a=Object.assign||function(T){for(var L,N=1,x=arguments.length;N<x;N++)for(var M in L=arguments[N])Object.prototype.hasOwnProperty.call(L,M)&&(T[M]=L[M]);return T},a.apply(this,arguments)};function d(T,L){var N={};for(var x in T)Object.prototype.hasOwnProperty.call(T,x)&&L.indexOf(x)<0&&(N[x]=T[x]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function"){var M=0;for(x=Object.getOwnPropertySymbols(T);M<x.length;M++)L.indexOf(x[M])<0&&Object.prototype.propertyIsEnumerable.call(T,x[M])&&(N[x[M]]=T[x[M]])}return N}function E(T,L,N,x){return new(N||(N=Promise))((function(M,D){function Y(q){try{J(x.next(q))}catch(ot){D(ot)}}function W(q){try{J(x.throw(q))}catch(ot){D(ot)}}function J(q){var ot;q.done?M(q.value):(ot=q.value,ot instanceof N?ot:new N((function(pt){pt(ot)}))).then(Y,W)}J((x=x.apply(T,L||[])).next())}))}function l(T,L){var N,x,M,D,Y={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return D={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function W(J){return function(q){return(function(ot){if(N)throw new TypeError("Generator is already executing.");for(;D&&(D=0,ot[0]&&(Y=0)),Y;)try{if(N=1,x&&(M=2&ot[0]?x.return:ot[0]?x.throw||((M=x.return)&&M.call(x),0):x.next)&&!(M=M.call(x,ot[1])).done)return M;switch(x=0,M&&(ot=[2&ot[0],M.value]),ot[0]){case 0:case 1:M=ot;break;case 4:return Y.label++,{value:ot[1],done:!1};case 5:Y.label++,x=ot[1],ot=[0];continue;case 7:ot=Y.ops.pop(),Y.trys.pop();continue;default:if(!((M=(M=Y.trys).length>0&&M[M.length-1])||ot[0]!==6&&ot[0]!==2)){Y=0;continue}if(ot[0]===3&&(!M||ot[1]>M[0]&&ot[1]<M[3])){Y.label=ot[1];break}if(ot[0]===6&&Y.label<M[1]){Y.label=M[1],M=ot;break}if(M&&Y.label<M[2]){Y.label=M[2],Y.ops.push(ot);break}M[2]&&Y.ops.pop(),Y.trys.pop();continue}ot=L.call(T,Y)}catch(pt){ot=[6,pt],x=0}finally{N=M=0}if(5&ot[0])throw ot[1];return{value:ot[0]?ot[1]:void 0,done:!0}})([J,q])}}}function b(T,L,N){if(N||arguments.length===2)for(var x,M=0,D=L.length;M<D;M++)!x&&M in L||(x||(x=Array.prototype.slice.call(L,0,M)),x[M]=L[M]);return T.concat(x||Array.prototype.slice.call(L))}typeof SuppressedError=="function"&&SuppressedError}},Zc={};function _r(t){var n=Zc[t];if(n!==void 0)return n.exports;var r=Zc[t]={exports:{}};return Z3[t](r,r.exports,_r),r.exports}_r.d=function(t,n){for(var r in n)_r.o(n,r)&&!_r.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},_r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},_r.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var li={};_r.d(li,{IP:function(){return di.getDeviceId},Ts:function(){return di.init},rE:function(){return di.version}});var di=_r(342);const K3={version:di.version,init:di.init,getDeviceId:di.getDeviceId};li.Ay=K3;var ca=li.Ay;li.IP,li.Ts,li.rE;function X3(){return ca?ca.getDeviceId():null}class Jn{env;url;constructor(n){this.env=n??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(n){return fetch(this.url+`/merchant/view/${n}`).then(r=>r.json()).then(r=>r.nSureSettings?.nSurePartnerId||r.nSurePartnerId).catch(r=>{console.error(r)})}static getCoinflowBaseUrl(n){return!n||n==="prod"?"https://coinflow.cash":n==="ngrok"?"https://coinflow.ngrok.app":n==="local"?"http://localhost:3000":`https://${n}.coinflow.cash`}static getCoinflowAppBaseUrl(n){return!n||n==="prod"?"https://app.coinflow.cash":n==="ngrok"?"https://coinflow.ngrok.app":n==="local"?"http://localhost:3003":`https://app-${n}.coinflow.cash`}static getCoinflowApiUrl(n){return!n||n==="prod"?"https://api.coinflow.cash":n==="local"?"http://localhost:5000":`https://api-${n}.coinflow.cash`}static getCoinflowUrl({walletPubkey:n,sessionKey:r,route:e,routePrefix:u,env:a,subtotal:d,customPayInFees:E,presentment:l,transaction:b,blockchain:T="solana",webhookInfo:L,email:N,loaderBackground:x,handleHeightChangeId:M,bankAccountLinkRedirect:D,additionalWallets:Y,chargebackProtectionData:W,merchantCss:J,color:q,rent:ot,lockDefaultToken:pt,tokens:ft,planCode:Rt,disableApplePay:At,disableGooglePay:st,customerInfo:lt,settlementType:mt,lockAmount:wt,nativeSolToConvert:P,theme:f,usePermit:S,transactionSigner:U,authOnly:z,deviceId:$,jwtToken:et,origins:ut,threeDsChallengePreference:Z,supportEmail:h,destinationAuthKey:_,allowedPaymentMethods:j,accountFundingTransaction:K,partialUsdcChecked:ht,redemptionCheck:St,allowedWithdrawSpeeds:Ft,isZeroAuthorization:zt,zeroAuthorizationConfig:de,baseUrl:Ee}){const me=u?`/${u}/${T}`:`/${T}`,$t=new URL(me+e,Ee??Jn.getCoinflowBaseUrl(a));if(n&&$t.searchParams.append("pubkey",n),r&&$t.searchParams.append("sessionKey",r),b&&$t.searchParams.append("transaction",b),d&&("cents"in d?($t.searchParams.append("cents",d.cents.toString()),"currency"in d?$t.searchParams.append("currency",d.currency.toString()):$t.searchParams.append("currency",ua.USD)):($t.searchParams.append("token",d.address.toString()),$t.searchParams.append("amount",d.amount.toString()))),E&&E.length>0&&$t.searchParams.append("customPayInFees",encodeURIComponent(JSON.stringify(E))),l&&$t.searchParams.append("presentment",l),L&&$t.searchParams.append("webhookInfo",Pn.compressToEncodedURIComponent(JSON.stringify(L))),f&&$t.searchParams.append("theme",Pn.compressToEncodedURIComponent(JSON.stringify(f))),lt&&$t.searchParams.append("customerInfo",Pn.compressToEncodedURIComponent(JSON.stringify(lt))),N&&$t.searchParams.append("email",N),h&&$t.searchParams.append("supportEmail",h),ft&&$t.searchParams.append("tokens",ft.toString()),x&&$t.searchParams.append("loaderBackground",x),M&&$t.searchParams.append("useHeightChange",M.toString()),D&&$t.searchParams.append("bankAccountLinkRedirect",D),Y&&$t.searchParams.append("additionalWallets",Pn.compressToEncodedURIComponent(JSON.stringify(Y))),W&&$t.searchParams.append("chargebackProtectionData",Pn.compressToEncodedURIComponent(JSON.stringify(W))),$)$t.searchParams.append("deviceId",$);else{const be=X3();be&&$t.searchParams.append("deviceId",be)}return J&&$t.searchParams.append("merchantCss",J),q&&$t.searchParams.append("color",q),ot&&$t.searchParams.append("rent",ot.lamports.toString()),St&&$t.searchParams.append("redemptionCheck","true"),P&&$t.searchParams.append("nativeSolToConvert",P.lamports.toString()),pt&&$t.searchParams.append("lockDefaultToken","true"),Rt&&$t.searchParams.append("planCode",Rt),At&&$t.searchParams.append("disableApplePay","true"),st&&$t.searchParams.append("disableGooglePay","true"),mt&&$t.searchParams.append("settlementType",mt),wt&&$t.searchParams.append("lockAmount","true"),S===!1&&$t.searchParams.append("usePermit","false"),U&&$t.searchParams.append("transactionSigner",U),z===!0&&$t.searchParams.append("authOnly","true"),de?$t.searchParams.append("zeroAuthorizationConfig",JSON.stringify(de)):zt===!0&&$t.searchParams.append("isZeroAuthorization","true"),ht===!0&&$t.searchParams.append("partialUsdcChecked","true"),et&&$t.searchParams.append("jwtToken",et),ut&&$t.searchParams.append("origins",Pn.compressToEncodedURIComponent(JSON.stringify(ut))),j&&$t.searchParams.append("allowedPaymentMethods",j.join(",")),Z&&$t.searchParams.append("threeDsChallengePreference",Z),_&&$t.searchParams.append("destinationAuthKey",_),K&&$t.searchParams.append("accountFundingTransaction",Pn.compressToEncodedURIComponent(JSON.stringify(K))),Ft&&$t.searchParams.append("allowedWithdrawSpeeds",Ft.join(",")),$t.toString()}static getTransaction(n){if(n.blockchain)return this.byBlockchain(n.blockchain,{solana:()=>{if(!("transaction"in n))return;const{transaction:r}=n;if(!Vo)throw new Error("@solana/web3.js dependency is required for Solana");if(!br)throw new Error("bs58 dependency is required for Solana");if(r)return br.encode(Uint8Array.from(r.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Pn.compressToEncodedURIComponent(JSON.stringify(r))},eth:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Pn.compressToEncodedURIComponent(JSON.stringify(r))},base:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Pn.compressToEncodedURIComponent(JSON.stringify(r))},arbitrum:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Pn.compressToEncodedURIComponent(JSON.stringify(r))},stellar:()=>{if(!("transaction"in n))return;const{transaction:r}=n;if(r)return r},monad:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Pn.compressToEncodedURIComponent(JSON.stringify(r))},user:()=>{}})()}static byBlockchain(n,r){switch(n){case"solana":return r.solana;case"polygon":return r.polygon;case"eth":return r.eth;case"base":return r.base;case"arbitrum":return r.arbitrum;case"stellar":return r.stellar;case"monad":return r.monad;case"user":return r.user;default:throw new Error("blockchain not supported!")}}}function q3(t){if(!t)return;let n,r;if("name"in t&&t.name&&(n=t.name.split(" ")[0],r=t.name.split(" ").slice(1).join(" ")),"firstName"in t&&t.firstName&&(n=t.firstName),"lastName"in t&&t.lastName&&(r=t.lastName),n&&r)return{firstName:n,lastName:r}}var fa=(t=>(t.SignMessage="signMessage",t.SignTransaction="signTransaction",t.SendTransaction="sendTransaction",t.HeightChange="heightChange",t.Success="success",t.AuthDeclined="authDeclined",t.Loaded="loaded",t.AccountLinked="accountLinked",t))(fa||{});function Ho(t){let n;if("signer"in t&&typeof t.signer=="object"&&t.signer&&"wallet"in t.signer?n=t.signer.wallet:"wallet"in t&&t.wallet&&(n=t.wallet),!!n){if(typeof n=="string")return n;if(typeof n=="object"){if("publicKey"in n)return n.publicKey?n.publicKey.toString():void 0;if("address"in n)return n.address?n.address:void 0}return null}}function Kc(t,n,r){let e;try{if(e=JSON.parse(t),!("method"in e)||!("data"in e))return}catch(d){console.error("handleIFrameMessage JSON parse",d);return}const{data:u,method:a}=e;switch(a){case"signMessage":return n.handleSignMessage?n.handleSignMessage(u):void 0;case"signTransaction":return n.handleSignTransaction?n.handleSignTransaction(u):void 0;case"sendTransaction":return n.handleSendTransaction(u);case"heightChange:"+r:return n.handleHeightChange?n.handleHeightChange(u):void 0;case"success":if(!n.onSuccess)return;n.onSuccess(e.info);return;case"authDeclined":if(!n.onAuthDeclined)return;n.onAuthDeclined(e.info);return;case"loaded":return;case"accountLinked":return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${a} is not one of ${Object.values(fa)}`)}function Go(t){let n,r;return"signer"in t&&typeof t.signer=="object"&&t.signer&&"blockchain"in t.signer&&"wallet"in t.signer?(n=t.signer.blockchain,r=t.signer.wallet):"blockchain"in t&&t.blockchain&&(n=t.blockchain,r=t.wallet),n?Jn.byBlockchain(n,{solana:()=>$3({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),eth:()=>Ui({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),polygon:()=>Ui({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),base:()=>Ui({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),arbitrum:()=>Ui({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),stellar:()=>J3({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),monad:()=>Ui({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),user:()=>Q3(t)})():{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}}function $3({wallet:t,onSuccess:n,onAuthDeclined:r}){return{handleSendTransaction:async e=>{const u=Xc(e);return await t.sendTransaction(u)},handleSignMessage:async e=>{const u=t.signMessage;if(!u)throw new Error("signMessage is not supported by this wallet");const a=await u(new TextEncoder().encode(e));if(!br)throw new Error("bs58 dependency is required");return br.encode(a)},handleSignTransaction:async e=>{const u=t.signTransaction;if(!u)throw new Error("signTransaction is not supported by this wallet");const a=Xc(e),d=await u(a);if(!br)throw new Error("bs58 dependency is required");return br.encode(Uint8Array.from(d.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:n,onAuthDeclined:r}}function Xc(t){if(!Vo)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!br)throw new Error("bs58 is not defined. Please install bs58 into your project");const n=br.decode(t),r=Vo.VersionedTransaction.deserialize(n);return r.version==="legacy"?Vo.Transaction.from(n):r}function Ui({wallet:t,onSuccess:n,onAuthDeclined:r}){return{handleSendTransaction:async e=>{const u=JSON.parse(Buffer.from(e,"base64").toString()),{hash:a}=await t.sendTransaction(u);return a},handleSignMessage:async e=>t.signMessage(e),onSuccess:n,onAuthDeclined:r}}function J3({wallet:t,onSuccess:n,onAuthDeclined:r}){return{handleSendTransaction:async e=>{throw new Error(`sendTransaction is not supported on stellar, error when sending: ${e}`)},handleSignMessage:async e=>{if(!t.signMessage)throw new Error("signMessage is not supported by this wallet");return await t.signMessage(e)},handleSignTransaction:async e=>{if(!t.signTransaction)throw new Error("signTransaction is not supported by this wallet");return await t.signTransaction(e)},onSuccess:n,onAuthDeclined:r}}function Q3({onSuccess:t,onAuthDeclined:n}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:t,onAuthDeclined:n}}class tg{static on(n,r){document.addEventListener(n,r)}static dispatch(n,r){document.dispatchEvent(new CustomEvent(n,{detail:r}))}static remove(n,r){document.removeEventListener(n,r)}}const Di="tokenExCardNumber",hi="tokenExCardCvv",qc={[qr.VISA]:"visa",[qr.MASTERCARD]:"masterCard",[qr.AMEX]:"americanExpress",[qr.DISCOVER]:"discover"};async function $c(t){const{token:n,origins:r,env:e}=t;return new Promise((u,a)=>{fetch(new Jn(e).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:r,token:n,merchantId:"merchantId"in t?t.merchantId:void 0,checkoutJwt:"checkoutJwt"in t?t.checkoutJwt:void 0})}).then(async d=>{u(await d.json())}).catch(d=>a(d))})}function la({env:t,setTokenExScriptLoaded:n}){const r="tokenex-script";document.head.querySelector(`#${r}`)&&n(!0);const e=document.createElement("script");e.src=t==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",e.id=r,document.head.appendChild(e),document.getElementById(r).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),n(!0)})}function eg({iframe:t,setCachedToken:n,setLoaded:r}){const e=async()=>(t.tokenize(),await new Promise((u,a)=>{t.on("tokenize",d=>{n(d.token),u(d)}),t.on("validate",d=>{(!d.isValid||d.isCvvValid===!1)&&a(d)})}));return t.on("change",()=>n(void 0)),t.on("cvvChange",()=>n(void 0)),t.on("load",()=>{setTimeout(()=>r(!0),350);const u=document.querySelector("#tx_iframe_tokenExCardNumber");u&&(u.scrolling="no")}),t.on("focus",()=>{t.focus()}),t.on("cvvFocus",()=>{t.cvvFocus()}),r(!1),t.load(),{...t,tokenize:e}}async function Jc(t){const{token:n,cardType:r}=t;return await da(hi,t,{cvvOnly:!0,cvv:!0,cvvContainerID:hi,placeholder:"CVV",token:n,cardType:qc[r]})}async function Qc(t){return await da(Di,t,{cvv:!0,cvvContainerID:hi,cvvPlaceholder:"CVV"})}async function tf(t){return await da(Di,t,{cvv:!1})}async function da(t,n,r){const{tokenExScriptLoaded:e,css:u,debug:a,font:d,setCachedToken:E,setLoaded:l}=n;if(!e&&typeof TokenEx>"u"){console.warn("Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script");return}const b=await $c({...n,token:r.token}),{styles:T}=ng(u),L={...b,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:T,font:d,debug:a??!1,...r},N=TokenEx.Iframe(t,L);return eg({iframe:N,setCachedToken:E,setLoaded:l})}function ng(t){const n=JSON.parse(t);return{styles:{base:Rr(n.base),focus:Rr(n.focus),error:Rr(n.error),placeholder:Rr(n.placeholder),cvv:{base:Rr(n.cvv?.base),focus:Rr(n.cvv?.focus),error:Rr(n.cvv?.error),placeholder:Rr(n?.placeholder)}}}}function Rr(t){if(!t)return"";if(typeof t=="string")return t;let n="";for(const[r,e]of Object.entries(t)){let u="";r.split("").forEach(a=>{a.toUpperCase()===a?u+="-"+a.toLowerCase():u+=a}),n+=u+":"+e+";"}return n}le.nftCartItem=void 0,(t=>{(n=>{n.NFT="nft"})(t.itemClass||(t.itemClass={})),(n=>{n.IN_GAME_PRODUCT="inGameProduct",n.GAME_OF_SKILL="gameOfSkill",n.DATA_STORAGE="dataStorage",n.COMPUTING_RESOURCES="computingResources",n.SPORTS_TICKET="sportsTicket",n.E_SPORTS_TICKET="eSportsTicket",n.MUSIC_TICKET="musicTicket",n.CONFERENCE_TICKET="conferenceTicket",n.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",n.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",n.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",n.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",n.ALCOHOL="alcohol",n.DLC="DLC",n.SUBSCRIPTION="subscription",n.FUND_ACAUSE="fundACause",n.REAL_ESTATE="realEstate",n.COMPUTING_CONTRACT="computingContract",n.DIGITAL_ART="digitalArt",n.TOP_UP="topUp",n.OWNERSHIP_CONTRACT="ownershipContract",n.IN_GAME_CURRENCY="inGameCurrency",n.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(t.productType||(t.productType={}))})(le.nftCartItem||(le.nftCartItem={}));const rg=Kt.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return Jn.getCoinflowUrl(this.args)}},emits:{onMessage(t){return!0}},methods:{sendMessage(t){const n=this.$refs.iframeRef;if(!n?.contentWindow)throw new Error("Iframe not defined");n.contentWindow.postMessage(t,"*")},handleIframeMessages({data:t,origin:n}){if(!n.includes(Jn.getCoinflowBaseUrl(this.args.env)))return;this.$emit("onMessage",{data:t,origin:n});const r=Kc(t,this.args,this.args.handleHeightChangeId);r&&r.then(this.sendMessage).catch(e=>{console.error(e),this.sendMessage("ERROR "+e.message)})},async listenForMessage(t){let n;return new Promise((r,e)=>{if(n=({data:u,origin:a})=>{if(a.includes(Jn.getCoinflowBaseUrl(this.args.env))){if(u.startsWith("ERROR")){e(new Error(u.replace("ERROR","")));return}t(u)&&r(u)}},!window)throw new Error("Window not defined");window.addEventListener("message",n)}).finally(()=>{window.removeEventListener("message",n)})},async sendAndReceiveMessage(t,n){return this.sendMessage(t),this.listenForMessage(n)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),ha=(t,n)=>{const r=t.__vccOpts||t;for(const[e,u]of n)r[e]=u;return r},ig=["src","scrolling"];function og(t,n,r,e,u,a){return Kt.openBlock(),Kt.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write",title:"withdraw",frameBorder:"0",src:t.url,scrolling:t.args.handleHeightChange?"no":"yes",onLoad:n[0]||(n[0]=()=>{const d=t.$refs.iframeRef;d&&(d.style.opacity="1")})},null,40,ig)}const jo=ha(rg,[["render",og]]),sg=Kt.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:jo},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=Ho(this.args);return{...this.args,walletPubkey:t,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...Go(this.args),handleHeightChange:this.args.handleHeightChange}}}});function ag(t,n,r,e,u,a){const d=Kt.resolveComponent("coinflow-i-frame");return Kt.openBlock(),Kt.createBlock(d,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const ug=ha(sg,[["render",ag]]),cg=Kt.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:jo},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=Ho(this.args);return{...this.args,walletPubkey:t,route:`/purchase-v2/${this.args.merchantId}`,transaction:Jn.getTransaction(this.args)}},messageHandlers(){return{...Go(this.args),handleHeightChange:this.args.handleHeightChange}}}});function fg(t,n,r,e,u,a){const d=Kt.resolveComponent("coinflow-i-frame");return Kt.openBlock(),Kt.createBlock(d,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const lg=ha(cg,[["render",fg]]),pa=t=>{const n=Kt.ref(!1),r=Kt.ref(!1),e=Kt.ref(void 0),u=Kt.ref(void 0);Kt.onMounted(()=>{la({env:t.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),r.value=!0}})});const a=L=>u.value=L,d=()=>n.value=!0,E=L=>e.value=L,l=async L=>{const N=await Jc({...t,...L,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:d});return E(N),N},b=async L=>{const N=await Qc({...t,...L,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:d});return E(N),N},T=async L=>{const N=await tf({...t,...L,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:d});return E(N),N};return Kt.watchEffect(L=>{e.value&&(e.value.load(),L(()=>e.value?.remove()))}),{tokenExIframe:e,initializeTokenExIframe:b,initializeCvvOnlyTokenExIframe:l,initializeTokenExCardOnlyIframe:T,loaded:n,cachedToken:u,setTokenExScriptTag:la,tokenExScriptLoaded:r}},dg=["id"],hg=Kt.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeTokenExIframe:r,tokenExIframe:e}=pa(t.args);async function u(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Kt.watchEffect(()=>{r({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(d,E)=>(Kt.openBlock(),Kt.createElementBlock("div",{id:Kt.unref(Di)},null,8,dg))}}),pg=["id"],vg=Kt.defineComponent({__name:"CoinflowCvvInput",setup(t){return(n,r)=>(Kt.openBlock(),Kt.createElementBlock("div",{id:Kt.unref(hi)},null,8,pg))}}),gg=["id"],mg=Kt.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeCvvOnlyTokenExIframe:r,tokenExIframe:e}=pa(t.args);async function u(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Kt.watchEffect(()=>{r({...t.args,origins:t.args.origins??[],css:a(),font:t.args.font})},{}),(d,E)=>(Kt.openBlock(),Kt.createElementBlock("div",{id:Kt.unref(hi)},null,8,gg))}}),yg=Kt.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(t){const n=Kt.ref(void 0);Kt.onMounted(()=>new Jn(t.args.env).getNSurePartnerId(t.args.merchantId).then(e=>n.value=e));function r(){return t.args.env==="prod"?"9JBW2RHC7JNJN8ZQ":"SANDBOX_CTCE4XK53ZW0R7V1"}return Kt.watchEffect(e=>{n.value&&ca.init(r(),n.value)}),(e,u)=>null}}),wg=["id"],Eg=Kt.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{tokenExIframe:r,initializeTokenExCardOnlyIframe:e}=pa(t.args);async function u(){if(!r.value)throw new Error("Unable to get token");return r.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Kt.watchEffect(()=>{e({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(d,E)=>(Kt.openBlock(),Kt.createElementBlock("div",{id:Kt.unref(Di)},null,8,wg))}}),bg={style:{position:"relative",height:"100%"}},_g={style:{position:"relative",zIndex:10,height:"100%"}},ef=Kt.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(t){const{onSuccess:n}=t.args;function r(){const l=Ho(t.args);return{...t.args,walletPubkey:l,transaction:void 0,routePrefix:"form",route:`/${t.route}/${t.args.merchantId}`}}function e(){return{...Go(t.args),handleHeightChange:t.args.handleHeightChange}}const u=Kt.ref(.8),a=Kt.ref("flex"),d=Math.random().toString(16).substring(2);function E({data:l}){try{const b=JSON.parse(l);if("method"in b&&b.method==="loaded"&&(u.value=1,a.value="none"),"method"in b&&b.data.startsWith("ERROR"))return t.args?.onError?.(b.info),!1;if(!("method"in b)||b.method!=="getToken")return}catch{return}n?.(l)}return(l,b)=>(Kt.openBlock(),Kt.createElementBlock("div",bg,[Kt.createElementVNode("div",{style:Kt.normalizeStyle({backgroundColor:t.args.color,display:t.overlayDisplayOverride??a.value,opacity:u.value,alignItems:t.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[Kt.renderSlot(l.$slots,"default")],4),Kt.createElementVNode("div",_g,[Kt.createVNode(jo,{onOnMessage:E,args:{...r(),...e(),handleHeightChangeId:Kt.unref(d)}},null,8,["args"])])]))}}),Rg={id:"svg-logo",viewBox:"0 0 35 15"},Ag={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Sg={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Ig=["fill"],Og=Kt.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(t){const n=t.color==="white"?"#000":"#FFF";return(r,e)=>(Kt.openBlock(),Kt.createElementBlock("svg",Rg,[(Kt.openBlock(),Kt.createElementBlock("svg",Ag,[e[1]||(e[1]=Kt.createElementVNode("title",null,"Apple Logo",-1)),Kt.createElementVNode("g",Sg,[Kt.createElementVNode("g",{fill:Kt.unref(n)},[...e[0]||(e[0]=[Kt.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,Ig)])]))]))}}),Tg=Kt.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Kt.openBlock(),Kt.createBlock(ef,{route:"apple-pay",args:t.args},{default:Kt.withCtx(()=>[Kt.createVNode(Og,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Ng={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},xg={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Lg=Kt.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(t){return(n,r)=>(Kt.openBlock(),Kt.createElementBlock(Kt.Fragment,null,[t.color==="white"?(Kt.openBlock(),Kt.createElementBlock("svg",Ng,[...r[0]||(r[0]=[Kt.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):Kt.createCommentVNode("",!0),t.color==="black"?(Kt.openBlock(),Kt.createElementBlock("svg",xg,[...r[1]||(r[1]=[Kt.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):Kt.createCommentVNode("",!0)],64))}}),Cg=Kt.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Kt.openBlock(),Kt.createBlock(ef,{route:"google-pay",args:t.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:Kt.withCtx(()=>[Kt.createVNode(Lg,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}});le.BankingCurrencies=zc,le.CARD_TYPE_MAPPING=qc,le.CardType=qr,le.CoinflowApplePayButton=Tg,le.CoinflowCardNumberInput=hg,le.CoinflowCardNumberOnlyInput=Eg,le.CoinflowCvvInput=vg,le.CoinflowCvvOnlyInput=mg,le.CoinflowGooglePayButton=Cg,le.CoinflowIframe=jo,le.CoinflowPurchase=lg,le.CoinflowPurchaseProtection=yg,le.CoinflowUtils=Jn,le.CoinflowWithdraw=ug,le.Currency=ua,le.CurrencyToISO4217=F3,le.EventBus=tg,le.IFrameMessageMethods=fa,le.MerchantStyle=Ka,le.PaymentMethods=qa,le.RN_REDIRECT_MESSAGE_NAME=xl,le.SettlementType=Za,le.ThreeDsChallengePreference=Xa,le.TokenExCardNumberIframeId=Di,le.TokenExCvvContainerID=hi,le.WithdrawCategory=Wa,le.WithdrawCurrencies=Wc,le.WithdrawSpeed=za,le.doInitializeCvvOnlyTokenExIframe=Jc,le.doInitializeTokenExCardOnlyIframe=tf,le.doInitializeTokenExIframe=Qc,le.getCurrencyDecimals=W3,le.getCustomerName=q3,le.getHandlers=Go,le.getIframeConfig=$c,le.getWalletPubkey=Ho,le.handleIFrameMessage=Kc,le.isBankingCurrency=H3,le.isTypedCurrencyCents=z3,le.isWithdrawCurrency=V3,le.isZeroAuthSavedPaymentMethods=Tl,le.isZeroAuthVerifyCard=Ol,le.paymentMethodLabels=Nl,le.setTokenExScriptTag=la,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})}));
|