vendor: 4,783 bytes, line 1
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44314,140965,e=>{"use strict";var t=e.i(470525);class r extends t.Hash{constructor(e,r,s,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=r,this.padOffset=s,this.isLE=o,this.buffer=new Uint8Array(e),this.view=(0,t.createView)(this.buffer)}update(e){(0,t.aexists)(this),e=(0,t.toBytes)(e),(0,t.abytes)(e);let{view:r,buffer:s,blockLen:o}=this,n=e.length;for(let a=0;a<n;){let i=Math.min(o-this.pos,n-a);if(i===o){let r=(0,t.createView)(e);for(;o<=n-a;a+=o)this.process(r,a);continue}s.set(e.subarray(a,a+i),this.pos),this.pos+=i,a+=i,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,t.aexists)(this),(0,t.aoutput)(e,this),this.finished=!0;let{buffer:r,view:s,blockLen:o,isLE:n}=this,{pos:a}=this;r[a++]=128,(0,t.clean)(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(s,0),a=0);for(let e=a;e<o;e++)r[e]=0;!function(e,t,r,s){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,s);let o=BigInt(32),n=BigInt(0xffffffff),a=Number(r>>o&n),i=Number(r&n),c=4*!!s,u=4*!s;e.setUint32(t+c,a,s),e.setUint32(t+u,i,s)}(s,o-8,BigInt(8*this.length),n),this.process(s,0);let i=(0,t.createView)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,l=this.get();if(u>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)i.setUint32(4*e,l[e],n)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:s,finished:o,destroyed:n,pos:a}=this;return e.destroyed=n,e.finished=o,e.length=s,e.pos=a,s%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}let s=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),o=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),n=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),a=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]);var i=e.i(709361);let c=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),u=new Uint32Array(64);class l extends r{constructor(e=32){super(64,e,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){let{A:e,B:t,C:r,D:s,E:o,F:n,G:a,H:i}=this;return[e,t,r,s,o,n,a,i]}set(e,t,r,s,o,n,a,i){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|s,this.E=0|o,this.F=0|n,this.G=0|a,this.H=0|i}process(e,r){for(let t=0;t<16;t++,r+=4)u[t]=e.getUint32(r,!1);for(let e=16;e<64;e++){let r=u[e-15],s=u[e-2],o=(0,t.rotr)(r,7)^(0,t.rotr)(r,18)^r>>>3,n=(0,t.rotr)(s,17)^(0,t.rotr)(s,19)^s>>>10;u[e]=n+u[e-7]+o+u[e-16]|0}let{A:s,B:o,C:n,D:a,E:i,F:l,G:d,H:h}=this;for(let e=0;e<64;e++){var f,p,_,b;let r=h+((0,t.rotr)(i,6)^(0,t.rotr)(i,11)^(0,t.rotr)(i,25))+((f=i)&l^~f&d)+c[e]+u[e]|0,x=((0,t.rotr)(s,2)^(0,t.rotr)(s,13)^(0,t.rotr)(s,22))+((p=s)&(_=o)^p&(b=n)^_&b)|0;h=d,d=l,l=i,i=a+r|0,a=n,n=o,o=s,s=r+x|0}s=s+this.A|0,o=o+this.B|0,n=n+this.C|0,a=a+this.D|0,i=i+this.E|0,l=l+this.F|0,d=d+this.G|0,h=h+this.H|0,this.set(s,o,n,a,i,l,d,h)}roundClean(){(0,t.clean)(u)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,t.clean)(this.buffer)}}class d extends l{constructor(){super(28),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4],this.F=0|o[5],this.G=0|o[6],this.H=0|o[7]}}let h=i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","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))),f=h[0],p=h[1],_=new Uint32Array(80),b=new Uint32Array(80);class x extends r{constructor(e=64){super(128,e,16,!1),this.Ah=0|a[0],this.Al=0|a[1],this.Bh=0|a[2],this.Bl=0|a[3],this.Ch=0|a[4],this.Cl=0|a[5],this.Dh=0|a[6],this.Dl=0|a[7],this.Eh=0|a[8],this.El=0|a[9],this.Fh=0|a[10],this.Fl=0|a[11],this.Gh=0|a[12],this.Gl=0|a[13],this.Hh=0|a[14],this.Hl=0|a[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:s,Ch:o,Cl:n,Dh:a,Dl:i,Eh:c,El:u,Fh:l,Fl:d,Gh:h,Gl:f,Hh:p,Hl:_}=this;return[e,t,r,s,o,n,a,i,c,u,l,d,h,f,p,_]}set(e,t,r,s,o,n,a,i,c,u,l,d,h,f,p,_){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|s,this.Ch=0|o,this.Cl=0|n,this.Dh=0|a,this.Dl=0|i,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|_}process(e,t){for(let r=0;r<16;r++,t+=4)_[r]=e.getUint32(t),b[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|_[e-15],r=0|b[e-15],s=i.rotrSH(t,r,1)^i.rotrSH(t,r,8)^i.shrSH(t,r,7),o=i.rotrSL(t,r,1)^i.rotrSL(t,r,8)^i.shrSL(t,r,7),n=0|_[e-2],a=0|b[e-2],c=i.rotrSH(n,a,19)^i.rotrBH(n,a,61)^i.shrSH(n,a,6),u=i.rotrSL(n,a,19)^i.rotrBL(n,a,61)^i.shrSL(n,a,6),l=i.add4L(o,u,b[e-7],b[e-16]),d=i.add4H(l,s,c,_[e-7],_[e-16]);_[e]=0|d,b[e]=0|l}let{Ah:r,Al:s,Bh:o,Bl:n,Ch:a,Cl:c,Dh:u,Dl:l,Eh:d,El:h,Fh:x,Fl:E,Gh:y,Gl:g,Hh:A,Hl:m}=this;for(let e=0;e<80;e++){let t=i.rotrSH(d,h,14)^i.rotrSH(d,h,18)^i.rotrBH(d,h,41),w=i.rotrSL(d,h,14)^i.rotrSL(d,h,18)^i.rotrBL(d,h,41),T=d&x^~d&y,I=h&E^~h&g,S=i.add5L(m,w,I,p[e],b[e]),R=i.add5H(S,A,t,T,f[e],_[e]),N=0|S,O=i.rotrSH(r,s,28)^i.rotrBH(r,s,34)^i.rotrBH(r,s,39),D=i.rotrSL(r,s,28)^i.rotrBL(r,s,34)^i.rotrBL(r,s,39),L=r&o^r&a^o&a,U=s&n^s&c^n&c;A=0|y,m=0|g,y=0|x,g=0|E,x=0|d,E=0|h,({h:d,l:h}=i.add(0|u,0|l,0|R,0|N)),u=0|a,l=0|c,a=0|o,c=0|n,o=0|r,n=0|s;let C=i.add3L(N,D,U);r=i.add3H(C,R,O,L),s=0|C}({h:r,l:s}=i.add(0|this.Ah,0|this.Al,0|r,0|s)),({h:o,l:n}=i.add(0|this.Bh,0|this.Bl,0|o,0|n)),({h:a,l:c}=i.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:u,l:l}=i.add(0|this.Dh,0|this.Dl,0|u,0|l)),({h:d,l:h}=i.add(0|this.Eh,0|this.El,0|d,0|h)),({h:x,l:E}=i.add(0|this.Fh,0|this.Fl,0|x,0|E)),({h:y,l:g}=i.add(0|this.Gh,0|this.Gl,0|y,0|g)),({h:A,l:m}=i.add(0|this.Hh,0|this.Hl,0|A,0|m)),this.set(r,s,o,n,a,c,u,l,d,h,x,E,y,g,A,m)}roundClean(){(0,t.clean)(_,b)}destroy(){(0,t.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class E extends x{constructor(){super(48),this.Ah=0|n[0],this.Al=0|n[1],this.Bh=0|n[2],this.Bl=0|n[3],this.Ch=0|n[4],this.Cl=0|n[5],this.Dh=0|n[6],this.Dl=0|n[7],this.Eh=0|n[8],this.El=0|n[9],this.Fh=0|n[10],this.Fl=0|n[11],this.Gh=0|n[12],this.Gl=0|n[13],this.Hh=0|n[14],this.Hl=0|n[15]}}let y=(0,t.createHasher)(()=>new l),g=(0,t.createHasher)(()=>new d),A=(0,t.createHasher)(()=>new x),m=(0,t.createHasher)(()=>new E);e.s(["SHA224",0,d,"SHA256",0,l,"sha224",0,g,"sha256",0,y,"sha384",0,m,"sha512",0,A],44314);var w=t;class T extends w.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,w.ahash)(e);const r=(0,w.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,o=new Uint8Array(s);o.set(r.length>s?e.create().update(r).digest():r);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,w.clean)(o)}update(e){return(0,w.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,w.aexists)(this),(0,w.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:s,destroyed:o,blockLen:n,outputLen:a}=this;return e.finished=s,e.destroyed=o,e.blockLen=n,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let I=(e,t,r)=>new T(e,t).update(r).digest();I.create=(e,t)=>
1new T(e,t),e.s(["hmac",0,I],140965)},951341,e=>{"use strict";var t,r=e.i(150292),r=r;class s extends Error{toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:""}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}}class o extends s{constructor(e,t,r,s,o,n){super(r,s,o),this.type=e,this.status=t,this.data=n}}class n extends s{constructor(e,t,r){super(e,t,r),this.type="client_error"}}class a extends s{constructor(e,t,r){super(e,t,r),this.type="connector_error"}}let i=e=>e instanceof s?e:e instanceof Error?new n(e.message,e):new n(`Internal error: ${e}`);var c=((t={}).OAUTH_ACCOUNT_SUSPENDED="oauth_account_suspended",t.MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",t.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",t.MISSING_OR_INVALID_TOKEN="missing_or_invalid_token",t.INVALID_DATA="invalid_data",t.INVALID_CAPTCHA="invalid_captcha",t.LINKED_TO_ANOTHER_USER="linked_to_another_user",t.CANNOT_LINK_MORE_OF_TYPE="cannot_link_more_of_type",t.FAILED_TO_LINK_ACCOUNT="failed_to_link_account",t.FAILED_TO_UPDATE_ACCOUNT="failed_to_update_account",t.USER_EXITED_UPDATE_FLOW="exited_update_flow",t.ALLOWLIST_REJECTED="allowlist_rejected",t.OAUTH_USER_DENIED="oauth_user_denied",t.OAUTH_UNEXPECTED="oauth_unexpected",t.UNKNOWN_AUTH_ERROR="unknown_auth_error",t.USER_EXITED_AUTH_FLOW="exited_auth_flow",t.USER_EXITED_LINK_FLOW="exited_link_flow",t.USER_EXITED_SET_PASSWORD_FLOW="user_exited_set_password_flow",t.MUST_BE_AUTHENTICATED="must_be_authenticated",t.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",t.GENERIC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",t.CLIENT_REQUEST_TIMEOUT="client_request_timeout",t.INVALID_CREDENTIALS="invalid_credentials",t.MISSING_MFA_CREDENTIALS="missing_or_invalid_mfa",t.UNKNOWN_MFA_ERROR="unknown_mfa_error",t.EMBEDDED_WALLET_ALREADY_EXISTS="embedded_wallet_already_exists",t.EMBEDDED_WALLET_NOT_FOUND="embedded_wallet_not_found",t.EMBEDDED_WALLET_CREATE_ERROR="embedded_wallet_create_error",t.UNKNOWN_EMBEDDED_WALLET_ERROR="unknown_embedded_wallet_error",t.EMBEDDED_WALLET_PASSWORD_UNCONFIRMED="embedded_wallet_password_unconfirmed",t.EMBEDDED_WALLET_PASSWORD_ALREADY_EXISTS="embedded_wallet_password_already_exists",t.EMBEDDED_WALLET_RECOVERY_ALREADY_EXISTS="embedded_wallet_recovery_already_exists",t.TRANSACTION_FAILURE="transaction_failure",t.UNSUPPORTED_CHAIN_ID="unsupported_chain_id",t.NOT_SUPPORTED="not_supported",t.CAPTCHA_TIMEOUT="captcha_timeout",t.INVALID_MESSAGE="invalid_message",t.UNABLE_TO_SIGN="unable_to_sign",t.CAPTCHA_FAILURE="captcha_failure",t.CAPTCHA_DISABLED="captcha_disabled",t.SESSION_STORAGE_UNAVAILABLE="session_storage_unavailable",t.TOO_MANY_REQUESTS="too_many_requests",t.USER_LIMIT_REACHED="max_accounts_reached",t.DISALLOWED_LOGIN_METHOD="disallowed_login_method",t.DISALLOWED_PLUS_EMAIL="disallowed_plus_email",t.PASSKEY_NOT_ALLOWED="passkey_not_allowed",t.USER_DOES_NOT_EXIST="user_does_not_exist",t.INSUFFICIENT_BALANCE="insufficient_balance",t.ONRAMP_MINIMUM_IDENTITY_VERIFICATION_REQUIRED="onramp_minimum_identity_verification_required",t.ONRAMP_IDENTITY_VERIFICATION_REQUIRED="onramp_identity_verification_required",t.ONRAMP_DOCUMENT_VERIFICATION_REQUIRED="onramp_document_verification_required",t.ONRAMP_UNSUPPORTED_INFORMATION="onramp_unsupported_information",t.ONRAMP_TRANSACTION_LIMIT_REACHED="transaction_limit_reached",t.ONRAMP_QUOTE_EXPIRED="onramp_quote_expired",t.ONRAMP_PAYMENT_METHOD_DECLINED="onramp_payment_method_declined",t.ONRAMP_WALLET_OWNERSHIP_REQUIRED="onramp_wallet_ownership_required",t.ACCOUNT_TRANSFER_REQUIRED="account_transfer_required",t.BUFFER_NOT_DEFINED="buffer_not_defined",t.UNSUPPORTED_WALLET_TYPE="unsupported_wallet_type",t.NO_SOLANA_ACCOUNTS="no_solana_accounts",t.UNKNOWN_FUNDING_ERROR="unknown_funding_error",t);e.s(["P",0,n,"a",0,c,"b",0,s,"c",0,o,"d",0,class extends n{constructor(){super("Method called before `ready`. Ensure you wait until `ready` is true before calling.")}},"e",0,a,"f",0,e=>{if(e instanceof s)return e;if(!(e instanceof r.F))return i(e);if(!e.response)return new o("api_error",null,e.message,e);let{type:t,message:n,error:a,code:c}=e.data;return new o(t||"ApiError",e.response.status,n||a,e,c,e.data)},"g",0,class extends n{constructor(){super("Request timed out",void 0,"client_request_timeout")}},"h",0,i,"i",0,class extends a{constructor(){super("No Solana accounts found in wallet",void 0,"no_solana_accounts")}},"j",0,class extends n{constructor(e){super("This application is in development mode and must be upgraded to production to log in new users.",e,"max_accounts_reached")}},"k",0,class extends n{constructor(e="Embedded wallet error",t){super(e,t,"unknown_embedded_wallet_error")}},"l",0,class extends n{constructor(e="User must be authenticated"){super(e,void 0,"must_be_authenticated")}}],951341)},57579,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(106920),o=e.i(595693);function n({src:e,...r}){return(0,t.jsx)("img",{src:e,...r,style:{display:"none"}})}let a=(0,r.createContext)({currentScreen:null,lastScreen:null,navigate:o.n,navigateBack:o.n,resetNavigation:o.n,setModalData:o.n,onUserCloseViaDialogOrKeybindRef:void 0});e.s(["M",0,e=>{let o=(0,s.a)(),[i,c]=(0,r.useState)(e.initialScreen),u=(0,r.useRef)(null);(0,r.useEffect)(()=>{e.open||(u.current=null)},[e.open]),(0,r.useEffect)(()=>{u.current=null},[e.initialScreen]);let l={data:e.data,setModalData:e.setModalData,currentScreen:e.initialScreen,lastScreen:i,navigate:(t,r=!0)=>{e.setInitialScreen(t),r&&c(e.initialScreen)},navigateBack:()=>{e.setInitialScreen(i)},resetNavigation:()=>{e.setInitialScreen(null),c(null)},onUserCloseViaDialogOrKeybindRef:u};return(0,t.jsxs)(a.Provider,{value:l,children:[("string"==typeof o.appearance.logo||"img"===o.appearance.logo?.type)&&(0,t.jsx)(n,{src:"string"==typeof o.appearance.logo?o.appearance.logo:o.appearance.logo.props.src}),e.children]})},"u",0,()=>(0,r.useContext)(a)])},322066,e=>{"use strict";let t=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,s=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}e.s(["default",0,function(e,n={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let a=e.trim();if(a.length<=9)switch(a.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!s.test(e)){if(n.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(t.test(e)||r.test(e)){if(n.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,o)}return JSON.parse(e)}catch(t){if(n.strict)throw t;return e}}])},150292,e=>{"use strict";var t=e.i(322066);let r=/#/g,s=/&/g,o=/\//g,n=/=/g,a=/\+/g,i=/%5e/gi,c=/%60/gi,u=/%7c/gi,l=/%20/gi;function d(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(u,"|").replace(a,"%2B").replace(l,"+").replace(r,"%23").replace(s,"%26").replace(c,"`").replace(i,"^").replace(o,"%2F")}function h(e){return d(e).replace(n,"%3D")}function f(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let p=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,b=/^([/\\]\s*){2,}[^/\\]/,x=/\/$|\/\?|\/#/,E=/^\.?\//;function y(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?p.test(e):_.test(e)||!!t.acceptRelative&&b.test(e)}let g=Symbol.for("ufo:protocolRelative");function A(e=""){let[t="",r="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:s}}
1class m extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let w=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function T(e="GET"){return w.has(e.toUpperCase())}let I=new Set(["image/svg","application/xml","application/xhtml","application/html"]),S=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function R(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let N=new Set([408,409,425,429,500,502,503,504]),O=new Set([101,204,205,304]);e.s(["F",0,m,"c",0,function e(r={}){let{fetch:s=globalThis.fetch,Headers:o=globalThis.Headers,AbortController:n=globalThis.AbortController}=r;async function i(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!T(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):N.has(r))){let r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),c(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(s)}`,n=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=new m(`${o}: ${n}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(a,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,t,{get:()=>e.response&&e.response[r]});return a}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,c),r}let c=async function(e,c={}){var u,l,p,_;let b,x,m,w={request:e,options:(u=r.defaults,m=function(e,t,r){if(!t)return new r(e);let s=new r(t);if(e)for(let[t,o]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))s.set(t,o);return s}(c?.headers??e?.headers,u?.headers,o),(u?.query||u?.params||c?.params||c?.query)&&(x={...u?.params,...u?.query,...c?.params,...c?.query}),{...u,...c,query:x,params:x,headers:m}),response:void 0,error:void 0};if(w.options.method&&(w.options.method=w.options.method.toUpperCase()),w.options.onRequest&&(await R(w,w.options.onRequest),w.options.headers instanceof o||(w.options.headers=new o(w.options.headers||{}))),"string"==typeof w.request){if(w.options.baseURL&&(w.request=function(e,t){var r;if(!(r=t)||"/"===r||y(e))return e;let s=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(s)){let t=e[s.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(E,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(s,e)}(w.request,w.options.baseURL)),w.options.query){let e,t,r,s,o,n,i;l=w.request,p=w.options.query,t={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let s=f(e[1].replace(a," "));if("__proto__"===s||"constructor"===s)continue;let o=f((e[2]||"").replace(a," "));void 0===t[s]?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}((e=function e(t="",r){let s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){let[,e,t=""]=s;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!y(t,{acceptRelative:!0}))return r?e(r+t):A(t);let[,o="",n,a=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",c=""]=a.match(/([^#/?]*)(.*)?/)||[];"file:"===o&&(c=c.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:u,search:l,hash:d}=A(c);return{protocol:o.toLowerCase(),auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:i,pathname:u,search:l,hash:d,[g]:!o}}(l)).search),...p},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var r;return(("number"==typeof(r=t[e])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(t=>`${h(e)}=${d(t)}`).join("&"):`${h(e)}=${d(r)}`:h(e)}
1).filter(Boolean).join("&"),r=(_=e).pathname||"",s=_.search?(_.search.startsWith("?")?"":"?")+_.search:"",o=_.hash||"",n=_.auth?_.auth+"@":"",i=_.host||"",w.request=(_.protocol||_[g]?(_.protocol||"")+"//":"")+n+i+r+s+o,delete w.options.query}"query"in w.options&&delete w.options.query,"params"in w.options&&delete w.options.params}if(w.options.body&&T(w.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(w.options.body)){let e=w.options.headers.get("content-type");"string"!=typeof w.options.body&&(w.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(w.options.body).toString():JSON.stringify(w.options.body)),e||w.options.headers.set("content-type","application/json"),w.options.headers.has("accept")||w.options.headers.set("accept","application/json")}else("pipeTo"in w.options.body&&"function"==typeof w.options.body.pipeTo||"function"==typeof w.options.body.pipe)&&!("duplex"in w.options)&&(w.options.duplex="half");if(!w.options.signal&&w.options.timeout){let e=new n;b=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},w.options.timeout),w.options.signal=e.signal}try{w.response=await s(w.request,w.options)}catch(e){return w.error=e,w.options.onRequestError&&await R(w,w.options.onRequestError),await i(w)}finally{b&&clearTimeout(b)}if((w.response.body||w.response._bodyInit)&&!O.has(w.response.status)&&"HEAD"!==w.options.method){let e=(w.options.parseResponse?"json":w.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return S.test(t)?"json":"text/event-stream"===t?"stream":I.has(t)||t.startsWith("text/")?"text":"blob"}(w.response.headers.get("content-type")||"");switch(e){case"json":{let e=await w.response.text(),r=w.options.parseResponse||t.default;w.response._data=r(e);break}case"stream":w.response._data=w.response.body||w.response._bodyInit;break;default:w.response._data=await w.response[e]()}}return(w.options.onResponse&&await R(w,w.options.onResponse),!w.options.ignoreResponseError&&w.response.status>=400&&w.response.status<600)?(w.options.onResponseError&&await R(w,w.options.onResponseError),await i(w)):w.response},u=async function(e,t){return(await c(e,t))._data};return u.raw=c,u.native=(...e)=>s(...e),u.create=(t={},s={})=>e({...r,...s,defaults:{...r.defaults,...s.defaults,...t}}),u}],150292)},888794,942305,e=>{"use strict";var t=e.i(189991),r=e.i(611573),s=e.i(569934),o=e.i(290392),n=e.i(505880);function a({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})}e.s(["assertCurrentChain",0,a],942305);var i=e.i(147526),c=e.i(10725),u=e.i(264404),l=e.i(190521),d=e.i(467125),h=e.i(976677),f=e.i(353464),p=e.i(975948),_=e.i(368941),b=e.i(638291);let x=new h.LruMap(128);async function E(e,n){let h,{account:E=e.account,assertChainId:y=!0,chain:g=e.chain,accessList:A,authorizationList:m,blobs:w,data:T,dataSuffix:I="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,gas:S,gasPrice:R,maxFeePerBlobGas:N,maxFeePerGas:O,maxPriorityFeePerGas:D,nonce:L,type:U,value:C,...v}=n;if(void 0===E)throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let H=E?(0,t.parseAccount)(E):null;try{(0,f.assertRequest)(n);let t=await (async()=>n.to?n.to:null!==n.to&&m&&m.length>0?await (0,o.recoverAuthorizationAddress)({authorization:m[0]}).catch(()=>{throw new s.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(H?.type==="json-rpc"||null===H){let r;null!==g&&(r=await (0,d.getAction)(e,p.getChainId,"getChainId")({}),y&&a({currentChainId:r,chain:g}));let s=e.chain?.formatters?.transactionRequest?.format,o=(s||l.formatTransactionRequest)({...(0,u.extract)(v,{format:s}),accessList:A,account:H,authorizationList:m,blobs:w,chainId:r,data:I?(0,i.c
1oncat)([T??"0x",I]):T,gas:S,gasPrice:R,maxFeePerBlobGas:N,maxFeePerGas:O,maxPriorityFeePerGas:D,nonce:L,to:t,type:U,value:C},"sendTransaction"),n=x.get(e.uid);try{return await e.request({method:n?"wallet_sendTransaction":"eth_sendTransaction",params:[o]},{retryCount:0})}catch(t){if(!1===n)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then(t=>(x.set(e.uid,!0),t)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw x.set(e.uid,!1),t;throw r});throw t}}if(H?.type==="local"){let r=(()=>{if(!H.nonceManager||void 0!==L)return H.nonceManager;let e=H.nonceManager;return{consume:t=>(h={address:t.address,chainId:t.chainId},e.consume(t)),get:t=>e.get(t),increment:t=>e.increment(t),reset:t=>e.reset(t)}})(),s=await (0,d.getAction)(e,_.prepareTransactionRequest,"prepareTransactionRequest")({account:H,accessList:A,authorizationList:m,blobs:w,chain:g,data:I?(0,i.c
1oncat)([T??"0x",I]):T,gas:S,gasPrice:R,maxFeePerBlobGas:N,maxFeePerGas:O,maxPriorityFeePerGas:D,nonce:L,nonceManager:r,parameters:[..._.defaultParameters,"sidecars"],type:U,value:C,...v,to:t}),o=g?.serializers?.transaction,n=await H.signTransaction(s,{serializer:o});return await (0,d.getAction)(e,b.sendRawTransaction,"sendRawTransaction")({serializedTransaction:n})}if(H?.type==="smart")throw new r.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new r.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:H?.type})}catch(e){if(e instanceof r.AccountTypeNotSupportedError)throw e;throw h&&H?.nonceManager?.reset(h),(0,c.getTransactionError)(e,{...n,account:H,chain:n.chain||void 0})}}e.s(["sendTransaction",0,E],888794)},537792,e=>{"use strict";let t=BigInt(0),r=BigInt(1);function s(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!s(e))throw Error("Uint8Array expected")}function n(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?t:BigInt("0x"+e)}let a="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(e){if(o(e),a)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t}function u(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function l(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(a)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let s=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){let r=u(e.charCodeAt(o)),n=u(e.charCodeAt(o+1));if(void 0===r||void 0===n)throw Error('hex string expected, got non-hex character "'+(e[o]+e[o+1])+'" at index '+o);s[t]=16*r+n}return s}function d(e,t){return l(e.toString(16).padStart(2*t,"0"))}function h(...e){let t=0;for(let r=0;r<e.length;r++){let s=e[r];o(s),t+=s.length}let r=new Uint8Array(t);for(let t=0,s=0;t<e.length;t++){let o=e[t];r.set(o,s),s+=o.length}return r}let f=e=>"bigint"==typeof e&&t<=e;function p(e,t,r){return f(e)&&f(t)&&f(r)&&t<=e&&e<r}let _=e=>new Uint8Array(e),b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||s(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};e.s(["aInRange",0,function(e,t,r,s){if(!p(t,r,s))throw Error("expected valid "+e+": "+r+" <= n < "+s+", got "+t)},"abool",0,function(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)},"abytes",0,o,"bitLen",0,function(e){let s;for(s=0;e>t;e>>=r,s+=1);return s},"bitMask",0,e=>(r<<BigInt(e))-r,"bytesToHex",0,c,"bytesToNumberBE",0,function(e){return n(c(e))},"bytesToNumberLE",0,function(e){return o(e),n(c(Uint8Array.from(e).reverse()))},"concatBytes",0,h,"createHmacDrbg",0,function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let s=_(e),o=_(e),n=0,a=()=>{s.fill(1),o.fill(0),n=0},i=(...e)=>r(o,s,...e),c=(e=_(0))=>{let t;if(o=i((t=[0],Uint8Array.from(t)),e),s=i(),0!==e.length){let t;o=i((t=[1],Uint8Array.from(t)),e),s=i()}},u=()=>{if(n++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(s=i()).slice();r.push(t),e+=s.length}return h(...r)};return(e,t)=>{let r;for(a(),c(e);!(r=t(u()));)c();return a(),r}},"ensureBytes",0,function(e,t,r){let o;if("string"==typeof t)try{o=l(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(s(t))o=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let n=o.length;if("number"==typeof r&&n!==r)throw Error(e+" of length "+r+" expected, got "+n);return o},"equalBytes",0,function(e,t){if(e.length!==t.length)return!1;let r=0;for(let s=0;s<e.length;s++)r|=e[s]^t[s];return 0===r},"hexToBytes",0,l,"inRange",0,p,"isBytes",0,s,"memoized",0,function(e){let t=new WeakMap;return(r,...s)=>{let o=t.get(r);if(void 0!==o)return o;let n=e(r,...s);return t.set(r,n),n}},"numberToBytesBE",0,d,"numberToBytesLE",0,function(e,t){return d(e,t).reverse()},"numberToHexUnpadded",0,function(e){let t=e.toString(16);return 1&t.length?"0"+t:t},"utf8ToBytes",0,function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))},"validateObject",0,function(e,t,r={}){let s=(t,r,s)=>{let o=b[r];if("function"!=typeof o)throw Error("invalid validator function");let n=e[t];if((!s||void 0!==n)&&!o(n,e))throw Error("param "+String(t)+" is invali
1d. Expected "+r+", got "+n)};for(let[e,r]of Object.entries(t))s(e,r,!1);for(let[e,t]of Object.entries(r))s(e,t,!0);return e}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.