@dcl/blog-site 0.2.3-23948667956.commit-cfe47f9 → 0.2.3-23954909858.commit-24a2883

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.
Files changed (157) hide show
  1. package/assets/{QueryClientProvider-mZKMZTwe.js → QueryClientProvider-BJpEZgT0.js} +1 -1
  2. package/assets/{SignInRedirect-CXUOqOjy.js → SignInRedirect-D0Bi_UTp.js} +2 -2
  3. package/assets/{X-3yocgepi.js → X-DBL-MTtR.js} +1 -1
  4. package/assets/{__federation_expose_App-CMGDAIUH.js → __federation_expose_App-BTqBR-5x.js} +1 -1
  5. package/assets/{__federation_fn_import-C51lglKS.js → __federation_fn_import-DHqMJa-J.js} +1 -1
  6. package/assets/__federation_shared_@dcl/{hooks-Dm9PRmKy.js → hooks-D32Mt1Ea.js} +3 -3
  7. package/assets/__federation_shared_@emotion/react-CPbKHY6Z.js +1 -0
  8. package/assets/__federation_shared_@emotion/{styled-aZ9bk9Xh.js → styled-CmRZFyIE.js} +1 -1
  9. package/assets/{__federation_shared_decentraland-ui2-KxrbFOTA.js → __federation_shared_decentraland-ui2-Bzlj4OSa.js} +6 -6
  10. package/assets/{__federation_shared_react-redux-Ckcz2edF.js → __federation_shared_react-redux-CAEXbsaD.js} +1 -1
  11. package/assets/{__federation_shared_react-router-dom-jUWpDOjR.js → __federation_shared_react-router-dom-L3Yg9xMM.js} +1 -1
  12. package/assets/{__federation_shared_viem-Cdp7wK0V.js → __federation_shared_viem-LQCb9k9A.js} +1 -1
  13. package/assets/{__federation_shared_wagmi-CHWRoybR.js → __federation_shared_wagmi-CelLoIC2.js} +1 -1
  14. package/assets/{add-DHMb_tRw.js → add-CvQPBN-D.js} +1 -1
  15. package/assets/{all-wallets-Bo3QRxXL.js → all-wallets-yft4I5Se.js} +1 -1
  16. package/assets/{app-store-BHwDXU8D.js → app-store-s3xLhjvX.js} +1 -1
  17. package/assets/{apple-BFX-plRw.js → apple-CJyFiw5y.js} +1 -1
  18. package/assets/{arrow-bottom-Djx9NXV2.js → arrow-bottom-BVjcAWaT.js} +1 -1
  19. package/assets/{arrow-bottom-circle-DcJnW2eo.js → arrow-bottom-circle-Dvn8yr1Y.js} +1 -1
  20. package/assets/{arrow-left-BS_dJGSP.js → arrow-left-BJqEVbeq.js} +1 -1
  21. package/assets/{arrow-right-B-mwy0Iu.js → arrow-right-brge2drP.js} +1 -1
  22. package/assets/{arrow-top-Di1bbZG1.js → arrow-top-CBZTxSjd.js} +1 -1
  23. package/assets/{auto-track-pkMvCaah.js → auto-track-5E4-vkLt.js} +1 -1
  24. package/assets/{bank-B9SMq-ix.js → bank-XdnikovD.js} +1 -1
  25. package/assets/{basic-DijYF-IW.js → basic-m_9MWlm0.js} +1 -1
  26. package/assets/{biconomy-CCw3vtwR.js → biconomy-DQDd-ucU.js} +1 -1
  27. package/assets/{browser-CdKdszu-.js → browser-DLAPWBMl.js} +1 -1
  28. package/assets/{card-CQu4Eu8c.js → card-CIUScwlX.js} +1 -1
  29. package/assets/{ccip-AgQ5AD9v.js → ccip-BsBvXqql.js} +1 -1
  30. package/assets/{checkmark-D2vezo75.js → checkmark-DYQFszdi.js} +1 -1
  31. package/assets/{checkmark-bold-DriAapzP.js → checkmark-bold-CGajBikz.js} +1 -1
  32. package/assets/{chevron-bottom-CcFEOVdH.js → chevron-bottom-hX62f6hS.js} +1 -1
  33. package/assets/{chevron-left-BXS-ybhL.js → chevron-left-Cpr6YyH7.js} +1 -1
  34. package/assets/{chevron-right-TvO5COya.js → chevron-right-CkJYdZNJ.js} +1 -1
  35. package/assets/{chevron-top-D84SgxMg.js → chevron-top-BSnKr1-5.js} +1 -1
  36. package/assets/{chrome-store-rpsfVQln.js → chrome-store-53Ypvt55.js} +1 -1
  37. package/assets/{clock-BMJ2gt7b.js → clock-DEfatJ8Z.js} +1 -1
  38. package/assets/{close-kAWkeKAP.js → close-DqBHD3Hm.js} +1 -1
  39. package/assets/{coinPlaceholder-Dz8MKewa.js → coinPlaceholder-CMSZKiXY.js} +1 -1
  40. package/assets/{compass-BednEqu-.js → compass-0UuoUyB5.js} +1 -1
  41. package/assets/{controller-D0Gc4Hsp.js → controller-Ds0TIVFD.js} +2 -2
  42. package/assets/{copy-D7rBk-hZ.js → copy-CsBcgu67.js} +1 -1
  43. package/assets/{core-Bn8Mr-tS.js → core-CboH7_QS.js} +3 -3
  44. package/assets/{createBundlerClient-DhRCLsYO.js → createBundlerClient-BUvayuyH.js} +1 -1
  45. package/assets/{createClient-C9QPJaZu.js → createClient-CpxNZHGg.js} +1 -1
  46. package/assets/{cursor-C8UG2IDe.js → cursor-DiiKg4u1.js} +1 -1
  47. package/assets/{cursor-transparent-CyP0H3C5.js → cursor-transparent-wp7iKHki.js} +1 -1
  48. package/assets/{decimals-B7Pm5rZk.js → decimals-B7gh-KnI.js} +1 -1
  49. package/assets/{decimals-DedKFk8m.js → decimals-Jpvanl9t.js} +1 -1
  50. package/assets/{desktop-LBcRpcZE.js → desktop-Ncpfek01.js} +1 -1
  51. package/assets/{detectExtension-C2uVeK-n.js → detectExtension-BCp8ZMqB.js} +1 -1
  52. package/assets/{disconnect-DEBEe-yK.js → disconnect-vxz7DJ24.js} +1 -1
  53. package/assets/{discord-BlVFKMf0.js → discord-CisclA_4.js} +1 -1
  54. package/assets/{emotion-react.browser.esm-BzYQLDSp.js → emotion-react.browser.esm-Cz9bFRVj.js} +1 -1
  55. package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-TsHx33zg.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-Cuis_X23.js} +1 -1
  56. package/assets/{encode-DvvW4ZKt.js → encode-DJOCcbGQ.js} +2 -2
  57. package/assets/{engine-CD7SeAap.js → engine-CMMFh7YT.js} +1 -1
  58. package/assets/{estimate-gas-CeHGaIbG.js → estimate-gas-B2i5DP7U.js} +3 -3
  59. package/assets/{estimate-l1-fee-ClMO5l7U.js → estimate-l1-fee-6NYoqQwr.js} +1 -1
  60. package/assets/{eth_getStorageAt-BHgF2qz5.js → eth_getStorageAt-c-gPgGmc.js} +1 -1
  61. package/assets/{etherscan-C_pqcV9R.js → etherscan-Dpxky7YK.js} +1 -1
  62. package/assets/{exclamation-triangle-R9Xq3IaG.js → exclamation-triangle-Vgbkzeje.js} +1 -1
  63. package/assets/{extension-DkA_7Cbg.js → extension-XiwzWZiV.js} +1 -1
  64. package/assets/{external-link-BPOw_fuW.js → external-link-DooP9vXR.js} +1 -1
  65. package/assets/{extractIPFS-B4LGER25.js → extractIPFS-VpklSmCB.js} +1 -1
  66. package/assets/{facebook-CMZk_t1A.js → facebook-WxgYMu0W.js} +1 -1
  67. package/assets/{farcaster-CveILPqa.js → farcaster-_vyqLI_c.js} +1 -1
  68. package/assets/{fee-data-BKBGP5kG.js → fee-data-XPcWGRRP.js} +1 -1
  69. package/assets/{fetchTokenMetadata-BLDHgO8L.js → fetchTokenMetadata-ChYAryIA.js} +2 -2
  70. package/assets/{filters-BspTrZpX.js → filters-DXIFGo38.js} +1 -1
  71. package/assets/{get-ecosystem-wallet-info-D3PrM5FE.js → get-ecosystem-wallet-info-CYaV8nzY.js} +1 -1
  72. package/assets/{getBalance-D7nzATjL.js → getBalance-BaZfkjmp.js} +1 -1
  73. package/assets/{getInstalledModules-Ck_Gj8FO.js → getInstalledModules-BpX15EOS.js} +1 -1
  74. package/assets/{getNFT-DXdMP0Q5.js → getNFT-B0ychhmD.js} +2 -2
  75. package/assets/{getNFT-BcCS23O_.js → getNFT-kGzOOeBa.js} +1 -1
  76. package/assets/{github-DoFHEMIF.js → github-DaPE472m.js} +1 -1
  77. package/assets/{google-NTQi9GVe.js → google-DpnL2qRd.js} +1 -1
  78. package/assets/{help-circle-DV0uNPdn.js → help-circle-CUILC3kO.js} +1 -1
  79. package/assets/{id-UAVc1FOO.js → id-Bw0FQKrZ.js} +1 -1
  80. package/assets/{image-BeHBzCPG.js → image-BlGULufu.js} +1 -1
  81. package/assets/{in-app-wallet-calls-CvFtsXP9.js → in-app-wallet-calls-C3PZKMG1.js} +1 -1
  82. package/assets/{index-DeklogZX.js → index-BMoluWtp.js} +1 -1
  83. package/assets/{index-DajuSfcu.js → index-BXFnz10D.js} +2 -2
  84. package/assets/{index-B2OCb4Ez.js → index-BeEIjpQW.js} +1 -1
  85. package/assets/index-BjzJcZq6.js +1 -1
  86. package/assets/{index-D6ZAha0r.js → index-C2NJyluS.js} +3 -3
  87. package/assets/{index-CjuQOkbh.js → index-CuF_FV-t.js} +1 -1
  88. package/assets/{index-C2hdqzGT.js → index-DEyuwX6T.js} +2 -2
  89. package/assets/{index-CgMDPZul.js → index-DOTdU2de.js} +1 -1
  90. package/assets/index-Dy0yjznp.js +1 -1
  91. package/assets/{index-DmAaXUNv.js → index-DztX0_Yi.js} +1 -1
  92. package/assets/{index-B65z14KI.js → index-VYRLGCVw.js} +1 -1
  93. package/assets/{index-D1lXZVQu.js → index-rhE3CzWW.js} +1 -1
  94. package/assets/{index-HvoTJwGm.js → index-uM0NO8r_.js} +1 -1
  95. package/assets/{index.es-C8Kfv-K1.js → index.es-B1N9yefF.js} +3 -3
  96. package/assets/{index.es-CAXGMBEH.js → index.es-BfgStfjd.js} +1 -1
  97. package/assets/{info-CzcA85TO.js → info-C-_-F6pR.js} +1 -1
  98. package/assets/{info-circle-D3Mr3R9u.js → info-circle-Ci6SutID.js} +1 -1
  99. package/assets/jsx-runtime-DncYoG30.js +1 -1
  100. package/assets/{lightbulb-B2FZtM_8.js → lightbulb-Dt7ipLz9.js} +1 -1
  101. package/assets/{localBatchGatewayRequest-BIEAG3VG.js → localBatchGatewayRequest-DGUw81MV.js} +1 -1
  102. package/assets/{mail-CkhGbows.js → mail-DrOuWXIw.js} +1 -1
  103. package/assets/{mobile-1H3FtqAS.js → mobile-Cy4L1B3n.js} +1 -1
  104. package/assets/{more-CZiQi624.js → more-BCpUphIA.js} +1 -1
  105. package/assets/{network-placeholder-DA2bm2rC.js → network-placeholder-CpU1-p17.js} +1 -1
  106. package/assets/{nftPlaceholder-C9t5Ydxp.js → nftPlaceholder-rebGRUlf.js} +1 -1
  107. package/assets/{off-D8z0OQ3M.js → off-DGqUQM_c.js} +1 -1
  108. package/assets/{openzeppelin-ZKz6sLW9.js → openzeppelin-0P6DyWnM.js} +1 -1
  109. package/assets/{ownerOf-D1aXOt9Q.js → ownerOf-Dk2bEFO7.js} +1 -1
  110. package/assets/{parseNft-LjEwmOst.js → parseNft-DtZPAUyF.js} +2 -2
  111. package/assets/{play-store-_X5LrPwx.js → play-store-DTDedaYk.js} +1 -1
  112. package/assets/{plus-JriDhMxt.js → plus-9LwMwCLL.js} +1 -1
  113. package/assets/{preload-helper-BorDCKdG.js → preload-helper-gq93rykL.js} +1 -1
  114. package/assets/{qr-code-DaB080BF.js → qr-code-dri7iBvJ.js} +1 -1
  115. package/assets/{qr-overlay-CGnFhcTk.js → qr-overlay-A_nwA0pd.js} +1 -1
  116. package/assets/{recycle-horizontal-CGeFmMrT.js → recycle-horizontal-BD2fGcKo.js} +1 -1
  117. package/assets/{refresh-Dgvxxw5C.js → refresh-8iCPOjCx.js} +1 -1
  118. package/assets/remoteEntry.js +1 -1
  119. package/assets/{reown-logo-CBX48aN9.js → reown-logo-B_mRv8gI.js} +1 -1
  120. package/assets/{resolveImplementation-Cb2bL1tx.js → resolveImplementation-ClGYKeUH.js} +1 -1
  121. package/assets/{search-DamXBOxM.js → search-BEqxSFW_.js} +1 -1
  122. package/assets/{secp256k1-UEF-yOzn.js → secp256k1-RErqDt1E.js} +1 -1
  123. package/assets/{send-BLpUSx_G.js → send-DurRlvo6.js} +1 -1
  124. package/assets/{send-batch-transaction-DnH876GL.js → send-batch-transaction-DQvWQoy3.js} +1 -1
  125. package/assets/{send-eip712-transaction-D_FU-Avh.js → send-eip712-transaction-BKY3_tUO.js} +2 -2
  126. package/assets/{send-gasless-transaction-MP1Q_mLW.js → send-gasless-transaction-DkKwh8QZ.js} +2 -2
  127. package/assets/{serializeTransaction-mtsVBaO6.js → serializeTransaction-BBd1Y6Jz.js} +1 -1
  128. package/assets/{session-proposal-CM3P7DaL.js → session-proposal-CMkr6bdh.js} +1 -1
  129. package/assets/{session-request-Dqw67u3p.js → session-request-B3nAEC1B.js} +2 -2
  130. package/assets/{signing-BFeVjjPi.js → signing-CCIWDdl7.js} +3 -3
  131. package/assets/{swapHorizontal-Br-MZ1tO.js → swapHorizontal-BbOGWuf_.js} +1 -1
  132. package/assets/{swapHorizontalBold-CkUNbZ1G.js → swapHorizontalBold-BOpjbN1z.js} +1 -1
  133. package/assets/{swapHorizontalMedium-D3qEQNb5.js → swapHorizontalMedium-BMckr8hm.js} +1 -1
  134. package/assets/{swapHorizontalRoundedBold-CzzBPCtt.js → swapHorizontalRoundedBold-DuIuAd5r.js} +1 -1
  135. package/assets/{swapVertical-Mrn3zm_W.js → swapVertical-n1gcS_tW.js} +1 -1
  136. package/assets/{telegram-ZTLC9FiA.js → telegram-B7Ex0lF-.js} +1 -1
  137. package/assets/{thirdweb-D5ezTmuN.js → thirdweb-BFjOnJdp.js} +3 -3
  138. package/assets/{three-dots-DYl4uQjm.js → three-dots-D_SO5C8m.js} +1 -1
  139. package/assets/{totalSupply-B5jHW8gx.js → totalSupply-C020CKSK.js} +1 -1
  140. package/assets/{twitch-DPLkA98Q.js → twitch-DhWM8g8v.js} +1 -1
  141. package/assets/{twitterIcon-BEY_UAyG.js → twitterIcon-BTuTUCjb.js} +1 -1
  142. package/assets/{uid-D00jCazq.js → uid-CVeUoK3j.js} +3 -3
  143. package/assets/{verify-DuPdiufm.js → verify-DwP8p9op.js} +1 -1
  144. package/assets/{verify-filled-CdqEW5AP.js → verify-filled-Ben6GFof.js} +1 -1
  145. package/assets/{w3m-modal-BLzhBUlF.js → w3m-modal-Cf39xxVY.js} +1 -1
  146. package/assets/{wait-for-tx-receipt-B-o5aPQ8.js → wait-for-tx-receipt-_I_fbAIh.js} +1 -1
  147. package/assets/{wallet-CZw1g3L8.js → wallet-BESSfQhF.js} +1 -1
  148. package/assets/{wallet-placeholder-OAkoJuru.js → wallet-placeholder-C0fWcNe8.js} +1 -1
  149. package/assets/{walletconnect-BJ3w7-IU.js → walletconnect-Crx4eOs5.js} +1 -1
  150. package/assets/{wallets-Q5RcRyG6.js → wallets-C9ogRGc7.js} +5 -5
  151. package/assets/{warning-circle-DpDeOZKv.js → warning-circle-DpYtfMER.js} +1 -1
  152. package/assets/{web-connector-CB7tpRui.js → web-connector-D8hJ0dwU.js} +3 -3
  153. package/assets/{webSocket-dQW3n9NM.js → webSocket-esTy5DPp.js} +1 -1
  154. package/assets/{x-liJqLZUi.js → x-HunGozNp.js} +1 -1
  155. package/index.html +17 -17
  156. package/package.json +3 -3
  157. package/assets/__federation_shared_@emotion/react-AmEOkpjC.js +0 -1
