@dcl/shop 0.1.0-28703787617.commit-d117df8 → 0.1.0-28703788813.commit-38f95a2
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/assets/{Assets-FLrOHysp.js → Assets-DdgLHN4p.js} +1 -1
- package/assets/{Cart-74G7u3M0.js → Cart-onyW4R6P.js} +1 -1
- package/assets/Collection-BEbDkwT3.js +1 -0
- package/assets/Creator-CWgCCYGl.js +1 -0
- package/assets/{ExchangeController-D7DGcIN0.js → ExchangeController-Cgb-2Fos.js} +1 -1
- package/assets/GetCredits-BkBRYCcD.js +2 -0
- package/assets/{HelpersUtil-CWaTGhBJ.js → HelpersUtil-CAk3juHE.js} +1 -1
- package/assets/{ImportListings-DT4n0cu0.js → ImportListings-DY_eMBQh.js} +1 -1
- package/assets/ItemDetail-B0g1lScc.js +1 -0
- package/assets/{Market-DahFqRly.js → Market-rMIDWdBN.js} +1 -1
- package/assets/{MyAssets-QhQumAsS.js → MyAssets-DOTmxtyz.js} +1 -1
- package/assets/{MyFavorites-CU6la9k8.js → MyFavorites-BeQsMCjM.js} +1 -1
- package/assets/{MyPurchases-BNqJ6kya.js → MyPurchases-csO67vHt.js} +1 -1
- package/assets/{RealCheckout-DyqEWKbw.js → RealCheckout-BbWlFdXI.js} +1 -1
- package/assets/{Success-ytt79-xY.js → Success-ClCid1kN.js} +1 -1
- package/assets/{SwapController-BAvEAFso.js → SwapController-DUuI6h4m.js} +1 -1
- package/assets/{TradeService-DqHp35f0.js → TradeService-CtNhI_RK.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-C9eN6p7c.js → W3MFrameProviderSingleton-DdglCcve.js} +3 -3
- package/assets/{WebCryptoP256-DMw8pfkw.js → WebCryptoP256-BJKptYpF.js} +1 -1
- package/assets/{basic-O8asjnC_.js → basic-CcwQYDRf.js} +1 -1
- package/assets/{biconomy-DRAo41DQ.js → biconomy-RMpv7ejh.js} +1 -1
- package/assets/{buy-DdbFtykN.js → buy-CuXdld5J.js} +1 -1
- package/assets/{buy-gasless-KC8nGxjE.js → buy-gasless-9V3tqj6f.js} +1 -1
- package/assets/{ccip-CiM7ro0m.js → ccip-DGdl3VL6.js} +1 -1
- package/assets/{ccip-BJ7oys_I.js → ccip-KbhVKc8F.js} +1 -1
- package/assets/{controller-DFV5C_Bj.js → controller-CcApQcte.js} +2 -2
- package/assets/{core-DoHB-Fsq.js → core-CMVFFtEN.js} +4 -4
- package/assets/{custom-CHMO6DAH.js → custom-BrSTU20K.js} +1 -1
- package/assets/{data-capture-C0KcKXM2.js → data-capture-_hnhzVRo.js} +1 -1
- package/assets/decimals-BO1bAY7W.js +1 -0
- package/assets/{decimals-D2DxCA74.js → decimals-DNUEULOh.js} +1 -1
- package/assets/{detectExtension-BgXbwH_B.js → detectExtension-BIJvMrw7.js} +1 -1
- package/assets/{email-BCwmDy2I.js → email-ByBgiZw3.js} +1 -1
- package/assets/{embedded-wallet-Bt4p5ewN.js → embedded-wallet-DISQrWqQ.js} +1 -1
- package/assets/{engine-B9SUxJLQ.js → engine-DIqn0zIN.js} +1 -1
- package/assets/{estimate-l1-fee-DBKkdttH.js → estimate-l1-fee-BkJh8a5A.js} +1 -1
- package/assets/{eth_estimateGas-CgtMLqRU.js → eth_estimateGas-BYel3Vct.js} +1 -1
- package/assets/{eth_getStorageAt-DOrCpfo7.js → eth_getStorageAt-SXSlQYRp.js} +1 -1
- package/assets/{eth_getTransactionCount-C5pT27ll.js → eth_getTransactionCount-BEJivD9N.js} +1 -1
- package/assets/{extractIPFS-BOd_GXbf.js → extractIPFS-BQy4J98X.js} +1 -1
- package/assets/{features-NGIu4mkR.js → features-SQwSdvgJ.js} +1 -1
- package/assets/{fetchTokenMetadata-CkXgTWUT.js → fetchTokenMetadata-CsDG-zIE.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-DphiBsfW.js → get-ecosystem-wallet-info-2oaZKrnY.js} +1 -1
- package/assets/{getBalance-CsoixpqV.js → getBalance-CwnUZ2BD.js} +1 -1
- package/assets/{getInstalledModules-BYiXEbWK.js → getInstalledModules-CWH5VtVy.js} +1 -1
- package/assets/{getNFT-YvHp8dfS.js → getNFT-BZWXDU-6.js} +1 -1
- package/assets/{getNFT-Bylv_Kez.js → getNFT-M6s74hrg.js} +2 -2
- package/assets/{hashTypedData-EVHZYlMo.js → hashTypedData-GzPvk7xU.js} +1 -1
- package/assets/{hashTypedData-COanhsEe.js → hashTypedData-QBd15jIl.js} +1 -1
- package/assets/{import-D0C6XMTV.js → import-CRz8iN1a.js} +1 -1
- package/assets/{in-app-wallet-calls-Drs5geFM.js → in-app-wallet-calls-2Tmoec2E.js} +1 -1
- package/assets/{index-BkOpRLMc.js → index--mkcA6OF.js} +1 -1
- package/assets/{index-CmK1m9NK.js → index-0jVpCjPO.js} +3 -3
- package/assets/{index-2H94zSx1.js → index-9MlDS0NX.js} +7 -7
- package/assets/{index-DN4ZXuvL.js → index-9u5dIWpc.js} +1 -1
- package/assets/{index-B4sUKZKp.js → index-B1FXz16s.js} +1 -1
- package/assets/{index-w8EkaS6t.js → index-B3AooTN3.js} +1 -1
- package/assets/{index-Cmy99N4f.js → index-BFtfwyme.js} +1 -1
- package/assets/{index--Vhvv8yH.js → index-BIy5wIe5.js} +1 -1
- package/assets/{index-48EHi-ha.js → index-BRqIRGSe.js} +2 -2
- package/assets/{index-D8nMMSJq.js → index-BSCiVlI-.js} +1 -1
- package/assets/{index-BzWM88M9.js → index-BSwtUUbj.js} +1 -1
- package/assets/{index-6zaqIgnj.js → index-BVgRmCgj.js} +1 -1
- package/assets/{index-DUMku6a-.js → index-BXaBoUg9.js} +1 -1
- package/assets/{index-C1uMNxxv.js → index-BhVGRIoa.js} +1 -1
- package/assets/{index-Bs2y7HT-.js → index-BoocYqdC.js} +1 -1
- package/assets/{index-BNNismVl.js → index-BpdAhMUH.js} +1 -1
- package/assets/{index-DEeUUTUO.js → index-BruibFAX.js} +1 -1
- package/assets/{index-Co35w_CM.js → index-BweUxQAq.js} +1 -1
- package/assets/{index-Cai7byJp.js → index-BxUnm4zs.js} +3 -3
- package/assets/{index-BLNMzhpw.js → index-C0HbHZho.js} +1 -1
- package/assets/{index-BplHQIa9.js → index-C1UH3Ou4.js} +1 -1
- package/assets/{index-B3EyEzJm.js → index-CBxG_uWU.js} +1 -1
- package/assets/{index-D1ZA4_ZB.js → index-CC1-iho0.js} +1 -1
- package/assets/{index-BRKGO65_.js → index-CDpJvhbn.js} +1 -1
- package/assets/{index-DK0GKs7C.js → index-CNNidxl3.js} +1 -1
- package/assets/{index-DHapZH9R.js → index-CQ6tNFyB.js} +1 -1
- package/assets/{index-CR1VOdeC.js → index-CdMRLSY-.js} +1 -1
- package/assets/{index-B5_18Sy2.js → index-CeAbQpe4.js} +1 -1
- package/assets/{index-CfFGLMLx.js → index-CgddP45N.js} +1 -1
- package/assets/{index-BicpyvoP.js → index-Cnqa_v7u.js} +1 -1
- package/assets/{index-DE61TJeV.js → index-Cw18W77U.js} +1 -1
- package/assets/{index-CWIz0pK9.js → index-D-iuF6_l.js} +1 -1
- package/assets/{index-DVCPdKkJ.js → index-D4ZuEeTk.js} +1 -1
- package/assets/{index-B1w_z5D2.js → index-DDqWSuQU.js} +1 -1
- package/assets/{index-MxzGamB6.js → index-DHBNDbnV.js} +13 -13
- package/assets/{index-CuCnO4yR.js → index-DLTGOpNK.js} +1 -1
- package/assets/{index-Bjv1adIg.js → index-DLTOW-AR.js} +1 -1
- package/assets/{index-DGaYORdB.js → index-DOwdLgef.js} +1 -1
- package/assets/{index-Dl9W3POH.js → index-DimIoNlz.js} +1 -1
- package/assets/{index-DblYPgYx.js → index-DuMmMdCA.js} +1 -1
- package/assets/{index-Cb1dH7Tg.js → index-DxCGKEWW.js} +1 -1
- package/assets/{index-DuKV08mq.js → index-DxybH5Ro.js} +1 -1
- package/assets/{index-C4zSCX_Z.js → index-F4AdEAYg.js} +1 -1
- package/assets/{index-BirCCUh-.js → index-UblE4wU4.js} +1 -1
- package/assets/{index-BTiODZa8.js → index-bqHOTJQj.js} +1 -1
- package/assets/{index-BP1uw9cy.js → index-gjW40owK.js} +1 -1
- package/assets/{index-Bh15xqDM.js → index-hzgqWxIY.js} +2 -2
- package/assets/{index-DLMdWJlR.js → index-mqmDAPng.js} +1 -1
- package/assets/{index-Cly18UAC.js → index-rVgdZ3Eo.js} +1 -1
- package/assets/{index-Biyjc0Ff.js → index-ry_7S1pv.js} +1 -1
- package/assets/{index-DsKgUXPz.js → index-uF27IY_4.js} +2 -2
- package/assets/{index.es-BClJ76hs.js → index.es-CCbadZ01.js} +4 -4
- package/assets/{index.es-DUW0sNV5.js → index.es-GV8mPCe5.js} +1 -1
- package/assets/{index.es-DDd1J_nF.js → index.es-xgYjIRgR.js} +1 -1
- package/assets/{localBatchGatewayRequest-BEscwULf.js → localBatchGatewayRequest-Cw1MGDr7.js} +1 -1
- package/assets/mana-rate-hae3YfDF.js +1 -0
- package/assets/network-afam9Iay.js +1 -0
- package/assets/{networks-D5LcG5gv.js → networks-D129vheF.js} +1 -1
- package/assets/{onramp-DzxiiMC8.js → onramp-BvH75pw9.js} +1 -1
- package/assets/{openzeppelin-BCsPynaY.js → openzeppelin-CH99XBeZ.js} +1 -1
- package/assets/{ownerOf-DwzcsL2q.js → ownerOf-NRoVZ33r.js} +1 -1
- package/assets/{parseNft-CzLvm9ef.js → parseNft-Dm7nmQl4.js} +2 -2
- package/assets/{parseSignature-CinRawwX.js → parseSignature-DT9uhIVC.js} +1 -1
- package/assets/{parseSignature-B4doFBao.js → parseSignature-jLOqoRkf.js} +3 -3
- package/assets/{pay-with-exchange-tMWgDDnR.js → pay-with-exchange-fABFLOA2.js} +1 -1
- package/assets/{qr-overlay-C94LVOqT.js → qr-overlay-CuirJDWd.js} +1 -1
- package/assets/{receive-B0FD5_ig.js → receive-xbYDznE1.js} +1 -1
- package/assets/{resolveImplementation-C9bzQXlL.js → resolveImplementation-DKsvroX0.js} +1 -1
- package/assets/{rpc-CUaqpDHe.js → rpc-DZpOnfyo.js} +1 -1
- package/assets/{secp256k1-BmWwfDR7.js → secp256k1-CJoeVdbb.js} +1 -1
- package/assets/{secp256k1-BLKhahcf.js → secp256k1-C_G1yKhv.js} +1 -1
- package/assets/{secp256k1-GlWdSmTG.js → secp256k1-DVXxU7Aq.js} +1 -1
- package/assets/{send-vszzHyZQ.js → send-CnnTvccZ.js} +1 -1
- package/assets/{send-batch-transaction-D42bEH3M.js → send-batch-transaction-DzhaQbgk.js} +1 -1
- package/assets/{send-eip712-transaction-DHldBunY.js → send-eip712-transaction-CrKdQONJ.js} +2 -2
- package/assets/{send-gasless-transaction-DAsf2gzP.js → send-gasless-transaction-CzZshQjn.js} +2 -2
- package/assets/{sendRawTransaction-BJNSpFJo.js → sendRawTransaction-DMNQstjs.js} +3 -3
- package/assets/{serializeTransaction-Cu2FW0RG.js → serializeTransaction-CzZEhSoE.js} +1 -1
- package/assets/{session-proposal-CM8vBqao.js → session-proposal-DZVHuPlP.js} +1 -1
- package/assets/{session-request-CUSobHcI.js → session-request-D-DkcFdt.js} +2 -2
- package/assets/{sha256-jSuq_fL-.js → sha256-CuNUlnJl.js} +1 -1
- package/assets/{signing-BhKuxj3M.js → signing-gIRxihsu.js} +4 -4
- package/assets/{socials-C7Mn2teg.js → socials-DpO0X8DW.js} +1 -1
- package/assets/{swaps-B3b3BPhb.js → swaps-Dtr0SBms.js} +1 -1
- package/assets/{thirdweb-CCaFaDhE.js → thirdweb-DyKBeTNR.js} +3 -3
- package/assets/{totalSupply-Dx-7-6sN.js → totalSupply-DUnATfzr.js} +1 -1
- package/assets/{transactionReceipt-CJdji8HT.js → transactionReceipt-CA8qEQY0.js} +1 -1
- package/assets/{transactions-BtFsRzN5.js → transactions-COaeNTzw.js} +1 -1
- package/assets/{verifyHash-Bah8UUrJ.js → verifyHash-Dn1rHH9h.js} +1 -1
- package/assets/{w3m-modal-Dy2dzDqd.js → w3m-modal-CfFxTBSu.js} +1 -1
- package/assets/{w3m-modal-DmKuKuqr.js → w3m-modal-DcV41K6L.js} +1 -1
- package/assets/{wait-for-tx-receipt-YXpaJpa1.js → wait-for-tx-receipt-DA22QWGo.js} +1 -1
- package/assets/{wallet-kind-B3ypFsr7.js → wallet-kind-C3GUJMOe.js} +1 -1
- package/assets/{wallets-lynKKcfc.js → wallets-4lZrdCtI.js} +6 -6
- package/assets/{web-connector-CRAHa7Tf.js → web-connector-DAjh_JkP.js} +3 -3
- package/assets/{writeContract-Bvo9In1F.js → writeContract-CITYPGU4.js} +1 -1
- package/assets/{zoraTestnet-0zqjhwdj.js → zoraTestnet-BdK0bmvK.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/Collection-AO4XdOKU.js +0 -1
- package/assets/Creator-8VyZOUv7.js +0 -1
- package/assets/GetCredits-BQyEYRN1.js +0 -2
- package/assets/ItemDetail-Dxzb-zAN.js +0 -1
- package/assets/collections-F5S4KOPA.js +0 -1
- package/assets/decimals-BF3lya9z.js +0 -1
- package/assets/mana-rate-WQsbGubC.js +0 -1
- package/assets/network-DkdfbH4K.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PhArrowCircleDown-B305t-Sh.js","assets/property-C9JG5tag.js","assets/PhArrowClockwise-CJPxQhr_.js","assets/PhArrowDown-C4hT9BVu.js","assets/PhArrowLeft-Way4Cu-r.js","assets/PhArrowRight-Cp5ZME0F.js","assets/PhArrowSquareOut-NnrK69c5.js","assets/PhArrowsDownUp-BjBI4ckC.js","assets/PhArrowsLeftRight-CuLpbKRk.js","assets/PhArrowUp-Dph6j8rm.js","assets/PhArrowUpRight-BpJjRRRh.js","assets/PhArrowsClockwise-CFUT8X7R.js","assets/PhBank-Dchr4XQJ.js","assets/PhBrowser-dUu2TrC1.js","assets/PhCaretDown-78IuKU3V.js","assets/PhCaretLeft-_aiyH7n1.js","assets/PhCaretRight-8zJQEuDX.js","assets/PhCaretUp-CiCxKWwN.js","assets/PhCheck-CcADx8br.js","assets/PhCircleHalf-BYzSzd2h.js","assets/PhClock-UItiXeJq.js","assets/PhCompass-CUy3uA7t.js","assets/PhCopy-C-PDgSlZ.js","assets/PhCreditCard-CWRaUT6F.js","assets/PhCurrencyDollar-Cqla3AXT.js","assets/PhDesktop-BBIPrYLl.js","assets/PhDeviceMobile-BdsPaATg.js","assets/PhDotsThree-BMXCQl-0.js","assets/PhVault-l2PHF38a.js","assets/PhEnvelope-yUsis6yU.js","assets/PhFunnelSimple-Ba7BbWTp.js","assets/PhGlobe-DgLxBk5U.js","assets/PhIdentificationCard-Czjmq9Z3.js","assets/PhImage-BAJ_erz6.js","assets/PhInfo-Cr4DhVUE.js","assets/PhLightbulb-BX_7duTr.js","assets/PhMagnifyingGlass-Mygfryvz.js","assets/PhPaperPlaneRight-BeuCA660.js","assets/PhPlus-BMjcHjsT.js","assets/PhPower-CGffGmdb.js","assets/PhPuzzlePiece-wm_GpVSi.js","assets/PhQrCode-DRwRzXCH.js","assets/PhQuestion-M09j2U0T.js","assets/PhQuestionMark-BP9EMB6h.js","assets/PhSealCheck-BfG80yKn.js","assets/PhSignOut-C5YOWlPT.js","assets/PhSpinner-BXooDYzU.js","assets/PhTrash-Biq6rmmL.js","assets/PhUser-CAgZSpGe.js","assets/PhWallet-w25D16It.js","assets/PhWarning-DPEydIPw.js","assets/PhWarningCircle-BqjT745H.js","assets/PhX-s-SmVExa.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as M,i as y,b as x,w as h}from"./lit-element-B3y9oplH.js";import{n as s,o as Z,a as A}from"./class-map-CxwNmq0D.js";import{r as E,v as c,d as I}from"./index-
|
|
2
|
+
import{a as M,i as y,b as x,w as h}from"./lit-element-B3y9oplH.js";import{n as s,o as Z,a as A}from"./class-map-CxwNmq0D.js";import{r as E,v as c,d as I}from"./index-BxUnm4zs.js";import{_ as r}from"./index-DHBNDbnV.js";const L=".",C={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--apkt-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--apkt-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},formatCurrency(t=0,e={}){const i=Number(t);return isNaN(i)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2,...e}).format(i)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:i,truncate:o}){return t.length<=e+i?t:o==="end"?`${t.substring(0,e)}...`:o==="start"?`...${t.substring(t.length-i)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(i))}`},generateAvatarColors(t){const i=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),o=this.hexToRgb(i),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),a=100-3*Number(n==null?void 0:n.replace("px","")),p=`${a}% ${a}% at 65% 40%`,d=[];for(let u=0;u<5;u+=1){const m=this.tintColor(o,.15*u);d.push(`rgb(${m[0]}, ${m[1]}, ${m[2]})`)}return`
|
|
3
3
|
--local-color-1: ${d[0]};
|
|
4
4
|
--local-color-2: ${d[1]};
|
|
5
5
|
--local-color-3: ${d[2]};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as d,b as u}from"./lit-element-B3y9oplH.js";import{n as p}from"./class-map-CxwNmq0D.js";import{c as m}from"./index-
|
|
1
|
+
import{i as d,b as u}from"./lit-element-B3y9oplH.js";import{n as p}from"./class-map-CxwNmq0D.js";import{c as m}from"./index-9u5dIWpc.js";import{d as f,r as h}from"./index-BxUnm4zs.js";const g=f`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as m,b as n}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as u}from"./index-
|
|
1
|
+
import{i as m,b as n}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as u}from"./index-9u5dIWpc.js";import"./index-BFtfwyme.js";import"./index-CgddP45N.js";import{d as g,r as p,e as x}from"./index-BxUnm4zs.js";const b=g`
|
|
2
2
|
button {
|
|
3
3
|
display: block;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as u,b as c}from"./lit-element-B3y9oplH.js";import{n as r,o as p}from"./class-map-CxwNmq0D.js";import{d as g,r as f}from"./index-
|
|
1
|
+
import{i as u,b as c}from"./lit-element-B3y9oplH.js";import{n as r,o as p}from"./class-map-CxwNmq0D.js";import{d as g,r as f}from"./index-BxUnm4zs.js";import{c as m}from"./index-9u5dIWpc.js";const b=g`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: var(--local-width);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-
|
|
1
|
+
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-BxUnm4zs.js";import{c as x}from"./index-9u5dIWpc.js";const g=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{_ as b}from"./index-MxzGamB6.js";import{c as T,C as O,a as G,P as k}from"./index-CmK1m9NK.js";import{i as zt}from"./index-CmK1m9NK.js";import{aI as D,aR as B,bh as F}from"./sendRawTransaction-BJNSpFJo.js";import{x as L,af as z,a5 as _,Y as f,u as x,al as H,r as Y}from"./NetworkUtil-DRBYr7tG.js";import{G as J,w as m,a as E}from"./W3MFrameProviderSingleton-C9eN6p7c.js";import{a as P}from"./custom-CHMO6DAH.js";import"./react-E8ng6RF2.js";import"./ethers-BxoDGoYp.js";import"./index-BwWuCRvy.js";import"./index-DsKgUXPz.js";import"./browser-ponyfill-DgNUJw98.js";import"./index-ChPBLIHl.js";import"./index-COjgItKg.js";import"./store-CraP4F4Y.js";import"./writeContract-Bvo9In1F.js";function K(l,{body:p,onError:d,onResponse:M}){return l.request({body:p,onError:d,onResponse:M}),l}async function X(l,{body:p,timeout:d=1e4}){return l.requestAsync({body:p,timeout:d})}const U={http(l,p){return J(l).request(p)},webSocket:K,webSocketAsync:X};Q.type="mock";function Q(l){const p=new Map,d=l.features??{defaultConnected:!1};let M=d.defaultConnected,r;return T(o=>({id:"mock",name:"Mock Connector",type:Q.type,async setup(){r=o.chains[0].id},async connect({chainId:t,withCapabilities:e}={}){if(d.connectError)throw typeof d.connectError=="boolean"?new f(new Error("Failed to connect.")):d.connectError;const a=await(await this.getProvider()).request({method:"eth_requestAccounts"});let n=await this.getChainId();return t&&n!==t&&(n=(await this.switchChain({chainId:t})).id),M=!0,{accounts:e?a.map(i=>({address:D(i),capabilities:{foo:{bar:i}}})):a.map(i=>D(i)),chainId:n}},async disconnect(){M=!1},async getAccounts(){if(!M)throw new G;return(await(await this.getProvider()).request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return _(e,"number")},async isAuthorized(){return!d.reconnect||!M?!1:!!(await this.getAccounts()).length},async switchChain({chainId:t}){const e=await this.getProvider(),c=o.chains.find(a=>a.id===t);if(!c)throw new L(new O);return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:z(t)}]}),c},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect"),M=!1},async getProvider({chainId:t}={}){const c=(o.chains.find(n=>n.id===t)??o.chains[0]).rpcUrls.default.http[0];return P({request:async({method:n,params:i})=>{if(n==="eth_chainId")return z(r);if(n==="eth_accounts"||n==="eth_requestAccounts")return l.accounts;if(n==="eth_signTypedData_v4"&&d.signTypedDataError)throw typeof d.signTypedDataError=="boolean"?new f(new Error("Failed to sign typed data.")):d.signTypedDataError;if(n==="wallet_switchEthereumChain"){if(d.switchChainError)throw typeof d.switchChainError=="boolean"?new f(new Error("Failed to switch chain.")):d.switchChainError;r=_(i[0].chainId,"number"),this.onChainChanged(r.toString());return}if(n==="wallet_watchAsset"){if(d.watchAssetError)throw typeof d.watchAssetError=="boolean"?new f(new Error("Failed to switch chain.")):d.watchAssetError;return M}if(n==="wallet_getCapabilities")return{"0x2105":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"}}};if(n==="wallet_sendCalls"){const w=[],y=i[0].calls,h=i[0].from;for(const j of y){const{result:A,error:v}=await U.http(c,{body:{method:"eth_sendTransaction",params:[{...j,...typeof h<"u"?{from:h}:{}}]}});if(v)throw new x({body:{method:n,params:i},error:v,url:c});w.push(A)}const I=B(H(JSON.stringify(y)));return p.set(I,w),{id:I}}if(n==="wallet_getCallsStatus"){const w=p.get(i[0]);if(!w)return{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"};const h=(await Promise.all(w.map(async I=>{const{result:j,error:A}=await U.http(c,{body:{method:"eth_getTransactionReceipt",params:[I],id:0}});if(A)throw new x({body:{method:n,params:i},error:A,url:c});return j?{blockHash:j.blockHash,blockNumber:j.blockNumber,gasUsed:j.gasUsed,logs:j.logs,status:j.status,transactionHash:j.transactionHash}:null}))).filter(I=>I!==null);return h.length===0?{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:i[0],status:200,receipts:h,version:"2.0.0"}}if(n==="wallet_showCallsStatus")return;if(n==="personal_sign"){if(d.signMessageError)throw typeof d.signMessageError=="boolean"?new f(new Error("Failed to sign message.")):d.signMessageError;n="eth_sign",i=[i[1],i[0]]}const s={method:n,params:i},{error:u,result:g}=await U.http(c,{body:s});if(u)throw new x({body:s,error:u,url:c});return g}})({retryCount:0})}}))}function $(l){var o,t,e;const{chain:p}=l,d=p.rpcUrls.default.http[0];if(!l.transports)return[d];const M=(t=(o=l.transports)==null?void 0:o[p.id])==null?void 0:t.call(o,{chain:p});return(((e=M==null?void 0:M.value)==null?void 0:e.transports)||[M]).map(({value:c})=>(c==null?void 0:c.url)||d)}const tt='data:image/svg+xml,<svg width="269" height="269" viewBox="0 0 269 269" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="269" height="269" fill="black"/><path d="M123.273 190.794H93.445L121.09 105.318H85.7334L93.445 80.2642H191.95L184.238 105.318H150.773L123.273 190.794Z" fill="white"/></svg>';function It(l={}){const{dialog:p,host:d,icon:M=tt,name:r,rdns:o,theme:t,...e}=l;return nt({createAdapter(c){return c.dialog({dialog:p,host:d,icon:M,name:r,rdns:o,theme:t})},icon:M,id:o??"xyz.tempo",name:r??"Tempo Wallet",providerParameters:e,rdns:o??"xyz.tempo",type:"injected"})}function nt(l){return T(p=>{const d=p.chains;let M,r,o,t,e;async function c(){return await b(()=>import("./core-BIHI7g3E.js"),[]).catch(()=>{throw new Error('dependency "accounts" not found')})}async function a(){return M??(M=(async()=>{const n=await c();return n.Provider.create({...l.providerParameters,adapter:l.createAdapter(n),chains:p.chains,transports:p.transports})})()),await M}return{icon:l.icon,id:l.id,name:l.name,rdns:l.rdns,type:l.type,async connect(n={}){const{chainId:i,isReconnecting:s,withCapabilities:u}=n,g="capabilities"in n?n.capabilities:void 0;let w=[],y;s&&(w=await this.getAccounts().then(h=>h.map(I=>({address:I,capabilities:{}}))).catch(()=>[]));try{if(!w.length&&!s&&(w=(await(await a()).request({method:"wallet_connect",params:[{...i?{chainId:i}:{},...g?{capabilities:g}:{}}]})).accounts),y??(y=await this.getChainId()),!y)throw new O;const h=await a();return t&&(h.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),h.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),h.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),h.on("disconnect",e)),{accounts:u?w:w.map(I=>I.address),chainId:y}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){var i;const n=await a();o&&(n.removeListener("chainChanged",o),o=void 0),e&&(n.removeListener("disconnect",e),e=void 0),t||(t=(i=this.onConnect)==null?void 0:i.bind(this),t&&n.on("connect",t)),await n.request({method:"wallet_disconnect"})},async getAccounts(){return await(await a()).request({method:"eth_accounts"})},async getChainId(){const n=await a();return Number(await n.request({method:"eth_chainId"}))},async getClient({chainId:n}={}){const i=await a(),{address:s}=i.getAccount({accessKey:!1});return Object.assign(i.getClient({chainId:n}),{account:F(s)})},async getProvider(){return await a()},async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},onAccountsChanged(n){p.emitter.emit("change",{accounts:n})},onChainChanged(n){p.emitter.emit("change",{chainId:Number(n)})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);p.emitter.emit("connect",{accounts:i,chainId:s});const u=await a();t&&(u.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),u.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),u.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),u.on("disconnect",e))},async onDisconnect(n){var s;const i=await a();p.emitter.emit("disconnect"),o&&(i.removeListener("chainChanged",o),o=void 0),e&&(i.removeListener("disconnect",e),e=void 0),t||(t=(s=this.onConnect)==null?void 0:s.bind(this),t&&i.on("connect",t))},async setup(){var n;if(!t){const i=await a();t=(n=this.onConnect)==null?void 0:n.bind(this),t&&i.on("connect",t)}},async switchChain({chainId:n}){const i=d.find(u=>u.id===n);if(!i)throw new L(new O);return await(await a()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i}}})}function yt(l={}){let p,d,M,r;return T(o=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:t,withCapabilities:e,...c}={}){var a;try{const n=await this.getProvider(),i=t??((a=o.chains[0])==null?void 0:a.id);if(!i)throw new O;let{accounts:s,currentChainId:u}=await(async()=>{if(c.isReconnecting)return{accounts:(await n.request({method:"eth_accounts",params:[]})).map(h=>({address:D(h)})),currentChainId:await this.getChainId()};const g=await n.request({method:"wallet_connect",params:[{capabilities:"capabilities"in c&&c.capabilities?c.capabilities:{},chainIds:[z(i),...o.chains.filter(h=>h.id!==i).map(h=>z(h.id))]}]});return{accounts:(await n.request({method:"eth_accounts"})).map(h=>g.accounts.find(I=>I.address===h)??{address:h}).map(h=>({address:D(h.address),capabilities:h.capabilities??{}})),currentChainId:Number(g.chainIds[0])}})();if(d||(d=this.onAccountsChanged.bind(this),n.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),n.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),n.on("disconnect",r)),t&&u!==t){const g=await this.switchChain({chainId:t}).catch(w=>{if(w.code===f.code)throw w;return{id:u}});u=(g==null?void 0:g.id)??u}return{accounts:e?s:s.map(g=>g.address),chainId:u}}catch(n){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message)?new f(n):n}},async disconnect(){const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const t=(()=>{var a;return typeof l.preference=="string"?{options:l.preference}:{...l.preference,options:((a=l.preference)==null?void 0:a.options)??"all"}})(),{createBaseAccountSDK:e}=await(()=>{try{return b(()=>import("./index-6zaqIgnj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]))}catch{throw new Error('dependency "@base-org/account" not found')}})();p=e({...l,appChainIds:o.chains.map(a=>a.id),preference:t}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}q.type="coinbaseWallet";function q(l={}){let p,d,M,r;return T(o=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:q.type,async connect({chainId:t,withCapabilities:e,...c}={}){try{const a=await this.getProvider(),n=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(s=>D(s));d||(d=this.onAccountsChanged.bind(this),a.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),a.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),a.on("disconnect",r));let i=await this.getChainId();if(t&&i!==t){const s=await this.switchChain({chainId:t}).catch(u=>{if(u.code===f.code)throw u;return{id:i}});i=(s==null?void 0:s.id)??i}return{accounts:e?n.map(s=>({address:s,capabilities:{}})):n,chainId:i}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new f(a):a}},async disconnect(){var e;const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect(),(e=t.close)==null||e.call(t)},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const{createCoinbaseWalletSDK:t}=await(()=>{try{return b(()=>import("./index-BicpyvoP.js"),__vite__mapDeps([26,6,4,7,8,1,3,5,18,10,11,19,9,12,13,14,15,16,17,20,21,25]))}catch{throw new Error('dependency "@coinbase/wallet-sdk" not found')}})();p=t({...l,appChainIds:o.chains.map(c=>c.id),preference:{options:"all",...l.preference??{}}}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}R.type="metaMask";function R(l={}){let p,d;return T(M=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:R.type,async connect({chainId:r,isReconnecting:o,withCapabilities:t}={}){const e=await this.getInstance(),c=e.getProvider();let a=[];o&&(a=await this.getAccounts().catch(()=>[]));try{let n,i;if(!(a!=null&&a.length)){const u=M.chains.map(g=>z(g.id));l.connectAndSign||l.connectWith?(l.connectAndSign?n=(await e.connectAndSign({chainIds:u,message:l.connectAndSign})).signature:l.connectWith&&(i=(await e.connectWith({chainIds:u,method:l.connectWith.method,params:l.connectWith.params})).result),a=await this.getAccounts()):a=(await e.connect({chainIds:u})).accounts.map(w=>D(w))}let s=await this.getChainId();if(r&&s!==r){const u=await this.switchChain({chainId:r}).catch(g=>{if(g.code===f.code)throw g;return{id:s}});s=(u==null?void 0:u.id)??s}return n?c.emit("connectAndSign",{accounts:a,chainId:z(s),signResponse:n}):i&&c.emit("connectWith",{accounts:a,chainId:z(s),connectWithResponse:i}),{accounts:t?a.map(u=>({address:u,capabilities:{}})):a,chainId:s}}catch(n){const i=n;throw i.code===f.code?new f(i):i.code===Y.code?new Y(i):i}},async disconnect(){return(await this.getInstance()).disconnect()},async getAccounts(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c)return(await c.request({method:"eth_accounts"})).map(n=>D(n))}const r=await this.getInstance();return r.accounts.length?r.accounts.map(c=>D(c)):(await r.getProvider().request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c){const a=await c.request({method:"eth_chainId"});return Number(a)}}const r=await this.getInstance();if(r.getChainId())return Number(r.getChainId());const t=await r.getProvider().request({method:"eth_chainId"});return Number(t)},async getProvider(){var o;if(!p&&!d){const t=(o=M.providers[0])==null?void 0:o.provider;if(t)return t}return(await this.getInstance()).getProvider()},async isAuthorized(){var r;try{if(!p&&!d){const e=(r=M.providers[0])==null?void 0:r.provider;if(e)return(await e.request({method:"eth_accounts"})).length>0}const o=10;return!!(await m(async()=>E(async()=>{const e=await this.getAccounts();if(!e.length)throw new Error("try again");return e},{timeout:o}),{delay:o+1,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:o}){var c,a;const t=M.chains.find(({id:n})=>n===Number(o));if(!t)throw new L(new O);const e=z(o);try{return await(await this.getInstance()).switchChain({chainId:e,chainConfiguration:{blockExplorerUrls:r!=null&&r.blockExplorerUrls?[...r.blockExplorerUrls]:(c=t.blockExplorers)!=null&&c.default.url?[t.blockExplorers.default.url]:void 0,chainId:e,chainName:(r==null?void 0:r.chainName)??t.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:(r==null?void 0:r.nativeCurrency)??t.nativeCurrency,rpcUrls:r!=null&&r.rpcUrls?[...r.rpcUrls]:(a=t.rpcUrls.default)!=null&&a.http?[...t.rpcUrls.default.http]:void 0}}),t}catch(n){const i=n;throw i.code===f.code?new f(i):new L(i)}},async onAccountsChanged(r){M.emitter.emit("change",{accounts:r.map(o=>D(o))})},onChainChanged(r){const o=Number(r);M.emitter.emit("change",{chainId:o})},async onConnect(r){const o=await this.getAccounts();if(o.length===0)return;const t=Number(r.chainId);M.emitter.emit("connect",{accounts:o,chainId:t})},async onDisconnect(r){r&&r.code===1013&&await this.getProvider()&&(await this.getAccounts()).length||M.emitter.emit("disconnect")},onDisplayUri(r){M.emitter.emit("message",{type:"display_uri",data:r})},async getInstance(){var r;if(!p){if(!d){const{createEVMClient:o}=await(async()=>{try{return b(()=>import("./connectors-BkiAkXrA.js"),[])}catch{throw new Error('dependency "@metamask/connect-evm" not found')}})(),t=typeof window>"u"?{name:"wagmi"}:{name:window.location.hostname,url:window.location.href};d=o({...l,skipAutoAnnounce:!0,api:{supportedNetworks:Object.fromEntries(M.chains.map(e=>{var c;return[z(e.id),((c=e.rpcUrls.default)==null?void 0:c.http[0])??""]}))},dapp:l.dapp??{...t,...l.dappMetadata},debug:l.debug??((r=l.logging)==null?void 0:r.sdk),eventHandlers:{accountsChanged:this.onAccountsChanged.bind(this),chainChanged:this.onChainChanged.bind(this),connect:this.onConnect.bind(this),disconnect:this.onDisconnect.bind(this),displayUri:this.onDisplayUri.bind(this)},analytics:{integrationType:"wagmi"},ui:{...l.ui,...l.headless!=null&&{headless:l.headless}},...l.mobile&&{mobile:l.mobile}})}p=await d}return p}}))}function ft(l={}){const p=d=>typeof d.on=="function"&&typeof d.removeListener=="function";return T(d=>{const M=d.chains??l.chains??[],r=d.transports?d.transports:l.transports;let o,t,e,c,a;return{async connect({chainId:n=M[0].id,...i}={}){const s="isReconnecting"in i&&i.isReconnecting||!1,u="withCapabilities"in i&&i.withCapabilities||!1;let g=[],w;if(s&&([g,w]=await Promise.all([this.getAccounts().catch(()=>[]),this.getChainId().catch(()=>{})]),n&&w!==n)){const h=await this.switchChain({chainId:n}).catch(I=>{if(I.code===f.code)throw I;return{id:w}});w=(h==null?void 0:h.id)??w}const y=await this.getProvider();try{if(!(g!=null&&g.length)&&!s){const{RpcSchema:h}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})(),{z:I}=await(()=>{try{return b(()=>import("./connectors-DAWtxdNk.js"),[])}catch{throw new Error('dependency "porto/internal" not found')}})(),j=await y.request({method:"wallet_connect",params:[{..."capabilities"in i?{capabilities:I.encode(h.wallet_connect.Capabilities,i.capabilities??{})}:{},chainIds:[z(n),...M.filter(A=>A.id!==n).map(A=>z(A.id))]}]});g=j.accounts,w=Number(j.chainIds[0])}if(!w)throw new O;return p(y)&&(c&&(y.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),y.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),y.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),y.on("disconnect",a))),{accounts:g.map(h=>typeof h=="object"?u?h:h.address:u?{address:h,capabilities:{}}:h),chainId:w}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){const n=await this.getProvider();p(n)&&(e&&(n.removeListener("chainChanged",e),e=void 0),a&&(n.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),n.on("connect",c))),await n.request({method:"wallet_disconnect"})},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(s=>D(s))},async getChainId(){const i=await(await this.getProvider()).request({method:"eth_chainId"});return Number(i)},async getPortoInstance(){return o??(o=(async()=>{const{Porto:n}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})();return n.create({...l,announceProvider:!1,chains:M,transports:r})})()),await o},async getProvider(){return(await this.getPortoInstance()).provider},icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIyIiBoZWlnaHQ9IjQyMiIgdmlld0JveD0iMCAwIDQyMiA0MjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI0MjIiIGhlaWdodD0iNDIyIiBmaWxsPSJibGFjayIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMV8xNSkiPgo8cGF0aCBkPSJNODEgMjg2LjM2NkM4MS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QgMzE2LjEwMUgzMjkuNTExQzMzNS4wMDEgMzE2LjEwMSAzMzkuNDUyIDMxMS42NjIgMzM5LjQ1MiAzMDYuMTg4VjI4Ni4zNjZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjY5Ljg2OCAxMzEuNzUyQzI2OS44NjggMTI2LjI3OCAyNzQuMzE4IDEyMS44NCAyNzkuODA4IDEyMS44NEgzMTEuNjE4QzMxNy4xMDggMTIxLjg0IDMyMS41NTggMTI2LjI3OCAzMjEuNTU4IDEzMS43NTJWMTYxLjQ4NUMzMjEuNTU4IDE2Ni45NTkgMzE3LjEwOCAxNzEuMzk2IDMxMS42MTggMTcxLjM5NkgyNzkuODA4QzI3NC4zMTggMTcxLjM5NiAyNjkuODY4IDE2Ni45NTkgMjY5Ljg2OCAxNjEuNDg1VjEzMS43NTJaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfMTUiPgo8cmVjdCB3aWR0aD0iMjU5IiBoZWlnaHQ9IjIxMyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgxIDEwNCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",id:"xyz.ithaca.porto",async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},name:"Porto",async onAccountsChanged(n){d.emitter.emit("change",{accounts:n.map(i=>D(i))})},onChainChanged(n){const i=Number(n);d.emitter.emit("change",{chainId:i})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);d.emitter.emit("connect",{accounts:i,chainId:s});const u=await this.getProvider();p(u)&&(c&&(u.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),u.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),u.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),u.on("disconnect",a)))},async onDisconnect(n){const i=await this.getProvider();d.emitter.emit("disconnect"),p(i)&&(e&&(i.removeListener("chainChanged",e),e=void 0),a&&(i.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),i.on("connect",c)))},async setup(){if(!c){const n=await this.getProvider();if(!p(n))return;c=this.onConnect.bind(this),n.on("connect",c)}},async switchChain({chainId:n}){const i=M.find(u=>u.id===n);if(!i)throw new L(new O);return await(await this.getProvider()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i},type:"injected"}})}W.type="safe";function W(l={}){const{shimDisconnect:p=!1}=l;let d,M;return T(r=>({id:"safe",name:"Safe",type:W.type,async connect({withCapabilities:o}={}){var a;const t=await this.getProvider();if(!t)throw new k;const e=await this.getAccounts(),c=await this.getChainId();return M||(M=this.onDisconnect.bind(this),t.on("disconnect",M)),p&&await((a=r.storage)==null?void 0:a.removeItem("safe.disconnected")),{accounts:o?e.map(n=>({address:n,capabilities:{}})):e,chainId:c}},async disconnect(){var t;const o=await this.getProvider();if(!o)throw new k;M&&(o.removeListener("disconnect",M),M=void 0),p&&await((t=r.storage)==null?void 0:t.setItem("safe.disconnected",!0))},async getAccounts(){const o=await this.getProvider();if(!o)throw new k;return(await o.request({method:"eth_accounts"})).map(D)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!d){const{default:t}=await(()=>{try{return b(()=>import("./index-B3EyEzJm.js"),__vite__mapDeps([27,28,10,11,7,4,6,8,20]))}catch{throw new Error('dependency "@safe-global/safe-apps-sdk" not found')}})(),e=new t(l),c=await E(()=>e.safe.getInfo(),{timeout:l.unstable_getInfoTimeout??10});if(!c)throw new Error("Could not load Safe information");const a=await(async()=>{const n=await(()=>{try{return b(()=>import("./index-CR1VOdeC.js").then(i=>i.i),__vite__mapDeps([29,4,28,30,7,15,6,8]))}catch{throw new Error('dependency "@safe-global/safe-apps-provider" not found')}})();return typeof n.SafeAppProvider!="function"&&typeof n.default.SafeAppProvider=="function"?n.default.SafeAppProvider:n.SafeAppProvider})();d=new a(c,e)}return d}},async getChainId(){const o=await this.getProvider();if(!o)throw new k;return Number(o.chainId)},async isAuthorized(){var o;try{return p&&await((o=r.storage)==null?void 0:o.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}const Dt="8.0.20";Z.type="walletConnect";function Z(l){const p=l.isNewChainsStale??!0;let d,M;const r="eip155";let o,t,e,c,a,n;return T(i=>({id:"walletConnect",name:"WalletConnect",type:Z.type,async setup(){const s=await this.getProvider().catch(()=>null);s&&(e||(e=this.onConnect.bind(this),s.on("connect",e)),a||(a=this.onSessionDelete.bind(this),s.on("session_delete",a)))},async connect({chainId:s,withCapabilities:u,...g}={}){var w,y;try{const h=await this.getProvider();if(!h)throw new k;c||(c=this.onDisplayUri,h.on("display_uri",c));let I=s;if(!I){const N=await((w=i.storage)==null?void 0:w.getItem("state"))??{};i.chains.some(S=>S.id===N.chainId)?I=N.chainId:I=(y=i.chains[0])==null?void 0:y.id}if(!I)throw new Error("No chains found on connector.");const j=await this.isChainsStale();if(h.session&&j&&await h.disconnect(),!h.session||j){const N=i.chains.filter(C=>C.id!==I).map(C=>C.id);await h.connect({optionalChains:[I,...N],..."pairingTopic"in g?{pairingTopic:g.pairingTopic}:{}}),this.setRequestedChainsIds(i.chains.map(C=>C.id))}const A=(await h.enable()).map(N=>D(N));let v=await this.getChainId();if(s&&v!==s){const N=await this.switchChain({chainId:s}).catch(C=>{var S;if(C.code===f.code&&((S=C.cause)==null?void 0:S.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw C;return{id:v}});v=(N==null?void 0:N.id)??v}return c&&(h.removeListener("display_uri",c),c=void 0),e&&(h.removeListener("connect",e),e=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),t||(t=this.onChainChanged.bind(this),h.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),h.on("disconnect",n)),a||(a=this.onSessionDelete.bind(this),h.on("session_delete",a)),{accounts:u?A.map(N=>({address:N,capabilities:{}})):A,chainId:v}}catch(h){throw/(user rejected|connection request reset)/i.test(h==null?void 0:h.message)?new f(h):h}},async disconnect(){const s=await this.getProvider();try{await(s==null?void 0:s.disconnect())}catch(u){if(!/No matching key/i.test(u.message))throw u}finally{t&&(s==null||s.removeListener("chainChanged",t),t=void 0),n&&(s==null||s.removeListener("disconnect",n),n=void 0),e||(e=this.onConnect.bind(this),s==null||s.on("connect",e)),o&&(s==null||s.removeListener("accountsChanged",o),o=void 0),a&&(s==null||s.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(u=>D(u))},async getProvider({chainId:s}={}){var g;async function u(){const w=i.chains.map(h=>h.id);if(!w.length)return;const{EthereumProvider:y}=await(()=>{try{return b(()=>import("./index.es-BClJ76hs.js").then(h=>h.n),__vite__mapDeps([31,6,4,7,8,15,32,14,25,33,34,16]))}catch{throw new Error('dependency "@walletconnect/ethereum-provider" not found')}})();return await y.init({...l,disableProviderPing:!0,optionalChains:w,projectId:l.projectId,rpcMap:Object.fromEntries(i.chains.map(h=>{const[I]=$({chain:h,transports:i.transports});return[h.id,I]})),showQrModal:l.showQrModal??!0})}return d||(M||(M=u()),d=await M,d==null||d.events.setMaxListeners(Number.POSITIVE_INFINITY)),s&&await((g=this.switchChain)==null?void 0:g.call(this,{chainId:s})),d},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[s,u]=await Promise.all([this.getAccounts(),this.getProvider()]);return s.length?await this.isChainsStale()&&u.session?(await u.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:s,chainId:u}){var h,I,j;const g=await this.getProvider();if(!g)throw new k;const w=i.chains.find(A=>A.id===u);if(!w)throw new L(new O);let y=()=>{};try{await Promise.all([new Promise(v=>{y=N=>{N.chainId===u&&(i.emitter.off("change",y),v())},i.emitter.on("change",y)}),g.request({method:"wallet_switchEthereumChain",params:[{chainId:z(u)}]})]);const A=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...A,u]),w}catch(A){i.emitter.off("change",y);const v=A;if(/(user rejected)/i.test(v.message))throw new f(v);try{let N;s!=null&&s.blockExplorerUrls?N=s.blockExplorerUrls:N=(h=w.blockExplorers)!=null&&h.default.url?[(I=w.blockExplorers)==null?void 0:I.default.url]:[];let C;(j=s==null?void 0:s.rpcUrls)!=null&&j.length?C=s.rpcUrls:C=[...w.rpcUrls.default.http];const S={blockExplorerUrls:N,chainId:z(u),chainName:(s==null?void 0:s.chainName)??w.name,iconUrls:s==null?void 0:s.iconUrls,nativeCurrency:(s==null?void 0:s.nativeCurrency)??w.nativeCurrency,rpcUrls:C};await g.request({method:"wallet_addEthereumChain",params:[S]});const V=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...V,u]),w}catch(N){throw new f(N)}}},onAccountsChanged(s){s.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:s.map(u=>D(u))})},onChainChanged(s){const u=Number(s);i.emitter.emit("change",{chainId:u})},async onConnect(s){const u=Number(s.chainId),g=await this.getAccounts();i.emitter.emit("connect",{accounts:g,chainId:u})},async onDisconnect(s){this.setRequestedChainsIds([]),i.emitter.emit("disconnect");const u=await this.getProvider();o&&(u.removeListener("accountsChanged",o),o=void 0),t&&(u.removeListener("chainChanged",t),t=void 0),n&&(u.removeListener("disconnect",n),n=void 0),a&&(u.removeListener("session_delete",a),a=void 0),e||(e=this.onConnect.bind(this),u.on("connect",e))},onDisplayUri(s){i.emitter.emit("message",{type:"display_uri",data:s})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var u,g,w;return d?((w=(g=(u=d.session)==null?void 0:u.namespaces[r])==null?void 0:g.accounts)==null?void 0:w.map(y=>Number.parseInt(y.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var s;return await((s=i.storage)==null?void 0:s.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!p)return!1;const s=i.chains.map(w=>w.id),u=this.getNamespaceChainsIds();if(u.length&&!u.some(w=>s.includes(w)))return!1;const g=await this.getRequestedChainsIds();return!s.every(w=>g.includes(w))},async setRequestedChainsIds(s){var u;await((u=i.storage)==null?void 0:u.setItem(this.requestedChainsStorageKey,s))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}export{yt as baseAccount,q as coinbaseWallet,zt as injected,R as metaMask,Q as mock,ft as porto,W as safe,It as tempoWallet,Dt as version,Z as walletConnect};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BVgRmCgj.js","assets/hooks.module-C4R15-Vr.js","assets/jsxRuntime.module-wfFNtqye.js","assets/index-ChPBLIHl.js","assets/react-E8ng6RF2.js","assets/index-COjgItKg.js","assets/index-DHBNDbnV.js","assets/ethers-BxoDGoYp.js","assets/index-C--hbOLp.css","assets/parseSignature-DT9uhIVC.js","assets/sendRawTransaction-DMNQstjs.js","assets/NetworkUtil-DRBYr7tG.js","assets/custom-BrSTU20K.js","assets/W3MFrameProviderSingleton-DdglCcve.js","assets/index-BwWuCRvy.js","assets/index-uF27IY_4.js","assets/browser-ponyfill-DgNUJw98.js","assets/localBatchGatewayRequest-Cw1MGDr7.js","assets/verifyHash-Dn1rHH9h.js","assets/secp256k1-DVXxU7Aq.js","assets/hashTypedData-GzPvk7xU.js","assets/WebCryptoP256-BJKptYpF.js","assets/zoraTestnet-BdK0bmvK.js","assets/serializeTransaction-CzZEhSoE.js","assets/writeContract-CITYPGU4.js","assets/index-nibyPLVP.js","assets/index-Cnqa_v7u.js","assets/index-CBxG_uWU.js","assets/index-BV8s6ez1.js","assets/index-CdMRLSY-.js","assets/native-Df5jPT-i.js","assets/index.es-CCbadZ01.js","assets/index-D4ZuEeTk.js","assets/index-CJdot1dH.js","assets/index.es-xgYjIRgR.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as b}from"./index-DHBNDbnV.js";import{c as T,C as O,a as G,P as k}from"./index-0jVpCjPO.js";import{i as zt}from"./index-0jVpCjPO.js";import{aI as D,aR as B,bh as F}from"./sendRawTransaction-DMNQstjs.js";import{x as L,af as z,a5 as _,Y as f,u as x,al as H,r as Y}from"./NetworkUtil-DRBYr7tG.js";import{G as J,w as m,a as E}from"./W3MFrameProviderSingleton-DdglCcve.js";import{a as P}from"./custom-BrSTU20K.js";import"./react-E8ng6RF2.js";import"./ethers-BxoDGoYp.js";import"./index-BwWuCRvy.js";import"./index-uF27IY_4.js";import"./browser-ponyfill-DgNUJw98.js";import"./index-ChPBLIHl.js";import"./index-COjgItKg.js";import"./store-CraP4F4Y.js";import"./writeContract-CITYPGU4.js";function K(l,{body:p,onError:d,onResponse:M}){return l.request({body:p,onError:d,onResponse:M}),l}async function X(l,{body:p,timeout:d=1e4}){return l.requestAsync({body:p,timeout:d})}const U={http(l,p){return J(l).request(p)},webSocket:K,webSocketAsync:X};Q.type="mock";function Q(l){const p=new Map,d=l.features??{defaultConnected:!1};let M=d.defaultConnected,r;return T(o=>({id:"mock",name:"Mock Connector",type:Q.type,async setup(){r=o.chains[0].id},async connect({chainId:t,withCapabilities:e}={}){if(d.connectError)throw typeof d.connectError=="boolean"?new f(new Error("Failed to connect.")):d.connectError;const a=await(await this.getProvider()).request({method:"eth_requestAccounts"});let n=await this.getChainId();return t&&n!==t&&(n=(await this.switchChain({chainId:t})).id),M=!0,{accounts:e?a.map(i=>({address:D(i),capabilities:{foo:{bar:i}}})):a.map(i=>D(i)),chainId:n}},async disconnect(){M=!1},async getAccounts(){if(!M)throw new G;return(await(await this.getProvider()).request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return _(e,"number")},async isAuthorized(){return!d.reconnect||!M?!1:!!(await this.getAccounts()).length},async switchChain({chainId:t}){const e=await this.getProvider(),c=o.chains.find(a=>a.id===t);if(!c)throw new L(new O);return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:z(t)}]}),c},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect"),M=!1},async getProvider({chainId:t}={}){const c=(o.chains.find(n=>n.id===t)??o.chains[0]).rpcUrls.default.http[0];return P({request:async({method:n,params:i})=>{if(n==="eth_chainId")return z(r);if(n==="eth_accounts"||n==="eth_requestAccounts")return l.accounts;if(n==="eth_signTypedData_v4"&&d.signTypedDataError)throw typeof d.signTypedDataError=="boolean"?new f(new Error("Failed to sign typed data.")):d.signTypedDataError;if(n==="wallet_switchEthereumChain"){if(d.switchChainError)throw typeof d.switchChainError=="boolean"?new f(new Error("Failed to switch chain.")):d.switchChainError;r=_(i[0].chainId,"number"),this.onChainChanged(r.toString());return}if(n==="wallet_watchAsset"){if(d.watchAssetError)throw typeof d.watchAssetError=="boolean"?new f(new Error("Failed to switch chain.")):d.watchAssetError;return M}if(n==="wallet_getCapabilities")return{"0x2105":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"}}};if(n==="wallet_sendCalls"){const w=[],y=i[0].calls,h=i[0].from;for(const j of y){const{result:A,error:v}=await U.http(c,{body:{method:"eth_sendTransaction",params:[{...j,...typeof h<"u"?{from:h}:{}}]}});if(v)throw new x({body:{method:n,params:i},error:v,url:c});w.push(A)}const I=B(H(JSON.stringify(y)));return p.set(I,w),{id:I}}if(n==="wallet_getCallsStatus"){const w=p.get(i[0]);if(!w)return{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"};const h=(await Promise.all(w.map(async I=>{const{result:j,error:A}=await U.http(c,{body:{method:"eth_getTransactionReceipt",params:[I],id:0}});if(A)throw new x({body:{method:n,params:i},error:A,url:c});return j?{blockHash:j.blockHash,blockNumber:j.blockNumber,gasUsed:j.gasUsed,logs:j.logs,status:j.status,transactionHash:j.transactionHash}:null}))).filter(I=>I!==null);return h.length===0?{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:i[0],status:200,receipts:h,version:"2.0.0"}}if(n==="wallet_showCallsStatus")return;if(n==="personal_sign"){if(d.signMessageError)throw typeof d.signMessageError=="boolean"?new f(new Error("Failed to sign message.")):d.signMessageError;n="eth_sign",i=[i[1],i[0]]}const s={method:n,params:i},{error:u,result:g}=await U.http(c,{body:s});if(u)throw new x({body:s,error:u,url:c});return g}})({retryCount:0})}}))}function $(l){var o,t,e;const{chain:p}=l,d=p.rpcUrls.default.http[0];if(!l.transports)return[d];const M=(t=(o=l.transports)==null?void 0:o[p.id])==null?void 0:t.call(o,{chain:p});return(((e=M==null?void 0:M.value)==null?void 0:e.transports)||[M]).map(({value:c})=>(c==null?void 0:c.url)||d)}const tt='data:image/svg+xml,<svg width="269" height="269" viewBox="0 0 269 269" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="269" height="269" fill="black"/><path d="M123.273 190.794H93.445L121.09 105.318H85.7334L93.445 80.2642H191.95L184.238 105.318H150.773L123.273 190.794Z" fill="white"/></svg>';function It(l={}){const{dialog:p,host:d,icon:M=tt,name:r,rdns:o,theme:t,...e}=l;return nt({createAdapter(c){return c.dialog({dialog:p,host:d,icon:M,name:r,rdns:o,theme:t})},icon:M,id:o??"xyz.tempo",name:r??"Tempo Wallet",providerParameters:e,rdns:o??"xyz.tempo",type:"injected"})}function nt(l){return T(p=>{const d=p.chains;let M,r,o,t,e;async function c(){return await b(()=>import("./core-BIHI7g3E.js"),[]).catch(()=>{throw new Error('dependency "accounts" not found')})}async function a(){return M??(M=(async()=>{const n=await c();return n.Provider.create({...l.providerParameters,adapter:l.createAdapter(n),chains:p.chains,transports:p.transports})})()),await M}return{icon:l.icon,id:l.id,name:l.name,rdns:l.rdns,type:l.type,async connect(n={}){const{chainId:i,isReconnecting:s,withCapabilities:u}=n,g="capabilities"in n?n.capabilities:void 0;let w=[],y;s&&(w=await this.getAccounts().then(h=>h.map(I=>({address:I,capabilities:{}}))).catch(()=>[]));try{if(!w.length&&!s&&(w=(await(await a()).request({method:"wallet_connect",params:[{...i?{chainId:i}:{},...g?{capabilities:g}:{}}]})).accounts),y??(y=await this.getChainId()),!y)throw new O;const h=await a();return t&&(h.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),h.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),h.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),h.on("disconnect",e)),{accounts:u?w:w.map(I=>I.address),chainId:y}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){var i;const n=await a();o&&(n.removeListener("chainChanged",o),o=void 0),e&&(n.removeListener("disconnect",e),e=void 0),t||(t=(i=this.onConnect)==null?void 0:i.bind(this),t&&n.on("connect",t)),await n.request({method:"wallet_disconnect"})},async getAccounts(){return await(await a()).request({method:"eth_accounts"})},async getChainId(){const n=await a();return Number(await n.request({method:"eth_chainId"}))},async getClient({chainId:n}={}){const i=await a(),{address:s}=i.getAccount({accessKey:!1});return Object.assign(i.getClient({chainId:n}),{account:F(s)})},async getProvider(){return await a()},async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},onAccountsChanged(n){p.emitter.emit("change",{accounts:n})},onChainChanged(n){p.emitter.emit("change",{chainId:Number(n)})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);p.emitter.emit("connect",{accounts:i,chainId:s});const u=await a();t&&(u.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),u.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),u.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),u.on("disconnect",e))},async onDisconnect(n){var s;const i=await a();p.emitter.emit("disconnect"),o&&(i.removeListener("chainChanged",o),o=void 0),e&&(i.removeListener("disconnect",e),e=void 0),t||(t=(s=this.onConnect)==null?void 0:s.bind(this),t&&i.on("connect",t))},async setup(){var n;if(!t){const i=await a();t=(n=this.onConnect)==null?void 0:n.bind(this),t&&i.on("connect",t)}},async switchChain({chainId:n}){const i=d.find(u=>u.id===n);if(!i)throw new L(new O);return await(await a()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i}}})}function yt(l={}){let p,d,M,r;return T(o=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:t,withCapabilities:e,...c}={}){var a;try{const n=await this.getProvider(),i=t??((a=o.chains[0])==null?void 0:a.id);if(!i)throw new O;let{accounts:s,currentChainId:u}=await(async()=>{if(c.isReconnecting)return{accounts:(await n.request({method:"eth_accounts",params:[]})).map(h=>({address:D(h)})),currentChainId:await this.getChainId()};const g=await n.request({method:"wallet_connect",params:[{capabilities:"capabilities"in c&&c.capabilities?c.capabilities:{},chainIds:[z(i),...o.chains.filter(h=>h.id!==i).map(h=>z(h.id))]}]});return{accounts:(await n.request({method:"eth_accounts"})).map(h=>g.accounts.find(I=>I.address===h)??{address:h}).map(h=>({address:D(h.address),capabilities:h.capabilities??{}})),currentChainId:Number(g.chainIds[0])}})();if(d||(d=this.onAccountsChanged.bind(this),n.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),n.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),n.on("disconnect",r)),t&&u!==t){const g=await this.switchChain({chainId:t}).catch(w=>{if(w.code===f.code)throw w;return{id:u}});u=(g==null?void 0:g.id)??u}return{accounts:e?s:s.map(g=>g.address),chainId:u}}catch(n){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message)?new f(n):n}},async disconnect(){const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const t=(()=>{var a;return typeof l.preference=="string"?{options:l.preference}:{...l.preference,options:((a=l.preference)==null?void 0:a.options)??"all"}})(),{createBaseAccountSDK:e}=await(()=>{try{return b(()=>import("./index-BVgRmCgj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]))}catch{throw new Error('dependency "@base-org/account" not found')}})();p=e({...l,appChainIds:o.chains.map(a=>a.id),preference:t}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}q.type="coinbaseWallet";function q(l={}){let p,d,M,r;return T(o=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:q.type,async connect({chainId:t,withCapabilities:e,...c}={}){try{const a=await this.getProvider(),n=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(s=>D(s));d||(d=this.onAccountsChanged.bind(this),a.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),a.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),a.on("disconnect",r));let i=await this.getChainId();if(t&&i!==t){const s=await this.switchChain({chainId:t}).catch(u=>{if(u.code===f.code)throw u;return{id:i}});i=(s==null?void 0:s.id)??i}return{accounts:e?n.map(s=>({address:s,capabilities:{}})):n,chainId:i}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new f(a):a}},async disconnect(){var e;const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect(),(e=t.close)==null||e.call(t)},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const{createCoinbaseWalletSDK:t}=await(()=>{try{return b(()=>import("./index-Cnqa_v7u.js"),__vite__mapDeps([26,6,4,7,8,1,3,5,18,10,11,19,9,12,13,14,15,16,17,20,21,25]))}catch{throw new Error('dependency "@coinbase/wallet-sdk" not found')}})();p=t({...l,appChainIds:o.chains.map(c=>c.id),preference:{options:"all",...l.preference??{}}}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}R.type="metaMask";function R(l={}){let p,d;return T(M=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:R.type,async connect({chainId:r,isReconnecting:o,withCapabilities:t}={}){const e=await this.getInstance(),c=e.getProvider();let a=[];o&&(a=await this.getAccounts().catch(()=>[]));try{let n,i;if(!(a!=null&&a.length)){const u=M.chains.map(g=>z(g.id));l.connectAndSign||l.connectWith?(l.connectAndSign?n=(await e.connectAndSign({chainIds:u,message:l.connectAndSign})).signature:l.connectWith&&(i=(await e.connectWith({chainIds:u,method:l.connectWith.method,params:l.connectWith.params})).result),a=await this.getAccounts()):a=(await e.connect({chainIds:u})).accounts.map(w=>D(w))}let s=await this.getChainId();if(r&&s!==r){const u=await this.switchChain({chainId:r}).catch(g=>{if(g.code===f.code)throw g;return{id:s}});s=(u==null?void 0:u.id)??s}return n?c.emit("connectAndSign",{accounts:a,chainId:z(s),signResponse:n}):i&&c.emit("connectWith",{accounts:a,chainId:z(s),connectWithResponse:i}),{accounts:t?a.map(u=>({address:u,capabilities:{}})):a,chainId:s}}catch(n){const i=n;throw i.code===f.code?new f(i):i.code===Y.code?new Y(i):i}},async disconnect(){return(await this.getInstance()).disconnect()},async getAccounts(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c)return(await c.request({method:"eth_accounts"})).map(n=>D(n))}const r=await this.getInstance();return r.accounts.length?r.accounts.map(c=>D(c)):(await r.getProvider().request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c){const a=await c.request({method:"eth_chainId"});return Number(a)}}const r=await this.getInstance();if(r.getChainId())return Number(r.getChainId());const t=await r.getProvider().request({method:"eth_chainId"});return Number(t)},async getProvider(){var o;if(!p&&!d){const t=(o=M.providers[0])==null?void 0:o.provider;if(t)return t}return(await this.getInstance()).getProvider()},async isAuthorized(){var r;try{if(!p&&!d){const e=(r=M.providers[0])==null?void 0:r.provider;if(e)return(await e.request({method:"eth_accounts"})).length>0}const o=10;return!!(await m(async()=>E(async()=>{const e=await this.getAccounts();if(!e.length)throw new Error("try again");return e},{timeout:o}),{delay:o+1,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:o}){var c,a;const t=M.chains.find(({id:n})=>n===Number(o));if(!t)throw new L(new O);const e=z(o);try{return await(await this.getInstance()).switchChain({chainId:e,chainConfiguration:{blockExplorerUrls:r!=null&&r.blockExplorerUrls?[...r.blockExplorerUrls]:(c=t.blockExplorers)!=null&&c.default.url?[t.blockExplorers.default.url]:void 0,chainId:e,chainName:(r==null?void 0:r.chainName)??t.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:(r==null?void 0:r.nativeCurrency)??t.nativeCurrency,rpcUrls:r!=null&&r.rpcUrls?[...r.rpcUrls]:(a=t.rpcUrls.default)!=null&&a.http?[...t.rpcUrls.default.http]:void 0}}),t}catch(n){const i=n;throw i.code===f.code?new f(i):new L(i)}},async onAccountsChanged(r){M.emitter.emit("change",{accounts:r.map(o=>D(o))})},onChainChanged(r){const o=Number(r);M.emitter.emit("change",{chainId:o})},async onConnect(r){const o=await this.getAccounts();if(o.length===0)return;const t=Number(r.chainId);M.emitter.emit("connect",{accounts:o,chainId:t})},async onDisconnect(r){r&&r.code===1013&&await this.getProvider()&&(await this.getAccounts()).length||M.emitter.emit("disconnect")},onDisplayUri(r){M.emitter.emit("message",{type:"display_uri",data:r})},async getInstance(){var r;if(!p){if(!d){const{createEVMClient:o}=await(async()=>{try{return b(()=>import("./connectors-BkiAkXrA.js"),[])}catch{throw new Error('dependency "@metamask/connect-evm" not found')}})(),t=typeof window>"u"?{name:"wagmi"}:{name:window.location.hostname,url:window.location.href};d=o({...l,skipAutoAnnounce:!0,api:{supportedNetworks:Object.fromEntries(M.chains.map(e=>{var c;return[z(e.id),((c=e.rpcUrls.default)==null?void 0:c.http[0])??""]}))},dapp:l.dapp??{...t,...l.dappMetadata},debug:l.debug??((r=l.logging)==null?void 0:r.sdk),eventHandlers:{accountsChanged:this.onAccountsChanged.bind(this),chainChanged:this.onChainChanged.bind(this),connect:this.onConnect.bind(this),disconnect:this.onDisconnect.bind(this),displayUri:this.onDisplayUri.bind(this)},analytics:{integrationType:"wagmi"},ui:{...l.ui,...l.headless!=null&&{headless:l.headless}},...l.mobile&&{mobile:l.mobile}})}p=await d}return p}}))}function ft(l={}){const p=d=>typeof d.on=="function"&&typeof d.removeListener=="function";return T(d=>{const M=d.chains??l.chains??[],r=d.transports?d.transports:l.transports;let o,t,e,c,a;return{async connect({chainId:n=M[0].id,...i}={}){const s="isReconnecting"in i&&i.isReconnecting||!1,u="withCapabilities"in i&&i.withCapabilities||!1;let g=[],w;if(s&&([g,w]=await Promise.all([this.getAccounts().catch(()=>[]),this.getChainId().catch(()=>{})]),n&&w!==n)){const h=await this.switchChain({chainId:n}).catch(I=>{if(I.code===f.code)throw I;return{id:w}});w=(h==null?void 0:h.id)??w}const y=await this.getProvider();try{if(!(g!=null&&g.length)&&!s){const{RpcSchema:h}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})(),{z:I}=await(()=>{try{return b(()=>import("./connectors-DAWtxdNk.js"),[])}catch{throw new Error('dependency "porto/internal" not found')}})(),j=await y.request({method:"wallet_connect",params:[{..."capabilities"in i?{capabilities:I.encode(h.wallet_connect.Capabilities,i.capabilities??{})}:{},chainIds:[z(n),...M.filter(A=>A.id!==n).map(A=>z(A.id))]}]});g=j.accounts,w=Number(j.chainIds[0])}if(!w)throw new O;return p(y)&&(c&&(y.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),y.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),y.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),y.on("disconnect",a))),{accounts:g.map(h=>typeof h=="object"?u?h:h.address:u?{address:h,capabilities:{}}:h),chainId:w}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){const n=await this.getProvider();p(n)&&(e&&(n.removeListener("chainChanged",e),e=void 0),a&&(n.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),n.on("connect",c))),await n.request({method:"wallet_disconnect"})},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(s=>D(s))},async getChainId(){const i=await(await this.getProvider()).request({method:"eth_chainId"});return Number(i)},async getPortoInstance(){return o??(o=(async()=>{const{Porto:n}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})();return n.create({...l,announceProvider:!1,chains:M,transports:r})})()),await o},async getProvider(){return(await this.getPortoInstance()).provider},icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIyIiBoZWlnaHQ9IjQyMiIgdmlld0JveD0iMCAwIDQyMiA0MjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZ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NjI5IDI3Ni40NTUgMzI5LjUxMSAyNzYuNDU1SDkwLjk0MDRDODUuNDUwNSAyNzYuNDU1IDgxIDI4MC44OTMgODEgMjg2LjM2NlYzMDYuMTg4QzgxIDMxMS42NjIgODUuNDUwNSAzMTYuMTAxIDkwLjk0MDQgMzE2LjEwMUgzMjkuNTExQzMzNS4wMDEgMzE2LjEwMSAzMzkuNDUyIDMxMS42NjIgMzM5LjQ1MiAzMDYuMTg4VjI4Ni4zNjZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjY5Ljg2OCAxMzEuNzUyQzI2OS44NjggMTI2LjI3OCAyNzQuMzE4IDEyMS44NCAyNzkuODA4IDEyMS44NEgzMTEuNjE4QzMxNy4xMDggMTIxLjg0IDMyMS41NTggMTI2LjI3OCAzMjEuNTU4IDEzMS43NTJWMTYxLjQ4NUMzMjEuNTU4IDE2Ni45NTkgMzE3LjEwOCAxNzEuMzk2IDMxMS42MTggMTcxLjM5NkgyNzkuODA4QzI3NC4zMTggMTcxLjM5NiAyNjkuODY4IDE2Ni45NTkgMjY5Ljg2OCAxNjEuNDg1VjEzMS43NTJaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfMTUiPgo8cmVjdCB3aWR0aD0iMjU5IiBoZWlnaHQ9IjIxMyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgxIDEwNCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",id:"xyz.ithaca.porto",async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},name:"Porto",async onAccountsChanged(n){d.emitter.emit("change",{accounts:n.map(i=>D(i))})},onChainChanged(n){const i=Number(n);d.emitter.emit("change",{chainId:i})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);d.emitter.emit("connect",{accounts:i,chainId:s});const u=await this.getProvider();p(u)&&(c&&(u.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),u.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),u.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),u.on("disconnect",a)))},async onDisconnect(n){const i=await this.getProvider();d.emitter.emit("disconnect"),p(i)&&(e&&(i.removeListener("chainChanged",e),e=void 0),a&&(i.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),i.on("connect",c)))},async setup(){if(!c){const n=await this.getProvider();if(!p(n))return;c=this.onConnect.bind(this),n.on("connect",c)}},async switchChain({chainId:n}){const i=M.find(u=>u.id===n);if(!i)throw new L(new O);return await(await this.getProvider()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i},type:"injected"}})}W.type="safe";function W(l={}){const{shimDisconnect:p=!1}=l;let d,M;return T(r=>({id:"safe",name:"Safe",type:W.type,async connect({withCapabilities:o}={}){var a;const t=await this.getProvider();if(!t)throw new k;const e=await this.getAccounts(),c=await this.getChainId();return M||(M=this.onDisconnect.bind(this),t.on("disconnect",M)),p&&await((a=r.storage)==null?void 0:a.removeItem("safe.disconnected")),{accounts:o?e.map(n=>({address:n,capabilities:{}})):e,chainId:c}},async disconnect(){var t;const o=await this.getProvider();if(!o)throw new k;M&&(o.removeListener("disconnect",M),M=void 0),p&&await((t=r.storage)==null?void 0:t.setItem("safe.disconnected",!0))},async getAccounts(){const o=await this.getProvider();if(!o)throw new k;return(await o.request({method:"eth_accounts"})).map(D)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!d){const{default:t}=await(()=>{try{return b(()=>import("./index-CBxG_uWU.js"),__vite__mapDeps([27,28,10,11,7,4,6,8,20]))}catch{throw new Error('dependency "@safe-global/safe-apps-sdk" not found')}})(),e=new t(l),c=await E(()=>e.safe.getInfo(),{timeout:l.unstable_getInfoTimeout??10});if(!c)throw new Error("Could not load Safe information");const a=await(async()=>{const n=await(()=>{try{return b(()=>import("./index-CdMRLSY-.js").then(i=>i.i),__vite__mapDeps([29,4,28,30,7,15,6,8]))}catch{throw new Error('dependency "@safe-global/safe-apps-provider" not found')}})();return typeof n.SafeAppProvider!="function"&&typeof n.default.SafeAppProvider=="function"?n.default.SafeAppProvider:n.SafeAppProvider})();d=new a(c,e)}return d}},async getChainId(){const o=await this.getProvider();if(!o)throw new k;return Number(o.chainId)},async isAuthorized(){var o;try{return p&&await((o=r.storage)==null?void 0:o.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}const Dt="8.0.20";Z.type="walletConnect";function Z(l){const p=l.isNewChainsStale??!0;let d,M;const r="eip155";let o,t,e,c,a,n;return T(i=>({id:"walletConnect",name:"WalletConnect",type:Z.type,async setup(){const s=await this.getProvider().catch(()=>null);s&&(e||(e=this.onConnect.bind(this),s.on("connect",e)),a||(a=this.onSessionDelete.bind(this),s.on("session_delete",a)))},async connect({chainId:s,withCapabilities:u,...g}={}){var w,y;try{const h=await this.getProvider();if(!h)throw new k;c||(c=this.onDisplayUri,h.on("display_uri",c));let I=s;if(!I){const N=await((w=i.storage)==null?void 0:w.getItem("state"))??{};i.chains.some(S=>S.id===N.chainId)?I=N.chainId:I=(y=i.chains[0])==null?void 0:y.id}if(!I)throw new Error("No chains found on connector.");const j=await this.isChainsStale();if(h.session&&j&&await h.disconnect(),!h.session||j){const N=i.chains.filter(C=>C.id!==I).map(C=>C.id);await h.connect({optionalChains:[I,...N],..."pairingTopic"in g?{pairingTopic:g.pairingTopic}:{}}),this.setRequestedChainsIds(i.chains.map(C=>C.id))}const A=(await h.enable()).map(N=>D(N));let v=await this.getChainId();if(s&&v!==s){const N=await this.switchChain({chainId:s}).catch(C=>{var S;if(C.code===f.code&&((S=C.cause)==null?void 0:S.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw C;return{id:v}});v=(N==null?void 0:N.id)??v}return c&&(h.removeListener("display_uri",c),c=void 0),e&&(h.removeListener("connect",e),e=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),t||(t=this.onChainChanged.bind(this),h.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),h.on("disconnect",n)),a||(a=this.onSessionDelete.bind(this),h.on("session_delete",a)),{accounts:u?A.map(N=>({address:N,capabilities:{}})):A,chainId:v}}catch(h){throw/(user rejected|connection request reset)/i.test(h==null?void 0:h.message)?new f(h):h}},async disconnect(){const s=await this.getProvider();try{await(s==null?void 0:s.disconnect())}catch(u){if(!/No matching key/i.test(u.message))throw u}finally{t&&(s==null||s.removeListener("chainChanged",t),t=void 0),n&&(s==null||s.removeListener("disconnect",n),n=void 0),e||(e=this.onConnect.bind(this),s==null||s.on("connect",e)),o&&(s==null||s.removeListener("accountsChanged",o),o=void 0),a&&(s==null||s.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(u=>D(u))},async getProvider({chainId:s}={}){var g;async function u(){const w=i.chains.map(h=>h.id);if(!w.length)return;const{EthereumProvider:y}=await(()=>{try{return b(()=>import("./index.es-CCbadZ01.js").then(h=>h.n),__vite__mapDeps([31,6,4,7,8,15,32,14,25,33,34,16]))}catch{throw new Error('dependency "@walletconnect/ethereum-provider" not found')}})();return await y.init({...l,disableProviderPing:!0,optionalChains:w,projectId:l.projectId,rpcMap:Object.fromEntries(i.chains.map(h=>{const[I]=$({chain:h,transports:i.transports});return[h.id,I]})),showQrModal:l.showQrModal??!0})}return d||(M||(M=u()),d=await M,d==null||d.events.setMaxListeners(Number.POSITIVE_INFINITY)),s&&await((g=this.switchChain)==null?void 0:g.call(this,{chainId:s})),d},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[s,u]=await Promise.all([this.getAccounts(),this.getProvider()]);return s.length?await this.isChainsStale()&&u.session?(await u.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:s,chainId:u}){var h,I,j;const g=await this.getProvider();if(!g)throw new k;const w=i.chains.find(A=>A.id===u);if(!w)throw new L(new O);let y=()=>{};try{await Promise.all([new Promise(v=>{y=N=>{N.chainId===u&&(i.emitter.off("change",y),v())},i.emitter.on("change",y)}),g.request({method:"wallet_switchEthereumChain",params:[{chainId:z(u)}]})]);const A=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...A,u]),w}catch(A){i.emitter.off("change",y);const v=A;if(/(user rejected)/i.test(v.message))throw new f(v);try{let N;s!=null&&s.blockExplorerUrls?N=s.blockExplorerUrls:N=(h=w.blockExplorers)!=null&&h.default.url?[(I=w.blockExplorers)==null?void 0:I.default.url]:[];let C;(j=s==null?void 0:s.rpcUrls)!=null&&j.length?C=s.rpcUrls:C=[...w.rpcUrls.default.http];const S={blockExplorerUrls:N,chainId:z(u),chainName:(s==null?void 0:s.chainName)??w.name,iconUrls:s==null?void 0:s.iconUrls,nativeCurrency:(s==null?void 0:s.nativeCurrency)??w.nativeCurrency,rpcUrls:C};await g.request({method:"wallet_addEthereumChain",params:[S]});const V=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...V,u]),w}catch(N){throw new f(N)}}},onAccountsChanged(s){s.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:s.map(u=>D(u))})},onChainChanged(s){const u=Number(s);i.emitter.emit("change",{chainId:u})},async onConnect(s){const u=Number(s.chainId),g=await this.getAccounts();i.emitter.emit("connect",{accounts:g,chainId:u})},async onDisconnect(s){this.setRequestedChainsIds([]),i.emitter.emit("disconnect");const u=await this.getProvider();o&&(u.removeListener("accountsChanged",o),o=void 0),t&&(u.removeListener("chainChanged",t),t=void 0),n&&(u.removeListener("disconnect",n),n=void 0),a&&(u.removeListener("session_delete",a),a=void 0),e||(e=this.onConnect.bind(this),u.on("connect",e))},onDisplayUri(s){i.emitter.emit("message",{type:"display_uri",data:s})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var u,g,w;return d?((w=(g=(u=d.session)==null?void 0:u.namespaces[r])==null?void 0:g.accounts)==null?void 0:w.map(y=>Number.parseInt(y.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var s;return await((s=i.storage)==null?void 0:s.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!p)return!1;const s=i.chains.map(w=>w.id),u=this.getNamespaceChainsIds();if(u.length&&!u.some(w=>s.includes(w)))return!1;const g=await this.getRequestedChainsIds();return!s.every(w=>g.includes(w))},async setRequestedChainsIds(s){var u;await((u=i.storage)==null?void 0:u.setItem(this.requestedChainsStorageKey,s))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}export{yt as baseAccount,q as coinbaseWallet,zt as injected,R as metaMask,Q as mock,ft as porto,W as safe,It as tempoWallet,Dt as version,Z as walletConnect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r}from"./parseSignature-CinRawwX.js";import{B as T,E as g,a as b,b as h,F as y,W as f,d as v,e as A,f as S,g as I,p as F,l as R,n as x,p as C,h as B,s as N,z as P}from"./parseSignature-CinRawwX.js";import{I as U,c as w,a as L,p as M,w as H}from"./custom-CHMO6DAH.js";import{h as s}from"./W3MFrameProviderSingleton-C9eN6p7c.js";import{U as z,c as q,f as V,s as O,w as G,a as j}from"./W3MFrameProviderSingleton-C9eN6p7c.js";import{A as K,a as Z,B as J,b as Q,C as X,D as Y,E as _,F as $,c as aa,H as ra,I as oa,d as sa,e as ea,f as ta,g as na,h as ia,i as ca,j as da,k as Ea,l as ua,J as pa,L as la,M as ma,m as Ta,N as ga,n as ba,o as ha,P as ya,p as fa,q as va,R as Aa,r as Sa,s as Ia,t as Fa,u as Ra,S as xa,v as Ca,w as Ba,x as Na,T as Pa,y as Da,z as Ua,G as wa,U as La,K as Ma,O as Ha,Q as ka,V as za,W as qa,X as Va,Y as Oa,Z as Ga,_ as ja,$ as Wa,a0 as Ka,a1 as Za,a2 as Ja,a3 as Qa,a4 as Xa,a5 as Ya,a6 as _a,a7 as $a,a8 as ar,a9 as rr,aa as or,ab as sr,ac as er,ad as tr,ae as nr,af as ir,ag as cr,ah as dr,ai as Er,aj as ur,ak as pr,al as lr,am as mr,an as Tr,ao as gr,ap as br,a1 as hr}from"./NetworkUtil-DRBYr7tG.js";import{A as fr,a as vr,b as Ar,c as Sr,d as Ir,e as Fr,f as Rr,g as xr,h as Cr,i as Br,j as Nr,k as Pr,l as Dr,m as Ur,n as wr,o as Lr,p as Mr,B as Hr,q as kr,r as zr,C as qr,s as Vr,t as Or,u as Gr,v as jr,w as Wr,x as Kr,y as Zr,z as Jr,D as Qr,E as Xr,F as Yr,G as _r,H as $r,I as ao,J as ro,K as oo,L as so,M as eo,N as to,O as no,P as io,Q as co,R as Eo,S as uo,T as po,U as lo,V as mo,W as To,X as go,Y as bo,Z as ho,_ as yo,$ as fo,a0 as vo,a1 as Ao,a2 as So,a3 as Io,a4 as Fo,a5 as Ro,a6 as xo,a7 as Co,a8 as Bo,a9 as No,aa as Po,ab as Do,ac as Uo,ad as wo,ae as Lo,af as Mo,ag as Ho,ah as ko,ai as zo,aj as qo,ak as Vo,al as Oo,am as Go,an as jo,ao as Wo,ap as Ko,aq as Zo,ar as Jo,as as Qo,at as Xo,au as Yo,av as _o,aw as $o,ax as as,ay as rs,az as os,aA as ss,aB as es,aC as ts,aD as ns,aE as is,aF as cs,aG as ds,aH as Es,aI as us,aJ as ps,aK as ls,aL as ms,aM as Ts,aN as gs,aM as bs,aO as hs,aP as ys,aQ as fs,aR as vs,aS as As,aT as Ss,aU as Is,aV as Fs,aW as Rs,aX as xs,aY as Cs,aZ as Bs,a_ as Ns,a$ as Ps,b0 as Ds,b1 as Us,b2 as ws,b3 as Ls,b4 as Ms,aL as Hs,aM as ks,b4 as zs,aN as qs,aM as Vs,b5 as Os,b6 as Gs,aA as js}from"./sendRawTransaction-BJNSpFJo.js";import{I as Ks,a as Zs,b as Js,g as Qs,h as Xs,c as Ys,d as _s,e as $s,p as ae,t as re,v as oe}from"./hashTypedData-EVHZYlMo.js";import{d as ee,e as te,a as ne}from"./localBatchGatewayRequest-BEscwULf.js";import{ccipRequest as ce,ccipRequest as de,offchainLookup as Ee,offchainLookupAbiItem as ue,offchainLookupSignature as pe}from"./ccip-BJ7oys_I.js";import{d as t}from"./verifyHash-Bah8UUrJ.js";import{e as me,p as Te,a as ge,s as be,s as he}from"./verifyHash-Bah8UUrJ.js";import{a as fe,b as ve,c as Ae,s as Se,d as Ie}from"./serializeTransaction-Cu2FW0RG.js";import"./secp256k1-GlWdSmTG.js";import"./index-MxzGamB6.js";import"./react-E8ng6RF2.js";import"./ethers-BxoDGoYp.js";import"./index-BwWuCRvy.js";import"./index-DsKgUXPz.js";import"./browser-ponyfill-DgNUJw98.js";export{fr as AbiConstructorNotFoundError,vr as AbiConstructorParamsNotFoundError,Ar as AbiDecodingDataSizeTooSmallError,Sr as AbiDecodingZeroDataError,Ir as AbiEncodingArrayLengthMismatchError,Fr as AbiEncodingBytesSizeMismatchError,Rr as AbiEncodingLengthMismatchError,xr as AbiErrorInputsNotFoundError,Cr as AbiErrorNotFoundError,Br as AbiErrorSignatureNotFoundError,Nr as AbiEventNotFoundError,Pr as AbiEventSignatureEmptyTopicsError,Dr as AbiEventSignatureNotFoundError,Ur as AbiFunctionNotFoundError,wr as AbiFunctionOutputsNotFoundError,Lr as AbiFunctionSignatureNotFoundError,Mr as AccountStateConflictError,K as AtomicReadyWalletRejectedUpgradeError,Z as AtomicityNotSupportedError,J as BaseError,Hr as BaseFeeScalarError,kr as BlockNotFoundError,T as BundleFailedError,Q as BundleTooLargeError,zr as BytesSizeMismatchError,qr as CallExecutionError,X as ChainDisconnectedError,Vr as ChainDoesNotSupportContract,Or as ChainMismatchError,Gr as ChainNotFoundError,jr as CircularReferenceError,Wr as ClientChainNotConfiguredError,Kr as ContractFunctionExecutionError,Zr as ContractFunctionRevertedError,Jr as ContractFunctionZeroDataError,Qr as CounterfactualDeploymentFailedError,Xr as DecodeLogDataMismatch,Yr as DecodeLogTopicsMismatch,Y as DuplicateIdError,_r as Eip1559FeesNotSupportedError,g as EnsAvatarInvalidNftUriError,b as EnsAvatarUnsupportedNamespaceError,h as EnsAvatarUriResolutionError,$r as EstimateGasExecutionError,_ as ExecutionRevertedError,$ as FeeCapTooHighError,aa as FeeCapTooLowError,y as FilterTypeNotSupportedError,ra as HttpRequestError,oa as InsufficientFundsError,sa as IntegerOutOfRangeError,ea as InternalRpcError,ta as IntrinsicGasTooHighError,na as IntrinsicGasTooLowError,ao as InvalidAbiDecodingTypeError,ro as InvalidAbiEncodingTypeError,oo as InvalidAbiItemError,so as InvalidAbiParametersError,eo as InvalidAbiTypeParameterError,to as InvalidAddressError,no as InvalidArrayError,ia as InvalidBytesBooleanError,io as InvalidChainIdError,U as InvalidDecimalNumberError,co as InvalidDefinitionTypeError,Ks as InvalidDomainError,Eo as InvalidFunctionModifierError,ca as InvalidHexBooleanError,da as InvalidInputRpcError,uo as InvalidLegacyVError,po as InvalidModifierError,lo as InvalidParameterError,Ea as InvalidParamsRpcError,mo as InvalidParenthesisError,Zs as InvalidPrimaryTypeError,ua as InvalidRequestRpcError,To as InvalidSerializableTransactionError,go as InvalidSignatureError,bo as InvalidStorageKeySizeError,ho as InvalidStructSignatureError,Js as InvalidStructTypeError,pa as JsonRpcVersionUnsupportedError,la as LimitExceededRpcError,yo as MaxFeePerGasTooLowError,ma as MethodNotFoundRpcError,Ta as MethodNotSupportedRpcError,ga as NonceMaxValueError,ba as NonceTooHighError,ha as NonceTooLowError,ya as ParseRpcError,fa as ProviderDisconnectedError,va as ProviderRpcError,fo as RawContractError,Aa as ResourceNotFoundRpcError,Sa as ResourceUnavailableRpcError,Ia as ResponseBodyTooLargeError,Fa as RpcError,Ra as RpcRequestError,xa as SizeExceedsPaddingSizeError,Ca as SizeOverflowError,Ba as SliceOffsetOutOfBoundsError,vo as SolidityProtectedKeywordError,Ao as StateAssignmentConflictError,Na as SwitchChainError,Pa as TimeoutError,Da as TipAboveFeeCapError,So as TransactionExecutionError,Io as TransactionNotFoundError,Fo as TransactionReceiptNotFoundError,Ua as TransactionRejectedRpcError,wa as TransactionTypeNotSupportedError,La as UnauthorizedProviderError,Ma as UnknownBundleIdError,Ha as UnknownNodeError,ka as UnknownRpcError,Ro as UnknownSignatureError,xo as UnknownTypeError,za as UnsupportedChainIdError,qa as UnsupportedNonOptionalCapabilityError,Co as UnsupportedPackedAbiType,Va as UnsupportedProviderMethodError,z as UrlRequiredError,Oa as UserRejectedRequestError,f as WaitForCallsStatusTimeoutError,Bo as WaitForTransactionReceiptTimeoutError,No as assertCurrentChain,Po as assertRequest,fe as assertTransactionEIP1559,ve as assertTransactionEIP2930,Ae as assertTransactionLegacy,Do as blobsToCommitments,Uo as blobsToProofs,Ga as boolToBytes,ja as boolToHex,wo as bytesToBigInt,Lo as bytesToBool,Wa as bytesToHex,Mo as bytesToNumber,Ho as bytesToString,ce as ccipFetch,de as ccipRequest,ko as checksumAddress,zo as commitmentToVersionedHash,qo as commitmentsToVersionedHashes,Vo as concat,Oo as concatBytes,Go as concatHex,w as createClient,v as createNonceManager,r as createPublicClient,q as createTransport,L as custom,jo as decodeAbiParameters,Wo as decodeErrorResult,Ko as decodeEventLog,ee as decodeFunctionData,Zo as decodeFunctionResult,Jo as defineBlock,t as defineChain,Qo as defineTransaction,Xo as defineTransactionReceipt,Yo as defineTransactionRequest,_o as deploylessCallViaBytecodeBytecode,$o as deploylessCallViaFactoryBytecode,as as encodeAbiParameters,rs as encodeDeployData,te as encodeErrorResult,A as encodeEventTopics,os as encodeFunctionData,ne as encodeFunctionResult,S as encodePacked,Ka as erc20Abi,Za as erc6492SignatureValidatorAbi,ss as erc6492SignatureValidatorByteCode,I as ethAddress,Ja as etherUnits,me as extendSchema,V as fallback,es as formatBlock,ts as formatEther,Qa as formatGwei,ns as formatLog,is as formatTransaction,cs as formatTransactionReceipt,ds as formatTransactionRequest,Xa as formatUnits,Ya as fromHex,Es as getAbiItem,us as getAddress,ps as getChainContractAddress,ls as getContractError,ms as getEventSelector,Ts as getEventSignature,gs as getFunctionSelector,bs as getFunctionSignature,hs as getTransactionType,Qs as getTypesForEIP712Domain,_a as gweiUnits,Xs as hashDomain,Ys as hashMessage,_s as hashStruct,$s as hashTypedData,$a as hexToBigInt,ar as hexToBool,rr as hexToBytes,or as hexToNumber,F as hexToSignature,sr as hexToString,s as http,ys as isAddress,fs as isAddressEqual,er as isHex,vs as keccak256,R as labelhash,As as maxUint16,Ss as maxUint256,tr as multicall3Abi,x as namehash,nr as numberToBytes,ir as numberToHex,Ee as offchainLookup,ue as offchainLookupAbiItem,pe as offchainLookupSignature,cr as pad,dr as padBytes,Er as padHex,Is as parseAbi,Te as parseAbiItem,ge as parseAbiParameters,Fs as parseEventLogs,C as parseSignature,M as parseUnits,Rs as prepareEncodeFunctionData,ae as presignMessagePrefix,B as publicActions,xs as recoverAddress,Cs as recoverPublicKey,Bs as rpcTransactionType,Se as serializeAccessList,N as serializeErc6492Signature,be as serializeSignature,Ie as serializeTransaction,Ns as sha256,O as shouldThrow,he as signatureToHex,ur as size,Ps as slice,Ds as sliceBytes,Us as sliceHex,pr as stringToBytes,lr as stringToHex,mr as stringify,ws as toBlobSidecars,Ls as toBlobs,Tr as toBytes,Ms as toEventHash,Hs as toEventSelector,ks as toEventSignature,zs as toFunctionHash,qs as toFunctionSelector,Vs as toFunctionSignature,gr as toHex,re as toPrefixedMessage,Os as toRlp,Gs as transactionType,br as trim,hr as universalSignatureValidatorAbi,js as universalSignatureValidatorByteCode,oe as validateTypedData,H as withCache,G as withRetry,j as withTimeout,P as zeroAddress};
|
|
1
|
+
import{c as r}from"./parseSignature-DT9uhIVC.js";import{B as T,E as g,a as b,b as h,F as y,W as f,d as v,e as A,f as S,g as I,p as F,l as R,n as x,p as C,h as B,s as N,z as P}from"./parseSignature-DT9uhIVC.js";import{I as U,c as w,a as L,p as M,w as H}from"./custom-BrSTU20K.js";import{h as s}from"./W3MFrameProviderSingleton-DdglCcve.js";import{U as z,c as q,f as V,s as O,w as G,a as j}from"./W3MFrameProviderSingleton-DdglCcve.js";import{A as K,a as Z,B as J,b as Q,C as X,D as Y,E as _,F as $,c as aa,H as ra,I as oa,d as sa,e as ea,f as ta,g as na,h as ia,i as ca,j as da,k as Ea,l as ua,J as pa,L as la,M as ma,m as Ta,N as ga,n as ba,o as ha,P as ya,p as fa,q as va,R as Aa,r as Sa,s as Ia,t as Fa,u as Ra,S as xa,v as Ca,w as Ba,x as Na,T as Pa,y as Da,z as Ua,G as wa,U as La,K as Ma,O as Ha,Q as ka,V as za,W as qa,X as Va,Y as Oa,Z as Ga,_ as ja,$ as Wa,a0 as Ka,a1 as Za,a2 as Ja,a3 as Qa,a4 as Xa,a5 as Ya,a6 as _a,a7 as $a,a8 as ar,a9 as rr,aa as or,ab as sr,ac as er,ad as tr,ae as nr,af as ir,ag as cr,ah as dr,ai as Er,aj as ur,ak as pr,al as lr,am as mr,an as Tr,ao as gr,ap as br,a1 as hr}from"./NetworkUtil-DRBYr7tG.js";import{A as fr,a as vr,b as Ar,c as Sr,d as Ir,e as Fr,f as Rr,g as xr,h as Cr,i as Br,j as Nr,k as Pr,l as Dr,m as Ur,n as wr,o as Lr,p as Mr,B as Hr,q as kr,r as zr,C as qr,s as Vr,t as Or,u as Gr,v as jr,w as Wr,x as Kr,y as Zr,z as Jr,D as Qr,E as Xr,F as Yr,G as _r,H as $r,I as ao,J as ro,K as oo,L as so,M as eo,N as to,O as no,P as io,Q as co,R as Eo,S as uo,T as po,U as lo,V as mo,W as To,X as go,Y as bo,Z as ho,_ as yo,$ as fo,a0 as vo,a1 as Ao,a2 as So,a3 as Io,a4 as Fo,a5 as Ro,a6 as xo,a7 as Co,a8 as Bo,a9 as No,aa as Po,ab as Do,ac as Uo,ad as wo,ae as Lo,af as Mo,ag as Ho,ah as ko,ai as zo,aj as qo,ak as Vo,al as Oo,am as Go,an as jo,ao as Wo,ap as Ko,aq as Zo,ar as Jo,as as Qo,at as Xo,au as Yo,av as _o,aw as $o,ax as as,ay as rs,az as os,aA as ss,aB as es,aC as ts,aD as ns,aE as is,aF as cs,aG as ds,aH as Es,aI as us,aJ as ps,aK as ls,aL as ms,aM as Ts,aN as gs,aM as bs,aO as hs,aP as ys,aQ as fs,aR as vs,aS as As,aT as Ss,aU as Is,aV as Fs,aW as Rs,aX as xs,aY as Cs,aZ as Bs,a_ as Ns,a$ as Ps,b0 as Ds,b1 as Us,b2 as ws,b3 as Ls,b4 as Ms,aL as Hs,aM as ks,b4 as zs,aN as qs,aM as Vs,b5 as Os,b6 as Gs,aA as js}from"./sendRawTransaction-DMNQstjs.js";import{I as Ks,a as Zs,b as Js,g as Qs,h as Xs,c as Ys,d as _s,e as $s,p as ae,t as re,v as oe}from"./hashTypedData-GzPvk7xU.js";import{d as ee,e as te,a as ne}from"./localBatchGatewayRequest-Cw1MGDr7.js";import{ccipRequest as ce,ccipRequest as de,offchainLookup as Ee,offchainLookupAbiItem as ue,offchainLookupSignature as pe}from"./ccip-KbhVKc8F.js";import{d as t}from"./verifyHash-Dn1rHH9h.js";import{e as me,p as Te,a as ge,s as be,s as he}from"./verifyHash-Dn1rHH9h.js";import{a as fe,b as ve,c as Ae,s as Se,d as Ie}from"./serializeTransaction-CzZEhSoE.js";import"./secp256k1-DVXxU7Aq.js";import"./index-DHBNDbnV.js";import"./react-E8ng6RF2.js";import"./ethers-BxoDGoYp.js";import"./index-BwWuCRvy.js";import"./index-uF27IY_4.js";import"./browser-ponyfill-DgNUJw98.js";export{fr as AbiConstructorNotFoundError,vr as AbiConstructorParamsNotFoundError,Ar as AbiDecodingDataSizeTooSmallError,Sr as AbiDecodingZeroDataError,Ir as AbiEncodingArrayLengthMismatchError,Fr as AbiEncodingBytesSizeMismatchError,Rr as AbiEncodingLengthMismatchError,xr as AbiErrorInputsNotFoundError,Cr as AbiErrorNotFoundError,Br as AbiErrorSignatureNotFoundError,Nr as AbiEventNotFoundError,Pr as AbiEventSignatureEmptyTopicsError,Dr as AbiEventSignatureNotFoundError,Ur as AbiFunctionNotFoundError,wr as AbiFunctionOutputsNotFoundError,Lr as AbiFunctionSignatureNotFoundError,Mr as AccountStateConflictError,K as AtomicReadyWalletRejectedUpgradeError,Z as AtomicityNotSupportedError,J as BaseError,Hr as BaseFeeScalarError,kr as BlockNotFoundError,T as BundleFailedError,Q as BundleTooLargeError,zr as BytesSizeMismatchError,qr as CallExecutionError,X as ChainDisconnectedError,Vr as ChainDoesNotSupportContract,Or as ChainMismatchError,Gr as ChainNotFoundError,jr as CircularReferenceError,Wr as ClientChainNotConfiguredError,Kr as ContractFunctionExecutionError,Zr as ContractFunctionRevertedError,Jr as ContractFunctionZeroDataError,Qr as CounterfactualDeploymentFailedError,Xr as DecodeLogDataMismatch,Yr as DecodeLogTopicsMismatch,Y as DuplicateIdError,_r as Eip1559FeesNotSupportedError,g as EnsAvatarInvalidNftUriError,b as EnsAvatarUnsupportedNamespaceError,h as EnsAvatarUriResolutionError,$r as EstimateGasExecutionError,_ as ExecutionRevertedError,$ as FeeCapTooHighError,aa as FeeCapTooLowError,y as FilterTypeNotSupportedError,ra as HttpRequestError,oa as InsufficientFundsError,sa as IntegerOutOfRangeError,ea as InternalRpcError,ta as IntrinsicGasTooHighError,na as IntrinsicGasTooLowError,ao as InvalidAbiDecodingTypeError,ro as InvalidAbiEncodingTypeError,oo as InvalidAbiItemError,so as InvalidAbiParametersError,eo as InvalidAbiTypeParameterError,to as InvalidAddressError,no as InvalidArrayError,ia as InvalidBytesBooleanError,io as InvalidChainIdError,U as InvalidDecimalNumberError,co as InvalidDefinitionTypeError,Ks as InvalidDomainError,Eo as InvalidFunctionModifierError,ca as InvalidHexBooleanError,da as InvalidInputRpcError,uo as InvalidLegacyVError,po as InvalidModifierError,lo as InvalidParameterError,Ea as InvalidParamsRpcError,mo as InvalidParenthesisError,Zs as InvalidPrimaryTypeError,ua as InvalidRequestRpcError,To as InvalidSerializableTransactionError,go as InvalidSignatureError,bo as InvalidStorageKeySizeError,ho as InvalidStructSignatureError,Js as InvalidStructTypeError,pa as JsonRpcVersionUnsupportedError,la as LimitExceededRpcError,yo as MaxFeePerGasTooLowError,ma as MethodNotFoundRpcError,Ta as MethodNotSupportedRpcError,ga as NonceMaxValueError,ba as NonceTooHighError,ha as NonceTooLowError,ya as ParseRpcError,fa as ProviderDisconnectedError,va as ProviderRpcError,fo as RawContractError,Aa as ResourceNotFoundRpcError,Sa as ResourceUnavailableRpcError,Ia as ResponseBodyTooLargeError,Fa as RpcError,Ra as RpcRequestError,xa as SizeExceedsPaddingSizeError,Ca as SizeOverflowError,Ba as SliceOffsetOutOfBoundsError,vo as SolidityProtectedKeywordError,Ao as StateAssignmentConflictError,Na as SwitchChainError,Pa as TimeoutError,Da as TipAboveFeeCapError,So as TransactionExecutionError,Io as TransactionNotFoundError,Fo as TransactionReceiptNotFoundError,Ua as TransactionRejectedRpcError,wa as TransactionTypeNotSupportedError,La as UnauthorizedProviderError,Ma as UnknownBundleIdError,Ha as UnknownNodeError,ka as UnknownRpcError,Ro as UnknownSignatureError,xo as UnknownTypeError,za as UnsupportedChainIdError,qa as UnsupportedNonOptionalCapabilityError,Co as UnsupportedPackedAbiType,Va as UnsupportedProviderMethodError,z as UrlRequiredError,Oa as UserRejectedRequestError,f as WaitForCallsStatusTimeoutError,Bo as WaitForTransactionReceiptTimeoutError,No as assertCurrentChain,Po as assertRequest,fe as assertTransactionEIP1559,ve as assertTransactionEIP2930,Ae as assertTransactionLegacy,Do as blobsToCommitments,Uo as blobsToProofs,Ga as boolToBytes,ja as boolToHex,wo as bytesToBigInt,Lo as bytesToBool,Wa as bytesToHex,Mo as bytesToNumber,Ho as bytesToString,ce as ccipFetch,de as ccipRequest,ko as checksumAddress,zo as commitmentToVersionedHash,qo as commitmentsToVersionedHashes,Vo as concat,Oo as concatBytes,Go as concatHex,w as createClient,v as createNonceManager,r as createPublicClient,q as createTransport,L as custom,jo as decodeAbiParameters,Wo as decodeErrorResult,Ko as decodeEventLog,ee as decodeFunctionData,Zo as decodeFunctionResult,Jo as defineBlock,t as defineChain,Qo as defineTransaction,Xo as defineTransactionReceipt,Yo as defineTransactionRequest,_o as deploylessCallViaBytecodeBytecode,$o as deploylessCallViaFactoryBytecode,as as encodeAbiParameters,rs as encodeDeployData,te as encodeErrorResult,A as encodeEventTopics,os as encodeFunctionData,ne as encodeFunctionResult,S as encodePacked,Ka as erc20Abi,Za as erc6492SignatureValidatorAbi,ss as erc6492SignatureValidatorByteCode,I as ethAddress,Ja as etherUnits,me as extendSchema,V as fallback,es as formatBlock,ts as formatEther,Qa as formatGwei,ns as formatLog,is as formatTransaction,cs as formatTransactionReceipt,ds as formatTransactionRequest,Xa as formatUnits,Ya as fromHex,Es as getAbiItem,us as getAddress,ps as getChainContractAddress,ls as getContractError,ms as getEventSelector,Ts as getEventSignature,gs as getFunctionSelector,bs as getFunctionSignature,hs as getTransactionType,Qs as getTypesForEIP712Domain,_a as gweiUnits,Xs as hashDomain,Ys as hashMessage,_s as hashStruct,$s as hashTypedData,$a as hexToBigInt,ar as hexToBool,rr as hexToBytes,or as hexToNumber,F as hexToSignature,sr as hexToString,s as http,ys as isAddress,fs as isAddressEqual,er as isHex,vs as keccak256,R as labelhash,As as maxUint16,Ss as maxUint256,tr as multicall3Abi,x as namehash,nr as numberToBytes,ir as numberToHex,Ee as offchainLookup,ue as offchainLookupAbiItem,pe as offchainLookupSignature,cr as pad,dr as padBytes,Er as padHex,Is as parseAbi,Te as parseAbiItem,ge as parseAbiParameters,Fs as parseEventLogs,C as parseSignature,M as parseUnits,Rs as prepareEncodeFunctionData,ae as presignMessagePrefix,B as publicActions,xs as recoverAddress,Cs as recoverPublicKey,Bs as rpcTransactionType,Se as serializeAccessList,N as serializeErc6492Signature,be as serializeSignature,Ie as serializeTransaction,Ns as sha256,O as shouldThrow,he as signatureToHex,ur as size,Ps as slice,Ds as sliceBytes,Us as sliceHex,pr as stringToBytes,lr as stringToHex,mr as stringify,ws as toBlobSidecars,Ls as toBlobs,Tr as toBytes,Ms as toEventHash,Hs as toEventSelector,ks as toEventSignature,zs as toFunctionHash,qs as toFunctionSelector,Vs as toFunctionSignature,gr as toHex,re as toPrefixedMessage,Os as toRlp,Gs as transactionType,br as trim,hr as universalSignatureValidatorAbi,js as universalSignatureValidatorByteCode,oe as validateTypedData,H as withCache,G as withRetry,j as withTimeout,P as zeroAddress};
|