@coinflowlabs/vue 1.19.0 → 1.19.2

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.
@@ -1,24 +1,24 @@
1
- (function(Vt,Ut){typeof exports=="object"&&typeof module<"u"?Ut(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],Ut):(Vt=typeof globalThis<"u"?globalThis:Vt||self,Ut(Vt.VueTypeWriter={},Vt.Vue))})(this,(function(Vt,Ut){"use strict";var hu=(t=>(t.USER="user",t.BUSINESS="business",t.FIRST_PARTY="firstParty",t))(hu||{}),pu=(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.SWIFT="swift",t))(pu||{}),vu=(t=>(t.Credits="Credits",t.USDC="USDC",t.Bank="Bank",t))(vu||{});function Ad(t){return"cardToken"in t}function Sd(t){return"disableSavedPaymentMethods"in t}var mu=(t=>(t.Rounded="rounded",t.Sharp="sharp",t.Pill="pill",t))(mu||{}),gu=(t=>(t.GUEST="guest",t.PRIVATE="private",t.BUSINESS="business",t))(gu||{}),yu=(t=>(t.NoPreference="NoPreference",t.Frictionless="Frictionless",t.Challenge="Challenge",t))(yu||{}),wu=(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.wire="wire",t.cashApp="cashApp",t.apa="apa",t.paypal="paypal",t.venmo="venmo",t.interac="interac",t))(wu||{});const Id={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",wire:"Wire Transfer",cashApp:"CashApp",apa:"APA",paypal:"PayPal",venmo:"Venmo",interac:"Interac"};var $r=(t=>(t.VISA="VISA",t.MASTERCARD="MSTR",t.AMEX="AMEX",t.DISCOVER="DISC",t))($r||{});const Od="rnredirect";function _s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function bs(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 Rs={},Ai={},Eu;function Td(){if(Eu)return Ai;Eu=1,Ai.byteLength=m,Ai.toByteArray=_,Ai.fromByteArray=T;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 f(x){var k=x.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=x.indexOf("=");U===-1&&(U=k);var Y=U===k?0:4-U%4;return[U,Y]}function m(x){var k=f(x),U=k[0],Y=k[1];return(U+Y)*3/4-Y}function d(x,k,U){return(k+U)*3/4-U}function _(x){var k,U=f(x),Y=U[0],z=U[1],J=new r(d(x,Y,z)),Z=0,et=z>0?Y-4:Y,ht;for(ht=0;ht<et;ht+=4)k=n[x.charCodeAt(ht)]<<18|n[x.charCodeAt(ht+1)]<<12|n[x.charCodeAt(ht+2)]<<6|n[x.charCodeAt(ht+3)],J[Z++]=k>>16&255,J[Z++]=k>>8&255,J[Z++]=k&255;return z===2&&(k=n[x.charCodeAt(ht)]<<2|n[x.charCodeAt(ht+1)]>>4,J[Z++]=k&255),z===1&&(k=n[x.charCodeAt(ht)]<<10|n[x.charCodeAt(ht+1)]<<4|n[x.charCodeAt(ht+2)]>>2,J[Z++]=k>>8&255,J[Z++]=k&255),J}function N(x){return t[x>>18&63]+t[x>>12&63]+t[x>>6&63]+t[x&63]}function C(x,k,U){for(var Y,z=[],J=k;J<U;J+=3)Y=(x[J]<<16&16711680)+(x[J+1]<<8&65280)+(x[J+2]&255),z.push(N(Y));return z.join("")}function T(x){for(var k,U=x.length,Y=U%3,z=[],J=16383,Z=0,et=U-Y;Z<et;Z+=J)z.push(C(x,Z,Z+J>et?et:Z+J));return Y===1?(k=x[U-1],z.push(t[k>>2]+t[k<<4&63]+"==")):Y===2&&(k=(x[U-2]<<8)+x[U-1],z.push(t[k>>10]+t[k>>4&63]+t[k<<2&63]+"=")),z.join("")}return Ai}var mo={};var _u;function Nd(){return _u||(_u=1,mo.read=function(t,n,r,e,u){var a,f,m=u*8-e-1,d=(1<<m)-1,_=d>>1,N=-7,C=r?u-1:0,T=r?-1:1,x=t[n+C];for(C+=T,a=x&(1<<-N)-1,x>>=-N,N+=m;N>0;a=a*256+t[n+C],C+=T,N-=8);for(f=a&(1<<-N)-1,a>>=-N,N+=e;N>0;f=f*256+t[n+C],C+=T,N-=8);if(a===0)a=1-_;else{if(a===d)return f?NaN:(x?-1:1)*(1/0);f=f+Math.pow(2,e),a=a-_}return(x?-1:1)*f*Math.pow(2,a-e)},mo.write=function(t,n,r,e,u,a){var f,m,d,_=a*8-u-1,N=(1<<_)-1,C=N>>1,T=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:a-1,k=e?1:-1,U=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(m=isNaN(n)?1:0,f=N):(f=Math.floor(Math.log(n)/Math.LN2),n*(d=Math.pow(2,-f))<1&&(f--,d*=2),f+C>=1?n+=T/d:n+=T*Math.pow(2,1-C),n*d>=2&&(f++,d/=2),f+C>=N?(m=0,f=N):f+C>=1?(m=(n*d-1)*Math.pow(2,u),f=f+C):(m=n*Math.pow(2,C-1)*Math.pow(2,u),f=0));u>=8;t[r+x]=m&255,x+=k,m/=256,u-=8);for(f=f<<u|m,_+=u;_>0;t[r+x]=f&255,x+=k,f/=256,_-=8);t[r+x-k]|=U*128}),mo}var bu;function As(){return bu||(bu=1,(function(t){const n=Td(),r=Nd(),e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=m,t.SlowBuffer=J,t.INSPECT_MAX_BYTES=50;const u=2147483647;t.kMaxLength=u,m.TYPED_ARRAY_SUPPORT=a(),!m.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(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function f(F){if(F>u)throw new RangeError('The value "'+F+'" is invalid for option "size"');const R=new Uint8Array(F);return Object.setPrototypeOf(R,m.prototype),R}function m(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 C(F)}return d(F,R,O)}m.poolSize=8192;function d(F,R,O){if(typeof F=="string")return T(F,R);if(ArrayBuffer.isView(F))return k(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 U(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 m.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 m.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)}m.from=function(F,R,O){return d(F,R,O)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function _(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 N(F,R,O){return _(F),F<=0?f(F):R!==void 0?typeof O=="string"?f(F).fill(R,O):f(F).fill(R):f(F)}m.alloc=function(F,R,O){return N(F,R,O)};function C(F){return _(F),f(F<0?0:z(F)|0)}m.allocUnsafe=function(F){return C(F)},m.allocUnsafeSlow=function(F){return C(F)};function T(F,R){if((typeof R!="string"||R==="")&&(R="utf8"),!m.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const O=Z(F,R)|0;let A=f(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:z(F.length)|0,O=f(R);for(let A=0;A<R;A+=1)O[A]=F[A]&255;return O}function k(F){if(yt(F,Uint8Array)){const R=new Uint8Array(F);return U(R.buffer,R.byteOffset,R.byteLength)}return x(F)}function U(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,m.prototype),A}function Y(F){if(m.isBuffer(F)){const R=z(F.length)|0,O=f(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)?f(0):x(F);if(F.type==="Buffer"&&Array.isArray(F.data))return x(F.data)}function z(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),m.alloc(+F)}m.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==m.prototype},m.compare=function(R,O){if(yt(R,Uint8Array)&&(R=m.from(R,R.offset,R.byteLength)),yt(O,Uint8Array)&&(O=m.from(O,O.offset,O.byteLength)),!m.isBuffer(R)||!m.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,ot=Math.min(A,H);G<ot;++G)if(R[G]!==O[G]){A=R[G],H=O[G];break}return A<H?-1:H<A?1:0},m.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}},m.concat=function(R,O){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return m.alloc(0);let A;if(O===void 0)for(O=0,A=0;A<R.length;++A)O+=R[A].length;const H=m.allocUnsafe(O);let G=0;for(A=0;A<R.length;++A){let ot=R[A];if(yt(ot,Uint8Array))G+ot.length>H.length?(m.isBuffer(ot)||(ot=m.from(ot)),ot.copy(H,G)):Uint8Array.prototype.set.call(H,ot,G);else if(m.isBuffer(ot))ot.copy(H,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ot.length}return H};function Z(F,R){if(m.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 Oe(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:Oe(F).length;R=(""+R).toLowerCase(),H=!0}}m.byteLength=Z;function et(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 nt(this,R,O);case"utf8":case"utf-8":return l(this,R,O);case"ascii":return W(this,R,O);case"latin1":case"binary":return q(this,R,O);case"base64":return P(this,R,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,R,O);default:if(A)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),A=!0}}m.prototype._isBuffer=!0;function ht(F,R,O){const A=F[R];F[R]=F[O],F[O]=A}m.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)ht(this,O,O+1);return this},m.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)ht(this,O,O+3),ht(this,O+1,O+2);return this},m.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)ht(this,O,O+7),ht(this,O+1,O+6),ht(this,O+2,O+5),ht(this,O+3,O+4);return this},m.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?l(this,0,R):et.apply(this,arguments)},m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=function(R){if(!m.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:m.compare(this,R)===0},m.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&&(m.prototype[e]=m.prototype.inspect),m.prototype.compare=function(R,O,A,H,G){if(yt(R,Uint8Array)&&(R=m.from(R,R.offset,R.byteLength)),!m.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 ot=G-H,Lt=A-O;const Bt=Math.min(ot,Lt),Dt=this.slice(H,G),kt=R.slice(O,A);for(let it=0;it<Bt;++it)if(Dt[it]!==kt[it]){ot=Dt[it],Lt=kt[it];break}return ot<Lt?-1:Lt<ot?1:0};function ut(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=m.from(R,A)),m.isBuffer(R))return R.length===0?-1:At(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):At(F,[R],O,A,H);throw new TypeError("val must be string, number or Buffer")}function At(F,R,O,A,H){let G=1,ot=F.length,Lt=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,ot/=2,Lt/=2,O/=2}function Bt(kt,it){return G===1?kt[it]:kt.readUInt16BE(it*G)}let Dt;if(H){let kt=-1;for(Dt=O;Dt<ot;Dt++)if(Bt(F,Dt)===Bt(R,kt===-1?0:Dt-kt)){if(kt===-1&&(kt=Dt),Dt-kt+1===Lt)return kt*G}else kt!==-1&&(Dt-=Dt-kt),kt=-1}else for(O+Lt>ot&&(O=ot-Lt),Dt=O;Dt>=0;Dt--){let kt=!0;for(let it=0;it<Lt;it++)if(Bt(F,Dt+it)!==Bt(R,it)){kt=!1;break}if(kt)return Dt}return-1}m.prototype.includes=function(R,O,A){return this.indexOf(R,O,A)!==-1},m.prototype.indexOf=function(R,O,A){return ut(this,R,O,A,!0)},m.prototype.lastIndexOf=function(R,O,A){return ut(this,R,O,A,!1)};function Rt(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 ot;for(ot=0;ot<A;++ot){const Lt=parseInt(R.substr(ot*2,2),16);if(Et(Lt))return ot;F[O+ot]=Lt}return ot}function st(F,R,O,A){return lt(Oe(R,F.length-O),F,O,A)}function ft(F,R,O,A){return lt(g(R),F,O,A)}function gt(F,R,O,A){return lt(V(R),F,O,A)}function wt(F,R,O,A){return lt(L(R,F.length-O),F,O,A)}m.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 ot=!1;for(;;)switch(H){case"hex":return Rt(this,R,O,A);case"utf8":case"utf-8":return st(this,R,O,A);case"ascii":case"latin1":case"binary":return ft(this,R,O,A);case"base64":return gt(this,R,O,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,R,O,A);default:if(ot)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ot=!0}},m.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 l(F,R,O){O=Math.min(F.length,O);const A=[];let H=R;for(;H<O;){const G=F[H];let ot=null,Lt=G>239?4:G>223?3:G>191?2:1;if(H+Lt<=O){let Bt,Dt,kt,it;switch(Lt){case 1:G<128&&(ot=G);break;case 2:Bt=F[H+1],(Bt&192)===128&&(it=(G&31)<<6|Bt&63,it>127&&(ot=it));break;case 3:Bt=F[H+1],Dt=F[H+2],(Bt&192)===128&&(Dt&192)===128&&(it=(G&15)<<12|(Bt&63)<<6|Dt&63,it>2047&&(it<55296||it>57343)&&(ot=it));break;case 4:Bt=F[H+1],Dt=F[H+2],kt=F[H+3],(Bt&192)===128&&(Dt&192)===128&&(kt&192)===128&&(it=(G&15)<<18|(Bt&63)<<12|(Dt&63)<<6|kt&63,it>65535&&it<1114112&&(ot=it))}}ot===null?(ot=65533,Lt=1):ot>65535&&(ot-=65536,A.push(ot>>>10&1023|55296),ot=56320|ot&1023),A.push(ot),H+=Lt}return D(A)}const S=4096;function D(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 W(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 q(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 nt(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+=Ct[F[G]];return H}function ct(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}m.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,m.prototype),H};function K(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")}m.prototype.readUintLE=m.prototype.readUIntLE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let H=this[R],G=1,ot=0;for(;++ot<O&&(G*=256);)H+=this[R+ot]*G;return H},m.prototype.readUintBE=m.prototype.readUIntBE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let H=this[R+--O],G=1;for(;O>0&&(G*=256);)H+=this[R+--O]*G;return H},m.prototype.readUint8=m.prototype.readUInt8=function(R,O){return R=R>>>0,O||K(R,1,this.length),this[R]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(R,O){return R=R>>>0,O||K(R,2,this.length),this[R]|this[R+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(R,O){return R=R>>>0,O||K(R,2,this.length),this[R]<<8|this[R+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(R,O){return R=R>>>0,O||K(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(R,O){return R=R>>>0,O||K(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},m.prototype.readBigUInt64LE=zt(function(R){R=R>>>0,Ie(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(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))}),m.prototype.readBigUInt64BE=zt(function(R){R=R>>>0,Ie(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(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)}),m.prototype.readIntLE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let H=this[R],G=1,ot=0;for(;++ot<O&&(G*=256);)H+=this[R+ot]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*O)),H},m.prototype.readIntBE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let H=O,G=1,ot=this[R+--H];for(;H>0&&(G*=256);)ot+=this[R+--H]*G;return G*=128,ot>=G&&(ot-=Math.pow(2,8*O)),ot},m.prototype.readInt8=function(R,O){return R=R>>>0,O||K(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},m.prototype.readInt16LE=function(R,O){R=R>>>0,O||K(R,2,this.length);const A=this[R]|this[R+1]<<8;return A&32768?A|4294901760:A},m.prototype.readInt16BE=function(R,O){R=R>>>0,O||K(R,2,this.length);const A=this[R+1]|this[R]<<8;return A&32768?A|4294901760:A},m.prototype.readInt32LE=function(R,O){return R=R>>>0,O||K(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},m.prototype.readInt32BE=function(R,O){return R=R>>>0,O||K(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},m.prototype.readBigInt64LE=zt(function(R){R=R>>>0,Ie(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(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)}),m.prototype.readBigInt64BE=zt(function(R){R=R>>>0,Ie(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(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)}),m.prototype.readFloatLE=function(R,O){return R=R>>>0,O||K(R,4,this.length),r.read(this,R,!0,23,4)},m.prototype.readFloatBE=function(R,O){return R=R>>>0,O||K(R,4,this.length),r.read(this,R,!1,23,4)},m.prototype.readDoubleLE=function(R,O){return R=R>>>0,O||K(R,8,this.length),r.read(this,R,!0,52,8)},m.prototype.readDoubleBE=function(R,O){return R=R>>>0,O||K(R,8,this.length),r.read(this,R,!1,52,8)};function h(F,R,O,A,H,G){if(!m.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")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(R,O,A,H){if(R=+R,O=O>>>0,A=A>>>0,!H){const Lt=Math.pow(2,8*A)-1;h(this,R,O,A,Lt,0)}let G=1,ot=0;for(this[O]=R&255;++ot<A&&(G*=256);)this[O+ot]=R/G&255;return O+A},m.prototype.writeUintBE=m.prototype.writeUIntBE=function(R,O,A,H){if(R=+R,O=O>>>0,A=A>>>0,!H){const Lt=Math.pow(2,8*A)-1;h(this,R,O,A,Lt,0)}let G=A-1,ot=1;for(this[O+G]=R&255;--G>=0&&(ot*=256);)this[O+G]=R/ot&255;return O+A},m.prototype.writeUint8=m.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},m.prototype.writeUint16LE=m.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},m.prototype.writeUint16BE=m.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},m.prototype.writeUint32LE=m.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},m.prototype.writeUint32BE=m.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 b(F,R,O,A,H){ve(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 ot=Number(R>>BigInt(32)&BigInt(4294967295));return F[O++]=ot,ot=ot>>8,F[O++]=ot,ot=ot>>8,F[O++]=ot,ot=ot>>8,F[O++]=ot,O}function j(F,R,O,A,H){ve(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 ot=Number(R>>BigInt(32)&BigInt(4294967295));return F[O+3]=ot,ot=ot>>8,F[O+2]=ot,ot=ot>>8,F[O+1]=ot,ot=ot>>8,F[O]=ot,O+8}m.prototype.writeBigUInt64LE=zt(function(R,O=0){return b(this,R,O,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=zt(function(R,O=0){return j(this,R,O,BigInt(0),BigInt("0xffffffffffffffff"))}),m.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,ot=1,Lt=0;for(this[O]=R&255;++G<A&&(ot*=256);)R<0&&Lt===0&&this[O+G-1]!==0&&(Lt=1),this[O+G]=(R/ot>>0)-Lt&255;return O+A},m.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,ot=1,Lt=0;for(this[O+G]=R&255;--G>=0&&(ot*=256);)R<0&&Lt===0&&this[O+G+1]!==0&&(Lt=1),this[O+G]=(R/ot>>0)-Lt&255;return O+A},m.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},m.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},m.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},m.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},m.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},m.prototype.writeBigInt64LE=zt(function(R,O=0){return b(this,R,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=zt(function(R,O=0){return j(this,R,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(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 pt(F,R,O,A,H){return R=+R,O=O>>>0,H||X(F,R,O,4),r.write(F,R,O,A,23,4),O+4}m.prototype.writeFloatLE=function(R,O,A){return pt(this,R,O,!0,A)},m.prototype.writeFloatBE=function(R,O,A){return pt(this,R,O,!1,A)};function St(F,R,O,A,H){return R=+R,O=O>>>0,H||X(F,R,O,8),r.write(F,R,O,A,52,8),O+8}m.prototype.writeDoubleLE=function(R,O,A){return St(this,R,O,!0,A)},m.prototype.writeDoubleBE=function(R,O,A){return St(this,R,O,!1,A)},m.prototype.copy=function(R,O,A,H){if(!m.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},m.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"&&!m.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(R.length===1){const ot=R.charCodeAt(0);(H==="utf8"&&ot<128||H==="latin1")&&(R=ot)}}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 ot=m.isBuffer(R)?R:m.from(R,H),Lt=ot.length;if(Lt===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(G=0;G<A-O;++G)this[G+O]=ot[G%Lt]}return this};const Ht={};function Kt(F,R,O){Ht[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}`}}}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,O){let A=`The value of "${F}" is out of range.`,H=O;return Number.isInteger(O)&&Math.abs(O)>2**32?H=le(String(O)):typeof O=="bigint"&&(H=String(O),(O>BigInt(2)**BigInt(32)||O<-(BigInt(2)**BigInt(32)))&&(H=le(H)),H+="n"),A+=` It must be ${R}. Received ${H}`,A},RangeError);function le(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 ge(F,R,O){Ie(R,"offset"),(F[R]===void 0||F[R+O]===void 0)&&_e(R,F.length-(O+1))}function ve(F,R,O,A,H,G){if(F>O||F<R){const ot=typeof R=="bigint"?"n":"";let Lt;throw R===0||R===BigInt(0)?Lt=`>= 0${ot} and < 2${ot} ** ${(G+1)*8}${ot}`:Lt=`>= -(2${ot} ** ${(G+1)*8-1}${ot}) and < 2 ** ${(G+1)*8-1}${ot}`,new Ht.ERR_OUT_OF_RANGE("value",Lt,F)}ge(A,H,G)}function Ie(F,R){if(typeof F!="number")throw new Ht.ERR_INVALID_ARG_TYPE(R,"number",F)}function _e(F,R,O){throw Math.floor(F)!==F?(Ie(F,O),new Ht.ERR_OUT_OF_RANGE("offset","an integer",F)):R<0?new Ht.ERR_BUFFER_OUT_OF_BOUNDS:new Ht.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,F)}const Ee=/[^+/0-9A-Za-z-_]/g;function Ve(F){if(F=F.split("=")[0],F=F.trim().replace(Ee,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function Oe(F,R){R=R||1/0;let O;const A=F.length;let H=null;const G=[];for(let ot=0;ot<A;++ot){if(O=F.charCodeAt(ot),O>55295&&O<57344){if(!H){if(O>56319){(R-=3)>-1&&G.push(239,191,189);continue}else if(ot+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 L(F,R){let O,A,H;const G=[];for(let ot=0;ot<F.length&&!((R-=2)<0);++ot)O=F.charCodeAt(ot),A=O>>8,H=O%256,G.push(H),G.push(A);return G}function V(F){return n.toByteArray(Ve(F))}function lt(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 Ct=(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 zt(F){return typeof BigInt>"u"?te:F}function te(){throw new Error("BigInt not supported")}})(Rs)),Rs}var Re=As();const qr=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Si(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Ss(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function Lr(t,...n){if(!Si(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 Ru(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Ss(t.outputLen),Ss(t.blockLen)}function go(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 xd(t,n){Lr(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 Is(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Zn(t,n){return t<<32-n|t>>>n}const Au=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Cd=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function Br(t){if(Lr(t),Au)return t.toHex();let n="";for(let r=0;r<t.length;r++)n+=Cd[t[r]];return n}const rr={_0:48,_9:57,A:65,F:70,a:97,f:102};function Su(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 yo(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(Au)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 f=Su(t.charCodeAt(a)),m=Su(t.charCodeAt(a+1));if(f===void 0||m===void 0){const d=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+a)}e[u]=f*16+m}return e}function Ld(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function Os(t){return typeof t=="string"&&(t=Ld(t)),Lr(t),t}function Xn(...t){let n=0;for(let e=0;e<t.length;e++){const u=t[e];Lr(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 Iu{}function Ou(t){const n=e=>t().update(Os(e)).digest(),r=t();return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=()=>t(),n}function Ts(t=32){if(qr&&typeof qr.getRandomValues=="function")return qr.getRandomValues(new Uint8Array(t));if(qr&&typeof qr.randomBytes=="function")return Uint8Array.from(qr.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function Bd(t,n,r,e){if(typeof t.setBigUint64=="function")return t.setBigUint64(n,r,e);const u=BigInt(32),a=BigInt(4294967295),f=Number(r>>u&a),m=Number(r&a),d=e?4:0,_=e?0:4;t.setUint32(n+d,f,e),t.setUint32(n+_,m,e)}function Md(t,n,r){return t&n^~t&r}function kd(t,n,r){return t&n^t&r^n&r}class Tu extends Iu{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=Is(this.buffer)}update(n){go(this),n=Os(n),Lr(n);const{view:r,buffer:e,blockLen:u}=this,a=n.length;for(let f=0;f<a;){const m=Math.min(u-this.pos,a-f);if(m===u){const d=Is(n);for(;u<=a-f;f+=u)this.process(d,f);continue}e.set(n.subarray(f,f+m),this.pos),this.pos+=m,f+=m,this.pos===u&&(this.process(r,0),this.pos=0)}return this.length+=n.length,this.roundClean(),this}digestInto(n){go(this),xd(n,this),this.finished=!0;const{buffer:r,view:e,blockLen:u,isLE:a}=this;let{pos:f}=this;r[f++]=128,Jr(this.buffer.subarray(f)),this.padOffset>u-f&&(this.process(e,0),f=0);for(let C=f;C<u;C++)r[C]=0;Bd(e,u-8,BigInt(this.length*8),a),this.process(e,0);const m=Is(n),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const _=d/4,N=this.get();if(_>N.length)throw new Error("_sha2: outputLen bigger than state");for(let C=0;C<_;C++)m.setUint32(4*C,N[C],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:f,pos:m}=this;return n.destroyed=f,n.finished=a,n.length=u,n.pos=m,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]),wo=BigInt(2**32-1),Nu=BigInt(32);function Dd(t,n=!1){return n?{h:Number(t&wo),l:Number(t>>Nu&wo)}:{h:Number(t>>Nu&wo)|0,l:Number(t&wo)|0}}function Ud(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:f,l:m}=Dd(t[a],n);[e[a],u[a]]=[f,m]}return[e,u]}const xu=(t,n,r)=>t>>>r,Cu=(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,Eo=(t,n,r)=>t<<64-r|n>>>r-32,_o=(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 Pd=(t,n,r)=>(t>>>0)+(n>>>0)+(r>>>0),Fd=(t,n,r,e)=>n+r+e+(t/2**32|0)|0,Vd=(t,n,r,e)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0),Hd=(t,n,r,e,u)=>n+r+e+u+(t/2**32|0)|0,Gd=(t,n,r,e,u)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0)+(u>>>0),jd=(t,n,r,e,u,a)=>n+r+e+u+a+(t/2**32|0)|0,Yd=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]),mr=new Uint32Array(64);class zd extends Tu{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:f,G:m,H:d}=this;return[n,r,e,u,a,f,m,d]}set(n,r,e,u,a,f,m,d){this.A=n|0,this.B=r|0,this.C=e|0,this.D=u|0,this.E=a|0,this.F=f|0,this.G=m|0,this.H=d|0}process(n,r){for(let C=0;C<16;C++,r+=4)mr[C]=n.getUint32(r,!1);for(let C=16;C<64;C++){const T=mr[C-15],x=mr[C-2],k=Zn(T,7)^Zn(T,18)^T>>>3,U=Zn(x,17)^Zn(x,19)^x>>>10;mr[C]=U+mr[C-7]+k+mr[C-16]|0}let{A:e,B:u,C:a,D:f,E:m,F:d,G:_,H:N}=this;for(let C=0;C<64;C++){const T=Zn(m,6)^Zn(m,11)^Zn(m,25),x=N+T+Md(m,d,_)+Yd[C]+mr[C]|0,U=(Zn(e,2)^Zn(e,13)^Zn(e,22))+kd(e,u,a)|0;N=_,_=d,d=m,m=f+x|0,f=a,a=u,u=e,e=x+U|0}e=e+this.A|0,u=u+this.B|0,a=a+this.C|0,f=f+this.D|0,m=m+this.E|0,d=d+this.F|0,_=_+this.G|0,N=N+this.H|0,this.set(e,u,a,f,m,d,_,N)}roundClean(){Jr(mr)}destroy(){this.set(0,0,0,0,0,0,0,0),Jr(this.buffer)}}const Lu=Ud(["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))),Wd=Lu[0],Kd=Lu[1],gr=new Uint32Array(80),yr=new Uint32Array(80);class Zd extends Tu{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:f,Dh:m,Dl:d,Eh:_,El:N,Fh:C,Fl:T,Gh:x,Gl:k,Hh:U,Hl:Y}=this;return[n,r,e,u,a,f,m,d,_,N,C,T,x,k,U,Y]}set(n,r,e,u,a,f,m,d,_,N,C,T,x,k,U,Y){this.Ah=n|0,this.Al=r|0,this.Bh=e|0,this.Bl=u|0,this.Ch=a|0,this.Cl=f|0,this.Dh=m|0,this.Dl=d|0,this.Eh=_|0,this.El=N|0,this.Fh=C|0,this.Fl=T|0,this.Gh=x|0,this.Gl=k|0,this.Hh=U|0,this.Hl=Y|0}process(n,r){for(let Z=0;Z<16;Z++,r+=4)gr[Z]=n.getUint32(r),yr[Z]=n.getUint32(r+=4);for(let Z=16;Z<80;Z++){const et=gr[Z-15]|0,ht=yr[Z-15]|0,ut=Qr(et,ht,1)^Qr(et,ht,8)^xu(et,ht,7),At=ti(et,ht,1)^ti(et,ht,8)^Cu(et,ht,7),Rt=gr[Z-2]|0,st=yr[Z-2]|0,ft=Qr(Rt,st,19)^Eo(Rt,st,61)^xu(Rt,st,6),gt=ti(Rt,st,19)^_o(Rt,st,61)^Cu(Rt,st,6),wt=Vd(At,gt,yr[Z-7],yr[Z-16]),P=Hd(wt,ut,ft,gr[Z-7],gr[Z-16]);gr[Z]=P|0,yr[Z]=wt|0}let{Ah:e,Al:u,Bh:a,Bl:f,Ch:m,Cl:d,Dh:_,Dl:N,Eh:C,El:T,Fh:x,Fl:k,Gh:U,Gl:Y,Hh:z,Hl:J}=this;for(let Z=0;Z<80;Z++){const et=Qr(C,T,14)^Qr(C,T,18)^Eo(C,T,41),ht=ti(C,T,14)^ti(C,T,18)^_o(C,T,41),ut=C&x^~C&U,At=T&k^~T&Y,Rt=Gd(J,ht,At,Kd[Z],yr[Z]),st=jd(Rt,z,et,ut,Wd[Z],gr[Z]),ft=Rt|0,gt=Qr(e,u,28)^Eo(e,u,34)^Eo(e,u,39),wt=ti(e,u,28)^_o(e,u,34)^_o(e,u,39),P=e&a^e&m^a&m,l=u&f^u&d^f&d;z=U|0,J=Y|0,U=x|0,Y=k|0,x=C|0,k=T|0,{h:C,l:T}=ir(_|0,N|0,st|0,ft|0),_=m|0,N=d|0,m=a|0,d=f|0,a=e|0,f=u|0;const S=Pd(ft,wt,l);e=Fd(S,st,gt,P),u=S|0}({h:e,l:u}=ir(this.Ah|0,this.Al|0,e|0,u|0)),{h:a,l:f}=ir(this.Bh|0,this.Bl|0,a|0,f|0),{h:m,l:d}=ir(this.Ch|0,this.Cl|0,m|0,d|0),{h:_,l:N}=ir(this.Dh|0,this.Dl|0,_|0,N|0),{h:C,l:T}=ir(this.Eh|0,this.El|0,C|0,T|0),{h:x,l:k}=ir(this.Fh|0,this.Fl|0,x|0,k|0),{h:U,l:Y}=ir(this.Gh|0,this.Gl|0,U|0,Y|0),{h:z,l:J}=ir(this.Hh|0,this.Hl|0,z|0,J|0),this.set(e,u,a,f,m,d,_,N,C,T,x,k,U,Y,z,J)}roundClean(){Jr(gr,yr)}destroy(){Jr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Bu=Ou(()=>new zd),Xd=Ou(()=>new Zd);const Ns=BigInt(0),xs=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 Vn(t,n,r=""){const e=Si(t),u=t?.length,a=n!==void 0;if(!e||a&&u!==n){const f=r&&`"${r}" `,m=a?` of length ${n}`:"",d=e?`length=${u}`:`type=${typeof t}`;throw new Error(f+"expected Uint8Array"+m+", got "+d)}return t}function bo(t){const n=t.toString(16);return n.length&1?"0"+n:n}function Mu(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?Ns:BigInt("0x"+t)}function Ro(t){return Mu(Br(t))}function Ii(t){return Lr(t),Mu(Br(Uint8Array.from(t).reverse()))}function Cs(t,n){return yo(t.toString(16).padStart(n*2,"0"))}function ku(t,n){return Cs(t,n).reverse()}function Ke(t,n,r){let e;if(typeof n=="string")try{e=yo(n)}catch(a){throw new Error(t+" must be hex string or Uint8Array, cause: "+a)}else if(Si(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 Du(t){return Uint8Array.from(t)}const Ls=t=>typeof t=="bigint"&&Ns<=t;function $d(t,n,r){return Ls(t)&&Ls(n)&&Ls(r)&&n<=t&&t<r}function Bs(t,n,r,e){if(!$d(n,r,e))throw new Error("expected valid "+t+": "+r+" <= n < "+e+", got "+n)}function Uu(t){let n;for(n=0;t>Ns;t>>=xs,n+=1);return n}const Oi=t=>(xs<<BigInt(t))-xs;function qd(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),f=e(t),m=0;const d=()=>{a.fill(1),f.fill(0),m=0},_=(...x)=>r(f,a,...x),N=(x=e(0))=>{f=_(u(0),x),a=_(),x.length!==0&&(f=_(u(1),x),a=_())},C=()=>{if(m++>=1e3)throw new Error("drbg: tried 1000 values");let x=0;const k=[];for(;x<n;){a=_();const U=a.slice();k.push(U),x+=a.length}return Xn(...k)};return(x,k)=>{d(),N(x);let U;for(;!(U=k(C()));)N();return d(),U}}function Ti(t,n,r={}){if(!t||typeof t!="object")throw new Error("expected valid options object");function e(u,a,f){const m=t[u];if(f&&m===void 0)return;const d=typeof m;if(d!==a||m===null)throw new Error(`param "${u}" is invalid: expected ${a}, got ${d}`)}Object.entries(n).forEach(([u,a])=>e(u,a,!1)),Object.entries(r).forEach(([u,a])=>e(u,a,!0))}function Ao(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 xn=BigInt(0),vn=BigInt(1),kr=BigInt(2),Pu=BigInt(3),Fu=BigInt(4),Vu=BigInt(5),Jd=BigInt(7),Hu=BigInt(8),Qd=BigInt(9),Gu=BigInt(16);function sn(t,n){const r=t%n;return r>=xn?r:n+r}function Ze(t,n,r){let e=t;for(;n-- >xn;)e*=e,e%=r;return e}function ju(t,n){if(t===xn)throw new Error("invert: expected non-zero number");if(n<=xn)throw new Error("invert: expected positive modulus, got "+n);let r=sn(t,n),e=n,u=xn,a=vn;for(;r!==xn;){const m=e/r,d=e%r,_=u-a*m;e=r,r=d,u=a,a=_}if(e!==vn)throw new Error("invert: does not exist");return sn(u,n)}function Ms(t,n,r){if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root")}function Yu(t,n){const r=(t.ORDER+vn)/Fu,e=t.pow(n,r);return Ms(t,e,n),e}function t1(t,n){const r=(t.ORDER-Vu)/Hu,e=t.mul(n,kr),u=t.pow(e,r),a=t.mul(n,u),f=t.mul(t.mul(a,kr),u),m=t.mul(a,t.sub(f,t.ONE));return Ms(t,m,n),m}function e1(t){const n=Dr(t),r=zu(t),e=r(n,n.neg(n.ONE)),u=r(n,e),a=r(n,n.neg(e)),f=(t+Jd)/Gu;return(m,d)=>{let _=m.pow(d,f),N=m.mul(_,e);const C=m.mul(_,u),T=m.mul(_,a),x=m.eql(m.sqr(N),d),k=m.eql(m.sqr(C),d);_=m.cmov(_,N,x),N=m.cmov(T,C,k);const U=m.eql(m.sqr(N),d),Y=m.cmov(_,N,U);return Ms(m,Y,d),Y}}function zu(t){if(t<Pu)throw new Error("sqrt is not defined for small field");let n=t-vn,r=0;for(;n%kr===xn;)n/=kr,r++;let e=kr;const u=Dr(t);for(;Ku(u,e)===1;)if(e++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return Yu;let a=u.pow(e,n);const f=(n+vn)/kr;return function(d,_){if(d.is0(_))return _;if(Ku(d,_)!==1)throw new Error("Cannot find square root");let N=r,C=d.mul(d.ONE,a),T=d.pow(_,n),x=d.pow(_,f);for(;!d.eql(T,d.ONE);){if(d.is0(T))return d.ZERO;let k=1,U=d.sqr(T);for(;!d.eql(U,d.ONE);)if(k++,U=d.sqr(U),k===N)throw new Error("Cannot find square root");const Y=vn<<BigInt(N-k-1),z=d.pow(C,Y);N=k,C=d.sqr(z),T=d.mul(T,C),x=d.mul(x,z)}return x}}function n1(t){return t%Fu===Pu?Yu:t%Hu===Vu?t1:t%Gu===Qd?e1(t):zu(t)}const r1=(t,n)=>(sn(t,n)&vn)===vn,i1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function o1(t){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=i1.reduce((e,u)=>(e[u]="function",e),n);return Ti(t,r),t}function s1(t,n,r){if(r<xn)throw new Error("invalid exponent, negatives unsupported");if(r===xn)return t.ONE;if(r===vn)return n;let e=t.ONE,u=n;for(;r>xn;)r&vn&&(e=t.mul(e,u)),u=t.sqr(u),r>>=vn;return e}function Wu(t,n,r=!1){const e=new Array(n.length).fill(r?t.ZERO:void 0),u=n.reduce((f,m,d)=>t.is0(m)?f:(e[d]=f,t.mul(f,m)),t.ONE),a=t.inv(u);return n.reduceRight((f,m,d)=>t.is0(m)?f:(e[d]=t.mul(f,e[d]),t.mul(f,m)),a),e}function Ku(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),f=t.eql(e,t.neg(t.ONE));if(!u&&!a&&!f)throw new Error("invalid Legendre symbol result");return u?1:a?0:-1}function Zu(t,n){n!==void 0&&Ss(n);const r=n!==void 0?n:t.toString(2).length,e=Math.ceil(r/8);return{nBitLength:r,nByteLength:e}}function Dr(t,n,r=!1,e={}){if(t<=xn)throw new Error("invalid field: expected ORDER > 0, got "+t);let u,a,f=!1,m;if(typeof n=="object"&&n!=null){if(e.sqrt||r)throw new Error("cannot specify opts in two arguments");const T=n;T.BITS&&(u=T.BITS),T.sqrt&&(a=T.sqrt),typeof T.isLE=="boolean"&&(r=T.isLE),typeof T.modFromBytes=="boolean"&&(f=T.modFromBytes),m=T.allowedLengths}else typeof n=="number"&&(u=n),e.sqrt&&(a=e.sqrt);const{nBitLength:d,nByteLength:_}=Zu(t,u);if(_>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let N;const C=Object.freeze({ORDER:t,isLE:r,BITS:d,BYTES:_,MASK:Oi(d),ZERO:xn,ONE:vn,allowedLengths:m,create:T=>sn(T,t),isValid:T=>{if(typeof T!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof T);return xn<=T&&T<t},is0:T=>T===xn,isValidNot0:T=>!C.is0(T)&&C.isValid(T),isOdd:T=>(T&vn)===vn,neg:T=>sn(-T,t),eql:(T,x)=>T===x,sqr:T=>sn(T*T,t),add:(T,x)=>sn(T+x,t),sub:(T,x)=>sn(T-x,t),mul:(T,x)=>sn(T*x,t),pow:(T,x)=>s1(C,T,x),div:(T,x)=>sn(T*ju(x,t),t),sqrN:T=>T*T,addN:(T,x)=>T+x,subN:(T,x)=>T-x,mulN:(T,x)=>T*x,inv:T=>ju(T,t),sqrt:a||(T=>(N||(N=n1(t)),N(C,T))),toBytes:T=>r?ku(T,_):Cs(T,_),fromBytes:(T,x=!0)=>{if(m){if(!m.includes(T.length)||T.length>_)throw new Error("Field.fromBytes: expected "+m+" bytes, got "+T.length);const U=new Uint8Array(_);U.set(T,r?0:U.length-T.length),T=U}if(T.length!==_)throw new Error("Field.fromBytes: expected "+_+" bytes, got "+T.length);let k=r?Ii(T):Ro(T);if(f&&(k=sn(k,t)),!x&&!C.isValid(k))throw new Error("invalid field element: outside of range 0..ORDER");return k},invertBatch:T=>Wu(C,T),cmov:(T,x,k)=>k?x:T});return Object.freeze(C)}function Xu(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 $u(t){const n=Xu(t);return n+Math.ceil(n/2)}function a1(t,n,r=!1){const e=t.length,u=Xu(n),a=$u(n);if(e<16||e<a||e>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+e);const f=r?Ii(t):Ro(t),m=sn(f,n-vn)+vn;return r?ku(m,u):Cs(m,u)}const ei=BigInt(0),Ur=BigInt(1);function So(t,n){const r=n.negate();return t?r:n}function Pr(t,n){const r=Wu(t.Fp,n.map(e=>e.Z));return n.map((e,u)=>t.fromAffine(e.toAffine(r[u])))}function qu(t,n){if(!Number.isSafeInteger(t)||t<=0||t>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+t)}function ks(t,n){qu(t,n);const r=Math.ceil(n/t)+1,e=2**(t-1),u=2**t,a=Oi(t),f=BigInt(t);return{windows:r,windowSize:e,mask:a,maxNumber:u,shiftBy:f}}function Ju(t,n,r){const{windowSize:e,mask:u,maxNumber:a,shiftBy:f}=r;let m=Number(t&u),d=t>>f;m>e&&(m-=a,d+=Ur);const _=n*e,N=_+Math.abs(m)-1,C=m===0,T=m<0,x=n%2!==0;return{nextN:d,offset:N,isZero:C,isNeg:T,isNegF:x,offsetF:_}}function u1(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 c1(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 Ds=new WeakMap,Qu=new WeakMap;function Us(t){return Qu.get(t)||1}function tc(t){if(t!==ei)throw new Error("invalid wNAF")}class ec{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&Ur&&(e=e.add(u)),u=u.double(),r>>=Ur;return e}precomputeWindow(n,r){const{windows:e,windowSize:u}=ks(r,this.bits),a=[];let f=n,m=f;for(let d=0;d<e;d++){m=f,a.push(m);for(let _=1;_<u;_++)m=m.add(f),a.push(m);f=m.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 f=ks(n,this.bits);for(let m=0;m<f.windows;m++){const{nextN:d,offset:_,isZero:N,isNeg:C,isNegF:T,offsetF:x}=Ju(e,m,f);e=d,N?a=a.add(So(T,r[x])):u=u.add(So(C,r[_]))}return tc(e),{p:u,f:a}}wNAFUnsafe(n,r,e,u=this.ZERO){const a=ks(n,this.bits);for(let f=0;f<a.windows&&e!==ei;f++){const{nextN:m,offset:d,isZero:_,isNeg:N}=Ju(e,f,a);if(e=m,!_){const C=r[d];u=u.add(N?C.negate():C)}}return tc(e),u}getPrecomputes(n,r,e){let u=Ds.get(r);return u||(u=this.precomputeWindow(r,n),n!==1&&(typeof e=="function"&&(u=e(u)),Ds.set(r,u))),u}cached(n,r,e){const u=Us(n);return this.wNAF(u,this.getPrecomputes(u,n,e),r)}unsafe(n,r,e,u){const a=Us(n);return a===1?this._unsafeLadder(n,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,n,e),r,u)}createCache(n,r){qu(r,this.bits),Qu.set(n,r),Ds.delete(n)}hasCache(n){return Us(n)!==1}}function f1(t,n,r,e){let u=n,a=t.ZERO,f=t.ZERO;for(;r>ei||e>ei;)r&Ur&&(a=a.add(u)),e&Ur&&(f=f.add(u)),u=u.double(),r>>=Ur,e>>=Ur;return{p1:a,p2:f}}function nc(t,n,r,e){u1(r,t),c1(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 f=t.ZERO,m=Uu(BigInt(u));let d=1;m>12?d=m-3:m>4?d=m-2:m>0&&(d=2);const _=Oi(d),N=new Array(Number(_)+1).fill(f),C=Math.floor((n.BITS-1)/d)*d;let T=f;for(let x=C;x>=0;x-=d){N.fill(f);for(let U=0;U<a;U++){const Y=e[U],z=Number(Y>>BigInt(x)&_);N[z]=N[z].add(r[U])}let k=f;for(let U=N.length-1,Y=f;U>0;U--)Y=Y.add(N[U]),k=k.add(Y);if(T=T.add(k),x!==0)for(let U=0;U<d;U++)T=T.double()}return T}function rc(t,n,r){if(n){if(n.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return o1(n),n}else return Dr(t,{isLE:r})}function ic(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 d of["p","n","h"]){const _=n[d];if(!(typeof _=="bigint"&&_>ei))throw new Error(`CURVE.${d} must be positive bigint`)}const u=rc(n.p,r.Fp,e),a=rc(n.n,r.Fn,e),m=["Gx","Gy","a",t==="weierstrass"?"b":"d"];for(const d of m)if(!u.isValid(n[d]))throw new Error(`CURVE.${d} 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),Ps=BigInt(2),l1=BigInt(8);function d1(t,n,r,e){const u=t.sqr(r),a=t.sqr(e),f=t.add(t.mul(n.a,u),a),m=t.add(t.ONE,t.mul(n.d,t.mul(u,a)));return t.eql(f,m)}function h1(t,n={}){const r=ic("edwards",t,n,n.FpFnLE),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:f}=a;Ti(n,{},{uvRatio:"function"});const m=Ps<<BigInt(u.BYTES*8)-ln,d=Y=>e.create(Y),_=n.uvRatio||((Y,z)=>{try{return{isValid:!0,value:e.sqrt(e.div(Y,z))}}catch{return{isValid:!1,value:wr}}});if(!d1(e,a,a.Gx,a.Gy))throw new Error("bad curve params: generator point");function N(Y,z,J=!1){const Z=J?ln:wr;return Bs("coordinate "+Y,z,Z,m),z}function C(Y){if(!(Y instanceof k))throw new Error("ExtendedPoint expected")}const T=Ao((Y,z)=>{const{X:J,Y:Z,Z:et}=Y,ht=Y.is0();z==null&&(z=ht?l1:e.inv(et));const ut=d(J*z),At=d(Z*z),Rt=e.mul(et,z);if(ht)return{x:wr,y:ln};if(Rt!==ln)throw new Error("invZ was invalid");return{x:ut,y:At}}),x=Ao(Y=>{const{a:z,d:J}=a;if(Y.is0())throw new Error("bad point: ZERO");const{X:Z,Y:et,Z:ht,T:ut}=Y,At=d(Z*Z),Rt=d(et*et),st=d(ht*ht),ft=d(st*st),gt=d(At*z),wt=d(st*d(gt+Rt)),P=d(ft+d(J*d(At*Rt)));if(wt!==P)throw new Error("bad point: equation left != right (1)");const l=d(Z*et),S=d(ht*ut);if(l!==S)throw new Error("bad point: equation left != right (2)");return!0});class k{constructor(z,J,Z,et){this.X=N("x",z),this.Y=N("y",J),this.Z=N("z",Z,!0),this.T=N("t",et),Object.freeze(this)}static CURVE(){return a}static fromAffine(z){if(z instanceof k)throw new Error("extended point not allowed");const{x:J,y:Z}=z||{};return N("x",J),N("y",Z),new k(J,Z,ln,d(J*Z))}static fromBytes(z,J=!1){const Z=e.BYTES,{a:et,d:ht}=a;z=Du(Vn(z,Z,"point")),Mr(J,"zip215");const ut=Du(z),At=z[Z-1];ut[Z-1]=At&-129;const Rt=Ii(ut),st=J?m:e.ORDER;Bs("point.y",Rt,wr,st);const ft=d(Rt*Rt),gt=d(ft-ln),wt=d(ht*ft-et);let{isValid:P,value:l}=_(gt,wt);if(!P)throw new Error("bad point: invalid y coordinate");const S=(l&ln)===ln,D=(At&128)!==0;if(!J&&l===wr&&D)throw new Error("bad point: x=0 and x_0=1");return D!==S&&(l=d(-l)),k.fromAffine({x:l,y:Rt})}static fromHex(z,J=!1){return k.fromBytes(Ke("point",z),J)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(z=8,J=!0){return U.createCache(this,z),J||this.multiply(Ps),this}assertValidity(){x(this)}equals(z){C(z);const{X:J,Y:Z,Z:et}=this,{X:ht,Y:ut,Z:At}=z,Rt=d(J*At),st=d(ht*et),ft=d(Z*At),gt=d(ut*et);return Rt===st&&ft===gt}is0(){return this.equals(k.ZERO)}negate(){return new k(d(-this.X),this.Y,this.Z,d(-this.T))}double(){const{a:z}=a,{X:J,Y:Z,Z:et}=this,ht=d(J*J),ut=d(Z*Z),At=d(Ps*d(et*et)),Rt=d(z*ht),st=J+Z,ft=d(d(st*st)-ht-ut),gt=Rt+ut,wt=gt-At,P=Rt-ut,l=d(ft*wt),S=d(gt*P),D=d(ft*P),W=d(wt*gt);return new k(l,S,W,D)}add(z){C(z);const{a:J,d:Z}=a,{X:et,Y:ht,Z:ut,T:At}=this,{X:Rt,Y:st,Z:ft,T:gt}=z,wt=d(et*Rt),P=d(ht*st),l=d(At*Z*gt),S=d(ut*ft),D=d((et+ht)*(Rt+st)-wt-P),W=S-l,q=S+l,nt=d(P-J*wt),ct=d(D*W),K=d(q*nt),h=d(D*nt),b=d(W*q);return new k(ct,K,b,h)}subtract(z){return this.add(z.negate())}multiply(z){if(!u.isValidNot0(z))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:J,f:Z}=U.cached(this,z,et=>Pr(k,et));return Pr(k,[J,Z])[0]}multiplyUnsafe(z,J=k.ZERO){if(!u.isValid(z))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return z===wr?k.ZERO:this.is0()||z===ln?this:U.unsafe(this,z,Z=>Pr(k,Z),J)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}isTorsionFree(){return U.unsafe(this,a.n).is0()}toAffine(z){return T(this,z)}clearCofactor(){return f===ln?this:this.multiplyUnsafe(f)}toBytes(){const{x:z,y:J}=this.toAffine(),Z=e.toBytes(J);return Z[Z.length-1]|=z&ln?128:0,Z}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(z){return Pr(k,z)}static msm(z,J){return nc(k,u,z,J)}_setWindowSize(z){this.precompute(z)}toRawBytes(){return this.toBytes()}}k.BASE=new k(a.Gx,a.Gy,ln,d(a.Gx*a.Gy)),k.ZERO=new k(wr,ln,ln,wr),k.Fp=e,k.Fn=u;const U=new ec(k,u.BITS);return k.BASE.precompute(8),k}function p1(t,n,r={}){if(typeof n!="function")throw new Error('"hash" function param is required');Ti(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:e}=r,{BASE:u,Fp:a,Fn:f}=t,m=r.randomBytes||Ts,d=r.adjustScalarBytes||(st=>st),_=r.domain||((st,ft,gt)=>{if(Mr(gt,"phflag"),ft.length||gt)throw new Error("Contexts/pre-hash are not supported");return st});function N(st){return f.create(Ii(st))}function C(st){const ft=Z.secretKey;st=Ke("private key",st,ft);const gt=Ke("hashed private key",n(st),2*ft),wt=d(gt.slice(0,ft)),P=gt.slice(ft,2*ft),l=N(wt);return{head:wt,prefix:P,scalar:l}}function T(st){const{head:ft,prefix:gt,scalar:wt}=C(st),P=u.multiply(wt),l=P.toBytes();return{head:ft,prefix:gt,scalar:wt,point:P,pointBytes:l}}function x(st){return T(st).pointBytes}function k(st=Uint8Array.of(),...ft){const gt=Xn(...ft);return N(n(_(gt,Ke("context",st),!!e)))}function U(st,ft,gt={}){st=Ke("message",st),e&&(st=e(st));const{prefix:wt,scalar:P,pointBytes:l}=T(ft),S=k(gt.context,wt,st),D=u.multiply(S).toBytes(),W=k(gt.context,D,l,st),q=f.create(S+W*P);if(!f.isValid(q))throw new Error("sign failed: invalid s");const nt=Xn(D,f.toBytes(q));return Vn(nt,Z.signature,"result")}const Y={zip215:!0};function z(st,ft,gt,wt=Y){const{context:P,zip215:l}=wt,S=Z.signature;st=Ke("signature",st,S),ft=Ke("message",ft),gt=Ke("publicKey",gt,Z.publicKey),l!==void 0&&Mr(l,"zip215"),e&&(ft=e(ft));const D=S/2,W=st.subarray(0,D),q=Ii(st.subarray(D,S));let nt,ct,K;try{nt=t.fromBytes(gt,l),ct=t.fromBytes(W,l),K=u.multiplyUnsafe(q)}catch{return!1}if(!l&&nt.isSmallOrder())return!1;const h=k(P,ct.toBytes(),nt.toBytes(),ft);return ct.add(nt.multiplyUnsafe(h)).subtract(K).clearCofactor().is0()}const J=a.BYTES,Z={secretKey:J,publicKey:J,signature:2*J,seed:J};function et(st=m(Z.seed)){return Vn(st,Z.seed,"seed")}function ht(st){const ft=Rt.randomSecretKey(st);return{secretKey:ft,publicKey:x(ft)}}function ut(st){return Si(st)&&st.length===f.BYTES}function At(st,ft){try{return!!t.fromBytes(st,ft)}catch{return!1}}const Rt={getExtendedPublicKey:T,randomSecretKey:et,isValidSecretKey:ut,isValidPublicKey:At,toMontgomery(st){const{y:ft}=t.fromBytes(st),gt=Z.publicKey,wt=gt===32;if(!wt&&gt!==57)throw new Error("only defined for 25519 and 448");const P=wt?a.div(ln+ft,ln-ft):a.div(ft-ln,ft+ln);return a.toBytes(P)},toMontgomerySecret(st){const ft=Z.secretKey;Vn(st,ft);const gt=n(st.subarray(0,ft));return d(gt).subarray(0,ft)},randomPrivateKey:et,precompute(st=8,ft=t.BASE){return ft.precompute(st,!1)}};return Object.freeze({keygen:ht,getPublicKey:x,sign:U,verify:z,utils:Rt,Point:t,lengths:Z})}function v1(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=Dr(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 m1(t,n){const r=n.Point;return Object.assign({},n,{ExtendedPoint:r,CURVE:t,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}function g1(t){const{CURVE:n,curveOpts:r,hash:e,eddsaOpts:u}=v1(t),a=h1(n,r),f=p1(a,e,u);return m1(t,f)}const y1=BigInt(1),oc=BigInt(2);BigInt(3);const w1=BigInt(5),E1=BigInt(8),Fs=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),sc={p:Fs,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:E1,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function _1(t){const n=BigInt(10),r=BigInt(20),e=BigInt(40),u=BigInt(80),a=Fs,m=t*t%a*t%a,d=Ze(m,oc,a)*m%a,_=Ze(d,y1,a)*t%a,N=Ze(_,w1,a)*_%a,C=Ze(N,n,a)*N%a,T=Ze(C,r,a)*C%a,x=Ze(T,e,a)*T%a,k=Ze(x,u,a)*x%a,U=Ze(k,u,a)*x%a,Y=Ze(U,n,a)*N%a;return{pow_p_5_8:Ze(Y,oc,a)*t%a,b2:m}}function b1(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const ac=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function R1(t,n){const r=Fs,e=sn(n*n*n,r),u=sn(e*e*n,r),a=_1(t*u).pow_p_5_8;let f=sn(t*e*a,r);const m=sn(n*f*f,r),d=f,_=sn(f*ac,r),N=m===t,C=m===sn(-t,r),T=m===sn(-t*ac,r);return N&&(f=d),(C||T)&&(f=_),r1(f,r)&&(f=sn(-f,r)),{isValid:N||C,value:f}}const A1=Dr(sc.p,{isLE:!0}),S1={...sc,Fp:A1,hash:Xd,adjustScalarBytes:b1,uvRatio:R1},Ni=g1(S1);var Io={exports:{}};const I1=bs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var O1=Io.exports,uc;function cc(){return uc||(uc=1,(function(t){(function(n,r){function e(P,l){if(!P)throw new Error(l||"Assertion failed")}function u(P,l){P.super_=l;var S=function(){};S.prototype=l.prototype,P.prototype=new S,P.prototype.constructor=P}function a(P,l,S){if(a.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((l==="le"||l==="be")&&(S=l,l=10),this._init(P||0,l||10,S||"be"))}typeof n=="object"?n.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=I1.Buffer}catch{}a.isBN=function(l){return l instanceof a?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===a.wordSize&&Array.isArray(l.words)},a.max=function(l,S){return l.cmp(S)>0?l:S},a.min=function(l,S){return l.cmp(S)<0?l:S},a.prototype._init=function(l,S,D){if(typeof l=="number")return this._initNumber(l,S,D);if(typeof l=="object")return this._initArray(l,S,D);S==="hex"&&(S=16),e(S===(S|0)&&S>=2&&S<=36),l=l.toString().replace(/\s+/g,"");var W=0;l[0]==="-"&&(W++,this.negative=1),W<l.length&&(S===16?this._parseHex(l,W,D):(this._parseBase(l,S,W),D==="le"&&this._initArray(this.toArray(),S,D)))},a.prototype._initNumber=function(l,S,D){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[l&67108863],this.length=1):l<4503599627370496?(this.words=[l&67108863,l/67108864&67108863],this.length=2):(e(l<9007199254740992),this.words=[l&67108863,l/67108864&67108863,1],this.length=3),D==="le"&&this._initArray(this.toArray(),S,D)},a.prototype._initArray=function(l,S,D){if(e(typeof l.length=="number"),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var W=0;W<this.length;W++)this.words[W]=0;var q,nt,ct=0;if(D==="be")for(W=l.length-1,q=0;W>=0;W-=3)nt=l[W]|l[W-1]<<8|l[W-2]<<16,this.words[q]|=nt<<ct&67108863,this.words[q+1]=nt>>>26-ct&67108863,ct+=24,ct>=26&&(ct-=26,q++);else if(D==="le")for(W=0,q=0;W<l.length;W+=3)nt=l[W]|l[W+1]<<8|l[W+2]<<16,this.words[q]|=nt<<ct&67108863,this.words[q+1]=nt>>>26-ct&67108863,ct+=24,ct>=26&&(ct-=26,q++);return this._strip()};function m(P,l){var S=P.charCodeAt(l);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 d(P,l,S){var D=m(P,S);return S-1>=l&&(D|=m(P,S-1)<<4),D}a.prototype._parseHex=function(l,S,D){this.length=Math.ceil((l.length-S)/6),this.words=new Array(this.length);for(var W=0;W<this.length;W++)this.words[W]=0;var q=0,nt=0,ct;if(D==="be")for(W=l.length-1;W>=S;W-=2)ct=d(l,S,W)<<q,this.words[nt]|=ct&67108863,q>=18?(q-=18,nt+=1,this.words[nt]|=ct>>>26):q+=8;else{var K=l.length-S;for(W=K%2===0?S+1:S;W<l.length;W+=2)ct=d(l,S,W)<<q,this.words[nt]|=ct&67108863,q>=18?(q-=18,nt+=1,this.words[nt]|=ct>>>26):q+=8}this._strip()};function _(P,l,S,D){for(var W=0,q=0,nt=Math.min(P.length,S),ct=l;ct<nt;ct++){var K=P.charCodeAt(ct)-48;W*=D,K>=49?q=K-49+10:K>=17?q=K-17+10:q=K,e(K>=0&&q<D,"Invalid character"),W+=q}return W}a.prototype._parseBase=function(l,S,D){this.words=[0],this.length=1;for(var W=0,q=1;q<=67108863;q*=S)W++;W--,q=q/S|0;for(var nt=l.length-D,ct=nt%W,K=Math.min(nt,nt-ct)+D,h=0,b=D;b<K;b+=W)h=_(l,b,b+W,S),this.imuln(q),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(ct!==0){var j=1;for(h=_(l,b,l.length,S),b=0;b<ct;b++)j*=S;this.imuln(j),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},a.prototype.copy=function(l){l.words=new Array(this.length);for(var S=0;S<this.length;S++)l.words[S]=this.words[S];l.length=this.length,l.negative=this.negative,l.red=this.red};function N(P,l){P.words=l.words,P.length=l.length,P.negative=l.negative,P.red=l.red}if(a.prototype._move=function(l){N(l,this)},a.prototype.clone=function(){var l=new a(null);return this.copy(l),l},a.prototype._expand=function(l){for(;this.length<l;)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")]=C}catch{a.prototype.inspect=C}else a.prototype.inspect=C;function C(){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"],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],k=[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(l,S){l=l||10,S=S|0||1;var D;if(l===16||l==="hex"){D="";for(var W=0,q=0,nt=0;nt<this.length;nt++){var ct=this.words[nt],K=((ct<<W|q)&16777215).toString(16);q=ct>>>24-W&16777215,W+=2,W>=26&&(W-=26,nt--),q!==0||nt!==this.length-1?D=T[6-K.length]+K+D:D=K+D}for(q!==0&&(D=q.toString(16)+D);D.length%S!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}if(l===(l|0)&&l>=2&&l<=36){var h=x[l],b=k[l];D="";var j=this.clone();for(j.negative=0;!j.isZero();){var X=j.modrn(b).toString(l);j=j.idivn(b),j.isZero()?D=X+D:D=T[h-X.length]+X+D}for(this.isZero()&&(D="0"+D);D.length%S!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}e(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},a.prototype.toJSON=function(){return this.toString(16,2)},f&&(a.prototype.toBuffer=function(l,S){return this.toArrayLike(f,l,S)}),a.prototype.toArray=function(l,S){return this.toArrayLike(Array,l,S)};var U=function(l,S){return l.allocUnsafe?l.allocUnsafe(S):new l(S)};a.prototype.toArrayLike=function(l,S,D){this._strip();var W=this.byteLength(),q=D||Math.max(1,W);e(W<=q,"byte array longer than desired length"),e(q>0,"Requested array length <= 0");var nt=U(l,q),ct=S==="le"?"LE":"BE";return this["_toArrayLike"+ct](nt,W),nt},a.prototype._toArrayLikeLE=function(l,S){for(var D=0,W=0,q=0,nt=0;q<this.length;q++){var ct=this.words[q]<<nt|W;l[D++]=ct&255,D<l.length&&(l[D++]=ct>>8&255),D<l.length&&(l[D++]=ct>>16&255),nt===6?(D<l.length&&(l[D++]=ct>>24&255),W=0,nt=0):(W=ct>>>24,nt+=2)}if(D<l.length)for(l[D++]=W;D<l.length;)l[D++]=0},a.prototype._toArrayLikeBE=function(l,S){for(var D=l.length-1,W=0,q=0,nt=0;q<this.length;q++){var ct=this.words[q]<<nt|W;l[D--]=ct&255,D>=0&&(l[D--]=ct>>8&255),D>=0&&(l[D--]=ct>>16&255),nt===6?(D>=0&&(l[D--]=ct>>24&255),W=0,nt=0):(W=ct>>>24,nt+=2)}if(D>=0)for(l[D--]=W;D>=0;)l[D--]=0},Math.clz32?a.prototype._countBits=function(l){return 32-Math.clz32(l)}:a.prototype._countBits=function(l){var S=l,D=0;return S>=4096&&(D+=13,S>>>=13),S>=64&&(D+=7,S>>>=7),S>=8&&(D+=4,S>>>=4),S>=2&&(D+=2,S>>>=2),D+S},a.prototype._zeroBits=function(l){if(l===0)return 26;var S=l,D=0;return(S&8191)===0&&(D+=13,S>>>=13),(S&127)===0&&(D+=7,S>>>=7),(S&15)===0&&(D+=4,S>>>=4),(S&3)===0&&(D+=2,S>>>=2),(S&1)===0&&D++,D},a.prototype.bitLength=function(){var l=this.words[this.length-1],S=this._countBits(l);return(this.length-1)*26+S};function Y(P){for(var l=new Array(P.bitLength()),S=0;S<l.length;S++){var D=S/26|0,W=S%26;l[S]=P.words[D]>>>W&1}return l}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,S=0;S<this.length;S++){var D=this._zeroBits(this.words[S]);if(l+=D,D!==26)break}return l},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(l){return this.negative!==0?this.abs().inotn(l).iaddn(1):this.clone()},a.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).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(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var S=0;S<l.length;S++)this.words[S]=this.words[S]|l.words[S];return this._strip()},a.prototype.ior=function(l){return e((this.negative|l.negative)===0),this.iuor(l)},a.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},a.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},a.prototype.iuand=function(l){var S;this.length>l.length?S=l:S=this;for(var D=0;D<S.length;D++)this.words[D]=this.words[D]&l.words[D];return this.length=S.length,this._strip()},a.prototype.iand=function(l){return e((this.negative|l.negative)===0),this.iuand(l)},a.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},a.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},a.prototype.iuxor=function(l){var S,D;this.length>l.length?(S=this,D=l):(S=l,D=this);for(var W=0;W<D.length;W++)this.words[W]=S.words[W]^D.words[W];if(this!==S)for(;W<S.length;W++)this.words[W]=S.words[W];return this.length=S.length,this._strip()},a.prototype.ixor=function(l){return e((this.negative|l.negative)===0),this.iuxor(l)},a.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},a.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},a.prototype.inotn=function(l){e(typeof l=="number"&&l>=0);var S=Math.ceil(l/26)|0,D=l%26;this._expand(S),D>0&&S--;for(var W=0;W<S;W++)this.words[W]=~this.words[W]&67108863;return D>0&&(this.words[W]=~this.words[W]&67108863>>26-D),this._strip()},a.prototype.notn=function(l){return this.clone().inotn(l)},a.prototype.setn=function(l,S){e(typeof l=="number"&&l>=0);var D=l/26|0,W=l%26;return this._expand(D+1),S?this.words[D]=this.words[D]|1<<W:this.words[D]=this.words[D]&~(1<<W),this._strip()},a.prototype.iadd=function(l){var S;if(this.negative!==0&&l.negative===0)return this.negative=0,S=this.isub(l),this.negative^=1,this._normSign();if(this.negative===0&&l.negative!==0)return l.negative=0,S=this.isub(l),l.negative=1,S._normSign();var D,W;this.length>l.length?(D=this,W=l):(D=l,W=this);for(var q=0,nt=0;nt<W.length;nt++)S=(D.words[nt]|0)+(W.words[nt]|0)+q,this.words[nt]=S&67108863,q=S>>>26;for(;q!==0&&nt<D.length;nt++)S=(D.words[nt]|0)+q,this.words[nt]=S&67108863,q=S>>>26;if(this.length=D.length,q!==0)this.words[this.length]=q,this.length++;else if(D!==this)for(;nt<D.length;nt++)this.words[nt]=D.words[nt];return this},a.prototype.add=function(l){var S;return l.negative!==0&&this.negative===0?(l.negative=0,S=this.sub(l),l.negative^=1,S):l.negative===0&&this.negative!==0?(this.negative=0,S=l.sub(this),this.negative=1,S):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},a.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var S=this.iadd(l);return l.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var D=this.cmp(l);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var W,q;D>0?(W=this,q=l):(W=l,q=this);for(var nt=0,ct=0;ct<q.length;ct++)S=(W.words[ct]|0)-(q.words[ct]|0)+nt,nt=S>>26,this.words[ct]=S&67108863;for(;nt!==0&&ct<W.length;ct++)S=(W.words[ct]|0)+nt,nt=S>>26,this.words[ct]=S&67108863;if(nt===0&&ct<W.length&&W!==this)for(;ct<W.length;ct++)this.words[ct]=W.words[ct];return this.length=Math.max(this.length,ct),W!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(l){return this.clone().isub(l)};function z(P,l,S){S.negative=l.negative^P.negative;var D=P.length+l.length|0;S.length=D,D=D-1|0;var W=P.words[0]|0,q=l.words[0]|0,nt=W*q,ct=nt&67108863,K=nt/67108864|0;S.words[0]=ct;for(var h=1;h<D;h++){for(var b=K>>>26,j=K&67108863,X=Math.min(h,l.length-1),pt=Math.max(0,h-P.length+1);pt<=X;pt++){var St=h-pt|0;W=P.words[St]|0,q=l.words[pt]|0,nt=W*q+j,b+=nt/67108864|0,j=nt&67108863}S.words[h]=j|0,K=b|0}return K!==0?S.words[h]=K|0:S.length--,S._strip()}var J=function(l,S,D){var W=l.words,q=S.words,nt=D.words,ct=0,K,h,b,j=W[0]|0,X=j&8191,pt=j>>>13,St=W[1]|0,Ht=St&8191,Kt=St>>>13,le=W[2]|0,ge=le&8191,ve=le>>>13,Ie=W[3]|0,_e=Ie&8191,Ee=Ie>>>13,Ve=W[4]|0,Oe=Ve&8191,g=Ve>>>13,L=W[5]|0,V=L&8191,lt=L>>>13,yt=W[6]|0,Et=yt&8191,Ct=yt>>>13,zt=W[7]|0,te=zt&8191,F=zt>>>13,R=W[8]|0,O=R&8191,A=R>>>13,H=W[9]|0,G=H&8191,ot=H>>>13,Lt=q[0]|0,Bt=Lt&8191,Dt=Lt>>>13,kt=q[1]|0,it=kt&8191,Wt=kt>>>13,he=q[2]|0,ee=he&8191,oe=he>>>13,de=q[3]|0,fe=de&8191,ae=de>>>13,ze=q[4]|0,ye=ze&8191,be=ze>>>13,an=q[5]|0,Be=an&8191,Ue=an>>>13,lr=q[6]|0,Ge=lr&8191,He=lr>>>13,Yr=q[7]|0,$e=Yr&8191,qe=Yr>>>13,es=q[8]|0,Je=es&8191,Qe=es>>>13,ns=q[9]|0,tn=ns&8191,en=ns>>>13;D.negative=l.negative^S.negative,D.length=19,K=Math.imul(X,Bt),h=Math.imul(X,Dt),h=h+Math.imul(pt,Bt)|0,b=Math.imul(pt,Dt);var ji=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(ji>>>26)|0,ji&=67108863,K=Math.imul(Ht,Bt),h=Math.imul(Ht,Dt),h=h+Math.imul(Kt,Bt)|0,b=Math.imul(Kt,Dt),K=K+Math.imul(X,it)|0,h=h+Math.imul(X,Wt)|0,h=h+Math.imul(pt,it)|0,b=b+Math.imul(pt,Wt)|0;var Yi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,K=Math.imul(ge,Bt),h=Math.imul(ge,Dt),h=h+Math.imul(ve,Bt)|0,b=Math.imul(ve,Dt),K=K+Math.imul(Ht,it)|0,h=h+Math.imul(Ht,Wt)|0,h=h+Math.imul(Kt,it)|0,b=b+Math.imul(Kt,Wt)|0,K=K+Math.imul(X,ee)|0,h=h+Math.imul(X,oe)|0,h=h+Math.imul(pt,ee)|0,b=b+Math.imul(pt,oe)|0;var zi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(zi>>>26)|0,zi&=67108863,K=Math.imul(_e,Bt),h=Math.imul(_e,Dt),h=h+Math.imul(Ee,Bt)|0,b=Math.imul(Ee,Dt),K=K+Math.imul(ge,it)|0,h=h+Math.imul(ge,Wt)|0,h=h+Math.imul(ve,it)|0,b=b+Math.imul(ve,Wt)|0,K=K+Math.imul(Ht,ee)|0,h=h+Math.imul(Ht,oe)|0,h=h+Math.imul(Kt,ee)|0,b=b+Math.imul(Kt,oe)|0,K=K+Math.imul(X,fe)|0,h=h+Math.imul(X,ae)|0,h=h+Math.imul(pt,fe)|0,b=b+Math.imul(pt,ae)|0;var Wi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,K=Math.imul(Oe,Bt),h=Math.imul(Oe,Dt),h=h+Math.imul(g,Bt)|0,b=Math.imul(g,Dt),K=K+Math.imul(_e,it)|0,h=h+Math.imul(_e,Wt)|0,h=h+Math.imul(Ee,it)|0,b=b+Math.imul(Ee,Wt)|0,K=K+Math.imul(ge,ee)|0,h=h+Math.imul(ge,oe)|0,h=h+Math.imul(ve,ee)|0,b=b+Math.imul(ve,oe)|0,K=K+Math.imul(Ht,fe)|0,h=h+Math.imul(Ht,ae)|0,h=h+Math.imul(Kt,fe)|0,b=b+Math.imul(Kt,ae)|0,K=K+Math.imul(X,ye)|0,h=h+Math.imul(X,be)|0,h=h+Math.imul(pt,ye)|0,b=b+Math.imul(pt,be)|0;var Ki=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,K=Math.imul(V,Bt),h=Math.imul(V,Dt),h=h+Math.imul(lt,Bt)|0,b=Math.imul(lt,Dt),K=K+Math.imul(Oe,it)|0,h=h+Math.imul(Oe,Wt)|0,h=h+Math.imul(g,it)|0,b=b+Math.imul(g,Wt)|0,K=K+Math.imul(_e,ee)|0,h=h+Math.imul(_e,oe)|0,h=h+Math.imul(Ee,ee)|0,b=b+Math.imul(Ee,oe)|0,K=K+Math.imul(ge,fe)|0,h=h+Math.imul(ge,ae)|0,h=h+Math.imul(ve,fe)|0,b=b+Math.imul(ve,ae)|0,K=K+Math.imul(Ht,ye)|0,h=h+Math.imul(Ht,be)|0,h=h+Math.imul(Kt,ye)|0,b=b+Math.imul(Kt,be)|0,K=K+Math.imul(X,Be)|0,h=h+Math.imul(X,Ue)|0,h=h+Math.imul(pt,Be)|0,b=b+Math.imul(pt,Ue)|0;var Zi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,K=Math.imul(Et,Bt),h=Math.imul(Et,Dt),h=h+Math.imul(Ct,Bt)|0,b=Math.imul(Ct,Dt),K=K+Math.imul(V,it)|0,h=h+Math.imul(V,Wt)|0,h=h+Math.imul(lt,it)|0,b=b+Math.imul(lt,Wt)|0,K=K+Math.imul(Oe,ee)|0,h=h+Math.imul(Oe,oe)|0,h=h+Math.imul(g,ee)|0,b=b+Math.imul(g,oe)|0,K=K+Math.imul(_e,fe)|0,h=h+Math.imul(_e,ae)|0,h=h+Math.imul(Ee,fe)|0,b=b+Math.imul(Ee,ae)|0,K=K+Math.imul(ge,ye)|0,h=h+Math.imul(ge,be)|0,h=h+Math.imul(ve,ye)|0,b=b+Math.imul(ve,be)|0,K=K+Math.imul(Ht,Be)|0,h=h+Math.imul(Ht,Ue)|0,h=h+Math.imul(Kt,Be)|0,b=b+Math.imul(Kt,Ue)|0,K=K+Math.imul(X,Ge)|0,h=h+Math.imul(X,He)|0,h=h+Math.imul(pt,Ge)|0,b=b+Math.imul(pt,He)|0;var Xi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,K=Math.imul(te,Bt),h=Math.imul(te,Dt),h=h+Math.imul(F,Bt)|0,b=Math.imul(F,Dt),K=K+Math.imul(Et,it)|0,h=h+Math.imul(Et,Wt)|0,h=h+Math.imul(Ct,it)|0,b=b+Math.imul(Ct,Wt)|0,K=K+Math.imul(V,ee)|0,h=h+Math.imul(V,oe)|0,h=h+Math.imul(lt,ee)|0,b=b+Math.imul(lt,oe)|0,K=K+Math.imul(Oe,fe)|0,h=h+Math.imul(Oe,ae)|0,h=h+Math.imul(g,fe)|0,b=b+Math.imul(g,ae)|0,K=K+Math.imul(_e,ye)|0,h=h+Math.imul(_e,be)|0,h=h+Math.imul(Ee,ye)|0,b=b+Math.imul(Ee,be)|0,K=K+Math.imul(ge,Be)|0,h=h+Math.imul(ge,Ue)|0,h=h+Math.imul(ve,Be)|0,b=b+Math.imul(ve,Ue)|0,K=K+Math.imul(Ht,Ge)|0,h=h+Math.imul(Ht,He)|0,h=h+Math.imul(Kt,Ge)|0,b=b+Math.imul(Kt,He)|0,K=K+Math.imul(X,$e)|0,h=h+Math.imul(X,qe)|0,h=h+Math.imul(pt,$e)|0,b=b+Math.imul(pt,qe)|0;var $i=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+($i>>>26)|0,$i&=67108863,K=Math.imul(O,Bt),h=Math.imul(O,Dt),h=h+Math.imul(A,Bt)|0,b=Math.imul(A,Dt),K=K+Math.imul(te,it)|0,h=h+Math.imul(te,Wt)|0,h=h+Math.imul(F,it)|0,b=b+Math.imul(F,Wt)|0,K=K+Math.imul(Et,ee)|0,h=h+Math.imul(Et,oe)|0,h=h+Math.imul(Ct,ee)|0,b=b+Math.imul(Ct,oe)|0,K=K+Math.imul(V,fe)|0,h=h+Math.imul(V,ae)|0,h=h+Math.imul(lt,fe)|0,b=b+Math.imul(lt,ae)|0,K=K+Math.imul(Oe,ye)|0,h=h+Math.imul(Oe,be)|0,h=h+Math.imul(g,ye)|0,b=b+Math.imul(g,be)|0,K=K+Math.imul(_e,Be)|0,h=h+Math.imul(_e,Ue)|0,h=h+Math.imul(Ee,Be)|0,b=b+Math.imul(Ee,Ue)|0,K=K+Math.imul(ge,Ge)|0,h=h+Math.imul(ge,He)|0,h=h+Math.imul(ve,Ge)|0,b=b+Math.imul(ve,He)|0,K=K+Math.imul(Ht,$e)|0,h=h+Math.imul(Ht,qe)|0,h=h+Math.imul(Kt,$e)|0,b=b+Math.imul(Kt,qe)|0,K=K+Math.imul(X,Je)|0,h=h+Math.imul(X,Qe)|0,h=h+Math.imul(pt,Je)|0,b=b+Math.imul(pt,Qe)|0;var qi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(qi>>>26)|0,qi&=67108863,K=Math.imul(G,Bt),h=Math.imul(G,Dt),h=h+Math.imul(ot,Bt)|0,b=Math.imul(ot,Dt),K=K+Math.imul(O,it)|0,h=h+Math.imul(O,Wt)|0,h=h+Math.imul(A,it)|0,b=b+Math.imul(A,Wt)|0,K=K+Math.imul(te,ee)|0,h=h+Math.imul(te,oe)|0,h=h+Math.imul(F,ee)|0,b=b+Math.imul(F,oe)|0,K=K+Math.imul(Et,fe)|0,h=h+Math.imul(Et,ae)|0,h=h+Math.imul(Ct,fe)|0,b=b+Math.imul(Ct,ae)|0,K=K+Math.imul(V,ye)|0,h=h+Math.imul(V,be)|0,h=h+Math.imul(lt,ye)|0,b=b+Math.imul(lt,be)|0,K=K+Math.imul(Oe,Be)|0,h=h+Math.imul(Oe,Ue)|0,h=h+Math.imul(g,Be)|0,b=b+Math.imul(g,Ue)|0,K=K+Math.imul(_e,Ge)|0,h=h+Math.imul(_e,He)|0,h=h+Math.imul(Ee,Ge)|0,b=b+Math.imul(Ee,He)|0,K=K+Math.imul(ge,$e)|0,h=h+Math.imul(ge,qe)|0,h=h+Math.imul(ve,$e)|0,b=b+Math.imul(ve,qe)|0,K=K+Math.imul(Ht,Je)|0,h=h+Math.imul(Ht,Qe)|0,h=h+Math.imul(Kt,Je)|0,b=b+Math.imul(Kt,Qe)|0,K=K+Math.imul(X,tn)|0,h=h+Math.imul(X,en)|0,h=h+Math.imul(pt,tn)|0,b=b+Math.imul(pt,en)|0;var Ji=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,K=Math.imul(G,it),h=Math.imul(G,Wt),h=h+Math.imul(ot,it)|0,b=Math.imul(ot,Wt),K=K+Math.imul(O,ee)|0,h=h+Math.imul(O,oe)|0,h=h+Math.imul(A,ee)|0,b=b+Math.imul(A,oe)|0,K=K+Math.imul(te,fe)|0,h=h+Math.imul(te,ae)|0,h=h+Math.imul(F,fe)|0,b=b+Math.imul(F,ae)|0,K=K+Math.imul(Et,ye)|0,h=h+Math.imul(Et,be)|0,h=h+Math.imul(Ct,ye)|0,b=b+Math.imul(Ct,be)|0,K=K+Math.imul(V,Be)|0,h=h+Math.imul(V,Ue)|0,h=h+Math.imul(lt,Be)|0,b=b+Math.imul(lt,Ue)|0,K=K+Math.imul(Oe,Ge)|0,h=h+Math.imul(Oe,He)|0,h=h+Math.imul(g,Ge)|0,b=b+Math.imul(g,He)|0,K=K+Math.imul(_e,$e)|0,h=h+Math.imul(_e,qe)|0,h=h+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,qe)|0,K=K+Math.imul(ge,Je)|0,h=h+Math.imul(ge,Qe)|0,h=h+Math.imul(ve,Je)|0,b=b+Math.imul(ve,Qe)|0,K=K+Math.imul(Ht,tn)|0,h=h+Math.imul(Ht,en)|0,h=h+Math.imul(Kt,tn)|0,b=b+Math.imul(Kt,en)|0;var dn=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(dn>>>26)|0,dn&=67108863,K=Math.imul(G,ee),h=Math.imul(G,oe),h=h+Math.imul(ot,ee)|0,b=Math.imul(ot,oe),K=K+Math.imul(O,fe)|0,h=h+Math.imul(O,ae)|0,h=h+Math.imul(A,fe)|0,b=b+Math.imul(A,ae)|0,K=K+Math.imul(te,ye)|0,h=h+Math.imul(te,be)|0,h=h+Math.imul(F,ye)|0,b=b+Math.imul(F,be)|0,K=K+Math.imul(Et,Be)|0,h=h+Math.imul(Et,Ue)|0,h=h+Math.imul(Ct,Be)|0,b=b+Math.imul(Ct,Ue)|0,K=K+Math.imul(V,Ge)|0,h=h+Math.imul(V,He)|0,h=h+Math.imul(lt,Ge)|0,b=b+Math.imul(lt,He)|0,K=K+Math.imul(Oe,$e)|0,h=h+Math.imul(Oe,qe)|0,h=h+Math.imul(g,$e)|0,b=b+Math.imul(g,qe)|0,K=K+Math.imul(_e,Je)|0,h=h+Math.imul(_e,Qe)|0,h=h+Math.imul(Ee,Je)|0,b=b+Math.imul(Ee,Qe)|0,K=K+Math.imul(ge,tn)|0,h=h+Math.imul(ge,en)|0,h=h+Math.imul(ve,tn)|0,b=b+Math.imul(ve,en)|0;var Qi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,K=Math.imul(G,fe),h=Math.imul(G,ae),h=h+Math.imul(ot,fe)|0,b=Math.imul(ot,ae),K=K+Math.imul(O,ye)|0,h=h+Math.imul(O,be)|0,h=h+Math.imul(A,ye)|0,b=b+Math.imul(A,be)|0,K=K+Math.imul(te,Be)|0,h=h+Math.imul(te,Ue)|0,h=h+Math.imul(F,Be)|0,b=b+Math.imul(F,Ue)|0,K=K+Math.imul(Et,Ge)|0,h=h+Math.imul(Et,He)|0,h=h+Math.imul(Ct,Ge)|0,b=b+Math.imul(Ct,He)|0,K=K+Math.imul(V,$e)|0,h=h+Math.imul(V,qe)|0,h=h+Math.imul(lt,$e)|0,b=b+Math.imul(lt,qe)|0,K=K+Math.imul(Oe,Je)|0,h=h+Math.imul(Oe,Qe)|0,h=h+Math.imul(g,Je)|0,b=b+Math.imul(g,Qe)|0,K=K+Math.imul(_e,tn)|0,h=h+Math.imul(_e,en)|0,h=h+Math.imul(Ee,tn)|0,b=b+Math.imul(Ee,en)|0;var to=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(to>>>26)|0,to&=67108863,K=Math.imul(G,ye),h=Math.imul(G,be),h=h+Math.imul(ot,ye)|0,b=Math.imul(ot,be),K=K+Math.imul(O,Be)|0,h=h+Math.imul(O,Ue)|0,h=h+Math.imul(A,Be)|0,b=b+Math.imul(A,Ue)|0,K=K+Math.imul(te,Ge)|0,h=h+Math.imul(te,He)|0,h=h+Math.imul(F,Ge)|0,b=b+Math.imul(F,He)|0,K=K+Math.imul(Et,$e)|0,h=h+Math.imul(Et,qe)|0,h=h+Math.imul(Ct,$e)|0,b=b+Math.imul(Ct,qe)|0,K=K+Math.imul(V,Je)|0,h=h+Math.imul(V,Qe)|0,h=h+Math.imul(lt,Je)|0,b=b+Math.imul(lt,Qe)|0,K=K+Math.imul(Oe,tn)|0,h=h+Math.imul(Oe,en)|0,h=h+Math.imul(g,tn)|0,b=b+Math.imul(g,en)|0;var eo=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(eo>>>26)|0,eo&=67108863,K=Math.imul(G,Be),h=Math.imul(G,Ue),h=h+Math.imul(ot,Be)|0,b=Math.imul(ot,Ue),K=K+Math.imul(O,Ge)|0,h=h+Math.imul(O,He)|0,h=h+Math.imul(A,Ge)|0,b=b+Math.imul(A,He)|0,K=K+Math.imul(te,$e)|0,h=h+Math.imul(te,qe)|0,h=h+Math.imul(F,$e)|0,b=b+Math.imul(F,qe)|0,K=K+Math.imul(Et,Je)|0,h=h+Math.imul(Et,Qe)|0,h=h+Math.imul(Ct,Je)|0,b=b+Math.imul(Ct,Qe)|0,K=K+Math.imul(V,tn)|0,h=h+Math.imul(V,en)|0,h=h+Math.imul(lt,tn)|0,b=b+Math.imul(lt,en)|0;var Me=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Me>>>26)|0,Me&=67108863,K=Math.imul(G,Ge),h=Math.imul(G,He),h=h+Math.imul(ot,Ge)|0,b=Math.imul(ot,He),K=K+Math.imul(O,$e)|0,h=h+Math.imul(O,qe)|0,h=h+Math.imul(A,$e)|0,b=b+Math.imul(A,qe)|0,K=K+Math.imul(te,Je)|0,h=h+Math.imul(te,Qe)|0,h=h+Math.imul(F,Je)|0,b=b+Math.imul(F,Qe)|0,K=K+Math.imul(Et,tn)|0,h=h+Math.imul(Et,en)|0,h=h+Math.imul(Ct,tn)|0,b=b+Math.imul(Ct,en)|0;var no=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(no>>>26)|0,no&=67108863,K=Math.imul(G,$e),h=Math.imul(G,qe),h=h+Math.imul(ot,$e)|0,b=Math.imul(ot,qe),K=K+Math.imul(O,Je)|0,h=h+Math.imul(O,Qe)|0,h=h+Math.imul(A,Je)|0,b=b+Math.imul(A,Qe)|0,K=K+Math.imul(te,tn)|0,h=h+Math.imul(te,en)|0,h=h+Math.imul(F,tn)|0,b=b+Math.imul(F,en)|0;var Dn=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,K=Math.imul(G,Je),h=Math.imul(G,Qe),h=h+Math.imul(ot,Je)|0,b=Math.imul(ot,Qe),K=K+Math.imul(O,tn)|0,h=h+Math.imul(O,en)|0,h=h+Math.imul(A,tn)|0,b=b+Math.imul(A,en)|0;var mi=(ct+K|0)+((h&8191)<<13)|0;ct=(b+(h>>>13)|0)+(mi>>>26)|0,mi&=67108863,K=Math.imul(G,tn),h=Math.imul(G,en),h=h+Math.imul(ot,tn)|0,b=Math.imul(ot,en);var gi=(ct+K|0)+((h&8191)<<13)|0;return ct=(b+(h>>>13)|0)+(gi>>>26)|0,gi&=67108863,nt[0]=ji,nt[1]=Yi,nt[2]=zi,nt[3]=Wi,nt[4]=Ki,nt[5]=Zi,nt[6]=Xi,nt[7]=$i,nt[8]=qi,nt[9]=Ji,nt[10]=dn,nt[11]=Qi,nt[12]=to,nt[13]=eo,nt[14]=Me,nt[15]=no,nt[16]=Dn,nt[17]=mi,nt[18]=gi,ct!==0&&(nt[19]=ct,D.length++),D};Math.imul||(J=z);function Z(P,l,S){S.negative=l.negative^P.negative,S.length=P.length+l.length;for(var D=0,W=0,q=0;q<S.length-1;q++){var nt=W;W=0;for(var ct=D&67108863,K=Math.min(q,l.length-1),h=Math.max(0,q-P.length+1);h<=K;h++){var b=q-h,j=P.words[b]|0,X=l.words[h]|0,pt=j*X,St=pt&67108863;nt=nt+(pt/67108864|0)|0,St=St+ct|0,ct=St&67108863,nt=nt+(St>>>26)|0,W+=nt>>>26,nt&=67108863}S.words[q]=ct,D=nt,nt=W}return D!==0?S.words[q]=D:S.length--,S._strip()}function et(P,l,S){return Z(P,l,S)}a.prototype.mulTo=function(l,S){var D,W=this.length+l.length;return this.length===10&&l.length===10?D=J(this,l,S):W<63?D=z(this,l,S):W<1024?D=Z(this,l,S):D=et(this,l,S),D},a.prototype.mul=function(l){var S=new a(null);return S.words=new Array(this.length+l.length),this.mulTo(l,S)},a.prototype.mulf=function(l){var S=new a(null);return S.words=new Array(this.length+l.length),et(this,l,S)},a.prototype.imul=function(l){return this.clone().mulTo(l,this)},a.prototype.imuln=function(l){var S=l<0;S&&(l=-l),e(typeof l=="number"),e(l<67108864);for(var D=0,W=0;W<this.length;W++){var q=(this.words[W]|0)*l,nt=(q&67108863)+(D&67108863);D>>=26,D+=q/67108864|0,D+=nt>>>26,this.words[W]=nt&67108863}return D!==0&&(this.words[W]=D,this.length++),this.length=l===0?1:this.length,S?this.ineg():this},a.prototype.muln=function(l){return this.clone().imuln(l)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(l){var S=Y(l);if(S.length===0)return new a(1);for(var D=this,W=0;W<S.length&&S[W]===0;W++,D=D.sqr());if(++W<S.length)for(var q=D.sqr();W<S.length;W++,q=q.sqr())S[W]!==0&&(D=D.mul(q));return D},a.prototype.iushln=function(l){e(typeof l=="number"&&l>=0);var S=l%26,D=(l-S)/26,W=67108863>>>26-S<<26-S,q;if(S!==0){var nt=0;for(q=0;q<this.length;q++){var ct=this.words[q]&W,K=(this.words[q]|0)-ct<<S;this.words[q]=K|nt,nt=ct>>>26-S}nt&&(this.words[q]=nt,this.length++)}if(D!==0){for(q=this.length-1;q>=0;q--)this.words[q+D]=this.words[q];for(q=0;q<D;q++)this.words[q]=0;this.length+=D}return this._strip()},a.prototype.ishln=function(l){return e(this.negative===0),this.iushln(l)},a.prototype.iushrn=function(l,S,D){e(typeof l=="number"&&l>=0);var W;S?W=(S-S%26)/26:W=0;var q=l%26,nt=Math.min((l-q)/26,this.length),ct=67108863^67108863>>>q<<q,K=D;if(W-=nt,W=Math.max(0,W),K){for(var h=0;h<nt;h++)K.words[h]=this.words[h];K.length=nt}if(nt!==0)if(this.length>nt)for(this.length-=nt,h=0;h<this.length;h++)this.words[h]=this.words[h+nt];else this.words[0]=0,this.length=1;var b=0;for(h=this.length-1;h>=0&&(b!==0||h>=W);h--){var j=this.words[h]|0;this.words[h]=b<<26-q|j>>>q,b=j&ct}return K&&b!==0&&(K.words[K.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(l,S,D){return e(this.negative===0),this.iushrn(l,S,D)},a.prototype.shln=function(l){return this.clone().ishln(l)},a.prototype.ushln=function(l){return this.clone().iushln(l)},a.prototype.shrn=function(l){return this.clone().ishrn(l)},a.prototype.ushrn=function(l){return this.clone().iushrn(l)},a.prototype.testn=function(l){e(typeof l=="number"&&l>=0);var S=l%26,D=(l-S)/26,W=1<<S;if(this.length<=D)return!1;var q=this.words[D];return!!(q&W)},a.prototype.imaskn=function(l){e(typeof l=="number"&&l>=0);var S=l%26,D=(l-S)/26;if(e(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(S!==0&&D++,this.length=Math.min(D,this.length),S!==0){var W=67108863^67108863>>>S<<S;this.words[this.length-1]&=W}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.maskn=function(l){return this.clone().imaskn(l)},a.prototype.iaddn=function(l){return e(typeof l=="number"),e(l<67108864),l<0?this.isubn(-l):this.negative!==0?this.length===1&&(this.words[0]|0)<=l?(this.words[0]=l-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},a.prototype._iaddn=function(l){this.words[0]+=l;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(l){if(e(typeof l=="number"),e(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,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(l){return this.clone().iaddn(l)},a.prototype.subn=function(l){return this.clone().isubn(l)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(l,S,D){var W=l.length+D,q;this._expand(W);var nt,ct=0;for(q=0;q<l.length;q++){nt=(this.words[q+D]|0)+ct;var K=(l.words[q]|0)*S;nt-=K&67108863,ct=(nt>>26)-(K/67108864|0),this.words[q+D]=nt&67108863}for(;q<this.length-D;q++)nt=(this.words[q+D]|0)+ct,ct=nt>>26,this.words[q+D]=nt&67108863;if(ct===0)return this._strip();for(e(ct===-1),ct=0,q=0;q<this.length;q++)nt=-(this.words[q]|0)+ct,ct=nt>>26,this.words[q]=nt&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(l,S){var D=this.length-l.length,W=this.clone(),q=l,nt=q.words[q.length-1]|0,ct=this._countBits(nt);D=26-ct,D!==0&&(q=q.ushln(D),W.iushln(D),nt=q.words[q.length-1]|0);var K=W.length-q.length,h;if(S!=="mod"){h=new a(null),h.length=K+1,h.words=new Array(h.length);for(var b=0;b<h.length;b++)h.words[b]=0}var j=W.clone()._ishlnsubmul(q,1,K);j.negative===0&&(W=j,h&&(h.words[K]=1));for(var X=K-1;X>=0;X--){var pt=(W.words[q.length+X]|0)*67108864+(W.words[q.length+X-1]|0);for(pt=Math.min(pt/nt|0,67108863),W._ishlnsubmul(q,pt,X);W.negative!==0;)pt--,W.negative=0,W._ishlnsubmul(q,1,X),W.isZero()||(W.negative^=1);h&&(h.words[X]=pt)}return h&&h._strip(),W._strip(),S!=="div"&&D!==0&&W.iushrn(D),{div:h||null,mod:W}},a.prototype.divmod=function(l,S,D){if(e(!l.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var W,q,nt;return this.negative!==0&&l.negative===0?(nt=this.neg().divmod(l,S),S!=="mod"&&(W=nt.div.neg()),S!=="div"&&(q=nt.mod.neg(),D&&q.negative!==0&&q.iadd(l)),{div:W,mod:q}):this.negative===0&&l.negative!==0?(nt=this.divmod(l.neg(),S),S!=="mod"&&(W=nt.div.neg()),{div:W,mod:nt.mod}):(this.negative&l.negative)!==0?(nt=this.neg().divmod(l.neg(),S),S!=="div"&&(q=nt.mod.neg(),D&&q.negative!==0&&q.isub(l)),{div:nt.div,mod:q}):l.length>this.length||this.cmp(l)<0?{div:new a(0),mod:this}:l.length===1?S==="div"?{div:this.divn(l.words[0]),mod:null}:S==="mod"?{div:null,mod:new a(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new a(this.modrn(l.words[0]))}:this._wordDiv(l,S)},a.prototype.div=function(l){return this.divmod(l,"div",!1).div},a.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},a.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},a.prototype.divRound=function(l){var S=this.divmod(l);if(S.mod.isZero())return S.div;var D=S.div.negative!==0?S.mod.isub(l):S.mod,W=l.ushrn(1),q=l.andln(1),nt=D.cmp(W);return nt<0||q===1&&nt===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},a.prototype.modrn=function(l){var S=l<0;S&&(l=-l),e(l<=67108863);for(var D=(1<<26)%l,W=0,q=this.length-1;q>=0;q--)W=(D*W+(this.words[q]|0))%l;return S?-W:W},a.prototype.modn=function(l){return this.modrn(l)},a.prototype.idivn=function(l){var S=l<0;S&&(l=-l),e(l<=67108863);for(var D=0,W=this.length-1;W>=0;W--){var q=(this.words[W]|0)+D*67108864;this.words[W]=q/l|0,D=q%l}return this._strip(),S?this.ineg():this},a.prototype.divn=function(l){return this.clone().idivn(l)},a.prototype.egcd=function(l){e(l.negative===0),e(!l.isZero());var S=this,D=l.clone();S.negative!==0?S=S.umod(l):S=S.clone();for(var W=new a(1),q=new a(0),nt=new a(0),ct=new a(1),K=0;S.isEven()&&D.isEven();)S.iushrn(1),D.iushrn(1),++K;for(var h=D.clone(),b=S.clone();!S.isZero();){for(var j=0,X=1;(S.words[0]&X)===0&&j<26;++j,X<<=1);if(j>0)for(S.iushrn(j);j-- >0;)(W.isOdd()||q.isOdd())&&(W.iadd(h),q.isub(b)),W.iushrn(1),q.iushrn(1);for(var pt=0,St=1;(D.words[0]&St)===0&&pt<26;++pt,St<<=1);if(pt>0)for(D.iushrn(pt);pt-- >0;)(nt.isOdd()||ct.isOdd())&&(nt.iadd(h),ct.isub(b)),nt.iushrn(1),ct.iushrn(1);S.cmp(D)>=0?(S.isub(D),W.isub(nt),q.isub(ct)):(D.isub(S),nt.isub(W),ct.isub(q))}return{a:nt,b:ct,gcd:D.iushln(K)}},a.prototype._invmp=function(l){e(l.negative===0),e(!l.isZero());var S=this,D=l.clone();S.negative!==0?S=S.umod(l):S=S.clone();for(var W=new a(1),q=new a(0),nt=D.clone();S.cmpn(1)>0&&D.cmpn(1)>0;){for(var ct=0,K=1;(S.words[0]&K)===0&&ct<26;++ct,K<<=1);if(ct>0)for(S.iushrn(ct);ct-- >0;)W.isOdd()&&W.iadd(nt),W.iushrn(1);for(var h=0,b=1;(D.words[0]&b)===0&&h<26;++h,b<<=1);if(h>0)for(D.iushrn(h);h-- >0;)q.isOdd()&&q.iadd(nt),q.iushrn(1);S.cmp(D)>=0?(S.isub(D),W.isub(q)):(D.isub(S),q.isub(W))}var j;return S.cmpn(1)===0?j=W:j=q,j.cmpn(0)<0&&j.iadd(l),j},a.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var S=this.clone(),D=l.clone();S.negative=0,D.negative=0;for(var W=0;S.isEven()&&D.isEven();W++)S.iushrn(1),D.iushrn(1);do{for(;S.isEven();)S.iushrn(1);for(;D.isEven();)D.iushrn(1);var q=S.cmp(D);if(q<0){var nt=S;S=D,D=nt}else if(q===0||D.cmpn(1)===0)break;S.isub(D)}while(!0);return D.iushln(W)},a.prototype.invm=function(l){return this.egcd(l).a.umod(l)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(l){return this.words[0]&l},a.prototype.bincn=function(l){e(typeof l=="number");var S=l%26,D=(l-S)/26,W=1<<S;if(this.length<=D)return this._expand(D+1),this.words[D]|=W,this;for(var q=W,nt=D;q!==0&&nt<this.length;nt++){var ct=this.words[nt]|0;ct+=q,q=ct>>>26,ct&=67108863,this.words[nt]=ct}return q!==0&&(this.words[nt]=q,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(l){var S=l<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var D;if(this.length>1)D=1;else{S&&(l=-l),e(l<=67108863,"Number is too big");var W=this.words[0]|0;D=W===l?0:W<l?-1:1}return this.negative!==0?-D|0:D},a.prototype.cmp=function(l){if(this.negative!==0&&l.negative===0)return-1;if(this.negative===0&&l.negative!==0)return 1;var S=this.ucmp(l);return this.negative!==0?-S|0:S},a.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var S=0,D=this.length-1;D>=0;D--){var W=this.words[D]|0,q=l.words[D]|0;if(W!==q){W<q?S=-1:W>q&&(S=1);break}}return S},a.prototype.gtn=function(l){return this.cmpn(l)===1},a.prototype.gt=function(l){return this.cmp(l)===1},a.prototype.gten=function(l){return this.cmpn(l)>=0},a.prototype.gte=function(l){return this.cmp(l)>=0},a.prototype.ltn=function(l){return this.cmpn(l)===-1},a.prototype.lt=function(l){return this.cmp(l)===-1},a.prototype.lten=function(l){return this.cmpn(l)<=0},a.prototype.lte=function(l){return this.cmp(l)<=0},a.prototype.eqn=function(l){return this.cmpn(l)===0},a.prototype.eq=function(l){return this.cmp(l)===0},a.red=function(l){return new gt(l)},a.prototype.toRed=function(l){return e(!this.red,"Already a number in reduction context"),e(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},a.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(l){return this.red=l,this},a.prototype.forceRed=function(l){return e(!this.red,"Already a number in reduction context"),this._forceRed(l)},a.prototype.redAdd=function(l){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},a.prototype.redIAdd=function(l){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},a.prototype.redSub=function(l){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},a.prototype.redISub=function(l){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},a.prototype.redShl=function(l){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},a.prototype.redMul=function(l){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},a.prototype.redIMul=function(l){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},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(l){return e(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var ht={k256:null,p224:null,p192:null,p25519:null};function ut(P,l){this.name=P,this.p=new a(l,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ut.prototype._tmp=function(){var l=new a(null);return l.words=new Array(Math.ceil(this.n/13)),l},ut.prototype.ireduce=function(l){var S=l,D;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),D=S.bitLength();while(D>this.n);var W=D<this.n?-1:S.ucmp(this.p);return W===0?(S.words[0]=0,S.length=1):W>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},ut.prototype.split=function(l,S){l.iushrn(this.n,0,S)},ut.prototype.imulK=function(l){return l.imul(this.k)};function At(){ut.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(At,ut),At.prototype.split=function(l,S){for(var D=4194303,W=Math.min(l.length,9),q=0;q<W;q++)S.words[q]=l.words[q];if(S.length=W,l.length<=9){l.words[0]=0,l.length=1;return}var nt=l.words[9];for(S.words[S.length++]=nt&D,q=10;q<l.length;q++){var ct=l.words[q]|0;l.words[q-10]=(ct&D)<<4|nt>>>22,nt=ct}nt>>>=22,l.words[q-10]=nt,nt===0&&l.length>10?l.length-=10:l.length-=9},At.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var S=0,D=0;D<l.length;D++){var W=l.words[D]|0;S+=W*977,l.words[D]=S&67108863,S=W*64+(S/67108864|0)}return l.words[l.length-1]===0&&(l.length--,l.words[l.length-1]===0&&l.length--),l};function Rt(){ut.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(Rt,ut);function st(){ut.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(st,ut);function ft(){ut.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(ft,ut),ft.prototype.imulK=function(l){for(var S=0,D=0;D<l.length;D++){var W=(l.words[D]|0)*19+S,q=W&67108863;W>>>=26,l.words[D]=q,S=W}return S!==0&&(l.words[l.length++]=S),l},a._prime=function(l){if(ht[l])return ht[l];var S;if(l==="k256")S=new At;else if(l==="p224")S=new Rt;else if(l==="p192")S=new st;else if(l==="p25519")S=new ft;else throw new Error("Unknown prime "+l);return ht[l]=S,S};function gt(P){if(typeof P=="string"){var l=a._prime(P);this.m=l.p,this.prime=l}else e(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}gt.prototype._verify1=function(l){e(l.negative===0,"red works only with positives"),e(l.red,"red works only with red numbers")},gt.prototype._verify2=function(l,S){e((l.negative|S.negative)===0,"red works only with positives"),e(l.red&&l.red===S.red,"red works only with red numbers")},gt.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(N(l,l.umod(this.m)._forceRed(this)),l)},gt.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},gt.prototype.add=function(l,S){this._verify2(l,S);var D=l.add(S);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},gt.prototype.iadd=function(l,S){this._verify2(l,S);var D=l.iadd(S);return D.cmp(this.m)>=0&&D.isub(this.m),D},gt.prototype.sub=function(l,S){this._verify2(l,S);var D=l.sub(S);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},gt.prototype.isub=function(l,S){this._verify2(l,S);var D=l.isub(S);return D.cmpn(0)<0&&D.iadd(this.m),D},gt.prototype.shl=function(l,S){return this._verify1(l),this.imod(l.ushln(S))},gt.prototype.imul=function(l,S){return this._verify2(l,S),this.imod(l.imul(S))},gt.prototype.mul=function(l,S){return this._verify2(l,S),this.imod(l.mul(S))},gt.prototype.isqr=function(l){return this.imul(l,l.clone())},gt.prototype.sqr=function(l){return this.mul(l,l)},gt.prototype.sqrt=function(l){if(l.isZero())return l.clone();var S=this.m.andln(3);if(e(S%2===1),S===3){var D=this.m.add(new a(1)).iushrn(2);return this.pow(l,D)}for(var W=this.m.subn(1),q=0;!W.isZero()&&W.andln(1)===0;)q++,W.iushrn(1);e(!W.isZero());var nt=new a(1).toRed(this),ct=nt.redNeg(),K=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new a(2*h*h).toRed(this);this.pow(h,K).cmp(ct)!==0;)h.redIAdd(ct);for(var b=this.pow(h,W),j=this.pow(l,W.addn(1).iushrn(1)),X=this.pow(l,W),pt=q;X.cmp(nt)!==0;){for(var St=X,Ht=0;St.cmp(nt)!==0;Ht++)St=St.redSqr();e(Ht<pt);var Kt=this.pow(b,new a(1).iushln(pt-Ht-1));j=j.redMul(Kt),b=Kt.redSqr(),X=X.redMul(b),pt=Ht}return j},gt.prototype.invm=function(l){var S=l._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},gt.prototype.pow=function(l,S){if(S.isZero())return new a(1).toRed(this);if(S.cmpn(1)===0)return l.clone();var D=4,W=new Array(1<<D);W[0]=new a(1).toRed(this),W[1]=l;for(var q=2;q<W.length;q++)W[q]=this.mul(W[q-1],l);var nt=W[0],ct=0,K=0,h=S.bitLength()%26;for(h===0&&(h=26),q=S.length-1;q>=0;q--){for(var b=S.words[q],j=h-1;j>=0;j--){var X=b>>j&1;if(nt!==W[0]&&(nt=this.sqr(nt)),X===0&&ct===0){K=0;continue}ct<<=1,ct|=X,K++,!(K!==D&&(q!==0||j!==0))&&(nt=this.mul(nt,W[ct]),K=0,ct=0)}h=26}return nt},gt.prototype.convertTo=function(l){var S=l.umod(this.m);return S===l?S.clone():S},gt.prototype.convertFrom=function(l){var S=l.clone();return S.red=null,S},a.mont=function(l){return new wt(l)};function wt(P){gt.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,gt),wt.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},wt.prototype.convertFrom=function(l){var S=this.imod(l.mul(this.rinv));return S.red=null,S},wt.prototype.imul=function(l,S){if(l.isZero()||S.isZero())return l.words[0]=0,l.length=1,l;var D=l.imul(S),W=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=D.isub(W).iushrn(this.shift),nt=q;return q.cmp(this.m)>=0?nt=q.isub(this.m):q.cmpn(0)<0&&(nt=q.iadd(this.m)),nt._forceRed(this)},wt.prototype.mul=function(l,S){if(l.isZero()||S.isZero())return new a(0)._forceRed(this);var D=l.mul(S),W=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=D.isub(W).iushrn(this.shift),nt=q;return q.cmp(this.m)>=0?nt=q.isub(this.m):q.cmpn(0)<0&&(nt=q.iadd(this.m)),nt._forceRed(this)},wt.prototype.invm=function(l){var S=this.imod(l._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(t,O1)})(Io)),Io.exports}var T1=cc();const fc=_s(T1);var Oo={exports:{}};var lc;function dc(){return lc||(lc=1,(function(t,n){var r=As(),e=r.Buffer;function u(f,m){for(var d in f)m[d]=f[d]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?t.exports=r:(u(r,n),n.Buffer=a);function a(f,m,d){return e(f,m,d)}a.prototype=Object.create(e.prototype),u(e,a),a.from=function(f,m,d){if(typeof f=="number")throw new TypeError("Argument must not be a number");return e(f,m,d)},a.alloc=function(f,m,d){if(typeof f!="number")throw new TypeError("Argument must be a number");var _=e(f);return m!==void 0?typeof d=="string"?_.fill(m,d):_.fill(m):_.fill(0),_},a.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return e(f)},a.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(f)}})(Oo,Oo.exports)),Oo.exports}var Vs,hc;function N1(){if(hc)return Vs;hc=1;var t=dc().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 f=r.charAt(a),m=f.charCodeAt(0);if(e[m]!==255)throw new TypeError(f+" is ambiguous");e[m]=a}var d=r.length,_=r.charAt(0),N=Math.log(d)/Math.log(256),C=Math.log(256)/Math.log(d);function T(U){if((Array.isArray(U)||U instanceof Uint8Array)&&(U=t.from(U)),!t.isBuffer(U))throw new TypeError("Expected Buffer");if(U.length===0)return"";for(var Y=0,z=0,J=0,Z=U.length;J!==Z&&U[J]===0;)J++,Y++;for(var et=(Z-J)*C+1>>>0,ht=new Uint8Array(et);J!==Z;){for(var ut=U[J],At=0,Rt=et-1;(ut!==0||At<z)&&Rt!==-1;Rt--,At++)ut+=256*ht[Rt]>>>0,ht[Rt]=ut%d>>>0,ut=ut/d>>>0;if(ut!==0)throw new Error("Non-zero carry");z=At,J++}for(var st=et-z;st!==et&&ht[st]===0;)st++;for(var ft=_.repeat(Y);st<et;++st)ft+=r.charAt(ht[st]);return ft}function x(U){if(typeof U!="string")throw new TypeError("Expected String");if(U.length===0)return t.alloc(0);for(var Y=0,z=0,J=0;U[Y]===_;)z++,Y++;for(var Z=(U.length-Y)*N+1>>>0,et=new Uint8Array(Z);Y<U.length;){var ht=U.charCodeAt(Y);if(ht>255)return;var ut=e[ht];if(ut===255)return;for(var At=0,Rt=Z-1;(ut!==0||At<J)&&Rt!==-1;Rt--,At++)ut+=d*et[Rt]>>>0,et[Rt]=ut%256>>>0,ut=ut/256>>>0;if(ut!==0)throw new Error("Non-zero carry");J=At,Y++}for(var st=Z-J;st!==Z&&et[st]===0;)st++;var ft=t.allocUnsafe(z+(Z-st));ft.fill(0,0,z);for(var gt=z;st!==Z;)ft[gt++]=et[st++];return ft}function k(U){var Y=x(U);if(Y)return Y;throw new Error("Non-base"+d+" character")}return{encode:T,decodeUnsafe:x,decode:k}}return Vs=n,Vs}var Hs,pc;function x1(){if(pc)return Hs;pc=1;var t=N1(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return Hs=t(n),Hs}var C1=x1();const In=_s(C1),vc=Bu;var De={},Gs,mc;function L1(){if(mc)return Gs;mc=1;var t=dc().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 f=r.charAt(a),m=f.charCodeAt(0);if(e[m]!==255)throw new TypeError(f+" is ambiguous");e[m]=a}var d=r.length,_=r.charAt(0),N=Math.log(d)/Math.log(256),C=Math.log(256)/Math.log(d);function T(U){if((Array.isArray(U)||U instanceof Uint8Array)&&(U=t.from(U)),!t.isBuffer(U))throw new TypeError("Expected Buffer");if(U.length===0)return"";for(var Y=0,z=0,J=0,Z=U.length;J!==Z&&U[J]===0;)J++,Y++;for(var et=(Z-J)*C+1>>>0,ht=new Uint8Array(et);J!==Z;){for(var ut=U[J],At=0,Rt=et-1;(ut!==0||At<z)&&Rt!==-1;Rt--,At++)ut+=256*ht[Rt]>>>0,ht[Rt]=ut%d>>>0,ut=ut/d>>>0;if(ut!==0)throw new Error("Non-zero carry");z=At,J++}for(var st=et-z;st!==et&&ht[st]===0;)st++;for(var ft=_.repeat(Y);st<et;++st)ft+=r.charAt(ht[st]);return ft}function x(U){if(typeof U!="string")throw new TypeError("Expected String");if(U.length===0)return t.alloc(0);for(var Y=0,z=0,J=0;U[Y]===_;)z++,Y++;for(var Z=(U.length-Y)*N+1>>>0,et=new Uint8Array(Z);Y<U.length;){var ht=U.charCodeAt(Y);if(ht>255)return;var ut=e[ht];if(ut===255)return;for(var At=0,Rt=Z-1;(ut!==0||At<J)&&Rt!==-1;Rt--,At++)ut+=d*et[Rt]>>>0,et[Rt]=ut%256>>>0,ut=ut/256>>>0;if(ut!==0)throw new Error("Non-zero carry");J=At,Y++}for(var st=Z-J;st!==Z&&et[st]===0;)st++;var ft=t.allocUnsafe(z+(Z-st));ft.fill(0,0,z);for(var gt=z;st!==Z;)ft[gt++]=et[st++];return ft}function k(U){var Y=x(U);if(Y)return Y;throw new Error("Non-base"+d+" character")}return{encode:T,decodeUnsafe:x,decode:k}}return Gs=n,Gs}var js,gc;function B1(){if(gc)return js;gc=1;var t=L1(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return js=t(n),js}function or(t,n,r){return n<=t&&t<=r}function To(t){if(t===void 0)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function M1(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 f=t.charCodeAt(e+1);if(56320<=f&&f<=57343){var m=a&1023,d=f&1023;u.push(65536+(m<<10)+d),e+=1}else u.push(65533)}e+=1}return u}function k1(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 No=-1;function Ys(t){this.tokens=[].slice.call(t)}Ys.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():No},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 zs(t,n){if(t)throw TypeError("Decoder error");return n||65533}var xo="utf-8";function Co(t,n){if(!(this instanceof Co))return new Co(t,n);if(t=t!==void 0?String(t).toLowerCase():xo,t!==xo)throw new Error("Encoding not supported. Only utf-8 is supported");n=To(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})}Co.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=To(r),this._streaming||(this._decoder=new D1({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var u=new Ys(e),a=[],f;!u.endOfStream()&&(f=this._decoder.handler(u,u.read()),f!==ni);)f!==null&&(Array.isArray(f)?a.push.apply(a,f):a.push(f));if(!this._streaming){do{if(f=this._decoder.handler(u,u.read()),f===ni)break;f!==null&&(Array.isArray(f)?a.push.apply(a,f):a.push(f))}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),k1(a)}};function Lo(t,n){if(!(this instanceof Lo))return new Lo(t,n);if(t=t!==void 0?String(t).toLowerCase():xo,t!==xo)throw new Error("Encoding not supported. Only utf-8 is supported");n=To(n),this._streaming=!1,this._encoder=null,this._options={fatal:!!n.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Lo.prototype={encode:function(n,r){n=n?String(n):"",r=To(r),this._streaming||(this._encoder=new U1(this._options)),this._streaming=!!r.stream;for(var e=[],u=new Ys(M1(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 D1(t){var n=t.fatal,r=0,e=0,u=0,a=128,f=191;this.handler=function(m,d){if(d===No&&u!==0)return u=0,zs(n);if(d===No)return ni;if(u===0){if(or(d,0,127))return d;if(or(d,194,223))u=1,r=d-192;else if(or(d,224,239))d===224&&(a=160),d===237&&(f=159),u=2,r=d-224;else if(or(d,240,244))d===240&&(a=144),d===244&&(f=143),u=3,r=d-240;else return zs(n);return r=r<<6*u,null}if(!or(d,a,f))return r=u=e=0,a=128,f=191,m.prepend(d),zs(n);if(a=128,f=191,e+=1,r+=d-128<<6*(u-e),e!==u)return null;var _=r;return r=u=e=0,_}}function U1(t){t.fatal,this.handler=function(n,r){if(r===No)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 f=r>>6*(e-1);a.push(128|f&63),e-=1}return a}}const P1=bs(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Co,TextEncoder:Lo},Symbol.toStringTag,{value:"Module"})));var yc;function F1(){if(yc)return De;yc=1;var t=De&&De.__createBinding||(Object.create?(function(st,ft,gt,wt){wt===void 0&&(wt=gt),Object.defineProperty(st,wt,{enumerable:!0,get:function(){return ft[gt]}})}):(function(st,ft,gt,wt){wt===void 0&&(wt=gt),st[wt]=ft[gt]})),n=De&&De.__setModuleDefault||(Object.create?(function(st,ft){Object.defineProperty(st,"default",{enumerable:!0,value:ft})}):function(st,ft){st.default=ft}),r=De&&De.__decorate||function(st,ft,gt,wt){var P=arguments.length,l=P<3?ft:wt===null?wt=Object.getOwnPropertyDescriptor(ft,gt):wt,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(st,ft,gt,wt);else for(var D=st.length-1;D>=0;D--)(S=st[D])&&(l=(P<3?S(l):P>3?S(ft,gt,l):S(ft,gt))||l);return P>3&&l&&Object.defineProperty(ft,gt,l),l},e=De&&De.__importStar||function(st){if(st&&st.__esModule)return st;var ft={};if(st!=null)for(var gt in st)gt!=="default"&&Object.hasOwnProperty.call(st,gt)&&t(ft,st,gt);return n(ft,st),ft},u=De&&De.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(De,"__esModule",{value:!0}),De.deserializeUnchecked=De.deserialize=De.serialize=De.BinaryReader=De.BinaryWriter=De.BorshError=De.baseDecode=De.baseEncode=void 0;const a=u(cc()),f=u(B1()),m=e(P1),d=typeof TextDecoder!="function"?m.TextDecoder:TextDecoder,_=new d("utf-8",{fatal:!0});function N(st){return typeof st=="string"&&(st=Buffer.from(st,"utf8")),f.default.encode(Buffer.from(st))}De.baseEncode=N;function C(st){return Buffer.from(f.default.decode(st))}De.baseDecode=C;const T=1024;class x extends Error{constructor(ft){super(ft),this.fieldPath=[],this.originalMessage=ft}addToFieldPath(ft){this.fieldPath.splice(0,0,ft),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}De.BorshError=x;class k{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(ft){this.maybeResize(),this.buf.writeUInt8(ft,this.length),this.length+=1}writeU16(ft){this.maybeResize(),this.buf.writeUInt16LE(ft,this.length),this.length+=2}writeU32(ft){this.maybeResize(),this.buf.writeUInt32LE(ft,this.length),this.length+=4}writeU64(ft){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ft).toArray("le",8)))}writeU128(ft){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ft).toArray("le",16)))}writeU256(ft){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ft).toArray("le",32)))}writeU512(ft){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ft).toArray("le",64)))}writeBuffer(ft){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),ft,Buffer.alloc(T)]),this.length+=ft.length}writeString(ft){this.maybeResize();const gt=Buffer.from(ft,"utf8");this.writeU32(gt.length),this.writeBuffer(gt)}writeFixedArray(ft){this.writeBuffer(Buffer.from(ft))}writeArray(ft,gt){this.maybeResize(),this.writeU32(ft.length);for(const wt of ft)this.maybeResize(),gt(wt)}toArray(){return this.buf.subarray(0,this.length)}}De.BinaryWriter=k;function U(st,ft,gt){const wt=gt.value;gt.value=function(...P){try{return wt.apply(this,P)}catch(l){if(l instanceof RangeError){const S=l.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 l}}}class Y{constructor(ft){this.buf=ft,this.offset=0}readU8(){const ft=this.buf.readUInt8(this.offset);return this.offset+=1,ft}readU16(){const ft=this.buf.readUInt16LE(this.offset);return this.offset+=2,ft}readU32(){const ft=this.buf.readUInt32LE(this.offset);return this.offset+=4,ft}readU64(){const ft=this.readBuffer(8);return new a.default(ft,"le")}readU128(){const ft=this.readBuffer(16);return new a.default(ft,"le")}readU256(){const ft=this.readBuffer(32);return new a.default(ft,"le")}readU512(){const ft=this.readBuffer(64);return new a.default(ft,"le")}readBuffer(ft){if(this.offset+ft>this.buf.length)throw new x(`Expected buffer length ${ft} isn't within bounds`);const gt=this.buf.slice(this.offset,this.offset+ft);return this.offset+=ft,gt}readString(){const ft=this.readU32(),gt=this.readBuffer(ft);try{return _.decode(gt)}catch(wt){throw new x(`Error decoding UTF-8 string: ${wt}`)}}readFixedArray(ft){return new Uint8Array(this.readBuffer(ft))}readArray(ft){const gt=this.readU32(),wt=Array();for(let P=0;P<gt;++P)wt.push(ft());return wt}}r([U],Y.prototype,"readU8",null),r([U],Y.prototype,"readU16",null),r([U],Y.prototype,"readU32",null),r([U],Y.prototype,"readU64",null),r([U],Y.prototype,"readU128",null),r([U],Y.prototype,"readU256",null),r([U],Y.prototype,"readU512",null),r([U],Y.prototype,"readString",null),r([U],Y.prototype,"readFixedArray",null),r([U],Y.prototype,"readArray",null),De.BinaryReader=Y;function z(st){return st.charAt(0).toUpperCase()+st.slice(1)}function J(st,ft,gt,wt,P){try{if(typeof wt=="string")P[`write${z(wt)}`](gt);else if(wt instanceof Array)if(typeof wt[0]=="number"){if(gt.length!==wt[0])throw new x(`Expecting byte array of length ${wt[0]}, but got ${gt.length} bytes`);P.writeFixedArray(gt)}else if(wt.length===2&&typeof wt[1]=="number"){if(gt.length!==wt[1])throw new x(`Expecting byte array of length ${wt[1]}, but got ${gt.length} bytes`);for(let l=0;l<wt[1];l++)J(st,null,gt[l],wt[0],P)}else P.writeArray(gt,l=>{J(st,ft,l,wt[0],P)});else if(wt.kind!==void 0)switch(wt.kind){case"option":{gt==null?P.writeU8(0):(P.writeU8(1),J(st,ft,gt,wt.type,P));break}case"map":{P.writeU32(gt.size),gt.forEach((l,S)=>{J(st,ft,S,wt.key,P),J(st,ft,l,wt.value,P)});break}default:throw new x(`FieldType ${wt} unrecognized`)}else Z(st,gt,P)}catch(l){throw l instanceof x&&l.addToFieldPath(ft),l}}function Z(st,ft,gt){if(typeof ft.borshSerialize=="function"){ft.borshSerialize(gt);return}const wt=st.get(ft.constructor);if(!wt)throw new x(`Class ${ft.constructor.name} is missing in schema`);if(wt.kind==="struct")wt.fields.map(([P,l])=>{J(st,P,ft[P],l,gt)});else if(wt.kind==="enum"){const P=ft[wt.field];for(let l=0;l<wt.values.length;++l){const[S,D]=wt.values[l];if(S===P){gt.writeU8(l),J(st,S,ft[S],D,gt);break}}}else throw new x(`Unexpected schema kind: ${wt.kind} for ${ft.constructor.name}`)}function et(st,ft,gt=k){const wt=new gt;return Z(st,ft,wt),wt.toArray()}De.serialize=et;function ht(st,ft,gt,wt){try{if(typeof gt=="string")return wt[`read${z(gt)}`]();if(gt instanceof Array){if(typeof gt[0]=="number")return wt.readFixedArray(gt[0]);if(typeof gt[1]=="number"){const P=[];for(let l=0;l<gt[1];l++)P.push(ht(st,null,gt[0],wt));return P}else return wt.readArray(()=>ht(st,ft,gt[0],wt))}if(gt.kind==="option")return wt.readU8()?ht(st,ft,gt.type,wt):void 0;if(gt.kind==="map"){let P=new Map;const l=wt.readU32();for(let S=0;S<l;S++){const D=ht(st,ft,gt.key,wt),W=ht(st,ft,gt.value,wt);P.set(D,W)}return P}return ut(st,gt,wt)}catch(P){throw P instanceof x&&P.addToFieldPath(ft),P}}function ut(st,ft,gt){if(typeof ft.borshDeserialize=="function")return ft.borshDeserialize(gt);const wt=st.get(ft);if(!wt)throw new x(`Class ${ft.name} is missing in schema`);if(wt.kind==="struct"){const P={};for(const[l,S]of st.get(ft).fields)P[l]=ht(st,l,S,gt);return new ft(P)}if(wt.kind==="enum"){const P=gt.readU8();if(P>=wt.values.length)throw new x(`Enum index: ${P} is out of range`);const[l,S]=wt.values[P],D=ht(st,l,S,gt);return new ft({[l]:D})}throw new x(`Unexpected schema kind: ${wt.kind} for ${ft.constructor.name}`)}function At(st,ft,gt,wt=Y){const P=new wt(gt),l=ut(st,ft,P);if(P.offset<gt.length)throw new x(`Unexpected ${gt.length-P.offset} bytes after deserialized data`);return l}De.deserialize=At;function Rt(st,ft,gt,wt=Y){const P=new wt(gt);return ut(st,ft,P)}return De.deserializeUnchecked=Rt,De}var Ws=F1(),Ot={},wc;function V1(){if(wc)return Ot;wc=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=As();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(b,j){if(!Number.isInteger(b))throw new TypeError("span must be an integer");this.span=b,this.property=j}makeDestinationObject(){return{}}getSpan(b,j){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(b){const j=Object.create(this.constructor.prototype);return Object.assign(j,this),j.property=b,j}fromArray(b){}};Ot.Layout=e;function u(h,b){return b.property?h+"["+b.property+"]":h}Ot.nameWithProperty=u;function a(h,b){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(!(b&&b instanceof e))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(b,"boundConstructor_"))throw new Error("layout is already bound to a constructor");h.layout_=b,b.boundConstructor_=h,b.makeDestinationObject=(()=>new h),Object.defineProperty(h.prototype,"encode",{value(j,X){return b.encode(this,j,X)},writable:!0}),Object.defineProperty(h,"decode",{value(j,X){return b.decode(j,X)},writable:!0})}Ot.bindConstructorLayout=a;class f extends e{isCount(){throw new Error("ExternalLayout is abstract")}}Ot.ExternalLayout=f;class m extends f{constructor(b=1,j){if(!Number.isInteger(b)||0>=b)throw new TypeError("elementSpan must be a (positive) integer");super(-1,j),this.elementSpan=b}isCount(){return!0}decode(b,j=0){n(b);const X=b.length-j;return Math.floor(X/this.elementSpan)}encode(b,j,X){return 0}}Ot.GreedyCount=m;class d extends f{constructor(b,j=0,X){if(!(b instanceof e))throw new TypeError("layout must be a Layout");if(!Number.isInteger(j))throw new TypeError("offset must be integer or undefined");super(b.span,X||b.property),this.layout=b,this.offset=j}isCount(){return this.layout instanceof _||this.layout instanceof N}decode(b,j=0){return this.layout.decode(b,j+this.offset)}encode(b,j,X=0){return this.layout.encode(b,j,X+this.offset)}}Ot.OffsetLayout=d;class _ extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readUIntLE(j,this.span)}encode(b,j,X=0){return r(j).writeUIntLE(b,X,this.span),this.span}}Ot.UInt=_;class N extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readUIntBE(j,this.span)}encode(b,j,X=0){return r(j).writeUIntBE(b,X,this.span),this.span}}Ot.UIntBE=N;class C extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readIntLE(j,this.span)}encode(b,j,X=0){return r(j).writeIntLE(b,X,this.span),this.span}}Ot.Int=C;class T extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readIntBE(j,this.span)}encode(b,j,X=0){return r(j).writeIntBE(b,X,this.span),this.span}}Ot.IntBE=T;const x=Math.pow(2,32);function k(h){const b=Math.floor(h/x),j=h-b*x;return{hi32:b,lo32:j}}function U(h,b){return h*x+b}class Y extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readUInt32LE(j),St=X.readUInt32LE(j+4);return U(St,pt)}encode(b,j,X=0){const pt=k(b),St=r(j);return St.writeUInt32LE(pt.lo32,X),St.writeUInt32LE(pt.hi32,X+4),8}}Ot.NearUInt64=Y;class z extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readUInt32BE(j),St=X.readUInt32BE(j+4);return U(pt,St)}encode(b,j,X=0){const pt=k(b),St=r(j);return St.writeUInt32BE(pt.hi32,X),St.writeUInt32BE(pt.lo32,X+4),8}}Ot.NearUInt64BE=z;class J extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readUInt32LE(j),St=X.readInt32LE(j+4);return U(St,pt)}encode(b,j,X=0){const pt=k(b),St=r(j);return St.writeUInt32LE(pt.lo32,X),St.writeInt32LE(pt.hi32,X+4),8}}Ot.NearInt64=J;class Z extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readInt32BE(j),St=X.readUInt32BE(j+4);return U(pt,St)}encode(b,j,X=0){const pt=k(b),St=r(j);return St.writeInt32BE(pt.hi32,X),St.writeUInt32BE(pt.lo32,X+4),8}}Ot.NearInt64BE=Z;class et extends e{constructor(b){super(4,b)}decode(b,j=0){return r(b).readFloatLE(j)}encode(b,j,X=0){return r(j).writeFloatLE(b,X),4}}Ot.Float=et;class ht extends e{constructor(b){super(4,b)}decode(b,j=0){return r(b).readFloatBE(j)}encode(b,j,X=0){return r(j).writeFloatBE(b,X),4}}Ot.FloatBE=ht;class ut extends e{constructor(b){super(8,b)}decode(b,j=0){return r(b).readDoubleLE(j)}encode(b,j,X=0){return r(j).writeDoubleLE(b,X),8}}Ot.Double=ut;class At extends e{constructor(b){super(8,b)}decode(b,j=0){return r(b).readDoubleBE(j)}encode(b,j,X=0){return r(j).writeDoubleBE(b,X),8}}Ot.DoubleBE=At;class Rt extends e{constructor(b,j,X){if(!(b instanceof e))throw new TypeError("elementLayout must be a Layout");if(!(j instanceof f&&j.isCount()||Number.isInteger(j)&&0<=j))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let pt=-1;!(j instanceof f)&&0<b.span&&(pt=j*b.span),super(pt,X),this.elementLayout=b,this.count=j}getSpan(b,j=0){if(0<=this.span)return this.span;let X=0,pt=this.count;if(pt instanceof f&&(pt=pt.decode(b,j)),0<this.elementLayout.span)X=pt*this.elementLayout.span;else{let St=0;for(;St<pt;)X+=this.elementLayout.getSpan(b,j+X),++St}return X}decode(b,j=0){const X=[];let pt=0,St=this.count;for(St instanceof f&&(St=St.decode(b,j));pt<St;)X.push(this.elementLayout.decode(b,j)),j+=this.elementLayout.getSpan(b,j),pt+=1;return X}encode(b,j,X=0){const pt=this.elementLayout,St=b.reduce((Ht,Kt)=>Ht+pt.encode(Kt,j,X+Ht),0);return this.count instanceof f&&this.count.encode(b.length,j,X),St}}Ot.Sequence=Rt;class st extends e{constructor(b,j,X){if(!(Array.isArray(b)&&b.reduce((St,Ht)=>St&&Ht instanceof e,!0)))throw new TypeError("fields must be array of Layout instances");typeof j=="boolean"&&X===void 0&&(X=j,j=void 0);for(const St of b)if(0>St.span&&St.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let pt=-1;try{pt=b.reduce((St,Ht)=>St+Ht.getSpan(),0)}catch{}super(pt,j),this.fields=b,this.decodePrefixes=!!X}getSpan(b,j=0){if(0<=this.span)return this.span;let X=0;try{X=this.fields.reduce((pt,St)=>{const Ht=St.getSpan(b,j);return j+=Ht,pt+Ht},0)}catch{throw new RangeError("indeterminate span")}return X}decode(b,j=0){n(b);const X=this.makeDestinationObject();for(const pt of this.fields)if(pt.property!==void 0&&(X[pt.property]=pt.decode(b,j)),j+=pt.getSpan(b,j),this.decodePrefixes&&b.length===j)break;return X}encode(b,j,X=0){const pt=X;let St=0,Ht=0;for(const Kt of this.fields){let le=Kt.span;if(Ht=0<le?le:0,Kt.property!==void 0){const ge=b[Kt.property];ge!==void 0&&(Ht=Kt.encode(ge,j,X),0>le&&(le=Kt.getSpan(j,X)))}St=X,X+=le}return St+Ht-pt}fromArray(b){const j=this.makeDestinationObject();for(const X of this.fields)X.property!==void 0&&0<b.length&&(j[X.property]=b.shift());return j}layoutFor(b){if(typeof b!="string")throw new TypeError("property must be string");for(const j of this.fields)if(j.property===b)return j}offsetOf(b){if(typeof b!="string")throw new TypeError("property must be string");let j=0;for(const X of this.fields){if(X.property===b)return j;0>X.span?j=-1:0<=j&&(j+=X.span)}}}Ot.Structure=st;class ft{constructor(b){this.property=b}decode(b,j){throw new Error("UnionDiscriminator is abstract")}encode(b,j,X){throw new Error("UnionDiscriminator is abstract")}}Ot.UnionDiscriminator=ft;class gt extends ft{constructor(b,j){if(!(b instanceof f&&b.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(j||b.property||"variant"),this.layout=b}decode(b,j){return this.layout.decode(b,j)}encode(b,j,X){return this.layout.encode(b,j,X)}}Ot.UnionLayoutDiscriminator=gt;class wt extends e{constructor(b,j,X){let pt;if(b instanceof _||b instanceof N)pt=new gt(new d(b));else if(b instanceof f&&b.isCount())pt=new gt(b);else if(b instanceof ft)pt=b;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&&(b instanceof _||b instanceof N)&&(St+=pt.layout.span)),super(St,X),this.discriminator=pt,this.usesPrefixDiscriminator=b instanceof _||b instanceof N,this.defaultLayout=j,this.registry={};let Ht=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(Kt){return Ht(Kt)},this.configGetSourceVariant=function(Kt){Ht=Kt.bind(this)}}getSpan(b,j=0){if(0<=this.span)return this.span;const X=this.getVariant(b,j);if(!X)throw new Error("unable to determine span for unrecognized variant");return X.getSpan(b,j)}defaultGetSourceVariant(b){if(Object.prototype.hasOwnProperty.call(b,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(b,this.defaultLayout.property))return;const j=this.registry[b[this.discriminator.property]];if(j&&(!j.layout||j.property&&Object.prototype.hasOwnProperty.call(b,j.property)))return j}else for(const j in this.registry){const X=this.registry[j];if(X.property&&Object.prototype.hasOwnProperty.call(b,X.property))return X}throw new Error("unable to infer src variant")}decode(b,j=0){let X;const pt=this.discriminator,St=pt.decode(b,j),Ht=this.registry[St];if(Ht===void 0){const Kt=this.defaultLayout;let le=0;this.usesPrefixDiscriminator&&(le=pt.layout.span),X=this.makeDestinationObject(),X[pt.property]=St,X[Kt.property]=Kt.decode(b,j+le)}else X=Ht.decode(b,j);return X}encode(b,j,X=0){const pt=this.getSourceVariant(b);if(pt===void 0){const St=this.discriminator,Ht=this.defaultLayout;let Kt=0;return this.usesPrefixDiscriminator&&(Kt=St.layout.span),St.encode(b[St.property],j,X),Kt+Ht.encode(b[Ht.property],j,X+Kt)}return pt.encode(b,j,X)}addVariant(b,j,X){const pt=new P(this,b,j,X);return this.registry[b]=pt,pt}getVariant(b,j=0){let X;return b instanceof Uint8Array?X=this.discriminator.decode(b,j):X=b,this.registry[X]}}Ot.Union=wt;class P extends e{constructor(b,j,X,pt){if(!(b 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 X=="string"&&pt===void 0&&(pt=X,X=null),X){if(!(X instanceof e))throw new TypeError("layout must be a Layout");if(b.defaultLayout!==null&&0<=X.span&&X.span>b.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof pt!="string")throw new TypeError("variant must have a String property")}let St=b.span;0>b.span&&(St=X?X.span:0,0<=St&&b.usesPrefixDiscriminator&&(St+=b.discriminator.layout.span)),super(St,pt),this.union=b,this.variant=j,this.layout=X||null}getSpan(b,j=0){if(0<=this.span)return this.span;let X=0;this.union.usesPrefixDiscriminator&&(X=this.union.discriminator.layout.span);let pt=0;return this.layout&&(pt=this.layout.getSpan(b,j+X)),X+pt}decode(b,j=0){const X=this.makeDestinationObject();if(this!==this.union.getVariant(b,j))throw new Error("variant mismatch");let pt=0;return this.union.usesPrefixDiscriminator&&(pt=this.union.discriminator.layout.span),this.layout?X[this.property]=this.layout.decode(b,j+pt):this.property?X[this.property]=!0:this.union.usesPrefixDiscriminator&&(X[this.union.discriminator.property]=this.variant),X}encode(b,j,X=0){let pt=0;if(this.union.usesPrefixDiscriminator&&(pt=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(b,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,j,X);let St=pt;if(this.layout&&(this.layout.encode(b[this.property],j,X+pt),St+=this.layout.getSpan(j,X+pt),0<=this.union.span&&St>this.union.span))throw new Error("encoded variant overruns containing union");return St}fromArray(b){if(this.layout)return this.layout.fromArray(b)}}Ot.VariantLayout=P;function l(h){return 0>h&&(h+=4294967296),h}class S extends e{constructor(b,j,X){if(!(b instanceof _||b instanceof N))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof j=="string"&&X===void 0&&(X=j,j=!1),4<b.span)throw new RangeError("word cannot exceed 32 bits");super(b.span,X),this.word=b,this.msb=!!j,this.fields=[];let pt=0;this._packedSetValue=function(St){return pt=l(St),this},this._packedGetValue=function(){return pt}}decode(b,j=0){const X=this.makeDestinationObject(),pt=this.word.decode(b,j);this._packedSetValue(pt);for(const St of this.fields)St.property!==void 0&&(X[St.property]=St.decode(b));return X}encode(b,j,X=0){const pt=this.word.decode(j,X);this._packedSetValue(pt);for(const St of this.fields)if(St.property!==void 0){const Ht=b[St.property];Ht!==void 0&&St.encode(Ht)}return this.word.encode(this._packedGetValue(),j,X)}addField(b,j){const X=new D(this,b,j);return this.fields.push(X),X}addBoolean(b){const j=new W(this,b);return this.fields.push(j),j}fieldFor(b){if(typeof b!="string")throw new TypeError("property must be string");for(const j of this.fields)if(j.property===b)return j}}Ot.BitStructure=S;class D{constructor(b,j,X){if(!(b 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 pt=8*b.span,St=b.fields.reduce((Ht,Kt)=>Ht+Kt.bits,0);if(j+St>pt)throw new Error("bits too long for span remainder ("+(pt-St)+" of "+pt+" remain)");this.container=b,this.bits=j,this.valueMask=(1<<j)-1,j===32&&(this.valueMask=4294967295),this.start=St,this.container.msb&&(this.start=pt-St-j),this.wordMask=l(this.valueMask<<this.start),this.property=X}decode(b,j){const X=this.container._packedGetValue();return l(X&this.wordMask)>>>this.start}encode(b){if(typeof b!="number"||!Number.isInteger(b)||b!==l(b&this.valueMask))throw new TypeError(u("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const j=this.container._packedGetValue(),X=l(b<<this.start);this.container._packedSetValue(l(j&~this.wordMask)|X)}}Ot.BitField=D;class W extends D{constructor(b,j){super(b,1,j)}decode(b,j){return!!super.decode(b,j)}encode(b){typeof b=="boolean"&&(b=+b),super.encode(b)}}Ot.Boolean=W;class q extends e{constructor(b,j){if(!(b instanceof f&&b.isCount()||Number.isInteger(b)&&0<=b))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let X=-1;b instanceof f||(X=b),super(X,j),this.length=b}getSpan(b,j){let X=this.span;return 0>X&&(X=this.length.decode(b,j)),X}decode(b,j=0){let X=this.span;return 0>X&&(X=this.length.decode(b,j)),r(b).slice(j,j+X)}encode(b,j,X){let pt=this.length;if(this.length instanceof f&&(pt=b.length),!(b instanceof Uint8Array&&pt===b.length))throw new TypeError(u("Blob.encode",this)+" requires (length "+pt+") Uint8Array as src");if(X+pt>j.length)throw new RangeError("encoding overruns Uint8Array");const St=r(b);return r(j).write(St.toString("hex"),X,pt,"hex"),this.length instanceof f&&this.length.encode(pt,j,X),pt}}Ot.Blob=q;class nt extends e{constructor(b){super(-1,b)}getSpan(b,j=0){n(b);let X=j;for(;X<b.length&&b[X]!==0;)X+=1;return 1+X-j}decode(b,j=0){const X=this.getSpan(b,j);return r(b).slice(j,j+X-1).toString("utf-8")}encode(b,j,X=0){typeof b!="string"&&(b=String(b));const pt=t.Buffer.from(b,"utf8"),St=pt.length;if(X+St>j.length)throw new RangeError("encoding overruns Buffer");const Ht=r(j);return pt.copy(Ht,X),Ht[X+St]=0,St+1}}Ot.CString=nt;class ct extends e{constructor(b,j){if(typeof b=="string"&&j===void 0&&(j=b,b=void 0),b===void 0)b=-1;else if(!Number.isInteger(b))throw new TypeError("maxSpan must be an integer");super(-1,j),this.maxSpan=b}getSpan(b,j=0){return n(b),b.length-j}decode(b,j=0){const X=this.getSpan(b,j);if(0<=this.maxSpan&&this.maxSpan<X)throw new RangeError("text length exceeds maxSpan");return r(b).slice(j,j+X).toString("utf-8")}encode(b,j,X=0){typeof b!="string"&&(b=String(b));const pt=t.Buffer.from(b,"utf8"),St=pt.length;if(0<=this.maxSpan&&this.maxSpan<St)throw new RangeError("text length exceeds maxSpan");if(X+St>j.length)throw new RangeError("encoding overruns Buffer");return pt.copy(r(j),X),St}}Ot.UTF8=ct;class K extends e{constructor(b,j){super(0,j),this.value=b}decode(b,j){return this.value}encode(b,j,X){return 0}}return Ot.Constant=K,Ot.greedy=((h,b)=>new m(h,b)),Ot.offset=((h,b,j)=>new d(h,b,j)),Ot.u8=(h=>new _(1,h)),Ot.u16=(h=>new _(2,h)),Ot.u24=(h=>new _(3,h)),Ot.u32=(h=>new _(4,h)),Ot.u40=(h=>new _(5,h)),Ot.u48=(h=>new _(6,h)),Ot.nu64=(h=>new Y(h)),Ot.u16be=(h=>new N(2,h)),Ot.u24be=(h=>new N(3,h)),Ot.u32be=(h=>new N(4,h)),Ot.u40be=(h=>new N(5,h)),Ot.u48be=(h=>new N(6,h)),Ot.nu64be=(h=>new z(h)),Ot.s8=(h=>new C(1,h)),Ot.s16=(h=>new C(2,h)),Ot.s24=(h=>new C(3,h)),Ot.s32=(h=>new C(4,h)),Ot.s40=(h=>new C(5,h)),Ot.s48=(h=>new C(6,h)),Ot.ns64=(h=>new J(h)),Ot.s16be=(h=>new T(2,h)),Ot.s24be=(h=>new T(3,h)),Ot.s32be=(h=>new T(4,h)),Ot.s40be=(h=>new T(5,h)),Ot.s48be=(h=>new T(6,h)),Ot.ns64be=(h=>new Z(h)),Ot.f32=(h=>new et(h)),Ot.f32be=(h=>new ht(h)),Ot.f64=(h=>new ut(h)),Ot.f64be=(h=>new At(h)),Ot.struct=((h,b,j)=>new st(h,b,j)),Ot.bits=((h,b,j)=>new S(h,b,j)),Ot.seq=((h,b,j)=>new Rt(h,b,j)),Ot.union=((h,b,j)=>new wt(h,b,j)),Ot.unionLayoutDiscriminator=((h,b)=>new gt(h,b)),Ot.blob=((h,b)=>new q(h,b)),Ot.cstr=(h=>new nt(h)),Ot.utf8=((h,b)=>new ct(h,b)),Ot.constant=((h,b)=>new K(h,b)),Ot}var dt=V1(),H1=1,G1=2,j1=3,Y1=4,z1=5,W1=6,K1=7,Z1=8,X1=9,$1=10,q1=-32700,J1=-32603,Q1=-32602,th=-32601,eh=-32600,nh=-32016,rh=-32015,ih=-32014,oh=-32013,sh=-32012,ah=-32011,uh=-32010,ch=-32009,fh=-32008,lh=-32007,dh=-32006,hh=-32005,ph=-32004,vh=-32003,mh=-32002,gh=-32001,yh=28e5,wh=2800001,Eh=2800002,_h=2800003,bh=2800004,Rh=2800005,Ah=2800006,Sh=2800007,Ih=2800008,Oh=2800009,Th=2800010,Nh=2800011,xh=323e4,Ch=32300001,Lh=3230002,Bh=3230003,Mh=3230004,kh=361e4,Dh=3610001,Uh=3610002,Ph=3610003,Fh=3610004,Vh=3610005,Hh=3610006,Gh=3610007,jh=3611e3,Yh=3704e3,zh=3704001,Wh=3704002,Kh=3704003,Zh=3704004,Xh=4128e3,$h=4128001,qh=4128002,Jh=4615e3,Qh=4615001,t2=4615002,e2=4615003,n2=4615004,r2=4615005,i2=4615006,o2=4615007,s2=4615008,a2=4615009,u2=4615010,c2=4615011,f2=4615012,l2=4615013,d2=4615014,h2=4615015,p2=4615016,v2=4615017,m2=4615018,g2=4615019,y2=4615020,w2=4615021,E2=4615022,_2=4615023,b2=4615024,R2=4615025,A2=4615026,S2=4615027,I2=4615028,O2=4615029,T2=4615030,N2=4615031,x2=4615032,C2=4615033,L2=4615034,B2=4615035,M2=4615036,k2=4615037,D2=4615038,U2=4615039,P2=4615040,F2=4615041,V2=4615042,H2=4615043,G2=4615044,j2=4615045,Y2=4615046,z2=4615047,W2=4615048,K2=4615049,Z2=4615050,X2=4615051,$2=4615052,q2=4615053,J2=4615054,Q2=5508e3,tp=5508001,ep=5508002,np=5508003,rp=5508004,ip=5508005,op=5508006,sp=5508007,ap=5508008,up=5508009,cp=5508010,fp=5508011,lp=5663e3,dp=5663001,hp=5663002,pp=5663003,vp=5663004,mp=5663005,gp=5663006,yp=5663007,wp=5663008,Ep=5663009,_p=5663010,bp=5663011,Rp=5663012,Ap=5663013,Sp=5663014,Ip=5663015,Op=5663016,Tp=5663017,Np=5663018,xp=5663019,Cp=5663020,Lp=705e4,Bp=7050001,Mp=7050002,kp=7050003,Dp=7050004,Up=7050005,Pp=7050006,Fp=7050007,Vp=7050008,Hp=7050009,Gp=7050010,jp=7050011,Yp=7050012,zp=7050013,Wp=7050014,Kp=7050015,Zp=7050016,Xp=7050017,$p=7050018,qp=7050019,Jp=7050020,Qp=7050021,tv=7050022,ev=7050023,nv=7050024,rv=7050025,iv=7050026,ov=7050027,sv=7050028,av=7050029,uv=7050030,cv=7050031,fv=7050032,lv=7050033,dv=7050034,hv=7050035,pv=7050036,Ec=8078e3,_c=8078001,vv=8078002,mv=8078003,bc=8078004,Rc=8078005,Ac=8078006,gv=8078007,yv=8078008,wv=8078009,Ev=8078010,Sc=8078011,_v=8078012,bv=8078013,Rv=8078014,Av=8078015,Sv=8078016,Iv=8078017,Ov=8078018,Tv=8078019,Nv=8078020,xv=8078021,Cv=8078022,Lv=81e5,Bv=8100001,Mv=8100002,kv=8100003,Dv=819e4,Uv=8190001,Pv=8190002,Fv=8190003,Vv=8190004,Hv=99e5,Gv=9900001,jv=9900002,Yv=9900003,zv=9900004;function Ic(t){return Array.isArray(t)?"%5B"+t.map(Ic).join("%2C%20")+"%5D":typeof t=="bigint"?`${t}n`:encodeURIComponent(String(t!=null&&Object.getPrototypeOf(t)===null?{...t}:t))}function Wv([t,n]){return`${t}=${Ic(n)}`}function Kv(t){const n=Object.entries(t).map(Wv).join("&");return btoa(n)}var Zv={[xh]:"Account not found at address: $address",[Mh]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Bh]:"Expected decoded account at address: $address",[Lh]:"Failed to decode account data at address: $address",[Ch]:"Accounts not found at addresses: $addresses",[Oh]:"Unable to find a viable program address bump seed.",[Eh]:"$putativeAddress is not a base58-encoded address.",[yh]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[_h]:"The `CryptoKey` must be an `Ed25519` public key.",[Nh]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Ih]:"Invalid seeds; point must fall off the Ed25519 curve.",[bh]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Ah]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Sh]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Rh]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Th]:"Program address cannot end with PDA marker.",[wh]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Y1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[H1]:"The network has progressed past the last block for which this transaction could have been committed.",[Ec]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Cv]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Nv]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Rc]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Ac]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[bc]:"Encoder and decoder must either both be fixed-size or variable-size.",[yv]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[vv]:"Expected a fixed-size codec, got a variable-size one.",[bv]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[mv]:"Expected a variable-size codec, got a fixed-size one.",[Tv]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[_c]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Ov]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[wv]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Ev]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Av]:"Invalid literal union variant. Expected one of [$variants], got $value.",[gv]:"Expected [$codecDescription] to have $expected items, got $actual.",[_v]:"Invalid value $value for base $base with alphabet $alphabet.",[Sv]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Sc]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Rv]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[xv]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Iv]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[jh]:"No random values implementation could be found.",[a2]:"instruction requires an uninitialized account",[_2]:"instruction tries to borrow reference for an account which is already borrowed",[b2]:"instruction left account with an outstanding borrowed reference",[w2]:"program other than the account's owner changed the size of the account data",[r2]:"account data too small for instruction",[E2]:"instruction expected an executable account",[Y2]:"An account does not have enough lamports to be rent-exempt",[W2]:"Program arithmetic overflowed",[j2]:"Failed to serialize or deserialize account data: $encodedData",[J2]:"Builtin programs must consume compute units",[x2]:"Cross-program invocation call depth too deep",[D2]:"Computational budget exceeded",[A2]:"custom program error: #$code",[v2]:"instruction contains duplicate accounts",[R2]:"instruction modifications of multiply-passed account differ",[T2]:"executable accounts must be rent exempt",[I2]:"instruction changed executable accounts data",[O2]:"instruction changed the balance of an executable account",[m2]:"instruction changed executable bit of an account",[d2]:"instruction modified data of an account it does not own",[l2]:"instruction spent from the balance of an account it does not own",[Qh]:"generic instruction error",[Z2]:"Provided owner is not allowed",[H2]:"Account is immutable",[G2]:"Incorrect authority provided",[o2]:"incorrect program id for instruction",[i2]:"insufficient funds for instruction",[n2]:"invalid account data for instruction",[z2]:"Invalid account owner",[t2]:"invalid program argument",[S2]:"program returned invalid error code",[e2]:"invalid instruction data",[k2]:"Failed to reallocate account data",[M2]:"Provided seeds do not result in a valid address",[X2]:"Accounts data allocations exceeded the maximum allowed per transaction",[$2]:"Max accounts exceeded",[q2]:"Max instruction trace length exceeded",[B2]:"Length of the seed is too long for address generation",[C2]:"An account required by the instruction is missing",[s2]:"missing required signature for instruction",[f2]:"instruction illegally modified the program id of an account",[y2]:"insufficient account keys for instruction",[U2]:"Cross-program invocation with unauthorized signer or writable account",[P2]:"Failed to create program execution environment",[V2]:"Program failed to compile",[F2]:"Program failed to complete",[p2]:"instruction modified data of a read-only account",[h2]:"instruction changed the balance of a read-only account",[L2]:"Cross-program invocation reentrancy not allowed for this instruction",[g2]:"instruction modified rent epoch of an account",[c2]:"sum of account balances before and after instruction do not match",[u2]:"instruction requires an initialized account",[Jh]:"",[N2]:"Unsupported program id",[K2]:"Unsupported sysvar",[Xh]:"The instruction does not have any accounts.",[$h]:"The instruction does not have any data.",[qh]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[z1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[G1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[jv]:"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",[zv]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Gv]:"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",[Hv]:"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",[Yv]:"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",[J1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Q1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[eh]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[th]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[q1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[sh]:"$__serverMessage",[gh]:"$__serverMessage",[ph]:"$__serverMessage",[ih]:"$__serverMessage",[uh]:"$__serverMessage",[ch]:"$__serverMessage",[nh]:"Minimum context slot has not been reached",[hh]:"Node is unhealthy; behind by $numSlotsBehind slots",[fh]:"No snapshot",[mh]:"Transaction simulation failed",[lh]:"$__serverMessage",[ah]:"Transaction history is not available from this node",[dh]:"$__serverMessage",[oh]:"Transaction signature length mismatch",[vh]:"Transaction signature verification failure",[rh]:"$__serverMessage",[Yh]:"Key pair bytes must be of length 64, got $byteLength.",[zh]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Wh]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Zh]:"The provided private key does not match the provided public key.",[Kh]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[W1]:"Lamports value must be in the range [0, 2e64-1]",[K1]:"`$value` cannot be parsed as a `BigInt`",[$1]:"$message",[Z1]:"`$value` cannot be parsed as a `Number`",[j1]:"No nonce account could be found at address `$nonceAccountAddress`",[Dv]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Pv]:"WebSocket was closed before payload could be added to the send buffer",[Fv]:"WebSocket connection closed",[Vv]:"WebSocket failed to connect",[Uv]:"Failed to obtain a subscription id from the server",[kv]:"Could not find an API plan for RPC method: `$method`",[Lv]:"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`.",[Mv]:"HTTP error ($statusCode): $message",[Bv]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Q2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[tp]:"The provided value does not implement the `KeyPairSigner` interface",[np]:"The provided value does not implement the `MessageModifyingSigner` interface",[rp]:"The provided value does not implement the `MessagePartialSigner` interface",[ep]:"The provided value does not implement any of the `MessageSigner` interfaces",[op]:"The provided value does not implement the `TransactionModifyingSigner` interface",[sp]:"The provided value does not implement the `TransactionPartialSigner` interface",[ap]:"The provided value does not implement the `TransactionSendingSigner` interface",[ip]:"The provided value does not implement any of the `TransactionSigner` interfaces",[up]:"More than one `TransactionSendingSigner` was identified.",[cp]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[fp]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Gh]:"Cannot export a non-extractable key.",[Dh]:"No digest implementation could be found.",[kh]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Uh]:`This runtime does not support the generation of Ed25519 key pairs.
1
+ (function(He,ke){typeof exports=="object"&&typeof module<"u"?ke(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],ke):(He=typeof globalThis<"u"?globalThis:He||self,ke(He.VueTypeWriter={},He.Vue))})(this,(function(He,ke){"use strict";var zc=(e=>(e.USER="user",e.BUSINESS="business",e.FIRST_PARTY="firstParty",e))(zc||{}),Zc=(e=>(e.ASAP="asap",e.SAME_DAY="same_day",e.STANDARD="standard",e.CARD="card",e.IBAN="iban",e.PIX="pix",e.EFT="eft",e.VENMO="venmo",e.PAYPAL="paypal",e.WIRE="wire",e.INTERAC="interac",e.SWIFT="swift",e.CRYPTO="crypto",e))(Zc||{}),Yc=(e=>(e.Credits="Credits",e.USDC="USDC",e.Bank="Bank",e))(Yc||{});function Id(e){return"cardToken"in e}function Od(e){return"disableSavedPaymentMethods"in e}var qc=(e=>(e.Rounded="rounded",e.Sharp="sharp",e.Pill="pill",e))(qc||{}),Xc=(e=>(e.GUEST="guest",e.PRIVATE="private",e.BUSINESS="business",e))(Xc||{}),Jc=(e=>(e.NoPreference="NoPreference",e.Frictionless="Frictionless",e.Challenge="Challenge",e))(Jc||{}),Qc=(e=>(e.card="card",e.ach="ach",e.fasterPayments="fasterPayments",e.sepa="sepa",e.pix="pix",e.usdc="usdc",e.googlePay="googlePay",e.applePay="applePay",e.credits="credits",e.crypto="crypto",e.wire="wire",e.cashApp="cashApp",e.apa="apa",e.paypal="paypal",e.venmo="venmo",e.interac="interac",e))(Qc||{});const Nd={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",wire:"Wire Transfer",cashApp:"CashApp",apa:"APA",paypal:"PayPal",venmo:"Venmo",interac:"Interac"};var Jr=(e=>(e.VISA="VISA",e.MASTERCARD="MSTR",e.AMEX="AMEX",e.DISCOVER="DISC",e))(Jr||{});const Td="rnredirect";function Gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hs(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var c=!1;try{c=this instanceof r}catch{}return c?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(e).forEach(function(r){var c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,c.get?c:{enumerable:!0,get:function(){return e[r]}})}),n}var $s={},Mo={},eu;function xd(){if(eu)return Mo;eu=1,Mo.byteLength=v,Mo.toByteArray=y,Mo.fromByteArray=S;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,i=r.length;c<i;++c)e[c]=r[c],t[r.charCodeAt(c)]=c;t[45]=62,t[95]=63;function l(I){var k=I.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=I.indexOf("=");C===-1&&(C=k);var V=C===k?0:4-C%4;return[C,V]}function v(I){var k=l(I),C=k[0],V=k[1];return(C+V)*3/4-V}function d(I,k,C){return(k+C)*3/4-C}function y(I){var k,C=l(I),V=C[0],j=C[1],J=new n(d(I,V,j)),W=0,se=j>0?V-4:V,ue;for(ue=0;ue<se;ue+=4)k=t[I.charCodeAt(ue)]<<18|t[I.charCodeAt(ue+1)]<<12|t[I.charCodeAt(ue+2)]<<6|t[I.charCodeAt(ue+3)],J[W++]=k>>16&255,J[W++]=k>>8&255,J[W++]=k&255;return j===2&&(k=t[I.charCodeAt(ue)]<<2|t[I.charCodeAt(ue+1)]>>4,J[W++]=k&255),j===1&&(k=t[I.charCodeAt(ue)]<<10|t[I.charCodeAt(ue+1)]<<4|t[I.charCodeAt(ue+2)]>>2,J[W++]=k>>8&255,J[W++]=k&255),J}function A(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function O(I,k,C){for(var V,j=[],J=k;J<C;J+=3)V=(I[J]<<16&16711680)+(I[J+1]<<8&65280)+(I[J+2]&255),j.push(A(V));return j.join("")}function S(I){for(var k,C=I.length,V=C%3,j=[],J=16383,W=0,se=C-V;W<se;W+=J)j.push(O(I,W,W+J>se?se:W+J));return V===1?(k=I[C-1],j.push(e[k>>2]+e[k<<4&63]+"==")):V===2&&(k=(I[C-2]<<8)+I[C-1],j.push(e[k>>10]+e[k>>4&63]+e[k<<2&63]+"=")),j.join("")}return Mo}var Ii={};var tu;function Ld(){return tu||(tu=1,Ii.read=function(e,t,n,r,c){var i,l,v=c*8-r-1,d=(1<<v)-1,y=d>>1,A=-7,O=n?c-1:0,S=n?-1:1,I=e[t+O];for(O+=S,i=I&(1<<-A)-1,I>>=-A,A+=v;A>0;i=i*256+e[t+O],O+=S,A-=8);for(l=i&(1<<-A)-1,i>>=-A,A+=r;A>0;l=l*256+e[t+O],O+=S,A-=8);if(i===0)i=1-y;else{if(i===d)return l?NaN:(I?-1:1)*(1/0);l=l+Math.pow(2,r),i=i-y}return(I?-1:1)*l*Math.pow(2,i-r)},Ii.write=function(e,t,n,r,c,i){var l,v,d,y=i*8-c-1,A=(1<<y)-1,O=A>>1,S=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:i-1,k=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(v=isNaN(t)?1:0,l=A):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+O>=1?t+=S/d:t+=S*Math.pow(2,1-O),t*d>=2&&(l++,d/=2),l+O>=A?(v=0,l=A):l+O>=1?(v=(t*d-1)*Math.pow(2,c),l=l+O):(v=t*Math.pow(2,O-1)*Math.pow(2,c),l=0));c>=8;e[n+I]=v&255,I+=k,v/=256,c-=8);for(l=l<<c|v,y+=c;y>0;e[n+I]=l&255,I+=k,l/=256,y-=8);e[n+I-k]|=C*128}),Ii}var nu;function js(){return nu||(nu=1,(function(e){const t=xd(),n=Ld(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=v,e.SlowBuffer=J,e.INSPECT_MAX_BYTES=50;const c=2147483647;e.kMaxLength=c,v.TYPED_ARRAY_SUPPORT=i(),!v.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),E={foo:function(){return 42}};return Object.setPrototypeOf(E,Uint8Array.prototype),Object.setPrototypeOf(F,E),F.foo()===42}catch{return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function l(F){if(F>c)throw new RangeError('The value "'+F+'" is invalid for option "size"');const E=new Uint8Array(F);return Object.setPrototypeOf(E,v.prototype),E}function v(F,E,b){if(typeof F=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(F)}return d(F,E,b)}v.poolSize=8192;function d(F,E,b){if(typeof F=="string")return S(F,E);if(ArrayBuffer.isView(F))return k(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(fe(F,ArrayBuffer)||F&&fe(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(F,SharedArrayBuffer)||F&&fe(F.buffer,SharedArrayBuffer)))return C(F,E,b);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const q=F.valueOf&&F.valueOf();if(q!=null&&q!==F)return v.from(q,E,b);const ve=V(F);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return v.from(F[Symbol.toPrimitive]("string"),E,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}v.from=function(F,E,b){return d(F,E,b)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function y(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 A(F,E,b){return y(F),F<=0?l(F):E!==void 0?typeof b=="string"?l(F).fill(E,b):l(F).fill(E):l(F)}v.alloc=function(F,E,b){return A(F,E,b)};function O(F){return y(F),l(F<0?0:j(F)|0)}v.allocUnsafe=function(F){return O(F)},v.allocUnsafeSlow=function(F){return O(F)};function S(F,E){if((typeof E!="string"||E==="")&&(E="utf8"),!v.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const b=W(F,E)|0;let q=l(b);const ve=q.write(F,E);return ve!==b&&(q=q.slice(0,ve)),q}function I(F){const E=F.length<0?0:j(F.length)|0,b=l(E);for(let q=0;q<E;q+=1)b[q]=F[q]&255;return b}function k(F){if(fe(F,Uint8Array)){const E=new Uint8Array(F);return C(E.buffer,E.byteOffset,E.byteLength)}return I(F)}function C(F,E,b){if(E<0||F.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<E+(b||0))throw new RangeError('"length" is outside of buffer bounds');let q;return E===void 0&&b===void 0?q=new Uint8Array(F):b===void 0?q=new Uint8Array(F,E):q=new Uint8Array(F,E,b),Object.setPrototypeOf(q,v.prototype),q}function V(F){if(v.isBuffer(F)){const E=j(F.length)|0,b=l(E);return b.length===0||F.copy(b,0,0,E),b}if(F.length!==void 0)return typeof F.length!="number"||pe(F.length)?l(0):I(F);if(F.type==="Buffer"&&Array.isArray(F.data))return I(F.data)}function j(F){if(F>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return F|0}function J(F){return+F!=F&&(F=0),v.alloc(+F)}v.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==v.prototype},v.compare=function(E,b){if(fe(E,Uint8Array)&&(E=v.from(E,E.offset,E.byteLength)),fe(b,Uint8Array)&&(b=v.from(b,b.offset,b.byteLength)),!v.isBuffer(E)||!v.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===b)return 0;let q=E.length,ve=b.length;for(let be=0,L=Math.min(q,ve);be<L;++be)if(E[be]!==b[be]){q=E[be],ve=b[be];break}return q<ve?-1:ve<q?1:0},v.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},v.concat=function(E,b){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return v.alloc(0);let q;if(b===void 0)for(b=0,q=0;q<E.length;++q)b+=E[q].length;const ve=v.allocUnsafe(b);let be=0;for(q=0;q<E.length;++q){let L=E[q];if(fe(L,Uint8Array))be+L.length>ve.length?(v.isBuffer(L)||(L=v.from(L)),L.copy(ve,be)):Uint8Array.prototype.set.call(ve,L,be);else if(v.isBuffer(L))L.copy(ve,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=L.length}return ve};function W(F,E){if(v.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||fe(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 b=F.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&b===0)return 0;let ve=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return wt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return M(F).length;default:if(ve)return q?-1:wt(F).length;E=(""+E).toLowerCase(),ve=!0}}v.byteLength=W;function se(F,E,b){let q=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,E>>>=0,b<=E))return"";for(F||(F="utf8");;)switch(F){case"hex":return ee(this,E,b);case"utf8":case"utf-8":return f(this,E,b);case"ascii":return $(this,E,b);case"latin1":case"binary":return Z(this,E,b);case"base64":return D(this,E,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,E,b);default:if(q)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),q=!0}}v.prototype._isBuffer=!0;function ue(F,E,b){const q=F[E];F[E]=F[b],F[b]=q}v.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<E;b+=2)ue(this,b,b+1);return this},v.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<E;b+=4)ue(this,b,b+3),ue(this,b+1,b+2);return this},v.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<E;b+=8)ue(this,b,b+7),ue(this,b+1,b+6),ue(this,b+2,b+5),ue(this,b+3,b+4);return this},v.prototype.toString=function(){const E=this.length;return E===0?"":arguments.length===0?f(this,0,E):se.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(E){if(!v.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:v.compare(this,E)===0},v.prototype.inspect=function(){let E="";const b=e.INSPECT_MAX_BYTES;return E=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(E+=" ... "),"<Buffer "+E+">"},r&&(v.prototype[r]=v.prototype.inspect),v.prototype.compare=function(E,b,q,ve,be){if(fe(E,Uint8Array)&&(E=v.from(E,E.offset,E.byteLength)),!v.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(b===void 0&&(b=0),q===void 0&&(q=E?E.length:0),ve===void 0&&(ve=0),be===void 0&&(be=this.length),b<0||q>E.length||ve<0||be>this.length)throw new RangeError("out of range index");if(ve>=be&&b>=q)return 0;if(ve>=be)return-1;if(b>=q)return 1;if(b>>>=0,q>>>=0,ve>>>=0,be>>>=0,this===E)return 0;let L=be-ve,re=q-b;const Q=Math.min(L,re),we=this.slice(ve,be),Se=E.slice(b,q);for(let Ne=0;Ne<Q;++Ne)if(we[Ne]!==Se[Ne]){L=we[Ne],re=Se[Ne];break}return L<re?-1:re<L?1:0};function oe(F,E,b,q,ve){if(F.length===0)return-1;if(typeof b=="string"?(q=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,pe(b)&&(b=ve?0:F.length-1),b<0&&(b=F.length+b),b>=F.length){if(ve)return-1;b=F.length-1}else if(b<0)if(ve)b=0;else return-1;if(typeof E=="string"&&(E=v.from(E,q)),v.isBuffer(E))return E.length===0?-1:Ee(F,E,b,q,ve);if(typeof E=="number")return E=E&255,typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(F,E,b):Uint8Array.prototype.lastIndexOf.call(F,E,b):Ee(F,[E],b,q,ve);throw new TypeError("val must be string, number or Buffer")}function Ee(F,E,b,q,ve){let be=1,L=F.length,re=E.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(F.length<2||E.length<2)return-1;be=2,L/=2,re/=2,b/=2}function Q(Se,Ne){return be===1?Se[Ne]:Se.readUInt16BE(Ne*be)}let we;if(ve){let Se=-1;for(we=b;we<L;we++)if(Q(F,we)===Q(E,Se===-1?0:we-Se)){if(Se===-1&&(Se=we),we-Se+1===re)return Se*be}else Se!==-1&&(we-=we-Se),Se=-1}else for(b+re>L&&(b=L-re),we=b;we>=0;we--){let Se=!0;for(let Ne=0;Ne<re;Ne++)if(Q(F,we+Ne)!==Q(E,Ne)){Se=!1;break}if(Se)return we}return-1}v.prototype.includes=function(E,b,q){return this.indexOf(E,b,q)!==-1},v.prototype.indexOf=function(E,b,q){return oe(this,E,b,q,!0)},v.prototype.lastIndexOf=function(E,b,q){return oe(this,E,b,q,!1)};function Re(F,E,b,q){b=Number(b)||0;const ve=F.length-b;q?(q=Number(q),q>ve&&(q=ve)):q=ve;const be=E.length;q>be/2&&(q=be/2);let L;for(L=0;L<q;++L){const re=parseInt(E.substr(L*2,2),16);if(pe(re))return L;F[b+L]=re}return L}function ne(F,E,b,q){return te(wt(E,F.length-b),F,b,q)}function ie(F,E,b,q){return te(w(E),F,b,q)}function de(F,E,b,q){return te(M(E),F,b,q)}function ge(F,E,b,q){return te(x(E,F.length-b),F,b,q)}v.prototype.write=function(E,b,q,ve){if(b===void 0)ve="utf8",q=this.length,b=0;else if(q===void 0&&typeof b=="string")ve=b,q=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(q)?(q=q>>>0,ve===void 0&&(ve="utf8")):(ve=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-b;if((q===void 0||q>be)&&(q=be),E.length>0&&(q<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");let L=!1;for(;;)switch(ve){case"hex":return Re(this,E,b,q);case"utf8":case"utf-8":return ne(this,E,b,q);case"ascii":case"latin1":case"binary":return ie(this,E,b,q);case"base64":return de(this,E,b,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,E,b,q);default:if(L)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),L=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(F,E,b){return E===0&&b===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(E,b))}function f(F,E,b){b=Math.min(F.length,b);const q=[];let ve=E;for(;ve<b;){const be=F[ve];let L=null,re=be>239?4:be>223?3:be>191?2:1;if(ve+re<=b){let Q,we,Se,Ne;switch(re){case 1:be<128&&(L=be);break;case 2:Q=F[ve+1],(Q&192)===128&&(Ne=(be&31)<<6|Q&63,Ne>127&&(L=Ne));break;case 3:Q=F[ve+1],we=F[ve+2],(Q&192)===128&&(we&192)===128&&(Ne=(be&15)<<12|(Q&63)<<6|we&63,Ne>2047&&(Ne<55296||Ne>57343)&&(L=Ne));break;case 4:Q=F[ve+1],we=F[ve+2],Se=F[ve+3],(Q&192)===128&&(we&192)===128&&(Se&192)===128&&(Ne=(be&15)<<18|(Q&63)<<12|(we&63)<<6|Se&63,Ne>65535&&Ne<1114112&&(L=Ne))}}L===null?(L=65533,re=1):L>65535&&(L-=65536,q.push(L>>>10&1023|55296),L=56320|L&1023),q.push(L),ve+=re}return B(q)}const R=4096;function B(F){const E=F.length;if(E<=R)return String.fromCharCode.apply(String,F);let b="",q=0;for(;q<E;)b+=String.fromCharCode.apply(String,F.slice(q,q+=R));return b}function $(F,E,b){let q="";b=Math.min(F.length,b);for(let ve=E;ve<b;++ve)q+=String.fromCharCode(F[ve]&127);return q}function Z(F,E,b){let q="";b=Math.min(F.length,b);for(let ve=E;ve<b;++ve)q+=String.fromCharCode(F[ve]);return q}function ee(F,E,b){const q=F.length;(!E||E<0)&&(E=0),(!b||b<0||b>q)&&(b=q);let ve="";for(let be=E;be<b;++be)ve+=Me[F[be]];return ve}function ae(F,E,b){const q=F.slice(E,b);let ve="";for(let be=0;be<q.length-1;be+=2)ve+=String.fromCharCode(q[be]+q[be+1]*256);return ve}v.prototype.slice=function(E,b){const q=this.length;E=~~E,b=b===void 0?q:~~b,E<0?(E+=q,E<0&&(E=0)):E>q&&(E=q),b<0?(b+=q,b<0&&(b=0)):b>q&&(b=q),b<E&&(b=E);const ve=this.subarray(E,b);return Object.setPrototypeOf(ve,v.prototype),ve};function K(F,E,b){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+E>b)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=this[E],be=1,L=0;for(;++L<b&&(be*=256);)ve+=this[E+L]*be;return ve},v.prototype.readUintBE=v.prototype.readUIntBE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=this[E+--b],be=1;for(;b>0&&(be*=256);)ve+=this[E+--b]*be;return ve},v.prototype.readUint8=v.prototype.readUInt8=function(E,b){return E=E>>>0,b||K(E,1,this.length),this[E]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(E,b){return E=E>>>0,b||K(E,2,this.length),this[E]|this[E+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(E,b){return E=E>>>0,b||K(E,2,this.length),this[E]<<8|this[E+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(E,b){return E=E>>>0,b||K(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},v.prototype.readBigUInt64LE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=b+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,be=this[++E]+this[++E]*2**8+this[++E]*2**16+q*2**24;return BigInt(ve)+(BigInt(be)<<BigInt(32))}),v.prototype.readBigUInt64BE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=b*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],be=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+q;return(BigInt(ve)<<BigInt(32))+BigInt(be)}),v.prototype.readIntLE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=this[E],be=1,L=0;for(;++L<b&&(be*=256);)ve+=this[E+L]*be;return be*=128,ve>=be&&(ve-=Math.pow(2,8*b)),ve},v.prototype.readIntBE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=b,be=1,L=this[E+--ve];for(;ve>0&&(be*=256);)L+=this[E+--ve]*be;return be*=128,L>=be&&(L-=Math.pow(2,8*b)),L},v.prototype.readInt8=function(E,b){return E=E>>>0,b||K(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},v.prototype.readInt16LE=function(E,b){E=E>>>0,b||K(E,2,this.length);const q=this[E]|this[E+1]<<8;return q&32768?q|4294901760:q},v.prototype.readInt16BE=function(E,b){E=E>>>0,b||K(E,2,this.length);const q=this[E+1]|this[E]<<8;return q&32768?q|4294901760:q},v.prototype.readInt32LE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},v.prototype.readInt32BE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},v.prototype.readBigInt64LE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(q<<24);return(BigInt(ve)<<BigInt(32))+BigInt(b+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),v.prototype.readBigInt64BE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=(b<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(ve)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+q)}),v.prototype.readFloatLE=function(E,b){return E=E>>>0,b||K(E,4,this.length),n.read(this,E,!0,23,4)},v.prototype.readFloatBE=function(E,b){return E=E>>>0,b||K(E,4,this.length),n.read(this,E,!1,23,4)},v.prototype.readDoubleLE=function(E,b){return E=E>>>0,b||K(E,8,this.length),n.read(this,E,!0,52,8)},v.prototype.readDoubleBE=function(E,b){return E=E>>>0,b||K(E,8,this.length),n.read(this,E,!1,52,8)};function g(F,E,b,q,ve,be){if(!v.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>ve||E<be)throw new RangeError('"value" argument is out of bounds');if(b+q>F.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(E,b,q,ve){if(E=+E,b=b>>>0,q=q>>>0,!ve){const re=Math.pow(2,8*q)-1;g(this,E,b,q,re,0)}let be=1,L=0;for(this[b]=E&255;++L<q&&(be*=256);)this[b+L]=E/be&255;return b+q},v.prototype.writeUintBE=v.prototype.writeUIntBE=function(E,b,q,ve){if(E=+E,b=b>>>0,q=q>>>0,!ve){const re=Math.pow(2,8*q)-1;g(this,E,b,q,re,0)}let be=q-1,L=1;for(this[b+be]=E&255;--be>=0&&(L*=256);)this[b+be]=E/L&255;return b+q},v.prototype.writeUint8=v.prototype.writeUInt8=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,1,255,0),this[b]=E&255,b+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,65535,0),this[b]=E&255,this[b+1]=E>>>8,b+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,65535,0),this[b]=E>>>8,this[b+1]=E&255,b+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,4294967295,0),this[b+3]=E>>>24,this[b+2]=E>>>16,this[b+1]=E>>>8,this[b]=E&255,b+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,4294967295,0),this[b]=E>>>24,this[b+1]=E>>>16,this[b+2]=E>>>8,this[b+3]=E&255,b+4};function _(F,E,b,q,ve){ct(E,q,ve,F,b,7);let be=Number(E&BigInt(4294967295));F[b++]=be,be=be>>8,F[b++]=be,be=be>>8,F[b++]=be,be=be>>8,F[b++]=be;let L=Number(E>>BigInt(32)&BigInt(4294967295));return F[b++]=L,L=L>>8,F[b++]=L,L=L>>8,F[b++]=L,L=L>>8,F[b++]=L,b}function H(F,E,b,q,ve){ct(E,q,ve,F,b,7);let be=Number(E&BigInt(4294967295));F[b+7]=be,be=be>>8,F[b+6]=be,be=be>>8,F[b+5]=be,be=be>>8,F[b+4]=be;let L=Number(E>>BigInt(32)&BigInt(4294967295));return F[b+3]=L,L=L>>8,F[b+2]=L,L=L>>8,F[b+1]=L,L=L>>8,F[b]=L,b+8}v.prototype.writeBigUInt64LE=tt(function(E,b=0){return _(this,E,b,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeBigUInt64BE=tt(function(E,b=0){return H(this,E,b,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeIntLE=function(E,b,q,ve){if(E=+E,b=b>>>0,!ve){const Q=Math.pow(2,8*q-1);g(this,E,b,q,Q-1,-Q)}let be=0,L=1,re=0;for(this[b]=E&255;++be<q&&(L*=256);)E<0&&re===0&&this[b+be-1]!==0&&(re=1),this[b+be]=(E/L>>0)-re&255;return b+q},v.prototype.writeIntBE=function(E,b,q,ve){if(E=+E,b=b>>>0,!ve){const Q=Math.pow(2,8*q-1);g(this,E,b,q,Q-1,-Q)}let be=q-1,L=1,re=0;for(this[b+be]=E&255;--be>=0&&(L*=256);)E<0&&re===0&&this[b+be+1]!==0&&(re=1),this[b+be]=(E/L>>0)-re&255;return b+q},v.prototype.writeInt8=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,1,127,-128),E<0&&(E=255+E+1),this[b]=E&255,b+1},v.prototype.writeInt16LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,32767,-32768),this[b]=E&255,this[b+1]=E>>>8,b+2},v.prototype.writeInt16BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,32767,-32768),this[b]=E>>>8,this[b+1]=E&255,b+2},v.prototype.writeInt32LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,2147483647,-2147483648),this[b]=E&255,this[b+1]=E>>>8,this[b+2]=E>>>16,this[b+3]=E>>>24,b+4},v.prototype.writeInt32BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[b]=E>>>24,this[b+1]=E>>>16,this[b+2]=E>>>8,this[b+3]=E&255,b+4},v.prototype.writeBigInt64LE=tt(function(E,b=0){return _(this,E,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),v.prototype.writeBigInt64BE=tt(function(E,b=0){return H(this,E,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(F,E,b,q,ve,be){if(b+q>F.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function me(F,E,b,q,ve){return E=+E,b=b>>>0,ve||X(F,E,b,4),n.write(F,E,b,q,23,4),b+4}v.prototype.writeFloatLE=function(E,b,q){return me(this,E,b,!0,q)},v.prototype.writeFloatBE=function(E,b,q){return me(this,E,b,!1,q)};function ye(F,E,b,q,ve){return E=+E,b=b>>>0,ve||X(F,E,b,8),n.write(F,E,b,q,52,8),b+8}v.prototype.writeDoubleLE=function(E,b,q){return ye(this,E,b,!0,q)},v.prototype.writeDoubleBE=function(E,b,q){return ye(this,E,b,!1,q)},v.prototype.copy=function(E,b,q,ve){if(!v.isBuffer(E))throw new TypeError("argument should be a Buffer");if(q||(q=0),!ve&&ve!==0&&(ve=this.length),b>=E.length&&(b=E.length),b||(b=0),ve>0&&ve<q&&(ve=q),ve===q||E.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw new RangeError("Index out of range");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),E.length-b<ve-q&&(ve=E.length-b+q);const be=ve-q;return this===E&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,q,ve):Uint8Array.prototype.set.call(E,this.subarray(q,ve),b),be},v.prototype.fill=function(E,b,q,ve){if(typeof E=="string"){if(typeof b=="string"?(ve=b,b=0,q=this.length):typeof q=="string"&&(ve=q,q=this.length),ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!v.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve);if(E.length===1){const L=E.charCodeAt(0);(ve==="utf8"&&L<128||ve==="latin1")&&(E=L)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(b<0||this.length<b||this.length<q)throw new RangeError("Out of range index");if(q<=b)return this;b=b>>>0,q=q===void 0?this.length:q>>>0,E||(E=0);let be;if(typeof E=="number")for(be=b;be<q;++be)this[be]=E;else{const L=v.isBuffer(E)?E:v.from(E,ve),re=L.length;if(re===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(be=0;be<q-b;++be)this[be+b]=L[be%re]}return this};const Fe={};function We(F,E,b){Fe[F]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:E.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(ve){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ve,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}We("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),We("ERR_INVALID_ARG_TYPE",function(F,E){return`The "${F}" argument must be of type number. Received type ${typeof E}`},TypeError),We("ERR_OUT_OF_RANGE",function(F,E,b){let q=`The value of "${F}" is out of range.`,ve=b;return Number.isInteger(b)&&Math.abs(b)>2**32?ve=st(String(b)):typeof b=="bigint"&&(ve=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(ve=st(ve)),ve+="n"),q+=` It must be ${E}. Received ${ve}`,q},RangeError);function st(F){let E="",b=F.length;const q=F[0]==="-"?1:0;for(;b>=q+4;b-=3)E=`_${F.slice(b-3,b)}${E}`;return`${F.slice(0,b)}${E}`}function at(F,E,b){Et(E,"offset"),(F[E]===void 0||F[E+b]===void 0)&&pt(E,F.length-(b+1))}function ct(F,E,b,q,ve,be){if(F>b||F<E){const L=typeof E=="bigint"?"n":"";let re;throw E===0||E===BigInt(0)?re=`>= 0${L} and < 2${L} ** ${(be+1)*8}${L}`:re=`>= -(2${L} ** ${(be+1)*8-1}${L}) and < 2 ** ${(be+1)*8-1}${L}`,new Fe.ERR_OUT_OF_RANGE("value",re,F)}at(q,ve,be)}function Et(F,E){if(typeof F!="number")throw new Fe.ERR_INVALID_ARG_TYPE(E,"number",F)}function pt(F,E,b){throw Math.floor(F)!==F?(Et(F,b),new Fe.ERR_OUT_OF_RANGE("offset","an integer",F)):E<0?new Fe.ERR_BUFFER_OUT_OF_BOUNDS:new Fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${E}`,F)}const Rt=/[^+/0-9A-Za-z-_]/g;function Pt(F){if(F=F.split("=")[0],F=F.trim().replace(Rt,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function wt(F,E){E=E||1/0;let b;const q=F.length;let ve=null;const be=[];for(let L=0;L<q;++L){if(b=F.charCodeAt(L),b>55295&&b<57344){if(!ve){if(b>56319){(E-=3)>-1&&be.push(239,191,189);continue}else if(L+1===q){(E-=3)>-1&&be.push(239,191,189);continue}ve=b;continue}if(b<56320){(E-=3)>-1&&be.push(239,191,189),ve=b;continue}b=(ve-55296<<10|b-56320)+65536}else ve&&(E-=3)>-1&&be.push(239,191,189);if(ve=null,b<128){if((E-=1)<0)break;be.push(b)}else if(b<2048){if((E-=2)<0)break;be.push(b>>6|192,b&63|128)}else if(b<65536){if((E-=3)<0)break;be.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((E-=4)<0)break;be.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return be}function w(F){const E=[];for(let b=0;b<F.length;++b)E.push(F.charCodeAt(b)&255);return E}function x(F,E){let b,q,ve;const be=[];for(let L=0;L<F.length&&!((E-=2)<0);++L)b=F.charCodeAt(L),q=b>>8,ve=b%256,be.push(ve),be.push(q);return be}function M(F){return t.toByteArray(Pt(F))}function te(F,E,b,q){let ve;for(ve=0;ve<q&&!(ve+b>=E.length||ve>=F.length);++ve)E[ve+b]=F[ve];return ve}function fe(F,E){return F instanceof E||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===E.name}function pe(F){return F!==F}const Me=(function(){const F="0123456789abcdef",E=new Array(256);for(let b=0;b<16;++b){const q=b*16;for(let ve=0;ve<16;++ve)E[q+ve]=F[b]+F[ve]}return E})();function tt(F){return typeof BigInt>"u"?Qe:F}function Qe(){throw new Error("BigInt not supported")}})($s)),$s}var yt=js();const Qr=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Bo(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Ks(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Lr(e,...t){if(!Bo(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function ru(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Ks(e.outputLen),Ks(e.blockLen)}function Oi(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Cd(e,t){Lr(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function eo(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ws(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function qn(e,t){return e<<32-t|e>>>t}const ou=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Md=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Cr(e){if(Lr(e),ou)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Md[e[n]];return t}const ir={_0:48,_9:57,A:65,F:70,a:97,f:102};function iu(e){if(e>=ir._0&&e<=ir._9)return e-ir._0;if(e>=ir.A&&e<=ir.F)return e-(ir.A-10);if(e>=ir.a&&e<=ir.f)return e-(ir.a-10)}function Ni(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(ou)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let c=0,i=0;c<n;c++,i+=2){const l=iu(e.charCodeAt(i)),v=iu(e.charCodeAt(i+1));if(l===void 0||v===void 0){const d=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+i)}r[c]=l*16+v}return r}function Bd(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function zs(e){return typeof e=="string"&&(e=Bd(e)),Lr(e),e}function Xn(...e){let t=0;for(let r=0;r<e.length;r++){const c=e[r];Lr(c),t+=c.length}const n=new Uint8Array(t);for(let r=0,c=0;r<e.length;r++){const i=e[r];n.set(i,c),c+=i.length}return n}class su{}function au(e){const t=r=>e().update(zs(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Zs(e=32){if(Qr&&typeof Qr.getRandomValues=="function")return Qr.getRandomValues(new Uint8Array(e));if(Qr&&typeof Qr.randomBytes=="function")return Uint8Array.from(Qr.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function kd(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const c=BigInt(32),i=BigInt(4294967295),l=Number(n>>c&i),v=Number(n&i),d=r?4:0,y=r?0:4;e.setUint32(t+d,l,r),e.setUint32(t+y,v,r)}function Dd(e,t,n){return e&t^~e&n}function Ud(e,t,n){return e&t^e&n^t&n}class cu extends su{constructor(t,n,r,c){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=c,this.buffer=new Uint8Array(t),this.view=Ws(this.buffer)}update(t){Oi(this),t=zs(t),Lr(t);const{view:n,buffer:r,blockLen:c}=this,i=t.length;for(let l=0;l<i;){const v=Math.min(c-this.pos,i-l);if(v===c){const d=Ws(t);for(;c<=i-l;l+=c)this.process(d,l);continue}r.set(t.subarray(l,l+v),this.pos),this.pos+=v,l+=v,this.pos===c&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Oi(this),Cd(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:c,isLE:i}=this;let{pos:l}=this;n[l++]=128,eo(this.buffer.subarray(l)),this.padOffset>c-l&&(this.process(r,0),l=0);for(let O=l;O<c;O++)n[O]=0;kd(r,c-8,BigInt(this.length*8),i),this.process(r,0);const v=Ws(t),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=d/4,A=this.get();if(y>A.length)throw new Error("_sha2: outputLen bigger than state");for(let O=0;O<y;O++)v.setUint32(4*O,A[O],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:c,finished:i,destroyed:l,pos:v}=this;return t.destroyed=l,t.finished=i,t.length=c,t.pos=v,c%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const gr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_n=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Ti=BigInt(2**32-1),uu=BigInt(32);function Pd(e,t=!1){return t?{h:Number(e&Ti),l:Number(e>>uu&Ti)}:{h:Number(e>>uu&Ti)|0,l:Number(e&Ti)|0}}function Fd(e,t=!1){const n=e.length;let r=new Uint32Array(n),c=new Uint32Array(n);for(let i=0;i<n;i++){const{h:l,l:v}=Pd(e[i],t);[r[i],c[i]]=[l,v]}return[r,c]}const fu=(e,t,n)=>e>>>n,lu=(e,t,n)=>e<<32-n|t>>>n,to=(e,t,n)=>e>>>n|t<<32-n,no=(e,t,n)=>e<<32-n|t>>>n,xi=(e,t,n)=>e<<64-n|t>>>n-32,Li=(e,t,n)=>e>>>n-32|t<<64-n;function sr(e,t,n,r){const c=(t>>>0)+(r>>>0);return{h:e+n+(c/2**32|0)|0,l:c|0}}const Vd=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),Gd=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,Hd=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),$d=(e,t,n,r,c)=>t+n+r+c+(e/2**32|0)|0,jd=(e,t,n,r,c)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(c>>>0),Kd=(e,t,n,r,c,i)=>t+n+r+c+i+(e/2**32|0)|0,Wd=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]),vr=new Uint32Array(64);class zd extends cu{constructor(t=32){super(64,t,8,!1),this.A=gr[0]|0,this.B=gr[1]|0,this.C=gr[2]|0,this.D=gr[3]|0,this.E=gr[4]|0,this.F=gr[5]|0,this.G=gr[6]|0,this.H=gr[7]|0}get(){const{A:t,B:n,C:r,D:c,E:i,F:l,G:v,H:d}=this;return[t,n,r,c,i,l,v,d]}set(t,n,r,c,i,l,v,d){this.A=t|0,this.B=n|0,this.C=r|0,this.D=c|0,this.E=i|0,this.F=l|0,this.G=v|0,this.H=d|0}process(t,n){for(let O=0;O<16;O++,n+=4)vr[O]=t.getUint32(n,!1);for(let O=16;O<64;O++){const S=vr[O-15],I=vr[O-2],k=qn(S,7)^qn(S,18)^S>>>3,C=qn(I,17)^qn(I,19)^I>>>10;vr[O]=C+vr[O-7]+k+vr[O-16]|0}let{A:r,B:c,C:i,D:l,E:v,F:d,G:y,H:A}=this;for(let O=0;O<64;O++){const S=qn(v,6)^qn(v,11)^qn(v,25),I=A+S+Dd(v,d,y)+Wd[O]+vr[O]|0,C=(qn(r,2)^qn(r,13)^qn(r,22))+Ud(r,c,i)|0;A=y,y=d,d=v,v=l+I|0,l=i,i=c,c=r,r=I+C|0}r=r+this.A|0,c=c+this.B|0,i=i+this.C|0,l=l+this.D|0,v=v+this.E|0,d=d+this.F|0,y=y+this.G|0,A=A+this.H|0,this.set(r,c,i,l,v,d,y,A)}roundClean(){eo(vr)}destroy(){this.set(0,0,0,0,0,0,0,0),eo(this.buffer)}}const du=Fd(["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(e=>BigInt(e))),Zd=du[0],Yd=du[1],yr=new Uint32Array(80),wr=new Uint32Array(80);class qd extends cu{constructor(t=64){super(128,t,16,!1),this.Ah=_n[0]|0,this.Al=_n[1]|0,this.Bh=_n[2]|0,this.Bl=_n[3]|0,this.Ch=_n[4]|0,this.Cl=_n[5]|0,this.Dh=_n[6]|0,this.Dl=_n[7]|0,this.Eh=_n[8]|0,this.El=_n[9]|0,this.Fh=_n[10]|0,this.Fl=_n[11]|0,this.Gh=_n[12]|0,this.Gl=_n[13]|0,this.Hh=_n[14]|0,this.Hl=_n[15]|0}get(){const{Ah:t,Al:n,Bh:r,Bl:c,Ch:i,Cl:l,Dh:v,Dl:d,Eh:y,El:A,Fh:O,Fl:S,Gh:I,Gl:k,Hh:C,Hl:V}=this;return[t,n,r,c,i,l,v,d,y,A,O,S,I,k,C,V]}set(t,n,r,c,i,l,v,d,y,A,O,S,I,k,C,V){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=c|0,this.Ch=i|0,this.Cl=l|0,this.Dh=v|0,this.Dl=d|0,this.Eh=y|0,this.El=A|0,this.Fh=O|0,this.Fl=S|0,this.Gh=I|0,this.Gl=k|0,this.Hh=C|0,this.Hl=V|0}process(t,n){for(let W=0;W<16;W++,n+=4)yr[W]=t.getUint32(n),wr[W]=t.getUint32(n+=4);for(let W=16;W<80;W++){const se=yr[W-15]|0,ue=wr[W-15]|0,oe=to(se,ue,1)^to(se,ue,8)^fu(se,ue,7),Ee=no(se,ue,1)^no(se,ue,8)^lu(se,ue,7),Re=yr[W-2]|0,ne=wr[W-2]|0,ie=to(Re,ne,19)^xi(Re,ne,61)^fu(Re,ne,6),de=no(Re,ne,19)^Li(Re,ne,61)^lu(Re,ne,6),ge=Hd(Ee,de,wr[W-7],wr[W-16]),D=$d(ge,oe,ie,yr[W-7],yr[W-16]);yr[W]=D|0,wr[W]=ge|0}let{Ah:r,Al:c,Bh:i,Bl:l,Ch:v,Cl:d,Dh:y,Dl:A,Eh:O,El:S,Fh:I,Fl:k,Gh:C,Gl:V,Hh:j,Hl:J}=this;for(let W=0;W<80;W++){const se=to(O,S,14)^to(O,S,18)^xi(O,S,41),ue=no(O,S,14)^no(O,S,18)^Li(O,S,41),oe=O&I^~O&C,Ee=S&k^~S&V,Re=jd(J,ue,Ee,Yd[W],wr[W]),ne=Kd(Re,j,se,oe,Zd[W],yr[W]),ie=Re|0,de=to(r,c,28)^xi(r,c,34)^xi(r,c,39),ge=no(r,c,28)^Li(r,c,34)^Li(r,c,39),D=r&i^r&v^i&v,f=c&l^c&d^l&d;j=C|0,J=V|0,C=I|0,V=k|0,I=O|0,k=S|0,{h:O,l:S}=sr(y|0,A|0,ne|0,ie|0),y=v|0,A=d|0,v=i|0,d=l|0,i=r|0,l=c|0;const R=Vd(ie,ge,f);r=Gd(R,ne,de,D),c=R|0}({h:r,l:c}=sr(this.Ah|0,this.Al|0,r|0,c|0)),{h:i,l}=sr(this.Bh|0,this.Bl|0,i|0,l|0),{h:v,l:d}=sr(this.Ch|0,this.Cl|0,v|0,d|0),{h:y,l:A}=sr(this.Dh|0,this.Dl|0,y|0,A|0),{h:O,l:S}=sr(this.Eh|0,this.El|0,O|0,S|0),{h:I,l:k}=sr(this.Fh|0,this.Fl|0,I|0,k|0),{h:C,l:V}=sr(this.Gh|0,this.Gl|0,C|0,V|0),{h:j,l:J}=sr(this.Hh|0,this.Hl|0,j|0,J|0),this.set(r,c,i,l,v,d,y,A,O,S,I,k,C,V,j,J)}roundClean(){eo(yr,wr)}destroy(){eo(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const hu=au(()=>new zd),Xd=au(()=>new qd);const Ys=BigInt(0),qs=BigInt(1);function Mr(e,t=""){if(typeof e!="boolean"){const n=t&&`"${t}"`;throw new Error(n+"expected boolean, got type="+typeof e)}return e}function Wn(e,t,n=""){const r=Bo(e),c=e?.length,i=t!==void 0;if(!r||i&&c!==t){const l=n&&`"${n}" `,v=i?` of length ${t}`:"",d=r?`length=${c}`:`type=${typeof e}`;throw new Error(l+"expected Uint8Array"+v+", got "+d)}return e}function Ci(e){const t=e.toString(16);return t.length&1?"0"+t:t}function pu(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Ys:BigInt("0x"+e)}function Mi(e){return pu(Cr(e))}function ko(e){return Lr(e),pu(Cr(Uint8Array.from(e).reverse()))}function Xs(e,t){return Ni(e.toString(16).padStart(t*2,"0"))}function mu(e,t){return Xs(e,t).reverse()}function jt(e,t,n){let r;if(typeof t=="string")try{r=Ni(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(Bo(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const c=r.length;if(typeof n=="number"&&c!==n)throw new Error(e+" of length "+n+" expected, got "+c);return r}function gu(e){return Uint8Array.from(e)}const Js=e=>typeof e=="bigint"&&Ys<=e;function Jd(e,t,n){return Js(e)&&Js(t)&&Js(n)&&t<=e&&e<n}function Qs(e,t,n,r){if(!Jd(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function vu(e){let t;for(t=0;e>Ys;e>>=qs,t+=1);return t}const Do=e=>(qs<<BigInt(e))-qs;function Qd(e,t,n){if(typeof e!="number"||e<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 r=I=>new Uint8Array(I),c=I=>Uint8Array.of(I);let i=r(e),l=r(e),v=0;const d=()=>{i.fill(1),l.fill(0),v=0},y=(...I)=>n(l,i,...I),A=(I=r(0))=>{l=y(c(0),I),i=y(),I.length!==0&&(l=y(c(1),I),i=y())},O=()=>{if(v++>=1e3)throw new Error("drbg: tried 1000 values");let I=0;const k=[];for(;I<t;){i=y();const C=i.slice();k.push(C),I+=i.length}return Xn(...k)};return(I,k)=>{d(),A(I);let C;for(;!(C=k(O()));)A();return d(),C}}function Uo(e,t,n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(c,i,l){const v=e[c];if(l&&v===void 0)return;const d=typeof v;if(d!==i||v===null)throw new Error(`param "${c}" is invalid: expected ${i}, got ${d}`)}Object.entries(t).forEach(([c,i])=>r(c,i,!1)),Object.entries(n).forEach(([c,i])=>r(c,i,!0))}function Bi(e){const t=new WeakMap;return(n,...r)=>{const c=t.get(n);if(c!==void 0)return c;const i=e(n,...r);return t.set(n,i),i}}const Ln=BigInt(0),gn=BigInt(1),Br=BigInt(2),yu=BigInt(3),wu=BigInt(4),_u=BigInt(5),eh=BigInt(7),Eu=BigInt(8),th=BigInt(9),Ru=BigInt(16);function en(e,t){const n=e%t;return n>=Ln?n:t+n}function Kt(e,t,n){let r=e;for(;t-- >Ln;)r*=r,r%=n;return r}function bu(e,t){if(e===Ln)throw new Error("invert: expected non-zero number");if(t<=Ln)throw new Error("invert: expected positive modulus, got "+t);let n=en(e,t),r=t,c=Ln,i=gn;for(;n!==Ln;){const v=r/n,d=r%n,y=c-i*v;r=n,n=d,c=i,i=y}if(r!==gn)throw new Error("invert: does not exist");return en(c,t)}function ea(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function Au(e,t){const n=(e.ORDER+gn)/wu,r=e.pow(t,n);return ea(e,r,t),r}function nh(e,t){const n=(e.ORDER-_u)/Eu,r=e.mul(t,Br),c=e.pow(r,n),i=e.mul(t,c),l=e.mul(e.mul(i,Br),c),v=e.mul(i,e.sub(l,e.ONE));return ea(e,v,t),v}function rh(e){const t=kr(e),n=Su(e),r=n(t,t.neg(t.ONE)),c=n(t,r),i=n(t,t.neg(r)),l=(e+eh)/Ru;return(v,d)=>{let y=v.pow(d,l),A=v.mul(y,r);const O=v.mul(y,c),S=v.mul(y,i),I=v.eql(v.sqr(A),d),k=v.eql(v.sqr(O),d);y=v.cmov(y,A,I),A=v.cmov(S,O,k);const C=v.eql(v.sqr(A),d),V=v.cmov(y,A,C);return ea(v,V,d),V}}function Su(e){if(e<yu)throw new Error("sqrt is not defined for small field");let t=e-gn,n=0;for(;t%Br===Ln;)t/=Br,n++;let r=Br;const c=kr(e);for(;Ou(c,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return Au;let i=c.pow(r,t);const l=(t+gn)/Br;return function(d,y){if(d.is0(y))return y;if(Ou(d,y)!==1)throw new Error("Cannot find square root");let A=n,O=d.mul(d.ONE,i),S=d.pow(y,t),I=d.pow(y,l);for(;!d.eql(S,d.ONE);){if(d.is0(S))return d.ZERO;let k=1,C=d.sqr(S);for(;!d.eql(C,d.ONE);)if(k++,C=d.sqr(C),k===A)throw new Error("Cannot find square root");const V=gn<<BigInt(A-k-1),j=d.pow(O,V);A=k,O=d.sqr(j),S=d.mul(S,O),I=d.mul(I,j)}return I}}function oh(e){return e%wu===yu?Au:e%Eu===_u?nh:e%Ru===th?rh(e):Su(e)}const ih=(e,t)=>(en(e,t)&gn)===gn,sh=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ah(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},n=sh.reduce((r,c)=>(r[c]="function",r),t);return Uo(e,n),e}function ch(e,t,n){if(n<Ln)throw new Error("invalid exponent, negatives unsupported");if(n===Ln)return e.ONE;if(n===gn)return t;let r=e.ONE,c=t;for(;n>Ln;)n&gn&&(r=e.mul(r,c)),c=e.sqr(c),n>>=gn;return r}function Iu(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),c=t.reduce((l,v,d)=>e.is0(v)?l:(r[d]=l,e.mul(l,v)),e.ONE),i=e.inv(c);return t.reduceRight((l,v,d)=>e.is0(v)?l:(r[d]=e.mul(l,r[d]),e.mul(l,v)),i),r}function Ou(e,t){const n=(e.ORDER-gn)/Br,r=e.pow(t,n),c=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),l=e.eql(r,e.neg(e.ONE));if(!c&&!i&&!l)throw new Error("invalid Legendre symbol result");return c?1:i?0:-1}function Nu(e,t){t!==void 0&&Ks(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function kr(e,t,n=!1,r={}){if(e<=Ln)throw new Error("invalid field: expected ORDER > 0, got "+e);let c,i,l=!1,v;if(typeof t=="object"&&t!=null){if(r.sqrt||n)throw new Error("cannot specify opts in two arguments");const S=t;S.BITS&&(c=S.BITS),S.sqrt&&(i=S.sqrt),typeof S.isLE=="boolean"&&(n=S.isLE),typeof S.modFromBytes=="boolean"&&(l=S.modFromBytes),v=S.allowedLengths}else typeof t=="number"&&(c=t),r.sqrt&&(i=r.sqrt);const{nBitLength:d,nByteLength:y}=Nu(e,c);if(y>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let A;const O=Object.freeze({ORDER:e,isLE:n,BITS:d,BYTES:y,MASK:Do(d),ZERO:Ln,ONE:gn,allowedLengths:v,create:S=>en(S,e),isValid:S=>{if(typeof S!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof S);return Ln<=S&&S<e},is0:S=>S===Ln,isValidNot0:S=>!O.is0(S)&&O.isValid(S),isOdd:S=>(S&gn)===gn,neg:S=>en(-S,e),eql:(S,I)=>S===I,sqr:S=>en(S*S,e),add:(S,I)=>en(S+I,e),sub:(S,I)=>en(S-I,e),mul:(S,I)=>en(S*I,e),pow:(S,I)=>ch(O,S,I),div:(S,I)=>en(S*bu(I,e),e),sqrN:S=>S*S,addN:(S,I)=>S+I,subN:(S,I)=>S-I,mulN:(S,I)=>S*I,inv:S=>bu(S,e),sqrt:i||(S=>(A||(A=oh(e)),A(O,S))),toBytes:S=>n?mu(S,y):Xs(S,y),fromBytes:(S,I=!0)=>{if(v){if(!v.includes(S.length)||S.length>y)throw new Error("Field.fromBytes: expected "+v+" bytes, got "+S.length);const C=new Uint8Array(y);C.set(S,n?0:C.length-S.length),S=C}if(S.length!==y)throw new Error("Field.fromBytes: expected "+y+" bytes, got "+S.length);let k=n?ko(S):Mi(S);if(l&&(k=en(k,e)),!I&&!O.isValid(k))throw new Error("invalid field element: outside of range 0..ORDER");return k},invertBatch:S=>Iu(O,S),cmov:(S,I,k)=>k?I:S});return Object.freeze(O)}function Tu(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function xu(e){const t=Tu(e);return t+Math.ceil(t/2)}function uh(e,t,n=!1){const r=e.length,c=Tu(t),i=xu(t);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const l=n?ko(e):Mi(e),v=en(l,t-gn)+gn;return n?mu(v,c):Xs(v,c)}const ro=BigInt(0),Dr=BigInt(1);function ki(e,t){const n=t.negate();return e?n:t}function Ur(e,t){const n=Iu(e.Fp,t.map(r=>r.Z));return t.map((r,c)=>e.fromAffine(r.toAffine(n[c])))}function Lu(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function ta(e,t){Lu(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),c=2**e,i=Do(e),l=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:c,shiftBy:l}}function Cu(e,t,n){const{windowSize:r,mask:c,maxNumber:i,shiftBy:l}=n;let v=Number(e&c),d=e>>l;v>r&&(v-=i,d+=Dr);const y=t*r,A=y+Math.abs(v)-1,O=v===0,S=v<0,I=t%2!==0;return{nextN:d,offset:A,isZero:O,isNeg:S,isNegF:I,offsetF:y}}function fh(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function lh(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const na=new WeakMap,Mu=new WeakMap;function ra(e){return Mu.get(e)||1}function Bu(e){if(e!==ro)throw new Error("invalid wNAF")}class ku{constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,r=this.ZERO){let c=t;for(;n>ro;)n&Dr&&(r=r.add(c)),c=c.double(),n>>=Dr;return r}precomputeWindow(t,n){const{windows:r,windowSize:c}=ta(n,this.bits),i=[];let l=t,v=l;for(let d=0;d<r;d++){v=l,i.push(v);for(let y=1;y<c;y++)v=v.add(l),i.push(v);l=v.double()}return i}wNAF(t,n,r){if(!this.Fn.isValid(r))throw new Error("invalid scalar");let c=this.ZERO,i=this.BASE;const l=ta(t,this.bits);for(let v=0;v<l.windows;v++){const{nextN:d,offset:y,isZero:A,isNeg:O,isNegF:S,offsetF:I}=Cu(r,v,l);r=d,A?i=i.add(ki(S,n[I])):c=c.add(ki(O,n[y]))}return Bu(r),{p:c,f:i}}wNAFUnsafe(t,n,r,c=this.ZERO){const i=ta(t,this.bits);for(let l=0;l<i.windows&&r!==ro;l++){const{nextN:v,offset:d,isZero:y,isNeg:A}=Cu(r,l,i);if(r=v,!y){const O=n[d];c=c.add(A?O.negate():O)}}return Bu(r),c}getPrecomputes(t,n,r){let c=na.get(n);return c||(c=this.precomputeWindow(n,t),t!==1&&(typeof r=="function"&&(c=r(c)),na.set(n,c))),c}cached(t,n,r){const c=ra(t);return this.wNAF(c,this.getPrecomputes(c,t,r),n)}unsafe(t,n,r,c){const i=ra(t);return i===1?this._unsafeLadder(t,n,c):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),n,c)}createCache(t,n){Lu(n,this.bits),Mu.set(t,n),na.delete(t)}hasCache(t){return ra(t)!==1}}function dh(e,t,n,r){let c=t,i=e.ZERO,l=e.ZERO;for(;n>ro||r>ro;)n&Dr&&(i=i.add(c)),r&Dr&&(l=l.add(c)),c=c.double(),n>>=Dr,r>>=Dr;return{p1:i,p2:l}}function Du(e,t,n,r){fh(n,e),lh(r,t);const c=n.length,i=r.length;if(c!==i)throw new Error("arrays of points and scalars must have equal length");const l=e.ZERO,v=vu(BigInt(c));let d=1;v>12?d=v-3:v>4?d=v-2:v>0&&(d=2);const y=Do(d),A=new Array(Number(y)+1).fill(l),O=Math.floor((t.BITS-1)/d)*d;let S=l;for(let I=O;I>=0;I-=d){A.fill(l);for(let C=0;C<i;C++){const V=r[C],j=Number(V>>BigInt(I)&y);A[j]=A[j].add(n[C])}let k=l;for(let C=A.length-1,V=l;C>0;C--)V=V.add(A[C]),k=k.add(V);if(S=S.add(k),I!==0)for(let C=0;C<d;C++)S=S.double()}return S}function Uu(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return ah(t),t}else return kr(e,{isLE:n})}function Pu(e,t,n={},r){if(r===void 0&&(r=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const d of["p","n","h"]){const y=t[d];if(!(typeof y=="bigint"&&y>ro))throw new Error(`CURVE.${d} must be positive bigint`)}const c=Uu(t.p,n.Fp,r),i=Uu(t.n,n.Fn,r),v=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(const d of v)if(!c.isValid(t[d]))throw new Error(`CURVE.${d} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:c,Fn:i}}const _r=BigInt(0),ln=BigInt(1),oa=BigInt(2),hh=BigInt(8);function ph(e,t,n,r){const c=e.sqr(n),i=e.sqr(r),l=e.add(e.mul(t.a,c),i),v=e.add(e.ONE,e.mul(t.d,e.mul(c,i)));return e.eql(l,v)}function mh(e,t={}){const n=Pu("edwards",e,t,t.FpFnLE),{Fp:r,Fn:c}=n;let i=n.CURVE;const{h:l}=i;Uo(t,{},{uvRatio:"function"});const v=oa<<BigInt(c.BYTES*8)-ln,d=V=>r.create(V),y=t.uvRatio||((V,j)=>{try{return{isValid:!0,value:r.sqrt(r.div(V,j))}}catch{return{isValid:!1,value:_r}}});if(!ph(r,i,i.Gx,i.Gy))throw new Error("bad curve params: generator point");function A(V,j,J=!1){const W=J?ln:_r;return Qs("coordinate "+V,j,W,v),j}function O(V){if(!(V instanceof k))throw new Error("ExtendedPoint expected")}const S=Bi((V,j)=>{const{X:J,Y:W,Z:se}=V,ue=V.is0();j==null&&(j=ue?hh:r.inv(se));const oe=d(J*j),Ee=d(W*j),Re=r.mul(se,j);if(ue)return{x:_r,y:ln};if(Re!==ln)throw new Error("invZ was invalid");return{x:oe,y:Ee}}),I=Bi(V=>{const{a:j,d:J}=i;if(V.is0())throw new Error("bad point: ZERO");const{X:W,Y:se,Z:ue,T:oe}=V,Ee=d(W*W),Re=d(se*se),ne=d(ue*ue),ie=d(ne*ne),de=d(Ee*j),ge=d(ne*d(de+Re)),D=d(ie+d(J*d(Ee*Re)));if(ge!==D)throw new Error("bad point: equation left != right (1)");const f=d(W*se),R=d(ue*oe);if(f!==R)throw new Error("bad point: equation left != right (2)");return!0});class k{constructor(j,J,W,se){this.X=A("x",j),this.Y=A("y",J),this.Z=A("z",W,!0),this.T=A("t",se),Object.freeze(this)}static CURVE(){return i}static fromAffine(j){if(j instanceof k)throw new Error("extended point not allowed");const{x:J,y:W}=j||{};return A("x",J),A("y",W),new k(J,W,ln,d(J*W))}static fromBytes(j,J=!1){const W=r.BYTES,{a:se,d:ue}=i;j=gu(Wn(j,W,"point")),Mr(J,"zip215");const oe=gu(j),Ee=j[W-1];oe[W-1]=Ee&-129;const Re=ko(oe),ne=J?v:r.ORDER;Qs("point.y",Re,_r,ne);const ie=d(Re*Re),de=d(ie-ln),ge=d(ue*ie-se);let{isValid:D,value:f}=y(de,ge);if(!D)throw new Error("bad point: invalid y coordinate");const R=(f&ln)===ln,B=(Ee&128)!==0;if(!J&&f===_r&&B)throw new Error("bad point: x=0 and x_0=1");return B!==R&&(f=d(-f)),k.fromAffine({x:f,y:Re})}static fromHex(j,J=!1){return k.fromBytes(jt("point",j),J)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(j=8,J=!0){return C.createCache(this,j),J||this.multiply(oa),this}assertValidity(){I(this)}equals(j){O(j);const{X:J,Y:W,Z:se}=this,{X:ue,Y:oe,Z:Ee}=j,Re=d(J*Ee),ne=d(ue*se),ie=d(W*Ee),de=d(oe*se);return Re===ne&&ie===de}is0(){return this.equals(k.ZERO)}negate(){return new k(d(-this.X),this.Y,this.Z,d(-this.T))}double(){const{a:j}=i,{X:J,Y:W,Z:se}=this,ue=d(J*J),oe=d(W*W),Ee=d(oa*d(se*se)),Re=d(j*ue),ne=J+W,ie=d(d(ne*ne)-ue-oe),de=Re+oe,ge=de-Ee,D=Re-oe,f=d(ie*ge),R=d(de*D),B=d(ie*D),$=d(ge*de);return new k(f,R,$,B)}add(j){O(j);const{a:J,d:W}=i,{X:se,Y:ue,Z:oe,T:Ee}=this,{X:Re,Y:ne,Z:ie,T:de}=j,ge=d(se*Re),D=d(ue*ne),f=d(Ee*W*de),R=d(oe*ie),B=d((se+ue)*(Re+ne)-ge-D),$=R-f,Z=R+f,ee=d(D-J*ge),ae=d(B*$),K=d(Z*ee),g=d(B*ee),_=d($*Z);return new k(ae,K,_,g)}subtract(j){return this.add(j.negate())}multiply(j){if(!c.isValidNot0(j))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:J,f:W}=C.cached(this,j,se=>Ur(k,se));return Ur(k,[J,W])[0]}multiplyUnsafe(j,J=k.ZERO){if(!c.isValid(j))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return j===_r?k.ZERO:this.is0()||j===ln?this:C.unsafe(this,j,W=>Ur(k,W),J)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return C.unsafe(this,i.n).is0()}toAffine(j){return S(this,j)}clearCofactor(){return l===ln?this:this.multiplyUnsafe(l)}toBytes(){const{x:j,y:J}=this.toAffine(),W=r.toBytes(J);return W[W.length-1]|=j&ln?128:0,W}toHex(){return Cr(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(j){return Ur(k,j)}static msm(j,J){return Du(k,c,j,J)}_setWindowSize(j){this.precompute(j)}toRawBytes(){return this.toBytes()}}k.BASE=new k(i.Gx,i.Gy,ln,d(i.Gx*i.Gy)),k.ZERO=new k(_r,ln,ln,_r),k.Fp=r,k.Fn=c;const C=new ku(k,c.BITS);return k.BASE.precompute(8),k}function gh(e,t,n={}){if(typeof t!="function")throw new Error('"hash" function param is required');Uo(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:c,Fp:i,Fn:l}=e,v=n.randomBytes||Zs,d=n.adjustScalarBytes||(ne=>ne),y=n.domain||((ne,ie,de)=>{if(Mr(de,"phflag"),ie.length||de)throw new Error("Contexts/pre-hash are not supported");return ne});function A(ne){return l.create(ko(ne))}function O(ne){const ie=W.secretKey;ne=jt("private key",ne,ie);const de=jt("hashed private key",t(ne),2*ie),ge=d(de.slice(0,ie)),D=de.slice(ie,2*ie),f=A(ge);return{head:ge,prefix:D,scalar:f}}function S(ne){const{head:ie,prefix:de,scalar:ge}=O(ne),D=c.multiply(ge),f=D.toBytes();return{head:ie,prefix:de,scalar:ge,point:D,pointBytes:f}}function I(ne){return S(ne).pointBytes}function k(ne=Uint8Array.of(),...ie){const de=Xn(...ie);return A(t(y(de,jt("context",ne),!!r)))}function C(ne,ie,de={}){ne=jt("message",ne),r&&(ne=r(ne));const{prefix:ge,scalar:D,pointBytes:f}=S(ie),R=k(de.context,ge,ne),B=c.multiply(R).toBytes(),$=k(de.context,B,f,ne),Z=l.create(R+$*D);if(!l.isValid(Z))throw new Error("sign failed: invalid s");const ee=Xn(B,l.toBytes(Z));return Wn(ee,W.signature,"result")}const V={zip215:!0};function j(ne,ie,de,ge=V){const{context:D,zip215:f}=ge,R=W.signature;ne=jt("signature",ne,R),ie=jt("message",ie),de=jt("publicKey",de,W.publicKey),f!==void 0&&Mr(f,"zip215"),r&&(ie=r(ie));const B=R/2,$=ne.subarray(0,B),Z=ko(ne.subarray(B,R));let ee,ae,K;try{ee=e.fromBytes(de,f),ae=e.fromBytes($,f),K=c.multiplyUnsafe(Z)}catch{return!1}if(!f&&ee.isSmallOrder())return!1;const g=k(D,ae.toBytes(),ee.toBytes(),ie);return ae.add(ee.multiplyUnsafe(g)).subtract(K).clearCofactor().is0()}const J=i.BYTES,W={secretKey:J,publicKey:J,signature:2*J,seed:J};function se(ne=v(W.seed)){return Wn(ne,W.seed,"seed")}function ue(ne){const ie=Re.randomSecretKey(ne);return{secretKey:ie,publicKey:I(ie)}}function oe(ne){return Bo(ne)&&ne.length===l.BYTES}function Ee(ne,ie){try{return!!e.fromBytes(ne,ie)}catch{return!1}}const Re={getExtendedPublicKey:S,randomSecretKey:se,isValidSecretKey:oe,isValidPublicKey:Ee,toMontgomery(ne){const{y:ie}=e.fromBytes(ne),de=W.publicKey,ge=de===32;if(!ge&&de!==57)throw new Error("only defined for 25519 and 448");const D=ge?i.div(ln+ie,ln-ie):i.div(ie-ln,ie+ln);return i.toBytes(D)},toMontgomerySecret(ne){const ie=W.secretKey;Wn(ne,ie);const de=t(ne.subarray(0,ie));return d(de).subarray(0,ie)},randomPrivateKey:se,precompute(ne=8,ie=e.BASE){return ie.precompute(ne,!1)}};return Object.freeze({keygen:ue,getPublicKey:I,sign:C,verify:j,utils:Re,Point:e,lengths:W})}function vh(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=kr(t.n,e.nBitLength,!0),c={Fp:n,Fn:r,uvRatio:e.uvRatio},i={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:c,hash:e.hash,eddsaOpts:i}}function yh(e,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}function wh(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:c}=vh(e),i=mh(t,n),l=gh(i,r,c);return yh(e,l)}const _h=BigInt(1),Fu=BigInt(2);BigInt(3);const Eh=BigInt(5),Rh=BigInt(8),ia=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),Vu={p:ia,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:Rh,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function bh(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),c=BigInt(80),i=ia,v=e*e%i*e%i,d=Kt(v,Fu,i)*v%i,y=Kt(d,_h,i)*e%i,A=Kt(y,Eh,i)*y%i,O=Kt(A,t,i)*A%i,S=Kt(O,n,i)*O%i,I=Kt(S,r,i)*S%i,k=Kt(I,c,i)*I%i,C=Kt(k,c,i)*I%i,V=Kt(C,t,i)*A%i;return{pow_p_5_8:Kt(V,Fu,i)*e%i,b2:v}}function Ah(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const Gu=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function Sh(e,t){const n=ia,r=en(t*t*t,n),c=en(r*r*t,n),i=bh(e*c).pow_p_5_8;let l=en(e*r*i,n);const v=en(t*l*l,n),d=l,y=en(l*Gu,n),A=v===e,O=v===en(-e,n),S=v===en(-e*Gu,n);return A&&(l=d),(O||S)&&(l=y),ih(l,n)&&(l=en(-l,n)),{isValid:A||O,value:l}}const Ih=kr(Vu.p,{isLE:!0}),Oh={...Vu,Fp:Ih,hash:Xd,adjustScalarBytes:Ah,uvRatio:Sh},Po=wh(Oh);var Di={exports:{}};const Nh=Hs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Th=Di.exports,Hu;function $u(){return Hu||(Hu=1,(function(e){(function(t,n){function r(D,f){if(!D)throw new Error(f||"Assertion failed")}function c(D,f){D.super_=f;var R=function(){};R.prototype=f.prototype,D.prototype=new R,D.prototype.constructor=D}function i(D,f,R){if(i.isBN(D))return D;this.negative=0,this.words=null,this.length=0,this.red=null,D!==null&&((f==="le"||f==="be")&&(R=f,f=10),this._init(D||0,f||10,R||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=Nh.Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,R){return f.cmp(R)>0?f:R},i.min=function(f,R){return f.cmp(R)<0?f:R},i.prototype._init=function(f,R,B){if(typeof f=="number")return this._initNumber(f,R,B);if(typeof f=="object")return this._initArray(f,R,B);R==="hex"&&(R=16),r(R===(R|0)&&R>=2&&R<=36),f=f.toString().replace(/\s+/g,"");var $=0;f[0]==="-"&&($++,this.negative=1),$<f.length&&(R===16?this._parseHex(f,$,B):(this._parseBase(f,R,$),B==="le"&&this._initArray(this.toArray(),R,B)))},i.prototype._initNumber=function(f,R,B){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):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),B==="le"&&this._initArray(this.toArray(),R,B)},i.prototype._initArray=function(f,R,B){if(r(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 $=0;$<this.length;$++)this.words[$]=0;var Z,ee,ae=0;if(B==="be")for($=f.length-1,Z=0;$>=0;$-=3)ee=f[$]|f[$-1]<<8|f[$-2]<<16,this.words[Z]|=ee<<ae&67108863,this.words[Z+1]=ee>>>26-ae&67108863,ae+=24,ae>=26&&(ae-=26,Z++);else if(B==="le")for($=0,Z=0;$<f.length;$+=3)ee=f[$]|f[$+1]<<8|f[$+2]<<16,this.words[Z]|=ee<<ae&67108863,this.words[Z+1]=ee>>>26-ae&67108863,ae+=24,ae>=26&&(ae-=26,Z++);return this._strip()};function v(D,f){var R=D.charCodeAt(f);if(R>=48&&R<=57)return R-48;if(R>=65&&R<=70)return R-55;if(R>=97&&R<=102)return R-87;r(!1,"Invalid character in "+D)}function d(D,f,R){var B=v(D,R);return R-1>=f&&(B|=v(D,R-1)<<4),B}i.prototype._parseHex=function(f,R,B){this.length=Math.ceil((f.length-R)/6),this.words=new Array(this.length);for(var $=0;$<this.length;$++)this.words[$]=0;var Z=0,ee=0,ae;if(B==="be")for($=f.length-1;$>=R;$-=2)ae=d(f,R,$)<<Z,this.words[ee]|=ae&67108863,Z>=18?(Z-=18,ee+=1,this.words[ee]|=ae>>>26):Z+=8;else{var K=f.length-R;for($=K%2===0?R+1:R;$<f.length;$+=2)ae=d(f,R,$)<<Z,this.words[ee]|=ae&67108863,Z>=18?(Z-=18,ee+=1,this.words[ee]|=ae>>>26):Z+=8}this._strip()};function y(D,f,R,B){for(var $=0,Z=0,ee=Math.min(D.length,R),ae=f;ae<ee;ae++){var K=D.charCodeAt(ae)-48;$*=B,K>=49?Z=K-49+10:K>=17?Z=K-17+10:Z=K,r(K>=0&&Z<B,"Invalid character"),$+=Z}return $}i.prototype._parseBase=function(f,R,B){this.words=[0],this.length=1;for(var $=0,Z=1;Z<=67108863;Z*=R)$++;$--,Z=Z/R|0;for(var ee=f.length-B,ae=ee%$,K=Math.min(ee,ee-ae)+B,g=0,_=B;_<K;_+=$)g=y(f,_,_+$,R),this.imuln(Z),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g);if(ae!==0){var H=1;for(g=y(f,_,f.length,R),_=0;_<ae;_++)H*=R;this.imuln(H),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var R=0;R<this.length;R++)f.words[R]=this.words[R];f.length=this.length,f.negative=this.negative,f.red=this.red};function A(D,f){D.words=f.words,D.length=f.length,D.negative=f.negative,D.red=f.red}if(i.prototype._move=function(f){A(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)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")]=O}catch{i.prototype.inspect=O}else i.prototype.inspect=O;function O(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var S=["","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"],I=[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],k=[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(f,R){f=f||10,R=R|0||1;var B;if(f===16||f==="hex"){B="";for(var $=0,Z=0,ee=0;ee<this.length;ee++){var ae=this.words[ee],K=((ae<<$|Z)&16777215).toString(16);Z=ae>>>24-$&16777215,$+=2,$>=26&&($-=26,ee--),Z!==0||ee!==this.length-1?B=S[6-K.length]+K+B:B=K+B}for(Z!==0&&(B=Z.toString(16)+B);B.length%R!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(f===(f|0)&&f>=2&&f<=36){var g=I[f],_=k[f];B="";var H=this.clone();for(H.negative=0;!H.isZero();){var X=H.modrn(_).toString(f);H=H.idivn(_),H.isZero()?B=X+B:B=S[g-X.length]+X+B}for(this.isZero()&&(B="0"+B);B.length%R!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}r(!1,"Base should be between 2 and 36")},i.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&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},l&&(i.prototype.toBuffer=function(f,R){return this.toArrayLike(l,f,R)}),i.prototype.toArray=function(f,R){return this.toArrayLike(Array,f,R)};var C=function(f,R){return f.allocUnsafe?f.allocUnsafe(R):new f(R)};i.prototype.toArrayLike=function(f,R,B){this._strip();var $=this.byteLength(),Z=B||Math.max(1,$);r($<=Z,"byte array longer than desired length"),r(Z>0,"Requested array length <= 0");var ee=C(f,Z),ae=R==="le"?"LE":"BE";return this["_toArrayLike"+ae](ee,$),ee},i.prototype._toArrayLikeLE=function(f,R){for(var B=0,$=0,Z=0,ee=0;Z<this.length;Z++){var ae=this.words[Z]<<ee|$;f[B++]=ae&255,B<f.length&&(f[B++]=ae>>8&255),B<f.length&&(f[B++]=ae>>16&255),ee===6?(B<f.length&&(f[B++]=ae>>24&255),$=0,ee=0):($=ae>>>24,ee+=2)}if(B<f.length)for(f[B++]=$;B<f.length;)f[B++]=0},i.prototype._toArrayLikeBE=function(f,R){for(var B=f.length-1,$=0,Z=0,ee=0;Z<this.length;Z++){var ae=this.words[Z]<<ee|$;f[B--]=ae&255,B>=0&&(f[B--]=ae>>8&255),B>=0&&(f[B--]=ae>>16&255),ee===6?(B>=0&&(f[B--]=ae>>24&255),$=0,ee=0):($=ae>>>24,ee+=2)}if(B>=0)for(f[B--]=$;B>=0;)f[B--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var R=f,B=0;return R>=4096&&(B+=13,R>>>=13),R>=64&&(B+=7,R>>>=7),R>=8&&(B+=4,R>>>=4),R>=2&&(B+=2,R>>>=2),B+R},i.prototype._zeroBits=function(f){if(f===0)return 26;var R=f,B=0;return(R&8191)===0&&(B+=13,R>>>=13),(R&127)===0&&(B+=7,R>>>=7),(R&15)===0&&(B+=4,R>>>=4),(R&3)===0&&(B+=2,R>>>=2),(R&1)===0&&B++,B},i.prototype.bitLength=function(){var f=this.words[this.length-1],R=this._countBits(f);return(this.length-1)*26+R};function V(D){for(var f=new Array(D.bitLength()),R=0;R<f.length;R++){var B=R/26|0,$=R%26;f[R]=D.words[B]>>>$&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,R=0;R<this.length;R++){var B=this._zeroBits(this.words[R]);if(f+=B,B!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).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(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var R=0;R<f.length;R++)this.words[R]=this.words[R]|f.words[R];return this._strip()},i.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var R;this.length>f.length?R=f:R=this;for(var B=0;B<R.length;B++)this.words[B]=this.words[B]&f.words[B];return this.length=R.length,this._strip()},i.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var R,B;this.length>f.length?(R=this,B=f):(R=f,B=this);for(var $=0;$<B.length;$++)this.words[$]=R.words[$]^B.words[$];if(this!==R)for(;$<R.length;$++)this.words[$]=R.words[$];return this.length=R.length,this._strip()},i.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var R=Math.ceil(f/26)|0,B=f%26;this._expand(R),B>0&&R--;for(var $=0;$<R;$++)this.words[$]=~this.words[$]&67108863;for(B>0&&(this.words[$]=~this.words[$]&67108863>>26-B,$++);$<this.length;$++)this.words[$]=0;return this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,R){r(typeof f=="number"&&f>=0);var B=f/26|0,$=f%26;return this._expand(B+1),R?this.words[B]=this.words[B]|1<<$:this.words[B]=this.words[B]&~(1<<$),this._strip()},i.prototype.iadd=function(f){var R;if(this.negative!==0&&f.negative===0)return this.negative=0,R=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,R=this.isub(f),f.negative=1,R._normSign();var B,$;this.length>f.length?(B=this,$=f):(B=f,$=this);for(var Z=0,ee=0;ee<$.length;ee++)R=(B.words[ee]|0)+($.words[ee]|0)+Z,this.words[ee]=R&67108863,Z=R>>>26;for(;Z!==0&&ee<B.length;ee++)R=(B.words[ee]|0)+Z,this.words[ee]=R&67108863,Z=R>>>26;if(this.length=B.length,Z!==0)this.words[this.length]=Z,this.length++;else if(B!==this)for(;ee<B.length;ee++)this.words[ee]=B.words[ee];return this},i.prototype.add=function(f){var R;return f.negative!==0&&this.negative===0?(f.negative=0,R=this.sub(f),f.negative^=1,R):f.negative===0&&this.negative!==0?(this.negative=0,R=f.sub(this),this.negative=1,R):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var R=this.iadd(f);return f.negative=1,R._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var B=this.cmp(f);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var $,Z;B>0?($=this,Z=f):($=f,Z=this);for(var ee=0,ae=0;ae<Z.length;ae++)R=($.words[ae]|0)-(Z.words[ae]|0)+ee,ee=R>>26,this.words[ae]=R&67108863;for(;ee!==0&&ae<$.length;ae++)R=($.words[ae]|0)+ee,ee=R>>26,this.words[ae]=R&67108863;if(ee===0&&ae<$.length&&$!==this)for(;ae<$.length;ae++)this.words[ae]=$.words[ae];return this.length=Math.max(this.length,ae),$!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function j(D,f,R){R.negative=f.negative^D.negative;var B=D.length+f.length|0;R.length=B,B=B-1|0;var $=D.words[0]|0,Z=f.words[0]|0,ee=$*Z,ae=ee&67108863,K=ee/67108864|0;R.words[0]=ae;for(var g=1;g<B;g++){for(var _=K>>>26,H=K&67108863,X=Math.min(g,f.length-1),me=Math.max(0,g-D.length+1);me<=X;me++){var ye=g-me|0;$=D.words[ye]|0,Z=f.words[me]|0,ee=$*Z+H,_+=ee/67108864|0,H=ee&67108863}R.words[g]=H|0,K=_|0}return K!==0?R.words[g]=K|0:R.length--,R._strip()}var J=function(f,R,B){var $=f.words,Z=R.words,ee=B.words,ae=0,K,g,_,H=$[0]|0,X=H&8191,me=H>>>13,ye=$[1]|0,Fe=ye&8191,We=ye>>>13,st=$[2]|0,at=st&8191,ct=st>>>13,Et=$[3]|0,pt=Et&8191,Rt=Et>>>13,Pt=$[4]|0,wt=Pt&8191,w=Pt>>>13,x=$[5]|0,M=x&8191,te=x>>>13,fe=$[6]|0,pe=fe&8191,Me=fe>>>13,tt=$[7]|0,Qe=tt&8191,F=tt>>>13,E=$[8]|0,b=E&8191,q=E>>>13,ve=$[9]|0,be=ve&8191,L=ve>>>13,re=Z[0]|0,Q=re&8191,we=re>>>13,Se=Z[1]|0,Ne=Se&8191,Pe=Se>>>13,Ge=Z[2]|0,ce=Ge&8191,je=Ge>>>13,ze=Z[3]|0,Xe=ze&8191,et=ze>>>13,ut=Z[4]|0,ot=ut&8191,rt=ut>>>13,$t=Z[5]|0,ht=$t&8191,gt=$t>>>13,tn=Z[6]|0,It=tn&8191,Nt=tn>>>13,lr=Z[7]|0,kt=lr&8191,Mt=lr>>>13,$r=Z[8]|0,zt=$r&8191,Zt=$r>>>13,ps=Z[9]|0,Yt=ps&8191,qt=ps>>>13;B.negative=f.negative^R.negative,B.length=19,K=Math.imul(X,Q),g=Math.imul(X,we),g=g+Math.imul(me,Q)|0,_=Math.imul(me,we);var Xo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Xo>>>26)|0,Xo&=67108863,K=Math.imul(Fe,Q),g=Math.imul(Fe,we),g=g+Math.imul(We,Q)|0,_=Math.imul(We,we),K=K+Math.imul(X,Ne)|0,g=g+Math.imul(X,Pe)|0,g=g+Math.imul(me,Ne)|0,_=_+Math.imul(me,Pe)|0;var Jo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,K=Math.imul(at,Q),g=Math.imul(at,we),g=g+Math.imul(ct,Q)|0,_=Math.imul(ct,we),K=K+Math.imul(Fe,Ne)|0,g=g+Math.imul(Fe,Pe)|0,g=g+Math.imul(We,Ne)|0,_=_+Math.imul(We,Pe)|0,K=K+Math.imul(X,ce)|0,g=g+Math.imul(X,je)|0,g=g+Math.imul(me,ce)|0,_=_+Math.imul(me,je)|0;var Qo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Qo>>>26)|0,Qo&=67108863,K=Math.imul(pt,Q),g=Math.imul(pt,we),g=g+Math.imul(Rt,Q)|0,_=Math.imul(Rt,we),K=K+Math.imul(at,Ne)|0,g=g+Math.imul(at,Pe)|0,g=g+Math.imul(ct,Ne)|0,_=_+Math.imul(ct,Pe)|0,K=K+Math.imul(Fe,ce)|0,g=g+Math.imul(Fe,je)|0,g=g+Math.imul(We,ce)|0,_=_+Math.imul(We,je)|0,K=K+Math.imul(X,Xe)|0,g=g+Math.imul(X,et)|0,g=g+Math.imul(me,Xe)|0,_=_+Math.imul(me,et)|0;var ei=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ei>>>26)|0,ei&=67108863,K=Math.imul(wt,Q),g=Math.imul(wt,we),g=g+Math.imul(w,Q)|0,_=Math.imul(w,we),K=K+Math.imul(pt,Ne)|0,g=g+Math.imul(pt,Pe)|0,g=g+Math.imul(Rt,Ne)|0,_=_+Math.imul(Rt,Pe)|0,K=K+Math.imul(at,ce)|0,g=g+Math.imul(at,je)|0,g=g+Math.imul(ct,ce)|0,_=_+Math.imul(ct,je)|0,K=K+Math.imul(Fe,Xe)|0,g=g+Math.imul(Fe,et)|0,g=g+Math.imul(We,Xe)|0,_=_+Math.imul(We,et)|0,K=K+Math.imul(X,ot)|0,g=g+Math.imul(X,rt)|0,g=g+Math.imul(me,ot)|0,_=_+Math.imul(me,rt)|0;var dn=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(dn>>>26)|0,dn&=67108863,K=Math.imul(M,Q),g=Math.imul(M,we),g=g+Math.imul(te,Q)|0,_=Math.imul(te,we),K=K+Math.imul(wt,Ne)|0,g=g+Math.imul(wt,Pe)|0,g=g+Math.imul(w,Ne)|0,_=_+Math.imul(w,Pe)|0,K=K+Math.imul(pt,ce)|0,g=g+Math.imul(pt,je)|0,g=g+Math.imul(Rt,ce)|0,_=_+Math.imul(Rt,je)|0,K=K+Math.imul(at,Xe)|0,g=g+Math.imul(at,et)|0,g=g+Math.imul(ct,Xe)|0,_=_+Math.imul(ct,et)|0,K=K+Math.imul(Fe,ot)|0,g=g+Math.imul(Fe,rt)|0,g=g+Math.imul(We,ot)|0,_=_+Math.imul(We,rt)|0,K=K+Math.imul(X,ht)|0,g=g+Math.imul(X,gt)|0,g=g+Math.imul(me,ht)|0,_=_+Math.imul(me,gt)|0;var ti=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ti>>>26)|0,ti&=67108863,K=Math.imul(pe,Q),g=Math.imul(pe,we),g=g+Math.imul(Me,Q)|0,_=Math.imul(Me,we),K=K+Math.imul(M,Ne)|0,g=g+Math.imul(M,Pe)|0,g=g+Math.imul(te,Ne)|0,_=_+Math.imul(te,Pe)|0,K=K+Math.imul(wt,ce)|0,g=g+Math.imul(wt,je)|0,g=g+Math.imul(w,ce)|0,_=_+Math.imul(w,je)|0,K=K+Math.imul(pt,Xe)|0,g=g+Math.imul(pt,et)|0,g=g+Math.imul(Rt,Xe)|0,_=_+Math.imul(Rt,et)|0,K=K+Math.imul(at,ot)|0,g=g+Math.imul(at,rt)|0,g=g+Math.imul(ct,ot)|0,_=_+Math.imul(ct,rt)|0,K=K+Math.imul(Fe,ht)|0,g=g+Math.imul(Fe,gt)|0,g=g+Math.imul(We,ht)|0,_=_+Math.imul(We,gt)|0,K=K+Math.imul(X,It)|0,g=g+Math.imul(X,Nt)|0,g=g+Math.imul(me,It)|0,_=_+Math.imul(me,Nt)|0;var ni=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ni>>>26)|0,ni&=67108863,K=Math.imul(Qe,Q),g=Math.imul(Qe,we),g=g+Math.imul(F,Q)|0,_=Math.imul(F,we),K=K+Math.imul(pe,Ne)|0,g=g+Math.imul(pe,Pe)|0,g=g+Math.imul(Me,Ne)|0,_=_+Math.imul(Me,Pe)|0,K=K+Math.imul(M,ce)|0,g=g+Math.imul(M,je)|0,g=g+Math.imul(te,ce)|0,_=_+Math.imul(te,je)|0,K=K+Math.imul(wt,Xe)|0,g=g+Math.imul(wt,et)|0,g=g+Math.imul(w,Xe)|0,_=_+Math.imul(w,et)|0,K=K+Math.imul(pt,ot)|0,g=g+Math.imul(pt,rt)|0,g=g+Math.imul(Rt,ot)|0,_=_+Math.imul(Rt,rt)|0,K=K+Math.imul(at,ht)|0,g=g+Math.imul(at,gt)|0,g=g+Math.imul(ct,ht)|0,_=_+Math.imul(ct,gt)|0,K=K+Math.imul(Fe,It)|0,g=g+Math.imul(Fe,Nt)|0,g=g+Math.imul(We,It)|0,_=_+Math.imul(We,Nt)|0,K=K+Math.imul(X,kt)|0,g=g+Math.imul(X,Mt)|0,g=g+Math.imul(me,kt)|0,_=_+Math.imul(me,Mt)|0;var ri=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ri>>>26)|0,ri&=67108863,K=Math.imul(b,Q),g=Math.imul(b,we),g=g+Math.imul(q,Q)|0,_=Math.imul(q,we),K=K+Math.imul(Qe,Ne)|0,g=g+Math.imul(Qe,Pe)|0,g=g+Math.imul(F,Ne)|0,_=_+Math.imul(F,Pe)|0,K=K+Math.imul(pe,ce)|0,g=g+Math.imul(pe,je)|0,g=g+Math.imul(Me,ce)|0,_=_+Math.imul(Me,je)|0,K=K+Math.imul(M,Xe)|0,g=g+Math.imul(M,et)|0,g=g+Math.imul(te,Xe)|0,_=_+Math.imul(te,et)|0,K=K+Math.imul(wt,ot)|0,g=g+Math.imul(wt,rt)|0,g=g+Math.imul(w,ot)|0,_=_+Math.imul(w,rt)|0,K=K+Math.imul(pt,ht)|0,g=g+Math.imul(pt,gt)|0,g=g+Math.imul(Rt,ht)|0,_=_+Math.imul(Rt,gt)|0,K=K+Math.imul(at,It)|0,g=g+Math.imul(at,Nt)|0,g=g+Math.imul(ct,It)|0,_=_+Math.imul(ct,Nt)|0,K=K+Math.imul(Fe,kt)|0,g=g+Math.imul(Fe,Mt)|0,g=g+Math.imul(We,kt)|0,_=_+Math.imul(We,Mt)|0,K=K+Math.imul(X,zt)|0,g=g+Math.imul(X,Zt)|0,g=g+Math.imul(me,zt)|0,_=_+Math.imul(me,Zt)|0;var oi=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(oi>>>26)|0,oi&=67108863,K=Math.imul(be,Q),g=Math.imul(be,we),g=g+Math.imul(L,Q)|0,_=Math.imul(L,we),K=K+Math.imul(b,Ne)|0,g=g+Math.imul(b,Pe)|0,g=g+Math.imul(q,Ne)|0,_=_+Math.imul(q,Pe)|0,K=K+Math.imul(Qe,ce)|0,g=g+Math.imul(Qe,je)|0,g=g+Math.imul(F,ce)|0,_=_+Math.imul(F,je)|0,K=K+Math.imul(pe,Xe)|0,g=g+Math.imul(pe,et)|0,g=g+Math.imul(Me,Xe)|0,_=_+Math.imul(Me,et)|0,K=K+Math.imul(M,ot)|0,g=g+Math.imul(M,rt)|0,g=g+Math.imul(te,ot)|0,_=_+Math.imul(te,rt)|0,K=K+Math.imul(wt,ht)|0,g=g+Math.imul(wt,gt)|0,g=g+Math.imul(w,ht)|0,_=_+Math.imul(w,gt)|0,K=K+Math.imul(pt,It)|0,g=g+Math.imul(pt,Nt)|0,g=g+Math.imul(Rt,It)|0,_=_+Math.imul(Rt,Nt)|0,K=K+Math.imul(at,kt)|0,g=g+Math.imul(at,Mt)|0,g=g+Math.imul(ct,kt)|0,_=_+Math.imul(ct,Mt)|0,K=K+Math.imul(Fe,zt)|0,g=g+Math.imul(Fe,Zt)|0,g=g+Math.imul(We,zt)|0,_=_+Math.imul(We,Zt)|0,K=K+Math.imul(X,Yt)|0,g=g+Math.imul(X,qt)|0,g=g+Math.imul(me,Yt)|0,_=_+Math.imul(me,qt)|0;var ii=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ii>>>26)|0,ii&=67108863,K=Math.imul(be,Ne),g=Math.imul(be,Pe),g=g+Math.imul(L,Ne)|0,_=Math.imul(L,Pe),K=K+Math.imul(b,ce)|0,g=g+Math.imul(b,je)|0,g=g+Math.imul(q,ce)|0,_=_+Math.imul(q,je)|0,K=K+Math.imul(Qe,Xe)|0,g=g+Math.imul(Qe,et)|0,g=g+Math.imul(F,Xe)|0,_=_+Math.imul(F,et)|0,K=K+Math.imul(pe,ot)|0,g=g+Math.imul(pe,rt)|0,g=g+Math.imul(Me,ot)|0,_=_+Math.imul(Me,rt)|0,K=K+Math.imul(M,ht)|0,g=g+Math.imul(M,gt)|0,g=g+Math.imul(te,ht)|0,_=_+Math.imul(te,gt)|0,K=K+Math.imul(wt,It)|0,g=g+Math.imul(wt,Nt)|0,g=g+Math.imul(w,It)|0,_=_+Math.imul(w,Nt)|0,K=K+Math.imul(pt,kt)|0,g=g+Math.imul(pt,Mt)|0,g=g+Math.imul(Rt,kt)|0,_=_+Math.imul(Rt,Mt)|0,K=K+Math.imul(at,zt)|0,g=g+Math.imul(at,Zt)|0,g=g+Math.imul(ct,zt)|0,_=_+Math.imul(ct,Zt)|0,K=K+Math.imul(Fe,Yt)|0,g=g+Math.imul(Fe,qt)|0,g=g+Math.imul(We,Yt)|0,_=_+Math.imul(We,qt)|0;var si=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(si>>>26)|0,si&=67108863,K=Math.imul(be,ce),g=Math.imul(be,je),g=g+Math.imul(L,ce)|0,_=Math.imul(L,je),K=K+Math.imul(b,Xe)|0,g=g+Math.imul(b,et)|0,g=g+Math.imul(q,Xe)|0,_=_+Math.imul(q,et)|0,K=K+Math.imul(Qe,ot)|0,g=g+Math.imul(Qe,rt)|0,g=g+Math.imul(F,ot)|0,_=_+Math.imul(F,rt)|0,K=K+Math.imul(pe,ht)|0,g=g+Math.imul(pe,gt)|0,g=g+Math.imul(Me,ht)|0,_=_+Math.imul(Me,gt)|0,K=K+Math.imul(M,It)|0,g=g+Math.imul(M,Nt)|0,g=g+Math.imul(te,It)|0,_=_+Math.imul(te,Nt)|0,K=K+Math.imul(wt,kt)|0,g=g+Math.imul(wt,Mt)|0,g=g+Math.imul(w,kt)|0,_=_+Math.imul(w,Mt)|0,K=K+Math.imul(pt,zt)|0,g=g+Math.imul(pt,Zt)|0,g=g+Math.imul(Rt,zt)|0,_=_+Math.imul(Rt,Zt)|0,K=K+Math.imul(at,Yt)|0,g=g+Math.imul(at,qt)|0,g=g+Math.imul(ct,Yt)|0,_=_+Math.imul(ct,qt)|0;var ai=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ai>>>26)|0,ai&=67108863,K=Math.imul(be,Xe),g=Math.imul(be,et),g=g+Math.imul(L,Xe)|0,_=Math.imul(L,et),K=K+Math.imul(b,ot)|0,g=g+Math.imul(b,rt)|0,g=g+Math.imul(q,ot)|0,_=_+Math.imul(q,rt)|0,K=K+Math.imul(Qe,ht)|0,g=g+Math.imul(Qe,gt)|0,g=g+Math.imul(F,ht)|0,_=_+Math.imul(F,gt)|0,K=K+Math.imul(pe,It)|0,g=g+Math.imul(pe,Nt)|0,g=g+Math.imul(Me,It)|0,_=_+Math.imul(Me,Nt)|0,K=K+Math.imul(M,kt)|0,g=g+Math.imul(M,Mt)|0,g=g+Math.imul(te,kt)|0,_=_+Math.imul(te,Mt)|0,K=K+Math.imul(wt,zt)|0,g=g+Math.imul(wt,Zt)|0,g=g+Math.imul(w,zt)|0,_=_+Math.imul(w,Zt)|0,K=K+Math.imul(pt,Yt)|0,g=g+Math.imul(pt,qt)|0,g=g+Math.imul(Rt,Yt)|0,_=_+Math.imul(Rt,qt)|0;var ci=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ci>>>26)|0,ci&=67108863,K=Math.imul(be,ot),g=Math.imul(be,rt),g=g+Math.imul(L,ot)|0,_=Math.imul(L,rt),K=K+Math.imul(b,ht)|0,g=g+Math.imul(b,gt)|0,g=g+Math.imul(q,ht)|0,_=_+Math.imul(q,gt)|0,K=K+Math.imul(Qe,It)|0,g=g+Math.imul(Qe,Nt)|0,g=g+Math.imul(F,It)|0,_=_+Math.imul(F,Nt)|0,K=K+Math.imul(pe,kt)|0,g=g+Math.imul(pe,Mt)|0,g=g+Math.imul(Me,kt)|0,_=_+Math.imul(Me,Mt)|0,K=K+Math.imul(M,zt)|0,g=g+Math.imul(M,Zt)|0,g=g+Math.imul(te,zt)|0,_=_+Math.imul(te,Zt)|0,K=K+Math.imul(wt,Yt)|0,g=g+Math.imul(wt,qt)|0,g=g+Math.imul(w,Yt)|0,_=_+Math.imul(w,qt)|0;var ui=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ui>>>26)|0,ui&=67108863,K=Math.imul(be,ht),g=Math.imul(be,gt),g=g+Math.imul(L,ht)|0,_=Math.imul(L,gt),K=K+Math.imul(b,It)|0,g=g+Math.imul(b,Nt)|0,g=g+Math.imul(q,It)|0,_=_+Math.imul(q,Nt)|0,K=K+Math.imul(Qe,kt)|0,g=g+Math.imul(Qe,Mt)|0,g=g+Math.imul(F,kt)|0,_=_+Math.imul(F,Mt)|0,K=K+Math.imul(pe,zt)|0,g=g+Math.imul(pe,Zt)|0,g=g+Math.imul(Me,zt)|0,_=_+Math.imul(Me,Zt)|0,K=K+Math.imul(M,Yt)|0,g=g+Math.imul(M,qt)|0,g=g+Math.imul(te,Yt)|0,_=_+Math.imul(te,qt)|0;var fi=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(fi>>>26)|0,fi&=67108863,K=Math.imul(be,It),g=Math.imul(be,Nt),g=g+Math.imul(L,It)|0,_=Math.imul(L,Nt),K=K+Math.imul(b,kt)|0,g=g+Math.imul(b,Mt)|0,g=g+Math.imul(q,kt)|0,_=_+Math.imul(q,Mt)|0,K=K+Math.imul(Qe,zt)|0,g=g+Math.imul(Qe,Zt)|0,g=g+Math.imul(F,zt)|0,_=_+Math.imul(F,Zt)|0,K=K+Math.imul(pe,Yt)|0,g=g+Math.imul(pe,qt)|0,g=g+Math.imul(Me,Yt)|0,_=_+Math.imul(Me,qt)|0;var li=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(li>>>26)|0,li&=67108863,K=Math.imul(be,kt),g=Math.imul(be,Mt),g=g+Math.imul(L,kt)|0,_=Math.imul(L,Mt),K=K+Math.imul(b,zt)|0,g=g+Math.imul(b,Zt)|0,g=g+Math.imul(q,zt)|0,_=_+Math.imul(q,Zt)|0,K=K+Math.imul(Qe,Yt)|0,g=g+Math.imul(Qe,qt)|0,g=g+Math.imul(F,Yt)|0,_=_+Math.imul(F,qt)|0;var di=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(di>>>26)|0,di&=67108863,K=Math.imul(be,zt),g=Math.imul(be,Zt),g=g+Math.imul(L,zt)|0,_=Math.imul(L,Zt),K=K+Math.imul(b,Yt)|0,g=g+Math.imul(b,qt)|0,g=g+Math.imul(q,Yt)|0,_=_+Math.imul(q,qt)|0;var hi=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(hi>>>26)|0,hi&=67108863,K=Math.imul(be,Yt),g=Math.imul(be,qt),g=g+Math.imul(L,Yt)|0,_=Math.imul(L,qt);var pi=(ae+K|0)+((g&8191)<<13)|0;return ae=(_+(g>>>13)|0)+(pi>>>26)|0,pi&=67108863,ee[0]=Xo,ee[1]=Jo,ee[2]=Qo,ee[3]=ei,ee[4]=dn,ee[5]=ti,ee[6]=ni,ee[7]=ri,ee[8]=oi,ee[9]=ii,ee[10]=si,ee[11]=ai,ee[12]=ci,ee[13]=ui,ee[14]=fi,ee[15]=li,ee[16]=di,ee[17]=hi,ee[18]=pi,ae!==0&&(ee[19]=ae,B.length++),B};Math.imul||(J=j);function W(D,f,R){R.negative=f.negative^D.negative,R.length=D.length+f.length;for(var B=0,$=0,Z=0;Z<R.length-1;Z++){var ee=$;$=0;for(var ae=B&67108863,K=Math.min(Z,f.length-1),g=Math.max(0,Z-D.length+1);g<=K;g++){var _=Z-g,H=D.words[_]|0,X=f.words[g]|0,me=H*X,ye=me&67108863;ee=ee+(me/67108864|0)|0,ye=ye+ae|0,ae=ye&67108863,ee=ee+(ye>>>26)|0,$+=ee>>>26,ee&=67108863}R.words[Z]=ae,B=ee,ee=$}return B!==0?R.words[Z]=B:R.length--,R._strip()}function se(D,f,R){return W(D,f,R)}i.prototype.mulTo=function(f,R){var B,$=this.length+f.length;return this.length===10&&f.length===10?B=J(this,f,R):$<63?B=j(this,f,R):$<1024?B=W(this,f,R):B=se(this,f,R),B},i.prototype.mul=function(f){var R=new i(null);return R.words=new Array(this.length+f.length),this.mulTo(f,R)},i.prototype.mulf=function(f){var R=new i(null);return R.words=new Array(this.length+f.length),se(this,f,R)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var R=f<0;R&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var B=0,$=0;$<this.length;$++){var Z=(this.words[$]|0)*f,ee=(Z&67108863)+(B&67108863);B>>=26,B+=Z/67108864|0,B+=ee>>>26,this.words[$]=ee&67108863}return B!==0&&(this.words[$]=B,this.length++),f===0&&(this.length=1,this._normSign()),R?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var R=V(f);if(R.length===0)return new i(1);for(var B=this,$=0;$<R.length&&R[$]===0;$++,B=B.sqr());if(++$<R.length)for(var Z=B.sqr();$<R.length;$++,Z=Z.sqr())R[$]!==0&&(B=B.mul(Z));return B},i.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var R=f%26,B=(f-R)/26,$=67108863>>>26-R<<26-R,Z;if(R!==0){var ee=0;for(Z=0;Z<this.length;Z++){var ae=this.words[Z]&$,K=(this.words[Z]|0)-ae<<R;this.words[Z]=K|ee,ee=ae>>>26-R}ee&&(this.words[Z]=ee,this.length++)}if(B!==0){for(Z=this.length-1;Z>=0;Z--)this.words[Z+B]=this.words[Z];for(Z=0;Z<B;Z++)this.words[Z]=0;this.length+=B}return this._strip()},i.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,R,B){r(typeof f=="number"&&f>=0);var $;R?$=(R-R%26)/26:$=0;var Z=f%26,ee=Math.min((f-Z)/26,this.length),ae=67108863^67108863>>>Z<<Z,K=B;if($-=ee,$=Math.max(0,$),K){for(var g=0;g<ee;g++)K.words[g]=this.words[g];K.length=ee}if(ee!==0)if(this.length>ee)for(this.length-=ee,g=0;g<this.length;g++)this.words[g]=this.words[g+ee];else this.words[0]=0,this.length=1;var _=0;for(g=this.length-1;g>=0&&(_!==0||g>=$);g--){var H=this.words[g]|0;this.words[g]=_<<26-Z|H>>>Z,_=H&ae}return K&&_!==0&&(K.words[K.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,R,B){return r(this.negative===0),this.iushrn(f,R,B)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var R=f%26,B=(f-R)/26,$=1<<R;if(this.length<=B)return!1;var Z=this.words[B];return!!(Z&$)},i.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var R=f%26,B=(f-R)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(R!==0&&B++,this.length=Math.min(B,this.length),R!==0){var $=67108863^67108863>>>R<<R;this.words[this.length-1]&=$}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return r(typeof f=="number"),r(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)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var R=0;R<this.length&&this.words[R]>=67108864;R++)this.words[R]-=67108864,R===this.length-1?this.words[R+1]=1:this.words[R+1]++;return this.length=Math.max(this.length,R+1),this},i.prototype.isubn=function(f){if(r(typeof f=="number"),r(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 R=0;R<this.length&&this.words[R]<0;R++)this.words[R]+=67108864,this.words[R+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,R,B){var $=f.length+B,Z;this._expand($);var ee,ae=0;for(Z=0;Z<f.length;Z++){ee=(this.words[Z+B]|0)+ae;var K=(f.words[Z]|0)*R;ee-=K&67108863,ae=(ee>>26)-(K/67108864|0),this.words[Z+B]=ee&67108863}for(;Z<this.length-B;Z++)ee=(this.words[Z+B]|0)+ae,ae=ee>>26,this.words[Z+B]=ee&67108863;if(ae===0)return this._strip();for(r(ae===-1),ae=0,Z=0;Z<this.length;Z++)ee=-(this.words[Z]|0)+ae,ae=ee>>26,this.words[Z]=ee&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,R){var B=this.length-f.length,$=this.clone(),Z=f,ee=Z.words[Z.length-1]|0,ae=this._countBits(ee);B=26-ae,B!==0&&(Z=Z.ushln(B),$.iushln(B),ee=Z.words[Z.length-1]|0);var K=$.length-Z.length,g;if(R!=="mod"){g=new i(null),g.length=K+1,g.words=new Array(g.length);for(var _=0;_<g.length;_++)g.words[_]=0}var H=$.clone()._ishlnsubmul(Z,1,K);H.negative===0&&($=H,g&&(g.words[K]=1));for(var X=K-1;X>=0;X--){var me=($.words[Z.length+X]|0)*67108864+($.words[Z.length+X-1]|0);for(me=Math.min(me/ee|0,67108863),$._ishlnsubmul(Z,me,X);$.negative!==0;)me--,$.negative=0,$._ishlnsubmul(Z,1,X),$.isZero()||($.negative^=1);g&&(g.words[X]=me)}return g&&g._strip(),$._strip(),R!=="div"&&B!==0&&$.iushrn(B),{div:g||null,mod:$}},i.prototype.divmod=function(f,R,B){if(r(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var $,Z,ee;return this.negative!==0&&f.negative===0?(ee=this.neg().divmod(f,R),R!=="mod"&&($=ee.div.neg()),R!=="div"&&(Z=ee.mod.neg(),B&&Z.negative!==0&&Z.iadd(f)),{div:$,mod:Z}):this.negative===0&&f.negative!==0?(ee=this.divmod(f.neg(),R),R!=="mod"&&($=ee.div.neg()),{div:$,mod:ee.mod}):(this.negative&f.negative)!==0?(ee=this.neg().divmod(f.neg(),R),R!=="div"&&(Z=ee.mod.neg(),B&&Z.negative!==0&&Z.isub(f)),{div:ee.div,mod:Z}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?R==="div"?{div:this.divn(f.words[0]),mod:null}:R==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,R)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var R=this.divmod(f);if(R.mod.isZero())return R.div;var B=R.mod.abs(),$=f.abs().iushrn(1),Z=f.words[0]&1,ee=B.cmp($);if(ee<0||Z===1&&ee===0)return R.div;var ae=new i(1);return ae.negative=this.negative^f.negative,R.div.iadd(ae)},i.prototype.modrn=function(f){var R=f<0;R&&(f=-f),r(f<=67108863);for(var B=(1<<26)%f,$=0,Z=this.length-1;Z>=0;Z--)$=(B*$+(this.words[Z]|0))%f;return R?-$:$},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var R=f<0;R&&(f=-f),r(f<=67108863);for(var B=0,$=this.length-1;$>=0;$--){var Z=(this.words[$]|0)+B*67108864;this.words[$]=Z/f|0,B=Z%f}return this._strip(),R?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var R=this,B=f.clone();R.negative!==0?R=R.umod(f):R=R.clone();for(var $=new i(1),Z=new i(0),ee=new i(0),ae=new i(1),K=0;R.isEven()&&B.isEven();)R.iushrn(1),B.iushrn(1),++K;for(var g=B.clone(),_=R.clone();!R.isZero();){for(var H=0,X=1;(R.words[0]&X)===0&&H<26;++H,X<<=1);if(H>0)for(R.iushrn(H);H-- >0;)($.isOdd()||Z.isOdd())&&($.iadd(g),Z.isub(_)),$.iushrn(1),Z.iushrn(1);for(var me=0,ye=1;(B.words[0]&ye)===0&&me<26;++me,ye<<=1);if(me>0)for(B.iushrn(me);me-- >0;)(ee.isOdd()||ae.isOdd())&&(ee.iadd(g),ae.isub(_)),ee.iushrn(1),ae.iushrn(1);R.cmp(B)>=0?(R.isub(B),$.isub(ee),Z.isub(ae)):(B.isub(R),ee.isub($),ae.isub(Z))}return{a:ee,b:ae,gcd:B.iushln(K)}},i.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var R=this,B=f.clone();R.negative!==0?R=R.umod(f):R=R.clone();for(var $=new i(1),Z=new i(0),ee=B.clone();R.cmpn(1)>0&&B.cmpn(1)>0;){for(var ae=0,K=1;(R.words[0]&K)===0&&ae<26;++ae,K<<=1);if(ae>0)for(R.iushrn(ae);ae-- >0;)$.isOdd()&&$.iadd(ee),$.iushrn(1);for(var g=0,_=1;(B.words[0]&_)===0&&g<26;++g,_<<=1);if(g>0)for(B.iushrn(g);g-- >0;)Z.isOdd()&&Z.iadd(ee),Z.iushrn(1);R.cmp(B)>=0?(R.isub(B),$.isub(Z)):(B.isub(R),Z.isub($))}var H;return R.cmpn(1)===0?H=$:H=Z,H.cmpn(0)<0&&H.iadd(f),H},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var R=this.clone(),B=f.clone();R.negative=0,B.negative=0;for(var $=0;R.isEven()&&B.isEven();$++)R.iushrn(1),B.iushrn(1);do{for(;R.isEven();)R.iushrn(1);for(;B.isEven();)B.iushrn(1);var Z=R.cmp(B);if(Z<0){var ee=R;R=B,B=ee}else if(Z===0||B.cmpn(1)===0)break;R.isub(B)}while(!0);return B.iushln($)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){r(typeof f=="number");var R=f%26,B=(f-R)/26,$=1<<R;if(this.length<=B)return this._expand(B+1),this.words[B]|=$,this;for(var Z=$,ee=B;Z!==0&&ee<this.length;ee++){var ae=this.words[ee]|0;ae+=Z,Z=ae>>>26,ae&=67108863,this.words[ee]=ae}return Z!==0&&(this.words[ee]=Z,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var R=f<0;if(this.negative!==0&&!R)return-1;if(this.negative===0&&R)return 1;this._strip();var B;if(this.length>1)B=1;else{R&&(f=-f),r(f<=67108863,"Number is too big");var $=this.words[0]|0;B=$===f?0:$<f?-1:1}return this.negative!==0?-B|0:B},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var R=this.ucmp(f);return this.negative!==0?-R|0:R},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var R=0,B=this.length-1;B>=0;B--){var $=this.words[B]|0,Z=f.words[B]|0;if($!==Z){$<Z?R=-1:$>Z&&(R=1);break}}return R},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new de(f)},i.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var ue={k256:null,p224:null,p192:null,p25519:null};function oe(D,f){this.name=D,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}oe.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},oe.prototype.ireduce=function(f){var R=f,B;do this.split(R,this.tmp),R=this.imulK(R),R=R.iadd(this.tmp),B=R.bitLength();while(B>this.n);var $=B<this.n?-1:R.ucmp(this.p);return $===0?(R.words[0]=0,R.length=1):$>0?R.isub(this.p):R.strip!==void 0?R.strip():R._strip(),R},oe.prototype.split=function(f,R){f.iushrn(this.n,0,R)},oe.prototype.imulK=function(f){return f.imul(this.k)};function Ee(){oe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(Ee,oe),Ee.prototype.split=function(f,R){for(var B=4194303,$=Math.min(f.length,9),Z=0;Z<$;Z++)R.words[Z]=f.words[Z];if(R.length=$,f.length<=9){f.words[0]=0,f.length=1;return}var ee=f.words[9];for(R.words[R.length++]=ee&B,Z=10;Z<f.length;Z++){var ae=f.words[Z]|0;f.words[Z-10]=(ae&B)<<4|ee>>>22,ee=ae}ee>>>=22,f.words[Z-10]=ee,ee===0&&f.length>10?f.length-=10:f.length-=9},Ee.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var R=0,B=0;B<f.length;B++){var $=f.words[B]|0;R+=$*977,f.words[B]=R&67108863,R=$*64+(R/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function Re(){oe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(Re,oe);function ne(){oe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(ne,oe);function ie(){oe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(ie,oe),ie.prototype.imulK=function(f){for(var R=0,B=0;B<f.length;B++){var $=(f.words[B]|0)*19+R,Z=$&67108863;$>>>=26,f.words[B]=Z,R=$}return R!==0&&(f.words[f.length++]=R),f},i._prime=function(f){if(ue[f])return ue[f];var R;if(f==="k256")R=new Ee;else if(f==="p224")R=new Re;else if(f==="p192")R=new ne;else if(f==="p25519")R=new ie;else throw new Error("Unknown prime "+f);return ue[f]=R,R};function de(D){if(typeof D=="string"){var f=i._prime(D);this.m=f.p,this.prime=f}else r(D.gtn(1),"modulus must be greater than 1"),this.m=D,this.prime=null}de.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},de.prototype._verify2=function(f,R){r((f.negative|R.negative)===0,"red works only with positives"),r(f.red&&f.red===R.red,"red works only with red numbers")},de.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(A(f,f.umod(this.m)._forceRed(this)),f)},de.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},de.prototype.add=function(f,R){this._verify2(f,R);var B=f.add(R);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},de.prototype.iadd=function(f,R){this._verify2(f,R);var B=f.iadd(R);return B.cmp(this.m)>=0&&B.isub(this.m),B},de.prototype.sub=function(f,R){this._verify2(f,R);var B=f.sub(R);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},de.prototype.isub=function(f,R){this._verify2(f,R);var B=f.isub(R);return B.cmpn(0)<0&&B.iadd(this.m),B},de.prototype.shl=function(f,R){return this._verify1(f),this.imod(f.ushln(R))},de.prototype.imul=function(f,R){return this._verify2(f,R),this.imod(f.imul(R))},de.prototype.mul=function(f,R){return this._verify2(f,R),this.imod(f.mul(R))},de.prototype.isqr=function(f){return this.imul(f,f.clone())},de.prototype.sqr=function(f){return this.mul(f,f)},de.prototype.sqrt=function(f){if(f.isZero())return f.clone();var R=this.m.andln(3);if(r(R%2===1),R===3){var B=this.m.add(new i(1)).iushrn(2);return this.pow(f,B)}for(var $=this.m.subn(1),Z=0;!$.isZero()&&$.andln(1)===0;)Z++,$.iushrn(1);r(!$.isZero());var ee=new i(1).toRed(this),ae=ee.redNeg(),K=this.m.subn(1).iushrn(1),g=this.m.bitLength();for(g=new i(2*g*g).toRed(this);this.pow(g,K).cmp(ae)!==0;)g.redIAdd(ae);for(var _=this.pow(g,$),H=this.pow(f,$.addn(1).iushrn(1)),X=this.pow(f,$),me=Z;X.cmp(ee)!==0;){for(var ye=X,Fe=0;ye.cmp(ee)!==0;Fe++)ye=ye.redSqr();r(Fe<me);var We=this.pow(_,new i(1).iushln(me-Fe-1));H=H.redMul(We),_=We.redSqr(),X=X.redMul(_),me=Fe}return H},de.prototype.invm=function(f){var R=f._invmp(this.m);return R.negative!==0?(R.negative=0,this.imod(R).redNeg()):this.imod(R)},de.prototype.pow=function(f,R){if(R.isZero())return new i(1).toRed(this);if(R.cmpn(1)===0)return f.clone();var B=4,$=new Array(1<<B);$[0]=new i(1).toRed(this),$[1]=f;for(var Z=2;Z<$.length;Z++)$[Z]=this.mul($[Z-1],f);var ee=$[0],ae=0,K=0,g=R.bitLength()%26;for(g===0&&(g=26),Z=R.length-1;Z>=0;Z--){for(var _=R.words[Z],H=g-1;H>=0;H--){var X=_>>H&1;if(ee!==$[0]&&(ee=this.sqr(ee)),X===0&&ae===0){K=0;continue}ae<<=1,ae|=X,K++,!(K!==B&&(Z!==0||H!==0))&&(ee=this.mul(ee,$[ae]),K=0,ae=0)}g=26}return ee},de.prototype.convertTo=function(f){var R=f.umod(this.m);return R===f?R.clone():R},de.prototype.convertFrom=function(f){var R=f.clone();return R.red=null,R},i.mont=function(f){return new ge(f)};function ge(D){de.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)}c(ge,de),ge.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},ge.prototype.convertFrom=function(f){var R=this.imod(f.mul(this.rinv));return R.red=null,R},ge.prototype.imul=function(f,R){if(f.isZero()||R.isZero())return f.words[0]=0,f.length=1,f;var B=f.imul(R),$=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Z=B.isub($).iushrn(this.shift),ee=Z;return Z.cmp(this.m)>=0?ee=Z.isub(this.m):Z.cmpn(0)<0&&(ee=Z.iadd(this.m)),ee._forceRed(this)},ge.prototype.mul=function(f,R){if(f.isZero()||R.isZero())return new i(0)._forceRed(this);var B=f.mul(R),$=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Z=B.isub($).iushrn(this.shift),ee=Z;return Z.cmp(this.m)>=0?ee=Z.isub(this.m):Z.cmpn(0)<0&&(ee=Z.iadd(this.m)),ee._forceRed(this)},ge.prototype.invm=function(f){var R=this.imod(f._invmp(this.m).mul(this.r2));return R._forceRed(this)}})(e,Th)})(Di)),Di.exports}var xh=$u();const ju=Gs(xh);var Ui={exports:{}};var Ku;function Wu(){return Ku||(Ku=1,(function(e,t){var n=js(),r=n.Buffer;function c(l,v){for(var d in l)v[d]=l[d]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=i);function i(l,v,d){return r(l,v,d)}i.prototype=Object.create(r.prototype),c(r,i),i.from=function(l,v,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return r(l,v,d)},i.alloc=function(l,v,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var y=r(l);return v!==void 0?typeof d=="string"?y.fill(v,d):y.fill(v):y.fill(0),y},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(l)}})(Ui,Ui.exports)),Ui.exports}var sa,zu;function Lh(){if(zu)return sa;zu=1;var e=Wu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),c=0;c<r.length;c++)r[c]=255;for(var i=0;i<n.length;i++){var l=n.charAt(i),v=l.charCodeAt(0);if(r[v]!==255)throw new TypeError(l+" is ambiguous");r[v]=i}var d=n.length,y=n.charAt(0),A=Math.log(d)/Math.log(256),O=Math.log(256)/Math.log(d);function S(C){if((Array.isArray(C)||C instanceof Uint8Array)&&(C=e.from(C)),!e.isBuffer(C))throw new TypeError("Expected Buffer");if(C.length===0)return"";for(var V=0,j=0,J=0,W=C.length;J!==W&&C[J]===0;)J++,V++;for(var se=(W-J)*O+1>>>0,ue=new Uint8Array(se);J!==W;){for(var oe=C[J],Ee=0,Re=se-1;(oe!==0||Ee<j)&&Re!==-1;Re--,Ee++)oe+=256*ue[Re]>>>0,ue[Re]=oe%d>>>0,oe=oe/d>>>0;if(oe!==0)throw new Error("Non-zero carry");j=Ee,J++}for(var ne=se-j;ne!==se&&ue[ne]===0;)ne++;for(var ie=y.repeat(V);ne<se;++ne)ie+=n.charAt(ue[ne]);return ie}function I(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return e.alloc(0);for(var V=0,j=0,J=0;C[V]===y;)j++,V++;for(var W=(C.length-V)*A+1>>>0,se=new Uint8Array(W);V<C.length;){var ue=C.charCodeAt(V);if(ue>255)return;var oe=r[ue];if(oe===255)return;for(var Ee=0,Re=W-1;(oe!==0||Ee<J)&&Re!==-1;Re--,Ee++)oe+=d*se[Re]>>>0,se[Re]=oe%256>>>0,oe=oe/256>>>0;if(oe!==0)throw new Error("Non-zero carry");J=Ee,V++}for(var ne=W-J;ne!==W&&se[ne]===0;)ne++;var ie=e.allocUnsafe(j+(W-ne));ie.fill(0,0,j);for(var de=j;ne!==W;)ie[de++]=se[ne++];return ie}function k(C){var V=I(C);if(V)return V;throw new Error("Non-base"+d+" character")}return{encode:S,decodeUnsafe:I,decode:k}}return sa=t,sa}var aa,Zu;function Ch(){if(Zu)return aa;Zu=1;var e=Lh(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return aa=e(t),aa}var Mh=Ch();const En=Gs(Mh),Yu=hu;var Ot={},ca,qu;function Bh(){if(qu)return ca;qu=1;var e=Wu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),c=0;c<r.length;c++)r[c]=255;for(var i=0;i<n.length;i++){var l=n.charAt(i),v=l.charCodeAt(0);if(r[v]!==255)throw new TypeError(l+" is ambiguous");r[v]=i}var d=n.length,y=n.charAt(0),A=Math.log(d)/Math.log(256),O=Math.log(256)/Math.log(d);function S(C){if((Array.isArray(C)||C instanceof Uint8Array)&&(C=e.from(C)),!e.isBuffer(C))throw new TypeError("Expected Buffer");if(C.length===0)return"";for(var V=0,j=0,J=0,W=C.length;J!==W&&C[J]===0;)J++,V++;for(var se=(W-J)*O+1>>>0,ue=new Uint8Array(se);J!==W;){for(var oe=C[J],Ee=0,Re=se-1;(oe!==0||Ee<j)&&Re!==-1;Re--,Ee++)oe+=256*ue[Re]>>>0,ue[Re]=oe%d>>>0,oe=oe/d>>>0;if(oe!==0)throw new Error("Non-zero carry");j=Ee,J++}for(var ne=se-j;ne!==se&&ue[ne]===0;)ne++;for(var ie=y.repeat(V);ne<se;++ne)ie+=n.charAt(ue[ne]);return ie}function I(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return e.alloc(0);for(var V=0,j=0,J=0;C[V]===y;)j++,V++;for(var W=(C.length-V)*A+1>>>0,se=new Uint8Array(W);V<C.length;){var ue=C.charCodeAt(V);if(ue>255)return;var oe=r[ue];if(oe===255)return;for(var Ee=0,Re=W-1;(oe!==0||Ee<J)&&Re!==-1;Re--,Ee++)oe+=d*se[Re]>>>0,se[Re]=oe%256>>>0,oe=oe/256>>>0;if(oe!==0)throw new Error("Non-zero carry");J=Ee,V++}for(var ne=W-J;ne!==W&&se[ne]===0;)ne++;var ie=e.allocUnsafe(j+(W-ne));ie.fill(0,0,j);for(var de=j;ne!==W;)ie[de++]=se[ne++];return ie}function k(C){var V=I(C);if(V)return V;throw new Error("Non-base"+d+" character")}return{encode:S,decodeUnsafe:I,decode:k}}return ca=t,ca}var ua,Xu;function kh(){if(Xu)return ua;Xu=1;var e=Bh(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return ua=e(t),ua}function ar(e,t,n){return t<=e&&e<=n}function Pi(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function Dh(e){for(var t=String(e),n=t.length,r=0,c=[];r<n;){var i=t.charCodeAt(r);if(i<55296||i>57343)c.push(i);else if(56320<=i&&i<=57343)c.push(65533);else if(55296<=i&&i<=56319)if(r===n-1)c.push(65533);else{var l=e.charCodeAt(r+1);if(56320<=l&&l<=57343){var v=i&1023,d=l&1023;c.push(65536+(v<<10)+d),r+=1}else c.push(65533)}r+=1}return c}function Uh(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode((r>>10)+55296,(r&1023)+56320))}return t}var Fi=-1;function fa(e){this.tokens=[].slice.call(e)}fa.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Fi},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var oo=-1;function la(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Vi="utf-8";function Gi(e,t){if(!(this instanceof Gi))return new Gi(e,t);if(e=e!==void 0?String(e).toLowerCase():Vi,e!==Vi)throw new Error("Encoding not supported. Only utf-8 is supported");t=Pi(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})}Gi.prototype={decode:function(t,n){var r;typeof t=="object"&&t instanceof ArrayBuffer?r=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):r=new Uint8Array(0),n=Pi(n),this._streaming||(this._decoder=new Ph({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var c=new fa(r),i=[],l;!c.endOfStream()&&(l=this._decoder.handler(c,c.read()),l!==oo);)l!==null&&(Array.isArray(l)?i.push.apply(i,l):i.push(l));if(!this._streaming){do{if(l=this._decoder.handler(c,c.read()),l===oo)break;l!==null&&(Array.isArray(l)?i.push.apply(i,l):i.push(l))}while(!c.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),Uh(i)}};function Hi(e,t){if(!(this instanceof Hi))return new Hi(e,t);if(e=e!==void 0?String(e).toLowerCase():Vi,e!==Vi)throw new Error("Encoding not supported. Only utf-8 is supported");t=Pi(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Hi.prototype={encode:function(t,n){t=t?String(t):"",n=Pi(n),this._streaming||(this._encoder=new Fh(this._options)),this._streaming=!!n.stream;for(var r=[],c=new fa(Dh(t)),i;!c.endOfStream()&&(i=this._encoder.handler(c,c.read()),i!==oo);)Array.isArray(i)?r.push.apply(r,i):r.push(i);if(!this._streaming){for(;i=this._encoder.handler(c,c.read()),i!==oo;)Array.isArray(i)?r.push.apply(r,i):r.push(i);this._encoder=null}return new Uint8Array(r)}};function Ph(e){var t=e.fatal,n=0,r=0,c=0,i=128,l=191;this.handler=function(v,d){if(d===Fi&&c!==0)return c=0,la(t);if(d===Fi)return oo;if(c===0){if(ar(d,0,127))return d;if(ar(d,194,223))c=1,n=d-192;else if(ar(d,224,239))d===224&&(i=160),d===237&&(l=159),c=2,n=d-224;else if(ar(d,240,244))d===240&&(i=144),d===244&&(l=143),c=3,n=d-240;else return la(t);return n=n<<6*c,null}if(!ar(d,i,l))return n=c=r=0,i=128,l=191,v.prepend(d),la(t);if(i=128,l=191,r+=1,n+=d-128<<6*(c-r),r!==c)return null;var y=n;return n=c=r=0,y}}function Fh(e){e.fatal,this.handler=function(t,n){if(n===Fi)return oo;if(ar(n,0,127))return n;var r,c;ar(n,128,2047)?(r=1,c=192):ar(n,2048,65535)?(r=2,c=224):ar(n,65536,1114111)&&(r=3,c=240);for(var i=[(n>>6*r)+c];r>0;){var l=n>>6*(r-1);i.push(128|l&63),r-=1}return i}}const Vh=Hs(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Gi,TextEncoder:Hi},Symbol.toStringTag,{value:"Module"})));var Ju;function Gh(){if(Ju)return Ot;Ju=1;var e=Ot&&Ot.__createBinding||(Object.create?(function(ne,ie,de,ge){ge===void 0&&(ge=de),Object.defineProperty(ne,ge,{enumerable:!0,get:function(){return ie[de]}})}):(function(ne,ie,de,ge){ge===void 0&&(ge=de),ne[ge]=ie[de]})),t=Ot&&Ot.__setModuleDefault||(Object.create?(function(ne,ie){Object.defineProperty(ne,"default",{enumerable:!0,value:ie})}):function(ne,ie){ne.default=ie}),n=Ot&&Ot.__decorate||function(ne,ie,de,ge){var D=arguments.length,f=D<3?ie:ge===null?ge=Object.getOwnPropertyDescriptor(ie,de):ge,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(ne,ie,de,ge);else for(var B=ne.length-1;B>=0;B--)(R=ne[B])&&(f=(D<3?R(f):D>3?R(ie,de,f):R(ie,de))||f);return D>3&&f&&Object.defineProperty(ie,de,f),f},r=Ot&&Ot.__importStar||function(ne){if(ne&&ne.__esModule)return ne;var ie={};if(ne!=null)for(var de in ne)de!=="default"&&Object.hasOwnProperty.call(ne,de)&&e(ie,ne,de);return t(ie,ne),ie},c=Ot&&Ot.__importDefault||function(ne){return ne&&ne.__esModule?ne:{default:ne}};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.deserializeUnchecked=Ot.deserialize=Ot.serialize=Ot.BinaryReader=Ot.BinaryWriter=Ot.BorshError=Ot.baseDecode=Ot.baseEncode=void 0;const i=c($u()),l=c(kh()),v=r(Vh),d=typeof TextDecoder!="function"?v.TextDecoder:TextDecoder,y=new d("utf-8",{fatal:!0});function A(ne){return typeof ne=="string"&&(ne=Buffer.from(ne,"utf8")),l.default.encode(Buffer.from(ne))}Ot.baseEncode=A;function O(ne){return Buffer.from(l.default.decode(ne))}Ot.baseDecode=O;const S=1024;class I extends Error{constructor(ie){super(ie),this.fieldPath=[],this.originalMessage=ie}addToFieldPath(ie){this.fieldPath.splice(0,0,ie),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ot.BorshError=I;class k{constructor(){this.buf=Buffer.alloc(S),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(S)]))}writeU8(ie){this.maybeResize(),this.buf.writeUInt8(ie,this.length),this.length+=1}writeU16(ie){this.maybeResize(),this.buf.writeUInt16LE(ie,this.length),this.length+=2}writeU32(ie){this.maybeResize(),this.buf.writeUInt32LE(ie,this.length),this.length+=4}writeU64(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",8)))}writeU128(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",16)))}writeU256(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",32)))}writeU512(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",64)))}writeBuffer(ie){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),ie,Buffer.alloc(S)]),this.length+=ie.length}writeString(ie){this.maybeResize();const de=Buffer.from(ie,"utf8");this.writeU32(de.length),this.writeBuffer(de)}writeFixedArray(ie){this.writeBuffer(Buffer.from(ie))}writeArray(ie,de){this.maybeResize(),this.writeU32(ie.length);for(const ge of ie)this.maybeResize(),de(ge)}toArray(){return this.buf.subarray(0,this.length)}}Ot.BinaryWriter=k;function C(ne,ie,de){const ge=de.value;de.value=function(...D){try{return ge.apply(this,D)}catch(f){if(f instanceof RangeError){const R=f.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(R)>=0)throw new I("Reached the end of buffer when deserializing")}throw f}}}class V{constructor(ie){this.buf=ie,this.offset=0}readU8(){const ie=this.buf.readUInt8(this.offset);return this.offset+=1,ie}readU16(){const ie=this.buf.readUInt16LE(this.offset);return this.offset+=2,ie}readU32(){const ie=this.buf.readUInt32LE(this.offset);return this.offset+=4,ie}readU64(){const ie=this.readBuffer(8);return new i.default(ie,"le")}readU128(){const ie=this.readBuffer(16);return new i.default(ie,"le")}readU256(){const ie=this.readBuffer(32);return new i.default(ie,"le")}readU512(){const ie=this.readBuffer(64);return new i.default(ie,"le")}readBuffer(ie){if(this.offset+ie>this.buf.length)throw new I(`Expected buffer length ${ie} isn't within bounds`);const de=this.buf.slice(this.offset,this.offset+ie);return this.offset+=ie,de}readString(){const ie=this.readU32(),de=this.readBuffer(ie);try{return y.decode(de)}catch(ge){throw new I(`Error decoding UTF-8 string: ${ge}`)}}readFixedArray(ie){return new Uint8Array(this.readBuffer(ie))}readArray(ie){const de=this.readU32(),ge=Array();for(let D=0;D<de;++D)ge.push(ie());return ge}}n([C],V.prototype,"readU8",null),n([C],V.prototype,"readU16",null),n([C],V.prototype,"readU32",null),n([C],V.prototype,"readU64",null),n([C],V.prototype,"readU128",null),n([C],V.prototype,"readU256",null),n([C],V.prototype,"readU512",null),n([C],V.prototype,"readString",null),n([C],V.prototype,"readFixedArray",null),n([C],V.prototype,"readArray",null),Ot.BinaryReader=V;function j(ne){return ne.charAt(0).toUpperCase()+ne.slice(1)}function J(ne,ie,de,ge,D){try{if(typeof ge=="string")D[`write${j(ge)}`](de);else if(ge instanceof Array)if(typeof ge[0]=="number"){if(de.length!==ge[0])throw new I(`Expecting byte array of length ${ge[0]}, but got ${de.length} bytes`);D.writeFixedArray(de)}else if(ge.length===2&&typeof ge[1]=="number"){if(de.length!==ge[1])throw new I(`Expecting byte array of length ${ge[1]}, but got ${de.length} bytes`);for(let f=0;f<ge[1];f++)J(ne,null,de[f],ge[0],D)}else D.writeArray(de,f=>{J(ne,ie,f,ge[0],D)});else if(ge.kind!==void 0)switch(ge.kind){case"option":{de==null?D.writeU8(0):(D.writeU8(1),J(ne,ie,de,ge.type,D));break}case"map":{D.writeU32(de.size),de.forEach((f,R)=>{J(ne,ie,R,ge.key,D),J(ne,ie,f,ge.value,D)});break}default:throw new I(`FieldType ${ge} unrecognized`)}else W(ne,de,D)}catch(f){throw f instanceof I&&f.addToFieldPath(ie),f}}function W(ne,ie,de){if(typeof ie.borshSerialize=="function"){ie.borshSerialize(de);return}const ge=ne.get(ie.constructor);if(!ge)throw new I(`Class ${ie.constructor.name} is missing in schema`);if(ge.kind==="struct")ge.fields.map(([D,f])=>{J(ne,D,ie[D],f,de)});else if(ge.kind==="enum"){const D=ie[ge.field];for(let f=0;f<ge.values.length;++f){const[R,B]=ge.values[f];if(R===D){de.writeU8(f),J(ne,R,ie[R],B,de);break}}}else throw new I(`Unexpected schema kind: ${ge.kind} for ${ie.constructor.name}`)}function se(ne,ie,de=k){const ge=new de;return W(ne,ie,ge),ge.toArray()}Ot.serialize=se;function ue(ne,ie,de,ge){try{if(typeof de=="string")return ge[`read${j(de)}`]();if(de instanceof Array){if(typeof de[0]=="number")return ge.readFixedArray(de[0]);if(typeof de[1]=="number"){const D=[];for(let f=0;f<de[1];f++)D.push(ue(ne,null,de[0],ge));return D}else return ge.readArray(()=>ue(ne,ie,de[0],ge))}if(de.kind==="option")return ge.readU8()?ue(ne,ie,de.type,ge):void 0;if(de.kind==="map"){let D=new Map;const f=ge.readU32();for(let R=0;R<f;R++){const B=ue(ne,ie,de.key,ge),$=ue(ne,ie,de.value,ge);D.set(B,$)}return D}return oe(ne,de,ge)}catch(D){throw D instanceof I&&D.addToFieldPath(ie),D}}function oe(ne,ie,de){if(typeof ie.borshDeserialize=="function")return ie.borshDeserialize(de);const ge=ne.get(ie);if(!ge)throw new I(`Class ${ie.name} is missing in schema`);if(ge.kind==="struct"){const D={};for(const[f,R]of ne.get(ie).fields)D[f]=ue(ne,f,R,de);return new ie(D)}if(ge.kind==="enum"){const D=de.readU8();if(D>=ge.values.length)throw new I(`Enum index: ${D} is out of range`);const[f,R]=ge.values[D],B=ue(ne,f,R,de);return new ie({[f]:B})}throw new I(`Unexpected schema kind: ${ge.kind} for ${ie.constructor.name}`)}function Ee(ne,ie,de,ge=V){const D=new ge(de),f=oe(ne,ie,D);if(D.offset<de.length)throw new I(`Unexpected ${de.length-D.offset} bytes after deserialized data`);return f}Ot.deserialize=Ee;function Re(ne,ie,de,ge=V){const D=new ge(de);return oe(ne,ie,D)}return Ot.deserializeUnchecked=Re,Ot}var da=Gh(),Oe={},Qu;function Hh(){if(Qu)return Oe;Qu=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.s16=Oe.s8=Oe.nu64be=Oe.u48be=Oe.u40be=Oe.u32be=Oe.u24be=Oe.u16be=Oe.nu64=Oe.u48=Oe.u40=Oe.u32=Oe.u24=Oe.u16=Oe.u8=Oe.offset=Oe.greedy=Oe.Constant=Oe.UTF8=Oe.CString=Oe.Blob=Oe.Boolean=Oe.BitField=Oe.BitStructure=Oe.VariantLayout=Oe.Union=Oe.UnionLayoutDiscriminator=Oe.UnionDiscriminator=Oe.Structure=Oe.Sequence=Oe.DoubleBE=Oe.Double=Oe.FloatBE=Oe.Float=Oe.NearInt64BE=Oe.NearInt64=Oe.NearUInt64BE=Oe.NearUInt64=Oe.IntBE=Oe.Int=Oe.UIntBE=Oe.UInt=Oe.OffsetLayout=Oe.GreedyCount=Oe.ExternalLayout=Oe.bindConstructorLayout=Oe.nameWithProperty=Oe.Layout=Oe.uint8ArrayToBuffer=Oe.checkUint8Array=void 0,Oe.constant=Oe.utf8=Oe.cstr=Oe.blob=Oe.unionLayoutDiscriminator=Oe.union=Oe.seq=Oe.bits=Oe.struct=Oe.f64be=Oe.f64=Oe.f32be=Oe.f32=Oe.ns64be=Oe.s48be=Oe.s40be=Oe.s32be=Oe.s24be=Oe.s16be=Oe.ns64=Oe.s48=Oe.s40=Oe.s32=Oe.s24=void 0;const e=js();function t(g){if(!(g instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Oe.checkUint8Array=t;function n(g){return t(g),e.Buffer.from(g.buffer,g.byteOffset,g.length)}Oe.uint8ArrayToBuffer=n;let r=class{constructor(_,H){if(!Number.isInteger(_))throw new TypeError("span must be an integer");this.span=_,this.property=H}makeDestinationObject(){return{}}getSpan(_,H){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(_){const H=Object.create(this.constructor.prototype);return Object.assign(H,this),H.property=_,H}fromArray(_){}};Oe.Layout=r;function c(g,_){return _.property?g+"["+_.property+"]":g}Oe.nameWithProperty=c;function i(g,_){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(!(_&&_ instanceof r))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(_,"boundConstructor_"))throw new Error("layout is already bound to a constructor");g.layout_=_,_.boundConstructor_=g,_.makeDestinationObject=(()=>new g),Object.defineProperty(g.prototype,"encode",{value(H,X){return _.encode(this,H,X)},writable:!0}),Object.defineProperty(g,"decode",{value(H,X){return _.decode(H,X)},writable:!0})}Oe.bindConstructorLayout=i;class l extends r{isCount(){throw new Error("ExternalLayout is abstract")}}Oe.ExternalLayout=l;class v extends l{constructor(_=1,H){if(!Number.isInteger(_)||0>=_)throw new TypeError("elementSpan must be a (positive) integer");super(-1,H),this.elementSpan=_}isCount(){return!0}decode(_,H=0){t(_);const X=_.length-H;return Math.floor(X/this.elementSpan)}encode(_,H,X){return 0}}Oe.GreedyCount=v;class d extends l{constructor(_,H=0,X){if(!(_ instanceof r))throw new TypeError("layout must be a Layout");if(!Number.isInteger(H))throw new TypeError("offset must be integer or undefined");super(_.span,X||_.property),this.layout=_,this.offset=H}isCount(){return this.layout instanceof y||this.layout instanceof A}decode(_,H=0){return this.layout.decode(_,H+this.offset)}encode(_,H,X=0){return this.layout.encode(_,H,X+this.offset)}}Oe.OffsetLayout=d;class y extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readUIntLE(H,this.span)}encode(_,H,X=0){return n(H).writeUIntLE(_,X,this.span),this.span}}Oe.UInt=y;class A extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readUIntBE(H,this.span)}encode(_,H,X=0){return n(H).writeUIntBE(_,X,this.span),this.span}}Oe.UIntBE=A;class O extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readIntLE(H,this.span)}encode(_,H,X=0){return n(H).writeIntLE(_,X,this.span),this.span}}Oe.Int=O;class S extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readIntBE(H,this.span)}encode(_,H,X=0){return n(H).writeIntBE(_,X,this.span),this.span}}Oe.IntBE=S;const I=Math.pow(2,32);function k(g){const _=Math.floor(g/I),H=g-_*I;return{hi32:_,lo32:H}}function C(g,_){return g*I+_}class V extends r{constructor(_){super(8,_)}decode(_,H=0){const X=n(_),me=X.readUInt32LE(H),ye=X.readUInt32LE(H+4);return C(ye,me)}encode(_,H,X=0){const me=k(_),ye=n(H);return ye.writeUInt32LE(me.lo32,X),ye.writeUInt32LE(me.hi32,X+4),8}}Oe.NearUInt64=V;class j extends r{constructor(_){super(8,_)}decode(_,H=0){const X=n(_),me=X.readUInt32BE(H),ye=X.readUInt32BE(H+4);return C(me,ye)}encode(_,H,X=0){const me=k(_),ye=n(H);return ye.writeUInt32BE(me.hi32,X),ye.writeUInt32BE(me.lo32,X+4),8}}Oe.NearUInt64BE=j;class J extends r{constructor(_){super(8,_)}decode(_,H=0){const X=n(_),me=X.readUInt32LE(H),ye=X.readInt32LE(H+4);return C(ye,me)}encode(_,H,X=0){const me=k(_),ye=n(H);return ye.writeUInt32LE(me.lo32,X),ye.writeInt32LE(me.hi32,X+4),8}}Oe.NearInt64=J;class W extends r{constructor(_){super(8,_)}decode(_,H=0){const X=n(_),me=X.readInt32BE(H),ye=X.readUInt32BE(H+4);return C(me,ye)}encode(_,H,X=0){const me=k(_),ye=n(H);return ye.writeInt32BE(me.hi32,X),ye.writeUInt32BE(me.lo32,X+4),8}}Oe.NearInt64BE=W;class se extends r{constructor(_){super(4,_)}decode(_,H=0){return n(_).readFloatLE(H)}encode(_,H,X=0){return n(H).writeFloatLE(_,X),4}}Oe.Float=se;class ue extends r{constructor(_){super(4,_)}decode(_,H=0){return n(_).readFloatBE(H)}encode(_,H,X=0){return n(H).writeFloatBE(_,X),4}}Oe.FloatBE=ue;class oe extends r{constructor(_){super(8,_)}decode(_,H=0){return n(_).readDoubleLE(H)}encode(_,H,X=0){return n(H).writeDoubleLE(_,X),8}}Oe.Double=oe;class Ee extends r{constructor(_){super(8,_)}decode(_,H=0){return n(_).readDoubleBE(H)}encode(_,H,X=0){return n(H).writeDoubleBE(_,X),8}}Oe.DoubleBE=Ee;class Re extends r{constructor(_,H,X){if(!(_ instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(H instanceof l&&H.isCount()||Number.isInteger(H)&&0<=H))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let me=-1;!(H instanceof l)&&0<_.span&&(me=H*_.span),super(me,X),this.elementLayout=_,this.count=H}getSpan(_,H=0){if(0<=this.span)return this.span;let X=0,me=this.count;if(me instanceof l&&(me=me.decode(_,H)),0<this.elementLayout.span)X=me*this.elementLayout.span;else{let ye=0;for(;ye<me;)X+=this.elementLayout.getSpan(_,H+X),++ye}return X}decode(_,H=0){const X=[];let me=0,ye=this.count;for(ye instanceof l&&(ye=ye.decode(_,H));me<ye;)X.push(this.elementLayout.decode(_,H)),H+=this.elementLayout.getSpan(_,H),me+=1;return X}encode(_,H,X=0){const me=this.elementLayout,ye=_.reduce((Fe,We)=>Fe+me.encode(We,H,X+Fe),0);return this.count instanceof l&&this.count.encode(_.length,H,X),ye}}Oe.Sequence=Re;class ne extends r{constructor(_,H,X){if(!(Array.isArray(_)&&_.reduce((ye,Fe)=>ye&&Fe instanceof r,!0)))throw new TypeError("fields must be array of Layout instances");typeof H=="boolean"&&X===void 0&&(X=H,H=void 0);for(const ye of _)if(0>ye.span&&ye.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let me=-1;try{me=_.reduce((ye,Fe)=>ye+Fe.getSpan(),0)}catch{}super(me,H),this.fields=_,this.decodePrefixes=!!X}getSpan(_,H=0){if(0<=this.span)return this.span;let X=0;try{X=this.fields.reduce((me,ye)=>{const Fe=ye.getSpan(_,H);return H+=Fe,me+Fe},0)}catch{throw new RangeError("indeterminate span")}return X}decode(_,H=0){t(_);const X=this.makeDestinationObject();for(const me of this.fields)if(me.property!==void 0&&(X[me.property]=me.decode(_,H)),H+=me.getSpan(_,H),this.decodePrefixes&&_.length===H)break;return X}encode(_,H,X=0){const me=X;let ye=0,Fe=0;for(const We of this.fields){let st=We.span;if(Fe=0<st?st:0,We.property!==void 0){const at=_[We.property];at!==void 0&&(Fe=We.encode(at,H,X),0>st&&(st=We.getSpan(H,X)))}ye=X,X+=st}return ye+Fe-me}fromArray(_){const H=this.makeDestinationObject();for(const X of this.fields)X.property!==void 0&&0<_.length&&(H[X.property]=_.shift());return H}layoutFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const H of this.fields)if(H.property===_)return H}offsetOf(_){if(typeof _!="string")throw new TypeError("property must be string");let H=0;for(const X of this.fields){if(X.property===_)return H;0>X.span?H=-1:0<=H&&(H+=X.span)}}}Oe.Structure=ne;class ie{constructor(_){this.property=_}decode(_,H){throw new Error("UnionDiscriminator is abstract")}encode(_,H,X){throw new Error("UnionDiscriminator is abstract")}}Oe.UnionDiscriminator=ie;class de extends ie{constructor(_,H){if(!(_ instanceof l&&_.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(H||_.property||"variant"),this.layout=_}decode(_,H){return this.layout.decode(_,H)}encode(_,H,X){return this.layout.encode(_,H,X)}}Oe.UnionLayoutDiscriminator=de;class ge extends r{constructor(_,H,X){let me;if(_ instanceof y||_ instanceof A)me=new de(new d(_));else if(_ instanceof l&&_.isCount())me=new de(_);else if(_ instanceof ie)me=_;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(H===void 0&&(H=null),!(H===null||H instanceof r))throw new TypeError("defaultLayout must be null or a Layout");if(H!==null){if(0>H.span)throw new Error("defaultLayout must have constant span");H.property===void 0&&(H=H.replicate("content"))}let ye=-1;H&&(ye=H.span,0<=ye&&(_ instanceof y||_ instanceof A)&&(ye+=me.layout.span)),super(ye,X),this.discriminator=me,this.usesPrefixDiscriminator=_ instanceof y||_ instanceof A,this.defaultLayout=H,this.registry={};let Fe=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(We){return Fe(We)},this.configGetSourceVariant=function(We){Fe=We.bind(this)}}getSpan(_,H=0){if(0<=this.span)return this.span;const X=this.getVariant(_,H);if(!X)throw new Error("unable to determine span for unrecognized variant");return X.getSpan(_,H)}defaultGetSourceVariant(_){if(Object.prototype.hasOwnProperty.call(_,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(_,this.defaultLayout.property))return;const H=this.registry[_[this.discriminator.property]];if(H&&(!H.layout||H.property&&Object.prototype.hasOwnProperty.call(_,H.property)))return H}else for(const H in this.registry){const X=this.registry[H];if(X.property&&Object.prototype.hasOwnProperty.call(_,X.property))return X}throw new Error("unable to infer src variant")}decode(_,H=0){let X;const me=this.discriminator,ye=me.decode(_,H),Fe=this.registry[ye];if(Fe===void 0){const We=this.defaultLayout;let st=0;this.usesPrefixDiscriminator&&(st=me.layout.span),X=this.makeDestinationObject(),X[me.property]=ye,X[We.property]=We.decode(_,H+st)}else X=Fe.decode(_,H);return X}encode(_,H,X=0){const me=this.getSourceVariant(_);if(me===void 0){const ye=this.discriminator,Fe=this.defaultLayout;let We=0;return this.usesPrefixDiscriminator&&(We=ye.layout.span),ye.encode(_[ye.property],H,X),We+Fe.encode(_[Fe.property],H,X+We)}return me.encode(_,H,X)}addVariant(_,H,X){const me=new D(this,_,H,X);return this.registry[_]=me,me}getVariant(_,H=0){let X;return _ instanceof Uint8Array?X=this.discriminator.decode(_,H):X=_,this.registry[X]}}Oe.Union=ge;class D extends r{constructor(_,H,X,me){if(!(_ instanceof ge))throw new TypeError("union must be a Union");if(!Number.isInteger(H)||0>H)throw new TypeError("variant must be a (non-negative) integer");if(typeof X=="string"&&me===void 0&&(me=X,X=null),X){if(!(X instanceof r))throw new TypeError("layout must be a Layout");if(_.defaultLayout!==null&&0<=X.span&&X.span>_.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof me!="string")throw new TypeError("variant must have a String property")}let ye=_.span;0>_.span&&(ye=X?X.span:0,0<=ye&&_.usesPrefixDiscriminator&&(ye+=_.discriminator.layout.span)),super(ye,me),this.union=_,this.variant=H,this.layout=X||null}getSpan(_,H=0){if(0<=this.span)return this.span;let X=0;this.union.usesPrefixDiscriminator&&(X=this.union.discriminator.layout.span);let me=0;return this.layout&&(me=this.layout.getSpan(_,H+X)),X+me}decode(_,H=0){const X=this.makeDestinationObject();if(this!==this.union.getVariant(_,H))throw new Error("variant mismatch");let me=0;return this.union.usesPrefixDiscriminator&&(me=this.union.discriminator.layout.span),this.layout?X[this.property]=this.layout.decode(_,H+me):this.property?X[this.property]=!0:this.union.usesPrefixDiscriminator&&(X[this.union.discriminator.property]=this.variant),X}encode(_,H,X=0){let me=0;if(this.union.usesPrefixDiscriminator&&(me=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,H,X);let ye=me;if(this.layout&&(this.layout.encode(_[this.property],H,X+me),ye+=this.layout.getSpan(H,X+me),0<=this.union.span&&ye>this.union.span))throw new Error("encoded variant overruns containing union");return ye}fromArray(_){if(this.layout)return this.layout.fromArray(_)}}Oe.VariantLayout=D;function f(g){return 0>g&&(g+=4294967296),g}class R extends r{constructor(_,H,X){if(!(_ instanceof y||_ instanceof A))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof H=="string"&&X===void 0&&(X=H,H=!1),4<_.span)throw new RangeError("word cannot exceed 32 bits");super(_.span,X),this.word=_,this.msb=!!H,this.fields=[];let me=0;this._packedSetValue=function(ye){return me=f(ye),this},this._packedGetValue=function(){return me}}decode(_,H=0){const X=this.makeDestinationObject(),me=this.word.decode(_,H);this._packedSetValue(me);for(const ye of this.fields)ye.property!==void 0&&(X[ye.property]=ye.decode(_));return X}encode(_,H,X=0){const me=this.word.decode(H,X);this._packedSetValue(me);for(const ye of this.fields)if(ye.property!==void 0){const Fe=_[ye.property];Fe!==void 0&&ye.encode(Fe)}return this.word.encode(this._packedGetValue(),H,X)}addField(_,H){const X=new B(this,_,H);return this.fields.push(X),X}addBoolean(_){const H=new $(this,_);return this.fields.push(H),H}fieldFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const H of this.fields)if(H.property===_)return H}}Oe.BitStructure=R;class B{constructor(_,H,X){if(!(_ instanceof R))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(H)||0>=H)throw new TypeError("bits must be positive integer");const me=8*_.span,ye=_.fields.reduce((Fe,We)=>Fe+We.bits,0);if(H+ye>me)throw new Error("bits too long for span remainder ("+(me-ye)+" of "+me+" remain)");this.container=_,this.bits=H,this.valueMask=(1<<H)-1,H===32&&(this.valueMask=4294967295),this.start=ye,this.container.msb&&(this.start=me-ye-H),this.wordMask=f(this.valueMask<<this.start),this.property=X}decode(_,H){const X=this.container._packedGetValue();return f(X&this.wordMask)>>>this.start}encode(_){if(typeof _!="number"||!Number.isInteger(_)||_!==f(_&this.valueMask))throw new TypeError(c("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const H=this.container._packedGetValue(),X=f(_<<this.start);this.container._packedSetValue(f(H&~this.wordMask)|X)}}Oe.BitField=B;class $ extends B{constructor(_,H){super(_,1,H)}decode(_,H){return!!super.decode(_,H)}encode(_){typeof _=="boolean"&&(_=+_),super.encode(_)}}Oe.Boolean=$;class Z extends r{constructor(_,H){if(!(_ instanceof l&&_.isCount()||Number.isInteger(_)&&0<=_))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let X=-1;_ instanceof l||(X=_),super(X,H),this.length=_}getSpan(_,H){let X=this.span;return 0>X&&(X=this.length.decode(_,H)),X}decode(_,H=0){let X=this.span;return 0>X&&(X=this.length.decode(_,H)),n(_).slice(H,H+X)}encode(_,H,X){let me=this.length;if(this.length instanceof l&&(me=_.length),!(_ instanceof Uint8Array&&me===_.length))throw new TypeError(c("Blob.encode",this)+" requires (length "+me+") Uint8Array as src");if(X+me>H.length)throw new RangeError("encoding overruns Uint8Array");const ye=n(_);return n(H).write(ye.toString("hex"),X,me,"hex"),this.length instanceof l&&this.length.encode(me,H,X),me}}Oe.Blob=Z;class ee extends r{constructor(_){super(-1,_)}getSpan(_,H=0){t(_);let X=H;for(;X<_.length&&_[X]!==0;)X+=1;return 1+X-H}decode(_,H=0){const X=this.getSpan(_,H);return n(_).slice(H,H+X-1).toString("utf-8")}encode(_,H,X=0){typeof _!="string"&&(_=String(_));const me=e.Buffer.from(_,"utf8"),ye=me.length;if(X+ye>H.length)throw new RangeError("encoding overruns Buffer");const Fe=n(H);return me.copy(Fe,X),Fe[X+ye]=0,ye+1}}Oe.CString=ee;class ae extends r{constructor(_,H){if(typeof _=="string"&&H===void 0&&(H=_,_=void 0),_===void 0)_=-1;else if(!Number.isInteger(_))throw new TypeError("maxSpan must be an integer");super(-1,H),this.maxSpan=_}getSpan(_,H=0){return t(_),_.length-H}decode(_,H=0){const X=this.getSpan(_,H);if(0<=this.maxSpan&&this.maxSpan<X)throw new RangeError("text length exceeds maxSpan");return n(_).slice(H,H+X).toString("utf-8")}encode(_,H,X=0){typeof _!="string"&&(_=String(_));const me=e.Buffer.from(_,"utf8"),ye=me.length;if(0<=this.maxSpan&&this.maxSpan<ye)throw new RangeError("text length exceeds maxSpan");if(X+ye>H.length)throw new RangeError("encoding overruns Buffer");return me.copy(n(H),X),ye}}Oe.UTF8=ae;class K extends r{constructor(_,H){super(0,H),this.value=_}decode(_,H){return this.value}encode(_,H,X){return 0}}return Oe.Constant=K,Oe.greedy=((g,_)=>new v(g,_)),Oe.offset=((g,_,H)=>new d(g,_,H)),Oe.u8=(g=>new y(1,g)),Oe.u16=(g=>new y(2,g)),Oe.u24=(g=>new y(3,g)),Oe.u32=(g=>new y(4,g)),Oe.u40=(g=>new y(5,g)),Oe.u48=(g=>new y(6,g)),Oe.nu64=(g=>new V(g)),Oe.u16be=(g=>new A(2,g)),Oe.u24be=(g=>new A(3,g)),Oe.u32be=(g=>new A(4,g)),Oe.u40be=(g=>new A(5,g)),Oe.u48be=(g=>new A(6,g)),Oe.nu64be=(g=>new j(g)),Oe.s8=(g=>new O(1,g)),Oe.s16=(g=>new O(2,g)),Oe.s24=(g=>new O(3,g)),Oe.s32=(g=>new O(4,g)),Oe.s40=(g=>new O(5,g)),Oe.s48=(g=>new O(6,g)),Oe.ns64=(g=>new J(g)),Oe.s16be=(g=>new S(2,g)),Oe.s24be=(g=>new S(3,g)),Oe.s32be=(g=>new S(4,g)),Oe.s40be=(g=>new S(5,g)),Oe.s48be=(g=>new S(6,g)),Oe.ns64be=(g=>new W(g)),Oe.f32=(g=>new se(g)),Oe.f32be=(g=>new ue(g)),Oe.f64=(g=>new oe(g)),Oe.f64be=(g=>new Ee(g)),Oe.struct=((g,_,H)=>new ne(g,_,H)),Oe.bits=((g,_,H)=>new R(g,_,H)),Oe.seq=((g,_,H)=>new Re(g,_,H)),Oe.union=((g,_,H)=>new ge(g,_,H)),Oe.unionLayoutDiscriminator=((g,_)=>new de(g,_)),Oe.blob=((g,_)=>new Z(g,_)),Oe.cstr=(g=>new ee(g)),Oe.utf8=((g,_)=>new ae(g,_)),Oe.constant=((g,_)=>new K(g,_)),Oe}var le=Hh(),$h=1,jh=2,Kh=3,Wh=4,zh=5,Zh=6,Yh=7,qh=8,Xh=9,Jh=10,Qh=-32700,e2=-32603,t2=-32602,n2=-32601,r2=-32600,o2=-32019,i2=-32018,s2=-32017,a2=-32016,c2=-32015,u2=-32014,f2=-32013,l2=-32012,d2=-32011,h2=-32010,p2=-32009,m2=-32008,g2=-32007,v2=-32006,y2=-32005,w2=-32004,_2=-32003,E2=-32002,R2=-32001,b2=28e5,A2=2800001,S2=2800002,I2=2800003,O2=2800004,N2=2800005,T2=2800006,x2=2800007,L2=2800008,C2=2800009,M2=2800010,B2=2800011,k2=323e4,D2=32300001,U2=3230002,P2=3230003,F2=3230004,V2=361e4,G2=3610001,H2=3610002,$2=3610003,j2=3610004,K2=3610005,W2=3610006,z2=3610007,Z2=3611e3,Y2=3704e3,q2=3704001,X2=3704002,J2=3704003,Q2=3704004,e3=4128e3,t3=4128001,n3=4128002,r3=4615e3,o3=4615001,i3=4615002,s3=4615003,a3=4615004,c3=4615005,u3=4615006,f3=4615007,l3=4615008,d3=4615009,h3=4615010,p3=4615011,m3=4615012,g3=4615013,v3=4615014,y3=4615015,w3=4615016,_3=4615017,E3=4615018,R3=4615019,b3=4615020,A3=4615021,S3=4615022,I3=4615023,O3=4615024,N3=4615025,T3=4615026,x3=4615027,L3=4615028,C3=4615029,M3=4615030,B3=4615031,k3=4615032,D3=4615033,U3=4615034,P3=4615035,F3=4615036,V3=4615037,G3=4615038,H3=4615039,$3=4615040,j3=4615041,K3=4615042,W3=4615043,z3=4615044,Z3=4615045,Y3=4615046,q3=4615047,X3=4615048,J3=4615049,Q3=4615050,e5=4615051,t5=4615052,n5=4615053,r5=4615054,o5=5508e3,i5=5508001,s5=5508002,a5=5508003,c5=5508004,u5=5508005,f5=5508006,l5=5508007,d5=5508008,h5=5508009,p5=5508010,m5=5508011,g5=5607e3,v5=5607001,y5=5607002,w5=5607003,_5=5607004,E5=5607005,R5=5607006,b5=5607007,A5=5607008,S5=5607009,I5=5607010,O5=5607011,N5=5607012,T5=5607013,x5=5607014,L5=5607015,C5=5607016,M5=5607017,B5=5663e3,k5=5663001,D5=5663002,U5=5663003,P5=5663004,F5=5663005,V5=5663006,G5=5663007,H5=5663008,$5=5663009,j5=5663010,K5=5663011,W5=5663012,z5=5663013,Z5=5663014,Y5=5663015,q5=5663016,X5=5663017,J5=5663018,Q5=5663019,ep=5663020,tp=5663021,np=5663022,rp=705e4,op=7050001,ip=7050002,sp=7050003,ap=7050004,cp=7050005,up=7050006,fp=7050007,lp=7050008,dp=7050009,hp=7050010,pp=7050011,mp=7050012,gp=7050013,vp=7050014,yp=7050015,wp=7050016,_p=7050017,Ep=7050018,Rp=7050019,bp=7050020,Ap=7050021,Sp=7050022,Ip=7050023,Op=7050024,Np=7050025,Tp=7050026,xp=7050027,Lp=7050028,Cp=7050029,Mp=7050030,Bp=7050031,kp=7050032,Dp=7050033,Up=7050034,Pp=7050035,Fp=7050036,Vp=7618e3,Gp=7618001,Hp=7618002,$p=7618003,jp=7618004,Kp=7618005,Wp=7618006,zp=7618007,Zp=7618008,Yp=7618009,e0=8078e3,t0=8078001,qp=8078002,Xp=8078003,n0=8078004,r0=8078005,o0=8078006,Jp=8078007,Qp=8078008,e6=8078009,t6=8078010,i0=8078011,n6=8078012,r6=8078013,o6=8078014,i6=8078015,s6=8078016,a6=8078017,c6=8078018,u6=8078019,f6=8078020,l6=8078021,d6=8078022,h6=8078023,p6=81e5,m6=8100001,g6=8100002,v6=8100003,y6=819e4,w6=8190001,_6=8190002,E6=8190003,R6=8190004,b6=99e5,A6=9900001,S6=9900002,I6=9900003,O6=9900004,N6=9900005,T6=9900006;function s0(e){return Array.isArray(e)?"%5B"+e.map(s0).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function x6([e,t]){return`${e}=${s0(t)}`}function L6(e){const t=Object.entries(e).map(x6).join("&");return btoa(t)}var C6={[k2]:"Account not found at address: $address",[F2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[P2]:"Expected decoded account at address: $address",[U2]:"Failed to decode account data at address: $address",[D2]:"Accounts not found at addresses: $addresses",[C2]:"Unable to find a viable program address bump seed.",[S2]:"$putativeAddress is not a base58-encoded address.",[b2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[I2]:"The `CryptoKey` must be an `Ed25519` public key.",[B2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[L2]:"Invalid seeds; point must fall off the Ed25519 curve.",[O2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[T2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[x2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[N2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[M2]:"Program address cannot end with PDA marker.",[A2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Wh]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[$h]:"The network has progressed past the last block for which this transaction could have been committed.",[e0]:"Codec [$codecDescription] cannot decode empty byte arrays.",[d6]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[f6]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[r0]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[o0]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[n0]:"Encoder and decoder must either both be fixed-size or variable-size.",[Qp]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[qp]:"Expected a fixed-size codec, got a variable-size one.",[r6]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Xp]:"Expected a variable-size codec, got a fixed-size one.",[u6]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[t0]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[c6]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[e6]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[t6]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[i6]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Jp]:"Expected [$codecDescription] to have $expected items, got $actual.",[n6]:"Invalid value $value for base $base with alphabet $alphabet.",[s6]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[i0]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[o6]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[l6]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[a6]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[h6]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Z2]:"No random values implementation could be found.",[d3]:"instruction requires an uninitialized account",[I3]:"instruction tries to borrow reference for an account which is already borrowed",[O3]:"instruction left account with an outstanding borrowed reference",[A3]:"program other than the account's owner changed the size of the account data",[c3]:"account data too small for instruction",[S3]:"instruction expected an executable account",[Y3]:"An account does not have enough lamports to be rent-exempt",[X3]:"Program arithmetic overflowed",[Z3]:"Failed to serialize or deserialize account data: $encodedData",[r5]:"Builtin programs must consume compute units",[k3]:"Cross-program invocation call depth too deep",[G3]:"Computational budget exceeded",[T3]:"custom program error: #$code",[_3]:"instruction contains duplicate accounts",[N3]:"instruction modifications of multiply-passed account differ",[M3]:"executable accounts must be rent exempt",[L3]:"instruction changed executable accounts data",[C3]:"instruction changed the balance of an executable account",[E3]:"instruction changed executable bit of an account",[v3]:"instruction modified data of an account it does not own",[g3]:"instruction spent from the balance of an account it does not own",[o3]:"generic instruction error",[Q3]:"Provided owner is not allowed",[W3]:"Account is immutable",[z3]:"Incorrect authority provided",[f3]:"incorrect program id for instruction",[u3]:"insufficient funds for instruction",[a3]:"invalid account data for instruction",[q3]:"Invalid account owner",[i3]:"invalid program argument",[x3]:"program returned invalid error code",[s3]:"invalid instruction data",[V3]:"Failed to reallocate account data",[F3]:"Provided seeds do not result in a valid address",[e5]:"Accounts data allocations exceeded the maximum allowed per transaction",[t5]:"Max accounts exceeded",[n5]:"Max instruction trace length exceeded",[P3]:"Length of the seed is too long for address generation",[D3]:"An account required by the instruction is missing",[l3]:"missing required signature for instruction",[m3]:"instruction illegally modified the program id of an account",[b3]:"insufficient account keys for instruction",[H3]:"Cross-program invocation with unauthorized signer or writable account",[$3]:"Failed to create program execution environment",[K3]:"Program failed to compile",[j3]:"Program failed to complete",[w3]:"instruction modified data of a read-only account",[y3]:"instruction changed the balance of a read-only account",[U3]:"Cross-program invocation reentrancy not allowed for this instruction",[R3]:"instruction modified rent epoch of an account",[p3]:"sum of account balances before and after instruction do not match",[h3]:"instruction requires an initialized account",[r3]:"",[B3]:"Unsupported program id",[J3]:"Unsupported sysvar",[N6]:"Invalid instruction plan kind: $kind.",[Hp]:"The provided instruction plan is empty.",[Kp]:"No failed transaction plan result was found in the provided transaction plan result.",[jp]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[$p]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[Vp]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[T6]:"Invalid transaction plan kind: $kind.",[Gp]:"No more instructions to pack; the message packer has completed the instruction plan.",[Wp]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[zp]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[Zp]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[Yp]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[e3]:"The instruction does not have any accounts.",[t3]:"The instruction does not have any data.",[n3]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[zh]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[jh]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[S6]:"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",[O6]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[A6]:"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",[b6]:"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",[I6]:"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",[e2]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[t2]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[r2]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[n2]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Qh]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[l2]:"$__serverMessage",[R2]:"$__serverMessage",[w2]:"$__serverMessage",[u2]:"$__serverMessage",[s2]:"Epoch rewards period still active at slot $slot",[h2]:"$__serverMessage",[p2]:"$__serverMessage",[o2]:"Failed to query long-term storage; please try again",[a2]:"Minimum context slot has not been reached",[y2]:"Node is unhealthy; behind by $numSlotsBehind slots",[m2]:"No snapshot",[E2]:"Transaction simulation failed",[i2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[g2]:"$__serverMessage",[d2]:"Transaction history is not available from this node",[v2]:"$__serverMessage",[f2]:"Transaction signature length mismatch",[_2]:"Transaction signature verification failure",[c2]:"$__serverMessage",[Y2]:"Key pair bytes must be of length 64, got $byteLength.",[q2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[X2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Q2]:"The provided private key does not match the provided public key.",[J2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Zh]:"Lamports value must be in the range [0, 2e64-1]",[Yh]:"`$value` cannot be parsed as a `BigInt`",[Jh]:"$message",[qh]:"`$value` cannot be parsed as a `Number`",[Kh]:"No nonce account could be found at address `$nonceAccountAddress`",[w5]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[T5]:"Attempted to sign an offchain message with an address that is not a signer for it",[y5]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[N5]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[g5]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[b5]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[A5]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[S5]:"Offchain message content must be non-empty",[E5]:"Offchain message must specify the address of at least one required signer",[I5]:"Offchain message envelope must reserve space for at least one signature",[_5]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[L5]:"The signatories of this offchain message must be listed in lexicographical order",[C5]:"An address must be listed no more than once among the signatories of an offchain message",[O5]:"Offchain message is missing signatures for addresses: $addresses.",[M5]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[v5]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[x5]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[R5]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[y6]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[_6]:"WebSocket was closed before payload could be added to the send buffer",[E6]:"WebSocket connection closed",[R6]:"WebSocket failed to connect",[w6]:"Failed to obtain a subscription id from the server",[v6]:"Could not find an API plan for RPC method: `$method`",[p6]:"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`.",[g6]:"HTTP error ($statusCode): $message",[m6]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[o5]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[i5]:"The provided value does not implement the `KeyPairSigner` interface",[a5]:"The provided value does not implement the `MessageModifyingSigner` interface",[c5]:"The provided value does not implement the `MessagePartialSigner` interface",[s5]:"The provided value does not implement any of the `MessageSigner` interfaces",[f5]:"The provided value does not implement the `TransactionModifyingSigner` interface",[l5]:"The provided value does not implement the `TransactionPartialSigner` interface",[d5]:"The provided value does not implement the `TransactionSendingSigner` interface",[u5]:"The provided value does not implement any of the `TransactionSigner` interfaces",[h5]:"More than one `TransactionSendingSigner` was identified.",[p5]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[m5]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[z2]:"Cannot export a non-extractable key.",[G2]:"No digest implementation could be found.",[V2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[H2]:`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.`,[Ph]:"No signature verification implementation could be found.",[Fh]:"No key generation implementation could be found.",[Vh]:"No signing implementation could be found.",[Hh]:"No key export implementation could be found.",[X1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Zp]:"Transaction processing left an account with an outstanding borrowed reference",[Bp]:"Account in use",[Mp]:"Account loaded twice",[kp]:"Attempt to debit an account but found no record of a prior credit.",[ev]:"Transaction loads an address table account that doesn't exist",[Fp]:"This transaction has already been processed",[Vp]:"Blockhash not found",[Hp]:"Loader call chain is too deep",[Kp]:"Transactions are currently disabled due to cluster maintenance",[uv]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Up]:"Insufficient funds for fee",[cv]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Pp]:"This account may not be used to pay transaction fees",[jp]:"Transaction contains an invalid account reference",[rv]:"Transaction loads an address table account with invalid data",[iv]:"Transaction address table lookup uses an invalid index",[nv]:"Transaction loads an address table account with an invalid owner",[lv]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[zp]:"This program may not be used for executing instructions",[ov]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[qp]:"Transaction loads a writable account that cannot be written",[fv]:"Transaction exceeded max loaded accounts data size cap",[Gp]:"Transaction requires a fee but has no signature present",[Dp]:"Attempt to load a program that does not exist",[hv]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[dv]:"ResanitizationNeeded",[Wp]:"Transaction failed to sanitize accounts offsets correctly",[Yp]:"Transaction did not pass signature verification",[tv]:"Transaction locked too many accounts",[pv]:"Sum of account balances before and after transaction do not match",[Lp]:"The transaction failed with the error `$errorName`",[$p]:"Transaction version is unsupported",[Qp]:"Transaction would exceed account data limit within the block",[av]:"Transaction would exceed total account data limit",[Jp]:"Transaction would exceed max account limit within the block",[Xp]:"Transaction would exceed max Block Cost Limit",[sv]:"Transaction would exceed max Vote Cost Limit",[Ip]:"Attempted to sign a transaction with an address that is not a signer for it",[_p]:"Transaction is missing an address at index: $index.",[Op]:"Transaction has no expected signers therefore it cannot be encoded",[Cp]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[hp]:"Transaction does not have a blockhash lifetime",[pp]:"Transaction is not a durable nonce transaction",[mp]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[gp]:"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",[wp]:"No fee payer set in CompiledTransaction",[yp]:"Could not find program address at index $index",[Np]:"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",[xp]:"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",[bp]:"Transaction is missing a fee payer.",[Rp]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Sp]:"Transaction first instruction is not advance nonce account instruction.",[Ap]:"Transaction with no instructions cannot be durable nonce transaction.",[lp]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[dp]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Tp]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[Ep]:"Transaction is missing signatures for addresses: $addresses.",[vp]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},sr="i",$n="t";function Xv(t,n={}){const r=Zv[t];if(r.length===0)return"";let e;function u(f){if(e[$n]===2){const m=r.slice(e[sr]+1,f);a.push(m in n?`${n[m]}`:`$${m}`)}else e[$n]===1&&a.push(r.slice(e[sr],f))}const a=[];return r.split("").forEach((f,m)=>{if(m===0){e={[sr]:0,[$n]:r[0]==="\\"?0:r[0]==="$"?2:1};return}let d;switch(e[$n]){case 0:d={[sr]:m,[$n]:1};break;case 1:f==="\\"?d={[sr]:m,[$n]:0}:f==="$"&&(d={[sr]:m,[$n]:2});break;case 2:f==="\\"?d={[sr]:m,[$n]:0}:f==="$"?d={[sr]:m,[$n]:2}:f.match(/\w/)||(d={[sr]:m,[$n]:1});break}d&&(e!==d&&u(m),e=d)}),u(),a.join("")}function $v(t,n={}){if(process.env.NODE_ENV!=="production")return Xv(t,n);{let r=`Solana error #${t}; Decode this error by running \`npx @solana/errors decode -- ${t}`;return Object.keys(n).length&&(r+=` '${Kv(n)}'`),`${r}\``}}var ri=class extends Error{cause=this.cause;context;constructor(...[t,n]){let r,e;if(n){const{cause:a,...f}=n;a&&(e={cause:a}),Object.keys(f).length>0&&(r=f)}const u=$v(t,r);super(u,e),this.context={__code:t,...r},this.name="SolanaError"}};function qv(t,n){return"fixedSize"in n?n.fixedSize:n.getSizeFromValue(t)}function Jv(t){return Object.freeze({...t,encode:n=>{const r=new Uint8Array(qv(n,t));return t.write(n,r,0),r}})}function Qv(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 t3(t,n){if(ii(t)!==ii(n))throw new ri(bc);if(ii(t)&&ii(n)&&t.fixedSize!==n.fixedSize)throw new ri(Rc,{decoderFixedSize:n.fixedSize,encoderFixedSize:t.fixedSize});if(!ii(t)&&!ii(n)&&t.maxSize!==n.maxSize)throw new ri(Ac,{decoderMaxSize:n.maxSize,encoderMaxSize:t.maxSize});return{...n,...t,decode:n.decode,encode:t.encode,read:n.read,write:t.write}}function e3(t,n,r=0){if(n.length-r<=0)throw new ri(Ec,{codecDescription:t})}function n3(t,n,r,e=0){const u=r.length-e;if(u<n)throw new ri(_c,{bytesLength:u,codecDescription:t,expected:n})}function r3(t,n,r,e){if(e<n||e>r)throw new ri(Sc,{codecDescription:t,max:r,min:n,value:e})}function Oc(t){return t?.endian!==1}function i3(t){return Jv({fixedSize:t.size,write(n,r,e){t.range&&r3(t.name,t.range[0],t.range[1],n);const u=new ArrayBuffer(t.size);return t.set(new DataView(u),n,Oc(t.config)),r.set(new Uint8Array(u),e),e+t.size}})}function o3(t){return Qv({fixedSize:t.size,read(n,r=0){e3(t.name,n,r),n3(t.name,t.size,n,r);const e=new DataView(s3(n,r,t.size));return[t.get(e,Oc(t.config)),r+t.size]}})}function s3(t,n,r){const e=t.byteOffset+(n??0),u=r??t.byteLength;return t.buffer.slice(e,e+u)}var a3=(t={})=>i3({config:t,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(n,r,e)=>n.setBigUint64(0,BigInt(r),e),size:8}),u3=(t={})=>o3({config:t,get:(n,r)=>n.getBigUint64(0,r),name:"u64",size:8}),c3=(t={})=>t3(a3(t),u3(t));class f3 extends TypeError{constructor(n,r){let e;const{message:u,explanation:a,...f}=n,{path:m}=n,d=m.length===0?u:`At path: ${m.join(".")} -- ${u}`;super(a??d),a!=null&&(this.cause=d),Object.assign(this,f),this.name=this.constructor.name,this.failures=()=>e??(e=[n,...r()])}}function l3(t){return xi(t)&&typeof t[Symbol.iterator]=="function"}function xi(t){return typeof t=="object"&&t!=null}function Bo(t){return xi(t)&&!Array.isArray(t)}function Hn(t){return typeof t=="symbol"?t.toString():typeof t=="string"?JSON.stringify(t):`${t}`}function d3(t){const{done:n,value:r}=t.next();return n?void 0:r}function h3(t,n,r,e){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});const{path:u,branch:a}=n,{type:f}=r,{refinement:m,message:d=`Expected a value of type \`${f}\`${m?` with refinement \`${m}\``:""}, but received: \`${Hn(e)}\``}=t;return{value:e,type:f,refinement:m,key:u[u.length-1],path:u,branch:a,...t,message:d}}function*Tc(t,n,r,e){l3(t)||(t=[t]);for(const u of t){const a=h3(u,n,r,e);a&&(yield a)}}function*Ks(t,n,r={}){const{path:e=[],branch:u=[t],coerce:a=!1,mask:f=!1}=r,m={path:e,branch:u,mask:f};a&&(t=n.coercer(t,m));let d="valid";for(const _ of n.validator(t,m))_.explanation=r.message,d="not_valid",yield[_,void 0];for(let[_,N,C]of n.entries(t,m)){const T=Ks(N,C,{path:_===void 0?e:[...e,_],branch:_===void 0?u:[...u,N],coerce:a,mask:f,message:r.message});for(const x of T)x[0]?(d=x[0].refinement!=null?"not_refined":"not_valid",yield[x[0],void 0]):a&&(N=x[1],_===void 0?t=N:t instanceof Map?t.set(_,N):t instanceof Set?t.add(N):xi(t)&&(N!==void 0||_ in t)&&(t[_]=N))}if(d!=="not_valid")for(const _ of n.refiner(t,m))_.explanation=r.message,d="not_refined",yield[_,void 0];d==="valid"&&(yield[void 0,t])}let qn=class{constructor(n){const{type:r,schema:e,validator:u,refiner:a,coercer:f=d=>d,entries:m=function*(){}}=n;this.type=r,this.schema=e,this.entries=m,this.coercer=f,u?this.validator=(d,_)=>{const N=u(d,_);return Tc(N,_,this,d)}:this.validator=()=>[],a?this.refiner=(d,_)=>{const N=a(d,_);return Tc(N,_,this,d)}:this.refiner=()=>[]}assert(n,r){return p3(n,this,r)}create(n,r){return Ci(n,this,r)}is(n){return Nc(n,this)}mask(n,r){return v3(n,this,r)}validate(n,r={}){return Li(n,this,r)}};function p3(t,n,r){const e=Li(t,n,{message:r});if(e[0])throw e[0]}function Ci(t,n,r){const e=Li(t,n,{coerce:!0,message:r});if(e[0])throw e[0];return e[1]}function v3(t,n,r){const e=Li(t,n,{coerce:!0,mask:!0,message:r});if(e[0])throw e[0];return e[1]}function Nc(t,n){return!Li(t,n)[0]}function Li(t,n,r={}){const e=Ks(t,n,r),u=d3(e);return u[0]?[new f3(u[0],function*(){for(const f of e)f[0]&&(yield f[0])}),void 0]:[void 0,u[1]]}function Fr(t,n){return new qn({type:t,schema:null,validator:n})}function m3(){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: ${Hn(n)}`}})}function Jn(){return Fr("boolean",t=>typeof t=="boolean")}function Zs(t){return Fr("instance",n=>n instanceof t||`Expected a \`${t.name}\` instance, but received: ${Hn(n)}`)}function Ye(t){const n=Hn(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: ${Hn(e)}`}})}function g3(){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: ${Hn(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 xc(t,n){return new qn({type:"record",schema:null,*entries(r){if(xi(r))for(const e in r){const u=r[e];yield[e,e,t],yield[e,u,n]}},validator(r){return Bo(r)||`Expected an object, but received: ${Hn(r)}`},coercer(r){return Bo(r)?{...r}:r}})}function qt(){return Fr("string",t=>typeof t=="string"||`Expected a string, but received: ${Hn(t)}`)}function Xs(t){const n=g3();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: ${Hn(r)}`},coercer(r){return Array.isArray(r)?r.slice():r}})}function Ft(t){const n=Object.keys(t);return new qn({type:"type",schema:t,*entries(r){if(xi(r))for(const e of n)yield[e,r[e],t[e]]},validator(r){return Bo(r)||`Expected an object, but received: ${Hn(r)}`},coercer(r){return Bo(r)?{...r}:r}})}function On(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,f]=u.validate(r,{coerce:!0,mask:e.mask});if(!a)return f}return r},validator(r,e){const u=[];for(const a of t){const[...f]=Ks(r,a,e),[m]=f;if(m[0])for(const[d]of f)d&&u.push(d);else return[]}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${Hn(r)}`,...u]}})}function oi(){return Fr("unknown",()=>!0)}function Bi(t,n,r){return new qn({...t,coercer:(e,u)=>Nc(e,n)?t.coercer(r(e,u),u):t.coercer(e,u)})}var Mo,y3=new Uint8Array(16);function Cc(){if(!Mo&&(Mo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mo(y3)}const w3=/^(?:[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 ko(t){return typeof t=="string"&&w3.test(t)}for(var mn=[],$s=0;$s<256;++$s)mn.push(($s+256).toString(16).substr(1));function Do(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(mn[t[n+0]]+mn[t[n+1]]+mn[t[n+2]]+mn[t[n+3]]+"-"+mn[t[n+4]]+mn[t[n+5]]+"-"+mn[t[n+6]]+mn[t[n+7]]+"-"+mn[t[n+8]]+mn[t[n+9]]+"-"+mn[t[n+10]]+mn[t[n+11]]+mn[t[n+12]]+mn[t[n+13]]+mn[t[n+14]]+mn[t[n+15]]).toLowerCase();if(!ko(r))throw TypeError("Stringified UUID is invalid");return r}var Lc,qs,Js=0,Qs=0;function E3(t,n,r){var e=n&&r||0,u=n||new Array(16);t=t||{};var a=t.node||Lc,f=t.clockseq!==void 0?t.clockseq:qs;if(a==null||f==null){var m=t.random||(t.rng||Cc)();a==null&&(a=Lc=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),f==null&&(f=qs=(m[6]<<8|m[7])&16383)}var d=t.msecs!==void 0?t.msecs:Date.now(),_=t.nsecs!==void 0?t.nsecs:Qs+1,N=d-Js+(_-Qs)/1e4;if(N<0&&t.clockseq===void 0&&(f=f+1&16383),(N<0||d>Js)&&t.nsecs===void 0&&(_=0),_>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Js=d,Qs=_,qs=f,d+=122192928e5;var C=((d&268435455)*1e4+_)%4294967296;u[e++]=C>>>24&255,u[e++]=C>>>16&255,u[e++]=C>>>8&255,u[e++]=C&255;var T=d/4294967296*1e4&268435455;u[e++]=T>>>8&255,u[e++]=T&255,u[e++]=T>>>24&15|16,u[e++]=T>>>16&255,u[e++]=f>>>8|128,u[e++]=f&255;for(var x=0;x<6;++x)u[e+x]=a[x];return n||Do(u)}function Bc(t){if(!ko(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 _3(t){t=unescape(encodeURIComponent(t));for(var n=[],r=0;r<t.length;++r)n.push(t.charCodeAt(r));return n}var b3="6ba7b810-9dad-11d1-80b4-00c04fd430c8",R3="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Mc(t,n,r){function e(u,a,f,m){if(typeof u=="string"&&(u=_3(u)),typeof a=="string"&&(a=Bc(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+u.length);if(d.set(a),d.set(u,a.length),d=r(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,f){m=m||0;for(var _=0;_<16;++_)f[m+_]=d[_];return f}return Do(d)}try{e.name=t}catch{}return e.DNS=b3,e.URL=R3,e}function A3(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 S3(I3(O3(t),t.length*8))}function S3(t){for(var n=[],r=t.length*32,e="0123456789abcdef",u=0;u<r;u+=8){var a=t[u>>5]>>>u%32&255,f=parseInt(e.charAt(a>>>4&15)+e.charAt(a&15),16);n.push(f)}return n}function kc(t){return(t+64>>>9<<4)+14+1}function I3(t,n){t[n>>5]|=128<<n%32,t[kc(n)-1]=n;for(var r=1732584193,e=-271733879,u=-1732584194,a=271733878,f=0;f<t.length;f+=16){var m=r,d=e,_=u,N=a;r=wn(r,e,u,a,t[f],7,-680876936),a=wn(a,r,e,u,t[f+1],12,-389564586),u=wn(u,a,r,e,t[f+2],17,606105819),e=wn(e,u,a,r,t[f+3],22,-1044525330),r=wn(r,e,u,a,t[f+4],7,-176418897),a=wn(a,r,e,u,t[f+5],12,1200080426),u=wn(u,a,r,e,t[f+6],17,-1473231341),e=wn(e,u,a,r,t[f+7],22,-45705983),r=wn(r,e,u,a,t[f+8],7,1770035416),a=wn(a,r,e,u,t[f+9],12,-1958414417),u=wn(u,a,r,e,t[f+10],17,-42063),e=wn(e,u,a,r,t[f+11],22,-1990404162),r=wn(r,e,u,a,t[f+12],7,1804603682),a=wn(a,r,e,u,t[f+13],12,-40341101),u=wn(u,a,r,e,t[f+14],17,-1502002290),e=wn(e,u,a,r,t[f+15],22,1236535329),r=En(r,e,u,a,t[f+1],5,-165796510),a=En(a,r,e,u,t[f+6],9,-1069501632),u=En(u,a,r,e,t[f+11],14,643717713),e=En(e,u,a,r,t[f],20,-373897302),r=En(r,e,u,a,t[f+5],5,-701558691),a=En(a,r,e,u,t[f+10],9,38016083),u=En(u,a,r,e,t[f+15],14,-660478335),e=En(e,u,a,r,t[f+4],20,-405537848),r=En(r,e,u,a,t[f+9],5,568446438),a=En(a,r,e,u,t[f+14],9,-1019803690),u=En(u,a,r,e,t[f+3],14,-187363961),e=En(e,u,a,r,t[f+8],20,1163531501),r=En(r,e,u,a,t[f+13],5,-1444681467),a=En(a,r,e,u,t[f+2],9,-51403784),u=En(u,a,r,e,t[f+7],14,1735328473),e=En(e,u,a,r,t[f+12],20,-1926607734),r=_n(r,e,u,a,t[f+5],4,-378558),a=_n(a,r,e,u,t[f+8],11,-2022574463),u=_n(u,a,r,e,t[f+11],16,1839030562),e=_n(e,u,a,r,t[f+14],23,-35309556),r=_n(r,e,u,a,t[f+1],4,-1530992060),a=_n(a,r,e,u,t[f+4],11,1272893353),u=_n(u,a,r,e,t[f+7],16,-155497632),e=_n(e,u,a,r,t[f+10],23,-1094730640),r=_n(r,e,u,a,t[f+13],4,681279174),a=_n(a,r,e,u,t[f],11,-358537222),u=_n(u,a,r,e,t[f+3],16,-722521979),e=_n(e,u,a,r,t[f+6],23,76029189),r=_n(r,e,u,a,t[f+9],4,-640364487),a=_n(a,r,e,u,t[f+12],11,-421815835),u=_n(u,a,r,e,t[f+15],16,530742520),e=_n(e,u,a,r,t[f+2],23,-995338651),r=bn(r,e,u,a,t[f],6,-198630844),a=bn(a,r,e,u,t[f+7],10,1126891415),u=bn(u,a,r,e,t[f+14],15,-1416354905),e=bn(e,u,a,r,t[f+5],21,-57434055),r=bn(r,e,u,a,t[f+12],6,1700485571),a=bn(a,r,e,u,t[f+3],10,-1894986606),u=bn(u,a,r,e,t[f+10],15,-1051523),e=bn(e,u,a,r,t[f+1],21,-2054922799),r=bn(r,e,u,a,t[f+8],6,1873313359),a=bn(a,r,e,u,t[f+15],10,-30611744),u=bn(u,a,r,e,t[f+6],15,-1560198380),e=bn(e,u,a,r,t[f+13],21,1309151649),r=bn(r,e,u,a,t[f+4],6,-145523070),a=bn(a,r,e,u,t[f+11],10,-1120210379),u=bn(u,a,r,e,t[f+2],15,718787259),e=bn(e,u,a,r,t[f+9],21,-343485551),r=Er(r,m),e=Er(e,d),u=Er(u,_),a=Er(a,N)}return[r,e,u,a]}function O3(t){if(t.length===0)return[];for(var n=t.length*8,r=new Uint32Array(kc(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 T3(t,n){return t<<n|t>>>32-n}function Uo(t,n,r,e,u,a){return Er(T3(Er(Er(n,t),Er(e,a)),u),r)}function wn(t,n,r,e,u,a,f){return Uo(n&r|~n&e,t,n,u,a,f)}function En(t,n,r,e,u,a,f){return Uo(n&e|r&~e,t,n,u,a,f)}function _n(t,n,r,e,u,a,f){return Uo(n^r^e,t,n,u,a,f)}function bn(t,n,r,e,u,a,f){return Uo(r^(n|~e),t,n,u,a,f)}var N3=Mc("v3",48,A3);function x3(t,n,r){t=t||{};var e=t.random||(t.rng||Cc)();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 Do(e)}function C3(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 ta(t,n){return t<<n|t>>>32-n}function L3(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,f=Math.ceil(a/16),m=new Array(f),d=0;d<f;++d){for(var _=new Uint32Array(16),N=0;N<16;++N)_[N]=t[d*64+N*4]<<24|t[d*64+N*4+1]<<16|t[d*64+N*4+2]<<8|t[d*64+N*4+3];m[d]=_}m[f-1][14]=(t.length-1)*8/Math.pow(2,32),m[f-1][14]=Math.floor(m[f-1][14]),m[f-1][15]=(t.length-1)*8&4294967295;for(var C=0;C<f;++C){for(var T=new Uint32Array(80),x=0;x<16;++x)T[x]=m[C][x];for(var k=16;k<80;++k)T[k]=ta(T[k-3]^T[k-8]^T[k-14]^T[k-16],1);for(var U=r[0],Y=r[1],z=r[2],J=r[3],Z=r[4],et=0;et<80;++et){var ht=Math.floor(et/20),ut=ta(U,5)+C3(ht,Y,z,J)+Z+n[ht]+T[et]>>>0;Z=J,J=z,z=ta(Y,30)>>>0,Y=U,U=ut}r[0]=r[0]+U>>>0,r[1]=r[1]+Y>>>0,r[2]=r[2]+z>>>0,r[3]=r[3]+J>>>0,r[4]=r[4]+Z>>>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 B3=Mc("v5",80,L3);const M3="00000000-0000-0000-0000-000000000000";function k3(t){if(!ko(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}const Dc=bs(Object.freeze(Object.defineProperty({__proto__:null,NIL:M3,parse:Bc,stringify:Do,v1:E3,v3:N3,v4:x3,v5:B3,validate:ko,version:k3},Symbol.toStringTag,{value:"Module"})));var ea,Uc;function D3(){if(Uc)return ea;Uc=1;const t=Dc.v4;return ea=function(r,e,u,a){if(typeof r!="string")throw new TypeError(r+" must be a string");a=a||{};const f=typeof a.version=="number"?a.version:2;if(f!==1&&f!==2)throw new TypeError(f+" must be 1 or 2");const m={method:r};if(f===2&&(m.jsonrpc="2.0"),e){if(typeof e!="object"&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");m.params=e}if(typeof u>"u"){const d=typeof a.generator=="function"?a.generator:function(){return t()};m.id=d(m,a)}else f===2&&u===null?a.notificationIdNull&&(m.id=null):m.id=u;return m},ea}var na,Pc;function U3(){if(Pc)return na;Pc=1;const t=Dc.v4,n=D3(),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 na=r,r.prototype.request=function(e,u,a,f){const m=this;let d=null;const _=Array.isArray(e)&&typeof u=="function";if(this.options.version===1&&_)throw new TypeError("JSON-RPC 1.0 does not support batching");if(_||!_&&e&&typeof e=="object"&&typeof u=="function")f=u,d=e;else{typeof a=="function"&&(f=a,a=void 0);const T=typeof f=="function";try{d=n(e,u,a,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(x){if(T)return f(x);throw x}if(!T)return d}let C;try{C=JSON.stringify(d,this.options.replacer)}catch(T){return f(T)}return this.callServer(C,function(T,x){m._parseResponse(T,x,f)}),d},r.prototype._parseResponse=function(e,u,a){if(e){a(e);return}if(!u)return a();let f;try{f=JSON.parse(u,this.options.reviver)}catch(m){return a(m)}if(a.length===3)if(Array.isArray(f)){const m=function(_){return typeof _.error<"u"},d=function(_){return!m(_)};return a(null,f.filter(m),f.filter(d))}else return a(null,f.error,f.result);a(null,f)},na}U3();var ra={exports:{}},Fc;function P3(){return Fc||(Fc=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(d,_,N){this.fn=d,this.context=_,this.once=N||!1}function a(d,_,N,C,T){if(typeof N!="function")throw new TypeError("The listener must be a function");var x=new u(N,C||d,T),k=r?r+_:_;return d._events[k]?d._events[k].fn?d._events[k]=[d._events[k],x]:d._events[k].push(x):(d._events[k]=x,d._eventsCount++),d}function f(d,_){--d._eventsCount===0?d._events=new e:delete d._events[_]}function m(){this._events=new e,this._eventsCount=0}m.prototype.eventNames=function(){var _=[],N,C;if(this._eventsCount===0)return _;for(C in N=this._events)n.call(N,C)&&_.push(r?C.slice(1):C);return Object.getOwnPropertySymbols?_.concat(Object.getOwnPropertySymbols(N)):_},m.prototype.listeners=function(_){var N=r?r+_:_,C=this._events[N];if(!C)return[];if(C.fn)return[C.fn];for(var T=0,x=C.length,k=new Array(x);T<x;T++)k[T]=C[T].fn;return k},m.prototype.listenerCount=function(_){var N=r?r+_:_,C=this._events[N];return C?C.fn?1:C.length:0},m.prototype.emit=function(_,N,C,T,x,k){var U=r?r+_:_;if(!this._events[U])return!1;var Y=this._events[U],z=arguments.length,J,Z;if(Y.fn){switch(Y.once&&this.removeListener(_,Y.fn,void 0,!0),z){case 1:return Y.fn.call(Y.context),!0;case 2:return Y.fn.call(Y.context,N),!0;case 3:return Y.fn.call(Y.context,N,C),!0;case 4:return Y.fn.call(Y.context,N,C,T),!0;case 5:return Y.fn.call(Y.context,N,C,T,x),!0;case 6:return Y.fn.call(Y.context,N,C,T,x,k),!0}for(Z=1,J=new Array(z-1);Z<z;Z++)J[Z-1]=arguments[Z];Y.fn.apply(Y.context,J)}else{var et=Y.length,ht;for(Z=0;Z<et;Z++)switch(Y[Z].once&&this.removeListener(_,Y[Z].fn,void 0,!0),z){case 1:Y[Z].fn.call(Y[Z].context);break;case 2:Y[Z].fn.call(Y[Z].context,N);break;case 3:Y[Z].fn.call(Y[Z].context,N,C);break;case 4:Y[Z].fn.call(Y[Z].context,N,C,T);break;default:if(!J)for(ht=1,J=new Array(z-1);ht<z;ht++)J[ht-1]=arguments[ht];Y[Z].fn.apply(Y[Z].context,J)}}return!0},m.prototype.on=function(_,N,C){return a(this,_,N,C,!1)},m.prototype.once=function(_,N,C){return a(this,_,N,C,!0)},m.prototype.removeListener=function(_,N,C,T){var x=r?r+_:_;if(!this._events[x])return this;if(!N)return f(this,x),this;var k=this._events[x];if(k.fn)k.fn===N&&(!T||k.once)&&(!C||k.context===C)&&f(this,x);else{for(var U=0,Y=[],z=k.length;U<z;U++)(k[U].fn!==N||T&&!k[U].once||C&&k[U].context!==C)&&Y.push(k[U]);Y.length?this._events[x]=Y.length===1?Y[0]:Y:f(this,x)}return this},m.prototype.removeAllListeners=function(_){var N;return _?(N=r?r+_:_,this._events[N]&&f(this,N)):(this._events=new e,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prefixed=r,m.EventEmitter=m,t.exports=m})(ra)),ra.exports}P3();class Vc extends Iu{constructor(n,r){super(),this.finished=!1,this.destroyed=!1,Ru(n);const e=Os(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 f=0;f<a.length;f++)a[f]^=54;this.iHash.update(a),this.oHash=n.create();for(let f=0;f<a.length;f++)a[f]^=106;this.oHash.update(a),Jr(a)}update(n){return go(this),this.iHash.update(n),this}digestInto(n){go(this),Lr(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:f,outputLen:m}=this;return n=n,n.finished=u,n.destroyed=a,n.blockLen=f,n.outputLen=m,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 Hc=(t,n,r)=>new Vc(t,n).update(r).digest();Hc.create=(t,n)=>new Vc(t,n);const Gc=(t,n)=>(t+(t>=0?n:-n)/jc)/n;function F3(t,n,r){const[[e,u],[a,f]]=n,m=Gc(f*t,r),d=Gc(-u*t,r);let _=t-m*e-d*a,N=-m*u-d*f;const C=_<ur,T=N<ur;C&&(_=-_),T&&(N=-N);const x=Oi(Math.ceil(Uu(r)/2))+si;if(_<ur||_>=x||N<ur||N>=x)throw new Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:C,k1:_,k2neg:T,k2:N}}function ia(t){if(!["compact","recovered","der"].includes(t))throw new Error('Signature format must be "compact", "recovered", or "der"');return t}function oa(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&&ia(r.format),r}class V3 extends Error{constructor(n=""){super(n)}}const ar={Err:V3,_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=bo(e);if(u.length/2&128)throw new r("tlv.encode: long form length too big");const a=e>127?bo(u.length/2|128):"";return bo(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 f=0;if(!a)f=u;else{const d=u&127;if(!d)throw new r("tlv.decode(long): indefinite length not supported");if(d>4)throw new r("tlv.decode(long): byte length is too big");const _=n.subarray(e,e+d);if(_.length!==d)throw new r("tlv.decode: length bytes not complete");if(_[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const N of _)f=f<<8|N;if(e+=d,f<128)throw new r("tlv.decode(long): not minimal encoding")}const m=n.subarray(e,e+f);if(m.length!==f)throw new r("tlv.decode: wrong value length");return{v:m,l:n.subarray(e+f)}}},_int:{encode(t){const{Err:n}=ar;if(t<ur)throw new n("integer: negative integers are not allowed");let r=bo(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 Ro(t)}},toSig(t){const{Err:n,_int:r,_tlv:e}=ar,u=Ke("signature",t),{v:a,l:f}=e.decode(48,u);if(f.length)throw new n("invalid signature: left bytes after parsing");const{v:m,l:d}=e.decode(2,a),{v:_,l:N}=e.decode(2,d);if(N.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(m),s:r.decode(_)}},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),jc=BigInt(2),Po=BigInt(3),H3=BigInt(4);function ai(t,n){const{BYTES:r}=t;let e;if(typeof n=="bigint")e=n;else{let u=Ke("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 G3(t,n={}){const r=ic("weierstrass",t,n),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:f,n:m}=a;Ti(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:d}=n;if(d&&(!e.is0(a.a)||typeof d.beta!="bigint"||!Array.isArray(d.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const _=zc(e,u);function N(){if(!e.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function C(wt,P,l){const{x:S,y:D}=P.toAffine(),W=e.toBytes(S);if(Mr(l,"isCompressed"),l){N();const q=!e.isOdd(D);return Xn(Yc(q),W)}else return Xn(Uint8Array.of(4),W,e.toBytes(D))}function T(wt){Vn(wt,void 0,"Point");const{publicKey:P,publicKeyUncompressed:l}=_,S=wt.length,D=wt[0],W=wt.subarray(1);if(S===P&&(D===2||D===3)){const q=e.fromBytes(W);if(!e.isValid(q))throw new Error("bad point: is not on curve, wrong x");const nt=U(q);let ct;try{ct=e.sqrt(nt)}catch(b){const j=b instanceof Error?": "+b.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}N();const K=e.isOdd(ct);return(D&1)===1!==K&&(ct=e.neg(ct)),{x:q,y:ct}}else if(S===l&&D===4){const q=e.BYTES,nt=e.fromBytes(W.subarray(0,q)),ct=e.fromBytes(W.subarray(q,q*2));if(!Y(nt,ct))throw new Error("bad point: is not on curve");return{x:nt,y:ct}}else throw new Error(`bad point: got length ${S}, expected compressed=${P} or uncompressed=${l}`)}const x=n.toBytes||C,k=n.fromBytes||T;function U(wt){const P=e.sqr(wt),l=e.mul(P,wt);return e.add(e.add(l,e.mul(wt,a.a)),a.b)}function Y(wt,P){const l=e.sqr(P),S=U(wt);return e.eql(l,S)}if(!Y(a.Gx,a.Gy))throw new Error("bad curve params: generator point");const z=e.mul(e.pow(a.a,Po),H3),J=e.mul(e.sqr(a.b),BigInt(27));if(e.is0(e.add(z,J)))throw new Error("bad curve params: a or b");function Z(wt,P,l=!1){if(!e.isValid(P)||l&&e.is0(P))throw new Error(`bad point coordinate ${wt}`);return P}function et(wt){if(!(wt instanceof st))throw new Error("ProjectivePoint expected")}function ht(wt){if(!d||!d.basises)throw new Error("no endo");return F3(wt,d.basises,u.ORDER)}const ut=Ao((wt,P)=>{const{X:l,Y:S,Z:D}=wt;if(e.eql(D,e.ONE))return{x:l,y:S};const W=wt.is0();P==null&&(P=W?e.ONE:e.inv(D));const q=e.mul(l,P),nt=e.mul(S,P),ct=e.mul(D,P);if(W)return{x:e.ZERO,y:e.ZERO};if(!e.eql(ct,e.ONE))throw new Error("invZ was invalid");return{x:q,y:nt}}),At=Ao(wt=>{if(wt.is0()){if(n.allowInfinityPoint&&!e.is0(wt.Y))return;throw new Error("bad point: ZERO")}const{x:P,y:l}=wt.toAffine();if(!e.isValid(P)||!e.isValid(l))throw new Error("bad point: x or y not field elements");if(!Y(P,l))throw new Error("bad point: equation left != right");if(!wt.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function Rt(wt,P,l,S,D){return l=new st(e.mul(l.X,wt),l.Y,l.Z),P=So(S,P),l=So(D,l),P.add(l)}class st{constructor(P,l,S){this.X=Z("x",P),this.Y=Z("y",l,!0),this.Z=Z("z",S),Object.freeze(this)}static CURVE(){return a}static fromAffine(P){const{x:l,y:S}=P||{};if(!P||!e.isValid(l)||!e.isValid(S))throw new Error("invalid affine point");if(P instanceof st)throw new Error("projective point not allowed");return e.is0(l)&&e.is0(S)?st.ZERO:new st(l,S,e.ONE)}static fromBytes(P){const l=st.fromAffine(k(Vn(P,void 0,"point")));return l.assertValidity(),l}static fromHex(P){return st.fromBytes(Ke("pointHex",P))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(P=8,l=!0){return gt.createCache(this,P),l||this.multiply(Po),this}assertValidity(){At(this)}hasEvenY(){const{y:P}=this.toAffine();if(!e.isOdd)throw new Error("Field doesn't support isOdd");return!e.isOdd(P)}equals(P){et(P);const{X:l,Y:S,Z:D}=this,{X:W,Y:q,Z:nt}=P,ct=e.eql(e.mul(l,nt),e.mul(W,D)),K=e.eql(e.mul(S,nt),e.mul(q,D));return ct&&K}negate(){return new st(this.X,e.neg(this.Y),this.Z)}double(){const{a:P,b:l}=a,S=e.mul(l,Po),{X:D,Y:W,Z:q}=this;let nt=e.ZERO,ct=e.ZERO,K=e.ZERO,h=e.mul(D,D),b=e.mul(W,W),j=e.mul(q,q),X=e.mul(D,W);return X=e.add(X,X),K=e.mul(D,q),K=e.add(K,K),nt=e.mul(P,K),ct=e.mul(S,j),ct=e.add(nt,ct),nt=e.sub(b,ct),ct=e.add(b,ct),ct=e.mul(nt,ct),nt=e.mul(X,nt),K=e.mul(S,K),j=e.mul(P,j),X=e.sub(h,j),X=e.mul(P,X),X=e.add(X,K),K=e.add(h,h),h=e.add(K,h),h=e.add(h,j),h=e.mul(h,X),ct=e.add(ct,h),j=e.mul(W,q),j=e.add(j,j),h=e.mul(j,X),nt=e.sub(nt,h),K=e.mul(j,b),K=e.add(K,K),K=e.add(K,K),new st(nt,ct,K)}add(P){et(P);const{X:l,Y:S,Z:D}=this,{X:W,Y:q,Z:nt}=P;let ct=e.ZERO,K=e.ZERO,h=e.ZERO;const b=a.a,j=e.mul(a.b,Po);let X=e.mul(l,W),pt=e.mul(S,q),St=e.mul(D,nt),Ht=e.add(l,S),Kt=e.add(W,q);Ht=e.mul(Ht,Kt),Kt=e.add(X,pt),Ht=e.sub(Ht,Kt),Kt=e.add(l,D);let le=e.add(W,nt);return Kt=e.mul(Kt,le),le=e.add(X,St),Kt=e.sub(Kt,le),le=e.add(S,D),ct=e.add(q,nt),le=e.mul(le,ct),ct=e.add(pt,St),le=e.sub(le,ct),h=e.mul(b,Kt),ct=e.mul(j,St),h=e.add(ct,h),ct=e.sub(pt,h),h=e.add(pt,h),K=e.mul(ct,h),pt=e.add(X,X),pt=e.add(pt,X),St=e.mul(b,St),Kt=e.mul(j,Kt),pt=e.add(pt,St),St=e.sub(X,St),St=e.mul(b,St),Kt=e.add(Kt,St),X=e.mul(pt,Kt),K=e.add(K,X),X=e.mul(le,Kt),ct=e.mul(Ht,ct),ct=e.sub(ct,X),X=e.mul(Ht,pt),h=e.mul(le,h),h=e.add(h,X),new st(ct,K,h)}subtract(P){return this.add(P.negate())}is0(){return this.equals(st.ZERO)}multiply(P){const{endo:l}=n;if(!u.isValidNot0(P))throw new Error("invalid scalar: out of range");let S,D;const W=q=>gt.cached(this,q,nt=>Pr(st,nt));if(l){const{k1neg:q,k1:nt,k2neg:ct,k2:K}=ht(P),{p:h,f:b}=W(nt),{p:j,f:X}=W(K);D=b.add(X),S=Rt(l.beta,h,j,q,ct)}else{const{p:q,f:nt}=W(P);S=q,D=nt}return Pr(st,[S,D])[0]}multiplyUnsafe(P){const{endo:l}=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(gt.hasCache(this))return this.multiply(P);if(l){const{k1neg:D,k1:W,k2neg:q,k2:nt}=ht(P),{p1:ct,p2:K}=f1(st,S,W,nt);return Rt(l.beta,ct,K,D,q)}else return gt.unsafe(S,P)}multiplyAndAddUnsafe(P,l,S){const D=this.multiplyUnsafe(l).add(P.multiplyUnsafe(S));return D.is0()?void 0:D}toAffine(P){return ut(this,P)}isTorsionFree(){const{isTorsionFree:P}=n;return f===si?!0:P?P(st,this):gt.unsafe(this,m).is0()}clearCofactor(){const{clearCofactor:P}=n;return f===si?this:P?P(st,this):this.multiplyUnsafe(f)}isSmallOrder(){return this.multiplyUnsafe(f).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,l){return nc(st,u,P,l)}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 ft=u.BITS,gt=new ec(st,n.endo?Math.ceil(ft/2):ft);return st.BASE.precompute(8),st}function Yc(t){return Uint8Array.of(t?2:3)}function zc(t,n){return{secretKey:n.BYTES,publicKey:1+t.BYTES,publicKeyUncompressed:1+2*t.BYTES,publicKeyHasPrefix:!0,signature:2*n.BYTES}}function j3(t,n={}){const{Fn:r}=t,e=n.randomBytes||Ts,u=Object.assign(zc(t.Fp,r),{seed:$u(r.ORDER)});function a(x){try{return!!ai(r,x)}catch{return!1}}function f(x,k){const{publicKey:U,publicKeyUncompressed:Y}=u;try{const z=x.length;return k===!0&&z!==U||k===!1&&z!==Y?!1:!!t.fromBytes(x)}catch{return!1}}function m(x=e(u.seed)){return a1(Vn(x,u.seed,"seed"),r.ORDER)}function d(x,k=!0){return t.BASE.multiply(ai(r,x)).toBytes(k)}function _(x){const k=m(x);return{secretKey:k,publicKey:d(k)}}function N(x){if(typeof x=="bigint")return!1;if(x instanceof t)return!0;const{secretKey:k,publicKey:U,publicKeyUncompressed:Y}=u;if(r.allowedLengths||k===U)return;const z=Ke("key",x).length;return z===U||z===Y}function C(x,k,U=!0){if(N(x)===!0)throw new Error("first arg must be private key");if(N(k)===!1)throw new Error("second arg must be public key");const Y=ai(r,x);return t.fromHex(k).multiply(Y).toBytes(U)}return Object.freeze({getPublicKey:d,getSharedSecret:C,keygen:_,Point:t,utils:{isValidSecretKey:a,isValidPublicKey:f,randomSecretKey:m,isValidPrivateKey:a,randomPrivateKey:m,normPrivateKeyToScalar:x=>ai(r,x),precompute(x=8,k=t.BASE){return k.precompute(x,!1)}},lengths:u})}function Y3(t,n,r={}){Ru(n),Ti(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const e=r.randomBytes||Ts,u=r.hmac||((l,...S)=>Hc(n,l,Xn(...S))),{Fp:a,Fn:f}=t,{ORDER:m,BITS:d}=f,{keygen:_,getPublicKey:N,getSharedSecret:C,utils:T,lengths:x}=j3(t,r),k={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},U="compact";function Y(l){const S=m>>si;return l>S}function z(l,S){if(!f.isValidNot0(S))throw new Error(`invalid signature ${l}: out of range 1..Point.Fn.ORDER`);return S}function J(l,S){ia(S);const D=x.signature,W=S==="compact"?D:S==="recovered"?D+1:void 0;return Vn(l,W,`${S} signature`)}class Z{constructor(S,D,W){this.r=z("r",S),this.s=z("s",D),W!=null&&(this.recovery=W),Object.freeze(this)}static fromBytes(S,D=U){J(S,D);let W;if(D==="der"){const{r:K,s:h}=ar.toSig(Vn(S));return new Z(K,h)}D==="recovered"&&(W=S[0],D="compact",S=S.subarray(1));const q=f.BYTES,nt=S.subarray(0,q),ct=S.subarray(q,q*2);return new Z(f.fromBytes(nt),f.fromBytes(ct),W)}static fromHex(S,D){return this.fromBytes(yo(S),D)}addRecoveryBit(S){return new Z(this.r,this.s,S)}recoverPublicKey(S){const D=a.ORDER,{r:W,s:q,recovery:nt}=this;if(nt==null||![0,1,2,3].includes(nt))throw new Error("recovery id invalid");if(m*jc<D&&nt>1)throw new Error("recovery id is ambiguous for h>1 curve");const K=nt===2||nt===3?W+m:W;if(!a.isValid(K))throw new Error("recovery id 2 or 3 invalid");const h=a.toBytes(K),b=t.fromBytes(Xn(Yc((nt&1)===0),h)),j=f.inv(K),X=ht(Ke("msgHash",S)),pt=f.create(-X*j),St=f.create(q*j),Ht=t.BASE.multiplyUnsafe(pt).add(b.multiplyUnsafe(St));if(Ht.is0())throw new Error("point at infinify");return Ht.assertValidity(),Ht}hasHighS(){return Y(this.s)}toBytes(S=U){if(ia(S),S==="der")return yo(ar.hexFromSig(this));const D=f.toBytes(this.r),W=f.toBytes(this.s);if(S==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Xn(Uint8Array.of(this.recovery),D,W)}return Xn(D,W)}toHex(S){return Br(this.toBytes(S))}assertValidity(){}static fromCompact(S){return Z.fromBytes(Ke("sig",S),"compact")}static fromDER(S){return Z.fromBytes(Ke("sig",S),"der")}normalizeS(){return this.hasHighS()?new Z(this.r,f.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 et=r.bits2int||function(S){if(S.length>8192)throw new Error("input is too large");const D=Ro(S),W=S.length*8-d;return W>0?D>>BigInt(W):D},ht=r.bits2int_modN||function(S){return f.create(et(S))},ut=Oi(d);function At(l){return Bs("num < 2^"+d,l,ur,ut),f.toBytes(l)}function Rt(l,S){return Vn(l,void 0,"message"),S?Vn(n(l),void 0,"prehashed message"):l}function st(l,S,D){if(["recovered","canonical"].some(pt=>pt in D))throw new Error("sign() legacy options not supported");const{lowS:W,prehash:q,extraEntropy:nt}=oa(D,k);l=Rt(l,q);const ct=ht(l),K=ai(f,S),h=[At(K),At(ct)];if(nt!=null&&nt!==!1){const pt=nt===!0?e(x.secretKey):nt;h.push(Ke("extraEntropy",pt))}const b=Xn(...h),j=ct;function X(pt){const St=et(pt);if(!f.isValidNot0(St))return;const Ht=f.inv(St),Kt=t.BASE.multiply(St).toAffine(),le=f.create(Kt.x);if(le===ur)return;const ge=f.create(Ht*f.create(j+le*K));if(ge===ur)return;let ve=(Kt.x===le?0:2)|Number(Kt.y&si),Ie=ge;return W&&Y(ge)&&(Ie=f.neg(ge),ve^=1),new Z(le,Ie,ve)}return{seed:b,k2sig:X}}function ft(l,S,D={}){l=Ke("message",l);const{seed:W,k2sig:q}=st(l,S,D);return qd(n.outputLen,f.BYTES,u)(W,q)}function gt(l){let S;const D=typeof l=="string"||Si(l),W=!D&&l!==null&&typeof l=="object"&&typeof l.r=="bigint"&&typeof l.s=="bigint";if(!D&&!W)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(W)S=new Z(l.r,l.s);else if(D){try{S=Z.fromBytes(Ke("sig",l),"der")}catch(q){if(!(q instanceof ar.Err))throw q}if(!S)try{S=Z.fromBytes(Ke("sig",l),"compact")}catch{return!1}}return S||!1}function wt(l,S,D,W={}){const{lowS:q,prehash:nt,format:ct}=oa(W,k);if(D=Ke("publicKey",D),S=Rt(Ke("message",S),nt),"strict"in W)throw new Error("options.strict was renamed to lowS");const K=ct===void 0?gt(l):Z.fromBytes(Ke("sig",l),ct);if(K===!1)return!1;try{const h=t.fromBytes(D);if(q&&K.hasHighS())return!1;const{r:b,s:j}=K,X=ht(S),pt=f.inv(j),St=f.create(X*pt),Ht=f.create(b*pt),Kt=t.BASE.multiplyUnsafe(St).add(h.multiplyUnsafe(Ht));return Kt.is0()?!1:f.create(Kt.x)===b}catch{return!1}}function P(l,S,D={}){const{prehash:W}=oa(D,k);return S=Rt(S,W),Z.fromBytes(l,"recovered").recoverPublicKey(S).toBytes()}return Object.freeze({keygen:_,getPublicKey:N,getSharedSecret:C,utils:T,lengths:x,Point:t,sign:ft,verify:wt,recoverPublicKey:P,Signature:Z,hash:n})}function z3(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(f=>Math.ceil(f/2)))):void 0;const u=Dr(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 W3(t){const{CURVE:n,curveOpts:r}=z3(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 K3(t,n){const r=n.Point;return Object.assign({},n,{ProjectivePoint:r,CURVE:Object.assign({},t,Zu(r.Fn.ORDER,r.Fn.BITS))})}function Z3(t){const{CURVE:n,curveOpts:r,hash:e,ecdsaOpts:u}=W3(t),a=G3(n,r),f=Y3(a,e,u);return K3(t,f)}function X3(t,n){const r=e=>Z3({...t,hash:e});return{...r(n),create:r}}const sa={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},$3={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Wc=BigInt(2);function q3(t){const n=sa.p,r=BigInt(3),e=BigInt(6),u=BigInt(11),a=BigInt(22),f=BigInt(23),m=BigInt(44),d=BigInt(88),_=t*t*t%n,N=_*_*t%n,C=Ze(N,r,n)*N%n,T=Ze(C,r,n)*N%n,x=Ze(T,Wc,n)*_%n,k=Ze(x,u,n)*x%n,U=Ze(k,a,n)*k%n,Y=Ze(U,m,n)*U%n,z=Ze(Y,d,n)*Y%n,J=Ze(z,m,n)*U%n,Z=Ze(J,r,n)*N%n,et=Ze(Z,f,n)*k%n,ht=Ze(et,e,n)*_%n,ut=Ze(ht,Wc,n);if(!aa.eql(aa.sqr(ut),t))throw new Error("Cannot find square root");return ut}const aa=Dr(sa.p,{sqrt:q3}),J3=X3({...sa,Fp:aa,lowS:!0,endo:$3},Bu);Ni.utils.randomPrivateKey,Ni.getPublicKey;function Kc(t){try{return Ni.ExtendedPoint.fromHex(t),!0}catch{return!1}}const Zc=(t,n)=>Ni.sign(t,n.slice(0,32)),Q3=Ni.verify,ua=t=>Re.Buffer.isBuffer(t)?t:t instanceof Uint8Array?Re.Buffer.from(t.buffer,t.byteOffset,t.byteLength):Re.Buffer.from(t);class Xc{constructor(n){Object.assign(this,n)}encode(){return Re.Buffer.from(Ws.serialize(Mi,this))}static decode(n){return Ws.deserialize(Mi,this,n)}static decodeUnchecked(n){return Ws.deserializeUnchecked(Mi,this,n)}}const Mi=new Map;var $c;const qc=32,cr=32;function tm(t){return t._bn!==void 0}let Jc=1;class me extends Xc{constructor(n){if(super({}),this._bn=void 0,tm(n))this._bn=n._bn;else{if(typeof n=="string"){const r=In.decode(n);if(r.length!=cr)throw new Error("Invalid public key input");this._bn=new fc(r)}else this._bn=new fc(n);if(this._bn.byteLength()>cr)throw new Error("Invalid public key input")}}static unique(){const n=new me(Jc);return Jc+=1,new me(n.toBuffer())}equals(n){return this._bn.eq(n._bn)}toBase58(){return In.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(Re.Buffer);if(n.length===cr)return n;const r=Re.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=Re.Buffer.concat([n.toBuffer(),Re.Buffer.from(r),e.toBuffer()]),a=vc(u);return new me(a)}static createProgramAddressSync(n,r){let e=Re.Buffer.alloc(0);n.forEach(function(a){if(a.length>qc)throw new TypeError("Max seed length exceeded");e=Re.Buffer.concat([e,ua(a)])}),e=Re.Buffer.concat([e,r.toBuffer(),Re.Buffer.from("ProgramDerivedAddress")]);const u=vc(e);if(Kc(u))throw new Error("Invalid seeds, address must fall off the curve");return new me(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(Re.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 me(n);return Kc(r.toBytes())}}$c=me,me.default=new $c("11111111111111111111111111111111"),Mi.set(me,{kind:"struct",fields:[["_bn","u256"]]}),new me("BPFLoader1111111111111111111111111111111111");const Vr=1232,Fo=127,ki=64;class Di{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,f)=>{e.set(a.toBase58(),f)});const u=a=>{const f=e.get(a.toBase58());if(f===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return f};return n.map(a=>({programIdIndex:u(a.programId),accountKeyIndexes:a.keys.map(f=>u(f.pubkey)),data:a.data}))}}const Ae=(t="publicKey")=>dt.blob(32,t),em=(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,f)=>r(a,f).chars.toString(),u.encode=(a,f,m)=>{const d={chars:Re.Buffer.from(a,"utf8")};return e(d,f,m)},u.alloc=a=>dt.u32().span+dt.u32().span+Re.Buffer.from(a,"utf8").length,u},nm=(t="authorized")=>dt.struct([Ae("staker"),Ae("withdrawer")],t),rm=(t="lockup")=>dt.struct([dt.ns64("unixTimestamp"),dt.ns64("epoch"),Ae("custodian")],t),im=(t="voteInit")=>dt.struct([Ae("nodePubkey"),Ae("authorizedVoter"),Ae("authorizedWithdrawer"),dt.u8("commission")],t),om=(t="voteAuthorizeWithSeedArgs")=>dt.struct([dt.u32("voteAuthorizationType"),Ae("currentAuthorityDerivedKeyOwnerPubkey"),ui("currentAuthorityDerivedKeySeed"),Ae("newAuthorized")],t);function Bn(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 Mn(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 Vo{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=f=>{const m=f.toBase58();let d=e.get(m);return d===void 0&&(d={isSigner:!1,isWritable:!1,isInvoked:!1},e.set(m,d)),d},a=u(r);a.isSigner=!0,a.isWritable=!0;for(const f of n){u(f.programId).isInvoked=!0;for(const m of f.keys){const d=u(m.pubkey);d.isSigner||=m.isSigner,d.isWritable||=m.isWritable}}return new Vo(r,e)}getMessageComponents(){const n=[...this.keyMetaMap.entries()];cn(n.length<=256,"Max static account keys length exceeded");const r=n.filter(([,d])=>d.isSigner&&d.isWritable),e=n.filter(([,d])=>d.isSigner&&!d.isWritable),u=n.filter(([,d])=>!d.isSigner&&d.isWritable),a=n.filter(([,d])=>!d.isSigner&&!d.isWritable),f={numRequiredSignatures:r.length+e.length,numReadonlySignedAccounts:e.length,numReadonlyUnsignedAccounts:a.length};{cn(r.length>0,"Expected at least one writable signer key");const[d]=r[0];cn(d===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const m=[...r.map(([d])=>new me(d)),...e.map(([d])=>new me(d)),...u.map(([d])=>new me(d)),...a.map(([d])=>new me(d))];return[f,m]}extractTableLookup(n){const[r,e]=this.drainKeysFoundInLookupTable(n.state.addresses,f=>!f.isSigner&&!f.isInvoked&&f.isWritable),[u,a]=this.drainKeysFoundInLookupTable(n.state.addresses,f=>!f.isSigner&&!f.isInvoked&&!f.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,f]of this.keyMetaMap.entries())if(r(f)){const m=new me(a),d=n.findIndex(_=>_.equals(m));d>=0&&(cn(d<256,"Max lookup table index exceeded"),e.push(d),u.push(m),this.keyMetaMap.delete(a))}return[e,u]}}const Qc="Reached end of buffer unexpectedly";function fr(t){if(t.length===0)throw new Error(Qc);return t.shift()}function kn(t,...n){const[r]=n;if(n.length===2?r+(n[1]??0)>t.length:r>=t.length)throw new Error(Qc);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 me(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:In.decode(n.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new Di(this.staticAccountKeys)}static compile(n){const r=Vo.compile(n.instructions,n.payerKey),[e,u]=r.getMessageComponents(),f=new Di(u).compileInstructions(n.instructions).map(m=>({programIdIndex:m.programIdIndex,accounts:m.accountKeyIndexes,data:In.encode(m.data)}));return new Hr({header:e,accountKeys:u,recentBlockhash:n.recentBlockhash,instructions:f})}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=[];Mn(r,n);const e=this.instructions.map(C=>{const{accounts:T,programIdIndex:x}=C,k=Array.from(In.decode(C.data));let U=[];Mn(U,T.length);let Y=[];return Mn(Y,k.length),{programIdIndex:x,keyIndicesCount:Re.Buffer.from(U),keyIndices:T,dataLength:Re.Buffer.from(Y),data:k}});let u=[];Mn(u,e.length);let a=Re.Buffer.alloc(Vr);Re.Buffer.from(u).copy(a);let f=u.length;e.forEach(C=>{const x=dt.struct([dt.u8("programIdIndex"),dt.blob(C.keyIndicesCount.length,"keyIndicesCount"),dt.seq(dt.u8("keyIndex"),C.keyIndices.length,"keyIndices"),dt.blob(C.dataLength.length,"dataLength"),dt.seq(dt.u8("userdatum"),C.data.length,"data")]).encode(C,a,f);f+=x}),a=a.slice(0,f);const m=dt.struct([dt.blob(1,"numRequiredSignatures"),dt.blob(1,"numReadonlySignedAccounts"),dt.blob(1,"numReadonlyUnsignedAccounts"),dt.blob(r.length,"keyCount"),dt.seq(Ae("key"),n,"keys"),Ae("recentBlockhash")]),d={numRequiredSignatures:Re.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:Re.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:Re.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:Re.Buffer.from(r),keys:this.accountKeys.map(C=>ua(C.toBytes())),recentBlockhash:In.decode(this.recentBlockhash)};let _=Re.Buffer.alloc(2048);const N=m.encode(d,_);return a.copy(_,N),_.slice(0,N+a.length)}static from(n){let r=[...n];const e=fr(r);if(e!==(e&Fo))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const u=fr(r),a=fr(r),f=Bn(r);let m=[];for(let T=0;T<f;T++){const x=kn(r,0,cr);m.push(new me(Re.Buffer.from(x)))}const d=kn(r,0,cr),_=Bn(r);let N=[];for(let T=0;T<_;T++){const x=fr(r),k=Bn(r),U=kn(r,0,k),Y=Bn(r),z=kn(r,0,Y),J=In.encode(Re.Buffer.from(z));N.push({programIdIndex:x,accounts:U,data:J})}const C={header:{numRequiredSignatures:e,numReadonlySignedAccounts:u,numReadonlyUnsignedAccounts:a},recentBlockhash:In.encode(Re.Buffer.from(d)),accountKeys:m,instructions:N};return new Hr(C)}}class Ui{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 Di(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((f,m)=>f+m.writableIndexes.length,0);return u<a}else if(n>=this.header.numRequiredSignatures){const u=n-r,f=e-r-this.header.numReadonlyUnsignedAccounts;return u<f}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=Vo.compile(n.instructions,n.payerKey),e=new Array,u={writable:new Array,readonly:new Array},a=n.addressLookupTableAccounts||[];for(const N of a){const C=r.extractTableLookup(N);if(C!==void 0){const[T,{writable:x,readonly:k}]=C;e.push(T),u.writable.push(...x),u.readonly.push(...k)}}const[f,m]=r.getMessageComponents(),_=new Di(m,u).compileInstructions(n.instructions);return new Ui({header:f,staticAccountKeys:m,recentBlockhash:n.recentBlockhash,compiledInstructions:_,addressTableLookups:e})}serialize(){const n=Array();Mn(n,this.staticAccountKeys.length);const r=this.serializeInstructions(),e=Array();Mn(e,this.compiledInstructions.length);const u=this.serializeAddressTableLookups(),a=Array();Mn(a,this.addressTableLookups.length);const f=dt.struct([dt.u8("prefix"),dt.struct([dt.u8("numRequiredSignatures"),dt.u8("numReadonlySignedAccounts"),dt.u8("numReadonlyUnsignedAccounts")],"header"),dt.blob(n.length,"staticAccountKeysLength"),dt.seq(Ae(),this.staticAccountKeys.length,"staticAccountKeys"),Ae("recentBlockhash"),dt.blob(e.length,"instructionsLength"),dt.blob(r.length,"serializedInstructions"),dt.blob(a.length,"addressTableLookupsLength"),dt.blob(u.length,"serializedAddressTableLookups")]),m=new Uint8Array(Vr),_=f.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(n),staticAccountKeys:this.staticAccountKeys.map(N=>N.toBytes()),recentBlockhash:In.decode(this.recentBlockhash),instructionsLength:new Uint8Array(e),serializedInstructions:r,addressTableLookupsLength:new Uint8Array(a),serializedAddressTableLookups:u},m);return m.slice(0,_)}serializeInstructions(){let n=0;const r=new Uint8Array(Vr);for(const e of this.compiledInstructions){const u=Array();Mn(u,e.accountKeyIndexes.length);const a=Array();Mn(a,e.data.length);const f=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+=f.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();Mn(u,e.writableIndexes.length);const a=Array();Mn(a,e.readonlyIndexes.length);const f=dt.struct([Ae("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+=f.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&Fo;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 f={numRequiredSignatures:fr(r),numReadonlySignedAccounts:fr(r),numReadonlyUnsignedAccounts:fr(r)},m=[],d=Bn(r);for(let k=0;k<d;k++)m.push(new me(kn(r,0,cr)));const _=In.encode(kn(r,0,cr)),N=Bn(r),C=[];for(let k=0;k<N;k++){const U=fr(r),Y=Bn(r),z=kn(r,0,Y),J=Bn(r),Z=new Uint8Array(kn(r,0,J));C.push({programIdIndex:U,accountKeyIndexes:z,data:Z})}const T=Bn(r),x=[];for(let k=0;k<T;k++){const U=new me(kn(r,0,cr)),Y=Bn(r),z=kn(r,0,Y),J=Bn(r),Z=kn(r,0,J);x.push({accountKey:U,writableIndexes:z,readonlyIndexes:Z})}return new Ui({header:f,staticAccountKeys:m,recentBlockhash:_,compiledInstructions:C,addressTableLookups:x})}}const ca={deserializeMessageVersion(t){const n=t[0],r=n&Fo;return r===n?"legacy":r},deserialize:t=>{const n=ca.deserializeMessageVersion(t);if(n==="legacy")return Hr.from(t);if(n===0)return Ui.deserialize(t);throw new Error(`Transaction message version ${n} deserialization is not supported`)}},sm=Re.Buffer.alloc(ki).fill(0);class fa{constructor(n){this.keys=void 0,this.programId=void 0,this.data=Re.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 Ho{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 fa(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 U=0;U<r.length;U++)if(r[U].programId===void 0)throw new Error(`Transaction instruction index ${U} has undefined program id`);const u=[],a=[];r.forEach(U=>{U.keys.forEach(z=>{a.push({...z})});const Y=U.programId.toString();u.includes(Y)||u.push(Y)}),u.forEach(U=>{a.push({pubkey:new me(U),isSigner:!1,isWritable:!1})});const f=[];a.forEach(U=>{const Y=U.pubkey.toString(),z=f.findIndex(J=>J.pubkey.toString()===Y);z>-1?(f[z].isWritable=f[z].isWritable||U.isWritable,f[z].isSigner=f[z].isSigner||U.isSigner):f.push(U)}),f.sort(function(U,Y){if(U.isSigner!==Y.isSigner)return U.isSigner?-1:1;if(U.isWritable!==Y.isWritable)return U.isWritable?-1:1;const z={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return U.pubkey.toBase58().localeCompare(Y.pubkey.toBase58(),"en",z)});const m=f.findIndex(U=>U.pubkey.equals(e));if(m>-1){const[U]=f.splice(m,1);U.isSigner=!0,U.isWritable=!0,f.unshift(U)}else f.unshift({pubkey:e,isSigner:!0,isWritable:!0});for(const U of this.signatures){const Y=f.findIndex(z=>z.pubkey.equals(U.publicKey));if(Y>-1)f[Y].isSigner||(f[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: ${U.publicKey.toString()}`)}let d=0,_=0,N=0;const C=[],T=[];f.forEach(({pubkey:U,isSigner:Y,isWritable:z})=>{Y?(C.push(U.toString()),d+=1,z||(_+=1)):(T.push(U.toString()),z||(N+=1))});const x=C.concat(T),k=r.map(U=>{const{data:Y,programId:z}=U;return{programIdIndex:x.indexOf(z.toString()),accounts:U.keys.map(J=>x.indexOf(J.pubkey.toString())),data:In.encode(Y)}});return k.forEach(U=>{cn(U.programIdIndex>=0),U.accounts.forEach(Y=>cn(Y>=0))}),new Hr({header:{numRequiredSignatures:d,numReadonlySignedAccounts:_,numReadonlyUnsignedAccounts:N},accountKeys:x,recentBlockhash:n,instructions:k})}_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 f=a.publicKey.toString();r.has(f)||(r.add(f),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 f=a.publicKey.toString();r.has(f)||(r.add(f),e.push(a))}const u=this._compile();this._partialSign(u,...e)}_partialSign(n,...r){const e=n.serialize();r.forEach(u=>{const a=Zc(e,u.secretKey);this._addSignature(u.publicKey,ua(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=Re.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):Q3(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 f="Signature verification failed.";throw a.invalid&&(f+=`
6
- Invalid signature for public key${a.invalid.length===1?"":"(s)"} [\`${a.invalid.map(m=>m.toBase58()).join("`, `")}\`].`),a.missing&&(f+=`
7
- Missing signature for public key${a.missing.length===1?"":"(s)"} [\`${a.missing.map(m=>m.toBase58()).join("`, `")}\`].`),new Error(f)}}return this._serialize(u)}_serialize(n){const{signatures:r}=this,e=[];Mn(e,r.length);const u=e.length+r.length*64+n.length,a=Re.Buffer.alloc(u);return cn(r.length<256),Re.Buffer.from(e).copy(a,0),r.forEach(({signature:f},m)=>{f!==null&&(cn(f.length===64,"signature has invalid length"),Re.Buffer.from(f).copy(a,e.length+m*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=Bn(r);let u=[];for(let a=0;a<e;a++){const f=kn(r,0,ki);u.push(In.encode(Re.Buffer.from(f)))}return Ho.populate(Hr.from(r),u)}static populate(n,r=[]){const e=new Ho;return e.recentBlockhash=n.recentBlockhash,n.header.numRequiredSignatures>0&&(e.feePayer=n.accountKeys[0]),r.forEach((u,a)=>{const f={signature:u==In.encode(sm)?null:In.decode(u),publicKey:n.accountKeys[a]};e.signatures.push(f)}),n.instructions.forEach(u=>{const a=u.accounts.map(f=>{const m=n.accountKeys[f];return{pubkey:m,isSigner:e.signatures.some(d=>d.publicKey.toString()===m.toString())||n.isAccountSigner(f),isWritable:n.isAccountWritable(f)}});e.instructions.push(new fa({keys:a,programId:n.accountKeys[u.programIdIndex],data:In.decode(u.data)}))}),e._message=n,e._json=e.toJSON(),e}}class la{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(ki));this.signatures=e}this.message=n}serialize(){const n=this.message.serialize(),r=Array();Mn(r,this.signatures.length);const e=dt.struct([dt.blob(r.length,"encodedSignaturesLength"),dt.seq(em(),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=Bn(r);for(let f=0;f<u;f++)e.push(new Uint8Array(kn(r,0,ki)));const a=ca.deserialize(new Uint8Array(r));return new la(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(f=>f.equals(u.publicKey));cn(a>=0,`Cannot sign with non signer key ${u.publicKey.toBase58()}`),this.signatures[a]=Zc(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 me("SysvarC1ock11111111111111111111111111111111"),new me("SysvarEpochSchedu1e111111111111111111111111"),new me("Sysvar1nstructions1111111111111111111111111"),new me("SysvarRecentB1ockHashes11111111111111111111"),new me("SysvarRent111111111111111111111111111111111"),new me("SysvarRewards111111111111111111111111111111"),new me("SysvarS1otHashes111111111111111111111111111"),new me("SysvarS1otHistory11111111111111111111111111"),new me("SysvarStakeHistory1111111111111111111111111");const tf=dt.nu64("lamportsPerSignature");dt.struct([dt.u32("version"),dt.u32("state"),Ae("authorizedPubkey"),Ae("nonce"),dt.struct([tf],"feeCalculator")]).span;function ci(t){const n=dt.blob(8,t),r=n.decode.bind(n),e=n.encode.bind(n),u=n,a=c3();return u.decode=(f,m)=>{const d=r(f,m);return a.decode(d)},u.encode=(f,m,d)=>{const _=a.encode(f);return e(_,m,d)},u}Object.freeze({Create:{index:0,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports"),dt.ns64("space"),Ae("programId")])},Assign:{index:1,layout:dt.struct([dt.u32("instruction"),Ae("programId")])},Transfer:{index:2,layout:dt.struct([dt.u32("instruction"),ci("lamports")])},CreateWithSeed:{index:3,layout:dt.struct([dt.u32("instruction"),Ae("base"),ui("seed"),dt.ns64("lamports"),dt.ns64("space"),Ae("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"),Ae("authorized")])},AuthorizeNonceAccount:{index:7,layout:dt.struct([dt.u32("instruction"),Ae("authorized")])},Allocate:{index:8,layout:dt.struct([dt.u32("instruction"),dt.ns64("space")])},AllocateWithSeed:{index:9,layout:dt.struct([dt.u32("instruction"),Ae("base"),ui("seed"),dt.ns64("space"),Ae("programId")])},AssignWithSeed:{index:10,layout:dt.struct([dt.u32("instruction"),Ae("base"),ui("seed"),Ae("programId")])},TransferWithSeed:{index:11,layout:dt.struct([dt.u32("instruction"),ci("lamports"),ui("seed"),Ae("programId")])},UpgradeNonceAccount:{index:12,layout:dt.struct([dt.u32("instruction")])}}),new me("11111111111111111111111111111111"),new me("BPFLoader2111111111111111111111111111111111"),dt.struct([dt.u32("typeIndex"),ci("deactivationSlot"),dt.nu64("lastExtendedSlot"),dt.u8("lastExtendedStartIndex"),dt.u8(),dt.seq(Ae(),dt.offset(dt.u8(),-1),"authority")]);const Xe=Bi(Zs(me),qt(),t=>new me(t)),ef=Xs([qt(),Ye("base64")]),da=Bi(Zs(Re.Buffer),ef,t=>Re.Buffer.from(t[0],"base64"));function nf(t){return On([Ft({jsonrpc:Ye("2.0"),id:qt(),result:t}),Ft({jsonrpc:Ye("2.0"),id:qt(),error:Ft({code:oi(),message:qt(),data:ce(m3())})})])}const am=nf(oi());function Fe(t){return Bi(nf(t),am,n=>"error"in n?n:{...n,result:Ci(n.result,t)})}function Gn(t){return Fe(Ft({context:Ft({slot:It()}),value:t}))}function Go(t){return Ft({context:Ft({slot:It()}),value:t})}const um=Ft({foundation:It(),foundationTerm:It(),initial:It(),taper:It(),terminal:It()});Fe(re(ie(Ft({epoch:It(),effectiveSlot:It(),amount:It(),postBalance:It(),commission:ce(ie(It()))}))));const cm=re(Ft({slot:It(),prioritizationFee:It()})),fm=Ft({total:It(),validator:It(),foundation:It(),epoch:It()}),lm=Ft({epoch:It(),slotIndex:It(),slotsInEpoch:It(),absoluteSlot:It(),blockHeight:ce(It()),transactionCount:ce(It())}),dm=Ft({slotsPerEpoch:It(),leaderScheduleSlotOffset:It(),warmup:Jn(),firstNormalEpoch:It(),firstNormalSlot:It()}),hm=xc(qt(),re(It())),Gr=ie(On([Ft({}),qt()])),pm=Ft({err:Gr}),vm=Ye("receivedSignature");Ft({"solana-core":qt(),"feature-set":ce(It())});const mm=Ft({program:qt(),programId:Xe,parsed:oi()}),gm=Ft({programId:Xe,accounts:re(Xe),data:qt()});Gn(Ft({err:ie(On([Ft({}),qt()])),logs:ie(re(qt())),accounts:ce(ie(re(ie(Ft({executable:Jn(),owner:qt(),lamports:It(),data:re(qt()),rentEpoch:ce(It())}))))),unitsConsumed:ce(It()),returnData:ce(ie(Ft({programId:qt(),data:Xs([qt(),Ye("base64")])}))),innerInstructions:ce(ie(re(Ft({index:It(),instructions:re(On([mm,gm]))}))))})),Gn(Ft({byIdentity:xc(qt(),re(It())),range:Ft({firstSlot:It(),lastSlot:It()})})),Fe(um),Fe(fm),Fe(cm),Fe(lm),Fe(dm),Fe(hm),Fe(It()),Gn(Ft({total:It(),circulating:It(),nonCirculating:It(),nonCirculatingAccounts:re(Xe)}));const ym=Ft({amount:qt(),uiAmount:ie(It()),decimals:It(),uiAmountString:ce(qt())});Gn(re(Ft({address:Xe,amount:qt(),uiAmount:ie(It()),decimals:It(),uiAmountString:ce(qt())}))),Gn(re(Ft({pubkey:Xe,account:Ft({executable:Jn(),owner:Xe,lamports:It(),data:da,rentEpoch:It()})})));const ha=Ft({program:qt(),parsed:oi(),space:It()});Gn(re(Ft({pubkey:Xe,account:Ft({executable:Jn(),owner:Xe,lamports:It(),data:ha,rentEpoch:It()})}))),Gn(re(Ft({lamports:It(),address:Xe})));const pa=Ft({executable:Jn(),owner:Xe,lamports:It(),data:da,rentEpoch:It()});Ft({pubkey:Xe,account:pa});const wm=Bi(On([Zs(Re.Buffer),ha]),On([ef,ha]),t=>Array.isArray(t)?Ci(t,da):t),Em=Ft({executable:Jn(),owner:Xe,lamports:It(),data:wm,rentEpoch:It()});Ft({pubkey:Xe,account:Em}),Ft({state:On([Ye("active"),Ye("inactive"),Ye("activating"),Ye("deactivating")]),active:It(),inactive:It()}),Fe(re(Ft({signature:qt(),slot:It(),err:Gr,memo:ie(qt()),blockTime:ce(ie(It()))}))),Fe(re(Ft({signature:qt(),slot:It(),err:Gr,memo:ie(qt()),blockTime:ce(ie(It()))}))),Ft({subscription:It(),result:Go(pa)});const _m=Ft({pubkey:Xe,account:pa});Ft({subscription:It(),result:Go(_m)});const bm=Ft({parent:It(),slot:It(),root:It()});Ft({subscription:It(),result:bm});const Rm=On([Ft({type:On([Ye("firstShredReceived"),Ye("completed"),Ye("optimisticConfirmation"),Ye("root")]),slot:It(),timestamp:It()}),Ft({type:Ye("createdBank"),parent:It(),slot:It(),timestamp:It()}),Ft({type:Ye("frozen"),slot:It(),timestamp:It(),stats:Ft({numTransactionEntries:It(),numSuccessfulTransactions:It(),numFailedTransactions:It(),maxTransactionsPerEntry:It()})}),Ft({type:Ye("dead"),slot:It(),timestamp:It(),err:qt()})]);Ft({subscription:It(),result:Rm}),Ft({subscription:It(),result:Go(On([pm,vm]))}),Ft({subscription:It(),result:It()}),Ft({pubkey:qt(),gossip:ie(qt()),tpu:ie(qt()),rpc:ie(qt()),version:ie(qt())});const rf=Ft({votePubkey:qt(),nodePubkey:qt(),activatedStake:It(),epochVoteAccount:Jn(),epochCredits:re(Xs([It(),It(),It()])),commission:It(),lastVote:It(),rootSlot:ie(It())});Fe(Ft({current:re(rf),delinquent:re(rf)}));const Am=On([Ye("processed"),Ye("confirmed"),Ye("finalized")]),Sm=Ft({slot:It(),confirmations:ie(It()),err:Gr,confirmationStatus:ce(Am)});Gn(re(ie(Sm))),Fe(It());const of=Ft({accountKey:Xe,writableIndexes:re(It()),readonlyIndexes:re(It())}),va=Ft({signatures:re(qt()),message:Ft({accountKeys:re(qt()),header:Ft({numRequiredSignatures:It(),numReadonlySignedAccounts:It(),numReadonlyUnsignedAccounts:It()}),instructions:re(Ft({accounts:re(It()),data:qt(),programIdIndex:It()})),recentBlockhash:qt(),addressTableLookups:ce(re(of))})}),sf=Ft({pubkey:Xe,signer:Jn(),writable:Jn(),source:ce(On([Ye("transaction"),Ye("lookupTable")]))}),af=Ft({accountKeys:re(sf),signatures:re(qt())}),uf=Ft({parsed:oi(),program:qt(),programId:Xe}),cf=Ft({accounts:re(Xe),data:qt(),programId:Xe}),Im=On([cf,uf]),Om=On([Ft({parsed:oi(),program:qt(),programId:qt()}),Ft({accounts:re(qt()),data:qt(),programId:qt()})]),ff=Bi(Im,Om,t=>"accounts"in t?Ci(t,cf):Ci(t,uf)),lf=Ft({signatures:re(qt()),message:Ft({accountKeys:re(sf),instructions:re(ff),recentBlockhash:qt(),addressTableLookups:ce(ie(re(of)))})}),jo=Ft({accountIndex:It(),mint:qt(),owner:ce(qt()),programId:ce(qt()),uiTokenAmount:ym}),df=Ft({writable:re(Xe),readonly:re(Xe)}),Yo=Ft({err:Gr,fee:It(),innerInstructions:ce(ie(re(Ft({index:It(),instructions:re(Ft({accounts:re(It()),data:qt(),programIdIndex:It()}))})))),preBalances:re(It()),postBalances:re(It()),logMessages:ce(ie(re(qt()))),preTokenBalances:ce(ie(re(jo))),postTokenBalances:ce(ie(re(jo))),loadedAddresses:ce(df),computeUnitsConsumed:ce(It()),costUnits:ce(It())}),ma=Ft({err:Gr,fee:It(),innerInstructions:ce(ie(re(Ft({index:It(),instructions:re(ff)})))),preBalances:re(It()),postBalances:re(It()),logMessages:ce(ie(re(qt()))),preTokenBalances:ce(ie(re(jo))),postTokenBalances:ce(ie(re(jo))),loadedAddresses:ce(df),computeUnitsConsumed:ce(It()),costUnits:ce(It())}),fi=On([Ye(0),Ye("legacy")]),jr=Ft({pubkey:qt(),lamports:It(),postBalance:ie(It()),rewardType:ie(qt()),commission:ce(ie(It()))});Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Ft({transaction:va,meta:ie(Yo),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Ft({transaction:af,meta:ie(Yo),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Ft({transaction:lf,meta:ie(ma),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Ft({transaction:af,meta:ie(ma),version:ce(fi)})),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),rewards:ce(re(jr)),blockTime:ie(It()),blockHeight:ie(It())}))),Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),transactions:re(Ft({transaction:va,meta:ie(Yo)})),rewards:ce(re(jr)),blockTime:ie(It())}))),Fe(ie(Ft({blockhash:qt(),previousBlockhash:qt(),parentSlot:It(),signatures:re(qt()),blockTime:ie(It())}))),Fe(ie(Ft({slot:It(),meta:ie(Yo),blockTime:ce(ie(It())),transaction:va,version:ce(fi)}))),Fe(ie(Ft({slot:It(),transaction:lf,meta:ie(ma),blockTime:ce(ie(It())),version:ce(fi)}))),Gn(Ft({blockhash:qt(),lastValidBlockHeight:It()})),Gn(Jn());const Tm=Ft({slot:It(),numTransactions:It(),numSlots:It(),samplePeriodSecs:It()});Fe(re(Tm)),Gn(ie(Ft({feeCalculator:Ft({lamportsPerSignature:It()})}))),Fe(qt()),Fe(qt());const Nm=Ft({err:Gr,logs:re(qt()),signature:qt()});Ft({result:Go(Nm),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(Ae(),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 me("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 me("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 me("Ed25519SigVerify111111111111111111111111111"),J3.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 me("KeccakSecp256k11111111111111111111111111111");var hf;new me("StakeConfig11111111111111111111111111111111");class ga{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}}hf=ga,ga.default=new hf(0,0,me.default),Object.freeze({Initialize:{index:0,layout:dt.struct([dt.u32("instruction"),nm(),rm()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Ae("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"),Ae("newAuthorized"),dt.u32("stakeAuthorizationType"),ui("authoritySeed"),Ae("authorityOwner")])}}),new me("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:dt.struct([dt.u32("instruction"),im()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Ae("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"),om()])}}),new me("Vote111111111111111111111111111111111111111"),new me("Va1idator1nfo111111111111111111111111111111"),Ft({name:qt(),website:ce(qt()),details:ce(qt()),iconUrl:ce(qt()),keybaseUsername:ce(qt())}),new me("Vote111111111111111111111111111111111111111"),dt.struct([Ae("nodePubkey"),Ae("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"),Ae("authorizedVoter")]),dt.offset(dt.u32(),-8),"authorizedVoters"),dt.struct([dt.seq(dt.struct([Ae("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 xm=Object.freeze(Object.defineProperty({__proto__:null,FeeCalculatorLayout:tf,Lockup:ga,MAX_SEED_LENGTH:qc,Message:Hr,MessageAccountKeys:Di,MessageV0:Ui,PACKET_DATA_SIZE:Vr,PUBLIC_KEY_LENGTH:cr,PublicKey:me,SIGNATURE_LENGTH_IN_BYTES:ki,SOLANA_SCHEMA:Mi,Struct:Xc,Transaction:Ho,TransactionInstruction:fa,VERSION_PREFIX_MASK:Fo,VersionedMessage:ca,VersionedTransaction:la},Symbol.toStringTag,{value:"Module"}));function Cm(t){if(t.length>=255)throw new TypeError("Alphabet too long");const n=new Uint8Array(256);for(let _=0;_<n.length;_++)n[_]=255;for(let _=0;_<t.length;_++){const N=t.charAt(_),C=N.charCodeAt(0);if(n[C]!==255)throw new TypeError(N+" is ambiguous");n[C]=_}const r=t.length,e=t.charAt(0),u=Math.log(r)/Math.log(256),a=Math.log(256)/Math.log(r);function f(_){if(_ instanceof Uint8Array||(ArrayBuffer.isView(_)?_=new Uint8Array(_.buffer,_.byteOffset,_.byteLength):Array.isArray(_)&&(_=Uint8Array.from(_))),!(_ instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(_.length===0)return"";let N=0,C=0,T=0;const x=_.length;for(;T!==x&&_[T]===0;)T++,N++;const k=(x-T)*a+1>>>0,U=new Uint8Array(k);for(;T!==x;){let J=_[T],Z=0;for(let et=k-1;(J!==0||Z<C)&&et!==-1;et--,Z++)J+=256*U[et]>>>0,U[et]=J%r>>>0,J=J/r>>>0;if(J!==0)throw new Error("Non-zero carry");C=Z,T++}let Y=k-C;for(;Y!==k&&U[Y]===0;)Y++;let z=e.repeat(N);for(;Y<k;++Y)z+=t.charAt(U[Y]);return z}function m(_){if(typeof _!="string")throw new TypeError("Expected String");if(_.length===0)return new Uint8Array;let N=0,C=0,T=0;for(;_[N]===e;)C++,N++;const x=(_.length-N)*u+1>>>0,k=new Uint8Array(x);for(;N<_.length;){const J=_.charCodeAt(N);if(J>255)return;let Z=n[J];if(Z===255)return;let et=0;for(let ht=x-1;(Z!==0||et<T)&&ht!==-1;ht--,et++)Z+=r*k[ht]>>>0,k[ht]=Z%256>>>0,Z=Z/256>>>0;if(Z!==0)throw new Error("Non-zero carry");T=et,N++}let U=x-T;for(;U!==x&&k[U]===0;)U++;const Y=new Uint8Array(C+(x-U));let z=C;for(;U!==x;)Y[z++]=k[U++];return Y}function d(_){const N=m(_);if(N)return N;throw new Error("Non-base"+r+" character")}return{encode:f,decodeUnsafe:m,decode:d}}var Lm="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Bm=Cm(Lm),zo=xm,_r=Bm;var ya={exports:{}},pf;function Mm(){return pf||(pf=1,(function(t){var n=(function(){var r=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function f(d,_){if(!a[d]){a[d]={};for(var N=0;N<d.length;N++)a[d][d.charAt(N)]=N}return a[d][_]}var m={compressToBase64:function(d){if(d==null)return"";var _=m._compress(d,6,function(N){return e.charAt(N)});switch(_.length%4){default:case 0:return _;case 1:return _+"===";case 2:return _+"==";case 3:return _+"="}},decompressFromBase64:function(d){return d==null?"":d==""?null:m._decompress(d.length,32,function(_){return f(e,d.charAt(_))})},compressToUTF16:function(d){return d==null?"":m._compress(d,15,function(_){return r(_+32)})+" "},decompressFromUTF16:function(d){return d==null?"":d==""?null:m._decompress(d.length,16384,function(_){return d.charCodeAt(_)-32})},compressToUint8Array:function(d){for(var _=m.compress(d),N=new Uint8Array(_.length*2),C=0,T=_.length;C<T;C++){var x=_.charCodeAt(C);N[C*2]=x>>>8,N[C*2+1]=x%256}return N},decompressFromUint8Array:function(d){if(d==null)return m.decompress(d);for(var _=new Array(d.length/2),N=0,C=_.length;N<C;N++)_[N]=d[N*2]*256+d[N*2+1];var T=[];return _.forEach(function(x){T.push(r(x))}),m.decompress(T.join(""))},compressToEncodedURIComponent:function(d){return d==null?"":m._compress(d,6,function(_){return u.charAt(_)})},decompressFromEncodedURIComponent:function(d){return d==null?"":d==""?null:(d=d.replace(/ /g,"+"),m._decompress(d.length,32,function(_){return f(u,d.charAt(_))}))},compress:function(d){return m._compress(d,16,function(_){return r(_)})},_compress:function(d,_,N){if(d==null)return"";var C,T,x={},k={},U="",Y="",z="",J=2,Z=3,et=2,ht=[],ut=0,At=0,Rt;for(Rt=0;Rt<d.length;Rt+=1)if(U=d.charAt(Rt),Object.prototype.hasOwnProperty.call(x,U)||(x[U]=Z++,k[U]=!0),Y=z+U,Object.prototype.hasOwnProperty.call(x,Y))z=Y;else{if(Object.prototype.hasOwnProperty.call(k,z)){if(z.charCodeAt(0)<256){for(C=0;C<et;C++)ut=ut<<1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++;for(T=z.charCodeAt(0),C=0;C<8;C++)ut=ut<<1|T&1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=T>>1}else{for(T=1,C=0;C<et;C++)ut=ut<<1|T,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=0;for(T=z.charCodeAt(0),C=0;C<16;C++)ut=ut<<1|T&1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=T>>1}J--,J==0&&(J=Math.pow(2,et),et++),delete k[z]}else for(T=x[z],C=0;C<et;C++)ut=ut<<1|T&1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=T>>1;J--,J==0&&(J=Math.pow(2,et),et++),x[Y]=Z++,z=String(U)}if(z!==""){if(Object.prototype.hasOwnProperty.call(k,z)){if(z.charCodeAt(0)<256){for(C=0;C<et;C++)ut=ut<<1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++;for(T=z.charCodeAt(0),C=0;C<8;C++)ut=ut<<1|T&1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=T>>1}else{for(T=1,C=0;C<et;C++)ut=ut<<1|T,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=0;for(T=z.charCodeAt(0),C=0;C<16;C++)ut=ut<<1|T&1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=T>>1}J--,J==0&&(J=Math.pow(2,et),et++),delete k[z]}else for(T=x[z],C=0;C<et;C++)ut=ut<<1|T&1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=T>>1;J--,J==0&&(J=Math.pow(2,et),et++)}for(T=2,C=0;C<et;C++)ut=ut<<1|T&1,At==_-1?(At=0,ht.push(N(ut)),ut=0):At++,T=T>>1;for(;;)if(ut=ut<<1,At==_-1){ht.push(N(ut));break}else At++;return ht.join("")},decompress:function(d){return d==null?"":d==""?null:m._decompress(d.length,32768,function(_){return d.charCodeAt(_)})},_decompress:function(d,_,N){var C=[],T=4,x=4,k=3,U="",Y=[],z,J,Z,et,ht,ut,At,Rt={val:N(0),position:_,index:1};for(z=0;z<3;z+=1)C[z]=z;for(Z=0,ht=Math.pow(2,2),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=N(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;switch(Z){case 0:for(Z=0,ht=Math.pow(2,8),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=N(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;At=r(Z);break;case 1:for(Z=0,ht=Math.pow(2,16),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=N(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;At=r(Z);break;case 2:return""}for(C[3]=At,J=At,Y.push(At);;){if(Rt.index>d)return"";for(Z=0,ht=Math.pow(2,k),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=N(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;switch(At=Z){case 0:for(Z=0,ht=Math.pow(2,8),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=N(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;C[x++]=r(Z),At=x-1,T--;break;case 1:for(Z=0,ht=Math.pow(2,16),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=N(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;C[x++]=r(Z),At=x-1,T--;break;case 2:return Y.join("")}if(T==0&&(T=Math.pow(2,k),k++),C[At])U=C[At];else if(At===x)U=J+J.charAt(0);else return null;Y.push(U),C[x++]=J+U.charAt(0),T--,J=U,T==0&&(T=Math.pow(2,k),k++)}}};return m})();t!=null?t.exports=n:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return n})})(ya)),ya.exports}var km=Mm();const Rn=_s(km);var wa=(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))(wa||{});const Dm={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"},vf={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function Um(t){return t in vf}const mf={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function Pm(t){return t in mf}const Fm=new Set(["CLF"]),Vm=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),Hm=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function Gm(t){return Fm.has(t)?4:Vm.has(t)?3:Hm.has(t)?0:2}function jm(t,n){return t.currency===n}function Ym(t){return{base:t.to,rate:1/t.rate,to:t.base}}var zm={269:function(t,n,r){r.r(n),r.d(n,{ERROR_API_KEY_EXPIRED:function(){return Es},ERROR_API_KEY_INVALID:function(){return ws},ERROR_API_KEY_MISSING:function(){return ys},ERROR_BAD_REQUEST_FORMAT:function(){return yd},ERROR_BAD_RESPONSE_FORMAT:function(){return qa},ERROR_CLIENT_TIMEOUT:function(){return Za},ERROR_CSP_BLOCK:function(){return Ja},ERROR_FORBIDDEN_ENDPOINT:function(){return M0},ERROR_FORBIDDEN_HEADER:function(){return Rd},ERROR_FORBIDDEN_ORIGIN:function(){return bd},ERROR_GENERAL_SERVER_FAILURE:function(){return wd},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return B0},ERROR_INTEGRATION_FAILURE:function(){return k0},ERROR_INVALID_ENDPOINT:function(){return Qa},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return F0},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return P0},ERROR_NETWORK_ABORT:function(){return $a},ERROR_NETWORK_CONNECTION:function(){return Xa},ERROR_NETWORK_RESTRICTED:function(){return U0},ERROR_RATE_LIMIT:function(){return _d},ERROR_SERVER_TIMEOUT:function(){return Ed},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return C0},ERROR_TOKEN_EXPIRED:function(){return yy},ERROR_TOKEN_INVALID:function(){return gy},ERROR_TOKEN_MISSING:function(){return my},ERROR_UNSUPPORTED_VERSION:function(){return L0},ERROR_WRONG_REGION:function(){return x0},default:function(){return wy},defaultEndpoint:function(){return cs},defaultTlsEndpoint:function(){return fs},load:function(){return pl},makeBotdModule:function(){return oy},makeConsoleDebugModule:function(){return py},makeIdentificationModule:function(){return ly},makeLatencyReportModule:function(){return hy},makeRemoteDebugModule:function(){return vy},makeValidationModule:function(){return dy}});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 f(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 m(i,s,o){return o===void 0&&(o=16),(0,e.sH)(this,void 0,void 0,(function(){var c,p,y,w;return(0,e.YH)(this,(function(E){switch(E.label){case 0:c=Array(i.length),p=Date.now(),y=0,E.label=1;case 1:return y<i.length?(c[y]=s(i[y],y),(w=Date.now())>=p+o?(p=w,[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:E.sent(),E.label=3;case 3:return++y,[3,1];case 4:return[2,c]}}))}))}function d(i){return i.then(void 0,(function(){})),i}function _(i){return parseInt(i)}function N(i){return parseFloat(i)}function C(i,s){return typeof i=="number"&&isNaN(i)?s:i}function T(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,y=65535&i[1],w=s[0]>>>16,E=65535&s[0],v=s[1]>>>16,I=0,M=0,B=0,$=0;B+=($+=y+(65535&s[1]))>>>16,$&=65535,M+=(B+=p+v)>>>16,B&=65535,I+=(M+=c+E)>>>16,M&=65535,I+=o+w,I&=65535,i[0]=I<<16|M,i[1]=B<<16|$}function k(i,s){var o=i[0]>>>16,c=65535&i[0],p=i[1]>>>16,y=65535&i[1],w=s[0]>>>16,E=65535&s[0],v=s[1]>>>16,I=65535&s[1],M=0,B=0,$=0,Q=0;$+=(Q+=y*I)>>>16,Q&=65535,B+=($+=p*I)>>>16,$&=65535,B+=($+=y*v)>>>16,$&=65535,M+=(B+=c*I)>>>16,B&=65535,M+=(B+=p*v)>>>16,B&=65535,M+=(B+=y*E)>>>16,B&=65535,M+=o*I+c*v+p*E+y*w,M&=65535,i[0]=M<<16|B,i[1]=$<<16|Q}function U(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 z(i,s){i[0]^=s[0],i[1]^=s[1]}var J=[4283543511,3981806797],Z=[3301882366,444984403];function et(i){var s=[0,i[0]>>>1];z(i,s),k(i,J),s[1]=i[0]>>>1,z(i,s),k(i,Z),s[1]=i[0]>>>1,z(i,s)}var ht=[2277735313,289559509],ut=[1291169091,658871167],At=[0,5],Rt=[0,1390208809],st=[0,944331445];function ft(i){return typeof i!="function"}function gt(i,s,o,c){var p=Object.keys(i).filter((function(w){return!(function(E,v){for(var I=0,M=E.length;I<M;++I)if(E[I]===v)return!0;return!1})(o,w)})),y=d(m(p,(function(w){return(function(E,v){var I=d(new Promise((function(M){var B=Date.now();f(E.bind(null,v),(function(){for(var $=[],Q=0;Q<arguments.length;Q++)$[Q]=arguments[Q];var tt=Date.now()-B;if(!$[0])return M((function(){return{error:$[1],duration:tt}}));var rt=$[1];if(ft(rt))return M((function(){return{value:rt,duration:tt}}));M((function(){return new Promise((function(at){var mt=Date.now();f(rt,(function(){for(var bt=[],vt=0;vt<arguments.length;vt++)bt[vt]=arguments[vt];var _t=tt+Date.now()-mt;if(!bt[0])return at({error:bt[1],duration:_t});at({value:bt[1],duration:_t})}))}))}))}))})));return function(){return I.then((function(M){return M()}))}})(i[w],s)}),c));return function(){return(0,e.sH)(this,void 0,void 0,(function(){var w,E,v,I;return(0,e.YH)(this,(function(M){switch(M.label){case 0:return[4,y];case 1:return[4,m(M.sent(),(function(B){return d(B())}),c)];case 2:return w=M.sent(),[4,Promise.all(w)];case 3:for(E=M.sent(),v={},I=0;I<p.length;++I)v[p[I]]=E[I];return[2,v]}}))}))}}function wt(i,s){var o=function(c){return ft(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 T(["MSCSSMatrix"in i,"msSetImmediate"in i,"msIndexedDB"in i,"msMaxTouchPoints"in s,"msPointerEnabled"in s])>=4}function l(){var i=window,s=navigator;return T(["msWriteProfilerMark"in i,"MSStream"in i,"msLaunchUri"in s,"msSaveBlob"in s])>=3&&!P()}function S(){var i=window,s=navigator;return T(["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 D(){var i=window;return T(["ApplePayError"in i,"CSSPrimitiveValue"in i,"Counter"in i,navigator.vendor.indexOf("Apple")===0,"RGBColor"in i,"WebKitMediaKeys"in i])>=4}function W(){var i=window,s=i.HTMLElement,o=i.Document;return T(["safari"in i,!("ongestureend"in i),!("TouchEvent"in i),!("orientation"in i),s&&!("autocapitalize"in s.prototype),o&&"pointerLockElement"in o.prototype])>=4}function q(){var i,s,o=window;return T(["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 nt(){var i=document;return i.fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||null}function ct(){var i=S(),s=q(),o=window,c=navigator,p="connection";return i?T([!("SharedWorker"in o),c[p]&&"ontypechange"in c[p],!("sinkId"in new Audio)])>=2:!!s&&T(["onorientationchange"in o,"orientation"in o,/android/i.test(c.appVersion)])>=2}function K(){var i=navigator,s=window,o=Audio.prototype,c=s.visualViewport;return T(["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(D()&&!W()&&!(function(){var I=window;return T(["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 y=(function(I){var M=function(){};return[new Promise((function(B,$){var Q=!1,tt=0,rt=0;I.oncomplete=function(bt){return B(bt.renderedBuffer)};var at=function(){setTimeout((function(){return $(b("timeout"))}),Math.min(500,rt+5e3-Date.now()))},mt=function(){try{var bt=I.startRendering();switch(a(bt)&&d(bt),I.state){case"running":rt=Date.now(),Q&&at();break;case"suspended":document.hidden||tt++,Q&&tt>=3?$(b("suspended")):setTimeout(mt,500)}}catch(vt){$(vt)}};mt(),M=function(){Q||(Q=!0,rt>0&&at())}})),M]})(o),w=y[0],E=y[1],v=d(w.then((function(I){return(function(M){for(var B=0,$=0;$<M.length;++$)B+=Math.abs(M[$]);return B})(I.getChannelData(0).subarray(4500))}),(function(I){if(I.name==="timeout"||I.name==="suspended")return-3;throw I})));return function(){return E(),v}}function b(i){var s=new Error(i);return s.name=i,s}function j(i,s,o){var c,p,y;return o===void 0&&(o=50),(0,e.sH)(this,void 0,void 0,(function(){var w,E;return(0,e.YH)(this,(function(v){switch(v.label){case 0:w=document,v.label=1;case 1:return w.body?[3,3]:[4,u(o)];case 2:return v.sent(),[3,1];case 3:E=w.createElement("iframe"),v.label=4;case 4:return v.trys.push([4,,10,11]),[4,new Promise((function(I,M){var B=!1,$=function(){B=!0,I()};E.onload=$,E.onerror=function(rt){B=!0,M(rt)};var Q=E.style;Q.setProperty("display","block","important"),Q.position="absolute",Q.top="0",Q.left="0",Q.visibility="hidden",s&&"srcdoc"in E?E.srcdoc=s:E.src="about:blank",w.body.appendChild(E);var tt=function(){var rt,at;B||(((at=(rt=E.contentWindow)===null||rt===void 0?void 0:rt.document)===null||at===void 0?void 0:at.readyState)==="complete"?$():setTimeout(tt,10))};tt()}))];case 5:v.sent(),v.label=6;case 6:return!((p=(c=E.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(E,E.contentWindow)];case 9:return[2,v.sent()];case 10:return(y=E.parentNode)===null||y===void 0||y.removeChild(E),[7];case 11:return[2]}}))}))}function X(i){for(var s=(function(I){for(var M,B,$="Unexpected syntax '".concat(I,"'"),Q=/^\s*([a-z-]*)(.*)$/i.exec(I),tt=Q[1]||void 0,rt={},at=/([.:#][\w-]+|\[.+?\])/gi,mt=function(Gt,jt){rt[Gt]=rt[Gt]||[],rt[Gt].push(jt)};;){var bt=at.exec(Q[2]);if(!bt)break;var vt=bt[0];switch(vt[0]){case".":mt("class",vt.slice(1));break;case"#":mt("id",vt.slice(1));break;case"[":var _t=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(vt);if(!_t)throw new Error($);mt(_t[1],(B=(M=_t[4])!==null&&M!==void 0?M:_t[5])!==null&&B!==void 0?B:"");break;default:throw new Error($)}}return[tt,rt]})(i),o=s[0],c=s[1],p=document.createElement(o??"div"),y=0,w=Object.keys(c);y<w.length;y++){var E=w[y],v=c[E].join(" ");E==="style"?pt(p.style,v):p.setAttribute(E,v)}return p}function pt(i,s){for(var o=0,c=s.split(";");o<c.length;o++){var p=c[o],y=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(p);if(y){var w=y[1],E=y[2],v=y[4];i.setProperty(w,E,v||"")}}}var St=["monospace","sans-serif","serif"],Ht=["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(i){var s,o,c,p=!1,y=(function(){var v=document.createElement("canvas");return v.width=1,v.height=1,[v,v.getContext("2d")]})(),w=y[0],E=y[1];return(function(v,I){return!(!I||!v.toDataURL)})(w,E)?(p=(function(v){return v.rect(0,0,10,10),v.rect(2,2,6,6),!v.isPointInPath(5,5,"evenodd")})(E),s=(function(v,I){(function(B,$){B.width=240,B.height=60,$.textBaseline="alphabetic",$.fillStyle="#f60",$.fillRect(100,1,62,20),$.fillStyle="#069",$.font='11pt "Times New Roman"';var Q="Cwm fjordbank gly ".concat("😃");$.fillText(Q,2,15),$.fillStyle="rgba(102, 204, 0, 0.2)",$.font="18pt Arial",$.fillText(Q,4,45)})(v,I);var M=le(v);return M!==le(v)?["unstable","unstable"]:((function(B,$){B.width=122,B.height=110,$.globalCompositeOperation="multiply";for(var Q=0,tt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Q<tt.length;Q++){var rt=tt[Q],at=rt[0],mt=rt[1],bt=rt[2];$.fillStyle=at,$.beginPath(),$.arc(mt,bt,40,0,2*Math.PI,!0),$.closePath(),$.fill()}$.fillStyle="#f9c",$.arc(60,60,60,0,2*Math.PI,!0),$.arc(60,60,20,0,2*Math.PI,!0),$.fill("evenodd")})(v,I),[le(v),M])})(w,E),o=s[0],c=s[1]):o=c="unsupported",{winding:p,geometry:o,text:c}}function le(i){return i.toDataURL()}function ge(){var i=screen,s=function(c){return C(_(c),null)},o=[s(i.width),s(i.height)];return o.sort().reverse(),o}var ve,Ie;function _e(){var i=this;return(function(){if(Ie===void 0){var s=function(){var o=Ee();Ve(o)?Ie=setTimeout(s,2500):(ve=o,Ie=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 Ve(s=Ee())?ve?[2,(0,e.fX)([],ve,!0)]:nt()?[4,(c=document,(c.exitFullscreen||c.msExitFullscreen||c.mozCancelFullScreen||c.webkitExitFullscreen).call(c))]:[3,2]:[3,2];case 1:o.sent(),s=Ee(),o.label=2;case 2:return Ve(s)||(ve=s),[2,s]}var c}))}))}}function Ee(){var i=screen;return[C(N(i.availTop),null),C(N(i.width)-N(i.availWidth)-C(N(i.availLeft),0),null),C(N(i.height)-N(i.availHeight)-C(N(i.availTop),0),null),C(N(i.availLeft),null)]}function Ve(i){for(var s=0;s<4;++s)if(i[s])return!1;return!0}function Oe(i){var s;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w,E,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),y={},g(c),v=0;v<i.length;++v)(w=X(i[v])).tagName==="DIALOG"&&w.show(),g(E=o.createElement("div")),E.appendChild(w),c.appendChild(E),p[v]=w;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||(y[i[v]]=!0)}finally{(s=c.parentNode)===null||s===void 0||s.removeChild(c)}return[2,y]}}))}))}function g(i){i.style.setProperty("visibility","hidden","important"),i.style.setProperty("display","block","important")}function L(i){return matchMedia("(inverted-colors: ".concat(i,")")).matches}function V(i){return matchMedia("(forced-colors: ".concat(i,")")).matches}function lt(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 Ct(i){return matchMedia("(dynamic-range: ".concat(i,")")).matches}var zt=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 ot(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 y=p[c];try{s=o.getContext(y)}catch{}if(s)break}return i.webgl={context:s},s}function Lt(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(Dt)}function Dt(i){return typeof i=="string"&&!i.match(/[^A-Z0-9_x]/)}function kt(){return q()}function it(i){return typeof i.getParameter=="function"}var Wt=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,y,w,E,v,I,M,B,$,Q,tt;return(0,e.YH)(this,(function(rt){for((p=c.body).style.fontSize="48px",(y=c.createElement("div")).style.setProperty("visibility","hidden","important"),w={},E={},v=function(at){var mt=c.createElement("span"),bt=mt.style;return bt.position="absolute",bt.top="0",bt.left="0",bt.fontFamily=at,mt.textContent="mmMwWLliI0O&1",y.appendChild(mt),mt},I=function(at,mt){return v("'".concat(at,"',").concat(mt))},M=function(){for(var at={},mt=function(_t){at[_t]=St.map((function(Gt){return I(_t,Gt)}))},bt=0,vt=Ht;bt<vt.length;bt++)mt(vt[bt]);return at},B=function(at){return St.some((function(mt,bt){return at[bt].offsetWidth!==w[mt]||at[bt].offsetHeight!==E[mt]}))},$=St.map(v),Q=M(),p.appendChild(y),tt=0;tt<St.length;tt++)w[St[tt]]=$[tt].offsetWidth,E[St[tt]]=$[tt].offsetHeight;return[2,Ht.filter((function(at){return B(Q[at])}))]}))}))}))},he=function(i){var s=(i===void 0?{}:i).debug;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w;return(0,e.YH)(this,(function(E){switch(E.label){case 0:return D()||ct()?(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,Oe((w=[]).concat.apply(w,c.map((function(I){return o[I]}))))]):[2,void 0];case 1:return p=E.sent(),s&&(function(I,M){for(var B="DOM blockers debug:\n```",$=0,Q=Object.keys(I);$<Q.length;$++){var tt=Q[$];B+=`
8
- `.concat(tt,":");for(var rt=0,at=I[tt];rt<at.length;rt++){var mt=at[rt];B+=`
9
- `.concat(M[mt]?"🚫":"➡️"," ").concat(mt)}}console.log("".concat(B,"\n```"))})(o,p),(y=c.filter((function(I){var M=o[I];return T(M.map((function(B){return p[B]})))>.6*M.length}))).sort(),[2,y]}var v}))}))},ee=function(){return i===void 0&&(i=4e3),j((function(s,o){var c=o.document,p=c.body,y=p.style;y.width="".concat(i,"px"),y.webkitTextSizeAdjust=y.textSizeAdjust="none",S()?p.style.zoom="".concat(1/o.devicePixelRatio):D()&&(p.style.zoom="reset");var w=c.createElement("div");return w.textContent=(0,e.fX)([],Array(i/20|0),!0).map((function(){return"word"})).join(" "),p.appendChild(w),(function(E,v){for(var I={},M={},B=0,$=Object.keys(F);B<$.length;B++){var Q=$[B],tt=F[Q],rt=tt[0],at=rt===void 0?{}:rt,mt=tt[1],bt=mt===void 0?"mmMwWLliI0fiflO&1":mt,vt=E.createElement("span");vt.textContent=bt,vt.style.whiteSpace="nowrap";for(var _t=0,Gt=Object.keys(at);_t<Gt.length;_t++){var jt=Gt[_t],Zt=at[jt];Zt!==void 0&&(vt.style[jt]=Zt)}I[Q]=vt,v.append(E.createElement("br"),vt)}for(var Nt=0,Pt=Object.keys(F);Nt<Pt.length;Nt++)M[Q=Pt[Nt]]=I[Q].getBoundingClientRect().width;return M})(c,p)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var i},oe=function(){return navigator.oscpu},de=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()&&T([!("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 C(N(navigator.deviceMemory),void 0)},ze=function(){return C(_(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(N(new Date(c,0,1).getTimezoneOffset()),N(new Date(c,6,1).getTimezoneOffset())));return"UTC".concat(p>=0?"+":"").concat(p)},be=function(){try{return!!window.sessionStorage}catch{return!0}},an=function(){try{return!!window.localStorage}catch{return!0}},Be=function(){return!!window.openDatabase},Ue=function(){return navigator.cpuClass},lr=function(){var i=navigator.platform;return i==="MacIntel"&&D()&&!W()?(function(){if(navigator.platform==="iPad")return!0;var s=screen,o=s.width/s.height;return T(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,o>.65&&o<1.53])>=2})()?"iPad":"iPhone":i},Ge=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=[],y=0;y<c.length;++y){var w=c[y];p.push({type:w.type,suffixes:w.suffixes})}s.push({name:c.name,description:c.description,mimeTypes:p})}}return s}},He=function(){var i,s=navigator,o=0;s.maxTouchPoints!==void 0?o=_(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||""},$e=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()},qe=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}},es=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!!L("inverted")||!L("none")&&void 0},Qe=function(){return!!V("active")||!V("none")&&void 0},ns=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 lt("no-preference")?0:lt("high")||lt("more")?1:lt("low")||lt("less")?-1:lt("forced")?10:void 0},en=function(){return!!yt("reduce")||!yt("no-preference")&&void 0},ji=function(){return!!Et("reduce")||!Et("no-preference")&&void 0},Yi=function(){return!!Ct("high")||!Ct("standard")&&void 0},zi=function(){var i,s=zt.acos||te,o=zt.acosh||te,c=zt.asin||te,p=zt.asinh||te,y=zt.atanh||te,w=zt.atan||te,E=zt.sin||te,v=zt.sinh||te,I=zt.cos||te,M=zt.cosh||te,B=zt.tan||te,$=zt.tanh||te,Q=zt.exp||te,tt=zt.expm1||te,rt=zt.log1p||te;return{acos:s(.12312423423423424),acosh:o(1e308),acoshPf:(i=1e154,zt.log(i+zt.sqrt(i*i-1))),asin:c(.12312423423423424),asinh:p(1),asinhPf:zt.log(1+zt.sqrt(2)),atanh:y(.5),atanhPf:zt.log(3)/2,atan:w(.5),sin:E(-1e300),sinh:v(1),sinhPf:zt.exp(1)-1/zt.exp(1)/2,cos:I(10.000000000123),cosh:M(1),coshPf:(zt.exp(1)+1/zt.exp(1))/2,tan:B(-1e300),tanh:$(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)}},Wi=function(){return navigator.pdfViewerEnabled},Ki=function(){var i=new Float32Array(1),s=new Uint8Array(i.buffer);return i[0]=1/0,i[0]=i[0]-i[0],s[3]},Zi=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)},Xi=function(){if(!ct()&&!D())return-2;if(!window.AudioContext)return-1;var i=new AudioContext().baseLatency;return i==null?-1:isFinite(i)?i:-3},$i=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},qi=function(i){var s,o,c,p,y,w,E=ot(i.cache);if(!E)return-1;if(!it(E))return-2;var v=kt()?null:E.getExtension(G);return{version:((s=E.getParameter(E.VERSION))===null||s===void 0?void 0:s.toString())||"",vendor:((o=E.getParameter(E.VENDOR))===null||o===void 0?void 0:o.toString())||"",vendorUnmasked:v?(c=E.getParameter(v.UNMASKED_VENDOR_WEBGL))===null||c===void 0?void 0:c.toString():"",renderer:((p=E.getParameter(E.RENDERER))===null||p===void 0?void 0:p.toString())||"",rendererUnmasked:v?(y=E.getParameter(v.UNMASKED_RENDERER_WEBGL))===null||y===void 0?void 0:y.toString():"",shadingLanguageVersion:((w=E.getParameter(E.SHADING_LANGUAGE_VERSION))===null||w===void 0?void 0:w.toString())||""}},Ji=function(i){var s=ot(i.cache);if(!s)return-1;if(!it(s))return-2;var o=s.getSupportedExtensions(),c=s.getContextAttributes(),p=[],y=[],w=[],E=[],v=[];if(c)for(var I=0,M=Object.keys(c);I<M.length;I++){var B=M[I];y.push("".concat(B,"=").concat(c[B]))}for(var $=0,Q=Bt(s);$<Q.length;$++){var tt=s[Gt=Q[$]];w.push("".concat(Gt,"=").concat(tt).concat(R.has(tt)?"=".concat(s.getParameter(tt)):""))}if(o)for(var rt=0,at=o;rt<at.length;rt++){var mt=at[rt];if(!(mt===G&&kt()||mt==="WEBGL_polygon_mode"&&(S()||D()))){var bt=s.getExtension(mt);if(bt)for(var vt=0,_t=Bt(bt);vt<_t.length;vt++){var Gt;tt=bt[Gt=_t[vt]],E.push("".concat(Gt,"=").concat(tt).concat(O.has(tt)?"=".concat(s.getParameter(tt)):""))}else p.push(mt)}}for(var jt=0,Zt=A;jt<Zt.length;jt++)for(var Nt=Zt[jt],Pt=0,Xt=H;Pt<Xt.length;Pt++){var Qt=Xt[Pt],ne=Lt(s,Nt,Qt);v.push("".concat(Nt,".").concat(Qt,"=").concat(ne.join(",")))}return E.sort(),w.sort(),{contextAttributes:y,parameters:w,shaderPrecisions:v,extensions:o,extensionParameters:E,unsupportedExtensions:p}},dn=function(i,s){var o=(function($){for(var Q=new Uint8Array($.length),tt=0;tt<$.length;tt++){var rt=$.charCodeAt(tt);if(rt>127)return new TextEncoder().encode($);Q[tt]=rt}return Q})(i);s=s||0;var c,p=[0,o.length],y=p[1]%16,w=p[1]-y,E=[0,s],v=[0,s],I=[0,0],M=[0,0];for(c=0;c<w;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,M[0]=o[c+12]|o[c+13]<<8|o[c+14]<<16|o[c+15]<<24,M[1]=o[c+8]|o[c+9]<<8|o[c+10]<<16|o[c+11]<<24,k(I,ht),U(I,31),k(I,ut),z(E,I),U(E,27),x(E,v),k(E,At),x(E,Rt),k(M,ut),U(M,33),k(M,ht),z(v,M),U(v,31),x(v,E),k(v,At),x(v,st);I[0]=0,I[1]=0,M[0]=0,M[1]=0;var B=[0,0];switch(y){case 15:B[1]=o[c+14],Y(B,48),z(M,B);case 14:B[1]=o[c+13],Y(B,40),z(M,B);case 13:B[1]=o[c+12],Y(B,32),z(M,B);case 12:B[1]=o[c+11],Y(B,24),z(M,B);case 11:B[1]=o[c+10],Y(B,16),z(M,B);case 10:B[1]=o[c+9],Y(B,8),z(M,B);case 9:B[1]=o[c+8],z(M,B),k(M,ut),U(M,33),k(M,ht),z(v,M);case 8:B[1]=o[c+7],Y(B,56),z(I,B);case 7:B[1]=o[c+6],Y(B,48),z(I,B);case 6:B[1]=o[c+5],Y(B,40),z(I,B);case 5:B[1]=o[c+4],Y(B,32),z(I,B);case 4:B[1]=o[c+3],Y(B,24),z(I,B);case 3:B[1]=o[c+2],Y(B,16),z(I,B);case 2:B[1]=o[c+1],Y(B,8),z(I,B);case 1:B[1]=o[c],z(I,B),k(I,ht),U(I,31),k(I,ut),z(E,I)}return z(E,p),z(v,p),x(E,v),x(v,E),et(E),et(v),x(E,v),x(v,E),("00000000"+(E[0]>>>0).toString(16)).slice(-8)+("00000000"+(E[1]>>>0).toString(16)).slice(-8)+("00000000"+(v[0]>>>0).toString(16)).slice(-8)+("00000000"+(v[1]>>>0).toString(16)).slice(-8)},Qi="phantomjs",to="selenium",eo="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 no(i,s){return i.indexOf(s)!==-1}function Dn(i,s){return i.indexOf(s)!==-1}function mi(i){return Object.getOwnPropertyNames(i)}function gi(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];for(var c=function(E){if(typeof E=="string"){if(no(i,E))return{value:!0}}else if((function(v,I){if("find"in v)return v.find(I);for(var M=0;M<v.length;M++)if(I(v[M]))return v[M]})(i,(function(v){return E.test(v)}))!=null)return{value:!0}},p=0,y=s;p<y.length;p++){var w=c(y[p]);if(typeof w=="object")return w.value}return!1}function ro(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function Ua(){var i,s,o=window,c=navigator;return ro(["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":ro(["ApplePayError"in o,"CSSPrimitiveValue"in o,"Counter"in o,c.vendor.indexOf("Apple")===0,"getStorageUpdates"in c,"WebKitMediaKeys"in o])>=4?"webkit":ro(["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 Cn={android:function(){var i=Ua(),s=i==="chromium",o=i==="gecko";if(!s&&!o)return!1;var c=window;return ro(["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 Dn(s,"edg/")?"edge":Dn(s,"trident")||Dn(s,"msie")?"internet_explorer":Dn(s,"wechat")?"wechat":Dn(s,"firefox")?"firefox":Dn(s,"opera")||Dn(s,"opr")?"opera":Dn(s,"chrome")?"chrome":Dn(s,"safari")?"safari":"unknown"},browserEngineKind:Ua,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))Ua()==="chromium"&&ro([!("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[Qi]={window:["callPhantom","_phantom"]},i.rhino={window:["spawn"]},i[to]={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[eo]={window:["domAutomation","domAutomationController"]},i),c={},p=mi(window),y=[];for(s in window.document!==void 0&&(y=mi(window.document)),o){var w=o[s];if(w!==void 0){var E=w.window!==void 0&&gi.apply(void 0,(0,e.fX)([p],w.window,!1)),v=!(w.document===void 0||!y.length)&&gi.apply(void 0,(0,e.fX)([y],w.document,!1));c[s]=E||v}}return c}};function io(i,s){return new Promise((function(o){return Pa(o,i,s)}))}function Pa(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=Date.now()+s,y=0,w=function(){y=setTimeout((function(){Date.now()<p?w():i.apply(void 0,o)}),p-Date.now())};return w(),function(){return clearTimeout(y)}}function rs(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=document,y="visibilitychange",w=function(){return p.hidden?I():v()},E=(function(M,B,$){for(var Q=[],tt=3;tt<arguments.length;tt++)Q[tt-3]=arguments[tt];var rt,at=!1,mt=M,bt=0,vt=function(){at||rt||(bt=Date.now(),rt=Pa((function(){at=!0,$.apply(void 0,Q)}),mt))};return B&&vt(),{start:vt,stop:function(){!at&&rt&&(rt(),rt=void 0,mt-=Date.now()-bt)}}})(s,!p.hidden,(function(){p.removeEventListener(y,w),i.apply(void 0,o)})),v=E.start,I=E.stop;return p.addEventListener(y,w),function(){p.removeEventListener(y,w),I()}}function Un(i,s){return new Promise((function(o){return rs(o,i,s)}))}function t0(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 Fa(i,s){return new Promise((function(o,c){var p=!1;s?.then((function(){return p=!0}),(function(){return p=!0})),(typeof i=="function"?Fa(Promise.resolve(),s).then(i):i).then((function(y){p||o(y)}),(function(y){p||c(y)}))}))}function oo(i){return i.then(void 0,(function(){})),i}function jn(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:try{o=s().then((function(E){return c=[!0,E]}),(function(E){return c=[!1,E]}))}catch(E){c=[!1,E]}return y=i.then((function(E){return p=[!0,E]}),(function(E){return p=[!1,E]})),[4,Promise.race([o,y])];case 1:return w.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 e0(){var i,s,o=new Promise((function(c,p){i=c,s=p}));return o.resolve=i,o.reject=s,o}function is(i){return i instanceof Error||i!==null&&typeof i=="object"&&"name"in i}function n0(i,s){var o=0;return function(){return Math.random()*Math.min(s,i*Math.pow(2,o++))}}function zr(i){return i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}function o4(i,s){return Object.prototype.hasOwnProperty.call(i,s)}function yi(i,s,o,c){return i.addEventListener(s,o,c),function(){return i.removeEventListener(s,o,c)}}var Va,Ha="0123456789abcdef";function r0(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 os(i){if(typeof TextDecoder=="function"){var s=new TextDecoder().decode(i);if(s)return s}var o=zr(i);return decodeURIComponent(escape(String.fromCharCode.apply(null,o)))}function wi(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function i0(i,s){return(i-s+256)%256}function Qn(i){var s=zr(i);return btoa(String.fromCharCode.apply(null,s))}function ss(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 o0(Ar(i))}function o0(i){var s=zr(i);Va=Va||(function(){for(var p,y=new Uint32Array(256),w=0;w<256;w++){p=w;for(var E=0;E<8;E++)p=1&p?3988292384^p>>>1:p>>>1;y[w]=p}return y})();for(var o=-1,c=0;c<s.length;c++)o=o>>>8^Va[255&(o^s[c])];return~o>>>0}function s0(i){return i===void 0?void 0:"".concat(i)}function s4(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 a4(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 as(i){if(i instanceof Array)return i.map(as);if(i&&typeof i=="object"){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o];s[p]=as(i[p])}return s}return i}function u4(i,s){for(var o=[],c=Object.getOwnPropertyNames(i),p=0;p<c.length;p++){var y=c[p],w=tr(y);s.has(w)&&o.push({i:p,n:y})}return{l:c.length,p:o}}var Ga=new Uint32Array(2);function us(){return crypto?(crypto.getRandomValues(Ga),(1048576*Ga[0]+(1048575&Ga[1]))/4503599627370496):Math.random()}function a0(i,s,o){o===void 0&&(o=us);for(var c="",p=0;p<i;p++)c+=s.charAt(o()*s.length);return c}function so(i){return a0(i,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function u0(){return[8,4,4,4,12].map((function(i){return a0(i,Ha)})).join("-")}var c0=new Uint8Array(1);function c4(){return crypto.getRandomValues(c0),c0[0]}function f0(){return new TypeError("Can't pick from nothing")}function f4(i,s){return Math.floor(us()*(s-i+1))+i}function l0(i){return l4(i)?(function(s){if(s.length===0)throw f0();return s[Math.floor(us()*s.length)]})(i):(function(s){for(var o=us(),c=0,p=0,y=0,w=s;y<w.length;y++)c+=B=w[y][1];for(var E=0,v=s;E<v.length;E++){var I=v[E],M=I[0],B=I[1];if(o>=p/c&&o<(p+B)/c)return M;p+=B}throw f0()})(Object.entries(i))}var l4=Array.isArray,ja="3.11.11",cs={default:"endpoint"},d0={default:"tEndpoint"},fs={default:"tlsEndpoint"};function h0(i){return i?{query:!0,fragment:!0}:void 0}var p0="_vid";function v0(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 m0(){return{len:0,arr:new Uint8Array(128)}}function er(i,s){y0(i,i.len+1),i.arr[i.len++]=s}function ls(i,s){y0(i,i.len+s.length),i.arr.set(s,i.len),i.len+=s.length}function g0(i){return i.arr.subarray(0,i.len)}function y0(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 w0(i){var s=m0(),o=new WeakSet,c=function(p){if(typeof p=="string"){var y=p.replace(R4,(function(at){return"\\"+(N0[at]||"u"+at.charCodeAt(0).toString(16).padStart(4,"0"))}));return er(s,ao),ls(s,Ar(y)),void er(s,ao)}if(typeof p=="number"||p===!0||p===!1)return(Number.isNaN(p)||p===1/0||p===-1/0)&&(p=null),void ls(s,Ar(String(p)));if(typeof p=="object"&&p){if(o.has(p))throw new TypeError("Recursive input");o.add(p);var w=p.toJSON;if(typeof w=="function")return void c(w.call(p));if(p instanceof Number||p instanceof String)return void c(p.valueOf());var E=!0,v=function(){E?E=!1:er(s,Ya)};if(Array.isArray(p)){er(s,R0);for(var I=0,M=p;I<M.length;I++){var B=M[I];v(),c(B)}er(s,A0)}else{er(s,S0);for(var $=0,Q=Object.entries(p);$<Q.length;$++){var tt=Q[$],rt=tt[0];d4(B=tt[1])||(v(),c(rt),er(s,_0),c(B))}er(s,I0)}o.delete(p)}else ls(s,Ka)};return c(i),g0(s)}function ds(i){var s=m0(),o=zr(i),c=0,p=function(){return I(),o[c]===ao?y():E0(o[c])?w():M(Ka)?(c+=Ka.length,null):M(O0)?(c+=O0.length,!0):M(T0)?(c+=T0.length,!1):o[c]===R0?E():o[c]===S0?v():B()},y=function(){for(s.len=0;c++,o[c]!==ao;){if(o[c]===g4){if(c++,o[c]===Wa){var Q=parseInt(os(o.subarray(c+1,c+5)),16);ls(s,Ar(String.fromCharCode(Q))),c+=4;continue}var tt=b4[o[c]];if(tt){er(s,tt);continue}return B()}if(o[c]===void 0)return B();er(s,o[c])}return c++,os(g0(s))},w=function(){for(var Q=c;o[c]===_4||o[c]===za||o[c]===y4||o[c]===w4||E0(o[c]);)c++;return Number(os(o.subarray(Q,c)))},E=function(){var Q=[];for(c++;;){if(I(),o[c]===A0){c++;break}if(Q.length){if(o[c]!==Ya)return B();c++}Q.push(p())}return Q},v=function(){var Q={},tt=!0;for(c++;;){if(I(),o[c]===I0){c++;break}if(!tt){if(o[c]!==Ya)return B();c++,I()}if(o[c]!==ao)return B();var rt=y();if(I(),o[c]!==_0)return B();c++,Object.defineProperty(Q,rt,{value:p(),configurable:!0,enumerable:!0,writable:!0}),tt=!1}return Q},I=function(){for(;o[c]===h4||o[c]===m4||o[c]===v4||o[c]===p4;)c++},M=function(Q){for(var tt=0;tt<Q.length;tt++)if(o[c+tt]!==Q[tt])return!1;return!0},B=function(){throw new SyntaxError("Unexpected ".concat(c<o.length?"byte ".concat(c):"end"))},$=p();return I(),o[c]!==void 0&&B(),$}function d4(i){return i===void 0||typeof i=="function"||typeof i=="symbol"}function E0(i){return i>=b0&&i<b0+10||i===E4}var ao=34,Ya=44,_0=58,h4=32,p4=9,v4=13,m4=10,g4=92,b0=48,za=101,Wa=117,y4=69,w4=43,E4=45,_4=46,R0=91,A0=93,S0=123,I0=125,Ka=new Uint8Array([110,Wa,108,108]),O0=new Uint8Array([116,114,Wa,za]),T0=new Uint8Array([102,97,108,115,za]),N0={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},b4=(function(){for(var i=new Uint8Array(128),s=0,o=Object.entries(N0);s<o.length;s++){var c=o[s],p=c[0];i[c[1].charCodeAt(0)]=p.charCodeAt(0)}return i})(),R4=/[\x00-\x1F"\\]/g,Za="Client timeout",Xa="Network connection error",$a="Network request aborted",qa="Response cannot be parsed",Ja="Blocked by CSP",Qa="The endpoint parameter is not a valid URL";function Wr(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 Yn(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 x0=Yn("WrongRegion"),C0=Yn("SubscriptionNotActive"),L0=Yn("UnsupportedVersion"),B0=Yn("InstallationMethodRestricted"),M0=Yn("HostnameRestricted"),k0=Yn("IntegrationFailed"),D0=Yn("VisitorNotFound"),U0=Yn("NetworkRestricted"),P0=Yn("InvalidProxyIntegrationSecret"),F0=Yn("InvalidProxyIntegrationHeaders");function A4(i){var s;try{s=ds(i.body)}catch{}return(0,e.Cl)((0,e.Cl)({},i),{bodyData:s})}function S4(i,s,o,c){var p=c.bodyData;return p===void 0?z0(c):(function(y){return y instanceof Object&&y.v==="2"&&y.products instanceof Object})(p)?(function(y,w,E,v){var I,M=y.notifications,B=y.requestId,$=y.sealedResult,Q=y.error,tt=y.products,rt=(function(jt){for(var Zt=[],Nt=0,Pt=Object.keys(jt);Nt<Pt.length;Nt++){var Xt=jt[Pt[Nt]];Xt&&Zt.push(Xt)}return Zt})(tt);Y0(M);for(var at=0,mt=rt;at<mt.length;at++)Y0(mt[at].notifications);if(Q)return V0(Q,B,$,E);for(var bt=0,vt=rt;bt<vt.length;bt++){var _t=vt[bt].error;if(_t)return V0(_t,B,$,E)}(function(jt,Zt,Nt){for(var Pt,Xt=0,Qt=Zt;Xt<Qt.length;Xt++){var ne=Qt[Xt];(Pt=ne.onResponse)===null||Pt===void 0||Pt.call(ne,jt,Nt)}})(y,w,v);var Gt=(I=tt.identification)===null||I===void 0?void 0:I.data;return{result:Gt?(0,e.Cl)((0,e.Cl)({requestId:B},$===void 0?{}:{sealedResult:$}),Gt.result):H0(B,$,E)}})(p,i,s,o):z0(c)}function V0(i,s,o,c){switch(i.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return G0(s,o,!0,c);case"NotAvailableWithoutUA":return G0(s,o,void 0,c);default:return{error:j0(I4(i),s,i),stop:i.code==="VisitorNotFound"}}}function I4(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:Yn(o)}function H0(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 G0(i,s,o,c){return{result:(0,e.Cl)((0,e.Cl)({},H0(i,s,c)),{bot:(0,e.Cl)({probability:1},o===void 0?void 0:{safe:o})})}}function j0(i,s,o){var c=new Error(i);return s!==void 0&&(c.requestId=s),o!==void 0&&(c.raw=o),c}function Y0(i){i?.forEach(O4)}function O4(i){var s=i.level,o=i.message;s==="error"?console.error(o):s==="warning"?console.warn(o):console.log(o)}function z0(i){return{error:j0(qa,void 0,{httpStatusCode:i.status,bodyBase64:Qn(i.body)})}}var W0="[Fingerprint Pro]";function T4(i){return i===void 0&&(i=W0),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(y){return"error"in c[y]}))&&(o=console.warn);break;case 17:var p=s.error;o=s.stage===0&&is(p)&&p.message===D0?console.log:console.error}o.apply(console,(function(y,w){var E=w.e,v=w.stage,I=(0,e.Tt)(w,["e","stage"]),M=[y,new Date().toISOString().slice(11),v0(E)];if(v!==void 0)switch(v){case 0:M.push("(fast)");break;case 1:M.push("(final)");break;default:I.stage=v}return M.push(I),M})(i,s))}}function N4(i){i===void 0&&(i="".concat(W0," "));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 K0="__fpjs_pvid";function Z0(){var i=window,s=i[K0];return i[K0]=typeof s=="string"?s:so(10)}function x4(){var i=window;try{return i.self!==i.top}catch{return!0}}function tu(){return!document.hidden}var X0="stripped",eu=["path","query","fragment"];function hs(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 $0(s)?[2,i]:(o=ps(i),[4,Promise.all(eu.map((function(y){return(0,e.sH)(c,void 0,void 0,(function(){var w,E,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return w=o[y],s[y]&&w?(E=o,v=y,[4,C4(y==="query"?(M=w,M.split("&").sort().join("&")):w)]):[3,2];case 1:E[v]=I.sent(),I.label=2;case 2:return[2]}var M}))}))})))]);case 1:return p.sent(),[2,vs(o)]}}))}))}function $0(i){return!(i&&eu.some((function(s){return i[s]})))}function ps(i){var s,o,c=i.split("#"),p=c[0],y=c.slice(1),w=p.split("?"),E=w[0],v=w.slice(1),I=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(E);return I?(s=(I[1]||"")+(I[4]||""),o=I[5]||""):(s="",o=E),{origin:s,path:o,query:v.length?v.join("?"):null,fragment:y.length?y.join("#"):null}}function vs(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 C4(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,X0];case 1:return[2,Qn(c.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}}))}))}function L4(i,s){var o=ps(i),c=o.origin+o.path;return c&&!c.endsWith("/")&&(c+="/"),c+=s,o.origin="",o.path=c,vs(o)}function nu(i,s){for(var o=ps(i),c=o.query,p=0,y=Object.entries(s);p<y.length;p++)for(var w=y[p],E=w[0],v=w[1],I=0,M=Array.isArray(v)?v:[v];I<M.length;I++){var B=M[I];c="".concat(c?"".concat(c,"&"):"").concat(E,"=").concat(B4(B))}return o.query=c,vs(o)}function B4(i){return i.split("/").map(encodeURIComponent).join("/")}function M4(i){return function(s){var o=[],c=new Map,p=window.setInterval((function(){var w=o.shift();if(w){var E=w[0],v=w[1],I=oo(i(v));c.set(E,I)}}),1);function y(){window.clearInterval(p)}return s.then(y,y),[o,c,s]}}function q0(i){var s,o,c=Math.random();return s=c,o=i,i.container[0].push([s,o]),(function(p,y,w){var E;function v(){window.clearInterval(E)}var I=p[1],M=p[2],B=new Promise((function($,Q){E=window.setInterval((function(){var tt=I.get(y);if(tt)return I.delete(y),tt.then($,Q)}),1)}));return B.then(v,v),w?.then(v,v),M.then(v,v),B})(i.container,c,i.abort)}var J0=M4(k4);function k4(i){return(function(s,o,c,p){var y,w=document,E="securitypolicyviolation",v=function(M){var B=new URL(s,location.href),$=M.blockedURI;$!==B.href&&$!==B.protocol.slice(0,-1)&&$!==B.origin||(y=M,I())};w.addEventListener(E,v);var I=function(){return w.removeEventListener(E,v)};return p?.then(I,I),Promise.resolve().then(o).then((function(M){return I(),M}),(function(M){return new Promise((function(B){var $=new MessageChannel;$.port1.onmessage=function(){return B()},$.port2.postMessage(null)})).then((function(){if(I(),y)return(function(){throw Q0()})();throw M}))}))})(i.url,(function(){return o=(s=i).url,c=s.method,p=c===void 0?"get":c,y=s.body,w=s.headers,E=s.withCredentials,v=E!==void 0&&E,I=s.timeout,M=s.responseFormat,B=s.abort,new Promise((function($,Q){if((function(bt){if(URL.prototype)try{return new URL(bt,location.href),!1}catch(vt){if(vt instanceof Error&&vt.name==="TypeError")return!0;throw vt}})(o))throw uo("InvalidURLError","Invalid URL");var tt=new XMLHttpRequest;try{tt.open(p,o,!0)}catch(bt){throw bt instanceof Error&&/violate.+content security policy/i.test(bt.message)?Q0():bt}if(tt.withCredentials=v,tt.timeout=I===void 0?0:Math.max(I,1),M==="binary"&&(tt.responseType="arraybuffer"),w)for(var rt=0,at=Object.keys(w);rt<at.length;rt++){var mt=at[rt];tt.setRequestHeader(mt,w[mt])}tt.onload=function(){return $((function(bt){return{body:bt.response,status:bt.status,statusText:bt.statusText,getHeader:function(vt){return(function(_t,Gt){var jt,Zt=new RegExp("^".concat((jt=Gt,jt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),": (.*)$"),"im").exec(_t);return Zt?Zt[1]:void 0})(bt.getAllResponseHeaders(),vt)}}})(tt))},tt.ontimeout=function(){return Q(uo("TimeoutError","The request timed out"))},tt.onabort=function(){return Q(uo("AbortError","The request is aborted"))},tt.onerror=function(){return Q(uo("TypeError",navigator.onLine?"Connection error":"Network offline"))},tt.send((function(bt){var vt=function(){try{return new Blob([]),!1}catch{return!0}};if(bt instanceof ArrayBuffer){if(!vt())return new Uint8Array(bt)}else if(bt?.buffer instanceof ArrayBuffer&&vt())return bt.buffer;return bt})(y)),B?.catch((function(){})).then((function(){tt.onabort=null,tt.abort()}))}));var s,o,c,p,y,w,E,v,I,M,B}),0,i.abort)}function uo(i,s){var o=new Error(s);return o.name=i,o}function Q0(){return uo("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&&t0((function(){var p=s.apply(void 0,o);p!==void 0&&i(p)}))}function co(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w;return(0,e.YH)(this,(function(E){switch(E.label){case 0:dr(i,s),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,p()];case 2:return y=E.sent(),[3,4];case 3:throw w=E.sent(),dr(i,c,w),w;case 4:return dr(i,o,y),[2,y]}}))}))}function D4(i){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o],y=i[p];if("value"in y){y.value;var w=(0,e.Tt)(y,["value"]);s[p]=w}else s[p]=y}return s}function tl(i){return typeof i.getCallId=="string"}function U4(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 P4(){var i=window,s=navigator;return wi(["maxTouchPoints"in s,"mediaCapabilities"in s,"PointerEvent"in i,"visualViewport"in i,"onafterprint"in i])>=4}function F4(){var i=window;return wi(["mediaSession"in navigator,"BigInt64Array"in i,"FormDataEvent"in i,"ImageBitmap"in i,"WebGL2RenderingContext"in i,"onclose"in i])>=4}function V4(){var i=window;return wi(["fromAsync"in Array,"OffscreenCanvas"in i,"CompressionStream"in i,"isWellFormed"in String.prototype])>=3}function H4(){var i,s=window;return wi(["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 el(){var i=window;return wi([!("PushManager"in i),!("AudioBuffer"in i),!("RTCPeerConnection"in i),!("geolocation"in navigator),!("ServiceWorker"in i)])>=3}function G4(){var i=window;return wi(["ClipboardItem"in i,"PerformanceEventTiming"in i,"RTCSctpTransport"in i])>=2}var j4=(function(){function i(s){var o=this;this.onReportReady=s,this.isStopped=!1,this.pageStartTimestamp=(function(){var tt,rt,at=performance;if(at.timeOrigin){var mt=(rt=(tt=at.getEntriesByType)===null||tt===void 0?void 0:tt.call(at,"navigation"))===null||rt===void 0?void 0:rt[0];if(mt)return at.timeOrigin+(mt.responseStart||mt.unloadEventEnd)}return at.timing.domLoading||at.timing.responseStart||at.timing.unloadEventEnd})(),this.events={};for(var c=window,p=document,y=[[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()}]],w=0,E=y;w<E.length;w++){var v=E[w],I=v[0],M=v[1],B=v[2];I.addEventListener(M,B)}var $=(function(tt){var rt=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((function(at){return yi(document,at,tt,void 0)}));return function(){for(var at=0,mt=rt;at<mt.length;at++)(0,mt[at])()}})((function(){return o.handleFullscreenChange()})),Q=(function(tt){var rt=window,at=navigator.connection;if(at)return yi(at,"change",tt);var mt=yi(rt,"online",tt),bt=yi(rt,"offline",tt);return function(){mt(),bt()}})((function(){return o.handleNetworkConnectionChange()}));this.stop=function(){o.isStopped=!0;for(var tt=0,rt=y;tt<rt.length;tt++){var at=rt[tt],mt=at[0],bt=at[1],vt=at[2];mt.removeEventListener(bt,vt)}$(),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:h0(p?.stripUrlParams),c.documentReadyState=document.readyState,c.isPageVisible=tu(),c.isFullscreen=nl(),c.network=rl()}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:tu()})},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:nl()})},i.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:rl()})},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 y=0,w=Object.keys(p.getCalls);y<w.length;y++){var E=w[y];Y4(p.getCalls[E])||this.submitReport(c,E)}}this.stop()},i.prototype.storeAgentEvent=function(s){var o=s.event,c=o.agentId;if(this.events[c]||(this.events[c]={commonEvents:[],getCalls:{}}),tl(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(y,w,E){var v=[];return y[w]&&(v.push.apply(v,y[w].commonEvents),E!==void 0&&v.push.apply(v,y[w].getCalls[E]||[])),v.sort((function(I,M){return I.time.getTime()-M.time.getTime()})),v})(this.events,s,o),p=(function(y,w,E){for(var v,I,M,B,$,Q,tt,rt,at,mt=(function(Nt){for(var Pt={},Xt=0,Qt=Nt;Xt<Qt.length;Xt++){var ne=Qt[Xt];ne.type==="agentEvent"&&(Pt[ne.event.e]=ne)}return Pt})(y),bt="null",vt=0,_t=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];vt<_t.length;vt++){var Gt=_t[vt],jt=Gt[0],Zt=Gt[1];if(mt[jt]){bt=Zt;break}}return{time:((v=y[y.length-1])===null||v===void 0?void 0:v.time)||new Date,pageUrl:location.href,pageStartTime:new Date(w),isInIframe:x4(),agentVersion:(I=mt[0])===null||I===void 0?void 0:I.event.version,userAgent:navigator.userAgent,pageViewId:Z0(),agentId:(M=mt[0])===null||M===void 0?void 0:M.event.agentId,getCallId:(B=mt[3])===null||B===void 0?void 0:B.event.getCallId,requestId:(Q=($=mt[4])===null||$===void 0?void 0:$.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:(at=mt[4])===null||at===void 0?void 0:at.event.result.visitorId,identificationState:bt,events:y,urlHashing:E}})(c,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(p)}catch(y){console.error(y)}},i})();function Y4(i){return i.some((function(s){return s.type==="agentEvent"&&(s.event.e===4||s.event.e===5)}))}function nl(){return!!nt()}function rl(){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 z4(i){var s=this,o=i.clientId,c=i.token,p=i.endpoint,y=p===void 0?"https://api.rollbar.com/api/1/item/":p,w=new j4((function(E){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(M,B,$){return{access_token:$,data:W4(M,B,void 0)}})(E,o,c),[4,X4(y,v)];case 1:return I.sent(),[2]}}))}))}));return w.addEvent.bind(w)}function W4(i,s,o){var c;o===void 0&&(o=u0());var p=K4[i.identificationState],y=p.level,w=p.message,E=(function(v,I){if($0(I))return v;for(var M=ps(v),B=0,$=eu;B<$.length;B++){var Q=$[B];I[Q]&&M[Q]&&(M[Q]=X0)}return vs(M)})(i.pageUrl,i.urlHashing);return{environment:s,level:y,timestamp:Math.round(i.time.getTime()/1e3),platform:"browser",framework:"Fingerprint Pro",language:"javascript",uuid:o,notifier:{name:"Fingerprint Pro monitoring",version:ja},request:{url:E,query_string:((c=/\?.*$/.exec(E))!==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(Z4),!0),message:{body:w}},custom:{isInIframe:i.isInIframe,pageViewId:i.pageViewId,agentId:i.agentId,getCallId:i.getCallId,requestId:i.requestId,identificationState:i.identificationState}}}var K4={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 Z4(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,M){M===void 0&&(M="info");var B=I;B.e,B.agentId,B.getCallId;for(var $=(0,e.Tt)(B,["e","agentId","getCallId"]),Q=(0,e.Cl)((0,e.Cl)({},s),{level:M,body:(0,e.Cl)({message:v0(o.e)},$)}),tt=0,rt=["documentReadyState","isPageVisible","isFullscreen","network"];tt<rt.length;tt++){var at=rt[tt];i[at]!==void 0&&(Q.body[at]=i[at])}return Q};switch(o.e){case 0:o.version;var p=o.options,y=(0,e.Tt)(o,["version","options"]);return c((0,e.Cl)((0,e.Cl)({},y),{options:U4(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 w=o.result;return c((0,e.Cl)((0,e.Cl)({},o),{result:(0,e.Cl)((0,e.Cl)({},w),{v:"v"in w?w.v&&Wr(w.v,1e3):void 0})}));case 10:return c((0,e.Cl)((0,e.Cl)({},o),{body:Wr(o.body,1e3)}));case 13:var E=c((0,e.Cl)((0,e.Cl)({},o),{result:D4(o.result)}));return E.body.message+=" (the values are omitted)",E;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 X4(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(y){return JSON.stringify(y,(function(w,E){if(E instanceof Error){var v=(function(I,M){var B;return M===void 0&&(M=!1),(0,e.Cl)({name:I.name,message:I.message,stack:M?(B=I.stack)===null||B===void 0?void 0:B.split(`
10
- `):I.stack},I)})(E);return typeof v.stack=="string"&&(v.stack=Wr(v.stack,1e3)),v}return E}))})(s),c=n0(1e3,1e4),p.label=1;case 1:return navigator.onLine&&(function(y){var w,E=y.url,v=y.body,I=(function(){var B,$=(B=window.event)===null||B===void 0?void 0:B.type;return $==="pagehide"||$==="unload"})();if(I)try{if(!((w=navigator.sendBeacon)===null||w===void 0)&&w.call(navigator,E,v))return!0}catch(B){if(!(B instanceof Error&&B.message==="Illegal invocation"))throw B}var M=new XMLHttpRequest;M.open("POST",E,!I),v instanceof Blob&&M.setRequestHeader("Content-Type",v.type);try{M.send(v)}catch{return!1}return!0})({url:i,body:o})?[3,4]:[4,io(c())];case 2:p.sent(),p.label=3;case 3:return[3,1];case 4:return[2]}}))}))}function il(i,s,o,c,p){c===void 0&&(c=1/0);var y,w={failedAttempts:[]},E=(function(B){var $=(function(rt){var at=(0,e.fX)([],rt,!0);return{current:function(){return at[0]},postpone:function(){var mt=at.shift();mt!==void 0&&at.push(mt)},exclude:function(){at.shift()}}})(B),Q=n0(200,1e4),tt=new Set;return[$.current(),function(rt,at,mt){var bt;if(at)bt=(function(jt){var Zt=jt.getHeader("retry-after");if(Zt){if(/^\s*\d+(\.\d+)?\s*$/.test(Zt))return 1e3*parseFloat(Zt);var Nt=new Date(Zt);return isNaN(Nt)?void 0:Nt.getTime()-Date.now()}})(at),bt!==void 0?$.postpone():$.exclude();else if(mt instanceof Error&&(mt.name==="CSPError"||mt.name==="InvalidURLError"))$.exclude(),bt=0;else{var vt=Date.now()-rt.getTime()<50,_t=$.current();_t&&vt&&!tt.has(_t)&&(tt.add(_t),bt=0),$.postpone()}var Gt=$.current();return Gt===void 0?void 0:[Gt,bt??rt.getTime()+Q()-Date.now()]}]})(i),v=E[0],I=E[1],M=(y=[p?.then((function(B){return w.aborted={resolve:!0,value:B}}),(function(B){return w.aborted={resolve:!1,error:B}})),(0,e.sH)(this,void 0,void 0,(function(){var B,$,Q;return(0,e.YH)(this,(function(tt){switch(tt.label){case 0:if(v===void 0)return[2];B=v,$=function(rt){var at,mt,bt,vt,_t,Gt;return(0,e.YH)(this,(function(jt){switch(jt.label){case 0:at=new Date,mt=void 0,bt=void 0,jt.label=1;case 1:return jt.trys.push([1,3,,4]),[4,Fa((function(){return s(B,rt,p)}),p)];case 2:return mt=jt.sent(),[3,4];case 3:return vt=jt.sent(),bt=vt,w.failedAttempts.push({level:0,endpoint:B,error:vt}),[3,4];case 4:if(mt){if("result"in(_t=o(mt)))return w.result=_t.result,[2,"break"];if(w.failedAttempts.push({level:1,endpoint:B,error:_t.error}),_t.stop)return[2,"break"]}return(Gt=I(at,mt,bt))?[4,Fa(io(Gt[1]),p)]:[2,"break"];case 5:return jt.sent(),B=Gt[0],[2]}}))},Q=0,tt.label=1;case 1:return Q<c?[5,$(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(y.filter((function(B){return!!B})))).then((function(){return w}));return{then:M.then.bind(M),current:w}}function ol(){return"js/".concat(ja)}var $4=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,q4=/@([^(^\s^}]+):(\d)+:(\d)+/i;function sl(i){return{e:J4(i)}}function J4(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 Wr(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 al(i){return wt(i,(function(s){return typeof s=="number"?{s,v:null}:{s:0,v:s}}))}function Ln(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 Q4(i){var s=i.modules,o=i.components,c=o===void 0?{}:o,p=i.customComponent,y=i.apiKey,w=i.tls,E=i.tag,v=i.extendedResult,I=i.exposeComponents,M=i.linkedId,B=i.algorithm,$=i.imi,Q=i.storageKey,tt=i.products,rt=i.urlHashing,at=i.ab,mt=i.fast,bt=i.requestId;return(0,e.sH)(this,void 0,void 0,(function(){var vt,_t,Gt=this;return(0,e.YH)(this,(function(jt){switch(jt.label){case 0:return vt=(0,e.Cl)(((_t={}).c=y,_t.t=(Zt=E)&&typeof Zt=="object"?Zt:Zt!=null?{tag:Zt}:void 0,_t.cbd=v?1:void 0,_t.lid=M,_t.a=B,_t.m=$.m,_t.l=$.l,_t.ec=I?1:void 0,_t.mo=s.map((function(Nt){return Nt.key})).filter((function(Nt){return!!Nt})),_t.pr=tt,_t.s56=w,_t.s67=p?{s:0,v:p}:{s:-1,v:null},_t.sc=(function(){var Nt,Pt=(function(){var Xt,Qt,ne,ue,we,pe=new Error,Se=(Xt=pe).fileName?Xt.fileName.split(" ")[0]:Xt.sourceURL?Xt.sourceURL:null;if(Se)return Se;if(pe.stack){var Ce=(ne=(Qt=pe.stack.split(`
11
- `))[0],ue=Qt[1],(we=$4.exec(ue)||q4.exec(ne))?we[1]:void 0);if(Ce)return Ce}return null})();return(Nt={}).u=Pt?Wr(Pt,1e3):null,Nt})(),_t.uh=(function(Nt){var Pt;if(Nt)return(Pt={}).p=Nt.path?1:void 0,Pt.q=Nt.query?1:void 0,Pt.f=Nt.fragment?1:void 0,Pt})(rt),_t.gt=1,_t.ab=at,_t.hu=mt?0:bt?1:void 0,_t.ri=bt,_t),(function(Nt){for(var Pt={},Xt=0,Qt=Object.keys(Nt);Xt<Qt.length;Xt++){var ne=Qt[Xt],ue=Nt[ne];if(ue){var we="error"in ue?sl(ue.error):ue.value;Pt[ne]=we}}return Pt})(c)),[4,Promise.all(s.map((function(Nt){var Pt=Nt.toRequest;return(0,e.sH)(Gt,void 0,void 0,(function(){var Xt,Qt,ne;return(0,e.YH)(this,(function(ue){switch(ue.label){case 0:return Pt?(Qt=(Xt=Object).assign,ne=[vt],[4,Pt(Q,rt)]):[3,2];case 1:Qt.apply(Xt,ne.concat([ue.sent()])),ue.label=2;case 2:return[2]}}))}))})))];case 1:return jt.sent(),[2,vt]}var Zt}))}))}function ul(i,s,o,c,p){p===void 0&&(p=c4);var y=p()%(o+1),w=zr(i),E=1+s.length+1+y+c+w.length,v=new ArrayBuffer(E),I=new Uint8Array(v),M=0,B=p();I[M++]=B;for(var $=0,Q=s;$<Q.length;$++){var tt=Q[$];I[M++]=B+tt}I[M++]=B+y;for(var rt=0;rt<y;++rt)I[M++]=p();var at=new Uint8Array(c);for(rt=0;rt<c;++rt)at[rt]=p(),I[M++]=at[rt];for(rt=0;rt<w.length;++rt)I[M++]=w[rt]^at[rt%c];return v}function ru(i,s,o){var c=function(){throw new Error("Invalid data")},p=zr(i);p.length<s.length+2&&c();for(var y=0;y<s.length;++y)i0(p[1+y],p[0])!==s[y]&&c();var w=1+s.length,E=i0(p[w],p[0]);p.length<w+1+E+o&&c();var v=w+1+E,I=v+o,M=new ArrayBuffer(p.length-I),B=new Uint8Array(M);for(y=0;y<B.length;++y)B[y]=p[I+y]^p[v+y%o];return M}function t5(i){return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:return cl()?(s=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),o=s[0],c=s[1],[4,e5(i,c)]):[2,[!1,i]];case 1:return p=w.sent(),y=o?p:(function(E){return new Uint8Array(E.buffer,E.byteOffset+2,E.byteLength-6)})(p),[2,[!0,y]]}}))}))}function cl(){return typeof CompressionStream<"u"}function e5(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w,E,v,I,M,B,$;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=[],y=0,Q.label=1;case 1:return[4,c.read()];case 2:if(w=Q.sent(),E=w.value,w.done)return[3,4];p.push(E),y+=E.byteLength,Q.label=3;case 3:return[3,1];case 4:if(p.length===1)return[2,p[0]];for(v=new Uint8Array(y),I=0,M=0,B=p;M<B.length;M++)$=B[M],v.set($,I),I+=$.byteLength;return[2,v]}}))}))}var fl=[3,13],n5=[3,14];function r5(i,s){return ul(i,s?n5:fl,3,9)}function i5(i){var s=i.body,o=(0,e.Tt)(i,["body"]);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,y,w,E,v,I;return(0,e.YH)(this,(function(M){switch(M.label){case 0:return ll(s)?[4,t5(s)]:[3,2];case 1:return w=M.sent(),[3,3];case 2:w=[!1,s],M.label=3;case 3:return p=(c=w)[0],y=c[1],[4,q0((0,e.Cl)((0,e.Cl)({},o),{body:r5(y,p),responseFormat:"binary"}))];case 4:E=M.sent(),v=E.body,I=!1;try{v=ru(v,fl,9),I=!0}catch{}return[2,(0,e.Cl)((0,e.Cl)({},E),{body:v,wasSecret:I})]}}))}))}function ll(i){return i.byteLength>1024&&cl()}function dl(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w,E,v,I=this;return(0,e.YH)(this,(function(M){switch(M.label){case 0:if(i.length===0)throw new TypeError("The list of endpoints is empty");return y=i.map((function(B){return(function($,Q){var tt=Q.apiKey,rt=Q.integrations,at=rt===void 0?[]:rt;return nu($,{ci:ol(),q:tt,ii:at})})(B,s)})),[4,Q4(s)];case 1:return w=M.sent(),E=w0(w),v=s.fast?0:1,[4,co(p,(function(){return{e:15,stage:v,body:w,isCompressed:ll(E)}}),(function(B){return{e:16,stage:v,result:B}}),(function(B){return{e:17,stage:v,error:B}}),(function(){return(0,e.sH)(I,void 0,void 0,(function(){return(0,e.YH)(this,(function(B){switch(B.label){case 0:return[4,il(y,o5.bind(null,E,p,v,o),S4.bind(null,s.modules,!!s.extendedResult,s.storageKey),1/0,c)];case 1:return[2,s5(B.sent())]}}))}))}))];case 2:return[2,M.sent()]}}))}))}function o5(i,s,o,c,p,y,w){var E=this;return co(s,(function(){return{e:18,stage:o,tryNumber:y,url:p}}),(function(v){var I=v.status,M=v.getHeader,B=v.body,$=v.bodyData,Q=v.wasSecret;return{e:19,stage:o,tryNumber:y,status:I,retryAfter:M("retry-after"),body:$??B,wasSecret:Q}}),(function(v){return{e:20,stage:o,tryNumber:y,error:v}}),(function(){return(0,e.sH)(E,void 0,void 0,(function(){return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,i5({url:p,method:"post",headers:{"Content-Type":"text/plain"},body:i,withCredentials:!0,abort:w,container:c})];case 1:return[2,A4(v.sent())]}}))}))}))}function s5(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 y=p.level,w=p.error;if(y===0&&w instanceof Error){switch(w.name){case"CSPError":throw new Error(Ja);case"InvalidURLError":throw new Error(Qa);case"AbortError":throw new Error($a)}throw new Error(Xa)}throw w}function a5(i,s,o){var c,p=this,y=(0,e.Cl)((0,e.Cl)({},o),{cache:{}}),w=(function($){for(var Q={},tt={},rt={},at=0,mt=$;at<mt.length;at++){var bt=mt[at].sources;bt&&(Object.assign(Q,bt.stage1),Object.assign(tt,bt.stage2),Object.assign(rt,bt.stage3))}var vt=tt;return Object.assign(vt,rt),[Q,vt]})(i),E=w[0],v=w[1],I=s?1e5:50,M=gt(E,y,[],I),B=oo((c=8,c===void 0&&(c=50),(function($,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})})):u(Math.min($,Q))})(c,2*c)).then((function(){return gt(v,y,[],I)})));return function(){return(0,e.sH)(p,void 0,void 0,(function(){var $,Q,tt,rt;return(0,e.YH)(this,(function(at){switch(at.label){case 0:return[4,Promise.all([M(),B.then((function(mt){return mt()}))])];case 1:return $=at.sent(),Q=$[0],tt=$[1],rt=tt,Object.assign(rt,Q),[2,rt]}}))}))}}function Sr(i,s){for(var o=i;o;){for(var c=Object.getOwnPropertyNames(o),p=0;p<c.length;p++){var y=c[p];if(tr(y)==s)return y}o=Object.getPrototypeOf(o)}return""}function $t(i,s){var o=i[Sr(i,s)];return typeof o=="function"?o.bind(i):o}function Tn(i,s){var o;return function(c){return o||(o=(function(p,y){return ds(ru(new Uint32Array(p),[],y))})(i,s)),as(o[c])}}function fo(i,s,o){var c;return function(p){return c===null?c:(c||(c=(function(y,w,E){var v=Ar(w());try{return ds((function(I,M,B){for(var $=zr(I),Q=new ArrayBuffer($.length-B),tt=new Uint8Array(Q),rt=0;rt<$.length;++rt)tt[rt]=$[rt]^M[rt%M.length];return Q})(new Uint32Array(y),v,E))}catch(I){if(is(I)&&I.name==="SyntaxError")return null;throw I}})(i,s,o)),as(c&&c[p]))}}var Kr=Tn([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),u5=[202,206];function c5(i){for(var s={uAVXy:"9|5|11|0|3|6|7|2|10|8|4|1",FInQd:function(rt,at){return rt(at)},kpZRq:function(rt,at,mt){return rt(at,mt)},UoPyk:function(rt,at){return rt(at)},UpGPH:function(rt,at,mt){return rt(at,mt)},ZuRYV:function(rt,at){return rt-at},VnFXf:function(rt,at,mt,bt){return rt(at,mt,bt)},fDQiC:function(rt,at){return rt(at)},eKHGy:function(rt,at){return rt<at},AkgUE:function(rt,at){return rt/at},iBJKB:function(rt,at,mt){return rt(at,mt)},lIinn:function(rt,at){return rt+at}},o=s.uAVXy.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.FInQd(Qn,v);continue;case"1":return s.kpZRq(L4,i,E);case"2":var y=s.kpZRq(l5,s.UoPyk(Ar,M),u5);continue;case"3":var w=s.UpGPH(parseInt,$[s.ZuRYV($.length,1)],16);continue;case"4":var E=s.kpZRq(f5,B,v);continue;case"5":var v=new Uint8Array(16);continue;case"6":var I=s.VnFXf(hl,v[w],8,22);continue;case"7":var M=p.slice(0,Math.min(s.ZuRYV(p.length,2),I));continue;case"8":var B="".concat(M).concat(Q).replace(new RegExp(s.fDQiC(Kr,1),"g"),"-").replace(new RegExp(s.fDQiC(Kr,2),"g"),"_");continue;case"9":var $=s.UoPyk(dn,i);continue;case"10":var Q=s.FInQd(Qn,s.FInQd(d5,s.FInQd(o0,y))).slice(0,2);continue;case"11":for(var tt=0;s.eKHGy(tt,$.length);tt+=2)v[s.AkgUE(tt,2)]=s.iBJKB(parseInt,"".concat($[tt]).concat($[s.lIinn(tt,1)]),16);continue}break}}function f5(i,s){for(var o={goMxK:"2|4|1|0|3",lnlOq:function(v,I){return v<I},RltcK:function(v,I,M,B){return v(I,M,B)},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(w,i.length);)E=o.RltcK(hl,s[o.cVMXe(w,15)],4,7),y+=i.slice(w,o.SclSa(w,E)),y+="/",w+=E;continue;case"1":var y="";continue;case"2":var w=0;continue;case"3":return y.slice(0,-1);case"4":var E=0;continue}break}}function hl(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 l5(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 y=o.OGfKZ(i.length,s.length);continue;case"1":for(var w=0;o.ENgdo(w,s.length);w++)E[o.oVWhZ(w,i.length)]=s[w];continue;case"2":return E;case"3":var E=new Uint8Array(y);continue;case"4":for(w=0;o.ENgdo(w,i.length);w++)E[w]=i[w];continue}break}}function d5(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 iu(i,s){return!!i&&(function(o,c){return o===c})((function(o,c){return o(c,3814588639)})($t,i),(function(o,c){return o(c,3814588639)})($t,s))}function h5(i){var s=function(c,p){return c(p)},o=(function(c){return c(3)})(Kr);return(function(c,p){return c!==p})(i,s(Kr,4))&&(o="".concat(i,".").concat(o)),s(Kr,5).concat(o,"/")}function p5(i){var s=(function(o){return o(6)})(Kr)[i];return"".concat(s,(function(o){return o(7)})(Kr))}var v5=(function(){var i;return(i={}).noop=["a","b"],i})();function m5(i,s,o,c,p,y,w,E,v,I,M,B,$){var Q=this,tt={modules:i,apiKey:c,integrations:E,imi:v,storageKey:w,ab:M,urlHashing:I},rt=function(_t,Gt,jt){return(0,e.sH)(Q,void 0,void 0,(function(){var Zt,Nt,Pt;return(0,e.YH)(this,(function(Xt){switch(Xt.label){case 0:return B?[4,mt()]:[2,void 0];case 1:Zt=Xt.sent(),Nt=!1,Gt.catch((function(){return Nt=!0})),Xt.label=2;case 2:return Xt.trys.push([2,4,,5]),[4,dl(p,(0,e.Cl)((0,e.Cl)({},tt),{tls:Zt,fast:!0}),_t,Gt,jt)];case 3:return[2,Xt.sent()];case 4:if(Pt=Xt.sent(),Nt)throw Pt;return is(Pt)&&Pt.message===D0||console.warn(Pt),[2,void 0];case 5:return[2]}}))}))},at=function(_t,Gt,jt){var Zt=_t.timeout,Nt=Zt===void 0?1e4:Zt,Pt=_t.tag,Xt=_t.linkedId,Qt=_t.disableTls,ne=_t.extendedResult,ue=_t.exposeComponents,we=_t.environment,pe=_t.products,Se=oo(Promise.all([vt(jt),bt(Nt,Qt,jt)]));return function(Ce,Le){return(0,e.sH)(Q,void 0,void 0,(function(){var Ne,nn,Sn;return(0,e.YH)(this,(function(pn){switch(pn.label){case 0:return[4,Promise.race([Le,Se])];case 1:return Ne=pn.sent(),nn=Ne[0],Sn=Ne[1],[4,dl(p,(0,e.Cl)((0,e.Cl)({},tt),{components:nn,customComponent:we,tag:Pt,tls:Sn,linkedId:s0(Xt),extendedResult:ne,exposeComponents:ue,algorithm:y,products:s4(pe,"products"),requestId:Ce}),Gt,Le,jt)];case 2:return[2,pn.sent()]}}))}))}},mt=function(){return o?.(0,50,!1,void 0)},bt=function(_t,Gt,jt){return o?.(.1*_t,.4*_t,Gt,jt)},vt=function(_t){return(0,e.sH)(Q,void 0,void 0,(function(){var Gt,jt;return(0,e.YH)(this,(function(Zt){switch(Zt.label){case 0:return Zt.trys.push([0,2,,3]),[4,s()];case 1:return Gt=Zt.sent(),dr(_t,(function(){return{e:13,result:Gt}})),[2,Gt];case 2:throw jt=Zt.sent(),dr(_t,(function(){return{e:14,error:jt}})),jt;case 3:return[2]}}))}))};return{get:function(_t){_t===void 0&&(_t={});var Gt=$&&(function(jt,Zt){return function(Nt){return jt((0,e.Cl)((0,e.Cl)({},Nt),{getCallId:Zt}))}})($,so(8));return co(Gt,(function(){return{e:3,options:_t}}),(function(jt){return{e:4,result:jt}}),(function(jt){return{e:5,error:jt}}),(function(){return jt=function(Zt){return(function(Nt,Pt,Xt){return(0,e.sH)(Q,void 0,void 0,(function(){var Qt,ne,ue,we,pe,Se,Ce;return(0,e.YH)(this,(function(Le){switch(Le.label){case 0:Qt=e0(),Le.label=1;case 1:return Le.trys.push([1,,7,8]),ne=J0(Qt),ue=Un((Ce=Nt.timeout)!==null&&Ce!==void 0?Ce:1e4).then((function(){return Promise.reject(new Error(Za))})),we=at(Nt,ne,Pt),[4,rt(ne,ue,Pt)];case 2:return(pe=Le.sent())?(Xt(pe),[4,we(pe.requestId,ue)]):[3,4];case 3:return Le.sent(),[3,6];case 4:return Se=Xt,[4,we(void 0,ue)];case 5:Se.apply(void 0,[Le.sent()]),Le.label=6;case 6:return[3,8];case 7:return Qt.resolve(),[7];case 8:return[2]}}))}))})(_t,Gt,Zt)},new Promise((function(Zt,Nt){jt(Zt).then((function(){return Nt(new Error("Action didn't call `resolve` or `reject`"))}),Nt)}));var jt}))}}}var pl=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)([(w=/{(.*?)}/.exec(location.hash),!!w&&tr(w[1])===3025844545&&N4())],(i?.modules||[]).map((function(E){return E.addEvent})),!0),y=p.filter((function(E){return!!E})),s=y.length?function(){for(var E=[],v=0;v<arguments.length;v++)E[v]=arguments[v];for(var I=function($){t0((function(){return $.apply(void 0,E)}))},M=0,B=y;M<B.length;M++)I(B[M])}:void 0,o=s&&(function(E,v){return function(I){return E((0,e.Cl)((0,e.Cl)({},I),{agentId:v}))}})(s,so(8)),[4,co(o,(function(){return{e:0,version:ja,options:i}}),(function(E){return{e:1,ab:E[1]}}),(function(E){return{e:2,error:E}}),(function(){var E,v,I=i.token,M=i.apiKey,B=M===void 0?I:M,$=i.region,Q=$===void 0?"us":$,tt=i.tlsEndpoint,rt=tt===void 0?fs:tt,at=i.disableTls,mt=i.storageKey,bt=mt===void 0?p0:mt,vt=i.endpoint,_t=vt===void 0?cs:vt,Gt=i.te,jt=Gt===void 0?d0:Gt,Zt=i.integrationInfo,Nt=Zt===void 0?[]:Zt,Pt=i.algorithm,Xt=i.imi,Qt=Xt===void 0?((E={}).m="s",E):Xt,ne=i.stripUrlParams,ue=i.urlHashing,we=ue===void 0?h0(ne):ue,pe=i.modules,Se=i.abTests,Ce=Se===void 0?{}:Se,Le=i.externalABSelections,Ne=Le===void 0?{}:Le,nn=i.optimizeRepeatedVisits,Sn=nn!==void 0&&nn,pn=i.aggressiveOptimization,Fn=pn!==void 0&&pn;if(!B||typeof B!="string")throw new Error("API key required");var zn,Wn,Tr,Xr,nr,fn,Mt,Tt,xt,Jt=(function(Te,ke,We){for(var gn=(0,e.Cl)({},We),Nr=0,po=Object.entries(Te);Nr<po.length;Nr++){var bi=po[Nr],Ri=bi[0],vo=bi[1],Nn=ke[Ri];if(Nn)try{gn[Ri]=l0(Nn);continue}catch(Kn){console.error(Kn)}gn[Ri]=l0(vo)}return gn})((function(Te){for(var ke=(0,e.Cl)({},v5),We=0,gn=Te;We<gn.length;We++){var Nr=gn[We];Object.assign(ke,Nr.ab)}return ke})(pe),Ce,Ne),se=(zn=_t,Wn=Q,Tr=function(Te,ke,We){return Te(ke,We)},Xr=function(Te,ke){return Te(ke)},nr=function(Te,ke){return Te(ke)},(Array.isArray(zn)?zn:[zn]).map((function(Te){return Tr(iu,Te,cs)?Xr(h5,Wn):nr(String,Te)}))),un=(v=(function(Te){for(var ke=0,We=Te;ke<We.length;ke++){var gn=We[ke];if(gn.tls)return gn.tls}})(pe))===null||v===void 0?void 0:v(rt,se,B,at,void 0,o);return dr(o,(function(){return{e:12}})),[m5(pe,a5(pe,Fn,{urlHashing:we,ab:Jt,te:(Mt=Q,Tt=function(Te,ke){return Te(ke)},xt=function(Te,ke){return Te(ke)},iu(fn=jt,d0)?Tt(p5,Mt):xt(String,fn))}),un,B,se,s0(Pt),bt,Nt,Qt,we,Jt,Sn,o),Jt]}))];case 1:return[2,c.sent()[0]]}var p,y,w}))}))},g5=rn(Wt),y5=hn(he,-1),w5=rn(ee),E5=wt(h,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),_5=wt(_e,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),vl=hn(oe,-1),ml=rn(de),b5=hn(fe,-1),gl=hn(ae,-1),yl=wt(ge,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),wl=hn(ze,-1),R5=rn(ye),A5=rn(be),S5=rn(an),I5=rn(Be),O5=hn(Ue,-1),El=hn(lr,-1),T5=hn(Ge,-1),N5=wt((function(){return Kt()}),(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):""})}})),_l=rn(He),bl=rn(Yr),x5=rn($e),C5=rn(qe),L5=hn(es,-1),B5=hn(Je,-1),M5=hn(Qe,-1),k5=hn(ns,-1),D5=hn(tn,-1),U5=hn(en,-1),P5=hn(ji,-1),F5=hn(Yi,-1),V5=wt(zi,(function(i){return{s:0,v:dn(Object.keys(i).map((function(s){return"".concat(s,"=").concat(i[s])})).join(","))}})),H5=hn(Wi,-1),G5=rn(Ki),j5=hn(Zi,-1),Y5=wt(Xi,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),Rl=al(qi),Al=wt(Ji,(function(i){var s;if(typeof i=="number")return{s:i,v:null};var o=["32926","32928"],c=i.parameters.map((function(y){var w=y.split("=",3),E=w[0],v=w[1];return w[2]!==void 0||o.includes(v)?"".concat(E,"(").concat(v,")=null"):"".concat(E,"=").concat(v)})),p=i.extensionParameters.map((function(y){var w=y.split("=",3),E=w[0],v=w[1],I=w[2];return I!==void 0&&v!=="34047"?"".concat(E,"(").concat(v,")=").concat(I):"".concat(E,"=").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}}})),z5=al($i),W5=Ln(Cn.userAgent),K5=Ln(Cn.appVersion),Z5=Ln(Cn.rtt),X5=Ln(Cn.notificationPermissions),$5=Ln(Cn.pluginsLength),q5=Ln(Cn.errorTrace),J5=Ln(Cn.productSub),Q5=Ln(Cn.documentElementKeys),t6=Ln(Cn.windowExternal),e6=Ln(Cn.mimeTypesConsistent),n6=Ln(Cn.functionBind),r6=Ln(Cn.process),i6=Ln(Cn.windowSize),o6=Ln(Cn.distinctiveProps),Sl=rn(P),Il=rn(l),Ol=rn(S),Tl=rn(D),Nl=rn(W),xl=rn(q),Cl=rn(ct),Ll=rn(el),s6=rn(K);function a6(){var i=window;if(!S())return Ei(!1);try{if([66,114,97,118,101].map((function(w){return String.fromCharCode(w)})).join("")in i)return Ei(!0);var s=document.createElement("canvas");s.width=4,s.height=4,s.style.display="inline";var o=s.toDataURL();if(o==="")return Ei(!0);var c=ss(o.split(",")[1]),p=r0(c,[73,68,65,84,24]);if(p===-1)return Ei(!1);var y=r0(c,[73,69,78,68]);return Ei(y!==-1&&c.slice(p+5,y).reduce((function(w,E){return w+E}),0)!==1321)}catch{return Ei(!1)}}function Ei(i){return{s:0,v:i}}function Bl(){return Ml("dark")?{s:0,v:!0}:Ml("light")?{s:0,v:!1}:{s:-1,v:null}}function Ml(i){return matchMedia("(prefers-color-scheme: ".concat(i,")")).matches}function kl(){var i=Date.now();return{s:0,v:[Dl(i),Dl(i-6e4*new Date().getTimezoneOffset())]}}function Dl(i){var s=Number(i);return isNaN(s)?-1:s}function u6(){var i=window.performance;if(!i?.now)return{s:-1,v:null};for(var s=1,o=1,c=i.now(),p=c,y=0;y<5e4;y++)if((c=p)<(p=i.now())){var w=p-c;w>s?w<o&&(o=w):w<s&&(o=s,s=w)}return{s:0,v:[s,o]}}var c6=Tn([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);function f6(){var i,s,o=function(y,w){return y===w},c=function(y,w,E){return y(w,E)},p=o(s=(function(y){return y===null})(i=window[(function(y){return y(0)})(c6)])||o(i,void 0)?void 0:c($t,i,3933025333),null)||(function(y){return y===void 0})(s)?void 0:c($t,s,3098533860);return(function(y){return y===null})(p)||o(p,void 0)?{s:-1,v:null}:{s:0,v:p}}function l6(i){var s=ot(i.cache);return s?((function(o){o.clearColor(0,0,1,1);var c=o.createProgram();if(c){w(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);}"),w(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"),y=o.createBuffer();o.bindBuffer(34962,y),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 w(E,v){var I=o.createShader(35633-E);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 d6(i){return Ul(i,p6)}function h6(i){return Ul(i,v6)}function Ul(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(y){switch(y.label){case 0:return typeof((c=window.speechSynthesis)==null?void 0:c.getVoices)!="function"?[2,{s:-1,v:null}]:(o.tts||(o.tts=(function(w){return(0,e.sH)(this,void 0,void 0,(function(){var E,v,I;return(0,e.YH)(this,(function(M){switch(M.label){case 0:if(E=function(){return w.getVoices()},(function(B){return!B.addEventListener||q()&&el()})(w))return[2,{v:E()}];v={v:null},M.label=1;case 1:return M.trys.push([1,,3,4]),[4,new Promise((function(B,$){var Q,tt=function(){var rt=E();rt.length?(v.v=rt,Q?.(),Q=Pa(B,50)):Q||(Q=rs(B,600))};I=yi(w,"voiceschanged",(function(){try{tt()}catch(rt){$(rt)}})),tt()}))];case 2:return M.sent(),[3,4];case 3:return I&&rs(I,1e4),[7];case 4:return[2,v]}}))}))})(c)),[4,o.tts]);case 1:return p=y.sent(),[2,function(){return p.v?s(p.v):{s:-2,v:null}}]}}))}))}function p6(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 v6(i){var s=i.some((function(o){return tr(o.name.slice(0,6))===1655763047}));return{s:i.length?0:1,v:s}}var m6=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function g6(){var i;return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p=this;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return(s=navigator.userAgentData)&&typeof s=="object"?(o={},c=[],typeof s.getHighEntropyValues!="function"?[3,2]:[4,Promise.all(m6.map((function(w){return(0,e.sH)(p,void 0,void 0,(function(){var E,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,s.getHighEntropyValues([w])];case 1:return(E=I.sent()[w])!==void 0&&(o[w]=typeof E=="string"?E:JSON.stringify(E)),[3,3];case 2:if(!((v=I.sent())instanceof Error&&v.name==="NotAllowedError"))throw v;return c.push(w),[3,3];case 3:return[2]}}))}))})))]):[2,{s:-1,v:null}];case 1:y.sent(),y.label=2;case 2:return[2,{s:0,v:{b:s.brands.map((function(w){return{b:w.brand,v:w.version}})),m:s.mobile,p:(i=s.platform)!==null&&i!==void 0?i:null,h:o,nah:c}}]}}))}))}function Pl(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(y){switch(y.label){case 0:return o=(function(){for(var w,E,v=[],I=window;;)try{var M=(w=I.location)===null||w===void 0?void 0:w.href,B=(E=I.document)===null||E===void 0?void 0:E.referrer;if(M===void 0||B===void 0)return{s:1,v};v.push({l:M,f:B});var $=I.parent;if(!$||$===I)return{s:0,v};I=$}catch(Q){if(w6(Q))return{s:1,v};throw Q}})(),c=[(0,e.Cl)({},o)],p={},[4,y6(o.v,s)];case 1:return[2,e.Cl.apply(void 0,c.concat([(p.v=y.sent(),p)]))]}}))}))}function y6(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 y,w,E;return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,Promise.all([hs(p.l,s),hs(p.f,s)])];case 1:return y=v.sent(),w=y[0],E=y[1],[2,{l:w,f:E}]}}))}))})))]}))}))}function w6(i){if(!i||typeof i!="object")return!1;var s=i;return!(!P()&&!l()||s.name!=="Error"&&s.name!=="TypeError"||s.message!=="Permission denied")||s.name==="SecurityError"}function E6(){return(function(i){var s=i.location,o=i.origin,c=s.origin,p=s.ancestorOrigins,y=null;if(p){y=new Array(p.length);for(var w=0;w<p.length;++w)y[w]=p[w]}return{s:0,v:{w:o??null,l:c??null,a:y}}})(window)}function Fl(){return{s:0,v:eval.toString().length}}function Vl(){var i=navigator.webdriver;return i===null?{s:-1,v:null}:i===void 0?{s:-2,v:null}:{s:0,v:i}}function _6(){var i=function(o,c,p){return o(c,p)},s=this;return i(jn,Un(250,{s:-2,v:null}),(function(){var o,c,p=function(y,w,E){return i(y,w,E)};return o=e.sH,c=function(){var y,w=function(E,v,I){return i(E,v,I)};return(function(E,v,I){return E(v,I)})(e.YH,this,(function(E){switch(E.label){case 0:return!((function(v,I){return(function(M,B){return M===B})(v,I)})(y=p($t,navigator,1417288500),null)||(function(v){return(function(I){return I===void 0})(v)})(y))&&p($t,y,3686698663)?[4,p($t,y,3686698663)().then((function(){return{s:0,v:""}}),(function(v){return{s:0,v:w($t,v,3065852031)}}))]:[2,{s:-1,v:null}];case 1:return[2,E.sent()]}}))},o(s,void 0,void 0,c)}))}function ou(){var i;return su([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 b6(){var i;return su([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 R6(){return i=navigator,s=document.createElement("frameset"),o=$t(i,704082790),su([Sr(s,3017323393),Hl(i,859837811,"QjslADtOBipACA")||Hl(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 Hl(i,s,o){var c=Sr(i,s);if(!c)return"";for(var p=ss(o),y=Array(p.length),w=0;w<p.length;w++)y[w]=p[w]^c.charCodeAt(w%c.length);return String.fromCharCode.apply(null,y)}function su(i,s){for(var o=i.join(""),c=o.split(""),p=Array(o.length),y=0;y<p.length;++y)p[y]=c.splice(s[y%s.length],1);return p.join("")}var je=fo([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],ou,1);function Gl(){if(!(function(s){return s in window})((i=je,i(1))))return!1;var i;try{return new window[(function(s){return s(1)})(je)],!0}catch(s){if((function(o){return o instanceof Error})(s)&&(function(o,c){return o===c})(s.name,(function(o){return o(2)})(je)))return!1;throw s}}function A6(i){return s=e.sH,o=function(){var c,p,y,w,E=function(v,I){return(function(M,B){return M(B)})(v,I)};return(function(v,I,M){return v(I,M)})(e.YH,this,(function(v){var I=function(M,B){return E(M,B)};switch(v.label){case 0:return c=E(au,i),p=c[0],y=c[1],w=c[2],(function(M){return(function(B){return B!==0})(M)})(y)?[2,{n:p,l:y}]:[4,new Promise((function(M){var B=function($,Q){return I($,Q)};w[I(je,3)]((function($){B(M,{n:p,l:$[B(je,4)]})}),(function(){B(M,{n:p,l:-1})}))}))];case 1:return[2,v.sent()]}}))},s(this,void 0,void 0,o);var s,o}function au(i){for(var s={WceTb:"5|3|7|0|9|10|6|2|8|1|11|4",YXrDm:function(M,B,$){return M(B,$)},JsRES:function(M,B){return M(B)},WmCxs:function(M,B){return M(B)},kyiGc:function(M,B){return M===B},xozCJ:function(M,B){return M(B)},oRPyT:function(M,B){return M(B)},Unnxw:function(M,B){return M instanceof B},ZXJxt:function(M,B){return M===B},hAXYn:function(M,B){return M(B)},rrdYU:function(M,B){return M!==B},IPLsn:function(M,B){return M===B},qpBPk:function(M,B){return M(B)},tTnsV:function(M,B){return M===B},UBZPU:function(M,B){return M(B)},ijSLc:function(M,B){return M(B)},azIFr:function(M,B){return M(B)},axwYs:function(M,B){return M(B)},eKSOZ:function(M,B){return M===B}},o=s.WceTb.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.YXrDm(Sr,new window[s.JsRES(je,5)]("")[s.WmCxs(je,6)](""),3626513111);continue;case"1":if(s.kyiGc(typeof I[s.WmCxs(je,16)],s.xozCJ(je,17)))return[y,-4,null];continue;case"2":try{v[s.oRPyT(je,11)][s.JsRES(je,12)](E)}catch(M){if(s.Unnxw(M,Error)&&s.ZXJxt(M.name,s.hAXYn(je,2))&&s.rrdYU(s.IPLsn(w=M[s.qpBPk(je,13)],null)||s.tTnsV(w,void 0)?void 0:w.indexOf(s.UBZPU(je,14)),-1))return[y,-3,null];throw M}continue;case"3":var y=i.split("/").slice(-1)[0];continue;case"4":return[y,0,I[s.ijSLc(je,16)][0]];case"5":var w;continue;case"6":var E=new window[s.WmCxs(je,9)]([],i,s.oRPyT(je,10));continue;case"7":var v=new window[s.qpBPk(je,1)];continue;case"8":I[s.azIFr(je,15)]=v[s.qpBPk(je,15)];continue;case"9":var I=document[s.oRPyT(je,7)](p);continue;case"10":I[s.JsRES(je,8)]=s.axwYs(je,3);continue;case"11":if(s.eKSOZ(I[s.qpBPk(je,16)].length,0))return[y,-2,null];continue}break}}var Ir=Tn([752472786,243421427,250966661,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function S6(){var i,s,o=function(E){return E()},c=function(E,v,I){return E(v,I)},p=function(E,v,I){return E(v,I)},y=function(E,v,I){return E(v,I)},w=function(E,v,I){return E(v,I)};return i=e.sH,s=function(){var E,v=this;return(0,e.YH)(this,(function(I){var M=function(tt,rt,at){return(function(mt,bt,vt){return mt(bt,vt)})(tt,rt,at)},B=function(tt){return o(tt)},$=function(tt,rt,at,mt,bt){return(function(vt,_t,Gt,jt,Zt){return vt(_t,Gt,jt,Zt)})(tt,rt,at,mt,bt)},Q=function(tt,rt){return(function(at,mt){return at(mt)})(tt,rt)};switch(I.label){case 0:return(E=je(0))?[3,2]:[4,c(jn,c(Un,350,{s:-3,v:null}),(function(){var tt=function(at){return B(at)},rt=function(at,mt){return(function(bt,vt){return(function(_t,Gt){return _t(Gt)})(bt,vt)})(at,mt)};return $(e.sH,v,void 0,void 0,(function(){var at;return M(e.YH,this,(function(mt){switch(mt.label){case 0:return at={s:-3},[4,Promise.all([tt(jl)])];case 1:return[2,(at[rt(Ir,0)]=mt.sent(),at)]}}))}))}))];case 1:case 3:case 5:return[2,I.sent()];case 2:return o(Gl)?[3,4]:[4,p(jn,y(Un,350,{s:-1,v:null}),(function(){var tt=function(at,mt){return(function(bt,vt){return(function(_t,Gt){return _t(Gt)})(bt,vt)})(at,mt)},rt=function(at,mt){return Q(at,mt)};return $(e.sH,v,void 0,void 0,(function(){var at;return(function(mt,bt,vt){return M(mt,bt,vt)})(e.YH,this,(function(mt){switch(mt.label){case 0:return at={s:-1},[4,Promise.all([tt(jl,E[0])])];case 1:return[2,(at[rt(Ir,0)]=mt.sent(),at)]}}))}))}))];case 4:return[4,y(jn,w(Un,350,{s:-2,v:null}),(function(){var tt=function(rt,at){return Q(rt,at)};return $(e.sH,v,void 0,void 0,(function(){var rt;return(function(at,mt,bt){return M(at,mt,bt)})(e.YH,this,(function(at){switch(at.label){case 0:return rt={s:0},[4,Promise.all(E.map(A6))];case 1:return[2,(rt[tt(Ir,0)]=at.sent(),rt)]}}))}))}))]}}))},i(this,void 0,void 0,s)}function jl(i){var s,o,c=function(v,I){return v(I)},p=function(v,I){return v(I)},y=function(v,I,M){return v(I,M)},w=function(v,I){return v===I},E=function(v,I){return v===I};return i===void 0&&(i=p(Ir,1)),(function(v,I,M,B,$){return v(I,void 0,void 0,$)})(e.sH,this,0,0,(function(){var v,I,M;return y(e.YH,this,(function(B){v=i.split("/").slice(-1)[0];try{return I=new window[c(Ir,2)]([],i),M=new window[c(Ir,3)](p(Ir,4).concat(y($t,I,4081332993)||"").concat(v,c(Ir,5)).concat(y($t,I,3034174415))),(function($){return $===""})(w(s=y($t,M,3518522040),null)||(function($){return $===void 0})(s)?void 0:s.substring(1))?[2,{n:v,l:-2}]:[2,{n:v,l:p(tr,E(o=y($t,M,3518522040),null)||w(o,void 0)?void 0:o.substring(1))}]}catch{return[2,{n:v,l:-1}]}return[2]}))}))}var I6=Tn([2072691393,3531177868,682500123,140161052,2954107647,581829239],6);function O6(){var i=function(o,c){return o===c},s=(function(o){return o(navigator,3087401394)})($t);return i(s,void 0)||i(s,null)?{s:-1,v:null}:{s:0,v:s}}function T6(){for(var i={pCQFw:"0|5|1|3|6|4|2",QPheb:function(M,B){return M(B)},cvtRQ:function(M,B){return M<B},obwRn:function(M,B,$){return M(B,$)},zLaAT:function(M,B,$,Q){return M(B,$,Q)},BBhKA:function(M,B){return M===B},dlsEs:function(M,B,$){return M(B,$)}},s=i.pCQFw.split("|"),o=0;;){switch(s[o++]){case"0":var c=window[i.QPheb(I6,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 y=[[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 w=0,E=y;i.cvtRQ(w,E.length);w++){var v=E[w];I<<=1,I|=i.obwRn($t,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($t,c,1108488788)))return{s:-1,v:null};continue;case"6":var I=0;continue}break}}function N6(){for(var i={tzfkk:"3|4|0|2|1|5",hnlPn:function(I,M){return I-M},YETaQ:function(I,M){return I*M},zzipR:function(I,M){return I>=M},QPpiL:function(I,M){return I===M},YposS:function(I,M){return I%M},FPDfz:function(I,M){return I|M}},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 y=Math.random();E.push(i.FPDfz(i.YETaQ(i.hnlPn(w,y),Math.pow(2,31)),0)),w=y}continue;case"2":var w=Math.random();continue;case"3":var E=[];continue;case"4":var v=6;continue;case"5":return{s:0,v:E}}break}}function Yl(){var i=window.devicePixelRatio;return i==null?{s:-1,v:null}:{s:0,v:i}}function x6(){for(var i=navigator,s=["webkitPersistentStorage","connectionSpeed","xr","hid"],o=[],c=0,p=Object.getOwnPropertyNames(Object.getPrototypeOf(i));c<p.length;c++){var y=p[c];if(!s.includes(y)){var w=i[y];typeof w=="function"&&w.name!==void 0&&o.push(w.name)}}return{s:0,v:o}}function C6(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}function L6(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function B6(){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 M6(){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 k6(){try{throw"a"}catch(i){try{return i.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}function D6(){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 U6(){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 P6(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function F6(){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 V6(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}function H6(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}function zl(){var i=navigator.language;return i?{s:0,v:i}:{s:-1,v:null}}function Wl(){var i=navigator.languages;return i?{s:0,v:i}:{s:-1,v:null}}function G6(){var i,s,o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return i=e.sH,s=function(){var p,y,w,E;return(function(v,I,M){return v(I,M)})(e.YH,this,(function(v){switch(v.label){case 0:return p=navigator,y=o($t,p,1417288500),(w=o($t,p,2706846255))||!((function(I){return I===null})(y)||(function(I){return I===void 0})(y))&&o($t,y,3538568711)?w?[4,Promise.race([o(io,250,void 0),new Promise((function(I){(function(M,B){return o(M,B,1291883197)})($t,w)((function(M,B){return(function($,Q){return(function(tt,rt){return tt(rt)})($,Q)})(I,B)}))}))])]:[3,2]:[2,{s:-1,v:null}];case 1:if((function(I){return I!==void 0})(E=v.sent()))return[2,{s:0,v:E}];v.label=2;case 2:return!((function(I){return I===null})(y)||(function(I){return I===void 0})(y))&&c($t,y,3538568711)?[4,Promise.race([o(io,250,void 0),c($t,y,3538568711)().then((function(I){return(function(M,B){return o(M,B,1813778413)})($t,I)}))])]:[3,4];case 3:if((function(I){return I!==void 0})(E=v.sent()))return[2,{s:1,v:E}];v.label=4;case 4:return[2,{s:-2,v:null}]}}))},i(this,void 0,void 0,s)}var j6=Tn([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function Y6(){var i=function(s,o){return s===o};return(0,e.sH)(this,void 0,void 0,(function(){var s,o=function(y){return(function(w){return w()})(y)},c=function(y,w,E){return(function(v,I,M){return v(I,M)})(y,w,E)},p=function(y){return(function(w){return w()})(y)};return(function(y,w,E){return y(w,E)})(e.YH,this,(function(y){switch(y.label){case 0:return o(S)&&o(G4)?[2,{s:-3,v:null}]:[4,Promise.race([c(io,100,null),p(z6)])];case 1:return(function(w){return i(w,null)})(s=y.sent())?[2,{s:-2,v:null}]:(function(w){return i(w,void 0)})(s)?[2,{s:-1,v:null}]:[2,{s:0,v:s}]}}))}))}function z6(){var i=function(o,c){return o(c)},s=function(o,c,p,y,w){return o(c,p,y,w)};return s(e.sH,this,void 0,void 0,(function(){var o,c=function(p,y){return i(p,y)};return(function(p,y,w){return p(y,w)})(e.YH,this,(function(p){return(o=window[(function(y,w){return i(y,w)})(j6,0)])?[2,new Promise((function(y){(function(w,E,v,I,M){s(w,E,v,I,M)})(o,0,1,(function(){return(function(w){return c(w,!0)})(y)}),(function(){return(function(w){return c(w,!1)})(y)}))}))]:[2,void 0]}))}))}function W6(){return j((function(i,s){var o=s.screen,c=function(p){var y=parseInt(p);return typeof y=="number"&&isNaN(y)?-1:y};return{s:0,v:{w:c(o.width),h:c(o.height)}}}))}var Zr=Tn([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 K6(){try{return(function(s,o){return s(o)})(Kl,!!window[i=Zr,i(0)])}catch{return(function(o){return o(!0)})(Kl)}var i}function Kl(i){return{s:0,v:i}}function Z6(){var i=function(c){return c()},s=function(c,p,y){return c(p,y)},o=this;return s(jn,Un(250,{s:-3,v:null}),(function(){return c=e.sH,p=function(){var y=function(w){return i(w)};return s(e.YH,this,(function(w){return y(D)||(function(E){return i(E)})(q)?[2,y(X6)]:[2,{s:-1,v:null}]}))},c(o,void 0,void 0,p);var c,p}))}function X6(){var i,s,o=function(c,p){return c(p)};return i=e.sH,s=function(){var c,p,y={BQeod:function(w,E){return o(w,E)},iOflQ:function(w,E,v){return(function(I,M,B){return I(M,B)})(w,E,v)},uZYOC:function(w,E){return o(w,E)},DssqK:function(w){return(function(E){return E()})(w)},FbFdf:function(w,E){return(function(v,I){return v(I)})(w,E)},TWEdd:function(w,E){return(function(v,I){return v instanceof I})(w,E)},NPofR:function(w,E){return(function(v,I){return v===I})(w,E)},saNhW:"4|2|0|3|1",ywkCU:function(w,E){return(function(v,I){return v(I)})(w,E)},tYhgW:function(w,E,v){return(function(I,M,B){return I(M,B)})(w,E,v)}};return(function(w,E,v){return w(E,v)})(e.YH,this,(function(w){for(var E=y.saNhW.split("|"),v=0;;){switch(E[v++]){case"0":if(!c)return[2,{s:-2,v:null}];continue;case"1":return[2,new Promise((function(M,B){try{var $=y.iOflQ($t,c,2758837156)(p,1);$[y.BQeod(Zr,1)]=function(){(function(Q){y.BQeod(Q,{s:-5,v:null})})(M)},$[y.uZYOC(Zr,2)]=function(Q){var tt=I.Qxjcv($t,I.Qxjcv($t,Q,1181691900),325763347);try{return I.Qxjcv($t,I.ehgXq($t,tt,138212912)("-",I.zaFXk(Zr,3)),2928708052)(new window[I.zaFXk(Zr,4)]),void I.zaFXk(M,{s:0,v:""})}catch(rt){if(I.pOfaM(rt,Error))return void I.zaFXk(M,{s:0,v:I.ehgXq($t,rt,3065852031)});I.zaFXk(B,rt)}finally{I.tUivq($t,tt,318865860)(),I.tUivq($t,c,3885781331)(p)}}}catch(Q){if(!y.DssqK(D))return void y.FbFdf(M,{s:-5,v:null});if(y.TWEdd(Q,Error)&&y.NPofR(Q.name,y.FbFdf(Zr,5)))return void y.uZYOC(M,{s:-4,v:null});y.FbFdf(B,Q)}}))];case"2":c=window[y.FbFdf(Zr,0)];continue;case"3":p="".concat(y.ywkCU(so,16));continue;case"4":var I={Qxjcv:function(M,B,$){return y.tYhgW(M,B,$)},ehgXq:function(M,B,$){return y.iOflQ(M,B,$)},zaFXk:function(M,B){return y.BQeod(M,B)},pOfaM:function(M,B){return y.TWEdd(M,B)},tUivq:function(M,B,$){return y.tYhgW(M,B,$)}};continue}break}}))},i(this,void 0,void 0,s)}var Zl=Tn([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,2452479215],4);function $6(){var i=function(p,y,w){return p(y,w)},s="test";if(!D()||(function(p){return p()})(P4))return{s:-1,v:null};var o=window[(function(p){return p(0)})(Zl)],c=window[(function(p){return p(1)})(Zl)];try{(function(p){p(null,null,null,null)})(o)}catch{return{s:0,v:!0}}try{return i($t,c,2330630162)(s,"1"),i($t,c,588657539)(s),{s:0,v:!1}}catch{return{s:0,v:!0}}}function q6(){var i=Object.getOwnPropertyDescriptor(document,"createElement");return i?{s:0,v:!("writeable"in i)}:{s:-1,v:null}}function J6(){return{s:0,v:!!navigator.onLine}}var xe=Tn([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 Q6(i){return(function(s,o){return s(o,2660613247)})($t,i)||(i[(function(s){return s(0)})(xe)]={})}var t8=[[xe(1),function(i){return $l(!1,i)}],[xe(2),function(){return $l(!0)}],[xe(3),function(){return i=lo,s=xe(4),i(s);var i,s}],[xe(5),function(){var i=function(s,o){return s(o)};return i(lo,i(xe,6))}],[xe(7),function(){var i=function(s,o){return s(o)};return i(lo,i(xe,8))}],[xe(9),function(){var i=function(s,o){return s(o)};return i(lo,i(xe,10))}]];function e8(){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 n8(){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)})($t,i)().includes(s(xe,16)))}function r8(){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)})($t))}function i8(i,s,o){var c,p=function(w,E){return w!==E},y=function(w,E){return w!==E};return(function(w){return w===void 0})(s)&&(s={}),p(o,null)&&p(o,void 0)||(o=[(function(w){return w()})(ql)]),y(c=s[i],null)&&y(c,void 0)?c:s[i]=(function(w){return w(navigator,3994889901)})($t)(i,o)}function lo(i,s,o){var c=function(p,y,w,E){return p(y,w,E)};return(function(p,y,w,E,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,y,w;return(function(E,v,I){return E(v,I)})(e.YH,this,(function(E){switch(E.label){case 0:p=0,y=i,E.label=1;case 1:if(!(function(v,I){return v<I})(p,y.length))return[3,6];w=y[p],E.label=2;case 2:return E.trys.push([2,4,,5]),[4,c(i8,w,s,o)];case 3:return[2,!!E.sent()];case 4:return E.sent(),[3,5];case 5:return p++,[3,1];case 6:return[2,!1]}}))}))}var Xl=xe(19);function o8(){var i=function(E,v){return E(v)},s=function(E,v){return E(v)},o=function(E,v){return E(v)},c=function(E,v,I){return E(v,I)},p=function(E,v){return E in v},y=function(E,v){return E(v)},w=function(E){return E()};return(0,e.sH)(this,void 0,void 0,(function(){var E,v,I;return c(e.YH,this,(function(M){switch(M.label){case 0:return(function(B){return B()})(q)||(function(B){return B()})(ct)?[2,!1]:(E=!1,(function(B){return B()})(r8)?(v={type:i(xe,20),audio:s(xe,21),video:o(xe,22),keySystemConfiguration:{keySystem:Xl,video:o(xe,23)}},[4,c($t,c($t,navigator,2900309608),3516168465)(v)]):[3,2]);case 1:I=M.sent(),E=(function(B,$,Q){return B($,Q)})(o4,I,(function(B){return B(24)})(xe))&&I[(function(B){return B(24)})(xe)],M.label=2;case 2:return[2,E&&!p(y(xe,25),navigator)||!w(S)]}}))}))}function s8(i){for(var s={HkMtb:"3|2|0|4|1",pPhzD:function(y,w,E){return y(w,E)},EAQNq:function(y,w){return y(w)},cWdUy:function(y,w){return y(w)},NbRpv:function(y){return y()},dFENT:function(y,w){return y===w},npgEB:function(y,w){return y(w)}},o=s.HkMtb.split("|"),c=0;;){switch(o[c++]){case"0":s.pPhzD($t,p,621177879)&&(s.pPhzD($t,p,621177879)[0][s.EAQNq(xe,26)]=s.cWdUy(xe,27));continue;case"1":return p;case"2":var p=s.NbRpv(ql);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 $l(i,s){return i===void 0&&(i=!1),o=e.sH,c=function(){var p,y=function(E){return(function(v){return v()})(E)},w=function(E,v,I,M){return(function(B,$,Q,tt){return B($,Q,tt)})(E,v,I,M)};return(function(E,v,I){return E(v,I)})(e.YH,this,(function(E){switch(E.label){case 0:return[4,y(o8)];case 1:return E.sent()?(p=(function(v,I){return(function(M,B){return M(B)})(v,I)})(s8,i),[4,w(lo,[Xl],s,[p])]):[2,!1];case 2:return[2,E.sent()]}}))},o(this,void 0,void 0,c);var o,c}function ql(){return xe(30)}function a8(i){var s=function(y,w,E){return y(w,E)},o=function(y,w,E,v,I){return y(w,E,v,I)},c=function(y,w,E){return y(w,E)},p=c($t,i,1095199719);return o(e.sH,this,void 0,void 0,(function(){var y,w=function(Q,tt){return(function(rt,at){return rt(at)})(Q,tt)},E=function(Q,tt,rt){return s(Q,tt,rt)},v=function(Q,tt,rt,at,mt){return o(Q,tt,rt,at,mt)},I=function(Q){return(function(tt){return tt()})(Q)},M=function(Q,tt,rt){return s(Q,tt,rt)},B=function(Q,tt,rt){return s(Q,tt,rt)},$=this;return c(e.YH,this,(function(Q){return I(e8)&&I(n8)?I(ct)?[2,function(){return{s:-3,v:null}}]:(y=w(Q6,p),[2,M(jn,B(Un,250,{s:-2,v:null}),(function(){var tt=function(bt,vt){return(function(_t,Gt){return(function(jt,Zt){return jt<Zt})(_t,Gt)})(bt,vt)},rt=function(bt,vt){return w(bt,vt)},at=function(bt,vt,_t){return E(bt,vt,_t)},mt=function(bt,vt,_t,Gt,jt){return v(bt,vt,_t,Gt,jt)};return v(e.sH,$,void 0,void 0,(function(){var bt,vt,_t,Gt,jt,Zt,Nt,Pt=function(Qt,ne){return rt(Qt,ne)},Xt=this;return at(e.YH,this,(function(Qt){switch(Qt.label){case 0:return[4,Promise.all(t8.map((function(ne){var ue=function(we,pe){return Pt(we,pe)};return(function(we,pe,Se,Ce,Le){return mt(we,pe,void 0,void 0,Le)})(e.sH,Xt,0,0,(function(){var we,pe,Se;return(function(Ce,Le,Ne){return(function(nn,Sn,pn){return at(nn,Sn,pn)})(Ce,Le,Ne)})(e.YH,this,(function(Ce){switch(Ce.label){case 0:return we=ne[0],pe=ne[1],Se=[we],[4,ue(pe,y)];case 1:return[2,Se.concat([Ce.sent()])]}}))}))})))];case 1:for(bt=Qt.sent(),vt={},_t=0,Gt=bt;tt(_t,Gt.length);_t++)jt=Gt[_t],Zt=jt[0],Nt=jt[1],vt[Zt]=Nt;return[2,{s:0,v:vt}]}}))}))}))]):[2,function(){return{s:-1,v:null}}]}))}))}var u8=Tn([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 c8(){for(var i,s,o={},c=0,p=u8(0);c<p.length;c++)for(var y=p[c],w=y[0],E=0,v=y[1];E<v.length;E++){var I=v[E],M=(s=(i=Object.getOwnPropertyDescriptor(window[w],I))===null||i===void 0?void 0:i.get)===null||s===void 0?void 0:s.toString();M!==void 0&&(o["".concat(w,".").concat(I)]=M)}return{s:0,v:o}}var Jl=4191585516,f8=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,Jl]);function l8(){for(var i=[],s=Object.getOwnPropertyNames(window),o=0;o<s.length;o++){var c=s[o],p=tr(c);if(f8.has(p)&&i.push(c),p===Jl){var y=s[o+1]||"";i.push(y)}}return{s:0,v:i}}function d8(){return j((function(i,s){var o={},c=s.document.createElement("div");s.document.body.appendChild(c);for(var p,y={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"},w=0,E=Object.keys(y);w<E.length;w++){var v=E[w];o[y[v]]=(p=v,c.style.color=p,s.getComputedStyle(c).color)}return{s:0,v:o}}))}function h8(){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 p8(){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 y(),{s:-2,v:null};try{return s.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{y()}function y(){try{window.Function=o,window.Object=c}catch{}}})(navigator)}function Ql(i,s){for(var o={},c=i.getBoundingClientRect(),p=0,y=["x","y","left","right","bottom","height","top","width"];p<y.length;p++){var w=y[p];w in c&&(o[w]=c[w])}var E=s.getComputedStyle(i,null).getPropertyValue("font-family");return o.font=E,o}function v8(){for(var i="",s=128512;s<=128591;s++){var o=String.fromCodePoint(s);i+=o}return j((function(c,p){var y=p.document.createElement("span");return y.style.whiteSpace="nowrap",y.innerHTML=i,p.document.body.append(y),{s:0,v:Ql(y,p)}}))}function m8(){var i="<mrow><munderover><mmultiscripts><mo>∏</mo>";function s(w,E,v,I,M){return"<mmultiscripts><mi>".concat(w,"</mi><mi>").concat(E,"</mi><mi>").concat(v,"</mi>")+"<mprescripts></mprescripts><mi>".concat(I,"</mi><mi>").concat(M,"</mi></mmultiscripts>")}for(var o=0,c=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];o<c.length;o++){var p=c[o],y=s.apply(void 0,p);i+=y}return i+="</munderover></mrow>",j((function(w,E){var v=E.document.createElement("math");return v.style.whiteSpace="nowrap",v.innerHTML=i,E.document.body.append(v),{s:0,v:Ql(v,E)}}))}var g8=Tn([1024705730,641842159,2578743392,3876471597,2070139803],6);function y8(){var i=$t(navigator,2698072953);return i?{s:0,v:(function(s,o){return s(o)})(w8,i)}:{s:-1,v:null}}function w8(i){var s=function(E,v){return E<v},o=function(E,v,I){return E(v,I)},c=function(E,v,I){return E(v,I)},p=(function(E){return E(Object,1110892003)})($t)(i,(function(E){return E(0)})(g8));if(p&&(function(E,v){return E(v,2813370411)})($t,p))return!0;for(var y=0;s(y,i.length);y++){var w=o($t,Object,1110892003)(i,y);if(w&&(c($t,w,2813370411)||o($t,w,1651707638)))return!0}return!1}var Pe=fo([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],ou,0);function E8(){for(var i={YQAxx:"0|2|4|1|3",NxnUc:"1|2|0|3|4|5",dRZXE:function(w,E){return w!==E},arEiG:function(w,E){return w(E)},FEyAC:function(w,E){return w|E},cUIUX:function(w,E){return w&E},vaJLl:function(w,E){return w&E},osTKi:function(w,E){return w(E)},vuPdB:function(w,E){return w+E},euenK:function(w,E){return w(E)}},s=i.YQAxx.split("|"),o=0;;){switch(s[o++]){case"0":var c={nkHEv:i.NxnUc,yPbQz:function(w,E){return i.dRZXE(w,E)},cIFeZ:function(w,E){return i.arEiG(w,E)},kGvFR:function(w,E){return i.FEyAC(w,E)},eFyAy:function(w,E){return i.cUIUX(w,E)},WLFtS:function(w,E){return i.vaJLl(w,E)},uzqnn:function(w,E){return i.osTKi(w,E)},rqcBN:function(w,E){return i.vuPdB(w,E)}};continue;case"1":Object.defineProperty(p,i.osTKi(Pe,2),{value:y});continue;case"2":var p=i.euenK(ss,i.arEiG(Pe,0));continue;case"3":return p;case"4":var y=function(w){for(var E=c.nkHEv.split("|"),v=0;;){switch(E[v++]){case"0":var I=this[B];continue;case"1":var M;continue;case"2":var B=c.yPbQz(M=this[c.cIFeZ(Pe,1)],null)&&c.yPbQz(M,void 0)?M:0;continue;case"3":this[B]=c.kGvFR(c.eFyAy(I,~w),c.WLFtS(~I,w));continue;case"4":this[c.uzqnn(Pe,1)]=c.rqcBN(B,1);continue;case"5":return I}break}};continue}break}}function _8(i){var s,o,c,p=function(E,v){return E(v)},y=function(E,v){return E===v},w=function(E,v){return E(v)};return o=e.sH,c=function(){var E,v,I,M,B,$,Q=function(vt,_t){return p(vt,_t)},tt=function(vt,_t){return w(vt,_t)},rt=function(vt,_t,Gt,jt,Zt){return(function(Nt,Pt,Xt,Qt,ne){return Nt(Pt,Xt,Qt,ne)})(vt,_t,Gt,jt,Zt)},at=function(vt,_t){return p(vt,_t)},mt=function(vt,_t){return p(vt,_t)},bt=this;return(function(vt,_t,Gt){return vt(_t,Gt)})(e.YH,this,(function(vt){switch(vt.label){case 0:return E=window[p(Pe,3)],(v=y(s=E[p(Pe,4)],null)||y(s,void 0)?void 0:s.bind(E))?(I=w(Pe,5),M=p(Pe,6),B={},[4,Promise.all(I.map((function(_t){var Gt=function(Qt,ne,ue){return(function(we,pe,Se){return(function(Ce,Le,Ne){return Ce(Le,Ne)})(we,pe,Se)})(Qt,ne,ue)},jt=function(Qt,ne){return Q(Qt,ne)},Zt=function(Qt,ne){return tt(Qt,ne)},Nt=function(Qt,ne){return(function(ue,we){return(function(pe,Se){return pe<Se})(ue,we)})(Qt,ne)},Pt=function(Qt,ne,ue,we,pe){return rt(Qt,ne,ue,we,pe)},Xt=function(Qt,ne){return mt(Qt,ne)};return rt(e.sH,bt,void 0,void 0,(function(){var Qt,ne,ue,we,pe,Se,Ce,Le;return(function(Ne,nn,Sn){return(function(pn,Fn,zn){return pn(Fn,zn)})(Ne,nn,Sn)})(e.YH,this,(function(Ne){switch(Ne.label){case 0:return Ne.trys.push([0,9,,10]),[4,Gt(v,_t,M)];case 1:return[4,Ne.sent()[jt(Pe,7)]()];case 2:Qt=Ne.sent(),ne=Qt[Zt(Pe,8)](),ue=[92,189,203],we=0,Ne.label=3;case 3:if(!Nt(we,3))return[3,8];Ne.label=4;case 4:return Ne.trys.push([4,6,,7]),pe=B,Se=Zt(tr,_t),[4,Pt(b8,Qt,ne,i,ue)];case 5:return pe[Se]=Ne.sent(),[2];case 6:if((function(nn,Sn){return at(nn,Sn)})(S8,Ce=Ne.sent()))return ue=Xt(R8,i),[3,7];throw Xt(A8,ue),Ce;case 7:return we++,[3,3];case 8:return[3,10];case 9:return Le=Ne.sent(),$=Le,[3,10];case 10:return[2]}}))}))})))]):[2,null];case 1:if(vt.sent(),$&&y(Object.keys(B).length,0))throw $;return[2,B]}}))},o(this,void 0,void 0,c)}function b8(i,s,o,c){var p=function(I,M){return I(M)},y=function(I,M){return I(M)},w=function(I,M){return I(M)},E=function(I,M){return I(M)},v=function(I,M){return I(M)};return new Promise((function(I,M){s[E(Pe,9)]=function(B){return p(I,{i:y(os,c),t:p(tr,B[y(Pe,10)]),s:s[y(Pe,11)],e:s[w(Pe,12)],p:E(Qn,B[v(Pe,13)])})},i[E(Pe,14)](o),s[(function(B){return B(15)})(Pe)]((function(B){return B(16)})(Pe),c).catch(M)}))}function R8(i){for(var s={UtaFw:"4|0|1|2|3",ulOIn:function(I,M){return I-M},pxHuO:function(I,M){return I>=M},pGlZB:function(I,M){return I(M)},ooLWC:function(I,M){return I+M},buezi:function(I,M){return I<<M},btVnF:function(I,M){return I%M},wSoGJ:function(I,M){return I*M},lowup:function(I,M){return I%M},hsYMn:function(I,M){return I*M}},o=s.UtaFw.split("|"),c=0;;){switch(o[c++]){case"0":var p=v.length;continue;case"1":var y=137;continue;case"2":for(var w=s.ulOIn(i.length,1);s.pxHuO(w,0);w--){var E=i[s.pGlZB(Pe,2)](s.ooLWC(s.buezi(w,8),y));v[s.btVnF(w,p)]^=s.ooLWC(E,s.wSoGJ(v[s.btVnF(s.ooLWC(w,1),p)],17)),y=E}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 A8(i){for(var s=function(E,v){return E<v},o=function(E,v){return E+v},c=function(E,v){return E%v},p=function(E,v){return E-v},y=0;s(y,i.length);y++){var w=65;i[y]=o(w,c(i[y],p(122,w)))}}function S8(i){return(function(s,o){return s(o)})(is,i)&&(function(s,o){return s===o})("".concat(i),(function(s){return s(17)})(Pe))}function I8(){var i=function(s,o){return s(o)};return(function(s,o,c,p,y){return s(o,void 0,void 0,y)})(e.sH,this,0,0,(function(){var s,o,c,p=function(Q,tt){return i(Q,tt)},y=function(Q){return(function(tt){return tt()})(Q)},w=function(Q,tt){return(function(rt,at){return rt in at})(Q,tt)},E=function(Q,tt){return(function(rt,at){return rt(at)})(Q,tt)},v=function(Q,tt,rt,at){return(function(mt,bt,vt,_t){return mt(bt,vt,_t)})(Q,tt,rt,at)},I=function(Q,tt){return i(Q,tt)},M=function(Q,tt,rt,at){return(function(mt,bt,vt,_t){return mt(bt,vt,_t)})(Q,tt,rt,at)},B=function(Q,tt){return(function(rt,at){return rt(at)})(Q,tt)},$=function(Q,tt){return(function(rt,at){return rt&&at})(Q,tt)};return(function(Q,tt,rt){return Q(tt,rt)})(e.YH,this,(function(Q){switch(Q.label){case 0:return y(V4)?[2,!w(p(Pe,19),window[E(Pe,20)][p(Pe,21)])]:y(F4)?[4,Promise.all([v(td,I(Pe,22),(function(){return!0}),(function(){return!1})),M(td,B(Pe,23),(function(){return!1}),(function(tt){return(function(rt){return(function(at,mt){return at instanceof mt})(rt,Error)})(tt)&&(function(rt,at){return(function(mt,bt){return mt===bt})(rt,at)})(tt.name,p(Pe,24))}))])]:[3,2];case 1:return s=Q.sent(),o=s[0],c=s[1],[2,$(o,c)];case 2:return[2,!1]}}))}))}function td(i,s,o){var c=function(p,y){return p(y)};return new Promise((function(p){var y=function(I,M){return c(I,M)},w=c(au,i),E=w[1],v=w[2];if((function(I){return I!==0})(E))return(function(I){return I(!1)})(p);v[c(Pe,25)]((function(){return(function(I,M){return(function(B,$){return B($)})(I,M)})(p,(function(I){return(function(M){return M()})(I)})(s))}),(function(I){return y(p,y(o,I))}))}))}var O8=Tn([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 T8(){var i=function(s,o,c){return s(o,c)};return i(jn,i(Un,2e3,{s:-2,v:null}),N8)}function N8(){var i,s=function(M){return M()},o=function(M,B){return M(B)},c=function(M,B){return M(B)},p=function(M,B){return M<B},y=function(M,B){return M===B},w=function(M,B,$){return M(B,$)},E=function(M,B,$){return M(B,$)},v=function(M,B){return M(B)},I=function(M,B){return M(B)};return(function(M,B,$,Q,tt){return M(B,void 0,void 0,tt)})(e.sH,this,0,0,(function(){var M,B,$,Q,tt,rt,at,mt,bt,vt,_t,Gt,jt;return E(e.YH,this,(function(Zt){switch(Zt.label){case 0:M=window,B=s(E8),$=o(O8,0),Zt.label=1;case 1:for(Zt.trys.push([1,2,,5]),Q="".concat(c(uu,B[0])).concat(c(uu,B[1])).concat(o(uu,B[2])),tt=$[Q],rt=Object.values(tt),at={},mt=0,bt=(jt=Object.keys(M)).slice.apply(jt,rt);p(mt,bt.length);mt++)vt=bt[mt],_t=y(i=w($t,Object,1110892003)(M,vt),null)||y(i,void 0)?void 0:E($t,i,494360628),at[o(tr,vt)]={i:!0,t:null,s:vt.slice(-3),e:12,p:v(String,_t).slice(0,50)};return[2,{s:-3,v:at}];case 2:return Zt.sent(),[4,s(I8)];case 3:return Zt.sent()?[2,{s:-4,v:null}]:[4,I(_8,B)];case 4:return(Gt=Zt.sent())?[2,{s:0,v:Gt}]:[2,{s:-1,v:null}];case 5:return[2]}}))}))}function uu(i){return"".concat(Ha[(function(s){return s>>4})(i)]).concat(Ha[(function(s){return s%16})(i)])}var on=Tn([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 ed(i){var s=function(c,p,y){return c(p,y)},o=$t(i,928136154);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,y=function(I){return(function(M){return M()})(I)},w=function(I,M){return(function(B,$){return B===$})(I,M)},E=function(I,M,B){return s(I,M,B)},v=function(I,M,B){return(function($,Q,tt){return $(Q,tt)})(I,M,B)};return s(e.YH,this,(function(I){switch(I.label){case 0:return c=y(u0),[4,E(jn,v(Un,300,-4),x8.bind(null,c,o))];case 1:return p=I.sent(),[2,function(){var M=(function(B){return y(B)})(p);return(function(B){return w(B,0)})(M)||(function(B){return w(B,-4)})(M)?{s:M,v:{u:c,e:[],s:[]}}:{s:M,v:null}}]}}))}))}function x8(i,s){var o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return(function(p,y,w,E,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,y,w,E,v,I,M,B,$=function(mt,bt,vt){return o(mt,bt,vt)},Q=function(mt,bt,vt){return c(mt,bt,vt)},tt=function(mt,bt){return(function(vt,_t){return vt!==_t})(mt,bt)},rt=function(mt,bt,vt){return c(mt,bt,vt)},at=function(mt,bt,vt){return(function(_t,Gt,jt){return _t(Gt,jt)})(mt,bt,vt)};return(function(mt,bt,vt){return mt(bt,vt)})(e.YH,this,(function(mt){switch(mt.label){case 0:if(p=$(C8,i,s),y=$(B8,p,!0),w=Q($t,y,453955339),E=Q($t,y,1801730948),tt(w,0))return[2,w];v=$(U8,E,s),mt.label=1;case 1:return mt.trys.push([1,,4,5]),[4,rt($t,v,142982734)()];case 2:return I=mt.sent(),M=Q($t,I,453955339),B=Q($t,I,1801730948),tt(M,0)?[2,M]:[4,at($t,E,76151562)(B)];case 3:return mt.sent(),[2,0];case 4:return(function(bt,vt){return o(bt,vt,107910612)})($t,v)(),[7];case 5:return[2]}}))}))}function C8(i,s){for(var o={AvCwh:"2|1|5|0|3|4",sALZI:function(E,v){return E(v)}},c=o.AvCwh.split("|"),p=0;;){switch(c[p++]){case"0":var y={};continue;case"1":w[o.sALZI(on,1)]=o.sALZI(L8,s);continue;case"2":var w=o.sALZI(on,0);continue;case"3":y[o.sALZI(on,3)]=[w];continue;case"4":return y;case"5":w[o.sALZI(on,2)]=i;continue}break}}function L8(i){var s=function(o,c){return o(c)};return s(on,4).concat((function(o,c,p){return o(c,p)})(nu,i,s(on,5)))}var nd=on(6);function B8(i,s){for(var o={xqmnO:"4|3|0|2|1",SaOtC:function(E,v){return E instanceof v},xPGBK:function(E,v){return E===v},DCAVD:function(E,v){return E(v)},fgKXx:function(E,v){return E(v)}},c=o.xqmnO.split("|"),p=0;;){switch(c[p++]){case"0":var y;continue;case"1":return{s:0,v:y};case"2":try{y=new w(i)}catch(E){if(o.SaOtC(E,Error)){if(o.xPGBK(E.name,nd))return{s:-6,v:null};if(o.DCAVD(k8,E))return{s:-9,v:null}}throw E}continue;case"3":if(!w)return{s:-3,v:null};continue;case"4":var w=s?window[o.fgKXx(on,7)]||window[o.DCAVD(on,8)]:window[o.DCAVD(on,7)];continue}break}}function M8(i,s){var o,c=function(p,y){return p===y};try{return c(o=(function(p,y){return p(y,34843658)})($t,i),null)||c(o,void 0)||o.call(i,s||Math.random().toString()),0}catch(p){if((function(y){return y instanceof Error})(p)&&c(p.name,nd))return-7;throw p}}function k8(i){return(function(s,o){return s===o})(i.name,(function(s){return s(9)})(on))&&(function(s,o){return s(o,3632233996)})($t,new RegExp((function(s){return s(10)})(on)))((function(s,o){return s(o,3065852031)})($t,i))}function ho(i){try{$t(i,318865860)()}catch{}}function D8(i,s){var o=function(c,p,y){return c(p,y)};return(function(c,p,y,w,E){return c(p,void 0,void 0,E)})(e.sH,this,0,0,(function(){var c,p;return(function(y,w,E){return y(w,E)})(e.YH,this,(function(y){switch(y.label){case 0:try{c=(function(w,E,v){return o(w,E,v)})($t,i,882066760)(s)}catch(w){if(!(function(E,v){return(function(I,M){return I instanceof M})(E,v)})(w,Error)||!(function(E,v,I){return o(E,v,I)})($t,new RegExp((function(E){return(function(v){return v(11)})(E)})(on),"i"),3632233996)((function(E,v,I){return o(E,v,I)})($t,w,3065852031)))throw w;c=new Promise((function(E,v){(function(I,M){return(function(B,$,Q){return o(B,$,Q)})(I,M,882066760)})($t,i)(E,v,s)}))}return[4,c];case 1:return(function(w){return(function(E,v){return E===v})(w,void 0)})(p=y.sent())?[2,{s:-8,v:null}]:[2,{s:0,v:p}]}}))}))}function U8(i,s){var o,c,p=function(Nt,Pt){return Nt(Pt)},y=function(Nt,Pt){return Nt===Pt},w=function(Nt,Pt,Xt){return Nt(Pt,Xt)},E=function(Nt,Pt){return Nt(Pt)},v=function(Nt,Pt){return Nt!==Pt},I=function(Nt,Pt){return Nt in Pt},M=function(Nt,Pt){return Nt in Pt},B=function(Nt){return Nt()},$=function(Nt,Pt){return Nt(Pt)},Q=function(Nt,Pt,Xt){return Nt(Pt,Xt)},tt=function(Nt,Pt,Xt){return Nt(Pt,Xt)},rt=function(Nt,Pt,Xt,Qt,ne){return Nt(Pt,Xt,Qt,ne)},at=this;function mt(Nt,Pt){return p(bt,Nt)&&y(w($t,Nt,3920415024),400)&&w($t,Nt,4101391790).includes(Pt)}function bt(Nt){return y(typeof Nt,E(on,12))&&v(Nt,null)&&I(p(on,13),Nt)&&M(E(on,14),Nt)}var vt=null,_t=!1;function Gt(){var Nt=function(Xt,Qt){return(function(ne,ue){return ne!==ue})(Xt,Qt)},Pt=function(Xt,Qt){return E(Xt,Qt)};return rt(e.sH,this,void 0,void 0,(function(){var Xt,Qt,ne,ue;return(function(we,pe,Se){return tt(we,pe,Se)})(e.YH,this,(function(we){switch(we.label){case 0:return Xt=(function(pe,Se){return $(pe,Se)})(M8,i),Nt(Xt,0)?[2,{s:Xt,v:null}]:[4,Pt(D8,i)];case 1:return Qt=we.sent(),ne=(function(pe,Se){return Q(pe,Se,453955339)})($t,Qt),ue=(function(pe,Se){return(function(Ce,Le,Ne){return Ce(Le,Ne)})(pe,Se,1801730948)})($t,Qt),Nt(ne,0)?[2,{s:ne,v:null}]:[2,{s:0,v:ue}]}}))}))}s&&tt($t,i,123626528)(on(15),(function(Nt){w(mt,Nt,s)&&(vt?(B(vt),vt=null,$(ho,i)):_t=!0)}));var jt,Zt=((o={})[jt=on,jt(17)]=function(){return(function(Nt,Pt){return Nt(Pt)})(ho,i)},o[(function(Nt){return Nt(18)})(on)]=function(){var Nt=function(Xt){return B(Xt)},Pt=function(Xt,Qt,ne){return(function(ue,we,pe){return ue(we,pe)})(Xt,Qt,ne)};return rt(e.sH,at,void 0,void 0,(function(){var Xt;return Pt(e.YH,this,(function(Qt){switch(Qt.label){case 0:return[4,Nt(Gt)];case 1:return Xt=Qt.sent(),(function(ne){return v(ne,0)})(Pt($t,Xt,453955339))&&(function(ne,ue){p(ne,ue)})(ho,i),[2,Xt]}}))}))},o);return s?Q($t,Object,1914874273)(Zt,((c={})[(function(Nt){return Nt(19)})(on)]=function(){y((function(Nt,Pt){return Nt(Pt,4184312542)})($t,i),p(on,16))||(_t?(function(Nt,Pt){Nt(Pt)})(ho,i):vt=(function(Nt,Pt,Xt,Qt){return Nt(Pt,5e3,Qt)})(rs,ho,0,i))},c)):Zt}var Pn=fo([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],b6,2);function P8(){var i=function(w,E){return w(E)},s=function(w,E){return w(E)},o=function(w,E,v){return w(E,v)},c=function(w,E){return w<E},p=function(w,E,v){return w(E,v)},y=function(w,E,v){return w(E,v)};return(function(w,E,v,I,M){return w(E,void 0,void 0,M)})(e.sH,this,0,0,(function(){var w,E,v,I,M,B,$,Q;return o(e.YH,this,(function(tt){switch(tt.label){case 0:return(function(rt){return rt()})(H4)?[2,[-1,NaN]]:(w=new Uint8Array([0]),E=i(Pn,0),[4,navigator[i(Pn,1)](s(Pn,2),E)]);case 1:return[4,tt.sent()[s(Pn,3)]()];case 2:return v=tt.sent(),[4,o(rd,v,w)];case 3:if(I=tt.sent(),!(M=c(I,10)))return[3,5];for(B=o(f4,10,2500),$=(function(rt){return rt-1})((function(rt,at){return rt-at})(B,I)),Q=0;c(Q,$);Q++)p(V8,v,w);return[4,y(rd,v,w)];case 4:I=tt.sent(),tt.label=5;case 5:return[2,[M?1:0,I]]}}))}))}function F8(){return(function(s,o){return s==o})(typeof navigator[i=Pn,i(1)],(function(s){return s(4)})(Pn));var i}function rd(i,s){var o=function(c,p){return c(p)};return(function(c,p,y,w,E){return c(p,void 0,void 0,E)})(e.sH,this,0,0,(function(){var c,p=function(v,I){return o(v,I)},y=function(v,I){return o(v,I)},w=function(v,I){return o(v,I)},E=function(v,I){return o(v,I)};return(function(v,I,M){return v(I,M)})(e.YH,this,(function(v){switch(v.label){case 0:return[4,(c=i[p(Pn,5)]())[p(Pn,6)](y(Pn,7),s)];case 1:return v.sent(),[2,w(Number,c[E(Pn,8)])]}}))}))}function V8(i,s){var o=function(p,y){return p(y)},c=i[o(Pn,5)]();o(oo,c[o(Pn,6)]((function(p){return p(7)})(Pn),s))}function H8(){var i=function(s,o,c){return s(o,c)};return(function(s,o,c,p,y){return s(o,void 0,void 0,y)})(e.sH,this,0,0,(function(){var s=function(w){return(function(E){return E()})(w)},o=function(w,E,v){return i(w,E,v)},c=function(w,E,v){return i(w,E,v)},p=function(w,E,v){return i(w,E,v)},y=this;return(0,e.YH)(this,(function(w){var E=function(I){return s(I)},v=function(I,M){return(function(B,$){return(function(Q,tt){return Q===tt})(B,$)})(I,M)};return s(F8)?[2,c(jn,p(Un,500,{s:-2,v:null}),(function(){var I=function($){return E($)},M=function($,Q){return v($,Q)},B=function($,Q,tt){return(function(rt,at,mt){return o(rt,at,mt)})($,Q,tt)};return(function($,Q,tt,rt,at){return(function(mt,bt,vt,_t,Gt){return(function(jt,Zt,Nt,Pt,Xt){return jt(Zt,Nt,Pt,Xt)})(mt,bt,vt,_t,Gt)})($,Q,void 0,void 0,at)})(e.sH,y,0,0,(function(){var $,Q=function(tt){return I(tt)};return B(e.YH,this,(function(tt){switch(tt.label){case 0:return[4,Q(P8)];case 1:return(function(rt){return M(rt,-1)})(($=tt.sent())[0])?[2,{s:-3,v:null}]:[2,{s:0,v:$}]}}))}))}))]:[2,function(){return{s:-1,v:null}}]}))}))}var ms=fo([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],ou,2);function id(){return ms(0)}function G8(){return(0,e.sH)(this,void 0,void 0,(function(){var i,s,o;return(function(c,p,y){return c(p,y)})(e.YH,this,(function(c){var p=function(y,w){return(function(E,v){return E(v)})(y,w)};switch(c.label){case 0:return i=(function(y){return y()})(id),[4,Promise.all(i.map(j8))];case 1:return s=c.sent(),o={},i.forEach((function(y,w){var E=p(tr,y).toString(16);o[E]=s[w]})),[2,o]}}))}))}function j8(i){var s=function(o,c){return o(c)};return new Promise((function(o){var c=s(ms,1).concat(i,s(ms,2));try{var p=(function(E,v){return E(v)})(au,c),y=p[1],w=p[2];if((function(E){return E!==0})(y))return void(function(E,v){E(v)})(o,y);w[(function(E){return E(3)})(ms)]((function(){return s(o,0)}),(function(){return(function(E){return s(E,-1)})(o)}))}catch{s(o,-2)}}))}var Y8=Tn([4291220175,857170018,1001396817,1198736693],6);function od(){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(M,B){return M(B)})(v,I)},c=function(v,I,M){return(function(B,$,Q){return B($,Q)})(v,I,M)},p=function(v,I,M,B,$){return(function(Q,tt,rt,at,mt){return Q(tt,rt,at,mt)})(v,I,M,B,$)},y=function(v,I,M){return(function(B,$,Q){return B($,Q)})(v,I,M)},w=function(v,I,M){return i(v,I,M)},E=this;return i(e.YH,this,(function(v){var I=function(tt){return s(tt)},M=function(tt){return s(tt)},B=function(tt,rt){return o(tt,rt)},$=function(tt,rt,at){return c(tt,rt,at)},Q=function(tt,rt,at,mt,bt){return p(tt,rt,at,mt,bt)};switch(v.label){case 0:return[4,y(jn,w(Un,500,{s:-2,v:null}),(function(){var tt=function(at){return M(at)},rt=function(at,mt){return B(at,mt)};return Q(e.sH,E,void 0,void 0,(function(){var at;return(function(mt,bt,vt){return $(mt,bt,vt)})(e.YH,this,(function(mt){switch(mt.label){case 0:return(function(bt){return I(bt)})(id)?(function(bt){return I(bt)})(Gl)?(at={s:0},[4,tt(G8)]):[2,{s:-1,v:null}]:[2,{s:-3,v:null}];case 1:return[2,(at[rt(Y8,0)]=mt.sent(),at)]}}))}))}))];case 1:return[2,v.sent()]}}))}))}function z8(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function sd(){return{s:0,v:!!window.isSecureContext}}var Yt=fo([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],R6,0);function W8(){var i=function(s,o){return s(o)};return i(Yt,0)&&navigator[i(Yt,0)]}function K8(){var i=function(s,o){return s(o)};return document[i(Yt,1)](i(Yt,2))[i(Yt,3)](i(Yt,4))}function Z8(i,s){return o=e.sH,c=function(){var p,y,w,E,v=function(M,B){return(function($,Q){return $(Q)})(M,B)},I=function(M,B,$,Q){return(function(tt,rt,at,mt){return tt(rt,at,mt)})(M,B,$,Q)};return(function(M,B,$){return M(B,$)})(e.YH,this,(function(M){switch(M.label){case 0:return p=Array.from((function(B){return(function($){return $===null})(B)})(i)||(function(B){return(function($){return $===void 0})(B)})(i)?void 0:i[v(Yt,5)].values()),[4,Promise.all([I(X8,i,p,s),v(q8,i)])];case 1:return y=M.sent(),w=y[0],E=y[1],[2,[w,E,p]]}}))},o(this,void 0,void 0,c);var o,c}var _i=16;function X8(i,s,o){var c=function(vt,_t){return vt(_t)},p=function(vt,_t){return vt*_t},y=function(vt,_t){return vt(_t)},w=function(vt,_t){return vt(_t)},E=function(vt,_t){return vt+_t},v=function(vt,_t){return vt(_t)},I=function(vt,_t){return vt(_t)},M=function(vt,_t){return vt(_t)},B=function(vt,_t){return vt(_t)},$=function(vt,_t){return vt(_t)},Q=function(vt,_t){return vt(_t)},tt=function(vt,_t){return vt(_t)},rt=function(vt,_t){return vt(_t)},at=function(vt,_t){return vt(_t)},mt=function(vt,_t){return vt+_t},bt=function(vt,_t){return vt+_t};return(function(vt,_t,Gt,jt,Zt){return vt(_t,void 0,void 0,Zt)})(e.sH,this,0,0,(function(){var vt,_t,Gt,jt,Zt,Nt,Pt,Xt,Qt,ne,ue,we,pe,Se,Ce,Le,Ne,nn,Sn,pn,Fn,zn,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 y(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 w(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 E(Tt,xt)},NzoFK:function(Tt,xt){return w(Tt,xt)},nStre:function(Tt,xt){return v(Tt,xt)},cgngL:function(Tt,xt){return I(Tt,xt)},lnSsO:function(Tt,xt){return M(Tt,xt)},LWtIu:function(Tt,xt){return I(Tt,xt)},rnbTq:function(Tt,xt){return M(Tt,xt)},vXgTw:function(Tt,xt){return(function(Jt,se){return Jt|se})(Tt,xt)},SGWhR:function(Tt,xt){return w(Tt,xt)},tJskz:function(Tt,xt){return v(Tt,xt)},WwBMK:function(Tt,xt){return w(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 B(Tt,xt)},qmLme:function(Tt,xt){return $(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 M(Tt,xt)},rMQcE:function(Tt,xt){return $(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 rt(Tt,xt)},KBsRE:function(Tt,xt){return c(Tt,xt)},eiLib:function(Tt,xt){return p(Tt,xt)},gsIFj:function(Tt,xt){return B(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 mt(Tt,xt)},VfkAG:function(Tt,xt){return E(Tt,xt)},FQVYm:function(Tt,xt){return rt(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 w(Tt,xt)},CPukW:function(Tt,xt){return y(Tt,xt)},uiTcO:function(Tt,xt){return(function(Jt,se){return Jt*se})(Tt,xt)},gvEcj:function(Tt,xt){return bt(Tt,xt)},qonBa:function(Tt,xt){return bt(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 mt(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(Yt,6)]({requiredFeatures:s})];case 1:for(vt=Tt.sent(),_t=Math.PI,Gt=[[0,1,0,Mt.bLKEM(_t,7)],[1,0,0,Mt.bLKEM(_t,8)],[0,1,1,Mt.BfmPO(_t,4)],[1,2,1,Mt.qiUeQ(_t,8)]],jt=Gt.length,Zt=new Uint8Array(Mt.QCXCI(jt,Mt.YuwoT(Mt.YuwoT(16,_i),8))),Nt=navigator[Mt.IxGbO(Yt,0)][Mt.NzoFK(Yt,7)](),o[Mt.nStre(Yt,8)]({device:vt,format:Nt}),Pt=vt[Mt.cgngL(Yt,9)](Mt.IxGbO(Yt,10)),Xt=vt[Mt.CVGyL(Yt,11)]({label:Mt.IxGbO(Yt,12),layout:Mt.cgngL(Yt,13),vertex:{module:Pt},fragment:{module:Pt,targets:[{format:Nt}]},primitive:Mt.lnSsO(Yt,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(Te){return Mt.eRsOG(Te,3)})(un)]})).flat()),ue=vt[Mt.CVGyL(Yt,15)]({label:Mt.LWtIu(Yt,16),size:[7,9],format:Mt.rnbTq(Yt,17),usage:Mt.vXgTw(window[Mt.SGWhR(Yt,18)][Mt.IxGbO(Yt,19)],window[Mt.tJskz(Yt,18)][Mt.WwBMK(Yt,20)])}),vt[Mt.LWtIu(Yt,21)][Mt.XvGWM(Yt,22)]({texture:ue},ne,{bytesPerRow:Mt.NQGua(7,4)},{width:7,height:9}),we=vt[Mt.SGWhR(Yt,23)](Mt.Czazt(Yt,24)),pe=vt[Mt.XvGWM(Yt,25)]({layout:Xt[Mt.TcuLX(Yt,26)](0),entries:[{binding:0,resource:we},{binding:1,resource:ue[Mt.qmLme(Yt,27)]()}]}),Se=Gt.map((function(se){for(var un=Mt.LIcVF.split("|"),Te=0;;){switch(un[Te++]){case"0":ke[Mt.CVGyL(Yt,35)]();continue;case"1":var ke=vt[Mt.CVGyL(Yt,28)]({label:Mt.CVGyL(Yt,29),size:Mt.NQGua(4,Float32Array[Mt.IxGbO(Yt,30)]),usage:window[Mt.IxGbO(Yt,31)][Mt.CVGyL(Yt,32)],mappedAtCreation:!0});continue;case"2":We[Mt.CVGyL(Yt,34)](se);continue;case"3":var We=new Float32Array(ke[Mt.IxGbO(Yt,33)]());continue;case"4":return vt[Mt.CVGyL(Yt,25)]({layout:Xt[Mt.qQoQh(Yt,26)](1),entries:[{binding:0,resource:{buffer:ke}}]})}break}})),Ce=vt[Mt.DHpBv(Yt,36)](Mt.Czazt(Yt,37)),Le=vt[Mt.qQoQh(Yt,28)]({size:Mt.QCXCI(Ce[Mt.GXSjU(Yt,38)],8),usage:Mt.lZchU(window[Mt.kdFZM(Yt,31)][Mt.tJskz(Yt,39)],window[Mt.fjLlD(Yt,31)][Mt.qmLme(Yt,40)])}),Ne=vt[Mt.LWtIu(Yt,28)]({size:Mt.NQGua(Le[Mt.NZEUH(Yt,41)],jt),usage:Mt.vXgTw(window[Mt.rMQcE(Yt,31)][Mt.XvGWM(Yt,20)],window[Mt.cmdDW(Yt,31)][Mt.fMGTS(Yt,42)])}),nn={label:Mt.Megnu(Yt,43),colorAttachments:Mt.qmLme(Yt,44),timestampWrites:{querySet:Ce,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}},fn=0;Mt.dwDBV(fn,Se.length);fn++)for(var xt=Mt.UStju.split("|"),Jt=0;;){switch(xt[Jt++]){case"0":Mt.yPtzU(Ne[Mt.hIuvn(Yt,58)],Mt.LUaAI(Yt,59))&&pn[Mt.KBsRE(Yt,60)](Le,0,Ne,Mt.eiLib(fn,16),Le[Mt.qQoQh(Yt,41)]);continue;case"1":Fn[Mt.gsIFj(Yt,51)](Xt);continue;case"2":zn=window[Mt.ymkbA(Yt,53)][Mt.qQoQh(Yt,54)]();continue;case"3":Fn[Mt.sTGJP(Yt,52)](1,Sn);continue;case"4":Tr=Mt.RTTay($8,o[Mt.qmLme(Yt,2)]);continue;case"5":pn[Mt.cmdDW(Yt,57)](Ce,0,Ce[Mt.hIuvn(Yt,38)],Le,0);continue;case"6":Fn[Mt.SXGAR(Yt,56)]();continue;case"7":Wn=pn[Mt.rLyth(Yt,61)]();continue;case"8":vt[Mt.Megnu(Yt,21)][Mt.RTTay(Yt,62)]([Wn]);continue;case"9":Zt[Mt.lnNJb(Yt,34)](new Uint8Array(new Float64Array([zn])[Mt.XvGWM(Yt,63)]),Mt.HtEmG(fn,Mt.YuwoT(Mt.kEERD(16,_i),8)));continue;case"10":Zt[Mt.cgngL(Yt,34)](Tr,Mt.lEDdr(8,Mt.NQGua(fn,Mt.VfkAG(Mt.lEDdr(16,_i),8))));continue;case"11":Fn[Mt.FQVYm(Yt,52)](0,pe);continue;case"12":pn=vt[Mt.SGWhR(Yt,48)](Mt.kdFZM(Yt,49));continue;case"13":nn[Mt.rjquO(Yt,45)][0][Mt.hIuvn(Yt,46)]=o[Mt.CVGyL(Yt,47)]()[Mt.zCjNE(Yt,27)]();continue;case"14":Fn=pn[Mt.FQVYm(Yt,50)](nn);continue;case"15":Fn[Mt.HfSqy(Yt,55)](48);continue;case"16":Sn=Se[fn];continue}break}return Mt.yPtzU(Ne[Mt.xEOfR(Yt,58)],Mt.CsGxJ(Yt,59))?[4,Ne[Mt.DHpBv(Yt,64)](window[Mt.WwBMK(Yt,65)][Mt.CPukW(Yt,66)])]:[3,3];case 2:for(Tt.sent(),Xr=Ne[Mt.cmdDW(Yt,33)](),nr=new Uint8Array(Xr),fn=0;Mt.dwDBV(fn,jt);fn++)Zt[Mt.TcuLX(Yt,34)](nr[Mt.sTGJP(Yt,67)](Mt.NQGua(fn,_i),Mt.uiTcO(Mt.gvEcj(fn,1),_i)),Mt.qonBa(Mt.SQuSM(8,16),Mt.qLjkZ(fn,Mt.gvEcj(Mt.XMYnt(16,_i),8))));Ne[Mt.YtxIQ(Yt,35)](),Tt.label=3;case 3:return[2,Mt.GXSjU(Qn,Zt)]}}))}))}function $8(i){var s=function(o,c){return o(c)};return s(a4,s(dn,i[s(Yt,68)]()))}function q8(i){var s,o=function(p,y){return p!==y},c=function(p,y){return p(y)};return(function(p,y,w,E,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p;return(function(y,w,E){return y(w,E)})(e.YH,this,(function(y){switch(y.label){case 0:return o(s=i[c(Yt,69)],null)&&o(s,void 0)?(p=s,[3,3]):[3,1];case 1:return[4,i[c(Yt,70)]()];case 2:p=y.sent(),y.label=3;case 3:return[2,p]}}))}))}function ad(){var i=function(o,c,p){return o(c,p)},s=this;return i(jn,Un(1e3,{s:-2,v:null}),(function(){var o,c,p=function(v){return(function(I){return I()})(v)},y=function(v,I,M){return i(v,I,M)},w=function(v,I,M){return(function(B,$,Q){return B($,Q)})(v,I,M)},E=function(v,I,M){return(function(B,$,Q){return B($,Q)})(v,I,M)};return o=e.sH,c=function(){var v,I,M,B,$,Q,tt;return i(e.YH,this,(function(rt){switch(rt.label){case 0:return[4,p(J8)];case 1:return v=rt.sent(),(function(at,mt){return(function(bt,vt){return bt!==vt})(at,mt)})(y($t,v,453955339),0)?[2,v]:(I=(function(at,mt){return i(at,mt,1801730948)})($t,v),M=I[0],B=I[1],[4,w(Z8,M,B)]);case 2:return $=rt.sent(),Q=$[0],tt=$[1],[2,{s:0,v:{s:$[2],f:Q,v:y($t,tt,4112659446),a:E($t,tt,1956208378)}}]}}))},o(s,void 0,void 0,c)}))}function J8(){var i,s,o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return i=e.sH,s=function(){var p,y,w,E,v=function(B,$,Q){return c(B,$,Q)},I=function(B){return(function($){return $()})(B)},M=function(B,$,Q){return c(B,$,Q)};return o(e.YH,this,(function(B){switch(B.label){case 0:if(!(p=(function($,Q){return o($,Q,3179935986)})($t,navigator)))return[2,{s:-3,v:null}];y=null,B.label=1;case 1:return B.trys.push([1,3,,4]),[4,v($t,p,1678473624)()];case 2:return y=B.sent(),[3,4];case 3:if((function($){return(function(Q,tt){return Q instanceof tt})($,Error)})(w=B.sent())&&I(q))return[2,{s:-3,v:M($t,w,3065852031)}];throw w;case 4:return y?I(W8)?(E=(function($){return(function(Q){return Q()})($)})(K8))?[2,{s:0,v:[y,E]}]:[2,{s:-5,v:null}]:[2,{s:-1,v:null}]:[2,{s:-4,v:null}]}}))},i(this,void 0,void 0,s)}function Q8(){var i;return{s:0,v:(i=performance.timeOrigin)!==null&&i!==void 0?i:Date.now()-performance.now()}}var Or=Tn([1058085656,755065913,591387725,1190162267,3207354738,1862345487,1482820536,1963637024,16670991,4033829736,1867081798,1215448816,1812826169,279519816,3211723043,576614155,1881342384],5);function ty(){var i,s,o=function(c){return c()};return i=e.sH,s=function(){var c,p=function(w){return o(w)},y=function(w,E){return(function(v,I){return v(I)})(w,E)};return(function(w,E,v){return w(E,v)})(e.YH,this,(function(w){switch(w.label){case 0:return p(S)||(function(E){return o(E)})(D)?(c={s:0},[4,p(ey)]):[3,2];case 1:return[2,(c[y(Or,0)]=w.sent(),c)];case 2:return[2,{s:-1,v:null}]}}))},i(this,void 0,void 0,s)}function ey(){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,y);continue;case"1":var y;continue;case"2":var w={mXScH:function(E,v){return i.dJhbP(E,v)}};continue;case"3":i.SkSjD(S)?((y=new Error).name=" ",i.KqpSs($t,Object,1973166116)(y,i.dJhbP(Or,1),{get:o.bind(null,!0)})):(y=i.hsbcg($t,window[i.dJhbP(Or,2)],1297038992)(i.QsyLE(Or,3)),i.BRhvx($t,Object,1973166116)(y,i.FbvWI(Or,4),{get:function(){w.mXScH(o,!0);var E=new Error;throw E.name="",E}}));continue;case"4":window[i.iDelp(Or,5)]((function(){i.Blqbz(o,!1)}));continue}break}}));return i.FbvWI(oo,s)}var ny=new Set([2882888216,2306836488,1040191956,1447924955]);function ry(){return{s:0,v:u4(Navigator.prototype,ny)}}var ud=Tn([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function iy(){var i,s=(function(o,c){return o(c,3966979758)})($t,new window[i=ud,i(0)](""));return(function(o,c){return o!==c})(typeof s,(function(o){return o(1)})(ud))?{s:-1,v:null}:{s:0,v:{isTrusted:s}}}var oy=function(){return{key:"bd",sources:{stage1:(i={},i.s94=ed,i),stage2:(s={},s.s106=X5,s.s154=a8,s.s158=h8,s.s160=h6,s.s97=od,s.s70=ad,s.s152=D6,s),stage3:(o={},o.s1=vl,o.s2=ml,o.s4=gl,o.s5=yl,o.s7=wl,o.s15=El,o.s19=_l,o.s27=bl,o.s74=Rl,o.s75=Al,o.s24=Fl,o.s44=Bl,o.s45=kl,o.s57=Yl,o.s59=Sl,o.s60=Il,o.s61=Ol,o.s62=Tl,o.s63=Nl,o.s64=xl,o.s65=Cl,o.s68=Ll,o.s69=Pl,o.s72=Vl,o.s82=zl,o.s83=Wl,o.s99=sd,o.s101=W5,o.s103=K5,o.s104=Z5,o.s117=$5,o.s119=q5,o.s123=J5,o.s131=Q5,o.s133=t6,o.s136=e6,o.s148=n6,o.s149=r6,o.s150=i6,o.s157=o6,o.s102=P6,o.s118=F6,o.s120=k6,o.s130=V6,o.s132=H6,o.s135=U6,o.s139=L6,o.s142=M6,o.s144=B6,o.s145=x6,o.s146=C6,o.s151=q6,o.s153=J6,o.s155=c8,o.s156=l8,o.s159=p8,o.s162=y8,o.s163=ty,o.s165=iy,o.s166=ry,o)}};var i,s,o};function sy(i,s,o,c,p,y){var w=c?[]:(function(B,$,Q){return(function(tt,rt){for(var at=function(Xt,Qt){return Xt<Qt},mt=function(Xt,Qt,ne){return Xt(Qt,ne)},bt=function(Xt,Qt){return Xt(Qt)},vt=[],_t=0,Gt=Array.isArray(tt)?tt:[tt];at(_t,Gt.length);_t++){var jt=Gt[_t];if(mt(iu,jt,fs))for(var Zt=0,Nt=rt;at(Zt,Nt.length);Zt++){var Pt=Nt[Zt];vt.push(bt(c5,Pt))}else vt.push(bt(String,jt))}return vt})(B,$).map((function(tt){return nu(tt,{q:Q})}))})(i,s,o);if(w.length===0)return function(){return Promise.resolve({s:-1,v:null})};dr(y,(function(){return{e:6}}));var E=e0(),v=J0(E),I=Date.now(),M=il(w,ay.bind(null,5e3,y,v),uy,Math.max(10,w.length),p);return M.then((function(){return E.resolve()}),(function(){return E.resolve()})),function(B,$,Q,tt){return(0,e.sH)(this,void 0,void 0,(function(){var rt,at;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([M,cy(I,B,$)])];case 2:return mt.sent(),rt=(function(bt){var vt=bt.result,_t=bt.failedAttempts;if(vt!==void 0)return vt;var Gt=_t[0];if(!Gt)return{s:-3,v:null};if(Gt.level===1)return Gt.error;var jt=Gt.error,Zt=Gt.endpoint;if(jt instanceof Error){var Nt=jt.name,Pt=jt.message;switch(Nt){case"AbortError":return{s:-2,v:Pt};case"TimeoutError":return{s:-3,v:Pt};case"CSPError":return{s:-6,v:Pt};case"InvalidURLError":return{s:-7,v:"Invalid URL: ".concat(Wr(Zt,255))};case"TypeError":return{s:-4,v:Pt}}}return sl(jt)})(M.current),dr(tt,(function(){return{e:7,result:rt}})),[2,rt];case 3:throw at=mt.sent(),dr(tt,(function(){return{e:8,error:at}})),at;case 4:return[2]}}))}))}}function ay(i,s,o,c,p,y){return co(s,(function(){return{e:9,tryNumber:p,url:c,timeout:i}}),(function(w){var E=w.status,v=w.getHeader,I=w.body;return{e:10,tryNumber:p,status:E,retryAfter:v("retry-after"),body:I}}),(function(w){return{e:11,tryNumber:p,error:w}}),(function(){return q0({url:c,timeout:i,abort:y,container:o})}))}function uy(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:Wr("".concat(s,": ").concat(o),255)}}}function cy(i,s,o){return Un(Math.min(Math.max(s,i+1e4-Date.now()),o))}function cd(i){for(var s="".concat(i,"="),o=0,c=document.cookie.split(";");o<c.length;o++){for(var p=c[o],y=0;p[y]===" "&&y<p.length;)++y;if(p.indexOf(s)===y)return p.slice(y+s.length)}}function fd(i,s,o,c){var p="".concat(i,"=").concat(s),y=new Date(Date.now()+24*o*60*60*1e3),w="expires=".concat(y.toUTCString()),E=c?"domain=".concat(c):"";document.cookie=[p,"path=/",w,E,"SameSite=Lax"].join("; ")}function ld(i){var s=location.hostname,o=q();(function(c,p){var y=c.length-(c.slice(-1)==="."?1:0);do if(y=y>0?c.lastIndexOf(".",y-1):-1,p(c.slice(y+1))===!0)return!0;while(y>=0);return!1})(s,(function(c){if(!o||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(c)||c===s)return i(c)}))||i()}function dd(i){return"".concat(i,"_t")}function cu(i){return"".concat(i,"_lr")}function hd(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 fu(i,s){var o;try{(o=localStorage==null?void 0:localStorage.setItem)===null||o===void 0||o.call(localStorage,i,s)}catch{}}function fy(i){var s=(function(p){return[cd(p),hd(p)]})(dd(i)),o=s[0],c=s[1];return o=pd(o),c=pd(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 pd(i){return i&&i.length<=1e3?i:void 0}var ly=function(){return{key:"id",sources:{stage1:(i={},i.s94=ed,i),stage2:(s={},s.s52=d6,s.s6=_5,s.s58=g6,s.s20=g5,s.s36=y5,s.s51=w5,s.s21=E5,s.s79=S6,s.s69=Pl,s.s23=Y6,s.s29=G6,s.s84=W6,s.s85=Z6,s.s89=_6,s.s17=N5,s.s87=d8,s.s92=m8,s.s93=v8,s.s95=H8,s.s97=od,s.s70=ad,s),stage3:(o={},o.s22=T6,o.s30=O6,o.s33=a6,o.s44=Bl,o.s45=kl,o.s49=u6,o.s50=f6,o.s57=Yl,o.s59=Sl,o.s60=Il,o.s61=Ol,o.s62=Tl,o.s63=Nl,o.s64=xl,o.s65=Cl,o.s66=j5,o.s68=Ll,o.s71=E6,o.s24=Fl,o.s72=Vl,o.s1=vl,o.s2=ml,o.s3=b5,o.s4=gl,o.s5=yl,o.s7=wl,o.s9=R5,o.s10=A5,o.s11=S5,o.s12=K6,o.s13=I5,o.s14=O5,o.s15=El,o.s16=T5,o.s19=_l,o.s27=bl,o.s28=x5,o.s32=C5,o.s37=L5,o.s41=B5,o.s39=M5,o.s42=k5,o.s38=D5,o.s43=U5,o.s40=F5,o.s46=V5,o.s80=H5,o.s81=G5,o.s82=zl,o.s83=Wl,o.s86=$6,o.s91=P5,o.s96=Y5,o.s98=z8,o.s99=sd,o.s200=Q8,o.s201=s6,o.s202=z5,o.s74=Rl,o.s75=Al,o.s76=l6,o)},tls:sy,toRequest:function(c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w,E,v,I,M;return(0,e.YH)(this,(function(B){switch(B.label){case 0:return y=location.href,w=document.referrer,[4,Promise.all([y&&hs(y,p),w&&hs(w,p)])];case 1:return E=B.sent(),v=E[0],I=E[1],[2,(M={},M.url=v,M.cr=I||void 0,M.s55=fy(c),M.s48=N6(),M)]}}))}))},onResponse:function(c,p){var y,w,E;(function(v,I){var M=dd(v);I&&(function(B,$){(function(Q,tt){ld((function(rt){(function(at,mt){fd(at,"",-1,mt)})(Q,rt)})),ld((function(rt){return fd(Q,tt,365,rt),cd(Q)===tt}))})($,B),fu($,B)})(I,M)})(p,(E=(w=(y=c.products)===null||y===void 0?void 0:y.identification)===null||w===void 0?void 0:w.data)===null||E===void 0?void 0:E.visitorToken)}};var i,s,o},dy=function(){return{key:"si",sources:{stage2:(i={},i.s77=T8,i)}};var i},vd=[3,7];function lu(i){var s=hd(i);if(!s)return[];try{var o=s?JSON.parse(s):[];return Array.isArray(o)?o:[]}catch{return[]}}function md(i){var s={};return new Set(i).forEach((function(o){var c=(function(y){if(!URL.prototype)return y;try{return new URL(y,window.location.origin).toString()}catch{return y}})(o),p=performance.getEntriesByName(c,"resource");s[o]=p})),s}function du(i,s,o,c,p,y){for(var w,E=[],v=0,I=i;v<I.length;v++){var M=I[v],B=M.event;B.e!==o&&B.e!==c&&B.e!==p||B.stage===y&&((E[w=B.tryNumber]||(E[w]={}))[B.e]=M)}return E.map((function($){var Q,tt,rt,at,mt,bt,vt=(Q=$[o])===null||Q===void 0?void 0:Q.timestamp,_t=(rt=(tt=$[c])===null||tt===void 0?void 0:tt.timestamp)!==null&&rt!==void 0?rt:(at=$[p])===null||at===void 0?void 0:at.timestamp,Gt=(mt=$[o])===null||mt===void 0?void 0:mt.event.url,jt=(bt=$[p])===null||bt===void 0?void 0:bt.event.error;return vt&&_t&&Gt?gd(Gt,vt,_t,jt,s[Gt]):null})).filter((function($){return!!$}))}function gd(i,s,o,c,p){var y,w=(function(E,v,I){if(E){for(var M,B=E.length-1;B>=0;B--){var $=E[B];if($.startTime<v-1)break;$.responseEnd<=I+1&&(M=$)}return M}})(p,s,o);return(y={}).s=hr(w?.startTime)||Math.round(s),y.e=hr(w?.responseEnd)||Math.round(o),y.u=i||null,y.er=c?String(c):null,y.ds=hr(w?.domainLookupStart),y.de=hr(w?.domainLookupEnd),y.cs=hr(w?.connectStart),y.css=hr(w?.secureConnectionStart),y.ce=hr(w?.connectEnd),y.qs=hr(w?.requestStart),y.ss=hr(w?.responseStart),y}function hr(i){return typeof i=="number"?i===0?null:Math.round(i):null}function gs(i){var s,o=(s=performance.timeOrigin)!==null&&s!==void 0?s:Date.now()-performance.now();return Math.round(i.getTime()-o)}var hy=function(){var i=(function(){var o={},c=[],p=[],y=!1,w=yi(document,"visibilitychange",E);function E(){var I;p.push(((I={}).t=Math.round(performance.now()),I.s=tu()?"v":"h",I))}function v(I,M){for(var B,$,Q,tt,rt,at,mt,bt,vt,_t,Gt,jt,Zt=(function(Jt,se,un){var Te=[];return Jt[se]&&(Te.push.apply(Te,Jt[se].commonEvents),un!==void 0&&Te.push.apply(Te,Jt[se].getCalls[un]||[])),Te})(o,I,M),Nt={},Pt=0,Xt=Zt;Pt<Xt.length;Pt++){var Qt=Xt[Pt];Nt[Qt.event.e]=Qt}var ne=($=Nt[4])!==null&&$!==void 0?$:Nt[5];if(Nt[0]&&Nt[1]&&Nt[3]&&Nt[12]&&ne){var ue=Nt[0].event.options,we=ue.token,pe=ue.apiKey,Se=pe===void 0?we:pe,Ce=ue.storageKey,Le=Ce===void 0?p0:Ce,Ne=ue.modules,nn=ue.ldi,Sn=ue.aggressiveOptimization,pn=Sn!==void 0&&Sn,Fn=ue.optimizeRepeatedVisits,zn=Fn!==void 0&&Fn;if(Se){var Wn,Tr,Xr=Math.min(Nt[0].timestamp,gs((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=(rt=Nt[4])===null||rt===void 0?void 0:rt.event.result,Mt=(at=Nt[13])!==null&&at!==void 0?at:Nt[14],Tt=md(c),xt=((B={}).v="1",B.dt=new Date().toISOString(),B.ci=ol(),B.pi=Z0(),B.ai=I,B.ri=so(12),B.c=Se,B.rid=(bt=(mt=fn?.requestId)!==null&&mt!==void 0?mt:nr?.requestId)!==null&&bt!==void 0?bt:null,B.er=(vt=nr?.message)!==null&&vt!==void 0?vt:null,B.mo=Ne.map((function(Jt){return Jt.key})).filter((function(Jt){return!!Jt})),B.sa=(Wn=(_t=nn?.attempts)!==null&&_t!==void 0?_t:[],Tr=md(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 gd(Jt.url,gs(Jt.startedAt),gs(Jt.finishedAt),un?"Unknown":Jt.error,Tr[Jt.url])}))),B.ls=Nt[0].timestamp,B.le=Nt[1].timestamp,B.ca=du(Zt,Tt,9,10,11),B.ss=Nt[12].timestamp,B.se=(Gt=Mt?.timestamp)!==null&&Gt!==void 0?Gt:null,B.sd=(function(Jt){var se,un=(se=Jt[13])===null||se===void 0?void 0:se.event.result;if(!un)return{};var Te={};for(var ke in un)Te[ke]=Math.round(un[ke].duration);return Te})(Nt),B.gs=Nt[3].timestamp,B.ge=ne.timestamp,B.fa=du(Zt,Tt,18,19,20,0),B.ia=du(Zt,Tt,18,19,20,1),B.vs=(function(Jt,se,un,Te){for(var ke=(function(Nn,Kn){var xr,Cr;return(0,e.YH)(this,(function(pr){switch(pr.label){case 0:xr=0,Cr=0,pr.label=1;case 1:return xr<Nn.length&&Cr<Kn.length?(function(Ey,_y){return Ey.t<_y.t})(Nn[xr],Kn[Cr])?[4,Nn[xr]]:[3,3]:[3,6];case 2:return pr.sent(),xr++,[3,5];case 3:return[4,Kn[Cr]];case 4:pr.sent(),Cr++,pr.label=5;case 5:return[3,1];case 6:return xr<Nn.length?[4,Nn[xr]]:[3,9];case 7:pr.sent(),pr.label=8;case 8:return xr++,[3,6];case 9:return Cr<Kn.length?[4,Kn[Cr]]:[3,12];case 10:pr.sent(),pr.label=11;case 11:return Cr++,[3,9];case 12:return[2]}}))})(Jt.map((function(Nn){var Kn;return(Kn={}).t=gs(Nn.time),Kn.s=Nn.state==="visible"?"v":"h",Kn})),se),We=[],gn=void 0,Nr=function(){var Nn;We.length===0&&gn!==void 0&&We.push(((Nn={}).t=un,Nn.s=gn,Nn))};We.length<100;){var po=ke.next();if(po.done)break;var bi=po.value,Ri=bi.t,vo=bi.s;if(Ri>Te)break;Ri<un?gn=vo:vo!==gn&&(Nr(),We.push(bi),gn=vo)}return Nr(),We})((jt=nn?.visibilityStates)!==null&&jt!==void 0?jt:[],p,Xr,ne.timestamp),B.ab=Nt[1].event.ab,B.ao=pn,B.or=zn,B);(function(Jt,se){(function(un,Te){var ke=cu(Te),We=lu(ke)||[];We.splice(0,We.length-2);var gn=ul(w0(un),vd,3,7);We.push([un.ri,Qn(gn)]),fu(ke,JSON.stringify(We))})(Jt,se)})(xt,Le)}}}return E(),{addEvent:function(I){if(!y)switch((function(M){var B=M.event,$=B.agentId;if(o[$]||(o[$]={commonEvents:[],getCalls:{}}),tl(B)){var Q=B.getCallId;o[$].getCalls[Q]||(o[$].getCalls[Q]=[]),o[$].getCalls[Q].push(M)}else o[$].commonEvents.push(M)})({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(){y=!0,w()}}})(),s=new Set;return{toRequest:function(o){var c,p=(function(y){var w=lu(cu(y))||[],E=[];return w.forEach((function(v){try{var I=ds(ru(ss(v[1]),vd,7));E.push(I)}catch{}})),E})(o);return s=new Set(p.map((function(y){return y.ri}))),(c={}).lr=p,c},onResponse:function(o,c){(function(p,y){var w=cu(p);if(y.size!==0){var E=lu(w).filter((function(v){return!y.has(v[0])}));E.length!==0?fu(w,JSON.stringify(E)):(function(v){var I;try{(I=localStorage==null?void 0:localStorage.removeItem)===null||I===void 0||I.call(localStorage,v)}catch{}})(w)}})(c,s)},addEvent:i.addEvent,destroy:i.destroy}},py=function(i){return{addEvent:T4(i)}},vy=function(i){return{addEvent:z4(i)}},ys="API key required",ws="API key not found",Es="API key expired",yd="Request cannot be parsed",wd="Request failed",Ed="Request failed to process",_d="Too many requests, rate limit exceeded",bd="Not available for this origin",Rd="Not available with restricted header",my=ys,gy=ws,yy=Es,wy={load:pl,defaultEndpoint:cs,defaultTlsEndpoint:fs,ERROR_CLIENT_TIMEOUT:Za,ERROR_NETWORK_CONNECTION:Xa,ERROR_NETWORK_ABORT:$a,ERROR_WRONG_REGION:x0,ERROR_SUBSCRIPTION_NOT_ACTIVE:C0,ERROR_API_KEY_MISSING:ys,ERROR_API_KEY_INVALID:ws,ERROR_API_KEY_EXPIRED:Es,ERROR_BAD_REQUEST_FORMAT:yd,ERROR_BAD_RESPONSE_FORMAT:qa,ERROR_GENERAL_SERVER_FAILURE:wd,ERROR_SERVER_TIMEOUT:Ed,ERROR_RATE_LIMIT:_d,ERROR_FORBIDDEN_ORIGIN:bd,ERROR_FORBIDDEN_HEADER:Rd,ERROR_UNSUPPORTED_VERSION:L0,ERROR_INSTALLATION_METHOD_RESTRICTED:B0,ERROR_FORBIDDEN_ENDPOINT:M0,ERROR_CSP_BLOCK:Ja,ERROR_INTEGRATION_FAILURE:k0,ERROR_INVALID_ENDPOINT:Qa,ERROR_NETWORK_RESTRICTED:U0,ERROR_INVALID_PROXY_INTEGRATION_SECRET:P0,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:F0,ERROR_TOKEN_MISSING:ys,ERROR_TOKEN_INVALID:ws,ERROR_TOKEN_EXPIRED:Es}},568:function(t,n,r){r.r(n),r.d(n,{componentsToDebugString:function(){return Et},default:function(){return R},getFullscreenElement:function(){return D},getScreenFrame:function(){return Ht},hashComponents:function(){return Ct},isAndroid:function(){return W},isChromium:function(){return wt},isDesktopSafari:function(){return l},isEdgeHTML:function(){return gt},isGecko:function(){return S},isTrident:function(){return ft},isWebKit:function(){return P},load:function(){return F},loadSources:function(){return Rt},murmurX64Hash128:function(){return O},prepareForSources:function(){return zt},sources:function(){return lt},transformSource:function(){return st},withIframe:function(){return nt}});var e=r(635),u="3.4.2";function a(A,H){return new Promise((function(G){return setTimeout(G,A,H)}))}function f(A){return!!A&&typeof A.then=="function"}function m(A,H){try{var G=A();f(G)?G.then((function(ot){return H(!0,ot)}),(function(ot){return H(!1,ot)})):H(!0,G)}catch(ot){H(!1,ot)}}function d(A,H,G){return G===void 0&&(G=16),(0,e.sH)(this,void 0,void 0,(function(){var ot,Lt,Bt,Dt;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:ot=Array(A.length),Lt=Date.now(),Bt=0,kt.label=1;case 1:return Bt<A.length?(ot[Bt]=H(A[Bt],Bt),(Dt=Date.now())>=Lt+G?(Lt=Dt,[4,a(0)]):[3,3]):[3,4];case 2:kt.sent(),kt.label=3;case 3:return++Bt,[3,1];case 4:return[2,ot]}}))}))}function _(A){A.then(void 0,(function(){}))}function N(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 C(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 T(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 k(A,H){return[A[0]^H[0],A[1]^H[1]]}function U(A){return A=k(A,[0,A[0]>>>1]),A=k(A=C(A,[4283543511,3981806797]),[0,A[0]>>>1]),k(A=C(A,[3301882366,444984403]),[0,A[0]>>>1])}function Y(A,H){H=H||0;var G,ot=(A=A||"").length%16,Lt=A.length-ot,Bt=[0,H],Dt=[0,H],kt=[0,0],it=[0,0],Wt=[2277735313,289559509],he=[1291169091,658871167];for(G=0;G<Lt;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],it=[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=T(kt=C(kt,Wt),31),Bt=N(Bt=T(Bt=k(Bt,kt=C(kt,he)),27),Dt),Bt=N(C(Bt,[0,5]),[0,1390208809]),it=T(it=C(it,he),33),Dt=N(Dt=T(Dt=k(Dt,it=C(it,Wt)),31),Bt),Dt=N(C(Dt,[0,5]),[0,944331445]);switch(kt=[0,0],it=[0,0],ot){case 15:it=k(it,x([0,A.charCodeAt(G+14)],48));case 14:it=k(it,x([0,A.charCodeAt(G+13)],40));case 13:it=k(it,x([0,A.charCodeAt(G+12)],32));case 12:it=k(it,x([0,A.charCodeAt(G+11)],24));case 11:it=k(it,x([0,A.charCodeAt(G+10)],16));case 10:it=k(it,x([0,A.charCodeAt(G+9)],8));case 9:it=C(it=k(it,[0,A.charCodeAt(G+8)]),he),Dt=k(Dt,it=C(it=T(it,33),Wt));case 8:kt=k(kt,x([0,A.charCodeAt(G+7)],56));case 7:kt=k(kt,x([0,A.charCodeAt(G+6)],48));case 6:kt=k(kt,x([0,A.charCodeAt(G+5)],40));case 5:kt=k(kt,x([0,A.charCodeAt(G+4)],32));case 4:kt=k(kt,x([0,A.charCodeAt(G+3)],24));case 3:kt=k(kt,x([0,A.charCodeAt(G+2)],16));case 2:kt=k(kt,x([0,A.charCodeAt(G+1)],8));case 1:kt=C(kt=k(kt,[0,A.charCodeAt(G)]),Wt),Bt=k(Bt,kt=C(kt=T(kt,31),he))}return Bt=N(Bt=k(Bt,[0,A.length]),Dt=k(Dt,[0,A.length])),Dt=N(Dt,Bt),Bt=N(Bt=U(Bt),Dt=U(Dt)),Dt=N(Dt,Bt),("00000000"+(Bt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Bt[1]>>>0).toString(16)).slice(-8)+("00000000"+(Dt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Dt[1]>>>0).toString(16)).slice(-8)}function z(A){return parseInt(A)}function J(A){return parseFloat(A)}function Z(A,H){return typeof A=="number"&&isNaN(A)?H:A}function et(A){return A.reduce((function(H,G){return H+(G?1:0)}),0)}function ht(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 ut(A){return A&&typeof A=="object"&&"message"in A?A:{message:A}}function At(A){return typeof A!="function"}function Rt(A,H,G){var ot=Object.keys(A).filter((function(Bt){return!(function(Dt,kt){for(var it=0,Wt=Dt.length;it<Wt;++it)if(Dt[it]===kt)return!0;return!1})(G,Bt)})),Lt=d(ot,(function(Bt){return(function(Dt,kt){var it=new Promise((function(Wt){var he=Date.now();m(Dt.bind(null,kt),(function(){for(var ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];var de=Date.now()-he;if(!ee[0])return Wt((function(){return{error:ut(ee[1]),duration:de}}));var fe=ee[1];if(At(fe))return Wt((function(){return{value:fe,duration:de}}));Wt((function(){return new Promise((function(ae){var ze=Date.now();m(fe,(function(){for(var ye=[],be=0;be<arguments.length;be++)ye[be]=arguments[be];var an=de+Date.now()-ze;if(!ye[0])return ae({error:ut(ye[1]),duration:an});ae({value:ye[1],duration:an})}))}))}))}))}));return _(it),function(){return it.then((function(Wt){return Wt()}))}})(A[Bt],H)}));return _(Lt),function(){return(0,e.sH)(this,void 0,void 0,(function(){var Bt,Dt,kt,it;return(0,e.YH)(this,(function(Wt){switch(Wt.label){case 0:return[4,Lt];case 1:return[4,d(Wt.sent(),(function(he){var ee=he();return _(ee),ee}))];case 2:return Bt=Wt.sent(),[4,Promise.all(Bt)];case 3:for(Dt=Wt.sent(),kt={},it=0;it<ot.length;++it)kt[ot[it]]=Dt[it];return[2,kt]}}))}))}}function st(A,H){var G=function(ot){return At(ot)?H(ot):function(){var Lt=ot();return f(Lt)?Lt.then(H):H(Lt)}};return function(ot){var Lt=A(ot);return f(Lt)?Lt.then(G):G(Lt)}}function ft(){var A=window,H=navigator;return et(["MSCSSMatrix"in A,"msSetImmediate"in A,"msIndexedDB"in A,"msMaxTouchPoints"in H,"msPointerEnabled"in H])>=4}function gt(){var A=window,H=navigator;return et(["msWriteProfilerMark"in A,"MSStream"in A,"msLaunchUri"in H,"msSaveBlob"in H])>=3&&!ft()}function wt(){var A=window,H=navigator;return et(["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 et(["ApplePayError"in A,"CSSPrimitiveValue"in A,"Counter"in A,H.vendor.indexOf("Apple")===0,"getStorageUpdates"in H,"WebKitMediaKeys"in A])>=4}function l(){var A=window;return et(["safari"in A,!("DeviceMotionEvent"in A),!("ongestureend"in A),!("standalone"in navigator)])>=3}function S(){var A,H,G=window;return et(["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 D(){var A=document;return A.fullscreenElement||A.msFullscreenElement||A.mozFullScreenElement||A.webkitFullscreenElement||null}function W(){var A=wt(),H=S();if(!A&&!H)return!1;var G=window;return et(["onorientationchange"in G,"orientation"in G,A&&!("SharedWorker"in G),H&&/android/i.test(navigator.appVersion)])>=2}function q(A){var H=new Error(A);return H.name=A,H}function nt(A,H,G){var ot,Lt,Bt;return G===void 0&&(G=50),(0,e.sH)(this,void 0,void 0,(function(){var Dt,kt;return(0,e.YH)(this,(function(it){switch(it.label){case 0:Dt=document,it.label=1;case 1:return Dt.body?[3,3]:[4,a(G)];case 2:return it.sent(),[3,1];case 3:kt=Dt.createElement("iframe"),it.label=4;case 4:return it.trys.push([4,,10,11]),[4,new Promise((function(Wt,he){var ee=!1,oe=function(){ee=!0,Wt()};kt.onload=oe,kt.onerror=function(ae){ee=!0,he(ae)};var de=kt.style;de.setProperty("display","block","important"),de.position="absolute",de.top="0",de.left="0",de.visibility="hidden",H&&"srcdoc"in kt?kt.srcdoc=H:kt.src="about:blank",Dt.body.appendChild(kt);var fe=function(){var ae,ze;ee||(((ze=(ae=kt.contentWindow)===null||ae===void 0?void 0:ae.document)===null||ze===void 0?void 0:ze.readyState)==="complete"?oe():setTimeout(fe,10))};fe()}))];case 5:it.sent(),it.label=6;case 6:return!((Lt=(ot=kt.contentWindow)===null||ot===void 0?void 0:ot.document)===null||Lt===void 0)&&Lt.body?[3,8]:[4,a(G)];case 7:return it.sent(),[3,6];case 8:return[4,A(kt,kt.contentWindow)];case 9:return[2,it.sent()];case 10:return(Bt=kt.parentNode)===null||Bt===void 0||Bt.removeChild(kt),[7];case 11:return[2]}}))}))}function ct(A){for(var H=(function(Wt){for(var he,ee,oe="Unexpected syntax '".concat(Wt,"'"),de=/^\s*([a-z-]*)(.*)$/i.exec(Wt),fe=de[1]||void 0,ae={},ze=/([.:#][\w-]+|\[.+?\])/gi,ye=function(Ue,lr){ae[Ue]=ae[Ue]||[],ae[Ue].push(lr)};;){var be=ze.exec(de[2]);if(!be)break;var an=be[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=(he=Be[4])!==null&&he!==void 0?he:Be[5])!==null&&ee!==void 0?ee:"");break;default:throw new Error(oe)}}return[fe,ae]})(A),G=H[0],ot=H[1],Lt=document.createElement(G??"div"),Bt=0,Dt=Object.keys(ot);Bt<Dt.length;Bt++){var kt=Dt[Bt],it=ot[kt].join(" ");kt==="style"?K(Lt.style,it):Lt.setAttribute(kt,it)}return Lt}function K(A,H){for(var G=0,ot=H.split(";");G<ot.length;G++){var Lt=ot[G],Bt=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Lt);if(Bt){var Dt=Bt[1],kt=Bt[2],it=Bt[4];A.setProperty(Dt,kt,it||"")}}}var h=["monospace","sans-serif","serif"],b=["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 X,pt,St=2500;function Ht(){var A=this;return(function(){if(pt===void 0){var H=function(){var G=Kt();le(G)?pt=setTimeout(H,St):(X=G,pt=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 le(H=Kt())?X?[2,(0,e.fX)([],X,!0)]:D()?[4,(ot=document,(ot.exitFullscreen||ot.msExitFullscreen||ot.mozCancelFullScreen||ot.webkitExitFullscreen).call(ot))]:[3,2]:[3,2];case 1:G.sent(),H=Kt(),G.label=2;case 2:return le(H)||(X=H),[2,H]}var ot}))}))}}function Kt(){var A=screen;return[Z(J(A.availTop),null),Z(J(A.width)-J(A.availWidth)-Z(J(A.availLeft),0),null),Z(J(A.height)-J(A.availHeight)-Z(J(A.availTop),0),null),Z(J(A.availLeft),null)]}function le(A){for(var H=0;H<4;++H)if(A[H])return!1;return!0}function ge(A){var H;return(0,e.sH)(this,void 0,void 0,(function(){var G,ot,Lt,Bt,Dt,kt,it;return(0,e.YH)(this,(function(Wt){switch(Wt.label){case 0:for(G=document,ot=G.createElement("div"),Lt=new Array(A.length),Bt={},ve(ot),it=0;it<A.length;++it)(Dt=ct(A[it])).tagName==="DIALOG"&&Dt.show(),ve(kt=G.createElement("div")),kt.appendChild(Dt),ot.appendChild(kt),Lt[it]=Dt;Wt.label=1;case 1:return G.body?[3,3]:[4,a(50)];case 2:return Wt.sent(),[3,1];case 3:G.body.appendChild(ot);try{for(it=0;it<A.length;++it)Lt[it].offsetParent||(Bt[A[it]]=!0)}finally{(H=ot.parentNode)===null||H===void 0||H.removeChild(ot)}return[2,Bt]}}))}))}function ve(A){A.style.setProperty("display","block","important")}function Ie(A){return matchMedia("(inverted-colors: ".concat(A,")")).matches}function _e(A){return matchMedia("(forced-colors: ".concat(A,")")).matches}function Ee(A){return matchMedia("(prefers-contrast: ".concat(A,")")).matches}function Ve(A){return matchMedia("(prefers-reduced-motion: ".concat(A,")")).matches}function Oe(A){return matchMedia("(dynamic-range: ".concat(A,")")).matches}var g=Math,L=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"}]},lt={fonts:function(){return nt((function(A,H){var G=H.document,ot=G.body;ot.style.fontSize="48px";var Lt=G.createElement("div"),Bt={},Dt={},kt=function(ee){var oe=G.createElement("span"),de=oe.style;return de.position="absolute",de.top="0",de.left="0",de.fontFamily=ee,oe.textContent="mmMwWLliI0O&1",Lt.appendChild(oe),oe},it=h.map(kt),Wt=(function(){for(var ee={},oe=function(ae){ee[ae]=h.map((function(ze){return(function(ye,be){return kt("'".concat(ye,"',").concat(be))})(ae,ze)}))},de=0,fe=b;de<fe.length;de++)oe(fe[de]);return ee})();ot.appendChild(Lt);for(var he=0;he<h.length;he++)Bt[h[he]]=it[he].offsetWidth,Dt[h[he]]=it[he].offsetHeight;return b.filter((function(ee){return oe=Wt[ee],h.some((function(de,fe){return oe[fe].offsetWidth!==Bt[de]||oe[fe].offsetHeight!==Dt[de]}));var oe}))}))},domBlockers:function(A){var H=(A===void 0?{}:A).debug;return(0,e.sH)(this,void 0,void 0,(function(){var G,ot,Lt,Bt,Dt;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:return P()||W()?(it=atob,G={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(G),[4,ge((Dt=[]).concat.apply(Dt,ot.map((function(Wt){return G[Wt]}))))]):[2,void 0];case 1:return Lt=kt.sent(),H&&(function(Wt,he){for(var ee="DOM blockers debug:\n```",oe=0,de=Object.keys(Wt);oe<de.length;oe++){var fe=de[oe];ee+=`
12
- `.concat(fe,":");for(var ae=0,ze=Wt[fe];ae<ze.length;ae++){var ye=ze[ae];ee+=`
13
- `.concat(he[ye]?"🚫":"➡️"," ").concat(ye)}}console.log("".concat(ee,"\n```"))})(G,Lt),(Bt=ot.filter((function(Wt){var he=G[Wt];return et(he.map((function(ee){return Lt[ee]})))>.6*he.length}))).sort(),[2,Bt]}var it}))}))},fontPreferences:function(){return A===void 0&&(A=4e3),nt((function(H,G){var ot=G.document,Lt=ot.body,Bt=Lt.style;Bt.width="".concat(A,"px"),Bt.webkitTextSizeAdjust=Bt.textSizeAdjust="none",wt()?Lt.style.zoom="".concat(1/G.devicePixelRatio):P()&&(Lt.style.zoom="reset");var Dt=ot.createElement("div");return Dt.textContent=(0,e.fX)([],Array(A/20|0),!0).map((function(){return"word"})).join(" "),Lt.appendChild(Dt),(function(kt,it){for(var Wt={},he={},ee=0,oe=Object.keys(V);ee<oe.length;ee++){var de=oe[ee],fe=V[de],ae=fe[0],ze=ae===void 0?{}:ae,ye=fe[1],be=ye===void 0?"mmMwWLliI0fiflO&1":ye,an=kt.createElement("span");an.textContent=be,an.style.whiteSpace="nowrap";for(var Be=0,Ue=Object.keys(ze);Be<Ue.length;Be++){var lr=Ue[Be],Ge=ze[lr];Ge!==void 0&&(an.style[lr]=Ge)}Wt[de]=an,it.appendChild(kt.createElement("br")),it.appendChild(an)}for(var He=0,Yr=Object.keys(V);He<Yr.length;He++)he[de=Yr[He]]=Wt[de].getBoundingClientRect().width;return he})(ot,Lt)}),'<!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()&&!l()&&!(function(){var Wt=window;return et(["DOMRectList"in Wt,"RTCPeerConnectionIceEvent"in Wt,"SVGGeometryElement"in Wt,"ontransitioncancel"in Wt])>=3})())return-1;var G=new H(1,5e3,44100),ot=G.createOscillator();ot.type="triangle",ot.frequency.value=1e4;var Lt=G.createDynamicsCompressor();Lt.threshold.value=-50,Lt.knee.value=40,Lt.ratio.value=12,Lt.attack.value=0,Lt.release.value=.25,ot.connect(Lt),Lt.connect(G.destination),ot.start(0);var Bt=(function(Wt){var he=function(){};return[new Promise((function(ee,oe){var de=!1,fe=0,ae=0;Wt.oncomplete=function(be){return ee(be.renderedBuffer)};var ze=function(){setTimeout((function(){return oe(q("timeout"))}),Math.min(500,ae+5e3-Date.now()))},ye=function(){try{var be=Wt.startRendering();switch(f(be)&&_(be),Wt.state){case"running":ae=Date.now(),de&&ze();break;case"suspended":document.hidden||fe++,de&&fe>=3?oe(q("suspended")):setTimeout(ye,500)}}catch(an){oe(an)}};ye(),he=function(){de||(de=!0,ae>0&&ze())}})),he]})(G),Dt=Bt[0],kt=Bt[1],it=Dt.then((function(Wt){return(function(he){for(var ee=0,oe=0;oe<he.length;++oe)ee+=Math.abs(he[oe]);return ee})(Wt.getChannelData(0).subarray(4500))}),(function(Wt){if(Wt.name==="timeout"||Wt.name==="suspended")return-3;throw Wt}));return _(it),function(){return kt(),it}},screenFrame:function(){var A=this,H=Ht();return function(){return(0,e.sH)(A,void 0,void 0,(function(){var G,ot;return(0,e.YH)(this,(function(Lt){switch(Lt.label){case 0:return[4,H()];case 1:return G=Lt.sent(),[2,[(ot=function(Bt){return Bt===null?null:ht(Bt,10)})(G[0]),ot(G[1]),ot(G[2]),ot(G[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var A,H=navigator,G=[],ot=H.language||H.userLanguage||H.browserLanguage||H.systemLanguage;if(ot!==void 0&&G.push([ot]),Array.isArray(H.languages))wt()&&et([!("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 Lt=H.languages;Lt&&G.push(Lt.split(","))}return G},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Z(J(navigator.deviceMemory),void 0)},screenResolution:function(){var A=screen,H=function(ot){return Z(z(ot),null)},G=[H(A.width),H(A.height)];return G.sort().reverse(),G},hardwareConcurrency:function(){return Z(z(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 ot,Lt=(ot=new Date().getFullYear(),-Math.max(J(new Date(ot,0,1).getTimezoneOffset()),J(new Date(ot,6,1).getTimezoneOffset())));return"UTC".concat(Lt>=0?"+":"").concat(Math.abs(Lt))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!ft()&&!gt())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()&&!l()?(function(){if(navigator.platform==="iPad")return!0;var H=screen,G=H.width/H.height;return et(["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 ot=A[G];if(ot){for(var Lt=[],Bt=0;Bt<ot.length;++Bt){var Dt=ot[Bt];Lt.push({type:Dt.type,suffixes:Dt.suffixes})}H.push({name:ot.name,description:ot.description,mimeTypes:Lt})}}return H}},canvas:function(){var A,H,G=!1,ot=(function(){var kt=document.createElement("canvas");return kt.width=1,kt.height=1,[kt,kt.getContext("2d")]})(),Lt=ot[0],Bt=ot[1];if((function(kt,it){return!(!it||!kt.toDataURL)})(Lt,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,it){kt.width=240,kt.height=60,it.textBaseline="alphabetic",it.fillStyle="#f60",it.fillRect(100,1,62,20),it.fillStyle="#069",it.font='11pt "Times New Roman"';var Wt="Cwm fjordbank gly ".concat("😃");it.fillText(Wt,2,15),it.fillStyle="rgba(102, 204, 0, 0.2)",it.font="18pt Arial",it.fillText(Wt,4,45)})(Lt,Bt);var Dt=j(Lt);Dt!==j(Lt)?A=H="unstable":(H=Dt,(function(kt,it){kt.width=122,kt.height=110,it.globalCompositeOperation="multiply";for(var Wt=0,he=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Wt<he.length;Wt++){var ee=he[Wt],oe=ee[0],de=ee[1],fe=ee[2];it.fillStyle=oe,it.beginPath(),it.arc(de,fe,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")})(Lt,Bt),A=j(Lt))}else A=H="";return{winding:G,geometry:A,text:H}},touchSupport:function(){var A,H=navigator,G=0;H.maxTouchPoints!==void 0?G=z(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 ot=G[H],Lt=window[ot];Lt&&typeof Lt=="object"&&A.push(ot)}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!!Ie("inverted")||!Ie("none")&&void 0},forcedColors:function(){return!!_e("active")||!_e("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 Ee("no-preference")?0:Ee("high")||Ee("more")?1:Ee("low")||Ee("less")?-1:Ee("forced")?10:void 0},reducedMotion:function(){return!!Ve("reduce")||!Ve("no-preference")&&void 0},hdr:function(){return!!Oe("high")||!Oe("standard")&&void 0},math:function(){var A,H=g.acos||L,G=g.acosh||L,ot=g.asin||L,Lt=g.asinh||L,Bt=g.atanh||L,Dt=g.atan||L,kt=g.sin||L,it=g.sinh||L,Wt=g.cos||L,he=g.cosh||L,ee=g.tan||L,oe=g.tanh||L,de=g.exp||L,fe=g.expm1||L,ae=g.log1p||L;return{acos:H(.12312423423423424),acosh:G(1e308),acoshPf:(A=1e154,g.log(A+g.sqrt(A*A-1))),asin:ot(.12312423423423424),asinh:Lt(1),asinhPf:g.log(1+g.sqrt(2)),atanh:Bt(.5),atanhPf:g.log(3)/2,atan:Dt(.5),sin:kt(-1e300),sinh:it(1),sinhPf:g.exp(1)-1/g.exp(1)/2,cos:Wt(10.000000000123),cosh:he(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:de(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 ot=G.getExtension("WEBGL_debug_renderer_info");if(ot)return{vendor:(G.getParameter(ot.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(G.getParameter(ot.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?(ot=G,(0,e.Cl)({name:ot.name,message:ot.message,stack:(Lt=ot.stack)===null||Lt===void 0?void 0:Lt.split(`
14
- `)},ot)):G;var ot,Lt}),2)}function Ct(A){return Y((function(H){for(var G="",ot=0,Lt=Object.keys(H).sort();ot<Lt.length;ot++){var Bt=Lt[ot],Dt=H[Bt],kt=Dt.error?"error":JSON.stringify(Dt.value);G+="".concat(G?"|":"").concat(Bt.replace(/([:|\\])/g,"\\$1"),":").concat(kt)}return G})(A))}function zt(A){return A===void 0&&(A=50),(function(H,G){G===void 0&&(G=1/0);var ot=window.requestIdleCallback;return ot?new Promise((function(Lt){return ot.call(window,(function(){return Lt()}),{timeout:G})})):a(Math.min(H,G))})(A,2*A)}function te(A,H){var G=Date.now();return{get:function(ot){return(0,e.sH)(this,void 0,void 0,(function(){var Lt,Bt,Dt;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:return Lt=Date.now(),[4,A()];case 1:return Bt=kt.sent(),Dt=(function(it){var Wt,he=(function(ee){var oe=(function(fe){if(W())return .4;if(P())return l()?.5:.3;var ae=fe.platform.value||"";return/^Win/.test(ae)?.6:/^Mac/.test(ae)?.5:.7})(ee),de=(function(fe){return ht(.99+.01*fe,1e-4)})(oe);return{score:oe,comment:yt.replace(/\$/g,"".concat(de))}})(it);return{get visitorId(){return Wt===void 0&&(Wt=Ct(this.components)),Wt},set visitorId(ee){Wt=ee},confidence:he,components:it,version:u}})(Bt),(H||ot?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Dt.version,`
5
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[$2]:"No signature verification implementation could be found.",[j2]:"No key generation implementation could be found.",[K2]:"No signing implementation could be found.",[W2]:"No key export implementation could be found.",[Xh]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[wp]:"Transaction processing left an account with an outstanding borrowed reference",[op]:"Account in use",[ip]:"Account loaded twice",[sp]:"Attempt to debit an account but found no record of a prior credit.",[Ip]:"Transaction loads an address table account that doesn't exist",[fp]:"This transaction has already been processed",[lp]:"Blockhash not found",[dp]:"Loader call chain is too deep",[yp]:"Transactions are currently disabled due to cluster maintenance",[Mp]:"Transaction contains a duplicate instruction ($index) that is not allowed",[cp]:"Insufficient funds for fee",[Bp]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[up]:"This account may not be used to pay transaction fees",[pp]:"Transaction contains an invalid account reference",[Np]:"Transaction loads an address table account with invalid data",[Tp]:"Transaction address table lookup uses an invalid index",[Op]:"Transaction loads an address table account with an invalid owner",[Dp]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[gp]:"This program may not be used for executing instructions",[xp]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Rp]:"Transaction loads a writable account that cannot be written",[kp]:"Transaction exceeded max loaded accounts data size cap",[hp]:"Transaction requires a fee but has no signature present",[ap]:"Attempt to load a program that does not exist",[Pp]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Up]:"ResanitizationNeeded",[vp]:"Transaction failed to sanitize accounts offsets correctly",[mp]:"Transaction did not pass signature verification",[Sp]:"Transaction locked too many accounts",[Fp]:"Sum of account balances before and after transaction do not match",[rp]:"The transaction failed with the error `$errorName`",[Ep]:"Transaction version is unsupported",[Ap]:"Transaction would exceed account data limit within the block",[Cp]:"Transaction would exceed total account data limit",[bp]:"Transaction would exceed max account limit within the block",[_p]:"Transaction would exceed max Block Cost Limit",[Lp]:"Transaction would exceed max Vote Cost Limit",[Y5]:"Attempted to sign a transaction with an address that is not a signer for it",[j5]:"Transaction is missing an address at index: $index.",[q5]:"Transaction has no expected signers therefore it cannot be encoded",[ep]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[D5]:"Transaction does not have a blockhash lifetime",[U5]:"Transaction is not a durable nonce transaction",[F5]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[V5]:"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",[H5]:"No fee payer set in CompiledTransaction",[G5]:"Could not find program address at index $index",[J5]:"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",[Q5]:"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",[K5]:"Transaction is missing a fee payer.",[W5]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Z5]:"Transaction first instruction is not advance nonce account instruction.",[z5]:"Transaction with no instructions cannot be durable nonce transaction.",[B5]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[k5]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[X5]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[$5]:"Transaction is missing signatures for addresses: $addresses.",[P5]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[tp]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[np]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},cr="i",Jn="t";function M6(e,t={}){const n=C6[e];if(n.length===0)return"";let r;function c(l){if(r[Jn]===2){const v=n.slice(r[cr]+1,l);i.push(v in t?`${t[v]}`:`$${v}`)}else r[Jn]===1&&i.push(n.slice(r[cr],l))}const i=[];return n.split("").forEach((l,v)=>{if(v===0){r={[cr]:0,[Jn]:n[0]==="\\"?0:n[0]==="$"?2:1};return}let d;switch(r[Jn]){case 0:d={[cr]:v,[Jn]:1};break;case 1:l==="\\"?d={[cr]:v,[Jn]:0}:l==="$"&&(d={[cr]:v,[Jn]:2});break;case 2:l==="\\"?d={[cr]:v,[Jn]:0}:l==="$"?d={[cr]:v,[Jn]:2}:l.match(/\w/)||(d={[cr]:v,[Jn]:1});break}d&&(r!==d&&c(v),r=d)}),c(),i.join("")}function B6(e,t={}){if(process.env.NODE_ENV!=="production")return M6(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${L6(t)}'`),`${n}\``}}var io=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,r;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([i,l])=>{i==="cause"?r={cause:l.value}:(n===void 0&&(n={__code:e}),Object.defineProperty(n,i,l))});const c=B6(e,n);super(c,r),this.context=Object.freeze(n===void 0?{__code:e}:n),this.name="SolanaError"}};function k6(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function D6(e){return Object.freeze({...e,encode:t=>{const n=new Uint8Array(k6(t,e));return e.write(t,n,0),n}})}function U6(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function so(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function P6(e,t){if(so(e)!==so(t))throw new io(n0);if(so(e)&&so(t)&&e.fixedSize!==t.fixedSize)throw new io(r0,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!so(e)&&!so(t)&&e.maxSize!==t.maxSize)throw new io(o0,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function F6(e,t,n=0){if(t.length-n<=0)throw new io(e0,{codecDescription:e})}function V6(e,t,n,r=0){const c=n.length-r;if(c<t)throw new io(t0,{bytesLength:c,codecDescription:e,expected:t})}function G6(e,t,n){const r=e.byteOffset+(t??0),c=n??e.byteLength;let i;return typeof SharedArrayBuffer>"u"?i=e.buffer:e.buffer instanceof SharedArrayBuffer?(i=new ArrayBuffer(e.length),new Uint8Array(i).set(new Uint8Array(e))):i=e.buffer,(r===0||r===-e.byteLength)&&c===e.byteLength?i:i.slice(r,r+c)}function H6(e,t,n,r){if(r<t||r>n)throw new io(i0,{codecDescription:e,max:n,min:t,value:r})}function a0(e){return e?.endian!==1}function $6(e){return D6({fixedSize:e.size,write(t,n,r){e.range&&H6(e.name,e.range[0],e.range[1],t);const c=new ArrayBuffer(e.size);return e.set(new DataView(c),t,a0(e.config)),n.set(new Uint8Array(c),r),r+e.size}})}function j6(e){return U6({fixedSize:e.size,read(t,n=0){F6(e.name,t,n),V6(e.name,e.size,t,n);const r=new DataView(G6(t,n,e.size));return[e.get(r,a0(e.config)),n+e.size]}})}var K6=(e={})=>$6({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),W6=(e={})=>j6({config:e,get:(t,n)=>t.getBigUint64(0,n),name:"u64",size:8}),z6=(e={})=>P6(K6(e),W6(e));class Z6 extends TypeError{constructor(t,n){let r;const{message:c,explanation:i,...l}=t,{path:v}=t,d=v.length===0?c:`At path: ${v.join(".")} -- ${c}`;super(i??d),i!=null&&(this.cause=d),Object.assign(this,l),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}}function Y6(e){return Fo(e)&&typeof e[Symbol.iterator]=="function"}function Fo(e){return typeof e=="object"&&e!=null}function $i(e){return Fo(e)&&!Array.isArray(e)}function zn(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function q6(e){const{done:t,value:n}=e.next();return t?void 0:n}function X6(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:c,branch:i}=t,{type:l}=n,{refinement:v,message:d=`Expected a value of type \`${l}\`${v?` with refinement \`${v}\``:""}, but received: \`${zn(r)}\``}=e;return{value:r,type:l,refinement:v,key:c[c.length-1],path:c,branch:i,...e,message:d}}function*c0(e,t,n,r){Y6(e)||(e=[e]);for(const c of e){const i=X6(c,t,n,r);i&&(yield i)}}function*ha(e,t,n={}){const{path:r=[],branch:c=[e],coerce:i=!1,mask:l=!1}=n,v={path:r,branch:c,mask:l};i&&(e=t.coercer(e,v));let d="valid";for(const y of t.validator(e,v))y.explanation=n.message,d="not_valid",yield[y,void 0];for(let[y,A,O]of t.entries(e,v)){const S=ha(A,O,{path:y===void 0?r:[...r,y],branch:y===void 0?c:[...c,A],coerce:i,mask:l,message:n.message});for(const I of S)I[0]?(d=I[0].refinement!=null?"not_refined":"not_valid",yield[I[0],void 0]):i&&(A=I[1],y===void 0?e=A:e instanceof Map?e.set(y,A):e instanceof Set?e.add(A):Fo(e)&&(A!==void 0||y in e)&&(e[y]=A))}if(d!=="not_valid")for(const y of t.refiner(e,v))y.explanation=n.message,d="not_refined",yield[y,void 0];d==="valid"&&(yield[void 0,e])}let Qn=class{constructor(t){const{type:n,schema:r,validator:c,refiner:i,coercer:l=d=>d,entries:v=function*(){}}=t;this.type=n,this.schema=r,this.entries=v,this.coercer=l,c?this.validator=(d,y)=>{const A=c(d,y);return c0(A,y,this,d)}:this.validator=()=>[],i?this.refiner=(d,y)=>{const A=i(d,y);return c0(A,y,this,d)}:this.refiner=()=>[]}assert(t,n){return J6(t,this,n)}create(t,n){return Vo(t,this,n)}is(t){return u0(t,this)}mask(t,n){return Q6(t,this,n)}validate(t,n={}){return Go(t,this,n)}};function J6(e,t,n){const r=Go(e,t,{message:n});if(r[0])throw r[0]}function Vo(e,t,n){const r=Go(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function Q6(e,t,n){const r=Go(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function u0(e,t){return!Go(e,t)[0]}function Go(e,t,n={}){const r=ha(e,t,n),c=q6(r);return c[0]?[new Z6(c[0],function*(){for(const l of r)l[0]&&(yield l[0])}),void 0]:[void 0,c[1]]}function Pr(e,t){return new Qn({type:e,schema:null,validator:t})}function e4(){return Pr("any",()=>!0)}function Je(e){return new Qn({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${zn(t)}`}})}function er(){return Pr("boolean",e=>typeof e=="boolean")}function pa(e){return Pr("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${zn(t)}`)}function Ut(e){const t=zn(e),n=typeof e;return new Qn({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${t}\`, but received: ${zn(r)}`}})}function t4(){return Pr("never",()=>!1)}function qe(e){return new Qn({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}function Ie(){return Pr("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${zn(e)}`)}function nt(e){return new Qn({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function f0(e,t){return new Qn({type:"record",schema:null,*entries(n){if(Fo(n))for(const r in n){const c=n[r];yield[r,r,e],yield[r,c,t]}},validator(n){return $i(n)||`Expected an object, but received: ${zn(n)}`},coercer(n){return $i(n)?{...n}:n}})}function Ze(){return Pr("string",e=>typeof e=="string"||`Expected a string, but received: ${zn(e)}`)}function ma(e){const t=t4();return new Qn({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(e.length,n.length);for(let c=0;c<r;c++)yield[c,n[c],e[c]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${zn(n)}`},coercer(n){return Array.isArray(n)?n.slice():n}})}function $e(e){const t=Object.keys(e);return new Qn({type:"type",schema:e,*entries(n){if(Fo(n))for(const r of t)yield[r,n[r],e[r]]},validator(n){return $i(n)||`Expected an object, but received: ${zn(n)}`},coercer(n){return $i(n)?{...n}:n}})}function Tn(e){const t=e.map(n=>n.type).join(" | ");return new Qn({type:"union",schema:null,coercer(n,r){for(const c of e){const[i,l]=c.validate(n,{coerce:!0,mask:r.mask});if(!i)return l}return n},validator(n,r){const c=[];for(const i of e){const[...l]=ha(n,i,r),[v]=l;if(v[0])for(const[d]of l)d&&c.push(d);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${zn(n)}`,...c]}})}function ao(){return Pr("unknown",()=>!0)}function Ho(e,t,n){return new Qn({...e,coercer:(r,c)=>u0(r,t)?e.coercer(n(r,c),c):e.coercer(r,c)})}var ji,n4=new Uint8Array(16);function l0(){if(!ji&&(ji=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ji))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ji(n4)}const r4=/^(?:[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 Ki(e){return typeof e=="string"&&r4.test(e)}for(var vn=[],ga=0;ga<256;++ga)vn.push((ga+256).toString(16).substr(1));function Wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(vn[e[t+0]]+vn[e[t+1]]+vn[e[t+2]]+vn[e[t+3]]+"-"+vn[e[t+4]]+vn[e[t+5]]+"-"+vn[e[t+6]]+vn[e[t+7]]+"-"+vn[e[t+8]]+vn[e[t+9]]+"-"+vn[e[t+10]]+vn[e[t+11]]+vn[e[t+12]]+vn[e[t+13]]+vn[e[t+14]]+vn[e[t+15]]).toLowerCase();if(!Ki(n))throw TypeError("Stringified UUID is invalid");return n}var d0,va,ya=0,wa=0;function o4(e,t,n){var r=t&&n||0,c=t||new Array(16);e=e||{};var i=e.node||d0,l=e.clockseq!==void 0?e.clockseq:va;if(i==null||l==null){var v=e.random||(e.rng||l0)();i==null&&(i=d0=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]),l==null&&(l=va=(v[6]<<8|v[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),y=e.nsecs!==void 0?e.nsecs:wa+1,A=d-ya+(y-wa)/1e4;if(A<0&&e.clockseq===void 0&&(l=l+1&16383),(A<0||d>ya)&&e.nsecs===void 0&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ya=d,wa=y,va=l,d+=122192928e5;var O=((d&268435455)*1e4+y)%4294967296;c[r++]=O>>>24&255,c[r++]=O>>>16&255,c[r++]=O>>>8&255,c[r++]=O&255;var S=d/4294967296*1e4&268435455;c[r++]=S>>>8&255,c[r++]=S&255,c[r++]=S>>>24&15|16,c[r++]=S>>>16&255,c[r++]=l>>>8|128,c[r++]=l&255;for(var I=0;I<6;++I)c[r+I]=i[I];return t||Wi(c)}function h0(e){if(!Ki(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.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 i4(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var s4="6ba7b810-9dad-11d1-80b4-00c04fd430c8",a4="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function p0(e,t,n){function r(c,i,l,v){if(typeof c=="string"&&(c=i4(c)),typeof i=="string"&&(i=h0(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+c.length);if(d.set(i),d.set(c,i.length),d=n(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){v=v||0;for(var y=0;y<16;++y)l[v+y]=d[y];return l}return Wi(d)}try{r.name=e}catch{}return r.DNS=s4,r.URL=a4,r}function c4(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return u4(f4(l4(e),e.length*8))}function u4(e){for(var t=[],n=e.length*32,r="0123456789abcdef",c=0;c<n;c+=8){var i=e[c>>5]>>>c%32&255,l=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(l)}return t}function m0(e){return(e+64>>>9<<4)+14+1}function f4(e,t){e[t>>5]|=128<<t%32,e[m0(t)-1]=t;for(var n=1732584193,r=-271733879,c=-1732584194,i=271733878,l=0;l<e.length;l+=16){var v=n,d=r,y=c,A=i;n=Rn(n,r,c,i,e[l],7,-680876936),i=Rn(i,n,r,c,e[l+1],12,-389564586),c=Rn(c,i,n,r,e[l+2],17,606105819),r=Rn(r,c,i,n,e[l+3],22,-1044525330),n=Rn(n,r,c,i,e[l+4],7,-176418897),i=Rn(i,n,r,c,e[l+5],12,1200080426),c=Rn(c,i,n,r,e[l+6],17,-1473231341),r=Rn(r,c,i,n,e[l+7],22,-45705983),n=Rn(n,r,c,i,e[l+8],7,1770035416),i=Rn(i,n,r,c,e[l+9],12,-1958414417),c=Rn(c,i,n,r,e[l+10],17,-42063),r=Rn(r,c,i,n,e[l+11],22,-1990404162),n=Rn(n,r,c,i,e[l+12],7,1804603682),i=Rn(i,n,r,c,e[l+13],12,-40341101),c=Rn(c,i,n,r,e[l+14],17,-1502002290),r=Rn(r,c,i,n,e[l+15],22,1236535329),n=bn(n,r,c,i,e[l+1],5,-165796510),i=bn(i,n,r,c,e[l+6],9,-1069501632),c=bn(c,i,n,r,e[l+11],14,643717713),r=bn(r,c,i,n,e[l],20,-373897302),n=bn(n,r,c,i,e[l+5],5,-701558691),i=bn(i,n,r,c,e[l+10],9,38016083),c=bn(c,i,n,r,e[l+15],14,-660478335),r=bn(r,c,i,n,e[l+4],20,-405537848),n=bn(n,r,c,i,e[l+9],5,568446438),i=bn(i,n,r,c,e[l+14],9,-1019803690),c=bn(c,i,n,r,e[l+3],14,-187363961),r=bn(r,c,i,n,e[l+8],20,1163531501),n=bn(n,r,c,i,e[l+13],5,-1444681467),i=bn(i,n,r,c,e[l+2],9,-51403784),c=bn(c,i,n,r,e[l+7],14,1735328473),r=bn(r,c,i,n,e[l+12],20,-1926607734),n=An(n,r,c,i,e[l+5],4,-378558),i=An(i,n,r,c,e[l+8],11,-2022574463),c=An(c,i,n,r,e[l+11],16,1839030562),r=An(r,c,i,n,e[l+14],23,-35309556),n=An(n,r,c,i,e[l+1],4,-1530992060),i=An(i,n,r,c,e[l+4],11,1272893353),c=An(c,i,n,r,e[l+7],16,-155497632),r=An(r,c,i,n,e[l+10],23,-1094730640),n=An(n,r,c,i,e[l+13],4,681279174),i=An(i,n,r,c,e[l],11,-358537222),c=An(c,i,n,r,e[l+3],16,-722521979),r=An(r,c,i,n,e[l+6],23,76029189),n=An(n,r,c,i,e[l+9],4,-640364487),i=An(i,n,r,c,e[l+12],11,-421815835),c=An(c,i,n,r,e[l+15],16,530742520),r=An(r,c,i,n,e[l+2],23,-995338651),n=Sn(n,r,c,i,e[l],6,-198630844),i=Sn(i,n,r,c,e[l+7],10,1126891415),c=Sn(c,i,n,r,e[l+14],15,-1416354905),r=Sn(r,c,i,n,e[l+5],21,-57434055),n=Sn(n,r,c,i,e[l+12],6,1700485571),i=Sn(i,n,r,c,e[l+3],10,-1894986606),c=Sn(c,i,n,r,e[l+10],15,-1051523),r=Sn(r,c,i,n,e[l+1],21,-2054922799),n=Sn(n,r,c,i,e[l+8],6,1873313359),i=Sn(i,n,r,c,e[l+15],10,-30611744),c=Sn(c,i,n,r,e[l+6],15,-1560198380),r=Sn(r,c,i,n,e[l+13],21,1309151649),n=Sn(n,r,c,i,e[l+4],6,-145523070),i=Sn(i,n,r,c,e[l+11],10,-1120210379),c=Sn(c,i,n,r,e[l+2],15,718787259),r=Sn(r,c,i,n,e[l+9],21,-343485551),n=Er(n,v),r=Er(r,d),c=Er(c,y),i=Er(i,A)}return[n,r,c,i]}function l4(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(m0(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function Er(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function d4(e,t){return e<<t|e>>>32-t}function zi(e,t,n,r,c,i){return Er(d4(Er(Er(t,e),Er(r,i)),c),n)}function Rn(e,t,n,r,c,i,l){return zi(t&n|~t&r,e,t,c,i,l)}function bn(e,t,n,r,c,i,l){return zi(t&r|n&~r,e,t,c,i,l)}function An(e,t,n,r,c,i,l){return zi(t^n^r,e,t,c,i,l)}function Sn(e,t,n,r,c,i,l){return zi(n^(t|~r),e,t,c,i,l)}var h4=p0("v3",48,c4);function p4(e,t,n){e=e||{};var r=e.random||(e.rng||l0)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var c=0;c<16;++c)t[n+c]=r[c];return t}return Wi(r)}function m4(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function _a(e,t){return e<<t|e>>>32-t}function g4(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var c=0;c<r.length;++c)e.push(r.charCodeAt(c))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,l=Math.ceil(i/16),v=new Array(l),d=0;d<l;++d){for(var y=new Uint32Array(16),A=0;A<16;++A)y[A]=e[d*64+A*4]<<24|e[d*64+A*4+1]<<16|e[d*64+A*4+2]<<8|e[d*64+A*4+3];v[d]=y}v[l-1][14]=(e.length-1)*8/Math.pow(2,32),v[l-1][14]=Math.floor(v[l-1][14]),v[l-1][15]=(e.length-1)*8&4294967295;for(var O=0;O<l;++O){for(var S=new Uint32Array(80),I=0;I<16;++I)S[I]=v[O][I];for(var k=16;k<80;++k)S[k]=_a(S[k-3]^S[k-8]^S[k-14]^S[k-16],1);for(var C=n[0],V=n[1],j=n[2],J=n[3],W=n[4],se=0;se<80;++se){var ue=Math.floor(se/20),oe=_a(C,5)+m4(ue,V,j,J)+W+t[ue]+S[se]>>>0;W=J,J=j,j=_a(V,30)>>>0,V=C,C=oe}n[0]=n[0]+C>>>0,n[1]=n[1]+V>>>0,n[2]=n[2]+j>>>0,n[3]=n[3]+J>>>0,n[4]=n[4]+W>>>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 v4=p0("v5",80,g4);const y4="00000000-0000-0000-0000-000000000000";function w4(e){if(!Ki(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const g0=Hs(Object.freeze(Object.defineProperty({__proto__:null,NIL:y4,parse:h0,stringify:Wi,v1:o4,v3:h4,v4:p4,v5:v4,validate:Ki,version:w4},Symbol.toStringTag,{value:"Module"})));var Ea,v0;function _4(){if(v0)return Ea;v0=1;const e=g0.v4;return Ea=function(n,r,c,i){if(typeof n!="string")throw new TypeError(n+" must be a string");i=i||{};const l=typeof i.version=="number"?i.version:2;if(l!==1&&l!==2)throw new TypeError(l+" must be 1 or 2");const v={method:n};if(l===2&&(v.jsonrpc="2.0"),r){if(typeof r!="object"&&!Array.isArray(r))throw new TypeError(r+" must be an object, array or omitted");v.params=r}if(typeof c>"u"){const d=typeof i.generator=="function"?i.generator:function(){return e()};v.id=d(v,i)}else l===2&&c===null?i.notificationIdNull&&(v.id=null):v.id=c;return v},Ea}var Ra,y0;function E4(){if(y0)return Ra;y0=1;const e=g0.v4,t=_4(),n=function(r,c){if(!(this instanceof n))return new n(r,c);c||(c={}),this.options={reviver:typeof c.reviver<"u"?c.reviver:null,replacer:typeof c.replacer<"u"?c.replacer:null,generator:typeof c.generator<"u"?c.generator:function(){return e()},version:typeof c.version<"u"?c.version:2,notificationIdNull:typeof c.notificationIdNull=="boolean"?c.notificationIdNull:!1},this.callServer=r};return Ra=n,n.prototype.request=function(r,c,i,l){const v=this;let d=null;const y=Array.isArray(r)&&typeof c=="function";if(this.options.version===1&&y)throw new TypeError("JSON-RPC 1.0 does not support batching");if(y||!y&&r&&typeof r=="object"&&typeof c=="function")l=c,d=r;else{typeof i=="function"&&(l=i,i=void 0);const S=typeof l=="function";try{d=t(r,c,i,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(I){if(S){l(I);return}throw I}if(!S)return d}let O;try{O=JSON.stringify(d,this.options.replacer)}catch(S){l(S);return}return this.callServer(O,function(S,I){v._parseResponse(S,I,l)}),d},n.prototype._parseResponse=function(r,c,i){if(r){i(r);return}if(!c){i();return}let l;try{l=JSON.parse(c,this.options.reviver)}catch(v){i(v);return}if(i.length===3)if(Array.isArray(l)){const v=function(y){return typeof y.error<"u"},d=function(y){return!v(y)};i(null,l.filter(v),l.filter(d));return}else{i(null,l.error,l.result);return}i(null,l)},Ra}E4();var ba={exports:{}},w0;function R4(){return w0||(w0=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function c(d,y,A){this.fn=d,this.context=y,this.once=A||!1}function i(d,y,A,O,S){if(typeof A!="function")throw new TypeError("The listener must be a function");var I=new c(A,O||d,S),k=n?n+y:y;return d._events[k]?d._events[k].fn?d._events[k]=[d._events[k],I]:d._events[k].push(I):(d._events[k]=I,d._eventsCount++),d}function l(d,y){--d._eventsCount===0?d._events=new r:delete d._events[y]}function v(){this._events=new r,this._eventsCount=0}v.prototype.eventNames=function(){var y=[],A,O;if(this._eventsCount===0)return y;for(O in A=this._events)t.call(A,O)&&y.push(n?O.slice(1):O);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(A)):y},v.prototype.listeners=function(y){var A=n?n+y:y,O=this._events[A];if(!O)return[];if(O.fn)return[O.fn];for(var S=0,I=O.length,k=new Array(I);S<I;S++)k[S]=O[S].fn;return k},v.prototype.listenerCount=function(y){var A=n?n+y:y,O=this._events[A];return O?O.fn?1:O.length:0},v.prototype.emit=function(y,A,O,S,I,k){var C=n?n+y:y;if(!this._events[C])return!1;var V=this._events[C],j=arguments.length,J,W;if(V.fn){switch(V.once&&this.removeListener(y,V.fn,void 0,!0),j){case 1:return V.fn.call(V.context),!0;case 2:return V.fn.call(V.context,A),!0;case 3:return V.fn.call(V.context,A,O),!0;case 4:return V.fn.call(V.context,A,O,S),!0;case 5:return V.fn.call(V.context,A,O,S,I),!0;case 6:return V.fn.call(V.context,A,O,S,I,k),!0}for(W=1,J=new Array(j-1);W<j;W++)J[W-1]=arguments[W];V.fn.apply(V.context,J)}else{var se=V.length,ue;for(W=0;W<se;W++)switch(V[W].once&&this.removeListener(y,V[W].fn,void 0,!0),j){case 1:V[W].fn.call(V[W].context);break;case 2:V[W].fn.call(V[W].context,A);break;case 3:V[W].fn.call(V[W].context,A,O);break;case 4:V[W].fn.call(V[W].context,A,O,S);break;default:if(!J)for(ue=1,J=new Array(j-1);ue<j;ue++)J[ue-1]=arguments[ue];V[W].fn.apply(V[W].context,J)}}return!0},v.prototype.on=function(y,A,O){return i(this,y,A,O,!1)},v.prototype.once=function(y,A,O){return i(this,y,A,O,!0)},v.prototype.removeListener=function(y,A,O,S){var I=n?n+y:y;if(!this._events[I])return this;if(!A)return l(this,I),this;var k=this._events[I];if(k.fn)k.fn===A&&(!S||k.once)&&(!O||k.context===O)&&l(this,I);else{for(var C=0,V=[],j=k.length;C<j;C++)(k[C].fn!==A||S&&!k[C].once||O&&k[C].context!==O)&&V.push(k[C]);V.length?this._events[I]=V.length===1?V[0]:V:l(this,I)}return this},v.prototype.removeAllListeners=function(y){var A;return y?(A=n?n+y:y,this._events[A]&&l(this,A)):(this._events=new r,this._eventsCount=0),this},v.prototype.off=v.prototype.removeListener,v.prototype.addListener=v.prototype.on,v.prefixed=n,v.EventEmitter=v,e.exports=v})(ba)),ba.exports}R4();class _0 extends su{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,ru(t);const r=zs(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 c=this.blockLen,i=new Uint8Array(c);i.set(r.length>c?t.create().update(r).digest():r);for(let l=0;l<i.length;l++)i[l]^=54;this.iHash.update(i),this.oHash=t.create();for(let l=0;l<i.length;l++)i[l]^=106;this.oHash.update(i),eo(i)}update(t){return Oi(this),this.iHash.update(t),this}digestInto(t){Oi(this),Lr(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:r,finished:c,destroyed:i,blockLen:l,outputLen:v}=this;return t=t,t.finished=c,t.destroyed=i,t.blockLen=l,t.outputLen=v,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const E0=(e,t,n)=>new _0(e,t).update(n).digest();E0.create=(e,t)=>new _0(e,t);const R0=(e,t)=>(e+(e>=0?t:-t)/b0)/t;function b4(e,t,n){const[[r,c],[i,l]]=t,v=R0(l*e,n),d=R0(-c*e,n);let y=e-v*r-d*i,A=-v*c-d*l;const O=y<fr,S=A<fr;O&&(y=-y),S&&(A=-A);const I=Do(Math.ceil(vu(n)/2))+co;if(y<fr||y>=I||A<fr||A>=I)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:O,k1:y,k2neg:S,k2:A}}function Aa(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Sa(e,t){const n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return Mr(n.lowS,"lowS"),Mr(n.prehash,"prehash"),n.format!==void 0&&Aa(n.format),n}class A4 extends Error{constructor(t=""){super(t)}}const ur={Err:A4,_tlv:{encode:(e,t)=>{const{Err:n}=ur;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,c=Ci(r);if(c.length/2&128)throw new n("tlv.encode: long form length too big");const i=r>127?Ci(c.length/2|128):"";return Ci(e)+i+c+t},decode(e,t){const{Err:n}=ur;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const c=t[r++],i=!!(c&128);let l=0;if(!i)l=c;else{const d=c&127;if(!d)throw new n("tlv.decode(long): indefinite length not supported");if(d>4)throw new n("tlv.decode(long): byte length is too big");const y=t.subarray(r,r+d);if(y.length!==d)throw new n("tlv.decode: length bytes not complete");if(y[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const A of y)l=l<<8|A;if(r+=d,l<128)throw new n("tlv.decode(long): not minimal encoding")}const v=t.subarray(r,r+l);if(v.length!==l)throw new n("tlv.decode: wrong value length");return{v,l:t.subarray(r+l)}}},_int:{encode(e){const{Err:t}=ur;if(e<fr)throw new t("integer: negative integers are not allowed");let n=Ci(e);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(e){const{Err:t}=ur;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Mi(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=ur,c=jt("signature",e),{v:i,l}=r.decode(48,c);if(l.length)throw new t("invalid signature: left bytes after parsing");const{v,l:d}=r.decode(2,i),{v:y,l:A}=r.decode(2,d);if(A.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(v),s:n.decode(y)}},hexFromSig(e){const{_tlv:t,_int:n}=ur,r=t.encode(2,n.encode(e.r)),c=t.encode(2,n.encode(e.s)),i=r+c;return t.encode(48,i)}},fr=BigInt(0),co=BigInt(1),b0=BigInt(2),Zi=BigInt(3),S4=BigInt(4);function uo(e,t){const{BYTES:n}=e;let r;if(typeof t=="bigint")r=t;else{let c=jt("private key",t);try{r=e.fromBytes(c)}catch{throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function I4(e,t={}){const n=Pu("weierstrass",e,t),{Fp:r,Fn:c}=n;let i=n.CURVE;const{h:l,n:v}=i;Uo(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:d}=t;if(d&&(!r.is0(i.a)||typeof d.beta!="bigint"||!Array.isArray(d.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const y=S0(r,c);function A(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function O(ge,D,f){const{x:R,y:B}=D.toAffine(),$=r.toBytes(R);if(Mr(f,"isCompressed"),f){A();const Z=!r.isOdd(B);return Xn(A0(Z),$)}else return Xn(Uint8Array.of(4),$,r.toBytes(B))}function S(ge){Wn(ge,void 0,"Point");const{publicKey:D,publicKeyUncompressed:f}=y,R=ge.length,B=ge[0],$=ge.subarray(1);if(R===D&&(B===2||B===3)){const Z=r.fromBytes($);if(!r.isValid(Z))throw new Error("bad point: is not on curve, wrong x");const ee=C(Z);let ae;try{ae=r.sqrt(ee)}catch(_){const H=_ instanceof Error?": "+_.message:"";throw new Error("bad point: is not on curve, sqrt error"+H)}A();const K=r.isOdd(ae);return(B&1)===1!==K&&(ae=r.neg(ae)),{x:Z,y:ae}}else if(R===f&&B===4){const Z=r.BYTES,ee=r.fromBytes($.subarray(0,Z)),ae=r.fromBytes($.subarray(Z,Z*2));if(!V(ee,ae))throw new Error("bad point: is not on curve");return{x:ee,y:ae}}else throw new Error(`bad point: got length ${R}, expected compressed=${D} or uncompressed=${f}`)}const I=t.toBytes||O,k=t.fromBytes||S;function C(ge){const D=r.sqr(ge),f=r.mul(D,ge);return r.add(r.add(f,r.mul(ge,i.a)),i.b)}function V(ge,D){const f=r.sqr(D),R=C(ge);return r.eql(f,R)}if(!V(i.Gx,i.Gy))throw new Error("bad curve params: generator point");const j=r.mul(r.pow(i.a,Zi),S4),J=r.mul(r.sqr(i.b),BigInt(27));if(r.is0(r.add(j,J)))throw new Error("bad curve params: a or b");function W(ge,D,f=!1){if(!r.isValid(D)||f&&r.is0(D))throw new Error(`bad point coordinate ${ge}`);return D}function se(ge){if(!(ge instanceof ne))throw new Error("ProjectivePoint expected")}function ue(ge){if(!d||!d.basises)throw new Error("no endo");return b4(ge,d.basises,c.ORDER)}const oe=Bi((ge,D)=>{const{X:f,Y:R,Z:B}=ge;if(r.eql(B,r.ONE))return{x:f,y:R};const $=ge.is0();D==null&&(D=$?r.ONE:r.inv(B));const Z=r.mul(f,D),ee=r.mul(R,D),ae=r.mul(B,D);if($)return{x:r.ZERO,y:r.ZERO};if(!r.eql(ae,r.ONE))throw new Error("invZ was invalid");return{x:Z,y:ee}}),Ee=Bi(ge=>{if(ge.is0()){if(t.allowInfinityPoint&&!r.is0(ge.Y))return;throw new Error("bad point: ZERO")}const{x:D,y:f}=ge.toAffine();if(!r.isValid(D)||!r.isValid(f))throw new Error("bad point: x or y not field elements");if(!V(D,f))throw new Error("bad point: equation left != right");if(!ge.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function Re(ge,D,f,R,B){return f=new ne(r.mul(f.X,ge),f.Y,f.Z),D=ki(R,D),f=ki(B,f),D.add(f)}class ne{constructor(D,f,R){this.X=W("x",D),this.Y=W("y",f,!0),this.Z=W("z",R),Object.freeze(this)}static CURVE(){return i}static fromAffine(D){const{x:f,y:R}=D||{};if(!D||!r.isValid(f)||!r.isValid(R))throw new Error("invalid affine point");if(D instanceof ne)throw new Error("projective point not allowed");return r.is0(f)&&r.is0(R)?ne.ZERO:new ne(f,R,r.ONE)}static fromBytes(D){const f=ne.fromAffine(k(Wn(D,void 0,"point")));return f.assertValidity(),f}static fromHex(D){return ne.fromBytes(jt("pointHex",D))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(D=8,f=!0){return de.createCache(this,D),f||this.multiply(Zi),this}assertValidity(){Ee(this)}hasEvenY(){const{y:D}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(D)}equals(D){se(D);const{X:f,Y:R,Z:B}=this,{X:$,Y:Z,Z:ee}=D,ae=r.eql(r.mul(f,ee),r.mul($,B)),K=r.eql(r.mul(R,ee),r.mul(Z,B));return ae&&K}negate(){return new ne(this.X,r.neg(this.Y),this.Z)}double(){const{a:D,b:f}=i,R=r.mul(f,Zi),{X:B,Y:$,Z}=this;let ee=r.ZERO,ae=r.ZERO,K=r.ZERO,g=r.mul(B,B),_=r.mul($,$),H=r.mul(Z,Z),X=r.mul(B,$);return X=r.add(X,X),K=r.mul(B,Z),K=r.add(K,K),ee=r.mul(D,K),ae=r.mul(R,H),ae=r.add(ee,ae),ee=r.sub(_,ae),ae=r.add(_,ae),ae=r.mul(ee,ae),ee=r.mul(X,ee),K=r.mul(R,K),H=r.mul(D,H),X=r.sub(g,H),X=r.mul(D,X),X=r.add(X,K),K=r.add(g,g),g=r.add(K,g),g=r.add(g,H),g=r.mul(g,X),ae=r.add(ae,g),H=r.mul($,Z),H=r.add(H,H),g=r.mul(H,X),ee=r.sub(ee,g),K=r.mul(H,_),K=r.add(K,K),K=r.add(K,K),new ne(ee,ae,K)}add(D){se(D);const{X:f,Y:R,Z:B}=this,{X:$,Y:Z,Z:ee}=D;let ae=r.ZERO,K=r.ZERO,g=r.ZERO;const _=i.a,H=r.mul(i.b,Zi);let X=r.mul(f,$),me=r.mul(R,Z),ye=r.mul(B,ee),Fe=r.add(f,R),We=r.add($,Z);Fe=r.mul(Fe,We),We=r.add(X,me),Fe=r.sub(Fe,We),We=r.add(f,B);let st=r.add($,ee);return We=r.mul(We,st),st=r.add(X,ye),We=r.sub(We,st),st=r.add(R,B),ae=r.add(Z,ee),st=r.mul(st,ae),ae=r.add(me,ye),st=r.sub(st,ae),g=r.mul(_,We),ae=r.mul(H,ye),g=r.add(ae,g),ae=r.sub(me,g),g=r.add(me,g),K=r.mul(ae,g),me=r.add(X,X),me=r.add(me,X),ye=r.mul(_,ye),We=r.mul(H,We),me=r.add(me,ye),ye=r.sub(X,ye),ye=r.mul(_,ye),We=r.add(We,ye),X=r.mul(me,We),K=r.add(K,X),X=r.mul(st,We),ae=r.mul(Fe,ae),ae=r.sub(ae,X),X=r.mul(Fe,me),g=r.mul(st,g),g=r.add(g,X),new ne(ae,K,g)}subtract(D){return this.add(D.negate())}is0(){return this.equals(ne.ZERO)}multiply(D){const{endo:f}=t;if(!c.isValidNot0(D))throw new Error("invalid scalar: out of range");let R,B;const $=Z=>de.cached(this,Z,ee=>Ur(ne,ee));if(f){const{k1neg:Z,k1:ee,k2neg:ae,k2:K}=ue(D),{p:g,f:_}=$(ee),{p:H,f:X}=$(K);B=_.add(X),R=Re(f.beta,g,H,Z,ae)}else{const{p:Z,f:ee}=$(D);R=Z,B=ee}return Ur(ne,[R,B])[0]}multiplyUnsafe(D){const{endo:f}=t,R=this;if(!c.isValid(D))throw new Error("invalid scalar: out of range");if(D===fr||R.is0())return ne.ZERO;if(D===co)return R;if(de.hasCache(this))return this.multiply(D);if(f){const{k1neg:B,k1:$,k2neg:Z,k2:ee}=ue(D),{p1:ae,p2:K}=dh(ne,R,$,ee);return Re(f.beta,ae,K,B,Z)}else return de.unsafe(R,D)}multiplyAndAddUnsafe(D,f,R){const B=this.multiplyUnsafe(f).add(D.multiplyUnsafe(R));return B.is0()?void 0:B}toAffine(D){return oe(this,D)}isTorsionFree(){const{isTorsionFree:D}=t;return l===co?!0:D?D(ne,this):de.unsafe(this,v).is0()}clearCofactor(){const{clearCofactor:D}=t;return l===co?this:D?D(ne,this):this.multiplyUnsafe(l)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}toBytes(D=!0){return Mr(D,"isCompressed"),this.assertValidity(),I(ne,this,D)}toHex(D=!0){return Cr(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 Ur(ne,D)}static msm(D,f){return Du(ne,c,D,f)}static fromPrivateKey(D){return ne.BASE.multiply(uo(c,D))}}ne.BASE=new ne(i.Gx,i.Gy,r.ONE),ne.ZERO=new ne(r.ZERO,r.ONE,r.ZERO),ne.Fp=r,ne.Fn=c;const ie=c.BITS,de=new ku(ne,t.endo?Math.ceil(ie/2):ie);return ne.BASE.precompute(8),ne}function A0(e){return Uint8Array.of(e?2:3)}function S0(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function O4(e,t={}){const{Fn:n}=e,r=t.randomBytes||Zs,c=Object.assign(S0(e.Fp,n),{seed:xu(n.ORDER)});function i(I){try{return!!uo(n,I)}catch{return!1}}function l(I,k){const{publicKey:C,publicKeyUncompressed:V}=c;try{const j=I.length;return k===!0&&j!==C||k===!1&&j!==V?!1:!!e.fromBytes(I)}catch{return!1}}function v(I=r(c.seed)){return uh(Wn(I,c.seed,"seed"),n.ORDER)}function d(I,k=!0){return e.BASE.multiply(uo(n,I)).toBytes(k)}function y(I){const k=v(I);return{secretKey:k,publicKey:d(k)}}function A(I){if(typeof I=="bigint")return!1;if(I instanceof e)return!0;const{secretKey:k,publicKey:C,publicKeyUncompressed:V}=c;if(n.allowedLengths||k===C)return;const j=jt("key",I).length;return j===C||j===V}function O(I,k,C=!0){if(A(I)===!0)throw new Error("first arg must be private key");if(A(k)===!1)throw new Error("second arg must be public key");const V=uo(n,I);return e.fromHex(k).multiply(V).toBytes(C)}return Object.freeze({getPublicKey:d,getSharedSecret:O,keygen:y,Point:e,utils:{isValidSecretKey:i,isValidPublicKey:l,randomSecretKey:v,isValidPrivateKey:i,randomPrivateKey:v,normPrivateKeyToScalar:I=>uo(n,I),precompute(I=8,k=e.BASE){return k.precompute(I,!1)}},lengths:c})}function N4(e,t,n={}){ru(t),Uo(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||Zs,c=n.hmac||((f,...R)=>E0(t,f,Xn(...R))),{Fp:i,Fn:l}=e,{ORDER:v,BITS:d}=l,{keygen:y,getPublicKey:A,getSharedSecret:O,utils:S,lengths:I}=O4(e,n),k={prehash:!1,lowS:typeof n.lowS=="boolean"?n.lowS:!1,format:void 0,extraEntropy:!1},C="compact";function V(f){const R=v>>co;return f>R}function j(f,R){if(!l.isValidNot0(R))throw new Error(`invalid signature ${f}: out of range 1..Point.Fn.ORDER`);return R}function J(f,R){Aa(R);const B=I.signature,$=R==="compact"?B:R==="recovered"?B+1:void 0;return Wn(f,$,`${R} signature`)}class W{constructor(R,B,$){this.r=j("r",R),this.s=j("s",B),$!=null&&(this.recovery=$),Object.freeze(this)}static fromBytes(R,B=C){J(R,B);let $;if(B==="der"){const{r:K,s:g}=ur.toSig(Wn(R));return new W(K,g)}B==="recovered"&&($=R[0],B="compact",R=R.subarray(1));const Z=l.BYTES,ee=R.subarray(0,Z),ae=R.subarray(Z,Z*2);return new W(l.fromBytes(ee),l.fromBytes(ae),$)}static fromHex(R,B){return this.fromBytes(Ni(R),B)}addRecoveryBit(R){return new W(this.r,this.s,R)}recoverPublicKey(R){const B=i.ORDER,{r:$,s:Z,recovery:ee}=this;if(ee==null||![0,1,2,3].includes(ee))throw new Error("recovery id invalid");if(v*b0<B&&ee>1)throw new Error("recovery id is ambiguous for h>1 curve");const K=ee===2||ee===3?$+v:$;if(!i.isValid(K))throw new Error("recovery id 2 or 3 invalid");const g=i.toBytes(K),_=e.fromBytes(Xn(A0((ee&1)===0),g)),H=l.inv(K),X=ue(jt("msgHash",R)),me=l.create(-X*H),ye=l.create(Z*H),Fe=e.BASE.multiplyUnsafe(me).add(_.multiplyUnsafe(ye));if(Fe.is0())throw new Error("point at infinify");return Fe.assertValidity(),Fe}hasHighS(){return V(this.s)}toBytes(R=C){if(Aa(R),R==="der")return Ni(ur.hexFromSig(this));const B=l.toBytes(this.r),$=l.toBytes(this.s);if(R==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Xn(Uint8Array.of(this.recovery),B,$)}return Xn(B,$)}toHex(R){return Cr(this.toBytes(R))}assertValidity(){}static fromCompact(R){return W.fromBytes(jt("sig",R),"compact")}static fromDER(R){return W.fromBytes(jt("sig",R),"der")}normalizeS(){return this.hasHighS()?new W(this.r,l.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Cr(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Cr(this.toBytes("compact"))}}const se=n.bits2int||function(R){if(R.length>8192)throw new Error("input is too large");const B=Mi(R),$=R.length*8-d;return $>0?B>>BigInt($):B},ue=n.bits2int_modN||function(R){return l.create(se(R))},oe=Do(d);function Ee(f){return Qs("num < 2^"+d,f,fr,oe),l.toBytes(f)}function Re(f,R){return Wn(f,void 0,"message"),R?Wn(t(f),void 0,"prehashed message"):f}function ne(f,R,B){if(["recovered","canonical"].some(me=>me in B))throw new Error("sign() legacy options not supported");const{lowS:$,prehash:Z,extraEntropy:ee}=Sa(B,k);f=Re(f,Z);const ae=ue(f),K=uo(l,R),g=[Ee(K),Ee(ae)];if(ee!=null&&ee!==!1){const me=ee===!0?r(I.secretKey):ee;g.push(jt("extraEntropy",me))}const _=Xn(...g),H=ae;function X(me){const ye=se(me);if(!l.isValidNot0(ye))return;const Fe=l.inv(ye),We=e.BASE.multiply(ye).toAffine(),st=l.create(We.x);if(st===fr)return;const at=l.create(Fe*l.create(H+st*K));if(at===fr)return;let ct=(We.x===st?0:2)|Number(We.y&co),Et=at;return $&&V(at)&&(Et=l.neg(at),ct^=1),new W(st,Et,ct)}return{seed:_,k2sig:X}}function ie(f,R,B={}){f=jt("message",f);const{seed:$,k2sig:Z}=ne(f,R,B);return Qd(t.outputLen,l.BYTES,c)($,Z)}function de(f){let R;const B=typeof f=="string"||Bo(f),$=!B&&f!==null&&typeof f=="object"&&typeof f.r=="bigint"&&typeof f.s=="bigint";if(!B&&!$)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if($)R=new W(f.r,f.s);else if(B){try{R=W.fromBytes(jt("sig",f),"der")}catch(Z){if(!(Z instanceof ur.Err))throw Z}if(!R)try{R=W.fromBytes(jt("sig",f),"compact")}catch{return!1}}return R||!1}function ge(f,R,B,$={}){const{lowS:Z,prehash:ee,format:ae}=Sa($,k);if(B=jt("publicKey",B),R=Re(jt("message",R),ee),"strict"in $)throw new Error("options.strict was renamed to lowS");const K=ae===void 0?de(f):W.fromBytes(jt("sig",f),ae);if(K===!1)return!1;try{const g=e.fromBytes(B);if(Z&&K.hasHighS())return!1;const{r:_,s:H}=K,X=ue(R),me=l.inv(H),ye=l.create(X*me),Fe=l.create(_*me),We=e.BASE.multiplyUnsafe(ye).add(g.multiplyUnsafe(Fe));return We.is0()?!1:l.create(We.x)===_}catch{return!1}}function D(f,R,B={}){const{prehash:$}=Sa(B,k);return R=Re(R,$),W.fromBytes(f,"recovered").recoverPublicKey(R).toBytes()}return Object.freeze({keygen:y,getPublicKey:A,getSharedSecret:O,utils:S,lengths:I,Point:e,sign:ie,verify:ge,recoverPublicKey:D,Signature:W,hash:t})}function T4(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(l=>Math.ceil(l/2)))):void 0;const c=kr(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),i={Fp:n,Fn:c,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function x4(e){const{CURVE:t,curveOpts:n}=T4(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function L4(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,Nu(n.Fn.ORDER,n.Fn.BITS))})}function C4(e){const{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:c}=x4(e),i=I4(t,n),l=N4(i,r,c);return L4(e,l)}function M4(e,t){const n=r=>C4({...e,hash:r});return{...n(t),create:n}}const Ia={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},B4={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},I0=BigInt(2);function k4(e){const t=Ia.p,n=BigInt(3),r=BigInt(6),c=BigInt(11),i=BigInt(22),l=BigInt(23),v=BigInt(44),d=BigInt(88),y=e*e*e%t,A=y*y*e%t,O=Kt(A,n,t)*A%t,S=Kt(O,n,t)*A%t,I=Kt(S,I0,t)*y%t,k=Kt(I,c,t)*I%t,C=Kt(k,i,t)*k%t,V=Kt(C,v,t)*C%t,j=Kt(V,d,t)*V%t,J=Kt(j,v,t)*C%t,W=Kt(J,n,t)*A%t,se=Kt(W,l,t)*k%t,ue=Kt(se,r,t)*y%t,oe=Kt(ue,I0,t);if(!Oa.eql(Oa.sqr(oe),e))throw new Error("Cannot find square root");return oe}const Oa=kr(Ia.p,{sqrt:k4}),D4=M4({...Ia,Fp:Oa,lowS:!0,endo:B4},hu);Po.utils.randomPrivateKey,Po.getPublicKey;function O0(e){try{return Po.ExtendedPoint.fromHex(e),!0}catch{return!1}}const N0=(e,t)=>Po.sign(e,t.slice(0,32)),U4=Po.verify,Na=e=>yt.Buffer.isBuffer(e)?e:e instanceof Uint8Array?yt.Buffer.from(e.buffer,e.byteOffset,e.byteLength):yt.Buffer.from(e);class T0{constructor(t){Object.assign(this,t)}encode(){return yt.Buffer.from(da.serialize($o,this))}static decode(t){return da.deserialize($o,this,t)}static decodeUnchecked(t){return da.deserializeUnchecked($o,this,t)}}const $o=new Map;var x0;const L0=32,Zn=32;function P4(e){return e._bn!==void 0}let C0=1;class ft extends T0{constructor(t){if(super({}),this._bn=void 0,P4(t))this._bn=t._bn;else{if(typeof t=="string"){const n=En.decode(t);if(n.length!=Zn)throw new Error("Invalid public key input");this._bn=new ju(n)}else this._bn=new ju(t);if(this._bn.byteLength()>Zn)throw new Error("Invalid public key input")}}static unique(){const t=new ft(C0);return C0+=1,new ft(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return En.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(yt.Buffer);if(t.length===Zn)return t;const n=yt.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,r){const c=yt.Buffer.concat([t.toBuffer(),yt.Buffer.from(n),r.toBuffer()]),i=Yu(c);return new ft(i)}static createProgramAddressSync(t,n){let r=yt.Buffer.alloc(0);t.forEach(function(i){if(i.length>L0)throw new TypeError("Max seed length exceeded");r=yt.Buffer.concat([r,Na(i)])}),r=yt.Buffer.concat([r,n.toBuffer(),yt.Buffer.from("ProgramDerivedAddress")]);const c=Yu(r);if(O0(c))throw new Error("Invalid seeds, address must fall off the curve");return new ft(c)}static async createProgramAddress(t,n){return this.createProgramAddressSync(t,n)}static findProgramAddressSync(t,n){let r=255,c;for(;r!=0;){try{const i=t.concat(yt.Buffer.from([r]));c=this.createProgramAddressSync(i,n)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[c,r]}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 ft(t);return O0(n.toBytes())}}x0=ft,ft.default=new x0("11111111111111111111111111111111"),$o.set(ft,{kind:"struct",fields:[["_bn","u256"]]}),new ft("BPFLoader1111111111111111111111111111111111");const Fr=1232,jo=127,Rr=64,M0=129;class fo{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 r=new Map;this.keySegments().flat().forEach((i,l)=>{r.set(i.toBase58(),l)});const c=i=>{const l=r.get(i.toBase58());if(l===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return l};return t.map(i=>({programIdIndex:c(i.programId),accountKeyIndexes:i.keys.map(l=>c(l.pubkey)),data:i.data}))}}const _t=(e="publicKey")=>le.blob(32,e),F4=(e="signature")=>le.blob(64,e),lo=(e="string")=>{const t=le.struct([le.u32("length"),le.u32("lengthPadding"),le.blob(le.offset(le.u32(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),c=t;return c.decode=(i,l)=>n(i,l).chars.toString(),c.encode=(i,l,v)=>{const d={chars:yt.Buffer.from(i,"utf8")};return r(d,l,v)},c.alloc=i=>le.u32().span+le.u32().span+yt.Buffer.from(i,"utf8").length,c},V4=(e="authorized")=>le.struct([_t("staker"),_t("withdrawer")],e),G4=(e="lockup")=>le.struct([le.ns64("unixTimestamp"),le.ns64("epoch"),_t("custodian")],e),H4=(e="voteInit")=>le.struct([_t("nodePubkey"),_t("authorizedVoter"),_t("authorizedWithdrawer"),le.u8("commission")],e),$4=(e="voteAuthorizeWithSeedArgs")=>le.struct([le.u32("voteAuthorizationType"),_t("currentAuthorityDerivedKeyOwnerPubkey"),lo("currentAuthorityDerivedKeySeed"),_t("newAuthorized")],e);function Bn(e){let t=0,n=0;for(;;){let r=e.shift();if(t|=(r&127)<<n*7,n+=1,(r&128)===0)break}return t}function kn(e,t){let n=t;for(;;){let r=n&127;if(n>>=7,n==0){e.push(r);break}else r|=128,e.push(r)}}function Lt(e,t){if(!e)throw new Error(t||"Assertion failed")}class Yi{constructor(t,n){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}static compile(t,n){const r=new Map,c=l=>{const v=l.toBase58();let d=r.get(v);return d===void 0&&(d={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(v,d)),d},i=c(n);i.isSigner=!0,i.isWritable=!0;for(const l of t){c(l.programId).isInvoked=!0;for(const v of l.keys){const d=c(v.pubkey);d.isSigner||=v.isSigner,d.isWritable||=v.isWritable}}return new Yi(n,r)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];Lt(t.length<=256,"Max static account keys length exceeded");const n=t.filter(([,d])=>d.isSigner&&d.isWritable),r=t.filter(([,d])=>d.isSigner&&!d.isWritable),c=t.filter(([,d])=>!d.isSigner&&d.isWritable),i=t.filter(([,d])=>!d.isSigner&&!d.isWritable),l={numRequiredSignatures:n.length+r.length,numReadonlySignedAccounts:r.length,numReadonlyUnsignedAccounts:i.length};{Lt(n.length>0,"Expected at least one writable signer key");const[d]=n[0];Lt(d===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const v=[...n.map(([d])=>new ft(d)),...r.map(([d])=>new ft(d)),...c.map(([d])=>new ft(d)),...i.map(([d])=>new ft(d))];return[l,v]}extractTableLookup(t){const[n,r]=this.drainKeysFoundInLookupTable(t.state.addresses,l=>!l.isSigner&&!l.isInvoked&&l.isWritable),[c,i]=this.drainKeysFoundInLookupTable(t.state.addresses,l=>!l.isSigner&&!l.isInvoked&&!l.isWritable);if(!(n.length===0&&c.length===0))return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:c},{writable:r,readonly:i}]}drainKeysFoundInLookupTable(t,n){const r=new Array,c=new Array;for(const[i,l]of this.keyMetaMap.entries())if(n(l)){const v=new ft(i),d=t.findIndex(y=>y.equals(v));d>=0&&(Lt(d<256,"Max lookup table index exceeded"),r.push(d),c.push(v),this.keyMetaMap.delete(i))}return[r,c]}}const B0="Reached end of buffer unexpectedly";function sn(e){if(e.length===0)throw new Error(B0);return e.shift()}function an(e,...t){const[n]=t;if(t.length===2?n+(t[1]??0)>e.length:n>=e.length)throw new Error(B0);return e.splice(...t)}class Vr{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 ft(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:En.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new fo(this.staticAccountKeys)}static compile(t){const n=Yi.compile(t.instructions,t.payerKey),[r,c]=n.getMessageComponents(),l=new fo(c).compileInstructions(t.instructions).map(v=>({programIdIndex:v.programIdIndex,accounts:v.accountKeyIndexes,data:En.encode(v.data)}));return new Vr({header:r,accountKeys:c,recentBlockhash:t.recentBlockhash,instructions:l})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){const r=t-n,i=this.accountKeys.length-n-this.header.numReadonlyUnsignedAccounts;return r<i}else{const r=n-this.header.numReadonlySignedAccounts;return t<r}}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 r=this.instructions.map(O=>{const{accounts:S,programIdIndex:I}=O,k=Array.from(En.decode(O.data));let C=[];kn(C,S.length);let V=[];return kn(V,k.length),{programIdIndex:I,keyIndicesCount:yt.Buffer.from(C),keyIndices:S,dataLength:yt.Buffer.from(V),data:k}});let c=[];kn(c,r.length);let i=yt.Buffer.alloc(Fr);yt.Buffer.from(c).copy(i);let l=c.length;r.forEach(O=>{const I=le.struct([le.u8("programIdIndex"),le.blob(O.keyIndicesCount.length,"keyIndicesCount"),le.seq(le.u8("keyIndex"),O.keyIndices.length,"keyIndices"),le.blob(O.dataLength.length,"dataLength"),le.seq(le.u8("userdatum"),O.data.length,"data")]).encode(O,i,l);l+=I}),i=i.slice(0,l);const v=le.struct([le.blob(1,"numRequiredSignatures"),le.blob(1,"numReadonlySignedAccounts"),le.blob(1,"numReadonlyUnsignedAccounts"),le.blob(n.length,"keyCount"),le.seq(_t("key"),t,"keys"),_t("recentBlockhash")]),d={numRequiredSignatures:yt.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:yt.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:yt.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:yt.Buffer.from(n),keys:this.accountKeys.map(O=>Na(O.toBytes())),recentBlockhash:En.decode(this.recentBlockhash)};let y=yt.Buffer.alloc(2048);const A=v.encode(d,y);return i.copy(y,A),y.slice(0,A+i.length)}static from(t){let n=[...t];const r=sn(n);if(r!==(r&jo))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const c=sn(n),i=sn(n),l=Bn(n);let v=[];for(let S=0;S<l;S++){const I=an(n,0,Zn);v.push(new ft(yt.Buffer.from(I)))}const d=an(n,0,Zn),y=Bn(n);let A=[];for(let S=0;S<y;S++){const I=sn(n),k=Bn(n),C=an(n,0,k),V=Bn(n),j=an(n,0,V),J=En.encode(yt.Buffer.from(j));A.push({programIdIndex:I,accounts:C,data:J})}const O={header:{numRequiredSignatures:r,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:i},recentBlockhash:En.encode(yt.Buffer.from(d)),accountKeys:v,instructions:A};return new Vr(O)}}class Ko{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 fo(this.staticAccountKeys,n)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r){const c=t-r,i=this.addressTableLookups.reduce((l,v)=>l+v.writableIndexes.length,0);return c<i}else if(t>=this.header.numRequiredSignatures){const c=t-n,l=r-n-this.header.numReadonlyUnsignedAccounts;return c<l}else{const c=n-this.header.numReadonlySignedAccounts;return t<c}}resolveAddressTableLookups(t){const n={writable:[],readonly:[]};for(const r of this.addressTableLookups){const c=t.find(i=>i.key.equals(r.accountKey));if(!c)throw new Error(`Failed to find address lookup table account for table key ${r.accountKey.toBase58()}`);for(const i of r.writableIndexes)if(i<c.state.addresses.length)n.writable.push(c.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`);for(const i of r.readonlyIndexes)if(i<c.state.addresses.length)n.readonly.push(c.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`)}return n}static compile(t){const n=Yi.compile(t.instructions,t.payerKey),r=new Array,c={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(const A of i){const O=n.extractTableLookup(A);if(O!==void 0){const[S,{writable:I,readonly:k}]=O;r.push(S),c.writable.push(...I),c.readonly.push(...k)}}const[l,v]=n.getMessageComponents(),y=new fo(v,c).compileInstructions(t.instructions);return new Ko({header:l,staticAccountKeys:v,recentBlockhash:t.recentBlockhash,compiledInstructions:y,addressTableLookups:r})}serialize(){const t=Array();kn(t,this.staticAccountKeys.length);const n=this.serializeInstructions(),r=Array();kn(r,this.compiledInstructions.length);const c=this.serializeAddressTableLookups(),i=Array();kn(i,this.addressTableLookups.length);const l=le.struct([le.u8("prefix"),le.struct([le.u8("numRequiredSignatures"),le.u8("numReadonlySignedAccounts"),le.u8("numReadonlyUnsignedAccounts")],"header"),le.blob(t.length,"staticAccountKeysLength"),le.seq(_t(),this.staticAccountKeys.length,"staticAccountKeys"),_t("recentBlockhash"),le.blob(r.length,"instructionsLength"),le.blob(n.length,"serializedInstructions"),le.blob(i.length,"addressTableLookupsLength"),le.blob(c.length,"serializedAddressTableLookups")]),v=new Uint8Array(Fr),y=l.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(A=>A.toBytes()),recentBlockhash:En.decode(this.recentBlockhash),instructionsLength:new Uint8Array(r),serializedInstructions:n,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:c},v);return v.slice(0,y)}serializeInstructions(){let t=0;const n=new Uint8Array(Fr);for(const r of this.compiledInstructions){const c=Array();kn(c,r.accountKeyIndexes.length);const i=Array();kn(i,r.data.length);const l=le.struct([le.u8("programIdIndex"),le.blob(c.length,"encodedAccountKeyIndexesLength"),le.seq(le.u8(),r.accountKeyIndexes.length,"accountKeyIndexes"),le.blob(i.length,"encodedDataLength"),le.blob(r.data.length,"data")]);t+=l.encode({programIdIndex:r.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(c),accountKeyIndexes:r.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:r.data},n,t)}return n.slice(0,t)}serializeAddressTableLookups(){let t=0;const n=new Uint8Array(Fr);for(const r of this.addressTableLookups){const c=Array();kn(c,r.writableIndexes.length);const i=Array();kn(i,r.readonlyIndexes.length);const l=le.struct([_t("accountKey"),le.blob(c.length,"encodedWritableIndexesLength"),le.seq(le.u8(),r.writableIndexes.length,"writableIndexes"),le.blob(i.length,"encodedReadonlyIndexesLength"),le.seq(le.u8(),r.readonlyIndexes.length,"readonlyIndexes")]);t+=l.encode({accountKey:r.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(c),writableIndexes:r.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:r.readonlyIndexes},n,t)}return n.slice(0,t)}static deserialize(t){let n=[...t];const r=sn(n),c=r&jo;Lt(r!==c,"Expected versioned message but received legacy message");const i=c;Lt(i===0,`Expected versioned message with version 0 but found version ${i}`);const l={numRequiredSignatures:sn(n),numReadonlySignedAccounts:sn(n),numReadonlyUnsignedAccounts:sn(n)},v=[],d=Bn(n);for(let k=0;k<d;k++)v.push(new ft(an(n,0,Zn)));const y=En.encode(an(n,0,Zn)),A=Bn(n),O=[];for(let k=0;k<A;k++){const C=sn(n),V=Bn(n),j=an(n,0,V),J=Bn(n),W=new Uint8Array(an(n,0,J));O.push({programIdIndex:C,accountKeyIndexes:j,data:W})}const S=Bn(n),I=[];for(let k=0;k<S;k++){const C=new ft(an(n,0,Zn)),V=Bn(n),j=an(n,0,V),J=Bn(n),W=an(n,0,J);I.push({accountKey:C,writableIndexes:j,readonlyIndexes:W})}return new Ko({header:l,staticAccountKeys:v,recentBlockhash:y,compiledInstructions:O,addressTableLookups:I})}}const k0=3,j4=4,K4=8,W4=16;function qi(e){const t=an(e,0,4);return t[0]+t[1]*2**8+t[2]*2**16+t[3]*2**24}function z4(e){const t=an(e,0,8);let n=BigInt(0);for(let r=t.length-1;r>=0;r--)n=n<<BigInt(8)|BigInt(t[r]);return Lt(n<=BigInt(Number.MAX_SAFE_INTEGER),"Expected u64 value to be within the safe integer range"),Number(n)}class Xi{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.transactionConfig=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.transactionConfig=t.transactionConfig??{computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null}}get version(){return 1}get addressTableLookups(){return[]}getAccountKeys(){return new fo(this.staticAccountKeys)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r)return!1;if(t>=this.header.numRequiredSignatures){const c=t-n,l=r-n-this.header.numReadonlyUnsignedAccounts;return c<l}else{const c=n-this.header.numReadonlySignedAccounts;return t<c}}serialize(){throw new Error("Serialization of version 1 transaction messages is not supported")}static deserialize(t){let n=[...t];const r=sn(n),c=r&jo;Lt(r!==c,"Expected versioned message but received legacy message");const i=c;Lt(i===1,`Expected versioned message with version 1 but found version ${i}`);const l={numRequiredSignatures:sn(n),numReadonlySignedAccounts:sn(n),numReadonlyUnsignedAccounts:sn(n)},v=qi(n);Lt((v&-32)===0,"Unexpected bits set in the transaction config mask");const d=v&k0;Lt(d===0||d===k0,"Expected both or neither of the priority fee bits to be set in the transaction config mask");const y=En.encode(an(n,0,Zn)),A=sn(n),O=sn(n),S=[];for(let V=0;V<O;V++)S.push(new ft(an(n,0,Zn)));const I={computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null};d!==0&&(I.priorityFee=z4(n)),v&j4&&(I.computeUnitLimit=qi(n)),v&K4&&(I.loadedAccountsDataSizeLimit=qi(n)),v&W4&&(I.heapSize=qi(n));const k=[];for(let V=0;V<A;V++){const j=sn(n),J=sn(n),W=sn(n)+sn(n)*256;k.push({accountKeyIndexesLength:J,dataLength:W,programIdIndex:j})}const C=[];for(const V of k)C.push({programIdIndex:V.programIdIndex,accountKeyIndexes:an(n,0,V.accountKeyIndexesLength),data:new Uint8Array(an(n,0,V.dataLength))});return Lt(n.length===0,"Expected no bytes to remain after deserializing a version 1 message"),new Xi({header:l,staticAccountKeys:S,recentBlockhash:y,compiledInstructions:C,transactionConfig:I})}}const Ji={deserializeMessageVersion(e){const t=e[0],n=t&jo;return n===t?"legacy":n},deserialize:e=>{const t=Ji.deserializeMessageVersion(e);if(t==="legacy")return Vr.from(e);if(t===0)return Ko.deserialize(e);if(t===1)return Xi.deserialize(e);throw new Error(`Transaction message version ${t} deserialization is not supported`)}},Z4=yt.Buffer.alloc(Rr).fill(0);class Ta{constructor(t){this.keys=void 0,this.programId=void 0,this.data=yt.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:r})=>({pubkey:t.toJSON(),isSigner:n,isWritable:r})),programId:this.programId.toJSON(),data:[...this.data]}}}class Qi{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:r}=t;this.minNonceContextSlot=n,this.nonceInfo=r}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:n,lastValidBlockHeight:r}=t;this.recentBlockhash=n,this.lastValidBlockHeight=r}else{const{recentBlockhash:n,nonceInfo:r}=t;r&&(this.nonceInfo=r),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 Ta(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 r;if(this.feePayer)r=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)r=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let C=0;C<n.length;C++)if(n[C].programId===void 0)throw new Error(`Transaction instruction index ${C} has undefined program id`);const c=[],i=[];n.forEach(C=>{C.keys.forEach(j=>{i.push({...j})});const V=C.programId.toString();c.includes(V)||c.push(V)}),c.forEach(C=>{i.push({pubkey:new ft(C),isSigner:!1,isWritable:!1})});const l=[];i.forEach(C=>{const V=C.pubkey.toString(),j=l.findIndex(J=>J.pubkey.toString()===V);j>-1?(l[j].isWritable=l[j].isWritable||C.isWritable,l[j].isSigner=l[j].isSigner||C.isSigner):l.push(C)}),l.sort(function(C,V){if(C.isSigner!==V.isSigner)return C.isSigner?-1:1;if(C.isWritable!==V.isWritable)return C.isWritable?-1:1;const j={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return C.pubkey.toBase58().localeCompare(V.pubkey.toBase58(),"en",j)});const v=l.findIndex(C=>C.pubkey.equals(r));if(v>-1){const[C]=l.splice(v,1);C.isSigner=!0,C.isWritable=!0,l.unshift(C)}else l.unshift({pubkey:r,isSigner:!0,isWritable:!0});for(const C of this.signatures){const V=l.findIndex(j=>j.pubkey.equals(C.publicKey));if(V>-1)l[V].isSigner||(l[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: ${C.publicKey.toString()}`)}let d=0,y=0,A=0;const O=[],S=[];l.forEach(({pubkey:C,isSigner:V,isWritable:j})=>{V?(O.push(C.toString()),d+=1,j||(y+=1)):(S.push(C.toString()),j||(A+=1))});const I=O.concat(S),k=n.map(C=>{const{data:V,programId:j}=C;return{programIdIndex:I.indexOf(j.toString()),accounts:C.keys.map(J=>I.indexOf(J.pubkey.toString())),data:En.encode(V)}});return k.forEach(C=>{Lt(C.programIdIndex>=0),C.accounts.forEach(V=>Lt(V>=0))}),new Vr({header:{numRequiredSignatures:d,numReadonlySignedAccounts:y,numReadonlyUnsignedAccounts:A},accountKeys:I,recentBlockhash:t,instructions:k})}_compile(){const t=this.compileMessage(),n=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===n.length&&this.signatures.every((c,i)=>n[i].equals(c.publicKey))||(this.signatures=n.map(r=>({signature:null,publicKey:r}))),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(r=>{const c=r.toString();return n.has(c)?!1:(n.add(c),!0)}).map(r=>({signature:null,publicKey:r}))}sign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,r=[];for(const i of t){const l=i.publicKey.toString();n.has(l)||(n.add(l),r.push(i))}this.signatures=r.map(i=>({signature:null,publicKey:i.publicKey}));const c=this._compile();this._partialSign(c,...r)}partialSign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,r=[];for(const i of t){const l=i.publicKey.toString();n.has(l)||(n.add(l),r.push(i))}const c=this._compile();this._partialSign(c,...r)}_partialSign(t,...n){const r=t.serialize();n.forEach(c=>{const i=N0(r,c.secretKey);this._addSignature(c.publicKey,Na(i))})}addSignature(t,n){this._compile(),this._addSignature(t,n)}_addSignature(t,n){Lt(n.length===64);const r=this.signatures.findIndex(c=>t.equals(c.publicKey));if(r<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[r].signature=yt.Buffer.from(n)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,n){const r={};for(const{signature:c,publicKey:i}of this.signatures)c===null?n&&(r.missing||=[]).push(i):U4(c,t,i.toBytes())||(r.invalid||=[]).push(i);return r.invalid||r.missing?r:void 0}serialize(t){const{requireAllSignatures:n,verifySignatures:r}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),c=this.serializeMessage();if(r){const i=this._getMessageSignednessErrors(c,n);if(i){let l="Signature verification failed.";throw i.invalid&&(l+=`
6
+ Invalid signature for public key${i.invalid.length===1?"":"(s)"} [\`${i.invalid.map(v=>v.toBase58()).join("`, `")}\`].`),i.missing&&(l+=`
7
+ Missing signature for public key${i.missing.length===1?"":"(s)"} [\`${i.missing.map(v=>v.toBase58()).join("`, `")}\`].`),new Error(l)}}return this._serialize(c)}_serialize(t){const{signatures:n}=this,r=[];kn(r,n.length);const c=r.length+n.length*64+t.length,i=yt.Buffer.alloc(c);return Lt(n.length<256),yt.Buffer.from(r).copy(i,0),n.forEach(({signature:l},v)=>{l!==null&&(Lt(l.length===64,"signature has invalid length"),yt.Buffer.from(l).copy(i,r.length+v*64))}),t.copy(i,r.length+n.length*64),Lt(i.length<=Fr,`Transaction too large: ${i.length} > ${Fr}`),i}get keys(){return Lt(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return Lt(this.instructions.length===1),this.instructions[0].programId}get data(){return Lt(this.instructions.length===1),this.instructions[0].data}static from(t){let n=[...t];const r=Bn(n);let c=[];for(let i=0;i<r;i++){const l=an(n,0,Rr);c.push(En.encode(yt.Buffer.from(l)))}return Qi.populate(Vr.from(n),c)}static populate(t,n=[]){const r=new Qi;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((c,i)=>{const l={signature:c==En.encode(Z4)?null:En.decode(c),publicKey:t.accountKeys[i]};r.signatures.push(l)}),t.instructions.forEach(c=>{const i=c.accounts.map(l=>{const v=t.accountKeys[l];return{pubkey:v,isSigner:r.signatures.some(d=>d.publicKey.toString()===v.toString())||t.isAccountSigner(l),isWritable:t.isAccountWritable(l)}});r.instructions.push(new Ta({keys:i,programId:t.accountKeys[c.programIdIndex],data:En.decode(c.data)}))}),r._message=t,r._json=r.toJSON(),r}}class es{get version(){return this.message.version}constructor(t,n){if(this.signatures=void 0,this.message=void 0,n!==void 0)Lt(n.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=n;else{const r=[];for(let c=0;c<t.header.numRequiredSignatures;c++)r.push(new Uint8Array(Rr));this.signatures=r}this.message=t}serialize(){const t=this.message.serialize(),n=Array();kn(n,this.signatures.length);const r=le.struct([le.blob(n.length,"encodedSignaturesLength"),le.seq(F4(),this.signatures.length,"signatures"),le.blob(t.length,"serializedMessage")]),c=new Uint8Array(2048),i=r.encode({encodedSignaturesLength:new Uint8Array(n),signatures:this.signatures,serializedMessage:t},c);return c.slice(0,i)}static deserialize(t){if(t[0]===M0)return this.deserializeV1(t);let n=[...t];const r=[],c=Bn(n);for(let l=0;l<c;l++)r.push(new Uint8Array(an(n,0,Rr)));const i=Ji.deserialize(new Uint8Array(n));return new es(i,r)}static deserializeV1(t){const n=t[1],r=n*Rr,c=t.length-r;Lt(c>0,"Expected transaction to have enough bytes for its signatures");const i=Ji.deserialize(t.slice(0,c)),l=[];for(let v=0;v<n;v++){const d=c+v*Rr;l.push(t.slice(d,d+Rr))}return new es(i,l)}sign(t){const n=this.message.serialize(),r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const c of t){const i=r.findIndex(l=>l.equals(c.publicKey));Lt(i>=0,`Cannot sign with non signer key ${c.publicKey.toBase58()}`),this.signatures[i]=N0(n,c.secretKey)}}addSignature(t,n){Lt(n.byteLength===64,"Signature must be 64 bytes long");const c=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));Lt(c>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[c]=n}}new ft("SysvarC1ock11111111111111111111111111111111"),new ft("SysvarEpochSchedu1e111111111111111111111111"),new ft("Sysvar1nstructions1111111111111111111111111"),new ft("SysvarRecentB1ockHashes11111111111111111111"),new ft("SysvarRent111111111111111111111111111111111"),new ft("SysvarRewards111111111111111111111111111111"),new ft("SysvarS1otHashes111111111111111111111111111"),new ft("SysvarS1otHistory11111111111111111111111111"),new ft("SysvarStakeHistory1111111111111111111111111");const D0=le.nu64("lamportsPerSignature");le.struct([le.u32("version"),le.u32("state"),_t("authorizedPubkey"),_t("nonce"),le.struct([D0],"feeCalculator")]).span;function ho(e){const t=le.blob(8,e),n=t.decode.bind(t),r=t.encode.bind(t),c=t,i=z6();return c.decode=(l,v)=>{const d=n(l,v);return i.decode(d)},c.encode=(l,v,d)=>{const y=i.encode(l);return r(y,v,d)},c}Object.freeze({Create:{index:0,layout:le.struct([le.u32("instruction"),le.ns64("lamports"),le.ns64("space"),_t("programId")])},Assign:{index:1,layout:le.struct([le.u32("instruction"),_t("programId")])},Transfer:{index:2,layout:le.struct([le.u32("instruction"),ho("lamports")])},CreateWithSeed:{index:3,layout:le.struct([le.u32("instruction"),_t("base"),lo("seed"),le.ns64("lamports"),le.ns64("space"),_t("programId")])},AdvanceNonceAccount:{index:4,layout:le.struct([le.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:le.struct([le.u32("instruction"),_t("authorized")])},AuthorizeNonceAccount:{index:7,layout:le.struct([le.u32("instruction"),_t("authorized")])},Allocate:{index:8,layout:le.struct([le.u32("instruction"),le.ns64("space")])},AllocateWithSeed:{index:9,layout:le.struct([le.u32("instruction"),_t("base"),lo("seed"),le.ns64("space"),_t("programId")])},AssignWithSeed:{index:10,layout:le.struct([le.u32("instruction"),_t("base"),lo("seed"),_t("programId")])},TransferWithSeed:{index:11,layout:le.struct([le.u32("instruction"),ho("lamports"),lo("seed"),_t("programId")])},UpgradeNonceAccount:{index:12,layout:le.struct([le.u32("instruction")])}}),new ft("11111111111111111111111111111111"),new ft("BPFLoader2111111111111111111111111111111111"),le.struct([le.u32("typeIndex"),ho("deactivationSlot"),le.nu64("lastExtendedSlot"),le.u8("lastExtendedStartIndex"),le.u8(),le.seq(_t(),le.offset(le.u8(),-1),"authority")]);const Wt=Ho(pa(ft),Ze(),e=>new ft(e)),U0=ma([Ze(),Ut("base64")]),xa=Ho(pa(yt.Buffer),U0,e=>yt.Buffer.from(e[0],"base64"));function P0(e){return Tn([$e({jsonrpc:Ut("2.0"),id:Ze(),result:e}),$e({jsonrpc:Ut("2.0"),id:Ze(),error:$e({code:ao(),message:Ze(),data:nt(e4())})})])}const Y4=P0(ao());function Ct(e){return Ho(P0(e),Y4,t=>"error"in t?t:{...t,result:Vo(t.result,e)})}function Yn(e){return Ct($e({context:$e({slot:Ie()}),value:e}))}function ts(e){return $e({context:$e({slot:Ie()}),value:e})}const q4=$e({foundation:Ie(),foundationTerm:Ie(),initial:Ie(),taper:Ie(),terminal:Ie()});Ct(Je(qe($e({epoch:Ie(),effectiveSlot:Ie(),amount:Ie(),postBalance:Ie(),commission:nt(qe(Ie()))}))));const X4=Je($e({slot:Ie(),prioritizationFee:Ie()})),J4=$e({total:Ie(),validator:Ie(),foundation:Ie(),epoch:Ie()}),Q4=$e({epoch:Ie(),slotIndex:Ie(),slotsInEpoch:Ie(),absoluteSlot:Ie(),blockHeight:nt(Ie()),transactionCount:nt(Ie())}),e8=$e({slotsPerEpoch:Ie(),leaderScheduleSlotOffset:Ie(),warmup:er(),firstNormalEpoch:Ie(),firstNormalSlot:Ie()}),t8=f0(Ze(),Je(Ie())),Gr=qe(Tn([$e({}),Ze()])),n8=$e({err:Gr}),r8=Ut("receivedSignature");$e({"solana-core":Ze(),"feature-set":nt(Ie())});const o8=$e({program:Ze(),programId:Wt,parsed:ao()}),i8=$e({programId:Wt,accounts:Je(Wt),data:Ze()});Yn($e({err:qe(Tn([$e({}),Ze()])),logs:qe(Je(Ze())),accounts:nt(qe(Je(qe($e({executable:er(),owner:Ze(),lamports:Ie(),data:Je(Ze()),rentEpoch:nt(Ie())}))))),unitsConsumed:nt(Ie()),returnData:nt(qe($e({programId:Ze(),data:ma([Ze(),Ut("base64")])}))),innerInstructions:nt(qe(Je($e({index:Ie(),instructions:Je(Tn([o8,i8]))}))))})),Yn($e({byIdentity:f0(Ze(),Je(Ie())),range:$e({firstSlot:Ie(),lastSlot:Ie()})})),Ct(q4),Ct(J4),Ct(X4),Ct(Q4),Ct(e8),Ct(t8),Ct(Ie()),Yn($e({total:Ie(),circulating:Ie(),nonCirculating:Ie(),nonCirculatingAccounts:Je(Wt)}));const s8=$e({amount:Ze(),uiAmount:qe(Ie()),decimals:Ie(),uiAmountString:nt(Ze())});Yn(Je($e({address:Wt,amount:Ze(),uiAmount:qe(Ie()),decimals:Ie(),uiAmountString:nt(Ze())}))),Yn(Je($e({pubkey:Wt,account:$e({executable:er(),owner:Wt,lamports:Ie(),data:xa,rentEpoch:Ie()})})));const La=$e({program:Ze(),parsed:ao(),space:Ie()});Yn(Je($e({pubkey:Wt,account:$e({executable:er(),owner:Wt,lamports:Ie(),data:La,rentEpoch:Ie()})}))),Yn(Je($e({lamports:Ie(),address:Wt})));const Ca=$e({executable:er(),owner:Wt,lamports:Ie(),data:xa,rentEpoch:Ie()});$e({pubkey:Wt,account:Ca});const a8=Ho(Tn([pa(yt.Buffer),La]),Tn([U0,La]),e=>Array.isArray(e)?Vo(e,xa):e),c8=$e({executable:er(),owner:Wt,lamports:Ie(),data:a8,rentEpoch:Ie()});$e({pubkey:Wt,account:c8}),$e({state:Tn([Ut("active"),Ut("inactive"),Ut("activating"),Ut("deactivating")]),active:Ie(),inactive:Ie()}),Ct(Je($e({signature:Ze(),slot:Ie(),err:Gr,memo:qe(Ze()),blockTime:nt(qe(Ie()))}))),Ct(Je($e({signature:Ze(),slot:Ie(),err:Gr,memo:qe(Ze()),blockTime:nt(qe(Ie()))}))),$e({subscription:Ie(),result:ts(Ca)});const u8=$e({pubkey:Wt,account:Ca});$e({subscription:Ie(),result:ts(u8)});const f8=$e({parent:Ie(),slot:Ie(),root:Ie()});$e({subscription:Ie(),result:f8});const l8=Tn([$e({type:Tn([Ut("firstShredReceived"),Ut("completed"),Ut("optimisticConfirmation"),Ut("root")]),slot:Ie(),timestamp:Ie()}),$e({type:Ut("createdBank"),parent:Ie(),slot:Ie(),timestamp:Ie()}),$e({type:Ut("frozen"),slot:Ie(),timestamp:Ie(),stats:$e({numTransactionEntries:Ie(),numSuccessfulTransactions:Ie(),numFailedTransactions:Ie(),maxTransactionsPerEntry:Ie()})}),$e({type:Ut("dead"),slot:Ie(),timestamp:Ie(),err:Ze()})]);$e({subscription:Ie(),result:l8}),$e({subscription:Ie(),result:ts(Tn([n8,r8]))}),$e({subscription:Ie(),result:Ie()}),$e({pubkey:Ze(),gossip:qe(Ze()),tpu:qe(Ze()),rpc:qe(Ze()),version:qe(Ze())});const F0=$e({votePubkey:Ze(),nodePubkey:Ze(),activatedStake:Ie(),epochVoteAccount:er(),epochCredits:Je(ma([Ie(),Ie(),Ie()])),commission:Ie(),lastVote:Ie(),rootSlot:qe(Ie())});Ct($e({current:Je(F0),delinquent:Je(F0)}));const d8=Tn([Ut("processed"),Ut("confirmed"),Ut("finalized")]),h8=$e({slot:Ie(),confirmations:qe(Ie()),err:Gr,confirmationStatus:nt(d8)});Yn(Je(qe(h8))),Ct(Ie());const V0=$e({accountKey:Wt,writableIndexes:Je(Ie()),readonlyIndexes:Je(Ie())}),G0=$e({computeUnitLimit:qe(Ie()),heapSize:qe(Ie()),loadedAccountsDataSizeLimit:qe(Ie()),priorityFee:qe(Ie())}),Ma=$e({signatures:Je(Ze()),message:$e({accountKeys:Je(Ze()),header:$e({numRequiredSignatures:Ie(),numReadonlySignedAccounts:Ie(),numReadonlyUnsignedAccounts:Ie()}),instructions:Je($e({accounts:Je(Ie()),data:Ze(),programIdIndex:Ie()})),recentBlockhash:Ze(),addressTableLookups:nt(Je(V0)),transactionConfig:nt(qe(G0))})}),H0=$e({pubkey:Wt,signer:er(),writable:er(),source:nt(Tn([Ut("transaction"),Ut("lookupTable")]))}),$0=$e({accountKeys:Je(H0),signatures:Je(Ze())}),j0=$e({parsed:ao(),program:Ze(),programId:Wt}),K0=$e({accounts:Je(Wt),data:Ze(),programId:Wt}),p8=Tn([K0,j0]),m8=Tn([$e({parsed:ao(),program:Ze(),programId:Ze()}),$e({accounts:Je(Ze()),data:Ze(),programId:Ze()})]),W0=Ho(p8,m8,e=>"accounts"in e?Vo(e,K0):Vo(e,j0)),z0=$e({signatures:Je(Ze()),message:$e({accountKeys:Je(H0),instructions:Je(W0),recentBlockhash:Ze(),addressTableLookups:nt(qe(Je(V0))),transactionConfig:nt(qe(G0))})}),ns=$e({accountIndex:Ie(),mint:Ze(),owner:nt(Ze()),programId:nt(Ze()),uiTokenAmount:s8}),Z0=$e({writable:Je(Wt),readonly:Je(Wt)}),rs=$e({err:Gr,fee:Ie(),innerInstructions:nt(qe(Je($e({index:Ie(),instructions:Je($e({accounts:Je(Ie()),data:Ze(),programIdIndex:Ie()}))})))),preBalances:Je(Ie()),postBalances:Je(Ie()),logMessages:nt(qe(Je(Ze()))),preTokenBalances:nt(qe(Je(ns))),postTokenBalances:nt(qe(Je(ns))),loadedAddresses:nt(Z0),computeUnitsConsumed:nt(Ie()),costUnits:nt(Ie())}),Ba=$e({err:Gr,fee:Ie(),innerInstructions:nt(qe(Je($e({index:Ie(),instructions:Je(W0)})))),preBalances:Je(Ie()),postBalances:Je(Ie()),logMessages:nt(qe(Je(Ze()))),preTokenBalances:nt(qe(Je(ns))),postTokenBalances:nt(qe(Je(ns))),loadedAddresses:nt(Z0),computeUnitsConsumed:nt(Ie()),costUnits:nt(Ie())}),po=Tn([Ut(0),Ut(1),Ut("legacy")]),Hr=$e({pubkey:Ze(),lamports:Ie(),postBalance:qe(Ie()),rewardType:qe(Ze()),commission:nt(qe(Ie()))});Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je($e({transaction:Ma,meta:qe(rs),version:nt(po)})),rewards:nt(Je(Hr)),blockTime:qe(Ie()),blockHeight:qe(Ie())}))),Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),rewards:nt(Je(Hr)),blockTime:qe(Ie()),blockHeight:qe(Ie())}))),Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je($e({transaction:$0,meta:qe(rs),version:nt(po)})),rewards:nt(Je(Hr)),blockTime:qe(Ie()),blockHeight:qe(Ie())}))),Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je($e({transaction:z0,meta:qe(Ba),version:nt(po)})),rewards:nt(Je(Hr)),blockTime:qe(Ie()),blockHeight:qe(Ie())}))),Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je($e({transaction:$0,meta:qe(Ba),version:nt(po)})),rewards:nt(Je(Hr)),blockTime:qe(Ie()),blockHeight:qe(Ie())}))),Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),rewards:nt(Je(Hr)),blockTime:qe(Ie()),blockHeight:qe(Ie())}))),Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je($e({transaction:Ma,meta:qe(rs)})),rewards:nt(Je(Hr)),blockTime:qe(Ie())}))),Ct(qe($e({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),signatures:Je(Ze()),blockTime:qe(Ie())}))),Ct(qe($e({slot:Ie(),meta:qe(rs),blockTime:nt(qe(Ie())),transaction:Ma,version:nt(po)}))),Ct(qe($e({slot:Ie(),transaction:z0,meta:qe(Ba),blockTime:nt(qe(Ie())),version:nt(po)}))),Yn($e({blockhash:Ze(),lastValidBlockHeight:Ie()})),Yn(er());const g8=$e({slot:Ie(),numTransactions:Ie(),numSlots:Ie(),samplePeriodSecs:Ie()});Ct(Je(g8)),Yn(qe($e({feeCalculator:$e({lamportsPerSignature:Ie()})}))),Ct(Ze()),Ct(Ze());const v8=$e({err:Gr,logs:Je(Ze()),signature:Ze()});$e({result:ts(v8),subscription:Ie()}),Object.freeze({CreateLookupTable:{index:0,layout:le.struct([le.u32("instruction"),ho("recentSlot"),le.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:le.struct([le.u32("instruction")])},ExtendLookupTable:{index:2,layout:le.struct([le.u32("instruction"),ho(),le.seq(_t(),le.offset(le.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:le.struct([le.u32("instruction")])},CloseLookupTable:{index:4,layout:le.struct([le.u32("instruction")])}}),new ft("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:le.struct([le.u8("instruction"),le.u32("units"),le.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:le.struct([le.u8("instruction"),le.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:le.struct([le.u8("instruction"),le.u32("units")])},SetComputeUnitPrice:{index:3,layout:le.struct([le.u8("instruction"),ho("microLamports")])}}),new ft("ComputeBudget111111111111111111111111111111"),le.struct([le.u8("numSignatures"),le.u8("padding"),le.u16("signatureOffset"),le.u16("signatureInstructionIndex"),le.u16("publicKeyOffset"),le.u16("publicKeyInstructionIndex"),le.u16("messageDataOffset"),le.u16("messageDataSize"),le.u16("messageInstructionIndex")]),new ft("Ed25519SigVerify111111111111111111111111111"),D4.utils.isValidPrivateKey,le.struct([le.u8("numSignatures"),le.u16("signatureOffset"),le.u8("signatureInstructionIndex"),le.u16("ethAddressOffset"),le.u8("ethAddressInstructionIndex"),le.u16("messageDataOffset"),le.u16("messageDataSize"),le.u8("messageInstructionIndex"),le.blob(20,"ethAddress"),le.blob(64,"signature"),le.u8("recoveryId")]),new ft("KeccakSecp256k11111111111111111111111111111");var Y0;new ft("StakeConfig11111111111111111111111111111111");class ka{constructor(t,n,r){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}}Y0=ka,ka.default=new Y0(0,0,ft.default),Object.freeze({Initialize:{index:0,layout:le.struct([le.u32("instruction"),V4(),G4()])},Authorize:{index:1,layout:le.struct([le.u32("instruction"),_t("newAuthorized"),le.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:le.struct([le.u32("instruction")])},Split:{index:3,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},Withdraw:{index:4,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},Deactivate:{index:5,layout:le.struct([le.u32("instruction")])},Merge:{index:7,layout:le.struct([le.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:le.struct([le.u32("instruction"),_t("newAuthorized"),le.u32("stakeAuthorizationType"),lo("authoritySeed"),_t("authorityOwner")])}}),new ft("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:le.struct([le.u32("instruction"),H4()])},Authorize:{index:1,layout:le.struct([le.u32("instruction"),_t("newAuthorized"),le.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:le.struct([le.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:le.struct([le.u32("instruction"),$4()])}}),new ft("Vote111111111111111111111111111111111111111"),new ft("Va1idator1nfo111111111111111111111111111111"),$e({name:Ze(),website:nt(Ze()),details:nt(Ze()),iconUrl:nt(Ze()),keybaseUsername:nt(Ze())}),new ft("Vote111111111111111111111111111111111111111"),le.struct([_t("nodePubkey"),_t("authorizedWithdrawer"),le.u8("commission"),le.nu64(),le.seq(le.struct([le.nu64("slot"),le.u32("confirmationCount")]),le.offset(le.u32(),-8),"votes"),le.u8("rootSlotValid"),le.nu64("rootSlot"),le.nu64(),le.seq(le.struct([le.nu64("epoch"),_t("authorizedVoter")]),le.offset(le.u32(),-8),"authorizedVoters"),le.struct([le.seq(le.struct([_t("authorizedPubkey"),le.nu64("epochOfLastAuthorizedSwitch"),le.nu64("targetEpoch")]),32,"buf"),le.nu64("idx"),le.u8("isEmpty")],"priorVoters"),le.nu64(),le.seq(le.struct([le.nu64("epoch"),le.nu64("credits"),le.nu64("prevCredits")]),le.offset(le.u32(),-8),"epochCredits"),le.struct([le.nu64("slot"),le.nu64("timestamp")],"lastTimestamp")]);const y8=Object.freeze(Object.defineProperty({__proto__:null,FeeCalculatorLayout:D0,Lockup:ka,MAX_SEED_LENGTH:L0,Message:Vr,MessageAccountKeys:fo,MessageV0:Ko,MessageV1:Xi,PACKET_DATA_SIZE:Fr,PUBLIC_KEY_LENGTH:Zn,PublicKey:ft,SIGNATURE_LENGTH_IN_BYTES:Rr,SOLANA_SCHEMA:$o,Struct:T0,Transaction:Qi,TransactionInstruction:Ta,VERSION_1_MESSAGE_PREFIX:M0,VERSION_PREFIX_MASK:jo,VersionedMessage:Ji,VersionedTransaction:es},Symbol.toStringTag,{value:"Module"}));function w8(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let y=0;y<t.length;y++)t[y]=255;for(let y=0;y<e.length;y++){const A=e.charAt(y),O=A.charCodeAt(0);if(t[O]!==255)throw new TypeError(A+" is ambiguous");t[O]=y}const n=e.length,r=e.charAt(0),c=Math.log(n)/Math.log(256),i=Math.log(256)/Math.log(n);function l(y){if(y instanceof Uint8Array||(ArrayBuffer.isView(y)?y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength):Array.isArray(y)&&(y=Uint8Array.from(y))),!(y instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(y.length===0)return"";let A=0,O=0,S=0;const I=y.length;for(;S!==I&&y[S]===0;)S++,A++;const k=(I-S)*i+1>>>0,C=new Uint8Array(k);for(;S!==I;){let J=y[S],W=0;for(let se=k-1;(J!==0||W<O)&&se!==-1;se--,W++)J+=256*C[se]>>>0,C[se]=J%n>>>0,J=J/n>>>0;if(J!==0)throw new Error("Non-zero carry");O=W,S++}let V=k-O;for(;V!==k&&C[V]===0;)V++;let j=r.repeat(A);for(;V<k;++V)j+=e.charAt(C[V]);return j}function v(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return new Uint8Array;let A=0,O=0,S=0;for(;y[A]===r;)O++,A++;const I=(y.length-A)*c+1>>>0,k=new Uint8Array(I);for(;A<y.length;){const J=y.charCodeAt(A);if(J>255)return;let W=t[J];if(W===255)return;let se=0;for(let ue=I-1;(W!==0||se<S)&&ue!==-1;ue--,se++)W+=n*k[ue]>>>0,k[ue]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=se,A++}let C=I-S;for(;C!==I&&k[C]===0;)C++;const V=new Uint8Array(O+(I-C));let j=O;for(;C!==I;)V[j++]=k[C++];return V}function d(y){const A=v(y);if(A)return A;throw new Error("Non-base"+n+" character")}return{encode:l,decodeUnsafe:v,decode:d}}var _8="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const E8=w8(_8),os=y8,br=E8;var Da={exports:{}},q0;function R8(){return q0||(q0=1,(function(e){var t=(function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function l(d,y){if(!i[d]){i[d]={};for(var A=0;A<d.length;A++)i[d][d.charAt(A)]=A}return i[d][y]}var v={compressToBase64:function(d){if(d==null)return"";var y=v._compress(d,6,function(A){return r.charAt(A)});switch(y.length%4){default:case 0:return y;case 1:return y+"===";case 2:return y+"==";case 3:return y+"="}},decompressFromBase64:function(d){return d==null?"":d==""?null:v._decompress(d.length,32,function(y){return l(r,d.charAt(y))})},compressToUTF16:function(d){return d==null?"":v._compress(d,15,function(y){return n(y+32)})+" "},decompressFromUTF16:function(d){return d==null?"":d==""?null:v._decompress(d.length,16384,function(y){return d.charCodeAt(y)-32})},compressToUint8Array:function(d){for(var y=v.compress(d),A=new Uint8Array(y.length*2),O=0,S=y.length;O<S;O++){var I=y.charCodeAt(O);A[O*2]=I>>>8,A[O*2+1]=I%256}return A},decompressFromUint8Array:function(d){if(d==null)return v.decompress(d);for(var y=new Array(d.length/2),A=0,O=y.length;A<O;A++)y[A]=d[A*2]*256+d[A*2+1];var S=[];return y.forEach(function(I){S.push(n(I))}),v.decompress(S.join(""))},compressToEncodedURIComponent:function(d){return d==null?"":v._compress(d,6,function(y){return c.charAt(y)})},decompressFromEncodedURIComponent:function(d){return d==null?"":d==""?null:(d=d.replace(/ /g,"+"),v._decompress(d.length,32,function(y){return l(c,d.charAt(y))}))},compress:function(d){return v._compress(d,16,function(y){return n(y)})},_compress:function(d,y,A){if(d==null)return"";var O,S,I={},k={},C="",V="",j="",J=2,W=3,se=2,ue=[],oe=0,Ee=0,Re;for(Re=0;Re<d.length;Re+=1)if(C=d.charAt(Re),Object.prototype.hasOwnProperty.call(I,C)||(I[C]=W++,k[C]=!0),V=j+C,Object.prototype.hasOwnProperty.call(I,V))j=V;else{if(Object.prototype.hasOwnProperty.call(k,j)){if(j.charCodeAt(0)<256){for(O=0;O<se;O++)oe=oe<<1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++;for(S=j.charCodeAt(0),O=0;O<8;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}else{for(S=1,O=0;O<se;O++)oe=oe<<1|S,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=0;for(S=j.charCodeAt(0),O=0;O<16;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}J--,J==0&&(J=Math.pow(2,se),se++),delete k[j]}else for(S=I[j],O=0;O<se;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1;J--,J==0&&(J=Math.pow(2,se),se++),I[V]=W++,j=String(C)}if(j!==""){if(Object.prototype.hasOwnProperty.call(k,j)){if(j.charCodeAt(0)<256){for(O=0;O<se;O++)oe=oe<<1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++;for(S=j.charCodeAt(0),O=0;O<8;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}else{for(S=1,O=0;O<se;O++)oe=oe<<1|S,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=0;for(S=j.charCodeAt(0),O=0;O<16;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}J--,J==0&&(J=Math.pow(2,se),se++),delete k[j]}else for(S=I[j],O=0;O<se;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1;J--,J==0&&(J=Math.pow(2,se),se++)}for(S=2,O=0;O<se;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1;for(;;)if(oe=oe<<1,Ee==y-1){ue.push(A(oe));break}else Ee++;return ue.join("")},decompress:function(d){return d==null?"":d==""?null:v._decompress(d.length,32768,function(y){return d.charCodeAt(y)})},_decompress:function(d,y,A){var O=[],S=4,I=4,k=3,C="",V=[],j,J,W,se,ue,oe,Ee,Re={val:A(0),position:y,index:1};for(j=0;j<3;j+=1)O[j]=j;for(W=0,ue=Math.pow(2,2),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;switch(W){case 0:for(W=0,ue=Math.pow(2,8),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;Ee=n(W);break;case 1:for(W=0,ue=Math.pow(2,16),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;Ee=n(W);break;case 2:return""}for(O[3]=Ee,J=Ee,V.push(Ee);;){if(Re.index>d)return"";for(W=0,ue=Math.pow(2,k),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;switch(Ee=W){case 0:for(W=0,ue=Math.pow(2,8),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;O[I++]=n(W),Ee=I-1,S--;break;case 1:for(W=0,ue=Math.pow(2,16),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;O[I++]=n(W),Ee=I-1,S--;break;case 2:return V.join("")}if(S==0&&(S=Math.pow(2,k),k++),O[Ee])C=O[Ee];else if(Ee===I)C=J+J.charAt(0);else return null;V.push(C),O[I++]=J+C.charAt(0),S--,J=C,S==0&&(S=Math.pow(2,k),k++)}}};return v})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Da)),Da.exports}var b8=R8();const In=Gs(b8);var Ua=(e=>(e.USD="USD",e.AED="AED",e.AFN="AFN",e.ALL="ALL",e.AMD="AMD",e.ANG="ANG",e.AOA="AOA",e.ARS="ARS",e.AUD="AUD",e.AWG="AWG",e.AZN="AZN",e.BAM="BAM",e.BBD="BBD",e.BDT="BDT",e.BGN="BGN",e.BHD="BHD",e.BIF="BIF",e.BMD="BMD",e.BND="BND",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BTN="BTN",e.BWP="BWP",e.BYN="BYN",e.BZD="BZD",e.CAD="CAD",e.CHF="CHF",e.CLF="CLF",e.CLP="CLP",e.CNY="CNY",e.COP="COP",e.CRC="CRC",e.CUP="CUP",e.CVE="CVE",e.CZK="CZK",e.DJF="DJF",e.DKK="DKK",e.DOP="DOP",e.DZD="DZD",e.EGP="EGP",e.ETB="ETB",e.EUR="EUR",e.FJD="FJD",e.GBP="GBP",e.GEL="GEL",e.GHS="GHS",e.GMD="GMD",e.GNF="GNF",e.GTQ="GTQ",e.GYD="GYD",e.HKD="HKD",e.HNL="HNL",e.HTG="HTG",e.HUF="HUF",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.IQD="IQD",e.IRR="IRR",e.ISK="ISK",e.JMD="JMD",e.JOD="JOD",e.JPY="JPY",e.KES="KES",e.KGS="KGS",e.KHR="KHR",e.KMF="KMF",e.KRW="KRW",e.KWD="KWD",e.KYD="KYD",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.LRD="LRD",e.LSL="LSL",e.LYD="LYD",e.MAD="MAD",e.MDL="MDL",e.MGA="MGA",e.MKD="MKD",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MRU="MRU",e.MUR="MUR",e.MWK="MWK",e.MVR="MVR",e.MXN="MXN",e.MYR="MYR",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.NIO="NIO",e.NOK="NOK",e.NPR="NPR",e.NZD="NZD",e.OMR="OMR",e.PAB="PAB",e.PEN="PEN",e.PGK="PGK",e.PHP="PHP",e.PKR="PKR",e.PLN="PLN",e.PYG="PYG",e.QAR="QAR",e.RON="RON",e.RSD="RSD",e.RWF="RWF",e.SAR="SAR",e.SCR="SCR",e.SDG="SDG",e.SEK="SEK",e.SGD="SGD",e.SLE="SLE",e.SLL="SLL",e.SOS="SOS",e.SRD="SRD",e.STN="STN",e.SVC="SVC",e.SYP="SYP",e.SZL="SZL",e.THB="THB",e.TJS="TJS",e.TMT="TMT",e.TND="TND",e.TOP="TOP",e.TRY="TRY",e.TTD="TTD",e.TWD="TWD",e.TZS="TZS",e.UAH="UAH",e.UGX="UGX",e.UYU="UYU",e.UZS="UZS",e.VND="VND",e.VUV="VUV",e.WST="WST",e.XAF="XAF",e.XCD="XCD",e.XOF="XOF",e.XPF="XPF",e.YER="YER",e.ZAR="ZAR",e.ZMW="ZMW",e.ZWL="ZWL",e.CDF="CDF",e.ERN="ERN",e.FKP="FKP",e.KPW="KPW",e.RUB="RUB",e.SBD="SBD",e.SHP="SHP",e.SSP="SSP",e.VES="VES",e))(Ua||{});const A8={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"},X0={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function S8(e){return e in X0}const J0={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function I8(e){return e in J0}const O8=new Set(["CLF"]),N8=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),T8=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function x8(e){return O8.has(e)?4:N8.has(e)?3:T8.has(e)?0:2}function L8(e,t){return e.currency===t}function C8(e){return{base:e.to,rate:1/e.rate,to:e.base}}var M8={269:function(e,t,n){function r(o,a){return new Promise((s=>setTimeout(s,o,a)))}function c(o){return!!o&&typeof o.then=="function"}function i(o,a){try{const s=o();c(s)?s.then((u=>a(!0,u)),(u=>a(!1,u))):a(!0,s)}catch(s){a(!1,s)}}async function l(o,a,s=16){const u=Array(o.length);let h=Date.now();for(let m=0;m<o.length;++m){u[m]=a(o[m],m);const p=Date.now();p>=h+s&&(h=p,await new Promise((N=>{const P=new MessageChannel;P.port1.onmessage=()=>N(),P.port2.postMessage(null)})))}return u}function v(o){return o.then(void 0,(()=>{})),o}function d(o){return parseInt(o)}function y(o){return parseFloat(o)}function A(o,a){return typeof o=="number"&&isNaN(o)?a:o}function O(o){return o.reduce(((a,s)=>a+(s?1:0)),0)}function S(o,a){const s=o[0]>>>16,u=65535&o[0],h=o[1]>>>16,m=65535&o[1],p=a[0]>>>16,N=65535&a[0],P=a[1]>>>16;let G=0,T=0,U=0,z=0;z+=m+(65535&a[1]),U+=z>>>16,z&=65535,U+=h+P,T+=U>>>16,U&=65535,T+=u+N,G+=T>>>16,T&=65535,G+=s+p,G&=65535,o[0]=G<<16|T,o[1]=U<<16|z}function I(o,a){const s=o[0]>>>16,u=65535&o[0],h=o[1]>>>16,m=65535&o[1],p=a[0]>>>16,N=65535&a[0],P=a[1]>>>16,G=65535&a[1];let T=0,U=0,z=0,Y=0;Y+=m*G,z+=Y>>>16,Y&=65535,z+=h*G,U+=z>>>16,z&=65535,z+=m*P,U+=z>>>16,z&=65535,U+=u*G,T+=U>>>16,U&=65535,U+=h*P,T+=U>>>16,U&=65535,U+=m*N,T+=U>>>16,U&=65535,T+=s*G+u*P+h*N+m*p,T&=65535,o[0]=T<<16|U,o[1]=z<<16|Y}function k(o,a){const s=o[0];(a%=64)==32?(o[0]=o[1],o[1]=s):a<32?(o[0]=s<<a|o[1]>>>32-a,o[1]=o[1]<<a|s>>>32-a):(a-=32,o[0]=o[1]<<a|s>>>32-a,o[1]=s<<a|o[1]>>>32-a)}function C(o,a){(a%=64)!=0&&(a<32?(o[0]=o[1]>>>32-a,o[1]=o[1]<<a):(o[0]=o[1]<<a-32,o[1]=0))}function V(o,a){o[0]^=a[0],o[1]^=a[1]}n.r(t),n.d(t,{ERROR_API_KEY_EXPIRED:function(){return ks},ERROR_API_KEY_INVALID:function(){return Bs},ERROR_API_KEY_MISSING:function(){return Ms},ERROR_BAD_REQUEST_FORMAT:function(){return pd},ERROR_BAD_RESPONSE_FORMAT:function(){return mc},ERROR_CLIENT_TIMEOUT:function(){return dc},ERROR_CSP_BLOCK:function(){return gc},ERROR_FORBIDDEN_ENDPOINT:function(){return nl},ERROR_FORBIDDEN_HEADER:function(){return wd},ERROR_FORBIDDEN_ORIGIN:function(){return yd},ERROR_GENERAL_SERVER_FAILURE:function(){return md},ERROR_HANDLE_AGENT_DATA:function(){return yc},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return tl},ERROR_INTEGRATION_FAILURE:function(){return rl},ERROR_INVALID_ENDPOINT:function(){return vc},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return al},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return sl},ERROR_NETWORK_ABORT:function(){return pc},ERROR_NETWORK_CONNECTION:function(){return hc},ERROR_NETWORK_RESTRICTED:function(){return il},ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:function(){return cl},ERROR_RATE_LIMIT:function(){return vd},ERROR_SERVER_TIMEOUT:function(){return gd},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return Qf},ERROR_TOKEN_EXPIRED:function(){return mw},ERROR_TOKEN_INVALID:function(){return pw},ERROR_TOKEN_MISSING:function(){return hw},ERROR_UNSUPPORTED_VERSION:function(){return el},ERROR_WRONG_REGION:function(){return Jf},default:function(){return gw},defaultEndpoint:function(){return _s},defaultTlsEndpoint:function(){return Es},handleAgentData:function(){return ql},load:function(){return Yl},makeBotdModule:function(){return Qy},makeConsoleDebugModule:function(){return fw},makeIdentificationModule:function(){return cw},makeLatencyReportModule:function(){return e9},makeRemoteDebugModule:function(){return dw},makeValidationModule:function(){return uw}});const j=[4283543511,3981806797],J=[3301882366,444984403];function W(o){const a=[0,o[0]>>>1];V(o,a),I(o,j),a[1]=o[0]>>>1,V(o,a),I(o,J),a[1]=o[0]>>>1,V(o,a)}const se=[2277735313,289559509],ue=[1291169091,658871167],oe=[0,5],Ee=[0,1390208809],Re=[0,944331445];function ne(o){return typeof o!="function"}function ie(o,a,s,u){const h=Object.keys(o).filter((p=>!(function(N,P){for(let G=0,T=N.length;G<T;++G)if(N[G]===P)return!0;return!1})(s,p))),m=v(l(h,(p=>(function(N,P){const G=v(new Promise((T=>{const U=Date.now();i(N.bind(null,P),((...z)=>{const Y=Date.now()-U;if(!z[0])return T((()=>({error:z[1],duration:Y})));const he=z[1];if(ne(he))return T((()=>({value:he,duration:Y})));T((()=>new Promise((_e=>{const Be=Date.now();i(he,((...Te)=>{const xe=Y+Date.now()-Be;if(!Te[0])return _e({error:Te[1],duration:xe});_e({value:Te[1],duration:xe})}))}))))}))})));return function(){return G.then((T=>T()))}})(o[p],a)),u));return async function(){const p=await m,N=await l(p,(T=>v(T())),u),P=await Promise.all(N),G={};for(let T=0;T<h.length;++T)G[h[T]]=P[T];return G}}function de(o,a){const s=u=>ne(u)?a(u):()=>{const h=u();return c(h)?h.then(a):a(h)};return u=>{const h=o(u);return c(h)?h.then(s):s(h)}}function ge(){const o=window,a=navigator;return O(["MSCSSMatrix"in o,"msSetImmediate"in o,"msIndexedDB"in o,"msMaxTouchPoints"in a,"msPointerEnabled"in a])>=4}function D(){const o=window,a=navigator;return O(["msWriteProfilerMark"in o,"MSStream"in o,"msLaunchUri"in a,"msSaveBlob"in a])>=3&&!ge()}function f(){const o=window,a=navigator;return O(["webkitPersistentStorage"in a,"webkitTemporaryStorage"in a,(a.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in o,"BatteryManager"in o,"webkitMediaStream"in o,"webkitSpeechGrammar"in o])>=5}function R(){const o=window;return O(["ApplePayError"in o,"CSSPrimitiveValue"in o,"Counter"in o,navigator.vendor.indexOf("Apple")===0,"RGBColor"in o,"WebKitMediaKeys"in o])>=4}function B(){const o=window,{HTMLElement:a,Document:s}=o;return O(["safari"in o,!("ongestureend"in o),!("TouchEvent"in o),!("orientation"in o),a&&!("autocapitalize"in a.prototype),s&&"pointerLockElement"in s.prototype])>=4}function $(){var o,a;const s=window;return O(["buildID"in navigator,"MozAppearance"in((a=(o=document.documentElement)===null||o===void 0?void 0:o.style)!==null&&a!==void 0?a:{}),"onmozfullscreenchange"in s,"mozInnerScreenX"in s,"CSSMozDocumentRule"in s,"CanvasCaptureMediaStream"in s])>=4}function Z(){const{CSS:o}=window;return O([o.supports("selector(::details-content)"),o.supports("selector(::before::marker)"),o.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function ee(){const o=document;return o.fullscreenElement||o.msFullscreenElement||o.mozFullScreenElement||o.webkitFullscreenElement||null}function ae(){const o=f(),a=$(),s=window,u=navigator,h="connection";return o?O([!("SharedWorker"in s),u[h]&&"ontypechange"in u[h],!("sinkId"in new Audio)])>=2:!!a&&O(["onorientationchange"in s,"orientation"in s,/android/i.test(u.appVersion)])>=2}function K(){const o=navigator,a=window,s=Audio.prototype,{visualViewport:u}=a;return O(["srLatency"in s,"srChannelCount"in s,"devicePosture"in o,u&&"segments"in u,"getTextInformation"in Image.prototype])>=3}function g(){const o=window,a=o.OfflineAudioContext||o.webkitOfflineAudioContext;if(!a)return-2;if(R()&&!B()&&!(function(){const P=window;return O(["DOMRectList"in P,"RTCPeerConnectionIceEvent"in P,"SVGGeometryElement"in P,"ontransitioncancel"in P])>=3})())return-1;const s=new a(1,5e3,44100),u=s.createOscillator();u.type="triangle",u.frequency.value=1e4;const h=s.createDynamicsCompressor();h.threshold.value=-50,h.knee.value=40,h.ratio.value=12,h.attack.value=0,h.release.value=.25,u.connect(h),h.connect(s.destination),u.start(0);const[m,p]=(function(P){let G=()=>{};return[new Promise(((T,U)=>{let z=!1,Y=0,he=0;P.oncomplete=Te=>T(Te.renderedBuffer);const _e=()=>{setTimeout((()=>U(_("timeout"))),Math.min(500,he+5e3-Date.now()))},Be=()=>{try{const Te=P.startRendering();switch(c(Te)&&v(Te),P.state){case"running":he=Date.now(),z&&_e();break;case"suspended":document.hidden||Y++,z&&Y>=3?U(_("suspended")):setTimeout(Be,500)}}catch(Te){U(Te)}};Be(),G=()=>{z||(z=!0,he>0&&_e())}})),G]})(s),N=v(m.then((P=>(function(G){let T=0;for(let U=0;U<G.length;++U)T+=Math.abs(G[U]);return T})(P.getChannelData(0).subarray(4500))),(P=>{if(P.name==="timeout"||P.name==="suspended")return-3;throw P})));return()=>(p(),N)}function _(o){const a=new Error(o);return a.name=o,a}async function H(o,a,s=50){var u,h,m;const p=document;for(;!p.body;)await r(s);const N=p.createElement("iframe");try{for(await new Promise(((P,G)=>{let T=!1;const U=()=>{T=!0,P()};N.onload=U,N.onerror=he=>{T=!0,G(he)};const{style:z}=N;z.setProperty("display","block","important"),z.position="absolute",z.top="0",z.left="0",z.visibility="hidden",a&&"srcdoc"in N?N.srcdoc=a:N.src="about:blank",p.body.appendChild(N);const Y=()=>{var he,_e;T||(((_e=(he=N.contentWindow)===null||he===void 0?void 0:he.document)===null||_e===void 0?void 0:_e.readyState)==="complete"?U():setTimeout(Y,10))};Y()}));!(!((h=(u=N.contentWindow)===null||u===void 0?void 0:u.document)===null||h===void 0)&&h.body);)await r(s);return await o(N,N.contentWindow)}finally{(m=N.parentNode)===null||m===void 0||m.removeChild(N)}}function X(o){const[a,s]=(function(h){var m,p;const N=`Unexpected syntax '${h}'`,P=/^\s*([a-z-]*)(.*)$/i.exec(h),G=P[1]||void 0,T={},U=/([.:#][\w-]+|\[.+?\])/gi,z=(Y,he)=>{T[Y]=T[Y]||[],T[Y].push(he)};for(;;){const Y=U.exec(P[2]);if(!Y)break;const he=Y[0];switch(he[0]){case".":z("class",he.slice(1));break;case"#":z("id",he.slice(1));break;case"[":{const _e=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(he);if(!_e)throw new Error(N);z(_e[1],(p=(m=_e[4])!==null&&m!==void 0?m:_e[5])!==null&&p!==void 0?p:"");break}default:throw new Error(N)}}return[G,T]})(o),u=document.createElement(a??"div");for(const h of Object.keys(s)){const m=s[h].join(" ");h==="style"?me(u.style,m):u.setAttribute(h,m)}return u}function me(o,a){for(const s of a.split(";")){const u=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(s);if(u){const[,h,m,,p]=u;o.setProperty(h,m,p||"")}}}function ye(o){let a,s,u=!1;const[h,m]=(function(){const p=document.createElement("canvas");return p.width=1,p.height=1,[p,p.getContext("2d")]})();return(function(p,N){return!(!N||!p.toDataURL)})(h,m)?(u=(function(p){return p.rect(0,0,10,10),p.rect(2,2,6,6),!p.isPointInPath(5,5,"evenodd")})(m),[a,s]=(function(p,N){(function(G,T){G.width=240,G.height=60,T.textBaseline="alphabetic",T.fillStyle="#f60",T.fillRect(100,1,62,20),T.fillStyle="#069",T.font='11pt "Times New Roman"';const U="Cwm fjordbank gly 😃";T.fillText(U,2,15),T.fillStyle="rgba(102, 204, 0, 0.2)",T.font="18pt Arial",T.fillText(U,4,45)})(p,N);const P=Fe(p);return P!==Fe(p)?["unstable","unstable"]:((function(G,T){G.width=122,G.height=110,T.globalCompositeOperation="multiply";for(const[U,z,Y]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])T.fillStyle=U,T.beginPath(),T.arc(z,Y,40,0,2*Math.PI,!0),T.closePath(),T.fill();T.fillStyle="#f9c",T.arc(60,60,60,0,2*Math.PI,!0),T.arc(60,60,20,0,2*Math.PI,!0),T.fill("evenodd")})(p,N),[Fe(p),P])})(h,m)):a=s="unsupported",{winding:u,geometry:a,text:s}}function Fe(o){return o.toDataURL()}function We(){const o=screen,a=u=>A(d(u),null),s=[a(o.width),a(o.height)];return s.sort().reverse(),s}let st,at;function ct(){return(function(){if(at!==void 0)return;const o=()=>{const a=Et();pt(a)?at=setTimeout(o,2500):(st=a,at=void 0)};o()})(),async()=>{let o=Et();if(pt(o)){if(st)return[...st];ee()&&(await(function(){const a=document;return(a.exitFullscreen||a.msExitFullscreen||a.mozCancelFullScreen||a.webkitExitFullscreen).call(a)})(),o=Et())}return pt(o)||(st=o),o}}function Et(){const o=screen;return[A(y(o.availTop),null),A(y(o.width)-y(o.availWidth)-A(y(o.availLeft),0),null),A(y(o.height)-y(o.availHeight)-A(y(o.availTop),0),null),A(y(o.availLeft),null)]}function pt(o){for(let a=0;a<4;++a)if(o[a])return!1;return!0}function Rt(o){o.style.setProperty("visibility","hidden","important"),o.style.setProperty("display","block","important")}function Pt(o){return matchMedia(`(inverted-colors: ${o})`).matches}function wt(o){return matchMedia(`(forced-colors: ${o})`).matches}function w(o){return matchMedia(`(prefers-contrast: ${o})`).matches}function x(o){return matchMedia(`(prefers-reduced-motion: ${o})`).matches}function M(o){return matchMedia(`(prefers-reduced-transparency: ${o})`).matches}function te(o){return matchMedia(`(dynamic-range: ${o})`).matches}const fe=Math,pe=()=>0,Me=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]),tt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Qe=["FRAGMENT_SHADER","VERTEX_SHADER"],F=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],E="WEBGL_debug_renderer_info";function b(o){if(o.webgl)return o.webgl.context;const a=document.createElement("canvas");let s;a.addEventListener("webglCreateContextError",(()=>s=void 0));for(const u of["webgl","experimental-webgl"]){try{s=a.getContext(u)}catch{}if(s)break}return o.webgl={context:s},s}function q(o,a,s){const u=o.getShaderPrecisionFormat(o[a],o[s]);return u?[u.rangeMin,u.rangeMax,u.precision]:[]}function ve(o){return Object.keys(o.__proto__).filter(be)}function be(o){return typeof o=="string"&&!o.match(/[^A-Z0-9_x]/)}function L(){return $()}function re(o){return typeof o.getParameter=="function"}const Q=async function({debug:o}={}){if(!R()&&!ae())return;const a=(function(){const p=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',p("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",p("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",p("LnNwb25zb3JpdA=="),".ylamainos",p("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",p("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",p("LmhlYWRlci1ibG9ja2VkLWFk"),p("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",p("I2FkXzMwMFgyNTA="),p("I2Jhbm5lcmZsb2F0MjI="),p("I2NhbXBhaWduLWJhbm5lcg=="),p("I0FkLUNvbnRlbnQ=")],adGuardChinese:[p("LlppX2FkX2FfSA=="),p("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",p("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),p("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",p("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",p("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",p("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),p("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),p("LmFkZ29vZ2xl"),p("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[p("YW1wLWF1dG8tYWRz"),p("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",p("I2FkX2ludmlld19hcmVh")],adGuardRussian:[p("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),p("LnJlY2xhbWE="),'div[id^="smi2adblock"]',p("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[p("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),p("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",p("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),p("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),p("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",p("I3Jla2xhbWk="),p("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),p("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),p("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[p("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",p("LndpZGdldF9wb19hZHNfd2lkZ2V0"),p("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",p("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[p("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),p("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",p("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",p("I3Jla2xhbW5pLWJveA=="),p("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",p("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[p("I2FkdmVydGVudGll"),p("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",p("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",p("LnNwb25zb3JsaW5rZ3J1ZW4="),p("I3dlcmJ1bmdza3k="),p("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),p("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[p("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",p("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[p("LnJla2xhbW9zX3RhcnBhcw=="),p("LnJla2xhbW9zX251b3JvZG9z"),p("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),p("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),p("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[p("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:[p("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),p("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",p("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[p("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),p("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),p("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",p("LmFkX19tYWlu"),p("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[p("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[p("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),p("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[p("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),p("I2xpdmVyZUFkV3JhcHBlcg=="),p("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),p("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[p("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",p("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),p("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),p("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[p("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),p("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),p("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",p("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),p("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),p("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),p("ZGl2I3NrYXBpZWNfYWQ=")],ro:[p("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),p("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),p("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[p("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),p("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),p("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",p("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),p("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",p("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}})(),s=Object.keys(a),u=[].concat(...s.map((p=>a[p]))),h=await(async function(p){var N;const P=document,G=P.createElement("div"),T=new Array(p.length),U={};Rt(G);for(let z=0;z<p.length;++z){const Y=X(p[z]);Y.tagName==="DIALOG"&&Y.show();const he=P.createElement("div");Rt(he),he.appendChild(Y),G.appendChild(he),T[z]=Y}for(;!P.body;)await r(50);P.body.appendChild(G);try{for(let z=0;z<p.length;++z)T[z].offsetParent||(U[p[z]]=!0)}finally{(N=G.parentNode)===null||N===void 0||N.removeChild(G)}return U})(u);o&&(function(p,N){let P="DOM blockers debug:\n```";for(const G of Object.keys(p)){P+=`
8
+ ${G}:`;for(const T of p[G])P+=`
9
+ ${N[T]?"🚫":"➡️"} ${T}`}console.log(`${P}
10
+ \`\`\``)})(a,h);const m=s.filter((p=>{const N=a[p];return O(N.map((P=>h[P])))>.6*N.length}));return m.sort(),m},we=function(){return navigator.oscpu},Se=function(){const o=navigator,a=[],s=o.language||o.userLanguage||o.browserLanguage||o.systemLanguage;if(s!==void 0&&a.push([s]),Array.isArray(o.languages))f()&&(function(){const u=window;return O([!("MediaSettingsRange"in u),"RTCEncodedAudioFrame"in u,""+u.Intl=="[object Intl]",""+u.Reflect=="[object Reflect]"])>=3})()||a.push(o.languages);else if(typeof o.languages=="string"){const u=o.languages;u&&a.push(u.split(","))}return a},Ne=function(){return window.screen.colorDepth},Pe=function(){return A(y(navigator.deviceMemory),void 0)},Ge=function(){const o=A(d(navigator.hardwareConcurrency),void 0);return o!==void 0&&$()&&Z()?o>=8?8:4:o},ce=function(){var o;const a=(o=window.Intl)===null||o===void 0?void 0:o.DateTimeFormat;if(a){const u=new a().resolvedOptions().timeZone;if(u)return u}const s=-(function(){const u=new Date().getFullYear();return Math.max(y(new Date(u,0,1).getTimezoneOffset()),y(new Date(u,6,1).getTimezoneOffset()))})();return`UTC${s>=0?"+":""}${s}`},je=function(){try{return!!window.sessionStorage}catch{return!0}},ze=function(){try{return!!window.localStorage}catch{return!0}},Xe=function(){return!!window.openDatabase},et=function(){return navigator.cpuClass},ut=function(){const{platform:o}=navigator;return o==="MacIntel"&&R()&&!B()?(function(){if(navigator.platform==="iPad")return!0;const a=screen,s=a.width/a.height;return O(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,s>.65&&s<1.53])>=2})()?"iPad":"iPhone":o},ot=function(){const o=navigator.plugins;if(!o)return;const a=[];for(let s=0;s<o.length;++s){const u=o[s];if(!u)continue;const h=[];for(let m=0;m<u.length;++m){const p=u[m];h.push({type:p.type,suffixes:p.suffixes})}a.push({name:u.name,description:u.description,mimeTypes:h})}return a},rt=function(){const o=navigator;let a,s=0;o.maxTouchPoints!==void 0?s=d(o.maxTouchPoints):o.msMaxTouchPoints!==void 0&&(s=o.msMaxTouchPoints);try{document.createEvent("TouchEvent"),a=!0}catch{a=!1}return{maxTouchPoints:s,touchEvent:a,touchStart:"ontouchstart"in window}},$t=function(){return navigator.vendor||""},ht=function(){const o=[];for(const a of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const s=window[a];s&&typeof s=="object"&&o.push(a)}return o.sort()},gt=function(){const o=document;try{o.cookie="cookietest=1; SameSite=Strict;";const a=o.cookie.indexOf("cookietest=")!==-1;return o.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",a}catch{return!1}},tn=function(){for(const o of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${o})`).matches)return o},It=function(){return!!Pt("inverted")||!Pt("none")&&void 0},Nt=function(){return!!wt("active")||!wt("none")&&void 0},lr=function(){if(matchMedia("(min-monochrome: 0)").matches){for(let o=0;o<=100;++o)if(matchMedia(`(max-monochrome: ${o})`).matches)return o;throw new Error("Too high value")}},kt=function(){return w("no-preference")?0:w("high")||w("more")?1:w("low")||w("less")?-1:w("forced")?10:void 0},Mt=function(){return!!x("reduce")||!x("no-preference")&&void 0},$r=function(){return!!M("reduce")||!M("no-preference")&&void 0},zt=function(){return!!te("high")||!te("standard")&&void 0},Zt=function(){const o=fe.acos||pe,a=fe.acosh||pe,s=fe.asin||pe,u=fe.asinh||pe,h=fe.atanh||pe,m=fe.atan||pe,p=fe.sin||pe,N=fe.sinh||pe,P=fe.cos||pe,G=fe.cosh||pe,T=fe.tan||pe,U=fe.tanh||pe,z=fe.exp||pe,Y=fe.expm1||pe,he=fe.log1p||pe;return{acos:o(.12312423423423424),acosh:a(1e308),acoshPf:(_e=1e154,fe.log(_e+fe.sqrt(_e*_e-1))),asin:s(.12312423423423424),asinh:u(1),asinhPf:fe.log(1+fe.sqrt(2)),atanh:h(.5),atanhPf:fe.log(3)/2,atan:m(.5),sin:p(-1e300),sinh:N(1),sinhPf:fe.exp(1)-1/fe.exp(1)/2,cos:P(10.000000000123),cosh:G(1),coshPf:(fe.exp(1)+1/fe.exp(1))/2,tan:T(-1e300),tanh:U(1),tanhPf:(fe.exp(2)-1)/(fe.exp(2)+1),exp:z(1),expm1:Y(1),expm1Pf:fe.exp(1)-1,log1p:he(10),log1pPf:fe.log(11),powPI:fe.pow(fe.PI,-100)};var _e},ps=function(){return navigator.pdfViewerEnabled},Yt=function(){const o=new Float32Array(1),a=new Uint8Array(o.buffer);return o[0]=1/0,o[0]=o[0]-o[0],a[3]},qt=function(){var o;const a=document.createElement("a"),s=(o=a.attributionSourceId)!==null&&o!==void 0?o:a.attributionsourceid;return s===void 0?void 0:String(s)},Xo=function(){if(!ae()&&!R())return-2;if(!window.AudioContext)return-1;const o=new AudioContext().baseLatency;return o==null?-1:isFinite(o)?o:-3},Jo=function(){if(!window.Intl)return-1;const o=window.Intl.DateTimeFormat;if(!o)return-2;const a=o().resolvedOptions().locale;return a||a===""?a:-3},Qo=function({cache:o}){var a,s,u,h,m,p;const N=b(o);if(!N)return-1;if(!re(N))return-2;const P=L()?null:N.getExtension(E);return{version:((a=N.getParameter(N.VERSION))===null||a===void 0?void 0:a.toString())||"",vendor:((s=N.getParameter(N.VENDOR))===null||s===void 0?void 0:s.toString())||"",vendorUnmasked:P?(u=N.getParameter(P.UNMASKED_VENDOR_WEBGL))===null||u===void 0?void 0:u.toString():"",renderer:((h=N.getParameter(N.RENDERER))===null||h===void 0?void 0:h.toString())||"",rendererUnmasked:P?(m=N.getParameter(P.UNMASKED_RENDERER_WEBGL))===null||m===void 0?void 0:m.toString():"",shadingLanguageVersion:((p=N.getParameter(N.SHADING_LANGUAGE_VERSION))===null||p===void 0?void 0:p.toString())||""}},ei=function({cache:o}){const a=b(o);if(!a)return-1;if(!re(a))return-2;const s=a.getSupportedExtensions(),u=a.getContextAttributes(),h=[],m=[],p=[],N=[],P=[];if(u)for(const T of Object.keys(u))m.push(`${T}=${u[T]}`);const G=ve(a);for(const T of G){const U=a[T];p.push(`${T}=${U}${Me.has(U)?`=${a.getParameter(U)}`:""}`)}if(s)for(const T of s){if(T===E&&L()||T==="WEBGL_polygon_mode"&&(f()||R()))continue;const U=a.getExtension(T);if(U)for(const z of ve(U)){const Y=U[z];N.push(`${z}=${Y}${tt.has(Y)?`=${a.getParameter(Y)}`:""}`)}else h.push(T)}for(const T of Qe)for(const U of F){const z=q(a,T,U);P.push(`${T}.${U}=${z.join(",")}`)}return N.sort(),p.sort(),{contextAttributes:m,parameters:p,shaderPrecisions:P,extensions:s,extensionParameters:N,unsupportedExtensions:h}},dn=function(o,a){const s=(function(z){const Y=new Uint8Array(z.length);for(let he=0;he<z.length;he++){const _e=z.charCodeAt(he);if(_e>127)return new TextEncoder().encode(z);Y[he]=_e}return Y})(o);a=a||0;const u=[0,s.length],h=u[1]%16,m=u[1]-h,p=[0,a],N=[0,a],P=[0,0],G=[0,0];let T;for(T=0;T<m;T+=16)P[0]=s[T+4]|s[T+5]<<8|s[T+6]<<16|s[T+7]<<24,P[1]=s[T]|s[T+1]<<8|s[T+2]<<16|s[T+3]<<24,G[0]=s[T+12]|s[T+13]<<8|s[T+14]<<16|s[T+15]<<24,G[1]=s[T+8]|s[T+9]<<8|s[T+10]<<16|s[T+11]<<24,I(P,se),k(P,31),I(P,ue),V(p,P),k(p,27),S(p,N),I(p,oe),S(p,Ee),I(G,ue),k(G,33),I(G,se),V(N,G),k(N,31),S(N,p),I(N,oe),S(N,Re);P[0]=0,P[1]=0,G[0]=0,G[1]=0;const U=[0,0];switch(h){case 15:U[1]=s[T+14],C(U,48),V(G,U);case 14:U[1]=s[T+13],C(U,40),V(G,U);case 13:U[1]=s[T+12],C(U,32),V(G,U);case 12:U[1]=s[T+11],C(U,24),V(G,U);case 11:U[1]=s[T+10],C(U,16),V(G,U);case 10:U[1]=s[T+9],C(U,8),V(G,U);case 9:U[1]=s[T+8],V(G,U),I(G,ue),k(G,33),I(G,se),V(N,G);case 8:U[1]=s[T+7],C(U,56),V(P,U);case 7:U[1]=s[T+6],C(U,48),V(P,U);case 6:U[1]=s[T+5],C(U,40),V(P,U);case 5:U[1]=s[T+4],C(U,32),V(P,U);case 4:U[1]=s[T+3],C(U,24),V(P,U);case 3:U[1]=s[T+2],C(U,16),V(P,U);case 2:U[1]=s[T+1],C(U,8),V(P,U);case 1:U[1]=s[T],V(P,U),I(P,se),k(P,31),I(P,ue),V(p,P)}return V(p,u),V(N,u),S(p,N),S(N,p),W(p),W(N),S(p,N),S(N,p),("00000000"+(p[0]>>>0).toString(16)).slice(-8)+("00000000"+(p[1]>>>0).toString(16)).slice(-8)+("00000000"+(N[0]>>>0).toString(16)).slice(-8)+("00000000"+(N[1]>>>0).toString(16)).slice(-8)},ti="awesomium",ni="cef",ri="cefsharp",oi="coachjs",ii="fminer",si="geb",ai="nightmarejs",ci="phantomas",ui="phantomjs",fi="rhino",li="selenium",di="webdriverio",hi="webdriver",pi="headless_chrome";class Xt extends Error{constructor(a,s){super(s),this.state=a,this.name="BotdError",Object.setPrototypeOf(this,Xt.prototype)}}function qm(o,a){return o.indexOf(a)!==-1}function Xm(o,a){if("find"in o)return o.find(a);for(let s=0;s<o.length;s++)if(a(o[s],s,o))return o[s]}function Pf(o){return Object.getOwnPropertyNames(o)}function Ff(o,...a){for(const s of a)if(typeof s=="string"){if(qm(o,s))return!0}else if(Xm(o,(u=>s.test(u)))!=null)return!0;return!1}const Jm=function(){return navigator.userAgent},Qm=function(){const o=navigator.appVersion;if(o==null)throw new Xt(-1,"navigator.appVersion is undefined");return o},eg=function(){if(navigator.connection===void 0)throw new Xt(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new Xt(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},tg=function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},ng=function(){if(navigator.plugins===void 0)throw new Xt(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new Xt(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},rg=function(){try{null[0]()}catch(o){if(o instanceof Error&&o.stack!=null)return o.stack.toString()}throw new Xt(-3,"errorTrace signal unexpected behaviour")},og=function(){const{productSub:o}=navigator;if(o===void 0)throw new Xt(-1,"navigator.productSub is undefined");return o},ig=function(){if(window.external===void 0)throw new Xt(-1,"window.external is undefined");const{external:o}=window;if(typeof o.toString!="function")throw new Xt(-2,"window.external.toString is not a function");return o.toString()},sg=function(){if(navigator.mimeTypes===void 0)throw new Xt(-1,"navigator.mimeTypes is undefined");const{mimeTypes:o}=navigator;let a=Object.getPrototypeOf(o)===MimeTypeArray.prototype;for(let s=0;s<o.length;s++)a&&(a=Object.getPrototypeOf(o[s])===MimeType.prototype);return a},ag=async function(){if(window.Notification===void 0)throw new Xt(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new Xt(-1,"navigator.permissions is undefined");const{permissions:o}=navigator;if(typeof o.query!="function")throw new Xt(-2,"navigator.permissions.query is not a function");try{const a=await o.query({name:"notifications"});return window.Notification.permission==="denied"&&a.state==="prompt"}catch{throw new Xt(-3,"notificationPermissions signal unexpected behaviour")}},cg=function(){if(document.documentElement===void 0)throw new Xt(-1,"document.documentElement is undefined");const{documentElement:o}=document;if(typeof o.getAttributeNames!="function")throw new Xt(-2,"document.documentElement.getAttributeNames is not a function");return o.getAttributeNames()},ug=function(){if(Function.prototype.bind===void 0)throw new Xt(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},fg=function(){const{process:o}=window,a="window.process is";if(o===void 0)throw new Xt(-1,`${a} undefined`);if(o&&typeof o!="object")throw new Xt(-3,`${a} not an object`);return o},lg=function(){const o={[ti]:{window:["awesomium"]},[ni]:{window:["RunPerfTest"]},[ri]:{window:["CefSharp"]},[oi]:{window:["emit"]},[ii]:{window:["fmget_targets"]},[si]:{window:["geb"]},[ai]:{window:["__nightmare","nightmare"]},[ci]:{window:["__phantomas"]},[ui]:{window:["callPhantom","_phantom"]},[fi]:{window:["spawn"]},[li]:{window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},[di]:{window:["wdioElectron"]},[hi]:{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"]},[pi]:{window:["domAutomation","domAutomationController"]}};let a;const s={},u=Pf(window);let h=[];for(a in window.document!==void 0&&(h=Pf(window.document)),o){const m=o[a];if(m!==void 0){const p=m.window!==void 0&&Ff(u,...m.window),N=!(m.document===void 0||!h.length)&&Ff(h,...m.document);s[a]=p||N}}return s};function dg({cache:o,esc:a=!0}){const s=function(m,p){return m(p)};if(!a)return{s:-5,v:null};const u={s:-2,v:null},h=s(_l,o);return s(Ug,h).then((m=>{(function(p,N,P){p(N,P)})(ms,u,m)})).catch((m=>ms(u,Ic(m)))),u}function tc(o,a,s){const u=new Error(o);return a!==void 0&&(u.requestId=a),s!==void 0&&(u.raw=s),u}function hg(o){const a=function(m,p){return m<p},s=function(m,p){return m+p},u=function(m,p){return m%p},h=function(m,p){return m-p};for(let m=0;a(m,o.length);m++)o[m]=s(65,u(o[m],h(122,65)))}function ms(o,a){for(const s of Object.keys(o))delete o[s];Object.assign(o,a)}function jr(o){return o.then(void 0,(()=>{})),o}async function pg(){const o=function(h){return h()},a=await o(R1);let s=null;if(!(function(h){return h===0})((function(h,m){return h(m,453955339)})(Ae,a)))return a;if(s=(function(h,m){return h(m,1801730948)})(Ae,a),!(function(h){return h()})(Eg))return{s:-1,v:null};const u=o(Sg);return u?{s:0,v:[s,u]}:{s:-5,v:null}}function Kr(o){return o instanceof ArrayBuffer?new Uint8Array(o):new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}function nc(o,a){const s=o.join(""),u=s.split(""),h=Array(s.length);for(let m=0;m<h.length;++m)h[m]=u.splice(a[m%a.length],1);return h.join("")}function Vf(){const o=function(a,s){return a(s)};if(!(function(a){return a in window})(o(Dt,1)))return!1;try{return new window[o(Dt,1)],!0}catch(a){if((function(s){return s instanceof Error})(a)&&(function(s,u){return s===u})(a.name,(function(s){return s(2)})(Dt)))return!1;throw a}}function gs(o){var a;const s=(a=performance.timeOrigin)!==null&&a!==void 0?a:Date.now()-performance.now();return Math.round(o.getTime()-s)}function mg(o){return o&&typeof o=="object"?o:o!=null?{tag:o}:void 0}function gg(){const o=/{(.*?)}/.exec(location.hash);return!!o&&Mn(o[1])===3025844545}function vg(o){let a="";for(let s=128512;s<=128591;s++){const u=String.fromCodePoint(s);a+=u}return nr(((s,u)=>{const h=u.document.createElement("span");h.style.whiteSpace="nowrap",h.innerText=a,u.document.body.append(h);const m=nd(h,u);return u.document.body.removeChild(h),{s:0,v:m}}),o.sis)}function yg(o){const a=o.filter((u=>Mn(u.name.slice(0,w1))===Uv)),s=[];if(a.length>0){const u=new Map;a.forEach((h=>{const m=h.name.codePointAt(w1);if(m!==void 0){const p=u.get(m)||0;u.set(m,p+1)}})),u.forEach(((h,m)=>{s.push(m,h)}))}return{s:o.length?0:1,v:s}}function vs(){return nc([Tr(o=new Image().style,2882756133),Tr(o,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]);var o}function wg(o,a,s,u,h,m){return Oo(a,(()=>({e:9,tryNumber:h,url:u,timeout:o})),(({status:p,getHeader:N,body:P})=>({e:10,tryNumber:h,status:p,retryAfter:N("retry-after"),body:P})),(p=>({e:11,tryNumber:h,error:p})),(()=>P1({url:u,timeout:o,abort:m,container:s})))}function Gf(){const o=window,a=o[ml];return o[ml]=typeof a=="string"?a:vi(10)}function _g({cache:o}){const a=b(o);return a?((function(s){s.clearColor(0,0,1,1);const u=s.createProgram();if(!u)return;function h(N,P){const G=s.createShader(35633-N);u&&G&&(s.shaderSource(G,P),s.compileShader(G),s.attachShader(u,G))}h(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);}"),h(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),s.linkProgram(u),s.useProgram(u),s.enableVertexAttribArray(0);const m=s.getUniformLocation(u,"t"),p=s.createBuffer();s.bindBuffer(34962,p),s.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),s.vertexAttribPointer(0,2,5126,!1,0,0),s.clear(16384),s.uniform1f(m,3.65),s.drawArrays(4,0,3)})(a),{s:0,v:dn(a.canvas.toDataURL())}):{s:-1,v:null}}function hn(o,a){return de(o,(s=>({s:s==null?a:0,v:s??null})))}function ys(o){if(typeof TextDecoder=="function"){const s=new TextDecoder().decode(o);if(s)return s}const a=Kr(o);return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))}const rc="0123456789abcdef",oc=65535;function Eg(){const o=function(a,s){return a(s)};return o(Ke,0)&&navigator[o(Ke,0)]}function ic(o,a,s,u,h,m){var p;const N=[];for(const P of o){const G=P.event;G.e!==s&&G.e!==u&&G.e!==h||G.stage===m&&((N[p=G.tryNumber]||(N[p]={}))[G.e]=P)}return N.map((P=>{var G,T,U,z,Y,he;const _e=(G=P[s])===null||G===void 0?void 0:G.timestamp,Be=(U=(T=P[u])===null||T===void 0?void 0:T.timestamp)!==null&&U!==void 0?U:(z=P[h])===null||z===void 0?void 0:z.timestamp,Te=(Y=P[s])===null||Y===void 0?void 0:Y.event.url,xe=(he=P[h])===null||he===void 0?void 0:he.event.error;return _e&&Be&&Te?Ll(Te,_e,Be,xe,a[Te]):null})).filter((P=>!!P))}let sc;function Jt(o,a){let s;return u=>(s||(s=(function(h,m){return Ei(kc(new Uint32Array(h),[],m))})(o,a)),Wr(s[u]))}function Rg(o){if(typeof o!="object"||!o)return o;const a=o.modules;return a instanceof Array?{...o,modules:a.map((s=>{if(typeof s!="object"||!s)return s;const{key:u}=s;return typeof u=="string"?{key:u}:s}))}:o}function bg(o,a){return Object.prototype.hasOwnProperty.call(o,a)}function Hf(o){return{s:0,v:o}}async function Ag(o){return nr(((a,s)=>{const u=s.document.createElement("div");u.style.border=".5px dotted transparent",s.document.body.appendChild(u);const h=u.offsetHeight;return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function Sg(){const o=function(a,s){return a(s)};return document[o(Ke,1)](o(Ke,2))[o(Ke,3)]((function(a){return a(4)})(Ke))}function Ig(){const o=function(a,s,u){return a(s,u)};return(function(a){return a in navigator})((function(a){return a(1)})(Vn))&&o(Ae,navigator,770559087)&&(function(a,s){return a===s})(typeof o(Ae,o(Ae,navigator,770559087),616412651),(function(a){return a(2)})(Vn))}function Og(){const{performance:o}=window;if(!o?.now)return{s:-1,v:null};let a=1,s=1,u=o.now(),h=u;for(let m=0;m<5e4;m++)if((u=h)<(h=o.now())){const p=h-u;p>a?p<s&&(s=p):p<a&&(s=a,a=p)}return{s:0,v:[a,s]}}function Ng(){const o=function(s,u,h){return s(u,h)},a=function(s,u,h){return s(u,h)};return a(Dn,(function(s){return s(250,{s:-2,v:null})})(Nn),(async()=>{const s=o(Ae,navigator,1417288500);return!((function(u){return u===null})(s)||(function(u){return u===void 0})(s))&&a(Ae,s,3686698663)?await o(Ae,s,3686698663)().then((()=>({s:0,v:""})),(u=>({s:0,v:Ae(u,3065852031)}))):{s:-1,v:null}}))}const ac=new Uint32Array(2);async function $f(){const o=function(u){return u()},a=function(u){return u()},s=function(u,h,m){return u(h,m)};return await s(Dn,s(Nn,Iy,{s:-2,v:null}),(async()=>o(K1)?o(Vf)?{s:0,v:await a(V7)}:{s:-1,v:null}:{s:-3,v:null}))}function Tg(){const o=window;return Ir(["mediaSession"in navigator,"BigInt64Array"in o,"FormDataEvent"in o,"ImageBitmap"in o,"WebGL2RenderingContext"in o,"onclose"in o])>=4}async function ws(o,a,s){const u=function(h,m,p,N){return h(m,p,N)};for(const h of o)try{return!!await u(kl,h,a,s)}catch{}return!1}const jf=new Uint8Array(1);function mi(o,a){const s=new Error(a);return s.name=o,s}function Kf(o){return o.arr.subarray(0,o.len)}function Wf(){return St(30)}function xg(){const o=function(N,P,G){return N(P,G)},a=function(N,P){return N===P},s=function(N,P,G){return N(P,G)},u=o(Ae,window,4177808745);if(!(!(a(u,null)||a(u,void 0))&&o(Ae,u,1108488788)))return{s:-1,v:null};const h=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10],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]];let p=0;for(const N of m)p<<=1,p|=s(Ae,u,1108488788)(Uint8Array.of(...h,...N))?1:0;return{s:0,v:p}}async function Lg(){const o=function(m){return m()},a=function(m,p,N,P){return m(p,N,P)},s=function(m,p){return m(p)},u=function(m,p,N,P){return m(p,N,P)},h=function(m,p){return m(p)};if(o(r7))return!(function(m,p){return m in p})((function(m){return m(19)})(xt),window[(function(m){return m(20)})(xt)][(function(m){return m(21)})(xt)]);if(o(Tg)){const[m,p]=await Promise.all([a(hd,s(xt,22),(()=>!0),(()=>!1)),u(hd,h(xt,23),(()=>!1),(N=>N instanceof Error&&N.name===xt(24)))]);return(function(N,P){return N&&P})(m,p)}return!1}function Cg(){const o=function(T,U){return T(U)},a=function(T,U){return T(U)},s=function(T,U){return T in U},u=function(T,U){return T(U)},h=function(T,U){return T in U},m=function(T,U){return T(U)},p=function(T,U){return T(U)},N=function(T,U){return T in U};var P,G;if(!(function(T){return T()})(f))return o(Oc,!1);try{const T=window,U=(function(Y){return Y(Navigator,2741656292)})(Ae),z=((function(Y){return Y===null})(G=(function(Y){return Y===null})(P=document[o(Eo,0)])||(function(Y){return Y===void 0})(P)?void 0:(function(Y,he){return Y(he,3217087507)})(Ae,P))||(function(Y){return Y===void 0})(G)?void 0:G.call(P))||[];return a(Oc,(function(Y){return Y>=2})(o(Ir,[s(u(Eo,1),U),h(m(Eo,2),T),h(o(Eo,3),T),p(Eo,4).some((Y=>z.includes(Y))),!N(u(Eo,5),U)])))}catch{return a(Oc,!1)}}function Mg(o){if(o)return{p:o.path?1:void 0,q:o.query?1:void 0,f:o.fragment?1:void 0}}const Bg=Array.isArray;var cc="3.12.9";const _s={default:"endpoint"},zf={default:"tEndpoint"},Es={default:"tlsEndpoint"},uc="_vid";function Rs(o){return o instanceof Error||o!==null&&typeof o=="object"&&"name"in o}function kg(o){const a=function(m,p){return m(p)},s=function(m,p,N){return m(p,N)},u=function(m,p){return m(p)},h=function(m,p){return m(p)};return(function(m,p,N){return m(p,N)})(nr,((m,p)=>{const N=new Promise((P=>{const G=function(U,z){return a(U,z)};let T;(function(U){return U()})(f)?(T=new Error,T.name=" ",s(Ae,Object,1973166116)(T,u(Yr,0),{get:P.bind(null,!0)})):(T=s(Ae,p[u(Yr,1)],1297038992)(u(Yr,2)),T.toString=()=>"",(function(U){return U(Object,1973166116)})(Ae)(T,a(Yr,3),{get:()=>{G(P,!0);const U=new Error;throw U.name="",U}})),p[h(Yr,4)](p[h(Yr,5)].debug,0,T),p[(function(U){return U(4)})(Yr)]((()=>{(function(U,z){(function(Y,he){Y(he)})(U,z)})(P,!1)}))}));return u(jr,N).then((P=>({s:0,v:P})))}),(function(m,p){return m(p,3569745779)})(Ae,o))}function bs(o,a){const s={},u={};for(const[h,m]of Object.entries(o))a.includes(h)?s[h]=m:u[h]=m;return{picked:s,rest:u}}function Dg(){const o=function(m){return m()},a=function(m,p,N){return m(p,N)},s="test";if(!o(R)||o(Mv))return{s:-1,v:null};const u=(function(m){return m(window,693717494)})(Ae),h=a(Ae,window,1703339950);try{(function(m){m(null,null,null,null)})(u)}catch{return{s:0,v:!0}}try{return a(Ae,h,2330630162)(s,"1"),a(Ae,h,588657539)(s),{s:0,v:!1}}catch{return{s:0,v:!0}}}function Wr(o){if(o instanceof Array)return o.map(Wr);if(o&&typeof o=="object"){const a={};for(const s of Object.keys(o))a[s]=Wr(o[s]);return a}return o}function Zf(o,a,s){const u=function(h,m){return h+m};return u(a,Math.floor((function(h,m){return h*m})((function(h){return h/256})(o),u((function(h,m){return h-m})(s,a),1))))}async function Ug(o){const a=function(m,p,N){return m(p,N)},s=function(m,p){return m(p)},u=await(function(m,p){return m(p,!1)})(X1,o);switch(a(Ae,u,453955339)){case-3:return{s:-4,v:null};case-1:return{s:-1,v:null};case-2:return{s:-3,v:null}}const h=(function(m,p){return m(p)})(_o,s(qr,0));return{s:0,v:s(Gn,await a(xy,(function(m,p){return m(p,1801730948)})(Ae,u),h))}}function Pg(o,a){const s=function(h,m){return h===m};var u;try{return(function(h){return h===null})(u=(function(h,m){return h(m,34843658)})(Ae,o))||s(u,void 0)||u.call(o,a||Math.random().toString()),0}catch(h){if((function(m){return m instanceof Error})(h)&&s(h.name,j1))return-7;throw h}}function fc(o,a){return new Promise(((s,u)=>{let h=!1;a?.then((()=>h=!0),(()=>h=!0)),(typeof o=="function"?fc(Promise.resolve(),a).then(o):o).then((m=>{h||s(m)}),(m=>{h||u(m)}))}))}function Fg(){return(function(a,s){return a==s})(typeof navigator[o=Pn,o(1)],(function(a){return a(4)})(Pn));var o}const lc=new Uint8Array([110,117,108,108]),Yf=new Uint8Array([116,114,117,101]),qf=new Uint8Array([102,97,108,115,101]),Xf={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},Vg=(()=>{const o=new Uint8Array(128);for(const[a,s]of Object.entries(Xf))o[s.charCodeAt(0)]=a.charCodeAt(0);return o})(),Gg=/[\x00-\x1F"\\]/g,dc="Client timeout",hc="Network connection error",pc="Network request aborted",mc="Response cannot be parsed",gc="Blocked by CSP",vc="The endpoint parameter is not a valid URL",yc="Handle on demand agent data error";function Hg(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}async function $g(){const o=function(_e,Be,Te){return _e(Be,Te)},a=function(_e,Be){return _e(Be)},s=function(_e,Be,Te){return _e(Be,Te)},u=function(_e,Be,Te){return _e(Be,Te)},h=function(_e,Be){return _e(Be)},m=function(_e,Be){return _e(Be)},p=function(_e,Be,Te){return _e(Be,Te)},N=function(_e,Be){return _e!==Be},P=function(_e,Be,Te){return _e(Be,Te)},G=function(_e,Be){return _e===Be},T=function(_e,Be){return _e!==Be},U=p(Ae,navigator,701619454);if(!U||N(typeof U,h(or,0))||N(typeof P(Ae,U,2758837156),h(or,1)))return{s:-1,v:null};const z=Math.random().toString().split(".")[1],Y=await p(Ae,U,2758837156)(z),he=P(Ae,Y,1915421369);if(G(he,void 0)||(function(_e,Be){return _e!==Be})(typeof(function(_e,Be){return _e(Be,2758837156)})(Ae,he),m(or,1))||T(typeof(function(_e,Be){return _e(Be,3538568711)})(Ae,Y),(function(_e){return _e(1)})(or)))return{s:-1,v:null};try{const _e=await new Promise(((Te,xe)=>{try{const Ve=s(Ae,he,2758837156)("1");Ve[h(or,2)]=()=>{o(Ae,o(Ae,Ve,325763347),138212912)("s",a(or,3))},Ve[h(or,4)]=async()=>{o(Ae,s(Ae,Ve,325763347),318865860)(),(function(De,Ce){De(Ce)})(Te,await u(Ae,Y,3538568711)())},Ve[a(or,5)]=()=>{a(xe,u(Ae,Ve,1574812785))}}catch(Ve){m(xe,Ve)}})),Be=G(_e,null)||G(_e,void 0)?void 0:(function(Te,xe){return Te(xe,3505086064)})(Ae,_e);return G(Be,void 0)||T(typeof Be,h(or,6))?{s:-3,v:null}:{s:0,v:Be}}finally{G(typeof(function(_e,Be){return _e(Be,974290055)})(Ae,U),(function(_e){return _e(1)})(or))&&(function(_e,Be){return _e(Be,974290055)})(Ae,U)(z).catch((()=>{}))}}function jg(o){return o.some((a=>a.type==="agentEvent"&&(a.event.e===4||a.event.e===5)))}const Jf=Hn("WrongRegion"),Qf=Hn("SubscriptionNotActive"),el=Hn("UnsupportedVersion"),tl=Hn("InstallationMethodRestricted"),nl=Hn("HostnameRestricted"),rl=Hn("IntegrationFailed"),ol=Hn("VisitorNotFound"),il=Hn("NetworkRestricted"),sl=Hn("InvalidProxyIntegrationSecret"),al=Hn("InvalidProxyIntegrationHeaders"),cl=Hn("ProxyIntegrationSecretEnvironmentMismatch");function Kg(o){const a=function(Te,xe){return Te(xe)},s=function(Te,xe){return Te<xe},u=function(Te,xe){return Te/xe},h=function(Te,xe,Ve){return Te(xe,Ve)},m=function(Te,xe){return Te+xe},p=function(Te,xe){return Te+xe},N=function(Te,xe){return Te+xe},P=function(Te,xe){return Te-xe},G=function(Te,xe){return Te(xe)},T=a(dn,o),U=new Uint8Array(16);for(let Te=0;s(Te,T.length);Te+=2)U[u(Te,2)]=h(parseInt,m(m(p(m("",T[Te]),""),T[N(Te,1)]),""),16);const z=a(Gn,U),Y=(function(Te,xe,Ve,De){return Te(xe,Ve,De)})(Zf,U[h(parseInt,T[P(T.length,1)],16)],I9,O9),he=z.slice(0,Math.min(P(z.length,2),Y)),_e=h(Oy,G(Or,he),N9),Be=G(Gn,G(Ay,(function(Te,xe){return Te(xe)})(ud,_e))).slice(0,T9);return h(h7,o,(function(Te,xe,Ve){return Te(xe,Ve)})(g9,(function(Te){return Te+""})((function(Te,xe){return Te+xe})((function(Te){return Te+""})((function(Te,xe){return""+xe})(0,he)),Be)).replace(new RegExp(G(zr,1),"g"),"-").replace(new RegExp((function(Te){return Te(2)})(zr),"g"),"_"),U))}function As(o){const[a,s]=S1(o,"#"),[u,h]=S1(a,"?");let m,p;const N=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(u);return N?(m=(N[1]||"")+(N[4]||""),p=N[5]||""):(m="",p=u),{origin:m,path:p,query:h.length?h.join("?"):null,fragment:s.length?s.join("#"):null}}function Wg(){if(o=wy,!(o()&&(function(s){return s()})(Ig)))return{s:-1,v:null};var o;const a={s:-4,v:null};return(function(s){return s()})(rw).then((s=>(async function(u){const h=function(m,p){return m(p)};switch(u){case h(Vn,4):return{s:-2,v:null};case(function(m,p){return m(p)})(Vn,5):return{s:-3,v:null};case h(Vn,7):return new Promise((m=>{(function(p,N,P){return p(N,P)})(Ae,(function(p,N,P){return p(N,P)})(Ae,navigator,2646664628),3555432007)((p=>m((function(N){const P=function(Be,Te){return Be(Te)};if(!N)return{s:-5,v:null};const{accuracy:G,altitude:T,altitudeAccuracy:U,latitude:z,longitude:Y,heading:he,speed:_e}=(function(Be,Te,xe){return Be(Te,xe)})(Ae,N,3631081861);return{s:0,v:{[P(Vn,8)]:z,[P(Vn,9)]:Y,[P(Vn,10)]:T,[P(Vn,11)]:G,[P(Vn,12)]:U,h:he,s:_e,t:(function(Be,Te,xe){return Be(Te,xe)})(Ae,N,2782324286)}}})(p))),(p=>m((function(N){const P=function(G,T,U){return G(T,U)};switch(P(Ae,N,1997877400)){case(function(G,T,U){return G(T,U)})(Ae,N,3788099005):return{s:-3,v:null};case(function(G,T,U){return G(T,U)})(Ae,N,2796740938):return{s:-5,v:null};case P(Ae,N,3187968904):return{s:-4,v:null};default:return{s:-5,v:null}}})(p))),(function(p,N){return p(N)})(Vn,6))}));default:return{s:-5,v:null}}})(s))).then((s=>{(function(u,h,m){u(h,m)})(ms,a,s)})).catch((()=>ms(a,{s:-5,v:null}))),a}function zg(o){const a={};for(const s of Object.keys(o)){const u=o[s];if("value"in u){const{rest:h}=bs(u,["value"]);a[s]=h}else a[s]=u}return a}async function Zg(){try{return await new FontFace("font","local('Arial')").load(),{s:0,v:!0}}catch{return{s:0,v:!1}}}function ul(o,a){return b1(o,a?h9:Gl,p9,Hl)}function Yg(o){const a=function(u,h){return u+h},s=function(u,h){return u(h)};return a(a(s(Qt,4),(function(u,h,m){return u(h,m)})(_c,o,s(Qt,5))),"")}function Ir(o){return o.reduce(((a,s)=>a+(s?1:0)),0)}function fl(o,a){try{document.cookie}catch(s){if((function(u){if(!(u instanceof DOMException))return!1;const h=u.message;return x7.test(h)||L7.test(h)||C7.test(h)})(s))return a;throw s}return o()}function _o(o){const a=atob(o),s=a.length,u=new Uint8Array(s);for(let h=0;h<s;h++)u[h]=a.charCodeAt(h);return u}function qg(){return o=Dn,a=Nn(2e3,{s:-2,v:null}),o(a,w7);var o,a}function dr(o){return typeof o=="number"?o===0?null:Math.round(o):null}const ll="[Fingerprint]";function dl(){const o=function(u,h){return u(h)},a=function(u,h){return u===h};var s;return!f()||!(function(u){return u in document})(o(St,15))||(a(s=document[o(St,15)],null)||a(s,void 0)?void 0:(function(u,h){return u(h,2256349940)})(Ae,s)().includes(o(St,16)))}function Xg(o){let a;try{o&&typeof o=="object"&&"message"in o?(a=String(o.message),"name"in o&&(a=`${o.name}: ${a}`)):a=String(o)}catch(s){a=`Code 3017: ${s}`}return bo(a,500)}const Jg=2e3;function Qg({level:o,message:a}){o==="error"?console.error(a):o==="warning"?console.warn(a):console.log(a)}function e7(){return{s:0,v:!!navigator.onLine}}function wc(o){return o.byteLength>v9&&y1()}function hl(o,a){let s=0;return()=>Math.random()*Math.min(a,o*Math.pow(2,s++))}function pl(o){return o?{query:!0,fragment:!0}:void 0}async function Dn(o,a){let s,u,h;try{s=a().then((p=>u=[!0,p]),(p=>u=[!1,p]))}catch(p){u=[!1,p]}const m=o.then((p=>h=[!0,p]),(p=>h=[!1,p]));return await Promise.race([s,m]),()=>{if(u){if(u[0])return u[1];throw u[1]}if(h){if(h[0])return h[1];throw h[1]}throw new Error("96375")}}function t7(o,a,s,u){const h=(function*(P,G,T){let U=0,z=0;for(;U<P.length&&z<G.length;)T(P[U],G[z])?(yield P[U],U++):(yield G[z],z++);for(;U<P.length;U++)yield P[U];for(;z<G.length;z++)yield G[z]})(o.map((P=>({t:gs(P.time),s:P.state==="visible"?"v":"h"}))),a,((P,G)=>P.t<G.t)),m=[];let p;const N=()=>{m.length===0&&p!==void 0&&m.push({t:s,s:p})};for(;m.length<100;){const P=h.next();if(P.done)break;const G=P.value,T=G.t,U=G.s;if(T>u)break;T<s?p=U:U!==p&&(N(),m.push(G),p=U)}return N(),m}const ml="__fpjs_pvid";function n7(){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 _c(o,a){const s=As(o);let{query:u}=s;for(const[h,m]of Object.entries(a))for(const p of Array.isArray(m)?m:[m])u=`${u?`${u}&`:""}${h}=${S7(p)}`;return s.query=u,Ss(s)}function r7(){const o=window;return Ir(["fromAsync"in Array,"OffscreenCanvas"in o,"CompressionStream"in o,"isWellFormed"in String.prototype])>=3}function o7(o,a,s){return Nn(Math.min(Math.max(a,o+1e4-Date.now()),s))}const i7=/Blocked a frame.*cross-origin frame/,s7=/Failed to execute\s+'([^']+)'\s+on\s+'([^']+)'/,a7=/Permission denied.*cross-origin object/,c7=/Context not access storage/,u7=/(\w+)\(\)\s+called for opaque origin/,f7=3538568711,l7=986543999;function d7(o){const a=function(p,N,P){return p(N,P)},s=function(p,N,P){return p(N,P)},u=function(p,N){return p<N},h=function(p,N,P){return p(N,P)},m=a(Ae,Object,1110892003)(o,(function(p){return p(0)})(dy));if(m&&s(Ae,m,2813370411))return!0;for(let p=0;u(p,o.length);p++){const N=s(Ae,Object,1110892003)(o,p);if(N&&(h(Ae,N,2813370411)||a(Ae,N,1651707638)))return!0}return!1}const gl="stripped",Ec=["path","query","fragment"];function h7(o,a){const s=As(o);let u=s.origin+s.path;return u&&!u.endsWith("/")&&(u+="/"),u+=a,s.origin="",s.path=u,Ss(s)}function p7(){const o=function(s){return s()},a=function(s,u,h){return s(u,h)};return a(Dn,a(Nn,250,{s:-3,v:null}),(async()=>o(R)||o($)?o(Cv):{s:-1,v:null}))}function m7(){return Dt(0)}function g7(o){return td(o,xv)}function v7(){const o=[],a=Object.getOwnPropertyNames(window);for(let s=0;s<a.length;s++){const u=a[s],h=Mn(u);if(fy.has(h)&&o.push(u),h===k1){const m=a[s+1]||"";o.push(m)}}return{s:0,v:o}}function y7(){const o=window;try{return o.self!==o.top}catch{return!0}}async function vl(o){if(!y1())return[!1,o];const[a,s]=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),u=await(async function(m,p){const N=p.writable.getWriter();N.write(m),N.close();const P=p.readable.getReader(),G=[];let T=0;for(;;){const{value:Y,done:he}=await P.read();if(he)break;G.push(Y),T+=Y.byteLength}if(G.length===1)return G[0];const U=new Uint8Array(T);let z=0;for(const Y of G)U.set(Y,z),z+=Y.byteLength;return U})(o,s);return[!0,a?u:(function(m){return new Uint8Array(m.buffer,m.byteOffset+2,m.byteLength-6)})(u)]}async function w7(){const o=function(U){return U()},a=function(U,z){return U(z)},s=function(U,z){return U+z},u=function(U,z){return U+z},h=function(U,z){return U(z)},m=function(U,z){return U===z},p=function(U,z,Y){return U(z,Y)};var N;const P=window,G=o(Ty),T=a(gy,0);try{const U=T[s(u(s(u((function(he){return he+""})((function(he,_e){return""+_e})(0,a(Rc,G[0]))),(function(he,_e){return he(_e)})(Rc,G[1])),""),h(Rc,G[2])),"")],z=Object.values(U),Y={};for(const he of Object.keys(P).slice(...z)){const _e=m(N=p(Ae,Object,1110892003)(P,he),null)||m(N,void 0)?void 0:p(Ae,N,494360628);Y[h(Mn,he)]={i:!0,t:null,s:he.slice(-3),e:12,p:h(String,_e).slice(0,50)}}return{s:-3,v:Y}}catch{if(await o(Lg))return{s:-4,v:null};const z=await(function(Y,he){return Y(he)})(Q7,G);return z?{s:0,v:z}:{s:-1,v:null}}}function _7(o){var a;const s=(a=o[13])===null||a===void 0?void 0:a.event.result;if(!s)return{};const u={};for(const h in s)u[h]=Math.round(s[h].duration);return u}function Rc(o){const a=function(u,h){return u+h},s=function(u,h){return u+h};return a(a(s(s("",rc[(function(u){return u>>4})(o)]),""),rc[(function(u){return u%16})(o)]),"")}function bc(o,a){var s;try{(s=localStorage==null?void 0:localStorage.setItem)===null||s===void 0||s.call(localStorage,o,a)}catch{}}function Ac(o){return`${o}_lr`}const yl=W7($y);function E7({url:o,body:a}){var s;const u=(function(){var m;const p=(m=window.event)===null||m===void 0?void 0:m.type;return p==="pagehide"||p==="unload"})();if(u)try{if(!((s=navigator.sendBeacon)===null||s===void 0)&&s.call(navigator,o,a))return!0}catch(m){if(!(m instanceof Error&&m.message==="Illegal invocation"))throw m}const h=new XMLHttpRequest;h.open("POST",o,!u),a instanceof Blob&&h.setRequestHeader("Content-Type",a.type);try{h.send(a)}catch{return!1}return!0}function wl(o){const a={};return new Set(o).forEach((s=>{const u=(function(m){if(!URL.prototype)return m;try{return new URL(m,window.location.origin).toString()}catch{return m}})(s),h=performance.getEntriesByName(u,"resource");a[s]=h})),a}function R7(o){const a=new Uint8Array(o.length/2);for(let s=0;s<o.length;s+=2)a[s/2]=parseInt(o[s]+o[s+1],16);return a}function _l(o){return(function(a,s){return a(s,2660613247)})(Ae,o)||(o[(function(a){return a(0)})(St)]={})}async function El({urlHashing:o}){const a=(function(){var s,u;const h=[];let m=window;for(;;)try{const p=(s=m.location)===null||s===void 0?void 0:s.href,N=(u=m.document)===null||u===void 0?void 0:u.referrer;if(p===void 0||N===void 0)return{s:1,v:h};h.push({l:p,f:N});const P=m.parent;if(!P||P===m)return{s:0,v:h};m=P}catch(p){if(b9(p))return{s:1,v:h};throw p}})();return{...a,v:await X7(a.v,o)}}async function b7(){const o=Ae(window,2796484463);if(o)return new Promise((a=>{(function(s,u,h,m,p){s(0,1,m,p)})(o,0,0,(()=>a(!0)),(()=>a(!1)))}))}function Sc(o,a){const s=function(u,h,m){return u(h,m)};return!!o&&(function(u,h){return u===h})(s(Ae,o,3814588639),s(Ae,a,3814588639))}function Rl(o){return Gn(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function bl(){const o=navigator.language;return o?{s:0,v:o}:{s:-1,v:null}}async function A7(){const o=function(p){return p()},a=function(p,N){return p(N)},s=function(p,N){return p(N)},u=function(p,N){return p(N)},h=function(p,N,P){return p(N,P)};if(o($)||ae())return!1;let m=!1;if(uy()){const p={type:a(St,20),audio:s(St,21),video:a(St,22),keySystemConfiguration:{keySystem:M1,video:u(St,23)}},N=await h(Ae,h(Ae,navigator,2900309608),3516168465)(p);m=(function(P,G,T){return P(G,T)})(bg,N,(function(P){return P(24)})(St))&&N[(function(P){return P(24)})(St)]}return m&&!(function(p){return p in navigator})((function(p){return p(25)})(St))||!o(f)}function Al(){return[8,4,4,4,12].map((o=>O1(o,rc))).join("-")}function Ss({origin:o,path:a,query:s,fragment:u}){return o+a+(s===null?"":`?${s}`)+(u===null?"":`#${u}`)}function S7(o){return o.split("/").map(encodeURIComponent).join("/")}function I7(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function O7(o=`${ll} `){const a={};return s=>{switch(s.e){case 15:a[s.getCallId]=s.body;break;case 18:console.log(`${o}Visitor id request`,a[s.getCallId]);break;case 19:console.log(`${o}Visitor id response`,s.body);break;case 16:case 17:delete a[s.getCallId]}}}function Sl(){const{webdriver:o}=navigator;return o===null?{s:-1,v:null}:o===void 0?{s:-2,v:null}:{s:0,v:o}}function N7(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function Il(o){return Bg(o)?(function(a){if(a.length===0)throw Nl();return a[Math.floor(Ns()*a.length)]})(o):(function(a){const s=Ns();let u=0,h=0;for(const[,m]of a)u+=m;for(const[m,p]of a){if(s>=h/u&&s<(h+p)/u)return m;h+=p}throw Nl()})(Object.entries(o))}async function T7(o,a,s){const u=function(Le,Ue){return Le(Ue)},h=function(Le,Ue){return Le*Ue},m=function(Le,Ue){return Le(Ue)},p=function(Le,Ue){return Le(Ue)},N=function(Le,Ue){return Le(Ue)},P=function(Le,Ue){return Le(Ue)},G=function(Le,Ue){return Le(Ue)},T=function(Le,Ue){return Le/Ue},U=function(Le,Ue){return Le+Ue},z=function(Le,Ue){return Le(Ue)},Y=function(Le,Ue){return Le(Ue)},he=function(Le,Ue){return Le(Ue)},_e=function(Le,Ue){return Le(Ue)},Be=function(Le,Ue){return Le|Ue},Te=function(Le,Ue){return Le(Ue)},xe=function(Le,Ue){return Le(Ue)},Ve=function(Le,Ue){return Le(Ue)},De=function(Le,Ue){return Le(Ue)},Ce=function(Le,Ue){return Le(Ue)},Ye=function(Le,Ue){return Le*Ue},it=function(Le,Ue){return Le(Ue)},dt=function(Le,Ue){return Le(Ue)},mt=function(Le,Ue){return Le(Ue)},Bt=function(Le,Ue){return Le<Ue},Ft=function(Le,Ue){return Le(Ue)},Vt=function(Le,Ue){return Le(Ue)},pn=function(Le,Ue){return Le(Ue)},bt=function(Le,Ue){return Le(Ue)},Tt=function(Le,Ue){return Le(Ue)},At=function(Le,Ue){return Le(Ue)},vt=function(Le,Ue){return Le(Ue)},lt=function(Le,Ue){return Le(Ue)},Gt=function(Le,Ue){return Le(Ue)},Ht=function(Le,Ue){return Le(Ue)},mn=function(Le,Ue){return Le===Ue},nn=function(Le,Ue){return Le(Ue)},yn=function(Le,Ue){return Le(Ue)},$n=function(Le,Ue){return Le(Ue)},wn=function(Le,Ue){return Le(Ue)},rn=function(Le,Ue){return Le(Ue)},un=function(Le,Ue){return Le(Ue)},on=function(Le,Ue){return Le+Ue},jn=function(Le,Ue){return Le+Ue},Xr=function(Le,Ue){return Le(Ue)},$c=function(Le,Ue){return Le*Ue},No=function(Le,Ue){return Le+Ue},Ds=function(Le,Ue){return Le+Ue},Ai=function(Le,Ue){return Le(Ue)},Us=function(Le,Ue){return Le<Ue},To=function(Le,Ue){return Le(Ue)},jc=function(Le,Ue){return Le(Ue)},xn=function(Le,Ue){return Le*Ue},xr=function(Le,Ue){return Le*Ue},pr=function(Le,Ue){return Le+Ue},xo=function(Le,Ue){return Le+Ue},mr=function(Le,Ue){return Le+Ue},fn=await o[(function(Le){return Le(6)})(Ke)]({requiredFeatures:a}),Lo=Math.PI,_d=[[0,1,0,T(Lo,7)],[1,0,0,T(Lo,8)],[0,1,1,T(Lo,4)],[1,2,1,T(Lo,8)]],Kc=_d.length,Ps=new Uint8Array(h(Kc,U(U(Ri,Ao),So))),Ed=navigator[z(Ke,0)][u(Ke,7)]();s[P(Ke,8)]({device:fn,format:Ed});const Rd=fn[(function(Le){return Le(9)})(Ke)]({label:(function(Le){return Le(10)})(Ke),code:Y(Ke,11)}),Wc=fn[he(Ke,12)]({label:N(Ke,13),layout:(function(Le){return Le(14)})(Ke),vertex:{module:Rd},fragment:{module:Rd,targets:[{format:Ed}]},primitive:_e(Ke,15)}),vw=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],yw=new Uint8Array(z(Array,h(7,9)).fill(void 0).map(((Le,Ue)=>vw[Ue%3])).flat()),bd=fn[m(Ke,16)]({label:N(Ke,17),size:[7,9],format:he(Ke,18),usage:Be(window[Te(Ke,19)][(function(Le){return Le(20)})(Ke)],window[p(Ke,19)][u(Ke,21)])});fn[xe(Ke,22)][Ve(Ke,23)]({texture:bd},yw,{bytesPerRow:h(7,4)},{width:7,height:9});const ww=fn[De(Ke,24)]((function(Le){return Le(25)})(Ke)),_w=fn[Ce(Ke,26)]({layout:Wc[N(Ke,27)](0),entries:[{binding:0,resource:ww},{binding:1,resource:bd[p(Ke,28)]()}]}),Ad=_d.map((Le=>{const Ue=fn[(function(Kn){return Kn(29)})(Ke)]({label:u(Ke,30),size:h(4,Float32Array[m(Ke,31)]),usage:window[p(Ke,32)][N(Ke,33)],mappedAtCreation:!0});return new Float32Array(Ue[m(Ke,34)]())[P(Ke,35)](Le),Ue[u(Ke,36)](),fn[P(Ke,26)]({layout:Wc[G(Ke,27)](1),entries:[{binding:0,resource:{buffer:Ue}}]})})),Fs=fn[(function(Le){return Le(37)})(Ke)]((function(Le){return Le(38)})(Ke)),Vs=fn[_e(Ke,29)]({size:Ye(Fs[(function(Le){return Le(39)})(Ke)],8),usage:Be(window[xe(Ke,32)][it(Ke,40)],window[dt(Ke,32)][Ce(Ke,41)])}),Co=fn[dt(Ke,29)]({size:h(Vs[it(Ke,42)],Kc),usage:Be(window[De(Ke,32)][(function(Le){return Le(21)})(Ke)],window[mt(Ke,32)][mt(Ke,43)])}),Sd={label:Te(Ke,44),colorAttachments:(function(Le){return Le(45)})(Ke),timestampWrites:{querySet:Fs,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}};for(let Le=0;Bt(Le,Ad.length);Le++){const Ue=Ad[Le];Sd[he(Ke,46)][0][Ft(Ke,47)]=s[m(Ke,48)]()[Vt(Ke,28)]();const Kn=fn[pn(Ke,49)](mt(Ke,50)),Si=Kn[bt(Ke,51)](Sd);Si[p(Ke,52)](Wc),Si[Y(Ke,53)](0,_w),Si[Tt(Ke,53)](1,Ue);const Ew=window[At(Ke,54)][At(Ke,55)]();Si[vt(Ke,56)](48),Si[lt(Ke,57)](),Kn[Gt(Ke,58)](Fs,0,Fs[Ht(Ke,39)],Vs,0),mn(Co[nn(Ke,59)],yn(Ke,60))&&Kn[$n(Ke,61)](Vs,0,Co,h(Le,16),Vs[pn(Ke,42)]);const Rw=Kn[vt(Ke,62)]();fn[wn(Ke,22)][Ve(Ke,63)]([Rw]);const bw=rn(_9,s[un(Ke,2)]);Ps[yn(Ke,35)](bw,U(So,Ye(Le,on(jn(Ri,Ao),So)))),Ps[Xr(Ke,35)](new Uint8Array(new Float64Array([Ew])[he(Ke,64)]),$c(Le,No(Ds(Ri,Ao),So)))}if(mn(Co[(function(Le){return Le(59)})(Ke)],G(Ke,60))){await Co[vt(Ke,65)](window[Ai(Ke,66)][G(Ke,67)]);const Le=Co[it(Ke,34)](),Ue=new Uint8Array(Le);for(let Kn=0;Us(Kn,Kc);Kn++)Ps[To(Ke,35)](Ue[jc(Ke,68)](xn(Kn,Ao),xr(pr(Kn,1),Ao)),xo(on(So,Ri),Ye(Kn,U(mr(Ri,Ao),So))));Co[To(Ke,36)]()}return Ai(Gn,Ps)}const x7=/The document is sandboxed and lacks the 'allow-same-origin' flag/,L7=/The operation is insecure/,C7=/Forbidden in a sandboxed document without the 'allow-same-origin' flag/;function M7(o){const a=wl(o.map((s=>s.url)).filter((s=>!!s)));return o.map(((s,u)=>{const h=o.length>1&&u<o.length-1&&!("error"in s);return Ll(s.url,gs(s.startedAt),gs(s.finishedAt),h?"Unknown":s.error,a[s.url])}))}function B7(o){const a=o.match(ky);return!!a&&(function(s,u){return s===u})((function(s,u){return s(u)})(Mn,a[1]),By)}async function k7(o){return(function(a){return a()})(f)||(function(a){return a()})(R)?await(function(a,s){return a(s)})(kg,o):{s:-1,v:null}}function D7(){const o=(function(){const a=new Error,s=(function(u){return u.fileName?u.fileName.split(" ")[0]:u.sourceURL?u.sourceURL:null})(a);if(s)return s;if(a.stack){const u=(function(h){const[m,p]=h.split(`
11
+ `),N=i9.exec(p)||s9.exec(m);return N?N[1]:void 0})(a.stack);if(u)return u}return null})();return{u:o?bo(o,d9):null}}function U7(){const o=function(Ce,Ye){return Ce(Ye)},a=function(Ce,Ye,it){return Ce(Ye,it)},s=function(Ce){return Ce()},u=function(Ce,Ye){return Ce<Ye},h=function(Ce,Ye){return Ce<Ye},m=function(Ce,Ye){return Ce*Ye},p=function(Ce){return Ce()},N=function(Ce,Ye){return Ce*Ye},P=function(Ce){return Ce()},G=function(Ce,Ye){return Ce*Ye},T=function(Ce,Ye){return Ce(Ye)},U=function(Ce,Ye){return Ce+Ye},z=function(Ce,Ye){return Ce+Ye},Y=function(Ce,Ye){return Ce(Ye)},he=function(Ce,Ye){return Ce(Ye)},_e=function(Ce,Ye,it){return Ce(Ye,it)},Be=document[o(hr,0)](o(hr,1)),Te=a(Ae,Be,1590906722)(o(hr,2));if(!Te)return{s:-1,v:null};Be[o(hr,3)]=bi,Be[(function(Ce){return Ce(4)})(hr)]=bi;const xe=s(Nv),Ve=(function(Ce,Ye,it,dt,mt){return Ce(Ye,it,dt,mt)})(iy,xe[0],xe[1],xe[2],xe[3]);for(let Ce=0;u(Ce,bi);Ce++)for(let Ye=0;h(Ye,bi);Ye++){const it=Math.floor(m(p(Ve),256)),dt=Math.floor(N(P(Ve),256)),mt=Math.floor(G(s(Ve),256));Te[T(hr,5)]=U(U(U(U(U(z(Y(hr,6),it),","),dt),","),mt),he(hr,7)),_e(Ae,Te,2027710893)(Ye,Ce,1,1)}const De=_e(Ae,Te,2240176009)(0,0,(function(Ce,Ye){return Ce(Ye,2350531887)})(Ae,Be),a(Ae,Be,4115522831));return{s:0,v:{s:xe,p:Array.from(_e(Ae,De,2918445923)),d:bi}}}function Ol(){const o=function(s,u){return s in u},a=function(s,u){return s(u)};return(o(a(St,11),window)||o(a(St,12),window)||(function(s){return s in window})((function(s){return s(13)})(St)))&&(function(s){return s in navigator})((function(s){return s(14)})(St))}function P7(){const o=navigator,a=["webkitPersistentStorage","connectionSpeed","xr","hid"],s=[];for(const u of Object.getOwnPropertyNames(Object.getPrototypeOf(o)))if(!a.includes(u))try{const h=o[u];typeof h=="function"&&h.name!==void 0&&s.push(h.name)}catch(h){return{s:-1,v:[h instanceof Error?h.message:String(h)]}}return{s:0,v:s}}function F7(){const o=function(a,s){return a(s)};try{return o(Hf,!!window[o(Zr,0)])}catch{return(function(s){return s(!0)})(Hf)}}async function V7(){const o=K1(),a=await Promise.all(o.map(qy)),s={};return o.forEach(((u,h)=>{const m=(function(p,N){return p(N)})(Mn,u).toString(16);s[m]=a[h]})),s}async function G7(){const o=function(u){return u()},a=function(u,h){return u===h};if((function(u){return u()})(f)&&o($7))return{s:-3,v:null};const s=await Promise.race([(function(u){return u(100,null)})(_i),o(b7)]);return a(s,null)?{s:-2,v:null}:a(s,void 0)?{s:-1,v:null}:{s:0,v:s}}function H7(o){const a=document.createDocumentFragment(),s=p(a,"mrow"),u=p(s,"munderover"),h=p(u,"mmultiscripts");p(h,"mo","∏");const m=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];function p(P,G,T=""){const U=document.createElement(G);return U.textContent=T,P.append(U),U}function N(P,G,T,U,z){const Y=document.createElement("mmultiscripts");return p(Y,"mi",P),p(Y,"mi",G),p(Y,"mi",T),p(Y,"mprescripts"),p(Y,"mi",U),p(Y,"mi",z),Y}for(const P of m){const G=N(...P);h.append(G)}return nr(((P,G)=>{const T=document.createElement("math");T.style.whiteSpace="nowrap",T.append(a),G.document.body.append(T);const U=nd(T,G);return G.document.body.removeChild(T),{s:0,v:U}}),o.sis)}function Nl(){return new TypeError("Can't pick from nothing")}function cn(o){return de(o,(a=>({s:0,v:a})))}function $7(){const o=window;return Ir(["ClipboardItem"in o,"PerformanceEventTiming"in o,"RTCSctpTransport"in o])>=2}const j7=o=>o instanceof Error&&o.message==="Illegal invocation";async function K7(){const o=function(T,U,z){return T(U,z)},a=function(T,U){return T===U},s=function(T,U,z){return T(U,z)},u=function(T,U,z){return T(U,z)},h=function(T,U){return T!==U},m=function(T,U,z){return T(U,z)},p=function(T,U,z){return T(U,z)},N=navigator,P=o(Ae,N,1417288500),G=o(Ae,N,2706846255);if(!G&&!(!(a(P,null)||a(P,void 0))&&s(Ae,P,3538568711)))return{s:-1,v:null};if(G){const T=await Promise.race([u(_i,250,void 0),new Promise((U=>{o(Ae,G,1291883197)(((z,Y)=>U(Y)))}))]);if(h(T,void 0))return{s:0,v:T}}try{if(!((function(T){return T===null})(P)||(function(T){return T===void 0})(P))&&s(Ae,P,3538568711)){const T=await Promise.race([m(_i,250,void 0),p(Ae,P,3538568711)().then((U=>Ae(U,1813778413)))]);if(h(T,void 0))return{s:1,v:T}}return{s:-2,v:null}}catch(T){if((function(U,z){return U(z)})(Uc,T))return{s:-101,v:null};throw T}}const Tl=[3,7];function W7(o){return a=>{const s=[],u=new Map,h=window.setInterval((function(){const p=s.shift();if(p){const[N,P]=p,G=jr(o(P));u.set(N,G)}}),1);function m(){window.clearInterval(h)}return a.then(m,m),[s,u,a]}}function z7(){const o=document[a=Pc,a(0)]("a");var a;return(function(s,u){return s(u,868071530)})(Ae,o)[(function(s){return s(1)})(Pc)]=(function(s){return s(2)})(Pc),{s:0,v:(function(s,u){return s(u,2350531887)})(Ae,(function(s,u){return s(u,868071530)})(Ae,o))}}function Z7(o){const a=function(m,p){return m(p)},s=function(m,p){return m+p},u=function(m,p){return m+p};let h=a(zr,3);return(function(m,p){return m!==p})(o,a(zr,4))&&(h=s((function(m,p){return m+p})(u(s("",o),"."),h),"")),s(u((function(m){return m(5)})(zr),h),"/")}function Y7(o,a){const s=function(m,p){return m(p)},u=(function(m){return m(0)})(Qt);u[(function(m){return m(1)})(Qt)]=s(Yg,a),u[(function(m){return m(2)})(Qt)]=o;const h={};return h[s(Qt,3)]=[u],h}function q7(o){const a=function(u,h){return u(h)},s=function(u,h,m){return u(h,m)};return(function(u,h){return u===h})(o.name,a(Qt,9))&&s(Ae,new RegExp(a(Qt,10)),3632233996)(s(Ae,o,3065852031))}async function xl(o=wi(0)){const a=function(z,Y){return z(Y)},s=function(z,Y){return z+Y},u=function(z,Y){return z+Y},h=function(z,Y,he){return z(Y,he)},m=function(z,Y){return z===Y},p=function(z,Y){return z(Y)},N=function(z,Y){return z===Y},P=function(z,Y){return z===Y};var G,T;const[U]=o.split("/").slice(-1);try{const z=new window[a(wi,1)]([],o),Y=new window[a(wi,2)](s(u(u(s(s((function(he,_e){return he+_e})((function(he){return he(3)})(wi),h(Ae,z,4081332993)||""),""),U),a(wi,4)),h(Ae,z,3034174415)),""));return m(m(G=h(Ae,Y,3518522040),null)||m(G,void 0)?void 0:G.substring(1),"")?{n:U,l:-2}:{n:U,l:p(Mn,N(T=h(Ae,Y,3518522040),null)||P(T,void 0)?void 0:T.substring(1))}}catch{return{n:U,l:-1}}}function Is(o,a){Pl(o,o.len+a.length),o.arr.set(a,o.len),o.len+=a.length}async function X7(o,a){return Promise.all(o.map((async s=>{const[u,h]=await Promise.all([xs(s.l,a),xs(s.f,a)]);return{l:u,f:h}})))}function Ll(o,a,s,u,h){const m=(function(p,N,P){if(!p)return;let G;for(let T=p.length-1;T>=0;T--){const U=p[T];if(U.startTime<N-1)break;U.responseEnd<=P+1&&(G=U)}return G})(h,a,s);return{s:dr(m?.startTime)||Math.round(a),e:dr(m?.responseEnd)||Math.round(s),u:o||null,er:u?String(u):null,ds:dr(m?.domainLookupStart),de:dr(m?.domainLookupEnd),cs:dr(m?.connectStart),css:dr(m?.secureConnectionStart),ce:dr(m?.connectEnd),qs:dr(m?.requestStart),ss:dr(m?.responseStart)}}function J7(o,a,s,u,h,m,p,N,P,G,T,U,z){const Y={modules:o,apiKey:u,ii:N,imi:P,storageKey:p,ab:T,urlHashing:G};function he(it){if(!z)return;const dt=vi(8);switch(it){case"get":return(function(mt,Bt){return Ft=>{const Vt={...Ft,getCallId:Bt};return mt(Vt)}})(z,dt);case"collect":return(function(mt,Bt){return Ft=>{const Vt={...Ft,collectCallId:Bt};return mt(Vt)}})(z,dt)}}const _e=it=>Nn(it??1e4).then((()=>Promise.reject(new Error(dc)))),Be=async(it,dt,mt)=>{var Bt;const Ft=_e(it.timeout);mt(await Te(it,Ft,dt));for(const Vt of o)(Bt=Vt.onCollectResponse)===null||Bt===void 0||Bt.call(Vt,p)},Te=async({timeout:it=1e4,tag:dt,linkedId:mt},Bt,Ft)=>{const Vt=jr(Promise.all([Ye(Ft),Ce(it,!1,Ft)])),[pn,bt]=await Promise.race([Bt,Vt]),Tt=await Dl({...Y,components:pn,tag:dt,tls:bt,linkedId:Ls(mt)});return await(async function(At,vt){const lt=[Lc(),[]],Gt=Ts(lt),Ht=Ts(At),[mn,nn]=wc(Ht)?await vl(Ht):[!1,Ht],yn=ul(nn,mn);return Un(vt,(()=>({e:24,agentMetadata:lt,body:At,isCompressed:mn}))),`${Rl(Gt)}:${Rl(yn)}`})(Tt,Ft)},xe=async({tag:it,linkedId:dt},mt,Bt,Ft)=>{if(!U)return;const Vt=await De();let pn=!1;Bt.catch((()=>pn=!0));try{return await U1(h,{...Y,tls:Vt,tag:it,linkedId:Ls(dt),fast:!0},mt,Bt,Ft)}catch(bt){if(pn)throw bt;return void(Rs(bt)&&bt.message===ol||console.warn(bt))}},Ve=({timeout:it=1e4,tag:dt,linkedId:mt,disableTls:Bt,extendedResult:Ft,exposeComponents:Vt,environment:pn,products:bt},Tt,At)=>{const vt=jr(Promise.all([Ye(At),Ce(it,Bt,At)]));return async(lt,Gt)=>{const[Ht,mn]=await Promise.race([Gt,vt]);return await U1(h,{...Y,components:Ht,customComponent:pn,tag:dt,tls:mn,linkedId:Ls(mt),extendedResult:Ft,exposeComponents:Vt,algorithm:m,products:Dv(bt,"products"),requestId:lt},Tt,Gt,At)}},De=()=>s?.(0,50,!1,void 0),Ce=(it,dt,mt)=>s?.(.1*it,.4*it,dt,mt),Ye=async it=>{try{const dt=await a();return Un(it,(()=>({e:13,result:dt}))),dt}catch(dt){throw Un(it,(()=>({e:14,error:dt}))),dt}};return{get:(it={})=>{const dt=he("get");return Oo(dt,(()=>({e:3,options:it})),(mt=>({e:4,result:mt})),(mt=>({e:5,error:mt})),(()=>$l((mt=>(async(Bt,Ft,Vt)=>{const pn=Kl();try{const bt=yl(pn),Tt=_e(Bt.timeout),At=Ve(Bt,bt,Ft),vt=await xe(Bt,bt,Tt,Ft);vt?(Vt(vt),await At(vt.requestId,Tt)):Vt(await At(void 0,Tt))}finally{pn.resolve()}})(it,dt,mt)))))},collect:(it={})=>{const dt=he("collect");return Oo(dt,(()=>({e:21,options:it})),(mt=>({e:22,result:mt})),(mt=>({e:23,error:mt})),(()=>$l((mt=>Be(it,dt,mt)))))}}}async function Q7(o){const a=function(he,_e){return he(_e)},s=function(he,_e){return he<_e},u=function(he,_e){return he(_e)},h=function(he,_e,Be,Te,xe){return he(_e,Be,Te,xe)},m=function(he,_e){return he(_e)},p=function(he,_e){return he(_e)};var N;const P=window[p(xt,3)],G=(function(he){return he===null})(N=P[m(xt,4)])||(function(he){return he===void 0})(N)?void 0:N.bind(P);if(!G)return null;const T=(function(he){return he(5)})(xt),U=p(xt,6),z={};let Y;if(await Promise.all(T.map((async he=>{try{const _e=await(function(Ve,De,Ce){return Ve(De,Ce)})(G,he,U),Be=await _e[a(xt,7)](),Te=Be[a(xt,8)]();let xe=[92,189,203];for(let Ve=0;s(Ve,3);Ve++)try{return void(z[u(Mn,he)]=await h(my,Be,Te,o,xe))}catch(De){if(a(Cy,De)){xe=m(zv,o);continue}throw u(hg,xe),De}}catch(_e){Y=_e}}))),Y&&(function(he){return he===0})(Object.keys(z).length))throw Y;return z}function Cl(o){return fl((()=>{const a=`${o}=`;for(const s of document.cookie.split(";")){let u=0;for(;s[u]===" "&&u<s.length;)++u;if(s.indexOf(a)===u)return s.slice(u+a.length)}}),void 0)}function gi(o){try{(function(a,s){return a(s,318865860)})(Ae,o)()}catch{}}function Ic(o){return{e:Xg(o)}}const e9=function(){const o=(function(){const s={},u=[],h=[];let m=!1;const p=Io(document,"visibilitychange",N);function N(){h.push({t:Math.round(performance.now()),s:Nc()?"v":"h"})}function P(G,T,U){var z,Y,he,_e,Be,Te,xe,Ve,De,Ce,Ye,it,dt,mt,Bt,Ft,Vt,pn,bt,Tt,At;const vt=(function(xn,xr,pr,xo){const mr=[];return xn[xr]&&(mr.push(...xn[xr].commonEvents),xo==="get"&&pr&&mr.push(...xn[xr].getCalls[pr]||[]),xo==="collect"&&pr&&mr.push(...xn[xr].collectCalls[pr]||[])),mr})(s,G,T,U),lt={};for(const xn of vt)lt[xn.event.e]=xn;const Gt=(z=lt[4])!==null&&z!==void 0?z:lt[5],Ht=(Y=lt[22])!==null&&Y!==void 0?Y:lt[23],mn=lt[3]&&Gt,nn=lt[21]&&Ht,yn=mn||nn;if(!(lt[0]&&lt[1]&&lt[12]&&yn))return;const{token:$n,apiKey:wn=$n,storageKey:rn=uc,modules:un,ldi:on,aggressiveOptimization:jn=!1,optimizeRepeatedVisits:Xr=!1}=lt[0].event.options;if(!wn)return;const $c=Math.min(lt[0].timestamp,gs((he=on?.attempts[0].startedAt)!==null&&he!==void 0?he:new Date("8524-04-28"))),No=(_e=lt[5])===null||_e===void 0?void 0:_e.event.error,Ds=(Be=lt[4])===null||Be===void 0?void 0:Be.event.result,Ai=(Te=lt[23])===null||Te===void 0?void 0:Te.event.error,Us=(xe=lt[13])!==null&&xe!==void 0?xe:lt[14],To=wl(u),jc={am:nn?"collect":"get",v:"1",dt:new Date().toISOString(),ci:Lc(),pi:Gf(),ai:G,ri:vi(12),c:wn,rid:(De=(Ve=Ds?.requestId)!==null&&Ve!==void 0?Ve:No?.requestId)!==null&&De!==void 0?De:null,er:(Ce=No?.message)!==null&&Ce!==void 0?Ce:null,cr:(Ye=Ai?.message)!==null&&Ye!==void 0?Ye:null,mo:un.map((xn=>xn.key)).filter((xn=>!!xn)),sa:M7((it=on?.attempts)!==null&&it!==void 0?it:[]),ls:lt[0].timestamp,le:lt[1].timestamp,ca:ic(vt,To,9,10,11),ss:lt[12].timestamp,se:(dt=Us?.timestamp)!==null&&dt!==void 0?dt:null,sd:_7(lt),gs:(Bt=(mt=lt[3])===null||mt===void 0?void 0:mt.timestamp)!==null&&Bt!==void 0?Bt:null,ge:(Ft=Gt?.timestamp)!==null&&Ft!==void 0?Ft:null,cs:(pn=(Vt=lt[21])===null||Vt===void 0?void 0:Vt.timestamp)!==null&&pn!==void 0?pn:null,ce:(bt=Ht?.timestamp)!==null&&bt!==void 0?bt:null,fa:ic(vt,To,18,19,20,0),ia:ic(vt,To,18,19,20,1),vs:t7((Tt=on?.visibilityStates)!==null&&Tt!==void 0?Tt:[],h,$c,(At=Gt?.timestamp)!==null&&At!==void 0?At:Ht?.timestamp),ab:lt[1].event.ab,ao:jn,or:Xr};((xn,xr)=>{(function(pr,xo){const mr=Ac(xo),fn=Bc(mr)||[];fn.splice(0,fn.length-2);const Lo=b1(Ts(pr),Tl,3,7);fn.push([pr.ri,Gn(Lo)]),bc(mr,JSON.stringify(fn))})(xn,xr)})(jc,rn)}return N(),{addEvent:function(G){if(!m)switch((function(T){const U=T.event;if(!Vl(U))return;const{agentId:z}=U;if(s[z]||(s[z]={commonEvents:[],getCalls:{},collectCalls:{}}),ed(U)){const{getCallId:Y}=U;let he=s[z].getCalls[Y];return he||(he=[]),he.push(T),void(s[z].getCalls[Y]=he)}if(C1(U)){const{collectCallId:Y}=U;let he=s[z].collectCalls[Y];return he||(he=[]),he.push(T),void(s[z].collectCalls[Y]=he)}s[z].commonEvents.push(T)})({timestamp:Math.round(performance.now()),event:G}),G.e){case 9:case 18:u.push(G.url);break;case 4:case 5:P(G.agentId,G.getCallId,"get");break;case 22:case 23:P(G.agentId,G.collectCallId,"collect")}},destroy:()=>{m=!0,p()}}})();let a=new Set;return{toRequest(s){const u=(function(h){const m=Bc(Ac(h))||[],p=[];return m.forEach((N=>{try{const P=Ei(kc(_o(N[1]),Tl,7));p.push(P)}catch{}})),p})(s);return a=new Set(u.map((h=>h.ri))),{lr:u}},onGetResponse(s,u){$1(u,a)},onCollectResponse(s){$1(s,a)},addEvent:o.addEvent,destroy:o.destroy}};class t9{constructor(a){this.onReportReady=a,this.isStopped=!1,this.pageStartTimestamp=(function(){var N,P;const G=performance;if(G.timeOrigin){const T=(P=(N=G.getEntriesByType)===null||N===void 0?void 0:N.call(G,"navigation"))===null||P===void 0?void 0:P[0];if(T)return G.timeOrigin+(T.responseStart||T.unloadEventEnd)}return G.timing.domLoading||G.timing.responseStart||G.timing.unloadEventEnd})(),this.events={};const s=window,u=document,h=[[u,"readystatechange",()=>this.handleDocumentReadyStateChange()],[u,"visibilitychange",()=>this.handleVisibilityChange()],[u,"pageshow",()=>this.handlePageTransition(!0)],[u,"pagehide",()=>this.handlePageTransition(!1)],[s,"unload",()=>this.handlePageUnload()]];for(const[N,P,G]of h)N.addEventListener(P,G);const m=(function(N){const P=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((G=>Io(document,G,N,void 0)));return()=>{for(const G of P)G()}})((()=>this.handleFullscreenChange())),p=(function(N){const P=window,{connection:G}=navigator;if(G)return Io(G,"change",N);{const T=Io(P,"online",N),U=Io(P,"offline",N);return()=>{T(),U()}}})((()=>this.handleNetworkConnectionChange()));this.stop=()=>{this.isStopped=!0;for(const[N,P,G]of h)N.removeEventListener(P,G);m(),p()}}addEvent(a){var s;if(this.isStopped)return;const u={time:new Date,type:"agentEvent",event:a};if(a.e===0){const h=a.options;this.urlHashing=(s=h?.urlHashing)!==null&&s!==void 0?s:pl(h?.stripUrlParams),u.documentReadyState=document.readyState,u.isPageVisible=Nc(),u.isFullscreen=sd(),u.network=jl()}switch(this.storeAgentEvent(u),a.e){case 2:this.submitReport(a.agentId,void 0);break;case 4:case 5:this.submitReport(a.agentId,a.getCallId)}}handleDocumentReadyStateChange(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})}handleVisibilityChange(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Nc()})}handlePageTransition(a){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:a})}handleFullscreenChange(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:sd()})}handleNetworkConnectionChange(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:jl()})}handlePageUnload(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(const a of Object.keys(this.events)){const s=this.events[a];if(Object.keys(s.getCalls).length===0)this.submitReport(a,void 0);else for(const u of Object.keys(s.getCalls))jg(s.getCalls[u])||this.submitReport(a,u)}this.stop()}storeAgentEvent(a){const s=a.event;if(!Vl(s))return;const{agentId:u}=s;if(this.events[u]||(this.events[u]={commonEvents:[],getCalls:{},collectCalls:{}}),ed(s)){const{getCallId:h}=s;let m=this.events[u].getCalls[h];return m||(m=[]),m.push(a),void(this.events[u].getCalls[h]=m)}if(C1(s)){const{collectCallId:h}=s;let m=this.events[u].collectCalls[h];return m||(m=[]),m.push(a),void(this.events[u].collectCalls[h]=m)}this.events[u].commonEvents.push(a)}storeEnvironmentEvent(a){for(const s of Object.keys(this.events))this.events[s].commonEvents.push(a)}submitReport(a,s){const u=(function(m,p,N){const P=[];return m[p]&&(P.push(...m[p].commonEvents),N!==void 0&&P.push(...m[p].getCalls[N]||[])),P.sort(((G,T)=>G.time.getTime()-T.time.getTime())),P})(this.events,a,s),h=(function(m,p,N){var P,G,T,U,z,Y,he,_e,Be;const Te=(function(Ve){const De={};for(const Ce of Ve)Ce.type==="agentEvent"&&(De[Ce.event.e]=Ce);return De})(m);let xe="null";for(const[Ve,De]of[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]])if(Te[Ve]){xe=De;break}return{time:((P=m[m.length-1])===null||P===void 0?void 0:P.time)||new Date,pageUrl:location.href,pageStartTime:new Date(p),isInIframe:y7(),agentVersion:(G=Te[0])===null||G===void 0?void 0:G.event.version,userAgent:navigator.userAgent,pageViewId:Gf(),agentId:(T=Te[0])===null||T===void 0?void 0:T.event.agentId,getCallId:(U=Te[3])===null||U===void 0?void 0:U.event.getCallId,requestId:(Y=(z=Te[4])===null||z===void 0?void 0:z.event.result.requestId)!==null&&Y!==void 0?Y:(_e=(he=Te[5])===null||he===void 0?void 0:he.event.error)===null||_e===void 0?void 0:_e.requestId,visitorId:(Be=Te[4])===null||Be===void 0?void 0:Be.event.result.visitorId,identificationState:xe,events:m,urlHashing:N}})(u,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(h)}catch(m){console.error(m)}}}function Un(o,a,...s){o&&_1((()=>{const u=a(...s);u!==void 0&&o(u)}))}function n9(){return{s:0,v:new URL("C:/").protocol}}function Cn(o){const a=u=>({s:0,v:u}),s=u=>{if(!(u instanceof Xt))throw u;const{state:h}=u;if(typeof h!="number")throw new Error(`Unexpected non-numeric error state ${JSON.stringify(h)}. Error message: ${u.message}`);return{s:h,v:null}};return()=>{try{const u=o();return(function(h){return!!h&&typeof h.then=="function"})(u)?u.then(a,s):a(u)}catch(u){return s(u)}}}async function r9(){const o=function(u,h,m){return u(h,m)},a=function(u,h,m){return u(h,m)},s=function(u,h){return u(h)};return(function(u){return u in navigator})(s(Fn,10))?{s:0,v:await Promise.all(zy.map((async u=>{try{const h=await o(Ae,o(Ae,navigator,2900309608),3516168465)(u);let m=0;return a(Ae,h,4146387716)&&(m+=1),a(Ae,h,1965183968)&&(m+=2),(function(p,N){return p(N,2920301991)})(Ae,h)&&(m+=4),m}catch(h){return(function(m){return m instanceof Error})(h)?o(Ae,h,3065852031):s(String,h)}})))}:{s:-1,v:null}}function vi(o){return O1(o,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}const Ml="js-agent",o9={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warn",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warn",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Gn(o){const a=Kr(o),s=Math.ceil(a.length/oc),u=[];for(let h=0;h<s;h++){const m=h*oc,p=a.slice(m,Math.min(m+oc,a.length));u.push(String.fromCharCode.apply(null,p))}return btoa(u.join(""))}function Os(o,a,...s){const u=document,h="visibilitychange",m=()=>u.hidden?N():p(),{start:p,stop:N}=(function(P,G,T,...U){let z,Y=!1,he=P,_e=0;const Be=()=>{Y||z||(_e=Date.now(),z=Dc((()=>{Y=!0,T(...U)}),he))};return G&&Be(),{start:Be,stop:()=>{!Y&&z&&(z(),z=void 0,he-=Date.now()-_e)}}})(a,!u.hidden,(()=>{u.removeEventListener(h,m),o(...s)}));return u.addEventListener(h,m),()=>{u.removeEventListener(h,m),N()}}function Bl(){const o=function(u,h,m){return u(h,m)},a=function(u,h,m){return u(h,m)},s=function(u,h,m){return u(h,m)};return(function(u,h,m){return u(h,m)})(Dn,o(Nn,1e3,{s:-2,v:null}),(async()=>{const u=await(h=pg,h());var h;if((function(m){return m!==0})(o(Ae,u,453955339)))return u;try{const[m,p]=o(Ae,u,1801730948),[N,P,G]=await o(S9,m,p);return{s:0,v:{s:G,f:N,v:a(Ae,P,4112659446),a:s(Ae,P,1956208378)}}}catch(m){if((function(p){return p instanceof TypeError})(m)&&(function(p,N){return p(N)})(B7,s(Ae,m,3065852031)))return{s:-7,v:null};throw m}}))}const i9=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,s9=/@([^(^\s^}]+):(\d)+:(\d)+/i;async function a9({cache:o}){const a=function(m,p){return m(p)},s=function(m){return m()},u=function(m,p,N){return m(p,N)};if(!(function(m){return m()})(Ol)||!s(dl))return()=>({s:-1,v:null});if(s(ae))return()=>({s:-3,v:null});const h=a(_l,o);return u(Dn,u(Nn,250,{s:-2,v:null}),(async()=>{const m=await Promise.all(ty.map((async N=>{const[P,G]=N;return[P,await a(G,h)]}))),p={};for(const[N,P]of m)p[N]=P;return{s:0,v:p}}))}function kl(o,a={},s){const u=function(m,p){return m!==p};var h;return u(s,null)&&u(s,void 0)||(s=[(function(m){return m()})(Wf)]),(function(m){return m!==null})(h=a[o])&&(function(m){return m!==void 0})(h)?h:a[o]=(function(m){return m(navigator,3994889901)})(Ae)(o,s)}async function Dl({modules:o,components:a={},customComponent:s,apiKey:u,tls:h,tag:m,extendedResult:p,exposeComponents:N,linkedId:P,algorithm:G,imi:T,storageKey:U,products:z,urlHashing:Y,ii:he,ab:_e,fast:Be,requestId:Te}){const xe={c:u,t:mg(m),cbd:p?1:void 0,lid:P,a:G,m:T.m,l:T.l,ec:N?1:void 0,mo:o.map((Ve=>Ve.key)).filter((Ve=>!!Ve)),pr:z,s56:h,s67:s?{s:0,v:s}:{s:-1,v:null},sc:D7(),uh:Mg(Y),ii:he,gt:1,ab:_e,hu:Be?0:Te?1:void 0,ri:Te,..._y(a)};return await Promise.all(o.map((async({toRequest:Ve})=>{Ve&&Object.assign(xe,await Ve(U,Y))}))),xe}function c9(){return(function({location:o,origin:a}){const s=o.origin,u=o.ancestorOrigins;let h=null;if(u){h=new Array(u.length);for(let m=0;m<u.length;++m)h[m]=u[m]}return{s:0,v:{w:a??null,l:s??null,a:h}}})(window)}function u9(o,a){const s=function(u,h){return u(h)};(function(u,h){u(h)})(jr,o[(function(u){return u(5)})(Pn)]()[s(Pn,6)](s(Pn,7),a))}function f9(){return o=Dn,a=Nn(Xy,{s:-2,v:null}),o(a,ry);var o,a}function Ul(){return{s:0,v:eval.toString().length}}async function l9(o){const a=function(u,h){return u!==h};var s;return a(s=(function(u,h){return u(h,3414765911)})(Ae,o),null)&&a(s,void 0)?s:await(function(u,h){return u(h,3779360887)})(Ae,o)()}const d9=1e3;function Pl(o,a){if(o.arr.length<a){const s=new Uint8Array(Math.max(2*o.arr.length,a));s.set(o.arr),o.arr=s}}function Mn(o){return ud(Or(o))}function Fl(o){var a,s;try{return(s=(a=localStorage==null?void 0:localStorage.getItem)===null||a===void 0?void 0:a.call(localStorage,o))!==null&&s!==void 0?s:void 0}catch{}}function Vl(o){return"agentId"in o}function Oc(o){return{s:0,v:o}}const Gl=[3,13],h9=[3,14],p9=3,Hl=9;function m9(o){return td(o,yg)}function g9(o,a){const s=function(G,T){return G<T},u=function(G,T,U,z){return G(T,U,z)},h=function(G,T){return G&T},m=function(G,T){return G+T};let p=0,N=0,P="";for(;s(p,o.length);)N=u(Zf,a[h(p,15)],x9,L9),P+=o.slice(p,m(p,N)),P+="/",p+=N;return P.slice(0,-1)}const v9=1024;function y9(){const o=Object.getOwnPropertyDescriptor(document,"createElement");return o?{s:0,v:!("writeable"in o)}:{s:-1,v:null}}async function w9(o,a){const s=function(G,T,U){return G(T,U)},u=function(G,T){return G!==T},h=function(G,T,U){return G(T,U)},m=s(Y7,o,a),{s:p,v:N}=s(ny,m,!0);if(u(p,0))return p;const P=h(Xv,N,a);try{const{s:G,v:T}=await h(Ae,P,142982734)();return u(G,0)?G:(await h(Ae,N,76151562)(T),0)}finally{(function(G,T){return G(T,107910612)})(Ae,P)()}}function _9(o){return(function(a,s){return a(s)})(R7,(function(a,s){return a(s)})(dn,o[(function(a){return a(69)})(Ke)]()))}function E9(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}async function R9(o,a){const s=function(p,N,P){return p(N,P)},u=function(p,N,P){return p(N,P)};let h;try{h=s(Ae,o,882066760)(a)}catch(p){if(!(function(N){return N instanceof Error})(p)||!u(Ae,new RegExp((function(N){return N(11)})(Qt),"i"),3632233996)(u(Ae,p,3065852031)))throw p;h=new Promise(((N,P)=>{s(Ae,o,882066760)(N,P,a)}))}const m=await h;return(function(p){return p===void 0})(m)?{s:-8,v:null}:{s:0,v:m}}function b9(o){if(!o||typeof o!="object")return!1;const a=o;return!(!ge()&&!D()||a.name!=="Error"&&a.name!=="TypeError"||a.message!=="Permission denied")||a.name==="SecurityError"}function $l(o){return new Promise(((a,s)=>{o(a,s).then((()=>s(new Error("Action didn't call `resolve` or `reject`"))),s)}))}function A9(o,a){return Math.floor(Ns()*(a-o+1))+o}function jl(){const{connection:o,onLine:a}=navigator;return{online:a,downlink:o?.downlink,downlinkMax:o?.downlinkMax,effectiveType:o?.effectiveType,roundTrip:o?.rtt,saveData:o?.saveData,type:o?.type}}async function S9(o,a){const s=Array.from((function(m){return m===null})(o)||(function(m){return m===void 0})(o)?void 0:o[(function(m){return m(5)})(Ke)].values()),[u,h]=await Promise.all([(function(m,p,N,P){return m(p,N,P)})(T7,o,s,a),(function(m,p){return m(p)})(vy,o)]);return[u,h,s]}function Nc(){return!document.hidden}var zr=Jt([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);function Ns(){return crypto?(crypto.getRandomValues(ac),(1048576*ac[0]+(1048575&ac[1]))/4503599627370496):Math.random()}function Kl(){let o,a;const s=new Promise(((u,h)=>{o=u,a=h}));return s.resolve=o,s.reject=a,s}const I9=8,O9=22,N9=[202,206],T9=2;function yi(o,a,s){if(o.length!==a.length||o.length!==s.length)throw new Error("Invalid encryption configuration: all input arrays must have the same length.");const u=new Array(o.length).fill(void 0);return h=>{var m;if(u.every((p=>p===null)))return null;for(let p=0;p<o.length;p++)if(u[p]!==null&&(u[p]||(u[p]=Wv(o[p],a[p],s[p])),u[p]!==null))return Wr((m=u[p])===null||m===void 0?void 0:m[h]);return null}}const x9=4,L9=7;function Tc(o){const a=function(z,Y){return z(Y)},s=function(z,Y){return z(Y)},u=function(z,Y){return z(Y)},h=function(z,Y){return z(Y)},m=function(z,Y){return z===Y};var p;const[N]=o.split("/").slice(-1),P=new window[a(Dt,1)],G=(function(z,Y){return z(Y,3626513111)})(Tr,new window[a(Dt,5)]("")[(function(z){return z(6)})(Dt)]("")),T=document[s(Dt,7)](G);T[a(Dt,8)]=u(Dt,3);const U=new window[(function(z){return z(9)})(Dt)]([],o,h(Dt,10));try{P[a(Dt,11)][(function(z){return z(12)})(Dt)](U)}catch(z){if((function(Y){return Y instanceof Error})(z)&&m(z.name,(function(Y){return Y(2)})(Dt))&&(function(Y){return Y!==-1})(m(p=z[u(Dt,13)],null)||(function(Y){return Y===void 0})(p)?void 0:p.indexOf(h(Dt,14))))return[N,-3,null];throw z}return T[u(Dt,15)]=P[(function(z){return z(15)})(Dt)],m(typeof T[(function(z){return z(16)})(Dt)],s(Dt,17))?[N,-4,null]:(function(z){return z===0})(T[(function(z){return z(16)})(Dt)].length)?[N,-2,null]:[N,0,T[h(Dt,16)][0]]}function Wl(o,a){return new Promise((s=>setTimeout(s,o,a)))}function zl(o,a,s,u){switch(o.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return F1(a,s,!0,u);case"NotAvailableWithoutUA":return F1(a,s,void 0,u);default:return{error:tc(cy(o),a,o),stop:o.code==="VisitorNotFound"}}}function C9(o,a,s,u){const h=u.bodyData;return h===void 0?fd(u):(function(m){return m instanceof Object&&m.v==="2"&&m.products instanceof Object})(h)?(function(m,p,N,P){var G;const{notifications:T,requestId:U,sealedResult:z,error:Y,products:he}=m,_e=(function(Te){const xe=[];for(const Ve of Object.keys(Te)){const De=Te[Ve];De&&xe.push(De)}return xe})(he);xc(T);for(const Te of _e)xc(Te.notifications);if(Y)return zl(Y,U,z,N);for(const{error:Te}of _e)if(Te)return zl(Te,U,z,N);(function(Te,xe,Ve){var De;for(const Ce of xe)(De=Ce.onGetResponse)===null||De===void 0||De.call(Ce,Te,Ve)})(m,p,P);const Be=(G=he.identification)===null||G===void 0?void 0:G.data;return{result:Be?{requestId:U,...z===void 0?{}:{sealedResult:z},...Be.result}:Zl(U,z,N)}})(h,o,a,s):fd(u)}function Zl(o,a,s){const u={requestId:o,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(a!==void 0&&(u.sealedResult=a),!s)return u;const h="n/a";return{...u,incognito:!1,browserName:h,browserVersion:h,device:h,ip:h,os:h,osVersion:h,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}}}const M9={noop:["a","b"]};function Ts(o){const a=L1(),s=new WeakSet,u=h=>{if(typeof h=="string"){const m=h.replace(Gg,(p=>"\\"+(Xf[p]||"u"+p.charCodeAt(0).toString(16).padStart(4,"0"))));return tr(a,34),Is(a,Or(m)),void tr(a,34)}if(typeof h=="number"||h===!0||h===!1)return(Number.isNaN(h)||h===1/0||h===-1/0)&&(h=null),void Is(a,Or(String(h)));if(typeof h=="object"&&h){if(s.has(h))throw new TypeError("Recursive input");s.add(h);const{toJSON:m}=h;if(typeof m=="function")return void u(m.call(h));if(h instanceof Number||h instanceof String)return void u(h.valueOf());let p=!0;const N=()=>{p?p=!1:tr(a,44)};if(Array.isArray(h)){tr(a,91);for(const P of h)N(),u(P);tr(a,93)}else{tr(a,123);for(const[P,G]of Object.entries(h))iw(G)||(N(),u(P),tr(a,58),u(G));tr(a,125)}s.delete(h)}else Is(a,lc)};return u(o),Kf(a)}function B9(){const o=(function(s,u){return s(u,3966979758)})(Ae,new window[a=Q1,a(0)](""));var a;return(function(s,u){return s!==u})(typeof o,(function(s){return s(1)})(Q1))?{s:-1,v:null}:{s:0,v:{isTrusted:o}}}async function xs(o,a){if(Y1(a))return o;const s=As(o);return await Promise.all(Ec.map((async u=>{const h=s[u];var m;a[u]&&h&&(s[u]=await(async function(p){var N;if(p==="")return"";const P=(N=window.crypto)===null||N===void 0?void 0:N.subtle;return P?.digest?Gn(await P.digest("SHA-256",Or(p))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"):gl})(u==="query"?(m=h,m.split("&").sort().join("&")):h))}))),Ss(s)}function xc(o){o?.forEach(Qg)}function Lc(){return`js/${cc}`}const Yl=async function(o){const a=(function(h){const m=h.filter((p=>!!p));return m.length?(...p)=>{for(const N of m)_1((()=>N(...p)))}:void 0})([gg()&&O7(),...(o?.modules||[]).map((h=>h.addEvent))]),s=a&&(function(h,m){return p=>{const N={...p,agentId:m};return h(N)}})(a,vi(8)),[u]=await Oo(s,(()=>({e:0,version:cc,options:o})),(([,h])=>({e:1,ab:h})),(h=>({e:2,error:h})),(()=>{var h;const{token:m,apiKey:p=m,region:N="us",tlsEndpoint:P=Es,disableTls:G,storageKey:T=uc,endpoint:U=_s,te:z=zf,integrationInfo:Y=[],algorithm:he,imi:_e={m:"s"},stripUrlParams:Be,urlHashing:Te=pl(Be),modules:xe,abTests:Ve={},externalABSelections:De={},optimizeRepeatedVisits:Ce=!1,aggressiveOptimization:Ye=!1,extendedSignalCollection:it=!0}=o;if(!p||typeof p!="string")throw new Error("API key required");const dt=(function(bt,Tt,At){const vt={...At},lt=Object.entries(bt);for(const[Gt,Ht]of lt){const mn=Tt[Gt];if(mn)try{vt[Gt]=Il(mn);continue}catch(nn){console.error(nn)}vt[Gt]=Il(Ht)}return vt})((function(bt){const Tt={...M9};for(const At of bt)Object.assign(Tt,At.ab);return Tt})(xe),Ve,De),mt=(function(bt,Tt){const At=function(vt,lt){return vt(lt)};return(Array.isArray(bt)?bt:[bt]).map((vt=>(function(lt,Gt,Ht){return lt(Gt,Ht)})(Sc,vt,_s)?At(Z7,Tt):At(String,vt)))})(U,N),Bt=(h=(function(bt){for(const Tt of bt)if(Tt.tls)return Tt.tls})(xe))===null||h===void 0?void 0:h(P,mt,p,G,void 0,s);Un(s,(()=>({e:12})));const Ft=(function(bt,Tt){return(function(At,vt,lt){return At(vt,lt)})(Sc,bt,zf)?(function(At,vt){return At(vt)})(Yy,Tt):(function(At,vt){return At(vt)})(String,bt)})(z,N),Vt={aq:[],ipq:!1,si:null,siw:null,ip:null,dc:{adb:0,crs:0,asib:0}};(async function(bt,Tt=50){bt.ip=jr((async function(At,vt){var lt,Gt;const{dc:Ht}=At,mn=document;for(;!mn.body;)Ht.adb++,await Wl(vt);const nn=mn.createElement("iframe");for(await new Promise(((yn,$n)=>{let wn=!1;const rn=()=>{wn=!0,yn()};nn.onload=rn,nn.onerror=jn=>{wn=!0,$n(jn)};const{style:un}=nn;un.setProperty("display","block","important"),un.position="absolute",un.top="0",un.left="0",un.visibility="hidden",nn.src="about:blank",mn.body.appendChild(nn);const on=()=>{var jn,Xr;Ht.crs++,wn||(((Xr=(jn=nn.contentWindow)===null||jn===void 0?void 0:jn.document)===null||Xr===void 0?void 0:Xr.readyState)==="complete"?rn():setTimeout(on,10))};on()}));!(!((Gt=(lt=nn.contentWindow)===null||lt===void 0?void 0:lt.document)===null||Gt===void 0)&&Gt.body);)Ht.asib++,await Wl(vt);At.si=nn,At.siw=nn.contentWindow})(bt,Tt))})(Vt);const pn=(function(bt,Tt,At){const vt={...At,cache:{}},[lt,Gt]=(function(yn){const $n={},wn={},rn={};for(const{sources:on}of yn)on&&(Object.assign($n,on.stage1),Object.assign(wn,on.stage2),Object.assign(rn,on.stage3));const un=wn;return Object.assign(un,rn),[$n,un]})(bt),Ht=(function(yn){return yn?1e5:50})(Tt),mn=ie(lt,vt,[],Ht),nn=jr((function(yn=50){return(function($n,wn=1/0){const{requestIdleCallback:rn}=window;return rn?new Promise((un=>rn.call(window,(()=>un()),{timeout:wn}))):r(Math.min($n,wn))})(yn,2*yn)})(8).then((()=>ie(Gt,vt,[],Ht))));return async()=>{const[yn,$n]=await Promise.all([mn(),nn.then((rn=>rn()))]);(function(rn){const{si:un,aq:on}=rn;for(un&&un.parentNode&&un.parentNode.removeChild(un),rn.si=null,rn.siw=null,rn.ip=null;on.length>0;){const jn=on.shift();jn&&jn.reject(new Error("Iframe cleanup called"))}rn.ipq=!1})(vt.sis);const wn=$n;return Object.assign(wn,yn),wn}})(xe,Ye,{urlHashing:Te,ab:dt,te:Ft,sis:Vt,esc:it});return[J7(xe,pn,Bt,p,mt,Ls(he),T,Y,_e,Te,dt,Ce,s),dt]}));return u},ql=function(o,a={}){const{storageKey:s=uc,do:u}=a;try{const h=(function(m){const p=_o(m);let N=p;try{N=x1(p,!1)}catch{}try{return Ei(N)}catch{}return null})(o);h!==null?(h.visitorToken&&cd(h.visitorToken,Hc(s)),xc(h.notifications),Un(u,(()=>({e:25,result:{response:h}})))):Un(u,(()=>({e:25,result:{error:new Error("Failed to decode response")}})))}catch(h){throw Un(u,(()=>({e:25,result:{error:h instanceof Error?h:new Error(String(h))}}))),tc(yc,void 0,h)}},k9=["32926","32928"];function Or(o){const a=new Uint8Array(o.length);for(let s=0;s<o.length;s++){const u=o.charCodeAt(s);if(u>127)return new TextEncoder().encode(o);a[s]=u}return a}function Xl(o){return de(o,(a=>typeof a=="number"?{s:a,v:null}:{s:0,v:a}))}const D9=hn(Q,-1),U9=de(g,(o=>o===-1||o===-2||o===-3?{s:o,v:null}:{s:0,v:o})),P9=de(ct,(o=>({s:0,v:o.map((a=>a===null?-1:a))}))),Jl=hn(we,-1),Ql=cn(Se),F9=hn(Ne,-1),e1=hn(Pe,-1),t1=de(We,(o=>({s:0,v:o.map((a=>a===null?-1:a))}))),n1=hn(Ge,-1),V9=cn(ce),G9=cn(je),H9=cn(ze),$9=cn(Xe),j9=hn(et,-1),r1=hn(ut,-1),K9=hn(ot,-1),W9=de((()=>ye()),(o=>{const{geometry:a,text:s}=o,u=a==="unsupported"?-1:a==="unstable"?-2:0;return{s:u,v:{...o,geometry:u===0?dn(a):"",text:u===0?dn(s):""}}})),o1=cn(rt),i1=cn($t),z9=cn(ht),Z9=cn(gt),Y9=hn(tn,-1),q9=hn(It,-1),X9=hn(Nt,-1),J9=hn(lr,-1),Q9=hn(kt,-1),ev=hn(Mt,-1),tv=hn($r,-1),nv=hn(zt,-1),rv=de(Zt,(o=>({s:0,v:dn(Object.keys(o).map((a=>`${a}=${o[a]}`)).join(","))}))),ov=hn(ps,-1),iv=cn(Yt),sv=hn(qt,-1),av=de(Xo,(o=>o===-1||o===-2||o===-3?{s:o,v:null}:{s:0,v:o})),s1=Xl(Qo),a1=de((c1=ei,o=>{const a=o.cache;if(a.webGlRawValues)return Wr(a.webGlRawValues);const s=c1(o);return typeof s=="number"?s:(function(u,h){const m=h;if(m.webGlRawValues)return Wr(m.webGlRawValues);const p=u.parameters.map((P=>{const[G,T,U]=P.split("=",3);return U!==void 0||k9.includes(T)?`${G}(${T})=null`:`${G}=${T}`})),N=u.extensionParameters.map((P=>{const[G,T,U]=P.split("=",3);return U!==void 0&&T!=="34047"?`${G}(${T})=${U}`:`${G}=${T}`}));return m.webGlRawValues={contextAttributes:u.contextAttributes,parameters:p,parameters2:u.parameters,shaderPrecisions:u.shaderPrecisions,extensions:u.extensions||[],extensionParameters:N,extensionParameters2:u.extensionParameters,unsupportedExtensions:u.unsupportedExtensions},Wr(m.webGlRawValues)})(s,o.cache)}),(o=>typeof o=="number"?{s:o,v:null}:{s:0,v:{contextAttributes:dn(o.contextAttributes.join("&")),parameters:dn(o.parameters.join("&")),parameters2:dn(o.parameters2.join("&")),shaderPrecisions:dn(o.shaderPrecisions.join("&")),extensions:dn(o.extensions.join(",")),extensionParameters:dn(o.extensionParameters.join(",")),extensionParameters2:dn(o.extensionParameters2.join("&")),unsupportedExtensions:o.unsupportedExtensions}}));var c1;const cv=Xl(Jo),uv=Cn(Jm),fv=Cn(Qm),lv=Cn(eg),dv=Cn(ag),hv=Cn(ng),pv=Cn(rg),mv=Cn(og),gv=Cn(cg),vv=Cn(ig),yv=Cn(sg),wv=Cn(ug),_v=Cn(fg),Ev=Cn(tg),Rv=Cn(lg),u1=cn(ge),f1=cn(D),l1=cn(f),d1=cn(R),h1=cn(B),p1=cn($),m1=cn(ae),g1=cn(A1),bv=cn(K);var Eo=Jt([2835032359,1872962713,180684482,500584696,63730940,1306150896,499189429,1304843e3,499189429,1019630328,29509878,1301219064,432166651,131555836,449206012,881788660,499271611,13452797,478218427,29509878,1301219064,181096700,47596011,1301248443,30231546,114771964,847334134],4);function Av(o){return nr(((a,s)=>{const u=s.screen,h=m=>{const p=parseInt(m);return typeof p=="number"&&isNaN(p)?-1:p};return{s:0,v:{w:h(u.width),h:h(u.height)}}}),o.sis)}function Sv(){if(typeof window.matchMedia!="function")return{s:-2,v:null};const o=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return o.matches===void 0?{s:-1,v:null}:{s:0,v:o.matches}}function Iv(){if(navigator.plugins===void 0)return{s:-1,v:null};const{plugins:o}=navigator;let a=Object.getPrototypeOf(o)===PluginArray.prototype;for(let s=0;s<o.length;s++)a&&(a=Object.getPrototypeOf(o[s])===Plugin.prototype);return{s:0,v:a}}function Ov(){const o=function(s,u){return s(u)},a=window[o(Vc,1)](document[o(Vc,2)]);return{s:0,v:(function(s){return s>=4})(o(Ir,Zy.map((s=>Ae(a,2297974007)(s)!==""))))}}const Ro=["monospace","sans-serif","serif"],v1=["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 Cc(o){switch(o){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 21:return"collect() start";case 22:return"collect() success";case 23:return"collect() fail";case 25:return"handleOnDemandResponse() completed";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";case 24:return"collect() result ready"}}function Nv(){const o=function(u,h){return u|h},a=new Uint32Array(4);return(function(u,h){return u(h,2617745417)})(Ae,window[s=hr,s(8)])(a),[o(a[0],0),o(a[1],0),(function(u){return 0|u})(a[2]),o(a[3],0)];var s}const Tv="mmMwWLliI0fiflO&1",Mc={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function xv(o){const a=u=>u.replace(/([,\\])/g,"\\$1"),s=o.map((u=>[a(u.voiceURI),a(u.name),a(u.lang),u.localService?"1":"0",u.default?"1":"0"].join(","))).sort();return{s:o.length?0:1,v:dn(JSON.stringify(s))}}var Lv=Jt([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);async function Cv(){const o=function(T,U,z){return T(U,z)},a=function(T,U){return T(U)},s=function(T,U){return T(U)},u=function(T,U){return T instanceof U},h=function(T,U){return T(U)},m=function(T,U,z){return T(U,z)},p=function(T,U){return T(U)},N=window[p(Zr,0)];if(!N)return{s:-2,v:null};const P=(function(T){return T+""})((G=(function(T){return T(16)})(vi),""+G));var G;return new Promise(((T,U)=>{try{const z=(function(Y,he){return Y(he,2758837156)})(Ae,N)(P,1);z[p(Zr,1)]=()=>{(function(Y,he){(function(_e,Be){_e(Be)})(Y,he)})(T,{s:-5,v:null})},z[a(Zr,2)]=Y=>{const he=o(Ae,o(Ae,Y,1181691900),325763347);try{return o(Ae,(function(_e,Be){return _e(Be,138212912)})(Ae,he)("-",a(Zr,3)),2928708052)(new window[s(Zr,4)]),void s(T,{s:0,v:""})}catch(_e){if(u(_e,Error))return void h(T,{s:0,v:m(Ae,_e,3065852031)});s(U,_e)}finally{o(Ae,he,318865860)(),m(Ae,N,3885781331)(P)}}}catch(z){if(!(function(Y){return Y()})(R))return void h(T,{s:-5,v:null});if(u(z,Error)&&(function(Y,he){return Y===he})(z.name,(function(Y){return Y(5)})(Zr)))return void(function(Y){Y({s:-4,v:null})})(T);(function(Y,he){Y(he)})(U,z)}}))}function Mv(){const o=window,a=navigator;return Ir(["maxTouchPoints"in a,"mediaCapabilities"in a,"PointerEvent"in o,"visualViewport"in o,"onafterprint"in o])>=4}async function Bv(o){return nr(((a,s)=>{const u=s.document.createElement("div");u.style.width="100px",u.style.height="100px",u.style.overflow="scroll",u.style.visibility="hidden",s.document.body.appendChild(u);const h=u.offsetWidth===u.clientWidth;return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function y1(){return typeof CompressionStream<"u"}async function kv(o){return await(function(a){return nr(((s,{document:u})=>{const h=u.body;h.style.fontSize="48px";const m=u.createElement("div");m.style.setProperty("visibility","hidden","important");const p={},N={},P=Y=>{const he=u.createElement("span"),{style:_e}=he;return _e.position="absolute",_e.top="0",_e.left="0",_e.fontFamily=Y,he.textContent="mmMwWLliI0O&1",m.appendChild(he),he},G=(Y,he)=>P(`'${Y}',${he}`),T=Ro.map(P),U=(()=>{const Y={};for(const he of v1)Y[he]=Ro.map((_e=>G(he,_e)));return Y})();h.appendChild(m);for(let Y=0;Y<Ro.length;Y++)p[Ro[Y]]=T[Y].offsetWidth,N[Ro[Y]]=T[Y].offsetHeight;const z=v1.filter((Y=>(he=>Ro.some(((_e,Be)=>he[Be].offsetWidth!==p[_e]||he[Be].offsetHeight!==N[_e])))(U[Y])));return h.removeChild(m),h.style.fontSize="",{s:0,v:z}}),a.sis)})(o)}function Dv(o,a){if(o!==void 0){if(!Array.isArray(o))throw new TypeError(`Expected ${a} to be an array, a ${(function(s){return typeof s=="object"?s?Object.prototype.toString.call(s):"null":typeof s})(o)} is given`);return o.map(String)}}const Uv=1655763047,w1=6;async function _1(o,a){try{return await o()}catch(s){return console.error(s),a}}const Pv=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function E1(){return mi("CSPError","The request is blocked by the CSP")}function Fv(){const o=function(s,u){return s===u},a=(function(s){return s(navigator,3087401394)})(Ae);return o(a,void 0)||o(a,null)?{s:-1,v:null}:{s:0,v:a}}async function Vv(){var o;const{userAgentData:a}=navigator;if(!a||typeof a!="object")return{s:-1,v:null};const s={},u=[];return typeof a.getHighEntropyValues=="function"&&await Promise.all(Pv.map((async h=>{try{const m=(await a.getHighEntropyValues([h]))[h];m!==void 0&&(s[h]=typeof m=="string"?m:JSON.stringify(m))}catch(m){if(!(m instanceof Error&&m.name==="NotAllowedError"))throw m;u.push(h)}}))),{s:0,v:{b:a.brands.map((h=>({b:h.brand,v:h.version}))),m:a.mobile,p:(o=a.platform)!==null&&o!==void 0?o:null,h:s,nah:u}}}function Gv({status:o,body:a}){return o===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(a)?{result:{s:0,v:a}}:{error:{s:-5,v:bo(`${o}: ${a}`,255)}}}async function R1(){const o=function(h,m,p){return h(m,p)},a=function(h,m,p){return h(m,p)},s=o(Ae,navigator,3179935986);if(!s)return{s:-3,v:null};let u=null;try{u=await o(Ae,s,1678473624)()}catch(h){if(h instanceof Error&&$())return{s:-3,v:a(Ae,h,3065852031)};throw h}return u?{s:0,v:u}:{s:-4,v:null}}function b1(o,a,s,u,h=Fy){const m=h()%(s+1),p=Kr(o),N=1+a.length+1+m+u+p.length,P=new ArrayBuffer(N),G=new Uint8Array(P);let T=0;const U=h();G[T++]=U;for(const Y of a)G[T++]=U+Y;G[T++]=U+m;for(let Y=0;Y<m;++Y)G[T++]=h();const z=new Uint8Array(u);for(let Y=0;Y<u;++Y)z[Y]=h(),G[T++]=z[Y];for(let Y=0;Y<p.length;++Y)G[T++]=p[Y]^z[Y%u];return P}function A1(){const o=window;return Ir([!("PushManager"in o),!("AudioBuffer"in o),!("RTCPeerConnection"in o),!("geolocation"in navigator),!("ServiceWorker"in o)])>=3}function Hv(o=!1){const a=function(h,m,p){return h(m,p)},s=function(h,m){return h(m)},u=(function(h){return h()})(Wf);return a(Ae,u,621177879)&&(a(Ae,u,621177879)[0][s(St,26)]=s(St,27)),o&&(u[s(St,28)]=(function(h){return h(29)})(St)),u}function Ae(o,a){const s=o[Tr(o,a)];return typeof s=="function"?s.bind(o):s}async function $v(o){return nr(((a,s)=>{if(!$())return{s:-1,v:null};const u=s.document.createElement("input");u.type="radio",s.document.body.appendChild(u);const h=s.getComputedStyle(u).getPropertyValue("font-family");return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function S1(o,a){if(a==="")return[o,[]];const s=o.split(a);return[s[0],s.length>1?s.slice(1):[]]}function jv(){var o,a;const s=ay(0),u={};for(const[h,m]of s)for(const p of m){const N=(a=(o=Object.getOwnPropertyDescriptor(window[h],p))===null||o===void 0?void 0:o.get)===null||a===void 0?void 0:a.toString();N!==void 0&&(u[`${h}.${p}`]=N)}return{s:0,v:u}}var Dt=yi([[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]],[vs],[1]);function Nr(o,a=Fc,s=null,u=Wy){const h={type:(m=Fn,m(1)),video:{contentType:o,...a}};var m;return s?{...h,audio:{contentType:s,...u}}:h}function Bc(o){const a=Fl(o);if(!a)return[];try{const s=a?JSON.parse(a):[];return Array.isArray(s)?s:[]}catch{return[]}}function kc(o,a,s){const u=()=>{throw new Error("Invalid data")},h=Kr(o);h.length<a.length+2&&u();for(let U=0;U<a.length;++U)T1(h[1+U],h[0])!==a[U]&&u();const m=1+a.length,p=T1(h[m],h[0]);h.length<m+1+p+s&&u();const N=m+1+p,P=N+s,G=new ArrayBuffer(h.length-P),T=new Uint8Array(G);for(let U=0;U<T.length;++U)T[U]=h[P+U]^h[N+U%s];return G}var wi=Jt([752472786,243421427,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function I1(o){return o>=48&&o<58||o===45}function Kv(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function Wv(o,a,s){const u=Or(a());try{return Ei((function(h,m,p){const N=Kr(h),P=new ArrayBuffer(N.length-p),G=new Uint8Array(P);for(let T=0;T<N.length;++T)G[T]=N[T]^m[T%m.length];return P})(new Uint32Array(o),u,s))}catch(h){if(Rs(h)&&h.name==="SyntaxError")return null;throw h}}function O1(o,a,s=Ns){let u="";for(let h=0;h<o;h++)u+=a.charAt(s()*a.length);return u}function N1(o){return o&&o.length<=1e3?o:void 0}function Nn(o,a){return new Promise((s=>Os(s,o,a)))}function tr(o,a){Pl(o,o.len+1),o.arr[o.len++]=a}function zv(o){const a=function(z,Y){return z*Y},s=function(z,Y){return z>=Y},u=function(z,Y){return z(Y)},h=function(z,Y){return z+Y},m=function(z,Y){return z<<Y},p=function(z,Y){return z%Y},N=function(z,Y){return z%Y},P=function(z,Y){return z+Y},G=new Uint8Array([Date.now()%1024,a(Math.random(),65536)]),T=G.length;let U=hy;for(let z=(function(Y){return Y-1})(o.length);s(z,0);z--){const Y=o[u(xt,2)](h(m(z,8),U));G[p(z,T)]^=h(Y,a(G[N(P(z,1),T)],17)),U=Y}return u(Or,(function(z,Y){return z(Y)})(Gn,G).slice(0,3))}function T1(o,a){return(o-a+256)%256}function Zv(){return o=Dn,a=Nn(450,{s:-2,v:null}),o(a,$g);var o,a}function Yv(){const o=Ae(navigator,2698072953);return o?{s:0,v:(function(a,s){return a(s)})(d7,o)}:{s:-1,v:null}}async function qv(){const o=function(T,U){return T(U)},a=function(T,U){return T<U},s=function(T,U,z){return T(U,z)},u=function(T,U){return T-U};if(lw())return[-1,NaN];const h=new Uint8Array([0]),m=(function(T){return T(0)})(Pn),p=await navigator[o(Pn,1)](o(Pn,2),m),N=await p[o(Pn,3)]();let P=await(function(T,U,z){return T(U,z)})(D1,N,h);const G=a(P,z1);if(G){const T=u(u(s(A9,z1,Ry),P),1);for(let U=0;a(U,T);U++)s(u9,N,h);P=await s(D1,N,h)}return[G?1:0,P]}function Xv(o,a){const s=function(xe,Ve){return xe(Ve)},u=function(xe,Ve){return xe===Ve},h=function(xe,Ve){return xe(Ve)},m=function(xe,Ve){return xe!==Ve},p=function(xe,Ve){return xe in Ve},N=function(xe,Ve){return xe(Ve)},P=function(xe,Ve){return xe in Ve},G=function(xe){return xe()},T=function(xe,Ve){return xe(Ve)},U=function(xe,Ve){return xe!==Ve};function z(xe,Ve){return s(Y,xe)&&(function(De,Ce){return De===Ce})((function(De,Ce){return De(Ce,3920415024)})(Ae,xe),yy)&&(function(De,Ce){return De(Ce,4101391790)})(Ae,xe).includes(Ve)}function Y(xe){return u(typeof xe,h(Qt,12))&&m(xe,null)&&p(N(Qt,13),xe)&&P(h(Qt,14),xe)}let he=null,_e=!1;async function Be(){const xe=s(Pg,o);if(U(xe,0))return{s:xe,v:null};const{s:Ve,v:De}=await s(R9,o);return(function(Ce){return Ce!==0})(Ve)?{s:Ve,v:null}:{s:0,v:De}}a&&(function(xe,Ve){return xe(Ve,123626528)})(Ae,o)((function(xe){return xe(15)})(Qt),(xe=>{(function(Ve,De,Ce){return Ve(De,Ce)})(z,xe,a)&&(he?(G(he),he=null,s(gi,o)):_e=!0)}));const Te={[T(Qt,17)]:()=>gi(o),[s(Qt,18)]:async()=>{const xe=await G(Be);return U((function(Ve,De){return Ve(De,453955339)})(Ae,xe),0)&&s(gi,o),xe}};return a?(function(xe){return xe(Object,1914874273)})(Ae)(Te,{[N(Qt,19)]:function(){(function(xe,Ve){return xe===Ve})((function(xe,Ve){return xe(Ve,4184312542)})(Ae,o),(function(xe){return xe(16)})(Qt))||(_e?T(gi,o):he=(function(xe,Ve,De,Ce){return xe(Ve,5e3,Ce)})(Os,gi,0,o))}}):Te}function Jv(o){const a={type:"manual",level:"debug",source:"client",timestamp_ms:o.time.getTime()};switch(o.type){case"documentReadyState":return{...a,body:{message:`Document ready state becomes "${o.state}"`}};case"pageVisibilityToggle":return{...a,body:{message:"Page becomes "+(o.isVisible?"visible (in foreground)":"invisible (in background)")}};case"pageTransition":return{...a,body:{message:o.isShown?"Page is restored from browser history":"Page is about to go to browser history"}};case"fullscreenToggle":return{...a,body:{message:"Programmatic fullscreen "+(o.isFullscreen?"on":"off")}};case"networkChange":return{...a,body:{...o.network,message:"Network connection changes"}};case"pageUnload":return{...a,body:{message:"Page is about to unload (terminate)"}}}const s=o.event,u=(h,m="info")=>{const{rest:p}=bs(h,["e","agentId","getCallId"]),N={...a,level:m,body:{message:Cc(s.e),...p}};for(const P of["documentReadyState","isPageVisible","isFullscreen","network"])o[P]!==void 0&&(N.body[P]=o[P]);return N};switch(s.e){case 0:{const{picked:h,rest:m}=bs(s,["version","options"]);return u({...m,options:Rg(h.options)})}case 1:case 3:case 4:case 21:case 22:case 6:case 9:case 12:case 16:case 18:return u(s);case 2:case 5:case 23:case 8:case 11:case 14:case 17:case 20:return u(s,"error");case 7:{const h=s.result;return u({...s,result:{...h,v:"v"in h?h.v&&bo(h.v,1e3):void 0}})}case 10:return u({...s,body:bo(s.body,1e3)});case 13:{const h=u({...s,result:zg(s.result)});return h.body.message+=" (the values are omitted)",h}case 19:{let h=s.body;return h instanceof ArrayBuffer&&(h=`(base64) ${h.byteLength>1800?`${Gn(new Uint8Array(h,0,1800))}...`:Gn(h)}`),u({...s,body:h})}case 15:return(h=>{const{rest:m}=bs(h,["e","agentId","getCallId"]),p=m.body,N=Object.values(p).some((P=>P&&typeof P=="object"&&"e"in P&&!("s"in P&&"v"in P)));return{...a,level:N?"warn":"info",body:{message:Cc(s.e),stage:m.stage,isCompressed:m.isCompressed,signals:{...p}}}})({...s})}}function Dc(o,a,...s){const u=Date.now()+a;let h=0;const m=()=>{h=setTimeout((()=>{Date.now()<u?m():o(...s)}),u-Date.now())};return m(),()=>clearTimeout(h)}function Uc(o){return(o instanceof DOMException||o instanceof TypeError)&&(i7.test(o.message)||(function(a){const s=a.match(s7);return!!s&&Mn(s[1])===f7&&Mn(s[2])===l7})(o.message)||a7.test(o.message)||c7.test(o.message)||u7.test(o.message))}function Ls(o){return o===void 0?void 0:`${o}`}var Zr=Jt([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 Hn(o){let a="";for(let s=0;s<o.length;++s)if(s>0){const u=o[s].toLowerCase();u!==o[s]?a+=` ${u}`:a+=o[s]}else a+=o[s].toUpperCase();return a}function x1(o,a){return kc(o,Gl,Hl)}function L1(){return{len:0,arr:new Uint8Array(128)}}function Qv(){return{s:0,v:tw(Navigator.prototype,Py)}}function C1(o){const a=o;return!!a.collectCallId&&typeof a.collectCallId=="string"}var St=Jt([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 ey(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};const o=new window.SharedArrayBuffer(1);return o.byteLength===void 0?{s:-1,v:null}:{s:0,v:o.byteLength}}const ty=[[St(1),o=>Z1(!1,o)],[St(2),()=>Z1(!0)],[St(3),()=>ws(St(4))],[St(5),()=>ws(St(6))],[St(7),()=>ws(St(8))],[St(9),()=>ws(St(10))]];function ny(o,a){const s=function(m,p){return m(p)},u=a?window[(function(m){return m(7)})(Qt)]||window[s(Qt,8)]:window[(function(m){return m(7)})(Qt)];if(!u)return{s:-3,v:null};let h;try{h=new u(o)}catch(m){if((function(p){return p instanceof Error})(m)){if((function(p,N){return p===N})(m.name,j1))return{s:-6,v:null};if(s(q7,m))return{s:-9,v:null}}throw m}return{s:0,v:h}}async function ry(){const o=function(p,N){return p(N)},a=function(p,N,P){return p(N,P)},s=function(p,N){return p!==N},u=window[o(Gc,1)];if(!u||(function(p,N){return p!==N})(typeof a(Ae,u,3192107409),o(Gc,2)))return{s:-1,v:null};const h=await a(Ae,u,3192107409)(),m={};for(const[p,N]of Object.entries(h)){const P=Jy[p];s(P,void 0)&&(m[P]=N)}return{s:0,v:m}}async function oy(){return Fg()?(function(o,a){return o(a,(async()=>{const s=await(function(u){return u()})(qv);return(function(u){return u===-1})(s[0])?{s:-3,v:null}:{s:0,v:s}}))})(Dn,(function(o,a){return o(a,{s:-2,v:null})})(Nn,by)):()=>({s:-1,v:null})}const M1=St(19);function iy(o,a,s,u){return function(){const h=a<<9;let m=5*o;return m=9*(m<<7|m>>>25),u^=a,a^=s^=o,o^=u,s^=h,u=u<<11|u>>>21,(m>>>0)/4294967296}}function sy(){var o,a,s=function(p,N){return p===N},u=function(p,N){return p===N},h=function(p,N,P){return p(N,P)};const m=s(a=(function(p){return p===null})(o=window[(function(p){return p(0)})(Lv)])||u(o,void 0)?void 0:h(Ae,o,3933025333),null)||u(a,void 0)?void 0:h(Ae,a,3098533860);return s(m,null)||s(m,void 0)?{s:-1,v:null}:{s:0,v:m}}function B1(){return{s:0,v:!!window.isSecureContext}}var ay=Jt([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 cy({code:o,message:a}){var s;return o===void 0?a:(s=(function(u){switch(u){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:Hn(o)}function uy(){const o=function(s,u){return s in u},a=function(s,u){return s(u)};return o(a(St,17),navigator)&&o(a(St,18),(function(s){return s(navigator,2900309608)})(Ae))}const k1=4191585516,fy=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,k1]);function bo(o,a,s="..."){return o.length<=a?o:`${o.slice(0,Math.max(0,a-s.length))}${s}`}async function D1(o,a){const s=function(m,p){return m(p)},u=function(m,p){return m(p)},h=o[s(Pn,5)]();return await h[u(Pn,6)](s(Pn,7),a),u(Number,h[u(Pn,8)])}async function U1(o,a,s,u,h){if(o.length===0)throw new TypeError("The list of endpoints is empty");const m=o.map((G=>(function(T,{apiKey:U}){return _c(T,{ci:Lc(),q:U})})(G,a))),p=await Dl(a),N=Ts(p),P=a.fast?0:1;return await Oo(h,(()=>({e:15,stage:P,body:p,isCompressed:wc(N)})),(G=>({e:16,stage:P,result:G})),(G=>({e:17,stage:P,error:G})),(async()=>(function({result:G,failedAttempts:T,aborted:U}){if(G)return G;const z=T[0];if(!z)throw U&&!U.resolve?U.error:new Error("aborted");const{level:Y,error:he}=z;if(Y===0&&he instanceof Error){switch(he.name){case"CSPError":throw new Error(gc);case"InvalidURLError":throw new Error(vc);case"AbortError":throw new Error(pc)}throw new Error(hc)}throw he})(await ld(m,Dy.bind(null,N,h,P,s),C9.bind(null,a.modules,!!a.extendedResult,a.storageKey),1/0,u))))}function ly(){var o;return{s:0,v:(o=performance.timeOrigin)!==null&&o!==void 0?o:Date.now()-performance.now()}}function P1(o){const a=Math.random();return(function(s,u,h){const[m]=s;m.push([u,h])})(o.container,a,o),(function(s,u,h){let m;function p(){window.clearInterval(m)}const[,N,P]=s,G=new Promise(((T,U)=>{m=window.setInterval((function(){const z=N.get(u);if(z)return N.delete(u),z.then(T,U)}),1)}));return G.then(p,p),h?.then(p,p),P.then(p,p),G})(o.container,a,o.abort)}var dy=Jt([1024705730,641842159,2578743392,3876471597,2070139803],6);function _i(o,a){return new Promise((s=>Dc(s,o,a)))}var xt=yi([[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]],[vs],[0]);const hy=137;function py(o,a,s,u,h,m){const p=u?[]:(function(U,z,Y){return(function(he,_e){const Be=function(Ce,Ye,it){return Ce(Ye,it)},Te=function(Ce,Ye){return Ce(Ye)},xe=function(Ce,Ye){return Ce(Ye)},Ve=Array.isArray(he)?he:[he],De=[];for(const Ce of Ve)if(Be(Sc,Ce,Es))for(const Ye of _e)De.push(Te(Kg,Ye));else De.push(xe(String,Ce));return De})(U,z).map((he=>_c(he,{q:Y})))})(o,a,s);if(p.length===0)return()=>Promise.resolve({s:-1,v:null});Un(m,(()=>({e:6})));const N=Kl(),P=yl(N),G=Date.now(),T=ld(p,wg.bind(null,5e3,m,P),Gv,Math.max(10,p.length),h);return T.then((()=>N.resolve()),(()=>N.resolve())),async function(U,z,Y,he){if(Y)return{s:-1,v:null};try{await Promise.race([T,o7(G,U,z)]);const _e=(function({result:Be,failedAttempts:Te}){if(Be!==void 0)return Be;const xe=Te[0];if(!xe)return{s:-3,v:null};if(xe.level===1)return xe.error;const{error:Ve,endpoint:De}=xe;if(Ve instanceof Error){const{name:Ce,message:Ye}=Ve;switch(Ce){case"AbortError":return{s:-2,v:Ye};case"TimeoutError":return{s:-3,v:Ye};case"CSPError":return{s:-6,v:Ye};case"InvalidURLError":return{s:-7,v:`Invalid URL: ${bo(De,255)}`};case"TypeError":return{s:-4,v:Ye}}}return Ic(Ve)})(T.current);return Un(he,(()=>({e:7,result:_e}))),_e}catch(_e){throw Un(he,(()=>({e:8,error:_e}))),_e}}}function F1(o,a,s,u){return{result:{...Zl(o,a,u),bot:{probability:1,...s===void 0?void 0:{safe:s}}}}}function V1(){const o=navigator.languages;return o?{s:0,v:o}:{s:-1,v:null}}function my(o,a,s,u){const h=function(m,p){return m(p)};return new Promise(((m,p)=>{a[h(xt,9)]=N=>m({i:ys(u),t:Mn(N[xt(10)]),s:a[xt(11)],e:a[xt(12)],p:Gn(N[xt(13)])}),o[h(xt,14)](s),a[h(xt,15)](h(xt,16),u).catch(p)}))}var gy=Jt([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);async function vy(o){var a;return(function(s){return s!==null})(a=o[(function(s){return s(70)})(Ke)])&&(function(s){return s!==void 0})(a)?a:await o[(function(s){return s(71)})(Ke)]()}function G1(){return W1("dark")?{s:0,v:!0}:W1("light")?{s:0,v:!1}:{s:-1,v:null}}var Qt=Jt([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);const yy=400;function H1(o,a,s){const u=Tr(o,a);if(!u)return"";const h=_o(s),m=Array(h.length);for(let p=0;p<h.length;p++)m[p]=h[p]^u.charCodeAt(p%u.length);return String.fromCharCode.apply(null,m)}function $1(o,a){const s=Ac(o);if(a.size===0)return;const u=Bc(s).filter((h=>!a.has(h[0])));u.length!==0?bc(s,JSON.stringify(u)):(function(h){var m;try{(m=localStorage==null?void 0:localStorage.removeItem)===null||m===void 0||m.call(localStorage,h)}catch{}})(s)}function Ei(o){const a=L1(),s=Kr(o);let u=0;const h=()=>(G(),s[u]===34?m():I1(s[u])?p():T(lc)?(u+=lc.length,null):T(Yf)?(u+=Yf.length,!0):T(qf)?(u+=qf.length,!1):s[u]===91?N():s[u]===123?P():U()),m=()=>{for(a.len=0;u++,s[u]!==34;){if(s[u]===92){if(u++,s[u]===117){const he=parseInt(ys(s.subarray(u+1,u+5)),16);Is(a,Or(String.fromCharCode(he))),u+=4;continue}const Y=Vg[s[u]];if(Y){tr(a,Y);continue}return U()}if(s[u]===void 0)return U();tr(a,s[u])}return u++,ys(Kf(a))},p=()=>{const Y=u;for(;s[u]===46||s[u]===101||s[u]===69||s[u]===43||I1(s[u]);)u++;return Number(ys(s.subarray(Y,u)))},N=()=>{const Y=[];for(u++;;){if(G(),s[u]===93){u++;break}if(Y.length){if(s[u]!==44)return U();u++}Y.push(h())}return Y},P=()=>{const Y={};let he=!0;for(u++;;){if(G(),s[u]===125){u++;break}if(!he){if(s[u]!==44)return U();u++,G()}if(s[u]!==34)return U();const _e=m();if(G(),s[u]!==58)return U();u++,Object.defineProperty(Y,_e,{value:h(),configurable:!0,enumerable:!0,writable:!0}),he=!1}return Y},G=()=>{for(;s[u]===32||s[u]===10||s[u]===13||s[u]===9;)u++},T=Y=>{for(let he=0;he<Y.length;he++)if(s[u+he]!==Y[he])return!1;return!0},U=()=>{throw new SyntaxError("Unexpected "+(u<s.length?`byte ${u}`:"end"))},z=h();return G(),s[u]!==void 0&&U(),z}const j1=Qt(6);function K1(){return Cs(0)}function wy(){return(function(o){return o in navigator})(Vn(0))&&(function(o){return o!==void 0})((function(o){return o(navigator,2646664628)})(Ae))}function W1(o){return matchMedia(`(prefers-color-scheme: ${o})`).matches}function _y(o){const a={};for(const s of Object.keys(o)){const u=o[s];if(u){const h="error"in u?Ic(u.error):u.value;a[s]=h}}return a}function Ey(o){return nr(((a,s)=>{const u={},h=s.document.createElement("div");s.document.body.appendChild(h);const 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"};for(const N of Object.keys(m))u[m[N]]=(p=N,h.style.color=p,s.getComputedStyle(h).color);var p;return s.document.body.removeChild(h),{s:0,v:u}}),o.sis)}var Pn=yi([[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]],[function(){return nc([Tr(o=new Image().style,2487676862),Tr(o,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]);var o}],[2]);const z1=10,Ry=2500;async function Z1(o=!1,a){return(function(s){return s===0})((function(s,u){return s(u,453955339)})(Ae,await(function(s,u,h){return s(u,h)})(X1,a,o)))}async function nr(o,a){const{aq:s,ip:u}=a;if(u===null)throw new Error("Shared iframe is not available");try{await Promise.race([u,(h=`Iframe initialization timed out, debugCounters: ${JSON.stringify(a.dc)}`,Nn(Jg).then((()=>Promise.reject(new Error(h)))))])}catch(p){if(Uc(p))return{s:-101,v:null};throw p}var h;return await new Promise(((p,N)=>{const P={action:o,resolve:p,reject:N};s.push(P),(async function(G){const{aq:T,ipq:U,si:z,siw:Y}=G;if(!U&&T.length!==0){for(G.ipq=!0;T.length>0;){const he=T.shift();if(he)try{const _e=await he.action(z,Y);he.resolve(_e)}catch(_e){he.reject(_e)}}G.ipq=!1}})(a)}))}const by=500;function Ay(o){return new Uint8Array([(function(a){return a>>24})(o),(function(a){return a>>16})(o),(function(a){return a>>8})(o),o])}var Cs=yi([[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]],[vs],[2]);function Y1(o){return!(o&&Ec.some((a=>o[a])))}function Sy(){try{throw"a"}catch(o){try{return o.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}const Iy=500;function Oy(o,a){const s=function(p,N){return p<N},u=function(p,N){return p+N},h=(function(p,N){return p+N})(o.length,a.length),m=new Uint8Array(h);for(let p=0;s(p,o.length);p++)m[p]=o[p];for(let p=0;s(p,a.length);p++)m[u(p,o.length)]=a[p];return m}function Ny(){const o=function(G,T){return G-T},a=function(G,T){return G*T},s=function(G,T){return G>=T},u=function(G,T){return G===T},h=function(G,T){return G%T},m=function(G,T){return G|T},p=function(G,T){return G**T},N=[];let P=Math.random();for(let G=o(a(6,4096),1);s(G,0);--G)if(u(h(G,4096),0)){const T=Math.random();N.push(m(a(o(P,T),p(2,31)),0)),P=T}return{s:0,v:N}}function Ty(){const o=function(u,h){return u!==h},a=function(u,h){return u(h)},s=a(_o,(function(u){return u(0)})(xt));return Object.defineProperty(s,(function(u){return u(2)})(xt),{value:function(u){var h;const m=o(h=this[a(xt,1)],null)&&o(h,void 0)?h:0,p=this[m];return this[m]=(function(N,P){return N|P})((function(N,P){return N&P})(p,~u),(function(N,P){return N&P})(~p,u)),this[(function(N){return N(1)})(xt)]=(function(N){return N+1})(m),p}}),s}var Ke=yi([[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,438979704,100941378,1381385537,33619995,505875729,119147817,153229835,20323964,453520970,1308901389,134224668,324158218,140184588,136785483,455937847,1145648204,1494293834,320544012,1971969,319380746,359333889,104340027,1544500554,1141003010,1209157132,67441480,1511480093,104666369,1328827942,1075133262,152198427,149830,1477446935,1427587336,1194921745,1547195181,353853786,470698257,1510890510,1159481353,521949703,526588437,192026238,239739657,442307401,256466199,1481069662,1091916807,191889498,175708721,1578723163,1142444571,403526171,474109016,436863826,1513165895,1227047982,1410678607,1310151680,1326799388,156435474,491723532,153230682,91688828,286089482,471550231,1511481182,945321480,218765652,526583891,1131496748,1561928206,1498942025,241044293,373446478,340072261,510001485,1114971518,789340426,1464415314,121639178,474109261,339869763,510074189,1131496749,1561862926,1482164809,241043525,373445966,1430675269,981021962,289151081,206126103,1314788169,308153156,524440649,373424195,493296973,1131496750,1562058766,290982473,974735686,324366422,140184588,1466392143,1131765368,286482698,1325800471,394831,169369099,54987290,657872206,120986675,1565553235,1209411907,253564417,1280836866,470686025,237312859,522912050,201357853,1141003025,1511147020,386751269,1310132765,292225025,270091815,865110,1465648906,67108874,184644125,1192692237,309397319,1601199207,404362525,1330912518,34669650,1212173143,1113211225,1316896855,104596079,39597315,1195772422,1364869959,1430658377,184767552,1513967123,321592373,1510961754,218960155,420305921,1258684700,1108743697,506609673,1547125293,1478042203,1494042381,1327128087,1225806877,387334407,191907615,108599857,101923614,291246082,1381515331,1447304521,1514364485,1348950091,1165318776,1145925391,391666511,1465401923,1413749065,1497586757,1348951883,1081432952,1129147407,374889295,1364738371,1346640201,1531141957,1549950795,1378683704,100689750,151848977,420305920,474366537,1073758992,140973855,1579227002,219771980,1499072079,391076631,390618884,475275347,337911369,489691709,454256461,1207961623,6036480,1329684253,1510738463,1010648577,791688480,1565554302,1431968600,236390922,1477205770,1258697756,359674705,2890289,1326676557,1393764638,1225000704,625476693,167839243,1328283662,75056996,121710658,1276451417,319888927,386887006,1176443398,661342039,372705078,1543910474,1465139282,357826574,487414111,186456605,1529830456,1282104626,101128728,1142492674,122947073,370019595,559220289,661996366,322568504,437138263,22894923,1427576601,1725955,1907229,523115079,388700960,67910512,1432095759,139985219,487414091,469762058,443565827,293290614,16209,1326529286,822482699,151870732,1275724032,238767179,456461092,1480802125,1426131009,441995264,152915527,167780869,1165052930,389480762,1447896833,1074862848,69211931,387799325,1279479052,70125060,388696895,1447917639,1075187217,236586839,1229602839,993994827,322112307,658250785,285621072,1968588097,874523178,657942583,657137952,1265183017,571878774,656737658,56118071,336660254,1195642624,436608286,523123202,388700960,390297089,1427442705,202711306,386744597,1276396363,556535562,388825661,1448835153,1393888269,1124073738,105513240,437127707,153234434,489367856,1480796758,1427181121,85596973,268918562,386802457,1161763592,3820664,286604102,1443954741,39214669,285820951,135933196,1161366273,171461752,1480796497,1965894465,824910122,540507936,723659301,1265187369,654911862,302460769,1377901318,1125192974,725421897,1008740640,1164397610,1059916595,286337602,1326791431,1297487624,286088775,458048331,388629257,293290614,16209,1140930566,69667613,507776785,504765259,1165052930,389285664,419442256,56118035,251731212,1464995601,223167252,321198856,595280502,758325110,1915829052,606223904,642384199,825638694,1158167604,455756920,1480802137,1899308097,540090416,1195642657,167840283,102439938,1585126695,390275448,1393888271,337122105,1045565184,1113342297,1266171991,1584021604,1447888658,1159005711,1532363296,282183,1112349960,138353989,34999078,121856001,1141245463,1294536525,151473735,439229702,254283539,104270649,1447917648,1443954709,106323533,271276288,662811,523123219,388700960,390297089,1427442705,203108618,17189896,17563948,1161366275,511382904,402929730,1146508097,85659905,407527168,185421125,891619072,389873713,117443153,56118032,822089500,151870732,1275724032,37243979,472919072,454237511,223746326,319881805,135938563,185336072,157893189,1585125691,353582593,56118036,1125129226,1707849,402849818,37633794,386537254,1447917655,1912866830,67113755,273285447,504234503,1160710935,490359928,19080019,1393626885,339090747,386747139,139281227,337772558,1349864508,419639120,223747338,117510221,1192904707,251809093,506998551,1585122618,556866817,1812203566,1125193216,540675913,1112353576,87956805,321592373,1447917658,1076889111,857805595,1195642665,17367296,359219781,388767537,270544464,1140857090,119159581,3477258],[386942744,1229409564,135333655,220795160,755369005,1162041120,503777537,1079123715,101517389,52050726,1427192580,236473163,17109769,173424715,371009796,1292251441,203046987,50927385,503982872,1446053403,2376539,169555715,117837325,355405073,438900482,405154853,1145049870,34409291,436733206,2017924890,638784598,973210372,286198279,134625543,1778647041,1009795397,268569364,290080074,202965528,507332635,134354452,152965423,402923329,102564125,236739842,706150459,290790203,240978695,52177998,454823436,1197226506,251672392,419431940,285429263,286416394,290006535,454303788,1090915598,354048009,1091132175,356080479,1362842883,236919825,1209617177,1075316761,1093555476,337803338,1427785501,1461339656,1327303942,2047102737,571952141,1411208983,1326531854,1276973337,957501722,745215771,457971551,407048258,1413810758,189744919,1549274479,1208835629,122683732,290717969,1259620628,638538288,504780064,289608031,404029529,1326585167,1276018207,1460741645,67916804,1511283736,5195038,273234948,18622334,507904847,352344385,1426083608,1329023043,947075610,202117450,224136543,1162101260,1076894017,225976393,122166853,524816962,356848732,759700802,1934427230,839535692,39204446,173872912,827003996,778964035,457907295,1396720145,1175783745,475925317,240979582,341646696,1346527045,877014553,34144849,994774908,138743678,457380169,375002446,172294213,223881039,1179478043,1108677450,1146689345,924407616,357832018,155268902,1497649743,1094734404,220025925,438702086,70325591,1643545,408686104,873550429,472322827,1550150419,16787279,34278407,1180648471,637797448,705626696,68491267,202001233,153046535,1929861143,640029993,1109330433,340264718,221009951,287179034,392108605,33756966,84029457,1074532368,341187916,1850366843,185875050,105454599,253041247,1598032221,1531017813,1582329169,520750428,38280011,172363532,1397193033,1599825007,201611598,1293566492,152902925,1513770251,1228544271,386943257,1528448786,1477775372,271666946,1530556186,1142562583,337331719,1090600968,2015169296,974674202,89939485,4923146,505091400,2018055445,1735348549,1363894105,1447319620,1480607296,1381915715,1364935032,1364940655,1564958533,1482178904,1447053120,1951357028,1430470776,1598381646,1532780110,1111776323,1113088073,1112109901,1346787403,1409356039,504713500,1259350291,386693676,273026379,1577274897,121837076,1479285852,473648920,390531163,55525907,105650965,460533334,104543053,118166278,51401991,102436100,894245895,1766327564,1560547859,790446857,822095617,1632649257,544018770,218371856,1594628871,1241852697,390673753,318898225,1543849261,420228884,1090781211,558652764,655163434,1325931325,508117330,525344259,520690773,85014549,84018010,1126112264,878009691,135922955,1259218440,425033074,491261958,134813266,220011032,1211127597,1534153233,487532364,270076938,306978074,439238914,980298315,677136966,218171141,16778500,1951154752,1996624386,202705923,437853723,336330837,756226304,606995002,374278681,189012548,386466882,387778316,474766640,72698209,520751643,118564625,824054024,788928801,1158290237,18434638,85723410,1581910529,50410823,206135566,119147077,270153991,1313754636,101132047,1297688929,135073796,355993372,437918484,1450723095,103155988,169542172,1465403663,353242630,103158868,1500917265,1026695245,404360509,973741573,822219547,390290262,1009987360,909389373,623721020,1682123578,67903563,824389676,1078217532,436798749,1197361674,354289187,521285926,236526109,173431126,353177886,771897901,352983332,1242711104,706153743,387711750,1431205399,84157967,1226512898,391600150,404031771,218106372,463655,1162482194,67700042,201393710,20649781,472001799,1293750808,118966599,286787601,506267706,376860481,469959197,169290252,1293748502,738480196,1866662918,1027487047,607402026,691414576,220997944,2019637031,926361687,68033578,473498121,1192693518,790779512,892871434,1229409572,603983891,68944909,755120940,1263341619,470555456,424820800,34144769,341211207,50603539,236599298,287706393,391663133,319831107,1297053222,201657107,487396891,1245924636,438372881,1467564803,206261002,18488836,625886550,807019577,638652732,758393632,792740939,808860735,1982210107,705844568,1162154527,606742093,757868074,1783451184,808257051,53943568,1313479195,206441271,387124483,337319170,1011697446,1196966233,1162304324,1298094684,1632580729,51255864,1380653101,152833856,1581915406,402663239,120202771,407720773,285678367,1076433227,252062531,456402476,17498899,67241733,1245924639,53545988,39931221,438965010,454105369,201932032,205132824,376860481,469959197,17640204,184618269,990256173,1628639760,88411209,403573006,155930199,739118874,694227212,117787993,805699599,168304137,370358301,1130059303,922943536,118365952,1259412253,69162560,755641148,136131120,1145772055,504699968,521797641,303512068,424111939,1196236296,352784457,1314410014,1091380740,168261231,520359188,353973005,222041630,1450723078,909312026,169674243,5654345,67961882,1261175836,439837007,488644127,503778831,439157540,637539342,625171286,437131532,1447512327,17498374,1682118685,842400075,1075120659,50678596,371142940,1229982465,874984310,705102862,1225657094,740710232,1296969773,555096682,102565685,1246054939,221512470,540872219,1431860777,402861320,424494405,285213966,137697306,102578176,152771889,3489800]],[function(){return(function(o,a){const s=Ae(o,704082790);return nc([Tr(a,3017323393),H1(o,859837811,"QjslADtOBipACA")||H1(s,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])})(navigator,document.createElement("frameset"))},vs],[1,1]);async function xy(o,a){const s=function(T,U){return T(U)},u=function(T,U,z){return T(U,z)},h=function(T,U){return T(U)},m=function(T,U,z){return T(U,z)},p=function(T,U,z){return T(U,z)},N=function(T,U){return T(U)},P=await m(Ae,o,552725026)(),G=p(Ae,P,3695949181)();try{const T=new Promise(((z,Y)=>{const he=function(Ve,De,Ce){return u(Ve,De,Ce)};let _e,Be=!1;const Te=()=>{Be=!0,(function(Ve){return Ve!==void 0})(_e)&&window[s(qr,1)](_e),u(Ae,G,244589941)((function(Ve){return Ve(2)})(qr),xe)},xe=Ve=>{if(!Be)if((function(De){return(function(Ce){return Ce===2})(De)})(he(Ae,he(Ae,Ve,3065852031),740233146)))(function(De,Ce){return m(De,Ce,2552575352)})(Ae,G)(a).catch((De=>{(function(Ce){(function(Ye){Ye()})(Ce)})(Te),(function(Ce,Ye){h(Ce,Ye)})(Y,De)}));else{(function(Ce){(function(Ye){Ye()})(Ce)})(Te);const De=new Uint8Array((function(Ce,Ye){return p(Ce,Ye,3065852031)})(Ae,Ve));(function(Ce,Ye){h(Ce,Ye)})(z,De)}};m(Ae,G,123626528)(h(qr,2),xe),_e=window[s(qr,3)]((()=>{Be||(function(Ve){Ve()})(Te)}),Vy)})),U=N(_o,h(qr,4));return await(function(z,Y){return z(Y,2250224811)})(Ae,G)(N(qr,5),U),await T}finally{try{await u(Ae,G,318865860)()}catch{}}}function Ly({clientId:o,token:a="pubef3f54bbe39b4277dd16624a5e8312d2"}){const s=new t9((async u=>{const h=`https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=${a}&dd-evp-origin=browser&dd-evp-origin-version=1.0.0`,m=(function(p,N,P=Al()){var G;const{level:T,message:U}=o9[N.identificationState],z=(function(Te,xe){if(Y1(xe))return Te;const Ve=As(Te);for(const De of Ec)xe[De]&&Ve[De]&&(Ve[De]=gl);return Ss(Ve)})(N.pageUrl,N.urlHashing),Y=N.events.map(Jv),he=Y.some((Te=>Te.level==="error")),_e=Y.some((Te=>Te.level==="warn")),Be={ddsource:"browser",ddtags:`env:dev,service:${Ml}`,service:Ml,date:N.time.getTime(),message:U,level:he?"error":_e?"warn":T,clientId:p,framework:"Fingerprint",language:"javascript",uuid:P,notifier:{name:"Fingerprint monitoring",version:cc},request:{url:z,query_string:((G=/\?.*$/.exec(z))!==null&&G!==void 0?G:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:N.userAgent,code_version:N.agentVersion}},person:N.visitorId===void 0?void 0:{id:`visitorId:${N.visitorId}`},body:{telemetry:[{level:"debug",source:"client",timestamp_ms:N.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}},...Y],message:{body:U}},custom:{isInIframe:N.isInIframe,pageViewId:N.pageViewId,agentId:N.agentId,getCallId:N.getCallId,requestId:N.requestId,identificationState:N.identificationState}};return JSON.stringify([Be])})(o,u);await(async function(p,N){const P=hl(1e3,1e4),G=new Blob([N],{type:"application/json"});for(;!navigator.onLine||!E7({url:p,body:G});)await _i(P())})(h,m)}));return s.addEvent.bind(s)}function Cy(o){return(function(a,s){return a(s)})(Rs,o)&&(function(a,s){return a===s})((function(a){return a+""})(""+o),(function(a){return a(17)})(xt))}const Ri=16,Ao=16,So=8;function My(){const o=function(h,m){return h(m)},a=function(h,m){return h(m)},s=function(h,m){return h(m)},u=function(h,m,p,N){return h(m,p,N)};return[o(Nr,(function(h){return h(2)})(Fn)),a(Nr,(function(h){return h(3)})(Fn)),(function(h,m){return h(m)})(Nr,a(Fn,4)),s(Nr,(function(h){return h(5)})(Fn)),a(Nr,o(Fn,6)),(function(h,m,p){return h(m,p)})(Nr,s(Fn,7),Ky),u(Nr,(function(h){return h(4)})(Fn),Fc,(function(h){return h(8)})(Fn)),u(Nr,s(Fn,6),Fc,(function(h){return h(9)})(Fn))]}const By=4169850297,ky=new RegExp(Jt([39174333,51812406,885210665,4099360837,1242130291,1365653239,2003041115,1707369036,3273002536,359933e3,1948332465],5)(0));function Dy(o,a,s,u,h,m,p){return Oo(a,(()=>({e:18,stage:s,tryNumber:m,url:h})),(({status:N,getHeader:P,body:G,bodyData:T,wasSecret:U})=>({e:19,stage:s,tryNumber:m,status:N,retryAfter:P("retry-after"),body:T??G,wasSecret:U})),(N=>({e:20,stage:s,tryNumber:m,error:N})),(async()=>{const N=await(async function({body:P,...G}){const[T,U]=wc(P)?await vl(P):[!1,P],z=await P1({...G,body:ul(U,T),responseFormat:"binary"});let Y=z.body,he=!1;try{Y=x1(Y,!1),he=!0}catch{}return{...z,body:Y,wasSecret:he}})({url:h,method:"post",headers:{"Content-Type":"text/plain"},body:o,withCredentials:!0,abort:p,container:u});return(function(P){let G;try{G=Ei(P.body)}catch{}return{...P,bodyData:G}})(N)}))}function q1(o,a,s,u){fl((()=>{const h=`${o}=${a}`,m=`expires=${new Date(Date.now()+24*s*60*60*1e3).toUTCString()}`,p=u?`domain=${u}`:"";document.cookie=[h,"path=/",m,p,"SameSite=Lax"].join("; ")}),void 0)}async function Uy(){try{return{s:0,v:await(function(o,a=4e3){return H(((s,u)=>{const h=u.document,m=h.body,p=m.style;p.width=`${a}px`,p.webkitTextSizeAdjust="none",p.setProperty("text-size-adjust","none"),f()?m.style.setProperty("zoom",""+1/u.devicePixelRatio):R()&&m.style.setProperty("zoom","reset");const N=h.createElement("div");return N.textContent=[...Array(a/20|0)].map((()=>"word")).join(" "),m.appendChild(N),o(h,m)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')})(((o,a)=>{const s={},u={};for(const h of Object.keys(Mc)){const[m={},p=Tv]=Mc[h],N=o.createElement("span");N.textContent=p,N.style.whiteSpace="nowrap";for(const P of Object.keys(m)){const G=m[P];G!==void 0&&(N.style[P]=G)}s[h]=N,a.append(o.createElement("br"),N)}for(const h of Object.keys(Mc))u[h]=s[h].getBoundingClientRect().width;return u}))}}catch(o){if(Uc(o))return{s:-101,v:null};throw o}}async function X1(o,a=!1){const s=function(m){return m()},u=function(m,p,N,P){return m(p,N,P)};if(!s(Ol)||!s(dl))return{s:-1,v:null};if(!await s(A7))return{s:-2,v:null};const h=(function(m,p){return m(p)})(Hv,a);try{return{s:0,v:await u(kl,M1,o,[h])}}catch{return{s:-3,v:null}}}var Yr=Jt([1058085656,755065913,591387725,129841502,4267773802,944664064,1500447153,1699147887,1224620868,4264117283,677258056,1080570024,1964094248,134111503,3007202158,269444104],5);function J1(){const o=window.devicePixelRatio;return o==null?{s:-1,v:null}:{s:0,v:o}}const Py=new Set([2882888216,2306836488,1040191956,1447924955]);function Fy(){return crypto.getRandomValues(jf),jf[0]}var Q1=Jt([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function ed(o){const a=o;return!!a.getCallId&&typeof a.getCallId=="string"}var qr=Jt([346417124,3652618933,3415905489,3253897955,2294399372,4070113219,3251407103,3790651278,3281774077,3704133079,3942300820,3367225321,4294875871,2331302290,3768121793,3888880373,3201419702,3231249615,3437080024,3100701610,3314799614,3758005657,2210585768,4271564258,3438535137,3202800573,3366777040,3303964898,2682776755,3951621071,2159973508,4008833771,3834510307,3721574652,3975475112,3700541151,4124803294,3095585942,3247897010,3807349469,2666921394,4072405711,2195887329,3154092449,4294345125,3888048838,3053383582,3253728495,3755524068,2532356992,3435067859,4275287775,2625825195,3434202529,2160370131,2496716211,3113534649,4075273716,3919438518,3752838589,3723725017,2465382589,3869810136,3740114311,2948853427,3773496770,3803351801,3952999656,3740726744,2264707582,3201236378,3332498654,3857093830,3972063642,3719283692,3236399861,2408578979,3722477823,4189761762,3783784893,3166361052,3976174325,3992312192,3924749508,4276728450,2564278682,2994979003,4089872596,2710490283,3249730500,4072511186,2699427004,3432903858,4089558744,2598495113,3216571058,3875126671,2916413345,3019038131,4278096123,2714560668,3499681728,3520970703,2935474610,3734566863,4058549465,2397888693,3649293503,3790334595,3033720459,3649291238,2229842819,2563889641,3264725957,3623783675,2180889534,3197950130,2179985116,3085158067,3549095404,3535397375,2516315025,3700870369,2398731507,3196105632,3331032025,3858610141,2949954204,4193226680,2211417304,2866061727,3686171852,3520654823,3791248297,3214074061,4223644355,2513361645,4204459429,3355152593,2543437536,3918648781,4004747161,2596587405,3366839520,3874003956,2564812727,3331441115,4223968132,2542187179,3485269211,4124110847,2381307884,2997600697,3723726493,3185957288,3387744482,4075417541,3084055278,3014969267,2582359544,3951294654,3332217343,3669592518,3787970999,4176905458,2178456300,2716330417,3651767969,3741234428,2851648183,2777211119,2180229583,2946350571,3869178341,3621566446,2529215113,3723682e3,4124946404,3939286952,3332032457,4053920986,3204036799,3015689465,4039568325,2541866927,3438010588,3590034112,3988905614,3012558810,3304832485,2514985405,4002541807,3973679769,3017591728,3314470877,4193238482,2983185323,3264972264,3523058939,3162627819,4076263902,2647437262,3018252672,3668479922,4022960577,2681128378,3770581153,3252335833,3218734243,4069981417,3655439325,2751195028,3466326249,3623659993,2646785979,3298870747,4208626831,2599543454,2776731315,3887244174,2862472074,3734230266,3522074095,2681794463,3198743013,3251027585,2541803933,3682660317,4092635365,3218268138,4209959352,3485381324,3992056763,3550215898,2197416672,3184325562,3887632123,2580524480,3185951914,4018929093,3506082243,4120164232,4021671336,3755912151,2899963828,2834666750,3321478363,4224970168,4020933798,3689123266,2915296700,3422263976,3838548215,3133982865,3415790008,2177603831,2834997692,3650017490,3487625157,3906333850,3182528216,4157315303,2566904730,3348889560,3536107236,2212357867,3903450322,3538718683,3184319646,3348299721,4176648412,2206643087,3919638749,3821647567,4220247017,4021982374,3953703640],3);const Vy=5e3;async function td({cache:o},a){const{speechSynthesis:s}=window;if(typeof s?.getVoices!="function")return{s:-1,v:null};o.tts||(o.tts=(async function(h){const m=()=>{return R()?(P=()=>h.getVoices(),()=>{let G=null,T=null;try{T=P()}catch(U){G=U}return[G,T]})():[null,h.getVoices()];var P};if((function(P){var G;return!P.addEventListener||$()&&A1()||R()&&Mn((G=window.origin)!==null&&G!==void 0?G:"")===548031109})(h)){const[P,G]=m();if(P)throw P;return{v:G}}const p={v:null};let N;try{await new Promise(((P,G)=>{let T;const U=()=>{const[z,Y]=m();return Array.isArray(Y)&&Y.length?(p.v=Y,T?.(),T=Dc(P,50)):T||(T=Os(P,600)),[z,Y]};N=Io(h,"voiceschanged",(()=>{try{const[z]=U();z&&G(z)}catch(z){G(z)}})),U()}))}finally{N&&Os(N,1e4)}return p})(s));const u=await o.tts;return()=>u.v?a(u.v):{s:-2,v:null}}function Gy(o){const a=Hc(o);let[s,u]=(function(h){return[Cl(h),Fl(h)]})(a);return s=N1(s),u=N1(u),s!==void 0&&u!==void 0?{s:0,v:s||u}:s!==void 0?{s:1,v:s}:u!==void 0?{s:2,v:u}:{s:-1,v:null}}function Hy(){return(function(o){const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(o),"hardwareConcurrency");if(!a||!a.get)return{s:-1,v:null};const s=window.Function,u=window.Object;let h=!1;try{h=delete window.Function&&delete window.Object}catch{h=!1}if(!h)return m(),{s:-2,v:null};try{return a.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{m()}function m(){try{window.Function=s,window.Object=u}catch{}}})(navigator)}var Pc=Jt([3268306020,1189123365,3125061564,2812436647,1370270536,3104304876,2864333227,1189143047,3863391919,3133019362,232973317,2689380846,4109895146,502529820,4262523388,3806594546,334622221,3994352377,4074964461,100137739,2705777380,4025355697,502660630,4145147134,4043052789,502594832,3875927031,3958246626,2028005125],3);function nd(o,a){const s={},u=["x","y","left","right","bottom","height","top","width"],h=o.getBoundingClientRect();for(const p of u)p in h&&(s[p]=h[p]);const m=a.getComputedStyle(o,null).getPropertyValue("font-family");return s.font=m,s}function rd(o){const a=location.hostname,s=$();(function(u,h){let m=u.length-(u.slice(-1)==="."?1:0);do if(m=m>0?u.lastIndexOf(".",m-1):-1,h(u.slice(m+1))===!0)return!0;while(m>=0);return!1})(a,(u=>{if(!s||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(u)||u===a)return o(u)}))||o()}function od(o){const a=Number(o);return isNaN(a)?-1:a}var hr=Jt([4216757916,2482823581,3322768783,3940655043,2767747340,149091984,3502500195,1661791409,2978971883,4181675939,4172402883,2313775364,95272926,2491872360,792833511,4287662331,4050917852,2915032708,2164222495,1336127956,3386158881,792833466,3817182206,3224306427],7);const bi=4;function $y(o){return(function(a,s,u,h){const m=document,p="securitypolicyviolation";let N;const P=T=>{const U=new URL(a,location.href),{blockedURI:z}=T;z!==U.href&&z!==U.protocol.slice(0,-1)&&z!==U.origin||(N=T,G())};m.addEventListener(p,P);const G=()=>m.removeEventListener(p,P);return h?.then(G,G),Promise.resolve().then(s).then((T=>(G(),T)),(T=>new Promise((U=>{const z=new MessageChannel;z.port1.onmessage=()=>U(),z.port2.postMessage(null)})).then((()=>{if(G(),N)return(()=>{throw E1()})();throw T}))))})(o.url,(()=>(function({url:a,method:s="get",body:u,headers:h,withCredentials:m=!1,timeout:p,responseFormat:N,abort:P}){return new Promise(((G,T)=>{if((function(z){if(URL.prototype)try{return new URL(z,location.href),!1}catch(Y){if(Y instanceof Error&&Y.name==="TypeError")return!0;throw Y}})(a))throw mi("InvalidURLError","Invalid URL");const U=new XMLHttpRequest;try{U.open(s,a,!0)}catch(z){throw z instanceof Error&&/violate.+content security policy/i.test(z.message)?E1():z}if(U.withCredentials=m,U.timeout=p===void 0?0:Math.max(p,1),N==="binary"&&(U.responseType="arraybuffer"),h)for(const z of Object.keys(h))U.setRequestHeader(z,h[z]);U.onload=()=>G((function(z){return{body:z.response,status:z.status,statusText:z.statusText,getHeader:Y=>(function(he,_e){const Be=new RegExp(`^${Te=_e,Te.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}: (.*)$`,"im").exec(he);var Te;return Be?Be[1]:void 0})(z.getAllResponseHeaders(),Y)}})(U)),U.ontimeout=()=>T(mi("TimeoutError","The request timed out")),U.onabort=()=>T(mi("AbortError","The request is aborted")),U.onerror=()=>T(mi("TypeError",navigator.onLine?"Connection error":"Network offline")),U.send((function(z){const Y=()=>{try{return new Blob([]),!1}catch{return!0}};if(z instanceof ArrayBuffer){if(!Y())return new Uint8Array(z)}else if(z?.buffer instanceof ArrayBuffer&&Y())return z.buffer;return z})(u)),P?.catch((()=>{})).then((()=>{U.onabort=null,U.abort()}))}))})(o)),0,o.abort)}function id(){const o=Date.now();return{s:0,v:[od(o),od(o-6e4*new Date().getTimezoneOffset())]}}var rr=Jt([1346232286,2962034951,861670240,68735456,3321456994,2017670418,588174816,2179169902,858485284,68735456,3321456994,2017670418,588174816,2195947118,858485284,68735456,3321456994,2017670418,588174816,2212724334,858485284,68735456,3321456994,1665545490,471454207,3270010982,858485267,303616480,4159274862,1634877202,1917620990,4076171370,2019769865,1300451,3654247266,1665152014,1913701858,3521131307,2138969112,856284652,3605299026,1399464463,889640696,3588055669,1634598930,1040833768,3387710818,863184143,822973089,3740554623,1919827201,571458782,4075320934,1952527893,892388351,3236184437,2137930757,687996136,2465817704,1886024268,1023534069,3572006263,1702835508,587580152,3825169495,1952657672,823452671,2628744288,1768308034,537776606,3288298603,1114977584,889508325,3522773621,1025848583,671210927,3269616980,1398945537,889640696,3588055669,1886323474,51566057,3588911219,2082831426,607373548,3622593384,1768031237,890422777,3270001012,1969633331,607372008,2464708198,1886024268,957277685,3724508769,2002855202,1295080,3638453090,1667380225,922862814,2460037986,1149186317,1057413603,3318709365,1667380742,873388495,3823796078,862071305,822973089,3757654655,1952461074,906413519,3654247266,2137928718,705291242,2460037986,1147746573,1057413603,3318709365,1667380742,587650754,3704382818,2087270153,1913970408,3655349035,2121466638,889704959,3605750853,2001216005,604357611,3622075718,2137144590,1917620985,3874844778,1953702405,907408117,3288298593,2082831426,623036652,3270014817,1954363699,1027775663,3587926374,1768039442,571786444,3304616814,1025843973,671210927,3305075793,1682253829,570808043,3523175238,1668481817,1912984804,3521131307,1701386520,607372008,3823662694,1952657672,1024455679,3588456055,863249422,822973089,3303233663,1700012549,50714604,3588845679,1667630610,1006817764,2628739682,1768308034,1057808334,3304673397,2087662337,588570344,3719249189,2118395905,286449633,3555485043,2137144584,605680377,3588055650,2087060242,1912986877,3521131307,2087195416,890553853,3690954320,1684546055,1058333693,3588911221,1954363699,1027775663,3754846566,1701978125,638515688,3303830120,1651064585,118674909,3622200168,1634877202,1027775663,3754846566,1701978125,571467752,3758061164,2018779157,1916327415,3521131307,2087195416,890553853,3690954320,1684546055,705291261,2628733026,1768308034,537780174,3890767218,1986798095,538304511,3589765204,858485306,320393696,3321724008,2119185684,570940415,3288163432,1433744688,1040571876,3739383924,2082831426,958580972,3268048233,1651975439,588635357,3305075793,1682253829,570808043,2460038004,1115631885,823320569,3318707296,1667380742,370080254,3723128949,1114848773,889704953,3719249189,1700014081,922862306,3606598498,1651848454,892788420,3370673525,1986405427,1917620968,3824513130,1886732052,892655082,3271058815,2135827205,922862283,3303240810,1986405427,1917620968,3824513130,1886732052,892655082,3271058815,2135827205,605214171,3302910306,862074625,591568080,3739509619,858485255,957209057,2460181107,1969648204,890552556,3739500405,1025851142,822399407,3270010231,2120302121,587584675,3236193124,2137536788,826449071,3304943715,2135826949,877584363,3554961250,858485253,536990956,4194268275,1063794190,824624100,3522133355,1967536899,890552556,2460038005,1883317001,822271201,3570170468,1953701889,1917620991,3758056258,1919315986,588502510,2431287150,1634214416,689226472,2460037927,1277522010],6);const jy=rr(0);function sd(){return!!ee()}var Fn=Jt([1435303418,2123044869,1559249858,283799713,233274796,1387864800,182614752,469727664,1304044256,1320890352,536361710,468150447,469727664,1287529184,1391864050,316833504,1554463399,468677044,249968557,497755126,502168749,149562801,1319447026,867379436,1555245292,402471662,1373928870,334069173,300431609,233340326,1190883071,145306848,300842155,485388269,497755055,502168749,251471281,1319444978,1320826610,1555245292,402471662,1373928870,1170172079,451181538,1140358055,1340632746,1218783724,1303532780,1555782380,402471662,1373928870,1170172079,451181538,1140358055,1340632739,1321152236,1555245810,402471662,1373928870,1170172079,451181538,1140358055,1340632739,1321152236,1555573746,199899886,1373925798,1173127085,451181538,1140358055,234776749,531182816,300055735,1257993709,300431609,233340326,1257993727,1321154211,1386819052,451835360,533232043,401177010,402616750,598305703],4);const ad=1e6,Fc={width:1920,height:1080,bitrate:5*ad,framerate:30},Ky={width:3840,height:2160,bitrate:20*ad,framerate:60},Wy=Fn(0);function Io(o,a,s,u){return o.addEventListener(a,s,u),()=>o.removeEventListener(a,s,u)}const zy=My();function cd(o,a){(function(s,u){rd((h=>{(function(m,p){q1(m,"",-1,p)})(s,h)})),rd((h=>(q1(s,u,365,h),Cl(s)===u)))})(a,o),bc(a,o)}var Vc=Jt([1844342124,1731613500,990986353,203511828,207120145,2115912049,489049920,1598038361,559087932,1081151567,1276649489,823205686,36704522,505363536,2115063679,153178895,1480597849,1046283050,1097948932,1329626654,2119767866,1097947136,1581284894,911344434,138088735,1208300629,1896886385,774330634,1226653267,5769255,138364185,1481604894,1044975164,673665544,1493186128,236853565],3);const Zy=Vc(0);var or=Jt([1879312905,2234210727,1020072502,1551618835,3372564357,919471162,1383433502,3607443400,1036386878,356305173,2232696003,847580021,285859349,2639409619,612703099,506889564,3289590996,2077492028,506889564,3355585474,2072728107,305451550,4199689154],3);function ud(o){const a=Kr(o);sc=sc||(function(){let u;const h=new Uint32Array(256);for(let m=0;m<256;m++){u=m;for(let p=0;p<8;p++)u=1&u?3988292384^u>>>1:u>>>1;h[m]=u}return h})();let s=-1;for(let u=0;u<a.length;u++)s=s>>>8^sc[255&(s^a[u])];return~s>>>0}function fd(o){return{error:tc(mc,void 0,{httpStatusCode:o.status,bodyBase64:Gn(o.body)})}}var Vn=Jt([1710548451,3119540450,126326602,2433453468,2359230870,415292490,2567278741,2375621521,1153467142,2652734674,2375621761,332321286,2634648786,3234482823,76387599,2215215519,3231582091,415292437,2147847554,3235662486,25990412,3695871637,2358594201,227447305,2551155640,2542996387,293703962,2182928594,3235646871,227514652,3525089183,3535821272,1255063640,2567996317,2744982927,1388352783,3527712704,2358319749,1250333980,2433007836,2396144832,1255068167,3695873681,3230861760,75747908,2907341201],3);function ld(o,a,s,u=1/0,h){const m={failedAttempts:[]},[p,N]=(function(T){const U=(function(he){const _e=[...he];return{current:()=>_e[0],postpone(){const Be=_e.shift();Be!==void 0&&_e.push(Be)},exclude(){_e.shift()}}})(T),z=hl(200,1e4),Y=new Set;return[U.current(),(he,_e,Be)=>{let Te;if(_e)Te=(function(Ve){const De=Ve.getHeader("retry-after");if(!De)return;if(/^\s*\d+(\.\d+)?\s*$/.test(De))return 1e3*parseFloat(De);const Ce=new Date(De);return isNaN(Ce)?void 0:Ce.getTime()-Date.now()})(_e),Te!==void 0?U.postpone():U.exclude();else if(Be instanceof Error&&(Be.name==="CSPError"||Be.name==="InvalidURLError"))U.exclude(),Te=0;else{const Ve=Date.now()-he.getTime()<50,De=U.current();De&&Ve&&!Y.has(De)&&(Y.add(De),Te=0),U.postpone()}const xe=U.current();return xe===void 0?void 0:[xe,Te??he.getTime()+z()-Date.now()]}]})(o),P=(G=[h?.then((T=>m.aborted={resolve:!0,value:T}),(T=>m.aborted={resolve:!1,error:T})),(async()=>{if(p===void 0)return;let T=p;for(let U=0;U<u;++U){const z=new Date;let Y,he;try{Y=await fc((()=>a(T,U,h)),h)}catch(Be){he=Be,m.failedAttempts.push({level:0,endpoint:T,error:Be})}if(Y){const Be=s(Y);if("result"in Be){m.result=Be.result;break}if(m.failedAttempts.push({level:1,endpoint:T,error:Be.error}),Be.stop)break}const _e=N(z,Y,he);if(!_e)break;await fc(_i(_e[1]),h),T=_e[0]}})()],Promise.race(G.filter((T=>!!T)))).then((()=>m));var G;return{then:P.then.bind(P),current:m}}function Yy(o){const a=function(s,u){return s+u};return a(a("",(function(s){return s(6)})(zr)[o]),(function(s){return s(7)})(zr))}function Tr(o,a){let s=o;for(;s;){const u=Object.getOwnPropertyNames(s);for(let h=0;h<u.length;h++){const m=u[h];if(Mn(m)==a)return m}s=Object.getPrototypeOf(s)}return""}function qy(o){const a=function(u,h){return u(h)},s=function(u,h){return u(h)};return new Promise((u=>{const h=(function(m,p){return m+p})((function(m,p){return m+p})(a(Cs,1),o),(function(m){return m(2)})(Cs));try{const[,m,p]=(function(N,P){return N(P)})(Tc,h);if((function(N){return N!==0})(m))return void s(u,m);p[a(Cs,3)]((()=>u(0)),(()=>u(-1)))}catch{s(u,-2)}}))}var Gc=Jt([3180672052,4136321821,1069993656,3701007392,745851388,3604256741,4280449231,2679085715,3668516990,1943205530,3515015719,796709882,3083637708,3961536391,3585578196,2683904356,2093990364,3615946797,2034223591,3083640489,3929227153,3640576901,2548503396,1876095948,3431189038,930339069,3789133282,2975952850,3706046676,2208919359,1271918795,3735025958,611570924,3789134555,3862000347,3588345271,2684300664,1925838043,2597103921,577620960,3885685417,4280447448,3487227027,2564957300,1065859019,2496980017,611634871,3570702309,3892474321,3387284885,2227709816,1943597533,3566723639,1629986790,4141455352,4167119263,3707494303,2231238769,1775497418,3398694934,577362129,3083573986,3895476103,2444745859,2447519807,1221719254,3617120301,828298210,4225602286,3877795017,3468133076,3668516968,1774579866,3515213094,539481082,3319567353,4164121295,3635905236,3668521854,1774579866,3515213094,858248186,2946142457,2838722719,3320879834,2246387305,668203729,3515284258,1629986801,3083966446,4079370129,3472612738,3437571188,1959650777,3683569191,645515513,4036676777,2837869788,3320879834,2246387305,668203729,3700685088,561172951,4036676777,2808184798,3387809236,2683841912,2122841047,3901943345,644469479,2946138856,4213209247,2679741060,2482977656,1926555350,3583947053,642703092,3789391080,3999344543,2444741534,2196973119,1959721949,3570197804,645582836,4158102217,3999344543,2444745370,2196973119,1959721949,3586975020,709743612,4225612517,2838194650,3505429196,3668520813,1774579866,3515213094,858248186,4040527850,2975951315,3303398868,3567730239,1910497512,3720210474,644873964,3788936175,2838461652,3371408090,2684297331,1084226519],7);const Xy=450,Jy=Gc(0);async function dd({te:o}){const a=function(p){return p()},s=function(p,N){return p===N},u=function(p,N,P){return p(N,P)},h=a(Al),m=await u(Dn,u(Nn,300,-4),w9.bind(null,h,o));return()=>{const p=a(m);return s(p,0)||s(p,-4)?{s:p,v:{u:h,e:[],s:[]}}:{s:p,v:null}}}const Qy=function(){return{key:"bd",sources:{stage1:{s94:dd,s167:dg},stage2:{s106:dv,s154:a9,s158:ow,s160:m9,s97:$f,s70:Bl,s152:Ag,s163:k7},stage3:{s1:Jl,s2:Ql,s4:e1,s5:t1,s7:n1,s15:r1,s19:o1,s27:i1,s74:s1,s75:a1,s24:Ul,s44:G1,s45:id,s57:J1,s59:u1,s60:f1,s61:l1,s62:d1,s63:h1,s64:p1,s65:m1,s68:g1,s69:El,s72:Sl,s82:bl,s83:V1,s99:B1,s101:uv,s103:fv,s104:lv,s117:hv,s119:pv,s123:mv,s131:gv,s133:vv,s136:yv,s148:wv,s149:_v,s150:Ev,s157:Rv,s102:Kv,s118:Iv,s120:Sy,s130:nw,s132:Hg,s135:n7,s139:N7,s142:Sv,s144:ey,s145:P7,s146:E9,s151:y9,s153:e7,s155:jv,s156:v7,s159:Hy,s162:Yv,s165:B9,s166:Qv}}}};async function ew(){const o=function(De,Ce,Ye){return De(Ce,Ye)},a=function(De,Ce){return De(Ce)},s=function(De,Ce,Ye){return De(Ce,Ye)},u=function(De,Ce){return De+Ce},h=function(De,Ce){return De in Ce},m=function(De,Ce,Ye){return De(Ce,Ye)},p=function(De,Ce){return De(Ce)},N=function(De,Ce,Ye){return De(Ce,Ye)},P=function(De,Ce){return De(Ce)},G=function(De,Ce){return De(Ce)},T=function(De,Ce){return De+Ce},U=function(De,Ce){return De+Ce},z=function(De,Ce){return De+Ce},Y=function(De,Ce){return De(Ce)},he=function(De,Ce,Ye){return De(Ce,Ye)},_e=await(Be=R1,Be());var Be;if((function(De){return De===-3})(o(Ae,_e,453955339))){let De=null;return(function(Ce,Ye){return Ce===Ye})(typeof o(Ae,_e,1801730948),a(rr,1))&&(De=s(Ae,_e,1801730948)),{s:-1,v:De}}if((function(De){return De===-4})(s(Ae,_e,453955339)))return{s:-2,v:null};const Te=s(Ae,_e,1801730948),xe=[];let Ve="";try{if(Te)for(const it of jy)Ve=u(u(a(rr,2),it),""),xe.push(h(it,o(Ae,Te,1455634619))?m(Ae,Te,1455634619)[it]:null);Ve=a(rr,3);const De=await(function(it,dt){return it(dt)})(l9,Te);Ve=a(rr,4);const Ce=(function(it,dt){return it(dt,1843675174)})(Ae,De);Ve=p(rr,5);const Ye=N(Ae,De,154121870);return Ve=p(rr,6),{s:0,v:{ds:Ce,dv:Ye,f:h(P(rr,7),De)?N(Ae,De,4163855836):null,l:xe}}}catch(De){if(G(j7,De))return{s:-3,v:T(U(T(z(Y(rr,8),Ve),G(rr,9)),he(Ae,De,3065852031)),"")};throw De}}function tw(o,a){const s=[],u=Object.getOwnPropertyNames(o);for(let h=0;h<u.length;h++){const m=u[h],p=Mn(m);a.has(p)&&s.push({i:h,n:m})}return{l:u.length,p:s}}function nw(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}async function rw(){const o=function(s,u,h){return s(u,h)},a=await o(Ae,o(Ae,navigator,770559087),616412651)((function(s){return s(3)})(Vn));return o(Ae,a,2744374011)}function ow(o){return nr(((a,s)=>{const{webdriver:u}=s.navigator;return u===null?{s:-1,v:null}:u===void 0?{s:-2,v:null}:{s:0,v:u}}),o.sis)}function iw(o){return o===void 0||typeof o=="function"||typeof o=="symbol"}async function Oo(o,a,s,u,h){let m;Un(o,a);try{m=await h()}catch(p){throw Un(o,u,p),p}return Un(o,s,m),m}function Hc(o){return`${o}_t`}async function sw(o){const a=function(p,N){return p(N)},s=function(p,N){return p(N)},[u,h,m]=a(Tc,o);return(function(p){return p!==0})(h)?{n:u,l:h}:await new Promise((p=>{m[(function(N){return N(3)})(Dt)]((N=>{a(p,{n:u,l:N[s(Dt,4)]})}),(()=>{(function(N,P){s(N,P)})(p,{n:u,l:-1})}))}))}async function aw(){const o=function(m){return m()},a=function(m,p){return m(p)},s=function(m,p,N){return m(p,N)},u=function(m,p,N){return m(p,N)},h=(function(m){return m()})(m7);return h?o(Vf)?await u(Dn,s(Nn,350,{s:-2,v:null}),(async()=>({s:0,v:await Promise.all(h.map(sw))}))):await u(Dn,s(Nn,350,{s:-1,v:null}),(async()=>({s:-1,v:await Promise.all([a(xl,h[0])])}))):await s(Dn,s(Nn,350,{s:-3,v:null}),(async()=>({s:-3,v:await Promise.all([o(xl)])})))}const cw=function(){return{key:"id",sources:{stage1:{s94:dd,s213:Wg},stage2:{s52:g7,s6:P9,s58:Vv,s20:kv,s36:D9,s51:Uy,s21:U9,s79:aw,s69:El,s23:G7,s29:K7,s84:Av,s85:p7,s89:Ng,s17:W9,s87:Ey,s92:H7,s93:vg,s95:oy,s97:$f,s70:Bl,s204:Bv,s206:$v,s207:Zg,s210:ew,s211:r9,s214:Zv,s215:f9},stage3:{s22:xg,s30:Fv,s33:Cg,s44:G1,s45:id,s49:Og,s50:sy,s57:J1,s59:u1,s60:f1,s61:l1,s62:d1,s63:h1,s64:p1,s65:m1,s66:sv,s68:g1,s71:c9,s24:Ul,s72:Sl,s1:Jl,s2:Ql,s3:F9,s4:e1,s5:t1,s7:n1,s9:V9,s10:G9,s11:H9,s12:F7,s13:$9,s14:j9,s15:r1,s16:K9,s19:o1,s27:i1,s28:z9,s32:Z9,s37:Y9,s41:q9,s39:X9,s42:J9,s38:Q9,s43:ev,s40:nv,s46:rv,s80:ov,s81:iv,s82:bl,s83:V1,s86:Dg,s91:tv,s96:av,s98:I7,s99:B1,s200:ly,s201:bv,s202:cv,s205:n9,s203:z7,s209:U7,s212:Ov,s74:s1,s75:a1,s76:_g}},tls:py,async toRequest(o,a){const s=location.href,u=document.referrer,[h,m]=await Promise.all([s&&xs(s,a),u&&xs(u,a)]);return{url:h,cr:m||void 0,s55:Gy(o),s48:Ny()}},onGetResponse(o,a){var s,u,h;(function(m,p){const N=Hc(m);p&&cd(p,N)})(a,(h=(u=(s=o.products)===null||s===void 0?void 0:s.identification)===null||u===void 0?void 0:u.data)===null||h===void 0?void 0:h.visitorToken)}}};function hd(o,a,s){return new Promise((u=>{const[,h,m]=(function(p,N){return p(N)})(Tc,o);if((function(p){return p!==0})(h))return(function(p){return p(!1)})(u);m[(function(p){return p(25)})(xt)]((()=>u(a())),(p=>u(s(p))))}))}const uw=function(){return{key:"si",sources:{stage2:{s77:qg}}}},fw=function(o){return{addEvent:(function(a=ll){return s=>{let u=console.log;switch(s.e){case 2:case 5:case 8:case 11:case 14:case 20:u=console.error;break;case 13:{const h=s.result;Object.keys(h).some((m=>"error"in h[m]))&&(u=console.warn);break}case 25:u=s.result.error?console.error:console.log;break;case 17:{const{error:h,stage:m}=s;u=m===0&&Rs(h)&&h.message===ol?console.log:console.error}}u.apply(console,(function(h,{e:m,stage:p,...N}){const P=[h,new Date().toISOString().slice(11),Cc(m)];if(p!==void 0)switch(p){case 0:P.push("(fast)");break;case 1:P.push("(final)");break;default:N.stage=p}return P.push(N),P})(a,s))}})(o)}};function lw(){var o;const a=window;return Ir(["Iterator"in a,a.Error&&"isError"in a.Error,a.Atomics&&"pause"in a.Atomics,((o=a.Document)===null||o===void 0?void 0:o.prototype)&&"fragmentDirective"in a.Document.prototype,a.CSSRule&&!("UNKNOWN_RULE"in a.CSSRule),!("SVGDocument"in a)])>=4}const dw=function(o){return{addEvent:Ly(o)}},Ms="API key required",Bs="API key not found",ks="API key expired",pd="Request cannot be parsed",md="Request failed",gd="Request failed to process",vd="Too many requests, rate limit exceeded",yd="Not available for this origin",wd="Not available with restricted header",hw=Ms,pw=Bs,mw=ks;var gw={load:Yl,handleAgentData:ql,defaultEndpoint:_s,defaultTlsEndpoint:Es,ERROR_CLIENT_TIMEOUT:dc,ERROR_NETWORK_CONNECTION:hc,ERROR_NETWORK_ABORT:pc,ERROR_WRONG_REGION:Jf,ERROR_SUBSCRIPTION_NOT_ACTIVE:Qf,ERROR_API_KEY_MISSING:Ms,ERROR_API_KEY_INVALID:Bs,ERROR_API_KEY_EXPIRED:ks,ERROR_BAD_REQUEST_FORMAT:pd,ERROR_BAD_RESPONSE_FORMAT:mc,ERROR_GENERAL_SERVER_FAILURE:md,ERROR_SERVER_TIMEOUT:gd,ERROR_RATE_LIMIT:vd,ERROR_FORBIDDEN_ORIGIN:yd,ERROR_FORBIDDEN_HEADER:wd,ERROR_UNSUPPORTED_VERSION:el,ERROR_INSTALLATION_METHOD_RESTRICTED:tl,ERROR_FORBIDDEN_ENDPOINT:nl,ERROR_CSP_BLOCK:gc,ERROR_INTEGRATION_FAILURE:rl,ERROR_INVALID_ENDPOINT:vc,ERROR_NETWORK_RESTRICTED:il,ERROR_INVALID_PROXY_INTEGRATION_SECRET:sl,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:al,ERROR_HANDLE_AGENT_DATA:yc,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:cl,ERROR_TOKEN_MISSING:Ms,ERROR_TOKEN_INVALID:Bs,ERROR_TOKEN_EXPIRED:ks}},75:function(e,t,n){n.r(t),n.d(t,{componentsToDebugString:function(){return Qe},default:function(){return ve},getFullscreenElement:function(){return ee},getScreenFrame:function(){return at},hashComponents:function(){return F},isAndroid:function(){return ae},isChromium:function(){return R},isDesktopSafari:function(){return $},isEdgeHTML:function(){return f},isGecko:function(){return Z},isTrident:function(){return D},isWebKit:function(){return B},load:function(){return q},loadSources:function(){return de},murmurX64Hash128:function(){return be},prepareForSources:function(){return E},sources:function(){return Me},transformSource:function(){return ge},withIframe:function(){return g}});var r=function(){return r=Object.assign||function(L){for(var re,Q=1,we=arguments.length;Q<we;Q++)for(var Se in re=arguments[Q])Object.prototype.hasOwnProperty.call(re,Se)&&(L[Se]=re[Se]);return L},r.apply(this,arguments)};function c(L,re,Q,we){return new(Q||(Q=Promise))((function(Se,Ne){function Pe(je){try{ce(we.next(je))}catch(ze){Ne(ze)}}function Ge(je){try{ce(we.throw(je))}catch(ze){Ne(ze)}}function ce(je){var ze;je.done?Se(je.value):(ze=je.value,ze instanceof Q?ze:new Q((function(Xe){Xe(ze)}))).then(Pe,Ge)}ce((we=we.apply(L,[])).next())}))}function i(L,re){var Q,we,Se,Ne,Pe={label:0,sent:function(){if(1&Se[0])throw Se[1];return Se[1]},trys:[],ops:[]};return Ne={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(Ne[Symbol.iterator]=function(){return this}),Ne;function Ge(ce){return function(je){return(function(ze){if(Q)throw new TypeError("Generator is already executing.");for(;Ne&&(Ne=0,ze[0]&&(Pe=0)),Pe;)try{if(Q=1,we&&(Se=2&ze[0]?we.return:ze[0]?we.throw||((Se=we.return)&&Se.call(we),0):we.next)&&!(Se=Se.call(we,ze[1])).done)return Se;switch(we=0,Se&&(ze=[2&ze[0],Se.value]),ze[0]){case 0:case 1:Se=ze;break;case 4:return Pe.label++,{value:ze[1],done:!1};case 5:Pe.label++,we=ze[1],ze=[0];continue;case 7:ze=Pe.ops.pop(),Pe.trys.pop();continue;default:if(!((Se=(Se=Pe.trys).length>0&&Se[Se.length-1])||ze[0]!==6&&ze[0]!==2)){Pe=0;continue}if(ze[0]===3&&(!Se||ze[1]>Se[0]&&ze[1]<Se[3])){Pe.label=ze[1];break}if(ze[0]===6&&Pe.label<Se[1]){Pe.label=Se[1],Se=ze;break}if(Se&&Pe.label<Se[2]){Pe.label=Se[2],Pe.ops.push(ze);break}Se[2]&&Pe.ops.pop(),Pe.trys.pop();continue}ze=re.call(L,Pe)}catch(Xe){ze=[6,Xe],we=0}finally{Q=Se=0}if(5&ze[0])throw ze[1];return{value:ze[0]?ze[1]:void 0,done:!0}})([ce,je])}}}function l(L,re,Q){for(var we,Se=0,Ne=re.length;Se<Ne;Se++)!we&&Se in re||(we||(we=Array.prototype.slice.call(re,0,Se)),we[Se]=re[Se]);return L.concat(we||Array.prototype.slice.call(re))}typeof SuppressedError=="function"&&SuppressedError;var v="3.4.2";function d(L,re){return new Promise((function(Q){return setTimeout(Q,L,re)}))}function y(L){return!!L&&typeof L.then=="function"}function A(L,re){try{var Q=L();y(Q)?Q.then((function(we){return re(!0,we)}),(function(we){return re(!1,we)})):re(!0,Q)}catch(we){re(!1,we)}}function O(L,re,Q){return Q===void 0&&(Q=16),c(this,void 0,void 0,(function(){var we,Se,Ne,Pe;return i(this,(function(Ge){switch(Ge.label){case 0:we=Array(L.length),Se=Date.now(),Ne=0,Ge.label=1;case 1:return Ne<L.length?(we[Ne]=re(L[Ne],Ne),(Pe=Date.now())>=Se+Q?(Se=Pe,[4,d(0)]):[3,3]):[3,4];case 2:Ge.sent(),Ge.label=3;case 3:return++Ne,[3,1];case 4:return[2,we]}}))}))}function S(L){L.then(void 0,(function(){}))}function I(L,re){L=[L[0]>>>16,65535&L[0],L[1]>>>16,65535&L[1]],re=[re[0]>>>16,65535&re[0],re[1]>>>16,65535&re[1]];var Q=[0,0,0,0];return Q[3]+=L[3]+re[3],Q[2]+=Q[3]>>>16,Q[3]&=65535,Q[2]+=L[2]+re[2],Q[1]+=Q[2]>>>16,Q[2]&=65535,Q[1]+=L[1]+re[1],Q[0]+=Q[1]>>>16,Q[1]&=65535,Q[0]+=L[0]+re[0],Q[0]&=65535,[Q[0]<<16|Q[1],Q[2]<<16|Q[3]]}function k(L,re){L=[L[0]>>>16,65535&L[0],L[1]>>>16,65535&L[1]],re=[re[0]>>>16,65535&re[0],re[1]>>>16,65535&re[1]];var Q=[0,0,0,0];return Q[3]+=L[3]*re[3],Q[2]+=Q[3]>>>16,Q[3]&=65535,Q[2]+=L[2]*re[3],Q[1]+=Q[2]>>>16,Q[2]&=65535,Q[2]+=L[3]*re[2],Q[1]+=Q[2]>>>16,Q[2]&=65535,Q[1]+=L[1]*re[3],Q[0]+=Q[1]>>>16,Q[1]&=65535,Q[1]+=L[2]*re[2],Q[0]+=Q[1]>>>16,Q[1]&=65535,Q[1]+=L[3]*re[1],Q[0]+=Q[1]>>>16,Q[1]&=65535,Q[0]+=L[0]*re[3]+L[1]*re[2]+L[2]*re[1]+L[3]*re[0],Q[0]&=65535,[Q[0]<<16|Q[1],Q[2]<<16|Q[3]]}function C(L,re){return(re%=64)==32?[L[1],L[0]]:re<32?[L[0]<<re|L[1]>>>32-re,L[1]<<re|L[0]>>>32-re]:(re-=32,[L[1]<<re|L[0]>>>32-re,L[0]<<re|L[1]>>>32-re])}function V(L,re){return(re%=64)==0?L:re<32?[L[0]<<re|L[1]>>>32-re,L[1]<<re]:[L[1]<<re-32,0]}function j(L,re){return[L[0]^re[0],L[1]^re[1]]}function J(L){return L=j(L,[0,L[0]>>>1]),L=j(L=k(L,[4283543511,3981806797]),[0,L[0]>>>1]),j(L=k(L,[3301882366,444984403]),[0,L[0]>>>1])}function W(L,re){re=re||0;var Q,we=(L=L||"").length%16,Se=L.length-we,Ne=[0,re],Pe=[0,re],Ge=[0,0],ce=[0,0],je=[2277735313,289559509],ze=[1291169091,658871167];for(Q=0;Q<Se;Q+=16)Ge=[255&L.charCodeAt(Q+4)|(255&L.charCodeAt(Q+5))<<8|(255&L.charCodeAt(Q+6))<<16|(255&L.charCodeAt(Q+7))<<24,255&L.charCodeAt(Q)|(255&L.charCodeAt(Q+1))<<8|(255&L.charCodeAt(Q+2))<<16|(255&L.charCodeAt(Q+3))<<24],ce=[255&L.charCodeAt(Q+12)|(255&L.charCodeAt(Q+13))<<8|(255&L.charCodeAt(Q+14))<<16|(255&L.charCodeAt(Q+15))<<24,255&L.charCodeAt(Q+8)|(255&L.charCodeAt(Q+9))<<8|(255&L.charCodeAt(Q+10))<<16|(255&L.charCodeAt(Q+11))<<24],Ge=C(Ge=k(Ge,je),31),Ne=I(Ne=C(Ne=j(Ne,Ge=k(Ge,ze)),27),Pe),Ne=I(k(Ne,[0,5]),[0,1390208809]),ce=C(ce=k(ce,ze),33),Pe=I(Pe=C(Pe=j(Pe,ce=k(ce,je)),31),Ne),Pe=I(k(Pe,[0,5]),[0,944331445]);switch(Ge=[0,0],ce=[0,0],we){case 15:ce=j(ce,V([0,L.charCodeAt(Q+14)],48));case 14:ce=j(ce,V([0,L.charCodeAt(Q+13)],40));case 13:ce=j(ce,V([0,L.charCodeAt(Q+12)],32));case 12:ce=j(ce,V([0,L.charCodeAt(Q+11)],24));case 11:ce=j(ce,V([0,L.charCodeAt(Q+10)],16));case 10:ce=j(ce,V([0,L.charCodeAt(Q+9)],8));case 9:ce=k(ce=j(ce,[0,L.charCodeAt(Q+8)]),ze),Pe=j(Pe,ce=k(ce=C(ce,33),je));case 8:Ge=j(Ge,V([0,L.charCodeAt(Q+7)],56));case 7:Ge=j(Ge,V([0,L.charCodeAt(Q+6)],48));case 6:Ge=j(Ge,V([0,L.charCodeAt(Q+5)],40));case 5:Ge=j(Ge,V([0,L.charCodeAt(Q+4)],32));case 4:Ge=j(Ge,V([0,L.charCodeAt(Q+3)],24));case 3:Ge=j(Ge,V([0,L.charCodeAt(Q+2)],16));case 2:Ge=j(Ge,V([0,L.charCodeAt(Q+1)],8));case 1:Ge=k(Ge=j(Ge,[0,L.charCodeAt(Q)]),je),Ne=j(Ne,Ge=k(Ge=C(Ge,31),ze))}return Ne=I(Ne=j(Ne,[0,L.length]),Pe=j(Pe,[0,L.length])),Pe=I(Pe,Ne),Ne=I(Ne=J(Ne),Pe=J(Pe)),Pe=I(Pe,Ne),("00000000"+(Ne[0]>>>0).toString(16)).slice(-8)+("00000000"+(Ne[1]>>>0).toString(16)).slice(-8)+("00000000"+(Pe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Pe[1]>>>0).toString(16)).slice(-8)}function se(L){return parseInt(L)}function ue(L){return parseFloat(L)}function oe(L,re){return typeof L=="number"&&isNaN(L)?re:L}function Ee(L){return L.reduce((function(re,Q){return re+(Q?1:0)}),0)}function Re(L,re){if(re===void 0&&(re=1),Math.abs(re)>=1)return Math.round(L/re)*re;var Q=1/re;return Math.round(L*Q)/Q}function ne(L){return L&&typeof L=="object"&&"message"in L?L:{message:L}}function ie(L){return typeof L!="function"}function de(L,re,Q){var we=Object.keys(L).filter((function(Ne){return!(function(Pe,Ge){for(var ce=0,je=Pe.length;ce<je;++ce)if(Pe[ce]===Ge)return!0;return!1})(Q,Ne)})),Se=O(we,(function(Ne){return(function(Pe,Ge){var ce=new Promise((function(je){var ze=Date.now();A(Pe.bind(null,Ge),(function(){for(var Xe=[],et=0;et<arguments.length;et++)Xe[et]=arguments[et];var ut=Date.now()-ze;if(!Xe[0])return je((function(){return{error:ne(Xe[1]),duration:ut}}));var ot=Xe[1];if(ie(ot))return je((function(){return{value:ot,duration:ut}}));je((function(){return new Promise((function(rt){var $t=Date.now();A(ot,(function(){for(var ht=[],gt=0;gt<arguments.length;gt++)ht[gt]=arguments[gt];var tn=ut+Date.now()-$t;if(!ht[0])return rt({error:ne(ht[1]),duration:tn});rt({value:ht[1],duration:tn})}))}))}))}))}));return S(ce),function(){return ce.then((function(je){return je()}))}})(L[Ne],re)}));return S(Se),function(){return c(this,void 0,void 0,(function(){var Ne,Pe,Ge,ce;return i(this,(function(je){switch(je.label){case 0:return[4,Se];case 1:return[4,O(je.sent(),(function(ze){var Xe=ze();return S(Xe),Xe}))];case 2:return Ne=je.sent(),[4,Promise.all(Ne)];case 3:for(Pe=je.sent(),Ge={},ce=0;ce<we.length;++ce)Ge[we[ce]]=Pe[ce];return[2,Ge]}}))}))}}function ge(L,re){var Q=function(we){return ie(we)?re(we):function(){var Se=we();return y(Se)?Se.then(re):re(Se)}};return function(we){var Se=L(we);return y(Se)?Se.then(Q):Q(Se)}}function D(){var L=window,re=navigator;return Ee(["MSCSSMatrix"in L,"msSetImmediate"in L,"msIndexedDB"in L,"msMaxTouchPoints"in re,"msPointerEnabled"in re])>=4}function f(){var L=window,re=navigator;return Ee(["msWriteProfilerMark"in L,"MSStream"in L,"msLaunchUri"in re,"msSaveBlob"in re])>=3&&!D()}function R(){var L=window,re=navigator;return Ee(["webkitPersistentStorage"in re,"webkitTemporaryStorage"in re,re.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in L,"BatteryManager"in L,"webkitMediaStream"in L,"webkitSpeechGrammar"in L])>=5}function B(){var L=window,re=navigator;return Ee(["ApplePayError"in L,"CSSPrimitiveValue"in L,"Counter"in L,re.vendor.indexOf("Apple")===0,"getStorageUpdates"in re,"WebKitMediaKeys"in L])>=4}function $(){var L=window;return Ee(["safari"in L,!("DeviceMotionEvent"in L),!("ongestureend"in L),!("standalone"in navigator)])>=3}function Z(){var L,re,Q=window;return Ee(["buildID"in navigator,"MozAppearance"in((re=(L=document.documentElement)===null||L===void 0?void 0:L.style)!==null&&re!==void 0?re:{}),"onmozfullscreenchange"in Q,"mozInnerScreenX"in Q,"CSSMozDocumentRule"in Q,"CanvasCaptureMediaStream"in Q])>=4}function ee(){var L=document;return L.fullscreenElement||L.msFullscreenElement||L.mozFullScreenElement||L.webkitFullscreenElement||null}function ae(){var L=R(),re=Z();if(!L&&!re)return!1;var Q=window;return Ee(["onorientationchange"in Q,"orientation"in Q,L&&!("SharedWorker"in Q),re&&/android/i.test(navigator.appVersion)])>=2}function K(L){var re=new Error(L);return re.name=L,re}function g(L,re,Q){var we,Se,Ne;return Q===void 0&&(Q=50),c(this,void 0,void 0,(function(){var Pe,Ge;return i(this,(function(ce){switch(ce.label){case 0:Pe=document,ce.label=1;case 1:return Pe.body?[3,3]:[4,d(Q)];case 2:return ce.sent(),[3,1];case 3:Ge=Pe.createElement("iframe"),ce.label=4;case 4:return ce.trys.push([4,,10,11]),[4,new Promise((function(je,ze){var Xe=!1,et=function(){Xe=!0,je()};Ge.onload=et,Ge.onerror=function(rt){Xe=!0,ze(rt)};var ut=Ge.style;ut.setProperty("display","block","important"),ut.position="absolute",ut.top="0",ut.left="0",ut.visibility="hidden",re&&"srcdoc"in Ge?Ge.srcdoc=re:Ge.src="about:blank",Pe.body.appendChild(Ge);var ot=function(){var rt,$t;Xe||((($t=(rt=Ge.contentWindow)===null||rt===void 0?void 0:rt.document)===null||$t===void 0?void 0:$t.readyState)==="complete"?et():setTimeout(ot,10))};ot()}))];case 5:ce.sent(),ce.label=6;case 6:return!((Se=(we=Ge.contentWindow)===null||we===void 0?void 0:we.document)===null||Se===void 0)&&Se.body?[3,8]:[4,d(Q)];case 7:return ce.sent(),[3,6];case 8:return[4,L(Ge,Ge.contentWindow)];case 9:return[2,ce.sent()];case 10:return(Ne=Ge.parentNode)===null||Ne===void 0||Ne.removeChild(Ge),[7];case 11:return[2]}}))}))}function _(L){for(var re=(function(je){for(var ze,Xe,et="Unexpected syntax '".concat(je,"'"),ut=/^\s*([a-z-]*)(.*)$/i.exec(je),ot=ut[1]||void 0,rt={},$t=/([.:#][\w-]+|\[.+?\])/gi,ht=function(Nt,lr){rt[Nt]=rt[Nt]||[],rt[Nt].push(lr)};;){var gt=$t.exec(ut[2]);if(!gt)break;var tn=gt[0];switch(tn[0]){case".":ht("class",tn.slice(1));break;case"#":ht("id",tn.slice(1));break;case"[":var It=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(tn);if(!It)throw new Error(et);ht(It[1],(Xe=(ze=It[4])!==null&&ze!==void 0?ze:It[5])!==null&&Xe!==void 0?Xe:"");break;default:throw new Error(et)}}return[ot,rt]})(L),Q=re[0],we=re[1],Se=document.createElement(Q??"div"),Ne=0,Pe=Object.keys(we);Ne<Pe.length;Ne++){var Ge=Pe[Ne],ce=we[Ge].join(" ");Ge==="style"?H(Se.style,ce):Se.setAttribute(Ge,ce)}return Se}function H(L,re){for(var Q=0,we=re.split(";");Q<we.length;Q++){var Se=we[Q],Ne=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Se);if(Ne){var Pe=Ne[1],Ge=Ne[2],ce=Ne[4];L.setProperty(Pe,Ge,ce||"")}}}var X=["monospace","sans-serif","serif"],me=["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 ye(L){return L.toDataURL()}var Fe,We,st=2500;function at(){var L=this;return(function(){if(We===void 0){var re=function(){var Q=ct();Et(Q)?We=setTimeout(re,st):(Fe=Q,We=void 0)};re()}})(),function(){return c(L,void 0,void 0,(function(){var re;return i(this,(function(Q){switch(Q.label){case 0:return Et(re=ct())?Fe?[2,l([],Fe)]:ee()?[4,(we=document,(we.exitFullscreen||we.msExitFullscreen||we.mozCancelFullScreen||we.webkitExitFullscreen).call(we))]:[3,2]:[3,2];case 1:Q.sent(),re=ct(),Q.label=2;case 2:return Et(re)||(Fe=re),[2,re]}var we}))}))}}function ct(){var L=screen;return[oe(ue(L.availTop),null),oe(ue(L.width)-ue(L.availWidth)-oe(ue(L.availLeft),0),null),oe(ue(L.height)-ue(L.availHeight)-oe(ue(L.availTop),0),null),oe(ue(L.availLeft),null)]}function Et(L){for(var re=0;re<4;++re)if(L[re])return!1;return!0}function pt(L){var re;return c(this,void 0,void 0,(function(){var Q,we,Se,Ne,Pe,Ge,ce;return i(this,(function(je){switch(je.label){case 0:for(Q=document,we=Q.createElement("div"),Se=new Array(L.length),Ne={},Rt(we),ce=0;ce<L.length;++ce)(Pe=_(L[ce])).tagName==="DIALOG"&&Pe.show(),Rt(Ge=Q.createElement("div")),Ge.appendChild(Pe),we.appendChild(Ge),Se[ce]=Pe;je.label=1;case 1:return Q.body?[3,3]:[4,d(50)];case 2:return je.sent(),[3,1];case 3:Q.body.appendChild(we);try{for(ce=0;ce<L.length;++ce)Se[ce].offsetParent||(Ne[L[ce]]=!0)}finally{(re=we.parentNode)===null||re===void 0||re.removeChild(we)}return[2,Ne]}}))}))}function Rt(L){L.style.setProperty("display","block","important")}function Pt(L){return matchMedia("(inverted-colors: ".concat(L,")")).matches}function wt(L){return matchMedia("(forced-colors: ".concat(L,")")).matches}function w(L){return matchMedia("(prefers-contrast: ".concat(L,")")).matches}function x(L){return matchMedia("(prefers-reduced-motion: ".concat(L,")")).matches}function M(L){return matchMedia("(dynamic-range: ".concat(L,")")).matches}var te=Math,fe=function(){return 0},pe={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Me={fonts:function(){return g((function(L,re){var Q=re.document,we=Q.body;we.style.fontSize="48px";var Se=Q.createElement("div"),Ne={},Pe={},Ge=function(Xe){var et=Q.createElement("span"),ut=et.style;return ut.position="absolute",ut.top="0",ut.left="0",ut.fontFamily=Xe,et.textContent="mmMwWLliI0O&1",Se.appendChild(et),et},ce=X.map(Ge),je=(function(){for(var Xe={},et=function(rt){Xe[rt]=X.map((function($t){return(function(ht,gt){return Ge("'".concat(ht,"',").concat(gt))})(rt,$t)}))},ut=0,ot=me;ut<ot.length;ut++)et(ot[ut]);return Xe})();we.appendChild(Se);for(var ze=0;ze<X.length;ze++)Ne[X[ze]]=ce[ze].offsetWidth,Pe[X[ze]]=ce[ze].offsetHeight;return me.filter((function(Xe){return et=je[Xe],X.some((function(ut,ot){return et[ot].offsetWidth!==Ne[ut]||et[ot].offsetHeight!==Pe[ut]}));var et}))}))},domBlockers:function(L){var re=(L===void 0?{}:L).debug;return c(this,void 0,void 0,(function(){var Q,we,Se,Ne,Pe;return i(this,(function(Ge){switch(Ge.label){case 0:return B()||ae()?(ce=atob,Q={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',ce("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",ce("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",ce("LnNwb25zb3JpdA=="),".ylamainos",ce("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",ce("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",ce("LmhlYWRlci1ibG9ja2VkLWFk"),ce("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",ce("I2FkXzMwMFgyNTA="),ce("I2Jhbm5lcmZsb2F0MjI="),ce("I2NhbXBhaWduLWJhbm5lcg=="),ce("I0FkLUNvbnRlbnQ=")],adGuardChinese:[ce("LlppX2FkX2FfSA=="),ce("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",ce("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),ce("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",ce("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",ce("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",ce("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),ce("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),ce("LmFkZ29vZ2xl"),ce("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[ce("YW1wLWF1dG8tYWRz"),ce("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",ce("I2FkX2ludmlld19hcmVh")],adGuardRussian:[ce("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),ce("LnJlY2xhbWE="),'div[id^="smi2adblock"]',ce("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[ce("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),ce("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",ce("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),ce("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),ce("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",ce("I3Jla2xhbWk="),ce("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),ce("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),ce("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[ce("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",ce("LndpZGdldF9wb19hZHNfd2lkZ2V0"),ce("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",ce("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[ce("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),ce("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",ce("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",ce("I3Jla2xhbW5pLWJveA=="),ce("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",ce("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[ce("I2FkdmVydGVudGll"),ce("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",ce("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",ce("LnNwb25zb3JsaW5rZ3J1ZW4="),ce("I3dlcmJ1bmdza3k="),ce("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),ce("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[ce("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",ce("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[ce("LnJla2xhbW9zX3RhcnBhcw=="),ce("LnJla2xhbW9zX251b3JvZG9z"),ce("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),ce("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),ce("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[ce("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:[ce("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),ce("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",ce("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[ce("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),ce("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),ce("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",ce("LmFkX19tYWlu"),ce("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[ce("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[ce("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),ce("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[ce("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),ce("I2xpdmVyZUFkV3JhcHBlcg=="),ce("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),ce("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[ce("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",ce("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),ce("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),ce("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[ce("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),ce("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),ce("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",ce("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),ce("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),ce("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),ce("ZGl2I3NrYXBpZWNfYWQ=")],ro:[ce("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),ce("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[ce("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),ce("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),ce("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",ce("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),ce("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",ce("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},we=Object.keys(Q),[4,pt((Pe=[]).concat.apply(Pe,we.map((function(je){return Q[je]}))))]):[2,void 0];case 1:return Se=Ge.sent(),re&&(function(je,ze){for(var Xe="DOM blockers debug:\n```",et=0,ut=Object.keys(je);et<ut.length;et++){var ot=ut[et];Xe+=`
12
+ `.concat(ot,":");for(var rt=0,$t=je[ot];rt<$t.length;rt++){var ht=$t[rt];Xe+=`
13
+ `.concat(ze[ht]?"🚫":"➡️"," ").concat(ht)}}console.log("".concat(Xe,"\n```"))})(Q,Se),(Ne=we.filter((function(je){var ze=Q[je];return Ee(ze.map((function(Xe){return Se[Xe]})))>.6*ze.length}))).sort(),[2,Ne]}var ce}))}))},fontPreferences:function(){return L===void 0&&(L=4e3),g((function(re,Q){var we=Q.document,Se=we.body,Ne=Se.style;Ne.width="".concat(L,"px"),Ne.webkitTextSizeAdjust=Ne.textSizeAdjust="none",R()?Se.style.zoom="".concat(1/Q.devicePixelRatio):B()&&(Se.style.zoom="reset");var Pe=we.createElement("div");return Pe.textContent=l([],Array(L/20|0)).map((function(){return"word"})).join(" "),Se.appendChild(Pe),(function(Ge,ce){for(var je={},ze={},Xe=0,et=Object.keys(pe);Xe<et.length;Xe++){var ut=et[Xe],ot=pe[ut],rt=ot[0],$t=rt===void 0?{}:rt,ht=ot[1],gt=ht===void 0?"mmMwWLliI0fiflO&1":ht,tn=Ge.createElement("span");tn.textContent=gt,tn.style.whiteSpace="nowrap";for(var It=0,Nt=Object.keys($t);It<Nt.length;It++){var lr=Nt[It],kt=$t[lr];kt!==void 0&&(tn.style[lr]=kt)}je[ut]=tn,ce.appendChild(Ge.createElement("br")),ce.appendChild(tn)}for(var Mt=0,$r=Object.keys(pe);Mt<$r.length;Mt++)ze[ut=$r[Mt]]=je[ut].getBoundingClientRect().width;return ze})(we,Se)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var L},audio:function(){var L=window,re=L.OfflineAudioContext||L.webkitOfflineAudioContext;if(!re)return-2;if(B()&&!$()&&!(function(){var je=window;return Ee(["DOMRectList"in je,"RTCPeerConnectionIceEvent"in je,"SVGGeometryElement"in je,"ontransitioncancel"in je])>=3})())return-1;var Q=new re(1,5e3,44100),we=Q.createOscillator();we.type="triangle",we.frequency.value=1e4;var Se=Q.createDynamicsCompressor();Se.threshold.value=-50,Se.knee.value=40,Se.ratio.value=12,Se.attack.value=0,Se.release.value=.25,we.connect(Se),Se.connect(Q.destination),we.start(0);var Ne=(function(je){var ze=function(){};return[new Promise((function(Xe,et){var ut=!1,ot=0,rt=0;je.oncomplete=function(gt){return Xe(gt.renderedBuffer)};var $t=function(){setTimeout((function(){return et(K("timeout"))}),Math.min(500,rt+5e3-Date.now()))},ht=function(){try{var gt=je.startRendering();switch(y(gt)&&S(gt),je.state){case"running":rt=Date.now(),ut&&$t();break;case"suspended":document.hidden||ot++,ut&&ot>=3?et(K("suspended")):setTimeout(ht,500)}}catch(tn){et(tn)}};ht(),ze=function(){ut||(ut=!0,rt>0&&$t())}})),ze]})(Q),Pe=Ne[0],Ge=Ne[1],ce=Pe.then((function(je){return(function(ze){for(var Xe=0,et=0;et<ze.length;++et)Xe+=Math.abs(ze[et]);return Xe})(je.getChannelData(0).subarray(4500))}),(function(je){if(je.name==="timeout"||je.name==="suspended")return-3;throw je}));return S(ce),function(){return Ge(),ce}},screenFrame:function(){var L=this,re=at();return function(){return c(L,void 0,void 0,(function(){var Q,we;return i(this,(function(Se){switch(Se.label){case 0:return[4,re()];case 1:return Q=Se.sent(),[2,[(we=function(Ne){return Ne===null?null:Re(Ne,10)})(Q[0]),we(Q[1]),we(Q[2]),we(Q[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var L,re=navigator,Q=[],we=re.language||re.userLanguage||re.browserLanguage||re.systemLanguage;if(we!==void 0&&Q.push([we]),Array.isArray(re.languages))R()&&Ee([!("MediaSettingsRange"in(L=window)),"RTCEncodedAudioFrame"in L,""+L.Intl=="[object Intl]",""+L.Reflect=="[object Reflect]"])>=3||Q.push(re.languages);else if(typeof re.languages=="string"){var Se=re.languages;Se&&Q.push(Se.split(","))}return Q},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return oe(ue(navigator.deviceMemory),void 0)},screenResolution:function(){var L=screen,re=function(we){return oe(se(we),null)},Q=[re(L.width),re(L.height)];return Q.sort().reverse(),Q},hardwareConcurrency:function(){return oe(se(navigator.hardwareConcurrency),void 0)},timezone:function(){var L,re=(L=window.Intl)===null||L===void 0?void 0:L.DateTimeFormat;if(re){var Q=new re().resolvedOptions().timeZone;if(Q)return Q}var we,Se=(we=new Date().getFullYear(),-Math.max(ue(new Date(we,0,1).getTimezoneOffset()),ue(new Date(we,6,1).getTimezoneOffset())));return"UTC".concat(Se>=0?"+":"").concat(Math.abs(Se))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!D()&&!f())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var L=navigator.platform;return L==="MacIntel"&&B()&&!$()?(function(){if(navigator.platform==="iPad")return!0;var re=screen,Q=re.width/re.height;return Ee(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,Q>.65&&Q<1.53])>=2})()?"iPad":"iPhone":L},plugins:function(){var L=navigator.plugins;if(L){for(var re=[],Q=0;Q<L.length;++Q){var we=L[Q];if(we){for(var Se=[],Ne=0;Ne<we.length;++Ne){var Pe=we[Ne];Se.push({type:Pe.type,suffixes:Pe.suffixes})}re.push({name:we.name,description:we.description,mimeTypes:Se})}}return re}},canvas:function(){var L,re,Q=!1,we=(function(){var Ge=document.createElement("canvas");return Ge.width=1,Ge.height=1,[Ge,Ge.getContext("2d")]})(),Se=we[0],Ne=we[1];if((function(Ge,ce){return!(!ce||!Ge.toDataURL)})(Se,Ne)){Q=(function(Ge){return Ge.rect(0,0,10,10),Ge.rect(2,2,6,6),!Ge.isPointInPath(5,5,"evenodd")})(Ne),(function(Ge,ce){Ge.width=240,Ge.height=60,ce.textBaseline="alphabetic",ce.fillStyle="#f60",ce.fillRect(100,1,62,20),ce.fillStyle="#069",ce.font='11pt "Times New Roman"';var je="Cwm fjordbank gly ".concat("😃");ce.fillText(je,2,15),ce.fillStyle="rgba(102, 204, 0, 0.2)",ce.font="18pt Arial",ce.fillText(je,4,45)})(Se,Ne);var Pe=ye(Se);Pe!==ye(Se)?L=re="unstable":(re=Pe,(function(Ge,ce){Ge.width=122,Ge.height=110,ce.globalCompositeOperation="multiply";for(var je=0,ze=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];je<ze.length;je++){var Xe=ze[je],et=Xe[0],ut=Xe[1],ot=Xe[2];ce.fillStyle=et,ce.beginPath(),ce.arc(ut,ot,40,0,2*Math.PI,!0),ce.closePath(),ce.fill()}ce.fillStyle="#f9c",ce.arc(60,60,60,0,2*Math.PI,!0),ce.arc(60,60,20,0,2*Math.PI,!0),ce.fill("evenodd")})(Se,Ne),L=ye(Se))}else L=re="";return{winding:Q,geometry:L,text:re}},touchSupport:function(){var L,re=navigator,Q=0;re.maxTouchPoints!==void 0?Q=se(re.maxTouchPoints):re.msMaxTouchPoints!==void 0&&(Q=re.msMaxTouchPoints);try{document.createEvent("TouchEvent"),L=!0}catch{L=!1}return{maxTouchPoints:Q,touchEvent:L,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var L=[],re=0,Q=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];re<Q.length;re++){var we=Q[re],Se=window[we];Se&&typeof Se=="object"&&L.push(we)}return L.sort()},cookiesEnabled:function(){var L=document;try{L.cookie="cookietest=1; SameSite=Strict;";var re=L.cookie.indexOf("cookietest=")!==-1;return L.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",re}catch{return!1}},colorGamut:function(){for(var L=0,re=["rec2020","p3","srgb"];L<re.length;L++){var Q=re[L];if(matchMedia("(color-gamut: ".concat(Q,")")).matches)return Q}},invertedColors:function(){return!!Pt("inverted")||!Pt("none")&&void 0},forcedColors:function(){return!!wt("active")||!wt("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var L=0;L<=100;++L)if(matchMedia("(max-monochrome: ".concat(L,")")).matches)return L;throw new Error("Too high value")}},contrast:function(){return w("no-preference")?0:w("high")||w("more")?1:w("low")||w("less")?-1:w("forced")?10:void 0},reducedMotion:function(){return!!x("reduce")||!x("no-preference")&&void 0},hdr:function(){return!!M("high")||!M("standard")&&void 0},math:function(){var L,re=te.acos||fe,Q=te.acosh||fe,we=te.asin||fe,Se=te.asinh||fe,Ne=te.atanh||fe,Pe=te.atan||fe,Ge=te.sin||fe,ce=te.sinh||fe,je=te.cos||fe,ze=te.cosh||fe,Xe=te.tan||fe,et=te.tanh||fe,ut=te.exp||fe,ot=te.expm1||fe,rt=te.log1p||fe;return{acos:re(.12312423423423424),acosh:Q(1e308),acoshPf:(L=1e154,te.log(L+te.sqrt(L*L-1))),asin:we(.12312423423423424),asinh:Se(1),asinhPf:te.log(1+te.sqrt(2)),atanh:Ne(.5),atanhPf:te.log(3)/2,atan:Pe(.5),sin:Ge(-1e300),sinh:ce(1),sinhPf:te.exp(1)-1/te.exp(1)/2,cos:je(10.000000000123),cosh:ze(1),coshPf:(te.exp(1)+1/te.exp(1))/2,tan:Xe(-1e300),tanh:et(1),tanhPf:(te.exp(2)-1)/(te.exp(2)+1),exp:ut(1),expm1:ot(1),expm1Pf:te.exp(1)-1,log1p:rt(10),log1pPf:te.log(11),powPI:te.pow(te.PI,-100)}},videoCard:function(){var L,re=document.createElement("canvas"),Q=(L=re.getContext("webgl"))!==null&&L!==void 0?L:re.getContext("experimental-webgl");if(Q&&"getExtension"in Q){var we=Q.getExtension("WEBGL_debug_renderer_info");if(we)return{vendor:(Q.getParameter(we.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(Q.getParameter(we.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var L=new Float32Array(1),re=new Uint8Array(L.buffer);return L[0]=1/0,L[0]=L[0]-L[0],re[3]}},tt="$ if upgrade to Pro: https://fpjs.dev/pro";function Qe(L){return JSON.stringify(L,(function(re,Q){return Q instanceof Error?r({name:(we=Q).name,message:we.message,stack:(Se=we.stack)===null||Se===void 0?void 0:Se.split(`
14
+ `)},we):Q;var we,Se}),2)}function F(L){return W((function(re){for(var Q="",we=0,Se=Object.keys(re).sort();we<Se.length;we++){var Ne=Se[we],Pe=re[Ne],Ge=Pe.error?"error":JSON.stringify(Pe.value);Q+="".concat(Q?"|":"").concat(Ne.replace(/([:|\\])/g,"\\$1"),":").concat(Ge)}return Q})(L))}function E(L){return L===void 0&&(L=50),(function(re,Q){Q===void 0&&(Q=1/0);var we=window.requestIdleCallback;return we?new Promise((function(Se){return we.call(window,(function(){return Se()}),{timeout:Q})})):d(Math.min(re,Q))})(L,2*L)}function b(L,re){var Q=Date.now();return{get:function(we){return c(this,void 0,void 0,(function(){var Se,Ne,Pe;return i(this,(function(Ge){switch(Ge.label){case 0:return Se=Date.now(),[4,L()];case 1:return Ne=Ge.sent(),Pe=(function(ce){var je,ze=(function(Xe){var et=(function(ot){if(ae())return .4;if(B())return $()?.5:.3;var rt=ot.platform.value||"";return/^Win/.test(rt)?.6:/^Mac/.test(rt)?.5:.7})(Xe),ut=(function(ot){return Re(.99+.01*ot,1e-4)})(et);return{score:et,comment:tt.replace(/\$/g,"".concat(ut))}})(ce);return{get visitorId(){return je===void 0&&(je=F(this.components)),je},set visitorId(Xe){je=Xe},confidence:ze,components:ce,version:v}})(Ne),(re||we?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Pe.version,`
15
15
  userAgent: `).concat(navigator.userAgent,`
16
- timeBetweenLoadAndGet: `).concat(Lt-G,`
17
- visitorId: `).concat(Dt.visitorId,`
18
- components: `).concat(Et(Bt),"\n```")),[2,Dt]}}))}))}}}function F(A){var H=A===void 0?{}:A,G=H.delayFallback,ot=H.debug,Lt=H.monitoring,Bt=Lt===void 0||Lt;return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(Dt){switch(Dt.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(it){console.error(it)}})(),[4,zt(G)];case 1:return Dt.sent(),[2,te(Rt(lt,{debug:ot},[]),ot)]}}))}))}var R={load:F,hashComponents:Ct,componentsToDebugString:Et},O=Y},526:function(t,n){n.byteLength=function(_){var N=m(_),C=N[0],T=N[1];return 3*(C+T)/4-T},n.toByteArray=function(_){var N,C,T=m(_),x=T[0],k=T[1],U=new u((function(J,Z,et){return 3*(Z+et)/4-et})(0,x,k)),Y=0,z=k>0?x-4:x;for(C=0;C<z;C+=4)N=e[_.charCodeAt(C)]<<18|e[_.charCodeAt(C+1)]<<12|e[_.charCodeAt(C+2)]<<6|e[_.charCodeAt(C+3)],U[Y++]=N>>16&255,U[Y++]=N>>8&255,U[Y++]=255&N;return k===2&&(N=e[_.charCodeAt(C)]<<2|e[_.charCodeAt(C+1)]>>4,U[Y++]=255&N),k===1&&(N=e[_.charCodeAt(C)]<<10|e[_.charCodeAt(C+1)]<<4|e[_.charCodeAt(C+2)]>>2,U[Y++]=N>>8&255,U[Y++]=255&N),U},n.fromByteArray=function(_){for(var N,C=_.length,T=C%3,x=[],k=16383,U=0,Y=C-T;U<Y;U+=k)x.push(d(_,U,U+k>Y?Y:U+k));return T===1?(N=_[C-1],x.push(r[N>>2]+r[N<<4&63]+"==")):T===2&&(N=(_[C-2]<<8)+_[C-1],x.push(r[N>>10]+r[N>>4&63]+r[N<<2&63]+"=")),x.join("")};for(var r=[],e=[],u=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0;f<64;++f)r[f]=a[f],e[a.charCodeAt(f)]=f;function m(_){var N=_.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=_.indexOf("=");return C===-1&&(C=N),[C,C===N?0:4-C%4]}function d(_,N,C){for(var T,x,k=[],U=N;U<C;U+=3)T=(_[U]<<16&16711680)+(_[U+1]<<8&65280)+(255&_[U+2]),k.push(r[(x=T)>>18&63]+r[x>>12&63]+r[x>>6&63]+r[63&x]);return k.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=d,n.IS=50;const f=2147483647;function m(g){if(g>f)throw new RangeError('The value "'+g+'" is invalid for option "size"');const L=new Uint8Array(g);return Object.setPrototypeOf(L,d.prototype),L}function d(g,L,V){if(typeof g=="number"){if(typeof L=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(g)}return _(g,L,V)}function _(g,L,V){if(typeof g=="string")return(function(Et,Ct){if(typeof Ct=="string"&&Ct!==""||(Ct="utf8"),!d.isEncoding(Ct))throw new TypeError("Unknown encoding: "+Ct);const zt=0|U(Et,Ct);let te=m(zt);const F=te.write(Et,Ct);return F!==zt&&(te=te.slice(0,F)),te})(g,L);if(ArrayBuffer.isView(g))return(function(Et){if(Ie(Et,Uint8Array)){const Ct=new Uint8Array(Et);return x(Ct.buffer,Ct.byteOffset,Ct.byteLength)}return T(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(Ie(g,ArrayBuffer)||g&&Ie(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(g,SharedArrayBuffer)||g&&Ie(g.buffer,SharedArrayBuffer)))return x(g,L,V);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const lt=g.valueOf&&g.valueOf();if(lt!=null&&lt!==g)return d.from(lt,L,V);const yt=(function(Et){if(d.isBuffer(Et)){const Ct=0|k(Et.length),zt=m(Ct);return zt.length===0||Et.copy(zt,0,0,Ct),zt}return Et.length!==void 0?typeof Et.length!="number"||_e(Et.length)?m(0):T(Et):Et.type==="Buffer"&&Array.isArray(Et.data)?T(Et.data):void 0})(g);if(yt)return yt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return d.from(g[Symbol.toPrimitive]("string"),L,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 N(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 C(g){return N(g),m(g<0?0:0|k(g))}function T(g){const L=g.length<0?0:0|k(g.length),V=m(L);for(let lt=0;lt<L;lt+=1)V[lt]=255&g[lt];return V}function x(g,L,V){if(L<0||g.byteLength<L)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<L+(V||0))throw new RangeError('"length" is outside of buffer bounds');let lt;return lt=L===void 0&&V===void 0?new Uint8Array(g):V===void 0?new Uint8Array(g,L):new Uint8Array(g,L,V),Object.setPrototypeOf(lt,d.prototype),lt}function k(g){if(g>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|g}function U(g,L){if(d.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||Ie(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,lt=arguments.length>2&&arguments[2]===!0;if(!lt&&V===0)return 0;let yt=!1;for(;;)switch(L){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return le(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return ge(g).length;default:if(yt)return lt?-1:le(g).length;L=(""+L).toLowerCase(),yt=!0}}function Y(g,L,V){let lt=!1;if((L===void 0||L<0)&&(L=0),L>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(L>>>=0))return"";for(g||(g="utf8");;)switch(g){case"hex":return l(this,L,V);case"utf8":case"utf-8":return ft(this,L,V);case"ascii":return wt(this,L,V);case"latin1":case"binary":return P(this,L,V);case"base64":return st(this,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,L,V);default:if(lt)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),lt=!0}}function z(g,L,V){const lt=g[L];g[L]=g[V],g[V]=lt}function J(g,L,V,lt,yt){if(g.length===0)return-1;if(typeof V=="string"?(lt=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),_e(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 L=="string"&&(L=d.from(L,lt)),d.isBuffer(L))return L.length===0?-1:Z(g,L,V,lt,yt);if(typeof L=="number")return L&=255,typeof Uint8Array.prototype.indexOf=="function"?yt?Uint8Array.prototype.indexOf.call(g,L,V):Uint8Array.prototype.lastIndexOf.call(g,L,V):Z(g,[L],V,lt,yt);throw new TypeError("val must be string, number or Buffer")}function Z(g,L,V,lt,yt){let Et,Ct=1,zt=g.length,te=L.length;if(lt!==void 0&&((lt=String(lt).toLowerCase())==="ucs2"||lt==="ucs-2"||lt==="utf16le"||lt==="utf-16le")){if(g.length<2||L.length<2)return-1;Ct=2,zt/=2,te/=2,V/=2}function F(R,O){return Ct===1?R[O]:R.readUInt16BE(O*Ct)}if(yt){let R=-1;for(Et=V;Et<zt;Et++)if(F(g,Et)===F(L,R===-1?0:Et-R)){if(R===-1&&(R=Et),Et-R+1===te)return R*Ct}else R!==-1&&(Et-=Et-R),R=-1}else for(V+te>zt&&(V=zt-te),Et=V;Et>=0;Et--){let R=!0;for(let O=0;O<te;O++)if(F(g,Et+O)!==F(L,O)){R=!1;break}if(R)return Et}return-1}function et(g,L,V,lt){V=Number(V)||0;const yt=g.length-V;lt?(lt=Number(lt))>yt&&(lt=yt):lt=yt;const Et=L.length;let Ct;for(lt>Et/2&&(lt=Et/2),Ct=0;Ct<lt;++Ct){const zt=parseInt(L.substr(2*Ct,2),16);if(_e(zt))return Ct;g[V+Ct]=zt}return Ct}function ht(g,L,V,lt){return ve(le(L,g.length-V),g,V,lt)}function ut(g,L,V,lt){return ve((function(yt){const Et=[];for(let Ct=0;Ct<yt.length;++Ct)Et.push(255&yt.charCodeAt(Ct));return Et})(L),g,V,lt)}function At(g,L,V,lt){return ve(ge(L),g,V,lt)}function Rt(g,L,V,lt){return ve((function(yt,Et){let Ct,zt,te;const F=[];for(let R=0;R<yt.length&&!((Et-=2)<0);++R)Ct=yt.charCodeAt(R),zt=Ct>>8,te=Ct%256,F.push(te),F.push(zt);return F})(L,g.length-V),g,V,lt)}function st(g,L,V){return L===0&&V===g.length?e.fromByteArray(g):e.fromByteArray(g.slice(L,V))}function ft(g,L,V){V=Math.min(g.length,V);const lt=[];let yt=L;for(;yt<V;){const Et=g[yt];let Ct=null,zt=Et>239?4:Et>223?3:Et>191?2:1;if(yt+zt<=V){let te,F,R,O;switch(zt){case 1:Et<128&&(Ct=Et);break;case 2:te=g[yt+1],(192&te)==128&&(O=(31&Et)<<6|63&te,O>127&&(Ct=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)&&(Ct=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&&(Ct=O))}}Ct===null?(Ct=65533,zt=1):Ct>65535&&(Ct-=65536,lt.push(Ct>>>10&1023|55296),Ct=56320|1023&Ct),lt.push(Ct),yt+=zt}return(function(Et){const Ct=Et.length;if(Ct<=gt)return String.fromCharCode.apply(String,Et);let zt="",te=0;for(;te<Ct;)zt+=String.fromCharCode.apply(String,Et.slice(te,te+=gt));return zt})(lt)}d.TYPED_ARRAY_SUPPORT=(function(){try{const g=new Uint8Array(1),L={foo:function(){return 42}};return Object.setPrototypeOf(L,Uint8Array.prototype),Object.setPrototypeOf(g,L),g.foo()===42}catch{return!1}})(),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."),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}}),d.poolSize=8192,d.from=function(g,L,V){return _(g,L,V)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(g,L,V){return(function(lt,yt,Et){return N(lt),lt<=0?m(lt):yt!==void 0?typeof Et=="string"?m(lt).fill(yt,Et):m(lt).fill(yt):m(lt)})(g,L,V)},d.allocUnsafe=function(g){return C(g)},d.allocUnsafeSlow=function(g){return C(g)},d.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==d.prototype},d.compare=function(g,L){if(Ie(g,Uint8Array)&&(g=d.from(g,g.offset,g.byteLength)),Ie(L,Uint8Array)&&(L=d.from(L,L.offset,L.byteLength)),!d.isBuffer(g)||!d.isBuffer(L))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===L)return 0;let V=g.length,lt=L.length;for(let yt=0,Et=Math.min(V,lt);yt<Et;++yt)if(g[yt]!==L[yt]){V=g[yt],lt=L[yt];break}return V<lt?-1:lt<V?1:0},d.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}},d.concat=function(g,L){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return d.alloc(0);let V;if(L===void 0)for(L=0,V=0;V<g.length;++V)L+=g[V].length;const lt=d.allocUnsafe(L);let yt=0;for(V=0;V<g.length;++V){let Et=g[V];if(Ie(Et,Uint8Array))yt+Et.length>lt.length?(d.isBuffer(Et)||(Et=d.from(Et)),Et.copy(lt,yt)):Uint8Array.prototype.set.call(lt,Et,yt);else{if(!d.isBuffer(Et))throw new TypeError('"list" argument must be an Array of Buffers');Et.copy(lt,yt)}yt+=Et.length}return lt},d.byteLength=U,d.prototype._isBuffer=!0,d.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 L=0;L<g;L+=2)z(this,L,L+1);return this},d.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 L=0;L<g;L+=4)z(this,L,L+3),z(this,L+1,L+2);return this},d.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 L=0;L<g;L+=8)z(this,L,L+7),z(this,L+1,L+6),z(this,L+2,L+5),z(this,L+3,L+4);return this},d.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?ft(this,0,g):Y.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(g){if(!d.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g||d.compare(this,g)===0},d.prototype.inspect=function(){let g="";const L=n.IS;return g=this.toString("hex",0,L).replace(/(.{2})/g,"$1 ").trim(),this.length>L&&(g+=" ... "),"<Buffer "+g+">"},a&&(d.prototype[a]=d.prototype.inspect),d.prototype.compare=function(g,L,V,lt,yt){if(Ie(g,Uint8Array)&&(g=d.from(g,g.offset,g.byteLength)),!d.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(L===void 0&&(L=0),V===void 0&&(V=g?g.length:0),lt===void 0&&(lt=0),yt===void 0&&(yt=this.length),L<0||V>g.length||lt<0||yt>this.length)throw new RangeError("out of range index");if(lt>=yt&&L>=V)return 0;if(lt>=yt)return-1;if(L>=V)return 1;if(this===g)return 0;let Et=(yt>>>=0)-(lt>>>=0),Ct=(V>>>=0)-(L>>>=0);const zt=Math.min(Et,Ct),te=this.slice(lt,yt),F=g.slice(L,V);for(let R=0;R<zt;++R)if(te[R]!==F[R]){Et=te[R],Ct=F[R];break}return Et<Ct?-1:Ct<Et?1:0},d.prototype.includes=function(g,L,V){return this.indexOf(g,L,V)!==-1},d.prototype.indexOf=function(g,L,V){return J(this,g,L,V,!0)},d.prototype.lastIndexOf=function(g,L,V){return J(this,g,L,V,!1)},d.prototype.write=function(g,L,V,lt){if(L===void 0)lt="utf8",V=this.length,L=0;else if(V===void 0&&typeof L=="string")lt=L,V=this.length,L=0;else{if(!isFinite(L))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");L>>>=0,isFinite(V)?(V>>>=0,lt===void 0&&(lt="utf8")):(lt=V,V=void 0)}const yt=this.length-L;if((V===void 0||V>yt)&&(V=yt),g.length>0&&(V<0||L<0)||L>this.length)throw new RangeError("Attempt to write outside buffer bounds");lt||(lt="utf8");let Et=!1;for(;;)switch(lt){case"hex":return et(this,g,L,V);case"utf8":case"utf-8":return ht(this,g,L,V);case"ascii":case"latin1":case"binary":return ut(this,g,L,V);case"base64":return At(this,g,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,g,L,V);default:if(Et)throw new TypeError("Unknown encoding: "+lt);lt=(""+lt).toLowerCase(),Et=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const gt=4096;function wt(g,L,V){let lt="";V=Math.min(g.length,V);for(let yt=L;yt<V;++yt)lt+=String.fromCharCode(127&g[yt]);return lt}function P(g,L,V){let lt="";V=Math.min(g.length,V);for(let yt=L;yt<V;++yt)lt+=String.fromCharCode(g[yt]);return lt}function l(g,L,V){const lt=g.length;(!L||L<0)&&(L=0),(!V||V<0||V>lt)&&(V=lt);let yt="";for(let Et=L;Et<V;++Et)yt+=Ee[g[Et]];return yt}function S(g,L,V){const lt=g.slice(L,V);let yt="";for(let Et=0;Et<lt.length-1;Et+=2)yt+=String.fromCharCode(lt[Et]+256*lt[Et+1]);return yt}function D(g,L,V){if(g%1!=0||g<0)throw new RangeError("offset is not uint");if(g+L>V)throw new RangeError("Trying to access beyond buffer length")}function W(g,L,V,lt,yt,Et){if(!d.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(L>yt||L<Et)throw new RangeError('"value" argument is out of bounds');if(V+lt>g.length)throw new RangeError("Index out of range")}function q(g,L,V,lt,yt){pt(L,lt,yt,g,V,7);let Et=Number(L&BigInt(4294967295));g[V++]=Et,Et>>=8,g[V++]=Et,Et>>=8,g[V++]=Et,Et>>=8,g[V++]=Et;let Ct=Number(L>>BigInt(32)&BigInt(4294967295));return g[V++]=Ct,Ct>>=8,g[V++]=Ct,Ct>>=8,g[V++]=Ct,Ct>>=8,g[V++]=Ct,V}function nt(g,L,V,lt,yt){pt(L,lt,yt,g,V,7);let Et=Number(L&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 Ct=Number(L>>BigInt(32)&BigInt(4294967295));return g[V+3]=Ct,Ct>>=8,g[V+2]=Ct,Ct>>=8,g[V+1]=Ct,Ct>>=8,g[V]=Ct,V+8}function ct(g,L,V,lt,yt,Et){if(V+lt>g.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function K(g,L,V,lt,yt){return L=+L,V>>>=0,yt||ct(g,0,V,4),u.write(g,L,V,lt,23,4),V+4}function h(g,L,V,lt,yt){return L=+L,V>>>=0,yt||ct(g,0,V,8),u.write(g,L,V,lt,52,8),V+8}d.prototype.slice=function(g,L){const V=this.length;(g=~~g)<0?(g+=V)<0&&(g=0):g>V&&(g=V),(L=L===void 0?V:~~L)<0?(L+=V)<0&&(L=0):L>V&&(L=V),L<g&&(L=g);const lt=this.subarray(g,L);return Object.setPrototypeOf(lt,d.prototype),lt},d.prototype.readUintLE=d.prototype.readUIntLE=function(g,L,V){g>>>=0,L>>>=0,V||D(g,L,this.length);let lt=this[g],yt=1,Et=0;for(;++Et<L&&(yt*=256);)lt+=this[g+Et]*yt;return lt},d.prototype.readUintBE=d.prototype.readUIntBE=function(g,L,V){g>>>=0,L>>>=0,V||D(g,L,this.length);let lt=this[g+--L],yt=1;for(;L>0&&(yt*=256);)lt+=this[g+--L]*yt;return lt},d.prototype.readUint8=d.prototype.readUInt8=function(g,L){return g>>>=0,L||D(g,1,this.length),this[g]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(g,L){return g>>>=0,L||D(g,2,this.length),this[g]|this[g+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(g,L){return g>>>=0,L||D(g,2,this.length),this[g]<<8|this[g+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(g,L){return g>>>=0,L||D(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+16777216*this[g+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(g,L){return g>>>=0,L||D(g,4,this.length),16777216*this[g]+(this[g+1]<<16|this[g+2]<<8|this[g+3])},d.prototype.readBigUInt64LE=Ve((function(g){St(g>>>=0,"offset");const L=this[g],V=this[g+7];L!==void 0&&V!==void 0||Ht(g,this.length-8);const lt=L+256*this[++g]+65536*this[++g]+this[++g]*2**24,yt=this[++g]+256*this[++g]+65536*this[++g]+V*2**24;return BigInt(lt)+(BigInt(yt)<<BigInt(32))})),d.prototype.readBigUInt64BE=Ve((function(g){St(g>>>=0,"offset");const L=this[g],V=this[g+7];L!==void 0&&V!==void 0||Ht(g,this.length-8);const lt=L*2**24+65536*this[++g]+256*this[++g]+this[++g],yt=this[++g]*2**24+65536*this[++g]+256*this[++g]+V;return(BigInt(lt)<<BigInt(32))+BigInt(yt)})),d.prototype.readIntLE=function(g,L,V){g>>>=0,L>>>=0,V||D(g,L,this.length);let lt=this[g],yt=1,Et=0;for(;++Et<L&&(yt*=256);)lt+=this[g+Et]*yt;return yt*=128,lt>=yt&&(lt-=Math.pow(2,8*L)),lt},d.prototype.readIntBE=function(g,L,V){g>>>=0,L>>>=0,V||D(g,L,this.length);let lt=L,yt=1,Et=this[g+--lt];for(;lt>0&&(yt*=256);)Et+=this[g+--lt]*yt;return yt*=128,Et>=yt&&(Et-=Math.pow(2,8*L)),Et},d.prototype.readInt8=function(g,L){return g>>>=0,L||D(g,1,this.length),128&this[g]?-1*(255-this[g]+1):this[g]},d.prototype.readInt16LE=function(g,L){g>>>=0,L||D(g,2,this.length);const V=this[g]|this[g+1]<<8;return 32768&V?4294901760|V:V},d.prototype.readInt16BE=function(g,L){g>>>=0,L||D(g,2,this.length);const V=this[g+1]|this[g]<<8;return 32768&V?4294901760|V:V},d.prototype.readInt32LE=function(g,L){return g>>>=0,L||D(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},d.prototype.readInt32BE=function(g,L){return g>>>=0,L||D(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},d.prototype.readBigInt64LE=Ve((function(g){St(g>>>=0,"offset");const L=this[g],V=this[g+7];L!==void 0&&V!==void 0||Ht(g,this.length-8);const lt=this[g+4]+256*this[g+5]+65536*this[g+6]+(V<<24);return(BigInt(lt)<<BigInt(32))+BigInt(L+256*this[++g]+65536*this[++g]+this[++g]*2**24)})),d.prototype.readBigInt64BE=Ve((function(g){St(g>>>=0,"offset");const L=this[g],V=this[g+7];L!==void 0&&V!==void 0||Ht(g,this.length-8);const lt=(L<<24)+65536*this[++g]+256*this[++g]+this[++g];return(BigInt(lt)<<BigInt(32))+BigInt(this[++g]*2**24+65536*this[++g]+256*this[++g]+V)})),d.prototype.readFloatLE=function(g,L){return g>>>=0,L||D(g,4,this.length),u.read(this,g,!0,23,4)},d.prototype.readFloatBE=function(g,L){return g>>>=0,L||D(g,4,this.length),u.read(this,g,!1,23,4)},d.prototype.readDoubleLE=function(g,L){return g>>>=0,L||D(g,8,this.length),u.read(this,g,!0,52,8)},d.prototype.readDoubleBE=function(g,L){return g>>>=0,L||D(g,8,this.length),u.read(this,g,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(g,L,V,lt){g=+g,L>>>=0,V>>>=0,lt||W(this,g,L,V,Math.pow(2,8*V)-1,0);let yt=1,Et=0;for(this[L]=255&g;++Et<V&&(yt*=256);)this[L+Et]=g/yt&255;return L+V},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(g,L,V,lt){g=+g,L>>>=0,V>>>=0,lt||W(this,g,L,V,Math.pow(2,8*V)-1,0);let yt=V-1,Et=1;for(this[L+yt]=255&g;--yt>=0&&(Et*=256);)this[L+yt]=g/Et&255;return L+V},d.prototype.writeUint8=d.prototype.writeUInt8=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,1,255,0),this[L]=255&g,L+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,2,65535,0),this[L]=255&g,this[L+1]=g>>>8,L+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,2,65535,0),this[L]=g>>>8,this[L+1]=255&g,L+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,4,4294967295,0),this[L+3]=g>>>24,this[L+2]=g>>>16,this[L+1]=g>>>8,this[L]=255&g,L+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,4,4294967295,0),this[L]=g>>>24,this[L+1]=g>>>16,this[L+2]=g>>>8,this[L+3]=255&g,L+4},d.prototype.writeBigUInt64LE=Ve((function(g,L=0){return q(this,g,L,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeBigUInt64BE=Ve((function(g,L=0){return nt(this,g,L,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeIntLE=function(g,L,V,lt){if(g=+g,L>>>=0,!lt){const zt=Math.pow(2,8*V-1);W(this,g,L,V,zt-1,-zt)}let yt=0,Et=1,Ct=0;for(this[L]=255&g;++yt<V&&(Et*=256);)g<0&&Ct===0&&this[L+yt-1]!==0&&(Ct=1),this[L+yt]=(g/Et|0)-Ct&255;return L+V},d.prototype.writeIntBE=function(g,L,V,lt){if(g=+g,L>>>=0,!lt){const zt=Math.pow(2,8*V-1);W(this,g,L,V,zt-1,-zt)}let yt=V-1,Et=1,Ct=0;for(this[L+yt]=255&g;--yt>=0&&(Et*=256);)g<0&&Ct===0&&this[L+yt+1]!==0&&(Ct=1),this[L+yt]=(g/Et|0)-Ct&255;return L+V},d.prototype.writeInt8=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,1,127,-128),g<0&&(g=255+g+1),this[L]=255&g,L+1},d.prototype.writeInt16LE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,2,32767,-32768),this[L]=255&g,this[L+1]=g>>>8,L+2},d.prototype.writeInt16BE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,2,32767,-32768),this[L]=g>>>8,this[L+1]=255&g,L+2},d.prototype.writeInt32LE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,4,2147483647,-2147483648),this[L]=255&g,this[L+1]=g>>>8,this[L+2]=g>>>16,this[L+3]=g>>>24,L+4},d.prototype.writeInt32BE=function(g,L,V){return g=+g,L>>>=0,V||W(this,g,L,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[L]=g>>>24,this[L+1]=g>>>16,this[L+2]=g>>>8,this[L+3]=255&g,L+4},d.prototype.writeBigInt64LE=Ve((function(g,L=0){return q(this,g,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeBigInt64BE=Ve((function(g,L=0){return nt(this,g,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeFloatLE=function(g,L,V){return K(this,g,L,!0,V)},d.prototype.writeFloatBE=function(g,L,V){return K(this,g,L,!1,V)},d.prototype.writeDoubleLE=function(g,L,V){return h(this,g,L,!0,V)},d.prototype.writeDoubleBE=function(g,L,V){return h(this,g,L,!1,V)},d.prototype.copy=function(g,L,V,lt){if(!d.isBuffer(g))throw new TypeError("argument should be a Buffer");if(V||(V=0),lt||lt===0||(lt=this.length),L>=g.length&&(L=g.length),L||(L=0),lt>0&&lt<V&&(lt=V),lt===V||g.length===0||this.length===0)return 0;if(L<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(lt<0)throw new RangeError("sourceEnd out of bounds");lt>this.length&&(lt=this.length),g.length-L<lt-V&&(lt=g.length-L+V);const yt=lt-V;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(L,V,lt):Uint8Array.prototype.set.call(g,this.subarray(V,lt),L),yt},d.prototype.fill=function(g,L,V,lt){if(typeof g=="string"){if(typeof L=="string"?(lt=L,L=0,V=this.length):typeof V=="string"&&(lt=V,V=this.length),lt!==void 0&&typeof lt!="string")throw new TypeError("encoding must be a string");if(typeof lt=="string"&&!d.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);if(g.length===1){const Et=g.charCodeAt(0);(lt==="utf8"&&Et<128||lt==="latin1")&&(g=Et)}}else typeof g=="number"?g&=255:typeof g=="boolean"&&(g=Number(g));if(L<0||this.length<L||this.length<V)throw new RangeError("Out of range index");if(V<=L)return this;let yt;if(L>>>=0,V=V===void 0?this.length:V>>>0,g||(g=0),typeof g=="number")for(yt=L;yt<V;++yt)this[yt]=g;else{const Et=d.isBuffer(g)?g:d.from(g,lt),Ct=Et.length;if(Ct===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(yt=0;yt<V-L;++yt)this[yt+L]=Et[yt%Ct]}return this};const b={};function j(g,L,V){b[g]=class extends V{constructor(){super(),Object.defineProperty(this,"message",{value:L.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${g}]`,this.stack,delete this.name}get code(){return g}set code(lt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lt,writable:!0})}toString(){return`${this.name} [${g}]: ${this.message}`}}}function X(g){let L="",V=g.length;const lt=g[0]==="-"?1:0;for(;V>=lt+4;V-=3)L=`_${g.slice(V-3,V)}${L}`;return`${g.slice(0,V)}${L}`}function pt(g,L,V,lt,yt,Et){if(g>V||g<L){const Ct=typeof L=="bigint"?"n":"";let zt;throw zt=L===0||L===BigInt(0)?`>= 0${Ct} and < 2${Ct} ** ${8*(Et+1)}${Ct}`:`>= -(2${Ct} ** ${8*(Et+1)-1}${Ct}) and < 2 ** ${8*(Et+1)-1}${Ct}`,new b.ERR_OUT_OF_RANGE("value",zt,g)}(function(Ct,zt,te){St(zt,"offset"),Ct[zt]!==void 0&&Ct[zt+te]!==void 0||Ht(zt,Ct.length-(te+1))})(lt,yt,Et)}function St(g,L){if(typeof g!="number")throw new b.ERR_INVALID_ARG_TYPE(L,"number",g)}function Ht(g,L,V){throw Math.floor(g)!==g?(St(g,V),new b.ERR_OUT_OF_RANGE("offset","an integer",g)):L<0?new b.ERR_BUFFER_OUT_OF_BOUNDS:new b.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${L}`,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,L){return`The "${g}" argument must be of type number. Received type ${typeof L}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(g,L,V){let lt=`The value of "${g}" is out of range.`,yt=V;return Number.isInteger(V)&&Math.abs(V)>2**32?yt=X(String(V)):typeof V=="bigint"&&(yt=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(yt=X(yt)),yt+="n"),lt+=` It must be ${L}. Received ${yt}`,lt}),RangeError);const Kt=/[^+/0-9A-Za-z-_]/g;function le(g,L){let V;L=L||1/0;const lt=g.length;let yt=null;const Et=[];for(let Ct=0;Ct<lt;++Ct){if(V=g.charCodeAt(Ct),V>55295&&V<57344){if(!yt){if(V>56319){(L-=3)>-1&&Et.push(239,191,189);continue}if(Ct+1===lt){(L-=3)>-1&&Et.push(239,191,189);continue}yt=V;continue}if(V<56320){(L-=3)>-1&&Et.push(239,191,189),yt=V;continue}V=65536+(yt-55296<<10|V-56320)}else yt&&(L-=3)>-1&&Et.push(239,191,189);if(yt=null,V<128){if((L-=1)<0)break;Et.push(V)}else if(V<2048){if((L-=2)<0)break;Et.push(V>>6|192,63&V|128)}else if(V<65536){if((L-=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((L-=4)<0)break;Et.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return Et}function ge(g){return e.toByteArray((function(L){if((L=(L=L.split("=")[0]).trim().replace(Kt,"")).length<2)return"";for(;L.length%4!=0;)L+="=";return L})(g))}function ve(g,L,V,lt){let yt;for(yt=0;yt<lt&&!(yt+V>=L.length||yt>=g.length);++yt)L[yt+V]=g[yt];return yt}function Ie(g,L){return g instanceof L||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===L.name}function _e(g){return g!=g}const Ee=(function(){const g="0123456789abcdef",L=new Array(256);for(let V=0;V<16;++V){const lt=16*V;for(let yt=0;yt<16;++yt)L[lt+yt]=g[V]+g[yt]}return L})();function Ve(g){return typeof BigInt>"u"?Oe:g}function Oe(){throw new Error("BigInt not supported")}},527:function(t,n,r){var e=r(188),u=r(539),a=r(682);for(var f in e)e[f]=a(m(f));function m(d){return e[d]}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(d){try{return m(d),!0}catch{return!1}}function f(d){try{return m(d)}catch{return!1}}function m(d){return new Function(d)()}u._api=e,t.exports=function d(_){if(_==="class"&&(_="classes"),u._api[_].dependencies){for(var N=0;N<u._api[_].dependencies.length;N++)if(d(u._api[_].dependencies[N])===!1)return!1}return u._api[_].passes?a(u._api[_].passes):u._api[_].fails?!a(u._api[_].fails):u._api[_].is?f(u._api[_].is):u._api[_].not?!f(u._api[_].not):void 0}},251:function(t,n){n.read=function(r,e,u,a,f){var m,d,_=8*f-a-1,N=(1<<_)-1,C=N>>1,T=-7,x=u?f-1:0,k=u?-1:1,U=r[e+x];for(x+=k,m=U&(1<<-T)-1,U>>=-T,T+=_;T>0;m=256*m+r[e+x],x+=k,T-=8);for(d=m&(1<<-T)-1,m>>=-T,T+=a;T>0;d=256*d+r[e+x],x+=k,T-=8);if(m===0)m=1-C;else{if(m===N)return d?NaN:1/0*(U?-1:1);d+=Math.pow(2,a),m-=C}return(U?-1:1)*d*Math.pow(2,m-a)},n.write=function(r,e,u,a,f,m){var d,_,N,C=8*m-f-1,T=(1<<C)-1,x=T>>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,U=a?0:m-1,Y=a?1:-1,z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(_=isNaN(e)?1:0,d=T):(d=Math.floor(Math.log(e)/Math.LN2),e*(N=Math.pow(2,-d))<1&&(d--,N*=2),(e+=d+x>=1?k/N:k*Math.pow(2,1-x))*N>=2&&(d++,N/=2),d+x>=T?(_=0,d=T):d+x>=1?(_=(e*N-1)*Math.pow(2,f),d+=x):(_=e*Math.pow(2,x-1)*Math.pow(2,f),d=0));f>=8;r[u+U]=255&_,U+=Y,_/=256,f-=8);for(d=d<<f|_,C+=f;C>0;r[u+U]=255&d,U+=Y,d/=256,C-=8);r[u+U-Y]|=128*z}},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,f=0,m=0,d="";a=e.charAt(m++);~a&&(u=f%4?64*u+a:a,f++%4)?d+=String.fromCharCode(255&u>>(-2*f&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return d}},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(f){return decodeURIComponent(e(f).replace(/(.)/g,(function(m,d){var _=d.charCodeAt(0).toString(16).toUpperCase();return _.length<2&&(_="0"+_),"%"+_})))})(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,f){if(typeof a!="string")throw new u("Invalid token specified");var m=(f=f||{}).header===!0?0:1;try{return JSON.parse(e(a.split(".")[m]))}catch(d){throw new u("Invalid token specified: "+d.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,f=n;return[f[e[a++]],f[e[a++]],f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],f[e[a++]],f[e[a++]],f[e[a++]],f[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,f,m){var d=f&&m||0;typeof a=="string"&&(f=a==="binary"?new Array(16):null,a=null);var _=(a=a||{}).random||(a.rng||e)();if(_[6]=15&_[6]|64,_[8]=63&_[8]|128,f)for(var N=0;N<16;++N)f[d+N]=_[N];return f||u(_)}},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 f="",m=a?"0":"1",d=0;d<36;d+=1)f+=d>=26&&d<30?m:u[d];var _=(function(T){for(var x=255,k=255,U=0,Y=T.length;Y;){var z=Y>20?20:Y;Y-=z;do k+=x+=T[U++];while(--z);x=(255&x)+(x>>8),k=(255&k)+(k>>8)}return((k=(255&k)+(k>>8))<<8|(x=(255&x)+(x>>8))).toString(16)})(e.from(f));if(_){var N="";if(_.length===4)N+=_;else if(_.length<4){for(var C=0;C<4-_.length;C+=1)N+=m;N+=_}else N+=_.slice(-4)}return f.substring(0,26)+N+f.substring(26+N.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,f=u.length;a<f;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,f){return encodeURIComponent(a)+"="+encodeURIComponent(f)}t.exports={init:function(a,f){n=a.errorServerUrl+"/reportSdkMsg",r=f.appId,e=typeof f.logMessageRate=="number"?f.logMessageRate:100},send:function(a){if(n&&!(100*Math.random()>e)){var f=n;f+="?"+u("appId",r),f+="&"+u("msg",JSON.stringify(a));var m=new Image;m.onerror=function(){},m.src=f}}}},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 f in u)u.hasOwnProperty(f)&&(this.headers[f]=u[f]);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,f={method:this.method,headers:this.headers};function m(T,x){return{ok:!1,status:x?x.status:400,response:T instanceof Error?T.message:T}}if(this.data&&(f.body=JSON.stringify(this.data)),typeof fetch=="function"){var d,_=fetch(this.url,f).then((function(T){if(!T.ok)throw{response:T,message:T.statusText||"HTTP error "+T.status};return(function(x){var k=x.headers.get("content-type");return k&&k.includes("application/json")?x.json().then((function(U){return{ok:x.ok,status:x.status,body:U}})):x.text().then((function(U){return{ok:x.ok,status:x.status,body:U}}))})(T)}));_.catch((function(){}));var N=new Promise((function(T,x){d=setTimeout((function(){x(new Error("Request timeout"))}),a.timeout)}));Promise.race([_,N]).then((function(T){clearTimeout(d),T.ok?u(null,T):u(m(T.response,T))})).catch((function(T){clearTimeout(d),u(m(T.message,T&&T.response))}))}else{var C=new XMLHttpRequest;C.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(T){C.setRequestHeader(T,a.headers[T])})),C.timeout=this.timeout,C.onload=function(){var T={ok:C.status>=200&&C.status<300,status:C.status,body:C.responseText};try{T.body=JSON.parse(C.responseText)}catch{}T.ok?u(null,T):u(m("HTTP error "+C.status,T))},C.onerror=function(){u(m("Error",{status:400}))},C.ontimeout=function(){u(m("Timeout",{status:408}))},C.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),f=r(723),m=r(884),d=f.serverUrl;function _(){e=e||{},u!==void 0&&(e[f.headers.sessionId]=u);var N={Accept:"application/json","Content-Type":"application/json"};return Object.keys(e).forEach((function(C){e[C]!==void 0&&(N[C]=e[C])})),N}t.exports={setSessionId:function(N){u=N},makeRequest:function(N,C){var T=N.path,x=N.data,k=N.method;(function U(Y){a[k](Y+"/"+T).set(_()).send(x).end((function(z,J){if(z){if(Y!==f.serverUrl)return void U(f.serverUrl);m.isFunction(C)&&C({ok:!1,status:z.status,response:z.response})}else m.isFunction(C)&&C(null,{ok:J.ok,status:J.status,response:J.body})}))})(d)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:_,init:function(N,C){(function(T){e=T})(N),C.eventsReportUrl&&typeof C.eventsReportUrl=="string"&&(d=m.normalizePath(C.eventsReportUrl))}}},13:function(t,n,r){var e,u=r(723),a="getItem";function f(d,_){d&&d.contentWindow.postMessage(_,"*")}function m(d,_,N){d.removeEventListener?d.removeEventListener(_,N,!1):d.attachEvent&&d.detachEvent("on"+_,N)}t.exports={init:function(d){var _,N=(_=!1,function(){_||(_=!0,d())});(e=document.createElement("iframe")).id="storageIframe",e.width=e.height=e.frameBorder=0,e.style.display="none",e.setAttribute("src",u.storageIframeUrl),e.onload=N,e.onerror=N,document.body.appendChild(e),window.setTimeout(N,1e4)},getKey:function(d,_){var N,C,T,x,k,U;e||_(),N=window,C="message",x=function Y(z){if(z.data&&typeof z.data=="string")try{var J=JSON.parse(z.data);if(J.command===a){var Z=J.response;m(window,"message",Y),_(Z)}}catch{m(window,"message",Y),_()}},k=_,U=!1,window.setTimeout((function(){U||(U=!0,k())}),5e3),T=function(Y){U||(U=!0,x(Y))},N.addEventListener?N.addEventListener(C,T,!1):N.attachEvent&&N.attachEvent("on"+C,T),f(e,JSON.stringify({command:a,key:d}))},setKey:function(d,_){f(e,JSON.stringify({command:"setItem",key:d,value:_}))},cleanup:function(){e&&e.parentElement&&e.parentElement.removeChild&&(e.parentElement.removeChild(e),e=null)}}},528:function(t){var n,r={setItem:function(d,_){this[d]=_},getItem:function(d){return this[d]},removeItem:function(d){delete this[d]}};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(d,_){u().setItem(d,_)}function f(d){return u().getItem(d)}function m(d){return u().removeItem(d)}t.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:a,getItem:f,getBackwardCompatabilityItem:function(d,_){var N=f(d);return!N&&_&&(N=f(_))&&(a(d,N),m(_)),N},removeItem:m,hasAccessToLocalStorage:e,getSessionItem:function(d){try{return sessionStorage.getItem(d)}catch{return r.getItem(d)}},setSessionItem:function(d,_){try{return sessionStorage.setItem(d,_)}catch{return r.setItem(d,_)}}}},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,f=document.createElement("script");function m(){a||(a=!0,u())}f.onload=m,f.onreadystatechange=function(){a||f.readyState!=="complete"||m()},f.onerror=function(){a||(a=!0,u("Error loading script"))},f.src=e,document.body.appendChild(f)},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,f=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())*f+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 f=u.coreConfigFileUrl.indexOf("/core-config/"),m=f>0?u.coreConfigFileUrl.substring(f):"/core-config/config.json";a=r(e.configBaseUrl)+m}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),f=r(733),m=r(472),d=r(376),_=r(120),N=r(142),C=r(636),T=r(496),x=r(1),k=r(336);t.exports={init:function(U){var Y=U.deviceId,z=U.linkedDevices,J={};J[e.headers.appId]=U.appId,J[e.headers.partnerId]=U.partnerId,J[e.headers.sdkClientVersion]=e.version,J[e.headers.sdkApiVersion]=e.sdkApiVersion,J[e.headers.sdkClientType]=e.sdkClientType,J[e.headers.appContextId]=U.appContextId,u.init(J,U),a.addMetadataProps(U),x.init(e,U),a.reportInitEvent(Y),T.init(U),k.init(U),f.installSdk(U,(function(Z){Z||d.manageFingerprint(Y,!0)})),f.reportLinkDevices(Y,z),m.manageSessionId({deviceId:Y,initModuleConfig:U}),_.manageDomEvents(Y),N.manageKeepAlive({deviceId:Y}),C.reportVersionUpgrade({deviceId:Y,initModuleVersion:U.clientVersion,coreModuleVersion:e.version})}}},143:function(t,n,r){var e=r(108),u=r(23).oneMinute,a=r(298);function f(){e.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function m(d){e.call(this),this.activityServiceId=d}f.prototype=Object.create(e.prototype),f.prototype.constructor=f,f.prototype.observe=function(){var d=this;Object.keys(this.activityEvents).forEach((function(_){document.addEventListener(_,d.activityEvents[_]=function(){d.activityHandler()})}))},f.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(a.activityEvent))},f.prototype.stopActivityListeners=function(){var d=this;Object.keys(this.activityEvents).forEach((function(_){document.removeEventListener(_,d.activityEvents[_])}))},m.prototype=Object.create(e.prototype),m.prototype.constructor=m,m.prototype.trackInactivity=function(d){var _,N=new f,C=this,T=!1;function x(){T||(clearTimeout(_),setTimeout((function(){C.trackInactivity(d)}),u))}N.addEventListener(a.activityEvent,x),N.observe(),_=setTimeout((function(){T=!0,N.stopActivityListeners(),N.removeEventListener(a.activityEvent,x),C.dispatchEvent(new Event(a.inactivityEvent))}),d)},t.exports=m},496:function(t,n,r){var e,u=r(120),a=r(776),f=r(376),m=r(23),d=r(723),_=r(38),N=r(543),C=r(336),T=r(884),x=[],k=[],U=null,Y=6e4,z=5e3,J=null,Z=T.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),et=0,ht=null,ut=Date.now(),At=0,Rt=null,st=!1,ft=!1,gt=!1,wt=!1,P=[];function l(){k=x,x=[],W(),S()}function S(){U&&clearTimeout(U),U=setTimeout(l,Y)}function D(){var X={device:{id:e,type:N.webType},metadata:{clientRequestId:m.getClientRequestId()}};return J&&J.fingerprintHash&&(X.device.fingerprint=J.fingerprintHash),X}function W(X){if(k.length)if(J!==null){var pt=Object.assign(D(),{events:k});a.makeRequest({path:"bulk",data:pt,method:a.methods.post},X)}else f.getFingerprint((function(St){J=St,W(X)}))}function q(X,pt){return x.push(X),pt?new Blob([JSON.stringify(x)]).size:0}function nt(){if(gt){var X=Date.now();X-ut>z&&(q({i:{dr:X-ut,ac:X-ut-At},metadata:{type:_.I,timestamp:X}},!1),At=0)}}function ct(){S(),k=x,x=[],W()}function K(X){nt(),(function(){if(wt&&Math.random()<.25){for(var pt=[],St=0;St<3;St++)pt.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Ht=_.DY+pt[0],Kt={metadata:{type:Ht,timestamp:Date.now()}};Kt[Ht]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Kt[Ht][pt.join("")]=Math.floor(1e3*Math.random())+1,q(Kt,!1)}})(),(function(pt){C.triggerEventOnEvent(pt)})(X),q(Object.assign({metadata:{type:X.eventType,timestamp:Date.now()}},X.payload),!0)>32768&&ct(),X.eventType!==_.C&&X.eventType!==_.S&&X.eventType!==_.KD&&X.eventType!==_.MM||(ut=Date.now())}function h(){st&&ct()}function b(X){return window.addEventListener(X,h,!0),function(){window.removeEventListener(X,h,!0)}}function j(X,pt){return!X||X.indexOf(pt)>-1}t.exports={init:function(X){if(!st){var pt=X.bulkEvents&&X.bulkEvents.mask;if(!Array.isArray(pt)||pt.length!==0){var St=X.bulkEvents&&typeof X.bulkEvents.pct=="number"?X.bulkEvents.pct:100;if(!(St===0||Math.random()>St/100)){var Ht=X.bulkEvents&&X.bulkEvents.appMaskInclude;if(!Array.isArray(Ht)||Ht.indexOf(X.appId)!==-1){var Kt=X.bulkEvents&&X.bulkEvents.appMaskExclude;if(!Array.isArray(Kt)||Kt.indexOf(X.appId)===-1){var le=j(pt,_.C),ge=j(pt,_.KD),ve=j(pt,_.S),Ie=j(pt,_.PC),_e=j(pt,_.MM),Ee=j(pt,_.PL),Ve=j(pt,_.I),Oe=j(pt,_.DY),g=Ve||Ee;e=X.deviceId,S(),le&&P.push(u.setClickListener(K)),ge&&P.push(u.setKeyDownListener(K)),ve&&P.push(u.setScrollListener(K)),Ie&&P.push(u.setPageChangeListener(K)),_e&&P.push(u.setMouseMoveListener(K)),ft=Ee,gt=Ve,wt=Oe,g&&P.push((function(){function L(){if(document.hidden)ht=Date.now(),Rt=ht;else if(ht!==null){var V=Date.now();et+=V-ht,ht=null,At+=V-Rt}}return document.addEventListener("visibilitychange",L),function(){document.removeEventListener("visibilitychange",L)}})()),P.push((function(){function L(){if(nt(),(function(){if(ft){var Ct=Date.now(),zt=Ct-Z;q({metadata:{type:_.PL,timestamp:Ct},pl:{dr:zt,ac:zt-et}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(x.length>0)try{var V=a.getRequestHeaders(),lt=Object.assign(D(),{events:x}),yt=new URLSearchParams;yt.append("data",JSON.stringify(lt)),yt.append("headers",JSON.stringify(V));var Et=new Blob([yt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(d.serverUrl+"/bulk",Et)}catch{}}else k=x,W()}return window.addEventListener("beforeunload",L),function(){window.removeEventListener("beforeunload",L)}})()),st=!0,x=[],le||P.push(b("click")),P.push(b("paste"))}}}}}},cleanup:function(){st&&(U&&clearTimeout(U),P.forEach((function(X){X()})),P=[],st=!1)},trigger:h}},120:function(t,n,r){var e=r(709),u=r(38),a=r(23);function f(){return"ontouchstart"in window}function m(d){var _={};if(d.nodeName){_.name=d.nodeName,d.className&&(_.className=String(d.className)),d.id&&(_.id=d.id);var N=d.getAttribute&&d.getAttribute("type");N&&(_.type=N),d.placeholder&&(_.placeholder=d.placeholder)}return _}t.exports={manageDomEvents:function(d){e.managePasteEvents(d)},getDomProperties:m,setClickListener:function(d){function _(C){var T={eventType:u.C,payload:{c:{d:m(C.target)}}},x=C.target.textContent||C.target.innerText||"";if(x){var k=a.transformDomNodeContent(x);T.payload[u.C].x={p:k.prefix,s:k.suffix,l:k.length}}d(T)}var N=f()?"touchend":"click";return window.addEventListener(N,_,!0),function(){window.removeEventListener(N,_,!0)}},setKeyDownListener:function(d){function _(N){d({eventType:u.KD,payload:{kd:{d:m(N.target),k:N.key||N.code||"na"}}})}return window.addEventListener("keydown",_,!0),function(){window.removeEventListener("keydown",_,!0)}},setScrollListener:function(d){var _=null,N=0,C=0,T={x:0,y:0},x=0,k=0,U=0,Y=0,z=0,J=0;function Z(ht){d({eventType:u.S,payload:{s:{d:m(ht.target),di:{x:T.x,y:T.y},t:k-x,sx:U,sy:Y,ex:z,ey:J}}}),N=0,C=0,T.x=0,T.y=0,_=null,x=0,k=0}function et(ht){var ut=ht.target.scrollingElement||ht.target;if(ut&&(ut===document&&(ut=document.documentElement),ut instanceof Element)){var At=ut.getBoundingClientRect(),Rt=-At.left+ut.scrollLeft,st=-At.top+ut.scrollTop;_?(clearTimeout(_),k=Date.now(),z=Rt,J=st):(x=Date.now(),k=x,z=U=Rt,J=Y=st),(T.x||T.y||N||C)&&(T.x+=Math.abs(Rt-N),T.y+=Math.abs(st-C)),N=Rt,C=st,_=setTimeout(Z.bind(null,ht),200)}}return window.addEventListener("scroll",et,!0),function(){_&&clearTimeout(_),window.removeEventListener("scroll",et,!0)}},setPageChangeListener:function(d){var _,N,C,T=null,x=null,k=0;function U(Z){var et;if(window.URL){var ht=new URL(Z,"http://example.com");et=ht.pathname+ht.hash}else et=Z.indexOf("?")>-1?Z.split("?")[0]:Z.indexOf("#")>-1?Z.split("#")[0]:Z;if(et!==T){var ut=Date.now()-C;d({eventType:u.PC,payload:{pc:{f:T,t:et,dr:ut,ac:ut-k}}}),T=et,C=Date.now()}}function Y(){if(document.hidden)x=Date.now();else if(x!==null){var Z=Date.now();k+=Z-x,x=null}}function z(Z){U(Z.newURL)}function J(){U(window.location.href)}return window.history?(T=window.location.pathname||"/",_=history.pushState,N=history.replaceState,C=Date.now(),window.addEventListener("hashchange",z),window.addEventListener("popstate",J),history.pushState=function(Z,et,ht){return U(ht),_.apply(history,arguments)},history.replaceState=function(Z,et,ht){return U(ht),N.apply(history,arguments)},document.addEventListener("visibilitychange",Y),function(){history.pushState=_,history.replaceState=N,window.removeEventListener("hashchange",z),window.removeEventListener("popstate",J),document.removeEventListener("visibilitychange",Y),T=null,k=0}):function(){}},setMouseMoveListener:function(d){var _=[],N=!1,C=null,T=0,x={x:0,y:0};function k(){_.length!==0&&(d({eventType:u.MM,payload:{mm:{s:_.slice(),l:N,di:x}}}),_=[])}function U(z){var J,Z;z.touches&&z.touches.length>0?(J=z.touches[0].clientX,Z=z.touches[0].clientY):(J=z.clientX,Z=z.clientY),J!==void 0&&Z!==void 0&&(_.length>0&&(x.x+=Math.abs(J-_[_.length-1][0]),x.y+=Math.abs(Z-_[_.length-1][1])),_.push([J,Z]),_.length>1e3&&(N=!0,(T+=2)>=1e3&&(T=2),_.splice(T,1)),C&&clearTimeout(C),C=setTimeout(k,200))}var Y=f()?"touchmove":"mousemove";return window.addEventListener(Y,U,!0),function(){C&&clearTimeout(C),window.removeEventListener(Y,U,!0)}}}},387:function(t,n,r){var e=r(776),u=r(23),a=r(287).hp,f=r(527),m=r(543),d=["storeInfo"],_={};function N(){var x={};for(var k in f)if(f.hasOwnProperty(k)){var U=k.charAt(0);U===U.toLowerCase()&&U!==U.toUpperCase()&&(x[k]=f[k])}return x}function C(x,k){var U=x.eventType,Y=x.deviceId,z=x.fingerprintProVisitorId,J=x.fingerprintProRequestId,Z=x.fingerprintHash,et=(function(gt){try{return a.from(JSON.stringify(gt)).toString("base64")}catch{return}})(x.fingerprintComponents),ht=x.deviceExtendedInfo,ut=x.payload,At={metadata:{type:U},device:{id:Y,fingerprint:Z,rawFingerprint:et,type:m.webType}};z&&(At.device.visitorId=z),J&&(At.device.fpRequestId=J);var Rt=Object.assign({},u.getClientMetadata(u.metadataType.payload),_);for(var st in Rt)Rt.hasOwnProperty(st)&&(At.metadata[st]=Rt[st]);for(var ft in ut)ut.hasOwnProperty(ft)&&(At[ft]=ut[ft]);ht&&(At.device.extendedInfo=ht),e.makeRequest({path:"events",data:At,method:e.methods.post},k)}function T(x){var k=x.type,U=x.deviceId,Y=x.fingerprintProVisitorId,z=x.fingerprintProRequestId,J=x.fingerprintHash,Z=x.fingerprintComponents,et=x.deviceExtendedInfo,ht=x.callback,ut={eventType:k,deviceId:U,fingerprintHash:J,fingerprintComponents:Z,deviceExtendedInfo:et};Y&&(ut.fingerprintProVisitorId=Y),z&&(ut.fingerprintProRequestId=z),C(ut,ht)}t.exports={addMetadataProps:function(x){for(var k=0;k<d.length;k+=1){var U=d[k];x.hasOwnProperty(U)&&(_[U]=x[U])}},reportEvent:C,reportAppInstallEvent:function(x,k,U,Y,z,J){T({type:"appInstall",deviceId:x,fingerprintProVisitorId:k,fingerprintProRequestId:U,fingerprintHash:Y,fingerprintComponents:z,deviceExtendedInfo:N(),callback:J})},reportFingerprintEvent:function(x,k,U,Y){T({type:"fingerprint",deviceId:x,fingerprintHash:k,fingerprintComponents:U,fingerprintProRequestId:Y})},reportInitEvent:function(x){T({type:"appInit",deviceId:x})}}},625:function(t,n,r){var e=r(269),u=r(1);t.exports={getFingerprint:function(a,f){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(d){return d.get()})).then((function(d){typeof f=="function"&&f(d?{fingerprintVisitorId:d.visitorId,fingerprintRequestId:d.requestId}:{})})).catch((function(){typeof f=="function"&&f({})}))}catch(d){var m={msg:"FingerprintJS.load pro error",err:JSON.stringify(d)};u.send(m),typeof f=="function"&&f({})}else f({})}}},376:function(t,n,r){var e=r(568),u=r(528),a=r(387),f=r(1),m="ns_fp_hash";function d(N,C,T,x){a.reportFingerprintEvent(T,N,C,x)}function _(N){try{e.load({monitoring:!1}).then((function(T){T.get().then((function(x){N(x?{fingerprintHash:x.visitorId,fingerprintComponents:x.components}:{})})).catch((function(){typeof N=="function"&&N({})}))})).catch((function(){typeof N=="function"&&N({})}))}catch(T){var C={msg:"FingerprintJS.load error",err:JSON.stringify(T)};f.send(C),typeof N=="function"&&N({})}}t.exports={manageFingerprint:function(N,C,T){_((function(x){var k=x.fingerprintHash,U=x.fingerprintComponents;u.getItem(m)!==k&&(C&&d(k,U,N),u.setItem(m,k)),typeof T=="function"&&T({fingerprintHash:k,fingerprintComponents:U})}))},getFingerprint:_,reportFingerprintWithProInfo:function(N,C){_((function(T){d(T.fingerprintHash,T.fingerprintComponents,N,C)}))}}},733:function(t,n,r){var e=r(528),u=r(376),a=r(625),f=r(387),m=r(142),d=r(1),_=r(543),N="linkDevices";function C(x,k,U){u.getFingerprint((function(Y){var z=Y.fingerprintHash,J=Y.fingerprintComponents;f.reportEvent({eventType:N,deviceId:x,fingerprintHash:z,fingerprintComponents:J,payload:{linkedDevices:[k,U]}})}))}function T(x,k){if(k)for(var U=0,Y=k.length;U<Y;U+=1){var z=k[U];if(z&&z.length>1){var J=z[0],Z=z[1];J&&Z&&J!==Z&&C(x,J,Z)}}}t.exports={installSdk:function(x,k){var U=x.deviceId,Y=x.loadFingerprintJsPro,z=(x.supressInstallBackwardCompatibility||[]).indexOf(x.appId)===-1,J=(function(et,ht){var ut=ht?e.getBackwardCompatabilityItem(_.installEventReportedKeyName,_.oldInstallEventReportedKeyName):e.getItem(_.installEventReportedKeyName);return ut?(ut==="true"&&(e.setItem(_.installEventReportedKeyName,et),ut=et),et===ut?{isInstalled:!0,reportedDeviceId:et}:{isInstalled:!1,reportedDeviceId:ut}):{isInstalled:!1,reportedDeviceId:null}})(U,z);function Z(et,ht,ut){if(ut>3)k&&k(!1);else{var At=ht.fingerprintHash,Rt=ht.fingerprintComponents,st=et.fingerprintVisitorId,ft=et.fingerprintRequestId;f.reportAppInstallEvent(U,st,ft,At,Rt,(function(gt){if(gt){var wt={msg:"Failed sending appInstall",err:JSON.stringify(gt),deviceId:U,fingerprintHash:At,fingerprintRequestId:ft,numberOfRetry:ut};d.send(wt),Z(et,ht,ut+1)}else e.setItem(_.installEventReportedKeyName,U),e.setItem("ns_irts",Date.now()),m.manageKeepAlive({deviceId:U,fingerprintInfo:ht,setStartTimestamp:!0}),k&&k(!0)}))}}J.isInstalled?k&&k(!1):(J.reportedDeviceId&&J.reportedDeviceId!==U&&T(U,[[U,J.reportedDeviceId]]),a.getFingerprint(Y,(function(et){u.manageFingerprint(U,!1,(function(ht){Z(et,ht,1)}))})))},reportLinkDevices:T}},142:function(t,n,r){var e=r(528),u=r(884),a=r(387),f=r(376),m="ns_ka_ts",d="ns_ka_step_",_=[10,30,40,60];function N(k){return d+k}function C(){var k=parseInt(e.getItem(m),10);return u.isValidDate(new Date(k))?k:null}function T(k,U){var Y=(function(){var z=C();if(!z)return null;for(var J,Z=Math.floor((new Date().getTime()-z)/1e3),et=0;et<_.length;et+=1){var ht=_[et],ut=et<_.length-1?_[et+1]:null;if(Z>=ht&&(!ut||Z<ut)&&(J=ht,!e.getItem(N(J))))return{stepToReport:ht,timeToWaitInSeconds:0};if(Z<ht)return{stepToReport:ht,timeToWaitInSeconds:ht-Z}}return null})();Y&&(Y.timeToWaitInSeconds===0?((function(z,J,Z){var et=J.fingerprintHash,ht=J.fingerprintComponents;a.reportEvent({eventType:"keepAlive",deviceId:z,fingerprintHash:et,fingerprintComponents:ht,payload:{keepAlive:{step:Z}}}),e.setItem(N(Z),!0)})(k,U,Y.stepToReport),T(k,U)):Y.timeToWaitInSeconds>0&&setTimeout((function(){T(k,U)}),1e3*Y.timeToWaitInSeconds))}var x={manageKeepAlive:function(k){var U=k.deviceId,Y=k.fingerprintInfo;k.setStartTimestamp&&!C()&&e.setItem(m,new Date().getTime()),Y?T(U,Y):f.getFingerprint((function(z){T(U,z)}))}};t.exports=x},709:function(t,n,r){var e=r(387),u=r(376),a=r(23);function f(_){var N,C=_?_.value||_.innerText:null;return{nodeContent:C,normalizedNodeContent:(N=C,a.removeWhitespaces(N))}}function m(_){var N=a.transformDomNodeContent(_),C=_||"";return N.onlyDigits=/^[0-9]+$/.test(C),N.containsWhitespace=/\s/.test(C),N.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(C),N}var d={managePasteEvents:function(_){document.addEventListener("paste",(function(N){var C=f(N.target);setTimeout((function(){(function(T){var x=T.deviceId,k=T.contentBeforePaste,U=k.nodeContent,Y=k.normalizedNodeContent,z=T.domNode,J={paste:{domNode:{}}};if(z.nodeName){J.paste.domNode.name=z.nodeName,z.className&&(J.paste.domNode.className=z.className),z.id&&(J.paste.domNode.id=z.id);var Z=z.getAttribute&&z.getAttribute("type");Z&&(J.paste.domNode.type=Z),J.paste.domNode.content={};var et=f(z),ht=et.nodeContent,ut=et.normalizedNodeContent;J.paste.domNode.content.beforePaste=m(U),J.paste.domNode.content.afterPaste=m(ht),J.paste.domNode.normalizedContent={},J.paste.domNode.normalizedContent.beforePaste=m(Y),J.paste.domNode.normalizedContent.afterPaste=m(ut),z.placeholder&&(J.paste.domNode.placeholder=z.placeholder),J.paste.url=window.location.href}u.getFingerprint((function(At){var Rt=At.fingerprintHash;e.reportEvent({eventType:"paste",deviceId:x,fingerprintHash:Rt,payload:J})}))})({deviceId:_,contentBeforePaste:C,domNode:N.target})}),0)}))}};t.exports=d},472:function(t,n,r){var e=r(127),u=r(108),a=r(884),f=r(23),m=r(776),d=r(528),_=r(298).inactivityEvent,N=r(143),C=r(387),T=r(376),x="ns_sid";function k(){u.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function U(z){var J=z.deviceId,Z=z.initModuleConfig,et=z.jwtSessionId,ht=z.callback,ut=1e4;try{ut=e(et).inactivityTimeout}catch{ut=1e4}var At=new N(new Date().getTime());At.addEventListener(_,(function Rt(){At.removeEventListener(_,Rt),Y({deviceId:J,initModuleConfig:Z,forceRenewSessionDueToInactivity:!0,callback:ht})})),At.trackInactivity(ut)}function Y(z){var J,Z=z.deviceId,et=z.initModuleConfig,ht=!!z.forceRenewSessionDueToInactivity,ut=z.callback,At=d.getItem(x);try{J=e(At),m.setSessionId(At)}catch{J=null}ht||!J||1e3*((J||{}).exp||0)<new Date().getTime()?(function(Rt,st){var ft=Rt.deviceId,gt=(Rt.initModuleConfig||{}).storeInfo,wt=new k;wt.addEventListener(wt.eventTypes.fetchComplete,(function P(l){wt.removeEventListener(wt.eventTypes.fetchComplete,P),st(l.detail)})),wt.fetchSessionId(ft,gt)})({deviceId:Z,initModuleConfig:et},(function(Rt){At=Rt,d.setItem(x,At),m.setSessionId(At),(function(st){try{var ft=st.deviceId,gt=e(st.jwtSessionId).ets;if(!gt)return;T.getFingerprint((function(wt){var P=wt.fingerprintHash,l=wt.fingerprintComponents;C.reportEvent({eventType:"ping",deviceId:ft,fingerprintHash:P,fingerprintComponents:l,payload:{ping:{ets:gt}}})}))}catch{}})({deviceId:Z,jwtSessionId:At}),U({deviceId:Z,initModuleConfig:et,jwtSessionId:At,callback:ut}),a.isFunction(ut)&&ut(At)})):(U({deviceId:Z,initModuleConfig:et,jwtSessionId:At,callback:ut}),a.isFunction(ut)&&ut(At))}k.prototype=Object.create(u.prototype),k.prototype.constructor=k,k.prototype.fetchSessionId=function(z,J){var Z=this,et="session?"+f.getClientMetadata(f.metadataType.queryString)+"&deviceId="+z;J&&(J.id&&(et+="&storeId="+J.id),J.type&&(et+="&storeType="+J.type)),(function ht(){var ut;ut=function(At,Rt){!At&&Rt&&Rt.ok?Z.dispatchEvent(new CustomEvent(Z.eventTypes.fetchComplete,{detail:Rt.response})):setTimeout(ht,a.randomInt(4e4,6e4))},m.makeRequest({path:et,method:m.methods.get},ut)})()},t.exports={manageSessionId:Y,setRetrySessionTimeout:function(z){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(t,n,r){var e=r(23),u=r(376),a=r(625),f=r(528),m=r(543).fingerprintReportedInSessionKey,d=r(543).eventTriggers,_={},N=null,C=!1,T=!1;function x(U){var Y=U||{};Object.keys(Y).forEach((function(z){z===d.fingerPrint&&T&&(f.getSessionItem(m)||(a.getFingerprint(C,(function(J){u.reportFingerprintWithProInfo(N,J.fingerprintRequestId)})),f.setSessionItem(m,!0)))}))}function k(U,Y,z){for(var J=0;J<Y.payload.length;J++){var Z=Y.payload[J];Z&&Z.event&&Z.action&&e.isSubObject(Z.event,U.payload)&&(z[Z.action]=!0)}}t.exports={init:function(U){if(U.eventTrigger){try{var Y=atob(U.eventTrigger),z=JSON.parse(Y);if(!z||!(_=z[U.appId]))return}catch{return}N=U.deviceId,C=U.loadFingerprintJsPro,T=!0,(function(){if(T&&_.init&&Array.isArray(_.init)){for(var J={},Z=0;Z<_.init.length;Z++){var et=_.init[Z];et&&et.url&&et.action&&new RegExp(_.init[Z].url).test(window.location.href)&&(J[_.init[Z].action]=!0)}x(J)}})()}},triggerEventOnEvent:function(U){if(T){var Y=_[U.eventType];if(Array.isArray(Y)){for(var z={},J=0;J<Y.length;J++){var Z=Y[J];Z&&Z.url&&Z.payload&&new RegExp(Z.url).test(window.location.href)&&k(U,Z,z)}x(z)}}}}},636:function(t,n,r){var e=r(528),u=r(387),a=r(376),f="ns_c_ver",m="c";function d(N){e.setItem(f,JSON.stringify(N))}function _(N,C,T,x){var k=C.fingerprintHash,U=C.fingerprintComponents;u.reportEvent({eventType:"sdkVersionUpgrade",deviceId:N,fingerprintHash:k,fingerprintComponents:U,payload:{versionUpgrade:{version:T,prevVersion:x||""}}}),d(T)}t.exports={reportVersionUpgrade:function(N){var C=N.initModuleVersion,T=N.coreModuleVersion,x={};x.i=C,x[m]=T;var k=N.deviceId,U=N.fingerprintInfo,Y=(function(){var z=e.getItem(f);if(z){try{var J=JSON.parse(z);if(typeof J=="object")return J}catch{}return{i:z}}return null})();Y&&Y.i?Y.i!==C||Y[m]&&Y[m]!==T?(Y[m]||(Y[m]=T),U?_(k,U,x,Y):a.getFingerprint((function(z){_(k,z,x,Y)}))):Y[m]||d(x):d(x)}}},23:function(t,n,r){var e=r(550),u={payload:"payload",queryString:"queryString"};function a(){return e()}function f(d,_){for(var N in d)if(d.hasOwnProperty(N)&&(!_.hasOwnProperty(N)||!m(d[N],_[N])))return!1;return!0}function m(d,_){if(d===_)return!0;if(typeof d!=typeof _)return!1;if(Array.isArray(d)&&Array.isArray(_)){if(d.length!==_.length)return!1;for(var N=0;N<d.length;N++)if(!m(d[N],_[N]))return!1;return!0}return typeof d=="object"&&d!==null&&typeof _=="object"&&_!==null&&f(d,_)}t.exports={metadataType:u,getClientMetadata:function(d){var _=new Date().getTime(),N=a();return d===u.queryString?"timestamp="+_+"&clientRequestId="+N:{timestamp:_,clientRequestId:N}},oneMinute:6e4,getClientRequestId:a,transformDomNodeContent:function(d){var _,N,C=d||"",T=C.length;return T<=1?(_="",N=""):T===2?(_=C.slice(0,1),N=""):T===3?(_=C.slice(0,1),N=C.slice(T-1)):T===4?(_=C.slice(0,2),N=C.slice(T-1)):T===5?(_=C.slice(0,2),N=C.slice(T-2)):T===6?(_=C.slice(0,3),N=C.slice(T-2)):T===7?(_=C.slice(0,3),N=C.slice(T-3)):T===8?(_=C.slice(0,4),N=C.slice(T-3)):T===9?(_=C.slice(0,5),N=C.slice(T-3)):T===10?(_=C.slice(0,5),N=C.slice(T-4)):T>10&&(_=C.slice(0,6),N=C.slice(T-4)),{length:T,prefix:_,suffix:N}},isSubObject:f,removeWhitespaces:function(d){return d&&(d instanceof String||typeof d=="string")?d.replace(/\s/g,""):d}}},651:function(t,n,r){var e,u=r(723),a=r(115),f=r(884);function m(){return a.getDeviceId()}t.exports={getDeviceId:function(){return e||(e=m()),e},getCoreModuleParams:function(d,_){var N=_||{},C=!!N.isFingerprintJsProOff,T=[];e&&e!==m()&&T.push([e,m()]);var x=f.getAppContextId(),k=N.bulkEvents||{},U=N.supressInstallBackwardCompatibility||[],Y=typeof N.logMessageRate=="number"?N.logMessageRate:100,z=N.eventTrigger||"";return Object.assign(d,{deviceId:m(),linkedDevices:T,loadFingerprintJsPro:!C,clientVersion:u.version,appContextId:x,bulkEvents:k,supressInstallBackwardCompatibility:U,logMessageRate:Y,eventTrigger:z,eventsReportUrl:N.eventsReportUrl})},parseInitParams:function(d,_){return typeof(N=d)=="string"||N instanceof String?{appId:d,partnerId:_}:d;var N},internalGetDeviceId:m}},342:function(t,n,r){var e=r(723),u=r(242),a=r(1),f=r(102),m=r(651),d=r(884),_=r(884);t.exports={version:e.version,init:d.isBrowser()?function(N,C){var T=m.parseInitParams(N,C),x=T.appId;a.init(e,{appId:x});var k=_.getConfigBaseUrls(T,e),U=k.mainConfigBaseUrl,Y=k.altConfigBaseUrl;function z(Z,et){u.getCoreModuleLoadingInfo({appId:x,url:Z},(function(ht,ut){!ht&&ut||e.errorServerUrl&&a.send({msg:"Core loading error",reason:"config-file-load-fail",url:e.coreConfigFileUrl,errorDescription:ht}),et(ut)}))}function J(Z){typeof Z.onPercentage=="number"&&d.randomInt(0,100)>Z.onPercentage||(function(et,ht){var ut=m.getCoreModuleParams(et,ht);f.init(ut)})(T,Z)}return z(U,(function(Z){if(Z)J(Z);else{if(!Y)return;z(Y,(function(et){et&&J(et)}))}})),m.getDeviceId()}:function(N,C){return null},getDeviceId:d.isBrowser()?function(){return m.getDeviceId()}:function(){return null}}},242:function(t,n,r){var e=r(611),u=r(528),a=r(884),f="ns_group";function m(d,_){(function(N,C){e.get(N).end((function(T,x){T?a.isFunction(C)&&C({ok:!1,errorDescription:JSON.stringify({err:T,res:x})}):a.isFunction(C)&&C(null,{ok:x.ok,status:x.status,response:x.body})}))})(d.url,(function(N,C){!N&&C&&C.response?a.isFunction(_)&&_(null,(function(T,x){var k,U=x||{},Y=U.configurations||{},z=Y[T];if(z){var J=(function(){var At=u.getItem(f);return At||(At=a.randomInt(1,100),u.setItem(f,At)),At})(),Z=(function(At){var Rt=[],st=0;for(var ft in At)if(At.hasOwnProperty(ft)){var gt=At[ft],wt=st;st+=gt.percentage,Rt.push({from:wt,to:st,url:gt.url})}return Rt})(z.groups),et=(function(At,Rt){for(var st=0,ft=At.length;st<ft;st++){var gt=At[st];if(Rt>gt.from&&Rt<=gt.to)return gt}return null})(Z,J)||{};if(et)for(k in et)et.hasOwnProperty(k)&&(z[k]=et[k]);var ht=Y.default||{};for(k in ht)ht.hasOwnProperty(k)&&!z.hasOwnProperty(k)&&(z[k]=ht[k])}else z=Y.default||{};var ut={};for(k in U)U.hasOwnProperty(k)&&k!=="configurations"&&(ut[k]=U[k]);for(k in z)z.hasOwnProperty(k)&&["groups","from","to"].indexOf(k)===-1&&(ut[k]=z[k]);return ut})(d.appId,C.response)):a.isFunction(_)&&_(N.errorDescription)}))}t.exports={getCoreModuleLoadingInfo:function(d,_){var N=0;d&&d.url?m(d,(function C(T,x){T?(N+=1)<=3?m(d,C):a.isFunction(_)&&_(T):a.isFunction(_)&&_(null,x)})):a.isFunction(_)&&_("config url is not configured")}}},115:function(t,n,r){var e,u=r(550),a=r(528),f=r(13),m=r(884),d=r(616),_="ns_dev_id",N=[];function C(){var T=a.getItem(_);e||(e=T||d.toArray(u(),a.hasAccessToLocalStorage()),a.setItem(_,e))}t.exports={init:function(){f.init((function(){f.getKey(_,(function(T){T?(e=T,a.setItem(_,e),f.cleanup()):(C(),f.setKey(_,e),setTimeout(f.cleanup,2e3));for(var x=0,k=N.length;x<k;x+=1){var U=N[x];m.isFunction(U)&&U()}N=[]}))}))},addOnReadyListener:function(T){N.push(T)},getDeviceId:function(){return C(),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 f},YH:function(){return d},fX:function(){return _},sH:function(){return m}});var e=function(N,C){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,x){T.__proto__=x}||function(T,x){for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&(T[k]=x[k])},e(N,C)};function u(N,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function T(){this.constructor=N}e(N,C),N.prototype=C===null?Object.create(C):(T.prototype=C.prototype,new T)}var a=function(){return a=Object.assign||function(N){for(var C,T=1,x=arguments.length;T<x;T++)for(var k in C=arguments[T])Object.prototype.hasOwnProperty.call(C,k)&&(N[k]=C[k]);return N},a.apply(this,arguments)};function f(N,C){var T={};for(var x in N)Object.prototype.hasOwnProperty.call(N,x)&&C.indexOf(x)<0&&(T[x]=N[x]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function"){var k=0;for(x=Object.getOwnPropertySymbols(N);k<x.length;k++)C.indexOf(x[k])<0&&Object.prototype.propertyIsEnumerable.call(N,x[k])&&(T[x[k]]=N[x[k]])}return T}function m(N,C,T,x){return new(T||(T=Promise))((function(k,U){function Y(Z){try{J(x.next(Z))}catch(et){U(et)}}function z(Z){try{J(x.throw(Z))}catch(et){U(et)}}function J(Z){var et;Z.done?k(Z.value):(et=Z.value,et instanceof T?et:new T((function(ht){ht(et)}))).then(Y,z)}J((x=x.apply(N,C||[])).next())}))}function d(N,C){var T,x,k,U,Y={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return U={next:z(0),throw:z(1),return:z(2)},typeof Symbol=="function"&&(U[Symbol.iterator]=function(){return this}),U;function z(J){return function(Z){return(function(et){if(T)throw new TypeError("Generator is already executing.");for(;U&&(U=0,et[0]&&(Y=0)),Y;)try{if(T=1,x&&(k=2&et[0]?x.return:et[0]?x.throw||((k=x.return)&&k.call(x),0):x.next)&&!(k=k.call(x,et[1])).done)return k;switch(x=0,k&&(et=[2&et[0],k.value]),et[0]){case 0:case 1:k=et;break;case 4:return Y.label++,{value:et[1],done:!1};case 5:Y.label++,x=et[1],et=[0];continue;case 7:et=Y.ops.pop(),Y.trys.pop();continue;default:if(!((k=(k=Y.trys).length>0&&k[k.length-1])||et[0]!==6&&et[0]!==2)){Y=0;continue}if(et[0]===3&&(!k||et[1]>k[0]&&et[1]<k[3])){Y.label=et[1];break}if(et[0]===6&&Y.label<k[1]){Y.label=k[1],k=et;break}if(k&&Y.label<k[2]){Y.label=k[2],Y.ops.push(et);break}k[2]&&Y.ops.pop(),Y.trys.pop();continue}et=C.call(N,Y)}catch(ht){et=[6,ht],x=0}finally{T=k=0}if(5&et[0])throw et[1];return{value:et[0]?et[1]:void 0,done:!0}})([J,Z])}}}function _(N,C,T){if(T||arguments.length===2)for(var x,k=0,U=C.length;k<U;k++)!x&&k in C||(x||(x=Array.prototype.slice.call(C,0,k)),x[k]=C[k]);return N.concat(x||Array.prototype.slice.call(C))}typeof SuppressedError=="function"&&SuppressedError}},gf={};function br(t){var n=gf[t];if(n!==void 0)return n.exports;var r=gf[t]={exports:{}};return zm[t](r,r.exports,br),r.exports}br.d=function(t,n){for(var r in n)br.o(n,r)&&!br.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},br.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},br.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var li={};br.d(li,{IP:function(){return di.getDeviceId},Ts:function(){return di.init},rE:function(){return di.version}});var di=br(342);const Wm={version:di.version,init:di.init,getDeviceId:di.getDeviceId};li.Ay=Wm;var Ea=li.Ay;li.IP,li.Ts,li.rE;function _a(){if(typeof window<"u"){const t=new URLSearchParams(window.location.search).get("deviceId");if(t)return t}return Ea?Ea.getDeviceId():null}class An{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:f,useNativeSubtotal:m,presentment:d,transaction:_,blockchain:N="solana",webhookInfo:C,email:T,loaderBackground:x,handleHeightChangeId:k,bankAccountLinkRedirect:U,additionalWallets:Y,chargebackProtectionData:z,chargebackProtectionAccountType:J,merchantCss:Z,color:et,rent:ht,lockDefaultToken:ut,tokens:At,planCode:Rt,disableApplePay:st,disableGooglePay:ft,customerInfo:gt,settlementType:wt,lockAmount:P,nativeSolToConvert:l,theme:S,usePermit:D,transactionSigner:W,authOnly:q,deviceId:nt,jwtToken:ct,origins:K,threeDsChallengePreference:h,supportEmail:b,destinationAuthKey:j,allowedPaymentMethods:X,accountFundingTransaction:pt,partialUsdcChecked:St,redemptionCheck:Ht,allowedWithdrawSpeeds:Kt,isZeroAuthorization:le,zeroAuthorizationConfig:ge,userLocation:ve,appReturnUrl:Ie,depositAmounts:_e,ownerOverride:Ee,bridgeId:Ve,baseUrl:Oe}){const g=u?`/${u}/${N}`:`/${N}`,L=new URL(g+e,Oe??An.getCoinflowBaseUrl(a));if(n&&L.searchParams.append("pubkey",n),Ee&&L.searchParams.append("ownerOverride",Ee),r&&L.searchParams.append("sessionKey",r),_&&L.searchParams.append("transaction",_),f&&("cents"in f?(L.searchParams.append("cents",f.cents.toString()),"currency"in f?L.searchParams.append("currency",f.currency.toString()):L.searchParams.append("currency",wa.USD)):(L.searchParams.append("token",f.address.toString()),L.searchParams.append("amount",f.amount.toString()))),m&&L.searchParams.append("useNativeSubtotal","true"),Ve&&L.searchParams.append("bridgeId",Ve),d&&L.searchParams.append("presentment",d),C&&L.searchParams.append("webhookInfo",Rn.compressToEncodedURIComponent(JSON.stringify(C))),S&&L.searchParams.append("theme",Rn.compressToEncodedURIComponent(JSON.stringify(S))),gt&&L.searchParams.append("customerInfo",Rn.compressToEncodedURIComponent(JSON.stringify(gt))),T&&L.searchParams.append("email",T),b&&L.searchParams.append("supportEmail",b),At&&L.searchParams.append("tokens",At.toString()),x&&L.searchParams.append("loaderBackground",x),k&&L.searchParams.append("useHeightChange",k.toString()),U&&L.searchParams.append("bankAccountLinkRedirect",U),Y&&L.searchParams.append("additionalWallets",Rn.compressToEncodedURIComponent(JSON.stringify(Y))),z&&L.searchParams.append("chargebackProtectionData",Rn.compressToEncodedURIComponent(JSON.stringify(z))),J&&L.searchParams.append("chargebackProtectionAccountType",J),nt)L.searchParams.append("deviceId",nt);else{const V=_a();V&&L.searchParams.append("deviceId",V)}return Z&&L.searchParams.append("merchantCss",Z),et&&L.searchParams.append("color",et),ht&&L.searchParams.append("rent",ht.lamports.toString()),Ht&&L.searchParams.append("redemptionCheck","true"),l&&L.searchParams.append("nativeSolToConvert",l.lamports.toString()),ut&&L.searchParams.append("lockDefaultToken","true"),Rt&&L.searchParams.append("planCode",Rt),st&&L.searchParams.append("disableApplePay","true"),ft&&L.searchParams.append("disableGooglePay","true"),wt&&L.searchParams.append("settlementType",wt),P&&L.searchParams.append("lockAmount","true"),D===!1&&L.searchParams.append("usePermit","false"),W&&L.searchParams.append("transactionSigner",W),q===!0&&L.searchParams.append("authOnly","true"),ge?L.searchParams.append("zeroAuthorizationConfig",JSON.stringify(ge)):le===!0&&L.searchParams.append("isZeroAuthorization","true"),St===!0&&L.searchParams.append("partialUsdcChecked","true"),ct&&L.searchParams.append("jwtToken",ct),K&&L.searchParams.append("origins",Rn.compressToEncodedURIComponent(JSON.stringify(K))),X&&L.searchParams.append("allowedPaymentMethods",X.join(",")),_e&&L.searchParams.append("depositAmounts",_e.join(",")),h&&L.searchParams.append("threeDsChallengePreference",h),j&&L.searchParams.append("destinationAuthKey",j),pt&&L.searchParams.append("accountFundingTransaction",Rn.compressToEncodedURIComponent(JSON.stringify(pt))),Kt&&L.searchParams.append("allowedWithdrawSpeeds",Kt.join(",")),ve&&(L.searchParams.append("lat",ve.lat.toString()),L.searchParams.append("lng",ve.lng.toString())),Ie&&L.searchParams.append("appReturnUrl",Ie),L.toString()}static getCoinflowIntentsUrl({baseUrl:n,route:r,color:e,theme:u,env:a,origins:f,deviceId:m,merchantCss:d,loaderBackground:_,handleHeightChangeId:N}){const C=new URL(r,n??An.getCoinflowBaseUrl(a));if(f&&C.searchParams.append("origins",Rn.compressToEncodedURIComponent(JSON.stringify(f))),m)C.searchParams.append("deviceId",m);else{const T=_a();T&&C.searchParams.append("deviceId",T)}return d&&C.searchParams.append("merchantCss",d),e&&C.searchParams.append("color",e),_&&C.searchParams.append("loaderBackground",_),N&&C.searchParams.append("useHeightChange",N.toString()),u&&C.searchParams.append("theme",Rn.compressToEncodedURIComponent(JSON.stringify(u))),C.toString()}static getTransaction(n){if(n.blockchain)return this.byBlockchain(n.blockchain,{solana:()=>{if(!("transaction"in n))return;const{transaction:r}=n;if(!zo)throw new Error("@solana/web3.js dependency is required for Solana");if(!_r)throw new Error("bs58 dependency is required for Solana");if(r)return _r.encode(Uint8Array.from(r.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},eth:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},base:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},arbitrum:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.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 Rn.compressToEncodedURIComponent(JSON.stringify(r))},tempo:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.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"tempo":return r.tempo;case"user":return r.user;default:throw new Error("blockchain not supported!")}}}function Km(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}}function Wo({event:t,error:n,env:r,merchantId:e}){const u=n instanceof Error,a=u?n.message:n,f=u?n.stack:"";fetch(`${An.getCoinflowApiUrl(r)}/api/telemetry/frontend-error`,{method:"POST",body:JSON.stringify({message:a,stackTrace:f,merchantId:e,event:t}),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var hi=(t=>(t.SignMessage="signMessage",t.SignTransaction="signTransaction",t.SendTransaction="sendTransaction",t.HeightChange="heightChange",t.Success="success",t.AuthDeclined="authDeclined",t.InputError="inputError",t.InputValid="inputValid",t.Loaded="loaded",t.AccountLinked="accountLinked",t.Redirect="redirect",t.Overlay="overlay",t.UpdateSubtotal="updateSubtotal",t))(hi||{});function Ko(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 yf(t,n,r){let e;try{if(e=JSON.parse(t),!("method"in e)||!("data"in e))return}catch(f){console.error("handleIFrameMessage JSON parse",f);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"inputError":if(!n.onInputError)return;n.onInputError(e.info);return;case"inputValid":if(!n.onInputValid)return;n.onInputValid(e.info);return;case"loaded":return;case"accountLinked":return;case"redirect":window.open(u,"_blank");return;case"overlay":if(!n.handleOverlay)return;n.handleOverlay(u);return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${a} is not one of ${Object.values(hi)}`)}function Zo(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?An.byBlockchain(n,{solana:()=>Zm({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),eth:()=>pi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),polygon:()=>pi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),base:()=>pi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),arbitrum:()=>pi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),stellar:()=>Xm({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),monad:()=>pi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),tempo:()=>pi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),user:()=>$m(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,onInputError:t.onInputError,onInputValid:t.onInputValid}}function Zm({wallet:t,onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}){return{handleSendTransaction:async a=>{const f=wf(a);return await t.sendTransaction(f)},handleSignMessage:async a=>{const f=t.signMessage;if(!f)throw new Error("signMessage is not supported by this wallet");const m=await f(new TextEncoder().encode(a));if(!_r)throw new Error("bs58 dependency is required");return _r.encode(m)},handleSignTransaction:async a=>{const f=t.signTransaction;if(!f)throw new Error("signTransaction is not supported by this wallet");const m=wf(a),d=await f(m);if(!_r)throw new Error("bs58 dependency is required");return _r.encode(Uint8Array.from(d.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}}function wf(t){if(!zo)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!_r)throw new Error("bs58 is not defined. Please install bs58 into your project");const n=_r.decode(t),r=zo.VersionedTransaction.deserialize(n);return r.version==="legacy"?zo.Transaction.from(n):r}function pi({wallet:t,onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}){return{handleSendTransaction:async a=>{const f=JSON.parse(Buffer.from(a,"base64").toString()),{hash:m}=await t.sendTransaction(f);return m},handleSignMessage:async a=>t.signMessage(a),onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}}function Xm({wallet:t,onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}){return{handleSendTransaction:async a=>{throw new Error(`sendTransaction is not supported on stellar, error when sending: ${a}`)},handleSignMessage:async a=>{if(!t.signMessage)throw new Error("signMessage is not supported by this wallet");return await t.signMessage(a)},handleSignTransaction:async a=>{if(!t.signTransaction)throw new Error("signTransaction is not supported by this wallet");return await t.signTransaction(a)},onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}}function $m({onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:e}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:e}}class qm{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 Pi="tokenExCardNumber",vi="tokenExCardCvv",Ef={[$r.VISA]:"visa",[$r.MASTERCARD]:"masterCard",[$r.AMEX]:"americanExpress",[$r.DISCOVER]:"discover"};async function _f(t){const{token:n,origins:r,env:e}=t;return new Promise((u,a)=>{fetch(new An(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 f=>{u(await f.json())}).catch(f=>a(f))})}function ba({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 Jm({iframe:t,setCachedToken:n,setLoaded:r}){const e=async()=>(t.tokenize(),await new Promise((u,a)=>{t.on("tokenize",f=>{n(f.token),u(f)}),t.on("validate",f=>{(!f.isValid||f.isCvvValid===!1)&&a(f)})}));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 bf(t){const{token:n,cardType:r}=t;return await Ra(vi,t,{cvvOnly:!0,cvv:!0,cvvContainerID:vi,placeholder:"CVV",token:n,cardType:Ef[r]})}async function Rf(t){return await Ra(Pi,t,{cvv:!0,cvvContainerID:vi,cvvPlaceholder:"CVV"})}async function Af(t){return await Ra(Pi,t,{cvv:!1})}async function Ra(t,n,r){const{tokenExScriptLoaded:e,css:u,debug:a,font:f,setCachedToken:m,setLoaded:d}=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 _=await _f({...n,token:r.token}),{styles:N}=Qm(u),C={..._,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:N,font:f,debug:a??!1,...r},T=TokenEx.Iframe(t,C);return Jm({iframe:T,setCachedToken:m,setLoaded:d})}function Qm(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}const Sf={"card-number":180,expiration:96,cvv:80},If=8,Fi="3rem",Aa=48,Sa=1,Xo=1,Ia=2,tg={"card-number":"1fr",expiration:"96px",cvv:"80px"},Of={"card-number":"card",expiration:"exp",cvv:"cvv"};function Vi(t,n){return t.includes(n)}function eg(t){const n=t.reduce((e,u)=>e+Sf[u],0),r=Math.max(0,t.length-1)*If;return n+r}function ng({inputs:t,hasIcon:n}){const r=[],e=[],u=(a,f)=>{r.length>0&&(r.push(`d${a.toUpperCase()}`),e.push("1px")),r.push(a),e.push(f)};n&&Vi(t,"card-number")&&u("icon","auto");for(const a of t)u(Of[a],tg[a]);return`"${r.join(" ")}" ${Fi} / ${e.join(" ")}`}function rg({inputs:t,hasIcon:n}){const r=Vi(t,"card-number"),e=Vi(t,"expiration"),u=Vi(t,"cvv");if(!r||!e&&!u)return null;const a=`${Fi} ${Sa}px ${Fi}`;if(e&&u)return{template:Tf(n?'"icon card card card" "dHR dHR dHR dHR" "exp exp dEV cvv"':'"card card card" "dHR dHR dHR" "exp dEV cvv"',a,n?"auto minmax(0, 1fr) 1px minmax(0, 1fr)":"minmax(0, 1fr) 1px minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"},{area:"dEV",orientation:"v"}]};const f=e?"exp":"cvv",m=n?`"icon card" "dHR dHR" "${f} ${f}"`:`"card" "dHR" "${f}"`;return{template:Tf(m,a,n?"auto minmax(0, 1fr)":"minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"}]}}function Tf(t,n,r){const e=t.match(/"[^"]*"/g)??[],u=n.split(/\s+/);return`${e.map((f,m)=>`${f} ${u[m]??""}`.trim()).join(" ")} / ${r}`}function $o({inputs:t,hasIcon:n=!1,allowTwoRow:r=!0}){const e=t.map(m=>Of[m]);if(t.length===1)return{inline:`"${e[0]}" ${Fi} / 1fr`,twoRow:null,breakpointPx:null,fieldAreas:e,hasIconArea:!1,twoRowDividers:[]};const u=n&&Vi(t,"card-number"),a=ng({inputs:t,hasIcon:u}),f=r?rg({inputs:t,hasIcon:u}):null;return{inline:a,twoRow:f?.template??null,breakpointPx:f?eg(t)+2*Xo:null,fieldAreas:e,hasIconArea:u,twoRowDividers:f?.dividers??[]}}function Nf({gridSelector:t,layout:n,containerName:r,extraBaseRules:e="",extraCompactRules:u=""}){const a=`${t} { display: grid; grid-template: ${n.inline}; }
19
- ${e}`;if(!n.twoRow||n.breakpointPx===null)return a;const f=r?`${r} `:"";return`${a}
20
- @container ${f}(width < ${n.breakpointPx}px) {
21
- ${t} { grid-template: ${n.twoRow}; }
22
- ${u}
23
- }`}const Oa={"card-form":["card-number","expiration","cvv"],"card-number-form":["card-number","expiration"],"cvv-form":["cvv"]},qo={"card-form":$o({inputs:Oa["card-form"]}),"card-number-form":$o({inputs:Oa["card-number-form"]}),"cvv-form":$o({inputs:Oa["cvv-form"]})},xf=2*Xo+2*Ia,Ta=Aa+xf,Cf=2*Aa+Sa+xf;function Na(t){return{inline:t.inline,compact:t.twoRow??void 0,compactMaxWidthPx:t.breakpointPx??void 0,areas:t.fieldAreas}}const Jo={"card-form":Na(qo["card-form"]),"card-number-form":Na(qo["card-number-form"]),"cvv-form":Na(qo["cvv-form"])},xa="coinflow-card-form-skeleton-pulse",Lf=300;function Ca({variant:t,width:n}){const{compact:r,compactMaxWidthPx:e}=Jo[t];return r!==void 0&&e!==void 0&&n>0&&n<e}function Bf({variant:t,width:n}){return Ca({variant:t,width:n})?Cf:Ta}function Mf({variant:t,width:n}){const{inline:r,compact:e}=Jo[t];return e&&Ca({variant:t,width:n})?e:r}function kf(t){return`coinflow-card-form-skeleton-grid--${t}`}function ig(t){const n=kf(t),r=Nf({gridSelector:`.${n}`,layout:qo[t],extraBaseRules:`.${n} { gap: 0; flex: 1; }`});return`@keyframes ${xa} {0%,100%{opacity:1}50%{opacity:0.4}}
24
- ${r}`}const Df=Ia+Xo,Uf={minWidth:"0",margin:"1px",borderRadius:"4px",opacity:"1",animation:`${xa} 1.5s ease-in-out infinite`},og={backdrop:"rgba(255, 255, 255, 0.05)",box:"rgba(255, 255, 255, 0.30)"},sg={backdrop:"rgba(0, 0, 0, 0.04)",box:"rgba(0, 0, 0, 0.30)"},ag={backdrop:"rgba(128, 128, 128, 0.08)",box:"rgba(128, 128, 128, 0.38)"};function ug(t){const n=t.trim().toLowerCase();let r=n.startsWith("#")?n.slice(1):"";if(r&&/^[0-9a-f]+$/.test(r)&&(r.length===3&&(r=r.split("").map(u=>u+u).join("")),r.length===8&&(r=r.slice(0,6)),r.length===6))return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)];const e=n.match(/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/);return e?[Number(e[1]),Number(e[2]),Number(e[3])]:null}function Pf(t){const n=t?.background?ug(t.background):null;if(!n)return ag;const[r,e,u]=n;return(.299*r+.587*e+.114*u)/255<.5?og:sg}const Hi={cardNumber:"Card number is invalid. Please double check information.",expiration:"Expiration is invalid. Please double check information.",cvv:"CVV is invalid. Please double check information.",cvvEmpty:"Please enter your CVV to proceed."};function cg({cardError:t,expirationError:n,cvvError:r,cvvEmpty:e,isCvvOnly:u}){return t?{field:"card-number",message:Hi.cardNumber}:n?{field:"expiration",message:Hi.expiration}:r?u&&e?{field:"cvv",message:Hi.cvvEmpty}:{field:"cvv",message:Hi.cvv}:null}function fg({previous:t,current:n}){return n?t?t.field===n.field?t.message===n.message?[]:[{kind:"error",info:n}]:[{kind:"valid",info:{field:t.field}},{kind:"error",info:n}]:[{kind:"error",info:n}]:t?[{kind:"valid",info:{field:t.field}}]:[]}Vt.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={}))})(Vt.nftCartItem||(Vt.nftCartItem={}));let La=null;async function lg({merchantId:t,env:n}){if(!La&&typeof window<"u")try{const r=await window.Verisoul?.session();r?.session_id&&(La=r.session_id)}catch(r){console.error(r),Wo({event:"ProtectionInit",env:n,merchantId:t,error:r})}}function dg(){return La}const hg="forterToken",pg=1024,vg=/[\x00-\x1F\x7F]/;let Qo=null,Ff=!1,Ba=!1;function Ma(t){if(!t)return null;let n=t;try{n=decodeURIComponent(t)}catch{}return!n||n.length>pg||vg.test(n)?null:n}function Vf(){if(typeof document>"u"||!document.cookie)return null;let t=null;for(const n of document.cookie.split(";")){const r=n.indexOf("=");if(r===-1)continue;const e=n.slice(0,r).trim(),u=n.slice(r+1);if(e===hg)return u;const a=e.toLowerCase();a.includes("forter")&&a.includes("token")&&(t=u)}return t}function Gi(){return Qo??Ma(Vf())}const mg="ftr:tokenReady";function gg(t){const n=t.detail,r=typeof n=="string"?Ma(n):null;r&&(Qo=r,Ff=!0)}function yg({timeoutMs:t=15e3,intervalMs:n=250}={}){if(typeof window>"u"||(typeof document<"u"&&document.addEventListener(mg,gg),Ba))return;Ba=!0;const r=Date.now(),e=()=>{if(!Ff){const u=Ma(Vf());u&&(Qo=u)}if(Date.now()-r>=t){Ba=!1,Qo||wg();return}window.setTimeout(e,n)};e()}function wg(){if(typeof document>"u")return;const t=(document.cookie||"").split(";").map(r=>r.split("=")[0].trim()).filter(Boolean),n=typeof window<"u"?Object.keys(window).filter(r=>/ftr|forter/i.test(r)):[];console.warn("[forter] token never surfaced after init.","cookieNames:",t,"forterGlobals:",n)}async function Eg({timeoutMs:t=2e3,intervalMs:n=100}={}){const r=Gi();return r||(typeof window>"u"?null:new Promise(e=>{const u=Date.now(),a=()=>{const f=Gi();if(f)return e(f);if(Date.now()-u>=t)return e(Gi());window.setTimeout(a,n)};window.setTimeout(a,n)}))}const Hf="x-device-id",Gf="x-session-id",jf="x-coinflow-referrer",Yf="x-forter-token";function zf(){return{[Hf]:_a(),[Gf]:dg(),[Yf]:Gi()}}function _g(){try{return document.referrer||null}catch{return null}}function bg(){return{...zf(),[jf]:_g()}}const Rg="9JBW2RHC7JNJN8ZQ",Wf={prod:"315da543-c486-435a-aa21-53844c469822",sandbox:"e9f629c4-80ee-4c6d-967e-62af47d8679e"};async function Kf({coinflowEnv:t,merchantId:n}){const r=t==="prod"?"prod":"sandbox";if(!(typeof window<"u"&&new URLSearchParams(window.location.search).has("deviceId"))){const u=await new An(t).getNSurePartnerId(n);if(u){const a=Rg;try{Ea.init(a,u)}catch(f){console.error("Failed to initialize nSure SDK:",f),Wo({event:"NSureInit",error:f,env:t,merchantId:n})}}}if(typeof document<"u"&&!document.querySelector("script[verisoul-project-id]")){const a=Wf[r]??Wf.sandbox;a&&await new Promise(f=>{const m=document.createElement("script");m.src=`https://js.v.coinflow.sh/${r}/bundle.js`,m.async=!0,m.setAttribute("verisoul-project-id",a),m.onload=()=>{lg({merchantId:n,env:t}).then(f)},m.onerror=d=>{Wo({event:"ProtectionError",error:d,env:t,merchantId:n}),f()},document.head.appendChild(m)})}}function Ag(t){return JSON.stringify(t)}function Sg(t){if(!t)return null;try{const n=JSON.parse(t);return typeof n?.token!="string"||!n.token?null:{token:n.token,country:typeof n.country=="string"?n.country:void 0}}catch{return{token:t}}}function Ig({cached:t,country:n}){return t?n?t.country===n:!0:!1}const Og=Ut.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return An.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}){const r=new URL(An.getCoinflowBaseUrl(this.args.env)).origin;if(n!==r||typeof t!="string")return;this.$emit("onMessage",{data:t,origin:n});const e=yf(t,this.args,this.args.handleHeightChangeId);e&&e.then(this.sendMessage).catch(u=>{console.error(u),this.sendMessage("ERROR "+u.message)})},async listenForMessage(t){let n;return new Promise((r,e)=>{if(n=({data:u,origin:a})=>{const f=new URL(An.getCoinflowBaseUrl(this.args.env)).origin;if(a===f&&typeof u=="string"){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)}}}),ka=(t,n)=>{const r=t.__vccOpts||t;for(const[e,u]of n)r[e]=u;return r},Tg=["src","scrolling"];function Ng(t,n,r,e,u,a){return Ut.openBlock(),Ut.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write;geolocation",title:"withdraw",frameBorder:"0",src:t.url,scrolling:t.args.handleHeightChange?"no":"yes",onLoad:n[0]||(n[0]=()=>{const f=t.$refs.iframeRef;f&&(f.style.opacity="1")})},null,40,Tg)}const ts=ka(Og,[["render",Ng]]),xg=Ut.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:ts},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=Ko(this.args);return{...this.args,walletPubkey:t,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...Zo(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Cg(t,n,r,e,u,a){const f=Ut.resolveComponent("coinflow-i-frame");return Ut.openBlock(),Ut.createBlock(f,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const Lg=ka(xg,[["render",Cg]]),Bg=Ut.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:ts},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=Ko(this.args);return{...this.args,walletPubkey:t,route:`/purchase-v2/${this.args.merchantId}`,transaction:An.getTransaction(this.args)}},messageHandlers(){return{...Zo(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Mg(t,n,r,e,u,a){const f=Ut.resolveComponent("coinflow-i-frame");return Ut.openBlock(),Ut.createBlock(f,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const kg=ka(Bg,[["render",Mg]]),Da=t=>{const n=Ut.ref(!1),r=Ut.ref(!1),e=Ut.ref(void 0),u=Ut.ref(void 0);Ut.onMounted(()=>{ba({env:t.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),r.value=!0}})});const a=C=>u.value=C,f=()=>n.value=!0,m=C=>e.value=C,d=async C=>{const T=await bf({...t,...C,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:f});return m(T),T},_=async C=>{const T=await Rf({...t,...C,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:f});return m(T),T},N=async C=>{const T=await Af({...t,...C,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:f});return m(T),T};return Ut.watchEffect(C=>{e.value&&(e.value.load(),C(()=>e.value?.remove()))}),{tokenExIframe:e,initializeTokenExIframe:_,initializeCvvOnlyTokenExIframe:d,initializeTokenExCardOnlyIframe:N,loaded:n,cachedToken:u,setTokenExScriptTag:ba,tokenExScriptLoaded:r}},Dg=["id"],Zf=Ut.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeTokenExIframe:r,tokenExIframe:e}=Da(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 Ut.watchEffect(()=>{r({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(f,m)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(Pi)},null,8,Dg))}}),Ug=["id"],Xf=Ut.defineComponent({__name:"CoinflowCvvInput",setup(t){return(n,r)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(vi)},null,8,Ug))}}),Pg=["id"],$f=Ut.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeCvvOnlyTokenExIframe:r,tokenExIframe:e}=Da(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 Ut.watchEffect(()=>{r({...t.args,origins:t.args.origins??[],css:a(),font:t.args.font})},{}),(f,m)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(vi)},null,8,Pg))}}),Fg=Ut.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(t){return Ut.onMounted(()=>{Kf({coinflowEnv:t.args.env,merchantId:t.args.merchantId})}),(n,r)=>null}}),Vg=["id"],qf=Ut.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{tokenExIframe:r,initializeTokenExCardOnlyIframe:e}=Da(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 Ut.watchEffect(()=>{e({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(f,m)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(Pi)},null,8,Vg))}}),Hg=["src"],Jf=Ut.defineComponent({__name:"CoinflowCardFormV2",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const r=Ut.ref(null),e=Ut.ref(null),u=Ut.ref(!1),a=Ut.ref(null),f=Jo[t.args.variant],m=f.areas,d=Ut.ref(Ta),_=Ut.ref(f.inline),N=Ut.ref(!0),C=Ut.computed(()=>u.value&&a.value?`${a.value}px`:`${d.value}px`),T=Ut.computed(()=>Pf(t.args.theme));function x(Z){return{...Uf,background:T.value.box,gridArea:Z}}const k=Ut.computed(()=>{const Z=An.getCoinflowBaseUrl(t.args.env),et=new URL(`/form/v2/${t.args.variant}`,Z);return et.searchParams.append("merchantId",t.args.merchantId),et.searchParams.append("useHeightChange","true"),t.args.theme&&et.searchParams.append("theme",Rn.compressToEncodedURIComponent(JSON.stringify(t.args.theme))),t.args.token&&et.searchParams.append("token",t.args.token),et.toString()});function U(Z){const{data:et,origin:ht,source:ut}=Z;if(ut!==r.value?.contentWindow)return;const At=new URL(An.getCoinflowBaseUrl(t.args.env)).origin;if(ht===At)try{const Rt=JSON.parse(et);if(Rt.method===hi.Loaded)u.value=!0,t.args.onLoad?.();else if(Rt.method===hi.HeightChange){const st=Number(Rt.data);Number.isFinite(st)&&st>0&&(a.value=st)}}catch{}}function Y(Z){Z.propertyName==="opacity"&&u.value&&(N.value=!1)}Ut.watch(u,(Z,et,ht)=>{if(!Z)return;const ut=setTimeout(()=>N.value=!1,Lf);ht(()=>clearTimeout(ut))});let z=null;Ut.onMounted(()=>{window.addEventListener("message",U);const Z=e.value;if(!Z||!f.compact)return;const et=()=>{const ht=Z.clientWidth;d.value=Bf({variant:t.args.variant,width:ht}),_.value=Mf({variant:t.args.variant,width:ht})};et(),z=new ResizeObserver(et),z.observe(Z)}),Ut.onUnmounted(()=>{window.removeEventListener("message",U),z?.disconnect()});async function J(){return new Promise((Z,et)=>{if(!r.value?.contentWindow){et(new Error("Card form iframe not loaded"));return}const ht=({data:At,origin:Rt})=>{const st=new URL(An.getCoinflowBaseUrl(t.args.env)).origin;if(Rt===st)try{const ft=JSON.parse(At);if(ft.method!=="tokenize")return;if(window.removeEventListener("message",ht),typeof ft.data=="string"&&ft.data.startsWith("ERROR")){et(new Error(ft.data.replace("ERROR ","")));return}const gt=typeof ft.data=="string"?JSON.parse(ft.data):ft.data;Z(gt)}catch{}};window.addEventListener("message",ht);const ut=new URL(An.getCoinflowBaseUrl(t.args.env)).origin;r.value.contentWindow.postMessage("tokenize",ut)})}return n({tokenize:J}),(Z,et)=>(Ut.openBlock(),Ut.createElementBlock("div",{ref_key:"wrapperRef",ref:e,style:Ut.normalizeStyle({position:"relative",width:"100%",height:C.value})},[N.value?(Ut.openBlock(),Ut.createElementBlock("div",{key:0,role:"status","aria-label":"Loading card form",onTransitionend:Y,style:Ut.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",pointerEvents:"none",flexDirection:"column",gap:"8px",padding:`${Ut.unref(Df)}px`,boxSizing:"border-box",borderRadius:"8px",background:T.value.backdrop,opacity:u.value?"0%":"100%",transition:"opacity 300ms linear, height 150ms ease-out"})},[Ut.createElementVNode("div",{style:Ut.normalizeStyle({display:"grid",gap:0,flex:1,width:"100%",gridTemplate:_.value})},[(Ut.openBlock(!0),Ut.createElementBlock(Ut.Fragment,null,Ut.renderList(Ut.unref(m),ht=>(Ut.openBlock(),Ut.createElementBlock("div",{key:ht,style:Ut.normalizeStyle(x(ht))},null,4))),128))],4)],36)):Ut.createCommentVNode("",!0),Ut.createElementVNode("iframe",{ref_key:"iframeRef",ref:r,src:k.value,title:"Card Form",frameBorder:"0",allow:"payment",style:Ut.normalizeStyle({width:"100%",height:C.value,border:"none",opacity:u.value?1:0,transition:"opacity 300ms linear, height 150ms ease-out"})},null,12,Hg)],4))}}),Gg={style:{position:"relative",height:"100%"}},jg={style:{position:"relative",zIndex:10,height:"100%"}},Qf=Ut.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,r=t.args.subtotal;function e(){const T=Ko(t.args);return{...t.args,subtotal:r,walletPubkey:T,transaction:void 0,routePrefix:"form",route:`/${t.route}/${t.args.merchantId}`}}function u(){return{...Zo(t.args),handleHeightChange:t.args.handleHeightChange}}const a=Ut.ref(.8),f=Ut.ref("flex"),m=Math.random().toString(16).substring(2),d=Ut.ref(null),_=Ut.ref(!1);let N=JSON.stringify(r);Ut.watch([_,()=>t.args.subtotal],([T,x])=>{if(!T||!x)return;const k=JSON.stringify(x);N!==k&&(N=k,d.value?.sendMessage(`${hi.UpdateSubtotal}:${k}`))});function C({data:T}){try{const x=JSON.parse(T);if("method"in x&&x.method==="loaded"&&(a.value=1,f.value="none",_.value=!0),"method"in x&&typeof x.data=="string"&&x.data.startsWith("ERROR"))return t.args?.onError?.(x.info),!1;if(!("method"in x)||x.method!=="getToken")return}catch{return}n?.(T)}return(T,x)=>(Ut.openBlock(),Ut.createElementBlock("div",Gg,[Ut.createElementVNode("div",{style:Ut.normalizeStyle({backgroundColor:t.args.color,display:t.overlayDisplayOverride??f.value,opacity:a.value,alignItems:t.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[Ut.renderSlot(T.$slots,"default")],4),Ut.createElementVNode("div",jg,[Ut.createVNode(ts,{ref_key:"iframeRef",ref:d,onOnMessage:C,args:{...e(),...u(),handleHeightChangeId:Ut.unref(m)}},null,8,["args"])])]))}}),Yg={id:"svg-logo",viewBox:"0 0 35 15"},zg={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"},Wg={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Kg=["fill"],Zg=Ut.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(t){const n=t.color==="white"?"#000":"#FFF";return(r,e)=>(Ut.openBlock(),Ut.createElementBlock("svg",Yg,[(Ut.openBlock(),Ut.createElementBlock("svg",zg,[e[1]||(e[1]=Ut.createElementVNode("title",null,"Apple Logo",-1)),Ut.createElementVNode("g",Wg,[Ut.createElementVNode("g",{fill:Ut.unref(n)},[...e[0]||(e[0]=[Ut.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,Kg)])]))]))}}),Xg=Ut.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Ut.openBlock(),Ut.createBlock(Qf,{route:"apple-pay",args:t.args},{default:Ut.withCtx(()=>[Ut.createVNode(Zg,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}}),$g={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},qg={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Jg=Ut.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(t){return(n,r)=>(Ut.openBlock(),Ut.createElementBlock(Ut.Fragment,null,[t.color==="white"?(Ut.openBlock(),Ut.createElementBlock("svg",$g,[...r[0]||(r[0]=[Ut.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)])])):Ut.createCommentVNode("",!0),t.color==="black"?(Ut.openBlock(),Ut.createElementBlock("svg",qg,[...r[1]||(r[1]=[Ut.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)])])):Ut.createCommentVNode("",!0)],64))}}),Qg=Ut.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Ut.openBlock(),Ut.createBlock(Qf,{route:"google-pay",args:t.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:Ut.withCtx(()=>[Ut.createVNode(Jg,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}}),t4=Jf,e4=Zf,n4=Xf,r4=$f,i4=qf;Vt.BankingCurrencies=mf,Vt.CARD_ENTRY_BORDER_PX=Xo,Vt.CARD_ENTRY_DIVIDER_PX=Sa,Vt.CARD_ENTRY_MARGIN_PX=Ia,Vt.CARD_ENTRY_MIN_WIDTHS=Sf,Vt.CARD_ENTRY_ROW_HEIGHT=Fi,Vt.CARD_ENTRY_ROW_HEIGHT_PX=Aa,Vt.CARD_ENTRY_SLOT_GAP_PX=If,Vt.CARD_FIELD_ERROR_MESSAGES=Hi,Vt.CARD_TYPE_MAPPING=Ef,Vt.COMPACT_SKELETON_HEIGHT_PX=Cf,Vt.CardType=$r,Vt.ChargebackProtectionAccountType=gu,Vt.CoinflowApplePayButton=Xg,Vt.CoinflowCardForm=t4,Vt.CoinflowCardFormV2=Jf,Vt.CoinflowCardNumberInput=Zf,Vt.CoinflowCardNumberOnlyInput=qf,Vt.CoinflowCvvInput=Xf,Vt.CoinflowCvvOnlyInput=$f,Vt.CoinflowGooglePayButton=Qg,Vt.CoinflowIframe=ts,Vt.CoinflowLegacyCardNumberInput=e4,Vt.CoinflowLegacyCardNumberOnlyInput=i4,Vt.CoinflowLegacyCvvInput=n4,Vt.CoinflowLegacyCvvOnlyInput=r4,Vt.CoinflowPurchase=kg,Vt.CoinflowPurchaseProtection=Fg,Vt.CoinflowUtils=An,Vt.CoinflowWithdraw=Lg,Vt.Currency=wa,Vt.CurrencyToISO4217=Dm,Vt.DEVICE_ID_HEADER=Hf,Vt.EventBus=qm,Vt.FORTER_TOKEN_HEADER=Yf,Vt.IFrameMessageMethods=hi,Vt.INLINE_SKELETON_HEIGHT_PX=Ta,Vt.MerchantStyle=mu,Vt.PaymentMethods=wu,Vt.REFERRER_HEADER=jf,Vt.RN_REDIRECT_MESSAGE_NAME=Od,Vt.SESSION_ID_HEADER=Gf,Vt.SKELETON_BOX_STYLE=Uf,Vt.SKELETON_FADE_MS=Lf,Vt.SKELETON_LAYOUTS=Jo,Vt.SKELETON_PULSE_ANIMATION_NAME=xa,Vt.SKELETON_ROOT_PADDING_PX=Df,Vt.SettlementType=vu,Vt.ThreeDsChallengePreference=yu,Vt.TokenExCardNumberIframeId=Pi,Vt.TokenExCvvContainerID=vi,Vt.WithdrawCategory=hu,Vt.WithdrawCurrencies=vf,Vt.WithdrawSpeed=pu,Vt.awaitForterToken=Eg,Vt.buildCardEntryGridCss=Nf,Vt.buildCardEntryLayout=$o,Vt.buildSkeletonCss=ig,Vt.canReuseLinkToken=Ig,Vt.captureForterToken=yg,Vt.doInitializeCvvOnlyTokenExIframe=bf,Vt.doInitializeTokenExCardOnlyIframe=Af,Vt.doInitializeTokenExIframe=Rf,Vt.getCardFieldInputEvents=fg,Vt.getCardFieldValidationError=cg,Vt.getCoinflowProtectionHeaders=zf,Vt.getCoinflowPurchaseHeaders=bg,Vt.getCurrencyDecimals=Gm,Vt.getCustomerName=Km,Vt.getForterToken=Gi,Vt.getHandlers=Zo,Vt.getIframeConfig=_f,Vt.getSkeletonColors=Pf,Vt.getSkeletonGridClass=kf,Vt.getSkeletonGridTemplate=Mf,Vt.getWalletPubkey=Ko,Vt.guessSkeletonHeightPx=Bf,Vt.handleIFrameMessage=yf,Vt.initCoinflowProtection=Kf,Vt.invertRate=Ym,Vt.isBankingCurrency=Pm,Vt.isTypedCurrencyCents=jm,Vt.isWithdrawCurrency=Um,Vt.isZeroAuthSavedPaymentMethods=Sd,Vt.isZeroAuthVerifyCard=Ad,Vt.parseCachedLinkToken=Sg,Vt.paymentMethodLabels=Id,Vt.recordFrontendError=Wo,Vt.serializeCachedLinkToken=Ag,Vt.setTokenExScriptTag=ba,Vt.shouldStackSkeleton=Ca,Object.defineProperty(Vt,Symbol.toStringTag,{value:"Module"})}));
16
+ timeBetweenLoadAndGet: `).concat(Se-Q,`
17
+ visitorId: `).concat(Pe.visitorId,`
18
+ components: `).concat(Qe(Ne),"\n```")),[2,Pe]}}))}))}}}function q(L){var re=L===void 0?{}:L,Q=re.delayFallback,we=re.debug,Se=re.monitoring,Ne=Se===void 0||Se;return c(this,void 0,void 0,(function(){return i(this,(function(Pe){switch(Pe.label){case 0:return Ne&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Ge=new XMLHttpRequest;Ge.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(v,"/npm-monitoring"),!0),Ge.send()}catch(ce){console.error(ce)}})(),[4,E(Q)];case 1:return Pe.sent(),[2,b(de(Me,{debug:we},[]),we)]}}))}))}var ve={load:q,hashComponents:F,componentsToDebugString:Qe},be=W},526:function(e,t){t.byteLength=function(y){var A=v(y),O=A[0],S=A[1];return 3*(O+S)/4-S},t.toByteArray=function(y){var A,O,S=v(y),I=S[0],k=S[1],C=new c((function(J,W,se){return 3*(W+se)/4-se})(0,I,k)),V=0,j=k>0?I-4:I;for(O=0;O<j;O+=4)A=r[y.charCodeAt(O)]<<18|r[y.charCodeAt(O+1)]<<12|r[y.charCodeAt(O+2)]<<6|r[y.charCodeAt(O+3)],C[V++]=A>>16&255,C[V++]=A>>8&255,C[V++]=255&A;return k===2&&(A=r[y.charCodeAt(O)]<<2|r[y.charCodeAt(O+1)]>>4,C[V++]=255&A),k===1&&(A=r[y.charCodeAt(O)]<<10|r[y.charCodeAt(O+1)]<<4|r[y.charCodeAt(O+2)]>>2,C[V++]=A>>8&255,C[V++]=255&A),C},t.fromByteArray=function(y){for(var A,O=y.length,S=O%3,I=[],k=16383,C=0,V=O-S;C<V;C+=k)I.push(d(y,C,C+k>V?V:C+k));return S===1?(A=y[O-1],I.push(n[A>>2]+n[A<<4&63]+"==")):S===2&&(A=(y[O-2]<<8)+y[O-1],I.push(n[A>>10]+n[A>>4&63]+n[A<<2&63]+"=")),I.join("")};for(var n=[],r=[],c=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0;l<64;++l)n[l]=i[l],r[i.charCodeAt(l)]=l;function v(y){var A=y.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=y.indexOf("=");return O===-1&&(O=A),[O,O===A?0:4-O%4]}function d(y,A,O){for(var S,I,k=[],C=A;C<O;C+=3)S=(y[C]<<16&16711680)+(y[C+1]<<8&65280)+(255&y[C+2]),k.push(n[(I=S)>>18&63]+n[I>>12&63]+n[I>>6&63]+n[63&I]);return k.join("")}r[45]=62,r[95]=63},287:function(e,t,n){const r=n(526),c=n(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=d,t.IS=50;const l=2147483647;function v(w){if(w>l)throw new RangeError('The value "'+w+'" is invalid for option "size"');const x=new Uint8Array(w);return Object.setPrototypeOf(x,d.prototype),x}function d(w,x,M){if(typeof w=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(w)}return y(w,x,M)}function y(w,x,M){if(typeof w=="string")return(function(pe,Me){if(typeof Me=="string"&&Me!==""||(Me="utf8"),!d.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me);const tt=0|C(pe,Me);let Qe=v(tt);const F=Qe.write(pe,Me);return F!==tt&&(Qe=Qe.slice(0,F)),Qe})(w,x);if(ArrayBuffer.isView(w))return(function(pe){if(Et(pe,Uint8Array)){const Me=new Uint8Array(pe);return I(Me.buffer,Me.byteOffset,Me.byteLength)}return S(pe)})(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(Et(w,ArrayBuffer)||w&&Et(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Et(w,SharedArrayBuffer)||w&&Et(w.buffer,SharedArrayBuffer)))return I(w,x,M);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const te=w.valueOf&&w.valueOf();if(te!=null&&te!==w)return d.from(te,x,M);const fe=(function(pe){if(d.isBuffer(pe)){const Me=0|k(pe.length),tt=v(Me);return tt.length===0||pe.copy(tt,0,0,Me),tt}return pe.length!==void 0?typeof pe.length!="number"||pt(pe.length)?v(0):S(pe):pe.type==="Buffer"&&Array.isArray(pe.data)?S(pe.data):void 0})(w);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return d.from(w[Symbol.toPrimitive]("string"),x,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}function A(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function O(w){return A(w),v(w<0?0:0|k(w))}function S(w){const x=w.length<0?0:0|k(w.length),M=v(x);for(let te=0;te<x;te+=1)M[te]=255&w[te];return M}function I(w,x,M){if(x<0||w.byteLength<x)throw new RangeError('"offset" is outside of buffer bounds');if(w.byteLength<x+(M||0))throw new RangeError('"length" is outside of buffer bounds');let te;return te=x===void 0&&M===void 0?new Uint8Array(w):M===void 0?new Uint8Array(w,x):new Uint8Array(w,x,M),Object.setPrototypeOf(te,d.prototype),te}function k(w){if(w>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|w}function C(w,x){if(d.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||Et(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);const M=w.length,te=arguments.length>2&&arguments[2]===!0;if(!te&&M===0)return 0;let fe=!1;for(;;)switch(x){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return st(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*M;case"hex":return M>>>1;case"base64":return at(w).length;default:if(fe)return te?-1:st(w).length;x=(""+x).toLowerCase(),fe=!0}}function V(w,x,M){let te=!1;if((x===void 0||x<0)&&(x=0),x>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0)<=(x>>>=0))return"";for(w||(w="utf8");;)switch(w){case"hex":return f(this,x,M);case"utf8":case"utf-8":return ie(this,x,M);case"ascii":return ge(this,x,M);case"latin1":case"binary":return D(this,x,M);case"base64":return ne(this,x,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,x,M);default:if(te)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),te=!0}}function j(w,x,M){const te=w[x];w[x]=w[M],w[M]=te}function J(w,x,M,te,fe){if(w.length===0)return-1;if(typeof M=="string"?(te=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),pt(M=+M)&&(M=fe?0:w.length-1),M<0&&(M=w.length+M),M>=w.length){if(fe)return-1;M=w.length-1}else if(M<0){if(!fe)return-1;M=0}if(typeof x=="string"&&(x=d.from(x,te)),d.isBuffer(x))return x.length===0?-1:W(w,x,M,te,fe);if(typeof x=="number")return x&=255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(w,x,M):Uint8Array.prototype.lastIndexOf.call(w,x,M):W(w,[x],M,te,fe);throw new TypeError("val must be string, number or Buffer")}function W(w,x,M,te,fe){let pe,Me=1,tt=w.length,Qe=x.length;if(te!==void 0&&((te=String(te).toLowerCase())==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(w.length<2||x.length<2)return-1;Me=2,tt/=2,Qe/=2,M/=2}function F(E,b){return Me===1?E[b]:E.readUInt16BE(b*Me)}if(fe){let E=-1;for(pe=M;pe<tt;pe++)if(F(w,pe)===F(x,E===-1?0:pe-E)){if(E===-1&&(E=pe),pe-E+1===Qe)return E*Me}else E!==-1&&(pe-=pe-E),E=-1}else for(M+Qe>tt&&(M=tt-Qe),pe=M;pe>=0;pe--){let E=!0;for(let b=0;b<Qe;b++)if(F(w,pe+b)!==F(x,b)){E=!1;break}if(E)return pe}return-1}function se(w,x,M,te){M=Number(M)||0;const fe=w.length-M;te?(te=Number(te))>fe&&(te=fe):te=fe;const pe=x.length;let Me;for(te>pe/2&&(te=pe/2),Me=0;Me<te;++Me){const tt=parseInt(x.substr(2*Me,2),16);if(pt(tt))return Me;w[M+Me]=tt}return Me}function ue(w,x,M,te){return ct(st(x,w.length-M),w,M,te)}function oe(w,x,M,te){return ct((function(fe){const pe=[];for(let Me=0;Me<fe.length;++Me)pe.push(255&fe.charCodeAt(Me));return pe})(x),w,M,te)}function Ee(w,x,M,te){return ct(at(x),w,M,te)}function Re(w,x,M,te){return ct((function(fe,pe){let Me,tt,Qe;const F=[];for(let E=0;E<fe.length&&!((pe-=2)<0);++E)Me=fe.charCodeAt(E),tt=Me>>8,Qe=Me%256,F.push(Qe),F.push(tt);return F})(x,w.length-M),w,M,te)}function ne(w,x,M){return x===0&&M===w.length?r.fromByteArray(w):r.fromByteArray(w.slice(x,M))}function ie(w,x,M){M=Math.min(w.length,M);const te=[];let fe=x;for(;fe<M;){const pe=w[fe];let Me=null,tt=pe>239?4:pe>223?3:pe>191?2:1;if(fe+tt<=M){let Qe,F,E,b;switch(tt){case 1:pe<128&&(Me=pe);break;case 2:Qe=w[fe+1],(192&Qe)==128&&(b=(31&pe)<<6|63&Qe,b>127&&(Me=b));break;case 3:Qe=w[fe+1],F=w[fe+2],(192&Qe)==128&&(192&F)==128&&(b=(15&pe)<<12|(63&Qe)<<6|63&F,b>2047&&(b<55296||b>57343)&&(Me=b));break;case 4:Qe=w[fe+1],F=w[fe+2],E=w[fe+3],(192&Qe)==128&&(192&F)==128&&(192&E)==128&&(b=(15&pe)<<18|(63&Qe)<<12|(63&F)<<6|63&E,b>65535&&b<1114112&&(Me=b))}}Me===null?(Me=65533,tt=1):Me>65535&&(Me-=65536,te.push(Me>>>10&1023|55296),Me=56320|1023&Me),te.push(Me),fe+=tt}return(function(pe){const Me=pe.length;if(Me<=de)return String.fromCharCode.apply(String,pe);let tt="",Qe=0;for(;Qe<Me;)tt+=String.fromCharCode.apply(String,pe.slice(Qe,Qe+=de));return tt})(te)}d.TYPED_ARRAY_SUPPORT=(function(){try{const w=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(w,x),w.foo()===42}catch{return!1}})(),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."),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}}),d.poolSize=8192,d.from=function(w,x,M){return y(w,x,M)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(w,x,M){return(function(te,fe,pe){return A(te),te<=0?v(te):fe!==void 0?typeof pe=="string"?v(te).fill(fe,pe):v(te).fill(fe):v(te)})(w,x,M)},d.allocUnsafe=function(w){return O(w)},d.allocUnsafeSlow=function(w){return O(w)},d.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==d.prototype},d.compare=function(w,x){if(Et(w,Uint8Array)&&(w=d.from(w,w.offset,w.byteLength)),Et(x,Uint8Array)&&(x=d.from(x,x.offset,x.byteLength)),!d.isBuffer(w)||!d.isBuffer(x))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===x)return 0;let M=w.length,te=x.length;for(let fe=0,pe=Math.min(M,te);fe<pe;++fe)if(w[fe]!==x[fe]){M=w[fe],te=x[fe];break}return M<te?-1:te<M?1:0},d.isEncoding=function(w){switch(String(w).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(w,x){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return d.alloc(0);let M;if(x===void 0)for(x=0,M=0;M<w.length;++M)x+=w[M].length;const te=d.allocUnsafe(x);let fe=0;for(M=0;M<w.length;++M){let pe=w[M];if(Et(pe,Uint8Array))fe+pe.length>te.length?(d.isBuffer(pe)||(pe=d.from(pe)),pe.copy(te,fe)):Uint8Array.prototype.set.call(te,pe,fe);else{if(!d.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(te,fe)}fe+=pe.length}return te},d.byteLength=C,d.prototype._isBuffer=!0,d.prototype.swap16=function(){const w=this.length;if(w%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let x=0;x<w;x+=2)j(this,x,x+1);return this},d.prototype.swap32=function(){const w=this.length;if(w%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let x=0;x<w;x+=4)j(this,x,x+3),j(this,x+1,x+2);return this},d.prototype.swap64=function(){const w=this.length;if(w%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let x=0;x<w;x+=8)j(this,x,x+7),j(this,x+1,x+6),j(this,x+2,x+5),j(this,x+3,x+4);return this},d.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ie(this,0,w):V.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(w){if(!d.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w||d.compare(this,w)===0},d.prototype.inspect=function(){let w="";const x=t.IS;return w=this.toString("hex",0,x).replace(/(.{2})/g,"$1 ").trim(),this.length>x&&(w+=" ... "),"<Buffer "+w+">"},i&&(d.prototype[i]=d.prototype.inspect),d.prototype.compare=function(w,x,M,te,fe){if(Et(w,Uint8Array)&&(w=d.from(w,w.offset,w.byteLength)),!d.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(x===void 0&&(x=0),M===void 0&&(M=w?w.length:0),te===void 0&&(te=0),fe===void 0&&(fe=this.length),x<0||M>w.length||te<0||fe>this.length)throw new RangeError("out of range index");if(te>=fe&&x>=M)return 0;if(te>=fe)return-1;if(x>=M)return 1;if(this===w)return 0;let pe=(fe>>>=0)-(te>>>=0),Me=(M>>>=0)-(x>>>=0);const tt=Math.min(pe,Me),Qe=this.slice(te,fe),F=w.slice(x,M);for(let E=0;E<tt;++E)if(Qe[E]!==F[E]){pe=Qe[E],Me=F[E];break}return pe<Me?-1:Me<pe?1:0},d.prototype.includes=function(w,x,M){return this.indexOf(w,x,M)!==-1},d.prototype.indexOf=function(w,x,M){return J(this,w,x,M,!0)},d.prototype.lastIndexOf=function(w,x,M){return J(this,w,x,M,!1)},d.prototype.write=function(w,x,M,te){if(x===void 0)te="utf8",M=this.length,x=0;else if(M===void 0&&typeof x=="string")te=x,M=this.length,x=0;else{if(!isFinite(x))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");x>>>=0,isFinite(M)?(M>>>=0,te===void 0&&(te="utf8")):(te=M,M=void 0)}const fe=this.length-x;if((M===void 0||M>fe)&&(M=fe),w.length>0&&(M<0||x<0)||x>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let pe=!1;for(;;)switch(te){case"hex":return se(this,w,x,M);case"utf8":case"utf-8":return ue(this,w,x,M);case"ascii":case"latin1":case"binary":return oe(this,w,x,M);case"base64":return Ee(this,w,x,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,w,x,M);default:if(pe)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),pe=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const de=4096;function ge(w,x,M){let te="";M=Math.min(w.length,M);for(let fe=x;fe<M;++fe)te+=String.fromCharCode(127&w[fe]);return te}function D(w,x,M){let te="";M=Math.min(w.length,M);for(let fe=x;fe<M;++fe)te+=String.fromCharCode(w[fe]);return te}function f(w,x,M){const te=w.length;(!x||x<0)&&(x=0),(!M||M<0||M>te)&&(M=te);let fe="";for(let pe=x;pe<M;++pe)fe+=Rt[w[pe]];return fe}function R(w,x,M){const te=w.slice(x,M);let fe="";for(let pe=0;pe<te.length-1;pe+=2)fe+=String.fromCharCode(te[pe]+256*te[pe+1]);return fe}function B(w,x,M){if(w%1!=0||w<0)throw new RangeError("offset is not uint");if(w+x>M)throw new RangeError("Trying to access beyond buffer length")}function $(w,x,M,te,fe,pe){if(!d.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>fe||x<pe)throw new RangeError('"value" argument is out of bounds');if(M+te>w.length)throw new RangeError("Index out of range")}function Z(w,x,M,te,fe){me(x,te,fe,w,M,7);let pe=Number(x&BigInt(4294967295));w[M++]=pe,pe>>=8,w[M++]=pe,pe>>=8,w[M++]=pe,pe>>=8,w[M++]=pe;let Me=Number(x>>BigInt(32)&BigInt(4294967295));return w[M++]=Me,Me>>=8,w[M++]=Me,Me>>=8,w[M++]=Me,Me>>=8,w[M++]=Me,M}function ee(w,x,M,te,fe){me(x,te,fe,w,M,7);let pe=Number(x&BigInt(4294967295));w[M+7]=pe,pe>>=8,w[M+6]=pe,pe>>=8,w[M+5]=pe,pe>>=8,w[M+4]=pe;let Me=Number(x>>BigInt(32)&BigInt(4294967295));return w[M+3]=Me,Me>>=8,w[M+2]=Me,Me>>=8,w[M+1]=Me,Me>>=8,w[M]=Me,M+8}function ae(w,x,M,te,fe,pe){if(M+te>w.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function K(w,x,M,te,fe){return x=+x,M>>>=0,fe||ae(w,0,M,4),c.write(w,x,M,te,23,4),M+4}function g(w,x,M,te,fe){return x=+x,M>>>=0,fe||ae(w,0,M,8),c.write(w,x,M,te,52,8),M+8}d.prototype.slice=function(w,x){const M=this.length;(w=~~w)<0?(w+=M)<0&&(w=0):w>M&&(w=M),(x=x===void 0?M:~~x)<0?(x+=M)<0&&(x=0):x>M&&(x=M),x<w&&(x=w);const te=this.subarray(w,x);return Object.setPrototypeOf(te,d.prototype),te},d.prototype.readUintLE=d.prototype.readUIntLE=function(w,x,M){w>>>=0,x>>>=0,M||B(w,x,this.length);let te=this[w],fe=1,pe=0;for(;++pe<x&&(fe*=256);)te+=this[w+pe]*fe;return te},d.prototype.readUintBE=d.prototype.readUIntBE=function(w,x,M){w>>>=0,x>>>=0,M||B(w,x,this.length);let te=this[w+--x],fe=1;for(;x>0&&(fe*=256);)te+=this[w+--x]*fe;return te},d.prototype.readUint8=d.prototype.readUInt8=function(w,x){return w>>>=0,x||B(w,1,this.length),this[w]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(w,x){return w>>>=0,x||B(w,2,this.length),this[w]|this[w+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(w,x){return w>>>=0,x||B(w,2,this.length),this[w]<<8|this[w+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(w,x){return w>>>=0,x||B(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(w,x){return w>>>=0,x||B(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},d.prototype.readBigUInt64LE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],M=this[w+7];x!==void 0&&M!==void 0||Fe(w,this.length-8);const te=x+256*this[++w]+65536*this[++w]+this[++w]*2**24,fe=this[++w]+256*this[++w]+65536*this[++w]+M*2**24;return BigInt(te)+(BigInt(fe)<<BigInt(32))})),d.prototype.readBigUInt64BE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],M=this[w+7];x!==void 0&&M!==void 0||Fe(w,this.length-8);const te=x*2**24+65536*this[++w]+256*this[++w]+this[++w],fe=this[++w]*2**24+65536*this[++w]+256*this[++w]+M;return(BigInt(te)<<BigInt(32))+BigInt(fe)})),d.prototype.readIntLE=function(w,x,M){w>>>=0,x>>>=0,M||B(w,x,this.length);let te=this[w],fe=1,pe=0;for(;++pe<x&&(fe*=256);)te+=this[w+pe]*fe;return fe*=128,te>=fe&&(te-=Math.pow(2,8*x)),te},d.prototype.readIntBE=function(w,x,M){w>>>=0,x>>>=0,M||B(w,x,this.length);let te=x,fe=1,pe=this[w+--te];for(;te>0&&(fe*=256);)pe+=this[w+--te]*fe;return fe*=128,pe>=fe&&(pe-=Math.pow(2,8*x)),pe},d.prototype.readInt8=function(w,x){return w>>>=0,x||B(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},d.prototype.readInt16LE=function(w,x){w>>>=0,x||B(w,2,this.length);const M=this[w]|this[w+1]<<8;return 32768&M?4294901760|M:M},d.prototype.readInt16BE=function(w,x){w>>>=0,x||B(w,2,this.length);const M=this[w+1]|this[w]<<8;return 32768&M?4294901760|M:M},d.prototype.readInt32LE=function(w,x){return w>>>=0,x||B(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},d.prototype.readInt32BE=function(w,x){return w>>>=0,x||B(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},d.prototype.readBigInt64LE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],M=this[w+7];x!==void 0&&M!==void 0||Fe(w,this.length-8);const te=this[w+4]+256*this[w+5]+65536*this[w+6]+(M<<24);return(BigInt(te)<<BigInt(32))+BigInt(x+256*this[++w]+65536*this[++w]+this[++w]*2**24)})),d.prototype.readBigInt64BE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],M=this[w+7];x!==void 0&&M!==void 0||Fe(w,this.length-8);const te=(x<<24)+65536*this[++w]+256*this[++w]+this[++w];return(BigInt(te)<<BigInt(32))+BigInt(this[++w]*2**24+65536*this[++w]+256*this[++w]+M)})),d.prototype.readFloatLE=function(w,x){return w>>>=0,x||B(w,4,this.length),c.read(this,w,!0,23,4)},d.prototype.readFloatBE=function(w,x){return w>>>=0,x||B(w,4,this.length),c.read(this,w,!1,23,4)},d.prototype.readDoubleLE=function(w,x){return w>>>=0,x||B(w,8,this.length),c.read(this,w,!0,52,8)},d.prototype.readDoubleBE=function(w,x){return w>>>=0,x||B(w,8,this.length),c.read(this,w,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(w,x,M,te){w=+w,x>>>=0,M>>>=0,te||$(this,w,x,M,Math.pow(2,8*M)-1,0);let fe=1,pe=0;for(this[x]=255&w;++pe<M&&(fe*=256);)this[x+pe]=w/fe&255;return x+M},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(w,x,M,te){w=+w,x>>>=0,M>>>=0,te||$(this,w,x,M,Math.pow(2,8*M)-1,0);let fe=M-1,pe=1;for(this[x+fe]=255&w;--fe>=0&&(pe*=256);)this[x+fe]=w/pe&255;return x+M},d.prototype.writeUint8=d.prototype.writeUInt8=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,1,255,0),this[x]=255&w,x+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,2,65535,0),this[x]=255&w,this[x+1]=w>>>8,x+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,2,65535,0),this[x]=w>>>8,this[x+1]=255&w,x+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,4,4294967295,0),this[x+3]=w>>>24,this[x+2]=w>>>16,this[x+1]=w>>>8,this[x]=255&w,x+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,4,4294967295,0),this[x]=w>>>24,this[x+1]=w>>>16,this[x+2]=w>>>8,this[x+3]=255&w,x+4},d.prototype.writeBigUInt64LE=Pt((function(w,x=0){return Z(this,w,x,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeBigUInt64BE=Pt((function(w,x=0){return ee(this,w,x,BigInt(0),BigInt("0xffffffffffffffff"))})),d.prototype.writeIntLE=function(w,x,M,te){if(w=+w,x>>>=0,!te){const tt=Math.pow(2,8*M-1);$(this,w,x,M,tt-1,-tt)}let fe=0,pe=1,Me=0;for(this[x]=255&w;++fe<M&&(pe*=256);)w<0&&Me===0&&this[x+fe-1]!==0&&(Me=1),this[x+fe]=(w/pe|0)-Me&255;return x+M},d.prototype.writeIntBE=function(w,x,M,te){if(w=+w,x>>>=0,!te){const tt=Math.pow(2,8*M-1);$(this,w,x,M,tt-1,-tt)}let fe=M-1,pe=1,Me=0;for(this[x+fe]=255&w;--fe>=0&&(pe*=256);)w<0&&Me===0&&this[x+fe+1]!==0&&(Me=1),this[x+fe]=(w/pe|0)-Me&255;return x+M},d.prototype.writeInt8=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,1,127,-128),w<0&&(w=255+w+1),this[x]=255&w,x+1},d.prototype.writeInt16LE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,2,32767,-32768),this[x]=255&w,this[x+1]=w>>>8,x+2},d.prototype.writeInt16BE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,2,32767,-32768),this[x]=w>>>8,this[x+1]=255&w,x+2},d.prototype.writeInt32LE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,4,2147483647,-2147483648),this[x]=255&w,this[x+1]=w>>>8,this[x+2]=w>>>16,this[x+3]=w>>>24,x+4},d.prototype.writeInt32BE=function(w,x,M){return w=+w,x>>>=0,M||$(this,w,x,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[x]=w>>>24,this[x+1]=w>>>16,this[x+2]=w>>>8,this[x+3]=255&w,x+4},d.prototype.writeBigInt64LE=Pt((function(w,x=0){return Z(this,w,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeBigInt64BE=Pt((function(w,x=0){return ee(this,w,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),d.prototype.writeFloatLE=function(w,x,M){return K(this,w,x,!0,M)},d.prototype.writeFloatBE=function(w,x,M){return K(this,w,x,!1,M)},d.prototype.writeDoubleLE=function(w,x,M){return g(this,w,x,!0,M)},d.prototype.writeDoubleBE=function(w,x,M){return g(this,w,x,!1,M)},d.prototype.copy=function(w,x,M,te){if(!d.isBuffer(w))throw new TypeError("argument should be a Buffer");if(M||(M=0),te||te===0||(te=this.length),x>=w.length&&(x=w.length),x||(x=0),te>0&&te<M&&(te=M),te===M||w.length===0||this.length===0)return 0;if(x<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),w.length-x<te-M&&(te=w.length-x+M);const fe=te-M;return this===w&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(x,M,te):Uint8Array.prototype.set.call(w,this.subarray(M,te),x),fe},d.prototype.fill=function(w,x,M,te){if(typeof w=="string"){if(typeof x=="string"?(te=x,x=0,M=this.length):typeof M=="string"&&(te=M,M=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!d.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(w.length===1){const pe=w.charCodeAt(0);(te==="utf8"&&pe<128||te==="latin1")&&(w=pe)}}else typeof w=="number"?w&=255:typeof w=="boolean"&&(w=Number(w));if(x<0||this.length<x||this.length<M)throw new RangeError("Out of range index");if(M<=x)return this;let fe;if(x>>>=0,M=M===void 0?this.length:M>>>0,w||(w=0),typeof w=="number")for(fe=x;fe<M;++fe)this[fe]=w;else{const pe=d.isBuffer(w)?w:d.from(w,te),Me=pe.length;if(Me===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(fe=0;fe<M-x;++fe)this[fe+x]=pe[fe%Me]}return this};const _={};function H(w,x,M){_[w]=class extends M{constructor(){super(),Object.defineProperty(this,"message",{value:x.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${w}]`,this.stack,delete this.name}get code(){return w}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${w}]: ${this.message}`}}}function X(w){let x="",M=w.length;const te=w[0]==="-"?1:0;for(;M>=te+4;M-=3)x=`_${w.slice(M-3,M)}${x}`;return`${w.slice(0,M)}${x}`}function me(w,x,M,te,fe,pe){if(w>M||w<x){const Me=typeof x=="bigint"?"n":"";let tt;throw tt=x===0||x===BigInt(0)?`>= 0${Me} and < 2${Me} ** ${8*(pe+1)}${Me}`:`>= -(2${Me} ** ${8*(pe+1)-1}${Me}) and < 2 ** ${8*(pe+1)-1}${Me}`,new _.ERR_OUT_OF_RANGE("value",tt,w)}(function(Me,tt,Qe){ye(tt,"offset"),Me[tt]!==void 0&&Me[tt+Qe]!==void 0||Fe(tt,Me.length-(Qe+1))})(te,fe,pe)}function ye(w,x){if(typeof w!="number")throw new _.ERR_INVALID_ARG_TYPE(x,"number",w)}function Fe(w,x,M){throw Math.floor(w)!==w?(ye(w,M),new _.ERR_OUT_OF_RANGE("offset","an integer",w)):x<0?new _.ERR_BUFFER_OUT_OF_BOUNDS:new _.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${x}`,w)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(w){return w?`${w} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(w,x){return`The "${w}" argument must be of type number. Received type ${typeof x}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(w,x,M){let te=`The value of "${w}" is out of range.`,fe=M;return Number.isInteger(M)&&Math.abs(M)>2**32?fe=X(String(M)):typeof M=="bigint"&&(fe=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(fe=X(fe)),fe+="n"),te+=` It must be ${x}. Received ${fe}`,te}),RangeError);const We=/[^+/0-9A-Za-z-_]/g;function st(w,x){let M;x=x||1/0;const te=w.length;let fe=null;const pe=[];for(let Me=0;Me<te;++Me){if(M=w.charCodeAt(Me),M>55295&&M<57344){if(!fe){if(M>56319){(x-=3)>-1&&pe.push(239,191,189);continue}if(Me+1===te){(x-=3)>-1&&pe.push(239,191,189);continue}fe=M;continue}if(M<56320){(x-=3)>-1&&pe.push(239,191,189),fe=M;continue}M=65536+(fe-55296<<10|M-56320)}else fe&&(x-=3)>-1&&pe.push(239,191,189);if(fe=null,M<128){if((x-=1)<0)break;pe.push(M)}else if(M<2048){if((x-=2)<0)break;pe.push(M>>6|192,63&M|128)}else if(M<65536){if((x-=3)<0)break;pe.push(M>>12|224,M>>6&63|128,63&M|128)}else{if(!(M<1114112))throw new Error("Invalid code point");if((x-=4)<0)break;pe.push(M>>18|240,M>>12&63|128,M>>6&63|128,63&M|128)}}return pe}function at(w){return r.toByteArray((function(x){if((x=(x=x.split("=")[0]).trim().replace(We,"")).length<2)return"";for(;x.length%4!=0;)x+="=";return x})(w))}function ct(w,x,M,te){let fe;for(fe=0;fe<te&&!(fe+M>=x.length||fe>=w.length);++fe)x[fe+M]=w[fe];return fe}function Et(w,x){return w instanceof x||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===x.name}function pt(w){return w!=w}const Rt=(function(){const w="0123456789abcdef",x=new Array(256);for(let M=0;M<16;++M){const te=16*M;for(let fe=0;fe<16;++fe)x[te+fe]=w[M]+w[fe]}return x})();function Pt(w){return typeof BigInt>"u"?wt:w}function wt(){throw new Error("BigInt not supported")}},527:function(e,t,n){var r=n(188),c=n(539),i=n(682);for(var l in r)r[l]=i(v(l));function v(d){return r[d]}r._api=c,e.exports=r},539:function(e){e.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(e){e.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(e,t,n){var r=n(539),c={};function i(d){try{return v(d),!0}catch{return!1}}function l(d){try{return v(d)}catch{return!1}}function v(d){return new Function(d)()}c._api=r,e.exports=function d(y){if(y==="class"&&(y="classes"),c._api[y].dependencies){for(var A=0;A<c._api[y].dependencies.length;A++)if(d(c._api[y].dependencies[A])===!1)return!1}return c._api[y].passes?i(c._api[y].passes):c._api[y].fails?!i(c._api[y].fails):c._api[y].is?l(c._api[y].is):c._api[y].not?!l(c._api[y].not):void 0}},251:function(e,t){t.read=function(n,r,c,i,l){var v,d,y=8*l-i-1,A=(1<<y)-1,O=A>>1,S=-7,I=c?l-1:0,k=c?-1:1,C=n[r+I];for(I+=k,v=C&(1<<-S)-1,C>>=-S,S+=y;S>0;v=256*v+n[r+I],I+=k,S-=8);for(d=v&(1<<-S)-1,v>>=-S,S+=i;S>0;d=256*d+n[r+I],I+=k,S-=8);if(v===0)v=1-O;else{if(v===A)return d?NaN:1/0*(C?-1:1);d+=Math.pow(2,i),v-=O}return(C?-1:1)*d*Math.pow(2,v-i)},t.write=function(n,r,c,i,l,v){var d,y,A,O=8*v-l-1,S=(1<<O)-1,I=S>>1,k=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:v-1,V=i?1:-1,j=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(y=isNaN(r)?1:0,d=S):(d=Math.floor(Math.log(r)/Math.LN2),r*(A=Math.pow(2,-d))<1&&(d--,A*=2),(r+=d+I>=1?k/A:k*Math.pow(2,1-I))*A>=2&&(d++,A/=2),d+I>=S?(y=0,d=S):d+I>=1?(y=(r*A-1)*Math.pow(2,l),d+=I):(y=r*Math.pow(2,I-1)*Math.pow(2,l),d=0));l>=8;n[c+C]=255&y,C+=V,y/=256,l-=8);for(d=d<<l|y,O+=l;O>0;n[c+C]=255&d,C+=V,d/=256,O-=8);n[c+C-V]|=128*j}},943:function(e){function t(n){this.message=n}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(n){var r=String(n).replace(/=+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,i,l=0,v=0,d="";i=r.charAt(v++);~i&&(c=l%4?64*c+i:i,l++%4)?d+=String.fromCharCode(255&c>>(-2*l&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return d}},863:function(e,t,n){var r=n(943);e.exports=function(c){var i=c.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(l){return decodeURIComponent(r(l).replace(/(.)/g,(function(v,d){var y=d.charCodeAt(0).toString(16).toUpperCase();return y.length<2&&(y="0"+y),"%"+y})))})(i)}catch{return r(i)}}},127:function(e,t,n){var r=n(863);function c(i){this.message=i}c.prototype=new Error,c.prototype.name="InvalidTokenError",e.exports=function(i,l){if(typeof i!="string")throw new c("Invalid token specified");var v=(l=l||{}).header===!0?0:1;try{return JSON.parse(r(i.split(".")[v]))}catch(d){throw new c("Invalid token specified: "+d.message)}},e.exports.InvalidTokenError=c},471:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(r,c){var i=c||0,l=t;return[l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]]].join("")}},814:function(e){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);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var c,i=0;i<16;i++)3&i||(c=4294967296*Math.random()),r[i]=c>>>((3&i)<<3)&255;return r}}},550:function(e,t,n){var r=n(814),c=n(471);e.exports=function(i,l,v){var d=l&&v||0;typeof i=="string"&&(l=i==="binary"?new Array(16):null,i=null);var y=(i=i||{}).random||(i.rng||r)();if(y[6]=15&y[6]|64,y[8]=63&y[8]|128,l)for(var A=0;A<16;++A)l[d+A]=y[A];return l||c(y)}},723:function(e){e.exports={version:"1.1.100",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(e,t,n){var r=n(287).hp;e.exports={toArray:function(c,i){if(!c||c.length!==36)return c;for(var l="",v=i?"0":"1",d=0;d<36;d+=1)l+=d>=26&&d<30?v:c[d];var y=(function(S){for(var I=255,k=255,C=0,V=S.length;V;){var j=V>20?20:V;V-=j;do k+=I+=S[C++];while(--j);I=(255&I)+(I>>8),k=(255&k)+(k>>8)}return((k=(255&k)+(k>>8))<<8|(I=(255&I)+(I>>8))).toString(16)})(r.from(l));if(y){var A="";if(y.length===4)A+=y;else if(y.length<4){for(var O=0;O<4-y.length;O+=1)A+=v;A+=y}else A+=y.slice(-4)}return l.substring(0,26)+A+l.substring(26+A.length)}}},108:function(e){function t(){this.listeners={}}t.prototype.addEventListener=function(n,r){n in this.listeners||(this.listeners[n]=[]),this.listeners[n].push(r)},t.prototype.removeEventListener=function(n,r){if(n in this.listeners){for(var c=this.listeners[n],i=0,l=c.length;i<l;i++)if(c[i]===r)return void c.splice(i,1)}},t.prototype.dispatchEvent=function(n){if(!(n.type in this.listeners))return!0;for(var r=this.listeners[n.type].slice(),c=0,i=r.length;c<i;c++)r[c].call(this,n);return!n.defaultPrevented},e.exports=t},1:function(e){var t=null,n=null,r=0;function c(i,l){return encodeURIComponent(i)+"="+encodeURIComponent(l)}e.exports={init:function(i,l){t=i.errorServerUrl+"/reportSdkMsg",n=l.appId,r=typeof l.logMessageRate=="number"?l.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>r)){var l=t;l+="?"+c("appId",n),l+="&"+c("msg",JSON.stringify(i));var v=new Image;v.onerror=function(){},v.src=l}}}},611:function(e){var t=(function(){function n(c,i){this.method=c,this.url=i,this.headers={},this.data=null,this.timeout=1e4}n.prototype.set=function(c,i){if(typeof c=="object")for(var l in c)c.hasOwnProperty(l)&&(this.headers[l]=c[l]);else this.headers[c]=i;return this},n.prototype.send=function(c){return this.data=c,this},n.prototype.timeout=function(c){return this.timeout=c,this},n.prototype.end=function(c){var i=this,l={method:this.method,headers:this.headers};function v(S,I){return{ok:!1,status:I?I.status:400,response:S instanceof Error?S.message:S}}if(this.data&&(l.body=JSON.stringify(this.data)),typeof fetch=="function"){var d,y=fetch(this.url,l).then((function(S){if(!S.ok)throw{response:S,message:S.statusText||"HTTP error "+S.status};return(function(I){var k=I.headers.get("content-type");return k&&k.includes("application/json")?I.json().then((function(C){return{ok:I.ok,status:I.status,body:C}})):I.text().then((function(C){return{ok:I.ok,status:I.status,body:C}}))})(S)}));y.catch((function(){}));var A=new Promise((function(S,I){d=setTimeout((function(){I(new Error("Request timeout"))}),i.timeout)}));Promise.race([y,A]).then((function(S){clearTimeout(d),S.ok?c(null,S):c(v(S.response,S))})).catch((function(S){clearTimeout(d),c(v(S.message,S&&S.response))}))}else{var O=new XMLHttpRequest;O.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(S){O.setRequestHeader(S,i.headers[S])})),O.timeout=this.timeout,O.onload=function(){var S={ok:O.status>=200&&O.status<300,status:O.status,body:O.responseText};try{S.body=JSON.parse(O.responseText)}catch{}S.ok?c(null,S):c(v("HTTP error "+O.status,S))},O.onerror=function(){c(v("Error",{status:400}))},O.ontimeout=function(){c(v("Timeout",{status:408}))},O.send(this.data?JSON.stringify(this.data):null)}};var r={};return["get","post","put","delete"].forEach((function(c){r[c]=function(i){return new n(c,i)}})),r})();e.exports=t},776:function(e,t,n){var r,c,i=n(611),l=n(723),v=n(884),d=l.serverUrl;function y(){r=r||{},c!==void 0&&(r[l.headers.sessionId]=c);var A={Accept:"application/json","Content-Type":"application/json"};return Object.keys(r).forEach((function(O){r[O]!==void 0&&(A[O]=r[O])})),A}e.exports={setSessionId:function(A){c=A},makeRequest:function(A,O){var S=A.path,I=A.data,k=A.method;(function C(V){i[k](V+"/"+S).set(y()).send(I).end((function(j,J){if(j){if(V!==l.serverUrl)return void C(l.serverUrl);v.isFunction(O)&&O({ok:!1,status:j.status,response:j.response})}else v.isFunction(O)&&O(null,{ok:J.ok,status:J.status,response:J.body})}))})(d)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:y,init:function(A,O){(function(S){r=S})(A),O.eventsReportUrl&&typeof O.eventsReportUrl=="string"&&(d=v.normalizePath(O.eventsReportUrl))}}},13:function(e,t,n){var r,c=n(723),i="getItem";function l(d,y){d&&d.contentWindow.postMessage(y,"*")}function v(d,y,A){d.removeEventListener?d.removeEventListener(y,A,!1):d.attachEvent&&d.detachEvent("on"+y,A)}e.exports={init:function(d){var y,A=(y=!1,function(){y||(y=!0,d())});(r=document.createElement("iframe")).id="storageIframe",r.width=r.height=r.frameBorder=0,r.style.display="none",r.setAttribute("src",c.storageIframeUrl),r.onload=A,r.onerror=A,document.body.appendChild(r),window.setTimeout(A,1e4)},getKey:function(d,y){var A,O,S,I,k,C;r||y(),A=window,O="message",I=function V(j){if(j.data&&typeof j.data=="string")try{var J=JSON.parse(j.data);if(J.command===i){var W=J.response;v(window,"message",V),y(W)}}catch{v(window,"message",V),y()}},k=y,C=!1,window.setTimeout((function(){C||(C=!0,k())}),5e3),S=function(V){C||(C=!0,I(V))},A.addEventListener?A.addEventListener(O,S,!1):A.attachEvent&&A.attachEvent("on"+O,S),l(r,JSON.stringify({command:i,key:d}))},setKey:function(d,y){l(r,JSON.stringify({command:"setItem",key:d,value:y}))},cleanup:function(){r&&r.parentElement&&r.parentElement.removeChild&&(r.parentElement.removeChild(r),r=null)}}},528:function(e){var t,n={setItem:function(d,y){this[d]=y},getItem:function(d){return this[d]},removeItem:function(d){delete this[d]}};function r(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function c(){return t===void 0&&(t=r()),t?localStorage:n}function i(d,y){c().setItem(d,y)}function l(d){return c().getItem(d)}function v(d){return c().removeItem(d)}e.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:l,getBackwardCompatabilityItem:function(d,y){var A=l(d);return!A&&y&&(A=l(y))&&(i(d,A),v(y)),A},removeItem:v,hasAccessToLocalStorage:r,getSessionItem:function(d){try{return sessionStorage.getItem(d)}catch{return n.getItem(d)}},setSessionItem:function(d,y){try{return sessionStorage.setItem(d,y)}catch{return n.setItem(d,y)}}}},884:function(e){var t="nsure-app-cid";function n(r){var c=r;return c&&c.charAt(c.length-1)==="/"&&(c=c.slice(0,-1)),c&&!/^https?:\/\//i.test(c)&&(c="https://"+c),c}e.exports={isFunction:function(r){return typeof r=="function"},loadScript:function(r,c){var i=!1,l=document.createElement("script");function v(){i||(i=!0,c())}l.onload=v,l.onreadystatechange=function(){i||l.readyState!=="complete"||v()},l.onerror=function(){i||(i=!0,c("Error loading script"))},l.src=r,document.body.appendChild(l)},loadImage:function(r){var c=document.createElement("img");c.src=r,c.style.height=0,c.style.width=0,c.style.display="none",c.style.visibility="hidden",document.body.appendChild(c)},randomInt:function(r,c){var i,l=c-r+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())*l+r)},isValidDate:function(r){return r instanceof Date&&!isNaN(r)},getAppContextId:function(){try{var r=sessionStorage.getItem(t);r?sessionStorage.removeItem(t):r=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(c=r,function(){try{sessionStorage.setItem(t,c)}catch{}}))}catch{r=0}var c;return r},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:n,getConfigBaseUrls:function(r,c){var i=null;if(typeof r.configBaseUrl=="string"&&r.configBaseUrl.length>0){var l=c.coreConfigFileUrl.indexOf("/core-config/"),v=l>0?c.coreConfigFileUrl.substring(l):"/core-config/config.json";i=n(r.configBaseUrl)+v}var d=i||c.coreConfigFileUrl;return{mainConfigBaseUrl:d,altConfigBaseUrl:d===c.coreConfigFileUrl?null:c.coreConfigFileUrl}}}},543:function(e){var t="f8ad0f9b-",n="ns_install_reported",r=t+n,c=t+"ns_reportedFpInSession";e.exports={webType:"Web",oldInstallEventReportedKeyName:n,installEventReportedKeyName:r,fingerprintReportedInSessionKey:c,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(e){e.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy",SM:"sm",FC:"fc"}},298:function(e){e.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(e,t,n){var r=n(723),c=n(776),i=n(387),l=n(733),v=n(472),d=n(376),y=n(120),A=n(142),O=n(636),S=n(496),I=n(1),k=n(336);e.exports={init:function(C){var V=C.deviceId,j=C.linkedDevices,J={};J[r.headers.appId]=C.appId,J[r.headers.partnerId]=C.partnerId,J[r.headers.sdkClientVersion]=r.version,J[r.headers.sdkApiVersion]=r.sdkApiVersion,J[r.headers.sdkClientType]=r.sdkClientType,J[r.headers.appContextId]=C.appContextId,c.init(J,C),i.addMetadataProps(C),I.init(r,C),i.reportInitEvent(V),S.init(C),k.init(C),l.installSdk(C,(function(W){W||d.manageFingerprint(V,!0)})),l.reportLinkDevices(V,j),v.manageSessionId({deviceId:V,initModuleConfig:C}),y.manageDomEvents(V),A.manageKeepAlive({deviceId:V}),O.reportVersionUpgrade({deviceId:V,initModuleVersion:C.clientVersion,coreModuleVersion:r.version})}}},143:function(e,t,n){var r=n(108),c=n(23).oneMinute,i=n(298);function l(){r.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function v(d){r.call(this),this.activityServiceId=d}l.prototype=Object.create(r.prototype),l.prototype.constructor=l,l.prototype.observe=function(){var d=this;Object.keys(this.activityEvents).forEach((function(y){document.addEventListener(y,d.activityEvents[y]=function(){d.activityHandler()})}))},l.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},l.prototype.stopActivityListeners=function(){var d=this;Object.keys(this.activityEvents).forEach((function(y){document.removeEventListener(y,d.activityEvents[y])}))},v.prototype=Object.create(r.prototype),v.prototype.constructor=v,v.prototype.trackInactivity=function(d){var y,A=new l,O=this,S=!1;function I(){S||(clearTimeout(y),setTimeout((function(){O.trackInactivity(d)}),c))}A.addEventListener(i.activityEvent,I),A.observe(),y=setTimeout((function(){S=!0,A.stopActivityListeners(),A.removeEventListener(i.activityEvent,I),O.dispatchEvent(new Event(i.inactivityEvent))}),d)},e.exports=v},496:function(e,t,n){var r,c=n(120),i=n(776),l=n(376),v=n(23),d=n(723),y=n(38),A=n(543),O=n(336),S=n(884),I=n(198),k=n(292),C=[],V=[],j=null,J=6e4,W=5e3,se=null,ue=S.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),oe=0,Ee=null,Re=Date.now(),ne=0,ie=null,de=!1,ge=!1,D=!1,f=!1,R=[];function B(){V=C,C=[],ee(),$()}function $(){j&&clearTimeout(j),j=setTimeout(B,J)}function Z(){var ye={device:{id:r,type:A.webType},metadata:{clientRequestId:v.getClientRequestId()}};return se&&se.fingerprintHash&&(ye.device.fingerprint=se.fingerprintHash),ye}function ee(ye){if(V.length)if(se!==null){var Fe=Object.assign(Z(),{events:V});i.makeRequest({path:"bulk",data:Fe,method:i.methods.post},ye)}else l.getFingerprint((function(We){se=We,ee(ye)}))}function ae(ye,Fe){return C.push(ye),Fe?new Blob([JSON.stringify(C)]).size:0}function K(){if(D){var ye=Date.now();ye-Re>W&&(ae({i:{dr:ye-Re,ac:ye-Re-ne},metadata:{type:y.I,timestamp:ye}},!1),ne=0)}}function g(){$(),V=C,C=[],ee()}function _(ye){var Fe=ye.eventType===y.C||ye.eventType===y.S||ye.eventType===y.KD||ye.eventType===y.MM;Fe&&(K(),(function(){if(f&&Math.random()<.25){for(var We=[],st=0;st<3;st++)We.push(String.fromCharCode(Math.floor(26*Math.random())+97));var at=y.DY+We[0],ct={metadata:{type:at,timestamp:Date.now()}};ct[at]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},ct[at][We.join("")]=Math.floor(1e3*Math.random())+1,ae(ct,!1)}})()),(function(We){O.triggerEventOnEvent(We)})(ye),ae(Object.assign({metadata:{type:ye.eventType,timestamp:Date.now()}},ye.payload),!0)>32768&&g(),Fe&&(Re=Date.now())}function H(){de&&g()}function X(ye){return window.addEventListener(ye,H,!0),function(){window.removeEventListener(ye,H,!0)}}function me(ye,Fe){return!ye||ye.indexOf(Fe)>-1}e.exports={init:function(ye){if(!de){var Fe=ye.bulkEvents&&ye.bulkEvents.mask;if(!Array.isArray(Fe)||Fe.length!==0){var We=ye.bulkEvents&&typeof ye.bulkEvents.pct=="number"?ye.bulkEvents.pct:100;if(!(We===0||Math.random()>We/100)){var st=ye.bulkEvents&&ye.bulkEvents.appMaskInclude;if(!Array.isArray(st)||st.indexOf(ye.appId)!==-1){var at=ye.bulkEvents&&ye.bulkEvents.appMaskExclude;if(!Array.isArray(at)||at.indexOf(ye.appId)===-1){var ct=me(Fe,y.C),Et=me(Fe,y.KD),pt=me(Fe,y.S),Rt=me(Fe,y.PC),Pt=me(Fe,y.MM),wt=me(Fe,y.PL),w=me(Fe,y.I),x=me(Fe,y.DY),M=me(Fe,y.SM),te=me(Fe,y.FC),fe=w||wt;r=ye.deviceId,$(),ct&&R.push(c.setClickListener(_)),Et&&R.push(c.setKeyDownListener(_)),pt&&R.push(c.setScrollListener(_)),Rt&&R.push(c.setPageChangeListener(_)),Pt&&R.push(c.setMouseMoveListener(_)),M&&R.push(I.init(_)),te&&R.push(k.init(_)),ge=wt,D=w,f=x,fe&&R.push((function(){function pe(){if(document.hidden)Ee=Date.now(),ie=Ee;else if(Ee!==null){var Me=Date.now();oe+=Me-Ee,Ee=null,ne+=Me-ie}}return document.addEventListener("visibilitychange",pe),function(){document.removeEventListener("visibilitychange",pe)}})()),R.push((function(){function pe(){if(K(),(function(){if(ge){var E=Date.now(),b=E-ue;ae({metadata:{type:y.PL,timestamp:E},pl:{dr:b,ac:b-oe}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(C.length>0)try{var Me=i.getRequestHeaders(),tt=Object.assign(Z(),{events:C}),Qe=new URLSearchParams;Qe.append("data",JSON.stringify(tt)),Qe.append("headers",JSON.stringify(Me));var F=new Blob([Qe.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(d.serverUrl+"/bulk",F)}catch{}}else V=C,ee()}return window.addEventListener("beforeunload",pe),function(){window.removeEventListener("beforeunload",pe)}})()),de=!0,C=[],ct||R.push(X("click")),R.push(X("paste"))}}}}}},cleanup:function(){de&&(j&&clearTimeout(j),R.forEach((function(ye){ye()})),R=[],de=!1)},trigger:H}},120:function(e,t,n){var r=n(709),c=n(38),i=n(23);function l(){return"ontouchstart"in window}function v(d){var y={};if(d.nodeName){y.name=d.nodeName,d.className&&(y.className=String(d.className)),d.id&&(y.id=d.id);var A=d.getAttribute&&d.getAttribute("type");A&&(y.type=A),d.placeholder&&(y.placeholder=d.placeholder)}return y}e.exports={manageDomEvents:function(d){r.managePasteEvents(d)},getDomProperties:v,setClickListener:function(d){function y(O){var S={eventType:c.C,payload:{c:{d:v(O.target)}}},I=O.target.textContent||O.target.innerText||"";if(I){var k=i.transformDomNodeContent(I);S.payload[c.C].x={p:k.prefix,s:k.suffix,l:k.length}}d(S)}var A=l()?"touchend":"click";return window.addEventListener(A,y,!0),function(){window.removeEventListener(A,y,!0)}},setKeyDownListener:function(d){function y(A){d({eventType:c.KD,payload:{kd:{d:v(A.target),k:A.key||A.code||"na"}}})}return window.addEventListener("keydown",y,!0),function(){window.removeEventListener("keydown",y,!0)}},setScrollListener:function(d){var y=null,A=0,O=0,S={x:0,y:0},I=0,k=0,C=0,V=0,j=0,J=0;function W(ue){d({eventType:c.S,payload:{s:{d:v(ue.target),di:{x:S.x,y:S.y},t:k-I,sx:C,sy:V,ex:j,ey:J}}}),A=0,O=0,S.x=0,S.y=0,y=null,I=0,k=0}function se(ue){var oe=ue.target.scrollingElement||ue.target;if(oe&&(oe===document&&(oe=document.documentElement),oe instanceof Element)){var Ee=oe.getBoundingClientRect(),Re=-Ee.left+oe.scrollLeft,ne=-Ee.top+oe.scrollTop;y?(clearTimeout(y),k=Date.now(),j=Re,J=ne):(I=Date.now(),k=I,j=C=Re,J=V=ne),(S.x||S.y||A||O)&&(S.x+=Math.abs(Re-A),S.y+=Math.abs(ne-O)),A=Re,O=ne,y=setTimeout(W.bind(null,ue),200)}}return window.addEventListener("scroll",se,!0),function(){y&&clearTimeout(y),window.removeEventListener("scroll",se,!0)}},setPageChangeListener:function(d){var y,A,O,S=null,I=null,k=0;function C(W){var se;if(window.URL){var ue=new URL(W,"http://example.com");se=ue.pathname+ue.hash}else se=W.indexOf("?")>-1?W.split("?")[0]:W.indexOf("#")>-1?W.split("#")[0]:W;if(se!==S){var oe=Date.now()-O;d({eventType:c.PC,payload:{pc:{f:S,t:se,dr:oe,ac:oe-k}}}),S=se,O=Date.now()}}function V(){if(document.hidden)I=Date.now();else if(I!==null){var W=Date.now();k+=W-I,I=null}}function j(W){C(W.newURL)}function J(){C(window.location.href)}return window.history?(S=window.location.pathname||"/",y=history.pushState,A=history.replaceState,O=Date.now(),window.addEventListener("hashchange",j),window.addEventListener("popstate",J),history.pushState=function(W,se,ue){return C(ue),y.apply(history,arguments)},history.replaceState=function(W,se,ue){return C(ue),A.apply(history,arguments)},document.addEventListener("visibilitychange",V),function(){history.pushState=y,history.replaceState=A,window.removeEventListener("hashchange",j),window.removeEventListener("popstate",J),document.removeEventListener("visibilitychange",V),S=null,k=0}):function(){}},setMouseMoveListener:function(d){var y=[],A=!1,O=null,S=0,I={x:0,y:0};function k(){y.length!==0&&(d({eventType:c.MM,payload:{mm:{s:y.slice(),l:A,di:I}}}),y=[])}function C(j){var J,W;j.touches&&j.touches.length>0?(J=j.touches[0].clientX,W=j.touches[0].clientY):(J=j.clientX,W=j.clientY),J!==void 0&&W!==void 0&&(y.length>0&&(I.x+=Math.abs(J-y[y.length-1][0]),I.y+=Math.abs(W-y[y.length-1][1])),y.push([J,W]),y.length>1e3&&(A=!0,(S+=2)>=1e3&&(S=2),y.splice(S,1)),O&&clearTimeout(O),O=setTimeout(k,200))}var V=l()?"touchmove":"mousemove";return window.addEventListener(V,C,!0),function(){O&&clearTimeout(O),window.removeEventListener(V,C,!0)}}}},387:function(e,t,n){var r=n(776),c=n(23),i=n(287).hp,l=n(527),v=n(543),d=["storeInfo"],y={};function A(){var I={};for(var k in l)if(l.hasOwnProperty(k)){var C=k.charAt(0);C===C.toLowerCase()&&C!==C.toUpperCase()&&(I[k]=l[k])}return I}function O(I,k){var C=I.eventType,V=I.deviceId,j=I.fingerprintProVisitorId,J=I.fingerprintProRequestId,W=I.fingerprintHash,se=(function(de){try{return i.from(JSON.stringify(de)).toString("base64")}catch{return}})(I.fingerprintComponents),ue=I.deviceExtendedInfo,oe=I.payload,Ee={metadata:{type:C},device:{id:V,fingerprint:W,rawFingerprint:se,type:v.webType}};j&&(Ee.device.visitorId=j),J&&(Ee.device.fpRequestId=J);var Re=Object.assign({},c.getClientMetadata(c.metadataType.payload),y);for(var ne in Re)Re.hasOwnProperty(ne)&&(Ee.metadata[ne]=Re[ne]);for(var ie in oe)oe.hasOwnProperty(ie)&&(Ee[ie]=oe[ie]);ue&&(Ee.device.extendedInfo=ue),r.makeRequest({path:"events",data:Ee,method:r.methods.post},k)}function S(I){var k=I.type,C=I.deviceId,V=I.fingerprintProVisitorId,j=I.fingerprintProRequestId,J=I.fingerprintHash,W=I.fingerprintComponents,se=I.deviceExtendedInfo,ue=I.callback,oe={eventType:k,deviceId:C,fingerprintHash:J,fingerprintComponents:W,deviceExtendedInfo:se};V&&(oe.fingerprintProVisitorId=V),j&&(oe.fingerprintProRequestId=j),O(oe,ue)}e.exports={addMetadataProps:function(I){for(var k=0;k<d.length;k+=1){var C=d[k];I.hasOwnProperty(C)&&(y[C]=I[C])}},reportEvent:O,reportAppInstallEvent:function(I,k,C,V,j,J){S({type:"appInstall",deviceId:I,fingerprintProVisitorId:k,fingerprintProRequestId:C,fingerprintHash:V,fingerprintComponents:j,deviceExtendedInfo:A(),callback:J})},reportFingerprintEvent:function(I,k,C,V){S({type:"fingerprint",deviceId:I,fingerprintHash:k,fingerprintComponents:C,fingerprintProRequestId:V})},reportInitEvent:function(I){S({type:"appInit",deviceId:I})}}},625:function(e,t,n){var r=n(269),c=n(1);e.exports={getFingerprint:function(i,l){if(r&&i)if(y=typeof navigator<"u"&&navigator.userAgent||"",/(iPhone|iPad|iPod)/.test(y)&&/CPU (iPhone )?OS 16_7/.test(y)&&/AppleWebKit/.test(y))c.send({msg:"FingerprintJS pro not loaded - legacy iOS device where loading it risks a browser crash",userAgent:typeof navigator<"u"&&navigator.userAgent||""}),typeof l=="function"&&l({});else try{r.load((d={apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",r.defaultEndpoint],remoteControlDetection:!0},typeof r.makeIdentificationModule=="function"&&typeof r.makeBotdModule=="function"&&(d.modules=[r.makeIdentificationModule(),r.makeBotdModule()]),d)).then((function(A){return A.get()})).then((function(A){typeof l=="function"&&l(A?{fingerprintVisitorId:A.visitorId,fingerprintRequestId:A.requestId}:{})})).catch((function(){typeof l=="function"&&l({})}))}catch(A){var v={msg:"FingerprintJS.load pro error",err:JSON.stringify(A)};c.send(v),typeof l=="function"&&l({})}else l({});var d,y}}},376:function(e,t,n){var r=n(75),c=n(528),i=n(387),l=n(1),v="ns_fp_hash";function d(A,O,S,I){i.reportFingerprintEvent(S,A,O,I)}function y(A){try{r.load({monitoring:!1}).then((function(S){S.get().then((function(I){A(I?{fingerprintHash:I.visitorId,fingerprintComponents:I.components}:{})})).catch((function(){typeof A=="function"&&A({})}))})).catch((function(){typeof A=="function"&&A({})}))}catch(S){var O={msg:"FingerprintJS.load error",err:JSON.stringify(S)};l.send(O),typeof A=="function"&&A({})}}e.exports={manageFingerprint:function(A,O,S){y((function(I){var k=I.fingerprintHash,C=I.fingerprintComponents;c.getItem(v)!==k&&(O&&d(k,C,A),c.setItem(v,k)),typeof S=="function"&&S({fingerprintHash:k,fingerprintComponents:C})}))},getFingerprint:y,reportFingerprintWithProInfo:function(A,O){y((function(S){d(S.fingerprintHash,S.fingerprintComponents,A,O)}))}}},292:function(e,t,n){var r=n(38),c="vc",i="bl",l="fo",v="ph",d="ps",y="fr",A="rs",O=null,S=!0,I=0,k=null,C=[],V=!1;function j(ge,D,f){if(O){var R={dir:ge,dr:D,src:f};O({eventType:r.FC,payload:{fc:R}})}}function J(ge,D){if(ge!==S){var f=Date.now(),R=f-I;ge?(j("i",R,k||D),k=null):j("o",R,D),S=ge,I=f}}function W(){J(!document.hidden,c)}function se(){J(!1,i)}function ue(){J(!0,l)}function oe(ge){ge&&ge.persisted&&J(!1,v)}function Ee(ge){ge&&ge.persisted&&J(!0,d)}function Re(){S||(k=y)}function ne(){J(!0,A)}function ie(ge,D,f){ge.addEventListener(D,f),C.push((function(){ge.removeEventListener(D,f)}))}function de(){C.forEach((function(ge){ge()})),C=[],O=null,S=!0,I=0,k=null,V=!1}e.exports={init:function(ge){if(V)return de;if(typeof window>"u"||typeof document>"u")return function(){};O=ge,S=(function(){if(typeof document>"u")return!0;var f=!document.hidden,R=typeof document.hasFocus!="function"||document.hasFocus();return f&&R})(),I=Date.now(),k=null,V=!0;var D="ontouchstart"in window;return ie(document,"visibilitychange",W),ie(window,"pagehide",oe),ie(window,"pageshow",Ee),ie(document,"freeze",Re),ie(document,"resume",ne),D||(ie(window,"blur",se),ie(window,"focus",ue)),de},cleanup:de,getState:function(){return{isFocused:S,lastTransitionAt:I,pendingInSrc:k,isInitialized:V}}}},733:function(e,t,n){var r=n(528),c=n(376),i=n(625),l=n(387),v=n(142),d=n(1),y=n(543),A="linkDevices";function O(I,k,C){c.getFingerprint((function(V){var j=V.fingerprintHash,J=V.fingerprintComponents;l.reportEvent({eventType:A,deviceId:I,fingerprintHash:j,fingerprintComponents:J,payload:{linkedDevices:[k,C]}})}))}function S(I,k){if(k)for(var C=0,V=k.length;C<V;C+=1){var j=k[C];if(j&&j.length>1){var J=j[0],W=j[1];J&&W&&J!==W&&O(I,J,W)}}}e.exports={installSdk:function(I,k){var C=I.deviceId,V=I.loadFingerprintJsPro,j=(I.supressInstallBackwardCompatibility||[]).indexOf(I.appId)===-1,J=(function(se,ue){var oe=ue?r.getBackwardCompatabilityItem(y.installEventReportedKeyName,y.oldInstallEventReportedKeyName):r.getItem(y.installEventReportedKeyName);return oe?(oe==="true"&&(r.setItem(y.installEventReportedKeyName,se),oe=se),se===oe?{isInstalled:!0,reportedDeviceId:se}:{isInstalled:!1,reportedDeviceId:oe}):{isInstalled:!1,reportedDeviceId:null}})(C,j);function W(se,ue,oe){if(oe>3)k&&k(!1);else{var Ee=ue.fingerprintHash,Re=ue.fingerprintComponents,ne=se.fingerprintVisitorId,ie=se.fingerprintRequestId;l.reportAppInstallEvent(C,ne,ie,Ee,Re,(function(de){if(de){var ge={msg:"Failed sending appInstall",err:JSON.stringify(de),deviceId:C,fingerprintHash:Ee,fingerprintRequestId:ie,numberOfRetry:oe};d.send(ge),W(se,ue,oe+1)}else r.setItem(y.installEventReportedKeyName,C),r.setItem("ns_irts",Date.now()),v.manageKeepAlive({deviceId:C,fingerprintInfo:ue,setStartTimestamp:!0}),k&&k(!0)}))}}J.isInstalled?k&&k(!1):(J.reportedDeviceId&&J.reportedDeviceId!==C&&S(C,[[C,J.reportedDeviceId]]),i.getFingerprint(V,(function(se){c.manageFingerprint(C,!1,(function(ue){W(se,ue,1)}))})))},reportLinkDevices:S}},142:function(e,t,n){var r=n(528),c=n(884),i=n(387),l=n(376),v="ns_ka_ts",d="ns_ka_step_",y=[10,30,40,60];function A(k){return d+k}function O(){var k=parseInt(r.getItem(v),10);return c.isValidDate(new Date(k))?k:null}function S(k,C){var V=(function(){var j=O();if(!j)return null;for(var J,W=Math.floor((new Date().getTime()-j)/1e3),se=0;se<y.length;se+=1){var ue=y[se],oe=se<y.length-1?y[se+1]:null;if(W>=ue&&(!oe||W<oe)&&(J=ue,!r.getItem(A(J))))return{stepToReport:ue,timeToWaitInSeconds:0};if(W<ue)return{stepToReport:ue,timeToWaitInSeconds:ue-W}}return null})();V&&(V.timeToWaitInSeconds===0?((function(j,J,W){var se=J.fingerprintHash,ue=J.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:j,fingerprintHash:se,fingerprintComponents:ue,payload:{keepAlive:{step:W}}}),r.setItem(A(W),!0)})(k,C,V.stepToReport),S(k,C)):V.timeToWaitInSeconds>0&&setTimeout((function(){S(k,C)}),1e3*V.timeToWaitInSeconds))}var I={manageKeepAlive:function(k){var C=k.deviceId,V=k.fingerprintInfo;k.setStartTimestamp&&!O()&&r.setItem(v,new Date().getTime()),V?S(C,V):l.getFingerprint((function(j){S(C,j)}))}};e.exports=I},709:function(e,t,n){var r=n(387),c=n(376),i=n(23);function l(A){return i.removeWhitespaces(A)}function v(A){var O=A?A.value||A.innerText:null;return{nodeContent:O,normalizedNodeContent:l(O)}}function d(A){var O=i.transformDomNodeContent(A),S=A||"";return O.onlyDigits=/^[0-9]+$/.test(S),O.containsWhitespace=/\s/.test(S),O.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(S),O}var y={managePasteEvents:function(A){document.addEventListener("paste",(function(O){var S=v(O.target),I=(function(k){try{if(k&&k.clipboardData&&typeof k.clipboardData.getData=="function")return k.clipboardData.getData("text/plain")||""}catch{}return""})(O);setTimeout((function(){(function(k){var C=k.deviceId,V=k.contentBeforePaste,j=V.nodeContent,J=V.normalizedNodeContent,W=k.clipboardText||"",se=k.domNode,ue={paste:{domNode:{}}};if(se.nodeName){ue.paste.domNode.name=se.nodeName,se.className&&(ue.paste.domNode.className=se.className),se.id&&(ue.paste.domNode.id=se.id);var oe=se.getAttribute&&se.getAttribute("type");oe&&(ue.paste.domNode.type=oe),ue.paste.domNode.content={};var Ee=v(se),Re=Ee.nodeContent,ne=Ee.normalizedNodeContent;Re&&Re.length!==0||!W||(Re=W,ne=l(W)),ue.paste.domNode.content.beforePaste=d(j),ue.paste.domNode.content.afterPaste=d(Re),ue.paste.domNode.normalizedContent={},ue.paste.domNode.normalizedContent.beforePaste=d(J),ue.paste.domNode.normalizedContent.afterPaste=d(ne),se.placeholder&&(ue.paste.domNode.placeholder=se.placeholder),ue.paste.url=window.location.href}c.getFingerprint((function(ie){var de=ie.fingerprintHash;r.reportEvent({eventType:"paste",deviceId:C,fingerprintHash:de,payload:ue})}))})({deviceId:A,contentBeforePaste:S,clipboardText:I,domNode:O.target})}),0)}))}};e.exports=y},472:function(e,t,n){var r=n(127),c=n(108),i=n(884),l=n(23),v=n(776),d=n(528),y=n(298).inactivityEvent,A=n(143),O=n(387),S=n(376),I="ns_sid";function k(){c.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function C(j){var J=j.deviceId,W=j.initModuleConfig,se=j.jwtSessionId,ue=j.callback,oe=1e4;try{oe=r(se).inactivityTimeout}catch{oe=1e4}var Ee=new A(new Date().getTime());Ee.addEventListener(y,(function Re(){Ee.removeEventListener(y,Re),V({deviceId:J,initModuleConfig:W,forceRenewSessionDueToInactivity:!0,callback:ue})})),Ee.trackInactivity(oe)}function V(j){var J,W=j.deviceId,se=j.initModuleConfig,ue=!!j.forceRenewSessionDueToInactivity,oe=j.callback,Ee=d.getItem(I);try{J=r(Ee),v.setSessionId(Ee)}catch{J=null}ue||!J||1e3*((J||{}).exp||0)<new Date().getTime()?(function(Re,ne){var ie=Re.deviceId,de=(Re.initModuleConfig||{}).storeInfo,ge=new k;ge.addEventListener(ge.eventTypes.fetchComplete,(function D(f){ge.removeEventListener(ge.eventTypes.fetchComplete,D),ne(f.detail)})),ge.fetchSessionId(ie,de)})({deviceId:W,initModuleConfig:se},(function(Re){Ee=Re,d.setItem(I,Ee),v.setSessionId(Ee),(function(ne){try{var ie=ne.deviceId,de=r(ne.jwtSessionId).ets;if(!de)return;S.getFingerprint((function(ge){var D=ge.fingerprintHash,f=ge.fingerprintComponents;O.reportEvent({eventType:"ping",deviceId:ie,fingerprintHash:D,fingerprintComponents:f,payload:{ping:{ets:de}}})}))}catch{}})({deviceId:W,jwtSessionId:Ee}),C({deviceId:W,initModuleConfig:se,jwtSessionId:Ee,callback:oe}),i.isFunction(oe)&&oe(Ee)})):(C({deviceId:W,initModuleConfig:se,jwtSessionId:Ee,callback:oe}),i.isFunction(oe)&&oe(Ee))}k.prototype=Object.create(c.prototype),k.prototype.constructor=k,k.prototype.fetchSessionId=function(j,J){var W=this,se="session?"+l.getClientMetadata(l.metadataType.queryString)+"&deviceId="+j;J&&(J.id&&(se+="&storeId="+J.id),J.type&&(se+="&storeType="+J.type)),(function ue(){var oe;oe=function(Ee,Re){!Ee&&Re&&Re.ok?W.dispatchEvent(new CustomEvent(W.eventTypes.fetchComplete,{detail:Re.response})):setTimeout(ue,i.randomInt(4e4,6e4))},v.makeRequest({path:se,method:v.methods.get},oe)})()},e.exports={manageSessionId:V,setRetrySessionTimeout:function(j){throw new Error("Cannot call setRetrySessionTimeout!")}}},198:function(e,t,n){var r=n(38),c=["critical","serious"],i=null,l=null,v=null,d=0,y=!1,A={cpuPressure:null,fps:null};function O(){var I=Date.now();if((function(V){if(!v||V-d<5e3)return!1;var j=typeof A.fps=="number"&&A.fps<30,J=A.cpuPressure&&c.indexOf(A.cpuPressure)!==-1;return!(!j&&!J)})(I)){var k={};A.cpuPressure!==null&&(k.cp=A.cpuPressure),A.fps!==null&&(k.fp=A.fps);var C={eventType:r.SM,payload:{sm:k}};v(C),d=I}}function S(){if(i){try{i.disconnect()}catch{}i=null}if(l){var I=typeof window<"u"?window.cancelAnimationFrame:null;I&&I(l),l=null}v=null,d=0,y=!1,A.cpuPressure=null,A.fps=null}e.exports={init:function(I){return y?S:typeof window>"u"?function(){}:(v=I,y=!0,A.cpuPressure=null,A.fps=null,i=(function(){if(typeof window>"u"||window.PressureObserver===void 0)return null;try{var J=new window.PressureObserver((function(W){if(W.length>0){var se=W[W.length-1];A.cpuPressure=se.state,O()}}));return J.observe("cpu",{sampleInterval:1e3}).catch((function(){})),J}catch{return null}})(),C=(k=typeof window<"u"&&window.performance&&window.performance.now?window.performance.now.bind(window.performance):typeof performance<"u"&&performance.now?performance.now.bind(performance):Date.now)(),V=0,(j=typeof window<"u"?window.requestAnimationFrame:null)&&(l=j((function J(){var W=k();V++,W>C+2e3&&(A.fps=Math.round(1e3*V/(W-C)),V=0,C=W,O()),l=j(J)}))),S);var k,C,V,j},cleanup:S,getState:function(){return{cpuPressure:A.cpuPressure,fps:A.fps}}}},336:function(e,t,n){var r=n(23),c=n(376),i=n(625),l=n(528),v=n(543).fingerprintReportedInSessionKey,d=n(543).eventTriggers,y={},A=null,O=!1,S=!1;function I(C){var V=C||{};Object.keys(V).forEach((function(j){j===d.fingerPrint&&S&&(l.getSessionItem(v)||(i.getFingerprint(O,(function(J){c.reportFingerprintWithProInfo(A,J.fingerprintRequestId)})),l.setSessionItem(v,!0)))}))}function k(C,V,j){for(var J=0;J<V.payload.length;J++){var W=V.payload[J];W&&W.event&&W.action&&r.isSubObject(W.event,C.payload)&&(j[W.action]=!0)}}e.exports={init:function(C){if(C.eventTrigger){try{var V=atob(C.eventTrigger),j=JSON.parse(V);if(!j||!(y=j[C.appId]))return}catch{return}A=C.deviceId,O=C.loadFingerprintJsPro,S=!0,(function(){if(S&&y.init&&Array.isArray(y.init)){for(var J={},W=0;W<y.init.length;W++){var se=y.init[W];se&&se.url&&se.action&&new RegExp(y.init[W].url).test(window.location.href)&&(J[y.init[W].action]=!0)}I(J)}})()}},triggerEventOnEvent:function(C){if(S){var V=y[C.eventType];if(Array.isArray(V)){for(var j={},J=0;J<V.length;J++){var W=V[J];W&&W.url&&W.payload&&new RegExp(W.url).test(window.location.href)&&k(C,W,j)}I(j)}}}}},636:function(e,t,n){var r=n(528),c=n(387),i=n(376),l="ns_c_ver",v="c";function d(A){r.setItem(l,JSON.stringify(A))}function y(A,O,S,I){var k=O.fingerprintHash,C=O.fingerprintComponents;c.reportEvent({eventType:"sdkVersionUpgrade",deviceId:A,fingerprintHash:k,fingerprintComponents:C,payload:{versionUpgrade:{version:S,prevVersion:I||""}}}),d(S)}e.exports={reportVersionUpgrade:function(A){var O=A.initModuleVersion,S=A.coreModuleVersion,I={};I.i=O,I[v]=S;var k=A.deviceId,C=A.fingerprintInfo,V=(function(){var j=r.getItem(l);if(j){try{var J=JSON.parse(j);if(typeof J=="object")return J}catch{}return{i:j}}return null})();V&&V.i?V.i!==O||V[v]&&V[v]!==S?(V[v]||(V[v]=S),C?y(k,C,I,V):i.getFingerprint((function(j){y(k,j,I,V)}))):V[v]||d(I):d(I)}}},23:function(e,t,n){var r=n(550),c={payload:"payload",queryString:"queryString"};function i(){return r()}function l(d,y){for(var A in d)if(d.hasOwnProperty(A)&&(!y.hasOwnProperty(A)||!v(d[A],y[A])))return!1;return!0}function v(d,y){if(d===y)return!0;if(typeof d!=typeof y)return!1;if(Array.isArray(d)&&Array.isArray(y)){if(d.length!==y.length)return!1;for(var A=0;A<d.length;A++)if(!v(d[A],y[A]))return!1;return!0}return typeof d=="object"&&d!==null&&typeof y=="object"&&y!==null&&l(d,y)}e.exports={metadataType:c,getClientMetadata:function(d){var y=new Date().getTime(),A=i();return d===c.queryString?"timestamp="+y+"&clientRequestId="+A:{timestamp:y,clientRequestId:A}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(d){var y,A,O=d||"",S=O.length;return S<=1?(y="",A=""):S===2?(y=O.slice(0,1),A=""):S===3?(y=O.slice(0,1),A=O.slice(S-1)):S===4?(y=O.slice(0,2),A=O.slice(S-1)):S===5?(y=O.slice(0,2),A=O.slice(S-2)):S===6?(y=O.slice(0,3),A=O.slice(S-2)):S===7?(y=O.slice(0,3),A=O.slice(S-3)):S===8?(y=O.slice(0,4),A=O.slice(S-3)):S===9?(y=O.slice(0,5),A=O.slice(S-3)):S===10?(y=O.slice(0,5),A=O.slice(S-4)):S>10&&(y=O.slice(0,6),A=O.slice(S-4)),{length:S,prefix:y,suffix:A}},isSubObject:l,removeWhitespaces:function(d){return d&&(d instanceof String||typeof d=="string")?d.replace(/\s/g,""):d}}},651:function(e,t,n){var r,c=n(723),i=n(115),l=n(884);function v(){return i.getDeviceId()}e.exports={getDeviceId:function(){return r||(r=v()),r},getCoreModuleParams:function(d,y){var A=y||{},O=!!A.isFingerprintJsProOff,S=[];r&&r!==v()&&S.push([r,v()]);var I=l.getAppContextId(),k=A.bulkEvents||{},C=A.supressInstallBackwardCompatibility||[],V=typeof A.logMessageRate=="number"?A.logMessageRate:100,j=A.eventTrigger||"";return Object.assign(d,{deviceId:v(),linkedDevices:S,loadFingerprintJsPro:!O,clientVersion:c.version,appContextId:I,bulkEvents:k,supressInstallBackwardCompatibility:C,logMessageRate:V,eventTrigger:j,eventsReportUrl:A.eventsReportUrl})},parseInitParams:function(d,y){return typeof(A=d)=="string"||A instanceof String?{appId:d,partnerId:y}:d;var A},internalGetDeviceId:v}},342:function(e,t,n){var r=n(723),c=n(242),i=n(1),l=n(102),v=n(651),d=n(884),y=n(884);e.exports={version:r.version,init:d.isBrowser()?function(A,O){var S=v.parseInitParams(A,O),I=S.appId;i.init(r,{appId:I});var k=y.getConfigBaseUrls(S,r),C=k.mainConfigBaseUrl,V=k.altConfigBaseUrl;function j(W,se){c.getCoreModuleLoadingInfo({appId:I,url:W},(function(ue,oe){!ue&&oe||r.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:W,errorDescription:ue}),se(oe)}))}function J(W){typeof W.onPercentage=="number"&&d.randomInt(0,100)>W.onPercentage||(function(se,ue){var oe=v.getCoreModuleParams(se,ue);l.init(oe)})(S,W)}return j(C,(function(W){if(W)J(W);else{if(!V)return;j(V,(function(se){se&&J(se)}))}})),v.getDeviceId()}:function(A,O){return null},getDeviceId:d.isBrowser()?function(){return v.getDeviceId()}:function(){return null}}},242:function(e,t,n){var r=n(611),c=n(528),i=n(884),l="ns_group";function v(d,y){(function(A,O){r.get(A).end((function(S,I){S?i.isFunction(O)&&O({ok:!1,errorDescription:JSON.stringify({err:S,res:I})}):i.isFunction(O)&&O(null,{ok:I.ok,status:I.status,response:I.body})}))})(d.url,(function(A,O){!A&&O&&O.response?i.isFunction(y)&&y(null,(function(S,I){var k,C=I||{},V=C.configurations||{},j=V[S];if(j){var J=(function(){var Ee=c.getItem(l);return Ee||(Ee=i.randomInt(1,100),c.setItem(l,Ee)),Ee})(),W=(function(Ee){var Re=[],ne=0;for(var ie in Ee)if(Ee.hasOwnProperty(ie)){var de=Ee[ie],ge=ne;ne+=de.percentage,Re.push({from:ge,to:ne,url:de.url})}return Re})(j.groups),se=(function(Ee,Re){for(var ne=0,ie=Ee.length;ne<ie;ne++){var de=Ee[ne];if(Re>de.from&&Re<=de.to)return de}return null})(W,J)||{};if(se)for(k in se)se.hasOwnProperty(k)&&(j[k]=se[k]);var ue=V.default||{};for(k in ue)ue.hasOwnProperty(k)&&!j.hasOwnProperty(k)&&(j[k]=ue[k])}else j=V.default||{};var oe={};for(k in C)C.hasOwnProperty(k)&&k!=="configurations"&&(oe[k]=C[k]);for(k in j)j.hasOwnProperty(k)&&["groups","from","to"].indexOf(k)===-1&&(oe[k]=j[k]);return oe})(d.appId,O.response)):i.isFunction(y)&&y(A.errorDescription)}))}e.exports={getCoreModuleLoadingInfo:function(d,y){var A=0;d&&d.url?v(d,(function O(S,I){S?(A+=1)<=3?v(d,O):i.isFunction(y)&&y(S):i.isFunction(y)&&y(null,I)})):i.isFunction(y)&&y("config url is not configured")}}},115:function(e,t,n){var r,c=n(550),i=n(528),l=n(13),v=n(884),d=n(616),y="ns_dev_id",A=[];function O(){var S=i.getItem(y);r||(r=S||d.toArray(c(),i.hasAccessToLocalStorage()),i.setItem(y,r))}e.exports={init:function(){l.init((function(){l.getKey(y,(function(S){S?(r=S,i.setItem(y,r),l.cleanup()):(O(),l.setKey(y,r),setTimeout(l.cleanup,2e3));for(var I=0,k=A.length;I<k;I+=1){var C=A[I];v.isFunction(C)&&C()}A=[]}))}))},addOnReadyListener:function(S){A.push(S)},getDeviceId:function(){return O(),r},reset:function(){throw new Error("Cannot call reset!")}}}},Q0={};function Ar(e){var t=Q0[e];if(t!==void 0)return t.exports;var n=Q0[e]={exports:{}};return M8[e](n,n.exports,Ar),n.exports}Ar.d=function(e,t){for(var n in t)Ar.o(t,n)&&!Ar.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Ar.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ar.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var mo={};Ar.d(mo,{IP:function(){return go.getDeviceId},Ts:function(){return go.init},rE:function(){return go.version}});var go=Ar(342);const B8={version:go.version,init:go.init,getDeviceId:go.getDeviceId};mo.Ay=B8;var Pa=mo.Ay;mo.IP,mo.Ts,mo.rE;function Fa(){if(typeof window<"u"){const e=new URLSearchParams(window.location.search).get("deviceId");if(e)return e}return Pa?Pa.getDeviceId():null}class On{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 isCoinflowMessageOrigin({url:t,fallbackUrl:n,env:r}){const c=t||n;if(!c)return!1;let i;try{i=new URL(c).hostname}catch{return!1}return r==="local"?i==="localhost":r==="ngrok"?i==="coinflow.ngrok.app":i==="coinflow.cash"||i.endsWith(".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:r,routePrefix:c,env:i,subtotal:l,useNativeSubtotal:v,presentment:d,transaction:y,blockchain:A="solana",webhookInfo:O,email:S,loaderBackground:I,handleHeightChangeId:k,bankAccountLinkRedirect:C,additionalWallets:V,chargebackProtectionData:j,chargebackProtectionAccountType:J,merchantCss:W,color:se,rent:ue,lockDefaultToken:oe,tokens:Ee,planCode:Re,disableApplePay:ne,disableGooglePay:ie,customerInfo:de,settlementType:ge,amount:D,lockAmount:f,nativeSolToConvert:R,theme:B,usePermit:$,transactionSigner:Z,authOnly:ee,deviceId:ae,jwtToken:K,origins:g,threeDsChallengePreference:_,supportEmail:H,destinationAuthKey:X,allowedPaymentMethods:me,accountFundingTransaction:ye,partialUsdcChecked:Fe,allowedWithdrawSpeeds:We,isZeroAuthorization:st,zeroAuthorizationConfig:at,userLocation:ct,appReturnUrl:Et,depositAmounts:pt,ownerOverride:Rt,bridgeId:Pt,bankLinkOnly:wt,baseUrl:w}){const x=c?`/${c}/${A}`:`/${A}`,M=new URL(x+r,w??On.getCoinflowBaseUrl(i));if(t&&M.searchParams.append("pubkey",t),Rt&&M.searchParams.append("ownerOverride",Rt),n&&M.searchParams.append("sessionKey",n),y&&M.searchParams.append("transaction",y),l&&("cents"in l?(M.searchParams.append("cents",l.cents.toString()),"currency"in l?M.searchParams.append("currency",l.currency.toString()):M.searchParams.append("currency",Ua.USD)):(M.searchParams.append("token",l.address.toString()),M.searchParams.append("amount",l.amount.toString()))),v&&M.searchParams.append("useNativeSubtotal","true"),Pt&&M.searchParams.append("bridgeId",Pt),d&&M.searchParams.append("presentment",d),O&&M.searchParams.append("webhookInfo",In.compressToEncodedURIComponent(JSON.stringify(O))),B&&M.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(B))),de&&M.searchParams.append("customerInfo",In.compressToEncodedURIComponent(JSON.stringify(de))),S&&M.searchParams.append("email",S),H&&M.searchParams.append("supportEmail",H),Ee&&M.searchParams.append("tokens",Ee.toString()),I&&M.searchParams.append("loaderBackground",I),k&&M.searchParams.append("useHeightChange",k.toString()),C&&M.searchParams.append("bankAccountLinkRedirect",C),wt&&M.searchParams.append("bankLinkOnly","true"),V&&M.searchParams.append("additionalWallets",In.compressToEncodedURIComponent(JSON.stringify(V))),j&&M.searchParams.append("chargebackProtectionData",In.compressToEncodedURIComponent(JSON.stringify(j))),J&&M.searchParams.append("chargebackProtectionAccountType",J),ae)M.searchParams.append("deviceId",ae);else{const te=Fa();te&&M.searchParams.append("deviceId",te)}return W&&M.searchParams.append("merchantCss",W),se&&M.searchParams.append("color",se),ue&&M.searchParams.append("rent",ue.lamports.toString()),R&&M.searchParams.append("nativeSolToConvert",R.lamports.toString()),oe&&M.searchParams.append("lockDefaultToken","true"),Re&&M.searchParams.append("planCode",Re),ne&&M.searchParams.append("disableApplePay","true"),ie&&M.searchParams.append("disableGooglePay","true"),ge&&M.searchParams.append("settlementType",ge),D!==void 0&&!M.searchParams.has("amount")&&M.searchParams.append("amount",D.toString()),f&&M.searchParams.append("lockAmount","true"),$===!1&&M.searchParams.append("usePermit","false"),Z&&M.searchParams.append("transactionSigner",Z),ee===!0&&M.searchParams.append("authOnly","true"),at?M.searchParams.append("zeroAuthorizationConfig",JSON.stringify(at)):st===!0&&M.searchParams.append("isZeroAuthorization","true"),Fe===!0&&M.searchParams.append("partialUsdcChecked","true"),K&&M.searchParams.append("jwtToken",K),g&&M.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(g))),me&&M.searchParams.append("allowedPaymentMethods",me.join(",")),pt&&M.searchParams.append("depositAmounts",pt.join(",")),_&&M.searchParams.append("threeDsChallengePreference",_),X&&M.searchParams.append("destinationAuthKey",X),ye&&M.searchParams.append("accountFundingTransaction",In.compressToEncodedURIComponent(JSON.stringify(ye))),We&&M.searchParams.append("allowedWithdrawSpeeds",We.join(",")),ct&&(M.searchParams.append("lat",ct.lat.toString()),M.searchParams.append("lng",ct.lng.toString())),Et&&M.searchParams.append("appReturnUrl",Et),M.toString()}static getCoinflowIntentsUrl({baseUrl:t,route:n,color:r,theme:c,env:i,origins:l,deviceId:v,merchantCss:d,loaderBackground:y,handleHeightChangeId:A}){const O=new URL(n,t??On.getCoinflowBaseUrl(i));if(l&&O.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(l))),v)O.searchParams.append("deviceId",v);else{const S=Fa();S&&O.searchParams.append("deviceId",S)}return d&&O.searchParams.append("merchantCss",d),r&&O.searchParams.append("color",r),y&&O.searchParams.append("loaderBackground",y),A&&O.searchParams.append("useHeightChange",A.toString()),c&&O.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(c))),O.toString()}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:n}=t;if(!os)throw new Error("@solana/web3.js dependency is required for Solana");if(!br)throw new Error("bs58 dependency is required for Solana");if(n)return br.encode(Uint8Array.from(n.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},eth:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},base:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},stellar:()=>{if(!("transaction"in t))return;const{transaction:n}=t;if(n)return n},monad:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},tempo:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.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"stellar":return n.stellar;case"monad":return n.monad;case"tempo":return n.tempo;case"user":return n.user;default:throw new Error("blockchain not supported!")}}}function k8(e){if(!e)return;let t,n;if("name"in e&&e.name&&(t=e.name.split(" ")[0],n=e.name.split(" ").slice(1).join(" ")),"firstName"in e&&e.firstName&&(t=e.firstName),"lastName"in e&&e.lastName&&(n=e.lastName),t&&n)return{firstName:t,lastName:n}}function is({event:e,error:t,env:n,merchantId:r}){const c=t instanceof Error,i=c?t.message:t,l=c?t.stack:"";fetch(`${On.getCoinflowApiUrl(n)}/api/telemetry/frontend-error`,{method:"POST",body:JSON.stringify({message:i,stackTrace:l,merchantId:r,event:e}),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var vo=(e=>(e.SignMessage="signMessage",e.SignTransaction="signTransaction",e.SendTransaction="sendTransaction",e.HeightChange="heightChange",e.Success="success",e.AuthDeclined="authDeclined",e.InputError="inputError",e.InputValid="inputValid",e.Loaded="loaded",e.AccountLinked="accountLinked",e.AccountNotLinked="accountNotLinked",e.AccountLinkError="accountLinkError",e.Redirect="redirect",e.Overlay="overlay",e.UpdateSubtotal="updateSubtotal",e))(vo||{});function ss(e){let t;if("signer"in e&&typeof e.signer=="object"&&e.signer&&"wallet"in e.signer?t=e.signer.wallet:"wallet"in e&&e.wallet&&(t=e.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 ef(e,t,n){let r;try{if(r=JSON.parse(e),!("method"in r)||!("data"in r))return}catch(l){console.error("handleIFrameMessage JSON parse",l);return}const{data:c,method:i}=r;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(c):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(c):void 0;case"sendTransaction":return t.handleSendTransaction(c);case"heightChange:"+n:return t.handleHeightChange?t.handleHeightChange(c):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(r.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(r.info);return;case"inputError":if(!t.onInputError)return;t.onInputError(r.info);return;case"inputValid":if(!t.onInputValid)return;t.onInputValid(r.info);return;case"loaded":return;case"accountLinked":if(!t.onAccountLinked)return;t.onAccountLinked(r.info);return;case"accountNotLinked":if(!t.onAccountNotLinked)return;t.onAccountNotLinked(r.info);return;case"accountLinkError":if(!t.onAccountLinkError)return;t.onAccountLinkError(r.info);return;case"redirect":window.open(c,"_blank");return;case"overlay":if(!t.handleOverlay)return;t.handleOverlay(c);return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(vo)}`)}function as(e){let t,n;return"signer"in e&&typeof e.signer=="object"&&e.signer&&"blockchain"in e.signer&&"wallet"in e.signer?(t=e.signer.blockchain,n=e.signer.wallet):"blockchain"in e&&e.blockchain&&(t=e.blockchain,n=e.wallet),t?{...On.byBlockchain(t,{solana:()=>D8({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),eth:()=>yo({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),polygon:()=>yo({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),base:()=>yo({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),arbitrum:()=>yo({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),stellar:()=>U8({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),monad:()=>yo({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),tempo:()=>yo({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),user:()=>P8(e)})(),onAccountLinked:e.onAccountLinked,onAccountNotLinked:e.onAccountNotLinked,onAccountLinkError:e.onAccountLinkError}:{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid,onAccountLinked:e.onAccountLinked,onAccountNotLinked:e.onAccountNotLinked,onAccountLinkError:e.onAccountLinkError}}function D8({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{const l=tf(i);return await e.sendTransaction(l)},handleSignMessage:async i=>{const l=e.signMessage;if(!l)throw new Error("signMessage is not supported by this wallet");const v=await l(new TextEncoder().encode(i));if(!br)throw new Error("bs58 dependency is required");return br.encode(v)},handleSignTransaction:async i=>{const l=e.signTransaction;if(!l)throw new Error("signTransaction is not supported by this wallet");const v=tf(i),d=await l(v);if(!br)throw new Error("bs58 dependency is required");return br.encode(Uint8Array.from(d.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function tf(e){if(!os)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 t=br.decode(e),n=os.VersionedTransaction.deserialize(t);return n.version==="legacy"?os.Transaction.from(t):n}function yo({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{const l=JSON.parse(Buffer.from(i,"base64").toString()),{hash:v}=await e.sendTransaction(l);return v},handleSignMessage:async i=>e.signMessage(i),onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function U8({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{throw new Error(`sendTransaction is not supported on stellar, error when sending: ${i}`)},handleSignMessage:async i=>{if(!e.signMessage)throw new Error("signMessage is not supported by this wallet");return await e.signMessage(i)},handleSignTransaction:async i=>{if(!e.signTransaction)throw new Error("signTransaction is not supported by this wallet");return await e.signTransaction(i)},onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function P8({onSuccess:e,onAuthDeclined:t,onInputError:n,onInputValid:r}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:e,onAuthDeclined:t,onInputError:n,onInputValid:r}}class F8{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 Wo="tokenExCardNumber",wo="tokenExCardCvv",nf={[Jr.VISA]:"visa",[Jr.MASTERCARD]:"masterCard",[Jr.AMEX]:"americanExpress",[Jr.DISCOVER]:"discover"};async function rf(e){const{token:t,origins:n,env:r}=e;return new Promise((c,i)=>{fetch(new On(r).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:n,token:t,merchantId:"merchantId"in e?e.merchantId:void 0,checkoutJwt:"checkoutJwt"in e?e.checkoutJwt:void 0})}).then(async l=>{c(await l.json())}).catch(l=>i(l))})}function Va({env:e,setTokenExScriptLoaded:t}){const n="tokenex-script";document.head.querySelector(`#${n}`)&&t(!0);const r=document.createElement("script");r.src=e==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",r.id=n,document.head.appendChild(r),document.getElementById(n).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),t(!0)})}function V8({iframe:e,setCachedToken:t,setLoaded:n}){const r=async()=>(e.tokenize(),await new Promise((c,i)=>{e.on("tokenize",l=>{t(l.token),c(l)}),e.on("validate",l=>{(!l.isValid||l.isCvvValid===!1)&&i(l)})}));return e.on("change",()=>t(void 0)),e.on("cvvChange",()=>t(void 0)),e.on("load",()=>{setTimeout(()=>n(!0),350);const c=document.querySelector("#tx_iframe_tokenExCardNumber");c&&(c.scrolling="no")}),e.on("focus",()=>{e.focus()}),e.on("cvvFocus",()=>{e.cvvFocus()}),n(!1),e.load(),{...e,tokenize:r}}async function of(e){const{token:t,cardType:n}=e;return await Ga(wo,e,{cvvOnly:!0,cvv:!0,cvvContainerID:wo,placeholder:"CVV",token:t,cardType:nf[n]})}async function sf(e){return await Ga(Wo,e,{cvv:!0,cvvContainerID:wo,cvvPlaceholder:"CVV"})}async function af(e){return await Ga(Wo,e,{cvv:!1})}async function Ga(e,t,n){const{tokenExScriptLoaded:r,css:c,debug:i,font:l,setCachedToken:v,setLoaded:d}=t;if(!r&&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 y=await rf({...t,token:n.token}),{styles:A}=G8(c),O={...y,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:A,font:l,debug:i??!1,...n},S=TokenEx.Iframe(e,O);return V8({iframe:S,setCachedToken:v,setLoaded:d})}function G8(e){const t=JSON.parse(e);return{styles:{base:Sr(t.base),focus:Sr(t.focus),error:Sr(t.error),placeholder:Sr(t.placeholder),cvv:{base:Sr(t.cvv?.base),focus:Sr(t.cvv?.focus),error:Sr(t.cvv?.error),placeholder:Sr(t?.placeholder)}}}}function Sr(e){if(!e)return"";if(typeof e=="string")return e;let t="";for(const[n,r]of Object.entries(e)){let c="";n.split("").forEach(i=>{i.toUpperCase()===i?c+="-"+i.toLowerCase():c+=i}),t+=c+":"+r+";"}return t}const cf={"card-number":180,expiration:96,cvv:80},uf=8,zo="3rem",Ha=48,$a=1,cs=1,ja=2,H8={"card-number":"1fr",expiration:"96px",cvv:"80px"},ff={"card-number":"card",expiration:"exp",cvv:"cvv"};function Zo(e,t){return e.includes(t)}function $8(e){const t=e.reduce((r,c)=>r+cf[c],0),n=Math.max(0,e.length-1)*uf;return t+n}function j8({inputs:e,hasIcon:t}){const n=[],r=[],c=(i,l)=>{n.length>0&&(n.push(`d${i.toUpperCase()}`),r.push("1px")),n.push(i),r.push(l)};t&&Zo(e,"card-number")&&c("icon","auto");for(const i of e)c(ff[i],H8[i]);return`"${n.join(" ")}" ${zo} / ${r.join(" ")}`}function K8({inputs:e,hasIcon:t}){const n=Zo(e,"card-number"),r=Zo(e,"expiration"),c=Zo(e,"cvv");if(!n||!r&&!c)return null;const i=`${zo} ${$a}px ${zo}`;if(r&&c)return{template:lf(t?'"icon card card card" "dHR dHR dHR dHR" "exp exp dEV cvv"':'"card card card" "dHR dHR dHR" "exp dEV cvv"',i,t?"auto minmax(0, 1fr) 1px minmax(0, 1fr)":"minmax(0, 1fr) 1px minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"},{area:"dEV",orientation:"v"}]};const l=r?"exp":"cvv",v=t?`"icon card" "dHR dHR" "${l} ${l}"`:`"card" "dHR" "${l}"`;return{template:lf(v,i,t?"auto minmax(0, 1fr)":"minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"}]}}function lf(e,t,n){const r=e.match(/"[^"]*"/g)??[],c=t.split(/\s+/);return`${r.map((l,v)=>`${l} ${c[v]??""}`.trim()).join(" ")} / ${n}`}function us({inputs:e,hasIcon:t=!1,allowTwoRow:n=!0}){const r=e.map(v=>ff[v]);if(e.length===1)return{inline:`"${r[0]}" ${zo} / 1fr`,twoRow:null,breakpointPx:null,fieldAreas:r,hasIconArea:!1,twoRowDividers:[]};const c=t&&Zo(e,"card-number"),i=j8({inputs:e,hasIcon:c}),l=n?K8({inputs:e,hasIcon:c}):null;return{inline:i,twoRow:l?.template??null,breakpointPx:l?$8(e)+2*cs:null,fieldAreas:r,hasIconArea:c,twoRowDividers:l?.dividers??[]}}function df({gridSelector:e,layout:t,containerName:n,extraBaseRules:r="",extraCompactRules:c=""}){const i=`${e} { display: grid; grid-template: ${t.inline}; }
19
+ ${r}`;if(!t.twoRow||t.breakpointPx===null)return i;const l=n?`${n} `:"";return`${i}
20
+ @container ${l}(width < ${t.breakpointPx}px) {
21
+ ${e} { grid-template: ${t.twoRow}; }
22
+ ${c}
23
+ }`}const Ka={"card-form":["card-number","expiration","cvv"],"card-number-form":["card-number","expiration"],"cvv-form":["cvv"]},fs={"card-form":us({inputs:Ka["card-form"]}),"card-number-form":us({inputs:Ka["card-number-form"]}),"cvv-form":us({inputs:Ka["cvv-form"]})},hf=2*cs+2*ja,Wa=Ha+hf,pf=2*Ha+$a+hf;function za(e){return{inline:e.inline,compact:e.twoRow??void 0,compactMaxWidthPx:e.breakpointPx??void 0,areas:e.fieldAreas}}const ls={"card-form":za(fs["card-form"]),"card-number-form":za(fs["card-number-form"]),"cvv-form":za(fs["cvv-form"])},Za="coinflow-card-form-skeleton-pulse",mf=300;function Ya({variant:e,width:t}){const{compact:n,compactMaxWidthPx:r}=ls[e];return n!==void 0&&r!==void 0&&t>0&&t<r}function gf({variant:e,width:t}){return Ya({variant:e,width:t})?pf:Wa}function vf({variant:e,width:t}){const{inline:n,compact:r}=ls[e];return r&&Ya({variant:e,width:t})?r:n}function yf(e){return`coinflow-card-form-skeleton-grid--${e}`}function W8(e){const t=yf(e),n=df({gridSelector:`.${t}`,layout:fs[e],extraBaseRules:`.${t} { gap: 0; flex: 1; }`});return`@keyframes ${Za} {0%,100%{opacity:1}50%{opacity:0.4}}
24
+ ${n}`}const wf=ja+cs,_f={minWidth:"0",margin:"1px",borderRadius:"4px",opacity:"1",animation:`${Za} 1.5s ease-in-out infinite`},z8={backdrop:"rgba(255, 255, 255, 0.05)",box:"rgba(255, 255, 255, 0.30)"},Z8={backdrop:"rgba(0, 0, 0, 0.04)",box:"rgba(0, 0, 0, 0.30)"},Y8={backdrop:"rgba(128, 128, 128, 0.08)",box:"rgba(128, 128, 128, 0.38)"};function q8(e){const t=e.trim().toLowerCase();let n=t.startsWith("#")?t.slice(1):"";if(n&&/^[0-9a-f]+$/.test(n)&&(n.length===3&&(n=n.split("").map(c=>c+c).join("")),n.length===8&&(n=n.slice(0,6)),n.length===6))return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)];const r=t.match(/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/);return r?[Number(r[1]),Number(r[2]),Number(r[3])]:null}function Ef(e){const t=e?.background?q8(e.background):null;if(!t)return Y8;const[n,r,c]=t;return(.299*n+.587*r+.114*c)/255<.5?z8:Z8}const Yo={cardNumber:"Card number is invalid. Please double check information.",expiration:"Expiration is invalid. Please double check information.",cvv:"CVV is invalid. Please double check information.",cvvEmpty:"Please enter your CVV to proceed."};function X8({cardError:e,expirationError:t,cvvError:n,cvvEmpty:r,isCvvOnly:c}){return e?{field:"card-number",message:Yo.cardNumber}:t?{field:"expiration",message:Yo.expiration}:n?c&&r?{field:"cvv",message:Yo.cvvEmpty}:{field:"cvv",message:Yo.cvv}:null}function J8({previous:e,current:t}){return t?e?e.field===t.field?e.message===t.message?[]:[{kind:"error",info:t}]:[{kind:"valid",info:{field:e.field}},{kind:"error",info:t}]:[{kind:"error",info:t}]:e?[{kind:"valid",info:{field:e.field}}]:[]}He.nftCartItem=void 0,(e=>{(t=>{t.NFT="nft"})(e.itemClass||(e.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"})(e.productType||(e.productType={}))})(He.nftCartItem||(He.nftCartItem={}));let qa=null;async function Q8({merchantId:e,env:t}){if(!qa&&typeof window<"u")try{const n=await window.Verisoul?.session();n?.session_id&&(qa=n.session_id)}catch(n){console.error(n),is({event:"ProtectionInit",env:t,merchantId:e,error:n})}}function em(){return qa}const tm="forterToken",nm=1024,rm=/[\x00-\x1F\x7F]/;let ds=null,Rf=!1,Xa=!1;function Ja(e){if(!e)return null;let t=e;try{t=decodeURIComponent(e)}catch{}return!t||t.length>nm||rm.test(t)?null:t}function bf(){if(typeof document>"u"||!document.cookie)return null;let e=null;for(const t of document.cookie.split(";")){const n=t.indexOf("=");if(n===-1)continue;const r=t.slice(0,n).trim(),c=t.slice(n+1);if(r===tm)return c;const i=r.toLowerCase();i.includes("forter")&&i.includes("token")&&(e=c)}return e}function qo(){return ds??Ja(bf())}const om="ftr:tokenReady";function im(e){const t=e.detail,n=typeof t=="string"?Ja(t):null;n&&(ds=n,Rf=!0)}function sm({timeoutMs:e=15e3,intervalMs:t=250}={}){if(typeof window>"u"||(typeof document<"u"&&document.addEventListener(om,im),Xa))return;Xa=!0;const n=Date.now(),r=()=>{if(!Rf){const c=Ja(bf());c&&(ds=c)}if(Date.now()-n>=e){Xa=!1,ds||am();return}window.setTimeout(r,t)};r()}function am(){if(typeof document>"u")return;const e=(document.cookie||"").split(";").map(n=>n.split("=")[0].trim()).filter(Boolean),t=typeof window<"u"?Object.keys(window).filter(n=>/ftr|forter/i.test(n)):[];console.warn("[forter] token never surfaced after init.","cookieNames:",e,"forterGlobals:",t)}async function cm({timeoutMs:e=2e3,intervalMs:t=100}={}){const n=qo();return n||(typeof window>"u"?null:new Promise(r=>{const c=Date.now(),i=()=>{const l=qo();if(l)return r(l);if(Date.now()-c>=e)return r(qo());window.setTimeout(i,t)};window.setTimeout(i,t)}))}const Af="x-device-id",Sf="x-session-id",If="x-coinflow-referrer",Of="x-forter-token";function Nf(){return{[Af]:Fa(),[Sf]:em(),[Of]:qo()}}function um(){try{return document.referrer||null}catch{return null}}function fm(){return{...Nf(),[If]:um()}}const lm="9JBW2RHC7JNJN8ZQ",Tf={prod:"315da543-c486-435a-aa21-53844c469822",sandbox:"e9f629c4-80ee-4c6d-967e-62af47d8679e"};async function xf({coinflowEnv:e,merchantId:t}){const n=e==="prod"?"prod":"sandbox";if(!(typeof window<"u"&&new URLSearchParams(window.location.search).has("deviceId"))){const c=await new On(e).getNSurePartnerId(t);if(c){const i=lm;try{Pa.init(i,c)}catch(l){console.error("Failed to initialize nSure SDK:",l),is({event:"NSureInit",error:l,env:e,merchantId:t})}}}if(typeof document<"u"&&!document.querySelector("script[verisoul-project-id]")){const i=Tf[n]??Tf.sandbox;i&&await new Promise(l=>{const v=document.createElement("script");v.src=`https://js.v.coinflow.sh/${n}/bundle.js`,v.async=!0,v.setAttribute("verisoul-project-id",i),v.onload=()=>{Q8({merchantId:t,env:e}).then(l)},v.onerror=d=>{is({event:"ProtectionError",error:d,env:e,merchantId:t}),l()},document.head.appendChild(v)})}}function dm(e){return JSON.stringify(e)}function hm(e){if(!e)return null;try{const t=JSON.parse(e);return typeof t?.token!="string"||!t.token?null:{token:t.token,country:typeof t.country=="string"?t.country:void 0}}catch{return{token:e}}}function pm({cached:e,country:t}){return e?t?e.country===t:!0:!1}const Lf="bankLinkStatus";function mm({status:e}){return{[Lf]:e}}function gm({bankLinkOnly:e,hasCallbackRedirect:t,isReactNativeLink:n}){return e?"emit":t?"redirect":n?"returnToApp":"returnToCheckout"}const vm=500,ym=ke.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return On.getCoinflowUrl(this.args)}},emits:{onMessage(e){return!0}},methods:{sendMessage(e){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(e,"*")},handleIframeMessages({data:e,origin:t}){const n=new URL(On.getCoinflowBaseUrl(this.args.env)).origin;if(t!==n||typeof e!="string")return;this.$emit("onMessage",{data:e,origin:t});const r=ef(e,this.args,this.args.handleHeightChangeId);r&&r.then(this.sendMessage).catch(c=>{console.error(c),this.sendMessage("ERROR "+c.message)})},async listenForMessage(e){let t;return new Promise((n,r)=>{if(t=({data:c,origin:i})=>{const l=new URL(On.getCoinflowBaseUrl(this.args.env)).origin;if(i===l&&typeof c=="string"){if(c.startsWith("ERROR")){r(new Error(c.replace("ERROR","")));return}e(c)&&n(c)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(e,t){return this.sendMessage(e),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),Qa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,c]of t)n[r]=c;return n},wm=["src","scrolling"];function _m(e,t,n,r,c,i){return ke.openBlock(),ke.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write;geolocation",title:"withdraw",frameBorder:"0",src:e.url,scrolling:e.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const l=e.$refs.iframeRef;l&&(l.style.opacity="1")})},null,40,wm)}const hs=Qa(ym,[["render",_m]]),Em=ke.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:hs},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const e=ss(this.args);return{...this.args,walletPubkey:e,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...as(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Rm(e,t,n,r,c,i){const l=ke.resolveComponent("coinflow-i-frame");return ke.openBlock(),ke.createBlock(l,{args:{...e.iframeProps,...e.messageHandlers,handleHeightChangeId:e.handleHeightChangeId}},null,8,["args"])}const bm=Qa(Em,[["render",Rm]]),Am=ke.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:hs},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const e=ss(this.args);return{...this.args,walletPubkey:e,route:`/purchase-v2/${this.args.merchantId}`,transaction:On.getTransaction(this.args)}},messageHandlers(){return{...as(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Sm(e,t,n,r,c,i){const l=ke.resolveComponent("coinflow-i-frame");return ke.openBlock(),ke.createBlock(l,{args:{...e.iframeProps,...e.messageHandlers,handleHeightChangeId:e.handleHeightChangeId}},null,8,["args"])}const Im=Qa(Am,[["render",Sm]]),ec=e=>{const t=ke.ref(!1),n=ke.ref(!1),r=ke.ref(void 0),c=ke.ref(void 0);ke.onMounted(()=>{Va({env:e.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),n.value=!0}})});const i=O=>c.value=O,l=()=>t.value=!0,v=O=>r.value=O,d=async O=>{const S=await of({...e,...O,tokenExScriptLoaded:n.value,setCachedToken:i,setLoaded:l});return v(S),S},y=async O=>{const S=await sf({...e,...O,tokenExScriptLoaded:n.value,setCachedToken:i,setLoaded:l});return v(S),S},A=async O=>{const S=await af({...e,...O,tokenExScriptLoaded:n.value,setCachedToken:i,setLoaded:l});return v(S),S};return ke.watchEffect(O=>{r.value&&(r.value.load(),O(()=>r.value?.remove()))}),{tokenExIframe:r,initializeTokenExIframe:y,initializeCvvOnlyTokenExIframe:d,initializeTokenExCardOnlyIframe:A,loaded:t,cachedToken:c,setTokenExScriptTag:Va,tokenExScriptLoaded:n}},Om=["id"],Cf=ke.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(e,{expose:t}){const{initializeTokenExIframe:n,tokenExIframe:r}=ec(e.args);async function c(){if(!r.value)throw new Error("Unable to get token");return r.value.tokenize()}t({getToken:c});function i(){return JSON.stringify(e.args.css)}return ke.watchEffect(()=>{n({css:i(),debug:e.args.debug,origins:e.args.origins,font:e.args.font})},{}),(l,v)=>(ke.openBlock(),ke.createElementBlock("div",{id:ke.unref(Wo)},null,8,Om))}}),Nm=["id"],Mf=ke.defineComponent({__name:"CoinflowCvvInput",setup(e){return(t,n)=>(ke.openBlock(),ke.createElementBlock("div",{id:ke.unref(wo)},null,8,Nm))}}),Tm=["id"],Bf=ke.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(e,{expose:t}){const{initializeCvvOnlyTokenExIframe:n,tokenExIframe:r}=ec(e.args);async function c(){if(!r.value)throw new Error("Unable to get token");return r.value.tokenize()}t({getToken:c});function i(){return JSON.stringify(e.args.css)}return ke.watchEffect(()=>{n({...e.args,origins:e.args.origins??[],css:i(),font:e.args.font})},{}),(l,v)=>(ke.openBlock(),ke.createElementBlock("div",{id:ke.unref(wo)},null,8,Tm))}}),xm=ke.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(e){return ke.onMounted(()=>{xf({coinflowEnv:e.args.env,merchantId:e.args.merchantId})}),(t,n)=>null}}),Lm=["id"],kf=ke.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(e,{expose:t}){const{tokenExIframe:n,initializeTokenExCardOnlyIframe:r}=ec(e.args);async function c(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:c});function i(){return JSON.stringify(e.args.css)}return ke.watchEffect(()=>{r({css:i(),debug:e.args.debug,origins:e.args.origins,font:e.args.font})},{}),(l,v)=>(ke.openBlock(),ke.createElementBlock("div",{id:ke.unref(Wo)},null,8,Lm))}}),Cm=["src"],Df=ke.defineComponent({__name:"CoinflowCardFormV2",props:{args:{type:Object,required:!0}},setup(e,{expose:t}){const n=ke.ref(null),r=ke.ref(null),c=ke.ref(!1),i=ke.ref(null),l=ls[e.args.variant],v=l.areas,d=ke.ref(Wa),y=ke.ref(l.inline),A=ke.ref(!0),O=ke.computed(()=>c.value&&i.value?`${i.value}px`:`${d.value}px`),S=ke.computed(()=>Ef(e.args.theme));function I(W){return{..._f,background:S.value.box,gridArea:W}}const k=ke.computed(()=>{const W=On.getCoinflowBaseUrl(e.args.env),se=new URL(`/form/v2/${e.args.variant}`,W);return se.searchParams.append("merchantId",e.args.merchantId),se.searchParams.append("useHeightChange","true"),e.args.theme&&se.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(e.args.theme))),e.args.token&&se.searchParams.append("token",e.args.token),se.toString()});function C(W){const{data:se,origin:ue,source:oe}=W;if(oe!==n.value?.contentWindow)return;const Ee=new URL(On.getCoinflowBaseUrl(e.args.env)).origin;if(ue===Ee)try{const Re=JSON.parse(se);if(Re.method===vo.Loaded)c.value=!0,e.args.onLoad?.();else if(Re.method===vo.HeightChange){const ne=Number(Re.data);Number.isFinite(ne)&&ne>0&&(i.value=ne)}}catch{}}function V(W){W.propertyName==="opacity"&&c.value&&(A.value=!1)}ke.watch(c,(W,se,ue)=>{if(!W)return;const oe=setTimeout(()=>A.value=!1,mf);ue(()=>clearTimeout(oe))});let j=null;ke.onMounted(()=>{window.addEventListener("message",C);const W=r.value;if(!W||!l.compact)return;const se=()=>{const ue=W.clientWidth;d.value=gf({variant:e.args.variant,width:ue}),y.value=vf({variant:e.args.variant,width:ue})};se(),j=new ResizeObserver(se),j.observe(W)}),ke.onUnmounted(()=>{window.removeEventListener("message",C),j?.disconnect()});async function J(){return new Promise((W,se)=>{if(!n.value?.contentWindow){se(new Error("Card form iframe not loaded"));return}const ue=({data:Ee,origin:Re})=>{const ne=new URL(On.getCoinflowBaseUrl(e.args.env)).origin;if(Re===ne)try{const ie=JSON.parse(Ee);if(ie.method!=="tokenize")return;if(window.removeEventListener("message",ue),typeof ie.data=="string"&&ie.data.startsWith("ERROR")){se(new Error(ie.data.replace("ERROR ","")));return}const de=typeof ie.data=="string"?JSON.parse(ie.data):ie.data;W(de)}catch{}};window.addEventListener("message",ue);const oe=new URL(On.getCoinflowBaseUrl(e.args.env)).origin;n.value.contentWindow.postMessage("tokenize",oe)})}return t({tokenize:J}),(W,se)=>(ke.openBlock(),ke.createElementBlock("div",{ref_key:"wrapperRef",ref:r,style:ke.normalizeStyle({position:"relative",width:"100%",height:O.value})},[A.value?(ke.openBlock(),ke.createElementBlock("div",{key:0,role:"status","aria-label":"Loading card form",onTransitionend:V,style:ke.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",pointerEvents:"none",flexDirection:"column",gap:"8px",padding:`${ke.unref(wf)}px`,boxSizing:"border-box",borderRadius:"8px",background:S.value.backdrop,opacity:c.value?"0%":"100%",transition:"opacity 300ms linear, height 150ms ease-out"})},[ke.createElementVNode("div",{style:ke.normalizeStyle({display:"grid",gap:0,flex:1,width:"100%",gridTemplate:y.value})},[(ke.openBlock(!0),ke.createElementBlock(ke.Fragment,null,ke.renderList(ke.unref(v),ue=>(ke.openBlock(),ke.createElementBlock("div",{key:ue,style:ke.normalizeStyle(I(ue))},null,4))),128))],4)],36)):ke.createCommentVNode("",!0),ke.createElementVNode("iframe",{ref_key:"iframeRef",ref:n,src:k.value,title:"Card Form",frameBorder:"0",allow:"payment",style:ke.normalizeStyle({width:"100%",height:O.value,border:"none",opacity:c.value?1:0,transition:"opacity 300ms linear, height 150ms ease-out"})},null,12,Cm)],4))}}),Mm={style:{position:"relative",height:"100%"}},Bm={style:{position:"relative",zIndex:10,height:"100%"}},Uf=ke.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(e){const{onSuccess:t}=e.args,n=e.args.subtotal;function r(){const S=ss(e.args);return{...e.args,subtotal:n,walletPubkey:S,transaction:void 0,routePrefix:"form",route:`/${e.route}/${e.args.merchantId}`}}function c(){return{...as(e.args),handleHeightChange:e.args.handleHeightChange}}const i=ke.ref(.8),l=ke.ref("flex"),v=Math.random().toString(16).substring(2),d=ke.ref(null),y=ke.ref(!1);let A=JSON.stringify(n);ke.watch([y,()=>e.args.subtotal],([S,I])=>{if(!S||!I)return;const k=JSON.stringify(I);A!==k&&(A=k,d.value?.sendMessage(`${vo.UpdateSubtotal}:${k}`))});function O({data:S}){try{const I=JSON.parse(S);if("method"in I&&I.method==="loaded"&&(i.value=1,l.value="none",y.value=!0),"method"in I&&typeof I.data=="string"&&I.data.startsWith("ERROR"))return e.args?.onError?.(I.info),!1;if(!("method"in I)||I.method!=="getToken")return}catch{return}t?.(S)}return(S,I)=>(ke.openBlock(),ke.createElementBlock("div",Mm,[ke.createElementVNode("div",{style:ke.normalizeStyle({backgroundColor:e.args.color,display:e.overlayDisplayOverride??l.value,opacity:i.value,alignItems:e.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[ke.renderSlot(S.$slots,"default")],4),ke.createElementVNode("div",Bm,[ke.createVNode(hs,{ref_key:"iframeRef",ref:d,onOnMessage:O,args:{...r(),...c(),handleHeightChangeId:ke.unref(v)}},null,8,["args"])])]))}}),km={id:"svg-logo",viewBox:"0 0 35 15"},Dm={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"},Um={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Pm=["fill"],Fm=ke.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(e){const t=e.color==="white"?"#000":"#FFF";return(n,r)=>(ke.openBlock(),ke.createElementBlock("svg",km,[(ke.openBlock(),ke.createElementBlock("svg",Dm,[r[1]||(r[1]=ke.createElementVNode("title",null,"Apple Logo",-1)),ke.createElementVNode("g",Um,[ke.createElementVNode("g",{fill:ke.unref(t)},[...r[0]||(r[0]=[ke.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,Pm)])]))]))}}),Vm=ke.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(e){return(t,n)=>(ke.openBlock(),ke.createBlock(Uf,{route:"apple-pay",args:e.args},{default:ke.withCtx(()=>[ke.createVNode(Fm,{color:e.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Gm={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Hm={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},$m=ke.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(e){return(t,n)=>(ke.openBlock(),ke.createElementBlock(ke.Fragment,null,[e.color==="white"?(ke.openBlock(),ke.createElementBlock("svg",Gm,[...n[0]||(n[0]=[ke.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)])])):ke.createCommentVNode("",!0),e.color==="black"?(ke.openBlock(),ke.createElementBlock("svg",Hm,[...n[1]||(n[1]=[ke.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)])])):ke.createCommentVNode("",!0)],64))}}),jm=ke.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(e){return(t,n)=>(ke.openBlock(),ke.createBlock(Uf,{route:"google-pay",args:e.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:ke.withCtx(()=>[ke.createVNode($m,{color:e.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Km=Df,Wm=Cf,zm=Mf,Zm=Bf,Ym=kf;He.BANK_LINK_REVEAL_DELAY_MS=vm,He.BANK_LINK_STATUS_PARAM=Lf,He.BankingCurrencies=J0,He.CARD_ENTRY_BORDER_PX=cs,He.CARD_ENTRY_DIVIDER_PX=$a,He.CARD_ENTRY_MARGIN_PX=ja,He.CARD_ENTRY_MIN_WIDTHS=cf,He.CARD_ENTRY_ROW_HEIGHT=zo,He.CARD_ENTRY_ROW_HEIGHT_PX=Ha,He.CARD_ENTRY_SLOT_GAP_PX=uf,He.CARD_FIELD_ERROR_MESSAGES=Yo,He.CARD_TYPE_MAPPING=nf,He.COMPACT_SKELETON_HEIGHT_PX=pf,He.CardType=Jr,He.ChargebackProtectionAccountType=Xc,He.CoinflowApplePayButton=Vm,He.CoinflowCardForm=Km,He.CoinflowCardFormV2=Df,He.CoinflowCardNumberInput=Cf,He.CoinflowCardNumberOnlyInput=kf,He.CoinflowCvvInput=Mf,He.CoinflowCvvOnlyInput=Bf,He.CoinflowGooglePayButton=jm,He.CoinflowIframe=hs,He.CoinflowLegacyCardNumberInput=Wm,He.CoinflowLegacyCardNumberOnlyInput=Ym,He.CoinflowLegacyCvvInput=zm,He.CoinflowLegacyCvvOnlyInput=Zm,He.CoinflowPurchase=Im,He.CoinflowPurchaseProtection=xm,He.CoinflowUtils=On,He.CoinflowWithdraw=bm,He.Currency=Ua,He.CurrencyToISO4217=A8,He.DEVICE_ID_HEADER=Af,He.EventBus=F8,He.FORTER_TOKEN_HEADER=Of,He.IFrameMessageMethods=vo,He.INLINE_SKELETON_HEIGHT_PX=Wa,He.MerchantStyle=qc,He.PaymentMethods=Qc,He.REFERRER_HEADER=If,He.RN_REDIRECT_MESSAGE_NAME=Td,He.SESSION_ID_HEADER=Sf,He.SKELETON_BOX_STYLE=_f,He.SKELETON_FADE_MS=mf,He.SKELETON_LAYOUTS=ls,He.SKELETON_PULSE_ANIMATION_NAME=Za,He.SKELETON_ROOT_PADDING_PX=wf,He.SettlementType=Yc,He.ThreeDsChallengePreference=Jc,He.TokenExCardNumberIframeId=Wo,He.TokenExCvvContainerID=wo,He.WithdrawCategory=zc,He.WithdrawCurrencies=X0,He.WithdrawSpeed=Zc,He.awaitForterToken=cm,He.bankLinkCallbackParams=mm,He.buildCardEntryGridCss=df,He.buildCardEntryLayout=us,He.buildSkeletonCss=W8,He.canReuseLinkToken=pm,He.captureForterToken=sm,He.doInitializeCvvOnlyTokenExIframe=of,He.doInitializeTokenExCardOnlyIframe=af,He.doInitializeTokenExIframe=sf,He.getCardFieldInputEvents=J8,He.getCardFieldValidationError=X8,He.getCoinflowProtectionHeaders=Nf,He.getCoinflowPurchaseHeaders=fm,He.getCurrencyDecimals=x8,He.getCustomerName=k8,He.getForterToken=qo,He.getHandlers=as,He.getIframeConfig=rf,He.getSkeletonColors=Ef,He.getSkeletonGridClass=yf,He.getSkeletonGridTemplate=vf,He.getWalletPubkey=ss,He.guessSkeletonHeightPx=gf,He.handleIFrameMessage=ef,He.initCoinflowProtection=xf,He.invertRate=C8,He.isBankingCurrency=I8,He.isTypedCurrencyCents=L8,He.isWithdrawCurrency=S8,He.isZeroAuthSavedPaymentMethods=Od,He.isZeroAuthVerifyCard=Id,He.parseCachedLinkToken=hm,He.paymentMethodLabels=Nd,He.recordFrontendError=is,He.resolveBankLinkCompletion=gm,He.serializeCachedLinkToken=dm,He.setTokenExScriptTag=Va,He.shouldStackSkeleton=Ya,Object.defineProperty(He,Symbol.toStringTag,{value:"Module"})}));