@@ -1,4 +1,4 @@
1
- import{l as H,m as V,n as A,B as I,o as ue,h as Ie,q as Z,i as U,S as Ca,v as ke,g as Pe,w as Qn,x as q,I as ku,y as Fe,z as Na,A as Cu,C as Tt,p as Un,D as Fo,E as Nu,f as Ru,F as Nn,e as ts,H as Mu,G as Ou,t as zu,a as _o,b as Fu,j as _u,J as Lu,K as Uu,k as Dt,L as ju}from"./utils-C7urdXtO.js";import{M as rb,N as sb,O as ob,P as ab,Q as ib,R as cb,T as ub,U as db,V as fb}from"./utils-C7urdXtO.js";import{i as Q,I as de,k as J,c as Ra,g as Ce,p as qu,L as er,a as Du}from"./publicKeyToAddress-CxEKPAKT.js";import{_ as zs}from"./preload-helper-BorDCKdG.js";import{s as Gu,a as tr,H as Hu,b as Vu}from"./sha256-DYtpy1Qz.js";import{c as pb,d as hb,e as mb,f as yb,g as bb,h as gb,i as wb,j as xb,k as vb,l as Eb,n as Pb,o as Ib,p as Ab,q as Tb,r as $b,t as Bb,u as Sb,v as kb,w as Cb,x as Nb,y as Rb,z as Mb,A as Ob,B as zb,C as Fb,D as _b,E as Lb,F as Ub,G as jb,I as qb,J as Db,K as Gb,L as Hb,M as Vb,N as Wb,O as Zb,P as Yb,Q as Kb,R as Jb,m as Xb,S as Qb,T as e6,U as t6,V as n6,W as r6,X as s6,Y as o6,Z as a6,_ as i6,$ as c6,a0 as u6,a1 as d6,a2 as f6,a3 as l6,a4 as p6,a5 as h6,a6 as m6,a7 as y6,a8 as b6,a9 as g6,aa as w6,ab as x6,ac as v6,ad as E6,ae as P6,af as I6,ag as A6,ah as T6,ai as $6,aj as B6,ak as S6,al as k6,am as C6,an as N6,ao as R6,ap as M6,aq as O6,ar as z6,as as F6,at as _6,au as L6,av as U6,aw as j6,ax as q6,ay as D6,az as G6,aA as H6,aB as V6,aC as W6,aD as Z6,aE as Y6,aF as K6,aG as J6,aH as X6,aI as Q6}from"./sha256-DYtpy1Qz.js";import{E as t5}from"./estimate-gas-CeHGaIbG.js";function nr(e,t){return({exclude:n,format:r})=>({exclude:n,format:(s,o)=>{const a=t(s,o);if(n)for(const i of n)delete a[i];return{...a,...r(s,o)}},type:e})}const Ma={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Fs(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?H(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?H(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ma[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=Wu(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Wm=nr("transaction",Fs);function Wu(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function _s(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:Fs(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Zm=nr("block",_s);function Le(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Oa={"0x0":"reverted","0x1":"success"};function Ls(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>Le(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?H(e.transactionIndex):null,status:e.status?Oa[e.status]:null,type:e.type?Ma[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Ym=nr("transactionReceipt",Ls),Zu={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function je(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Yu(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>V(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=A(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=A(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=A(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=A(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=A(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=A(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Zu[e.type]),typeof e.value<"u"&&(n.value=A(e.value)),n}const Km=nr("transactionRequest",je);function Yu(e){return e.map(t=>({address:t.address,r:t.r?A(BigInt(t.r)):t.r,s:t.s?A(BigInt(t.s)):t.s,chainId:A(t.chainId),nonce:A(t.nonce),...typeof t.yParity<"u"?{yParity:A(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:A(t.v)}:{}}))}function fe(e){return typeof e[0]=="string"?ye(e):Ku(e)}function Ku(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function ye(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let Lo=class extends I{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},za=class extends I{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},Ju=class extends I{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const Xu={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Ju({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new za({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function $t(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Xu);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Ne(e,t="hex"){const n=Fa(e),r=$t(new Uint8Array(n.length));return n.encode(r),t==="hex"?V(r.bytes):r.bytes}function ey(e,t="bytes"){return Ne(e,t)}function ty(e,t="hex"){return Ne(e,t)}function Fa(e){return Array.isArray(e)?Qu(e.map(t=>Fa(t))):e0(e)}function Qu(e){const t=e.reduce((s,o)=>s+o.length,0),n=_a(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:o}of e)o(s)}}}function e0(e){const t=typeof e=="string"?ue(e):e,n=_a(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function _a(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new I("Length is too large.")}const La={gwei:9,wei:18},Ua={ether:-9,wei:9},ny={ether:-18,gwei:-9};function ja(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${s||"0"}${o?`.${o}`:""}`}function Us(e,t="wei"){return ja(e,La[t])}function ce(e,t="wei"){return ja(e,Ua[t])}function mn(e){const t=Object.entries(e).map(([r,s])=>s===void 0||s===!1?null:[r,s]).filter(Boolean),n=t.reduce((r,[s])=>Math.max(r,s.length),0);return t.map(([r,s])=>` ${`${r}:`.padEnd(n+1)} ${s}`).join(`
1
+ import{l as H,m as V,n as A,B as I,o as ue,h as Ie,q as Z,i as U,S as Ca,v as ke,g as Pe,w as Qn,x as q,I as ku,y as Fe,z as Na,A as Cu,C as Tt,p as Un,D as Fo,E as Nu,f as Ru,F as Nn,e as ts,H as Mu,G as Ou,t as zu,a as _o,b as Fu,j as _u,J as Lu,K as Uu,k as Dt,L as ju}from"./utils-C7urdXtO.js";import{M as rb,N as sb,O as ob,P as ab,Q as ib,R as cb,T as ub,U as db,V as fb}from"./utils-C7urdXtO.js";import{i as Q,I as de,k as J,c as Ra,g as Ce,p as qu,L as er,a as Du}from"./publicKeyToAddress-CxEKPAKT.js";import{_ as zs}from"./preload-helper-gq93rykL.js";import{s as Gu,a as tr,H as Hu,b as Vu}from"./sha256-DYtpy1Qz.js";import{c as pb,d as hb,e as mb,f as yb,g as bb,h as gb,i as wb,j as xb,k as vb,l as Eb,n as Pb,o as Ib,p as Ab,q as Tb,r as $b,t as Bb,u as Sb,v as kb,w as Cb,x as Nb,y as Rb,z as Mb,A as Ob,B as zb,C as Fb,D as _b,E as Lb,F as Ub,G as jb,I as qb,J as Db,K as Gb,L as Hb,M as Vb,N as Wb,O as Zb,P as Yb,Q as Kb,R as Jb,m as Xb,S as Qb,T as e6,U as t6,V as n6,W as r6,X as s6,Y as o6,Z as a6,_ as i6,$ as c6,a0 as u6,a1 as d6,a2 as f6,a3 as l6,a4 as p6,a5 as h6,a6 as m6,a7 as y6,a8 as b6,a9 as g6,aa as w6,ab as x6,ac as v6,ad as E6,ae as P6,af as I6,ag as A6,ah as T6,ai as $6,aj as B6,ak as S6,al as k6,am as C6,an as N6,ao as R6,ap as M6,aq as O6,ar as z6,as as F6,at as _6,au as L6,av as U6,aw as j6,ax as q6,ay as D6,az as G6,aA as H6,aB as V6,aC as W6,aD as Z6,aE as Y6,aF as K6,aG as J6,aH as X6,aI as Q6}from"./sha256-DYtpy1Qz.js";import{E as t5}from"./estimate-gas-B2i5DP7U.js";function nr(e,t){return({exclude:n,format:r})=>({exclude:n,format:(s,o)=>{const a=t(s,o);if(n)for(const i of n)delete a[i];return{...a,...r(s,o)}},type:e})}const Ma={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Fs(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?H(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?H(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ma[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=Wu(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Wm=nr("transaction",Fs);function Wu(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function _s(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:Fs(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Zm=nr("block",_s);function Le(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Oa={"0x0":"reverted","0x1":"success"};function Ls(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>Le(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?H(e.transactionIndex):null,status:e.status?Oa[e.status]:null,type:e.type?Ma[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Ym=nr("transactionReceipt",Ls),Zu={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function je(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Yu(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>V(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=A(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=A(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=A(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=A(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=A(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=A(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Zu[e.type]),typeof e.value<"u"&&(n.value=A(e.value)),n}const Km=nr("transactionRequest",je);function Yu(e){return e.map(t=>({address:t.address,r:t.r?A(BigInt(t.r)):t.r,s:t.s?A(BigInt(t.s)):t.s,chainId:A(t.chainId),nonce:A(t.nonce),...typeof t.yParity<"u"?{yParity:A(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:A(t.v)}:{}}))}function fe(e){return typeof e[0]=="string"?ye(e):Ku(e)}function Ku(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function ye(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let Lo=class extends I{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},za=class extends I{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},Ju=class extends I{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const Xu={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Ju({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new za({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function $t(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Xu);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Ne(e,t="hex"){const n=Fa(e),r=$t(new Uint8Array(n.length));return n.encode(r),t==="hex"?V(r.bytes):r.bytes}function ey(e,t="bytes"){return Ne(e,t)}function ty(e,t="hex"){return Ne(e,t)}function Fa(e){return Array.isArray(e)?Qu(e.map(t=>Fa(t))):e0(e)}function Qu(e){const t=e.reduce((s,o)=>s+o.length,0),n=_a(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:o}of e)o(s)}}}function e0(e){const t=typeof e=="string"?ue(e):e,n=_a(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function _a(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new I("Length is too large.")}const La={gwei:9,wei:18},Ua={ether:-9,wei:9},ny={ether:-18,gwei:-9};function ja(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${s||"0"}${o?`.${o}`:""}`}function Us(e,t="wei"){return ja(e,La[t])}function ce(e,t="wei"){return ja(e,Ua[t])}function mn(e){const t=Object.entries(e).map(([r,s])=>s===void 0||s===!1?null:[r,s]).filter(Boolean),n=t.reduce((r,[s])=>Math.max(r,s.length),0);return t.map(([r,s])=>` ${`${r}:`.padEnd(n+1)} ${s}`).join(`
2
2
  `)}class t0 extends I{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
3
3
  `),{name:"FeeConflictError"})}}class qa extends I{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class n0 extends I{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",mn(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class r0 extends I{constructor({serializedType:t}){super(`Serialized transaction type "${t}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=t}}class yn extends I{constructor({attributes:t,serializedTransaction:n,type:r}){const s=Object.entries(t).map(([o,a])=>typeof a>"u"?o:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,s.length>0?`Missing Attributes: ${s.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=n,this.type=r}}class s0 extends I{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class o0 extends I{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:a,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:l,value:f}){const p=mn({chain:s&&`${s?.name} (id: ${s?.id})`,from:n?.address,to:l,value:typeof f<"u"&&`${Us(f)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:typeof i<"u"&&`${ce(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${ce(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${ce(u)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",p].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Da extends I{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:s,index:o}){let a="Transaction";r&&o!==void 0&&(a=`Transaction at block time "${r}" at index "${o}"`),t&&o!==void 0&&(a=`Transaction at block hash "${t}" at index "${o}"`),n&&o!==void 0&&(a=`Transaction at block number "${n}" at index "${o}"`),s&&(a=`Transaction with hash "${s}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}class Ga extends I{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Ha extends I{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class a0 extends I{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function i0(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:s,...o}=n,a=n.address;t.push([r?Ie(r):"0x",a,s?Ie(s):"0x",...gn({},o)])}return t}function js(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(o=>ue(o)):e.blobs,s=[];for(const o of r)s.push(Uint8Array.from(t.blobToKzgCommitment(o)));return n==="bytes"?s:s.map(o=>V(o))}function qs(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(a=>ue(a)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(a=>ue(a)):e.commitments,o=[];for(let a=0;a<r.length;a++){const i=r[a],c=s[a];o.push(Uint8Array.from(t.computeBlobKzgProof(i,c)))}return n==="bytes"?o:o.map(a=>V(a))}function Va(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),s=Gu(t,"bytes");return s.set([n],0),r==="bytes"?s:V(s)}function Wa(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const o of t)s.push(Va({commitment:o,to:r,version:n}));return s}const Uo=6,Za=32,Ds=4096,Ya=Za*Ds,jo=Ya*Uo-1-1*Ds*Uo,Ka=1;class c0 extends I{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class Ja extends I{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class u0 extends I{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class d0 extends I{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Ka}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function f0(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?ue(e.data):e.data,r=Z(n);if(!r)throw new Ja;if(r>jo)throw new c0({maxSize:jo,size:r});const s=[];let o=!0,a=0;for(;o;){const i=$t(new Uint8Array(Ya));let c=0;for(;c<Ds;){const u=n.slice(a,a+(Za-1));if(i.pushByte(0),i.pushBytes(u),u.length<31){i.pushByte(128),o=!1;break}c++,a+=31}s.push(i)}return t==="bytes"?s.map(i=>i.bytes):s.map(i=>V(i.bytes))}function Gs(e){const{data:t,kzg:n,to:r}=e,s=e.blobs??f0({data:t,to:r}),o=e.commitments??js({blobs:s,kzg:n,to:r}),a=e.proofs??qs({blobs:s,commitments:o,kzg:n,to:r}),i=[];for(let c=0;c<s.length;c++)i.push({blob:s[c],commitment:o[c],proof:a[c]});return i}class ns extends I{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class l0 extends I{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class p0 extends I{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
4
4
  `),{name:"ChainNotFoundError"})}}class Xa extends I{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class rr extends I{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Je extends I{constructor({cause:t,message:n}={}){const r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Je,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Je,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class st extends I{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ce(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(st,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class rs extends I{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ce(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(rs,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class ss extends I{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(ss,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class os extends I{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
@@ -1 +1 @@
1
- import{_ as f,a as v,c as _,b as p}from"./tslib.es6-DbvBTznf.js";import{l as N,g as k,u as j,r as y,c as P,C as z,d as C,e as b,i as F,m as L,b as S,f as R,P as B,h as Q,j as W,k as G,n as T,o as U}from"./index-C2hdqzGT.js";import{i as V}from"./is-plan-event-enabled-DeNtQvA5.js";function D(i){return i.toLowerCase().replace(".","").replace(/\s+/g,"-")}function E(i,t){return t===void 0&&(t=!1),t?btoa(i).replace(/=/g,""):void 0}function H(i){return("Integration"in i?i.Integration:i).prototype.name}function J(i,t,n){var e,a;try{var r=((a=(e=window?.performance)===null||e===void 0?void 0:e.getEntriesByName(i,"resource"))!==null&&a!==void 0?a:[])[0];r&&t.stats.gauge("legacy_destination_time",Math.round(r.duration),_([n],r.duration<100?["cached"]:[],!0))}catch{}}function K(i,t,n){var e;if("Integration"in i){var a={user:function(){return n.user()},addIntegration:function(){}};i(a),e=i.Integration}else e=i;var r=new e(t);return r.analytics=n,r}function X(i,t,n,e){return f(this,void 0,void 0,function(){var a,r,o,u,s,l;return v(this,function(d){switch(d.label){case 0:a=D(t),r=E(a,e),o=k(),u="".concat(o,"/integrations/").concat(r??a,"/").concat(n,"/").concat(r??a,".dynamic.js.gz"),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,N(u)];case 2:return d.sent(),J(u,i,t),[3,4];case 3:throw s=d.sent(),i.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),s;case 4:return l=window["".concat(a,"Deps")],[4,Promise.all(l.map(function(g){return N(o+g+".gz")}))];case 5:return d.sent(),window["".concat(a,"Loader")](),[2,window["".concat(a,"Integration")]]}})})}function Y(i,t,n){return f(this,void 0,void 0,function(){var e,a,r,o;return v(this,function(u){return e=k(),a=D(i),r=E(i,n),o="".concat(e,"/integrations/").concat(r??a,"/").concat(t,"/").concat(r??a,".dynamic.js.gz"),[2,j(o)]})})}function Z(i){var t,n,e,a;return(a=(n=(t=i?.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(e=i?.versionSettings)===null||e===void 0?void 0:e.version)!==null&&a!==void 0?a:"latest"}var $=function(i,t){var n,e=t.type,a=t.bundlingStatus,r=t.versionSettings,o=a!=="unbundled"&&(e==="browser"||((n=r?.componentTypes)===null||n===void 0?void 0:n.includes("browser")));return!i.startsWith("Segment")&&i!=="Iterable"&&o},q=function(i,t){var n=t.All===!1&&t[i]===void 0;return t[i]===!1||n};function x(i,t){return f(this,void 0,void 0,function(){var n,e=this;return v(this,function(a){switch(a.label){case 0:return n=[],P()?[2,t]:[4,W(function(){return t.length>0&&U()},function(){return f(e,void 0,void 0,function(){var r,o,u;return v(this,function(s){switch(s.label){case 0:return r=t.pop(),r?[4,G(r,i)]:[2];case 1:return o=s.sent(),u=o instanceof T,u||n.push(r),[2]}})})})];case 1:return a.sent(),n.map(function(r){return t.pushWithBackoff(r)}),[2,t]}})})}var tt=function(){function i(t,n,e,a,r,o){a===void 0&&(a={});var u=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=R(),this.flushing=!1,this.name=t,this.version=n,this.settings=p({},a),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.initializePromise.promise.then(function(s){return u._initialized=s},function(){}),this.options=r,this.buffer=r.disableClientPersistence?new B(4,[]):new Q(4,"".concat(e,":dest-").concat(t)),this.scheduleFlush()}return i.prototype.isLoaded=function(){return!!this._ready},i.prototype.ready=function(){var t=this;return this.initializePromise.promise.then(function(){var n;return(n=t.onReady)!==null&&n!==void 0?n:Promise.resolve()})},i.prototype.load=function(t,n){var e;return f(this,void 0,void 0,function(){var a,r,o,u=this;return v(this,function(s){switch(s.label){case 0:if(this._ready||this.onReady!==void 0)return[2];s.label=1;case 1:return s.trys.push([1,5,,6]),(e=this.integrationSource)!==null&&e!==void 0?(r=e,[3,4]):[3,2];case 2:return[4,X(t,this.name,this.version,this.options.obfuscate)];case 3:r=s.sent(),s.label=4;case 4:return a=r,this.integration=K(a,this.settings,n),[3,6];case 5:throw o=s.sent(),y(t,{integrationName:this.name,methodName:"load",type:"classic",didError:!0}),o;case 6:this.onReady=new Promise(function(l){var d=function(){u._ready=!0,l(!0)};u.integration.once("ready",d)}),this.integration.on("initialize",function(){u.initializePromise.resolve(!0)});try{y(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(l){throw y(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),l}return[2]}})})},i.prototype.unload=function(t,n){return Y(this.name,this.version,this.options.obfuscate)},i.prototype.addMiddleware=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this.middleware=(t=this.middleware).concat.apply(t,n)},i.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(P()||this._ready!==!0||this._initialized!==!0)},i.prototype.send=function(t,n,e){var a,r;return f(this,void 0,void 0,function(){var o,u,s,l,d,g;return v(this,function(h){switch(h.label){case 0:return this.shouldBuffer(t)?(this.buffer.push(t),this.scheduleFlush(),[2,t]):(o=(r=(a=this.options)===null||a===void 0?void 0:a.plan)===null||r===void 0?void 0:r.track,u=t.event.event,o&&u&&this.name!=="Segment.io"&&(s=o[u],V(o,s)?t.updateEvent("integrations",p(p({},t.event.integrations),s?.integrations)):(t.updateEvent("integrations",p(p({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new z({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),s?.enabled&&s?.integrations[this.name]===!1&&t.cancel(new z({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,C(this.name,t.event,this.middleware)]);case 1:if(l=h.sent(),l===null)return[2,t];d=new n(l,{traverse:!this.disableAutoISOConversion}),y(t,{integrationName:this.name,methodName:e,type:"classic"}),h.label=2;case 2:return h.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,e,d)]:[3,4];case 3:h.sent(),h.label=4;case 4:return[3,6];case 5:throw g=h.sent(),y(t,{integrationName:this.name,methodName:e,type:"classic",didError:!0}),g;case 6:return[2,t]}})})},i.prototype.track=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Track,"track")]})})},i.prototype.page=function(t){var n;return f(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return!((n=this.integration)===null||n===void 0)&&n._assumesPageview&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return e.sent(),[2,this.send(t,b.Page,"page")]}})})},i.prototype.identify=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Identify,"identify")]})})},i.prototype.alias=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Alias,"alias")]})})},i.prototype.group=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Group,"group")]})})},i.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return f(t,void 0,void 0,function(){var n;return v(this,function(e){switch(e.label){case 0:return P()||this._ready!==!0||this._initialized!==!0?(this.scheduleFlush(),[2]):(this.flushing=!0,n=this,[4,x(this,this.buffer)]);case 1:return n.buffer=e.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},i}();function rt(i,t,n,e,a,r){var o,u;if(n===void 0&&(n={}),e===void 0&&(e={}),F())return[];t.plan&&(e=e??{},e.plan=t.plan);var s=(u=(o=t.middlewareSettings)===null||o===void 0?void 0:o.routingRules)!==null&&u!==void 0?u:[],l=t.integrations,d=e.integrations,g=L(t,e??{}),h=r?.reduce(function(c,w){var m;return p(p({},c),(m={},m[H(w)]=w,m))},{}),O=new Set(_(_([],Object.keys(l).filter(function(c){return $(c,l[c])}),!0),Object.keys(h||{}).filter(function(c){return S(l[c])||S(d?.[c])}),!0));return Array.from(O).filter(function(c){return!q(c,n)}).map(function(c){var w=l[c],m=Z(w),I=new tt(c,m,i,g[c],e,h?.[c]),A=s.filter(function(M){return M.destinationName===c});return A.length>0&&a&&I.addMiddleware(a),I})}export{tt as LegacyDestination,rt as ajsDestinations};
1
+ import{_ as f,a as v,c as _,b as p}from"./tslib.es6-DbvBTznf.js";import{l as N,g as k,u as j,r as y,c as P,C as z,d as C,e as b,i as F,m as L,b as S,f as R,P as B,h as Q,j as W,k as G,n as T,o as U}from"./index-DEyuwX6T.js";import{i as V}from"./is-plan-event-enabled-DeNtQvA5.js";function D(i){return i.toLowerCase().replace(".","").replace(/\s+/g,"-")}function E(i,t){return t===void 0&&(t=!1),t?btoa(i).replace(/=/g,""):void 0}function H(i){return("Integration"in i?i.Integration:i).prototype.name}function J(i,t,n){var e,a;try{var r=((a=(e=window?.performance)===null||e===void 0?void 0:e.getEntriesByName(i,"resource"))!==null&&a!==void 0?a:[])[0];r&&t.stats.gauge("legacy_destination_time",Math.round(r.duration),_([n],r.duration<100?["cached"]:[],!0))}catch{}}function K(i,t,n){var e;if("Integration"in i){var a={user:function(){return n.user()},addIntegration:function(){}};i(a),e=i.Integration}else e=i;var r=new e(t);return r.analytics=n,r}function X(i,t,n,e){return f(this,void 0,void 0,function(){var a,r,o,u,s,l;return v(this,function(d){switch(d.label){case 0:a=D(t),r=E(a,e),o=k(),u="".concat(o,"/integrations/").concat(r??a,"/").concat(n,"/").concat(r??a,".dynamic.js.gz"),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,N(u)];case 2:return d.sent(),J(u,i,t),[3,4];case 3:throw s=d.sent(),i.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),s;case 4:return l=window["".concat(a,"Deps")],[4,Promise.all(l.map(function(g){return N(o+g+".gz")}))];case 5:return d.sent(),window["".concat(a,"Loader")](),[2,window["".concat(a,"Integration")]]}})})}function Y(i,t,n){return f(this,void 0,void 0,function(){var e,a,r,o;return v(this,function(u){return e=k(),a=D(i),r=E(i,n),o="".concat(e,"/integrations/").concat(r??a,"/").concat(t,"/").concat(r??a,".dynamic.js.gz"),[2,j(o)]})})}function Z(i){var t,n,e,a;return(a=(n=(t=i?.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(e=i?.versionSettings)===null||e===void 0?void 0:e.version)!==null&&a!==void 0?a:"latest"}var $=function(i,t){var n,e=t.type,a=t.bundlingStatus,r=t.versionSettings,o=a!=="unbundled"&&(e==="browser"||((n=r?.componentTypes)===null||n===void 0?void 0:n.includes("browser")));return!i.startsWith("Segment")&&i!=="Iterable"&&o},q=function(i,t){var n=t.All===!1&&t[i]===void 0;return t[i]===!1||n};function x(i,t){return f(this,void 0,void 0,function(){var n,e=this;return v(this,function(a){switch(a.label){case 0:return n=[],P()?[2,t]:[4,W(function(){return t.length>0&&U()},function(){return f(e,void 0,void 0,function(){var r,o,u;return v(this,function(s){switch(s.label){case 0:return r=t.pop(),r?[4,G(r,i)]:[2];case 1:return o=s.sent(),u=o instanceof T,u||n.push(r),[2]}})})})];case 1:return a.sent(),n.map(function(r){return t.pushWithBackoff(r)}),[2,t]}})})}var tt=function(){function i(t,n,e,a,r,o){a===void 0&&(a={});var u=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=R(),this.flushing=!1,this.name=t,this.version=n,this.settings=p({},a),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.initializePromise.promise.then(function(s){return u._initialized=s},function(){}),this.options=r,this.buffer=r.disableClientPersistence?new B(4,[]):new Q(4,"".concat(e,":dest-").concat(t)),this.scheduleFlush()}return i.prototype.isLoaded=function(){return!!this._ready},i.prototype.ready=function(){var t=this;return this.initializePromise.promise.then(function(){var n;return(n=t.onReady)!==null&&n!==void 0?n:Promise.resolve()})},i.prototype.load=function(t,n){var e;return f(this,void 0,void 0,function(){var a,r,o,u=this;return v(this,function(s){switch(s.label){case 0:if(this._ready||this.onReady!==void 0)return[2];s.label=1;case 1:return s.trys.push([1,5,,6]),(e=this.integrationSource)!==null&&e!==void 0?(r=e,[3,4]):[3,2];case 2:return[4,X(t,this.name,this.version,this.options.obfuscate)];case 3:r=s.sent(),s.label=4;case 4:return a=r,this.integration=K(a,this.settings,n),[3,6];case 5:throw o=s.sent(),y(t,{integrationName:this.name,methodName:"load",type:"classic",didError:!0}),o;case 6:this.onReady=new Promise(function(l){var d=function(){u._ready=!0,l(!0)};u.integration.once("ready",d)}),this.integration.on("initialize",function(){u.initializePromise.resolve(!0)});try{y(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(l){throw y(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),l}return[2]}})})},i.prototype.unload=function(t,n){return Y(this.name,this.version,this.options.obfuscate)},i.prototype.addMiddleware=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this.middleware=(t=this.middleware).concat.apply(t,n)},i.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(P()||this._ready!==!0||this._initialized!==!0)},i.prototype.send=function(t,n,e){var a,r;return f(this,void 0,void 0,function(){var o,u,s,l,d,g;return v(this,function(h){switch(h.label){case 0:return this.shouldBuffer(t)?(this.buffer.push(t),this.scheduleFlush(),[2,t]):(o=(r=(a=this.options)===null||a===void 0?void 0:a.plan)===null||r===void 0?void 0:r.track,u=t.event.event,o&&u&&this.name!=="Segment.io"&&(s=o[u],V(o,s)?t.updateEvent("integrations",p(p({},t.event.integrations),s?.integrations)):(t.updateEvent("integrations",p(p({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new z({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),s?.enabled&&s?.integrations[this.name]===!1&&t.cancel(new z({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,C(this.name,t.event,this.middleware)]);case 1:if(l=h.sent(),l===null)return[2,t];d=new n(l,{traverse:!this.disableAutoISOConversion}),y(t,{integrationName:this.name,methodName:e,type:"classic"}),h.label=2;case 2:return h.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,e,d)]:[3,4];case 3:h.sent(),h.label=4;case 4:return[3,6];case 5:throw g=h.sent(),y(t,{integrationName:this.name,methodName:e,type:"classic",didError:!0}),g;case 6:return[2,t]}})})},i.prototype.track=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Track,"track")]})})},i.prototype.page=function(t){var n;return f(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return!((n=this.integration)===null||n===void 0)&&n._assumesPageview&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return e.sent(),[2,this.send(t,b.Page,"page")]}})})},i.prototype.identify=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Identify,"identify")]})})},i.prototype.alias=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Alias,"alias")]})})},i.prototype.group=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,b.Group,"group")]})})},i.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return f(t,void 0,void 0,function(){var n;return v(this,function(e){switch(e.label){case 0:return P()||this._ready!==!0||this._initialized!==!0?(this.scheduleFlush(),[2]):(this.flushing=!0,n=this,[4,x(this,this.buffer)]);case 1:return n.buffer=e.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},i}();function rt(i,t,n,e,a,r){var o,u;if(n===void 0&&(n={}),e===void 0&&(e={}),F())return[];t.plan&&(e=e??{},e.plan=t.plan);var s=(u=(o=t.middlewareSettings)===null||o===void 0?void 0:o.routingRules)!==null&&u!==void 0?u:[],l=t.integrations,d=e.integrations,g=L(t,e??{}),h=r?.reduce(function(c,w){var m;return p(p({},c),(m={},m[H(w)]=w,m))},{}),O=new Set(_(_([],Object.keys(l).filter(function(c){return $(c,l[c])}),!0),Object.keys(h||{}).filter(function(c){return S(l[c])||S(d?.[c])}),!0));return Array.from(O).filter(function(c){return!q(c,n)}).map(function(c){var w=l[c],m=Z(w),I=new tt(c,m,i,g[c],e,h?.[c]),A=s.filter(function(M){return M.destinationName===c});return A.length>0&&a&&I.addMiddleware(a),I})}export{tt as LegacyDestination,rt as ajsDestinations};