import{ar as n,a as o,__tla as __tla_0}from"./_virtual_wxt-plugins-D2Qy6pl9.js";import{v as a,__tla as __tla_1}from"./UnlockedWallet-B6hSmM5s.js";let f;let __tla=Promise.all([(()=>{try{return __tla_0}catch{}})(),(()=>{try{return __tla_1}catch{}})()]).then(async()=>{f=async function(t){try{const r=await (t.fetcher??fetch)(t.indexerUrl,{method:"POST",headers:{"Content-Type":"application/json"},signal:AbortSignal.timeout(t.timeoutMs??1e4),body:JSON.stringify({query:`query ${t.operationName}($address: HexEncoded!) { contractAction(address: $address) { state } }`,variables:{address:n(t.contractAddress)}})});if(!r.ok)return null;const e=(await r.json())?.data?.contractAction?.state;return typeof e!="string"||e.length===0?null:o.deserialize(a(e))}catch{return null}}});export{f,__tla};