@powerhousedao/connect 3.2.0-dev.1 → 3.2.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddDriveModal.Dg8qI7zF.js +2 -0
- package/dist/assets/{AddDriveModal.BLTmseCa.js.map → AddDriveModal.Dg8qI7zF.js.map} +1 -1
- package/dist/assets/{AddLocalDriveModal.BmWt-zqx.js → AddLocalDriveModal.n1mqr4Ur.js} +2 -2
- package/dist/assets/{AddLocalDriveModal.BmWt-zqx.js.map → AddLocalDriveModal.n1mqr4Ur.js.map} +1 -1
- package/dist/assets/{AddRemoteDriveModal.B2dLszvc.js → AddRemoteDriveModal.wFq1V4ak.js} +2 -2
- package/dist/assets/{AddRemoteDriveModal.B2dLszvc.js.map → AddRemoteDriveModal.wFq1V4ak.js.map} +1 -1
- package/dist/assets/{ConfirmationModal.BeBmQkT4.js → ConfirmationModal.C8RDHYs4.js} +2 -2
- package/dist/assets/{ConfirmationModal.BeBmQkT4.js.map → ConfirmationModal.C8RDHYs4.js.map} +1 -1
- package/dist/assets/{CookiesPolicyModal.Da5Eremm.js → CookiesPolicyModal.A--L98Lz.js} +2 -2
- package/dist/assets/{CookiesPolicyModal.Da5Eremm.js.map → CookiesPolicyModal.A--L98Lz.js.map} +1 -1
- package/dist/assets/{CreateDocumentModal.CoVOMt_0.js → CreateDocumentModal.CTlEAIeE.js} +2 -2
- package/dist/assets/{CreateDocumentModal.CoVOMt_0.js.map → CreateDocumentModal.CTlEAIeE.js.map} +1 -1
- package/dist/assets/{DebugSettingsModal.BcDdYXbp.js → DebugSettingsModal.ge9vSvds.js} +2 -2
- package/dist/assets/{DebugSettingsModal.BcDdYXbp.js.map → DebugSettingsModal.ge9vSvds.js.map} +1 -1
- package/dist/assets/{DeleteDriveModal.CTBCQ3Gm.js → DeleteDriveModal.ChVVlip-.js} +2 -2
- package/dist/assets/{DeleteDriveModal.CTBCQ3Gm.js.map → DeleteDriveModal.ChVVlip-.js.map} +1 -1
- package/dist/assets/{DeleteItemModal.iAY-B9YV.js → DeleteItemModal.DITFrzCI.js} +2 -2
- package/dist/assets/{DeleteItemModal.iAY-B9YV.js.map → DeleteItemModal.DITFrzCI.js.map} +1 -1
- package/dist/assets/{DisclaimerModal.5nyrmZzU.js → DisclaimerModal.COSJ5Mb3.js} +2 -2
- package/dist/assets/{DisclaimerModal.5nyrmZzU.js.map → DisclaimerModal.COSJ5Mb3.js.map} +1 -1
- package/dist/assets/{DriveSettingsModal.BswCtDqR.js → DriveSettingsModal._ieV-khA.js} +2 -2
- package/dist/assets/{DriveSettingsModal.BswCtDqR.js.map → DriveSettingsModal._ieV-khA.js.map} +1 -1
- package/dist/assets/{SettingsModal.HlCE_fW4.js → SettingsModal.CNXhJSAQ.js} +2 -2
- package/dist/assets/{SettingsModal.HlCE_fW4.js.map → SettingsModal.CNXhJSAQ.js.map} +1 -1
- package/dist/assets/{Trans.kFe2S0Wk.js → Trans.DPLArfzj.js} +2 -2
- package/dist/assets/{Trans.kFe2S0Wk.js.map → Trans.DPLArfzj.js.map} +1 -1
- package/dist/assets/{UpgradeDriveModal.B7mUnNcD.js → UpgradeDriveModal.BQJxekDN.js} +2 -2
- package/dist/assets/{UpgradeDriveModal.B7mUnNcD.js.map → UpgradeDriveModal.BQJxekDN.js.map} +1 -1
- package/dist/assets/app-skeleton.js +1 -1
- package/dist/assets/{app.DDM1o5sK.js → app.BbnOcTCG.js} +6 -6
- package/dist/assets/{app.DDM1o5sK.js.map → app.BbnOcTCG.js.map} +1 -1
- package/dist/assets/{atlas-import.CM7YAl-a.js → atlas-import.CdAYrAZm.js} +2 -2
- package/dist/assets/{atlas-import.CM7YAl-a.js.map → atlas-import.CdAYrAZm.js.map} +1 -1
- package/dist/assets/{connect.config.BX_VBjjD.js → connect.config.D1B0yrHQ.js} +2 -2
- package/dist/assets/{connect.config.BX_VBjjD.js.map → connect.config.D1B0yrHQ.js.map} +1 -1
- package/dist/assets/{content.DO7Rb1MC.js → content.DPtgj4TX.js} +3 -3
- package/dist/assets/{content.DO7Rb1MC.js.map → content.DPtgj4TX.js.map} +1 -1
- package/dist/assets/{cookie-banner.CjS0sCnO.js → cookie-banner.DzQhdZ6U.js} +2 -2
- package/dist/assets/{cookie-banner.CjS0sCnO.js.map → cookie-banner.DzQhdZ6U.js.map} +1 -1
- package/dist/assets/{home.DAJGzOQI.js → home.iojpFGDx.js} +2 -2
- package/dist/assets/{home.DAJGzOQI.js.map → home.iojpFGDx.js.map} +1 -1
- package/dist/assets/{index.CrEQYIWo.js → index.BUc_gRsw.js} +2 -2
- package/dist/assets/{index.CrEQYIWo.js.map → index.BUc_gRsw.js.map} +1 -1
- package/dist/assets/{index.BjA7Jq2g.js → index.BuA9SEd_.js} +13 -13
- package/dist/assets/{index.BjA7Jq2g.js.map → index.BuA9SEd_.js.map} +1 -1
- package/dist/assets/{index.DlyZ17HN.js → index.CEQRMIAY.js} +2 -2
- package/dist/assets/{index.DlyZ17HN.js.map → index.CEQRMIAY.js.map} +1 -1
- package/dist/assets/index.DZzWpM-P.js +3 -0
- package/dist/assets/{index.CMuj8VGl.js.map → index.DZzWpM-P.js.map} +1 -1
- package/dist/assets/{index.D_JmCUwW.js → index.DbeWebdN.js} +2 -2
- package/dist/assets/{index.D_JmCUwW.js.map → index.DbeWebdN.js.map} +1 -1
- package/dist/assets/{index.DxrAJM8l.js → index.Dc5HlSvp.js} +2 -2
- package/dist/assets/{index.DxrAJM8l.js.map → index.Dc5HlSvp.js.map} +1 -1
- package/dist/assets/{index.Dt5syCVo.js → index.DgnEqb-9.js} +2 -2
- package/dist/assets/{index.Dt5syCVo.js.map → index.DgnEqb-9.js.map} +1 -1
- package/dist/assets/{index.dUn3hcfa.js → index.DieAEcFX.js} +2 -2
- package/dist/assets/{index.dUn3hcfa.js.map → index.DieAEcFX.js.map} +1 -1
- package/dist/assets/{main.xXrCT4AZ.js → main.CFKvF5tB.js} +3 -3
- package/dist/assets/{main.xXrCT4AZ.js.map → main.CFKvF5tB.js.map} +1 -1
- package/dist/assets/modal.CeUChdl1.js +3 -0
- package/dist/assets/{modal.DMO71brU.js.map → modal.CeUChdl1.js.map} +1 -1
- package/dist/assets/{modals.CwNNDSU0.js → modals.alORtB6s.js} +2 -2
- package/dist/assets/{modals.CwNNDSU0.js.map → modals.alORtB6s.js.map} +1 -1
- package/dist/assets/nodefs.CGG4X8-i.js +2 -0
- package/dist/assets/{nodefs.7zM7E9uX.js.map → nodefs.CGG4X8-i.js.map} +1 -1
- package/dist/assets/{opfs-ahp.CrrBaIH9.js → opfs-ahp.C0sHT0wj.js} +2 -2
- package/dist/assets/{opfs-ahp.CrrBaIH9.js.map → opfs-ahp.C0sHT0wj.js.map} +1 -1
- package/dist/assets/{react-error-boundary.esm.DcWSXRDX.js → react-error-boundary.esm.uEuLAO53.js} +2 -2
- package/dist/assets/{react-error-boundary.esm.DcWSXRDX.js.map → react-error-boundary.esm.uEuLAO53.js.map} +1 -1
- package/dist/assets/{registerServiceWorker.Dxs_6knN.js → registerServiceWorker.qetnHJss.js} +2 -2
- package/dist/assets/{registerServiceWorker.Dxs_6knN.js.map → registerServiceWorker.qetnHJss.js.map} +1 -1
- package/dist/assets/{root.DBI5tO_9.js → root.bg2pg9lY.js} +3 -3
- package/dist/assets/{root.DBI5tO_9.js.map → root.bg2pg9lY.js.map} +1 -1
- package/dist/assets/{toast.Dw86T5dF.js → toast.Dz6iiaGE.js} +2 -2
- package/dist/assets/{toast.Dw86T5dF.js.map → toast.Dz6iiaGE.js.map} +1 -1
- package/dist/assets/{useAcceptedCookies.DduZlbUw.js → useAcceptedCookies.CrdlDQVI.js} +2 -2
- package/dist/assets/{useAcceptedCookies.DduZlbUw.js.map → useAcceptedCookies.CrdlDQVI.js.map} +1 -1
- package/dist/assets/useConnectConfig.BjHck5jY.js +2 -0
- package/dist/assets/{useConnectConfig.BWdUwe5N.js.map → useConnectConfig.BjHck5jY.js.map} +1 -1
- package/dist/assets/useDefaultDocumentModelEditor.CFfkP7hf.js +2 -0
- package/dist/assets/{useDefaultDocumentModelEditor.BOE2b52Y.js.map → useDefaultDocumentModelEditor.CFfkP7hf.js.map} +1 -1
- package/dist/assets/useDocumentDriveServer.CpN4RUGw.js +2 -0
- package/dist/assets/{useDocumentDriveServer.CEjU49s1.js.map → useDocumentDriveServer.CpN4RUGw.js.map} +1 -1
- package/dist/assets/{useFeatureFlags.B3BoOzef.js → useFeatureFlags.PE3FavSR.js} +2 -2
- package/dist/assets/{useFeatureFlags.B3BoOzef.js.map → useFeatureFlags.PE3FavSR.js.map} +1 -1
- package/dist/assets/{user.BoRGXkj9.js → user.LueWOWdv.js} +5 -5
- package/dist/assets/user.LueWOWdv.js.map +1 -0
- package/dist/external-packages.js +1 -2
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/nginx.conf +9 -1
- package/package.json +9 -9
- package/dist/assets/AddDriveModal.BLTmseCa.js +0 -2
- package/dist/assets/index.CMuj8VGl.js +0 -3
- package/dist/assets/modal.DMO71brU.js +0 -3
- package/dist/assets/nodefs.7zM7E9uX.js +0 -2
- package/dist/assets/useConnectConfig.BWdUwe5N.js +0 -2
- package/dist/assets/useDefaultDocumentModelEditor.BOE2b52Y.js +0 -2
- package/dist/assets/useDocumentDriveServer.CEjU49s1.js +0 -2
- package/dist/assets/user.BoRGXkj9.js.map +0 -1
- package/dist/external-packages.js.map +0 -1
|
@@ -526,5 +526,5 @@ ${QQ(h)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessa
|
|
|
526
526
|
- `).slice(1);return{...r,...l,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...o?{issuedAt:new Date(o)}:{},...a?{notBefore:new Date(a)}:{},...c?{requestId:c}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}const Gne=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,qne=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function Zne(e){const{address:t,domain:n,message:r,nonce:i,scheme:s,time:o=new Date}=e;if(n&&r.domain!==n||i&&r.nonce!==i||s&&r.scheme!==s||r.expirationTime&&o>=r.expirationTime||r.notBefore&&o<r.notBefore)return!1;try{if(!r.address||!ln(r.address,{strict:!1})||t&&!Ah(r.address,t))return!1}catch{return!1}return!0}async function Wne(e,t){const{address:n,domain:r,message:i,nonce:s,scheme:o,signature:a,time:c=new Date,...l}=t,u=Hne(i);if(!u.address||!Zne({address:n,domain:r,message:u,nonce:s,scheme:o,time:c}))return!1;const f=DS(i);return Qg(e,{address:u.address,hash:f,signature:a,...l})}function Yne(e){return{call:t=>rd(e,t),createAccessList:t=>uS(e,t),createBlockFilter:()=>xee(e),createContractEventFilter:t=>dS(e,t),createEventFilter:t=>fS(e,t),createPendingTransactionFilter:()=>hS(e),estimateContractGas:t=>See(e,t),estimateGas:t=>_g(e,t),getBalance:t=>uE(e,t),getBlobBaseFee:()=>Iee(e),getBlock:t=>gi(e,t),getBlockNumber:t=>sd(e,t),getBlockTransactionCount:t=>kee(e,t),getBytecode:t=>q4(e,t),getChainId:()=>oE(e),getCode:t=>q4(e,t),getContractEvents:t=>pS(e,t),getEip712Domain:t=>Pee(e,t),getEnsAddress:t=>cee(e,t),getEnsAvatar:t=>cS(e,t),getEnsName:t=>lS(e,t),getEnsResolver:t=>Cee(e,t),getEnsText:t=>aS(e,t),getFeeHistory:t=>Bee(e,t),estimateFeesPerGas:t=>qQ(e,t),getFilterChanges:t=>Nh(e,t),getFilterLogs:t=>$ee(e,t),getGasPrice:()=>Tg(e),getLogs:t=>Gg(e,t),getProof:t=>lne(e,t),estimateMaxPriorityFeePerGas:t=>GQ(e,t),getStorageAt:t=>Vee(e,t),getTransaction:t=>qg(e,t),getTransactionConfirmations:t=>Uee(e,t),getTransactionCount:t=>dE(e,t),getTransactionReceipt:t=>Z2(e,t),multicall:t=>Hee(e,t),prepareTransactionRequest:t=>wE(e,t),readContract:t=>ns(e,t),sendRawTransaction:t=>hX(e,t),simulate:t=>W2(e,t),simulateBlocks:t=>W2(e,t),simulateCalls:t=>nne(e,t),simulateContract:t=>dne(e,t),verifyMessage:t=>Fne(e,t),verifySiweMessage:t=>Wne(e,t),verifyTypedData:t=>Bne(e,t),uninstallFilter:t=>Rh(e,t),waitForTransactionReceipt:t=>une(e,t),watchBlocks:t=>ine(e,t),watchBlockNumber:t=>MS(e,t),watchContractEvent:t=>$ne(e,t),watchEvent:t=>sne(e,t),watchPendingTransactions:t=>one(e,t)}}function Aae(e){const{key:t="public",name:n="Public Client"}=e;return eI({...e,key:t,name:n,type:"publicClient"}).extend(Yne)}function r8(e){return e.state.chainId}function Jne(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return JS(i,cS,"getEnsAvatar")(r)}function Qne(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return JS(i,lS,"getEnsName")(r)}let up=!1;async function Xne(e,t={}){var l,u;if(up)return[];up=!0,e.setState(d=>({...d,status:d.current?"reconnecting":"connecting"}));const n=[];if((l=t.connectors)!=null&&l.length)for(const d of t.connectors){let f;typeof d=="function"?f=e._internal.connectors.setup(d):f=d,n.push(f)}else n.push(...e.connectors);let r;try{r=await((u=e.storage)==null?void 0:u.getItem("recentConnectorId"))}catch{}const i={};for(const[,d]of e.state.connections)i[d.connector.id]=1;r&&(i[r]=0);const s=Object.keys(i).length>0?[...n].sort((d,f)=>(i[d.id]??10)-(i[f.id]??10)):n;let o=!1;const a=[],c=[];for(const d of s){const f=await d.getProvider().catch(()=>{});if(!f||c.some(p=>p===f)||!await d.isAuthorized())continue;const m=await d.connect({isReconnecting:!0}).catch(()=>null);m&&(d.emitter.off("connect",e._internal.events.connect),d.emitter.on("change",e._internal.events.change),d.emitter.on("disconnect",e._internal.events.disconnect),e.setState(p=>{const y=new Map(o?p.connections:new Map).set(d.uid,{accounts:m.accounts,chainId:m.chainId,connector:d});return{...p,current:o?p.current:d.uid,connections:y}}),a.push({accounts:m.accounts,chainId:m.chainId,connector:d}),c.push(f),o=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(o?e.setState(d=>({...d,status:"connected"})):e.setState(d=>({...d,connections:new Map,current:null,status:"disconnected"}))),up=!1,a}class Oa extends Xg{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}function Kne(e,t){const{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}Kg.type="injected";function Kg(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){const c=e.target;if(typeof c=="function"){const l=c();if(l)return l}return typeof c=="object"?c:typeof c=="string"?{...ere[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(l){return l==null?void 0:l.ethereum}}}let i,s,o,a;return c=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:Kg.type,async setup(){const l=await this.getProvider();l!=null&&l.on&&e.target&&(o||(o=this.onConnect.bind(this),l.on("connect",o)),i||(i=this.onAccountsChanged.bind(this),l.on("accountsChanged",i)))},async connect({chainId:l,isReconnecting:u}={}){var h,m,p,y,v,b;const d=await this.getProvider();if(!d)throw new Oa;let f=[];if(u)f=await this.getAccounts().catch(()=>[]);else if(t)try{f=(y=(p=(m=(h=(await d.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:h.caveats)==null?void 0:m[0])==null?void 0:p.value)==null?void 0:y.map(x=>Cl(x)),f.length>0&&(f=await this.getAccounts())}catch(C){const x=C;if(x.code===En.code)throw new En(x);if(x.code===zs.code)throw x}try{!(f!=null&&f.length)&&!u&&(f=(await d.request({method:"eth_requestAccounts"})).map(w=>Cl(w))),o&&(d.removeListener("connect",o),o=void 0),i||(i=this.onAccountsChanged.bind(this),d.on("accountsChanged",i)),s||(s=this.onChainChanged.bind(this),d.on("chainChanged",s)),a||(a=this.onDisconnect.bind(this),d.on("disconnect",a));let C=await this.getChainId();if(l&&C!==l){const x=await this.switchChain({chainId:l}).catch(w=>{if(w.code===En.code)throw w;return{id:C}});C=(x==null?void 0:x.id)??C}return t&&await((v=c.storage)==null?void 0:v.removeItem(`${this.id}.disconnected`)),e.target||await((b=c.storage)==null?void 0:b.setItem("injected.connected",!0)),{accounts:f,chainId:C}}catch(C){const x=C;throw x.code===En.code?new En(x):x.code===zs.code?new zs(x):x}},async disconnect(){var u,d;const l=await this.getProvider();if(!l)throw new Oa;s&&(l.removeListener("chainChanged",s),s=void 0),a&&(l.removeListener("disconnect",a),a=void 0),o||(o=this.onConnect.bind(this),l.on("connect",o));try{await OS(()=>l.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await((u=c.storage)==null?void 0:u.setItem(`${this.id}.disconnected`,!0)),e.target||await((d=c.storage)==null?void 0:d.removeItem("injected.connected"))},async getAccounts(){const l=await this.getProvider();if(!l)throw new Oa;return(await l.request({method:"eth_accounts"})).map(d=>Cl(d))},async getChainId(){const l=await this.getProvider();if(!l)throw new Oa;const u=await l.request({method:"eth_chainId"});return Number(u)},async getProvider(){if(typeof window>"u")return;let l;const u=r();return typeof u.provider=="function"?l=u.provider(window):typeof u.provider=="string"?l=bf(window,u.provider):l=u.provider,l&&!l.removeListener&&("off"in l&&typeof l.off=="function"?l.removeListener=l.off:l.removeListener=()=>{}),l},async isAuthorized(){var l,u;try{if(t&&await((l=c.storage)==null?void 0:l.getItem(`${this.id}.disconnected`))||!e.target&&!await((u=c.storage)==null?void 0:u.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const m=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",m),!!await this.getProvider()),p=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(v=>window.addEventListener("ethereum#initialized",()=>v(m()),{once:!0}))]:[],new Promise(v=>setTimeout(()=>v(m()),p))]))return!0}throw new Oa}return!!(await C1(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:l,chainId:u}){var m,p,y,v;const d=await this.getProvider();if(!d)throw new Oa;const f=c.chains.find(b=>b.id===u);if(!f)throw new Xo(new om);const h=new Promise(b=>{const C=x=>{"chainId"in x&&x.chainId===u&&(c.emitter.off("change",C),b())};c.emitter.on("change",C)});try{return await Promise.all([d.request({method:"wallet_switchEthereumChain",params:[{chainId:tt(u)}]}).then(async()=>{await this.getChainId()===u&&c.emitter.emit("change",{chainId:u})}),h]),f}catch(b){const C=b;if(C.code===4902||((p=(m=C==null?void 0:C.data)==null?void 0:m.originalError)==null?void 0:p.code)===4902)try{const{default:x,...w}=f.blockExplorers??{};let S;l!=null&&l.blockExplorerUrls?S=l.blockExplorerUrls:x&&(S=[x.url,...Object.values(w).map(T=>T.url)]);let E;(y=l==null?void 0:l.rpcUrls)!=null&&y.length?E=l.rpcUrls:E=[((v=f.rpcUrls.default)==null?void 0:v.http[0])??""];const I={blockExplorerUrls:S,chainId:tt(u),chainName:(l==null?void 0:l.chainName)??f.name,iconUrls:l==null?void 0:l.iconUrls,nativeCurrency:(l==null?void 0:l.nativeCurrency)??f.nativeCurrency,rpcUrls:E};return await Promise.all([d.request({method:"wallet_addEthereumChain",params:[I]}).then(async()=>{if(await this.getChainId()===u)c.emitter.emit("change",{chainId:u});else throw new En(new Error("User rejected switch after adding network."))}),h]),f}catch(x){throw new En(x)}throw C.code===En.code?new En(C):new Xo(C)}},async onAccountsChanged(l){var u;if(l.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const d=(await this.getChainId()).toString();this.onConnect({chainId:d}),t&&await((u=c.storage)==null?void 0:u.removeItem(`${this.id}.disconnected`))}else c.emitter.emit("change",{accounts:l.map(d=>Cl(d))})},onChainChanged(l){const u=Number(l);c.emitter.emit("change",{chainId:u})},async onConnect(l){const u=await this.getAccounts();if(u.length===0)return;const d=Number(l.chainId);c.emitter.emit("connect",{accounts:u,chainId:d});const f=await this.getProvider();f&&(o&&(f.removeListener("connect",o),o=void 0),i||(i=this.onAccountsChanged.bind(this),f.on("accountsChanged",i)),s||(s=this.onChainChanged.bind(this),f.on("chainChanged",s)),a||(a=this.onDisconnect.bind(this),f.on("disconnect",a)))},async onDisconnect(l){const u=await this.getProvider();l&&l.code===1013&&u&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),u&&(s&&(u.removeListener("chainChanged",s),s=void 0),a&&(u.removeListener("disconnect",a),a=void 0),o||(o=this.onConnect.bind(this),u.on("connect",o))))}})}const ere={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e!=null&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:bf(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return bf(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const r of n)if(t[r])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return(t=e==null?void 0:e.phantom)!=null&&t.ethereum?(n=e.phantom)==null?void 0:n.ethereum:bf(e,"isPhantom")}}};function bf(e,t){function n(i){return typeof t=="function"?t(i):typeof t=="string"?i[t]:!0}const r=e.ethereum;if(r!=null&&r.providers)return r.providers.find(i=>n(i));if(r&&n(r))return r}function tre(e){if(typeof window>"u")return;const t=n=>e(n.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function nre(){const e=new Set;let t=[];const n=()=>tre(i=>{t.some(({info:s})=>s.uuid===i.info.uuid)||(t=[...t,i],e.forEach(s=>s(t,{added:[i]})))});let r=n();return{_listeners(){return e},clear(){e.forEach(i=>i([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r==null||r()},findProvider({rdns:i}){return t.find(s=>s.info.rdns===i)},getProviders(){return t},reset(){this.clear(),r==null||r(),r=n()},subscribe(i,{emitImmediately:s}={}){return e.add(i),s&&i(t,{added:t}),()=>e.delete(i)}}}const rre=e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let d=o(r.getState());l=f=>{const h=o(f);if(!u(d,h)){const m=d;a(d=h,m)}},c!=null&&c.fireImmediately&&a(d,d)}return i(l)},e(t,n,r)},ire=rre;function sre(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var s;const o=c=>c===null?null:JSON.parse(c,void 0),a=(s=n.getItem(i))!=null?s:null;return a instanceof Promise?a.then(o):o(a)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const cm=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return cm(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return cm(r)(n)}}}},ore=(e,t)=>(n,r,i)=>{let s={storage:sre(()=>localStorage),partialize:p=>p,version:0,merge:(p,y)=>({...y,...p}),...t},o=!1;const a=new Set,c=new Set;let l=s.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...p)},r,i);const u=()=>{const p=s.partialize({...r()});return l.setItem(s.name,{state:p,version:s.version})},d=i.setState;i.setState=(p,y)=>{d(p,y),u()};const f=e((...p)=>{n(...p),u()},r,i);i.getInitialState=()=>f;let h;const m=()=>{var p,y;if(!l)return;o=!1,a.forEach(b=>{var C;return b((C=r())!=null?C:f)});const v=((y=s.onRehydrateStorage)==null?void 0:y.call(s,(p=r())!=null?p:f))||void 0;return cm(l.getItem.bind(l))(s.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==s.version){if(s.migrate)return[!0,s.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var C;const[x,w]=b;if(h=s.merge(w,(C=r())!=null?C:f),n(h,!0),x)return u()}).then(()=>{v==null||v(h,void 0),h=r(),o=!0,c.forEach(b=>b(h))}).catch(b=>{v==null||v(void 0,b)})};return i.persist={setOptions:p=>{s={...s,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},s.skipHydration||m(),h||f},are=ore,i8=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(h=>h(t,f))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,i,a);return a},dp=e=>e?i8(e):i8;var fp={exports:{}},s8;function cre(){return s8||(s8=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function s(c,l,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||c,f),m=n?n+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,d;if(this._eventsCount===0)return l;for(d in u=this._events)t.call(u,d)&&l.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,m=new Array(h);f<h;f++)m[f]=d[f].fn;return m},a.prototype.listenerCount=function(l){var u=n?n+l:l,d=this._events[u];return d?d.fn?1:d.length:0},a.prototype.emit=function(l,u,d,f,h,m){var p=n?n+l:l;if(!this._events[p])return!1;var y=this._events[p],v=arguments.length,b,C;if(y.fn){switch(y.once&&this.removeListener(l,y.fn,void 0,!0),v){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,d),!0;case 4:return y.fn.call(y.context,u,d,f),!0;case 5:return y.fn.call(y.context,u,d,f,h),!0;case 6:return y.fn.call(y.context,u,d,f,h,m),!0}for(C=1,b=new Array(v-1);C<v;C++)b[C-1]=arguments[C];y.fn.apply(y.context,b)}else{var x=y.length,w;for(C=0;C<x;C++)switch(y[C].once&&this.removeListener(l,y[C].fn,void 0,!0),v){case 1:y[C].fn.call(y[C].context);break;case 2:y[C].fn.call(y[C].context,u);break;case 3:y[C].fn.call(y[C].context,u,d);break;case 4:y[C].fn.call(y[C].context,u,d,f);break;default:if(!b)for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];y[C].fn.apply(y[C].context,b)}}return!0},a.prototype.on=function(l,u,d){return s(this,l,u,d,!1)},a.prototype.once=function(l,u,d){return s(this,l,u,d,!0)},a.prototype.removeListener=function(l,u,d,f){var h=n?n+l:l;if(!this._events[h])return this;if(!u)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===u&&(!f||m.once)&&(!d||m.context===d)&&o(this,h);else{for(var p=0,y=[],v=m.length;p<v;p++)(m[p].fn!==u||f&&!m[p].once||d&&m[p].context!==d)&&y.push(m[p]);y.length?this._events[h]=y.length===1?y[0]:y:o(this,h)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(fp)),fp.exports}var lre=cre();const ure=is(lre);class dre{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new ure})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){const r=n[0];this._emitter.emit(t,{uid:this.uid,...r})}listenerCount(t){return this._emitter.listenerCount(t)}}function fre(e){return new dre(e)}function hre(e,t){return JSON.parse(e,(n,r)=>{let i=r;return(i==null?void 0:i.__type)==="bigint"&&(i=BigInt(i.value)),(i==null?void 0:i.__type)==="Map"&&(i=new Map(i.value)),(t==null?void 0:t(n,i))??i})}function o8(e,t){return e.slice(0,t).join(".")||"."}function a8(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function pre(e,t){const n=typeof e=="function",r=typeof t=="function",i=[],s=[];return function(a,c){if(typeof c=="object")if(i.length){const l=a8(i,this);l===0?i[i.length]=this:(i.splice(l),s.splice(l)),s[s.length]=a;const u=a8(i,c);if(u!==0)return r?t.call(this,a,c,o8(s,u)):`[ref=${o8(s,u)}]`}else i[0]=c,s[0]=a;return n?e.call(this,a,c):c}}function mre(e,t,n,r){return JSON.stringify(e,pre((i,s)=>{let o=s;return typeof o=="bigint"&&(o={__type:"bigint",value:s.toString()}),o instanceof Map&&(o={__type:"Map",value:Array.from(s.entries())}),(t==null?void 0:t(i,o))??o},r),n??void 0)}function gre(e){const{deserialize:t=hre,key:n="wagmi",serialize:r=mre,storage:i=tI}=e;function s(o){return o instanceof Promise?o.then(a=>a).catch(()=>null):o}return{...i,key:n,async getItem(o,a){const c=i.getItem(`${n}.${o}`),l=await s(c);return l?t(l)??null:a??null},async setItem(o,a){const c=`${n}.${o}`;a===null?await s(i.removeItem(c)):await s(i.setItem(c,r(a)))},async removeItem(o){await s(i.removeItem(`${n}.${o}`))}}}const tI={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function yre(){const e=typeof window<"u"&&window.localStorage?window.localStorage:tI;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}const lm=256;let qd=lm,Zd;function vre(e=11){if(!Zd||qd+e>lm*2){Zd="",qd=0;for(let t=0;t<lm;t++)Zd+=(256+Math.random()*256|0).toString(16).substring(1)}return Zd.substring(qd,qd+++e)}function bre(e){const{multiInjectedProviderDiscovery:t=!0,storage:n=gre({storage:yre()}),syncConnectedChain:r=!0,ssr:i=!1,...s}=e,o=typeof window<"u"&&t?nre():void 0,a=dp(()=>s.chains),c=dp(()=>{const w=[],S=new Set;for(const E of s.connectors??[]){const I=l(E);if(w.push(I),!i&&I.rdns){const T=typeof I.rdns=="string"?[I.rdns]:I.rdns;for(const P of T)S.add(P)}}if(!i&&o){const E=o.getProviders();for(const I of E)S.has(I.info.rdns)||w.push(l(u(I)))}return w});function l(w){var I;const S=fre(vre()),E={...w({emitter:S,chains:a.getState(),storage:n,transports:s.transports}),emitter:S,uid:S.uid};return S.on("connect",C),(I=E.setup)==null||I.call(E),E}function u(w){const{info:S}=w,E=w.provider;return Kg({target:{...S,id:S.rdns,provider:E}})}const d=new Map;function f(w={}){const S=w.chainId??y.getState().chainId,E=a.getState().find(T=>T.id===S);if(w.chainId&&!E)throw new om;{const T=d.get(y.getState().chainId);if(T&&!E)return T;if(!E)throw new om}{const T=d.get(S);if(T)return T}let I;if(s.client)I=s.client({chain:E});else{const T=E.id,P=a.getState().map(F=>F.id),B={},_=Object.entries(s);for(const[F,O]of _)if(!(F==="chains"||F==="client"||F==="connectors"||F==="transports"))if(typeof O=="object")if(T in O)B[F]=O[T];else{if(P.some(D=>D in O))continue;B[F]=O}else B[F]=O;I=eI({...B,chain:E,batch:B.batch??{multicall:!0},transport:F=>s.transports[T]({...F,connectors:c})})}return d.set(S,I),I}function h(){return{chainId:a.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let m;const p="0.0.0-canary-";vf.startsWith(p)?m=Number.parseInt(vf.replace(p,"")):m=Number.parseInt(vf.split(".")[0]??"0");const y=dp(ire(n?are(h,{migrate(w,S){if(S===m)return w;const E=h(),I=v(w,E.chainId);return{...E,chainId:I}},name:"store",partialize(w){return{connections:{__type:"Map",value:Array.from(w.connections.entries()).map(([S,E])=>{const{id:I,name:T,type:P,uid:B}=E.connector;return[S,{...E,connector:{id:I,name:T,type:P,uid:B}}]})},chainId:w.chainId,current:w.current}},merge(w,S){typeof w=="object"&&w&&"status"in w&&delete w.status;const E=v(w,S.chainId);return{...S,...w,chainId:E}},skipHydration:i,storage:n,version:m}):h));y.setState(h());function v(w,S){return w&&typeof w=="object"&&"chainId"in w&&typeof w.chainId=="number"&&a.getState().some(E=>E.id===w.chainId)?w.chainId:S}r&&y.subscribe(({connections:w,current:S})=>{var E;return S?(E=w.get(S))==null?void 0:E.chainId:void 0},w=>{if(a.getState().some(E=>E.id===w))return y.setState(E=>({...E,chainId:w??E.chainId}))}),o==null||o.subscribe(w=>{const S=new Set,E=new Set;for(const T of c.getState())if(S.add(T.id),T.rdns){const P=typeof T.rdns=="string"?[T.rdns]:T.rdns;for(const B of P)E.add(B)}const I=[];for(const T of w){if(E.has(T.info.rdns))continue;const P=l(u(T));S.has(P.id)||I.push(P)}n&&!y.persist.hasHydrated()||c.setState(T=>[...T,...I],!0)});function b(w){y.setState(S=>{const E=S.connections.get(w.uid);return E?{...S,connections:new Map(S.connections).set(w.uid,{accounts:w.accounts??E.accounts,chainId:w.chainId??E.chainId,connector:E.connector})}:S})}function C(w){y.getState().status==="connecting"||y.getState().status==="reconnecting"||y.setState(S=>{const E=c.getState().find(I=>I.uid===w.uid);return E?(E.emitter.listenerCount("connect")&&E.emitter.off("connect",b),E.emitter.listenerCount("change")||E.emitter.on("change",b),E.emitter.listenerCount("disconnect")||E.emitter.on("disconnect",x),{...S,connections:new Map(S.connections).set(w.uid,{accounts:w.accounts,chainId:w.chainId,connector:E}),current:w.uid,status:"connected"}):S})}function x(w){y.setState(S=>{const E=S.connections.get(w.uid);if(E){const T=E.connector;T.emitter.listenerCount("change")&&E.connector.emitter.off("change",b),T.emitter.listenerCount("disconnect")&&E.connector.emitter.off("disconnect",x),T.emitter.listenerCount("connect")||E.connector.emitter.on("connect",C)}if(S.connections.delete(w.uid),S.connections.size===0)return{...S,connections:new Map,current:null,status:"disconnected"};const I=S.connections.values().next().value;return{...S,connections:new Map(S.connections),current:I.connector.uid}})}return{get chains(){return a.getState()},get connectors(){return c.getState()},storage:n,getClient:f,get state(){return y.getState()},setState(w){let S;typeof w=="function"?S=w(y.getState()):S=w;const E=h();typeof S!="object"&&(S=E),Object.keys(E).some(T=>!(T in S))&&(S=E),y.setState(S,!0)},subscribe(w,S,E){return y.subscribe(w,S,E?{...E,fireImmediately:E.emitImmediately}:void 0)},_internal:{mipd:o,store:y,ssr:!!i,syncConnectedChain:r,transports:s.transports,chains:{setState(w){const S=typeof w=="function"?w(a.getState()):w;if(S.length!==0)return a.setState(S,!0)},subscribe(w){return a.subscribe(w)}},connectors:{providerDetailToConnector:u,setup:l,setState(w){return c.setState(typeof w=="function"?w(c.getState()):w,!0)},subscribe(w){return c.subscribe(w)}},events:{change:b,connect:C,disconnect:x}}}}function wre(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(i=>i.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(i=>{var c;const s=new Set;for(const l of i??[])if(l.rdns){const u=Array.isArray(l.rdns)?l.rdns:[l.rdns];for(const d of u)s.add(d)}const o=[],a=((c=e._internal.mipd)==null?void 0:c.getProviders())??[];for(const l of a){if(s.has(l.info.rdns))continue;const u=e._internal.connectors.providerDetailToConnector(l),d=e._internal.connectors.setup(u);o.push(d)}return[...i,...o]})),r?Xne(e):e.storage&&e.setState(i=>({...i,connections:new Map}))}}}function Cre(e){const{children:t,config:n,initialState:r,reconnectOnMount:i=!0}=e,{onMount:s}=wre(n,{initialState:r,reconnectOnMount:i});n._internal.ssr||s();const o=wt(!0);return ft(()=>{if(o.current&&n._internal.ssr)return s(),()=>{o.current=!1}},[]),t}const nI=Sc(void 0);function xre(e){const{children:t,config:n}=e,r={value:n};return Sf(Cre,e,Sf(nI.Provider,r,t))}const Ere="2.15.4",Sre=()=>`wagmi@${Ere}`;class Ire extends Xg{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return Sre()}}class Tre extends Ire{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function e9(e={}){const t=e.config??sa(nI);if(!t)throw new Tre;return t}var Vc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},na=typeof window>"u"||"Deno"in globalThis;function In(){}function Ore(e,t){return typeof e=="function"?e(t):e}function um(e){return typeof e=="number"&&e>=0&&e!==1/0}function rI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Wa(e,t){return typeof e=="function"?e(t):e}function Pr(e,t){return typeof e=="function"?e(t):e}function c8(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==t9(o,t.options))return!1}else if(!Cu(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function l8(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ra(t.options.mutationKey)!==ra(s))return!1}else if(!Cu(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function t9(e,t){return((t==null?void 0:t.queryKeyHashFn)||ra)(e)}function ra(e){return JSON.stringify(e,(t,n)=>dm(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Cu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Cu(e[n],t[n])):!1}function iI(e,t){if(e===t)return e;const n=u8(e)&&u8(t);if(n||dm(e)&&dm(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{};let c=0;for(let l=0;l<o;l++){const u=n?l:s[l];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(a[u]=void 0,c++):(a[u]=iI(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&c++)}return i===o&&c===i?e:a}return t}function E1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function u8(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dm(e){if(!d8(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!d8(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function d8(e){return Object.prototype.toString.call(e)==="[object Object]"}function _re(e){return new Promise(t=>{setTimeout(t,e)})}function fm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?iI(e,t):t}function Are(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nre(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var n9=Symbol();function sI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===n9?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oI(e,t){return typeof e=="function"?e(...t):!!e}var Co,Is,Ya,$8,kre=($8=class extends Vc{constructor(){super();$e(this,Co);$e(this,Is);$e(this,Ya);De(this,Ya,t=>{if(!na&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){X(this,Is)||this.setEventListener(X(this,Ya))}onUnsubscribe(){var t;this.hasListeners()||((t=X(this,Is))==null||t.call(this),De(this,Is,void 0))}setEventListener(t){var n;De(this,Ya,t),(n=X(this,Is))==null||n.call(this),De(this,Is,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){X(this,Co)!==t&&(De(this,Co,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof X(this,Co)=="boolean"?X(this,Co):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Co=new WeakMap,Is=new WeakMap,Ya=new WeakMap,$8),r9=new kre,Ja,Ts,Qa,V8,Dre=(V8=class extends Vc{constructor(){super();$e(this,Ja,!0);$e(this,Ts);$e(this,Qa);De(this,Qa,t=>{if(!na&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){X(this,Ts)||this.setEventListener(X(this,Qa))}onUnsubscribe(){var t;this.hasListeners()||((t=X(this,Ts))==null||t.call(this),De(this,Ts,void 0))}setEventListener(t){var n;De(this,Qa,t),(n=X(this,Ts))==null||n.call(this),De(this,Ts,t(this.setOnline.bind(this)))}setOnline(t){X(this,Ja)!==t&&(De(this,Ja,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return X(this,Ja)}},Ja=new WeakMap,Ts=new WeakMap,Qa=new WeakMap,V8),S1=new Dre;function hm(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Rre(e){return Math.min(1e3*2**e,3e4)}function aI(e){return(e??"online")==="online"?S1.isOnline():!0}var cI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function hp(e){return e instanceof cI}function lI(e){let t=!1,n=0,r=!1,i;const s=hm(),o=p=>{var y;r||(f(new cI(p)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>r9.isFocused()&&(e.networkMode==="always"||S1.isOnline())&&e.canRun(),u=()=>aI(e.networkMode)&&e.canRun(),d=p=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,p),i==null||i(),s.resolve(p))},f=p=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,p),i==null||i(),s.reject(p))},h=()=>new Promise(p=>{var y;i=v=>{(r||l())&&p(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var p;i=void 0,r||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(r)return;let p;const y=n===0?e.initialPromise:void 0;try{p=y??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(d).catch(v=>{var S;if(r)return;const b=e.retry??(na?0:3),C=e.retryDelay??Rre,x=typeof C=="function"?C(n,v):C,w=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,v);if(t||!w){f(v);return}n++,(S=e.onFail)==null||S.call(e,n,v),_re(x).then(()=>l()?void 0:h()).then(()=>{t?f(v):m()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():h().then(m),s)}}var Mre=e=>setTimeout(e,0);function Pre(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=Mre;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var an=Pre(),xo,U8,uI=(U8=class{constructor(){$e(this,xo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),um(this.gcTime)&&De(this,xo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(na?1/0:5*60*1e3))}clearGcTimeout(){X(this,xo)&&(clearTimeout(X(this,xo)),De(this,xo,void 0))}},xo=new WeakMap,U8),Xa,Ka,yr,Eo,yn,Iu,So,Dr,Li,z8,Lre=(z8=class extends uI{constructor(t){super();$e(this,Dr);$e(this,Xa);$e(this,Ka);$e(this,yr);$e(this,Eo);$e(this,yn);$e(this,Iu);$e(this,So);De(this,So,!1),De(this,Iu,t.defaultOptions),this.setOptions(t.options),this.observers=[],De(this,Eo,t.client),De(this,yr,X(this,Eo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,De(this,Xa,Fre(this.options)),this.state=t.state??X(this,Xa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=X(this,yn))==null?void 0:t.promise}setOptions(t){this.options={...X(this,Iu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&X(this,yr).remove(this)}setData(t,n){const r=fm(this.state.data,t,this.options);return nt(this,Dr,Li).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){nt(this,Dr,Li).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=X(this,yn))==null?void 0:r.promise;return(i=X(this,yn))==null||i.cancel(t),n?n.then(In).catch(In):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(X(this,Xa))}isActive(){return this.observers.some(t=>Pr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n9||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!rI(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=X(this,yn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=X(this,yn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),X(this,yr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(X(this,yn)&&(X(this,So)?X(this,yn).cancel({revert:!0}):X(this,yn).cancelRetry()),this.scheduleGc()),X(this,yr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||nt(this,Dr,Li).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(X(this,yn))return X(this,yn).continueRetry(),X(this,yn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(De(this,So,!0),r.signal)})},s=()=>{const d=sI(this.options,n),f={client:X(this,Eo),queryKey:this.queryKey,meta:this.meta};return i(f),De(this,So,!1),this.options.persister?this.options.persister(d,f,this):d(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:X(this,Eo),state:this.state,fetchFn:s};i(o),(c=this.options.behavior)==null||c.onFetch(o,this),De(this,Ka,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&nt(this,Dr,Li).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var f,h,m,p;hp(d)&&d.silent||nt(this,Dr,Li).call(this,{type:"error",error:d}),hp(d)||((h=(f=X(this,yr).config).onError)==null||h.call(f,d,this),(p=(m=X(this,yr).config).onSettled)==null||p.call(m,this.state.data,d,this)),this.scheduleGc()};return De(this,yn,lI({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,h,m,p;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){a(y);return}(h=(f=X(this,yr).config).onSuccess)==null||h.call(f,d,this),(p=(m=X(this,yr).config).onSettled)==null||p.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{nt(this,Dr,Li).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{nt(this,Dr,Li).call(this,{type:"pause"})},onContinue:()=>{nt(this,Dr,Li).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),X(this,yn).start()}},Xa=new WeakMap,Ka=new WeakMap,yr=new WeakMap,Eo=new WeakMap,yn=new WeakMap,Iu=new WeakMap,So=new WeakMap,Dr=new WeakSet,Li=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dI(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return hp(i)&&i.revert&&X(this,Ka)?{...X(this,Ka),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),an.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),X(this,yr).notify({query:this,type:"updated",action:t})})},z8);function dI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:aI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fre(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ci,j8,Bre=(j8=class extends Vc{constructor(t={}){super();$e(this,ci);this.config=t,De(this,ci,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??t9(i,n);let o=this.get(s);return o||(o=new Lre({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){X(this,ci).has(t.queryHash)||(X(this,ci).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=X(this,ci).get(t.queryHash);n&&(t.destroy(),n===t&&X(this,ci).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){an.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return X(this,ci).get(t)}getAll(){return[...X(this,ci).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>c8(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>c8(t,r)):n}notify(t){an.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){an.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){an.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ci=new WeakMap,j8),li,wn,Io,ui,bs,H8,$re=(H8=class extends uI{constructor(t){super();$e(this,ui);$e(this,li);$e(this,wn);$e(this,Io);this.mutationId=t.mutationId,De(this,wn,t.mutationCache),De(this,li,[]),this.state=t.state||fI(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){X(this,li).includes(t)||(X(this,li).push(t),this.clearGcTimeout(),X(this,wn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){De(this,li,X(this,li).filter(n=>n!==t)),this.scheduleGc(),X(this,wn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){X(this,li).length||(this.state.status==="pending"?this.scheduleGc():X(this,wn).remove(this))}continue(){var t;return((t=X(this,Io))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,c,l,u,d,f,h,m,p,y,v,b,C,x,w,S,E,I;const n=()=>{nt(this,ui,bs).call(this,{type:"continue"})};De(this,Io,lI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,P)=>{nt(this,ui,bs).call(this,{type:"failed",failureCount:T,error:P})},onPause:()=>{nt(this,ui,bs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>X(this,wn).canRun(this)}));const r=this.state.status==="pending",i=!X(this,Io).canStart();try{if(r)n();else{nt(this,ui,bs).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=X(this,wn).config).onMutate)==null?void 0:o.call(s,t,this));const P=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));P!==this.state.context&&nt(this,ui,bs).call(this,{type:"pending",context:P,variables:t,isPaused:i})}const T=await X(this,Io).start();return await((u=(l=X(this,wn).config).onSuccess)==null?void 0:u.call(l,T,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,T,t,this.state.context)),await((m=(h=X(this,wn).config).onSettled)==null?void 0:m.call(h,T,null,this.state.variables,this.state.context,this)),await((y=(p=this.options).onSettled)==null?void 0:y.call(p,T,null,t,this.state.context)),nt(this,ui,bs).call(this,{type:"success",data:T}),T}catch(T){try{throw await((b=(v=X(this,wn).config).onError)==null?void 0:b.call(v,T,t,this.state.context,this)),await((x=(C=this.options).onError)==null?void 0:x.call(C,T,t,this.state.context)),await((S=(w=X(this,wn).config).onSettled)==null?void 0:S.call(w,void 0,T,this.state.variables,this.state.context,this)),await((I=(E=this.options).onSettled)==null?void 0:I.call(E,void 0,T,t,this.state.context)),T}finally{nt(this,ui,bs).call(this,{type:"error",error:T})}}finally{X(this,wn).runNext(this)}}},li=new WeakMap,wn=new WeakMap,Io=new WeakMap,ui=new WeakSet,bs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),an.batch(()=>{X(this,li).forEach(r=>{r.onMutationUpdate(t)}),X(this,wn).notify({mutation:this,type:"updated",action:t})})},H8);function fI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $i,Rr,Tu,G8,Vre=(G8=class extends Vc{constructor(t={}){super();$e(this,$i);$e(this,Rr);$e(this,Tu);this.config=t,De(this,$i,new Set),De(this,Rr,new Map),De(this,Tu,0)}build(t,n,r){const i=new $re({mutationCache:this,mutationId:++pd(this,Tu)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){X(this,$i).add(t);const n=Wd(t);if(typeof n=="string"){const r=X(this,Rr).get(n);r?r.push(t):X(this,Rr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(X(this,$i).delete(t)){const n=Wd(t);if(typeof n=="string"){const r=X(this,Rr).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&X(this,Rr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Wd(t);if(typeof n=="string"){const r=X(this,Rr).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Wd(t);if(typeof n=="string"){const i=(r=X(this,Rr).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){an.batch(()=>{X(this,$i).forEach(t=>{this.notify({type:"removed",mutation:t})}),X(this,$i).clear(),X(this,Rr).clear()})}getAll(){return Array.from(X(this,$i))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>l8(n,r))}findAll(t={}){return this.getAll().filter(n=>l8(t,n))}notify(t){an.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return an.batch(()=>Promise.all(t.map(n=>n.continue().catch(In))))}},$i=new WeakMap,Rr=new WeakMap,Tu=new WeakMap,G8);function Wd(e){var t;return(t=e.options.scope)==null?void 0:t.id}function f8(e){return{onFetch:(t,n)=>{var u,d,f,h,m;const r=t.options,i=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=sI(t.options,t.fetchOptions),b=async(C,x,w)=>{if(p)return Promise.reject();if(x==null&&C.pages.length)return Promise.resolve(C);const S={client:t.client,queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};y(S);const E=await v(S),{maxPages:I}=t.options,T=w?Nre:Are;return{pages:T(C.pages,E,I),pageParams:T(C.pageParams,x,I)}};if(i&&s.length){const C=i==="backward",x=C?Ure:h8,w={pages:s,pageParams:o},S=x(r,w);a=await b(w,S,C)}else{const C=e??s.length;do{const x=c===0?o[0]??r.initialPageParam:h8(r,a);if(c>0&&x==null)break;a=await b(a,x),c++}while(c<C)}return a};t.options.persister?t.fetchFn=()=>{var p,y;return(y=(p=t.options).persister)==null?void 0:y.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function h8(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ure(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var zt,Os,_s,ec,tc,As,nc,rc,q8,zre=(q8=class{constructor(e={}){$e(this,zt);$e(this,Os);$e(this,_s);$e(this,ec);$e(this,tc);$e(this,As);$e(this,nc);$e(this,rc);De(this,zt,e.queryCache||new Bre),De(this,Os,e.mutationCache||new Vre),De(this,_s,e.defaultOptions||{}),De(this,ec,new Map),De(this,tc,new Map),De(this,As,0)}mount(){pd(this,As)._++,X(this,As)===1&&(De(this,nc,r9.subscribe(async e=>{e&&(await this.resumePausedMutations(),X(this,zt).onFocus())})),De(this,rc,S1.subscribe(async e=>{e&&(await this.resumePausedMutations(),X(this,zt).onOnline())})))}unmount(){var e,t;pd(this,As)._--,X(this,As)===0&&((e=X(this,nc))==null||e.call(this),De(this,nc,void 0),(t=X(this,rc))==null||t.call(this),De(this,rc,void 0))}isFetching(e){return X(this,zt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return X(this,Os).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=X(this,zt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=X(this,zt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Wa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return X(this,zt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=X(this,zt).get(r.queryHash),s=i==null?void 0:i.state.data,o=Ore(t,s);if(o!==void 0)return X(this,zt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return an.batch(()=>X(this,zt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=X(this,zt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=X(this,zt);an.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=X(this,zt);return an.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=an.batch(()=>X(this,zt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(In).catch(In)}invalidateQueries(e,t={}){return an.batch(()=>(X(this,zt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=an.batch(()=>X(this,zt).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(In)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(In)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=X(this,zt).build(this,t);return n.isStaleByTime(Wa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(In).catch(In)}fetchInfiniteQuery(e){return e.behavior=f8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(In).catch(In)}ensureInfiniteQueryData(e){return e.behavior=f8(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return S1.isOnline()?X(this,Os).resumePausedMutations():Promise.resolve()}getQueryCache(){return X(this,zt)}getMutationCache(){return X(this,Os)}getDefaultOptions(){return X(this,_s)}setDefaultOptions(e){De(this,_s,e)}setQueryDefaults(e,t){X(this,ec).set(ra(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...X(this,ec).values()],n={};return t.forEach(r=>{Cu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){X(this,tc).set(ra(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...X(this,tc).values()],n={};return t.forEach(r=>{Cu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...X(this,_s).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=t9(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n9&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...X(this,_s).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){X(this,zt).clear(),X(this,Os).clear()}},zt=new WeakMap,Os=new WeakMap,_s=new WeakMap,ec=new WeakMap,tc=new WeakMap,As=new WeakMap,nc=new WeakMap,rc=new WeakMap,q8),Un,vt,Ou,Cn,To,ic,Ns,ks,_u,sc,oc,Oo,_o,Ds,ac,Ot,xl,pm,mm,gm,ym,vm,bm,wm,hI,Z8,jre=(Z8=class extends Vc{constructor(t,n){super();$e(this,Ot);$e(this,Un);$e(this,vt);$e(this,Ou);$e(this,Cn);$e(this,To);$e(this,ic);$e(this,Ns);$e(this,ks);$e(this,_u);$e(this,sc);$e(this,oc);$e(this,Oo);$e(this,_o);$e(this,Ds);$e(this,ac,new Set);this.options=n,De(this,Un,t),De(this,ks,null),De(this,Ns,hm()),this.options.experimental_prefetchInRender||X(this,Ns).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(X(this,vt).addObserver(this),p8(X(this,vt),this.options)?nt(this,Ot,xl).call(this):this.updateResult(),nt(this,Ot,ym).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cm(X(this,vt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cm(X(this,vt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,nt(this,Ot,vm).call(this),nt(this,Ot,bm).call(this),X(this,vt).removeObserver(this)}setOptions(t){const n=this.options,r=X(this,vt);if(this.options=X(this,Un).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pr(this.options.enabled,X(this,vt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");nt(this,Ot,wm).call(this),X(this,vt).setOptions(this.options),n._defaulted&&!E1(this.options,n)&&X(this,Un).getQueryCache().notify({type:"observerOptionsUpdated",query:X(this,vt),observer:this});const i=this.hasListeners();i&&m8(X(this,vt),r,this.options,n)&&nt(this,Ot,xl).call(this),this.updateResult(),i&&(X(this,vt)!==r||Pr(this.options.enabled,X(this,vt))!==Pr(n.enabled,X(this,vt))||Wa(this.options.staleTime,X(this,vt))!==Wa(n.staleTime,X(this,vt)))&&nt(this,Ot,pm).call(this);const s=nt(this,Ot,mm).call(this);i&&(X(this,vt)!==r||Pr(this.options.enabled,X(this,vt))!==Pr(n.enabled,X(this,vt))||s!==X(this,Ds))&&nt(this,Ot,gm).call(this,s)}getOptimisticResult(t){const n=X(this,Un).getQueryCache().build(X(this,Un),t),r=this.createResult(n,t);return Gre(this,r)&&(De(this,Cn,r),De(this,ic,this.options),De(this,To,X(this,vt).state)),r}getCurrentResult(){return X(this,Cn)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(t){X(this,ac).add(t)}getCurrentQuery(){return X(this,vt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=X(this,Un).defaultQueryOptions(t),r=X(this,Un).getQueryCache().build(X(this,Un),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return nt(this,Ot,xl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),X(this,Cn)))}createResult(t,n){var T;const r=X(this,vt),i=this.options,s=X(this,Cn),o=X(this,To),a=X(this,ic),l=t!==r?t.state:X(this,Ou),{state:u}=t;let d={...u},f=!1,h;if(n._optimisticResults){const P=this.hasListeners(),B=!P&&p8(t,n),_=P&&m8(t,r,n,i);(B||_)&&(d={...d,...dI(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:y}=d;h=d.data;let v=!1;if(n.placeholderData!==void 0&&h===void 0&&y==="pending"){let P;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(P=s.data,v=!0):P=typeof n.placeholderData=="function"?n.placeholderData((T=X(this,oc))==null?void 0:T.state.data,X(this,oc)):n.placeholderData,P!==void 0&&(y="success",h=fm(s==null?void 0:s.data,P,n),f=!0)}if(n.select&&h!==void 0&&!v)if(s&&h===(o==null?void 0:o.data)&&n.select===X(this,_u))h=X(this,sc);else try{De(this,_u,n.select),h=n.select(h),h=fm(s==null?void 0:s.data,h,n),De(this,sc,h),De(this,ks,null)}catch(P){De(this,ks,P)}X(this,ks)&&(m=X(this,ks),h=X(this,sc),p=Date.now(),y="error");const b=d.fetchStatus==="fetching",C=y==="pending",x=y==="error",w=C&&b,S=h!==void 0,I={status:y,fetchStatus:d.fetchStatus,isPending:C,isSuccess:y==="success",isError:x,isInitialLoading:w,isLoading:w,data:h,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!C,isLoadingError:x&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:x&&S,isStale:i9(t,n),refetch:this.refetch,promise:X(this,Ns)};if(this.options.experimental_prefetchInRender){const P=F=>{I.status==="error"?F.reject(I.error):I.data!==void 0&&F.resolve(I.data)},B=()=>{const F=De(this,Ns,I.promise=hm());P(F)},_=X(this,Ns);switch(_.status){case"pending":t.queryHash===r.queryHash&&P(_);break;case"fulfilled":(I.status==="error"||I.data!==_.value)&&B();break;case"rejected":(I.status!=="error"||I.error!==_.reason)&&B();break}}return I}updateResult(){const t=X(this,Cn),n=this.createResult(X(this,vt),this.options);if(De(this,To,X(this,vt).state),De(this,ic,this.options),X(this,To).data!==void 0&&De(this,oc,X(this,vt)),E1(n,t))return;De(this,Cn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!X(this,ac).size)return!0;const o=new Set(s??X(this,ac));return this.options.throwOnError&&o.add("error"),Object.keys(X(this,Cn)).some(a=>{const c=a;return X(this,Cn)[c]!==t[c]&&o.has(c)})};nt(this,Ot,hI).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&nt(this,Ot,ym).call(this)}},Un=new WeakMap,vt=new WeakMap,Ou=new WeakMap,Cn=new WeakMap,To=new WeakMap,ic=new WeakMap,Ns=new WeakMap,ks=new WeakMap,_u=new WeakMap,sc=new WeakMap,oc=new WeakMap,Oo=new WeakMap,_o=new WeakMap,Ds=new WeakMap,ac=new WeakMap,Ot=new WeakSet,xl=function(t){nt(this,Ot,wm).call(this);let n=X(this,vt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(In)),n},pm=function(){nt(this,Ot,vm).call(this);const t=Wa(this.options.staleTime,X(this,vt));if(na||X(this,Cn).isStale||!um(t))return;const r=rI(X(this,Cn).dataUpdatedAt,t)+1;De(this,Oo,setTimeout(()=>{X(this,Cn).isStale||this.updateResult()},r))},mm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(X(this,vt)):this.options.refetchInterval)??!1},gm=function(t){nt(this,Ot,bm).call(this),De(this,Ds,t),!(na||Pr(this.options.enabled,X(this,vt))===!1||!um(X(this,Ds))||X(this,Ds)===0)&&De(this,_o,setInterval(()=>{(this.options.refetchIntervalInBackground||r9.isFocused())&&nt(this,Ot,xl).call(this)},X(this,Ds)))},ym=function(){nt(this,Ot,pm).call(this),nt(this,Ot,gm).call(this,nt(this,Ot,mm).call(this))},vm=function(){X(this,Oo)&&(clearTimeout(X(this,Oo)),De(this,Oo,void 0))},bm=function(){X(this,_o)&&(clearInterval(X(this,_o)),De(this,_o,void 0))},wm=function(){const t=X(this,Un).getQueryCache().build(X(this,Un),this.options);if(t===X(this,vt))return;const n=X(this,vt);De(this,vt,t),De(this,Ou,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},hI=function(t){an.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(X(this,Cn))}),X(this,Un).getQueryCache().notify({query:X(this,vt),type:"observerResultsUpdated"})})},Z8);function Hre(e,t){return Pr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function p8(e,t){return Hre(e,t)||e.state.data!==void 0&&Cm(e,t,t.refetchOnMount)}function Cm(e,t,n){if(Pr(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&i9(e,t)}return!1}function m8(e,t,n,r){return(e!==t||Pr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&i9(e,n)}function i9(e,t){return Pr(t.enabled,e)!==!1&&e.isStaleByTime(Wa(t.staleTime,e))}function Gre(e,t){return!E1(e.getCurrentResult(),t)}var Rs,Ms,zn,Vi,Wi,wf,xm,W8,qre=(W8=class extends Vc{constructor(n,r){super();$e(this,Wi);$e(this,Rs);$e(this,Ms);$e(this,zn);$e(this,Vi);De(this,Rs,n),this.setOptions(r),this.bindMethods(),nt(this,Wi,wf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=X(this,Rs).defaultMutationOptions(n),E1(this.options,r)||X(this,Rs).getMutationCache().notify({type:"observerOptionsUpdated",mutation:X(this,zn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ra(r.mutationKey)!==ra(this.options.mutationKey)?this.reset():((i=X(this,zn))==null?void 0:i.state.status)==="pending"&&X(this,zn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=X(this,zn))==null||n.removeObserver(this)}onMutationUpdate(n){nt(this,Wi,wf).call(this),nt(this,Wi,xm).call(this,n)}getCurrentResult(){return X(this,Ms)}reset(){var n;(n=X(this,zn))==null||n.removeObserver(this),De(this,zn,void 0),nt(this,Wi,wf).call(this),nt(this,Wi,xm).call(this)}mutate(n,r){var i;return De(this,Vi,r),(i=X(this,zn))==null||i.removeObserver(this),De(this,zn,X(this,Rs).getMutationCache().build(X(this,Rs),this.options)),X(this,zn).addObserver(this),X(this,zn).execute(n)}},Rs=new WeakMap,Ms=new WeakMap,zn=new WeakMap,Vi=new WeakMap,Wi=new WeakSet,wf=function(){var r;const n=((r=X(this,zn))==null?void 0:r.state)??fI();De(this,Ms,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},xm=function(n){an.batch(()=>{var r,i,s,o,a,c,l,u;if(X(this,Vi)&&this.hasListeners()){const d=X(this,Ms).variables,f=X(this,Ms).context;(n==null?void 0:n.type)==="success"?((i=(r=X(this,Vi)).onSuccess)==null||i.call(r,n.data,d,f),(o=(s=X(this,Vi)).onSettled)==null||o.call(s,n.data,null,d,f)):(n==null?void 0:n.type)==="error"&&((c=(a=X(this,Vi)).onError)==null||c.call(a,n.error,d,f),(u=(l=X(this,Vi)).onSettled)==null||u.call(l,void 0,n.error,d,f))}this.listeners.forEach(d=>{d(X(this,Ms))})})},W8);function Zre(e){return JSON.stringify(e,(t,n)=>Wre(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):typeof n=="bigint"?n.toString():n)}function Wre(e){if(!g8(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!g8(n)||!n.hasOwnProperty("isPrototypeOf"))}function g8(e){return Object.prototype.toString.call(e)==="[object Object]"}function pI(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:s,maxPages:o,meta:a,networkMode:c,queryFn:l,queryHash:u,queryKey:d,queryKeyHashFn:f,retry:h,retryDelay:m,structuralSharing:p,getPreviousPageParam:y,getNextPageParam:v,initialPageParam:b,_optimisticResults:C,enabled:x,notifyOnChangeProps:w,placeholderData:S,refetchInterval:E,refetchIntervalInBackground:I,refetchOnMount:T,refetchOnReconnect:P,refetchOnWindowFocus:B,retryOnMount:_,select:F,staleTime:O,suspense:N,throwOnError:D,config:L,connector:j,query:M,...W}=e;return W}function Yre(e,t={}){return{async queryFn({queryKey:n}){const{name:r,scopeKey:i,...s}=n[1];if(!r)throw new Error("name is required");return Jne(e,{...s,name:r})},queryKey:Jre(t)}}function Jre(e={}){return["ensAvatar",pI(e)]}function Qre(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:i,...s}=n[1];if(!r)throw new Error("address is required");return Qne(e,{...s,address:r})},queryKey:Xre(t)}}function Xre(e={}){return["ensName",pI(e)]}var mI=R.createContext(void 0),gI=e=>{const t=R.useContext(mI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kre=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g(mI.Provider,{value:e,children:t})),eie=R.createContext(!1),tie=()=>R.useContext(eie);function nie(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var rie=R.createContext(nie()),iie=()=>R.useContext(rie),sie=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},oie=e=>{R.useEffect(()=>{e.clearReset()},[e])},aie=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||oI(n,[e.error,r])),cie=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},lie=(e,t)=>e.isLoading&&e.isFetching&&!t,uie=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,y8=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function die(e,t,n){var d,f,h,m,p;const r=gI(),i=tie(),s=iie(),o=r.defaultQueryOptions(e);(f=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",cie(o),sie(o,s),oie(s);const a=!r.getQueryCache().get(o.queryHash),[c]=R.useState(()=>new t(r,o)),l=c.getOptimisticResult(o),u=!i&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(y=>{const v=u?c.subscribe(an.batchCalls(y)):In;return c.updateResult(),v},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),R.useEffect(()=>{c.setOptions(o)},[o,c]),uie(o,l))throw y8(o,c,s);if(aie({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||m.call(h,o,l),o.experimental_prefetchInRender&&!na&&lie(l,i)){const y=a?y8(o,c,s):(p=r.getQueryCache().get(o.queryHash))==null?void 0:p.promise;y==null||y.catch(In).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function fie(e,t){return die(e,jre)}function kae(e,t){const n=gI(),[r]=R.useState(()=>new qre(n,e));R.useEffect(()=>{r.setOptions(e)},[r,e]);const i=R.useSyncExternalStore(R.useCallback(o=>r.subscribe(an.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=R.useCallback((o,a)=>{r.mutate(o,a).catch(In)},[r]);if(i.error&&oI(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function yI(e){const t=fie({...e,queryKeyHashFn:Zre});return t.queryKey=e.queryKey,t}function vI(e={}){const t=e9(e);return J8(n=>Kne(t,{onChange:n}),()=>r8(t),()=>r8(t))}function hie(e={}){const{name:t,query:n={}}=e,r=e9(e),i=vI({config:r}),s=Yre(r,{...e,chainId:e.chainId??i}),o=!!(t&&(n.enabled??!0));return yI({...n,...s,enabled:o})}function bI(e={}){const{address:t,query:n={}}=e,r=e9(e),i=vI({config:r}),s=Qre(r,{...e,chainId:e.chainId??i}),o=!!(t&&(n.enabled??!0));return yI({...n,...s,enabled:o})}function wI(e){const{address:t,chainId:n=1,size:r="14px"}=e,i={width:r,height:r},s=bI({address:t,chainId:n}),o=s.data??void 0,a=hie({name:o}),c=a.data??mJ;return s.isLoading||a.isLoading?g("div",{className:"fade-out flex-none animate-pulse rounded-full bg-gray-400",style:i}):g("img",{alt:"ENS Avatar",className:"flex-none rounded-full object-contain",src:c,style:i})}const pie={SYNCING:"Syncing",SUCCESS:"Synced",CONFLICT:"Error",MISSING:"Circle",ERROR:"Error",INITIAL_SYNC:"Syncing"};function CI(e){const{syncStatus:t,className:n,overrideSyncIcons:r={},...i}=e,s={...pie,...r};return{[F8]:g(we,{size:16,...i,className:_e("text-blue-900",n),name:s[F8]}),[D8]:g(we,{size:16,...i,className:_e("text-blue-900",n),name:s[D8]}),[R8]:g(we,{size:16,...i,className:_e("text-green-900",n),name:s[R8]}),[M8]:g(we,{size:16,...i,className:_e("text-orange-900",n),name:s[M8]}),[P8]:g(we,{size:16,...i,className:_e("text-red-900",n),name:s[P8]}),[L8]:g(we,{size:16,...i,className:_e("text-red-900",n),name:s[L8]})}[t]}function Dae(e){const{uiNode:t,className:n,customDocumentIconSrc:r,onSelectNode:i,onRenameNode:s,onDuplicateNode:o,onDeleteNode:a,isAllowedToCreateDocuments:c}=e,[l,u]=ke(Fs),[d,f]=ke(!1),{dragProps:h}=QI({uiNode:t}),m=l===Fs,p={[ld]:()=>o(t),[ud]:()=>u(WI),[dd]:()=>a(t)},y=Object.entries(JI).map(([T,P])=>({...P,id:T})).filter(T=>noe.includes(T.id));function v(T){s(T,t),u(Fs)}function b(){u(Fs)}function C(){i(t)}function x(T){const P=p[T];if(!P){console.error(`No handler found for dropdown menu item: ${T}`);return}P(),f(!1)}const w=woe(t.documentType,r),S=ee("div",{className:"relative",children:[g("img",{alt:"file icon",className:"max-w-none",height:34,src:w,width:32}),m&&t.syncStatus&&g("div",{className:"absolute bottom-[-2px] right-0 size-3 rounded-full bg-white",children:g("div",{className:"absolute left-[-2px] top-[-2px]",children:g(CI,{overrideSyncIcons:{SUCCESS:"CheckCircleFill"},syncStatus:t.syncStatus})})})]}),E=_e("group flex h-12 cursor-pointer select-none items-center rounded-lg bg-gray-200 px-2 text-gray-600 hover:text-gray-800",n),I=m?ee("div",{className:"flex w-52 items-center justify-between",children:[ee("div",{className:"mr-2 truncate group-hover:mr-0",children:[g("div",{className:"max-h-6 truncate text-sm font-medium group-hover:text-gray-800",children:t.name}),g("div",{className:"max-h-6 truncate text-xs font-medium text-gray-600 group-hover:text-gray-800",children:t.documentType})]}),c?g(fh,{items:y,onItemClick:x,onOpenChange:f,open:d,children:g("button",{className:_e("hidden group-hover:block",d&&"block"),onClick:T=>{T.stopPropagation(),f(!0)},children:g(we,{className:"text-gray-600",name:"VerticalDots"})})}):null]}):g(o9,{className:"ml-3 flex-1 font-medium",defaultValue:t.name,onCancel:b,onSubmit:v});return g("div",{className:"relative w-64",onClick:C,children:g("div",{...h,className:E,children:ee("div",{className:"flex items-center",children:[g("div",{className:"mr-1.5",children:S}),I]})})})}function Rae(e){const{uiNode:t,isAllowedToCreateDocuments:n,className:r,onRenameNode:i,onDuplicateNode:s,onDeleteNode:o,onSelectNode:a,onAddFile:c,onCopyNode:l,onMoveNode:u}=e,[d,f]=ke(Fs),[h,m]=ke(!1),{dragProps:p}=QI({uiNode:t}),{isDropTarget:y,dropProps:v}=yoe({uiNode:t,onAddFile:c,onCopyNode:l,onMoveNode:u}),b=d===Fs;function C(){f(Fs)}function x(B){i(B,t),f(Fs)}function w(){a(t)}const S={[ld]:()=>s(t),[ud]:()=>f(WI),[dd]:()=>o(t)},E=Object.entries(JI).map(([B,_])=>({..._,id:B})).filter(B=>roe.includes(B.id));function I(B){const _=S[B];if(!_){console.error(`No handler found for dropdown menu item: ${B}`);return}_(),m(!1)}const T=b||!n?g("div",{className:"ml-3 max-h-6 truncate font-medium text-gray-600 group-hover:text-gray-800",children:t.name}):g(o9,{className:"ml-3 font-medium",defaultValue:t.name,onCancel:C,onSubmit:x}),P=_e("group flex h-12 cursor-pointer select-none items-center rounded-lg bg-gray-200 px-2",r,y&&"bg-blue-100");return g("div",{className:"relative w-64",onClick:w,children:ee("div",{...p,...v,className:P,children:[ee("div",{className:"flex items-center overflow-hidden",children:[g("div",{className:"p-1",children:ee("div",{className:"relative",children:[g(we,{name:"FolderClose",size:24}),b&&t.syncStatus?g("div",{className:"absolute bottom-[-3px] right-[-2px] size-3 rounded-full bg-white",children:g("div",{className:"absolute left-[-2px] top-[-2px]",children:g(CI,{overrideSyncIcons:{SUCCESS:"CheckCircleFill"},syncStatus:t.syncStatus})})}):null]})}),T]}),b&&n?g(fh,{items:E,onItemClick:I,onOpenChange:m,open:h,children:g("button",{className:_e("ml-auto hidden group-hover:block",h&&"block"),onClick:B=>{B.stopPropagation(),m(!0)},children:g(we,{className:"text-gray-600",name:"VerticalDots"})})}):null]})})}const cd=Qs(function(t,n){const{icon:r,errorMessage:i,isDirty:s,containerClassName:o,inputClassName:a,errorMessageClassName:c,hideErrors:l=!1,...u}=t,d=t.type??"text",f=!!i;return ee("div",{children:[ee("div",{className:_e("mb-1 flex gap-2 rounded-md border border-gray-200 bg-gray-50 p-3 text-black placeholder:text-gray-50",f&&"border-red-900",o),children:[r&&g("span",{className:Au((!s||f)&&"text-slate-200"),children:r}),g("input",{...u,className:_e("w-full bg-transparent font-semibold outline-none",a),ref:n,type:d})]}),g("p",{className:_e("hidden min-h-4 text-xs text-red-900",f&&"block",l&&"hidden",c),children:i})]})});function xI(e){var s;const{register:t,handleSubmit:n,control:r,formState:{errors:i}}=a3({defaultValues:{name:"",sharingType:qI,availableOffline:!1,appId:e.appOptions[0].id}});return g("form",{onSubmit:n(e.onSubmit),className:"flex flex-col gap-4",children:ee("div",{className:"flex flex-col gap-4",children:[ee("div",{children:[g(Cf,{htmlFor:"driveName",className:"text-sm font-medium text-gray-800",children:"Drive Name"}),g(cd,{...t("name",{required:"Drive name is required"}),errorMessage:(s=i.name)==null?void 0:s.message,placeholder:"Drive name"})]}),ee("div",{children:[g(Cf,{htmlFor:"driveApp",className:"text-sm font-medium text-gray-800",children:"Drive App"}),g(yie,{control:r,appOptions:e.appOptions})]}),ee("div",{children:[g(Cf,{htmlFor:"sharingType",className:"text-sm font-medium text-gray-800",children:"Location"}),g(TI,{control:r})]}),g("div",{children:g(s9,{...t("availableOffline")})}),g(Sr,{className:"mt-2 w-full",type:"submit",children:"Create new drive"})]})})}function EI(e){const{sharingType:t=Fh,requestPublicDrive:n}=e,[r,i]=ke(),[s,o]=ke(!1),[a,c]=ke(!0),[l,u]=ke(!1),[d,f]=ke(""),[h,m]=ke(""),[p,y]=hF(h,500),{register:v,handleSubmit:b,setValue:C}=a3({mode:"onBlur",defaultValues:{availableOffline:(r==null?void 0:r.availableOffline)??!1}});ft(()=>{y(h)},[h]),ft(()=>{if(u(!1),p==="")return;w().catch(console.error);async function w(){try{const{id:S,name:E}=await n(p);i({id:S,name:E,sharingType:t,location:Tm,availableOffline:!0}),C("availableOffline",!0),c(!0),f("")}catch(S){i(void 0),c(!1),f(S.message)}}},[p,C,t]);function x({availableOffline:w}){r&&e.onSubmit({...r,availableOffline:w,url:p})}return g("form",{onSubmit:b(x),children:l?ee(Yi,{children:[g(bie,{driveName:(r==null?void 0:r.name)??"New drive"}),g(Ps,{className:"my-3"}),ee(Wf,{isOpen:s,onOpenChange:()=>o(!s),title:"Location",children:[g(II,{location:Tm}),g(s9,{...v("availableOffline")})]}),g(Sr,{className:"mt-4 w-full",color:"dark",type:"submit",children:"Add new drive"})]}):ee(Yi,{children:[g(cd,{errorMessage:d,onChange:w=>m(w.target.value),placeholder:"Drive URL",required:!0,type:"url",value:h}),g(Sr,{className:"mt-4 w-full py-2 text-base",color:"dark",size:"small",disabled:!a||h==="",onClick:w=>{w.preventDefault(),u(!0)},type:"button",children:"Add drive"})]})})}function mie(e){const{uiDriveNode:t,onSubmit:n}=e,{name:r,sharingType:i,availableOffline:s}=t,[o,a]=ke(!1),[c,l]=ke(!1),[u,d]=ke(!1),{register:f,handleSubmit:h,control:m}=a3({mode:"onBlur",defaultValues:{name:r,sharingType:i,availableOffline:s}}),p=i===Fh?Tm:i;return ee("form",{onSubmit:h(n),children:[g(SI,{...f("name")}),g(Ps,{className:"my-4"}),g(Cf,{htmlFor:"sharingType",children:"Sharing settings"}),g(TI,{control:m}),g(Ps,{className:"my-3"}),ee(Wf,{isOpen:o,onOpenChange:()=>a(!o),title:"Location",children:[g(II,{location:p}),g(s9,{...f("availableOffline")})]}),g(Ps,{className:"my-3"}),g(Wf,{isOpen:c,onOpenChange:()=>l(!c),title:"Danger zone",children:ee("button",{className:"flex gap-2 py-3 font-semibold text-red-900 transition hover:brightness-125",onClick:()=>d(!0),type:"button",children:[g(we,{name:"Trash"}),"Delete drive"]})}),u&&c?g(vie,{...e,onCancel:()=>d(!1)}):ee(Yi,{children:[g(Ps,{className:"my-3"}),g(Sr,{className:"mb-4 w-full",type:"submit",children:"Confirm"})]})]})}function gie(e){return{value:e.id,displayValue:e.name,icon:g(we,{name:"PowerhouseLogoSmall"}),description:"Built by Powerhouse"}}function yie(e){const{control:t,appOptions:n,...r}=e,i=n.map(gie);return g(i3,{control:t,name:"appId",render:({field:s})=>g(a9,{...r,...s,id:"appId",items:i})})}const s9=Qs(function(t,n){return ee("div",{className:"flex items-center rounded-md border border-gray-200 bg-gray-50 p-3 text-gray-900",children:[ee("div",{className:"flex-1",children:[g("label",{className:"font-medium text-gray-900",htmlFor:"availableOffline",children:"Make available offline"}),ee("p",{className:"text-xs text-gray-600",children:["Check this options if you keep a local backup",g("br",{}),"available at all times."]})]}),g(Gse,{id:"availableOffline",ref:n,...t})]})});function vie(e){const{uiDriveNode:t,handleDeleteDrive:n,onCancel:r}=e,[i,s]=ke(""),o=i===t.name;function a(){o&&n()}return ee("div",{children:[g("p",{className:"mb-2 rounded-md bg-slate-50 p-4 text-center text-slate-200",children:"Are you sure you want to delete this drive? All files and subfolders within it will be removed. Do you want to proceed?"}),g(SI,{icon:g(we,{name:"Lock"}),onChange:c=>s(c.target.value),placeholder:"Enter drive name...",value:i}),ee("div",{className:"flex gap-3",children:[g(Sr,{className:"w-full",color:"light",onClick:r,children:"Cancel"}),g(Sr,{className:"w-full",color:"red",disabled:!o,onClick:a,children:"Delete"})]})]})}function bie(e){return ee("div",{className:"flex gap-2 rounded-xl bg-gray-100 p-3 font-semibold text-gray-500",children:[g(we,{className:"text-gray-600",name:"Drive"}),e.driveName]})}const SI=Qs(function(t,n){return g(cd,{...t,icon:t.icon??g(we,{name:"Drive"}),id:"driveName",placeholder:"Drive name",ref:n})});function Cf(e){const{children:t,className:n,...r}=e;return g("label",{...r,className:_e("block font-semibold text-gray-500",n),children:t})}function II(e){const{location:t,className:n,...r}=e,i=soe[t];return ee("div",{...r,className:_e("my-3 flex items-center gap-2 rounded-xl border border-gray-100 p-3 text-gray-800 shadow",n),children:[i.icon,ee("div",{children:[g("p",{children:i.title}),g("p",{className:"text-xs text-slate-200",children:i.description})]})]})}function TI(e){const{control:t,...n}=e;return g(i3,{control:t,name:"sharingType",render:({field:r})=>g(a9,{...n,...r,id:"sharingType",items:ioe})})}const wie=""+new URL("home-bg-BRYzhkhi.avif",import.meta.url).href,Cie=""+new URL("home-bg-BEhF9NuW.png",import.meta.url).href;function xie(){return ee("picture",{className:"pointer-events-none absolute inset-8 z-0 size-[calc(100%-32px)] object-contain",children:[g("source",{srcSet:wie,type:"image/avif"}),g("img",{src:Cie,alt:"background",className:"object-contain"})]})}const Eie=function(t){const{icon:n,title:r,description:i,containerClassName:s,shareable:o,onClick:a}=t;return ee("div",{className:_e("relative flex h-24 cursor-pointer flex-col items-center justify-center text-center text-sm text-black",s,a&&"cursor-pointer"),onClick:a,children:[g("div",{className:"mx-auto pb-2",children:n||g("div",{className:"size-8 items-center justify-center rounded-lg bg-black pt-1",children:g("span",{className:"text-6 w-6 text-white",children:r.slice(0,1).toUpperCase()})})}),ee("div",{children:[g("h3",{children:r}),i&&g("p",{className:"text-gray-500",children:i})]}),o&&g("div",{className:"absolute left-2 top-0 mb-2",children:g(we,{name:"PeopleFill",width:12,height:12})})]})},Mae=function(t){const{containerClassName:n,onClick:r}=t;return g(Eie,{title:"Create New Drive",icon:g(we,{name:"PlusSquare",size:32}),onClick:r,containerClassName:n})},Pae=function(t){const{children:n,containerClassName:r}=t;return g("div",{className:_e("container relative mx-auto flex h-full flex-col",r),children:ee("div",{className:"m-8 flex flex-wrap justify-center gap-4 pt-12",children:[g(xie,{}),n]})})};function Lae(e){function t(){r(!1)}const{open:n,onOpenChange:r,onAddRemoteDrive:i,onAddLocalDrive:s,requestPublicDrive:o,modalProps:a,containerProps:c}=e;return g(os,{...a,contentProps:{className:"rounded-2xl"},onOpenChange:r,open:n,children:g("div",{...c,className:_e("w-[408px] rounded-2xl p-6",c==null?void 0:c.className),children:ee(Ase,{defaultValue:"Create Drive",children:[g(pp,{label:"Create Drive",description:"Create a new drive",children:g(xI,{onCancel:t,onSubmit:s,appOptions:e.appOptions})}),g(pp,{label:"Add Drive",description:"Add a drive",children:g(EI,{sharingType:"PUBLIC",onSubmit:i,onCancel:t,requestPublicDrive:o})}),g(pp,{label:"New Shortcut",description:"Create a new shortcut",disabled:!0,children:"test"})]})})})}function Fae(e){const{open:t,onOpenChange:n,onSubmit:r,modalProps:i,containerProps:s,appOptions:o}=e;function a(){n(!1)}return g(os,{...i,contentProps:{className:"rounded-2xl"},onOpenChange:n,open:t,children:ee("div",{...s,className:_e("max-w-[408px] rounded-2xl p-6",s==null?void 0:s.className),children:[ee("div",{className:"flex justify-between",children:[g("h1",{className:"text-xl font-bold",children:"Create new drive "}),g("button",{className:"flex size-8 items-center justify-center rounded-md bg-gray-100 text-gray-500 outline-none hover:text-gray-900",onClick:a,tabIndex:-1,children:g(we,{name:"XmarkLight",size:24})})]}),g(Ps,{className:"my-4"}),g(xI,{onCancel:a,onSubmit:r,appOptions:o})]})})}function Bae(e){const{open:t,onOpenChange:n,onSubmit:r,sharingType:i,modalProps:s,containerProps:o,requestPublicDrive:a}=e;function c(){n(!1)}return g(os,{...s,contentProps:{className:"rounded-2xl"},onOpenChange:n,open:t,children:ee("div",{...o,className:_e("min-w-[408px] max-w-[408px] rounded-2xl p-6",o==null?void 0:o.className),children:[ee("div",{className:"flex justify-between",children:[g("h1",{className:"text-xl font-bold",children:"Add drive"}),g("button",{className:"flex size-8 items-center justify-center rounded-md bg-gray-100 text-gray-500 outline-none hover:text-gray-900",onClick:c,tabIndex:-1,children:g(we,{name:"XmarkLight",size:24})})]}),g(Ps,{className:"my-4"}),g(EI,{onCancel:c,onSubmit:r,requestPublicDrive:a,sharingType:i})]})})}const v8="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all";function OI(e){const{body:t,header:n,children:r,onCancel:i,onOpenChange:s,onContinue:o,cancelLabel:a,continueLabel:c,overlayProps:l,contentProps:u,bodyProps:d={},headerProps:f={},containerProps:h={},cancelButtonProps:m={},continueButtonProps:p={},buttonContainerProps:y={},...v}=e;return g(os,{contentProps:{...u,className:_e("rounded-3xl",u==null?void 0:u.className)},onOpenChange:s,overlayProps:{...l,className:l==null?void 0:l.className},...v,children:ee("div",{...Gn(h,"w-[400px] p-6 text-slate-300"),children:[g("div",{...Gn(f,"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"),children:n}),ee("div",{...Gn(d,"my-6 rounded-md bg-slate-50 p-4 text-center"),children:[t,r]}),ee("div",{...Gn(y,"mt-8 flex justify-between gap-3"),children:[g("button",{onClick:i,...Gn(m,_e(v8,"flex-1 bg-slate-50 text-slate-800")),children:a}),g("button",{onClick:o,...Gn(p,_e(v8,"flex-1 bg-gray-800 text-gray-50")),children:c})]})]})})}const b8="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all",w8=300;function $ae(e){const{onOpenChange:t,onContinue:n,overlayProps:r,contentProps:i,...s}=e,[o,a]=ke(""),c=()=>{t==null||t(!1),setTimeout(()=>a(""),w8)},l=()=>{n(o),setTimeout(()=>a(""),w8)};return g(os,{contentProps:{...i,className:_e("rounded-3xl",i==null?void 0:i.className)},onOpenChange:t,overlayProps:{...r,className:r==null?void 0:r.className},...s,children:ee("div",{className:"w-[400px] p-6 text-slate-300",children:[g("div",{className:"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800",children:"Create a new document"}),g("div",{className:"my-6",children:g(cd,{icon:g(we,{name:"BrickGlobe"}),onChange:u=>a(u.target.value),placeholder:"Document name",required:!0,value:o})}),ee("div",{className:"mt-8 flex justify-between gap-3",children:[g("button",{className:_e(b8,"flex-1 bg-slate-50 text-slate-800"),onClick:c,children:"Cancel"}),g(Sr,{className:_e(b8,"flex-1 bg-gray-800 text-gray-50"),onClick:l,children:"Create"})]})]})})}const Vae=e=>{const{inputPlaceholder:t,body:n,driveName:r,...i}=e,[s,o]=ke("");return g(OI,{bodyProps:{className:"p-0 bg-white my-0"},containerProps:{className:"w-[450px]"},continueButtonProps:{disabled:s!==r,className:s!==r?"bg-red-600 hover:scale-100 cursor-not-allowed active:opacity-100":"bg-red-900"},...i,children:ee("div",{children:[g("div",{className:"my-6 rounded-md bg-slate-50 p-4 text-center",children:n}),g("div",{children:g(cd,{hideErrors:!0,icon:g(we,{name:"Lock"}),onChange:a=>o(a.target.value),placeholder:t,value:s})})]})})};function Uae(e){const{onDelete:t,deleteLabel:n,...r}=e;return g(OI,{...r,containerProps:{className:"w-[450px]"},continueButtonProps:{className:"bg-red-900"},continueLabel:n,onContinue:t})}function zae(e){const{uiDriveNode:t,open:n,onOpenChange:r,onDeleteDrive:i,onRenameDrive:s,onChangeSharingType:o,onChangeAvailableOffline:a,modalProps:c,containerProps:l}=e,u=h=>{h.name!==t.name&&s(t,h.name),h.sharingType!==t.sharingType&&o(t,h.sharingType),h.availableOffline!==t.availableOffline&&a(t,h.availableOffline),r(!1)};function d(){i(t),r(!1)}function f(){r(!1)}return g(os,{...c,contentProps:{className:"rounded-2xl"},onOpenChange:r,open:n,children:ee("div",{...l,className:_e("max-w-[408px] rounded-2xl p-6",l==null?void 0:l.className),children:[ee("div",{className:"flex justify-between",children:[g("h1",{className:"text-xl font-bold",children:"Drive settings"}),g("button",{className:"flex size-8 items-center justify-center rounded-md bg-gray-100 text-gray-500 outline-none hover:text-gray-900",onClick:f,tabIndex:-1,children:g(we,{name:"XmarkLight",size:24})})]}),g(Ps,{className:"my-4"}),g(mie,{handleCancel:f,handleDeleteDrive:d,onSubmit:u,uiDriveNode:t})]})})}const Sie="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all";function jae(e){const{body:t,header:n,children:r,onOpenChange:i,onContinue:s,closeLabel:o,overlayProps:a,contentProps:c,bodyProps:l={},headerProps:u={},containerProps:d={},continueButtonProps:f={},buttonContainerProps:h={},...m}=e,[p,y]=ke(!0),v=wt(null);return ft(()=>{const b=()=>{const x=v.current;x&&(x.scrollHeight>x.clientHeight?(y(!0),x.addEventListener("scroll",C)):y(!1))},C=()=>{const x=v.current;x&&x.scrollHeight-Math.ceil(x.scrollTop)===x.clientHeight&&y(!1)};return requestAnimationFrame(b),()=>{const x=v.current;x&&x.removeEventListener("scroll",C)}},[]),g(os,{contentProps:{...c,className:_e("rounded-3xl outline-none",c==null?void 0:c.className)},onOpenChange:i,overlayProps:{...a,className:a==null?void 0:a.className},...m,children:ee("div",{...Gn(d,"w-[500px] p-6 text-slate-300"),children:[g("div",{...Gn(u,"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"),children:n}),ee("div",{ref:v,...Gn(l,"my-6 max-h-[245px] overflow-scroll rounded-md bg-slate-50 p-4 text-center"),children:[t,r]}),g("div",{...Gn(h,"mt-8 flex justify-between gap-3"),children:g("button",{disabled:p,onClick:s,...Gn(f,_e(Sie,"flex-1 bg-gray-800 text-gray-50",p&&"cursor-not-allowed bg-gray-300 hover:scale-100")),children:o})})]})})}const Em=["@powerhousedao/design-system","document-drive","document-model"],Iie=Pe({version:pe({message:"Missing version field in package.json"}),dependencies:s5(pe(),pe()).nullable(),devDependencies:s5(pe(),pe()).nullable()}).refine(e=>e.dependencies!=null||e.devDependencies!=null,"package.json must have either dependencies or devDependencies").transform(e=>{const t={...e.dependencies,...e.devDependencies},n=Em.filter(r=>!t[r]||typeof t[r]!="string");return n.length>0?(console.error("Missing or invalid dependencies:",n,"Available dependencies:",Object.keys(t)),!1):{version:e.version,dependencies:Object.fromEntries(Em.map(r=>[r,t[r]]))}});function Tie(e){const t=Iie.safeParse(e);return t.success?t.data:(console.error("Package.json validation failed:",t.error.format()),!1)}function Oie(e){const[t,n]=ke(!1),{packageJson:r,phCliVersion:i}=e,s=Tie(r);return s?g(Wf,{isOpen:t,onOpenChange:()=>n(!t),title:`App version: ${s.version}`,toggleClassName:"text-gray-900 text-sm",children:ee("ul",{className:"text-sm text-gray-600",children:[Em.map(o=>ee("li",{className:"my-1 flex justify-between pr-1",children:[ee("span",{children:[o.replace("@powerhousedao/",""),":"]}),g("span",{className:"font-normal",children:s.dependencies[o]})]},o)),i&&ee("li",{className:"my-1 flex justify-between pr-1",children:[g("span",{children:"@powerhousedao/ph-cli:"}),g("span",{className:"font-normal",children:i})]},"ph-cli")]})}):(console.error("Failed to validate package.json data"),null)}function Hae(e){const{packageJson:t,phCliVersion:n}=e;return ee("div",{className:"bg-white p-3",children:[g("h2",{className:"font-semibold",children:"About"}),g("p",{className:"text-sm font-normal text-gray-600",children:"Connect is the hub for your most important documents and processes translated into software. Easily capture data in a structured way with Connect."}),g("div",{className:"my-4",children:g(Oie,{packageJson:t,phCliVersion:n})})]})}function Gae(e){const{className:t,...n}=e;return ee("div",{className:Qe("h-full rounded-lg bg-white p-3",t),children:[g("h2",{className:"mb-4 font-semibold",children:"Modify Drives"}),g(_ie,{...n}),g("h2",{className:"my-4 font-semibold",children:"Local Storage"}),g(kie,{...n})]})}function _ie(e){const{className:t,...n}=e;return g("div",{className:t,children:g(Aie,{...n})})}function Aie(e){const{className:t,...n}=e;return g("div",{className:t,children:e.drives.map(r=>g(Nie,{drive:r,...n},r.id))})}function Nie(e){const{drive:t,className:n,onDeleteDrive:r}=e,[i,s]=ke(!1),o=g(we,{name:"Hdd",size:16,className:"flex-none"}),a=g(we,{name:"Server",size:16,className:"flex-none"}),c="icon"in t&&t.icon?g("img",{alt:"drive icon",className:"size-4 flex-none object-contain",src:t.icon}):g(we,{name:"M",size:16,className:"flex-none"});function l(){return t.sharingType===Fh?c:t.sharingType===ZI?a:o}const u=l();return ee("div",{className:Qe("mb-4 flex w-96 items-center gap-2 rounded-md border border-gray-200 bg-gray-50 px-3 py-2 shadow-sm last-of-type:mb-0",n),children:[u,ee("div",{children:[g("span",{className:"block text-sm font-medium leading-[18px]",children:m5(t.name)}),ee("div",{className:"flex items-baseline gap-x-2 leading-[18px]",children:[ee("span",{className:"text-sm text-gray-600",children:[m5(t.sharingType)," App"]}),ee("a",{className:"group flex items-center gap-x-2 text-sm text-slate-500 transition-colors hover:text-[#9896FF]",children:["By Powerhouse",g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",className:"size-4 text-gray-400 transition-colors group-hover:text-inherit",children:g("path",{d:"M7.99365 11.9939C9.46632 11.9939 10.6603 10.7999 10.6603 9.32722V7.32722C10.6603 6.95922 10.3617 6.66056 9.99365 6.66056C9.62565 6.66056 9.32699 6.95922 9.32699 7.32722V9.32722C9.32699 10.0639 8.73032 10.6606 7.99365 10.6606H2.66032C1.92365 10.6606 1.32699 10.0639 1.32699 9.32722V3.99389C1.32699 3.25723 1.92365 2.66056 2.66032 2.66056H4.66032C5.02832 2.66056 5.32699 2.36189 5.32699 1.99389C5.32699 1.6259 5.02832 1.32723 4.66032 1.32723H2.66032C1.18765 1.32723 -0.00634766 2.52123 -0.00634766 3.99389V9.32722C-0.00634766 10.7999 1.18765 11.9939 2.66032 11.9939H7.99365ZM5.32699 7.32722C5.49765 7.32722 5.67565 7.26989 5.80632 7.13989L10.1396 2.80656L11.9937 4.66056V-0.00610352H7.32699L9.18099 1.8479L4.84766 6.18123C4.58766 6.4419 4.58766 6.87922 4.84766 7.13989C4.97832 7.26989 5.15632 7.32722 5.32699 7.32722Z",fill:"currentColor"})})]})]})]}),g(fh,{items:[{id:"delete-drive",label:"Delete",icon:g(we,{name:"Trash"}),className:"text-red-900"}],onItemClick:d=>{d==="delete-drive"&&r(t)},onOpenChange:s,open:i,children:g("button",{className:"group ml-auto flex-none",onClick:d=>{d.stopPropagation(),s(!0)},children:g(we,{className:"text-gray-600 group-hover:text-gray-900",name:"VerticalDots",size:16})})})]})}function kie(e){const{onClearStorage:t}=e;return g("div",{children:ee("button",{className:"flex items-center gap-x-2 rounded-md border border-gray-300 bg-transparent px-3 py-1 text-sm font-medium text-red-900 transition-colors hover:bg-gray-100",onClick:t,children:["Clear Storage ",g(we,{name:"Trash",size:16})]})})}function qae(e){const{className:t,...n}=e;return g("div",{className:_e("rounded-lg p-3",t),children:g(Die,{...n})})}function Die(e){const{documentModelEditor:t,setDocumentModelEditor:n,documentModelEditorOptions:r,className:i}=e;return ee("div",{children:[g("h3",{className:"mb-4 font-semibold text-gray-900",children:"Default Editor Selection"}),g(m3,{className:_e("min-w-36 max-w-fit",i),name:"default-editor",required:!0,value:t,options:r,multiple:!1,onChange:s=>n(s)})]})}const Rie={npm:{icon:"Npm"},github:{icon:"Github",size:28},local:{icon:"Hdd"}},Mie=({packageName:e,provider:t})=>{const n=t&&Rie[t];return ee("div",{className:"flex w-full items-center justify-between px-2 py-1",children:[g("p",{className:"font-medium",children:e}),n&&g(we,{name:n.icon,size:n.size})]})},Pie=e=>{const{onInstall:t,packageOptions:n,className:r}=e,[i,s]=ke(""),[o,a]=ke(!1),[c,l]=ke(),u=Fe(()=>{const m=t(i);m?(a(!0),m.then(()=>s("")).catch(l).finally(()=>a(!1))):(s(""),l(void 0))},[t,i]),d=Fe(m=>{s(m.target.value)},[]),f=c?typeof c=="string"?c:c instanceof Error?c.message:c:" ",h=Rt(()=>{const m=n==null?void 0:n.map(p=>({...p,value:p.packageName}));return n!=null&&n.length?{autoComplete:!0,initialOptions:m,fetchOptionsCallback:p=>(m==null?void 0:m.filter(y=>y.packageName.toLowerCase().includes(p.toLowerCase())))??[],renderOption:p=>g(Mie,{...p})}:{autoComplete:!1}},[n]);return ee("div",{className:r,children:[g("h3",{className:"mb-4 font-semibold text-gray-900",children:"Install Package"}),ee("div",{className:"flex items-center gap-4",children:[n!=null&&n.length?g(cb,{...h,onChange:s}):g(W1,{name:"package",className:"max-w-xs text-gray-700",value:i,onChange:d,onSubmit:u,disabled:o}),g(Sr,{className:"h-9 rounded-md text-sm",onClick:u,disabled:o,children:"Install"})]}),g("p",{className:"mb-3 ml-2 h-3 text-sm text-red-800",children:f})]})},Yd=({label:e,value:t})=>ee("div",{className:"flex items-start gap-2 text-sm",children:[ee("p",{className:"text-gray-600",children:[e,":"]}),g("p",{className:"text-gray-600",children:t})]}),Lie=e=>{const{package:{name:t,description:n,category:r,publisher:i,publisherUrl:s,modules:o,id:a,removable:c},mutable:l,onUninstall:u,className:d}=e,[f,h]=ke(!1);return ee("li",{className:_e("relative flex flex-col items-start rounded-md border border-gray-200 p-3 text-sm leading-5 shadow-sm",d),children:[g("h3",{className:"font-semibold text-gray-900",children:t}),g(Yd,{label:"Description",value:n}),g(Yd,{label:"Category",value:r}),g(Yd,{label:"Publisher",value:i}),g(Yd,{label:"Publisher URL",value:g("a",{className:"underline",href:s,children:s})}),g("p",{className:"text-sm text-gray-600",children:"Modules included:"}),g("ul",{className:"list-disc pl-5",children:o.map(m=>g("li",{children:g("span",{className:"text-gray-600",children:m})},m))}),l&&c&&g(fh,{items:[{id:"uninstall",label:"Uninstall",icon:g(we,{name:"Trash"}),className:"text-red-900"}],onItemClick:m=>{m==="uninstall"&&u(a)},onOpenChange:h,open:f,children:g("button",{className:"group absolute right-3 top-3",onClick:m=>{m.stopPropagation(),h(!0)},children:g(we,{className:"text-gray-600 group-hover:text-gray-900",name:"VerticalDots"})})})]})},Fie=e=>{const{className:t,packages:n,onUninstall:r,mutable:i,...s}=e,o=Fe(a=>{r(a)},[r]);return ee("div",{...s,className:_e("flex max-h-[370px] flex-col items-stretch overflow-hidden",t),children:[g("h3",{className:"mb-4 font-semibold text-gray-900",children:"Installed Packages"}),g("div",{className:"flex-1 overflow-y-auto pr-2",children:g("ul",{className:"flex flex-col items-stretch gap-4 pr-2",children:n.map(a=>g(Lie,{package:a,onUninstall:o,mutable:i},a.id))})})]})},Bie=e=>{const{reactorOptions:t,reactor:n,onReactorChange:r,...i}=e,s=Fe(o=>{r(Array.isArray(o)?o.at(-1):o)},[r]);return ee("div",{...i,children:[g("h3",{className:"mb-4 font-semibold text-gray-900",children:"Select Reactor"}),g(m3,{className:"min-w-36 max-w-fit",name:"reactor",required:!0,value:n,options:t,multiple:!1,onChange:s})]})},Zae=e=>{const{className:t,reactorOptions:n,reactor:r,onReactorChange:i,onInstall:s,packages:o,onUninstall:a,mutable:c,packageOptions:l,...u}=e,d=Rt(()=>l==null?void 0:l.filter(f=>!o.find(h=>h.name===f.packageName)),[o,l]);return ee("div",{...u,className:_e("flex h-full flex-1 flex-col rounded-lg p-3",t),children:[g(Bie,{reactor:r,reactorOptions:n,onReactorChange:i,className:"mb-4"}),c&&g(Pie,{onInstall:s,packageOptions:d}),g(Fie,{packages:o,onUninstall:a,mutable:c})]})};function Wae(e){var h,m;const{title:t,overlayProps:n,contentProps:r,onOpenChange:i,tabs:s,defaultTab:o,...a}=e,[c,l]=ke(o??((h=s.at(0))==null?void 0:h.id)),u=s.map(p=>g("button",{type:"button",onClick:()=>l(p.id),children:ee("div",{className:_e("flex h-9 w-48 cursor-pointer items-center gap-x-2 rounded-md pl-3 hover:bg-slate-50",c===p.id?"bg-slate-50":"bg-transparent"),children:[p.icon,g("span",{children:p.label})]})},p.id)),f=(m=s.find(p=>p.id===c))==null?void 0:m.content;return ee(os,{contentProps:{...r,className:_e("min-h-full w-full max-w-4xl rounded-xl",r==null?void 0:r.className),style:{...r==null?void 0:r.style,boxShadow:"0px 0px 16px 4px rgba(0, 0, 0, 0.04), 0px 33px 32px -16px rgba(0, 0, 0, 0.10)"}},onOpenChange:i,overlayProps:{...n,className:_e("py-28",n==null?void 0:n.className)},...a,children:[ee("div",{className:"flex justify-between border-b border-slate-50 p-4",children:[g("h1",{className:"text-center text-xl font-semibold",children:t}),g("button",{type:"button",className:"flex size-6 items-center justify-center rounded-md outline-none",onClick:()=>i==null?void 0:i(!1),children:g(we,{name:"XmarkLight",size:24})})]}),ee("div",{className:"flex flex-1",children:[g("div",{className:"flex flex-col gap-y-1 p-3 pt-6",children:u}),g("div",{className:"m-6 flex h-full flex-1 flex-col overflow-hidden rounded-lg border border-slate-50",children:typeof f=="function"?g(f,{}):f})]})]})}const C8="min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all";function Yae(e){const{body:t,header:n,onOpenChange:r,onContinue:i,cancelLabel:s,continueLabel:o,overlayProps:a,contentProps:c,...l}=e;return g(os,{contentProps:{...c,className:_e("rounded-3xl",c==null?void 0:c.className)},onOpenChange:r,overlayProps:{...a,className:a==null?void 0:a.className},...l,children:ee("div",{className:"w-[400px] p-6 text-slate-300",children:[g("div",{className:"border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800",children:n}),g("div",{className:"my-6 rounded-md bg-slate-50 p-4 text-center",children:t}),ee("div",{className:"mt-8 flex justify-between gap-3",children:[g("button",{className:_e(C8,"flex-1 bg-slate-50 text-slate-800"),onClick:()=>r==null?void 0:r(!1),children:s}),g("button",{className:_e(C8,"flex-1 bg-gray-800 text-gray-50"),onClick:i,children:o})]})]})})}function o9(e){const{onSubmit:t,onCancel:n,defaultValue:r,className:i,minLength:s=1,...o}=e,[a,c]=ke(r??""),l=wt(null);pF(l,u),ob("keyup",d=>{d.key==="Enter"&&u(),d.key==="Escape"&&n()}),Ec(()=>{setTimeout(()=>{var d,f,h;(d=l.current)==null||d.focus(),(f=l.current)==null||f.select(),(h=l.current)==null||h.scroll({left:9999})},100)},[]);function u(){a.length>=s&&t(a)}return g("input",{...o,autoFocus:!0,className:_e("bg-inherit text-inherit outline-none",i),minLength:s,onChange:d=>c(d.target.value),ref:l,required:!0,type:"text",value:a})}function $ie(e){const{branch:t="main"}=e;return ee("button",{className:"flex h-8 items-center gap-1 rounded-lg bg-slate-50 pl-1 pr-2 text-xs text-slate-100",children:[g(we,{name:"Branch"}),g("span",{children:"BRANCH"}),g("span",{className:"text-gray-900",children:t})]})}function Vie(e){const{docId:t}=e,[,n]=g3();function r(i){return()=>{n(i).catch(s=>{console.error("Failed to copy!",s)})}}return ee("button",{className:"flex h-8 items-center gap-1 rounded-lg bg-slate-50 pl-1 pr-2 text-xs text-slate-100",onClick:r(t),children:[g(we,{name:"Link"}),"DOC ID",g("span",{className:"text-gray-900",children:t})]})}const a9=JR(function(t,n){const{items:r,value:i,id:s,onChange:o,containerClassName:a,menuClassName:c,itemClassName:l,absolutePositionMenu:u=!1,borderRadius:d="6px"}=t,[f,h]=ke(!1),m=y(i)??r[0];function p(b){b.disabled||(o(b.value),h(!1))}function y(b){return r.find(C=>C.value===b)}const v=r.filter(b=>b.value!==i);return ee("div",{className:_e("border border-gray-200 bg-gray-50 text-gray-800 transition-[border-radius]",u&&"relative",a),"data-open":f,ref:n,style:{borderRadius:d},children:[ee("div",{className:_e("flex min-w-[360px] cursor-pointer items-center justify-between pr-3 text-gray-800 outline-none",c),id:s,onClick:()=>h(!f),children:[g(x8,{...m,className:l}),g(we,{className:Au("transition",f?"":"-rotate-90"),name:"ChevronDown"})]}),g("div",{className:_e("max-h-0 w-full overflow-hidden bg-inherit transition-[max-height] ease-in-out",f&&"max-h-screen",u&&"absolute"),style:{borderRadius:`0 0 ${d} ${d}`},children:v.map(b=>g(x8,{...b,className:l,onItemClick:()=>p(b)},b.value))})]})});function x8(e){const{className:t,disabled:n,onItemClick:r,icon:i,displayValue:s,value:o,description:a}=e;return ee("div",{className:_e(n?"cursor-not-allowed text-gray-500":"text-gray-800","flex size-full cursor-pointer items-center gap-2 bg-inherit py-3 pl-3 text-start outline-none",t),onClick:r,children:[i,ee("div",{children:[g("p",{className:"capitalize text-inherit",children:s??o.toLowerCase()}),g("p",{className:"text-xs text-gray-600",children:a})]})]})}function Uie(e){const{value:t,onChange:n}=e;return g(a9,{absolutePositionMenu:!0,containerClassName:"bg-slate-50 text-gray-500 rounded-lg w-fit text-xs z-10",id:"scope select",itemClassName:"py-2 text-gray-500 grid grid-cols-[auto,auto] gap-1",items:[{displayValue:"Global scope",value:"global"},{displayValue:"Local scope",value:"local"}],menuClassName:"min-w-0 text-gray-500",onChange:n,value:t})}function zie(e){const{title:t,docId:n,scope:r,onChangeScope:i,onClose:s,className:o,...a}=e;return ee("header",{className:_e("flex items-center justify-between bg-transparent",o),...a,children:[ee("div",{className:"flex items-center gap-3",children:[g("button",{className:"shadow-button rounded-lg bg-gray-50 p-1 text-slate-100",onClick:s,children:g(we,{name:"VariantArrowLeft"})}),g("h1",{className:"text-xs",children:t})]}),ee("div",{className:"flex items-center gap-2",children:[g(Vie,{docId:n}),g($ie,{}),g(Uie,{onChange:i,value:r})]})]})}function _a(e,t,n){let r=n.initialDeps??[],i;function s(){var o,a,c,l;let u;n.key&&((o=n.debug)!=null&&o.call(n))&&(u=Date.now());const d=e();if(!(d.length!==r.length||d.some((m,p)=>r[p]!==m)))return i;r=d;let h;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(h=Date.now()),i=t(...d),n.key&&((c=n.debug)!=null&&c.call(n))){const m=Math.round((Date.now()-u)*100)/100,p=Math.round((Date.now()-h)*100)/100,y=p/16,v=(b,C)=>{for(b=String(b);b.length<C;)b=" "+b;return b};console.info(`%c⏱ ${v(p,5)} /${v(m,5)} ms`,`
|
|
527
527
|
font-size: .6rem;
|
|
528
528
|
font-weight: bold;
|
|
529
|
-
color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,i),i}return s.updateDeps=o=>{r=o},s}function E8(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const jie=(e,t)=>Math.abs(e-t)<=1,Hie=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},S8=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Gie=e=>e,qie=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},Zie=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=o=>{const{width:a,height:c}=o;t({width:Math.round(a),height:Math.round(c)})};if(i(S8(n)),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(o=>{const a=()=>{const c=o[0];if(c!=null&&c.borderBoxSize){const l=c.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(S8(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},I8={passive:!0},T8=typeof window>"u"?!0:"onscrollend"in window,Wie=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const s=e.options.useScrollendEvent&&T8?()=>{}:Hie(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=u=>()=>{const{horizontal:d,isRtl:f}=e.options;i=d?n.scrollLeft*(f&&-1||1):n.scrollTop,s(),t(i,u)},a=o(!0),c=o(!1);c(),n.addEventListener("scroll",a,I8);const l=e.options.useScrollendEvent&&T8;return l&&n.addEventListener("scrollend",c,I8),()=>{n.removeEventListener("scroll",a),l&&n.removeEventListener("scrollend",c)}},Yie=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Jie=(e,{adjustments:t=0,behavior:n},r)=>{var i,s;const o=e+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class Qie{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const o=()=>{this._measureElement(s.target,s)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Gie,rangeExtractor:qie,onChange:()=>{},measureElement:Yie,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=_a(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,s=new Map;for(let o=r-1;o>=0;o--){const a=n[o];if(i.has(a.lane))continue;const c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((o,a)=>o.end===a.end?o.index-a.index:o.end-a.end)[0]:void 0},this.getMeasurementOptions=_a(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,s,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:o}),{key:!1}),this.getMeasurements=_a(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:o},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,c);for(let u=c;u<n;u++){const d=s(u),f=this.options.lanes===1?l[u-1]:this.getFurthestMeasurement(l,u),h=f?f.end+this.options.gap:r+i,m=a.get(d),p=typeof m=="number"?m:this.options.estimateSize(u),y=h+p,v=f?f.lane:u%this.options.lanes;l[u]={index:u,start:h,size:p,end:y,key:d,lane:v}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=_a(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,s)=>this.range=n.length>0&&r>0?Xie({measurements:n,outerSize:r,scrollOffset:i,lanes:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=_a(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,s,o)=>s===null||o===null?[]:n({startIndex:s,endIndex:o,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),s=this.measurementsCache[i];if(!s)return;const o=s.key,a=this.elementsCache.get(o);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const s=this.itemSizeCache.get(i.key)??i.size,o=r-s;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=_a(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let s=0,o=n.length;s<o;s++){const a=n[s],c=r[a];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return E8(r[_I(0,r.length-1,i=>E8(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const s=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+s?"end":"start"),r==="center"?n+=(i-s)/2:r==="end"&&(n-=s);const a=this.getTotalSize()-s;return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const s=this.getSize(),o=this.getScrollOffset();if(r==="auto")if(i.end>=o+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];const a=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,r);if(!s)return;const[o,a]=s;this._scrollToOffset(o,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const l=this.getOffsetForIndex(n,a);if(!l)return;const[u]=l,d=this.getScrollOffset();jie(u,d)||this.scrollToIndex(n,{align:a,behavior:i})}else this.scrollToIndex(n,{align:a,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&s.some(a=>a===null);){const a=r[o];s[a.lane]===null&&(s[a.lane]=a.end),o--}i=Math.max(...s.filter(a=>a!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const _I=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,s=n(i);if(s<r)e=i+1;else if(s>r)t=i-1;else return i}return e>0?e-1:0};function Xie({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,s=c=>e[c].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=_I(0,i,s,n),a=o;if(r===1)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const c=Array(r).fill(0);for(;a<i&&c.some(u=>u<n+t);){const u=e[a];c[u.lane]=u.end,a++}const l=Array(r).fill(n+t);for(;o>=0&&l.some(u=>u>=n);){const u=e[o];l[u.lane]=u.start,o--}o=Math.max(0,o-o%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:o,endIndex:a}}const O8=typeof document<"u"?R.useLayoutEffect:R.useEffect;function Kie(e){const t=R.useReducer(()=>({}),{})[1],n={...e,onChange:(i,s)=>{var o;s?VT(t):t(),(o=e.onChange)==null||o.call(e,i,s)}},[r]=R.useState(()=>new Qie(n));return r.setOptions(n),O8(()=>r._didMount(),[]),O8(()=>r._willUpdate()),r}function ese(e){return Kie({observeElementRect:Zie,observeElementOffset:Wie,scrollToFn:Jie,...e})}function tse(e){const{address:t,chainId:n}=e,[,r]=g3();if(!t)return null;const i=boe(t);function s(a){return()=>{r(a).catch(c=>{console.error("Failed to copy!",c)})}}const o=ee("button",{className:"flex items-center gap-1",onClick:s(t),children:[t,g(we,{className:"inline-block text-gray-600",name:"FilesEarmark",size:16})]});return g(Ks,{content:o,children:ee("span",{className:"flex w-fit cursor-pointer items-center gap-1 rounded-lg bg-gray-100 p-1 text-xs text-slate-100",children:[g(wI,{address:t,chainId:n}),i]})})}function nse(e){const{errors:t}=e,n=!!(t!=null&&t.length),r=n?"text-red-800":"text-green-700",i=n?g(we,{name:"Exclamation",size:16}):g(we,{name:"Check",size:16}),s=n?`Error: ${t[0]}`:"No errors",o=ee("span",{className:_e("flex w-fit items-center rounded-lg border border-gray-200 px-2 py-1 text-xs",r,n&&"cursor-pointer"),children:[i,g("span",{className:_e("inline-block max-w-36 truncate"),children:s})]}),a=t==null?void 0:t.map((c,l)=>ee("p",{className:"text-red-800",children:["Error: ",c]},l));return n?g(Ks,{content:a,children:o}):o}function rse(e){const{operationType:t,operationInput:n}=e,r=g("code",{children:g("pre",{children:JSON.stringify(n,null,2)})});return g(Ks,{content:r,children:ee("span",{className:"flex cursor-pointer items-center gap-2 text-xs",children:[t,g(we,{className:"text-gray-300",name:"Braces",size:16})]})})}function ise(e){const{operationIndex:t,eventId:n,stateHash:r}=e,[,i]=g3(),s=t+1,o=ee("button",{className:"flex items-center gap-1",onClick:a(r),children:["Revision ",s," - Event ID: ",n," - State Hash: ",r,g(we,{className:"inline-block text-gray-600",name:"FilesEarmark",size:16})]});function a(c){return()=>{i(c).catch(l=>{console.error("Failed to copy!",l)})}}return g(Ks,{content:o,children:ee("span",{className:"flex cursor-pointer items-center gap-2 text-xs text-gray-600",children:["Revision ",s,".",g("a",{children:g(we,{className:"cursor-pointer text-slate-100",name:"Ellipsis",size:14})})]})})}function sse(e){const{signatures:t}=e;if(!(t!=null&&t.length))return null;const n=ee("div",{className:"text-xs text-slate-300",children:[g("h3",{className:"mb-2",children:"Signature details:"}),t.map((r,i)=>ee("div",{className:"mb-2 last:mb-0",children:[ee("h4",{children:["Signature #",i+1," -"," ",r.isVerified?"verified":"unverified"]}),g("code",{children:g("pre",{children:JSON.stringify(r,null,2)})})]},r.hash))]});return g(Ks,{content:n,children:ee("span",{className:"flex w-fit cursor-pointer items-center gap-1 rounded-lg border border-gray-200 px-2 py-1",children:[g(ose,{signatures:t})," ",g(we,{className:"text-gray-300",name:"InfoSquare",size:16})]})})}function ose(e){const{signatures:t}=e;if(!(t!=null&&t.length))return null;const n=t.length,r=t.filter(a=>a.isVerified).length,s=`${r}/${n} ${n===1?"signature":"signatures"} verified`;return g("span",{className:`text-xs ${r===0?"text-red-800":r===n?"text-green-700":"text-orange-700"}`,children:s})}function ase(e){const{timestamp:t}=e,n=typeof t=="string"&&!t.includes("-")?parseInt(t):t,r=new Date(n),i=Mf(r,"HH:mm 'UTC'"),s=Mf(r,"eee, dd MMM yyyy HH:mm:ss 'UTC'"),o=g("div",{children:s});return g(Ks,{content:o,children:ee("span",{className:"cursor-pointer text-xs",children:["committed at ",i]})})}function cse(e){return ee("article",{className:"flex items-center justify-between rounded-xl border border-gray-200 bg-white px-4 py-2",children:[ee("div",{className:"flex items-center gap-2",children:[g(ise,{...e}),g(rse,{...e}),g(tse,{...e}),g(ase,{...e})]}),ee("div",{className:"flex items-center gap-1",children:[g(sse,{...e}),g(nse,{...e})]})]})}const lse=FT(cse);function use(e){const{operationIndex:t,skipCount:n}=e,r=t,i=n===1?`${r}`:`${r} - ${r+1-n}`;return ee("article",{className:"grid grid-cols-[1fr,auto,1fr] items-center py-2",children:[g("div",{className:"h-px rounded-full bg-slate-100"}),ee("div",{className:"mx-3 text-xs text-slate-100",children:["[Skipped Revision ",i,"]"]}),g("div",{className:"h-px rounded-full bg-slate-100"})]})}function dse(e){var r,i,s,o,a,c;const t=[],n=new Set;for(const l of e){const u=l.timestamp.split("T")[0];n.has(u)||(n.add(u),t.push({type:"day",height:32,timestamp:u})),t.push({type:"revision",height:46,operationIndex:l.index,eventId:l.id??"EVENT_ID_NOT_FOUND",stateHash:l.hash,operationType:l.type,operationInput:l.input??{},address:(i=(r=l.context)==null?void 0:r.signer)==null?void 0:i.user.address,chainId:(o=(s=l.context)==null?void 0:s.signer)==null?void 0:o.user.chainId,timestamp:l.timestamp,signatures:hse(((c=(a=l.context)==null?void 0:a.signer)==null?void 0:c.signatures)??[]),errors:l.error?[l.error]:void 0}),l.skip>0&&t.push({type:"skip",height:34,operationIndex:l.index,skipCount:l.skip,timestamp:l.timestamp})}return t}function fse(e){const[t,n,r,i]=e;return{signerAddress:t,hash:n,prevStateHash:r,signatureBytes:i,isVerified:!0}}function hse(e){return e==null?void 0:e.map(fse)}function pse(e){const{timestamp:t}=e,n=Mf(t,"MMM dd, yyyy");return ee("h2",{className:"-ml-6 flex items-center gap-1 bg-slate-50 py-2 text-xs text-slate-100",children:[g(we,{name:"Ring",size:16})," Changes on ",n]})}function mse(e){const{localOperations:t,globalOperations:n,scope:r}=e,i=r==="local"?t:n,s=100,o=Rt(()=>dse(i),[i]),[a,c]=ke(0),[l,u]=ke(s),[d,f]=ke(()=>o.slice(0,l)),h=wt(null),m=d.length<o.length,p=ese({count:d.length,getScrollElement:()=>h.current,estimateSize:v=>o[v].height,gap:8});ft(()=>{if(!m)return;const v=Math.floor(a/46),b=s+v;u(C=>b>C?b:C)},[a,m]),ft(()=>{f(o.slice(0,l))},[o,l]);const y=v=>{c(b=>{const C=b+v.deltaY;return C<0?0:C})};return ft(()=>(window.addEventListener("wheel",y),()=>{window.removeEventListener("wheel",y)}),[]),g("div",{className:"border-l border-slate-100",ref:h,style:{height:`${p.getTotalSize()}px`,width:"100%",position:"relative"},children:p.getVirtualItems().map(v=>{const b=d[v.index];return ee("div",{style:{position:"absolute",top:0,left:16,width:"100%",height:`${v.size}px`,transform:`translateY(${v.start}px)`},children:[b.type==="revision"&&Sf(lse,{...b,key:v.key}),b.type==="skip"&&g(use,{...b},v.key),b.type==="day"&&g(pse,{...b},v.key)]},v.index)})})}function Jae(e){const{documentTitle:t,documentId:n,globalOperations:r,localOperations:i,onClose:s,itemsPerPage:o=100}=e,[a,c]=ke("global"),l=Rt(()=>Ur(Zr(a==="global"?r:i)).sort((I,T)=>T.index-I.index),[r,i,a]),{pageItems:u,pages:d,goToPage:f,goToNextPage:h,goToPreviousPage:m,goToFirstPage:p,goToLastPage:y,hiddenNextPages:v,isNextPageAvailable:b,isPreviousPageAvailable:C}=YR(l,{itemsPerPage:o});function x(E){p(),c(E)}const S=l.length>o?g("div",{className:"mt-4 flex w-full justify-end",children:g(HR,{firstPageLabel:"First Page",goToFirstPage:p,goToLastPage:y,goToNextPage:h,goToPage:f,goToPreviousPage:m,hiddenNextPages:v,isNextPageAvailable:b,isPreviousPageAvailable:C,lastPageLabel:"Last Page",nextPageLabel:"Next",pages:d,previousPageLabel:"Previous"})}):g("hr",{className:"h-12 border-none"});return ee(jI,{children:[g(zie,{docId:n,onChangeScope:x,onClose:s,scope:a,title:t}),S,g("div",{className:"mt-4 flex justify-center rounded-md bg-slate-50 p-4",children:l.length>0?g("div",{className:"grid grid-cols-[minmax(min-content,1018px)]",children:g(mse,{globalOperations:a==="global"?u:[],localOperations:a==="local"?u:[],scope:a})}):g("h3",{className:"my-40 text-gray-600",children:"This document has no recorded operations yet."})}),S]})}const _8=e=>{const{item:t,...n}=e;return ee("div",{...Gn(n,"flex h-full flex-row items-center justify-between gap-x-4 px-2"),children:[t.icon,g("div",{className:"text-sm font-semibold text-slate-200",children:t.label})]})},Qae=e=>{const{value:t,onChange:n,placeholder:r,filterLabel:i,filterItems:s,selectedFilter:o,onFilterSelect:a=()=>{},className:c}=e,l=Rt(()=>(s==null?void 0:s.map(h=>({id:h.id,content:g(_8,{item:h})})))??[],[s]),u=s==null?void 0:s.find(h=>h.id===o),d=u?g(_8,{className:"gap-x-1",item:u}):i&&g("div",{className:"mr-2 text-sm font-semibold text-slate-200",children:i});function f(h){n==null||n(h.target.value)}return ee("div",{className:Qe("flex items-center",c),children:[g(we,{className:"mr-3",name:"Search"}),g("input",{className:_e("flex h-[52px] min-w-0 flex-1 items-center rounded-xl border border-gray-200 bg-gray-50 px-4 text-sm text-slate-200 outline-none"),onChange:f,placeholder:r,value:t}),ee(A7,{children:[ee(N7,{className:"ml-3 flex h-full flex-row items-center outline-none",children:[d," ",g(we,{name:"ChevronDown"})]}),g(k7,{className:"rounded-xl border border-gray-100 bg-gray-50 p-2",children:l.map(h=>g(D7,{className:"h-10 cursor-pointer overflow-hidden rounded-lg hover:bg-gray-100",id:h.id,onSelect:()=>a(h.id),children:h.content},h.id))})]})]})},gse=""+new URL("renown-short-hover-BiSLBV7L.png",import.meta.url).href,yse="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAtmSURBVHgB7Z3dbtvmGcefl5LsqHYCq0C6tEUCZ0kDzAFqd0NTYAmweAfr0YD0CrpeQboriH0H6RUsu4ChAYodtCdJD3LQBGttILEBJ4tdJ2uzBoi0yIpsi+S790+ZDkmREilSHySfX6FKpkgliH5+nuf9pKAEkFLO1Bu7VzRNzEuiWfXzglDHSIgZYsYC9b1sCaEeJFZMU66WCnS7XC5vUUwE9Qmk2dndvar+ZpetB5NCxIr6Hr+II1NkgQ7FMeTnHGGygxLhRkGj5agiRRKo3mxeY3EyjkZLR8vl5bCnhxKo2WzOGqb4UpJcCDpH1T+E/wpKY+3gU4XoO0MyCaKyhvVsqifTNNWzVM8y8Hz1rW2pr3ExTDTq+Q3vNPc/lYZ+3S/qwI+iVlDSCJYlZcgDiVqGQdLXJVGTJD47NjV5s9vndP3W6429a8rZpY6LIE6hoB4aMenHMMxgkXqktECBguSBNHhwxMkWiEgt3SRDpbgOukjka8HLxt4VQeaX3uOlIkedrKPr7Wjk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rFeGd4tydvnNMWyS6rMLdVW/HI5MShBoQNejbfsR5/REJcCiTJZKYl4Jm1QfPEjMmyBoWT2AOj+rQ+REzCY2pIzf7lcbJ/wH9VD8KK3ri6QAAAABJRU5ErkJggg==",vse=({onLogin:e})=>{const t=g(xF,{onLogin:e});return g(lb,{content:t,children:ee("div",{className:_e("group/sidebar-footer flex w-full items-baseline justify-start text-sm font-semibold leading-10 text-gray-600",e?"cursor-pointer":"cursor-wait"),children:[g("img",{width:42,height:42,loading:"lazy",className:"group-hover/sidebar-footer:hidden",src:yse,alt:"Renown Login"}),g("img",{width:42,height:42,loading:"lazy",className:"hidden group-hover/sidebar-footer:block",src:gse,alt:"Renown Login Hover"})]})})},bse=({address:e,etherscanUrl:t,onDisconnect:n})=>{const{data:r}=bI({address:e}),s=g(SF,{address:e,username:r,onDisconnect:n,etherscanUrl:t});return g(lb,{content:s,children:g("div",{className:"flex items-center justify-center rounded-sm",children:g(wI,{address:e,size:"40px"})})})},wse=({address:e,className:t,onLogin:n,onClickSettings:r,onDisconnect:i,etherscanUrl:s="",...o})=>ee(qR,{...o,className:_e("flex flex-col gap-2 border-t border-gray-300 px-2 py-4",t),children:[g("div",{children:e?g(bse,{address:e,onDisconnect:i,etherscanUrl:s}):g(vse,{onLogin:n})}),ee("button",{"aria-label":"Settings",type:"button",className:_e("mt-3 flex w-full items-center justify-center outline-none",r?"cursor-pointer":"cursor-wait"),onClick:r,children:[g(we,{className:"text-gray-600",name:"Settings"}),g("span",{className:"hidden text-sm font-semibold leading-6 text-gray-800",children:"Settings"})]})]}),Cse=({onClick:e,className:t,children:n,...r})=>g(GR,{...r,className:_e("flex justify-center gap-4 border-b border-gray-300 py-4",t),children:g("button",{"aria-label":"Home",className:e?"cursor-pointer":"cursor-wait",onClick:e,type:"button",children:g(we,{className:"text-gray-600",name:"ConnectSmall",size:24})})}),Xae=({onClick:e,address:t,headerContent:n,onClickSettings:r,maxWidth:i="304px",minWidth:s="58px",onLogin:o,onDisconnect:a,etherscanUrl:c,...l})=>ee(ZR,{...l,maxWidth:i,minWidth:s,children:[ee(WR,{children:[g(Cse,{onClick:e,children:n}),g("div",{className:"flex flex-col",children:l.children})]}),g(wse,{address:t,onClickSettings:r,onLogin:o,onDisconnect:a,etherscanUrl:c})]}),xse=function(t){const{icon:n,title:r,containerClassName:i,active:s,onClick:o}=t;return g("div",{className:_e("relative flex cursor-pointer flex-col items-center justify-center text-center text-sm text-black",i,s&&"bg-white",o&&"cursor-pointer"),onClick:o,children:g("div",{className:"mx-auto py-4",children:n||g("div",{className:"size-8 items-center justify-center rounded-lg bg-black pt-1",children:g("span",{className:"text-6 w-6 text-white",children:r.slice(0,1).toUpperCase()})})})})},Kae=function(t){const{containerClassName:n,onClick:r}=t;return g(xse,{title:"Create New Drive",icon:g(we,{name:"PlusSquare",size:32}),onClick:r,containerClassName:n})};function pp(e){const{children:t}=e;return g("div",{children:t})}var Mh="Tabs",[Ese,ece]=ss(Mh,[M1]),AI=M1(),[Sse,c9]=Ese(Mh),NI=R.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:o="horizontal",dir:a,activationMode:c="automatic",...l}=e,u=_m(a),[d,f]=Oc({prop:r,onChange:i,defaultProp:s??"",caller:Mh});return g(Sse,{scope:n,baseId:Dn(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:g(yt.div,{dir:u,"data-orientation":o,...l,ref:t})})});NI.displayName=Mh;var kI="TabsList",DI=R.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=c9(kI,n),o=AI(n);return g(zy,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:r,children:g(yt.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});DI.displayName=kI;var RI="TabsTrigger",MI=R.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,o=c9(RI,n),a=AI(n),c=FI(o.baseId,r),l=BI(o.baseId,r),u=r===o.value;return g(jy,{asChild:!0,...a,focusable:!i,active:u,children:g(yt.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...s,ref:t,onMouseDown:Ke(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:Ke(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:Ke(e.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(r)})})})});MI.displayName=RI;var PI="TabsContent",LI=R.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...o}=e,a=c9(PI,n),c=FI(a.baseId,r),l=BI(a.baseId,r),u=r===a.value,d=R.useRef(u);return R.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),g(lr,{present:i||u,children:({present:f})=>g(yt.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&s})})});LI.displayName=PI;function FI(e,t){return`${e}-trigger-${t}`}function BI(e,t){return`${e}-content-${t}`}var Ise=NI,Tse=DI,Ose=MI,_se=LI;function Ase({children:e,defaultValue:t}){return ee(Ise,{defaultValue:t,className:"flex flex-col gap-2",children:[g("div",{className:"flex w-full justify-between",children:g(Tse,{className:"flex w-full gap-x-2 rounded-xl bg-slate-50 p-1 text-sm font-semibold text-gray-600 outline-none",children:Oe.Children.map(e,(n,r)=>{if(!Oe.isValidElement(n))return;const{label:i,disabled:s}=n.props;return g(Ose,{className:"data-[state='active']:tab-shadow ata-disabled:cursor-not-allowed data-disabled:text-gray-400 flex h-7 flex-1 items-center justify-center rounded-lg transition duration-300 data-[state='active']:bg-gray-50 data-[state='active']:text-gray-900",value:i,disabled:s??!1,children:i},i)})})}),g("div",{className:"mt-3 rounded-md bg-white",children:Oe.Children.map(e,(n,r)=>{if(!Oe.isValidElement(n))return;const{label:i}=n.props;return g(_se,{value:i,children:n},r)})})]})}const xu=e=>typeof e=="number"&&!isNaN(e),Ro=e=>typeof e=="string",ir=e=>typeof e=="function",xf=e=>Ro(e)||ir(e)?e:null,Sm=e=>Fa(e)||Ro(e)||ir(e)||xu(e);function Nse(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Ph(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(o){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:d,isIn:f,playToast:h}=o;const m=r?`${t}--${c}`:t,p=r?`${n}--${c}`:n,y=wt(0);return Ec(()=>{const v=d.current,b=m.split(" "),C=x=>{x.target===d.current&&(h(),v.removeEventListener("animationend",C),v.removeEventListener("animationcancel",C),y.current===0&&x.type!=="animationcancel"&&v.classList.remove(...b))};v.classList.add(...b),v.addEventListener("animationend",C),v.addEventListener("animationcancel",C)},[]),ft(()=>{const v=d.current,b=()=>{v.removeEventListener("animationend",b),i?Nse(v,u,s):u()};f||(l?b():(y.current=1,v.className+=` ${p}`,v.addEventListener("animationend",b)))},[f]),Oe.createElement(Oe.Fragment,null,a)}}function A8(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Nn=new Map;let Eu=[];const Im=new Set,kse=e=>Im.forEach(t=>t(e)),$I=()=>Nn.size>0;function VI(e,t){var n;if(t)return!((n=Nn.get(t))==null||!n.isToastActive(e));let r=!1;return Nn.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function UI(e,t){Sm(e)&&($I()||Eu.push({content:e,options:t}),Nn.forEach(n=>{n.buildToast(e,t)}))}function N8(e,t){Nn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Dse(e){const{subscribe:t,getSnapshot:n,setProps:r}=wt(function(s){const o=s.containerId||1;return{subscribe(a){const c=function(u,d,f){let h=1,m=0,p=[],y=[],v=[],b=d;const C=new Map,x=new Set,w=()=>{v=Array.from(C.values()),x.forEach(I=>I())},S=I=>{y=I==null?[]:y.filter(T=>T!==I),w()},E=I=>{const{toastId:T,onOpen:P,updateId:B,children:_}=I.props,F=B==null;I.staleId&&C.delete(I.staleId),C.set(T,I),y=[...y,I.props.toastId].filter(O=>O!==I.staleId),w(),f(A8(I,F?"added":"updated")),F&&ir(P)&&P(Fa(_)&&_.props)};return{id:u,props:b,observe:I=>(x.add(I),()=>x.delete(I)),toggle:(I,T)=>{C.forEach(P=>{T!=null&&T!==P.props.toastId||ir(P.toggle)&&P.toggle(I)})},removeToast:S,toasts:C,clearQueue:()=>{m-=p.length,p=[]},buildToast:(I,T)=>{if((A=>{let{containerId:Y,toastId:z,updateId:U}=A;const le=Y?Y!==u:u!==1,ie=C.has(z)&&U==null;return le||ie})(T))return;const{toastId:P,updateId:B,data:_,staleId:F,delay:O}=T,N=()=>{S(P)},D=B==null;D&&m++;const L={...b,style:b.toastStyle,key:h++,...Object.fromEntries(Object.entries(T).filter(A=>{let[Y,z]=A;return z!=null})),toastId:P,updateId:B,data:_,closeToast:N,isIn:!1,className:xf(T.className||b.toastClassName),bodyClassName:xf(T.bodyClassName||b.bodyClassName),progressClassName:xf(T.progressClassName||b.progressClassName),autoClose:!T.isLoading&&(j=T.autoClose,M=b.autoClose,j===!1||xu(j)&&j>0?j:M),deleteToast(){const A=C.get(P),{onClose:Y,children:z}=A.props;ir(Y)&&Y(Fa(z)&&z.props),f(A8(A,"removed")),C.delete(P),m--,m<0&&(m=0),p.length>0?E(p.shift()):w()}};var j,M;L.closeButton=b.closeButton,T.closeButton===!1||Sm(T.closeButton)?L.closeButton=T.closeButton:T.closeButton===!0&&(L.closeButton=!Sm(b.closeButton)||b.closeButton);let W=I;Fa(I)&&!Ro(I.type)?W=gp(I,{closeToast:N,toastProps:L,data:_}):ir(I)&&(W=I({closeToast:N,toastProps:L,data:_}));const G={content:W,props:L,staleId:F};b.limit&&b.limit>0&&m>b.limit&&D?p.push(G):xu(O)?setTimeout(()=>{E(G)},O):E(G)},setProps(I){b=I},setToggle:(I,T)=>{C.get(I).toggle=T},isToastActive:I=>y.some(T=>T===I),getSnapshot:()=>v}}(o,s,kse);Nn.set(o,c);const l=c.observe(a);return Eu.forEach(u=>UI(u.content,u.options)),Eu=[],()=>{l(),Nn.delete(o)}},setProps(a){var c;(c=Nn.get(o))==null||c.setProps(a)},getSnapshot(){var a;return(a=Nn.get(o))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=J8(t,n,n);return{getToastToRender:function(s){if(!i)return[];const o=new Map;return e.newestOnTop&&i.reverse(),i.forEach(a=>{const{position:c}=a.props;o.has(c)||o.set(c,[]),o.get(c).push(a)}),Array.from(o,a=>s(a[0],a[1]))},isToastActive:VI,count:i==null?void 0:i.length}}function Rse(e){const[t,n]=ke(!1),[r,i]=ke(!1),s=wt(null),o=wt({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:d}=e;var f,h;function m(){n(!0)}function p(){n(!1)}function y(C){const x=s.current;o.canDrag&&x&&(o.didMove=!0,t&&p(),o.delta=e.draggableDirection==="x"?C.clientX-o.start:C.clientY-o.start,o.start!==C.clientX&&(o.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function v(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",v);const C=s.current;if(o.canDrag&&o.didMove&&C){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(h=Nn.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||h.setToggle(f.id,f.fn),ft(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[e.pauseOnFocusLoss]);const b={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){o.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",v);const x=s.current;o.canCloseOnClick=!0,o.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(o.start=C.clientX,o.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(o.start=C.clientY,o.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:x,bottom:w,left:S,right:E}=s.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=S&&C.clientX<=E&&C.clientY>=x&&C.clientY<=w?p():m()}};return a&&c&&(b.onMouseEnter=p,e.stacked||(b.onMouseLeave=m)),d&&(b.onClick=C=>{u&&u(C),o.canCloseOnClick&&l()}),{playToast:m,pauseToast:p,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:b}}function Mse(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:s,className:o,style:a,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:f}=e;const h=s||c&&l===0,m={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(m.transform=`scaleX(${l})`);const p=$r("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),y=ir(o)?o({rtl:u,type:i,defaultClassName:p}):$r(p,o),v={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{d&&r()}};return Oe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},Oe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${i}`}),Oe.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,...v}))}let Pse=1;const zI=()=>""+Pse++;function Lse(e){return e&&(Ro(e.toastId)||xu(e.toastId))?e.toastId:zI()}function kl(e,t){return UI(e,t),t.toastId}function I1(e,t){return{...t,type:t&&t.type||e,toastId:Lse(t)}}function Jd(e){return(t,n)=>kl(t,I1(e,n))}function Pt(e,t){return kl(e,I1("default",t))}Pt.loading=(e,t)=>kl(e,I1("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Pt.promise=function(e,t,n){let r,{pending:i,error:s,success:o}=t;i&&(r=Ro(i)?Pt.loading(i,n):Pt.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,d,f)=>{if(d==null)return void Pt.dismiss(r);const h={type:u,...a,...n,data:f},m=Ro(d)?{render:d}:d;return r?Pt.update(r,{...h,...m}):Pt(m.render,{...h,...m}),f},l=ir(e)?e():e;return l.then(u=>c("success",o,u)).catch(u=>c("error",s,u)),l},Pt.success=Jd("success"),Pt.info=Jd("info"),Pt.error=Jd("error"),Pt.warning=Jd("warning"),Pt.warn=Pt.warning,Pt.dark=(e,t)=>kl(e,I1("default",{theme:"dark",...t})),Pt.dismiss=function(e){(function(t){var n;if($I()){if(t==null||Ro(n=t)||xu(n))Nn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Nn.get(t.containerId);r?r.removeToast(t.id):Nn.forEach(i=>{i.removeToast(t.id)})}}else Eu=Eu.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Pt.clearWaitingQueue=function(e){e===void 0&&(e={}),Nn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Pt.isActive=VI,Pt.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var s;let{containerId:o}=i;return(s=Nn.get(o||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:zI()};s.toastId!==e&&(s.staleId=e);const o=s.render||i;delete s.render,kl(o,s)}},Pt.done=e=>{Pt.update(e,{progress:1})},Pt.onChange=function(e){return Im.add(e),()=>{Im.delete(e)}},Pt.play=e=>N8(!0,e),Pt.pause=e=>N8(!1,e);const Fse=typeof window<"u"?Ec:ft,Qd=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return Oe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},mp={info:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Oe.createElement("div",{className:"Toastify__spinner"})}},Bse=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=Rse(e),{closeButton:o,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:d,closeToast:f,transition:h,position:m,className:p,style:y,bodyClassName:v,bodyStyle:b,progressClassName:C,progressStyle:x,updateId:w,role:S,progress:E,rtl:I,toastId:T,deleteToast:P,isIn:B,isLoading:_,closeOnClick:F,theme:O}=e,N=$r("Toastify__toast",`Toastify__toast-theme--${O}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":F}),D=ir(p)?p({rtl:I,position:m,type:u,defaultClassName:N}):$r(N,p),L=function(G){let{theme:A,type:Y,isLoading:z,icon:U}=G,le=null;const ie={theme:A,type:Y};return U===!1||(ir(U)?le=U({...ie,isLoading:z}):Fa(U)?le=gp(U,ie):z?le=mp.spinner():(fe=>fe in mp)(Y)&&(le=mp[Y](ie))),le}(e),j=!!E||!c,M={closeToast:f,type:u,theme:O};let W=null;return o===!1||(W=ir(o)?o(M):Fa(o)?gp(o,M):function(G){let{closeToast:A,theme:Y,ariaLabel:z="close"}=G;return Oe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Y}`,type:"button",onClick:U=>{U.stopPropagation(),A(U)},"aria-label":z},Oe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Oe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(M)),Oe.createElement(h,{isIn:B,done:P,position:m,preventExitTransition:n,nodeRef:r,playToast:s},Oe.createElement("div",{id:T,onClick:l,"data-in":B,className:D,...i,style:y,ref:r},Oe.createElement("div",{...B&&{role:S},className:ir(v)?v({type:u}):$r("Toastify__toast-body",v),style:b},L!=null&&Oe.createElement("div",{className:$r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!_})},L),Oe.createElement("div",null,a)),W,Oe.createElement(Mse,{...w&&!j?{key:`pb-${w}`}:{},rtl:I,theme:O,delay:c,isRunning:t,isIn:B,closeToast:f,hide:d,type:u,style:x,className:C,controlledProgress:j,progress:E||0})))},Lh=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},$se=Ph(Lh("bounce",!0));Ph(Lh("slide",!0));Ph(Lh("zoom"));Ph(Lh("flip"));const Vse={position:"top-right",transition:$se,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Use(e){let t={...Vse,...e};const n=e.stacked,[r,i]=ke(!0),s=wt(null),{getToastToRender:o,isToastActive:a,count:c}=Dse(t),{className:l,style:u,rtl:d,containerId:f}=t;function h(p){const y=$r("Toastify__toast-container",`Toastify__toast-container--${p}`,{"Toastify__toast-container--rtl":d});return ir(l)?l({position:p,rtl:d,defaultClassName:y}):$r(y,xf(l))}function m(){n&&(i(!0),Pt.play())}return Fse(()=>{if(n){var p;const y=s.current.querySelectorAll('[data-in="true"]'),v=12,b=(p=t.position)==null?void 0:p.includes("top");let C=0,x=0;Array.from(y).reverse().forEach((w,S)=>{const E=w;E.classList.add("Toastify__toast--stacked"),S>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=b?"top":"bot");const I=C*(r?.2:1)+(r?0:v*S);E.style.setProperty("--y",`${b?I:-1*I}px`),E.style.setProperty("--g",`${v}`),E.style.setProperty("--s",""+(1-(r?x:0))),C+=E.offsetHeight,x+=.025})}},[r,c,n]),Oe.createElement("div",{ref:s,className:"Toastify",id:f,onMouseEnter:()=>{n&&(i(!1),Pt.pause())},onMouseLeave:m},o((p,y)=>{const v=y.length?{...u}:{...u,pointerEvents:"none"};return Oe.createElement("div",{className:h(p),style:v,key:`container-${p}`},y.map(b=>{let{content:C,props:x}=b;return Oe.createElement(Bse,{...x,stacked:n,collapseAll:m,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},C)}))}))}function zse(e){return e==="connect-success"||e==="connect-warning"||e==="connect-loading"||e==="connect-deleted"}function jse(e){if(zse(e)){const t={};switch(e){case"connect-success":t.type="success",t.icon=g(we,{className:"text-green-800",name:"CheckCircleFill",size:24});break;case"connect-warning":t.type="warning",t.icon=g(we,{className:"text-gray-600",name:"WarningFill",size:24});break;case"connect-loading":t.type="default",t.icon=g(we,{className:"text-gray-600",name:"ClockFill",size:24});break;case"connect-deleted":t.type="error",t.icon=g(we,{className:"text-red-800",name:"TrashFill",size:24});break}return t}return{type:e}}function tce(e,t){const{type:n="default",...r}=t||{},i=jse(n);return Pt(e,{...i,...r})}const Hse=({closeToast:e})=>g("button",{className:"flex items-center text-gray-500 hover:text-gray-600",onClick:e,children:g(we,{name:"XmarkLight",size:16})}),nce=e=>g(Use,{closeButton:Hse,...e}),Gse=Qs(function(t,n){return ee("label",{className:"relative cursor-pointer items-center",htmlFor:t.id,children:[g("input",{className:"peer sr-only",ref:n,type:"checkbox",value:"",...t}),g("div",{className:"peer h-6 w-11 rounded-full bg-gray-500 after:absolute after:start-0.5 after:top-0.5 after:size-5 after:rounded-full after:border after:border-none after:bg-gray-50 after:transition-all peer-checked:bg-blue-900 peer-checked:after:translate-x-full peer-focus:outline-none"})]})});function Ks(e){const{children:t,content:n,open:r,defaultOpen:i,onOpenChange:s,className:o,side:a="top",sideOffset:c=5,delayDuration:l,...u}=e;return ee(gv,{defaultOpen:i,delayDuration:l,onOpenChange:s,open:r,children:[g(yv,{asChild:!0,children:t}),g(vv,{children:g(bv,{...u,side:a,sideOffset:c,className:_e("shadow-tooltip rounded-lg border border-gray-200 bg-white p-2 text-xs",o),children:n})})]})}const jI=Pf,HI="powerhouse/budget-statement",l9="powerhouse/default",GI="makerdao/rwa-portfolio",qse=[HI,l9,GI],Tm="SWITCHBOARD",qI="LOCAL",ZI="CLOUD",Fh="PUBLIC",Zse="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAB4CAYAAAAXIRdAAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzWSURBVHgB7V1dbBXHFZ5d/wI1WMhuVBUJq1GlAg9QlZSngNU2D9BIreoYGikKUdVKjaoSklSRWol4TdWmUgs0SFVTVaqUELUKhDTlIUFqiDA8lKQ8QCvMS5PaVRAN14kMjrGN7TuZb5izPne89/r+7HrXvvNJ17s7O3v3er89Z845M3PGE+XDw58j372+Pi8bv+3n5WZV0i2l1y6EbBfLFNKT/U8fvycQGYFXznkppTi8O7fXF95eKWS3qDN4irQnM0LaPMIUOWGZ53ni0O7r3Z5o+JOQokvUMYyk9dOhSAkFhHGyfvXg/9pbVq7oU7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SuioFwx9KTdS01JwxBJH4JoOdEKaNKcdAAAAAASUVORK5CYII=",k8={[HI]:Zse,[l9]:Yse,[GI]:Wse},Jse="DRIVE",rce="FOLDER",Qse="FILE",WI="WRITE",Fs="READ",YI="UI_NODE",ld="DUPLICATE",ud="RENAME",dd="DELETE",Xse="SETTINGS",Kse="REMOVE_TRIGGER",eoe="ADD_TRIGGER",toe="ADD_INVALID_TRIGGER",noe=[ud,dd,ld],roe=[ud,dd,ld],ioe=[{value:qI,icon:g(we,{name:"Lock"}),description:"Only available to you"},{value:ZI,icon:g(we,{name:"People"}),description:"Only available to people in this drive"},{value:Fh,icon:g(we,{name:"Globe"}),description:"Available to everyone",disabled:!0}],soe={CLOUD:{title:"Secure cloud",description:"End to end encryption between members.",icon:g(we,{name:"Lock"})},LOCAL:{title:"Local",description:"Private and only available to you.",icon:g(we,{name:"Hdd"})},SWITCHBOARD:{title:"Switchboard",description:"Public and available to everyone.",icon:g(we,{name:"Drive"})}},ooe={[eoe]:{label:"Add Trigger",icon:g(we,{className:"text-orange-900",name:"Plus"})},[Kse]:{label:"Remove Trigger",icon:g(we,{className:"text-orange-900",name:"Xmark"})},[toe]:{label:"Add Trigger",icon:g(we,{className:"text-orange-900",name:"Exclamation"})}},aoe={[ld]:{label:"Duplicate",icon:g(we,{name:"FilesEarmark"})},[ud]:{label:"Rename",icon:g(we,{name:"Pencil"})},[dd]:{label:"Delete",icon:g(we,{name:"Trash"}),className:"text-red-900"},[Xse]:{label:"Settings",icon:g(we,{name:"Gear"})}},JI={...ooe,...aoe},D8="SYNCING",R8="SUCCESS",M8="CONFLICT",P8="MISSING",L8="ERROR",F8="INITIAL_SYNC",coe={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},loe={block:HQ({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const i=xh(r);return i.typeHex==="0x7e"&&(i.isSystemTx=r.isSystemTx,i.mint=r.mint?An(r.mint):void 0,i.sourceHash=r.sourceHash,i.type="deposit"),i}),stateRoot:e.stateRoot}}}),transaction:zQ({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?An(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:jee({format(e){return{l1GasPrice:e.l1GasPrice?An(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?An(e.l1GasUsed):null,l1Fee:e.l1Fee?An(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function uoe(e,t){return hoe(e)?foe(e):Hte(e,t)}const doe={transaction:uoe};function foe(e){poe(e);const{sourceHash:t,data:n,from:r,gas:i,isSystemTx:s,mint:o,to:a,value:c}=e,l=[t,r,a??"0x",o?it(o):"0x",c?it(c):"0x",i?it(i):"0x",s?"0x1":"0x",n??"0x"];return ti(["0x7e",Ys(l)])}function hoe(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function poe(e){const{from:t,to:n}=e;if(t&&!ln(t))throw new Fn({address:t});if(n&&!ln(n))throw new Fn({address:n})}const T1={contracts:coe,formatters:loe,serializers:doe},ice=$c({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),ll=1,sce=$c({...T1,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...T1.contracts,disputeGameFactory:{[ll]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[ll]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[ll]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[ll]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:ll}),oce=$c({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),B8=$c({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),ul=1,ace=$c({...T1,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...T1.contracts,disputeGameFactory:{[ul]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[ul]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[ul]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[ul]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:ul}),cce=$c({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),moe=bre({chains:[B8],transports:{[B8.id]:jne()}}),goe=new zre;function lce(e){const{children:t,wagmiProviderProps:n,queryClientProviderProps:r}=e,{config:i=moe,...s}=n??{},{client:o=goe,...a}=r??{};return g(xre,{config:i,...s,children:g(Kre,{client:o,...a,children:t})})}function QI(e){const{uiNode:t}=e,[n,r]=ke(!1),i=Fe(a=>{a.dataTransfer.setData(YI,JSON.stringify(t))},[t]),s=Fe(()=>{r(!1)},[]),o=!!t&&t.kind!==Jse;return Rt(()=>({isDragging:n,dragProps:o?{draggable:!0,onDragStart:i,onDragEnd:s}:{draggable:!1,onDragStart:void 0,onDragEnd:void 0}}),[o,n,s,i])}function yoe(e){const{uiNode:t,onAddFile:n,onCopyNode:r,onMoveNode:i}=e,[s,o]=ke(!1),a=!!t&&t.kind!==Qse,c=Fe(d=>{d.preventDefault(),o(!0)},[]),l=Fe(()=>{o(!1)},[]),u=Fe(async d=>{if(d.preventDefault(),d.stopPropagation(),!t)return;const f=voe(d.dataTransfer.items).filter(Boolean);if(f.length)for(const h of f)h&&await n(h,t);else{const h=d.getModifierState("Alt"),m=d.dataTransfer.getData(YI),p=JSON.parse(m);h?await r(p,t):await i(p,t)}o(!1)},[n,r,i,t]);return Rt(()=>({isDropTarget:s,dropProps:a?{onDragOver:c,onDragLeave:l,onDrop:u}:{onDragOver:void 0,onDragLeave:void 0,onDrop:void 0}}),[a,s,l,c,u])}function voe(e){return Array.from(e).map(n=>n.kind==="file"?n.getAsFile():null).filter(Boolean)}function boe(e){return`${e.slice(0,7)}...${e.slice(-5)}`}function woe(e,t){return t||(qse.includes(e)?k8[e]:k8[l9])}const Coe={},xoe=Object.freeze(Object.defineProperty({__proto__:null,default:Coe},Symbol.toStringTag,{value:"Module"})),uce=HT(xoe);export{Boe as $,TF as A,wG as B,Xae as C,CG as D,Sr as E,Doe as F,ese as G,Pae as H,aae as I,Dae as J,Zn as K,rce as L,Qse as M,_e as N,Rae as O,lae as P,Kre as Q,co as R,Qae as S,nce as T,yae as U,gae as V,lce as W,cJ as X,vae as Y,yoe as Z,X8 as _,zre as a,rt as a$,gf as a0,Foe as a1,zoe as a2,zz as a3,jz as a4,joe as a5,Jae as a6,XG as a7,uae as a8,mae as a9,Uae as aA,Yae as aB,$ae as aC,Lae as aD,gx as aE,Fae as aF,Bae as aG,zae as aH,Hae as aI,Gae as aJ,qae as aK,Zae as aL,Wae as aM,OI as aN,Vae as aO,dae as aP,LY as aQ,Joe as aR,u4 as aS,oae as aT,pU as aU,aq as aV,Ex as aW,zY as aX,Qoe as aY,ZI as aZ,eq as a_,xse as aa,Kae as ab,qI as ac,R8 as ad,M8 as ae,L8 as af,Jse as ag,Fh as ah,tce as ai,Zoe as aj,Poe as ak,oY as al,Fi as am,iae as an,HT as ao,lS as ap,cS as aq,Aae as ar,B8 as as,cce as at,oce as au,ice as av,sce as aw,ace as ax,jne as ay,$oe as az,gI as b,Ce as b$,z3 as b0,Iw as b1,Ew as b2,rj as b3,c2 as b4,po as b5,sC as b6,wr as b7,FG as b8,Xw as b9,Qq as bA,Kq as bB,Ws as bC,xr as bD,Ft as bE,p2 as bF,cr as bG,ja as bH,tn as bI,m2 as bJ,Yn as bK,Wl as bL,cs as bM,$C as bN,ts as bO,bn as bP,_n as bQ,Nt as bR,dt as bS,Wq as bT,AC as bU,yc as bV,QC as bW,K as bX,Pe as bY,Hl as bZ,pe as b_,c1 as ba,Kw as bb,eC as bc,tC as bd,rC as be,G3 as bf,cae as bg,HG as bh,qG as bi,cC as bj,LG as bk,uC as bl,Kn as bm,WG as bn,os as bo,Voe as bp,cd as bq,jae as br,$r as bs,Xoe as bt,xW as bu,Lt as bv,BC as bw,rr as bx,Zt as by,Xq as bz,vn as c,qj as c$,O3 as c0,rz as c1,t2 as c2,Goe as c3,br as c4,s5 as c5,MW as c6,rae as c7,RW as c8,IC as c9,Koe as cA,S5 as cB,Xe as cC,LZ as cD,wZ as cE,nae as cF,rZ as cG,tae as cH,Woe as cI,Ise as cJ,Tse as cK,Ose as cL,_se as cM,mj as cN,gj as cO,vj as cP,yj as cQ,bj as cR,wj as cS,Xj as cT,Kj as cU,Tj as cV,Oj as cW,Aj as cX,zj as cY,jj as cZ,Gj as c_,eae as ca,s1 as cb,uh as cc,Vt as cd,Me as ce,Mt as cf,JP as cg,Yoe as ch,qoe as ci,Ln as cj,$u as ck,yt as cl,QT as cm,Moe as cn,i3 as co,GT as cp,a3 as cq,nr as cr,Vs as cs,vl as ct,T5 as cu,O5 as cv,_5 as cw,Zs as cx,Al as cy,pi as cz,kae as d,Jj as d0,kj as d1,Lj as d2,Rj as d3,xoe as d4,Rc as e,Gu as f,is as g,$Y as h,pae as i,hae as j,Uoe as k,Uo as l,rq as m,uJ as n,Eie as o,kp as p,Mae as q,uce as r,we as s,n4 as t,fie as u,Er as v,VY as w,$3 as x,fae as y,bG as z};
|
|
530
|
-
//# sourceMappingURL=index.
|
|
529
|
+
color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,i),i}return s.updateDeps=o=>{r=o},s}function E8(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const jie=(e,t)=>Math.abs(e-t)<=1,Hie=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},S8=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Gie=e=>e,qie=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},Zie=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=o=>{const{width:a,height:c}=o;t({width:Math.round(a),height:Math.round(c)})};if(i(S8(n)),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(o=>{const a=()=>{const c=o[0];if(c!=null&&c.borderBoxSize){const l=c.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(S8(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},I8={passive:!0},T8=typeof window>"u"?!0:"onscrollend"in window,Wie=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const s=e.options.useScrollendEvent&&T8?()=>{}:Hie(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=u=>()=>{const{horizontal:d,isRtl:f}=e.options;i=d?n.scrollLeft*(f&&-1||1):n.scrollTop,s(),t(i,u)},a=o(!0),c=o(!1);c(),n.addEventListener("scroll",a,I8);const l=e.options.useScrollendEvent&&T8;return l&&n.addEventListener("scrollend",c,I8),()=>{n.removeEventListener("scroll",a),l&&n.removeEventListener("scrollend",c)}},Yie=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Jie=(e,{adjustments:t=0,behavior:n},r)=>{var i,s;const o=e+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class Qie{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const o=()=>{this._measureElement(s.target,s)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Gie,rangeExtractor:qie,onChange:()=>{},measureElement:Yie,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=_a(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,s=new Map;for(let o=r-1;o>=0;o--){const a=n[o];if(i.has(a.lane))continue;const c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((o,a)=>o.end===a.end?o.index-a.index:o.end-a.end)[0]:void 0},this.getMeasurementOptions=_a(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,s,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:o}),{key:!1}),this.getMeasurements=_a(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:o},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,c);for(let u=c;u<n;u++){const d=s(u),f=this.options.lanes===1?l[u-1]:this.getFurthestMeasurement(l,u),h=f?f.end+this.options.gap:r+i,m=a.get(d),p=typeof m=="number"?m:this.options.estimateSize(u),y=h+p,v=f?f.lane:u%this.options.lanes;l[u]={index:u,start:h,size:p,end:y,key:d,lane:v}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=_a(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,s)=>this.range=n.length>0&&r>0?Xie({measurements:n,outerSize:r,scrollOffset:i,lanes:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=_a(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,s,o)=>s===null||o===null?[]:n({startIndex:s,endIndex:o,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),s=this.measurementsCache[i];if(!s)return;const o=s.key,a=this.elementsCache.get(o);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const s=this.itemSizeCache.get(i.key)??i.size,o=r-s;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=_a(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let s=0,o=n.length;s<o;s++){const a=n[s],c=r[a];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return E8(r[_I(0,r.length-1,i=>E8(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const s=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+s?"end":"start"),r==="center"?n+=(i-s)/2:r==="end"&&(n-=s);const a=this.getTotalSize()-s;return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const s=this.getSize(),o=this.getScrollOffset();if(r==="auto")if(i.end>=o+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];const a=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,r);if(!s)return;const[o,a]=s;this._scrollToOffset(o,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const l=this.getOffsetForIndex(n,a);if(!l)return;const[u]=l,d=this.getScrollOffset();jie(u,d)||this.scrollToIndex(n,{align:a,behavior:i})}else this.scrollToIndex(n,{align:a,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&s.some(a=>a===null);){const a=r[o];s[a.lane]===null&&(s[a.lane]=a.end),o--}i=Math.max(...s.filter(a=>a!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const _I=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,s=n(i);if(s<r)e=i+1;else if(s>r)t=i-1;else return i}return e>0?e-1:0};function Xie({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,s=c=>e[c].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=_I(0,i,s,n),a=o;if(r===1)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const c=Array(r).fill(0);for(;a<i&&c.some(u=>u<n+t);){const u=e[a];c[u.lane]=u.end,a++}const l=Array(r).fill(n+t);for(;o>=0&&l.some(u=>u>=n);){const u=e[o];l[u.lane]=u.start,o--}o=Math.max(0,o-o%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:o,endIndex:a}}const O8=typeof document<"u"?R.useLayoutEffect:R.useEffect;function Kie(e){const t=R.useReducer(()=>({}),{})[1],n={...e,onChange:(i,s)=>{var o;s?VT(t):t(),(o=e.onChange)==null||o.call(e,i,s)}},[r]=R.useState(()=>new Qie(n));return r.setOptions(n),O8(()=>r._didMount(),[]),O8(()=>r._willUpdate()),r}function ese(e){return Kie({observeElementRect:Zie,observeElementOffset:Wie,scrollToFn:Jie,...e})}function tse(e){const{address:t,chainId:n}=e,[,r]=g3();if(!t)return null;const i=boe(t);function s(a){return()=>{r(a).catch(c=>{console.error("Failed to copy!",c)})}}const o=ee("button",{className:"flex items-center gap-1",onClick:s(t),children:[t,g(we,{className:"inline-block text-gray-600",name:"FilesEarmark",size:16})]});return g(Ks,{content:o,children:ee("span",{className:"flex w-fit cursor-pointer items-center gap-1 rounded-lg bg-gray-100 p-1 text-xs text-slate-100",children:[g(wI,{address:t,chainId:n}),i]})})}function nse(e){const{errors:t}=e,n=!!(t!=null&&t.length),r=n?"text-red-800":"text-green-700",i=n?g(we,{name:"Exclamation",size:16}):g(we,{name:"Check",size:16}),s=n?`Error: ${t[0]}`:"No errors",o=ee("span",{className:_e("flex w-fit items-center rounded-lg border border-gray-200 px-2 py-1 text-xs",r,n&&"cursor-pointer"),children:[i,g("span",{className:_e("inline-block max-w-36 truncate"),children:s})]}),a=t==null?void 0:t.map((c,l)=>ee("p",{className:"text-red-800",children:["Error: ",c]},l));return n?g(Ks,{content:a,children:o}):o}function rse(e){const{operationType:t,operationInput:n}=e,r=g("code",{children:g("pre",{children:JSON.stringify(n,null,2)})});return g(Ks,{content:r,children:ee("span",{className:"flex cursor-pointer items-center gap-2 text-xs",children:[t,g(we,{className:"text-gray-300",name:"Braces",size:16})]})})}function ise(e){const{operationIndex:t,eventId:n,stateHash:r}=e,[,i]=g3(),s=t+1,o=ee("button",{className:"flex items-center gap-1",onClick:a(r),children:["Revision ",s," - Event ID: ",n," - State Hash: ",r,g(we,{className:"inline-block text-gray-600",name:"FilesEarmark",size:16})]});function a(c){return()=>{i(c).catch(l=>{console.error("Failed to copy!",l)})}}return g(Ks,{content:o,children:ee("span",{className:"flex cursor-pointer items-center gap-2 text-xs text-gray-600",children:["Revision ",s,".",g("a",{children:g(we,{className:"cursor-pointer text-slate-100",name:"Ellipsis",size:14})})]})})}function sse(e){const{signatures:t}=e;if(!(t!=null&&t.length))return null;const n=ee("div",{className:"text-xs text-slate-300",children:[g("h3",{className:"mb-2",children:"Signature details:"}),t.map((r,i)=>ee("div",{className:"mb-2 last:mb-0",children:[ee("h4",{children:["Signature #",i+1," -"," ",r.isVerified?"verified":"unverified"]}),g("code",{children:g("pre",{children:JSON.stringify(r,null,2)})})]},r.hash))]});return g(Ks,{content:n,children:ee("span",{className:"flex w-fit cursor-pointer items-center gap-1 rounded-lg border border-gray-200 px-2 py-1",children:[g(ose,{signatures:t})," ",g(we,{className:"text-gray-300",name:"InfoSquare",size:16})]})})}function ose(e){const{signatures:t}=e;if(!(t!=null&&t.length))return null;const n=t.length,r=t.filter(a=>a.isVerified).length,s=`${r}/${n} ${n===1?"signature":"signatures"} verified`;return g("span",{className:`text-xs ${r===0?"text-red-800":r===n?"text-green-700":"text-orange-700"}`,children:s})}function ase(e){const{timestamp:t}=e,n=typeof t=="string"&&!t.includes("-")?parseInt(t):t,r=new Date(n),i=Mf(r,"HH:mm 'UTC'"),s=Mf(r,"eee, dd MMM yyyy HH:mm:ss 'UTC'"),o=g("div",{children:s});return g(Ks,{content:o,children:ee("span",{className:"cursor-pointer text-xs",children:["committed at ",i]})})}function cse(e){return ee("article",{className:"flex items-center justify-between rounded-xl border border-gray-200 bg-white px-4 py-2",children:[ee("div",{className:"flex items-center gap-2",children:[g(ise,{...e}),g(rse,{...e}),g(tse,{...e}),g(ase,{...e})]}),ee("div",{className:"flex items-center gap-1",children:[g(sse,{...e}),g(nse,{...e})]})]})}const lse=FT(cse);function use(e){const{operationIndex:t,skipCount:n}=e,r=t,i=n===1?`${r}`:`${r} - ${r+1-n}`;return ee("article",{className:"grid grid-cols-[1fr,auto,1fr] items-center py-2",children:[g("div",{className:"h-px rounded-full bg-slate-100"}),ee("div",{className:"mx-3 text-xs text-slate-100",children:["[Skipped Revision ",i,"]"]}),g("div",{className:"h-px rounded-full bg-slate-100"})]})}function dse(e){var r,i,s,o,a,c;const t=[],n=new Set;for(const l of e){const u=l.timestamp.split("T")[0];n.has(u)||(n.add(u),t.push({type:"day",height:32,timestamp:u})),t.push({type:"revision",height:46,operationIndex:l.index,eventId:l.id??"EVENT_ID_NOT_FOUND",stateHash:l.hash,operationType:l.type,operationInput:l.input??{},address:(i=(r=l.context)==null?void 0:r.signer)==null?void 0:i.user.address,chainId:(o=(s=l.context)==null?void 0:s.signer)==null?void 0:o.user.chainId,timestamp:l.timestamp,signatures:hse(((c=(a=l.context)==null?void 0:a.signer)==null?void 0:c.signatures)??[]),errors:l.error?[l.error]:void 0}),l.skip>0&&t.push({type:"skip",height:34,operationIndex:l.index,skipCount:l.skip,timestamp:l.timestamp})}return t}function fse(e){const[t,n,r,i]=e;return{signerAddress:t,hash:n,prevStateHash:r,signatureBytes:i,isVerified:!0}}function hse(e){return e==null?void 0:e.map(fse)}function pse(e){const{timestamp:t}=e,n=Mf(t,"MMM dd, yyyy");return ee("h2",{className:"-ml-6 flex items-center gap-1 bg-slate-50 py-2 text-xs text-slate-100",children:[g(we,{name:"Ring",size:16})," Changes on ",n]})}function mse(e){const{localOperations:t,globalOperations:n,scope:r}=e,i=r==="local"?t:n,s=100,o=Rt(()=>dse(i),[i]),[a,c]=ke(0),[l,u]=ke(s),[d,f]=ke(()=>o.slice(0,l)),h=wt(null),m=d.length<o.length,p=ese({count:d.length,getScrollElement:()=>h.current,estimateSize:v=>o[v].height,gap:8});ft(()=>{if(!m)return;const v=Math.floor(a/46),b=s+v;u(C=>b>C?b:C)},[a,m]),ft(()=>{f(o.slice(0,l))},[o,l]);const y=v=>{c(b=>{const C=b+v.deltaY;return C<0?0:C})};return ft(()=>(window.addEventListener("wheel",y),()=>{window.removeEventListener("wheel",y)}),[]),g("div",{className:"border-l border-slate-100",ref:h,style:{height:`${p.getTotalSize()}px`,width:"100%",position:"relative"},children:p.getVirtualItems().map(v=>{const b=d[v.index];return ee("div",{style:{position:"absolute",top:0,left:16,width:"100%",height:`${v.size}px`,transform:`translateY(${v.start}px)`},children:[b.type==="revision"&&Sf(lse,{...b,key:v.key}),b.type==="skip"&&g(use,{...b},v.key),b.type==="day"&&g(pse,{...b},v.key)]},v.index)})})}function Jae(e){const{documentTitle:t,documentId:n,globalOperations:r,localOperations:i,onClose:s,itemsPerPage:o=100}=e,[a,c]=ke("global"),l=Rt(()=>Ur(Zr(a==="global"?r:i)).sort((I,T)=>T.index-I.index),[r,i,a]),{pageItems:u,pages:d,goToPage:f,goToNextPage:h,goToPreviousPage:m,goToFirstPage:p,goToLastPage:y,hiddenNextPages:v,isNextPageAvailable:b,isPreviousPageAvailable:C}=YR(l,{itemsPerPage:o});function x(E){p(),c(E)}const S=l.length>o?g("div",{className:"mt-4 flex w-full justify-end",children:g(HR,{firstPageLabel:"First Page",goToFirstPage:p,goToLastPage:y,goToNextPage:h,goToPage:f,goToPreviousPage:m,hiddenNextPages:v,isNextPageAvailable:b,isPreviousPageAvailable:C,lastPageLabel:"Last Page",nextPageLabel:"Next",pages:d,previousPageLabel:"Previous"})}):g("hr",{className:"h-12 border-none"});return ee(jI,{children:[g(zie,{docId:n,onChangeScope:x,onClose:s,scope:a,title:t}),S,g("div",{className:"mt-4 flex justify-center rounded-md bg-slate-50 p-4",children:l.length>0?g("div",{className:"grid grid-cols-[minmax(min-content,1018px)]",children:g(mse,{globalOperations:a==="global"?u:[],localOperations:a==="local"?u:[],scope:a})}):g("h3",{className:"my-40 text-gray-600",children:"This document has no recorded operations yet."})}),S]})}const _8=e=>{const{item:t,...n}=e;return ee("div",{...Gn(n,"flex h-full flex-row items-center justify-between gap-x-4 px-2"),children:[t.icon,g("div",{className:"text-sm font-semibold text-slate-200",children:t.label})]})},Qae=e=>{const{value:t,onChange:n,placeholder:r,filterLabel:i,filterItems:s,selectedFilter:o,onFilterSelect:a=()=>{},className:c}=e,l=Rt(()=>(s==null?void 0:s.map(h=>({id:h.id,content:g(_8,{item:h})})))??[],[s]),u=s==null?void 0:s.find(h=>h.id===o),d=u?g(_8,{className:"gap-x-1",item:u}):i&&g("div",{className:"mr-2 text-sm font-semibold text-slate-200",children:i});function f(h){n==null||n(h.target.value)}return ee("div",{className:Qe("flex items-center",c),children:[g(we,{className:"mr-3",name:"Search"}),g("input",{className:_e("flex h-[52px] min-w-0 flex-1 items-center rounded-xl border border-gray-200 bg-gray-50 px-4 text-sm text-slate-200 outline-none"),onChange:f,placeholder:r,value:t}),ee(A7,{children:[ee(N7,{className:"ml-3 flex h-full flex-row items-center outline-none",children:[d," ",g(we,{name:"ChevronDown"})]}),g(k7,{className:"rounded-xl border border-gray-100 bg-gray-50 p-2",children:l.map(h=>g(D7,{className:"h-10 cursor-pointer overflow-hidden rounded-lg hover:bg-gray-100",id:h.id,onSelect:()=>a(h.id),children:h.content},h.id))})]})]})},gse=""+new URL("renown-short-hover-BiSLBV7L.png",import.meta.url).href,yse="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAtmSURBVHgB7Z3dbtvmGcefl5LsqHYCq0C6tEUCZ0kDzAFqd0NTYAmweAfr0YD0CrpeQboriH0H6RUsu4ChAYodtCdJD3LQBGttILEBJ4tdJ2uzBoi0yIpsi+S790+ZDkmREilSHySfX6FKpkgliH5+nuf9pKAEkFLO1Bu7VzRNzEuiWfXzglDHSIgZYsYC9b1sCaEeJFZMU66WCnS7XC5vUUwE9Qmk2dndvar+ZpetB5NCxIr6Hr+II1NkgQ7FMeTnHGGygxLhRkGj5agiRRKo3mxeY3EyjkZLR8vl5bCnhxKo2WzOGqb4UpJcCDpH1T+E/wpKY+3gU4XoO0MyCaKyhvVsqifTNNWzVM8y8Hz1rW2pr3ExTDTq+Q3vNPc/lYZ+3S/qwI+iVlDSCJYlZcgDiVqGQdLXJVGTJD47NjV5s9vndP3W6429a8rZpY6LIE6hoB4aMenHMMxgkXqktECBguSBNHhwxMkWiEgt3SRDpbgOukjka8HLxt4VQeaX3uOlIkedrKPr7WjkRWiFv0yXJ/7ecdx7AAWzbsgfnDUPgs1EsWgVykz2QTTaa+melCZqRU1+4C2sO8KJSoe3vAXzZInlyRMoTxAw3MgZXbXEvee6BELdg6EI5zGkLa538gcCRkk1lNzIhXqjseQ8cmiGlbpM2nS+WdA0migViMkvKKx1V00kavr+5OlKRdTw02EEUqnrmvNCBJ1SkQvmvFMsauROQHKmOPHqc/sn6y2/6MMtLsams2X2OgpZhrQM92h6u6OQ5WHadItCliWqSL7quqDAdQ/jpqB5nBDaH6wnv/R1ZKLILS/GBbqEdvdarmP6/pGK5k1f1qg6y8N4gBHevsBSafeKOuSeoqGxPEwAXjcwvUfV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iHqjKZ0HypO8cRITTHPPHXFVBJKuG19JSQzji58amiRR630awygzTLcbgmhLE0KsOA+a7A8TgFcNKZRAZJo/Og8apkkM44fpdcOUq0hhrggkuQhiAjA9bsAdzWjt3nSdpHIYO8R4QWAxPfWNUaDbWqVSqSmVbjvf0E2DGMaJ2VFAy5VKubzV7kiU9K3zTUPnOohx0zLcTphSfIFnSyBd373u7A+Ca7rBUYhpYyh5vLUx0heeLYGsNGa2jbLRdZNrIcYSxxt9BGk3kL7arw+oVqszxYnJTXXocLpesahRqVAgJr/s64YVgZzoGp22BTocTA2KQpzK8ouuxPHKo6qfZVseILwX1Ru7P6jAteA8NqlGrDVNEJMfkLp29933lBWq53n6jbJr27aO6Ry6Jj/xDrBi2gJ3MOYHQzXZ91rezCNrLUGL3nM7BEJ4klL81XWpesBGTmfZB2nLL2BIKnzmTF02vhPKjk2Xb5BJy97jLVUToajiaJQ9rNaW+m7x6MRcPjY1edPvuq6FTb3eXFKKXeu4SCXDYkGzHkz6QdTRffp62pjLR6emloKu7VkZv3zZuCIK4m/O5v3hxQciFVSBjddMeoAsuolWlgwQR9aEKmWmkY26EOpbrzabsyVJt9SfMxt0DlppmmiLhNf4YJZqPLAFQXGMEXW/gVEnmCPWEvITv5qn41yKQFBKY7KCtPoCjx4tL4W9InKIQDQqGOaSENqnxGSEtjj69JHrFeGd4tydvnNMWyS6rMLdVW/HI5MShBoQNejbfsR5/REJcCiTJZKYl4Jm1QfPEjMmyBoWT2AOj+rQ+REzCY2pIzf7lcbJ/wH9VD8KK3ri6QAAAABJRU5ErkJggg==",vse=({onLogin:e})=>{const t=g(xF,{onLogin:e});return g(lb,{content:t,children:ee("div",{className:_e("group/sidebar-footer flex w-full items-baseline justify-start text-sm font-semibold leading-10 text-gray-600",e?"cursor-pointer":"cursor-wait"),children:[g("img",{width:42,height:42,loading:"lazy",className:"group-hover/sidebar-footer:hidden",src:yse,alt:"Renown Login"}),g("img",{width:42,height:42,loading:"lazy",className:"hidden group-hover/sidebar-footer:block",src:gse,alt:"Renown Login Hover"})]})})},bse=({address:e,etherscanUrl:t,onDisconnect:n})=>{const{data:r}=bI({address:e}),s=g(SF,{address:e,username:r,onDisconnect:n,etherscanUrl:t});return g(lb,{content:s,children:g("div",{className:"flex items-center justify-center rounded-sm",children:g(wI,{address:e,size:"40px"})})})},wse=({address:e,className:t,onLogin:n,onClickSettings:r,onDisconnect:i,etherscanUrl:s="",...o})=>ee(qR,{...o,className:_e("flex flex-col gap-2 border-t border-gray-300 px-2 py-4",t),children:[g("div",{children:e?g(bse,{address:e,onDisconnect:i,etherscanUrl:s}):g(vse,{onLogin:n})}),ee("button",{"aria-label":"Settings",type:"button",className:_e("mt-3 flex w-full items-center justify-center outline-none",r?"cursor-pointer":"cursor-wait"),onClick:r,children:[g(we,{className:"text-gray-600",name:"Settings"}),g("span",{className:"hidden text-sm font-semibold leading-6 text-gray-800",children:"Settings"})]})]}),Cse=({onClick:e,className:t,children:n,...r})=>g(GR,{...r,className:_e("flex justify-center gap-4 border-b border-gray-300 py-4",t),children:g("button",{"aria-label":"Home",className:e?"cursor-pointer":"cursor-wait",onClick:e,type:"button",children:g(we,{className:"text-gray-600",name:"ConnectSmall",size:24})})}),Xae=({onClick:e,address:t,headerContent:n,onClickSettings:r,maxWidth:i="304px",minWidth:s="58px",onLogin:o,onDisconnect:a,etherscanUrl:c,...l})=>ee(ZR,{...l,maxWidth:i,minWidth:s,children:[ee(WR,{children:[g(Cse,{onClick:e,children:n}),g("div",{className:"flex flex-col",children:l.children})]}),g(wse,{address:t,onClickSettings:r,onLogin:o,onDisconnect:a,etherscanUrl:c})]}),xse=function(t){const{icon:n,title:r,containerClassName:i,active:s,onClick:o}=t;return g("div",{className:_e("relative flex cursor-pointer flex-col items-center justify-center text-center text-sm text-black",i,s&&"bg-white",o&&"cursor-pointer"),onClick:o,children:g("div",{className:"mx-auto py-4",children:n||g("div",{className:"size-8 items-center justify-center rounded-lg bg-black pt-1",children:g("span",{className:"text-6 w-6 text-white",children:r.slice(0,1).toUpperCase()})})})})},Kae=function(t){const{containerClassName:n,onClick:r}=t;return g(xse,{title:"Create New Drive",icon:g(we,{name:"PlusSquare",size:32}),onClick:r,containerClassName:n})};function pp(e){const{children:t}=e;return g("div",{children:t})}var Mh="Tabs",[Ese,ece]=ss(Mh,[M1]),AI=M1(),[Sse,c9]=Ese(Mh),NI=R.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:o="horizontal",dir:a,activationMode:c="automatic",...l}=e,u=_m(a),[d,f]=Oc({prop:r,onChange:i,defaultProp:s??"",caller:Mh});return g(Sse,{scope:n,baseId:Dn(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:g(yt.div,{dir:u,"data-orientation":o,...l,ref:t})})});NI.displayName=Mh;var kI="TabsList",DI=R.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=c9(kI,n),o=AI(n);return g(zy,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:r,children:g(yt.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});DI.displayName=kI;var RI="TabsTrigger",MI=R.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,o=c9(RI,n),a=AI(n),c=FI(o.baseId,r),l=BI(o.baseId,r),u=r===o.value;return g(jy,{asChild:!0,...a,focusable:!i,active:u,children:g(yt.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...s,ref:t,onMouseDown:Ke(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:Ke(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:Ke(e.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(r)})})})});MI.displayName=RI;var PI="TabsContent",LI=R.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...o}=e,a=c9(PI,n),c=FI(a.baseId,r),l=BI(a.baseId,r),u=r===a.value,d=R.useRef(u);return R.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),g(lr,{present:i||u,children:({present:f})=>g(yt.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&s})})});LI.displayName=PI;function FI(e,t){return`${e}-trigger-${t}`}function BI(e,t){return`${e}-content-${t}`}var Ise=NI,Tse=DI,Ose=MI,_se=LI;function Ase({children:e,defaultValue:t}){return ee(Ise,{defaultValue:t,className:"flex flex-col gap-2",children:[g("div",{className:"flex w-full justify-between",children:g(Tse,{className:"flex w-full gap-x-2 rounded-xl bg-slate-50 p-1 text-sm font-semibold text-gray-600 outline-none",children:Oe.Children.map(e,(n,r)=>{if(!Oe.isValidElement(n))return;const{label:i,disabled:s}=n.props;return g(Ose,{className:"data-[state='active']:tab-shadow ata-disabled:cursor-not-allowed data-disabled:text-gray-400 flex h-7 flex-1 items-center justify-center rounded-lg transition duration-300 data-[state='active']:bg-gray-50 data-[state='active']:text-gray-900",value:i,disabled:s??!1,children:i},i)})})}),g("div",{className:"mt-3 rounded-md bg-white",children:Oe.Children.map(e,(n,r)=>{if(!Oe.isValidElement(n))return;const{label:i}=n.props;return g(_se,{value:i,children:n},r)})})]})}const xu=e=>typeof e=="number"&&!isNaN(e),Ro=e=>typeof e=="string",ir=e=>typeof e=="function",xf=e=>Ro(e)||ir(e)?e:null,Sm=e=>Fa(e)||Ro(e)||ir(e)||xu(e);function Nse(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Ph(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(o){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:d,isIn:f,playToast:h}=o;const m=r?`${t}--${c}`:t,p=r?`${n}--${c}`:n,y=wt(0);return Ec(()=>{const v=d.current,b=m.split(" "),C=x=>{x.target===d.current&&(h(),v.removeEventListener("animationend",C),v.removeEventListener("animationcancel",C),y.current===0&&x.type!=="animationcancel"&&v.classList.remove(...b))};v.classList.add(...b),v.addEventListener("animationend",C),v.addEventListener("animationcancel",C)},[]),ft(()=>{const v=d.current,b=()=>{v.removeEventListener("animationend",b),i?Nse(v,u,s):u()};f||(l?b():(y.current=1,v.className+=` ${p}`,v.addEventListener("animationend",b)))},[f]),Oe.createElement(Oe.Fragment,null,a)}}function A8(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Nn=new Map;let Eu=[];const Im=new Set,kse=e=>Im.forEach(t=>t(e)),$I=()=>Nn.size>0;function VI(e,t){var n;if(t)return!((n=Nn.get(t))==null||!n.isToastActive(e));let r=!1;return Nn.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function UI(e,t){Sm(e)&&($I()||Eu.push({content:e,options:t}),Nn.forEach(n=>{n.buildToast(e,t)}))}function N8(e,t){Nn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Dse(e){const{subscribe:t,getSnapshot:n,setProps:r}=wt(function(s){const o=s.containerId||1;return{subscribe(a){const c=function(u,d,f){let h=1,m=0,p=[],y=[],v=[],b=d;const C=new Map,x=new Set,w=()=>{v=Array.from(C.values()),x.forEach(I=>I())},S=I=>{y=I==null?[]:y.filter(T=>T!==I),w()},E=I=>{const{toastId:T,onOpen:P,updateId:B,children:_}=I.props,F=B==null;I.staleId&&C.delete(I.staleId),C.set(T,I),y=[...y,I.props.toastId].filter(O=>O!==I.staleId),w(),f(A8(I,F?"added":"updated")),F&&ir(P)&&P(Fa(_)&&_.props)};return{id:u,props:b,observe:I=>(x.add(I),()=>x.delete(I)),toggle:(I,T)=>{C.forEach(P=>{T!=null&&T!==P.props.toastId||ir(P.toggle)&&P.toggle(I)})},removeToast:S,toasts:C,clearQueue:()=>{m-=p.length,p=[]},buildToast:(I,T)=>{if((A=>{let{containerId:Y,toastId:z,updateId:U}=A;const le=Y?Y!==u:u!==1,ie=C.has(z)&&U==null;return le||ie})(T))return;const{toastId:P,updateId:B,data:_,staleId:F,delay:O}=T,N=()=>{S(P)},D=B==null;D&&m++;const L={...b,style:b.toastStyle,key:h++,...Object.fromEntries(Object.entries(T).filter(A=>{let[Y,z]=A;return z!=null})),toastId:P,updateId:B,data:_,closeToast:N,isIn:!1,className:xf(T.className||b.toastClassName),bodyClassName:xf(T.bodyClassName||b.bodyClassName),progressClassName:xf(T.progressClassName||b.progressClassName),autoClose:!T.isLoading&&(j=T.autoClose,M=b.autoClose,j===!1||xu(j)&&j>0?j:M),deleteToast(){const A=C.get(P),{onClose:Y,children:z}=A.props;ir(Y)&&Y(Fa(z)&&z.props),f(A8(A,"removed")),C.delete(P),m--,m<0&&(m=0),p.length>0?E(p.shift()):w()}};var j,M;L.closeButton=b.closeButton,T.closeButton===!1||Sm(T.closeButton)?L.closeButton=T.closeButton:T.closeButton===!0&&(L.closeButton=!Sm(b.closeButton)||b.closeButton);let W=I;Fa(I)&&!Ro(I.type)?W=gp(I,{closeToast:N,toastProps:L,data:_}):ir(I)&&(W=I({closeToast:N,toastProps:L,data:_}));const G={content:W,props:L,staleId:F};b.limit&&b.limit>0&&m>b.limit&&D?p.push(G):xu(O)?setTimeout(()=>{E(G)},O):E(G)},setProps(I){b=I},setToggle:(I,T)=>{C.get(I).toggle=T},isToastActive:I=>y.some(T=>T===I),getSnapshot:()=>v}}(o,s,kse);Nn.set(o,c);const l=c.observe(a);return Eu.forEach(u=>UI(u.content,u.options)),Eu=[],()=>{l(),Nn.delete(o)}},setProps(a){var c;(c=Nn.get(o))==null||c.setProps(a)},getSnapshot(){var a;return(a=Nn.get(o))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=J8(t,n,n);return{getToastToRender:function(s){if(!i)return[];const o=new Map;return e.newestOnTop&&i.reverse(),i.forEach(a=>{const{position:c}=a.props;o.has(c)||o.set(c,[]),o.get(c).push(a)}),Array.from(o,a=>s(a[0],a[1]))},isToastActive:VI,count:i==null?void 0:i.length}}function Rse(e){const[t,n]=ke(!1),[r,i]=ke(!1),s=wt(null),o=wt({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:d}=e;var f,h;function m(){n(!0)}function p(){n(!1)}function y(C){const x=s.current;o.canDrag&&x&&(o.didMove=!0,t&&p(),o.delta=e.draggableDirection==="x"?C.clientX-o.start:C.clientY-o.start,o.start!==C.clientX&&(o.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function v(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",v);const C=s.current;if(o.canDrag&&o.didMove&&C){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(h=Nn.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||h.setToggle(f.id,f.fn),ft(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[e.pauseOnFocusLoss]);const b={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){o.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",v);const x=s.current;o.canCloseOnClick=!0,o.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(o.start=C.clientX,o.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(o.start=C.clientY,o.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:x,bottom:w,left:S,right:E}=s.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=S&&C.clientX<=E&&C.clientY>=x&&C.clientY<=w?p():m()}};return a&&c&&(b.onMouseEnter=p,e.stacked||(b.onMouseLeave=m)),d&&(b.onClick=C=>{u&&u(C),o.canCloseOnClick&&l()}),{playToast:m,pauseToast:p,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:b}}function Mse(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:s,className:o,style:a,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:f}=e;const h=s||c&&l===0,m={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(m.transform=`scaleX(${l})`);const p=$r("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),y=ir(o)?o({rtl:u,type:i,defaultClassName:p}):$r(p,o),v={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{d&&r()}};return Oe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},Oe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${i}`}),Oe.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,...v}))}let Pse=1;const zI=()=>""+Pse++;function Lse(e){return e&&(Ro(e.toastId)||xu(e.toastId))?e.toastId:zI()}function kl(e,t){return UI(e,t),t.toastId}function I1(e,t){return{...t,type:t&&t.type||e,toastId:Lse(t)}}function Jd(e){return(t,n)=>kl(t,I1(e,n))}function Pt(e,t){return kl(e,I1("default",t))}Pt.loading=(e,t)=>kl(e,I1("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Pt.promise=function(e,t,n){let r,{pending:i,error:s,success:o}=t;i&&(r=Ro(i)?Pt.loading(i,n):Pt.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,d,f)=>{if(d==null)return void Pt.dismiss(r);const h={type:u,...a,...n,data:f},m=Ro(d)?{render:d}:d;return r?Pt.update(r,{...h,...m}):Pt(m.render,{...h,...m}),f},l=ir(e)?e():e;return l.then(u=>c("success",o,u)).catch(u=>c("error",s,u)),l},Pt.success=Jd("success"),Pt.info=Jd("info"),Pt.error=Jd("error"),Pt.warning=Jd("warning"),Pt.warn=Pt.warning,Pt.dark=(e,t)=>kl(e,I1("default",{theme:"dark",...t})),Pt.dismiss=function(e){(function(t){var n;if($I()){if(t==null||Ro(n=t)||xu(n))Nn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Nn.get(t.containerId);r?r.removeToast(t.id):Nn.forEach(i=>{i.removeToast(t.id)})}}else Eu=Eu.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Pt.clearWaitingQueue=function(e){e===void 0&&(e={}),Nn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Pt.isActive=VI,Pt.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var s;let{containerId:o}=i;return(s=Nn.get(o||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:zI()};s.toastId!==e&&(s.staleId=e);const o=s.render||i;delete s.render,kl(o,s)}},Pt.done=e=>{Pt.update(e,{progress:1})},Pt.onChange=function(e){return Im.add(e),()=>{Im.delete(e)}},Pt.play=e=>N8(!0,e),Pt.pause=e=>N8(!1,e);const Fse=typeof window<"u"?Ec:ft,Qd=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return Oe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},mp={info:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Oe.createElement(Qd,{...e},Oe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Oe.createElement("div",{className:"Toastify__spinner"})}},Bse=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=Rse(e),{closeButton:o,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:d,closeToast:f,transition:h,position:m,className:p,style:y,bodyClassName:v,bodyStyle:b,progressClassName:C,progressStyle:x,updateId:w,role:S,progress:E,rtl:I,toastId:T,deleteToast:P,isIn:B,isLoading:_,closeOnClick:F,theme:O}=e,N=$r("Toastify__toast",`Toastify__toast-theme--${O}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":F}),D=ir(p)?p({rtl:I,position:m,type:u,defaultClassName:N}):$r(N,p),L=function(G){let{theme:A,type:Y,isLoading:z,icon:U}=G,le=null;const ie={theme:A,type:Y};return U===!1||(ir(U)?le=U({...ie,isLoading:z}):Fa(U)?le=gp(U,ie):z?le=mp.spinner():(fe=>fe in mp)(Y)&&(le=mp[Y](ie))),le}(e),j=!!E||!c,M={closeToast:f,type:u,theme:O};let W=null;return o===!1||(W=ir(o)?o(M):Fa(o)?gp(o,M):function(G){let{closeToast:A,theme:Y,ariaLabel:z="close"}=G;return Oe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Y}`,type:"button",onClick:U=>{U.stopPropagation(),A(U)},"aria-label":z},Oe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Oe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(M)),Oe.createElement(h,{isIn:B,done:P,position:m,preventExitTransition:n,nodeRef:r,playToast:s},Oe.createElement("div",{id:T,onClick:l,"data-in":B,className:D,...i,style:y,ref:r},Oe.createElement("div",{...B&&{role:S},className:ir(v)?v({type:u}):$r("Toastify__toast-body",v),style:b},L!=null&&Oe.createElement("div",{className:$r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!_})},L),Oe.createElement("div",null,a)),W,Oe.createElement(Mse,{...w&&!j?{key:`pb-${w}`}:{},rtl:I,theme:O,delay:c,isRunning:t,isIn:B,closeToast:f,hide:d,type:u,style:x,className:C,controlledProgress:j,progress:E||0})))},Lh=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},$se=Ph(Lh("bounce",!0));Ph(Lh("slide",!0));Ph(Lh("zoom"));Ph(Lh("flip"));const Vse={position:"top-right",transition:$se,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Use(e){let t={...Vse,...e};const n=e.stacked,[r,i]=ke(!0),s=wt(null),{getToastToRender:o,isToastActive:a,count:c}=Dse(t),{className:l,style:u,rtl:d,containerId:f}=t;function h(p){const y=$r("Toastify__toast-container",`Toastify__toast-container--${p}`,{"Toastify__toast-container--rtl":d});return ir(l)?l({position:p,rtl:d,defaultClassName:y}):$r(y,xf(l))}function m(){n&&(i(!0),Pt.play())}return Fse(()=>{if(n){var p;const y=s.current.querySelectorAll('[data-in="true"]'),v=12,b=(p=t.position)==null?void 0:p.includes("top");let C=0,x=0;Array.from(y).reverse().forEach((w,S)=>{const E=w;E.classList.add("Toastify__toast--stacked"),S>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=b?"top":"bot");const I=C*(r?.2:1)+(r?0:v*S);E.style.setProperty("--y",`${b?I:-1*I}px`),E.style.setProperty("--g",`${v}`),E.style.setProperty("--s",""+(1-(r?x:0))),C+=E.offsetHeight,x+=.025})}},[r,c,n]),Oe.createElement("div",{ref:s,className:"Toastify",id:f,onMouseEnter:()=>{n&&(i(!1),Pt.pause())},onMouseLeave:m},o((p,y)=>{const v=y.length?{...u}:{...u,pointerEvents:"none"};return Oe.createElement("div",{className:h(p),style:v,key:`container-${p}`},y.map(b=>{let{content:C,props:x}=b;return Oe.createElement(Bse,{...x,stacked:n,collapseAll:m,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},C)}))}))}function zse(e){return e==="connect-success"||e==="connect-warning"||e==="connect-loading"||e==="connect-deleted"}function jse(e){if(zse(e)){const t={};switch(e){case"connect-success":t.type="success",t.icon=g(we,{className:"text-green-800",name:"CheckCircleFill",size:24});break;case"connect-warning":t.type="warning",t.icon=g(we,{className:"text-gray-600",name:"WarningFill",size:24});break;case"connect-loading":t.type="default",t.icon=g(we,{className:"text-gray-600",name:"ClockFill",size:24});break;case"connect-deleted":t.type="error",t.icon=g(we,{className:"text-red-800",name:"TrashFill",size:24});break}return t}return{type:e}}function tce(e,t){const{type:n="default",...r}=t||{},i=jse(n);return Pt(e,{...i,...r})}const Hse=({closeToast:e})=>g("button",{className:"flex items-center text-gray-500 hover:text-gray-600",onClick:e,children:g(we,{name:"XmarkLight",size:16})}),nce=e=>g(Use,{closeButton:Hse,...e}),Gse=Qs(function(t,n){return ee("label",{className:"relative cursor-pointer items-center",htmlFor:t.id,children:[g("input",{className:"peer sr-only",ref:n,type:"checkbox",value:"",...t}),g("div",{className:"peer h-6 w-11 rounded-full bg-gray-500 after:absolute after:start-0.5 after:top-0.5 after:size-5 after:rounded-full after:border after:border-none after:bg-gray-50 after:transition-all peer-checked:bg-blue-900 peer-checked:after:translate-x-full peer-focus:outline-none"})]})});function Ks(e){const{children:t,content:n,open:r,defaultOpen:i,onOpenChange:s,className:o,side:a="top",sideOffset:c=5,delayDuration:l,...u}=e;return ee(gv,{defaultOpen:i,delayDuration:l,onOpenChange:s,open:r,children:[g(yv,{asChild:!0,children:t}),g(vv,{children:g(bv,{...u,side:a,sideOffset:c,className:_e("shadow-tooltip rounded-lg border border-gray-200 bg-white p-2 text-xs",o),children:n})})]})}const jI=Pf,HI="powerhouse/budget-statement",l9="powerhouse/default",GI="makerdao/rwa-portfolio",qse=[HI,l9,GI],Tm="SWITCHBOARD",qI="LOCAL",ZI="CLOUD",Fh="PUBLIC",Zse="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAB4CAYAAAAXIRdAAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzWSURBVHgB7V1dbBXHFZ5d/wI1WMhuVBUJq1GlAg9QlZSngNU2D9BIreoYGikKUdVKjaoSklSRWol4TdWmUgs0SFVTVaqUELUKhDTlIUFqiDA8lKQ8QCvMS5PaVRAN14kMjrGN7TuZb5izPne89/r+7HrXvvNJ17s7O3v3er89Z845M3PGE+XDw58j372+Pi8bv+3n5WZV0i2l1y6EbBfLFNKT/U8fvycQGYFXznkppTi8O7fXF95eKWS3qDN4irQnM0LaPMIUOWGZ53ni0O7r3Z5o+JOQokvUMYyk9dOhSAkFhHGyfvXg/9pbVq7oU7tP8DotqzzRsb5R3Lu1Sazb2CTaOnxdtpxw9OGPI8st0nSRWGT4dgGk6je7P+xSZL0tGFkgZVvPCvHY8+2i50Cb2LKzVRHXsOzIKgVPen1HdufwEosgCPCPL/o/79n7v+79f1eD57/NVeCWnS2KrJV1Q04xCSOol7p//ysd/Xi5LSQucY1Qg3Tj57453G6Ttf3RlVqaHOagnlnf4T03sNtvnfJgoKnnmRhxPn9LdJvFyHrgh6scWUUA9Xho94d988rN8+T2QJwI27BDvTf2CtZmQbI27GgRDsURRRokTGjeIGzxkxYSpl6M8MYbtrc4ySoTNmlcwrAfN2masMMPXX+MVOHqTl9se2iFcCg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YbHbwFYwkkp2k/uvi6XhXWqSYWUCfovuE95GQpV3j66SlhmyBX6RgaGkrcv0XjFBG4oS0MfempB+c6vg7lK0LCI3TB/L4Deu4Ul0sC0sEfbB0gjF2uIUudnfjPZ9OPPnz2ilaXzHRZO2uFSqJTrY54qTLo2JZt+/3FmU9mox7bnimULr0O0V/+CHLqpv4RSZLYpye8Ml63P4Powms1ZCmMfy43fOfk3U2WLHbvbRcLvvOyRbEzggoZjMxJzSay/MrXZrvuL3/lH+qZ6LJPx6bNMP/4HpDf3qO3XUvj+2mzL1zwa9Kud4/Rfj3XNoqVft61KAzYSsqqorcug2CaoRRw9ZPZ2Z6Oly+N436WZfE/7X4X8aPJouQND05OTgr8wzfE7GPob+kDQumM5b9fgA0vHIfyn04BqIZUfnBNP01kefRy99Ne/Jq067P+Zj3XNvpa6ef1//2j/+l7UX7p1/relNQ94mThPfw/zH13n8q5XAKo1B6V3zPHUx8Ksja8KOKyCM+80U1+caTn0IaodIJbW0BdGL89Lw//fFqM0gFKkskdklUhWUQetV8Etx3TYT0fyGjM036gu7tbjI6OyrmB/QejKHmOByQBi4Gq0ZwQZ/tvylc5Qei51L1MUtwf1xBTJ/Rx0rSF0YfoncwTvwSzcdzGL0fyLn3zoc77RPIjEcHeKIJORWCnOt0B6xMz6uZ8rNzemJwXV6fl7N8eUs0JPeSuioFwx9KTdS01JwxBJH4JoOdEKaNKcdAAAAAASUVORK5CYII=",k8={[HI]:Zse,[l9]:Yse,[GI]:Wse},Jse="DRIVE",rce="FOLDER",Qse="FILE",WI="WRITE",Fs="READ",YI="UI_NODE",ld="DUPLICATE",ud="RENAME",dd="DELETE",Xse="SETTINGS",Kse="REMOVE_TRIGGER",eoe="ADD_TRIGGER",toe="ADD_INVALID_TRIGGER",noe=[ud,dd,ld],roe=[ud,dd,ld],ioe=[{value:qI,icon:g(we,{name:"Lock"}),description:"Only available to you"},{value:ZI,icon:g(we,{name:"People"}),description:"Only available to people in this drive"},{value:Fh,icon:g(we,{name:"Globe"}),description:"Available to everyone",disabled:!0}],soe={CLOUD:{title:"Secure cloud",description:"End to end encryption between members.",icon:g(we,{name:"Lock"})},LOCAL:{title:"Local",description:"Private and only available to you.",icon:g(we,{name:"Hdd"})},SWITCHBOARD:{title:"Switchboard",description:"Public and available to everyone.",icon:g(we,{name:"Drive"})}},ooe={[eoe]:{label:"Add Trigger",icon:g(we,{className:"text-orange-900",name:"Plus"})},[Kse]:{label:"Remove Trigger",icon:g(we,{className:"text-orange-900",name:"Xmark"})},[toe]:{label:"Add Trigger",icon:g(we,{className:"text-orange-900",name:"Exclamation"})}},aoe={[ld]:{label:"Duplicate",icon:g(we,{name:"FilesEarmark"})},[ud]:{label:"Rename",icon:g(we,{name:"Pencil"})},[dd]:{label:"Delete",icon:g(we,{name:"Trash"}),className:"text-red-900"},[Xse]:{label:"Settings",icon:g(we,{name:"Gear"})}},JI={...ooe,...aoe},D8="SYNCING",R8="SUCCESS",M8="CONFLICT",P8="MISSING",L8="ERROR",F8="INITIAL_SYNC",coe={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},loe={block:HQ({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const i=xh(r);return i.typeHex==="0x7e"&&(i.isSystemTx=r.isSystemTx,i.mint=r.mint?An(r.mint):void 0,i.sourceHash=r.sourceHash,i.type="deposit"),i}),stateRoot:e.stateRoot}}}),transaction:zQ({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?An(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:jee({format(e){return{l1GasPrice:e.l1GasPrice?An(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?An(e.l1GasUsed):null,l1Fee:e.l1Fee?An(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function uoe(e,t){return hoe(e)?foe(e):Hte(e,t)}const doe={transaction:uoe};function foe(e){poe(e);const{sourceHash:t,data:n,from:r,gas:i,isSystemTx:s,mint:o,to:a,value:c}=e,l=[t,r,a??"0x",o?it(o):"0x",c?it(c):"0x",i?it(i):"0x",s?"0x1":"0x",n??"0x"];return ti(["0x7e",Ys(l)])}function hoe(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function poe(e){const{from:t,to:n}=e;if(t&&!ln(t))throw new Fn({address:t});if(n&&!ln(n))throw new Fn({address:n})}const T1={contracts:coe,formatters:loe,serializers:doe},ice=$c({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),ll=1,sce=$c({...T1,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...T1.contracts,disputeGameFactory:{[ll]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[ll]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[ll]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[ll]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:ll}),oce=$c({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),B8=$c({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),ul=1,ace=$c({...T1,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...T1.contracts,disputeGameFactory:{[ul]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[ul]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[ul]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[ul]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:ul}),cce=$c({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),moe=bre({chains:[B8],transports:{[B8.id]:jne()}}),goe=new zre;function lce(e){const{children:t,wagmiProviderProps:n,queryClientProviderProps:r}=e,{config:i=moe,...s}=n??{},{client:o=goe,...a}=r??{};return g(xre,{config:i,...s,children:g(Kre,{client:o,...a,children:t})})}function QI(e){const{uiNode:t}=e,[n,r]=ke(!1),i=Fe(a=>{a.dataTransfer.setData(YI,JSON.stringify(t))},[t]),s=Fe(()=>{r(!1)},[]),o=!!t&&t.kind!==Jse;return Rt(()=>({isDragging:n,dragProps:o?{draggable:!0,onDragStart:i,onDragEnd:s}:{draggable:!1,onDragStart:void 0,onDragEnd:void 0}}),[o,n,s,i])}function yoe(e){const{uiNode:t,onAddFile:n,onCopyNode:r,onMoveNode:i}=e,[s,o]=ke(!1),a=!!t&&t.kind!==Qse,c=Fe(d=>{d.preventDefault(),o(!0)},[]),l=Fe(()=>{o(!1)},[]),u=Fe(async d=>{if(d.preventDefault(),d.stopPropagation(),!t)return;const f=voe(d.dataTransfer.items).filter(Boolean);if(f.length)for(const h of f)h&&await n(h,t);else{const h=d.getModifierState("Alt"),m=d.dataTransfer.getData(YI),p=JSON.parse(m);h?await r(p,t):await i(p,t)}o(!1)},[n,r,i,t]);return Rt(()=>({isDropTarget:s,dropProps:a?{onDragOver:c,onDragLeave:l,onDrop:u}:{onDragOver:void 0,onDragLeave:void 0,onDrop:void 0}}),[a,s,l,c,u])}function voe(e){return Array.from(e).map(n=>n.kind==="file"?n.getAsFile():null).filter(Boolean)}function boe(e){return`${e.slice(0,7)}...${e.slice(-5)}`}function woe(e,t){return t||(qse.includes(e)?k8[e]:k8[l9])}const Coe={},xoe=Object.freeze(Object.defineProperty({__proto__:null,default:Coe},Symbol.toStringTag,{value:"Module"})),uce=HT(xoe);export{Boe as $,TF as A,wG as B,Xae as C,CG as D,Sr as E,Doe as F,ese as G,Pae as H,aae as I,Dae as J,Zn as K,rce as L,Qse as M,_e as N,Rae as O,lae as P,Kre as Q,co as R,Qae as S,nce as T,yae as U,gae as V,lce as W,cJ as X,vae as Y,yoe as Z,X8 as _,zre as a,z3 as a$,gf as a0,Foe as a1,zoe as a2,zz as a3,jz as a4,joe as a5,Jae as a6,XG as a7,uae as a8,mae as a9,Uae as aA,Yae as aB,$ae as aC,Lae as aD,gx as aE,Fae as aF,Bae as aG,zae as aH,Hae as aI,Gae as aJ,qae as aK,Zae as aL,Wae as aM,OI as aN,Vae as aO,os as aP,Voe as aQ,cd as aR,dae as aS,LY as aT,Joe as aU,u4 as aV,oae as aW,pU as aX,aq as aY,Ex as aZ,zY as a_,xse as aa,Kae as ab,qI as ac,R8 as ad,M8 as ae,L8 as af,Jse as ag,Fh as ah,tce as ai,Zoe as aj,Poe as ak,oY as al,Fi as am,iae as an,HT as ao,lS as ap,cS as aq,Aae as ar,B8 as as,cce as at,oce as au,ice as av,sce as aw,ace as ax,jne as ay,$oe as az,gI as b,Ce as b$,Iw as b0,Ew as b1,rj as b2,c2 as b3,po as b4,sC as b5,wr as b6,FG as b7,Xw as b8,c1 as b9,Qq as bA,Kq as bB,Ws as bC,xr as bD,Ft as bE,p2 as bF,cr as bG,ja as bH,tn as bI,m2 as bJ,Yn as bK,Wl as bL,cs as bM,$C as bN,ts as bO,bn as bP,_n as bQ,Nt as bR,dt as bS,Wq as bT,AC as bU,yc as bV,QC as bW,K as bX,Pe as bY,Hl as bZ,pe as b_,Kw as ba,eC as bb,tC as bc,rC as bd,G3 as be,cae as bf,HG as bg,qG as bh,cC as bi,LG as bj,uC as bk,Kn as bl,WG as bm,Qoe as bn,ZI as bo,eq as bp,rt as bq,jae as br,$r as bs,Xoe as bt,xW as bu,Lt as bv,BC as bw,rr as bx,Zt as by,Xq as bz,vn as c,qj as c$,O3 as c0,rz as c1,t2 as c2,Goe as c3,br as c4,s5 as c5,MW as c6,rae as c7,RW as c8,IC as c9,Koe as cA,S5 as cB,Xe as cC,LZ as cD,wZ as cE,nae as cF,rZ as cG,tae as cH,Woe as cI,Ise as cJ,Tse as cK,Ose as cL,_se as cM,mj as cN,gj as cO,vj as cP,yj as cQ,bj as cR,wj as cS,Xj as cT,Kj as cU,Tj as cV,Oj as cW,Aj as cX,zj as cY,jj as cZ,Gj as c_,eae as ca,s1 as cb,uh as cc,Vt as cd,Me as ce,Mt as cf,JP as cg,Yoe as ch,qoe as ci,Ln as cj,$u as ck,yt as cl,QT as cm,Moe as cn,i3 as co,GT as cp,a3 as cq,nr as cr,Vs as cs,vl as ct,T5 as cu,O5 as cv,_5 as cw,Zs as cx,Al as cy,pi as cz,kae as d,Jj as d0,kj as d1,Lj as d2,Rj as d3,xoe as d4,Rc as e,Gu as f,is as g,$Y as h,pae as i,hae as j,Uoe as k,Uo as l,rq as m,uJ as n,Eie as o,kp as p,Mae as q,uce as r,we as s,n4 as t,fie as u,Er as v,VY as w,$3 as x,fae as y,bG as z};
|
|
530
|
+
//# sourceMappingURL=index.Dc5HlSvp.js.map
|