"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react"),nt=require("@solana/wallet-adapter-react"),je=require("@solana/wallet-adapter-wallets"),Ke=require("@wagmi/connectors"),O=require("@wagmi/core"),m=require("./index-Cws-uUvN.js"),Z=require("lucide-react"),_t=require("@radix-ui/react-dialog"),J=require("vaul"),Dt=require("@radix-ui/react-scroll-area"),L=require("@tanstack/react-query"),z=require("ethers"),ot=require("viem"),fe=require("sonner"),q=require("@solana/web3.js"),Le=require("@coral-xyz/anchor"),Ft=require("./constants-BtR1jpY9.js"),Pe=require("next-auth/react"),Re=require("@solana/wallet-adapter-base"),we=require("./serialize-hzIq3W0C.js"),V=require("framer-motion"),qt=require("qrcode.react"),$t=require("@radix-ui/react-slot"),Me=require("./chains.cjs");function De(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const K=De(A),H=De(_t),be=De(Dt);var Te={exports:{}},Ne={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ge;function Bt(){if(Ge)return Ne;Ge=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,r,i){var c=null;if(i!==void 0&&(c=""+i),r.key!==void 0&&(c=""+r.key),"key"in r){i={};for(var a in r)a!=="key"&&(i[a]=r[a])}else i=r;return r=i.ref,{$$typeof:e,type:o,key:c,ref:r!==void 0?r:null,props:i}}return Ne.Fragment=t,Ne.jsx=n,Ne.jsxs=n,Ne}var Se={};/**
 * @license React
 * react-jsx-runtime.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ue;function Kt(){return Ue||(Ue=1,process.env.NODE_ENV!=="production"&&function(){function e(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===ee?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case v:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case M:return"Suspense";case $:return"SuspenseList";case Y:return"Activity"}if(typeof u=="object")switch(typeof u.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),u.$$typeof){case C:return"Portal";case W:return(u.displayName||"Context")+".Provider";case j:return(u._context.displayName||"Context")+".Consumer";case I:var k=u.render;return u=u.displayName,u||(u=k.displayName||k.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case _:return k=u.displayName||null,k!==null?k:e(u.type)||"Memo";case Q:k=u._payload,u=u._init;try{return e(u(k))}catch{}}return null}function t(u){return""+u}function n(u){try{t(u);var k=!1}catch{k=!0}if(k){k=console;var P=k.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object";return P.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(u)}}function o(u){if(u===v)return"<>";if(typeof u=="object"&&u!==null&&u.$$typeof===Q)return"<...>";try{var k=e(u);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function r(){var u=te.A;return u===null?null:u.getOwner()}function i(){return Error("react-stack-top-frame")}function c(u){if(N.call(u,"key")){var k=Object.getOwnPropertyDescriptor(u,"key").get;if(k&&k.isReactWarning)return!1}return u.key!==void 0}function a(u,k){function P(){ue||(ue=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}P.isReactWarning=!0,Object.defineProperty(u,"key",{get:P,configurable:!0})}function l(){var u=e(this.type);return re[u]||(re[u]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),u=this.props.ref,u!==void 0?u:null}function d(u,k,P,D,se,X,Ie,ze){return P=X.ref,u={$$typeof:g,type:u,key:k,props:X,_owner:se},(P!==void 0?P:null)!==null?Object.defineProperty(u,"ref",{enumerable:!1,get:l}):Object.defineProperty(u,"ref",{enumerable:!1,value:null}),u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(u,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(u,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.defineProperty(u,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ze}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}function b(u,k,P,D,se,X,Ie,ze){var F=k.children;if(F!==void 0)if(D)if(U(F)){for(D=0;D<F.length;D++)w(F[D]);Object.freeze&&Object.freeze(F)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(F);if(N.call(k,"key")){F=e(u);var pe=Object.keys(k).filter(function(Ot){return Ot!=="key"});D=0<pe.length?"{key: someKey, "+pe.join(": ..., ")+": ...}":"{key: someKey}",ie[F+D]||(pe=0<pe.length?"{"+pe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
  let props = %s;
  <%s {...props} />
React keys must be passed directly to JSX without using spread:
  let props = %s;
  <%s key={someKey} {...props} />`,D,F,pe,F),ie[F+D]=!0)}if(F=null,P!==void 0&&(n(P),F=""+P),c(k)&&(n(k.key),F=""+k.key),"key"in k){P={};for(var We in k)We!=="key"&&(P[We]=k[We])}else P=k;return F&&a(P,typeof u=="function"?u.displayName||u.name||"Unknown":u),d(u,F,X,se,r(),P,Ie,ze)}function w(u){typeof u=="object"&&u!==null&&u.$$typeof===g&&u._store&&(u._store.validated=1)}var f=A,g=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),W=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),te=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,U=Array.isArray,G=console.createTask?console.createTask:function(){return null};f={"react-stack-bottom-frame":function(u){return u()}};var ue,re={},B=f["react-stack-bottom-frame"].bind(f,i)(),ke=G(o(i)),ie={};Se.Fragment=v,Se.jsx=function(u,k,P,D,se){var X=1e4>te.recentlyCreatedOwnerStacks++;return b(u,k,P,!1,D,se,X?Error("react-stack-top-frame"):B,X?G(o(u)):ke)},Se.jsxs=function(u,k,P,D,se){var X=1e4>te.recentlyCreatedOwnerStacks++;return b(u,k,P,!0,D,se,X?Error("react-stack-top-frame"):B,X?G(o(u)):ke)}}()),Se}var Ve;function Lt(){return Ve||(Ve=1,process.env.NODE_ENV==="production"?Te.exports=Bt():Te.exports=Kt()),Te.exports}var s=Lt();const Ye={home:"Connect",account:"Account",walletConnecting:"Wallet Connecting",selectETHWallet:"Select ETH Wallet",selectSolanaWallet:"Select Solana Wallet",walletqr:"Wallet QR",switchAccount:"Switch Account",switchingAccount:"Switching Account",switchChain:"Switch Chain",switchingChain:"Switching Chain",withdrawFunds:"Withdraw Funds",withdrawingFunds:"Withdrawing Funds",accountSigning:"Account Signing"},p={home:"home",account:"account",accountSigning:"accountSigning",socialConnecting:"socialConnecting",walletConnecting:"walletConnecting",selectETHWallet:"selectETHWallet",selectSolanaWallet:"selectSolanaWallet",walletqr:"walletqr",switchAccount:"switchAccount",switchingAccount:"switchingAccount",switchChain:"switchChain",switchingChain:"switchingChain",withdrawFunds:"withdrawFunds"},Fe=A.createContext({chains:[],wagmiConfig:null,signMessage:"based.bid welcomes you!!!",pendingItem:null,setPendingItem:()=>{},open:!1,setOpen:()=>{},router:p.home,setRouter:()=>{}}),S=()=>A.useContext(Fe),Gt=()=>{const{open:e,setOpen:t,...n}=A.useContext(Fe);return{isOpen:e,openModal:()=>{t(!0)},closeModal:()=>{t(!1)},...n}},Ut=({children:e,chains:t,host:n,name:o,description:r,icon:i,projectId:c,signMessage:a})=>{const[l,d]=A.useState(!1),[b,w]=A.useState(null),[f,g]=A.useState(null),C=A.useMemo(()=>{const h=t.filter(j=>j.network.symbol===m.NetworkSymbols.eth),y=!(typeof window>"u")&&(window==null?void 0:window.parent)!==window;return O.createConfig({chains:h,connectors:[O.injected({target:"metaMask"}),Ke.coinbaseWallet({appName:o,appLogoUrl:i,overrideIsMetaMask:!1,preference:"all"}),...y?[Ke.safe({allowedDomains:[/gnosis-safe.io$/,/app.safe.global$/]})]:[]],storage:O.createStorage({storage:O.cookieStorage}),transports:Object.fromEntries(h.map(j=>[j.id,O.http()]))})},[t]),v=A.useMemo(()=>[new je.CoinbaseWalletAdapter,new je.PhantomWalletAdapter,new je.SafePalWalletAdapter,new je.SolflareWalletAdapter,new je.TrustWalletAdapter],[]);return s.jsx(Fe.Provider,{value:{chains:t,wagmiConfig:C,signMessage:a,open:l,setOpen:d,router:b,setRouter:w,pendingItem:f,setPendingItem:g},children:s.jsx(nt.WalletProvider,{wallets:v,autoConnect:!0,children:e})})};function rt(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=rt(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function it(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=rt(e))&&(o&&(o+=" "),o+=t);return o}const qe="-",Vt=e=>{const t=Ht(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const a=c.split(qe);return a[0]===""&&a.length!==1&&a.shift(),st(a,t)||Yt(c)},getConflictingClassGroupIds:(c,a)=>{const l=n[c]||[];return a&&o[c]?[...l,...o[c]]:l}}},st=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?st(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(qe);return(c=t.validators.find(({validator:a})=>a(i)))==null?void 0:c.classGroupId},He=/^\[(.+)\]$/,Yt=e=>{if(He.test(e)){const t=He.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ht=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return Qt(Object.entries(e.classGroups),n).forEach(([i,c])=>{_e(c,o,i,t)}),o},_e=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Je(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(Jt(r)){_e(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,c])=>{_e(c,Je(t,i),n,o)})})},Je=(e,t)=>{let n=e;return t.split(qe).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Jt=e=>e.isThemeGetter,Qt=(e,t)=>t?e.map(([n,o])=>{const r=o.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,a])=>[t+c,a])):i);return[n,r]}):e,Xt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(i,c)=>{n.set(i,c),t++,t>e&&(t=0,o=n,n=new Map)};return{get(i){let c=n.get(i);if(c!==void 0)return c;if((c=o.get(i))!==void 0)return r(i,c),c},set(i,c){n.has(i)?n.set(i,c):r(i,c)}}},at="!",Zt=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],i=t.length,c=a=>{const l=[];let d=0,b=0,w;for(let h=0;h<a.length;h++){let y=a[h];if(d===0){if(y===r&&(o||a.slice(h,h+i)===t)){l.push(a.slice(b,h)),b=h+i;continue}if(y==="/"){w=h;continue}}y==="["?d++:y==="]"&&d--}const f=l.length===0?a:a.substring(b),g=f.startsWith(at),C=g?f.substring(1):f,v=w&&w>b?w-b:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:C,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:c}):c},en=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},tn=e=>({cache:Xt(e.cacheSize),parseClassName:Zt(e),...Vt(e)}),nn=/\s+/,on=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=[],c=e.trim().split(nn);let a="";for(let l=c.length-1;l>=0;l-=1){const d=c[l],{modifiers:b,hasImportantModifier:w,baseClassName:f,maybePostfixModifierPosition:g}=n(d);let C=!!g,v=o(C?f.substring(0,g):f);if(!v){if(!C){a=d+(a.length>0?" "+a:a);continue}if(v=o(f),!v){a=d+(a.length>0?" "+a:a);continue}C=!1}const h=en(b).join(":"),y=w?h+at:h,j=y+v;if(i.includes(j))continue;i.push(j);const W=r(v,C);for(let I=0;I<W.length;++I){const M=W[I];i.push(y+M)}a=d+(a.length>0?" "+a:a)}return a};function rn(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ct(t))&&(o&&(o+=" "),o+=n);return o}const ct=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=ct(e[o]))&&(n&&(n+=" "),n+=t);return n};function sn(e,...t){let n,o,r,i=c;function c(l){const d=t.reduce((b,w)=>w(b),e());return n=tn(d),o=n.cache.get,r=n.cache.set,i=a,a(l)}function a(l){const d=o(l);if(d)return d;const b=on(l,n);return r(l,b),b}return function(){return i(rn.apply(null,arguments))}}const R=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},lt=/^\[(?:([a-z-]+):)?(.+)\]$/i,an=/^\d+\/\d+$/,cn=new Set(["px","full","screen"]),ln=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,un=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>ge(e)||cn.has(e)||an.test(e),ae=e=>he(e,"length",yn),ge=e=>!!e&&!Number.isNaN(Number(e)),Oe=e=>he(e,"number",ge),Ee=e=>!!e&&Number.isInteger(Number(e)),fn=e=>e.endsWith("%")&&ge(e.slice(0,-1)),x=e=>lt.test(e),ce=e=>ln.test(e),mn=new Set(["length","size","percentage"]),kn=e=>he(e,mn,dt),pn=e=>he(e,"position",dt),gn=new Set(["image","url"]),hn=e=>he(e,gn,Cn),xn=e=>he(e,"",vn),Ae=()=>!0,he=(e,t,n)=>{const o=lt.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},yn=e=>dn.test(e)&&!un.test(e),dt=()=>!1,vn=e=>wn.test(e),Cn=e=>bn.test(e),jn=()=>{const e=R("colors"),t=R("spacing"),n=R("blur"),o=R("brightness"),r=R("borderColor"),i=R("borderRadius"),c=R("borderSpacing"),a=R("borderWidth"),l=R("contrast"),d=R("grayscale"),b=R("hueRotate"),w=R("invert"),f=R("gap"),g=R("gradientColorStops"),C=R("gradientColorStopPositions"),v=R("inset"),h=R("margin"),y=R("opacity"),j=R("padding"),W=R("saturate"),I=R("scale"),M=R("sepia"),$=R("skew"),_=R("space"),Q=R("translate"),Y=()=>["auto","contain","none"],ee=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto",x,t],N=()=>[x,t],U=()=>["",ne,ae],G=()=>["auto",ge,x],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",x],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[ge,x];return{cacheSize:500,separator:":",theme:{colors:[Ae],spacing:[ne,ae],blur:["none","",ce,x],brightness:k(),borderColor:[e],borderRadius:["none","","full",ce,x],borderSpacing:N(),borderWidth:U(),contrast:k(),grayscale:ie(),hueRotate:k(),invert:ie(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[fn,ae],inset:te(),margin:te(),opacity:k(),padding:N(),saturate:k(),scale:k(),sepia:ie(),skew:k(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",x]}],container:["container"],columns:[{columns:[ce]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ue(),x]}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ee,x]}],basis:[{basis:te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",x]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",Ee,x]}],"grid-cols":[{"grid-cols":[Ae]}],"col-start-end":[{col:["auto",{span:["full",Ee,x]},x]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[Ae]}],"row-start-end":[{row:["auto",{span:[Ee,x]},x]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",x]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",x]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ke()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ke(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ke(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",x,t]}],"min-w":[{"min-w":[x,t,"min","max","fit"]}],"max-w":[{"max-w":[x,t,"none","full","min","max","fit","prose",{screen:[ce]},ce]}],h:[{h:[x,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[x,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[x,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[x,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ce,ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oe]}],"font-family":[{font:[Ae]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",x]}],"line-clamp":[{"line-clamp":["none",ge,Oe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ne,x]}],"list-image":[{"list-image":["none",x]}],"list-style-type":[{list:["none","disc","decimal",x]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ne,ae]}],"underline-offset":[{"underline-offset":["auto",ne,x]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),pn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hn]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:re()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[ne,x]}],"outline-w":[{outline:[ne,ae]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ne,ae]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ce,xn]}],"shadow-color":[{shadow:[Ae]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ce,x]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[w]}],saturate:[{saturate:[W]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",x]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",x]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",x]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[Ee,x]}],"translate-x":[{"translate-x":[Q]}],"translate-y":[{"translate-y":[Q]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",x]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ne,ae,Oe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Nn=sn(jn);function E(...e){return Nn(it(e))}const Sn=H.Root,En=H.Portal,ut=K.forwardRef(({className:e,...t},n)=>s.jsx(H.Overlay,{ref:n,className:E("web3kit-fixed web3kit-inset-0 web3kit-z-20 web3kit-bg-white/20 data-[state=open]:web3kit-animate-in data-[state=closed]:web3kit-animate-out data-[state=closed]:web3kit-fade-out-0 data-[state=open]:web3kit-fade-in-0",e),...t}));ut.displayName=H.Overlay.displayName;const wt=K.forwardRef(({className:e,children:t,...n},o)=>s.jsxs(En,{children:[s.jsx(ut,{className:"DialogContent"}),s.jsxs(H.Content,{ref:o,className:E("web3kit-fixed web3kit-left-[50%] web3kit-top-[50%] web3kit-z-20 web3kit-grid web3kit-w-full web3kit-max-w-lg web3kit-translate-x-[-50%] web3kit-translate-y-[-50%] web3kit-gap-4 web3kit-border web3kit-bg-background web3kit-p-6 web3kit-shadow-lg web3kit-duration-200 data-[state=open]:web3kit-animate-in data-[state=closed]:web3kit-animate-out data-[state=closed]:web3kit-fade-out-0 data-[state=open]:web3kit-fade-in-0 data-[state=closed]:web3kit-zoom-out-95 data-[state=open]:web3kit-zoom-in-95 data-[state=closed]:web3kit-slide-out-to-left-1/2 data-[state=closed]:web3kit-slide-out-to-top-[48%] data-[state=open]:web3kit-slide-in-from-left-1/2 data-[state=open]:web3kit-slide-in-from-top-[48%] sm:web3kit-rounded-lg",e),...n,children:[t,s.jsxs(H.Close,{className:"web3kit-absolute web3kit-right-4 web3kit-top-4 web3kit-rounded-sm web3kit-opacity-70 web3kit-ring-offset-background web3kit-transition-opacity hover:web3kit-opacity-100 focus:web3kit-outline-none focus:web3kit-ring-2 focus:web3kit-ring-ring focus:web3kit-ring-offset-2 disabled:web3kit-pointer-events-none data-[state=open]:web3kit-bg-accent data-[state=open]:web3kit-text-muted-foreground",children:[s.jsx(Z.X,{className:"web3kit-h-4 web3kit-w-4"}),s.jsx("span",{className:"web3kit-sr-only",children:"Close"})]})]})]}));wt.displayName=H.Content.displayName;const bt=K.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:E("web3kit-flex web3kit-flex-col web3kit-space-y-1.5 web3kit-text-center sm:web3kit-text-left",e),...t}));bt.displayName="DialogHeader";const ft=K.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:E("web3kit-flex web3kit-flex-col-reverse sm:web3kit-flex-row sm:web3kit-justify-end sm:web3kit-space-x-2",e),...t}));ft.displayName="DialogFooter";const mt=K.forwardRef(({className:e,...t},n)=>s.jsx(H.Title,{ref:n,className:E("web3kit-text-lg web3kit-font-semibold web3kit-leading-none web3kit-tracking-tight",e),...t}));mt.displayName=H.Title.displayName;const kt=K.forwardRef(({className:e,...t},n)=>s.jsx(H.Description,{ref:n,className:E("web3kit-text-sm web3kit-text-muted-foreground",e),...t}));kt.displayName=H.Description.displayName;const pt=({shouldScaleBackground:e=!0,...t})=>s.jsx(J.Drawer.Root,{shouldScaleBackground:e,...t});pt.displayName="Drawer";J.Drawer.Trigger;const An=J.Drawer.Portal;J.Drawer.Close;const gt=K.forwardRef(({className:e,...t},n)=>s.jsx(J.Drawer.Overlay,{ref:n,className:E("web3kit-fixed web3kit-inset-0 web3kit-z-20 web3kit-bg-black/80",e),...t}));var Ze;gt.displayName=((Ze=J.Drawer.Overlay)==null?void 0:Ze.displayName)||"DrawerOverlay";const ht=K.forwardRef(({className:e,children:t,...n},o)=>s.jsxs(An,{children:[s.jsx(gt,{}),s.jsxs(J.Drawer.Content,{ref:o,className:E("web3kit-fixed web3kit-inset-x-0 web3kit-bottom-0 web3kit-z-20 web3kit-mt-24 web3kit-flex web3kit-h-auto web3kit-flex-col web3kit-rounded-t-[10px] web3kit-border web3kit-bg-background",e),...n,children:[s.jsx("div",{className:"web3kit-mx-auto web3kit-mt-4 web3kit-h-2 web3kit-w-[100px] web3kit-rounded-full web3kit-bg-muted"}),t]})]}));ht.displayName="DrawerContent";const xt=({className:e,...t})=>s.jsx("div",{className:E("web3kit-grid web3kit-gap-1.5 web3kit-p-4 web3kit-text-center sm:web3kit-text-left",e),...t});xt.displayName="DrawerHeader";const yt=({className:e,...t})=>s.jsx("div",{className:E("web3kit-mt-auto web3kit-flex web3kit-flex-col web3kit-gap-2 web3kit-p-4",e),...t});yt.displayName="DrawerFooter";const vt=K.forwardRef(({className:e,...t},n)=>s.jsx(J.Drawer.Title,{ref:n,className:E("web3kit-text-lg web3kit-font-semibold web3kit-leading-none web3kit-tracking-tight",e),...t}));var et;vt.displayName=((et=J.Drawer.Title)==null?void 0:et.displayName)||"DrawerTitle";const Ct=K.forwardRef(({className:e,...t},n)=>s.jsx(J.Drawer.Description,{ref:n,className:E("web3kit-text-sm web3kit-text-muted-foreground",e),...t}));var tt;Ct.displayName=((tt=J.Drawer.Description)==null?void 0:tt.displayName)||"DrawerDescription";const jt=K.forwardRef(({className:e,children:t,...n},o)=>s.jsxs(be.Root,{ref:o,className:E("web3kit-relative web3kit-overflow-hidden",e),...n,children:[s.jsx(be.Viewport,{className:"web3kit-h-full web3kit-w-full web3kit-rounded-[inherit]",children:t}),s.jsx(Nt,{}),s.jsx(be.Corner,{})]}));jt.displayName=be.Root.displayName;const Nt=K.forwardRef(({className:e,orientation:t="vertical",...n},o)=>s.jsx(be.ScrollAreaScrollbar,{ref:o,orientation:t,className:E("web3kit-flex web3kit-touch-none web3kit-select-none web3kit-transition-colors",t==="vertical"&&"web3kit-h-full web3kit-w-2.5 web3kit-border-l web3kit-border-l-transparent web3kit-p-[1px]",t==="horizontal"&&"web3kit-h-2.5 web3kit-flex-col web3kit-border-t web3kit-border-t-transparent web3kit-p-[1px]",e),...n,children:s.jsx(be.ScrollAreaThumb,{className:"web3kit-relative web3kit-flex-1 web3kit-rounded-full web3kit-bg-border"})}));Nt.displayName=be.ScrollAreaScrollbar.displayName;const xe="(min-width: 768px)",Rn=({className:e,children:t,...n})=>{const r=ye(xe)?Sn:pt;return s.jsx(r,{...n,className:E("web3kit-transition-transform web3kit-duration-300",e),children:t})},Pn=({className:e,children:t,...n})=>{const r=ye(xe)?wt:ht;return s.jsx(r,{className:E("web3kit-bg-card web3kit-text-card-foreground !web3kit-border-0 !web3kit-rounded-3xl md:web3kit-max-w-[380px] [&>button]:web3kit-right-[26px] [&>button]:web3kit-top-[26px] web3kit-transition-transform web3kit-duration-300 web3kit-z-[60]",e),onOpenAutoFocus:i=>i.preventDefault(),...n,children:t})},Tn=({className:e,children:t,...n})=>{const r=ye(xe)?kt:Ct;return s.jsx(r,{className:e,...n,children:t})},In=({className:e,children:t,...n})=>{const r=ye(xe)?bt:xt;return s.jsx(r,{className:E("web3kit-space-y-0 web3kit-pb-6 md:web3kit-pb-3",e),...n,children:t})},zn=({className:e,children:t,...n})=>{const r=ye(xe)?mt:vt;return s.jsx(r,{className:E("web3kit-text-center web3kit-py-2",e),...n,children:t})},Wn=({className:e,children:t,...n})=>s.jsx(jt,{className:E("web3kit-h-[260px] web3kit-max-h-[350px] web3kit-px-6 md:web3kit-h-full md:web3kit-min-h-[260px] md:web3kit-px-0",e),...n,children:s.jsx("div",{className:"web3kit-space-y-2",children:t})}),Mn=({className:e,children:t,...n})=>{const r=ye(xe)?ft:yt;return s.jsx(r,{className:E("web3kit-py-3.5 md:web3kit-py-0",e),...n,children:s.jsx("div",{className:"web3kit-flex web3kit-flex-col web3kit-gap-y-4 web3kit-w-full",children:t})})};function ye(e){const[t,n]=K.useState(!1);return K.useEffect(()=>{const o=matchMedia(e);n(o.matches);const r=i=>n(i.matches);return o.addEventListener("change",r),()=>o.removeEventListener("change",r)},[e]),t}function On(e){var r,i;const{chain:t,transport:n}=e,o={chainId:t.id,name:t.name,ensAddress:(i=(r=t.contracts)==null?void 0:r.ensRegistry)==null?void 0:i.address};if(n.type==="fallback"){const c=n.transports.map(({value:a})=>new z.JsonRpcProvider(a==null?void 0:a.url,o));return c.length===1?c[0]:new z.FallbackProvider(c)}return new z.JsonRpcProvider(n.url,o)}function St(e,{chainId:t}={}){const n=O.getClient(e,{chainId:t});if(n)return On(n)}function T(){const{chains:e}=S(),{data:t,update:n}=Pe.useSession(),{chainId:o=0,network:r="",address:i="",social:c="",name:a="",image:l="",role:d="",provider:b="",users:w=[]}=(t==null?void 0:t.user)||{},f=e.find(g=>g.id===o);return{address:i,chainId:o,social:c,image:l,name:a,role:d,network:r,provider:b,users:w,chain:f,switchChain:async g=>{await n({id:"switchChain",chainId:g})},switchAccount:async(g,C)=>{await n({id:"switchAccount",network:g,address:C})}}}function $e(){var o,r,i,c,a;const{chainId:e}=T(),{chains:t}=S(),n=t.find(l=>l.id===e);return{chainLogo:(n==null?void 0:n.logo)||m.M,networkLogo:((o=n==null?void 0:n.network)==null?void 0:o.logo)||m.M,nativeSymbol:((r=n==null?void 0:n.nativeCurrency)==null?void 0:r.symbol)||"",nativeDecimals:((i=n==null?void 0:n.nativeCurrency)==null?void 0:i.decimals)||18,txExplorer:((c=n==null?void 0:n.blockExplorers)==null?void 0:c.default.hash)||"",addressExplorer:((a=n==null?void 0:n.blockExplorers)==null?void 0:a.default.address)||""}}function Be(){return L.useQuery({queryKey:["use-social-providers"],queryFn:async()=>{const e=await Pe.getProviders();return Object.values(e||{}).filter(t=>t.id!=="credentials")}})}function le(){const{wagmiConfig:e}=S(),{data:t,...n}=L.useQuery({queryKey:["use-eth-wallets"],queryFn:async()=>{const o={metaMask:m.b,walletConnect:m.m,coinbaseWalletSDK:m.j};return(await O.getConnectors(e)).map(i=>(i.isInstalled=i.type==="mock"||i.type==="injected"&&i.id!=="metaMask"||i.id==="coinbaseWalletSDK",i.icon=o[i.id]||i.icon,i)).filter((i,c,a)=>a.findIndex(l=>l.id===i.id)===c).map(i=>i.id==="walletConnect"?{...i,name:"WalletConnect"}:i).filter((i,c,a)=>!(i.id==="coinbaseWalletSDK"&&a.find(l=>l.id==="com.coinbase.wallet"))).filter((i,c,a)=>!((i.id==="metaMaskSDK"||i.id==="metaMask")&&a.find(l=>l.id==="io.metamask"||l.id==="io.metamask.mobile"))).sort((i,c)=>{const a=i.isInstalled&&i.type==="injected",l=c.isInstalled&&c.type==="injected";return a&&!l?-1:!a&&l?1:0}).sort((i,c)=>i.id==="walletConnect"?1:c.id==="walletConnect"?-1:0)}});return{...n,data:t||[]}}function de(){const{wallet:e,publicKey:t,wallets:n,connect:o,disconnect:r,select:i,signMessage:c,signTransaction:a,signAllTransactions:l}=nt.useWallet();return{wallet:e,publicKey:t,solConnect:o,solDisconnect:r,solSelect:i,solSignMessage:c,solSignTransaction:a,solSignAllTransactions:l,solWallets:n.filter(d=>d.readyState===Re.WalletReadyState.Installed||d.readyState===Re.WalletReadyState.Loadable).sort((d,b)=>b.readyState===Re.WalletReadyState.Installed?1:-1).map(d=>d.adapter)}}function ve(e,t,n,o){const r=t.find(c=>c.id===e);if(!r)throw new Error("Chain not found");let i;switch(r.network.symbol){case m.NetworkSymbols.eth:i=o?St(n,{chainId:e}):new z.JsonRpcProvider(r.rpcUrls.default.http[0]);break;case m.NetworkSymbols.sol:i=new q.Connection(q.clusterApiUrl(Ft.isMainnet?Re.WalletAdapterNetwork.Mainnet:Re.WalletAdapterNetwork.Devnet),"confirmed");break}return i}function Et({address:e,chainId:t}={}){const{chainId:n,address:o}=T(),{chains:r,wagmiConfig:i}=S(),c=t||n,a=r.find(w=>w.id===c),l=e||o,{data:d=0n,...b}=L.useQuery({queryKey:["use-account-balance",{chainId:c,address:l}],queryFn:async function(){if(!l)return 0n;if(!a)throw new Error("Chain not found");const w=ve(c,r,i,l!=="");switch(a.network.symbol){case m.NetworkSymbols.eth:return w instanceof z.JsonRpcProvider||w instanceof z.FallbackProvider?await w.getBalance(l):0n;case m.NetworkSymbols.sol:if(w instanceof q.Connection){const f=await w.getBalance(new q.PublicKey(l));return BigInt(f)}return 0n;default:return 0n}}});return{...b,data:d}}function _n({address:e,tokenAddress:t,chainId:n}){const{chainId:o,address:r}=T(),{chains:i,wagmiConfig:c}=S(),a=n||o,l=i.find(f=>f.id===a),d=e||r,{data:b=0n,...w}=L.useQuery({queryKey:["use-token-balance",{chainId:a,address:d,tokenAddress:t}],queryFn:async function(){if(!d)return 0n;if(!l)throw new Error("Chain not found");const f=ve(a,i,c,d!=="");switch(l.network.symbol){case m.NetworkSymbols.eth:return f instanceof z.JsonRpcProvider||f instanceof z.FallbackProvider?await new z.Contract(t,ot.erc20Abi,f).balanceOf(d):0n;case m.NetworkSymbols.sol:if(f instanceof q.Connection){const g=await f.getTokenAccountsByOwner(new q.PublicKey(d),{mint:new q.PublicKey(t)});if(g.value.length===0)return 0n;const C=await f.getTokenAccountBalance(g.value[0].pubkey);return BigInt(C.value.amount)}return 0n;default:return 0n}}});return{...w,data:b}}function At(){const{chains:e,pendingItem:t,wagmiConfig:n,setRouter:o,setPendingItem:r}=S(),{solWallets:i}=de(),{data:c}=le(),{data:a}=Be();return L.useMutation({mutationKey:["use-connect",{id:t==null?void 0:t.id,network:t==null?void 0:t.network}],mutationFn:async()=>{if(t)if(t.network===m.NetworkSymbols.eth){const l=c.find(w=>w.id===t.id);if(!l)throw new Error(`Wallet ${t.id} not found`);try{await O.disconnect(n,{connector:l})}catch{}let d=null;try{const w=await O.connect(n,{connector:l});d={chainId:w.chainId,accounts:Array.from(w.accounts)}}catch(w){if(!(w instanceof O.ConnectorAlreadyConnectedError))throw console.log("error",w),w}if(!d){const w=O.getChainId(n),f=O.getAccount(n);d={chainId:w,accounts:f!=null&&f.address?[f.address]:[]}}if(!(d!=null&&d.chainId))throw new Error("Failed to connect to wallet");const b=e.find(w=>w.id===d.chainId);if(!b){const w=e.find(f=>f.network.symbol===m.NetworkSymbols.eth);if(!w)throw new Error("Chain not found");await O.switchChain(n,{connector:l,chainId:w.id})}o(()=>{var w;return r({id:l==null?void 0:l.id,name:l==null?void 0:l.name,logo:l==null?void 0:l.icon,network:m.NetworkSymbols.eth,chainId:b.id,address:(w=d==null?void 0:d.accounts)==null?void 0:w[0]}),p.accountSigning})}else if(t.network===m.NetworkSymbols.sol){const l=i.find(d=>d.name===t.id);if(!l)throw new Error(`Wallet ${t.id} not found`);l.connected&&await l.disconnect(),await l.connect()}else{const l=a.find(d=>d.id===t.id);if(!l)throw new Error(`Provider ${t.id} not found`);await Pe.signIn(l.id),fe.toast.success("Redirecting to oauth provider")}},onSuccess:()=>{fe.toast.success("Connected to wallet")},onError:l=>{throw console.log("connect error",l),l}})}function Dn(){var l;const{address:e,social:t,chain:n,network:o,provider:r,switchChain:i}=T(),{wagmiConfig:c}=S(),{data:a}=le();return L.useMutation({mutationKey:["use-switch-chain",{social:t,network:(l=n==null?void 0:n.network)==null?void 0:l.symbol}],mutationFn:async d=>{if(e)if(t)await i(d);else if(o===m.NetworkSymbols.eth){const b=a.find(w=>w.id===r);if(!b)throw new Error(`Wallet ${r} not found`);await O.switchChain(c,{connector:b,chainId:d})}else throw o===m.NetworkSymbols.sol?new Error("Solana wallet does not support chain switching"):new Error("Unknown network")},onSuccess:()=>{fe.toast.success("Switched to chain")},onError:d=>{throw console.log("switch chain error",d),d}})}function Fn(){const{pendingItem:e,wagmiConfig:t,signMessage:n}=S(),{solWallets:o}=de(),{data:r}=le();return L.useMutation({mutationKey:["use-sign-account",{id:e==null?void 0:e.id,network:e==null?void 0:e.network}],mutationFn:async()=>{if(!e)return;let i;if(e.network===m.NetworkSymbols.eth){const c=r.find(a=>a.id===e.id);if(!c)throw new Error(`Wallet ${e.id} not found`);i=await O.signMessage(t,{connector:c,message:n})}else if(e.network===m.NetworkSymbols.sol){const c=o.find(l=>l.name===e.id);if(!c)throw new Error(`Wallet ${e.id} not found`);const a=await c.signMessage(Buffer.from(n));i=Buffer.from(a).toString("base64")}else throw new Error("Unknown network");await Pe.signIn("credentials",{redirect:!1,signature:i,provider:e.id,chainId:e.chainId,address:e.address,message:n})},onSuccess:()=>{fe.toast.success("Signed in")},onError:i=>{throw console.log("sign account error",i),i}})}function qn(){const{pendingItem:e,setRouter:t,setPendingItem:n}=S(),{users:o}=T(),{solWallets:r}=de(),{data:i}=le();return L.useMutation({mutationKey:["use-sign-account",{id:e==null?void 0:e.id,network:e==null?void 0:e.network}],mutationFn:async({network:c,address:a})=>{if(!e)return;const l=o.find(d=>d.network===c&&d.address===a);if(!l)throw new Error("User not found");if(l.social)t(()=>(n({id:l.provider,logo:l.image,network:"",description:`We connect your "${l.name}" account to our platform.`}),p.socialConnecting));else if(l.network===m.NetworkSymbols.eth){const d=i.find(b=>b.id===l.provider);if(!d)throw new Error(`Wallet ${l.provider} not found`);t(()=>(n({id:d.id,logo:d.icon,network:m.NetworkSymbols.eth,description:`Open the ${d.name} browser extension to connect your wallet.`}),p.walletConnecting))}else{const d=r.find(b=>b.name===l.provider);if(!d)throw new Error(`Wallet ${l.provider} not found`);t(()=>(n({id:d.name,logo:d.icon,network:m.NetworkSymbols.sol,description:`Open the ${d.name} browser extension to connect your wallet.`}),p.walletConnecting))}},onSuccess:()=>{},onError:c=>{throw console.log("switch account error",c),c}})}function Rt(){const{wagmiConfig:e}=S(),{data:t}=le(),{solWallets:n,solDisconnect:o}=de(),{provider:r,social:i,address:c,network:a}=T();return L.useMutation({mutationKey:["use-disconnect-account",{social:i,address:c,network:a}],mutationFn:async()=>{if(!i)if(a===m.NetworkSymbols.eth){const l=t.find(d=>d.id===r);if(!l)throw new Error(`Wallet ${r} not found`);await O.disconnect(e,{connector:l})}else if(a===m.NetworkSymbols.sol){if(!n.find(d=>d.name===r))throw new Error(`Wallet ${r} not found`);await o()}else throw new Error("Unknown network");await Pe.signOut({redirect:!1})},onSuccess:()=>{fe.toast.success("Signed out")},onError:l=>{throw console.log("disconnect account error",l),l}})}function Pt({address:e,chainId:t}={}){const{chainId:n,address:o}=T(),{chains:r,wagmiConfig:i}=S(),c=t||n,a=r.find(b=>b.id===c);if(!a)throw new Error("Chain not found");const l=a.network.symbol,d=e||o;return L.useMutation({mutationKey:["use-balance-async",{chainId:c,address:d}],mutationFn:async function(){let b=0n;const w=ve(c,r,i,d!=="");switch(l){case m.NetworkSymbols.eth:(w instanceof z.JsonRpcProvider||w instanceof z.FallbackProvider)&&(b=await w.getBalance(d));break;case m.NetworkSymbols.sol:if(w instanceof q.Connection){const f=await w.getBalance(new q.PublicKey(d));b=BigInt(f)}break}return b},onError:b=>{console.log(b)}})}function Tt({address:e,chainId:t}={}){const{chainId:n,address:o}=T(),{chains:r,wagmiConfig:i}=S(),c=t||n,a=r.find(d=>d.id===c);if(!a)throw new Error("Chain not found");const l=e||o;return L.useMutation({mutationKey:["use-token-balance-async",{chainId:c,address:l}],mutationFn:async function(d){if(!l)return 0n;if(!a)throw new Error("Chain not found");const b=ve(c,r,i,l!=="");switch(a.network.symbol){case m.NetworkSymbols.eth:return b instanceof z.JsonRpcProvider||b instanceof z.FallbackProvider?await new z.Contract(d,ot.erc20Abi,b).balanceOf(l):0n;case m.NetworkSymbols.sol:if(b instanceof q.Connection){const w=await b.getTokenAccountsByOwner(new q.PublicKey(l),{mint:new q.PublicKey(d)});if(w.value.length===0)return 0n;const f=await b.getTokenAccountBalance(w.value[0].pubkey);return BigInt(f.value.amount)}return 0n;default:return 0n}},onError:d=>{console.log(d)}})}function $n(){const{chainId:e,social:t}=T(),{chains:n}=S();return L.useMutation({mutationKey:["use-send-transaction-async",{chainId:e,social:t}],mutationFn:async({address:o,value:r})=>{const i=n.find(a=>a.id===e);if(!i)throw new Error("Chain not found");const c=i.network.symbol;if(t){const a=we.serialize(c,{address:o,value:r}),l=await fetch("/api/based-auth/transfer",{method:"POST",body:JSON.stringify(a)});if(!l.ok){const d=await l.json();throw new Error(d.message)}return l.json()}else throw new Error("This feature is not available for only social wallets")},onError:o=>{throw fe.toast.error(o.message),o},onSuccess:()=>{fe.toast.success("Balance transferred")}})}function Bn({chainId:e}={}){const{chainId:t,social:n,switchChain:o}=T(),{data:r}=le(),{solWallets:i}=de(),{chains:c,wagmiConfig:a}=S(),l=e||t;return L.useMutation({mutationKey:["use-read-contract-async",{chainId:l,social:n,wallets:[...r.map(d=>d.id),...i.map(d=>d.name)]}],mutationFn:async d=>{const b=c.find(f=>f.id===l);if(!b)throw new Error("Chain not found");const w=b.network.symbol;if(n){t!==l&&await o(l);const f=await fetch("/api/based-auth/read-contract",{method:"POST",body:we.serialize(w,d)});if(!f.ok){const C=await f.json();throw new Error(C.message)}const g=await f.json();return we.deserialize(g)}if(w===m.NetworkSymbols.eth){const f=St(a,{chainId:l}),C=await new z.Contract(d.address,d.abi,f)[d.functionName](...d.args);return we.deserialize(we.serialize(w,C))}throw new Error("Unknown network")},onError:d=>{throw console.log(d),d}})}function Kn({key:e,chainId:t}={}){const{chainId:n,social:o,provider:r,switchChain:i,address:c}=T(),{chains:a,wagmiConfig:l}=S(),{data:d}=le(),{solWallets:b,solSelect:w}=de();A.useEffect(()=>{b.some(g=>g.name===r)&&w(r)},[r,b]);const f=t||n;return L.useMutation({mutationKey:["use-write-contract-async",{key:e,chainId:f,social:o,account:c,wallets:[...d.map(g=>g.id),...b.map(g=>g.name)],provider:r}],mutationFn:async g=>{const C=a.find(y=>y.id===f);if(!C)throw new Error("Chain not found");const v=C.network.symbol,h=we.serialize(v,g);if(o){f!==g.chainId&&await i(g.chainId);const y=await fetch("/api/based-auth/write-contract",{method:"POST",body:JSON.stringify(h)});if(!y.ok){const j=await y.json();throw console.log(j),new Error(j.message)}return y.json()}else if(v===m.NetworkSymbols.eth){const y=d.find(j=>j.id===r);if(!y)throw new Error(`Wallet ${r} not found`);try{const{abi:j,functionName:W,address:I,value:M=0n,args:$}=g;return await O.writeContract(l,{abi:j,args:$,chainId:f,connector:y,value:M,functionName:W,address:I})}catch(j){throw console.log(j),new Error(j.shortMessage)}}else if(v===m.NetworkSymbols.sol){const y=b.find(U=>U.name===r);if(!y)throw new Error(`Wallet ${r} not found`);const{abi:j,address:W,functionName:I,args:M,accounts:$={},preInstructions:_=[],signers:Q=[],remainingAccounts:Y=[]}=we.deserialize(h),ee=ve(f,a),te=new Le.AnchorProvider(ee,y,{}),N=new Le.Program(j,new q.PublicKey(W),te);try{const U=await Promise.all([Promise.resolve(q.ComputeBudgetProgram.setComputeUnitLimit({units:4e5})),Promise.resolve(q.ComputeBudgetProgram.setComputeUnitPrice({microLamports:1e5})),..._.map(B=>B.programId.toBase58()!==N.programId.toBase58()?Promise.resolve(B):N.methods[B.functionName](...B.args||[]).accounts(B.accounts||{}).instruction())]),G=await N.methods[I](...M).accounts($).preInstructions(U).remainingAccounts(Y.map(B=>({isWritable:!1,isSigner:!1,pubkey:B}))).transaction();G.recentBlockhash=(await ee.getLatestBlockhash()).blockhash,G.feePayer=y.publicKey,Q.length>0&&G.partialSign(...Q.map(B=>q.Keypair.fromSecretKey(Buffer.from(B,"hex")))),console.log(G.serialize().length);const ue=await y.signTransaction(G);return await ee.sendRawTransaction(ue.serialize())}catch(U){throw console.log(U),new Error(U.transactionMessage||U.message)}}}})}const me=({className:e})=>s.jsxs("svg",{"aria-hidden":"true",width:"102",height:"102",viewBox:"0 0 102 102",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[s.jsx("path",{d:"M52 100C24.3858 100 2 77.6142 2 50",stroke:"url(#paint0_linear_1943_4139)",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"paint0_linear_1943_4139",x1:"2",y1:"48.5",x2:"53",y2:"100",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"currentColor"}),s.jsx("stop",{offset:"1",stopColor:"currentColor",stopOpacity:"0"})]})})]});function oe({className:e,index:t=0,onClick:n,logo:o,children:r,disabled:i=!1,...c}){return s.jsxs(V.motion.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1*(t+1)},onClick:n,className:E("web3kit-flex web3kit-justify-between web3kit-h-12 web3kit-items-center web3kit-rounded-xl web3kit-px-4 web3kit-py-2 web3kit-text-lg web3kit-font-semibold web3kit-shadow-md web3kit-bg-muted web3kit-gap-x-2 web3kit-w-full",i?"web3kit-bg-muted web3kit-text-muted-foreground":"hover:web3kit-bg-accent hover:web3kit-shadow-xl",e),disabled:i,...c,children:[s.jsx("div",{className:"web3kit-leading-none",children:r}),i?s.jsx(me,{className:"web3kit-size-8 web3kit-animate-spin"}):typeof o=="string"?s.jsx(V.motion.img,{src:o,alt:`${t} logo`,className:"web3kit-size-8 web3kit-overflow-hidden web3kit-rounded-lg"}):o]})}function Ln(){const{setPendingItem:e,setRouter:t}=S(),{users:n}=T(),{data:o}=le();return A.useEffect(()=>{e(null)},[]),s.jsx("div",{className:"web3kit-space-y-2",children:o.filter(r=>!n.find(i=>i.provider===r.id&&i.network===m.NetworkSymbols.eth)).map((r,i)=>s.jsx(oe,{index:i,logo:r.icon,onClick:()=>{t(()=>(e({id:r.id,logo:r.icon,network:m.NetworkSymbols.eth,description:`Open the ${r.name} browser extension to connect your wallet.`}),p.walletConnecting))},children:r.name},r.id))})}function Gn(){const{solWallets:e}=de(),{users:t}=T(),{setPendingItem:n,setRouter:o}=S();return A.useEffect(()=>{n(null)},[]),s.jsx("div",{className:"web3kit-space-y-2",children:e.filter(r=>!t.find(i=>i.provider===r.name&&i.network===m.NetworkSymbols.sol)).map((r,i)=>s.jsx(oe,{index:i,logo:r.icon,onClick:()=>{o(()=>(n({id:r.name,logo:r.icon,network:m.NetworkSymbols.sol,description:`Open the ${r.name} browser extension to connect your wallet.`}),p.walletConnecting))},children:r.name},i))})}function Un(){const{address:e}=T();return s.jsxs("div",{className:"web3kit-flex web3kit-flex-col web3kit-items-center web3kit-gap-4",children:[s.jsx("div",{className:"web3kit-text-center",children:s.jsx("p",{className:"web3kit-text-sm web3kit-text-muted-foreground",children:"Scan this QR code to send funds to your wallet"})}),s.jsx(V.motion.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.3},className:"web3kit-flex web3kit-items-center web3kit-justify-center web3kit-p-4 web3kit-bg-white web3kit-rounded-lg",children:s.jsx(qt.QRCodeSVG,{value:e,size:200,level:"H",marginSize:1,className:"web3kit-border web3kit-rounded-lg"})})]})}const Qe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xe=it,Vn=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Xe(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,c=Object.keys(r).map(d=>{const b=n==null?void 0:n[d],w=i==null?void 0:i[d];if(b===null)return null;const f=Qe(b)||Qe(w);return r[d][f]}),a=n&&Object.entries(n).reduce((d,b)=>{let[w,f]=b;return f===void 0||(d[w]=f),d},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,b)=>{let{class:w,className:f,...g}=b;return Object.entries(g).every(C=>{let[v,h]=C;return Array.isArray(h)?h.includes({...i,...a}[v]):{...i,...a}[v]===h})?[...d,w,f]:d},[]);return Xe(e,c,l,n==null?void 0:n.class,n==null?void 0:n.className)},Yn=Vn("web3kit-inline-flex web3kit-items-center web3kit-justify-center web3kit-gap-2 web3kit-whitespace-nowrap web3kit-rounded-md web3kit-text-sm web3kit-font-medium web3kit-transition-colors focus-visible:web3kit-outline-none focus-visible:web3kit-ring-1 focus-visible:web3kit-ring-ring disabled:web3kit-pointer-events-none disabled:web3kit-opacity-50 [&_svg]:web3kit-pointer-events-none [&_svg]:web3kit-size-4 [&_svg]:web3kit-shrink-0",{variants:{variant:{default:"web3kit-bg-primary web3kit-text-primary-foreground web3kit-shadow hover:web3kit-bg-primary/90",destructive:"web3kit-bg-destructive web3kit-text-destructive-foreground web3kit-shadow-sm hover:web3kit-bg-destructive/90",outline:"web3kit-border web3kit-border-input web3kit-bg-background web3kit-shadow-sm hover:web3kit-bg-accent hover:web3kit-text-accent-foreground",secondary:"web3kit-bg-secondary web3kit-text-secondary-foreground web3kit-shadow-sm hover:web3kit-bg-secondary/80",ghost:"hover:web3kit-bg-accent hover:web3kit-text-accent-foreground",link:"web3kit-text-primary web3kit-underline-offset-4 hover:web3kit-underline"},size:{default:"web3kit-h-9 web3kit-px-4 web3kit-py-2",sm:"web3kit-h-8 web3kit-rounded-md web3kit-px-3 web3kit-text-xs",lg:"web3kit-h-10 web3kit-rounded-md web3kit-px-8",icon:"web3kit-h-9 web3kit-w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ce=K.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},i)=>{const c=o?$t.Slot:"button";return s.jsx(c,{className:E(Yn({variant:t,size:n}),e),ref:i,...r})});Ce.displayName="Button";function Hn(){const{pendingItem:e}=S(),{mutateAsync:t,isError:n,error:o,isPending:r}=At();return A.useEffect(()=>{t()},[e]),e?s.jsxs("div",{className:"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5",children:[s.jsxs("div",{className:E("web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3"),children:[s.jsx("img",{src:e.logo,alt:e.name,className:"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl"}),!r&&n?s.jsx(Ce,{size:"icon",variant:"ghost",className:"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow",onClick:()=>{t()},children:s.jsx(Z.RotateCcw,{className:"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45"})}):s.jsx(me,{className:"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin"})]}),s.jsxs("div",{className:"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0",children:[s.jsx("h1",{className:"web3kit-text-xl web3kit-font-semibold",children:n||o?"Request Error":"Requesting Connection"}),s.jsx("p",{className:"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground",children:n||o?"There was an error with the request. Click above to try again.":e.description})]})]}):null}function Jn(){const{pendingItem:e,setRouter:t}=S(),{mutateAsync:n,isError:o,isPending:r}=Dn();return A.useEffect(()=>{e?n(...e.args):t(p.account)},[]),e?s.jsxs("div",{className:"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5",children:[s.jsxs("div",{className:E("web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3"),children:[s.jsx("img",{src:e.logo,alt:e.name,className:"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl"}),!r&&o?s.jsx(Ce,{size:"icon",variant:"ghost",className:"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow",onClick:()=>{n(...e.args)},children:s.jsx(Z.RotateCcw,{className:"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45"})}):s.jsx(me,{className:"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin"})]}),s.jsxs("div",{className:"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0",children:[s.jsx("h1",{className:"web3kit-text-xl web3kit-font-semibold",children:o?"Request Error":"Requesting Connection"}),s.jsx("p",{className:"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground",children:o?"There was an error with the request. Click above to try again.":`We change your chain to "${e.name}".`})]})]}):null}function It(e,t=4){const n=e==null?void 0:e.startsWith("0x");return`${e==null?void 0:e.slice(0,(n?2:0)+t)}...${e==null?void 0:e.slice(-t)}`}function zt({index:e,className:t}){return s.jsx(V.motion.div,{className:E("web3kit-animate-pulse web3kit-rounded-md web3kit-bg-foreground/10 web3kit-w-full",t),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3*(e+1)}})}function Qn(){const{address:e,network:t,users:n}=T(),{isPending:o}=Be(),{setPendingItem:r,setRouter:i}=S();return o?s.jsx("div",{className:"web3kit-space-y-2",children:Array.from({length:3}).map((c,a)=>s.jsx(zt,{index:a,className:"web3kit-h-12"},a))}):s.jsx("div",{className:"web3kit-space-y-2",children:n.filter(c=>!(c.address===e&&c.network===t)).map((c,a)=>s.jsx(oe,{index:a,logo:c.image,onClick:()=>{r(()=>(i(p.switchingAccount),{name:c.name,logo:c.image,args:[{network:c.network,address:c.address}],description:`We change your account to "${c.name}".`}))},children:It(c.address)},a))})}function Xn({className:e,...t}){return s.jsx("div",{className:E("web3kit-animate-pulse web3kit-rounded-md web3kit-bg-foreground/10",e),...t})}function Zn({address:e}){const[t,n]=A.useState(!1);A.useEffect(()=>{const r=setTimeout(()=>{t&&n(!1)},1e3);return()=>clearTimeout(r)},[t,n]);async function o(){n(!0),await navigator.clipboard.writeText(e)}return s.jsx("button",{className:"web3kit-cursor-pointer hover:web3kit-text-foreground web3kit-text-muted-foreground",onClick:o,children:t?s.jsx(Z.CheckIcon,{className:"web3kit-size-4"}):s.jsx(Z.CopyIcon,{className:"web3kit-size-4"})})}function eo(e){let t="";for(;e>=10;)t=String.fromCharCode(8320+e%10)+t,e=Math.floor(e/10);return String.fromCharCode(8320+e)+t}function to(e,t=3){if(e=+e,e!==0&&e<+`1e-${t}`){const n=e.toExponential(t-1),o=n.replace(/(\.|e-\d+$)/gi,"").replace(/0+$/,""),r=Number(n.split("e-")[1]);return"0.0"+eo(r-1)+o}return e=+(+e).toFixed(t),e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}function Wt({className:e=""}){const{chains:t,setRouter:n}=S(),{chainId:o,address:r,network:i,social:c,image:a,users:l}=T(),{chainLogo:d,nativeSymbol:b,addressExplorer:w}=$e(),{data:f,isPending:g}=Et(),C=t.filter(h=>h.id!==o).filter(h=>c||h.network.symbol===i).length>0,v=[l.length>1&&{label:"Switch Account",logo:m.T,onClick:()=>{n("switchAccount")}},C&&{label:"Switch Chain",logo:d||m.M,onClick:()=>{n(p.switchChain)}},{label:"Add Account",logo:m.T,onClick:()=>{n(p.home)}},c&&{label:"Withdraw",logo:m.H,onClick:()=>{n(p.withdrawFunds)}}].filter(Boolean);return s.jsxs("div",{className:E("web3kit-space-y-4 web3kit-text-center",e),children:[s.jsx(V.motion.img,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.5,ease:[.4,0,.2,1],delay:.1},src:typeof a=="string"?a:void 0,alt:`avatar for ${r}`,className:"web3kit-size-24 web3kit-rounded-full web3kit-mx-auto"}),s.jsxs("div",{className:"web3kit-flex web3kit-items-end web3kit-gap-2 web3kit-justify-center",children:[s.jsx("div",{className:"web3kit-text-sm web3kit-leading-none",children:g?s.jsx(Xn,{className:"web3kit-h-4 web3kit-w-[50px]"}):`${to(z.formatUnits(f||0n,18))} ${b}`}),s.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:w.replace("{{addr}}",r),className:"web3kit-leading-none web3kit-text-primary",children:It(r)}),s.jsx(Zn,{address:r}),s.jsx(Z.QrCodeIcon,{className:"web3kit-size-4 web3kit-cursor-pointer hover:web3kit-text-foreground",onClick:()=>{n(p.walletqr)}})]}),s.jsx("div",{className:"web3kit-space-y-2",children:v.map((h,y)=>s.jsx(oe,{index:y,className:"web3kit-w-full",logo:h.logo,onClick:h.onClick,children:s.jsx("div",{className:"web3kit-text-lg",children:h.label})},y))})]})}const no={google:m.e,github:m.c,twitter:m.u,discord:m.n};function Mt(){const{data:e,isPending:t}=Be(),{chains:n,setPendingItem:o,setRouter:r}=S(),{users:i}=T(),c=Object.values(n.reduce((a,l)=>(a[l.network.symbol]=l.network,a),{}));return A.useEffect(()=>{o(null)},[]),t?s.jsx("div",{className:"web3kit-space-y-2",children:Array.from({length:3}).map((a,l)=>s.jsx(zt,{index:l,className:"web3kit-h-12"},l))}):s.jsxs("div",{className:"web3kit-space-y-2",children:[s.jsx("div",{className:"web3kit-flex web3kit-items-center web3kit-gap-2",children:c.map((a,l)=>s.jsx(oe,{index:l,logo:a.logo,onClick:()=>{switch(a.symbol){case m.NetworkSymbols.eth:r(p.selectETHWallet);break;case m.NetworkSymbols.sol:r(p.selectSolanaWallet);break}},children:a.name},l))}),e.filter(a=>!i.some(l=>l.provider===a.id)).map((a,l)=>{const d=no[a.id]||m.M;return s.jsx(oe,{index:l,logo:d,onClick:()=>{r(()=>(o({id:a.id,chainId:n[0].id,logo:d,network:"",description:`We connect your "${a.name}" account to our platform.`}),p.socialConnecting))},children:a.name},a.id)})]})}function oo(){const{chainId:e,network:t,social:n}=T(),{chains:o,setPendingItem:r,setRouter:i}=S();return s.jsx("div",{className:"web3kit-space-y-2",children:o.filter(c=>c.id!==e).filter(c=>n||c.network.symbol===t).map((c,a)=>s.jsx(oe,{index:a,logo:c.logo,onClick:()=>{r(()=>(i(p.switchingChain),{name:c.name,logo:c.logo,args:[c.id]}))},className:"web3kit-w-full",children:c.name},a))})}function ro(){const{pendingItem:e,setRouter:t}=S(),{mutateAsync:n,isError:o,isPending:r}=qn();return A.useEffect(()=>{e?n(...e.args):t(p.account)},[]),e?s.jsxs("div",{className:"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5",children:[s.jsxs("div",{className:E("web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3"),children:[s.jsx("img",{src:e.logo,alt:e.name,className:"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl"}),!r&&o?s.jsx(Ce,{size:"icon",variant:"ghost",className:"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow",onClick:()=>{n(...e.args)},children:s.jsx(Z.RotateCcw,{className:"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45"})}):s.jsx(me,{className:"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin"})]}),s.jsxs("div",{className:"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0",children:[s.jsx("h1",{className:"web3kit-text-xl web3kit-font-semibold",children:o?"Request Error":"Requesting Connection"}),s.jsx("p",{className:"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground",children:o?"There was an error with the request. Click above to try again.":`We change your account to "${e.name}".`})]})]}):null}function io(){const e=A.useRef(null),t=A.useRef(null),[n,o]=A.useState("native"),{nativeSymbol:r,nativeDecimals:i}=$e(),{chainId:c,address:a,network:l}=T(),{chains:d,wagmiConfig:b}=S(),{mutateAsync:w,isPending:f}=Tt(),{mutateAsync:g,isPending:C}=Pt(),{mutateAsync:v,isPending:h}=$n();async function y(W){W.preventDefault();const I=new FormData(W.target),M=I.get("type");I.get("token");const $=I.get("amount"),_=I.get("recepient");if(M==="native")await v({address:_,value:z.parseUnits($,i)});else throw new Error("Not implemented yet")}const j=async W=>{var I;if(W.preventDefault(),e.current){let M=0n;const $=ve(c,d,b,a!=="");if(l===m.NetworkSymbols.eth){const _=11n,Q=21000n;if(!$||!($ instanceof z.JsonRpcProvider||$ instanceof z.FallbackProvider))throw new Error("Provider not found");const Y=(await $.getFeeData()).gasPrice;if(console.log({gasPrice:Y}),!Y)throw new Error("Failed to get gas price");M=_*Y*Q}else if(l===m.NetworkSymbols.sol)M=5000n;else throw new Error("Invalid network");if(n==="token"){const _=await w((I=t.current)==null?void 0:I.value);e.current.value=z.formatUnits(_,i)}else{const _=await g();e.current.value=Number(z.formatUnits(_<=M?0n:_-M,i)).toString()}}};return s.jsxs("form",{className:"web3kit-flex web3kit-flex-col web3kit-justify-between web3kit-items-center web3kit-gap-y-4",onSubmit:y,children:[s.jsxs(V.motion.select,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full",name:"type",onChange:W=>o(W.target.value),children:[s.jsx(V.motion.option,{value:"native",className:"web3kit-text-sm",children:r}),s.jsx(V.motion.option,{value:"token",className:"web3kit-text-sm",children:"Token"})]}),n==="token"&&s.jsx(V.motion.input,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full",name:"token",placeholder:"Token Address",ref:t}),s.jsxs("div",{className:"web3kit-relative web3kit-w-full",children:[s.jsx(V.motion.input,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full",name:"amount",placeholder:"Amount",ref:e}),s.jsx(V.motion.button,{className:"web3kit-absolute web3kit-right-2 web3kit-top-1/2 web3kit-text-xs web3kit-text-muted-foreground web3kit-font-medium web3kit-bg-background web3kit-rounded-md web3kit-px-2 web3kit-py-1 web3kit-translate-y-[-50%]",onClick:j,disabled:f||C,children:f||C?s.jsx(me,{className:"web3kit-size-6 web3kit-animate-spin"}):"MAX"})]}),s.jsx(V.motion.input,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"web3kit-bg-background web3kit-rounded-md web3kit-border web3kit-border-input web3kit-text-sm web3kit-ring-offset-background web3kit-focus:web3kit-ring-ring web3kit-focus:web3kit-ring-offset-2 web3kit-disabled:web3kit-cursor-not-allowed web3kit-disabled:web3kit-opacity-50 web3kit-px-4 web3kit-py-2 web3kit-w-full",name:"recepient",placeholder:"Recepient Address"}),s.jsx(oe,{disabled:h,logo:m.H,children:h?"Withdrawing":"Withdraw"})]})}function so(){const{pendingItem:e}=S(),{mutateAsync:t,isError:n,error:o,isPending:r}=At();return A.useEffect(()=>{t()},[e]),e?s.jsxs("div",{className:"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5",children:[s.jsxs("div",{className:E("web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3"),children:[s.jsx("img",{src:e.logo,alt:e.name,className:"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl"}),!r&&n?s.jsx(Ce,{size:"icon",variant:"ghost",className:"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow",onClick:()=>{t()},children:s.jsx(Z.RotateCcw,{className:"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45"})}):s.jsx(me,{className:"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin"})]}),s.jsxs("div",{className:"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0",children:[s.jsx("h1",{className:"web3kit-text-xl web3kit-font-semibold",children:n||o?"Request Error":"Requesting Connection"}),s.jsx("p",{className:"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground",children:n||o?"There was an error with the request. Click above to try again.":e.description})]})]}):null}function ao(){const{pendingItem:e}=S(),{error:t,isError:n,isPending:o,mutateAsync:r}=Fn();return A.useEffect(()=>{r()},[e]),e?s.jsxs("div",{className:"web3kit-flex web3kit-w-full web3kit-flex-col web3kit-items-center web3kit-justify-center web3kit-gap-9 md:web3kit-pt-5",children:[s.jsxs("div",{className:E("web3kit-relative web3kit-size-28 web3kit-flex web3kit-items-center web3kit-justify-center web3kit-rounded-2xl web3kit-p-3"),children:[s.jsx("img",{src:e.logo,alt:e.name,className:"web3kit-size-16 web3kit-overflow-hidden web3kit-rounded-2xl"}),!o&&n?s.jsx(Ce,{size:"icon",variant:"ghost",className:"web3kit-group web3kit-absolute -web3kit-bottom-2 -web3kit-right-2 web3kit-rounded-full web3kit-bg-muted web3kit-p-1.5 web3kit-shadow",onClick:()=>{r()},children:s.jsx(Z.RotateCcw,{className:"web3kit-size-4 web3kit-transition-transform group-hover:-web3kit-rotate-45"})}):s.jsx(me,{className:"web3kit-absolute web3kit-w-full web3kit-h-full web3kit-text-primary web3kit-animate-spin"})]}),s.jsxs("div",{className:"web3kit-space-y-3.5 web3kit-px-3.5 web3kit-text-center sm:web3kit-px-0",children:[s.jsx("h1",{className:"web3kit-text-xl web3kit-font-semibold",children:n||t?"Request Error":"Requesting Connection"}),s.jsx("p",{className:"web3kit-text-balance web3kit-text-sm web3kit-text-muted-foreground",children:n||t?"There was an error with the request. Click above to try again.":`We're verifying your ${e.id} account.`})]})]}):null}function co(){const{setRouter:e,setPendingItem:t}=S(),{solWallets:n}=de(),o=L.useQueryClient();return A.useEffect(()=>(n.forEach(r=>{r.on("connect",async i=>{e(()=>(t({id:r.name,logo:r.icon,network:m.NetworkSymbols.sol,chainId:Me.isMainnet?Me.chainSol.id:Me.chainSolDevnet.id,address:i.toBase58()}),p.accountSigning))}),r.on("error",i=>{console.log("error",i,r.name)}),r.on("disconnect",async()=>{console.log("disconnect",r.name)})}),()=>{n.forEach(r=>{r.off("connect"),r.off("error"),r.off("disconnect")})}),[n]),A.useEffect(()=>{o.fetchQuery({queryKey:["use-social-providers"]})},[]),s.jsx(s.Fragment,{})}const lo={[p.home]:s.jsx(Mt,{}),[p.account]:s.jsx(Wt,{}),[p.accountSigning]:s.jsx(ao,{}),[p.switchChain]:s.jsx(oo,{}),[p.switchingChain]:s.jsx(Jn,{}),[p.switchAccount]:s.jsx(Qn,{}),[p.switchingAccount]:s.jsx(ro,{}),[p.selectETHWallet]:s.jsx(Ln,{}),[p.selectSolanaWallet]:s.jsx(Gn,{}),[p.walletConnecting]:s.jsx(Hn,{}),[p.socialConnecting]:s.jsx(so,{}),[p.walletqr]:s.jsx(Un,{}),[p.withdrawFunds]:s.jsx(io,{})};function uo(e){const{address:t,chainId:n}=T(),{router:o,setRouter:r,open:i,setOpen:c,pendingItem:a,setPendingItem:l}=S();return A.useEffect(()=>{c(!1),l(null),r(t?p.account:p.home)},[t,n]),A.useEffect(()=>{i||r(t?p.account:p.home)},[i]),A.useEffect(()=>{const d=new MutationObserver(b=>{b.forEach(w=>{w.type==="attributes"&&w.attributeName==="style"&&document.body.style.pointerEvents==="none"&&!i&&(console.log("pointerEvents removed"),document.body.style.pointerEvents="")})});return d.observe(document.body,{attributes:!0,attributeFilter:["style"]}),()=>{d.disconnect()}},[]),s.jsxs(s.Fragment,{children:[e.children,s.jsx(co,{}),s.jsx(Rn,{open:i,onOpenChange:c,children:s.jsxs(Pn,{children:[s.jsxs(In,{children:[s.jsx(fo,{}),s.jsx(zn,{children:o&&o in Ye?Ye[o]:"Login"}),s.jsx(Tn,{className:"web3kit-sr-only",children:"Connect your Web3 wallet or create a new one."})]}),s.jsx(Wn,{children:lo[o]||s.jsx(s.Fragment,{children:t?s.jsx(Wt,{}):s.jsx(Mt,{})})}),s.jsx(Mn,{children:s.jsx(wo,{})})]})})]})}function wo(){const{address:e}=T(),{pendingItem:t}=S();return s.jsx(s.Fragment,{children:e&&!t&&s.jsx(bo,{})})}function bo(){const{mutateAsync:e,isPending:t}=Rt();return s.jsx(oe,{logo:m.r,disabled:t,onClick:()=>e(),children:t?"Signing out":"Logout"})}function fo(){const{address:e}=T(),{router:t,setRouter:n,pendingItem:o,setPendingItem:r}=S();if(!t||t===p.home&&!e||t===p.account&&e)return null;function i(){if(o){r(()=>(n(e?p.account:p.home),null));return}switch(t){case p.home:case p.switchChain:case p.switchAccount:case p.walletqr:case p.withdrawFunds:n(p.account);break;default:n(p.home)}}return s.jsxs("button",{className:"web3kit-absolute web3kit-left-[26px] web3kit-top-[42px] web3kit-z-20 web3kit-rounded-sm web3kit-opacity-70 web3kit-ring-offset-background web3kit-transition-opacity hover:web3kit-opacity-100 focus:web3kit-outline-none focus:web3kit-ring-2 focus:web3kit-ring-ring focus:web3kit-ring-offset-2 disabled:web3kit-pointer-events-none data-[state=open]:web3kit-bg-accent data-[state=open]:web3kit-text-muted-foreground md:web3kit-top-[26px]",onClick:i,children:[s.jsx(Z.ChevronLeft,{className:"web3kit-h-4 web3kit-w-4"}),s.jsx("span",{className:"web3kit-sr-only",children:"Cancel connection"})]})}function mo({chains:e,host:t,name:n,description:o,icon:r,projectId:i,children:c,signMessage:a}){return s.jsx(Ut,{chains:e,host:t,name:n,description:o,icon:r,projectId:i,signMessage:a,children:s.jsx(uo,{children:c})})}exports.SimpleKitProvider=mo;exports.useAccount=T;exports.useBalance=Et;exports.useBalanceAsync=Pt;exports.useChainInfo=$e;exports.useDisconnectAccount=Rt;exports.useReadContractAsync=Bn;exports.useSimpleKit=Gt;exports.useTokenBalance=_n;exports.useTokenBalanceAsync=Tt;exports.useWriteContractAsync=Kn;
//# sourceMappingURL=react.cjs.map
